Home
last modified time | relevance | path

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

/freebsd-12.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-12.1/usr.sbin/bhyve/
H A Dpci_xhci.c642 dev_ctx = dev->dev_ctx; in pci_xhci_init_ep()
685 dev_ctx = dev->dev_ctx; in pci_xhci_disable_ep()
948 dev_ctx->ctx_slot.dwSctx0, dev_ctx->ctx_slot.dwSctx1, in pci_xhci_cmd_address_device()
955 dev->dev_ctx = dev_ctx; in pci_xhci_cmd_address_device()
981 dev_ctx->ctx_slot.dwSctx0, dev_ctx->ctx_slot.dwSctx1, in pci_xhci_cmd_address_device()
982 dev_ctx->ctx_slot.dwSctx2, dev_ctx->ctx_slot.dwSctx3, in pci_xhci_cmd_address_device()
1059 dev_ctx = dev->dev_ctx; in pci_xhci_cmd_config_ep()
1101 dev_ctx->ctx_slot.dwSctx2, dev_ctx->ctx_slot.dwSctx3)); in pci_xhci_cmd_config_ep()
1144 dev_ctx = dev->dev_ctx; in pci_xhci_cmd_reset_ep()
1233 dev_ctx = dev->dev_ctx; in pci_xhci_cmd_set_tr()
[all …]
/freebsd-12.1/sys/dev/mlx5/mlx5_core/
H A Dmlx5_main.c714 dev_ctx = kzalloc(sizeof(*dev_ctx), GFP_KERNEL); in mlx5_add_device()
715 if (!dev_ctx) in mlx5_add_device()
718 dev_ctx->intf = intf; in mlx5_add_device()
723 if (dev_ctx->context) { in mlx5_add_device()
728 kfree(dev_ctx); in mlx5_add_device()
738 if (dev_ctx->intf == intf) { in mlx5_remove_device()
740 list_del(&dev_ctx->list); in mlx5_remove_device()
744 kfree(dev_ctx); in mlx5_remove_device()
818 result = dev_ctx->intf->get_dev(dev_ctx->context); in mlx5_get_protocol_dev()
1263 if (dev_ctx->intf->event) in mlx5_core_event()
[all …]