Lines Matching refs:endpoint
24 struct v4l2_of_endpoint *endpoint) in v4l2_of_parse_csi_bus() argument
26 struct v4l2_of_bus_mipi_csi2 *bus = &endpoint->bus.mipi_csi2; in v4l2_of_parse_csi_bus()
76 endpoint->bus_type = V4L2_MBUS_CSI2; in v4l2_of_parse_csi_bus()
82 struct v4l2_of_endpoint *endpoint) in v4l2_of_parse_parallel_bus() argument
84 struct v4l2_of_bus_parallel *bus = &endpoint->bus.parallel; in v4l2_of_parse_parallel_bus()
100 endpoint->bus_type = V4L2_MBUS_PARALLEL; in v4l2_of_parse_parallel_bus()
102 endpoint->bus_type = V4L2_MBUS_BT656; in v4l2_of_parse_parallel_bus()
152 struct v4l2_of_endpoint *endpoint) in v4l2_of_parse_endpoint() argument
156 of_graph_parse_endpoint(node, &endpoint->base); in v4l2_of_parse_endpoint()
158 memset(&endpoint->bus_type, 0, sizeof(*endpoint) - in v4l2_of_parse_endpoint()
159 offsetof(typeof(*endpoint), bus_type)); in v4l2_of_parse_endpoint()
161 rval = v4l2_of_parse_csi_bus(node, endpoint); in v4l2_of_parse_endpoint()
168 if (endpoint->bus.mipi_csi2.flags == 0) in v4l2_of_parse_endpoint()
169 v4l2_of_parse_parallel_bus(node, endpoint); in v4l2_of_parse_endpoint()
183 void v4l2_of_free_endpoint(struct v4l2_of_endpoint *endpoint) in v4l2_of_free_endpoint() argument
185 if (IS_ERR_OR_NULL(endpoint)) in v4l2_of_free_endpoint()
188 kfree(endpoint->link_frequencies); in v4l2_of_free_endpoint()
189 kfree(endpoint); in v4l2_of_free_endpoint()
220 struct v4l2_of_endpoint *endpoint; in v4l2_of_alloc_parse_endpoint() local
224 endpoint = kzalloc(sizeof(*endpoint), GFP_KERNEL); in v4l2_of_alloc_parse_endpoint()
225 if (!endpoint) in v4l2_of_alloc_parse_endpoint()
228 rval = v4l2_of_parse_endpoint(node, endpoint); in v4l2_of_alloc_parse_endpoint()
233 endpoint->link_frequencies = kmalloc(len, GFP_KERNEL); in v4l2_of_alloc_parse_endpoint()
234 if (!endpoint->link_frequencies) { in v4l2_of_alloc_parse_endpoint()
239 endpoint->nr_of_link_frequencies = in v4l2_of_alloc_parse_endpoint()
240 len / sizeof(*endpoint->link_frequencies); in v4l2_of_alloc_parse_endpoint()
243 node, "link-frequencies", endpoint->link_frequencies, in v4l2_of_alloc_parse_endpoint()
244 endpoint->nr_of_link_frequencies); in v4l2_of_alloc_parse_endpoint()
249 return endpoint; in v4l2_of_alloc_parse_endpoint()
252 v4l2_of_free_endpoint(endpoint); in v4l2_of_alloc_parse_endpoint()