Home
last modified time | relevance | path

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

/freebsd/sys/dev/bnxt/bnxt_en/
H A Dbnxt_hwrm.c359 struct bnxt_ctx_mem_type *ctxm = &ctx->ctx_arr[type]; in bnxt_alloc_all_ctx_pg_info() local
362 if (!ctxm->max_entries || ctxm->pg_info) in bnxt_alloc_all_ctx_pg_info()
365 if (ctxm->instance_bmap) in bnxt_alloc_all_ctx_pg_info()
366 n = hweight32(ctxm->instance_bmap); in bnxt_alloc_all_ctx_pg_info()
367 ctxm->pg_info = kcalloc(n, sizeof(*ctxm->pg_info), GFP_KERNEL); in bnxt_alloc_all_ctx_pg_info()
368 if (!ctxm->pg_info) in bnxt_alloc_all_ctx_pg_info()
374 static void bnxt_init_ctx_initializer(struct bnxt_ctx_mem_type *ctxm, in bnxt_init_ctx_initializer() argument
378 ctxm->init_value = init_val; in bnxt_init_ctx_initializer()
379 ctxm->init_offset = BNXT_CTX_INIT_INVALID_OFFSET; in bnxt_init_ctx_initializer()
381 ctxm->init_offset = init_offset * 4; in bnxt_init_ctx_initializer()
[all …]
H A Dif_bnxt.c844 static void bnxt_init_ctx_mem(struct bnxt_ctx_mem_type *ctxm, void *p, int len) in bnxt_init_ctx_mem()
846 u8 init_val = ctxm->init_value; in bnxt_init_ctx_mem()
847 u16 offset = ctxm->init_offset; in bnxt_init_ctx_mem()
857 for (i = 0; i < len; i += ctxm->entry_size) in bnxt_init_ctx_mem()
938 u8 depth, struct bnxt_ctx_mem_type *ctxm) in bnxt_alloc_ctx_pg_tbls()
975 rmem->ctx_mem = ctxm; in bnxt_alloc_ctx_pg_tbls()
990 rmem->ctx_mem = ctxm; in bnxt_alloc_ctx_pg_tbls()
1026 struct bnxt_ctx_mem_type *ctxm, u32 entries, in bnxt_setup_ctxm_pg_tbls()
1029 struct bnxt_ctx_pg_info *ctx_pg = ctxm->pg_info; in bnxt_setup_ctxm_pg_tbls()
1033 if (!ctxm in bnxt_setup_ctxm_pg_tbls()
842 bnxt_init_ctx_mem(struct bnxt_ctx_mem_type * ctxm,void * p,int len) bnxt_init_ctx_mem() argument
936 bnxt_alloc_ctx_pg_tbls(struct bnxt_softc * softc,struct bnxt_ctx_pg_info * ctx_pg,u32 mem_size,u8 depth,struct bnxt_ctx_mem_type * ctxm) bnxt_alloc_ctx_pg_tbls() argument
1024 bnxt_setup_ctxm_pg_tbls(struct bnxt_softc * softc,struct bnxt_ctx_mem_type * ctxm,u32 entries,u8 pg_lvl) bnxt_setup_ctxm_pg_tbls() argument
1056 struct bnxt_ctx_mem_type *ctxm = &ctx->ctx_arr[type]; bnxt_free_ctx_mem() local
1079 struct bnxt_ctx_mem_type *ctxm; bnxt_alloc_ctx_mem() local
[all...]
H A Dbnxt_hwrm.h133 struct bnxt_ctx_mem_type *ctxm,
/freebsd/sys/x86/iommu/
H A Dintel_ctx.c85 vm_page_t ctxm; in dmar_ensure_ctx_page() local
90 ctxm = iommu_pgalloc(dmar->ctx_obj, 1 + bus, IOMMU_PGF_NOALLOC); in dmar_ensure_ctx_page()
91 if (ctxm != NULL) in dmar_ensure_ctx_page()
101 ctxm = iommu_pgalloc(dmar->ctx_obj, 1 + bus, IOMMU_PGF_ZERO | in dmar_ensure_ctx_page()
106 VM_PAGE_TO_PHYS(ctxm))); in dmar_ensure_ctx_page()