path 507 arch/alpha/kernel/osf_sys.c SYSCALL_DEFINE4(osf_mount, unsigned long, typenr, const char __user *, path, path 514 arch/alpha/kernel/osf_sys.c retval = osf_ufs_mount(path, data, flag); path 517 arch/alpha/kernel/osf_sys.c retval = osf_cdfs_mount(path, data, flag); path 520 arch/alpha/kernel/osf_sys.c retval = osf_procfs_mount(path, data, flag); path 604 arch/alpha/kernel/osf_sys.c char __user *path; path 615 arch/alpha/kernel/osf_sys.c char __user *path; path 630 arch/alpha/kernel/osf_sys.c char __user *path; path 104 arch/arc/plat-hsdk/platform.c static int __init hsdk_tweak_node_coherency(const char *path, bool coherent) path 111 arch/arc/plat-hsdk/platform.c node = fdt_path_offset(fdt, path); path 136 arch/arc/plat-hsdk/platform.c pr_err("failed to tweak %s to %scoherent\n", path, coherent ? "" : "non"); path 31 arch/c6x/include/asm/syscalls.h extern long sys_truncate64_c6x(const char __user *path, path 2133 arch/ia64/kernel/perfmon.c struct path path; path 2152 arch/ia64/kernel/perfmon.c path.dentry = d_alloc(pfmfs_mnt->mnt_root, &this); path 2153 arch/ia64/kernel/perfmon.c if (!path.dentry) { path 2157 arch/ia64/kernel/perfmon.c path.mnt = mntget(pfmfs_mnt); path 2159 arch/ia64/kernel/perfmon.c d_add(path.dentry, inode); path 2161 arch/ia64/kernel/perfmon.c file = alloc_file(&path, FMODE_READ, &pfm_file_ops); path 2163 arch/ia64/kernel/perfmon.c path_put(&path); path 2586 arch/ia64/kernel/perfmon.c struct path path; path 2644 arch/ia64/kernel/perfmon.c path = filp->f_path; path 2646 arch/ia64/kernel/perfmon.c path_put(&path); path 271 arch/m68k/include/asm/oplib.h extern int prom_pathtoinode(char *path); path 160 arch/mips/generic/yamon-dt.c char mode_var_name[9], path[20], parity; path 211 arch/mips/generic/yamon-dt.c WARN_ON(snprintf(path, sizeof(path), "serial%u:%u%c%u%s", path 213 arch/mips/generic/yamon-dt.c hw_flow ? "r" : "") >= sizeof(path)); path 225 arch/mips/generic/yamon-dt.c err = fdt_setprop_string(fdt, chosen_off, "stdout-path", path); path 53 arch/mips/kernel/linux32.c SYSCALL_DEFINE4(32_truncate64, const char __user *, path, path 56 arch/mips/kernel/linux32.c return ksys_truncate(path, merge_64(a2, a3)); path 108 arch/mips/vdso/genvdso.c static void *map_vdso(const char *path, size_t *_size) path 115 arch/mips/vdso/genvdso.c fd = open(path, O_RDWR); path 118 arch/mips/vdso/genvdso.c path, strerror(errno)); path 124 arch/mips/vdso/genvdso.c path, strerror(errno)); path 132 arch/mips/vdso/genvdso.c path, strerror(errno)); path 141 arch/mips/vdso/genvdso.c path); path 152 arch/mips/vdso/genvdso.c program_name, path); path 163 arch/mips/vdso/genvdso.c program_name, path); path 170 arch/mips/vdso/genvdso.c program_name, path); path 175 arch/mips/vdso/genvdso.c program_name, path); path 183 arch/mips/vdso/genvdso.c static bool patch_vdso(const char *path, void *vdso) path 186 arch/mips/vdso/genvdso.c return patch_vdso64(path, vdso); path 188 arch/mips/vdso/genvdso.c return patch_vdso32(path, vdso); path 191 arch/mips/vdso/genvdso.c static bool get_symbols(const char *path, void *vdso) path 194 arch/mips/vdso/genvdso.c return get_symbols64(path, vdso); path 196 arch/mips/vdso/genvdso.c return get_symbols32(path, vdso); path 7 arch/mips/vdso/genvdso.h static inline bool FUNC(patch_vdso)(const char *path, void *vdso) path 36 arch/mips/vdso/genvdso.h program_name, path); path 44 arch/mips/vdso/genvdso.h program_name, path); path 58 arch/mips/vdso/genvdso.h static inline bool FUNC(get_symbols)(const char *path, void *vdso) path 82 arch/mips/vdso/genvdso.h path); path 126 arch/mips/vdso/genvdso.h program_name, path, vdso_symbols[i].name); path 109 arch/parisc/include/asm/hardware.h struct hardware_path *path); path 117 arch/parisc/include/asm/hardware.h extern char *print_pa_hwpath(struct parisc_device *dev, char *path); path 118 arch/parisc/include/asm/hardware.h extern char *print_pci_hwpath(struct pci_dev *dev, char *path); path 119 arch/parisc/include/asm/hardware.h extern void get_pci_node_path(struct pci_dev *dev, struct hardware_path *path); path 122 arch/parisc/include/asm/hardware.h extern void device_to_hwpath(struct device *dev, struct hardware_path *path); path 623 arch/parisc/include/uapi/asm/pdc.h struct hardware_path path; path 310 arch/parisc/kernel/drivers.c static void get_node_path(struct device *dev, struct hardware_path *path) path 313 arch/parisc/kernel/drivers.c memset(&path->bc, -1, 6); path 317 arch/parisc/kernel/drivers.c path->mod = PCI_FUNC(devfn); path 318 arch/parisc/kernel/drivers.c path->bc[i--] = PCI_SLOT(devfn); path 325 arch/parisc/kernel/drivers.c path->bc[i--] = PCI_SLOT(devfn) | (PCI_FUNC(devfn)<< 5); path 327 arch/parisc/kernel/drivers.c path->bc[i--] = to_parisc_device(dev)->hw_path; path 333 arch/parisc/kernel/drivers.c static char *print_hwpath(struct hardware_path *path, char *output) path 337 arch/parisc/kernel/drivers.c if (path->bc[i] == -1) path 339 arch/parisc/kernel/drivers.c output += sprintf(output, "%u/", (unsigned char) path->bc[i]); path 341 arch/parisc/kernel/drivers.c output += sprintf(output, "%u", (unsigned char) path->mod); path 356 arch/parisc/kernel/drivers.c struct hardware_path path; path 358 arch/parisc/kernel/drivers.c get_node_path(dev->dev.parent, &path); path 359 arch/parisc/kernel/drivers.c path.mod = dev->hw_path; path 360 arch/parisc/kernel/drivers.c return print_hwpath(&path, output); path 374 arch/parisc/kernel/drivers.c void get_pci_node_path(struct pci_dev *pdev, struct hardware_path *path) path 376 arch/parisc/kernel/drivers.c get_node_path(&pdev->dev, path); path 391 arch/parisc/kernel/drivers.c struct hardware_path path; path 393 arch/parisc/kernel/drivers.c get_pci_node_path(dev, &path); path 394 arch/parisc/kernel/drivers.c return print_hwpath(&path, output); path 402 arch/parisc/kernel/drivers.c struct hardware_path path; path 407 arch/parisc/kernel/drivers.c get_node_path(padev->dev.parent, &path); path 410 arch/parisc/kernel/drivers.c if (path.bc[i] == -1) path 412 arch/parisc/kernel/drivers.c output += sprintf(output, "%u:", (unsigned char) path.bc[i]); path 778 arch/parisc/kernel/drivers.c void device_to_hwpath(struct device *dev, struct hardware_path *path) path 783 arch/parisc/kernel/drivers.c get_node_path(dev->parent, path); path 784 arch/parisc/kernel/drivers.c path->mod = padev->hw_path; path 786 arch/parisc/kernel/drivers.c get_node_path(dev, path); path 848 arch/parisc/kernel/drivers.c struct hardware_path path; path 850 arch/parisc/kernel/drivers.c get_node_path(parent, &path); path 858 arch/parisc/kernel/drivers.c path.mod = i; path 859 arch/parisc/kernel/drivers.c dev = alloc_pa_dev(hpa, &path); path 1031 arch/parisc/kernel/drivers.c pr_cont(".flags = 0x%x, ", mod_path.path.flags); path 1033 arch/parisc/kernel/drivers.c (unsigned char)mod_path.path.bc[0], path 1034 arch/parisc/kernel/drivers.c (unsigned char)mod_path.path.bc[1], path 1035 arch/parisc/kernel/drivers.c (unsigned char)mod_path.path.bc[2], path 1036 arch/parisc/kernel/drivers.c (unsigned char)mod_path.path.bc[3], path 1037 arch/parisc/kernel/drivers.c (unsigned char)mod_path.path.bc[4], path 1038 arch/parisc/kernel/drivers.c (unsigned char)mod_path.path.bc[5]); path 1039 arch/parisc/kernel/drivers.c pr_cont(".mod = 0x%x ", mod_path.path.mod); path 459 arch/parisc/kernel/inventory.c dev = alloc_pa_dev(r_addr->hpa, &module_path->path); path 485 arch/parisc/kernel/inventory.c memset(module_path.path.bc, 0xff, 6); path 486 arch/parisc/kernel/inventory.c module_path.path.mod = mod; path 491 arch/parisc/kernel/inventory.c memset(module_path.path.bc, 0xff, 4); path 492 arch/parisc/kernel/inventory.c module_path.path.bc[4] = mod; path 495 arch/parisc/kernel/inventory.c module_path.path.bc[5] = 0; path 496 arch/parisc/kernel/inventory.c module_path.path.mod = func; path 569 arch/parisc/kernel/inventory.c dev = alloc_pa_dev(module_result.mod_addr, &module_path.path); path 280 arch/parisc/kernel/sys_parisc.c asmlinkage long parisc_truncate64(const char __user * path, path 283 arch/parisc/kernel/sys_parisc.c return ksys_truncate(path, (long)high << 32 | low); path 294 arch/parisc/kernel/sys_parisc.c asmlinkage long sys_truncate64(const char __user * path, unsigned long length) path 296 arch/parisc/kernel/sys_parisc.c return ksys_truncate(path, length); path 308 arch/parisc/kernel/sys_parisc.c asmlinkage long parisc_truncate64(const char __user * path, path 311 arch/parisc/kernel/sys_parisc.c return ksys_truncate(path, (loff_t)high << 32 | low); path 480 arch/powerpc/boot/4xx.c static void eplike_fixup_uart_clk(int index, const char *path, path 509 arch/powerpc/boot/4xx.c dt_fixup_clock(path, clock); path 77 arch/powerpc/boot/devtree.c void dt_fixup_clock(const char *path, u32 freq) path 79 arch/powerpc/boot/devtree.c void *devp = finddevice(path); path 82 arch/powerpc/boot/devtree.c printf("%s: clock-frequency <- %x (%dMHz)\n\r", path, freq, MHZ(freq)); path 62 arch/powerpc/boot/libfdt-wrapper.c static void *fdt_wrapper_finddevice(const char *path) path 64 arch/powerpc/boot/libfdt-wrapper.c return offset_devp(fdt_path_offset(fdt, path)); path 177 arch/powerpc/boot/ops.h char path[MAX_PATH_LEN]; path 178 arch/powerpc/boot/ops.h if (getprop(devp, alias, path, MAX_PATH_LEN) > 0) path 179 arch/powerpc/boot/ops.h return finddevice(path); path 196 arch/powerpc/boot/ops.h void dt_fixup_clock(const char *path, u32 freq); path 106 arch/powerpc/boot/planetcore.c char *path; path 119 arch/powerpc/boot/planetcore.c path = get_path(node, prop_buf, MAX_PROP_LEN); path 120 arch/powerpc/boot/planetcore.c if (!path) path 129 arch/powerpc/boot/planetcore.c setprop_str(chosen, "linux,stdout-path", path); path 89 arch/powerpc/boot/serial.c char path[MAX_PATH_LEN]; path 95 arch/powerpc/boot/serial.c if (getprop(devp, "linux,stdout-path", path, MAX_PATH_LEN) > 0 || path 96 arch/powerpc/boot/serial.c getprop(devp, "stdout-path", path, MAX_PATH_LEN) > 0) { path 97 arch/powerpc/boot/serial.c devp = finddevice(path); path 80 arch/powerpc/boot/virtex.c char path[MAX_PATH_LEN]; path 86 arch/powerpc/boot/virtex.c if (getprop(devp, "linux,stdout-path", path, MAX_PATH_LEN) > 0) { path 87 arch/powerpc/boot/virtex.c devp = finddevice(path); path 368 arch/powerpc/kernel/legacy_serial.c const char *path; path 374 arch/powerpc/kernel/legacy_serial.c path = of_get_property(of_chosen, "linux,stdout-path", NULL); path 375 arch/powerpc/kernel/legacy_serial.c if (path == NULL) path 376 arch/powerpc/kernel/legacy_serial.c path = of_get_property(of_chosen, "stdout-path", NULL); path 377 arch/powerpc/kernel/legacy_serial.c if (path != NULL) { path 378 arch/powerpc/kernel/legacy_serial.c stdout = of_find_node_by_path(path); path 1924 arch/powerpc/kernel/prom_init.c char *path = prom_scratch; path 1990 arch/powerpc/kernel/prom_init.c memset(path, 0, sizeof(prom_scratch)); path 1993 arch/powerpc/kernel/prom_init.c path, sizeof(prom_scratch) - 1) == PROM_ERROR) { path 1998 arch/powerpc/kernel/prom_init.c prom_setprop(node, path, "linux,tce-base", &base, sizeof(base)); path 1999 arch/powerpc/kernel/prom_init.c prom_setprop(node, path, "linux,tce-size", &minsize, sizeof(minsize)); path 2001 arch/powerpc/kernel/prom_init.c prom_debug("TCE table: %s\n", path); path 2016 arch/powerpc/kernel/prom_init.c prom_printf("opening PHB %s", path); path 2017 arch/powerpc/kernel/prom_init.c phb_node = call_prom("open", 1, 1, path); path 2212 arch/powerpc/kernel/prom_init.c char *path = of_stdout_device; path 2223 arch/powerpc/kernel/prom_init.c memset(path, 0, 256); path 2224 arch/powerpc/kernel/prom_init.c call_prom("instance-to-path", 3, 1, prom.stdout, path, 255); path 2227 arch/powerpc/kernel/prom_init.c path, prom_strlen(path) + 1); path 2238 arch/powerpc/kernel/prom_init.c prom_setprop(stdout_node, path, "linux,boot-display", NULL, 0); path 2320 arch/powerpc/kernel/prom_init.c char type[16], *path; path 2353 arch/powerpc/kernel/prom_init.c path = prom_scratch; path 2354 arch/powerpc/kernel/prom_init.c memset(path, 0, sizeof(prom_scratch)); path 2360 arch/powerpc/kernel/prom_init.c if (call_prom("package-to-path", 3, 1, node, path, path 2363 arch/powerpc/kernel/prom_init.c prom_printf("found display : %s, opening... ", path); path 2365 arch/powerpc/kernel/prom_init.c ih = call_prom("open", 1, 1, path); path 2373 arch/powerpc/kernel/prom_init.c prom_setprop(node, path, "linux,opened", NULL, 0); path 2519 arch/powerpc/kernel/prom_init.c char *namep, *prev_name, *sstart, *p, *ep, *lp, *path; path 2557 arch/powerpc/kernel/prom_init.c path = prom_scratch; path 2558 arch/powerpc/kernel/prom_init.c memset(path, 0, sizeof(prom_scratch)); path 2559 arch/powerpc/kernel/prom_init.c call_prom("package-to-path", 3, 1, node, path, sizeof(prom_scratch) - 1); path 2579 arch/powerpc/kernel/prom_init.c " <%s>, node %s\n", pname, path); path 2609 arch/powerpc/kernel/prom_init.c prom_printf("WARNING: Can't find string index for <phandle> node %s\n", path); path 81 arch/powerpc/kernel/sys_ppc32.c asmlinkage int compat_sys_truncate64(const char __user * path, u32 reg4, path 84 arch/powerpc/kernel/sys_ppc32.c return ksys_truncate(path, (high << 32) | low); path 294 arch/powerpc/oprofile/cell/spu_task_sync.c static inline unsigned long fast_get_dcookie(const struct path *path) path 298 arch/powerpc/oprofile/cell/spu_task_sync.c if (path->dentry->d_flags & DCACHE_COOKIE) path 299 arch/powerpc/oprofile/cell/spu_task_sync.c return (unsigned long)path->dentry; path 300 arch/powerpc/oprofile/cell/spu_task_sync.c get_dcookie(path, &cookie); path 281 arch/powerpc/platforms/cell/spufs/inode.c static int spufs_context_open(struct path *path) path 290 arch/powerpc/platforms/cell/spufs/inode.c filp = dentry_open(path, O_RDONLY, current_cred()); path 412 arch/powerpc/platforms/cell/spufs/inode.c struct path path = {.mnt = mnt, .dentry = dentry}; path 451 arch/powerpc/platforms/cell/spufs/inode.c ret = spufs_context_open(&path); path 500 arch/powerpc/platforms/cell/spufs/inode.c static int spufs_gang_open(struct path *path) path 513 arch/powerpc/platforms/cell/spufs/inode.c filp = dentry_open(path, O_RDONLY, current_cred()); path 528 arch/powerpc/platforms/cell/spufs/inode.c struct path path = {.mnt = mnt, .dentry = dentry}; path 533 arch/powerpc/platforms/cell/spufs/inode.c ret = spufs_gang_open(&path); path 545 arch/powerpc/platforms/cell/spufs/inode.c long spufs_create(struct path *path, struct dentry *dentry, path 548 arch/powerpc/platforms/cell/spufs/inode.c struct inode *dir = d_inode(path->dentry); path 552 arch/powerpc/platforms/cell/spufs/inode.c if (path->dentry->d_sb->s_type != &spufs_type) path 560 arch/powerpc/platforms/cell/spufs/inode.c if (path->dentry != path->dentry->d_sb->s_root) path 567 arch/powerpc/platforms/cell/spufs/inode.c ret = spufs_create_gang(dir, dentry, path->mnt, mode); path 569 arch/powerpc/platforms/cell/spufs/inode.c ret = spufs_create_context(dir, dentry, path->mnt, flags, mode, path 235 arch/powerpc/platforms/cell/spufs/spufs.h long spufs_create(struct path *nd, struct dentry *dentry, unsigned int flags, path 66 arch/powerpc/platforms/cell/spufs/syscalls.c struct path path; path 70 arch/powerpc/platforms/cell/spufs/syscalls.c dentry = user_path_create(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY); path 73 arch/powerpc/platforms/cell/spufs/syscalls.c ret = spufs_create(&path, dentry, flags, mode, neighbor); path 74 arch/powerpc/platforms/cell/spufs/syscalls.c done_path_create(&path, dentry); path 71 arch/powerpc/platforms/powermac/udbg_scc.c const char *path; path 80 arch/powerpc/platforms/powermac/udbg_scc.c path = of_get_property(of_chosen, "linux,stdout-path", NULL); path 81 arch/powerpc/platforms/powermac/udbg_scc.c if (path != NULL) path 82 arch/powerpc/platforms/powermac/udbg_scc.c stdout = of_find_node_by_path(path); path 83 arch/powerpc/platforms/powernv/opal-xscom.c struct debugfs_blob_wrapper path; path 167 arch/powerpc/platforms/powernv/opal-xscom.c ent->path.data = (void *)kasprintf(GFP_KERNEL, "%pOF", dn); path 168 arch/powerpc/platforms/powernv/opal-xscom.c ent->path.size = strlen((char *)ent->path.data); path 172 arch/powerpc/platforms/powernv/opal-xscom.c kfree(ent->path.data); path 177 arch/powerpc/platforms/powernv/opal-xscom.c debugfs_create_blob("devspec", 0400, dir, &ent->path); path 268 arch/powerpc/platforms/pseries/ibmebus.c char *path; path 271 arch/powerpc/platforms/pseries/ibmebus.c path = ibmebus_chomp(buf, count); path 272 arch/powerpc/platforms/pseries/ibmebus.c if (!path) path 275 arch/powerpc/platforms/pseries/ibmebus.c dev = bus_find_device(&ibmebus_bus_type, NULL, path, path 280 arch/powerpc/platforms/pseries/ibmebus.c __func__, path); path 285 arch/powerpc/platforms/pseries/ibmebus.c if ((dn = of_find_node_by_path(path))) { path 290 arch/powerpc/platforms/pseries/ibmebus.c __func__, path); path 295 arch/powerpc/platforms/pseries/ibmebus.c kfree(path); path 305 arch/powerpc/platforms/pseries/ibmebus.c char *path; path 307 arch/powerpc/platforms/pseries/ibmebus.c path = ibmebus_chomp(buf, count); path 308 arch/powerpc/platforms/pseries/ibmebus.c if (!path) path 311 arch/powerpc/platforms/pseries/ibmebus.c if ((dev = bus_find_device(&ibmebus_bus_type, NULL, path, path 316 arch/powerpc/platforms/pseries/ibmebus.c kfree(path); path 320 arch/powerpc/platforms/pseries/ibmebus.c __func__, path); path 322 arch/powerpc/platforms/pseries/ibmebus.c kfree(path); path 18 arch/powerpc/platforms/pseries/of_helpers.c struct device_node *pseries_of_derive_parent(const char *path) path 25 arch/powerpc/platforms/pseries/of_helpers.c tail = kbasename(path) - 1; path 28 arch/powerpc/platforms/pseries/of_helpers.c if (!strcmp(path, "/")) path 31 arch/powerpc/platforms/pseries/of_helpers.c if (tail > path) { path 32 arch/powerpc/platforms/pseries/of_helpers.c parent_path = kstrndup(path, tail - path, GFP_KERNEL); path 7 arch/powerpc/platforms/pseries/of_helpers.h struct device_node *pseries_of_derive_parent(const char *path); path 23 arch/powerpc/platforms/pseries/reconfig.c static int pSeries_reconfig_add_node(const char *path, struct property *proplist) path 32 arch/powerpc/platforms/pseries/reconfig.c np->full_name = kstrdup(kbasename(path), GFP_KERNEL); path 40 arch/powerpc/platforms/pseries/reconfig.c np->parent = pseries_of_derive_parent(path); path 48 arch/powerpc/platforms/pseries/reconfig.c printk(KERN_ERR "Failed to add device node %s\n", path); path 196 arch/powerpc/platforms/pseries/reconfig.c char *path, *end, *name; path 203 arch/powerpc/platforms/pseries/reconfig.c path = buf; path 210 arch/powerpc/platforms/pseries/reconfig.c if ((np = of_find_node_by_path(path))) { path 232 arch/powerpc/platforms/pseries/reconfig.c rv = pSeries_reconfig_add_node(path, prop); path 70 arch/s390/kernel/compat_linux.c COMPAT_SYSCALL_DEFINE3(s390_truncate64, const char __user *, path, u32, high, u32, low) path 72 arch/s390/kernel/compat_linux.c return ksys_truncate(path, (unsigned long)high << 32 | low); path 110 arch/s390/kernel/compat_linux.h long compat_sys_s390_truncate64(const char __user *path, u32 high, u32 low); path 35 arch/sh/drivers/pci/fixups-cayman.c } path[4]; path 40 arch/sh/drivers/pci/fixups-cayman.c slot = path[i].slot = PCI_SLOT(dev->devfn); path 41 arch/sh/drivers/pci/fixups-cayman.c pin = path[i].pin = pci_swizzle_interrupt_pin(dev, pin); path 58 arch/sh/drivers/pci/fixups-cayman.c slot = path[i].slot; path 59 arch/sh/drivers/pci/fixups-cayman.c pin = path[i].pin; path 66 arch/sh/drivers/pci/fixups-cayman.c slot = path[i].slot; path 67 arch/sh/drivers/pci/fixups-cayman.c pin = path[i].pin; path 304 arch/sparc/kernel/prom_32.c const char *path; path 307 arch/sparc/kernel/prom_32.c path = of_get_property(dp, "stdout-path", NULL); path 308 arch/sparc/kernel/prom_32.c if (!path) { path 312 arch/sparc/kernel/prom_32.c strcpy(of_console_path, path); path 55 arch/sparc/kernel/sys_sparc32.c COMPAT_SYSCALL_DEFINE3(truncate64, const char __user *, path, u32, high, u32, low) path 57 arch/sparc/kernel/sys_sparc32.c return ksys_truncate(path, ((u64)high << 32) | low); path 52 arch/sparc/kernel/systbls.h asmlinkage long compat_sys_truncate64(const char __user * path, path 169 arch/um/include/shared/os.h extern int os_stat_filesystem(char *path, long *bsize_out, path 52 arch/um/os-Linux/execvp.c char *path = getenv("PATH"); path 53 arch/um/os-Linux/execvp.c if (path == NULL) path 54 arch/um/os-Linux/execvp.c path = ":/bin:/usr/bin"; path 57 arch/um/os-Linux/execvp.c pathlen = strlen(path); path 64 arch/um/os-Linux/execvp.c p = path; path 68 arch/um/os-Linux/execvp.c path = p; path 71 arch/um/os-Linux/execvp.c p = strchr(path, ':'); path 73 arch/um/os-Linux/execvp.c p = strchr(path, '\0'); path 75 arch/um/os-Linux/execvp.c if (p == path) path 80 arch/um/os-Linux/execvp.c startp = memcpy(name - (p - path), path, p - path); path 1283 arch/x86/events/intel/pt.c if (!filter->path.dentry) { path 1311 arch/x86/events/intel/pt.c if (filter->path.dentry && !fr[range].start) { path 59 arch/x86/include/asm/microcode.h struct cpio_data find_microcode_in_initrd(const char *path, bool use_pa); path 477 arch/x86/kernel/cpu/microcode/amd.c const char *path; path 482 arch/x86/kernel/cpu/microcode/amd.c path = (const char *)__pa_nodebug(ucode_path); path 486 arch/x86/kernel/cpu/microcode/amd.c path = ucode_path; path 491 arch/x86/kernel/cpu/microcode/amd.c cp = find_microcode_in_initrd(path, use_pa); path 257 arch/x86/kernel/cpu/microcode/core.c struct cpio_data find_microcode_in_initrd(const char *path, bool use_pa) path 319 arch/x86/kernel/cpu/microcode/core.c return find_cpio_data(path, (void *)start, size, NULL); path 657 arch/x86/kernel/cpu/microcode/intel.c static const char *path; path 662 arch/x86/kernel/cpu/microcode/intel.c path = (const char *)__pa_nodebug(ucode_path); path 665 arch/x86/kernel/cpu/microcode/intel.c path = ucode_path; path 671 arch/x86/kernel/cpu/microcode/intel.c cp = find_microcode_in_initrd(path, use_pa); path 166 arch/x86/platform/olpc/olpc_dt.c static phandle __init olpc_dt_finddevice(const char *path) path 169 arch/x86/platform/olpc/olpc_dt.c const void *args[] = { path }; path 140 drivers/acpi/acpi_adxl.c char *path = ACPI_ADXL_PATH; path 145 drivers/acpi/acpi_adxl.c status = acpi_get_handle(NULL, path, &handle); path 147 drivers/acpi/acpi_adxl.c pr_debug("No ACPI handle for path %s\n", path); path 829 drivers/acpi/acpica/aclocal.h ACPI_PARSE_COMMON char *path; path 1135 drivers/acpi/acpica/aclocal.h char *path; path 1154 drivers/acpi/acpica/aclocal.h char *path; path 167 drivers/acpi/acpica/acparser.h char *path, u16 opcode, u32 create); path 181 drivers/acpi/acpica/acresrc.h const char *path, struct acpi_buffer *ret_buffer); path 365 drivers/acpi/acpica/acutils.h const char *path, path 563 drivers/acpi/acpica/acutils.h const char *path); path 722 drivers/acpi/acpica/acutils.h const char *path, acpi_status lookup_status); path 31 drivers/acpi/acpica/dsfield.c char *path, path 62 drivers/acpi/acpica/dsfield.c char *path, path 78 drivers/acpi/acpica/dsfield.c acpi_dm_add_op_to_external_list(op, path, ACPI_TYPE_REGION, 0, 0); path 80 drivers/acpi/acpica/dsfield.c status = acpi_ns_lookup(walk_state->scope_info, path, ACPI_TYPE_REGION, path 110 drivers/acpi/acpica/dswload.c char *path; path 135 drivers/acpi/acpica/dswload.c path = acpi_ps_get_next_namestring(&walk_state->parser_state); path 153 drivers/acpi/acpica/dswload.c acpi_ns_lookup(walk_state->scope_info, path, object_type, path 163 drivers/acpi/acpica/dswload.c acpi_dm_add_op_to_external_list(op, path, path 166 drivers/acpi/acpica/dswload.c acpi_ns_lookup(walk_state->scope_info, path, path 173 drivers/acpi/acpica/dswload.c ACPI_ERROR_NAMESPACE(walk_state->scope_info, path, path 308 drivers/acpi/acpica/dswload.c acpi_ns_lookup(walk_state->scope_info, path, object_type, path 343 drivers/acpi/acpica/dswload.c path, status); path 365 drivers/acpi/acpica/dswload.c op->named.path = path; path 530 drivers/acpi/acpica/dswload.c acpi_dm_add_op_to_external_list(op, op->named.path, path 290 drivers/acpi/acpica/nsaccess.c char *path = pathname; path 364 drivers/acpi/acpica/nsaccess.c path = ""; path 383 drivers/acpi/acpica/nsaccess.c if (*path == (u8) AML_ROOT_PREFIX) { path 392 drivers/acpi/acpica/nsaccess.c path++; path 411 drivers/acpi/acpica/nsaccess.c while (*path == (u8) AML_PARENT_PREFIX) { path 421 drivers/acpi/acpica/nsaccess.c path++; path 469 drivers/acpi/acpica/nsaccess.c switch (*path) { path 492 drivers/acpi/acpica/nsaccess.c path++; path 507 drivers/acpi/acpica/nsaccess.c path++; path 508 drivers/acpi/acpica/nsaccess.c num_segments = (u32) (u8) * path; path 509 drivers/acpi/acpica/nsaccess.c path++; path 529 drivers/acpi/acpica/nsaccess.c ACPI_DEBUG_EXEC(acpi_ns_print_pathname(num_segments, path)); path 585 drivers/acpi/acpica/nsaccess.c ACPI_MOVE_32_TO_32(&simple_name, path); path 718 drivers/acpi/acpica/nsaccess.c path += ACPI_NAMESEG_SIZE; path 204 drivers/acpi/acpica/nsnames.c #define ACPI_PATH_PUT8(path, size, byte, length) \ path 208 drivers/acpi/acpica/nsnames.c (path)[(length)] = (byte); \ path 481 drivers/acpi/acpica/nsxfname.c char *path; path 515 drivers/acpi/acpica/nsxfname.c path = acpi_ps_get_next_namestring(&parser_state); path 546 drivers/acpi/acpica/nsxfname.c acpi_ns_lookup(NULL, path, ACPI_TYPE_METHOD, ACPI_IMODE_LOAD_PASS1, path 202 drivers/acpi/acpica/psargs.c char *path; path 210 drivers/acpi/acpica/psargs.c path = acpi_ps_get_next_namestring(parser_state); path 215 drivers/acpi/acpica/psargs.c if (!path) { path 216 drivers/acpi/acpica/psargs.c arg->common.value.name = path; path 228 drivers/acpi/acpica/psargs.c status = acpi_ns_lookup(walk_state->scope_info, path, path 259 drivers/acpi/acpica/psargs.c node->name.ascii, node, method_desc, path)); path 269 drivers/acpi/acpica/psargs.c name_op->common.value.name = path; path 330 drivers/acpi/acpica/psargs.c ACPI_ERROR_NAMESPACE(walk_state->scope_info, path, status); path 343 drivers/acpi/acpica/psargs.c arg->common.value.name = path; path 638 drivers/acpi/acpica/rsutils.c const char *path, struct acpi_buffer *ret_buffer) path 651 drivers/acpi/acpica/rsutils.c (struct acpi_namespace_node, handle), path, path 303 drivers/acpi/acpica/uterror.c const char *path, acpi_status method_status) path 311 drivers/acpi/acpica/uterror.c if (path) { path 312 drivers/acpi/acpica/uterror.c status = acpi_ns_get_node(prefix_node, path, path 38 drivers/acpi/acpica/uteval.c const char *path, path 56 drivers/acpi/acpica/uteval.c info->relative_pathname = path; path 66 drivers/acpi/acpica/uteval.c path)); path 69 drivers/acpi/acpica/uteval.c prefix_node, path, status); path 80 drivers/acpi/acpica/uteval.c prefix_node, path, AE_NOT_EXIST); path 131 drivers/acpi/acpica/uteval.c prefix_node, path, AE_TYPE); path 135 drivers/acpi/acpica/uteval.c path, path 333 drivers/acpi/acpica/utmisc.c const char *path) path 375 drivers/acpi/acpica/utmisc.c if (path) { path 376 drivers/acpi/acpica/utmisc.c acpi_os_printf(".%s", path); path 23 drivers/acpi/device_sysfs.c struct acpi_buffer path = {ACPI_ALLOCATE_BUFFER, NULL}; path 26 drivers/acpi/device_sysfs.c result = acpi_get_name(handle, ACPI_FULL_PATHNAME, &path); path 30 drivers/acpi/device_sysfs.c result = sprintf(buf, "%s\n", (char *)path.pointer); path 31 drivers/acpi/device_sysfs.c kfree(path.pointer); path 50 drivers/acpi/device_sysfs.c DATA_NODE_ATTR(path); path 437 drivers/acpi/device_sysfs.c static DEVICE_ATTR(path, 0444, acpi_device_path_show, NULL); path 611 drivers/acpi/property.c struct acpi_buffer path; path 614 drivers/acpi/property.c path.length = sizeof(name); path 615 drivers/acpi/property.c path.pointer = name; path 625 drivers/acpi/property.c ACPI_SINGLE_NAME, &path); path 1207 drivers/acpi/scan.c struct acpi_buffer path = { sizeof(node_name), node_name }; path 1213 drivers/acpi/scan.c if (ACPI_FAILURE(acpi_get_name(handle, ACPI_SINGLE_NAME, &path)) || path 1214 drivers/acpi/scan.c strcmp("SMBS", path.pointer)) path 487 drivers/acpi/utils.c const char *path; path 493 drivers/acpi/utils.c path = acpi_handle_path(handle); path 494 drivers/acpi/utils.c printk("%sACPI: %s: %pV", level, path ? path : "<n/a>" , &vaf); path 497 drivers/acpi/utils.c kfree(path); path 516 drivers/acpi/utils.c const char *path; path 522 drivers/acpi/utils.c path = acpi_handle_path(handle); path 523 drivers/acpi/utils.c __dynamic_pr_debug(descriptor, "ACPI: %s: %pV", path ? path : "<n/a>", &vaf); path 526 drivers/acpi/utils.c kfree(path); path 167 drivers/base/devtmpfs.c struct path path; path 170 drivers/base/devtmpfs.c dentry = kern_path_create(AT_FDCWD, name, &path, LOOKUP_DIRECTORY); path 174 drivers/base/devtmpfs.c err = vfs_mkdir(d_inode(path.dentry), dentry, mode); path 178 drivers/base/devtmpfs.c done_path_create(&path, dentry); path 184 drivers/base/devtmpfs.c char *path; path 189 drivers/base/devtmpfs.c path = kstrdup(nodepath, GFP_KERNEL); path 190 drivers/base/devtmpfs.c if (!path) path 193 drivers/base/devtmpfs.c s = path; path 199 drivers/base/devtmpfs.c err = dev_mkdir(path, 0755); path 205 drivers/base/devtmpfs.c kfree(path); path 213 drivers/base/devtmpfs.c struct path path; path 216 drivers/base/devtmpfs.c dentry = kern_path_create(AT_FDCWD, nodename, &path, 0); path 219 drivers/base/devtmpfs.c dentry = kern_path_create(AT_FDCWD, nodename, &path, 0); path 224 drivers/base/devtmpfs.c err = vfs_mknod(d_inode(path.dentry), dentry, mode, dev->devt); path 239 drivers/base/devtmpfs.c done_path_create(&path, dentry); path 245 drivers/base/devtmpfs.c struct path parent; path 268 drivers/base/devtmpfs.c char *path; path 271 drivers/base/devtmpfs.c path = kstrdup(nodepath, GFP_KERNEL); path 272 drivers/base/devtmpfs.c if (!path) path 278 drivers/base/devtmpfs.c base = strrchr(path, '/'); path 282 drivers/base/devtmpfs.c err = dev_rmdir(path); path 287 drivers/base/devtmpfs.c kfree(path); path 314 drivers/base/devtmpfs.c struct path parent; path 325 drivers/base/devtmpfs.c struct path p = {.mnt = parent.mnt, .dentry = dentry}; path 453 drivers/base/firmware_loader/main.c module_param_string(path, fw_path_para, sizeof(fw_path_para), 0644); path 454 drivers/base/firmware_loader/main.c MODULE_PARM_DESC(path, "customized firmware image search path with a higher priority than default path"); path 467 drivers/base/firmware_loader/main.c char *path; path 479 drivers/base/firmware_loader/main.c path = __getname(); path 480 drivers/base/firmware_loader/main.c if (!path) path 488 drivers/base/firmware_loader/main.c len = snprintf(path, PATH_MAX, "%s/%s%s", path 496 drivers/base/firmware_loader/main.c rc = kernel_read_file_from_path(path, &buffer, &size, path 501 drivers/base/firmware_loader/main.c path, rc); path 504 drivers/base/firmware_loader/main.c path); path 528 drivers/base/firmware_loader/main.c __putname(path); path 1381 drivers/block/loop.c struct path path; path 1409 drivers/block/loop.c path = lo->lo_backing_file->f_path; path 1410 drivers/block/loop.c path_get(&path); path 1412 drivers/block/loop.c ret = vfs_getattr(&path, &stat, STATX_INO, AT_STATX_SYNC_AS_STAT); path 1418 drivers/block/loop.c path_put(&path); path 676 drivers/block/xen-blkback/xenbus.c const char *path, const char *token) path 1826 drivers/block/xen-blkfront.c char *path; path 1837 drivers/block/xen-blkfront.c path = kmalloc(pathsize, GFP_KERNEL); path 1838 drivers/block/xen-blkfront.c if (!path) { path 1845 drivers/block/xen-blkfront.c memset(path, 0, pathsize); path 1846 drivers/block/xen-blkfront.c snprintf(path, pathsize, "%s/queue-%u", dev->nodename, i); path 1847 drivers/block/xen-blkfront.c err = write_per_ring_nodes(xbt, &info->rinfo[i], path); path 1849 drivers/block/xen-blkfront.c kfree(path); path 1853 drivers/block/xen-blkfront.c kfree(path); path 59 drivers/clk/imx/clk.c char *path; path 61 drivers/clk/imx/clk.c path = kasprintf(GFP_KERNEL, "/clocks/%s", name); path 62 drivers/clk/imx/clk.c if (!path) path 65 drivers/clk/imx/clk.c phandle.np = of_find_node_by_path(path); path 66 drivers/clk/imx/clk.c kfree(path); path 119 drivers/clk/qcom/common.c static int _qcom_cc_register_board_clk(struct device *dev, const char *path, path 132 drivers/clk/qcom/common.c node = of_get_child_by_name(clocks_node, path); path 144 drivers/clk/qcom/common.c init_data.name = path; path 162 drivers/clk/qcom/common.c init_data.parent_names = &path; path 175 drivers/clk/qcom/common.c int qcom_cc_register_board_clk(struct device *dev, const char *path, path 186 drivers/clk/qcom/common.c return _qcom_cc_register_board_clk(dev, path, name, rate, add_factor); path 53 drivers/clk/qcom/common.h extern int qcom_cc_register_board_clk(struct device *dev, const char *path, path 165 drivers/clocksource/timer-integrator-ap.c const char *path; path 187 drivers/clocksource/timer-integrator-ap.c "arm,timer-primary", &path); path 193 drivers/clocksource/timer-integrator-ap.c alias_node = of_find_node_by_path(path); path 207 drivers/clocksource/timer-integrator-ap.c "arm,timer-secondary", &path); path 213 drivers/clocksource/timer-integrator-ap.c alias_node = of_find_node_by_path(path); path 324 drivers/extcon/extcon-max14577.c u8 path = CTRL1_SW_OPEN; path 334 drivers/extcon/extcon-max14577.c path = CTRL1_SW_USB; path 338 drivers/extcon/extcon-max14577.c path = CTRL1_SW_UART; path 346 drivers/extcon/extcon-max14577.c ret = max14577_muic_set_path(info, path, attached); path 621 drivers/extcon/extcon-max77693.c u8 path = MAX77693_CONTROL1_SW_OPEN; path 631 drivers/extcon/extcon-max77693.c path = MAX77693_CONTROL1_SW_USB; path 636 drivers/extcon/extcon-max77693.c path = MAX77693_CONTROL1_SW_UART; path 644 drivers/extcon/extcon-max77693.c ret = max77693_muic_set_path(info, path, attached); path 414 drivers/extcon/extcon-max77843.c u8 path = MAX77843_MUIC_CONTROL1_SW_OPEN; path 422 drivers/extcon/extcon-max77843.c path = MAX77843_MUIC_CONTROL1_SW_USB; path 425 drivers/extcon/extcon-max77843.c path = MAX77843_MUIC_CONTROL1_SW_UART; path 431 drivers/extcon/extcon-max77843.c ret = max77843_muic_set_path(info, path, attached, false); path 34 drivers/firmware/efi/apple-properties.c struct efi_dev_path path[0]; path 133 drivers/firmware/efi/apple-properties.c ptr = dev_header->path; path 114 drivers/gpio/gpiolib-acpi.c static struct gpio_desc *acpi_get_gpiod(char *path, int pin) path 120 drivers/gpio/gpiolib-acpi.c status = acpi_get_handle(NULL, path, &handle); path 335 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c ATOM_DISPLAY_OBJECT_PATH *path; path 337 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c path = (ATOM_DISPLAY_OBJECT_PATH *) addr; path 338 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c path_size += le16_to_cpu(path->usSize); path 340 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c if (device_support & le16_to_cpu(path->usDeviceTag)) { path 342 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (le16_to_cpu(path->usConnObjectId) & OBJECT_ID_MASK) path 346 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c if ((le16_to_cpu(path->usDeviceTag) == path 348 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (le16_to_cpu(path->usDeviceTag) == path 354 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c con_obj_id, le16_to_cpu(path->usDeviceTag)); path 367 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c for (j = 0; j < ((le16_to_cpu(path->usSize) - 8) / 2); j++) { path 369 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c (le16_to_cpu(path->usGraphicObjIds[j]) & path 375 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c if (le16_to_cpu(path->usGraphicObjIds[j]) == encoder_obj) { path 396 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c le16_to_cpu(path->usDeviceTag), path 403 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c if (le16_to_cpu(path->usGraphicObjIds[j]) == router_obj_id) { path 423 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c if (le16_to_cpu(path->usConnObjectId) == path 473 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c if ((le16_to_cpu(path->usDeviceTag) & path 476 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c if (le16_to_cpu(path->usConnObjectId) == path 531 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c conn_id = le16_to_cpu(path->usConnObjectId); path 535 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c le16_to_cpu(path->usDeviceTag), path 2339 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->ext_disp_conn_info.path[i].device_connector_id = path 2343 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->ext_disp_conn_info.path[i].ext_encoder_obj_id = path 2347 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->ext_disp_conn_info.path[i].device_tag = path 2349 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->ext_disp_conn_info.path[i].device_acpi_enum = path 2351 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->ext_disp_conn_info.path[i].ext_aux_ddc_lut_index = path 2353 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->ext_disp_conn_info.path[i].ext_hpd_pin_lut_index = path 2355 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->ext_disp_conn_info.path[i].channel_mapping.raw = path 2476 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->ext_disp_conn_info.path[i].device_connector_id = path 2480 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->ext_disp_conn_info.path[i].ext_encoder_obj_id = path 2484 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->ext_disp_conn_info.path[i].device_tag = path 2486 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->ext_disp_conn_info.path[i].device_acpi_enum = path 2488 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->ext_disp_conn_info.path[i].ext_aux_ddc_lut_index = path 2490 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->ext_disp_conn_info.path[i].ext_hpd_pin_lut_index = path 2492 drivers/gpu/drm/amd/display/dc/bios/bios_parser.c info->ext_disp_conn_info.path[i].channel_mapping.raw = path 1426 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info->ext_disp_conn_info.path[i].device_connector_id = path 1428 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c le16_to_cpu(info_v11->extdispconninfo.path[i].connectorobjid)); path 1430 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info->ext_disp_conn_info.path[i].ext_encoder_obj_id = path 1433 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info_v11->extdispconninfo.path[i].ext_encoder_objid)); path 1435 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info->ext_disp_conn_info.path[i].device_tag = path 1437 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info_v11->extdispconninfo.path[i].device_tag); path 1438 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info->ext_disp_conn_info.path[i].device_acpi_enum = path 1440 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info_v11->extdispconninfo.path[i].device_acpi_enum); path 1441 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info->ext_disp_conn_info.path[i].ext_aux_ddc_lut_index = path 1442 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info_v11->extdispconninfo.path[i].auxddclut_index; path 1443 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info->ext_disp_conn_info.path[i].ext_hpd_pin_lut_index = path 1444 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info_v11->extdispconninfo.path[i].hpdlut_index; path 1445 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info->ext_disp_conn_info.path[i].channel_mapping.raw = path 1446 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info_v11->extdispconninfo.path[i].channelmapping; path 1447 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c info->ext_disp_conn_info.path[i].caps = path 1448 drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c le16_to_cpu(info_v11->extdispconninfo.path[i].caps); path 1356 drivers/gpu/drm/amd/display/dc/core/dc_link.c struct external_display_path *path = path 1357 drivers/gpu/drm/amd/display/dc/core/dc_link.c &info.ext_disp_conn_info.path[i]; path 1358 drivers/gpu/drm/amd/display/dc/core/dc_link.c if (path->device_connector_id.enum_id == link->link_id.enum_id path 1359 drivers/gpu/drm/amd/display/dc/core/dc_link.c && path->device_connector_id.id == link->link_id.id path 1360 drivers/gpu/drm/amd/display/dc/core/dc_link.c && path->device_connector_id.type == link->link_id.type) { path 1363 drivers/gpu/drm/amd/display/dc/core/dc_link.c && path->device_acpi_enum == link->device_tag.acpi_device) { path 1364 drivers/gpu/drm/amd/display/dc/core/dc_link.c link->ddi_channel_mapping = path->channel_mapping; path 1365 drivers/gpu/drm/amd/display/dc/core/dc_link.c link->chip_caps = path->caps; path 1366 drivers/gpu/drm/amd/display/dc/core/dc_link.c } else if (path->device_tag == path 1368 drivers/gpu/drm/amd/display/dc/core/dc_link.c link->ddi_channel_mapping = path->channel_mapping; path 1369 drivers/gpu/drm/amd/display/dc/core/dc_link.c link->chip_caps = path->caps; path 311 drivers/gpu/drm/amd/display/include/grph_object_ctrl_defs.h } path[MAX_NUMBER_OF_EXT_DISPLAY_PATH]; path 985 drivers/gpu/drm/amd/include/atomfirmware.h struct atom_ext_display_path path[7]; // total of fixed 7 entries. path 1789 drivers/gpu/drm/drm_connector.c const char *path) path 1796 drivers/gpu/drm/drm_connector.c strlen(path) + 1, path 1797 drivers/gpu/drm/drm_connector.c path, path 26 drivers/gpu/drm/drm_edid_load.c int __drm_set_edid_firmware_path(const char *path) path 28 drivers/gpu/drm/drm_edid_load.c scnprintf(edid_firmware, sizeof(edid_firmware), "%s", path); path 492 drivers/gpu/drm/i915/gt/uc/intel_uc.c intel_uc_fw_type_repr(INTEL_UC_FW_TYPE_GUC), guc->fw.path, path 500 drivers/gpu/drm/i915/gt/uc/intel_uc.c huc->fw.path, path 33 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c uc_fw->path : intel_uc_fw_status_repr(status)); path 73 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c const char *path; path 77 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c { .major = major_, .minor = minor_, .path = path_ } path 113 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c uc_fw->path = blob->path; path 136 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c uc_fw->path = NULL; path 142 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c uc_fw->path = NULL; path 162 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c const char *path = NULL; path 166 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c path = __override_guc_firmware_path(); path 169 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c path = __override_huc_firmware_path(); path 173 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c if (unlikely(path)) { path 174 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c uc_fw->path = path; path 200 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c GEM_BUG_ON(uc_fw->path); path 209 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c intel_uc_fw_change_status(uc_fw, uc_fw->path ? *uc_fw->path ? path 223 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c uc_fw->path = "<invalid>"; path 279 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c err = request_firmware(&fw, uc_fw->path, dev); path 286 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c intel_uc_fw_type_repr(uc_fw->type), uc_fw->path, path 300 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c intel_uc_fw_type_repr(uc_fw->type), uc_fw->path, path 312 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c intel_uc_fw_type_repr(uc_fw->type), uc_fw->path, path 323 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c intel_uc_fw_type_repr(uc_fw->type), uc_fw->path, path 333 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c intel_uc_fw_type_repr(uc_fw->type), uc_fw->path, path 363 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c intel_uc_fw_type_repr(uc_fw->type), uc_fw->path, path 391 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c intel_uc_fw_type_repr(uc_fw->type), uc_fw->path, err); path 528 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c intel_uc_fw_type_repr(uc_fw->type), uc_fw->path, path 608 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c intel_uc_fw_type_repr(uc_fw->type), uc_fw->path); path 70 drivers/gpu/drm/i915/gt/uc/intel_uc_fw.h const char *path; path 216 drivers/gpu/drm/i915/gvt/firmware.c char *path; path 220 drivers/gpu/drm/i915/gvt/firmware.c path = kmalloc(PATH_MAX, GFP_KERNEL); path 221 drivers/gpu/drm/i915/gvt/firmware.c if (!path) path 226 drivers/gpu/drm/i915/gvt/firmware.c kfree(path); path 234 drivers/gpu/drm/i915/gvt/firmware.c kfree(path); path 241 drivers/gpu/drm/i915/gvt/firmware.c sprintf(path, "%s/vid_0x%04x_did_0x%04x_rid_0x%02x.golden_hw_state", path 245 drivers/gpu/drm/i915/gvt/firmware.c gvt_dbg_core("request hw state firmware %s...\n", path); path 247 drivers/gpu/drm/i915/gvt/firmware.c ret = request_firmware(&fw, path, &dev_priv->drm.pdev->dev); path 248 drivers/gpu/drm/i915/gvt/firmware.c kfree(path); path 915 drivers/gpu/drm/i915/i915_gpu_error.c kfree(error_uc->guc_fw.path); path 916 drivers/gpu/drm/i915/i915_gpu_error.c kfree(error_uc->huc_fw.path); path 1485 drivers/gpu/drm/i915/i915_gpu_error.c error_uc->guc_fw.path = kstrdup(uc->guc.fw.path, ALLOW_FAIL); path 1486 drivers/gpu/drm/i915/i915_gpu_error.c error_uc->huc_fw.path = kstrdup(uc->huc.fw.path, ALLOW_FAIL); path 538 drivers/gpu/drm/mediatek/mtk_drm_crtc.c const enum mtk_ddp_comp_id *path, unsigned int path_len) path 550 drivers/gpu/drm/mediatek/mtk_drm_crtc.c if (!path) path 554 drivers/gpu/drm/mediatek/mtk_drm_crtc.c enum mtk_ddp_comp_id comp_id = path[i]; path 586 drivers/gpu/drm/mediatek/mtk_drm_crtc.c enum mtk_ddp_comp_id comp_id = path[i]; path 20 drivers/gpu/drm/mediatek/mtk_drm_crtc.h const enum mtk_ddp_comp_id *path, path 31 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c struct icc_path *path[2]; path 44 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c dpu_mdss->path[0] = path0; path 48 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c dpu_mdss->path[1] = path1; path 62 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c icc_set_bw(dpu_mdss->path[i], avg_bw, kBps_to_icc(MAX_BW)); path 198 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c icc_set_bw(dpu_mdss->path[i], 0, 0); path 221 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c icc_put(dpu_mdss->path[i]); path 1071 drivers/gpu/drm/nouveau/dispnv50/disp.c const char *path, struct nv50_mstc **pmstc) path 1100 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_connector_set_path_property(&mstc->connector, path); path 1181 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_dp_mst_port *port, const char *path) path 1187 drivers/gpu/drm/nouveau/dispnv50/disp.c ret = nv50_mstc_new(mstm, port, path, &mstc); path 581 drivers/gpu/drm/qxl/qxl_dev.h QXLPHYSICAL path; path 566 drivers/gpu/drm/radeon/radeon_atombios.c ATOM_DISPLAY_OBJECT_PATH *path; path 568 drivers/gpu/drm/radeon/radeon_atombios.c path = (ATOM_DISPLAY_OBJECT_PATH *) addr; path 569 drivers/gpu/drm/radeon/radeon_atombios.c path_size += le16_to_cpu(path->usSize); path 571 drivers/gpu/drm/radeon/radeon_atombios.c if (device_support & le16_to_cpu(path->usDeviceTag)) { path 575 drivers/gpu/drm/radeon/radeon_atombios.c (le16_to_cpu(path->usConnObjectId) & OBJECT_ID_MASK) path 578 drivers/gpu/drm/radeon/radeon_atombios.c (le16_to_cpu(path->usConnObjectId) & ENUM_ID_MASK) path 581 drivers/gpu/drm/radeon/radeon_atombios.c (le16_to_cpu(path->usConnObjectId) & path 585 drivers/gpu/drm/radeon/radeon_atombios.c if (le16_to_cpu(path->usDeviceTag) == path 649 drivers/gpu/drm/radeon/radeon_atombios.c for (j = 0; j < ((le16_to_cpu(path->usSize) - 8) / 2); j++) { path 653 drivers/gpu/drm/radeon/radeon_atombios.c (le16_to_cpu(path->usGraphicObjIds[j]) & path 656 drivers/gpu/drm/radeon/radeon_atombios.c (le16_to_cpu(path->usGraphicObjIds[j]) & path 659 drivers/gpu/drm/radeon/radeon_atombios.c (le16_to_cpu(path->usGraphicObjIds[j]) & path 665 drivers/gpu/drm/radeon/radeon_atombios.c if (le16_to_cpu(path->usGraphicObjIds[j]) == encoder_obj) { path 688 drivers/gpu/drm/radeon/radeon_atombios.c (path-> path 696 drivers/gpu/drm/radeon/radeon_atombios.c if (le16_to_cpu(path->usGraphicObjIds[j]) == router_obj_id) { path 716 drivers/gpu/drm/radeon/radeon_atombios.c if (le16_to_cpu(path->usConnObjectId) == path 766 drivers/gpu/drm/radeon/radeon_atombios.c if ((le16_to_cpu(path->usDeviceTag) & path 769 drivers/gpu/drm/radeon/radeon_atombios.c if (le16_to_cpu(path->usConnObjectId) == path 824 drivers/gpu/drm/radeon/radeon_atombios.c conn_id = le16_to_cpu(path->usConnObjectId); path 827 drivers/gpu/drm/radeon/radeon_atombios.c (dev, le16_to_cpu(path->usDeviceTag), &connector_type, path 833 drivers/gpu/drm/radeon/radeon_atombios.c le16_to_cpu(path-> path 23 drivers/gpu/drm/xen/xen_drm_front_cfg.c const char *path, int index) path 28 drivers/gpu/drm/xen/xen_drm_front_cfg.c GFP_KERNEL, "%s/%d", path, index); path 271 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c const char *path, const char *node_ring, path 278 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c ret = xenbus_printf(xbt, path, node_ring, "%u", evtchnl->gref); path 285 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c ret = xenbus_printf(xbt, path, node_chnl, "%u", evtchnl->port); path 70 drivers/hwtracing/coresight/coresight-etm-perf.c return per_cpu_ptr(data->path, cpu); path 161 drivers/hwtracing/coresight/coresight-etm-perf.c free_percpu(event_data->path); path 190 drivers/hwtracing/coresight/coresight-etm-perf.c event_data->path = alloc_percpu(struct list_head *); path 192 drivers/hwtracing/coresight/coresight-etm-perf.c if (!event_data->path) { path 242 drivers/hwtracing/coresight/coresight-etm-perf.c struct list_head *path; path 261 drivers/hwtracing/coresight/coresight-etm-perf.c path = coresight_build_path(csdev, sink); path 262 drivers/hwtracing/coresight/coresight-etm-perf.c if (IS_ERR(path)) { path 267 drivers/hwtracing/coresight/coresight-etm-perf.c *etm_event_cpu_path_ptr(event_data, cpu) = path; path 300 drivers/hwtracing/coresight/coresight-etm-perf.c struct list_head *path; path 313 drivers/hwtracing/coresight/coresight-etm-perf.c path = etm_event_cpu_path(event_data, cpu); path 315 drivers/hwtracing/coresight/coresight-etm-perf.c sink = coresight_get_sink(path); path 320 drivers/hwtracing/coresight/coresight-etm-perf.c if (coresight_enable_path(path, CS_MODE_PERF, handle)) path 334 drivers/hwtracing/coresight/coresight-etm-perf.c coresight_disable_path(path); path 350 drivers/hwtracing/coresight/coresight-etm-perf.c struct list_head *path; path 358 drivers/hwtracing/coresight/coresight-etm-perf.c path = etm_event_cpu_path(event_data, cpu); path 359 drivers/hwtracing/coresight/coresight-etm-perf.c if (!path) path 362 drivers/hwtracing/coresight/coresight-etm-perf.c sink = coresight_get_sink(path); path 386 drivers/hwtracing/coresight/coresight-etm-perf.c coresight_disable_path(path); path 57 drivers/hwtracing/coresight/coresight-etm-perf.h struct list_head * __percpu *path; path 147 drivers/hwtracing/coresight/coresight-priv.h void coresight_disable_path(struct list_head *path); path 148 drivers/hwtracing/coresight/coresight-priv.h int coresight_enable_path(struct list_head *path, u32 mode, void *sink_data); path 149 drivers/hwtracing/coresight/coresight-priv.h struct coresight_device *coresight_get_sink(struct list_head *path); path 154 drivers/hwtracing/coresight/coresight-priv.h void coresight_release_path(struct list_head *path); path 360 drivers/hwtracing/coresight/coresight.c static void coresight_disable_path_from(struct list_head *path, path 367 drivers/hwtracing/coresight/coresight.c nd = list_first_entry(path, struct coresight_node, link); path 369 drivers/hwtracing/coresight/coresight.c list_for_each_entry_continue(nd, path, link) { path 380 drivers/hwtracing/coresight/coresight.c type = (csdev == coresight_get_sink(path)) ? path 407 drivers/hwtracing/coresight/coresight.c void coresight_disable_path(struct list_head *path) path 409 drivers/hwtracing/coresight/coresight.c coresight_disable_path_from(path, NULL); path 412 drivers/hwtracing/coresight/coresight.c int coresight_enable_path(struct list_head *path, u32 mode, void *sink_data) path 420 drivers/hwtracing/coresight/coresight.c list_for_each_entry_reverse(nd, path, link) { path 431 drivers/hwtracing/coresight/coresight.c type = (csdev == coresight_get_sink(path)) ? path 465 drivers/hwtracing/coresight/coresight.c coresight_disable_path_from(path, nd); path 469 drivers/hwtracing/coresight/coresight.c struct coresight_device *coresight_get_sink(struct list_head *path) path 473 drivers/hwtracing/coresight/coresight.c if (!path) path 476 drivers/hwtracing/coresight/coresight.c csdev = list_last_entry(path, struct coresight_node, link)->csdev; path 622 drivers/hwtracing/coresight/coresight.c struct list_head *path) path 638 drivers/hwtracing/coresight/coresight.c _coresight_build_path(child_dev, sink, path) == 0) { path 660 drivers/hwtracing/coresight/coresight.c list_add(&node->link, path); path 668 drivers/hwtracing/coresight/coresight.c struct list_head *path; path 674 drivers/hwtracing/coresight/coresight.c path = kzalloc(sizeof(struct list_head), GFP_KERNEL); path 675 drivers/hwtracing/coresight/coresight.c if (!path) path 678 drivers/hwtracing/coresight/coresight.c INIT_LIST_HEAD(path); path 680 drivers/hwtracing/coresight/coresight.c rc = _coresight_build_path(source, sink, path); path 682 drivers/hwtracing/coresight/coresight.c kfree(path); path 686 drivers/hwtracing/coresight/coresight.c return path; path 696 drivers/hwtracing/coresight/coresight.c void coresight_release_path(struct list_head *path) path 701 drivers/hwtracing/coresight/coresight.c list_for_each_entry_safe(nd, next, path, link) { path 709 drivers/hwtracing/coresight/coresight.c kfree(path); path 710 drivers/hwtracing/coresight/coresight.c path = NULL; path 745 drivers/hwtracing/coresight/coresight.c struct list_head *path; path 777 drivers/hwtracing/coresight/coresight.c path = coresight_build_path(csdev, sink); path 778 drivers/hwtracing/coresight/coresight.c if (IS_ERR(path)) { path 780 drivers/hwtracing/coresight/coresight.c ret = PTR_ERR(path); path 784 drivers/hwtracing/coresight/coresight.c ret = coresight_enable_path(path, CS_MODE_SYSFS, NULL); path 802 drivers/hwtracing/coresight/coresight.c per_cpu(tracer_path, cpu) = path; path 805 drivers/hwtracing/coresight/coresight.c stm_path = path; path 817 drivers/hwtracing/coresight/coresight.c coresight_disable_path(path); path 820 drivers/hwtracing/coresight/coresight.c coresight_release_path(path); path 828 drivers/hwtracing/coresight/coresight.c struct list_head *path = NULL; path 842 drivers/hwtracing/coresight/coresight.c path = per_cpu(tracer_path, cpu); path 846 drivers/hwtracing/coresight/coresight.c path = stm_path; path 854 drivers/hwtracing/coresight/coresight.c coresight_disable_path(path); path 855 drivers/hwtracing/coresight/coresight.c coresight_release_path(path); path 245 drivers/infiniband/core/cm.c struct sa_path_rec path[0]; path 513 drivers/infiniband/core/cm.c get_cm_port_from_path(struct sa_path_rec *path, const struct ib_gid_attr *attr) path 538 drivers/infiniband/core/cm.c &path->sgid, path 539 drivers/infiniband/core/cm.c sa_conv_pathrec_to_gid_type(path), path 553 drivers/infiniband/core/cm.c static int cm_init_av_by_path(struct sa_path_rec *path, path 563 drivers/infiniband/core/cm.c port = get_cm_port_from_path(path, sgid_attr); path 569 drivers/infiniband/core/cm.c be16_to_cpu(path->pkey), &av->pkey_index); path 584 drivers/infiniband/core/cm.c ret = ib_init_ah_attr_from_path(cm_dev->ib_device, port->port_num, path, path 589 drivers/infiniband/core/cm.c av->timeout = path->packet_life_time + 1; path 1539 drivers/infiniband/core/cm.c struct sa_path_rec *path, union ib_gid *gid) path 1542 drivers/infiniband/core/cm.c path->rec_type = SA_PATH_REC_TYPE_OPA; path 1544 drivers/infiniband/core/cm.c path->rec_type = SA_PATH_REC_TYPE_IB; path 1658 drivers/infiniband/core/cm.c struct sa_path_rec *path) path 1664 drivers/infiniband/core/cm.c (ib_is_opa_gid(&path->sgid))) { path 1673 drivers/infiniband/core/cm.c path->sgid = sgid; path 1689 drivers/infiniband/core/cm.c param->primary_path = &work->path[0]; path 1692 drivers/infiniband/core/cm.c param->alternate_path = &work->path[1]; path 1978 drivers/infiniband/core/cm.c memset(&work->path[0], 0, sizeof(work->path[0])); path 1980 drivers/infiniband/core/cm.c memset(&work->path[1], 0, sizeof(work->path[1])); path 1987 drivers/infiniband/core/cm.c work->path[0].rec_type = path 1992 drivers/infiniband/core/cm.c &work->path[0], path 1996 drivers/infiniband/core/cm.c work->path[1].rec_type = work->path[0].rec_type; path 1997 drivers/infiniband/core/cm.c cm_format_paths_from_req(req_msg, &work->path[0], path 1998 drivers/infiniband/core/cm.c &work->path[1]); path 2000 drivers/infiniband/core/cm.c sa_path_set_dmac(&work->path[0], path 2002 drivers/infiniband/core/cm.c work->path[0].hop_limit = grh->hop_limit; path 2003 drivers/infiniband/core/cm.c ret = cm_init_av_by_path(&work->path[0], gid_attr, &cm_id_priv->av, path 2010 drivers/infiniband/core/cm.c &work->path[0].sgid); path 2016 drivers/infiniband/core/cm.c &work->path[0].sgid, path 2017 drivers/infiniband/core/cm.c sizeof(work->path[0].sgid), path 2022 drivers/infiniband/core/cm.c ret = cm_init_av_by_path(&work->path[1], NULL, path 2026 drivers/infiniband/core/cm.c &work->path[0].sgid, path 2027 drivers/infiniband/core/cm.c sizeof(work->path[0].sgid), NULL, 0); path 3178 drivers/infiniband/core/cm.c struct sa_path_rec *path) path 3182 drivers/infiniband/core/cm.c if (path->rec_type != SA_PATH_REC_TYPE_OPA) { path 3183 drivers/infiniband/core/cm.c sa_path_set_dlid(path, ntohs(lap_msg->alt_local_lid)); path 3184 drivers/infiniband/core/cm.c sa_path_set_slid(path, ntohs(lap_msg->alt_remote_lid)); path 3187 drivers/infiniband/core/cm.c sa_path_set_dlid(path, lid); path 3190 drivers/infiniband/core/cm.c sa_path_set_slid(path, lid); path 3195 drivers/infiniband/core/cm.c struct sa_path_rec *path, path 3198 drivers/infiniband/core/cm.c path->dgid = lap_msg->alt_local_gid; path 3199 drivers/infiniband/core/cm.c path->sgid = lap_msg->alt_remote_gid; path 3200 drivers/infiniband/core/cm.c path->flow_label = cm_lap_get_flow_label(lap_msg); path 3201 drivers/infiniband/core/cm.c path->hop_limit = lap_msg->alt_hop_limit; path 3202 drivers/infiniband/core/cm.c path->traffic_class = cm_lap_get_traffic_class(lap_msg); path 3203 drivers/infiniband/core/cm.c path->reversible = 1; path 3204 drivers/infiniband/core/cm.c path->pkey = cm_id_priv->pkey; path 3205 drivers/infiniband/core/cm.c path->sl = cm_lap_get_sl(lap_msg); path 3206 drivers/infiniband/core/cm.c path->mtu_selector = IB_SA_EQ; path 3207 drivers/infiniband/core/cm.c path->mtu = cm_id_priv->path_mtu; path 3208 drivers/infiniband/core/cm.c path->rate_selector = IB_SA_EQ; path 3209 drivers/infiniband/core/cm.c path->rate = cm_lap_get_packet_rate(lap_msg); path 3210 drivers/infiniband/core/cm.c path->packet_life_time_selector = IB_SA_EQ; path 3211 drivers/infiniband/core/cm.c path->packet_life_time = cm_lap_get_local_ack_timeout(lap_msg); path 3212 drivers/infiniband/core/cm.c path->packet_life_time -= (path->packet_life_time > 0); path 3213 drivers/infiniband/core/cm.c cm_format_path_lid_from_lap(lap_msg, path); path 3239 drivers/infiniband/core/cm.c memset(&work->path[0], 0, sizeof(work->path[1])); path 3242 drivers/infiniband/core/cm.c &work->path[0], path 3244 drivers/infiniband/core/cm.c param->alternate_path = &work->path[0]; path 3472 drivers/infiniband/core/cm.c sidr_req_msg->pkey = param->path->pkey; path 3488 drivers/infiniband/core/cm.c if (!param->path || (param->private_data && path 3493 drivers/infiniband/core/cm.c ret = cm_init_av_by_path(param->path, param->sgid_attr, path 4048 drivers/infiniband/core/cm.c work = kmalloc(struct_size(work, path, paths), GFP_KERNEL); path 1237 drivers/infiniband/core/cma.c const struct sa_path_rec *path) path 1245 drivers/infiniband/core/cma.c if (path) { path 1246 drivers/infiniband/core/cma.c ib->sib_pkey = path->pkey; path 1247 drivers/infiniband/core/cma.c ib->sib_flowinfo = path->flow_label; path 1248 drivers/infiniband/core/cma.c memcpy(&ib->sib_addr, &path->sgid, 16); path 1249 drivers/infiniband/core/cma.c ib->sib_sid = path->service_id; path 1263 drivers/infiniband/core/cma.c if (path) { path 1264 drivers/infiniband/core/cma.c ib->sib_pkey = path->pkey; path 1265 drivers/infiniband/core/cma.c ib->sib_flowinfo = path->flow_label; path 1266 drivers/infiniband/core/cma.c memcpy(&ib->sib_addr, &path->dgid, 16); path 2012 drivers/infiniband/core/cma.c struct sa_path_rec *path = ib_event->param.req_rcvd.primary_path; path 2038 drivers/infiniband/core/cma.c rt->path_rec[0] = *path; path 3780 drivers/infiniband/core/cma.c req.path = id_priv->id.route.path_rec; path 1790 drivers/infiniband/hw/mlx4/qp.c static void mlx4_set_sched(struct mlx4_qp_path *path, u8 port) path 1792 drivers/infiniband/hw/mlx4/qp.c path->sched_queue = (path->sched_queue & 0xbf) | ((port - 1) << 6); path 1797 drivers/infiniband/hw/mlx4/qp.c u64 smac, u16 vlan_tag, struct mlx4_qp_path *path, path 1804 drivers/infiniband/hw/mlx4/qp.c path->grh_mylmc = rdma_ah_get_path_bits(ah) & 0x7f; path 1805 drivers/infiniband/hw/mlx4/qp.c path->rlid = cpu_to_be16(rdma_ah_get_dlid(ah)); path 1807 drivers/infiniband/hw/mlx4/qp.c path->static_rate = rdma_ah_get_static_rate(ah) + path 1809 drivers/infiniband/hw/mlx4/qp.c while (path->static_rate > IB_RATE_2_5_GBPS + MLX4_STAT_RATE_OFFSET && path 1810 drivers/infiniband/hw/mlx4/qp.c !(1 << path->static_rate & dev->dev->caps.stat_rate_support)) path 1811 drivers/infiniband/hw/mlx4/qp.c --path->static_rate; path 1813 drivers/infiniband/hw/mlx4/qp.c path->static_rate = 0; path 1828 drivers/infiniband/hw/mlx4/qp.c path->grh_mylmc |= 1 << 7; path 1829 drivers/infiniband/hw/mlx4/qp.c path->mgid_index = real_sgid_index; path 1830 drivers/infiniband/hw/mlx4/qp.c path->hop_limit = grh->hop_limit; path 1831 drivers/infiniband/hw/mlx4/qp.c path->tclass_flowlabel = path 1834 drivers/infiniband/hw/mlx4/qp.c memcpy(path->rgid, grh->dgid.raw, 16); path 1841 drivers/infiniband/hw/mlx4/qp.c path->sched_queue = MLX4_IB_DEFAULT_SCHED_QUEUE | path 1844 drivers/infiniband/hw/mlx4/qp.c path->feup |= MLX4_FEUP_FORCE_ETH_UP; path 1857 drivers/infiniband/hw/mlx4/qp.c path->vlan_index = vidx; path 1859 drivers/infiniband/hw/mlx4/qp.c path->vlan_index = smac_info->vlan_index; path 1870 drivers/infiniband/hw/mlx4/qp.c path->vlan_index = vidx; path 1872 drivers/infiniband/hw/mlx4/qp.c path->feup |= MLX4_FVL_FORCE_ETH_VLAN; path 1873 drivers/infiniband/hw/mlx4/qp.c path->fl = 1 << 6; path 1901 drivers/infiniband/hw/mlx4/qp.c memcpy(path->dmac, ah->roce.dmac, 6); path 1902 drivers/infiniband/hw/mlx4/qp.c path->ackto = MLX4_IB_LINK_TYPE_ETH; path 1904 drivers/infiniband/hw/mlx4/qp.c path->grh_mylmc = (u8) (smac_index) | 0x80; path 1906 drivers/infiniband/hw/mlx4/qp.c path->sched_queue = MLX4_IB_DEFAULT_SCHED_QUEUE | path 1916 drivers/infiniband/hw/mlx4/qp.c struct mlx4_qp_path *path, u8 port, path 1922 drivers/infiniband/hw/mlx4/qp.c path, &mqp->pri, port); path 1929 drivers/infiniband/hw/mlx4/qp.c struct mlx4_qp_path *path, u8 port) path 1934 drivers/infiniband/hw/mlx4/qp.c path, &mqp->alt, port); path 3990 drivers/infiniband/hw/mlx4/qp.c struct mlx4_qp_path *path) path 3993 drivers/infiniband/hw/mlx4/qp.c u8 port_num = path->sched_queue & 0x40 ? 2 : 1; path 4001 drivers/infiniband/hw/mlx4/qp.c rdma_ah_set_sl(ah_attr, ((path->sched_queue >> 3) & 0x7) | path 4002 drivers/infiniband/hw/mlx4/qp.c ((path->sched_queue & 4) << 1)); path 4004 drivers/infiniband/hw/mlx4/qp.c rdma_ah_set_sl(ah_attr, (path->sched_queue >> 2) & 0xf); path 4007 drivers/infiniband/hw/mlx4/qp.c rdma_ah_set_dlid(ah_attr, be16_to_cpu(path->rlid)); path 4008 drivers/infiniband/hw/mlx4/qp.c rdma_ah_set_path_bits(ah_attr, path->grh_mylmc & 0x7f); path 4010 drivers/infiniband/hw/mlx4/qp.c path->static_rate ? path->static_rate - 5 : 0); path 4011 drivers/infiniband/hw/mlx4/qp.c if (path->grh_mylmc & (1 << 7)) { path 4013 drivers/infiniband/hw/mlx4/qp.c be32_to_cpu(path->tclass_flowlabel) & 0xfffff, path 4014 drivers/infiniband/hw/mlx4/qp.c path->mgid_index, path 4015 drivers/infiniband/hw/mlx4/qp.c path->hop_limit, path 4016 drivers/infiniband/hw/mlx4/qp.c (be32_to_cpu(path->tclass_flowlabel) path 4018 drivers/infiniband/hw/mlx4/qp.c rdma_ah_set_dgid_raw(ah_attr, path->rgid); path 2909 drivers/infiniband/hw/mlx5/qp.c struct mlx5_qp_path *path, u8 port, int attr_mask, path 2920 drivers/infiniband/hw/mlx5/qp.c path->pkey_index = cpu_to_be16(alt ? attr->alt_pkey_index : path 2937 drivers/infiniband/hw/mlx5/qp.c memcpy(path->rmac, ah->roce.dmac, sizeof(ah->roce.dmac)); path 2942 drivers/infiniband/hw/mlx5/qp.c path->udp_sport = path 2944 drivers/infiniband/hw/mlx5/qp.c path->dci_cfi_prio_sl = (sl & 0x7) << 4; path 2947 drivers/infiniband/hw/mlx5/qp.c path->ecn_dscp = (grh->traffic_class >> 2) & 0x3f; path 2949 drivers/infiniband/hw/mlx5/qp.c path->fl_free_ar = (path_flags & MLX5_PATH_FLAG_FL) ? 0x80 : 0; path 2950 drivers/infiniband/hw/mlx5/qp.c path->fl_free_ar |= path 2952 drivers/infiniband/hw/mlx5/qp.c path->rlid = cpu_to_be16(rdma_ah_get_dlid(ah)); path 2953 drivers/infiniband/hw/mlx5/qp.c path->grh_mlid = rdma_ah_get_path_bits(ah) & 0x7f; path 2955 drivers/infiniband/hw/mlx5/qp.c path->grh_mlid |= 1 << 7; path 2956 drivers/infiniband/hw/mlx5/qp.c path->dci_cfi_prio_sl = sl & 0xf; path 2960 drivers/infiniband/hw/mlx5/qp.c path->mgid_index = grh->sgid_index; path 2961 drivers/infiniband/hw/mlx5/qp.c path->hop_limit = grh->hop_limit; path 2962 drivers/infiniband/hw/mlx5/qp.c path->tclass_flowlabel = path 2965 drivers/infiniband/hw/mlx5/qp.c memcpy(path->rgid, grh->dgid.raw, 16); path 2971 drivers/infiniband/hw/mlx5/qp.c path->static_rate = err; path 2972 drivers/infiniband/hw/mlx5/qp.c path->port = port; path 2975 drivers/infiniband/hw/mlx5/qp.c path->ackto_lt = (alt ? attr->alt_timeout : attr->timeout) << 3; path 5482 drivers/infiniband/hw/mlx5/qp.c struct mlx5_qp_path *path) path 5487 drivers/infiniband/hw/mlx5/qp.c if (!path->port || path->port > ibdev->num_ports) path 5490 drivers/infiniband/hw/mlx5/qp.c ah_attr->type = rdma_ah_find_type(&ibdev->ib_dev, path->port); path 5492 drivers/infiniband/hw/mlx5/qp.c rdma_ah_set_port_num(ah_attr, path->port); path 5493 drivers/infiniband/hw/mlx5/qp.c rdma_ah_set_sl(ah_attr, path->dci_cfi_prio_sl & 0xf); path 5495 drivers/infiniband/hw/mlx5/qp.c rdma_ah_set_dlid(ah_attr, be16_to_cpu(path->rlid)); path 5496 drivers/infiniband/hw/mlx5/qp.c rdma_ah_set_path_bits(ah_attr, path->grh_mlid & 0x7f); path 5498 drivers/infiniband/hw/mlx5/qp.c path->static_rate ? path->static_rate - 5 : 0); path 5500 drivers/infiniband/hw/mlx5/qp.c if (path->grh_mlid & (1 << 7) || path 5502 drivers/infiniband/hw/mlx5/qp.c u32 tc_fl = be32_to_cpu(path->tclass_flowlabel); path 5506 drivers/infiniband/hw/mlx5/qp.c path->mgid_index, path 5507 drivers/infiniband/hw/mlx5/qp.c path->hop_limit, path 5509 drivers/infiniband/hw/mlx5/qp.c rdma_ah_set_dgid_raw(ah_attr, path->rgid); path 399 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_qp_path *path) path 401 drivers/infiniband/hw/mthca/mthca_qp.c u8 port_num = (be32_to_cpu(path->port_pkey) >> 24) & 0x3; path 410 drivers/infiniband/hw/mthca/mthca_qp.c rdma_ah_set_dlid(ah_attr, be16_to_cpu(path->rlid)); path 411 drivers/infiniband/hw/mthca/mthca_qp.c rdma_ah_set_sl(ah_attr, be32_to_cpu(path->sl_tclass_flowlabel) >> 28); path 412 drivers/infiniband/hw/mthca/mthca_qp.c rdma_ah_set_path_bits(ah_attr, path->g_mylmc & 0x7f); path 415 drivers/infiniband/hw/mthca/mthca_qp.c path->static_rate & 0xf, path 417 drivers/infiniband/hw/mthca/mthca_qp.c if (path->g_mylmc & (1 << 7)) { path 418 drivers/infiniband/hw/mthca/mthca_qp.c u32 tc_fl = be32_to_cpu(path->sl_tclass_flowlabel); path 422 drivers/infiniband/hw/mthca/mthca_qp.c path->mgid_index & path 424 drivers/infiniband/hw/mthca/mthca_qp.c path->hop_limit, path 426 drivers/infiniband/hw/mthca/mthca_qp.c rdma_ah_set_dgid_raw(ah_attr, path->rgid); path 523 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_qp_path *path, u8 port) path 525 drivers/infiniband/hw/mthca/mthca_qp.c path->g_mylmc = rdma_ah_get_path_bits(ah) & 0x7f; path 526 drivers/infiniband/hw/mthca/mthca_qp.c path->rlid = cpu_to_be16(rdma_ah_get_dlid(ah)); path 527 drivers/infiniband/hw/mthca/mthca_qp.c path->static_rate = mthca_get_rate(dev, rdma_ah_get_static_rate(ah), path 540 drivers/infiniband/hw/mthca/mthca_qp.c path->g_mylmc |= 1 << 7; path 541 drivers/infiniband/hw/mthca/mthca_qp.c path->mgid_index = grh->sgid_index; path 542 drivers/infiniband/hw/mthca/mthca_qp.c path->hop_limit = grh->hop_limit; path 543 drivers/infiniband/hw/mthca/mthca_qp.c path->sl_tclass_flowlabel = path 547 drivers/infiniband/hw/mthca/mthca_qp.c memcpy(path->rgid, grh->dgid.raw, 16); path 549 drivers/infiniband/hw/mthca/mthca_qp.c path->sl_tclass_flowlabel = cpu_to_be32(rdma_ah_get_sl(ah) << path 577 drivers/infiniband/ulp/ipoib/ipoib.h struct ipoib_path *path); path 672 drivers/infiniband/ulp/ipoib/ipoib.h struct ipoib_cm_tx *ipoib_cm_create_tx(struct net_device *dev, struct ipoib_path *path, path 751 drivers/infiniband/ulp/ipoib/ipoib.h struct ipoib_cm_tx *ipoib_cm_create_tx(struct net_device *dev, struct ipoib_path *path, path 1305 drivers/infiniband/ulp/ipoib/ipoib_cm.c struct ipoib_cm_tx *ipoib_cm_create_tx(struct net_device *dev, struct ipoib_path *path, path 1349 drivers/infiniband/ulp/ipoib/ipoib_cm.c struct ipoib_path *path; path 1368 drivers/infiniband/ulp/ipoib/ipoib_cm.c path = __path_find(dev, neigh->daddr + QPN_AND_OPTIONS_OFFSET); path 1369 drivers/infiniband/ulp/ipoib/ipoib_cm.c if (!path) { path 1375 drivers/infiniband/ulp/ipoib/ipoib_cm.c memcpy(&pathrec, &path->pathrec, sizeof(pathrec)); path 200 drivers/infiniband/ulp/ipoib/ipoib_fs.c struct ipoib_path path; path 206 drivers/infiniband/ulp/ipoib/ipoib_fs.c ipoib_path_iter_read(iter, &path); path 208 drivers/infiniband/ulp/ipoib/ipoib_fs.c format_gid(&path.pathrec.dgid, gid_buf); path 213 drivers/infiniband/ulp/ipoib/ipoib_fs.c gid_buf, sa_path_get_dlid(&path.pathrec) ? "yes" : "no"); path 215 drivers/infiniband/ulp/ipoib/ipoib_fs.c if (sa_path_get_dlid(&path.pathrec)) { path 216 drivers/infiniband/ulp/ipoib/ipoib_fs.c rate = ib_rate_to_mbps(path.pathrec.rate); path 222 drivers/infiniband/ulp/ipoib/ipoib_fs.c be32_to_cpu(sa_path_get_dlid(&path.pathrec)), path 223 drivers/infiniband/ulp/ipoib/ipoib_fs.c path.pathrec.sl, path 80 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_path path; path 559 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_path *path; path 563 drivers/infiniband/ulp/ipoib/ipoib_main.c path = rb_entry(n, struct ipoib_path, rb_node); path 565 drivers/infiniband/ulp/ipoib/ipoib_main.c ret = memcmp(gid, path->pathrec.dgid.raw, path 573 drivers/infiniband/ulp/ipoib/ipoib_main.c return path; path 579 drivers/infiniband/ulp/ipoib/ipoib_main.c static int __path_add(struct net_device *dev, struct ipoib_path *path) path 591 drivers/infiniband/ulp/ipoib/ipoib_main.c ret = memcmp(path->pathrec.dgid.raw, tpath->pathrec.dgid.raw, path 601 drivers/infiniband/ulp/ipoib/ipoib_main.c rb_link_node(&path->rb_node, pn, n); path 602 drivers/infiniband/ulp/ipoib/ipoib_main.c rb_insert_color(&path->rb_node, &priv->path_tree); path 604 drivers/infiniband/ulp/ipoib/ipoib_main.c list_add_tail(&path->list, &priv->path_list); path 609 drivers/infiniband/ulp/ipoib/ipoib_main.c static void path_free(struct net_device *dev, struct ipoib_path *path) path 613 drivers/infiniband/ulp/ipoib/ipoib_main.c while ((skb = __skb_dequeue(&path->queue))) path 619 drivers/infiniband/ulp/ipoib/ipoib_main.c ipoib_del_neighs_by_gid(dev, path->pathrec.dgid.raw); path 621 drivers/infiniband/ulp/ipoib/ipoib_main.c if (path->ah) path 622 drivers/infiniband/ulp/ipoib/ipoib_main.c ipoib_put_ah(path->ah); path 624 drivers/infiniband/ulp/ipoib/ipoib_main.c kfree(path); path 638 drivers/infiniband/ulp/ipoib/ipoib_main.c memset(iter->path.pathrec.dgid.raw, 0, 16); path 652 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_path *path; path 660 drivers/infiniband/ulp/ipoib/ipoib_main.c path = rb_entry(n, struct ipoib_path, rb_node); path 662 drivers/infiniband/ulp/ipoib/ipoib_main.c if (memcmp(iter->path.pathrec.dgid.raw, path->pathrec.dgid.raw, path 664 drivers/infiniband/ulp/ipoib/ipoib_main.c iter->path = *path; path 678 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_path *path) path 680 drivers/infiniband/ulp/ipoib/ipoib_main.c *path = iter->path; path 688 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_path *path, *tp; path 692 drivers/infiniband/ulp/ipoib/ipoib_main.c list_for_each_entry_safe(path, tp, &priv->path_list, list) { path 694 drivers/infiniband/ulp/ipoib/ipoib_main.c be32_to_cpu(sa_path_get_dlid(&path->pathrec)), path 695 drivers/infiniband/ulp/ipoib/ipoib_main.c path->pathrec.dgid.raw); path 696 drivers/infiniband/ulp/ipoib/ipoib_main.c if (path->ah) path 697 drivers/infiniband/ulp/ipoib/ipoib_main.c path->ah->valid = 0; path 714 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_path *path, *tp; path 723 drivers/infiniband/ulp/ipoib/ipoib_main.c list_for_each_entry(path, &remove_list, list) path 724 drivers/infiniband/ulp/ipoib/ipoib_main.c rb_erase(&path->rb_node, &priv->path_tree); path 726 drivers/infiniband/ulp/ipoib/ipoib_main.c list_for_each_entry_safe(path, tp, &remove_list, list) { path 727 drivers/infiniband/ulp/ipoib/ipoib_main.c if (path->query) path 728 drivers/infiniband/ulp/ipoib/ipoib_main.c ib_sa_cancel_query(path->query_id, path->query); path 731 drivers/infiniband/ulp/ipoib/ipoib_main.c wait_for_completion(&path->done); path 732 drivers/infiniband/ulp/ipoib/ipoib_main.c path_free(dev, path); path 745 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_path *path = path_ptr; path 746 drivers/infiniband/ulp/ipoib/ipoib_main.c struct net_device *dev = path->dev; path 761 drivers/infiniband/ulp/ipoib/ipoib_main.c status, path->pathrec.dgid.raw); path 783 drivers/infiniband/ulp/ipoib/ipoib_main.c if (memcmp(pathrec->dgid.raw, path->pathrec.dgid.raw, path 789 drivers/infiniband/ulp/ipoib/ipoib_main.c path->pathrec.dgid.raw); path 790 drivers/infiniband/ulp/ipoib/ipoib_main.c memcpy(pathrec->dgid.raw, path->pathrec.dgid.raw, path 794 drivers/infiniband/ulp/ipoib/ipoib_main.c path->pathrec = *pathrec; path 796 drivers/infiniband/ulp/ipoib/ipoib_main.c old_ah = path->ah; path 797 drivers/infiniband/ulp/ipoib/ipoib_main.c path->ah = ah; path 803 drivers/infiniband/ulp/ipoib/ipoib_main.c while ((skb = __skb_dequeue(&path->queue))) path 806 drivers/infiniband/ulp/ipoib/ipoib_main.c list_for_each_entry_safe(neigh, tn, &path->neigh_list, list) { path 818 drivers/infiniband/ulp/ipoib/ipoib_main.c kref_get(&path->ah->ref); path 819 drivers/infiniband/ulp/ipoib/ipoib_main.c neigh->ah = path->ah; path 824 drivers/infiniband/ulp/ipoib/ipoib_main.c path, path 835 drivers/infiniband/ulp/ipoib/ipoib_main.c path->ah->valid = 1; path 838 drivers/infiniband/ulp/ipoib/ipoib_main.c path->query = NULL; path 839 drivers/infiniband/ulp/ipoib/ipoib_main.c complete(&path->done); path 844 drivers/infiniband/ulp/ipoib/ipoib_main.c ipoib_del_neighs_by_gid(dev, path->pathrec.dgid.raw); path 859 drivers/infiniband/ulp/ipoib/ipoib_main.c static void init_path_rec(struct ipoib_dev_priv *priv, struct ipoib_path *path, path 862 drivers/infiniband/ulp/ipoib/ipoib_main.c path->dev = priv->dev; path 865 drivers/infiniband/ulp/ipoib/ipoib_main.c path->pathrec.rec_type = SA_PATH_REC_TYPE_OPA; path 867 drivers/infiniband/ulp/ipoib/ipoib_main.c path->pathrec.rec_type = SA_PATH_REC_TYPE_IB; path 869 drivers/infiniband/ulp/ipoib/ipoib_main.c memcpy(path->pathrec.dgid.raw, gid, sizeof(union ib_gid)); path 870 drivers/infiniband/ulp/ipoib/ipoib_main.c path->pathrec.sgid = priv->local_gid; path 871 drivers/infiniband/ulp/ipoib/ipoib_main.c path->pathrec.pkey = cpu_to_be16(priv->pkey); path 872 drivers/infiniband/ulp/ipoib/ipoib_main.c path->pathrec.numb_path = 1; path 873 drivers/infiniband/ulp/ipoib/ipoib_main.c path->pathrec.traffic_class = priv->broadcast->mcmember.traffic_class; path 879 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_path *path; path 884 drivers/infiniband/ulp/ipoib/ipoib_main.c path = kzalloc(sizeof(*path), GFP_ATOMIC); path 885 drivers/infiniband/ulp/ipoib/ipoib_main.c if (!path) path 888 drivers/infiniband/ulp/ipoib/ipoib_main.c skb_queue_head_init(&path->queue); path 890 drivers/infiniband/ulp/ipoib/ipoib_main.c INIT_LIST_HEAD(&path->neigh_list); path 892 drivers/infiniband/ulp/ipoib/ipoib_main.c init_path_rec(priv, path, gid); path 894 drivers/infiniband/ulp/ipoib/ipoib_main.c return path; path 898 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_path *path) path 903 drivers/infiniband/ulp/ipoib/ipoib_main.c path->pathrec.dgid.raw); path 905 drivers/infiniband/ulp/ipoib/ipoib_main.c init_completion(&path->done); path 907 drivers/infiniband/ulp/ipoib/ipoib_main.c path->query_id = path 909 drivers/infiniband/ulp/ipoib/ipoib_main.c &path->pathrec, path 917 drivers/infiniband/ulp/ipoib/ipoib_main.c path, &path->query); path 918 drivers/infiniband/ulp/ipoib/ipoib_main.c if (path->query_id < 0) { path 919 drivers/infiniband/ulp/ipoib/ipoib_main.c ipoib_warn(priv, "ib_sa_path_rec_get failed: %d\n", path->query_id); path 920 drivers/infiniband/ulp/ipoib/ipoib_main.c path->query = NULL; path 921 drivers/infiniband/ulp/ipoib/ipoib_main.c complete(&path->done); path 922 drivers/infiniband/ulp/ipoib/ipoib_main.c return path->query_id; path 932 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_path *path; path 937 drivers/infiniband/ulp/ipoib/ipoib_main.c path = __path_find(dev, daddr + 4); path 938 drivers/infiniband/ulp/ipoib/ipoib_main.c if (!path) path 940 drivers/infiniband/ulp/ipoib/ipoib_main.c if (!path->query) path 941 drivers/infiniband/ulp/ipoib/ipoib_main.c path_rec_start(dev, path); path 951 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_path *path; path 972 drivers/infiniband/ulp/ipoib/ipoib_main.c path = __path_find(dev, daddr + 4); path 973 drivers/infiniband/ulp/ipoib/ipoib_main.c if (!path) { path 974 drivers/infiniband/ulp/ipoib/ipoib_main.c path = path_rec_create(dev, daddr + 4); path 975 drivers/infiniband/ulp/ipoib/ipoib_main.c if (!path) path 978 drivers/infiniband/ulp/ipoib/ipoib_main.c __path_add(dev, path); path 981 drivers/infiniband/ulp/ipoib/ipoib_main.c list_add_tail(&neigh->list, &path->neigh_list); path 983 drivers/infiniband/ulp/ipoib/ipoib_main.c if (path->ah && path->ah->valid) { path 984 drivers/infiniband/ulp/ipoib/ipoib_main.c kref_get(&path->ah->ref); path 985 drivers/infiniband/ulp/ipoib/ipoib_main.c neigh->ah = path->ah; path 989 drivers/infiniband/ulp/ipoib/ipoib_main.c ipoib_cm_set(neigh, ipoib_cm_create_tx(dev, path, neigh)); path 1005 drivers/infiniband/ulp/ipoib/ipoib_main.c path->ah->last_send = rn->send(dev, skb, path->ah->ah, path 1013 drivers/infiniband/ulp/ipoib/ipoib_main.c if (!path->query && path_rec_start(dev, path)) path 1044 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_path *path; path 1053 drivers/infiniband/ulp/ipoib/ipoib_main.c path = __path_find(dev, phdr->hwaddr + 4); path 1054 drivers/infiniband/ulp/ipoib/ipoib_main.c if (!path || !path->ah || !path->ah->valid) { path 1055 drivers/infiniband/ulp/ipoib/ipoib_main.c if (!path) { path 1056 drivers/infiniband/ulp/ipoib/ipoib_main.c path = path_rec_create(dev, phdr->hwaddr + 4); path 1057 drivers/infiniband/ulp/ipoib/ipoib_main.c if (!path) path 1059 drivers/infiniband/ulp/ipoib/ipoib_main.c __path_add(dev, path); path 1065 drivers/infiniband/ulp/ipoib/ipoib_main.c init_path_rec(priv, path, phdr->hwaddr + 4); path 1067 drivers/infiniband/ulp/ipoib/ipoib_main.c if (!path->query && path_rec_start(dev, path)) { path 1071 drivers/infiniband/ulp/ipoib/ipoib_main.c if (skb_queue_len(&path->queue) < IPOIB_MAX_PATH_REC_QUEUE) { path 1073 drivers/infiniband/ulp/ipoib/ipoib_main.c __skb_queue_tail(&path->queue, skb); path 1082 drivers/infiniband/ulp/ipoib/ipoib_main.c be32_to_cpu(sa_path_get_dlid(&path->pathrec))); path 1083 drivers/infiniband/ulp/ipoib/ipoib_main.c path->ah->last_send = rn->send(dev, skb, path->ah->ah, path 328 drivers/infiniband/ulp/srp/ib_srp.c ch->ib_cm.path.rec_type = SA_PATH_REC_TYPE_OPA; path 330 drivers/infiniband/ulp/srp/ib_srp.c ch->ib_cm.path.rec_type = SA_PATH_REC_TYPE_IB; path 331 drivers/infiniband/ulp/srp/ib_srp.c ch->ib_cm.path.sgid = target->sgid; path 332 drivers/infiniband/ulp/srp/ib_srp.c ch->ib_cm.path.dgid = target->ib_cm.orig_dgid; path 333 drivers/infiniband/ulp/srp/ib_srp.c ch->ib_cm.path.pkey = target->ib_cm.pkey; path 334 drivers/infiniband/ulp/srp/ib_srp.c ch->ib_cm.path.service_id = target->ib_cm.service_id; path 748 drivers/infiniband/ulp/srp/ib_srp.c ch->ib_cm.path = *pathrec; path 757 drivers/infiniband/ulp/srp/ib_srp.c ch->ib_cm.path.numb_path = 1; path 764 drivers/infiniband/ulp/srp/ib_srp.c &ch->ib_cm.path, path 784 drivers/infiniband/ulp/srp/ib_srp.c ch->ib_cm.path.sgid.raw, ch->ib_cm.path.dgid.raw, path 900 drivers/infiniband/ulp/srp/ib_srp.c req->ib_param.primary_path = &ch->ib_cm.path; path 2631 drivers/infiniband/ulp/srp/ib_srp.c sa_path_set_dlid(&ch->ib_cm.path, dlid); path 2632 drivers/infiniband/ulp/srp/ib_srp.c ch->ib_cm.path.pkey = cpi->redirect_pkey; path 2634 drivers/infiniband/ulp/srp/ib_srp.c memcpy(ch->ib_cm.path.dgid.raw, cpi->redirect_gid, 16); path 2641 drivers/infiniband/ulp/srp/ib_srp.c union ib_gid *dgid = &ch->ib_cm.path.dgid; path 3118 drivers/infiniband/ulp/srp/ib_srp.c return sprintf(buf, "%pI6\n", ch->ib_cm.path.dgid.raw); path 175 drivers/infiniband/ulp/srp/ib_srp.h struct sa_path_rec path; path 1166 drivers/input/input.c const char *path = kobject_get_path(&dev->dev.kobj, GFP_KERNEL); path 1174 drivers/input/input.c seq_printf(seq, "S: Sysfs=%s\n", path ? path : ""); path 1204 drivers/input/input.c kfree(path); path 2160 drivers/input/input.c const char *path; path 2218 drivers/input/input.c path = kobject_get_path(&dev->dev.kobj, GFP_KERNEL); path 2221 drivers/input/input.c path ? path : "N/A"); path 2222 drivers/input/input.c kfree(path); path 106 drivers/interconnect/core.c struct icc_path *path; path 109 drivers/interconnect/core.c path = kzalloc(struct_size(path, reqs, num_nodes), GFP_KERNEL); path 110 drivers/interconnect/core.c if (!path) path 113 drivers/interconnect/core.c path->num_nodes = num_nodes; path 117 drivers/interconnect/core.c hlist_add_head(&path->reqs[i].req_node, &node->req_list); path 118 drivers/interconnect/core.c path->reqs[i].node = node; path 119 drivers/interconnect/core.c path->reqs[i].dev = dev; path 124 drivers/interconnect/core.c return path; path 130 drivers/interconnect/core.c struct icc_path *path = ERR_PTR(-EPROBE_DEFER); path 157 drivers/interconnect/core.c path = ERR_PTR(-ENOENT); path 188 drivers/interconnect/core.c path = path_init(dev, dst, depth); path 190 drivers/interconnect/core.c return path; path 218 drivers/interconnect/core.c static int apply_constraints(struct icc_path *path) path 224 drivers/interconnect/core.c for (i = 0; i < path->num_nodes; i++) { path 225 drivers/interconnect/core.c next = path->reqs[i].node; path 319 drivers/interconnect/core.c struct icc_path *path = ERR_PTR(-EPROBE_DEFER); path 384 drivers/interconnect/core.c path = path_find(dev, src_node, dst_node); path 385 drivers/interconnect/core.c if (IS_ERR(path)) path 386 drivers/interconnect/core.c dev_err(dev, "%s: invalid path=%ld\n", __func__, PTR_ERR(path)); path 389 drivers/interconnect/core.c return path; path 401 drivers/interconnect/core.c void icc_set_tag(struct icc_path *path, u32 tag) path 405 drivers/interconnect/core.c if (!path) path 410 drivers/interconnect/core.c for (i = 0; i < path->num_nodes; i++) path 411 drivers/interconnect/core.c path->reqs[i].tag = tag; path 432 drivers/interconnect/core.c int icc_set_bw(struct icc_path *path, u32 avg_bw, u32 peak_bw) path 439 drivers/interconnect/core.c if (!path || !path->num_nodes) path 444 drivers/interconnect/core.c old_avg = path->reqs[0].avg_bw; path 445 drivers/interconnect/core.c old_peak = path->reqs[0].peak_bw; path 447 drivers/interconnect/core.c for (i = 0; i < path->num_nodes; i++) { path 448 drivers/interconnect/core.c node = path->reqs[i].node; path 451 drivers/interconnect/core.c path->reqs[i].avg_bw = avg_bw; path 452 drivers/interconnect/core.c path->reqs[i].peak_bw = peak_bw; path 458 drivers/interconnect/core.c ret = apply_constraints(path); path 463 drivers/interconnect/core.c for (i = 0; i < path->num_nodes; i++) { path 464 drivers/interconnect/core.c node = path->reqs[i].node; path 465 drivers/interconnect/core.c path->reqs[i].avg_bw = old_avg; path 466 drivers/interconnect/core.c path->reqs[i].peak_bw = old_peak; path 469 drivers/interconnect/core.c apply_constraints(path); path 497 drivers/interconnect/core.c struct icc_path *path = ERR_PTR(-EPROBE_DEFER); path 509 drivers/interconnect/core.c path = path_find(dev, src, dst); path 510 drivers/interconnect/core.c if (IS_ERR(path)) path 511 drivers/interconnect/core.c dev_err(dev, "%s: invalid path=%ld\n", __func__, PTR_ERR(path)); path 515 drivers/interconnect/core.c return path; path 526 drivers/interconnect/core.c void icc_put(struct icc_path *path) path 532 drivers/interconnect/core.c if (!path || WARN_ON(IS_ERR(path))) path 535 drivers/interconnect/core.c ret = icc_set_bw(path, 0, 0); path 540 drivers/interconnect/core.c for (i = 0; i < path->num_nodes; i++) { path 541 drivers/interconnect/core.c node = path->reqs[i].node; path 542 drivers/interconnect/core.c hlist_del(&path->reqs[i].req_node); path 548 drivers/interconnect/core.c kfree(path); path 144 drivers/iommu/dmar.c size = struct_size(info, path, level); path 165 drivers/iommu/dmar.c info->path[level].bus = tmp->bus->number; path 166 drivers/iommu/dmar.c info->path[level].device = PCI_SLOT(tmp->devfn); path 167 drivers/iommu/dmar.c info->path[level].function = PCI_FUNC(tmp->devfn); path 183 drivers/iommu/dmar.c struct acpi_dmar_pci_path *path, int count) path 193 drivers/iommu/dmar.c if (path[i].device != info->path[i].device || path 194 drivers/iommu/dmar.c path[i].function != info->path[i].function) path 206 drivers/iommu/dmar.c if (bus == info->path[i].bus && path 207 drivers/iommu/dmar.c path[0].device == info->path[i].device && path 208 drivers/iommu/dmar.c path[0].function == info->path[i].function) { path 210 drivers/iommu/dmar.c bus, path[0].device, path[0].function); path 226 drivers/iommu/dmar.c struct acpi_dmar_pci_path *path; path 237 drivers/iommu/dmar.c path = (struct acpi_dmar_pci_path *)(scope + 1); path 238 drivers/iommu/dmar.c level = (scope->length - sizeof(*scope)) / sizeof(*path); path 239 drivers/iommu/dmar.c if (!dmar_match_pci_path(info, scope->bus, path, level)) path 708 drivers/iommu/dmar.c struct acpi_dmar_pci_path *path; path 723 drivers/iommu/dmar.c path = (void *)(scope + 1); path 726 drivers/iommu/dmar.c scope->bus, path->device, path->function); path 730 drivers/iommu/dmar.c dmaru->devices[i].devfn = PCI_DEVFN(path->device, path 731 drivers/iommu/dmar.c path->function); path 838 drivers/iommu/intel_irq_remapping.c struct acpi_dmar_pci_path *path; path 843 drivers/iommu/intel_irq_remapping.c path = (struct acpi_dmar_pci_path *)(scope + 1); path 852 drivers/iommu/intel_irq_remapping.c bus = read_pci_config_byte(bus, path->device, path->function, path 854 drivers/iommu/intel_irq_remapping.c path++; path 872 drivers/iommu/intel_irq_remapping.c ir_hpet[free].devfn = PCI_DEVFN(path->device, path->function); path 883 drivers/iommu/intel_irq_remapping.c struct acpi_dmar_pci_path *path; path 888 drivers/iommu/intel_irq_remapping.c path = (struct acpi_dmar_pci_path *)(scope + 1); path 897 drivers/iommu/intel_irq_remapping.c bus = read_pci_config_byte(bus, path->device, path->function, path 899 drivers/iommu/intel_irq_remapping.c path++; path 915 drivers/iommu/intel_irq_remapping.c ir_ioapic[free].devfn = PCI_DEVFN(path->device, path->function); path 2376 drivers/md/bcache/super.c char *path = NULL; path 2395 drivers/md/bcache/super.c path = kstrndup(buffer, size, GFP_KERNEL); path 2396 drivers/md/bcache/super.c if (!path) path 2405 drivers/md/bcache/super.c bdev = blkdev_get_by_path(strim(path), path 2410 drivers/md/bcache/super.c bdev = lookup_bdev(strim(path)); path 2464 drivers/md/bcache/super.c kfree(path); path 2476 drivers/md/bcache/super.c kfree(path); path 2477 drivers/md/bcache/super.c path = NULL; path 2481 drivers/md/bcache/super.c pr_info("error %s: %s", path?path:"", err); path 40 drivers/md/dm-mpath.c struct dm_path path; path 46 drivers/md/dm-mpath.c #define path_to_pgpath(__pgp) container_of((__pgp), struct pgpath, path) path 163 drivers/md/dm-mpath.c dm_put_device(ti, pgpath->path.dev); path 348 drivers/md/dm-mpath.c struct dm_path *path; path 351 drivers/md/dm-mpath.c path = pg->ps.type->select_path(&pg->ps, nr_bytes); path 352 drivers/md/dm-mpath.c if (!path) path 355 drivers/md/dm-mpath.c pgpath = path_to_pgpath(path); path 514 drivers/md/dm-mpath.c bdev = pgpath->path.dev->bdev; path 542 drivers/md/dm-mpath.c &pgpath->path, path 560 drivers/md/dm-mpath.c &pgpath->path, path 622 drivers/md/dm-mpath.c bio_set_dev(bio, pgpath->path.dev->bdev); path 627 drivers/md/dm-mpath.c &pgpath->path, path 856 drivers/md/dm-mpath.c &p->path.dev); path 862 drivers/md/dm-mpath.c q = bdev_get_queue(p->path.dev->bdev); path 866 drivers/md/dm-mpath.c r = setup_scsi_dh(p->path.dev->bdev, m, &attached_handler_name, &ti->error); path 869 drivers/md/dm-mpath.c dm_put_device(ti, p->path.dev); path 874 drivers/md/dm-mpath.c r = ps->type->add_path(ps, &p->path, as->argc, as->argv, &ti->error); path 876 drivers/md/dm-mpath.c dm_put_device(ti, p->path.dev); path 1230 drivers/md/dm-mpath.c DMWARN("Failing path %s.", pgpath->path.dev->name); path 1232 drivers/md/dm-mpath.c pgpath->pg->ps.type->fail_path(&pgpath->pg->ps, &pgpath->path); path 1242 drivers/md/dm-mpath.c pgpath->path.dev->name, atomic_read(&m->nr_valid_paths)); path 1267 drivers/md/dm-mpath.c DMWARN("Reinstating path %s.", pgpath->path.dev->name); path 1269 drivers/md/dm-mpath.c r = pgpath->pg->ps.type->reinstate_path(&pgpath->pg->ps, &pgpath->path); path 1285 drivers/md/dm-mpath.c pgpath->path.dev->name, nr_valid_paths); path 1311 drivers/md/dm-mpath.c if (pgpath->path.dev == dev) path 1505 drivers/md/dm-mpath.c struct request_queue *q = bdev_get_queue(pgpath->path.dev->bdev); path 1563 drivers/md/dm-mpath.c ps->type->end_io(ps, &pgpath->path, mpio->nr_bytes); path 1607 drivers/md/dm-mpath.c ps->type->end_io(ps, &pgpath->path, mpio->nr_bytes); path 1748 drivers/md/dm-mpath.c DMEMIT("%s %s %u ", p->path.dev->name, path 1753 drivers/md/dm-mpath.c &p->path, type, result + sz, path 1774 drivers/md/dm-mpath.c DMEMIT("%s ", p->path.dev->name); path 1777 drivers/md/dm-mpath.c &p->path, type, result + sz, path 1864 drivers/md/dm-mpath.c *bdev = current_pgpath->path.dev->bdev; path 1907 drivers/md/dm-mpath.c ret = fn(ti, p->path.dev, ti->begin, ti->len, data); path 1919 drivers/md/dm-mpath.c struct request_queue *q = bdev_get_queue(pgpath->path.dev->bdev); path 20 drivers/md/dm-mpath.h void dm_pg_init_complete(struct dm_path *path, unsigned err_flags); path 47 drivers/md/dm-path-selector.h int (*add_path) (struct path_selector *ps, struct dm_path *path, path 71 drivers/md/dm-path-selector.h int (*status) (struct path_selector *ps, struct dm_path *path, path 74 drivers/md/dm-path-selector.h int (*start_io) (struct path_selector *ps, struct dm_path *path, path 76 drivers/md/dm-path-selector.h int (*end_io) (struct path_selector *ps, struct dm_path *path, path 37 drivers/md/dm-queue-length.c struct dm_path *path; path 86 drivers/md/dm-queue-length.c static int ql_status(struct path_selector *ps, struct dm_path *path, path 93 drivers/md/dm-queue-length.c if (!path) path 96 drivers/md/dm-queue-length.c pi = path->pscontext; path 111 drivers/md/dm-queue-length.c static int ql_add_path(struct path_selector *ps, struct dm_path *path, path 147 drivers/md/dm-queue-length.c pi->path = path; path 151 drivers/md/dm-queue-length.c path->pscontext = pi; path 160 drivers/md/dm-queue-length.c static void ql_fail_path(struct path_selector *ps, struct dm_path *path) path 163 drivers/md/dm-queue-length.c struct path_info *pi = path->pscontext; path 171 drivers/md/dm-queue-length.c static int ql_reinstate_path(struct path_selector *ps, struct dm_path *path) path 174 drivers/md/dm-queue-length.c struct path_info *pi = path->pscontext; path 213 drivers/md/dm-queue-length.c ret = best->path; path 219 drivers/md/dm-queue-length.c static int ql_start_io(struct path_selector *ps, struct dm_path *path, path 222 drivers/md/dm-queue-length.c struct path_info *pi = path->pscontext; path 229 drivers/md/dm-queue-length.c static int ql_end_io(struct path_selector *ps, struct dm_path *path, path 232 drivers/md/dm-queue-length.c struct path_info *pi = path->pscontext; path 28 drivers/md/dm-round-robin.c struct dm_path *path; path 87 drivers/md/dm-round-robin.c static int rr_status(struct path_selector *ps, struct dm_path *path, path 93 drivers/md/dm-round-robin.c if (!path) path 100 drivers/md/dm-round-robin.c pi = path->pscontext; path 113 drivers/md/dm-round-robin.c static int rr_add_path(struct path_selector *ps, struct dm_path *path, path 145 drivers/md/dm-round-robin.c pi->path = path; path 148 drivers/md/dm-round-robin.c path->pscontext = pi; path 194 drivers/md/dm-round-robin.c return pi ? pi->path : NULL; path 32 drivers/md/dm-service-time.c struct dm_path *path; path 82 drivers/md/dm-service-time.c static int st_status(struct path_selector *ps, struct dm_path *path, path 88 drivers/md/dm-service-time.c if (!path) path 91 drivers/md/dm-service-time.c pi = path->pscontext; path 108 drivers/md/dm-service-time.c static int st_add_path(struct path_selector *ps, struct dm_path *path, path 159 drivers/md/dm-service-time.c pi->path = path; path 164 drivers/md/dm-service-time.c path->pscontext = pi; path 173 drivers/md/dm-service-time.c static void st_fail_path(struct path_selector *ps, struct dm_path *path) path 176 drivers/md/dm-service-time.c struct path_info *pi = path->pscontext; path 184 drivers/md/dm-service-time.c static int st_reinstate_path(struct path_selector *ps, struct dm_path *path) path 187 drivers/md/dm-service-time.c struct path_info *pi = path->pscontext; path 295 drivers/md/dm-service-time.c ret = best->path; path 301 drivers/md/dm-service-time.c static int st_start_io(struct path_selector *ps, struct dm_path *path, path 304 drivers/md/dm-service-time.c struct path_info *pi = path->pscontext; path 311 drivers/md/dm-service-time.c static int st_end_io(struct path_selector *ps, struct dm_path *path, path 314 drivers/md/dm-service-time.c struct path_info *pi = path->pscontext; path 405 drivers/md/dm-table.c dev_t dm_get_dev_t(const char *path) path 410 drivers/md/dm-table.c bdev = lookup_bdev(path); path 412 drivers/md/dm-table.c dev = name_to_dev_t(path); path 426 drivers/md/dm-table.c int dm_get_device(struct dm_target *ti, const char *path, fmode_t mode, path 436 drivers/md/dm-table.c dev = dm_get_dev_t(path); path 62 drivers/md/dm-uevent.c const char *path, path 94 drivers/md/dm-uevent.c if (add_uevent_var(&event->ku_env, "DM_PATH=%s", path)) { path 171 drivers/md/dm-uevent.c const char *path, unsigned nr_valid_paths) path 184 drivers/md/dm-uevent.c path, nr_valid_paths); path 22 drivers/md/dm-uevent.h struct dm_target *ti, const char *path, path 39 drivers/md/dm-uevent.h struct dm_target *ti, const char *path, path 682 drivers/md/dm-zoned-target.c static int dmz_get_zoned_device(struct dm_target *ti, char *path) path 691 drivers/md/dm-zoned-target.c ret = dm_get_device(ti, path, dm_table_get_mode(ti->table), &dmz->ddev); path 868 drivers/md/md-bitmap.c char *path, *ptr = NULL; path 874 drivers/md/md-bitmap.c path = kmalloc(PAGE_SIZE, GFP_KERNEL); path 875 drivers/md/md-bitmap.c if (path) path 877 drivers/md/md-bitmap.c path, PAGE_SIZE); path 882 drivers/md/md-bitmap.c kfree(path); path 82 drivers/md/md-multipath.c struct md_rdev *rdev = conf->multipaths[mp_bh->path].rdev; path 116 drivers/md/md-multipath.c mp_bh->path = multipath_map(conf); path 117 drivers/md/md-multipath.c if (mp_bh->path < 0) { path 122 drivers/md/md-multipath.c multipath = conf->multipaths + mp_bh->path; path 238 drivers/md/md-multipath.c int path; path 248 drivers/md/md-multipath.c for (path = first; path <= last; path++) path 249 drivers/md/md-multipath.c if ((p=conf->multipaths+path)->rdev == NULL) { path 258 drivers/md/md-multipath.c rdev->raid_disk = path; path 335 drivers/md/md-multipath.c if ((mp_bh->path = multipath_map (conf))<0) { path 346 drivers/md/md-multipath.c conf->multipaths[mp_bh->path].rdev->data_offset; path 347 drivers/md/md-multipath.c bio_set_dev(bio, conf->multipaths[mp_bh->path].rdev->bdev); path 29 drivers/md/md-multipath.h int path; path 1585 drivers/media/dvb-frontends/stv0900_core.c p_search.path = demod; path 251 drivers/media/dvb-frontends/stv0900_priv.h enum fe_stv0900_demod_num path;/* Path Used demod1 or 2 */ path 1844 drivers/media/rc/rc-main.c const char *path; path 1887 drivers/media/rc/rc-main.c path = kobject_get_path(&dev->dev.kobj, GFP_KERNEL); path 1889 drivers/media/rc/rc-main.c dev->device_name ?: "Unspecified device", path ?: "N/A"); path 1890 drivers/media/rc/rc-main.c kfree(path); path 1110 drivers/mtd/ubi/build.c struct path path; path 1114 drivers/mtd/ubi/build.c err = kern_path(mtd_dev, LOOKUP_FOLLOW, &path); path 1118 drivers/mtd/ubi/build.c err = vfs_getattr(&path, &stat, STATX_TYPE, AT_STATX_SYNC_AS_STAT); path 1119 drivers/mtd/ubi/build.c path_put(&path); path 292 drivers/mtd/ubi/kapi.c struct path path; path 300 drivers/mtd/ubi/kapi.c error = kern_path(pathname, LOOKUP_FOLLOW, &path); path 304 drivers/mtd/ubi/kapi.c error = vfs_getattr(&path, &stat, STATX_TYPE, AT_STATX_SYNC_AS_STAT); path 305 drivers/mtd/ubi/kapi.c path_put(&path); path 1297 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h u8 path; path 2392 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c int path = BP_PATH(bp); path 2395 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c path, bnx2x_load_count[path][0], bnx2x_load_count[path][1], path 2396 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c bnx2x_load_count[path][2]); path 2397 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c bnx2x_load_count[path][0]++; path 2398 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c bnx2x_load_count[path][1 + port]++; path 2400 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c path, bnx2x_load_count[path][0], bnx2x_load_count[path][1], path 2401 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c bnx2x_load_count[path][2]); path 2402 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (bnx2x_load_count[path][0] == 1) path 2404 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c else if (bnx2x_load_count[path][1 + port] == 1) path 3223 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u8 path, port; path 3225 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c path = BP_PATH(bp); path 3239 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c path = path ^ 1; path 3251 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c lane = (port<<1) + path; path 3264 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c path = path ^ 1; path 3266 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c lane = path << 1 ; path 9170 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c int path = BP_PATH(bp); path 9173 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c path, bnx2x_load_count[path][0], bnx2x_load_count[path][1], path 9174 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bnx2x_load_count[path][2]); path 9175 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bnx2x_load_count[path][0]--; path 9176 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bnx2x_load_count[path][1 + port]--; path 9178 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c path, bnx2x_load_count[path][0], bnx2x_load_count[path][1], path 9179 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bnx2x_load_count[path][2]); path 9180 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c if (bnx2x_load_count[path][0] == 0) path 9182 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c else if (bnx2x_load_count[path][1 + port] == 0) path 10628 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c BP_PATH(bp) == tmp_list->path) path 10734 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c tmp_list->path = BP_PATH(bp); path 14874 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c int path = BP_PATH(bp); path 14897 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c fcoe_features[path][port]); path 85 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c p = &dcb_config->tc_config[i].path[direction]; path 107 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c p = &dcb_config->tc_config[i].path[direction]; path 180 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c refill[tc] = tc_config[tc].path[direction].data_credits_refill; path 199 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c bwgid[tc] = tc_config[tc].path[direction].bwg_id; path 209 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c ptype[tc] = tc_config[tc].path[direction].prio_type; path 228 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c if (prio_mask & tc_config[tc].path[direction].up_to_tc_bitmap) path 94 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.h struct tc_bw_alloc path[2]; /* One each for Tx/Rx */ path 48 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if (dst->path[tx].prio_type != src->path[tx].prio_type) { path 49 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c dst->path[tx].prio_type = src->path[tx].prio_type; path 53 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if (dst->path[tx].bwg_id != src->path[tx].bwg_id) { path 54 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c dst->path[tx].bwg_id = src->path[tx].bwg_id; path 58 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if (dst->path[tx].bwg_percent != src->path[tx].bwg_percent) { path 59 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c dst->path[tx].bwg_percent = src->path[tx].bwg_percent; path 63 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if (dst->path[tx].up_to_tc_bitmap != path 64 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c src->path[tx].up_to_tc_bitmap) { path 65 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c dst->path[tx].up_to_tc_bitmap = path 66 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c src->path[tx].up_to_tc_bitmap; path 70 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if (dst->path[rx].prio_type != src->path[rx].prio_type) { path 71 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c dst->path[rx].prio_type = src->path[rx].prio_type; path 75 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if (dst->path[rx].bwg_id != src->path[rx].bwg_id) { path 76 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c dst->path[rx].bwg_id = src->path[rx].bwg_id; path 80 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if (dst->path[rx].bwg_percent != src->path[rx].bwg_percent) { path 81 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c dst->path[rx].bwg_percent = src->path[rx].bwg_percent; path 85 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if (dst->path[rx].up_to_tc_bitmap != path 86 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c src->path[rx].up_to_tc_bitmap) { path 87 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c dst->path[rx].up_to_tc_bitmap = path 88 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c src->path[rx].up_to_tc_bitmap; path 174 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c adapter->temp_dcb_cfg.tc_config[tc].path[0].prio_type = prio; path 176 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c adapter->temp_dcb_cfg.tc_config[tc].path[0].bwg_id = bwg_id; path 178 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c adapter->temp_dcb_cfg.tc_config[tc].path[0].bwg_percent = path 181 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c adapter->temp_dcb_cfg.tc_config[tc].path[0].up_to_tc_bitmap = path 200 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c adapter->temp_dcb_cfg.tc_config[tc].path[1].prio_type = prio; path 202 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c adapter->temp_dcb_cfg.tc_config[tc].path[1].bwg_id = bwg_id; path 204 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c adapter->temp_dcb_cfg.tc_config[tc].path[1].bwg_percent = path 207 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c adapter->temp_dcb_cfg.tc_config[tc].path[1].up_to_tc_bitmap = path 225 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *prio = adapter->dcb_cfg.tc_config[tc].path[0].prio_type; path 226 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *bwg_id = adapter->dcb_cfg.tc_config[tc].path[0].bwg_id; path 227 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *bw_pct = adapter->dcb_cfg.tc_config[tc].path[0].bwg_percent; path 228 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *up_map = adapter->dcb_cfg.tc_config[tc].path[0].up_to_tc_bitmap; path 245 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *prio = adapter->dcb_cfg.tc_config[tc].path[1].prio_type; path 246 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *bwg_id = adapter->dcb_cfg.tc_config[tc].path[1].bwg_id; path 247 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *bw_pct = adapter->dcb_cfg.tc_config[tc].path[1].bwg_percent; path 248 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *up_map = adapter->dcb_cfg.tc_config[tc].path[1].up_to_tc_bitmap; path 6215 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c tc->path[DCB_TX_CONFIG].bwg_id = 0; path 6216 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c tc->path[DCB_TX_CONFIG].bwg_percent = 12 + (j & 1); path 6217 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c tc->path[DCB_RX_CONFIG].bwg_id = 0; path 6218 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c tc->path[DCB_RX_CONFIG].bwg_percent = 12 + (j & 1); path 6224 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c tc->path[DCB_TX_CONFIG].up_to_tc_bitmap = 0xFF; path 6225 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c tc->path[DCB_RX_CONFIG].up_to_tc_bitmap = 0xFF; path 18 drivers/net/ethernet/mediatek/mtk_eth_path.c int (*set_path)(struct mtk_eth *eth, int path); path 21 drivers/net/ethernet/mediatek/mtk_eth_path.c static const char *mtk_eth_path_name(int path) path 23 drivers/net/ethernet/mediatek/mtk_eth_path.c switch (path) { path 43 drivers/net/ethernet/mediatek/mtk_eth_path.c static int set_mux_gdm1_to_gmac1_esw(struct mtk_eth *eth, int path) path 48 drivers/net/ethernet/mediatek/mtk_eth_path.c switch (path) { path 69 drivers/net/ethernet/mediatek/mtk_eth_path.c mtk_eth_path_name(path), __func__, updated); path 74 drivers/net/ethernet/mediatek/mtk_eth_path.c static int set_mux_gmac2_gmac0_to_gephy(struct mtk_eth *eth, int path) path 79 drivers/net/ethernet/mediatek/mtk_eth_path.c switch (path) { path 92 drivers/net/ethernet/mediatek/mtk_eth_path.c mtk_eth_path_name(path), __func__, updated); path 97 drivers/net/ethernet/mediatek/mtk_eth_path.c static int set_mux_u3_gmac2_to_qphy(struct mtk_eth *eth, int path) path 102 drivers/net/ethernet/mediatek/mtk_eth_path.c switch (path) { path 115 drivers/net/ethernet/mediatek/mtk_eth_path.c mtk_eth_path_name(path), __func__, updated); path 120 drivers/net/ethernet/mediatek/mtk_eth_path.c static int set_mux_gmac1_gmac2_to_sgmii_rgmii(struct mtk_eth *eth, int path) path 125 drivers/net/ethernet/mediatek/mtk_eth_path.c switch (path) { path 137 drivers/net/ethernet/mediatek/mtk_eth_path.c if ((path == MTK_GMAC1_RGMII && val == SYSCFG0_SGMII_GMAC1) || path 138 drivers/net/ethernet/mediatek/mtk_eth_path.c (path == MTK_GMAC2_RGMII && val == SYSCFG0_SGMII_GMAC2)) path 153 drivers/net/ethernet/mediatek/mtk_eth_path.c mtk_eth_path_name(path), __func__, updated); path 158 drivers/net/ethernet/mediatek/mtk_eth_path.c static int set_mux_gmac12_to_gephy_sgmii(struct mtk_eth *eth, int path) path 165 drivers/net/ethernet/mediatek/mtk_eth_path.c switch (path) { path 184 drivers/net/ethernet/mediatek/mtk_eth_path.c mtk_eth_path_name(path), __func__, updated); path 213 drivers/net/ethernet/mediatek/mtk_eth_path.c static int mtk_eth_mux_setup(struct mtk_eth *eth, int path) path 217 drivers/net/ethernet/mediatek/mtk_eth_path.c if (!MTK_HAS_CAPS(eth->soc->caps, path)) { path 219 drivers/net/ethernet/mediatek/mtk_eth_path.c mtk_eth_path_name(path)); path 229 drivers/net/ethernet/mediatek/mtk_eth_path.c err = mtk_eth_muxc[i].set_path(eth, path); path 244 drivers/net/ethernet/mediatek/mtk_eth_path.c int err, path; path 246 drivers/net/ethernet/mediatek/mtk_eth_path.c path = (mac_id == 0) ? MTK_ETH_PATH_GMAC1_SGMII : path 250 drivers/net/ethernet/mediatek/mtk_eth_path.c err = mtk_eth_mux_setup(eth, path); path 259 drivers/net/ethernet/mediatek/mtk_eth_path.c int err, path = 0; path 262 drivers/net/ethernet/mediatek/mtk_eth_path.c path = MTK_ETH_PATH_GMAC2_GEPHY; path 264 drivers/net/ethernet/mediatek/mtk_eth_path.c if (!path) path 268 drivers/net/ethernet/mediatek/mtk_eth_path.c err = mtk_eth_mux_setup(eth, path); path 277 drivers/net/ethernet/mediatek/mtk_eth_path.c int err, path; path 279 drivers/net/ethernet/mediatek/mtk_eth_path.c path = (mac_id == 0) ? MTK_ETH_PATH_GMAC1_RGMII : path 283 drivers/net/ethernet/mediatek/mtk_eth_path.c err = mtk_eth_mux_setup(eth, path); path 335 drivers/net/ethernet/netronome/nfp/nfp_devlink.c nfp_devlink_flash_update(struct devlink *devlink, const char *path, path 340 drivers/net/ethernet/netronome/nfp/nfp_devlink.c return nfp_flash_update_common(devlink_priv(devlink), path, extack); path 306 drivers/net/ethernet/netronome/nfp/nfp_main.c int nfp_flash_update_common(struct nfp_pf *pf, const char *path, path 324 drivers/net/ethernet/netronome/nfp/nfp_main.c err = request_firmware_direct(&fw, path, dev); path 332 drivers/net/ethernet/netronome/nfp/nfp_main.c path); path 169 drivers/net/ethernet/netronome/nfp/nfp_main.h int nfp_flash_update_common(struct nfp_pf *pf, const char *path, path 12920 drivers/net/ethernet/qlogic/qed/qed_hsi.h struct public_path path[MCP_GLOB_PATH_MAX]; path 13341 drivers/net/ethernet/qlogic/qed/qed_hsi.h struct nvm_cfg1_path path[MCP_GLOB_PATH_MAX]; path 590 drivers/net/fddi/skfp/cfm.c char *path ; path 596 drivers/net/fddi/skfp/cfm.c path = smc->s.sas ? path_iso_s : path_iso ; path 600 drivers/net/fddi/skfp/cfm.c path = path_wrap_a ; path 604 drivers/net/fddi/skfp/cfm.c path = path_wrap_b ; path 608 drivers/net/fddi/skfp/cfm.c path = path_thru ; path 612 drivers/net/fddi/skfp/cfm.c path = path_wrap_s ; path 616 drivers/net/fddi/skfp/cfm.c memcpy(to,path,len) ; path 508 drivers/net/fddi/skfp/ess.c chg->path.para.p_type = SMT_P320B ; path 509 drivers/net/fddi/skfp/ess.c chg->path.para.p_len = sizeof(struct smt_p_320b) - PARA_LEN ; path 510 drivers/net/fddi/skfp/ess.c chg->path.mib_index = SBAPATHINDEX ; path 511 drivers/net/fddi/skfp/ess.c chg->path.path_pad = 0; path 512 drivers/net/fddi/skfp/ess.c chg->path.path_index = PRIMARY_RING ; path 604 drivers/net/fddi/skfp/ess.c req->path.para.p_type = SMT_P320B ; path 605 drivers/net/fddi/skfp/ess.c req->path.para.p_len = sizeof(struct smt_p_320b) - PARA_LEN ; path 606 drivers/net/fddi/skfp/ess.c req->path.mib_index = SBAPATHINDEX ; path 607 drivers/net/fddi/skfp/ess.c req->path.path_pad = 0; path 608 drivers/net/fddi/skfp/ess.c req->path.path_index = PRIMARY_RING ; path 750 drivers/net/fddi/skfp/h/smt.h struct smt_p_path path ; /* path descriptor */ path 799 drivers/net/fddi/skfp/h/smt.h struct smt_p_320b path ; /* path type */ path 814 drivers/net/fddi/skfp/h/smt.h struct smt_p_320b path ; /* path type */ path 832 drivers/net/fddi/skfp/h/smt.h struct smt_p_320b path ; /* path type */ path 854 drivers/net/fddi/skfp/h/smt.h struct smt_p_320b path ; /* path type */ path 562 drivers/net/fddi/skfp/pmf.c int path ; path 600 drivers/net/fddi/skfp/pmf.c path = index - INDEX_PATH ; path 619 drivers/net/fddi/skfp/pmf.c if (path < 0 || path >= NUMPATHS) { path 623 drivers/net/fddi/skfp/pmf.c mib_addr = (char *) (&smc->mib.a[path]) ; path 699 drivers/net/fddi/skfp/pmf.c sp_len = cem_build_path(smc,to,path) ; path 1088 drivers/net/fddi/skfp/pmf.c int path ; path 1095 drivers/net/fddi/skfp/pmf.c path = index - INDEX_PATH ; path 1116 drivers/net/fddi/skfp/pmf.c if (path < 0 || path >= NUMPATHS) { path 1119 drivers/net/fddi/skfp/pmf.c mib_a = &smc->mib.a[path] ; path 84 drivers/net/fddi/skfp/smt.c static int smt_fill_path(struct s_smc *smc, struct smt_p_path *path); path 1041 drivers/net/fddi/skfp/smt.c len = smt_fill_path(smc,&sif->path); /* set station path descriptor*/ path 1331 drivers/net/fddi/skfp/smt.c static int smt_fill_path(struct s_smc *smc, struct smt_p_path *path) path 1346 drivers/net/fddi/skfp/smt.c path->para.p_type = SMT_P_PATH ; path 1347 drivers/net/fddi/skfp/smt.c path->para.p_len = len - PARA_LEN ; path 1350 drivers/net/fddi/skfp/smt.c for (p = 0,phy = path->pd_phy ; p < ALLPHYS ; p++, phy++) { path 165 drivers/net/fddi/skfp/smtdef.c int path ; path 233 drivers/net/fddi/skfp/smtdef.c for (path = 0 ; path < NUMPATHS ; path++) { path 234 drivers/net/fddi/skfp/smtdef.c mib->a[path].fddiPATHIndex = INDEX_PATH + path ; path 236 drivers/net/fddi/skfp/smtdef.c mib->a[path].fddiPATHTVXLowerBound = path 238 drivers/net/fddi/skfp/smtdef.c mib->a[path].fddiPATHT_MaxLowerBound = path 240 drivers/net/fddi/skfp/smtdef.c mib->a[path].fddiPATHMaxT_Req = path 1497 drivers/net/wireless/broadcom/b43legacy/main.c char path[sizeof(modparam_fwpostfix) + 32]; path 1505 drivers/net/wireless/broadcom/b43legacy/main.c snprintf(path, ARRAY_SIZE(path), path 1508 drivers/net/wireless/broadcom/b43legacy/main.c b43legacyinfo(dev->wl, "Loading firmware %s\n", path); path 1511 drivers/net/wireless/broadcom/b43legacy/main.c err = request_firmware_nowait(THIS_MODULE, 1, path, path 1524 drivers/net/wireless/broadcom/b43legacy/main.c err = request_firmware(fw, path, dev->dev->dev); path 1528 drivers/net/wireless/broadcom/b43legacy/main.c "or load failed.\n", path); path 1552 drivers/net/wireless/broadcom/b43legacy/main.c b43legacyerr(dev->wl, "Firmware file \"%s\" format error.\n", path); path 577 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c brcmf_dbg(TRACE, "firmware %s %sfound\n", cur->path, fw ? "" : "not "); path 609 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c strlcpy(alt_path, cur->path, BRCMF_FW_NAME_LEN); path 621 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c return request_firmware(fw, cur->path, fwctx->dev); path 653 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c if (!item->path) path 682 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c ret = request_firmware_nowait(THIS_MODULE, true, first->path, path 732 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c fwreq->items[j].path = fwnames[j].path; path 733 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c fwnames[j].path[0] = '\0'; path 736 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c strlcpy(fwnames[j].path, mp_path, path 740 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c strlcat(fwnames[j].path, "/", path 744 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c strlcat(fwnames[j].path, mapping_table[i].fw_base, path 746 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c strlcat(fwnames[j].path, fwnames[j].extension, path 748 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c fwreq->items[j].path = fwnames[j].path; path 46 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.h const char *path; path 68 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.h char *path; path 344 drivers/net/wireless/mediatek/mt7601u/mt7601u.h void mt7601u_set_rx_path(struct mt7601u_dev *dev, u8 path); path 345 drivers/net/wireless/mediatek/mt7601u/mt7601u.h void mt7601u_set_tx_dac(struct mt7601u_dev *dev, u8 path); path 1205 drivers/net/wireless/mediatek/mt7601u/phy.c void mt7601u_set_rx_path(struct mt7601u_dev *dev, u8 path) path 1207 drivers/net/wireless/mediatek/mt7601u/phy.c mt7601u_bbp_rmw(dev, 3, 0x18, path << 3); path 1370 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h enum rtl8xxxu_rfpath path, u8 reg); path 1372 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h enum rtl8xxxu_rfpath path, u8 reg, u32 data); path 1391 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h enum rtl8xxxu_rfpath path); path 808 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c enum rtl8xxxu_rfpath path, u8 reg) path 813 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (path != RF_A) path 814 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val32 = rtl8xxxu_read32(priv, rtl8xxxu_rfregs[path].hssiparm2); path 826 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_write32(priv, rtl8xxxu_rfregs[path].hssiparm2, val32); path 833 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c val32 = rtl8xxxu_read32(priv, rtl8xxxu_rfregs[path].hssiparm1); path 835 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c retval = rtl8xxxu_read32(priv, rtl8xxxu_rfregs[path].hspiread); path 837 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c retval = rtl8xxxu_read32(priv, rtl8xxxu_rfregs[path].lssiread); path 853 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c enum rtl8xxxu_rfpath path, u8 reg, u32 data) path 872 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c ret = rtl8xxxu_write32(priv, rtl8xxxu_rfregs[path].lssiparm, dataaddr); path 2339 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c enum rtl8xxxu_rfpath path) path 2373 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c ret = rtl8xxxu_write_rfreg(priv, path, reg, val); path 2387 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c enum rtl8xxxu_rfpath path) path 2393 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c switch (path) { path 2406 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c __func__, path + 'A'); path 2439 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c rtl8xxxu_init_rf_regs(priv, table, path); path 390 drivers/net/wireless/realtek/rtlwifi/debug.c int path; path 404 drivers/net/wireless/realtek/rtlwifi/debug.c &path, &addr, &bitmask, &data); path 412 drivers/net/wireless/realtek/rtlwifi/debug.c rtl_set_rfreg(hw, path, addr, bitmask, data); path 1194 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c u8 path = rtlhal->current_bandtype == path 1229 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c _rtl92d_phy_enable_rf_env(hw, path, path 1234 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c rtl_set_rfreg(hw, (enum radio_path)path, path 1242 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c rtl_set_rfreg(hw, (enum radio_path)path, path 1246 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c rtl_set_rfreg(hw, (enum radio_path)path, path 1255 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c path, index, path 1256 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c rtl_get_rfreg(hw, (enum radio_path)path, path 1261 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c _rtl92d_phy_restore_rf_env(hw, path, &u4regvalue); path 1314 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c path = RF90_PATH_A; path 1321 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c _rtl92d_phy_enable_rf_env(hw, path, path 1327 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c rtl_set_rfreg(hw, (enum radio_path)path, path 1333 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c rtl_set_rfreg(hw, (enum radio_path)path, path 1342 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c rf_reg_mask_for_c_cut_2g[i], path, index, path 1343 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c rtl_get_rfreg(hw, (enum radio_path)path, path 1351 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c rtl_set_rfreg(hw, (enum radio_path)path, RF_SYN_G4, path 1355 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c _rtl92d_phy_restore_rf_env(hw, path, &u4regvalue); path 2536 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c u8 path = is2t ? 2 : 1; path 2551 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c for (index = 0; index < path; index++) { path 2621 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c for (index = 0; index < path; index++) { path 898 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c u8 path; path 907 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c for (path = RF90_PATH_A; path < MAX_RF_PATH; path++) { path 908 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c dm->swing_idx_ofdm_base[path] = dm->default_ofdm_index; path 909 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c dm->ofdm_index[path] = dm->default_ofdm_index; path 910 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c dm->delta_power_index[path] = 0; path 911 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c dm->delta_power_index_last[path] = 0; path 912 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c dm->power_index_offset[path] = 0; path 398 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c u8 band, u8 path, path 405 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c if (path > RF90_PATH_D) { path 407 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c "Invalid Rf Path %d\n", path); path 414 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c rtlphy->txpwr_by_rate_base_24g[path][txnum][0] = value; path 417 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c rtlphy->txpwr_by_rate_base_24g[path][txnum][1] = value; path 420 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c rtlphy->txpwr_by_rate_base_24g[path][txnum][2] = value; path 423 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c rtlphy->txpwr_by_rate_base_24g[path][txnum][3] = value; path 428 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c rate_section, path, txnum); path 438 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c u8 band, u8 path, u8 txnum, path 445 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c if (path > RF90_PATH_D) { path 447 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c "Invalid Rf Path %d\n", path); path 454 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c value = rtlphy->txpwr_by_rate_base_24g[path][txnum][0]; path 457 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c value = rtlphy->txpwr_by_rate_base_24g[path][txnum][1]; path 460 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c value = rtlphy->txpwr_by_rate_base_24g[path][txnum][2]; path 463 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c value = rtlphy->txpwr_by_rate_base_24g[path][txnum][3]; path 468 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c rate_section, path, txnum); path 483 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c u8 base = 0, path = 0; path 485 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c for (path = RF90_PATH_A; path <= RF90_PATH_B; ++path) { path 486 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c if (path == RF90_PATH_A) { path 488 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c [BAND_ON_2_4G][path][RF_1TX][3] >> 24) & path 492 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c path, CCK, RF_1TX, path 494 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c } else if (path == RF90_PATH_B) { path 496 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c [BAND_ON_2_4G][path][RF_1TX][3] >> 0) & path 500 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c path, CCK, RF_1TX, path 504 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c [BAND_ON_2_4G][path][RF_1TX][1] >> 24) & 0xFF; path 506 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c _rtl92ee_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path, path 510 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c [BAND_ON_2_4G][path][RF_1TX][5] >> 24) & 0xFF; path 512 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c _rtl92ee_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path, path 517 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c [BAND_ON_2_4G][path][RF_2TX][7] >> 24) & 0xFF; path 519 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c _rtl92ee_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path, path 1101 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c static u8 _rtl92ee_phy_get_ratesection_intxpower_byrate(enum radio_path path, path 1112 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c if (path == RF90_PATH_A) path 1114 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c else if (path == RF90_PATH_B) path 1748 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c u32 path, addr = EEPROM_TX_PWR_INX, group, cnt = 0; path 1759 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c for (path = 0; path < MAX_RF_PATH; path++) { path 1762 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->index_cck_base[path][group] = 0x2D; path 1763 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->index_bw40_base[path][group] = 0x2D; path 1767 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->bw20_diff[path][0] = 0x02; path 1768 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->ofdm_diff[path][0] = 0x04; path 1770 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->bw20_diff[path][cnt] = 0xFE; path 1771 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->bw40_diff[path][cnt] = 0xFE; path 1772 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->cck_diff[path][cnt] = 0xFE; path 1773 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->ofdm_diff[path][cnt] = 0xFE; path 1780 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c for (path = 0; path < MAX_RF_PATH; path++) { path 1783 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->index_cck_base[path][group] = hwinfo[addr++]; path 1784 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (pw2g->index_cck_base[path][group] == 0xFF) path 1785 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->index_cck_base[path][group] = 0x2D; path 1789 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->index_bw40_base[path][group] = hwinfo[addr++]; path 1790 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (pw2g->index_bw40_base[path][group] == 0xFF) path 1791 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->index_bw40_base[path][group] = 0x2D; path 1795 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->bw40_diff[path][cnt] = 0; path 1797 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->bw20_diff[path][cnt] = 0x02; path 1799 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->bw20_diff[path][cnt] = path 1802 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (pw2g->bw20_diff[path][cnt] & BIT(3)) path 1803 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->bw20_diff[path][cnt] |= path 1808 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->ofdm_diff[path][cnt] = 0x04; path 1810 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->ofdm_diff[path][cnt] = path 1813 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (pw2g->ofdm_diff[path][cnt] & BIT(3)) path 1814 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->ofdm_diff[path][cnt] |= path 1817 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->cck_diff[path][cnt] = 0; path 1821 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->bw40_diff[path][cnt] = 0xFE; path 1823 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->bw40_diff[path][cnt] = path 1825 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (pw2g->bw40_diff[path][cnt] & BIT(3)) path 1826 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->bw40_diff[path][cnt] |= path 1831 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->bw20_diff[path][cnt] = 0xFE; path 1833 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->bw20_diff[path][cnt] = path 1835 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (pw2g->bw20_diff[path][cnt] & BIT(3)) path 1836 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->bw20_diff[path][cnt] |= path 1842 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->ofdm_diff[path][cnt] = 0xFE; path 1844 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->ofdm_diff[path][cnt] = path 1846 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (pw2g->ofdm_diff[path][cnt] & BIT(3)) path 1847 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->ofdm_diff[path][cnt] |= path 1852 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->cck_diff[path][cnt] = 0xFE; path 1854 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->cck_diff[path][cnt] = path 1856 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (pw2g->cck_diff[path][cnt] & BIT(3)) path 1857 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw2g->cck_diff[path][cnt] |= path 1866 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->index_bw40_base[path][group] = hwinfo[addr++]; path 1867 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (pw5g->index_bw40_base[path][group] == 0xFF) path 1868 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->index_bw40_base[path][group] = 0xFE; path 1873 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->bw40_diff[path][cnt] = 0; path 1876 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->bw20_diff[path][cnt] = 0; path 1878 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->bw20_diff[path][0] = path 1880 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (pw5g->bw20_diff[path][cnt] & BIT(3)) path 1881 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->bw20_diff[path][cnt] |= path 1886 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->ofdm_diff[path][cnt] = 0x04; path 1888 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->ofdm_diff[path][0] = path 1890 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (pw5g->ofdm_diff[path][cnt] & BIT(3)) path 1891 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->ofdm_diff[path][cnt] |= path 1897 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->bw40_diff[path][cnt] = 0xFE; path 1899 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->bw40_diff[path][cnt] = path 1901 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (pw5g->bw40_diff[path][cnt] & BIT(3)) path 1902 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->bw40_diff[path][cnt] |= 0xF0; path 1906 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->bw20_diff[path][cnt] = 0xFE; path 1908 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->bw20_diff[path][cnt] = path 1910 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (pw5g->bw20_diff[path][cnt] & BIT(3)) path 1911 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->bw20_diff[path][cnt] |= 0xF0; path 1918 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->ofdm_diff[path][1] = 0xFE; path 1919 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->ofdm_diff[path][2] = 0xFE; path 1921 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->ofdm_diff[path][1] = (hwinfo[addr] & 0xf0) >> 4; path 1922 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->ofdm_diff[path][2] = (hwinfo[addr] & 0x0f); path 1927 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->ofdm_diff[path][3] = 0xFE; path 1929 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->ofdm_diff[path][3] = (hwinfo[addr] & 0x0f); path 1933 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (pw5g->ofdm_diff[path][cnt] == 0xFF) path 1934 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->ofdm_diff[path][cnt] = 0xFE; path 1935 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c else if (pw5g->ofdm_diff[path][cnt] & BIT(3)) path 1936 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c pw5g->ofdm_diff[path][cnt] |= 0xF0; path 57 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c void rtl8723be_phy_set_rf_reg(struct ieee80211_hw *hw, enum radio_path path, path 66 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c regaddr, bitmask, data, path); path 71 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c original_value = rtl8723_phy_rf_serial_read(hw, path, path 78 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c rtl8723_phy_rf_serial_write(hw, path, regaddr, data); path 84 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c regaddr, bitmask, data, path); path 246 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c u8 band, path, txnum, section; path 249 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c for (path = 0; path < TX_PWR_BY_RATE_NUM_RF; ++path) path 255 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c [band][path][txnum][section] = 0; path 281 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c u8 path, u8 rate_section, path 287 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c if (path > RF90_PATH_D) { path 290 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c path); path 297 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c rtlphy->txpwr_by_rate_base_24g[path][txnum][0] = value; path 300 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c rtlphy->txpwr_by_rate_base_24g[path][txnum][1] = value; path 303 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c rtlphy->txpwr_by_rate_base_24g[path][txnum][2] = value; path 306 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c rtlphy->txpwr_by_rate_base_24g[path][txnum][3] = value; path 311 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c rate_section, path, txnum); path 323 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c u8 band, u8 path, u8 txnum, path 329 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c if (path > RF90_PATH_D) { path 332 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c path); path 339 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c value = rtlphy->txpwr_by_rate_base_24g[path][txnum][0]; path 342 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c value = rtlphy->txpwr_by_rate_base_24g[path][txnum][1]; path 345 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c value = rtlphy->txpwr_by_rate_base_24g[path][txnum][2]; path 348 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c value = rtlphy->txpwr_by_rate_base_24g[path][txnum][3]; path 353 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c rate_section, path, txnum); path 370 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c u8 base = 0, path = 0; path 372 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c for (path = RF90_PATH_A; path <= RF90_PATH_B; ++path) { path 373 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c if (path == RF90_PATH_A) { path 375 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c [BAND_ON_2_4G][path][RF_1TX][3] >> 24) & 0xFF; path 378 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c BAND_ON_2_4G, path, CCK, RF_1TX, base); path 379 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c } else if (path == RF90_PATH_B) { path 381 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c [BAND_ON_2_4G][path][RF_1TX][3] >> 0) & 0xFF; path 385 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c path, CCK, path 389 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c [BAND_ON_2_4G][path][RF_1TX][1] >> 24) & 0xFF; path 392 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c path, OFDM, RF_1TX, path 396 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c [BAND_ON_2_4G][path][RF_1TX][5] >> 24) & 0xFF; path 399 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c path, HT_MCS0_MCS7, path 403 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c [BAND_ON_2_4G][path][RF_2TX][7] >> 24) & 0xFF; path 406 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c path, HT_MCS8_MCS15, path 805 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c static u8 _rtl8723be_phy_get_ratesection_intxpower_byrate(enum radio_path path, path 817 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c if (path == RF90_PATH_A) path 819 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c else if (path == RF90_PATH_B) path 944 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c static u8 _rtl8723be_get_txpower_index(struct ieee80211_hw *hw, u8 path, path 959 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c txpower = rtlefuse->txpwrlevel_cck[path][index]; path 961 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c txpower = rtlefuse->txpwrlevel_ht40_1s[path][index]; path 985 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c path, rate); path 996 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c u8 power_index, u8 path, u8 rate) path 999 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c if (path == RF90_PATH_A) { path 915 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c u8 band, u8 path, path 922 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c if (path > RF90_PATH_D) { path 924 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c "Invalid Rf Path %d in phy_SetTxPowerByRatBase()\n", path); path 931 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtlphy->txpwr_by_rate_base_24g[path][txnum][0] = value; path 934 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtlphy->txpwr_by_rate_base_24g[path][txnum][1] = value; path 937 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtlphy->txpwr_by_rate_base_24g[path][txnum][2] = value; path 940 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtlphy->txpwr_by_rate_base_24g[path][txnum][3] = value; path 943 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtlphy->txpwr_by_rate_base_24g[path][txnum][4] = value; path 946 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtlphy->txpwr_by_rate_base_24g[path][txnum][5] = value; path 951 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rate_section, path, txnum); path 957 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtlphy->txpwr_by_rate_base_5g[path][txnum][0] = value; path 960 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtlphy->txpwr_by_rate_base_5g[path][txnum][1] = value; path 963 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtlphy->txpwr_by_rate_base_5g[path][txnum][2] = value; path 966 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtlphy->txpwr_by_rate_base_5g[path][txnum][3] = value; path 969 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtlphy->txpwr_by_rate_base_5g[path][txnum][4] = value; path 974 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rate_section, path, txnum); path 984 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c u8 band, u8 path, path 991 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c if (path > RF90_PATH_D) { path 994 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c path); path 1001 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c value = rtlphy->txpwr_by_rate_base_24g[path][txnum][0]; path 1004 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c value = rtlphy->txpwr_by_rate_base_24g[path][txnum][1]; path 1007 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c value = rtlphy->txpwr_by_rate_base_24g[path][txnum][2]; path 1010 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c value = rtlphy->txpwr_by_rate_base_24g[path][txnum][3]; path 1013 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c value = rtlphy->txpwr_by_rate_base_24g[path][txnum][4]; path 1016 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c value = rtlphy->txpwr_by_rate_base_24g[path][txnum][5]; path 1021 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rate_section, path, txnum); path 1027 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c value = rtlphy->txpwr_by_rate_base_5g[path][txnum][0]; path 1030 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c value = rtlphy->txpwr_by_rate_base_5g[path][txnum][1]; path 1033 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c value = rtlphy->txpwr_by_rate_base_5g[path][txnum][2]; path 1036 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c value = rtlphy->txpwr_by_rate_base_5g[path][txnum][3]; path 1039 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c value = rtlphy->txpwr_by_rate_base_5g[path][txnum][4]; path 1044 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rate_section, path, txnum); path 1060 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c u8 base = 0, path = 0; path 1062 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c for (path = RF90_PATH_A; path <= RF90_PATH_B; ++path) { path 1063 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][path][RF_1TX][0] >> 24) & 0xFF; path 1065 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path, CCK, RF_1TX, base); path 1067 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][path][RF_1TX][2] >> 24) & 0xFF; path 1069 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path, OFDM, RF_1TX, base); path 1071 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][path][RF_1TX][4] >> 24) & 0xFF; path 1073 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path, HT_MCS0_MCS7, RF_1TX, base); path 1075 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][path][RF_2TX][6] >> 24) & 0xFF; path 1077 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path, HT_MCS8_MCS15, RF_2TX, base); path 1079 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][path][RF_1TX][8] >> 24) & 0xFF; path 1081 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path, VHT_1SSMCS0_1SSMCS9, RF_1TX, base); path 1083 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_2_4G][path][RF_2TX][11] >> 8) & 0xFF; path 1085 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_2_4G, path, VHT_2SSMCS0_2SSMCS9, RF_2TX, base); path 1087 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_5G][path][RF_1TX][2] >> 24) & 0xFF; path 1089 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_5G, path, OFDM, RF_1TX, base); path 1091 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_5G][path][RF_1TX][4] >> 24) & 0xFF; path 1093 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_5G, path, HT_MCS0_MCS7, RF_1TX, base); path 1095 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_5G][path][RF_2TX][6] >> 24) & 0xFF; path 1097 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_5G, path, HT_MCS8_MCS15, RF_2TX, base); path 1099 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_5G][path][RF_1TX][8] >> 24) & 0xFF; path 1101 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_5G, path, VHT_1SSMCS0_1SSMCS9, RF_1TX, base); path 1103 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rawvalue = (u16)(rtlphy->tx_power_by_rate_offset[BAND_ON_5G][path][RF_2TX][11] >> 8) & 0xFF; path 1105 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_by_rate_base(hw, BAND_ON_5G, path, VHT_2SSMCS0_2SSMCS9, RF_2TX, base); path 2247 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c static s8 _rtl8821ae_phy_get_ratesection_intxpower_byrate(u8 path, u8 rate) path 2513 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c u8 band, u8 path, u8 rate) path 2521 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rate_section = _rtl8821ae_phy_get_ratesection_intxpower_byrate(path, rate); path 2594 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c tx_pwr_diff = (u8)(rtlphy->tx_power_by_rate_offset[band][path] path 2600 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtlphy->current_chan_bw, path, rate, path 2623 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c static u8 _rtl8821ae_get_txpower_index(struct ieee80211_hw *hw, u8 path, path 2645 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower = rtlefuse->txpwrlevel_cck[path][index]; path 2647 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower = rtlefuse->txpwrlevel_ht40_1s[path][index]; path 2653 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower += rtlefuse->txpwr_legacyhtdiff[path][TX_1S]; path 2658 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower += rtlefuse->txpwr_ht20diff[path][TX_1S]; path 2661 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower += rtlefuse->txpwr_ht20diff[path][TX_2S]; path 2665 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower += rtlefuse->txpwr_ht40diff[path][TX_1S]; path 2668 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower += rtlefuse->txpwr_ht40diff[path][TX_2S]; path 2673 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower += rtlefuse->txpwr_ht40diff[path][TX_1S]; path 2677 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower += rtlefuse->txpwr_ht40diff[path][TX_2S]; path 2681 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower = rtlefuse->txpwr_5g_bw40base[path][index]; path 2688 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower += rtlefuse->txpwr_5g_ofdmdiff[path][TX_1S]; path 2694 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower += rtlefuse->txpwr_5g_bw20diff[path][TX_1S]; path 2698 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower += rtlefuse->txpwr_5g_bw20diff[path][TX_2S]; path 2703 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower += rtlefuse->txpwr_5g_bw40diff[path][TX_1S]; path 2707 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower += rtlefuse->txpwr_5g_bw40diff[path][TX_2S]; path 2718 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower = rtlefuse->txpwr_5g_bw80base[path][index] path 2719 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c + rtlefuse->txpwr_5g_bw80diff[path][TX_1S]; path 2723 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower = rtlefuse->txpwr_5g_bw80base[path][index] path 2724 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c + rtlefuse->txpwr_5g_bw80diff[path][TX_1S] path 2725 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c + rtlefuse->txpwr_5g_bw80diff[path][TX_2S]; path 2731 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c path, rate); path 2740 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c txpower += rtlpriv->dm.remnant_ofdm_swing_idx[path]; path 2751 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c u8 power_index, u8 path, u8 rate) path 2755 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c if (path == RF90_PATH_A) { path 2954 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c } else if (path == RF90_PATH_B) { path 3160 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c u8 *array, u8 path, path 3170 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_get_txpower_index(hw, path, array[i], path 3173 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_index(hw, power_index, path, path 3179 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c u8 bw, u8 channel, u8 path) path 3187 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c if (path >= rtlphy->num_total_rfpath) path 3191 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c if (path == RF90_PATH_A) { path 3217 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c u8 channel, u8 path) path 3252 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_level_by_path(hw, cck_rates, path, channel, path 3255 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_level_by_path(hw, ofdm_rates, path, channel, path 3257 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_level_by_path(hw, ht_rates_1t, path, channel, path 3259 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_level_by_path(hw, vht_rates_1t, path, channel, path 3263 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_level_by_path(hw, ht_rates_2t, path, path 3266 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_phy_set_txpower_level_by_path(hw, vht_rates_2t, path, path 3272 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c channel, path); path 3280 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c u8 path = 0; path 3282 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c for (path = RF90_PATH_A; path < rtlphy->num_total_rfpath; ++path) path 3283 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl8821ae_phy_set_txpower_level_by_path(hw, channel, path); path 3517 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c u8 path; path 3537 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c for (path = RF90_PATH_A; path < rtlphy->num_total_rfpath; path++) { path 3546 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl8821ae_phy_set_rf_reg(hw, path, RF_CHNLBW, path 3549 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl8821ae_phy_set_rf_reg(hw, path, RF_CHNLBW, path 3560 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl8821ae_phy_set_rf_reg(hw, path, RF_APK, path 3698 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c enum radio_path path, u32 tx_x, u32 tx_y) path 3701 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c switch (path) { path 3724 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c enum radio_path path, u32 rx_x, u32 rx_y) path 3727 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c switch (path) { path 3746 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c static void _rtl8821ae_iqk_tx(struct ieee80211_hw *hw, enum radio_path path) path 3769 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c switch (path) { path 3771 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c temp_reg65 = rtl_get_rfreg(hw, path, 0x65, 0xffffffff); path 3795 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0xef, RFREG_OFFSET_MASK, 0x80002); path 3796 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x18, 0x00c00, 0x3); /* BW 20M */ path 3797 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x30, RFREG_OFFSET_MASK, 0x20000); path 3798 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x31, RFREG_OFFSET_MASK, 0x0003f); path 3799 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x32, RFREG_OFFSET_MASK, 0xf3fc3); path 3800 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x65, RFREG_OFFSET_MASK, 0x931d5); path 3801 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x8f, RFREG_OFFSET_MASK, 0x8a001); path 3828 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x58, 0x7fe00, rtl_get_rfreg(hw, path, 0x8, 0xffc00)); /* Load LOK */ path 3832 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x18, 0x00c00, 0x1); path 3835 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x18, 0x00c00, 0x0); path 3845 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0xef, RFREG_OFFSET_MASK, 0x80000); path 3846 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x30, RFREG_OFFSET_MASK, 0x20000); path 3847 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x31, RFREG_OFFSET_MASK, 0x0003f); path 3848 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x32, RFREG_OFFSET_MASK, 0xf3fc3); path 3849 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x65, RFREG_OFFSET_MASK, 0x931d5); path 3850 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x8f, RFREG_OFFSET_MASK, 0x8a001); path 3851 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0xef, RFREG_OFFSET_MASK, 0x00000); path 4009 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0xef, RFREG_OFFSET_MASK, 0x80000); path 4010 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x30, RFREG_OFFSET_MASK, 0x30000); path 4011 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x31, RFREG_OFFSET_MASK, 0x00029); path 4012 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x32, RFREG_OFFSET_MASK, 0xd7ffb); path 4013 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x65, RFREG_OFFSET_MASK, temp_reg65); path 4014 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x8f, RFREG_OFFSET_MASK, 0x8a001); path 4015 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0xef, RFREG_OFFSET_MASK, 0x00000); path 4119 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0xef, RFREG_OFFSET_MASK, 0x80000); path 4120 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x30, RFREG_OFFSET_MASK, 0x30000); path 4121 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x31, RFREG_OFFSET_MASK, 0x0002f); path 4122 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x32, RFREG_OFFSET_MASK, 0xfffbb); path 4123 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x8f, RFREG_OFFSET_MASK, 0x88001); path 4124 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x65, RFREG_OFFSET_MASK, 0x931d8); path 4125 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0xef, RFREG_OFFSET_MASK, 0x00000); path 4204 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0xef, RFREG_OFFSET_MASK, 0x80000); path 4205 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x30, RFREG_OFFSET_MASK, 0x30000); path 4206 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x31, RFREG_OFFSET_MASK, 0x00029); path 4207 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x32, RFREG_OFFSET_MASK, 0xd7ffb); path 4208 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x65, RFREG_OFFSET_MASK, temp_reg65); path 4209 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x8f, RFREG_OFFSET_MASK, 0x8a001); path 4210 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0xef, RFREG_OFFSET_MASK, 0x00000); path 4276 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0xef, RFREG_OFFSET_MASK, 0x80000); path 4277 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x30, RFREG_OFFSET_MASK, 0x30000); path 4278 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x31, RFREG_OFFSET_MASK, 0x0002f); path 4279 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x32, RFREG_OFFSET_MASK, 0xfffbb); path 4280 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x8f, RFREG_OFFSET_MASK, 0x88001); path 4281 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x65, RFREG_OFFSET_MASK, 0x931d8); path 4282 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0xef, RFREG_OFFSET_MASK, 0x00000); path 4353 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, 0x65, RFREG_OFFSET_MASK, temp_reg65); path 4362 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c switch (path) { path 4397 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_iqk_tx_fill_iqc(hw, path, tx_x, tx_y); /* ? */ path 4399 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_iqk_tx_fill_iqc(hw, path, 0x200, 0x0); path 4427 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_iqk_rx_fill_iqc(hw, path, rx_x, rx_y); path 4429 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c _rtl8821ae_iqk_rx_fill_iqc(hw, path, 0x200, 0x0); path 4437 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c enum radio_path path, path 4446 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtl_set_rfreg(hw, path, backup_rf_reg[i], RFREG_OFFSET_MASK, path 4449 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c switch (path) { path 229 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.h u8 channel, u8 path); path 129 drivers/net/wireless/realtek/rtw88/debug.c u8 path; path 131 drivers/net/wireless/realtek/rtw88/debug.c path = debugfs_priv->rf_path; path 135 drivers/net/wireless/realtek/rtw88/debug.c val = rtw_read_rf(rtwdev, path, addr, mask); path 138 drivers/net/wireless/realtek/rtw88/debug.c path, addr, mask, val); path 353 drivers/net/wireless/realtek/rtw88/debug.c u32 path, addr, mask, val; path 358 drivers/net/wireless/realtek/rtw88/debug.c num = sscanf(tmp, "%x %x %x %x", &path, &addr, &mask, &val); path 365 drivers/net/wireless/realtek/rtw88/debug.c rtw_write_rf(rtwdev, path, addr, mask, val); path 368 drivers/net/wireless/realtek/rtw88/debug.c path, addr, mask, val); path 381 drivers/net/wireless/realtek/rtw88/debug.c u32 path, addr, mask; path 386 drivers/net/wireless/realtek/rtw88/debug.c num = sscanf(tmp, "%x %x %x", &path, &addr, &mask); path 393 drivers/net/wireless/realtek/rtw88/debug.c debugfs_priv->rf_path = path; path 445 drivers/net/wireless/realtek/rtw88/debug.c u8 path; path 447 drivers/net/wireless/realtek/rtw88/debug.c for (path = 0; path < rtwdev->hal.rf_path_num; path++) { path 448 drivers/net/wireless/realtek/rtw88/debug.c seq_printf(m, "RF path:%d\n", path); path 452 drivers/net/wireless/realtek/rtw88/debug.c data = rtw_read_rf(rtwdev, path, addr + offset, path 507 drivers/net/wireless/realtek/rtw88/debug.c u8 path, rate; path 517 drivers/net/wireless/realtek/rtw88/debug.c for (path = RF_PATH_A; path <= RF_PATH_B; path++) { path 549 drivers/net/wireless/realtek/rtw88/debug.c rtw_get_tx_power_params(rtwdev, path, rate, bw, path 552 drivers/net/wireless/realtek/rtw88/debug.c seq_printf(m, "%4c ", path + 'A'); path 556 drivers/net/wireless/realtek/rtw88/debug.c hal->tx_pwr_tbl[path][rate], path 557 drivers/net/wireless/realtek/rtw88/debug.c hal->tx_pwr_tbl[path][rate], path 153 drivers/net/wireless/realtek/rtw88/phy.c u8 path; path 155 drivers/net/wireless/realtek/rtw88/phy.c for (path = 0; path < hal->rf_path_num; path++) { path 156 drivers/net/wireless/realtek/rtw88/phy.c addr = chip->dig[path].addr; path 157 drivers/net/wireless/realtek/rtw88/phy.c mask = chip->dig[path].mask; path 641 drivers/net/wireless/realtek/rtw88/phy.c u8 path; path 643 drivers/net/wireless/realtek/rtw88/phy.c for (path = 0; path < path_num; path++) { path 644 drivers/net/wireless/realtek/rtw88/phy.c power = rf_power[path]; path 1736 drivers/net/wireless/realtek/rtw88/phy.c void rtw_get_tx_power_params(struct rtw_dev *rtwdev, u8 path, u8 rate, u8 bw, path 1746 drivers/net/wireless/realtek/rtw88/phy.c pwr_idx = &rtwdev->efuse.txpwr_idx_table[path]; path 1755 drivers/net/wireless/realtek/rtw88/phy.c *offset = hal->tx_pwr_by_rate_offset_2g[path][rate]; path 1761 drivers/net/wireless/realtek/rtw88/phy.c *offset = hal->tx_pwr_by_rate_offset_5g[path][rate]; path 1764 drivers/net/wireless/realtek/rtw88/phy.c *limit = rtw_phy_get_tx_power_limit(rtwdev, band, bw, path, path 1794 drivers/net/wireless/realtek/rtw88/phy.c u8 ch, u8 path, u8 rs) path 1813 drivers/net/wireless/realtek/rtw88/phy.c pwr_idx = rtw_phy_get_tx_power_index(rtwdev, path, rate, path 1815 drivers/net/wireless/realtek/rtw88/phy.c hal->tx_pwr_tbl[path][rate] = pwr_idx; path 1825 drivers/net/wireless/realtek/rtw88/phy.c u8 ch, u8 path) path 1837 drivers/net/wireless/realtek/rtw88/phy.c rtw_phy_set_tx_power_index_by_rs(rtwdev, ch, path, rs); path 1844 drivers/net/wireless/realtek/rtw88/phy.c u8 path; path 1848 drivers/net/wireless/realtek/rtw88/phy.c for (path = 0; path < hal->rf_path_num; path++) path 1849 drivers/net/wireless/realtek/rtw88/phy.c rtw_phy_set_tx_power_level_by_path(rtwdev, channel, path); path 1856 drivers/net/wireless/realtek/rtw88/phy.c rtw_phy_tx_power_by_rate_config_by_path(struct rtw_hal *hal, u8 path, path 1867 drivers/net/wireless/realtek/rtw88/phy.c base_2g = hal->tx_pwr_by_rate_offset_2g[path][base_idx]; path 1868 drivers/net/wireless/realtek/rtw88/phy.c base_5g = hal->tx_pwr_by_rate_offset_5g[path][base_idx]; path 1869 drivers/net/wireless/realtek/rtw88/phy.c hal->tx_pwr_by_rate_base_2g[path][rs] = base_2g; path 1870 drivers/net/wireless/realtek/rtw88/phy.c hal->tx_pwr_by_rate_base_5g[path][rs] = base_5g; path 1873 drivers/net/wireless/realtek/rtw88/phy.c hal->tx_pwr_by_rate_offset_2g[path][rate_idx] -= base_2g; path 1874 drivers/net/wireless/realtek/rtw88/phy.c hal->tx_pwr_by_rate_offset_5g[path][rate_idx] -= base_5g; path 1880 drivers/net/wireless/realtek/rtw88/phy.c u8 path; path 1882 drivers/net/wireless/realtek/rtw88/phy.c for (path = 0; path < RTW_RF_PATH_MAX; path++) { path 1883 drivers/net/wireless/realtek/rtw88/phy.c rtw_phy_tx_power_by_rate_config_by_path(hal, path, path 1886 drivers/net/wireless/realtek/rtw88/phy.c rtw_phy_tx_power_by_rate_config_by_path(hal, path, path 1889 drivers/net/wireless/realtek/rtw88/phy.c rtw_phy_tx_power_by_rate_config_by_path(hal, path, path 1892 drivers/net/wireless/realtek/rtw88/phy.c rtw_phy_tx_power_by_rate_config_by_path(hal, path, path 1895 drivers/net/wireless/realtek/rtw88/phy.c rtw_phy_tx_power_by_rate_config_by_path(hal, path, path 1898 drivers/net/wireless/realtek/rtw88/phy.c rtw_phy_tx_power_by_rate_config_by_path(hal, path, path 1953 drivers/net/wireless/realtek/rtw88/phy.c u8 regd, path, rate, rs, bw; path 1956 drivers/net/wireless/realtek/rtw88/phy.c for (path = 0; path < RTW_RF_PATH_MAX; path++) { path 1958 drivers/net/wireless/realtek/rtw88/phy.c hal->tx_pwr_by_rate_offset_2g[path][rate] = 0; path 1959 drivers/net/wireless/realtek/rtw88/phy.c hal->tx_pwr_by_rate_offset_5g[path][rate] = 0; path 57 drivers/net/wireless/realtek/rtw88/phy.h #define RTW_DECL_TABLE_PHY_COND_CORE(name, cfg, path) \ path 63 drivers/net/wireless/realtek/rtw88/phy.h .rf_path = path, \ path 69 drivers/net/wireless/realtek/rtw88/phy.h #define RTW_DECL_TABLE_RF_RADIO(name, path) \ path 70 drivers/net/wireless/realtek/rtw88/phy.h RTW_DECL_TABLE_PHY_COND_CORE(name, rtw_phy_cfg_rf, RF_PATH_ ## path) path 124 drivers/net/wireless/realtek/rtw88/phy.h rtw_get_tx_power_params(struct rtw_dev *rtwdev, u8 path, path 867 drivers/net/wireless/realtek/rtw88/rtw8822b.c rtw8822b_set_tx_power_index_by_rate(struct rtw_dev *rtwdev, u8 path, u8 rs) path 877 drivers/net/wireless/realtek/rtw88/rtw8822b.c pwr_index = hal->tx_pwr_tbl[path][rate]; path 882 drivers/net/wireless/realtek/rtw88/rtw8822b.c rtw_write32(rtwdev, offset_txagc[path] + rate_idx, path 892 drivers/net/wireless/realtek/rtw88/rtw8822b.c int rs, path; path 894 drivers/net/wireless/realtek/rtw88/rtw8822b.c for (path = 0; path < hal->rf_path_num; path++) { path 896 drivers/net/wireless/realtek/rtw88/rtw8822b.c rtw8822b_set_tx_power_index_by_rate(rtwdev, path, rs); path 76 drivers/net/wireless/realtek/rtw88/rtw8822c.c u32 path, i; path 91 drivers/net/wireless/realtek/rtw88/rtw8822c.c for (path = 0; path < DACK_PATH_8822C; path++) { path 94 drivers/net/wireless/realtek/rtw88/rtw8822c.c val = rtw_read_rf(rtwdev, path, reg, RFREG_MASK); path 95 drivers/net/wireless/realtek/rtw88/rtw8822c.c backup_rf[path * i + i].reg = reg; path 96 drivers/net/wireless/realtek/rtw88/rtw8822c.c backup_rf[path * i + i].val = val; path 105 drivers/net/wireless/realtek/rtw88/rtw8822c.c u32 path, i; path 111 drivers/net/wireless/realtek/rtw88/rtw8822c.c for (path = 0; path < DACK_PATH_8822C; path++) { path 113 drivers/net/wireless/realtek/rtw88/rtw8822c.c val = backup_rf[path * i + i].val; path 114 drivers/net/wireless/realtek/rtw88/rtw8822c.c reg = backup_rf[path * i + i].reg; path 115 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, reg, RFREG_MASK, val); path 209 drivers/net/wireless/realtek/rtw88/rtw8822c.c static u32 rtw8822c_get_path_write_addr(u8 path) path 213 drivers/net/wireless/realtek/rtw88/rtw8822c.c switch (path) { path 228 drivers/net/wireless/realtek/rtw88/rtw8822c.c static u32 rtw8822c_get_path_read_addr(u8 path) path 232 drivers/net/wireless/realtek/rtw88/rtw8822c.c switch (path) { path 368 drivers/net/wireless/realtek/rtw88/rtw8822c.c u8 path, u32 *adc_ic, u32 *adc_qc) path 376 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_dbg(rtwdev, RTW_DBG_RFK, "[DACK] ADCK path(%d)\n", path); path 378 drivers/net/wireless/realtek/rtw88/rtw8822c.c base_addr = rtw8822c_get_path_write_addr(path); path 379 drivers/net/wireless/realtek/rtw88/rtw8822c.c switch (path) { path 393 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (path == RF_PATH_B) path 420 drivers/net/wireless/realtek/rtw88/rtw8822c.c dm_info->dack_adck[path] = temp; path 442 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, 0x8f, BIT(13), 0x1); path 445 drivers/net/wireless/realtek/rtw88/rtw8822c.c static void rtw8822c_dac_cal_step1(struct rtw_dev *rtwdev, u8 path) path 451 drivers/net/wireless/realtek/rtw88/rtw8822c.c base_addr = rtw8822c_get_path_write_addr(path); path 452 drivers/net/wireless/realtek/rtw88/rtw8822c.c read_addr = rtw8822c_get_path_read_addr(path); path 454 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32(rtwdev, base_addr + 0x68, dm_info->dack_adck[path]); path 456 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (path == RF_PATH_A) { path 491 drivers/net/wireless/realtek/rtw88/rtw8822c.c u8 path, u32 *ic_out, u32 *qc_out) path 496 drivers/net/wireless/realtek/rtw88/rtw8822c.c base_addr = rtw8822c_get_path_write_addr(path); path 539 drivers/net/wireless/realtek/rtw88/rtw8822c.c static void rtw8822c_dac_cal_step3(struct rtw_dev *rtwdev, u8 path, path 549 drivers/net/wireless/realtek/rtw88/rtw8822c.c base_addr = rtw8822c_get_path_write_addr(path); path 550 drivers/net/wireless/realtek/rtw88/rtw8822c.c read_addr = rtw8822c_get_path_read_addr(path); path 616 drivers/net/wireless/realtek/rtw88/rtw8822c.c static void rtw8822c_dac_cal_step4(struct rtw_dev *rtwdev, u8 path) path 618 drivers/net/wireless/realtek/rtw88/rtw8822c.c u32 base_addr = rtw8822c_get_path_write_addr(path); path 627 drivers/net/wireless/realtek/rtw88/rtw8822c.c u8 path, u8 vec, u32 w_addr, u32 r_addr) path 639 drivers/net/wireless/realtek/rtw88/rtw8822c.c dm_info->dack_msbk[path][vec][i] = val; path 643 drivers/net/wireless/realtek/rtw88/rtw8822c.c static void rtw8822c_dac_cal_backup_path(struct rtw_dev *rtwdev, u8 path) path 649 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (WARN_ON(path >= 2)) path 653 drivers/net/wireless/realtek/rtw88/rtw8822c.c w_addr = rtw8822c_get_path_write_addr(path) + 0xb0; path 654 drivers/net/wireless/realtek/rtw88/rtw8822c.c r_addr = rtw8822c_get_path_read_addr(path) + 0x10; path 655 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dac_cal_backup_vec(rtwdev, path, 0, w_addr, r_addr); path 658 drivers/net/wireless/realtek/rtw88/rtw8822c.c w_addr = rtw8822c_get_path_write_addr(path) + 0xb0 + w_off; path 659 drivers/net/wireless/realtek/rtw88/rtw8822c.c r_addr = rtw8822c_get_path_read_addr(path) + 0x10 + r_off; path 660 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dac_cal_backup_vec(rtwdev, path, 1, w_addr, r_addr); path 817 drivers/net/wireless/realtek/rtw88/rtw8822c.c static bool rtw8822c_dac_cal_restore_path(struct rtw_dev *rtwdev, u8 path) path 826 drivers/net/wireless/realtek/rtw88/rtw8822c.c w_i = rtw8822c_get_path_write_addr(path) + 0xb0; path 827 drivers/net/wireless/realtek/rtw88/rtw8822c.c r_i = rtw8822c_get_path_read_addr(path) + 0x08; path 828 drivers/net/wireless/realtek/rtw88/rtw8822c.c w_q = rtw8822c_get_path_write_addr(path) + 0xb0 + w_off; path 829 drivers/net/wireless/realtek/rtw88/rtw8822c.c r_q = rtw8822c_get_path_read_addr(path) + 0x08 + r_off; path 836 drivers/net/wireless/realtek/rtw88/rtw8822c.c value = dm_info->dack_msbk[path][0][i]; path 849 drivers/net/wireless/realtek/rtw88/rtw8822c.c value = dm_info->dack_msbk[path][1][i]; path 1741 drivers/net/wireless/realtek/rtw88/rtw8822c.c u8 path; path 1743 drivers/net/wireless/realtek/rtw88/rtw8822c.c for (path = 0; path < hal->rf_path_num; path++) { path 1745 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32_mask(rtwdev, txref_cck[path], 0x7f0000, path 1746 drivers/net/wireless/realtek/rtw88/rtw8822c.c tx_pwr_ref_cck[path]); path 1748 drivers/net/wireless/realtek/rtw88/rtw8822c.c for (path = 0; path < hal->rf_path_num; path++) { path 1750 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32_mask(rtwdev, txref_ofdm[path], 0x1fc00, path 1751 drivers/net/wireless/realtek/rtw88/rtw8822c.c tx_pwr_ref_ofdm[path]); path 2154 drivers/net/wireless/realtek/rtw88/rtw8822c.c static void rtw8822c_dpk_rxbb_dc_cal(struct rtw_dev *rtwdev, u8 path) path 2156 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, 0x92, RFREG_MASK, 0x84800); path 2158 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, 0x92, RFREG_MASK, 0x84801); path 2160 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, 0x92, RFREG_MASK, 0x84800); path 2163 drivers/net/wireless/realtek/rtw88/rtw8822c.c static u8 rtw8822c_dpk_dc_corr_check(struct rtw_dev *rtwdev, u8 path) path 2220 drivers/net/wireless/realtek/rtw88/rtw8822c.c u8 path; path 2222 drivers/net/wireless/realtek/rtw88/rtw8822c.c for (path = 0; path < rtwdev->hal.rf_path_num; path++) { path 2223 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_RXAGC_OFFSET, RFREG_MASK, 0x0); path 2224 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32(rtwdev, REG_NCTL0, 0x8 | (path << 1)); path 2237 drivers/net/wireless/realtek/rtw88/rtw8822c.c static u32 rtw8822c_dpk_rf_setting(struct rtw_dev *rtwdev, u8 path) path 2241 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_MODE_TRXAGC, RFREG_MASK, 0x50017); path 2242 drivers/net/wireless/realtek/rtw88/rtw8822c.c ori_txbb = rtw_read_rf(rtwdev, path, RF_TX_GAIN, RFREG_MASK); path 2244 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_DEBUG, BIT_DE_TX_GAIN, 0x1); path 2245 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_DEBUG, BIT_DE_PWR_TRIM, 0x1); path 2246 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_TX_GAIN_OFFSET, BIT_TX_OFFSET_VAL, 0x0); path 2247 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_TX_GAIN, RFREG_MASK, ori_txbb); path 2250 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_TX_GAIN_OFFSET, BIT_LB_ATT, 0x1); path 2251 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_RXG_GAIN, BIT_RXG_GAIN, 0x0); path 2253 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_TXA_LB_SW, BIT_TXA_LB_ATT, 0x0); path 2254 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_TXA_LB_SW, BIT_LB_ATT, 0x6); path 2255 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_TXA_LB_SW, BIT_LB_SW, 0x1); path 2256 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_RXA_MIX_GAIN, BIT_RXA_MIX_GAIN, 0); path 2259 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_MODE_TRXAGC, BIT_RXAGC, 0xf); path 2260 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_DEBUG, BIT_DE_TRXBW, 0x1); path 2261 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_BW_TRXBB, BIT_BW_RXBB, 0x0); path 2264 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_BW_TRXBB, BIT_BW_TXBB, 0x2); path 2266 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_BW_TRXBB, BIT_BW_TXBB, 0x1); path 2268 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_EXT_TIA_BW, BIT(1), 0x1); path 2275 drivers/net/wireless/realtek/rtw88/rtw8822c.c static u16 rtw8822c_dpk_get_cmd(struct rtw_dev *rtwdev, u8 action, u8 path) path 2282 drivers/net/wireless/realtek/rtw88/rtw8822c.c cmd = 0x14 + path; path 2285 drivers/net/wireless/realtek/rtw88/rtw8822c.c cmd = 0x16 + path + bw; path 2288 drivers/net/wireless/realtek/rtw88/rtw8822c.c cmd = 0x1a + path; path 2291 drivers/net/wireless/realtek/rtw88/rtw8822c.c cmd = 0x1c + path + bw; path 2300 drivers/net/wireless/realtek/rtw88/rtw8822c.c static u8 rtw8822c_dpk_one_shot(struct rtw_dev *rtwdev, u8 path, u8 action) path 2318 drivers/net/wireless/realtek/rtw88/rtw8822c.c 0x8 | (path << 1)); path 2321 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_cmd = rtw8822c_dpk_get_cmd(rtwdev, action, path); path 2330 drivers/net/wireless/realtek/rtw88/rtw8822c.c 0x8 | (path << 1)); path 2341 drivers/net/wireless/realtek/rtw88/rtw8822c.c static u16 rtw8822c_dpk_dgain_read(struct rtw_dev *rtwdev, u8 path) path 2353 drivers/net/wireless/realtek/rtw88/rtw8822c.c static u8 rtw8822c_dpk_thermal_read(struct rtw_dev *rtwdev, u8 path) path 2355 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_T_METER, BIT(19), 0x1); path 2356 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_T_METER, BIT(19), 0x0); path 2357 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_T_METER, BIT(19), 0x1); path 2360 drivers/net/wireless/realtek/rtw88/rtw8822c.c return (u8)rtw_read_rf(rtwdev, path, RF_T_METER, 0x0007e); path 2363 drivers/net/wireless/realtek/rtw88/rtw8822c.c static u32 rtw8822c_dpk_pas_read(struct rtw_dev *rtwdev, u8 path) path 2367 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32(rtwdev, REG_NCTL0, 0x8 | (path << 1)); path 2412 drivers/net/wireless/realtek/rtw88/rtw8822c.c static u8 rtw8822c_dpk_gainloss_result(struct rtw_dev *rtwdev, u8 path) path 2416 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32_mask(rtwdev, REG_NCTL0, BIT_SUBPAGE, 0x8 | (path << 1)); path 2427 drivers/net/wireless/realtek/rtw88/rtw8822c.c static u8 rtw8822c_dpk_agc_gain_chk(struct rtw_dev *rtwdev, u8 path, path 2433 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_one_shot(rtwdev, path, RTW_DPK_DAGC); path 2434 drivers/net/wireless/realtek/rtw88/rtw8822c.c dgain = rtw8822c_dpk_dgain_read(rtwdev, path); path 2444 drivers/net/wireless/realtek/rtw88/rtw8822c.c static u8 rtw8822c_dpk_agc_loss_chk(struct rtw_dev *rtwdev, u8 path) path 2448 drivers/net/wireless/realtek/rtw88/rtw8822c.c loss = rtw8822c_dpk_pas_read(rtwdev, path); path 2468 drivers/net/wireless/realtek/rtw88/rtw8822c.c u8 path; path 2476 drivers/net/wireless/realtek/rtw88/rtw8822c.c data->txbb = (u8)rtw_read_rf(rtwdev, data->path, RF_TX_GAIN, path 2478 drivers/net/wireless/realtek/rtw88/rtw8822c.c data->pga = (u8)rtw_read_rf(rtwdev, data->path, RF_MODE_TRXAGC, path 2486 drivers/net/wireless/realtek/rtw88/rtw8822c.c state = rtw8822c_dpk_agc_gain_chk(rtwdev, data->path, path 2507 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, data->path, RF_MODE_TRXAGC, BIT_RXAGC, 0xc); path 2509 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, data->path, RF_MODE_TRXAGC, BIT_RXAGC, 0x0); path 2522 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, data->path, RF_MODE_TRXAGC, BIT_RXAGC, 0xc); path 2524 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, data->path, RF_MODE_TRXAGC, BIT_RXAGC, 0xf); path 2544 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, data->path, RF_TX_GAIN, BIT_GAIN_TXBB, data->txbb); path 2565 drivers/net/wireless/realtek/rtw88/rtw8822c.c u8 path = data->path; path 2568 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_one_shot(rtwdev, path, RTW_DPK_GAIN_LOSS); path 2569 drivers/net/wireless/realtek/rtw88/rtw8822c.c state = rtw8822c_dpk_agc_loss_chk(rtwdev, path); path 2580 drivers/net/wireless/realtek/rtw88/rtw8822c.c static u8 rtw8822c_dpk_pas_agc(struct rtw_dev *rtwdev, u8 path, path 2589 drivers/net/wireless/realtek/rtw88/rtw8822c.c data.path = path; path 2635 drivers/net/wireless/realtek/rtw88/rtw8822c.c static void rtw8822c_dpk_coef_tbl_apply(struct rtw_dev *rtwdev, u8 path) path 2643 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_info->coef[path][i] = rtw8822c_dpk_coef_transfer(rtwdev); path 2647 drivers/net/wireless/realtek/rtw88/rtw8822c.c static void rtw8822c_dpk_get_coef(struct rtw_dev *rtwdev, u8 path) path 2651 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (path == RF_PATH_A) { path 2654 drivers/net/wireless/realtek/rtw88/rtw8822c.c } else if (path == RF_PATH_B) { path 2659 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_coef_tbl_apply(rtwdev, path); path 2662 drivers/net/wireless/realtek/rtw88/rtw8822c.c static u8 rtw8822c_dpk_coef_read(struct rtw_dev *rtwdev, u8 path) path 2669 drivers/net/wireless/realtek/rtw88/rtw8822c.c coef_i = FIELD_GET(0x1fff0000, dpk_info->coef[path][addr]); path 2670 drivers/net/wireless/realtek/rtw88/rtw8822c.c coef_q = FIELD_GET(0x1fff, dpk_info->coef[path][addr]); path 2680 drivers/net/wireless/realtek/rtw88/rtw8822c.c static void rtw8822c_dpk_coef_write(struct rtw_dev *rtwdev, u8 path, u8 result) path 2697 drivers/net/wireless/realtek/rtw88/rtw8822c.c coef = dpk_info->coef[path][addr]; path 2699 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32(rtwdev, reg[path] + addr * 4, coef); path 2704 drivers/net/wireless/realtek/rtw88/rtw8822c.c u8 path, u8 result) path 2708 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32_mask(rtwdev, REG_NCTL0, BIT_SUBPAGE, 0x8 | (path << 1)); path 2715 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_info->result[path] = result; path 2716 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_info->dpk_txagc[path] = rtw_read8(rtwdev, REG_DPD_AGC); path 2718 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_coef_write(rtwdev, path, result); path 2721 drivers/net/wireless/realtek/rtw88/rtw8822c.c static u32 rtw8822c_dpk_gainloss(struct rtw_dev *rtwdev, u8 path) path 2726 drivers/net/wireless/realtek/rtw88/rtw8822c.c ori_txbb = rtw8822c_dpk_rf_setting(rtwdev, path); path 2727 drivers/net/wireless/realtek/rtw88/rtw8822c.c ori_txagc = (u8)rtw_read_rf(rtwdev, path, RF_MODE_TRXAGC, BIT_TXAGC); path 2729 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_rxbb_dc_cal(rtwdev, path); path 2730 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_one_shot(rtwdev, path, RTW_DPK_DAGC); path 2731 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_dgain_read(rtwdev, path); path 2733 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (rtw8822c_dpk_dc_corr_check(rtwdev, path)) { path 2734 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_rxbb_dc_cal(rtwdev, path); path 2735 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_one_shot(rtwdev, path, RTW_DPK_DAGC); path 2736 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_dc_corr_check(rtwdev, path); path 2739 drivers/net/wireless/realtek/rtw88/rtw8822c.c t1 = rtw8822c_dpk_thermal_read(rtwdev, path); path 2740 drivers/net/wireless/realtek/rtw88/rtw8822c.c tx_bb = rtw8822c_dpk_pas_agc(rtwdev, path, false, true); path 2741 drivers/net/wireless/realtek/rtw88/rtw8822c.c tx_agc_search = rtw8822c_dpk_gainloss_result(rtwdev, path); path 2748 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_TX_GAIN, BIT_GAIN_TXBB, tx_bb); path 2752 drivers/net/wireless/realtek/rtw88/rtw8822c.c t2 = rtw8822c_dpk_thermal_read(rtwdev, path); path 2754 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_info->thermal_dpk_delta[path] = abs(t2 - t1); path 2759 drivers/net/wireless/realtek/rtw88/rtw8822c.c static u8 rtw8822c_dpk_by_path(struct rtw_dev *rtwdev, u32 tx_agc, u8 path) path 2763 drivers/net/wireless/realtek/rtw88/rtw8822c.c result = rtw8822c_dpk_one_shot(rtwdev, path, RTW_DPK_DO_DPK); path 2765 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32_mask(rtwdev, REG_NCTL0, BIT_SUBPAGE, 0x8 | (path << 1)); path 2769 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write_rf(rtwdev, path, RF_MODE_TRXAGC, RFREG_MASK, 0x33e14); path 2771 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_get_coef(rtwdev, path); path 2776 drivers/net/wireless/realtek/rtw88/rtw8822c.c static void rtw8822c_dpk_cal_gs(struct rtw_dev *rtwdev, u8 path) path 2781 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32_mask(rtwdev, REG_NCTL0, BIT_SUBPAGE, 0x8 | (path << 1)); path 2789 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (path == RF_PATH_A) { path 2806 drivers/net/wireless/realtek/rtw88/rtw8822c.c 0x05020000 | (BIT(path) << 28)); path 2814 drivers/net/wireless/realtek/rtw88/rtw8822c.c 0x05020008 | (BIT(path) << 28)); path 2817 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32_mask(rtwdev, REG_DPD_CTL0, MASKBYTE3, 0x8 | path); path 2819 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_one_shot(rtwdev, path, RTW_DPK_CAL_PWR); path 2822 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32_mask(rtwdev, REG_NCTL0, BIT_SUBPAGE, 0x8 | (path << 1)); path 2827 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (path == RF_PATH_A) path 2838 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (path == RF_PATH_A) path 2843 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_info->dpk_gs[path] = tmp_gs; path 2851 drivers/net/wireless/realtek/rtw88/rtw8822c.c u8 path; path 2863 drivers/net/wireless/realtek/rtw88/rtw8822c.c for (path = 0; path < rtwdev->hal.rf_path_num; path++) { path 2864 drivers/net/wireless/realtek/rtw88/rtw8822c.c i_scaling = 0x16c00 / dpk_info->dpk_gs[path]; path 2866 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32_mask(rtwdev, 0x1b18 + offset[path], MASKHWORD, path 2868 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32_mask(rtwdev, REG_DPD_CTL0_S0 + offset[path], path 2870 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32_mask(rtwdev, REG_DPD_CTL0_S0 + offset[path], path 2872 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32_mask(rtwdev, REG_DPD_CTL0_S0 + offset[path], path 2874 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32_mask(rtwdev, REG_DPD_CTL1_S0 + offset[path], path 2879 drivers/net/wireless/realtek/rtw88/rtw8822c.c static void rtw8822c_dpk_on(struct rtw_dev *rtwdev, u8 path) path 2883 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_one_shot(rtwdev, path, RTW_DPK_DPK_ON); path 2885 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write32_mask(rtwdev, REG_NCTL0, BIT_SUBPAGE, 0x8 | (path << 1)); path 2888 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (test_bit(path, dpk_info->dpk_path_ok)) path 2889 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_cal_gs(rtwdev, path); path 2893 drivers/net/wireless/realtek/rtw88/rtw8822c.c u32 dpk_txagc, u8 path) path 2898 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (rtw8822c_dpk_coef_read(rtwdev, path)) path 2906 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_fill_result(rtwdev, dpk_txagc, path, result); path 2914 drivers/net/wireless/realtek/rtw88/rtw8822c.c u8 path; path 2916 drivers/net/wireless/realtek/rtw88/rtw8822c.c for (path = 0; path < rtwdev->hal.rf_path_num; path++) { path 2917 drivers/net/wireless/realtek/rtw88/rtw8822c.c clear_bit(path, dpk_info->dpk_path_ok); path 2919 drivers/net/wireless/realtek/rtw88/rtw8822c.c 0x8 | (path << 1)); path 2922 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_info->dpk_txagc[path] = 0; path 2923 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_info->result[path] = 0; path 2924 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_info->dpk_gs[path] = 0x5b; path 2925 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_info->pre_pwsf[path] = 0; path 2926 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_info->thermal_dpk[path] = rtw8822c_dpk_thermal_read(rtwdev, path 2927 drivers/net/wireless/realtek/rtw88/rtw8822c.c path); path 2931 drivers/net/wireless/realtek/rtw88/rtw8822c.c static void rtw8822c_dpk_calibrate(struct rtw_dev *rtwdev, u8 path) path 2937 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_dbg(rtwdev, RTW_DBG_RFK, "[DPK] s%d dpk start\n", path); path 2939 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_txagc = rtw8822c_dpk_gainloss(rtwdev, path); path 2941 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_fail = rtw8822c_dpk_by_path(rtwdev, dpk_txagc, path); path 2943 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (!rtw8822c_dpk_check_pass(rtwdev, dpk_fail, dpk_txagc, path)) path 2946 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_dbg(rtwdev, RTW_DBG_RFK, "[DPK] s%d dpk finish\n", path); path 2948 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (dpk_info->result[path]) path 2949 drivers/net/wireless/realtek/rtw88/rtw8822c.c set_bit(path, dpk_info->dpk_path_ok); path 2986 drivers/net/wireless/realtek/rtw88/rtw8822c.c u8 path; path 2993 drivers/net/wireless/realtek/rtw88/rtw8822c.c for (path = 0; path < rtwdev->hal.rf_path_num; path++) { path 2995 drivers/net/wireless/realtek/rtw88/rtw8822c.c 0x8 | (path << 1)); path 3001 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw_write8(rtwdev, REG_DPD_AGC, dpk_info->dpk_txagc[path]); path 3003 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_coef_write(rtwdev, path, path 3004 drivers/net/wireless/realtek/rtw88/rtw8822c.c test_bit(path, dpk_info->dpk_path_ok)); path 3006 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_one_shot(rtwdev, path, RTW_DPK_DPK_ON); path 3010 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (path == RF_PATH_A) path 3012 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_info->dpk_gs[path]); path 3015 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_info->dpk_gs[path]); path 3050 drivers/net/wireless/realtek/rtw88/rtw8822c.c u8 path; path 3059 drivers/net/wireless/realtek/rtw88/rtw8822c.c for (path = RF_PATH_A; path < DPK_RF_PATH_NUM; path++) path 3060 drivers/net/wireless/realtek/rtw88/rtw8822c.c ewma_thermal_init(&dpk_info->avg_thermal[path]); path 3076 drivers/net/wireless/realtek/rtw88/rtw8822c.c for (path = 0; path < rtwdev->hal.rf_path_num; path++) path 3077 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822c_dpk_rxbb_dc_cal(rtwdev, path); path 3090 drivers/net/wireless/realtek/rtw88/rtw8822c.c u8 path; path 3097 drivers/net/wireless/realtek/rtw88/rtw8822c.c for (path = 0; path < DPK_RF_PATH_NUM; path++) { path 3098 drivers/net/wireless/realtek/rtw88/rtw8822c.c thermal_value[path] = rtw8822c_dpk_thermal_read(rtwdev, path); path 3099 drivers/net/wireless/realtek/rtw88/rtw8822c.c ewma_thermal_add(&dpk_info->avg_thermal[path], path 3100 drivers/net/wireless/realtek/rtw88/rtw8822c.c thermal_value[path]); path 3101 drivers/net/wireless/realtek/rtw88/rtw8822c.c thermal_value[path] = path 3102 drivers/net/wireless/realtek/rtw88/rtw8822c.c ewma_thermal_read(&dpk_info->avg_thermal[path]); path 3103 drivers/net/wireless/realtek/rtw88/rtw8822c.c delta_dpk[path] = dpk_info->thermal_dpk[path] - path 3104 drivers/net/wireless/realtek/rtw88/rtw8822c.c thermal_value[path]; path 3105 drivers/net/wireless/realtek/rtw88/rtw8822c.c offset[path] = delta_dpk[path] - path 3106 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_info->thermal_dpk_delta[path]; path 3107 drivers/net/wireless/realtek/rtw88/rtw8822c.c offset[path] &= 0x7f; path 3109 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (offset[path] != dpk_info->pre_pwsf[path]) { path 3111 drivers/net/wireless/realtek/rtw88/rtw8822c.c 0x8 | (path << 1)); path 3113 drivers/net/wireless/realtek/rtw88/rtw8822c.c offset[path]); path 3114 drivers/net/wireless/realtek/rtw88/rtw8822c.c dpk_info->pre_pwsf[path] = offset[path]; path 93 drivers/net/wireless/realtek/rtw88/rx.c u8 path; path 150 drivers/net/wireless/realtek/rtw88/rx.c for (path = 0; path < rtwdev->hal.rf_path_num; path++) { path 151 drivers/net/wireless/realtek/rtw88/rx.c rx_status->chains |= BIT(path); path 152 drivers/net/wireless/realtek/rtw88/rx.c rx_status->chain_signal[path] = pkt_stat->rx_power[path]; path 680 drivers/net/xen-netback/xenbus.c const char *path, const char *token) path 737 drivers/net/xen-netback/xenbus.c const char *path, const char *token) path 812 drivers/net/xen-netback/xenbus.c const char *path, path 1669 drivers/net/xen-netfront.c char *path; path 1675 drivers/net/xen-netfront.c path = kzalloc(pathsize, GFP_KERNEL); path 1676 drivers/net/xen-netfront.c if (!path) { path 1681 drivers/net/xen-netfront.c snprintf(path, pathsize, "%s/queue-%u", path 1684 drivers/net/xen-netfront.c path = (char *)dev->nodename; path 1688 drivers/net/xen-netfront.c err = xenbus_printf(*xbt, path, "tx-ring-ref", "%u", path 1695 drivers/net/xen-netfront.c err = xenbus_printf(*xbt, path, "rx-ring-ref", "%u", path 1707 drivers/net/xen-netfront.c err = xenbus_printf(*xbt, path, path 1715 drivers/net/xen-netfront.c err = xenbus_printf(*xbt, path, path 1722 drivers/net/xen-netfront.c err = xenbus_printf(*xbt, path, path 1731 drivers/net/xen-netfront.c kfree(path); path 1736 drivers/net/xen-netfront.c kfree(path); path 886 drivers/of/base.c const char *path) path 891 drivers/of/base.c len = strcspn(path, "/:"); path 897 drivers/of/base.c if (strncmp(path, name, len) == 0 && (strlen(name) == len)) path 904 drivers/of/base.c const char *path) path 906 drivers/of/base.c const char *separator = strchr(path, ':'); path 908 drivers/of/base.c while (node && *path == '/') { path 911 drivers/of/base.c path++; /* Increment past '/' delimiter */ path 912 drivers/of/base.c node = __of_find_node_by_path(node, path); path 914 drivers/of/base.c path = strchrnul(path, '/'); path 915 drivers/of/base.c if (separator && separator < path) path 939 drivers/of/base.c struct device_node *of_find_node_opts_by_path(const char *path, const char **opts) path 944 drivers/of/base.c const char *separator = strchr(path, ':'); path 949 drivers/of/base.c if (strcmp(path, "/") == 0) path 953 drivers/of/base.c if (*path != '/') { path 958 drivers/of/base.c p = strchrnul(path, '/'); path 959 drivers/of/base.c len = p - path; path 966 drivers/of/base.c if (strlen(pp->name) == len && !strncmp(pp->name, path, len)) { path 973 drivers/of/base.c path = p; path 980 drivers/of/base.c np = __of_find_node_by_full_path(np, path); path 125 drivers/of/of_private.h const char *path); path 127 drivers/of/of_private.h const char *path); path 206 drivers/of/overlay.c const char *path; path 219 drivers/of/overlay.c path = prop->value; path 220 drivers/of/overlay.c path_len = strlen(path); path 224 drivers/of/overlay.c fragment_node = __of_find_node_by_path(ovcs->overlay_tree, path + 1); path 241 drivers/of/overlay.c path_tail = path + overlay_name_len; path 692 drivers/of/overlay.c const char *path; path 705 drivers/of/overlay.c ret = of_property_read_string(info_node, "target-path", &path); path 707 drivers/of/overlay.c node = of_find_node_by_path(path); path 710 drivers/of/overlay.c info_node, path); path 45 drivers/of/pdt.c char path[256]; path 49 drivers/of/pdt.c if (!of_pdt_prom_ops->pkg2path(dp->phandle, path, sizeof(path), &len)) { path 50 drivers/of/pdt.c name = kbasename(path); path 955 drivers/of/unittest.c const char *path; path 958 drivers/of/unittest.c { .path = "/testcase-data/match-node/name0", .data = "A", }, path 959 drivers/of/unittest.c { .path = "/testcase-data/match-node/name1", .data = "B", }, path 960 drivers/of/unittest.c { .path = "/testcase-data/match-node/a/name2", .data = "Ca", }, path 961 drivers/of/unittest.c { .path = "/testcase-data/match-node/b/name2", .data = "Cb", }, path 962 drivers/of/unittest.c { .path = "/testcase-data/match-node/c/name2", .data = "Cc", }, path 963 drivers/of/unittest.c { .path = "/testcase-data/match-node/name3", .data = "E", }, path 964 drivers/of/unittest.c { .path = "/testcase-data/match-node/name4", .data = "G", }, path 965 drivers/of/unittest.c { .path = "/testcase-data/match-node/name5", .data = "H", }, path 966 drivers/of/unittest.c { .path = "/testcase-data/match-node/name6", .data = "G", }, path 967 drivers/of/unittest.c { .path = "/testcase-data/match-node/name7", .data = "I", }, path 968 drivers/of/unittest.c { .path = "/testcase-data/match-node/name8", .data = "J", }, path 969 drivers/of/unittest.c { .path = "/testcase-data/match-node/name9", .data = "K", }, path 979 drivers/of/unittest.c np = of_find_node_by_path(match_node_tests[i].path); path 982 drivers/of/unittest.c match_node_tests[i].path); path 989 drivers/of/unittest.c match_node_tests[i].path); path 995 drivers/of/unittest.c match_node_tests[i].path, match_node_tests[i].data, path 1305 drivers/of/unittest.c static struct platform_device *of_path_to_platform_device(const char *path) path 1310 drivers/of/unittest.c np = of_find_node_by_path(path); path 1321 drivers/of/unittest.c static int of_path_platform_device_exists(const char *path) path 1325 drivers/of/unittest.c pdev = of_path_to_platform_device(path); path 1333 drivers/of/unittest.c static struct i2c_client *of_path_to_i2c_client(const char *path) path 1338 drivers/of/unittest.c np = of_find_node_by_path(path); path 1349 drivers/of/unittest.c static int of_path_i2c_client_exists(const char *path) path 1353 drivers/of/unittest.c client = of_path_to_i2c_client(path); path 1359 drivers/of/unittest.c static int of_path_i2c_client_exists(const char *path) path 1370 drivers/of/unittest.c static int of_path_device_type_exists(const char *path, path 1375 drivers/of/unittest.c return of_path_platform_device_exists(path); path 1377 drivers/of/unittest.c return of_path_i2c_client_exists(path); path 1405 drivers/of/unittest.c const char *path; path 1407 drivers/of/unittest.c path = unittest_path(unittest_nr, ovtype); path 1411 drivers/of/unittest.c return of_path_platform_device_exists(path); path 1413 drivers/of/unittest.c return of_path_i2c_client_exists(path); path 211 drivers/oprofile/buffer_sync.c static inline unsigned long fast_get_dcookie(const struct path *path) path 215 drivers/oprofile/buffer_sync.c if (path->dentry->d_flags & DCACHE_COOKIE) path 216 drivers/oprofile/buffer_sync.c return (unsigned long)path->dentry; path 217 drivers/oprofile/buffer_sync.c get_dcookie(path, &cookie); path 217 drivers/pci/pci.c static int pci_dev_str_match_path(struct pci_dev *dev, const char *path, path 225 drivers/pci/pci.c *endptr = strchrnul(path, ';'); path 227 drivers/pci/pci.c wpath = kmemdup_nul(path, *endptr - path, GFP_KERNEL); path 46 drivers/pps/clients/pps-ktimer.c .path = "", path 54 drivers/pps/clients/pps-ldisc.c snprintf(info.path, PPS_MAX_NAME_LEN, "/dev/%s%d", drv->name, index); path 62 drivers/pps/clients/pps-ldisc.c pr_err("cannot register PPS source \"%s\"\n", info.path); path 70 drivers/pps/clients/pps-ldisc.c pr_err("cannot open tty ldisc \"%s\"\n", info.path); path 74 drivers/pps/clients/pps-ldisc.c dev_info(pps->dev, "source \"%s\" added\n", info.path); path 132 drivers/pps/clients/pps_parport.c .path = "", path 78 drivers/pps/sysfs.c return sprintf(buf, "%s\n", pps->info.path); path 80 drivers/pps/sysfs.c static DEVICE_ATTR_RO(path); path 318 drivers/rpmsg/rpmsg_core.c #define rpmsg_show_attr(field, path, format_string) \ path 325 drivers/rpmsg/rpmsg_core.c return sprintf(buf, format_string, rpdev->path); \ path 2220 drivers/s390/block/dasd_3990_erp.c device->path[pos].cssid, device->path[pos].chpid, lpum); path 2228 drivers/s390/block/dasd_3990_erp.c device->path[pos].cssid, device->path[pos].chpid, lpum); path 2234 drivers/s390/block/dasd_3990_erp.c device->path[pos].cssid, device->path[pos].chpid, lpum); path 2239 drivers/s390/block/dasd_3990_erp.c device->path[pos].errorclk = 0; path 2240 drivers/s390/block/dasd_3990_erp.c atomic_set(&device->path[pos].error_count, 0); path 2258 drivers/s390/block/dasd_3990_erp.c if ((tod_to_ns(clk - device->path[pos].errorclk) / NSEC_PER_SEC) path 2260 drivers/s390/block/dasd_3990_erp.c atomic_set(&device->path[pos].error_count, 0); path 2261 drivers/s390/block/dasd_3990_erp.c device->path[pos].errorclk = 0; path 2263 drivers/s390/block/dasd_3990_erp.c atomic_inc(&device->path[pos].error_count); path 2264 drivers/s390/block/dasd_3990_erp.c device->path[pos].errorclk = clk; path 2266 drivers/s390/block/dasd_3990_erp.c if (atomic_read(&device->path[pos].error_count) >= path 1011 drivers/s390/block/dasd_eckd.c kfree(device->path[i].conf_data); path 1012 drivers/s390/block/dasd_eckd.c device->path[i].conf_data = NULL; path 1013 drivers/s390/block/dasd_eckd.c device->path[i].cssid = 0; path 1014 drivers/s390/block/dasd_eckd.c device->path[i].ssid = 0; path 1015 drivers/s390/block/dasd_eckd.c device->path[i].chpid = 0; path 1071 drivers/s390/block/dasd_eckd.c device->path[pos].conf_data = conf_data; path 1072 drivers/s390/block/dasd_eckd.c device->path[pos].cssid = sch_id.cssid; path 1073 drivers/s390/block/dasd_eckd.c device->path[pos].ssid = sch_id.ssid; path 1076 drivers/s390/block/dasd_eckd.c device->path[pos].chpid = chp_desc->chpid; path 1137 drivers/s390/block/dasd_eckd.c device->path[pos].conf_data = conf_data; path 1138 drivers/s390/block/dasd_eckd.c device->path[pos].cssid = sch_id.cssid; path 1139 drivers/s390/block/dasd_eckd.c device->path[pos].ssid = sch_id.ssid; path 1142 drivers/s390/block/dasd_eckd.c device->path[pos].chpid = chp_desc->chpid; path 6134 drivers/s390/block/dasd_eckd.c psf_cuir->chpid = device->path[pos].chpid; path 6136 drivers/s390/block/dasd_eckd.c psf_cuir->cssid = device->path[pos].cssid; path 6137 drivers/s390/block/dasd_eckd.c psf_cuir->ssid = device->path[pos].ssid; path 6169 drivers/s390/block/dasd_eckd.c int path, pos; path 6173 drivers/s390/block/dasd_eckd.c for (path = 0x80, pos = 0; path; path >>= 1, pos++) { path 6174 drivers/s390/block/dasd_eckd.c conf_data = device->path[pos].conf_data; path 6180 drivers/s390/block/dasd_eckd.c return device->path[pathmask_to_pos(lpum)].conf_data; path 6198 drivers/s390/block/dasd_eckd.c unsigned int pos, path; path 6220 drivers/s390/block/dasd_eckd.c for (path = 0; path < 8; path++) { path 6223 drivers/s390/block/dasd_eckd.c conf_data = device->path[path].conf_data; path 6244 drivers/s390/block/dasd_eckd.c tbcpm |= 0x80 >> path; path 6260 drivers/s390/block/dasd_eckd.c device->path[pos].cssid, path 6261 drivers/s390/block/dasd_eckd.c device->path[pos].chpid); path 6264 drivers/s390/block/dasd_eckd.c device->path[pos].cssid, path 6265 drivers/s390/block/dasd_eckd.c device->path[pos].chpid); path 499 drivers/s390/block/dasd_int.h struct dasd_path path[8]; path 898 drivers/s390/block/dasd_int.h return test_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags); path 903 drivers/s390/block/dasd_int.h return test_bit(DASD_PATH_TBV, &device->path[chp].flags); path 908 drivers/s390/block/dasd_int.h __set_bit(DASD_PATH_TBV, &device->path[chp].flags); path 913 drivers/s390/block/dasd_int.h __clear_bit(DASD_PATH_TBV, &device->path[chp].flags); path 926 drivers/s390/block/dasd_int.h __set_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags); path 932 drivers/s390/block/dasd_int.h __set_bit(DASD_PATH_NPP, &device->path[chp].flags); path 937 drivers/s390/block/dasd_int.h return test_bit(DASD_PATH_NPP, &device->path[chp].flags); path 943 drivers/s390/block/dasd_int.h __clear_bit(DASD_PATH_NPP, &device->path[chp].flags); path 948 drivers/s390/block/dasd_int.h __set_bit(DASD_PATH_PP, &device->path[chp].flags); path 953 drivers/s390/block/dasd_int.h return test_bit(DASD_PATH_PP, &device->path[chp].flags); path 959 drivers/s390/block/dasd_int.h __clear_bit(DASD_PATH_PP, &device->path[chp].flags); path 964 drivers/s390/block/dasd_int.h __clear_bit(DASD_PATH_OPERATIONAL, &device->path[chp].flags); path 970 drivers/s390/block/dasd_int.h __clear_bit(DASD_PATH_MISCABLED, &device->path[chp].flags); path 975 drivers/s390/block/dasd_int.h __set_bit(DASD_PATH_CUIR, &device->path[chp].flags); path 980 drivers/s390/block/dasd_int.h return test_bit(DASD_PATH_CUIR, &device->path[chp].flags); path 985 drivers/s390/block/dasd_int.h __clear_bit(DASD_PATH_CUIR, &device->path[chp].flags); path 990 drivers/s390/block/dasd_int.h set_bit(DASD_PATH_IFCC, &device->path[chp].flags); path 995 drivers/s390/block/dasd_int.h return test_bit(DASD_PATH_IFCC, &device->path[chp].flags); path 1000 drivers/s390/block/dasd_int.h clear_bit(DASD_PATH_IFCC, &device->path[chp].flags); path 1005 drivers/s390/block/dasd_int.h __clear_bit(DASD_PATH_NOHPF, &device->path[chp].flags); path 1010 drivers/s390/block/dasd_int.h __set_bit(DASD_PATH_MISCABLED, &device->path[chp].flags); path 1015 drivers/s390/block/dasd_int.h return test_bit(DASD_PATH_MISCABLED, &device->path[chp].flags); path 1020 drivers/s390/block/dasd_int.h __set_bit(DASD_PATH_NOHPF, &device->path[chp].flags); path 1025 drivers/s390/block/dasd_int.h return test_bit(DASD_PATH_NOHPF, &device->path[chp].flags); path 49 drivers/s390/char/monreader.c struct iucv_path *path; path 155 drivers/s390/char/monreader.c rc = iucv_message_reply(monpriv->path, &monmsg->msg, path 233 drivers/s390/char/monreader.c static void mon_iucv_path_complete(struct iucv_path *path, u8 *ipuser) path 235 drivers/s390/char/monreader.c struct mon_private *monpriv = path->private; path 241 drivers/s390/char/monreader.c static void mon_iucv_path_severed(struct iucv_path *path, u8 *ipuser) path 243 drivers/s390/char/monreader.c struct mon_private *monpriv = path->private; path 247 drivers/s390/char/monreader.c iucv_path_sever(path, NULL); path 253 drivers/s390/char/monreader.c static void mon_iucv_message_pending(struct iucv_path *path, path 256 drivers/s390/char/monreader.c struct mon_private *monpriv = path->private; path 298 drivers/s390/char/monreader.c monpriv->path = iucv_path_alloc(MON_MSGLIM, IUCV_IPRMDATA, GFP_KERNEL); path 299 drivers/s390/char/monreader.c if (!monpriv->path) path 301 drivers/s390/char/monreader.c rc = iucv_path_connect(monpriv->path, &monreader_iucv_handler, path 326 drivers/s390/char/monreader.c iucv_path_free(monpriv->path); path 343 drivers/s390/char/monreader.c if (monpriv->path) { path 344 drivers/s390/char/monreader.c rc = iucv_path_sever(monpriv->path, user_data_sever); path 348 drivers/s390/char/monreader.c iucv_path_free(monpriv->path); path 470 drivers/s390/char/monreader.c if (monpriv->path) { path 471 drivers/s390/char/monreader.c rc = iucv_path_sever(monpriv->path, user_data_sever); path 475 drivers/s390/char/monreader.c iucv_path_free(monpriv->path); path 483 drivers/s390/char/monreader.c monpriv->path = NULL; path 495 drivers/s390/char/monreader.c monpriv->path = iucv_path_alloc(MON_MSGLIM, IUCV_IPRMDATA, GFP_KERNEL); path 496 drivers/s390/char/monreader.c if (!monpriv->path) path 498 drivers/s390/char/monreader.c rc = iucv_path_connect(monpriv->path, &monreader_iucv_handler, path 513 drivers/s390/char/monreader.c iucv_path_free(monpriv->path); path 514 drivers/s390/char/monreader.c monpriv->path = NULL; path 66 drivers/s390/char/vmlogrdr.c struct iucv_path *path; path 164 drivers/s390/char/vmlogrdr.c static void vmlogrdr_iucv_path_complete(struct iucv_path *path, u8 *ipuser) path 166 drivers/s390/char/vmlogrdr.c struct vmlogrdr_priv_t * logptr = path->private; path 175 drivers/s390/char/vmlogrdr.c static void vmlogrdr_iucv_path_severed(struct iucv_path *path, u8 *ipuser) path 177 drivers/s390/char/vmlogrdr.c struct vmlogrdr_priv_t * logptr = path->private; path 182 drivers/s390/char/vmlogrdr.c iucv_path_sever(path, NULL); path 183 drivers/s390/char/vmlogrdr.c kfree(path); path 184 drivers/s390/char/vmlogrdr.c logptr->path = NULL; path 197 drivers/s390/char/vmlogrdr.c static void vmlogrdr_iucv_message_pending(struct iucv_path *path, path 200 drivers/s390/char/vmlogrdr.c struct vmlogrdr_priv_t * logptr = path->private; path 351 drivers/s390/char/vmlogrdr.c logptr->path = iucv_path_alloc(10, 0, GFP_KERNEL); path 352 drivers/s390/char/vmlogrdr.c if (!logptr->path) path 354 drivers/s390/char/vmlogrdr.c connect_rc = iucv_path_connect(logptr->path, &vmlogrdr_iucv_handler, path 379 drivers/s390/char/vmlogrdr.c kfree(logptr->path); /* kfree(NULL) is ok. */ path 380 drivers/s390/char/vmlogrdr.c logptr->path = NULL; path 393 drivers/s390/char/vmlogrdr.c iucv_path_sever(logptr->path, NULL); path 394 drivers/s390/char/vmlogrdr.c kfree(logptr->path); path 395 drivers/s390/char/vmlogrdr.c logptr->path = NULL; path 441 drivers/s390/char/vmlogrdr.c rc = iucv_message_receive(priv->path, path 176 drivers/s390/net/netiucv.c struct iucv_path *path; path 514 drivers/s390/net/netiucv.c static void netiucv_callback_rx(struct iucv_path *path, path 517 drivers/s390/net/netiucv.c struct iucv_connection *conn = path->private; path 525 drivers/s390/net/netiucv.c static void netiucv_callback_txdone(struct iucv_path *path, path 528 drivers/s390/net/netiucv.c struct iucv_connection *conn = path->private; path 536 drivers/s390/net/netiucv.c static void netiucv_callback_connack(struct iucv_path *path, u8 ipuser[16]) path 538 drivers/s390/net/netiucv.c struct iucv_connection *conn = path->private; path 543 drivers/s390/net/netiucv.c static int netiucv_callback_connreq(struct iucv_path *path, u8 *ipvmid, path 546 drivers/s390/net/netiucv.c struct iucv_connection *conn = path->private; path 562 drivers/s390/net/netiucv.c conn->path = path; path 564 drivers/s390/net/netiucv.c ev.data = path; path 574 drivers/s390/net/netiucv.c static void netiucv_callback_connrej(struct iucv_path *path, u8 *ipuser) path 576 drivers/s390/net/netiucv.c struct iucv_connection *conn = path->private; path 581 drivers/s390/net/netiucv.c static void netiucv_callback_connsusp(struct iucv_path *path, u8 *ipuser) path 583 drivers/s390/net/netiucv.c struct iucv_connection *conn = path->private; path 588 drivers/s390/net/netiucv.c static void netiucv_callback_connres(struct iucv_path *path, u8 *ipuser) path 590 drivers/s390/net/netiucv.c struct iucv_connection *conn = path->private; path 680 drivers/s390/net/netiucv.c iucv_message_reject(conn->path, msg); path 686 drivers/s390/net/netiucv.c iucv_message_reject(conn->path, msg); path 695 drivers/s390/net/netiucv.c rc = iucv_message_receive(conn->path, msg, 0, conn->rx_buff->data, path 772 drivers/s390/net/netiucv.c rc = iucv_message_send(conn->path, &txmsg, 0, 0, path 799 drivers/s390/net/netiucv.c struct iucv_path *path = ev->data; path 806 drivers/s390/net/netiucv.c conn->path = path; path 807 drivers/s390/net/netiucv.c path->msglim = NETIUCV_QUEUELEN_DEFAULT; path 808 drivers/s390/net/netiucv.c path->flags = 0; path 809 drivers/s390/net/netiucv.c rc = iucv_path_accept(path, &netiucv_handler, conn->userdata , conn); path 815 drivers/s390/net/netiucv.c netdev->tx_queue_len = conn->path->msglim; path 822 drivers/s390/net/netiucv.c struct iucv_path *path = ev->data; path 825 drivers/s390/net/netiucv.c iucv_path_sever(path, NULL); path 837 drivers/s390/net/netiucv.c netdev->tx_queue_len = conn->path->msglim; path 847 drivers/s390/net/netiucv.c iucv_path_sever(conn->path, conn->userdata); path 860 drivers/s390/net/netiucv.c iucv_path_sever(conn->path, conn->userdata); path 887 drivers/s390/net/netiucv.c conn->path = iucv_path_alloc(NETIUCV_QUEUELEN_DEFAULT, 0, GFP_KERNEL); path 891 drivers/s390/net/netiucv.c rc = iucv_path_connect(conn->path, &netiucv_handler, conn->userid, path 895 drivers/s390/net/netiucv.c netdev->tx_queue_len = conn->path->msglim; path 938 drivers/s390/net/netiucv.c kfree(conn->path); path 939 drivers/s390/net/netiucv.c conn->path = NULL; path 964 drivers/s390/net/netiucv.c if (conn->path) { path 966 drivers/s390/net/netiucv.c iucv_path_sever(conn->path, conn->userdata); path 967 drivers/s390/net/netiucv.c kfree(conn->path); path 968 drivers/s390/net/netiucv.c conn->path = NULL; path 1206 drivers/s390/net/netiucv.c rc = iucv_message_send(conn->path, &msg, 0, 0, path 1910 drivers/s390/net/netiucv.c if (conn->path) { path 1911 drivers/s390/net/netiucv.c iucv_path_sever(conn->path, conn->userdata); path 1912 drivers/s390/net/netiucv.c kfree(conn->path); path 1913 drivers/s390/net/netiucv.c conn->path = NULL; path 47 drivers/s390/net/smsgiucv.c static int smsg_path_pending(struct iucv_path *path, u8 *ipvmid, u8 *ipuser) path 52 drivers/s390/net/smsgiucv.c return iucv_path_accept(path, &smsg_handler, "SMSGIUCV ", NULL); path 55 drivers/s390/net/smsgiucv.c static void smsg_message_pending(struct iucv_path *path, path 65 drivers/s390/net/smsgiucv.c iucv_message_reject(path, msg); path 68 drivers/s390/net/smsgiucv.c rc = iucv_message_receive(path, msg, 0, buffer, msg->length, NULL); path 717 drivers/scsi/aic7xxx/aic79xx.h struct cam_path *path; path 6189 drivers/scsi/aic7xxx/aic79xx_core.c xpt_free_path(lstate->path); path 6199 drivers/scsi/aic7xxx/aic79xx_core.c xpt_free_path(ahd->black_hole->path); path 9197 drivers/scsi/aic7xxx/aic79xx_core.c xpt_freeze_devq(lstate->path, /*count*/1); path 9214 drivers/scsi/aic7xxx/aic79xx_core.c xpt_release_devq(lstate->path, pending, /*runqueue*/FALSE); path 9218 drivers/scsi/aic7xxx/aic79xx_core.c xpt_print_path(lstate->path); path 9225 drivers/scsi/aic7xxx/aic79xx_core.c xpt_release_devq(lstate->path, /*count*/1, /*runqueue*/FALSE); path 10358 drivers/scsi/aic7xxx/aic79xx_core.c xpt_print_path(ccb->ccb_h.path); path 10382 drivers/scsi/aic7xxx/aic79xx_core.c xpt_print_path(ccb->ccb_h.path); path 10390 drivers/scsi/aic7xxx/aic79xx_core.c xpt_print_path(ccb->ccb_h.path); path 10395 drivers/scsi/aic7xxx/aic79xx_core.c status = xpt_create_path(&lstate->path, /*periph*/NULL, path 10396 drivers/scsi/aic7xxx/aic79xx_core.c xpt_path_path_id(ccb->ccb_h.path), path 10397 drivers/scsi/aic7xxx/aic79xx_core.c xpt_path_target_id(ccb->ccb_h.path), path 10398 drivers/scsi/aic7xxx/aic79xx_core.c xpt_path_lun_id(ccb->ccb_h.path)); path 10401 drivers/scsi/aic7xxx/aic79xx_core.c xpt_print_path(ccb->ccb_h.path); path 10469 drivers/scsi/aic7xxx/aic79xx_core.c xpt_print_path(ccb->ccb_h.path); path 10488 drivers/scsi/aic7xxx/aic79xx_core.c && !xpt_path_comp(ccbh->path, ccb->ccb_h.path)){ path 10511 drivers/scsi/aic7xxx/aic79xx_core.c xpt_print_path(ccb->ccb_h.path); path 10513 drivers/scsi/aic7xxx/aic79xx_core.c xpt_free_path(lstate->path); path 663 drivers/scsi/aic7xxx/aic7xxx.h struct cam_path *path; path 4525 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_free_path(lstate->path); path 4535 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_free_path(ahc->black_hole->path); path 6715 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_freeze_devq(lstate->path, /*count*/1); path 6732 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_release_devq(lstate->path, pending, /*runqueue*/FALSE); path 6736 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_print_path(lstate->path); path 6743 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_release_devq(lstate->path, /*count*/1, /*runqueue*/FALSE); path 7496 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_print_path(ccb->ccb_h.path); path 7520 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_print_path(ccb->ccb_h.path); path 7528 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_print_path(ccb->ccb_h.path); path 7533 drivers/scsi/aic7xxx/aic7xxx_core.c status = xpt_create_path(&lstate->path, /*periph*/NULL, path 7534 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_path_path_id(ccb->ccb_h.path), path 7535 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_path_target_id(ccb->ccb_h.path), path 7536 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_path_lun_id(ccb->ccb_h.path)); path 7539 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_print_path(ccb->ccb_h.path); path 7614 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_print_path(ccb->ccb_h.path); path 7633 drivers/scsi/aic7xxx/aic7xxx_core.c && !xpt_path_comp(ccbh->path, ccb->ccb_h.path)){ path 7656 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_print_path(ccb->ccb_h.path); path 7658 drivers/scsi/aic7xxx/aic7xxx_core.c xpt_free_path(lstate->path); path 1968 drivers/scsi/csiostor/csio_hw.c csio_hw_flash_config(struct csio_hw *hw, u32 *fw_cfg_param, char *path) path 2026 drivers/scsi/csiostor/csio_hw.c snprintf(path, 64, "%s%s", "/lib/firmware/", fw_cfg_file); path 2059 drivers/scsi/csiostor/csio_hw.c char path[64]; path 2077 drivers/scsi/csiostor/csio_hw.c rv = csio_hw_flash_config(hw, fw_cfg_param, path); path 2088 drivers/scsi/csiostor/csio_hw.c config_name = path; path 397 drivers/scsi/esas2r/esas2r_ioctl.c u8 path = 0; path 407 drivers/scsi/esas2r/esas2r_ioctl.c path = gda->path_id; path 413 drivers/scsi/esas2r/esas2r_ioctl.c path = tm->path_id; path 418 drivers/scsi/esas2r/esas2r_ioctl.c if (path > 0) { path 219 drivers/scsi/lpfc/lpfc_crtn.h int lpfc_sli4_poll_eq(struct lpfc_queue *q, uint8_t path); path 14338 drivers/scsi/lpfc/lpfc_sli.c inline int lpfc_sli4_poll_eq(struct lpfc_queue *eq, uint8_t path) path 61 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_queue_group *queue_group, enum pqi_io_path path, path 2664 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_take_device_offline(struct scsi_device *sdev, char *path) path 2677 drivers/scsi/smartpqi/smartpqi_init.c path, ctrl_info->scsi_host->host_no, device->bus, path 3879 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_queue_group *queue_group, enum pqi_io_path path, path 3893 drivers/scsi/smartpqi/smartpqi_init.c spin_lock_irqsave(&queue_group->submit_lock[path], flags); path 3898 drivers/scsi/smartpqi/smartpqi_init.c &queue_group->request_list[path]); path 3901 drivers/scsi/smartpqi/smartpqi_init.c iq_pi = queue_group->iq_pi_copy[path]; path 3904 drivers/scsi/smartpqi/smartpqi_init.c &queue_group->request_list[path], request_list_entry) { path 3914 drivers/scsi/smartpqi/smartpqi_init.c iq_ci = readl(queue_group->iq_ci[path]); path 3923 drivers/scsi/smartpqi/smartpqi_init.c next_element = queue_group->iq_element_array[path] + path 3935 drivers/scsi/smartpqi/smartpqi_init.c memcpy(queue_group->iq_element_array[path], path 3946 drivers/scsi/smartpqi/smartpqi_init.c if (iq_pi != queue_group->iq_pi_copy[path]) { path 3947 drivers/scsi/smartpqi/smartpqi_init.c queue_group->iq_pi_copy[path] = iq_pi; path 3952 drivers/scsi/smartpqi/smartpqi_init.c writel(iq_pi, queue_group->iq_pi[path]); path 3955 drivers/scsi/smartpqi/smartpqi_init.c spin_unlock_irqrestore(&queue_group->submit_lock[path], flags); path 5393 drivers/scsi/smartpqi/smartpqi_init.c unsigned int path; path 5397 drivers/scsi/smartpqi/smartpqi_init.c for (path = 0; path < 2; path++) { path 5400 drivers/scsi/smartpqi/smartpqi_init.c &queue_group->submit_lock[path], flags); path 5402 drivers/scsi/smartpqi/smartpqi_init.c list_empty(&queue_group->request_list[path]); path 5404 drivers/scsi/smartpqi/smartpqi_init.c &queue_group->submit_lock[path], flags); path 5421 drivers/scsi/smartpqi/smartpqi_init.c unsigned int path; path 5433 drivers/scsi/smartpqi/smartpqi_init.c for (path = 0; path < 2; path++) { path 5434 drivers/scsi/smartpqi/smartpqi_init.c iq_pi = queue_group->iq_pi_copy[path]; path 5437 drivers/scsi/smartpqi/smartpqi_init.c iq_ci = readl(queue_group->iq_ci[path]); path 5455 drivers/scsi/smartpqi/smartpqi_init.c unsigned int path; path 5466 drivers/scsi/smartpqi/smartpqi_init.c for (path = 0; path < 2; path++) { path 5468 drivers/scsi/smartpqi/smartpqi_init.c &queue_group->submit_lock[path], flags); path 5471 drivers/scsi/smartpqi/smartpqi_init.c &queue_group->request_list[path], path 5487 drivers/scsi/smartpqi/smartpqi_init.c &queue_group->submit_lock[path], flags); path 5495 drivers/scsi/smartpqi/smartpqi_init.c unsigned int path; path 5505 drivers/scsi/smartpqi/smartpqi_init.c for (path = 0; path < 2; path++) { path 5506 drivers/scsi/smartpqi/smartpqi_init.c spin_lock_irqsave(&queue_group->submit_lock[path], path 5510 drivers/scsi/smartpqi/smartpqi_init.c &queue_group->request_list[path], path 5523 drivers/scsi/smartpqi/smartpqi_init.c &queue_group->submit_lock[path], flags); path 481 drivers/scsi/storvsc_drv.c unsigned char path; path 1804 drivers/scsi/storvsc_drv.c host_dev->path = stor_device->path_id; path 13 drivers/staging/comedi/comedilib.h struct comedi_device *comedi_open(const char *path); path 933 drivers/staging/exfat/exfat.h s32 resolve_path(struct inode *inode, char *path, struct chain_t *p_dir, path 2956 drivers/staging/exfat/exfat_core.c s32 resolve_path(struct inode *inode, char *path, struct chain_t *p_dir, path 2964 drivers/staging/exfat/exfat_core.c if (strscpy(name_buf, path, sizeof(name_buf)) < 0) path 547 drivers/staging/exfat/exfat_super.c static int ffsLookupFile(struct inode *inode, char *path, struct file_id_t *fid) path 561 drivers/staging/exfat/exfat_super.c if (!fid || !path || (*path == '\0')) path 568 drivers/staging/exfat/exfat_super.c ret = resolve_path(inode, path, &dir, &uni_name); path 644 drivers/staging/exfat/exfat_super.c static int ffsCreateFile(struct inode *inode, char *path, u8 mode, path 654 drivers/staging/exfat/exfat_super.c if (!fid || !path || (*path == '\0')) path 661 drivers/staging/exfat/exfat_super.c ret = resolve_path(inode, path, &dir, &uni_name); path 1894 drivers/staging/exfat/exfat_super.c static int ffsCreateDir(struct inode *inode, char *path, struct file_id_t *fid) path 1905 drivers/staging/exfat/exfat_super.c if (!fid || !path || (*path == '\0')) path 1912 drivers/staging/exfat/exfat_super.c ret = resolve_path(inode, path, &dir, &uni_name); path 2995 drivers/staging/exfat/exfat_super.c static int exfat_getattr(const struct path *path, struct kstat *stat, path 2998 drivers/staging/exfat/exfat_super.c struct inode *inode = path->dentry->d_inode; path 1312 drivers/staging/gasket/gasket_core.c char path[256]; path 1319 drivers/staging/gasket/gasket_core.c d_path(&filp->f_path, path, 256)); path 248 drivers/staging/greybus/tools/loopback_test.c char path[MAX_SYSFS_PATH]; path 250 drivers/staging/greybus/tools/loopback_test.c snprintf(path, sizeof(path), "%s%s", sys_pfx, node); path 251 drivers/staging/greybus/tools/loopback_test.c fd = open(path, flags); path 253 drivers/staging/greybus/tools/loopback_test.c fprintf(stderr, "unable to open %s\n", path); path 573 drivers/staging/greybus/tools/loopback_test.c int is_loopback_device(const char *path, const char *node) path 577 drivers/staging/greybus/tools/loopback_test.c snprintf(file, MAX_SYSFS_PATH, "%s%s/iteration_count", path, node); path 172 drivers/staging/rtl8712/rtl871x_mp.c u32 r8712_rf_reg_read(struct _adapter *pAdapter, u8 path, u8 offset) path 174 drivers/staging/rtl8712/rtl871x_mp.c u16 rf_addr = (path << 8) | offset; path 183 drivers/staging/rtl8712/rtl871x_mp.c u8 r8712_rf_reg_write(struct _adapter *pAdapter, u8 path, u8 offset, u32 value) path 185 drivers/staging/rtl8712/rtl871x_mp.c u16 rf_addr = (path << 8) | offset; path 230 drivers/staging/rtl8712/rtl871x_mp.c static u32 get_rf_reg(struct _adapter *pAdapter, u8 path, u8 offset, path 235 drivers/staging/rtl8712/rtl871x_mp.c org_value = r8712_rf_reg_read(pAdapter, path, offset); path 240 drivers/staging/rtl8712/rtl871x_mp.c static u8 set_rf_reg(struct _adapter *pAdapter, u8 path, u8 offset, u32 bitmask, path 246 drivers/staging/rtl8712/rtl871x_mp.c org_value = r8712_rf_reg_read(pAdapter, path, offset); path 252 drivers/staging/rtl8712/rtl871x_mp.c return r8712_rf_reg_write(pAdapter, path, offset, new_value); path 325 drivers/staging/rtl8712/rtl871x_mp.c u8 path = RF_PATH_A; path 330 drivers/staging/rtl8712/rtl871x_mp.c r8712_rf_reg_write(pAdapter, path, offset, value); path 115 drivers/staging/rtl8712/rtl871x_mp.h u32 path; path 247 drivers/staging/rtl8712/rtl871x_mp.h u32 r8712_rf_reg_read(struct _adapter *Adapter, u8 path, u8 offset); path 248 drivers/staging/rtl8712/rtl871x_mp.h u8 r8712_rf_reg_write(struct _adapter *Adapter, u8 path, path 253 drivers/staging/rtl8712/rtl871x_mp.h u32 r8712_get_rf_reg(struct _adapter *Adapter, u8 path, u8 offset, path 255 drivers/staging/rtl8712/rtl871x_mp.h u8 r8712_set_rf_reg(struct _adapter *Adapter, u8 path, u8 offset, path 104 drivers/staging/rtl8712/rtl871x_mp_ioctl.c u8 path; path 113 drivers/staging/rtl8712/rtl871x_mp_ioctl.c path = (u8)pbbreg->path; path 114 drivers/staging/rtl8712/rtl871x_mp_ioctl.c if (path > RF_PATH_B) path 118 drivers/staging/rtl8712/rtl871x_mp_ioctl.c r8712_rf_reg_write(Adapter, path, offset, value); path 127 drivers/staging/rtl8712/rtl871x_mp_ioctl.c u8 path; path 136 drivers/staging/rtl8712/rtl871x_mp_ioctl.c path = (u8)pbbreg->path; path 137 drivers/staging/rtl8712/rtl871x_mp_ioctl.c if (path > RF_PATH_B) /* 1T2R path_a /path_b */ path 140 drivers/staging/rtl8712/rtl871x_mp_ioctl.c value = r8712_rf_reg_read(Adapter, path, offset); path 110 drivers/staging/rtl8723bs/core/rtw_debug.c int i, j = 1, path; path 123 drivers/staging/rtl8723bs/core/rtw_debug.c for (path = 0; path < path_nums; path++) { path 124 drivers/staging/rtl8723bs/core/rtw_debug.c DBG_871X_SEL_NL(sel, "RF_Path(%x)\n", path); path 126 drivers/staging/rtl8723bs/core/rtw_debug.c value = rtw_hal_read_rfreg(adapter, path, i, 0xffffffff); path 1835 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c u8 path, bResult = SUCCESS; path 1838 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c path = (PHY_QueryBBReg(pDM_Odm->Adapter, rS0S1_PathSwitch, bMaskByte0) == 0x00) ? ODM_RF_PATH_A : ODM_RF_PATH_B; path 1842 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c offset = pRFCalibrateInfo->TxIQC_8723B[path][i][0]; path 1843 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c data = pRFCalibrateInfo->TxIQC_8723B[path][i][1]; path 1848 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c (path == ODM_RF_PATH_A)?"A":"B" path 1859 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c offset = pRFCalibrateInfo->RxIQC_8723B[path][i][0]; path 1860 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c data = pRFCalibrateInfo->RxIQC_8723B[path][i][1]; path 1865 drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c (path == ODM_RF_PATH_A)?"A":"B" path 199 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c u8 path, base; path 203 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c for (path = ODM_RF_PATH_A; path <= ODM_RF_PATH_B; ++path) { path 204 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, BAND_ON_2_4G, path, RF_1TX, MGN_11M); path 205 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c phy_SetTxPowerByRateBase(padapter, BAND_ON_2_4G, path, CCK, RF_1TX, base); path 208 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, BAND_ON_2_4G, path, RF_1TX, MGN_54M); path 209 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c phy_SetTxPowerByRateBase(padapter, BAND_ON_2_4G, path, OFDM, RF_1TX, base); path 212 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, BAND_ON_2_4G, path, RF_1TX, MGN_MCS7); path 213 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c phy_SetTxPowerByRateBase(padapter, BAND_ON_2_4G, path, HT_MCS0_MCS7, RF_1TX, base); path 216 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, BAND_ON_2_4G, path, RF_2TX, MGN_MCS15); path 217 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c phy_SetTxPowerByRateBase(padapter, BAND_ON_2_4G, path, HT_MCS8_MCS15, RF_2TX, base); path 220 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, BAND_ON_2_4G, path, RF_3TX, MGN_MCS23); path 221 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c phy_SetTxPowerByRateBase(padapter, BAND_ON_2_4G, path, HT_MCS16_MCS23, RF_3TX, base); path 224 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, BAND_ON_2_4G, path, RF_1TX, MGN_VHT1SS_MCS7); path 225 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c phy_SetTxPowerByRateBase(padapter, BAND_ON_2_4G, path, VHT_1SSMCS0_1SSMCS9, RF_1TX, base); path 228 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, BAND_ON_2_4G, path, RF_2TX, MGN_VHT2SS_MCS7); path 229 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c phy_SetTxPowerByRateBase(padapter, BAND_ON_2_4G, path, VHT_2SSMCS0_2SSMCS9, RF_2TX, base); path 232 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, BAND_ON_2_4G, path, RF_3TX, MGN_VHT3SS_MCS7); path 233 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c phy_SetTxPowerByRateBase(padapter, BAND_ON_2_4G, path, VHT_3SSMCS0_3SSMCS9, RF_3TX, base); path 236 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, BAND_ON_5G, path, RF_1TX, MGN_54M); path 237 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c phy_SetTxPowerByRateBase(padapter, BAND_ON_5G, path, OFDM, RF_1TX, base); path 240 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, BAND_ON_5G, path, RF_1TX, MGN_MCS7); path 241 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c phy_SetTxPowerByRateBase(padapter, BAND_ON_5G, path, HT_MCS0_MCS7, RF_1TX, base); path 244 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, BAND_ON_5G, path, RF_2TX, MGN_MCS15); path 245 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c phy_SetTxPowerByRateBase(padapter, BAND_ON_5G, path, HT_MCS8_MCS15, RF_2TX, base); path 248 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, BAND_ON_5G, path, RF_3TX, MGN_MCS23); path 249 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c phy_SetTxPowerByRateBase(padapter, BAND_ON_5G, path, HT_MCS16_MCS23, RF_3TX, base); path 252 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, BAND_ON_5G, path, RF_1TX, MGN_VHT1SS_MCS7); path 253 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c phy_SetTxPowerByRateBase(padapter, BAND_ON_5G, path, VHT_1SSMCS0_1SSMCS9, RF_1TX, base); path 256 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, BAND_ON_5G, path, RF_2TX, MGN_VHT2SS_MCS7); path 257 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c phy_SetTxPowerByRateBase(padapter, BAND_ON_5G, path, VHT_2SSMCS0_2SSMCS9, RF_2TX, base); path 260 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, BAND_ON_5G, path, RF_3TX, MGN_VHT2SS_MCS7); path 261 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c phy_SetTxPowerByRateBase(padapter, BAND_ON_5G, path, VHT_3SSMCS0_3SSMCS9, RF_3TX, base); path 819 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c u8 base = 0, i = 0, value = 0, band = 0, path = 0, txNum = 0; path 851 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c for (path = ODM_RF_PATH_A; path <= ODM_RF_PATH_D; ++path) { path 854 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, band, path, txNum, MGN_11M); path 856 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c value = PHY_GetTxPowerByRate(padapter, band, path, txNum, cckRates[i]); path 857 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c PHY_SetTxPowerByRate(padapter, band, path, txNum, cckRates[i], value - base); path 861 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, band, path, txNum, MGN_54M); path 863 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c value = PHY_GetTxPowerByRate(padapter, band, path, txNum, ofdmRates[i]); path 864 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c PHY_SetTxPowerByRate(padapter, band, path, txNum, ofdmRates[i], value - base); path 868 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, band, path, txNum, MGN_MCS7); path 870 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c value = PHY_GetTxPowerByRate(padapter, band, path, txNum, mcs0_7Rates[i]); path 871 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c PHY_SetTxPowerByRate(padapter, band, path, txNum, mcs0_7Rates[i], value - base); path 875 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, band, path, txNum, MGN_MCS15); path 877 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c value = PHY_GetTxPowerByRate(padapter, band, path, txNum, mcs8_15Rates[i]); path 878 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c PHY_SetTxPowerByRate(padapter, band, path, txNum, mcs8_15Rates[i], value - base); path 882 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, band, path, txNum, MGN_MCS23); path 884 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c value = PHY_GetTxPowerByRate(padapter, band, path, txNum, mcs16_23Rates[i]); path 885 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c PHY_SetTxPowerByRate(padapter, band, path, txNum, mcs16_23Rates[i], value - base); path 889 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, band, path, txNum, MGN_VHT1SS_MCS7); path 891 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c value = PHY_GetTxPowerByRate(padapter, band, path, txNum, vht1ssRates[i]); path 892 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c PHY_SetTxPowerByRate(padapter, band, path, txNum, vht1ssRates[i], value - base); path 896 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, band, path, txNum, MGN_VHT2SS_MCS7); path 898 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c value = PHY_GetTxPowerByRate(padapter, band, path, txNum, vht2ssRates[i]); path 899 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c PHY_SetTxPowerByRate(padapter, band, path, txNum, vht2ssRates[i], value - base); path 903 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c base = PHY_GetTxPowerByRate(padapter, band, path, txNum, MGN_VHT3SS_MCS7); path 905 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c value = PHY_GetTxPowerByRate(padapter, band, path, txNum, vht3ssRates[i]); path 906 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c PHY_SetTxPowerByRate(padapter, band, path, txNum, vht3ssRates[i], value - base); path 1539 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c void PHY_SetTxPowerLevelByPath(struct adapter *Adapter, u8 channel, u8 path) path 1547 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c PHY_SetTxPowerIndexByRateSection(Adapter, path, channel, CCK); path 1549 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c PHY_SetTxPowerIndexByRateSection(Adapter, path, channel, OFDM); path 1550 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c PHY_SetTxPowerIndexByRateSection(Adapter, path, channel, HT_MCS0_MCS7); path 1553 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c PHY_SetTxPowerIndexByRateSection(Adapter, path, channel, HT_MCS8_MCS15); path 2941 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c char band[5] = "", path[5] = "", sign[5] = ""; path 2951 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c strncpy(path, szLine+5, 1); path 2967 drivers/staging/rtl8723bs/hal/hal_com_phycfg.c initDeltaSwingIndexTables(Adapter, band, path, sign, chnl, rate, data); path 136 drivers/staging/rtl8723bs/include/hal_com_phycfg.h u8 path path 175 drivers/staging/rtl8723bs/include/osdep_service.h extern int rtw_is_file_readable(char *path); path 176 drivers/staging/rtl8723bs/include/osdep_service.h extern int rtw_retrive_from_file(char *path, u8 *buf, u32 sz); path 282 drivers/staging/rtl8723bs/include/rtw_mp.h u32 path; path 2327 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c u32 path, addr, data32; path 2330 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c path = *(u32 *)extra; path 2332 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c data32 = rtw_hal_read_rfreg(padapter, path, addr, 0xFFFFF); path 2348 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c u32 path, addr, data32; path 2351 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c path = *(u32 *)extra; path 2355 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c rtw_hal_write_rfreg(padapter, path, addr, 0xFFFFF, data32); path 76 drivers/staging/rtl8723bs/os_dep/osdep_service.c static int openFile(struct file **fpp, char *path, int flag, int mode) path 80 drivers/staging/rtl8723bs/os_dep/osdep_service.c fp = filp_open(path, flag, mode); path 128 drivers/staging/rtl8723bs/os_dep/osdep_service.c static int isFileReadable(char *path) path 134 drivers/staging/rtl8723bs/os_dep/osdep_service.c fp = filp_open(path, O_RDONLY, 0); path 152 drivers/staging/rtl8723bs/os_dep/osdep_service.c static int retriveFromFile(char *path, u8 *buf, u32 sz) path 157 drivers/staging/rtl8723bs/os_dep/osdep_service.c if (path && buf) { path 158 drivers/staging/rtl8723bs/os_dep/osdep_service.c ret = openFile(&fp, path, O_RDONLY, 0); path 161 drivers/staging/rtl8723bs/os_dep/osdep_service.c DBG_871X("%s openFile path:%s fp =%p\n", __func__, path , fp); path 169 drivers/staging/rtl8723bs/os_dep/osdep_service.c DBG_871X("%s openFile path:%s Fail, ret:%d\n", __func__, path, ret); path 183 drivers/staging/rtl8723bs/os_dep/osdep_service.c int rtw_is_file_readable(char *path) path 185 drivers/staging/rtl8723bs/os_dep/osdep_service.c if (isFileReadable(path) == 0) path 198 drivers/staging/rtl8723bs/os_dep/osdep_service.c int rtw_retrive_from_file(char *path, u8 *buf, u32 sz) path 200 drivers/staging/rtl8723bs/os_dep/osdep_service.c int ret = retriveFromFile(path, buf, sz); path 1616 drivers/staging/rts5208/sd.c struct timing_phase_path path[MAX_PHASE + 1]; path 1639 drivers/staging/rts5208/sd.c path[j].start = i; path 1640 drivers/staging/rts5208/sd.c path[j].end = i; path 1642 drivers/staging/rts5208/sd.c path[j].end = i; path 1649 drivers/staging/rts5208/sd.c path[idx].len = path[idx].end - path 1650 drivers/staging/rts5208/sd.c path[idx].start + 1; path 1651 drivers/staging/rts5208/sd.c path[idx].mid = path[idx].start + path 1652 drivers/staging/rts5208/sd.c path[idx].len / 2; path 1663 drivers/staging/rts5208/sd.c path[idx].len = path[idx].end - path[idx].start + 1; path 1664 drivers/staging/rts5208/sd.c path[idx].mid = path[idx].start + path[idx].len / 2; path 1667 drivers/staging/rts5208/sd.c if ((path[0].start == 0) && path 1668 drivers/staging/rts5208/sd.c (path[cont_path_cnt - 1].end == MAX_PHASE)) { path 1669 drivers/staging/rts5208/sd.c path[0].start = path[cont_path_cnt - 1].start - MAX_PHASE - 1; path 1670 drivers/staging/rts5208/sd.c path[0].len += path[cont_path_cnt - 1].len; path 1671 drivers/staging/rts5208/sd.c path[0].mid = path[0].start + path[0].len / 2; path 1672 drivers/staging/rts5208/sd.c if (path[0].mid < 0) path 1673 drivers/staging/rts5208/sd.c path[0].mid += MAX_PHASE + 1; path 1682 drivers/staging/rts5208/sd.c if (path[i].len > max_len) { path 1683 drivers/staging/rts5208/sd.c max_len = path[i].len; path 1684 drivers/staging/rts5208/sd.c final_phase = (u8)path[i].mid; path 1689 drivers/staging/rts5208/sd.c i, path[i].start); path 1690 drivers/staging/rts5208/sd.c dev_dbg(rtsx_dev(chip), "path[%d].end = %d\n", i, path[i].end); path 1691 drivers/staging/rts5208/sd.c dev_dbg(rtsx_dev(chip), "path[%d].len = %d\n", i, path[i].len); path 1692 drivers/staging/rts5208/sd.c dev_dbg(rtsx_dev(chip), "path[%d].mid = %d\n", i, path[i].mid); path 1701 drivers/staging/rts5208/sd.c path[final_path_idx].end - path 1714 drivers/staging/rts5208/sd.c path[final_path_idx].end - path 881 drivers/target/target_core_alua.c const char *path, path 885 drivers/target/target_core_alua.c struct file *file = filp_open(path, O_RDWR | O_CREAT | O_TRUNC, 0600); path 890 drivers/target/target_core_alua.c pr_err("filp_open(%s) for ALUA metadata failed\n", path); path 895 drivers/target/target_core_alua.c pr_err("Error writing ALUA metadata file: %s\n", path); path 905 drivers/target/target_core_alua.c char *path; path 925 drivers/target/target_core_alua.c path = kasprintf(GFP_KERNEL, "%s/alua/tpgs_%s/%s", db_root, path 928 drivers/target/target_core_alua.c if (path) { path 929 drivers/target/target_core_alua.c rc = core_alua_write_tpg_metadata(path, md_buf, len); path 930 drivers/target/target_core_alua.c kfree(path); path 1199 drivers/target/target_core_alua.c char *path; path 1217 drivers/target/target_core_alua.c path = kasprintf(GFP_KERNEL, "%s/alua/%s/%s+%hu/lun_%llu", path 1223 drivers/target/target_core_alua.c path = kasprintf(GFP_KERNEL, "%s/alua/%s/%s/lun_%llu", path 1228 drivers/target/target_core_alua.c if (!path) { path 1233 drivers/target/target_core_alua.c rc = core_alua_write_tpg_metadata(path, md_buf, len); path 1234 drivers/target/target_core_alua.c kfree(path); path 1969 drivers/target/target_core_pr.c char *path; path 1974 drivers/target/target_core_pr.c path = kasprintf(GFP_KERNEL, "%s/pr/aptpl_%s", db_root, path 1976 drivers/target/target_core_pr.c if (!path) path 1979 drivers/target/target_core_pr.c file = filp_open(path, flags, 0600); path 1982 drivers/target/target_core_pr.c " failed\n", path); path 1983 drivers/target/target_core_pr.c kfree(path); path 1992 drivers/target/target_core_pr.c pr_debug("Error writing APTPL metadata file: %s\n", path); path 1994 drivers/target/target_core_pr.c kfree(path); path 106 drivers/thunderbolt/path.c struct tb_path *path; path 151 drivers/thunderbolt/path.c path = kzalloc(sizeof(*path), GFP_KERNEL); path 152 drivers/thunderbolt/path.c if (!path) path 155 drivers/thunderbolt/path.c path->name = name; path 156 drivers/thunderbolt/path.c path->tb = src->sw->tb; path 157 drivers/thunderbolt/path.c path->path_length = num_hops; path 158 drivers/thunderbolt/path.c path->activated = true; path 160 drivers/thunderbolt/path.c path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); path 161 drivers/thunderbolt/path.c if (!path->hops) { path 162 drivers/thunderbolt/path.c kfree(path); path 191 drivers/thunderbolt/path.c path->hops[i].in_port = p; path 192 drivers/thunderbolt/path.c path->hops[i].in_hop_index = h; path 193 drivers/thunderbolt/path.c path->hops[i].in_counter_index = -1; path 194 drivers/thunderbolt/path.c path->hops[i].out_port = out_port; path 195 drivers/thunderbolt/path.c path->hops[i].next_hop_index = next_hop; path 201 drivers/thunderbolt/path.c return path; path 206 drivers/thunderbolt/path.c tb_path_free(path); path 233 drivers/thunderbolt/path.c struct tb_path *path; path 237 drivers/thunderbolt/path.c path = kzalloc(sizeof(*path), GFP_KERNEL); path 238 drivers/thunderbolt/path.c if (!path) path 248 drivers/thunderbolt/path.c path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); path 249 drivers/thunderbolt/path.c if (!path->hops) { path 250 drivers/thunderbolt/path.c kfree(path); path 287 drivers/thunderbolt/path.c path->hops[i].in_hop_index = in_hopid; path 288 drivers/thunderbolt/path.c path->hops[i].in_port = in_port; path 289 drivers/thunderbolt/path.c path->hops[i].in_counter_index = -1; path 290 drivers/thunderbolt/path.c path->hops[i].out_port = out_port; path 291 drivers/thunderbolt/path.c path->hops[i].next_hop_index = out_hopid; path 296 drivers/thunderbolt/path.c path->tb = tb; path 297 drivers/thunderbolt/path.c path->path_length = num_hops; path 298 drivers/thunderbolt/path.c path->name = name; path 300 drivers/thunderbolt/path.c return path; path 303 drivers/thunderbolt/path.c tb_path_free(path); path 313 drivers/thunderbolt/path.c void tb_path_free(struct tb_path *path) path 317 drivers/thunderbolt/path.c for (i = 0; i < path->path_length; i++) { path 318 drivers/thunderbolt/path.c const struct tb_path_hop *hop = &path->hops[i]; path 328 drivers/thunderbolt/path.c kfree(path->hops); path 329 drivers/thunderbolt/path.c kfree(path); path 332 drivers/thunderbolt/path.c static void __tb_path_deallocate_nfc(struct tb_path *path, int first_hop) path 335 drivers/thunderbolt/path.c for (i = first_hop; i < path->path_length; i++) { path 336 drivers/thunderbolt/path.c res = tb_port_add_nfc_credits(path->hops[i].in_port, path 337 drivers/thunderbolt/path.c -path->nfc_credits); path 339 drivers/thunderbolt/path.c tb_port_warn(path->hops[i].in_port, path 395 drivers/thunderbolt/path.c static void __tb_path_deactivate_hops(struct tb_path *path, int first_hop) path 399 drivers/thunderbolt/path.c for (i = first_hop; i < path->path_length; i++) { path 400 drivers/thunderbolt/path.c res = __tb_path_deactivate_hop(path->hops[i].in_port, path 401 drivers/thunderbolt/path.c path->hops[i].in_hop_index, path 402 drivers/thunderbolt/path.c path->clear_fc); path 404 drivers/thunderbolt/path.c tb_port_warn(path->hops[i].in_port, path 406 drivers/thunderbolt/path.c i, path->hops[i].in_hop_index); path 410 drivers/thunderbolt/path.c void tb_path_deactivate(struct tb_path *path) path 412 drivers/thunderbolt/path.c if (!path->activated) { path 413 drivers/thunderbolt/path.c tb_WARN(path->tb, "trying to deactivate an inactive path\n"); path 416 drivers/thunderbolt/path.c tb_dbg(path->tb, path 418 drivers/thunderbolt/path.c path->name, tb_route(path->hops[0].in_port->sw), path 419 drivers/thunderbolt/path.c path->hops[0].in_port->port, path 420 drivers/thunderbolt/path.c tb_route(path->hops[path->path_length - 1].out_port->sw), path 421 drivers/thunderbolt/path.c path->hops[path->path_length - 1].out_port->port); path 422 drivers/thunderbolt/path.c __tb_path_deactivate_hops(path, 0); path 423 drivers/thunderbolt/path.c __tb_path_deallocate_nfc(path, 0); path 424 drivers/thunderbolt/path.c path->activated = false; path 435 drivers/thunderbolt/path.c int tb_path_activate(struct tb_path *path) path 439 drivers/thunderbolt/path.c if (path->activated) { path 440 drivers/thunderbolt/path.c tb_WARN(path->tb, "trying to activate already activated path\n"); path 444 drivers/thunderbolt/path.c tb_dbg(path->tb, path 446 drivers/thunderbolt/path.c path->name, tb_route(path->hops[0].in_port->sw), path 447 drivers/thunderbolt/path.c path->hops[0].in_port->port, path 448 drivers/thunderbolt/path.c tb_route(path->hops[path->path_length - 1].out_port->sw), path 449 drivers/thunderbolt/path.c path->hops[path->path_length - 1].out_port->port); path 452 drivers/thunderbolt/path.c for (i = path->path_length - 1; i >= 0; i--) { path 453 drivers/thunderbolt/path.c if (path->hops[i].in_counter_index == -1) path 455 drivers/thunderbolt/path.c res = tb_port_clear_counter(path->hops[i].in_port, path 456 drivers/thunderbolt/path.c path->hops[i].in_counter_index); path 462 drivers/thunderbolt/path.c for (i = path->path_length - 1; i >= 0; i--) { path 463 drivers/thunderbolt/path.c res = tb_port_add_nfc_credits(path->hops[i].in_port, path 464 drivers/thunderbolt/path.c path->nfc_credits); path 466 drivers/thunderbolt/path.c __tb_path_deallocate_nfc(path, i); path 472 drivers/thunderbolt/path.c for (i = path->path_length - 1; i >= 0; i--) { path 476 drivers/thunderbolt/path.c __tb_path_deactivate_hop(path->hops[i].in_port, path 477 drivers/thunderbolt/path.c path->hops[i].in_hop_index, path->clear_fc); path 480 drivers/thunderbolt/path.c hop.next_hop = path->hops[i].next_hop_index; path 481 drivers/thunderbolt/path.c hop.out_port = path->hops[i].out_port->port; path 482 drivers/thunderbolt/path.c hop.initial_credits = path->hops[i].initial_credits; path 487 drivers/thunderbolt/path.c out_mask = (i == path->path_length - 1) ? path 490 drivers/thunderbolt/path.c hop.weight = path->weight; path 492 drivers/thunderbolt/path.c hop.priority = path->priority; path 493 drivers/thunderbolt/path.c hop.drop_packages = path->drop_packages; path 494 drivers/thunderbolt/path.c hop.counter = path->hops[i].in_counter_index; path 495 drivers/thunderbolt/path.c hop.counter_enable = path->hops[i].in_counter_index != -1; path 496 drivers/thunderbolt/path.c hop.ingress_fc = path->ingress_fc_enable & in_mask; path 497 drivers/thunderbolt/path.c hop.egress_fc = path->egress_fc_enable & out_mask; path 498 drivers/thunderbolt/path.c hop.ingress_shared_buffer = path->ingress_shared_buffer path 500 drivers/thunderbolt/path.c hop.egress_shared_buffer = path->egress_shared_buffer path 504 drivers/thunderbolt/path.c tb_port_dbg(path->hops[i].in_port, "Writing hop %d\n", i); path 505 drivers/thunderbolt/path.c tb_dump_hop(&path->hops[i], &hop); path 506 drivers/thunderbolt/path.c res = tb_port_write(path->hops[i].in_port, &hop, TB_CFG_HOPS, path 507 drivers/thunderbolt/path.c 2 * path->hops[i].in_hop_index, 2); path 509 drivers/thunderbolt/path.c __tb_path_deactivate_hops(path, i); path 510 drivers/thunderbolt/path.c __tb_path_deallocate_nfc(path, 0); path 514 drivers/thunderbolt/path.c path->activated = true; path 515 drivers/thunderbolt/path.c tb_dbg(path->tb, "path activation complete\n"); path 518 drivers/thunderbolt/path.c tb_WARN(path->tb, "path activation failed\n"); path 527 drivers/thunderbolt/path.c bool tb_path_is_invalid(struct tb_path *path) path 530 drivers/thunderbolt/path.c for (i = 0; i < path->path_length; i++) { path 531 drivers/thunderbolt/path.c if (path->hops[i].in_port->sw->is_unplugged) path 533 drivers/thunderbolt/path.c if (path->hops[i].out_port->sw->is_unplugged) path 625 drivers/thunderbolt/tb.h void tb_path_free(struct tb_path *path); path 626 drivers/thunderbolt/tb.h int tb_path_activate(struct tb_path *path); path 627 drivers/thunderbolt/tb.h void tb_path_deactivate(struct tb_path *path); path 628 drivers/thunderbolt/tb.h bool tb_path_is_invalid(struct tb_path *path); path 93 drivers/thunderbolt/tunnel.c static void tb_pci_init_path(struct tb_path *path) path 95 drivers/thunderbolt/tunnel.c path->egress_fc_enable = TB_PATH_SOURCE | TB_PATH_INTERNAL; path 96 drivers/thunderbolt/tunnel.c path->egress_shared_buffer = TB_PATH_NONE; path 97 drivers/thunderbolt/tunnel.c path->ingress_fc_enable = TB_PATH_ALL; path 98 drivers/thunderbolt/tunnel.c path->ingress_shared_buffer = TB_PATH_NONE; path 99 drivers/thunderbolt/tunnel.c path->priority = 3; path 100 drivers/thunderbolt/tunnel.c path->weight = 1; path 101 drivers/thunderbolt/tunnel.c path->drop_packages = 0; path 102 drivers/thunderbolt/tunnel.c path->nfc_credits = 0; path 103 drivers/thunderbolt/tunnel.c path->hops[0].initial_credits = 7; path 104 drivers/thunderbolt/tunnel.c path->hops[1].initial_credits = 16; path 119 drivers/thunderbolt/tunnel.c struct tb_path *path; path 136 drivers/thunderbolt/tunnel.c path = tb_path_discover(down, TB_PCI_HOPID, NULL, -1, path 138 drivers/thunderbolt/tunnel.c if (!path) { path 143 drivers/thunderbolt/tunnel.c tunnel->paths[TB_PCI_PATH_UP] = path; path 146 drivers/thunderbolt/tunnel.c path = tb_path_discover(tunnel->dst_port, -1, down, TB_PCI_HOPID, NULL, path 148 drivers/thunderbolt/tunnel.c if (!path) path 150 drivers/thunderbolt/tunnel.c tunnel->paths[TB_PCI_PATH_DOWN] = path; path 197 drivers/thunderbolt/tunnel.c struct tb_path *path; path 207 drivers/thunderbolt/tunnel.c path = tb_path_alloc(tb, down, TB_PCI_HOPID, up, TB_PCI_HOPID, 0, path 209 drivers/thunderbolt/tunnel.c if (!path) { path 213 drivers/thunderbolt/tunnel.c tb_pci_init_path(path); path 214 drivers/thunderbolt/tunnel.c tunnel->paths[TB_PCI_PATH_DOWN] = path; path 216 drivers/thunderbolt/tunnel.c path = tb_path_alloc(tb, up, TB_PCI_HOPID, down, TB_PCI_HOPID, 0, path 218 drivers/thunderbolt/tunnel.c if (!path) { path 222 drivers/thunderbolt/tunnel.c tb_pci_init_path(path); path 223 drivers/thunderbolt/tunnel.c tunnel->paths[TB_PCI_PATH_UP] = path; path 300 drivers/thunderbolt/tunnel.c static void tb_dp_init_aux_path(struct tb_path *path) path 304 drivers/thunderbolt/tunnel.c path->egress_fc_enable = TB_PATH_SOURCE | TB_PATH_INTERNAL; path 305 drivers/thunderbolt/tunnel.c path->egress_shared_buffer = TB_PATH_NONE; path 306 drivers/thunderbolt/tunnel.c path->ingress_fc_enable = TB_PATH_ALL; path 307 drivers/thunderbolt/tunnel.c path->ingress_shared_buffer = TB_PATH_NONE; path 308 drivers/thunderbolt/tunnel.c path->priority = 2; path 309 drivers/thunderbolt/tunnel.c path->weight = 1; path 311 drivers/thunderbolt/tunnel.c for (i = 0; i < path->path_length; i++) path 312 drivers/thunderbolt/tunnel.c path->hops[i].initial_credits = 1; path 315 drivers/thunderbolt/tunnel.c static void tb_dp_init_video_path(struct tb_path *path, bool discover) path 317 drivers/thunderbolt/tunnel.c u32 nfc_credits = path->hops[0].in_port->config.nfc_credits; path 319 drivers/thunderbolt/tunnel.c path->egress_fc_enable = TB_PATH_NONE; path 320 drivers/thunderbolt/tunnel.c path->egress_shared_buffer = TB_PATH_NONE; path 321 drivers/thunderbolt/tunnel.c path->ingress_fc_enable = TB_PATH_NONE; path 322 drivers/thunderbolt/tunnel.c path->ingress_shared_buffer = TB_PATH_NONE; path 323 drivers/thunderbolt/tunnel.c path->priority = 1; path 324 drivers/thunderbolt/tunnel.c path->weight = 1; path 327 drivers/thunderbolt/tunnel.c path->nfc_credits = nfc_credits & TB_PORT_NFC_CREDITS_MASK; path 334 drivers/thunderbolt/tunnel.c path->nfc_credits = min(max_credits - 2, 12U); path 353 drivers/thunderbolt/tunnel.c struct tb_path *path; path 366 drivers/thunderbolt/tunnel.c path = tb_path_discover(in, TB_DP_VIDEO_HOPID, NULL, -1, path 368 drivers/thunderbolt/tunnel.c if (!path) { path 373 drivers/thunderbolt/tunnel.c tunnel->paths[TB_DP_VIDEO_PATH_OUT] = path; path 376 drivers/thunderbolt/tunnel.c path = tb_path_discover(in, TB_DP_AUX_TX_HOPID, NULL, -1, NULL, "AUX TX"); path 377 drivers/thunderbolt/tunnel.c if (!path) path 379 drivers/thunderbolt/tunnel.c tunnel->paths[TB_DP_AUX_PATH_OUT] = path; path 382 drivers/thunderbolt/tunnel.c path = tb_path_discover(tunnel->dst_port, -1, in, TB_DP_AUX_RX_HOPID, path 384 drivers/thunderbolt/tunnel.c if (!path) path 386 drivers/thunderbolt/tunnel.c tunnel->paths[TB_DP_AUX_PATH_IN] = path; path 433 drivers/thunderbolt/tunnel.c struct tb_path *path; path 449 drivers/thunderbolt/tunnel.c path = tb_path_alloc(tb, in, TB_DP_VIDEO_HOPID, out, TB_DP_VIDEO_HOPID, path 451 drivers/thunderbolt/tunnel.c if (!path) path 453 drivers/thunderbolt/tunnel.c tb_dp_init_video_path(path, false); path 454 drivers/thunderbolt/tunnel.c paths[TB_DP_VIDEO_PATH_OUT] = path; path 456 drivers/thunderbolt/tunnel.c path = tb_path_alloc(tb, in, TB_DP_AUX_TX_HOPID, out, path 458 drivers/thunderbolt/tunnel.c if (!path) path 460 drivers/thunderbolt/tunnel.c tb_dp_init_aux_path(path); path 461 drivers/thunderbolt/tunnel.c paths[TB_DP_AUX_PATH_OUT] = path; path 463 drivers/thunderbolt/tunnel.c path = tb_path_alloc(tb, out, TB_DP_AUX_RX_HOPID, in, path 465 drivers/thunderbolt/tunnel.c if (!path) path 467 drivers/thunderbolt/tunnel.c tb_dp_init_aux_path(path); path 468 drivers/thunderbolt/tunnel.c paths[TB_DP_AUX_PATH_IN] = path; path 495 drivers/thunderbolt/tunnel.c static void tb_dma_init_path(struct tb_path *path, unsigned int isb, path 500 drivers/thunderbolt/tunnel.c path->egress_fc_enable = efc; path 501 drivers/thunderbolt/tunnel.c path->ingress_fc_enable = TB_PATH_ALL; path 502 drivers/thunderbolt/tunnel.c path->egress_shared_buffer = TB_PATH_NONE; path 503 drivers/thunderbolt/tunnel.c path->ingress_shared_buffer = isb; path 504 drivers/thunderbolt/tunnel.c path->priority = 5; path 505 drivers/thunderbolt/tunnel.c path->weight = 1; path 506 drivers/thunderbolt/tunnel.c path->clear_fc = true; path 508 drivers/thunderbolt/tunnel.c for (i = 0; i < path->path_length; i++) path 509 drivers/thunderbolt/tunnel.c path->hops[i].initial_credits = credits; path 532 drivers/thunderbolt/tunnel.c struct tb_path *path; path 545 drivers/thunderbolt/tunnel.c path = tb_path_alloc(tb, dst, receive_path, nhi, receive_ring, 0, "DMA RX"); path 546 drivers/thunderbolt/tunnel.c if (!path) { path 550 drivers/thunderbolt/tunnel.c tb_dma_init_path(path, TB_PATH_NONE, TB_PATH_SOURCE | TB_PATH_INTERNAL, path 552 drivers/thunderbolt/tunnel.c tunnel->paths[TB_DMA_PATH_IN] = path; path 554 drivers/thunderbolt/tunnel.c path = tb_path_alloc(tb, nhi, transmit_ring, dst, transmit_path, 0, "DMA TX"); path 555 drivers/thunderbolt/tunnel.c if (!path) { path 559 drivers/thunderbolt/tunnel.c tb_dma_init_path(path, TB_PATH_SOURCE, TB_PATH_ALL, credits); path 560 drivers/thunderbolt/tunnel.c tunnel->paths[TB_DMA_PATH_OUT] = path; path 70 drivers/tty/hvc/hvc_iucv.c struct iucv_path *path; /* IUCV path pointer */ path 250 drivers/tty/hvc/hvc_iucv.c rc = __iucv_message_receive(priv->path, &rb->msg, 0, path 415 drivers/tty/hvc/hvc_iucv.c rc = __iucv_message_send(priv->path, &sb->msg, 0, 0, path 592 drivers/tty/hvc/hvc_iucv.c struct iucv_path *path; path 594 drivers/tty/hvc/hvc_iucv.c path = NULL; path 597 drivers/tty/hvc/hvc_iucv.c path = priv->path; path 598 drivers/tty/hvc/hvc_iucv.c priv->path = NULL; path 613 drivers/tty/hvc/hvc_iucv.c if (path) { path 614 drivers/tty/hvc/hvc_iucv.c iucv_path_sever(path, NULL); path 615 drivers/tty/hvc/hvc_iucv.c iucv_path_free(path); path 673 drivers/tty/hvc/hvc_iucv.c struct iucv_path *path; path 691 drivers/tty/hvc/hvc_iucv.c path = priv->path; /* save reference to IUCV path */ path 692 drivers/tty/hvc/hvc_iucv.c priv->path = NULL; path 698 drivers/tty/hvc/hvc_iucv.c if (path) { path 699 drivers/tty/hvc/hvc_iucv.c iucv_path_sever(path, NULL); path 700 drivers/tty/hvc/hvc_iucv.c iucv_path_free(path); path 786 drivers/tty/hvc/hvc_iucv.c static int hvc_iucv_path_pending(struct iucv_path *path, u8 *ipvmid, path 828 drivers/tty/hvc/hvc_iucv.c iucv_path_sever(path, ipuser); path 829 drivers/tty/hvc/hvc_iucv.c iucv_path_free(path); path 843 drivers/tty/hvc/hvc_iucv.c iucv_path_sever(path, ipuser); path 844 drivers/tty/hvc/hvc_iucv.c iucv_path_free(path); path 851 drivers/tty/hvc/hvc_iucv.c path->msglim = 0xffff; /* IUCV MSGLIMIT */ path 852 drivers/tty/hvc/hvc_iucv.c path->flags &= ~IUCV_IPRMDATA; /* TODO: use IUCV_IPRMDATA */ path 853 drivers/tty/hvc/hvc_iucv.c rc = iucv_path_accept(path, &hvc_iucv_handler, nuser_data, priv); path 855 drivers/tty/hvc/hvc_iucv.c iucv_path_sever(path, ipuser); path 856 drivers/tty/hvc/hvc_iucv.c iucv_path_free(path); path 859 drivers/tty/hvc/hvc_iucv.c priv->path = path; path 885 drivers/tty/hvc/hvc_iucv.c static void hvc_iucv_path_severed(struct iucv_path *path, u8 *ipuser) path 887 drivers/tty/hvc/hvc_iucv.c struct hvc_iucv_private *priv = path->private; path 903 drivers/tty/hvc/hvc_iucv.c static void hvc_iucv_msg_pending(struct iucv_path *path, path 906 drivers/tty/hvc/hvc_iucv.c struct hvc_iucv_private *priv = path->private; path 911 drivers/tty/hvc/hvc_iucv.c iucv_message_reject(path, msg); path 919 drivers/tty/hvc/hvc_iucv.c iucv_message_reject(path, msg); path 926 drivers/tty/hvc/hvc_iucv.c iucv_message_reject(path, msg); path 951 drivers/tty/hvc/hvc_iucv.c static void hvc_iucv_msg_complete(struct iucv_path *path, path 954 drivers/tty/hvc/hvc_iucv.c struct hvc_iucv_private *priv = path->private; path 628 drivers/tty/pty.c struct path path; path 640 drivers/tty/pty.c path.mnt = devpts_mntget(master, tty->driver_data); path 641 drivers/tty/pty.c if (IS_ERR(path.mnt)) { path 642 drivers/tty/pty.c retval = PTR_ERR(path.mnt); path 645 drivers/tty/pty.c path.dentry = tty->link->driver_data; path 647 drivers/tty/pty.c filp = dentry_open(&path, flags, current_cred()); path 648 drivers/tty/pty.c mntput(path.mnt); path 932 drivers/video/console/sticore.c static void sticore_check_for_default_sti(struct sti_struct *sti, char *path) path 934 drivers/video/console/sticore.c if (strcmp (path, default_sti_path) == 0) path 16 drivers/video/fbdev/mmp/core.c static struct mmp_overlay *path_get_overlay(struct mmp_path *path, path 19 drivers/video/fbdev/mmp/core.c if (path && overlay_id < path->overlay_num) path 20 drivers/video/fbdev/mmp/core.c return &path->overlays[overlay_id]; path 24 drivers/video/fbdev/mmp/core.c static int path_check_status(struct mmp_path *path) path 27 drivers/video/fbdev/mmp/core.c for (i = 0; i < path->overlay_num; i++) path 28 drivers/video/fbdev/mmp/core.c if (path->overlays[i].status) path 41 drivers/video/fbdev/mmp/core.c static int path_get_modelist(struct mmp_path *path, path 44 drivers/video/fbdev/mmp/core.c BUG_ON(!path || !modelist); path 46 drivers/video/fbdev/mmp/core.c if (path->panel && path->panel->get_modelist) path 47 drivers/video/fbdev/mmp/core.c return path->panel->get_modelist(path->panel, modelist); path 74 drivers/video/fbdev/mmp/core.c struct mmp_path *path; path 82 drivers/video/fbdev/mmp/core.c list_for_each_entry(path, &path_list, node) { path 83 drivers/video/fbdev/mmp/core.c if (!strcmp(panel->plat_path_name, path->name)) { path 85 drivers/video/fbdev/mmp/core.c path->name); path 86 drivers/video/fbdev/mmp/core.c path->panel = panel; path 104 drivers/video/fbdev/mmp/core.c struct mmp_path *path; path 109 drivers/video/fbdev/mmp/core.c list_for_each_entry(path, &path_list, node) { path 110 drivers/video/fbdev/mmp/core.c if (path->panel && path->panel == panel) { path 112 drivers/video/fbdev/mmp/core.c path->name); path 113 drivers/video/fbdev/mmp/core.c path->panel = NULL; path 130 drivers/video/fbdev/mmp/core.c struct mmp_path *path; path 134 drivers/video/fbdev/mmp/core.c list_for_each_entry(path, &path_list, node) { path 135 drivers/video/fbdev/mmp/core.c if (!strcmp(name, path->name)) { path 142 drivers/video/fbdev/mmp/core.c return found ? path : NULL; path 156 drivers/video/fbdev/mmp/core.c struct mmp_path *path = NULL; path 159 drivers/video/fbdev/mmp/core.c path = kzalloc(struct_size(path, overlays, info->overlay_num), path 161 drivers/video/fbdev/mmp/core.c if (!path) path 165 drivers/video/fbdev/mmp/core.c mutex_init(&path->access_ok); path 166 drivers/video/fbdev/mmp/core.c path->dev = info->dev; path 167 drivers/video/fbdev/mmp/core.c path->id = info->id; path 168 drivers/video/fbdev/mmp/core.c path->name = info->name; path 169 drivers/video/fbdev/mmp/core.c path->output_type = info->output_type; path 170 drivers/video/fbdev/mmp/core.c path->overlay_num = info->overlay_num; path 171 drivers/video/fbdev/mmp/core.c path->plat_data = info->plat_data; path 172 drivers/video/fbdev/mmp/core.c path->ops.set_mode = info->set_mode; path 178 drivers/video/fbdev/mmp/core.c dev_info(path->dev, "get panel %s\n", panel->name); path 179 drivers/video/fbdev/mmp/core.c path->panel = panel; path 184 drivers/video/fbdev/mmp/core.c dev_info(path->dev, "register %s, overlay_num %d\n", path 185 drivers/video/fbdev/mmp/core.c path->name, path->overlay_num); path 188 drivers/video/fbdev/mmp/core.c if (!path->ops.check_status) path 189 drivers/video/fbdev/mmp/core.c path->ops.check_status = path_check_status; path 190 drivers/video/fbdev/mmp/core.c if (!path->ops.get_overlay) path 191 drivers/video/fbdev/mmp/core.c path->ops.get_overlay = path_get_overlay; path 192 drivers/video/fbdev/mmp/core.c if (!path->ops.get_modelist) path 193 drivers/video/fbdev/mmp/core.c path->ops.get_modelist = path_get_modelist; path 196 drivers/video/fbdev/mmp/core.c for (i = 0; i < path->overlay_num; i++) { path 197 drivers/video/fbdev/mmp/core.c path->overlays[i].path = path; path 198 drivers/video/fbdev/mmp/core.c path->overlays[i].id = i; path 199 drivers/video/fbdev/mmp/core.c mutex_init(&path->overlays[i].access_ok); path 200 drivers/video/fbdev/mmp/core.c path->overlays[i].ops = info->overlay_ops; path 204 drivers/video/fbdev/mmp/core.c list_add_tail(&path->node, &path_list); path 207 drivers/video/fbdev/mmp/core.c return path; path 217 drivers/video/fbdev/mmp/core.c void mmp_unregister_path(struct mmp_path *path) path 221 drivers/video/fbdev/mmp/core.c if (!path) path 226 drivers/video/fbdev/mmp/core.c list_del(&path->node); path 229 drivers/video/fbdev/mmp/core.c for (i = 0; i < path->overlay_num; i++) path 230 drivers/video/fbdev/mmp/core.c mutex_destroy(&path->overlays[i].access_ok); path 232 drivers/video/fbdev/mmp/core.c mutex_destroy(&path->access_ok); path 234 drivers/video/fbdev/mmp/core.c kfree(path); path 414 drivers/video/fbdev/mmp/fb/mmpfb.c mmp_path_set_mode(fbi->path, &mode); path 477 drivers/video/fbdev/mmp/fb/mmpfb.c videomode_num = mmp_path_get_modelist(fbi->path, &mmp_modes); path 496 drivers/video/fbdev/mmp/fb/mmpfb.c mmp_path_set_mode(fbi->path, &mmp_modes[0]); path 569 drivers/video/fbdev/mmp/fb/mmpfb.c fbi->path = mmp_get_path(mi->path_name); path 570 drivers/video/fbdev/mmp/fb/mmpfb.c if (!fbi->path) { path 576 drivers/video/fbdev/mmp/fb/mmpfb.c dev_info(fbi->dev, "path %s get\n", fbi->path->name); path 579 drivers/video/fbdev/mmp/fb/mmpfb.c fbi->overlay = mmp_path_get_overlay(fbi->path, mi->overlay_id); path 32 drivers/video/fbdev/mmp/fb/mmpfb.h struct mmp_path *path; path 122 drivers/video/fbdev/mmp/hw/mmp_ctrl.c struct mmp_path *path = overlay->path; path 123 drivers/video/fbdev/mmp/hw/mmp_ctrl.c tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); path 126 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); path 131 drivers/video/fbdev/mmp/hw/mmp_ctrl.c struct lcd_regs *regs = path_regs(overlay->path); path 164 drivers/video/fbdev/mmp/hw/mmp_ctrl.c struct mmp_path *path = overlay->path; path 167 drivers/video/fbdev/mmp/hw/mmp_ctrl.c tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); path 170 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); path 174 drivers/video/fbdev/mmp/hw/mmp_ctrl.c static void path_enabledisable(struct mmp_path *path, int on) path 177 drivers/video/fbdev/mmp/hw/mmp_ctrl.c mutex_lock(&path->access_ok); path 178 drivers/video/fbdev/mmp/hw/mmp_ctrl.c tmp = readl_relaxed(ctrl_regs(path) + LCD_SCLK(path)); path 183 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed(tmp, ctrl_regs(path) + LCD_SCLK(path)); path 184 drivers/video/fbdev/mmp/hw/mmp_ctrl.c mutex_unlock(&path->access_ok); path 187 drivers/video/fbdev/mmp/hw/mmp_ctrl.c static void path_onoff(struct mmp_path *path, int on) path 189 drivers/video/fbdev/mmp/hw/mmp_ctrl.c if (path->status == on) { path 190 drivers/video/fbdev/mmp/hw/mmp_ctrl.c dev_info(path->dev, "path %s is already %s\n", path 191 drivers/video/fbdev/mmp/hw/mmp_ctrl.c path->name, stat_name(path->status)); path 196 drivers/video/fbdev/mmp/hw/mmp_ctrl.c path_enabledisable(path, 1); path 198 drivers/video/fbdev/mmp/hw/mmp_ctrl.c if (path->panel && path->panel->set_onoff) path 199 drivers/video/fbdev/mmp/hw/mmp_ctrl.c path->panel->set_onoff(path->panel, 1); path 201 drivers/video/fbdev/mmp/hw/mmp_ctrl.c if (path->panel && path->panel->set_onoff) path 202 drivers/video/fbdev/mmp/hw/mmp_ctrl.c path->panel->set_onoff(path->panel, 0); path 204 drivers/video/fbdev/mmp/hw/mmp_ctrl.c path_enabledisable(path, 0); path 206 drivers/video/fbdev/mmp/hw/mmp_ctrl.c path->status = on; path 213 drivers/video/fbdev/mmp/hw/mmp_ctrl.c overlay->path->name, stat_name(overlay->status)); path 218 drivers/video/fbdev/mmp/hw/mmp_ctrl.c if (overlay->path->ops.check_status(overlay->path) path 219 drivers/video/fbdev/mmp/hw/mmp_ctrl.c != overlay->path->status) path 220 drivers/video/fbdev/mmp/hw/mmp_ctrl.c path_onoff(overlay->path, on); path 230 drivers/video/fbdev/mmp/hw/mmp_ctrl.c struct lcd_regs *regs = path_regs(overlay->path); path 245 drivers/video/fbdev/mmp/hw/mmp_ctrl.c static void path_set_mode(struct mmp_path *path, struct mmp_mode *mode) path 247 drivers/video/fbdev/mmp/hw/mmp_ctrl.c struct lcd_regs *regs = path_regs(path); path 249 drivers/video/fbdev/mmp/hw/mmp_ctrl.c link_config = path_to_path_plat(path)->link_config, path 250 drivers/video/fbdev/mmp/hw/mmp_ctrl.c dsi_rbswap = path_to_path_plat(path)->link_config; path 253 drivers/video/fbdev/mmp/hw/mmp_ctrl.c memcpy(&path->mode, mode, sizeof(struct mmp_mode)); path 255 drivers/video/fbdev/mmp/hw/mmp_ctrl.c mutex_lock(&path->access_ok); path 258 drivers/video/fbdev/mmp/hw/mmp_ctrl.c tmp = readl_relaxed(ctrl_regs(path) + intf_ctrl(path->id)) & 0x1; path 263 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed(tmp, ctrl_regs(path) + intf_ctrl(path->id)); path 266 drivers/video/fbdev/mmp/hw/mmp_ctrl.c tmp = readl_relaxed(ctrl_regs(path) + intf_rbswap_ctrl(path->id)) & path 269 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed(tmp, ctrl_regs(path) + intf_rbswap_ctrl(path->id)); path 283 drivers/video/fbdev/mmp/hw/mmp_ctrl.c if (path->output_type == PATH_OUT_DSI) path 291 drivers/video/fbdev/mmp/hw/mmp_ctrl.c sclk_src = clk_get_rate(path_to_ctrl(path)->clk); path 296 drivers/video/fbdev/mmp/hw/mmp_ctrl.c dev_info(path->dev, "%s sclk_src %d sclk_div 0x%x pclk %d\n", path 299 drivers/video/fbdev/mmp/hw/mmp_ctrl.c tmp = readl_relaxed(ctrl_regs(path) + LCD_SCLK(path)); path 302 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed(tmp, ctrl_regs(path) + LCD_SCLK(path)); path 304 drivers/video/fbdev/mmp/hw/mmp_ctrl.c mutex_unlock(&path->access_ok); path 336 drivers/video/fbdev/mmp/hw/mmp_ctrl.c static void path_set_default(struct mmp_path *path) path 338 drivers/video/fbdev/mmp/hw/mmp_ctrl.c struct lcd_regs *regs = path_regs(path); path 341 drivers/video/fbdev/mmp/hw/mmp_ctrl.c path_config = path_to_path_plat(path)->path_config; path 344 drivers/video/fbdev/mmp/hw/mmp_ctrl.c if (PATH_OUT_PARALLEL == path->output_type) { path 346 drivers/video/fbdev/mmp/hw/mmp_ctrl.c tmp = readl_relaxed(ctrl_regs(path) + SPU_IOPAD_CONTROL); path 349 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed(tmp, ctrl_regs(path) + SPU_IOPAD_CONTROL); path 353 drivers/video/fbdev/mmp/hw/mmp_ctrl.c tmp = readl_relaxed(ctrl_regs(path) + LCD_SCLK(path)); path 356 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed(tmp, ctrl_regs(path) + LCD_SCLK(path)); path 366 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed(dma_ctrl1, ctrl_regs(path) + dma_ctrl(1, path->id)); path 379 drivers/video/fbdev/mmp/hw/mmp_ctrl.c tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); path 381 drivers/video/fbdev/mmp/hw/mmp_ctrl.c if (PATH_TV == path->id) path 383 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); path 391 drivers/video/fbdev/mmp/hw/mmp_ctrl.c struct mmp_path *path = NULL; path 409 drivers/video/fbdev/mmp/hw/mmp_ctrl.c path = mmp_register_path(path_info); path 410 drivers/video/fbdev/mmp/hw/mmp_ctrl.c if (!path) { path 414 drivers/video/fbdev/mmp/hw/mmp_ctrl.c path_plat->path = path; path 418 drivers/video/fbdev/mmp/hw/mmp_ctrl.c path_set_default(path); path 429 drivers/video/fbdev/mmp/hw/mmp_ctrl.c mmp_unregister_path(path_plat->path); path 150 drivers/video/fbdev/mmp/hw/mmp_ctrl.h #define LCD_SCLK(path) ((PATH_PN == path->id) ? LCD_CFG_SCLK_DIV :\ path 151 drivers/video/fbdev/mmp/hw/mmp_ctrl.h ((PATH_TV == path->id) ? LCD_TCLK_DIV : LCD_PN2_SCLK_DIV)) path 913 drivers/video/fbdev/mmp/hw/mmp_ctrl.h #define timing_master_config(path, dsi_id, lcd_id) \ path 914 drivers/video/fbdev/mmp/hw/mmp_ctrl.h (MASTER_ENH(path) | MASTER_ENV(path) | \ path 915 drivers/video/fbdev/mmp/hw/mmp_ctrl.h (((lcd_id) + ((dsi_id) << 1)) << DSI_START_SEL_SHIFT(path))) path 1385 drivers/video/fbdev/mmp/hw/mmp_ctrl.h struct mmp_path *path; path 1417 drivers/video/fbdev/mmp/hw/mmp_ctrl.h static inline struct mmphw_path_plat *path_to_path_plat(struct mmp_path *path) path 1419 drivers/video/fbdev/mmp/hw/mmp_ctrl.h return (struct mmphw_path_plat *)path->plat_data; path 1422 drivers/video/fbdev/mmp/hw/mmp_ctrl.h static inline struct mmphw_ctrl *path_to_ctrl(struct mmp_path *path) path 1424 drivers/video/fbdev/mmp/hw/mmp_ctrl.h return path_to_path_plat(path)->ctrl; path 1429 drivers/video/fbdev/mmp/hw/mmp_ctrl.h return path_to_ctrl(overlay->path); path 1432 drivers/video/fbdev/mmp/hw/mmp_ctrl.h static inline void *ctrl_regs(struct mmp_path *path) path 1434 drivers/video/fbdev/mmp/hw/mmp_ctrl.h return path_to_ctrl(path)->reg_base; path 1438 drivers/video/fbdev/mmp/hw/mmp_ctrl.h static inline struct lcd_regs *path_regs(struct mmp_path *path) path 1440 drivers/video/fbdev/mmp/hw/mmp_ctrl.h if (path->id == PATH_PN) path 1441 drivers/video/fbdev/mmp/hw/mmp_ctrl.h return (struct lcd_regs *)(ctrl_regs(path) + 0xc0); path 1442 drivers/video/fbdev/mmp/hw/mmp_ctrl.h else if (path->id == PATH_TV) path 1443 drivers/video/fbdev/mmp/hw/mmp_ctrl.h return (struct lcd_regs *)ctrl_regs(path); path 1444 drivers/video/fbdev/mmp/hw/mmp_ctrl.h else if (path->id == PATH_P2) path 1445 drivers/video/fbdev/mmp/hw/mmp_ctrl.h return (struct lcd_regs *)(ctrl_regs(path) + 0x200); path 1447 drivers/video/fbdev/mmp/hw/mmp_ctrl.h dev_err(path->dev, "path id %d invalid\n", path->id); path 337 drivers/virt/fsl_hypervisor.c char *path, *propname; path 345 drivers/virt/fsl_hypervisor.c upath = (char __user *)(uintptr_t)param.path; path 349 drivers/virt/fsl_hypervisor.c path = strndup_user(upath, FH_DTPROP_MAX_PATHLEN); path 350 drivers/virt/fsl_hypervisor.c if (IS_ERR(path)) path 351 drivers/virt/fsl_hypervisor.c return PTR_ERR(path); path 377 drivers/virt/fsl_hypervisor.c virt_to_phys(path), path 383 drivers/virt/fsl_hypervisor.c virt_to_phys(path), path 405 drivers/virt/fsl_hypervisor.c kfree(path); path 73 drivers/xen/cpu_hotplug.c const char *path, const char *token) path 78 drivers/xen/cpu_hotplug.c cpustr = strstr(path, "cpu/"); path 220 drivers/xen/manage.c const char *path, const char *token) path 268 drivers/xen/manage.c static void sysrq_handler(struct xenbus_watch *watch, const char *path, path 64 drivers/xen/xen-balloon.c const char *path, const char *token) path 656 drivers/xen/xen-pciback/xenbus.c const char *path, const char *token) path 47 drivers/xen/xenbus/xenbus.h void (*otherend_changed)(struct xenbus_watch *watch, const char *path, path 63 drivers/xen/xenbus/xenbus.h const char *path; path 126 drivers/xen/xenbus/xenbus.h const char *path, const char *token, path 115 drivers/xen/xenbus/xenbus_client.c int xenbus_watch_path(struct xenbus_device *dev, const char *path, path 122 drivers/xen/xenbus/xenbus_client.c watch->node = path; path 130 drivers/xen/xenbus/xenbus_client.c xenbus_dev_fatal(dev, err, "adding watch on %s", path); path 161 drivers/xen/xenbus/xenbus_client.c char *path; path 164 drivers/xen/xenbus/xenbus_client.c path = kvasprintf(GFP_NOIO | __GFP_HIGH, pathfmt, ap); path 167 drivers/xen/xenbus/xenbus_client.c if (!path) { path 171 drivers/xen/xenbus/xenbus_client.c err = xenbus_watch_path(dev, path, watch, callback); path 174 drivers/xen/xenbus/xenbus_client.c kfree(path); path 920 drivers/xen/xenbus/xenbus_client.c enum xenbus_state xenbus_read_driver_state(const char *path) path 923 drivers/xen/xenbus/xenbus_client.c int err = xenbus_gather(XBT_NIL, path, "state", "%d", &result, NULL); path 240 drivers/xen/xenbus/xenbus_dev_frontend.c static struct watch_adapter *alloc_watch_adapter(const char *path, path 249 drivers/xen/xenbus/xenbus_dev_frontend.c watch->watch.node = kstrdup(path, GFP_KERNEL); path 267 drivers/xen/xenbus/xenbus_dev_frontend.c const char *path, path 281 drivers/xen/xenbus/xenbus_dev_frontend.c path_len = strlen(path) + 1; path 292 drivers/xen/xenbus/xenbus_dev_frontend.c ret = queue_reply(&staging_q, path, path_len); path 499 drivers/xen/xenbus/xenbus_dev_frontend.c char *path, *token; path 502 drivers/xen/xenbus/xenbus_dev_frontend.c path = u->u.buffer + sizeof(u->u.msg); path 503 drivers/xen/xenbus/xenbus_dev_frontend.c token = memchr(path, 0, u->u.msg.len); path 509 drivers/xen/xenbus/xenbus_dev_frontend.c if (memchr(token, 0, u->u.msg.len - (token - path)) == NULL) { path 515 drivers/xen/xenbus/xenbus_dev_frontend.c watch = alloc_watch_adapter(path, token); path 534 drivers/xen/xenbus/xenbus_dev_frontend.c !strcmp(watch->watch.node, path)) { path 172 drivers/xen/xenbus/xenbus_probe.c const char *path, const char *token, path 183 drivers/xen/xenbus/xenbus_probe.c strncmp(dev->otherend, path, strlen(dev->otherend))) { path 184 drivers/xen/xenbus/xenbus_probe.c dev_dbg(&dev->dev, "Ignoring watch at %s\n", path); path 191 drivers/xen/xenbus/xenbus_probe.c state, xenbus_strstate(state), dev->otherend_watch.node, path); path 363 drivers/xen/xenbus/xenbus_probe.c static void xenbus_cleanup_devices(const char *path, struct bus_type *bus) path 365 drivers/xen/xenbus/xenbus_probe.c struct xb_find_info info = { .nodename = path }; path 184 drivers/xen/xenbus/xenbus_probe_backend.c const char *path, const char *token) path 186 drivers/xen/xenbus/xenbus_probe_backend.c xenbus_otherend_changed(watch, path, token, 0); path 207 drivers/xen/xenbus/xenbus_probe_backend.c const char *path, const char *token) path 211 drivers/xen/xenbus/xenbus_probe_backend.c xenbus_dev_changed(path, &xenbus_backend); path 90 drivers/xen/xenbus/xenbus_probe_frontend.c const char *path, const char *token) path 92 drivers/xen/xenbus/xenbus_probe_frontend.c xenbus_otherend_changed(watch, path, token, 1); path 157 drivers/xen/xenbus/xenbus_probe_frontend.c const char *path, const char *token) path 161 drivers/xen/xenbus/xenbus_probe_frontend.c xenbus_dev_changed(path, &xenbus_frontend); path 336 drivers/xen/xenbus/xenbus_probe_frontend.c const char *path, const char *token) path 338 drivers/xen/xenbus/xenbus_probe_frontend.c if (xenbus_scanf(XBT_NIL, path, "", "%i", path 342 drivers/xen/xenbus/xenbus_probe_frontend.c path, xenbus_strstate(backend_state)); path 425 drivers/xen/xenbus/xenbus_xs.c char *strings, *path; path 428 drivers/xen/xenbus/xenbus_xs.c path = join(dir, node); path 429 drivers/xen/xenbus/xenbus_xs.c if (IS_ERR(path)) path 430 drivers/xen/xenbus/xenbus_xs.c return (char **)path; path 432 drivers/xen/xenbus/xenbus_xs.c strings = xs_single(t, XS_DIRECTORY, path, &len); path 433 drivers/xen/xenbus/xenbus_xs.c kfree(path); path 463 drivers/xen/xenbus/xenbus_xs.c char *path; path 466 drivers/xen/xenbus/xenbus_xs.c path = join(dir, node); path 467 drivers/xen/xenbus/xenbus_xs.c if (IS_ERR(path)) path 468 drivers/xen/xenbus/xenbus_xs.c return (void *)path; path 470 drivers/xen/xenbus/xenbus_xs.c ret = xs_single(t, XS_READ, path, len); path 471 drivers/xen/xenbus/xenbus_xs.c kfree(path); path 482 drivers/xen/xenbus/xenbus_xs.c const char *path; path 486 drivers/xen/xenbus/xenbus_xs.c path = join(dir, node); path 487 drivers/xen/xenbus/xenbus_xs.c if (IS_ERR(path)) path 488 drivers/xen/xenbus/xenbus_xs.c return PTR_ERR(path); path 490 drivers/xen/xenbus/xenbus_xs.c iovec[0].iov_base = (void *)path; path 491 drivers/xen/xenbus/xenbus_xs.c iovec[0].iov_len = strlen(path) + 1; path 496 drivers/xen/xenbus/xenbus_xs.c kfree(path); path 505 drivers/xen/xenbus/xenbus_xs.c char *path; path 508 drivers/xen/xenbus/xenbus_xs.c path = join(dir, node); path 509 drivers/xen/xenbus/xenbus_xs.c if (IS_ERR(path)) path 510 drivers/xen/xenbus/xenbus_xs.c return PTR_ERR(path); path 512 drivers/xen/xenbus/xenbus_xs.c ret = xs_error(xs_single(t, XS_MKDIR, path, NULL)); path 513 drivers/xen/xenbus/xenbus_xs.c kfree(path); path 521 drivers/xen/xenbus/xenbus_xs.c char *path; path 524 drivers/xen/xenbus/xenbus_xs.c path = join(dir, node); path 525 drivers/xen/xenbus/xenbus_xs.c if (IS_ERR(path)) path 526 drivers/xen/xenbus/xenbus_xs.c return PTR_ERR(path); path 528 drivers/xen/xenbus/xenbus_xs.c ret = xs_error(xs_single(t, XS_RM, path, NULL)); path 529 drivers/xen/xenbus/xenbus_xs.c kfree(path); path 658 drivers/xen/xenbus/xenbus_xs.c static int xs_watch(const char *path, const char *token) path 662 drivers/xen/xenbus/xenbus_xs.c iov[0].iov_base = (void *)path; path 663 drivers/xen/xenbus/xenbus_xs.c iov[0].iov_len = strlen(path) + 1; path 671 drivers/xen/xenbus/xenbus_xs.c static int xs_unwatch(const char *path, const char *token) path 675 drivers/xen/xenbus/xenbus_xs.c iov[0].iov_base = (char *)path; path 676 drivers/xen/xenbus/xenbus_xs.c iov[0].iov_len = strlen(path) + 1; path 703 drivers/xen/xenbus/xenbus_xs.c event->path = (const char *)event->body; path 890 drivers/xen/xenbus/xenbus_xs.c event->handle->callback(event->handle, event->path, path 117 fs/9p/cache.c &v9inode->qid.path, path 118 fs/9p/cache.c sizeof(v9inode->qid.path), path 190 fs/9p/cache.c &v9inode->qid.path, path 191 fs/9p/cache.c sizeof(v9inode->qid.path), path 204 fs/9p/vfs_inode.c *((long long *)&wstat->qid.path) = ~0; path 466 fs/9p/vfs_inode.c if (v9inode->qid.path != st->qid.path) path 1052 fs/9p/vfs_inode.c v9fs_vfs_getattr(const struct path *path, struct kstat *stat, path 1055 fs/9p/vfs_inode.c struct dentry *dentry = path->dentry; path 1216 fs/9p/vfs_inode.c u64 path = qid->path + 2; path 1219 fs/9p/vfs_inode.c if (sizeof(ino_t) == sizeof(path)) path 1220 fs/9p/vfs_inode.c memcpy(&i, &path, sizeof(ino_t)); path 1222 fs/9p/vfs_inode.c i = (ino_t) (path ^ (path >> 32)); path 76 fs/9p/vfs_inode_dotl.c if (v9inode->qid.path != st->qid.path) path 458 fs/9p/vfs_inode_dotl.c v9fs_vfs_getattr_dotl(const struct path *path, struct kstat *stat, path 461 fs/9p/vfs_inode_dotl.c struct dentry *dentry = path->dentry; path 723 fs/afs/inode.c int afs_getattr(const struct path *path, struct kstat *stat, path 726 fs/afs/inode.c struct inode *inode = d_inode(path->dentry); path 1019 fs/afs/internal.h extern int afs_getattr(const struct path *, struct kstat *, u32, unsigned int); path 1080 fs/afs/internal.h extern struct vfsmount *afs_d_automount(struct path *); path 183 fs/afs/mntpt.c struct vfsmount *afs_d_automount(struct path *path) path 187 fs/afs/mntpt.c _enter("{%pd}", path->dentry); path 189 fs/afs/mntpt.c newmnt = afs_mntpt_do_automount(path->dentry); path 155 fs/autofs/autofs_i.h int autofs_expire_wait(const struct path *path, int rcu_walk); path 224 fs/autofs/autofs_i.h const struct path *, enum autofs_notify); path 121 fs/autofs/dev-ioctl.c err = invalid_str(param->path, param->size - AUTOFS_DEV_IOCTL_SIZE); path 129 fs/autofs/dev-ioctl.c err = check_name(param->path); path 182 fs/autofs/dev-ioctl.c struct path *res, path 183 fs/autofs/dev-ioctl.c int test(const struct path *path, void *data), path 186 fs/autofs/dev-ioctl.c struct path path; path 189 fs/autofs/dev-ioctl.c err = kern_path_mountpoint(AT_FDCWD, pathname, &path, 0); path 193 fs/autofs/dev-ioctl.c while (path.dentry == path.mnt->mnt_root) { path 194 fs/autofs/dev-ioctl.c if (path.dentry->d_sb->s_magic == AUTOFS_SUPER_MAGIC) { path 195 fs/autofs/dev-ioctl.c if (test(&path, data)) { path 196 fs/autofs/dev-ioctl.c path_get(&path); path 197 fs/autofs/dev-ioctl.c *res = path; path 202 fs/autofs/dev-ioctl.c if (!follow_up(&path)) path 205 fs/autofs/dev-ioctl.c path_put(&path); path 209 fs/autofs/dev-ioctl.c static int test_by_dev(const struct path *path, void *p) path 211 fs/autofs/dev-ioctl.c return path->dentry->d_sb->s_dev == *(dev_t *)p; path 214 fs/autofs/dev-ioctl.c static int test_by_type(const struct path *path, void *p) path 216 fs/autofs/dev-ioctl.c struct autofs_info *ino = autofs_dentry_ino(path->dentry); path 232 fs/autofs/dev-ioctl.c struct path path; path 234 fs/autofs/dev-ioctl.c err = find_autofs_mount(name, &path, test_by_dev, &devid); path 238 fs/autofs/dev-ioctl.c filp = dentry_open(&path, O_RDONLY, current_cred()); path 239 fs/autofs/dev-ioctl.c path_put(&path); path 260 fs/autofs/dev-ioctl.c const char *path; path 271 fs/autofs/dev-ioctl.c path = param->path; path 275 fs/autofs/dev-ioctl.c fd = autofs_dev_ioctl_open_mountpoint(path, devid); path 423 fs/autofs/dev-ioctl.c struct path path; path 433 fs/autofs/dev-ioctl.c err = find_autofs_mount(param->path, &path, test_by_dev, &devid); path 437 fs/autofs/dev-ioctl.c ino = autofs_dentry_ino(path.dentry); path 440 fs/autofs/dev-ioctl.c autofs_expire_wait(&path, 0); path 448 fs/autofs/dev-ioctl.c path_put(&path); path 506 fs/autofs/dev-ioctl.c struct path path; path 514 fs/autofs/dev-ioctl.c name = param->path; path 523 fs/autofs/dev-ioctl.c name, &path, LOOKUP_FOLLOW); path 525 fs/autofs/dev-ioctl.c err = find_autofs_mount(name, &path, path 529 fs/autofs/dev-ioctl.c devid = new_encode_dev(path.dentry->d_sb->s_dev); path 531 fs/autofs/dev-ioctl.c if (path.mnt->mnt_root == path.dentry) { path 533 fs/autofs/dev-ioctl.c magic = path.dentry->d_sb->s_magic; path 538 fs/autofs/dev-ioctl.c err = find_autofs_mount(name, &path, test_by_dev, &dev); path 544 fs/autofs/dev-ioctl.c err = path_has_submounts(&path); path 546 fs/autofs/dev-ioctl.c if (follow_down_one(&path)) path 547 fs/autofs/dev-ioctl.c magic = path.dentry->d_sb->s_magic; path 552 fs/autofs/dev-ioctl.c path_put(&path); path 33 fs/autofs/expire.c struct path path = {.mnt = mnt, .dentry = dentry}; path 38 fs/autofs/expire.c path_get(&path); path 40 fs/autofs/expire.c if (!follow_down_one(&path)) path 43 fs/autofs/expire.c if (is_autofs_dentry(path.dentry)) { path 44 fs/autofs/expire.c struct autofs_sb_info *sbi = autofs_sbi(path.dentry->d_sb); path 58 fs/autofs/expire.c if (!may_umount_tree(path.mnt)) { path 69 fs/autofs/expire.c path_put(&path); path 489 fs/autofs/expire.c int autofs_expire_wait(const struct path *path, int rcu_walk) path 491 fs/autofs/expire.c struct dentry *dentry = path->dentry; path 520 fs/autofs/expire.c status = autofs_wait(sbi, path, NFY_NONE); path 588 fs/autofs/expire.c const struct path path = { .mnt = mnt, .dentry = dentry }; path 593 fs/autofs/expire.c ret = autofs_wait(sbi, &path, NFY_EXPIRE); path 25 fs/autofs/root.c static struct vfsmount *autofs_d_automount(struct path *); path 26 fs/autofs/root.c static int autofs_d_manage(const struct path *, bool); path 240 fs/autofs/root.c static int autofs_mount_wait(const struct path *path, bool rcu_walk) path 242 fs/autofs/root.c struct autofs_sb_info *sbi = autofs_sbi(path->dentry->d_sb); path 243 fs/autofs/root.c struct autofs_info *ino = autofs_dentry_ino(path->dentry); path 249 fs/autofs/root.c pr_debug("waiting for mount name=%pd\n", path->dentry); path 250 fs/autofs/root.c status = autofs_wait(sbi, path, NFY_MOUNT); path 260 fs/autofs/root.c static int do_expire_wait(const struct path *path, bool rcu_walk) path 262 fs/autofs/root.c struct dentry *dentry = path->dentry; path 269 fs/autofs/root.c return autofs_expire_wait(path, rcu_walk); path 271 fs/autofs/root.c const struct path this = { .mnt = path->mnt, .dentry = expiring }; path 284 fs/autofs/root.c static struct dentry *autofs_mountpoint_changed(struct path *path) path 286 fs/autofs/root.c struct dentry *dentry = path->dentry; path 303 fs/autofs/root.c dput(path->dentry); path 304 fs/autofs/root.c path->dentry = new; path 306 fs/autofs/root.c return path->dentry; path 309 fs/autofs/root.c static struct vfsmount *autofs_d_automount(struct path *path) path 311 fs/autofs/root.c struct dentry *dentry = path->dentry; path 330 fs/autofs/root.c status = do_expire_wait(path, 0); path 338 fs/autofs/root.c status = autofs_mount_wait(path, 0); path 354 fs/autofs/root.c if (!path_is_mountpoint(path)) { path 367 fs/autofs/root.c if (path_has_submounts(path)) { path 379 fs/autofs/root.c status = autofs_mount_wait(path, 0); path 390 fs/autofs/root.c dentry = autofs_mountpoint_changed(path); path 397 fs/autofs/root.c static int autofs_d_manage(const struct path *path, bool rcu_walk) path 399 fs/autofs/root.c struct dentry *dentry = path->dentry; path 408 fs/autofs/root.c if (!path_is_mountpoint(path)) path 414 fs/autofs/root.c if (do_expire_wait(path, rcu_walk) == -ECHILD) path 421 fs/autofs/root.c status = autofs_mount_wait(path, rcu_walk); path 437 fs/autofs/root.c if (path_is_mountpoint(path)) path 464 fs/autofs/root.c if ((!path_is_mountpoint(path) && !simple_empty(dentry)) || path 249 fs/autofs/waitq.c const struct path *path, enum autofs_notify notify) path 251 fs/autofs/waitq.c struct dentry *dentry = path->dentry; path 314 fs/autofs/waitq.c struct path this; path 334 fs/autofs/waitq.c this.mnt = path->mnt; path 348 fs/autofs/waitq.c const struct path *path, enum autofs_notify notify) path 350 fs/autofs/waitq.c struct dentry *dentry = path->dentry; path 409 fs/autofs/waitq.c ret = validate_request(&wq, sbi, &qstr, path, notify); path 93 fs/bad_inode.c static int bad_inode_getattr(const struct path *path, struct kstat *stat, path 1760 fs/block_dev.c struct block_device *blkdev_get_by_path(const char *path, fmode_t mode, path 1766 fs/block_dev.c bdev = lookup_bdev(path); path 2163 fs/block_dev.c struct path path; path 2169 fs/block_dev.c error = kern_path(pathname, LOOKUP_FOLLOW, &path); path 2173 fs/block_dev.c inode = d_backing_inode(path.dentry); path 2178 fs/block_dev.c if (!may_open_dev(&path)) path 2185 fs/block_dev.c path_put(&path); path 412 fs/btrfs/backref.c static int add_all_parents(struct btrfs_root *root, struct btrfs_path *path, path 429 fs/btrfs/backref.c eb = path->nodes[level]; path 441 fs/btrfs/backref.c if (path->slots[0] >= btrfs_header_nritems(path->nodes[0])) { path 443 fs/btrfs/backref.c ret = btrfs_next_leaf(root, path); path 445 fs/btrfs/backref.c ret = btrfs_next_old_leaf(root, path, time_seq); path 449 fs/btrfs/backref.c eb = path->nodes[0]; path 450 fs/btrfs/backref.c slot = path->slots[0]; path 487 fs/btrfs/backref.c ret = btrfs_next_item(root, path); path 489 fs/btrfs/backref.c ret = btrfs_next_old_item(root, path, time_seq); path 504 fs/btrfs/backref.c struct btrfs_path *path, u64 time_seq, path 536 fs/btrfs/backref.c if (path->search_commit_root) path 548 fs/btrfs/backref.c path->lowest_level = level; path 550 fs/btrfs/backref.c ret = btrfs_search_slot(NULL, root, &ref->key_for_search, path, path 553 fs/btrfs/backref.c ret = btrfs_search_old_slot(root, &ref->key_for_search, path, path 567 fs/btrfs/backref.c eb = path->nodes[level]; path 574 fs/btrfs/backref.c eb = path->nodes[level]; path 577 fs/btrfs/backref.c ret = add_all_parents(root, path, parents, ref, level, time_seq, path 580 fs/btrfs/backref.c path->lowest_level = 0; path 581 fs/btrfs/backref.c btrfs_release_path(path); path 610 fs/btrfs/backref.c struct btrfs_path *path, u64 time_seq, path 656 fs/btrfs/backref.c err = resolve_indirect_ref(fs_info, path, time_seq, ref, path 877 fs/btrfs/backref.c struct btrfs_path *path, u64 bytenr, path 895 fs/btrfs/backref.c leaf = path->nodes[0]; path 896 fs/btrfs/backref.c slot = path->slots[0]; path 999 fs/btrfs/backref.c struct btrfs_path *path, u64 bytenr, path 1010 fs/btrfs/backref.c ret = btrfs_next_item(extent_root, path); path 1018 fs/btrfs/backref.c slot = path->slots[0]; path 1019 fs/btrfs/backref.c leaf = path->nodes[0]; path 1120 fs/btrfs/backref.c struct btrfs_path *path; path 1143 fs/btrfs/backref.c path = btrfs_alloc_path(); path 1144 fs/btrfs/backref.c if (!path) path 1147 fs/btrfs/backref.c path->search_commit_root = 1; path 1148 fs/btrfs/backref.c path->skip_locking = 1; path 1152 fs/btrfs/backref.c path->skip_locking = 1; path 1162 fs/btrfs/backref.c ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 0); path 1185 fs/btrfs/backref.c btrfs_release_path(path); path 1207 fs/btrfs/backref.c if (path->slots[0]) { path 1211 fs/btrfs/backref.c path->slots[0]--; path 1212 fs/btrfs/backref.c leaf = path->nodes[0]; path 1213 fs/btrfs/backref.c slot = path->slots[0]; path 1218 fs/btrfs/backref.c ret = add_inline_refs(fs_info, path, bytenr, path 1223 fs/btrfs/backref.c ret = add_keyed_refs(fs_info, path, bytenr, info_level, path 1230 fs/btrfs/backref.c btrfs_release_path(path); path 1232 fs/btrfs/backref.c ret = add_missing_keys(fs_info, &preftrees, path->skip_locking == 0); path 1238 fs/btrfs/backref.c ret = resolve_indirect_refs(fs_info, path, time_seq, &preftrees, path 1294 fs/btrfs/backref.c if (!path->skip_locking) { path 1300 fs/btrfs/backref.c if (!path->skip_locking) path 1328 fs/btrfs/backref.c btrfs_free_path(path); path 1531 fs/btrfs/backref.c u64 start_off, struct btrfs_path *path, path 1546 fs/btrfs/backref.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 1551 fs/btrfs/backref.c leaf = path->nodes[0]; path 1552 fs/btrfs/backref.c slot = path->slots[0]; path 1563 fs/btrfs/backref.c ret = btrfs_next_leaf(root, path); path 1587 fs/btrfs/backref.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); path 1612 fs/btrfs/backref.c char *btrfs_ref_to_path(struct btrfs_root *fs_root, struct btrfs_path *path, path 1623 fs/btrfs/backref.c int leave_spinning = path->leave_spinning; path 1629 fs/btrfs/backref.c path->leave_spinning = 1; path 1636 fs/btrfs/backref.c if (!path->skip_locking) path 1640 fs/btrfs/backref.c ret = btrfs_find_item(fs_root, path, parent, 0, path 1653 fs/btrfs/backref.c slot = path->slots[0]; path 1654 fs/btrfs/backref.c eb = path->nodes[0]; path 1657 fs/btrfs/backref.c if (!path->skip_locking) path 1659 fs/btrfs/backref.c path->nodes[0] = NULL; path 1660 fs/btrfs/backref.c path->locks[0] = 0; path 1662 fs/btrfs/backref.c btrfs_release_path(path); path 1674 fs/btrfs/backref.c btrfs_release_path(path); path 1675 fs/btrfs/backref.c path->leave_spinning = leave_spinning; path 1689 fs/btrfs/backref.c struct btrfs_path *path, struct btrfs_key *found_key, path 1707 fs/btrfs/backref.c ret = btrfs_search_slot(NULL, fs_info->extent_root, &key, path, 0, 0); path 1711 fs/btrfs/backref.c ret = btrfs_previous_extent_item(fs_info->extent_root, path, 0); path 1717 fs/btrfs/backref.c btrfs_item_key_to_cpu(path->nodes[0], found_key, path->slots[0]); path 1730 fs/btrfs/backref.c eb = path->nodes[0]; path 1731 fs/btrfs/backref.c item_size = btrfs_item_size_nr(eb, path->slots[0]); path 1734 fs/btrfs/backref.c ei = btrfs_item_ptr(eb, path->slots[0], struct btrfs_extent_item); path 1970 fs/btrfs/backref.c struct btrfs_path *path, path 1978 fs/btrfs/backref.c int search_commit_root = path->search_commit_root; path 1980 fs/btrfs/backref.c ret = extent_from_logical(fs_info, logical, path, &found_key, &flags); path 1981 fs/btrfs/backref.c btrfs_release_path(path); path 1999 fs/btrfs/backref.c struct btrfs_path *path, path 2015 fs/btrfs/backref.c ret = btrfs_find_item(fs_root, path, inum, path 2028 fs/btrfs/backref.c slot = path->slots[0]; path 2029 fs/btrfs/backref.c eb = btrfs_clone_extent_buffer(path->nodes[0]); path 2034 fs/btrfs/backref.c btrfs_release_path(path); path 2056 fs/btrfs/backref.c btrfs_release_path(path); path 2062 fs/btrfs/backref.c struct btrfs_path *path, path 2077 fs/btrfs/backref.c ret = btrfs_find_one_extref(fs_root, inum, offset, path, &extref, path 2087 fs/btrfs/backref.c slot = path->slots[0]; path 2088 fs/btrfs/backref.c eb = btrfs_clone_extent_buffer(path->nodes[0]); path 2093 fs/btrfs/backref.c btrfs_release_path(path); path 2118 fs/btrfs/backref.c btrfs_release_path(path); path 2124 fs/btrfs/backref.c struct btrfs_path *path, iterate_irefs_t *iterate, path 2130 fs/btrfs/backref.c ret = iterate_inode_refs(inum, fs_root, path, iterate, ctx); path 2136 fs/btrfs/backref.c ret = iterate_inode_extrefs(inum, fs_root, path, iterate, ctx); path 2226 fs/btrfs/backref.c struct btrfs_path *path) path 2241 fs/btrfs/backref.c ifp->btrfs_path = path; path 23 fs/btrfs/backref.h struct btrfs_path *path, struct btrfs_key *found_key, path 37 fs/btrfs/backref.h struct btrfs_path *path, path 46 fs/btrfs/backref.h char *btrfs_ref_to_path(struct btrfs_root *fs_root, struct btrfs_path *path, path 53 fs/btrfs/backref.h struct btrfs_path *path); path 57 fs/btrfs/backref.h u64 start_off, struct btrfs_path *path, path 497 fs/btrfs/block-group.c struct btrfs_path *path; path 506 fs/btrfs/block-group.c path = btrfs_alloc_path(); path 507 fs/btrfs/block-group.c if (!path) path 527 fs/btrfs/block-group.c path->skip_locking = 1; path 528 fs/btrfs/block-group.c path->search_commit_root = 1; path 529 fs/btrfs/block-group.c path->reada = READA_FORWARD; path 536 fs/btrfs/block-group.c ret = btrfs_search_slot(NULL, extent_root, &key, path, 0, 0); path 540 fs/btrfs/block-group.c leaf = path->nodes[0]; path 549 fs/btrfs/block-group.c if (path->slots[0] < nritems) { path 550 fs/btrfs/block-group.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 552 fs/btrfs/block-group.c ret = btrfs_find_next_key(extent_root, path, &key, 0, 0); path 560 fs/btrfs/block-group.c btrfs_release_path(path); path 569 fs/btrfs/block-group.c ret = btrfs_next_leaf(extent_root, path); path 574 fs/btrfs/block-group.c leaf = path->nodes[0]; path 586 fs/btrfs/block-group.c btrfs_release_path(path); path 591 fs/btrfs/block-group.c path->slots[0]++; path 615 fs/btrfs/block-group.c path->slots[0]++; path 625 fs/btrfs/block-group.c btrfs_free_path(path); path 864 fs/btrfs/block-group.c struct btrfs_path *path; path 910 fs/btrfs/block-group.c path = btrfs_alloc_path(); path 911 fs/btrfs/block-group.c if (!path) { path 920 fs/btrfs/block-group.c inode = lookup_free_space_inode(block_group, path); path 934 fs/btrfs/block-group.c btrfs_wait_cache_io(trans, block_group, path); path 972 fs/btrfs/block-group.c ret = btrfs_search_slot(trans, tree_root, &key, path, -1, 1); path 976 fs/btrfs/block-group.c btrfs_release_path(path); path 978 fs/btrfs/block-group.c ret = btrfs_del_item(trans, tree_root, path); path 981 fs/btrfs/block-group.c btrfs_release_path(path); path 1102 fs/btrfs/block-group.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 1108 fs/btrfs/block-group.c ret = btrfs_del_item(trans, root, path); path 1129 fs/btrfs/block-group.c btrfs_free_path(path); path 1430 fs/btrfs/block-group.c struct btrfs_path *path, path 1441 fs/btrfs/block-group.c ret = btrfs_search_slot(NULL, root, key, path, 0, 0); path 1446 fs/btrfs/block-group.c slot = path->slots[0]; path 1447 fs/btrfs/block-group.c leaf = path->nodes[0]; path 1449 fs/btrfs/block-group.c ret = btrfs_next_leaf(root, path); path 1503 fs/btrfs/block-group.c path->slots[0]++; path 1695 fs/btrfs/block-group.c struct btrfs_path *path; path 1713 fs/btrfs/block-group.c path = btrfs_alloc_path(); path 1714 fs/btrfs/block-group.c if (!path) path 1716 fs/btrfs/block-group.c path->reada = READA_FORWARD; path 1726 fs/btrfs/block-group.c ret = find_first_block_group(info, path, &key); path 1732 fs/btrfs/block-group.c leaf = path->nodes[0]; path 1733 fs/btrfs/block-group.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); path 1758 fs/btrfs/block-group.c btrfs_item_ptr_offset(leaf, path->slots[0]), path 1773 fs/btrfs/block-group.c btrfs_release_path(path); path 1862 fs/btrfs/block-group.c btrfs_free_path(path); path 2121 fs/btrfs/block-group.c struct btrfs_path *path, path 2130 fs/btrfs/block-group.c ret = btrfs_search_slot(trans, extent_root, &cache->key, path, 0, 1); path 2137 fs/btrfs/block-group.c leaf = path->nodes[0]; path 2138 fs/btrfs/block-group.c bi = btrfs_item_ptr_offset(leaf, path->slots[0]); path 2142 fs/btrfs/block-group.c btrfs_release_path(path); path 2149 fs/btrfs/block-group.c struct btrfs_path *path) path 2175 fs/btrfs/block-group.c inode = lookup_free_space_inode(block_group, path); path 2178 fs/btrfs/block-group.c btrfs_release_path(path); path 2189 fs/btrfs/block-group.c ret = create_free_space_inode(trans, block_group, path); path 2296 fs/btrfs/block-group.c btrfs_release_path(path); path 2313 fs/btrfs/block-group.c struct btrfs_path *path; path 2319 fs/btrfs/block-group.c path = btrfs_alloc_path(); path 2320 fs/btrfs/block-group.c if (!path) path 2327 fs/btrfs/block-group.c cache_save_setup(cache, trans, path); path 2330 fs/btrfs/block-group.c btrfs_free_path(path); path 2353 fs/btrfs/block-group.c struct btrfs_path *path = NULL; path 2371 fs/btrfs/block-group.c if (!path) { path 2372 fs/btrfs/block-group.c path = btrfs_alloc_path(); path 2373 fs/btrfs/block-group.c if (!path) path 2396 fs/btrfs/block-group.c btrfs_wait_cache_io(trans, cache, path); path 2415 fs/btrfs/block-group.c cache_save_setup(cache, trans, path); path 2419 fs/btrfs/block-group.c ret = btrfs_write_out_cache(trans, cache, path); path 2439 fs/btrfs/block-group.c ret = write_one_cache_group(trans, path, cache); path 2505 fs/btrfs/block-group.c btrfs_free_path(path); path 2516 fs/btrfs/block-group.c struct btrfs_path *path; path 2520 fs/btrfs/block-group.c path = btrfs_alloc_path(); path 2521 fs/btrfs/block-group.c if (!path) path 2553 fs/btrfs/block-group.c btrfs_wait_cache_io(trans, cache, path); path 2566 fs/btrfs/block-group.c cache_save_setup(cache, trans, path); path 2574 fs/btrfs/block-group.c ret = btrfs_write_out_cache(trans, cache, path); path 2588 fs/btrfs/block-group.c ret = write_one_cache_group(trans, path, cache); path 2605 fs/btrfs/block-group.c ret = write_one_cache_group(trans, path, cache); path 2627 fs/btrfs/block-group.c btrfs_wait_cache_io(trans, cache, path); path 2631 fs/btrfs/block-group.c btrfs_free_path(path); path 19 fs/btrfs/ctree.c *root, struct btrfs_path *path, int level); path 21 fs/btrfs/ctree.c const struct btrfs_key *ins_key, struct btrfs_path *path, path 29 fs/btrfs/ctree.c static void del_ptr(struct btrfs_root *root, struct btrfs_path *path, path 1298 fs/btrfs/ctree.c tree_mod_log_rewind(struct btrfs_fs_info *fs_info, struct btrfs_path *path, path 1314 fs/btrfs/ctree.c btrfs_set_path_blocking(path); path 1844 fs/btrfs/ctree.c struct btrfs_path *path, int level) path 1854 fs/btrfs/ctree.c int orig_slot = path->slots[level]; path 1859 fs/btrfs/ctree.c mid = path->nodes[level]; path 1861 fs/btrfs/ctree.c WARN_ON(path->locks[level] != BTRFS_WRITE_LOCK && path 1862 fs/btrfs/ctree.c path->locks[level] != BTRFS_WRITE_LOCK_BLOCKING); path 1868 fs/btrfs/ctree.c parent = path->nodes[level + 1]; path 1869 fs/btrfs/ctree.c pslot = path->slots[level + 1]; path 1906 fs/btrfs/ctree.c path->locks[level] = 0; path 1907 fs/btrfs/ctree.c path->nodes[level] = NULL; path 1971 fs/btrfs/ctree.c del_ptr(root, path, level + 1, pslot + 1); path 2016 fs/btrfs/ctree.c del_ptr(root, path, level + 1, pslot); path 2037 fs/btrfs/ctree.c path->nodes[level] = left; path 2038 fs/btrfs/ctree.c path->slots[level + 1] -= 1; path 2039 fs/btrfs/ctree.c path->slots[level] = orig_slot; path 2046 fs/btrfs/ctree.c path->slots[level] = orig_slot; path 2051 fs/btrfs/ctree.c btrfs_node_blockptr(path->nodes[level], path->slots[level])) path 2059 fs/btrfs/ctree.c if (path->nodes[level] != left) path 2072 fs/btrfs/ctree.c struct btrfs_path *path, int level) path 2082 fs/btrfs/ctree.c int orig_slot = path->slots[level]; path 2087 fs/btrfs/ctree.c mid = path->nodes[level]; path 2091 fs/btrfs/ctree.c parent = path->nodes[level + 1]; path 2092 fs/btrfs/ctree.c pslot = path->slots[level + 1]; path 2133 fs/btrfs/ctree.c path->nodes[level] = left; path 2134 fs/btrfs/ctree.c path->slots[level + 1] -= 1; path 2135 fs/btrfs/ctree.c path->slots[level] = orig_slot; path 2141 fs/btrfs/ctree.c path->slots[level] = orig_slot; path 2189 fs/btrfs/ctree.c path->nodes[level] = right; path 2190 fs/btrfs/ctree.c path->slots[level + 1] += 1; path 2191 fs/btrfs/ctree.c path->slots[level] = orig_slot - path 2212 fs/btrfs/ctree.c struct btrfs_path *path, path 2229 fs/btrfs/ctree.c if (!path->nodes[level]) path 2232 fs/btrfs/ctree.c node = path->nodes[level]; path 2248 fs/btrfs/ctree.c if (path->reada == READA_BACK) { path 2252 fs/btrfs/ctree.c } else if (path->reada == READA_FORWARD) { path 2257 fs/btrfs/ctree.c if (path->reada == READA_BACK && objectid) { path 2275 fs/btrfs/ctree.c struct btrfs_path *path, int level) path 2285 fs/btrfs/ctree.c parent = path->nodes[level + 1]; path 2290 fs/btrfs/ctree.c slot = path->slots[level + 1]; path 2334 fs/btrfs/ctree.c static noinline void unlock_up(struct btrfs_path *path, int level, path 2344 fs/btrfs/ctree.c if (!path->nodes[i]) path 2346 fs/btrfs/ctree.c if (!path->locks[i]) path 2348 fs/btrfs/ctree.c if (!no_skips && path->slots[i] == 0) { path 2352 fs/btrfs/ctree.c if (!no_skips && path->keep_locks) { path 2354 fs/btrfs/ctree.c t = path->nodes[i]; path 2356 fs/btrfs/ctree.c if (nritems < 1 || path->slots[i] >= nritems - 1) { path 2364 fs/btrfs/ctree.c t = path->nodes[i]; path 2366 fs/btrfs/ctree.c btrfs_tree_unlock_rw(t, path->locks[i]); path 2367 fs/btrfs/ctree.c path->locks[i] = 0; path 2386 fs/btrfs/ctree.c noinline void btrfs_unlock_up_safe(struct btrfs_path *path, int level) path 2390 fs/btrfs/ctree.c if (path->keep_locks) path 2394 fs/btrfs/ctree.c if (!path->nodes[i]) path 2396 fs/btrfs/ctree.c if (!path->locks[i]) path 2398 fs/btrfs/ctree.c btrfs_tree_unlock_rw(path->nodes[i], path->locks[i]); path 2399 fs/btrfs/ctree.c path->locks[i] = 0; path 2585 fs/btrfs/ctree.c int btrfs_find_item(struct btrfs_root *fs_root, struct btrfs_path *path, path 2593 fs/btrfs/ctree.c ASSERT(path); path 2600 fs/btrfs/ctree.c ret = btrfs_search_slot(NULL, fs_root, &key, path, 0, 0); path 2604 fs/btrfs/ctree.c eb = path->nodes[0]; path 2605 fs/btrfs/ctree.c if (ret && path->slots[0] >= btrfs_header_nritems(eb)) { path 2606 fs/btrfs/ctree.c ret = btrfs_next_leaf(fs_root, path); path 2609 fs/btrfs/ctree.c eb = path->nodes[0]; path 2612 fs/btrfs/ctree.c btrfs_item_key_to_cpu(eb, found_key, path->slots[0]); path 3164 fs/btrfs/ctree.c static void fixup_low_keys(struct btrfs_path *path, path 3172 fs/btrfs/ctree.c int tslot = path->slots[i]; path 3174 fs/btrfs/ctree.c if (!path->nodes[i]) path 3176 fs/btrfs/ctree.c t = path->nodes[i]; path 3181 fs/btrfs/ctree.c btrfs_mark_buffer_dirty(path->nodes[i]); path 3194 fs/btrfs/ctree.c struct btrfs_path *path, path 3201 fs/btrfs/ctree.c eb = path->nodes[0]; path 3202 fs/btrfs/ctree.c slot = path->slots[0]; path 3236 fs/btrfs/ctree.c fixup_low_keys(path, &disk_key, 1); path 3387 fs/btrfs/ctree.c struct btrfs_path *path, int level) path 3397 fs/btrfs/ctree.c BUG_ON(path->nodes[level]); path 3398 fs/btrfs/ctree.c BUG_ON(path->nodes[level-1] != root->node); path 3400 fs/btrfs/ctree.c lower = path->nodes[level-1]; path 3433 fs/btrfs/ctree.c path->nodes[level] = c; path 3434 fs/btrfs/ctree.c path->locks[level] = BTRFS_WRITE_LOCK_BLOCKING; path 3435 fs/btrfs/ctree.c path->slots[level] = 0; path 3447 fs/btrfs/ctree.c struct btrfs_path *path, path 3455 fs/btrfs/ctree.c BUG_ON(!path->nodes[level]); path 3456 fs/btrfs/ctree.c btrfs_assert_tree_locked(path->nodes[level]); path 3457 fs/btrfs/ctree.c lower = path->nodes[level]; path 3496 fs/btrfs/ctree.c struct btrfs_path *path, int level) path 3506 fs/btrfs/ctree.c c = path->nodes[level]; path 3519 fs/btrfs/ctree.c ret = insert_new_root(trans, root, path, level + 1); path 3523 fs/btrfs/ctree.c ret = push_nodes_for_insert(trans, root, path, level); path 3524 fs/btrfs/ctree.c c = path->nodes[level]; path 3560 fs/btrfs/ctree.c insert_ptr(trans, path, &disk_key, split->start, path 3561 fs/btrfs/ctree.c path->slots[level + 1] + 1, level + 1); path 3563 fs/btrfs/ctree.c if (path->slots[level] >= mid) { path 3564 fs/btrfs/ctree.c path->slots[level] -= mid; path 3567 fs/btrfs/ctree.c path->nodes[level] = split; path 3568 fs/btrfs/ctree.c path->slots[level + 1] += 1; path 3629 fs/btrfs/ctree.c static noinline int __push_leaf_right(struct btrfs_path *path, path 3636 fs/btrfs/ctree.c struct extent_buffer *left = path->nodes[0]; path 3637 fs/btrfs/ctree.c struct extent_buffer *upper = path->nodes[1]; path 3655 fs/btrfs/ctree.c if (path->slots[0] >= left_nritems) path 3658 fs/btrfs/ctree.c slot = path->slots[1]; path 3664 fs/btrfs/ctree.c if (path->slots[0] > i) path 3666 fs/btrfs/ctree.c if (path->slots[0] == i) { path 3674 fs/btrfs/ctree.c if (path->slots[0] == i) path 3747 fs/btrfs/ctree.c if (path->slots[0] >= left_nritems) { path 3748 fs/btrfs/ctree.c path->slots[0] -= left_nritems; path 3749 fs/btrfs/ctree.c if (btrfs_header_nritems(path->nodes[0]) == 0) path 3750 fs/btrfs/ctree.c btrfs_clean_tree_block(path->nodes[0]); path 3751 fs/btrfs/ctree.c btrfs_tree_unlock(path->nodes[0]); path 3752 fs/btrfs/ctree.c free_extent_buffer(path->nodes[0]); path 3753 fs/btrfs/ctree.c path->nodes[0] = right; path 3754 fs/btrfs/ctree.c path->slots[1] += 1; path 3778 fs/btrfs/ctree.c *root, struct btrfs_path *path, path 3782 fs/btrfs/ctree.c struct extent_buffer *left = path->nodes[0]; path 3790 fs/btrfs/ctree.c if (!path->nodes[1]) path 3793 fs/btrfs/ctree.c slot = path->slots[1]; path 3794 fs/btrfs/ctree.c upper = path->nodes[1]; path 3798 fs/btrfs/ctree.c btrfs_assert_tree_locked(path->nodes[1]); path 3829 fs/btrfs/ctree.c if (path->slots[0] == left_nritems && !empty) { path 3836 fs/btrfs/ctree.c path->nodes[0] = right; path 3837 fs/btrfs/ctree.c path->slots[0] = 0; path 3838 fs/btrfs/ctree.c path->slots[1]++; path 3842 fs/btrfs/ctree.c return __push_leaf_right(path, min_data_size, empty, path 3858 fs/btrfs/ctree.c static noinline int __push_leaf_left(struct btrfs_path *path, int data_size, path 3865 fs/btrfs/ctree.c struct extent_buffer *right = path->nodes[0]; path 3886 fs/btrfs/ctree.c if (path->slots[0] < i) path 3888 fs/btrfs/ctree.c if (path->slots[0] == i) { path 3896 fs/btrfs/ctree.c if (path->slots[0] == i) path 3982 fs/btrfs/ctree.c fixup_low_keys(path, &disk_key, 1); path 3985 fs/btrfs/ctree.c if (path->slots[0] < push_items) { path 3986 fs/btrfs/ctree.c path->slots[0] += old_left_nritems; path 3987 fs/btrfs/ctree.c btrfs_tree_unlock(path->nodes[0]); path 3988 fs/btrfs/ctree.c free_extent_buffer(path->nodes[0]); path 3989 fs/btrfs/ctree.c path->nodes[0] = left; path 3990 fs/btrfs/ctree.c path->slots[1] -= 1; path 3994 fs/btrfs/ctree.c path->slots[0] -= push_items; path 3996 fs/btrfs/ctree.c BUG_ON(path->slots[0] < 0); path 4013 fs/btrfs/ctree.c *root, struct btrfs_path *path, int min_data_size, path 4016 fs/btrfs/ctree.c struct extent_buffer *right = path->nodes[0]; path 4023 fs/btrfs/ctree.c slot = path->slots[1]; path 4026 fs/btrfs/ctree.c if (!path->nodes[1]) path 4033 fs/btrfs/ctree.c btrfs_assert_tree_locked(path->nodes[1]); path 4035 fs/btrfs/ctree.c left = btrfs_read_node_slot(path->nodes[1], slot - 1); path 4054 fs/btrfs/ctree.c path->nodes[1], slot - 1, &left); path 4068 fs/btrfs/ctree.c return __push_leaf_left(path, min_data_size, path 4082 fs/btrfs/ctree.c struct btrfs_path *path, path 4121 fs/btrfs/ctree.c insert_ptr(trans, path, &disk_key, right->start, path->slots[1] + 1, 1); path 4125 fs/btrfs/ctree.c BUG_ON(path->slots[0] != slot); path 4128 fs/btrfs/ctree.c btrfs_tree_unlock(path->nodes[0]); path 4129 fs/btrfs/ctree.c free_extent_buffer(path->nodes[0]); path 4130 fs/btrfs/ctree.c path->nodes[0] = right; path 4131 fs/btrfs/ctree.c path->slots[0] -= mid; path 4132 fs/btrfs/ctree.c path->slots[1] += 1; path 4138 fs/btrfs/ctree.c BUG_ON(path->slots[0] < 0); path 4153 fs/btrfs/ctree.c struct btrfs_path *path, path 4162 fs/btrfs/ctree.c slot = path->slots[0]; path 4163 fs/btrfs/ctree.c if (slot < btrfs_header_nritems(path->nodes[0])) path 4164 fs/btrfs/ctree.c space_needed -= btrfs_leaf_free_space(path->nodes[0]); path 4170 fs/btrfs/ctree.c ret = push_leaf_right(trans, root, path, 1, space_needed, 0, slot); path 4177 fs/btrfs/ctree.c nritems = btrfs_header_nritems(path->nodes[0]); path 4182 fs/btrfs/ctree.c if (path->slots[0] == 0 || path->slots[0] == nritems) path 4185 fs/btrfs/ctree.c if (btrfs_leaf_free_space(path->nodes[0]) >= data_size) path 4189 fs/btrfs/ctree.c slot = path->slots[0]; path 4192 fs/btrfs/ctree.c space_needed -= btrfs_leaf_free_space(path->nodes[0]); path 4193 fs/btrfs/ctree.c ret = push_leaf_left(trans, root, path, 1, space_needed, 0, slot); path 4214 fs/btrfs/ctree.c struct btrfs_path *path, int data_size, path 4230 fs/btrfs/ctree.c l = path->nodes[0]; path 4231 fs/btrfs/ctree.c slot = path->slots[0]; path 4237 fs/btrfs/ctree.c if (data_size && path->nodes[1]) { path 4243 fs/btrfs/ctree.c wret = push_leaf_right(trans, root, path, space_needed, path 4251 fs/btrfs/ctree.c wret = push_leaf_left(trans, root, path, space_needed, path 4256 fs/btrfs/ctree.c l = path->nodes[0]; path 4263 fs/btrfs/ctree.c if (!path->nodes[1]) { path 4264 fs/btrfs/ctree.c ret = insert_new_root(trans, root, path, 1); path 4270 fs/btrfs/ctree.c l = path->nodes[0]; path 4271 fs/btrfs/ctree.c slot = path->slots[0]; path 4327 fs/btrfs/ctree.c insert_ptr(trans, path, &disk_key, path 4328 fs/btrfs/ctree.c right->start, path->slots[1] + 1, 1); path 4329 fs/btrfs/ctree.c btrfs_tree_unlock(path->nodes[0]); path 4330 fs/btrfs/ctree.c free_extent_buffer(path->nodes[0]); path 4331 fs/btrfs/ctree.c path->nodes[0] = right; path 4332 fs/btrfs/ctree.c path->slots[0] = 0; path 4333 fs/btrfs/ctree.c path->slots[1] += 1; path 4336 fs/btrfs/ctree.c insert_ptr(trans, path, &disk_key, path 4337 fs/btrfs/ctree.c right->start, path->slots[1], 1); path 4338 fs/btrfs/ctree.c btrfs_tree_unlock(path->nodes[0]); path 4339 fs/btrfs/ctree.c free_extent_buffer(path->nodes[0]); path 4340 fs/btrfs/ctree.c path->nodes[0] = right; path 4341 fs/btrfs/ctree.c path->slots[0] = 0; path 4342 fs/btrfs/ctree.c if (path->slots[1] == 0) path 4343 fs/btrfs/ctree.c fixup_low_keys(path, &disk_key, 1); path 4353 fs/btrfs/ctree.c copy_for_split(trans, path, l, right, slot, mid, nritems); path 4364 fs/btrfs/ctree.c push_for_double_split(trans, root, path, data_size); path 4366 fs/btrfs/ctree.c if (btrfs_leaf_free_space(path->nodes[0]) >= data_size) path 4373 fs/btrfs/ctree.c struct btrfs_path *path, int ins_len) path 4382 fs/btrfs/ctree.c leaf = path->nodes[0]; path 4383 fs/btrfs/ctree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 4391 fs/btrfs/ctree.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); path 4393 fs/btrfs/ctree.c fi = btrfs_item_ptr(leaf, path->slots[0], path 4397 fs/btrfs/ctree.c btrfs_release_path(path); path 4399 fs/btrfs/ctree.c path->keep_locks = 1; path 4400 fs/btrfs/ctree.c path->search_for_split = 1; path 4401 fs/btrfs/ctree.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); path 4402 fs/btrfs/ctree.c path->search_for_split = 0; path 4409 fs/btrfs/ctree.c leaf = path->nodes[0]; path 4411 fs/btrfs/ctree.c if (item_size != btrfs_item_size_nr(leaf, path->slots[0])) path 4415 fs/btrfs/ctree.c if (btrfs_leaf_free_space(path->nodes[0]) >= ins_len) path 4419 fs/btrfs/ctree.c fi = btrfs_item_ptr(leaf, path->slots[0], path 4425 fs/btrfs/ctree.c btrfs_set_path_blocking(path); path 4426 fs/btrfs/ctree.c ret = split_leaf(trans, root, &key, path, ins_len, 1); path 4430 fs/btrfs/ctree.c path->keep_locks = 0; path 4431 fs/btrfs/ctree.c btrfs_unlock_up_safe(path, 1); path 4434 fs/btrfs/ctree.c path->keep_locks = 0; path 4438 fs/btrfs/ctree.c static noinline int split_item(struct btrfs_path *path, path 4452 fs/btrfs/ctree.c leaf = path->nodes[0]; path 4455 fs/btrfs/ctree.c btrfs_set_path_blocking(path); path 4457 fs/btrfs/ctree.c item = btrfs_item_nr(path->slots[0]); path 4466 fs/btrfs/ctree.c path->slots[0]), item_size); path 4468 fs/btrfs/ctree.c slot = path->slots[0] + 1; path 4493 fs/btrfs/ctree.c btrfs_item_ptr_offset(leaf, path->slots[0]), path 4524 fs/btrfs/ctree.c struct btrfs_path *path, path 4529 fs/btrfs/ctree.c ret = setup_leaf_for_split(trans, root, path, path 4534 fs/btrfs/ctree.c ret = split_item(path, new_key, split_offset); path 4548 fs/btrfs/ctree.c struct btrfs_path *path, path 4555 fs/btrfs/ctree.c leaf = path->nodes[0]; path 4556 fs/btrfs/ctree.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); path 4557 fs/btrfs/ctree.c ret = setup_leaf_for_split(trans, root, path, path 4562 fs/btrfs/ctree.c path->slots[0]++; path 4563 fs/btrfs/ctree.c setup_items_for_insert(root, path, new_key, &item_size, path 4566 fs/btrfs/ctree.c leaf = path->nodes[0]; path 4568 fs/btrfs/ctree.c btrfs_item_ptr_offset(leaf, path->slots[0]), path 4569 fs/btrfs/ctree.c btrfs_item_ptr_offset(leaf, path->slots[0] - 1), path 4580 fs/btrfs/ctree.c void btrfs_truncate_item(struct btrfs_path *path, u32 new_size, int from_end) path 4593 fs/btrfs/ctree.c leaf = path->nodes[0]; path 4594 fs/btrfs/ctree.c slot = path->slots[0]; path 4661 fs/btrfs/ctree.c fixup_low_keys(path, &disk_key, 1); path 4677 fs/btrfs/ctree.c void btrfs_extend_item(struct btrfs_path *path, u32 data_size) path 4689 fs/btrfs/ctree.c leaf = path->nodes[0]; path 4698 fs/btrfs/ctree.c slot = path->slots[0]; path 4745 fs/btrfs/ctree.c void setup_items_for_insert(struct btrfs_root *root, struct btrfs_path *path, path 4759 fs/btrfs/ctree.c if (path->slots[0] == 0) { path 4761 fs/btrfs/ctree.c fixup_low_keys(path, &disk_key, 1); path 4763 fs/btrfs/ctree.c btrfs_unlock_up_safe(path, 1); path 4765 fs/btrfs/ctree.c leaf = path->nodes[0]; path 4766 fs/btrfs/ctree.c slot = path->slots[0]; path 4838 fs/btrfs/ctree.c struct btrfs_path *path, path 4852 fs/btrfs/ctree.c ret = btrfs_search_slot(trans, root, cpu_key, path, total_size, 1); path 4858 fs/btrfs/ctree.c slot = path->slots[0]; path 4861 fs/btrfs/ctree.c setup_items_for_insert(root, path, cpu_key, data_size, path 4875 fs/btrfs/ctree.c struct btrfs_path *path; path 4879 fs/btrfs/ctree.c path = btrfs_alloc_path(); path 4880 fs/btrfs/ctree.c if (!path) path 4882 fs/btrfs/ctree.c ret = btrfs_insert_empty_item(trans, root, path, cpu_key, data_size); path 4884 fs/btrfs/ctree.c leaf = path->nodes[0]; path 4885 fs/btrfs/ctree.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); path 4889 fs/btrfs/ctree.c btrfs_free_path(path); path 4899 fs/btrfs/ctree.c static void del_ptr(struct btrfs_root *root, struct btrfs_path *path, path 4902 fs/btrfs/ctree.c struct extent_buffer *parent = path->nodes[level]; path 4934 fs/btrfs/ctree.c fixup_low_keys(path, &disk_key, level + 1); path 4951 fs/btrfs/ctree.c struct btrfs_path *path, path 4955 fs/btrfs/ctree.c del_ptr(root, path, 1, path->slots[1]); path 4961 fs/btrfs/ctree.c btrfs_unlock_up_safe(path, 0); path 4974 fs/btrfs/ctree.c struct btrfs_path *path, int slot, int nr) path 4986 fs/btrfs/ctree.c leaf = path->nodes[0]; path 5026 fs/btrfs/ctree.c btrfs_set_path_blocking(path); path 5028 fs/btrfs/ctree.c btrfs_del_leaf(trans, root, path, leaf); path 5036 fs/btrfs/ctree.c fixup_low_keys(path, &disk_key, 1); path 5045 fs/btrfs/ctree.c slot = path->slots[1]; path 5048 fs/btrfs/ctree.c btrfs_set_path_blocking(path); path 5049 fs/btrfs/ctree.c wret = push_leaf_left(trans, root, path, 1, 1, path 5054 fs/btrfs/ctree.c if (path->nodes[0] == leaf && path 5056 fs/btrfs/ctree.c wret = push_leaf_right(trans, root, path, 1, path 5063 fs/btrfs/ctree.c path->slots[1] = slot; path 5064 fs/btrfs/ctree.c btrfs_del_leaf(trans, root, path, leaf); path 5073 fs/btrfs/ctree.c if (path->nodes[0] == leaf) path 5092 fs/btrfs/ctree.c int btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path) path 5098 fs/btrfs/ctree.c btrfs_item_key_to_cpu(path->nodes[0], &key, 0); path 5113 fs/btrfs/ctree.c btrfs_release_path(path); path 5114 fs/btrfs/ctree.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 5117 fs/btrfs/ctree.c btrfs_item_key(path->nodes[0], &found_key, 0); path 5154 fs/btrfs/ctree.c struct btrfs_path *path, path 5164 fs/btrfs/ctree.c int keep_locks = path->keep_locks; path 5166 fs/btrfs/ctree.c path->keep_locks = 1; path 5170 fs/btrfs/ctree.c WARN_ON(path->nodes[level]); path 5171 fs/btrfs/ctree.c path->nodes[level] = cur; path 5172 fs/btrfs/ctree.c path->locks[level] = BTRFS_READ_LOCK; path 5188 fs/btrfs/ctree.c if (level == path->lowest_level) { path 5192 fs/btrfs/ctree.c path->slots[level] = slot; path 5218 fs/btrfs/ctree.c path->slots[level] = slot; path 5219 fs/btrfs/ctree.c btrfs_set_path_blocking(path); path 5220 fs/btrfs/ctree.c sret = btrfs_find_next_key(root, path, min_key, level, path 5223 fs/btrfs/ctree.c btrfs_release_path(path); path 5231 fs/btrfs/ctree.c path->slots[level] = slot; path 5232 fs/btrfs/ctree.c if (level == path->lowest_level) { path 5236 fs/btrfs/ctree.c btrfs_set_path_blocking(path); path 5245 fs/btrfs/ctree.c path->locks[level - 1] = BTRFS_READ_LOCK; path 5246 fs/btrfs/ctree.c path->nodes[level - 1] = cur; path 5247 fs/btrfs/ctree.c unlock_up(path, level, 1, 0, NULL); path 5250 fs/btrfs/ctree.c path->keep_locks = keep_locks; path 5252 fs/btrfs/ctree.c btrfs_unlock_up_safe(path, path->lowest_level + 1); path 5253 fs/btrfs/ctree.c btrfs_set_path_blocking(path); path 5270 fs/btrfs/ctree.c int btrfs_find_next_key(struct btrfs_root *root, struct btrfs_path *path, path 5276 fs/btrfs/ctree.c WARN_ON(!path->keep_locks && !path->skip_locking); path 5278 fs/btrfs/ctree.c if (!path->nodes[level]) path 5281 fs/btrfs/ctree.c slot = path->slots[level] + 1; path 5282 fs/btrfs/ctree.c c = path->nodes[level]; path 5289 fs/btrfs/ctree.c !path->nodes[level + 1]) path 5292 fs/btrfs/ctree.c if (path->locks[level + 1] || path->skip_locking) { path 5303 fs/btrfs/ctree.c orig_lowest = path->lowest_level; path 5304 fs/btrfs/ctree.c btrfs_release_path(path); path 5305 fs/btrfs/ctree.c path->lowest_level = level; path 5306 fs/btrfs/ctree.c ret = btrfs_search_slot(NULL, root, &cur_key, path, path 5308 fs/btrfs/ctree.c path->lowest_level = orig_lowest; path 5312 fs/btrfs/ctree.c c = path->nodes[level]; path 5313 fs/btrfs/ctree.c slot = path->slots[level]; path 5340 fs/btrfs/ctree.c int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path) path 5342 fs/btrfs/ctree.c return btrfs_next_old_leaf(root, path, 0); path 5345 fs/btrfs/ctree.c int btrfs_next_old_leaf(struct btrfs_root *root, struct btrfs_path *path, path 5355 fs/btrfs/ctree.c int old_spinning = path->leave_spinning; path 5358 fs/btrfs/ctree.c nritems = btrfs_header_nritems(path->nodes[0]); path 5362 fs/btrfs/ctree.c btrfs_item_key_to_cpu(path->nodes[0], &key, nritems - 1); path 5367 fs/btrfs/ctree.c btrfs_release_path(path); path 5369 fs/btrfs/ctree.c path->keep_locks = 1; path 5370 fs/btrfs/ctree.c path->leave_spinning = 1; path 5373 fs/btrfs/ctree.c ret = btrfs_search_old_slot(root, &key, path, time_seq); path 5375 fs/btrfs/ctree.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 5376 fs/btrfs/ctree.c path->keep_locks = 0; path 5381 fs/btrfs/ctree.c nritems = btrfs_header_nritems(path->nodes[0]); path 5388 fs/btrfs/ctree.c if (nritems > 0 && path->slots[0] < nritems - 1) { path 5390 fs/btrfs/ctree.c path->slots[0]++; path 5408 fs/btrfs/ctree.c if (nritems > 0 && ret > 0 && path->slots[0] == nritems - 1) { path 5414 fs/btrfs/ctree.c if (!path->nodes[level]) { path 5419 fs/btrfs/ctree.c slot = path->slots[level] + 1; path 5420 fs/btrfs/ctree.c c = path->nodes[level]; path 5436 fs/btrfs/ctree.c next_rw_lock = path->locks[level]; path 5437 fs/btrfs/ctree.c ret = read_block_for_search(root, path, &next, level, path 5443 fs/btrfs/ctree.c btrfs_release_path(path); path 5447 fs/btrfs/ctree.c if (!path->skip_locking) { path 5458 fs/btrfs/ctree.c btrfs_release_path(path); path 5463 fs/btrfs/ctree.c btrfs_set_path_blocking(path); path 5470 fs/btrfs/ctree.c path->slots[level] = slot; path 5473 fs/btrfs/ctree.c c = path->nodes[level]; path 5474 fs/btrfs/ctree.c if (path->locks[level]) path 5475 fs/btrfs/ctree.c btrfs_tree_unlock_rw(c, path->locks[level]); path 5478 fs/btrfs/ctree.c path->nodes[level] = next; path 5479 fs/btrfs/ctree.c path->slots[level] = 0; path 5480 fs/btrfs/ctree.c if (!path->skip_locking) path 5481 fs/btrfs/ctree.c path->locks[level] = next_rw_lock; path 5485 fs/btrfs/ctree.c ret = read_block_for_search(root, path, &next, level, path 5491 fs/btrfs/ctree.c btrfs_release_path(path); path 5495 fs/btrfs/ctree.c if (!path->skip_locking) { path 5498 fs/btrfs/ctree.c btrfs_set_path_blocking(path); path 5506 fs/btrfs/ctree.c unlock_up(path, 0, 1, 0, NULL); path 5507 fs/btrfs/ctree.c path->leave_spinning = old_spinning; path 5509 fs/btrfs/ctree.c btrfs_set_path_blocking(path); path 5521 fs/btrfs/ctree.c struct btrfs_path *path, u64 min_objectid, path 5530 fs/btrfs/ctree.c if (path->slots[0] == 0) { path 5531 fs/btrfs/ctree.c btrfs_set_path_blocking(path); path 5532 fs/btrfs/ctree.c ret = btrfs_prev_leaf(root, path); path 5536 fs/btrfs/ctree.c path->slots[0]--; path 5538 fs/btrfs/ctree.c leaf = path->nodes[0]; path 5542 fs/btrfs/ctree.c if (path->slots[0] == nritems) path 5543 fs/btrfs/ctree.c path->slots[0]--; path 5545 fs/btrfs/ctree.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); path 5564 fs/btrfs/ctree.c struct btrfs_path *path, u64 min_objectid) path 5572 fs/btrfs/ctree.c if (path->slots[0] == 0) { path 5573 fs/btrfs/ctree.c btrfs_set_path_blocking(path); path 5574 fs/btrfs/ctree.c ret = btrfs_prev_leaf(root, path); path 5578 fs/btrfs/ctree.c path->slots[0]--; path 5580 fs/btrfs/ctree.c leaf = path->nodes[0]; path 5584 fs/btrfs/ctree.c if (path->slots[0] == nritems) path 5585 fs/btrfs/ctree.c path->slots[0]--; path 5587 fs/btrfs/ctree.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); path 2510 fs/btrfs/ctree.h struct btrfs_path *path, u64 min_objectid, path 2513 fs/btrfs/ctree.h struct btrfs_path *path, u64 min_objectid); path 2515 fs/btrfs/ctree.h struct btrfs_path *path, path 2520 fs/btrfs/ctree.h int btrfs_find_next_key(struct btrfs_root *root, struct btrfs_path *path, path 2524 fs/btrfs/ctree.h struct btrfs_path *path, path 2539 fs/btrfs/ctree.h void btrfs_extend_item(struct btrfs_path *path, u32 data_size); path 2540 fs/btrfs/ctree.h void btrfs_truncate_item(struct btrfs_path *path, u32 new_size, int from_end); path 2543 fs/btrfs/ctree.h struct btrfs_path *path, path 2548 fs/btrfs/ctree.h struct btrfs_path *path, path 2550 fs/btrfs/ctree.h int btrfs_find_item(struct btrfs_root *fs_root, struct btrfs_path *path, path 2572 fs/btrfs/ctree.h struct btrfs_path *path, int slot, int nr); path 2575 fs/btrfs/ctree.h struct btrfs_path *path) path 2577 fs/btrfs/ctree.h return btrfs_del_items(trans, root, path, path->slots[0], 1); path 2580 fs/btrfs/ctree.h void setup_items_for_insert(struct btrfs_root *root, struct btrfs_path *path, path 2587 fs/btrfs/ctree.h struct btrfs_path *path, path 2593 fs/btrfs/ctree.h struct btrfs_path *path, path 2597 fs/btrfs/ctree.h return btrfs_insert_empty_items(trans, root, path, key, &data_size, 1); path 2600 fs/btrfs/ctree.h int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path); path 2601 fs/btrfs/ctree.h int btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path); path 2602 fs/btrfs/ctree.h int btrfs_next_old_leaf(struct btrfs_root *root, struct btrfs_path *path, path 2688 fs/btrfs/ctree.h struct btrfs_path *path, struct btrfs_root_item *root_item, path 2714 fs/btrfs/ctree.h struct btrfs_path *path, u64 dir, path 2720 fs/btrfs/ctree.h struct btrfs_path *path, u64 dir, path 2725 fs/btrfs/ctree.h struct btrfs_path *path, u64 dirid, path 2729 fs/btrfs/ctree.h struct btrfs_path *path, path 2733 fs/btrfs/ctree.h struct btrfs_path *path, u64 objectid, path 2738 fs/btrfs/ctree.h struct btrfs_path *path, u64 dir, path 2742 fs/btrfs/ctree.h struct btrfs_path *path, path 2764 fs/btrfs/ctree.h struct btrfs_path *path, u64 objectid); path 2766 fs/btrfs/ctree.h *root, struct btrfs_path *path, path 2772 fs/btrfs/ctree.h struct btrfs_path *path, path 2799 fs/btrfs/ctree.h struct btrfs_path *path, u64 objectid, path 2809 fs/btrfs/ctree.h const struct btrfs_path *path, path 2872 fs/btrfs/ctree.h struct btrfs_path *path); path 2932 fs/btrfs/ctree.h struct btrfs_path *path, u64 start, u64 end, path 2940 fs/btrfs/ctree.h int btrfs_punch_hole_range(struct inode *inode, struct btrfs_path *path, path 696 fs/btrfs/delayed-inode.c struct btrfs_path *path, path 712 fs/btrfs/delayed-inode.c BUG_ON(!path->nodes[0]); path 714 fs/btrfs/delayed-inode.c leaf = path->nodes[0]; path 750 fs/btrfs/delayed-inode.c btrfs_set_path_blocking(path); path 773 fs/btrfs/delayed-inode.c setup_items_for_insert(root, path, keys, data_size, path 777 fs/btrfs/delayed-inode.c slot = path->slots[0]; path 804 fs/btrfs/delayed-inode.c struct btrfs_path *path, path 813 fs/btrfs/delayed-inode.c ret = btrfs_insert_empty_item(trans, root, path, &delayed_item->key, path 819 fs/btrfs/delayed-inode.c leaf = path->nodes[0]; path 821 fs/btrfs/delayed-inode.c ptr = btrfs_item_ptr(leaf, path->slots[0], char); path 836 fs/btrfs/delayed-inode.c struct btrfs_path *path, path 849 fs/btrfs/delayed-inode.c ret = btrfs_insert_delayed_item(trans, root, path, curr); path 851 fs/btrfs/delayed-inode.c btrfs_release_path(path); path 859 fs/btrfs/delayed-inode.c path->slots[0]++; path 860 fs/btrfs/delayed-inode.c btrfs_batch_insert_items(root, path, curr); path 863 fs/btrfs/delayed-inode.c btrfs_mark_buffer_dirty(path->nodes[0]); path 865 fs/btrfs/delayed-inode.c btrfs_release_path(path); path 876 fs/btrfs/delayed-inode.c struct btrfs_path *path, path 886 fs/btrfs/delayed-inode.c BUG_ON(!path->nodes[0]); path 888 fs/btrfs/delayed-inode.c leaf = path->nodes[0]; path 890 fs/btrfs/delayed-inode.c i = path->slots[0]; path 923 fs/btrfs/delayed-inode.c ret = btrfs_del_items(trans, root, path, path->slots[0], nitems); path 938 fs/btrfs/delayed-inode.c struct btrfs_path *path, path 953 fs/btrfs/delayed-inode.c ret = btrfs_search_slot(trans, root, &curr->key, path, -1, 1); path 966 fs/btrfs/delayed-inode.c btrfs_release_path(path); path 974 fs/btrfs/delayed-inode.c btrfs_batch_delete_items(trans, root, path, curr); path 975 fs/btrfs/delayed-inode.c btrfs_release_path(path); path 980 fs/btrfs/delayed-inode.c btrfs_release_path(path); path 1014 fs/btrfs/delayed-inode.c struct btrfs_path *path, path 1035 fs/btrfs/delayed-inode.c ret = btrfs_lookup_inode(trans, root, path, &key, mod); path 1038 fs/btrfs/delayed-inode.c btrfs_release_path(path); path 1044 fs/btrfs/delayed-inode.c leaf = path->nodes[0]; path 1045 fs/btrfs/delayed-inode.c inode_item = btrfs_item_ptr(leaf, path->slots[0], path 1054 fs/btrfs/delayed-inode.c path->slots[0]++; path 1055 fs/btrfs/delayed-inode.c if (path->slots[0] >= btrfs_header_nritems(leaf)) path 1058 fs/btrfs/delayed-inode.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 1071 fs/btrfs/delayed-inode.c btrfs_del_item(trans, root, path); path 1075 fs/btrfs/delayed-inode.c btrfs_release_path(path); path 1083 fs/btrfs/delayed-inode.c btrfs_release_path(path); path 1089 fs/btrfs/delayed-inode.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 1096 fs/btrfs/delayed-inode.c leaf = path->nodes[0]; path 1097 fs/btrfs/delayed-inode.c path->slots[0]--; path 1103 fs/btrfs/delayed-inode.c struct btrfs_path *path, path 1114 fs/btrfs/delayed-inode.c ret = __btrfs_update_delayed_inode(trans, root, path, node); path 1121 fs/btrfs/delayed-inode.c struct btrfs_path *path, path 1126 fs/btrfs/delayed-inode.c ret = btrfs_insert_delayed_items(trans, path, node->root, node); path 1130 fs/btrfs/delayed-inode.c ret = btrfs_delete_delayed_items(trans, path, node->root, node); path 1134 fs/btrfs/delayed-inode.c ret = btrfs_update_delayed_inode(trans, node->root, path, node); path 1149 fs/btrfs/delayed-inode.c struct btrfs_path *path; path 1157 fs/btrfs/delayed-inode.c path = btrfs_alloc_path(); path 1158 fs/btrfs/delayed-inode.c if (!path) path 1160 fs/btrfs/delayed-inode.c path->leave_spinning = 1; path 1169 fs/btrfs/delayed-inode.c ret = __btrfs_commit_inode_delayed_items(trans, path, path 1185 fs/btrfs/delayed-inode.c btrfs_free_path(path); path 1205 fs/btrfs/delayed-inode.c struct btrfs_path *path; path 1220 fs/btrfs/delayed-inode.c path = btrfs_alloc_path(); path 1221 fs/btrfs/delayed-inode.c if (!path) { path 1225 fs/btrfs/delayed-inode.c path->leave_spinning = 1; path 1230 fs/btrfs/delayed-inode.c ret = __btrfs_commit_inode_delayed_items(trans, path, delayed_node); path 1233 fs/btrfs/delayed-inode.c btrfs_free_path(path); path 1244 fs/btrfs/delayed-inode.c struct btrfs_path *path; path 1265 fs/btrfs/delayed-inode.c path = btrfs_alloc_path(); path 1266 fs/btrfs/delayed-inode.c if (!path) { path 1270 fs/btrfs/delayed-inode.c path->leave_spinning = 1; path 1278 fs/btrfs/delayed-inode.c path, delayed_node); path 1283 fs/btrfs/delayed-inode.c btrfs_free_path(path); path 1317 fs/btrfs/delayed-inode.c struct btrfs_path *path; path 1326 fs/btrfs/delayed-inode.c path = btrfs_alloc_path(); path 1327 fs/btrfs/delayed-inode.c if (!path) path 1339 fs/btrfs/delayed-inode.c path->leave_spinning = 1; path 1344 fs/btrfs/delayed-inode.c btrfs_release_path(path); path 1353 fs/btrfs/delayed-inode.c __btrfs_commit_inode_delayed_items(trans, path, delayed_node); path 1359 fs/btrfs/delayed-inode.c btrfs_release_path(path); path 1366 fs/btrfs/delayed-inode.c btrfs_free_path(path); path 41 fs/btrfs/dev-replace.c struct btrfs_path *path = NULL; path 46 fs/btrfs/dev-replace.c path = btrfs_alloc_path(); path 47 fs/btrfs/dev-replace.c if (!path) { path 55 fs/btrfs/dev-replace.c ret = btrfs_search_slot(NULL, dev_root, &key, path, 0, 0); path 77 fs/btrfs/dev-replace.c slot = path->slots[0]; path 78 fs/btrfs/dev-replace.c eb = path->nodes[0]; path 170 fs/btrfs/dev-replace.c btrfs_free_path(path); path 283 fs/btrfs/dev-replace.c struct btrfs_path *path; path 301 fs/btrfs/dev-replace.c path = btrfs_alloc_path(); path 302 fs/btrfs/dev-replace.c if (!path) { path 306 fs/btrfs/dev-replace.c ret = btrfs_search_slot(trans, dev_root, &key, path, -1, 1); path 315 fs/btrfs/dev-replace.c btrfs_item_size_nr(path->nodes[0], path->slots[0]) < sizeof(*ptr)) { path 327 fs/btrfs/dev-replace.c ret = btrfs_del_item(trans, dev_root, path); path 339 fs/btrfs/dev-replace.c btrfs_release_path(path); path 340 fs/btrfs/dev-replace.c ret = btrfs_insert_empty_item(trans, dev_root, path, path 349 fs/btrfs/dev-replace.c eb = path->nodes[0]; path 350 fs/btrfs/dev-replace.c ptr = btrfs_item_ptr(eb, path->slots[0], path 381 fs/btrfs/dev-replace.c btrfs_free_path(path); path 21 fs/btrfs/dir-item.c struct btrfs_path *path, path 33 fs/btrfs/dir-item.c ret = btrfs_insert_empty_item(trans, root, path, cpu_key, data_size); path 36 fs/btrfs/dir-item.c di = btrfs_match_dir_item_name(fs_info, path, name, name_len); path 39 fs/btrfs/dir-item.c btrfs_extend_item(path, data_size); path 43 fs/btrfs/dir-item.c leaf = path->nodes[0]; path 44 fs/btrfs/dir-item.c item = btrfs_item_nr(path->slots[0]); path 45 fs/btrfs/dir-item.c ptr = btrfs_item_ptr(leaf, path->slots[0], char); path 57 fs/btrfs/dir-item.c struct btrfs_path *path, u64 objectid, path 77 fs/btrfs/dir-item.c dir_item = insert_with_overflow(trans, root, path, &key, data_size, path 83 fs/btrfs/dir-item.c leaf = path->nodes[0]; path 95 fs/btrfs/dir-item.c btrfs_mark_buffer_dirty(path->nodes[0]); path 115 fs/btrfs/dir-item.c struct btrfs_path *path; path 127 fs/btrfs/dir-item.c path = btrfs_alloc_path(); path 128 fs/btrfs/dir-item.c if (!path) path 130 fs/btrfs/dir-item.c path->leave_spinning = 1; path 135 fs/btrfs/dir-item.c dir_item = insert_with_overflow(trans, root, path, &key, data_size, path 144 fs/btrfs/dir-item.c leaf = path->nodes[0]; path 161 fs/btrfs/dir-item.c btrfs_release_path(path); path 166 fs/btrfs/dir-item.c btrfs_free_path(path); path 181 fs/btrfs/dir-item.c struct btrfs_path *path, u64 dir, path 195 fs/btrfs/dir-item.c ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); path 201 fs/btrfs/dir-item.c return btrfs_match_dir_item_name(root->fs_info, path, name, name_len); path 213 fs/btrfs/dir-item.c struct btrfs_path *path; path 216 fs/btrfs/dir-item.c path = btrfs_alloc_path(); path 217 fs/btrfs/dir-item.c if (!path) path 224 fs/btrfs/dir-item.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 237 fs/btrfs/dir-item.c di = btrfs_match_dir_item_name(root->fs_info, path, name, name_len); path 249 fs/btrfs/dir-item.c leaf = path->nodes[0]; path 250 fs/btrfs/dir-item.c slot = path->slots[0]; path 259 fs/btrfs/dir-item.c btrfs_free_path(path); path 274 fs/btrfs/dir-item.c struct btrfs_path *path, u64 dir, path 287 fs/btrfs/dir-item.c ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); path 292 fs/btrfs/dir-item.c return btrfs_match_dir_item_name(root->fs_info, path, name, name_len); path 297 fs/btrfs/dir-item.c struct btrfs_path *path, u64 dirid, path 310 fs/btrfs/dir-item.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 314 fs/btrfs/dir-item.c leaf = path->nodes[0]; path 318 fs/btrfs/dir-item.c if (path->slots[0] >= nritems) { path 319 fs/btrfs/dir-item.c ret = btrfs_next_leaf(root, path); path 324 fs/btrfs/dir-item.c leaf = path->nodes[0]; path 329 fs/btrfs/dir-item.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 333 fs/btrfs/dir-item.c di = btrfs_match_dir_item_name(root->fs_info, path, path 338 fs/btrfs/dir-item.c path->slots[0]++; path 345 fs/btrfs/dir-item.c struct btrfs_path *path, u64 dir, path 357 fs/btrfs/dir-item.c ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); path 363 fs/btrfs/dir-item.c return btrfs_match_dir_item_name(root->fs_info, path, name, name_len); path 372 fs/btrfs/dir-item.c struct btrfs_path *path, path 382 fs/btrfs/dir-item.c leaf = path->nodes[0]; path 383 fs/btrfs/dir-item.c dir_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dir_item); path 385 fs/btrfs/dir-item.c total_len = btrfs_item_size_nr(leaf, path->slots[0]); path 409 fs/btrfs/dir-item.c struct btrfs_path *path, path 418 fs/btrfs/dir-item.c leaf = path->nodes[0]; path 421 fs/btrfs/dir-item.c item_len = btrfs_item_size_nr(leaf, path->slots[0]); path 423 fs/btrfs/dir-item.c ret = btrfs_del_item(trans, root, path); path 429 fs/btrfs/dir-item.c start = btrfs_item_ptr_offset(leaf, path->slots[0]); path 432 fs/btrfs/dir-item.c btrfs_truncate_item(path, item_len - sub_item_len, 1); path 1387 fs/btrfs/disk-io.c struct btrfs_path *path; path 1392 fs/btrfs/disk-io.c path = btrfs_alloc_path(); path 1393 fs/btrfs/disk-io.c if (!path) path 1404 fs/btrfs/disk-io.c ret = btrfs_find_root(tree_root, key, path, path 1427 fs/btrfs/disk-io.c btrfs_free_path(path); path 1538 fs/btrfs/disk-io.c struct btrfs_path *path; path 1582 fs/btrfs/disk-io.c path = btrfs_alloc_path(); path 1583 fs/btrfs/disk-io.c if (!path) { path 1591 fs/btrfs/disk-io.c ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); path 1592 fs/btrfs/disk-io.c btrfs_free_path(path); path 160 fs/btrfs/export.c struct btrfs_path *path; path 167 fs/btrfs/export.c path = btrfs_alloc_path(); path 168 fs/btrfs/export.c if (!path) path 182 fs/btrfs/export.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 187 fs/btrfs/export.c if (path->slots[0] == 0) { path 192 fs/btrfs/export.c path->slots[0]--; path 193 fs/btrfs/export.c leaf = path->nodes[0]; path 195 fs/btrfs/export.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); path 202 fs/btrfs/export.c ref = btrfs_item_ptr(leaf, path->slots[0], path 208 fs/btrfs/export.c btrfs_free_path(path); path 219 fs/btrfs/export.c btrfs_free_path(path); path 229 fs/btrfs/export.c struct btrfs_path *path; path 245 fs/btrfs/export.c path = btrfs_alloc_path(); path 246 fs/btrfs/export.c if (!path) path 248 fs/btrfs/export.c path->leave_spinning = 1; path 261 fs/btrfs/export.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 263 fs/btrfs/export.c btrfs_free_path(path); path 267 fs/btrfs/export.c path->slots[0]--; path 269 fs/btrfs/export.c btrfs_free_path(path); path 273 fs/btrfs/export.c leaf = path->nodes[0]; path 276 fs/btrfs/export.c rref = btrfs_item_ptr(leaf, path->slots[0], path 281 fs/btrfs/export.c iref = btrfs_item_ptr(leaf, path->slots[0], path 288 fs/btrfs/export.c btrfs_free_path(path); path 54 fs/btrfs/extent-tree.c static int find_next_key(struct btrfs_path *path, int level, path 127 fs/btrfs/extent-tree.c struct btrfs_path *path; path 129 fs/btrfs/extent-tree.c path = btrfs_alloc_path(); path 130 fs/btrfs/extent-tree.c if (!path) path 136 fs/btrfs/extent-tree.c ret = btrfs_search_slot(NULL, fs_info->extent_root, &key, path, 0, 0); path 137 fs/btrfs/extent-tree.c btrfs_free_path(path); path 156 fs/btrfs/extent-tree.c struct btrfs_path *path; path 174 fs/btrfs/extent-tree.c path = btrfs_alloc_path(); path 175 fs/btrfs/extent-tree.c if (!path) path 179 fs/btrfs/extent-tree.c path->skip_locking = 1; path 180 fs/btrfs/extent-tree.c path->search_commit_root = 1; path 191 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 0); path 196 fs/btrfs/extent-tree.c if (path->slots[0]) { path 197 fs/btrfs/extent-tree.c path->slots[0]--; path 198 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path 199 fs/btrfs/extent-tree.c path->slots[0]); path 208 fs/btrfs/extent-tree.c leaf = path->nodes[0]; path 209 fs/btrfs/extent-tree.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); path 211 fs/btrfs/extent-tree.c ei = btrfs_item_ptr(leaf, path->slots[0], path 244 fs/btrfs/extent-tree.c btrfs_release_path(path); path 273 fs/btrfs/extent-tree.c btrfs_free_path(path); path 477 fs/btrfs/extent-tree.c struct btrfs_path *path, path 502 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 514 fs/btrfs/extent-tree.c leaf = path->nodes[0]; path 517 fs/btrfs/extent-tree.c if (path->slots[0] >= nritems) { path 518 fs/btrfs/extent-tree.c ret = btrfs_next_leaf(root, path); path 524 fs/btrfs/extent-tree.c leaf = path->nodes[0]; path 529 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 534 fs/btrfs/extent-tree.c ref = btrfs_item_ptr(leaf, path->slots[0], path 540 fs/btrfs/extent-tree.c btrfs_release_path(path); path 546 fs/btrfs/extent-tree.c path->slots[0]++; path 553 fs/btrfs/extent-tree.c struct btrfs_path *path, path 577 fs/btrfs/extent-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, size); path 581 fs/btrfs/extent-tree.c leaf = path->nodes[0]; path 584 fs/btrfs/extent-tree.c ref = btrfs_item_ptr(leaf, path->slots[0], path 596 fs/btrfs/extent-tree.c ref = btrfs_item_ptr(leaf, path->slots[0], path 601 fs/btrfs/extent-tree.c btrfs_release_path(path); path 603 fs/btrfs/extent-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, path 608 fs/btrfs/extent-tree.c leaf = path->nodes[0]; path 610 fs/btrfs/extent-tree.c ref = btrfs_item_ptr(leaf, path->slots[0], path 627 fs/btrfs/extent-tree.c btrfs_release_path(path); path 632 fs/btrfs/extent-tree.c struct btrfs_path *path, path 642 fs/btrfs/extent-tree.c leaf = path->nodes[0]; path 643 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 646 fs/btrfs/extent-tree.c ref1 = btrfs_item_ptr(leaf, path->slots[0], path 650 fs/btrfs/extent-tree.c ref2 = btrfs_item_ptr(leaf, path->slots[0], path 665 fs/btrfs/extent-tree.c ret = btrfs_del_item(trans, trans->fs_info->extent_root, path); path 677 fs/btrfs/extent-tree.c static noinline u32 extent_data_ref_count(struct btrfs_path *path, path 687 fs/btrfs/extent-tree.c leaf = path->nodes[0]; path 688 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 706 fs/btrfs/extent-tree.c ref1 = btrfs_item_ptr(leaf, path->slots[0], path 710 fs/btrfs/extent-tree.c ref2 = btrfs_item_ptr(leaf, path->slots[0], path 720 fs/btrfs/extent-tree.c struct btrfs_path *path, path 737 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 744 fs/btrfs/extent-tree.c struct btrfs_path *path, path 761 fs/btrfs/extent-tree.c path, &key, 0); path 762 fs/btrfs/extent-tree.c btrfs_release_path(path); path 783 fs/btrfs/extent-tree.c static int find_next_key(struct btrfs_path *path, int level, path 788 fs/btrfs/extent-tree.c if (!path->nodes[level]) path 790 fs/btrfs/extent-tree.c if (path->slots[level] + 1 >= path 791 fs/btrfs/extent-tree.c btrfs_header_nritems(path->nodes[level])) path 794 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(path->nodes[level], key, path 795 fs/btrfs/extent-tree.c path->slots[level] + 1); path 797 fs/btrfs/extent-tree.c btrfs_node_key_to_cpu(path->nodes[level], key, path 798 fs/btrfs/extent-tree.c path->slots[level] + 1); path 819 fs/btrfs/extent-tree.c struct btrfs_path *path, path 850 fs/btrfs/extent-tree.c path->keep_locks = 1; path 864 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, root, &key, path, extra_size, 1); path 876 fs/btrfs/extent-tree.c if (path->slots[0]) { path 877 fs/btrfs/extent-tree.c path->slots[0]--; path 878 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path 879 fs/btrfs/extent-tree.c path->slots[0]); path 889 fs/btrfs/extent-tree.c btrfs_release_path(path); path 902 fs/btrfs/extent-tree.c leaf = path->nodes[0]; path 903 fs/btrfs/extent-tree.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); path 911 fs/btrfs/extent-tree.c ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); path 991 fs/btrfs/extent-tree.c if (find_next_key(path, 0, &key) == 0 && path 1001 fs/btrfs/extent-tree.c path->keep_locks = 0; path 1002 fs/btrfs/extent-tree.c btrfs_unlock_up_safe(path, 1); path 1012 fs/btrfs/extent-tree.c struct btrfs_path *path, path 1027 fs/btrfs/extent-tree.c leaf = path->nodes[0]; path 1028 fs/btrfs/extent-tree.c ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); path 1034 fs/btrfs/extent-tree.c btrfs_extend_item(path, size); path 1036 fs/btrfs/extent-tree.c ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); path 1044 fs/btrfs/extent-tree.c end = (unsigned long)ei + btrfs_item_size_nr(leaf, path->slots[0]); path 1072 fs/btrfs/extent-tree.c struct btrfs_path *path, path 1079 fs/btrfs/extent-tree.c ret = lookup_inline_extent_backref(trans, path, ref_ret, bytenr, path 1085 fs/btrfs/extent-tree.c btrfs_release_path(path); path 1089 fs/btrfs/extent-tree.c ret = lookup_tree_block_ref(trans, path, bytenr, parent, path 1092 fs/btrfs/extent-tree.c ret = lookup_extent_data_ref(trans, path, bytenr, parent, path 1102 fs/btrfs/extent-tree.c void update_inline_extent_backref(struct btrfs_path *path, path 1108 fs/btrfs/extent-tree.c struct extent_buffer *leaf = path->nodes[0]; path 1119 fs/btrfs/extent-tree.c ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); path 1156 fs/btrfs/extent-tree.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); path 1163 fs/btrfs/extent-tree.c btrfs_truncate_item(path, item_size, 1); path 1170 fs/btrfs/extent-tree.c struct btrfs_path *path, path 1179 fs/btrfs/extent-tree.c ret = lookup_inline_extent_backref(trans, path, &iref, bytenr, path 1184 fs/btrfs/extent-tree.c update_inline_extent_backref(path, iref, refs_to_add, path 1187 fs/btrfs/extent-tree.c setup_inline_extent_backref(trans->fs_info, path, iref, parent, path 1196 fs/btrfs/extent-tree.c struct btrfs_path *path, path 1203 fs/btrfs/extent-tree.c ret = insert_tree_block_ref(trans, path, bytenr, parent, path 1206 fs/btrfs/extent-tree.c ret = insert_extent_data_ref(trans, path, bytenr, parent, path 1214 fs/btrfs/extent-tree.c struct btrfs_path *path, path 1222 fs/btrfs/extent-tree.c update_inline_extent_backref(path, iref, -refs_to_drop, NULL, path 1225 fs/btrfs/extent-tree.c ret = remove_extent_data_ref(trans, path, refs_to_drop, path 1229 fs/btrfs/extent-tree.c ret = btrfs_del_item(trans, trans->fs_info->extent_root, path); path 1437 fs/btrfs/extent-tree.c struct btrfs_path *path; path 1446 fs/btrfs/extent-tree.c path = btrfs_alloc_path(); path 1447 fs/btrfs/extent-tree.c if (!path) path 1450 fs/btrfs/extent-tree.c path->reada = READA_FORWARD; path 1451 fs/btrfs/extent-tree.c path->leave_spinning = 1; path 1453 fs/btrfs/extent-tree.c ret = insert_inline_extent_backref(trans, path, bytenr, num_bytes, path 1464 fs/btrfs/extent-tree.c leaf = path->nodes[0]; path 1465 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 1466 fs/btrfs/extent-tree.c item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); path 1473 fs/btrfs/extent-tree.c btrfs_release_path(path); path 1475 fs/btrfs/extent-tree.c path->reada = READA_FORWARD; path 1476 fs/btrfs/extent-tree.c path->leave_spinning = 1; path 1478 fs/btrfs/extent-tree.c ret = insert_extent_backref(trans, path, bytenr, parent, root_objectid, path 1483 fs/btrfs/extent-tree.c btrfs_free_path(path); path 1556 fs/btrfs/extent-tree.c struct btrfs_path *path; path 1570 fs/btrfs/extent-tree.c path = btrfs_alloc_path(); path 1571 fs/btrfs/extent-tree.c if (!path) path 1585 fs/btrfs/extent-tree.c path->reada = READA_FORWARD; path 1586 fs/btrfs/extent-tree.c path->leave_spinning = 1; path 1587 fs/btrfs/extent-tree.c ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 1); path 1594 fs/btrfs/extent-tree.c if (path->slots[0] > 0) { path 1595 fs/btrfs/extent-tree.c path->slots[0]--; path 1596 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path 1597 fs/btrfs/extent-tree.c path->slots[0]); path 1604 fs/btrfs/extent-tree.c btrfs_release_path(path); path 1618 fs/btrfs/extent-tree.c leaf = path->nodes[0]; path 1619 fs/btrfs/extent-tree.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); path 1628 fs/btrfs/extent-tree.c ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); path 1633 fs/btrfs/extent-tree.c btrfs_free_path(path); path 2242 fs/btrfs/extent-tree.c struct btrfs_path *path, path 2274 fs/btrfs/extent-tree.c btrfs_release_path(path); path 2322 fs/btrfs/extent-tree.c struct btrfs_path *path, path 2340 fs/btrfs/extent-tree.c ret = btrfs_search_slot(NULL, extent_root, &key, path, 0, 0); path 2346 fs/btrfs/extent-tree.c if (path->slots[0] == 0) path 2349 fs/btrfs/extent-tree.c path->slots[0]--; path 2350 fs/btrfs/extent-tree.c leaf = path->nodes[0]; path 2351 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 2357 fs/btrfs/extent-tree.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); path 2358 fs/btrfs/extent-tree.c ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); path 2394 fs/btrfs/extent-tree.c struct btrfs_path *path; path 2397 fs/btrfs/extent-tree.c path = btrfs_alloc_path(); path 2398 fs/btrfs/extent-tree.c if (!path) path 2402 fs/btrfs/extent-tree.c ret = check_committed_ref(root, path, objectid, path 2407 fs/btrfs/extent-tree.c ret = check_delayed_ref(root, path, objectid, offset, bytenr); path 2411 fs/btrfs/extent-tree.c btrfs_free_path(path); path 2956 fs/btrfs/extent-tree.c struct btrfs_path *path; path 2973 fs/btrfs/extent-tree.c path = btrfs_alloc_path(); path 2974 fs/btrfs/extent-tree.c if (!path) path 2977 fs/btrfs/extent-tree.c path->reada = READA_FORWARD; path 2978 fs/btrfs/extent-tree.c path->leave_spinning = 1; path 2986 fs/btrfs/extent-tree.c ret = lookup_extent_backref(trans, path, &iref, bytenr, num_bytes, path 2990 fs/btrfs/extent-tree.c extent_slot = path->slots[0]; path 2992 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path 3006 fs/btrfs/extent-tree.c if (path->slots[0] - extent_slot > 5) path 3013 fs/btrfs/extent-tree.c ret = remove_extent_backref(trans, path, NULL, path 3020 fs/btrfs/extent-tree.c btrfs_release_path(path); path 3021 fs/btrfs/extent-tree.c path->leave_spinning = 1; path 3033 fs/btrfs/extent-tree.c &key, path, -1, 1); path 3034 fs/btrfs/extent-tree.c if (ret > 0 && skinny_metadata && path->slots[0]) { path 3039 fs/btrfs/extent-tree.c path->slots[0]--; path 3040 fs/btrfs/extent-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path 3041 fs/btrfs/extent-tree.c path->slots[0]); path 3053 fs/btrfs/extent-tree.c btrfs_release_path(path); path 3055 fs/btrfs/extent-tree.c &key, path, -1, 1); path 3063 fs/btrfs/extent-tree.c btrfs_print_leaf(path->nodes[0]); path 3069 fs/btrfs/extent-tree.c extent_slot = path->slots[0]; path 3072 fs/btrfs/extent-tree.c btrfs_print_leaf(path->nodes[0]); path 3084 fs/btrfs/extent-tree.c leaf = path->nodes[0]; path 3127 fs/btrfs/extent-tree.c ret = remove_extent_backref(trans, path, iref, path 3138 fs/btrfs/extent-tree.c extent_data_ref_count(path, iref)); path 3140 fs/btrfs/extent-tree.c BUG_ON(path->slots[0] != extent_slot); path 3142 fs/btrfs/extent-tree.c BUG_ON(path->slots[0] != extent_slot + 1); path 3143 fs/btrfs/extent-tree.c path->slots[0] = extent_slot; path 3149 fs/btrfs/extent-tree.c ret = btrfs_del_items(trans, extent_root, path, path->slots[0], path 3155 fs/btrfs/extent-tree.c btrfs_release_path(path); path 3178 fs/btrfs/extent-tree.c btrfs_release_path(path); path 3181 fs/btrfs/extent-tree.c btrfs_free_path(path); path 4198 fs/btrfs/extent-tree.c struct btrfs_path *path; path 4210 fs/btrfs/extent-tree.c path = btrfs_alloc_path(); path 4211 fs/btrfs/extent-tree.c if (!path) path 4214 fs/btrfs/extent-tree.c path->leave_spinning = 1; path 4215 fs/btrfs/extent-tree.c ret = btrfs_insert_empty_item(trans, fs_info->extent_root, path, path 4218 fs/btrfs/extent-tree.c btrfs_free_path(path); path 4222 fs/btrfs/extent-tree.c leaf = path->nodes[0]; path 4223 fs/btrfs/extent-tree.c extent_item = btrfs_item_ptr(leaf, path->slots[0], path 4246 fs/btrfs/extent-tree.c btrfs_mark_buffer_dirty(path->nodes[0]); path 4247 fs/btrfs/extent-tree.c btrfs_free_path(path); path 4273 fs/btrfs/extent-tree.c struct btrfs_path *path; path 4295 fs/btrfs/extent-tree.c path = btrfs_alloc_path(); path 4296 fs/btrfs/extent-tree.c if (!path) path 4299 fs/btrfs/extent-tree.c path->leave_spinning = 1; path 4300 fs/btrfs/extent-tree.c ret = btrfs_insert_empty_item(trans, fs_info->extent_root, path, path 4303 fs/btrfs/extent-tree.c btrfs_free_path(path); path 4307 fs/btrfs/extent-tree.c leaf = path->nodes[0]; path 4308 fs/btrfs/extent-tree.c extent_item = btrfs_item_ptr(leaf, path->slots[0], path 4336 fs/btrfs/extent-tree.c btrfs_free_path(path); path 4598 fs/btrfs/extent-tree.c struct btrfs_path *path) path 4612 fs/btrfs/extent-tree.c if (path->slots[wc->level] < wc->reada_slot) { path 4621 fs/btrfs/extent-tree.c eb = path->nodes[wc->level]; path 4624 fs/btrfs/extent-tree.c for (slot = path->slots[wc->level]; slot < nritems; slot++) { path 4632 fs/btrfs/extent-tree.c if (slot == path->slots[wc->level]) path 4685 fs/btrfs/extent-tree.c struct btrfs_path *path, path 4690 fs/btrfs/extent-tree.c struct extent_buffer *eb = path->nodes[level]; path 4705 fs/btrfs/extent-tree.c BUG_ON(!path->locks[level]); path 4720 fs/btrfs/extent-tree.c if (path->locks[level] && !wc->keep_locks) { path 4721 fs/btrfs/extent-tree.c btrfs_tree_unlock_rw(eb, path->locks[level]); path 4722 fs/btrfs/extent-tree.c path->locks[level] = 0; path 4729 fs/btrfs/extent-tree.c BUG_ON(!path->locks[level]); path 4745 fs/btrfs/extent-tree.c if (path->locks[level] && level > 0) { path 4746 fs/btrfs/extent-tree.c btrfs_tree_unlock_rw(eb, path->locks[level]); path 4747 fs/btrfs/extent-tree.c path->locks[level] = 0; path 4760 fs/btrfs/extent-tree.c struct btrfs_path *path; path 4764 fs/btrfs/extent-tree.c path = btrfs_alloc_path(); path 4765 fs/btrfs/extent-tree.c if (!path) path 4768 fs/btrfs/extent-tree.c ret = lookup_extent_backref(trans, path, &iref, bytenr, path 4771 fs/btrfs/extent-tree.c btrfs_free_path(path); path 4794 fs/btrfs/extent-tree.c struct btrfs_path *path, path 4810 fs/btrfs/extent-tree.c generation = btrfs_node_ptr_generation(path->nodes[level], path 4811 fs/btrfs/extent-tree.c path->slots[level]); path 4823 fs/btrfs/extent-tree.c bytenr = btrfs_node_blockptr(path->nodes[level], path->slots[level]); path 4824 fs/btrfs/extent-tree.c btrfs_node_key_to_cpu(path->nodes[level], &first_key, path 4825 fs/btrfs/extent-tree.c path->slots[level]); path 4864 fs/btrfs/extent-tree.c btrfs_node_key_to_cpu(path->nodes[level], &key, path 4865 fs/btrfs/extent-tree.c path->slots[level]); path 4888 fs/btrfs/extent-tree.c reada_walk_down(trans, root, wc, path); path 4908 fs/btrfs/extent-tree.c path->nodes[level] = next; path 4909 fs/btrfs/extent-tree.c path->slots[level] = 0; path 4910 fs/btrfs/extent-tree.c path->locks[level] = BTRFS_WRITE_LOCK_BLOCKING; path 4920 fs/btrfs/extent-tree.c parent = path->nodes[level]->start; path 4923 fs/btrfs/extent-tree.c btrfs_header_owner(path->nodes[level])); path 4925 fs/btrfs/extent-tree.c btrfs_header_owner(path->nodes[level])) { path 4974 fs/btrfs/extent-tree.c find_next_key(path, level, &wc->drop_progress); path 5008 fs/btrfs/extent-tree.c struct btrfs_path *path, path 5014 fs/btrfs/extent-tree.c struct extent_buffer *eb = path->nodes[level]; path 5022 fs/btrfs/extent-tree.c ret = find_next_key(path, level + 1, &wc->update_progress); path 5028 fs/btrfs/extent-tree.c path->slots[level] = 0; path 5035 fs/btrfs/extent-tree.c if (!path->locks[level]) { path 5039 fs/btrfs/extent-tree.c path->locks[level] = BTRFS_WRITE_LOCK_BLOCKING; path 5046 fs/btrfs/extent-tree.c btrfs_tree_unlock_rw(eb, path->locks[level]); path 5047 fs/btrfs/extent-tree.c path->locks[level] = 0; path 5052 fs/btrfs/extent-tree.c btrfs_tree_unlock_rw(eb, path->locks[level]); path 5053 fs/btrfs/extent-tree.c path->locks[level] = 0; path 5060 fs/btrfs/extent-tree.c BUG_ON(wc->refs[level] > 1 && !path->locks[level]); path 5079 fs/btrfs/extent-tree.c if (!path->locks[level] && path 5083 fs/btrfs/extent-tree.c path->locks[level] = BTRFS_WRITE_LOCK_BLOCKING; path 5095 fs/btrfs/extent-tree.c parent = path->nodes[level + 1]->start; path 5097 fs/btrfs/extent-tree.c btrfs_header_owner(path->nodes[level + 1])) path 5115 fs/btrfs/extent-tree.c struct btrfs_path *path, path 5123 fs/btrfs/extent-tree.c ret = walk_down_proc(trans, root, path, wc, lookup_info); path 5130 fs/btrfs/extent-tree.c if (path->slots[level] >= path 5131 fs/btrfs/extent-tree.c btrfs_header_nritems(path->nodes[level])) path 5134 fs/btrfs/extent-tree.c ret = do_walk_down(trans, root, path, wc, &lookup_info); path 5136 fs/btrfs/extent-tree.c path->slots[level]++; path 5147 fs/btrfs/extent-tree.c struct btrfs_path *path, path 5153 fs/btrfs/extent-tree.c path->slots[level] = btrfs_header_nritems(path->nodes[level]); path 5154 fs/btrfs/extent-tree.c while (level < max_level && path->nodes[level]) { path 5156 fs/btrfs/extent-tree.c if (path->slots[level] + 1 < path 5157 fs/btrfs/extent-tree.c btrfs_header_nritems(path->nodes[level])) { path 5158 fs/btrfs/extent-tree.c path->slots[level]++; path 5161 fs/btrfs/extent-tree.c ret = walk_up_proc(trans, root, path, wc); path 5167 fs/btrfs/extent-tree.c if (path->locks[level]) { path 5168 fs/btrfs/extent-tree.c btrfs_tree_unlock_rw(path->nodes[level], path 5169 fs/btrfs/extent-tree.c path->locks[level]); path 5170 fs/btrfs/extent-tree.c path->locks[level] = 0; path 5172 fs/btrfs/extent-tree.c free_extent_buffer(path->nodes[level]); path 5173 fs/btrfs/extent-tree.c path->nodes[level] = NULL; path 5198 fs/btrfs/extent-tree.c struct btrfs_path *path; path 5211 fs/btrfs/extent-tree.c path = btrfs_alloc_path(); path 5212 fs/btrfs/extent-tree.c if (!path) { path 5219 fs/btrfs/extent-tree.c btrfs_free_path(path); path 5248 fs/btrfs/extent-tree.c path->nodes[level] = btrfs_lock_root_node(root); path 5249 fs/btrfs/extent-tree.c btrfs_set_lock_blocking_write(path->nodes[level]); path 5250 fs/btrfs/extent-tree.c path->slots[level] = 0; path 5251 fs/btrfs/extent-tree.c path->locks[level] = BTRFS_WRITE_LOCK_BLOCKING; path 5261 fs/btrfs/extent-tree.c path->lowest_level = level; path 5262 fs/btrfs/extent-tree.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 5263 fs/btrfs/extent-tree.c path->lowest_level = 0; path 5274 fs/btrfs/extent-tree.c btrfs_unlock_up_safe(path, 0); path 5278 fs/btrfs/extent-tree.c btrfs_tree_lock(path->nodes[level]); path 5279 fs/btrfs/extent-tree.c btrfs_set_lock_blocking_write(path->nodes[level]); path 5280 fs/btrfs/extent-tree.c path->locks[level] = BTRFS_WRITE_LOCK_BLOCKING; path 5283 fs/btrfs/extent-tree.c path->nodes[level]->start, path 5295 fs/btrfs/extent-tree.c btrfs_tree_unlock(path->nodes[level]); path 5296 fs/btrfs/extent-tree.c path->locks[level] = 0; path 5312 fs/btrfs/extent-tree.c ret = walk_down_tree(trans, root, path, wc); path 5318 fs/btrfs/extent-tree.c ret = walk_up_tree(trans, root, path, wc, BTRFS_MAX_LEVEL); path 5331 fs/btrfs/extent-tree.c btrfs_node_key_to_cpu(path->nodes[wc->drop_level], path 5333 fs/btrfs/extent-tree.c path->slots[wc->drop_level]); path 5368 fs/btrfs/extent-tree.c btrfs_release_path(path); path 5380 fs/btrfs/extent-tree.c ret = btrfs_find_root(tree_root, &root->root_key, path, path 5409 fs/btrfs/extent-tree.c btrfs_free_path(path); path 5437 fs/btrfs/extent-tree.c struct btrfs_path *path; path 5446 fs/btrfs/extent-tree.c path = btrfs_alloc_path(); path 5447 fs/btrfs/extent-tree.c if (!path) path 5452 fs/btrfs/extent-tree.c btrfs_free_path(path); path 5459 fs/btrfs/extent-tree.c path->nodes[parent_level] = parent; path 5460 fs/btrfs/extent-tree.c path->slots[parent_level] = btrfs_header_nritems(parent); path 5464 fs/btrfs/extent-tree.c path->nodes[level] = node; path 5465 fs/btrfs/extent-tree.c path->slots[level] = 0; path 5466 fs/btrfs/extent-tree.c path->locks[level] = BTRFS_WRITE_LOCK_BLOCKING; path 5478 fs/btrfs/extent-tree.c wret = walk_down_tree(trans, root, path, wc); path 5484 fs/btrfs/extent-tree.c wret = walk_up_tree(trans, root, path, wc, parent_level); path 5492 fs/btrfs/extent-tree.c btrfs_free_path(path); path 4651 fs/btrfs/extent_io.c struct btrfs_path *path; path 4664 fs/btrfs/extent_io.c path = btrfs_alloc_path(); path 4665 fs/btrfs/extent_io.c if (!path) path 4667 fs/btrfs/extent_io.c path->leave_spinning = 1; path 4683 fs/btrfs/extent_io.c ret = btrfs_lookup_file_extent(NULL, root, path, path 4693 fs/btrfs/extent_io.c path->slots[0]--; path 4694 fs/btrfs/extent_io.c btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); path 4712 fs/btrfs/extent_io.c btrfs_release_path(path); path 4842 fs/btrfs/extent_io.c btrfs_free_path(path); path 44 fs/btrfs/file-item.c struct btrfs_path *path; path 47 fs/btrfs/file-item.c path = btrfs_alloc_path(); path 48 fs/btrfs/file-item.c if (!path) path 54 fs/btrfs/file-item.c path->leave_spinning = 1; path 55 fs/btrfs/file-item.c ret = btrfs_insert_empty_item(trans, root, path, &file_key, path 60 fs/btrfs/file-item.c leaf = path->nodes[0]; path 61 fs/btrfs/file-item.c item = btrfs_item_ptr(leaf, path->slots[0], path 76 fs/btrfs/file-item.c btrfs_free_path(path); path 83 fs/btrfs/file-item.c struct btrfs_path *path, path 99 fs/btrfs/file-item.c ret = btrfs_search_slot(trans, root, &file_key, path, 0, cow); path 102 fs/btrfs/file-item.c leaf = path->nodes[0]; path 105 fs/btrfs/file-item.c if (path->slots[0] == 0) path 107 fs/btrfs/file-item.c path->slots[0]--; path 108 fs/btrfs/file-item.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); path 114 fs/btrfs/file-item.c csums_in_item = btrfs_item_size_nr(leaf, path->slots[0]); path 124 fs/btrfs/file-item.c item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); path 136 fs/btrfs/file-item.c struct btrfs_path *path, u64 objectid, path 147 fs/btrfs/file-item.c ret = btrfs_search_slot(trans, root, &file_key, path, ins_len, cow); path 160 fs/btrfs/file-item.c struct btrfs_path *path; path 172 fs/btrfs/file-item.c path = btrfs_alloc_path(); path 173 fs/btrfs/file-item.c if (!path) path 182 fs/btrfs/file-item.c btrfs_free_path(path); path 194 fs/btrfs/file-item.c path->reada = READA_FORWARD; path 203 fs/btrfs/file-item.c path->search_commit_root = 1; path 204 fs/btrfs/file-item.c path->skip_locking = 1; path 229 fs/btrfs/file-item.c btrfs_release_path(path); path 231 fs/btrfs/file-item.c path, disk_bytenr, 0); path 246 fs/btrfs/file-item.c btrfs_release_path(path); path 249 fs/btrfs/file-item.c btrfs_item_key_to_cpu(path->nodes[0], &found_key, path 250 fs/btrfs/file-item.c path->slots[0]); path 253 fs/btrfs/file-item.c item_size = btrfs_item_size_nr(path->nodes[0], path 254 fs/btrfs/file-item.c path->slots[0]); path 258 fs/btrfs/file-item.c item = btrfs_item_ptr(path->nodes[0], path->slots[0], path 270 fs/btrfs/file-item.c read_extent_buffer(path->nodes[0], csum, path 288 fs/btrfs/file-item.c btrfs_free_path(path); path 308 fs/btrfs/file-item.c struct btrfs_path *path; path 322 fs/btrfs/file-item.c path = btrfs_alloc_path(); path 323 fs/btrfs/file-item.c if (!path) path 327 fs/btrfs/file-item.c path->skip_locking = 1; path 328 fs/btrfs/file-item.c path->reada = READA_FORWARD; path 329 fs/btrfs/file-item.c path->search_commit_root = 1; path 336 fs/btrfs/file-item.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 339 fs/btrfs/file-item.c if (ret > 0 && path->slots[0] > 0) { path 340 fs/btrfs/file-item.c leaf = path->nodes[0]; path 341 fs/btrfs/file-item.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); path 347 fs/btrfs/file-item.c btrfs_item_size_nr(leaf, path->slots[0] - 1)) path 348 fs/btrfs/file-item.c path->slots[0]--; path 353 fs/btrfs/file-item.c leaf = path->nodes[0]; path 354 fs/btrfs/file-item.c if (path->slots[0] >= btrfs_header_nritems(leaf)) { path 355 fs/btrfs/file-item.c ret = btrfs_next_leaf(root, path); path 360 fs/btrfs/file-item.c leaf = path->nodes[0]; path 363 fs/btrfs/file-item.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 372 fs/btrfs/file-item.c size = btrfs_item_size_nr(leaf, path->slots[0]); path 375 fs/btrfs/file-item.c path->slots[0]++; path 380 fs/btrfs/file-item.c item = btrfs_item_ptr(path->nodes[0], path->slots[0], path 400 fs/btrfs/file-item.c read_extent_buffer(path->nodes[0], path 408 fs/btrfs/file-item.c path->slots[0]++; path 419 fs/btrfs/file-item.c btrfs_free_path(path); path 544 fs/btrfs/file-item.c struct btrfs_path *path, path 554 fs/btrfs/file-item.c leaf = path->nodes[0]; path 555 fs/btrfs/file-item.c csum_end = btrfs_item_size_nr(leaf, path->slots[0]) / csum_size; path 568 fs/btrfs/file-item.c btrfs_truncate_item(path, new_size, 1); path 580 fs/btrfs/file-item.c btrfs_truncate_item(path, new_size, 0); path 583 fs/btrfs/file-item.c btrfs_set_item_key_safe(fs_info, path, key); path 597 fs/btrfs/file-item.c struct btrfs_path *path; path 609 fs/btrfs/file-item.c path = btrfs_alloc_path(); path 610 fs/btrfs/file-item.c if (!path) path 618 fs/btrfs/file-item.c path->leave_spinning = 1; path 619 fs/btrfs/file-item.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 621 fs/btrfs/file-item.c if (path->slots[0] == 0) path 623 fs/btrfs/file-item.c path->slots[0]--; path 628 fs/btrfs/file-item.c leaf = path->nodes[0]; path 629 fs/btrfs/file-item.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 639 fs/btrfs/file-item.c csum_end = btrfs_item_size_nr(leaf, path->slots[0]) / csum_size; path 656 fs/btrfs/file-item.c if (key.offset > bytenr && path->slots[0] > 0) { path 657 fs/btrfs/file-item.c int slot = path->slots[0] - 1; path 668 fs/btrfs/file-item.c path->slots[0] = slot; path 674 fs/btrfs/file-item.c ret = btrfs_del_items(trans, root, path, path 675 fs/btrfs/file-item.c path->slots[0], del_nr); path 708 fs/btrfs/file-item.c path->slots[0]); path 718 fs/btrfs/file-item.c ret = btrfs_split_item(trans, root, path, &key, offset); path 726 fs/btrfs/file-item.c truncate_one_csum(fs_info, path, &key, bytenr, len); path 730 fs/btrfs/file-item.c btrfs_release_path(path); path 734 fs/btrfs/file-item.c btrfs_free_path(path); path 745 fs/btrfs/file-item.c struct btrfs_path *path; path 760 fs/btrfs/file-item.c path = btrfs_alloc_path(); path 761 fs/btrfs/file-item.c if (!path) path 771 fs/btrfs/file-item.c item = btrfs_lookup_csum(trans, root, path, bytenr, 1); path 774 fs/btrfs/file-item.c leaf = path->nodes[0]; path 775 fs/btrfs/file-item.c item_end = btrfs_item_ptr(leaf, path->slots[0], path 778 fs/btrfs/file-item.c btrfs_item_size_nr(leaf, path->slots[0])); path 788 fs/btrfs/file-item.c leaf = path->nodes[0]; path 789 fs/btrfs/file-item.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); path 796 fs/btrfs/file-item.c int slot = path->slots[0] + 1; path 798 fs/btrfs/file-item.c nritems = btrfs_header_nritems(path->nodes[0]); path 799 fs/btrfs/file-item.c if (!nritems || (path->slots[0] >= nritems - 1)) { path 800 fs/btrfs/file-item.c ret = btrfs_next_leaf(root, path); path 805 fs/btrfs/file-item.c slot = path->slots[0]; path 807 fs/btrfs/file-item.c btrfs_item_key_to_cpu(path->nodes[0], &found_key, slot); path 822 fs/btrfs/file-item.c btrfs_release_path(path); path 823 fs/btrfs/file-item.c ret = btrfs_search_slot(trans, root, &file_key, path, path 829 fs/btrfs/file-item.c if (path->slots[0] == 0) path 831 fs/btrfs/file-item.c path->slots[0]--; path 834 fs/btrfs/file-item.c leaf = path->nodes[0]; path 835 fs/btrfs/file-item.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); path 845 fs/btrfs/file-item.c if (csum_offset == btrfs_item_size_nr(leaf, path->slots[0]) / path 867 fs/btrfs/file-item.c diff = diff - btrfs_item_size_nr(leaf, path->slots[0]); path 872 fs/btrfs/file-item.c btrfs_extend_item(path, diff); path 878 fs/btrfs/file-item.c btrfs_release_path(path); path 894 fs/btrfs/file-item.c path->leave_spinning = 1; path 895 fs/btrfs/file-item.c ret = btrfs_insert_empty_item(trans, root, path, &file_key, path 897 fs/btrfs/file-item.c path->leave_spinning = 0; path 902 fs/btrfs/file-item.c leaf = path->nodes[0]; path 904 fs/btrfs/file-item.c item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); path 906 fs/btrfs/file-item.c btrfs_item_size_nr(leaf, path->slots[0])); path 922 fs/btrfs/file-item.c btrfs_mark_buffer_dirty(path->nodes[0]); path 924 fs/btrfs/file-item.c btrfs_release_path(path); path 929 fs/btrfs/file-item.c btrfs_free_path(path); path 937 fs/btrfs/file-item.c const struct btrfs_path *path, path 944 fs/btrfs/file-item.c struct extent_buffer *leaf = path->nodes[0]; path 945 fs/btrfs/file-item.c const int slot = path->slots[0]; path 749 fs/btrfs/file.c struct btrfs_path *path, u64 start, u64 end, path 788 fs/btrfs/file.c ret = btrfs_lookup_file_extent(trans, root, path, ino, path 792 fs/btrfs/file.c if (ret > 0 && path->slots[0] > 0 && search_start == start) { path 793 fs/btrfs/file.c leaf = path->nodes[0]; path 794 fs/btrfs/file.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); path 797 fs/btrfs/file.c path->slots[0]--; path 802 fs/btrfs/file.c leaf = path->nodes[0]; path 803 fs/btrfs/file.c if (path->slots[0] >= btrfs_header_nritems(leaf)) { path 805 fs/btrfs/file.c ret = btrfs_next_leaf(root, path); path 813 fs/btrfs/file.c leaf = path->nodes[0]; path 817 fs/btrfs/file.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 824 fs/btrfs/file.c path->slots[0]++; path 830 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], path 864 fs/btrfs/file.c path->slots[0]++; path 872 fs/btrfs/file.c btrfs_release_path(path); path 889 fs/btrfs/file.c ret = btrfs_duplicate_item(trans, root, path, path 892 fs/btrfs/file.c btrfs_release_path(path); path 898 fs/btrfs/file.c leaf = path->nodes[0]; path 899 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0] - 1, path 904 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], path 944 fs/btrfs/file.c btrfs_set_item_key_safe(fs_info, path, &new_key); path 976 fs/btrfs/file.c path->slots[0]++; path 987 fs/btrfs/file.c del_slot = path->slots[0]; path 990 fs/btrfs/file.c BUG_ON(del_slot + del_nr != path->slots[0]); path 1017 fs/btrfs/file.c if (path->slots[0] + 1 < btrfs_header_nritems(leaf)) { path 1018 fs/btrfs/file.c path->slots[0]++; path 1022 fs/btrfs/file.c ret = btrfs_del_items(trans, root, path, del_slot, path 1032 fs/btrfs/file.c btrfs_release_path(path); path 1046 fs/btrfs/file.c path->slots[0] = del_slot; path 1047 fs/btrfs/file.c ret = btrfs_del_items(trans, root, path, del_slot, del_nr); path 1052 fs/btrfs/file.c leaf = path->nodes[0]; path 1059 fs/btrfs/file.c (path->locks[0] == BTRFS_WRITE_LOCK_BLOCKING || path 1060 fs/btrfs/file.c path->locks[0] == BTRFS_WRITE_LOCK) && path 1067 fs/btrfs/file.c if (!del_nr && path->slots[0] < btrfs_header_nritems(leaf)) { path 1070 fs/btrfs/file.c btrfs_item_key_to_cpu(leaf, &slot_key, path->slots[0]); path 1072 fs/btrfs/file.c path->slots[0]++; path 1074 fs/btrfs/file.c setup_items_for_insert(root, path, &key, path 1083 fs/btrfs/file.c btrfs_release_path(path); path 1093 fs/btrfs/file.c struct btrfs_path *path; path 1096 fs/btrfs/file.c path = btrfs_alloc_path(); path 1097 fs/btrfs/file.c if (!path) path 1099 fs/btrfs/file.c ret = __btrfs_drop_extents(trans, root, inode, path, start, end, NULL, path 1101 fs/btrfs/file.c btrfs_free_path(path); path 1151 fs/btrfs/file.c struct btrfs_path *path; path 1169 fs/btrfs/file.c path = btrfs_alloc_path(); path 1170 fs/btrfs/file.c if (!path) path 1179 fs/btrfs/file.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 1182 fs/btrfs/file.c if (ret > 0 && path->slots[0] > 0) path 1183 fs/btrfs/file.c path->slots[0]--; path 1185 fs/btrfs/file.c leaf = path->nodes[0]; path 1186 fs/btrfs/file.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 1193 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], path 1215 fs/btrfs/file.c if (extent_mergeable(leaf, path->slots[0] - 1, path 1219 fs/btrfs/file.c btrfs_set_item_key_safe(fs_info, path, &new_key); path 1220 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], path 1228 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0] - 1, path 1242 fs/btrfs/file.c if (extent_mergeable(leaf, path->slots[0] + 1, path 1245 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], path 1251 fs/btrfs/file.c path->slots[0]++; path 1253 fs/btrfs/file.c btrfs_set_item_key_safe(fs_info, path, &new_key); path 1255 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], path 1273 fs/btrfs/file.c ret = btrfs_duplicate_item(trans, root, path, &new_key); path 1275 fs/btrfs/file.c btrfs_release_path(path); path 1283 fs/btrfs/file.c leaf = path->nodes[0]; path 1284 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0] - 1, path 1290 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], path 1317 fs/btrfs/file.c path->slots[0]--; path 1328 fs/btrfs/file.c if (extent_mergeable(leaf, path->slots[0] + 1, path 1332 fs/btrfs/file.c btrfs_release_path(path); path 1336 fs/btrfs/file.c del_slot = path->slots[0] + 1; path 1346 fs/btrfs/file.c if (extent_mergeable(leaf, path->slots[0] - 1, path 1350 fs/btrfs/file.c btrfs_release_path(path); path 1354 fs/btrfs/file.c del_slot = path->slots[0]; path 1363 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], path 1379 fs/btrfs/file.c ret = btrfs_del_items(trans, root, path, del_slot, del_nr); path 1386 fs/btrfs/file.c btrfs_free_path(path); path 2291 fs/btrfs/file.c struct btrfs_path *path, u64 offset, u64 end) path 2309 fs/btrfs/file.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); path 2320 fs/btrfs/file.c leaf = path->nodes[0]; path 2321 fs/btrfs/file.c if (hole_mergeable(inode, leaf, path->slots[0] - 1, offset, end)) { path 2324 fs/btrfs/file.c path->slots[0]--; path 2325 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], path 2336 fs/btrfs/file.c if (hole_mergeable(inode, leaf, path->slots[0], offset, end)) { path 2340 fs/btrfs/file.c btrfs_set_item_key_safe(fs_info, path, &key); path 2341 fs/btrfs/file.c fi = btrfs_item_ptr(leaf, path->slots[0], path 2351 fs/btrfs/file.c btrfs_release_path(path); path 2359 fs/btrfs/file.c btrfs_release_path(path); path 2465 fs/btrfs/file.c struct btrfs_path *path, path 2489 fs/btrfs/file.c ret = btrfs_insert_empty_item(trans, root, path, &key, path 2493 fs/btrfs/file.c leaf = path->nodes[0]; path 2494 fs/btrfs/file.c slot = path->slots[0]; path 2502 fs/btrfs/file.c btrfs_release_path(path); path 2529 fs/btrfs/file.c int btrfs_punch_hole_range(struct inode *inode, struct btrfs_path *path, path 2582 fs/btrfs/file.c ret = __btrfs_drop_extents(trans, root, inode, path, path 2602 fs/btrfs/file.c ret = fill_holes(trans, BTRFS_I(inode), path, path 2619 fs/btrfs/file.c ret = btrfs_insert_clone_extent(trans, inode, path, path 2697 fs/btrfs/file.c ret = fill_holes(trans, BTRFS_I(inode), path, path 2706 fs/btrfs/file.c ret = btrfs_insert_clone_extent(trans, inode, path, clone_info, path 2734 fs/btrfs/file.c struct btrfs_path *path; path 2843 fs/btrfs/file.c path = btrfs_alloc_path(); path 2844 fs/btrfs/file.c if (!path) { path 2849 fs/btrfs/file.c ret = btrfs_punch_hole_range(inode, path, lockstart, lockend, NULL, path 2851 fs/btrfs/file.c btrfs_free_path(path); path 41 fs/btrfs/free-space-cache.c struct btrfs_path *path); path 44 fs/btrfs/free-space-cache.c struct btrfs_path *path, path 61 fs/btrfs/free-space-cache.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 65 fs/btrfs/free-space-cache.c btrfs_release_path(path); path 69 fs/btrfs/free-space-cache.c leaf = path->nodes[0]; path 70 fs/btrfs/free-space-cache.c header = btrfs_item_ptr(leaf, path->slots[0], path 74 fs/btrfs/free-space-cache.c btrfs_release_path(path); path 81 fs/btrfs/free-space-cache.c inode = btrfs_iget_path(fs_info->sb, &location, root, NULL, path); path 82 fs/btrfs/free-space-cache.c btrfs_release_path(path); path 96 fs/btrfs/free-space-cache.c struct btrfs_path *path) path 109 fs/btrfs/free-space-cache.c inode = __lookup_free_space_inode(fs_info->tree_root, path, path 133 fs/btrfs/free-space-cache.c struct btrfs_path *path, path 144 fs/btrfs/free-space-cache.c ret = btrfs_insert_empty_inode(trans, root, path, ino); path 152 fs/btrfs/free-space-cache.c leaf = path->nodes[0]; path 153 fs/btrfs/free-space-cache.c inode_item = btrfs_item_ptr(leaf, path->slots[0], path 155 fs/btrfs/free-space-cache.c btrfs_item_key(leaf, &disk_key, path->slots[0]); path 169 fs/btrfs/free-space-cache.c btrfs_release_path(path); path 174 fs/btrfs/free-space-cache.c ret = btrfs_insert_empty_item(trans, root, path, &key, path 177 fs/btrfs/free-space-cache.c btrfs_release_path(path); path 181 fs/btrfs/free-space-cache.c leaf = path->nodes[0]; path 182 fs/btrfs/free-space-cache.c header = btrfs_item_ptr(leaf, path->slots[0], path 187 fs/btrfs/free-space-cache.c btrfs_release_path(path); path 194 fs/btrfs/free-space-cache.c struct btrfs_path *path) path 203 fs/btrfs/free-space-cache.c return __create_free_space_inode(trans->fs_info->tree_root, trans, path, path 235 fs/btrfs/free-space-cache.c struct btrfs_path *path = btrfs_alloc_path(); path 237 fs/btrfs/free-space-cache.c if (!path) { path 246 fs/btrfs/free-space-cache.c btrfs_wait_cache_io(trans, block_group, path); path 257 fs/btrfs/free-space-cache.c btrfs_free_path(path); path 668 fs/btrfs/free-space-cache.c struct btrfs_path *path, u64 offset) path 691 fs/btrfs/free-space-cache.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 695 fs/btrfs/free-space-cache.c btrfs_release_path(path); path 701 fs/btrfs/free-space-cache.c leaf = path->nodes[0]; path 702 fs/btrfs/free-space-cache.c header = btrfs_item_ptr(leaf, path->slots[0], path 707 fs/btrfs/free-space-cache.c btrfs_release_path(path); path 828 fs/btrfs/free-space-cache.c struct btrfs_path *path; path 844 fs/btrfs/free-space-cache.c path = btrfs_alloc_path(); path 845 fs/btrfs/free-space-cache.c if (!path) path 847 fs/btrfs/free-space-cache.c path->search_commit_root = 1; path 848 fs/btrfs/free-space-cache.c path->skip_locking = 1; path 869 fs/btrfs/free-space-cache.c inode = lookup_free_space_inode(block_group, path); path 871 fs/btrfs/free-space-cache.c btrfs_free_path(path); path 879 fs/btrfs/free-space-cache.c btrfs_free_path(path); path 885 fs/btrfs/free-space-cache.c path, block_group->key.objectid); path 886 fs/btrfs/free-space-cache.c btrfs_free_path(path); path 1000 fs/btrfs/free-space-cache.c struct btrfs_path *path, u64 offset, path 1012 fs/btrfs/free-space-cache.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); path 1018 fs/btrfs/free-space-cache.c leaf = path->nodes[0]; path 1021 fs/btrfs/free-space-cache.c ASSERT(path->slots[0]); path 1022 fs/btrfs/free-space-cache.c path->slots[0]--; path 1023 fs/btrfs/free-space-cache.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); path 1029 fs/btrfs/free-space-cache.c btrfs_release_path(path); path 1035 fs/btrfs/free-space-cache.c header = btrfs_item_ptr(leaf, path->slots[0], path 1041 fs/btrfs/free-space-cache.c btrfs_release_path(path); path 1152 fs/btrfs/free-space-cache.c struct btrfs_path *path, u64 offset) path 1166 fs/btrfs/free-space-cache.c ret = update_cache_item(trans, root, inode, path, offset, path 1213 fs/btrfs/free-space-cache.c struct btrfs_path *path) path 1215 fs/btrfs/free-space-cache.c return __btrfs_wait_cache_io(root, trans, NULL, io_ctl, path, 0); path 1220 fs/btrfs/free-space-cache.c struct btrfs_path *path) path 1224 fs/btrfs/free-space-cache.c path, block_group->key.objectid); path 1379 fs/btrfs/free-space-cache.c struct btrfs_path *path) path 1393 fs/btrfs/free-space-cache.c inode = lookup_free_space_inode(block_group, path); path 3478 fs/btrfs/free-space-cache.c struct btrfs_path *path) path 3489 fs/btrfs/free-space-cache.c inode = __lookup_free_space_inode(root, path, 0); path 3503 fs/btrfs/free-space-cache.c struct btrfs_path *path) path 3505 fs/btrfs/free-space-cache.c return __create_free_space_inode(root, trans, path, path 3512 fs/btrfs/free-space-cache.c struct btrfs_path *path; path 3527 fs/btrfs/free-space-cache.c path = btrfs_alloc_path(); path 3528 fs/btrfs/free-space-cache.c if (!path) path 3531 fs/btrfs/free-space-cache.c inode = lookup_free_ino_inode(root, path); path 3538 fs/btrfs/free-space-cache.c ret = __load_free_space_cache(root, inode, ctl, path, 0); path 3547 fs/btrfs/free-space-cache.c btrfs_free_path(path); path 3553 fs/btrfs/free-space-cache.c struct btrfs_path *path, path 3575 fs/btrfs/free-space-cache.c ret = btrfs_wait_cache_io_root(root, trans, &io_ctl, path); path 55 fs/btrfs/free-space-cache.h struct btrfs_path *path); path 58 fs/btrfs/free-space-cache.h struct btrfs_path *path); path 68 fs/btrfs/free-space-cache.h struct btrfs_path *path); path 71 fs/btrfs/free-space-cache.h struct btrfs_path *path); path 73 fs/btrfs/free-space-cache.h struct btrfs_path *path); path 76 fs/btrfs/free-space-cache.h struct btrfs_path *path); path 81 fs/btrfs/free-space-cache.h struct btrfs_path *path, path 17 fs/btrfs/free-space-tree.c struct btrfs_path *path); path 49 fs/btrfs/free-space-tree.c struct btrfs_path *path) path 61 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); path 65 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; path 66 fs/btrfs/free-space-tree.c info = btrfs_item_ptr(leaf, path->slots[0], path 74 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 82 fs/btrfs/free-space-tree.c struct btrfs_path *path, int cow) path 93 fs/btrfs/free-space-tree.c ret = btrfs_search_slot(trans, root, &key, path, 0, cow); path 103 fs/btrfs/free-space-tree.c return btrfs_item_ptr(path->nodes[0], path->slots[0], path 184 fs/btrfs/free-space-tree.c struct btrfs_path *path) path 216 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); path 220 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; path 222 fs/btrfs/free-space-tree.c path->slots[0]++; path 223 fs/btrfs/free-space-tree.c while (path->slots[0] > 0) { path 224 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); path 246 fs/btrfs/free-space-tree.c path->slots[0]--; path 252 fs/btrfs/free-space-tree.c ret = btrfs_del_items(trans, root, path, path->slots[0], nr); path 255 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 258 fs/btrfs/free-space-tree.c info = search_free_space_info(trans, block_group, path, 1); path 263 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; path 269 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 297 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, path 302 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; path 303 fs/btrfs/free-space-tree.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); path 307 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 324 fs/btrfs/free-space-tree.c struct btrfs_path *path) path 355 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); path 359 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; path 361 fs/btrfs/free-space-tree.c path->slots[0]++; path 362 fs/btrfs/free-space-tree.c while (path->slots[0] > 0) { path 363 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); path 386 fs/btrfs/free-space-tree.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0] - 1); path 391 fs/btrfs/free-space-tree.c path->slots[0]--; path 397 fs/btrfs/free-space-tree.c ret = btrfs_del_items(trans, root, path, path->slots[0], nr); path 400 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 403 fs/btrfs/free-space-tree.c info = search_free_space_info(trans, block_group, path, 1); path 408 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; path 414 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 427 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); path 430 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 457 fs/btrfs/free-space-tree.c struct btrfs_path *path, path 468 fs/btrfs/free-space-tree.c info = search_free_space_info(trans, block_group, path, 1); path 473 fs/btrfs/free-space-tree.c flags = btrfs_free_space_flags(path->nodes[0], info); path 474 fs/btrfs/free-space-tree.c extent_count = btrfs_free_space_extent_count(path->nodes[0], info); path 477 fs/btrfs/free-space-tree.c btrfs_set_free_space_extent_count(path->nodes[0], info, extent_count); path 478 fs/btrfs/free-space-tree.c btrfs_mark_buffer_dirty(path->nodes[0]); path 479 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 483 fs/btrfs/free-space-tree.c ret = convert_free_space_to_bitmaps(trans, block_group, path); path 486 fs/btrfs/free-space-tree.c ret = convert_free_space_to_extents(trans, block_group, path); path 495 fs/btrfs/free-space-tree.c struct btrfs_path *path, u64 offset) path 502 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; path 503 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 510 fs/btrfs/free-space-tree.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); path 517 fs/btrfs/free-space-tree.c struct btrfs_path *path, u64 *start, u64 *size, path 527 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; path 528 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 539 fs/btrfs/free-space-tree.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); path 585 fs/btrfs/free-space-tree.c struct btrfs_path *path, path 607 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, 0, 1); path 611 fs/btrfs/free-space-tree.c prev_bit = free_space_test_bit(block_group, path, prev_block); path 614 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 616 fs/btrfs/free-space-tree.c ret = free_space_next_bitmap(trans, root, path); path 625 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, 0, 1); path 639 fs/btrfs/free-space-tree.c free_space_set_bits(block_group, path, &cur_start, &cur_size, path 643 fs/btrfs/free-space-tree.c ret = free_space_next_bitmap(trans, root, path); path 654 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 656 fs/btrfs/free-space-tree.c ret = free_space_next_bitmap(trans, root, path); path 661 fs/btrfs/free-space-tree.c next_bit = free_space_test_bit(block_group, path, end); path 688 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 689 fs/btrfs/free-space-tree.c ret = update_free_space_extent_count(trans, block_group, path, path 698 fs/btrfs/free-space-tree.c struct btrfs_path *path, path 712 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); path 716 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 744 fs/btrfs/free-space-tree.c ret = btrfs_del_item(trans, root, path); path 754 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 755 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); path 767 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 768 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); path 774 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 775 fs/btrfs/free-space-tree.c ret = update_free_space_extent_count(trans, block_group, path, path 785 fs/btrfs/free-space-tree.c struct btrfs_path *path, u64 start, u64 size) path 792 fs/btrfs/free-space-tree.c ret = __add_block_group_free_space(trans, block_group, path); path 797 fs/btrfs/free-space-tree.c info = search_free_space_info(NULL, block_group, path, 0); path 800 fs/btrfs/free-space-tree.c flags = btrfs_free_space_flags(path->nodes[0], info); path 801 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 804 fs/btrfs/free-space-tree.c return modify_free_space_bitmap(trans, block_group, path, path 807 fs/btrfs/free-space-tree.c return remove_free_space_extent(trans, block_group, path, path 816 fs/btrfs/free-space-tree.c struct btrfs_path *path; path 822 fs/btrfs/free-space-tree.c path = btrfs_alloc_path(); path 823 fs/btrfs/free-space-tree.c if (!path) { path 836 fs/btrfs/free-space-tree.c ret = __remove_from_free_space_tree(trans, block_group, path, start, path 842 fs/btrfs/free-space-tree.c btrfs_free_path(path); path 850 fs/btrfs/free-space-tree.c struct btrfs_path *path, path 889 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); path 893 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 897 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 912 fs/btrfs/free-space-tree.c ret = btrfs_del_item(trans, root, path); path 919 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 929 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); path 933 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 937 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 953 fs/btrfs/free-space-tree.c ret = btrfs_del_item(trans, root, path); path 959 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 963 fs/btrfs/free-space-tree.c ret = btrfs_insert_empty_item(trans, root, path, &new_key, 0); path 967 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 968 fs/btrfs/free-space-tree.c ret = update_free_space_extent_count(trans, block_group, path, path 978 fs/btrfs/free-space-tree.c struct btrfs_path *path, u64 start, u64 size) path 985 fs/btrfs/free-space-tree.c ret = __add_block_group_free_space(trans, block_group, path); path 990 fs/btrfs/free-space-tree.c info = search_free_space_info(NULL, block_group, path, 0); path 993 fs/btrfs/free-space-tree.c flags = btrfs_free_space_flags(path->nodes[0], info); path 994 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 997 fs/btrfs/free-space-tree.c return modify_free_space_bitmap(trans, block_group, path, path 1000 fs/btrfs/free-space-tree.c return add_free_space_extent(trans, block_group, path, start, path 1009 fs/btrfs/free-space-tree.c struct btrfs_path *path; path 1015 fs/btrfs/free-space-tree.c path = btrfs_alloc_path(); path 1016 fs/btrfs/free-space-tree.c if (!path) { path 1029 fs/btrfs/free-space-tree.c ret = __add_to_free_space_tree(trans, block_group, path, start, size); path 1034 fs/btrfs/free-space-tree.c btrfs_free_path(path); path 1049 fs/btrfs/free-space-tree.c struct btrfs_path *path, *path2; path 1054 fs/btrfs/free-space-tree.c path = btrfs_alloc_path(); path 1055 fs/btrfs/free-space-tree.c if (!path) path 1057 fs/btrfs/free-space-tree.c path->reada = READA_FORWARD; path 1061 fs/btrfs/free-space-tree.c btrfs_free_path(path); path 1082 fs/btrfs/free-space-tree.c ret = btrfs_search_slot_for_read(extent_root, &key, path, 1, 0); path 1090 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 1116 fs/btrfs/free-space-tree.c ret = btrfs_next_item(extent_root, path); path 1134 fs/btrfs/free-space-tree.c btrfs_free_path(path); path 1186 fs/btrfs/free-space-tree.c struct btrfs_path *path; path 1191 fs/btrfs/free-space-tree.c path = btrfs_alloc_path(); path 1192 fs/btrfs/free-space-tree.c if (!path) path 1195 fs/btrfs/free-space-tree.c path->leave_spinning = 1; path 1202 fs/btrfs/free-space-tree.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 1206 fs/btrfs/free-space-tree.c nr = btrfs_header_nritems(path->nodes[0]); path 1210 fs/btrfs/free-space-tree.c path->slots[0] = 0; path 1211 fs/btrfs/free-space-tree.c ret = btrfs_del_items(trans, root, path, 0, nr); path 1215 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 1220 fs/btrfs/free-space-tree.c btrfs_free_path(path); path 1269 fs/btrfs/free-space-tree.c struct btrfs_path *path) path 1275 fs/btrfs/free-space-tree.c ret = add_new_free_space_info(trans, block_group, path); path 1279 fs/btrfs/free-space-tree.c return __add_to_free_space_tree(trans, block_group, path, path 1288 fs/btrfs/free-space-tree.c struct btrfs_path *path = NULL; path 1298 fs/btrfs/free-space-tree.c path = btrfs_alloc_path(); path 1299 fs/btrfs/free-space-tree.c if (!path) { path 1304 fs/btrfs/free-space-tree.c ret = __add_block_group_free_space(trans, block_group, path); path 1307 fs/btrfs/free-space-tree.c btrfs_free_path(path); path 1318 fs/btrfs/free-space-tree.c struct btrfs_path *path; path 1333 fs/btrfs/free-space-tree.c path = btrfs_alloc_path(); path 1334 fs/btrfs/free-space-tree.c if (!path) { path 1347 fs/btrfs/free-space-tree.c ret = btrfs_search_prev_slot(trans, root, &key, path, -1, 1); path 1351 fs/btrfs/free-space-tree.c leaf = path->nodes[0]; path 1353 fs/btrfs/free-space-tree.c path->slots[0]++; path 1354 fs/btrfs/free-space-tree.c while (path->slots[0] > 0) { path 1355 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); path 1362 fs/btrfs/free-space-tree.c path->slots[0]--; path 1370 fs/btrfs/free-space-tree.c path->slots[0]--; path 1376 fs/btrfs/free-space-tree.c ret = btrfs_del_items(trans, root, path, path->slots[0], nr); path 1379 fs/btrfs/free-space-tree.c btrfs_release_path(path); path 1384 fs/btrfs/free-space-tree.c btrfs_free_path(path); path 1391 fs/btrfs/free-space-tree.c struct btrfs_path *path, path 1413 fs/btrfs/free-space-tree.c ret = btrfs_next_item(root, path); path 1419 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 1431 fs/btrfs/free-space-tree.c bit = free_space_test_bit(block_group, path, offset); path 1472 fs/btrfs/free-space-tree.c struct btrfs_path *path, path 1491 fs/btrfs/free-space-tree.c ret = btrfs_next_item(root, path); path 1497 fs/btrfs/free-space-tree.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 1537 fs/btrfs/free-space-tree.c struct btrfs_path *path; path 1543 fs/btrfs/free-space-tree.c path = btrfs_alloc_path(); path 1544 fs/btrfs/free-space-tree.c if (!path) path 1551 fs/btrfs/free-space-tree.c path->skip_locking = 1; path 1552 fs/btrfs/free-space-tree.c path->search_commit_root = 1; path 1553 fs/btrfs/free-space-tree.c path->reada = READA_FORWARD; path 1555 fs/btrfs/free-space-tree.c info = search_free_space_info(NULL, block_group, path, 0); path 1560 fs/btrfs/free-space-tree.c extent_count = btrfs_free_space_extent_count(path->nodes[0], info); path 1561 fs/btrfs/free-space-tree.c flags = btrfs_free_space_flags(path->nodes[0], info); path 1569 fs/btrfs/free-space-tree.c ret = load_free_space_bitmaps(caching_ctl, path, extent_count); path 1571 fs/btrfs/free-space-tree.c ret = load_free_space_extents(caching_ctl, path, extent_count); path 1574 fs/btrfs/free-space-tree.c btrfs_free_path(path); path 36 fs/btrfs/free-space-tree.h struct btrfs_path *path, int cow); path 39 fs/btrfs/free-space-tree.h struct btrfs_path *path, u64 start, u64 size); path 42 fs/btrfs/free-space-tree.h struct btrfs_path *path, u64 start, u64 size); path 45 fs/btrfs/free-space-tree.h struct btrfs_path *path); path 48 fs/btrfs/free-space-tree.h struct btrfs_path *path); path 50 fs/btrfs/free-space-tree.h struct btrfs_path *path, u64 offset); path 76 fs/btrfs/inode-item.c struct btrfs_path *path, path 88 fs/btrfs/inode-item.c ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); path 93 fs/btrfs/inode-item.c return btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], path 104 fs/btrfs/inode-item.c struct btrfs_path *path; path 118 fs/btrfs/inode-item.c path = btrfs_alloc_path(); path 119 fs/btrfs/inode-item.c if (!path) path 122 fs/btrfs/inode-item.c path->leave_spinning = 1; path 124 fs/btrfs/inode-item.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 135 fs/btrfs/inode-item.c extref = btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], path 143 fs/btrfs/inode-item.c leaf = path->nodes[0]; path 144 fs/btrfs/inode-item.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); path 153 fs/btrfs/inode-item.c ret = btrfs_del_item(trans, root, path); path 158 fs/btrfs/inode-item.c item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); path 163 fs/btrfs/inode-item.c btrfs_truncate_item(path, item_size - del_len, 1); path 166 fs/btrfs/inode-item.c btrfs_free_path(path); path 176 fs/btrfs/inode-item.c struct btrfs_path *path; path 192 fs/btrfs/inode-item.c path = btrfs_alloc_path(); path 193 fs/btrfs/inode-item.c if (!path) path 196 fs/btrfs/inode-item.c path->leave_spinning = 1; path 198 fs/btrfs/inode-item.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 207 fs/btrfs/inode-item.c ref = btrfs_find_name_in_backref(path->nodes[0], path->slots[0], name, path 214 fs/btrfs/inode-item.c leaf = path->nodes[0]; path 215 fs/btrfs/inode-item.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); path 221 fs/btrfs/inode-item.c ret = btrfs_del_item(trans, root, path); path 226 fs/btrfs/inode-item.c item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); path 229 fs/btrfs/inode-item.c btrfs_truncate_item(path, item_size - sub_item_len, 1); path 231 fs/btrfs/inode-item.c btrfs_free_path(path); path 260 fs/btrfs/inode-item.c struct btrfs_path *path; path 269 fs/btrfs/inode-item.c path = btrfs_alloc_path(); path 270 fs/btrfs/inode-item.c if (!path) path 273 fs/btrfs/inode-item.c path->leave_spinning = 1; path 274 fs/btrfs/inode-item.c ret = btrfs_insert_empty_item(trans, root, path, &key, path 277 fs/btrfs/inode-item.c if (btrfs_find_name_in_ext_backref(path->nodes[0], path 278 fs/btrfs/inode-item.c path->slots[0], path 283 fs/btrfs/inode-item.c btrfs_extend_item(path, ins_len); path 289 fs/btrfs/inode-item.c leaf = path->nodes[0]; path 290 fs/btrfs/inode-item.c item = btrfs_item_nr(path->slots[0]); path 291 fs/btrfs/inode-item.c ptr = (unsigned long)btrfs_item_ptr(leaf, path->slots[0], char); path 295 fs/btrfs/inode-item.c btrfs_set_inode_extref_name_len(path->nodes[0], extref, name_len); path 296 fs/btrfs/inode-item.c btrfs_set_inode_extref_index(path->nodes[0], extref, index); path 297 fs/btrfs/inode-item.c btrfs_set_inode_extref_parent(path->nodes[0], extref, ref_objectid); path 300 fs/btrfs/inode-item.c write_extent_buffer(path->nodes[0], name, ptr, name_len); path 301 fs/btrfs/inode-item.c btrfs_mark_buffer_dirty(path->nodes[0]); path 304 fs/btrfs/inode-item.c btrfs_free_path(path); path 315 fs/btrfs/inode-item.c struct btrfs_path *path; path 326 fs/btrfs/inode-item.c path = btrfs_alloc_path(); path 327 fs/btrfs/inode-item.c if (!path) path 330 fs/btrfs/inode-item.c path->leave_spinning = 1; path 331 fs/btrfs/inode-item.c path->skip_release_on_error = 1; path 332 fs/btrfs/inode-item.c ret = btrfs_insert_empty_item(trans, root, path, &key, path 336 fs/btrfs/inode-item.c ref = btrfs_find_name_in_backref(path->nodes[0], path->slots[0], path 341 fs/btrfs/inode-item.c old_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]); path 342 fs/btrfs/inode-item.c btrfs_extend_item(path, ins_len); path 343 fs/btrfs/inode-item.c ref = btrfs_item_ptr(path->nodes[0], path->slots[0], path 346 fs/btrfs/inode-item.c btrfs_set_inode_ref_name_len(path->nodes[0], ref, name_len); path 347 fs/btrfs/inode-item.c btrfs_set_inode_ref_index(path->nodes[0], ref, index); path 352 fs/btrfs/inode-item.c if (btrfs_find_name_in_backref(path->nodes[0], path 353 fs/btrfs/inode-item.c path->slots[0], path 361 fs/btrfs/inode-item.c ref = btrfs_item_ptr(path->nodes[0], path->slots[0], path 363 fs/btrfs/inode-item.c btrfs_set_inode_ref_name_len(path->nodes[0], ref, name_len); path 364 fs/btrfs/inode-item.c btrfs_set_inode_ref_index(path->nodes[0], ref, index); path 367 fs/btrfs/inode-item.c write_extent_buffer(path->nodes[0], name, ptr, name_len); path 368 fs/btrfs/inode-item.c btrfs_mark_buffer_dirty(path->nodes[0]); path 371 fs/btrfs/inode-item.c btrfs_free_path(path); path 390 fs/btrfs/inode-item.c struct btrfs_path *path, u64 objectid) path 398 fs/btrfs/inode-item.c ret = btrfs_insert_empty_item(trans, root, path, &key, path 404 fs/btrfs/inode-item.c *root, struct btrfs_path *path, path 414 fs/btrfs/inode-item.c ret = btrfs_search_slot(trans, root, location, path, ins_len, cow); path 416 fs/btrfs/inode-item.c location->offset == (u64)-1 && path->slots[0] != 0) { path 417 fs/btrfs/inode-item.c slot = path->slots[0] - 1; path 418 fs/btrfs/inode-item.c leaf = path->nodes[0]; path 422 fs/btrfs/inode-item.c path->slots[0]--; path 35 fs/btrfs/inode-map.c struct btrfs_path *path; path 44 fs/btrfs/inode-map.c path = btrfs_alloc_path(); path 45 fs/btrfs/inode-map.c if (!path) { path 51 fs/btrfs/inode-map.c path->skip_locking = 1; path 52 fs/btrfs/inode-map.c path->search_commit_root = 1; path 53 fs/btrfs/inode-map.c path->reada = READA_FORWARD; path 62 fs/btrfs/inode-map.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 70 fs/btrfs/inode-map.c leaf = path->nodes[0]; path 71 fs/btrfs/inode-map.c slot = path->slots[0]; path 73 fs/btrfs/inode-map.c ret = btrfs_next_leaf(root, path); path 81 fs/btrfs/inode-map.c leaf = path->nodes[0]; path 91 fs/btrfs/inode-map.c btrfs_release_path(path); path 116 fs/btrfs/inode-map.c path->slots[0]++; path 134 fs/btrfs/inode-map.c btrfs_free_path(path); path 401 fs/btrfs/inode-map.c struct btrfs_path *path; path 424 fs/btrfs/inode-map.c path = btrfs_alloc_path(); path 425 fs/btrfs/inode-map.c if (!path) path 448 fs/btrfs/inode-map.c inode = lookup_free_ino_inode(root, path); path 458 fs/btrfs/inode-map.c ret = create_free_ino_inode(root, trans, path); path 509 fs/btrfs/inode-map.c ret = btrfs_write_out_ino_cache(root, trans, path, inode); path 522 fs/btrfs/inode-map.c btrfs_free_path(path); path 529 fs/btrfs/inode-map.c struct btrfs_path *path; path 536 fs/btrfs/inode-map.c path = btrfs_alloc_path(); path 537 fs/btrfs/inode-map.c if (!path) path 543 fs/btrfs/inode-map.c ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); path 547 fs/btrfs/inode-map.c if (path->slots[0] > 0) { path 548 fs/btrfs/inode-map.c slot = path->slots[0] - 1; path 549 fs/btrfs/inode-map.c l = path->nodes[0]; path 558 fs/btrfs/inode-map.c btrfs_free_path(path); path 167 fs/btrfs/inode.c struct btrfs_path *path, int extent_inserted, path 199 fs/btrfs/inode.c path->leave_spinning = 1; path 200 fs/btrfs/inode.c ret = btrfs_insert_empty_item(trans, root, path, &key, path 205 fs/btrfs/inode.c leaf = path->nodes[0]; path 206 fs/btrfs/inode.c ei = btrfs_item_ptr(leaf, path->slots[0], path 244 fs/btrfs/inode.c btrfs_release_path(path); path 282 fs/btrfs/inode.c struct btrfs_path *path; path 299 fs/btrfs/inode.c path = btrfs_alloc_path(); path 300 fs/btrfs/inode.c if (!path) path 305 fs/btrfs/inode.c btrfs_free_path(path); path 317 fs/btrfs/inode.c ret = __btrfs_drop_extents(trans, root, inode, path, path 327 fs/btrfs/inode.c ret = insert_inline_extent(trans, path, extent_inserted, path 349 fs/btrfs/inode.c btrfs_free_path(path); path 1340 fs/btrfs/inode.c struct btrfs_path *path; path 1350 fs/btrfs/inode.c path = btrfs_alloc_path(); path 1351 fs/btrfs/inode.c if (!path) { path 1375 fs/btrfs/inode.c ret = btrfs_lookup_file_extent(NULL, root, path, ino, path 1385 fs/btrfs/inode.c if (ret > 0 && path->slots[0] > 0 && check_prev) { path 1386 fs/btrfs/inode.c leaf = path->nodes[0]; path 1388 fs/btrfs/inode.c path->slots[0] - 1); path 1391 fs/btrfs/inode.c path->slots[0]--; path 1396 fs/btrfs/inode.c leaf = path->nodes[0]; path 1397 fs/btrfs/inode.c if (path->slots[0] >= btrfs_header_nritems(leaf)) { path 1398 fs/btrfs/inode.c ret = btrfs_next_leaf(root, path); path 1406 fs/btrfs/inode.c leaf = path->nodes[0]; path 1409 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); path 1420 fs/btrfs/inode.c path->slots[0]++; path 1443 fs/btrfs/inode.c fi = btrfs_item_ptr(leaf, path->slots[0], path 1461 fs/btrfs/inode.c path->slots[0]++; path 1542 fs/btrfs/inode.c path->slots[0]++; path 1560 fs/btrfs/inode.c path->slots[0]++; path 1564 fs/btrfs/inode.c btrfs_release_path(path); path 1656 fs/btrfs/inode.c btrfs_release_path(path); path 1681 fs/btrfs/inode.c btrfs_free_path(path); path 2368 fs/btrfs/inode.c struct btrfs_path *path; path 2375 fs/btrfs/inode.c path = btrfs_alloc_path(); path 2376 fs/btrfs/inode.c if (!path) path 2388 fs/btrfs/inode.c ret = __btrfs_drop_extents(trans, root, inode, path, file_pos, path 2399 fs/btrfs/inode.c path->leave_spinning = 1; path 2400 fs/btrfs/inode.c ret = btrfs_insert_empty_item(trans, root, path, &ins, path 2405 fs/btrfs/inode.c leaf = path->nodes[0]; path 2406 fs/btrfs/inode.c fi = btrfs_item_ptr(leaf, path->slots[0], path 2420 fs/btrfs/inode.c btrfs_release_path(path); path 2440 fs/btrfs/inode.c btrfs_free_path(path); path 2471 fs/btrfs/inode.c struct btrfs_path *path; path 2545 fs/btrfs/inode.c struct btrfs_path *path = new->path; path 2582 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 2590 fs/btrfs/inode.c leaf = path->nodes[0]; path 2591 fs/btrfs/inode.c slot = path->slots[0]; path 2594 fs/btrfs/inode.c ret = btrfs_next_leaf(root, path); path 2604 fs/btrfs/inode.c path->slots[0]++; path 2654 fs/btrfs/inode.c btrfs_release_path(path); path 2659 fs/btrfs/inode.c static noinline bool record_extent_backrefs(struct btrfs_path *path, path 2666 fs/btrfs/inode.c new->path = path; path 2671 fs/btrfs/inode.c path, record_one_backref, path 2712 fs/btrfs/inode.c static noinline int relink_extent_backref(struct btrfs_path *path, path 2797 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 2805 fs/btrfs/inode.c extent = btrfs_item_ptr(path->nodes[0], path->slots[0], path 2808 fs/btrfs/inode.c if (btrfs_file_extent_generation(path->nodes[0], extent) != path 2812 fs/btrfs/inode.c btrfs_release_path(path); path 2832 fs/btrfs/inode.c path->leave_spinning = 1; path 2838 fs/btrfs/inode.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); path 2842 fs/btrfs/inode.c path->slots[0]--; path 2843 fs/btrfs/inode.c leaf = path->nodes[0]; path 2844 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); path 2846 fs/btrfs/inode.c fi = btrfs_item_ptr(leaf, path->slots[0], path 2861 fs/btrfs/inode.c btrfs_release_path(path); path 2866 fs/btrfs/inode.c ret = btrfs_insert_empty_item(trans, root, path, &key, path 2873 fs/btrfs/inode.c leaf = path->nodes[0]; path 2874 fs/btrfs/inode.c item = btrfs_item_ptr(leaf, path->slots[0], path 2889 fs/btrfs/inode.c btrfs_release_path(path); path 2903 fs/btrfs/inode.c btrfs_release_path(path); path 2904 fs/btrfs/inode.c path->leave_spinning = 0; path 2929 fs/btrfs/inode.c struct btrfs_path *path; path 2935 fs/btrfs/inode.c path = btrfs_alloc_path(); path 2936 fs/btrfs/inode.c if (!path) path 2939 fs/btrfs/inode.c if (!record_extent_backrefs(path, new)) { path 2940 fs/btrfs/inode.c btrfs_free_path(path); path 2943 fs/btrfs/inode.c btrfs_release_path(path); path 2953 fs/btrfs/inode.c ret = relink_extent_backref(path, prev, backref); path 2966 fs/btrfs/inode.c btrfs_free_path(path); path 2980 fs/btrfs/inode.c struct btrfs_path *path; path 2999 fs/btrfs/inode.c path = btrfs_alloc_path(); path 3000 fs/btrfs/inode.c if (!path) path 3007 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 3010 fs/btrfs/inode.c if (ret > 0 && path->slots[0] > 0) path 3011 fs/btrfs/inode.c path->slots[0]--; path 3024 fs/btrfs/inode.c l = path->nodes[0]; path 3025 fs/btrfs/inode.c slot = path->slots[0]; path 3028 fs/btrfs/inode.c ret = btrfs_next_leaf(root, path); path 3072 fs/btrfs/inode.c path->slots[0]++; path 3076 fs/btrfs/inode.c btrfs_free_path(path); path 3082 fs/btrfs/inode.c btrfs_free_path(path); path 3548 fs/btrfs/inode.c struct btrfs_path *path; path 3559 fs/btrfs/inode.c path = btrfs_alloc_path(); path 3560 fs/btrfs/inode.c if (!path) { path 3564 fs/btrfs/inode.c path->reada = READA_BACK; path 3571 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 3582 fs/btrfs/inode.c if (path->slots[0] == 0) path 3584 fs/btrfs/inode.c path->slots[0]--; path 3588 fs/btrfs/inode.c leaf = path->nodes[0]; path 3589 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); path 3598 fs/btrfs/inode.c btrfs_release_path(path); path 3700 fs/btrfs/inode.c btrfs_release_path(path); path 3716 fs/btrfs/inode.c btrfs_free_path(path); path 3796 fs/btrfs/inode.c struct btrfs_path *path = in_path; path 3812 fs/btrfs/inode.c if (!path) { path 3813 fs/btrfs/inode.c path = btrfs_alloc_path(); path 3814 fs/btrfs/inode.c if (!path) path 3820 fs/btrfs/inode.c ret = btrfs_lookup_inode(NULL, root, path, &location, 0); path 3822 fs/btrfs/inode.c if (path != in_path) path 3823 fs/btrfs/inode.c btrfs_free_path(path); path 3827 fs/btrfs/inode.c leaf = path->nodes[0]; path 3832 fs/btrfs/inode.c inode_item = btrfs_item_ptr(leaf, path->slots[0], path 3910 fs/btrfs/inode.c path->slots[0]++; path 3912 fs/btrfs/inode.c path->slots[0] >= btrfs_header_nritems(leaf)) path 3915 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &location, path->slots[0]); path 3919 fs/btrfs/inode.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); path 3937 fs/btrfs/inode.c maybe_acls = acls_after_inode_item(leaf, path->slots[0], path 3940 fs/btrfs/inode.c path->slots[0] = first_xattr_slot; path 3941 fs/btrfs/inode.c ret = btrfs_load_inode_props(inode, path); path 3948 fs/btrfs/inode.c if (path != in_path) path 3949 fs/btrfs/inode.c btrfs_free_path(path); path 4038 fs/btrfs/inode.c struct btrfs_path *path; path 4042 fs/btrfs/inode.c path = btrfs_alloc_path(); path 4043 fs/btrfs/inode.c if (!path) path 4046 fs/btrfs/inode.c path->leave_spinning = 1; path 4047 fs/btrfs/inode.c ret = btrfs_lookup_inode(trans, root, path, &BTRFS_I(inode)->location, path 4055 fs/btrfs/inode.c leaf = path->nodes[0]; path 4056 fs/btrfs/inode.c inode_item = btrfs_item_ptr(leaf, path->slots[0], path 4064 fs/btrfs/inode.c btrfs_free_path(path); path 4122 fs/btrfs/inode.c struct btrfs_path *path; path 4129 fs/btrfs/inode.c path = btrfs_alloc_path(); path 4130 fs/btrfs/inode.c if (!path) { path 4135 fs/btrfs/inode.c path->leave_spinning = 1; path 4136 fs/btrfs/inode.c di = btrfs_lookup_dir_item(trans, root, path, dir_ino, path 4142 fs/btrfs/inode.c ret = btrfs_delete_one_dir_name(trans, root, path, di); path 4145 fs/btrfs/inode.c btrfs_release_path(path); path 4206 fs/btrfs/inode.c btrfs_free_path(path); path 4293 fs/btrfs/inode.c struct btrfs_path *path; path 4313 fs/btrfs/inode.c path = btrfs_alloc_path(); path 4314 fs/btrfs/inode.c if (!path) path 4317 fs/btrfs/inode.c di = btrfs_lookup_dir_item(trans, root, path, dir_ino, path 4324 fs/btrfs/inode.c leaf = path->nodes[0]; path 4327 fs/btrfs/inode.c ret = btrfs_delete_one_dir_name(trans, root, path, di); path 4332 fs/btrfs/inode.c btrfs_release_path(path); path 4344 fs/btrfs/inode.c di = btrfs_search_dir_index_item(root, path, dir_ino, path 4355 fs/btrfs/inode.c leaf = path->nodes[0]; path 4356 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 4358 fs/btrfs/inode.c btrfs_release_path(path); path 4382 fs/btrfs/inode.c btrfs_free_path(path); path 4393 fs/btrfs/inode.c struct btrfs_path *path; path 4399 fs/btrfs/inode.c path = btrfs_alloc_path(); path 4400 fs/btrfs/inode.c if (!path) path 4405 fs/btrfs/inode.c di = btrfs_lookup_dir_item(NULL, fs_info->tree_root, path, path 4408 fs/btrfs/inode.c btrfs_dir_item_key_to_cpu(path->nodes[0], di, &key); path 4416 fs/btrfs/inode.c btrfs_release_path(path); path 4423 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); path 4429 fs/btrfs/inode.c if (path->slots[0] > 0) { path 4430 fs/btrfs/inode.c path->slots[0]--; path 4431 fs/btrfs/inode.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 4437 fs/btrfs/inode.c btrfs_free_path(path); path 4716 fs/btrfs/inode.c struct btrfs_path *path; path 4750 fs/btrfs/inode.c path = btrfs_alloc_path(); path 4751 fs/btrfs/inode.c if (!path) path 4753 fs/btrfs/inode.c path->reada = READA_BACK; path 4795 fs/btrfs/inode.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 4804 fs/btrfs/inode.c if (path->slots[0] == 0) path 4806 fs/btrfs/inode.c path->slots[0]--; path 4811 fs/btrfs/inode.c leaf = path->nodes[0]; path 4812 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); path 4823 fs/btrfs/inode.c fi = btrfs_item_ptr(leaf, path->slots[0], path 4838 fs/btrfs/inode.c BTRFS_I(inode), leaf, fi, path->slots[0], path 4905 fs/btrfs/inode.c btrfs_truncate_item(path, size, 1); path 4926 fs/btrfs/inode.c pending_del_slot = path->slots[0]; path 4929 fs/btrfs/inode.c path->slots[0] + 1 == pending_del_slot) { path 4932 fs/btrfs/inode.c pending_del_slot = path->slots[0]; path 4967 fs/btrfs/inode.c if (path->slots[0] == 0 || path 4968 fs/btrfs/inode.c path->slots[0] != pending_del_slot || path 4971 fs/btrfs/inode.c ret = btrfs_del_items(trans, root, path, path 4980 fs/btrfs/inode.c btrfs_release_path(path); path 5002 fs/btrfs/inode.c path->slots[0]--; path 5009 fs/btrfs/inode.c err = btrfs_del_items(trans, root, path, pending_del_slot, path 5025 fs/btrfs/inode.c btrfs_free_path(path); path 5669 fs/btrfs/inode.c struct btrfs_path *path; path 5673 fs/btrfs/inode.c path = btrfs_alloc_path(); path 5674 fs/btrfs/inode.c if (!path) path 5677 fs/btrfs/inode.c di = btrfs_lookup_dir_item(NULL, root, path, btrfs_ino(BTRFS_I(dir)), path 5684 fs/btrfs/inode.c btrfs_dir_item_key_to_cpu(path->nodes[0], di, location); path 5694 fs/btrfs/inode.c *type = btrfs_dir_type(path->nodes[0], di); path 5696 fs/btrfs/inode.c btrfs_free_path(path); path 5711 fs/btrfs/inode.c struct btrfs_path *path; path 5719 fs/btrfs/inode.c path = btrfs_alloc_path(); path 5720 fs/btrfs/inode.c if (!path) { path 5730 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); path 5737 fs/btrfs/inode.c leaf = path->nodes[0]; path 5738 fs/btrfs/inode.c ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); path 5749 fs/btrfs/inode.c btrfs_release_path(path); path 5763 fs/btrfs/inode.c btrfs_free_path(path); path 5865 fs/btrfs/inode.c struct btrfs_path *path) path 5876 fs/btrfs/inode.c ret = btrfs_read_locked_inode(inode, path); path 6097 fs/btrfs/inode.c struct btrfs_path *path; path 6114 fs/btrfs/inode.c path = btrfs_alloc_path(); path 6115 fs/btrfs/inode.c if (!path) path 6119 fs/btrfs/inode.c path->reada = READA_FORWARD; path 6130 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 6137 fs/btrfs/inode.c leaf = path->nodes[0]; path 6138 fs/btrfs/inode.c slot = path->slots[0]; path 6140 fs/btrfs/inode.c ret = btrfs_next_leaf(root, path); path 6162 fs/btrfs/inode.c btrfs_release_path(path); path 6186 fs/btrfs/inode.c path->slots[0]++; path 6188 fs/btrfs/inode.c btrfs_release_path(path); path 6224 fs/btrfs/inode.c btrfs_free_path(path); path 6298 fs/btrfs/inode.c struct btrfs_path *path; path 6306 fs/btrfs/inode.c path = btrfs_alloc_path(); path 6307 fs/btrfs/inode.c if (!path) path 6310 fs/btrfs/inode.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 6324 fs/btrfs/inode.c if (path->slots[0] == 0) { path 6329 fs/btrfs/inode.c path->slots[0]--; path 6331 fs/btrfs/inode.c leaf = path->nodes[0]; path 6332 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); path 6342 fs/btrfs/inode.c btrfs_free_path(path); path 6422 fs/btrfs/inode.c struct btrfs_path *path; path 6431 fs/btrfs/inode.c path = btrfs_alloc_path(); path 6432 fs/btrfs/inode.c if (!path) path 6439 fs/btrfs/inode.c btrfs_free_path(path); path 6461 fs/btrfs/inode.c btrfs_free_path(path); path 6518 fs/btrfs/inode.c path->leave_spinning = 1; path 6519 fs/btrfs/inode.c ret = btrfs_insert_empty_items(trans, root, path, key, sizes, nitems); path 6531 fs/btrfs/inode.c inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], path 6533 fs/btrfs/inode.c memzero_extent_buffer(path->nodes[0], (unsigned long)inode_item, path 6535 fs/btrfs/inode.c fill_inode_item(trans, path->nodes[0], inode_item, inode); path 6538 fs/btrfs/inode.c ref = btrfs_item_ptr(path->nodes[0], path->slots[0] + 1, path 6540 fs/btrfs/inode.c btrfs_set_inode_ref_name_len(path->nodes[0], ref, name_len); path 6541 fs/btrfs/inode.c btrfs_set_inode_ref_index(path->nodes[0], ref, *index); path 6543 fs/btrfs/inode.c write_extent_buffer(path->nodes[0], name, ptr, name_len); path 6546 fs/btrfs/inode.c btrfs_mark_buffer_dirty(path->nodes[0]); path 6547 fs/btrfs/inode.c btrfs_free_path(path); path 6579 fs/btrfs/inode.c btrfs_free_path(path); path 6963 fs/btrfs/inode.c static noinline int uncompress_inline(struct btrfs_path *path, path 6969 fs/btrfs/inode.c struct extent_buffer *leaf = path->nodes[0]; path 6980 fs/btrfs/inode.c btrfs_item_nr(path->slots[0])); path 7029 fs/btrfs/inode.c struct btrfs_path *path = NULL; path 7064 fs/btrfs/inode.c path = btrfs_alloc_path(); path 7065 fs/btrfs/inode.c if (!path) { path 7071 fs/btrfs/inode.c path->reada = READA_FORWARD; path 7077 fs/btrfs/inode.c path->leave_spinning = 1; path 7079 fs/btrfs/inode.c ret = btrfs_lookup_file_extent(NULL, root, path, objectid, start, 0); path 7084 fs/btrfs/inode.c if (path->slots[0] == 0) path 7086 fs/btrfs/inode.c path->slots[0]--; path 7089 fs/btrfs/inode.c leaf = path->nodes[0]; path 7090 fs/btrfs/inode.c item = btrfs_item_ptr(leaf, path->slots[0], path 7092 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); path 7130 fs/btrfs/inode.c path->slots[0], path 7135 fs/btrfs/inode.c path->slots[0]++; path 7136 fs/btrfs/inode.c if (path->slots[0] >= btrfs_header_nritems(leaf)) { path 7137 fs/btrfs/inode.c ret = btrfs_next_leaf(root, path); path 7144 fs/btrfs/inode.c leaf = path->nodes[0]; path 7146 fs/btrfs/inode.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); path 7163 fs/btrfs/inode.c btrfs_extent_item_to_extent_map(inode, path, item, path 7189 fs/btrfs/inode.c btrfs_set_path_blocking(path); path 7193 fs/btrfs/inode.c ret = uncompress_inline(path, page, pg_offset, path 7222 fs/btrfs/inode.c btrfs_release_path(path); path 7236 fs/btrfs/inode.c btrfs_free_path(path); path 7449 fs/btrfs/inode.c struct btrfs_path *path; path 7464 fs/btrfs/inode.c path = btrfs_alloc_path(); path 7465 fs/btrfs/inode.c if (!path) path 7468 fs/btrfs/inode.c ret = btrfs_lookup_file_extent(NULL, root, path, path 7473 fs/btrfs/inode.c slot = path->slots[0]; path 7483 fs/btrfs/inode.c leaf = path->nodes[0]; path 7553 fs/btrfs/inode.c btrfs_release_path(path); path 7584 fs/btrfs/inode.c btrfs_free_path(path); path 9567 fs/btrfs/inode.c static int btrfs_getattr(const struct path *path, struct kstat *stat, path 9571 fs/btrfs/inode.c struct inode *inode = d_inode(path->dentry); path 10354 fs/btrfs/inode.c struct btrfs_path *path; path 10409 fs/btrfs/inode.c path = btrfs_alloc_path(); path 10410 fs/btrfs/inode.c if (!path) { path 10418 fs/btrfs/inode.c err = btrfs_insert_empty_item(trans, root, path, &key, path 10421 fs/btrfs/inode.c btrfs_free_path(path); path 10424 fs/btrfs/inode.c leaf = path->nodes[0]; path 10425 fs/btrfs/inode.c ei = btrfs_item_ptr(leaf, path->slots[0], path 10438 fs/btrfs/inode.c btrfs_free_path(path); path 782 fs/btrfs/ioctl.c pending_snapshot->path = btrfs_alloc_path(); path 783 fs/btrfs/ioctl.c if (!pending_snapshot->root_item || !pending_snapshot->path) { path 881 fs/btrfs/ioctl.c btrfs_free_path(pending_snapshot->path); path 954 fs/btrfs/ioctl.c static noinline int btrfs_mksubvol(const struct path *parent, path 1055 fs/btrfs/ioctl.c struct btrfs_path *path; path 1063 fs/btrfs/ioctl.c path = btrfs_alloc_path(); path 1064 fs/btrfs/ioctl.c if (!path) path 1072 fs/btrfs/ioctl.c ret = btrfs_search_forward(root, &min_key, path, newer_than); path 1081 fs/btrfs/ioctl.c leaf = path->nodes[0]; path 1082 fs/btrfs/ioctl.c extent = btrfs_item_ptr(leaf, path->slots[0], path 1090 fs/btrfs/ioctl.c btrfs_free_path(path); path 1094 fs/btrfs/ioctl.c path->slots[0]++; path 1095 fs/btrfs/ioctl.c if (path->slots[0] < btrfs_header_nritems(leaf)) { path 1096 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(leaf, &min_key, path->slots[0]); path 1104 fs/btrfs/ioctl.c btrfs_release_path(path); path 1107 fs/btrfs/ioctl.c btrfs_free_path(path); path 2030 fs/btrfs/ioctl.c static noinline int copy_to_sk(struct btrfs_path *path, path 2049 fs/btrfs/ioctl.c leaf = path->nodes[0]; path 2050 fs/btrfs/ioctl.c slot = path->slots[0]; path 2162 fs/btrfs/ioctl.c struct btrfs_path *path; path 2172 fs/btrfs/ioctl.c path = btrfs_alloc_path(); path 2173 fs/btrfs/ioctl.c if (!path) path 2185 fs/btrfs/ioctl.c btrfs_free_path(path); path 2195 fs/btrfs/ioctl.c ret = btrfs_search_forward(root, &key, path, sk->min_transid); path 2201 fs/btrfs/ioctl.c ret = copy_to_sk(path, &key, sk, buf_size, ubuf, path 2203 fs/btrfs/ioctl.c btrfs_release_path(path); path 2212 fs/btrfs/ioctl.c btrfs_free_path(path); path 2302 fs/btrfs/ioctl.c struct btrfs_path *path; path 2309 fs/btrfs/ioctl.c path = btrfs_alloc_path(); path 2310 fs/btrfs/ioctl.c if (!path) path 2329 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 2333 fs/btrfs/ioctl.c ret = btrfs_previous_item(root, path, dirid, path 2343 fs/btrfs/ioctl.c l = path->nodes[0]; path 2344 fs/btrfs/ioctl.c slot = path->slots[0]; path 2362 fs/btrfs/ioctl.c btrfs_release_path(path); path 2371 fs/btrfs/ioctl.c btrfs_free_path(path); path 2388 fs/btrfs/ioctl.c struct btrfs_path *path; path 2398 fs/btrfs/ioctl.c path = btrfs_alloc_path(); path 2399 fs/btrfs/ioctl.c if (!path) path 2407 fs/btrfs/ioctl.c ptr = &args->path[BTRFS_INO_LOOKUP_USER_PATH_MAX - 1]; path 2422 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 2426 fs/btrfs/ioctl.c ret = btrfs_previous_item(root, path, dirid, path 2436 fs/btrfs/ioctl.c leaf = path->nodes[0]; path 2437 fs/btrfs/ioctl.c slot = path->slots[0]; path 2444 fs/btrfs/ioctl.c if (ptr < args->path) { path 2454 fs/btrfs/ioctl.c ret = btrfs_previous_item(root, path, dirid, path 2463 fs/btrfs/ioctl.c leaf = path->nodes[0]; path 2464 fs/btrfs/ioctl.c slot = path->slots[0]; path 2490 fs/btrfs/ioctl.c btrfs_release_path(path); path 2496 fs/btrfs/ioctl.c memmove(args->path, ptr, total_len); path 2497 fs/btrfs/ioctl.c args->path[total_len] = '\0'; path 2498 fs/btrfs/ioctl.c btrfs_release_path(path); path 2506 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 2514 fs/btrfs/ioctl.c leaf = path->nodes[0]; path 2515 fs/btrfs/ioctl.c slot = path->slots[0]; path 2534 fs/btrfs/ioctl.c btrfs_free_path(path); path 2629 fs/btrfs/ioctl.c struct btrfs_path *path; path 2640 fs/btrfs/ioctl.c path = btrfs_alloc_path(); path 2641 fs/btrfs/ioctl.c if (!path) path 2646 fs/btrfs/ioctl.c btrfs_free_path(path); path 2697 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 2700 fs/btrfs/ioctl.c } else if (path->slots[0] >= path 2701 fs/btrfs/ioctl.c btrfs_header_nritems(path->nodes[0])) { path 2702 fs/btrfs/ioctl.c ret = btrfs_next_leaf(root, path); path 2711 fs/btrfs/ioctl.c leaf = path->nodes[0]; path 2712 fs/btrfs/ioctl.c slot = path->slots[0]; path 2737 fs/btrfs/ioctl.c btrfs_free_path(path); path 2751 fs/btrfs/ioctl.c struct btrfs_path *path; path 2760 fs/btrfs/ioctl.c path = btrfs_alloc_path(); path 2761 fs/btrfs/ioctl.c if (!path) path 2766 fs/btrfs/ioctl.c btrfs_free_path(path); path 2779 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 2782 fs/btrfs/ioctl.c } else if (path->slots[0] >= path 2783 fs/btrfs/ioctl.c btrfs_header_nritems(path->nodes[0])) { path 2784 fs/btrfs/ioctl.c ret = btrfs_next_leaf(root, path); path 2793 fs/btrfs/ioctl.c leaf = path->nodes[0]; path 2794 fs/btrfs/ioctl.c slot = path->slots[0]; path 2813 fs/btrfs/ioctl.c ret = btrfs_next_item(root, path); path 2834 fs/btrfs/ioctl.c btrfs_free_path(path); path 3208 fs/btrfs/ioctl.c strncpy(di_args->path, rcu_str_deref(dev->name), path 3209 fs/btrfs/ioctl.c sizeof(di_args->path) - 1); path 3210 fs/btrfs/ioctl.c di_args->path[sizeof(di_args->path) - 1] = 0; path 3212 fs/btrfs/ioctl.c di_args->path[0] = '\0'; path 3366 fs/btrfs/ioctl.c struct btrfs_path *path, path 3387 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 3391 fs/btrfs/ioctl.c if (path->slots[0] >= btrfs_header_nritems(path->nodes[0])) { path 3392 fs/btrfs/ioctl.c ret = btrfs_next_leaf(root, path); path 3398 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 3413 fs/btrfs/ioctl.c ei = btrfs_item_ptr(path->nodes[0], path->slots[0], path 3419 fs/btrfs/ioctl.c if (btrfs_file_extent_type(path->nodes[0], ei) == path 3423 fs/btrfs/ioctl.c ext_len = btrfs_file_extent_num_bytes(path->nodes[0], ei); path 3427 fs/btrfs/ioctl.c ret = btrfs_next_item(root, path); path 3431 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(path->nodes[0], &key, path 3432 fs/btrfs/ioctl.c path->slots[0]); path 3460 fs/btrfs/ioctl.c btrfs_release_path(path); path 3464 fs/btrfs/ioctl.c ret = btrfs_insert_empty_item(trans, root, path, new_key, size); path 3474 fs/btrfs/ioctl.c write_extent_buffer(path->nodes[0], inline_data, path 3475 fs/btrfs/ioctl.c btrfs_item_ptr_offset(path->nodes[0], path 3476 fs/btrfs/ioctl.c path->slots[0]), path 3501 fs/btrfs/ioctl.c struct btrfs_path *path = NULL; path 3517 fs/btrfs/ioctl.c path = btrfs_alloc_path(); path 3518 fs/btrfs/ioctl.c if (!path) { path 3523 fs/btrfs/ioctl.c path->reada = READA_FORWARD; path 3544 fs/btrfs/ioctl.c path->leave_spinning = 1; path 3545 fs/btrfs/ioctl.c ret = btrfs_search_slot(NULL, BTRFS_I(src)->root, &key, path, path 3554 fs/btrfs/ioctl.c if (key.offset == off && ret > 0 && path->slots[0] > 0) { path 3555 fs/btrfs/ioctl.c btrfs_item_key_to_cpu(path->nodes[0], &key, path 3556 fs/btrfs/ioctl.c path->slots[0] - 1); path 3558 fs/btrfs/ioctl.c path->slots[0]--; path 3561 fs/btrfs/ioctl.c nritems = btrfs_header_nritems(path->nodes[0]); path 3563 fs/btrfs/ioctl.c if (path->slots[0] >= nritems) { path 3564 fs/btrfs/ioctl.c ret = btrfs_next_leaf(BTRFS_I(src)->root, path); path 3569 fs/btrfs/ioctl.c nritems = btrfs_header_nritems(path->nodes[0]); path 3571 fs/btrfs/ioctl.c leaf = path->nodes[0]; path 3572 fs/btrfs/ioctl.c slot = path->slots[0]; path 3602 fs/btrfs/ioctl.c path->slots[0]++; path 3612 fs/btrfs/ioctl.c btrfs_release_path(path); path 3613 fs/btrfs/ioctl.c path->leave_spinning = 0; path 3659 fs/btrfs/ioctl.c ret = btrfs_punch_hole_range(inode, path, path 3698 fs/btrfs/ioctl.c ret = clone_copy_inline_extent(inode, trans, path, path 3709 fs/btrfs/ioctl.c btrfs_release_path(path); path 3720 fs/btrfs/ioctl.c btrfs_release_path(path); path 3737 fs/btrfs/ioctl.c btrfs_release_path(path); path 3738 fs/btrfs/ioctl.c path->leave_spinning = 0; path 3740 fs/btrfs/ioctl.c ret = btrfs_punch_hole_range(inode, path, path 3751 fs/btrfs/ioctl.c btrfs_free_path(path); path 3959 fs/btrfs/ioctl.c struct btrfs_path *path; path 3995 fs/btrfs/ioctl.c path = btrfs_alloc_path(); path 3996 fs/btrfs/ioctl.c if (!path) { path 4000 fs/btrfs/ioctl.c path->leave_spinning = 1; path 4004 fs/btrfs/ioctl.c btrfs_free_path(path); path 4010 fs/btrfs/ioctl.c di = btrfs_lookup_dir_item(trans, fs_info->tree_root, path, path 4013 fs/btrfs/ioctl.c btrfs_free_path(path); path 4022 fs/btrfs/ioctl.c btrfs_set_dir_item_key(path->nodes[0], di, &disk_key); path 4023 fs/btrfs/ioctl.c btrfs_mark_buffer_dirty(path->nodes[0]); path 4024 fs/btrfs/ioctl.c btrfs_free_path(path); path 4388 fs/btrfs/ioctl.c struct btrfs_path *path; path 4393 fs/btrfs/ioctl.c path = btrfs_alloc_path(); path 4394 fs/btrfs/ioctl.c if (!path) { path 4407 fs/btrfs/ioctl.c ipath = init_ipath(size, root, path); path 4432 fs/btrfs/ioctl.c btrfs_free_path(path); path 4466 fs/btrfs/ioctl.c struct btrfs_path *path = NULL; path 4494 fs/btrfs/ioctl.c path = btrfs_alloc_path(); path 4495 fs/btrfs/ioctl.c if (!path) { path 4507 fs/btrfs/ioctl.c ret = iterate_inodes_from_logical(loi->logical, fs_info, path, path 4520 fs/btrfs/ioctl.c btrfs_free_path(path); path 12 fs/btrfs/orphan.c struct btrfs_path *path; path 20 fs/btrfs/orphan.c path = btrfs_alloc_path(); path 21 fs/btrfs/orphan.c if (!path) path 24 fs/btrfs/orphan.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); path 26 fs/btrfs/orphan.c btrfs_free_path(path); path 33 fs/btrfs/orphan.c struct btrfs_path *path; path 41 fs/btrfs/orphan.c path = btrfs_alloc_path(); path 42 fs/btrfs/orphan.c if (!path) path 45 fs/btrfs/orphan.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 53 fs/btrfs/orphan.c ret = btrfs_del_item(trans, root, path); path 56 fs/btrfs/orphan.c btrfs_free_path(path); path 115 fs/btrfs/props.c struct btrfs_path *path, path 137 fs/btrfs/props.c slot = path->slots[0]; path 138 fs/btrfs/props.c leaf = path->nodes[0]; path 141 fs/btrfs/props.c ret = btrfs_next_leaf(root, path); path 213 fs/btrfs/props.c path->slots[0]++; path 218 fs/btrfs/props.c btrfs_release_path(path); path 244 fs/btrfs/props.c int btrfs_load_inode_props(struct inode *inode, struct btrfs_path *path) path 250 fs/btrfs/props.c ret = iterate_object_props(root, path, ino, inode_prop_iterator, inode); path 18 fs/btrfs/props.h int btrfs_load_inode_props(struct inode *inode, struct btrfs_path *path); path 332 fs/btrfs/qgroup.c struct btrfs_path *path = NULL; path 348 fs/btrfs/qgroup.c path = btrfs_alloc_path(); path 349 fs/btrfs/qgroup.c if (!path) { path 363 fs/btrfs/qgroup.c ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 1); path 370 fs/btrfs/qgroup.c slot = path->slots[0]; path 371 fs/btrfs/qgroup.c l = path->nodes[0]; path 442 fs/btrfs/qgroup.c ret = btrfs_next_item(quota_root, path); path 448 fs/btrfs/qgroup.c btrfs_release_path(path); path 456 fs/btrfs/qgroup.c ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 0); path 460 fs/btrfs/qgroup.c slot = path->slots[0]; path 461 fs/btrfs/qgroup.c l = path->nodes[0]; path 484 fs/btrfs/qgroup.c ret = btrfs_next_item(quota_root, path); path 497 fs/btrfs/qgroup.c btrfs_free_path(path); path 538 fs/btrfs/qgroup.c struct btrfs_path *path; path 541 fs/btrfs/qgroup.c path = btrfs_alloc_path(); path 542 fs/btrfs/qgroup.c if (!path) path 549 fs/btrfs/qgroup.c ret = btrfs_insert_empty_item(trans, quota_root, path, &key, 0); path 551 fs/btrfs/qgroup.c btrfs_mark_buffer_dirty(path->nodes[0]); path 553 fs/btrfs/qgroup.c btrfs_free_path(path); path 562 fs/btrfs/qgroup.c struct btrfs_path *path; path 565 fs/btrfs/qgroup.c path = btrfs_alloc_path(); path 566 fs/btrfs/qgroup.c if (!path) path 573 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); path 582 fs/btrfs/qgroup.c ret = btrfs_del_item(trans, quota_root, path); path 584 fs/btrfs/qgroup.c btrfs_free_path(path); path 592 fs/btrfs/qgroup.c struct btrfs_path *path; path 601 fs/btrfs/qgroup.c path = btrfs_alloc_path(); path 602 fs/btrfs/qgroup.c if (!path) path 615 fs/btrfs/qgroup.c ret = btrfs_insert_empty_item(trans, quota_root, path, &key, path 620 fs/btrfs/qgroup.c leaf = path->nodes[0]; path 621 fs/btrfs/qgroup.c qgroup_info = btrfs_item_ptr(leaf, path->slots[0], path 631 fs/btrfs/qgroup.c btrfs_release_path(path); path 634 fs/btrfs/qgroup.c ret = btrfs_insert_empty_item(trans, quota_root, path, &key, path 639 fs/btrfs/qgroup.c leaf = path->nodes[0]; path 640 fs/btrfs/qgroup.c qgroup_limit = btrfs_item_ptr(leaf, path->slots[0], path 652 fs/btrfs/qgroup.c btrfs_free_path(path); path 660 fs/btrfs/qgroup.c struct btrfs_path *path; path 663 fs/btrfs/qgroup.c path = btrfs_alloc_path(); path 664 fs/btrfs/qgroup.c if (!path) path 670 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); path 679 fs/btrfs/qgroup.c ret = btrfs_del_item(trans, quota_root, path); path 683 fs/btrfs/qgroup.c btrfs_release_path(path); path 686 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); path 695 fs/btrfs/qgroup.c ret = btrfs_del_item(trans, quota_root, path); path 698 fs/btrfs/qgroup.c btrfs_free_path(path); path 706 fs/btrfs/qgroup.c struct btrfs_path *path; path 717 fs/btrfs/qgroup.c path = btrfs_alloc_path(); path 718 fs/btrfs/qgroup.c if (!path) path 721 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, 0, 1); path 728 fs/btrfs/qgroup.c l = path->nodes[0]; path 729 fs/btrfs/qgroup.c slot = path->slots[0]; path 740 fs/btrfs/qgroup.c btrfs_free_path(path); path 749 fs/btrfs/qgroup.c struct btrfs_path *path; path 763 fs/btrfs/qgroup.c path = btrfs_alloc_path(); path 764 fs/btrfs/qgroup.c if (!path) path 767 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, 0, 1); path 774 fs/btrfs/qgroup.c l = path->nodes[0]; path 775 fs/btrfs/qgroup.c slot = path->slots[0]; path 786 fs/btrfs/qgroup.c btrfs_free_path(path); path 794 fs/btrfs/qgroup.c struct btrfs_path *path; path 805 fs/btrfs/qgroup.c path = btrfs_alloc_path(); path 806 fs/btrfs/qgroup.c if (!path) path 809 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, quota_root, &key, path, 0, 1); path 816 fs/btrfs/qgroup.c l = path->nodes[0]; path 817 fs/btrfs/qgroup.c slot = path->slots[0]; path 827 fs/btrfs/qgroup.c btrfs_free_path(path); path 837 fs/btrfs/qgroup.c struct btrfs_path *path; path 843 fs/btrfs/qgroup.c path = btrfs_alloc_path(); path 844 fs/btrfs/qgroup.c if (!path) path 847 fs/btrfs/qgroup.c path->leave_spinning = 1; path 854 fs/btrfs/qgroup.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 857 fs/btrfs/qgroup.c leaf = path->nodes[0]; path 866 fs/btrfs/qgroup.c path->slots[0] = 0; path 867 fs/btrfs/qgroup.c ret = btrfs_del_items(trans, root, path, 0, nr); path 871 fs/btrfs/qgroup.c btrfs_release_path(path); path 875 fs/btrfs/qgroup.c btrfs_free_path(path); path 883 fs/btrfs/qgroup.c struct btrfs_path *path = NULL; path 928 fs/btrfs/qgroup.c path = btrfs_alloc_path(); path 929 fs/btrfs/qgroup.c if (!path) { path 939 fs/btrfs/qgroup.c ret = btrfs_insert_empty_item(trans, quota_root, path, &key, path 946 fs/btrfs/qgroup.c leaf = path->nodes[0]; path 947 fs/btrfs/qgroup.c ptr = btrfs_item_ptr(leaf, path->slots[0], path 962 fs/btrfs/qgroup.c btrfs_release_path(path); path 963 fs/btrfs/qgroup.c ret = btrfs_search_slot_for_read(tree_root, &key, path, 1, 0); path 972 fs/btrfs/qgroup.c slot = path->slots[0]; path 973 fs/btrfs/qgroup.c leaf = path->nodes[0]; path 991 fs/btrfs/qgroup.c ret = btrfs_next_item(tree_root, path); path 1001 fs/btrfs/qgroup.c btrfs_release_path(path); path 1039 fs/btrfs/qgroup.c btrfs_free_path(path); path 1692 fs/btrfs/qgroup.c static int adjust_slots_upwards(struct btrfs_path *path, int root_level) path 1702 fs/btrfs/qgroup.c eb = path->nodes[level]; path 1704 fs/btrfs/qgroup.c path->slots[level]++; path 1705 fs/btrfs/qgroup.c slot = path->slots[level]; path 1713 fs/btrfs/qgroup.c btrfs_tree_unlock_rw(eb, path->locks[level]); path 1714 fs/btrfs/qgroup.c path->locks[level] = 0; path 1717 fs/btrfs/qgroup.c path->nodes[level] = NULL; path 1718 fs/btrfs/qgroup.c path->slots[level] = 0; path 1732 fs/btrfs/qgroup.c eb = path->nodes[root_level]; path 1733 fs/btrfs/qgroup.c if (path->slots[root_level] >= btrfs_header_nritems(eb)) path 2098 fs/btrfs/qgroup.c struct btrfs_path *path = NULL; path 2117 fs/btrfs/qgroup.c path = btrfs_alloc_path(); path 2118 fs/btrfs/qgroup.c if (!path) path 2131 fs/btrfs/qgroup.c path->nodes[root_level] = root_eb; path 2132 fs/btrfs/qgroup.c path->slots[root_level] = 0; path 2133 fs/btrfs/qgroup.c path->locks[root_level] = 0; /* so release_path doesn't try to unlock */ path 2137 fs/btrfs/qgroup.c if (path->nodes[level] == NULL) { path 2147 fs/btrfs/qgroup.c eb = path->nodes[level + 1]; path 2148 fs/btrfs/qgroup.c parent_slot = path->slots[level + 1]; path 2164 fs/btrfs/qgroup.c path->nodes[level] = eb; path 2165 fs/btrfs/qgroup.c path->slots[level] = 0; path 2169 fs/btrfs/qgroup.c path->locks[level] = BTRFS_READ_LOCK_BLOCKING; path 2180 fs/btrfs/qgroup.c path->nodes[level]); path 2185 fs/btrfs/qgroup.c ret = adjust_slots_upwards(path, root_level); path 2198 fs/btrfs/qgroup.c btrfs_free_path(path); path 3034 fs/btrfs/qgroup.c static bool is_last_leaf(struct btrfs_path *path) path 3038 fs/btrfs/qgroup.c for (i = 1; i < BTRFS_MAX_LEVEL && path->nodes[i]; i++) { path 3039 fs/btrfs/qgroup.c if (path->slots[i] != btrfs_header_nritems(path->nodes[i]) - 1) path 3050 fs/btrfs/qgroup.c struct btrfs_path *path) path 3064 fs/btrfs/qgroup.c path, 1, 0); path 3082 fs/btrfs/qgroup.c btrfs_release_path(path); path 3086 fs/btrfs/qgroup.c done = is_last_leaf(path); path 3088 fs/btrfs/qgroup.c btrfs_item_key_to_cpu(path->nodes[0], &found, path 3089 fs/btrfs/qgroup.c btrfs_header_nritems(path->nodes[0]) - 1); path 3092 fs/btrfs/qgroup.c scratch_leaf = btrfs_clone_extent_buffer(path->nodes[0]); path 3098 fs/btrfs/qgroup.c slot = path->slots[0]; path 3099 fs/btrfs/qgroup.c btrfs_release_path(path); path 3137 fs/btrfs/qgroup.c struct btrfs_path *path; path 3142 fs/btrfs/qgroup.c path = btrfs_alloc_path(); path 3143 fs/btrfs/qgroup.c if (!path) path 3149 fs/btrfs/qgroup.c path->search_commit_root = 1; path 3150 fs/btrfs/qgroup.c path->skip_locking = 1; path 3162 fs/btrfs/qgroup.c err = qgroup_rescan_leaf(trans, path); path 3171 fs/btrfs/qgroup.c btrfs_free_path(path); path 428 fs/btrfs/ref-verify.c struct btrfs_path *path, struct btrfs_key *key, path 435 fs/btrfs/ref-verify.c struct extent_buffer *leaf = path->nodes[0]; path 496 fs/btrfs/ref-verify.c struct btrfs_path *path, u64 *bytenr, u64 *num_bytes) path 499 fs/btrfs/ref-verify.c struct extent_buffer *leaf = path->nodes[0]; path 515 fs/btrfs/ref-verify.c ret = process_extent_item(fs_info, path, &key, i, path 549 fs/btrfs/ref-verify.c static int walk_down_tree(struct btrfs_root *root, struct btrfs_path *path, path 561 fs/btrfs/ref-verify.c block_bytenr = btrfs_node_blockptr(path->nodes[level], path 562 fs/btrfs/ref-verify.c path->slots[level]); path 563 fs/btrfs/ref-verify.c gen = btrfs_node_ptr_generation(path->nodes[level], path 564 fs/btrfs/ref-verify.c path->slots[level]); path 565 fs/btrfs/ref-verify.c btrfs_node_key_to_cpu(path->nodes[level], &first_key, path 566 fs/btrfs/ref-verify.c path->slots[level]); path 577 fs/btrfs/ref-verify.c path->nodes[level-1] = eb; path 578 fs/btrfs/ref-verify.c path->slots[level-1] = 0; path 579 fs/btrfs/ref-verify.c path->locks[level-1] = BTRFS_READ_LOCK_BLOCKING; path 581 fs/btrfs/ref-verify.c ret = process_leaf(root, path, bytenr, num_bytes); path 591 fs/btrfs/ref-verify.c static int walk_up_tree(struct btrfs_path *path, int *level) path 596 fs/btrfs/ref-verify.c if (!path->nodes[l]) path 599 fs/btrfs/ref-verify.c path->slots[l]++; path 600 fs/btrfs/ref-verify.c if (path->slots[l] < path 601 fs/btrfs/ref-verify.c btrfs_header_nritems(path->nodes[l])) { path 606 fs/btrfs/ref-verify.c btrfs_tree_unlock_rw(path->nodes[l], path->locks[l]); path 607 fs/btrfs/ref-verify.c free_extent_buffer(path->nodes[l]); path 608 fs/btrfs/ref-verify.c path->nodes[l] = NULL; path 609 fs/btrfs/ref-verify.c path->slots[l] = 0; path 610 fs/btrfs/ref-verify.c path->locks[l] = 0; path 979 fs/btrfs/ref-verify.c struct btrfs_path *path; path 987 fs/btrfs/ref-verify.c path = btrfs_alloc_path(); path 988 fs/btrfs/ref-verify.c if (!path) path 994 fs/btrfs/ref-verify.c path->nodes[level] = eb; path 995 fs/btrfs/ref-verify.c path->slots[level] = 0; path 996 fs/btrfs/ref-verify.c path->locks[level] = BTRFS_READ_LOCK_BLOCKING; path 1005 fs/btrfs/ref-verify.c ret = walk_down_tree(fs_info->extent_root, path, level, path 1009 fs/btrfs/ref-verify.c ret = walk_up_tree(path, &level); path 1021 fs/btrfs/ref-verify.c btrfs_free_path(path); path 94 fs/btrfs/relocation.c struct backref_node *path[BTRFS_MAX_LEVEL]; path 1617 fs/btrfs/relocation.c struct btrfs_path *path; path 1622 fs/btrfs/relocation.c path = btrfs_alloc_path(); path 1623 fs/btrfs/relocation.c if (!path) path 1627 fs/btrfs/relocation.c ret = btrfs_lookup_file_extent(NULL, root, path, path 1636 fs/btrfs/relocation.c leaf = path->nodes[0]; path 1637 fs/btrfs/relocation.c fi = btrfs_item_ptr(leaf, path->slots[0], path 1653 fs/btrfs/relocation.c btrfs_free_path(path); path 1786 fs/btrfs/relocation.c struct btrfs_path *path, int level) path 1791 fs/btrfs/relocation.c btrfs_node_key(path->nodes[level], &key2, path->slots[level]); path 1807 fs/btrfs/relocation.c struct btrfs_path *path, struct btrfs_key *next_key, path 1831 fs/btrfs/relocation.c slot = path->slots[lowest_level]; path 1832 fs/btrfs/relocation.c btrfs_node_key_to_cpu(path->nodes[lowest_level], &key, slot); path 1878 fs/btrfs/relocation.c eb = path->nodes[level]; path 1880 fs/btrfs/relocation.c path->slots[level]); path 1882 fs/btrfs/relocation.c path->slots[level]); path 1894 fs/btrfs/relocation.c memcmp_node_keys(parent, slot, path, level)) { path 1932 fs/btrfs/relocation.c btrfs_node_key_to_cpu(path->nodes[level], &key, path 1933 fs/btrfs/relocation.c path->slots[level]); path 1934 fs/btrfs/relocation.c btrfs_release_path(path); path 1936 fs/btrfs/relocation.c path->lowest_level = level; path 1937 fs/btrfs/relocation.c ret = btrfs_search_slot(trans, src, &key, path, 0, 1); path 1938 fs/btrfs/relocation.c path->lowest_level = 0; path 1957 fs/btrfs/relocation.c path->nodes[level], path->slots[level], path 1968 fs/btrfs/relocation.c btrfs_set_node_blockptr(path->nodes[level], path 1969 fs/btrfs/relocation.c path->slots[level], old_bytenr); path 1970 fs/btrfs/relocation.c btrfs_set_node_ptr_generation(path->nodes[level], path 1971 fs/btrfs/relocation.c path->slots[level], old_ptr_gen); path 1972 fs/btrfs/relocation.c btrfs_mark_buffer_dirty(path->nodes[level]); path 1975 fs/btrfs/relocation.c blocksize, path->nodes[level]->start); path 1988 fs/btrfs/relocation.c blocksize, path->nodes[level]->start); path 2001 fs/btrfs/relocation.c btrfs_unlock_up_safe(path, 0); path 2015 fs/btrfs/relocation.c int walk_up_reloc_tree(struct btrfs_root *root, struct btrfs_path *path, path 2026 fs/btrfs/relocation.c free_extent_buffer(path->nodes[i]); path 2027 fs/btrfs/relocation.c path->nodes[i] = NULL; path 2030 fs/btrfs/relocation.c for (i = *level; i < BTRFS_MAX_LEVEL && path->nodes[i]; i++) { path 2031 fs/btrfs/relocation.c eb = path->nodes[i]; path 2033 fs/btrfs/relocation.c while (path->slots[i] + 1 < nritems) { path 2034 fs/btrfs/relocation.c path->slots[i]++; path 2035 fs/btrfs/relocation.c if (btrfs_node_ptr_generation(eb, path->slots[i]) <= path 2042 fs/btrfs/relocation.c free_extent_buffer(path->nodes[i]); path 2043 fs/btrfs/relocation.c path->nodes[i] = NULL; path 2052 fs/btrfs/relocation.c int walk_down_reloc_tree(struct btrfs_root *root, struct btrfs_path *path, path 2068 fs/btrfs/relocation.c eb = path->nodes[i]; path 2070 fs/btrfs/relocation.c while (path->slots[i] < nritems) { path 2071 fs/btrfs/relocation.c ptr_gen = btrfs_node_ptr_generation(eb, path->slots[i]); path 2074 fs/btrfs/relocation.c path->slots[i]++; path 2076 fs/btrfs/relocation.c if (path->slots[i] >= nritems) { path 2087 fs/btrfs/relocation.c bytenr = btrfs_node_blockptr(eb, path->slots[i]); path 2088 fs/btrfs/relocation.c btrfs_node_key_to_cpu(eb, &first_key, path->slots[i]); path 2098 fs/btrfs/relocation.c path->nodes[i - 1] = eb; path 2099 fs/btrfs/relocation.c path->slots[i - 1] = 0; path 2177 fs/btrfs/relocation.c static int find_next_key(struct btrfs_path *path, int level, path 2182 fs/btrfs/relocation.c if (!path->nodes[level]) path 2184 fs/btrfs/relocation.c if (path->slots[level] + 1 < path 2185 fs/btrfs/relocation.c btrfs_header_nritems(path->nodes[level])) { path 2186 fs/btrfs/relocation.c btrfs_node_key_to_cpu(path->nodes[level], key, path 2187 fs/btrfs/relocation.c path->slots[level] + 1); path 2273 fs/btrfs/relocation.c struct btrfs_path *path; path 2282 fs/btrfs/relocation.c path = btrfs_alloc_path(); path 2283 fs/btrfs/relocation.c if (!path) path 2285 fs/btrfs/relocation.c path->reada = READA_FORWARD; path 2293 fs/btrfs/relocation.c path->nodes[level] = reloc_root->node; path 2294 fs/btrfs/relocation.c path->slots[level] = 0; path 2300 fs/btrfs/relocation.c path->lowest_level = level; path 2301 fs/btrfs/relocation.c ret = btrfs_search_slot(NULL, reloc_root, &key, path, 0, 0); path 2302 fs/btrfs/relocation.c path->lowest_level = 0; path 2304 fs/btrfs/relocation.c btrfs_free_path(path); path 2308 fs/btrfs/relocation.c btrfs_node_key_to_cpu(path->nodes[level], &next_key, path 2309 fs/btrfs/relocation.c path->slots[level]); path 2312 fs/btrfs/relocation.c btrfs_unlock_up_safe(path, 0); path 2336 fs/btrfs/relocation.c ret = walk_down_reloc_tree(reloc_root, path, &level); path 2344 fs/btrfs/relocation.c if (!find_next_key(path, level, &key) && path 2348 fs/btrfs/relocation.c ret = replace_path(trans, rc, root, reloc_root, path, path 2358 fs/btrfs/relocation.c btrfs_node_key_to_cpu(path->nodes[level], &key, path 2359 fs/btrfs/relocation.c path->slots[level]); path 2363 fs/btrfs/relocation.c ret = walk_up_reloc_tree(reloc_root, path, &level); path 2372 fs/btrfs/relocation.c btrfs_node_key(path->nodes[level], &root_item->drop_progress, path 2373 fs/btrfs/relocation.c path->slots[level]); path 2396 fs/btrfs/relocation.c btrfs_free_path(path); path 2660 fs/btrfs/relocation.c rc->backref_cache.path[next->level] = next; path 2796 fs/btrfs/relocation.c struct btrfs_path *path, int lowest) path 2813 fs/btrfs/relocation.c path->lowest_level = node->level + 1; path 2814 fs/btrfs/relocation.c rc->backref_cache.path[node->level] = node; path 2842 fs/btrfs/relocation.c ret = btrfs_search_slot(trans, root, key, path, 0, 1); path 2849 fs/btrfs/relocation.c btrfs_release_path(path); path 2854 fs/btrfs/relocation.c upper->eb = path->nodes[upper->level]; path 2855 fs/btrfs/relocation.c path->nodes[upper->level] = NULL; path 2857 fs/btrfs/relocation.c BUG_ON(upper->eb != path->nodes[upper->level]); path 2861 fs/btrfs/relocation.c path->locks[upper->level] = 0; path 2863 fs/btrfs/relocation.c slot = path->slots[upper->level]; path 2864 fs/btrfs/relocation.c btrfs_release_path(path); path 2950 fs/btrfs/relocation.c path->lowest_level = 0; path 2958 fs/btrfs/relocation.c struct btrfs_path *path) path 2963 fs/btrfs/relocation.c return do_relocation(trans, rc, node, &key, path, 0); path 2968 fs/btrfs/relocation.c struct btrfs_path *path, int err) path 2984 fs/btrfs/relocation.c ret = link_to_upper(trans, rc, node, path); path 3085 fs/btrfs/relocation.c struct btrfs_path *path) path 3116 fs/btrfs/relocation.c path->lowest_level = node->level; path 3117 fs/btrfs/relocation.c ret = btrfs_search_slot(trans, root, key, path, 0, 1); path 3118 fs/btrfs/relocation.c btrfs_release_path(path); path 3125 fs/btrfs/relocation.c ret = do_relocation(trans, rc, node, key, path, 1); path 3142 fs/btrfs/relocation.c struct btrfs_path *path; path 3148 fs/btrfs/relocation.c path = btrfs_alloc_path(); path 3149 fs/btrfs/relocation.c if (!path) { path 3179 fs/btrfs/relocation.c path); path 3186 fs/btrfs/relocation.c err = finish_pending_nodes(trans, rc, path, err); path 3189 fs/btrfs/relocation.c btrfs_free_path(path); path 3449 fs/btrfs/relocation.c struct btrfs_path *path, path 3461 fs/btrfs/relocation.c eb = path->nodes[0]; path 3462 fs/btrfs/relocation.c item_size = btrfs_item_size_nr(eb, path->slots[0]); path 3466 fs/btrfs/relocation.c ei = btrfs_item_ptr(eb, path->slots[0], path 3483 fs/btrfs/relocation.c btrfs_release_path(path); path 3512 fs/btrfs/relocation.c struct btrfs_path *path; path 3523 fs/btrfs/relocation.c path = btrfs_alloc_path(); path 3524 fs/btrfs/relocation.c if (!path) path 3536 fs/btrfs/relocation.c path->search_commit_root = 1; path 3537 fs/btrfs/relocation.c path->skip_locking = 1; path 3538 fs/btrfs/relocation.c ret = btrfs_search_slot(NULL, rc->extent_root, &key, path, 0, 0); path 3543 fs/btrfs/relocation.c if (path->slots[0]) { path 3544 fs/btrfs/relocation.c path->slots[0]--; path 3545 fs/btrfs/relocation.c btrfs_item_key_to_cpu(path->nodes[0], &key, path 3546 fs/btrfs/relocation.c path->slots[0]); path 3556 fs/btrfs/relocation.c btrfs_release_path(path); path 3562 fs/btrfs/relocation.c btrfs_print_leaf(path->nodes[0]); path 3571 fs/btrfs/relocation.c ret = add_tree_block(rc, &key, path, blocks); path 3573 fs/btrfs/relocation.c btrfs_free_path(path); path 3655 fs/btrfs/relocation.c struct btrfs_path *path; path 3688 fs/btrfs/relocation.c path = btrfs_alloc_path(); path 3689 fs/btrfs/relocation.c if (!path) path 3691 fs/btrfs/relocation.c path->reada = READA_FORWARD; path 3706 fs/btrfs/relocation.c path->search_commit_root = 1; path 3707 fs/btrfs/relocation.c path->skip_locking = 1; path 3708 fs/btrfs/relocation.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 3714 fs/btrfs/relocation.c leaf = path->nodes[0]; path 3729 fs/btrfs/relocation.c path->slots[0] = nritems; path 3733 fs/btrfs/relocation.c while (path->slots[0] >= nritems) { path 3734 fs/btrfs/relocation.c ret = btrfs_next_leaf(root, path); path 3742 fs/btrfs/relocation.c leaf = path->nodes[0]; path 3755 fs/btrfs/relocation.c path->slots[0] = nritems; path 3759 fs/btrfs/relocation.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 3764 fs/btrfs/relocation.c fi = btrfs_item_ptr(leaf, path->slots[0], path 3803 fs/btrfs/relocation.c path->slots[0] = nritems; path 3805 fs/btrfs/relocation.c path->slots[0]++; path 3809 fs/btrfs/relocation.c btrfs_free_path(path); path 3819 fs/btrfs/relocation.c struct btrfs_path *path, path 3832 fs/btrfs/relocation.c eb = path->nodes[0]; path 3833 fs/btrfs/relocation.c ptr = btrfs_item_ptr_offset(eb, path->slots[0]); path 3834 fs/btrfs/relocation.c end = ptr + btrfs_item_size_nr(eb, path->slots[0]); path 3853 fs/btrfs/relocation.c eb->start, path->slots[0]); path 3865 fs/btrfs/relocation.c eb = path->nodes[0]; path 3866 fs/btrfs/relocation.c if (path->slots[0] >= btrfs_header_nritems(eb)) { path 3867 fs/btrfs/relocation.c ret = btrfs_next_leaf(rc->extent_root, path); path 3874 fs/btrfs/relocation.c eb = path->nodes[0]; path 3877 fs/btrfs/relocation.c btrfs_item_key_to_cpu(eb, &key, path->slots[0]); path 3885 fs/btrfs/relocation.c dref = btrfs_item_ptr(eb, path->slots[0], path 3900 fs/btrfs/relocation.c path->slots[0]++; path 3903 fs/btrfs/relocation.c btrfs_release_path(path); path 3913 fs/btrfs/relocation.c int find_next_extent(struct reloc_control *rc, struct btrfs_path *path, path 3934 fs/btrfs/relocation.c path->search_commit_root = 1; path 3935 fs/btrfs/relocation.c path->skip_locking = 1; path 3936 fs/btrfs/relocation.c ret = btrfs_search_slot(NULL, rc->extent_root, &key, path, path 3941 fs/btrfs/relocation.c leaf = path->nodes[0]; path 3942 fs/btrfs/relocation.c if (path->slots[0] >= btrfs_header_nritems(leaf)) { path 3943 fs/btrfs/relocation.c ret = btrfs_next_leaf(rc->extent_root, path); path 3946 fs/btrfs/relocation.c leaf = path->nodes[0]; path 3949 fs/btrfs/relocation.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 3957 fs/btrfs/relocation.c path->slots[0]++; path 3963 fs/btrfs/relocation.c path->slots[0]++; path 3970 fs/btrfs/relocation.c path->slots[0]++; path 3979 fs/btrfs/relocation.c btrfs_release_path(path); path 3991 fs/btrfs/relocation.c btrfs_release_path(path); path 4075 fs/btrfs/relocation.c struct btrfs_path *path; path 4083 fs/btrfs/relocation.c path = btrfs_alloc_path(); path 4084 fs/btrfs/relocation.c if (!path) path 4086 fs/btrfs/relocation.c path->reada = READA_FORWARD; path 4117 fs/btrfs/relocation.c ret = find_next_extent(rc, path, &key); path 4125 fs/btrfs/relocation.c ei = btrfs_item_ptr(path->nodes[0], path->slots[0], path 4127 fs/btrfs/relocation.c item_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]); path 4129 fs/btrfs/relocation.c flags = btrfs_extent_flags(path->nodes[0], ei); path 4142 fs/btrfs/relocation.c ret = add_tree_block(rc, &key, path, &blocks); path 4145 fs/btrfs/relocation.c ret = add_data_references(rc, &key, path, &blocks); path 4147 fs/btrfs/relocation.c btrfs_release_path(path); path 4191 fs/btrfs/relocation.c btrfs_release_path(path); path 4232 fs/btrfs/relocation.c btrfs_free_path(path); path 4239 fs/btrfs/relocation.c struct btrfs_path *path; path 4244 fs/btrfs/relocation.c path = btrfs_alloc_path(); path 4245 fs/btrfs/relocation.c if (!path) path 4248 fs/btrfs/relocation.c ret = btrfs_insert_empty_inode(trans, root, path, objectid); path 4252 fs/btrfs/relocation.c leaf = path->nodes[0]; path 4253 fs/btrfs/relocation.c item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_inode_item); path 4262 fs/btrfs/relocation.c btrfs_free_path(path); path 4356 fs/btrfs/relocation.c struct btrfs_path *path; path 4386 fs/btrfs/relocation.c path = btrfs_alloc_path(); path 4387 fs/btrfs/relocation.c if (!path) { path 4392 fs/btrfs/relocation.c inode = lookup_free_space_inode(rc->block_group, path); path 4393 fs/btrfs/relocation.c btrfs_free_path(path); path 4504 fs/btrfs/relocation.c struct btrfs_path *path; path 4511 fs/btrfs/relocation.c path = btrfs_alloc_path(); path 4512 fs/btrfs/relocation.c if (!path) path 4514 fs/btrfs/relocation.c path->reada = READA_BACK; path 4522 fs/btrfs/relocation.c path, 0, 0); path 4528 fs/btrfs/relocation.c if (path->slots[0] == 0) path 4530 fs/btrfs/relocation.c path->slots[0]--; path 4532 fs/btrfs/relocation.c leaf = path->nodes[0]; path 4533 fs/btrfs/relocation.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 4534 fs/btrfs/relocation.c btrfs_release_path(path); path 4570 fs/btrfs/relocation.c btrfs_release_path(path); path 4642 fs/btrfs/relocation.c btrfs_free_path(path); path 4733 fs/btrfs/relocation.c node = rc->backref_cache.path[level]; path 67 fs/btrfs/root-tree.c struct btrfs_path *path, struct btrfs_root_item *root_item, path 75 fs/btrfs/root-tree.c ret = btrfs_search_slot(NULL, root, search_key, path, 0, 0); path 84 fs/btrfs/root-tree.c if (path->slots[0] == 0) path 86 fs/btrfs/root-tree.c path->slots[0]--; path 90 fs/btrfs/root-tree.c l = path->nodes[0]; path 91 fs/btrfs/root-tree.c slot = path->slots[0]; path 105 fs/btrfs/root-tree.c btrfs_release_path(path); path 125 fs/btrfs/root-tree.c struct btrfs_path *path; path 132 fs/btrfs/root-tree.c path = btrfs_alloc_path(); path 133 fs/btrfs/root-tree.c if (!path) path 136 fs/btrfs/root-tree.c ret = btrfs_search_slot(trans, root, key, path, 0, 1); path 150 fs/btrfs/root-tree.c l = path->nodes[0]; path 151 fs/btrfs/root-tree.c slot = path->slots[0]; path 161 fs/btrfs/root-tree.c btrfs_release_path(path); path 162 fs/btrfs/root-tree.c ret = btrfs_search_slot(trans, root, key, path, path 169 fs/btrfs/root-tree.c ret = btrfs_del_item(trans, root, path); path 174 fs/btrfs/root-tree.c btrfs_release_path(path); path 175 fs/btrfs/root-tree.c ret = btrfs_insert_empty_item(trans, root, path, path 181 fs/btrfs/root-tree.c l = path->nodes[0]; path 182 fs/btrfs/root-tree.c slot = path->slots[0]; path 193 fs/btrfs/root-tree.c btrfs_mark_buffer_dirty(path->nodes[0]); path 195 fs/btrfs/root-tree.c btrfs_free_path(path); path 213 fs/btrfs/root-tree.c struct btrfs_path *path; path 220 fs/btrfs/root-tree.c path = btrfs_alloc_path(); path 221 fs/btrfs/root-tree.c if (!path) path 232 fs/btrfs/root-tree.c ret = btrfs_search_slot(NULL, tree_root, &key, path, 0, 0); path 238 fs/btrfs/root-tree.c leaf = path->nodes[0]; path 239 fs/btrfs/root-tree.c if (path->slots[0] >= btrfs_header_nritems(leaf)) { path 240 fs/btrfs/root-tree.c ret = btrfs_next_leaf(tree_root, path); path 245 fs/btrfs/root-tree.c leaf = path->nodes[0]; path 248 fs/btrfs/root-tree.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 249 fs/btrfs/root-tree.c btrfs_release_path(path); path 283 fs/btrfs/root-tree.c btrfs_release_path(path); path 324 fs/btrfs/root-tree.c btrfs_free_path(path); path 333 fs/btrfs/root-tree.c struct btrfs_path *path; path 336 fs/btrfs/root-tree.c path = btrfs_alloc_path(); path 337 fs/btrfs/root-tree.c if (!path) path 339 fs/btrfs/root-tree.c ret = btrfs_search_slot(trans, root, key, path, -1, 1); path 345 fs/btrfs/root-tree.c ret = btrfs_del_item(trans, root, path); path 347 fs/btrfs/root-tree.c btrfs_free_path(path); path 357 fs/btrfs/root-tree.c struct btrfs_path *path; path 365 fs/btrfs/root-tree.c path = btrfs_alloc_path(); path 366 fs/btrfs/root-tree.c if (!path) path 373 fs/btrfs/root-tree.c ret = btrfs_search_slot(trans, tree_root, &key, path, -1, 1); path 376 fs/btrfs/root-tree.c leaf = path->nodes[0]; path 377 fs/btrfs/root-tree.c ref = btrfs_item_ptr(leaf, path->slots[0], path 388 fs/btrfs/root-tree.c ret = btrfs_del_item(trans, tree_root, path); path 397 fs/btrfs/root-tree.c btrfs_release_path(path); path 405 fs/btrfs/root-tree.c btrfs_free_path(path); path 431 fs/btrfs/root-tree.c struct btrfs_path *path; path 436 fs/btrfs/root-tree.c path = btrfs_alloc_path(); path 437 fs/btrfs/root-tree.c if (!path) path 444 fs/btrfs/root-tree.c ret = btrfs_insert_empty_item(trans, tree_root, path, &key, path 448 fs/btrfs/root-tree.c btrfs_free_path(path); path 452 fs/btrfs/root-tree.c leaf = path->nodes[0]; path 453 fs/btrfs/root-tree.c ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); path 462 fs/btrfs/root-tree.c btrfs_release_path(path); path 469 fs/btrfs/root-tree.c btrfs_free_path(path); path 194 fs/btrfs/scrub.c struct btrfs_path *path; path 669 fs/btrfs/scrub.c ret = btrfs_search_slot(NULL, local_root, &key, swarn->path, 0, 0); path 671 fs/btrfs/scrub.c btrfs_release_path(swarn->path); path 675 fs/btrfs/scrub.c eb = swarn->path->nodes[0]; path 676 fs/btrfs/scrub.c inode_item = btrfs_item_ptr(eb, swarn->path->slots[0], path 680 fs/btrfs/scrub.c btrfs_release_path(swarn->path); path 688 fs/btrfs/scrub.c ipath = init_ipath(4096, local_root, swarn->path); path 733 fs/btrfs/scrub.c struct btrfs_path *path; path 750 fs/btrfs/scrub.c path = btrfs_alloc_path(); path 751 fs/btrfs/scrub.c if (!path) path 759 fs/btrfs/scrub.c ret = extent_from_logical(fs_info, swarn.logical, path, &found_key, path 767 fs/btrfs/scrub.c eb = path->nodes[0]; path 768 fs/btrfs/scrub.c ei = btrfs_item_ptr(eb, path->slots[0], struct btrfs_extent_item); path 769 fs/btrfs/scrub.c item_size = btrfs_item_size_nr(eb, path->slots[0]); path 785 fs/btrfs/scrub.c btrfs_release_path(path); path 787 fs/btrfs/scrub.c btrfs_release_path(path); path 788 fs/btrfs/scrub.c swarn.path = path; path 796 fs/btrfs/scrub.c btrfs_free_path(path); path 2821 fs/btrfs/scrub.c struct btrfs_path *path, path 2878 fs/btrfs/scrub.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 2883 fs/btrfs/scrub.c ret = btrfs_previous_extent_item(root, path, 0); path 2887 fs/btrfs/scrub.c btrfs_release_path(path); path 2889 fs/btrfs/scrub.c path, 0, 0); path 2899 fs/btrfs/scrub.c l = path->nodes[0]; path 2900 fs/btrfs/scrub.c slot = path->slots[0]; path 2902 fs/btrfs/scrub.c ret = btrfs_next_leaf(root, path); path 3019 fs/btrfs/scrub.c path->slots[0]++; path 3022 fs/btrfs/scrub.c btrfs_release_path(path); path 3039 fs/btrfs/scrub.c btrfs_release_path(path); path 3048 fs/btrfs/scrub.c struct btrfs_path *path, *ppath; path 3107 fs/btrfs/scrub.c path = btrfs_alloc_path(); path 3108 fs/btrfs/scrub.c if (!path) path 3113 fs/btrfs/scrub.c btrfs_free_path(path); path 3122 fs/btrfs/scrub.c path->search_commit_root = 1; path 3123 fs/btrfs/scrub.c path->skip_locking = 1; path 3228 fs/btrfs/scrub.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 3233 fs/btrfs/scrub.c ret = btrfs_previous_extent_item(root, path, 0); path 3239 fs/btrfs/scrub.c btrfs_release_path(path); path 3241 fs/btrfs/scrub.c path, 0, 0); path 3251 fs/btrfs/scrub.c l = path->nodes[0]; path 3252 fs/btrfs/scrub.c slot = path->slots[0]; path 3254 fs/btrfs/scrub.c ret = btrfs_next_leaf(root, path); path 3387 fs/btrfs/scrub.c path->slots[0]++; path 3389 fs/btrfs/scrub.c btrfs_release_path(path); path 3411 fs/btrfs/scrub.c btrfs_free_path(path); path 3473 fs/btrfs/scrub.c struct btrfs_path *path; path 3487 fs/btrfs/scrub.c path = btrfs_alloc_path(); path 3488 fs/btrfs/scrub.c if (!path) path 3491 fs/btrfs/scrub.c path->reada = READA_FORWARD; path 3492 fs/btrfs/scrub.c path->search_commit_root = 1; path 3493 fs/btrfs/scrub.c path->skip_locking = 1; path 3500 fs/btrfs/scrub.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 3504 fs/btrfs/scrub.c if (path->slots[0] >= path 3505 fs/btrfs/scrub.c btrfs_header_nritems(path->nodes[0])) { path 3506 fs/btrfs/scrub.c ret = btrfs_next_leaf(root, path); path 3518 fs/btrfs/scrub.c l = path->nodes[0]; path 3519 fs/btrfs/scrub.c slot = path->slots[0]; path 3702 fs/btrfs/scrub.c btrfs_release_path(path); path 3705 fs/btrfs/scrub.c btrfs_free_path(path); path 543 fs/btrfs/send.c struct btrfs_path *path; path 545 fs/btrfs/send.c path = btrfs_alloc_path(); path 546 fs/btrfs/send.c if (!path) path 548 fs/btrfs/send.c path->search_commit_root = 1; path 549 fs/btrfs/send.c path->skip_locking = 1; path 550 fs/btrfs/send.c path->need_commit_sem = 1; path 551 fs/btrfs/send.c return path; path 754 fs/btrfs/send.c struct fs_path *path, struct fs_path *lnk) path 759 fs/btrfs/send.c btrfs_debug(fs_info, "send_link %s -> %s", path->start, lnk->start); path 765 fs/btrfs/send.c TLV_PUT_PATH(sctx, BTRFS_SEND_A_PATH, path); path 778 fs/btrfs/send.c static int send_unlink(struct send_ctx *sctx, struct fs_path *path) path 783 fs/btrfs/send.c btrfs_debug(fs_info, "send_unlink %s", path->start); path 789 fs/btrfs/send.c TLV_PUT_PATH(sctx, BTRFS_SEND_A_PATH, path); path 801 fs/btrfs/send.c static int send_rmdir(struct send_ctx *sctx, struct fs_path *path) path 806 fs/btrfs/send.c btrfs_debug(fs_info, "send_rmdir %s", path->start); path 812 fs/btrfs/send.c TLV_PUT_PATH(sctx, BTRFS_SEND_A_PATH, path); path 824 fs/btrfs/send.c static int __get_inode_info(struct btrfs_root *root, struct btrfs_path *path, path 835 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 842 fs/btrfs/send.c ii = btrfs_item_ptr(path->nodes[0], path->slots[0], path 845 fs/btrfs/send.c *size = btrfs_inode_size(path->nodes[0], ii); path 847 fs/btrfs/send.c *gen = btrfs_inode_generation(path->nodes[0], ii); path 849 fs/btrfs/send.c *mode = btrfs_inode_mode(path->nodes[0], ii); path 851 fs/btrfs/send.c *uid = btrfs_inode_uid(path->nodes[0], ii); path 853 fs/btrfs/send.c *gid = btrfs_inode_gid(path->nodes[0], ii); path 855 fs/btrfs/send.c *rdev = btrfs_inode_rdev(path->nodes[0], ii); path 865 fs/btrfs/send.c struct btrfs_path *path; path 868 fs/btrfs/send.c path = alloc_path_for_send(); path 869 fs/btrfs/send.c if (!path) path 871 fs/btrfs/send.c ret = __get_inode_info(root, path, ino, size, gen, mode, uid, gid, path 873 fs/btrfs/send.c btrfs_free_path(path); path 889 fs/btrfs/send.c static int iterate_inode_ref(struct btrfs_root *root, struct btrfs_path *path, path 893 fs/btrfs/send.c struct extent_buffer *eb = path->nodes[0]; path 901 fs/btrfs/send.c int slot = path->slots[0]; path 1009 fs/btrfs/send.c static int iterate_dir_item(struct btrfs_root *root, struct btrfs_path *path, path 1041 fs/btrfs/send.c eb = path->nodes[0]; path 1042 fs/btrfs/send.c slot = path->slots[0]; path 1141 fs/btrfs/send.c u64 ino, struct fs_path *path) path 1151 fs/btrfs/send.c fs_path_reset(path); path 1173 fs/btrfs/send.c __copy_first_ref, path); path 1294 fs/btrfs/send.c struct btrfs_path *path, path 1308 fs/btrfs/send.c struct extent_buffer *eb = path->nodes[0]; path 1340 fs/btrfs/send.c fi = btrfs_item_ptr(eb, path->slots[0], path 1482 fs/btrfs/send.c struct btrfs_path *path; path 1490 fs/btrfs/send.c path = alloc_path_for_send(); path 1491 fs/btrfs/send.c if (!path) path 1497 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 1516 fs/btrfs/send.c ei = btrfs_item_ptr(path->nodes[0], path->slots[0], path 1518 fs/btrfs/send.c type = btrfs_file_extent_type(path->nodes[0], ei); path 1519 fs/btrfs/send.c compression = btrfs_file_extent_compression(path->nodes[0], ei); path 1524 fs/btrfs/send.c len = btrfs_file_extent_ram_bytes(path->nodes[0], ei); path 1526 fs/btrfs/send.c ret = fs_path_add_from_extent_buffer(dest, path->nodes[0], off, len); path 1529 fs/btrfs/send.c btrfs_free_path(path); path 1542 fs/btrfs/send.c struct btrfs_path *path; path 1548 fs/btrfs/send.c path = alloc_path_for_send(); path 1549 fs/btrfs/send.c if (!path) path 1558 fs/btrfs/send.c path, BTRFS_FIRST_FREE_OBJECTID, path 1560 fs/btrfs/send.c btrfs_release_path(path); path 1578 fs/btrfs/send.c path, BTRFS_FIRST_FREE_OBJECTID, path 1580 fs/btrfs/send.c btrfs_release_path(path); path 1597 fs/btrfs/send.c btrfs_free_path(path); path 1708 fs/btrfs/send.c struct btrfs_path *path; path 1710 fs/btrfs/send.c path = alloc_path_for_send(); path 1711 fs/btrfs/send.c if (!path) path 1714 fs/btrfs/send.c di = btrfs_lookup_dir_item(NULL, root, path, path 1720 fs/btrfs/send.c btrfs_dir_item_key_to_cpu(path->nodes[0], di, &key); path 1726 fs/btrfs/send.c *found_type = btrfs_dir_type(path->nodes[0], di); path 1729 fs/btrfs/send.c btrfs_free_path(path); path 1743 fs/btrfs/send.c struct btrfs_path *path; path 1747 fs/btrfs/send.c path = alloc_path_for_send(); path 1748 fs/btrfs/send.c if (!path) path 1755 fs/btrfs/send.c ret = btrfs_search_slot_for_read(root, &key, path, 1, 0); path 1759 fs/btrfs/send.c btrfs_item_key_to_cpu(path->nodes[0], &found_key, path 1760 fs/btrfs/send.c path->slots[0]); path 1770 fs/btrfs/send.c iref = btrfs_item_ptr(path->nodes[0], path->slots[0], path 1772 fs/btrfs/send.c len = btrfs_inode_ref_name_len(path->nodes[0], iref); path 1773 fs/btrfs/send.c ret = fs_path_add_from_extent_buffer(name, path->nodes[0], path 1779 fs/btrfs/send.c extref = btrfs_item_ptr(path->nodes[0], path->slots[0], path 1781 fs/btrfs/send.c len = btrfs_inode_extref_name_len(path->nodes[0], extref); path 1782 fs/btrfs/send.c ret = fs_path_add_from_extent_buffer(name, path->nodes[0], path 1784 fs/btrfs/send.c parent_dir = btrfs_inode_extref_parent(path->nodes[0], extref); path 1788 fs/btrfs/send.c btrfs_release_path(path); path 1800 fs/btrfs/send.c btrfs_free_path(path); path 2348 fs/btrfs/send.c struct btrfs_path *path; path 2355 fs/btrfs/send.c path = btrfs_alloc_path(); path 2356 fs/btrfs/send.c if (!path) path 2361 fs/btrfs/send.c btrfs_free_path(path); path 2370 fs/btrfs/send.c &key, path, 1, 0); path 2378 fs/btrfs/send.c leaf = path->nodes[0]; path 2379 fs/btrfs/send.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 2385 fs/btrfs/send.c ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref); path 2388 fs/btrfs/send.c btrfs_release_path(path); path 2426 fs/btrfs/send.c btrfs_free_path(path); path 2529 fs/btrfs/send.c struct btrfs_path *path = NULL; path 2540 fs/btrfs/send.c path = alloc_path_for_send(); path 2541 fs/btrfs/send.c if (!path) { path 2549 fs/btrfs/send.c ret = btrfs_search_slot(NULL, sctx->send_root, &key, path, 0, 0); path 2555 fs/btrfs/send.c eb = path->nodes[0]; path 2556 fs/btrfs/send.c slot = path->slots[0]; path 2577 fs/btrfs/send.c btrfs_free_path(path); path 2674 fs/btrfs/send.c struct btrfs_path *path = NULL; path 2682 fs/btrfs/send.c path = alloc_path_for_send(); path 2683 fs/btrfs/send.c if (!path) { path 2691 fs/btrfs/send.c ret = btrfs_search_slot(NULL, sctx->send_root, &key, path, 0, 0); path 2696 fs/btrfs/send.c eb = path->nodes[0]; path 2697 fs/btrfs/send.c slot = path->slots[0]; path 2699 fs/btrfs/send.c ret = btrfs_next_leaf(sctx->send_root, path); path 2725 fs/btrfs/send.c path->slots[0]++; path 2729 fs/btrfs/send.c btrfs_free_path(path); path 2770 fs/btrfs/send.c static void set_ref_path(struct recorded_ref *ref, struct fs_path *path) path 2772 fs/btrfs/send.c ref->full_path = path; path 2783 fs/btrfs/send.c u64 dir_gen, struct fs_path *path) path 2793 fs/btrfs/send.c set_ref_path(ref, path); path 2838 fs/btrfs/send.c struct fs_path *path) path 2851 fs/btrfs/send.c ret = send_rename(sctx, path, orphan); path 2933 fs/btrfs/send.c struct btrfs_path *path; path 2946 fs/btrfs/send.c path = alloc_path_for_send(); path 2947 fs/btrfs/send.c if (!path) path 2958 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 2965 fs/btrfs/send.c if (path->slots[0] >= btrfs_header_nritems(path->nodes[0])) { path 2966 fs/btrfs/send.c ret = btrfs_next_leaf(root, path); path 2973 fs/btrfs/send.c btrfs_item_key_to_cpu(path->nodes[0], &found_key, path 2974 fs/btrfs/send.c path->slots[0]); path 2979 fs/btrfs/send.c di = btrfs_item_ptr(path->nodes[0], path->slots[0], path 2981 fs/btrfs/send.c btrfs_dir_item_key_to_cpu(path->nodes[0], di, &loc); path 3009 fs/btrfs/send.c path->slots[0]++; path 3016 fs/btrfs/send.c btrfs_free_path(path); path 3457 fs/btrfs/send.c struct btrfs_path *path; path 3469 fs/btrfs/send.c path = alloc_path_for_send(); path 3470 fs/btrfs/send.c if (!path) path 3477 fs/btrfs/send.c ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); path 3485 fs/btrfs/send.c di = btrfs_match_dir_item_name(fs_info, path, parent_ref->name, path 3499 fs/btrfs/send.c btrfs_dir_item_key_to_cpu(path->nodes[0], di, &di_key); path 3536 fs/btrfs/send.c btrfs_free_path(path); path 3585 fs/btrfs/send.c struct btrfs_path *path = NULL; path 3595 fs/btrfs/send.c path = alloc_path_for_send(); path 3596 fs/btrfs/send.c if (!path) { path 3605 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 3610 fs/btrfs/send.c struct extent_buffer *leaf = path->nodes[0]; path 3611 fs/btrfs/send.c int slot = path->slots[0]; path 3616 fs/btrfs/send.c ret = btrfs_next_leaf(root, path); path 3662 fs/btrfs/send.c path->slots[0]++; path 3666 fs/btrfs/send.c btrfs_free_path(path); path 4321 fs/btrfs/send.c struct btrfs_path *path, path 4334 fs/btrfs/send.c ret = iterate_inode_ref(root, path, key, 0, __find_iref, &ctx); path 4417 fs/btrfs/send.c struct btrfs_path *path; path 4425 fs/btrfs/send.c path = alloc_path_for_send(); path 4426 fs/btrfs/send.c if (!path) path 4445 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 4450 fs/btrfs/send.c eb = path->nodes[0]; path 4451 fs/btrfs/send.c slot = path->slots[0]; path 4453 fs/btrfs/send.c ret = btrfs_next_leaf(root, path); path 4468 fs/btrfs/send.c ret = iterate_inode_ref(root, path, &found_key, 0, cb, sctx); path 4472 fs/btrfs/send.c path->slots[0]++; path 4474 fs/btrfs/send.c btrfs_release_path(path); path 4483 fs/btrfs/send.c btrfs_free_path(path); path 4488 fs/btrfs/send.c struct fs_path *path, path 4498 fs/btrfs/send.c TLV_PUT_PATH(sctx, BTRFS_SEND_A_PATH, path); path 4510 fs/btrfs/send.c struct fs_path *path, path 4519 fs/btrfs/send.c TLV_PUT_PATH(sctx, BTRFS_SEND_A_PATH, path); path 4638 fs/btrfs/send.c struct btrfs_path *path, path 4652 fs/btrfs/send.c ret = iterate_dir_item(root, path, __find_xattr, &ctx); path 4736 fs/btrfs/send.c struct btrfs_path *path; path 4742 fs/btrfs/send.c path = alloc_path_for_send(); path 4743 fs/btrfs/send.c if (!path) path 4751 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 4756 fs/btrfs/send.c eb = path->nodes[0]; path 4757 fs/btrfs/send.c slot = path->slots[0]; path 4759 fs/btrfs/send.c ret = btrfs_next_leaf(root, path); path 4776 fs/btrfs/send.c ret = iterate_dir_item(root, path, __process_new_xattr, sctx); path 4780 fs/btrfs/send.c path->slots[0]++; path 4784 fs/btrfs/send.c btrfs_free_path(path); path 5108 fs/btrfs/send.c struct btrfs_path *path; path 5132 fs/btrfs/send.c path = alloc_path_for_send(); path 5133 fs/btrfs/send.c if (!path) path 5140 fs/btrfs/send.c ret = __get_inode_info(clone_root->root, path, clone_root->ino, path 5142 fs/btrfs/send.c btrfs_release_path(path); path 5171 fs/btrfs/send.c ret = btrfs_search_slot(NULL, clone_root->root, &key, path, 0, 0); path 5174 fs/btrfs/send.c if (ret > 0 && path->slots[0] > 0) { path 5175 fs/btrfs/send.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0] - 1); path 5178 fs/btrfs/send.c path->slots[0]--; path 5182 fs/btrfs/send.c struct extent_buffer *leaf = path->nodes[0]; path 5183 fs/btrfs/send.c int slot = path->slots[0]; path 5191 fs/btrfs/send.c ret = btrfs_next_leaf(clone_root->root, path); path 5320 fs/btrfs/send.c path->slots[0]++; path 5328 fs/btrfs/send.c btrfs_free_path(path); path 5333 fs/btrfs/send.c struct btrfs_path *path, path 5344 fs/btrfs/send.c ei = btrfs_item_ptr(path->nodes[0], path->slots[0], path 5346 fs/btrfs/send.c type = btrfs_file_extent_type(path->nodes[0], ei); path 5348 fs/btrfs/send.c len = btrfs_file_extent_ram_bytes(path->nodes[0], ei); path 5356 fs/btrfs/send.c len = btrfs_file_extent_num_bytes(path->nodes[0], ei); path 5374 fs/btrfs/send.c disk_byte = btrfs_file_extent_disk_bytenr(path->nodes[0], ei); path 5375 fs/btrfs/send.c data_offset = btrfs_file_extent_offset(path->nodes[0], ei); path 5392 fs/btrfs/send.c struct btrfs_path *path = NULL; path 5409 fs/btrfs/send.c path = alloc_path_for_send(); path 5410 fs/btrfs/send.c if (!path) path 5451 fs/btrfs/send.c ret = btrfs_search_slot_for_read(sctx->parent_root, &key, path, 0, 0); path 5462 fs/btrfs/send.c eb = path->nodes[0]; path 5463 fs/btrfs/send.c slot = path->slots[0]; path 5541 fs/btrfs/send.c ret = btrfs_next_item(sctx->parent_root, path); path 5545 fs/btrfs/send.c eb = path->nodes[0]; path 5546 fs/btrfs/send.c slot = path->slots[0]; path 5572 fs/btrfs/send.c btrfs_free_path(path); path 5578 fs/btrfs/send.c struct btrfs_path *path; path 5586 fs/btrfs/send.c path = alloc_path_for_send(); path 5587 fs/btrfs/send.c if (!path) path 5595 fs/btrfs/send.c ret = btrfs_search_slot_for_read(root, &key, path, 0, 1); path 5599 fs/btrfs/send.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 5603 fs/btrfs/send.c fi = btrfs_item_ptr(path->nodes[0], path->slots[0], path 5605 fs/btrfs/send.c type = btrfs_file_extent_type(path->nodes[0], fi); path 5607 fs/btrfs/send.c u64 size = btrfs_file_extent_ram_bytes(path->nodes[0], fi); path 5612 fs/btrfs/send.c btrfs_file_extent_num_bytes(path->nodes[0], fi); path 5616 fs/btrfs/send.c btrfs_free_path(path); path 5624 fs/btrfs/send.c struct btrfs_path *path; path 5630 fs/btrfs/send.c path = alloc_path_for_send(); path 5631 fs/btrfs/send.c if (!path) path 5637 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 5640 fs/btrfs/send.c if (ret > 0 && path->slots[0] > 0) path 5641 fs/btrfs/send.c path->slots[0]--; path 5644 fs/btrfs/send.c struct extent_buffer *leaf = path->nodes[0]; path 5645 fs/btrfs/send.c int slot = path->slots[0]; path 5650 fs/btrfs/send.c ret = btrfs_next_leaf(root, path); path 5687 fs/btrfs/send.c path->slots[0]++; path 5691 fs/btrfs/send.c btrfs_free_path(path); path 5695 fs/btrfs/send.c static int maybe_send_hole(struct send_ctx *sctx, struct btrfs_path *path, path 5712 fs/btrfs/send.c fi = btrfs_item_ptr(path->nodes[0], path->slots[0], path 5714 fs/btrfs/send.c type = btrfs_file_extent_type(path->nodes[0], fi); path 5716 fs/btrfs/send.c u64 size = btrfs_file_extent_ram_bytes(path->nodes[0], fi); path 5721 fs/btrfs/send.c btrfs_file_extent_num_bytes(path->nodes[0], fi); path 5724 fs/btrfs/send.c if (path->slots[0] == 0 && path 5754 fs/btrfs/send.c struct btrfs_path *path, path 5764 fs/btrfs/send.c ret = is_extent_unchanged(sctx, path, key); path 5775 fs/btrfs/send.c ei = btrfs_item_ptr(path->nodes[0], path->slots[0], path 5777 fs/btrfs/send.c type = btrfs_file_extent_type(path->nodes[0], ei); path 5792 fs/btrfs/send.c if (btrfs_file_extent_disk_bytenr(path->nodes[0], ei) == 0) { path 5799 fs/btrfs/send.c ret = find_extent_clone(sctx, path, key->objectid, key->offset, path 5804 fs/btrfs/send.c ret = send_write_or_clone(sctx, path, key, found_clone); path 5808 fs/btrfs/send.c ret = maybe_send_hole(sctx, path, key); path 5817 fs/btrfs/send.c struct btrfs_path *path; path 5824 fs/btrfs/send.c path = alloc_path_for_send(); path 5825 fs/btrfs/send.c if (!path) path 5831 fs/btrfs/send.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 5836 fs/btrfs/send.c eb = path->nodes[0]; path 5837 fs/btrfs/send.c slot = path->slots[0]; path 5840 fs/btrfs/send.c ret = btrfs_next_leaf(root, path); path 5858 fs/btrfs/send.c ret = process_extent(sctx, path, &found_key); path 5862 fs/btrfs/send.c path->slots[0]++; path 5866 fs/btrfs/send.c btrfs_free_path(path); path 6050 fs/btrfs/send.c struct btrfs_path *path; path 6055 fs/btrfs/send.c path = alloc_path_for_send(); path 6056 fs/btrfs/send.c if (!path) path 6062 fs/btrfs/send.c ret = btrfs_search_slot(NULL, sctx->parent_root, &key, path, 0, 0); path 6070 fs/btrfs/send.c struct extent_buffer *eb = path->nodes[0]; path 6071 fs/btrfs/send.c int slot = path->slots[0]; path 6074 fs/btrfs/send.c ret = btrfs_next_leaf(sctx->parent_root, path); path 6089 fs/btrfs/send.c ret = iterate_inode_ref(sctx->parent_root, path, &key, 1, path 6094 fs/btrfs/send.c path->slots[0]++; path 6110 fs/btrfs/send.c btrfs_free_path(path); path 6406 fs/btrfs/send.c static int compare_refs(struct send_ctx *sctx, struct btrfs_path *path, path 6426 fs/btrfs/send.c leaf = path->nodes[0]; path 6427 fs/btrfs/send.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); path 6428 fs/btrfs/send.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); path 6510 fs/btrfs/send.c struct btrfs_path *path; path 6514 fs/btrfs/send.c path = alloc_path_for_send(); path 6515 fs/btrfs/send.c if (!path) path 6522 fs/btrfs/send.c ret = btrfs_search_slot_for_read(send_root, &key, path, 1, 0); path 6529 fs/btrfs/send.c eb = path->nodes[0]; path 6530 fs/btrfs/send.c slot = path->slots[0]; path 6533 fs/btrfs/send.c ret = changed_cb(path, NULL, &key, path 6538 fs/btrfs/send.c ret = btrfs_next_item(send_root, path); path 6551 fs/btrfs/send.c btrfs_free_path(path); path 6555 fs/btrfs/send.c static int tree_move_down(struct btrfs_path *path, int *level) path 6560 fs/btrfs/send.c eb = btrfs_read_node_slot(path->nodes[*level], path->slots[*level]); path 6564 fs/btrfs/send.c path->nodes[*level - 1] = eb; path 6565 fs/btrfs/send.c path->slots[*level - 1] = 0; path 6570 fs/btrfs/send.c static int tree_move_next_or_upnext(struct btrfs_path *path, path 6575 fs/btrfs/send.c nritems = btrfs_header_nritems(path->nodes[*level]); path 6577 fs/btrfs/send.c path->slots[*level]++; path 6579 fs/btrfs/send.c while (path->slots[*level] >= nritems) { path 6584 fs/btrfs/send.c path->slots[*level] = 0; path 6585 fs/btrfs/send.c free_extent_buffer(path->nodes[*level]); path 6586 fs/btrfs/send.c path->nodes[*level] = NULL; path 6588 fs/btrfs/send.c path->slots[*level]++; path 6590 fs/btrfs/send.c nritems = btrfs_header_nritems(path->nodes[*level]); path 6600 fs/btrfs/send.c static int tree_advance(struct btrfs_path *path, path 6608 fs/btrfs/send.c ret = tree_move_next_or_upnext(path, level, root_level); path 6610 fs/btrfs/send.c ret = tree_move_down(path, level); path 6614 fs/btrfs/send.c btrfs_item_key_to_cpu(path->nodes[*level], key, path 6615 fs/btrfs/send.c path->slots[*level]); path 6617 fs/btrfs/send.c btrfs_node_key_to_cpu(path->nodes[*level], key, path 6618 fs/btrfs/send.c path->slots[*level]); path 1016 fs/btrfs/super.c struct btrfs_path *path = NULL; path 1022 fs/btrfs/super.c path = btrfs_alloc_path(); path 1023 fs/btrfs/super.c if (!path) { path 1027 fs/btrfs/super.c path->leave_spinning = 1; path 1046 fs/btrfs/super.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 1050 fs/btrfs/super.c ret = btrfs_previous_item(root, path, subvol_objectid, path 1060 fs/btrfs/super.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 1063 fs/btrfs/super.c root_ref = btrfs_item_ptr(path->nodes[0], path->slots[0], path 1065 fs/btrfs/super.c len = btrfs_root_ref_name_len(path->nodes[0], root_ref); path 1071 fs/btrfs/super.c read_extent_buffer(path->nodes[0], ptr + 1, path 1074 fs/btrfs/super.c dirid = btrfs_root_ref_dirid(path->nodes[0], root_ref); path 1075 fs/btrfs/super.c btrfs_release_path(path); path 1095 fs/btrfs/super.c ret = btrfs_search_slot(NULL, fs_root, &key, path, 0, 0); path 1099 fs/btrfs/super.c ret = btrfs_previous_item(fs_root, path, dirid, path 1109 fs/btrfs/super.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 1112 fs/btrfs/super.c inode_ref = btrfs_item_ptr(path->nodes[0], path 1113 fs/btrfs/super.c path->slots[0], path 1115 fs/btrfs/super.c len = btrfs_inode_ref_name_len(path->nodes[0], path 1122 fs/btrfs/super.c read_extent_buffer(path->nodes[0], ptr + 1, path 1125 fs/btrfs/super.c btrfs_release_path(path); path 1129 fs/btrfs/super.c btrfs_free_path(path); path 1139 fs/btrfs/super.c btrfs_free_path(path); path 1148 fs/btrfs/super.c struct btrfs_path *path; path 1152 fs/btrfs/super.c path = btrfs_alloc_path(); path 1153 fs/btrfs/super.c if (!path) path 1155 fs/btrfs/super.c path->leave_spinning = 1; path 1163 fs/btrfs/super.c di = btrfs_lookup_dir_item(NULL, root, path, dir_id, "default", 7, 0); path 1165 fs/btrfs/super.c btrfs_free_path(path); path 1174 fs/btrfs/super.c btrfs_free_path(path); path 1179 fs/btrfs/super.c btrfs_dir_item_key_to_cpu(path->nodes[0], di, &location); path 1180 fs/btrfs/super.c btrfs_free_path(path); path 15 fs/btrfs/tests/extent-buffer-tests.c struct btrfs_path *path = NULL; path 44 fs/btrfs/tests/extent-buffer-tests.c path = btrfs_alloc_path(); path 45 fs/btrfs/tests/extent-buffer-tests.c if (!path) { path 51 fs/btrfs/tests/extent-buffer-tests.c path->nodes[0] = eb = alloc_dummy_extent_buffer(fs_info, nodesize); path 57 fs/btrfs/tests/extent-buffer-tests.c path->slots[0] = 0; path 63 fs/btrfs/tests/extent-buffer-tests.c setup_items_for_insert(root, path, &key, &value_len, value_len, path 76 fs/btrfs/tests/extent-buffer-tests.c ret = btrfs_split_item(NULL, root, path, &key, 17); path 137 fs/btrfs/tests/extent-buffer-tests.c ret = btrfs_split_item(NULL, root, path, &key, 4); path 215 fs/btrfs/tests/extent-buffer-tests.c btrfs_free_path(path); path 22 fs/btrfs/tests/free-space-tree-tests.c struct btrfs_path *path, path 34 fs/btrfs/tests/free-space-tree-tests.c info = search_free_space_info(trans, cache, path, 0); path 40 fs/btrfs/tests/free-space-tree-tests.c flags = btrfs_free_space_flags(path->nodes[0], info); path 41 fs/btrfs/tests/free-space-tree-tests.c extent_count = btrfs_free_space_extent_count(path->nodes[0], info); path 49 fs/btrfs/tests/free-space-tree-tests.c if (path->slots[0] != 0) path 53 fs/btrfs/tests/free-space-tree-tests.c while (++path->slots[0] < btrfs_header_nritems(path->nodes[0])) { path 54 fs/btrfs/tests/free-space-tree-tests.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 59 fs/btrfs/tests/free-space-tree-tests.c bit = free_space_test_bit(cache, path, offset); path 85 fs/btrfs/tests/free-space-tree-tests.c if (btrfs_header_nritems(path->nodes[0]) != num_extents + 1 || path 86 fs/btrfs/tests/free-space-tree-tests.c path->slots[0] != 0) path 89 fs/btrfs/tests/free-space-tree-tests.c path->slots[0]++; path 90 fs/btrfs/tests/free-space-tree-tests.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 100 fs/btrfs/tests/free-space-tree-tests.c btrfs_release_path(path); path 111 fs/btrfs/tests/free-space-tree-tests.c struct btrfs_path *path, path 119 fs/btrfs/tests/free-space-tree-tests.c info = search_free_space_info(trans, cache, path, 0); path 122 fs/btrfs/tests/free-space-tree-tests.c btrfs_release_path(path); path 125 fs/btrfs/tests/free-space-tree-tests.c flags = btrfs_free_space_flags(path->nodes[0], info); path 126 fs/btrfs/tests/free-space-tree-tests.c btrfs_release_path(path); path 128 fs/btrfs/tests/free-space-tree-tests.c ret = __check_free_space_extents(trans, fs_info, cache, path, extents, path 135 fs/btrfs/tests/free-space-tree-tests.c ret = convert_free_space_to_extents(trans, cache, path); path 141 fs/btrfs/tests/free-space-tree-tests.c ret = convert_free_space_to_bitmaps(trans, cache, path); path 147 fs/btrfs/tests/free-space-tree-tests.c return __check_free_space_extents(trans, fs_info, cache, path, extents, path 154 fs/btrfs/tests/free-space-tree-tests.c struct btrfs_path *path, path 161 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, path 168 fs/btrfs/tests/free-space-tree-tests.c struct btrfs_path *path, path 174 fs/btrfs/tests/free-space-tree-tests.c ret = __remove_from_free_space_tree(trans, cache, path, path 182 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, path 189 fs/btrfs/tests/free-space-tree-tests.c struct btrfs_path *path, path 198 fs/btrfs/tests/free-space-tree-tests.c ret = __remove_from_free_space_tree(trans, cache, path, path 205 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, path 213 fs/btrfs/tests/free-space-tree-tests.c struct btrfs_path *path, path 221 fs/btrfs/tests/free-space-tree-tests.c ret = __remove_from_free_space_tree(trans, cache, path, path 230 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, path 237 fs/btrfs/tests/free-space-tree-tests.c struct btrfs_path *path, path 247 fs/btrfs/tests/free-space-tree-tests.c ret = __remove_from_free_space_tree(trans, cache, path, path 255 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, path 262 fs/btrfs/tests/free-space-tree-tests.c struct btrfs_path *path, path 270 fs/btrfs/tests/free-space-tree-tests.c ret = __remove_from_free_space_tree(trans, cache, path, path 278 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid, path 285 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, path 293 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, path 300 fs/btrfs/tests/free-space-tree-tests.c struct btrfs_path *path, path 308 fs/btrfs/tests/free-space-tree-tests.c ret = __remove_from_free_space_tree(trans, cache, path, path 316 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, path 324 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, path 332 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, path 339 fs/btrfs/tests/free-space-tree-tests.c struct btrfs_path *path, path 347 fs/btrfs/tests/free-space-tree-tests.c ret = __remove_from_free_space_tree(trans, cache, path, path 355 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid, path 362 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, path 370 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, path 378 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, path 385 fs/btrfs/tests/free-space-tree-tests.c struct btrfs_path *path, path 395 fs/btrfs/tests/free-space-tree-tests.c ret = __remove_from_free_space_tree(trans, cache, path, path 403 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, cache->key.objectid, path 410 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, path 418 fs/btrfs/tests/free-space-tree-tests.c ret = __add_to_free_space_tree(trans, cache, path, path 426 fs/btrfs/tests/free-space-tree-tests.c return check_free_space_extents(trans, fs_info, cache, path, path 443 fs/btrfs/tests/free-space-tree-tests.c struct btrfs_path *path = NULL; path 488 fs/btrfs/tests/free-space-tree-tests.c path = btrfs_alloc_path(); path 489 fs/btrfs/tests/free-space-tree-tests.c if (!path) { path 502 fs/btrfs/tests/free-space-tree-tests.c ret = convert_free_space_to_bitmaps(&trans, cache, path); path 509 fs/btrfs/tests/free-space-tree-tests.c ret = test_func(&trans, root->fs_info, cache, path, alignment); path 527 fs/btrfs/tests/free-space-tree-tests.c btrfs_free_path(path); path 19 fs/btrfs/tests/inode-tests.c struct btrfs_path path; path 27 fs/btrfs/tests/inode-tests.c memset(&path, 0, sizeof(path)); path 29 fs/btrfs/tests/inode-tests.c path.nodes[0] = leaf; path 30 fs/btrfs/tests/inode-tests.c path.slots[0] = slot; path 36 fs/btrfs/tests/inode-tests.c setup_items_for_insert(root, &path, &key, &value_len, value_len, path 53 fs/btrfs/tests/inode-tests.c struct btrfs_path path; path 58 fs/btrfs/tests/inode-tests.c memset(&path, 0, sizeof(path)); path 60 fs/btrfs/tests/inode-tests.c path.nodes[0] = leaf; path 61 fs/btrfs/tests/inode-tests.c path.slots[0] = 0; path 67 fs/btrfs/tests/inode-tests.c setup_items_for_insert(root, &path, &key, &value_len, value_len, path 21 fs/btrfs/tests/qgroup-tests.c struct btrfs_path *path; path 33 fs/btrfs/tests/qgroup-tests.c path = btrfs_alloc_path(); path 34 fs/btrfs/tests/qgroup-tests.c if (!path) { path 39 fs/btrfs/tests/qgroup-tests.c path->leave_spinning = 1; path 40 fs/btrfs/tests/qgroup-tests.c ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); path 43 fs/btrfs/tests/qgroup-tests.c btrfs_free_path(path); path 47 fs/btrfs/tests/qgroup-tests.c leaf = path->nodes[0]; path 48 fs/btrfs/tests/qgroup-tests.c item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); path 63 fs/btrfs/tests/qgroup-tests.c btrfs_free_path(path); path 72 fs/btrfs/tests/qgroup-tests.c struct btrfs_path *path; path 83 fs/btrfs/tests/qgroup-tests.c path = btrfs_alloc_path(); path 84 fs/btrfs/tests/qgroup-tests.c if (!path) { path 89 fs/btrfs/tests/qgroup-tests.c path->leave_spinning = 1; path 90 fs/btrfs/tests/qgroup-tests.c ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); path 93 fs/btrfs/tests/qgroup-tests.c btrfs_free_path(path); path 97 fs/btrfs/tests/qgroup-tests.c item = btrfs_item_ptr(path->nodes[0], path->slots[0], path 99 fs/btrfs/tests/qgroup-tests.c refs = btrfs_extent_refs(path->nodes[0], item); path 100 fs/btrfs/tests/qgroup-tests.c btrfs_set_extent_refs(path->nodes[0], item, refs + 1); path 101 fs/btrfs/tests/qgroup-tests.c btrfs_release_path(path); path 112 fs/btrfs/tests/qgroup-tests.c ret = btrfs_insert_empty_item(&trans, root, path, &key, 0); path 115 fs/btrfs/tests/qgroup-tests.c btrfs_free_path(path); path 124 fs/btrfs/tests/qgroup-tests.c struct btrfs_path *path; path 133 fs/btrfs/tests/qgroup-tests.c path = btrfs_alloc_path(); path 134 fs/btrfs/tests/qgroup-tests.c if (!path) { path 138 fs/btrfs/tests/qgroup-tests.c path->leave_spinning = 1; path 140 fs/btrfs/tests/qgroup-tests.c ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); path 143 fs/btrfs/tests/qgroup-tests.c btrfs_free_path(path); path 146 fs/btrfs/tests/qgroup-tests.c btrfs_del_item(&trans, root, path); path 147 fs/btrfs/tests/qgroup-tests.c btrfs_free_path(path); path 156 fs/btrfs/tests/qgroup-tests.c struct btrfs_path *path; path 167 fs/btrfs/tests/qgroup-tests.c path = btrfs_alloc_path(); path 168 fs/btrfs/tests/qgroup-tests.c if (!path) { path 173 fs/btrfs/tests/qgroup-tests.c path->leave_spinning = 1; path 174 fs/btrfs/tests/qgroup-tests.c ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); path 177 fs/btrfs/tests/qgroup-tests.c btrfs_free_path(path); path 181 fs/btrfs/tests/qgroup-tests.c item = btrfs_item_ptr(path->nodes[0], path->slots[0], path 183 fs/btrfs/tests/qgroup-tests.c refs = btrfs_extent_refs(path->nodes[0], item); path 184 fs/btrfs/tests/qgroup-tests.c btrfs_set_extent_refs(path->nodes[0], item, refs - 1); path 185 fs/btrfs/tests/qgroup-tests.c btrfs_release_path(path); path 196 fs/btrfs/tests/qgroup-tests.c ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); path 199 fs/btrfs/tests/qgroup-tests.c btrfs_free_path(path); path 202 fs/btrfs/tests/qgroup-tests.c btrfs_del_item(&trans, root, path); path 203 fs/btrfs/tests/qgroup-tests.c btrfs_free_path(path); path 1416 fs/btrfs/transaction.c struct btrfs_path *path; path 1429 fs/btrfs/transaction.c ASSERT(pending->path); path 1430 fs/btrfs/transaction.c path = pending->path; path 1480 fs/btrfs/transaction.c dir_item = btrfs_lookup_dir_item(NULL, parent_root, path, path 1492 fs/btrfs/transaction.c btrfs_release_path(path); path 1664 fs/btrfs/transaction.c btrfs_free_path(path); path 1665 fs/btrfs/transaction.c pending->path = NULL; path 137 fs/btrfs/transaction.h struct btrfs_path *path; path 22 fs/btrfs/tree-defrag.c struct btrfs_path *path = NULL; path 41 fs/btrfs/tree-defrag.c path = btrfs_alloc_path(); path 42 fs/btrfs/tree-defrag.c if (!path) path 68 fs/btrfs/tree-defrag.c path->keep_locks = 1; path 70 fs/btrfs/tree-defrag.c ret = btrfs_search_forward(root, &key, path, BTRFS_OLDEST_GENERATION); path 77 fs/btrfs/tree-defrag.c btrfs_release_path(path); path 83 fs/btrfs/tree-defrag.c path->lowest_level = 1; path 84 fs/btrfs/tree-defrag.c wret = btrfs_search_slot(trans, root, &key, path, 0, 1); path 90 fs/btrfs/tree-defrag.c if (!path->nodes[1]) { path 99 fs/btrfs/tree-defrag.c BUG_ON(path->locks[1] == 0); path 101 fs/btrfs/tree-defrag.c path->nodes[1], 0, path 117 fs/btrfs/tree-defrag.c path->slots[1] = btrfs_header_nritems(path->nodes[1]); path 118 fs/btrfs/tree-defrag.c next_key_ret = btrfs_find_next_key(root, path, &key, 1, path 125 fs/btrfs/tree-defrag.c btrfs_free_path(path); path 102 fs/btrfs/tree-log.c struct btrfs_path *path, u64 objectid); path 106 fs/btrfs/tree-log.c struct btrfs_path *path, path 344 fs/btrfs/tree-log.c struct btrfs_path *path, path 364 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, key, path, 0, 0); path 371 fs/btrfs/tree-log.c u32 dst_size = btrfs_item_size_nr(path->nodes[0], path 372 fs/btrfs/tree-log.c path->slots[0]); path 377 fs/btrfs/tree-log.c btrfs_release_path(path); path 383 fs/btrfs/tree-log.c btrfs_release_path(path); path 391 fs/btrfs/tree-log.c dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); path 392 fs/btrfs/tree-log.c read_extent_buffer(path->nodes[0], dst_copy, dst_ptr, path 405 fs/btrfs/tree-log.c btrfs_release_path(path); path 418 fs/btrfs/tree-log.c item = btrfs_item_ptr(path->nodes[0], path->slots[0], path 420 fs/btrfs/tree-log.c nbytes = btrfs_inode_nbytes(path->nodes[0], item); path 455 fs/btrfs/tree-log.c btrfs_release_path(path); path 457 fs/btrfs/tree-log.c path->skip_release_on_error = 1; path 458 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, root, path, path 460 fs/btrfs/tree-log.c path->skip_release_on_error = 0; path 465 fs/btrfs/tree-log.c found_size = btrfs_item_size_nr(path->nodes[0], path 466 fs/btrfs/tree-log.c path->slots[0]); path 468 fs/btrfs/tree-log.c btrfs_truncate_item(path, item_size, 1); path 470 fs/btrfs/tree-log.c btrfs_extend_item(path, item_size - found_size); path 474 fs/btrfs/tree-log.c dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path 475 fs/btrfs/tree-log.c path->slots[0]); path 494 fs/btrfs/tree-log.c struct extent_buffer *dst_eb = path->nodes[0]; path 518 fs/btrfs/tree-log.c S_ISDIR(btrfs_inode_mode(path->nodes[0], dst_item))) { path 520 fs/btrfs/tree-log.c saved_i_size = btrfs_inode_size(path->nodes[0], path 525 fs/btrfs/tree-log.c copy_extent_buffer(path->nodes[0], eb, dst_ptr, path 531 fs/btrfs/tree-log.c btrfs_set_inode_size(path->nodes[0], dst_item, saved_i_size); path 538 fs/btrfs/tree-log.c if (btrfs_inode_generation(path->nodes[0], dst_item) == 0) { path 539 fs/btrfs/tree-log.c btrfs_set_inode_generation(path->nodes[0], dst_item, path 544 fs/btrfs/tree-log.c btrfs_mark_buffer_dirty(path->nodes[0]); path 545 fs/btrfs/tree-log.c btrfs_release_path(path); path 582 fs/btrfs/tree-log.c struct btrfs_path *path, path 631 fs/btrfs/tree-log.c ret = btrfs_lookup_file_extent(trans, root, path, path 642 fs/btrfs/tree-log.c leaf = path->nodes[0]; path 643 fs/btrfs/tree-log.c existing = btrfs_item_ptr(leaf, path->slots[0], path 656 fs/btrfs/tree-log.c btrfs_release_path(path); path 660 fs/btrfs/tree-log.c btrfs_release_path(path); path 677 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, root, path, key, path 681 fs/btrfs/tree-log.c dest_offset = btrfs_item_ptr_offset(path->nodes[0], path 682 fs/btrfs/tree-log.c path->slots[0]); path 683 fs/btrfs/tree-log.c copy_extent_buffer(path->nodes[0], eb, dest_offset, path 739 fs/btrfs/tree-log.c btrfs_release_path(path); path 824 fs/btrfs/tree-log.c btrfs_release_path(path); path 828 fs/btrfs/tree-log.c ret = overwrite_item(trans, root, path, eb, slot, key); path 852 fs/btrfs/tree-log.c struct btrfs_path *path, path 863 fs/btrfs/tree-log.c leaf = path->nodes[0]; path 872 fs/btrfs/tree-log.c btrfs_release_path(path); path 880 fs/btrfs/tree-log.c ret = link_to_fixup_dir(trans, root, path, location.objectid); path 902 fs/btrfs/tree-log.c struct btrfs_path *path, path 910 fs/btrfs/tree-log.c di = btrfs_lookup_dir_index_item(NULL, root, path, dirid, path 913 fs/btrfs/tree-log.c btrfs_dir_item_key_to_cpu(path->nodes[0], di, &location); path 918 fs/btrfs/tree-log.c btrfs_release_path(path); path 920 fs/btrfs/tree-log.c di = btrfs_lookup_dir_item(NULL, root, path, dirid, name, name_len, 0); path 922 fs/btrfs/tree-log.c btrfs_dir_item_key_to_cpu(path->nodes[0], di, &location); path 929 fs/btrfs/tree-log.c btrfs_release_path(path); path 948 fs/btrfs/tree-log.c struct btrfs_path *path; path 958 fs/btrfs/tree-log.c path = btrfs_alloc_path(); path 959 fs/btrfs/tree-log.c if (!path) path 962 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, log, key, path, 0, 0); path 966 fs/btrfs/tree-log.c ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); path 969 fs/btrfs/tree-log.c if (btrfs_find_name_in_ext_backref(path->nodes[0], path 970 fs/btrfs/tree-log.c path->slots[0], path 978 fs/btrfs/tree-log.c item_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]); path 982 fs/btrfs/tree-log.c found_name_len = btrfs_inode_ref_name_len(path->nodes[0], ref); path 985 fs/btrfs/tree-log.c ret = memcmp_extent_buffer(path->nodes[0], name, path 995 fs/btrfs/tree-log.c btrfs_free_path(path); path 1001 fs/btrfs/tree-log.c struct btrfs_path *path, path 1022 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); path 1028 fs/btrfs/tree-log.c leaf = path->nodes[0]; path 1040 fs/btrfs/tree-log.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); path 1041 fs/btrfs/tree-log.c ptr_end = ptr + btrfs_item_size_nr(leaf, path->slots[0]); path 1059 fs/btrfs/tree-log.c btrfs_release_path(path); path 1083 fs/btrfs/tree-log.c btrfs_release_path(path); path 1086 fs/btrfs/tree-log.c extref = btrfs_lookup_inode_extref(NULL, root, path, name, namelen, path 1095 fs/btrfs/tree-log.c leaf = path->nodes[0]; path 1097 fs/btrfs/tree-log.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); path 1098 fs/btrfs/tree-log.c base = btrfs_item_ptr_offset(leaf, path->slots[0]); path 1128 fs/btrfs/tree-log.c btrfs_release_path(path); path 1152 fs/btrfs/tree-log.c btrfs_release_path(path); path 1155 fs/btrfs/tree-log.c di = btrfs_lookup_dir_index_item(trans, root, path, btrfs_ino(dir), path 1158 fs/btrfs/tree-log.c ret = drop_one_dir_item(trans, root, path, dir, di); path 1162 fs/btrfs/tree-log.c btrfs_release_path(path); path 1165 fs/btrfs/tree-log.c di = btrfs_lookup_dir_item(trans, root, path, btrfs_ino(dir), path 1168 fs/btrfs/tree-log.c ret = drop_one_dir_item(trans, root, path, dir, di); path 1172 fs/btrfs/tree-log.c btrfs_release_path(path); path 1230 fs/btrfs/tree-log.c struct btrfs_path *path, path 1242 fs/btrfs/tree-log.c btrfs_release_path(path); path 1243 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, key, path, 0, 0); path 1251 fs/btrfs/tree-log.c eb = path->nodes[0]; path 1252 fs/btrfs/tree-log.c ref_ptr = btrfs_item_ptr_offset(eb, path->slots[0]); path 1253 fs/btrfs/tree-log.c ref_end = ref_ptr + btrfs_item_size_nr(eb, path->slots[0]); path 1281 fs/btrfs/tree-log.c btrfs_release_path(path); path 1306 fs/btrfs/tree-log.c btrfs_release_path(path); path 1315 fs/btrfs/tree-log.c struct btrfs_path *path; path 1319 fs/btrfs/tree-log.c path = btrfs_alloc_path(); path 1320 fs/btrfs/tree-log.c if (!path) path 1330 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, BTRFS_I(inode)->root, &key, path, 0, 0); path 1338 fs/btrfs/tree-log.c ret = !!btrfs_find_name_in_ext_backref(path->nodes[0], path 1339 fs/btrfs/tree-log.c path->slots[0], parent_id, name, namelen); path 1341 fs/btrfs/tree-log.c ret = !!btrfs_find_name_in_backref(path->nodes[0], path->slots[0], path 1345 fs/btrfs/tree-log.c btrfs_free_path(path); path 1355 fs/btrfs/tree-log.c struct btrfs_path *path; path 1359 fs/btrfs/tree-log.c path = btrfs_alloc_path(); path 1360 fs/btrfs/tree-log.c if (!path) path 1363 fs/btrfs/tree-log.c dir_item = btrfs_lookup_dir_item(NULL, root, path, path 1367 fs/btrfs/tree-log.c btrfs_release_path(path); path 1379 fs/btrfs/tree-log.c btrfs_dir_item_key_to_cpu(path->nodes[0], dir_item, &key); path 1380 fs/btrfs/tree-log.c btrfs_release_path(path); path 1405 fs/btrfs/tree-log.c btrfs_free_path(path); path 1419 fs/btrfs/tree-log.c struct btrfs_path *path, path 1493 fs/btrfs/tree-log.c if (!inode_in_dir(root, path, btrfs_ino(BTRFS_I(dir)), path 1505 fs/btrfs/tree-log.c ret = __add_inode_ref(trans, root, path, log, path 1571 fs/btrfs/tree-log.c ret = unlink_old_inode_refs(trans, root, path, BTRFS_I(inode), eb, slot, path 1577 fs/btrfs/tree-log.c ret = overwrite_item(trans, root, path, eb, slot, key); path 1579 fs/btrfs/tree-log.c btrfs_release_path(path); path 1599 fs/btrfs/tree-log.c struct btrfs_inode *inode, struct btrfs_path *path) path 1613 fs/btrfs/tree-log.c ret = btrfs_find_one_extref(root, inode_objectid, offset, path, path 1618 fs/btrfs/tree-log.c leaf = path->nodes[0]; path 1619 fs/btrfs/tree-log.c item_size = btrfs_item_size_nr(leaf, path->slots[0]); path 1620 fs/btrfs/tree-log.c ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); path 1633 fs/btrfs/tree-log.c btrfs_release_path(path); path 1635 fs/btrfs/tree-log.c btrfs_release_path(path); path 1643 fs/btrfs/tree-log.c struct btrfs_inode *inode, struct btrfs_path *path) path 1658 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 1662 fs/btrfs/tree-log.c if (path->slots[0] == 0) path 1664 fs/btrfs/tree-log.c path->slots[0]--; path 1667 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &key, path 1668 fs/btrfs/tree-log.c path->slots[0]); path 1672 fs/btrfs/tree-log.c ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); path 1673 fs/btrfs/tree-log.c ptr_end = ptr + btrfs_item_size_nr(path->nodes[0], path 1674 fs/btrfs/tree-log.c path->slots[0]); path 1679 fs/btrfs/tree-log.c name_len = btrfs_inode_ref_name_len(path->nodes[0], path 1687 fs/btrfs/tree-log.c if (path->slots[0] > 0) { path 1688 fs/btrfs/tree-log.c path->slots[0]--; path 1692 fs/btrfs/tree-log.c btrfs_release_path(path); path 1694 fs/btrfs/tree-log.c btrfs_release_path(path); path 1713 fs/btrfs/tree-log.c struct btrfs_path *path; path 1718 fs/btrfs/tree-log.c path = btrfs_alloc_path(); path 1719 fs/btrfs/tree-log.c if (!path) path 1722 fs/btrfs/tree-log.c ret = count_inode_refs(root, BTRFS_I(inode), path); path 1728 fs/btrfs/tree-log.c ret = count_inode_extrefs(root, BTRFS_I(inode), path); path 1744 fs/btrfs/tree-log.c ret = replay_dir_deletes(trans, root, NULL, path, path 1753 fs/btrfs/tree-log.c btrfs_free_path(path); path 1759 fs/btrfs/tree-log.c struct btrfs_path *path) path 1769 fs/btrfs/tree-log.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 1774 fs/btrfs/tree-log.c if (path->slots[0] == 0) path 1776 fs/btrfs/tree-log.c path->slots[0]--; path 1779 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 1784 fs/btrfs/tree-log.c ret = btrfs_del_item(trans, root, path); path 1788 fs/btrfs/tree-log.c btrfs_release_path(path); path 1807 fs/btrfs/tree-log.c btrfs_release_path(path); path 1819 fs/btrfs/tree-log.c struct btrfs_path *path, path 1834 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, root, path, &key, 0); path 1836 fs/btrfs/tree-log.c btrfs_release_path(path); path 1930 fs/btrfs/tree-log.c struct btrfs_path *path, path 1963 fs/btrfs/tree-log.c exists = btrfs_lookup_inode(trans, root, path, &log_key, 0); path 1968 fs/btrfs/tree-log.c btrfs_release_path(path); path 1971 fs/btrfs/tree-log.c dst_di = btrfs_lookup_dir_item(trans, root, path, key->objectid, path 1974 fs/btrfs/tree-log.c dst_di = btrfs_lookup_dir_index_item(trans, root, path, path 1992 fs/btrfs/tree-log.c btrfs_dir_item_key_to_cpu(path->nodes[0], dst_di, &found_key); path 1997 fs/btrfs/tree-log.c btrfs_dir_type(path->nodes[0], dst_di) == log_type) { path 2009 fs/btrfs/tree-log.c ret = drop_one_dir_item(trans, root, path, BTRFS_I(dir), dst_di); path 2016 fs/btrfs/tree-log.c btrfs_release_path(path); path 2035 fs/btrfs/tree-log.c btrfs_release_path(path); path 2055 fs/btrfs/tree-log.c struct btrfs_path *path, path 2072 fs/btrfs/tree-log.c ret = replay_one_name(trans, root, path, eb, di, key); path 2140 fs/btrfs/tree-log.c struct btrfs_path *path, path 2157 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 2161 fs/btrfs/tree-log.c if (path->slots[0] == 0) path 2163 fs/btrfs/tree-log.c path->slots[0]--; path 2166 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 2172 fs/btrfs/tree-log.c item = btrfs_item_ptr(path->nodes[0], path->slots[0], path 2174 fs/btrfs/tree-log.c found_end = btrfs_dir_log_end(path->nodes[0], item); path 2185 fs/btrfs/tree-log.c nritems = btrfs_header_nritems(path->nodes[0]); path 2186 fs/btrfs/tree-log.c path->slots[0]++; path 2187 fs/btrfs/tree-log.c if (path->slots[0] >= nritems) { path 2188 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); path 2193 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); path 2199 fs/btrfs/tree-log.c item = btrfs_item_ptr(path->nodes[0], path->slots[0], path 2201 fs/btrfs/tree-log.c found_end = btrfs_dir_log_end(path->nodes[0], item); path 2206 fs/btrfs/tree-log.c btrfs_release_path(path); path 2218 fs/btrfs/tree-log.c struct btrfs_path *path, path 2237 fs/btrfs/tree-log.c eb = path->nodes[0]; path 2238 fs/btrfs/tree-log.c slot = path->slots[0]; path 2266 fs/btrfs/tree-log.c btrfs_release_path(path); path 2275 fs/btrfs/tree-log.c path, location.objectid); path 2295 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, dir_key, path, path 2313 fs/btrfs/tree-log.c btrfs_release_path(path); path 2321 fs/btrfs/tree-log.c struct btrfs_path *path, path 2338 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); path 2342 fs/btrfs/tree-log.c nritems = btrfs_header_nritems(path->nodes[0]); path 2343 fs/btrfs/tree-log.c for (i = path->slots[0]; i < nritems; i++) { path 2350 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &key, i); path 2356 fs/btrfs/tree-log.c di = btrfs_item_ptr(path->nodes[0], i, struct btrfs_dir_item); path 2357 fs/btrfs/tree-log.c total_size = btrfs_item_size_nr(path->nodes[0], i); path 2360 fs/btrfs/tree-log.c u16 name_len = btrfs_dir_name_len(path->nodes[0], di); path 2361 fs/btrfs/tree-log.c u16 data_len = btrfs_dir_data_len(path->nodes[0], di); path 2370 fs/btrfs/tree-log.c read_extent_buffer(path->nodes[0], name, path 2378 fs/btrfs/tree-log.c btrfs_release_path(path); path 2379 fs/btrfs/tree-log.c di = btrfs_lookup_xattr(trans, root, path, ino, path 2388 fs/btrfs/tree-log.c path, di); path 2391 fs/btrfs/tree-log.c btrfs_release_path(path); path 2404 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); path 2411 fs/btrfs/tree-log.c btrfs_release_path(path); path 2429 fs/btrfs/tree-log.c struct btrfs_path *path, path 2463 fs/btrfs/tree-log.c ret = find_dir_range(log, path, dirid, key_type, path 2472 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &dir_key, path, path 2477 fs/btrfs/tree-log.c nritems = btrfs_header_nritems(path->nodes[0]); path 2478 fs/btrfs/tree-log.c if (path->slots[0] >= nritems) { path 2479 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); path 2485 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &found_key, path 2486 fs/btrfs/tree-log.c path->slots[0]); path 2494 fs/btrfs/tree-log.c ret = check_item_in_log(trans, root, log, path, path 2503 fs/btrfs/tree-log.c btrfs_release_path(path); path 2514 fs/btrfs/tree-log.c btrfs_release_path(path); path 2518 fs/btrfs/tree-log.c btrfs_release_path(path); path 2539 fs/btrfs/tree-log.c struct btrfs_path *path; path 2554 fs/btrfs/tree-log.c path = btrfs_alloc_path(); path 2555 fs/btrfs/tree-log.c if (!path) path 2585 fs/btrfs/tree-log.c path, key.objectid); path 2591 fs/btrfs/tree-log.c root, log, path, key.objectid, 0); path 2595 fs/btrfs/tree-log.c ret = overwrite_item(wc->trans, root, path, path 2632 fs/btrfs/tree-log.c path, key.objectid); path 2642 fs/btrfs/tree-log.c ret = replay_one_dir_item(wc->trans, root, path, path 2653 fs/btrfs/tree-log.c ret = overwrite_item(wc->trans, root, path, path 2659 fs/btrfs/tree-log.c ret = add_inode_ref(wc->trans, root, log, path, path 2665 fs/btrfs/tree-log.c ret = replay_one_extent(wc->trans, root, path, path 2670 fs/btrfs/tree-log.c ret = replay_one_dir_item(wc->trans, root, path, path 2676 fs/btrfs/tree-log.c btrfs_free_path(path); path 2682 fs/btrfs/tree-log.c struct btrfs_path *path, int *level, path 2703 fs/btrfs/tree-log.c cur = path->nodes[*level]; path 2707 fs/btrfs/tree-log.c if (path->slots[*level] >= path 2711 fs/btrfs/tree-log.c bytenr = btrfs_node_blockptr(cur, path->slots[*level]); path 2712 fs/btrfs/tree-log.c ptr_gen = btrfs_node_ptr_generation(cur, path->slots[*level]); path 2713 fs/btrfs/tree-log.c btrfs_node_key_to_cpu(cur, &first_key, path->slots[*level]); path 2716 fs/btrfs/tree-log.c parent = path->nodes[*level]; path 2731 fs/btrfs/tree-log.c path->slots[*level]++; path 2771 fs/btrfs/tree-log.c if (path->nodes[*level-1]) path 2772 fs/btrfs/tree-log.c free_extent_buffer(path->nodes[*level-1]); path 2773 fs/btrfs/tree-log.c path->nodes[*level-1] = next; path 2775 fs/btrfs/tree-log.c path->slots[*level] = 0; path 2781 fs/btrfs/tree-log.c path->slots[*level] = btrfs_header_nritems(path->nodes[*level]); path 2789 fs/btrfs/tree-log.c struct btrfs_path *path, int *level, path 2798 fs/btrfs/tree-log.c for (i = *level; i < BTRFS_MAX_LEVEL - 1 && path->nodes[i]; i++) { path 2799 fs/btrfs/tree-log.c slot = path->slots[i]; path 2800 fs/btrfs/tree-log.c if (slot + 1 < btrfs_header_nritems(path->nodes[i])) { path 2801 fs/btrfs/tree-log.c path->slots[i]++; path 2807 fs/btrfs/tree-log.c if (path->nodes[*level] == root->node) path 2808 fs/btrfs/tree-log.c parent = path->nodes[*level]; path 2810 fs/btrfs/tree-log.c parent = path->nodes[*level + 1]; path 2813 fs/btrfs/tree-log.c ret = wc->process_func(root, path->nodes[*level], wc, path 2814 fs/btrfs/tree-log.c btrfs_header_generation(path->nodes[*level]), path 2822 fs/btrfs/tree-log.c next = path->nodes[*level]; path 2838 fs/btrfs/tree-log.c path->nodes[*level]->start, path 2839 fs/btrfs/tree-log.c path->nodes[*level]->len); path 2843 fs/btrfs/tree-log.c free_extent_buffer(path->nodes[*level]); path 2844 fs/btrfs/tree-log.c path->nodes[*level] = NULL; path 2863 fs/btrfs/tree-log.c struct btrfs_path *path; path 2866 fs/btrfs/tree-log.c path = btrfs_alloc_path(); path 2867 fs/btrfs/tree-log.c if (!path) path 2872 fs/btrfs/tree-log.c path->nodes[level] = log->node; path 2874 fs/btrfs/tree-log.c path->slots[level] = 0; path 2877 fs/btrfs/tree-log.c wret = walk_down_log_tree(trans, log, path, &level, wc); path 2885 fs/btrfs/tree-log.c wret = walk_up_log_tree(trans, log, path, &level, wc); path 2895 fs/btrfs/tree-log.c if (path->nodes[orig_level]) { path 2896 fs/btrfs/tree-log.c ret = wc->process_func(log, path->nodes[orig_level], wc, path 2897 fs/btrfs/tree-log.c btrfs_header_generation(path->nodes[orig_level]), path 2904 fs/btrfs/tree-log.c next = path->nodes[orig_level]; path 2927 fs/btrfs/tree-log.c btrfs_free_path(path); path 3396 fs/btrfs/tree-log.c struct btrfs_path *path; path 3412 fs/btrfs/tree-log.c path = btrfs_alloc_path(); path 3413 fs/btrfs/tree-log.c if (!path) { path 3418 fs/btrfs/tree-log.c di = btrfs_lookup_dir_item(trans, log, path, dir_ino, path 3425 fs/btrfs/tree-log.c ret = btrfs_delete_one_dir_name(trans, log, path, di); path 3432 fs/btrfs/tree-log.c btrfs_release_path(path); path 3433 fs/btrfs/tree-log.c di = btrfs_lookup_dir_index_item(trans, log, path, dir_ino, path 3440 fs/btrfs/tree-log.c ret = btrfs_delete_one_dir_name(trans, log, path, di); path 3457 fs/btrfs/tree-log.c btrfs_release_path(path); path 3459 fs/btrfs/tree-log.c ret = btrfs_search_slot(trans, log, &key, path, 0, 1); path 3468 fs/btrfs/tree-log.c item = btrfs_item_ptr(path->nodes[0], path->slots[0], path 3470 fs/btrfs/tree-log.c i_size = btrfs_inode_size(path->nodes[0], item); path 3475 fs/btrfs/tree-log.c btrfs_set_inode_size(path->nodes[0], item, i_size); path 3476 fs/btrfs/tree-log.c btrfs_mark_buffer_dirty(path->nodes[0]); path 3479 fs/btrfs/tree-log.c btrfs_release_path(path); path 3482 fs/btrfs/tree-log.c btrfs_free_path(path); path 3535 fs/btrfs/tree-log.c struct btrfs_path *path, path 3549 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, log, path, &key, sizeof(*item)); path 3553 fs/btrfs/tree-log.c item = btrfs_item_ptr(path->nodes[0], path->slots[0], path 3555 fs/btrfs/tree-log.c btrfs_set_dir_log_end(path->nodes[0], item, last_offset); path 3556 fs/btrfs/tree-log.c btrfs_mark_buffer_dirty(path->nodes[0]); path 3557 fs/btrfs/tree-log.c btrfs_release_path(path); path 3568 fs/btrfs/tree-log.c struct btrfs_path *path, path 3590 fs/btrfs/tree-log.c ret = btrfs_search_forward(root, &min_key, path, trans->transid); path 3600 fs/btrfs/tree-log.c btrfs_release_path(path); path 3601 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &min_key, path, 0, 0); path 3603 fs/btrfs/tree-log.c btrfs_release_path(path); path 3606 fs/btrfs/tree-log.c ret = btrfs_previous_item(root, path, ino, key_type); path 3615 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &tmp, path 3616 fs/btrfs/tree-log.c path->slots[0]); path 3624 fs/btrfs/tree-log.c ret = btrfs_previous_item(root, path, ino, key_type); path 3627 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &tmp, path->slots[0]); path 3631 fs/btrfs/tree-log.c path->nodes[0], path->slots[0], path 3639 fs/btrfs/tree-log.c btrfs_release_path(path); path 3649 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &min_key, path, 0, 0); path 3659 fs/btrfs/tree-log.c src = path->nodes[0]; path 3661 fs/btrfs/tree-log.c for (i = path->slots[0]; i < nritems; i++) { path 3706 fs/btrfs/tree-log.c path->slots[0] = nritems; path 3712 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); path 3720 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &tmp, path->slots[0]); path 3725 fs/btrfs/tree-log.c if (btrfs_header_generation(path->nodes[0]) != trans->transid) { path 3727 fs/btrfs/tree-log.c path->nodes[0], path->slots[0], path 3737 fs/btrfs/tree-log.c btrfs_release_path(path); path 3746 fs/btrfs/tree-log.c ret = insert_dir_log_key(trans, log, path, key_type, path 3768 fs/btrfs/tree-log.c struct btrfs_path *path, path 3781 fs/btrfs/tree-log.c ret = log_dir_items(trans, root, inode, path, dst_path, key_type, path 3805 fs/btrfs/tree-log.c struct btrfs_path *path, path 3818 fs/btrfs/tree-log.c ret = btrfs_search_slot(trans, log, &key, path, -1, 1); path 3823 fs/btrfs/tree-log.c if (path->slots[0] == 0) path 3826 fs/btrfs/tree-log.c path->slots[0]--; path 3827 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &found_key, path 3828 fs/btrfs/tree-log.c path->slots[0]); path 3835 fs/btrfs/tree-log.c ret = btrfs_bin_search(path->nodes[0], &found_key, 0, path 3840 fs/btrfs/tree-log.c ret = btrfs_del_items(trans, log, path, start_slot, path 3841 fs/btrfs/tree-log.c path->slots[0] - start_slot + 1); path 3848 fs/btrfs/tree-log.c btrfs_release_path(path); path 3850 fs/btrfs/tree-log.c btrfs_release_path(path); path 3913 fs/btrfs/tree-log.c struct btrfs_root *log, struct btrfs_path *path, path 3919 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, log, path, path 3923 fs/btrfs/tree-log.c inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], path 3925 fs/btrfs/tree-log.c fill_inode_item(trans, path->nodes[0], inode_item, &inode->vfs_inode, path 3927 fs/btrfs/tree-log.c btrfs_release_path(path); path 4145 fs/btrfs/tree-log.c struct btrfs_path *path, path 4162 fs/btrfs/tree-log.c ret = __btrfs_drop_extents(trans, log, &inode->vfs_inode, path, em->start, path 4173 fs/btrfs/tree-log.c ret = btrfs_insert_empty_item(trans, log, path, &key, path 4178 fs/btrfs/tree-log.c leaf = path->nodes[0]; path 4180 fs/btrfs/tree-log.c fi = btrfs_item_ptr(leaf, path->slots[0], path 4222 fs/btrfs/tree-log.c btrfs_release_path(path); path 4237 fs/btrfs/tree-log.c struct btrfs_path *path) path 4258 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 4270 fs/btrfs/tree-log.c ret = btrfs_previous_item(root, path, ino, BTRFS_EXTENT_DATA_KEY); path 4277 fs/btrfs/tree-log.c leaf = path->nodes[0]; path 4278 fs/btrfs/tree-log.c slot = path->slots[0]; path 4297 fs/btrfs/tree-log.c leaf = path->nodes[0]; path 4298 fs/btrfs/tree-log.c slot = path->slots[0]; path 4302 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, path 4308 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); path 4324 fs/btrfs/tree-log.c path->slots[0]++; path 4346 fs/btrfs/tree-log.c path->slots[0]++; path 4356 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, path 4362 fs/btrfs/tree-log.c btrfs_release_path(path); path 4370 fs/btrfs/tree-log.c struct btrfs_path *path, path 4452 fs/btrfs/tree-log.c ret = log_one_extent(trans, inode, root, em, path, ctx); path 4460 fs/btrfs/tree-log.c btrfs_release_path(path); path 4462 fs/btrfs/tree-log.c ret = btrfs_log_prealloc_extents(trans, inode, path); path 4468 fs/btrfs/tree-log.c struct btrfs_path *path, u64 *size_ret) path 4477 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, log, &key, path, 0, 0); path 4485 fs/btrfs/tree-log.c item = btrfs_item_ptr(path->nodes[0], path->slots[0], path 4487 fs/btrfs/tree-log.c *size_ret = btrfs_inode_size(path->nodes[0], item); path 4503 fs/btrfs/tree-log.c btrfs_release_path(path); path 4519 fs/btrfs/tree-log.c struct btrfs_path *path, path 4532 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 4537 fs/btrfs/tree-log.c int slot = path->slots[0]; path 4538 fs/btrfs/tree-log.c struct extent_buffer *leaf = path->nodes[0]; path 4543 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, path 4549 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); path 4564 fs/btrfs/tree-log.c path->slots[0]++; path 4568 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, path 4589 fs/btrfs/tree-log.c struct btrfs_path *path) path 4605 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 4611 fs/btrfs/tree-log.c struct extent_buffer *leaf = path->nodes[0]; path 4614 fs/btrfs/tree-log.c if (path->slots[0] >= btrfs_header_nritems(path->nodes[0])) { path 4615 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); path 4622 fs/btrfs/tree-log.c leaf = path->nodes[0]; path 4625 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 4638 fs/btrfs/tree-log.c btrfs_release_path(path); path 4653 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 4658 fs/btrfs/tree-log.c leaf = path->nodes[0]; path 4661 fs/btrfs/tree-log.c extent = btrfs_item_ptr(leaf, path->slots[0], path 4673 fs/btrfs/tree-log.c path->slots[0]++; path 4680 fs/btrfs/tree-log.c btrfs_release_path(path); path 4836 fs/btrfs/tree-log.c struct btrfs_path *path, path 4865 fs/btrfs/tree-log.c btrfs_release_path(path); path 4955 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 4962 fs/btrfs/tree-log.c struct extent_buffer *leaf = path->nodes[0]; path 4963 fs/btrfs/tree-log.c int slot = path->slots[0]; path 4968 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); path 5002 fs/btrfs/tree-log.c path->slots[0]++; path 5032 fs/btrfs/tree-log.c struct btrfs_path *path; path 5050 fs/btrfs/tree-log.c path = btrfs_alloc_path(); path 5051 fs/btrfs/tree-log.c if (!path) path 5055 fs/btrfs/tree-log.c btrfs_free_path(path); path 5089 fs/btrfs/tree-log.c btrfs_free_path(path); path 5114 fs/btrfs/tree-log.c ret = drop_objectid_items(trans, log, path, ino, max_key_type); path 5130 fs/btrfs/tree-log.c err = logged_inode_size(log, inode, path, &logged_isize); path 5138 fs/btrfs/tree-log.c ret = drop_objectid_items(trans, log, path, ino, path 5158 fs/btrfs/tree-log.c ret = drop_objectid_items(trans, log, path, ino, path 5175 fs/btrfs/tree-log.c path, trans->transid); path 5199 fs/btrfs/tree-log.c ret = btrfs_check_ref_name_override(path->nodes[0], path 5200 fs/btrfs/tree-log.c path->slots[0], &min_key, inode, path 5211 fs/btrfs/tree-log.c ins_start_slot = path->slots[0]; path 5213 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, path 5223 fs/btrfs/tree-log.c err = log_conflicting_inodes(trans, root, path, path 5227 fs/btrfs/tree-log.c btrfs_release_path(path); path 5236 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, path 5247 fs/btrfs/tree-log.c if (ins_nr && ins_start_slot + ins_nr == path->slots[0]) { path 5251 fs/btrfs/tree-log.c ins_start_slot = path->slots[0]; path 5256 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, path 5264 fs/btrfs/tree-log.c ins_start_slot = path->slots[0]; path 5267 fs/btrfs/tree-log.c nritems = btrfs_header_nritems(path->nodes[0]); path 5268 fs/btrfs/tree-log.c path->slots[0]++; path 5269 fs/btrfs/tree-log.c if (path->slots[0] < nritems) { path 5270 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &min_key, path 5271 fs/btrfs/tree-log.c path->slots[0]); path 5275 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, path 5284 fs/btrfs/tree-log.c btrfs_release_path(path); path 5296 fs/btrfs/tree-log.c ret = copy_items(trans, inode, dst_path, path, path 5306 fs/btrfs/tree-log.c btrfs_release_path(path); path 5308 fs/btrfs/tree-log.c err = btrfs_log_all_xattrs(trans, root, inode, path, dst_path); path 5313 fs/btrfs/tree-log.c btrfs_release_path(path); path 5315 fs/btrfs/tree-log.c err = btrfs_log_holes(trans, root, inode, path); path 5320 fs/btrfs/tree-log.c btrfs_release_path(path); path 5325 fs/btrfs/tree-log.c err = btrfs_log_all_xattrs(trans, root, inode, path, path 5327 fs/btrfs/tree-log.c btrfs_release_path(path); path 5372 fs/btrfs/tree-log.c ret = log_directory_changes(trans, root, inode, path, dst_path, path 5397 fs/btrfs/tree-log.c btrfs_free_path(path); path 5551 fs/btrfs/tree-log.c struct btrfs_path *path; path 5556 fs/btrfs/tree-log.c path = btrfs_alloc_path(); path 5557 fs/btrfs/tree-log.c if (!path) path 5562 fs/btrfs/tree-log.c btrfs_free_path(path); path 5583 fs/btrfs/tree-log.c btrfs_release_path(path); path 5584 fs/btrfs/tree-log.c ret = btrfs_search_forward(log, &min_key, path, trans->transid); path 5593 fs/btrfs/tree-log.c leaf = path->nodes[0]; path 5595 fs/btrfs/tree-log.c for (i = path->slots[0]; i < nritems; i++) { path 5617 fs/btrfs/tree-log.c btrfs_release_path(path); path 5653 fs/btrfs/tree-log.c ret = btrfs_next_leaf(log, path); path 5671 fs/btrfs/tree-log.c btrfs_free_path(path); path 5681 fs/btrfs/tree-log.c struct btrfs_path *path; path 5686 fs/btrfs/tree-log.c path = btrfs_alloc_path(); path 5687 fs/btrfs/tree-log.c if (!path) path 5689 fs/btrfs/tree-log.c path->skip_locking = 1; path 5690 fs/btrfs/tree-log.c path->search_commit_root = 1; path 5695 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 5700 fs/btrfs/tree-log.c struct extent_buffer *leaf = path->nodes[0]; path 5701 fs/btrfs/tree-log.c int slot = path->slots[0]; path 5707 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); path 5788 fs/btrfs/tree-log.c path->slots[0]++; path 5792 fs/btrfs/tree-log.c btrfs_free_path(path); path 5798 fs/btrfs/tree-log.c struct btrfs_path *path, path 5803 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); path 5808 fs/btrfs/tree-log.c struct extent_buffer *leaf = path->nodes[0]; path 5809 fs/btrfs/tree-log.c int slot = path->slots[0]; path 5814 fs/btrfs/tree-log.c btrfs_release_path(path); path 5835 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); path 5839 fs/btrfs/tree-log.c leaf = path->nodes[0]; path 5840 fs/btrfs/tree-log.c slot = path->slots[0]; path 5842 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); path 5847 fs/btrfs/tree-log.c leaf = path->nodes[0]; path 5848 fs/btrfs/tree-log.c slot = path->slots[0]; path 5904 fs/btrfs/tree-log.c struct btrfs_path *path; path 5915 fs/btrfs/tree-log.c path = btrfs_alloc_path(); path 5916 fs/btrfs/tree-log.c if (!path) path 5923 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); path 5927 fs/btrfs/tree-log.c path->slots[0]++; path 5930 fs/btrfs/tree-log.c struct extent_buffer *leaf = path->nodes[0]; path 5931 fs/btrfs/tree-log.c int slot = path->slots[0]; path 5935 fs/btrfs/tree-log.c ret = btrfs_next_leaf(root, path); path 5968 fs/btrfs/tree-log.c ret = log_new_ancestors(trans, root, path, ctx); path 5971 fs/btrfs/tree-log.c btrfs_release_path(path); path 5976 fs/btrfs/tree-log.c btrfs_free_path(path); path 6160 fs/btrfs/tree-log.c struct btrfs_path *path; path 6172 fs/btrfs/tree-log.c path = btrfs_alloc_path(); path 6173 fs/btrfs/tree-log.c if (!path) path 6200 fs/btrfs/tree-log.c ret = btrfs_search_slot(NULL, log_root_tree, &key, path, 0, 0); path 6208 fs/btrfs/tree-log.c if (path->slots[0] == 0) path 6210 fs/btrfs/tree-log.c path->slots[0]--; path 6212 fs/btrfs/tree-log.c btrfs_item_key_to_cpu(path->nodes[0], &found_key, path 6213 fs/btrfs/tree-log.c path->slots[0]); path 6214 fs/btrfs/tree-log.c btrfs_release_path(path); path 6266 fs/btrfs/tree-log.c path); path 6272 fs/btrfs/tree-log.c btrfs_release_path(path); path 6298 fs/btrfs/tree-log.c btrfs_release_path(path); path 6313 fs/btrfs/tree-log.c btrfs_free_path(path); path 6329 fs/btrfs/tree-log.c btrfs_free_path(path); path 26 fs/btrfs/uuid-tree.c struct btrfs_path *path = NULL; path 38 fs/btrfs/uuid-tree.c path = btrfs_alloc_path(); path 39 fs/btrfs/uuid-tree.c if (!path) { path 45 fs/btrfs/uuid-tree.c ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0); path 53 fs/btrfs/uuid-tree.c eb = path->nodes[0]; path 54 fs/btrfs/uuid-tree.c slot = path->slots[0]; path 78 fs/btrfs/uuid-tree.c btrfs_free_path(path); path 88 fs/btrfs/uuid-tree.c struct btrfs_path *path = NULL; path 106 fs/btrfs/uuid-tree.c path = btrfs_alloc_path(); path 107 fs/btrfs/uuid-tree.c if (!path) { path 112 fs/btrfs/uuid-tree.c ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, path 116 fs/btrfs/uuid-tree.c eb = path->nodes[0]; path 117 fs/btrfs/uuid-tree.c slot = path->slots[0]; path 124 fs/btrfs/uuid-tree.c btrfs_extend_item(path, sizeof(subid_le)); path 125 fs/btrfs/uuid-tree.c eb = path->nodes[0]; path 126 fs/btrfs/uuid-tree.c slot = path->slots[0]; path 143 fs/btrfs/uuid-tree.c btrfs_free_path(path); path 153 fs/btrfs/uuid-tree.c struct btrfs_path *path = NULL; path 170 fs/btrfs/uuid-tree.c path = btrfs_alloc_path(); path 171 fs/btrfs/uuid-tree.c if (!path) { path 176 fs/btrfs/uuid-tree.c ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); path 187 fs/btrfs/uuid-tree.c eb = path->nodes[0]; path 188 fs/btrfs/uuid-tree.c slot = path->slots[0]; path 214 fs/btrfs/uuid-tree.c ret = btrfs_del_item(trans, uuid_root, path); path 222 fs/btrfs/uuid-tree.c btrfs_truncate_item(path, item_size - sizeof(subid), 1); path 225 fs/btrfs/uuid-tree.c btrfs_free_path(path); path 255 fs/btrfs/uuid-tree.c struct btrfs_path *path; path 262 fs/btrfs/uuid-tree.c path = btrfs_alloc_path(); path 263 fs/btrfs/uuid-tree.c if (!path) { path 273 fs/btrfs/uuid-tree.c ret = btrfs_search_forward(root, &key, path, BTRFS_OLDEST_GENERATION); path 282 fs/btrfs/uuid-tree.c leaf = path->nodes[0]; path 283 fs/btrfs/uuid-tree.c slot = path->slots[0]; path 312 fs/btrfs/uuid-tree.c btrfs_release_path(path); path 335 fs/btrfs/uuid-tree.c ret = btrfs_next_item(root, path); path 344 fs/btrfs/uuid-tree.c btrfs_free_path(path); path 710 fs/btrfs/volumes.c static bool device_path_matched(const char *path, struct btrfs_device *device) path 715 fs/btrfs/volumes.c found = strcmp(rcu_str_deref(device->name), path); path 732 fs/btrfs/volumes.c static int btrfs_free_stale_devices(const char *path, path 739 fs/btrfs/volumes.c if (path) path 749 fs/btrfs/volumes.c if (path && !device->name) path 751 fs/btrfs/volumes.c if (path && !device_path_matched(path, device)) path 755 fs/btrfs/volumes.c if (path && ret != 0) path 943 fs/btrfs/volumes.c static noinline struct btrfs_device *device_list_add(const char *path, path 1038 fs/btrfs/volumes.c name = rcu_string_strdup(path, GFP_NOFS); path 1054 fs/btrfs/volumes.c disk_super->label, devid, found_transid, path); path 1057 fs/btrfs/volumes.c disk_super->fsid, devid, found_transid, path); path 1059 fs/btrfs/volumes.c } else if (!device->name || strcmp(device->name->str, path)) { path 1105 fs/btrfs/volumes.c path_bdev = lookup_bdev(path); path 1117 fs/btrfs/volumes.c rcu_str_deref(device->name), path); path 1124 fs/btrfs/volumes.c rcu_str_deref(device->name), path); path 1127 fs/btrfs/volumes.c name = rcu_string_strdup(path, GFP_NOFS); path 1484 fs/btrfs/volumes.c int btrfs_forget_devices(const char *path) path 1489 fs/btrfs/volumes.c ret = btrfs_free_stale_devices(strlen(path) ? path : NULL, NULL); path 1500 fs/btrfs/volumes.c struct btrfs_device *btrfs_scan_one_device(const char *path, fmode_t flags, path 1521 fs/btrfs/volumes.c bdev = blkdev_get_by_path(path, flags, holder); path 1530 fs/btrfs/volumes.c device = device_list_add(path, disk_super, &new_device_added); path 1533 fs/btrfs/volumes.c btrfs_free_stale_devices(path, device); path 1605 fs/btrfs/volumes.c struct btrfs_path *path; path 1622 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 1623 fs/btrfs/volumes.c if (!path) path 1636 fs/btrfs/volumes.c path->reada = READA_FORWARD; path 1637 fs/btrfs/volumes.c path->search_commit_root = 1; path 1638 fs/btrfs/volumes.c path->skip_locking = 1; path 1644 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 1648 fs/btrfs/volumes.c ret = btrfs_previous_item(root, path, key.objectid, key.type); path 1654 fs/btrfs/volumes.c l = path->nodes[0]; path 1655 fs/btrfs/volumes.c slot = path->slots[0]; path 1657 fs/btrfs/volumes.c ret = btrfs_next_leaf(root, path); path 1717 fs/btrfs/volumes.c path->slots[0]++; path 1730 fs/btrfs/volumes.c btrfs_release_path(path); path 1747 fs/btrfs/volumes.c btrfs_free_path(path); path 1768 fs/btrfs/volumes.c struct btrfs_path *path; path 1774 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 1775 fs/btrfs/volumes.c if (!path) path 1782 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 1784 fs/btrfs/volumes.c ret = btrfs_previous_item(root, path, key.objectid, path 1788 fs/btrfs/volumes.c leaf = path->nodes[0]; path 1789 fs/btrfs/volumes.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); path 1790 fs/btrfs/volumes.c extent = btrfs_item_ptr(leaf, path->slots[0], path 1795 fs/btrfs/volumes.c btrfs_release_path(path); path 1798 fs/btrfs/volumes.c leaf = path->nodes[0]; path 1799 fs/btrfs/volumes.c extent = btrfs_item_ptr(leaf, path->slots[0], path 1808 fs/btrfs/volumes.c ret = btrfs_del_item(trans, root, path); path 1816 fs/btrfs/volumes.c btrfs_free_path(path); path 1825 fs/btrfs/volumes.c struct btrfs_path *path; path 1834 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 1835 fs/btrfs/volumes.c if (!path) path 1841 fs/btrfs/volumes.c ret = btrfs_insert_empty_item(trans, root, path, &key, path 1846 fs/btrfs/volumes.c leaf = path->nodes[0]; path 1847 fs/btrfs/volumes.c extent = btrfs_item_ptr(leaf, path->slots[0], path 1858 fs/btrfs/volumes.c btrfs_free_path(path); path 1887 fs/btrfs/volumes.c struct btrfs_path *path; path 1889 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 1890 fs/btrfs/volumes.c if (!path) path 1897 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, fs_info->chunk_root, &key, path, 0, 0); path 1908 fs/btrfs/volumes.c ret = btrfs_previous_item(fs_info->chunk_root, path, path 1914 fs/btrfs/volumes.c btrfs_item_key_to_cpu(path->nodes[0], &found_key, path 1915 fs/btrfs/volumes.c path->slots[0]); path 1920 fs/btrfs/volumes.c btrfs_free_path(path); path 1932 fs/btrfs/volumes.c struct btrfs_path *path; path 1938 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 1939 fs/btrfs/volumes.c if (!path) path 1946 fs/btrfs/volumes.c ret = btrfs_insert_empty_item(trans, trans->fs_info->chunk_root, path, path 1951 fs/btrfs/volumes.c leaf = path->nodes[0]; path 1952 fs/btrfs/volumes.c dev_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dev_item); path 1978 fs/btrfs/volumes.c btrfs_free_path(path); path 2001 fs/btrfs/volumes.c struct btrfs_path *path; path 2005 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 2006 fs/btrfs/volumes.c if (!path) path 2011 fs/btrfs/volumes.c btrfs_free_path(path); path 2018 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 2027 fs/btrfs/volumes.c ret = btrfs_del_item(trans, root, path); path 2034 fs/btrfs/volumes.c btrfs_free_path(path); path 2524 fs/btrfs/volumes.c struct btrfs_path *path; path 2534 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 2535 fs/btrfs/volumes.c if (!path) path 2543 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); path 2547 fs/btrfs/volumes.c leaf = path->nodes[0]; path 2549 fs/btrfs/volumes.c if (path->slots[0] >= btrfs_header_nritems(leaf)) { path 2550 fs/btrfs/volumes.c ret = btrfs_next_leaf(root, path); path 2555 fs/btrfs/volumes.c leaf = path->nodes[0]; path 2556 fs/btrfs/volumes.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 2557 fs/btrfs/volumes.c btrfs_release_path(path); path 2561 fs/btrfs/volumes.c btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); path 2566 fs/btrfs/volumes.c dev_item = btrfs_item_ptr(leaf, path->slots[0], path 2583 fs/btrfs/volumes.c path->slots[0]++; path 2588 fs/btrfs/volumes.c btrfs_free_path(path); path 2814 fs/btrfs/volumes.c struct btrfs_path *path; path 2820 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 2821 fs/btrfs/volumes.c if (!path) path 2828 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, 0, 1); path 2837 fs/btrfs/volumes.c leaf = path->nodes[0]; path 2838 fs/btrfs/volumes.c dev_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dev_item); path 2852 fs/btrfs/volumes.c btrfs_free_path(path); path 2899 fs/btrfs/volumes.c struct btrfs_path *path; path 2902 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 2903 fs/btrfs/volumes.c if (!path) path 2910 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 2920 fs/btrfs/volumes.c ret = btrfs_del_item(trans, root, path); path 2925 fs/btrfs/volumes.c btrfs_free_path(path); path 3146 fs/btrfs/volumes.c struct btrfs_path *path; path 3156 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 3157 fs/btrfs/volumes.c if (!path) path 3167 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, chunk_root, &key, path, 0, 0); path 3174 fs/btrfs/volumes.c ret = btrfs_previous_item(chunk_root, path, key.objectid, path 3183 fs/btrfs/volumes.c leaf = path->nodes[0]; path 3184 fs/btrfs/volumes.c btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); path 3186 fs/btrfs/volumes.c chunk = btrfs_item_ptr(leaf, path->slots[0], path 3189 fs/btrfs/volumes.c btrfs_release_path(path); path 3213 fs/btrfs/volumes.c btrfs_free_path(path); path 3265 fs/btrfs/volumes.c struct btrfs_path *path; path 3270 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 3271 fs/btrfs/volumes.c if (!path) path 3276 fs/btrfs/volumes.c btrfs_free_path(path); path 3284 fs/btrfs/volumes.c ret = btrfs_insert_empty_item(trans, root, path, &key, path 3289 fs/btrfs/volumes.c leaf = path->nodes[0]; path 3290 fs/btrfs/volumes.c item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_balance_item); path 3305 fs/btrfs/volumes.c btrfs_free_path(path); path 3316 fs/btrfs/volumes.c struct btrfs_path *path; path 3320 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 3321 fs/btrfs/volumes.c if (!path) path 3326 fs/btrfs/volumes.c btrfs_free_path(path); path 3334 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, root, &key, path, -1, 1); path 3342 fs/btrfs/volumes.c ret = btrfs_del_item(trans, root, path); path 3344 fs/btrfs/volumes.c btrfs_free_path(path); path 3690 fs/btrfs/volumes.c struct btrfs_path *path = NULL; path 3707 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 3708 fs/btrfs/volumes.c if (!path) { path 3739 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, chunk_root, &key, path, 0, 0); path 3752 fs/btrfs/volumes.c ret = btrfs_previous_item(chunk_root, path, 0, path 3760 fs/btrfs/volumes.c leaf = path->nodes[0]; path 3761 fs/btrfs/volumes.c slot = path->slots[0]; path 3780 fs/btrfs/volumes.c btrfs_release_path(path); path 3856 fs/btrfs/volumes.c btrfs_release_path(path); path 3861 fs/btrfs/volumes.c btrfs_free_path(path); path 4315 fs/btrfs/volumes.c struct btrfs_path *path; path 4320 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 4321 fs/btrfs/volumes.c if (!path) path 4328 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, fs_info->tree_root, &key, path, 0, 0); path 4342 fs/btrfs/volumes.c leaf = path->nodes[0]; path 4343 fs/btrfs/volumes.c item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_balance_item); path 4376 fs/btrfs/volumes.c btrfs_free_path(path); path 4464 fs/btrfs/volumes.c struct btrfs_path *path = NULL; path 4472 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 4473 fs/btrfs/volumes.c if (!path) { path 4483 fs/btrfs/volumes.c ret = btrfs_search_forward(root, &key, path, path 4497 fs/btrfs/volumes.c eb = path->nodes[0]; path 4498 fs/btrfs/volumes.c slot = path->slots[0]; path 4514 fs/btrfs/volumes.c btrfs_release_path(path); path 4560 fs/btrfs/volumes.c btrfs_release_path(path); path 4577 fs/btrfs/volumes.c btrfs_free_path(path); path 4721 fs/btrfs/volumes.c struct btrfs_path *path; path 4743 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 4744 fs/btrfs/volumes.c if (!path) path 4747 fs/btrfs/volumes.c path->reada = READA_BACK; path 4751 fs/btrfs/volumes.c btrfs_free_path(path); path 4785 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 4791 fs/btrfs/volumes.c ret = btrfs_previous_item(root, path, 0, key.type); path 4798 fs/btrfs/volumes.c btrfs_release_path(path); path 4802 fs/btrfs/volumes.c l = path->nodes[0]; path 4803 fs/btrfs/volumes.c slot = path->slots[0]; path 4804 fs/btrfs/volumes.c btrfs_item_key_to_cpu(l, &key, path->slots[0]); path 4808 fs/btrfs/volumes.c btrfs_release_path(path); path 4817 fs/btrfs/volumes.c btrfs_release_path(path); path 4822 fs/btrfs/volumes.c btrfs_release_path(path); path 4886 fs/btrfs/volumes.c btrfs_free_path(path); path 7241 fs/btrfs/volumes.c struct btrfs_path *path; path 7249 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 7250 fs/btrfs/volumes.c if (!path) path 7269 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 7273 fs/btrfs/volumes.c leaf = path->nodes[0]; path 7274 fs/btrfs/volumes.c slot = path->slots[0]; path 7276 fs/btrfs/volumes.c ret = btrfs_next_leaf(root, path); path 7299 fs/btrfs/volumes.c path->slots[0]++; path 7328 fs/btrfs/volumes.c btrfs_free_path(path); path 7379 fs/btrfs/volumes.c struct btrfs_path *path = NULL; path 7382 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 7383 fs/btrfs/volumes.c if (!path) path 7394 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, dev_root, &key, path, 0, 0); path 7399 fs/btrfs/volumes.c btrfs_release_path(path); path 7402 fs/btrfs/volumes.c slot = path->slots[0]; path 7403 fs/btrfs/volumes.c eb = path->nodes[0]; path 7419 fs/btrfs/volumes.c btrfs_release_path(path); path 7423 fs/btrfs/volumes.c btrfs_free_path(path); path 7432 fs/btrfs/volumes.c struct btrfs_path *path; path 7443 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 7444 fs/btrfs/volumes.c if (!path) path 7446 fs/btrfs/volumes.c ret = btrfs_search_slot(trans, dev_root, &key, path, -1, 1); path 7455 fs/btrfs/volumes.c btrfs_item_size_nr(path->nodes[0], path->slots[0]) < sizeof(*ptr)) { path 7457 fs/btrfs/volumes.c ret = btrfs_del_item(trans, dev_root, path); path 7469 fs/btrfs/volumes.c btrfs_release_path(path); path 7470 fs/btrfs/volumes.c ret = btrfs_insert_empty_item(trans, dev_root, path, path 7480 fs/btrfs/volumes.c eb = path->nodes[0]; path 7481 fs/btrfs/volumes.c ptr = btrfs_item_ptr(eb, path->slots[0], struct btrfs_dev_stats_item); path 7488 fs/btrfs/volumes.c btrfs_free_path(path); path 7826 fs/btrfs/volumes.c struct btrfs_path *path; path 7837 fs/btrfs/volumes.c path = btrfs_alloc_path(); path 7838 fs/btrfs/volumes.c if (!path) path 7841 fs/btrfs/volumes.c path->reada = READA_FORWARD; path 7842 fs/btrfs/volumes.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 7846 fs/btrfs/volumes.c if (path->slots[0] >= btrfs_header_nritems(path->nodes[0])) { path 7847 fs/btrfs/volumes.c ret = btrfs_next_item(root, path); path 7857 fs/btrfs/volumes.c struct extent_buffer *leaf = path->nodes[0]; path 7859 fs/btrfs/volumes.c int slot = path->slots[0]; path 7891 fs/btrfs/volumes.c ret = btrfs_next_item(root, path); path 7903 fs/btrfs/volumes.c btrfs_free_path(path); path 441 fs/btrfs/volumes.h struct btrfs_device *btrfs_scan_one_device(const char *path, path 443 fs/btrfs/volumes.h int btrfs_forget_devices(const char *path); path 464 fs/btrfs/volumes.h int btrfs_init_new_device(struct btrfs_fs_info *fs_info, const char *path); path 28 fs/btrfs/xattr.c struct btrfs_path *path; path 33 fs/btrfs/xattr.c path = btrfs_alloc_path(); path 34 fs/btrfs/xattr.c if (!path) path 38 fs/btrfs/xattr.c di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(BTRFS_I(inode)), path 48 fs/btrfs/xattr.c leaf = path->nodes[0]; path 75 fs/btrfs/xattr.c btrfs_free_path(path); path 85 fs/btrfs/xattr.c struct btrfs_path *path; path 94 fs/btrfs/xattr.c path = btrfs_alloc_path(); path 95 fs/btrfs/xattr.c if (!path) path 97 fs/btrfs/xattr.c path->skip_release_on_error = 1; path 100 fs/btrfs/xattr.c di = btrfs_lookup_xattr(trans, root, path, path 107 fs/btrfs/xattr.c ret = btrfs_delete_one_dir_name(trans, root, path, di); path 120 fs/btrfs/xattr.c di = btrfs_lookup_xattr(NULL, root, path, path 128 fs/btrfs/xattr.c btrfs_release_path(path); path 132 fs/btrfs/xattr.c ret = btrfs_insert_xattr_item(trans, root, path, btrfs_ino(BTRFS_I(inode)), path 141 fs/btrfs/xattr.c btrfs_assert_tree_locked(path->nodes[0]); path 142 fs/btrfs/xattr.c di = btrfs_match_dir_item_name(fs_info, path, name, name_len); path 149 fs/btrfs/xattr.c di = btrfs_match_dir_item_name(fs_info, path, name, name_len); path 168 fs/btrfs/xattr.c const int slot = path->slots[0]; path 169 fs/btrfs/xattr.c struct extent_buffer *leaf = path->nodes[0]; path 188 fs/btrfs/xattr.c btrfs_extend_item(path, size - old_data_len); path 190 fs/btrfs/xattr.c btrfs_truncate_item(path, data_size, 1); path 193 fs/btrfs/xattr.c ret = btrfs_delete_one_dir_name(trans, root, path, di); path 196 fs/btrfs/xattr.c btrfs_extend_item(path, data_size); path 215 fs/btrfs/xattr.c btrfs_free_path(path); path 254 fs/btrfs/xattr.c struct btrfs_path *path; path 267 fs/btrfs/xattr.c path = btrfs_alloc_path(); path 268 fs/btrfs/xattr.c if (!path) path 270 fs/btrfs/xattr.c path->reada = READA_FORWARD; path 273 fs/btrfs/xattr.c ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); path 285 fs/btrfs/xattr.c leaf = path->nodes[0]; path 286 fs/btrfs/xattr.c slot = path->slots[0]; path 294 fs/btrfs/xattr.c ret = btrfs_next_leaf(root, path); path 344 fs/btrfs/xattr.c path->slots[0]++; path 349 fs/btrfs/xattr.c btrfs_free_path(path); path 84 fs/cachefiles/bind.c struct path path; path 114 fs/cachefiles/bind.c ret = kern_path(cache->rootdirname, LOOKUP_DIRECTORY, &path); path 118 fs/cachefiles/bind.c cache->mnt = path.mnt; path 119 fs/cachefiles/bind.c root = path.dentry; path 142 fs/cachefiles/bind.c ret = vfs_statfs(&path, &stats); path 552 fs/cachefiles/daemon.c struct path path; path 572 fs/cachefiles/daemon.c get_fs_pwd(current->fs, &path); path 574 fs/cachefiles/daemon.c if (!d_can_lookup(path.dentry)) path 578 fs/cachefiles/daemon.c ret = cachefiles_cull(cache, path.dentry, args); path 581 fs/cachefiles/daemon.c path_put(&path); path 586 fs/cachefiles/daemon.c path_put(&path); path 624 fs/cachefiles/daemon.c struct path path; path 644 fs/cachefiles/daemon.c get_fs_pwd(current->fs, &path); path 646 fs/cachefiles/daemon.c if (!d_can_lookup(path.dentry)) path 650 fs/cachefiles/daemon.c ret = cachefiles_check_in_use(cache, path.dentry, args); path 653 fs/cachefiles/daemon.c path_put(&path); path 658 fs/cachefiles/daemon.c path_put(&path); path 675 fs/cachefiles/daemon.c struct path path = { path 693 fs/cachefiles/daemon.c ret = vfs_statfs(&path, &stats); path 504 fs/cachefiles/interface.c struct path path; path 522 fs/cachefiles/interface.c path.dentry = object->backer; path 523 fs/cachefiles/interface.c path.mnt = cache->mnt; path 526 fs/cachefiles/interface.c ret = vfs_truncate(&path, 0); path 528 fs/cachefiles/interface.c ret = vfs_truncate(&path, ni_size); path 295 fs/cachefiles/namei.c struct path path, path_to_graveyard; path 307 fs/cachefiles/namei.c path.mnt = cache->mnt; path 308 fs/cachefiles/namei.c path.dentry = dir; path 309 fs/cachefiles/namei.c ret = security_path_unlink(&path, rep); path 407 fs/cachefiles/namei.c path.mnt = cache->mnt; path 408 fs/cachefiles/namei.c path.dentry = dir; path 411 fs/cachefiles/namei.c ret = security_path_rename(&path, rep, &path_to_graveyard, grave, 0); path 490 fs/cachefiles/namei.c struct path path; path 501 fs/cachefiles/namei.c path.mnt = cache->mnt; path 559 fs/cachefiles/namei.c path.dentry = dir; path 560 fs/cachefiles/namei.c ret = security_path_mkdir(&path, next, 0); path 595 fs/cachefiles/namei.c path.dentry = dir; path 596 fs/cachefiles/namei.c ret = security_path_mknod(&path, next, S_IFREG, 0); path 682 fs/cachefiles/namei.c path.dentry = next; path 683 fs/cachefiles/namei.c touch_atime(&path); path 760 fs/cachefiles/namei.c struct path path; path 789 fs/cachefiles/namei.c path.mnt = cache->mnt; path 790 fs/cachefiles/namei.c path.dentry = dir; path 791 fs/cachefiles/namei.c ret = security_path_mkdir(&path, subdir, 0700); path 885 fs/cachefiles/rdwr.c struct path path; path 920 fs/cachefiles/rdwr.c path.mnt = cache->mnt; path 921 fs/cachefiles/rdwr.c path.dentry = object->backer; path 922 fs/cachefiles/rdwr.c file = dentry_open(&path, O_RDWR | O_LARGEFILE, cache->cache_cred); path 57 fs/ceph/debugfs.c char *path; path 81 fs/ceph/debugfs.c path = ceph_mdsc_build_path(req->r_dentry, &pathlen, path 83 fs/ceph/debugfs.c if (IS_ERR(path)) path 84 fs/ceph/debugfs.c path = NULL; path 89 fs/ceph/debugfs.c path ? path : ""); path 91 fs/ceph/debugfs.c ceph_mdsc_free_path(path, pathlen); path 100 fs/ceph/debugfs.c path = ceph_mdsc_build_path(req->r_old_dentry, &pathlen, path 102 fs/ceph/debugfs.c if (IS_ERR(path)) path 103 fs/ceph/debugfs.c path = NULL; path 109 fs/ceph/debugfs.c path ? path : ""); path 111 fs/ceph/debugfs.c ceph_mdsc_free_path(path, pathlen); path 2329 fs/ceph/inode.c int ceph_getattr(const struct path *path, struct kstat *stat, path 2332 fs/ceph/inode.c struct inode *inode = d_inode(path->dentry); path 2133 fs/ceph/mds_client.c char *path; path 2141 fs/ceph/mds_client.c path = __getname(); path 2142 fs/ceph/mds_client.c if (!path) path 2146 fs/ceph/mds_client.c path[pos] = '\0'; path 2170 fs/ceph/mds_client.c memcpy(path + pos, temp->d_name.name, temp->d_name.len); path 2183 fs/ceph/mds_client.c path[pos] = '/'; path 2200 fs/ceph/mds_client.c dentry, d_count(dentry), base, *plen, path + pos); path 2201 fs/ceph/mds_client.c return path + pos; path 2208 fs/ceph/mds_client.c char *path; path 2221 fs/ceph/mds_client.c path = ceph_mdsc_build_path(dentry, ppathlen, pino, 1); path 2222 fs/ceph/mds_client.c if (IS_ERR(path)) path 2223 fs/ceph/mds_client.c return PTR_ERR(path); path 2224 fs/ceph/mds_client.c *ppath = path; path 2234 fs/ceph/mds_client.c char *path; path 2242 fs/ceph/mds_client.c path = ceph_mdsc_build_path(dentry, ppathlen, pino, 1); path 2244 fs/ceph/mds_client.c if (IS_ERR(path)) path 2245 fs/ceph/mds_client.c return PTR_ERR(path); path 2246 fs/ceph/mds_client.c *ppath = path; path 3467 fs/ceph/mds_client.c char *path = NULL; path 3472 fs/ceph/mds_client.c path = ceph_mdsc_build_path(dentry, path 3475 fs/ceph/mds_client.c if (IS_ERR(path)) { path 3476 fs/ceph/mds_client.c err = PTR_ERR(path); path 3490 fs/ceph/mds_client.c ceph_pagelist_encode_string(pagelist, path, pathlen); path 3493 fs/ceph/mds_client.c ceph_mdsc_free_path(path, pathlen); path 499 fs/ceph/mds_client.h static inline void ceph_mdsc_free_path(char *path, int len) path 501 fs/ceph/mds_client.h if (path) path 502 fs/ceph/mds_client.h __putname(path - (PATH_MAX - 1 - len)); path 223 fs/ceph/super.c static void canonicalize_path(char *path) path 227 fs/ceph/super.c for (i = 0; path[i] != '\0'; i++) { path 228 fs/ceph/super.c if (path[i] != '/' || j < 1 || path[j - 1] != '/') path 229 fs/ceph/super.c path[j++] = path[i]; path 232 fs/ceph/super.c if (j > 1 && path[j - 1] == '/') path 234 fs/ceph/super.c path[j] = '\0'; path 913 fs/ceph/super.c const char *path, path 922 fs/ceph/super.c dout("open_root_inode opening '%s'\n", path); path 926 fs/ceph/super.c req->r_path1 = kstrdup(path, GFP_NOFS); path 970 fs/ceph/super.c const char *path = fsc->mount_options->server_path ? path 984 fs/ceph/super.c dout("mount opening path '%s'\n", path); path 988 fs/ceph/super.c root = open_root_dentry(fsc, path, started); path 935 fs/ceph/super.h extern int ceph_getattr(const struct path *path, struct kstat *stat, path 392 fs/cifs/cifs_dfs_ref.c struct vfsmount *cifs_dfs_d_automount(struct path *path) path 398 fs/cifs/cifs_dfs_ref.c newmnt = cifs_dfs_do_automount(path->dentry); path 1054 fs/cifs/cifsacl.c const char *path, u32 *pacllen) path 1079 fs/cifs/cifsacl.c oparms.path = path; path 1100 fs/cifs/cifsacl.c struct inode *inode, const char *path, path 1109 fs/cifs/cifsacl.c return get_cifs_acl_by_path(cifs_sb, path, pacllen); path 1118 fs/cifs/cifsacl.c struct inode *inode, const char *path, int aclflag) path 1148 fs/cifs/cifsacl.c oparms.path = path; path 1172 fs/cifs/cifsacl.c const char *path, const struct cifs_fid *pfid) path 1180 fs/cifs/cifsacl.c cifs_dbg(NOISY, "converting ACL to mode for %s\n", path); path 1190 fs/cifs/cifsacl.c pntsd = ops->get_acl(cifs_sb, inode, path, &acllen); path 1216 fs/cifs/cifsacl.c id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64 nmode, path 1234 fs/cifs/cifsacl.c cifs_dbg(NOISY, "set ACL from mode for %s\n", path); path 1243 fs/cifs/cifsacl.c pntsd = ops->get_acl(cifs_sb, inode, path, &secdesclen); path 1280 fs/cifs/cifsacl.c rc = ops->set_acl(pnntsd, secdesclen, inode, path, aclflag); path 85 fs/cifs/cifsfs.h extern int cifs_getattr(const struct path *, struct kstat *, u32, unsigned int); path 126 fs/cifs/cifsfs.h extern struct vfsmount *cifs_dfs_d_automount(struct path *path); path 488 fs/cifs/cifsglob.h __le16 *path, int is_dir, path 1220 fs/cifs/cifsglob.h const char *path; path 1456 fs/cifs/cifsglob.h convert_delimiter(char *path, char delim) path 1465 fs/cifs/cifsglob.h pos = path; path 2752 fs/cifs/cifspdu.h char path[1024]; path 207 fs/cifs/cifsproto.h const char *path, const struct cifs_fid *pfid); path 208 fs/cifs/cifsproto.h extern int id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64, path 531 fs/cifs/cifsproto.h const unsigned char *path); path 566 fs/cifs/cifsproto.h const unsigned char *path, char *pbuf, path 570 fs/cifs/cifsproto.h const unsigned char *path, char *pbuf, path 1410 fs/cifs/cifssmb.c const char *path = oparms->path; path 1425 fs/cifs/cifssmb.c path, PATH_MAX, nls, remap); path 1434 fs/cifs/cifssmb.c name_len = copy_path_name(req->fileName, path); path 4453 fs/cifs/connect.c static inline int get_next_dfs_tgt(const char *path, path 4489 fs/cifs/connect.c static int setup_dfs_tgt_conn(const char *path, path 4503 fs/cifs/connect.c cifs_dbg(FYI, "%s: dfs path: %s\n", __func__, path); path 4505 fs/cifs/connect.c rc = dfs_cache_get_tgt_referral(path, tgt_it, &ref); path 4509 fs/cifs/connect.c mdata = cifs_compose_mount_options(cifs_sb->mountdata, path, &ref, path 4545 fs/cifs/connect.c static int mount_do_dfs_failover(const char *path, path 4561 fs/cifs/connect.c rc = dfs_cache_noreq_find(path, NULL, &tgt_list); path 4567 fs/cifs/connect.c rc = get_next_dfs_tgt(path, &tgt_list, &tgt_it); path 4571 fs/cifs/connect.c rc = setup_dfs_tgt_conn(path, tgt_it, cifs_sb, vol, xid, server, path 4583 fs/cifs/connect.c cifs_remap(cifs_sb), path, path 79 fs/cifs/dfs_cache.c static inline bool is_path_valid(const char *path) path 81 fs/cifs/dfs_cache.c return path && (strchr(path + 1, '\\') || strchr(path + 1, '/')); path 84 fs/cifs/dfs_cache.c static inline int get_normalized_path(const char *path, char **npath) path 86 fs/cifs/dfs_cache.c if (*path == '\\') { path 87 fs/cifs/dfs_cache.c *npath = (char *)path; path 89 fs/cifs/dfs_cache.c *npath = kstrndup(path, strlen(path), GFP_KERNEL); path 97 fs/cifs/dfs_cache.c static inline void free_normalized_path(const char *path, char *npath) path 99 fs/cifs/dfs_cache.c if (path != npath) path 317 fs/cifs/dfs_cache.c static inline bool is_sysvol_or_netlogon(const char *path) path 320 fs/cifs/dfs_cache.c char sep = path[0]; path 322 fs/cifs/dfs_cache.c s = strchr(path + 1, sep) + 1; path 405 fs/cifs/dfs_cache.c alloc_cache_entry(const char *path, const struct dfs_info3_param *refs, path 415 fs/cifs/dfs_cache.c ce->ce_path = kstrdup_const(path, GFP_KERNEL); path 457 fs/cifs/dfs_cache.c add_cache_entry(unsigned int hash, const char *path, path 462 fs/cifs/dfs_cache.c ce = alloc_cache_entry(path, refs, numrefs); path 484 fs/cifs/dfs_cache.c const char *path) path 491 fs/cifs/dfs_cache.c if (!strcasecmp(path, ce->ce_path)) { path 516 fs/cifs/dfs_cache.c static inline struct dfs_cache_entry *find_cache_entry(const char *path, path 519 fs/cifs/dfs_cache.c *hash = cache_entry_hash(path, strlen(path)); path 520 fs/cifs/dfs_cache.c return __find_cache_entry(*hash, path); path 564 fs/cifs/dfs_cache.c __update_cache_entry(const char *path, const struct dfs_info3_param *refs, path 572 fs/cifs/dfs_cache.c ce = find_cache_entry(path, &h); path 599 fs/cifs/dfs_cache.c const char *path, struct dfs_cache_entry *ce) path 615 fs/cifs/dfs_cache.c cifs_dbg(FYI, "%s: DFS referral request for %s\n", __func__, path); path 617 fs/cifs/dfs_cache.c rc = ses->server->ops->get_dfs_refer(xid, ses, path, &refs, &numrefs, path 622 fs/cifs/dfs_cache.c ce = __update_cache_entry(path, refs, numrefs); path 642 fs/cifs/dfs_cache.c const char *path, bool noreq) path 650 fs/cifs/dfs_cache.c cifs_dbg(FYI, "%s: search path: %s\n", __func__, path); path 652 fs/cifs/dfs_cache.c ce = find_cache_entry(path, &h); path 679 fs/cifs/dfs_cache.c path); path 681 fs/cifs/dfs_cache.c rc = ses->server->ops->get_dfs_refer(xid, ses, path, &nrefs, path 698 fs/cifs/dfs_cache.c ce = add_cache_entry(h, path, nrefs, numnrefs); path 715 fs/cifs/dfs_cache.c ce = update_cache_entry(xid, ses, nls_codepage, remap, path, path 726 fs/cifs/dfs_cache.c static int setup_ref(const char *path, const struct dfs_cache_entry *ce, path 735 fs/cifs/dfs_cache.c ref->path_name = kstrndup(path, strlen(path), GFP_KERNEL); path 827 fs/cifs/dfs_cache.c const char *path, struct dfs_info3_param *ref, path 834 fs/cifs/dfs_cache.c if (unlikely(!is_path_valid(path))) path 837 fs/cifs/dfs_cache.c rc = get_normalized_path(path, &npath); path 845 fs/cifs/dfs_cache.c rc = setup_ref(path, ce, ref, get_tgt_name(ce)); path 854 fs/cifs/dfs_cache.c free_normalized_path(path, npath); path 874 fs/cifs/dfs_cache.c int dfs_cache_noreq_find(const char *path, struct dfs_info3_param *ref, path 881 fs/cifs/dfs_cache.c if (unlikely(!is_path_valid(path))) path 884 fs/cifs/dfs_cache.c rc = get_normalized_path(path, &npath); path 896 fs/cifs/dfs_cache.c rc = setup_ref(path, ce, ref, get_tgt_name(ce)); path 903 fs/cifs/dfs_cache.c free_normalized_path(path, npath); path 927 fs/cifs/dfs_cache.c const char *path, path 935 fs/cifs/dfs_cache.c if (unlikely(!is_path_valid(path))) path 938 fs/cifs/dfs_cache.c rc = get_normalized_path(path, &npath); path 969 fs/cifs/dfs_cache.c free_normalized_path(path, npath); path 987 fs/cifs/dfs_cache.c int dfs_cache_noreq_update_tgthint(const char *path, path 995 fs/cifs/dfs_cache.c if (unlikely(!is_path_valid(path)) || !it) path 998 fs/cifs/dfs_cache.c rc = get_normalized_path(path, &npath); path 1030 fs/cifs/dfs_cache.c free_normalized_path(path, npath); path 1044 fs/cifs/dfs_cache.c int dfs_cache_get_tgt_referral(const char *path, path 1055 fs/cifs/dfs_cache.c if (unlikely(!is_path_valid(path))) path 1058 fs/cifs/dfs_cache.c rc = get_normalized_path(path, &npath); path 1074 fs/cifs/dfs_cache.c rc = setup_ref(path, ce, ref, it->it_name); path 1078 fs/cifs/dfs_cache.c free_normalized_path(path, npath); path 1283 fs/cifs/dfs_cache.c static inline bool is_dfs_link(const char *path) path 1287 fs/cifs/dfs_cache.c s = strchr(path + 1, '\\'); path 1293 fs/cifs/dfs_cache.c static inline char *get_dfs_root(const char *path) path 1297 fs/cifs/dfs_cache.c s = strchr(path + 1, '\\'); path 1305 fs/cifs/dfs_cache.c npath = kstrndup(path, s - path, GFP_KERNEL); path 1314 fs/cifs/dfs_cache.c struct cifs_tcon *tcon, const char *path) path 1324 fs/cifs/dfs_cache.c rpath = get_dfs_root(path); path 1381 fs/cifs/dfs_cache.c char *path, *npath; path 1390 fs/cifs/dfs_cache.c path = tcon->dfs_path + 1; path 1392 fs/cifs/dfs_cache.c rc = get_normalized_path(path, &npath); path 1423 fs/cifs/dfs_cache.c rc = ses->server->ops->get_dfs_refer(xid, ses, path, &refs, path 1442 fs/cifs/dfs_cache.c free_normalized_path(path, npath); path 31 fs/cifs/dfs_cache.h const char *path, struct dfs_info3_param *ref, path 33 fs/cifs/dfs_cache.h extern int dfs_cache_noreq_find(const char *path, struct dfs_info3_param *ref, path 38 fs/cifs/dfs_cache.h int remap, const char *path, path 41 fs/cifs/dfs_cache.h dfs_cache_noreq_update_tgthint(const char *path, path 43 fs/cifs/dfs_cache.h extern int dfs_cache_get_tgt_referral(const char *path, path 368 fs/cifs/dir.c oparms.path = full_path; path 240 fs/cifs/file.c oparms.path = full_path; path 771 fs/cifs/file.c oparms.path = full_path; path 438 fs/cifs/inode.c cifs_sfu_type(struct cifs_fattr *fattr, const char *path, path 479 fs/cifs/inode.c oparms.path = path; path 489 fs/cifs/inode.c cifs_dbg(FYI, "check sfu type of %s, open rc = %d\n", path, rc); path 555 fs/cifs/inode.c static int cifs_sfu_mode(struct cifs_fattr *fattr, const unsigned char *path, path 575 fs/cifs/inode.c rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path, path 1073 fs/cifs/inode.c char *path = NULL; path 1079 fs/cifs/inode.c path = kzalloc(len + 2 /* leading sep + null */, GFP_KERNEL); path 1080 fs/cifs/inode.c if (path == NULL) path 1082 fs/cifs/inode.c path[0] = '/'; path 1083 fs/cifs/inode.c memcpy(path+1, cifs_sb->prepath, len); path 1085 fs/cifs/inode.c path = kstrdup("", GFP_KERNEL); path 1086 fs/cifs/inode.c if (path == NULL) path 1092 fs/cifs/inode.c rc = cifs_get_inode_info_unix(&inode, path, sb, xid); path 1100 fs/cifs/inode.c convert_delimiter(path, CIFS_DIR_SEP(cifs_sb)); path 1101 fs/cifs/inode.c rc = cifs_get_inode_info(&inode, path, NULL, sb, xid, NULL); path 1130 fs/cifs/inode.c kfree(path); path 1226 fs/cifs/inode.c oparms.path = full_path; path 1764 fs/cifs/inode.c oparms.path = from_path; path 2076 fs/cifs/inode.c int cifs_getattr(const struct path *path, struct kstat *stat, path 2079 fs/cifs/inode.c struct dentry *dentry = path->dentry; path 45 fs/cifs/ioctl.c unsigned char *path; path 49 fs/cifs/ioctl.c path = build_path_from_dentry(dentry); path 50 fs/cifs/ioctl.c if (path == NULL) path 53 fs/cifs/ioctl.c cifs_dbg(FYI, "%s %s\n", __func__, path); path 55 fs/cifs/ioctl.c if (!path[0]) { path 59 fs/cifs/ioctl.c utf16_path = cifs_convert_path_to_utf16(path + 1, cifs_sb); path 76 fs/cifs/ioctl.c kfree(path); path 216 fs/cifs/link.c struct cifs_sb_info *cifs_sb, const unsigned char *path, path 230 fs/cifs/link.c cifs_sb, path, buf, &bytes_read); path 251 fs/cifs/link.c const unsigned char *path) path 268 fs/cifs/link.c cifs_sb, path, buf, &bytes_read); path 304 fs/cifs/link.c struct cifs_sb_info *cifs_sb, const unsigned char *path, path 320 fs/cifs/link.c oparms.path = path; path 348 fs/cifs/link.c struct cifs_sb_info *cifs_sb, const unsigned char *path, path 366 fs/cifs/link.c oparms.path = path; path 390 fs/cifs/link.c struct cifs_sb_info *cifs_sb, const unsigned char *path, path 412 fs/cifs/link.c utf16_path = cifs_convert_path_to_utf16(path, cifs_sb); path 453 fs/cifs/link.c struct cifs_sb_info *cifs_sb, const unsigned char *path, path 468 fs/cifs/link.c cifs_dbg(FYI, "%s: path: %s\n", __func__, path); path 470 fs/cifs/link.c utf16_path = cifs_convert_path_to_utf16(path, cifs_sb); path 572 fs/cifs/smb1ops.c oparms.path = full_path; path 702 fs/cifs/smb1ops.c return SMBLegacyOpen(xid, oparms->tcon, oparms->path, path 800 fs/cifs/smb1ops.c oparms.path = full_path; path 838 fs/cifs/smb1ops.c const char *path, struct cifs_sb_info *cifs_sb, path 844 fs/cifs/smb1ops.c rc = CIFSFindFirst(xid, tcon, path, cifs_sb, path 977 fs/cifs/smb1ops.c oparms.path = full_path; path 1103 fs/cifs/smb1ops.c oparms.path = full_path; path 48 fs/cifs/smb2file.c smb2_path = cifs_convert_path_to_utf16(oparms->path, oparms->cifs_sb); path 1018 fs/cifs/smb2ops.c const unsigned char *path, const unsigned char *ea_name, path 1029 fs/cifs/smb2ops.c utf16_path = cifs_convert_path_to_utf16(path, cifs_sb); path 1074 fs/cifs/smb2ops.c const char *path, const char *ea_name, const void *ea_value, path 1104 fs/cifs/smb2ops.c utf16_path = cifs_convert_path_to_utf16(path, cifs_sb); path 1114 fs/cifs/smb2ops.c rc = ses->server->ops->query_all_EAs(xid, tcon, path, path 1396 fs/cifs/smb2ops.c __le16 *path, int is_dir, path 1484 fs/cifs/smb2ops.c rc = SMB2_open_init(tcon, &rqst[0], &oplock, &oparms, path); path 2029 fs/cifs/smb2ops.c const char *path, struct cifs_sb_info *cifs_sb, path 2038 fs/cifs/smb2ops.c utf16_path = cifs_convert_path_to_utf16(path, cifs_sb); path 2821 fs/cifs/smb2ops.c const char *path, u32 *pacllen) path 2833 fs/cifs/smb2ops.c cifs_dbg(FYI, "get smb3 acl for path %s\n", path); path 2845 fs/cifs/smb2ops.c utf16_path = cifs_convert_path_to_utf16(path, cifs_sb); path 2877 fs/cifs/smb2ops.c struct inode *inode, const char *path, int aclflag) path 2889 fs/cifs/smb2ops.c cifs_dbg(FYI, "set smb3 acl for path %s\n", path); path 2906 fs/cifs/smb2ops.c utf16_path = cifs_convert_path_to_utf16(path, cifs_sb); path 2916 fs/cifs/smb2ops.c oparms.path = path; path 2936 fs/cifs/smb2ops.c struct inode *inode, const char *path, path 2945 fs/cifs/smb2ops.c return get_smb2_acl_by_path(cifs_sb, path, pacllen); path 4430 fs/cifs/smb2ops.c oparms.path = full_path; path 2219 fs/cifs/smb2pdu.c const char *treename, const __le16 *path) path 2235 fs/cifs/smb2pdu.c path_len = UniStrnlen((wchar_t *)path, PATH_MAX); path 2256 fs/cifs/smb2pdu.c UniStrcat(*out_path, path); path 2414 fs/cifs/smb2pdu.c struct cifs_open_parms *oparms, __le16 *path) path 2464 fs/cifs/smb2pdu.c tcon->treeName, path); path 2469 fs/cifs/smb2pdu.c path = copy_path; path 2471 fs/cifs/smb2pdu.c uni_path_len = (2 * UniStrnlen((wchar_t *)path, PATH_MAX)) + 2; path 2480 fs/cifs/smb2pdu.c memcpy((char *)copy_path, (const char *)path, path 2483 fs/cifs/smb2pdu.c path = copy_path; path 2487 fs/cifs/smb2pdu.c iov[1].iov_base = path; path 2589 fs/cifs/smb2pdu.c SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms, __le16 *path, path 2618 fs/cifs/smb2pdu.c rc = SMB2_open_init(tcon, &rqst, oplock, oparms, path); path 104 fs/cifs/smb2proto.h struct cifs_sb_info *cifs_sb, const unsigned char *path, path 108 fs/cifs/smb2proto.h const unsigned char *path, char *pbuf, path 137 fs/cifs/smb2proto.h __le16 *path, __u8 *oplock, path 142 fs/cifs/smb2proto.h __le16 *path); path 299 fs/cifs/trace.h __string(path, full_path) path 305 fs/cifs/trace.h __assign_str(path, full_path); path 309 fs/cifs/trace.h __get_str(path)) path 51 fs/coda/coda_linux.h int coda_getattr(const struct path *, struct kstat *, u32, unsigned int); path 254 fs/coda/inode.c int coda_getattr(const struct path *path, struct kstat *stat, path 257 fs/coda/inode.c int err = coda_revalidate_inode(d_inode(path->dentry)); path 259 fs/coda/inode.c generic_fillattr(d_inode(path->dentry), stat); path 51 fs/coda/pioctl.c struct path path; path 66 fs/coda/pioctl.c error = user_path_at(AT_FDCWD, data.path, path 67 fs/coda/pioctl.c data.follow ? LOOKUP_FOLLOW : 0, &path); path 71 fs/coda/pioctl.c target_inode = d_inode(path.dentry); path 84 fs/coda/pioctl.c path_put(&path); path 59 fs/configfs/symlink.c struct config_item *target, char *path) path 71 fs/configfs/symlink.c for (s = path; depth--; s += 3) path 74 fs/configfs/symlink.c fill_item_path(target, path, size); path 75 fs/configfs/symlink.c pr_debug("%s: path = '%s'\n", __func__, path); path 119 fs/configfs/symlink.c static int get_target(const char *symname, struct path *path, path 124 fs/configfs/symlink.c ret = kern_path(symname, LOOKUP_FOLLOW|LOOKUP_DIRECTORY, path); path 126 fs/configfs/symlink.c if (path->dentry->d_sb == sb) { path 127 fs/configfs/symlink.c *target = configfs_get_config_item(path->dentry); path 130 fs/configfs/symlink.c path_put(path); path 134 fs/configfs/symlink.c path_put(path); path 145 fs/configfs/symlink.c struct path path; path 192 fs/configfs/symlink.c ret = get_target(symname, &path, &target_item, dentry->d_sb); path 213 fs/configfs/symlink.c path_put(&path); path 159 fs/coredump.c char *pathbuf, *path; path 172 fs/coredump.c path = file_path(exe_file, pathbuf, PATH_MAX); path 173 fs/coredump.c if (IS_ERR(path)) { path 174 fs/coredump.c ret = PTR_ERR(path); path 178 fs/coredump.c ret = cn_esc_printf(cn, "%s", path); path 743 fs/coredump.c struct path root; path 75 fs/d_path.c static int prepend_path(const struct path *path, path 76 fs/d_path.c const struct path *root, path 96 fs/d_path.c dentry = path->dentry; path 97 fs/d_path.c vfsmnt = path->mnt; path 176 fs/d_path.c char *__d_path(const struct path *path, path 177 fs/d_path.c const struct path *root, path 184 fs/d_path.c error = prepend_path(path, root, &res, &buflen); path 193 fs/d_path.c char *d_absolute_path(const struct path *path, path 196 fs/d_path.c struct path root = {}; path 201 fs/d_path.c error = prepend_path(path, &root, &res, &buflen); path 213 fs/d_path.c static int path_with_deleted(const struct path *path, path 214 fs/d_path.c const struct path *root, path 218 fs/d_path.c if (d_unlinked(path->dentry)) { path 224 fs/d_path.c return prepend_path(path, root, buf, buflen); path 232 fs/d_path.c static void get_fs_root_rcu(struct fs_struct *fs, struct path *root) path 258 fs/d_path.c char *d_path(const struct path *path, char *buf, int buflen) path 261 fs/d_path.c struct path root; path 275 fs/d_path.c if (path->dentry->d_op && path->dentry->d_op->d_dname && path 276 fs/d_path.c (!IS_ROOT(path->dentry) || path->dentry != path->mnt->mnt_root)) path 277 fs/d_path.c return path->dentry->d_op->d_dname(path->dentry, buf, buflen); path 281 fs/d_path.c error = path_with_deleted(path, &root, &res, &buflen); path 395 fs/d_path.c static void get_fs_root_and_pwd_rcu(struct fs_struct *fs, struct path *root, path 396 fs/d_path.c struct path *pwd) path 428 fs/d_path.c struct path pwd, root; path 1381 fs/dcache.c struct path path = { .mnt = info->mnt, .dentry = dentry }; path 1385 fs/dcache.c if (__path_is_mountpoint(&path)) { path 1400 fs/dcache.c int path_has_submounts(const struct path *parent) path 37 fs/dcookies.c struct path path; path 56 fs/dcookies.c return (unsigned long)dcs->path.dentry; path 94 fs/dcookies.c static struct dcookie_struct *alloc_dcookie(const struct path *path) path 102 fs/dcookies.c d = path->dentry; path 107 fs/dcookies.c dcs->path = *path; path 108 fs/dcookies.c path_get(path); path 117 fs/dcookies.c int get_dcookie(const struct path *path, unsigned long *cookie) path 129 fs/dcookies.c if (path->dentry->d_flags & DCACHE_COOKIE) { path 130 fs/dcookies.c dcs = find_dcookie((unsigned long)path->dentry); path 132 fs/dcookies.c dcs = alloc_dcookie(path); path 155 fs/dcookies.c char * path; path 181 fs/dcookies.c path = d_path(&dcs->path, kbuf, PAGE_SIZE); path 185 fs/dcookies.c if (IS_ERR(path)) { path 186 fs/dcookies.c err = PTR_ERR(path); path 192 fs/dcookies.c pathlen = kbuf + PAGE_SIZE - path; path 195 fs/dcookies.c if (copy_to_user(buf, path, pathlen)) path 279 fs/dcookies.c struct dentry *d = dcs->path.dentry; path 285 fs/dcookies.c path_put(&dcs->path); path 218 fs/debugfs/inode.c static struct vfsmount *debugfs_automount(struct path *path) path 221 fs/debugfs/inode.c f = (debugfs_automount_t)path->dentry->d_fsdata; path 222 fs/debugfs/inode.c return f(path->dentry, d_inode(path->dentry)->i_private); path 131 fs/devpts/inode.c static int devpts_ptmx_path(struct path *path) path 137 fs/devpts/inode.c err = path_pts(path); path 142 fs/devpts/inode.c sb = path->mnt->mnt_sb; path 144 fs/devpts/inode.c (path->mnt->mnt_root != sb->s_root)) path 170 fs/devpts/inode.c struct path path; path 173 fs/devpts/inode.c path = filp->f_path; path 174 fs/devpts/inode.c path_get(&path); path 179 fs/devpts/inode.c while (path.mnt->mnt_root == path.dentry) path 180 fs/devpts/inode.c if (follow_up(&path) == 0) path 184 fs/devpts/inode.c if ((path.mnt->mnt_sb->s_magic != DEVPTS_SUPER_MAGIC) || path 185 fs/devpts/inode.c (DEVPTS_SB(path.mnt->mnt_sb) != fsi)) path 186 fs/devpts/inode.c err = devpts_ptmx_path(&path); path 187 fs/devpts/inode.c dput(path.dentry); path 189 fs/devpts/inode.c if (DEVPTS_SB(path.mnt->mnt_sb) == fsi) path 190 fs/devpts/inode.c return path.mnt; path 195 fs/devpts/inode.c mntput(path.mnt); path 202 fs/devpts/inode.c struct path path; path 205 fs/devpts/inode.c path = filp->f_path; path 206 fs/devpts/inode.c path_get(&path); path 209 fs/devpts/inode.c if (path.mnt->mnt_sb->s_magic != DEVPTS_SUPER_MAGIC) { path 212 fs/devpts/inode.c err = devpts_ptmx_path(&path); path 222 fs/devpts/inode.c sb = path.mnt->mnt_sb; path 227 fs/devpts/inode.c path_put(&path); path 231 fs/direct-io.c char *path; path 235 fs/direct-io.c path = file_path(filp, pathname, sizeof(pathname)); path 236 fs/direct-io.c if (IS_ERR(path)) path 237 fs/direct-io.c path = "(unknown)"; path 239 fs/direct-io.c pr_crit("File: %s PID: %d Comm: %.20s\n", path, current->pid, path 264 fs/ecryptfs/ecryptfs_kernel.h struct path lower_path; path 524 fs/ecryptfs/ecryptfs_kernel.h static inline struct path * path 36 fs/ecryptfs/file.c struct path *path; path 41 fs/ecryptfs/file.c path = ecryptfs_dentry_to_lower_path(file->f_path.dentry); path 42 fs/ecryptfs/file.c touch_atime(path); path 322 fs/ecryptfs/inode.c struct path *path = ecryptfs_dentry_to_lower_path(dentry->d_parent); path 334 fs/ecryptfs/inode.c d_inode(path->dentry)); path 338 fs/ecryptfs/inode.c dentry_info->lower_path.mnt = mntget(path->mnt); path 969 fs/ecryptfs/inode.c static int ecryptfs_getattr_link(const struct path *path, struct kstat *stat, path 972 fs/ecryptfs/inode.c struct dentry *dentry = path->dentry; path 994 fs/ecryptfs/inode.c static int ecryptfs_getattr(const struct path *path, struct kstat *stat, path 997 fs/ecryptfs/inode.c struct dentry *dentry = path->dentry; path 18 fs/ecryptfs/kthread.c struct path path; path 62 fs/ecryptfs/kthread.c *req->lower_file = dentry_open(&req->path, path 127 fs/ecryptfs/kthread.c req.path.dentry = lower_dentry; path 128 fs/ecryptfs/kthread.c req.path.mnt = lower_mnt; path 134 fs/ecryptfs/kthread.c (*lower_file) = dentry_open(&req.path, flags, cred); path 108 fs/ecryptfs/main.c struct path *path = ecryptfs_dentry_to_lower_path(dentry); path 111 fs/ecryptfs/main.c rc = ecryptfs_privileged_open(lower_file, path->dentry, path->mnt, path 116 fs/ecryptfs/main.c "rc = [%d]\n", path->dentry, path->mnt, rc); path 485 fs/ecryptfs/main.c struct path path; path 521 fs/ecryptfs/main.c rc = kern_path(dev_name, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &path); path 526 fs/ecryptfs/main.c if (path.dentry->d_sb->s_type == &ecryptfs_fs_type) { path 534 fs/ecryptfs/main.c if (check_ruid && !uid_eq(d_inode(path.dentry)->i_uid, current_uid())) { path 538 fs/ecryptfs/main.c i_uid_read(d_inode(path.dentry)), path 543 fs/ecryptfs/main.c ecryptfs_set_superblock_lower(s, path.dentry->d_sb); path 550 fs/ecryptfs/main.c s->s_flags |= path.dentry->d_sb->s_flags & SB_POSIXACL; path 557 fs/ecryptfs/main.c if (sb_rdonly(path.dentry->d_sb) || mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) path 560 fs/ecryptfs/main.c s->s_maxbytes = path.dentry->d_sb->s_maxbytes; path 561 fs/ecryptfs/main.c s->s_blocksize = path.dentry->d_sb->s_blocksize; path 563 fs/ecryptfs/main.c s->s_stack_depth = path.dentry->d_sb->s_stack_depth + 1; path 571 fs/ecryptfs/main.c inode = ecryptfs_get_inode(d_inode(path.dentry), s); path 589 fs/ecryptfs/main.c root_info->lower_path = path; path 595 fs/ecryptfs/main.c path_put(&path); path 296 fs/erofs/inode.c int erofs_getattr(const struct path *path, struct kstat *stat, path 299 fs/erofs/inode.c struct inode *const inode = d_inode(path->dentry); path 372 fs/erofs/internal.h int erofs_getattr(const struct path *path, struct kstat *stat, path 108 fs/exec.c bool path_noexec(const struct path *path) path 110 fs/exec.c return (path->mnt->mnt_flags & MNT_NOEXEC) || path 111 fs/exec.c (path->mnt->mnt_sb->s_iflags & SB_I_NOEXEC); path 966 fs/exec.c int kernel_read_file_from_path(const char *path, void **buf, loff_t *size, path 972 fs/exec.c if (!path || !*path) path 975 fs/exec.c file = filp_open(path, O_RDONLY, 0); path 24 fs/exportfs/expfs.c static int get_name(const struct path *path, char *name, struct dentry *child); path 31 fs/exportfs/expfs.c struct path path = {.mnt = mnt, .dentry = dir}; path 36 fs/exportfs/expfs.c return get_name(&path, name, child); path 277 fs/exportfs/expfs.c static int get_name(const struct path *path, char *name, struct dentry *child) path 280 fs/exportfs/expfs.c struct inode *dir = path->dentry->d_inode; path 284 fs/exportfs/expfs.c struct path child_path = { path 285 fs/exportfs/expfs.c .mnt = path->mnt, path 313 fs/exportfs/expfs.c file = dentry_open(path, O_RDONLY, cred); path 761 fs/ext2/ext2.h extern int ext2_getattr (const struct path *, struct kstat *, u32, unsigned int); path 1644 fs/ext2/inode.c int ext2_getattr(const struct path *path, struct kstat *stat, path 1647 fs/ext2/inode.c struct inode *inode = d_inode(path->dentry); path 328 fs/ext2/super.c const struct path *path); path 1590 fs/ext2/super.c const struct path *path) path 1595 fs/ext2/super.c err = dquot_quota_on(sb, type, format_id, path); path 1599 fs/ext2/super.c inode = d_inode(path->dentry); path 2617 fs/ext4/ext4.h extern int ext4_getattr(const struct path *, struct kstat *, u32, unsigned int); path 2620 fs/ext4/ext4.h extern int ext4_file_getattr(const struct path *, struct kstat *, u32, unsigned int); path 3297 fs/ext4/ext4.h struct ext4_ext_path *path); path 3309 fs/ext4/ext4.h extern ext4_lblk_t ext4_ext_next_allocated_block(struct ext4_ext_path *path); path 270 fs/ext4/ext4_extents.h #define ext4_ext_dirty(handle, inode, path) \ path 271 fs/ext4/ext4_extents.h __ext4_ext_dirty(__func__, __LINE__, (handle), (inode), (path)) path 273 fs/ext4/ext4_extents.h struct inode *inode, struct ext4_ext_path *path); path 134 fs/ext4/extents.c struct ext4_ext_path *path) path 136 fs/ext4/extents.c if (path->p_bh) { path 138 fs/ext4/extents.c BUFFER_TRACE(path->p_bh, "get_write_access"); path 139 fs/ext4/extents.c return ext4_journal_get_write_access(handle, path->p_bh); path 153 fs/ext4/extents.c struct inode *inode, struct ext4_ext_path *path) path 158 fs/ext4/extents.c if (path->p_bh) { path 159 fs/ext4/extents.c ext4_extent_block_csum_set(inode, ext_block_hdr(path->p_bh)); path 162 fs/ext4/extents.c inode, path->p_bh); path 171 fs/ext4/extents.c struct ext4_ext_path *path, path 174 fs/ext4/extents.c if (path) { path 175 fs/ext4/extents.c int depth = path->p_depth; path 195 fs/ext4/extents.c ex = path[depth].p_ext; path 208 fs/ext4/extents.c if (path[depth].p_bh) path 209 fs/ext4/extents.c return path[depth].p_bh->b_blocknr; path 221 fs/ext4/extents.c struct ext4_ext_path *path, path 226 fs/ext4/extents.c goal = ext4_ext_find_goal(inode, path, le32_to_cpu(ex->ee_block)); path 291 fs/ext4/extents.c struct ext4_ext_path *path = *ppath; path 292 fs/ext4/extents.c int unwritten = ext4_ext_is_unwritten(path[path->p_depth].p_ext); path 579 fs/ext4/extents.c struct ext4_ext_path *path = NULL; path 589 fs/ext4/extents.c path = kcalloc(depth + 1, sizeof(struct ext4_ext_path), path 591 fs/ext4/extents.c if (path == NULL) { path 599 fs/ext4/extents.c path[0].p_hdr = ext_inode_hdr(inode); path 600 fs/ext4/extents.c ret = ext4_ext_check(inode, path[0].p_hdr, depth, 0); path 603 fs/ext4/extents.c path[0].p_idx = EXT_FIRST_INDEX(path[0].p_hdr); path 610 fs/ext4/extents.c path[i].p_idx > EXT_LAST_INDEX(path[i].p_hdr)) { path 611 fs/ext4/extents.c brelse(path[i].p_bh); path 612 fs/ext4/extents.c path[i].p_bh = NULL; path 617 fs/ext4/extents.c ext4_idx_pblock(path[i].p_idx++), path 625 fs/ext4/extents.c path[i].p_bh = bh; path 626 fs/ext4/extents.c path[i].p_hdr = ext_block_hdr(bh); path 627 fs/ext4/extents.c path[i].p_idx = EXT_FIRST_INDEX(path[i].p_hdr); path 632 fs/ext4/extents.c ext4_ext_drop_refs(path); path 633 fs/ext4/extents.c kfree(path); path 638 fs/ext4/extents.c static void ext4_ext_show_path(struct inode *inode, struct ext4_ext_path *path) path 640 fs/ext4/extents.c int k, l = path->p_depth; path 643 fs/ext4/extents.c for (k = 0; k <= l; k++, path++) { path 644 fs/ext4/extents.c if (path->p_idx) { path 645 fs/ext4/extents.c ext_debug(" %d->%llu", le32_to_cpu(path->p_idx->ei_block), path 646 fs/ext4/extents.c ext4_idx_pblock(path->p_idx)); path 647 fs/ext4/extents.c } else if (path->p_ext) { path 649 fs/ext4/extents.c le32_to_cpu(path->p_ext->ee_block), path 650 fs/ext4/extents.c ext4_ext_is_unwritten(path->p_ext), path 651 fs/ext4/extents.c ext4_ext_get_actual_len(path->p_ext), path 652 fs/ext4/extents.c ext4_ext_pblock(path->p_ext)); path 659 fs/ext4/extents.c static void ext4_ext_show_leaf(struct inode *inode, struct ext4_ext_path *path) path 666 fs/ext4/extents.c if (!path) path 669 fs/ext4/extents.c eh = path[depth].p_hdr; path 682 fs/ext4/extents.c static void ext4_ext_show_move(struct inode *inode, struct ext4_ext_path *path, path 690 fs/ext4/extents.c idx = path[level].p_idx; path 691 fs/ext4/extents.c while (idx <= EXT_MAX_INDEX(path[level].p_hdr)) { path 702 fs/ext4/extents.c ex = path[depth].p_ext; path 703 fs/ext4/extents.c while (ex <= EXT_MAX_EXTENT(path[depth].p_hdr)) { path 715 fs/ext4/extents.c #define ext4_ext_show_path(inode, path) path 716 fs/ext4/extents.c #define ext4_ext_show_leaf(inode, path) path 717 fs/ext4/extents.c #define ext4_ext_show_move(inode, path, newblock, level) path 720 fs/ext4/extents.c void ext4_ext_drop_refs(struct ext4_ext_path *path) path 724 fs/ext4/extents.c if (!path) path 726 fs/ext4/extents.c depth = path->p_depth; path 727 fs/ext4/extents.c for (i = 0; i <= depth; i++, path++) path 728 fs/ext4/extents.c if (path->p_bh) { path 729 fs/ext4/extents.c brelse(path->p_bh); path 730 fs/ext4/extents.c path->p_bh = NULL; path 741 fs/ext4/extents.c struct ext4_ext_path *path, ext4_lblk_t block) path 743 fs/ext4/extents.c struct ext4_extent_header *eh = path->p_hdr; path 762 fs/ext4/extents.c path->p_idx = l - 1; path 763 fs/ext4/extents.c ext_debug(" -> %u->%lld ", le32_to_cpu(path->p_idx->ei_block), path 764 fs/ext4/extents.c ext4_idx_pblock(path->p_idx)); path 788 fs/ext4/extents.c BUG_ON(chix != path->p_idx); path 801 fs/ext4/extents.c struct ext4_ext_path *path, ext4_lblk_t block) path 803 fs/ext4/extents.c struct ext4_extent_header *eh = path->p_hdr; path 830 fs/ext4/extents.c path->p_ext = l - 1; path 832 fs/ext4/extents.c le32_to_cpu(path->p_ext->ee_block), path 833 fs/ext4/extents.c ext4_ext_pblock(path->p_ext), path 834 fs/ext4/extents.c ext4_ext_is_unwritten(path->p_ext), path 835 fs/ext4/extents.c ext4_ext_get_actual_len(path->p_ext)); path 850 fs/ext4/extents.c BUG_ON(chex != path->p_ext); path 875 fs/ext4/extents.c struct ext4_ext_path *path = orig_path ? *orig_path : NULL; path 888 fs/ext4/extents.c if (path) { path 889 fs/ext4/extents.c ext4_ext_drop_refs(path); path 890 fs/ext4/extents.c if (depth > path[0].p_maxdepth) { path 891 fs/ext4/extents.c kfree(path); path 892 fs/ext4/extents.c *orig_path = path = NULL; path 895 fs/ext4/extents.c if (!path) { path 897 fs/ext4/extents.c path = kcalloc(depth + 2, sizeof(struct ext4_ext_path), path 899 fs/ext4/extents.c if (unlikely(!path)) path 901 fs/ext4/extents.c path[0].p_maxdepth = depth + 1; path 903 fs/ext4/extents.c path[0].p_hdr = eh; path 904 fs/ext4/extents.c path[0].p_bh = NULL; path 914 fs/ext4/extents.c ext4_ext_binsearch_idx(inode, path + ppos, block); path 915 fs/ext4/extents.c path[ppos].p_block = ext4_idx_pblock(path[ppos].p_idx); path 916 fs/ext4/extents.c path[ppos].p_depth = i; path 917 fs/ext4/extents.c path[ppos].p_ext = NULL; path 919 fs/ext4/extents.c bh = read_extent_tree_block(inode, path[ppos].p_block, --i, path 928 fs/ext4/extents.c path[ppos].p_bh = bh; path 929 fs/ext4/extents.c path[ppos].p_hdr = eh; path 932 fs/ext4/extents.c path[ppos].p_depth = i; path 933 fs/ext4/extents.c path[ppos].p_ext = NULL; path 934 fs/ext4/extents.c path[ppos].p_idx = NULL; path 937 fs/ext4/extents.c ext4_ext_binsearch(inode, path + ppos, block); path 939 fs/ext4/extents.c if (path[ppos].p_ext) path 940 fs/ext4/extents.c path[ppos].p_block = ext4_ext_pblock(path[ppos].p_ext); path 942 fs/ext4/extents.c ext4_ext_show_path(inode, path); path 944 fs/ext4/extents.c return path; path 947 fs/ext4/extents.c ext4_ext_drop_refs(path); path 948 fs/ext4/extents.c kfree(path); path 1037 fs/ext4/extents.c struct ext4_ext_path *path, path 1056 fs/ext4/extents.c if (unlikely(path[depth].p_ext > EXT_MAX_EXTENT(path[depth].p_hdr))) { path 1060 fs/ext4/extents.c if (path[depth].p_ext != EXT_MAX_EXTENT(path[depth].p_hdr)) { path 1061 fs/ext4/extents.c border = path[depth].p_ext[1].ee_block; path 1091 fs/ext4/extents.c newblock = ext4_ext_new_meta_block(handle, inode, path, path 1123 fs/ext4/extents.c if (unlikely(path[depth].p_hdr->eh_entries != path 1124 fs/ext4/extents.c path[depth].p_hdr->eh_max)) { path 1126 fs/ext4/extents.c path[depth].p_hdr->eh_entries, path 1127 fs/ext4/extents.c path[depth].p_hdr->eh_max); path 1132 fs/ext4/extents.c m = EXT_MAX_EXTENT(path[depth].p_hdr) - path[depth].p_ext++; path 1133 fs/ext4/extents.c ext4_ext_show_move(inode, path, newblock, depth); path 1137 fs/ext4/extents.c memmove(ex, path[depth].p_ext, sizeof(struct ext4_extent) * m); path 1157 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + depth); path 1160 fs/ext4/extents.c le16_add_cpu(&path[depth].p_hdr->eh_entries, -m); path 1161 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + depth); path 1206 fs/ext4/extents.c if (unlikely(EXT_MAX_INDEX(path[i].p_hdr) != path 1207 fs/ext4/extents.c EXT_LAST_INDEX(path[i].p_hdr))) { path 1210 fs/ext4/extents.c le32_to_cpu(path[i].p_ext->ee_block)); path 1215 fs/ext4/extents.c m = EXT_MAX_INDEX(path[i].p_hdr) - path[i].p_idx++; path 1216 fs/ext4/extents.c ext_debug("cur 0x%p, last 0x%p\n", path[i].p_idx, path 1217 fs/ext4/extents.c EXT_MAX_INDEX(path[i].p_hdr)); path 1218 fs/ext4/extents.c ext4_ext_show_move(inode, path, newblock, i); path 1220 fs/ext4/extents.c memmove(++fidx, path[i].p_idx, path 1241 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + i); path 1244 fs/ext4/extents.c le16_add_cpu(&path[i].p_hdr->eh_entries, -m); path 1245 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + i); path 1254 fs/ext4/extents.c err = ext4_ext_insert_index(handle, inode, path + at, path 1377 fs/ext4/extents.c struct ext4_ext_path *path = *ppath; path 1385 fs/ext4/extents.c curp = path + depth; path 1396 fs/ext4/extents.c err = ext4_ext_split(handle, inode, mb_flags, path, newext, i); path 1401 fs/ext4/extents.c path = ext4_find_extent(inode, path 1404 fs/ext4/extents.c if (IS_ERR(path)) path 1405 fs/ext4/extents.c err = PTR_ERR(path); path 1413 fs/ext4/extents.c path = ext4_find_extent(inode, path 1416 fs/ext4/extents.c if (IS_ERR(path)) { path 1417 fs/ext4/extents.c err = PTR_ERR(path); path 1426 fs/ext4/extents.c if (path[depth].p_hdr->eh_entries == path[depth].p_hdr->eh_max) { path 1444 fs/ext4/extents.c struct ext4_ext_path *path, path 1451 fs/ext4/extents.c if (unlikely(path == NULL)) { path 1455 fs/ext4/extents.c depth = path->p_depth; path 1458 fs/ext4/extents.c if (depth == 0 && path->p_ext == NULL) path 1465 fs/ext4/extents.c ex = path[depth].p_ext; path 1468 fs/ext4/extents.c if (unlikely(EXT_FIRST_EXTENT(path[depth].p_hdr) != ex)) { path 1475 fs/ext4/extents.c ix = path[depth].p_idx; path 1476 fs/ext4/extents.c if (unlikely(ix != EXT_FIRST_INDEX(path[depth].p_hdr))) { path 1480 fs/ext4/extents.c EXT_FIRST_INDEX(path[depth].p_hdr) != NULL ? path 1481 fs/ext4/extents.c le32_to_cpu(EXT_FIRST_INDEX(path[depth].p_hdr)->ei_block) : 0, path 1509 fs/ext4/extents.c struct ext4_ext_path *path, path 1521 fs/ext4/extents.c if (unlikely(path == NULL)) { path 1525 fs/ext4/extents.c depth = path->p_depth; path 1528 fs/ext4/extents.c if (depth == 0 && path->p_ext == NULL) path 1535 fs/ext4/extents.c ex = path[depth].p_ext; path 1538 fs/ext4/extents.c if (unlikely(EXT_FIRST_EXTENT(path[depth].p_hdr) != ex)) { path 1545 fs/ext4/extents.c ix = path[depth].p_idx; path 1546 fs/ext4/extents.c if (unlikely(ix != EXT_FIRST_INDEX(path[depth].p_hdr))) { path 1563 fs/ext4/extents.c if (ex != EXT_LAST_EXTENT(path[depth].p_hdr)) { path 1571 fs/ext4/extents.c ix = path[depth].p_idx; path 1572 fs/ext4/extents.c if (ix != EXT_LAST_INDEX(path[depth].p_hdr)) path 1585 fs/ext4/extents.c while (++depth < path->p_depth) { path 1588 fs/ext4/extents.c path->p_depth - depth, 0); path 1597 fs/ext4/extents.c bh = read_extent_tree_block(inode, block, path->p_depth - depth, 0); path 1619 fs/ext4/extents.c ext4_ext_next_allocated_block(struct ext4_ext_path *path) path 1623 fs/ext4/extents.c BUG_ON(path == NULL); path 1624 fs/ext4/extents.c depth = path->p_depth; path 1626 fs/ext4/extents.c if (depth == 0 && path->p_ext == NULL) path 1630 fs/ext4/extents.c if (depth == path->p_depth) { path 1632 fs/ext4/extents.c if (path[depth].p_ext && path 1633 fs/ext4/extents.c path[depth].p_ext != path 1634 fs/ext4/extents.c EXT_LAST_EXTENT(path[depth].p_hdr)) path 1635 fs/ext4/extents.c return le32_to_cpu(path[depth].p_ext[1].ee_block); path 1638 fs/ext4/extents.c if (path[depth].p_idx != path 1639 fs/ext4/extents.c EXT_LAST_INDEX(path[depth].p_hdr)) path 1640 fs/ext4/extents.c return le32_to_cpu(path[depth].p_idx[1].ei_block); path 1652 fs/ext4/extents.c static ext4_lblk_t ext4_ext_next_leaf_block(struct ext4_ext_path *path) path 1656 fs/ext4/extents.c BUG_ON(path == NULL); path 1657 fs/ext4/extents.c depth = path->p_depth; path 1667 fs/ext4/extents.c if (path[depth].p_idx != path 1668 fs/ext4/extents.c EXT_LAST_INDEX(path[depth].p_hdr)) path 1670 fs/ext4/extents.c le32_to_cpu(path[depth].p_idx[1].ei_block); path 1684 fs/ext4/extents.c struct ext4_ext_path *path) path 1692 fs/ext4/extents.c eh = path[depth].p_hdr; path 1693 fs/ext4/extents.c ex = path[depth].p_ext; path 1715 fs/ext4/extents.c border = path[depth].p_ext->ee_block; path 1716 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + k); path 1719 fs/ext4/extents.c path[k].p_idx->ei_block = border; path 1720 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + k); path 1726 fs/ext4/extents.c if (path[k+1].p_idx != EXT_FIRST_INDEX(path[k+1].p_hdr)) path 1728 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + k); path 1731 fs/ext4/extents.c path[k].p_idx->ei_block = border; path 1732 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + k); path 1792 fs/ext4/extents.c struct ext4_ext_path *path, path 1800 fs/ext4/extents.c BUG_ON(path[depth].p_hdr == NULL); path 1801 fs/ext4/extents.c eh = path[depth].p_hdr; path 1834 fs/ext4/extents.c struct ext4_ext_path *path) path 1840 fs/ext4/extents.c if ((path[0].p_depth != 1) || path 1841 fs/ext4/extents.c (le16_to_cpu(path[0].p_hdr->eh_entries) != 1) || path 1842 fs/ext4/extents.c (le16_to_cpu(path[1].p_hdr->eh_entries) > max_root)) path 1856 fs/ext4/extents.c blk = ext4_idx_pblock(path[0].p_idx); path 1857 fs/ext4/extents.c s = le16_to_cpu(path[1].p_hdr->eh_entries) * path 1861 fs/ext4/extents.c path[1].p_maxdepth = path[0].p_maxdepth; path 1862 fs/ext4/extents.c memcpy(path[0].p_hdr, path[1].p_hdr, s); path 1863 fs/ext4/extents.c path[0].p_depth = 0; path 1864 fs/ext4/extents.c path[0].p_ext = EXT_FIRST_EXTENT(path[0].p_hdr) + path 1865 fs/ext4/extents.c (path[1].p_ext - EXT_FIRST_EXTENT(path[1].p_hdr)); path 1866 fs/ext4/extents.c path[0].p_hdr->eh_max = cpu_to_le16(max_root); path 1868 fs/ext4/extents.c brelse(path[1].p_bh); path 1879 fs/ext4/extents.c struct ext4_ext_path *path, path 1886 fs/ext4/extents.c BUG_ON(path[depth].p_hdr == NULL); path 1887 fs/ext4/extents.c eh = path[depth].p_hdr; path 1890 fs/ext4/extents.c merge_done = ext4_ext_try_to_merge_right(inode, path, ex - 1); path 1893 fs/ext4/extents.c (void) ext4_ext_try_to_merge_right(inode, path, ex); path 1895 fs/ext4/extents.c ext4_ext_try_to_merge_up(handle, inode, path); path 1909 fs/ext4/extents.c struct ext4_ext_path *path) path 1918 fs/ext4/extents.c if (!path[depth].p_ext) path 1920 fs/ext4/extents.c b2 = EXT4_LBLK_CMASK(sbi, le32_to_cpu(path[depth].p_ext->ee_block)); path 1927 fs/ext4/extents.c b2 = ext4_ext_next_allocated_block(path); path 1959 fs/ext4/extents.c struct ext4_ext_path *path = *ppath; path 1975 fs/ext4/extents.c ex = path[depth].p_ext; path 1976 fs/ext4/extents.c eh = path[depth].p_hdr; path 1977 fs/ext4/extents.c if (unlikely(path[depth].p_hdr == NULL)) { path 2015 fs/ext4/extents.c path + depth); path 2023 fs/ext4/extents.c eh = path[depth].p_hdr; path 2041 fs/ext4/extents.c path + depth); path 2052 fs/ext4/extents.c eh = path[depth].p_hdr; path 2059 fs/ext4/extents.c eh = path[depth].p_hdr; path 2067 fs/ext4/extents.c next = ext4_ext_next_leaf_block(path); path 2074 fs/ext4/extents.c BUG_ON(npath->p_depth != path->p_depth); path 2079 fs/ext4/extents.c path = npath; path 2097 fs/ext4/extents.c eh = path[depth].p_hdr; path 2100 fs/ext4/extents.c nearex = path[depth].p_ext; path 2102 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + depth); path 2152 fs/ext4/extents.c path[depth].p_ext = nearex; path 2160 fs/ext4/extents.c ext4_ext_try_to_merge(handle, inode, path, nearex); path 2164 fs/ext4/extents.c err = ext4_ext_correct_indexes(handle, inode, path); path 2168 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + path->p_depth); path 2180 fs/ext4/extents.c struct ext4_ext_path *path = NULL; path 2194 fs/ext4/extents.c path = ext4_find_extent(inode, block, &path, 0); path 2195 fs/ext4/extents.c if (IS_ERR(path)) { path 2197 fs/ext4/extents.c err = PTR_ERR(path); path 2198 fs/ext4/extents.c path = NULL; path 2203 fs/ext4/extents.c if (unlikely(path[depth].p_hdr == NULL)) { path 2209 fs/ext4/extents.c ex = path[depth].p_ext; path 2210 fs/ext4/extents.c next = ext4_ext_next_allocated_block(path); path 2320 fs/ext4/extents.c ext4_ext_drop_refs(path); path 2321 fs/ext4/extents.c kfree(path); path 2385 fs/ext4/extents.c struct ext4_ext_path *path, path 2392 fs/ext4/extents.c ex = path[depth].p_ext; path 2404 fs/ext4/extents.c next = ext4_ext_next_allocated_block(path); path 2442 fs/ext4/extents.c struct ext4_ext_path *path, int depth) path 2449 fs/ext4/extents.c path = path + depth; path 2450 fs/ext4/extents.c leaf = ext4_idx_pblock(path->p_idx); path 2451 fs/ext4/extents.c if (unlikely(path->p_hdr->eh_entries == 0)) { path 2455 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path); path 2459 fs/ext4/extents.c if (path->p_idx != EXT_LAST_INDEX(path->p_hdr)) { path 2460 fs/ext4/extents.c int len = EXT_LAST_INDEX(path->p_hdr) - path->p_idx; path 2462 fs/ext4/extents.c memmove(path->p_idx, path->p_idx + 1, len); path 2465 fs/ext4/extents.c le16_add_cpu(&path->p_hdr->eh_entries, -1); path 2466 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path); path 2476 fs/ext4/extents.c if (path->p_idx != EXT_FIRST_INDEX(path->p_hdr)) path 2478 fs/ext4/extents.c path--; path 2479 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path); path 2482 fs/ext4/extents.c path->p_idx->ei_block = (path+1)->p_idx->ei_block; path 2483 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path); path 2498 fs/ext4/extents.c struct ext4_ext_path *path) path 2500 fs/ext4/extents.c if (path) { path 2505 fs/ext4/extents.c if (le16_to_cpu(path[depth].p_hdr->eh_entries) path 2506 fs/ext4/extents.c < le16_to_cpu(path[depth].p_hdr->eh_max)) { path 2731 fs/ext4/extents.c struct ext4_ext_path *path, path 2749 fs/ext4/extents.c if (!path[depth].p_hdr) path 2750 fs/ext4/extents.c path[depth].p_hdr = ext_block_hdr(path[depth].p_bh); path 2751 fs/ext4/extents.c eh = path[depth].p_hdr; path 2752 fs/ext4/extents.c if (unlikely(path[depth].p_hdr == NULL)) { path 2757 fs/ext4/extents.c ex = path[depth].p_ext; path 2776 fs/ext4/extents.c path[depth].p_ext = ex; path 2834 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + depth); path 2874 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + depth); path 2886 fs/ext4/extents.c err = ext4_ext_correct_indexes(handle, inode, path); path 2913 fs/ext4/extents.c if (err == 0 && eh->eh_entries == 0 && path[depth].p_bh != NULL) path 2914 fs/ext4/extents.c err = ext4_ext_rm_idx(handle, inode, path, depth); path 2925 fs/ext4/extents.c ext4_ext_more_to_rm(struct ext4_ext_path *path) path 2927 fs/ext4/extents.c BUG_ON(path->p_idx == NULL); path 2929 fs/ext4/extents.c if (path->p_idx < EXT_FIRST_INDEX(path->p_hdr)) path 2936 fs/ext4/extents.c if (le16_to_cpu(path->p_hdr->eh_entries) == path->p_block) path 2946 fs/ext4/extents.c struct ext4_ext_path *path = NULL; path 2978 fs/ext4/extents.c path = ext4_find_extent(inode, end, NULL, EXT4_EX_NOCACHE); path 2979 fs/ext4/extents.c if (IS_ERR(path)) { path 2981 fs/ext4/extents.c return PTR_ERR(path); path 2985 fs/ext4/extents.c ex = path[depth].p_ext; path 3024 fs/ext4/extents.c err = ext4_force_split_extent_at(handle, inode, &path, path 3042 fs/ext4/extents.c err = ext4_ext_search_right(inode, path, &lblk, &pblk, path 3057 fs/ext4/extents.c if (path) { path 3060 fs/ext4/extents.c path[k].p_block = path 3061 fs/ext4/extents.c le16_to_cpu(path[k].p_hdr->eh_entries)+1; path 3063 fs/ext4/extents.c path = kcalloc(depth + 1, sizeof(struct ext4_ext_path), path 3065 fs/ext4/extents.c if (path == NULL) { path 3069 fs/ext4/extents.c path[0].p_maxdepth = path[0].p_depth = depth; path 3070 fs/ext4/extents.c path[0].p_hdr = ext_inode_hdr(inode); path 3073 fs/ext4/extents.c if (ext4_ext_check(inode, path[0].p_hdr, depth, 0)) { path 3083 fs/ext4/extents.c err = ext4_ext_rm_leaf(handle, inode, path, path 3086 fs/ext4/extents.c brelse(path[i].p_bh); path 3087 fs/ext4/extents.c path[i].p_bh = NULL; path 3093 fs/ext4/extents.c if (!path[i].p_hdr) { path 3095 fs/ext4/extents.c path[i].p_hdr = ext_block_hdr(path[i].p_bh); path 3098 fs/ext4/extents.c if (!path[i].p_idx) { path 3100 fs/ext4/extents.c path[i].p_idx = EXT_LAST_INDEX(path[i].p_hdr); path 3101 fs/ext4/extents.c path[i].p_block = le16_to_cpu(path[i].p_hdr->eh_entries)+1; path 3103 fs/ext4/extents.c path[i].p_hdr, path 3104 fs/ext4/extents.c le16_to_cpu(path[i].p_hdr->eh_entries)); path 3107 fs/ext4/extents.c path[i].p_idx--; path 3111 fs/ext4/extents.c i, EXT_FIRST_INDEX(path[i].p_hdr), path 3112 fs/ext4/extents.c path[i].p_idx); path 3113 fs/ext4/extents.c if (ext4_ext_more_to_rm(path + i)) { path 3117 fs/ext4/extents.c i + 1, ext4_idx_pblock(path[i].p_idx)); path 3118 fs/ext4/extents.c memset(path + i + 1, 0, sizeof(*path)); path 3120 fs/ext4/extents.c ext4_idx_pblock(path[i].p_idx), depth - i - 1, path 3134 fs/ext4/extents.c path[i + 1].p_bh = bh; path 3138 fs/ext4/extents.c path[i].p_block = le16_to_cpu(path[i].p_hdr->eh_entries); path 3142 fs/ext4/extents.c if (path[i].p_hdr->eh_entries == 0 && i > 0) { path 3146 fs/ext4/extents.c err = ext4_ext_rm_idx(handle, inode, path, i); path 3149 fs/ext4/extents.c brelse(path[i].p_bh); path 3150 fs/ext4/extents.c path[i].p_bh = NULL; path 3157 fs/ext4/extents.c path->p_hdr->eh_entries); path 3177 fs/ext4/extents.c if (path->p_hdr->eh_entries == 0) { path 3182 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path); path 3187 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path); path 3191 fs/ext4/extents.c ext4_ext_drop_refs(path); path 3192 fs/ext4/extents.c kfree(path); path 3193 fs/ext4/extents.c path = NULL; path 3309 fs/ext4/extents.c struct ext4_ext_path *path = *ppath; path 3323 fs/ext4/extents.c ext4_ext_show_leaf(inode, path); path 3326 fs/ext4/extents.c ex = path[depth].p_ext; path 3337 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + depth); path 3353 fs/ext4/extents.c ext4_ext_try_to_merge(handle, inode, path, ex); path 3355 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + path->p_depth); path 3369 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + depth); path 3411 fs/ext4/extents.c ext4_ext_try_to_merge(handle, inode, path, ex); path 3412 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + path->p_depth); path 3424 fs/ext4/extents.c ext4_ext_show_leaf(inode, path); path 3429 fs/ext4/extents.c ext4_ext_dirty(handle, inode, path + path->p_depth); path 3451 fs/ext4/extents.c struct ext4_ext_path *path = *ppath; path 3461 fs/ext4/extents.c ex = path[depth].p_ext; path 3485 fs/ext4/extents.c path = ext4_find_extent(inode, map->m_lblk, ppath, 0); path 3486 fs/ext4/extents.c if (IS_ERR(path)) path 3487 fs/ext4/extents.c return PTR_ERR(path); path 3489 fs/ext4/extents.c ex = path[depth].p_ext; path 3511 fs/ext4/extents.c ext4_ext_show_leaf(inode, path); path 3542 fs/ext4/extents.c struct ext4_ext_path *path = *ppath; path 3565 fs/ext4/extents.c eh = path[depth].p_hdr; path 3566 fs/ext4/extents.c ex = path[depth].p_ext; path 3620 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + depth); path 3666 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + depth); path 3688 fs/ext4/extents.c ext4_ext_dirty(handle, inode, path + depth); path 3691 fs/ext4/extents.c path[depth].p_ext = abut_ex; path 3804 fs/ext4/extents.c struct ext4_ext_path *path = *ppath; path 3824 fs/ext4/extents.c ex = path[depth].p_ext; path 3846 fs/ext4/extents.c struct ext4_ext_path *path = *ppath; path 3854 fs/ext4/extents.c ex = path[depth].p_ext; path 3879 fs/ext4/extents.c path = ext4_find_extent(inode, map->m_lblk, ppath, 0); path 3880 fs/ext4/extents.c if (IS_ERR(path)) path 3881 fs/ext4/extents.c return PTR_ERR(path); path 3883 fs/ext4/extents.c ex = path[depth].p_ext; path 3886 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + depth); path 3895 fs/ext4/extents.c ext4_ext_try_to_merge(handle, inode, path, ex); path 3898 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + path->p_depth); path 3900 fs/ext4/extents.c ext4_ext_show_leaf(inode, path); path 3909 fs/ext4/extents.c struct ext4_ext_path *path, path 3920 fs/ext4/extents.c eh = path[depth].p_hdr; path 3950 fs/ext4/extents.c if (path[i].p_idx != EXT_LAST_INDEX(path[i].p_hdr)) path 3963 fs/ext4/extents.c struct ext4_ext_path *path = *ppath; path 3978 fs/ext4/extents.c ex = path[depth].p_ext; path 3991 fs/ext4/extents.c path = ext4_find_extent(inode, map->m_lblk, ppath, 0); path 3992 fs/ext4/extents.c if (IS_ERR(path)) path 3993 fs/ext4/extents.c return PTR_ERR(path); path 3995 fs/ext4/extents.c ex = path[depth].p_ext; path 4003 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path + depth); path 4012 fs/ext4/extents.c ext4_ext_try_to_merge(handle, inode, path, ex); path 4015 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + path->p_depth); path 4018 fs/ext4/extents.c ext4_ext_show_leaf(inode, path); path 4021 fs/ext4/extents.c err = check_eofblocks_fl(handle, inode, map->m_lblk, path, map->m_len); path 4037 fs/ext4/extents.c struct ext4_ext_path *path = *ppath; path 4045 fs/ext4/extents.c ext4_ext_show_leaf(inode, path); path 4080 fs/ext4/extents.c path, map->m_len); path 4131 fs/ext4/extents.c err = check_eofblocks_fl(handle, inode, map->m_lblk, path, path 4139 fs/ext4/extents.c ext4_ext_show_leaf(inode, path); path 4190 fs/ext4/extents.c struct ext4_ext_path *path) path 4236 fs/ext4/extents.c ext4_lblk_t next = ext4_ext_next_allocated_block(path); path 4270 fs/ext4/extents.c struct ext4_ext_path *path = NULL; path 4286 fs/ext4/extents.c path = ext4_find_extent(inode, map->m_lblk, NULL, 0); path 4287 fs/ext4/extents.c if (IS_ERR(path)) { path 4288 fs/ext4/extents.c err = PTR_ERR(path); path 4289 fs/ext4/extents.c path = NULL; path 4300 fs/ext4/extents.c if (unlikely(path[depth].p_ext == NULL && depth != 0)) { path 4304 fs/ext4/extents.c path[depth].p_block); path 4309 fs/ext4/extents.c ex = path[depth].p_ext; path 4339 fs/ext4/extents.c handle, inode, map, &path, path 4346 fs/ext4/extents.c handle, inode, map, &path, flags, path 4364 fs/ext4/extents.c hole_len = ext4_ext_determine_hole(inode, path, &hole_start); path 4391 fs/ext4/extents.c get_implied_cluster_alloc(inode->i_sb, map, ex, path)) { path 4400 fs/ext4/extents.c err = ext4_ext_search_left(inode, path, &ar.lleft, &ar.pleft); path 4405 fs/ext4/extents.c err = ext4_ext_search_right(inode, path, &ar.lright, &ar.pright, &ex2); path 4412 fs/ext4/extents.c get_implied_cluster_alloc(inode->i_sb, map, ex2, path)) { path 4434 fs/ext4/extents.c err = ext4_ext_check_overlap(sbi, inode, &newex, path); path 4442 fs/ext4/extents.c ar.goal = ext4_ext_find_goal(inode, path, map->m_lblk); path 4491 fs/ext4/extents.c path, ar.len); path 4493 fs/ext4/extents.c err = ext4_ext_insert_extent(handle, inode, &path, path 4563 fs/ext4/extents.c ext4_ext_show_leaf(inode, path); path 4568 fs/ext4/extents.c ext4_ext_drop_refs(path); path 4569 fs/ext4/extents.c kfree(path); path 5203 fs/ext4/extents.c struct ext4_ext_path *path) path 5224 fs/ext4/extents.c err = ext4_ext_get_access(handle, inode, path); path 5235 fs/ext4/extents.c ext4_ext_shift_path_extents(struct ext4_ext_path *path, ext4_lblk_t shift, path 5242 fs/ext4/extents.c depth = path->p_depth; path 5245 fs/ext4/extents.c if (depth == path->p_depth) { path 5246 fs/ext4/extents.c ex_start = path[depth].p_ext; path 5250 fs/ext4/extents.c ex_last = EXT_LAST_EXTENT(path[depth].p_hdr); path 5252 fs/ext4/extents.c err = ext4_access_path(handle, inode, path + depth); path 5256 fs/ext4/extents.c if (ex_start == EXT_FIRST_EXTENT(path[depth].p_hdr)) path 5265 fs/ext4/extents.c EXT_FIRST_EXTENT(path[depth].p_hdr)) path 5268 fs/ext4/extents.c path, ex_start - 1)) path 5274 fs/ext4/extents.c ext4_ext_try_to_merge_right(inode, path, path 5279 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + depth); path 5288 fs/ext4/extents.c err = ext4_access_path(handle, inode, path + depth); path 5293 fs/ext4/extents.c le32_add_cpu(&path[depth].p_idx->ei_block, -shift); path 5295 fs/ext4/extents.c le32_add_cpu(&path[depth].p_idx->ei_block, shift); path 5296 fs/ext4/extents.c err = ext4_ext_dirty(handle, inode, path + depth); path 5301 fs/ext4/extents.c if (path[depth].p_idx != EXT_FIRST_INDEX(path[depth].p_hdr)) path 5323 fs/ext4/extents.c struct ext4_ext_path *path; path 5329 fs/ext4/extents.c path = ext4_find_extent(inode, EXT_MAX_BLOCKS - 1, NULL, path 5331 fs/ext4/extents.c if (IS_ERR(path)) path 5332 fs/ext4/extents.c return PTR_ERR(path); path 5334 fs/ext4/extents.c depth = path->p_depth; path 5335 fs/ext4/extents.c extent = path[depth].p_ext; path 5347 fs/ext4/extents.c path = ext4_find_extent(inode, start - 1, &path, path 5349 fs/ext4/extents.c if (IS_ERR(path)) path 5350 fs/ext4/extents.c return PTR_ERR(path); path 5351 fs/ext4/extents.c depth = path->p_depth; path 5352 fs/ext4/extents.c extent = path[depth].p_ext; path 5391 fs/ext4/extents.c path = ext4_find_extent(inode, *iterator, &path, path 5393 fs/ext4/extents.c if (IS_ERR(path)) path 5394 fs/ext4/extents.c return PTR_ERR(path); path 5395 fs/ext4/extents.c depth = path->p_depth; path 5396 fs/ext4/extents.c extent = path[depth].p_ext; path 5405 fs/ext4/extents.c if (extent < EXT_LAST_EXTENT(path[depth].p_hdr)) { path 5406 fs/ext4/extents.c path[depth].p_ext++; path 5408 fs/ext4/extents.c *iterator = ext4_ext_next_allocated_block(path); path 5414 fs/ext4/extents.c extent = EXT_LAST_EXTENT(path[depth].p_hdr); path 5418 fs/ext4/extents.c extent = EXT_FIRST_EXTENT(path[depth].p_hdr); path 5427 fs/ext4/extents.c path[depth].p_ext = extent; path 5429 fs/ext4/extents.c ret = ext4_ext_shift_path_extents(path, shift, inode, path 5435 fs/ext4/extents.c ext4_ext_drop_refs(path); path 5436 fs/ext4/extents.c kfree(path); path 5597 fs/ext4/extents.c struct ext4_ext_path *path; path 5694 fs/ext4/extents.c path = ext4_find_extent(inode, offset_lblk, NULL, 0); path 5695 fs/ext4/extents.c if (IS_ERR(path)) { path 5701 fs/ext4/extents.c extent = path[depth].p_ext; path 5715 fs/ext4/extents.c ret = ext4_split_extent_at(handle, inode, &path, path 5722 fs/ext4/extents.c ext4_ext_drop_refs(path); path 5723 fs/ext4/extents.c kfree(path); path 5729 fs/ext4/extents.c ext4_ext_drop_refs(path); path 5730 fs/ext4/extents.c kfree(path); path 5974 fs/ext4/extents.c struct ext4_ext_path *path; path 5980 fs/ext4/extents.c path = ext4_find_extent(inode, EXT4_C2B(sbi, lclu), NULL, 0); path 5981 fs/ext4/extents.c if (IS_ERR(path)) { path 5982 fs/ext4/extents.c err = PTR_ERR(path); path 5983 fs/ext4/extents.c path = NULL; path 5994 fs/ext4/extents.c if (unlikely(path[depth].p_ext == NULL && depth != 0)) { path 5998 fs/ext4/extents.c depth, path[depth].p_block); path 6003 fs/ext4/extents.c extent = path[depth].p_ext; path 6024 fs/ext4/extents.c first_lblk = ext4_ext_next_allocated_block(path); path 6032 fs/ext4/extents.c ext4_ext_drop_refs(path); path 6033 fs/ext4/extents.c kfree(path); path 581 fs/ext4/extents_status.c struct ext4_ext_path *path = NULL; path 588 fs/ext4/extents_status.c path = ext4_find_extent(inode, es->es_lblk, NULL, EXT4_EX_NOCACHE); path 589 fs/ext4/extents_status.c if (IS_ERR(path)) path 593 fs/ext4/extents_status.c ex = path[depth].p_ext; path 661 fs/ext4/extents_status.c ext4_ext_drop_refs(path); path 662 fs/ext4/extents_status.c kfree(path); path 401 fs/ext4/file.c struct path path; path 420 fs/ext4/file.c path.mnt = mnt; path 421 fs/ext4/file.c path.dentry = mnt->mnt_root; path 422 fs/ext4/file.c cp = d_path(&path, buf, sizeof(buf)); path 5732 fs/ext4/inode.c int ext4_getattr(const struct path *path, struct kstat *stat, path 5735 fs/ext4/inode.c struct inode *inode = d_inode(path->dentry); path 5768 fs/ext4/inode.c int ext4_file_getattr(const struct path *path, struct kstat *stat, path 5771 fs/ext4/inode.c struct inode *inode = d_inode(path->dentry); path 5774 fs/ext4/inode.c ext4_getattr(path, stat, request_mask, query_flags); path 27 fs/ext4/migrate.c struct ext4_ext_path *path; path 37 fs/ext4/migrate.c path = ext4_find_extent(inode, lb->first_block, NULL, 0); path 38 fs/ext4/migrate.c if (IS_ERR(path)) { path 39 fs/ext4/migrate.c retval = PTR_ERR(path); path 40 fs/ext4/migrate.c path = NULL; path 51 fs/ext4/migrate.c lb->last_block - lb->first_block + 1, path); path 76 fs/ext4/migrate.c retval = ext4_ext_insert_extent(handle, inode, &path, &newext, 0); path 79 fs/ext4/migrate.c ext4_ext_drop_refs(path); path 80 fs/ext4/migrate.c kfree(path); path 28 fs/ext4/move_extent.c struct ext4_ext_path *path; path 30 fs/ext4/move_extent.c path = ext4_find_extent(inode, lblock, ppath, EXT4_EX_NOCACHE); path 31 fs/ext4/move_extent.c if (IS_ERR(path)) path 32 fs/ext4/move_extent.c return PTR_ERR(path); path 33 fs/ext4/move_extent.c if (path[ext_depth(inode)].p_ext == NULL) { path 34 fs/ext4/move_extent.c ext4_ext_drop_refs(path); path 35 fs/ext4/move_extent.c kfree(path); path 39 fs/ext4/move_extent.c *ppath = path; path 93 fs/ext4/move_extent.c struct ext4_ext_path *path = NULL; path 98 fs/ext4/move_extent.c *err = get_ext_path(inode, from, &path); path 101 fs/ext4/move_extent.c ext = path[ext_depth(inode)].p_ext; path 105 fs/ext4/move_extent.c ext4_ext_drop_refs(path); path 109 fs/ext4/move_extent.c ext4_ext_drop_refs(path); path 110 fs/ext4/move_extent.c kfree(path); path 558 fs/ext4/move_extent.c struct ext4_ext_path *path = NULL; path 625 fs/ext4/move_extent.c ret = get_ext_path(orig_inode, o_start, &path); path 628 fs/ext4/move_extent.c ex = path[path->p_depth].p_ext; path 629 fs/ext4/move_extent.c next_blk = ext4_ext_next_allocated_block(path); path 693 fs/ext4/move_extent.c ext4_ext_drop_refs(path); path 694 fs/ext4/move_extent.c kfree(path); path 562 fs/ext4/super.c char pathname[80], *path; path 571 fs/ext4/super.c path = file_path(file, pathname, sizeof(pathname)); path 572 fs/ext4/super.c if (IS_ERR(path)) path 573 fs/ext4/super.c path = "(unknown)"; path 582 fs/ext4/super.c block, current->comm, path, &vaf); path 588 fs/ext4/super.c current->comm, path, &vaf); path 1379 fs/ext4/super.c const struct path *path); path 1954 fs/ext4/super.c struct path path; path 1969 fs/ext4/super.c error = kern_path(journal_path, LOOKUP_FOLLOW, &path); path 1977 fs/ext4/super.c journal_inode = d_inode(path.dentry); path 1981 fs/ext4/super.c path_put(&path); path 1987 fs/ext4/super.c path_put(&path); path 5789 fs/ext4/super.c const struct path *path) path 5797 fs/ext4/super.c if (path->dentry->d_sb != sb) path 5802 fs/ext4/super.c if (path->dentry->d_parent != sb->s_root) path 5820 fs/ext4/super.c ext4_should_journal_data(d_inode(path->dentry))) { path 5832 fs/ext4/super.c lockdep_set_quota_inode(path->dentry->d_inode, I_DATA_SEM_QUOTA); path 5833 fs/ext4/super.c err = dquot_quota_on(sb, type, format_id, path); path 5835 fs/ext4/super.c lockdep_set_quota_inode(path->dentry->d_inode, path 5838 fs/ext4/super.c struct inode *inode = d_inode(path->dentry); path 256 fs/ext4/verity.c struct ext4_ext_path *path; path 275 fs/ext4/verity.c path = ext4_find_extent(inode, EXT_MAX_BLOCKS - 1, NULL, 0); path 276 fs/ext4/verity.c if (IS_ERR(path)) path 277 fs/ext4/verity.c return PTR_ERR(path); path 279 fs/ext4/verity.c last_extent = path[path->p_depth].p_ext; path 282 fs/ext4/verity.c ext4_ext_drop_refs(path); path 283 fs/ext4/verity.c kfree(path); path 290 fs/ext4/verity.c ext4_ext_drop_refs(path); path 291 fs/ext4/verity.c kfree(path); path 1087 fs/f2fs/f2fs.h char path[MAX_PATH_LEN]; path 2929 fs/f2fs/f2fs.h int f2fs_getattr(const struct path *path, struct kstat *stat, path 705 fs/f2fs/file.c int f2fs_getattr(const struct path *path, struct kstat *stat, path 708 fs/f2fs/file.c struct inode *inode = d_inode(path->dentry); path 1778 fs/f2fs/segment.c devi, sbi->s_ndevs ? FDEV(devi).path : "", path 2045 fs/f2fs/super.c const struct path *path) path 2060 fs/f2fs/super.c err = dquot_quota_on(sb, type, format_id, path); path 2064 fs/f2fs/super.c inode = d_inode(path->dentry); path 3039 fs/f2fs/super.c if (!RDEV(0).path[0]) { path 3058 fs/f2fs/super.c if (i > 0 && !RDEV(i).path[0]) path 3068 fs/f2fs/super.c memcpy(FDEV(i).path, RDEV(i).path, MAX_PATH_LEN); path 3083 fs/f2fs/super.c FDEV(i).bdev = blkdev_get_by_path(FDEV(i).path, path 3106 fs/f2fs/super.c i, FDEV(i).path, path 3115 fs/f2fs/super.c i, FDEV(i).path, path 402 fs/fat/fat.h extern int fat_getattr(const struct path *path, struct kstat *stat, path 408 fs/fat/file.c int fat_getattr(const struct path *path, struct kstat *stat, path 411 fs/fat/file.c struct inode *inode = d_inode(path->dentry); path 17 fs/fhandle.c static long do_sys_name_to_handle(struct path *path, path 30 fs/fhandle.c if (!path->dentry->d_sb->s_export_op || path 31 fs/fhandle.c !path->dentry->d_sb->s_export_op->fh_to_dentry) path 49 fs/fhandle.c retval = exportfs_encode_fh(path->dentry, path 72 fs/fhandle.c if (put_user(real_mount(path->mnt)->mnt_id, mnt_id) || path 97 fs/fhandle.c struct path path; path 107 fs/fhandle.c err = user_path_at(dfd, name, lookup_flags, &path); path 109 fs/fhandle.c err = do_sys_name_to_handle(&path, handle, mnt_id); path 110 fs/fhandle.c path_put(&path); path 140 fs/fhandle.c struct path *path) path 145 fs/fhandle.c path->mnt = get_vfsmount_from_fd(mountdirfd); path 146 fs/fhandle.c if (IS_ERR(path->mnt)) { path 147 fs/fhandle.c retval = PTR_ERR(path->mnt); path 152 fs/fhandle.c path->dentry = exportfs_decode_fh(path->mnt, path 156 fs/fhandle.c if (IS_ERR(path->dentry)) { path 157 fs/fhandle.c retval = PTR_ERR(path->dentry); path 162 fs/fhandle.c mntput(path->mnt); path 168 fs/fhandle.c struct path *path) path 207 fs/fhandle.c retval = do_handle_to_path(mountdirfd, handle, path); path 219 fs/fhandle.c struct path path; path 223 fs/fhandle.c retval = handle_to_path(mountdirfd, ufh, &path); path 229 fs/fhandle.c path_put(&path); path 232 fs/fhandle.c file = file_open_root(path.dentry, path.mnt, "", open_flag, 0); path 241 fs/fhandle.c path_put(&path); path 188 fs/file_table.c static struct file *alloc_file(const struct path *path, int flags, path 197 fs/file_table.c file->f_path = *path; path 198 fs/file_table.c file->f_inode = path->dentry->d_inode; path 199 fs/file_table.c file->f_mapping = path->dentry->d_inode->i_mapping; path 210 fs/file_table.c i_readcount_inc(path->dentry->d_inode); path 222 fs/file_table.c struct path path; path 225 fs/file_table.c path.dentry = d_alloc_pseudo(mnt->mnt_sb, &this); path 226 fs/file_table.c if (!path.dentry) path 229 fs/file_table.c d_set_d_op(path.dentry, &anon_ops); path 230 fs/file_table.c path.mnt = mntget(mnt); path 231 fs/file_table.c d_instantiate(path.dentry, inode); path 232 fs/file_table.c file = alloc_file(&path, flags, fops); path 235 fs/file_table.c path_put(&path); path 256 fs/fs_parser.c struct path *_path) path 15 fs/fs_struct.c void set_fs_root(struct fs_struct *fs, const struct path *path) path 17 fs/fs_struct.c struct path old_root; path 19 fs/fs_struct.c path_get(path); path 23 fs/fs_struct.c fs->root = *path; path 34 fs/fs_struct.c void set_fs_pwd(struct fs_struct *fs, const struct path *path) path 36 fs/fs_struct.c struct path old_pwd; path 38 fs/fs_struct.c path_get(path); path 42 fs/fs_struct.c fs->pwd = *path; path 50 fs/fs_struct.c static inline int replace_path(struct path *p, const struct path *old, const struct path *new) path 58 fs/fs_struct.c void chroot_fs_refs(const struct path *old_root, const struct path *new_root) path 158 fs/fsopen.c SYSCALL_DEFINE3(fspick, int, dfd, const char __user *, path, unsigned int, flags) path 161 fs/fsopen.c struct path target; path 181 fs/fsopen.c ret = user_path_at(dfd, path, lookup_flags, &target); path 1686 fs/fuse/dir.c static int fuse_getattr(const struct path *path, struct kstat *stat, path 1689 fs/fuse/dir.c struct inode *inode = d_inode(path->dentry); path 1993 fs/gfs2/inode.c static int gfs2_getattr(const struct path *path, struct kstat *stat, path 1996 fs/gfs2/inode.c struct inode *inode = d_inode(path->dentry); path 1579 fs/gfs2/ops_fstype.c struct path path; path 1585 fs/gfs2/ops_fstype.c error = kern_path(fc->source, LOOKUP_FOLLOW, &path); path 1592 fs/gfs2/ops_fstype.c fc->sget_key = path.dentry->d_sb->s_bdev; path 1594 fs/gfs2/ops_fstype.c path_put(&path); path 491 fs/hfsplus/hfsplus_fs.h int hfsplus_getattr(const struct path *path, struct kstat *stat, path 273 fs/hfsplus/inode.c int hfsplus_getattr(const struct path *path, struct kstat *stat, path 276 fs/hfsplus/inode.c struct inode *inode = d_inode(path->dentry); path 66 fs/hostfs/hostfs.h extern int stat_file(const char *path, struct hostfs_stat *p, int fd); path 67 fs/hostfs/hostfs.h extern int access_file(char *path, int r, int w, int x); path 68 fs/hostfs/hostfs.h extern int open_file(char *path, int r, int w, int append); path 69 fs/hostfs/hostfs.h extern void *open_dir(char *path, int *err_out); path 884 fs/hostfs/hostfs_kern.c char *path = dentry_name(dentry); path 886 fs/hostfs/hostfs_kern.c if (path) { path 887 fs/hostfs/hostfs_kern.c err = hostfs_do_readlink(path, link, PATH_MAX); path 890 fs/hostfs/hostfs_kern.c __putname(path); path 41 fs/hostfs/hostfs_user.c int stat_file(const char *path, struct hostfs_stat *p, int fd) path 48 fs/hostfs/hostfs_user.c } else if (lstat64(path, &buf) < 0) { path 55 fs/hostfs/hostfs_user.c int access_file(char *path, int r, int w, int x) path 65 fs/hostfs/hostfs_user.c if (access(path, mode) != 0) path 70 fs/hostfs/hostfs_user.c int open_file(char *path, int r, int w, int append) path 84 fs/hostfs/hostfs_user.c fd = open64(path, mode); path 90 fs/hostfs/hostfs_user.c void *open_dir(char *path, int *err_out) path 94 fs/hostfs/hostfs_user.c dir = opendir(path); path 1703 fs/inode.c bool atime_needs_update(const struct path *path, struct inode *inode) path 1705 fs/inode.c struct vfsmount *mnt = path->mnt; path 1738 fs/inode.c void touch_atime(const struct path *path) path 1740 fs/inode.c struct vfsmount *mnt = path->mnt; path 1741 fs/inode.c struct inode *inode = d_inode(path->dentry); path 1744 fs/inode.c if (!atime_needs_update(path, inode)) path 13 fs/internal.h struct path; path 63 fs/internal.h struct path *path, struct path *root); path 64 fs/internal.h extern int user_path_mountpoint_at(int, const char __user *, unsigned int, struct path *); path 66 fs/internal.h const char *, unsigned int, struct path *); path 83 fs/internal.h extern struct vfsmount *lookup_mnt(const struct path *); path 84 fs/internal.h extern int finish_automount(struct vfsmount *, struct path *); path 97 fs/internal.h extern void chroot_fs_refs(const struct path *, const struct path *); path 134 fs/internal.h extern int vfs_open(const struct path *, struct file *); path 159 fs/jfs/super.c const struct path *path); path 841 fs/jfs/super.c const struct path *path) path 846 fs/jfs/super.c err = dquot_quota_on(sb, type, format_id, path); path 850 fs/jfs/super.c inode = d_inode(path->dentry); path 865 fs/kernfs/dir.c const unsigned char *path, path 876 fs/kernfs/dir.c len = strlcpy(kernfs_pr_cont_buf, path, sizeof(kernfs_pr_cont_buf)); path 931 fs/kernfs/dir.c const char *path, const void *ns) path 936 fs/kernfs/dir.c kn = kernfs_walk_ns(parent, path, ns); path 184 fs/kernfs/inode.c int kernfs_iop_getattr(const struct path *path, struct kstat *stat, path 187 fs/kernfs/inode.c struct inode *inode = d_inode(path->dentry); path 92 fs/kernfs/kernfs-internal.h int kernfs_iop_getattr(const struct path *path, struct kstat *stat, path 58 fs/kernfs/symlink.c struct kernfs_node *target, char *path) path 61 fs/kernfs/symlink.c char *s = path; path 74 fs/kernfs/symlink.c if ((s - path) + 3 >= PATH_MAX) path 93 fs/kernfs/symlink.c if ((s - path) + len >= PATH_MAX) path 112 fs/kernfs/symlink.c static int kernfs_getlink(struct inode *inode, char *path) path 120 fs/kernfs/symlink.c error = kernfs_get_target_path(parent, target, path); path 27 fs/libfs.c int simple_getattr(const struct path *path, struct kstat *stat, path 30 fs/libfs.c struct inode *inode = d_inode(path->dentry); path 1229 fs/libfs.c static int empty_dir_getattr(const struct path *path, struct kstat *stat, path 1232 fs/libfs.c struct inode *inode = d_inode(path->dentry); path 622 fs/minix/inode.c int minix_getattr(const struct path *path, struct kstat *stat, path 625 fs/minix/inode.c struct super_block *sb = path->dentry->d_sb; path 626 fs/minix/inode.c struct inode *inode = d_inode(path->dentry); path 55 fs/minix/minix.h extern int minix_getattr(const struct path *, struct kstat *, u32, unsigned int); path 100 fs/mount.h static inline bool __path_is_mountpoint(const struct path *path) path 102 fs/mount.h struct mount *m = __lookup_mnt(path->mnt, path->dentry); path 134 fs/mount.h struct path root; path 467 fs/namei.c void path_get(const struct path *path) path 469 fs/namei.c mntget(path->mnt); path 470 fs/namei.c dget(path->dentry); path 480 fs/namei.c void path_put(const struct path *path) path 482 fs/namei.c dput(path->dentry); path 483 fs/namei.c mntput(path->mnt); path 489 fs/namei.c struct path path; path 491 fs/namei.c struct path root; path 499 fs/namei.c struct path link; path 560 fs/namei.c static bool path_connected(const struct path *path) path 562 fs/namei.c struct vfsmount *mnt = path->mnt; path 569 fs/namei.c return is_subdir(path->dentry, mnt->mnt_root); path 596 fs/namei.c path_put(&nd->path); path 612 fs/namei.c struct path *path, unsigned seq) path 614 fs/namei.c int res = __legitimize_mnt(path->mnt, nd->m_seq); path 617 fs/namei.c path->mnt = NULL; path 618 fs/namei.c path->dentry = NULL; path 621 fs/namei.c if (unlikely(!lockref_get_not_dead(&path->dentry->d_lockref))) { path 622 fs/namei.c path->dentry = NULL; path 625 fs/namei.c return !read_seqcount_retry(&path->dentry->d_seq, seq); path 674 fs/namei.c struct dentry *parent = nd->path.dentry; path 681 fs/namei.c if (unlikely(!legitimize_path(nd, &nd->path, nd->seq))) path 690 fs/namei.c nd->path.mnt = NULL; path 691 fs/namei.c nd->path.dentry = NULL; path 717 fs/namei.c if (unlikely(!legitimize_mnt(nd->path.mnt, nd->m_seq))) path 719 fs/namei.c if (unlikely(!lockref_get_not_dead(&nd->path.dentry->d_lockref))) path 743 fs/namei.c nd->path.mnt = NULL; path 745 fs/namei.c nd->path.dentry = NULL; path 775 fs/namei.c struct dentry *dentry = nd->path.dentry; path 819 fs/namei.c static void path_put_conditional(struct path *path, struct nameidata *nd) path 821 fs/namei.c dput(path->dentry); path 822 fs/namei.c if (path->mnt != nd->path.mnt) path 823 fs/namei.c mntput(path->mnt); path 826 fs/namei.c static inline void path_to_nameidata(const struct path *path, path 830 fs/namei.c dput(nd->path.dentry); path 831 fs/namei.c if (nd->path.mnt != path->mnt) path 832 fs/namei.c mntput(nd->path.mnt); path 834 fs/namei.c nd->path.mnt = path->mnt; path 835 fs/namei.c nd->path.dentry = path->dentry; path 842 fs/namei.c nd->path = nd->root; path 843 fs/namei.c d = nd->path.dentry; path 849 fs/namei.c path_put(&nd->path); path 850 fs/namei.c nd->path = nd->root; path 851 fs/namei.c path_get(&nd->path); path 852 fs/namei.c nd->inode = nd->path.dentry->d_inode; path 862 fs/namei.c void nd_jump_link(struct path *path) path 865 fs/namei.c path_put(&nd->path); path 867 fs/namei.c nd->path = *path; path 868 fs/namei.c nd->inode = nd->path.dentry->d_inode; path 979 fs/namei.c static int may_linkat(struct path *link) path 1105 fs/namei.c int follow_up(struct path *path) path 1107 fs/namei.c struct mount *mnt = real_mount(path->mnt); path 1120 fs/namei.c dput(path->dentry); path 1121 fs/namei.c path->dentry = mountpoint; path 1122 fs/namei.c mntput(path->mnt); path 1123 fs/namei.c path->mnt = &parent->mnt; path 1133 fs/namei.c static int follow_automount(struct path *path, struct nameidata *nd, path 1139 fs/namei.c if (!path->dentry->d_op || !path->dentry->d_op->d_automount) path 1155 fs/namei.c path->dentry->d_inode) path 1162 fs/namei.c mnt = path->dentry->d_op->d_automount(path); path 1183 fs/namei.c mntget(path->mnt); path 1186 fs/namei.c err = finish_automount(mnt, path); path 1193 fs/namei.c path_put(path); path 1194 fs/namei.c path->mnt = mnt; path 1195 fs/namei.c path->dentry = dget(mnt->mnt_root); path 1213 fs/namei.c static int follow_managed(struct path *path, struct nameidata *nd) path 1215 fs/namei.c struct vfsmount *mnt = path->mnt; /* held by caller, must be left alone */ path 1223 fs/namei.c while (managed = READ_ONCE(path->dentry->d_flags), path 1229 fs/namei.c BUG_ON(!path->dentry->d_op); path 1230 fs/namei.c BUG_ON(!path->dentry->d_op->d_manage); path 1231 fs/namei.c ret = path->dentry->d_op->d_manage(path, false); path 1238 fs/namei.c struct vfsmount *mounted = lookup_mnt(path); path 1240 fs/namei.c dput(path->dentry); path 1242 fs/namei.c mntput(path->mnt); path 1243 fs/namei.c path->mnt = mounted; path 1244 fs/namei.c path->dentry = dget(mounted->mnt_root); path 1257 fs/namei.c ret = follow_automount(path, nd, &need_mntput); path 1267 fs/namei.c if (need_mntput && path->mnt == mnt) path 1268 fs/namei.c mntput(path->mnt); path 1274 fs/namei.c path_put_conditional(path, nd); path 1278 fs/namei.c int follow_down_one(struct path *path) path 1282 fs/namei.c mounted = lookup_mnt(path); path 1284 fs/namei.c dput(path->dentry); path 1285 fs/namei.c mntput(path->mnt); path 1286 fs/namei.c path->mnt = mounted; path 1287 fs/namei.c path->dentry = dget(mounted->mnt_root); path 1294 fs/namei.c static inline int managed_dentry_rcu(const struct path *path) path 1296 fs/namei.c return (path->dentry->d_flags & DCACHE_MANAGE_TRANSIT) ? path 1297 fs/namei.c path->dentry->d_op->d_manage(path, true) : 0; path 1304 fs/namei.c static bool __follow_mount_rcu(struct nameidata *nd, struct path *path, path 1313 fs/namei.c switch (managed_dentry_rcu(path)) { path 1323 fs/namei.c if (!d_mountpoint(path->dentry)) path 1324 fs/namei.c return !(path->dentry->d_flags & DCACHE_NEED_AUTOMOUNT); path 1326 fs/namei.c mounted = __lookup_mnt(path->mnt, path->dentry); path 1329 fs/namei.c path->mnt = &mounted->mnt; path 1330 fs/namei.c path->dentry = mounted->mnt.mnt_root; path 1332 fs/namei.c *seqp = read_seqcount_begin(&path->dentry->d_seq); path 1338 fs/namei.c *inode = path->dentry->d_inode; path 1341 fs/namei.c !(path->dentry->d_flags & DCACHE_NEED_AUTOMOUNT); path 1349 fs/namei.c if (path_equal(&nd->path, &nd->root)) path 1351 fs/namei.c if (nd->path.dentry != nd->path.mnt->mnt_root) { path 1352 fs/namei.c struct dentry *old = nd->path.dentry; path 1360 fs/namei.c nd->path.dentry = parent; path 1362 fs/namei.c if (unlikely(!path_connected(&nd->path))) path 1366 fs/namei.c struct mount *mnt = real_mount(nd->path.mnt); path 1373 fs/namei.c if (&mparent->mnt == nd->path.mnt) path 1376 fs/namei.c nd->path.dentry = mountpoint; path 1377 fs/namei.c nd->path.mnt = &mparent->mnt; path 1382 fs/namei.c while (unlikely(d_mountpoint(nd->path.dentry))) { path 1384 fs/namei.c mounted = __lookup_mnt(nd->path.mnt, nd->path.dentry); path 1389 fs/namei.c nd->path.mnt = &mounted->mnt; path 1390 fs/namei.c nd->path.dentry = mounted->mnt.mnt_root; path 1391 fs/namei.c inode = nd->path.dentry->d_inode; path 1392 fs/namei.c nd->seq = read_seqcount_begin(&nd->path.dentry->d_seq); path 1403 fs/namei.c int follow_down(struct path *path) path 1408 fs/namei.c while (managed = READ_ONCE(path->dentry->d_flags), path 1421 fs/namei.c BUG_ON(!path->dentry->d_op); path 1422 fs/namei.c BUG_ON(!path->dentry->d_op->d_manage); path 1423 fs/namei.c ret = path->dentry->d_op->d_manage(path, false); path 1430 fs/namei.c struct vfsmount *mounted = lookup_mnt(path); path 1433 fs/namei.c dput(path->dentry); path 1434 fs/namei.c mntput(path->mnt); path 1435 fs/namei.c path->mnt = mounted; path 1436 fs/namei.c path->dentry = dget(mounted->mnt_root); path 1450 fs/namei.c static void follow_mount(struct path *path) path 1452 fs/namei.c while (d_mountpoint(path->dentry)) { path 1453 fs/namei.c struct vfsmount *mounted = lookup_mnt(path); path 1456 fs/namei.c dput(path->dentry); path 1457 fs/namei.c mntput(path->mnt); path 1458 fs/namei.c path->mnt = mounted; path 1459 fs/namei.c path->dentry = dget(mounted->mnt_root); path 1463 fs/namei.c static int path_parent_directory(struct path *path) path 1465 fs/namei.c struct dentry *old = path->dentry; path 1467 fs/namei.c path->dentry = dget_parent(path->dentry); path 1469 fs/namei.c if (unlikely(!path_connected(path))) path 1477 fs/namei.c if (path_equal(&nd->path, &nd->root)) path 1479 fs/namei.c if (nd->path.dentry != nd->path.mnt->mnt_root) { path 1480 fs/namei.c int ret = path_parent_directory(&nd->path); path 1485 fs/namei.c if (!follow_up(&nd->path)) path 1488 fs/namei.c follow_mount(&nd->path); path 1489 fs/namei.c nd->inode = nd->path.dentry->d_inode; path 1548 fs/namei.c struct path *path, struct inode **inode, path 1551 fs/namei.c struct vfsmount *mnt = nd->path.mnt; path 1552 fs/namei.c struct dentry *dentry, *parent = nd->path.dentry; path 1599 fs/namei.c path->mnt = mnt; path 1600 fs/namei.c path->dentry = dentry; path 1601 fs/namei.c if (likely(__follow_mount_rcu(nd, path, inode, seqp))) path 1626 fs/namei.c path->mnt = mnt; path 1627 fs/namei.c path->dentry = dentry; path 1628 fs/namei.c err = follow_managed(path, nd); path 1630 fs/namei.c *inode = d_backing_inode(path->dentry); path 1711 fs/namei.c static int pick_link(struct nameidata *nd, struct path *link, path 1721 fs/namei.c if (link->mnt == nd->path.mnt) path 1731 fs/namei.c nd->path.mnt = NULL; path 1732 fs/namei.c nd->path.dentry = NULL; path 1759 fs/namei.c static inline int step_into(struct nameidata *nd, struct path *path, path 1764 fs/namei.c if (likely(!d_is_symlink(path->dentry)) || path 1767 fs/namei.c path_to_nameidata(path, nd); path 1774 fs/namei.c if (read_seqcount_retry(&path->dentry->d_seq, seq)) path 1777 fs/namei.c return pick_link(nd, path, inode, seq); path 1782 fs/namei.c struct path path; path 1797 fs/namei.c err = lookup_fast(nd, &path, &inode, &seq); path 1801 fs/namei.c path.dentry = lookup_slow(&nd->last, nd->path.dentry, path 1803 fs/namei.c if (IS_ERR(path.dentry)) path 1804 fs/namei.c return PTR_ERR(path.dentry); path 1806 fs/namei.c path.mnt = nd->path.mnt; path 1807 fs/namei.c err = follow_managed(&path, nd); path 1811 fs/namei.c if (unlikely(d_is_negative(path.dentry))) { path 1812 fs/namei.c path_to_nameidata(&path, nd); path 1817 fs/namei.c inode = d_backing_inode(path.dentry); path 1820 fs/namei.c return step_into(nd, &path, flags, inode, seq); path 2079 fs/namei.c hash_len = hash_name(nd->path.dentry, name); path 2093 fs/namei.c struct dentry *parent = nd->path.dentry; path 2152 fs/namei.c if (unlikely(!d_can_lookup(nd->path.dentry))) { path 2180 fs/namei.c nd->path = nd->root; path 2183 fs/namei.c nd->seq = __read_seqcount_begin(&nd->path.dentry->d_seq); path 2187 fs/namei.c path_get(&nd->path); path 2193 fs/namei.c nd->path.mnt = NULL; path 2194 fs/namei.c nd->path.dentry = NULL; path 2209 fs/namei.c nd->path = fs->pwd; path 2210 fs/namei.c nd->inode = nd->path.dentry->d_inode; path 2211 fs/namei.c nd->seq = __read_seqcount_begin(&nd->path.dentry->d_seq); path 2214 fs/namei.c get_fs_pwd(current->fs, &nd->path); path 2215 fs/namei.c nd->inode = nd->path.dentry->d_inode; path 2233 fs/namei.c nd->path = f.file->f_path; path 2235 fs/namei.c nd->inode = nd->path.dentry->d_inode; path 2236 fs/namei.c nd->seq = read_seqcount_begin(&nd->path.dentry->d_seq); path 2238 fs/namei.c path_get(&nd->path); path 2239 fs/namei.c nd->inode = nd->path.dentry->d_inode; path 2269 fs/namei.c struct path path = nd->path; path 2280 fs/namei.c if (unlikely(!__follow_mount_rcu(nd, &path, &inode, &seq))) path 2283 fs/namei.c dget(path.dentry); path 2284 fs/namei.c err = follow_managed(&path, nd); path 2287 fs/namei.c inode = d_backing_inode(path.dentry); path 2290 fs/namei.c path_to_nameidata(&path, nd); path 2297 fs/namei.c static int path_lookupat(struct nameidata *nd, unsigned flags, struct path *path) path 2316 fs/namei.c if (!d_can_lookup(nd->path.dentry)) path 2319 fs/namei.c *path = nd->path; path 2320 fs/namei.c nd->path.mnt = NULL; path 2321 fs/namei.c nd->path.dentry = NULL; path 2328 fs/namei.c struct path *path, struct path *root) path 2339 fs/namei.c retval = path_lookupat(&nd, flags | LOOKUP_RCU, path); path 2341 fs/namei.c retval = path_lookupat(&nd, flags, path); path 2343 fs/namei.c retval = path_lookupat(&nd, flags | LOOKUP_REVAL, path); path 2346 fs/namei.c audit_inode(name, path->dentry, 0); path 2354 fs/namei.c struct path *parent) path 2361 fs/namei.c *parent = nd->path; path 2362 fs/namei.c nd->path.mnt = NULL; path 2363 fs/namei.c nd->path.dentry = NULL; path 2370 fs/namei.c unsigned int flags, struct path *parent, path 2397 fs/namei.c struct dentry *kern_path_locked(const char *name, struct path *path) path 2404 fs/namei.c filename = filename_parentat(AT_FDCWD, getname_kernel(name), 0, path, path 2409 fs/namei.c path_put(path); path 2413 fs/namei.c inode_lock_nested(path->dentry->d_inode, I_MUTEX_PARENT); path 2414 fs/namei.c d = __lookup_hash(&last, path->dentry, 0); path 2416 fs/namei.c inode_unlock(path->dentry->d_inode); path 2417 fs/namei.c path_put(path); path 2423 fs/namei.c int kern_path(const char *name, unsigned int flags, struct path *path) path 2426 fs/namei.c flags, path, NULL); path 2440 fs/namei.c struct path *path) path 2442 fs/namei.c struct path root = {.mnt = mnt, .dentry = dentry}; path 2445 fs/namei.c flags , path, &root); path 2569 fs/namei.c int path_pts(struct path *path) path 2578 fs/namei.c ret = path_parent_directory(path); path 2582 fs/namei.c parent = path->dentry; path 2589 fs/namei.c path->dentry = child; path 2591 fs/namei.c follow_mount(path); path 2597 fs/namei.c struct path *path, int *empty) path 2600 fs/namei.c flags, path, NULL); path 2631 fs/namei.c struct dentry *dir = nd->path.dentry; path 2632 fs/namei.c struct path path; path 2646 fs/namei.c path.dentry = dget(nd->path.dentry); path 2648 fs/namei.c path.dentry = d_lookup(dir, &nd->last); path 2649 fs/namei.c if (!path.dentry) { path 2656 fs/namei.c path.dentry = lookup_slow(&nd->last, dir, path 2658 fs/namei.c if (IS_ERR(path.dentry)) path 2659 fs/namei.c return PTR_ERR(path.dentry); path 2662 fs/namei.c if (d_is_negative(path.dentry)) { path 2663 fs/namei.c dput(path.dentry); path 2666 fs/namei.c path.mnt = nd->path.mnt; path 2667 fs/namei.c return step_into(nd, &path, 0, d_backing_inode(path.dentry), 0); path 2680 fs/namei.c path_mountpoint(struct nameidata *nd, unsigned flags, struct path *path) path 2690 fs/namei.c *path = nd->path; path 2691 fs/namei.c nd->path.mnt = NULL; path 2692 fs/namei.c nd->path.dentry = NULL; path 2693 fs/namei.c follow_mount(path); path 2700 fs/namei.c filename_mountpoint(int dfd, struct filename *name, struct path *path, path 2708 fs/namei.c error = path_mountpoint(&nd, flags | LOOKUP_RCU, path); path 2710 fs/namei.c error = path_mountpoint(&nd, flags, path); path 2712 fs/namei.c error = path_mountpoint(&nd, flags | LOOKUP_REVAL, path); path 2714 fs/namei.c audit_inode(name, path->dentry, AUDIT_INODE_NOEVAL); path 2736 fs/namei.c struct path *path) path 2738 fs/namei.c return filename_mountpoint(dfd, getname(name), path, flags); path 2742 fs/namei.c kern_path_mountpoint(int dfd, const char *name, struct path *path, path 2745 fs/namei.c return filename_mountpoint(dfd, getname_kernel(name), path, flags); path 2931 fs/namei.c bool may_open_dev(const struct path *path) path 2933 fs/namei.c return !(path->mnt->mnt_flags & MNT_NODEV) && path 2934 fs/namei.c !(path->mnt->mnt_sb->s_iflags & SB_I_NODEV); path 2937 fs/namei.c static int may_open(const struct path *path, int acc_mode, int flag) path 2939 fs/namei.c struct dentry *dentry = path->dentry; path 2955 fs/namei.c if (!may_open_dev(path)) path 2987 fs/namei.c const struct path *path = &filp->f_path; path 2988 fs/namei.c struct inode *inode = path->dentry->d_inode; path 2997 fs/namei.c error = security_path_truncate(path); path 2999 fs/namei.c error = do_truncate(path->dentry, 0, path 3014 fs/namei.c static int may_o_create(const struct path *dir, struct dentry *dentry, umode_t mode) path 3047 fs/namei.c struct path *path, struct file *file, path 3052 fs/namei.c struct inode *dir = nd->path.dentry->d_inode; path 3062 fs/namei.c file->f_path.mnt = nd->path.mnt; path 3093 fs/namei.c path->dentry = dentry; path 3094 fs/namei.c path->mnt = nd->path.mnt; path 3118 fs/namei.c static int lookup_open(struct nameidata *nd, struct path *path, path 3123 fs/namei.c struct dentry *dir = nd->path.dentry; path 3178 fs/namei.c create_error = may_o_create(&nd->path, dentry, mode); path 3195 fs/namei.c error = atomic_open(nd, dentry, path, file, op, open_flag, path 3236 fs/namei.c path->dentry = dentry; path 3237 fs/namei.c path->mnt = nd->path.mnt; path 3251 fs/namei.c struct dentry *dir = nd->path.dentry; path 3260 fs/namei.c struct path path; path 3277 fs/namei.c error = lookup_fast(nd, &path, &inode, &seq); path 3304 fs/namei.c error = mnt_want_write(nd->path.mnt); path 3317 fs/namei.c error = lookup_open(nd, &path, file, op, got_write); path 3340 fs/namei.c path_to_nameidata(&path, nd); path 3350 fs/namei.c mnt_drop_write(nd->path.mnt); path 3354 fs/namei.c error = follow_managed(&path, nd); path 3358 fs/namei.c if (unlikely(d_is_negative(path.dentry))) { path 3359 fs/namei.c path_to_nameidata(&path, nd); path 3366 fs/namei.c audit_inode(nd->name, path.dentry, 0); path 3369 fs/namei.c path_to_nameidata(&path, nd); path 3374 fs/namei.c inode = d_backing_inode(path.dentry); path 3376 fs/namei.c error = step_into(nd, &path, 0, inode, seq); path 3384 fs/namei.c audit_inode(nd->name, nd->path.dentry, 0); path 3387 fs/namei.c if (d_is_dir(nd->path.dentry)) path 3390 fs/namei.c d_backing_inode(nd->path.dentry)); path 3395 fs/namei.c if ((nd->flags & LOOKUP_DIRECTORY) && !d_can_lookup(nd->path.dentry)) path 3397 fs/namei.c if (!d_is_reg(nd->path.dentry)) path 3401 fs/namei.c error = mnt_want_write(nd->path.mnt); path 3407 fs/namei.c error = may_open(&nd->path, acc_mode, open_flag); path 3411 fs/namei.c error = vfs_open(&nd->path, file); path 3424 fs/namei.c mnt_drop_write(nd->path.mnt); path 3472 fs/namei.c struct path path; path 3473 fs/namei.c int error = path_lookupat(nd, flags | LOOKUP_DIRECTORY, &path); path 3476 fs/namei.c error = mnt_want_write(path.mnt); path 3479 fs/namei.c child = vfs_tmpfile(path.dentry, op->mode, op->open_flag); path 3483 fs/namei.c dput(path.dentry); path 3484 fs/namei.c path.dentry = child; path 3487 fs/namei.c error = may_open(&path, 0, op->open_flag); path 3490 fs/namei.c file->f_path.mnt = path.mnt; path 3493 fs/namei.c mnt_drop_write(path.mnt); path 3495 fs/namei.c path_put(&path); path 3501 fs/namei.c struct path path; path 3502 fs/namei.c int error = path_lookupat(nd, flags, &path); path 3504 fs/namei.c audit_inode(nd->name, path.dentry, 0); path 3505 fs/namei.c error = vfs_open(&path, file); path 3506 fs/namei.c path_put(&path); path 3597 fs/namei.c struct path *path, unsigned int lookup_flags) path 3612 fs/namei.c name = filename_parentat(dfd, name, lookup_flags, path, &last, &type); path 3624 fs/namei.c err2 = mnt_want_write(path->mnt); path 3629 fs/namei.c inode_lock_nested(path->dentry->d_inode, I_MUTEX_PARENT); path 3630 fs/namei.c dentry = __lookup_hash(&last, path->dentry, lookup_flags); path 3658 fs/namei.c inode_unlock(path->dentry->d_inode); path 3660 fs/namei.c mnt_drop_write(path->mnt); path 3662 fs/namei.c path_put(path); path 3668 fs/namei.c struct path *path, unsigned int lookup_flags) path 3671 fs/namei.c path, lookup_flags); path 3675 fs/namei.c void done_path_create(struct path *path, struct dentry *dentry) path 3678 fs/namei.c inode_unlock(path->dentry->d_inode); path 3679 fs/namei.c mnt_drop_write(path->mnt); path 3680 fs/namei.c path_put(path); path 3685 fs/namei.c struct path *path, unsigned int lookup_flags) path 3687 fs/namei.c return filename_create(dfd, getname(pathname), path, lookup_flags); path 3740 fs/namei.c struct path path; path 3748 fs/namei.c dentry = user_path_create(dfd, filename, &path, lookup_flags); path 3752 fs/namei.c if (!IS_POSIXACL(path.dentry->d_inode)) path 3754 fs/namei.c error = security_path_mknod(&path, dentry, mode, dev); path 3759 fs/namei.c error = vfs_create(path.dentry->d_inode,dentry,mode,true); path 3764 fs/namei.c error = vfs_mknod(path.dentry->d_inode,dentry,mode, path 3768 fs/namei.c error = vfs_mknod(path.dentry->d_inode,dentry,mode,0); path 3772 fs/namei.c done_path_create(&path, dentry); path 3820 fs/namei.c struct path path; path 3825 fs/namei.c dentry = user_path_create(dfd, pathname, &path, lookup_flags); path 3829 fs/namei.c if (!IS_POSIXACL(path.dentry->d_inode)) path 3831 fs/namei.c error = security_path_mkdir(&path, dentry, mode); path 3833 fs/namei.c error = vfs_mkdir(path.dentry->d_inode, dentry, mode); path 3834 fs/namei.c done_path_create(&path, dentry); path 3897 fs/namei.c struct path path; path 3903 fs/namei.c &path, &last, &type); path 3919 fs/namei.c error = mnt_want_write(path.mnt); path 3923 fs/namei.c inode_lock_nested(path.dentry->d_inode, I_MUTEX_PARENT); path 3924 fs/namei.c dentry = __lookup_hash(&last, path.dentry, lookup_flags); path 3932 fs/namei.c error = security_path_rmdir(&path, dentry); path 3935 fs/namei.c error = vfs_rmdir(path.dentry->d_inode, dentry); path 3939 fs/namei.c inode_unlock(path.dentry->d_inode); path 3940 fs/namei.c mnt_drop_write(path.mnt); path 3942 fs/namei.c path_put(&path); path 4025 fs/namei.c struct path path; path 4032 fs/namei.c name = filename_parentat(dfd, name, lookup_flags, &path, &last, &type); path 4040 fs/namei.c error = mnt_want_write(path.mnt); path 4044 fs/namei.c inode_lock_nested(path.dentry->d_inode, I_MUTEX_PARENT); path 4045 fs/namei.c dentry = __lookup_hash(&last, path.dentry, lookup_flags); path 4055 fs/namei.c error = security_path_unlink(&path, dentry); path 4058 fs/namei.c error = vfs_unlink(path.dentry->d_inode, dentry, &delegated_inode); path 4062 fs/namei.c inode_unlock(path.dentry->d_inode); path 4071 fs/namei.c mnt_drop_write(path.mnt); path 4073 fs/namei.c path_put(&path); path 4135 fs/namei.c struct path path; path 4142 fs/namei.c dentry = user_path_create(newdfd, newname, &path, lookup_flags); path 4147 fs/namei.c error = security_path_symlink(&path, dentry, from->name); path 4149 fs/namei.c error = vfs_symlink(path.dentry->d_inode, dentry, from->name); path 4150 fs/namei.c done_path_create(&path, dentry); path 4264 fs/namei.c struct path old_path, new_path; path 4516 fs/namei.c struct path old_path, new_path; path 635 fs/namespace.c struct vfsmount *lookup_mnt(const struct path *path) path 644 fs/namespace.c child_mnt = __lookup_mnt(path->mnt, path->dentry); path 1218 fs/namespace.c bool path_is_mountpoint(const struct path *path) path 1223 fs/namespace.c if (!d_mountpoint(path->dentry)) path 1229 fs/namespace.c res = __path_is_mountpoint(path); path 1237 fs/namespace.c struct vfsmount *mnt_clone_internal(const struct path *path) path 1240 fs/namespace.c p = clone_mnt(real_mount(path->mnt), path->dentry, CL_PRIVATE); path 1669 fs/namespace.c struct path path; path 1683 fs/namespace.c retval = user_path_mountpoint_at(AT_FDCWD, name, lookup_flags, &path); path 1686 fs/namespace.c mnt = real_mount(path.mnt); path 1688 fs/namespace.c if (path.dentry != path.mnt->mnt_root) path 1701 fs/namespace.c dput(path.dentry); path 1816 fs/namespace.c struct vfsmount *collect_mounts(const struct path *path) path 1820 fs/namespace.c if (!check_mnt(real_mount(path->mnt))) path 1823 fs/namespace.c tree = copy_tree(real_mount(path->mnt), path->dentry, path 1870 fs/namespace.c struct vfsmount *clone_private_mount(const struct path *path) path 1872 fs/namespace.c struct mount *old_mnt = real_mount(path->mnt); path 1878 fs/namespace.c new_mnt = clone_mnt(old_mnt, path->dentry, CL_PRIVATE); path 2129 fs/namespace.c static struct mountpoint *lock_mount(struct path *path) path 2132 fs/namespace.c struct dentry *dentry = path->dentry; path 2140 fs/namespace.c mnt = lookup_mnt(path); path 2151 fs/namespace.c inode_unlock(path->dentry->d_inode); path 2152 fs/namespace.c path_put(path); path 2153 fs/namespace.c path->mnt = mnt; path 2154 fs/namespace.c dentry = path->dentry = dget(mnt->mnt_root); path 2202 fs/namespace.c static int do_change_type(struct path *path, int ms_flags) path 2205 fs/namespace.c struct mount *mnt = real_mount(path->mnt); path 2210 fs/namespace.c if (path->dentry != path->mnt->mnt_root) path 2247 fs/namespace.c static struct mount *__do_loopback(struct path *old_path, int recurse) path 2274 fs/namespace.c static int do_loopback(struct path *path, const char *old_name, path 2277 fs/namespace.c struct path old_path; path 2291 fs/namespace.c mp = lock_mount(path); path 2297 fs/namespace.c parent = real_mount(path->mnt); path 2320 fs/namespace.c static struct file *open_detached_copy(struct path *path, bool recursive) path 2331 fs/namespace.c mnt = __do_loopback(path, recursive); path 2349 fs/namespace.c mntput(path->mnt); path 2350 fs/namespace.c path->mnt = &mnt->mnt; path 2351 fs/namespace.c file = dentry_open(path, O_PATH, current_cred()); path 2353 fs/namespace.c dissolve_on_fput(path->mnt); path 2362 fs/namespace.c struct path path; path 2392 fs/namespace.c error = user_path_at(dfd, filename, lookup_flags, &path); path 2397 fs/namespace.c file = open_detached_copy(&path, flags & AT_RECURSIVE); path 2399 fs/namespace.c file = dentry_open(&path, O_PATH, current_cred()); path 2400 fs/namespace.c path_put(&path); path 2469 fs/namespace.c static void mnt_warn_timestamp_expiry(struct path *mountpoint, struct vfsmount *mnt) path 2496 fs/namespace.c static int do_reconfigure_mnt(struct path *path, unsigned int mnt_flags) path 2498 fs/namespace.c struct super_block *sb = path->mnt->mnt_sb; path 2499 fs/namespace.c struct mount *mnt = real_mount(path->mnt); path 2505 fs/namespace.c if (path->dentry != mnt->mnt.mnt_root) path 2517 fs/namespace.c mnt_warn_timestamp_expiry(path, &mnt->mnt); path 2527 fs/namespace.c static int do_remount(struct path *path, int ms_flags, int sb_flags, path 2531 fs/namespace.c struct super_block *sb = path->mnt->mnt_sb; path 2532 fs/namespace.c struct mount *mnt = real_mount(path->mnt); path 2538 fs/namespace.c if (path->dentry != path->mnt->mnt_root) path 2544 fs/namespace.c fc = fs_context_for_reconfigure(path->dentry, sb_flags, MS_RMT_MASK); path 2560 fs/namespace.c mnt_warn_timestamp_expiry(path, &mnt->mnt); path 2598 fs/namespace.c static int do_move_mount(struct path *old_path, struct path *new_path) path 2680 fs/namespace.c static int do_move_mount_old(struct path *path, const char *old_name) path 2682 fs/namespace.c struct path old_path; path 2692 fs/namespace.c err = do_move_mount(&old_path, path); path 2700 fs/namespace.c static int do_add_mount(struct mount *newmnt, struct path *path, int mnt_flags) path 2708 fs/namespace.c mp = lock_mount(path); path 2712 fs/namespace.c parent = real_mount(path->mnt); path 2725 fs/namespace.c if (path->mnt->mnt_sb == newmnt->mnt.mnt_sb && path 2726 fs/namespace.c path->mnt->mnt_root == path->dentry) path 2747 fs/namespace.c static int do_new_mount_fc(struct fs_context *fc, struct path *mountpoint, path 2781 fs/namespace.c static int do_new_mount(struct path *path, const char *fstype, int sb_flags, path 2824 fs/namespace.c err = do_new_mount_fc(fc, path, mnt_flags); path 2830 fs/namespace.c int finish_automount(struct vfsmount *m, struct path *path) path 2839 fs/namespace.c if (m->mnt_sb == path->mnt->mnt_sb && path 2840 fs/namespace.c m->mnt_root == path->dentry) { path 2845 fs/namespace.c err = do_add_mount(mnt, path, path->mnt->mnt_flags | MNT_SHRINKABLE); path 3064 fs/namespace.c struct path path; path 3080 fs/namespace.c retval = user_path_at(AT_FDCWD, dir_name, LOOKUP_FOLLOW, &path); path 3084 fs/namespace.c retval = security_sb_mount(dev_name, &path, path 3118 fs/namespace.c mnt_flags |= path.mnt->mnt_flags & MNT_ATIME_MASK; path 3131 fs/namespace.c retval = do_reconfigure_mnt(&path, mnt_flags); path 3133 fs/namespace.c retval = do_remount(&path, flags, sb_flags, mnt_flags, path 3136 fs/namespace.c retval = do_loopback(&path, dev_name, flags & MS_REC); path 3138 fs/namespace.c retval = do_change_type(&path, flags); path 3140 fs/namespace.c retval = do_move_mount_old(&path, dev_name); path 3142 fs/namespace.c retval = do_new_mount(&path, type_page, sb_flags, mnt_flags, path 3145 fs/namespace.c path_put(&path); path 3296 fs/namespace.c struct path path; path 3310 fs/namespace.c name, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &path); path 3318 fs/namespace.c s = path.mnt->mnt_sb; path 3320 fs/namespace.c mntput(path.mnt); path 3324 fs/namespace.c return path.dentry; path 3378 fs/namespace.c struct path newmount; path 3521 fs/namespace.c struct path from_path, to_path; path 3572 fs/namespace.c const struct path *root) path 3581 fs/namespace.c bool path_is_under(const struct path *path1, const struct path *path2) path 3619 fs/namespace.c struct path new, old, root; path 3720 fs/namespace.c struct path root; path 3822 fs/namespace.c struct path ns_root; path 3823 fs/namespace.c struct path fs_root; path 3968 fs/namespace.c struct path root; path 778 fs/nfs/inode.c int nfs_getattr(const struct path *path, struct kstat *stat, path 781 fs/nfs/inode.c struct inode *inode = d_inode(path->dentry); path 810 fs/nfs/inode.c if ((path->mnt->mnt_flags & MNT_NOATIME) || path 811 fs/nfs/inode.c ((path->mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode))) path 832 fs/nfs/inode.c nfs_readdirplus_parent_cache_miss(path->dentry); path 834 fs/nfs/inode.c nfs_readdirplus_parent_cache_hit(path->dentry); path 839 fs/nfs/inode.c nfs_readdirplus_parent_cache_hit(path->dentry); path 432 fs/nfs/internal.h extern struct vfsmount *nfs_d_automount(struct path *path); path 140 fs/nfs/namespace.c struct vfsmount *nfs_d_automount(struct path *path) path 143 fs/nfs/namespace.c struct nfs_server *server = NFS_SERVER(d_inode(path->dentry)); path 147 fs/nfs/namespace.c if (IS_ROOT(path->dentry)) path 156 fs/nfs/namespace.c mnt = server->nfs_client->rpc_ops->submount(server, path->dentry, fh, fattr); path 171 fs/nfs/namespace.c nfs_namespace_getattr(const struct path *path, struct kstat *stat, path 174 fs/nfs/namespace.c if (NFS_FH(d_inode(path->dentry))->size != 0) path 175 fs/nfs/namespace.c return nfs_getattr(path, stat, request_mask, query_flags); path 176 fs/nfs/namespace.c generic_fillattr(d_inode(path->dentry), stat); path 87 fs/nfs/nfs4namespace.c char *path = nfs_path(&limit, dentry, buffer, buflen, path 89 fs/nfs/nfs4namespace.c if (!IS_ERR(path)) { path 90 fs/nfs/nfs4namespace.c char *path_component = nfs_path_component(path, limit); path 94 fs/nfs/nfs4namespace.c return path; path 105 fs/nfs/nfs4namespace.c const char *path, *fs_path; path 107 fs/nfs/nfs4namespace.c path = nfs4_path(dentry, page, PAGE_SIZE); path 108 fs/nfs/nfs4namespace.c if (IS_ERR(path)) path 109 fs/nfs/nfs4namespace.c return PTR_ERR(path); path 115 fs/nfs/nfs4namespace.c if (strncmp(path, fs_path, strlen(fs_path)) != 0) { path 117 fs/nfs/nfs4namespace.c __func__, path, fs_path); path 3616 fs/nfs/nfs4xdr.c static int decode_pathname(struct xdr_stream *xdr, struct nfs4_pathname *path) path 3633 fs/nfs/nfs4xdr.c for (path->ncomponents = 0; path->ncomponents < n; path->ncomponents++) { path 3634 fs/nfs/nfs4xdr.c struct nfs4_string *component = &path->components[path->ncomponents]; path 3640 fs/nfs/nfs4xdr.c (path->ncomponents != n ? "/ " : ""), path 3647 fs/nfs/nfs4xdr.c path->ncomponents = 1; path 3648 fs/nfs/nfs4xdr.c path->components[0].len=0; path 3649 fs/nfs/nfs4xdr.c path->components[0].data=NULL; path 315 fs/nfsd/export.c kfree(locations[i].path); path 441 fs/nfsd/export.c fsloc->locations[i].path = kstrdup(buf, GFP_KERNEL); path 442 fs/nfsd/export.c if (!fsloc->locations[i].path) path 842 fs/nfsd/export.c const struct path *path, struct cache_req *reqp) path 851 fs/nfsd/export.c key.ex_path = *path; path 867 fs/nfsd/export.c exp_parent(struct cache_detail *cd, struct auth_domain *clp, struct path *path) path 869 fs/nfsd/export.c struct dentry *saved = dget(path->dentry); path 870 fs/nfsd/export.c struct svc_export *exp = exp_get_by_name(cd, clp, path, NULL); path 872 fs/nfsd/export.c while (PTR_ERR(exp) == -ENOENT && !IS_ROOT(path->dentry)) { path 873 fs/nfsd/export.c struct dentry *parent = dget_parent(path->dentry); path 874 fs/nfsd/export.c dput(path->dentry); path 875 fs/nfsd/export.c path->dentry = parent; path 876 fs/nfsd/export.c exp = exp_get_by_name(cd, clp, path, NULL); path 878 fs/nfsd/export.c dput(path->dentry); path 879 fs/nfsd/export.c path->dentry = saved; path 895 fs/nfsd/export.c struct path path; path 904 fs/nfsd/export.c if (kern_path(name, 0, &path)) { path 908 fs/nfsd/export.c inode = d_inode(path.dentry); path 911 fs/nfsd/export.c name, path.dentry, clp->name, path 913 fs/nfsd/export.c exp = exp_parent(cd, clp, &path); path 923 fs/nfsd/export.c if (fh_compose(&fh, exp, path.dentry, NULL)) path 931 fs/nfsd/export.c path_put(&path); path 995 fs/nfsd/export.c rqst_exp_get_by_name(struct svc_rqst *rqstp, struct path *path) path 1005 fs/nfsd/export.c exp = exp_get_by_name(cd, rqstp->rq_client, path, &rqstp->rq_chandle); path 1017 fs/nfsd/export.c gssexp = exp_get_by_name(cd, rqstp->rq_gssclient, path, &rqstp->rq_chandle); path 1059 fs/nfsd/export.c rqst_exp_parent(struct svc_rqst *rqstp, struct path *path) path 1061 fs/nfsd/export.c struct dentry *saved = dget(path->dentry); path 1062 fs/nfsd/export.c struct svc_export *exp = rqst_exp_get_by_name(rqstp, path); path 1064 fs/nfsd/export.c while (PTR_ERR(exp) == -ENOENT && !IS_ROOT(path->dentry)) { path 1065 fs/nfsd/export.c struct dentry *parent = dget_parent(path->dentry); path 1066 fs/nfsd/export.c dput(path->dentry); path 1067 fs/nfsd/export.c path->dentry = parent; path 1068 fs/nfsd/export.c exp = rqst_exp_get_by_name(rqstp, path); path 1070 fs/nfsd/export.c dput(path->dentry); path 1071 fs/nfsd/export.c path->dentry = saved; path 1202 fs/nfsd/export.c seq_escape(m, fsloc->locations[0].path, ",;@ \t\n\\"); path 1207 fs/nfsd/export.c seq_escape(m, fsloc->locations[i].path, ",;@ \t\n\\"); path 24 fs/nfsd/export.h char *path; /* slash separated list of path components */ path 53 fs/nfsd/export.h struct path ex_path; path 78 fs/nfsd/export.h struct path ek_path; path 96 fs/nfsd/export.h struct path *); path 98 fs/nfsd/export.h struct path *); path 101 fs/nfsd/export.h char *path, struct knfsd_fh *, int maxsize); path 662 fs/nfsd/nfs4recover.c struct path path; path 664 fs/nfsd/nfs4recover.c status = kern_path(recdir, LOOKUP_FOLLOW, &path); path 668 fs/nfsd/nfs4recover.c if (d_is_dir(path.dentry)) { path 672 fs/nfsd/nfs4recover.c path_put(&path); path 2033 fs/nfsd/nfs4recover.c struct path path; path 2065 fs/nfsd/nfs4recover.c status = kern_path(nfs4_recoverydir(), LOOKUP_FOLLOW, &path); path 2067 fs/nfsd/nfs4recover.c status = d_is_dir(path.dentry); path 2068 fs/nfsd/nfs4recover.c path_put(&path); path 2135 fs/nfsd/nfs4xdr.c status = nfsd4_encode_components(xdr, '/', location->path); path 2145 fs/nfsd/nfs4xdr.c const struct path *root, path 2146 fs/nfsd/nfs4xdr.c const struct path *path) path 2148 fs/nfsd/nfs4xdr.c struct path cur = *path; path 2215 fs/nfsd/nfs4xdr.c struct svc_rqst *rqstp, const struct path *path) path 2223 fs/nfsd/nfs4xdr.c res = nfsd4_encode_path(xdr, &exp_ps->ex_path, path); path 2351 fs/nfsd/nfs4xdr.c struct path path = exp->ex_path; path 2354 fs/nfsd/nfs4xdr.c path_get(&path); path 2355 fs/nfsd/nfs4xdr.c while (follow_up(&path)) { path 2356 fs/nfsd/nfs4xdr.c if (path.dentry != path.mnt->mnt_root) path 2359 fs/nfsd/nfs4xdr.c err = vfs_getattr(&path, stat, STATX_BASIC_STATS, AT_STATX_SYNC_AS_STAT); path 2360 fs/nfsd/nfs4xdr.c path_put(&path); path 2430 fs/nfsd/nfs4xdr.c struct path path = { path 2445 fs/nfsd/nfs4xdr.c err = vfs_getattr(&path, &stat, STATX_BASIC_STATS, AT_STATX_SYNC_AS_STAT); path 2452 fs/nfsd/nfs4xdr.c err = vfs_statfs(&path, &statfs); path 296 fs/nfsd/nfsctl.c struct path path; path 311 fs/nfsd/nfsctl.c error = kern_path(fo_path, 0, &path); path 324 fs/nfsd/nfsctl.c error = nlmsvc_unlock_all_by_sb(path.dentry->d_sb); path 326 fs/nfsd/nfsctl.c path_put(&path); path 353 fs/nfsd/nfsctl.c char *dname, *path; path 372 fs/nfsd/nfsctl.c path = dname+len+1; path 373 fs/nfsd/nfsctl.c len = qword_get(&mesg, path, size); path 393 fs/nfsd/nfsctl.c len = exp_rootfh(netns(file), dom, path, &fh, maxsize); path 64 fs/nfsd/vfs.c struct path path = {.mnt = mntget(exp->ex_path.mnt), path 68 fs/nfsd/vfs.c err = follow_down(&path); path 71 fs/nfsd/vfs.c if (path.mnt == exp->ex_path.mnt && path.dentry == dentry && path 74 fs/nfsd/vfs.c path_put(&path); path 78 fs/nfsd/vfs.c exp2 = rqst_exp_get_by_name(rqstp, &path); path 90 fs/nfsd/vfs.c path_put(&path); path 102 fs/nfsd/vfs.c *dpp = path.dentry; path 103 fs/nfsd/vfs.c path.dentry = dentry; path 107 fs/nfsd/vfs.c path_put(&path); path 113 fs/nfsd/vfs.c static void follow_to_parent(struct path *path) path 117 fs/nfsd/vfs.c while (path->dentry == path->mnt->mnt_root && follow_up(path)) path 119 fs/nfsd/vfs.c dp = dget_parent(path->dentry); path 120 fs/nfsd/vfs.c dput(path->dentry); path 121 fs/nfsd/vfs.c path->dentry = dp; path 127 fs/nfsd/vfs.c struct path path = {.mnt = mntget((*exp)->ex_path.mnt), path 130 fs/nfsd/vfs.c follow_to_parent(&path); path 132 fs/nfsd/vfs.c exp2 = rqst_exp_parent(rqstp, &path); path 136 fs/nfsd/vfs.c path_put(&path); path 139 fs/nfsd/vfs.c *dentryp = dget(path.dentry); path 143 fs/nfsd/vfs.c path_put(&path); path 710 fs/nfsd/vfs.c struct path path; path 717 fs/nfsd/vfs.c path.mnt = fhp->fh_export->ex_path.mnt; path 718 fs/nfsd/vfs.c path.dentry = fhp->fh_dentry; path 719 fs/nfsd/vfs.c inode = d_inode(path.dentry); path 749 fs/nfsd/vfs.c file = dentry_open(&path, flags, current_cred()); path 1479 fs/nfsd/vfs.c struct path path; path 1487 fs/nfsd/vfs.c path.mnt = fhp->fh_export->ex_path.mnt; path 1488 fs/nfsd/vfs.c path.dentry = fhp->fh_dentry; path 1490 fs/nfsd/vfs.c if (unlikely(!d_is_symlink(path.dentry))) path 1493 fs/nfsd/vfs.c touch_atime(&path); path 1495 fs/nfsd/vfs.c link = vfs_get_link(path.dentry, &done); path 1514 fs/nfsd/vfs.c char *path, path 1522 fs/nfsd/vfs.c if (!flen || path[0] == '\0') path 1543 fs/nfsd/vfs.c host_err = vfs_symlink(d_inode(dentry), dnew, path); path 1995 fs/nfsd/vfs.c struct path path = { path 1999 fs/nfsd/vfs.c if (vfs_statfs(&path, stat)) path 102 fs/nfsd/vfs.h char *name, int len, char *path, path 143 fs/nfsd/vfs.h struct path p = {.mnt = fh->fh_export->ex_path.mnt, path 25 fs/nilfs2/btree.c struct nilfs_btree_path *path; path 28 fs/nilfs2/btree.c path = kmem_cache_alloc(nilfs_btree_path_cache, GFP_NOFS); path 29 fs/nilfs2/btree.c if (path == NULL) path 33 fs/nilfs2/btree.c path[level].bp_bh = NULL; path 34 fs/nilfs2/btree.c path[level].bp_sib_bh = NULL; path 35 fs/nilfs2/btree.c path[level].bp_index = 0; path 36 fs/nilfs2/btree.c path[level].bp_oldreq.bpr_ptr = NILFS_BMAP_INVALID_PTR; path 37 fs/nilfs2/btree.c path[level].bp_newreq.bpr_ptr = NILFS_BMAP_INVALID_PTR; path 38 fs/nilfs2/btree.c path[level].bp_op = NULL; path 42 fs/nilfs2/btree.c return path; path 45 fs/nilfs2/btree.c static void nilfs_btree_free_path(struct nilfs_btree_path *path) path 50 fs/nilfs2/btree.c brelse(path[level].bp_bh); path 52 fs/nilfs2/btree.c kmem_cache_free(nilfs_btree_path_cache, path); path 415 fs/nilfs2/btree.c nilfs_btree_get_nonroot_node(const struct nilfs_btree_path *path, int level) path 417 fs/nilfs2/btree.c return (struct nilfs_btree_node *)path[level].bp_bh->b_data; path 421 fs/nilfs2/btree.c nilfs_btree_get_sib_node(const struct nilfs_btree_path *path, int level) path 423 fs/nilfs2/btree.c return (struct nilfs_btree_node *)path[level].bp_sib_bh->b_data; path 433 fs/nilfs2/btree.c const struct nilfs_btree_path *path, path 442 fs/nilfs2/btree.c node = nilfs_btree_get_nonroot_node(path, level); path 536 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 553 fs/nilfs2/btree.c path[level].bp_bh = NULL; path 554 fs/nilfs2/btree.c path[level].bp_index = index; path 561 fs/nilfs2/btree.c p.node = nilfs_btree_get_node(btree, path, level + 1, path 567 fs/nilfs2/btree.c ret = __nilfs_btree_get_block(btree, ptr, &path[level].bp_bh, path 572 fs/nilfs2/btree.c node = nilfs_btree_get_nonroot_node(path, level); path 586 fs/nilfs2/btree.c path[level].bp_index = index; path 598 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 612 fs/nilfs2/btree.c path[level].bp_bh = NULL; path 613 fs/nilfs2/btree.c path[level].bp_index = index; path 617 fs/nilfs2/btree.c ret = nilfs_btree_get_block(btree, ptr, &path[level].bp_bh); path 620 fs/nilfs2/btree.c node = nilfs_btree_get_nonroot_node(path, level); path 625 fs/nilfs2/btree.c path[level].bp_index = index; path 647 fs/nilfs2/btree.c const struct nilfs_btree_path *path, path 660 fs/nilfs2/btree.c node = nilfs_btree_get_nonroot_node(path, level); path 662 fs/nilfs2/btree.c index = path[level].bp_index + next_adj; path 677 fs/nilfs2/btree.c struct nilfs_btree_path *path; path 680 fs/nilfs2/btree.c path = nilfs_btree_alloc_path(); path 681 fs/nilfs2/btree.c if (path == NULL) path 684 fs/nilfs2/btree.c ret = nilfs_btree_do_lookup(btree, path, key, ptrp, level, 0); path 686 fs/nilfs2/btree.c nilfs_btree_free_path(path); path 695 fs/nilfs2/btree.c struct nilfs_btree_path *path; path 704 fs/nilfs2/btree.c path = nilfs_btree_alloc_path(); path 705 fs/nilfs2/btree.c if (path == NULL) path 708 fs/nilfs2/btree.c ret = nilfs_btree_do_lookup(btree, path, key, &ptr, level, 1); path 724 fs/nilfs2/btree.c node = nilfs_btree_get_node(btree, path, level, &ncmax); path 725 fs/nilfs2/btree.c index = path[level].bp_index + 1; path 747 fs/nilfs2/btree.c p.node = nilfs_btree_get_node(btree, path, level + 1, &p.ncmax); path 748 fs/nilfs2/btree.c p.index = path[level + 1].bp_index + 1; path 754 fs/nilfs2/btree.c path[level + 1].bp_index = p.index; path 756 fs/nilfs2/btree.c brelse(path[level].bp_bh); path 757 fs/nilfs2/btree.c path[level].bp_bh = NULL; path 759 fs/nilfs2/btree.c ret = __nilfs_btree_get_block(btree, ptr2, &path[level].bp_bh, path 763 fs/nilfs2/btree.c node = nilfs_btree_get_nonroot_node(path, level); path 766 fs/nilfs2/btree.c path[level].bp_index = index; path 772 fs/nilfs2/btree.c nilfs_btree_free_path(path); path 777 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 783 fs/nilfs2/btree.c nilfs_btree_get_nonroot_node(path, level), path 784 fs/nilfs2/btree.c path[level].bp_index, key); path 785 fs/nilfs2/btree.c if (!buffer_dirty(path[level].bp_bh)) path 786 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_bh); path 787 fs/nilfs2/btree.c } while ((path[level].bp_index == 0) && path 794 fs/nilfs2/btree.c path[level].bp_index, key); path 799 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 806 fs/nilfs2/btree.c node = nilfs_btree_get_nonroot_node(path, level); path 808 fs/nilfs2/btree.c nilfs_btree_node_insert(node, path[level].bp_index, path 810 fs/nilfs2/btree.c if (!buffer_dirty(path[level].bp_bh)) path 811 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_bh); path 813 fs/nilfs2/btree.c if (path[level].bp_index == 0) path 814 fs/nilfs2/btree.c nilfs_btree_promote_key(btree, path, level + 1, path 819 fs/nilfs2/btree.c nilfs_btree_node_insert(node, path[level].bp_index, path 826 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 832 fs/nilfs2/btree.c node = nilfs_btree_get_nonroot_node(path, level); path 833 fs/nilfs2/btree.c left = nilfs_btree_get_sib_node(path, level); path 840 fs/nilfs2/btree.c if (n > path[level].bp_index) { path 848 fs/nilfs2/btree.c if (!buffer_dirty(path[level].bp_bh)) path 849 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_bh); path 850 fs/nilfs2/btree.c if (!buffer_dirty(path[level].bp_sib_bh)) path 851 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_sib_bh); path 853 fs/nilfs2/btree.c nilfs_btree_promote_key(btree, path, level + 1, path 857 fs/nilfs2/btree.c brelse(path[level].bp_bh); path 858 fs/nilfs2/btree.c path[level].bp_bh = path[level].bp_sib_bh; path 859 fs/nilfs2/btree.c path[level].bp_sib_bh = NULL; path 860 fs/nilfs2/btree.c path[level].bp_index += lnchildren; path 861 fs/nilfs2/btree.c path[level + 1].bp_index--; path 863 fs/nilfs2/btree.c brelse(path[level].bp_sib_bh); path 864 fs/nilfs2/btree.c path[level].bp_sib_bh = NULL; path 865 fs/nilfs2/btree.c path[level].bp_index -= n; path 868 fs/nilfs2/btree.c nilfs_btree_do_insert(btree, path, level, keyp, ptrp); path 872 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 878 fs/nilfs2/btree.c node = nilfs_btree_get_nonroot_node(path, level); path 879 fs/nilfs2/btree.c right = nilfs_btree_get_sib_node(path, level); path 886 fs/nilfs2/btree.c if (n > nchildren - path[level].bp_index) { path 894 fs/nilfs2/btree.c if (!buffer_dirty(path[level].bp_bh)) path 895 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_bh); path 896 fs/nilfs2/btree.c if (!buffer_dirty(path[level].bp_sib_bh)) path 897 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_sib_bh); path 899 fs/nilfs2/btree.c path[level + 1].bp_index++; path 900 fs/nilfs2/btree.c nilfs_btree_promote_key(btree, path, level + 1, path 902 fs/nilfs2/btree.c path[level + 1].bp_index--; path 905 fs/nilfs2/btree.c brelse(path[level].bp_bh); path 906 fs/nilfs2/btree.c path[level].bp_bh = path[level].bp_sib_bh; path 907 fs/nilfs2/btree.c path[level].bp_sib_bh = NULL; path 908 fs/nilfs2/btree.c path[level].bp_index -= nilfs_btree_node_get_nchildren(node); path 909 fs/nilfs2/btree.c path[level + 1].bp_index++; path 911 fs/nilfs2/btree.c brelse(path[level].bp_sib_bh); path 912 fs/nilfs2/btree.c path[level].bp_sib_bh = NULL; path 915 fs/nilfs2/btree.c nilfs_btree_do_insert(btree, path, level, keyp, ptrp); path 919 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 925 fs/nilfs2/btree.c node = nilfs_btree_get_nonroot_node(path, level); path 926 fs/nilfs2/btree.c right = nilfs_btree_get_sib_node(path, level); path 932 fs/nilfs2/btree.c if (n > nchildren - path[level].bp_index) { path 939 fs/nilfs2/btree.c if (!buffer_dirty(path[level].bp_bh)) path 940 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_bh); path 941 fs/nilfs2/btree.c if (!buffer_dirty(path[level].bp_sib_bh)) path 942 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_sib_bh); path 945 fs/nilfs2/btree.c path[level].bp_index -= nilfs_btree_node_get_nchildren(node); path 946 fs/nilfs2/btree.c nilfs_btree_node_insert(right, path[level].bp_index, path 950 fs/nilfs2/btree.c *ptrp = path[level].bp_newreq.bpr_ptr; path 952 fs/nilfs2/btree.c brelse(path[level].bp_bh); path 953 fs/nilfs2/btree.c path[level].bp_bh = path[level].bp_sib_bh; path 954 fs/nilfs2/btree.c path[level].bp_sib_bh = NULL; path 956 fs/nilfs2/btree.c nilfs_btree_do_insert(btree, path, level, keyp, ptrp); path 959 fs/nilfs2/btree.c *ptrp = path[level].bp_newreq.bpr_ptr; path 961 fs/nilfs2/btree.c brelse(path[level].bp_sib_bh); path 962 fs/nilfs2/btree.c path[level].bp_sib_bh = NULL; path 965 fs/nilfs2/btree.c path[level + 1].bp_index++; path 969 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 976 fs/nilfs2/btree.c child = nilfs_btree_get_sib_node(path, level); path 985 fs/nilfs2/btree.c if (!buffer_dirty(path[level].bp_sib_bh)) path 986 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_sib_bh); path 988 fs/nilfs2/btree.c path[level].bp_bh = path[level].bp_sib_bh; path 989 fs/nilfs2/btree.c path[level].bp_sib_bh = NULL; path 991 fs/nilfs2/btree.c nilfs_btree_do_insert(btree, path, level, keyp, ptrp); path 994 fs/nilfs2/btree.c *ptrp = path[level].bp_newreq.bpr_ptr; path 998 fs/nilfs2/btree.c const struct nilfs_btree_path *path) path 1003 fs/nilfs2/btree.c if (path == NULL) path 1008 fs/nilfs2/btree.c if (path[level].bp_index > 0) { path 1009 fs/nilfs2/btree.c node = nilfs_btree_get_node(btree, path, level, &ncmax); path 1011 fs/nilfs2/btree.c path[level].bp_index - 1, path 1018 fs/nilfs2/btree.c node = nilfs_btree_get_node(btree, path, level, &ncmax); path 1019 fs/nilfs2/btree.c return nilfs_btree_node_get_ptr(node, path[level].bp_index, path 1027 fs/nilfs2/btree.c const struct nilfs_btree_path *path, path 1037 fs/nilfs2/btree.c ptr = nilfs_btree_find_near(btree, path); path 1047 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 1062 fs/nilfs2/btree.c path[level].bp_newreq.bpr_ptr = path 1063 fs/nilfs2/btree.c nilfs_btree_find_target_v(btree, path, key); path 1067 fs/nilfs2/btree.c ret = nilfs_bmap_prepare_alloc_ptr(btree, &path[level].bp_newreq, dat); path 1076 fs/nilfs2/btree.c node = nilfs_btree_get_nonroot_node(path, level); path 1078 fs/nilfs2/btree.c path[level].bp_op = nilfs_btree_do_insert; path 1083 fs/nilfs2/btree.c parent = nilfs_btree_get_node(btree, path, level + 1, &ncmax); path 1084 fs/nilfs2/btree.c pindex = path[level + 1].bp_index; path 1095 fs/nilfs2/btree.c path[level].bp_sib_bh = bh; path 1096 fs/nilfs2/btree.c path[level].bp_op = nilfs_btree_carry_left; path 1113 fs/nilfs2/btree.c path[level].bp_sib_bh = bh; path 1114 fs/nilfs2/btree.c path[level].bp_op = nilfs_btree_carry_right; path 1123 fs/nilfs2/btree.c path[level].bp_newreq.bpr_ptr = path 1124 fs/nilfs2/btree.c path[level - 1].bp_newreq.bpr_ptr + 1; path 1126 fs/nilfs2/btree.c &path[level].bp_newreq, dat); path 1130 fs/nilfs2/btree.c path[level].bp_newreq.bpr_ptr, path 1139 fs/nilfs2/btree.c path[level].bp_sib_bh = bh; path 1140 fs/nilfs2/btree.c path[level].bp_op = nilfs_btree_split; path 1147 fs/nilfs2/btree.c path[level].bp_op = nilfs_btree_do_insert; path 1153 fs/nilfs2/btree.c path[level].bp_newreq.bpr_ptr = path[level - 1].bp_newreq.bpr_ptr + 1; path 1154 fs/nilfs2/btree.c ret = nilfs_bmap_prepare_alloc_ptr(btree, &path[level].bp_newreq, dat); path 1157 fs/nilfs2/btree.c ret = nilfs_btree_get_new_block(btree, path[level].bp_newreq.bpr_ptr, path 1164 fs/nilfs2/btree.c path[level].bp_sib_bh = bh; path 1165 fs/nilfs2/btree.c path[level].bp_op = nilfs_btree_grow; path 1168 fs/nilfs2/btree.c path[level].bp_op = nilfs_btree_do_insert; path 1180 fs/nilfs2/btree.c nilfs_bmap_abort_alloc_ptr(btree, &path[level].bp_newreq, dat); path 1183 fs/nilfs2/btree.c nilfs_btnode_delete(path[level].bp_sib_bh); path 1184 fs/nilfs2/btree.c nilfs_bmap_abort_alloc_ptr(btree, &path[level].bp_newreq, dat); path 1188 fs/nilfs2/btree.c nilfs_bmap_abort_alloc_ptr(btree, &path[level].bp_newreq, dat); path 1196 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 1203 fs/nilfs2/btree.c ptr = path[NILFS_BTREE_LEVEL_DATA].bp_newreq.bpr_ptr; path 1211 fs/nilfs2/btree.c &path[level - 1].bp_newreq, dat); path 1212 fs/nilfs2/btree.c path[level].bp_op(btree, path, level, &key, &ptr); path 1221 fs/nilfs2/btree.c struct nilfs_btree_path *path; path 1225 fs/nilfs2/btree.c path = nilfs_btree_alloc_path(); path 1226 fs/nilfs2/btree.c if (path == NULL) path 1229 fs/nilfs2/btree.c ret = nilfs_btree_do_lookup(btree, path, key, NULL, path 1237 fs/nilfs2/btree.c ret = nilfs_btree_prepare_insert(btree, path, &level, key, ptr, &stats); path 1240 fs/nilfs2/btree.c nilfs_btree_commit_insert(btree, path, level, key, ptr); path 1244 fs/nilfs2/btree.c nilfs_btree_free_path(path); path 1249 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 1256 fs/nilfs2/btree.c node = nilfs_btree_get_nonroot_node(path, level); path 1258 fs/nilfs2/btree.c nilfs_btree_node_delete(node, path[level].bp_index, path 1260 fs/nilfs2/btree.c if (!buffer_dirty(path[level].bp_bh)) path 1261 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_bh); path 1262 fs/nilfs2/btree.c if (path[level].bp_index == 0) path 1263 fs/nilfs2/btree.c nilfs_btree_promote_key(btree, path, level + 1, path 1267 fs/nilfs2/btree.c nilfs_btree_node_delete(node, path[level].bp_index, path 1274 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 1280 fs/nilfs2/btree.c nilfs_btree_do_delete(btree, path, level, keyp, ptrp); path 1282 fs/nilfs2/btree.c node = nilfs_btree_get_nonroot_node(path, level); path 1283 fs/nilfs2/btree.c left = nilfs_btree_get_sib_node(path, level); path 1292 fs/nilfs2/btree.c if (!buffer_dirty(path[level].bp_bh)) path 1293 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_bh); path 1294 fs/nilfs2/btree.c if (!buffer_dirty(path[level].bp_sib_bh)) path 1295 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_sib_bh); path 1297 fs/nilfs2/btree.c nilfs_btree_promote_key(btree, path, level + 1, path 1300 fs/nilfs2/btree.c brelse(path[level].bp_sib_bh); path 1301 fs/nilfs2/btree.c path[level].bp_sib_bh = NULL; path 1302 fs/nilfs2/btree.c path[level].bp_index += n; path 1306 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 1312 fs/nilfs2/btree.c nilfs_btree_do_delete(btree, path, level, keyp, ptrp); path 1314 fs/nilfs2/btree.c node = nilfs_btree_get_nonroot_node(path, level); path 1315 fs/nilfs2/btree.c right = nilfs_btree_get_sib_node(path, level); path 1324 fs/nilfs2/btree.c if (!buffer_dirty(path[level].bp_bh)) path 1325 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_bh); path 1326 fs/nilfs2/btree.c if (!buffer_dirty(path[level].bp_sib_bh)) path 1327 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_sib_bh); path 1329 fs/nilfs2/btree.c path[level + 1].bp_index++; path 1330 fs/nilfs2/btree.c nilfs_btree_promote_key(btree, path, level + 1, path 1332 fs/nilfs2/btree.c path[level + 1].bp_index--; path 1334 fs/nilfs2/btree.c brelse(path[level].bp_sib_bh); path 1335 fs/nilfs2/btree.c path[level].bp_sib_bh = NULL; path 1339 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 1345 fs/nilfs2/btree.c nilfs_btree_do_delete(btree, path, level, keyp, ptrp); path 1347 fs/nilfs2/btree.c node = nilfs_btree_get_nonroot_node(path, level); path 1348 fs/nilfs2/btree.c left = nilfs_btree_get_sib_node(path, level); path 1355 fs/nilfs2/btree.c if (!buffer_dirty(path[level].bp_sib_bh)) path 1356 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_sib_bh); path 1358 fs/nilfs2/btree.c nilfs_btnode_delete(path[level].bp_bh); path 1359 fs/nilfs2/btree.c path[level].bp_bh = path[level].bp_sib_bh; path 1360 fs/nilfs2/btree.c path[level].bp_sib_bh = NULL; path 1361 fs/nilfs2/btree.c path[level].bp_index += nilfs_btree_node_get_nchildren(left); path 1365 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 1371 fs/nilfs2/btree.c nilfs_btree_do_delete(btree, path, level, keyp, ptrp); path 1373 fs/nilfs2/btree.c node = nilfs_btree_get_nonroot_node(path, level); path 1374 fs/nilfs2/btree.c right = nilfs_btree_get_sib_node(path, level); path 1381 fs/nilfs2/btree.c if (!buffer_dirty(path[level].bp_bh)) path 1382 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_bh); path 1384 fs/nilfs2/btree.c nilfs_btnode_delete(path[level].bp_sib_bh); path 1385 fs/nilfs2/btree.c path[level].bp_sib_bh = NULL; path 1386 fs/nilfs2/btree.c path[level + 1].bp_index++; path 1390 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 1396 fs/nilfs2/btree.c nilfs_btree_do_delete(btree, path, level, keyp, ptrp); path 1399 fs/nilfs2/btree.c child = nilfs_btree_get_nonroot_node(path, level); path 1409 fs/nilfs2/btree.c nilfs_btnode_delete(path[level].bp_bh); path 1410 fs/nilfs2/btree.c path[level].bp_bh = NULL; path 1414 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 1420 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 1435 fs/nilfs2/btree.c for (level = NILFS_BTREE_LEVEL_NODE_MIN, dindex = path[level].bp_index; path 1438 fs/nilfs2/btree.c node = nilfs_btree_get_nonroot_node(path, level); path 1439 fs/nilfs2/btree.c path[level].bp_oldreq.bpr_ptr = path 1442 fs/nilfs2/btree.c &path[level].bp_oldreq, dat); path 1447 fs/nilfs2/btree.c path[level].bp_op = nilfs_btree_do_delete; path 1452 fs/nilfs2/btree.c parent = nilfs_btree_get_node(btree, path, level + 1, &ncmax); path 1453 fs/nilfs2/btree.c pindex = path[level + 1].bp_index; path 1465 fs/nilfs2/btree.c path[level].bp_sib_bh = bh; path 1466 fs/nilfs2/btree.c path[level].bp_op = nilfs_btree_borrow_left; path 1470 fs/nilfs2/btree.c path[level].bp_sib_bh = bh; path 1471 fs/nilfs2/btree.c path[level].bp_op = nilfs_btree_concat_left; path 1485 fs/nilfs2/btree.c path[level].bp_sib_bh = bh; path 1486 fs/nilfs2/btree.c path[level].bp_op = nilfs_btree_borrow_right; path 1490 fs/nilfs2/btree.c path[level].bp_sib_bh = bh; path 1491 fs/nilfs2/btree.c path[level].bp_op = nilfs_btree_concat_right; path 1509 fs/nilfs2/btree.c path[level].bp_op = nilfs_btree_shrink; path 1512 fs/nilfs2/btree.c path[level].bp_op = nilfs_btree_nop; path 1515 fs/nilfs2/btree.c path[level].bp_op = nilfs_btree_do_delete; path 1523 fs/nilfs2/btree.c path[level].bp_op = nilfs_btree_do_delete; path 1528 fs/nilfs2/btree.c path[level].bp_oldreq.bpr_ptr = path 1532 fs/nilfs2/btree.c ret = nilfs_bmap_prepare_end_ptr(btree, &path[level].bp_oldreq, dat); path 1543 fs/nilfs2/btree.c nilfs_bmap_abort_end_ptr(btree, &path[level].bp_oldreq, dat); path 1546 fs/nilfs2/btree.c brelse(path[level].bp_sib_bh); path 1547 fs/nilfs2/btree.c nilfs_bmap_abort_end_ptr(btree, &path[level].bp_oldreq, dat); path 1555 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 1561 fs/nilfs2/btree.c nilfs_bmap_commit_end_ptr(btree, &path[level].bp_oldreq, dat); path 1562 fs/nilfs2/btree.c path[level].bp_op(btree, path, level, NULL, NULL); path 1572 fs/nilfs2/btree.c struct nilfs_btree_path *path; path 1577 fs/nilfs2/btree.c path = nilfs_btree_alloc_path(); path 1578 fs/nilfs2/btree.c if (path == NULL) path 1581 fs/nilfs2/btree.c ret = nilfs_btree_do_lookup(btree, path, key, NULL, path 1589 fs/nilfs2/btree.c ret = nilfs_btree_prepare_delete(btree, path, &level, &stats, dat); path 1592 fs/nilfs2/btree.c nilfs_btree_commit_delete(btree, path, level, dat); path 1596 fs/nilfs2/btree.c nilfs_btree_free_path(path); path 1603 fs/nilfs2/btree.c struct nilfs_btree_path *path; path 1607 fs/nilfs2/btree.c path = nilfs_btree_alloc_path(); path 1608 fs/nilfs2/btree.c if (!path) path 1611 fs/nilfs2/btree.c ret = nilfs_btree_do_lookup(btree, path, start, NULL, minlevel, 0); path 1615 fs/nilfs2/btree.c ret = nilfs_btree_get_next_key(btree, path, minlevel, keyp); path 1617 fs/nilfs2/btree.c nilfs_btree_free_path(path); path 1623 fs/nilfs2/btree.c struct nilfs_btree_path *path; path 1626 fs/nilfs2/btree.c path = nilfs_btree_alloc_path(); path 1627 fs/nilfs2/btree.c if (path == NULL) path 1630 fs/nilfs2/btree.c ret = nilfs_btree_do_lookup_last(btree, path, keyp, NULL); path 1632 fs/nilfs2/btree.c nilfs_btree_free_path(path); path 1884 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 1889 fs/nilfs2/btree.c !buffer_dirty(path[level].bp_bh)) path 1890 fs/nilfs2/btree.c mark_buffer_dirty(path[level].bp_bh); path 1896 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 1902 fs/nilfs2/btree.c parent = nilfs_btree_get_node(btree, path, level + 1, &ncmax); path 1903 fs/nilfs2/btree.c path[level].bp_oldreq.bpr_ptr = path 1904 fs/nilfs2/btree.c nilfs_btree_node_get_ptr(parent, path[level + 1].bp_index, path 1906 fs/nilfs2/btree.c path[level].bp_newreq.bpr_ptr = path[level].bp_oldreq.bpr_ptr + 1; path 1907 fs/nilfs2/btree.c ret = nilfs_dat_prepare_update(dat, &path[level].bp_oldreq.bpr_req, path 1908 fs/nilfs2/btree.c &path[level].bp_newreq.bpr_req); path 1912 fs/nilfs2/btree.c if (buffer_nilfs_node(path[level].bp_bh)) { path 1913 fs/nilfs2/btree.c path[level].bp_ctxt.oldkey = path[level].bp_oldreq.bpr_ptr; path 1914 fs/nilfs2/btree.c path[level].bp_ctxt.newkey = path[level].bp_newreq.bpr_ptr; path 1915 fs/nilfs2/btree.c path[level].bp_ctxt.bh = path[level].bp_bh; path 1918 fs/nilfs2/btree.c &path[level].bp_ctxt); path 1921 fs/nilfs2/btree.c &path[level].bp_oldreq.bpr_req, path 1922 fs/nilfs2/btree.c &path[level].bp_newreq.bpr_req); path 1931 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 1937 fs/nilfs2/btree.c nilfs_dat_commit_update(dat, &path[level].bp_oldreq.bpr_req, path 1938 fs/nilfs2/btree.c &path[level].bp_newreq.bpr_req, path 1941 fs/nilfs2/btree.c if (buffer_nilfs_node(path[level].bp_bh)) { path 1944 fs/nilfs2/btree.c &path[level].bp_ctxt); path 1945 fs/nilfs2/btree.c path[level].bp_bh = path[level].bp_ctxt.bh; path 1947 fs/nilfs2/btree.c set_buffer_nilfs_volatile(path[level].bp_bh); path 1949 fs/nilfs2/btree.c parent = nilfs_btree_get_node(btree, path, level + 1, &ncmax); path 1950 fs/nilfs2/btree.c nilfs_btree_node_set_ptr(parent, path[level + 1].bp_index, path 1951 fs/nilfs2/btree.c path[level].bp_newreq.bpr_ptr, ncmax); path 1955 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 1958 fs/nilfs2/btree.c nilfs_dat_abort_update(dat, &path[level].bp_oldreq.bpr_req, path 1959 fs/nilfs2/btree.c &path[level].bp_newreq.bpr_req); path 1960 fs/nilfs2/btree.c if (buffer_nilfs_node(path[level].bp_bh)) path 1963 fs/nilfs2/btree.c &path[level].bp_ctxt); path 1967 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 1974 fs/nilfs2/btree.c if (!buffer_nilfs_volatile(path[level].bp_bh)) { path 1975 fs/nilfs2/btree.c ret = nilfs_btree_prepare_update_v(btree, path, level, dat); path 1980 fs/nilfs2/btree.c !buffer_dirty(path[level].bp_bh)) { path 1982 fs/nilfs2/btree.c WARN_ON(buffer_nilfs_volatile(path[level].bp_bh)); path 1983 fs/nilfs2/btree.c ret = nilfs_btree_prepare_update_v(btree, path, level, dat); path 1995 fs/nilfs2/btree.c nilfs_btree_abort_update_v(btree, path, level, dat); path 1996 fs/nilfs2/btree.c if (!buffer_nilfs_volatile(path[level].bp_bh)) path 1997 fs/nilfs2/btree.c nilfs_btree_abort_update_v(btree, path, level, dat); path 2002 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 2009 fs/nilfs2/btree.c if (!buffer_nilfs_volatile(path[minlevel].bp_bh)) path 2010 fs/nilfs2/btree.c nilfs_btree_commit_update_v(btree, path, minlevel, dat); path 2013 fs/nilfs2/btree.c nilfs_btree_commit_update_v(btree, path, level, dat); path 2017 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 2027 fs/nilfs2/btree.c path[level].bp_bh = bh; path 2028 fs/nilfs2/btree.c ret = nilfs_btree_prepare_propagate_v(btree, path, level, &maxlevel, path 2033 fs/nilfs2/btree.c if (buffer_nilfs_volatile(path[level].bp_bh)) { path 2034 fs/nilfs2/btree.c parent = nilfs_btree_get_node(btree, path, level + 1, &ncmax); path 2036 fs/nilfs2/btree.c path[level + 1].bp_index, path 2043 fs/nilfs2/btree.c nilfs_btree_commit_propagate_v(btree, path, level, maxlevel, bh, dat); path 2046 fs/nilfs2/btree.c brelse(path[level].bp_bh); path 2047 fs/nilfs2/btree.c path[level].bp_bh = NULL; path 2054 fs/nilfs2/btree.c struct nilfs_btree_path *path; path 2061 fs/nilfs2/btree.c path = nilfs_btree_alloc_path(); path 2062 fs/nilfs2/btree.c if (path == NULL) path 2074 fs/nilfs2/btree.c ret = nilfs_btree_do_lookup(btree, path, key, NULL, level + 1, 0); path 2085 fs/nilfs2/btree.c nilfs_btree_propagate_v(btree, path, level, bh) : path 2086 fs/nilfs2/btree.c nilfs_btree_propagate_p(btree, path, level, bh); path 2089 fs/nilfs2/btree.c nilfs_btree_free_path(path); path 2173 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 2184 fs/nilfs2/btree.c parent = nilfs_btree_get_node(btree, path, level + 1, &ncmax); path 2185 fs/nilfs2/btree.c ptr = nilfs_btree_node_get_ptr(parent, path[level + 1].bp_index, path 2188 fs/nilfs2/btree.c path[level].bp_ctxt.oldkey = ptr; path 2189 fs/nilfs2/btree.c path[level].bp_ctxt.newkey = blocknr; path 2190 fs/nilfs2/btree.c path[level].bp_ctxt.bh = *bh; path 2193 fs/nilfs2/btree.c &path[level].bp_ctxt); path 2198 fs/nilfs2/btree.c &path[level].bp_ctxt); path 2199 fs/nilfs2/btree.c *bh = path[level].bp_ctxt.bh; path 2202 fs/nilfs2/btree.c nilfs_btree_node_set_ptr(parent, path[level + 1].bp_index, blocknr, path 2205 fs/nilfs2/btree.c key = nilfs_btree_node_get_key(parent, path[level + 1].bp_index); path 2214 fs/nilfs2/btree.c struct nilfs_btree_path *path, path 2227 fs/nilfs2/btree.c parent = nilfs_btree_get_node(btree, path, level + 1, &ncmax); path 2228 fs/nilfs2/btree.c ptr = nilfs_btree_node_get_ptr(parent, path[level + 1].bp_index, path 2236 fs/nilfs2/btree.c key = nilfs_btree_node_get_key(parent, path[level + 1].bp_index); path 2249 fs/nilfs2/btree.c struct nilfs_btree_path *path; path 2254 fs/nilfs2/btree.c path = nilfs_btree_alloc_path(); path 2255 fs/nilfs2/btree.c if (path == NULL) path 2267 fs/nilfs2/btree.c ret = nilfs_btree_do_lookup(btree, path, key, NULL, level + 1, 0); path 2274 fs/nilfs2/btree.c nilfs_btree_assign_v(btree, path, level, bh, blocknr, binfo) : path 2275 fs/nilfs2/btree.c nilfs_btree_assign_p(btree, path, level, bh, blocknr, binfo); path 2278 fs/nilfs2/btree.c nilfs_btree_free_path(path); path 2313 fs/nilfs2/btree.c struct nilfs_btree_path *path; path 2317 fs/nilfs2/btree.c path = nilfs_btree_alloc_path(); path 2318 fs/nilfs2/btree.c if (path == NULL) path 2321 fs/nilfs2/btree.c ret = nilfs_btree_do_lookup(btree, path, key, &ptr, level + 1, 0); path 2339 fs/nilfs2/btree.c nilfs_btree_free_path(path); path 34 fs/notify/fanotify/fanotify.c return old->path.mnt == new->path.mnt && path 35 fs/notify/fanotify/fanotify.c old->path.dentry == new->path.dentry; path 154 fs/notify/fanotify/fanotify.c const struct path *path = data; path 166 fs/notify/fanotify/fanotify.c if (!d_is_reg(path->dentry) && !d_can_lookup(path->dentry)) path 281 fs/notify/fanotify/fanotify.c return d_inode(((struct path *)data)->dentry); path 340 fs/notify/fanotify/fanotify.c event->path = *((struct path *)data); path 341 fs/notify/fanotify/fanotify.c path_get(&event->path); path 344 fs/notify/fanotify/fanotify.c event->path.mnt = NULL; path 345 fs/notify/fanotify/fanotify.c event->path.dentry = NULL; path 490 fs/notify/fanotify/fanotify.c path_put(&event->path); path 78 fs/notify/fanotify/fanotify.h struct path path; path 118 fs/notify/fanotify/fanotify_user.c if (event->path.dentry && event->path.mnt) path 119 fs/notify/fanotify/fanotify_user.c new_file = dentry_open(&event->path, path 531 fs/notify/fanotify/fanotify_user.c struct path *path, unsigned int flags, __u64 mask, path 553 fs/notify/fanotify/fanotify_user.c *path = f.file->f_path; path 554 fs/notify/fanotify/fanotify_user.c path_get(path); path 564 fs/notify/fanotify/fanotify_user.c ret = user_path_at(dfd, filename, lookup_flags, path); path 570 fs/notify/fanotify/fanotify_user.c ret = inode_permission(path->dentry->d_inode, MAY_READ); path 572 fs/notify/fanotify/fanotify_user.c path_put(path); path 576 fs/notify/fanotify/fanotify_user.c ret = security_path_notify(path, mask, obj_type); path 578 fs/notify/fanotify/fanotify_user.c path_put(path); path 890 fs/notify/fanotify/fanotify_user.c static int fanotify_test_fid(struct path *path, __kernel_fsid_t *fsid) path 898 fs/notify/fanotify/fanotify_user.c err = vfs_get_fsid(path->dentry, fsid); path 909 fs/notify/fanotify/fanotify_user.c err = vfs_get_fsid(path->dentry->d_sb->s_root, &root_fsid); path 924 fs/notify/fanotify/fanotify_user.c if (!path->dentry->d_sb->s_export_op || path 925 fs/notify/fanotify/fanotify_user.c !path->dentry->d_sb->s_export_op->fh_to_dentry) path 931 fs/notify/fanotify/fanotify_user.c static int fanotify_events_supported(struct path *path, __u64 mask) path 942 fs/notify/fanotify/fanotify_user.c path->mnt->mnt_sb->s_type->fs_flags & FS_DISALLOW_NOTIFY_PERM) path 954 fs/notify/fanotify/fanotify_user.c struct path path; path 1047 fs/notify/fanotify/fanotify_user.c ret = fanotify_find_path(dfd, pathname, &path, flags, path 1053 fs/notify/fanotify/fanotify_user.c ret = fanotify_events_supported(&path, mask); path 1059 fs/notify/fanotify/fanotify_user.c ret = fanotify_test_fid(&path, &__fsid); path 1068 fs/notify/fanotify/fanotify_user.c inode = path.dentry->d_inode; path 1070 fs/notify/fanotify/fanotify_user.c mnt = path.mnt; path 1101 fs/notify/fanotify/fanotify_user.c path_put(&path); path 146 fs/notify/fsnotify.c int __fsnotify_parent(const struct path *path, struct dentry *dentry, __u32 mask) path 153 fs/notify/fsnotify.c dentry = path->dentry; path 171 fs/notify/fsnotify.c if (path) path 172 fs/notify/fsnotify.c ret = fsnotify(p_inode, mask, path, FSNOTIFY_EVENT_PATH, path 329 fs/notify/fsnotify.c mnt = real_mount(((const struct path *)data)->mnt); path 77 fs/notify/inotify/inotify_fsnotify.c const struct path *path = data; path 79 fs/notify/inotify/inotify_fsnotify.c if (d_unlinked(path->dentry)) path 335 fs/notify/inotify/inotify_user.c static int inotify_find_inode(const char __user *dirname, struct path *path, path 340 fs/notify/inotify/inotify_user.c error = user_path_at(AT_FDCWD, dirname, flags, path); path 344 fs/notify/inotify/inotify_user.c error = inode_permission(path->dentry->d_inode, MAY_READ); path 346 fs/notify/inotify/inotify_user.c path_put(path); path 349 fs/notify/inotify/inotify_user.c error = security_path_notify(path, mask, path 352 fs/notify/inotify/inotify_user.c path_put(path); path 703 fs/notify/inotify/inotify_user.c struct path path; path 745 fs/notify/inotify/inotify_user.c ret = inotify_find_inode(pathname, &path, flags, path 751 fs/notify/inotify/inotify_user.c inode = path.dentry->d_inode; path 756 fs/notify/inotify/inotify_user.c path_put(&path); path 55 fs/nsfs.c static void *__ns_get_path(struct path *path, struct ns_common *ns) path 72 fs/nsfs.c path->mnt = mntget(mnt); path 73 fs/nsfs.c path->dentry = dentry; path 106 fs/nsfs.c void *ns_get_path_cb(struct path *path, ns_get_path_helper_t *ns_get_cb, path 116 fs/nsfs.c ret = __ns_get_path(path, ns); path 134 fs/nsfs.c void *ns_get_path(struct path *path, struct task_struct *task, path 142 fs/nsfs.c return ns_get_path_cb(path, ns_get_path_task, &args); path 148 fs/nsfs.c struct path path = {}; path 166 fs/nsfs.c err = __ns_get_path(&path, relative); path 174 fs/nsfs.c f = dentry_open(&path, O_RDONLY, current_cred()); path 175 fs/nsfs.c path_put(&path); path 568 fs/ocfs2/alloc.c struct ocfs2_path *path, path 575 fs/ocfs2/alloc.c void ocfs2_reinit_path(struct ocfs2_path *path, int keep_root) path 583 fs/ocfs2/alloc.c for(i = start; i < path_num_items(path); i++) { path 584 fs/ocfs2/alloc.c node = &path->p_node[i]; path 597 fs/ocfs2/alloc.c depth = le16_to_cpu(path_root_el(path)->l_tree_depth); path 599 fs/ocfs2/alloc.c path_root_access(path) = NULL; path 601 fs/ocfs2/alloc.c path->p_tree_depth = depth; path 604 fs/ocfs2/alloc.c void ocfs2_free_path(struct ocfs2_path *path) path 606 fs/ocfs2/alloc.c if (path) { path 607 fs/ocfs2/alloc.c ocfs2_reinit_path(path, 0); path 608 fs/ocfs2/alloc.c kfree(path); path 665 fs/ocfs2/alloc.c static inline void ocfs2_path_insert_eb(struct ocfs2_path *path, int index, path 678 fs/ocfs2/alloc.c path->p_node[index].bh = eb_bh; path 679 fs/ocfs2/alloc.c path->p_node[index].el = &eb->h_list; path 686 fs/ocfs2/alloc.c struct ocfs2_path *path; path 690 fs/ocfs2/alloc.c path = kzalloc(sizeof(*path), GFP_NOFS); path 691 fs/ocfs2/alloc.c if (path) { path 692 fs/ocfs2/alloc.c path->p_tree_depth = le16_to_cpu(root_el->l_tree_depth); path 694 fs/ocfs2/alloc.c path_root_bh(path) = root_bh; path 695 fs/ocfs2/alloc.c path_root_el(path) = root_el; path 696 fs/ocfs2/alloc.c path_root_access(path) = access; path 699 fs/ocfs2/alloc.c return path; path 702 fs/ocfs2/alloc.c struct ocfs2_path *ocfs2_new_path_from_path(struct ocfs2_path *path) path 704 fs/ocfs2/alloc.c return ocfs2_new_path(path_root_bh(path), path_root_el(path), path 705 fs/ocfs2/alloc.c path_root_access(path)); path 723 fs/ocfs2/alloc.c struct ocfs2_path *path, path 726 fs/ocfs2/alloc.c ocfs2_journal_access_func access = path_root_access(path); path 734 fs/ocfs2/alloc.c return access(handle, ci, path->p_node[idx].bh, path 743 fs/ocfs2/alloc.c struct ocfs2_path *path) path 747 fs/ocfs2/alloc.c if (!path) path 750 fs/ocfs2/alloc.c for(i = 0; i < path_num_items(path); i++) { path 751 fs/ocfs2/alloc.c ret = ocfs2_path_bh_journal_access(handle, ci, path, i); path 1098 fs/ocfs2/alloc.c struct ocfs2_path *path = NULL; path 1102 fs/ocfs2/alloc.c path = ocfs2_new_path_from_et(et); path 1103 fs/ocfs2/alloc.c if (!path) { path 1108 fs/ocfs2/alloc.c status = ocfs2_find_path(et->et_ci, path, UINT_MAX); path 1114 fs/ocfs2/alloc.c status = ocfs2_extend_trans(handle, path_num_items(path)); path 1120 fs/ocfs2/alloc.c status = ocfs2_journal_access_path(et->et_ci, handle, path); path 1126 fs/ocfs2/alloc.c el = path_leaf_el(path); path 1129 fs/ocfs2/alloc.c ocfs2_adjust_rightmost_records(handle, et, path, rec); path 1132 fs/ocfs2/alloc.c ocfs2_free_path(path); path 1885 fs/ocfs2/alloc.c struct ocfs2_path *path; path 1892 fs/ocfs2/alloc.c ocfs2_path_insert_eb(fp->path, fp->index, bh); path 1896 fs/ocfs2/alloc.c struct ocfs2_path *path, u32 cpos) path 1901 fs/ocfs2/alloc.c data.path = path; path 1902 fs/ocfs2/alloc.c return __ocfs2_find_path(ci, path_root_el(path), cpos, path 2212 fs/ocfs2/alloc.c struct ocfs2_path *path, u32 *cpos) path 2218 fs/ocfs2/alloc.c BUG_ON(path->p_tree_depth == 0); path 2222 fs/ocfs2/alloc.c blkno = path_leaf_bh(path)->b_blocknr; path 2225 fs/ocfs2/alloc.c i = path->p_tree_depth - 1; path 2227 fs/ocfs2/alloc.c el = path->p_node[i].el; path 2271 fs/ocfs2/alloc.c blkno = path->p_node[i].bh->b_blocknr; path 2286 fs/ocfs2/alloc.c struct ocfs2_path *path) path 2289 fs/ocfs2/alloc.c int credits = (path->p_tree_depth - subtree_depth) * 2 + 1 + op_credits; path 2526 fs/ocfs2/alloc.c struct ocfs2_path *path) path 2534 fs/ocfs2/alloc.c ret = ocfs2_journal_access_path(et->et_ci, handle, path); path 2541 fs/ocfs2/alloc.c eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; path 2550 fs/ocfs2/alloc.c for (i = 0; i < path->p_tree_depth; i++) { path 2551 fs/ocfs2/alloc.c el = path->p_node[i].el; path 2558 fs/ocfs2/alloc.c ocfs2_journal_dirty(handle, path->p_node[i].bh); path 2567 fs/ocfs2/alloc.c struct ocfs2_path *path, int unlink_start) path 2574 fs/ocfs2/alloc.c for(i = unlink_start; i < path_num_items(path); i++) { path 2575 fs/ocfs2/alloc.c bh = path->p_node[i].bh; path 2807 fs/ocfs2/alloc.c struct ocfs2_path *path, u32 *cpos) path 2815 fs/ocfs2/alloc.c if (path->p_tree_depth == 0) path 2818 fs/ocfs2/alloc.c blkno = path_leaf_bh(path)->b_blocknr; path 2821 fs/ocfs2/alloc.c i = path->p_tree_depth - 1; path 2825 fs/ocfs2/alloc.c el = path->p_node[i].el; path 2867 fs/ocfs2/alloc.c blkno = path->p_node[i].bh->b_blocknr; path 2877 fs/ocfs2/alloc.c struct ocfs2_path *path) path 2880 fs/ocfs2/alloc.c struct buffer_head *bh = path_leaf_bh(path); path 2881 fs/ocfs2/alloc.c struct ocfs2_extent_list *el = path_leaf_el(path); path 2886 fs/ocfs2/alloc.c ret = ocfs2_path_bh_journal_access(handle, et->et_ci, path, path 2887 fs/ocfs2/alloc.c path_num_items(path) - 1); path 2903 fs/ocfs2/alloc.c struct ocfs2_path *path, path 2913 fs/ocfs2/alloc.c if (!ocfs2_is_empty_extent(&(path_leaf_el(path)->l_recs[0]))) path 2918 fs/ocfs2/alloc.c ret = ocfs2_find_cpos_for_right_leaf(sb, path, &right_cpos); path 2924 fs/ocfs2/alloc.c left_path = ocfs2_new_path_from_path(path); path 2931 fs/ocfs2/alloc.c ocfs2_cp_path(left_path, path); path 2933 fs/ocfs2/alloc.c right_path = ocfs2_new_path_from_path(path); path 3019 fs/ocfs2/alloc.c struct ocfs2_path *path, path 3032 fs/ocfs2/alloc.c ret = ocfs2_journal_access_path(et->et_ci, handle, path); path 3039 fs/ocfs2/alloc.c path, &cpos); path 3050 fs/ocfs2/alloc.c left_path = ocfs2_new_path_from_path(path); path 3069 fs/ocfs2/alloc.c subtree_index = ocfs2_find_subtree_root(et, left_path, path); path 3071 fs/ocfs2/alloc.c ocfs2_unlink_subtree(handle, et, left_path, path, path 3089 fs/ocfs2/alloc.c ocfs2_unlink_path(handle, et, dealloc, path, 1); path 3099 fs/ocfs2/alloc.c ocfs2_journal_dirty(handle, path_root_bh(path)); path 3108 fs/ocfs2/alloc.c struct ocfs2_path *path, path 3113 fs/ocfs2/alloc.c int credits = path->p_tree_depth * 2 + 1; path 3122 fs/ocfs2/alloc.c ret = ocfs2_remove_rightmost_path(handle, et, path, dealloc); path 3148 fs/ocfs2/alloc.c struct ocfs2_path *path, path 3156 fs/ocfs2/alloc.c el = path_leaf_el(path); path 3160 fs/ocfs2/alloc.c if (path->p_tree_depth == 0) { path 3166 fs/ocfs2/alloc.c ret = ocfs2_rotate_rightmost_leaf_left(handle, et, path); path 3185 fs/ocfs2/alloc.c eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; path 3213 fs/ocfs2/alloc.c ret = ocfs2_remove_rightmost_path(handle, et, path, path 3225 fs/ocfs2/alloc.c ret = __ocfs2_rotate_tree_left(handle, et, orig_credits, path, path 3657 fs/ocfs2/alloc.c struct ocfs2_path *path, path 3664 fs/ocfs2/alloc.c struct ocfs2_extent_list *el = path_leaf_el(path); path 3673 fs/ocfs2/alloc.c path); path 3685 fs/ocfs2/alloc.c ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); path 3714 fs/ocfs2/alloc.c ret = ocfs2_merge_rec_right(path, handle, et, split_rec, path 3729 fs/ocfs2/alloc.c path); path 3736 fs/ocfs2/alloc.c ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); path 3748 fs/ocfs2/alloc.c ret = ocfs2_merge_rec_left(path, handle, et, rec, path 3759 fs/ocfs2/alloc.c path); path 3765 fs/ocfs2/alloc.c ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); path 3782 fs/ocfs2/alloc.c ret = ocfs2_merge_rec_left(path, handle, et, path 3790 fs/ocfs2/alloc.c ret = ocfs2_merge_rec_right(path, handle, path 3803 fs/ocfs2/alloc.c path); path 3814 fs/ocfs2/alloc.c ret = ocfs2_rotate_tree_left(handle, et, path, path 3952 fs/ocfs2/alloc.c struct ocfs2_path *path, path 3963 fs/ocfs2/alloc.c for (i = 0; i < path->p_tree_depth; i++) { path 3964 fs/ocfs2/alloc.c bh = path->p_node[i].bh; path 3965 fs/ocfs2/alloc.c el = path->p_node[i].el; path 4352 fs/ocfs2/alloc.c struct ocfs2_path *path, path 4369 fs/ocfs2/alloc.c } else if (path->p_tree_depth > 0) { path 4370 fs/ocfs2/alloc.c status = ocfs2_find_cpos_for_left_leaf(sb, path, &left_cpos); path 4375 fs/ocfs2/alloc.c left_path = ocfs2_new_path_from_path(path); path 4422 fs/ocfs2/alloc.c path->p_tree_depth > 0) { path 4423 fs/ocfs2/alloc.c status = ocfs2_find_cpos_for_right_leaf(sb, path, &right_cpos); path 4430 fs/ocfs2/alloc.c right_path = ocfs2_new_path_from_path(path); path 4581 fs/ocfs2/alloc.c struct ocfs2_path *path = NULL; path 4624 fs/ocfs2/alloc.c path = ocfs2_new_path_from_et(et); path 4625 fs/ocfs2/alloc.c if (!path) { path 4637 fs/ocfs2/alloc.c ret = ocfs2_find_path(et->et_ci, path, le32_to_cpu(insert_rec->e_cpos)); path 4643 fs/ocfs2/alloc.c el = path_leaf_el(path); path 4675 fs/ocfs2/alloc.c path_leaf_bh(path)->b_blocknr) { path 4688 fs/ocfs2/alloc.c ocfs2_free_path(path); path 4906 fs/ocfs2/alloc.c struct ocfs2_path *path, path 4926 fs/ocfs2/alloc.c rec = path_leaf_el(path)->l_recs[split_index]; path 4990 fs/ocfs2/alloc.c ocfs2_reinit_path(path, 1); path 4993 fs/ocfs2/alloc.c ret = ocfs2_find_path(et->et_ci, path, cpos); path 4999 fs/ocfs2/alloc.c el = path_leaf_el(path); path 5018 fs/ocfs2/alloc.c struct ocfs2_path *path, path 5025 fs/ocfs2/alloc.c ret = ocfs2_path_bh_journal_access(handle, et->et_ci, path, path 5026 fs/ocfs2/alloc.c path_num_items(path) - 1); path 5034 fs/ocfs2/alloc.c ocfs2_journal_dirty(handle, path_leaf_bh(path)); path 5060 fs/ocfs2/alloc.c struct ocfs2_path *path, path 5067 fs/ocfs2/alloc.c struct ocfs2_extent_list *el = path_leaf_el(path); path 5080 fs/ocfs2/alloc.c ret = ocfs2_figure_merge_contig_type(et, path, el, path 5094 fs/ocfs2/alloc.c if (path->p_tree_depth) { path 5118 fs/ocfs2/alloc.c ret = ocfs2_replace_extent_rec(handle, et, path, el, path 5121 fs/ocfs2/alloc.c ret = ocfs2_split_and_insert(handle, et, path, path 5127 fs/ocfs2/alloc.c ret = ocfs2_try_to_merge_extent(handle, et, path, path 5275 fs/ocfs2/alloc.c struct ocfs2_path *path, path 5290 fs/ocfs2/alloc.c el = path_leaf_el(path); path 5295 fs/ocfs2/alloc.c depth = path->p_tree_depth; path 5308 fs/ocfs2/alloc.c rightmost_el = path_leaf_el(path); path 5310 fs/ocfs2/alloc.c credits = path->p_tree_depth + path 5345 fs/ocfs2/alloc.c struct ocfs2_path *path, int index, path 5354 fs/ocfs2/alloc.c struct ocfs2_extent_list *el = path_leaf_el(path); path 5362 fs/ocfs2/alloc.c path); path 5368 fs/ocfs2/alloc.c ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); path 5378 fs/ocfs2/alloc.c path->p_tree_depth) { path 5385 fs/ocfs2/alloc.c eb = (struct ocfs2_extent_block *)path_leaf_bh(path)->b_data; path 5391 fs/ocfs2/alloc.c if (index == 0 && path->p_tree_depth && path 5406 fs/ocfs2/alloc.c ret = ocfs2_find_cpos_for_left_leaf(sb, path, &left_cpos); path 5413 fs/ocfs2/alloc.c left_path = ocfs2_new_path_from_path(path); path 5431 fs/ocfs2/alloc.c path); path 5437 fs/ocfs2/alloc.c ret = ocfs2_journal_access_path(et->et_ci, handle, path); path 5465 fs/ocfs2/alloc.c ocfs2_adjust_rightmost_records(handle, et, path, path 5477 fs/ocfs2/alloc.c ocfs2_adjust_rightmost_records(handle, et, path, rec); path 5491 fs/ocfs2/alloc.c subtree_index = ocfs2_find_subtree_root(et, left_path, path); path 5492 fs/ocfs2/alloc.c ocfs2_complete_edge_insert(handle, left_path, path, path 5496 fs/ocfs2/alloc.c ocfs2_journal_dirty(handle, path_leaf_bh(path)); path 5498 fs/ocfs2/alloc.c ret = ocfs2_rotate_tree_left(handle, et, path, dealloc); path 5517 fs/ocfs2/alloc.c struct ocfs2_path *path = NULL; path 5525 fs/ocfs2/alloc.c path = ocfs2_new_path_from_et(et); path 5526 fs/ocfs2/alloc.c if (!path) { path 5532 fs/ocfs2/alloc.c ret = ocfs2_find_path(et->et_ci, path, cpos); path 5538 fs/ocfs2/alloc.c el = path_leaf_el(path); path 5577 fs/ocfs2/alloc.c ret = ocfs2_truncate_rec(handle, et, path, index, dealloc, path 5584 fs/ocfs2/alloc.c ret = ocfs2_split_tree(handle, et, path, index, path 5595 fs/ocfs2/alloc.c ocfs2_reinit_path(path, 1); path 5597 fs/ocfs2/alloc.c ret = ocfs2_find_path(et->et_ci, path, cpos); path 5603 fs/ocfs2/alloc.c el = path_leaf_el(path); path 5631 fs/ocfs2/alloc.c ret = ocfs2_truncate_rec(handle, et, path, index, dealloc, path 5638 fs/ocfs2/alloc.c ocfs2_free_path(path); path 7231 fs/ocfs2/alloc.c struct ocfs2_path *path = NULL; path 7245 fs/ocfs2/alloc.c path = ocfs2_new_path(di_bh, &di->id2.i_list, path 7247 fs/ocfs2/alloc.c if (!path) { path 7267 fs/ocfs2/alloc.c status = ocfs2_find_path(INODE_CACHE(inode), path, UINT_MAX); path 7277 fs/ocfs2/alloc.c path->p_tree_depth); path 7290 fs/ocfs2/alloc.c el = path_leaf_el(path); path 7295 fs/ocfs2/alloc.c (unsigned long long)path_leaf_bh(path)->b_blocknr); path 7315 fs/ocfs2/alloc.c &et, path, &dealloc); path 7321 fs/ocfs2/alloc.c ocfs2_reinit_path(path, 1); path 7372 fs/ocfs2/alloc.c ocfs2_reinit_path(path, 1); path 7388 fs/ocfs2/alloc.c ocfs2_free_path(path); path 108 fs/ocfs2/alloc.h struct ocfs2_path *path, path 291 fs/ocfs2/alloc.h void ocfs2_reinit_path(struct ocfs2_path *path, int keep_root); path 292 fs/ocfs2/alloc.h void ocfs2_free_path(struct ocfs2_path *path); path 294 fs/ocfs2/alloc.h struct ocfs2_path *path, path 296 fs/ocfs2/alloc.h struct ocfs2_path *ocfs2_new_path_from_path(struct ocfs2_path *path); path 300 fs/ocfs2/alloc.h struct ocfs2_path *path, path 304 fs/ocfs2/alloc.h struct ocfs2_path *path); path 306 fs/ocfs2/alloc.h struct ocfs2_path *path, u32 *cpos); path 308 fs/ocfs2/alloc.h struct ocfs2_path *path, u32 *cpos); path 1301 fs/ocfs2/file.c int ocfs2_getattr(const struct path *path, struct kstat *stat, path 1304 fs/ocfs2/file.c struct inode *inode = d_inode(path->dentry); path 1305 fs/ocfs2/file.c struct super_block *sb = path->dentry->d_sb; path 1309 fs/ocfs2/file.c err = ocfs2_inode_revalidate(path->dentry); path 1704 fs/ocfs2/file.c struct ocfs2_path *path = NULL; path 1769 fs/ocfs2/file.c path = ocfs2_new_path_from_et(&et); path 1770 fs/ocfs2/file.c if (!path) { path 1778 fs/ocfs2/file.c ret = ocfs2_find_path(INODE_CACHE(inode), path, path 1785 fs/ocfs2/file.c el = path_leaf_el(path); path 1792 fs/ocfs2/file.c if (path->p_tree_depth == 0) path 1796 fs/ocfs2/file.c path, path 1816 fs/ocfs2/file.c ocfs2_reinit_path(path, 1); path 1841 fs/ocfs2/file.c ocfs2_reinit_path(path, 1); path 1847 fs/ocfs2/file.c ocfs2_free_path(path); path 55 fs/ocfs2/file.h int ocfs2_getattr(const struct path *path, struct kstat *stat, path 60 fs/ocfs2/move_extents.c struct ocfs2_path *path = NULL; path 78 fs/ocfs2/move_extents.c path = ocfs2_new_path_from_et(&context->et); path 79 fs/ocfs2/move_extents.c if (!path) { path 85 fs/ocfs2/move_extents.c ret = ocfs2_find_path(INODE_CACHE(inode), path, cpos); path 91 fs/ocfs2/move_extents.c el = path_leaf_el(path); path 118 fs/ocfs2/move_extents.c ret = ocfs2_split_extent(handle, &context->et, path, index, path 147 fs/ocfs2/move_extents.c ocfs2_free_path(path); path 1658 fs/ocfs2/refcounttree.c struct ocfs2_path *path = NULL; path 1675 fs/ocfs2/refcounttree.c path = ocfs2_new_path_from_et(&et); path 1676 fs/ocfs2/refcounttree.c if (!path) { path 1682 fs/ocfs2/refcounttree.c ret = ocfs2_find_path(ci, path, old_cpos); path 1705 fs/ocfs2/refcounttree.c ret = ocfs2_journal_access_eb(handle, ci, path_leaf_bh(path), path 1713 fs/ocfs2/refcounttree.c el = path_leaf_el(path); path 1726 fs/ocfs2/refcounttree.c ocfs2_journal_dirty(handle, path_leaf_bh(path)); path 1730 fs/ocfs2/refcounttree.c ocfs2_free_path(path); path 3062 fs/ocfs2/refcounttree.c struct ocfs2_path *path = NULL; path 3078 fs/ocfs2/refcounttree.c path = ocfs2_new_path_from_et(et); path 3079 fs/ocfs2/refcounttree.c if (!path) { path 3085 fs/ocfs2/refcounttree.c ret = ocfs2_find_path(et->et_ci, path, cpos); path 3091 fs/ocfs2/refcounttree.c el = path_leaf_el(path); path 3101 fs/ocfs2/refcounttree.c ret = ocfs2_split_extent(handle, et, path, index, path 3107 fs/ocfs2/refcounttree.c ocfs2_free_path(path); path 4424 fs/ocfs2/refcounttree.c struct path old_path, new_path; path 69 fs/open.c long vfs_truncate(const struct path *path, loff_t length) path 74 fs/open.c inode = path->dentry->d_inode; path 82 fs/open.c error = mnt_want_write(path->mnt); path 108 fs/open.c error = security_path_truncate(path); path 110 fs/open.c error = do_truncate(path->dentry, length, 0, NULL); path 115 fs/open.c mnt_drop_write(path->mnt); path 124 fs/open.c struct path path; path 131 fs/open.c error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); path 133 fs/open.c error = vfs_truncate(&path, length); path 134 fs/open.c path_put(&path); path 143 fs/open.c SYSCALL_DEFINE2(truncate, const char __user *, path, long, length) path 145 fs/open.c return do_sys_truncate(path, length); path 149 fs/open.c COMPAT_SYSCALL_DEFINE2(truncate, const char __user *, path, compat_off_t, length) path 151 fs/open.c return do_sys_truncate(path, length); path 217 fs/open.c SYSCALL_DEFINE2(truncate64, const char __user *, path, loff_t, length) path 219 fs/open.c return do_sys_truncate(path, length); path 352 fs/open.c struct path path; path 398 fs/open.c res = user_path_at(dfd, filename, lookup_flags, &path); path 402 fs/open.c inode = d_backing_inode(path.dentry); path 410 fs/open.c if (path_noexec(&path)) path 428 fs/open.c if (__mnt_is_readonly(path.mnt)) path 432 fs/open.c path_put(&path); path 455 fs/open.c struct path path; path 459 fs/open.c error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); path 463 fs/open.c error = inode_permission(path.dentry->d_inode, MAY_EXEC | MAY_CHDIR); path 467 fs/open.c set_fs_pwd(current->fs, &path); path 470 fs/open.c path_put(&path); path 508 fs/open.c struct path path; path 512 fs/open.c error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); path 516 fs/open.c error = inode_permission(path.dentry->d_inode, MAY_EXEC | MAY_CHDIR); path 523 fs/open.c error = security_path_chroot(&path); path 527 fs/open.c set_fs_root(current->fs, &path); path 530 fs/open.c path_put(&path); path 544 fs/open.c static int chmod_common(const struct path *path, umode_t mode) path 546 fs/open.c struct inode *inode = path->dentry->d_inode; path 551 fs/open.c error = mnt_want_write(path->mnt); path 556 fs/open.c error = security_path_chmod(path, mode); path 561 fs/open.c error = notify_change(path->dentry, &newattrs, &delegated_inode); path 569 fs/open.c mnt_drop_write(path->mnt); path 593 fs/open.c struct path path; path 597 fs/open.c error = user_path_at(dfd, filename, lookup_flags, &path); path 599 fs/open.c error = chmod_common(&path, mode); path 600 fs/open.c path_put(&path); path 620 fs/open.c static int chown_common(const struct path *path, uid_t user, gid_t group) path 622 fs/open.c struct inode *inode = path->dentry->d_inode; path 650 fs/open.c error = security_path_chown(path, uid, gid); path 652 fs/open.c error = notify_change(path->dentry, &newattrs, &delegated_inode); path 665 fs/open.c struct path path; path 676 fs/open.c error = user_path_at(dfd, filename, lookup_flags, &path); path 679 fs/open.c error = mnt_want_write(path.mnt); path 682 fs/open.c error = chown_common(&path, user, group); path 683 fs/open.c mnt_drop_write(path.mnt); path 685 fs/open.c path_put(&path); path 908 fs/open.c int vfs_open(const struct path *path, struct file *file) path 910 fs/open.c file->f_path = *path; path 911 fs/open.c return do_dentry_open(file, d_backing_inode(path->dentry), NULL); path 914 fs/open.c struct file *dentry_open(const struct path *path, int flags, path 923 fs/open.c BUG_ON(!path->mnt); path 927 fs/open.c error = vfs_open(path, f); path 937 fs/open.c struct file *open_with_fake_path(const struct path *path, int flags, path 944 fs/open.c f->f_path = *path; path 940 fs/orangefs/inode.c int orangefs_getattr(const struct path *path, struct kstat *stat, path 944 fs/orangefs/inode.c struct inode *inode = path->dentry->d_inode; path 948 fs/orangefs/inode.c path->dentry, request_mask); path 368 fs/orangefs/orangefs-kernel.h int orangefs_getattr(const struct path *path, struct kstat *stat, path 119 fs/overlayfs/copy_up.c static int ovl_copy_up_data(struct path *old, struct path *new, loff_t len) path 388 fs/overlayfs/copy_up.c struct path lowerpath; path 448 fs/overlayfs/copy_up.c struct path upperpath, datapath; path 740 fs/overlayfs/copy_up.c struct path upperpath, datapath; path 792 fs/overlayfs/copy_up.c struct path parentpath; path 337 fs/overlayfs/dir.c struct path upperpath; path 141 fs/overlayfs/inode.c int ovl_getattr(const struct path *path, struct kstat *stat, path 144 fs/overlayfs/inode.c struct dentry *dentry = path->dentry; path 146 fs/overlayfs/inode.c struct path realpath; path 450 fs/overlayfs/inode.c struct path upperpath = { path 774 fs/overlayfs/namei.c int ovl_path_next(int idx, struct dentry *dentry, struct path *path) path 780 fs/overlayfs/namei.c ovl_path_upper(dentry, path); path 781 fs/overlayfs/namei.c if (path->dentry) path 786 fs/overlayfs/namei.c path->dentry = oe->lowerstack[idx - 1].dentry; path 787 fs/overlayfs/namei.c path->mnt = oe->lowerstack[idx - 1].layer->mnt; path 217 fs/overlayfs/overlayfs.h void ovl_path_upper(struct dentry *dentry, struct path *path); path 218 fs/overlayfs/overlayfs.h void ovl_path_lower(struct dentry *dentry, struct path *path); path 219 fs/overlayfs/overlayfs.h void ovl_path_lowerdata(struct dentry *dentry, struct path *path); path 220 fs/overlayfs/overlayfs.h enum ovl_path_type ovl_path_real(struct dentry *dentry, struct path *path); path 255 fs/overlayfs/overlayfs.h struct file *ovl_path_open(struct path *path, int flags); path 318 fs/overlayfs/overlayfs.h int ovl_path_next(int idx, struct dentry *dentry, struct path *path); path 341 fs/overlayfs/overlayfs.h int ovl_check_d_type_supported(struct path *realpath); path 353 fs/overlayfs/overlayfs.h int ovl_getattr(const struct path *path, struct kstat *stat, path 294 fs/overlayfs/readdir.c static inline int ovl_dir_read(struct path *realpath, path 359 fs/overlayfs/readdir.c struct path realpath; path 462 fs/overlayfs/readdir.c static int ovl_cache_update_ino(struct path *path, struct ovl_cache_entry *p) path 465 fs/overlayfs/readdir.c struct dentry *dir = path->dentry; path 500 fs/overlayfs/readdir.c struct path statpath = *path; path 551 fs/overlayfs/readdir.c static int ovl_dir_read_impure(struct path *path, struct list_head *list, path 555 fs/overlayfs/readdir.c struct path realpath; path 565 fs/overlayfs/readdir.c ovl_path_upper(path->dentry, &realpath); path 574 fs/overlayfs/readdir.c err = ovl_cache_update_ino(path, p); path 596 fs/overlayfs/readdir.c static struct ovl_dir_cache *ovl_cache_get_impure(struct path *path) path 599 fs/overlayfs/readdir.c struct dentry *dentry = path->dentry; path 614 fs/overlayfs/readdir.c res = ovl_dir_read_impure(path, &cache->entries, &cache->root); path 706 fs/overlayfs/readdir.c struct path statpath = file->f_path; path 842 fs/overlayfs/readdir.c struct path upperpath; path 886 fs/overlayfs/readdir.c struct path realpath; path 1007 fs/overlayfs/readdir.c int ovl_check_d_type_supported(struct path *realpath) path 1022 fs/overlayfs/readdir.c static void ovl_workdir_cleanup_recurse(struct path *path, int level) path 1025 fs/overlayfs/readdir.c struct inode *dir = path->dentry->d_inode; path 1037 fs/overlayfs/readdir.c err = ovl_dir_read(path, &rdd); path 1051 fs/overlayfs/readdir.c dentry = lookup_one_len(p->name, path->dentry, p->len); path 1055 fs/overlayfs/readdir.c ovl_workdir_cleanup(dir, path->mnt, dentry, level); path 1075 fs/overlayfs/readdir.c struct path path = { .mnt = mnt, .dentry = dentry }; path 1078 fs/overlayfs/readdir.c ovl_workdir_cleanup_recurse(&path, level + 1); path 1090 fs/overlayfs/readdir.c struct path path = { .mnt = ofs->upper_mnt, .dentry = indexdir }; path 1102 fs/overlayfs/readdir.c err = ovl_dir_read(&path, &rdd); path 294 fs/overlayfs/super.c struct path path; path 297 fs/overlayfs/super.c ovl_path_real(root_dentry, &path); path 299 fs/overlayfs/super.c err = vfs_statfs(&path, buf); path 714 fs/overlayfs/super.c static int ovl_mount_dir_noesc(const char *name, struct path *path) path 722 fs/overlayfs/super.c err = kern_path(name, LOOKUP_FOLLOW, path); path 728 fs/overlayfs/super.c if (ovl_dentry_weird(path->dentry)) { path 732 fs/overlayfs/super.c if (!d_is_dir(path->dentry)) { path 739 fs/overlayfs/super.c path_put_init(path); path 744 fs/overlayfs/super.c static int ovl_mount_dir(const char *name, struct path *path) path 751 fs/overlayfs/super.c err = ovl_mount_dir_noesc(tmp, path); path 754 fs/overlayfs/super.c if (ovl_dentry_remote(path->dentry)) { path 757 fs/overlayfs/super.c path_put_init(path); path 765 fs/overlayfs/super.c static int ovl_check_namelen(struct path *path, struct ovl_fs *ofs, path 769 fs/overlayfs/super.c int err = vfs_statfs(path, &statfs); path 779 fs/overlayfs/super.c static int ovl_lower_dir(const char *name, struct path *path, path 785 fs/overlayfs/super.c err = ovl_mount_dir_noesc(name, path); path 789 fs/overlayfs/super.c err = ovl_check_namelen(path, ofs, name); path 793 fs/overlayfs/super.c *stack_depth = max(*stack_depth, path->mnt->mnt_sb->s_stack_depth); path 795 fs/overlayfs/super.c if (ovl_dentry_remote(path->dentry)) path 802 fs/overlayfs/super.c fh_type = ovl_can_decode_fh(path->dentry->d_sb); path 818 fs/overlayfs/super.c path_put_init(path); path 1027 fs/overlayfs/super.c struct path *upperpath) path 1077 fs/overlayfs/super.c struct path *workpath) path 1157 fs/overlayfs/super.c struct path *upperpath) path 1160 fs/overlayfs/super.c struct path workpath = { }; path 1200 fs/overlayfs/super.c struct ovl_entry *oe, struct path *upperpath) path 1278 fs/overlayfs/super.c static int ovl_get_fsid(struct ovl_fs *ofs, const struct path *path) path 1280 fs/overlayfs/super.c struct super_block *sb = path->mnt->mnt_sb; path 1303 fs/overlayfs/super.c path->dentry); path 1322 fs/overlayfs/super.c struct path *stack, unsigned int numlower) path 1418 fs/overlayfs/super.c struct path *stack = NULL; path 1444 fs/overlayfs/super.c stack = kcalloc(stacklen, sizeof(struct path), GFP_KERNEL); path 1571 fs/overlayfs/super.c struct path upperpath = { }; path 145 fs/overlayfs/util.c void ovl_path_upper(struct dentry *dentry, struct path *path) path 149 fs/overlayfs/util.c path->mnt = ofs->upper_mnt; path 150 fs/overlayfs/util.c path->dentry = ovl_dentry_upper(dentry); path 153 fs/overlayfs/util.c void ovl_path_lower(struct dentry *dentry, struct path *path) path 158 fs/overlayfs/util.c path->mnt = oe->lowerstack[0].layer->mnt; path 159 fs/overlayfs/util.c path->dentry = oe->lowerstack[0].dentry; path 161 fs/overlayfs/util.c *path = (struct path) { }; path 165 fs/overlayfs/util.c void ovl_path_lowerdata(struct dentry *dentry, struct path *path) path 170 fs/overlayfs/util.c path->mnt = oe->lowerstack[oe->numlower - 1].layer->mnt; path 171 fs/overlayfs/util.c path->dentry = oe->lowerstack[oe->numlower - 1].dentry; path 173 fs/overlayfs/util.c *path = (struct path) { }; path 177 fs/overlayfs/util.c enum ovl_path_type ovl_path_real(struct dentry *dentry, struct path *path) path 182 fs/overlayfs/util.c ovl_path_lower(dentry, path); path 184 fs/overlayfs/util.c ovl_path_upper(dentry, path); path 476 fs/overlayfs/util.c struct file *ovl_path_open(struct path *path, int flags) path 478 fs/overlayfs/util.c return dentry_open(path, flags | O_NOATIME, current_cred()); path 39 fs/pnode.c const struct path *root) path 60 fs/pnode.c int get_dominating_id(struct mount *mnt, const struct path *root) path 46 fs/pnode.h int get_dominating_id(struct mount *mnt, const struct path *root); path 54 fs/pnode.h const struct path *root); path 170 fs/proc/base.c static int get_task_root(struct task_struct *task, struct path *root) path 183 fs/proc/base.c static int proc_cwd_link(struct dentry *dentry, struct path *path) path 191 fs/proc/base.c get_fs_pwd(task->fs, path); path 200 fs/proc/base.c static int proc_root_link(struct dentry *dentry, struct path *path) path 206 fs/proc/base.c result = get_task_root(task, path); path 1592 fs/proc/base.c static int proc_exe_link(struct dentry *dentry, struct path *exe_path) path 1615 fs/proc/base.c struct path path; path 1625 fs/proc/base.c error = PROC_I(inode)->op.proc_get_link(dentry, &path); path 1629 fs/proc/base.c nd_jump_link(&path); path 1635 fs/proc/base.c static int do_proc_readlink(struct path *path, char __user *buffer, int buflen) path 1644 fs/proc/base.c pathname = d_path(path, tmp, PAGE_SIZE); path 1663 fs/proc/base.c struct path path; path 1669 fs/proc/base.c error = PROC_I(inode)->op.proc_get_link(dentry, &path); path 1673 fs/proc/base.c error = do_proc_readlink(&path, buffer, buflen); path 1674 fs/proc/base.c path_put(&path); path 1783 fs/proc/base.c int pid_getattr(const struct path *path, struct kstat *stat, path 1786 fs/proc/base.c struct inode *inode = d_inode(path->dentry); path 2011 fs/proc/base.c static int map_files_get_link(struct dentry *dentry, struct path *path) path 2040 fs/proc/base.c *path = vma->vm_file->f_path; path 2041 fs/proc/base.c path_get(path); path 3688 fs/proc/base.c static int proc_task_getattr(const struct path *path, struct kstat *stat, path 3691 fs/proc/base.c struct inode *inode = d_inode(path->dentry); path 147 fs/proc/fd.c static int proc_fd_link(struct dentry *dentry, struct path *path) path 166 fs/proc/fd.c *path = fd_file->f_path; path 136 fs/proc/generic.c static int proc_getattr(const struct path *path, struct kstat *stat, path 139 fs/proc/generic.c struct inode *inode = d_inode(path->dentry); path 77 fs/proc/internal.h int (*proc_get_link)(struct dentry *, struct path *); path 156 fs/proc/internal.h extern int pid_getattr(const struct path *, struct kstat *, u32, unsigned int); path 44 fs/proc/namespaces.c struct path ns_path; path 289 fs/proc/proc_net.c static int proc_tgid_net_getattr(const struct path *path, struct kstat *stat, path 292 fs/proc/proc_net.c struct inode *inode = d_inode(path->dentry); path 852 fs/proc/proc_sysctl.c static int proc_sys_getattr(const struct path *path, struct kstat *stat, path 855 fs/proc/proc_sysctl.c struct inode *inode = d_inode(path->dentry); path 1099 fs/proc/proc_sysctl.c static int sysctl_err(const char *path, struct ctl_table *table, char *fmt, ...) path 1109 fs/proc/proc_sysctl.c path, table->procname, &vaf); path 1115 fs/proc/proc_sysctl.c static int sysctl_check_table_array(const char *path, struct ctl_table *table) path 1122 fs/proc/proc_sysctl.c err |= sysctl_err(path, table, "array not allowed"); path 1128 fs/proc/proc_sysctl.c static int sysctl_check_table(const char *path, struct ctl_table *table) path 1133 fs/proc/proc_sysctl.c err |= sysctl_err(path, table, "Not a file"); path 1146 fs/proc/proc_sysctl.c err |= sysctl_err(path, table, "No data"); path 1148 fs/proc/proc_sysctl.c err |= sysctl_err(path, table, "No maxlen"); path 1150 fs/proc/proc_sysctl.c err |= sysctl_check_table_array(path, table); path 1153 fs/proc/proc_sysctl.c err |= sysctl_err(path, table, "No proc_handler"); path 1156 fs/proc/proc_sysctl.c err |= sysctl_err(path, table, "bogus .mode 0%o", path 1318 fs/proc/proc_sysctl.c const char *path, struct ctl_table *table) path 1338 fs/proc/proc_sysctl.c if (sysctl_check_table(path, table)) path 1348 fs/proc/proc_sysctl.c for (name = path; name; name = nextname) { path 1393 fs/proc/proc_sysctl.c struct ctl_table_header *register_sysctl(const char *path, struct ctl_table *table) path 1396 fs/proc/proc_sysctl.c path, table); path 1400 fs/proc/proc_sysctl.c static char *append_path(const char *path, char *pos, const char *name) path 1404 fs/proc/proc_sysctl.c if (((pos - path) + namelen + 2) >= PATH_MAX) path 1432 fs/proc/proc_sysctl.c static int register_leaf_sysctl_tables(const char *path, char *pos, path 1470 fs/proc/proc_sysctl.c header = __register_sysctl_table(set, path, files); path 1490 fs/proc/proc_sysctl.c child_pos = append_path(path, pos, entry->procname); path 1494 fs/proc/proc_sysctl.c err = register_leaf_sysctl_tables(path, child_pos, subheader, path 1519 fs/proc/proc_sysctl.c const struct ctl_path *path, struct ctl_table *table) path 1532 fs/proc/proc_sysctl.c for (component = path; component->procname; component++) { path 1588 fs/proc/proc_sysctl.c struct ctl_table_header *register_sysctl_paths(const struct ctl_path *path, path 1592 fs/proc/proc_sysctl.c path, table); path 238 fs/proc/root.c static int proc_root_getattr(const struct path *path, struct kstat *stat, path 241 fs/proc/root.c generic_fillattr(d_inode(path->dentry), stat); path 101 fs/proc_namespace.c struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt }; path 136 fs/proc_namespace.c struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt }; path 197 fs/proc_namespace.c struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt }; path 244 fs/proc_namespace.c struct path root; path 2451 fs/quota/dquot.c const struct path *path) path 2453 fs/quota/dquot.c int error = security_quota_on(path->dentry); path 2457 fs/quota/dquot.c if (path->dentry->d_sb != sb) path 2460 fs/quota/dquot.c error = vfs_load_quota_inode(d_inode(path->dentry), type, path 85 fs/quota/quota.c const struct path *path) path 91 fs/quota/quota.c if (IS_ERR(path)) path 92 fs/quota/quota.c return PTR_ERR(path); path 93 fs/quota/quota.c return sb->s_qcop->quota_on(sb, type, id, path); path 685 fs/quota/quota.c void __user *addr, const struct path *path) path 707 fs/quota/quota.c return quota_quotaon(sb, type, id, path); path 828 fs/quota/quota.c struct path path, *pathp = NULL; path 851 fs/quota/quota.c ret = user_path_at(AT_FDCWD, addr, LOOKUP_FOLLOW|LOOKUP_AUTOMOUNT, &path); path 855 fs/quota/quota.c pathp = &path; path 856 fs/reiserfs/bitmap.c struct treepath *path; path 867 fs/reiserfs/bitmap.c if (!hint->path) path 870 fs/reiserfs/bitmap.c path = hint->path; path 871 fs/reiserfs/bitmap.c bh = get_last_bh(path); path 873 fs/reiserfs/bitmap.c ih = tp_item_head(path); path 874 fs/reiserfs/bitmap.c pos_in_item = path->pos_in_item; path 875 fs/reiserfs/bitmap.c item = tp_item_body(path); path 1030 fs/reiserfs/fix_node.c struct treepath *path = tb->tb_path; path 1035 fs/reiserfs/fix_node.c path_offset = PATH_H_PATH_OFFSET(path, h); path 1053 fs/reiserfs/fix_node.c (parent = PATH_OFFSET_PBUFFER(path, counter - 1))) path 1058 fs/reiserfs/fix_node.c PATH_OFFSET_POSITION(path, path 1068 fs/reiserfs/fix_node.c PATH_OFFSET_PBUFFER(path, counter)->b_blocknr) path 1174 fs/reiserfs/fix_node.c struct treepath *path = tb->tb_path; path 1199 fs/reiserfs/fix_node.c position = PATH_OFFSET_POSITION(path, path_offset - 1); path 1202 fs/reiserfs/fix_node.c curf = PATH_OFFSET_PBUFFER(path, path_offset - 1); path 1203 fs/reiserfs/fix_node.c curcf = PATH_OFFSET_PBUFFER(path, path_offset - 1); path 1234 fs/reiserfs/fix_node.c if (position == B_NR_ITEMS(PATH_H_PBUFFER(path, h + 1))) { path 1247 fs/reiserfs/fix_node.c curf = PATH_OFFSET_PBUFFER(path, path_offset - 1); path 1248 fs/reiserfs/fix_node.c curcf = PATH_OFFSET_PBUFFER(path, path_offset - 1); path 2093 fs/reiserfs/fix_node.c struct treepath *path = tb->tb_path; path 2103 fs/reiserfs/fix_node.c if (PATH_OFFSET_PBUFFER(path, FIRST_PATH_ELEMENT_OFFSET)-> path 2106 fs/reiserfs/fix_node.c PATH_OFFSET_PBUFFER(path, path_offset - 1) = NULL; path 2107 fs/reiserfs/fix_node.c PATH_OFFSET_POSITION(path, path_offset - 1) = 0; path 2116 fs/reiserfs/fix_node.c (bh = PATH_OFFSET_PBUFFER(path, path_offset - 1))) path 2120 fs/reiserfs/fix_node.c PATH_OFFSET_POSITION(path, path 2126 fs/reiserfs/fix_node.c PATH_OFFSET_PBUFFER(path, path_offset)->b_blocknr) path 253 fs/reiserfs/inode.c struct inode *inode, struct treepath *path) path 261 fs/reiserfs/inode.c pathrelse(path); path 288 fs/reiserfs/inode.c INITIALIZE_PATH(path); path 305 fs/reiserfs/inode.c result = search_for_position_by_key(inode->i_sb, &key, &path); path 307 fs/reiserfs/inode.c pathrelse(&path); path 324 fs/reiserfs/inode.c bh = get_last_bh(&path); path 325 fs/reiserfs/inode.c ih = tp_item_head(&path); path 334 fs/reiserfs/inode.c blocknr = get_block_num(ind_item, path.pos_in_item); path 338 fs/reiserfs/inode.c if (path.pos_in_item == path 354 fs/reiserfs/inode.c pathrelse(&path); path 365 fs/reiserfs/inode.c pathrelse(&path); path 414 fs/reiserfs/inode.c if ((le_ih_k_offset(ih) + path.pos_in_item) > inode->i_size) path 419 fs/reiserfs/inode.c path.pos_in_item; path 422 fs/reiserfs/inode.c chars = ih_item_len(ih) - path.pos_in_item; path 424 fs/reiserfs/inode.c memcpy(p, ih_item_body(bh, ih) + path.pos_in_item, chars); path 437 fs/reiserfs/inode.c if (PATH_LAST_POSITION(&path) != (B_NR_ITEMS(bh) - 1)) path 442 fs/reiserfs/inode.c result = search_for_position_by_key(inode->i_sb, &key, &path); path 446 fs/reiserfs/inode.c bh = get_last_bh(&path); path 447 fs/reiserfs/inode.c ih = tp_item_head(&path); path 454 fs/reiserfs/inode.c pathrelse(&path); path 643 fs/reiserfs/inode.c struct treepath *path, int flags) path 650 fs/reiserfs/inode.c path, block); path 653 fs/reiserfs/inode.c return reiserfs_new_unf_blocknrs(th, inode, allocated_block_nr, path, path 663 fs/reiserfs/inode.c INITIALIZE_PATH(path); path 741 fs/reiserfs/inode.c retval = search_for_position_by_key(inode->i_sb, &key, &path); path 747 fs/reiserfs/inode.c bh = get_last_bh(&path); path 748 fs/reiserfs/inode.c ih = tp_item_head(&path); path 749 fs/reiserfs/inode.c item = tp_item_body(&path); path 750 fs/reiserfs/inode.c pos_in_item = path.pos_in_item; path 759 fs/reiserfs/inode.c pathrelse(&path); path 765 fs/reiserfs/inode.c &path, create); path 774 fs/reiserfs/inode.c retval = restart_transaction(th, inode, &path); path 792 fs/reiserfs/inode.c && item_moved(&tmp_ih, &path)) { path 809 fs/reiserfs/inode.c && item_moved(&tmp_ih, &path)) { path 824 fs/reiserfs/inode.c pathrelse(&path); path 840 fs/reiserfs/inode.c pathrelse(&path); path 873 fs/reiserfs/inode.c PATH_LAST_POSITION(&path)++; path 876 fs/reiserfs/inode.c reiserfs_insert_item(th, &path, &tmp_key, &tmp_ih, path 913 fs/reiserfs/inode.c pathrelse(&path); path 957 fs/reiserfs/inode.c direct2indirect(th, inode, &path, unbh, path 1077 fs/reiserfs/inode.c reiserfs_paste_into_item(th, &path, &tmp_key, inode, path 1114 fs/reiserfs/inode.c retval = restart_transaction(th, inode, &path); path 1125 fs/reiserfs/inode.c retval = search_for_position_by_key(inode->i_sb, &key, &path); path 1137 fs/reiserfs/inode.c pathrelse(&path); path 1140 fs/reiserfs/inode.c bh = get_last_bh(&path); path 1141 fs/reiserfs/inode.c ih = tp_item_head(&path); path 1142 fs/reiserfs/inode.c item = tp_item_body(&path); path 1143 fs/reiserfs/inode.c pos_in_item = path.pos_in_item; path 1159 fs/reiserfs/inode.c reiserfs_check_path(&path); path 1239 fs/reiserfs/inode.c static void init_inode(struct inode *inode, struct treepath *path) path 1245 fs/reiserfs/inode.c bh = PATH_PLAST_BUFFER(path); path 1246 fs/reiserfs/inode.c ih = tp_item_head(path); path 1356 fs/reiserfs/inode.c pathrelse(path); path 1424 fs/reiserfs/inode.c static void update_stat_data(struct treepath *path, struct inode *inode, path 1430 fs/reiserfs/inode.c bh = PATH_PLAST_BUFFER(path); path 1431 fs/reiserfs/inode.c ih = tp_item_head(path); path 1451 fs/reiserfs/inode.c INITIALIZE_PATH(path); path 1465 fs/reiserfs/inode.c retval = search_item(inode->i_sb, &key, &path); path 1473 fs/reiserfs/inode.c pos = PATH_LAST_POSITION(&path); path 1474 fs/reiserfs/inode.c pathrelse(&path); path 1484 fs/reiserfs/inode.c reiserfs_check_path(&path); path 1493 fs/reiserfs/inode.c bh = get_last_bh(&path); path 1494 fs/reiserfs/inode.c ih = tp_item_head(&path); path 1501 fs/reiserfs/inode.c && item_moved(&tmp_ih, &path)) { path 1507 fs/reiserfs/inode.c update_stat_data(&path, inode, size); path 1509 fs/reiserfs/inode.c pathrelse(&path); path 1806 fs/reiserfs/inode.c struct item_head *ih, struct treepath *path, path 1845 fs/reiserfs/inode.c retval = search_item(sb, &key, path); path 1852 fs/reiserfs/inode.c pathrelse(path); path 1860 fs/reiserfs/inode.c return reiserfs_insert_item(th, path, &key, ih, inode, body); path 1870 fs/reiserfs/inode.c struct treepath *path, const char *symname, path 1888 fs/reiserfs/inode.c retval = search_item(sb, &key, path); path 1895 fs/reiserfs/inode.c pathrelse(path); path 1903 fs/reiserfs/inode.c return reiserfs_insert_item(th, path, &key, ih, inode, symname); path 2379 fs/reiserfs/inode.c INITIALIZE_PATH(path); path 2405 fs/reiserfs/inode.c retval = search_for_position_by_key(inode->i_sb, &key, &path); path 2411 fs/reiserfs/inode.c bh = get_last_bh(&path); path 2412 fs/reiserfs/inode.c ih = tp_item_head(&path); path 2413 fs/reiserfs/inode.c item = tp_item_body(&path); path 2414 fs/reiserfs/inode.c pos_in_item = path.pos_in_item; path 2446 fs/reiserfs/inode.c && item_moved(&tmp_ih, &path)) { path 2456 fs/reiserfs/inode.c && item_moved(&tmp_ih, &path)) { path 2485 fs/reiserfs/inode.c pathrelse(&path); path 61 fs/reiserfs/namei.c struct treepath *path) path 63 fs/reiserfs/namei.c de->de_bh = get_last_bh(path); path 64 fs/reiserfs/namei.c de->de_ih = tp_item_head(path); path 66 fs/reiserfs/namei.c de->de_item_num = PATH_LAST_POSITION(path); path 121 fs/reiserfs/namei.c struct treepath *path, struct reiserfs_dir_entry *de) path 125 fs/reiserfs/namei.c retval = search_item(sb, key, path); path 128 fs/reiserfs/namei.c if (!PATH_LAST_POSITION(path)) { path 131 fs/reiserfs/namei.c pathrelse(path); path 134 fs/reiserfs/namei.c PATH_LAST_POSITION(path)--; path 143 fs/reiserfs/namei.c pathrelse(path); path 148 fs/reiserfs/namei.c set_de_item_location(de, path); path 165 fs/reiserfs/namei.c path->pos_in_item = de->de_entry_num; path 438 fs/reiserfs/namei.c INITIALIZE_PATH(path); path 510 fs/reiserfs/namei.c retval = reiserfs_find_entry(dir, name, namelen, &path, &de); path 514 fs/reiserfs/namei.c pathrelse(&path); path 539 fs/reiserfs/namei.c pathrelse(&path); path 551 fs/reiserfs/namei.c if (search_by_entry_key(dir->i_sb, &entry_key, &path, &de) != path 559 fs/reiserfs/namei.c pathrelse(&path); path 566 fs/reiserfs/namei.c reiserfs_paste_into_item(th, &path, &entry_key, dir, buffer, path 571 fs/reiserfs/namei.c reiserfs_check_path(&path); path 581 fs/reiserfs/namei.c reiserfs_check_path(&path); path 903 fs/reiserfs/namei.c INITIALIZE_PATH(path); path 928 fs/reiserfs/namei.c &path, &de)) == NAME_NOT_FOUND) { path 954 fs/reiserfs/namei.c retval = reiserfs_cut_from_item(&th, &path, &de.de_entry_key, path 977 fs/reiserfs/namei.c reiserfs_check_path(&path); path 988 fs/reiserfs/namei.c pathrelse(&path); path 999 fs/reiserfs/namei.c INITIALIZE_PATH(path); path 1029 fs/reiserfs/namei.c &path, &de)) == NAME_NOT_FOUND) { path 1064 fs/reiserfs/namei.c reiserfs_cut_from_item(&th, &path, &de.de_entry_key, dir, NULL, path 1082 fs/reiserfs/namei.c reiserfs_check_path(&path); path 1087 fs/reiserfs/namei.c pathrelse(&path); path 1089 fs/reiserfs/namei.c reiserfs_check_path(&path); path 2141 fs/reiserfs/reiserfs.h #define pos_in_item(path) ((path)->pos_in_item) path 2147 fs/reiserfs/reiserfs.h #define PATH_OFFSET_PELEMENT(path, n_offset) ((path)->path_elements + (n_offset)) path 2150 fs/reiserfs/reiserfs.h #define PATH_OFFSET_PBUFFER(path, n_offset) (PATH_OFFSET_PELEMENT(path, n_offset)->pe_buffer) path 2153 fs/reiserfs/reiserfs.h #define PATH_OFFSET_POSITION(path, n_offset) (PATH_OFFSET_PELEMENT(path, n_offset)->pe_position) path 2155 fs/reiserfs/reiserfs.h #define PATH_PLAST_BUFFER(path) (PATH_OFFSET_PBUFFER((path), (path)->path_length)) path 2162 fs/reiserfs/reiserfs.h #define PATH_LAST_POSITION(path) (PATH_OFFSET_POSITION((path), (path)->path_length)) path 2170 fs/reiserfs/reiserfs.h #define PATH_H_PBUFFER(path, h) \ path 2171 fs/reiserfs/reiserfs.h PATH_OFFSET_PBUFFER(path, path->path_length - (h)) path 2174 fs/reiserfs/reiserfs.h #define PATH_H_PPARENT(path, h) PATH_H_PBUFFER(path, (h) + 1) path 2176 fs/reiserfs/reiserfs.h #define PATH_H_POSITION(path, h) \ path 2177 fs/reiserfs/reiserfs.h PATH_OFFSET_POSITION(path, path->path_length - (h)) path 2180 fs/reiserfs/reiserfs.h #define PATH_H_B_ITEM_ORDER(path, h) PATH_H_POSITION(path, h + 1) path 2182 fs/reiserfs/reiserfs.h #define PATH_H_PATH_OFFSET(path, n_h) ((path)->path_length - (n_h)) path 2226 fs/reiserfs/reiserfs.h static inline struct item_head *tp_item_head(const struct treepath *path) path 2228 fs/reiserfs/reiserfs.h return item_head(PATH_PLAST_BUFFER(path), PATH_LAST_POSITION(path)); path 2231 fs/reiserfs/reiserfs.h static inline void *tp_item_body(const struct treepath *path) path 2233 fs/reiserfs/reiserfs.h return item_body(PATH_PLAST_BUFFER(path), PATH_LAST_POSITION(path)); path 2236 fs/reiserfs/reiserfs.h #define get_last_bh(path) PATH_PLAST_BUFFER(path) path 2237 fs/reiserfs/reiserfs.h #define get_item_pos(path) PATH_LAST_POSITION(path) path 2238 fs/reiserfs/reiserfs.h #define item_moved(ih,path) comp_items(ih, path) path 2239 fs/reiserfs/reiserfs.h #define path_changed(ih,path) comp_items (ih, path) path 3001 fs/reiserfs/reiserfs.h int comp_items(const struct item_head *stored_ih, const struct treepath *path); path 3006 fs/reiserfs/reiserfs.h #define search_item(s,key,path) search_by_key (s, key, path, DISK_LEAF_NODE_LEVEL) path 3017 fs/reiserfs/reiserfs.h struct treepath *path, path 3023 fs/reiserfs/reiserfs.h struct treepath *path, path 3029 fs/reiserfs/reiserfs.h struct treepath *path, path 3035 fs/reiserfs/reiserfs.h struct treepath *path, path 3112 fs/reiserfs/reiserfs.h struct treepath *path, struct reiserfs_dir_entry *de); path 3277 fs/reiserfs/reiserfs.h struct treepath *path; path 3336 fs/reiserfs/reiserfs.h .path = tb->tb_path, path 3349 fs/reiserfs/reiserfs.h struct treepath *path, path 3354 fs/reiserfs/reiserfs.h .path = path, path 3367 fs/reiserfs/reiserfs.h struct treepath *path, path 3372 fs/reiserfs/reiserfs.h .path = path, path 903 fs/reiserfs/stree.c int comp_items(const struct item_head *stored_ih, const struct treepath *path) path 905 fs/reiserfs/stree.c struct buffer_head *bh = PATH_PLAST_BUFFER(path); path 913 fs/reiserfs/stree.c if (PATH_LAST_POSITION(path) >= B_NR_ITEMS(bh)) path 917 fs/reiserfs/stree.c ih = tp_item_head(path); path 928 fs/reiserfs/stree.c static inline int prepare_for_direct_item(struct treepath *path, path 949 fs/reiserfs/stree.c pos_in_item(path) = round_len - (le_ih_k_offset(le_ih) - 1); path 950 fs/reiserfs/stree.c *cut_size = -(ih_item_len(le_ih) - pos_in_item(path)); path 964 fs/reiserfs/stree.c (pos_in_item(path) = path 969 fs/reiserfs/stree.c static inline int prepare_for_direntry_item(struct treepath *path, path 996 fs/reiserfs/stree.c entry_length(get_last_bh(path), le_ih, pos_in_item(path))); path 1015 fs/reiserfs/stree.c struct treepath *path, path 1029 fs/reiserfs/stree.c struct item_head *p_le_ih = tp_item_head(path); path 1030 fs/reiserfs/stree.c struct buffer_head *bh = PATH_PLAST_BUFFER(path); path 1046 fs/reiserfs/stree.c return prepare_for_direntry_item(path, p_le_ih, inode, path 1052 fs/reiserfs/stree.c return prepare_for_direct_item(path, p_le_ih, inode, path 1076 fs/reiserfs/stree.c bh = PATH_PLAST_BUFFER(path); path 1077 fs/reiserfs/stree.c copy_item_head(&s_ih, tp_item_head(path)); path 1106 fs/reiserfs/stree.c if (item_moved (&s_ih, path)) { path 1128 fs/reiserfs/stree.c search_for_position_by_key(sb, item_key, path) == POSITION_FOUND); path 1129 fs/reiserfs/stree.c pos_in_item(path) = pos * UNFM_P_SIZE; path 1172 fs/reiserfs/stree.c struct treepath *path, int size) path 1180 fs/reiserfs/stree.c tb->tb_path = path; path 1181 fs/reiserfs/stree.c PATH_OFFSET_PBUFFER(path, ILLEGAL_PATH_ELEMENT_OFFSET) = NULL; path 1182 fs/reiserfs/stree.c PATH_OFFSET_POSITION(path, ILLEGAL_PATH_ELEMENT_OFFSET) = 0; path 1231 fs/reiserfs/stree.c struct treepath *path, const struct cpu_key *item_key, path 1249 fs/reiserfs/stree.c init_tb_struct(th, &s_del_balance, sb, path, path 1259 fs/reiserfs/stree.c prepare_for_delete_or_cut(th, inode, path, path 1266 fs/reiserfs/stree.c copy_item_head(&s_ih, tp_item_head(path)); path 1277 fs/reiserfs/stree.c search_for_position_by_key(sb, item_key, path); path 1295 fs/reiserfs/stree.c q_ih = tp_item_head(path); path 1344 fs/reiserfs/stree.c ih_item_body(PATH_PLAST_BUFFER(path), &s_ih), path 1388 fs/reiserfs/stree.c INITIALIZE_PATH(path); path 1400 fs/reiserfs/stree.c retval = search_item(th->t_super, &cpu_key, &path); path 1408 fs/reiserfs/stree.c pathrelse(&path); path 1428 fs/reiserfs/stree.c item_len = ih_item_len(tp_item_head(&path)); path 1429 fs/reiserfs/stree.c init_tb_struct(th, &tb, th->t_super, &path, path 1432 fs/reiserfs/stree.c quota_cut_bytes = ih_item_len(tp_item_head(&path)); path 1470 fs/reiserfs/stree.c reiserfs_check_path(&path); path 1539 fs/reiserfs/stree.c struct treepath *path, path 1561 fs/reiserfs/stree.c pathrelse(path); path 1566 fs/reiserfs/stree.c return indirect2direct(th, inode, page, path, item_key, path 1577 fs/reiserfs/stree.c struct inode *inode, struct treepath *path) path 1591 fs/reiserfs/stree.c if (search_for_position_by_key(inode->i_sb, &tail_key, path) == path 1595 fs/reiserfs/stree.c RFALSE(path->pos_in_item != path 1596 fs/reiserfs/stree.c ih_item_len(tp_item_head(path)) - 1, path 1598 fs/reiserfs/stree.c PATH_LAST_POSITION(path)--; path 1601 fs/reiserfs/stree.c reiserfs_delete_item(th, path, &tail_key, inode, path 1619 fs/reiserfs/stree.c struct treepath *path, path 1645 fs/reiserfs/stree.c init_tb_struct(th, &s_cut_balance, inode->i_sb, path, path 1661 fs/reiserfs/stree.c prepare_for_delete_or_cut(th, inode, path, path 1674 fs/reiserfs/stree.c path, item_key, path 1704 fs/reiserfs/stree.c path) == POSITION_NOT_FOUND) { path 1705 fs/reiserfs/stree.c print_block(PATH_PLAST_BUFFER(path), 3, path 1706 fs/reiserfs/stree.c PATH_LAST_POSITION(path) - 1, path 1707 fs/reiserfs/stree.c PATH_LAST_POSITION(path) + 1); path 1715 fs/reiserfs/stree.c pathrelse(path); path 1728 fs/reiserfs/stree.c search_for_position_by_key(sb, item_key, path); path 1745 fs/reiserfs/stree.c indirect_to_direct_roll_back(th, inode, path); path 1761 fs/reiserfs/stree.c M_DELETE) ? ih_item_len(tp_item_head(path)) : -s_cut_balance. path 2024 fs/reiserfs/stree.c static void check_research_for_paste(struct treepath *path, path 2027 fs/reiserfs/stree.c struct item_head *found_ih = tp_item_head(path); path 2032 fs/reiserfs/stree.c get_last_bh(path)->b_size) != path 2035 fs/reiserfs/stree.c get_last_bh(path)->b_size) != path 2036 fs/reiserfs/stree.c pos_in_item(path)) path 2040 fs/reiserfs/stree.c pos_in_item(path), key); path 2045 fs/reiserfs/stree.c get_last_bh(path)->b_size) != path 2047 fs/reiserfs/stree.c || I_UNFM_NUM(found_ih) != pos_in_item(path) path 2052 fs/reiserfs/stree.c found_ih, pos_in_item(path), key); path 2165 fs/reiserfs/stree.c struct treepath *path, const struct cpu_key *key, path 2201 fs/reiserfs/stree.c pathrelse(path); path 2205 fs/reiserfs/stree.c init_tb_struct(th, &s_ins_balance, th->t_super, path, path 2224 fs/reiserfs/stree.c retval = search_item(th->t_super, key, path); path 227 fs/reiserfs/super.c INITIALIZE_PATH(path); path 286 fs/reiserfs/super.c retval = search_item(s, &max_cpu_key, &path); path 293 fs/reiserfs/super.c bh = get_last_bh(&path); path 294 fs/reiserfs/super.c item_pos = get_item_pos(&path); path 321 fs/reiserfs/super.c pathrelse(&path); path 416 fs/reiserfs/super.c pathrelse(&path); path 432 fs/reiserfs/super.c INITIALIZE_PATH(path); path 480 fs/reiserfs/super.c retval = search_item(inode->i_sb, &key, &path); path 486 fs/reiserfs/super.c pathrelse(&path); path 495 fs/reiserfs/super.c reiserfs_insert_item(th, &path, &key, &ih, NULL, (char *)&link); path 839 fs/reiserfs/super.c static int reiserfs_quota_on(struct super_block *, int, int, const struct path *); path 1735 fs/reiserfs/super.c INITIALIZE_PATH(path); path 1744 fs/reiserfs/super.c retval = search_by_entry_key(s, &key, &path, &de); path 1746 fs/reiserfs/super.c pathrelse(&path); path 1791 fs/reiserfs/super.c pathrelse(&path); path 2387 fs/reiserfs/super.c const struct path *path) path 2401 fs/reiserfs/super.c if (path->dentry->d_sb != sb) { path 2405 fs/reiserfs/super.c inode = d_inode(path->dentry); path 2424 fs/reiserfs/super.c if (path->dentry->d_parent != sb->s_root) path 2444 fs/reiserfs/super.c err = dquot_quota_on(sb, type, format_id, path); path 26 fs/reiserfs/tail_conversion.c struct treepath *path, struct buffer_head *unbh, path 31 fs/reiserfs/tail_conversion.c struct item_head *p_le_ih = tp_item_head(path); path 66 fs/reiserfs/tail_conversion.c if (search_for_position_by_key(sb, &end_key, path) == POSITION_FOUND) { path 70 fs/reiserfs/tail_conversion.c pathrelse(path); path 74 fs/reiserfs/tail_conversion.c p_le_ih = tp_item_head(path); path 82 fs/reiserfs/tail_conversion.c PATH_LAST_POSITION(path)++; path 84 fs/reiserfs/tail_conversion.c reiserfs_insert_item(th, path, &end_key, &ind_ih, inode, path 88 fs/reiserfs/tail_conversion.c retval = reiserfs_paste_into_item(th, path, &end_key, inode, path 115 fs/reiserfs/tail_conversion.c if (search_for_position_by_key(sb, &end_key, path) == path 119 fs/reiserfs/tail_conversion.c p_le_ih = tp_item_head(path); path 139 fs/reiserfs/tail_conversion.c retval = reiserfs_delete_item(th, path, &end_key, inode, path 204 fs/reiserfs/tail_conversion.c struct treepath *path, /* path to the indirect item. */ path 226 fs/reiserfs/tail_conversion.c copy_item_head(&s_ih, tp_item_head(path)); path 247 fs/reiserfs/tail_conversion.c if (path_changed(&s_ih, path)) { path 249 fs/reiserfs/tail_conversion.c if (search_for_position_by_key(sb, item_key, path) path 254 fs/reiserfs/tail_conversion.c copy_item_head(&s_ih, tp_item_head(path)); path 277 fs/reiserfs/tail_conversion.c PATH_LAST_POSITION(path)++; path 283 fs/reiserfs/tail_conversion.c if (reiserfs_insert_item(th, path, &key, &s_ih, inode, path 464 fs/seq_file.c int seq_path(struct seq_file *m, const struct path *path, const char *esc) path 471 fs/seq_file.c char *p = d_path(path, buf, size); path 501 fs/seq_file.c int seq_path_root(struct seq_file *m, const struct path *path, path 502 fs/seq_file.c const struct path *root, const char *esc) path 511 fs/seq_file.c p = __d_path(path, root, buf, size); path 64 fs/stat.c int vfs_getattr_nosec(const struct path *path, struct kstat *stat, path 67 fs/stat.c struct inode *inode = d_backing_inode(path->dentry); path 81 fs/stat.c return inode->i_op->getattr(path, stat, request_mask, path 110 fs/stat.c int vfs_getattr(const struct path *path, struct kstat *stat, path 115 fs/stat.c retval = security_inode_getattr(path); path 118 fs/stat.c return vfs_getattr_nosec(path, stat, request_mask, query_flags); path 171 fs/stat.c struct path path; path 187 fs/stat.c error = user_path_at(dfd, filename, lookup_flags, &path); path 191 fs/stat.c error = vfs_getattr(&path, stat, request_mask, flags); path 192 fs/stat.c path_put(&path); path 390 fs/stat.c struct path path; path 399 fs/stat.c error = user_path_at_empty(dfd, pathname, lookup_flags, &path, &empty); path 401 fs/stat.c struct inode *inode = d_backing_inode(path.dentry); path 407 fs/stat.c if (d_is_symlink(path.dentry) || inode->i_op->readlink) { path 408 fs/stat.c error = security_inode_readlink(path.dentry); path 410 fs/stat.c touch_atime(&path); path 411 fs/stat.c error = vfs_readlink(path.dentry, buf, bufsiz); path 414 fs/stat.c path_put(&path); path 429 fs/stat.c SYSCALL_DEFINE3(readlink, const char __user *, path, char __user *, buf, path 432 fs/stat.c return do_readlinkat(AT_FDCWD, path, buf, bufsiz); path 84 fs/statfs.c int vfs_statfs(const struct path *path, struct kstatfs *buf) path 88 fs/statfs.c error = statfs_by_dentry(path->dentry, buf); path 90 fs/statfs.c buf->f_flags = calculate_f_flags(path->mnt); path 97 fs/statfs.c struct path path; path 101 fs/statfs.c error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); path 103 fs/statfs.c error = vfs_statfs(&path, st); path 104 fs/statfs.c path_put(&path); path 444 fs/sysv/itree.c int sysv_getattr(const struct path *path, struct kstat *stat, path 447 fs/sysv/itree.c struct super_block *s = path->dentry->d_sb; path 448 fs/sysv/itree.c generic_fillattr(d_inode(path->dentry), stat); path 144 fs/sysv/sysv.h extern int sysv_getattr(const struct path *, struct kstat *, u32, unsigned int); path 1567 fs/ubifs/dir.c int ubifs_getattr(const struct path *path, struct kstat *stat, path 1571 fs/ubifs/dir.c struct inode *inode = d_inode(path->dentry); path 1951 fs/ubifs/lpt.c struct lpt_scan_node *path, path 1962 fs/ubifs/lpt.c path->in_tree = 1; path 1963 fs/ubifs/lpt.c path->ptr.nnode = nnode; path 1966 fs/ubifs/lpt.c nnode = &path->nnode; path 1967 fs/ubifs/lpt.c path->in_tree = 0; path 1968 fs/ubifs/lpt.c path->ptr.nnode = nnode; path 2010 fs/ubifs/lpt.c struct lpt_scan_node *path, path 2021 fs/ubifs/lpt.c path->in_tree = 1; path 2022 fs/ubifs/lpt.c path->ptr.pnode = pnode; path 2025 fs/ubifs/lpt.c pnode = &path->pnode; path 2026 fs/ubifs/lpt.c path->in_tree = 0; path 2027 fs/ubifs/lpt.c path->ptr.pnode = pnode; path 2084 fs/ubifs/lpt.c struct lpt_scan_node *path; path 2101 fs/ubifs/lpt.c path = kmalloc_array(c->lpt_hght + 1, sizeof(struct lpt_scan_node), path 2103 fs/ubifs/lpt.c if (!path) path 2106 fs/ubifs/lpt.c path[0].ptr.nnode = c->nroot; path 2107 fs/ubifs/lpt.c path[0].in_tree = 1; path 2116 fs/ubifs/lpt.c nnode = scan_get_nnode(c, path + h, nnode, iip); path 2123 fs/ubifs/lpt.c pnode = scan_get_pnode(c, path + h, nnode, iip); path 2135 fs/ubifs/lpt.c ret = scan_cb(c, lprops, path[h].in_tree, data); path 2146 fs/ubifs/lpt.c if (path[h].in_tree) path 2148 fs/ubifs/lpt.c nnode = kmemdup(&path[h].nnode, sz, GFP_NOFS); path 2155 fs/ubifs/lpt.c path[h].ptr.nnode = nnode; path 2156 fs/ubifs/lpt.c path[h].in_tree = 1; path 2157 fs/ubifs/lpt.c path[h + 1].cnode.parent = nnode; path 2159 fs/ubifs/lpt.c if (path[h].in_tree) path 2165 fs/ubifs/lpt.c pnode = kmemdup(&path[h].pnode, sz, GFP_NOFS); path 2172 fs/ubifs/lpt.c path[h].ptr.pnode = pnode; path 2173 fs/ubifs/lpt.c path[h].in_tree = 1; path 2213 fs/ubifs/lpt.c nnode = path[h].ptr.nnode; path 2223 fs/ubifs/lpt.c nnode = scan_get_nnode(c, path + h, nnode, iip); path 2230 fs/ubifs/lpt.c pnode = scan_get_pnode(c, path + h, nnode, iip); path 2238 fs/ubifs/lpt.c kfree(path); path 1094 fs/ubifs/tnc.c int *path = c->bottom_up_buf, p = 0; path 1105 fs/ubifs/tnc.c path = c->bottom_up_buf; path 1117 fs/ubifs/tnc.c path[p++] = n; path 1130 fs/ubifs/tnc.c ubifs_assert(c, path[p - 1] >= 0); path 1131 fs/ubifs/tnc.c ubifs_assert(c, path[p - 1] < zp->child_cnt); path 1132 fs/ubifs/tnc.c zbr = &zp->zbranch[path[--p]]; path 1140 fs/ubifs/tnc.c ubifs_assert(c, path[p - 1] >= 0); path 1141 fs/ubifs/tnc.c ubifs_assert(c, path[p - 1] < znode->child_cnt); path 1142 fs/ubifs/tnc.c znode = znode->zbranch[path[p - 1]].znode; path 1997 fs/ubifs/ubifs.h int ubifs_getattr(const struct path *path, struct kstat *stat, path 155 fs/udf/symlink.c static int udf_symlink_getattr(const struct path *path, struct kstat *stat, path 158 fs/udf/symlink.c struct dentry *dentry = path->dentry; path 19 fs/utimes.c static int utimes_common(const struct path *path, struct timespec64 *times) path 23 fs/utimes.c struct inode *inode = path->dentry->d_inode; path 26 fs/utimes.c error = mnt_want_write(path->mnt); path 60 fs/utimes.c error = notify_change(path->dentry, &newattrs, &delegated_inode); path 68 fs/utimes.c mnt_drop_write(path->mnt); path 115 fs/utimes.c struct path path; path 121 fs/utimes.c error = user_path_at(dfd, filename, lookup_flags, &path); path 125 fs/utimes.c error = utimes_common(&path, times); path 126 fs/utimes.c path_put(&path); path 462 fs/xattr.c struct path path; path 465 fs/xattr.c error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); path 468 fs/xattr.c error = mnt_want_write(path.mnt); path 470 fs/xattr.c error = setxattr(path.dentry, name, value, size, flags); path 471 fs/xattr.c mnt_drop_write(path.mnt); path 473 fs/xattr.c path_put(&path); path 560 fs/xattr.c struct path path; path 563 fs/xattr.c error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); path 566 fs/xattr.c error = getxattr(path.dentry, name, value, size); path 567 fs/xattr.c path_put(&path); path 636 fs/xattr.c struct path path; path 639 fs/xattr.c error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); path 642 fs/xattr.c error = listxattr(path.dentry, list, size); path 643 fs/xattr.c path_put(&path); path 697 fs/xattr.c struct path path; path 700 fs/xattr.c error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); path 703 fs/xattr.c error = mnt_want_write(path.mnt); path 705 fs/xattr.c error = removexattr(path.dentry, name); path 706 fs/xattr.c mnt_drop_write(path.mnt); path 708 fs/xattr.c path_put(&path); path 873 fs/xfs/libxfs/xfs_attr.c blk = &state->path.blk[ state->path.active-1 ]; path 903 fs/xfs/libxfs/xfs_attr.c if (state->path.active == 1) { path 945 fs/xfs/libxfs/xfs_attr.c xfs_da3_fixhashpath(state, &state->path); path 1022 fs/xfs/libxfs/xfs_attr.c blk = &state->path.blk[ state->path.active-1 ]; path 1025 fs/xfs/libxfs/xfs_attr.c xfs_da3_fixhashpath(state, &state->path); path 1030 fs/xfs/libxfs/xfs_attr.c if (retval && (state->path.active > 1)) { path 1106 fs/xfs/libxfs/xfs_attr.c blk = &state->path.blk[ state->path.active-1 ]; path 1142 fs/xfs/libxfs/xfs_attr.c blk = &state->path.blk[ state->path.active-1 ]; path 1145 fs/xfs/libxfs/xfs_attr.c xfs_da3_fixhashpath(state, &state->path); path 1150 fs/xfs/libxfs/xfs_attr.c if (retval && (state->path.active > 1)) { path 1172 fs/xfs/libxfs/xfs_attr.c ASSERT(state->path.active == 1); path 1173 fs/xfs/libxfs/xfs_attr.c ASSERT(state->path.blk[0].bp); path 1174 fs/xfs/libxfs/xfs_attr.c state->path.blk[0].bp = NULL; path 1207 fs/xfs/libxfs/xfs_attr.c xfs_da_state_path_t *path; path 1217 fs/xfs/libxfs/xfs_attr.c path = &state->path; path 1218 fs/xfs/libxfs/xfs_attr.c ASSERT((path->active >= 0) && (path->active < XFS_DA_NODE_MAXDEPTH)); path 1219 fs/xfs/libxfs/xfs_attr.c for (blk = path->blk, level = 0; level < path->active; blk++, level++) { path 1232 fs/xfs/libxfs/xfs_attr.c path = &state->altpath; path 1233 fs/xfs/libxfs/xfs_attr.c ASSERT((path->active >= 0) && (path->active < XFS_DA_NODE_MAXDEPTH)); path 1234 fs/xfs/libxfs/xfs_attr.c for (blk = path->blk, level = 0; level < path->active; blk++, level++) { path 1255 fs/xfs/libxfs/xfs_attr.c xfs_da_state_path_t *path; path 1265 fs/xfs/libxfs/xfs_attr.c path = &state->path; path 1266 fs/xfs/libxfs/xfs_attr.c ASSERT((path->active >= 0) && (path->active < XFS_DA_NODE_MAXDEPTH)); path 1267 fs/xfs/libxfs/xfs_attr.c for (blk = path->blk, level = 0; level < path->active; blk++, level++) { path 1284 fs/xfs/libxfs/xfs_attr.c path = &state->altpath; path 1285 fs/xfs/libxfs/xfs_attr.c ASSERT((path->active >= 0) && (path->active < XFS_DA_NODE_MAXDEPTH)); path 1286 fs/xfs/libxfs/xfs_attr.c for (blk = path->blk, level = 0; level < path->active; blk++, level++) { path 1339 fs/xfs/libxfs/xfs_attr.c blk = &state->path.blk[state->path.active - 1]; path 1346 fs/xfs/libxfs/xfs_attr.c for (i = 0; i < state->path.active; i++) { path 1347 fs/xfs/libxfs/xfs_attr.c xfs_trans_brelse(args->trans, state->path.blk[i].bp); path 1348 fs/xfs/libxfs/xfs_attr.c state->path.blk[i].bp = NULL; path 1880 fs/xfs/libxfs/xfs_attr_leaf.c blk = &state->path.blk[ state->path.active-1 ]; path 1903 fs/xfs/libxfs/xfs_attr_leaf.c memcpy(&state->altpath, &state->path, sizeof(state->path)); path 1960 fs/xfs/libxfs/xfs_attr_leaf.c memcpy(&state->altpath, &state->path, sizeof(state->path)); path 1965 fs/xfs/libxfs/xfs_attr_leaf.c error = xfs_da3_path_shift(state, &state->path, forward, path 399 fs/xfs/libxfs/xfs_da_btree.c max = state->path.active - 1; path 401 fs/xfs/libxfs/xfs_da_btree.c ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || path 402 fs/xfs/libxfs/xfs_da_btree.c state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); path 404 fs/xfs/libxfs/xfs_da_btree.c addblk = &state->path.blk[max]; /* initial dummy value */ path 405 fs/xfs/libxfs/xfs_da_btree.c for (i = max; (i >= 0) && addblk; state->path.active--, i--) { path 406 fs/xfs/libxfs/xfs_da_btree.c oldblk = &state->path.blk[i]; path 471 fs/xfs/libxfs/xfs_da_btree.c xfs_da3_fixhashpath(state, &state->path); path 482 fs/xfs/libxfs/xfs_da_btree.c state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); path 487 fs/xfs/libxfs/xfs_da_btree.c ASSERT(state->path.active == 0); path 488 fs/xfs/libxfs/xfs_da_btree.c oldblk = &state->path.blk[0]; path 977 fs/xfs/libxfs/xfs_da_btree.c drop_blk = &state->path.blk[ state->path.active-1 ]; path 978 fs/xfs/libxfs/xfs_da_btree.c save_blk = &state->altpath.blk[ state->path.active-1 ]; path 979 fs/xfs/libxfs/xfs_da_btree.c ASSERT(state->path.blk[0].magic == XFS_DA_NODE_MAGIC); path 987 fs/xfs/libxfs/xfs_da_btree.c for ( ; state->path.active >= 2; drop_blk--, save_blk--, path 988 fs/xfs/libxfs/xfs_da_btree.c state->path.active--) { path 1018 fs/xfs/libxfs/xfs_da_btree.c xfs_da3_fixhashpath(state, &state->path); path 1044 fs/xfs/libxfs/xfs_da_btree.c xfs_da3_fixhashpath(state, &state->path); path 1045 fs/xfs/libxfs/xfs_da_btree.c error = xfs_da3_root_join(state, &state->path.blk[0]); path 1172 fs/xfs/libxfs/xfs_da_btree.c blk = &state->path.blk[ state->path.active-1 ]; path 1193 fs/xfs/libxfs/xfs_da_btree.c memcpy(&state->altpath, &state->path, sizeof(state->path)); path 1248 fs/xfs/libxfs/xfs_da_btree.c memcpy(&state->altpath, &state->path, sizeof(state->path)); path 1253 fs/xfs/libxfs/xfs_da_btree.c error = xfs_da3_path_shift(state, &state->path, forward, path 1296 fs/xfs/libxfs/xfs_da_btree.c struct xfs_da_state_path *path) path 1308 fs/xfs/libxfs/xfs_da_btree.c level = path->active-1; path 1309 fs/xfs/libxfs/xfs_da_btree.c blk = &path->blk[ level ]; path 1512 fs/xfs/libxfs/xfs_da_btree.c for (blk = &state->path.blk[0], state->path.active = 1; path 1513 fs/xfs/libxfs/xfs_da_btree.c state->path.active <= XFS_DA_NODE_MAXDEPTH; path 1514 fs/xfs/libxfs/xfs_da_btree.c blk++, state->path.active++) { path 1523 fs/xfs/libxfs/xfs_da_btree.c state->path.active--; path 1642 fs/xfs/libxfs/xfs_da_btree.c error = xfs_da3_path_shift(state, &state->path, 1, 1, path 1874 fs/xfs/libxfs/xfs_da_btree.c struct xfs_da_state_path *path, path 1900 fs/xfs/libxfs/xfs_da_btree.c ASSERT(path != NULL); path 1901 fs/xfs/libxfs/xfs_da_btree.c ASSERT((path->active > 0) && (path->active < XFS_DA_NODE_MAXDEPTH)); path 1902 fs/xfs/libxfs/xfs_da_btree.c level = (path->active-1) - 1; /* skip bottom layer in path */ path 1903 fs/xfs/libxfs/xfs_da_btree.c for (blk = &path->blk[level]; level >= 0; blk--, level--) { path 1928 fs/xfs/libxfs/xfs_da_btree.c for (blk++, level++; level < path->active; blk++, level++) { path 1978 fs/xfs/libxfs/xfs_da_btree.c ASSERT(level == path->active-1); path 1985 fs/xfs/libxfs/xfs_da_btree.c ASSERT(level == path->active-1); path 118 fs/xfs/libxfs/xfs_da_btree.h xfs_da_state_path_t path; /* search/split paths */ path 167 fs/xfs/libxfs/xfs_da_btree.h int xfs_da3_path_shift(xfs_da_state_t *state, xfs_da_state_path_t *path, path 1656 fs/xfs/libxfs/xfs_dir2_leaf.c if (state->path.active > 1) path 1698 fs/xfs/libxfs/xfs_dir2_leaf.c lbp = state->path.blk[0].bp; path 1778 fs/xfs/libxfs/xfs_dir2_leaf.c state->path.blk[0].bp = NULL; path 1445 fs/xfs/libxfs/xfs_dir2_node.c blk = &state->path.blk[state->path.active - 1]; path 1472 fs/xfs/libxfs/xfs_dir2_node.c memcpy(&state->altpath, &state->path, sizeof(state->path)); path 1534 fs/xfs/libxfs/xfs_dir2_node.c memcpy(&state->altpath, &state->path, sizeof(state->path)); path 1539 fs/xfs/libxfs/xfs_dir2_node.c error = xfs_da3_path_shift(state, &state->path, forward, 0, path 1997 fs/xfs/libxfs/xfs_dir2_node.c blk = &state->path.blk[state->path.active - 1]; path 2008 fs/xfs/libxfs/xfs_dir2_node.c xfs_da3_fixhashpath(state, &state->path); path 2067 fs/xfs/libxfs/xfs_dir2_node.c for (i = 0; i < state->path.active; i++) { path 2068 fs/xfs/libxfs/xfs_dir2_node.c xfs_trans_brelse(args->trans, state->path.blk[i].bp); path 2069 fs/xfs/libxfs/xfs_dir2_node.c state->path.blk[i].bp = NULL; path 2114 fs/xfs/libxfs/xfs_dir2_node.c blk = &state->path.blk[state->path.active - 1]; path 2128 fs/xfs/libxfs/xfs_dir2_node.c xfs_da3_fixhashpath(state, &state->path); path 2132 fs/xfs/libxfs/xfs_dir2_node.c if (rval && state->path.active > 1) path 2195 fs/xfs/libxfs/xfs_dir2_node.c blk = &state->path.blk[state->path.active - 1]; path 2230 fs/xfs/libxfs/xfs_dir2_node.c for (i = 0; i < state->path.active; i++) { path 2231 fs/xfs/libxfs/xfs_dir2_node.c xfs_trans_brelse(args->trans, state->path.blk[i].bp); path 2232 fs/xfs/libxfs/xfs_dir2_node.c state->path.blk[i].bp = NULL; path 551 fs/xfs/libxfs/xfs_fs.h void __user *path; /* user pathname */ path 308 fs/xfs/scrub/attr.c struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; path 417 fs/xfs/scrub/attr.c blk = &ds->state->path.blk[level]; path 54 fs/xfs/scrub/dabtree.c ds->state->path.blk[level].blkno), path 76 fs/xfs/scrub/dabtree.c ds->state->path.blk[level].blkno), path 92 fs/xfs/scrub/dabtree.c blk = &ds->state->path.blk[level]; path 138 fs/xfs/scrub/dabtree.c blks = ds->state->path.blk; path 249 fs/xfs/scrub/dabtree.c memcpy(&ds->state->altpath, &ds->state->path, path 343 fs/xfs/scrub/dabtree.c blk = &ds->state->path.blk[level]; path 344 fs/xfs/scrub/dabtree.c ds->state->path.active = level + 1; path 515 fs/xfs/scrub/dabtree.c blks = ds.state->path.blk; path 60 fs/xfs/xfs_ioctl.c struct path path; path 70 fs/xfs/xfs_ioctl.c error = user_path_at(AT_FDCWD, hreq->path, 0, &path); path 73 fs/xfs/xfs_ioctl.c inode = d_inode(path.dentry); path 120 fs/xfs/xfs_ioctl.c path_put(&path); path 192 fs/xfs/xfs_ioctl.c struct path path; path 237 fs/xfs/xfs_ioctl.c path.mnt = parfilp->f_path.mnt; path 238 fs/xfs/xfs_ioctl.c path.dentry = dentry; path 239 fs/xfs/xfs_ioctl.c filp = dentry_open(&path, hreq->oflags, cred); path 333 fs/xfs/xfs_ioctl32.c hreq->path = compat_ptr(hreq32.path); path 82 fs/xfs/xfs_ioctl32.h compat_uptr_t path; /* user pathname */ path 489 fs/xfs/xfs_iops.c const struct path *path, path 494 fs/xfs/xfs_iops.c struct inode *inode = d_inode(path->dentry); path 1534 include/drm/drm_connector.h const char *path); path 407 include/drm/drm_dp_mst_helper.h struct drm_connector *(*add_connector)(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port, const char *path); path 347 include/drm/drm_edid.h int __drm_set_edid_firmware_path(const char *path); path 29 include/linux/audit.h struct path; path 156 include/linux/audit.h const struct path *path); path 216 include/linux/audit.h const struct path *path) path 275 include/linux/ceph/decode.h u64 ino, const char *path) path 277 include/linux/ceph/decode.h u32 len = path ? strlen(path) : 0; path 283 include/linux/ceph/decode.h memcpy(*p, path, len); path 108 include/linux/cgroup.h struct cgroup *cgroup_get_from_path(const char *path); path 17 include/linux/dcache.h struct path; path 147 include/linux/dcache.h struct vfsmount *(*d_automount)(struct path *); path 148 include/linux/dcache.h int (*d_manage)(const struct path *, bool); path 263 include/linux/dcache.h extern int path_has_submounts(const struct path *); path 295 include/linux/dcache.h extern char *__d_path(const struct path *, const struct path *, char *, int); path 296 include/linux/dcache.h extern char *d_absolute_path(const struct path *, char *, int); path 297 include/linux/dcache.h extern char *d_path(const struct path *, char *, int); path 20 include/linux/dcookies.h struct path; path 48 include/linux/dcookies.h int get_dcookie(const struct path *path, unsigned long *cookie); path 62 include/linux/dcookies.h static inline int get_dcookie(const struct path *path, unsigned long *cookie) path 154 include/linux/device-mapper.h dev_t dm_get_dev_t(const char *path); path 160 include/linux/device-mapper.h int dm_get_device(struct dm_target *ti, const char *path, fmode_t mode, path 66 include/linux/dmar.h struct dmar_pci_path path[]; path 15 include/linux/earlycpio.h struct cpio_data find_cpio_data(const char *path, void *data, size_t len, path 73 include/linux/f2fs_fs.h __u8 path[MAX_PATH_LEN]; path 22 include/linux/file.h struct path; path 941 include/linux/fs.h struct path f_path; path 1743 include/linux/fs.h extern bool may_open_dev(const struct path *path); path 1882 include/linux/fs.h int (*getattr) (const struct path *, struct kstat *, u32, unsigned int); path 2205 include/linux/fs.h extern bool atime_needs_update(const struct path *, struct inode *); path 2206 include/linux/fs.h extern void touch_atime(const struct path *); path 2266 include/linux/fs.h extern struct dentry *mount_subtree(struct vfsmount *mnt, const char *path); path 2317 include/linux/fs.h extern struct vfsmount *collect_mounts(const struct path *); path 2321 include/linux/fs.h extern int vfs_statfs(const struct path *, struct kstatfs *); path 2527 include/linux/fs.h extern long vfs_truncate(const struct path *, loff_t); path 2538 include/linux/fs.h extern struct file * dentry_open(const struct path *, int, const struct cred *); path 2539 include/linux/fs.h extern struct file * open_with_fake_path(const struct path *, int, path 2632 include/linux/fs.h extern struct block_device *blkdev_get_by_path(const char *path, fmode_t mode, path 3011 include/linux/fs.h extern bool path_is_under(const struct path *, const struct path *); path 3227 include/linux/fs.h extern int vfs_getattr_nosec(const struct path *, struct kstat *, u32, unsigned int); path 3228 include/linux/fs.h extern int vfs_getattr(const struct path *, struct kstat *, u32, unsigned int); path 3299 include/linux/fs.h extern int simple_getattr(const struct path *, struct kstat *, u32, unsigned int); path 3590 include/linux/fs.h extern bool path_noexec(const struct path *path); path 27 include/linux/fs_context.h struct path; path 13 include/linux/fs_parser.h struct path; path 91 include/linux/fs_parser.h struct path *_path); path 15 include/linux/fs_struct.h struct path root, pwd; path 21 include/linux/fs_struct.h extern void set_fs_root(struct fs_struct *, const struct path *); path 22 include/linux/fs_struct.h extern void set_fs_pwd(struct fs_struct *, const struct path *); path 27 include/linux/fs_struct.h static inline void get_fs_root(struct fs_struct *fs, struct path *root) path 35 include/linux/fs_struct.h static inline void get_fs_pwd(struct fs_struct *fs, struct path *pwd) path 34 include/linux/fsnotify.h static inline int fsnotify_parent(const struct path *path, path 38 include/linux/fsnotify.h dentry = path->dentry; path 40 include/linux/fsnotify.h return __fsnotify_parent(path, dentry, mask); path 47 include/linux/fsnotify.h static inline int fsnotify_path(struct inode *inode, const struct path *path, path 50 include/linux/fsnotify.h int ret = fsnotify_parent(path, NULL, mask); path 54 include/linux/fsnotify.h return fsnotify(inode, mask, path, FSNOTIFY_EVENT_PATH, NULL, 0); path 61 include/linux/fsnotify.h const struct path *path = &file->f_path; path 73 include/linux/fsnotify.h ret = fsnotify_path(inode, path, FS_OPEN_EXEC_PERM); path 85 include/linux/fsnotify.h return fsnotify_path(inode, path, fsnotify_mask); path 232 include/linux/fsnotify.h const struct path *path = &file->f_path; path 240 include/linux/fsnotify.h fsnotify_path(inode, path, mask); path 248 include/linux/fsnotify.h const struct path *path = &file->f_path; path 256 include/linux/fsnotify.h fsnotify_path(inode, path, mask); path 264 include/linux/fsnotify.h const struct path *path = &file->f_path; path 273 include/linux/fsnotify.h fsnotify_path(inode, path, mask); path 281 include/linux/fsnotify.h const struct path *path = &file->f_path; path 290 include/linux/fsnotify.h fsnotify_path(inode, path, mask); path 355 include/linux/fsnotify_backend.h extern int __fsnotify_parent(const struct path *path, struct dentry *dentry, __u32 mask); path 516 include/linux/fsnotify_backend.h static inline int __fsnotify_parent(const struct path *path, struct dentry *dentry, __u32 mask) path 31 include/linux/interconnect.h void icc_put(struct icc_path *path); path 32 include/linux/interconnect.h int icc_set_bw(struct icc_path *path, u32 avg_bw, u32 peak_bw); path 33 include/linux/interconnect.h void icc_set_tag(struct icc_path *path, u32 tag); path 49 include/linux/interconnect.h static inline void icc_put(struct icc_path *path) path 53 include/linux/interconnect.h static inline int icc_set_bw(struct icc_path *path, u32 avg_bw, u32 peak_bw) path 58 include/linux/interconnect.h static inline void icc_set_tag(struct icc_path *path, u32 tag) path 330 include/linux/kernfs.h const char *path, const void *ns); path 417 include/linux/kernfs.h kernfs_walk_and_get_ns(struct kernfs_node *parent, const char *path, path 527 include/linux/kernfs.h kernfs_walk_and_get(struct kernfs_node *kn, const char *path) path 529 include/linux/kernfs.h return kernfs_walk_and_get_ns(kn, path, NULL); path 46 include/linux/lsm_audit.h struct path path; path 78 include/linux/lsm_audit.h struct path path; path 1503 include/linux/lsm_hooks.h int (*sb_mount)(const char *dev_name, const struct path *path, path 1506 include/linux/lsm_hooks.h int (*sb_pivotroot)(const struct path *old_path, const struct path *new_path); path 1517 include/linux/lsm_hooks.h int (*move_mount)(const struct path *from_path, const struct path *to_path); path 1528 include/linux/lsm_hooks.h int (*path_unlink)(const struct path *dir, struct dentry *dentry); path 1529 include/linux/lsm_hooks.h int (*path_mkdir)(const struct path *dir, struct dentry *dentry, path 1531 include/linux/lsm_hooks.h int (*path_rmdir)(const struct path *dir, struct dentry *dentry); path 1532 include/linux/lsm_hooks.h int (*path_mknod)(const struct path *dir, struct dentry *dentry, path 1534 include/linux/lsm_hooks.h int (*path_truncate)(const struct path *path); path 1535 include/linux/lsm_hooks.h int (*path_symlink)(const struct path *dir, struct dentry *dentry, path 1537 include/linux/lsm_hooks.h int (*path_link)(struct dentry *old_dentry, const struct path *new_dir, path 1539 include/linux/lsm_hooks.h int (*path_rename)(const struct path *old_dir, struct dentry *old_dentry, path 1540 include/linux/lsm_hooks.h const struct path *new_dir, path 1542 include/linux/lsm_hooks.h int (*path_chmod)(const struct path *path, umode_t mode); path 1543 include/linux/lsm_hooks.h int (*path_chown)(const struct path *path, kuid_t uid, kgid_t gid); path 1544 include/linux/lsm_hooks.h int (*path_chroot)(const struct path *path); path 1547 include/linux/lsm_hooks.h int (*path_notify)(const struct path *path, u64 mask, path 1575 include/linux/lsm_hooks.h int (*inode_getattr)(const struct path *path); path 75 include/linux/mount.h struct path; path 84 include/linux/mount.h extern struct vfsmount *mnt_clone_internal(const struct path *path); path 88 include/linux/mount.h struct path; path 89 include/linux/mount.h extern struct vfsmount *clone_private_mount(const struct path *path); path 110 include/linux/mount.h extern bool path_is_mountpoint(const struct path *path); path 42 include/linux/namei.h extern int path_pts(struct path *path); path 44 include/linux/namei.h extern int user_path_at_empty(int, const char __user *, unsigned, struct path *, int *empty); path 47 include/linux/namei.h struct path *path) path 49 include/linux/namei.h return user_path_at_empty(dfd, name, flags, path, NULL); path 52 include/linux/namei.h extern int kern_path(const char *, unsigned, struct path *); path 54 include/linux/namei.h extern struct dentry *kern_path_create(int, const char *, struct path *, unsigned int); path 55 include/linux/namei.h extern struct dentry *user_path_create(int, const char __user *, struct path *, unsigned int); path 56 include/linux/namei.h extern void done_path_create(struct path *, struct dentry *); path 57 include/linux/namei.h extern struct dentry *kern_path_locked(const char *, struct path *); path 58 include/linux/namei.h extern int kern_path_mountpoint(int, const char *, struct path *, unsigned int); path 64 include/linux/namei.h extern int follow_down_one(struct path *); path 65 include/linux/namei.h extern int follow_down(struct path *); path 66 include/linux/namei.h extern int follow_up(struct path *); path 71 include/linux/namei.h extern void nd_jump_link(struct path *path); path 378 include/linux/nfs_fs.h extern int nfs_getattr(const struct path *, struct kstat *, u32, unsigned int); path 278 include/linux/of.h extern struct device_node *of_find_node_opts_by_path(const char *path, path 280 include/linux/of.h static inline struct device_node *of_find_node_by_path(const char *path) path 282 include/linux/of.h return of_find_node_opts_by_path(path, NULL); path 610 include/linux/of.h static inline struct device_node *of_find_node_by_path(const char *path) path 615 include/linux/of.h static inline struct device_node *of_find_node_opts_by_path(const char *path, path 13 include/linux/path.h extern void path_get(const struct path *); path 14 include/linux/path.h extern void path_put(const struct path *); path 16 include/linux/path.h static inline int path_equal(const struct path *path1, const struct path *path2) path 21 include/linux/path.h static inline void path_put_init(struct path *path) path 23 include/linux/path.h path_put(path); path 24 include/linux/path.h *path = (struct path) { }; path 489 include/linux/perf_event.h struct path path; path 25 include/linux/pps_kernel.h char path[PPS_MAX_NAME_LEN]; /* path of connected device */ path 12 include/linux/proc_ns.h struct path; path 79 include/linux/proc_ns.h extern void *ns_get_path(struct path *path, struct task_struct *task, path 82 include/linux/proc_ns.h extern void *ns_get_path_cb(struct path *path, ns_get_path_helper_t ns_get_cb, path 340 include/linux/quota.h struct path; path 429 include/linux/quota.h int (*quota_on)(struct super_block *, int, int, const struct path *); path 103 include/linux/quotaops.h const struct path *path); path 47 include/linux/security.h struct path; path 292 include/linux/security.h int security_sb_mount(const char *dev_name, const struct path *path, path 295 include/linux/security.h int security_sb_pivotroot(const struct path *old_path, const struct path *new_path); path 306 include/linux/security.h int security_move_mount(const struct path *from_path, const struct path *to_path); path 314 include/linux/security.h int security_path_notify(const struct path *path, u64 mask, path 341 include/linux/security.h int security_inode_getattr(const struct path *path); path 636 include/linux/security.h static inline int security_sb_mount(const char *dev_name, const struct path *path, path 648 include/linux/security.h static inline int security_sb_pivotroot(const struct path *old_path, path 649 include/linux/security.h const struct path *new_path) path 676 include/linux/security.h static inline int security_move_mount(const struct path *from_path, path 677 include/linux/security.h const struct path *to_path) path 682 include/linux/security.h static inline int security_path_notify(const struct path *path, u64 mask, path 811 include/linux/security.h static inline int security_inode_getattr(const struct path *path) path 1658 include/linux/security.h int security_path_unlink(const struct path *dir, struct dentry *dentry); path 1659 include/linux/security.h int security_path_mkdir(const struct path *dir, struct dentry *dentry, umode_t mode); path 1660 include/linux/security.h int security_path_rmdir(const struct path *dir, struct dentry *dentry); path 1661 include/linux/security.h int security_path_mknod(const struct path *dir, struct dentry *dentry, umode_t mode, path 1663 include/linux/security.h int security_path_truncate(const struct path *path); path 1664 include/linux/security.h int security_path_symlink(const struct path *dir, struct dentry *dentry, path 1666 include/linux/security.h int security_path_link(struct dentry *old_dentry, const struct path *new_dir, path 1668 include/linux/security.h int security_path_rename(const struct path *old_dir, struct dentry *old_dentry, path 1669 include/linux/security.h const struct path *new_dir, struct dentry *new_dentry, path 1671 include/linux/security.h int security_path_chmod(const struct path *path, umode_t mode); path 1672 include/linux/security.h int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid); path 1673 include/linux/security.h int security_path_chroot(const struct path *path); path 1675 include/linux/security.h static inline int security_path_unlink(const struct path *dir, struct dentry *dentry) path 1680 include/linux/security.h static inline int security_path_mkdir(const struct path *dir, struct dentry *dentry, path 1686 include/linux/security.h static inline int security_path_rmdir(const struct path *dir, struct dentry *dentry) path 1691 include/linux/security.h static inline int security_path_mknod(const struct path *dir, struct dentry *dentry, path 1697 include/linux/security.h static inline int security_path_truncate(const struct path *path) path 1702 include/linux/security.h static inline int security_path_symlink(const struct path *dir, struct dentry *dentry, path 1709 include/linux/security.h const struct path *new_dir, path 1715 include/linux/security.h static inline int security_path_rename(const struct path *old_dir, path 1717 include/linux/security.h const struct path *new_dir, path 1724 include/linux/security.h static inline int security_path_chmod(const struct path *path, umode_t mode) path 1729 include/linux/security.h static inline int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) path 1734 include/linux/security.h static inline int security_path_chroot(const struct path *path) path 127 include/linux/seq_buf.h extern int seq_buf_path(struct seq_buf *s, const struct path *path, const char *esc); path 136 include/linux/seq_file.h int seq_path(struct seq_file *, const struct path *, const char *); path 139 include/linux/seq_file.h int seq_path_root(struct seq_file *m, const struct path *path, path 140 include/linux/seq_file.h const struct path *root, const char *esc); path 256 include/linux/string.h static inline const char *kbasename(const char *path) path 258 include/linux/string.h const char *tail = strrchr(path, '/'); path 259 include/linux/string.h return tail ? tail + 1 : path; path 326 include/linux/syscalls.h asmlinkage long sys_setxattr(const char __user *path, const char __user *name, path 328 include/linux/syscalls.h asmlinkage long sys_lsetxattr(const char __user *path, const char __user *name, path 332 include/linux/syscalls.h asmlinkage long sys_getxattr(const char __user *path, const char __user *name, path 334 include/linux/syscalls.h asmlinkage long sys_lgetxattr(const char __user *path, const char __user *name, path 338 include/linux/syscalls.h asmlinkage long sys_listxattr(const char __user *path, char __user *list, path 340 include/linux/syscalls.h asmlinkage long sys_llistxattr(const char __user *path, char __user *list, path 343 include/linux/syscalls.h asmlinkage long sys_removexattr(const char __user *path, path 345 include/linux/syscalls.h asmlinkage long sys_lremovexattr(const char __user *path, path 378 include/linux/syscalls.h asmlinkage long sys_inotify_add_watch(int fd, const char __user *path, path 416 include/linux/syscalls.h asmlinkage long sys_statfs(const char __user * path, path 418 include/linux/syscalls.h asmlinkage long sys_statfs64(const char __user *path, size_t sz, path 423 include/linux/syscalls.h asmlinkage long sys_truncate(const char __user *path, long length); path 426 include/linux/syscalls.h asmlinkage long sys_truncate64(const char __user *path, loff_t length); path 511 include/linux/syscalls.h asmlinkage long sys_readlinkat(int dfd, const char __user *path, char __user *buf, path 987 include/linux/syscalls.h asmlinkage long sys_statx(int dfd, const char __user *path, unsigned flags, path 991 include/linux/syscalls.h asmlinkage long sys_open_tree(int dfd, const char __user *path, unsigned flags); path 999 include/linux/syscalls.h asmlinkage long sys_fspick(int dfd, const char __user *path, unsigned int flags); path 1191 include/linux/syscalls.h asmlinkage long sys_readlink(const char __user *path, path 199 include/linux/sysctl.h const char *path, struct ctl_table *table); path 202 include/linux/sysctl.h const struct ctl_path *path, struct ctl_table *table); path 203 include/linux/sysctl.h struct ctl_table_header *register_sysctl(const char *path, struct ctl_table *table); path 205 include/linux/sysctl.h struct ctl_table_header *register_sysctl_paths(const struct ctl_path *path, path 221 include/linux/sysctl.h const struct ctl_path *path, struct ctl_table *table) path 226 include/linux/sysctl.h static inline struct ctl_table_header *register_sysctl(const char *path, struct ctl_table *table) path 90 include/linux/trace_seq.h extern int trace_seq_path(struct trace_seq *s, const struct path *path); path 133 include/linux/trace_seq.h static inline int trace_seq_path(struct trace_seq *s, const struct path *path) path 22 include/linux/umh.h const char *path; path 35 include/linux/umh.h call_usermodehelper(const char *path, char **argv, char **envp, int wait); path 38 include/linux/umh.h call_usermodehelper_setup(const char *path, char **argv, char **envp, path 359 include/net/9p/9p.h u64 path; path 57 include/net/af_unix.h struct path path; path 56 include/net/iucv/af_iucv.h struct iucv_path *path; path 122 include/net/iucv/af_iucv.h struct iucv_path *path; path 226 include/net/iucv/iucv.h struct iucv_path *path; path 228 include/net/iucv/iucv.h path = kzalloc(sizeof(struct iucv_path), gfp); path 229 include/net/iucv/iucv.h if (path) { path 230 include/net/iucv/iucv.h path->msglim = msglim; path 231 include/net/iucv/iucv.h path->flags = flags; path 233 include/net/iucv/iucv.h return path; path 242 include/net/iucv/iucv.h static inline void iucv_path_free(struct iucv_path *path) path 244 include/net/iucv/iucv.h kfree(path); path 259 include/net/iucv/iucv.h int iucv_path_accept(struct iucv_path *path, struct iucv_handler *handler, path 277 include/net/iucv/iucv.h int iucv_path_connect(struct iucv_path *path, struct iucv_handler *handler, path 291 include/net/iucv/iucv.h int iucv_path_quiesce(struct iucv_path *path, u8 *userdata); path 303 include/net/iucv/iucv.h int iucv_path_resume(struct iucv_path *path, u8 *userdata); path 314 include/net/iucv/iucv.h int iucv_path_sever(struct iucv_path *path, u8 *userdata); path 326 include/net/iucv/iucv.h int iucv_message_purge(struct iucv_path *path, struct iucv_message *msg, path 346 include/net/iucv/iucv.h int iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, path 366 include/net/iucv/iucv.h int __iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, path 381 include/net/iucv/iucv.h int iucv_message_reject(struct iucv_path *path, struct iucv_message *msg); path 398 include/net/iucv/iucv.h int iucv_message_reply(struct iucv_path *path, struct iucv_message *msg, path 418 include/net/iucv/iucv.h int iucv_message_send(struct iucv_path *path, struct iucv_message *msg, path 438 include/net/iucv/iucv.h int __iucv_message_send(struct iucv_path *path, struct iucv_message *msg, path 460 include/net/iucv/iucv.h int iucv_message_send2way(struct iucv_path *path, struct iucv_message *msg, path 465 include/net/iucv/iucv.h int (*message_receive)(struct iucv_path *path, struct iucv_message *msg, path 467 include/net/iucv/iucv.h int (*__message_receive)(struct iucv_path *path, path 470 include/net/iucv/iucv.h int (*message_reply)(struct iucv_path *path, struct iucv_message *msg, path 472 include/net/iucv/iucv.h int (*message_reject)(struct iucv_path *path, struct iucv_message *msg); path 473 include/net/iucv/iucv.h int (*message_send)(struct iucv_path *path, struct iucv_message *msg, path 475 include/net/iucv/iucv.h int (*__message_send)(struct iucv_path *path, struct iucv_message *msg, path 477 include/net/iucv/iucv.h int (*message_send2way)(struct iucv_path *path, path 480 include/net/iucv/iucv.h int (*message_purge)(struct iucv_path *path, struct iucv_message *msg, path 482 include/net/iucv/iucv.h int (*path_accept)(struct iucv_path *path, struct iucv_handler *handler, path 484 include/net/iucv/iucv.h int (*path_connect)(struct iucv_path *path, path 487 include/net/iucv/iucv.h int (*path_quiesce)(struct iucv_path *path, u8 userdata[16]); path 488 include/net/iucv/iucv.h int (*path_resume)(struct iucv_path *path, u8 userdata[16]); path 489 include/net/iucv/iucv.h int (*path_sever)(struct iucv_path *path, u8 userdata[16]); path 411 include/net/net_namespace.h struct ctl_table_header *register_net_sysctl(struct net *net, const char *path, path 417 include/net/net_namespace.h const char *path, struct ctl_table *table) path 934 include/net/xfrm.h struct dst_entry *path; path 951 include/net/xfrm.h return xdst->path; path 583 include/rdma/ib_cm.h struct sa_path_rec *path; path 160 include/trace/events/asoc.h struct snd_soc_dapm_path *path), path 162 include/trace/events/asoc.h TP_ARGS(widget, dir, path), path 166 include/trace/events/asoc.h __string( pname, path->name ? path->name : DAPM_DIRECT) path 167 include/trace/events/asoc.h __string( pnname, path->node[dir]->name ) path 175 include/trace/events/asoc.h __assign_str(pname, path->name ? path->name : DAPM_DIRECT); path 176 include/trace/events/asoc.h __assign_str(pnname, path->node[dir]->name); path 177 include/trace/events/asoc.h __entry->path_connect = path->connect; path 178 include/trace/events/asoc.h __entry->path_node = (long)path->node[dir]; path 56 include/trace/events/cgroup.h TP_PROTO(struct cgroup *cgrp, const char *path), path 58 include/trace/events/cgroup.h TP_ARGS(cgrp, path), path 64 include/trace/events/cgroup.h __string( path, path ) path 71 include/trace/events/cgroup.h __assign_str(path, path); path 75 include/trace/events/cgroup.h __entry->root, __entry->id, __entry->level, __get_str(path)) path 80 include/trace/events/cgroup.h TP_PROTO(struct cgroup *cgrp, const char *path), path 82 include/trace/events/cgroup.h TP_ARGS(cgrp, path) path 87 include/trace/events/cgroup.h TP_PROTO(struct cgroup *cgrp, const char *path), path 89 include/trace/events/cgroup.h TP_ARGS(cgrp, path) path 94 include/trace/events/cgroup.h TP_PROTO(struct cgroup *cgrp, const char *path), path 96 include/trace/events/cgroup.h TP_ARGS(cgrp, path) path 101 include/trace/events/cgroup.h TP_PROTO(struct cgroup *cgrp, const char *path), path 103 include/trace/events/cgroup.h TP_ARGS(cgrp, path) path 108 include/trace/events/cgroup.h TP_PROTO(struct cgroup *cgrp, const char *path), path 110 include/trace/events/cgroup.h TP_ARGS(cgrp, path) path 115 include/trace/events/cgroup.h TP_PROTO(struct cgroup *cgrp, const char *path), path 117 include/trace/events/cgroup.h TP_ARGS(cgrp, path) path 122 include/trace/events/cgroup.h TP_PROTO(struct cgroup *dst_cgrp, const char *path, path 125 include/trace/events/cgroup.h TP_ARGS(dst_cgrp, path, task, threadgroup), path 132 include/trace/events/cgroup.h __string( dst_path, path ) path 140 include/trace/events/cgroup.h __assign_str(dst_path, path); path 152 include/trace/events/cgroup.h TP_PROTO(struct cgroup *dst_cgrp, const char *path, path 155 include/trace/events/cgroup.h TP_ARGS(dst_cgrp, path, task, threadgroup) path 160 include/trace/events/cgroup.h TP_PROTO(struct cgroup *dst_cgrp, const char *path, path 163 include/trace/events/cgroup.h TP_ARGS(dst_cgrp, path, task, threadgroup) path 168 include/trace/events/cgroup.h TP_PROTO(struct cgroup *cgrp, const char *path, int val), path 170 include/trace/events/cgroup.h TP_ARGS(cgrp, path, val), path 176 include/trace/events/cgroup.h __string( path, path ) path 184 include/trace/events/cgroup.h __assign_str(path, path); path 189 include/trace/events/cgroup.h __entry->root, __entry->id, __entry->level, __get_str(path), path 195 include/trace/events/cgroup.h TP_PROTO(struct cgroup *cgrp, const char *path, int val), path 197 include/trace/events/cgroup.h TP_ARGS(cgrp, path, val) path 202 include/trace/events/cgroup.h TP_PROTO(struct cgroup *cgrp, const char *path, int val), path 204 include/trace/events/cgroup.h TP_ARGS(cgrp, path, val) path 16 include/trace/events/iocost.h TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now, path 19 include/trace/events/iocost.h TP_ARGS(iocg, path, now, last_period, cur_period, vtime), path 23 include/trace/events/iocost.h __string(cgroup, path) path 39 include/trace/events/iocost.h __assign_str(cgroup, path); path 67 include/trace/events/iocost.h TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now, path 71 include/trace/events/iocost.h TP_ARGS(iocg, path, now, old_inuse, new_inuse, path 76 include/trace/events/iocost.h __string(cgroup, path) path 86 include/trace/events/iocost.h __assign_str(cgroup, path); path 103 include/trace/events/iocost.h TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now, path 107 include/trace/events/iocost.h TP_ARGS(iocg, path, now, old_inuse, new_inuse, path 113 include/trace/events/iocost.h TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now, path 117 include/trace/events/iocost.h TP_ARGS(iocg, path, now, old_inuse, new_inuse, path 123 include/trace/events/iocost.h TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now, path 127 include/trace/events/iocost.h TP_ARGS(iocg, path, now, old_inuse, new_inuse, path 112 include/uapi/linux/auto_dev-ioctl.h char path[0]; path 224 include/uapi/linux/btrfs.h __u8 path[BTRFS_DEVICE_PATH_NAME_MAX]; /* out */ path 438 include/uapi/linux/btrfs.h char path[BTRFS_INO_LOOKUP_USER_PATH_MAX]; path 632 include/uapi/linux/coda.h int path; path 743 include/uapi/linux/coda.h const char __user *path; path 178 include/uapi/linux/fsl_hypervisor.h __u64 path; path 35 include/uapi/linux/netfilter/xt_bpf.h char path[XT_BPF_PATH_MAX]; path 18 include/uapi/linux/netfilter/xt_cgroup.h char path[PATH_MAX]; path 33 include/uapi/linux/netfilter/xt_cgroup.h char path[XT_CGROUP_PATH_MAX]; path 147 include/video/mmp_disp.h struct mmp_path *path; path 189 include/video/mmp_disp.h int (*check_status)(struct mmp_path *path); path 190 include/video/mmp_disp.h struct mmp_overlay *(*get_overlay)(struct mmp_path *path, path 192 include/video/mmp_disp.h int (*get_modelist)(struct mmp_path *path, path 196 include/video/mmp_disp.h void (*set_mode)(struct mmp_path *path, struct mmp_mode *mode); path 197 include/video/mmp_disp.h void (*set_onoff)(struct mmp_path *path, int status); path 238 include/video/mmp_disp.h static inline void mmp_path_set_mode(struct mmp_path *path, path 241 include/video/mmp_disp.h if (path) path 242 include/video/mmp_disp.h path->ops.set_mode(path, mode); path 244 include/video/mmp_disp.h static inline void mmp_path_set_onoff(struct mmp_path *path, int status) path 246 include/video/mmp_disp.h if (path) path 247 include/video/mmp_disp.h path->ops.set_onoff(path, status); path 249 include/video/mmp_disp.h static inline int mmp_path_get_modelist(struct mmp_path *path, path 252 include/video/mmp_disp.h if (path) path 253 include/video/mmp_disp.h return path->ops.get_modelist(path, modelist); path 257 include/video/mmp_disp.h struct mmp_path *path, int overlay_id) path 259 include/video/mmp_disp.h if (path) path 260 include/video/mmp_disp.h return path->ops.get_overlay(path, overlay_id); path 300 include/video/mmp_disp.h void (*set_mode)(struct mmp_path *path, struct mmp_mode *mode); path 301 include/video/mmp_disp.h void (*set_onoff)(struct mmp_path *path, int status); path 308 include/video/mmp_disp.h extern void mmp_unregister_path(struct mmp_path *path); path 64 include/xen/xenbus.h const char *path, const char *token); path 193 include/xen/xenbus.h int xenbus_watch_path(struct xenbus_device *dev, const char *path, path 221 include/xen/xenbus.h enum xenbus_state xenbus_read_driver_state(const char *path); path 294 init/initramfs.c static void __init clean_path(char *path, umode_t fmode) path 298 init/initramfs.c if (!vfs_lstat(path, &st) && (st.mode ^ fmode) & S_IFMT) { path 300 init/initramfs.c ksys_rmdir(path); path 302 init/initramfs.c ksys_unlink(path); path 821 ipc/mqueue.c struct path path; path 836 ipc/mqueue.c path.dentry = lookup_one_len(name->name, root, strlen(name->name)); path 837 ipc/mqueue.c if (IS_ERR(path.dentry)) { path 838 ipc/mqueue.c error = PTR_ERR(path.dentry); path 841 ipc/mqueue.c path.mnt = mntget(mnt); path 842 ipc/mqueue.c error = prepare_open(path.dentry, oflag, ro, mode, name, attr); path 844 ipc/mqueue.c struct file *file = dentry_open(&path, oflag, current_cred()); path 850 ipc/mqueue.c path_put(&path); path 73 ipc/util.c const char *path; path 137 ipc/util.c void __init ipc_init_proc_interface(const char *path, const char *header, path 146 ipc/util.c iface->path = path; path 151 ipc/util.c pde = proc_create_data(path, path 117 ipc/util.h void __init ipc_init_proc_interface(const char *path, const char *header, path 121 ipc/util.h #define ipc_init_proc_interface(path, header, ids, show) do {} while (0) path 2023 kernel/audit.c const struct path *path) path 2036 kernel/audit.c p = d_path(path, pathname, PATH_MAX+11); path 121 kernel/audit.h struct path pwd; path 220 kernel/audit.h extern int parent_len(const char *path); path 221 kernel/audit.h extern int audit_compare_dname_path(const struct qstr *dname, const char *path, int plen); path 257 kernel/audit.h extern int audit_to_watch(struct audit_krule *krule, char *path, int len, path 29 kernel/audit_fsnotify.c char *path; /* insertion path */ path 43 kernel/audit_fsnotify.c kfree(audit_mark->path); path 57 kernel/audit_fsnotify.c return mark->path; path 77 kernel/audit_fsnotify.c struct path path; path 85 kernel/audit_fsnotify.c dentry = kern_path_locked(pathname, &path); path 88 kernel/audit_fsnotify.c inode = path.dentry->d_inode; path 99 kernel/audit_fsnotify.c audit_mark->path = pathname; path 110 kernel/audit_fsnotify.c path_put(&path); path 126 kernel/audit_fsnotify.c audit_log_untrustedstring(ab, audit_mark->path); path 171 kernel/audit_fsnotify.c inode = ((const struct path *)data)->dentry->d_inode; path 182 kernel/audit_fsnotify.c if (audit_compare_dname_path(dname, audit_mark->path, AUDIT_NAME_FULL)) path 687 kernel/audit_tree.c struct path path; path 698 kernel/audit_tree.c err = kern_path(tree->pathname, 0, &path); path 702 kernel/audit_tree.c root_mnt = collect_mounts(&path); path 703 kernel/audit_tree.c path_put(&path); path 805 kernel/audit_tree.c struct path path; path 830 kernel/audit_tree.c err = kern_path(tree->pathname, 0, &path); path 833 kernel/audit_tree.c mnt = collect_mounts(&path); path 834 kernel/audit_tree.c path_put(&path); path 876 kernel/audit_tree.c struct path path1, path2; path 39 kernel/audit_watch.c char *path; /* insertion path */ path 110 kernel/audit_watch.c kfree(watch->path); path 125 kernel/audit_watch.c return watch->path; path 136 kernel/audit_watch.c static struct audit_parent *audit_init_parent(struct path *path) path 138 kernel/audit_watch.c struct inode *inode = d_backing_inode(path->dentry); path 160 kernel/audit_watch.c static struct audit_watch *audit_init_watch(char *path) path 170 kernel/audit_watch.c watch->path = path; path 178 kernel/audit_watch.c int audit_to_watch(struct audit_krule *krule, char *path, int len, u32 op) path 185 kernel/audit_watch.c if (path[0] != '/' || path[len-1] == '/' || path 191 kernel/audit_watch.c watch = audit_init_watch(path); path 204 kernel/audit_watch.c char *path; path 207 kernel/audit_watch.c path = kstrdup(old->path, GFP_KERNEL); path 208 kernel/audit_watch.c if (unlikely(!path)) path 211 kernel/audit_watch.c new = audit_init_watch(path); path 213 kernel/audit_watch.c kfree(path); path 237 kernel/audit_watch.c audit_log_untrustedstring(ab, w->path); path 256 kernel/audit_watch.c if (audit_compare_dname_path(dname, owatch->path, path 349 kernel/audit_watch.c static int audit_get_nd(struct audit_watch *watch, struct path *parent) path 351 kernel/audit_watch.c struct dentry *d = kern_path_locked(watch->path, parent); path 375 kernel/audit_watch.c if (strcmp(watch->path, w->path)) path 405 kernel/audit_watch.c struct path parent_path; path 485 kernel/audit_watch.c inode = d_backing_inode(((const struct path *)data)->dentry); path 1269 kernel/auditfilter.c int parent_len(const char *path) path 1274 kernel/auditfilter.c plen = strlen(path); path 1280 kernel/auditfilter.c p = path + plen - 1; path 1281 kernel/auditfilter.c while ((*p == '/') && (p > path)) path 1285 kernel/auditfilter.c while ((*p != '/') && (p > path)) path 1292 kernel/auditfilter.c return p - path; path 1303 kernel/auditfilter.c int audit_compare_dname_path(const struct qstr *dname, const char *path, int parentlen) path 1309 kernel/auditfilter.c pathlen = strlen(path); path 1313 kernel/auditfilter.c parentlen = parentlen == AUDIT_NAME_FULL ? parent_len(path) : parentlen; path 1317 kernel/auditfilter.c p = path + parentlen; path 1318 kernel/auditsc.c const struct path *path, int record_num, int *call_panic) path 1328 kernel/auditsc.c if (path) path 1329 kernel/auditsc.c audit_log_d_path(ab, " name=", path); path 387 kernel/bpf/inode.c struct path path; path 391 kernel/bpf/inode.c dentry = kern_path_create(AT_FDCWD, pathname->name, &path, 0); path 397 kernel/bpf/inode.c ret = security_path_mknod(&path, dentry, mode, 0); path 401 kernel/bpf/inode.c dir = d_inode(path.dentry); path 418 kernel/bpf/inode.c done_path_create(&path, dentry); path 451 kernel/bpf/inode.c struct path path; path 455 kernel/bpf/inode.c ret = kern_path(pathname->name, LOOKUP_FOLLOW, &path); path 459 kernel/bpf/inode.c inode = d_backing_inode(path.dentry); path 470 kernel/bpf/inode.c touch_atime(&path); path 472 kernel/bpf/inode.c path_put(&path); path 475 kernel/bpf/inode.c path_put(&path); path 542 kernel/bpf/inode.c struct path path; path 543 kernel/bpf/inode.c int ret = kern_path(name, LOOKUP_FOLLOW, &path); path 546 kernel/bpf/inode.c prog = __get_prog_inode(d_backing_inode(path.dentry), type); path 548 kernel/bpf/inode.c touch_atime(&path); path 549 kernel/bpf/inode.c path_put(&path); path 303 kernel/bpf/offload.c struct path ns_path; path 528 kernel/bpf/offload.c struct path ns_path; path 6254 kernel/cgroup/cgroup.c struct cgroup *cgroup_get_from_path(const char *path) path 6261 kernel/cgroup/cgroup.c kn = kernfs_walk_and_get(cgrp_dfl_root.cgrp.kn, path); path 6893 kernel/events/core.c if (filter->path.dentry) { path 7280 kernel/events/core.c struct path ns_path; path 7569 kernel/events/core.c if (!filter->path.dentry) path 7572 kernel/events/core.c if (d_inode(filter->path.dentry) != file_inode(file)) path 9176 kernel/events/core.c path_put(&filter->path); path 9259 kernel/events/core.c if (filter->path.dentry) { path 9459 kernel/events/core.c &filter->path); path 9467 kernel/events/core.c if (!filter->path.dentry || path 9468 kernel/events/core.c !S_ISREG(d_inode(filter->path.dentry) path 303 kernel/gcov/fs.c static char *link_target(const char *dir, const char *path, const char *ext) path 309 kernel/gcov/fs.c copy = kstrdup(path, GFP_KERNEL); path 278 kernel/sched/fair.c static inline void cfs_rq_tg_path(struct cfs_rq *cfs_rq, char *path, int len) path 280 kernel/sched/fair.c if (!path) path 284 kernel/sched/fair.c autogroup_path(cfs_rq->tg, path, len); path 286 kernel/sched/fair.c cgroup_path(cfs_rq->tg->css.cgroup, path, len); path 288 kernel/sched/fair.c strlcpy(path, "(null)", len); path 465 kernel/sched/fair.c static inline void cfs_rq_tg_path(struct cfs_rq *cfs_rq, char *path, int len) path 467 kernel/sched/fair.c if (path) path 468 kernel/sched/fair.c strlcpy(path, "(null)", len); path 1205 kernel/sysctl_binary.c static const struct bin_table *get_sysctl(const int *name, int nlen, char *path) path 1214 kernel/sysctl_binary.c memcpy(path, "sys/", 4); path 1215 kernel/sysctl_binary.c path += 4; path 1237 kernel/sysctl_binary.c memcpy(path, dev->name, len); path 1244 kernel/sysctl_binary.c memcpy(path, table->procname, len); path 1247 kernel/sysctl_binary.c path += len; path 1249 kernel/sysctl_binary.c *path++ = '/'; path 1253 kernel/sysctl_binary.c *path = '\0'; path 301 kernel/trace/trace_event_perf.c char *path = NULL; path 307 kernel/trace/trace_event_perf.c path = strndup_user(u64_to_user_ptr(p_event->attr.uprobe_path), path 309 kernel/trace/trace_event_perf.c if (IS_ERR(path)) { path 310 kernel/trace/trace_event_perf.c ret = PTR_ERR(path); path 313 kernel/trace/trace_event_perf.c if (path[0] == '\0') { path 318 kernel/trace/trace_event_perf.c tp_event = create_local_trace_uprobe(path, p_event->attr.probe_offset, path 336 kernel/trace/trace_event_perf.c kfree(path); path 327 kernel/trace/trace_seq.c int trace_seq_path(struct trace_seq *s, const struct path *path) path 341 kernel/trace/trace_seq.c seq_buf_path(&s->seq, path, "\n"); path 58 kernel/trace/trace_uprobe.c struct path path; path 369 kernel/trace/trace_uprobe.c path_put(&tu->path); path 412 kernel/trace/trace_uprobe.c struct inode *comp_inode = d_real_inode(comp->path.dentry); path 417 kernel/trace/trace_uprobe.c if (comp_inode != d_real_inode(orig->path.dentry) || path 476 kernel/trace/trace_uprobe.c struct inode *new_inode = d_real_inode(new->path.dentry); path 479 kernel/trace/trace_uprobe.c if (new_inode == d_real_inode(tmp->path.dentry) && path 539 kernel/trace/trace_uprobe.c struct path path; path 581 kernel/trace/trace_uprobe.c ret = kern_path(filename, LOOKUP_FOLLOW, &path); path 588 kernel/trace/trace_uprobe.c if (!d_is_reg(path.dentry)) { path 665 kernel/trace/trace_uprobe.c tu->path = path; path 700 kernel/trace/trace_uprobe.c path_put(&path); path 1044 kernel/trace/trace_uprobe.c tu->inode = d_real_inode(tu->path.dentry); path 1560 kernel/trace/trace_uprobe.c struct path path; path 1563 kernel/trace/trace_uprobe.c ret = kern_path(name, LOOKUP_FOLLOW, &path); path 1567 kernel/trace/trace_uprobe.c if (!d_is_reg(path.dentry)) { path 1568 kernel/trace/trace_uprobe.c path_put(&path); path 1583 kernel/trace/trace_uprobe.c path_put(&path); path 1588 kernel/trace/trace_uprobe.c tu->path = path; path 112 kernel/umh.c retval = do_execve(getname_kernel(sub_info->path), path 379 kernel/umh.c struct subprocess_info *call_usermodehelper_setup(const char *path, char **argv, path 393 kernel/umh.c sub_info->path = CONFIG_STATIC_USERMODEHELPER_PATH; path 395 kernel/umh.c sub_info->path = path; path 427 kernel/umh.c sub_info->path = "none"; path 564 kernel/umh.c if (!sub_info->path) { path 579 kernel/umh.c if (strlen(sub_info->path) == 0) path 629 kernel/umh.c int call_usermodehelper(const char *path, char **argv, char **envp, int wait) path 634 kernel/umh.c info = call_usermodehelper_setup(path, argv, envp, gfp_mask, path 71 lib/dynamic_debug.c static inline const char *trim_prefix(const char *path) path 75 lib/dynamic_debug.c if (strncmp(path, __FILE__, skip)) path 78 lib/dynamic_debug.c return path + skip; path 59 lib/earlycpio.c struct cpio_data find_cpio_data(const char *path, void *data, path 67 lib/earlycpio.c size_t mypathsize = strlen(path); path 119 lib/earlycpio.c !memcmp(p, path, mypathsize)) { path 147 lib/kobject.c static void fill_kobj_path(struct kobject *kobj, char *path, int length) path 156 lib/kobject.c memcpy(path + length, kobject_name(parent), cur); path 157 lib/kobject.c *(path + --length) = '/'; path 161 lib/kobject.c kobj, __func__, path); path 173 lib/kobject.c char *path; path 179 lib/kobject.c path = kzalloc(len, gfp_mask); path 180 lib/kobject.c if (!path) path 182 lib/kobject.c fill_kobj_path(kobj, path, len); path 184 lib/kobject.c return path; path 265 lib/seq_buf.c int seq_buf_path(struct seq_buf *s, const struct path *path, const char *esc) path 274 lib/seq_buf.c char *p = d_path(path, buf, size); path 283 lib/test_stackinit.c static int noinline __leaf_switch_none(int path, bool fill) path 285 lib/test_stackinit.c switch (path) { path 997 mm/shmem.c static int shmem_getattr(const struct path *path, struct kstat *stat, path 1000 mm/shmem.c struct inode *inode = path->dentry->d_inode; path 1149 net/9p/client.c qid.type, (unsigned long long)qid.path, qid.version); path 1216 net/9p/client.c (unsigned long long)wqids[count].path, path 1273 net/9p/client.c (unsigned long long)qid.path, qid.version, iounit); path 1317 net/9p/client.c (unsigned long long)qid->path, path 1362 net/9p/client.c (unsigned long long)qid.path, path 1400 net/9p/client.c qid->type, (unsigned long long)qid->path, qid->version); path 1721 net/9p/client.c (unsigned long long)ret->qid.path, ret->qid.version, ret->mode, path 1779 net/9p/client.c ret->st_result_mask, ret->qid.type, ret->qid.path, path 1843 net/9p/client.c (unsigned long long)wst->qid.path, wst->qid.version, wst->mode, path 2156 net/9p/client.c (unsigned long long)qid->path, qid->version); path 2187 net/9p/client.c (unsigned long long)qid->path, qid->version); path 186 net/9p/protocol.c &qid->path); path 416 net/9p/protocol.c qid->path); path 150 net/ax25/sysctl_net_ax25.c char path[sizeof("net/ax25/") + IFNAMSIZ]; path 161 net/ax25/sysctl_net_ax25.c snprintf(path, sizeof(path), "net/ax25/%s", ax25_dev->dev->name); path 162 net/ax25/sysctl_net_ax25.c ax25_dev->sysheader = register_net_sysctl(&init_net, path, table); path 214 net/decnet/dn_dev.c char path[sizeof("net/decnet/conf/") + IFNAMSIZ]; path 225 net/decnet/dn_dev.c snprintf(path, sizeof(path), "net/decnet/conf/%s", path 230 net/decnet/dn_dev.c t->sysctl_header = register_net_sysctl(&init_net, path, t->dn_dev_vars); path 75 net/hsr/hsr_main.h static inline void set_hsr_tag_path(struct hsr_tag *ht, u16 path) path 78 net/hsr/hsr_main.h htons((ntohs(ht->path_and_LSDU_size) & 0x0FFF) | (path << 12)); path 116 net/hsr/hsr_main.h static inline void set_hsr_stag_path(struct hsr_sup_tag *hst, u16 path) path 118 net/hsr/hsr_main.h set_hsr_tag_path((struct hsr_tag *)hst, path); path 2561 net/ipv4/devinet.c char path[sizeof("net/ipv4/conf/") + IFNAMSIZ]; path 2573 net/ipv4/devinet.c snprintf(path, sizeof(path), "net/ipv4/conf/%s", dev_name); path 2575 net/ipv4/devinet.c t->sysctl_header = register_net_sysctl(net, path, t->devinet_vars); path 107 net/ipv4/xfrm4_policy.c struct dst_entry *path = xdst->route; path 109 net/ipv4/xfrm4_policy.c path->ops->update_pmtu(path, sk, skb, mtu, confirm_neigh); path 116 net/ipv4/xfrm4_policy.c struct dst_entry *path = xdst->route; path 118 net/ipv4/xfrm4_policy.c path->ops->redirect(path, sk, skb); path 6867 net/ipv6/addrconf.c char path[sizeof("net/ipv6/conf/") + IFNAMSIZ]; path 6885 net/ipv6/addrconf.c snprintf(path, sizeof(path), "net/ipv6/conf/%s", dev_name); path 6887 net/ipv6/addrconf.c p->sysctl_header = register_net_sysctl(net, path, table); path 105 net/ipv6/xfrm6_policy.c struct dst_entry *path = xdst->route; path 107 net/ipv6/xfrm6_policy.c path->ops->update_pmtu(path, sk, skb, mtu, confirm_neigh); path 114 net/ipv6/xfrm6_policy.c struct dst_entry *path = xdst->route; path 116 net/ipv6/xfrm6_policy.c path->ops->redirect(path, sk, skb); path 293 net/iucv/af_iucv.c return (skb_queue_len(&iucv->send_skb_q) < iucv->path->msglim); path 454 net/iucv/af_iucv.c struct iucv_path *path = iucv->path; path 456 net/iucv/af_iucv.c if (iucv->path) { path 457 net/iucv/af_iucv.c iucv->path = NULL; path 462 net/iucv/af_iucv.c pr_iucv->path_sever(path, user_data); path 464 net/iucv/af_iucv.c pr_iucv->path_sever(path, NULL); path 465 net/iucv/af_iucv.c iucv_path_free(path); path 590 net/iucv/af_iucv.c iucv->path = NULL; path 754 net/iucv/af_iucv.c if (iucv->path) path 844 net/iucv/af_iucv.c iucv->path = iucv_path_alloc(iucv->msglimit, path 846 net/iucv/af_iucv.c if (!iucv->path) { path 850 net/iucv/af_iucv.c err = pr_iucv->path_connect(iucv->path, &af_iucv_handler, path 854 net/iucv/af_iucv.c iucv_path_free(iucv->path); path 855 net/iucv/af_iucv.c iucv->path = NULL; path 1049 net/iucv/af_iucv.c static int iucv_send_iprm(struct iucv_path *path, struct iucv_message *msg, path 1056 net/iucv/af_iucv.c return pr_iucv->message_send(path, msg, IUCV_IPRMDATA, 0, path 1199 net/iucv/af_iucv.c if (((iucv->path->flags & IUCV_IPRMDATA) & iucv->flags) && path 1201 net/iucv/af_iucv.c err = iucv_send_iprm(iucv->path, &txmsg, skb); path 1213 net/iucv/af_iucv.c pr_iucv->path_sever(iucv->path, NULL); path 1232 net/iucv/af_iucv.c err = pr_iucv->message_send(iucv->path, &txmsg, path 1236 net/iucv/af_iucv.c err = pr_iucv->message_send(iucv->path, &txmsg, path 1300 net/iucv/af_iucv.c struct iucv_path *path, path 1332 net/iucv/af_iucv.c rc = pr_iucv->message_receive(path, msg, path 1336 net/iucv/af_iucv.c rc = pr_iucv->message_receive(path, msg, path 1371 net/iucv/af_iucv.c iucv_process_message(sk, skb, p->path, &p->msg); path 1581 net/iucv/af_iucv.c err = pr_iucv->message_send(iucv->path, &txmsg, path 1603 net/iucv/af_iucv.c iucv->path) { path 1604 net/iucv/af_iucv.c err = pr_iucv->path_quiesce(iucv->path, NULL); path 1711 net/iucv/af_iucv.c val = (iucv->path != NULL) ? iucv->path->msglim /* connected */ path 1736 net/iucv/af_iucv.c static int iucv_callback_connreq(struct iucv_path *path, path 1774 net/iucv/af_iucv.c err = pr_iucv->path_sever(path, user_data); path 1775 net/iucv/af_iucv.c iucv_path_free(path); path 1781 net/iucv/af_iucv.c err = pr_iucv->path_sever(path, user_data); path 1782 net/iucv/af_iucv.c iucv_path_free(path); path 1789 net/iucv/af_iucv.c err = pr_iucv->path_sever(path, user_data); path 1790 net/iucv/af_iucv.c iucv_path_free(path); path 1805 net/iucv/af_iucv.c niucv->path = path; path 1814 net/iucv/af_iucv.c path->msglim = iucv->msglimit; path 1815 net/iucv/af_iucv.c err = pr_iucv->path_accept(path, &af_iucv_handler, nuser_data, nsk); path 1833 net/iucv/af_iucv.c static void iucv_callback_connack(struct iucv_path *path, u8 ipuser[16]) path 1835 net/iucv/af_iucv.c struct sock *sk = path->private; path 1841 net/iucv/af_iucv.c static void iucv_callback_rx(struct iucv_path *path, struct iucv_message *msg) path 1843 net/iucv/af_iucv.c struct sock *sk = path->private; path 1850 net/iucv/af_iucv.c pr_iucv->message_reject(path, msg); path 1869 net/iucv/af_iucv.c iucv_process_message(sk, skb, path, msg); path 1876 net/iucv/af_iucv.c save_msg->path = path; path 1885 net/iucv/af_iucv.c static void iucv_callback_txdone(struct iucv_path *path, path 1888 net/iucv/af_iucv.c struct sock *sk = path->private; path 1923 net/iucv/af_iucv.c static void iucv_callback_connrej(struct iucv_path *path, u8 ipuser[16]) path 1925 net/iucv/af_iucv.c struct sock *sk = path->private; path 1941 net/iucv/af_iucv.c static void iucv_callback_shutdown(struct iucv_path *path, u8 ipuser[16]) path 1943 net/iucv/af_iucv.c struct sock *sk = path->private; path 864 net/iucv/iucv.c int iucv_path_accept(struct iucv_path *path, struct iucv_handler *handler, path 878 net/iucv/iucv.c parm->ctrl.ippathid = path->pathid; path 879 net/iucv/iucv.c parm->ctrl.ipmsglim = path->msglim; path 882 net/iucv/iucv.c parm->ctrl.ipflags1 = path->flags; path 886 net/iucv/iucv.c path->private = private; path 887 net/iucv/iucv.c path->msglim = parm->ctrl.ipmsglim; path 888 net/iucv/iucv.c path->flags = parm->ctrl.ipflags1; path 911 net/iucv/iucv.c int iucv_path_connect(struct iucv_path *path, struct iucv_handler *handler, path 926 net/iucv/iucv.c parm->ctrl.ipmsglim = path->msglim; path 927 net/iucv/iucv.c parm->ctrl.ipflags1 = path->flags; path 945 net/iucv/iucv.c path->pathid = parm->ctrl.ippathid; path 946 net/iucv/iucv.c path->msglim = parm->ctrl.ipmsglim; path 947 net/iucv/iucv.c path->flags = parm->ctrl.ipflags1; path 948 net/iucv/iucv.c path->handler = handler; path 949 net/iucv/iucv.c path->private = private; path 950 net/iucv/iucv.c list_add_tail(&path->list, &handler->paths); path 951 net/iucv/iucv.c iucv_path_table[path->pathid] = path; path 974 net/iucv/iucv.c int iucv_path_quiesce(struct iucv_path *path, u8 *userdata) path 988 net/iucv/iucv.c parm->ctrl.ippathid = path->pathid; path 1006 net/iucv/iucv.c int iucv_path_resume(struct iucv_path *path, u8 *userdata) path 1020 net/iucv/iucv.c parm->ctrl.ippathid = path->pathid; path 1036 net/iucv/iucv.c int iucv_path_sever(struct iucv_path *path, u8 *userdata) path 1047 net/iucv/iucv.c rc = iucv_sever_pathid(path->pathid, userdata); path 1048 net/iucv/iucv.c iucv_path_table[path->pathid] = NULL; path 1049 net/iucv/iucv.c list_del_init(&path->list); path 1068 net/iucv/iucv.c int iucv_message_purge(struct iucv_path *path, struct iucv_message *msg, path 1081 net/iucv/iucv.c parm->purge.ippathid = path->pathid; path 1108 net/iucv/iucv.c static int iucv_message_receive_iprmdata(struct iucv_path *path, path 1158 net/iucv/iucv.c int __iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, path 1165 net/iucv/iucv.c return iucv_message_receive_iprmdata(path, msg, flags, path 1176 net/iucv/iucv.c parm->db.ippathid = path->pathid; path 1208 net/iucv/iucv.c int iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, path 1214 net/iucv/iucv.c return iucv_message_receive_iprmdata(path, msg, flags, path 1217 net/iucv/iucv.c rc = __iucv_message_receive(path, msg, flags, buffer, size, residual); path 1234 net/iucv/iucv.c int iucv_message_reject(struct iucv_path *path, struct iucv_message *msg) path 1246 net/iucv/iucv.c parm->db.ippathid = path->pathid; path 1272 net/iucv/iucv.c int iucv_message_reply(struct iucv_path *path, struct iucv_message *msg, path 1286 net/iucv/iucv.c parm->dpl.ippathid = path->pathid; path 1294 net/iucv/iucv.c parm->db.ippathid = path->pathid; path 1323 net/iucv/iucv.c int __iucv_message_send(struct iucv_path *path, struct iucv_message *msg, path 1337 net/iucv/iucv.c parm->dpl.ippathid = path->pathid; path 1346 net/iucv/iucv.c parm->db.ippathid = path->pathid; path 1377 net/iucv/iucv.c int iucv_message_send(struct iucv_path *path, struct iucv_message *msg, path 1383 net/iucv/iucv.c rc = __iucv_message_send(path, msg, flags, srccls, buffer, size); path 1408 net/iucv/iucv.c int iucv_message_send2way(struct iucv_path *path, struct iucv_message *msg, path 1423 net/iucv/iucv.c parm->dpl.ippathid = path->pathid; path 1424 net/iucv/iucv.c parm->dpl.ipflags1 = path->flags; /* priority message */ path 1432 net/iucv/iucv.c parm->db.ippathid = path->pathid; path 1433 net/iucv/iucv.c parm->db.ipflags1 = path->flags; /* priority message */ path 1475 net/iucv/iucv.c struct iucv_path *path; path 1481 net/iucv/iucv.c path = iucv_path_alloc(ipp->ipmsglim, ipp->ipflags1, GFP_ATOMIC); path 1482 net/iucv/iucv.c if (!path) path 1484 net/iucv/iucv.c path->pathid = ipp->ippathid; path 1485 net/iucv/iucv.c iucv_path_table[path->pathid] = path; path 1497 net/iucv/iucv.c list_add(&path->list, &handler->paths); path 1498 net/iucv/iucv.c path->handler = handler; path 1499 net/iucv/iucv.c if (!handler->path_pending(path, ipp->ipvmid, ipp->ipuser)) path 1501 net/iucv/iucv.c list_del(&path->list); path 1502 net/iucv/iucv.c path->handler = NULL; path 1505 net/iucv/iucv.c iucv_path_table[path->pathid] = NULL; path 1506 net/iucv/iucv.c iucv_path_free(path); path 1535 net/iucv/iucv.c struct iucv_path *path = iucv_path_table[ipc->ippathid]; path 1537 net/iucv/iucv.c if (path) path 1538 net/iucv/iucv.c path->flags = ipc->ipflags1; path 1539 net/iucv/iucv.c if (path && path->handler && path->handler->path_complete) path 1540 net/iucv/iucv.c path->handler->path_complete(path, ipc->ipuser); path 1565 net/iucv/iucv.c struct iucv_path *path = iucv_path_table[ips->ippathid]; path 1567 net/iucv/iucv.c if (!path || !path->handler) /* Already severed */ path 1569 net/iucv/iucv.c if (path->handler->path_severed) path 1570 net/iucv/iucv.c path->handler->path_severed(path, ips->ipuser); path 1572 net/iucv/iucv.c iucv_sever_pathid(path->pathid, NULL); path 1573 net/iucv/iucv.c iucv_path_table[path->pathid] = NULL; path 1574 net/iucv/iucv.c list_del(&path->list); path 1575 net/iucv/iucv.c iucv_path_free(path); path 1601 net/iucv/iucv.c struct iucv_path *path = iucv_path_table[ipq->ippathid]; path 1603 net/iucv/iucv.c if (path && path->handler && path->handler->path_quiesced) path 1604 net/iucv/iucv.c path->handler->path_quiesced(path, ipq->ipuser); path 1629 net/iucv/iucv.c struct iucv_path *path = iucv_path_table[ipr->ippathid]; path 1631 net/iucv/iucv.c if (path && path->handler && path->handler->path_resumed) path 1632 net/iucv/iucv.c path->handler->path_resumed(path, ipr->ipuser); path 1660 net/iucv/iucv.c struct iucv_path *path = iucv_path_table[imc->ippathid]; path 1663 net/iucv/iucv.c if (path && path->handler && path->handler->message_complete) { path 1671 net/iucv/iucv.c path->handler->message_complete(path, &msg); path 1705 net/iucv/iucv.c struct iucv_path *path = iucv_path_table[imp->ippathid]; path 1708 net/iucv/iucv.c if (path && path->handler && path->handler->message_pending) { path 1718 net/iucv/iucv.c path->handler->message_pending(path, &msg); path 1401 net/mpls/af_mpls.c char path[sizeof("net/mpls/conf/") + IFNAMSIZ]; path 1419 net/mpls/af_mpls.c snprintf(path, sizeof(path), "net/mpls/conf/%s", dev->name); path 1421 net/mpls/af_mpls.c mdev->sysctl = register_net_sysctl(net, path, table); path 55 net/netfilter/xt_bpf.c static int __bpf_mt_check_path(const char *path, struct bpf_prog **ret) path 57 net/netfilter/xt_bpf.c if (strnlen(path, XT_BPF_PATH_MAX) == XT_BPF_PATH_MAX) path 60 net/netfilter/xt_bpf.c *ret = bpf_prog_get_type_path(path, BPF_PROG_TYPE_SOCKET_FILTER); path 84 net/netfilter/xt_bpf.c return __bpf_mt_check_path(info->path, &info->filter); path 56 net/netfilter/xt_cgroup.c cgrp = cgroup_get_from_path(info->path); path 88 net/netfilter/xt_cgroup.c cgrp = cgroup_get_from_path(info->path); path 758 net/smc/af_smc.c if (rdma_supported && aclc.hdr.path == SMC_TYPE_R) path 760 net/smc/af_smc.c else if (ism_supported && aclc.hdr.path == SMC_TYPE_D) path 1292 net/smc/af_smc.c if (pclc->hdr.path == SMC_TYPE_D || pclc->hdr.path == SMC_TYPE_B) { path 1299 net/smc/af_smc.c else if (pclc->hdr.path == SMC_TYPE_D) path 1312 net/smc/af_smc.c if (pclc->hdr.path == SMC_TYPE_B) path 52 net/smc/smc_clc.c if (clcm->path != SMC_TYPE_R && clcm->path != SMC_TYPE_D && path 53 net/smc/smc_clc.c clcm->path != SMC_TYPE_B) path 69 net/smc/smc_clc.c if (clcm->path != SMC_TYPE_R && clcm->path != SMC_TYPE_D) path 72 net/smc/smc_clc.c if ((clcm->path == SMC_TYPE_R && path 74 net/smc/smc_clc.c (clcm->path == SMC_TYPE_D && path 325 net/smc/smc_clc.c (clcm->path != SMC_TYPE_R && clcm->path != SMC_TYPE_D && path 326 net/smc/smc_clc.c clcm->path != SMC_TYPE_B) || path 418 net/smc/smc_clc.c pclc.hdr.path = smc_type; path 487 net/smc/smc_clc.c cclc.hdr.path = SMC_TYPE_D; path 501 net/smc/smc_clc.c cclc.hdr.path = SMC_TYPE_R; path 560 net/smc/smc_clc.c aclc.hdr.path = SMC_TYPE_D; path 573 net/smc/smc_clc.c aclc.hdr.path = SMC_TYPE_R; path 62 net/smc/smc_clc.h path : 2; path 64 net/smc/smc_clc.h u8 path : 2, path 119 net/sysctl_net.c const char *path, struct ctl_table *table) path 121 net/sysctl_net.c return __register_sysctl_table(&net->sysctls, path, table); path 316 net/unix/af_unix.c struct dentry *dentry = unix_sk(s)->path.dentry; path 518 net/unix/af_unix.c struct path path; path 529 net/unix/af_unix.c path = u->path; path 530 net/unix/af_unix.c u->path.dentry = NULL; path 531 net/unix/af_unix.c u->path.mnt = NULL; path 567 net/unix/af_unix.c if (path.dentry) path 568 net/unix/af_unix.c path_put(&path); path 784 net/unix/af_unix.c u->path.dentry = NULL; path 785 net/unix/af_unix.c u->path.mnt = NULL; path 916 net/unix/af_unix.c struct path path; path 921 net/unix/af_unix.c err = kern_path(sunname->sun_path, LOOKUP_FOLLOW, &path); path 924 net/unix/af_unix.c inode = d_backing_inode(path.dentry); path 937 net/unix/af_unix.c touch_atime(&path); path 939 net/unix/af_unix.c path_put(&path); path 951 net/unix/af_unix.c dentry = unix_sk(u)->path.dentry; path 953 net/unix/af_unix.c touch_atime(&unix_sk(u)->path); path 960 net/unix/af_unix.c path_put(&path); path 966 net/unix/af_unix.c static int unix_mknod(const char *sun_path, umode_t mode, struct path *res) path 969 net/unix/af_unix.c struct path path; path 975 net/unix/af_unix.c dentry = kern_path_create(AT_FDCWD, sun_path, &path, 0); path 983 net/unix/af_unix.c err = security_path_mknod(&path, dentry, mode, 0); path 985 net/unix/af_unix.c err = vfs_mknod(d_inode(path.dentry), dentry, mode, 0); path 987 net/unix/af_unix.c res->mnt = mntget(path.mnt); path 991 net/unix/af_unix.c done_path_create(&path, dentry); path 1006 net/unix/af_unix.c struct path path = { }; path 1026 net/unix/af_unix.c err = unix_mknod(sun_path, mode, &path); path 1054 net/unix/af_unix.c hash = d_backing_inode(path.dentry)->i_ino & (UNIX_HASH_SIZE - 1); path 1056 net/unix/af_unix.c u->path = path; path 1081 net/unix/af_unix.c path_put(&path); path 1360 net/unix/af_unix.c if (otheru->path.dentry) { path 1361 net/unix/af_unix.c path_get(&otheru->path); path 1362 net/unix/af_unix.c newu->path = otheru->path; path 2535 net/unix/af_unix.c struct path path; path 2545 net/unix/af_unix.c path = unix_sk(sk)->path; path 2546 net/unix/af_unix.c if (!path.dentry) path 2549 net/unix/af_unix.c path_get(&path); path 2555 net/unix/af_unix.c f = dentry_open(&path, O_PATH, current_cred()); path 2564 net/unix/af_unix.c path_put(&path); path 28 net/unix/diag.c struct dentry *dentry = unix_sk(sk)->path.dentry; path 2497 net/xfrm/xfrm_policy.c static void xfrm_init_path(struct xfrm_dst *path, struct dst_entry *dst, path 2502 net/xfrm/xfrm_policy.c path->path_cookie = rt6_get_cookie(rt); path 2503 net/xfrm/xfrm_policy.c path->u.rt6.rt6i_nfheader_len = nfheader_len; path 2632 net/xfrm/xfrm_policy.c xdst0->path = dst; path 2904 net/xfrm/xfrm_policy.c xdst->path = dst; path 3887 net/xfrm/xfrm_policy.c const struct dst_entry *path = xfrm_dst_path(dst); path 3891 net/xfrm/xfrm_policy.c return path->ops->neigh_lookup(path, skb, daddr); path 3896 net/xfrm/xfrm_policy.c const struct dst_entry *path = xfrm_dst_path(dst); path 3899 net/xfrm/xfrm_policy.c path->ops->confirm_neigh(path, daddr); path 51 samples/auxdisplay/cfag12864b-example.c static int cfag12864b_init(char *path) path 53 samples/auxdisplay/cfag12864b-example.c cfag12864b_fd = open(path, O_RDWR); path 508 samples/bpf/bpf_load.c static int do_load_bpf_file(const char *path, fixup_map_cb fixup_map) path 526 samples/bpf/bpf_load.c fd = open(path, O_RDONLY, 0); path 659 samples/bpf/bpf_load.c int load_bpf_file(char *path) path 661 samples/bpf/bpf_load.c return do_load_bpf_file(path, NULL); path 664 samples/bpf/bpf_load.c int load_bpf_file_fixup_map(const char *path, fixup_map_cb fixup_map) path 666 samples/bpf/bpf_load.c return do_load_bpf_file(path, fixup_map); path 53 samples/bpf/bpf_load.h int load_bpf_file(char *path); path 54 samples/bpf/bpf_load.h int load_bpf_file_fixup_map(const char *path, fixup_map_cb fixup_map); path 915 samples/mic/mpssd/mpssd.c char path[PATH_MAX]; path 918 samples/mic/mpssd/mpssd.c snprintf(path, PATH_MAX, "/dev/vop_virtio%d", mic->id); path 919 samples/mic/mpssd/mpssd.c fd = open(path, O_RDWR); path 921 samples/mic/mpssd/mpssd.c mpsslog("Could not open %s %s\n", path, strerror(errno)); path 55 samples/pidfd/pidfd-metadata.c char path[100]; path 57 samples/pidfd/pidfd-metadata.c snprintf(path, sizeof(path), "/proc/%d", pid); path 58 samples/pidfd/pidfd-metadata.c procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC); path 60 samples/pidfd/pidfd-metadata.c warn("Failed to open %s\n", path); path 457 samples/qmi/qmi_sample_client.c char path[20]; path 478 samples/qmi/qmi_sample_client.c snprintf(path, sizeof(path), "%d:%d", sq->sq_node, sq->sq_port); path 480 samples/qmi/qmi_sample_client.c sample->de_dir = debugfs_create_dir(path, qmi_debug_dir); path 107 samples/seccomp/user-trap.c char path[PATH_MAX], source[PATH_MAX], target[PATH_MAX]; path 127 samples/seccomp/user-trap.c snprintf(path, sizeof(path), "/proc/%d/mem", req->pid); path 128 samples/seccomp/user-trap.c mem = open(path, O_RDONLY); path 390 samples/uhid/uhid-example.c const char *path = "/dev/uhid"; path 408 samples/uhid/uhid-example.c fprintf(stderr, "Usage: %s [%s]\n", argv[0], path); path 411 samples/uhid/uhid-example.c path = argv[1]; path 415 samples/uhid/uhid-example.c fprintf(stderr, "Open uhid-cdev %s\n", path); path 416 samples/uhid/uhid-example.c fd = open(path, O_RDWR | O_CLOEXEC); path 418 samples/uhid/uhid-example.c fprintf(stderr, "Cannot open uhid-cdev %s: %m\n", path); path 623 scripts/dtc/checks.c char *path; path 635 scripts/dtc/checks.c path = refnode->fullpath; path 636 scripts/dtc/checks.c prop->val = data_insert_at_marker(prop->val, m, path, path 637 scripts/dtc/checks.c strlen(path) + 1); path 231 scripts/dtc/dtc.h struct node *get_node_by_path(struct node *tree, const char *path); path 152 scripts/dtc/fdtput.c const char *path = in_path; path 157 scripts/dtc/fdtput.c while (*path == '/') path 158 scripts/dtc/fdtput.c path++; path 160 scripts/dtc/fdtput.c for (sep = path; *sep; path = sep + 1, offset = node) { path 162 scripts/dtc/fdtput.c sep = strchr(path, '/'); path 164 scripts/dtc/fdtput.c sep = path + strlen(path); path 166 scripts/dtc/fdtput.c node = fdt_subnode_offset_namelen(blob, offset, path, path 167 scripts/dtc/fdtput.c sep - path); path 169 scripts/dtc/fdtput.c node = fdt_add_subnode_namelen(blob, offset, path, path 170 scripts/dtc/fdtput.c sep - path); path 173 scripts/dtc/fdtput.c report_error(path, sep - path, node); path 62 scripts/dtc/libfdt/fdt_overlay.c const char *path = NULL; path 73 scripts/dtc/libfdt/fdt_overlay.c path = fdt_getprop(fdto, fragment, "target-path", &path_len); path 74 scripts/dtc/libfdt/fdt_overlay.c if (path) path 75 scripts/dtc/libfdt/fdt_overlay.c ret = fdt_path_offset(fdt, path); path 97 scripts/dtc/libfdt/fdt_overlay.c *pathp = path ? path : NULL; path 369 scripts/dtc/libfdt/fdt_overlay.c const char *path, uint32_t path_len, path 395 scripts/dtc/libfdt/fdt_overlay.c fixup_off = fdt_path_offset_namelen(fdto, path, path_len); path 444 scripts/dtc/libfdt/fdt_overlay.c const char *path, *name, *fixup_end; path 459 scripts/dtc/libfdt/fdt_overlay.c path = fixup_str; path 464 scripts/dtc/libfdt/fdt_overlay.c path_len = sep - path; path 483 scripts/dtc/libfdt/fdt_overlay.c path, path_len, name, name_len, path 699 scripts/dtc/libfdt/fdt_overlay.c const char *path; path 725 scripts/dtc/libfdt/fdt_overlay.c path = fdt_getprop_by_offset(fdto, prop, &name, &path_len); path 726 scripts/dtc/libfdt/fdt_overlay.c if (!path) path 730 scripts/dtc/libfdt/fdt_overlay.c if (path_len < 1 || memchr(path, '\0', path_len) != &path[path_len - 1]) path 734 scripts/dtc/libfdt/fdt_overlay.c e = path + path_len; path 738 scripts/dtc/libfdt/fdt_overlay.c if (*path != '/') path 742 scripts/dtc/libfdt/fdt_overlay.c s = strchr(path + 1, '/'); path 746 scripts/dtc/libfdt/fdt_overlay.c frag_name = path + 1; path 747 scripts/dtc/libfdt/fdt_overlay.c frag_name_len = s - path - 1; path 235 scripts/dtc/libfdt/fdt_ro.c int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) path 237 scripts/dtc/libfdt/fdt_ro.c const char *end = path + namelen; path 238 scripts/dtc/libfdt/fdt_ro.c const char *p = path; path 244 scripts/dtc/libfdt/fdt_ro.c if (*path != '/') { path 245 scripts/dtc/libfdt/fdt_ro.c const char *q = memchr(path, '/', end - p); path 280 scripts/dtc/libfdt/fdt_ro.c int fdt_path_offset(const void *fdt, const char *path) path 282 scripts/dtc/libfdt/fdt_ro.c return fdt_path_offset_namelen(fdt, path, strlen(path)); path 489 scripts/dtc/libfdt/libfdt.h int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen); path 515 scripts/dtc/libfdt/libfdt.h int fdt_path_offset(const void *fdt, const char *path); path 512 scripts/dtc/livetree.c struct node *get_node_by_path(struct node *tree, const char *path) path 517 scripts/dtc/livetree.c if (!path || ! (*path)) { path 523 scripts/dtc/livetree.c while (path[0] == '/') path 524 scripts/dtc/livetree.c path++; path 526 scripts/dtc/livetree.c p = strchr(path, '/'); path 529 scripts/dtc/livetree.c if (p && (strlen(child->name) == p-path) && path 530 scripts/dtc/livetree.c strprefixeq(path, p - path, child->name)) path 532 scripts/dtc/livetree.c else if (!p && streq(path, child->name)) path 26 scripts/dtc/srcpos.c static char *get_dirname(const char *path) path 28 scripts/dtc/srcpos.c const char *slash = strrchr(path, '/'); path 31 scripts/dtc/srcpos.c int len = slash - path; path 34 scripts/dtc/srcpos.c memcpy(dir, path, len); path 83 scripts/dtc/util.c char *join_path(const char *path, const char *name) path 85 scripts/dtc/util.c int lenp = strlen(path); path 92 scripts/dtc/util.c if ((lenp > 0) && (path[lenp-1] == '/')) { path 98 scripts/dtc/util.c memcpy(str, path, lenp); path 63 scripts/dtc/util.h extern char *join_path(const char *path, const char *name); path 22 scripts/kconfig/confdata.c static bool is_present(const char *path) path 26 scripts/kconfig/confdata.c return !stat(path, &st); path 30 scripts/kconfig/confdata.c static bool is_dir(const char *path) path 34 scripts/kconfig/confdata.c if (stat(path, &st)) path 91 scripts/kconfig/confdata.c static int make_parent_dir(const char *path) path 96 scripts/kconfig/confdata.c strncpy(tmp, path, sizeof(tmp)); path 782 scripts/kconfig/gconf.c GtkTreePath *path = gtk_tree_path_new_from_string(path_string); path 788 scripts/kconfig/gconf.c if (!gtk_tree_model_get_iter(model2, &iter, path)) path 801 scripts/kconfig/gconf.c gtk_tree_path_free(path); path 883 scripts/kconfig/gconf.c GtkTreePath *path; path 894 scripts/kconfig/gconf.c gtk_tree_view_get_path_at_pos(view, tx, ty, &path, &column, &cx, path 897 scripts/kconfig/gconf.c gtk_tree_view_get_cursor(view, &path, &column); path 899 scripts/kconfig/gconf.c if (path == NULL) path 902 scripts/kconfig/gconf.c if (!gtk_tree_model_get_iter(model2, &iter, path)) path 918 scripts/kconfig/gconf.c gtk_tree_view_expand_row(view, path, TRUE); path 923 scripts/kconfig/gconf.c gtk_tree_view_expand_row(view, path, TRUE); path 927 scripts/kconfig/gconf.c gtk_tree_view_expand_row(view, path, TRUE); path 940 scripts/kconfig/gconf.c GtkTreePath *path; path 946 scripts/kconfig/gconf.c gtk_tree_view_get_cursor(view, &path, &column); path 947 scripts/kconfig/gconf.c if (path == NULL) path 951 scripts/kconfig/gconf.c if (gtk_tree_view_row_expanded(view, path)) path 952 scripts/kconfig/gconf.c gtk_tree_view_collapse_row(view, path); path 954 scripts/kconfig/gconf.c gtk_tree_view_expand_row(view, path, FALSE); path 962 scripts/kconfig/gconf.c gtk_tree_model_get_iter(model2, &iter, path); path 1001 scripts/kconfig/gconf.c GtkTreePath *path; path 1010 scripts/kconfig/gconf.c gtk_tree_view_get_path_at_pos(view, tx, ty, &path, &column, &cx, path 1012 scripts/kconfig/gconf.c if (path == NULL) path 1015 scripts/kconfig/gconf.c gtk_tree_model_get_iter(model1, &iter, path); path 1028 scripts/kconfig/gconf.c gtk_tree_view_set_cursor(view, path, NULL, FALSE); path 2407 security/apparmor/apparmorfs.c struct path aa_null; path 2458 security/apparmor/apparmorfs.c struct path path; path 2463 security/apparmor/apparmorfs.c path.mnt = mntget(aafs_mnt); path 2464 security/apparmor/apparmorfs.c path.dentry = dget(ns_dir(ns)); path 2465 security/apparmor/apparmorfs.c nd_jump_link(&path); path 167 security/apparmor/file.c const struct path *path, int flags, char *buffer, path 174 security/apparmor/file.c error = aa_path_name(path, flags, buffer, name, &info, path 294 security/apparmor/file.c const struct path *path, char *buffer, u32 request, path 304 security/apparmor/file.c error = path_name(op, &profile->label, path, path 325 security/apparmor/file.c const struct path *path, int flags, u32 request, path 337 security/apparmor/file.c profile_path_perm(op, profile, path, buffer, request, path 366 security/apparmor/file.c const struct path *link, char *buffer, path 367 security/apparmor/file.c const struct path *target, char *buffer2, path 465 security/apparmor/file.c const struct path *new_dir, struct dentry *new_dentry) path 467 security/apparmor/file.c struct path link = { .mnt = new_dir->mnt, .dentry = new_dentry }; path 468 security/apparmor/file.c struct path target = { .mnt = new_dir->mnt, .dentry = old_dentry }; path 14 security/apparmor/include/apparmorfs.h extern struct path aa_null; path 21 security/apparmor/include/file.h struct path; path 193 security/apparmor/include/file.h const struct path *path, int flags, u32 request, path 197 security/apparmor/include/file.h const struct path *new_dir, struct dentry *new_dentry); path 28 security/apparmor/include/mount.h int aa_remount(struct aa_label *label, const struct path *path, path 31 security/apparmor/include/mount.h int aa_bind_mount(struct aa_label *label, const struct path *path, path 35 security/apparmor/include/mount.h int aa_mount_change_type(struct aa_label *label, const struct path *path, path 38 security/apparmor/include/mount.h int aa_move_mount(struct aa_label *label, const struct path *path, path 42 security/apparmor/include/mount.h const struct path *path, const char *type, unsigned long flags, path 47 security/apparmor/include/mount.h int aa_pivotroot(struct aa_label *label, const struct path *old_path, path 48 security/apparmor/include/mount.h const struct path *new_path); path 25 security/apparmor/include/path.h int aa_path_name(const struct path *path, int flags, char *buffer, path 193 security/apparmor/lsm.c static int common_perm(const char *op, const struct path *path, u32 mask, path 201 security/apparmor/lsm.c error = aa_path_perm(op, label, path, 0, mask, cond); path 215 security/apparmor/lsm.c static int common_perm_cond(const char *op, const struct path *path, u32 mask) path 217 security/apparmor/lsm.c struct path_cond cond = { d_backing_inode(path->dentry)->i_uid, path 218 security/apparmor/lsm.c d_backing_inode(path->dentry)->i_mode path 221 security/apparmor/lsm.c if (!path_mediated_fs(path->dentry)) path 224 security/apparmor/lsm.c return common_perm(op, path, mask, &cond); path 237 security/apparmor/lsm.c static int common_perm_dir_dentry(const char *op, const struct path *dir, path 241 security/apparmor/lsm.c struct path path = { .mnt = dir->mnt, .dentry = dentry }; path 243 security/apparmor/lsm.c return common_perm(op, &path, mask, cond); path 255 security/apparmor/lsm.c static int common_perm_rm(const char *op, const struct path *dir, path 280 security/apparmor/lsm.c static int common_perm_create(const char *op, const struct path *dir, path 291 security/apparmor/lsm.c static int apparmor_path_unlink(const struct path *dir, struct dentry *dentry) path 296 security/apparmor/lsm.c static int apparmor_path_mkdir(const struct path *dir, struct dentry *dentry, path 303 security/apparmor/lsm.c static int apparmor_path_rmdir(const struct path *dir, struct dentry *dentry) path 308 security/apparmor/lsm.c static int apparmor_path_mknod(const struct path *dir, struct dentry *dentry, path 314 security/apparmor/lsm.c static int apparmor_path_truncate(const struct path *path) path 316 security/apparmor/lsm.c return common_perm_cond(OP_TRUNC, path, MAY_WRITE | AA_MAY_SETATTR); path 319 security/apparmor/lsm.c static int apparmor_path_symlink(const struct path *dir, struct dentry *dentry, path 326 security/apparmor/lsm.c static int apparmor_path_link(struct dentry *old_dentry, const struct path *new_dir, path 343 security/apparmor/lsm.c static int apparmor_path_rename(const struct path *old_dir, struct dentry *old_dentry, path 344 security/apparmor/lsm.c const struct path *new_dir, struct dentry *new_dentry) path 354 security/apparmor/lsm.c struct path old_path = { .mnt = old_dir->mnt, path 356 security/apparmor/lsm.c struct path new_path = { .mnt = new_dir->mnt, path 377 security/apparmor/lsm.c static int apparmor_path_chmod(const struct path *path, umode_t mode) path 379 security/apparmor/lsm.c return common_perm_cond(OP_CHMOD, path, AA_MAY_CHMOD); path 382 security/apparmor/lsm.c static int apparmor_path_chown(const struct path *path, kuid_t uid, kgid_t gid) path 384 security/apparmor/lsm.c return common_perm_cond(OP_CHOWN, path, AA_MAY_CHOWN); path 387 security/apparmor/lsm.c static int apparmor_inode_getattr(const struct path *path) path 389 security/apparmor/lsm.c return common_perm_cond(OP_GETATTR, path, AA_MAY_GETATTR); path 516 security/apparmor/lsm.c static int apparmor_sb_mount(const char *dev_name, const struct path *path, path 531 security/apparmor/lsm.c error = aa_remount(label, path, flags, data); path 533 security/apparmor/lsm.c error = aa_bind_mount(label, path, dev_name, flags); path 536 security/apparmor/lsm.c error = aa_mount_change_type(label, path, flags); path 538 security/apparmor/lsm.c error = aa_move_mount(label, path, dev_name); path 540 security/apparmor/lsm.c error = aa_new_mount(label, dev_name, path, type, path 561 security/apparmor/lsm.c static int apparmor_sb_pivotroot(const struct path *old_path, path 562 security/apparmor/lsm.c const struct path *new_path) path 292 security/apparmor/mount.c static int path_flags(struct aa_profile *profile, const struct path *path) path 295 security/apparmor/mount.c AA_BUG(!path); path 298 security/apparmor/mount.c (S_ISDIR(path->dentry->d_inode->i_mode) ? PATH_IS_DIR : 0); path 316 security/apparmor/mount.c const struct path *mntpath, char *buffer, path 372 security/apparmor/mount.c static int match_mnt(struct aa_profile *profile, const struct path *path, path 373 security/apparmor/mount.c char *buffer, struct path *devpath, char *devbuffer, path 394 security/apparmor/mount.c return match_mnt_path_str(profile, path, buffer, devname, type, flags, path 398 security/apparmor/mount.c int aa_remount(struct aa_label *label, const struct path *path, path 407 security/apparmor/mount.c AA_BUG(!path); path 409 security/apparmor/mount.c binary = path->dentry->d_sb->s_type->fs_flags & FS_BINARY_MOUNTDATA; path 413 security/apparmor/mount.c match_mnt(profile, path, buffer, NULL, NULL, NULL, path 420 security/apparmor/mount.c int aa_bind_mount(struct aa_label *label, const struct path *path, path 425 security/apparmor/mount.c struct path old_path; path 429 security/apparmor/mount.c AA_BUG(!path); path 442 security/apparmor/mount.c match_mnt(profile, path, buffer, &old_path, old_buffer, path 450 security/apparmor/mount.c int aa_mount_change_type(struct aa_label *label, const struct path *path, path 458 security/apparmor/mount.c AA_BUG(!path); path 466 security/apparmor/mount.c match_mnt(profile, path, buffer, NULL, NULL, NULL, path 473 security/apparmor/mount.c int aa_move_mount(struct aa_label *label, const struct path *path, path 478 security/apparmor/mount.c struct path old_path; path 482 security/apparmor/mount.c AA_BUG(!path); path 493 security/apparmor/mount.c match_mnt(profile, path, buffer, &old_path, old_buffer, path 502 security/apparmor/mount.c const struct path *path, const char *type, unsigned long flags, path 510 security/apparmor/mount.c struct path tmp_path, *dev_path = NULL; path 513 security/apparmor/mount.c AA_BUG(!path); path 539 security/apparmor/mount.c match_mnt(profile, path, buffer, dev_path, dev_buffer, path 543 security/apparmor/mount.c match_mnt_path_str(profile, path, buffer, dev_name, path 553 security/apparmor/mount.c static int profile_umount(struct aa_profile *profile, struct path *path, path 562 security/apparmor/mount.c AA_BUG(!path); path 567 security/apparmor/mount.c error = aa_path_name(path, path_flags(profile, path), buffer, &name, path 589 security/apparmor/mount.c struct path path = { .mnt = mnt, .dentry = mnt->mnt_root }; path 596 security/apparmor/mount.c profile_umount(profile, &path, buffer)); path 607 security/apparmor/mount.c const struct path *new_path, path 609 security/apparmor/mount.c const struct path *old_path, path 658 security/apparmor/mount.c int aa_pivotroot(struct aa_label *label, const struct path *old_path, path 659 security/apparmor/mount.c const struct path *new_path) path 48 security/apparmor/path.c static int disconnect(const struct path *path, char *buf, char **name, path 55 security/apparmor/path.c our_mnt(path->mnt))) { path 88 security/apparmor/path.c static int d_namespace_path(const struct path *path, char *buf, char **name, path 97 security/apparmor/path.c if (path->mnt->mnt_flags & MNT_INTERNAL) { path 99 security/apparmor/path.c res = dentry_path(path->dentry, buf, buflen); path 105 security/apparmor/path.c if (path->dentry->d_sb->s_magic == PROC_SUPER_MAGIC && path 113 security/apparmor/path.c error = disconnect(path, buf, name, flags, path 120 security/apparmor/path.c struct path root; path 122 security/apparmor/path.c res = __d_path(path, &root, buf, buflen); path 125 security/apparmor/path.c res = d_absolute_path(path, buf, buflen); path 126 security/apparmor/path.c if (!our_mnt(path->mnt)) path 140 security/apparmor/path.c res = dentry_path_raw(path->dentry, buf, buflen); path 146 security/apparmor/path.c } else if (!our_mnt(path->mnt)) path 152 security/apparmor/path.c error = disconnect(path, buf, name, flags, disconnected); path 160 security/apparmor/path.c if (d_unlinked(path->dentry) && d_is_positive(path->dentry) && path 197 security/apparmor/path.c int aa_path_name(const struct path *path, int flags, char *buffer, path 201 security/apparmor/path.c int error = d_namespace_path(path, buffer, &str, flags, disconnected); path 172 security/integrity/digsig.c int __init integrity_load_x509(const unsigned int id, const char *path) path 179 security/integrity/digsig.c rc = kernel_read_file_from_path(path, &data, &size, 0, path 182 security/integrity/digsig.c pr_err("Unable to open file: %s (%d)", path, rc); path 188 security/integrity/digsig.c pr_info("Loading X.509 certificate: %s\n", path); path 229 security/integrity/ima/ima.h const char *ima_d_path(const struct path *path, char **pathbuf, char *filename); path 384 security/integrity/ima/ima_api.c const char *ima_d_path(const struct path *path, char **pathbuf, char *namebuf) path 390 security/integrity/ima/ima_api.c pathname = d_absolute_path(path, *pathbuf, PATH_MAX); path 399 security/integrity/ima/ima_api.c strlcpy(namebuf, path->dentry->d_name.name, NAME_MAX); path 275 security/integrity/ima/ima_fs.c static ssize_t ima_read_policy(char *path) path 280 security/integrity/ima/ima_fs.c int rc, pathlen = strlen(path); path 285 security/integrity/ima/ima_fs.c datap = path; path 288 security/integrity/ima/ima_fs.c rc = kernel_read_file_from_path(path, &data, &size, 0, READING_POLICY); path 290 security/integrity/ima/ima_fs.c pr_err("Unable to open file: %s (%d)", path, rc); path 160 security/integrity/integrity.h int __init integrity_load_x509(const unsigned int id, const char *path); path 203 security/keys/big_key.c struct path *path = (struct path *)&prep->payload.data[big_key_path]; path 265 security/keys/big_key.c *path = file->f_path; path 266 security/keys/big_key.c path_get(path); path 296 security/keys/big_key.c struct path *path = (struct path *)&prep->payload.data[big_key_path]; path 298 security/keys/big_key.c path_put(path); path 309 security/keys/big_key.c struct path *path = (struct path *)&key->payload.data[big_key_path]; path 315 security/keys/big_key.c vfs_truncate(path, 0); path 326 security/keys/big_key.c struct path *path = (struct path *)&key->payload.data[big_key_path]; path 328 security/keys/big_key.c path_put(path); path 329 security/keys/big_key.c path->mnt = NULL; path 330 security/keys/big_key.c path->dentry = NULL; path 365 security/keys/big_key.c struct path *path = (struct path *)&key->payload.data[big_key_path]; path 375 security/keys/big_key.c file = dentry_open(path, O_RDONLY, current_cred()); path 96 security/keys/request_key.c static int call_usermodehelper_keys(const char *path, char **argv, char **envp, path 101 security/keys/request_key.c info = call_usermodehelper_setup(path, argv, envp, GFP_KERNEL, path 235 security/lsm_audit.c audit_log_d_path(ab, " path=", &a->u.path); path 237 security/lsm_audit.c inode = d_backing_inode(a->u.path.dentry); path 261 security/lsm_audit.c audit_log_d_path(ab, " path=", &a->u.op->path); path 263 security/lsm_audit.c inode = a->u.op->path.dentry->d_inode; path 355 security/lsm_audit.c if (u->path.dentry) { path 356 security/lsm_audit.c audit_log_d_path(ab, " path=", &u->path); path 857 security/security.c int security_sb_mount(const char *dev_name, const struct path *path, path 860 security/security.c return call_int_hook(sb_mount, 0, dev_name, path, type, flags, data); path 868 security/security.c int security_sb_pivotroot(const struct path *old_path, const struct path *new_path) path 902 security/security.c int security_move_mount(const struct path *from_path, const struct path *to_path) path 907 security/security.c int security_path_notify(const struct path *path, u64 mask, path 910 security/security.c return call_int_hook(path_notify, 0, path, mask, obj_type); path 1016 security/security.c int security_path_mknod(const struct path *dir, struct dentry *dentry, umode_t mode, path 1025 security/security.c int security_path_mkdir(const struct path *dir, struct dentry *dentry, umode_t mode) path 1033 security/security.c int security_path_rmdir(const struct path *dir, struct dentry *dentry) path 1040 security/security.c int security_path_unlink(const struct path *dir, struct dentry *dentry) path 1048 security/security.c int security_path_symlink(const struct path *dir, struct dentry *dentry, path 1056 security/security.c int security_path_link(struct dentry *old_dentry, const struct path *new_dir, path 1064 security/security.c int security_path_rename(const struct path *old_dir, struct dentry *old_dentry, path 1065 security/security.c const struct path *new_dir, struct dentry *new_dentry, path 1084 security/security.c int security_path_truncate(const struct path *path) path 1086 security/security.c if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry)))) path 1088 security/security.c return call_int_hook(path_truncate, 0, path); path 1091 security/security.c int security_path_chmod(const struct path *path, umode_t mode) path 1093 security/security.c if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry)))) path 1095 security/security.c return call_int_hook(path_chmod, 0, path, mode); path 1098 security/security.c int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) path 1100 security/security.c if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry)))) path 1102 security/security.c return call_int_hook(path_chown, 0, path, uid, gid); path 1105 security/security.c int security_path_chroot(const struct path *path) path 1107 security/security.c return call_int_hook(path_chroot, 0, path); path 1218 security/security.c int security_inode_getattr(const struct path *path) path 1220 security/security.c if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry)))) path 1222 security/security.c return call_int_hook(inode_getattr, 0, path); path 1338 security/selinux/hooks.c char *buffer, *path; path 1344 security/selinux/hooks.c path = dentry_path_raw(dentry, buffer, PAGE_SIZE); path 1345 security/selinux/hooks.c if (IS_ERR(path)) path 1346 security/selinux/hooks.c rc = PTR_ERR(path); path 1352 security/selinux/hooks.c while (path[1] >= '0' && path[1] <= '9') { path 1353 security/selinux/hooks.c path[1] = '/'; path 1354 security/selinux/hooks.c path++; path 1358 security/selinux/hooks.c path, tclass, sid); path 1708 security/selinux/hooks.c const struct path *path, path 1711 security/selinux/hooks.c struct inode *inode = d_backing_inode(path->dentry); path 1715 security/selinux/hooks.c ad.u.path = *path; path 1716 security/selinux/hooks.c __inode_security_revalidate(inode, path->dentry, true); path 2099 security/selinux/hooks.c ad.u.path = file->f_path; path 2755 security/selinux/hooks.c const struct path *path, path 2763 security/selinux/hooks.c return superblock_has_perm(cred, path->dentry->d_sb, path 2766 security/selinux/hooks.c return path_has_perm(cred, path, FILE__MOUNTON); path 2769 security/selinux/hooks.c static int selinux_move_mount(const struct path *from_path, path 2770 security/selinux/hooks.c const struct path *to_path) path 3122 security/selinux/hooks.c static int selinux_inode_getattr(const struct path *path) path 3124 security/selinux/hooks.c return path_has_perm(current_cred(), path, FILE__GETATTR); path 3292 security/selinux/hooks.c static int selinux_path_notify(const struct path *path, u64 mask, path 3301 security/selinux/hooks.c ad.u.path = *path; path 3313 security/selinux/hooks.c ret = superblock_has_perm(current_cred(), path->dentry->d_sb, path 3333 security/selinux/hooks.c return path_has_perm(current_cred(), path, perm); path 3580 security/selinux/hooks.c ad.u.op->path = file->f_path; path 388 security/selinux/include/security.h extern struct path selinux_null; path 2039 security/selinux/selinuxfs.c struct path selinux_null; path 2670 security/selinux/ss/services.c char *path, path 2682 security/selinux/ss/services.c while (path[0] == '/' && path[1] == '/') path 2683 security/selinux/ss/services.c path++; path 2701 security/selinux/ss/services.c (strncmp(c->u.name, path, len) == 0)) path 2733 security/selinux/ss/services.c char *path, path 2740 security/selinux/ss/services.c retval = __security_genfs_sid(state, fstype, path, orig_sclass, sid); path 478 security/smack/smack.h struct path p) path 480 security/smack/smack.h a->a.u.path = p; path 511 security/smack/smack.h struct path p) path 1228 security/smack/smack_lsm.c static int smack_inode_getattr(const struct path *path) path 1231 security/smack/smack_lsm.c struct inode *inode = d_backing_inode(path->dentry); path 1235 security/smack/smack_lsm.c smk_ad_setfield_u_fs_path(&ad, *path); path 440 security/tomoyo/common.h } path; path 591 security/tomoyo/common.h struct path path1; path 593 security/tomoyo/common.h struct path path2; path 959 security/tomoyo/common.h char *tomoyo_realpath_from_path(const struct path *path); path 971 security/tomoyo/common.h const struct path *path, const int flag); path 982 security/tomoyo/common.h int tomoyo_mkdev_perm(const u8 operation, const struct path *path, path 984 security/tomoyo/common.h int tomoyo_mount_permission(const char *dev_name, const struct path *path, path 988 security/tomoyo/common.h int tomoyo_path2_perm(const u8 operation, const struct path *path1, path 989 security/tomoyo/common.h const struct path *path2); path 990 security/tomoyo/common.h int tomoyo_path_number_perm(const u8 operation, const struct path *path, path 992 security/tomoyo/common.h int tomoyo_path_perm(const u8 operation, const struct path *path, path 765 security/tomoyo/domain.c if (ee->r.param.path.matched_path) path 766 security/tomoyo/domain.c candidate = ee->r.param.path.matched_path; path 149 security/tomoyo/file.c static bool tomoyo_get_realpath(struct tomoyo_path_info *buf, const struct path *path) path 151 security/tomoyo/file.c buf->name = tomoyo_realpath_from_path(path); path 169 security/tomoyo/file.c [r->param.path.operation], path 170 security/tomoyo/file.c r->param.path.filename->name); path 258 security/tomoyo/file.c if (acl->perm & (1 << r->param.path.operation)) { path 259 security/tomoyo/file.c r->param.path.matched_path = path 260 security/tomoyo/file.c tomoyo_compare_name_union(r->param.path.filename, path 262 security/tomoyo/file.c return r->param.path.matched_path != NULL; path 583 security/tomoyo/file.c r->param.path.filename = filename; path 584 security/tomoyo/file.c r->param.path.operation = operation; path 613 security/tomoyo/file.c r->param.path.filename = filename; path 614 security/tomoyo/file.c r->param.path.operation = TOMOYO_TYPE_EXECUTE; path 708 security/tomoyo/file.c int tomoyo_path_number_perm(const u8 type, const struct path *path, path 713 security/tomoyo/file.c .path1 = { .mnt = path->mnt, .dentry = path->dentry }, path 720 security/tomoyo/file.c == TOMOYO_CONFIG_DISABLED || !path->dentry) path 723 security/tomoyo/file.c if (!tomoyo_get_realpath(&buf, path)) path 754 security/tomoyo/file.c const struct path *path, const int flag) path 761 security/tomoyo/file.c .path1 = { .mnt = path->mnt, .dentry = path->dentry }, path 771 security/tomoyo/file.c if (!tomoyo_get_realpath(&buf, path)) { path 803 security/tomoyo/file.c int tomoyo_path_perm(const u8 operation, const struct path *path, const char *target) path 807 security/tomoyo/file.c .path1 = { .mnt = path->mnt, .dentry = path->dentry }, path 822 security/tomoyo/file.c if (!tomoyo_get_realpath(&buf, path)) path 859 security/tomoyo/file.c int tomoyo_mkdev_perm(const u8 operation, const struct path *path, path 864 security/tomoyo/file.c .path1 = { .mnt = path->mnt, .dentry = path->dentry }, path 875 security/tomoyo/file.c if (tomoyo_get_realpath(&buf, path)) { path 903 security/tomoyo/file.c int tomoyo_path2_perm(const u8 operation, const struct path *path1, path 904 security/tomoyo/file.c const struct path *path2) path 39 security/tomoyo/load_policy.c struct path path; path 43 security/tomoyo/load_policy.c if (kern_path(tomoyo_loader, LOOKUP_FOLLOW, &path)) { path 48 security/tomoyo/load_policy.c path_put(&path); path 79 security/tomoyo/mount.c const struct path *dir, const char *type, path 83 security/tomoyo/mount.c struct path path; path 136 security/tomoyo/mount.c if (!dev_name || kern_path(dev_name, LOOKUP_FOLLOW, &path)) { path 140 security/tomoyo/mount.c obj.path1 = path; path 141 security/tomoyo/mount.c requested_dev_name = tomoyo_realpath_from_path(&path); path 191 security/tomoyo/mount.c int tomoyo_mount_permission(const char *dev_name, const struct path *path, path 237 security/tomoyo/mount.c error = tomoyo_mount_acl(&r, dev_name, path, type, flags); path 93 security/tomoyo/realpath.c static char *tomoyo_get_absolute_path(const struct path *path, char * const buffer, path 100 security/tomoyo/realpath.c pos = d_absolute_path(path, buffer, buflen - 1); path 102 security/tomoyo/realpath.c struct inode *inode = d_backing_inode(path->dentry); path 235 security/tomoyo/realpath.c char *tomoyo_realpath_from_path(const struct path *path) path 240 security/tomoyo/realpath.c struct dentry *dentry = path->dentry; path 267 security/tomoyo/realpath.c if (!path->mnt || path 270 security/tomoyo/realpath.c pos = tomoyo_get_local_path(path->dentry, buf, path 274 security/tomoyo/realpath.c pos = tomoyo_get_absolute_path(path, buf, buf_len - 1); path 280 security/tomoyo/realpath.c pos = tomoyo_get_local_path(path->dentry, buf, path 304 security/tomoyo/realpath.c struct path path; path 306 security/tomoyo/realpath.c if (pathname && kern_path(pathname, 0, &path) == 0) { path 307 security/tomoyo/realpath.c char *buf = tomoyo_realpath_from_path(&path); path 309 security/tomoyo/realpath.c path_put(&path); path 127 security/tomoyo/tomoyo.c static int tomoyo_inode_getattr(const struct path *path) path 129 security/tomoyo/tomoyo.c return tomoyo_path_perm(TOMOYO_TYPE_GETATTR, path, NULL); path 139 security/tomoyo/tomoyo.c static int tomoyo_path_truncate(const struct path *path) path 141 security/tomoyo/tomoyo.c return tomoyo_path_perm(TOMOYO_TYPE_TRUNCATE, path, NULL); path 152 security/tomoyo/tomoyo.c static int tomoyo_path_unlink(const struct path *parent, struct dentry *dentry) path 154 security/tomoyo/tomoyo.c struct path path = { .mnt = parent->mnt, .dentry = dentry }; path 156 security/tomoyo/tomoyo.c return tomoyo_path_perm(TOMOYO_TYPE_UNLINK, &path, NULL); path 168 security/tomoyo/tomoyo.c static int tomoyo_path_mkdir(const struct path *parent, struct dentry *dentry, path 171 security/tomoyo/tomoyo.c struct path path = { .mnt = parent->mnt, .dentry = dentry }; path 173 security/tomoyo/tomoyo.c return tomoyo_path_number_perm(TOMOYO_TYPE_MKDIR, &path, path 185 security/tomoyo/tomoyo.c static int tomoyo_path_rmdir(const struct path *parent, struct dentry *dentry) path 187 security/tomoyo/tomoyo.c struct path path = { .mnt = parent->mnt, .dentry = dentry }; path 189 security/tomoyo/tomoyo.c return tomoyo_path_perm(TOMOYO_TYPE_RMDIR, &path, NULL); path 201 security/tomoyo/tomoyo.c static int tomoyo_path_symlink(const struct path *parent, struct dentry *dentry, path 204 security/tomoyo/tomoyo.c struct path path = { .mnt = parent->mnt, .dentry = dentry }; path 206 security/tomoyo/tomoyo.c return tomoyo_path_perm(TOMOYO_TYPE_SYMLINK, &path, old_name); path 219 security/tomoyo/tomoyo.c static int tomoyo_path_mknod(const struct path *parent, struct dentry *dentry, path 222 security/tomoyo/tomoyo.c struct path path = { .mnt = parent->mnt, .dentry = dentry }; path 236 security/tomoyo/tomoyo.c return tomoyo_mkdev_perm(type, &path, perm, dev); path 246 security/tomoyo/tomoyo.c return tomoyo_path_number_perm(type, &path, perm); path 258 security/tomoyo/tomoyo.c static int tomoyo_path_link(struct dentry *old_dentry, const struct path *new_dir, path 261 security/tomoyo/tomoyo.c struct path path1 = { .mnt = new_dir->mnt, .dentry = old_dentry }; path 262 security/tomoyo/tomoyo.c struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry }; path 277 security/tomoyo/tomoyo.c static int tomoyo_path_rename(const struct path *old_parent, path 279 security/tomoyo/tomoyo.c const struct path *new_parent, path 282 security/tomoyo/tomoyo.c struct path path1 = { .mnt = old_parent->mnt, .dentry = old_dentry }; path 283 security/tomoyo/tomoyo.c struct path path2 = { .mnt = new_parent->mnt, .dentry = new_dentry }; path 346 security/tomoyo/tomoyo.c static int tomoyo_path_chmod(const struct path *path, umode_t mode) path 348 security/tomoyo/tomoyo.c return tomoyo_path_number_perm(TOMOYO_TYPE_CHMOD, path, path 361 security/tomoyo/tomoyo.c static int tomoyo_path_chown(const struct path *path, kuid_t uid, kgid_t gid) path 366 security/tomoyo/tomoyo.c error = tomoyo_path_number_perm(TOMOYO_TYPE_CHOWN, path, path 369 security/tomoyo/tomoyo.c error = tomoyo_path_number_perm(TOMOYO_TYPE_CHGRP, path, path 381 security/tomoyo/tomoyo.c static int tomoyo_path_chroot(const struct path *path) path 383 security/tomoyo/tomoyo.c return tomoyo_path_perm(TOMOYO_TYPE_CHROOT, path, NULL); path 397 security/tomoyo/tomoyo.c static int tomoyo_sb_mount(const char *dev_name, const struct path *path, path 400 security/tomoyo/tomoyo.c return tomoyo_mount_permission(dev_name, path, type, flags, data); path 413 security/tomoyo/tomoyo.c struct path path = { .mnt = mnt, .dentry = mnt->mnt_root }; path 415 security/tomoyo/tomoyo.c return tomoyo_path_perm(TOMOYO_TYPE_UMOUNT, &path, NULL); path 426 security/tomoyo/tomoyo.c static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) path 40 sound/core/misc.c static const char *sanity_file_name(const char *path) path 42 sound/core/misc.c if (*path == '/') path 43 sound/core/misc.c return strrchr(path, '/') + 1; path 45 sound/core/misc.c return path; path 50 sound/core/misc.c void __snd_printk(unsigned int level, const char *path, int line, path 86 sound/core/misc.c printk(verbose_fmt, sanity_file_name(path), line, &vaf); path 2283 sound/core/oss/pcm_oss.c static const char *strip_task_path(const char *path) path 2286 sound/core/oss/pcm_oss.c for (ptr = path; *ptr; ptr++) { path 56 sound/drivers/vx/vx_hwdep.c char path[32]; path 60 sound/drivers/vx/vx_hwdep.c sprintf(path, "vx/%s", fw_files[chip->type][i]); path 61 sound/drivers/vx/vx_hwdep.c if (request_firmware(&fw, path, chip->dev)) { path 62 sound/drivers/vx/vx_hwdep.c snd_printk(KERN_ERR "vx: can't load firmware %s\n", path); path 1947 sound/isa/wavefront/wavefront_synth.c wavefront_download_firmware (snd_wavefront_t *dev, char *path) path 1955 sound/isa/wavefront/wavefront_synth.c err = request_firmware(&firmware, path, dev->card->dev); path 1957 sound/isa/wavefront/wavefront_synth.c snd_printk(KERN_ERR "firmware (%s) download failed!!!\n", path); path 245 sound/pci/hda/hda_generic.c static bool is_nid_contained(struct nid_path *path, hda_nid_t nid) path 247 sound/pci/hda/hda_generic.c return find_idx_in_nid_list(nid, path->path, path->depth) >= 0; path 255 sound/pci/hda/hda_generic.c struct nid_path *path; path 258 sound/pci/hda/hda_generic.c snd_array_for_each(&spec->paths, i, path) { path 259 sound/pci/hda/hda_generic.c if (path->depth <= 0) path 261 sound/pci/hda/hda_generic.c if ((!from_nid || path->path[0] == from_nid) && path 262 sound/pci/hda/hda_generic.c (!to_nid || path->path[path->depth - 1] == to_nid)) { path 264 sound/pci/hda/hda_generic.c (anchor_nid > 0 && is_nid_contained(path, anchor_nid)) || path 265 sound/pci/hda/hda_generic.c (anchor_nid < 0 && !is_nid_contained(path, anchor_nid))) path 266 sound/pci/hda/hda_generic.c return path; path 281 sound/pci/hda/hda_generic.c int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) path 289 sound/pci/hda/hda_generic.c idx = path - array; path 316 sound/pci/hda/hda_generic.c const struct nid_path *path; path 319 sound/pci/hda/hda_generic.c snd_array_for_each(&spec->paths, i, path) { path 320 sound/pci/hda/hda_generic.c if (path->path[0] == nid) path 342 sound/pci/hda/hda_generic.c const struct nid_path *path; path 346 sound/pci/hda/hda_generic.c snd_array_for_each(&spec->paths, i, path) { path 347 sound/pci/hda/hda_generic.c if ((path->ctls[type] & AMP_VAL_COMPARE_MASK) == val) path 362 sound/pci/hda/hda_generic.c const char *pfx, struct nid_path *path) path 369 sound/pci/hda/hda_generic.c for (i = 0; i < path->depth; i++) path 372 sound/pci/hda/hda_generic.c path->path[i]); path 374 sound/pci/hda/hda_generic.c codec_dbg(codec, "%s path: depth=%d '%s'\n", pfx, path->depth, buf); path 380 sound/pci/hda/hda_generic.c int anchor_nid, struct nid_path *path, path 415 sound/pci/hda/hda_generic.c anchor_nid, path, depth + 1)) path 421 sound/pci/hda/hda_generic.c path->path[path->depth] = conn[i]; path 422 sound/pci/hda/hda_generic.c path->idx[path->depth + 1] = i; path 424 sound/pci/hda/hda_generic.c path->multi[path->depth + 1] = 1; path 425 sound/pci/hda/hda_generic.c path->depth++; path 450 sound/pci/hda/hda_generic.c struct nid_path *path) path 452 sound/pci/hda/hda_generic.c if (__parse_nid_path(codec, from_nid, to_nid, anchor_nid, path, 1)) { path 453 sound/pci/hda/hda_generic.c path->path[path->depth] = to_nid; path 454 sound/pci/hda/hda_generic.c path->depth++; path 475 sound/pci/hda/hda_generic.c struct nid_path *path; path 481 sound/pci/hda/hda_generic.c path = get_nid_path(codec, from_nid, to_nid, anchor_nid); path 482 sound/pci/hda/hda_generic.c if (path) path 483 sound/pci/hda/hda_generic.c return path; path 485 sound/pci/hda/hda_generic.c path = snd_array_new(&spec->paths); path 486 sound/pci/hda/hda_generic.c if (!path) path 488 sound/pci/hda/hda_generic.c memset(path, 0, sizeof(*path)); path 489 sound/pci/hda/hda_generic.c if (snd_hda_parse_nid_path(codec, from_nid, to_nid, anchor_nid, path)) path 490 sound/pci/hda/hda_generic.c return path; path 500 sound/pci/hda/hda_generic.c struct nid_path *path = snd_hda_get_path_from_idx(codec, idx); path 501 sound/pci/hda/hda_generic.c if (!path) path 503 sound/pci/hda/hda_generic.c memset(path, 0, sizeof(*path)); path 560 sound/pci/hda/hda_generic.c struct nid_path *path) path 564 sound/pci/hda/hda_generic.c for (i = path->depth - 1; i >= 0; i--) { path 565 sound/pci/hda/hda_generic.c if (nid_has_mute(codec, path->path[i], HDA_OUTPUT)) path 566 sound/pci/hda/hda_generic.c return path->path[i]; path 567 sound/pci/hda/hda_generic.c if (i != path->depth - 1 && i != 0 && path 568 sound/pci/hda/hda_generic.c nid_has_mute(codec, path->path[i], HDA_INPUT)) path 569 sound/pci/hda/hda_generic.c return path->path[i]; path 576 sound/pci/hda/hda_generic.c struct nid_path *path) path 581 sound/pci/hda/hda_generic.c for (i = path->depth - 1; i >= 0; i--) { path 582 sound/pci/hda/hda_generic.c hda_nid_t nid = path->path[i]; path 596 sound/pci/hda/hda_generic.c static bool has_amp_in(struct hda_codec *codec, struct nid_path *path, int idx) path 598 sound/pci/hda/hda_generic.c hda_nid_t nid = path->path[idx]; path 610 sound/pci/hda/hda_generic.c static bool has_amp_out(struct hda_codec *codec, struct nid_path *path, int idx) path 612 sound/pci/hda/hda_generic.c hda_nid_t nid = path->path[idx]; path 629 sound/pci/hda/hda_generic.c const struct nid_path *path; path 635 sound/pci/hda/hda_generic.c snd_array_for_each(&spec->paths, n, path) { path 636 sound/pci/hda/hda_generic.c if (!path->active) path 639 sound/pci/hda/hda_generic.c if (!path->stream_enabled) path 642 sound/pci/hda/hda_generic.c if (!(path->pin_enabled || path->pin_fixed) && path 646 sound/pci/hda/hda_generic.c for (i = 0; i < path->depth; i++) { path 647 sound/pci/hda/hda_generic.c if (path->path[i] == nid) { path 649 sound/pci/hda/hda_generic.c path->idx[i] == idx) path 768 sound/pci/hda/hda_generic.c static void activate_amp_out(struct hda_codec *codec, struct nid_path *path, path 771 sound/pci/hda/hda_generic.c hda_nid_t nid = path->path[i]; path 776 sound/pci/hda/hda_generic.c static void activate_amp_in(struct hda_codec *codec, struct nid_path *path, path 783 sound/pci/hda/hda_generic.c hda_nid_t nid = path->path[i]; path 794 sound/pci/hda/hda_generic.c idx = path->idx[i]; path 818 sound/pci/hda/hda_generic.c struct nid_path *path, path 824 sound/pci/hda/hda_generic.c for (i = 0; i < path->depth; i++) { path 825 sound/pci/hda/hda_generic.c nid = path->path[i]; path 873 sound/pci/hda/hda_generic.c void snd_hda_activate_path(struct hda_codec *codec, struct nid_path *path, path 879 sound/pci/hda/hda_generic.c path->active = enable; path 883 sound/pci/hda/hda_generic.c path_power_update(codec, path, codec->power_save_node); path 885 sound/pci/hda/hda_generic.c for (i = path->depth - 1; i >= 0; i--) { path 886 sound/pci/hda/hda_generic.c hda_nid_t nid = path->path[i]; path 888 sound/pci/hda/hda_generic.c if (enable && path->multi[i]) path 891 sound/pci/hda/hda_generic.c path->idx[i]); path 892 sound/pci/hda/hda_generic.c if (has_amp_in(codec, path, i)) path 893 sound/pci/hda/hda_generic.c activate_amp_in(codec, path, i, enable, add_aamix); path 894 sound/pci/hda/hda_generic.c if (has_amp_out(codec, path, i)) path 895 sound/pci/hda/hda_generic.c activate_amp_out(codec, path, i, enable); path 901 sound/pci/hda/hda_generic.c static void path_power_down_sync(struct hda_codec *codec, struct nid_path *path) path 905 sound/pci/hda/hda_generic.c if (!(spec->power_down_unused || codec->power_save_node) || path->active) path 907 sound/pci/hda/hda_generic.c sync_power_state_change(codec, path_power_update(codec, path, true)); path 929 sound/pci/hda/hda_generic.c struct nid_path *path = snd_hda_get_path_from_idx(codec, path_idx); path 930 sound/pci/hda/hda_generic.c if (path) path 931 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, path, path->active, false); path 1009 sound/pci/hda/hda_generic.c unsigned int chs, struct nid_path *path) path 1012 sound/pci/hda/hda_generic.c if (!path) path 1014 sound/pci/hda/hda_generic.c val = path->ctls[NID_PATH_VOL_CTL]; path 1022 sound/pci/hda/hda_generic.c static int get_default_ch_nums(struct hda_codec *codec, struct nid_path *path, path 1026 sound/pci/hda/hda_generic.c if (path) { path 1027 sound/pci/hda/hda_generic.c hda_nid_t nid = get_amp_nid_(path->ctls[type]); path 1035 sound/pci/hda/hda_generic.c struct nid_path *path) path 1037 sound/pci/hda/hda_generic.c int chs = get_default_ch_nums(codec, path, NID_PATH_VOL_CTL); path 1038 sound/pci/hda/hda_generic.c return add_vol_ctl(codec, pfx, cidx, chs, path); path 1045 sound/pci/hda/hda_generic.c unsigned int chs, struct nid_path *path) path 1050 sound/pci/hda/hda_generic.c if (!path) path 1052 sound/pci/hda/hda_generic.c val = path->ctls[NID_PATH_MUTE_CTL]; path 1068 sound/pci/hda/hda_generic.c int cidx, struct nid_path *path) path 1070 sound/pci/hda/hda_generic.c int chs = get_default_ch_nums(codec, path, NID_PATH_MUTE_CTL); path 1071 sound/pci/hda/hda_generic.c return add_sw_ctl(codec, pfx, cidx, chs, path); path 1146 sound/pci/hda/hda_generic.c struct nid_path *path = snd_hda_get_path_from_idx(codec, path_idx); path 1147 sound/pci/hda/hda_generic.c return path && path->ctls[ctl_type]; path 1266 sound/pci/hda/hda_generic.c static int assign_out_path_ctls(struct hda_codec *codec, struct nid_path *path) path 1273 sound/pci/hda/hda_generic.c if (!path) path 1276 sound/pci/hda/hda_generic.c if (path->ctls[NID_PATH_VOL_CTL] || path 1277 sound/pci/hda/hda_generic.c path->ctls[NID_PATH_MUTE_CTL]) path 1280 sound/pci/hda/hda_generic.c nid = look_for_out_vol_nid(codec, path); path 1288 sound/pci/hda/hda_generic.c path->ctls[NID_PATH_VOL_CTL] = val; path 1291 sound/pci/hda/hda_generic.c nid = look_for_out_mute_nid(codec, path); path 1302 sound/pci/hda/hda_generic.c path->ctls[NID_PATH_MUTE_CTL] = val; path 1364 sound/pci/hda/hda_generic.c struct nid_path *path; path 1367 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, path_idx[i]); path 1368 sound/pci/hda/hda_generic.c if (path) { path 1369 sound/pci/hda/hda_generic.c badness += assign_out_path_ctls(codec, path); path 1418 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, pin, -spec->mixer_nid); path 1419 sound/pci/hda/hda_generic.c if (!path && !i && spec->mixer_nid) { path 1421 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, pin, 0); path 1423 sound/pci/hda/hda_generic.c if (!path) { path 1428 sound/pci/hda/hda_generic.c path->active = true; path 1429 sound/pci/hda/hda_generic.c path_idx[i] = snd_hda_get_path_idx(codec, path); path 1430 sound/pci/hda/hda_generic.c badness += assign_out_path_ctls(codec, path); path 1514 sound/pci/hda/hda_generic.c struct nid_path *path; path 1548 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, nid, path 1550 sound/pci/hda/hda_generic.c if (!path) { path 1558 sound/pci/hda/hda_generic.c snd_hda_get_path_idx(codec, path); path 1582 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, spec->out_paths[cfg->line_outs + i]); path 1583 sound/pci/hda/hda_generic.c badness += assign_out_path_ctls(codec, path); path 1597 sound/pci/hda/hda_generic.c struct nid_path *path; path 1604 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, pins[i], path 1606 sound/pci/hda/hda_generic.c if (!path && !i && spec->mixer_nid) path 1607 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, pins[i], 0); path 1608 sound/pci/hda/hda_generic.c if (path) { path 1612 sound/pci/hda/hda_generic.c path->active = true; path 1613 sound/pci/hda/hda_generic.c path_idx[i] = snd_hda_get_path_idx(codec, path); path 1629 sound/pci/hda/hda_generic.c struct nid_path *path; path 1632 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, path_idx); path 1633 sound/pci/hda/hda_generic.c if (!path || !path->depth || path 1634 sound/pci/hda/hda_generic.c is_nid_contained(path, spec->mixer_nid)) path 1636 sound/pci/hda/hda_generic.c path_dac = path->path[0]; path 1638 sound/pci/hda/hda_generic.c pin = path->path[path->depth - 1]; path 1639 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, pin, spec->mixer_nid); path 1640 sound/pci/hda/hda_generic.c if (!path) { path 1650 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, pin, path 1653 sound/pci/hda/hda_generic.c if (!path) path 1656 sound/pci/hda/hda_generic.c path->active = false; /* unused as default */ path 1657 sound/pci/hda/hda_generic.c path->pin_fixed = true; /* static route */ path 1658 sound/pci/hda/hda_generic.c return snd_hda_get_path_idx(codec, path); path 1666 sound/pci/hda/hda_generic.c struct nid_path *path; path 1673 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, idx); path 1674 sound/pci/hda/hda_generic.c if (!path) path 1678 sound/pci/hda/hda_generic.c if (!spec->mixer_nid || !is_nid_contained(path, spec->mixer_nid)) path 1685 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, spec->out_paths[i]); path 1686 sound/pci/hda/hda_generic.c if (path && is_nid_contained(path, spec->mixer_nid)) path 1690 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, spec->speaker_paths[i]); path 1691 sound/pci/hda/hda_generic.c if (path && is_nid_contained(path, spec->mixer_nid)) path 1704 sound/pci/hda/hda_generic.c struct nid_path *path; path 1710 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, path_idx[i]); path 1711 sound/pci/hda/hda_generic.c if (!path) path 1713 sound/pci/hda/hda_generic.c dacs[i] = path->path[0]; path 1884 sound/pci/hda/hda_generic.c struct nid_path *path; path 1886 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, idx); path 1887 sound/pci/hda/hda_generic.c if (path) path 1888 sound/pci/hda/hda_generic.c print_nid_path(codec, pfx, path); path 2048 sound/pci/hda/hda_generic.c struct nid_path *path; path 2049 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, spec->out_paths[0]); path 2050 sound/pci/hda/hda_generic.c if (path) path 2051 sound/pci/hda/hda_generic.c spec->vmaster_nid = look_for_out_vol_nid(codec, path); path 2096 sound/pci/hda/hda_generic.c struct nid_path *path; path 2098 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, spec->out_paths[i]); path 2099 sound/pci/hda/hda_generic.c if (!path) path 2105 sound/pci/hda/hda_generic.c err = add_vol_ctl(codec, "Center", 0, 1, path); path 2108 sound/pci/hda/hda_generic.c err = add_vol_ctl(codec, "LFE", 0, 2, path); path 2112 sound/pci/hda/hda_generic.c err = add_stereo_vol(codec, name, index, path); path 2119 sound/pci/hda/hda_generic.c err = add_sw_ctl(codec, "Center", 0, 1, path); path 2122 sound/pci/hda/hda_generic.c err = add_sw_ctl(codec, "LFE", 0, 2, path); path 2126 sound/pci/hda/hda_generic.c err = add_stereo_sw(codec, name, index, path); path 2137 sound/pci/hda/hda_generic.c struct nid_path *path; path 2140 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, path_idx); path 2141 sound/pci/hda/hda_generic.c if (!path) path 2143 sound/pci/hda/hda_generic.c err = add_stereo_vol(codec, pfx, cidx, path); path 2146 sound/pci/hda/hda_generic.c err = add_stereo_sw(codec, pfx, cidx, path); path 2355 sound/pci/hda/hda_generic.c struct nid_path *path; path 2357 sound/pci/hda/hda_generic.c path = get_multiio_path(codec, idx); path 2358 sound/pci/hda/hda_generic.c if (!path) path 2361 sound/pci/hda/hda_generic.c if (path->active == output) path 2366 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, path, true, aamix_default(spec)); path 2370 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, path, false, aamix_default(spec)); path 2372 sound/pci/hda/hda_generic.c path_power_down_sync(codec, path); path 2453 sound/pci/hda/hda_generic.c mix_path->path[0] != spec->alt_dac_nid) path 2472 sound/pci/hda/hda_generic.c struct nid_path *path; path 2476 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, paths[i]); path 2477 sound/pci/hda/hda_generic.c if (path) path 2478 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, path, path->active, path 3075 sound/pci/hda/hda_generic.c struct nid_path *path; path 3082 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, pin, mix_nid, 0); path 3083 sound/pci/hda/hda_generic.c if (!path) path 3085 sound/pci/hda/hda_generic.c print_nid_path(codec, "loopback", path); path 3086 sound/pci/hda/hda_generic.c spec->loopback_paths[input_idx] = snd_hda_get_path_idx(codec, path); path 3088 sound/pci/hda/hda_generic.c idx = path->idx[path->depth - 1]; path 3093 sound/pci/hda/hda_generic.c path->ctls[NID_PATH_VOL_CTL] = mix_val; path 3100 sound/pci/hda/hda_generic.c path->ctls[NID_PATH_MUTE_CTL] = mute_val; path 3103 sound/pci/hda/hda_generic.c path->active = true; path 3104 sound/pci/hda/hda_generic.c path->stream_enabled = true; /* no DAC/ADC involved */ path 3111 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, spec->mixer_nid, path 3113 sound/pci/hda/hda_generic.c if (path) { path 3114 sound/pci/hda/hda_generic.c print_nid_path(codec, "loopback-merge", path); path 3115 sound/pci/hda/hda_generic.c path->active = true; path 3116 sound/pci/hda/hda_generic.c path->pin_fixed = true; /* static route */ path 3117 sound/pci/hda/hda_generic.c path->stream_enabled = true; /* no DAC/ADC involved */ path 3119 sound/pci/hda/hda_generic.c snd_hda_get_path_idx(codec, path); path 3242 sound/pci/hda/hda_generic.c struct nid_path *path; path 3247 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, pin, adc, anchor); path 3248 sound/pci/hda/hda_generic.c if (!path) path 3250 sound/pci/hda/hda_generic.c print_nid_path(codec, "input", path); path 3252 sound/pci/hda/hda_generic.c snd_hda_get_path_idx(codec, path); path 3450 sound/pci/hda/hda_generic.c struct nid_path *path; path 3457 sound/pci/hda/hda_generic.c path = get_input_path(codec, adc_idx, i); path 3458 sound/pci/hda/hda_generic.c if (!path || !path->ctls[type]) path 3460 sound/pci/hda/hda_generic.c kcontrol->private_value = path->ctls[type]; path 3516 sound/pci/hda/hda_generic.c static int parse_capvol_in_path(struct hda_codec *codec, struct nid_path *path) path 3521 sound/pci/hda/hda_generic.c path->ctls[NID_PATH_VOL_CTL] = path->ctls[NID_PATH_MUTE_CTL] = 0; path 3523 sound/pci/hda/hda_generic.c if (depth >= path->depth) path 3525 sound/pci/hda/hda_generic.c i = path->depth - depth - 1; path 3526 sound/pci/hda/hda_generic.c nid = path->path[i]; path 3527 sound/pci/hda/hda_generic.c if (!path->ctls[NID_PATH_VOL_CTL]) { path 3529 sound/pci/hda/hda_generic.c path->ctls[NID_PATH_VOL_CTL] = path 3532 sound/pci/hda/hda_generic.c int idx = path->idx[i]; path 3535 sound/pci/hda/hda_generic.c path->ctls[NID_PATH_VOL_CTL] = path 3539 sound/pci/hda/hda_generic.c if (!path->ctls[NID_PATH_MUTE_CTL]) { path 3541 sound/pci/hda/hda_generic.c path->ctls[NID_PATH_MUTE_CTL] = path 3544 sound/pci/hda/hda_generic.c int idx = path->idx[i]; path 3547 sound/pci/hda/hda_generic.c path->ctls[NID_PATH_MUTE_CTL] = path 3682 sound/pci/hda/hda_generic.c struct nid_path *path; path 3686 sound/pci/hda/hda_generic.c path = get_input_path(codec, 0, idx); path 3687 sound/pci/hda/hda_generic.c if (!path) path 3689 sound/pci/hda/hda_generic.c ctl = path->ctls[type]; path 3693 sound/pci/hda/hda_generic.c path = get_input_path(codec, 0, i); path 3694 sound/pci/hda/hda_generic.c if (path && path->ctls[type] == ctl) path 3759 sound/pci/hda/hda_generic.c struct nid_path *path; path 3760 sound/pci/hda/hda_generic.c path = get_input_path(codec, n, i); path 3761 sound/pci/hda/hda_generic.c if (!path) path 3763 sound/pci/hda/hda_generic.c parse_capvol_in_path(codec, path); path 3765 sound/pci/hda/hda_generic.c vol = path->ctls[NID_PATH_VOL_CTL]; path 3766 sound/pci/hda/hda_generic.c else if (vol != path->ctls[NID_PATH_VOL_CTL]) { path 3769 sound/pci/hda/hda_generic.c path->ctls[NID_PATH_VOL_CTL], HDA_INPUT)) path 3773 sound/pci/hda/hda_generic.c sw = path->ctls[NID_PATH_MUTE_CTL]; path 3774 sound/pci/hda/hda_generic.c else if (sw != path->ctls[NID_PATH_MUTE_CTL]) { path 3777 sound/pci/hda/hda_generic.c path->ctls[NID_PATH_MUTE_CTL], HDA_INPUT)) path 3822 sound/pci/hda/hda_generic.c struct nid_path *path) path 3829 sound/pci/hda/hda_generic.c if (depth >= path->depth - 1) path 3831 sound/pci/hda/hda_generic.c nid = path->path[depth]; path 3836 sound/pci/hda/hda_generic.c path->idx[depth])) { path 3837 sound/pci/hda/hda_generic.c val = HDA_COMPOSE_AMP_VAL(nid, 3, path->idx[depth], path 3857 sound/pci/hda/hda_generic.c struct nid_path *path; path 3870 sound/pci/hda/hda_generic.c path = get_input_path(codec, 0, i); path 3871 sound/pci/hda/hda_generic.c if (!path) path 3874 sound/pci/hda/hda_generic.c val = look_for_boost_amp(codec, path); path 3885 sound/pci/hda/hda_generic.c path->ctls[NID_PATH_BOOST_CTL] = val; path 4062 sound/pci/hda/hda_generic.c struct nid_path *path; path 4073 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dig_nid, pin, 0); path 4074 sound/pci/hda/hda_generic.c if (!path) path 4076 sound/pci/hda/hda_generic.c print_nid_path(codec, "digout", path); path 4077 sound/pci/hda/hda_generic.c path->active = true; path 4078 sound/pci/hda/hda_generic.c path->pin_fixed = true; /* no jack detection */ path 4079 sound/pci/hda/hda_generic.c spec->digout_paths[i] = snd_hda_get_path_idx(codec, path); path 4101 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, pin, dig_nid, 0); path 4102 sound/pci/hda/hda_generic.c if (path) { path 4103 sound/pci/hda/hda_generic.c print_nid_path(codec, "digin", path); path 4104 sound/pci/hda/hda_generic.c path->active = true; path 4105 sound/pci/hda/hda_generic.c path->pin_fixed = true; /* no jack */ path 4107 sound/pci/hda/hda_generic.c spec->digin_path = snd_hda_get_path_idx(codec, path); path 4128 sound/pci/hda/hda_generic.c struct nid_path *old_path, *path; path 4153 sound/pci/hda/hda_generic.c path = get_input_path(codec, adc_idx, idx); path 4154 sound/pci/hda/hda_generic.c if (!path) path 4156 sound/pci/hda/hda_generic.c if (path->active) path 4158 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, path, true, false); path 4175 sound/pci/hda/hda_generic.c struct nid_path *path; path 4178 sound/pci/hda/hda_generic.c snd_array_for_each(&spec->paths, n, path) { path 4179 sound/pci/hda/hda_generic.c if (!path->depth) path 4181 sound/pci/hda/hda_generic.c if (path->path[0] == nid || path 4182 sound/pci/hda/hda_generic.c path->path[path->depth - 1] == nid) { path 4183 sound/pci/hda/hda_generic.c bool pin_old = path->pin_enabled; path 4184 sound/pci/hda/hda_generic.c bool stream_old = path->stream_enabled; path 4187 sound/pci/hda/hda_generic.c path->pin_enabled = pin_state; path 4189 sound/pci/hda/hda_generic.c path->stream_enabled = stream_state; path 4190 sound/pci/hda/hda_generic.c if ((!path->pin_fixed && path->pin_enabled != pin_old) path 4191 sound/pci/hda/hda_generic.c || path->stream_enabled != stream_old) { path 4192 sound/pci/hda/hda_generic.c last = path_power_update(codec, path, true); path 4323 sound/pci/hda/hda_generic.c struct nid_path *path; path 4331 sound/pci/hda/hda_generic.c path = snd_array_new(&spec->paths); path 4332 sound/pci/hda/hda_generic.c if (!path) path 4334 sound/pci/hda/hda_generic.c memset(path, 0, sizeof(*path)); path 4335 sound/pci/hda/hda_generic.c path->depth = 2; path 4336 sound/pci/hda/hda_generic.c path->path[0] = nid; path 4337 sound/pci/hda/hda_generic.c path->path[1] = pins[i]; path 4338 sound/pci/hda/hda_generic.c path->active = true; path 4384 sound/pci/hda/hda_generic.c struct nid_path *path; path 4386 sound/pci/hda/hda_generic.c path = snd_array_new(&spec->paths); path 4387 sound/pci/hda/hda_generic.c if (!path) path 4389 sound/pci/hda/hda_generic.c memset(path, 0, sizeof(*path)); path 4390 sound/pci/hda/hda_generic.c path->depth = 1; path 4391 sound/pci/hda/hda_generic.c path->path[0] = pin; path 4392 sound/pci/hda/hda_generic.c path->active = true; path 4393 sound/pci/hda/hda_generic.c path->pin_fixed = true; path 4394 sound/pci/hda/hda_generic.c path->stream_enabled = true; path 4440 sound/pci/hda/hda_generic.c struct nid_path *path; path 4443 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, paths[i]); path 4444 sound/pci/hda/hda_generic.c if (!path) path 4446 sound/pci/hda/hda_generic.c mute_nid = get_amp_nid_(path->ctls[NID_PATH_MUTE_CTL]); path 5832 sound/pci/hda/hda_generic.c struct nid_path *path; path 5835 sound/pci/hda/hda_generic.c path = snd_hda_get_path_from_idx(codec, path_idx); path 5836 sound/pci/hda/hda_generic.c if (!path || !path->depth) path 5838 sound/pci/hda/hda_generic.c pin = path->path[path->depth - 1]; path 5840 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, path, path->active, path 5842 sound/pci/hda/hda_generic.c set_pin_eapd(codec, pin, path->active); path 5884 sound/pci/hda/hda_generic.c struct nid_path *path; path 5885 sound/pci/hda/hda_generic.c path = get_multiio_path(codec, i); path 5886 sound/pci/hda/hda_generic.c if (!path) path 5891 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, path, path->active, path 5940 sound/pci/hda/hda_generic.c struct nid_path *path; path 5950 sound/pci/hda/hda_generic.c path = get_input_path(codec, c, i); path 5951 sound/pci/hda/hda_generic.c if (path) { path 5952 sound/pci/hda/hda_generic.c bool active = path->active; path 5955 sound/pci/hda/hda_generic.c snd_hda_activate_path(codec, path, active, false); path 41 sound/pci/hda/hda_generic.h hda_nid_t path[MAX_NID_PATH_DEPTH]; path 320 sound/pci/hda/hda_generic.h int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path); path 325 sound/pci/hda/hda_generic.h void snd_hda_activate_path(struct hda_codec *codec, struct nid_path *path, path 758 sound/pci/hda/patch_analog.c struct nid_path *path; path 767 sound/pci/hda/patch_analog.c path = snd_hda_get_path_from_idx(codec, path 769 sound/pci/hda/patch_analog.c if (path) path 770 sound/pci/hda/patch_analog.c snd_hda_activate_path(codec, path, false, true); path 771 sound/pci/hda/patch_analog.c path = snd_hda_get_path_from_idx(codec, spec->smux_paths[val]); path 772 sound/pci/hda/patch_analog.c if (path) path 773 sound/pci/hda/patch_analog.c snd_hda_activate_path(codec, path, true, true); path 799 sound/pci/hda/patch_analog.c struct nid_path *path; path 800 sound/pci/hda/patch_analog.c path = snd_hda_get_path_from_idx(codec, spec->smux_paths[i]); path 801 sound/pci/hda/patch_analog.c if (path) path 802 sound/pci/hda/patch_analog.c snd_hda_activate_path(codec, path, path->active, false); path 818 sound/pci/hda/patch_analog.c .path = { 0x02, 0x1d, 0x1b }, path 824 sound/pci/hda/patch_analog.c .path = { 0x08, 0x0b, 0x1d, 0x1b }, path 830 sound/pci/hda/patch_analog.c .path = { 0x09, 0x0b, 0x1d, 0x1b }, path 836 sound/pci/hda/patch_analog.c .path = { 0x0f, 0x0b, 0x1d, 0x1b }, path 852 sound/pci/hda/patch_analog.c struct nid_path *path = snd_array_new(&spec->gen.paths); path 853 sound/pci/hda/patch_analog.c if (!path) path 855 sound/pci/hda/patch_analog.c *path = fake_paths[i]; path 857 sound/pci/hda/patch_analog.c path->active = 1; path 858 sound/pci/hda/patch_analog.c spec->smux_paths[i] = snd_hda_get_path_idx(codec, path); path 351 sound/pci/hda/patch_conexant.c struct nid_path *path; path 375 sound/pci/hda/patch_conexant.c path = snd_hda_get_path_from_idx(codec, cur_input); path 376 sound/pci/hda/patch_conexant.c if (path) path 377 sound/pci/hda/patch_conexant.c snd_hda_activate_path(codec, path, true, false); path 380 sound/pci/hda/patch_conexant.c path = snd_hda_get_path_from_idx(codec, cur_input); path 381 sound/pci/hda/patch_conexant.c if (path) path 382 sound/pci/hda/patch_conexant.c snd_hda_activate_path(codec, path, false, false); path 554 sound/pci/mixart/mixart_hwdep.c char path[32]; path 560 sound/pci/mixart/mixart_hwdep.c sprintf(path, "mixart/%s", fw_files[i]); path 561 sound/pci/mixart/mixart_hwdep.c if (request_firmware(&fw_entry, path, &mgr->pci->dev)) { path 563 sound/pci/mixart/mixart_hwdep.c "miXart: can't load firmware %s\n", path); path 365 sound/pci/pcxhr/pcxhr_hwdep.c char path[32]; path 374 sound/pci/pcxhr/pcxhr_hwdep.c sprintf(path, "pcxhr/%s", fw_files[fw_set][i]); path 375 sound/pci/pcxhr/pcxhr_hwdep.c if (request_firmware(&fw_entry, path, &mgr->pci->dev)) { path 378 sound/pci/pcxhr/pcxhr_hwdep.c path); path 740 sound/pci/riptide/riptide.c unsigned char *path, unsigned char *mixer, unsigned char *s) path 742 sound/pci/riptide/riptide.c while (*path != 0xff) { path 745 sound/pci/riptide/riptide.c sink = *path & (~SPLIT_PATH); path 767 sound/pci/riptide/riptide.c if (*path++ & SPLIT_PATH) { path 768 sound/pci/riptide/riptide.c unsigned char *npath = path; path 778 sound/pci/riptide/riptide.c freelbuspath(struct cmdif *cif, unsigned char source, unsigned char *path) path 780 sound/pci/riptide/riptide.c while (*path != 0xff) { path 783 sound/pci/riptide/riptide.c sink = *path & (~SPLIT_PATH); path 789 sound/pci/riptide/riptide.c if (*path++ & SPLIT_PATH) { path 790 sound/pci/riptide/riptide.c unsigned char *npath = path; path 192 sound/soc/codecs/wm8958-dsp2.c static void wm8958_dsp_start_mbc(struct snd_soc_component *component, int path) path 232 sound/soc/codecs/wm8958-dsp2.c path << WM8958_MBC_SEL_SHIFT | path 236 sound/soc/codecs/wm8958-dsp2.c static void wm8958_dsp_start_vss(struct snd_soc_component *component, int path) path 280 sound/soc/codecs/wm8958-dsp2.c if (wm8994->mbc_ena[path]) path 282 sound/soc/codecs/wm8958-dsp2.c if (wm8994->hpf2_ena[path]) path 284 sound/soc/codecs/wm8958-dsp2.c if (wm8994->hpf1_ena[path]) path 286 sound/soc/codecs/wm8958-dsp2.c if (wm8994->vss_ena[path]) path 294 sound/soc/codecs/wm8958-dsp2.c path << WM8958_MBC_SEL_SHIFT | WM8958_MBC_ENA); path 297 sound/soc/codecs/wm8958-dsp2.c static void wm8958_dsp_start_enh_eq(struct snd_soc_component *component, int path) path 325 sound/soc/codecs/wm8958-dsp2.c path << WM8958_MBC_SEL_SHIFT | WM8958_MBC_ENA); path 328 sound/soc/codecs/wm8958-dsp2.c static void wm8958_dsp_apply(struct snd_soc_component *component, int path, int start) path 334 sound/soc/codecs/wm8958-dsp2.c switch (path) { path 348 sound/soc/codecs/wm8958-dsp2.c WARN(1, "Invalid path %d\n", path); path 353 sound/soc/codecs/wm8958-dsp2.c ena = wm8994->mbc_ena[path] || wm8994->vss_ena[path] || path 354 sound/soc/codecs/wm8958-dsp2.c wm8994->hpf1_ena[path] || wm8994->hpf2_ena[path] || path 355 sound/soc/codecs/wm8958-dsp2.c wm8994->enh_eq_ena[path]; path 362 sound/soc/codecs/wm8958-dsp2.c path, wm8994->dsp_active, start, pwr_reg, reg); path 382 sound/soc/codecs/wm8958-dsp2.c if (wm8994->enh_eq_ena[path]) path 383 sound/soc/codecs/wm8958-dsp2.c wm8958_dsp_start_enh_eq(component, path); path 384 sound/soc/codecs/wm8958-dsp2.c else if (wm8994->vss_ena[path] || wm8994->hpf1_ena[path] || path 385 sound/soc/codecs/wm8958-dsp2.c wm8994->hpf2_ena[path]) path 386 sound/soc/codecs/wm8958-dsp2.c wm8958_dsp_start_vss(component, path); path 387 sound/soc/codecs/wm8958-dsp2.c else if (wm8994->mbc_ena[path]) path 388 sound/soc/codecs/wm8958-dsp2.c wm8958_dsp_start_mbc(component, path); path 390 sound/soc/codecs/wm8958-dsp2.c wm8994->dsp_active = path; path 392 sound/soc/codecs/wm8958-dsp2.c dev_dbg(component->dev, "DSP running in path %d\n", path); path 395 sound/soc/codecs/wm8958-dsp2.c if (!start && wm8994->dsp_active == path) { path 21 sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h struct mt2701_i2s_path *path, path 24 sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h struct mt2701_i2s_path *path, path 322 sound/soc/qcom/qdsp6/q6adm.c int port_id, int path, int topology, path 347 sound/soc/qcom/qdsp6/q6adm.c open->mode_of_operation = path; path 383 sound/soc/qcom/qdsp6/q6adm.c struct q6copp *q6adm_open(struct device *dev, int port_id, int path, int rate, path 423 sound/soc/qcom/qdsp6/q6adm.c ret = q6adm_device_open(adm, copp, port_id, path, topology, path 460 sound/soc/qcom/qdsp6/q6adm.c int q6adm_matrix_map(struct device *dev, int path, path 493 sound/soc/qcom/qdsp6/q6adm.c switch (path) { path 501 sound/soc/qcom/qdsp6/q6adm.c dev_err(dev, "Wrong path set[%d]\n", path); path 19 sound/soc/qcom/qdsp6/q6adm.h struct q6copp *q6adm_open(struct device *dev, int port_id, int path, int rate, path 24 sound/soc/qcom/qdsp6/q6adm.h int q6adm_matrix_map(struct device *dev, int path, path 31 sound/soc/sh/rcar/cmd.c static const u32 path[] = { path 41 sound/soc/sh/rcar/cmd.c if (ARRAY_SIZE(path) < rsnd_mod_id(mod) + 1) path 60 sound/soc/sh/rcar/cmd.c data |= path[rsnd_mod_id(src)]; path 65 sound/soc/sh/rcar/cmd.c data |= path[rsnd_mod_id(src)]; path 85 sound/soc/sh/rcar/cmd.c data = path[rsnd_mod_id(src)] | path 504 sound/soc/soc-dapm.c struct snd_soc_dapm_path *path) path 508 sound/soc/soc-dapm.c list_add_tail(&path->list_kcontrol, &data->paths); path 529 sound/soc/soc-dapm.c #define dapm_kcontrol_for_each_path(path, kcontrol) \ path 530 sound/soc/soc-dapm.c list_for_each_entry(path, dapm_kcontrol_get_path_list(kcontrol), \ path 749 sound/soc/soc-dapm.c struct snd_soc_dapm_path *path, const char *control_name, path 775 sound/soc/soc-dapm.c path->name = e->texts[i]; path 776 sound/soc/soc-dapm.c path->connect = (i == item); path 831 sound/soc/soc-dapm.c struct snd_soc_dapm_path *path, const char *control_name) path 836 sound/soc/soc-dapm.c for (i = 0; i < path->sink->num_kcontrols; i++) { path 837 sound/soc/soc-dapm.c if (!strcmp(control_name, path->sink->kcontrol_news[i].name)) { path 838 sound/soc/soc-dapm.c path->name = path->sink->kcontrol_news[i].name; path 839 sound/soc/soc-dapm.c dapm_set_mixer_path_status(path, i, nth_path++); path 986 sound/soc/soc-dapm.c struct snd_soc_dapm_path *path; path 992 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_source_path(w, path) { path 994 sound/soc/soc-dapm.c if (path->name != (char *)w->kcontrol_news[i].name) path 1003 sound/soc/soc-dapm.c dapm_kcontrol_add_path(w->kcontrols[i], path); path 1009 sound/soc/soc-dapm.c path->source, path 1022 sound/soc/soc-dapm.c struct snd_soc_dapm_path *path; path 1055 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_path(w, dir, path) { path 1056 sound/soc/soc-dapm.c if (path->name) path 1057 sound/soc/soc-dapm.c dapm_kcontrol_add_path(w->kcontrols[0], path); path 1160 sound/soc/soc-dapm.c struct snd_soc_dapm_path *path; path 1164 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_path(widget, rdir, path) { path 1165 sound/soc/soc-dapm.c if (path->weak || path->is_supply) path 1168 sound/soc/soc-dapm.c if (path->walking) path 1171 sound/soc/soc-dapm.c if (path->connect) { path 1172 sound/soc/soc-dapm.c path->walking = 1; path 1173 sound/soc/soc-dapm.c invalidate_paths_ep(path->node[dir], dir); path 1174 sound/soc/soc-dapm.c path->walking = 0; path 1195 sound/soc/soc-dapm.c struct snd_soc_dapm_path *path; path 1217 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_path(widget, rdir, path) { path 1220 sound/soc/soc-dapm.c if (path->weak || path->is_supply) path 1223 sound/soc/soc-dapm.c if (path->walking) path 1226 sound/soc/soc-dapm.c trace_snd_soc_dapm_path(widget, dir, path); path 1228 sound/soc/soc-dapm.c if (path->connect) { path 1229 sound/soc/soc-dapm.c path->walking = 1; path 1230 sound/soc/soc-dapm.c con += fn(path->node[dir], list, custom_stop_condition); path 1231 sound/soc/soc-dapm.c path->walking = 0; path 1444 sound/soc/soc-dapm.c struct snd_soc_dapm_path *path; path 1449 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_sink_path(w, path) { path 1452 sound/soc/soc-dapm.c if (path->weak) path 1455 sound/soc/soc-dapm.c if (path->connected && path 1456 sound/soc/soc-dapm.c !path->connected(path->source, path->sink)) path 1459 sound/soc/soc-dapm.c if (dapm_widget_power_check(path->sink)) path 1879 sound/soc/soc-dapm.c struct snd_soc_dapm_path *path; path 1889 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_source_path(w, path) path 1890 sound/soc/soc-dapm.c dapm_widget_set_peer_power(path->source, power, path->connect); path 1894 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_sink_path(w, path) path 1895 sound/soc/soc-dapm.c dapm_widget_set_peer_power(path->sink, power, path 1896 sound/soc/soc-dapm.c path->connect); path 2256 sound/soc/soc-dapm.c static void soc_dapm_connect_path(struct snd_soc_dapm_path *path, path 2259 sound/soc/soc-dapm.c if (path->connect == connect) path 2262 sound/soc/soc-dapm.c path->connect = connect; path 2263 sound/soc/soc-dapm.c dapm_mark_dirty(path->source, reason); path 2264 sound/soc/soc-dapm.c dapm_mark_dirty(path->sink, reason); path 2265 sound/soc/soc-dapm.c dapm_path_invalidate(path); path 2272 sound/soc/soc-dapm.c struct snd_soc_dapm_path *path; path 2279 sound/soc/soc-dapm.c dapm_kcontrol_for_each_path(path, kcontrol) { path 2282 sound/soc/soc-dapm.c if (e && !(strcmp(path->name, e->texts[mux]))) path 2287 sound/soc/soc-dapm.c soc_dapm_connect_path(path, connect, "mux update"); path 2319 sound/soc/soc-dapm.c struct snd_soc_dapm_path *path; path 2325 sound/soc/soc-dapm.c dapm_kcontrol_for_each_path(path, kcontrol) { path 2349 sound/soc/soc-dapm.c soc_dapm_connect_path(path, rconnect, "mixer update"); path 2351 sound/soc/soc-dapm.c soc_dapm_connect_path(path, connect, "mixer update"); path 2472 sound/soc/soc-dapm.c static void dapm_free_path(struct snd_soc_dapm_path *path) path 2474 sound/soc/soc-dapm.c list_del(&path->list_node[SND_SOC_DAPM_DIR_IN]); path 2475 sound/soc/soc-dapm.c list_del(&path->list_node[SND_SOC_DAPM_DIR_OUT]); path 2476 sound/soc/soc-dapm.c list_del(&path->list_kcontrol); path 2477 sound/soc/soc-dapm.c list_del(&path->list); path 2478 sound/soc/soc-dapm.c kfree(path); path 2800 sound/soc/soc-dapm.c struct snd_soc_dapm_path *path; path 2828 sound/soc/soc-dapm.c path = kzalloc(sizeof(struct snd_soc_dapm_path), GFP_KERNEL); path 2829 sound/soc/soc-dapm.c if (!path) path 2832 sound/soc/soc-dapm.c path->node[SND_SOC_DAPM_DIR_IN] = wsource; path 2833 sound/soc/soc-dapm.c path->node[SND_SOC_DAPM_DIR_OUT] = wsink; path 2837 sound/soc/soc-dapm.c path->connected = connected; path 2838 sound/soc/soc-dapm.c INIT_LIST_HEAD(&path->list); path 2839 sound/soc/soc-dapm.c INIT_LIST_HEAD(&path->list_kcontrol); path 2842 sound/soc/soc-dapm.c path->is_supply = 1; path 2846 sound/soc/soc-dapm.c path->connect = 1; path 2850 sound/soc/soc-dapm.c ret = dapm_connect_mux(dapm, path, control, wsource); path 2860 sound/soc/soc-dapm.c ret = dapm_connect_mux(dapm, path, control, wsink); path 2867 sound/soc/soc-dapm.c ret = dapm_connect_mixer(dapm, path, control); path 2876 sound/soc/soc-dapm.c list_add(&path->list, &dapm->card->paths); path 2878 sound/soc/soc-dapm.c list_add(&path->list_node[dir], &widgets[dir]->edges[dir]); path 2885 sound/soc/soc-dapm.c if (dapm->card->instantiated && path->connect) path 2886 sound/soc/soc-dapm.c dapm_path_invalidate(path); path 2890 sound/soc/soc-dapm.c kfree(path); path 2997 sound/soc/soc-dapm.c struct snd_soc_dapm_path *path, *p; path 3023 sound/soc/soc-dapm.c path = NULL; path 3029 sound/soc/soc-dapm.c path = p; path 3033 sound/soc/soc-dapm.c if (path) { path 3034 sound/soc/soc-dapm.c wsource = path->source; path 3035 sound/soc/soc-dapm.c wsink = path->sink; path 3039 sound/soc/soc-dapm.c if (path->connect) path 3040 sound/soc/soc-dapm.c dapm_path_invalidate(path); path 3042 sound/soc/soc-dapm.c dapm_free_path(path); path 3124 sound/soc/soc-dapm.c struct snd_soc_dapm_path *path; path 3143 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_sink_path(source, path) { path 3144 sound/soc/soc-dapm.c if (path->sink == sink) { path 3145 sound/soc/soc-dapm.c path->weak = 1; path 3801 sound/soc/soc-dapm.c struct snd_soc_dapm_path *path; path 3823 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_source_path(w, path) { path 3824 sound/soc/soc-dapm.c source = path->source->priv; path 3836 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_sink_path(w, path) { path 3837 sound/soc/soc-dapm.c sink = path->sink->priv; path 3884 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_source_path(w, path) { path 3885 sound/soc/soc-dapm.c source = path->source->priv; path 3895 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_sink_path(w, path) { path 3896 sound/soc/soc-dapm.c sink = path->sink->priv; path 3918 sound/soc/soc-dapm.c struct snd_soc_dapm_path *path; path 3936 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_sink_path(w, path) { path 3937 sound/soc/soc-dapm.c sink = path->sink->priv; path 3949 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_sink_path(w, path) { path 3950 sound/soc/soc-dapm.c sink = path->sink->priv; path 3961 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_source_path(w, path) { path 3962 sound/soc/soc-dapm.c source = path->source->priv; path 3967 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_sink_path(w, path) { path 3968 sound/soc/soc-dapm.c sink = path->sink->priv; path 3973 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_source_path(w, path) { path 3974 sound/soc/soc-dapm.c source = path->source->priv; path 3980 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_sink_path(w, path) { path 3981 sound/soc/soc-dapm.c sink = path->sink->priv; path 151 sound/xen/xen_snd_front_cfg.c const char *path, struct snd_pcm_hardware *pcm_hw) path 187 sound/xen/xen_snd_front_cfg.c const char *path, struct snd_pcm_hardware *pcm_hw) path 239 sound/xen/xen_snd_front_cfg.c static void cfg_read_pcm_hw(const char *path, path 254 sound/xen/xen_snd_front_cfg.c val = xenbus_read_unsigned(path, XENSND_FIELD_CHANNELS_MIN, 0); path 258 sound/xen/xen_snd_front_cfg.c val = xenbus_read_unsigned(path, XENSND_FIELD_CHANNELS_MAX, 0); path 262 sound/xen/xen_snd_front_cfg.c list = xenbus_read(XBT_NIL, path, XENSND_FIELD_SAMPLE_RATES, &len); path 264 sound/xen/xen_snd_front_cfg.c cfg_hw_rates(list, len, path, pcm_hw); path 268 sound/xen/xen_snd_front_cfg.c list = xenbus_read(XBT_NIL, path, XENSND_FIELD_SAMPLE_FORMATS, &len); path 270 sound/xen/xen_snd_front_cfg.c cfg_formats(list, len, path, pcm_hw); path 274 sound/xen/xen_snd_front_cfg.c buf_sz = xenbus_read_unsigned(path, XENSND_FIELD_BUFFER_SIZE, 0); path 291 sound/xen/xen_snd_front_cfg.c static int cfg_get_stream_type(const char *path, int index, path 300 sound/xen/xen_snd_front_cfg.c stream_path = kasprintf(GFP_KERNEL, "%s/%d", path, index); path 333 sound/xen/xen_snd_front_cfg.c const char *path, int index, int *cur_pb, int *cur_cap, path 342 sound/xen/xen_snd_front_cfg.c GFP_KERNEL, "%s/%d", path, index); path 386 sound/xen/xen_snd_front_cfg.c const char *path, int node_index, int *stream_cnt) path 395 sound/xen/xen_snd_front_cfg.c device_path = kasprintf(GFP_KERNEL, "%s/%d", path, node_index); path 365 sound/xen/xen_snd_front_evtchnl.c const char *path, const char *node_ring, path 372 sound/xen/xen_snd_front_evtchnl.c ret = xenbus_printf(xbt, path, node_ring, "%u", channel->gref); path 379 sound/xen/xen_snd_front_evtchnl.c ret = xenbus_printf(xbt, path, node_chnl, "%u", channel->port); path 37 tools/bpf/bpf_jit_disasm.c char *path; path 43 tools/bpf/bpf_jit_disasm.c path = strdup(tpath); path 44 tools/bpf/bpf_jit_disasm.c assert(path); path 46 tools/bpf/bpf_jit_disasm.c len = readlink(path, tpath, size); path 49 tools/bpf/bpf_jit_disasm.c free(path); path 184 tools/bpf/bpftool/cgroup.c const char *path; path 192 tools/bpf/bpftool/cgroup.c path = GET_ARG(); path 209 tools/bpf/bpftool/cgroup.c cgroup_fd = open(path, O_RDONLY); path 211 tools/bpf/bpftool/cgroup.c p_err("can't open cgroup %s", path); path 218 tools/bpf/bpftool/cgroup.c path, strerror(errno)); path 63 tools/bpf/bpftool/common.c static bool is_bpffs(char *path) path 67 tools/bpf/bpftool/common.c if (statfs(path, &st_fs) < 0) path 126 tools/bpf/bpftool/common.c int open_obj_pinned(char *path, bool quiet) path 130 tools/bpf/bpftool/common.c fd = bpf_obj_get(path); path 133 tools/bpf/bpftool/common.c p_err("bpf obj get (%s): %s", path, path 134 tools/bpf/bpftool/common.c errno == EACCES && !is_bpffs(dirname(path)) ? path 143 tools/bpf/bpftool/common.c int open_obj_pinned_any(char *path, enum bpf_obj_type exp_type) path 148 tools/bpf/bpftool/common.c fd = open_obj_pinned(path, false); path 270 tools/bpf/bpftool/common.c char path[PATH_MAX]; path 274 tools/bpf/bpftool/common.c snprintf(path, sizeof(path), "/proc/self/fd/%d", fd); path 276 tools/bpf/bpftool/common.c n = readlink(path, buf, sizeof(buf)); path 281 tools/bpf/bpftool/common.c if (n == sizeof(path)) { path 296 tools/bpf/bpftool/common.c char path[PATH_MAX]; path 302 tools/bpf/bpftool/common.c snprintf(path, sizeof(path), "/proc/self/fdinfo/%d", fd); path 304 tools/bpf/bpftool/common.c fdi = fopen(path, "r"); path 374 tools/bpf/bpftool/common.c char *path[] = { mntent->mnt_dir, NULL }; path 379 tools/bpf/bpftool/common.c fts = fts_open(path, 0, NULL); path 412 tools/bpf/bpftool/common.c obj_node->path = strdup(ftse->fts_path); path 431 tools/bpf/bpftool/common.c free(obj->path); path 474 tools/bpf/bpftool/common.c static int read_sysfs_hex_int(char *path) path 480 tools/bpf/bpftool/common.c fd = open(path, O_RDONLY); path 482 tools/bpf/bpftool/common.c p_err("Can't open %s: %s", path, strerror(errno)); path 489 tools/bpf/bpftool/common.c p_err("Can't read %s: %s", path, strerror(errno)); path 493 tools/bpf/bpftool/common.c p_err("Value in %s too long", path); path 131 tools/bpf/bpftool/feature.c static int read_procfs(const char *path) path 138 tools/bpf/bpftool/feature.c fd = fopen(path, "r"); path 390 tools/bpf/bpftool/feature.c char path[PATH_MAX]; path 397 tools/bpf/bpftool/feature.c snprintf(path, sizeof(path), "/boot/config-%s", utsn.release); path 400 tools/bpf/bpftool/feature.c file = gzopen(path, "r"); path 34 tools/bpf/bpftool/jit_disasm.c const char *path = "/proc/self/exe"; path 37 tools/bpf/bpftool/jit_disasm.c len = readlink(path, tpath, size - 1); path 119 tools/bpf/bpftool/main.h char *path; path 143 tools/bpf/bpftool/main.h int open_obj_pinned(char *path, bool quiet); path 144 tools/bpf/bpftool/main.h int open_obj_pinned_any(char *path, enum bpf_obj_type exp_type); path 116 tools/bpf/bpftool/map.c char *path; path 120 tools/bpf/bpftool/map.c path = **argv; path 123 tools/bpf/bpftool/map.c return open_obj_pinned_any(path, BPF_OBJ_MAP); path 554 tools/bpf/bpftool/map.c jsonw_string(json_wtr, obj->path); path 620 tools/bpf/bpftool/map.c printf("\n\tpinned %s", obj->path); path 154 tools/bpf/bpftool/prog.c char *path; path 158 tools/bpf/bpftool/prog.c path = **argv; path 161 tools/bpf/bpftool/prog.c return open_obj_pinned_any(path, BPF_OBJ_PROG); path 263 tools/bpf/bpftool/prog.c jsonw_string(json_wtr, obj->path); path 322 tools/bpf/bpftool/prog.c printf("\n\tpinned %s", obj->path); path 1462 tools/include/nolibc/nolibc.h int sys_chdir(const char *path) path 1464 tools/include/nolibc/nolibc.h return my_syscall1(__NR_chdir, path); path 1468 tools/include/nolibc/nolibc.h int sys_chmod(const char *path, mode_t mode) path 1471 tools/include/nolibc/nolibc.h return my_syscall4(__NR_fchmodat, AT_FDCWD, path, mode, 0); path 1473 tools/include/nolibc/nolibc.h return my_syscall2(__NR_chmod, path, mode); path 1478 tools/include/nolibc/nolibc.h int sys_chown(const char *path, uid_t owner, gid_t group) path 1481 tools/include/nolibc/nolibc.h return my_syscall5(__NR_fchownat, AT_FDCWD, path, owner, group, 0); path 1483 tools/include/nolibc/nolibc.h return my_syscall3(__NR_chown, path, owner, group); path 1488 tools/include/nolibc/nolibc.h int sys_chroot(const char *path) path 1490 tools/include/nolibc/nolibc.h return my_syscall1(__NR_chroot, path); path 1582 tools/include/nolibc/nolibc.h int sys_mkdir(const char *path, mode_t mode) path 1585 tools/include/nolibc/nolibc.h return my_syscall3(__NR_mkdirat, AT_FDCWD, path, mode); path 1587 tools/include/nolibc/nolibc.h return my_syscall2(__NR_mkdir, path, mode); path 1592 tools/include/nolibc/nolibc.h long sys_mknod(const char *path, mode_t mode, dev_t dev) path 1595 tools/include/nolibc/nolibc.h return my_syscall4(__NR_mknodat, AT_FDCWD, path, mode, dev); path 1597 tools/include/nolibc/nolibc.h return my_syscall3(__NR_mknod, path, mode, dev); path 1609 tools/include/nolibc/nolibc.h int sys_open(const char *path, int flags, mode_t mode) path 1612 tools/include/nolibc/nolibc.h return my_syscall4(__NR_openat, AT_FDCWD, path, flags, mode); path 1614 tools/include/nolibc/nolibc.h return my_syscall3(__NR_open, path, flags, mode); path 1687 tools/include/nolibc/nolibc.h int sys_stat(const char *path, struct stat *buf) path 1694 tools/include/nolibc/nolibc.h ret = my_syscall4(__NR_newfstatat, AT_FDCWD, path, &stat, 0); path 1696 tools/include/nolibc/nolibc.h ret = my_syscall2(__NR_stat, path, &stat); path 1732 tools/include/nolibc/nolibc.h int sys_umount2(const char *path, int flags) path 1734 tools/include/nolibc/nolibc.h return my_syscall2(__NR_umount2, path, flags); path 1738 tools/include/nolibc/nolibc.h int sys_unlink(const char *path) path 1741 tools/include/nolibc/nolibc.h return my_syscall3(__NR_unlinkat, AT_FDCWD, path, 0); path 1743 tools/include/nolibc/nolibc.h return my_syscall1(__NR_unlink, path); path 1796 tools/include/nolibc/nolibc.h int chdir(const char *path) path 1798 tools/include/nolibc/nolibc.h int ret = sys_chdir(path); path 1808 tools/include/nolibc/nolibc.h int chmod(const char *path, mode_t mode) path 1810 tools/include/nolibc/nolibc.h int ret = sys_chmod(path, mode); path 1820 tools/include/nolibc/nolibc.h int chown(const char *path, uid_t owner, gid_t group) path 1822 tools/include/nolibc/nolibc.h int ret = sys_chown(path, owner, group); path 1832 tools/include/nolibc/nolibc.h int chroot(const char *path) path 1834 tools/include/nolibc/nolibc.h int ret = sys_chroot(path); path 2000 tools/include/nolibc/nolibc.h int mkdir(const char *path, mode_t mode) path 2002 tools/include/nolibc/nolibc.h int ret = sys_mkdir(path, mode); path 2012 tools/include/nolibc/nolibc.h int mknod(const char *path, mode_t mode, dev_t dev) path 2014 tools/include/nolibc/nolibc.h int ret = sys_mknod(path, mode, dev); path 2038 tools/include/nolibc/nolibc.h int open(const char *path, int flags, mode_t mode) path 2040 tools/include/nolibc/nolibc.h int ret = sys_open(path, flags, mode); path 2170 tools/include/nolibc/nolibc.h int stat(const char *path, struct stat *buf) path 2172 tools/include/nolibc/nolibc.h int ret = sys_stat(path, buf); path 2206 tools/include/nolibc/nolibc.h int umount2(const char *path, int flags) path 2208 tools/include/nolibc/nolibc.h int ret = sys_umount2(path, flags); path 2218 tools/include/nolibc/nolibc.h int unlink(const char *path) path 2220 tools/include/nolibc/nolibc.h int ret = sys_unlink(path); path 53 tools/laptop/freefall/freefall.c static void write_int(char *path, int i) path 56 tools/laptop/freefall/freefall.c int fd = open(path, O_RDWR); path 91 tools/lib/api/fs/fs.c char path[PATH_MAX]; path 154 tools/lib/api/fs/fs.c fs->path, type) == 2) { path 184 tools/lib/api/fs/fs.c strcpy(fs->path, *ptr); path 223 tools/lib/api/fs/fs.c strncpy(fs->path, override_path, sizeof(fs->path) - 1); path 224 tools/lib/api/fs/fs.c fs->path[sizeof(fs->path) - 1] = '\0'; path 231 tools/lib/api/fs/fs.c return fs->path; path 234 tools/lib/api/fs/fs.c return fs->path; path 237 tools/lib/api/fs/fs.c return fs->path; path 247 tools/lib/api/fs/fs.c return (const char *)fs->path; path 270 tools/lib/api/fs/fs.c return (const char *)fs->path; path 277 tools/lib/api/fs/fs.c return fs__check_mounts(fs) ? fs->path : NULL; path 426 tools/lib/api/fs/fs.c char path[PATH_MAX]; path 432 tools/lib/api/fs/fs.c snprintf(path, sizeof(path), "%s/%s", procfs, entry); path 434 tools/lib/api/fs/fs.c return filename__read_str(path, buf, sizep); path 440 tools/lib/api/fs/fs.c char path[PATH_MAX]; path 446 tools/lib/api/fs/fs.c snprintf(path, sizeof(path), "%s/%s", sysfs, entry); path 448 tools/lib/api/fs/fs.c return filename__read_ull_base(path, value, base); path 463 tools/lib/api/fs/fs.c char path[PATH_MAX]; path 469 tools/lib/api/fs/fs.c snprintf(path, sizeof(path), "%s/%s", sysfs, entry); path 471 tools/lib/api/fs/fs.c return filename__read_int(path, value); path 476 tools/lib/api/fs/fs.c char path[PATH_MAX]; path 482 tools/lib/api/fs/fs.c snprintf(path, sizeof(path), "%s/%s", sysfs, entry); path 484 tools/lib/api/fs/fs.c return filename__read_str(path, buf, sizep); path 518 tools/lib/api/fs/fs.c char path[PATH_MAX]; path 524 tools/lib/api/fs/fs.c snprintf(path, sizeof(path), "%s/sys/%s", procfs, sysctl); path 526 tools/lib/api/fs/fs.c return filename__read_int(path, value); path 531 tools/lib/api/fs/fs.c char path[PATH_MAX]; path 537 tools/lib/api/fs/fs.c if (snprintf(path, sizeof(path), "%s/%s", sysfs, entry) >= PATH_MAX) path 540 tools/lib/api/fs/fs.c return filename__write_int(path, value); path 106 tools/lib/api/fs/tracing_path.c char *path = get_tracing_file("events"); path 108 tools/lib/api/fs/tracing_path.c if (path) { path 109 tools/lib/api/fs/tracing_path.c dir = opendir(path); path 110 tools/lib/api/fs/tracing_path.c put_events_file(path); path 382 tools/lib/bpf/btf.c struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext) path 392 tools/lib/bpf/btf.c pr_warning("failed to init libelf for %s\n", path); path 396 tools/lib/bpf/btf.c fd = open(path, O_RDONLY); path 399 tools/lib/bpf/btf.c pr_warning("failed to open %s: %s\n", path, strerror(errno)); path 407 tools/lib/bpf/btf.c pr_warning("failed to open %s as ELF file\n", path); path 411 tools/lib/bpf/btf.c pr_warning("failed to get EHDR from %s\n", path); path 419 tools/lib/bpf/btf.c pr_warning("failed to get e_shstrndx from %s\n", path); path 430 tools/lib/bpf/btf.c idx, path); path 436 tools/lib/bpf/btf.c idx, path); path 443 tools/lib/bpf/btf.c idx, name, path); path 451 tools/lib/bpf/btf.c idx, name, path); path 69 tools/lib/bpf/btf.h LIBBPF_API struct btf *btf__parse_elf(const char *path, path 294 tools/lib/bpf/libbpf.c char path[]; path 494 tools/lib/bpf/libbpf.c static struct bpf_object *bpf_object__new(const char *path, path 501 tools/lib/bpf/libbpf.c obj = calloc(1, sizeof(struct bpf_object) + strlen(path) + 1); path 503 tools/lib/bpf/libbpf.c pr_warning("alloc memory failed for %s\n", path); path 507 tools/lib/bpf/libbpf.c strcpy(obj->path, path); path 509 tools/lib/bpf/libbpf.c strncpy(obj->name, basename((void *)path), sizeof(obj->name) - 1); path 575 tools/lib/bpf/libbpf.c obj->efile.fd = open(obj->path, O_RDONLY); path 581 tools/lib/bpf/libbpf.c pr_warning("failed to open %s: %s\n", obj->path, cp); path 590 tools/lib/bpf/libbpf.c pr_warning("failed to open %s as ELF file\n", obj->path); path 596 tools/lib/bpf/libbpf.c pr_warning("failed to get EHDR from %s\n", obj->path); path 605 tools/lib/bpf/libbpf.c pr_warning("%s is not an eBPF object file\n", obj->path); path 635 tools/lib/bpf/libbpf.c pr_debug("license of %s is %s\n", obj->path, obj->license); path 645 tools/lib/bpf/libbpf.c pr_warning("invalid kver section in %s\n", obj->path); path 650 tools/lib/bpf/libbpf.c pr_debug("kernel version of %s is %x\n", obj->path, obj->kern_version); path 688 tools/lib/bpf/libbpf.c idx, obj->path); path 695 tools/lib/bpf/libbpf.c idx, obj->path); path 705 tools/lib/bpf/libbpf.c idx, name, obj->path); path 933 tools/lib/bpf/libbpf.c obj->path, nr_maps, data->d_size); path 939 tools/lib/bpf/libbpf.c obj->path, nr_maps, data->d_size); path 963 tools/lib/bpf/libbpf.c i, obj->path); path 974 tools/lib/bpf/libbpf.c obj->path, map_name); path 1007 tools/lib/bpf/libbpf.c obj->path, map_name); path 1530 tools/lib/bpf/libbpf.c pr_warning("failed to get e_shstrndx from %s\n", obj->path); path 1542 tools/lib/bpf/libbpf.c idx, obj->path); path 1549 tools/lib/bpf/libbpf.c idx, obj->path); path 1556 tools/lib/bpf/libbpf.c idx, name, obj->path); path 1587 tools/lib/bpf/libbpf.c obj->path); path 1604 tools/lib/bpf/libbpf.c name, obj->path, cp); path 2824 tools/lib/bpf/libbpf.c static struct btf *btf_load_raw(const char *path) path 2832 tools/lib/bpf/libbpf.c if (stat(path, &st)) path 2839 tools/lib/bpf/libbpf.c f = fopen(path, "rb"); path 2880 tools/lib/bpf/libbpf.c char path[PATH_MAX + 1]; path 2888 tools/lib/bpf/libbpf.c snprintf(path, PATH_MAX, locations[i].path_fmt, buf.release); path 2890 tools/lib/bpf/libbpf.c if (access(path, R_OK)) path 2894 tools/lib/bpf/libbpf.c btf = btf_load_raw(path); path 2896 tools/lib/bpf/libbpf.c btf = btf__parse_elf(path, NULL); path 2899 tools/lib/bpf/libbpf.c path, IS_ERR(btf) ? PTR_ERR(btf) : 0); path 3601 tools/lib/bpf/libbpf.c obj->path); path 3608 tools/lib/bpf/libbpf.c __bpf_object__open(const char *path, void *obj_buf, size_t obj_buf_sz, path 3615 tools/lib/bpf/libbpf.c pr_warning("failed to init libelf for %s\n", path); path 3619 tools/lib/bpf/libbpf.c obj = bpf_object__new(path, obj_buf, obj_buf_sz); path 3656 tools/lib/bpf/libbpf.c struct bpf_object *bpf_object__open(const char *path) path 3659 tools/lib/bpf/libbpf.c .file = path, path 3728 tools/lib/bpf/libbpf.c pr_warning("failed to load object '%s'\n", obj->path); path 3741 tools/lib/bpf/libbpf.c static int check_path(const char *path) path 3748 tools/lib/bpf/libbpf.c if (path == NULL) path 3751 tools/lib/bpf/libbpf.c dname = strdup(path); path 3764 tools/lib/bpf/libbpf.c pr_warning("specified path %s is not on BPF FS\n", path); path 3771 tools/lib/bpf/libbpf.c int bpf_program__pin_instance(struct bpf_program *prog, const char *path, path 3777 tools/lib/bpf/libbpf.c err = check_path(path); path 3792 tools/lib/bpf/libbpf.c if (bpf_obj_pin(prog->instances.fds[instance], path)) { path 3797 tools/lib/bpf/libbpf.c pr_debug("pinned program '%s'\n", path); path 3802 tools/lib/bpf/libbpf.c int bpf_program__unpin_instance(struct bpf_program *prog, const char *path, path 3807 tools/lib/bpf/libbpf.c err = check_path(path); path 3822 tools/lib/bpf/libbpf.c err = unlink(path); path 3825 tools/lib/bpf/libbpf.c pr_debug("unpinned program '%s'\n", path); path 3830 tools/lib/bpf/libbpf.c static int make_dir(const char *path) path 3835 tools/lib/bpf/libbpf.c if (mkdir(path, 0700) && errno != EEXIST) path 3840 tools/lib/bpf/libbpf.c pr_warning("failed to mkdir %s: %s\n", path, cp); path 3845 tools/lib/bpf/libbpf.c int bpf_program__pin(struct bpf_program *prog, const char *path) path 3849 tools/lib/bpf/libbpf.c err = check_path(path); path 3866 tools/lib/bpf/libbpf.c return bpf_program__pin_instance(prog, path, 0); path 3869 tools/lib/bpf/libbpf.c err = make_dir(path); path 3877 tools/lib/bpf/libbpf.c len = snprintf(buf, PATH_MAX, "%s/%d", path, i); path 3898 tools/lib/bpf/libbpf.c len = snprintf(buf, PATH_MAX, "%s/%d", path, i); path 3907 tools/lib/bpf/libbpf.c rmdir(path); path 3912 tools/lib/bpf/libbpf.c int bpf_program__unpin(struct bpf_program *prog, const char *path) path 3916 tools/lib/bpf/libbpf.c err = check_path(path); path 3933 tools/lib/bpf/libbpf.c return bpf_program__unpin_instance(prog, path, 0); path 3940 tools/lib/bpf/libbpf.c len = snprintf(buf, PATH_MAX, "%s/%d", path, i); path 3951 tools/lib/bpf/libbpf.c err = rmdir(path); path 3958 tools/lib/bpf/libbpf.c int bpf_map__pin(struct bpf_map *map, const char *path) path 3963 tools/lib/bpf/libbpf.c err = check_path(path); path 3972 tools/lib/bpf/libbpf.c if (bpf_obj_pin(map->fd, path)) { path 3978 tools/lib/bpf/libbpf.c pr_debug("pinned map '%s'\n", path); path 3983 tools/lib/bpf/libbpf.c int bpf_map__unpin(struct bpf_map *map, const char *path) path 3987 tools/lib/bpf/libbpf.c err = check_path(path); path 3996 tools/lib/bpf/libbpf.c err = unlink(path); path 3999 tools/lib/bpf/libbpf.c pr_debug("unpinned map '%s'\n", path); path 4004 tools/lib/bpf/libbpf.c int bpf_object__pin_maps(struct bpf_object *obj, const char *path) path 4017 tools/lib/bpf/libbpf.c err = make_dir(path); path 4025 tools/lib/bpf/libbpf.c len = snprintf(buf, PATH_MAX, "%s/%s", path, path 4047 tools/lib/bpf/libbpf.c len = snprintf(buf, PATH_MAX, "%s/%s", path, path 4060 tools/lib/bpf/libbpf.c int bpf_object__unpin_maps(struct bpf_object *obj, const char *path) path 4072 tools/lib/bpf/libbpf.c len = snprintf(buf, PATH_MAX, "%s/%s", path, path 4087 tools/lib/bpf/libbpf.c int bpf_object__pin_programs(struct bpf_object *obj, const char *path) path 4100 tools/lib/bpf/libbpf.c err = make_dir(path); path 4108 tools/lib/bpf/libbpf.c len = snprintf(buf, PATH_MAX, "%s/%s", path, path 4130 tools/lib/bpf/libbpf.c len = snprintf(buf, PATH_MAX, "%s/%s", path, path 4143 tools/lib/bpf/libbpf.c int bpf_object__unpin_programs(struct bpf_object *obj, const char *path) path 4155 tools/lib/bpf/libbpf.c len = snprintf(buf, PATH_MAX, "%s/%s", path, path 4170 tools/lib/bpf/libbpf.c int bpf_object__pin(struct bpf_object *obj, const char *path) path 4174 tools/lib/bpf/libbpf.c err = bpf_object__pin_maps(obj, path); path 4178 tools/lib/bpf/libbpf.c err = bpf_object__pin_programs(obj, path); path 4180 tools/lib/bpf/libbpf.c bpf_object__unpin_maps(obj, path); path 4247 tools/lib/bpf/libbpf.c return obj ? obj->path : ERR_PTR(-EINVAL); path 70 tools/lib/bpf/libbpf.h LIBBPF_API struct bpf_object *bpf_object__open(const char *path); path 82 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_object__pin_maps(struct bpf_object *obj, const char *path); path 84 tools/lib/bpf/libbpf.h const char *path); path 86 tools/lib/bpf/libbpf.h const char *path); path 88 tools/lib/bpf/libbpf.h const char *path); path 89 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_object__pin(struct bpf_object *object, const char *path); path 160 tools/lib/bpf/libbpf.h const char *path, path 163 tools/lib/bpf/libbpf.h const char *path, path 165 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__pin(struct bpf_program *prog, const char *path); path 166 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_program__unpin(struct bpf_program *prog, const char *path); path 338 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_map__pin(struct bpf_map *map, const char *path); path 339 tools/lib/bpf/libbpf.h LIBBPF_API int bpf_map__unpin(struct bpf_map *map, const char *path); path 27 tools/lib/bpf/libbpf_probes.c char ifname[IF_NAMESIZE], path[64], buf[8]; path 34 tools/lib/bpf/libbpf_probes.c snprintf(path, sizeof(path), "/sys/class/net/%s/device/vendor", ifname); path 36 tools/lib/bpf/libbpf_probes.c fd = open(path, O_RDONLY); path 31 tools/lib/subcmd/exec-cmd.c static int is_absolute_path(const char *path) path 33 tools/lib/subcmd/exec-cmd.c return path[0] == '/'; path 55 tools/lib/subcmd/exec-cmd.c static const char *make_nonrelative_path(const char *path) path 59 tools/lib/subcmd/exec-cmd.c if (is_absolute_path(path)) { path 60 tools/lib/subcmd/exec-cmd.c if (strlcpy(buf, path, PATH_MAX) >= PATH_MAX) path 61 tools/lib/subcmd/exec-cmd.c die("Too long path: %.*s", 60, path); path 66 tools/lib/subcmd/exec-cmd.c if (snprintf(buf, PATH_MAX, "%s/%s", cwd, path) >= PATH_MAX) path 67 tools/lib/subcmd/exec-cmd.c die("Too long path: %.*s", 60, path); path 72 tools/lib/subcmd/exec-cmd.c char *system_path(const char *path) path 76 tools/lib/subcmd/exec-cmd.c if (is_absolute_path(path)) path 77 tools/lib/subcmd/exec-cmd.c return strdup(path); path 79 tools/lib/subcmd/exec-cmd.c astrcatf(&buf, "%s/%s", subcmd_config.prefix, path); path 128 tools/lib/subcmd/exec-cmd.c static void add_path(char **out, const char *path) path 130 tools/lib/subcmd/exec-cmd.c if (path && *path) { path 131 tools/lib/subcmd/exec-cmd.c if (is_absolute_path(path)) path 132 tools/lib/subcmd/exec-cmd.c astrcat(out, path); path 134 tools/lib/subcmd/exec-cmd.c astrcat(out, make_nonrelative_path(path)); path 9 tools/lib/subcmd/exec-cmd.h extern const char *extract_argv0_path(const char *path); path 15 tools/lib/subcmd/exec-cmd.h extern char *system_path(const char *path); path 156 tools/lib/subcmd/help.c const char *path, path 160 tools/lib/subcmd/help.c DIR *dir = opendir(path); path 170 tools/lib/subcmd/help.c astrcatf(&buf, "%s/", path); path 207 tools/lib/subcmd/help.c char *paths, *path, *colon; path 208 tools/lib/subcmd/help.c path = paths = strdup(env_path); path 210 tools/lib/subcmd/help.c if ((colon = strchr(path, ':'))) path 212 tools/lib/subcmd/help.c if (!exec_path || strcmp(path, exec_path)) path 213 tools/lib/subcmd/help.c list_commands_in_dir(other_cmds, path, prefix); path 217 tools/lib/subcmd/help.c path = colon + 1; path 272 tools/lib/traceevent/event-plugin.c load_plugin(struct tep_handle *tep, const char *path, path 283 tools/lib/traceevent/event-plugin.c ret = asprintf(&plugin, "%s/%s", path, file); path 328 tools/lib/traceevent/event-plugin.c const char *path, path 330 tools/lib/traceevent/event-plugin.c const char *path, path 340 tools/lib/traceevent/event-plugin.c ret = stat(path, &st); path 347 tools/lib/traceevent/event-plugin.c dir = opendir(path); path 362 tools/lib/traceevent/event-plugin.c load_plugin(tep, path, name, data); path 371 tools/lib/traceevent/event-plugin.c const char *path, path 377 tools/lib/traceevent/event-plugin.c char *path; path 410 tools/lib/traceevent/event-plugin.c ret = asprintf(&path, "%s/%s", home, LOCAL_PLUGIN_DIR); path 416 tools/lib/traceevent/event-plugin.c load_plugins_dir(tep, suffix, path, load_plugin, data); path 418 tools/lib/traceevent/event-plugin.c free(path); path 66 tools/perf/arch/arm/util/cs-etm.c char path[PATH_MAX]; path 77 tools/perf/arch/arm/util/cs-etm.c snprintf(path, PATH_MAX, "cpu%d/%s", path 79 tools/perf/arch/arm/util/cs-etm.c err = perf_pmu__scan_file(cs_etm_pmu, path, "%x", &val); path 84 tools/perf/arch/arm/util/cs-etm.c CORESIGHT_ETM_PMU_NAME, path); path 115 tools/perf/arch/arm/util/cs-etm.c char path[PATH_MAX]; path 126 tools/perf/arch/arm/util/cs-etm.c snprintf(path, PATH_MAX, "cpu%d/%s", path 128 tools/perf/arch/arm/util/cs-etm.c err = perf_pmu__scan_file(cs_etm_pmu, path, "%x", &val); path 133 tools/perf/arch/arm/util/cs-etm.c CORESIGHT_ETM_PMU_NAME, path); path 217 tools/perf/arch/arm/util/cs-etm.c char msg[BUFSIZ], path[PATH_MAX], *sink; path 230 tools/perf/arch/arm/util/cs-etm.c snprintf(path, PATH_MAX, "sinks/%s", sink); path 232 tools/perf/arch/arm/util/cs-etm.c ret = perf_pmu__scan_file(pmu, path, "%x", &hash); path 534 tools/perf/arch/arm/util/cs-etm.c char path[PATH_MAX]; path 542 tools/perf/arch/arm/util/cs-etm.c snprintf(path, PATH_MAX, "cpu%d/%s", path 544 tools/perf/arch/arm/util/cs-etm.c scan = perf_pmu__scan_file(cs_etm_pmu, path, "%x", &val); path 553 tools/perf/arch/arm/util/cs-etm.c static int cs_etm_get_ro(struct perf_pmu *pmu, int cpu, const char *path) path 560 tools/perf/arch/arm/util/cs-etm.c snprintf(pmu_path, PATH_MAX, "cpu%d/%s", cpu, path); path 18 tools/perf/arch/arm64/util/header.c char path[PATH_MAX]; path 35 tools/perf/arch/arm64/util/header.c scnprintf(path, PATH_MAX, "%s/devices/system/cpu/cpu%d"MIDR, path 38 tools/perf/arch/arm64/util/header.c file = fopen(path, "r"); path 40 tools/perf/arch/arm64/util/header.c pr_debug("fopen failed for file %s\n", path); path 95 tools/perf/arch/common.c char *path, *tmp = NULL; path 106 tools/perf/arch/common.c path = strtok_r(env, ":", &tmp); path 107 tools/perf/arch/common.c while (path) { path 108 tools/perf/arch/common.c scnprintf(buf, sizeof(buf), "%s/%s", path, name); path 113 tools/perf/arch/common.c path = strtok_r(NULL, ":", &tmp); path 133 tools/perf/arch/common.c const char *name, const char **path) path 197 tools/perf/arch/common.c *path = buf; path 201 tools/perf/arch/common.c *path = NULL; path 205 tools/perf/arch/common.c int perf_env__lookup_objdump(struct perf_env *env, const char **path) path 214 tools/perf/arch/common.c return perf_env__lookup_binutils_path(env, "objdump", path); path 9 tools/perf/arch/common.h int perf_env__lookup_objdump(struct perf_env *env, const char **path); path 14 tools/perf/arch/s390/util/machine.c char path[PATH_MAX]; path 16 tools/perf/arch/s390/util/machine.c snprintf(path, PATH_MAX, "module/%.*s/sections/.text", path 18 tools/perf/arch/s390/util/machine.c if (sysfs__read_ull(path, (unsigned long long *)start) < 0) { path 19 tools/perf/arch/s390/util/machine.c pr_debug2("Using module %s start:%#lx\n", path, m_start); path 448 tools/perf/builtin-annotate.c ui__error("The %s data has no samples!\n", session->data->path); path 585 tools/perf/builtin-annotate.c data.path = input_name; path 422 tools/perf/builtin-buildid-cache.c data.path = missing_filename; path 56 tools/perf/builtin-buildid-list.c .path = input_name, path 2771 tools/perf/builtin-c2c.c data.path = input_name; path 1009 tools/perf/builtin-diff.c d->idx, d->data.path, path 1158 tools/perf/builtin-diff.c pr_err("Failed to open %s\n", d->data.path); path 1191 tools/perf/builtin-diff.c pr_err("Failed to open %s\n", d->data.path); path 1210 tools/perf/builtin-diff.c pr_err("Failed to process %s\n", d->data.path); path 1801 tools/perf/builtin-diff.c data->path = use_default ? defaults[i] : argv[i]; path 26 tools/perf/builtin-evlist.c .path = file_name, path 123 tools/perf/builtin-help.c static void exec_woman_emacs(const char *path, const char *page) path 129 tools/perf/builtin-help.c if (!path) path 130 tools/perf/builtin-help.c path = "emacsclient"; path 132 tools/perf/builtin-help.c execlp(path, "emacsclient", "-e", man_page, NULL); path 135 tools/perf/builtin-help.c exec_failed(path); path 139 tools/perf/builtin-help.c static void exec_man_konqueror(const char *path, const char *page) path 148 tools/perf/builtin-help.c if (path) { path 149 tools/perf/builtin-help.c const char *file = strrchr(path, '/'); path 151 tools/perf/builtin-help.c char *new = strdup(path); path 156 tools/perf/builtin-help.c path = new; path 161 tools/perf/builtin-help.c path = "kfmclient"; path 163 tools/perf/builtin-help.c execlp(path, filename, "newTab", man_page, NULL); path 166 tools/perf/builtin-help.c exec_failed(path); path 170 tools/perf/builtin-help.c static void exec_man_man(const char *path, const char *page) path 172 tools/perf/builtin-help.c if (!path) path 173 tools/perf/builtin-help.c path = "man"; path 174 tools/perf/builtin-help.c execlp(path, "man", page, NULL); path 175 tools/perf/builtin-help.c exec_failed(path); path 408 tools/perf/builtin-help.c static void open_html(const char *path) path 410 tools/perf/builtin-help.c execl_cmd("web--browse", "-c", "help.browser", path, NULL); path 775 tools/perf/builtin-inject.c .path = "-", path 789 tools/perf/builtin-inject.c OPT_STRING('o', "output", &inject.output.path, "file", path 837 tools/perf/builtin-inject.c data.path = inject.input_name; path 1958 tools/perf/builtin-kmem.c data.path = input_name; path 1090 tools/perf/builtin-kvm.c .path = kvm->file_name, path 870 tools/perf/builtin-lock.c .path = input_name, path 245 tools/perf/builtin-mem.c .path = input_name, path 1142 tools/perf/builtin-record.c data->path, timestamp); path 1720 tools/perf/builtin-record.c data->path, postfix, samples); path 2132 tools/perf/builtin-record.c OPT_STRING('o', "output", &record.data.path, "file", path 923 tools/perf/builtin-report.c ui__error("The %s data has no samples!\n", data->path); path 1274 tools/perf/builtin-report.c data.path = input_name; path 1795 tools/perf/builtin-sched.c .path = input_name, path 2966 tools/perf/builtin-sched.c .path = input_name, path 274 tools/perf/builtin-script.c if (asprintf(&es->filename, "%s.%s.dump", data->file.path, perf_evsel__name(evsel)) < 0) path 3087 tools/perf/builtin-script.c .path = input_name, path 3589 tools/perf/builtin-script.c data.path = input_name; path 3823 tools/perf/builtin-script.c input = open(data.path, O_RDONLY); /* input_name */ path 411 tools/perf/builtin-stat.c char path[PATH_MAX]; path 413 tools/perf/builtin-stat.c scnprintf(path, PATH_MAX, "%s/%d", procfs__mountpoint(), path 416 tools/perf/builtin-stat.c if (!stat(path, &st)) path 1432 tools/perf/builtin-stat.c data->path = output_name; path 1635 tools/perf/builtin-stat.c perf_stat.data.path = input_name; path 1596 tools/perf/builtin-timechart.c .path = input_name, path 1219 tools/perf/builtin-trace.c const char *path = thread__fd_path(arg->thread, fd, arg->trace); path 1221 tools/perf/builtin-trace.c if (path) path 1222 tools/perf/builtin-trace.c printed += scnprintf(bf + printed, size - printed, "<%s>", path); path 1233 tools/perf/builtin-trace.c const char *path = thread__fd_path(thread, fd, trace); path 1235 tools/perf/builtin-trace.c if (path) path 1236 tools/perf/builtin-trace.c printed += scnprintf(bf + printed, size - printed, "<%s>", path); path 3565 tools/perf/builtin-trace.c .path = input_name, path 895 tools/perf/pmu-events/jevents.c char path[PATH_MAX]; path 898 tools/perf/pmu-events/jevents.c sprintf(path, "%s/%s", fpath, dir->d_name); path 899 tools/perf/pmu-events/jevents.c if (stat(path, &st)) path 71 tools/perf/tests/attr.c char path[PATH_MAX]; path 76 tools/perf/tests/attr.c snprintf(path, PATH_MAX, "%s/event-%d-%llu-%d", dir, path 79 tools/perf/tests/attr.c file = fopen(path, "w+"); path 428 tools/perf/tests/builtin-test.c const char *path, const char *name) path 433 tools/perf/tests/builtin-test.c path__join(filename, sizeof(filename), path, name); path 451 tools/perf/tests/builtin-test.c static const char *shell_tests__dir(char *path, size_t size) path 460 tools/perf/tests/builtin-test.c scnprintf(path, size, "%s/shell", devel_dirs[i]); path 462 tools/perf/tests/builtin-test.c return path; path 468 tools/perf/tests/builtin-test.c scnprintf(path, size, "%s/tests/shell", exec_path); path 470 tools/perf/tests/builtin-test.c return path; path 478 tools/perf/tests/builtin-test.c const char *path = shell_tests__dir(path_dir, sizeof(path_dir)); path 481 tools/perf/tests/builtin-test.c if (path == NULL) path 484 tools/perf/tests/builtin-test.c dir = opendir(path); path 488 tools/perf/tests/builtin-test.c for_each_shell_test(dir, path, ent) { path 490 tools/perf/tests/builtin-test.c const char *desc = shell_test__description(bf, sizeof(bf), path, ent->d_name); path 641 tools/perf/tests/builtin-test.c const char *path = shell_tests__dir(path_dir, sizeof(path_dir)); path 643 tools/perf/tests/builtin-test.c if (path == NULL) path 646 tools/perf/tests/builtin-test.c dir = opendir(path); path 650 tools/perf/tests/builtin-test.c for_each_shell_test(dir, path, ent) { path 654 tools/perf/tests/builtin-test.c .desc = shell_test__description(bf, sizeof(bf), path, ent->d_name), path 179 tools/perf/tests/dso-data.c char path[PATH_MAX]; path 184 tools/perf/tests/dso-data.c scnprintf(path, PATH_MAX, "%s/self/fd", procfs__mountpoint()); path 185 tools/perf/tests/dso-data.c pr_debug("fd path: %s\n", path); path 187 tools/perf/tests/dso-data.c dir = opendir(path); path 10 tools/perf/tests/kmod-path.c static int test(const char *path, bool alloc_name, bool kmod, path 18 tools/perf/tests/kmod-path.c !__kmod_path__parse(&m, path, alloc_name)); path 21 tools/perf/tests/kmod-path.c path, alloc_name, m.kmod, m.comp, m.name); path 35 tools/perf/tests/kmod-path.c static int test_is_kernel_module(const char *path, int cpumode, bool expect) path 38 tools/perf/tests/kmod-path.c (!!is_kernel_module(path, cpumode)) == (!!expect)); path 40 tools/perf/tests/kmod-path.c path, cpumode, expect ? "true" : "false"); path 44 tools/perf/tests/kmod-path.c #define T(path, an, k, c, n) \ path 45 tools/perf/tests/kmod-path.c TEST_ASSERT_VAL("failed", !test(path, an, k, c, n)) path 47 tools/perf/tests/kmod-path.c #define M(path, c, e) \ path 48 tools/perf/tests/kmod-path.c TEST_ASSERT_VAL("failed", !test_is_kernel_module(path, c, e)) path 1856 tools/perf/tests/parse-events.c char path[PATH_MAX]; path 1859 tools/perf/tests/parse-events.c snprintf(path, PATH_MAX, "%s/bus/event_source/devices/cpu/format/", path 1862 tools/perf/tests/parse-events.c ret = stat(path, &st); path 1871 tools/perf/tests/parse-events.c char path[PATH_MAX]; path 1876 tools/perf/tests/parse-events.c snprintf(path, PATH_MAX, "%s/bus/event_source/devices/cpu/events/", path 1879 tools/perf/tests/parse-events.c ret = stat(path, &st); path 1885 tools/perf/tests/parse-events.c dir = opendir(path); path 16 tools/perf/tests/topology.c static int get_temp(char *path) path 20 tools/perf/tests/topology.c strcpy(path, TEMPL); path 22 tools/perf/tests/topology.c fd = mkstemp(path); path 32 tools/perf/tests/topology.c static int session_write_header(char *path) path 37 tools/perf/tests/topology.c .path = path, path 62 tools/perf/tests/topology.c static int check_cpu_topology(char *path, struct perf_cpu_map *map) path 67 tools/perf/tests/topology.c .path = path, path 120 tools/perf/tests/topology.c char path[PATH_MAX]; path 124 tools/perf/tests/topology.c TEST_ASSERT_VAL("can't get templ file", !get_temp(path)); path 126 tools/perf/tests/topology.c pr_debug("templ file: %s\n", path); path 128 tools/perf/tests/topology.c if (session_write_header(path)) path 137 tools/perf/tests/topology.c ret = check_cpu_topology(path, map); path 141 tools/perf/tests/topology.c unlink(path); path 2293 tools/perf/ui/browsers/hists.c char path[PATH_MAX]; path 2301 tools/perf/ui/browsers/hists.c snprintf(path, sizeof(path), "%s/%s", pwd, name); path 2303 tools/perf/ui/browsers/hists.c file = fopen(path, "r"); path 2315 tools/perf/ui/browsers/hists.c abs_path[nr_options] = strdup(path); path 281 tools/perf/ui/gtk/hists.c static void on_row_activated(GtkTreeView *view, GtkTreePath *path, path 285 tools/perf/ui/gtk/hists.c bool expanded = gtk_tree_view_row_expanded(view, path); path 288 tools/perf/ui/gtk/hists.c gtk_tree_view_collapse_row(view, path); path 290 tools/perf/ui/gtk/hists.c gtk_tree_view_expand_row(view, path, FALSE); path 1154 tools/perf/util/annotate.c free_srcline(al->path); path 1418 tools/perf/util/annotate.c if (al->path) { path 1419 tools/perf/util/annotate.c if (!prev_line || strcmp(prev_line, al->path) path 1421 tools/perf/util/annotate.c color_fprintf(stdout, color, " %s", al->path); path 1422 tools/perf/util/annotate.c prev_line = al->path; path 2127 tools/perf/util/annotate.c ret = strcmp(iter->path, al->path); path 2219 tools/perf/util/annotate.c char *path; path 2232 tools/perf/util/annotate.c path = al->path; path 2234 tools/perf/util/annotate.c color_fprintf(stdout, color, " %s\n", path); path 2665 tools/perf/util/annotate.c al->path = get_srcline(map->dso, notes->start + al->offset, NULL, path 142 tools/perf/util/annotate.h char *path; path 24 tools/perf/util/cache.h static inline int is_absolute_path(const char *path) path 26 tools/perf/util/cache.h return path[0] == '/'; path 21 tools/perf/util/cgroup.c char path_v1[PATH_MAX + 1], path_v2[PATH_MAX + 2], *path; path 62 tools/perf/util/cgroup.c path = path_v1; path 64 tools/perf/util/cgroup.c path = path_v2; path 68 tools/perf/util/cgroup.c if (strlen(path) < maxlen) { path 69 tools/perf/util/cgroup.c strcpy(buf, path); path 77 tools/perf/util/cgroup.c char path[PATH_MAX + 1]; path 85 tools/perf/util/cgroup.c scnprintf(path, PATH_MAX, "%s/%s", mnt, name); path 87 tools/perf/util/cgroup.c fd = open(path, O_RDONLY); path 89 tools/perf/util/cgroup.c fprintf(stderr, "no access to cgroup %s\n", path); path 100 tools/perf/util/cpumap.c char path[PATH_MAX]; path 102 tools/perf/util/cpumap.c snprintf(path, PATH_MAX, path 105 tools/perf/util/cpumap.c return sysfs__read_int(path, value); path 254 tools/perf/util/cpumap.c static int get_max_num(char *path, int *max) path 260 tools/perf/util/cpumap.c if (filename__read_str(path, &buf, &num)) path 289 tools/perf/util/cpumap.c char path[PATH_MAX]; path 301 tools/perf/util/cpumap.c ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/possible", mnt); path 307 tools/perf/util/cpumap.c ret = get_max_num(path, &max_cpu_num); path 312 tools/perf/util/cpumap.c ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/present", mnt); path 318 tools/perf/util/cpumap.c ret = get_max_num(path, &max_present_cpu_num); path 329 tools/perf/util/cpumap.c char path[PATH_MAX]; path 340 tools/perf/util/cpumap.c ret = snprintf(path, PATH_MAX, "%s/devices/system/node/possible", mnt); path 346 tools/perf/util/cpumap.c ret = get_max_num(path, &max_node_num); path 413 tools/perf/util/cpumap.c char path[PATH_MAX]; path 425 tools/perf/util/cpumap.c n = snprintf(path, PATH_MAX, "%s/devices/system/node", mnt); path 431 tools/perf/util/cpumap.c dir1 = opendir(path); path 440 tools/perf/util/cpumap.c n = snprintf(buf, PATH_MAX, "%s/%s", path, dent1->d_name); path 297 tools/perf/util/cputopo.c char path[MAXPATHLEN]; path 304 tools/perf/util/cputopo.c scnprintf(path, MAXPATHLEN, NODE_ONLINE_FMT, path 307 tools/perf/util/cputopo.c fp = fopen(path, "r"); path 1484 tools/perf/util/data-convert-bt.c static int ctf_writer__init(struct ctf_writer *cw, const char *path) path 1493 tools/perf/util/data-convert-bt.c writer = bt_ctf_writer_create(path); path 1576 tools/perf/util/data-convert-bt.c int bt_convert__perf2ctf(const char *input, const char *path, path 1581 tools/perf/util/data-convert-bt.c .path = input, path 1617 tools/perf/util/data-convert-bt.c if (ctf_writer__init(cw, path)) path 1655 tools/perf/util/data-convert-bt.c data.path, path); path 25 tools/perf/util/data.c zfree(&files[nr].path); path 54 tools/perf/util/data.c if (asprintf(&file->path, "%s/data.%d", data->path, i) < 0) path 57 tools/perf/util/data.c ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR); path 86 tools/perf/util/data.c dir = opendir(data->path); path 92 tools/perf/util/data.c char path[PATH_MAX]; path 95 tools/perf/util/data.c snprintf(path, sizeof(path), "%s/%s", data->path, dent->d_name); path 96 tools/perf/util/data.c if (stat(path, &st)) path 111 tools/perf/util/data.c file->path = strdup(path); path 112 tools/perf/util/data.c if (!file->path) path 115 tools/perf/util/data.c ret = open(file->path, O_RDONLY); path 162 tools/perf/util/data.c if (!data->path) { path 166 tools/perf/util/data.c if (!strcmp(data->path, "-")) path 183 tools/perf/util/data.c if (!stat(data->path, &st) && st.st_size) { path 188 tools/perf/util/data.c data->path); path 199 tools/perf/util/data.c if (rename(data->path, oldname)) { path 202 tools/perf/util/data.c data->path, oldname); path 214 tools/perf/util/data.c if (stat(data->path, &st)) path 226 tools/perf/util/data.c fd = open(data->file.path, O_RDONLY); path 230 tools/perf/util/data.c pr_err("failed to open %s: %s", data->file.path, path 232 tools/perf/util/data.c if (err == ENOENT && !strcmp(data->file.path, "perf.data")) path 243 tools/perf/util/data.c data->file.path); path 249 tools/perf/util/data.c data->file.path); path 266 tools/perf/util/data.c fd = open(data->file.path, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC, path 270 tools/perf/util/data.c pr_err("failed to open %s : %s\n", data->file.path, path 284 tools/perf/util/data.c zfree(&data->file.path); path 294 tools/perf/util/data.c data->file.path = strdup(data->path); path 295 tools/perf/util/data.c if (!data->file.path) path 309 tools/perf/util/data.c if (asprintf(&data->file.path, "%s/header", data->path) < 0) path 313 tools/perf/util/data.c mkdir(data->path, S_IRWXU) < 0) path 320 tools/perf/util/data.c rm_rf_perf_data(data->path); path 330 tools/perf/util/data.c if (!data->path) path 331 tools/perf/util/data.c data->path = "perf.data"; path 348 tools/perf/util/data.c zfree(&data->file.path); path 376 tools/perf/util/data.c if (asprintf(new_filepath, "%s.%s", data->path, postfix) < 0) path 383 tools/perf/util/data.c if (rename(data->path, *new_filepath)) path 384 tools/perf/util/data.c pr_warning("Failed to rename %s to %s\n", data->path, *new_filepath); path 13 tools/perf/util/data.h char *path; path 19 tools/perf/util/data.h const char *path; path 343 tools/perf/util/dso.c int __kmod_path__parse(struct kmod_path *m, const char *path, path 346 tools/perf/util/dso.c const char *name = strrchr(path, '/'); path 347 tools/perf/util/dso.c const char *ext = strrchr(path, '.'); path 351 tools/perf/util/dso.c name = name ? name + 1 : path; path 1259 tools/perf/util/dso.c char path[PATH_MAX]; path 1263 tools/perf/util/dso.c sprintf(path, "%s/sys/kernel/notes", machine->root_dir); path 1264 tools/perf/util/dso.c if (sysfs__read_build_id(path, dso->build_id, path 271 tools/perf/util/dso.h int __kmod_path__parse(struct kmod_path *m, const char *path, path 2396 tools/perf/util/evsel.c char path[PATH_MAX]; path 2405 tools/perf/util/evsel.c scnprintf(path, sizeof(path), "%s/%s/comm", path 2408 tools/perf/util/evsel.c if (filename__read_str(path, &data, &size)) path 1033 tools/perf/util/header.c char path[PATH_MAX], file[PATH_MAX]; path 1037 tools/perf/util/header.c scnprintf(path, PATH_MAX, "devices/system/cpu/cpu%d/cache/index%d/", cpu, level); path 1038 tools/perf/util/header.c scnprintf(file, PATH_MAX, "%s/%s", sysfs__mountpoint(), path); path 1043 tools/perf/util/header.c scnprintf(file, PATH_MAX, "%s/level", path); path 1047 tools/perf/util/header.c scnprintf(file, PATH_MAX, "%s/coherency_line_size", path); path 1051 tools/perf/util/header.c scnprintf(file, PATH_MAX, "%s/number_of_sets", path); path 1055 tools/perf/util/header.c scnprintf(file, PATH_MAX, "%s/ways_of_associativity", path); path 1059 tools/perf/util/header.c scnprintf(file, PATH_MAX, "%s/type", path); path 1066 tools/perf/util/header.c scnprintf(file, PATH_MAX, "%s/size", path); path 1075 tools/perf/util/header.c scnprintf(file, PATH_MAX, "%s/shared_cpu_list", path); path 1206 tools/perf/util/header.c char path[PATH_MAX]; path 1216 tools/perf/util/header.c scnprintf(path, PATH_MAX, path 1220 tools/perf/util/header.c dir = opendir(path); path 1261 tools/perf/util/header.c char path[PATH_MAX]; path 1267 tools/perf/util/header.c scnprintf(path, PATH_MAX, "%s/devices/system/node/", path 1270 tools/perf/util/header.c dir = opendir(path); path 1273 tools/perf/util/header.c __func__, path); path 3561 tools/perf/util/header.c data->file.path); path 3567 tools/perf/util/header.c data->file.path); path 671 tools/perf/util/jitdump.c jit_inject(struct jit_buf_desc *jd, char *path) path 676 tools/perf/util/jitdump.c fprintf(stderr, "injecting: %s\n", path); path 678 tools/perf/util/jitdump.c ret = jit_open(jd, path); path 687 tools/perf/util/jitdump.c fprintf(stderr, "injected: %s (%d)\n", path, ret); path 73 tools/perf/util/llvm-utils.c char *env, *path, *tmp = NULL; path 96 tools/perf/util/llvm-utils.c path = strtok_r(env, ":", &tmp); path 97 tools/perf/util/llvm-utils.c while (path) { path 98 tools/perf/util/llvm-utils.c scnprintf(buf, sizeof(buf), "%s/%s", path, name); path 104 tools/perf/util/llvm-utils.c path = strtok_r(NULL, ":", &tmp); path 395 tools/perf/util/llvm-utils.c void llvm__dump_obj(const char *path, void *obj_buf, size_t size) path 397 tools/perf/util/llvm-utils.c char *obj_path = strdup(path); path 430 tools/perf/util/llvm-utils.c int llvm__compile_bpf(const char *path, void **p_obj_buf, path 449 tools/perf/util/llvm-utils.c if (path[0] != '-' && realpath(path, abspath) == NULL) { path 452 tools/perf/util/llvm-utils.c path, str_error_r(err, serr, sizeof(serr))); path 521 tools/perf/util/llvm-utils.c (path[0] == '-') ? path : abspath); path 536 tools/perf/util/llvm-utils.c pr_err("ERROR:\tunable to compile %s\n", path); path 539 tools/perf/util/llvm-utils.c pr_err(" \t\tclang -target bpf -O2 -c %s\n", path); path 59 tools/perf/util/llvm-utils.h int llvm__compile_bpf(const char *path, void **p_obj_buf, size_t *p_obj_buf_sz); path 68 tools/perf/util/llvm-utils.h void llvm__dump_obj(const char *path, void *obj_buf, size_t size); path 334 tools/perf/util/machine.c char path[PATH_MAX]; path 344 tools/perf/util/machine.c sprintf(path, "%s/%d", symbol_conf.guestmount, pid); path 345 tools/perf/util/machine.c if (access(path, R_OK)) { path 351 tools/perf/util/machine.c if (!strlist__has_entry(seen, path)) { path 352 tools/perf/util/machine.c pr_err("Can't access file %s\n", path); path 353 tools/perf/util/machine.c strlist__add(seen, path); path 358 tools/perf/util/machine.c root_dir = path; path 1132 tools/perf/util/machine.c char path[PATH_MAX]; path 1159 tools/perf/util/machine.c sprintf(path, "%s/%s/proc/kallsyms", path 1162 tools/perf/util/machine.c ret = access(path, R_OK); path 1164 tools/perf/util/machine.c pr_debug("Can't access file %s\n", path); path 1264 tools/perf/util/machine.c static int map_groups__set_module_path(struct map_groups *mg, const char *path, path 1273 tools/perf/util/machine.c long_name = strdup(path); path 1305 tools/perf/util/machine.c char path[PATH_MAX]; path 1309 tools/perf/util/machine.c snprintf(path, sizeof(path), "%s/%s", dir_name, dent->d_name); path 1310 tools/perf/util/machine.c if (stat(path, &st)) path 1325 tools/perf/util/machine.c ret = map_groups__set_modules_path_dir(mg, path, path 1337 tools/perf/util/machine.c ret = map_groups__set_module_path(mg, path, &m); path 1395 tools/perf/util/machine.c char path[PATH_MAX]; path 1400 tools/perf/util/machine.c snprintf(path, PATH_MAX, "%s/proc/modules", machine->root_dir); path 1401 tools/perf/util/machine.c modules = path; path 92 tools/perf/util/mem-events.c char path[PATH_MAX]; path 96 tools/perf/util/mem-events.c scnprintf(path, PATH_MAX, "%s/devices/cpu/events/%s", path 99 tools/perf/util/mem-events.c if (!stat(path, &st)) path 272 tools/perf/util/namespaces.c char *nsinfo__realpath(const char *path, struct nsinfo *nsi) path 278 tools/perf/util/namespaces.c rpath = realpath(path, NULL); path 57 tools/perf/util/namespaces.h char *nsinfo__realpath(const char *path, struct nsinfo *nsi); path 188 tools/perf/util/parse-events.c struct tracepoint_path *path = NULL; path 226 tools/perf/util/parse-events.c path = zalloc(sizeof(*path)); path 227 tools/perf/util/parse-events.c if (!path) path 229 tools/perf/util/parse-events.c path->system = malloc(MAX_EVENT_LENGTH); path 230 tools/perf/util/parse-events.c if (!path->system) { path 231 tools/perf/util/parse-events.c free(path); path 234 tools/perf/util/parse-events.c path->name = malloc(MAX_EVENT_LENGTH); path 235 tools/perf/util/parse-events.c if (!path->name) { path 236 tools/perf/util/parse-events.c zfree(&path->system); path 237 tools/perf/util/parse-events.c free(path); path 240 tools/perf/util/parse-events.c strncpy(path->system, sys_dirent->d_name, path 242 tools/perf/util/parse-events.c strncpy(path->name, evt_dirent->d_name, path 244 tools/perf/util/parse-events.c return path; path 258 tools/perf/util/parse-events.c struct tracepoint_path *path = zalloc(sizeof(*path)); path 261 tools/perf/util/parse-events.c if (path == NULL || str == NULL) { path 262 tools/perf/util/parse-events.c free(path); path 266 tools/perf/util/parse-events.c path->system = strndup(name, str - name); path 267 tools/perf/util/parse-events.c path->name = strdup(str+1); path 269 tools/perf/util/parse-events.c if (path->system == NULL || path->name == NULL) { path 270 tools/perf/util/parse-events.c zfree(&path->system); path 271 tools/perf/util/parse-events.c zfree(&path->name); path 272 tools/perf/util/parse-events.c zfree(&path); path 275 tools/perf/util/parse-events.c return path; path 2374 tools/perf/util/parse-events.c char *buf, *path, *ptr = NULL; path 2427 tools/perf/util/parse-events.c path = build_id_cache__origname(buf); path 2428 tools/perf/util/parse-events.c ret = asprintf(&buf, "%s@%s(%.12s)", nd->s, path, buf); path 2433 tools/perf/util/parse-events.c free(path); path 37 tools/perf/util/path.c static char *cleanup_path(char *path) path 40 tools/perf/util/path.c if (!memcmp(path, "./", 2)) { path 41 tools/perf/util/path.c path += 2; path 42 tools/perf/util/path.c while (*path == '/') path 43 tools/perf/util/path.c path++; path 45 tools/perf/util/path.c return path; path 86 tools/perf/util/path.c char path[PATH_MAX]; path 89 tools/perf/util/path.c sprintf(path, "%s/%s", base_path, dent->d_name); path 90 tools/perf/util/path.c if (stat(path, &st)) path 55 tools/perf/util/pmu.c char path[PATH_MAX]; path 62 tools/perf/util/pmu.c snprintf(path, PATH_MAX, "%s/%s", dir, name); path 65 tools/perf/util/pmu.c file = fopen(path, "r"); path 86 tools/perf/util/pmu.c char path[PATH_MAX]; path 92 tools/perf/util/pmu.c snprintf(path, PATH_MAX, path 95 tools/perf/util/pmu.c if (stat(path, &st) < 0) path 98 tools/perf/util/pmu.c if (perf_pmu__format_parse(path, format)) path 147 tools/perf/util/pmu.c char path[PATH_MAX]; path 149 tools/perf/util/pmu.c scnprintf(path, PATH_MAX, "%s/%s.scale", dir, name); path 151 tools/perf/util/pmu.c fd = open(path, O_RDONLY); path 175 tools/perf/util/pmu.c char path[PATH_MAX]; path 179 tools/perf/util/pmu.c scnprintf(path, PATH_MAX, "%s/%s.unit", dir, name); path 181 tools/perf/util/pmu.c fd = open(path, O_RDONLY); path 206 tools/perf/util/pmu.c char path[PATH_MAX]; path 209 tools/perf/util/pmu.c scnprintf(path, PATH_MAX, "%s/%s.per-pkg", dir, name); path 211 tools/perf/util/pmu.c fd = open(path, O_RDONLY); path 224 tools/perf/util/pmu.c char path[PATH_MAX]; path 227 tools/perf/util/pmu.c scnprintf(path, PATH_MAX, "%s/%s.snapshot", dir, name); path 229 tools/perf/util/pmu.c fd = open(path, O_RDONLY); path 437 tools/perf/util/pmu.c char path[PATH_MAX]; path 450 tools/perf/util/pmu.c scnprintf(path, PATH_MAX, "%s/%s", dir, name); path 452 tools/perf/util/pmu.c file = fopen(path, "r"); path 454 tools/perf/util/pmu.c pr_debug("Cannot open %s\n", path); path 474 tools/perf/util/pmu.c char path[PATH_MAX]; path 480 tools/perf/util/pmu.c snprintf(path, PATH_MAX, path 483 tools/perf/util/pmu.c if (stat(path, &st) < 0) path 486 tools/perf/util/pmu.c if (pmu_aliases_parse(path, head)) path 524 tools/perf/util/pmu.c char path[PATH_MAX]; path 532 tools/perf/util/pmu.c snprintf(path, PATH_MAX, path 535 tools/perf/util/pmu.c if (stat(path, &st) < 0) path 538 tools/perf/util/pmu.c file = fopen(path, "r"); path 552 tools/perf/util/pmu.c char path[PATH_MAX]; path 560 tools/perf/util/pmu.c snprintf(path, PATH_MAX, path 563 tools/perf/util/pmu.c dir = opendir(path); path 577 tools/perf/util/pmu.c static struct perf_cpu_map *__pmu_cpumask(const char *path) path 582 tools/perf/util/pmu.c file = fopen(path, "r"); path 600 tools/perf/util/pmu.c char path[PATH_MAX]; path 614 tools/perf/util/pmu.c snprintf(path, PATH_MAX, *template, sysfs, name); path 615 tools/perf/util/pmu.c cpus = __pmu_cpumask(path); path 625 tools/perf/util/pmu.c char path[PATH_MAX]; path 629 tools/perf/util/pmu.c snprintf(path, PATH_MAX, CPUS_TEMPLATE_UNCORE, sysfs, name); path 630 tools/perf/util/pmu.c cpus = __pmu_cpumask(path); path 644 tools/perf/util/pmu.c char path[PATH_MAX]; path 651 tools/perf/util/pmu.c scnprintf(path, PATH_MAX, "%s/bus/event_source/devices/%s/cpus", path 653 tools/perf/util/pmu.c if (stat(path, &st) == 0) path 802 tools/perf/util/pmu.c char path[PATH_MAX]; path 805 tools/perf/util/pmu.c scnprintf(path, PATH_MAX, path 809 tools/perf/util/pmu.c sysfs__read_int(path, &max_precise); path 1523 tools/perf/util/pmu.c char path[PATH_MAX]; path 1530 tools/perf/util/pmu.c snprintf(path, PATH_MAX, path 1533 tools/perf/util/pmu.c if (stat(path, &st) < 0) path 1536 tools/perf/util/pmu.c return fopen(path, "r"); path 450 tools/perf/util/probe-event.c const char *path = module; path 473 tools/perf/util/probe-event.c path = dso->long_name; path 476 tools/perf/util/probe-event.c ret = debuginfo__new(path); path 478 tools/perf/util/probe-event.c pr_warning("The %s file has no debug information.\n", path); path 479 tools/perf/util/probe-event.c if (!module || !strtailcmp(path, ".ko")) path 495 tools/perf/util/probe-event.c const char *path = module; path 499 tools/perf/util/probe-event.c path = "kernel"; path 501 tools/perf/util/probe-event.c if (debuginfo_cache_path && !strcmp(debuginfo_cache_path, path)) path 506 tools/perf/util/probe-event.c debuginfo_cache_path = strdup(path); path 968 tools/perf/util/probe-event.c tmp = lr->path; path 969 tools/perf/util/probe-event.c ret = get_real_path(tmp, lr->comp_dir, &lr->path); path 972 tools/perf/util/probe-event.c if (tmp != lr->path) path 983 tools/perf/util/probe-event.c fprintf(stdout, "<%s@%s:%d>\n", lr->function, lr->path, path 986 tools/perf/util/probe-event.c fprintf(stdout, "<%s:%d>\n", lr->path, lr->start); path 988 tools/perf/util/probe-event.c fp = fopen(lr->path, "r"); path 990 tools/perf/util/probe-event.c pr_warning("Failed to open %s: %s\n", lr->path, path 1182 tools/perf/util/probe-event.c zfree(&lr->path); path 111 tools/perf/util/probe-event.h char *path; /* Real path name */ path 52 tools/perf/util/probe-finder.c const char *path) path 56 tools/perf/util/probe-finder.c fd = open(path, O_RDONLY); path 86 tools/perf/util/probe-finder.c static struct debuginfo *__debuginfo__new(const char *path) path 92 tools/perf/util/probe-finder.c if (debuginfo__init_offline_dwarf(dbg, path) < 0) path 95 tools/perf/util/probe-finder.c pr_debug("Open Debuginfo file: %s\n", path); path 107 tools/perf/util/probe-finder.c struct debuginfo *debuginfo__new(const char *path) path 115 tools/perf/util/probe-finder.c dso = dso__new(path); path 131 tools/perf/util/probe-finder.c return dinfo ? : __debuginfo__new(path); path 1693 tools/perf/util/probe-finder.c if (!lr->path) { path 1694 tools/perf/util/probe-finder.c lr->path = strdup(src); path 1695 tools/perf/util/probe-finder.c if (lr->path == NULL) path 1733 tools/perf/util/probe-finder.c zfree(&lf->lr->path); path 1859 tools/perf/util/probe-finder.c pr_debug("path: %s\n", lr->path); path 38 tools/perf/util/probe-finder.h struct debuginfo *debuginfo__new(const char *path); path 60 tools/perf/util/srcline.c static const char *gnu_basename(const char *path) path 62 tools/perf/util/srcline.c const char *base = strrchr(path, '/'); path 64 tools/perf/util/srcline.c return base ? base + 1 : path; path 232 tools/perf/util/srcline.c static struct a2l_data *addr2line_init(const char *path) path 237 tools/perf/util/srcline.c abfd = bfd_openr(path, NULL); path 249 tools/perf/util/srcline.c a2l->input = strdup(path); path 1932 tools/perf/util/symbol.c char path[PATH_MAX]; path 1963 tools/perf/util/symbol.c scnprintf(path, sizeof(path), "%s/%s/%s", path 1966 tools/perf/util/symbol.c if (!find_matching_kcore(map, path, sizeof(path))) path 1967 tools/perf/util/symbol.c return strdup(path); path 1976 tools/perf/util/symbol.c if (!build_id_cache__kallsyms_path(sbuild_id, path, sizeof(path))) { path 1982 tools/perf/util/symbol.c return strdup(path); path 2051 tools/perf/util/symbol.c char path[PATH_MAX]; path 2076 tools/perf/util/symbol.c sprintf(path, "%s/proc/kallsyms", machine->root_dir); path 2077 tools/perf/util/symbol.c kallsyms_filename = path; path 87 tools/perf/util/symbol.h static inline int __symbol__join_symfs(char *bf, size_t size, const char *path) path 89 tools/perf/util/symbol.h return path__join(bf, size, symbol_conf.symfs, path); path 92 tools/perf/util/symbol.h #define symbol__join_symfs(bf, path) __symbol__join_symfs(bf, sizeof(bf), path) path 275 tools/perf/util/thread.c char path[64]; path 280 tools/perf/util/thread.c if (!(snprintf(path, sizeof(path), "%d/task/%d/comm", path 281 tools/perf/util/thread.c thread->pid_, thread->tid) >= (int)sizeof(path)) && path 282 tools/perf/util/thread.c procfs__read_str(path, &comm, &sz) == 0) { path 78 tools/perf/util/thread_map.c char path[NAME_MAX + 1 + 6]; path 100 tools/perf/util/thread_map.c snprintf(path, sizeof(path), "/proc/%s", dirent->d_name); path 105 tools/perf/util/thread_map.c if (stat(path, &st) != 0 || st.st_uid != uid) path 109 tools/perf/util/thread_map.c snprintf(path, sizeof(path), "/proc/%d/task", pid); path 110 tools/perf/util/thread_map.c items = scandir(path, &namelist, filter, NULL); path 320 tools/perf/util/thread_map.c char *path; path 324 tools/perf/util/thread_map.c if (asprintf(&path, "%s/%d/comm", procfs__mountpoint(), pid) == -1) path 327 tools/perf/util/thread_map.c err = filename__read_str(path, comm, &size); path 338 tools/perf/util/thread_map.c free(path); path 90 tools/perf/util/trace-event-info.c char *path = get_events_file("header_page"); path 94 tools/perf/util/trace-event-info.c if (!path) { path 99 tools/perf/util/trace-event-info.c if (stat(path, &st) < 0) { path 100 tools/perf/util/trace-event-info.c pr_debug("can't read '%s'", path); path 109 tools/perf/util/trace-event-info.c if (record_file(path, 8) < 0) { path 114 tools/perf/util/trace-event-info.c put_events_file(path); path 116 tools/perf/util/trace-event-info.c path = get_events_file("header_event"); path 117 tools/perf/util/trace-event-info.c if (!path) { path 123 tools/perf/util/trace-event-info.c if (stat(path, &st) < 0) { path 124 tools/perf/util/trace-event-info.c pr_debug("can't read '%s'", path); path 133 tools/perf/util/trace-event-info.c if (record_file(path, 8) < 0) { path 140 tools/perf/util/trace-event-info.c put_events_file(path); path 226 tools/perf/util/trace-event-info.c char *path; path 229 tools/perf/util/trace-event-info.c path = get_events_file("ftrace"); path 230 tools/perf/util/trace-event-info.c if (!path) { path 235 tools/perf/util/trace-event-info.c ret = copy_event_system(path, tps); path 237 tools/perf/util/trace-event-info.c put_tracing_file(path); path 257 tools/perf/util/trace-event-info.c char *path; path 264 tools/perf/util/trace-event-info.c path = get_tracing_file("events"); path 265 tools/perf/util/trace-event-info.c if (!path) { path 270 tools/perf/util/trace-event-info.c dir = opendir(path); path 273 tools/perf/util/trace-event-info.c pr_debug("can't read directory '%s'", path); path 297 tools/perf/util/trace-event-info.c if (asprintf(&sys, "%s/%s", path, dent->d_name) < 0) { path 317 tools/perf/util/trace-event-info.c put_tracing_file(path); path 337 tools/perf/util/trace-event-info.c char *path; path 341 tools/perf/util/trace-event-info.c path = get_tracing_file("printk_formats"); path 342 tools/perf/util/trace-event-info.c if (!path) { path 347 tools/perf/util/trace-event-info.c ret = stat(path, &st); path 355 tools/perf/util/trace-event-info.c err = record_file(path, 4); path 358 tools/perf/util/trace-event-info.c put_tracing_file(path); path 365 tools/perf/util/trace-event-info.c char *path; path 369 tools/perf/util/trace-event-info.c path = get_tracing_file("saved_cmdlines"); path 370 tools/perf/util/trace-event-info.c if (!path) { path 375 tools/perf/util/trace-event-info.c ret = stat(path, &st); path 383 tools/perf/util/trace-event-info.c err = record_file(path, 8); path 386 tools/perf/util/trace-event-info.c put_tracing_file(path); path 406 tools/perf/util/trace-event-info.c struct tracepoint_path path, *ppath = &path; path 431 tools/perf/util/trace-event-info.c put_tracepoints_path(&path); path 438 tools/perf/util/trace-event-info.c return nr_tracepoints > 0 ? path.next : NULL; path 80 tools/perf/util/trace-event.c char path[PATH_MAX]; path 88 tools/perf/util/trace-event.c scnprintf(path, PATH_MAX, "%s/%s/format", tp_dir, name); path 91 tools/perf/util/trace-event.c err = filename__read_str(path, &data, &size); path 73 tools/perf/util/util.c int mkdir_p(char *path, mode_t mode) path 77 tools/perf/util/util.c char *d = path; path 82 tools/perf/util/util.c if (stat(path, &st) == 0) path 89 tools/perf/util/util.c err = stat(path, &st) && mkdir(path, mode); path 96 tools/perf/util/util.c return (stat(path, &st) && mkdir(path, mode)) ? -1 : 0; path 130 tools/perf/util/util.c static int rm_rf_depth_pat(const char *path, int depth, const char **pat) path 139 tools/perf/util/util.c ret = lstat(path, &statbuf); path 145 tools/perf/util/util.c return unlink(path); path 148 tools/perf/util/util.c dir = opendir(path); path 163 tools/perf/util/util.c path, d->d_name); path 182 tools/perf/util/util.c return rmdir(path); path 185 tools/perf/util/util.c int rm_rf_perf_data(const char *path) path 193 tools/perf/util/util.c return rm_rf_depth_pat(path, 0, pat); path 196 tools/perf/util/util.c int rm_rf(const char *path) path 198 tools/perf/util/util.c return rm_rf_depth_pat(path, INT_MAX, NULL); path 22 tools/perf/util/util.h int mkdir_p(char *path, mode_t mode); path 23 tools/perf/util/util.h int rm_rf(const char *path); path 24 tools/perf/util/util.h int rm_rf_perf_data(const char *path); path 155 tools/power/cpupower/bench/parse.c int prepare_config(const char *path, struct config *config) path 166 tools/power/cpupower/bench/parse.c configfile = fopen(path, "r"); path 38 tools/power/cpupower/bench/parse.h int prepare_config(const char *path, struct config *config); path 26 tools/power/cpupower/lib/cpufreq.c char path[SYSFS_PATH_MAX]; path 28 tools/power/cpupower/lib/cpufreq.c snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpufreq/%s", path 30 tools/power/cpupower/lib/cpufreq.c return cpupower_read_sysfs(path, buf, buflen); path 39 tools/power/cpupower/lib/cpufreq.c char path[SYSFS_PATH_MAX]; path 43 tools/power/cpupower/lib/cpufreq.c snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpufreq/%s", path 46 tools/power/cpupower/lib/cpufreq.c fd = open(path, O_WRONLY); path 33 tools/power/cpupower/lib/cpuidle.c char path[SYSFS_PATH_MAX]; path 37 tools/power/cpupower/lib/cpuidle.c snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", path 39 tools/power/cpupower/lib/cpuidle.c if (stat(path, &statbuf) != 0) path 56 tools/power/cpupower/lib/cpuidle.c char path[SYSFS_PATH_MAX]; path 60 tools/power/cpupower/lib/cpuidle.c snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", path 63 tools/power/cpupower/lib/cpuidle.c fd = open(path, O_RDONLY); path 91 tools/power/cpupower/lib/cpuidle.c char path[SYSFS_PATH_MAX]; path 95 tools/power/cpupower/lib/cpuidle.c snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", path 98 tools/power/cpupower/lib/cpuidle.c fd = open(path, O_WRONLY); path 317 tools/power/cpupower/lib/cpuidle.c char path[SYSFS_PATH_MAX]; path 319 tools/power/cpupower/lib/cpuidle.c snprintf(path, sizeof(path), PATH_TO_CPU "cpuidle/%s", fname); path 321 tools/power/cpupower/lib/cpuidle.c return cpupower_read_sysfs(path, buf, buflen); path 17 tools/power/cpupower/lib/cpupower.c unsigned int cpupower_read_sysfs(const char *path, char *buf, size_t buflen) path 22 tools/power/cpupower/lib/cpupower.c fd = open(path, O_RDONLY); path 48 tools/power/cpupower/lib/cpupower.c char path[SYSFS_PATH_MAX]; path 56 tools/power/cpupower/lib/cpupower.c snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u", cpu); path 58 tools/power/cpupower/lib/cpupower.c if (stat(path, &statbuf) != 0) path 65 tools/power/cpupower/lib/cpupower.c snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/online", cpu); path 66 tools/power/cpupower/lib/cpupower.c if (stat(path, &statbuf) != 0) path 69 tools/power/cpupower/lib/cpupower.c fd = open(path, O_RDONLY); path 93 tools/power/cpupower/lib/cpupower.c char path[SYSFS_PATH_MAX]; path 95 tools/power/cpupower/lib/cpupower.c snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/topology/%s", path 97 tools/power/cpupower/lib/cpupower.c if (cpupower_read_sysfs(path, linebuf, MAX_LINE_LEN) == 0) path 6 tools/power/cpupower/lib/cpupower_intern.h unsigned int cpupower_read_sysfs(const char *path, char *buf, size_t buflen); path 18 tools/power/cpupower/utils/helpers/sysfs.c unsigned int sysfs_read_file(const char *path, char *buf, size_t buflen) path 23 tools/power/cpupower/utils/helpers/sysfs.c fd = open(path, O_RDONLY); path 49 tools/power/cpupower/utils/helpers/sysfs.c char path[SYSFS_PATH_MAX]; path 57 tools/power/cpupower/utils/helpers/sysfs.c snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u", cpu); path 59 tools/power/cpupower/utils/helpers/sysfs.c if (stat(path, &statbuf) != 0) path 66 tools/power/cpupower/utils/helpers/sysfs.c snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/online", cpu); path 67 tools/power/cpupower/utils/helpers/sysfs.c if (stat(path, &statbuf) != 0) path 70 tools/power/cpupower/utils/helpers/sysfs.c fd = open(path, O_RDONLY); path 107 tools/power/cpupower/utils/helpers/sysfs.c char path[SYSFS_PATH_MAX]; path 111 tools/power/cpupower/utils/helpers/sysfs.c snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", path 113 tools/power/cpupower/utils/helpers/sysfs.c if (stat(path, &statbuf) != 0) path 127 tools/power/cpupower/utils/helpers/sysfs.c char path[SYSFS_PATH_MAX]; path 131 tools/power/cpupower/utils/helpers/sysfs.c snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", path 134 tools/power/cpupower/utils/helpers/sysfs.c fd = open(path, O_RDONLY); path 162 tools/power/cpupower/utils/helpers/sysfs.c char path[SYSFS_PATH_MAX]; path 166 tools/power/cpupower/utils/helpers/sysfs.c snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", path 169 tools/power/cpupower/utils/helpers/sysfs.c fd = open(path, O_WRONLY); path 387 tools/power/cpupower/utils/helpers/sysfs.c char path[SYSFS_PATH_MAX]; path 389 tools/power/cpupower/utils/helpers/sysfs.c snprintf(path, sizeof(path), PATH_TO_CPU "cpuidle/%s", fname); path 391 tools/power/cpupower/utils/helpers/sysfs.c return sysfs_read_file(path, buf, buflen); path 9 tools/power/cpupower/utils/helpers/sysfs.h extern unsigned int sysfs_read_file(const char *path, char *buf, size_t buflen); path 86 tools/power/x86/intel-speed-select/isst-config.c static FILE *fopen_or_exit(const char *path, const char *mode) path 88 tools/power/x86/intel-speed-select/isst-config.c FILE *filep = fopen(path, mode); path 91 tools/power/x86/intel-speed-select/isst-config.c err(1, "%s: open failed", path); path 100 tools/power/x86/intel-speed-select/isst-config.c char path[PATH_MAX]; path 105 tools/power/x86/intel-speed-select/isst-config.c vsnprintf(path, sizeof(path), fmt, args); path 108 tools/power/x86/intel-speed-select/isst-config.c filep = fopen_or_exit(path, "r"); path 110 tools/power/x86/intel-speed-select/isst-config.c filep = fopen(path, "r"); path 115 tools/power/x86/intel-speed-select/isst-config.c err(1, "%s: failed to parse number from file", path); path 251 tools/power/x86/turbostat/turbostat.c char path[PATH_BYTES]; path 1673 tools/power/x86/turbostat/turbostat.c FILE *fopen_or_die(const char *path, const char *mode) path 1675 tools/power/x86/turbostat/turbostat.c FILE *filep = fopen(path, mode); path 1678 tools/power/x86/turbostat/turbostat.c err(1, "%s: open failed", path); path 1686 tools/power/x86/turbostat/turbostat.c unsigned long long snapshot_sysfs_counter(char *path) path 1692 tools/power/x86/turbostat/turbostat.c fp = fopen_or_die(path, "r"); path 1696 tools/power/x86/turbostat/turbostat.c err(1, "snapshot_sysfs_counter(%s)", path); path 1709 tools/power/x86/turbostat/turbostat.c char path[128 + PATH_BYTES]; path 1712 tools/power/x86/turbostat/turbostat.c sprintf(path, "/sys/devices/system/cpu/cpu%d/%s", path 1713 tools/power/x86/turbostat/turbostat.c cpu, mp->path); path 1715 tools/power/x86/turbostat/turbostat.c *counterp = snapshot_sysfs_counter(path); path 1717 tools/power/x86/turbostat/turbostat.c *counterp = snapshot_sysfs_counter(mp->path); path 2531 tools/power/x86/turbostat/turbostat.c char path[PATH_MAX]; path 2536 tools/power/x86/turbostat/turbostat.c vsnprintf(path, sizeof(path), fmt, args); path 2538 tools/power/x86/turbostat/turbostat.c filep = fopen(path, "r"); path 2542 tools/power/x86/turbostat/turbostat.c err(1, "%s: failed to parse number from file", path); path 2614 tools/power/x86/turbostat/turbostat.c char path[80]; path 2620 tools/power/x86/turbostat/turbostat.c sprintf(path, "/sys/devices/system/cpu/cpu%d/node%i/cpulist", path 2622 tools/power/x86/turbostat/turbostat.c filep = fopen(path, "r"); path 2633 tools/power/x86/turbostat/turbostat.c char path[80], character; path 2651 tools/power/x86/turbostat/turbostat.c sprintf(path, path 2653 tools/power/x86/turbostat/turbostat.c filep = fopen_or_die(path, "r"); path 2657 tools/power/x86/turbostat/turbostat.c err(1, "%s: failed to parse file", path); path 3497 tools/power/x86/turbostat/turbostat.c char path[64]; path 3509 tools/power/x86/turbostat/turbostat.c sprintf(path, "/sys/devices/system/cpu/cpu%d/cpuidle/state%d/name", path 3511 tools/power/x86/turbostat/turbostat.c input = fopen(path, "r"); path 3515 tools/power/x86/turbostat/turbostat.c err(1, "%s: failed to read file", path); path 3524 tools/power/x86/turbostat/turbostat.c sprintf(path, "/sys/devices/system/cpu/cpu%d/cpuidle/state%d/desc", path 3526 tools/power/x86/turbostat/turbostat.c input = fopen(path, "r"); path 3530 tools/power/x86/turbostat/turbostat.c err(1, "%s: failed to read file", path); path 3539 tools/power/x86/turbostat/turbostat.c char path[64]; path 3545 tools/power/x86/turbostat/turbostat.c sprintf(path, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_driver", path 3547 tools/power/x86/turbostat/turbostat.c input = fopen(path, "r"); path 3549 tools/power/x86/turbostat/turbostat.c fprintf(outf, "NSFOD %s\n", path); path 3553 tools/power/x86/turbostat/turbostat.c err(1, "%s: failed to read file", path); path 3556 tools/power/x86/turbostat/turbostat.c sprintf(path, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_governor", path 3558 tools/power/x86/turbostat/turbostat.c input = fopen(path, "r"); path 3560 tools/power/x86/turbostat/turbostat.c fprintf(outf, "NSFOD %s\n", path); path 3564 tools/power/x86/turbostat/turbostat.c err(1, "%s: failed to read file", path); path 3570 tools/power/x86/turbostat/turbostat.c sprintf(path, "/sys/devices/system/cpu/cpufreq/boost"); path 3571 tools/power/x86/turbostat/turbostat.c input = fopen(path, "r"); path 3574 tools/power/x86/turbostat/turbostat.c err(1, "%s: failed to parse number from file", path); path 3579 tools/power/x86/turbostat/turbostat.c sprintf(path, "/sys/devices/system/cpu/intel_pstate/no_turbo"); path 3580 tools/power/x86/turbostat/turbostat.c input = fopen(path, "r"); path 3583 tools/power/x86/turbostat/turbostat.c err(1, "%s: failed to parse number from file", path); path 5332 tools/power/x86/turbostat/turbostat.c int add_counter(unsigned int msr_num, char *path, char *name, path 5346 tools/power/x86/turbostat/turbostat.c if (path) path 5347 tools/power/x86/turbostat/turbostat.c strncpy(msrp->path, path, PATH_BYTES - 1); path 5395 tools/power/x86/turbostat/turbostat.c char *path = NULL; path 5412 tools/power/x86/turbostat/turbostat.c path = add_command; path 5475 tools/power/x86/turbostat/turbostat.c if ((msr_num == 0) && (path == NULL)) { path 5488 tools/power/x86/turbostat/turbostat.c if (add_counter(msr_num, path, name_buffer, width, scope, type, format, 0)) path 5509 tools/power/x86/turbostat/turbostat.c char path[64]; path 5520 tools/power/x86/turbostat/turbostat.c sprintf(path, "/sys/devices/system/cpu/cpu%d/cpuidle/state%d/name", path 5522 tools/power/x86/turbostat/turbostat.c input = fopen(path, "r"); path 5526 tools/power/x86/turbostat/turbostat.c err(1, "%s: failed to read file", path); path 5537 tools/power/x86/turbostat/turbostat.c sprintf(path, "cpuidle/state%d/time", state); path 5542 tools/power/x86/turbostat/turbostat.c add_counter(0, path, name_buf, 64, SCOPE_CPU, COUNTER_USEC, path 5548 tools/power/x86/turbostat/turbostat.c sprintf(path, "/sys/devices/system/cpu/cpu%d/cpuidle/state%d/name", path 5550 tools/power/x86/turbostat/turbostat.c input = fopen(path, "r"); path 5554 tools/power/x86/turbostat/turbostat.c err(1, "%s: failed to read file", path); path 5562 tools/power/x86/turbostat/turbostat.c sprintf(path, "cpuidle/state%d/usage", state); path 5567 tools/power/x86/turbostat/turbostat.c add_counter(0, path, name_buf, 64, SCOPE_CPU, COUNTER_ITEMS, path 1092 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c FILE *fopen_or_die(const char *path, const char *mode) path 1094 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c FILE *filep = fopen(path, "r"); path 1097 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c err(1, "%s: open failed", path); path 397 tools/testing/nvdimm/test/iomap.c acpi_status __wrap_acpi_evaluate_object(acpi_handle handle, acpi_string path, path 403 tools/testing/nvdimm/test/iomap.c if (!nfit_res || strcmp(path, "_FIT") || !buf) path 404 tools/testing/nvdimm/test/iomap.c return acpi_evaluate_object(handle, path, p, buf); path 32 tools/testing/selftests/bpf/cgroup_helpers.c #define format_cgroup_path(buf, path) \ path 34 tools/testing/selftests/bpf/cgroup_helpers.c CGROUP_WORK_DIR, path) path 46 tools/testing/selftests/bpf/cgroup_helpers.c char path[PATH_MAX + 1]; path 52 tools/testing/selftests/bpf/cgroup_helpers.c snprintf(path, sizeof(path), "%s/cgroup.controllers", cgroup_path); path 53 tools/testing/selftests/bpf/cgroup_helpers.c fd = open(path, O_RDONLY); path 55 tools/testing/selftests/bpf/cgroup_helpers.c log_err("Opening cgroup.controllers: %s", path); path 62 tools/testing/selftests/bpf/cgroup_helpers.c log_err("Reading cgroup.controllers: %s", path); path 72 tools/testing/selftests/bpf/cgroup_helpers.c snprintf(path, sizeof(path), "%s/cgroup.subtree_control", cgroup_path); path 73 tools/testing/selftests/bpf/cgroup_helpers.c cfd = open(path, O_RDWR); path 75 tools/testing/selftests/bpf/cgroup_helpers.c log_err("Opening cgroup.subtree_control: %s", path); path 81 tools/testing/selftests/bpf/cgroup_helpers.c log_err("Enabling controller %s: %s", c, path); path 178 tools/testing/selftests/bpf/cgroup_helpers.c int join_cgroup(const char *path) path 182 tools/testing/selftests/bpf/cgroup_helpers.c format_cgroup_path(cgroup_path, path); path 218 tools/testing/selftests/bpf/cgroup_helpers.c int create_and_get_cgroup(const char *path) path 223 tools/testing/selftests/bpf/cgroup_helpers.c format_cgroup_path(cgroup_path, path); path 225 tools/testing/selftests/bpf/cgroup_helpers.c log_err("mkdiring cgroup %s .. %s", path, cgroup_path); path 246 tools/testing/selftests/bpf/cgroup_helpers.c unsigned long long get_cgroup_id(const char *path) path 257 tools/testing/selftests/bpf/cgroup_helpers.c format_cgroup_path(cgroup_workdir, path); path 12 tools/testing/selftests/bpf/cgroup_helpers.h int create_and_get_cgroup(const char *path); path 13 tools/testing/selftests/bpf/cgroup_helpers.h int join_cgroup(const char *path); path 16 tools/testing/selftests/bpf/cgroup_helpers.h unsigned long long get_cgroup_id(const char *path); path 9 tools/testing/selftests/bpf/flow_dissector_load.h const char *path, path 21 tools/testing/selftests/bpf/flow_dissector_load.h ret = bpf_prog_load(path, BPF_PROG_TYPE_FLOW_DISSECTOR, obj, path 134 tools/testing/selftests/bpf/test_progs.c int test__join_cgroup(const char *path) path 149 tools/testing/selftests/bpf/test_progs.c fd = create_and_get_cgroup(path); path 153 tools/testing/selftests/bpf/test_progs.c env.test->test_num, env.test->test_name, path, errno); path 157 tools/testing/selftests/bpf/test_progs.c if (join_cgroup(path)) { path 160 tools/testing/selftests/bpf/test_progs.c env.test->test_num, env.test->test_name, path, errno); path 75 tools/testing/selftests/bpf/test_progs.h extern int test__join_cgroup(const char *path); path 829 tools/testing/selftests/bpf/test_sock_addr.c static int load_path(const struct sock_addr_test *test, const char *path) path 836 tools/testing/selftests/bpf/test_sock_addr.c attr.file = path; path 843 tools/testing/selftests/bpf/test_sock_addr.c log_err(">>> Loading program (%s) error.\n", path); path 19 tools/testing/selftests/cgroup/cgroup_util.c static ssize_t read_text(const char *path, char *buf, size_t max_len) path 24 tools/testing/selftests/cgroup/cgroup_util.c fd = open(path, O_RDONLY); path 38 tools/testing/selftests/cgroup/cgroup_util.c static ssize_t write_text(const char *path, char *buf, ssize_t len) path 42 tools/testing/selftests/cgroup/cgroup_util.c fd = open(path, O_WRONLY | O_APPEND); path 89 tools/testing/selftests/cgroup/cgroup_util.c char path[PATH_MAX]; path 91 tools/testing/selftests/cgroup/cgroup_util.c snprintf(path, sizeof(path), "%s/%s", cgroup, control); path 93 tools/testing/selftests/cgroup/cgroup_util.c if (read_text(path, buf, len) >= 0) path 163 tools/testing/selftests/cgroup/cgroup_util.c char path[PATH_MAX]; path 166 tools/testing/selftests/cgroup/cgroup_util.c snprintf(path, sizeof(path), "%s/%s", cgroup, control); path 168 tools/testing/selftests/cgroup/cgroup_util.c if (write_text(path, buf, len) == len) path 394 tools/testing/selftests/cgroup/cgroup_util.c char path[PATH_MAX]; path 397 tools/testing/selftests/cgroup/cgroup_util.c sprintf(path, "/proc/%d/oom_score_adj", pid); path 399 tools/testing/selftests/cgroup/cgroup_util.c fd = open(path, O_WRONLY | O_APPEND); path 415 tools/testing/selftests/cgroup/cgroup_util.c char path[PATH_MAX]; path 417 tools/testing/selftests/cgroup/cgroup_util.c snprintf(path, sizeof(path), "/proc/%d/%s", pid, item); path 419 tools/testing/selftests/cgroup/cgroup_util.c return read_text(path, buf, size); path 14 tools/testing/selftests/efivarfs/create-read.c const char *path; path 23 tools/testing/selftests/efivarfs/create-read.c path = argv[1]; path 26 tools/testing/selftests/efivarfs/create-read.c fd = open(path, O_RDWR | O_CREAT, 0600); path 13 tools/testing/selftests/efivarfs/open-unlink.c static int set_immutable(const char *path, int immutable) path 20 tools/testing/selftests/efivarfs/open-unlink.c fd = open(path, O_RDONLY); path 44 tools/testing/selftests/efivarfs/open-unlink.c static int get_immutable(const char *path) path 51 tools/testing/selftests/efivarfs/open-unlink.c fd = open(path, O_RDONLY); path 70 tools/testing/selftests/efivarfs/open-unlink.c const char *path; path 79 tools/testing/selftests/efivarfs/open-unlink.c path = argv[1]; path 89 tools/testing/selftests/efivarfs/open-unlink.c fd = open(path, O_WRONLY | O_CREAT, 0600); path 103 tools/testing/selftests/efivarfs/open-unlink.c rc = get_immutable(path); path 108 tools/testing/selftests/efivarfs/open-unlink.c rc = set_immutable(path, 0); path 115 tools/testing/selftests/efivarfs/open-unlink.c fd = open(path, O_RDONLY); path 121 tools/testing/selftests/efivarfs/open-unlink.c if (unlink(path) < 0) { path 28 tools/testing/selftests/exec/execveat.c static int execveat_(int fd, const char *path, char **argv, char **envp, path 32 tools/testing/selftests/exec/execveat.c return syscall(__NR_execveat, fd, path, argv, envp, flags); path 39 tools/testing/selftests/exec/execveat.c #define check_execveat_fail(fd, path, flags, errno) \ path 40 tools/testing/selftests/exec/execveat.c _check_execveat_fail(fd, path, flags, errno, #errno) path 41 tools/testing/selftests/exec/execveat.c static int _check_execveat_fail(int fd, const char *path, int flags, path 48 tools/testing/selftests/exec/execveat.c fd, path?:"(null)", flags, errno_str); path 49 tools/testing/selftests/exec/execveat.c rc = execveat_(fd, path, argv, envp, flags); path 65 tools/testing/selftests/exec/execveat.c static int check_execveat_invoked_rc(int fd, const char *path, int flags, path 71 tools/testing/selftests/exec/execveat.c int pathlen = path ? strlen(path) : 0; path 75 tools/testing/selftests/exec/execveat.c fd, path, (path + pathlen - 20), flags); path 78 tools/testing/selftests/exec/execveat.c fd, path?:"(null)", flags); path 86 tools/testing/selftests/exec/execveat.c rc = execveat_(fd, path, argv, envp, flags); path 112 tools/testing/selftests/exec/execveat.c static int check_execveat(int fd, const char *path, int flags) path 114 tools/testing/selftests/exec/execveat.c return check_execveat_invoked_rc(fd, path, flags, 99, 99); path 30 tools/testing/selftests/gpio/gpio-mockup-chardev.c static int get_debugfs(char **path) path 58 tools/testing/selftests/gpio/gpio-mockup-chardev.c ret = asprintf(path, "%s/gpio", mnt_fs_get_target(fs)); path 24 tools/testing/selftests/ia64/aliasing-test.c static int map_mem(char *path, off_t offset, size_t length, int touch) path 30 tools/testing/selftests/ia64/aliasing-test.c fd = open(path, O_RDWR); path 32 tools/testing/selftests/ia64/aliasing-test.c perror(path); path 36 tools/testing/selftests/ia64/aliasing-test.c if (fnmatch("/proc/bus/pci/*", path, 0) == 0) { path 62 tools/testing/selftests/ia64/aliasing-test.c static int scan_tree(char *path, char *file, off_t offset, size_t length, int touch) path 69 tools/testing/selftests/ia64/aliasing-test.c n = scandir(path, &namelist, 0, alphasort); path 83 tools/testing/selftests/ia64/aliasing-test.c path2 = malloc(strlen(path) + strlen(name) + 3); path 84 tools/testing/selftests/ia64/aliasing-test.c strcpy(path2, path); path 119 tools/testing/selftests/ia64/aliasing-test.c static int read_rom(char *path) path 124 tools/testing/selftests/ia64/aliasing-test.c fd = open(path, O_RDWR); path 126 tools/testing/selftests/ia64/aliasing-test.c perror(path); path 147 tools/testing/selftests/ia64/aliasing-test.c static int scan_rom(char *path, char *file) path 154 tools/testing/selftests/ia64/aliasing-test.c n = scandir(path, &namelist, 0, alphasort); path 168 tools/testing/selftests/ia64/aliasing-test.c path2 = malloc(strlen(path) + strlen(name) + 3); path 169 tools/testing/selftests/ia64/aliasing-test.c strcpy(path2, path); path 24 tools/testing/selftests/kvm/include/test_util.h int test_seq_read(const char *path, char **bufp, size_t *sizep); path 27 tools/testing/selftests/memfd/fuse_mnt.c static int memfd_getattr(const char *path, struct stat *st) path 31 tools/testing/selftests/memfd/fuse_mnt.c if (!strcmp(path, "/")) { path 34 tools/testing/selftests/memfd/fuse_mnt.c } else if (!strcmp(path, memfd_path)) { path 45 tools/testing/selftests/memfd/fuse_mnt.c static int memfd_readdir(const char *path, path 51 tools/testing/selftests/memfd/fuse_mnt.c if (strcmp(path, "/")) path 61 tools/testing/selftests/memfd/fuse_mnt.c static int memfd_open(const char *path, struct fuse_file_info *fi) path 63 tools/testing/selftests/memfd/fuse_mnt.c if (strcmp(path, memfd_path)) path 75 tools/testing/selftests/memfd/fuse_mnt.c static int memfd_read(const char *path, path 83 tools/testing/selftests/memfd/fuse_mnt.c if (strcmp(path, memfd_path) != 0) path 60 tools/testing/selftests/memfd/memfd_test.c char path[100]; path 62 tools/testing/selftests/memfd/memfd_test.c sprintf(path, "/proc/self/fd/%d", fd_in); path 64 tools/testing/selftests/memfd/memfd_test.c fd = open(path, O_RDWR); path 115 tools/testing/selftests/mount/unprivileged-remount-test.c static int read_mnt_flags(const char *path) path 121 tools/testing/selftests/mount/unprivileged-remount-test.c ret = statvfs(path, &stat); path 124 tools/testing/selftests/mount/unprivileged-remount-test.c path, strerror(errno)); path 30 tools/testing/selftests/nsfs/owner.c char path[128]; path 55 tools/testing/selftests/nsfs/owner.c snprintf(path, sizeof(path), "/proc/%d/ns/uts", pid); path 56 tools/testing/selftests/nsfs/owner.c ns = open(path, O_RDONLY); path 58 tools/testing/selftests/nsfs/owner.c return pr_err("Unable to open %s", path); path 67 tools/testing/selftests/nsfs/owner.c snprintf(path, sizeof(path), "/proc/%d/ns/user", pid); path 68 tools/testing/selftests/nsfs/owner.c if (stat(path, &st2)) path 44 tools/testing/selftests/nsfs/pidns.c char path[] = "/proc/0123456789/ns/pid"; path 55 tools/testing/selftests/nsfs/pidns.c snprintf(path, sizeof(path), "/proc/%d/ns/%s", pid, ns_strs[i]); path 56 tools/testing/selftests/nsfs/pidns.c ns = open(path, O_RDONLY); path 58 tools/testing/selftests/nsfs/pidns.c return pr_err("Unable to open %s", path); path 64 tools/testing/selftests/nsfs/pidns.c snprintf(path, sizeof(path), "/proc/self/ns/%s", ns_strs[i]); path 65 tools/testing/selftests/nsfs/pidns.c if (stat(path, &st2)) path 66 tools/testing/selftests/nsfs/pidns.c return pr_err("Unable to stat %s", path); path 90 tools/testing/selftests/pidfd/pidfd_open_test.c char path[512]; path 96 tools/testing/selftests/pidfd/pidfd_open_test.c snprintf(path, sizeof(path), "/proc/self/fdinfo/%d", pidfd); path 98 tools/testing/selftests/pidfd/pidfd_open_test.c f = fopen(path, "re"); path 264 tools/testing/selftests/powerpc/mm/tlbie_test.c char path[LOGDIR_NAME_SIZE + 30]; path 270 tools/testing/selftests/powerpc/mm/tlbie_test.c strcpy(path, logdir); path 271 tools/testing/selftests/powerpc/mm/tlbie_test.c strcat(path, separator); path 272 tools/testing/selftests/powerpc/mm/tlbie_test.c strcat(path, logfile); path 273 tools/testing/selftests/powerpc/mm/tlbie_test.c f = fopen(path, "w"); path 312 tools/testing/selftests/powerpc/mm/tlbie_test.c char path[LOGDIR_NAME_SIZE + 30]; path 318 tools/testing/selftests/powerpc/mm/tlbie_test.c remove(path); path 323 tools/testing/selftests/powerpc/mm/tlbie_test.c strcpy(path, logdir); path 324 tools/testing/selftests/powerpc/mm/tlbie_test.c strcat(path, separator); path 325 tools/testing/selftests/powerpc/mm/tlbie_test.c strcat(path, logfile); path 328 tools/testing/selftests/powerpc/mm/tlbie_test.c tid, nr_anamolies, path); path 25 tools/testing/selftests/powerpc/tm/tm-exec.c static char *path; path 38 tools/testing/selftests/powerpc/tm/tm-exec.c execl(path, "tm-exec", "--child", NULL); path 60 tools/testing/selftests/powerpc/tm/tm-exec.c path = argv[0]; path 133 tools/testing/selftests/powerpc/utils.c char path[PATH_MAX]; path 136 tools/testing/selftests/powerpc/utils.c strcpy(path, "/sys/kernel/debug/"); path 137 tools/testing/selftests/powerpc/utils.c strncat(path, debugfs_file, PATH_MAX - strlen(path) - 1); path 139 tools/testing/selftests/powerpc/utils.c if ((fd = open(path, O_RDONLY)) < 0) path 155 tools/testing/selftests/powerpc/utils.c char path[PATH_MAX]; path 158 tools/testing/selftests/powerpc/utils.c strcpy(path, "/sys/kernel/debug/"); path 159 tools/testing/selftests/powerpc/utils.c strncat(path, debugfs_file, PATH_MAX - strlen(path) - 1); path 161 tools/testing/selftests/powerpc/utils.c if ((fd = open(path, O_WRONLY)) < 0) path 35 tools/testing/selftests/vm/mlock2.h char path[BUFSIZ]; path 45 tools/testing/selftests/vm/mlock2.h &start, &end, perms, &offset, dev, &inode, path) < 6) path 32 tools/thermal/tmon/sysfs.c int sysfs_set_ulong(char *path, char *filename, unsigned long val) path 38 tools/thermal/tmon/sysfs.c snprintf(filepath, 256, "%s/%s", path, filename); path 56 tools/thermal/tmon/sysfs.c static int sysfs_get_ulong(char *path, char *filename, unsigned long *p_ulong) path 62 tools/thermal/tmon/sysfs.c snprintf(filepath, 256, "%s/%s", path, filename); path 75 tools/thermal/tmon/sysfs.c static int sysfs_get_string(char *path, char *filename, char *str) path 81 tools/thermal/tmon/sysfs.c snprintf(filepath, 256, "%s/%s", path, filename); path 95 tools/thermal/tmon/sysfs.c static int probe_cdev(struct cdev_info *cdi, char *path) path 97 tools/thermal/tmon/sysfs.c sysfs_get_string(path, "type", cdi->type); path 98 tools/thermal/tmon/sysfs.c sysfs_get_ulong(path, "max_state", &cdi->max_state); path 99 tools/thermal/tmon/sysfs.c sysfs_get_ulong(path, "cur_state", &cdi->cur_state); path 102 tools/thermal/tmon/sysfs.c __func__, path, path 165 tools/thermal/tmon/tmon.h extern int sysfs_set_ulong(char *path, char *filename, unsigned long val); path 410 tools/thermal/tmon/tui.c char path[256]; path 429 tools/thermal/tmon/tui.c snprintf(path, 256, "%s/%s%d", THERMAL_SYSFS, path 431 tools/thermal/tmon/tui.c sysfs_set_ulong(path, "cur_state", val); path 114 tools/usb/usbip/libsrc/usbip_common.c dbg("%-20s = %s", "path", udev->path); path 209 tools/usb/usbip/libsrc/usbip_common.c const char *path, *name; path 226 tools/usb/usbip/libsrc/usbip_common.c path = udev_device_get_syspath(sdev); path 229 tools/usb/usbip/libsrc/usbip_common.c strncpy(udev->path, path, SYSFS_PATH_MAX - 1); path 230 tools/usb/usbip/libsrc/usbip_common.c udev->path[SYSFS_PATH_MAX - 1] = '\0'; path 112 tools/usb/usbip/libsrc/usbip_common.h char path[SYSFS_PATH_MAX]; path 65 tools/usb/usbip/libsrc/usbip_device_driver.c const char *path, *name; path 75 tools/usb/usbip/libsrc/usbip_device_driver.c path = udev_device_get_syspath(plat); path 77 tools/usb/usbip/libsrc/usbip_device_driver.c path, VUDC_DEVICE_DESCR_FILE); path 96 tools/usb/usbip/libsrc/usbip_device_driver.c strncpy(dev->path, path, SYSFS_PATH_MAX - 1); path 97 tools/usb/usbip/libsrc/usbip_device_driver.c dev->path[SYSFS_PATH_MAX - 1] = '\0'; path 38 tools/usb/usbip/libsrc/usbip_host_common.c "%s/usbip_status", udev->path); path 124 tools/usb/usbip/libsrc/usbip_host_common.c const char *path; path 133 tools/usb/usbip/libsrc/usbip_host_common.c path = udev_list_entry_get_name(dev_list_entry); path 135 tools/usb/usbip/libsrc/usbip_host_common.c path); path 141 tools/usb/usbip/libsrc/usbip_host_common.c edev = usbip_exported_device_new(hdriver, path); path 240 tools/usb/usbip/libsrc/usbip_host_common.c edev->udev.path, attr_name); path 192 tools/usb/usbip/libsrc/vhci_driver.c char path[PATH_MAX+1]; path 202 tools/usb/usbip/libsrc/vhci_driver.c snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", rhport); path 204 tools/usb/usbip/libsrc/vhci_driver.c file = fopen(path, "r"); path 362 tools/usb/usbip/libsrc/vhci_driver.c const char *path; path 369 tools/usb/usbip/libsrc/vhci_driver.c path = udev_device_get_syspath(vhci_driver->hc_device); path 371 tools/usb/usbip/libsrc/vhci_driver.c path, attr_attach); path 404 tools/usb/usbip/libsrc/vhci_driver.c const char *path; path 410 tools/usb/usbip/libsrc/vhci_driver.c path = udev_device_get_syspath(vhci_driver->hc_device); path 412 tools/usb/usbip/libsrc/vhci_driver.c path, attr_detach); path 42 tools/usb/usbip/src/usbip_attach.c char path[PATH_MAX+1]; path 61 tools/usb/usbip/src/usbip_attach.c snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", rhport); path 63 tools/usb/usbip/src/usbip_attach.c fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU); path 36 tools/usb/usbip/src/usbip_detach.c char path[PATH_MAX+1]; path 77 tools/usb/usbip/src/usbip_detach.c snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", portnum); path 79 tools/usb/usbip/src/usbip_detach.c remove(path); path 101 tools/usb/usbip/src/usbip_list.c printf("%11s: %s\n", "", udev.path); path 172 tools/usb/usbip/src/usbip_list.c const char *path; path 200 tools/usb/usbip/src/usbip_list.c path = udev_list_entry_get_name(dev_list_entry); path 201 tools/usb/usbip/src/usbip_list.c dev = udev_device_new_from_syspath(udev, path); path 255 tools/usb/usbip/src/usbip_list.c const char *path; path 277 tools/usb/usbip/src/usbip_list.c path = udev_list_entry_get_name(dev_list_entry); path 278 tools/usb/usbip/src/usbip_list.c dev = udev_device_new_from_syspath(udev, path); path 1093 tools/vm/page-types.c static void parse_cgroup(const char *path) path 1095 tools/vm/page-types.c if (path[0] == '@') { path 1096 tools/vm/page-types.c opt_cgroup = parse_number(path + 1); path 1102 tools/vm/page-types.c if (stat(path, &st)) path 1103 tools/vm/page-types.c fatal("stat failed: %s: %m\n", path); path 1106 tools/vm/page-types.c fatal("cgroup supposed to be a directory: %s\n", path);