| /linux/drivers/base/power/ |
| H A D | common.c | 198 struct dev_pm_domain_list *pds; in dev_pm_domain_attach_list() local 225 pds = kzalloc_obj(*pds); in dev_pm_domain_attach_list() 226 if (!pds) in dev_pm_domain_attach_list() 229 size = sizeof(*pds->pd_devs) + sizeof(*pds->pd_links) + in dev_pm_domain_attach_list() 230 sizeof(*pds->opp_tokens); in dev_pm_domain_attach_list() 231 pds->pd_devs = kcalloc(num_pds, size, GFP_KERNEL); in dev_pm_domain_attach_list() 232 if (!pds->pd_devs) { in dev_pm_domain_attach_list() 236 pds->pd_links = (void *)(pds->pd_devs + num_pds); in dev_pm_domain_attach_list() 237 pds->opp_tokens = (void *)(pds->pd_links + num_pds); in dev_pm_domain_attach_list() 263 pds->opp_tokens[i] = ret; in dev_pm_domain_attach_list() [all …]
|
| /linux/drivers/bus/ |
| H A D | qcom-ssc-block-bus.c | 32 struct device *pds[ARRAY_SIZE(qcom_ssc_block_pd_names)]; member 189 static int qcom_ssc_block_bus_pds_attach(struct device *dev, struct device **pds, in qcom_ssc_block_bus_pds_attach() argument 196 pds[i] = dev_pm_domain_attach_by_name(dev, pd_names[i]); in qcom_ssc_block_bus_pds_attach() 197 if (IS_ERR_OR_NULL(pds[i])) { in qcom_ssc_block_bus_pds_attach() 198 ret = PTR_ERR(pds[i]) ? : -ENODATA; in qcom_ssc_block_bus_pds_attach() 207 dev_pm_domain_detach(pds[i], false); in qcom_ssc_block_bus_pds_attach() 212 static void qcom_ssc_block_bus_pds_detach(struct device *dev, struct device **pds, size_t num_pds) in qcom_ssc_block_bus_pds_detach() argument 217 dev_pm_domain_detach(pds[i], false); in qcom_ssc_block_bus_pds_detach() 220 static int qcom_ssc_block_bus_pds_enable(struct device **pds, size_t num_pds) in qcom_ssc_block_bus_pds_enable() argument 226 dev_pm_genpd_set_performance_state(pds[i], INT_MAX); in qcom_ssc_block_bus_pds_enable() [all …]
|
| /linux/drivers/pci/ |
| H A D | rom.c | 141 static bool pci_rom_data_struct_valid(struct pci_dev *pdev, void __iomem *pds, in pci_rom_data_struct_valid() argument 154 if (!IS_ALIGNED((unsigned long)pds, 4)) in pci_rom_data_struct_valid() 157 if (check_add_overflow((unsigned long)pds, PCI_ROM_DATA_STRUCT_LEN + 1, in pci_rom_data_struct_valid() 161 if (pds < rom || end > rom_end) in pci_rom_data_struct_valid() 164 signature = readl(pds); in pci_rom_data_struct_valid() 171 data_len = readw(pds + PCI_ROM_DATA_STRUCT_LEN); in pci_rom_data_struct_valid() 175 if (check_add_overflow((unsigned long)pds, data_len - 1, &end)) in pci_rom_data_struct_valid() 204 void __iomem *pds; in pci_get_rom_size() local 209 pds = image + readw(image + PCI_ROM_POINTER_TO_DATA_STRUCT); in pci_get_rom_size() 210 if (!pci_rom_data_struct_valid(pdev, pds, rom, size)) in pci_get_rom_size() [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | lpass-macro-common.c | 62 void lpass_macro_pds_exit(struct lpass_macro *pds) in lpass_macro_pds_exit() 64 if (pds) { in lpass_macro_pds_exit() 65 pm_runtime_put(pds->macro_pd); in lpass_macro_pds_exit() 66 dev_pm_domain_detach(pds->macro_pd, false); in lpass_macro_pds_exit() 67 pm_runtime_put(pds->dcodec_pd); in lpass_macro_pds_exit() 68 dev_pm_domain_detach(pds->dcodec_pd, false); in lpass_macro_pds_exit() 61 lpass_macro_pds_exit(struct lpass_macro * pds) lpass_macro_pds_exit() argument
|
| H A D | lpass-va-macro.c | 222 struct lpass_macro *pds; member 1572 va->pds = lpass_macro_pds_init(dev); in va_macro_probe() 1573 if (IS_ERR(va->pds)) in va_macro_probe() 1574 return PTR_ERR(va->pds); in va_macro_probe() 1707 lpass_macro_pds_exit(va->pds); in va_macro_probe() 1716 lpass_macro_pds_exit(va->pds); in va_macro_remove()
|
| H A D | lpass-tx-macro.c | 287 struct lpass_macro *pds; member 2283 tx->pds = lpass_macro_pds_init(dev); in tx_macro_probe() 2284 if (IS_ERR(tx->pds)) in tx_macro_probe() 2285 return PTR_ERR(tx->pds); in tx_macro_probe() 2383 lpass_macro_pds_exit(tx->pds); in tx_macro_probe() 2392 lpass_macro_pds_exit(tx->pds); in tx_macro_remove()
|
| H A D | lpass-rx-macro.c | 662 struct lpass_macro *pds; 3805 rx->pds = lpass_macro_pds_init(dev); in rx_macro_probe() 3806 if (IS_ERR(rx->pds)) in rx_macro_probe() 3807 return PTR_ERR(rx->pds); in rx_macro_probe() 3809 ret = devm_add_action_or_reset(dev, lpass_macro_pds_exit_action, rx->pds); in rx_macro_probe() 661 struct lpass_macro *pds; global() member
|
| /linux/Documentation/networking/device_drivers/ethernet/amd/ |
| H A D | pds_vfio_pci.rst | 14 The ``pds-vfio-pci`` module is a PCI driver that supports Live Migration 20 The pds-vfio-pci device is enabled via multiple configuration steps and 26 example assumes the pds_core and pds-vfio-pci modules are already 44 # Allow the VF to be bound to the pds-vfio-pci driver 45 echo "pds-vfio-pci" > /sys/class/pci_bus/$PF_BUS/device/$VF_BDF/driver_override 47 # Bind the VF to the pds-vfio-pci driver 48 echo "$VF_BDF" > /sys/bus/pci/drivers/pds-vfio-pci/bind
|
| /linux/drivers/pmdomain/sunxi/ |
| H A D | sun50i-h6-prcm-ppu.c | 122 struct sun50i_h6_ppu_pd *pds; in sun50i_h6_ppu_probe() local 131 pds = devm_kcalloc(dev, data->nr_domains, sizeof(*pds), GFP_KERNEL); in sun50i_h6_ppu_probe() 132 if (!pds) in sun50i_h6_ppu_probe() 152 struct sun50i_h6_ppu_pd *pd = &pds[i]; in sun50i_h6_ppu_probe() 181 pm_genpd_remove(&pds[i].genpd); in sun50i_h6_ppu_probe()
|
| H A D | sun20i-ppu.c | 107 struct sun20i_ppu_pd *pds; in sun20i_ppu_probe() local 117 pds = devm_kcalloc(dev, desc->num_domains, sizeof(*pds), GFP_KERNEL); in sun20i_ppu_probe() 118 if (!pds) in sun20i_ppu_probe() 150 struct sun20i_ppu_pd *pd = &pds[i]; in sun20i_ppu_probe()
|
| /linux/drivers/remoteproc/ |
| H A D | qcom_q6v5_adsp.c | 152 struct dev_pm_domain_list *pds = adsp->pd_list; in qcom_rproc_pds_detach() local 154 dev_pm_domain_detach_list(pds); in qcom_rproc_pds_detach() 156 if (dev->pm_domain || pds) in qcom_rproc_pds_detach() 163 struct dev_pm_domain_list *pds = adsp->pd_list; in qcom_rproc_pds_enable() local 166 if (!dev->pm_domain && !pds) in qcom_rproc_pds_enable() 172 while (pds && i < pds->num_pds) { in qcom_rproc_pds_enable() 173 dev_pm_genpd_set_performance_state(pds->pd_devs[i], INT_MAX); in qcom_rproc_pds_enable() 179 while (pds && i > 0) { in qcom_rproc_pds_enable() 181 dev_pm_genpd_set_performance_state(pds->pd_devs[i], 0); in qcom_rproc_pds_enable() 194 struct dev_pm_domain_list *pds = adsp->pd_list; in qcom_rproc_pds_disable() local [all …]
|
| H A D | qcom_q6v5_pas.c | 163 static int qcom_pas_pds_enable(struct qcom_pas *pas, struct device **pds, in qcom_pas_pds_enable() argument 170 dev_pm_genpd_set_performance_state(pds[i], INT_MAX); in qcom_pas_pds_enable() 171 ret = pm_runtime_get_sync(pds[i]); in qcom_pas_pds_enable() 173 pm_runtime_put_noidle(pds[i]); in qcom_pas_pds_enable() 174 dev_pm_genpd_set_performance_state(pds[i], 0); in qcom_pas_pds_enable() 183 dev_pm_genpd_set_performance_state(pds[i], 0); in qcom_pas_pds_enable() 184 pm_runtime_put(pds[i]); in qcom_pas_pds_enable() 190 static void qcom_pas_pds_disable(struct qcom_pas *pas, struct device **pds, in qcom_pas_pds_disable() argument 196 dev_pm_genpd_set_performance_state(pds[i], 0); in qcom_pas_pds_disable() 197 pm_runtime_put(pds[i]); in qcom_pas_pds_disable() [all …]
|
| H A D | qcom_q6v5_mss.c | 399 static int q6v5_pds_enable(struct q6v5 *qproc, struct device **pds, in q6v5_pds_enable() argument 406 dev_pm_genpd_set_performance_state(pds[i], INT_MAX); in q6v5_pds_enable() 407 ret = pm_runtime_get_sync(pds[i]); in q6v5_pds_enable() 409 pm_runtime_put_noidle(pds[i]); in q6v5_pds_enable() 410 dev_pm_genpd_set_performance_state(pds[i], 0); in q6v5_pds_enable() 419 dev_pm_genpd_set_performance_state(pds[i], 0); in q6v5_pds_enable() 420 pm_runtime_put(pds[i]); in q6v5_pds_enable() 426 static void q6v5_pds_disable(struct q6v5 *qproc, struct device **pds, in q6v5_pds_disable() argument 432 dev_pm_genpd_set_performance_state(pds[i], 0); in q6v5_pds_disable() 433 pm_runtime_put(pds[i]); in q6v5_pds_disable() [all …]
|
| /linux/drivers/vfio/pci/pds/ |
| H A D | Makefile | 4 obj-$(CONFIG_PDS_VFIO_PCI) += pds-vfio-pci.o 6 pds-vfio-pci-y := \
|
| H A D | Kconfig | 18 will be called pds-vfio-pci.
|
| /linux/drivers/vdpa/ |
| H A D | Makefile | 10 obj-$(CONFIG_PDS_VDPA) += pds/
|
| /linux/include/linux/soc/qcom/ |
| H A D | pdr.h | 27 int pdr_restart_pd(struct pdr_handle *pdr, struct pdr_service *pds);
|
| /linux/drivers/usb/typec/tcpm/ |
| H A D | tcpm.c | 564 struct usb_power_delivery **pds; member 7956 return port->pds; in tcpm_pd_get() 8082 usb_power_delivery_unregister(port->pds[i]); in tcpm_port_unregister_pd() 8083 port->pds[i] = NULL; in tcpm_port_unregister_pd() 8099 port->pds[i] = usb_power_delivery_register(port->dev, &desc); in tcpm_port_register_pd() 8100 if (IS_ERR(port->pds[i])) { in tcpm_port_register_pd() 8101 ret = PTR_ERR(port->pds[i]); in tcpm_port_register_pd() 8104 port->pd_list[i]->pd = port->pds[i]; in tcpm_port_register_pd() 8107 cap = usb_power_delivery_register_capabilities(port->pds[i], in tcpm_port_register_pd() 8117 cap = usb_power_delivery_register_capabilities(port->pds[ in tcpm_port_register_pd() [all...] |
| /linux/arch/mips/include/asm/octeon/ |
| H A D | cvmx-pciercx-defs.h | 212 __BITFIELD_FIELD(uint32_t pds:1,
|
| /linux/drivers/scsi/pm8001/ |
| H A D | pm8001_hwi.c | 2859 u8 pds = le32_to_cpu(pPayload->pds_nds) & PDS_BITS; in pm8001_mpi_set_dev_state_resp() local 2864 device_id, pds, nds, status); in pm8001_mpi_set_dev_state_resp()
|
| /linux/ |
| H A D | MAINTAINERS | 1258 F: include/linux/pds/ 10839 F: drivers/fwctl/pds/ 21332 F: drivers/vdpa/pds/ 28722 F: drivers/vfio/pci/pds/
|