Searched refs:dev_ctx (Results 1 – 7 of 7) sorted by relevance
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/ |
D | intf.c | 53 struct mlx4_device_context *dev_ctx; in mlx4_add_device() local 55 dev_ctx = kmalloc(sizeof *dev_ctx, GFP_KERNEL); in mlx4_add_device() 56 if (!dev_ctx) in mlx4_add_device() 59 dev_ctx->intf = intf; in mlx4_add_device() 60 dev_ctx->context = intf->add(&priv->dev); in mlx4_add_device() 62 if (dev_ctx->context) { in mlx4_add_device() 64 list_add_tail(&dev_ctx->list, &priv->ctx_list); in mlx4_add_device() 67 intf->activate(&priv->dev, dev_ctx->context); in mlx4_add_device() 69 kfree(dev_ctx); in mlx4_add_device() 75 struct mlx4_device_context *dev_ctx; in mlx4_remove_device() local [all …]
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/ |
D | main.c | 726 struct mlx5_device_context *dev_ctx; in mlx5_add_device() local 729 dev_ctx = kmalloc(sizeof(*dev_ctx), GFP_KERNEL); in mlx5_add_device() 730 if (!dev_ctx) in mlx5_add_device() 733 dev_ctx->intf = intf; in mlx5_add_device() 734 dev_ctx->context = intf->add(dev); in mlx5_add_device() 736 if (dev_ctx->context) { in mlx5_add_device() 738 list_add_tail(&dev_ctx->list, &priv->ctx_list); in mlx5_add_device() 741 kfree(dev_ctx); in mlx5_add_device() 747 struct mlx5_device_context *dev_ctx; in mlx5_remove_device() local 750 list_for_each_entry(dev_ctx, &priv->ctx_list, list) in mlx5_remove_device() [all …]
|
/linux-4.4.14/drivers/crypto/ux500/cryp/ |
D | cryp_core.c | 85 struct cryp_device_context dev_ctx; member 408 cryp_restore_device_context(device_data, &ctx->dev_ctx); in cryp_setup_context() 411 control_register = ctx->dev_ctx.cr; in cryp_setup_context() 413 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()
|
/linux-4.4.14/drivers/media/platform/s5p-mfc/ |
D | s5p_mfc_cmd_v6.c | 47 mfc_write(dev, buf_size->dev_ctx, S5P_FIMV_CONTEXT_MEM_SIZE_V6); in s5p_mfc_sys_init_cmd_v6()
|
D | s5p_mfc_common.h | 212 unsigned int dev_ctx; member
|
D | s5p_mfc.c | 1386 .dev_ctx = MFC_CTX_BUF_SIZE_V6, 1418 .dev_ctx = MFC_CTX_BUF_SIZE_V7, 1445 .dev_ctx = MFC_CTX_BUF_SIZE_V8,
|
D | s5p_mfc_opr_v6.c | 323 dev->ctx_buf.size = buf_size->dev_ctx; in s5p_mfc_alloc_dev_context_buffer_v6() 331 memset(dev->ctx_buf.virt, 0, buf_size->dev_ctx); in s5p_mfc_alloc_dev_context_buffer_v6()
|