| /f-stack/tools/ifconfig/ |
| H A D | af_nd6.c | 85 struct in6_ndireq nd; in setnd6flags() local 88 memset(&nd, 0, sizeof(nd)); in setnd6flags() 89 strlcpy(nd.ifname, ifr.ifr_name, sizeof(nd.ifname)); in setnd6flags() 91 error = ioctl(s, SIOCGIFINFO_IN6, &nd); in setnd6flags() 100 nd.ndi.flags &= ~(-d); in setnd6flags() 102 nd.ndi.flags |= d; in setnd6flags() 172 struct in6_ndireq nd; in nd6_status() local 177 memset(&nd, 0, sizeof(nd)); in nd6_status() 178 strlcpy(nd.ifname, ifr.ifr_name, sizeof(nd.ifname)); in nd6_status() 186 error = ioctl(s6, SIOCGIFINFO_IN6, &nd); in nd6_status() [all …]
|
| /f-stack/dpdk/lib/librte_cmdline/ |
| H A D | cmdline_parse_num.c | 70 switch (nd->type) { in check_res_size() 102 struct cmdline_token_num_data nd; in cmdline_parse_num() local 117 memcpy(&nd, &((struct cmdline_token_num *)tk)->num_data, sizeof(nd)); in cmdline_parse_num() 121 if (check_res_size(&nd, ressize) < 0) in cmdline_parse_num() 282 } else if (nd.type == RTE_UINT64) { in cmdline_parse_num() 291 if (nd.type == RTE_INT8 && in cmdline_parse_num() 295 } else if (nd.type == RTE_INT16 && in cmdline_parse_num() 299 } else if (nd.type == RTE_INT32 && in cmdline_parse_num() 303 } else if (nd.type == RTE_INT64 && in cmdline_parse_num() 322 struct cmdline_token_num_data nd; in cmdline_get_help_num() local [all …]
|
| /f-stack/freebsd/kern/ |
| H A D | vfs_syscalls.c | 1370 error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, in kern_mknodat() 1434 if (nd.ni_vp == nd.ni_dvp) in kern_mkfifoat() 1457 error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr); in kern_mkfifoat() 1585 if (nd.ni_dvp == nd.ni_vp) in kern_linkat_vp() 1607 nd.ni_dvp, vp, &nd.ni_cnd); in kern_linkat_vp() 1626 error = VOP_LINK(nd.ni_dvp, vp, &nd.ni_cnd); in kern_linkat_vp() 1704 if (nd.ni_vp == nd.ni_dvp) in kern_symlinkat() 1729 error = VOP_SYMLINK(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr, syspath); in kern_symlinkat() 1769 if (nd.ni_vp == nd.ni_dvp) in sys_undelete() 3782 error = VOP_MKDIR(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr); in kern_mkdirat() [all …]
|
| H A D | vfs_extattr.c | 83 struct nameidata nd; in sys_extattrctl() local 107 error = namei(&nd); in sys_extattrctl() 117 error = namei(&nd); in sys_extattrctl() 123 NDFREE(&nd, 0); in sys_extattrctl() 127 VOP_UNLOCK(nd.ni_vp); in sys_extattrctl() 306 error = namei(&nd); in kern_extattr_set_path() 314 vrele(nd.ni_vp); in kern_extattr_set_path() 471 error = namei(&nd); in kern_extattr_get_path() 479 vrele(nd.ni_vp); in kern_extattr_get_path() 609 vrele(nd.ni_vp); in kern_extattr_delete_path() [all …]
|
| H A D | vfs_acl.c | 377 struct nameidata nd; in kern___acl_get_path() local 381 error = namei(&nd); in kern___acl_get_path() 384 NDFREE(&nd, 0); in kern___acl_get_path() 415 struct nameidata nd; in kern___acl_set_path() local 419 error = namei(&nd); in kern___acl_set_path() 422 NDFREE(&nd, 0); in kern___acl_set_path() 491 struct nameidata nd; in kern___acl_delete_path() local 495 error = namei(&nd); in kern___acl_delete_path() 498 NDFREE(&nd, 0); in kern___acl_delete_path() 552 error = namei(&nd); in kern___acl_aclcheck_path() [all …]
|
| H A D | kern_ctf.c | 60 struct nameidata nd; local 103 NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, lf->pathname, td); 105 error = vn_open(&nd, &flags, 0, NULL); 108 NDFREE(&nd, NDF_ONLY_PNBUF); 114 if ((error = vn_rdwr(UIO_READ, nd.ni_vp, hdr, sizeof(*hdr), 136 if ((error = vn_rdwr(UIO_READ, nd.ni_vp, (caddr_t)shdr, nbytes, 158 if ((error = vn_rdwr(UIO_READ, nd.ni_vp, shstrtab, 177 if ((error = vn_rdwr(UIO_READ, nd.ni_vp, ctf_hdr, sizeof(ctf_hdr), 240 if ((error = vn_rdwr(UIO_READ, nd.ni_vp, raw == NULL ? ctftab : raw, 296 VOP_UNLOCK(nd.ni_vp); [all …]
|
| H A D | vfs_mountroot.c | 310 struct nameidata nd; in vfs_mountroot_shuffle() local 355 error = namei(&nd); in vfs_mountroot_shuffle() 361 error = namei(&nd); in vfs_mountroot_shuffle() 364 vp = nd.ni_vp; in vfs_mountroot_shuffle() 387 error = namei(&nd); in vfs_mountroot_shuffle() 389 vp = nd.ni_vp; in vfs_mountroot_shuffle() 722 struct nameidata nd; in parse_mount_dev_present() local 726 error = namei(&nd); in parse_mount_dev_present() 728 vput(nd.ni_vp); in parse_mount_dev_present() 943 struct nameidata nd; in vfs_mountroot_readconf() local [all …]
|
| H A D | kern_acct.c | 208 struct nameidata nd; in sys_acct() local 220 NDINIT(&nd, LOOKUP, NOFOLLOW | AUDITVNODE1, in sys_acct() 223 error = vn_open(&nd, &flags, 0, NULL); in sys_acct() 226 NDFREE(&nd, NDF_ONLY_PNBUF); in sys_acct() 228 error = mac_system_check_acct(td->td_ucred, nd.ni_vp); in sys_acct() 230 VOP_UNLOCK(nd.ni_vp); in sys_acct() 231 vn_close(nd.ni_vp, flags, td->td_ucred, td); in sys_acct() 235 VOP_UNLOCK(nd.ni_vp); in sys_acct() 236 if (nd.ni_vp->v_type != VREG) { in sys_acct() 237 vn_close(nd.ni_vp, flags, td->td_ucred, td); in sys_acct() [all …]
|
| H A D | link_elf_obj.c | 649 struct nameidata *nd; in link_elf_load_file() local 677 error = vn_open(nd, &flags, 0, NULL); in link_elf_load_file() 679 free(nd, M_TEMP); in link_elf_load_file() 682 NDFREE(nd, NDF_ONLY_PNBUF); in link_elf_load_file() 683 if (nd->ni_vp->v_type != VREG) { in link_elf_load_file() 1035 error = vn_rdwr(UIO_READ, nd->ni_vp, in link_elf_load_file() 1078 error = vn_rdwr(UIO_READ, nd->ni_vp, in link_elf_load_file() 1099 error = vn_rdwr(UIO_READ, nd->ni_vp, in link_elf_load_file() 1145 VOP_UNLOCK(nd->ni_vp); in link_elf_load_file() 1173 VOP_UNLOCK(nd->ni_vp); in link_elf_load_file() [all …]
|
| H A D | kern_linker.c | 1780 struct nameidata nd; in linker_lookup_file() local 1809 NDFREE(&nd, NDF_ONLY_PNBUF); in linker_lookup_file() 1810 type = nd.ni_vp->v_type; in linker_lookup_file() 1813 VOP_UNLOCK(nd.ni_vp); in linker_lookup_file() 1837 struct nameidata nd; in linker_hints_lookup() local 1860 NDFREE(&nd, NDF_ONLY_PNBUF); in linker_hints_lookup() 1861 if (nd.ni_vp->v_type != VREG) in linker_hints_lookup() 1879 VOP_UNLOCK(nd.ni_vp); in linker_hints_lookup() 1881 nd.ni_vp = NULL; in linker_hints_lookup() 1946 if (nd.ni_vp != NULL) { in linker_hints_lookup() [all …]
|
| /f-stack/tools/netstat/ |
| H A D | nhgrp.c | 247 nd->nh_buf = buf; in dump_nhgrp_sysctl() 248 nd->nh_count = nhg_count; in dump_nhgrp_sysctl() 249 nd->nh_map = nhg_map; in dump_nhgrp_sysctl() 255 struct nhops_dump nd; in print_nhgrp_sysctl() local 259 dump_nhgrp_sysctl(fibnum, af, &nd); in print_nhgrp_sysctl() 263 if (nd.nh_count > 0) { in print_nhgrp_sysctl() 272 rtm = nd.nh_map[i].rtm; in print_nhgrp_sysctl() 279 free(nd.nh_buf); in print_nhgrp_sysctl() 314 struct nhops_dump nd; in prepare_nh_map() local 321 rtm = nd.nh_map[i].rtm; in prepare_nh_map() [all …]
|
| H A D | nhops.c | 344 dump_nhops_sysctl(int fibnum, int af, struct nhops_dump *nd) in dump_nhops_sysctl() argument 395 nd->nh_buf = buf; in dump_nhops_sysctl() 396 nd->nh_count = nh_count; in dump_nhops_sysctl() 397 nd->nh_map = nh_map; in dump_nhops_sysctl() 403 struct nhops_dump nd; in print_nhops_sysctl() local 408 dump_nhops_sysctl(fibnum, af, &nd); in print_nhops_sysctl() 412 if (nd.nh_count > 0) { in print_nhops_sysctl() 413 nh = (struct nhop_external *)(nd.nh_map[0].rtm + 1); in print_nhops_sysctl() 431 for (size_t i = 0; i < nd.nh_count; i++) { in print_nhops_sysctl() 432 rtm = nd.nh_map[i].rtm; in print_nhops_sysctl() [all …]
|
| /f-stack/freebsd/amd64/amd64/ |
| H A D | mem.c | 192 int nd, error = 0; in memioctl_md() local 211 nd = imin(mo->mo_arg[0], mem_range_softc.mr_ndesc); in memioctl_md() 212 if (nd > 0) { in memioctl_md() 214 malloc(nd * sizeof(struct mem_range_desc), in memioctl_md() 216 error = mem_range_attr_get(md, &nd); in memioctl_md() 219 nd * sizeof(struct mem_range_desc)); in memioctl_md() 223 nd = mem_range_softc.mr_ndesc; in memioctl_md() 224 mo->mo_arg[0] = nd; in memioctl_md()
|
| /f-stack/freebsd/i386/i386/ |
| H A D | mem.c | 183 int nd, error = 0; in memioctl_md() local 202 nd = imin(mo->mo_arg[0], mem_range_softc.mr_ndesc); in memioctl_md() 203 if (nd > 0) { in memioctl_md() 205 malloc(nd * sizeof(struct mem_range_desc), in memioctl_md() 207 error = mem_range_attr_get(md, &nd); in memioctl_md() 210 nd * sizeof(struct mem_range_desc)); in memioctl_md() 214 nd = mem_range_softc.mr_ndesc; in memioctl_md() 215 mo->mo_arg[0] = nd; in memioctl_md()
|
| /f-stack/freebsd/contrib/device-tree/Bindings/net/dsa/ |
| H A D | mt7530.txt | 40 2. PHY of port 0 or port 4: PHY interfaces with an external MAC like 2nd GMAC 42 Note: On a MT7621 SOC with integrated switch: 2nd GMAC can only connected to 47 1. Port 5 is disabled and isolated: An external phy can interface to the 2nd 51 2. Port 5 is muxed to PHY of port 0/4: Port 0/4 interfaces with 2nd GMAC. 58 4. Port 5 is muxed to GMAC5 and interfaces with the 2nd GAMC as 2nd CPU port. 59 Currently a 2nd CPU port is not supported by DSA code. 62 1. normal: The PHY can only connect to 2nd GMAC but not to the switch 64 a ethernet port. But can't interface to the 2nd GMAC. 68 Driver tries to lookup the phy-handle of the 2nd GMAC of the master device. 134 Example 2: MT7621: Port 4 is WAN port: 2nd GMAC -> Port 5 -> PHY port 4. [all …]
|
| /f-stack/freebsd/contrib/device-tree/src/arm64/mediatek/ |
| H A D | mt8173-elm-hana.dtsi | 21 * Lenovo 100e Chromebook 2nd Gen (MTK) and Lenovo 300e Chromebook 2nd 36 * Lenovo 100e Chromebook 2nd Gen (MTK) and Lenovo 300e Chromebook 2nd
|
| /f-stack/freebsd/security/mac/ |
| H A D | mac_syscalls.c | 340 struct nameidata nd; in kern___mac_get_path() local 364 NDINIT(&nd, LOOKUP, LOCKLEAF | follow, UIO_USERSPACE, path_p, td); in kern___mac_get_path() 365 error = namei(&nd); in kern___mac_get_path() 370 mac_vnode_copy_label(nd.ni_vp->v_label, intlabel); in kern___mac_get_path() 373 NDFREE(&nd, 0); in kern___mac_get_path() 507 struct nameidata nd; in kern___mac_set_path() local 537 NDINIT(&nd, LOOKUP, LOCKLEAF | follow, UIO_USERSPACE, path_p, td); in kern___mac_set_path() 538 error = namei(&nd); in kern___mac_set_path() 540 error = vn_start_write(nd.ni_vp, &mp, V_WAIT | PCATCH); in kern___mac_set_path() 542 error = vn_setlabel(nd.ni_vp, intlabel, in kern___mac_set_path() [all …]
|
| /f-stack/freebsd/contrib/device-tree/src/arm64/renesas/ |
| H A D | salvator-xs.dtsi | 3 * Device Tree Source for the Salvator-X 2nd version board 11 model = "Renesas Salvator-X 2nd version board";
|
| H A D | r8a77961-salvator-xs.dts | 3 * Device Tree Source for the Salvator-X 2nd version board with R-Car M3-W+ 13 model = "Renesas Salvator-X 2nd version board based on r8a77961";
|
| H A D | r8a77960-salvator-xs.dts | 3 * Device Tree Source for the Salvator-X 2nd version board with R-Car M3-W 13 model = "Renesas Salvator-X 2nd version board based on r8a77960";
|
| H A D | r8a77965-salvator-xs.dts | 3 * Device Tree Source for the Salvator-X 2nd version board with R-Car M3-N 13 model = "Renesas Salvator-X 2nd version board based on r8a77965";
|
| /f-stack/freebsd/contrib/device-tree/Bindings/interrupt-controller/ |
| H A D | brcm,bcm7120-l2-intc.txt | 13 or if they will output an interrupt signal at this 2nd level interrupt 24 2nd level interrupt line Outputs for the parent controller (e.g: ARM GIC) 62 are wired to this 2nd level interrupt controller, and how they match their 73 respective interrupt outputs bypass this 2nd level interrupt controller
|
| /f-stack/freebsd/security/mac_veriexec/ |
| H A D | mac_veriexec.c | 650 struct nameidata nd; in mac_veriexec_syscall() local 702 NDINIT(&nd, LOOKUP, in mac_veriexec_syscall() 705 error = namei(&nd); in mac_veriexec_syscall() 708 NDFREE(&nd, NDF_ONLY_PNBUF); in mac_veriexec_syscall() 711 error = mac_veriexec_check_vp(td->td_ucred, nd.ni_vp, VVERIFY); in mac_veriexec_syscall() 712 vput(nd.ni_vp); in mac_veriexec_syscall()
|
| /f-stack/freebsd/contrib/device-tree/Bindings/mailbox/ |
| H A D | brcm,iproc-flexrm-mbox.txt | 23 The 2nd cell contains MSI completion threshold. This is the 27 The 3nd cell contains MSI timer value representing time for 29 where N is the value specified by 2nd cell above. If FlexRM
|
| /f-stack/freebsd/contrib/device-tree/Bindings/dma/ |
| H A D | sirfsoc-dma.txt | 28 channel request line is 9 of the 2nd dma controller, while write channel uses 29 4 of the 2nd dma controller; spi1 read channel request line is 12 of the 1st
|