Lines Matching refs:cport_id
22 static bool gb_connection_cport_in_use(struct gb_interface *intf, u16 cport_id)
29 connection->intf_cport_id == cport_id)
54 gb_connection_hd_find(struct gb_host_device *hd, u16 cport_id)
61 if (connection->hd_cport_id == cport_id) {
76 void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id,
83 connection = gb_connection_hd_find(hd, cport_id);
108 u16 cport_id = 0;
113 cport_id = connection->intf_cport_id;
117 "%u/%u:%u", hd_cport_id, intf_id, cport_id);
126 * @cport_id: remote-interface cport id, or 0 for static connections
146 struct gb_bundle *bundle, int cport_id,
155 if (intf && gb_connection_cport_in_use(intf, cport_id)) {
156 dev_err(&intf->dev, "cport %u already in use\n", cport_id);
175 connection->intf_cport_id = cport_id;
244 gb_connection_create(struct gb_bundle *bundle, u16 cport_id,
249 return _gb_connection_create(intf->hd, -1, intf, bundle, cport_id,
255 gb_connection_create_flags(struct gb_bundle *bundle, u16 cport_id,
264 return _gb_connection_create(intf->hd, -1, intf, bundle, cport_id,
270 gb_connection_create_offloaded(struct gb_bundle *bundle, u16 cport_id,
275 return gb_connection_create_flags(bundle, cport_id, NULL, flags);
455 u16 cport_id = connection->intf_cport_id;
466 ret = gb_control_connected_operation(control, cport_id);
480 u16 cport_id = connection->intf_cport_id;
488 ret = gb_control_disconnecting_operation(control, cport_id);
500 u16 cport_id = connection->intf_cport_id;
523 ret = gb_control_disconnected_operation(control, cport_id);