Home
last modified time | relevance | path

Searched refs:ctxm (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/net/ethernet/broadcom/bnge/
H A Dbnge_hwrm_lib.c237 static void bnge_init_ctx_initializer(struct bnge_ctx_mem_type *ctxm, in bnge_init_ctx_initializer() argument
241 ctxm->init_value = init_val; in bnge_init_ctx_initializer()
242 ctxm->init_offset = BNGE_CTX_INIT_INVALID_OFFSET; in bnge_init_ctx_initializer()
244 ctxm->init_offset = init_offset * 4; in bnge_init_ctx_initializer()
246 ctxm->init_value = 0; in bnge_init_ctx_initializer()
255 struct bnge_ctx_mem_type *ctxm = &ctx->ctx_arr[type]; in bnge_alloc_all_ctx_pg_info() local
258 if (!ctxm->max_entries) in bnge_alloc_all_ctx_pg_info()
261 if (ctxm->instance_bmap) in bnge_alloc_all_ctx_pg_info()
262 n = hweight32(ctxm->instance_bmap); in bnge_alloc_all_ctx_pg_info()
263 ctxm->pg_info = kzalloc_objs(*ctxm->pg_info, n); in bnge_alloc_all_ctx_pg_info()
[all …]
H A Dbnge_hwrm_lib.h23 struct bnge_ctx_mem_type *ctxm,
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.c2620 static void bnxt_bs_trace_init(struct bnxt *bp, struct bnxt_ctx_mem_type *ctxm)
2623 u16 trace_type = bnxt_bstore_to_trace[ctxm->type]; in bnxt_bs_trace_init()
2624 struct bnxt_ctx_pg_info *ctx_pg = ctxm->pg_info; in bnxt_bs_trace_init()
2629 if (ctxm->instance_bmap && ctxm->instance_bmap > 1) in bnxt_bs_trace_init()
2632 mem_size = ctxm->max_entries * ctxm->entry_size; in bnxt_bs_trace_init()
2641 bs_trace->ctx_type = ctxm->type; in bnxt_bs_trace_init()
3665 static void bnxt_init_ctx_mem(struct bnxt_ctx_mem_type *ctxm, void *p, int len)
3667 u8 init_val = ctxm in bnxt_init_ctx_mem()
2621 bnxt_bs_trace_init(struct bnxt * bp,struct bnxt_ctx_mem_type * ctxm) bnxt_bs_trace_init() argument
3666 bnxt_init_ctx_mem(struct bnxt_ctx_mem_type * ctxm,void * p,int len) bnxt_init_ctx_mem() argument
8772 bnxt_init_ctx_initializer(struct bnxt_ctx_mem_type * ctxm,u8 init_val,u8 init_offset,bool init_mask_set) bnxt_init_ctx_initializer() argument
8790 struct bnxt_ctx_mem_type *ctxm = &ctx->ctx_arr[type]; bnxt_alloc_all_ctx_pg_info() local
8834 struct bnxt_ctx_mem_type *ctxm = &ctx->ctx_arr[type]; bnxt_hwrm_func_backing_store_qcaps_v2() local
8905 struct bnxt_ctx_mem_type *ctxm; bnxt_hwrm_func_backing_store_qcaps() local
9033 struct bnxt_ctx_mem_type *ctxm; bnxt_hwrm_func_backing_store_cfg() local
9174 bnxt_alloc_ctx_pg_tbls(struct bnxt * bp,struct bnxt_ctx_pg_info * ctx_pg,u32 mem_size,u8 depth,struct bnxt_ctx_mem_type * ctxm) bnxt_alloc_ctx_pg_tbls() argument
9292 bnxt_setup_ctxm_pg_tbls(struct bnxt * bp,struct bnxt_ctx_mem_type * ctxm,u32 entries,u8 pg_lvl) bnxt_setup_ctxm_pg_tbls() argument
9318 bnxt_hwrm_func_backing_store_cfg_v2(struct bnxt * bp,struct bnxt_ctx_mem_type * ctxm,bool last) bnxt_hwrm_func_backing_store_cfg_v2() argument
9378 struct bnxt_ctx_mem_type *ctxm; bnxt_backing_store_cfg_v2() local
9438 __bnxt_copy_ctx_mem(struct bnxt * bp,struct bnxt_ctx_mem_type * ctxm,void * buf,size_t offset,size_t head,size_t tail) __bnxt_copy_ctx_mem() argument
9459 bnxt_copy_ctx_mem(struct bnxt * bp,struct bnxt_ctx_mem_type * ctxm,void * buf,size_t offset) bnxt_copy_ctx_mem() argument
9468 bnxt_free_one_ctx_mem(struct bnxt * bp,struct bnxt_ctx_mem_type * ctxm,bool force) bnxt_free_one_ctx_mem() argument
9512 struct bnxt_ctx_mem_type *ctxm; bnxt_alloc_ctx_mem() local
[all...]
H A Dbnxt_coredump.c330 struct bnxt_ctx_mem_type *ctxm, u16 type) in bnxt_fill_drv_seg_record() argument
336 record->max_entries = cpu_to_le32(ctxm->max_entries); in bnxt_fill_drv_seg_record()
337 record->entry_size = cpu_to_le32(ctxm->entry_size); in bnxt_fill_drv_seg_record()
366 struct bnxt_ctx_mem_type *ctxm = &ctx->ctx_arr[type]; in bnxt_get_ctx_coredump() local
371 if (!ctxm->mem_valid || !seg_id) in bnxt_get_ctx_coredump()
379 bnxt_fill_drv_seg_record(bp, &record, ctxm, in bnxt_get_ctx_coredump()
387 seg_len = bnxt_copy_ctx_mem(bp, ctxm, data, 0) + extra_hlen; in bnxt_get_ctx_coredump()
H A Dbnxt.h3007 size_t bnxt_copy_ctx_mem(struct bnxt *bp, struct bnxt_ctx_mem_type *ctxm,