/wlan-driver/qcacld-3.0/core/pld/src/ |
D | pld_pcie_fw_sim.c | 52 struct pld_context *pld_context; in pld_pcie_fw_sim_probe() local 55 pld_context = pld_get_global_context(); in pld_pcie_fw_sim_probe() 56 if (!pld_context) { in pld_pcie_fw_sim_probe() 61 ret = pld_add_dev(pld_context, &pdev->dev, NULL, in pld_pcie_fw_sim_probe() 66 return pld_context->ops->probe(&pdev->dev, in pld_pcie_fw_sim_probe() 83 struct pld_context *pld_context; in pld_pcie_fw_sim_remove() local 94 pld_context = pld_get_global_context(); in pld_pcie_fw_sim_remove() 96 if (!pld_context) in pld_pcie_fw_sim_remove() 99 pld_context->ops->remove(&pdev->dev, PLD_BUS_TYPE_IPCI_FW_SIM); in pld_pcie_fw_sim_remove() 101 pld_del_dev(pld_context, &pdev->dev); in pld_pcie_fw_sim_remove() [all …]
|
D | pld_ipci.c | 52 struct pld_context *pld_context; in pld_ipci_probe() local 55 pld_context = pld_get_global_context(); in pld_ipci_probe() 56 if (!pld_context) { in pld_ipci_probe() 61 ret = pld_add_dev(pld_context, dev, NULL, PLD_BUS_TYPE_IPCI); in pld_ipci_probe() 65 return pld_context->ops->probe(dev, PLD_BUS_TYPE_IPCI, in pld_ipci_probe() 83 struct pld_context *pld_context; in pld_ipci_remove() local 94 pld_context = pld_get_global_context(); in pld_ipci_remove() 96 if (!pld_context) in pld_ipci_remove() 99 pld_context->ops->remove(dev, PLD_BUS_TYPE_SNOC); in pld_ipci_remove() 101 pld_del_dev(pld_context, dev); in pld_ipci_remove() [all …]
|
D | pld_snoc_fw_sim.c | 39 struct pld_context *pld_context; in pld_snoc_fw_sim_probe() local 42 pld_context = pld_get_global_context(); in pld_snoc_fw_sim_probe() 43 if (!pld_context) { in pld_snoc_fw_sim_probe() 48 ret = pld_add_dev(pld_context, dev, NULL, PLD_BUS_TYPE_SNOC_FW_SIM); in pld_snoc_fw_sim_probe() 52 return pld_context->ops->probe(dev, PLD_BUS_TYPE_SNOC_FW_SIM, in pld_snoc_fw_sim_probe() 70 struct pld_context *pld_context; in pld_snoc_fw_sim_remove() local 72 pld_context = pld_get_global_context(); in pld_snoc_fw_sim_remove() 74 if (!pld_context) in pld_snoc_fw_sim_remove() 77 pld_context->ops->remove(dev, PLD_BUS_TYPE_SNOC_FW_SIM); in pld_snoc_fw_sim_remove() 79 pld_del_dev(pld_context, dev); in pld_snoc_fw_sim_remove() [all …]
|
D | pld_snoc.c | 61 struct pld_context *pld_context; in pld_snoc_idle_restart_cb() local 63 pld_context = pld_get_global_context(); in pld_snoc_idle_restart_cb() 64 if (pld_context->ops->idle_restart) in pld_snoc_idle_restart_cb() 65 return pld_context->ops->idle_restart(dev, PLD_BUS_TYPE_SNOC); in pld_snoc_idle_restart_cb() 80 struct pld_context *pld_context; in pld_snoc_idle_shutdown_cb() local 82 pld_context = pld_get_global_context(); in pld_snoc_idle_shutdown_cb() 83 if (pld_context->ops->shutdown) in pld_snoc_idle_shutdown_cb() 84 return pld_context->ops->idle_shutdown(dev, PLD_BUS_TYPE_SNOC); in pld_snoc_idle_shutdown_cb() 100 struct pld_context *pld_context; in pld_snoc_probe() local 103 pld_context = pld_get_global_context(); in pld_snoc_probe() [all …]
|
D | pld_pcie.c | 66 struct pld_context *pld_context; in pld_pcie_probe() local 69 pld_context = pld_get_global_context(); in pld_pcie_probe() 70 if (!pld_context) { in pld_pcie_probe() 75 ret = pld_add_dev(pld_context, &pdev->dev, NULL, PLD_BUS_TYPE_PCIE); in pld_pcie_probe() 79 return pld_context->ops->probe(&pdev->dev, in pld_pcie_probe() 97 struct pld_context *pld_context; in pld_pcie_remove() local 116 pld_context = pld_get_global_context(); in pld_pcie_remove() 118 if (!pld_context) in pld_pcie_remove() 121 pld_context->ops->remove(&pdev->dev, PLD_BUS_TYPE_PCIE); in pld_pcie_remove() 123 pld_del_dev(pld_context, &pdev->dev); in pld_pcie_remove() [all …]
|
D | pld_usb.c | 56 struct pld_context *pld_context; in pld_usb_probe() local 59 pld_context = pld_get_global_context(); in pld_usb_probe() 60 if (!pld_context) { in pld_usb_probe() 65 ret = pld_add_dev(pld_context, &pdev->dev, &interface->dev, in pld_usb_probe() 70 ret = pld_context->ops->probe(&pdev->dev, in pld_usb_probe() 92 struct pld_context *pld_context; in pld_usb_remove() local 103 pld_context = pld_get_global_context(); in pld_usb_remove() 105 if (!pld_context) in pld_usb_remove() 113 pld_context->ops->remove(&pdev->dev, PLD_BUS_TYPE_USB); in pld_usb_remove() 115 pld_del_dev(pld_context, &pdev->dev); in pld_usb_remove() [all …]
|
D | pld_sdio.c | 81 struct pld_context *pld_context; in pld_sdio_probe() local 85 pld_context = pld_get_global_context(); in pld_sdio_probe() 86 if (!pld_context || !sdio_func) { in pld_sdio_probe() 92 ret = pld_add_dev(pld_context, dev, NULL, PLD_BUS_TYPE_SDIO); in pld_sdio_probe() 96 return pld_context->ops->probe(dev, PLD_BUS_TYPE_SDIO, in pld_sdio_probe() 114 struct pld_context *pld_context; in pld_sdio_remove() local 126 pld_context = pld_get_global_context(); in pld_sdio_remove() 128 if (!pld_context) in pld_sdio_remove() 131 pld_context->ops->remove(dev, PLD_BUS_TYPE_SDIO); in pld_sdio_remove() 132 pld_del_dev(pld_context, dev); in pld_sdio_remove() [all …]
|
D | pld_common.c | 83 static struct pld_context *pld_ctx; 87 struct pld_context *pld_context; in pld_init() local 89 pld_context = kzalloc(sizeof(*pld_context), GFP_KERNEL); in pld_init() 90 if (!pld_context) in pld_init() 93 spin_lock_init(&pld_context->pld_lock); in pld_init() 95 INIT_LIST_HEAD(&pld_context->dev_list); in pld_init() 97 pld_ctx = pld_context; in pld_init() 105 struct pld_context *pld_context; in pld_deinit() local 108 pld_context = pld_ctx; in pld_deinit() 109 if (!pld_context) { in pld_deinit() [all …]
|
D | pld_internal.h | 32 struct pld_context { struct 45 struct pld_context *pld_get_global_context(void); argument 57 int pld_add_dev(struct pld_context *pld_context, 68 void pld_del_dev(struct pld_context *pld_context,
|