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 */
352 if (asc->match.type == V4L2_ASYNC_MATCH_TYPE_FWNODE) in v4l2_async_match_notify()
355 asc->match.fwnode, ret); in v4l2_async_match_notify()
368 if (asc->match.type == V4L2_ASYNC_MATCH_TYPE_FWNODE) in v4l2_async_match_notify()
371 asc->match.fwnode, ret); in v4l2_async_match_notify()
412 /* Test all async sub-devices in a notifier for a match. */
435 "v4l2-async: match found, subdev %s\n", sd->name); in v4l2_async_nf_try_all_subdevs()
488 struct v4l2_async_match_desc *match) in v4l2_async_nf_has_async_match_entry() argument
493 if (v4l2_async_match_equal(&asc->match, match)) in v4l2_async_nf_has_async_match_entry()
497 if (v4l2_async_match_equal(&asc->match, match)) in v4l2_async_nf_has_async_match_entry()
509 struct v4l2_async_match_desc *match) in v4l2_async_nf_has_async_match() argument
524 if (&asc->match == match) in v4l2_async_nf_has_async_match()
526 if (v4l2_async_match_equal(&asc->match, match)) in v4l2_async_nf_has_async_match()
533 if (v4l2_async_nf_has_async_match_entry(notifier, match)) in v4l2_async_nf_has_async_match()
540 struct v4l2_async_match_desc *match) in v4l2_async_nf_match_valid() argument
544 switch (match->type) { in v4l2_async_nf_match_valid()
547 if (v4l2_async_nf_has_async_match(notifier, match)) { in v4l2_async_nf_match_valid()
548 dev_dbg(dev, "v4l2-async: match descriptor already listed in a notifier\n"); in v4l2_async_nf_match_valid()
553 dev_err(dev, "v4l2-async: Invalid match type %u on %p\n", in v4l2_async_nf_match_valid()
554 match->type, match); in v4l2_async_nf_match_valid()
587 ret = v4l2_async_nf_match_valid(notifier, &asc->match); in __v4l2_async_nf_register()
668 if (asc->match.type == V4L2_ASYNC_MATCH_TYPE_FWNODE) in __v4l2_async_nf_cleanup()
669 fwnode_handle_put(asc->match.fwnode); in __v4l2_async_nf_cleanup()
710 asc->match.type = V4L2_ASYNC_MATCH_TYPE_FWNODE; in __v4l2_async_nf_add_fwnode()
711 asc->match.fwnode = fwnode_handle_get(fwnode); in __v4l2_async_nf_add_fwnode()
752 asc->match.type = V4L2_ASYNC_MATCH_TYPE_I2C; in __v4l2_async_nf_add_i2c()
753 asc->match.i2c.adapter_id = adapter_id; in __v4l2_async_nf_add_i2c()
754 asc->match.i2c.address = address; in __v4l2_async_nf_add_i2c()
891 struct v4l2_async_match_desc *match) in print_waiting_match() argument
893 switch (match->type) { in print_waiting_match()
895 seq_printf(s, " [i2c] dev=%d-%04x\n", match->i2c.adapter_id, in print_waiting_match()
896 match->i2c.address); in print_waiting_match()
899 struct fwnode_handle *devnode, *fwnode = match->fwnode; in print_waiting_match()
936 print_waiting_match(s, &asc->match); in pending_subdevs_show()