Searched refs:qsdev (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/soc/qcom/
H A Dsmd.c152 * @qsdev: reference to a associated smd client device
172 struct qcom_smd_device *qsdev; member in struct:qcom_smd_channel
505 struct qcom_smd_device *qsdev = channel->qsdev; qcom_smd_channel_recv_single() local
525 ret = channel->cb(qsdev, ptr, len); qcom_smd_channel_recv_single()
777 struct qcom_smd_device *qsdev = to_smd_device(dev); to_smd_driver() local
779 return container_of(qsdev->dev.driver, struct qcom_smd_driver, driver); to_smd_driver()
784 struct qcom_smd_device *qsdev = to_smd_device(dev); qcom_smd_dev_match() local
787 const char *name = qsdev->channel->name; qcom_smd_dev_match()
808 struct qcom_smd_device *qsdev = to_smd_device(dev); qcom_smd_dev_probe() local
810 struct qcom_smd_channel *channel = qsdev->channel; qcom_smd_dev_probe()
828 ret = qsdrv->probe(qsdev); qcom_smd_dev_probe()
837 dev_err(&qsdev->dev, "probe failed\n"); qcom_smd_dev_probe()
855 struct qcom_smd_device *qsdev = to_smd_device(dev); qcom_smd_dev_remove() local
857 struct qcom_smd_channel *channel = qsdev->channel; qcom_smd_dev_remove()
877 qsdrv->remove(qsdev); qcom_smd_dev_remove()
882 channel->qsdev = NULL; qcom_smd_dev_remove()
905 struct qcom_smd_device *qsdev = to_smd_device(dev); qcom_smd_release_device() local
907 kfree(qsdev); qcom_smd_release_device()
939 struct qcom_smd_device *qsdev; qcom_smd_create_device() local
945 if (channel->qsdev) qcom_smd_create_device()
950 qsdev = kzalloc(sizeof(*qsdev), GFP_KERNEL); qcom_smd_create_device()
951 if (!qsdev) qcom_smd_create_device()
955 dev_set_name(&qsdev->dev, "%s.%s", qcom_smd_create_device()
959 qsdev->dev.parent = smd->dev; qcom_smd_create_device()
960 qsdev->dev.bus = &qcom_smd_bus; qcom_smd_create_device()
961 qsdev->dev.release = qcom_smd_release_device; qcom_smd_create_device()
962 qsdev->dev.of_node = node; qcom_smd_create_device()
964 qsdev->channel = channel; qcom_smd_create_device()
966 channel->qsdev = qsdev; qcom_smd_create_device()
968 ret = device_register(&qsdev->dev); qcom_smd_create_device()
971 put_device(&qsdev->dev); qcom_smd_create_device()
984 BUG_ON(!channel->qsdev); qcom_smd_destroy_device()
986 dev = &channel->qsdev->dev; qcom_smd_destroy_device()
1343 if (!channel->qsdev) qcom_smd_remove()
H A Dsmd-rpm.c152 static int qcom_smd_rpm_callback(struct qcom_smd_device *qsdev, qcom_smd_rpm_callback() argument
159 struct qcom_smd_rpm *rpm = dev_get_drvdata(&qsdev->dev); qcom_smd_rpm_callback()
168 dev_err(&qsdev->dev, "invalid request\n"); qcom_smd_rpm_callback()

Completed in 290 milliseconds