Home
last modified time | relevance | path

Searched refs:ctx_size (Results 1 – 19 of 19) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/imx/dcss/
Ddcss-ctxld.c79 u16 ctx_size[2][3]; /* holds the sizes of DB, SB_HP and SB_LP ctx */ member
110 ctxld->ctx_size[ctxld->current_ctx ^ 1][CTX_DB], in dcss_ctxld_irq_handler()
111 ctxld->ctx_size[ctxld->current_ctx ^ 1][CTX_SB_HP], in dcss_ctxld_irq_handler()
112 ctxld->ctx_size[ctxld->current_ctx ^ 1][CTX_SB_LP]); in dcss_ctxld_irq_handler()
270 sb_hp_cnt = ctxld->ctx_size[curr_ctx][CTX_SB_HP]; in dcss_ctxld_enable_locked()
271 sb_lp_cnt = ctxld->ctx_size[curr_ctx][CTX_SB_LP]; in dcss_ctxld_enable_locked()
272 db_cnt = ctxld->ctx_size[curr_ctx][CTX_DB]; in dcss_ctxld_enable_locked()
312 ctxld->ctx_size[ctxld->current_ctx][CTX_DB] = 0; in dcss_ctxld_enable_locked()
313 ctxld->ctx_size[ctxld->current_ctx][CTX_SB_HP] = 0; in dcss_ctxld_enable_locked()
314 ctxld->ctx_size[ctxld->current_ctx][CTX_SB_LP] = 0; in dcss_ctxld_enable_locked()
[all …]
/kernel/linux/linux-5.10/fs/crypto/
Dfscrypt_private.h85 int ctx_size) in fscrypt_context_is_valid() argument
87 return ctx_size >= 1 && ctx_size == fscrypt_context_size(ctx); in fscrypt_context_is_valid()
623 int ctx_size);
Dpolicy.c320 int ctx_size) in fscrypt_policy_from_context() argument
324 if (!fscrypt_context_is_valid(ctx_u, ctx_size)) in fscrypt_policy_from_context()
/kernel/linux/linux-5.10/drivers/dma/bestcomm/
Dbestcomm.c281 unsigned int tdt_size, ctx_size, var_size, fdt_size; in bcom_engine_init() local
285 ctx_size = BCOM_MAX_TASKS * BCOM_CTX_SIZE; in bcom_engine_init()
290 bcom_eng->ctx = bcom_sram_alloc(ctx_size, BCOM_CTX_ALIGN, &ctx_pa); in bcom_engine_init()
306 memset_io(bcom_eng->ctx, 0x00, ctx_size); in bcom_engine_init()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dsignal_32.c908 struct ucontext __user *, new_ctx, int, ctx_size) in COMPAT_SYSCALL_DEFINE3() argument
911 struct ucontext __user *, new_ctx, long, ctx_size) in COMPAT_SYSCALL_DEFINE3()
939 if (ctx_size < UCONTEXTSIZEWITHOUTVSX) in COMPAT_SYSCALL_DEFINE3()
945 if ((ctx_size < sizeof(struct ucontext)) && in COMPAT_SYSCALL_DEFINE3()
949 if (ctx_size >= sizeof(struct ucontext)) in COMPAT_SYSCALL_DEFINE3()
955 if (ctx_size < sizeof(struct ucontext)) in COMPAT_SYSCALL_DEFINE3()
970 if (!access_ok(old_ctx, ctx_size) in COMPAT_SYSCALL_DEFINE3()
978 if (!access_ok(new_ctx, ctx_size) || in COMPAT_SYSCALL_DEFINE3()
979 fault_in_pages_readable((u8 __user *)new_ctx, ctx_size)) in COMPAT_SYSCALL_DEFINE3()
Dsignal_64.c636 struct ucontext __user *, new_ctx, long, ctx_size) in SYSCALL_DEFINE3() argument
649 if (ctx_size < UCONTEXTSIZEWITHOUTVSX) in SYSCALL_DEFINE3()
655 if ((ctx_size < sizeof(struct ucontext)) && in SYSCALL_DEFINE3()
659 if (ctx_size >= sizeof(struct ucontext)) in SYSCALL_DEFINE3()
663 if (!access_ok(old_ctx, ctx_size) in SYSCALL_DEFINE3()
672 if (!access_ok(new_ctx, ctx_size) || in SYSCALL_DEFINE3()
673 fault_in_pages_readable((u8 __user *)new_ctx, ctx_size)) in SYSCALL_DEFINE3()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_init_fw_funcs.c1437 u16 ctx_size, u8 ctx_type, u32 cid) in qed_calc_session_ctx_validation() argument
1446 memset(p_ctx, 0, ctx_size); in qed_calc_session_ctx_validation()
1455 u16 ctx_size, u8 ctx_type, u32 tid) in qed_calc_task_ctx_validation() argument
1462 memset(p_ctx, 0, ctx_size); in qed_calc_task_ctx_validation()
1468 void qed_memset_session_ctx(void *p_ctx_mem, u32 ctx_size, u8 ctx_type) in qed_memset_session_ctx() argument
1482 memset(p_ctx, 0, ctx_size); in qed_memset_session_ctx()
1490 void qed_memset_task_ctx(void *p_ctx_mem, u32 ctx_size, u8 ctx_type) in qed_memset_task_ctx() argument
1500 memset(p_ctx, 0, ctx_size); in qed_memset_task_ctx()
Dqed_hsi.h3980 u16 ctx_size, u8 ctx_type, u32 cid);
3992 u16 ctx_size, u8 ctx_type, u32 tid);
4003 void qed_memset_session_ctx(void *p_ctx_mem, u32 ctx_size, u8 ctx_type);
4013 void qed_memset_task_ctx(void *p_ctx_mem, u32 ctx_size, u8 ctx_type);
/kernel/linux/linux-5.10/drivers/crypto/ccp/
Dccp-ops.c1497 int ctx_size; in ccp_run_sha_cmd() local
1590 ctx_size = SHA1_DIGEST_SIZE; in ccp_run_sha_cmd()
1600 ctx_size = SHA256_DIGEST_SIZE; in ccp_run_sha_cmd()
1611 ctx_size = SHA256_DIGEST_SIZE; in ccp_run_sha_cmd()
1618 ctx_size = SHA512_DIGEST_SIZE; in ccp_run_sha_cmd()
1626 ctx_size = SHA512_DIGEST_SIZE; in ccp_run_sha_cmd()
1662 memcpy(ctx.address + ioffset, init, ctx_size); in ccp_run_sha_cmd()
1666 memcpy(ctx.address + ctx_size / 2, init, in ccp_run_sha_cmd()
1667 ctx_size / 2); in ccp_run_sha_cmd()
1668 memcpy(ctx.address, init + ctx_size / 2, in ccp_run_sha_cmd()
[all …]
/kernel/linux/linux-5.10/net/key/
Daf_key.c471 int ctx_size = sec_ctx->sadb_x_ctx_len; in pfkey_sadb2xfrm_user_sec_ctx() local
473 uctx = kmalloc((sizeof(*uctx)+ctx_size), gfp); in pfkey_sadb2xfrm_user_sec_ctx()
776 int ctx_size = 0; in __pfkey_xfrm_state2msg() local
800 ctx_size = PFKEY_ALIGN8(xfrm_ctx->ctx_len); in __pfkey_xfrm_state2msg()
801 size += sizeof(struct sadb_x_sec_ctx) + ctx_size; in __pfkey_xfrm_state2msg()
1033 sizeof(struct sadb_x_sec_ctx) + ctx_size); in __pfkey_xfrm_state2msg()
1035 (sizeof(struct sadb_x_sec_ctx) + ctx_size) / sizeof(uint64_t); in __pfkey_xfrm_state2msg()
2197 int ctx_size = pfkey_xfrm_policy2sec_ctx_size(xp); in pfkey_xfrm_policy2msg() local
2199 sec_ctx = skb_put(skb, ctx_size); in pfkey_xfrm_policy2msg()
2200 sec_ctx->sadb_x_sec_len = ctx_size / sizeof(uint64_t); in pfkey_xfrm_policy2msg()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dasm-prototypes.h91 long ctx_size);
/kernel/linux/linux-5.10/drivers/firmware/
Dqcom_scm.c43 __le32 ctx_size; member
875 destvm->ctx_size = 0; in qcom_scm_assign_mem()
/kernel/linux/linux-5.10/kernel/trace/
Dbpf_trace.c971 void *ctx, u64 ctx_size, bpf_ctx_copy_t ctx_copy) in bpf_event_output() argument
976 .size = ctx_size, in bpf_event_output()
982 .next = ctx_size ? &frag : NULL, in bpf_event_output()
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/
Dqm.c1066 static void *qm_ctx_alloc(struct hisi_qm *qm, size_t ctx_size, in qm_ctx_alloc() argument
1072 ctx_addr = kzalloc(ctx_size, GFP_KERNEL); in qm_ctx_alloc()
1076 *dma_addr = dma_map_single(dev, ctx_addr, ctx_size, DMA_FROM_DEVICE); in qm_ctx_alloc()
1086 static void qm_ctx_free(struct hisi_qm *qm, size_t ctx_size, in qm_ctx_free() argument
1091 dma_unmap_single(dev, *dma_addr, ctx_size, DMA_FROM_DEVICE); in qm_ctx_free()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gvt/
Dcmd_parser.c2960 int ctx_size = wa_ctx->indirect_ctx.size; in shadow_indirect_ctx() local
2971 roundup(ctx_size + CACHELINE_BYTES, in shadow_indirect_ctx()
2994 guest_gma, guest_gma + ctx_size, in shadow_indirect_ctx()
/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_user.c825 int ctx_size = sizeof(*uctx) + s->ctx_len; in copy_sec_ctx() local
827 attr = nla_reserve(skb, XFRMA_SEC_CTX, ctx_size); in copy_sec_ctx()
833 uctx->len = ctx_size; in copy_sec_ctx()
/kernel/linux/linux-5.10/include/linux/
Dbpf.h1100 void *ctx, u64 ctx_size, bpf_ctx_copy_t ctx_copy);
/kernel/linux/linux-5.10/kernel/bpf/
Dcore.c2285 void *ctx, u64 ctx_size, bpf_ctx_copy_t ctx_copy) in bpf_event_output() argument
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0020_linux_drivers_gpu.patch10535 sb_hp_cnt = ctxld->ctx_size[curr_ctx][CTX_SB_HP];
10536 sb_lp_cnt = ctxld->ctx_size[curr_ctx][CTX_SB_LP];
10537 db_cnt = ctxld->ctx_size[curr_ctx][CTX_DB];