/linux-6.6.21/drivers/vfio/platform/reset/ |
D | vfio_platform_bcmflexrm.c | 72 int rc = 0, ret = 0, ring_num = 0; in vfio_platform_bcmflexrm_reset() local 90 ring_num, rc); in vfio_platform_bcmflexrm_reset() 93 ring_num++; in vfio_platform_bcmflexrm_reset()
|
/linux-6.6.21/drivers/net/wireless/ath/ath11k/ |
D | hal.c | 250 struct hal_srng *srng, int ring_num) in ath11k_hal_ce_dst_setup() argument 258 ring_num * srng_config->reg_size[HAL_SRNG_REG_GRP_R0]; in ath11k_hal_ce_dst_setup() 466 int ring_num, int mac_id) in ath11k_hal_srng_get_ring_id() argument 471 if (ring_num >= srng_config->max_rings) { in ath11k_hal_srng_get_ring_id() 472 ath11k_warn(ab, "invalid ring number :%d\n", ring_num); in ath11k_hal_srng_get_ring_id() 476 ring_id = srng_config->start_ring_id + ring_num; in ath11k_hal_srng_get_ring_id() 946 int ring_num, int mac_id, in ath11k_hal_srng_setup() argument 957 ring_id = ath11k_hal_srng_get_ring_id(ab, type, ring_num, mac_id); in ath11k_hal_srng_setup() 982 (ring_num * srng_config->reg_size[i]); in ath11k_hal_srng_setup() 1014 type, ring_num, in ath11k_hal_srng_setup() [all …]
|
D | dp.c | 116 static int ath11k_dp_srng_find_ring_in_mask(int ring_num, const u8 *grp_mask) in ath11k_dp_srng_find_ring_in_mask() argument 119 u8 mask = 1 << ring_num; in ath11k_dp_srng_find_ring_in_mask() 131 enum hal_ring_type type, int ring_num) in ath11k_dp_srng_calculate_msi_group() argument 137 if (ring_num == DP_RX_RELEASE_RING_NUM) { in ath11k_dp_srng_calculate_msi_group() 139 ring_num = 0; in ath11k_dp_srng_calculate_msi_group() 178 return ath11k_dp_srng_find_ring_in_mask(ring_num, grp_mask); in ath11k_dp_srng_calculate_msi_group() 183 enum hal_ring_type type, int ring_num) in ath11k_dp_srng_msi_setup() argument 196 ring_num); in ath11k_dp_srng_msi_setup() 200 type, ring_num); in ath11k_dp_srng_msi_setup() 222 enum hal_ring_type type, int ring_num, in ath11k_dp_srng_setup() argument [all …]
|
D | dbring.c | 222 int ring_num, int num_entries) in ath11k_dbring_srng_setup() argument 227 ring_num, ar->pdev_idx, num_entries); in ath11k_dbring_srng_setup() 230 ret, ring_num); in ath11k_dbring_srng_setup()
|
D | dbring.h | 70 int ring_num, int num_entries);
|
D | hal.h | 961 int ring_num, int mac_id, 970 int ring_num);
|
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/ |
D | adf_transport.c | 229 u32 ring_num; in adf_create_ring() local 251 if (kstrtouint(val, 10, &ring_num)) { in adf_create_ring() 255 if (ring_num >= num_rings_per_bank) { in adf_create_ring() 260 ring_num = array_index_nospec(ring_num, num_rings_per_bank); in adf_create_ring() 262 if (adf_reserve_ring(bank, ring_num)) { in adf_create_ring() 264 ring_num, ring_name); in adf_create_ring() 267 ring = &bank->rings[ring_num]; in adf_create_ring() 268 ring->ring_number = ring_num; in adf_create_ring() 299 adf_unreserve_ring(bank, ring_num); in adf_create_ring()
|
/linux-6.6.21/drivers/net/wireless/ath/ath12k/ |
D | hw.c | 40 static bool ath12k_dp_srng_is_comp_ring_qcn9274(int ring_num) in ath12k_dp_srng_is_comp_ring_qcn9274() argument 42 if (ring_num < 3 || ring_num == 4) in ath12k_dp_srng_is_comp_ring_qcn9274() 65 static bool ath12k_dp_srng_is_comp_ring_wcn7850(int ring_num) in ath12k_dp_srng_is_comp_ring_wcn7850() argument 67 if (ring_num == 0 || ring_num == 2 || ring_num == 4) in ath12k_dp_srng_is_comp_ring_wcn7850()
|
D | hal.c | 1236 struct hal_srng *srng, int ring_num) in ath12k_hal_ce_dst_setup() argument 1244 ring_num * srng_config->reg_size[HAL_SRNG_REG_GRP_R0]; in ath12k_hal_ce_dst_setup() 1435 int ring_num, int mac_id) in ath12k_hal_srng_get_ring_id() argument 1440 if (ring_num >= srng_config->max_rings) { in ath12k_hal_srng_get_ring_id() 1441 ath12k_warn(ab, "invalid ring number :%d\n", ring_num); in ath12k_hal_srng_get_ring_id() 1445 ring_id = srng_config->start_ring_id + ring_num; in ath12k_hal_srng_get_ring_id() 1887 int ring_num, int mac_id, in ath12k_hal_srng_setup() argument 1898 ring_id = ath12k_hal_srng_get_ring_id(ab, type, ring_num, mac_id); in ath12k_hal_srng_setup() 1925 (ring_num * srng_config->reg_size[i]); in ath12k_hal_srng_setup() 1947 type, ring_num, in ath12k_hal_srng_setup() [all …]
|
D | dp.c | 113 static int ath12k_dp_srng_find_ring_in_mask(int ring_num, const u8 *grp_mask) in ath12k_dp_srng_find_ring_in_mask() argument 116 u8 mask = 1 << ring_num; in ath12k_dp_srng_find_ring_in_mask() 128 enum hal_ring_type type, int ring_num) in ath12k_dp_srng_calculate_msi_group() argument 134 if (ring_num == HAL_WBM2SW_REL_ERR_RING_NUM) { in ath12k_dp_srng_calculate_msi_group() 136 ring_num = 0; in ath12k_dp_srng_calculate_msi_group() 175 return ath12k_dp_srng_find_ring_in_mask(ring_num, grp_mask); in ath12k_dp_srng_calculate_msi_group() 180 enum hal_ring_type type, int ring_num) in ath12k_dp_srng_msi_setup() argument 193 ring_num); in ath12k_dp_srng_msi_setup() 197 type, ring_num); in ath12k_dp_srng_msi_setup() 219 enum hal_ring_type type, int ring_num, in ath12k_dp_srng_setup() argument [all …]
|
D | dbring.c | 187 int ring_num, int num_entries) in ath12k_dbring_srng_setup() argument 192 ring_num, ar->pdev_idx, num_entries); in ath12k_dbring_srng_setup() 195 ret, ring_num); in ath12k_dbring_srng_setup()
|
D | dbring.h | 71 int ring_num, int num_entries);
|
D | hw.h | 197 bool (*dp_srng_is_tx_comp_ring)(int ring_num);
|
D | hal.h | 1129 int ring_num, int mac_id, 1138 int ring_num);
|
/linux-6.6.21/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_main.c | 1215 struct net_device *ndev, u32 ring_num, in xgene_enet_create_desc_ring() argument 1234 ring->num = ring_num; in xgene_enet_create_desc_ring() 1314 u16 ring_num = pdata->ring_num; in xgene_enet_create_desc_rings() local 1328 rx_ring = xgene_enet_create_desc_ring(ndev, ring_num++, in xgene_enet_create_desc_rings() 1339 buf_pool = xgene_enet_create_desc_ring(ndev, ring_num++, in xgene_enet_create_desc_rings() 1370 page_pool = xgene_enet_create_desc_ring(ndev, ring_num++, in xgene_enet_create_desc_rings() 1403 tx_ring = xgene_enet_create_desc_ring(ndev, ring_num++, in xgene_enet_create_desc_rings() 1428 cp_ring = xgene_enet_create_desc_ring(ndev, ring_num++, in xgene_enet_create_desc_rings() 1928 pdata->ring_num = START_RING_NUM_0; in xgene_enet_setup_ops() 1933 pdata->ring_num = START_RING_NUM_0; in xgene_enet_setup_ops() [all …]
|
D | xgene_enet_main.h | 228 u16 ring_num; member
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_rcb.c | 515 u32 ring_num = rcb_common->ring_num; in hns_rcb_get_cfg() local 521 for (i = 0; i < ring_num; i++) { in hns_rcb_get_cfg() 781 int ring_num = hns_rcb_get_ring_num(dsaf_dev); in hns_rcb_common_get_cfg() local 785 struct_size(rcb_common, ring_pair_cb, ring_num), in hns_rcb_common_get_cfg() 792 rcb_common->ring_num = ring_num; in hns_rcb_common_get_cfg()
|
D | hns_dsaf_rcb.h | 108 u32 ring_num; member
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_mbx.c | 187 int ring_num; in hclge_get_ring_chain_from_mbx() local 190 ring_num = req->msg.ring_num; in hclge_get_ring_chain_from_mbx() 192 if (ring_num > HCLGE_MBX_MAX_RING_CHAIN_PARAM_NUM) in hclge_get_ring_chain_from_mbx() 195 for (i = 0; i < ring_num; i++) { in hclge_get_ring_chain_from_mbx() 214 for (i = 1; i < ring_num; i++) { in hclge_get_ring_chain_from_mbx() 306 req->msg.ring_num = HCLGE_LIMIT_RING_NUM; in hclge_get_vf_ring_vector_map()
|
/linux-6.6.21/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_main.c | 1071 unsigned int ring_num; in pch_gbe_tx_queue() local 1119 ring_num = tx_ring->next_to_use; in pch_gbe_tx_queue() 1120 if (unlikely((ring_num + 1) == tx_ring->count)) in pch_gbe_tx_queue() 1123 tx_ring->next_to_use = ring_num + 1; in pch_gbe_tx_queue() 1126 buffer_info = &tx_ring->buffer_info[ring_num]; in pch_gbe_tx_queue() 1145 tx_ring->next_to_use = ring_num; in pch_gbe_tx_queue() 1153 tx_desc = PCH_GBE_TX_DESC(*tx_ring, ring_num); in pch_gbe_tx_queue() 1160 if (unlikely(++ring_num == tx_ring->count)) in pch_gbe_tx_queue() 1161 ring_num = 0; in pch_gbe_tx_queue() 1165 (int)sizeof(struct pch_gbe_tx_desc) * ring_num, in pch_gbe_tx_queue()
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/ |
D | hclge_mbx.h | 130 u8 ring_num; member
|
D | hns3_debugfs.c | 580 int len, u32 ring_num, int *pos) in hns3_dbg_tx_spare_info() argument 602 for (i = 0; i < ring_num; i++) { in hns3_dbg_tx_spare_info()
|
/linux-6.6.21/drivers/dma/ |
D | xgene-dma.c | 306 int ring_num; member 1193 ring->num = chan->pdma->ring_num++; in xgene_dma_create_ring_one() 1606 pdma->ring_num = XGENE_DMA_RING_NUM; in xgene_dma_init_channels()
|
/linux-6.6.21/drivers/net/ethernet/broadcom/ |
D | bnx2.c | 5161 bnx2_init_tx_ring(struct bnx2 *bp, int ring_num) in bnx2_init_tx_ring() argument 5168 bnapi = &bp->bnx2_napi[ring_num]; in bnx2_init_tx_ring() 5171 if (ring_num == 0) in bnx2_init_tx_ring() 5174 cid = TX_TSS_CID + ring_num - 1; in bnx2_init_tx_ring() 5217 bnx2_init_rx_ring(struct bnx2 *bp, int ring_num) in bnx2_init_rx_ring() argument 5222 struct bnx2_napi *bnapi = &bp->bnx2_napi[ring_num]; in bnx2_init_rx_ring() 5225 if (ring_num == 0) in bnx2_init_rx_ring() 5228 cid = RX_RSS_CID + ring_num - 1; in bnx2_init_rx_ring() 5250 BNX2_L2CTX_RBDC_JUMBO_KEY - ring_num); in bnx2_init_rx_ring() 5272 ring_num, i, bp->rx_pg_ring_size); in bnx2_init_rx_ring() [all …]
|
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 568 static bool is_rx_ring(struct bnxt *bp, int ring_num) in is_rx_ring() argument 570 return ring_num < bp->rx_nr_rings; in is_rx_ring() 573 static bool is_tx_ring(struct bnxt *bp, int ring_num) in is_tx_ring() argument 580 if (ring_num >= tx_base && ring_num < (tx_base + bp->tx_nr_rings)) in is_tx_ring()
|