| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/bnxt_re/ |
| H A D | qplib_res.c | 62 /* PBL */ 63 static void __free_pbl(struct bnxt_qplib_res *res, struct bnxt_qplib_pbl *pbl, in __free_pbl() argument 70 for (i = 0; i < pbl->pg_count; i++) { in __free_pbl() 71 if (pbl->pg_arr[i]) in __free_pbl() 72 dma_free_coherent(&pdev->dev, pbl->pg_size, in __free_pbl() 74 pbl->pg_arr[i] & in __free_pbl() 76 pbl->pg_map_arr[i]); in __free_pbl() 79 "PBL free pg_arr[%d] empty?!\n", i); in __free_pbl() 80 pbl->pg_arr[i] = NULL; in __free_pbl() 83 vfree(pbl->pg_arr); in __free_pbl() [all …]
|
| H A D | qplib_res.h | 151 struct bnxt_qplib_pbl pbl[PBL_LVL_MAX + 1]; member 153 /* ptr for easy access to the PBL entries */ 295 struct bnxt_qplib_pbl *pbl; in bnxt_qplib_base_pg_size() local 297 pbl = &hwq->pbl[PBL_LVL_0]; in bnxt_qplib_base_pg_size() 298 switch (pbl->pg_size) { in bnxt_qplib_base_pg_size()
|
| H A D | qplib_fp.c | 608 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() 817 struct bnxt_qplib_pbl *pbl; in bnxt_qplib_create_qp1() local 846 pbl = &sq->hwq.pbl[PBL_LVL_0]; in bnxt_qplib_create_qp1() 847 req.sq_pbl = cpu_to_le64(pbl->pg_map_arr[0]); in bnxt_qplib_create_qp1() 871 pbl = &rq->hwq.pbl[PBL_LVL_0]; in bnxt_qplib_create_qp1() 872 req.rq_pbl = cpu_to_le64(pbl->pg_map_arr[0]); in bnxt_qplib_create_qp1() 959 struct bnxt_qplib_pbl *pbl; in bnxt_qplib_create_qp() local 1000 pbl = &sq->hwq.pbl[PBL_LVL_0]; in bnxt_qplib_create_qp() [all …]
|
| /OK3568_Linux_fs/u-boot/doc/ |
| H A D | README.pblimage | 2 Freescale PBL(pre-boot loader) Boot Image generation using mkimage 6 NAND, etc. These SoCs use PBL to load RCW and/or pre-initialization 11 Building PBL Boot Image and boot steps 14 1. Building PBL Boot Image. 15 The default Image is u-boot.pbl. 30 2. pblimage support available with mkimage utility will generate Freescale PBL 35 Write u-boot.pbl to eSPI flash from offset 0x0. 37 =>tftp 100000 u-boot.pbl 44 Write u-boot.pbl to SD/MMC from offset 0x1000. 46 =>tftp 100000 u-boot.pbl [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/efa/ |
| H A D | efa_verbs.c | 1189 static int pbl_chunk_list_create(struct efa_dev *dev, struct pbl_context *pbl) in pbl_chunk_list_create() argument 1191 struct pbl_chunk_list *chunk_list = &pbl->phys.indirect.chunk_list; in pbl_chunk_list_create() 1192 int page_cnt = pbl->phys.indirect.pbl_buf_size_in_pages; in pbl_chunk_list_create() 1193 struct scatterlist *pages_sgl = pbl->phys.indirect.sgl; in pbl_chunk_list_create() 1195 int sg_dma_cnt = pbl->phys.indirect.sg_dma_cnt; in pbl_chunk_list_create() 1289 static void pbl_chunk_list_destroy(struct efa_dev *dev, struct pbl_context *pbl) in pbl_chunk_list_destroy() argument 1291 struct pbl_chunk_list *chunk_list = &pbl->phys.indirect.chunk_list; in pbl_chunk_list_destroy() 1303 /* initialize pbl continuous mode: map pbl buffer to a dma address. */ 1305 struct pbl_context *pbl) in pbl_continuous_initialize() argument 1309 dma_addr = dma_map_single(&dev->pdev->dev, pbl->pbl_buf, in pbl_continuous_initialize() [all …]
|
| H A D | efa_com_cmd.c | 239 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()
|
| /OK3568_Linux_fs/kernel/include/linux/qed/ |
| H A D | qed_chain.h | 84 /* Fastpath portions of the PBL [if exists] */ 89 * in the pbl table. 97 } pbl; member 126 /* Base address of a pre-allocated buffer for pbl */ 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() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/sw/siw/ |
| H A D | siw_mem.c | 144 siw_dbg_mem(mem, "free mem, pbl: %s\n", mem->is_pbl ? "y" : "n"); in siw_free_mem() 150 kfree(mem->pbl); in siw_free_mem() 320 * Gets physical address backed by PBL element. Address is referenced 323 * current PBL index for later resume at same element. 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() [all …]
|
| H A D | siw_verbs.c | 1378 struct siw_pbl *pbl = NULL; in siw_alloc_mr() local 1396 pbl = siw_pbl_alloc(max_sge); in siw_alloc_mr() 1397 if (IS_ERR(pbl)) { in siw_alloc_mr() 1398 rv = PTR_ERR(pbl); in siw_alloc_mr() 1399 siw_dbg_pd(pd, "pbl allocation failed: %d\n", rv); in siw_alloc_mr() 1400 pbl = NULL; in siw_alloc_mr() 1408 rv = siw_mr_add_mem(mr, pd, pbl, 0, max_sge * PAGE_SIZE, 0); in siw_alloc_mr() 1422 kfree(pbl); in siw_alloc_mr() 1445 struct siw_pbl *pbl = mem->pbl; in siw_map_mr_sg() local 1450 if (!pbl) { in siw_map_mr_sg() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/cxgb4/ |
| H A D | resource.c | 260 * PBL Memory Manager. Uses Linux generic allocator. 263 #define MIN_PBL_SHIFT 8 /* 256B == min PBL size (32 entries) */ 271 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() 315 pr_debug("failed to add PBL chunk (%x/%x)\n", in c4iw_pblpool_create() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/qedr/ |
| H A D | verbs.c | 505 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() 552 /* Two-Layer PBLs, if we have more than one pbl we need to initialize in qedr_alloc_pbl_tbl() 581 DP_ERR(dev, "prepare pbl table: too many pages %d\n", in qedr_prepare_pbl_tbl() 586 /* calculate required pbl page size */ in qedr_prepare_pbl_tbl() 601 /* One layered PBL */ in qedr_prepare_pbl_tbl() 613 "prepare pbl table: num_pbes=%d, num_pbls=%d, pbl_size=%d\n", in qedr_prepare_pbl_tbl() 620 struct qedr_pbl *pbl, in qedr_populate_pbls() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/bnx2fc/ |
| H A D | bnx2fc_tgt.c | 667 u32 *pbl; in bnx2fc_alloc_session_resc() local 695 /* Allocate and map RQ and RQ PBL */ in bnx2fc_alloc_session_resc() 715 printk(KERN_ERR PFX "unable to allocate RQ PBL %d\n", in bnx2fc_alloc_session_resc() 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() 746 /* Allocate and map CONFQ & CONFQ PBL */ in bnx2fc_alloc_session_resc() 769 printk(KERN_ERR PFX "unable to allocate CONFQ PBL %d\n", in bnx2fc_alloc_session_resc() [all …]
|
| /OK3568_Linux_fs/u-boot/board/freescale/t208xqds/ |
| H A D | README | 183 a. build PBL image for NAND boot 186 b. program u-boot-with-spl-pbl.bin to NAND flash 187 => tftp 1000000 u-boot-with-spl-pbl.bin 193 a. build PBL image for SPI boot 196 b. program u-boot-with-spl-pbl.bin to SPI flash 197 => tftp 1000000 u-boot-with-spl-pbl.bin 204 a. build PBL image for SD boot 207 b. program u-boot-with-spl-pbl.bin to SD/MMC card 208 => tftp 1000000 u-boot-with-spl-pbl.bin 217 PBL initializes the internal CPC-SRAM and copy SPL(160K) to SRAM.
|
| /OK3568_Linux_fs/u-boot/board/freescale/t208xrdb/ |
| H A D | README | 166 a. build PBL image for NAND boot 169 b. program u-boot-with-spl-pbl.bin to NAND flash 170 => tftp 1000000 u-boot-with-spl-pbl.bin 176 a. build PBL image for SPI boot 179 b. program u-boot-with-spl-pbl.bin to SPI flash 180 => tftp 1000000 u-boot-with-spl-pbl.bin 187 a. build PBL image for SD boot 190 b. program u-boot-with-spl-pbl.bin to micro-SD/TF card 191 => tftp 1000000 u-boot-with-spl-pbl.bin 198 PBL initializes the internal CPC-SRAM and copy SPL(160K) to SRAM.
|
| /OK3568_Linux_fs/kernel/drivers/scsi/qedi/ |
| H A D | qedi_main.c | 1540 struct scsi_bd *pbl; in qedi_alloc_bdq() local 1570 QEDI_ERR(&qedi->dbg_ctx, "Could not allocate BDQ PBL.\n"); in qedi_alloc_bdq() 1575 * Populate BDQ PBL with physical and virtual address of individual in qedi_alloc_bdq() 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() 1585 "pbl [0x%p] pbl->address hi [0x%llx] lo [0x%llx], idx [%d]\n", 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() [all …]
|
| /OK3568_Linux_fs/u-boot/board/freescale/t102xrdb/ |
| H A D | README | 216 a. build PBL image for NAND boot 219 b. program u-boot-with-spl-pbl.bin to NAND flash 220 => tftp 1000000 u-boot-with-spl-pbl.bin 226 a. build PBL image for SPI boot 229 b. program u-boot-with-spl-pbl.bin to SPI flash 230 => tftp 1000000 u-boot-with-spl-pbl.bin 240 a. build PBL image for SD boot 243 b. program u-boot-with-spl-pbl.bin to SD/MMC card 244 => tftp 1000000 u-boot-with-spl-pbl.bin 256 PBL initializes the internal CPC-SRAM and copy SPL(160K) to SRAM.
|
| /OK3568_Linux_fs/buildroot/package/qoriq-rcw/ |
| H A D | qoriq-rcw.mk | 51 -I $(@D)/custom_board -o $(@D)/PBL.bin 55 $(INSTALL) -D -m 0644 $(@D)/PBL.bin $(BINARIES_DIR)/PBL.bin 60 # could use a post image or SDK to build/install PBL files.
|
| /OK3568_Linux_fs/u-boot/board/freescale/t102xqds/ |
| H A D | README | 232 a. build PBL image for NAND boot 235 b. program u-boot-with-spl-pbl.bin to NAND flash 236 => tftp 1000000 u-boot-with-spl-pbl.bin 242 a. build PBL image for SPI boot 245 b. program u-boot-with-spl-pbl.bin to SPI flash 246 => tftp 1000000 u-boot-with-spl-pbl.bin 253 a. build PBL image for SD boot 256 b. program u-boot-with-spl-pbl.bin to SD/MMC card 257 => tftp 1000000 u-boot-with-spl-pbl.bin 274 PBL initializes the internal CPC-SRAM and copy SPL(160K) to SRAM.
|
| /OK3568_Linux_fs/u-boot/board/varisys/cyrus/ |
| H A D | README | 11 In order to reflash u-boot, you must download u-boot.pbl, then write it 14 > tftp 1000000 u-boot.pbl 19 > dd if=u-boot.pbl of=/dev/sdX bs=512 oseek=8
|
| /OK3568_Linux_fs/u-boot/board/freescale/p2041rdb/ |
| H A D | README | 46 2. Generate PBL imge 50 3. Program the PBL image to SDCard 69 2. Generate PBL imge 73 3. Program the PBL image to SPI flash
|
| /OK3568_Linux_fs/u-boot/board/keymile/kmp204x/ |
| H A D | pbi.cfg | 7 # and create PBL boot image 47 #Flush PBL data 74 #Flush PBL data
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/samsung/sxgbe/ |
| H A D | sxgbe_dma.c | 44 int fix_burst, int pbl, dma_addr_t dma_tx, in sxgbe_dma_channel_init() argument 51 /* set the pbl */ in sxgbe_dma_channel_init() 55 /* program the TX pbl */ in sxgbe_dma_channel_init() 57 reg_val |= (pbl << SXGBE_DMA_TXPBL_LSHIFT); in sxgbe_dma_channel_init() 59 /* program the RX pbl */ in sxgbe_dma_channel_init() 61 reg_val |= (pbl << SXGBE_DMA_RXPBL_LSHIFT); in sxgbe_dma_channel_init()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_chain.c | 111 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() 300 /* Fill the PBL table with the physical address of the page */ in qed_chain_alloc_pbl()
|
| /OK3568_Linux_fs/u-boot/tools/ |
| H A D | pblimage.c | 21 * bytes to image file for PBL boot. 46 * The PBL can load up to 64 bytes at a time, so we split the U-Boot 47 * image into 64 byte chunks. PBL needs a command for each piece, of 253 printf("Image Type: Freescale PBL Boot Image\n"); in pblimage_print_header() 319 "Freescale PBL Boot Image support",
|
| /OK3568_Linux_fs/u-boot/board/freescale/corenet_ds/ |
| H A D | pbi.cfg | 7 # and create PBL boot image 33 #Flush PBL data
|