Home
last modified time | relevance | path

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

/linux-6.3-rc2/include/linux/greybus/
A Dhd.h21 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);
65 int gb_hd_cport_reserve(struct gb_host_device *hd, u16 cport_id);
[all …]
A Dconnection.h71 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,
A Dcontrol.h43 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);
A Dgreybus_protocols.h120 __le16 cport_id; member
124 __le16 cport_id; member
129 __le16 cport_id; member
/linux-6.3-rc2/drivers/greybus/
A Dhd.c53 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()
67 ida_simple_remove(id_map, cport_id); in gb_hd_cport_release_reserved()
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()
86 ida_end = cport_id + 1; in gb_hd_cport_allocate()
88 dev_err(&hd->dev, "cport %d not available\n", cport_id); in gb_hd_cport_allocate()
99 hd->driver->cport_release(hd, cport_id); in gb_hd_cport_release()
[all …]
A Des2.c383 return cport_id; in gb_message_cport_unpack()
572 cport_id); in cport_enable()
590 req.cport_id = cpu_to_le16(cport_id); in es2_cport_connected()
595 cport_id, ret); in es2_cport_connected()
609 req.cport_id = cpu_to_le16(cport_id); in es2_cport_flush()
632 req.cport_id = cpu_to_le16(cport_id); in es2_cport_shutdown()
661 req.cport_id = cpu_to_le16(cport_id); in es2_cport_quiesce()
682 req.cport_id = cpu_to_le16(cport_id); in es2_cport_clear()
707 cport_id); in latency_tag_enable()
725 cport_id); in latency_tag_disable()
[all …]
A Dconnection.c29 connection->intf_cport_id == cport_id) in gb_connection_cport_in_use()
61 if (connection->hd_cport_id == cport_id) { in gb_connection_hd_find()
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
175 connection->intf_cport_id = cport_id; in _gb_connection_create()
455 u16 cport_id = connection->intf_cport_id; in gb_connection_control_connected() local
480 u16 cport_id = connection->intf_cport_id; in gb_connection_control_disconnecting() local
[all …]
A 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
A 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()
A 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()
A 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,
/linux-6.3-rc2/drivers/staging/greybus/
A 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()
A Duart.c49 u16 cport_id; member
/linux-6.3-rc2/include/linux/
A Dgreybus.h146 static inline bool cport_id_valid(struct gb_host_device *hd, u16 cport_id) in cport_id_valid() argument
148 return cport_id != CPORT_ID_BAD && cport_id < hd->num_cports; in cport_id_valid()

Completed in 34 milliseconds