Home
last modified time | relevance | path

Searched refs:num_pds (Results 1 – 25 of 27) sorted by relevance

12

/OK3568_Linux_fs/kernel/drivers/scsi/mpt3sas/
H A Dmpt3sas_warpdrive.c121 u8 num_pds, count; in mpt3sas_init_warpdrive_properties() local
139 &num_pds)) || !num_pds) { in mpt3sas_init_warpdrive_properties()
144 sz = offsetof(Mpi2RaidVolPage0_t, PhysDisk) + (num_pds * in mpt3sas_init_warpdrive_properties()
163 if (num_pds > MPT_MAX_WARPDRIVE_PDS) { in mpt3sas_init_warpdrive_properties()
165 raid_device->handle, num_pds, MPT_MAX_WARPDRIVE_PDS); in mpt3sas_init_warpdrive_properties()
169 for (count = 0; count < num_pds; count++) { in mpt3sas_init_warpdrive_properties()
242 for (count = 0; count < num_pds; count++) in mpt3sas_init_warpdrive_properties()
261 u8 num_pds, cmd = scmd->cmnd[0]; in mpt3sas_setup_direct_io() local
286 num_pds = raid_device->num_pds; in mpt3sas_setup_direct_io()
288 column = sector_div(p_lba, num_pds); in mpt3sas_setup_direct_io()
H A Dmpt3sas_config.c1627 u8 *num_pds) in mpt3sas_config_get_number_pds() argument
1636 *num_pds = 0; in mpt3sas_config_get_number_pds()
1658 *num_pds = config_page.NumPhysDisks; in mpt3sas_config_get_number_pds()
H A Dmpt3sas_base.h702 u8 num_pds; member
1726 u8 *num_pds);
H A Dmpt3sas_scsih.c2255 u8 num_pds; in _scsih_get_volume_capabilities() local
2258 &num_pds)) || !num_pds) { in _scsih_get_volume_capabilities()
2265 raid_device->num_pds = num_pds; in _scsih_get_volume_capabilities()
2266 sz = offsetof(Mpi2RaidVolPage0_t, PhysDisk) + (num_pds * in _scsih_get_volume_capabilities()
2416 !(raid_device->num_pds % 2)) in scsih_slave_configure()
2442 raid_device->num_pds, ds); in scsih_slave_configure()
/OK3568_Linux_fs/kernel/drivers/soc/qcom/
H A Drpmhpd.c61 size_t num_pds; member
137 .num_pds = ARRAY_SIZE(sdm845_rpmhpds),
172 .num_pds = ARRAY_SIZE(sm8150_rpmhpds),
190 .num_pds = ARRAY_SIZE(sm8250_rpmhpds),
207 .num_pds = ARRAY_SIZE(sc7180_rpmhpds),
413 size_t num_pds; in rpmhpd_probe() local
424 num_pds = desc->num_pds; in rpmhpd_probe()
430 data->domains = devm_kcalloc(dev, num_pds, sizeof(*data->domains), in rpmhpd_probe()
435 data->num_domains = num_pds; in rpmhpd_probe()
437 for (i = 0; i < num_pds; i++) { in rpmhpd_probe()
[all …]
H A Drpmpd.c113 size_t num_pds; member
137 .num_pds = ARRAY_SIZE(msm8976_rpmpds),
161 .num_pds = ARRAY_SIZE(msm8996_rpmpds),
193 .num_pds = ARRAY_SIZE(msm8998_rpmpds),
219 .num_pds = ARRAY_SIZE(qcs404_rpmpds),
382 num = desc->num_pds; in rpmpd_probe()
/OK3568_Linux_fs/kernel/drivers/soc/rockchip/
H A Drockchip_amp.c37 int num_pds; member
242 rkamp_dev->num_pds = of_count_phandle_with_args(pdev->dev.of_node, "power-domains", in rockchip_amp_probe()
245 if (rkamp_dev->num_pds > 0) { in rockchip_amp_probe()
246 rkamp_dev->pd_dev = devm_kmalloc_array(&pdev->dev, rkamp_dev->num_pds, in rockchip_amp_probe()
251 if (rkamp_dev->num_pds == 1) { in rockchip_amp_probe()
257 for (i = 0; i < rkamp_dev->num_pds; i++) { in rockchip_amp_probe()
298 if (rkamp_dev->num_pds == 1) { in rockchip_amp_remove()
300 } else if (rkamp_dev->num_pds > 1) { in rockchip_amp_remove()
301 for (i = 0; i < rkamp_dev->num_pds; i++) { in rockchip_amp_remove()
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hns/
H A Dhns_roce_pd.c50 return hns_roce_bitmap_init(&hr_dev->pd_bitmap, hr_dev->caps.num_pds, in hns_roce_init_pd_table()
51 hr_dev->caps.num_pds - 1, in hns_roce_init_pd_table()
H A Dhns_roce_main.c205 props->max_pd = hr_dev->caps.num_pds; in hns_roce_query_device()
H A Dhns_roce_device.h797 int num_pds; member
H A Dhns_roce_hw_v2.c1804 caps->num_pds = HNS_ROCE_V2_MAX_PD_NUM; in set_default_caps()
2010 caps->num_pds = 1 << roce_get_field(resp_c->cap_flags_num_pds, in hns_roce_query_pf_caps()
/OK3568_Linux_fs/kernel/drivers/remoteproc/
H A Dqcom_q6v5_pas.c305 size_t num_pds = 0; in adsp_pds_attach() local
319 while (pd_names[num_pds]) in adsp_pds_attach()
320 num_pds++; in adsp_pds_attach()
322 for (i = 0; i < num_pds; i++) { in adsp_pds_attach()
330 return num_pds; in adsp_pds_attach()
H A Dqcom_q6v5_mss.c1528 size_t num_pds = 0; in q6v5_pds_attach() local
1535 while (pd_names[num_pds]) in q6v5_pds_attach()
1536 num_pds++; in q6v5_pds_attach()
1538 for (i = 0; i < num_pds; i++) { in q6v5_pds_attach()
1546 return num_pds; in q6v5_pds_attach()
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/i40iw/
H A Di40iw_hw.c51 unsigned long num_pds; in i40iw_initialize_hw_resources() local
65 num_pds = I40IW_MAX_PDS; in i40iw_initialize_hw_resources()
70 resources_size += sizeof(unsigned long) * BITS_TO_LONGS(num_pds); in i40iw_initialize_hw_resources()
81 iwdev->max_pd = num_pds; in i40iw_initialize_hw_resources()
93 iwdev->allocated_arps = &iwdev->allocated_pds[BITS_TO_LONGS(num_pds)]; in i40iw_initialize_hw_resources()
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/mthca/
H A Dmthca_pd.c72 dev->limits.num_pds, in mthca_init_pd_table()
H A Dmthca_profile.c257 dev->limits.num_pds = MTHCA_NUM_PDS; in mthca_make_profile()
H A Dmthca_dev.h169 int num_pds; member
H A Dmthca_provider.c106 props->max_pd = mdev->limits.num_pds - mdev->limits.reserved_pds; in mthca_query_device()
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_verbs.c442 if (!atomic_add_unless(&dev->num_pds, 1, dev->dsr->caps.max_pd)) in pvrdma_alloc_pd()
473 atomic_dec(&dev->num_pds); in pvrdma_alloc_pd()
500 atomic_dec(&dev->num_pds); in pvrdma_dealloc_pd()
H A Dpvrdma.h244 atomic_t num_pds; member
H A Dpvrdma_main.c118 atomic_set(&dev->num_pds, 0); in pvrdma_init_device()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx4/
H A Dpd.c122 return mlx4_bitmap_init(&priv->pd_bitmap, dev->caps.num_pds, in mlx4_init_pd_table()
H A Dprofile.c266 dev->caps.num_pds = MLX4_NUM_PDS; in mlx4_make_profile()
/OK3568_Linux_fs/kernel/include/linux/mlx4/
H A Ddevice.h588 int num_pds; member
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/mlx4/
H A Dmain.c544 props->max_pd = dev->dev->caps.num_pds - dev->dev->caps.reserved_pds; in mlx4_ib_query_device()

12