Home
last modified time | relevance | path

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

/freebsd-14.2/sys/dev/mlx4/mlx4_core/
H A Dmlx4_intf.c54 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()
61 if (dev_ctx->context) { in mlx4_add_device()
71 kfree(dev_ctx); in mlx4_add_device()
85 kfree(dev_ctx); in mlx4_remove_device()
168 dev_ctx->intf->remove(dev, dev_ctx->context); in mlx4_do_bond()
169 dev_ctx->context = dev_ctx->intf->add(dev); in mlx4_do_bond()
193 dev_ctx->intf->event(dev, dev_ctx->context, type, param); in mlx4_dispatch_event()
246 if (dev_ctx->intf->protocol == proto && dev_ctx->intf->get_dev) { in mlx4_get_protocol_dev()
[all …]
/freebsd-14.2/usr.sbin/bhyve/
H A Dpci_xhci.c659 dev_ctx = dev->dev_ctx; in pci_xhci_init_ep()
703 dev_ctx = dev->dev_ctx; in pci_xhci_disable_ep()
978 dev_ctx->ctx_slot.dwSctx0, dev_ctx->ctx_slot.dwSctx1, in pci_xhci_cmd_address_device()
985 dev->dev_ctx = dev_ctx; in pci_xhci_cmd_address_device()
1010 dev_ctx->ctx_slot.dwSctx0, dev_ctx->ctx_slot.dwSctx1, in pci_xhci_cmd_address_device()
1095 dev_ctx = dev->dev_ctx; in pci_xhci_cmd_config_ep()
1137 dev_ctx->ctx_slot.dwSctx2, dev_ctx->ctx_slot.dwSctx3)); in pci_xhci_cmd_config_ep()
1182 dev_ctx = dev->dev_ctx; in pci_xhci_cmd_reset_ep()
1271 dev_ctx = dev->dev_ctx; in pci_xhci_cmd_set_tr()
1363 dev_ctx->ctx_slot.dwSctx0, dev_ctx->ctx_slot.dwSctx1, in pci_xhci_cmd_eval_ctx()
[all …]
/freebsd-14.2/sys/dev/irdma/
H A Dicrdma.c350 atomic_dec(&iwdev->rf->dev_ctx.event_rfcnt); in irdma_event_handler()
420 atomic_dec(&rf->dev_ctx.event_rfcnt); in irdma_finalize_task()
422 !atomic_read(&rf->dev_ctx.event_rfcnt), in irdma_finalize_task()
462 atomic_inc(&rf->dev_ctx.event_rfcnt); in irdma_finalize_task()
522 rf->dev_ctx.dev = peer->dev; in irdma_fill_device_info()
527 rf->hw.dev_context = &rf->dev_ctx; in irdma_fill_device_info()
606 rf->dev_ctx.task_arg.peer = peer; in irdma_probe()
607 rf->dev_ctx.task_arg.iwdev = iwdev; in irdma_probe()
608 rf->dev_ctx.task_arg.peer = peer; in irdma_probe()
662 hdl->iwdev->rf->dev_ctx.task_arg.iwdev = NULL; in irdma_remove()
[all …]
H A Dfbsd_kcompat.c51 KASSERT(reg < dev_ctx->mem_bus_space_size, in irdma_rd32()
56 dev_ctx->mem_bus_space_handle, reg)); in irdma_rd32()
63 KASSERT(reg < dev_ctx->mem_bus_space_size, in irdma_wr32()
67 bus_space_write_4(dev_ctx->mem_bus_space_tag, in irdma_wr32()
68 dev_ctx->mem_bus_space_handle, reg, value); in irdma_wr32()
74 KASSERT(reg < dev_ctx->mem_bus_space_size, in irdma_rd64()
79 dev_ctx->mem_bus_space_handle, reg)); in irdma_rd64()
86 KASSERT(reg < dev_ctx->mem_bus_space_size, in irdma_wr64()
90 bus_space_write_8(dev_ctx->mem_bus_space_tag, in irdma_wr64()
91 dev_ctx->mem_bus_space_handle, reg, value); in irdma_wr64()
[all …]
H A Dosdep.h213 u32 irdma_rd32(struct irdma_dev_ctx *dev_ctx, u32 reg);
214 void irdma_wr32(struct irdma_dev_ctx *dev_ctx, u32 reg, u32 value);
215 u64 irdma_rd64(struct irdma_dev_ctx *dev_ctx, u32 reg);
216 void irdma_wr64(struct irdma_dev_ctx *dev_ctx, u32 reg, u64 value);
H A Dirdma_hw.c576 bus_teardown_intr(rf->dev_ctx.dev, msix_vec->res, in irdma_free_irq()
581 bus_release_resource(rf->dev_ctx.dev, SYS_RES_IRQ, in irdma_free_irq()
1161 device_t dev = rf->dev_ctx.dev; in irdma_irq_request()
1212 bus_describe_intr(rf->dev_ctx.dev, msix_vec->res, msix_vec->tag, "%s", msix_vec->name); in irdma_cfg_ceq_vector()
1222 bus_describe_intr(rf->dev_ctx.dev, msix_vec->res, msix_vec->tag, "%s", msix_vec->name); in irdma_cfg_ceq_vector()
1250 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.h327 struct irdma_dev_ctx dev_ctx; member
H A Dirdma_verbs.c3429 iwdev->ibdev.dev.parent = iwdev->rf->dev_ctx.dev; in irdma_init_rdma_device()
/freebsd-14.2/sys/dev/mlx5/mlx5_core/
H A Dmlx5_main.c792 dev_ctx = kzalloc_node(sizeof(*dev_ctx), GFP_KERNEL, priv->numa_node); in mlx5_add_device()
793 if (!dev_ctx) in mlx5_add_device()
796 dev_ctx->intf = intf; in mlx5_add_device()
801 if (dev_ctx->context) { in mlx5_add_device()
806 kfree(dev_ctx); in mlx5_add_device()
816 if (dev_ctx->intf == intf) { in mlx5_remove_device()
818 list_del(&dev_ctx->list); in mlx5_remove_device()
822 kfree(dev_ctx); in mlx5_remove_device()
896 result = dev_ctx->intf->get_dev(dev_ctx->context); in mlx5_get_protocol_dev()
1365 if (dev_ctx->intf->event) in mlx5_core_event()
[all …]