| /freebsd-13.1/sys/compat/linuxkpi/common/src/ |
| H A D | linux_netdev.c | 339 napi->dev = ndev; in linuxkpi_netif_napi_add() 348 NAPI_LOCK(ndev); in linuxkpi_netif_napi_add() 361 ndev = napi->dev; in lkpi_netif_napi_del_locked() 375 ndev = napi->dev; in linuxkpi_netif_napi_del() 376 NAPI_LOCK(ndev); in linuxkpi_netif_napi_del() 387 memset(ndev, 0, sizeof(*ndev)); in linuxkpi_init_dummy_netdev() 407 ndev = malloc(sizeof(*ndev) + len, M_NETDEV, M_NOWAIT); in linuxkpi_alloc_netdev() 409 return (ndev); in linuxkpi_alloc_netdev() 414 strlcpy(ndev->name, name, sizeof(*ndev->name)); in linuxkpi_alloc_netdev() 420 return (ndev); in linuxkpi_alloc_netdev() [all …]
|
| /freebsd-13.1/sys/ofed/drivers/infiniband/core/ |
| H A D | ib_roce_gid_mgmt.c | 59 struct ifnet *ndev; member 101 gid_attr.ndev = ndev; in update_gid() 271 ndev = gid_attr.ndev; in roce_gid_update_addr_callback() 272 if (ndev == NULL) in roce_gid_update_addr_callback() 274 dev_put(ndev); in roce_gid_update_addr_callback() 286 if (entry->ndev == ndev && in roce_gid_update_addr_callback() 327 ndev = rdma_vlan_dev_real_dev(ndev); in roce_gid_queue_scan_event() 342 dev_hold(ndev); in roce_gid_queue_scan_event() 344 work->ndev = ndev; in roce_gid_queue_scan_event() 372 dev_hold(ndev); in roce_gid_delete_all_event() [all …]
|
| H A D | ib_cache.c | 297 attr->ndev != val->ndev) in find_gid() 416 if (table->data_vec[ix].attr.ndev == ndev) in ib_cache_gid_del_all_netdev_gids() 449 if (attr->ndev != NULL && in __ib_cache_gid_get() 452 dev_hold(attr->ndev); in __ib_cache_gid_get() 454 attr->ndev = NULL; in __ib_cache_gid_get() 498 struct ib_gid_attr gid_attr_val = {.ndev = ndev, .gid_type = gid_type}; in ib_cache_gid_find() 500 if (ndev) in ib_cache_gid_find() 518 struct ib_gid_attr val = {.ndev = ndev, .gid_type = gid_type}; in ib_find_cached_gid_by_port() 526 if (ndev) in ib_find_cached_gid_by_port() 675 struct ifnet *ndev, in ib_cache_gid_set_default_gid() argument [all …]
|
| H A D | core_priv.h | 107 struct ifnet *ndev, 118 struct ifnet *ndev); 119 void ib_cache_gid_del_all_by_netdev(struct ifnet *ndev);
|
| H A D | ib_sysfs.c | 57 struct attribute_group ndev; member 371 if (!gid_attr->ndev) in print_ndev() 402 if (gid_attr.ndev) in _show_port_gid_attr() 403 dev_put(gid_attr.ndev); in _show_port_gid_attr() 699 if (g->ndev.attrs) { in ib_port_gid_attr_release() 703 kfree(g->ndev.attrs); in ib_port_gid_attr_release() 1093 if (!p->gid_attr_group->ndev.attrs) { in add_port() 1099 &p->gid_attr_group->ndev); in add_port() 1169 &p->gid_attr_group->ndev); in add_port() 1175 kfree(p->gid_attr_group->ndev.attrs); in add_port() [all …]
|
| H A D | ib_cma.c | 465 if (ndev) { in cma_igmp_send() 615 ndev = NULL; in cma_validate_port() 622 if (ndev) in cma_validate_port() 623 dev_put(ndev); in cma_validate_port() 1839 if (ndev) { in cma_leave_mc_groups() 2750 if (!ndev) { in cma_resolve_iboe_route() 2764 if (!ndev) { in cma_resolve_iboe_route() 2792 dev_put(ndev); in cma_resolve_iboe_route() 4065 if (ndev) in cma_ib_mc_handler() 4304 if (!ndev) { in cma_iboe_join_multicast() [all …]
|
| H A D | ib_sa_query.c | 655 struct ifnet *ndev = NULL; in ib_init_ah_from_path() local 702 ndev = ib_get_ndev_from_path(rec); in ib_init_ah_from_path() 703 if ((ndev && ndev != resolved_dev) || in ib_init_ah_from_path() 710 if (ndev) in ib_init_ah_from_path() 711 dev_put(ndev); in ib_init_ah_from_path() 721 rec->gid_type, port_num, ndev, in ib_init_ah_from_path() 724 if (ndev) in ib_init_ah_from_path() 725 dev_put(ndev); in ib_init_ah_from_path() 733 if (ndev) in ib_init_ah_from_path() 734 dev_put(ndev); in ib_init_ah_from_path()
|
| /freebsd-13.1/sys/dev/ow/ |
| H A D | ow.c | 243 lldev = device_get_parent(ndev); in ow_send_command() 538 ow_attach(device_t ndev) in ow_attach() argument 553 sc = device_get_softc(ndev); in ow_attach() 554 sc->dev = ndev; in ow_attach() 557 return bus_generic_attach(ndev); in ow_attach() 561 ow_detach(device_t ndev) in ow_detach() argument 568 sc = device_get_softc(ndev); in ow_detach() 573 bus_generic_detach(ndev); in ow_detach() 674 sc = device_get_softc(ndev); in ow_acquire_bus() 680 device_get_nameunit(ndev), in ow_acquire_bus() [all …]
|
| H A D | own.h | 42 device_t ndev = device_get_parent(pdev); in own_send_command() local 44 return OWN_SEND_COMMAND(ndev, pdev, cmd); in own_send_command() 56 device_t ndev = device_get_parent(pdev); in own_acquire_bus() local 58 return OWN_ACQUIRE_BUS(ndev, pdev, how); in own_acquire_bus() 64 device_t ndev = device_get_parent(pdev); in own_release_bus() local 66 OWN_RELEASE_BUS(ndev, pdev); in own_release_bus() 72 device_t ndev = device_get_parent(pdev); in own_crc() local 74 return OWN_CRC(ndev, pdev, buffer, len); in own_crc()
|
| H A D | own_if.m | 47 device_t ndev; /* Network (bus) level device */ 56 device_t ndev; 65 device_t ndev; 73 device_t ndev;
|
| /freebsd-13.1/tests/sys/cddl/zfs/tests/hotspare/ |
| H A D | hotspare_add_002_pos.ksh | 78 cleanup_devices $ndev 80 log_must $ZPOOL add "$TESTPOOL" spare $ndev 81 log_must $ZPOOL remove "$TESTPOOL" $ndev 83 cleanup_devices $ndev 85 log_must $ZPOOL add -f "$TESTPOOL" spare $ndev 86 log_must $ZPOOL remove "$TESTPOOL" $ndev 96 typeset ndev=${devarray[2]}
|
| H A D | hotspare_detach_004_pos.ksh | 85 log_must $ZPOOL replace $TESTPOOL $dev $ndev 89 log_must check_hotspare_state "$TESTPOOL" "$ndev" "INUSE" 90 log_must $ZPOOL detach $TESTPOOL $ndev 98 typeset ndev=${devarray[2]} 101 setup_hotspares "$keyword" "${sparedevs[@]} $ndev"
|
| H A D | hotspare_detach_003_pos.ksh | 78 log_must $ZPOOL replace -f $TESTPOOL $odev $ndev 86 log_must iscontained "$TESTPOOL" "$ndev" 88 log_must $ZPOOL replace $TESTPOOL $ndev $odev 97 typeset ndev=${devarray[2]}
|
| H A D | hotspare_replace_001_neg.ksh | 102 for ndev in $dev_nonexist ; do 103 log_mustnot $ZPOOL replace $TESTPOOL $odev $ndev
|
| /freebsd-13.1/sys/mips/mips/ |
| H A D | nexus.c | 237 struct nexus_device *ndev = DEVTONX(dev); in nexus_print_all_resources() local 254 struct nexus_device *ndev; in nexus_add_child() local 257 if (!ndev) in nexus_add_child() 259 resource_list_init(&ndev->nx_resources); in nexus_add_child() 268 device_set_ivars(child, ndev); in nexus_add_child() 282 struct nexus_device *ndev = DEVTONX(child); in nexus_alloc_resource() local 350 struct nexus_device *ndev = DEVTONX(child); in nexus_get_reslist() local 352 return (&ndev->nx_resources); in nexus_get_reslist() 359 struct nexus_device *ndev = DEVTONX(child); in nexus_set_resource() local 378 struct nexus_device *ndev = DEVTONX(child); in nexus_get_resource() local [all …]
|
| /freebsd-13.1/sys/riscv/riscv/ |
| H A D | nexus.c | 190 struct nexus_device *ndev; in nexus_add_child() local 193 if (!ndev) in nexus_add_child() 195 resource_list_init(&ndev->nx_resources); in nexus_add_child() 200 device_set_ivars(child, ndev); in nexus_add_child() 214 struct nexus_device *ndev = DEVTONX(child); in nexus_alloc_resource() local 227 if (device_get_parent(child) != bus || ndev == NULL) in nexus_alloc_resource() 229 rle = resource_list_find(&ndev->nx_resources, type, *rid); in nexus_alloc_resource() 363 struct nexus_device *ndev = DEVTONX(child); in nexus_get_reslist() local 365 return (&ndev->nx_resources); in nexus_get_reslist() 372 struct nexus_device *ndev = DEVTONX(child); in nexus_set_resource() local [all …]
|
| 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()
|
| /freebsd-13.1/sys/x86/x86/ |
| H A D | nexus.c | 304 struct nexus_device *ndev = DEVTONX(dev); in nexus_print_all_resources() local 336 struct nexus_device *ndev; in nexus_add_child() local 339 if (!ndev) in nexus_add_child() 341 resource_list_init(&ndev->nx_resources); in nexus_add_child() 346 device_set_ivars(child, ndev); in nexus_add_child() 378 struct nexus_device *ndev = DEVTONX(child); in nexus_alloc_resource() local 656 struct nexus_device *ndev = DEVTONX(child); in nexus_get_reslist() local 658 return (&ndev->nx_resources); in nexus_get_reslist() 665 struct nexus_device *ndev = DEVTONX(child); in nexus_set_resource() local 677 struct nexus_device *ndev = DEVTONX(child); in nexus_get_resource() local [all …]
|
| /freebsd-13.1/sys/arm64/arm64/ |
| H A D | nexus.c | 198 struct nexus_device *ndev; in nexus_add_child() local 201 if (!ndev) in nexus_add_child() 203 resource_list_init(&ndev->nx_resources); in nexus_add_child() 208 device_set_ivars(child, ndev); in nexus_add_child() 222 struct nexus_device *ndev = DEVTONX(child); in nexus_alloc_resource() local 235 if (device_get_parent(child) != bus || ndev == NULL) in nexus_alloc_resource() 237 rle = resource_list_find(&ndev->nx_resources, type, *rid); in nexus_alloc_resource() 384 struct nexus_device *ndev = DEVTONX(child); in nexus_get_reslist() local 386 return (&ndev->nx_resources); in nexus_get_reslist() 393 struct nexus_device *ndev = DEVTONX(child); in nexus_set_resource() local [all …]
|
| /freebsd-13.1/sys/compat/linuxkpi/common/include/linux/ |
| H A D | netdevice.h | 266 netdev_mc_count(struct net_device *ndev) in netdev_mc_count() argument 269 return (netdev_hw_addr_list_count(&ndev->mc)); in netdev_mc_count() 275 #define netdev_for_each_mc_addr(na, ndev) \ argument 276 netdev_hw_addr_list_for_each(na, &(ndev)->mc) 298 netdev_priv(const struct net_device *ndev) in netdev_priv() argument 301 return (__DECONST(void *, ndev->drv_priv)); in netdev_priv()
|
| /freebsd-13.1/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-13.1/sys/arm/arm/ |
| H A D | nexus.c | 199 struct nexus_device *ndev; in nexus_add_child() local 201 ndev = malloc(sizeof(struct nexus_device), M_NEXUSDEV, M_NOWAIT|M_ZERO); in nexus_add_child() 202 if (!ndev) in nexus_add_child() 204 resource_list_init(&ndev->nx_resources); in nexus_add_child() 209 device_set_ivars(child, ndev); in nexus_add_child()
|
| /freebsd-13.1/sys/ofed/include/rdma/ |
| H A D | ib_cache.h | 79 struct ifnet *ndev, 102 struct ifnet *ndev,
|
| /freebsd-13.1/sys/dev/mlx4/mlx4_ib/ |
| H A D | mlx4_ib_ah.c | 98 if (gid_attr.ndev) { in create_iboe_ah() 99 vlan_tag = rdma_vlan_dev_vlan_id(gid_attr.ndev); in create_iboe_ah() 100 memcpy(ah->av.eth.s_mac, IF_LLADDR(gid_attr.ndev), ETH_ALEN); in create_iboe_ah() 101 if_rele(gid_attr.ndev); in create_iboe_ah()
|
| /freebsd-13.1/sys/dev/xen/pcifront/ |
| H A D | pcifront.c | 98 device_t ndev; member 263 pdev->ndev = BUS_ADD_CHILD(nexus, 0, "xpcife", pdev->unit); in pcifront_connect() 264 if (!pdev->ndev) { in pcifront_connect() 269 device_set_ivars(pdev->ndev, pdev); in pcifront_connect() 277 device_probe_and_attach(pdev->ndev); in pcifront_connect()
|