Lines Matching full:routing

958 		struct v4l2_subdev_routing *routing = arg;  in subdev_do_ioctl()  local
967 memset(routing->reserved, 0, sizeof(routing->reserved)); in subdev_do_ioctl()
969 krouting = &state->routing; in subdev_do_ioctl()
971 memcpy((struct v4l2_subdev_route *)(uintptr_t)routing->routes, in subdev_do_ioctl()
973 min(krouting->num_routes, routing->len_routes) * in subdev_do_ioctl()
975 routing->num_routes = krouting->num_routes; in subdev_do_ioctl()
981 struct v4l2_subdev_routing *routing = arg; in subdev_do_ioctl() local
983 (struct v4l2_subdev_route *)(uintptr_t)routing->routes; in subdev_do_ioctl()
993 if (routing->which != V4L2_SUBDEV_FORMAT_TRY && ro_subdev) in subdev_do_ioctl()
996 if (routing->num_routes > routing->len_routes) in subdev_do_ioctl()
999 memset(routing->reserved, 0, sizeof(routing->reserved)); in subdev_do_ioctl()
1001 for (i = 0; i < routing->num_routes; ++i) { in subdev_do_ioctl()
1025 * If the driver doesn't support setting routing, just return in subdev_do_ioctl()
1026 * the routing table. in subdev_do_ioctl()
1029 memcpy((struct v4l2_subdev_route *)(uintptr_t)routing->routes, in subdev_do_ioctl()
1030 state->routing.routes, in subdev_do_ioctl()
1031 min(state->routing.num_routes, routing->len_routes) * in subdev_do_ioctl()
1032 sizeof(*state->routing.routes)); in subdev_do_ioctl()
1033 routing->num_routes = state->routing.num_routes; in subdev_do_ioctl()
1038 krouting.num_routes = routing->num_routes; in subdev_do_ioctl()
1039 krouting.len_routes = routing->len_routes; in subdev_do_ioctl()
1043 routing->which, &krouting); in subdev_do_ioctl()
1047 memcpy((struct v4l2_subdev_route *)(uintptr_t)routing->routes, in subdev_do_ioctl()
1048 state->routing.routes, in subdev_do_ioctl()
1049 min(state->routing.num_routes, routing->len_routes) * in subdev_do_ioctl()
1050 sizeof(*state->routing.routes)); in subdev_do_ioctl()
1051 routing->num_routes = state->routing.num_routes; in subdev_do_ioctl()
1313 for_each_active_route(&state->routing, route) { in __v4l2_link_validate_get_streams()
1517 struct v4l2_subdev_krouting *routing; in v4l2_subdev_has_pad_interdep() local
1523 routing = &state->routing; in v4l2_subdev_has_pad_interdep()
1525 for (i = 0; i < routing->num_routes; ++i) { in v4l2_subdev_has_pad_interdep()
1526 struct v4l2_subdev_route *route = &routing->routes[i]; in v4l2_subdev_has_pad_interdep()
1605 kfree(state->routing.routes); in __v4l2_subdev_state_free()
1816 const struct v4l2_subdev_krouting *routing) in v4l2_subdev_init_stream_configs() argument
1823 for_each_active_route(routing, route) { in v4l2_subdev_init_stream_configs()
1841 * the routing table in v4l2_subdev_init_stream_configs()
1845 for_each_active_route(routing, route) { in v4l2_subdev_init_stream_configs()
1896 const struct v4l2_subdev_krouting *routing) in v4l2_subdev_set_routing() argument
1898 struct v4l2_subdev_krouting *dst = &state->routing; in v4l2_subdev_set_routing()
1899 const struct v4l2_subdev_krouting *src = routing; in v4l2_subdev_set_routing()
1933 __v4l2_subdev_next_active_route(const struct v4l2_subdev_krouting *routing, in __v4l2_subdev_next_active_route() argument
1939 route = &routing->routes[0]; in __v4l2_subdev_next_active_route()
1941 for (; route < routing->routes + routing->num_routes; ++route) { in __v4l2_subdev_next_active_route()
1954 const struct v4l2_subdev_krouting *routing, in v4l2_subdev_set_routing_with_fmt() argument
1961 ret = v4l2_subdev_set_routing(sd, state, routing); in v4l2_subdev_set_routing_with_fmt()
1974 int v4l2_subdev_routing_find_opposite_end(const struct v4l2_subdev_krouting *routing, in v4l2_subdev_routing_find_opposite_end() argument
1980 for (i = 0; i < routing->num_routes; ++i) { in v4l2_subdev_routing_find_opposite_end()
1981 struct v4l2_subdev_route *route = &routing->routes[i]; in v4l2_subdev_routing_find_opposite_end()
2012 ret = v4l2_subdev_routing_find_opposite_end(&state->routing, in v4l2_subdev_state_get_opposite_stream_format()
2025 const struct v4l2_subdev_krouting *routing = &state->routing; in v4l2_subdev_state_xlate_streams() local
2030 for_each_active_route(routing, route) { in v4l2_subdev_state_xlate_streams()
2049 const struct v4l2_subdev_krouting *routing, in v4l2_subdev_routing_validate() argument
2067 for (i = 0; i < routing->num_routes; ++i) { in v4l2_subdev_routing_validate()
2068 const struct v4l2_subdev_route *route = &routing->routes[i]; in v4l2_subdev_routing_validate()
2146 for (j = i + 1; j < routing->num_routes; ++j) { in v4l2_subdev_routing_validate()
2147 const struct v4l2_subdev_route *r = &routing->routes[j]; in v4l2_subdev_routing_validate()
2461 for_each_active_route(&state->routing, route) in v4l2_subdev_s_stream_helper()