Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/scsi/mpt3sas/
Dmpt3sas_warpdrive.c121 u8 num_pds, count; in mpt3sas_init_warpdrive_properties() local
141 &num_pds)) || !num_pds) { in mpt3sas_init_warpdrive_properties()
147 sz = offsetof(Mpi2RaidVolPage0_t, PhysDisk) + (num_pds * in mpt3sas_init_warpdrive_properties()
168 if (num_pds > MPT_MAX_WARPDRIVE_PDS) { in mpt3sas_init_warpdrive_properties()
172 num_pds, MPT_MAX_WARPDRIVE_PDS); in mpt3sas_init_warpdrive_properties()
176 for (count = 0; count < num_pds; count++) { in mpt3sas_init_warpdrive_properties()
258 for (count = 0; count < num_pds; count++) in mpt3sas_init_warpdrive_properties()
277 u8 num_pds, cmd = scmd->cmnd[0]; in mpt3sas_setup_direct_io() local
302 num_pds = raid_device->num_pds; in mpt3sas_setup_direct_io()
304 column = sector_div(p_lba, num_pds); in mpt3sas_setup_direct_io()
Dmpt3sas_config.c1580 u8 *num_pds) in mpt3sas_config_get_number_pds() argument
1589 *num_pds = 0; in mpt3sas_config_get_number_pds()
1611 *num_pds = config_page.NumPhysDisks; in mpt3sas_config_get_number_pds()
Dmpt3sas_base.h663 u8 num_pds; member
1599 u8 *num_pds);
Dmpt3sas_scsih.c2102 u8 num_pds; in _scsih_get_volume_capabilities() local
2105 &num_pds)) || !num_pds) { in _scsih_get_volume_capabilities()
2112 raid_device->num_pds = num_pds; in _scsih_get_volume_capabilities()
2113 sz = offsetof(Mpi2RaidVolPage0_t, PhysDisk) + (num_pds * in _scsih_get_volume_capabilities()
2263 !(raid_device->num_pds % 2)) in scsih_slave_configure()
2289 raid_device->num_pds, ds); in scsih_slave_configure()
/Linux-v4.19/drivers/infiniband/hw/hns/
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()
Dhns_roce_device.h688 int num_pds; member
Dhns_roce_main.c215 props->max_pd = hr_dev->caps.num_pds; in hns_roce_query_device()
Dhns_roce_hw_v1.c1569 caps->num_pds = HNS_ROCE_V1_MAX_PD_NUM; in hns_roce_v1_profile()
Dhns_roce_hw_v2.c1206 caps->num_pds = HNS_ROCE_V2_MAX_PD_NUM; in hns_roce_v2_profile()
/Linux-v4.19/drivers/infiniband/hw/mthca/
Dmthca_pd.c72 dev->limits.num_pds, in mthca_init_pd_table()
Dmthca_profile.c257 dev->limits.num_pds = MTHCA_NUM_PDS; in mthca_make_profile()
Dmthca_dev.h170 int num_pds; member
Dmthca_provider.c105 props->max_pd = mdev->limits.num_pds - mdev->limits.reserved_pds; in mthca_query_device()
/Linux-v4.19/drivers/infiniband/hw/i40iw/
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()
/Linux-v4.19/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_verbs.c457 if (!atomic_add_unless(&dev->num_pds, 1, dev->dsr->caps.max_pd)) in pvrdma_alloc_pd()
498 atomic_dec(&dev->num_pds); in pvrdma_alloc_pd()
526 atomic_dec(&dev->num_pds); in pvrdma_dealloc_pd()
Dpvrdma.h244 atomic_t num_pds; member
Dpvrdma_main.c114 atomic_set(&dev->num_pds, 0); in pvrdma_init_device()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Dpd.c122 return mlx4_bitmap_init(&priv->pd_bitmap, dev->caps.num_pds, in mlx4_init_pd_table()
Dprofile.c266 dev->caps.num_pds = MLX4_NUM_PDS; in mlx4_make_profile()
Dmain.c1010 dev->caps.num_pds = MLX4_NUM_PDS; in mlx4_slave_cap()
/Linux-v4.19/drivers/infiniband/hw/nes/
Dnes_hw.c247 unsigned long num_pds; in nes_init_adapter() local
283 num_pds = pci_resource_len(nesdev->pcidev, BAR_1) >> PAGE_SHIFT; in nes_init_adapter()
327 if (num_pds > max_qp) in nes_init_adapter()
328 num_pds = max_qp; in nes_init_adapter()
346 adapter_size += sizeof(unsigned long) * BITS_TO_LONGS(num_pds); in nes_init_adapter()
403 nesadapter->max_pd = num_pds; in nes_init_adapter()
435 nesadapter->allocated_arps = &nesadapter->allocated_pds[BITS_TO_LONGS(num_pds)]; in nes_init_adapter()
/Linux-v4.19/include/linux/mlx4/
Ddevice.h588 int num_pds; member
/Linux-v4.19/drivers/infiniband/hw/mlx4/
Dmain.c528 props->max_pd = dev->dev->caps.num_pds - dev->dev->caps.reserved_pds; in mlx4_ib_query_device()