/freebsd-current/tests/sys/cddl/zfs/tests/hotspare/ |
H A D | hotspare_add_002_pos.ksh | 73 cleanup_devices $ndev 75 log_must $ZPOOL add "$TESTPOOL" spare $ndev 76 log_must $ZPOOL remove "$TESTPOOL" $ndev 78 cleanup_devices $ndev 80 log_must $ZPOOL add -f "$TESTPOOL" spare $ndev 81 log_must $ZPOOL remove "$TESTPOOL" $ndev 91 typeset ndev=${devarray[2]}
|
H A D | hotspare_detach_004_pos.ksh | 80 log_must $ZPOOL replace $TESTPOOL $dev $ndev 84 log_must check_hotspare_state "$TESTPOOL" "$ndev" "INUSE" 85 log_must $ZPOOL detach $TESTPOOL $ndev 88 log_assert "'zpool replace <pool> <vdev> <ndev>' against a hot spare device that have been activated should successful while the another dev is a available hot spare." 93 typeset ndev=${devarray[2]} 96 setup_hotspares "$keyword" "${sparedevs[@]} $ndev" 103 log_pass "'zpool replace <pool> <vdev> <ndev>' against a hot spare device that have been activated should successful while the another dev is a available hot spare."
|
H A D | hotspare_detach_003_pos.ksh | 73 log_must $ZPOOL replace -f $TESTPOOL $odev $ndev 81 log_must iscontained "$TESTPOOL" "$ndev" 83 log_must $ZPOOL replace $TESTPOOL $ndev $odev 87 log_assert "'zpool replace <pool> <vdev> <ndev>' against a functioning device that have spared should complete and the hot spare should return to available." 92 typeset ndev=${devarray[2]} 102 log_pass "'zpool replace <pool> <vdev> <ndev>' against a functioning device that have spared successful and the hot spare return to available."
|
H A D | hotspare_replace_001_neg.ksh | 35 # 'zpool replace <pool> <odev> <ndev>...' should return fail if 83 log_assert "'zpool replace <pool> <odev> <ndev>' should fail with inapplicable scenarios." 97 for ndev in $dev_nonexist ; do 98 log_mustnot $ZPOOL replace $TESTPOOL $odev $ndev 107 log_pass "'zpool replace <pool> <odev> <ndev>' fail with inapplicable scenarios."
|
/freebsd-current/sys/compat/linuxkpi/common/src/ |
H A D | linux_netdev.c | 329 linuxkpi_netif_napi_add(struct net_device *ndev, struct napi_struct *napi, argument 333 napi->dev = ndev; 342 NAPI_LOCK(ndev); 343 TAILQ_INSERT_TAIL(&ndev->napi_head, napi, entry); 344 NAPI_UNLOCK(ndev); 346 /* Anything else to do on the ndev? */ 353 struct net_device *ndev; local 355 ndev = napi->dev; 356 NAPI_LOCK_ASSERT(ndev); 359 TAILQ_REMOVE(&ndev 367 struct net_device *ndev; local 378 linuxkpi_init_dummy_netdev(struct net_device *ndev) argument 399 struct net_device *ndev; local 418 linuxkpi_free_netdev(struct net_device *ndev) argument [all...] |
/freebsd-current/sys/dev/ow/ |
H A D | own.h | 40 device_t ndev = device_get_parent(pdev); local 42 return OWN_SEND_COMMAND(ndev, pdev, cmd); 54 device_t ndev = device_get_parent(pdev); local 56 return OWN_ACQUIRE_BUS(ndev, pdev, how); 62 device_t ndev = device_get_parent(pdev); local 64 OWN_RELEASE_BUS(ndev, pdev); 70 device_t ndev = device_get_parent(pdev); local 72 return OWN_CRC(ndev, pdev, buffer, len);
|
H A D | ow.c | 46 * ndev - network / transport device (this module) 65 static int ow_acquire_bus(device_t ndev, device_t pdev, int how); 66 static void ow_release_bus(device_t ndev, device_t pdev); 235 ow_send_command(device_t ndev, device_t pdev, struct ow_cmd *cmd) argument 241 lldev = device_get_parent(ndev); 250 device_printf(ndev, "Reset said no device on bus?.\n"); 253 device_printf(ndev, "Reset said the device wasn't there.\n"); 257 device_printf(ndev, "Reset discovered bus wired wrong.\n"); 382 ow_crc(device_t ndev, device_t pdev, uint8_t *buffer, size_t len) argument 536 ow_attach(device_t ndev) argument 559 ow_detach(device_t ndev) argument 630 ow_print_child(device_t ndev, device_t pdev) argument 645 ow_probe_nomatch(device_t ndev, device_t pdev) argument 654 ow_acquire_bus(device_t ndev, device_t pdev, int how) argument 680 ow_release_bus(device_t ndev, device_t pdev) argument [all...] |
/freebsd-current/sys/ofed/drivers/infiniband/core/ |
H A D | ib_roce_gid_mgmt.c | 57 if_t ndev; member in struct:roce_netdev_event_work 92 u8 port, union ib_gid *gid, if_t ndev) 99 gid_attr.ndev = ndev; 122 if_t ndev = (if_t )cookie; local 125 return (ndev == idev); 158 if_t ndev; member in struct:ipx_entry 177 entry->ndev = ifa->ifa_ifp; 198 entry->ndev = ifa->ifa_ifp; 212 if_t ndev, voi 91 update_gid(enum gid_op_type gid_op, struct ib_device *ib_dev, u8 port, union ib_gid *gid, if_t ndev) argument 211 roce_gid_update_addr_callback(struct ib_device *device, u8 port, if_t ndev, void *cookie) argument 330 roce_gid_queue_scan_event(if_t ndev) argument 373 roce_gid_delete_all_event(if_t ndev) argument 395 if_t ndev = netdev_notifier_info_to_ifp(ptr); local [all...] |
H A D | ib_cache.c | 206 old_net_dev = table->data_vec[ix].attr.ndev; 208 if (old_net_dev && old_net_dev != attr->ndev) 224 if (table->data_vec[ix].attr.ndev && 225 table->data_vec[ix].attr.ndev != old_net_dev) 226 dev_hold(table->data_vec[ix].attr.ndev); 295 attr->ndev != val->ndev) 401 if_t ndev) 414 if (table->data_vec[ix].attr.ndev == ndev) 400 ib_cache_gid_del_all_netdev_gids(struct ib_device *ib_dev, u8 port, if_t ndev) argument 488 ib_cache_gid_find(struct ib_device *ib_dev, const union ib_gid *gid, enum ib_gid_type gid_type, if_t ndev, u8 *port, u16 *index) argument 505 ib_find_cached_gid_by_port(struct ib_device *ib_dev, const union ib_gid *gid, enum ib_gid_type gid_type, u8 port, if_t ndev, u16 *index) argument 672 ib_cache_gid_set_default_gid(struct ib_device *ib_dev, u8 port, if_t ndev, unsigned long gid_type_mask, enum ib_cache_gid_default_mode mode) argument 897 ib_find_cached_gid(struct ib_device *device, const union ib_gid *gid, enum ib_gid_type gid_type, if_t ndev, u8 *port_num, u16 *index) argument [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_sysfs.c | 55 struct attribute_group ndev; member in struct:gid_attr_group 369 if (!gid_attr->ndev) 372 return sprintf(buf, "%s\n", if_name(gid_attr->ndev)); 400 if (gid_attr.ndev) 401 dev_put(gid_attr.ndev); 697 if (g->ndev.attrs) { 698 for (i = 0; (a = g->ndev.attrs[i]); ++i) 701 kfree(g->ndev.attrs); 1088 p->gid_attr_group->ndev.name = "ndevs"; 1089 p->gid_attr_group->ndev [all...] |
H A D | ib_sa_query.c | 653 if_t ndev = NULL; local 700 ndev = ib_get_ndev_from_path(rec); 701 if ((ndev && ndev != resolved_dev) || 708 if (ndev) 709 dev_put(ndev); 719 rec->gid_type, port_num, ndev, 722 if (ndev) 723 dev_put(ndev); 731 if (ndev) [all...] |
/freebsd-current/sys/compat/linuxkpi/common/include/linux/ |
H A D | netdevice.h | 304 netdev_mc_count(struct net_device *ndev) argument 307 return (netdev_hw_addr_list_count(&ndev->mc)); 313 #define netdev_for_each_mc_addr(na, ndev) \ 314 netdev_hw_addr_list_for_each(na, &(ndev)->mc) 340 ether_setup(struct net_device *ndev) argument 347 dev_net_set(struct net_device *ndev, void *p) argument 354 dev_set_threaded(struct net_device *ndev, bool threaded) argument 364 netif_carrier_ok(struct net_device *ndev) argument 371 netif_carrier_off(struct net_device *ndev) argument 377 netif_carrier_on(struct net_device *ndev) argument 385 netif_queue_stopped(struct net_device *ndev) argument 392 netif_stop_queue(struct net_device *ndev) argument 398 netif_wake_queue(struct net_device *ndev) argument 406 register_netdevice(struct net_device *ndev) argument 415 register_netdev(struct net_device *ndev) argument 427 unregister_netdev(struct net_device *ndev) argument 433 unregister_netdevice(struct net_device *ndev) argument 464 netdev_priv(const struct net_device *ndev) argument [all...] |
/freebsd-current/sys/dev/mana/ |
H A D | mana_en.c | 492 if_t ndev = txq->ndev; local 494 struct mana_port_context *apc = if_getsoftc(ndev); 514 while ((mbuf = drbr_peek(ndev, txq->txq_br)) != NULL) { 516 (if_getdrvflags(ndev) & MANA_TXQ_FULL) != IFF_DRV_RUNNING) { 517 drbr_putback(ndev, txq->txq_br, mbuf); 523 if_setdrvflagbits(apc->ndev, IFF_DRV_OACTIVE, 0); 536 drbr_putback(ndev, txq->txq_br, mbuf); 557 drbr_advance(ndev, txq->txq_br); 629 if_printf(ndev, "Faile 669 if_t ndev = txq->ndev; local 1152 if_t ndev = apc->ndev; local 1221 if_t ndev = apc->ndev; local 1273 if_t ndev = apc->ndev; local 1438 if_t ndev; local 1631 if_t ndev = rxq->ndev; local 1736 if_t ndev = rxq->ndev; local 2338 mana_create_rxq(struct mana_port_context *apc, uint32_t rxq_idx, struct mana_eq *eq, if_t ndev) argument 2499 mana_add_rx_queues(struct mana_port_context *apc, if_t ndev) argument 2589 mana_init_port(if_t ndev) argument 2627 mana_alloc_queues(if_t ndev) argument 2696 mana_dealloc_queues(if_t ndev) argument 2774 mana_detach(if_t ndev) argument 2804 if_t ndev; local 2964 if_t ndev; local [all...] |
H A D | mana.h | 158 if_t ndev; member in struct:mana_txq 423 if_t ndev; member in struct:mana_rxq 475 if_t ndev; member in struct:mana_port_context 542 int mana_alloc_queues(if_t ndev); 543 int mana_attach(if_t ndev); 544 int mana_detach(if_t ndev);
|
/freebsd-current/sys/ofed/include/rdma/ |
H A D | ib_cache.h | 66 * @ndev: In RoCE, the net device of the device. NULL means ignore. 77 if_t ndev, 89 * @ndev: In RoCE, the net device of the device. Null means ignore. 100 if_t ndev,
|
/freebsd-current/sys/riscv/riscv/ |
H A D | nexus.c | 195 struct nexus_device *ndev; local 197 ndev = malloc(sizeof(struct nexus_device), M_NEXUSDEV, M_NOWAIT|M_ZERO); 198 if (!ndev) 200 resource_list_init(&ndev->nx_resources); 204 device_set_ivars(child, ndev); 232 struct nexus_device *ndev = DEVTONX(child); local 242 if (device_get_parent(child) != bus || ndev == NULL) 244 rle = resource_list_find(&ndev->nx_resources, type, *rid); 335 struct nexus_device *ndev = DEVTONX(child); local 337 return (&ndev [all...] |
H A D | plic.c | 99 int ndev; member in struct:plic_softc 218 if (daf->ncells != 1 || daf->cells[0] > sc->ndev) 266 if ((OF_getencprop(node, "riscv,ndev", &sc->ndev, 267 sizeof(sc->ndev))) < 0) { 273 if (sc->ndev >= PLIC_MAX_IRQS) { 275 "Error: invalid ndev (%d)\n", sc->ndev); 292 for (irq = 1; irq <= sc->ndev; irq++) {
|
H A D | aplic.c | 73 int ndev; member in struct:aplic_softc 285 if (daf->ncells != 2 || daf->cells[0] > sc->ndev) { 330 if ((OF_getencprop(node, "riscv,num-sources", &sc->ndev, 331 sizeof(sc->ndev))) < 0) { 336 if (sc->ndev > APLIC_MAX_IRQS) { 337 device_printf(dev, "Error: invalid ndev (%d)\n", sc->ndev); 358 for (irq = 1; irq <= sc->ndev; irq++) {
|
/freebsd-current/sys/arm64/arm64/ |
H A D | nexus.c | 202 struct nexus_device *ndev; local 204 ndev = malloc(sizeof(struct nexus_device), M_NEXUSDEV, M_NOWAIT|M_ZERO); 205 if (!ndev) 207 resource_list_init(&ndev->nx_resources); 212 device_set_ivars(child, ndev); 240 struct nexus_device *ndev = DEVTONX(child); local 250 if (device_get_parent(child) != bus || ndev == NULL) 252 rle = resource_list_find(&ndev->nx_resources, type, *rid); 381 struct nexus_device *ndev = DEVTONX(child); local 383 return (&ndev [all...] |
/freebsd-current/sys/x86/x86/ |
H A D | nexus.c | 281 struct nexus_device *ndev = DEVTONX(dev); local 282 struct resource_list *rl = &ndev->nx_resources; 313 struct nexus_device *ndev; local 315 ndev = malloc(sizeof(struct nexus_device), M_NEXUSDEV, M_NOWAIT|M_ZERO); 316 if (!ndev) 318 resource_list_init(&ndev->nx_resources); 323 device_set_ivars(child, ndev); 354 struct nexus_device *ndev = DEVTONX(child); local 364 if (device_get_parent(child) != bus || ndev == NULL) 366 rle = resource_list_find(&ndev 554 struct nexus_device *ndev = DEVTONX(child); local [all...] |
/freebsd-current/sbin/mount_fusefs/ |
H A D | mount_fusefs.c | 124 char ndev[128], fdstr[15]; local 360 strcpy(ndev, _PATH_DEV); 361 ndevbas = ndev + strlen(_PATH_DEV); 363 sizeof(ndev) - strlen(_PATH_DEV)); 372 dev = ndev;
|
/freebsd-current/sys/arm/arm/ |
H A D | nexus.c | 208 struct nexus_device *ndev; local 210 ndev = malloc(sizeof(struct nexus_device), M_NEXUSDEV, M_NOWAIT|M_ZERO); 211 if (!ndev) 213 resource_list_init(&ndev->nx_resources); 217 device_set_ivars(child, ndev);
|
/freebsd-current/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_ah.c | 99 if (gid_attr.ndev) { 100 vlan_tag = rdma_vlan_dev_vlan_id(gid_attr.ndev); 101 memcpy(ah->av.eth.s_mac, if_getlladdr(gid_attr.ndev), ETH_ALEN); 102 if_rele(gid_attr.ndev);
|
/freebsd-current/lib/libmixer/ |
H A D | mixer.h | 80 int ndev; /* number of devices */ member in struct:mixer
|