Home
last modified time | relevance | path

Searched refs:pbl (Results 1 – 25 of 79) sorted by relevance

1234

/Linux-v5.10/drivers/infiniband/hw/bnxt_re/
Dqplib_res.c62 static void __free_pbl(struct bnxt_qplib_res *res, struct bnxt_qplib_pbl *pbl, in __free_pbl() argument
69 for (i = 0; i < pbl->pg_count; i++) { in __free_pbl()
70 if (pbl->pg_arr[i]) in __free_pbl()
71 dma_free_coherent(&pdev->dev, pbl->pg_size, in __free_pbl()
73 pbl->pg_arr[i] & in __free_pbl()
75 pbl->pg_map_arr[i]); in __free_pbl()
79 pbl->pg_arr[i] = NULL; in __free_pbl()
82 vfree(pbl->pg_arr); in __free_pbl()
83 pbl->pg_arr = NULL; in __free_pbl()
84 vfree(pbl->pg_map_arr); in __free_pbl()
[all …]
Dqplib_res.h150 struct bnxt_qplib_pbl pbl[PBL_LVL_MAX + 1]; member
294 struct bnxt_qplib_pbl *pbl; in bnxt_qplib_base_pg_size() local
296 pbl = &hwq->pbl[PBL_LVL_0]; in bnxt_qplib_base_pg_size()
297 switch (pbl->pg_size) { in bnxt_qplib_base_pg_size()
Dqplib_fp.c608 struct bnxt_qplib_pbl *pbl; in bnxt_qplib_create_srq() local
636 pbl = &srq->hwq.pbl[PBL_LVL_0]; in bnxt_qplib_create_srq()
642 req.pbl = cpu_to_le64(pbl->pg_map_arr[0]); in bnxt_qplib_create_srq()
816 struct bnxt_qplib_pbl *pbl; in bnxt_qplib_create_qp1() local
845 pbl = &sq->hwq.pbl[PBL_LVL_0]; in bnxt_qplib_create_qp1()
846 req.sq_pbl = cpu_to_le64(pbl->pg_map_arr[0]); in bnxt_qplib_create_qp1()
870 pbl = &rq->hwq.pbl[PBL_LVL_0]; in bnxt_qplib_create_qp1()
871 req.rq_pbl = cpu_to_le64(pbl->pg_map_arr[0]); in bnxt_qplib_create_qp1()
958 struct bnxt_qplib_pbl *pbl; in bnxt_qplib_create_qp() local
999 pbl = &sq->hwq.pbl[PBL_LVL_0]; in bnxt_qplib_create_qp()
[all …]
Dqplib_rcfw.c518 cpu_to_le64(ctx->qpc_tbl.pbl[PBL_LVL_0].pg_map_arr[0]); in bnxt_qplib_init_rcfw()
520 cpu_to_le64(ctx->mrw_tbl.pbl[PBL_LVL_0].pg_map_arr[0]); in bnxt_qplib_init_rcfw()
522 cpu_to_le64(ctx->srqc_tbl.pbl[PBL_LVL_0].pg_map_arr[0]); in bnxt_qplib_init_rcfw()
524 cpu_to_le64(ctx->cq_tbl.pbl[PBL_LVL_0].pg_map_arr[0]); in bnxt_qplib_init_rcfw()
526 cpu_to_le64(ctx->tim_tbl.pbl[PBL_LVL_0].pg_map_arr[0]); in bnxt_qplib_init_rcfw()
528 cpu_to_le64(ctx->tqm_ctx.pde.pbl[PBL_LVL_0].pg_map_arr[0]); in bnxt_qplib_init_rcfw()
785 init.cmdq_pbl = cpu_to_le64(cmdq->hwq.pbl[PBL_LVL_0].pg_map_arr[0]); in bnxt_qplib_start_rcfw()
/Linux-v5.10/drivers/infiniband/hw/efa/
Defa_verbs.c1190 static int pbl_chunk_list_create(struct efa_dev *dev, struct pbl_context *pbl) in pbl_chunk_list_create() argument
1192 struct pbl_chunk_list *chunk_list = &pbl->phys.indirect.chunk_list; in pbl_chunk_list_create()
1193 int page_cnt = pbl->phys.indirect.pbl_buf_size_in_pages; in pbl_chunk_list_create()
1194 struct scatterlist *pages_sgl = pbl->phys.indirect.sgl; in pbl_chunk_list_create()
1196 int sg_dma_cnt = pbl->phys.indirect.sg_dma_cnt; in pbl_chunk_list_create()
1290 static void pbl_chunk_list_destroy(struct efa_dev *dev, struct pbl_context *pbl) in pbl_chunk_list_destroy() argument
1292 struct pbl_chunk_list *chunk_list = &pbl->phys.indirect.chunk_list; in pbl_chunk_list_destroy()
1306 struct pbl_context *pbl) in pbl_continuous_initialize() argument
1310 dma_addr = dma_map_single(&dev->pdev->dev, pbl->pbl_buf, in pbl_continuous_initialize()
1311 pbl->pbl_buf_size_in_bytes, DMA_TO_DEVICE); in pbl_continuous_initialize()
[all …]
Defa_com_cmd.c239 memcpy(mr_cmd.pbl.inline_pbl_array, in efa_com_register_mr()
240 params->pbl.inline_pbl_array, in efa_com_register_mr()
241 sizeof(mr_cmd.pbl.inline_pbl_array)); in efa_com_register_mr()
243 mr_cmd.pbl.pbl.length = params->pbl.pbl.length; in efa_com_register_mr()
244 mr_cmd.pbl.pbl.address.mem_addr_low = in efa_com_register_mr()
245 params->pbl.pbl.address.mem_addr_low; in efa_com_register_mr()
246 mr_cmd.pbl.pbl.address.mem_addr_high = in efa_com_register_mr()
247 params->pbl.pbl.address.mem_addr_high; in efa_com_register_mr()
Defa_com_cmd.h176 struct efa_com_ctrl_buff_info pbl; member
177 } pbl; member
/Linux-v5.10/include/linux/qed/
Dqed_chain.h97 } pbl; member
310 *p_next_elem = p_chain->pbl.pp_addr_tbl[page_index].virt_addr; in qed_chain_advance_page()
374 p_prod_page_idx = &p_chain->pbl.c.u16.prod_page_idx; in qed_chain_produce()
383 p_prod_page_idx = &p_chain->pbl.c.u32.prod_page_idx; in qed_chain_produce()
447 p_cons_page_idx = &p_chain->pbl.c.u16.cons_page_idx; in qed_chain_consume()
456 p_cons_page_idx = &p_chain->pbl.c.u32.cons_page_idx; in qed_chain_consume()
498 p_chain->pbl.c.u16.prod_page_idx = (u16)reset_val; in qed_chain_reset()
499 p_chain->pbl.c.u16.cons_page_idx = (u16)reset_val; in qed_chain_reset()
501 p_chain->pbl.c.u32.prod_page_idx = reset_val; in qed_chain_reset()
502 p_chain->pbl.c.u32.cons_page_idx = reset_val; in qed_chain_reset()
[all …]
/Linux-v5.10/drivers/infiniband/sw/siw/
Dsiw_mem.c150 kfree(mem->pbl); in siw_free_mem()
325 dma_addr_t siw_pbl_get_buffer(struct siw_pbl *pbl, u64 off, int *len, int *idx) in siw_pbl_get_buffer() argument
329 while (i < pbl->num_buf) { in siw_pbl_get_buffer()
330 struct siw_pble *pble = &pbl->pbe[i]; in siw_pbl_get_buffer()
351 struct siw_pbl *pbl; in siw_pbl_alloc() local
356 pbl = kzalloc(struct_size(pbl, pbe, num_buf), GFP_KERNEL); in siw_pbl_alloc()
357 if (!pbl) in siw_pbl_alloc()
360 pbl->max_buf = num_buf; in siw_pbl_alloc()
362 return pbl; in siw_pbl_alloc()
Dsiw_verbs.c1373 struct siw_pbl *pbl = NULL; in siw_alloc_mr() local
1391 pbl = siw_pbl_alloc(max_sge); in siw_alloc_mr()
1392 if (IS_ERR(pbl)) { in siw_alloc_mr()
1393 rv = PTR_ERR(pbl); in siw_alloc_mr()
1395 pbl = NULL; in siw_alloc_mr()
1403 rv = siw_mr_add_mem(mr, pd, pbl, 0, max_sge * PAGE_SIZE, 0); in siw_alloc_mr()
1417 kfree(pbl); in siw_alloc_mr()
1440 struct siw_pbl *pbl = mem->pbl; in siw_map_mr_sg() local
1445 if (!pbl) { in siw_map_mr_sg()
1449 pble = pbl->pbe; in siw_map_mr_sg()
[all …]
/Linux-v5.10/drivers/infiniband/hw/qedr/
Dverbs.c505 struct qedr_pbl_info *pbl_info, struct qedr_pbl *pbl) in qedr_free_pbl() argument
511 if (!pbl[i].va) in qedr_free_pbl()
514 pbl[i].va, pbl[i].pa); in qedr_free_pbl()
517 kfree(pbl); in qedr_free_pbl()
620 struct qedr_pbl *pbl, in qedr_populate_pbls() argument
635 pbl_tbl = &pbl[1]; in qedr_populate_pbls()
637 pbl_tbl = pbl; in qedr_populate_pbls()
727 cq->latest_cqe = qed_chain_consume(&cq->pbl); in consume_cqe()
975 rc = dev->ops->common->chain_alloc(dev->cdev, &cq->pbl, in qedr_create_cq()
980 page_cnt = qed_chain_get_page_cnt(&cq->pbl); in qedr_create_cq()
[all …]
Dqedr.h75 struct qed_chain pbl; member
291 struct qed_chain pbl; member
320 struct qed_chain pbl; member
342 qed_chain_get_capacity(p_info->pbl) \
348 struct qed_chain pbl; member
Dmain.c346 dev->ops->common->chain_free(dev->cdev, &dev->cnq_array[i].pbl); in qedr_free_resources()
408 rc = dev->ops->common->chain_alloc(dev->cdev, &cnq->pbl, in qedr_alloc_resources()
421 i, qed_chain_get_cons_idx(&cnq->pbl)); in qedr_alloc_resources()
429 dev->ops->common->chain_free(dev->cdev, &dev->cnq_array[i].pbl); in qedr_alloc_resources()
470 sw_comp_cons = qed_chain_get_cons_idx(&cnq->pbl); in qedr_irq_handler()
476 cq_handle = (struct regpair *)qed_chain_consume(&cnq->pbl); in qedr_irq_handler()
510 sw_comp_cons = qed_chain_get_cons_idx(&cnq->pbl); in qedr_irq_handler()
825 page_cnt = qed_chain_get_page_cnt(&dev->cnq_array[i].pbl); in qedr_init_hw()
828 p_phys_table = qed_chain_get_pbl_phys(&dev->cnq_array[i].pbl); in qedr_init_hw()
/Linux-v5.10/drivers/infiniband/hw/cxgb4/
Dresource.c271 rdev->stats.pbl.cur += roundup(size, 1 << MIN_PBL_SHIFT); in c4iw_pblpool_alloc()
272 if (rdev->stats.pbl.cur > rdev->stats.pbl.max) in c4iw_pblpool_alloc()
273 rdev->stats.pbl.max = rdev->stats.pbl.cur; in c4iw_pblpool_alloc()
276 rdev->stats.pbl.fail++; in c4iw_pblpool_alloc()
294 rdev->stats.pbl.cur -= roundup(size, 1 << MIN_PBL_SHIFT); in c4iw_pblpool_free()
308 pbl_start = rdev->lldi.vr->pbl.start; in c4iw_pblpool_create()
309 pbl_chunk = rdev->lldi.vr->pbl.size; in c4iw_pblpool_create()
/Linux-v5.10/drivers/scsi/bnx2fc/
Dbnx2fc_tgt.c667 u32 *pbl; in bnx2fc_alloc_session_resc() local
722 pbl = (u32 *)tgt->rq_pbl; in bnx2fc_alloc_session_resc()
725 *pbl = (u32)page; in bnx2fc_alloc_session_resc()
726 pbl++; in bnx2fc_alloc_session_resc()
727 *pbl = (u32)((u64)page >> 32); in bnx2fc_alloc_session_resc()
728 pbl++; in bnx2fc_alloc_session_resc()
776 pbl = (u32 *)tgt->confq_pbl; in bnx2fc_alloc_session_resc()
779 *pbl = (u32)page; in bnx2fc_alloc_session_resc()
780 pbl++; in bnx2fc_alloc_session_resc()
781 *pbl = (u32)((u64)page >> 32); in bnx2fc_alloc_session_resc()
[all …]
Dbnx2fc_hwi.c1988 u32 *pbl; in bnx2fc_free_hash_table() local
1992 pbl = hba->hash_tbl_pbl; in bnx2fc_free_hash_table()
1993 if (pbl) { in bnx2fc_free_hash_table()
1998 dma_address = le32_to_cpu(*pbl); in bnx2fc_free_hash_table()
1999 ++pbl; in bnx2fc_free_hash_table()
2000 dma_address += ((u64)le32_to_cpu(*pbl)) << 32; in bnx2fc_free_hash_table()
2001 ++pbl; in bnx2fc_free_hash_table()
2029 u32 *pbl; in bnx2fc_allocate_hash_table() local
2070 pbl = hba->hash_tbl_pbl; in bnx2fc_allocate_hash_table()
2073 *pbl = cpu_to_le32((u32) paddr); in bnx2fc_allocate_hash_table()
[all …]
/Linux-v5.10/drivers/net/ethernet/qlogic/qed/
Dqed_chain.c111 if (!chain->pbl.pp_addr_tbl) in qed_chain_free_pbl()
115 entry = chain->pbl.pp_addr_tbl + i; in qed_chain_free_pbl()
128 vfree(chain->pbl.pp_addr_tbl); in qed_chain_free_pbl()
129 chain->pbl.pp_addr_tbl = NULL; in qed_chain_free_pbl()
269 chain->pbl.pp_addr_tbl = addr_tbl; in qed_chain_alloc_pbl()
/Linux-v5.10/drivers/scsi/qedi/
Dqedi_main.c1540 struct scsi_bd *pbl; in qedi_alloc_bdq() local
1578 pbl = (struct scsi_bd *)qedi->bdq_pbl; in qedi_alloc_bdq()
1580 pbl->address.hi = in qedi_alloc_bdq()
1582 pbl->address.lo = in qedi_alloc_bdq()
1586 pbl, pbl->address.hi, pbl->address.lo, i); in qedi_alloc_bdq()
1587 pbl->opaque.iscsi_opaque.reserved_zero[0] = 0; in qedi_alloc_bdq()
1588 pbl->opaque.iscsi_opaque.reserved_zero[1] = 0; in qedi_alloc_bdq()
1589 pbl->opaque.iscsi_opaque.reserved_zero[2] = 0; in qedi_alloc_bdq()
1590 pbl->opaque.iscsi_opaque.opaque = cpu_to_le16(i); in qedi_alloc_bdq()
1591 pbl++; in qedi_alloc_bdq()
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/net/
Dsamsung-sxgbe.txt15 - samsung,pbl: Integer, Programmable Burst Length.
47 samsung,pbl = <0x08>
/Linux-v5.10/include/linux/
Dsxgbe_platform.h33 int pbl; member
/Linux-v5.10/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_dma.c44 int fix_burst, int pbl, dma_addr_t dma_tx, in sxgbe_dma_channel_init() argument
57 reg_val |= (pbl << SXGBE_DMA_TXPBL_LSHIFT); in sxgbe_dma_channel_init()
61 reg_val |= (pbl << SXGBE_DMA_RXPBL_LSHIFT); in sxgbe_dma_channel_init()
Dsxgbe_dma.h24 int pbl, dma_addr_t dma_tx, dma_addr_t dma_rx,
/Linux-v5.10/drivers/net/ethernet/tehuti/
Dtehuti.h315 struct pbl { struct
333 struct pbl pbl[]; /* Fragments */ argument
Dtehuti.c1478 struct pbl *pbl = &txdd->pbl[0]; in bdx_tx_map_skb() local
1485 pbl->len = CPU_CHIP_SWAP32(db->wptr->len); in bdx_tx_map_skb()
1486 pbl->pa_lo = CPU_CHIP_SWAP32(L32_64(db->wptr->addr.dma)); in bdx_tx_map_skb()
1487 pbl->pa_hi = CPU_CHIP_SWAP32(H32_64(db->wptr->addr.dma)); in bdx_tx_map_skb()
1488 DBG("=== pbl len: 0x%x ================\n", pbl->len); in bdx_tx_map_skb()
1489 DBG("=== pbl pa_lo: 0x%x ================\n", pbl->pa_lo); in bdx_tx_map_skb()
1490 DBG("=== pbl pa_hi: 0x%x ================\n", pbl->pa_hi); in bdx_tx_map_skb()
1502 pbl++; in bdx_tx_map_skb()
1503 pbl->len = CPU_CHIP_SWAP32(db->wptr->len); in bdx_tx_map_skb()
1504 pbl->pa_lo = CPU_CHIP_SWAP32(L32_64(db->wptr->addr.dma)); in bdx_tx_map_skb()
[all …]
/Linux-v5.10/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_pci.c61 plat->dma_cfg->pbl = 32; in stmmac_default_data()
117 plat->dma_cfg->pbl = 32; in snps_gmac5_default_data()

1234