/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_netdev.c | 333 napi->dev = ndev; in linuxkpi_netif_napi_add() 342 NAPI_LOCK(ndev); in linuxkpi_netif_napi_add() 355 ndev = napi->dev; in lkpi_netif_napi_del_locked() 369 ndev = napi->dev; in linuxkpi_netif_napi_del() 370 NAPI_LOCK(ndev); in linuxkpi_netif_napi_del() 381 memset(ndev, 0, sizeof(*ndev)); in linuxkpi_init_dummy_netdev() 401 ndev = malloc(sizeof(*ndev) + len, M_NETDEV, M_NOWAIT); in linuxkpi_alloc_netdev() 403 return (ndev); in linuxkpi_alloc_netdev() 408 strlcpy(ndev->name, name, sizeof(*ndev->name)); in linuxkpi_alloc_netdev() 414 return (ndev); in linuxkpi_alloc_netdev() [all …]
|
/freebsd/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/sys/compat/linuxkpi/common/include/linux/ |
H A D | netdevice.h | 304 netdev_mc_count(struct net_device *ndev) in netdev_mc_count() argument 340 ether_setup(struct net_device *ndev) in ether_setup() argument 364 netif_carrier_ok(struct net_device *ndev) in netif_carrier_ok() argument 371 netif_carrier_off(struct net_device *ndev) in netif_carrier_off() argument 377 netif_carrier_on(struct net_device *ndev) in netif_carrier_on() argument 392 netif_stop_queue(struct net_device *ndev) in netif_stop_queue() argument 398 netif_wake_queue(struct net_device *ndev) in netif_wake_queue() argument 415 register_netdev(struct net_device *ndev) in register_netdev() argument 420 error = register_netdevice(ndev); in register_netdev() 427 unregister_netdev(struct net_device *ndev) in unregister_netdev() argument [all …]
|
/freebsd/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 1152 if_t ndev = apc->ndev; in mana_cfg_vport_steering() local 1221 if_t ndev = apc->ndev; in mana_create_wq_obj() local 1273 if_t ndev = apc->ndev; in mana_destroy_wq_obj() local 1448 ndev = txq->ndev; in mana_poll_tx_cq() 1631 if_t ndev = rxq->ndev; in mana_rx_mbuf() local 1736 if_t ndev = rxq->ndev; in mana_process_rx_cqe() local 2359 rxq->ndev = ndev; in mana_create_rxq() 2823 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/sys/dev/ow/ |
H A D | ow.c | 241 lldev = device_get_parent(ndev); in ow_send_command() 536 ow_attach(device_t ndev) in ow_attach() argument 551 sc = device_get_softc(ndev); in ow_attach() 552 sc->dev = ndev; in ow_attach() 555 return bus_generic_attach(ndev); in ow_attach() 559 ow_detach(device_t ndev) in ow_detach() argument 566 sc = device_get_softc(ndev); in ow_detach() 571 bus_generic_detach(ndev); in ow_detach() 658 sc = device_get_softc(ndev); in ow_acquire_bus() 664 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/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 93 typeset ndev=${devarray[2]} 96 setup_hotspares "$keyword" "${sparedevs[@]} $ndev"
|
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 92 typeset ndev=${devarray[2]}
|
H A D | hotspare_replace_001_neg.ksh | 97 for ndev in $dev_nonexist ; do 98 log_mustnot $ZPOOL replace $TESTPOOL $odev $ndev
|
/freebsd/sys/riscv/riscv/ |
H A D | nexus.c | 195 struct nexus_device *ndev; in nexus_add_child() local 197 ndev = malloc(sizeof(struct nexus_device), M_NEXUSDEV, M_NOWAIT|M_ZERO); in nexus_add_child() 198 if (!ndev) in nexus_add_child() 200 resource_list_init(&ndev->nx_resources); in nexus_add_child() 204 device_set_ivars(child, ndev); in nexus_add_child() 232 struct nexus_device *ndev = DEVTONX(child); in nexus_alloc_resource() local 242 if (device_get_parent(child) != bus || ndev == NULL) in nexus_alloc_resource() 244 rle = resource_list_find(&ndev->nx_resources, type, *rid); in nexus_alloc_resource() 335 struct nexus_device *ndev = DEVTONX(child); in nexus_get_reslist() local 337 return (&ndev->nx_resources); in nexus_get_reslist()
|
H A D | plic.c | 99 int ndev; member 218 if (daf->ncells != 1 || daf->cells[0] > sc->ndev) in plic_map_intr() 266 if ((OF_getencprop(node, "riscv,ndev", &sc->ndev, in plic_attach() 267 sizeof(sc->ndev))) < 0) { in plic_attach() 273 if (sc->ndev >= PLIC_MAX_IRQS) { in plic_attach() 275 "Error: invalid ndev (%d)\n", sc->ndev); in plic_attach() 292 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/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() 541 struct nexus_device *ndev = DEVTONX(child); in nexus_get_reslist() local [all …]
|
/freebsd/sys/arm64/arm64/ |
H A D | nexus.c | 202 struct nexus_device *ndev; in nexus_add_child() local 204 ndev = malloc(sizeof(struct nexus_device), M_NEXUSDEV, M_NOWAIT|M_ZERO); in nexus_add_child() 205 if (!ndev) in nexus_add_child() 207 resource_list_init(&ndev->nx_resources); in nexus_add_child() 212 device_set_ivars(child, ndev); in nexus_add_child() 240 struct nexus_device *ndev = DEVTONX(child); in nexus_alloc_resource() local 250 if (device_get_parent(child) != bus || ndev == NULL) in nexus_alloc_resource() 252 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()
|
/freebsd/sbin/mount_fusefs/ |
H A D | mount_fusefs.c | 124 char ndev[128], fdstr[15]; in main() local 360 strcpy(ndev, _PATH_DEV); in main() 361 ndevbas = ndev + strlen(_PATH_DEV); in main() 363 sizeof(ndev) - strlen(_PATH_DEV)); in main() 372 dev = ndev; in main()
|
/freebsd/sys/arm/arm/ |
H A D | nexus.c | 208 struct nexus_device *ndev; in nexus_add_child() local 210 ndev = malloc(sizeof(struct nexus_device), M_NEXUSDEV, M_NOWAIT|M_ZERO); in nexus_add_child() 211 if (!ndev) in nexus_add_child() 213 resource_list_init(&ndev->nx_resources); in nexus_add_child() 217 device_set_ivars(child, ndev); in nexus_add_child()
|
/freebsd/sys/ofed/include/rdma/ |
H A D | ib_cache.h | 77 if_t ndev, 100 if_t ndev,
|
/freebsd/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()
|