Searched refs:ctx_pg (Results 1 – 3 of 3) sorted by relevance
538 struct bnxt_ctx_pg_info *ctx_pg; in bnxt_hwrm_func_backing_store_cfg() local558 ctx_pg = ctxm->pg_info; in bnxt_hwrm_func_backing_store_cfg()559 req.qp_num_entries = cpu_to_le32(ctx_pg->entries); in bnxt_hwrm_func_backing_store_cfg()563 bnxt_hwrm_set_pg_attr(&ctx_pg->ring_mem, in bnxt_hwrm_func_backing_store_cfg()569 ctx_pg = ctxm->pg_info; in bnxt_hwrm_func_backing_store_cfg()570 req.srq_num_entries = cpu_to_le32(ctx_pg->entries); in bnxt_hwrm_func_backing_store_cfg()573 bnxt_hwrm_set_pg_attr(&ctx_pg->ring_mem, in bnxt_hwrm_func_backing_store_cfg()579 ctx_pg = ctxm->pg_info; in bnxt_hwrm_func_backing_store_cfg()580 req.cq_num_entries = cpu_to_le32(ctx_pg->entries); in bnxt_hwrm_func_backing_store_cfg()583 bnxt_hwrm_set_pg_attr(&ctx_pg->ring_mem, in bnxt_hwrm_func_backing_store_cfg()[all …]
923 struct bnxt_ctx_pg_info *ctx_pg) in bnxt_alloc_ctx_mem_blk() argument925 struct bnxt_ring_mem_info *rmem = &ctx_pg->ring_mem; in bnxt_alloc_ctx_mem_blk()928 rmem->pg_arr = ctx_pg->ctx_arr; in bnxt_alloc_ctx_mem_blk()937 struct bnxt_ctx_pg_info *ctx_pg, u32 mem_size, in bnxt_alloc_ctx_pg_tbls() argument940 struct bnxt_ring_mem_info *rmem = &ctx_pg->ring_mem; in bnxt_alloc_ctx_pg_tbls()946 ctx_pg->nr_pages = DIV_ROUND_UP(mem_size, BNXT_PAGE_SIZE); in bnxt_alloc_ctx_pg_tbls()947 if (ctx_pg->nr_pages > MAX_CTX_TOTAL_PAGES) { in bnxt_alloc_ctx_pg_tbls()948 ctx_pg->nr_pages = 0; in bnxt_alloc_ctx_pg_tbls()951 if (ctx_pg->nr_pages > MAX_CTX_PAGES || depth > 1) { in bnxt_alloc_ctx_pg_tbls()955 ctx_pg->ctx_pg_tbl = kzalloc(MAX_CTX_PAGES * sizeof(ctx_pg), in bnxt_alloc_ctx_pg_tbls()[all …]
460 struct usb_page ctx_pg; member