/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/common/ |
H A D | ump_kernel_api.c | 163 DEBUG_ASSERT_POINTER(args->ctx); in _ump_uku_get_api_version() 165 session_data = (ump_session_data *)args->ctx; in _ump_uku_get_api_version() 193 DEBUG_ASSERT_POINTER(release_info->ctx); in _ump_ukk_release() 196 session_data = (ump_session_data *)release_info->ctx; in _ump_ukk_release() 319 DEBUG_ASSERT_POINTER(args->ctx); in _ump_ukk_cache_operations_control() 322 session_data = (ump_session_data *)args->ctx; in _ump_ukk_cache_operations_control() 359 DEBUG_ASSERT_POINTER(args->ctx); in _ump_ukk_switch_hw_usage() 361 session_data = (ump_session_data *)args->ctx; in _ump_ukk_switch_hw_usage()
|
/kernel/linux/linux-5.10/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_lib.c | 217 struct ctx_hdr *ctx; in crypto_alloc_context() local 233 ctx = vaddr; in crypto_alloc_context() 234 ctx->pool = ndev->ctx_pool; in crypto_alloc_context() 235 ctx->dma = dma; in crypto_alloc_context() 236 ctx->ctx_dma = dma + sizeof(struct ctx_hdr); in crypto_alloc_context() 247 * @ctx: context to free 249 void crypto_free_context(void *ctx) in crypto_free_context() argument 253 if (!ctx) in crypto_free_context() 256 ctxp = ctx; in crypto_free_context()
|
/kernel/linux/linux-5.10/crypto/ |
H A D | hmac.c | 48 struct hmac_ctx *ctx = align_ptr(opad + ss, in hmac_setkey() local 50 struct crypto_shash *hash = ctx->hash; in hmac_setkey() 93 struct hmac_ctx *ctx = hmac_ctx(pdesc->tfm); in hmac_import() local 95 desc->tfm = ctx->hash; in hmac_import() 146 struct hmac_ctx *ctx = hmac_ctx(parent); in hmac_init_tfm() local 155 ctx->hash = hash; in hmac_init_tfm() 161 struct hmac_ctx *ctx = hmac_ctx(parent); in hmac_exit_tfm() local 162 crypto_free_shash(ctx->hash); in hmac_exit_tfm()
|
/kernel/linux/linux-5.10/arch/x86/crypto/ |
H A D | aegis128-aesni-glue.c | 137 u8 *ctx = crypto_aead_ctx(aead); in crypto_aegis128_aesni_ctx() local 138 ctx = PTR_ALIGN(ctx, __alignof__(struct aegis_ctx)); in crypto_aegis128_aesni_ctx() 139 return (void *)ctx; in crypto_aegis128_aesni_ctx() 145 struct aegis_ctx *ctx = crypto_aegis128_aesni_ctx(aead); in crypto_aegis128_aesni_setkey() local 150 memcpy(ctx->key.bytes, key, AEGIS128_KEY_SIZE); in crypto_aegis128_aesni_setkey() 171 struct aegis_ctx *ctx = crypto_aegis128_aesni_ctx(tfm); in crypto_aegis128_aesni_crypt() local 179 crypto_aegis128_aesni_init(&state, ctx->key.bytes, req->iv); in crypto_aegis128_aesni_crypt()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn30/ |
H A D | dcn30_hubbub.c | 33 hubbub1->base.ctx 35 hubbub1->base.ctx->logger 132 hubbub1_allow_self_refresh_control(hubbub, !hubbub->ctx->dc->debug.disable_stutter); in hubbub3_program_watermarks() 279 struct dc *dc = hubbub->ctx->dc; in hubbub3_get_dcc_compression_cap() 378 uint32_t refclk_mhz = hubbub->ctx->dc->res_pool->ref_clocks.dchub_ref_clock_inKhz / 1000; in hubbub3_force_wm_propagate_to_pipes() 403 struct dc_context *ctx, in hubbub3_construct() 408 hubbub3->base.ctx = ctx; in hubbub3_construct() 402 hubbub3_construct(struct dcn20_hubbub *hubbub3, struct dc_context *ctx, const struct dcn_hubbub_registers *hubbub_regs, const struct dcn_hubbub_shift *hubbub_shift, const struct dcn_hubbub_mask *hubbub_mask) hubbub3_construct() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn21/ |
H A D | dcn21_link_encoder.c | 40 enc10->base.ctx 42 enc10->base.ctx->logger 266 if (!enc->ctx->dc->debug.avoid_vbios_exec_table) { in dcn21_link_encoder_enable_dp_output() 343 const struct dc_vbios_funcs *bp_funcs = init_data->ctx->dc_bios->funcs; in dcn21_link_encoder_construct() 348 enc10->base.ctx = init_data->ctx; in dcn21_link_encoder_construct() 425 result = bp_funcs->get_encoder_cap_info(enc10->base.ctx->dc_bios, in dcn21_link_encoder_construct() 442 if (enc10->base.ctx->dc->debug.hdmi20_disable) { in dcn21_link_encoder_construct()
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
H A D | cs553x_nand.c | 165 instr->ctx.cmd.opcode); in cs553x_exec_instr() 169 for (i = 0; i < instr->ctx.addr.naddrs; i++) { in cs553x_exec_instr() 171 instr->ctx.addr.addrs[i]); in cs553x_exec_instr() 178 cs553x_data_in(cs553x, instr->ctx.data.buf.in, in cs553x_exec_instr() 179 instr->ctx.data.len); in cs553x_exec_instr() 183 cs553x_data_out(cs553x, instr->ctx.data.buf.out, in cs553x_exec_instr() 184 instr->ctx.data.len); in cs553x_exec_instr() 188 ret = cs553x_wait_ready(cs553x, instr->ctx.waitrdy.timeout_ms); in cs553x_exec_instr()
|
/kernel/linux/linux-5.10/tools/usb/ffs-aio-example/simple/device_app/ |
H A D | aio_simple.c | 212 io_context_t ctx; in main() local 260 memset(&ctx, 0, sizeof(ctx)); in main() 262 if (io_setup(2, &ctx) < 0) { in main() 311 ret = io_getevents(ctx, 1, 2, e, NULL); in main() 331 ret = io_submit(ctx, 1, &iocb_in); in main() 345 ret = io_submit(ctx, 1, &iocb_out); in main() 356 io_destroy(ctx); in main()
|
/kernel/linux/linux-6.6/arch/x86/crypto/ |
H A D | aegis128-aesni-glue.c | 137 u8 *ctx = crypto_aead_ctx(aead); in crypto_aegis128_aesni_ctx() local 138 ctx = PTR_ALIGN(ctx, __alignof__(struct aegis_ctx)); in crypto_aegis128_aesni_ctx() 139 return (void *)ctx; in crypto_aegis128_aesni_ctx() 145 struct aegis_ctx *ctx = crypto_aegis128_aesni_ctx(aead); in crypto_aegis128_aesni_setkey() local 150 memcpy(ctx->key.bytes, key, AEGIS128_KEY_SIZE); in crypto_aegis128_aesni_setkey() 171 struct aegis_ctx *ctx = crypto_aegis128_aesni_ctx(tfm); in crypto_aegis128_aesni_crypt() local 179 crypto_aegis128_aesni_init(&state, ctx->key.bytes, req->iv); in crypto_aegis128_aesni_crypt()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_streamoutput.c | 38 * @ctx: Non-refcounted context to which @res belong. 47 struct vmw_resource *ctx; member 102 cmd = VMW_FIFO_RESERVE_DX(dev_priv, sizeof(*cmd), so->ctx->id); in vmw_dx_streamoutput_unscrub() 175 cmd = VMW_FIFO_RESERVE_DX(dev_priv, sizeof(*cmd), so->ctx->id); in vmw_dx_streamoutput_scrub() 274 * @ctx: Pointer to context resource. 281 struct vmw_resource *ctx, u32 user_key, in vmw_dx_streamoutput_add() 286 struct vmw_private *dev_priv = ctx->dev_priv; in vmw_dx_streamoutput_add() 312 so->ctx = ctx; in vmw_dx_streamoutput_add() 314 (vmw_context_cotable(ctx, SVGA_COTABLE_STREAMOUTPU in vmw_dx_streamoutput_add() 280 vmw_dx_streamoutput_add(struct vmw_cmdbuf_res_manager *man, struct vmw_resource *ctx, u32 user_key, struct list_head *list) vmw_dx_streamoutput_add() argument [all...] |
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/ |
H A D | cs553x_nand.c | 159 instr->ctx.cmd.opcode); in cs553x_exec_instr() 163 for (i = 0; i < instr->ctx.addr.naddrs; i++) { in cs553x_exec_instr() 165 instr->ctx.addr.addrs[i]); in cs553x_exec_instr() 172 cs553x_data_in(cs553x, instr->ctx.data.buf.in, in cs553x_exec_instr() 173 instr->ctx.data.len); in cs553x_exec_instr() 177 cs553x_data_out(cs553x, instr->ctx.data.buf.out, in cs553x_exec_instr() 178 instr->ctx.data.len); in cs553x_exec_instr() 182 ret = cs553x_wait_ready(cs553x, instr->ctx.waitrdy.timeout_ms); in cs553x_exec_instr()
|
/kernel/linux/linux-6.6/drivers/net/dsa/realtek/ |
H A D | realtek-mdio.c | 42 static int realtek_mdio_write(void *ctx, u32 reg, u32 val) in realtek_mdio_write() argument 44 struct realtek_priv *priv = ctx; in realtek_mdio_write() 70 static int realtek_mdio_read(void *ctx, u32 reg, u32 *val) in realtek_mdio_read() argument 72 struct realtek_priv *priv = ctx; in realtek_mdio_read() 102 static void realtek_mdio_lock(void *ctx) in realtek_mdio_lock() argument 104 struct realtek_priv *priv = ctx; in realtek_mdio_lock() 109 static void realtek_mdio_unlock(void *ctx) in realtek_mdio_unlock() argument 111 struct realtek_priv *priv = ctx; in realtek_mdio_unlock()
|
/kernel/linux/linux-6.6/include/net/ |
H A D | tls.h | 159 struct tls_context *ctx; member 276 struct tls_context *ctx, 397 struct tls_context *ctx = tls_get_ctx(sk); in tls_sw_has_ctx_tx() local 399 if (!ctx) in tls_sw_has_ctx_tx() 401 return !!tls_sw_ctx_tx(ctx); in tls_sw_has_ctx_tx() 406 struct tls_context *ctx = tls_get_ctx(sk); in tls_sw_has_ctx_rx() local 408 if (!ctx) in tls_sw_has_ctx_rx() 410 return !!tls_sw_ctx_rx(ctx); in tls_sw_has_ctx_rx()
|
/kernel/linux/linux-6.6/drivers/clk/visconti/ |
H A D | clkc-tmpv770x.c | 228 struct visconti_clk_provider *ctx; in visconti_clk_probe() local 237 ctx = visconti_init_clk(dev, regmap, TMPV770X_NR_CLK); in visconti_clk_probe() 238 if (IS_ERR(ctx)) in visconti_clk_probe() 239 return PTR_ERR(ctx); in visconti_clk_probe() 251 ctx->clk_data.hws[fixed_clk_tables[i].id] = in visconti_clk_probe() 259 ret = visconti_clk_register_gates(ctx, clk_gate_tables, in visconti_clk_probe() 267 ret = visconti_clk_register_gates(ctx, pietherpll_clk_gate_tables, in visconti_clk_probe() 275 return of_clk_add_hw_provider(np, of_clk_hw_onecell_get, &ctx->clk_data); in visconti_clk_probe()
|
/kernel/linux/linux-6.6/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_lib.c | 217 struct ctx_hdr *ctx; in crypto_alloc_context() local 233 ctx = vaddr; in crypto_alloc_context() 234 ctx->pool = ndev->ctx_pool; in crypto_alloc_context() 235 ctx->dma = dma; in crypto_alloc_context() 236 ctx->ctx_dma = dma + sizeof(struct ctx_hdr); in crypto_alloc_context() 247 * @ctx: context to free 249 void crypto_free_context(void *ctx) in crypto_free_context() argument 253 if (!ctx) in crypto_free_context() 256 ctxp = ctx; in crypto_free_context()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn314/ |
H A D | dcn314_dccg.c | 44 dccg_dcn->base.ctx 46 dccg->ctx->logger 298 if (dccg->ctx->dc->debug.root_clock_optimization.bits.symclk32_le) in dccg314_init() 302 if (dccg->ctx->dc->debug.root_clock_optimization.bits.dpstream) in dccg314_init() 307 if (dccg->ctx->dc->debug.root_clock_optimization.bits.physymclk) in dccg314_init() 381 struct dc_context *ctx, in dccg314_create() 395 base->ctx = ctx; in dccg314_create() 380 dccg314_create( struct dc_context *ctx, const struct dccg_registers *regs, const struct dccg_shift *dccg_shift, const struct dccg_mask *dccg_mask) dccg314_create() argument
|
H A D | dcn314_dio_stream_encoder.c | 37 enc1->base.ctx->logger 50 enc1->base.ctx 103 if (!enc->ctx->dc->debug.avoid_vbios_exec_table) { in enc314_stream_encoder_dvi_set_stream_attribute() 144 if (!enc->ctx->dc->debug.avoid_vbios_exec_table) { in enc314_stream_encoder_hdmi_set_stream_attribute() 284 if (enc->ctx->dc->debug.dig_fifo_off_in_blank) in enc314_stream_encoder_dp_blank() 476 struct dc_context *ctx, in dcn314_dio_stream_encoder_construct() 486 enc1->base.ctx = ctx; in dcn314_dio_stream_encoder_construct() 474 dcn314_dio_stream_encoder_construct( struct dcn10_stream_encoder *enc1, struct dc_context *ctx, struct dc_bios *bp, enum engine_id eng_id, struct vpg *vpg, struct afmt *afmt, const struct dcn10_stream_enc_registers *regs, const struct dcn10_stream_encoder_shift *se_shift, const struct dcn10_stream_encoder_mask *se_mask) dcn314_dio_stream_encoder_construct() argument
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn21/ |
H A D | dcn21_link_encoder.c | 39 enc10->base.ctx 41 enc10->base.ctx->logger 265 if (!enc->ctx->dc->debug.avoid_vbios_exec_table) { in dcn21_link_encoder_enable_dp_output() 341 const struct dc_vbios_funcs *bp_funcs = init_data->ctx->dc_bios->funcs; in dcn21_link_encoder_construct() 346 enc10->base.ctx = init_data->ctx; in dcn21_link_encoder_construct() 423 result = bp_funcs->get_encoder_cap_info(enc10->base.ctx->dc_bios, in dcn21_link_encoder_construct() 440 if (enc10->base.ctx->dc->debug.hdmi20_disable) { in dcn21_link_encoder_construct()
|
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/trng/ |
H A D | trng.c | 86 struct hisi_trng_ctx *ctx = crypto_rng_ctx(tfm); in hisi_trng_seed() local 87 struct hisi_trng *trng = ctx->trng; in hisi_trng_seed() 115 struct hisi_trng_ctx *ctx = crypto_rng_ctx(tfm); in hisi_trng_generate() local 116 struct hisi_trng *trng = ctx->trng; in hisi_trng_generate() 156 struct hisi_trng_ctx *ctx = crypto_tfm_ctx(tfm); in hisi_trng_init() local 164 ctx->trng = trng; in hisi_trng_init() 176 struct hisi_trng_ctx *ctx = crypto_tfm_ctx(tfm); in hisi_trng_exit() local 179 ctx->trng->is_used = false; in hisi_trng_exit()
|
/kernel/linux/linux-6.6/crypto/ |
H A D | hmac.c | 49 struct hmac_ctx *ctx = align_ptr(opad + ss, in hmac_setkey() local 51 struct crypto_shash *hash = ctx->hash; in hmac_setkey() 97 struct hmac_ctx *ctx = hmac_ctx(pdesc->tfm); in hmac_import() local 99 desc->tfm = ctx->hash; in hmac_import() 150 struct hmac_ctx *ctx = hmac_ctx(parent); in hmac_init_tfm() local 159 ctx->hash = hash; in hmac_init_tfm() 179 struct hmac_ctx *ctx = hmac_ctx(parent); in hmac_exit_tfm() local 181 crypto_free_shash(ctx->hash); in hmac_exit_tfm()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_streamoutput.c | 39 * @ctx: Non-refcounted context to which @res belong. 48 struct vmw_resource *ctx; member 102 cmd = VMW_CMD_CTX_RESERVE(dev_priv, sizeof(*cmd), so->ctx->id); in vmw_dx_streamoutput_unscrub() 175 cmd = VMW_CMD_CTX_RESERVE(dev_priv, sizeof(*cmd), so->ctx->id); in vmw_dx_streamoutput_scrub() 272 * @ctx: Pointer to context resource. 279 struct vmw_resource *ctx, u32 user_key, in vmw_dx_streamoutput_add() 284 struct vmw_private *dev_priv = ctx->dev_priv; in vmw_dx_streamoutput_add() 293 so->ctx = ctx; in vmw_dx_streamoutput_add() 295 (vmw_context_cotable(ctx, SVGA_COTABLE_STREAMOUTPU in vmw_dx_streamoutput_add() 278 vmw_dx_streamoutput_add(struct vmw_cmdbuf_res_manager *man, struct vmw_resource *ctx, u32 user_key, struct list_head *list) vmw_dx_streamoutput_add() argument [all...] |
H A D | vmwgfx_so.c | 48 * @ctx: Non-refcounted pointer to the context this view belongs to. 65 struct vmw_resource *ctx; /* Immutable */ member 176 cmd = VMW_CMD_CTX_RESERVE(res->dev_priv, view->cmd_size, view->ctx->id); in vmw_view_create() 219 cmd = VMW_CMD_CTX_RESERVE(dev_priv, sizeof(*cmd), view->ctx->id); in vmw_view_destroy() 300 * @ctx: Pointer to a struct vmw_resource identifying the active context. 311 struct vmw_resource *ctx, in vmw_view_add() 326 struct vmw_private *dev_priv = ctx->dev_priv; in vmw_view_add() 351 view->ctx = ctx; in vmw_view_add() 354 (vmw_context_cotable(ctx, vmw_view_cotable in vmw_view_add() 310 vmw_view_add(struct vmw_cmdbuf_res_manager *man, struct vmw_resource *ctx, struct vmw_resource *srf, enum vmw_view_type view_type, u32 user_key, const void *cmd, size_t cmd_size, struct list_head *list) vmw_view_add() argument [all...] |
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nft_xfrm.c | 33 static int nft_xfrm_get_init(const struct nft_ctx *ctx, in nft_xfrm_get_init() argument 45 switch (ctx->family) { in nft_xfrm_get_init() 91 return nft_parse_register_store(ctx, tb[NFTA_XFRM_DREG], &priv->dreg, in nft_xfrm_get_init() 232 static int nft_xfrm_validate(const struct nft_ctx *ctx, const struct nft_expr *expr, in nft_xfrm_validate() argument 238 if (ctx->family != NFPROTO_IPV4 && in nft_xfrm_validate() 239 ctx->family != NFPROTO_IPV6 && in nft_xfrm_validate() 240 ctx->family != NFPROTO_INET) in nft_xfrm_validate() 259 return nft_chain_validate_hooks(ctx->chain, hooks); in nft_xfrm_validate()
|
H A D | nft_socket.c | 146 static int nft_socket_init(const struct nft_ctx *ctx, in nft_socket_init() argument 156 switch(ctx->family) { in nft_socket_init() 197 return nft_parse_register_store(ctx, tb[NFTA_SOCKET_DREG], &priv->dreg, in nft_socket_init() 241 static int nft_socket_validate(const struct nft_ctx *ctx, in nft_socket_validate() argument 245 if (ctx->family != NFPROTO_IPV4 && in nft_socket_validate() 246 ctx->family != NFPROTO_IPV6 && in nft_socket_validate() 247 ctx->family != NFPROTO_INET) in nft_socket_validate() 250 return nft_chain_validate_hooks(ctx->chain, in nft_socket_validate()
|
/kernel/linux/linux-6.6/tools/usb/ffs-aio-example/simple/device_app/ |
H A D | aio_simple.c | 230 io_context_t ctx; in main() local 278 memset(&ctx, 0, sizeof(ctx)); in main() 280 if (io_setup(2, &ctx) < 0) { in main() 329 ret = io_getevents(ctx, 1, 2, e, NULL); in main() 349 ret = io_submit(ctx, 1, &iocb_in); in main() 363 ret = io_submit(ctx, 1, &iocb_out); in main() 374 io_destroy(ctx); in main()
|