Lines Matching refs:rpdev
25 static int rpmsg_sample_cb(struct rpmsg_device *rpdev, void *data, int len, in rpmsg_sample_cb() argument
29 struct instance_data *idata = dev_get_drvdata(&rpdev->dev); in rpmsg_sample_cb()
31 dev_info(&rpdev->dev, "incoming msg %d (src: 0x%x)\n", in rpmsg_sample_cb()
39 dev_info(&rpdev->dev, "goodbye!\n"); in rpmsg_sample_cb()
44 ret = rpmsg_send(rpdev->ept, MSG, strlen(MSG)); in rpmsg_sample_cb()
46 dev_err(&rpdev->dev, "rpmsg_send failed: %d\n", ret); in rpmsg_sample_cb()
51 static int rpmsg_sample_probe(struct rpmsg_device *rpdev) in rpmsg_sample_probe() argument
56 dev_info(&rpdev->dev, "new channel: 0x%x -> 0x%x!\n", in rpmsg_sample_probe()
57 rpdev->src, rpdev->dst); in rpmsg_sample_probe()
59 idata = devm_kzalloc(&rpdev->dev, sizeof(*idata), GFP_KERNEL); in rpmsg_sample_probe()
63 dev_set_drvdata(&rpdev->dev, idata); in rpmsg_sample_probe()
66 ret = rpmsg_send(rpdev->ept, MSG, strlen(MSG)); in rpmsg_sample_probe()
68 dev_err(&rpdev->dev, "rpmsg_send failed: %d\n", ret); in rpmsg_sample_probe()
75 static void rpmsg_sample_remove(struct rpmsg_device *rpdev) in rpmsg_sample_remove() argument
77 dev_info(&rpdev->dev, "rpmsg sample client driver is removed\n"); in rpmsg_sample_remove()