Lines Matching full: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
101 "v4l2-async: fwnode match: need %pfw, trying %pfw\n", in match_fwnode_one()
102 sd_fwnode, match->fwnode); in match_fwnode_one()
104 if (sd_fwnode == match->fwnode) { in match_fwnode_one()
106 "v4l2-async: direct match found\n"); in match_fwnode_one()
110 if (!fwnode_graph_is_endpoint(match->fwnode)) { in match_fwnode_one()
112 "v4l2-async: direct match not found\n"); in match_fwnode_one()
116 asd_dev_fwnode = fwnode_graph_get_port_parent(match->fwnode); in match_fwnode_one()
123 "v4l2-async: device--endpoint match %sfound\n", 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()
149 "v4l2-async: endpoint-endpoint match %sfound with %pfw\n", in match_fwnode()
161 if (match_fwnode_one(notifier, sd, sd->fwnode, match)) in match_fwnode()
169 "v4l2-async: trying secondary fwnode match\n"); 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()
202 /* match cannot be NULL here */ in v4l2_async_find_match()
203 if (match(notifier, sd, &asc->match)) in v4l2_async_find_match()
210 /* Compare two async match descriptors for equivalence */
359 if (asc->match.type == V4L2_ASYNC_MATCH_TYPE_FWNODE) in v4l2_async_match_notify()
362 asc->match.fwnode, ret); in v4l2_async_match_notify()
375 if (asc->match.type == V4L2_ASYNC_MATCH_TYPE_FWNODE) in v4l2_async_match_notify()
378 asc->match.fwnode, ret); in v4l2_async_match_notify()
419 /* Test all async sub-devices in a notifier for a match. */
442 "v4l2-async: match found, subdev %s\n", sd->name); in v4l2_async_nf_try_all_subdevs()
495 struct v4l2_async_match_desc *match) in v4l2_async_nf_has_async_match_entry() argument
500 if (v4l2_async_match_equal(&asc->match, match)) in v4l2_async_nf_has_async_match_entry()
504 if (v4l2_async_match_equal(&asc->match, match)) in v4l2_async_nf_has_async_match_entry()
516 struct v4l2_async_match_desc *match) in v4l2_async_nf_has_async_match() argument
531 if (&asc->match == match) in v4l2_async_nf_has_async_match()
533 if (v4l2_async_match_equal(&asc->match, match)) in v4l2_async_nf_has_async_match()
540 if (v4l2_async_nf_has_async_match_entry(notifier, match)) in v4l2_async_nf_has_async_match()
547 struct v4l2_async_match_desc *match) in v4l2_async_nf_match_valid() argument
551 switch (match->type) { in v4l2_async_nf_match_valid()
554 if (v4l2_async_nf_has_async_match(notifier, match)) { in v4l2_async_nf_match_valid()
555 dev_dbg(dev, "v4l2-async: match descriptor already listed in a notifier\n"); in v4l2_async_nf_match_valid()
560 dev_err(dev, "v4l2-async: Invalid match type %u on %p\n", in v4l2_async_nf_match_valid()
561 match->type, match); in v4l2_async_nf_match_valid()
596 ret = v4l2_async_nf_match_valid(notifier, &asc->match); in __v4l2_async_nf_register()
671 if (asc->match.type == V4L2_ASYNC_MATCH_TYPE_FWNODE) in __v4l2_async_nf_cleanup()
672 fwnode_handle_put(asc->match.fwnode); in __v4l2_async_nf_cleanup()
713 asc->match.type = V4L2_ASYNC_MATCH_TYPE_FWNODE; in __v4l2_async_nf_add_fwnode()
714 asc->match.fwnode = fwnode_handle_get(fwnode); in __v4l2_async_nf_add_fwnode()
755 asc->match.type = V4L2_ASYNC_MATCH_TYPE_I2C; in __v4l2_async_nf_add_i2c()
756 asc->match.i2c.adapter_id = adapter_id; in __v4l2_async_nf_add_i2c()
757 asc->match.i2c.address = address; in __v4l2_async_nf_add_i2c()
898 struct v4l2_async_match_desc *match) in print_waiting_match() argument
900 switch (match->type) { in print_waiting_match()
902 seq_printf(s, " [i2c] dev=%d-%04x\n", match->i2c.adapter_id, in print_waiting_match()
903 match->i2c.address); in print_waiting_match()
906 struct fwnode_handle *devnode, *fwnode = match->fwnode; in print_waiting_match()
943 print_waiting_match(s, &asc->match); in pending_subdevs_show()