Home
last modified time | relevance | path

Searched refs:cport_id (Results 1 – 9 of 9) sorted by relevance

/drivers/greybus/
Dhd.c48 int gb_hd_cport_reserve(struct gb_host_device *hd, u16 cport_id) in gb_hd_cport_reserve() argument
53 ret = ida_simple_get(id_map, cport_id, cport_id + 1, GFP_KERNEL); in gb_hd_cport_reserve()
55 dev_err(&hd->dev, "failed to reserve cport %u\n", cport_id); in gb_hd_cport_reserve()
63 void gb_hd_cport_release_reserved(struct gb_host_device *hd, u16 cport_id) in gb_hd_cport_release_reserved() argument
67 ida_simple_remove(id_map, cport_id); in gb_hd_cport_release_reserved()
72 int gb_hd_cport_allocate(struct gb_host_device *hd, int cport_id, in gb_hd_cport_allocate() argument
79 return hd->driver->cport_allocate(hd, cport_id, flags); in gb_hd_cport_allocate()
81 if (cport_id < 0) { in gb_hd_cport_allocate()
84 } else if (cport_id < hd->num_cports) { in gb_hd_cport_allocate()
85 ida_start = cport_id; in gb_hd_cport_allocate()
[all …]
Des2.c365 gb_message_cport_pack(struct gb_operation_msg_hdr *header, u16 cport_id) in gb_message_cport_pack() argument
367 header->pad[0] = cport_id; in gb_message_cport_pack()
379 u16 cport_id = header->pad[0]; in gb_message_cport_unpack() local
383 return cport_id; in gb_message_cport_unpack()
390 static int message_send(struct gb_host_device *hd, u16 cport_id, in message_send() argument
405 if (!cport_id_valid(hd, cport_id)) { in message_send()
406 dev_err(&udev->dev, "invalid cport %u\n", cport_id); in message_send()
420 gb_message_cport_pack(message->header, cport_id); in message_send()
488 static int es2_cport_allocate(struct gb_host_device *hd, int cport_id, in es2_cport_allocate() argument
495 switch (cport_id) { in es2_cport_allocate()
[all …]
Dconnection.c22 static bool gb_connection_cport_in_use(struct gb_interface *intf, u16 cport_id) in gb_connection_cport_in_use() argument
29 connection->intf_cport_id == cport_id) in gb_connection_cport_in_use()
54 gb_connection_hd_find(struct gb_host_device *hd, u16 cport_id) in gb_connection_hd_find() argument
61 if (connection->hd_cport_id == cport_id) { in gb_connection_hd_find()
76 void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id, in greybus_data_rcvd() argument
83 connection = gb_connection_hd_find(hd, cport_id); in greybus_data_rcvd()
108 u16 cport_id = 0; in gb_connection_init_name() local
113 cport_id = connection->intf_cport_id; in gb_connection_init_name()
117 "%u/%u:%u", hd_cport_id, intf_id, cport_id); in gb_connection_init_name()
146 struct gb_bundle *bundle, int cport_id, in _gb_connection_create() argument
[all …]
Darpc.h40 __le16 cport_id; member
44 __le16 cport_id; member
50 __le16 cport_id; member
54 __le16 cport_id; member
58 __le16 cport_id; member
Dcontrol.c131 int gb_control_connected_operation(struct gb_control *control, u16 cport_id) in gb_control_connected_operation() argument
135 request.cport_id = cpu_to_le16(cport_id); in gb_control_connected_operation()
140 int gb_control_disconnected_operation(struct gb_control *control, u16 cport_id) in gb_control_disconnected_operation() argument
144 request.cport_id = cpu_to_le16(cport_id); in gb_control_disconnected_operation()
151 u16 cport_id) in gb_control_disconnecting_operation() argument
165 request->cport_id = cpu_to_le16(cport_id); in gb_control_disconnecting_operation()
Dmanifest.c235 u16 cport_id; in gb_manifest_parse_cports() local
248 cport_id = le16_to_cpu(desc_cport->id); in gb_manifest_parse_cports()
249 if (cport_id > CPORT_ID_MAX) in gb_manifest_parse_cports()
253 if (cport_id == GB_CONTROL_CPORT_ID) { in gb_manifest_parse_cports()
255 cport_id); in gb_manifest_parse_cports()
265 if (cport_id == le16_to_cpu(desc_cport->id)) { in gb_manifest_parse_cports()
267 "duplicate CPort %u found\n", cport_id); in gb_manifest_parse_cports()
Dgreybus_trace.h97 __field(u16, cport_id) /* CPort of HD side of connection */
107 __entry->cport_id = operation->connection->hd_cport_id;
117 __entry->id, __entry->cport_id, __entry->type, __entry->flags,
/drivers/staging/greybus/
Dfw-core.c68 u16 cport_id; in gb_fw_core_probe() local
78 cport_id = le16_to_cpu(cport_desc->id); in gb_fw_core_probe()
91 connection = gb_connection_create(bundle, cport_id, in gb_fw_core_probe()
112 connection = gb_connection_create(bundle, cport_id, in gb_fw_core_probe()
131 connection = gb_connection_create(bundle, cport_id, in gb_fw_core_probe()
149 connection = gb_connection_create(bundle, cport_id, in gb_fw_core_probe()
Duart.c49 u16 cport_id; member