| /linux/drivers/base/power/ |
| H A D | common.c | 200 int ret, i, num_pds = 0; in dev_pm_domain_attach_list() local 215 num_pds = data->num_pd_names; in dev_pm_domain_attach_list() 218 num_pds = of_count_phandle_with_args(np, "power-domains", in dev_pm_domain_attach_list() 222 if (num_pds <= 0) in dev_pm_domain_attach_list() 231 pds->pd_devs = kcalloc(num_pds, size, GFP_KERNEL); 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() 242 for (i = 0; i < num_pds; i++) { in dev_pm_domain_attach_list() 281 pds->num_pds = num_pds; in dev_pm_domain_attach_list() 283 return num_pds; in dev_pm_domain_attach_list() [all …]
|
| /linux/drivers/scsi/mpt3sas/ |
| H A D | mpt3sas_warpdrive.c | 121 u8 num_pds, count; in mpt3sas_init_warpdrive_properties() local 139 &num_pds)) || !num_pds) { in mpt3sas_init_warpdrive_properties() 144 sz = struct_size(vol_pg0, PhysDisk, num_pds); in mpt3sas_init_warpdrive_properties() 162 if (num_pds > MPT_MAX_WARPDRIVE_PDS) { in mpt3sas_init_warpdrive_properties() 164 raid_device->handle, num_pds, MPT_MAX_WARPDRIVE_PDS); in mpt3sas_init_warpdrive_properties() 168 for (count = 0; count < num_pds; count++) { in mpt3sas_init_warpdrive_properties() 241 for (count = 0; count < num_pds; count++) in mpt3sas_init_warpdrive_properties() 260 u8 num_pds, cmd = scmd->cmnd[0]; in mpt3sas_setup_direct_io() local 285 num_pds = raid_device->num_pds; in mpt3sas_setup_direct_io() 287 column = sector_div(p_lba, num_pds); in mpt3sas_setup_direct_io()
|
| H A D | mpt3sas_config.c | 1722 u8 *num_pds) in mpt3sas_config_get_number_pds() argument 1731 *num_pds = 0; in mpt3sas_config_get_number_pds() 1753 *num_pds = config_page.NumPhysDisks; in mpt3sas_config_get_number_pds()
|
| /linux/drivers/bus/ |
| H A D | qcom-ssc-block-bus.c | 45 int num_pds; member 190 const char *const *pd_names, size_t num_pds) in qcom_ssc_block_bus_pds_attach() argument 195 for (i = 0; i < num_pds; i++) { in qcom_ssc_block_bus_pds_attach() 203 return num_pds; 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 216 for (i = 0; i < num_pds; i++) 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 225 for (i = 0; i < num_pds; i++) { in qcom_ssc_block_bus_pds_enable() 243 static void qcom_ssc_block_bus_pds_disable(struct device **pds, size_t num_pds) in qcom_ssc_block_bus_pds_disable() argument 247 for (i = 0; i < num_pds; i++) { in qcom_ssc_block_bus_pds_disable() [all …]
|
| /linux/drivers/remoteproc/ |
| H A D | qcom_wcnss.c | 88 size_t num_pds; member 240 for (i = 0; i < wcnss->num_pds; i++) { in wcnss_start() 406 wcnss->num_pds = 1; in wcnss_init_pds() 423 wcnss->num_pds = i; in wcnss_init_pds() 434 if (wcnss->num_pds == 1 && dev->pm_domain) { in wcnss_release_pds() 439 for (i = 0; i < wcnss->num_pds; i++) in wcnss_release_pds() 456 if (wcnss->num_pds) { in wcnss_init_regulators() 457 info += wcnss->num_pds; in wcnss_init_regulators() 459 if (wcnss->num_pds < num_pd_vregs) in wcnss_init_regulators() 460 num_vregs += num_pd_vregs - wcnss->num_pds; in wcnss_init_regulators()
|
| H A D | qcom_q6v5_adsp.c | 76 unsigned int num_pds; member 123 unsigned int num_pds) in qcom_rproc_pds_attach() argument 128 .num_pd_names = num_pds, in qcom_rproc_pds_attach() 171 while (pds && i < pds->num_pds) { in qcom_rproc_pds_enable() 202 while (pds && i < pds->num_pds) { in qcom_rproc_pds_disable() 701 ret = qcom_rproc_pds_attach(adsp, desc->pd_names, desc->num_pds); in adsp_probe() 777 .num_pds = 1, 809 .num_pds = 1, 826 .num_pds = 2,
|
| H A D | qcom_q6v5_pas.c | 499 size_t num_pds = 0; in qcom_pas_pds_attach() local 506 while (pd_names[num_pds]) in qcom_pas_pds_attach() 507 num_pds++; in qcom_pas_pds_attach() 510 if (num_pds == 1 && dev->pm_domain) { in qcom_pas_pds_attach() 516 for (i = 0; i < num_pds; i++) { in qcom_pas_pds_attach() 524 return num_pds; in qcom_pas_pds_attach()
|
| H A D | qcom_q6v5_mss.c | 1899 size_t num_pds = 0; in q6v5_pds_attach() local 1906 while (pd_names[num_pds]) in q6v5_pds_attach() 1907 num_pds++; in q6v5_pds_attach() 1910 if (num_pds == 1 && dev->pm_domain) { in q6v5_pds_attach() 1916 for (i = 0; i < num_pds; i++) { in q6v5_pds_attach() 1924 return num_pds; in q6v5_pds_attach()
|
| /linux/drivers/infiniband/hw/mthca/ |
| H A D | mthca_pd.c | 72 dev->limits.num_pds, in mthca_init_pd_table()
|
| H A D | mthca_profile.c | 255 dev->limits.num_pds = MTHCA_NUM_PDS; in mthca_make_profile()
|
| H A D | mthca_dev.h | 169 int num_pds; member
|
| /linux/drivers/net/ethernet/ti/icssg/ |
| H A D | icssg_config.c | 199 int pd_size, num_pds; in icssg_miig_queues_init() local 205 num_pds = ICSSG_NUM_SPECIAL_PDS; in icssg_miig_queues_init() 208 num_pds = ICSSG_NUM_NORMAL_PDS; in icssg_miig_queues_init() 211 for (i = 0; i < num_pds; i++) { in icssg_miig_queues_init()
|
| /linux/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_pd.c | 40 pd_ida->max = hr_dev->caps.num_pds - 1; in hns_roce_init_pd_table()
|
| H A D | hns_roce_device.h | 761 int num_pds; member
|
| H A D | hns_roce_main.c | 243 props->max_pd = hr_dev->caps.num_pds; in hns_roce_query_device()
|
| H A D | hns_roce_hw_v2.c | 2347 caps->num_pds = 1 << hr_reg_read(resp_c, PF_CAPS_C_NUM_PDS); in hns_roce_query_caps()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | pd.c | 122 return mlx4_bitmap_init(&priv->pd_bitmap, dev->caps.num_pds, in mlx4_init_pd_table()
|
| H A D | profile.c | 266 dev->caps.num_pds = MLX4_NUM_PDS; in mlx4_make_profile()
|
| /linux/drivers/infiniband/hw/vmw_pvrdma/ |
| H A D | pvrdma.h | 244 atomic_t num_pds; member
|
| /linux/include/linux/mlx4/ |
| H A D | device.h | 588 int num_pds; member
|