Home
last modified time | relevance | path

Searched refs:dev_ctx (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Ddev.c56 struct mlx5_device_context *dev_ctx; in mlx5_add_device() local
62 dev_ctx = kzalloc(sizeof(*dev_ctx), GFP_KERNEL); in mlx5_add_device()
63 if (!dev_ctx) in mlx5_add_device()
66 dev_ctx->intf = intf; in mlx5_add_device()
68 dev_ctx->context = intf->add(dev); in mlx5_add_device()
69 if (dev_ctx->context) { in mlx5_add_device()
70 set_bit(MLX5_INTERFACE_ADDED, &dev_ctx->state); in mlx5_add_device()
72 set_bit(MLX5_INTERFACE_ATTACHED, &dev_ctx->state); in mlx5_add_device()
75 list_add_tail(&dev_ctx->list, &priv->ctx_list); in mlx5_add_device()
79 if (!dev_ctx->context) in mlx5_add_device()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dintf.c54 struct mlx4_device_context *dev_ctx; in mlx4_add_device() local
56 dev_ctx = kmalloc(sizeof(*dev_ctx), GFP_KERNEL); in mlx4_add_device()
57 if (!dev_ctx) in mlx4_add_device()
60 dev_ctx->intf = intf; in mlx4_add_device()
61 dev_ctx->context = intf->add(&priv->dev); in mlx4_add_device()
63 if (dev_ctx->context) { in mlx4_add_device()
65 list_add_tail(&dev_ctx->list, &priv->ctx_list); in mlx4_add_device()
68 intf->activate(&priv->dev, dev_ctx->context); in mlx4_add_device()
70 kfree(dev_ctx); in mlx4_add_device()
76 struct mlx4_device_context *dev_ctx; in mlx4_remove_device() local
[all …]
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0018_linux_drivers_firmware.patch1633 +static int seco_mu_setup_seco_memory_access(struct seco_mu_device_ctx *dev_ctx,
1636 + struct seco_mu_priv *priv = dev_get_drvdata(dev_ctx->dev);
1642 + devctx_err(dev_ctx, "Fail find memreg\n");
1650 + devctx_err(dev_ctx, "Fail set permission for resource\n");
1664 + struct seco_mu_device_ctx *dev_ctx = container_of(fp->private_data,
1669 + if (down_trylock(&dev_ctx->fops_lock))
1673 + if (dev_ctx->status != MU_FREE) {
1682 + dev_ctx->non_secure_mem.ptr = dmam_alloc_coherent(dev_ctx->dev,
1684 + &dev_ctx->non_secure_mem.dma_addr,
1686 + if (!dev_ctx->non_secure_mem.ptr) {
[all …]
/kernel/linux/linux-5.10/drivers/crypto/ux500/cryp/
Dcryp_core.c88 struct cryp_device_context dev_ctx; member
402 cryp_restore_device_context(device_data, &ctx->dev_ctx); in cryp_setup_context()
405 control_register = ctx->dev_ctx.cr; in cryp_setup_context()
407 control_register = ctx->dev_ctx.cr; in cryp_setup_context()
681 &device_data->current_ctx->dev_ctx, in cryp_disable_power()
735 &device_data->current_ctx->dev_ctx); in cryp_enable_power()
799 cryp_save_device_context(device_data, &ctx->dev_ctx, cryp_mode); in hw_crypt_noxts()
860 cryp_save_device_context(device_data, &ctx->dev_ctx, cryp_mode); in ablk_dma_crypt()
/kernel/linux/linux-5.10/drivers/media/platform/s5p-mfc/
Ds5p_mfc_cmd_v6.c43 mfc_write(dev, buf_size->dev_ctx, S5P_FIMV_CONTEXT_MEM_SIZE_V6); in s5p_mfc_sys_init_cmd_v6()
Ds5p_mfc.c1539 .dev_ctx = MFC_CTX_BUF_SIZE_V6,
1568 .dev_ctx = MFC_CTX_BUF_SIZE_V7,
1592 .dev_ctx = MFC_CTX_BUF_SIZE_V8,
1626 .dev_ctx = MFC_CTX_BUF_SIZE_V10,
Ds5p_mfc_common.h211 unsigned int dev_ctx; member
Ds5p_mfc_opr_v6.c401 dev->ctx_buf.size = buf_size->dev_ctx; in s5p_mfc_alloc_dev_context_buffer_v6()
408 memset(dev->ctx_buf.virt, 0, buf_size->dev_ctx); in s5p_mfc_alloc_dev_context_buffer_v6()