cport_id 40 drivers/greybus/arpc.h __le16 cport_id; cport_id 44 drivers/greybus/arpc.h __le16 cport_id; cport_id 50 drivers/greybus/arpc.h __le16 cport_id; cport_id 54 drivers/greybus/arpc.h __le16 cport_id; cport_id 58 drivers/greybus/arpc.h __le16 cport_id; cport_id 22 drivers/greybus/connection.c static bool gb_connection_cport_in_use(struct gb_interface *intf, u16 cport_id) cport_id 29 drivers/greybus/connection.c connection->intf_cport_id == cport_id) cport_id 54 drivers/greybus/connection.c gb_connection_hd_find(struct gb_host_device *hd, u16 cport_id) cport_id 61 drivers/greybus/connection.c if (connection->hd_cport_id == cport_id) { cport_id 76 drivers/greybus/connection.c void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id, cport_id 83 drivers/greybus/connection.c connection = gb_connection_hd_find(hd, cport_id); cport_id 108 drivers/greybus/connection.c u16 cport_id = 0; cport_id 113 drivers/greybus/connection.c cport_id = connection->intf_cport_id; cport_id 117 drivers/greybus/connection.c "%u/%u:%u", hd_cport_id, intf_id, cport_id); cport_id 146 drivers/greybus/connection.c struct gb_bundle *bundle, int cport_id, cport_id 155 drivers/greybus/connection.c if (intf && gb_connection_cport_in_use(intf, cport_id)) { cport_id 156 drivers/greybus/connection.c dev_err(&intf->dev, "cport %u already in use\n", cport_id); cport_id 175 drivers/greybus/connection.c connection->intf_cport_id = cport_id; cport_id 244 drivers/greybus/connection.c gb_connection_create(struct gb_bundle *bundle, u16 cport_id, cport_id 249 drivers/greybus/connection.c return _gb_connection_create(intf->hd, -1, intf, bundle, cport_id, cport_id 255 drivers/greybus/connection.c gb_connection_create_flags(struct gb_bundle *bundle, u16 cport_id, cport_id 264 drivers/greybus/connection.c return _gb_connection_create(intf->hd, -1, intf, bundle, cport_id, cport_id 270 drivers/greybus/connection.c gb_connection_create_offloaded(struct gb_bundle *bundle, u16 cport_id, cport_id 275 drivers/greybus/connection.c return gb_connection_create_flags(bundle, cport_id, NULL, flags); cport_id 458 drivers/greybus/connection.c u16 cport_id = connection->intf_cport_id; cport_id 469 drivers/greybus/connection.c ret = gb_control_connected_operation(control, cport_id); cport_id 483 drivers/greybus/connection.c u16 cport_id = connection->intf_cport_id; cport_id 491 drivers/greybus/connection.c ret = gb_control_disconnecting_operation(control, cport_id); cport_id 503 drivers/greybus/connection.c u16 cport_id = connection->intf_cport_id; cport_id 526 drivers/greybus/connection.c ret = gb_control_disconnected_operation(control, cport_id); cport_id 131 drivers/greybus/control.c int gb_control_connected_operation(struct gb_control *control, u16 cport_id) cport_id 135 drivers/greybus/control.c request.cport_id = cpu_to_le16(cport_id); cport_id 140 drivers/greybus/control.c int gb_control_disconnected_operation(struct gb_control *control, u16 cport_id) cport_id 144 drivers/greybus/control.c request.cport_id = cpu_to_le16(cport_id); cport_id 151 drivers/greybus/control.c u16 cport_id) cport_id 165 drivers/greybus/control.c request->cport_id = cpu_to_le16(cport_id); cport_id 365 drivers/greybus/es2.c gb_message_cport_pack(struct gb_operation_msg_hdr *header, u16 cport_id) cport_id 367 drivers/greybus/es2.c header->pad[0] = cport_id; cport_id 379 drivers/greybus/es2.c u16 cport_id = header->pad[0]; cport_id 383 drivers/greybus/es2.c return cport_id; cport_id 390 drivers/greybus/es2.c static int message_send(struct gb_host_device *hd, u16 cport_id, cport_id 405 drivers/greybus/es2.c if (!cport_id_valid(hd, cport_id)) { cport_id 406 drivers/greybus/es2.c dev_err(&udev->dev, "invalid cport %u\n", cport_id); cport_id 420 drivers/greybus/es2.c gb_message_cport_pack(message->header, cport_id); cport_id 488 drivers/greybus/es2.c static int es2_cport_allocate(struct gb_host_device *hd, int cport_id, cport_id 495 drivers/greybus/es2.c switch (cport_id) { cport_id 498 drivers/greybus/es2.c dev_err(&hd->dev, "cport %d not available\n", cport_id); cport_id 514 drivers/greybus/es2.c if (cport_id < 0) { cport_id 517 drivers/greybus/es2.c } else if (cport_id < hd->num_cports) { cport_id 518 drivers/greybus/es2.c ida_start = cport_id; cport_id 519 drivers/greybus/es2.c ida_end = cport_id + 1; cport_id 521 drivers/greybus/es2.c dev_err(&hd->dev, "cport %d not available\n", cport_id); cport_id 528 drivers/greybus/es2.c static void es2_cport_release(struct gb_host_device *hd, u16 cport_id) cport_id 532 drivers/greybus/es2.c switch (cport_id) { cport_id 538 drivers/greybus/es2.c ida_simple_remove(&hd->cport_id_map, cport_id); cport_id 541 drivers/greybus/es2.c static int cport_enable(struct gb_host_device *hd, u16 cport_id, cport_id 563 drivers/greybus/es2.c cport_id, connection_flags); cport_id 568 drivers/greybus/es2.c USB_RECIP_INTERFACE, cport_id, 0, cport_id 572 drivers/greybus/es2.c cport_id); cport_id 586 drivers/greybus/es2.c static int es2_cport_connected(struct gb_host_device *hd, u16 cport_id) cport_id 593 drivers/greybus/es2.c req.cport_id = cpu_to_le16(cport_id); cport_id 598 drivers/greybus/es2.c cport_id, ret); cport_id 605 drivers/greybus/es2.c static int es2_cport_flush(struct gb_host_device *hd, u16 cport_id) cport_id 612 drivers/greybus/es2.c req.cport_id = cpu_to_le16(cport_id); cport_id 616 drivers/greybus/es2.c dev_err(dev, "failed to flush cport %u: %d\n", cport_id, ret); cport_id 623 drivers/greybus/es2.c static int es2_cport_shutdown(struct gb_host_device *hd, u16 cport_id, cport_id 635 drivers/greybus/es2.c req.cport_id = cpu_to_le16(cport_id); cport_id 642 drivers/greybus/es2.c cport_id, ret, result); cport_id 649 drivers/greybus/es2.c static int es2_cport_quiesce(struct gb_host_device *hd, u16 cport_id, cport_id 664 drivers/greybus/es2.c req.cport_id = cpu_to_le16(cport_id); cport_id 671 drivers/greybus/es2.c cport_id, ret, result); cport_id 678 drivers/greybus/es2.c static int es2_cport_clear(struct gb_host_device *hd, u16 cport_id) cport_id 685 drivers/greybus/es2.c req.cport_id = cpu_to_le16(cport_id); cport_id 689 drivers/greybus/es2.c dev_err(dev, "failed to clear cport %u: %d\n", cport_id, ret); cport_id 696 drivers/greybus/es2.c static int latency_tag_enable(struct gb_host_device *hd, u16 cport_id) cport_id 705 drivers/greybus/es2.c USB_RECIP_INTERFACE, cport_id, 0, NULL, cport_id 710 drivers/greybus/es2.c cport_id); cport_id 714 drivers/greybus/es2.c static int latency_tag_disable(struct gb_host_device *hd, u16 cport_id) cport_id 723 drivers/greybus/es2.c USB_RECIP_INTERFACE, cport_id, 0, NULL, cport_id 728 drivers/greybus/es2.c cport_id); cport_id 823 drivers/greybus/es2.c u16 cport_id; cport_id 844 drivers/greybus/es2.c cport_id = gb_message_cport_unpack(header); cport_id 846 drivers/greybus/es2.c if (cport_id_valid(hd, cport_id)) { cport_id 847 drivers/greybus/es2.c greybus_data_rcvd(hd, cport_id, urb->transfer_buffer, cport_id 850 drivers/greybus/es2.c dev_err(dev, "invalid cport id %u received\n", cport_id); cport_id 97 drivers/greybus/greybus_trace.h __field(u16, cport_id) /* CPort of HD side of connection */ cport_id 107 drivers/greybus/greybus_trace.h __entry->cport_id = operation->connection->hd_cport_id; cport_id 117 drivers/greybus/greybus_trace.h __entry->id, __entry->cport_id, __entry->type, __entry->flags, cport_id 48 drivers/greybus/hd.c int gb_hd_cport_reserve(struct gb_host_device *hd, u16 cport_id) cport_id 53 drivers/greybus/hd.c ret = ida_simple_get(id_map, cport_id, cport_id + 1, GFP_KERNEL); cport_id 55 drivers/greybus/hd.c dev_err(&hd->dev, "failed to reserve cport %u\n", cport_id); cport_id 63 drivers/greybus/hd.c void gb_hd_cport_release_reserved(struct gb_host_device *hd, u16 cport_id) cport_id 67 drivers/greybus/hd.c ida_simple_remove(id_map, cport_id); cport_id 72 drivers/greybus/hd.c int gb_hd_cport_allocate(struct gb_host_device *hd, int cport_id, cport_id 79 drivers/greybus/hd.c return hd->driver->cport_allocate(hd, cport_id, flags); cport_id 81 drivers/greybus/hd.c if (cport_id < 0) { cport_id 84 drivers/greybus/hd.c } else if (cport_id < hd->num_cports) { cport_id 85 drivers/greybus/hd.c ida_start = cport_id; cport_id 86 drivers/greybus/hd.c ida_end = cport_id + 1; cport_id 88 drivers/greybus/hd.c dev_err(&hd->dev, "cport %d not available\n", cport_id); cport_id 96 drivers/greybus/hd.c void gb_hd_cport_release(struct gb_host_device *hd, u16 cport_id) cport_id 99 drivers/greybus/hd.c hd->driver->cport_release(hd, cport_id); cport_id 103 drivers/greybus/hd.c ida_simple_remove(&hd->cport_id_map, cport_id); cport_id 235 drivers/greybus/manifest.c u16 cport_id; cport_id 248 drivers/greybus/manifest.c cport_id = le16_to_cpu(desc_cport->id); cport_id 249 drivers/greybus/manifest.c if (cport_id > CPORT_ID_MAX) cport_id 253 drivers/greybus/manifest.c if (cport_id == GB_CONTROL_CPORT_ID) { cport_id 255 drivers/greybus/manifest.c cport_id); cport_id 265 drivers/greybus/manifest.c if (cport_id == le16_to_cpu(desc_cport->id)) { cport_id 267 drivers/greybus/manifest.c "duplicate CPort %u found\n", cport_id); cport_id 68 drivers/staging/greybus/fw-core.c u16 cport_id; cport_id 78 drivers/staging/greybus/fw-core.c cport_id = le16_to_cpu(cport_desc->id); cport_id 91 drivers/staging/greybus/fw-core.c connection = gb_connection_create(bundle, cport_id, cport_id 112 drivers/staging/greybus/fw-core.c connection = gb_connection_create(bundle, cport_id, cport_id 131 drivers/staging/greybus/fw-core.c connection = gb_connection_create(bundle, cport_id, cport_id 149 drivers/staging/greybus/fw-core.c connection = gb_connection_create(bundle, cport_id, cport_id 57 drivers/staging/greybus/uart.c u16 cport_id; cport_id 146 include/linux/greybus.h static inline bool cport_id_valid(struct gb_host_device *hd, u16 cport_id) cport_id 148 include/linux/greybus.h return cport_id != CPORT_ID_BAD && cport_id < hd->num_cports; cport_id 71 include/linux/greybus/connection.h u16 cport_id, gb_request_handler_t handler); cport_id 73 include/linux/greybus/connection.h u16 cport_id, gb_request_handler_t handler, cport_id 76 include/linux/greybus/connection.h u16 cport_id, unsigned long flags); cport_id 93 include/linux/greybus/connection.h void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id, cport_id 43 include/linux/greybus/control.h int gb_control_connected_operation(struct gb_control *control, u16 cport_id); cport_id 44 include/linux/greybus/control.h int gb_control_disconnected_operation(struct gb_control *control, u16 cport_id); cport_id 46 include/linux/greybus/control.h u16 cport_id); cport_id 120 include/linux/greybus/greybus_protocols.h __le16 cport_id; cport_id 124 include/linux/greybus/greybus_protocols.h __le16 cport_id; cport_id 129 include/linux/greybus/greybus_protocols.h __le16 cport_id; cport_id 21 include/linux/greybus/hd.h int (*cport_allocate)(struct gb_host_device *hd, int cport_id, cport_id 23 include/linux/greybus/hd.h void (*cport_release)(struct gb_host_device *hd, u16 cport_id); cport_id 24 include/linux/greybus/hd.h int (*cport_enable)(struct gb_host_device *hd, u16 cport_id, cport_id 26 include/linux/greybus/hd.h int (*cport_disable)(struct gb_host_device *hd, u16 cport_id); cport_id 27 include/linux/greybus/hd.h int (*cport_connected)(struct gb_host_device *hd, u16 cport_id); cport_id 28 include/linux/greybus/hd.h int (*cport_flush)(struct gb_host_device *hd, u16 cport_id); cport_id 29 include/linux/greybus/hd.h int (*cport_shutdown)(struct gb_host_device *hd, u16 cport_id, cport_id 31 include/linux/greybus/hd.h int (*cport_quiesce)(struct gb_host_device *hd, u16 cport_id, cport_id 33 include/linux/greybus/hd.h int (*cport_clear)(struct gb_host_device *hd, u16 cport_id); cport_id 38 include/linux/greybus/hd.h int (*latency_tag_enable)(struct gb_host_device *hd, u16 cport_id); cport_id 39 include/linux/greybus/hd.h int (*latency_tag_disable)(struct gb_host_device *hd, u16 cport_id); cport_id 65 include/linux/greybus/hd.h int gb_hd_cport_reserve(struct gb_host_device *hd, u16 cport_id); cport_id 66 include/linux/greybus/hd.h void gb_hd_cport_release_reserved(struct gb_host_device *hd, u16 cport_id); cport_id 67 include/linux/greybus/hd.h int gb_hd_cport_allocate(struct gb_host_device *hd, int cport_id, cport_id 69 include/linux/greybus/hd.h void gb_hd_cport_release(struct gb_host_device *hd, u16 cport_id);