Lines Matching refs:ngd

153 	struct qcom_slim_ngd *ngd;  member
475 req.instance = (ctrl->ngd->id >> 1); in qcom_slim_qmi_init()
765 void __iomem *base = ctrl->ngd->base; in qcom_slim_ngd_interrupt()
1150 u32 cfg = readl_relaxed(ctrl->ngd->base); in qcom_slim_ngd_setup()
1164 writel_relaxed(cfg, ctrl->ngd->base); in qcom_slim_ngd_setup()
1170 struct qcom_slim_ngd *ngd = ctrl->ngd; in qcom_slim_ngd_power_up() local
1194 laddr = readl_relaxed(ngd->base + NGD_STATUS); in qcom_slim_ngd_power_up()
1214 writel_relaxed(DEF_NGD_INT_MASK, ngd->base + NGD_INT_EN); in qcom_slim_ngd_power_up()
1215 rx_msgq = readl_relaxed(ngd->base + NGD_RX_MSGQ_CFG); in qcom_slim_ngd_power_up()
1218 ngd->base + NGD_RX_MSGQ_CFG); in qcom_slim_ngd_power_up()
1235 for_each_child_of_node(ctrl->ngd->pdev->dev.of_node, node) { in qcom_slim_ngd_notify_slaves()
1508 struct qcom_slim_ngd *ngd; in of_qcom_slim_ngd_register() local
1520 ngd = kzalloc(sizeof(*ngd), GFP_KERNEL); in of_qcom_slim_ngd_register()
1521 if (!ngd) { in of_qcom_slim_ngd_register()
1526 ngd->pdev = platform_device_alloc(QCOM_SLIM_NGD_DRV_NAME, id); in of_qcom_slim_ngd_register()
1527 if (!ngd->pdev) { in of_qcom_slim_ngd_register()
1528 kfree(ngd); in of_qcom_slim_ngd_register()
1532 ngd->id = id; in of_qcom_slim_ngd_register()
1533 ngd->pdev->dev.parent = parent; in of_qcom_slim_ngd_register()
1535 ret = driver_set_override(&ngd->pdev->dev, in of_qcom_slim_ngd_register()
1536 &ngd->pdev->driver_override, in of_qcom_slim_ngd_register()
1540 platform_device_put(ngd->pdev); in of_qcom_slim_ngd_register()
1541 kfree(ngd); in of_qcom_slim_ngd_register()
1545 ngd->pdev->dev.of_node = node; in of_qcom_slim_ngd_register()
1546 ctrl->ngd = ngd; in of_qcom_slim_ngd_register()
1548 ret = platform_device_add(ngd->pdev); in of_qcom_slim_ngd_register()
1550 platform_device_put(ngd->pdev); in of_qcom_slim_ngd_register()
1551 kfree(ngd); in of_qcom_slim_ngd_register()
1555 ngd->base = ctrl->base + ngd->id * data->offset + in of_qcom_slim_ngd_register()
1556 (ngd->id - 1) * data->size; in of_qcom_slim_ngd_register()
1698 kfree(ctrl->ngd); in qcom_slim_ngd_remove()
1699 ctrl->ngd = NULL; in qcom_slim_ngd_remove()