Lines Matching refs:con
19 struct device_connection con = { .id = con_id }; in fwnode_graph_devcon_match() local
24 con.fwnode = fwnode_graph_get_remote_port_parent(ep); in fwnode_graph_devcon_match()
25 if (!fwnode_device_is_available(con.fwnode)) in fwnode_graph_devcon_match()
28 ret = match(&con, -1, data); in fwnode_graph_devcon_match()
29 fwnode_handle_put(con.fwnode); in fwnode_graph_devcon_match()
42 struct device_connection con = { }; in fwnode_devcon_match() local
47 con.fwnode = fwnode_find_reference(fwnode, con_id, i); in fwnode_devcon_match()
48 if (IS_ERR(con.fwnode)) in fwnode_devcon_match()
51 ret = match(&con, -1, data); in fwnode_devcon_match()
52 fwnode_handle_put(con.fwnode); in fwnode_devcon_match()
104 struct device_connection *con; in device_connection_find_match() local
117 list_for_each_entry(con, &devcon_list, list) { in device_connection_find_match()
118 ep = match_string(con->endpoint, 2, devname); in device_connection_find_match()
122 if (con_id && strcmp(con->id, con_id)) in device_connection_find_match()
125 ret = match(con, !ep, data); in device_connection_find_match()
155 static void *device_connection_fwnode_match(struct device_connection *con) in device_connection_fwnode_match() argument
161 dev = bus_find_device_by_fwnode(bus, con->fwnode); in device_connection_fwnode_match()
162 if (dev && !strncmp(dev_name(dev), con->id, strlen(con->id))) in device_connection_fwnode_match()
171 static void *generic_match(struct device_connection *con, int ep, void *data) in generic_match() argument
176 if (con->fwnode) in generic_match()
177 return device_connection_fwnode_match(con); in generic_match()
180 dev = bus_find_device_by_name(bus, NULL, con->endpoint[ep]); in generic_match()
213 void device_connection_add(struct device_connection *con) in device_connection_add() argument
216 list_add_tail(&con->list, &devcon_list); in device_connection_add()
225 void device_connection_remove(struct device_connection *con) in device_connection_remove() argument
228 list_del(&con->list); in device_connection_remove()