| /freebsd-14.2/sys/compat/linuxkpi/common/src/ |
| H A D | linux_netdev.c | 334 napi->dev = ndev; in linuxkpi_netif_napi_add() 343 NAPI_LOCK(ndev); in linuxkpi_netif_napi_add() 356 ndev = napi->dev; in lkpi_netif_napi_del_locked() 370 ndev = napi->dev; in linuxkpi_netif_napi_del() 371 NAPI_LOCK(ndev); in linuxkpi_netif_napi_del() 382 memset(ndev, 0, sizeof(*ndev)); in linuxkpi_init_dummy_netdev() 402 ndev = malloc(sizeof(*ndev) + len, M_NETDEV, M_NOWAIT); in linuxkpi_alloc_netdev() 404 return (ndev); in linuxkpi_alloc_netdev() 409 strlcpy(ndev->name, name, sizeof(*ndev->name)); in linuxkpi_alloc_netdev() 416 return (ndev); in linuxkpi_alloc_netdev() [all …]
|
| /freebsd-14.2/sys/ofed/drivers/infiniband/core/ |
| H A D | ib_roce_gid_mgmt.c | 57 if_t ndev; member 99 gid_attr.ndev = ndev; in update_gid() 158 if_t ndev; member 283 ndev = gid_attr.ndev; in roce_gid_update_addr_callback() 286 dev_put(ndev); in roce_gid_update_addr_callback() 298 if (entry->ndev == ndev && in roce_gid_update_addr_callback() 339 ndev = rdma_vlan_dev_real_dev(ndev); in roce_gid_queue_scan_event() 354 dev_hold(ndev); in roce_gid_queue_scan_event() 356 work->ndev = ndev; in roce_gid_queue_scan_event() 384 dev_hold(ndev); in roce_gid_delete_all_event() [all …]
|
| H A D | ib_cache.c | 295 attr->ndev != val->ndev) in find_gid() 401 if_t ndev) in ib_cache_gid_del_all_netdev_gids() argument 414 if (table->data_vec[ix].attr.ndev == ndev) in ib_cache_gid_del_all_netdev_gids() 452 attr->ndev = NULL; in __ib_cache_gid_get() 496 struct ib_gid_attr gid_attr_val = {.ndev = ndev, .gid_type = gid_type}; in ib_cache_gid_find() 498 if (ndev) in ib_cache_gid_find() 516 struct ib_gid_attr val = {.ndev = ndev, .gid_type = gid_type}; in ib_find_cached_gid_by_port() 524 if (ndev) in ib_find_cached_gid_by_port() 673 if_t ndev, in ib_cache_gid_set_default_gid() argument 688 gid_attr.ndev = ndev; in ib_cache_gid_set_default_gid() [all …]
|
| H A D | ib_sysfs.c | 55 struct attribute_group ndev; member 369 if (!gid_attr->ndev) in print_ndev() 400 if (gid_attr.ndev) in _show_port_gid_attr() 401 dev_put(gid_attr.ndev); in _show_port_gid_attr() 697 if (g->ndev.attrs) { in ib_port_gid_attr_release() 701 kfree(g->ndev.attrs); in ib_port_gid_attr_release() 1091 if (!p->gid_attr_group->ndev.attrs) { in add_port() 1097 &p->gid_attr_group->ndev); in add_port() 1167 &p->gid_attr_group->ndev); in add_port() 1173 kfree(p->gid_attr_group->ndev.attrs); in add_port() [all …]
|
| H A D | core_priv.h | 108 if_t ndev, 119 if_t ndev); 120 void ib_cache_gid_del_all_by_netdev(if_t ndev);
|
| H A D | ib_cma.c | 466 if (ndev) { in cma_igmp_send() 604 if_t ndev; in cma_validate_port() local 616 ndev = NULL; in cma_validate_port() 623 if (ndev) in cma_validate_port() 624 dev_put(ndev); in cma_validate_port() 1871 if (ndev) { in cma_leave_mc_groups() 2783 if (!ndev) { in cma_resolve_iboe_route() 2797 if (!ndev) { in cma_resolve_iboe_route() 4085 if_t ndev = in cma_ib_mc_handler() local 4102 if (ndev) in cma_ib_mc_handler() [all …]
|
| /freebsd-14.2/sys/compat/linuxkpi/common/include/linux/ |
| H A D | netdevice.h | 313 netdev_mc_count(struct net_device *ndev) in netdev_mc_count() argument 349 ether_setup(struct net_device *ndev) in ether_setup() argument 373 netif_carrier_ok(struct net_device *ndev) in netif_carrier_ok() argument 380 netif_carrier_off(struct net_device *ndev) in netif_carrier_off() argument 386 netif_carrier_on(struct net_device *ndev) in netif_carrier_on() argument 401 netif_stop_queue(struct net_device *ndev) in netif_stop_queue() argument 407 netif_wake_queue(struct net_device *ndev) in netif_wake_queue() argument 424 register_netdev(struct net_device *ndev) in register_netdev() argument 429 error = register_netdevice(ndev); in register_netdev() 436 unregister_netdev(struct net_device *ndev) in unregister_netdev() argument [all …]
|
| /freebsd-14.2/sys/dev/mana/ |
| H A D | mana_en.c | 492 if_t ndev = txq->ndev; in mana_xmit() local 669 if_t ndev = txq->ndev; in mana_xmit_taskfunc() local 1145 if_t ndev = apc->ndev; in mana_cfg_vport_steering() local 1212 if_t ndev = apc->ndev; in mana_create_wq_obj() local 1264 if_t ndev = apc->ndev; in mana_destroy_wq_obj() local 1437 ndev = txq->ndev; in mana_poll_tx_cq() 1620 if_t ndev = rxq->ndev; in mana_rx_mbuf() local 1725 if_t ndev = rxq->ndev; in mana_process_rx_cqe() local 2328 rxq->ndev = ndev; in mana_create_rxq() 2781 apc->ndev = ndev; in mana_probe_port() [all …]
|
| H A D | mana.h | 158 if_t ndev; member 423 if_t ndev; member 475 if_t ndev; member 542 int mana_alloc_queues(if_t ndev); 543 int mana_attach(if_t ndev); 544 int mana_detach(if_t ndev);
|
| /freebsd-14.2/sys/dev/ow/ |
| H A D | ow.c | 242 lldev = device_get_parent(ndev); in ow_send_command() 537 ow_attach(device_t ndev) in ow_attach() argument 552 sc = device_get_softc(ndev); in ow_attach() 553 sc->dev = ndev; in ow_attach() 556 return bus_generic_attach(ndev); in ow_attach() 560 ow_detach(device_t ndev) in ow_detach() argument 567 sc = device_get_softc(ndev); in ow_detach() 572 bus_generic_detach(ndev); in ow_detach() 659 sc = device_get_softc(ndev); in ow_acquire_bus() 665 device_get_nameunit(ndev), in ow_acquire_bus() [all …]
|
| H A D | own.h | 40 device_t ndev = device_get_parent(pdev); in own_send_command() local 42 return OWN_SEND_COMMAND(ndev, pdev, cmd); in own_send_command() 54 device_t ndev = device_get_parent(pdev); in own_acquire_bus() local 56 return OWN_ACQUIRE_BUS(ndev, pdev, how); in own_acquire_bus() 62 device_t ndev = device_get_parent(pdev); in own_release_bus() local 64 OWN_RELEASE_BUS(ndev, pdev); in own_release_bus() 70 device_t ndev = device_get_parent(pdev); in own_crc() local 72 return OWN_CRC(ndev, pdev, buffer, len); in own_crc()
|
| H A D | own_if.m | 46 device_t ndev; /* Network (bus) level device */ 55 device_t ndev; 64 device_t ndev; 72 device_t ndev;
|
| /freebsd-14.2/tests/sys/cddl/zfs/tests/hotspare/ |
| H A D | hotspare_add_002_pos.ksh | 76 cleanup_devices $ndev 78 log_must $ZPOOL add "$TESTPOOL" spare $ndev 79 log_must $ZPOOL remove "$TESTPOOL" $ndev 81 cleanup_devices $ndev 83 log_must $ZPOOL add -f "$TESTPOOL" spare $ndev 84 log_must $ZPOOL remove "$TESTPOOL" $ndev 94 typeset ndev=${devarray[2]}
|
| H A D | hotspare_detach_004_pos.ksh | 83 log_must $ZPOOL replace $TESTPOOL $dev $ndev 87 log_must check_hotspare_state "$TESTPOOL" "$ndev" "INUSE" 88 log_must $ZPOOL detach $TESTPOOL $ndev 96 typeset ndev=${devarray[2]} 99 setup_hotspares "$keyword" "${sparedevs[@]} $ndev"
|
| H A D | hotspare_detach_003_pos.ksh | 76 log_must $ZPOOL replace -f $TESTPOOL $odev $ndev 84 log_must iscontained "$TESTPOOL" "$ndev" 86 log_must $ZPOOL replace $TESTPOOL $ndev $odev 95 typeset ndev=${devarray[2]}
|
| H A D | hotspare_replace_001_neg.ksh | 100 for ndev in $dev_nonexist ; do 101 log_mustnot $ZPOOL replace $TESTPOOL $odev $ndev
|
| /freebsd-14.2/sys/riscv/riscv/ |
| H A D | nexus.c | 196 struct nexus_device *ndev; in nexus_add_child() local 198 ndev = malloc(sizeof(struct nexus_device), M_NEXUSDEV, M_NOWAIT|M_ZERO); in nexus_add_child() 199 if (!ndev) in nexus_add_child() 201 resource_list_init(&ndev->nx_resources); in nexus_add_child() 205 device_set_ivars(child, ndev); in nexus_add_child() 233 struct nexus_device *ndev = DEVTONX(child); in nexus_alloc_resource() local 243 if (device_get_parent(child) != bus || ndev == NULL) in nexus_alloc_resource() 245 rle = resource_list_find(&ndev->nx_resources, type, *rid); in nexus_alloc_resource() 338 struct nexus_device *ndev = DEVTONX(child); in nexus_get_reslist() local 340 return (&ndev->nx_resources); in nexus_get_reslist()
|
| H A D | plic.c | 100 int ndev; member 219 if (daf->ncells != 1 || daf->cells[0] > sc->ndev) in plic_map_intr() 267 if ((OF_getencprop(node, "riscv,ndev", &sc->ndev, in plic_attach() 268 sizeof(sc->ndev))) < 0) { in plic_attach() 274 if (sc->ndev >= PLIC_MAX_IRQS) { in plic_attach() 276 "Error: invalid ndev (%d)\n", sc->ndev); in plic_attach() 293 for (irq = 1; irq <= sc->ndev; irq++) { in plic_attach()
|
| H A D | aplic.c | 73 int ndev; member 285 if (daf->ncells != 2 || daf->cells[0] > sc->ndev) { in aplic_map_intr() 330 if ((OF_getencprop(node, "riscv,num-sources", &sc->ndev, in aplic_setup_direct_mode() 331 sizeof(sc->ndev))) < 0) { in aplic_setup_direct_mode() 336 if (sc->ndev > APLIC_MAX_IRQS) { in aplic_setup_direct_mode() 337 device_printf(dev, "Error: invalid ndev (%d)\n", sc->ndev); in aplic_setup_direct_mode() 358 for (irq = 1; irq <= sc->ndev; irq++) { in aplic_setup_direct_mode()
|
| /freebsd-14.2/sys/x86/x86/ |
| H A D | nexus.c | 281 struct nexus_device *ndev = DEVTONX(dev); in nexus_print_all_resources() local 282 struct resource_list *rl = &ndev->nx_resources; in nexus_print_all_resources() 313 struct nexus_device *ndev; in nexus_add_child() local 316 if (!ndev) in nexus_add_child() 318 resource_list_init(&ndev->nx_resources); in nexus_add_child() 323 device_set_ivars(child, ndev); in nexus_add_child() 354 struct nexus_device *ndev = DEVTONX(child); in nexus_alloc_resource() local 364 if (device_get_parent(child) != bus || ndev == NULL) in nexus_alloc_resource() 366 rle = resource_list_find(&ndev->nx_resources, type, *rid); in nexus_alloc_resource() 540 struct nexus_device *ndev = DEVTONX(child); in nexus_get_reslist() local [all …]
|
| /freebsd-14.2/sys/arm64/arm64/ |
| H A D | nexus.c | 201 struct nexus_device *ndev; in nexus_add_child() local 203 ndev = malloc(sizeof(struct nexus_device), M_NEXUSDEV, M_NOWAIT|M_ZERO); in nexus_add_child() 204 if (!ndev) in nexus_add_child() 206 resource_list_init(&ndev->nx_resources); in nexus_add_child() 211 device_set_ivars(child, ndev); in nexus_add_child() 239 struct nexus_device *ndev = DEVTONX(child); in nexus_alloc_resource() local 249 if (device_get_parent(child) != bus || ndev == NULL) in nexus_alloc_resource() 251 rle = resource_list_find(&ndev->nx_resources, type, *rid); in nexus_alloc_resource() 382 struct nexus_device *ndev = DEVTONX(child); in nexus_get_reslist() local 384 return (&ndev->nx_resources); in nexus_get_reslist()
|
| /freebsd-14.2/sbin/mount_fusefs/ |
| H A D | mount_fusefs.c | 125 char ndev[128], fdstr[15]; in main() local 361 strcpy(ndev, _PATH_DEV); in main() 362 ndevbas = ndev + strlen(_PATH_DEV); in main() 364 sizeof(ndev) - strlen(_PATH_DEV)); in main() 373 dev = ndev; in main()
|
| /freebsd-14.2/sys/arm/arm/ |
| H A D | nexus.c | 206 struct nexus_device *ndev; in nexus_add_child() local 208 ndev = malloc(sizeof(struct nexus_device), M_NEXUSDEV, M_NOWAIT|M_ZERO); in nexus_add_child() 209 if (!ndev) in nexus_add_child() 211 resource_list_init(&ndev->nx_resources); in nexus_add_child() 215 device_set_ivars(child, ndev); in nexus_add_child()
|
| /freebsd-14.2/sys/ofed/include/rdma/ |
| H A D | ib_cache.h | 77 if_t ndev, 100 if_t ndev,
|
| /freebsd-14.2/sys/dev/mlx4/mlx4_ib/ |
| H A D | mlx4_ib_ah.c | 99 if (gid_attr.ndev) { in create_iboe_ah() 100 vlan_tag = rdma_vlan_dev_vlan_id(gid_attr.ndev); in create_iboe_ah() 101 memcpy(ah->av.eth.s_mac, if_getlladdr(gid_attr.ndev), ETH_ALEN); in create_iboe_ah() 102 if_rele(gid_attr.ndev); in create_iboe_ah()
|