Searched refs:dev_ctx (Results 1 - 7 of 7) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Dintf.c53 struct mlx4_device_context *dev_ctx; mlx4_add_device() local
55 dev_ctx = kmalloc(sizeof *dev_ctx, GFP_KERNEL); mlx4_add_device()
56 if (!dev_ctx) mlx4_add_device()
59 dev_ctx->intf = intf; mlx4_add_device()
60 dev_ctx->context = intf->add(&priv->dev); mlx4_add_device()
62 if (dev_ctx->context) { mlx4_add_device()
64 list_add_tail(&dev_ctx->list, &priv->ctx_list); mlx4_add_device()
67 kfree(dev_ctx); mlx4_add_device()
72 struct mlx4_device_context *dev_ctx; mlx4_remove_device() local
74 list_for_each_entry(dev_ctx, &priv->ctx_list, list) mlx4_remove_device()
75 if (dev_ctx->intf == intf) { mlx4_remove_device()
77 list_del(&dev_ctx->list); mlx4_remove_device()
80 intf->remove(&priv->dev, dev_ctx->context); mlx4_remove_device()
81 kfree(dev_ctx); mlx4_remove_device()
129 struct mlx4_device_context *dev_ctx = NULL, *temp_dev_ctx; mlx4_do_bond() local
155 list_for_each_entry_safe(dev_ctx, temp_dev_ctx, &priv->ctx_list, list) { mlx4_do_bond()
156 if (dev_ctx->intf->flags & MLX4_INTFF_BONDING) { mlx4_do_bond()
157 list_add_tail(&dev_ctx->bond_list, &bond_list); mlx4_do_bond()
158 list_del(&dev_ctx->list); mlx4_do_bond()
163 list_for_each_entry(dev_ctx, &bond_list, bond_list) { mlx4_do_bond()
164 dev_ctx->intf->remove(dev, dev_ctx->context); mlx4_do_bond()
165 dev_ctx->context = dev_ctx->intf->add(dev); mlx4_do_bond()
168 list_add_tail(&dev_ctx->list, &priv->ctx_list); mlx4_do_bond()
172 dev_ctx->intf->protocol, enable ? mlx4_do_bond()
182 struct mlx4_device_context *dev_ctx; mlx4_dispatch_event() local
187 list_for_each_entry(dev_ctx, &priv->ctx_list, list) mlx4_dispatch_event()
188 if (dev_ctx->intf->event) mlx4_dispatch_event()
189 dev_ctx->intf->event(dev, dev_ctx->context, type, param); mlx4_dispatch_event()
232 struct mlx4_device_context *dev_ctx; mlx4_get_protocol_dev() local
238 list_for_each_entry(dev_ctx, &priv->ctx_list, list) mlx4_get_protocol_dev()
239 if (dev_ctx->intf->protocol == proto && dev_ctx->intf->get_dev) { mlx4_get_protocol_dev()
240 result = dev_ctx->intf->get_dev(dev, dev_ctx->context, port); mlx4_get_protocol_dev()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
H A Dmain.c820 struct mlx5_device_context *dev_ctx; mlx5_add_device() local
823 dev_ctx = kmalloc(sizeof(*dev_ctx), GFP_KERNEL); mlx5_add_device()
824 if (!dev_ctx) { mlx5_add_device()
829 dev_ctx->intf = intf; mlx5_add_device()
830 dev_ctx->context = intf->add(dev); mlx5_add_device()
832 if (dev_ctx->context) { mlx5_add_device()
834 list_add_tail(&dev_ctx->list, &priv->ctx_list); mlx5_add_device()
837 kfree(dev_ctx); mlx5_add_device()
843 struct mlx5_device_context *dev_ctx; mlx5_remove_device() local
846 list_for_each_entry(dev_ctx, &priv->ctx_list, list) mlx5_remove_device()
847 if (dev_ctx->intf == intf) { mlx5_remove_device()
849 list_del(&dev_ctx->list); mlx5_remove_device()
852 intf->remove(dev, dev_ctx->context); mlx5_remove_device()
853 kfree(dev_ctx); mlx5_remove_device()
914 struct mlx5_device_context *dev_ctx; mlx5_get_protocol_dev() local
920 list_for_each_entry(dev_ctx, &mdev->priv.ctx_list, list) mlx5_get_protocol_dev()
921 if ((dev_ctx->intf->protocol == protocol) && mlx5_get_protocol_dev()
922 dev_ctx->intf->get_dev) { mlx5_get_protocol_dev()
923 result = dev_ctx->intf->get_dev(dev_ctx->context); mlx5_get_protocol_dev()
937 struct mlx5_device_context *dev_ctx; mlx5_core_event() local
942 list_for_each_entry(dev_ctx, &priv->ctx_list, list) mlx5_core_event()
943 if (dev_ctx->intf->event) mlx5_core_event()
944 dev_ctx->intf->event(dev, dev_ctx->context, event, param); mlx5_core_event()
/linux-4.1.27/drivers/media/platform/s5p-mfc/
H A Ds5p_mfc_cmd_v6.c43 mfc_write(dev, buf_size->dev_ctx, S5P_FIMV_CONTEXT_MEM_SIZE_V6); s5p_mfc_sys_init_cmd_v6()
H A Ds5p_mfc.c1381 .dev_ctx = MFC_CTX_BUF_SIZE_V6,
1413 .dev_ctx = MFC_CTX_BUF_SIZE_V7,
1440 .dev_ctx = MFC_CTX_BUF_SIZE_V8,
H A Ds5p_mfc_common.h212 unsigned int dev_ctx; member in struct:s5p_mfc_buf_size_v6
H A Ds5p_mfc_opr_v6.c322 dev->ctx_buf.size = buf_size->dev_ctx; s5p_mfc_alloc_dev_context_buffer_v6()
329 memset(dev->ctx_buf.virt, 0, buf_size->dev_ctx); s5p_mfc_alloc_dev_context_buffer_v6()
/linux-4.1.27/drivers/crypto/ux500/cryp/
H A Dcryp_core.c71 * @dev_ctx: Device dependent context.
85 struct cryp_device_context dev_ctx; member in struct:cryp_ctx
408 cryp_restore_device_context(device_data, &ctx->dev_ctx); cryp_setup_context()
411 control_register = ctx->dev_ctx.cr; cryp_setup_context()
413 control_register = ctx->dev_ctx.cr; cryp_setup_context()
681 &device_data->current_ctx->dev_ctx, cryp_disable_power()
735 &device_data->current_ctx->dev_ctx); cryp_enable_power()
799 cryp_save_device_context(device_data, &ctx->dev_ctx, cryp_mode); hw_crypt_noxts()
860 cryp_save_device_context(device_data, &ctx->dev_ctx, cryp_mode); ablk_dma_crypt()

Completed in 363 milliseconds