Lines Matching refs:rpdev
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()
67 static void rpmsg_sample_remove(struct rpmsg_channel *rpdev) in rpmsg_sample_remove() argument
69 dev_info(&rpdev->dev, "rpmsg sample client driver is removed\n"); in rpmsg_sample_remove()