/linux-master/include/linux/greybus/ |
H A D | greybus_protocols.h | 120 __le16 cport_id; member in struct:gb_control_connected_request 124 __le16 cport_id; member in struct:gb_control_disconnecting_request 129 __le16 cport_id; member in struct:gb_control_disconnected_request
|
H A D | hd.h | 21 int (*cport_allocate)(struct gb_host_device *hd, int cport_id, 23 void (*cport_release)(struct gb_host_device *hd, u16 cport_id); 24 int (*cport_enable)(struct gb_host_device *hd, u16 cport_id, 26 int (*cport_disable)(struct gb_host_device *hd, u16 cport_id); 27 int (*cport_connected)(struct gb_host_device *hd, u16 cport_id); 28 int (*cport_flush)(struct gb_host_device *hd, u16 cport_id); 29 int (*cport_shutdown)(struct gb_host_device *hd, u16 cport_id, 31 int (*cport_quiesce)(struct gb_host_device *hd, u16 cport_id, 33 int (*cport_clear)(struct gb_host_device *hd, u16 cport_id); 38 int (*latency_tag_enable)(struct gb_host_device *hd, u16 cport_id); [all...] |
H A D | connection.h | 71 u16 cport_id, gb_request_handler_t handler); 73 u16 cport_id, gb_request_handler_t handler, 76 u16 cport_id, unsigned long flags); 93 void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id,
|
H A D | control.h | 43 int gb_control_connected_operation(struct gb_control *control, u16 cport_id); 44 int gb_control_disconnected_operation(struct gb_control *control, u16 cport_id); 46 u16 cport_id);
|
/linux-master/include/linux/ |
H A D | greybus.h | 116 static inline bool cport_id_valid(struct gb_host_device *hd, u16 cport_id) argument 118 return cport_id != CPORT_ID_BAD && cport_id < hd->num_cports;
|
/linux-master/drivers/greybus/ |
H A D | hd.c | 48 int gb_hd_cport_reserve(struct gb_host_device *hd, u16 cport_id) argument 53 ret = ida_alloc_range(id_map, cport_id, cport_id, GFP_KERNEL); 55 dev_err(&hd->dev, "failed to reserve cport %u\n", cport_id); 63 void gb_hd_cport_release_reserved(struct gb_host_device *hd, u16 cport_id) argument 67 ida_free(id_map, cport_id); 72 int gb_hd_cport_allocate(struct gb_host_device *hd, int cport_id, argument 79 return hd->driver->cport_allocate(hd, cport_id, flags); 81 if (cport_id < 0) { 84 } else if (cport_id < h 96 gb_hd_cport_release(struct gb_host_device *hd, u16 cport_id) argument [all...] |
H A D | es2.c | 365 gb_message_cport_pack(struct gb_operation_msg_hdr *header, u16 cport_id) argument 367 header->pad[0] = cport_id; 379 u16 cport_id = header->pad[0]; local 383 return cport_id; 390 static int message_send(struct gb_host_device *hd, u16 cport_id, argument 405 if (!cport_id_valid(hd, cport_id)) { 406 dev_err(&udev->dev, "invalid cport %u\n", cport_id); 420 gb_message_cport_pack(message->header, cport_id); 488 static int es2_cport_allocate(struct gb_host_device *hd, int cport_id, argument 495 switch (cport_id) { 528 es2_cport_release(struct gb_host_device *hd, u16 cport_id) argument 541 cport_enable(struct gb_host_device *hd, u16 cport_id, unsigned long flags) argument 583 es2_cport_connected(struct gb_host_device *hd, u16 cport_id) argument 602 es2_cport_flush(struct gb_host_device *hd, u16 cport_id) argument 620 es2_cport_shutdown(struct gb_host_device *hd, u16 cport_id, u8 phase, unsigned int timeout) argument 646 es2_cport_quiesce(struct gb_host_device *hd, u16 cport_id, size_t peer_space, unsigned int timeout) argument 675 es2_cport_clear(struct gb_host_device *hd, u16 cport_id) argument 693 latency_tag_enable(struct gb_host_device *hd, u16 cport_id) argument 711 latency_tag_disable(struct gb_host_device *hd, u16 cport_id) argument 820 u16 cport_id; local [all...] |
H A D | gb-beagleplay.c | 106 u16 cport_id = le16_to_cpu(gb_frame->cport); local 110 gb_frame->hdr.operation_id, gb_frame->hdr.type, cport_id, gb_frame->hdr.result); 112 greybus_data_rcvd(bg->gb_hd, cport_id, (u8 *)&gb_frame->hdr, gb_msg_len); 371 __le16 cport_id = cpu_to_le16(cport); local 379 payloads[0].buf = &cport_id; 380 payloads[0].len = sizeof(cport_id);
|
H A D | control.c | 131 int gb_control_connected_operation(struct gb_control *control, u16 cport_id) argument 135 request.cport_id = cpu_to_le16(cport_id); 140 int gb_control_disconnected_operation(struct gb_control *control, u16 cport_id) argument 144 request.cport_id = cpu_to_le16(cport_id); 151 u16 cport_id) 165 request->cport_id = cpu_to_le16(cport_id); 150 gb_control_disconnecting_operation(struct gb_control *control, u16 cport_id) argument
|
H A D | connection.c | 22 static bool gb_connection_cport_in_use(struct gb_interface *intf, u16 cport_id) argument 29 connection->intf_cport_id == cport_id) 54 gb_connection_hd_find(struct gb_host_device *hd, u16 cport_id) argument 61 if (connection->hd_cport_id == cport_id) { 76 void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id, argument 83 connection = gb_connection_hd_find(hd, cport_id); 108 u16 cport_id = 0; local 113 cport_id = connection->intf_cport_id; 117 "%u/%u:%u", hd_cport_id, intf_id, cport_id); 126 * @cport_id 144 _gb_connection_create(struct gb_host_device *hd, int hd_cport_id, struct gb_interface *intf, struct gb_bundle *bundle, int cport_id, gb_request_handler_t handler, unsigned long flags) argument 244 gb_connection_create(struct gb_bundle *bundle, u16 cport_id, gb_request_handler_t handler) argument 255 gb_connection_create_flags(struct gb_bundle *bundle, u16 cport_id, gb_request_handler_t handler, unsigned long flags) argument 270 gb_connection_create_offloaded(struct gb_bundle *bundle, u16 cport_id, unsigned long flags) argument 455 u16 cport_id = connection->intf_cport_id; local 480 u16 cport_id = connection->intf_cport_id; local 500 u16 cport_id = connection->intf_cport_id; local [all...] |
H A D | greybus_trace.h | 97 __field(u16, cport_id) /* CPort of HD side of connection */ 107 __entry->cport_id = operation->connection->hd_cport_id; 116 TP_printk("id=%04x type=0x%02x cport_id=%04x flags=0x%lx active=%d waiters=%d errno=%d", 117 __entry->id, __entry->cport_id, __entry->type, __entry->flags, 172 /* name contains "hd_cport_id/intf_id:cport_id" */
|
H A D | arpc.h | 40 __le16 cport_id; member in struct:arpc_cport_connected_req 44 __le16 cport_id; member in struct:arpc_cport_quiesce_req 50 __le16 cport_id; member in struct:arpc_cport_clear_req 54 __le16 cport_id; member in struct:arpc_cport_flush_req 58 __le16 cport_id; member in struct:arpc_cport_shutdown_req
|
H A D | manifest.c | 235 u16 cport_id; local 248 cport_id = le16_to_cpu(desc_cport->id); 249 if (cport_id > CPORT_ID_MAX) 252 /* Nothing else should have its cport_id as control cport id */ 253 if (cport_id == GB_CONTROL_CPORT_ID) { 255 cport_id); 265 if (cport_id == le16_to_cpu(desc_cport->id)) { 267 "duplicate CPort %u found\n", cport_id);
|
/linux-master/drivers/staging/greybus/ |
H A D | uart.c | 49 u16 cport_id; member in struct:gb_tty
|
H A D | fw-core.c | 68 u16 cport_id; local 78 cport_id = le16_to_cpu(cport_desc->id); 91 connection = gb_connection_create(bundle, cport_id, 112 connection = gb_connection_create(bundle, cport_id, 131 connection = gb_connection_create(bundle, cport_id, 149 connection = gb_connection_create(bundle, cport_id,
|