Lines Matching +full:rpmsg +full:- +full:name
1 /* SPDX-License-Identifier: BSD-3-Clause */
20 #include <linux/rpmsg/byteorder.h>
21 #include <uapi/linux/rpmsg.h>
29 * struct rpmsg_channel_info - channel info representation
30 * @name: name of service
35 char name[RPMSG_NAME_SIZE]; member
41 * rpmsg_device - device that belong to the rpmsg bus
43 * @id: device id (used to match between rpmsg drivers and devices)
44 * @driver_override: driver name to force a match
47 * @ept: the rpmsg endpoint of this channel
48 * @announce: if set, rpmsg will announce the creation/removal of this channel
67 * struct rpmsg_endpoint - binds a local rpmsg address to its user
68 * @rpdev: rpmsg channel device
72 * @addr: local rpmsg address
75 * In essence, an rpmsg endpoint represents a listener on the rpmsg bus, as
76 * it binds an rpmsg address with an rx callback handler.
78 * Simple rpmsg drivers shouldn't use this struct directly, because
79 * things just work: every rpmsg driver provides an rx callback upon
80 * registering to the bus, and that callback is then bound to its rpmsg
83 * the rpmsg channel), the driver's handler is invoked to process it.
85 * More complicated drivers though, that do need to allocate additional rpmsg
101 * struct rpmsg_driver - rpmsg driver struct
103 * @id_table: rpmsg ids serviced by this driver
104 * @probe: invoked when a matching rpmsg channel (i.e. device) is found
105 * @remove: invoked when the rpmsg channel is removed
121 return __rpmsg16_to_cpu(rpdev->little_endian, val); in rpmsg16_to_cpu()
129 return __cpu_to_rpmsg16(rpdev->little_endian, val); in cpu_to_rpmsg16()
137 return __rpmsg32_to_cpu(rpdev->little_endian, val); in rpmsg32_to_cpu()
145 return __cpu_to_rpmsg32(rpdev->little_endian, val); in cpu_to_rpmsg32()
153 return __rpmsg64_to_cpu(rpdev->little_endian, val); in rpmsg64_to_cpu()
161 return __cpu_to_rpmsg64(rpdev->little_endian, val); in cpu_to_rpmsg64()
193 return -ENXIO; in rpmsg_register_device()
202 return -ENXIO; in rpmsg_unregister_device()
211 return -ENXIO; in __register_rpmsg_driver()
234 return ERR_PTR(-ENXIO); in rpmsg_create_ept()
242 return -ENXIO; in rpmsg_send()
251 return -ENXIO; in rpmsg_sendto()
261 return -ENXIO; in rpmsg_send_offchannel()
269 return -ENXIO; in rpmsg_trysend()
278 return -ENXIO; in rpmsg_trysendto()
287 return -ENXIO; in rpmsg_trysend_offchannel()
306 * module_rpmsg_driver() - Helper macro for registering an rpmsg driver
309 * Helper macro for rpmsg drivers which do not do anything special in module