Home
last modified time | relevance | path

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

/freebsd-13.1/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-13.1/usr.sbin/bhyve/
H A Dpci_xhci.c649 dev_ctx = dev->dev_ctx; in pci_xhci_init_ep()
692 dev_ctx = dev->dev_ctx; in pci_xhci_disable_ep()
956 dev_ctx->ctx_slot.dwSctx0, dev_ctx->ctx_slot.dwSctx1, in pci_xhci_cmd_address_device()
963 dev->dev_ctx = dev_ctx; in pci_xhci_cmd_address_device()
988 dev_ctx->ctx_slot.dwSctx0, dev_ctx->ctx_slot.dwSctx1, in pci_xhci_cmd_address_device()
1067 dev_ctx = dev->dev_ctx; in pci_xhci_cmd_config_ep()
1109 dev_ctx->ctx_slot.dwSctx2, dev_ctx->ctx_slot.dwSctx3)); in pci_xhci_cmd_config_ep()
1152 dev_ctx = dev->dev_ctx; in pci_xhci_cmd_reset_ep()
1242 dev_ctx = dev->dev_ctx; in pci_xhci_cmd_set_tr()
1330 dev_ctx->ctx_slot.dwSctx0, dev_ctx->ctx_slot.dwSctx1, in pci_xhci_cmd_eval_ctx()
[all …]
/freebsd-13.1/sys/dev/mlx5/mlx5_core/
H A Dmlx5_main.c753 dev_ctx = kzalloc_node(sizeof(*dev_ctx), GFP_KERNEL, priv->numa_node); in mlx5_add_device()
754 if (!dev_ctx) in mlx5_add_device()
757 dev_ctx->intf = intf; in mlx5_add_device()
762 if (dev_ctx->context) { in mlx5_add_device()
767 kfree(dev_ctx); in mlx5_add_device()
777 if (dev_ctx->intf == intf) { in mlx5_remove_device()
779 list_del(&dev_ctx->list); in mlx5_remove_device()
783 kfree(dev_ctx); in mlx5_remove_device()
857 result = dev_ctx->intf->get_dev(dev_ctx->context); in mlx5_get_protocol_dev()
1312 if (dev_ctx->intf->event) in mlx5_core_event()
[all …]