Home
last modified time | relevance | path

Searched refs:bdq (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_txrx.c899 static u16 fbnic_rcd_bd_idx(const struct fbnic_ring *bdq, u64 rcd) in fbnic_bd_prep()
901 return FIELD_GET(FBNIC_RCD_AL_BUFF_ID_MASK, rcd) >> bdq->bd_page_shift; in fbnic_bd_prep()
904 static unsigned int fbnic_rcd_bd_page_offset(const struct fbnic_ring *bdq, in fbnic_bd_prep()
908 u16 page_id = id & (fbnic_bd_page_count(bdq) - 1); in fbnic_bd_prep()
913 static void fbnic_bd_prep(struct fbnic_ring *bdq, u16 id, netmem_ref netmem) in fbnic_bd_prep()
915 __le64 *bdq_desc = &bdq->desc[id * fbnic_bd_page_count(bdq)]; in fbnic_bd_prep()
917 u64 bd, i = fbnic_bd_page_count(bdq); in fbnic_bd_prep()
920 FIELD_PREP(FBNIC_BD_DESC_ID_MASK, (u64)id << bdq->bd_page_shift); in fbnic_fill_bdq() argument
933 static void fbnic_fill_bdq(struct fbnic_ring *bdq) in fbnic_fill_bdq()
898 fbnic_bd_prep(struct fbnic_ring * bdq,u16 id,netmem_ref netmem) fbnic_bd_prep() argument
1445 fbnic_aggregate_ring_bdq_counters(struct fbnic_net * fbn,struct fbnic_ring * bdq) fbnic_aggregate_ring_bdq_counters() argument
1528 fbnic_remove_bdq_ring(struct fbnic_net * fbn,struct fbnic_ring * bdq) fbnic_remove_bdq_ring() argument
[all...]
H A Dfbnic_txrx.h108 } bdq;
182 static inline u16 fbnic_bd_page_count(const struct fbnic_ring *bdq)
184 return 1U << bdq->bd_page_shift;
97 } bdq; global() member
H A Dfbnic_netdev.c605 alloc_fail_bdq = stats->bdq.alloc_failed; in fbnic_get_queue_stats_rx()
612 alloc_fail_bdq = stats->bdq.alloc_failed; in fbnic_get_queue_stats_rx()
694 fbn->bdq_stats.bdq.alloc_failed; in fbnic_get_base_stats()
/linux/drivers/scsi/qedi/
H A Dqedi_main.c1507 if (qedi->bdq[i].buf_addr) { in qedi_free_bdq()
1509 qedi->bdq[i].buf_addr, in qedi_free_bdq()
1510 qedi->bdq[i].buf_dma); in qedi_free_bdq()
1545 qedi->bdq[i].buf_addr = in qedi_alloc_bdq()
1548 &qedi->bdq[i].buf_dma, in qedi_alloc_bdq()
1550 if (!qedi->bdq[i].buf_addr) { in qedi_alloc_bdq()
1580 cpu_to_le32(QEDI_U64_HI(qedi->bdq[i].buf_dma)); in qedi_alloc_bdq()
1582 cpu_to_le32(QEDI_U64_LO(qedi->bdq[i].buf_dma)); in qedi_alloc_bdq()
H A Dqedi.h296 struct qedi_bdq_buf bdq[QEDI_BDQ_NUM]; member
H A Dqedi_fw.c350 memcpy(ptr, (void *)qedi->bdq[idx].buf_addr, len); in qedi_get_rq_bdq_buf()
378 pbl->address.hi = cpu_to_le32(QEDI_U64_HI(qedi->bdq[idx].buf_dma)); in qedi_put_rq_bdq_buf()
379 pbl->address.lo = cpu_to_le32(QEDI_U64_LO(qedi->bdq[idx].buf_dma)); in qedi_put_rq_bdq_buf()
/linux/drivers/scsi/qedf/
H A Dqedf_main.c2936 if (qedf->bdq[i].buf_addr) { in qedf_free_bdq()
2938 qedf->bdq[i].buf_addr, qedf->bdq[i].buf_dma); in qedf_free_bdq()
2973 qedf->bdq[i].buf_addr = dma_alloc_coherent(&qedf->pdev->dev, in qedf_alloc_bdq()
2974 QEDF_BDQ_BUF_SIZE, &qedf->bdq[i].buf_dma, GFP_KERNEL); in qedf_alloc_bdq()
2975 if (!qedf->bdq[i].buf_addr) { in qedf_alloc_bdq()
3005 pbl->address.hi = cpu_to_le32(U64_HI(qedf->bdq[i].buf_dma)); in qedf_alloc_bdq()
3006 pbl->address.lo = cpu_to_le32(U64_LO(qedf->bdq[i].buf_dma)); in qedf_alloc_bdq()
H A Dqedf_io.c2514 bdq_addr = qedf->bdq[bdq_idx].buf_addr; in qedf_process_unsol_compl()