Home
last modified time | relevance | path

Searched refs:ndev (Results 1 – 25 of 63) sorted by relevance

123

/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_netdev.c329 linuxkpi_netif_napi_add(struct net_device *ndev, struct napi_struct *napi, in linuxkpi_netif_napi_add() argument
333 napi->dev = ndev; in linuxkpi_netif_napi_add()
342 NAPI_LOCK(ndev); in linuxkpi_netif_napi_add()
343 TAILQ_INSERT_TAIL(&ndev->napi_head, napi, entry); in linuxkpi_netif_napi_add()
344 NAPI_UNLOCK(ndev); in linuxkpi_netif_napi_add()
353 struct net_device *ndev; in lkpi_netif_napi_del_locked() local
355 ndev = napi->dev; in lkpi_netif_napi_del_locked()
356 NAPI_LOCK_ASSERT(ndev); in lkpi_netif_napi_del_locked()
359 TAILQ_REMOVE(&ndev->napi_head, napi, entry); in lkpi_netif_napi_del_locked()
360 while (taskqueue_cancel(ndev->napi_tq, &napi->napi_task, NULL) != 0) in lkpi_netif_napi_del_locked()
[all …]
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_roce_gid_mgmt.c57 if_t ndev; member
92 u8 port, union ib_gid *gid, if_t ndev) in update_gid() argument
99 gid_attr.ndev = ndev; in update_gid()
122 if_t ndev = (if_t )cookie; in roce_gid_match_netdev() local
125 return (ndev == idev); in roce_gid_match_netdev()
158 if_t ndev; member
177 entry->ndev = ifa->ifa_ifp; in roce_gid_update_addr_ifa4_cb()
198 entry->ndev = ifa->ifa_ifp; in roce_gid_update_addr_ifa6_cb()
212 if_t ndev, void *cookie) in roce_gid_update_addr_callback() argument
230 default_gids = roce_gid_enum_netdev_default(device, port, ndev); in roce_gid_update_addr_callback()
[all …]
H A Dib_cache.c206 old_net_dev = table->data_vec[ix].attr.ndev; in write_gid()
208 if (old_net_dev && old_net_dev != attr->ndev) in write_gid()
224 if (table->data_vec[ix].attr.ndev && in write_gid()
225 table->data_vec[ix].attr.ndev != old_net_dev) in write_gid()
226 dev_hold(table->data_vec[ix].attr.ndev); in write_gid()
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()
447 if (attr->ndev != NULL && in __ib_cache_gid_get()
448 (if_getflags(attr->ndev) & IFF_DYING) == 0 && in __ib_cache_gid_get()
[all …]
H A Dib_sysfs.c55 struct attribute_group ndev; member
369 if (!gid_attr->ndev) in print_ndev()
372 return sprintf(buf, "%s\n", if_name(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()
698 for (i = 0; (a = g->ndev.attrs[i]); ++i) in ib_port_gid_attr_release()
701 kfree(g->ndev.attrs); in ib_port_gid_attr_release()
1088 p->gid_attr_group->ndev.name = "ndevs"; in add_port()
1089 p->gid_attr_group->ndev.attrs = alloc_group_attrs(show_port_gid_attr_ndev, in add_port()
[all …]
H A Dcore_priv.h108 if_t ndev,
119 if_t ndev);
120 void ib_cache_gid_del_all_by_netdev(if_t ndev);
H A Dib_cma.c462 static int cma_igmp_send(if_t ndev, const union ib_gid *mgid, bool join) in cma_igmp_send() argument
466 if (ndev) { in cma_igmp_send()
471 CURVNET_SET_QUIET(if_getvnet(ndev)); in cma_igmp_send()
473 retval = -if_addmulti(ndev, &addr._sockaddr, NULL); in cma_igmp_send()
475 retval = -if_delmulti(ndev, &addr._sockaddr); in cma_igmp_send()
604 if_t ndev; in cma_validate_port() local
614 ndev = dev_get_by_index(dev_addr->net, dev_addr->bound_dev_if); in cma_validate_port()
616 ndev = NULL; in cma_validate_port()
621 ndev, NULL); in cma_validate_port()
623 if (ndev) in cma_validate_port()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dnetdevice.h313 netdev_mc_count(struct net_device *ndev) in netdev_mc_count() argument
316 return (netdev_hw_addr_list_count(&ndev->mc)); in netdev_mc_count()
322 #define netdev_for_each_mc_addr(na, ndev) \ argument
323 netdev_hw_addr_list_for_each(na, &(ndev)->mc)
349 ether_setup(struct net_device *ndev) in ether_setup() argument
356 dev_net_set(struct net_device *ndev, void *p) in dev_net_set() argument
363 dev_set_threaded(struct net_device *ndev, bool threaded) in dev_set_threaded() 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
[all …]
/freebsd/sys/dev/mana/
H A Dmana_en.c492 if_t ndev = txq->ndev; in mana_xmit() local
494 struct mana_port_context *apc = if_getsoftc(ndev); in mana_xmit()
514 while ((mbuf = drbr_peek(ndev, txq->txq_br)) != NULL) { in mana_xmit()
516 (if_getdrvflags(ndev) & MANA_TXQ_FULL) != IFF_DRV_RUNNING) { in mana_xmit()
517 drbr_putback(ndev, txq->txq_br, mbuf); in mana_xmit()
523 if_setdrvflagbits(apc->ndev, IFF_DRV_OACTIVE, 0); in mana_xmit()
536 drbr_putback(ndev, txq->txq_br, mbuf); in mana_xmit()
557 drbr_advance(ndev, txq->txq_br); in mana_xmit()
629 if_printf(ndev, "Failed to post TX OOB: %d\n", err); in mana_xmit()
633 drbr_advance(ndev, txq->txq_br); in mana_xmit()
[all …]
H A Dmana.h158 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 Dow.c65 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) in ow_send_command() argument
241 lldev = device_get_parent(ndev); in ow_send_command()
250 device_printf(ndev, "Reset said no device on bus?.\n"); in ow_send_command()
253 device_printf(ndev, "Reset said the device wasn't there.\n"); in ow_send_command()
257 device_printf(ndev, "Reset discovered bus wired wrong.\n"); in ow_send_command()
388 ow_crc(device_t ndev, device_t pdev, uint8_t *buffer, size_t len) in ow_crc() argument
542 ow_attach(device_t ndev) in ow_attach() argument
557 sc = device_get_softc(ndev); in ow_attach()
[all …]
H A Down.h40 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 Down_if.m46 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 Dhotspare_add_002_pos.ksh73 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 Dhotspare_detach_004_pos.ksh80 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 Dhotspare_detach_003_pos.ksh73 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 Dhotspare_replace_001_neg.ksh97 for ndev in $dev_nonexist ; do
98 log_mustnot $ZPOOL replace $TESTPOOL $odev $ndev
/freebsd/sys/riscv/riscv/
H A Dnexus.c195 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 Dplic.c102 int ndev; member
236 if (irq > sc->ndev) { in plic_map_intr()
238 daf->cells[0], sc->ndev); in plic_map_intr()
312 if ((OF_getencprop(node, "riscv,ndev", &sc->ndev, in plic_attach()
313 sizeof(sc->ndev))) < 0) { in plic_attach()
319 if (sc->ndev >= PLIC_MAX_IRQS) { in plic_attach()
321 "Error: invalid ndev (%d)\n", sc->ndev); in plic_attach()
338 for (irq = 1; irq <= sc->ndev; irq++) { in plic_attach()
H A Daplic.c73 int ndev; member
287 if (daf->ncells != 2 || daf->cells[0] > sc->ndev) { in aplic_map_intr()
333 if ((OF_getencprop(node, "riscv,num-sources", &sc->ndev, in aplic_setup_direct_mode()
334 sizeof(sc->ndev))) < 0) { in aplic_setup_direct_mode()
339 if (sc->ndev > APLIC_MAX_IRQS) { in aplic_setup_direct_mode()
340 device_printf(dev, "Error: invalid ndev (%d)\n", sc->ndev); in aplic_setup_direct_mode()
361 for (irq = 1; irq <= sc->ndev; irq++) { in aplic_setup_direct_mode()
/freebsd/sys/arm64/arm64/
H A Dnexus.c201 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()
376 struct nexus_device *ndev = DEVTONX(child); in nexus_get_reslist() local
378 return (&ndev->nx_resources); in nexus_get_reslist()
/freebsd/sys/x86/x86/
H A Dnexus.c281 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
315 ndev = malloc(sizeof(struct nexus_device), M_NEXUSDEV, M_NOWAIT|M_ZERO); in nexus_add_child()
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()
[all …]
/freebsd/sbin/mount_fusefs/
H A Dmount_fusefs.c124 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 Dnexus.c208 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 Dib_cache.h77 if_t ndev,
100 if_t ndev,
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_ah.c99 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()

123