| /freebsd-12.1/sys/ofed/drivers/infiniband/core/ |
| H A D | ib_roce_gid_mgmt.c | 100 gid_attr.ndev = ndev; in update_gid() 268 ndev = gid_attr.ndev; in roce_gid_update_addr_callback() 269 if (ndev == NULL) in roce_gid_update_addr_callback() 271 dev_put(ndev); in roce_gid_update_addr_callback() 283 if (entry->ndev == ndev && in roce_gid_update_addr_callback() 324 ndev = rdma_vlan_dev_real_dev(ndev); in roce_gid_queue_scan_event() 325 if (ndev != NULL) in roce_gid_queue_scan_event() 339 dev_hold(ndev); in roce_gid_queue_scan_event() 341 work->ndev = ndev; in roce_gid_queue_scan_event() 369 dev_hold(ndev); in roce_gid_delete_all_event() [all …]
|
| H A D | ib_cache.c | 296 attr->ndev != val->ndev) in find_gid() 415 if (table->data_vec[ix].attr.ndev == ndev) in ib_cache_gid_del_all_netdev_gids() 448 if (attr->ndev != NULL && in __ib_cache_gid_get() 451 dev_hold(attr->ndev); in __ib_cache_gid_get() 453 attr->ndev = NULL; in __ib_cache_gid_get() 497 struct ib_gid_attr gid_attr_val = {.ndev = ndev, .gid_type = gid_type}; in ib_cache_gid_find() 499 if (ndev) in ib_cache_gid_find() 517 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() 689 gid_attr.ndev = ndev; in ib_cache_gid_set_default_gid() [all …]
|
| H A D | core_priv.h | 107 struct net_device *ndev, 118 struct net_device *ndev); 119 void ib_cache_gid_del_all_by_netdev(struct net_device *ndev);
|
| H A D | ib_sysfs.c | 56 struct attribute_group ndev; member 342 if (!gid_attr->ndev) in print_ndev() 373 if (gid_attr.ndev) in _show_port_gid_attr() 374 dev_put(gid_attr.ndev); in _show_port_gid_attr() 670 if (g->ndev.attrs) { in ib_port_gid_attr_release() 674 kfree(g->ndev.attrs); in ib_port_gid_attr_release() 1040 if (!p->gid_attr_group->ndev.attrs) { in add_port() 1046 &p->gid_attr_group->ndev); in add_port() 1116 &p->gid_attr_group->ndev); in add_port() 1122 kfree(p->gid_attr_group->ndev.attrs); in add_port() [all …]
|
| H A D | ib_cma.c | 435 if (ndev) { in cma_igmp_send() 588 ndev = NULL; in cma_validate_port() 595 if (ndev) in cma_validate_port() 596 dev_put(ndev); in cma_validate_port() 1696 if (ndev) { in cma_leave_mc_groups() 2564 if (!ndev) { in cma_resolve_iboe_route() 2578 if (!ndev) { in cma_resolve_iboe_route() 2606 dev_put(ndev); in cma_resolve_iboe_route() 3839 if (ndev) in cma_ib_mc_handler() 4078 if (!ndev) { in cma_iboe_join_multicast() [all …]
|
| H A D | ib_sa_query.c | 653 struct net_device *ndev = NULL; in ib_init_ah_from_path() local 704 ndev = ib_get_ndev_from_path(rec); in ib_init_ah_from_path() 706 if ((ndev && ndev != resolved_dev) || in ib_init_ah_from_path() 714 if (ndev) in ib_init_ah_from_path() 715 dev_put(ndev); in ib_init_ah_from_path() 725 rec->gid_type, port_num, ndev, in ib_init_ah_from_path() 728 if (ndev) in ib_init_ah_from_path() 729 dev_put(ndev); in ib_init_ah_from_path() 737 if (ndev) in ib_init_ah_from_path() 738 dev_put(ndev); in ib_init_ah_from_path()
|
| /freebsd-12.1/sys/dev/ow/ |
| H A D | ow.c | 138 lldev = device_get_parent(ndev); in ow_send_command() 433 ow_attach(device_t ndev) in ow_attach() argument 448 sc = device_get_softc(ndev); in ow_attach() 449 sc->dev = ndev; in ow_attach() 452 return bus_generic_attach(ndev); in ow_attach() 456 ow_detach(device_t ndev) in ow_detach() argument 463 sc = device_get_softc(ndev); in ow_detach() 468 bus_generic_detach(ndev); in ow_detach() 569 sc = device_get_softc(ndev); in ow_acquire_bus() 575 device_get_nameunit(ndev), in ow_acquire_bus() [all …]
|
| H A D | own.h | 44 device_t ndev = device_get_parent(pdev); in own_send_command() local 46 return OWN_SEND_COMMAND(ndev, pdev, cmd); in own_send_command() 58 device_t ndev = device_get_parent(pdev); in own_acquire_bus() local 60 return OWN_ACQUIRE_BUS(ndev, pdev, how); in own_acquire_bus() 66 device_t ndev = device_get_parent(pdev); in own_release_bus() local 68 OWN_RELEASE_BUS(ndev, pdev); in own_release_bus() 74 device_t ndev = device_get_parent(pdev); in own_crc() local 76 return OWN_CRC(ndev, pdev, buffer, len); in own_crc()
|
| H A D | own_if.m | 48 device_t ndev; /* Network (bus) level device */ 57 device_t ndev; 66 device_t ndev; 74 device_t ndev;
|
| /freebsd-12.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-12.1/sys/riscv/riscv/ |
| H A D | nexus.c | 181 struct nexus_device *ndev; in nexus_add_child() local 184 if (!ndev) in nexus_add_child() 186 resource_list_init(&ndev->nx_resources); in nexus_add_child() 191 device_set_ivars(child, ndev); in nexus_add_child() 206 struct nexus_device *ndev = DEVTONX(child); in nexus_alloc_resource() local 219 if (device_get_parent(child) != bus || ndev == NULL) in nexus_alloc_resource() 221 rle = resource_list_find(&ndev->nx_resources, type, *rid); in nexus_alloc_resource() 334 struct nexus_device *ndev = DEVTONX(child); in nexus_get_reslist() local 336 return (&ndev->nx_resources); in nexus_get_reslist() 343 struct nexus_device *ndev = DEVTONX(child); in nexus_set_resource() local [all …]
|
| H A D | plic.c | 70 int ndev; member 162 if (daf->ncells != 1 || daf->cells[0] > sc->ndev) in plic_map_intr() 204 if ((OF_getencprop(node, "riscv,ndev", &sc->ndev, in plic_attach() 205 sizeof(sc->ndev))) < 0) { in plic_attach() 211 if (sc->ndev >= PLIC_MAX_IRQS) { in plic_attach() 213 "Error: invalid ndev (%d)\n", sc->ndev); in plic_attach() 230 for (irq = 1; irq <= sc->ndev; irq++) { in plic_attach()
|
| /freebsd-12.1/sys/mips/mips/ |
| H A D | nexus.c | 238 struct nexus_device *ndev = DEVTONX(dev); in nexus_print_all_resources() local 255 struct nexus_device *ndev; in nexus_add_child() local 258 if (!ndev) in nexus_add_child() 260 resource_list_init(&ndev->nx_resources); in nexus_add_child() 269 device_set_ivars(child, ndev); in nexus_add_child() 283 struct nexus_device *ndev = DEVTONX(child); in nexus_alloc_resource() local 351 struct nexus_device *ndev = DEVTONX(child); in nexus_get_reslist() local 353 return (&ndev->nx_resources); in nexus_get_reslist() 360 struct nexus_device *ndev = DEVTONX(child); in nexus_set_resource() local 379 struct nexus_device *ndev = DEVTONX(child); in nexus_get_resource() local [all …]
|
| /freebsd-12.1/sys/arm64/arm64/ |
| H A D | nexus.c | 197 struct nexus_device *ndev; in nexus_add_child() local 200 if (!ndev) in nexus_add_child() 202 resource_list_init(&ndev->nx_resources); in nexus_add_child() 207 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() 381 struct nexus_device *ndev = DEVTONX(child); in nexus_get_reslist() local 383 return (&ndev->nx_resources); in nexus_get_reslist() 390 struct nexus_device *ndev = DEVTONX(child); in nexus_set_resource() local [all …]
|
| /freebsd-12.1/sys/x86/x86/ |
| H A D | nexus.c | 302 struct nexus_device *ndev = DEVTONX(dev); in nexus_print_all_resources() local 334 struct nexus_device *ndev; in nexus_add_child() local 337 if (!ndev) in nexus_add_child() 339 resource_list_init(&ndev->nx_resources); in nexus_add_child() 344 device_set_ivars(child, ndev); in nexus_add_child() 376 struct nexus_device *ndev = DEVTONX(child); in nexus_alloc_resource() local 654 struct nexus_device *ndev = DEVTONX(child); in nexus_get_reslist() local 656 return (&ndev->nx_resources); in nexus_get_reslist() 663 struct nexus_device *ndev = DEVTONX(child); in nexus_set_resource() local 675 struct nexus_device *ndev = DEVTONX(child); in nexus_get_resource() local [all …]
|
| /freebsd-12.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-12.1/sys/arm/arm/ |
| H A D | nexus.c | 207 struct nexus_device *ndev; in nexus_add_child() local 209 ndev = malloc(sizeof(struct nexus_device), M_NEXUSDEV, M_NOWAIT|M_ZERO); in nexus_add_child() 210 if (!ndev) in nexus_add_child() 212 resource_list_init(&ndev->nx_resources); in nexus_add_child() 217 device_set_ivars(child, ndev); in nexus_add_child()
|
| /freebsd-12.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 dev_put(gid_attr.ndev); in create_iboe_ah()
|
| /freebsd-12.1/sys/ofed/include/rdma/ |
| H A D | ib_cache.h | 79 struct net_device *ndev, 102 struct net_device *ndev,
|
| /freebsd-12.1/sys/dev/nand/ |
| H A D | nandsim.c | 314 device_t nexus, ndev; in nandsim_start_ctrl() local 341 ndev = device_add_child(nexus, "nandsim", num); in nandsim_start_ctrl() 343 ndev = BUS_ADD_CHILD(nexus, 0, "nandsim", num); in nandsim_start_ctrl() 345 if (!ndev) in nandsim_start_ctrl() 349 ret = device_probe_and_attach(ndev); in nandsim_start_ctrl() 353 ctrls[num].sim_ctrl_dev = ndev; in nandsim_start_ctrl()
|
| /freebsd-12.1/sys/dev/mlx5/mlx5_ib/ |
| H A D | mlx5_ib_main.c | 121 NULL : ndev; in mlx5_netdev_event() 129 if ((upper == ndev || (!upper && ndev == ibdev->roce.netdev)) in mlx5_netdev_event() 159 if (ndev) in mlx5_ib_get_netdev() 160 dev_hold(ndev); in mlx5_ib_get_netdev() 163 return ndev; in mlx5_ib_get_netdev() 327 if (!ndev) in mlx5_query_port_roce() 330 if (netif_running(ndev) && netif_carrier_ok(ndev)) { in mlx5_query_port_roce() 337 dev_put(ndev); in mlx5_query_port_roce() 436 if (!attr.ndev) in mlx5_get_roce_udp_sport() 439 dev_put(attr.ndev); in mlx5_get_roce_udp_sport() [all …]
|
| /freebsd-12.1/sys/dev/xen/pcifront/ |
| H A D | pcifront.c | 98 device_t ndev; member 264 pdev->ndev = BUS_ADD_CHILD(nexus, 0, "xpcife", pdev->unit); in pcifront_connect() 265 if (!pdev->ndev) { in pcifront_connect() 270 device_set_ivars(pdev->ndev, pdev); in pcifront_connect() 278 device_probe_and_attach(pdev->ndev); in pcifront_connect()
|