/linux-3.4.99/include/linux/ |
D | rpmsg.h | 146 struct rpmsg_channel *rpdev; member 197 static inline int rpmsg_send(struct rpmsg_channel *rpdev, void *data, int len) in rpmsg_send() argument 199 u32 src = rpdev->src, dst = rpdev->dst; in rpmsg_send() 201 return rpmsg_send_offchannel_raw(rpdev, src, dst, data, len, true); in rpmsg_send() 223 int rpmsg_sendto(struct rpmsg_channel *rpdev, void *data, int len, u32 dst) in rpmsg_sendto() argument 225 u32 src = rpdev->src; in rpmsg_sendto() 227 return rpmsg_send_offchannel_raw(rpdev, src, dst, data, len, true); in rpmsg_sendto() 251 int rpmsg_send_offchannel(struct rpmsg_channel *rpdev, u32 src, u32 dst, in rpmsg_send_offchannel() argument 254 return rpmsg_send_offchannel_raw(rpdev, src, dst, data, len, true); in rpmsg_send_offchannel() 274 int rpmsg_trysend(struct rpmsg_channel *rpdev, void *data, int len) in rpmsg_trysend() argument [all …]
|
/linux-3.4.99/drivers/rpmsg/ |
D | virtio_rpmsg_bus.c | 125 struct rpmsg_channel *rpdev = to_rpmsg_channel(dev); \ 127 return sprintf(buf, format_string, rpdev->path); \ 147 struct rpmsg_channel *rpdev = to_rpmsg_channel(dev); in modalias_show() local 149 return sprintf(buf, RPMSG_DEVICE_MODALIAS_FMT "\n", rpdev->id.name); in modalias_show() 162 static inline int rpmsg_id_match(const struct rpmsg_channel *rpdev, in rpmsg_id_match() argument 165 return strncmp(id->name, rpdev->id.name, RPMSG_NAME_SIZE) == 0; in rpmsg_id_match() 171 struct rpmsg_channel *rpdev = to_rpmsg_channel(dev); in rpmsg_dev_match() local 177 if (rpmsg_id_match(rpdev, &ids[i])) in rpmsg_dev_match() 185 struct rpmsg_channel *rpdev = to_rpmsg_channel(dev); in rpmsg_uevent() local 188 rpdev->id.name); in rpmsg_uevent() [all …]
|
/linux-3.4.99/samples/rpmsg/ |
D | rpmsg_client_sample.c | 27 static void rpmsg_sample_cb(struct rpmsg_channel *rpdev, void *data, int len, in rpmsg_sample_cb() argument 33 dev_info(&rpdev->dev, "incoming msg %d (src: 0x%x)\n", ++rx_count, src); in rpmsg_sample_cb() 40 dev_info(&rpdev->dev, "goodbye!\n"); in rpmsg_sample_cb() 45 ret = rpmsg_send(rpdev, MSG, strlen(MSG)); in rpmsg_sample_cb() 47 dev_err(&rpdev->dev, "rpmsg_send failed: %d\n", ret); in rpmsg_sample_cb() 50 static int rpmsg_sample_probe(struct rpmsg_channel *rpdev) in rpmsg_sample_probe() argument 54 dev_info(&rpdev->dev, "new channel: 0x%x -> 0x%x!\n", in rpmsg_sample_probe() 55 rpdev->src, rpdev->dst); in rpmsg_sample_probe() 58 ret = rpmsg_send(rpdev, MSG, strlen(MSG)); in rpmsg_sample_probe() 60 dev_err(&rpdev->dev, "rpmsg_send failed: %d\n", ret); in rpmsg_sample_probe() [all …]
|
/linux-3.4.99/drivers/pci/pcie/aer/ |
D | aer_inject.c | 324 struct pci_dev *dev, *rpdev; in aer_inject() local 335 rpdev = pcie_find_root_port(dev); in aer_inject() 336 if (!rpdev) { in aer_inject() 351 rp_pos_cap_err = pci_find_ext_capability(rpdev, PCI_EXT_CAP_ID_ERR); in aer_inject() 414 rperr = __find_aer_error_by_dev(rpdev); in aer_inject() 418 aer_error_init(rperr, pci_domain_nr(rpdev->bus), in aer_inject() 419 rpdev->bus->number, rpdev->devfn, in aer_inject() 456 ret = pci_bus_set_aer_ops(rpdev->bus); in aer_inject() 460 if (find_aer_device(rpdev, &edev)) { in aer_inject()
|
/linux-3.4.99/Documentation/ |
D | rpmsg.txt | 63 int rpmsg_send(struct rpmsg_channel *rpdev, void *data, int len); 78 int rpmsg_sendto(struct rpmsg_channel *rpdev, void *data, int len, u32 dst); 95 int rpmsg_send_offchannel(struct rpmsg_channel *rpdev, u32 src, u32 dst, 113 int rpmsg_trysend(struct rpmsg_channel *rpdev, void *data, int len); 125 int rpmsg_trysendto(struct rpmsg_channel *rpdev, void *data, int len, u32 dst) 139 int rpmsg_trysend_offchannel(struct rpmsg_channel *rpdev, u32 src, u32 dst, 154 struct rpmsg_endpoint *rpmsg_create_ept(struct rpmsg_channel *rpdev, 216 static void rpmsg_sample_cb(struct rpmsg_channel *rpdev, void *data, int len, 223 static int rpmsg_sample_probe(struct rpmsg_channel *rpdev) 227 dev_info(&rpdev->dev, "chnl: 0x%x -> 0x%x\n", rpdev->src, rpdev->dst); [all …]
|