Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/staging/greybus/
Dhd.h18 int (*cport_allocate)(struct gb_host_device *hd, int cport_id,
20 void (*cport_release)(struct gb_host_device *hd, u16 cport_id);
21 int (*cport_enable)(struct gb_host_device *hd, u16 cport_id,
23 int (*cport_disable)(struct gb_host_device *hd, u16 cport_id);
24 int (*cport_connected)(struct gb_host_device *hd, u16 cport_id);
25 int (*cport_flush)(struct gb_host_device *hd, u16 cport_id);
26 int (*cport_shutdown)(struct gb_host_device *hd, u16 cport_id,
28 int (*cport_quiesce)(struct gb_host_device *hd, u16 cport_id,
30 int (*cport_clear)(struct gb_host_device *hd, u16 cport_id);
35 int (*latency_tag_enable)(struct gb_host_device *hd, u16 cport_id);
[all …]
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.c366 gb_message_cport_pack(struct gb_operation_msg_hdr *header, u16 cport_id) in gb_message_cport_pack() argument
368 header->pad[0] = cport_id; in gb_message_cport_pack()
380 u16 cport_id = header->pad[0]; in gb_message_cport_unpack() local
384 return cport_id; in gb_message_cport_unpack()
391 static int message_send(struct gb_host_device *hd, u16 cport_id, in message_send() argument
406 if (!cport_id_valid(hd, cport_id)) { in message_send()
407 dev_err(&udev->dev, "invalid cport %u\n", cport_id); in message_send()
421 gb_message_cport_pack(message->header, cport_id); in message_send()
489 static int es2_cport_allocate(struct gb_host_device *hd, int cport_id, in es2_cport_allocate() argument
496 switch (cport_id) { in es2_cport_allocate()
[all …]
Darpc.h86 __le16 cport_id; member
90 __le16 cport_id; member
96 __le16 cport_id; member
100 __le16 cport_id; member
104 __le16 cport_id; member
Dconnection.c26 static bool gb_connection_cport_in_use(struct gb_interface *intf, u16 cport_id) in gb_connection_cport_in_use() argument
33 connection->intf_cport_id == cport_id) in gb_connection_cport_in_use()
58 gb_connection_hd_find(struct gb_host_device *hd, u16 cport_id) in gb_connection_hd_find() argument
65 if (connection->hd_cport_id == cport_id) { in gb_connection_hd_find()
80 void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id, in greybus_data_rcvd() argument
87 connection = gb_connection_hd_find(hd, cport_id); in greybus_data_rcvd()
112 u16 cport_id = 0; in gb_connection_init_name() local
117 cport_id = connection->intf_cport_id; in gb_connection_init_name()
121 "%u/%u:%u", hd_cport_id, intf_id, cport_id); in gb_connection_init_name()
150 struct gb_bundle *bundle, int cport_id, in _gb_connection_create() argument
[all …]
Dconnection.h68 u16 cport_id, gb_request_handler_t handler);
70 u16 cport_id, gb_request_handler_t handler,
73 u16 cport_id, unsigned long flags);
90 void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id,
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()
Dcontrol.h40 int gb_control_connected_operation(struct gb_control *control, u16 cport_id);
41 int gb_control_disconnected_operation(struct gb_control *control, u16 cport_id);
43 u16 cport_id);
Dcontrol.c132 int gb_control_connected_operation(struct gb_control *control, u16 cport_id) in gb_control_connected_operation() argument
136 request.cport_id = cpu_to_le16(cport_id); in gb_control_connected_operation()
141 int gb_control_disconnected_operation(struct gb_control *control, u16 cport_id) in gb_control_disconnected_operation() argument
145 request.cport_id = cpu_to_le16(cport_id); in gb_control_disconnected_operation()
152 u16 cport_id) in gb_control_disconnecting_operation() argument
166 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()
268 cport_id); in gb_manifest_parse_cports()
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()
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,
Dgreybus_protocols.h164 __le16 cport_id; member
168 __le16 cport_id; member
173 __le16 cport_id; member
Duart.c57 u16 cport_id; member