Home
last modified time | relevance | path

Searched refs:bd_num (Results 1 – 9 of 9) sorted by relevance

/drivers/rapidio/devices/
Dtsi721_dma.c63 static int tsi721_bdma_ch_init(struct tsi721_bdma_chan *bdma_chan, int bd_num) in tsi721_bdma_ch_init() argument
82 (bd_num + 1) * sizeof(struct tsi721_dma_desc), in tsi721_bdma_ch_init()
87 bdma_chan->bd_num = bd_num; in tsi721_bdma_ch_init()
96 sts_size = ((bd_num + 1) >= TSI721_DMA_MINSTSSZ) ? in tsi721_bdma_ch_init()
97 (bd_num + 1) : TSI721_DMA_MINSTSSZ; in tsi721_bdma_ch_init()
105 (bd_num + 1) * sizeof(struct tsi721_dma_desc), in tsi721_bdma_ch_init()
120 bd_ptr[bd_num].type_id = cpu_to_le32(DTYPE3 << 29); in tsi721_bdma_ch_init()
121 bd_ptr[bd_num].next_lo = cpu_to_le32((u64)bd_phys & in tsi721_bdma_ch_init()
123 bd_ptr[bd_num].next_hi = cpu_to_le32((u64)bd_phys >> 32); in tsi721_bdma_ch_init()
181 (bd_num + 1) * sizeof(struct tsi721_dma_desc), in tsi721_bdma_ch_init()
[all …]
Dtsi721.c1423 int bd_num = 2; in tsi721_bdma_maint_init() local
1438 bd_num * sizeof(struct tsi721_dma_desc), in tsi721_bdma_maint_init()
1443 priv->mdma.bd_num = bd_num; in tsi721_bdma_maint_init()
1451 sts_size = (bd_num >= TSI721_DMA_MINSTSSZ) ? in tsi721_bdma_maint_init()
1452 bd_num : TSI721_DMA_MINSTSSZ; in tsi721_bdma_maint_init()
1460 bd_num * sizeof(struct tsi721_dma_desc), in tsi721_bdma_maint_init()
1475 bd_ptr[bd_num - 1].type_id = cpu_to_le32(DTYPE3 << 29); in tsi721_bdma_maint_init()
1476 bd_ptr[bd_num - 1].next_lo = cpu_to_le32((u64)bd_phys & in tsi721_bdma_maint_init()
1478 bd_ptr[bd_num - 1].next_hi = cpu_to_le32((u64)bd_phys >> 32); in tsi721_bdma_maint_init()
1524 mdma->bd_num * sizeof(struct tsi721_dma_desc), in tsi721_bdma_maint_free()
Dtsi721.h691 int bd_num; /* number of HW buffer descriptors */ member
715 int bd_num; /* number of buffer descriptors */ member
/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c1158 unsigned int bd_num) in hns3_skb_bd_num() argument
1165 bd_size[bd_num++] = HNS3_MAX_BD_SIZE; in hns3_skb_bd_num()
1168 if (bd_num > HNS3_MAX_TSO_BD_NUM) in hns3_skb_bd_num()
1169 return bd_num; in hns3_skb_bd_num()
1173 bd_size[bd_num++] = size; in hns3_skb_bd_num()
1174 if (bd_num > HNS3_MAX_TSO_BD_NUM) in hns3_skb_bd_num()
1175 return bd_num; in hns3_skb_bd_num()
1185 bd_size[bd_num++] = HNS3_MAX_BD_SIZE; in hns3_skb_bd_num()
1188 if (bd_num > HNS3_MAX_TSO_BD_NUM) in hns3_skb_bd_num()
1189 return bd_num; in hns3_skb_bd_num()
[all …]
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_debugfs.c95 int index, int bd_num, in hclge_dbg_cmd_send() argument
104 for (i = 1; i < bd_num; i++) { in hclge_dbg_cmd_send()
110 ret = hclge_cmd_send(&hdev->hw, desc_src, bd_num); in hclge_dbg_cmd_send()
129 int bd_num, buf_len; in hclge_dbg_dump_reg_common() local
139 bd_num = hclge_dbg_get_dfx_bd_num(hdev, reg_msg->offset); in hclge_dbg_dump_reg_common()
140 if (bd_num <= 0) { in hclge_dbg_dump_reg_common()
142 reg_msg->offset, bd_num); in hclge_dbg_dump_reg_common()
146 buf_len = sizeof(struct hclge_desc) * bd_num; in hclge_dbg_dump_reg_common()
152 ret = hclge_dbg_cmd_send(hdev, desc, index, bd_num, reg_msg->cmd); in hclge_dbg_dump_reg_common()
159 min_num = min_t(int, bd_num * entries_per_desc, reg_msg->msg_num); in hclge_dbg_dump_reg_common()
[all …]
Dhclge_err.c1347 u32 mpf_bd_num, pf_bd_num, bd_num; in hclge_handle_all_ras_errors() local
1356 bd_num = max_t(u32, mpf_bd_num, pf_bd_num); in hclge_handle_all_ras_errors()
1357 desc = kcalloc(bd_num, sizeof(struct hclge_desc), GFP_KERNEL); in hclge_handle_all_ras_errors()
1367 memset(desc, 0, bd_num * sizeof(struct hclge_desc)); in hclge_handle_all_ras_errors()
1682 u32 bd_num) in hclge_clear_hw_msix_error() argument
1692 return hclge_cmd_send(&hdev->hw, &desc[0], bd_num); in hclge_clear_hw_msix_error()
1889 u32 mpf_bd_num, pf_bd_num, bd_num; in hclge_handle_all_hw_msix_error() local
1899 bd_num = max_t(u32, mpf_bd_num, pf_bd_num); in hclge_handle_all_hw_msix_error()
1900 desc = kcalloc(bd_num, sizeof(struct hclge_desc), GFP_KERNEL); in hclge_handle_all_hw_msix_error()
1909 memset(desc, 0, bd_num * sizeof(struct hclge_desc)); in hclge_handle_all_hw_msix_error()
[all …]
Dhclge_main.c10959 struct hclge_desc *desc_src, int bd_num, in hclge_dfx_reg_cmd_send() argument
10966 for (i = 0; i < bd_num - 1; i++) { in hclge_dfx_reg_cmd_send()
10973 ret = hclge_cmd_send(&hdev->hw, desc, bd_num); in hclge_dfx_reg_cmd_send()
10982 static int hclge_dfx_reg_fetch_data(struct hclge_desc *desc_src, int bd_num, in hclge_dfx_reg_fetch_data() argument
10990 reg_num = entries_per_desc * bd_num; in hclge_dfx_reg_fetch_data()
11006 int data_len_per_desc, bd_num, i; in hclge_get_dfx_reg_len() local
11025 bd_num = bd_num_list[i]; in hclge_get_dfx_reg_len()
11026 data_len = data_len_per_desc * bd_num; in hclge_get_dfx_reg_len()
11038 int bd_num, bd_num_max, buf_len, i; in hclge_get_dfx_reg() local
11067 bd_num = bd_num_list[i]; in hclge_get_dfx_reg()
[all …]
Dhclge_cmd.h1058 __le32 bd_num; member
/drivers/net/ethernet/qlogic/qede/
Dqede_fp.c1178 qede_recycle_rx_bd_ring(rxq, cqe->bd_num); in qede_rx_xdp()
1198 for (num_frags = cqe->bd_num - 1; num_frags > 0; num_frags--) { in qede_rx_build_jumbo()
1326 qede_recycle_rx_bd_ring(rxq, fp_cqe->bd_num); in qede_rx_process_cqe()
1333 if (fp_cqe->bd_num > 1) { in qede_rx_process_cqe()