Lines Matching refs:rpdev
31 static int rpmsg_sample_cb(struct rpmsg_device *rpdev, void *data, int len, in rpmsg_sample_cb() argument
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()
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()
57 static int rpmsg_sample_probe(struct rpmsg_device *rpdev) in rpmsg_sample_probe() argument
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()
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()
81 static void rpmsg_sample_remove(struct rpmsg_device *rpdev) in rpmsg_sample_remove() argument
83 dev_info(&rpdev->dev, "rpmsg sample client driver is removed\n"); in rpmsg_sample_remove()