Lines Matching refs:chinfo
481 struct rpmsg_channel_info *chinfo = data; in rpmsg_channel_match() local
484 if (chinfo->src != RPMSG_ADDR_ANY && chinfo->src != rpdev->src) in rpmsg_channel_match()
487 if (chinfo->dst != RPMSG_ADDR_ANY && chinfo->dst != rpdev->dst) in rpmsg_channel_match()
490 if (strncmp(chinfo->name, rpdev->id.name, RPMSG_NAME_SIZE)) in rpmsg_channel_match()
503 struct rpmsg_channel_info *chinfo) in rpmsg_create_channel() argument
510 tmp = device_find_child(dev, chinfo, rpmsg_channel_match); in rpmsg_create_channel()
515 chinfo->name, chinfo->src, chinfo->dst); in rpmsg_create_channel()
526 rpdev->src = chinfo->src; in rpmsg_create_channel()
527 rpdev->dst = chinfo->dst; in rpmsg_create_channel()
535 strncpy(rpdev->id.name, chinfo->name, RPMSG_NAME_SIZE); in rpmsg_create_channel()
559 struct rpmsg_channel_info *chinfo) in rpmsg_destroy_channel() argument
564 dev = device_find_child(&vdev->dev, chinfo, rpmsg_channel_match); in rpmsg_destroy_channel()
883 struct rpmsg_channel_info chinfo; in rpmsg_ns_cb() local
915 strncpy(chinfo.name, msg->name, sizeof(chinfo.name)); in rpmsg_ns_cb()
916 chinfo.src = RPMSG_ADDR_ANY; in rpmsg_ns_cb()
917 chinfo.dst = msg->addr; in rpmsg_ns_cb()
920 ret = rpmsg_destroy_channel(vrp, &chinfo); in rpmsg_ns_cb()
924 newch = rpmsg_create_channel(vrp, &chinfo); in rpmsg_ns_cb()