/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_intf.c | 52 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 …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | pci_xhci.c | 254 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 …]
|
/freebsd/sys/dev/irdma/ |
H A D | icrdma.c | 326 if (!atomic_inc_not_zero(&iwdev->rf->dev_ctx.event_rfcnt)) { in irdma_event_handler() 329 atomic_read(&iwdev->rf->dev_ctx.event_rfcnt)); in irdma_event_handler() 350 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() 424 if (atomic_read(&rf->dev_ctx.event_rfcnt) != 0) { in irdma_finalize_task() 427 atomic_read(&rf->dev_ctx.event_rfcnt)); in irdma_finalize_task() 462 atomic_inc(&rf->dev_ctx.event_rfcnt); in irdma_finalize_task() 481 if (linux_pci_attach_device(rf->dev_ctx.dev, NULL, NULL, rf->pcidev)) in irdma_alloc_pcidev() 522 rf->dev_ctx.dev = peer->dev; in irdma_fill_device_info() [all …]
|
H A D | fbsd_kcompat.c | 49 irdma_rd32(struct irdma_dev_ctx *dev_ctx, u32 reg){ in irdma_rd32() argument 51 KASSERT(reg < dev_ctx->mem_bus_space_size, in irdma_rd32() 53 (uintmax_t)reg, (uintmax_t)dev_ctx->mem_bus_space_size)); in irdma_rd32() 55 return (bus_space_read_4(dev_ctx->mem_bus_space_tag, in irdma_rd32() 56 dev_ctx->mem_bus_space_handle, reg)); in irdma_rd32() 60 irdma_wr32(struct irdma_dev_ctx *dev_ctx, u32 reg, u32 value) in irdma_wr32() argument 63 KASSERT(reg < dev_ctx->mem_bus_space_size, in irdma_wr32() 65 (uintmax_t)reg, (uintmax_t)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() [all …]
|
H A D | osdep.h | 213 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 D | irdma_hw.c | 576 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 D | irdma_main.h | 327 struct irdma_dev_ctx dev_ctx; member
|
H A D | irdma_verbs.c | 3429 iwdev->ibdev.dev.parent = iwdev->rf->dev_ctx.dev; in irdma_init_rdma_device()
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_main.c | 793 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 …]
|