Lines Matching +full:rpmsg +full:- +full:name
2 * Remote processor messaging - sample client driver
7 * Ohad Ben-Cohen <ohad@wizery.com>
22 #include <linux/rpmsg.h>
35 struct instance_data *idata = dev_get_drvdata(&rpdev->dev); in rpmsg_sample_cb()
37 dev_info(&rpdev->dev, "incoming msg %d (src: 0x%x)\n", in rpmsg_sample_cb()
38 ++idata->rx_count, src); in rpmsg_sample_cb()
44 if (idata->rx_count >= MSG_LIMIT) { in rpmsg_sample_cb()
45 dev_info(&rpdev->dev, "goodbye!\n"); in rpmsg_sample_cb()
50 ret = rpmsg_send(rpdev->ept, MSG, strlen(MSG)); in rpmsg_sample_cb()
52 dev_err(&rpdev->dev, "rpmsg_send failed: %d\n", ret); in rpmsg_sample_cb()
62 dev_info(&rpdev->dev, "new channel: 0x%x -> 0x%x!\n", in rpmsg_sample_probe()
63 rpdev->src, rpdev->dst); in rpmsg_sample_probe()
65 idata = devm_kzalloc(&rpdev->dev, sizeof(*idata), GFP_KERNEL); in rpmsg_sample_probe()
67 return -ENOMEM; in rpmsg_sample_probe()
69 dev_set_drvdata(&rpdev->dev, idata); in rpmsg_sample_probe()
72 ret = rpmsg_send(rpdev->ept, MSG, strlen(MSG)); in rpmsg_sample_probe()
74 dev_err(&rpdev->dev, "rpmsg_send failed: %d\n", ret); in rpmsg_sample_probe()
83 dev_info(&rpdev->dev, "rpmsg sample client driver is removed\n"); in rpmsg_sample_remove()
87 { .name = "rpmsg-client-sample" },
90 MODULE_DEVICE_TABLE(rpmsg, rpmsg_driver_sample_id_table);
93 .drv.name = KBUILD_MODNAME,