Home
last modified time | relevance | path

Searched refs:db_index (Results 1 – 17 of 17) sorted by relevance

/drivers/net/ethernet/microchip/sparx5/
Dsparx5_fdma.c216 db_hw = &rx->dcb_entries[rx->dcb_index].db[rx->db_index]; in sparx5_fdma_rx_get_frame()
219 skb = rx->skb[rx->dcb_index][rx->db_index]; in sparx5_fdma_rx_get_frame()
226 rx->skb[rx->dcb_index][rx->db_index] = new_skb; in sparx5_fdma_rx_get_frame()
267 rx->db_index++; in sparx5_fdma_napi_callback()
270 if (rx->db_index != FDMA_RX_DCB_MAX_DBS) in sparx5_fdma_napi_callback()
275 rx->db_index = 0; in sparx5_fdma_napi_callback()
358 rx->db_index = 0; in sparx5_fdma_rx_alloc()
Dsparx5_main.h129 int db_index; member
/drivers/infiniband/hw/mthca/
Dmthca_srq.c63 __be32 db_index; member
138 context->db_index = cpu_to_be32(srq->db_index); in mthca_arbel_init_srq_context()
247 srq->db_index = mthca_alloc_db(dev, MTHCA_DB_TYPE_SRQ, in mthca_alloc_srq()
249 if (srq->db_index < 0) { in mthca_alloc_srq()
316 mthca_free_db(dev, MTHCA_DB_TYPE_SRQ, srq->db_index); in mthca_alloc_srq()
364 mthca_free_db(dev, MTHCA_DB_TYPE_SRQ, srq->db_index); in mthca_free_srq()
Dmthca_provider.c409 context->db_tab, ucmd.db_index, in mthca_create_srq()
416 srq->db_index = ucmd.db_index; in mthca_create_srq()
424 context->db_tab, ucmd.db_index); in mthca_create_srq()
447 context->db_tab, to_msrq(srq)->db_index); in mthca_destroy_srq()
496 qp->sq.db_index = ucmd.sq_db_index; in mthca_create_qp()
497 qp->rq.db_index = ucmd.rq_db_index; in mthca_create_qp()
564 to_mqp(qp)->sq.db_index); in mthca_destroy_qp()
568 to_mqp(qp)->rq.db_index); in mthca_destroy_qp()
Dmthca_provider.h215 int db_index; /* Arbel only */ member
239 int db_index; /* Arbel only */ member
Dmthca_qp.c739 qp_context->snd_db_index = cpu_to_be32(qp->sq.db_index); in __mthca_modify_qp()
777 qp_context->rcv_db_index = cpu_to_be32(qp->rq.db_index); in __mthca_modify_qp()
1137 qp->rq.db_index = mthca_alloc_db(dev, MTHCA_DB_TYPE_RQ, in mthca_alloc_memfree()
1139 if (qp->rq.db_index < 0) in mthca_alloc_memfree()
1142 qp->sq.db_index = mthca_alloc_db(dev, MTHCA_DB_TYPE_SQ, in mthca_alloc_memfree()
1144 if (qp->sq.db_index < 0) { in mthca_alloc_memfree()
1145 mthca_free_db(dev, MTHCA_DB_TYPE_RQ, qp->rq.db_index); in mthca_alloc_memfree()
1157 mthca_free_db(dev, MTHCA_DB_TYPE_SQ, qp->sq.db_index); in mthca_free_memfree()
1158 mthca_free_db(dev, MTHCA_DB_TYPE_RQ, qp->rq.db_index); in mthca_free_memfree()
Dmthca_memfree.c667 void mthca_free_db(struct mthca_dev *dev, int type, int db_index) in mthca_free_db() argument
672 i = db_index / MTHCA_DB_REC_PER_PAGE; in mthca_free_db()
673 j = db_index % MTHCA_DB_REC_PER_PAGE; in mthca_free_db()
Dmthca_memfree.h177 void mthca_free_db(struct mthca_dev *dev, int type, int db_index);
/drivers/net/ethernet/microchip/lan966x/
Dlan966x_fdma.c43 page = rx->page[rx->dcb_index][rx->db_index]; in lan966x_fdma_rx_free_page()
125 rx->db_index = 0; in lan966x_fdma_rx_alloc()
457 db = &rx->dcbs[rx->dcb_index].db[rx->db_index]; in lan966x_fdma_rx_more_frames()
471 db = &rx->dcbs[rx->dcb_index].db[rx->db_index]; in lan966x_fdma_rx_check_frame()
472 page = rx->page[rx->dcb_index][rx->db_index]; in lan966x_fdma_rx_check_frame()
503 db = &rx->dcbs[rx->dcb_index].db[rx->db_index]; in lan966x_fdma_rx_get_frame()
504 page = rx->page[rx->dcb_index][rx->db_index]; in lan966x_fdma_rx_get_frame()
598 db = &rx->dcbs[dcb_reload].db[rx->db_index]; in lan966x_fdma_napi_poll()
602 rx->page[dcb_reload][rx->db_index] = page; in lan966x_fdma_napi_poll()
Dlan966x_main.h235 int db_index; member
/drivers/net/ethernet/fungible/funcore/
Dfun_dev.h104 unsigned int db_index) in fun_db_addr() argument
106 return &fdev->dbs[db_index * fdev->db_stride]; in fun_db_addr()
/drivers/net/ethernet/google/gve/
Dgve_dqo.h53 index = be32_to_cpu(q_resources->db_index); in gve_tx_put_doorbell_dqo()
Dgve_adminq.h271 __be32 db_index; /* Device -> Guest */ member
Dgve_rx_dqo.c335 u64 index = be32_to_cpu(rx->q_resources->db_index); in gve_rx_write_doorbell_dqo()
Dgve_rx.c349 u32 db_idx = be32_to_cpu(rx->q_resources->db_index); in gve_rx_write_doorbell()
Dgve_tx.c20 iowrite32be(val, &priv->db_bar2[be32_to_cpu(q_resources->db_index)]); in gve_tx_put_doorbell()
/drivers/net/ethernet/microsoft/mana/
Dgdma_main.c270 static void mana_gd_ring_doorbell(struct gdma_context *gc, u32 db_index, in mana_gd_ring_doorbell() argument
274 void __iomem *addr = gc->db_page_base + gc->db_page_size * db_index; in mana_gd_ring_doorbell()