Lines Matching refs:match
68 struct v4l2_async_match_desc *match) in match_i2c() argument
74 match->i2c.adapter_id == client->adapter->nr && in match_i2c()
75 match->i2c.address == client->addr; in match_i2c()
95 struct v4l2_async_match_desc *match) in match_fwnode_one() argument
102 sd_fwnode, match->fwnode); in match_fwnode_one()
104 if (sd_fwnode == match->fwnode) { in match_fwnode_one()
110 if (!fwnode_graph_is_endpoint(match->fwnode)) { in match_fwnode_one()
116 asd_dev_fwnode = fwnode_graph_get_port_parent(match->fwnode); in match_fwnode_one()
131 struct v4l2_async_match_desc *match) in match_fwnode() argument
142 match->fwnode); in match_fwnode()
146 bool matched = ase->endpoint == match->fwnode; in match_fwnode()
161 if (match_fwnode_one(notifier, sd, sd->fwnode, match)) in match_fwnode()
171 return match_fwnode_one(notifier, sd, sd->fwnode->secondary, match); in match_fwnode()
182 bool (*match)(struct v4l2_async_notifier *notifier, in v4l2_async_find_match() local
184 struct v4l2_async_match_desc *match); in v4l2_async_find_match()
189 switch (asc->match.type) { in v4l2_async_find_match()
191 match = match_i2c; in v4l2_async_find_match()
194 match = match_fwnode; in v4l2_async_find_match()
203 if (match(notifier, sd, &asc->match)) in v4l2_async_find_match()
355 if (asc->match.type == V4L2_ASYNC_MATCH_TYPE_FWNODE) in v4l2_async_match_notify()
358 asc->match.fwnode, ret); in v4l2_async_match_notify()
371 if (asc->match.type == V4L2_ASYNC_MATCH_TYPE_FWNODE) in v4l2_async_match_notify()
374 asc->match.fwnode, ret); in v4l2_async_match_notify()
491 struct v4l2_async_match_desc *match) in v4l2_async_nf_has_async_match_entry() argument
496 if (v4l2_async_match_equal(&asc->match, match)) in v4l2_async_nf_has_async_match_entry()
500 if (v4l2_async_match_equal(&asc->match, match)) in v4l2_async_nf_has_async_match_entry()
512 struct v4l2_async_match_desc *match) in v4l2_async_nf_has_async_match() argument
527 if (&asc->match == match) in v4l2_async_nf_has_async_match()
529 if (v4l2_async_match_equal(&asc->match, match)) in v4l2_async_nf_has_async_match()
536 if (v4l2_async_nf_has_async_match_entry(notifier, match)) in v4l2_async_nf_has_async_match()
543 struct v4l2_async_match_desc *match) in v4l2_async_nf_match_valid() argument
547 switch (match->type) { in v4l2_async_nf_match_valid()
550 if (v4l2_async_nf_has_async_match(notifier, match)) { in v4l2_async_nf_match_valid()
557 match->type, match); in v4l2_async_nf_match_valid()
592 ret = v4l2_async_nf_match_valid(notifier, &asc->match); in __v4l2_async_nf_register()
667 if (asc->match.type == V4L2_ASYNC_MATCH_TYPE_FWNODE) in __v4l2_async_nf_cleanup()
668 fwnode_handle_put(asc->match.fwnode); in __v4l2_async_nf_cleanup()
709 asc->match.type = V4L2_ASYNC_MATCH_TYPE_FWNODE; in __v4l2_async_nf_add_fwnode()
710 asc->match.fwnode = fwnode_handle_get(fwnode); in __v4l2_async_nf_add_fwnode()
751 asc->match.type = V4L2_ASYNC_MATCH_TYPE_I2C; in __v4l2_async_nf_add_i2c()
752 asc->match.i2c.adapter_id = adapter_id; in __v4l2_async_nf_add_i2c()
753 asc->match.i2c.address = address; in __v4l2_async_nf_add_i2c()
893 struct v4l2_async_match_desc *match) in print_waiting_match() argument
895 switch (match->type) { in print_waiting_match()
897 seq_printf(s, " [i2c] dev=%d-%04x\n", match->i2c.adapter_id, in print_waiting_match()
898 match->i2c.address); in print_waiting_match()
901 struct fwnode_handle *devnode, *fwnode = match->fwnode; in print_waiting_match()
938 print_waiting_match(s, &asc->match); in pending_subdevs_show()