Home
last modified time | relevance | path

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

/src/sys/dev/mlx4/mlx4_core/
H A Dmlx4_intf.c52 struct mlx4_device_context *dev_ctx; in mlx4_add_device() local
54 dev_ctx = kmalloc(sizeof *dev_ctx, GFP_KERNEL); in mlx4_add_device()
55 if (!dev_ctx) in mlx4_add_device()
58 dev_ctx->intf = intf; in mlx4_add_device()
59 dev_ctx->context = intf->add(&priv->dev); in mlx4_add_device()
61 if (dev_ctx->context) { in mlx4_add_device()
63 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()
71 kfree(dev_ctx); in mlx4_add_device()
76 struct mlx4_device_context *dev_ctx; in mlx4_remove_device() local
[all …]
/src/usr.sbin/bhyve/
H A Dpci_xhci.c254 struct xhci_dev_ctx *dev_ctx; member
654 struct xhci_dev_ctx *dev_ctx; in pci_xhci_init_ep() local
659 dev_ctx = dev->dev_ctx; in pci_xhci_init_ep()
660 ep_ctx = &dev_ctx->ctx_ep[epid]; in pci_xhci_init_ep()
697 struct xhci_dev_ctx *dev_ctx; in pci_xhci_disable_ep() local
703 dev_ctx = dev->dev_ctx; in pci_xhci_disable_ep()
704 ep_ctx = &dev_ctx->ctx_ep[epid]; in pci_xhci_disable_ep()
881 struct xhci_dev_ctx *dev_ctx; in pci_xhci_cmd_reset_device() local
904 dev_ctx = pci_xhci_get_dev_ctx(sc, slot); in pci_xhci_cmd_reset_device()
905 if (dev_ctx == NULL) { in pci_xhci_cmd_reset_device()
[all …]
/src/sys/dev/irdma/
H A Dicrdma.c330 if (!atomic_inc_not_zero(&iwdev->rf->dev_ctx.event_rfcnt)) { in irdma_event_handler()
333 atomic_read(&iwdev->rf->dev_ctx.event_rfcnt)); in irdma_event_handler()
354 atomic_dec(&iwdev->rf->dev_ctx.event_rfcnt); in irdma_event_handler()
424 atomic_dec(&rf->dev_ctx.event_rfcnt); in irdma_finalize_task()
430 !atomic_read(&rf->dev_ctx.event_rfcnt), in irdma_finalize_task()
432 if (atomic_read(&rf->dev_ctx.event_rfcnt) != 0) { in irdma_finalize_task()
435 atomic_read(&rf->dev_ctx.event_rfcnt)); in irdma_finalize_task()
474 atomic_inc(&rf->dev_ctx.event_rfcnt); in irdma_finalize_task()
501 if (linux_pci_attach_device(rf->dev_ctx.dev, NULL, NULL, rf->pcidev)) in irdma_alloc_pcidev()
542 rf->dev_ctx.dev = peer->dev; in irdma_fill_device_info()
[all …]
H A Dfbsd_kcompat.c55 irdma_rd32(struct irdma_dev_ctx *dev_ctx, u32 reg){ in irdma_rd32() argument
57 KASSERT(reg < dev_ctx->mem_bus_space_size, in irdma_rd32()
59 (uintmax_t)reg, (uintmax_t)dev_ctx->mem_bus_space_size)); in irdma_rd32()
61 return (bus_space_read_4(dev_ctx->mem_bus_space_tag, in irdma_rd32()
62 dev_ctx->mem_bus_space_handle, reg)); in irdma_rd32()
66 irdma_wr32(struct irdma_dev_ctx *dev_ctx, u32 reg, u32 value) in irdma_wr32() argument
69 KASSERT(reg < dev_ctx->mem_bus_space_size, in irdma_wr32()
71 (uintmax_t)reg, (uintmax_t)dev_ctx->mem_bus_space_size)); in irdma_wr32()
73 bus_space_write_4(dev_ctx->mem_bus_space_tag, in irdma_wr32()
74 dev_ctx->mem_bus_space_handle, reg, value); in irdma_wr32()
[all …]
H A Dosdep.h218 u32 irdma_rd32(struct irdma_dev_ctx *dev_ctx, u32 reg);
219 void irdma_wr32(struct irdma_dev_ctx *dev_ctx, u32 reg, u32 value);
220 u64 irdma_rd64(struct irdma_dev_ctx *dev_ctx, u32 reg);
221 void irdma_wr64(struct irdma_dev_ctx *dev_ctx, u32 reg, u64 value);
H A Dirdma_hw.c589 bus_teardown_intr(rf->dev_ctx.dev, msix_vec->res, in irdma_free_irq()
594 bus_release_resource(rf->dev_ctx.dev, SYS_RES_IRQ, in irdma_free_irq()
1176 device_t dev = rf->dev_ctx.dev; in irdma_irq_request()
1227 bus_describe_intr(rf->dev_ctx.dev, msix_vec->res, msix_vec->tag, "%s", msix_vec->name); in irdma_cfg_ceq_vector()
1237 bus_describe_intr(rf->dev_ctx.dev, msix_vec->res, msix_vec->tag, "%s", msix_vec->name); in irdma_cfg_ceq_vector()
1265 bus_describe_intr(rf->dev_ctx.dev, msix_vec->res, msix_vec->tag, "%s", msix_vec->name); in irdma_cfg_aeq_vector()
H A Dirdma_main.h331 struct irdma_dev_ctx dev_ctx; member
H A Dirdma_verbs.c3428 iwdev->ibdev.dev.parent = iwdev->rf->dev_ctx.dev; in irdma_init_rdma_device()
/src/sys/dev/mlx5/mlx5_core/
H A Dmlx5_main.c793 struct mlx5_device_context *dev_ctx; in mlx5_add_device() local
796 dev_ctx = kzalloc_node(sizeof(*dev_ctx), GFP_KERNEL, priv->numa_node); in mlx5_add_device()
797 if (!dev_ctx) in mlx5_add_device()
800 dev_ctx->intf = intf; in mlx5_add_device()
802 dev_ctx->context = intf->add(dev); in mlx5_add_device()
805 if (dev_ctx->context) { in mlx5_add_device()
807 list_add_tail(&dev_ctx->list, &priv->ctx_list); in mlx5_add_device()
810 kfree(dev_ctx); in mlx5_add_device()
816 struct mlx5_device_context *dev_ctx; in mlx5_remove_device() local
819 list_for_each_entry(dev_ctx, &priv->ctx_list, list) in mlx5_remove_device()
[all …]