Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_regs.c325 struct hclge_desc *desc_src, int bd_num, in hclge_dfx_reg_cmd_send() argument
332 for (i = 0; i < bd_num - 1; i++) { in hclge_dfx_reg_cmd_send()
339 ret = hclge_cmd_send(&hdev->hw, desc, bd_num); in hclge_dfx_reg_cmd_send()
350 struct hclge_desc *desc, int bd_num) in hclge_dfx_reg_rpu_tnl_cmd_send() argument
354 for (i = 0; i < bd_num; i++) { in hclge_dfx_reg_rpu_tnl_cmd_send()
357 if (i != bd_num - 1) in hclge_dfx_reg_rpu_tnl_cmd_send()
362 ret = hclge_cmd_send(&hdev->hw, desc, bd_num); in hclge_dfx_reg_rpu_tnl_cmd_send()
370 static int hclge_dfx_reg_fetch_data(struct hclge_desc *desc_src, int bd_num, in hclge_dfx_reg_fetch_data() argument
378 reg_num = entries_per_desc * bd_num; in hclge_dfx_reg_fetch_data()
428 int bd_num) in hclge_get_dfx_rpu_tnl_reg() argument
[all …]
Dhclge_err.c1469 .bd_num = HCLGE_BD_NUM_SSU_REG_0,
1474 .bd_num = HCLGE_BD_NUM_SSU_REG_1,
1479 .bd_num = HCLGE_BD_NUM_RPU_REG_0,
1485 .bd_num = HCLGE_BD_NUM_RPU_REG_1,
1490 .bd_num = HCLGE_BD_NUM_IGU_EGU_REG,
1495 .bd_num = HCLGE_BD_NUM_GEN_REG,
1501 .bd_num = HCLGE_BD_NUM_GEN_REG,
1572 desc_len = msg->bd_num * sizeof(struct hclge_desc); in hclge_query_reg_info()
1582 msg->bd_num, msg->cmd); in hclge_query_reg_info()
2474 u32 mpf_bd_num, pf_bd_num, bd_num; in hclge_handle_all_ras_errors() local
[all …]
Dhclge_debugfs.c777 u32 *bd_num) in hclge_dbg_get_dfx_bd_num() argument
795 *bd_num = le32_to_cpu(desc[offset / entries_per_desc].data[index]); in hclge_dbg_get_dfx_bd_num()
796 if (!(*bd_num)) { in hclge_dbg_get_dfx_bd_num()
805 int index, int bd_num, enum hclge_opcode_type cmd) in hclge_dbg_cmd_send() argument
813 for (i = 1; i < bd_num; i++) { in hclge_dbg_cmd_send()
819 ret = hclge_cmd_send(&hdev->hw, desc_src, bd_num); in hclge_dbg_cmd_send()
835 int bd_num, min_num, ret; in hclge_dbg_dump_reg_tqp() local
838 ret = hclge_dbg_get_dfx_bd_num(hdev, reg_msg->offset, &bd_num); in hclge_dbg_dump_reg_tqp()
842 desc_src = kcalloc(bd_num, sizeof(struct hclge_desc), GFP_KERNEL); in hclge_dbg_dump_reg_tqp()
846 min_num = min_t(int, bd_num * HCLGE_DESC_DATA_LEN, reg_msg->msg_num); in hclge_dbg_dump_reg_tqp()
[all …]
Dhclge_debugfs.h135 int index, int bd_num, enum hclge_opcode_type cmd);
Dhclge_err.h249 u8 bd_num; /* the bd number of hclge_desc used */ member
Dhclge_cmd.h775 __le32 bd_num; member
/linux-6.12.1/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.c1448 int bd_num = 2; in tsi721_bdma_maint_init() local
1463 bd_num * sizeof(struct tsi721_dma_desc), in tsi721_bdma_maint_init()
1468 priv->mdma.bd_num = bd_num; in tsi721_bdma_maint_init()
1476 sts_size = (bd_num >= TSI721_DMA_MINSTSSZ) ? in tsi721_bdma_maint_init()
1477 bd_num : TSI721_DMA_MINSTSSZ; in tsi721_bdma_maint_init()
1485 bd_num * sizeof(struct tsi721_dma_desc), in tsi721_bdma_maint_init()
1500 bd_ptr[bd_num - 1].type_id = cpu_to_le32(DTYPE3 << 29); in tsi721_bdma_maint_init()
1501 bd_ptr[bd_num - 1].next_lo = cpu_to_le32((u64)bd_phys & in tsi721_bdma_maint_init()
1503 bd_ptr[bd_num - 1].next_hi = cpu_to_le32((u64)bd_phys >> 32); in tsi721_bdma_maint_init()
1549 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
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c1768 unsigned int bd_num) in hns3_skb_bd_num() argument
1775 bd_size[bd_num++] = HNS3_MAX_BD_SIZE; in hns3_skb_bd_num()
1778 if (bd_num > HNS3_MAX_TSO_BD_NUM) in hns3_skb_bd_num()
1779 return bd_num; in hns3_skb_bd_num()
1783 bd_size[bd_num++] = size; in hns3_skb_bd_num()
1784 if (bd_num > HNS3_MAX_TSO_BD_NUM) in hns3_skb_bd_num()
1785 return bd_num; in hns3_skb_bd_num()
1795 bd_size[bd_num++] = HNS3_MAX_BD_SIZE; in hns3_skb_bd_num()
1798 if (bd_num > HNS3_MAX_TSO_BD_NUM) in hns3_skb_bd_num()
1799 return bd_num; in hns3_skb_bd_num()
[all …]
/linux-6.12.1/include/linux/qed/
Deth_common.h222 u8 bd_num; member
/linux-6.12.1/drivers/net/ethernet/qlogic/qede/
Dqede_fp.c1163 qede_recycle_rx_bd_ring(rxq, cqe->bd_num); in qede_rx_xdp()
1183 for (num_frags = cqe->bd_num - 1; num_frags > 0; num_frags--) { in qede_rx_build_jumbo()
1308 qede_recycle_rx_bd_ring(rxq, fp_cqe->bd_num); in qede_rx_process_cqe()
1315 if (fp_cqe->bd_num > 1) { in qede_rx_process_cqe()