dir 44 arch/alpha/include/asm/floppy.h int dir; dir 46 arch/alpha/include/asm/floppy.h dir = (mode != DMA_MODE_READ) ? PCI_DMA_FROMDEVICE : PCI_DMA_TODEVICE; dir 49 arch/alpha/include/asm/floppy.h && (addr != prev_addr || size != prev_size || dir != prev_dir)) { dir 56 arch/alpha/include/asm/floppy.h bus_addr = pci_map_single(isa_bridge, addr, size, dir); dir 61 arch/alpha/include/asm/floppy.h prev_dir = dir; dir 304 arch/alpha/include/asm/pgtable.h extern inline pmd_t * pmd_offset(pgd_t * dir, unsigned long address) dir 306 arch/alpha/include/asm/pgtable.h pmd_t *ret = (pmd_t *) pgd_page_vaddr(*dir) + ((address >> PMD_SHIFT) & (PTRS_PER_PAGE - 1)); dir 312 arch/alpha/include/asm/pgtable.h extern inline pte_t * pte_offset_kernel(pmd_t * dir, unsigned long address) dir 314 arch/alpha/include/asm/pgtable.h pte_t *ret = (pte_t *) pmd_page_vaddr(*dir) dir 320 arch/alpha/include/asm/pgtable.h #define pte_offset_map(dir,addr) pte_offset_kernel((dir),(addr)) dir 40 arch/alpha/include/uapi/asm/ioctl.h #define _IOC(dir,type,nr,size) \ dir 42 arch/alpha/include/uapi/asm/ioctl.h (((dir) << _IOC_DIRSHIFT) | \ dir 364 arch/alpha/kernel/pci_iommu.c enum dma_data_direction dir, dir 370 arch/alpha/kernel/pci_iommu.c BUG_ON(dir == PCI_DMA_NONE); dir 384 arch/alpha/kernel/pci_iommu.c size_t size, enum dma_data_direction dir, dir 393 arch/alpha/kernel/pci_iommu.c BUG_ON(dir == PCI_DMA_NONE); dir 666 arch/alpha/kernel/pci_iommu.c int nents, enum dma_data_direction dir, dir 676 arch/alpha/kernel/pci_iommu.c BUG_ON(dir == PCI_DMA_NONE); dir 735 arch/alpha/kernel/pci_iommu.c pci_unmap_sg(pdev, start, out - start, dir); dir 744 arch/alpha/kernel/pci_iommu.c int nents, enum dma_data_direction dir, dir 755 arch/alpha/kernel/pci_iommu.c BUG_ON(dir == PCI_DMA_NONE); dir 114 arch/alpha/oprofile/common.c struct dentry *dir; dir 118 arch/alpha/oprofile/common.c dir = oprofilefs_mkdir(root, buf); dir 120 arch/alpha/oprofile/common.c oprofilefs_create_ulong(dir, "enabled", &ctr[i].enabled); dir 121 arch/alpha/oprofile/common.c oprofilefs_create_ulong(dir, "event", &ctr[i].event); dir 122 arch/alpha/oprofile/common.c oprofilefs_create_ulong(dir, "count", &ctr[i].count); dir 124 arch/alpha/oprofile/common.c oprofilefs_create_ulong(dir, "kernel", &ctr[i].kernel); dir 125 arch/alpha/oprofile/common.c oprofilefs_create_ulong(dir, "user", &ctr[i].user); dir 126 arch/alpha/oprofile/common.c oprofilefs_create_ulong(dir, "unit_mask", &ctr[i].unit_mask); dir 291 arch/arc/include/asm/pgtable.h #define pte_offset(dir, addr) ((pte_t *)(pmd_page_vaddr(*dir)) +\ dir 295 arch/arc/include/asm/pgtable.h #define pte_offset_kernel(dir, addr) pte_offset(dir, addr) dir 296 arch/arc/include/asm/pgtable.h #define pte_offset_map(dir, addr) pte_offset(dir, addr) dir 52 arch/arc/mm/dma.c size_t size, enum dma_data_direction dir) dir 54 arch/arc/mm/dma.c switch (dir) { dir 73 arch/arc/mm/dma.c size_t size, enum dma_data_direction dir) dir 75 arch/arc/mm/dma.c switch (dir) { dir 106 arch/arm/common/dmabounce.c size_t size, enum dma_data_direction dir) dir 114 arch/arm/common/dmabounce.c __func__, ptr, size, dir); dir 132 arch/arm/common/dmabounce.c buf->direction = dir; dir 244 arch/arm/common/dmabounce.c enum dma_data_direction dir, dir 253 arch/arm/common/dmabounce.c buf = alloc_safe_buffer(device_info, ptr, size, dir); dir 264 arch/arm/common/dmabounce.c if ((dir == DMA_TO_DEVICE || dir == DMA_BIDIRECTIONAL) && dir 275 arch/arm/common/dmabounce.c size_t size, enum dma_data_direction dir, dir 279 arch/arm/common/dmabounce.c BUG_ON(buf->direction != dir); dir 287 arch/arm/common/dmabounce.c if ((dir == DMA_FROM_DEVICE || dir == DMA_BIDIRECTIONAL) && dir 314 arch/arm/common/dmabounce.c unsigned long offset, size_t size, enum dma_data_direction dir, dir 321 arch/arm/common/dmabounce.c __func__, page, offset, size, dir); dir 330 arch/arm/common/dmabounce.c arm_dma_ops.sync_single_for_device(dev, dma_addr, size, dir); dir 339 arch/arm/common/dmabounce.c return map_single(dev, page_address(page) + offset, size, dir, attrs); dir 349 arch/arm/common/dmabounce.c enum dma_data_direction dir, unsigned long attrs) dir 354 arch/arm/common/dmabounce.c __func__, dma_addr, size, dir); dir 358 arch/arm/common/dmabounce.c arm_dma_ops.sync_single_for_cpu(dev, dma_addr, size, dir); dir 362 arch/arm/common/dmabounce.c unmap_single(dev, buf, size, dir, attrs); dir 366 arch/arm/common/dmabounce.c size_t sz, enum dma_data_direction dir) dir 372 arch/arm/common/dmabounce.c __func__, addr, sz, dir); dir 380 arch/arm/common/dmabounce.c BUG_ON(buf->direction != dir); dir 388 arch/arm/common/dmabounce.c if (dir == DMA_FROM_DEVICE || dir == DMA_BIDIRECTIONAL) { dir 397 arch/arm/common/dmabounce.c dma_addr_t handle, size_t size, enum dma_data_direction dir) dir 399 arch/arm/common/dmabounce.c if (!__dmabounce_sync_for_cpu(dev, handle, size, dir)) dir 402 arch/arm/common/dmabounce.c arm_dma_ops.sync_single_for_cpu(dev, handle, size, dir); dir 406 arch/arm/common/dmabounce.c size_t sz, enum dma_data_direction dir) dir 412 arch/arm/common/dmabounce.c __func__, addr, sz, dir); dir 420 arch/arm/common/dmabounce.c BUG_ON(buf->direction != dir); dir 428 arch/arm/common/dmabounce.c if (dir == DMA_TO_DEVICE || dir == DMA_BIDIRECTIONAL) { dir 437 arch/arm/common/dmabounce.c dma_addr_t handle, size_t size, enum dma_data_direction dir) dir 439 arch/arm/common/dmabounce.c if (!__dmabounce_sync_for_device(dev, handle, size, dir)) dir 442 arch/arm/common/dmabounce.c arm_dma_ops.sync_single_for_device(dev, handle, size, dir); dir 537 arch/arm/common/locomo.c void locomo_gpio_set_dir(struct device *dev, unsigned int bits, unsigned int dir) dir 549 arch/arm/common/locomo.c if (dir) dir 556 arch/arm/common/locomo.c if (dir) dir 204 arch/arm/include/asm/hardware/locomo.h void locomo_gpio_set_dir(struct device *dev, unsigned int bits, unsigned int dir); dir 898 arch/arm/kernel/ptrace.c enum ptrace_syscall_dir dir) dir 907 arch/arm/kernel/ptrace.c regs->ARM_ip = dir; dir 909 arch/arm/kernel/ptrace.c if (dir == PTRACE_SYSCALL_EXIT) dir 176 arch/arm/mach-omap2/pm-debug.c static int __init pwrdms_setup(struct powerdomain *pwrdm, void *dir) dir 192 arch/arm/mach-omap2/pm-debug.c d = debugfs_create_dir(pwrdm->name, (struct dentry *)dir); dir 78 arch/arm/mm/dma-mapping-nommu.c enum dma_data_direction dir) dir 80 arch/arm/mm/dma-mapping-nommu.c dmac_map_area(__va(paddr), size, dir); dir 82 arch/arm/mm/dma-mapping-nommu.c if (dir == DMA_FROM_DEVICE) dir 89 arch/arm/mm/dma-mapping-nommu.c enum dma_data_direction dir) dir 91 arch/arm/mm/dma-mapping-nommu.c if (dir != DMA_TO_DEVICE) { dir 93 arch/arm/mm/dma-mapping-nommu.c dmac_unmap_area(__va(paddr), size, dir); dir 99 arch/arm/mm/dma-mapping-nommu.c enum dma_data_direction dir, dir 104 arch/arm/mm/dma-mapping-nommu.c __dma_page_cpu_to_dev(handle, size, dir); dir 110 arch/arm/mm/dma-mapping-nommu.c size_t size, enum dma_data_direction dir, dir 113 arch/arm/mm/dma-mapping-nommu.c __dma_page_dev_to_cpu(handle, size, dir); dir 118 arch/arm/mm/dma-mapping-nommu.c int nents, enum dma_data_direction dir, dir 127 arch/arm/mm/dma-mapping-nommu.c __dma_page_cpu_to_dev(sg_dma_address(sg), sg_dma_len(sg), dir); dir 134 arch/arm/mm/dma-mapping-nommu.c int nents, enum dma_data_direction dir, dir 141 arch/arm/mm/dma-mapping-nommu.c __dma_page_dev_to_cpu(sg_dma_address(sg), sg_dma_len(sg), dir); dir 145 arch/arm/mm/dma-mapping-nommu.c dma_addr_t handle, size_t size, enum dma_data_direction dir) dir 147 arch/arm/mm/dma-mapping-nommu.c __dma_page_cpu_to_dev(handle, size, dir); dir 151 arch/arm/mm/dma-mapping-nommu.c dma_addr_t handle, size_t size, enum dma_data_direction dir) dir 153 arch/arm/mm/dma-mapping-nommu.c __dma_page_cpu_to_dev(handle, size, dir); dir 157 arch/arm/mm/dma-mapping-nommu.c int nents, enum dma_data_direction dir) dir 163 arch/arm/mm/dma-mapping-nommu.c __dma_page_cpu_to_dev(sg_dma_address(sg), sg_dma_len(sg), dir); dir 167 arch/arm/mm/dma-mapping-nommu.c int nents, enum dma_data_direction dir) dir 173 arch/arm/mm/dma-mapping-nommu.c __dma_page_dev_to_cpu(sg_dma_address(sg), sg_dma_len(sg), dir); dir 129 arch/arm/mm/dma-mapping.c unsigned long offset, size_t size, enum dma_data_direction dir, dir 133 arch/arm/mm/dma-mapping.c __dma_page_cpu_to_dev(page, offset, size, dir); dir 138 arch/arm/mm/dma-mapping.c unsigned long offset, size_t size, enum dma_data_direction dir, dir 159 arch/arm/mm/dma-mapping.c size_t size, enum dma_data_direction dir, unsigned long attrs) dir 163 arch/arm/mm/dma-mapping.c handle & ~PAGE_MASK, size, dir); dir 167 arch/arm/mm/dma-mapping.c dma_addr_t handle, size_t size, enum dma_data_direction dir) dir 171 arch/arm/mm/dma-mapping.c __dma_page_dev_to_cpu(page, offset, size, dir); dir 175 arch/arm/mm/dma-mapping.c dma_addr_t handle, size_t size, enum dma_data_direction dir) dir 179 arch/arm/mm/dma-mapping.c __dma_page_cpu_to_dev(page, offset, size, dir); dir 888 arch/arm/mm/dma-mapping.c size_t size, enum dma_data_direction dir, dir 915 arch/arm/mm/dma-mapping.c op(vaddr + offset, len, dir); dir 920 arch/arm/mm/dma-mapping.c op(vaddr + offset, len, dir); dir 926 arch/arm/mm/dma-mapping.c op(vaddr, len, dir); dir 941 arch/arm/mm/dma-mapping.c size_t size, enum dma_data_direction dir) dir 945 arch/arm/mm/dma-mapping.c dma_cache_maint_page(page, off, size, dir, dmac_map_area); dir 948 arch/arm/mm/dma-mapping.c if (dir == DMA_FROM_DEVICE) { dir 957 arch/arm/mm/dma-mapping.c size_t size, enum dma_data_direction dir) dir 963 arch/arm/mm/dma-mapping.c if (dir != DMA_TO_DEVICE) { dir 966 arch/arm/mm/dma-mapping.c dma_cache_maint_page(page, off, size, dir, dmac_unmap_area); dir 972 arch/arm/mm/dma-mapping.c if (dir != DMA_TO_DEVICE && size >= PAGE_SIZE) { dir 1007 arch/arm/mm/dma-mapping.c enum dma_data_direction dir, unsigned long attrs) dir 1018 arch/arm/mm/dma-mapping.c s->length, dir, attrs); dir 1026 arch/arm/mm/dma-mapping.c ops->unmap_page(dev, sg_dma_address(s), sg_dma_len(s), dir, attrs); dir 1041 arch/arm/mm/dma-mapping.c enum dma_data_direction dir, unsigned long attrs) dir 1049 arch/arm/mm/dma-mapping.c ops->unmap_page(dev, sg_dma_address(s), sg_dma_len(s), dir, attrs); dir 1060 arch/arm/mm/dma-mapping.c int nents, enum dma_data_direction dir) dir 1068 arch/arm/mm/dma-mapping.c dir); dir 1079 arch/arm/mm/dma-mapping.c int nents, enum dma_data_direction dir) dir 1087 arch/arm/mm/dma-mapping.c dir); dir 1117 arch/arm/mm/dma-mapping.c static int __dma_info_to_prot(enum dma_data_direction dir, unsigned long attrs) dir 1124 arch/arm/mm/dma-mapping.c switch (dir) { dir 1617 arch/arm/mm/dma-mapping.c enum dma_data_direction dir, unsigned long attrs, dir 1639 arch/arm/mm/dma-mapping.c __dma_page_cpu_to_dev(sg_page(s), s->offset, s->length, dir); dir 1641 arch/arm/mm/dma-mapping.c prot = __dma_info_to_prot(dir, attrs); dir 1659 arch/arm/mm/dma-mapping.c enum dma_data_direction dir, unsigned long attrs, dir 1676 arch/arm/mm/dma-mapping.c dir, attrs, is_coherent) < 0) dir 1689 arch/arm/mm/dma-mapping.c if (__map_sg_chunk(dev, start, size, &dma->dma_address, dir, attrs, dir 1717 arch/arm/mm/dma-mapping.c int nents, enum dma_data_direction dir, unsigned long attrs) dir 1719 arch/arm/mm/dma-mapping.c return __iommu_map_sg(dev, sg, nents, dir, attrs, true); dir 1735 arch/arm/mm/dma-mapping.c int nents, enum dma_data_direction dir, unsigned long attrs) dir 1737 arch/arm/mm/dma-mapping.c return __iommu_map_sg(dev, sg, nents, dir, attrs, false); dir 1741 arch/arm/mm/dma-mapping.c int nents, enum dma_data_direction dir, dir 1753 arch/arm/mm/dma-mapping.c s->length, dir); dir 1768 arch/arm/mm/dma-mapping.c int nents, enum dma_data_direction dir, dir 1771 arch/arm/mm/dma-mapping.c __iommu_unmap_sg(dev, sg, nents, dir, attrs, true); dir 1785 arch/arm/mm/dma-mapping.c enum dma_data_direction dir, dir 1788 arch/arm/mm/dma-mapping.c __iommu_unmap_sg(dev, sg, nents, dir, attrs, false); dir 1799 arch/arm/mm/dma-mapping.c int nents, enum dma_data_direction dir) dir 1805 arch/arm/mm/dma-mapping.c __dma_page_dev_to_cpu(sg_page(s), s->offset, s->length, dir); dir 1817 arch/arm/mm/dma-mapping.c int nents, enum dma_data_direction dir) dir 1823 arch/arm/mm/dma-mapping.c __dma_page_cpu_to_dev(sg_page(s), s->offset, s->length, dir); dir 1838 arch/arm/mm/dma-mapping.c unsigned long offset, size_t size, enum dma_data_direction dir, dir 1849 arch/arm/mm/dma-mapping.c prot = __dma_info_to_prot(dir, attrs); dir 1872 arch/arm/mm/dma-mapping.c unsigned long offset, size_t size, enum dma_data_direction dir, dir 1876 arch/arm/mm/dma-mapping.c __dma_page_cpu_to_dev(page, offset, size, dir); dir 1878 arch/arm/mm/dma-mapping.c return arm_coherent_iommu_map_page(dev, page, offset, size, dir, attrs); dir 1891 arch/arm/mm/dma-mapping.c size_t size, enum dma_data_direction dir, unsigned long attrs) dir 1915 arch/arm/mm/dma-mapping.c size_t size, enum dma_data_direction dir, unsigned long attrs) dir 1927 arch/arm/mm/dma-mapping.c __dma_page_dev_to_cpu(page, offset, size, dir); dir 1942 arch/arm/mm/dma-mapping.c enum dma_data_direction dir, unsigned long attrs) dir 1955 arch/arm/mm/dma-mapping.c prot = __dma_info_to_prot(dir, attrs) | IOMMU_MMIO; dir 1975 arch/arm/mm/dma-mapping.c size_t size, enum dma_data_direction dir, dir 1991 arch/arm/mm/dma-mapping.c dma_addr_t handle, size_t size, enum dma_data_direction dir) dir 2001 arch/arm/mm/dma-mapping.c __dma_page_dev_to_cpu(page, offset, size, dir); dir 2005 arch/arm/mm/dma-mapping.c dma_addr_t handle, size_t size, enum dma_data_direction dir) dir 2015 arch/arm/mm/dma-mapping.c __dma_page_cpu_to_dev(page, offset, size, dir); dir 2336 arch/arm/mm/dma-mapping.c size_t size, enum dma_data_direction dir) dir 2339 arch/arm/mm/dma-mapping.c size, dir); dir 2343 arch/arm/mm/dma-mapping.c size_t size, enum dma_data_direction dir) dir 2346 arch/arm/mm/dma-mapping.c size, dir); dir 360 arch/arm/mm/mmu.c static pte_t *(*pte_offset_fixmap)(pmd_t *dir, unsigned long addr); dir 365 arch/arm/mm/mmu.c static pte_t * __init pte_offset_early_fixmap(pmd_t *dir, unsigned long addr) dir 370 arch/arm/mm/mmu.c static pte_t *pte_offset_late_fixmap(pmd_t *dir, unsigned long addr) dir 372 arch/arm/mm/mmu.c return pte_offset_kernel(dir, addr); dir 74 arch/arm/xen/mm.c phys_addr_t paddr, size_t size, enum dma_data_direction dir) dir 77 arch/arm/xen/mm.c arch_sync_dma_for_cpu(dev, paddr, size, dir); dir 78 arch/arm/xen/mm.c else if (dir != DMA_TO_DEVICE) dir 83 arch/arm/xen/mm.c phys_addr_t paddr, size_t size, enum dma_data_direction dir) dir 86 arch/arm/xen/mm.c arch_sync_dma_for_device(dev, paddr, size, dir); dir 87 arch/arm/xen/mm.c else if (dir == DMA_FROM_DEVICE) dir 501 arch/arm64/include/asm/pgtable.h #define pte_offset_phys(dir,addr) (pmd_page_paddr(READ_ONCE(*(dir))) + pte_index(addr) * sizeof(pte_t)) dir 502 arch/arm64/include/asm/pgtable.h #define pte_offset_kernel(dir,addr) ((pte_t *)__va(pte_offset_phys((dir), (addr)))) dir 504 arch/arm64/include/asm/pgtable.h #define pte_offset_map(dir,addr) pte_offset_kernel((dir), (addr)) dir 513 arch/arm64/include/asm/pgtable.h #define pte_offset_kimg(dir,addr) ((pte_t *)__phys_to_kimg(pte_offset_phys((dir), (addr)))) dir 560 arch/arm64/include/asm/pgtable.h #define pmd_offset_phys(dir, addr) (pud_page_paddr(READ_ONCE(*(dir))) + pmd_index(addr) * sizeof(pmd_t)) dir 561 arch/arm64/include/asm/pgtable.h #define pmd_offset(dir, addr) ((pmd_t *)__va(pmd_offset_phys((dir), (addr)))) dir 570 arch/arm64/include/asm/pgtable.h #define pmd_offset_kimg(dir,addr) ((pmd_t *)__phys_to_kimg(pmd_offset_phys((dir), (addr)))) dir 581 arch/arm64/include/asm/pgtable.h #define pmd_offset_kimg(dir,addr) ((pmd_t *)dir) dir 618 arch/arm64/include/asm/pgtable.h #define pud_offset_phys(dir, addr) (pgd_page_paddr(READ_ONCE(*(dir))) + pud_index(addr) * sizeof(pud_t)) dir 619 arch/arm64/include/asm/pgtable.h #define pud_offset(dir, addr) ((pud_t *)__va(pud_offset_phys((dir), (addr)))) dir 628 arch/arm64/include/asm/pgtable.h #define pud_offset_kimg(dir,addr) ((pud_t *)__phys_to_kimg(pud_offset_phys((dir), (addr)))) dir 639 arch/arm64/include/asm/pgtable.h #define pud_offset_kimg(dir,addr) ((pud_t *)dir) dir 1809 arch/arm64/kernel/ptrace.c enum ptrace_syscall_dir dir) dir 1820 arch/arm64/kernel/ptrace.c regs->regs[regno] = dir; dir 1822 arch/arm64/kernel/ptrace.c if (dir == PTRACE_SYSCALL_EXIT) dir 17 arch/arm64/mm/dma-mapping.c size_t size, enum dma_data_direction dir) dir 19 arch/arm64/mm/dma-mapping.c __dma_map_area(phys_to_virt(paddr), size, dir); dir 23 arch/arm64/mm/dma-mapping.c size_t size, enum dma_data_direction dir) dir 25 arch/arm64/mm/dma-mapping.c __dma_unmap_area(phys_to_virt(paddr), size, dir); dir 144 arch/c6x/mm/dma-coherent.c enum dma_data_direction dir) dir 146 arch/c6x/mm/dma-coherent.c BUG_ON(!valid_dma_direction(dir)); dir 148 arch/c6x/mm/dma-coherent.c switch (dir) { dir 164 arch/c6x/mm/dma-coherent.c size_t size, enum dma_data_direction dir) dir 166 arch/c6x/mm/dma-coherent.c return c6x_dma_sync(dev, paddr, size, dir); dir 170 arch/c6x/mm/dma-coherent.c size_t size, enum dma_data_direction dir) dir 172 arch/c6x/mm/dma-coherent.c return c6x_dma_sync(dev, paddr, size, dir); dir 42 arch/csky/include/asm/pgtable.h #define pte_offset_kernel(dir, address) \ dir 43 arch/csky/include/asm/pgtable.h (pmd_page_vaddr(*(dir)) + __pte_offset_t(address)) dir 44 arch/csky/include/asm/pgtable.h #define pte_offset_map(dir, address) \ dir 45 arch/csky/include/asm/pgtable.h ((pte_t *)page_address(pmd_page(*(dir))) + __pte_offset_t(address)) dir 294 arch/csky/include/asm/pgtable.h static inline pte_t *pte_offset(pmd_t *dir, unsigned long address) dir 296 arch/csky/include/asm/pgtable.h return (pte_t *) (pmd_page_vaddr(*dir)) + dir 62 arch/csky/mm/dma-mapping.c size_t size, enum dma_data_direction dir) dir 64 arch/csky/mm/dma-mapping.c switch (dir) { dir 78 arch/csky/mm/dma-mapping.c size_t size, enum dma_data_direction dir) dir 80 arch/csky/mm/dma-mapping.c switch (dir) { dir 419 arch/hexagon/include/asm/pgtable.h #define pte_offset_map(dir, address) \ dir 420 arch/hexagon/include/asm/pgtable.h ((pte_t *)page_address(pmd_page(*(dir))) + __pte_offset(address)) dir 425 arch/hexagon/include/asm/pgtable.h #define pte_offset_kernel(dir, address) \ dir 426 arch/hexagon/include/asm/pgtable.h ((pte_t *) (unsigned long) __va(pmd_val(*dir) & PAGE_MASK) \ dir 59 arch/hexagon/kernel/dma.c size_t size, enum dma_data_direction dir) dir 63 arch/hexagon/kernel/dma.c switch (dir) { dir 914 arch/ia64/hp/common/sba_iommu.c enum dma_data_direction dir, dir 1034 arch/ia64/hp/common/sba_iommu.c enum dma_data_direction dir, unsigned long attrs) dir 1055 arch/ia64/hp/common/sba_iommu.c if (dir == DMA_FROM_DEVICE) { dir 1071 arch/ia64/hp/common/sba_iommu.c if (dir == DMA_FROM_DEVICE) dir 1418 arch/ia64/hp/common/sba_iommu.c int nents, enum dma_data_direction dir, dir 1431 arch/ia64/hp/common/sba_iommu.c int nents, enum dma_data_direction dir, dir 1461 arch/ia64/hp/common/sba_iommu.c sglist->offset, sglist->length, dir, attrs); dir 1489 arch/ia64/hp/common/sba_iommu.c sba_unmap_sg_attrs(dev, sglist, nents, dir, attrs); dir 1530 arch/ia64/hp/common/sba_iommu.c int nents, enum dma_data_direction dir, dir 1553 arch/ia64/hp/common/sba_iommu.c dir, attrs); dir 1920 arch/ia64/hp/common/sba_iommu.c struct proc_dir_entry *dir; dir 1922 arch/ia64/hp/common/sba_iommu.c dir = proc_mkdir("bus/mckinley", NULL); dir 1923 arch/ia64/hp/common/sba_iommu.c if (!dir) dir 1926 arch/ia64/hp/common/sba_iommu.c proc_create_seq(ioc_list->name, 0, dir, &ioc_seq_ops); dir 390 arch/ia64/include/asm/pgtable.h #define pud_offset(dir,addr) \ dir 391 arch/ia64/include/asm/pgtable.h ((pud_t *) pgd_page_vaddr(*(dir)) + (((addr) >> PUD_SHIFT) & (PTRS_PER_PUD - 1))) dir 395 arch/ia64/include/asm/pgtable.h #define pmd_offset(dir,addr) \ dir 396 arch/ia64/include/asm/pgtable.h ((pmd_t *) pud_page_vaddr(*(dir)) + (((addr) >> PMD_SHIFT) & (PTRS_PER_PMD - 1))) dir 403 arch/ia64/include/asm/pgtable.h #define pte_offset_kernel(dir,addr) ((pte_t *) pmd_page_vaddr(*(dir)) + pte_index(addr)) dir 404 arch/ia64/include/asm/pgtable.h #define pte_offset_map(dir,addr) pte_offset_kernel(dir, addr) dir 596 arch/ia64/kernel/salinfo.c struct proc_dir_entry *dir, *entry; dir 615 arch/ia64/kernel/salinfo.c dir = proc_mkdir(salinfo_log_name[i], salinfo_dir); dir 616 arch/ia64/kernel/salinfo.c if (!dir) dir 619 arch/ia64/kernel/salinfo.c entry = proc_create_data("event", S_IRUSR, dir, dir 625 arch/ia64/kernel/salinfo.c entry = proc_create_data("data", S_IRUSR | S_IWUSR, dir, dir 631 arch/ia64/kernel/salinfo.c *sdir++ = dir; dir 77 arch/ia64/mm/init.c size_t size, enum dma_data_direction dir) dir 53 arch/m68k/coldfire/gpio.c MCFGPIO_PORTTYPE dir; dir 56 arch/m68k/coldfire/gpio.c dir = mcfgpio_read(__mcfgpio_pddr(gpio)); dir 57 arch/m68k/coldfire/gpio.c dir &= ~mcfgpio_bit(gpio); dir 58 arch/m68k/coldfire/gpio.c mcfgpio_write(dir, __mcfgpio_pddr(gpio)); dir 67 arch/m68k/emu/nfblock.c int dir, len, shift; dir 70 arch/m68k/emu/nfblock.c dir = bio_data_dir(bio); dir 75 arch/m68k/emu/nfblock.c nfhd_read_write(dev->id, 0, dir, sec >> shift, len >> shift, dir 17 arch/m68k/include/asm/atari_joystick.h char dir; dir 21 arch/m68k/include/asm/dsp56k.h int dir; /* Bit field. 1 = write output bit, 0 = do nothing. dir 354 arch/m68k/include/asm/mcf_pgtable.h #define pte_offset_kernel(dir, address) \ dir 355 arch/m68k/include/asm/mcf_pgtable.h ((pte_t *) __pmd_page(*(dir)) + __pte_offset(address)) dir 362 arch/m68k/include/asm/mcf_pgtable.h pgd_t *dir; dir 367 arch/m68k/include/asm/mcf_pgtable.h dir = pgd_offset_k(addr); dir 368 arch/m68k/include/asm/mcf_pgtable.h pmdp = pmd_offset(dir, addr); dir 378 arch/m68k/include/asm/mcf_pgtable.h pgd_t *dir; dir 383 arch/m68k/include/asm/mcf_pgtable.h dir = pgd_offset_k(addr); dir 384 arch/m68k/include/asm/mcf_pgtable.h pmdp = pmd_offset(dir, addr); dir 212 arch/m68k/include/asm/motorola_pgtable.h static inline pmd_t *pmd_offset(pgd_t *dir, unsigned long address) dir 214 arch/m68k/include/asm/motorola_pgtable.h return (pmd_t *)__pgd_page(*dir) + ((address >> PMD_SHIFT) & (PTRS_PER_PMD-1)); dir 241 arch/m68k/include/asm/motorola_pgtable.h pgd_t *dir; dir 245 arch/m68k/include/asm/motorola_pgtable.h dir = pgd_offset_k(addr); dir 246 arch/m68k/include/asm/motorola_pgtable.h pmdp = pmd_offset(dir, addr); dir 257 arch/m68k/include/asm/motorola_pgtable.h pgd_t *dir; dir 261 arch/m68k/include/asm/motorola_pgtable.h dir = pgd_offset_k(addr); dir 262 arch/m68k/include/asm/motorola_pgtable.h pmdp = pmd_offset(dir, addr); dir 65 arch/m68k/kernel/dma.c size_t size, enum dma_data_direction dir) dir 67 arch/m68k/kernel/dma.c switch (dir) { dir 77 arch/m68k/kernel/dma.c dir); dir 483 arch/microblaze/include/asm/pgtable.h static inline pmd_t *pmd_offset(pgd_t *dir, unsigned long address) dir 485 arch/microblaze/include/asm/pgtable.h return (pmd_t *) dir; dir 491 arch/microblaze/include/asm/pgtable.h #define pte_offset_kernel(dir, addr) \ dir 492 arch/microblaze/include/asm/pgtable.h ((pte_t *) pmd_page_kernel(*(dir)) + pte_index(addr)) dir 493 arch/microblaze/include/asm/pgtable.h #define pte_offset_map(dir, addr) \ dir 494 arch/microblaze/include/asm/pgtable.h ((pte_t *) kmap_atomic(pmd_page(*(dir))) + pte_index(addr)) dir 35 arch/microblaze/kernel/dma.c size_t size, enum dma_data_direction dir) dir 37 arch/microblaze/kernel/dma.c __dma_sync(dev, paddr, size, dir); dir 41 arch/microblaze/kernel/dma.c size_t size, enum dma_data_direction dir) dir 43 arch/microblaze/kernel/dma.c __dma_sync(dev, paddr, size, dir); dir 88 arch/mips/bcm63xx/gpio.c unsigned gpio, int dir) dir 108 arch/mips/bcm63xx/gpio.c if (dir == BCM63XX_GPIO_DIR_IN) dir 29 arch/mips/cavium-octeon/oct_ilm.c static struct dentry *dir; dir 69 arch/mips/cavium-octeon/oct_ilm.c dir = debugfs_create_dir("oct_ilm", 0); dir 70 arch/mips/cavium-octeon/oct_ilm.c debugfs_create_file("statistics", 0222, dir, NULL, &oct_ilm_ops); dir 71 arch/mips/cavium-octeon/oct_ilm.c debugfs_create_file("reset", 0222, dir, NULL, &reset_statistics_ops); dir 167 arch/mips/cavium-octeon/oct_ilm.c debugfs_remove_recursive(dir); dir 174 arch/mips/cavium-octeon/oct_ilm.c debugfs_remove_recursive(dir); dir 215 arch/mips/include/asm/pgtable-32.h #define pte_offset(dir, address) \ dir 216 arch/mips/include/asm/pgtable-32.h ((pte_t *) pmd_page_vaddr(*(dir)) + __pte_offset(address)) dir 217 arch/mips/include/asm/pgtable-32.h #define pte_offset_kernel(dir, address) \ dir 218 arch/mips/include/asm/pgtable-32.h ((pte_t *) pmd_page_vaddr(*(dir)) + __pte_offset(address)) dir 220 arch/mips/include/asm/pgtable-32.h #define pte_offset_map(dir, address) \ dir 221 arch/mips/include/asm/pgtable-32.h ((pte_t *)page_address(pmd_page(*(dir))) + __pte_offset(address)) dir 353 arch/mips/include/asm/pgtable-64.h #define pte_offset(dir, address) \ dir 354 arch/mips/include/asm/pgtable-64.h ((pte_t *) pmd_page_vaddr(*(dir)) + __pte_offset(address)) dir 355 arch/mips/include/asm/pgtable-64.h #define pte_offset_kernel(dir, address) \ dir 356 arch/mips/include/asm/pgtable-64.h ((pte_t *) pmd_page_vaddr(*(dir)) + __pte_offset(address)) dir 357 arch/mips/include/asm/pgtable-64.h #define pte_offset_map(dir, address) \ dir 358 arch/mips/include/asm/pgtable-64.h ((pte_t *)page_address(pmd_page(*(dir))) + __pte_offset(address)) dir 17 arch/mips/include/asm/txx9pio.h __u32 dir; dir 589 arch/mips/jazz/jazzdma.c unsigned long offset, size_t size, enum dma_data_direction dir, dir 595 arch/mips/jazz/jazzdma.c arch_sync_dma_for_device(dev, phys, size, dir); dir 600 arch/mips/jazz/jazzdma.c size_t size, enum dma_data_direction dir, unsigned long attrs) dir 603 arch/mips/jazz/jazzdma.c arch_sync_dma_for_cpu(dev, vdma_log2phys(dma_addr), size, dir); dir 608 arch/mips/jazz/jazzdma.c int nents, enum dma_data_direction dir, unsigned long attrs) dir 616 arch/mips/jazz/jazzdma.c dir); dir 627 arch/mips/jazz/jazzdma.c int nents, enum dma_data_direction dir, unsigned long attrs) dir 635 arch/mips/jazz/jazzdma.c dir); dir 641 arch/mips/jazz/jazzdma.c dma_addr_t addr, size_t size, enum dma_data_direction dir) dir 643 arch/mips/jazz/jazzdma.c arch_sync_dma_for_device(dev, vdma_log2phys(addr), size, dir); dir 647 arch/mips/jazz/jazzdma.c dma_addr_t addr, size_t size, enum dma_data_direction dir) dir 649 arch/mips/jazz/jazzdma.c arch_sync_dma_for_cpu(dev, vdma_log2phys(addr), size, dir); dir 653 arch/mips/jazz/jazzdma.c struct scatterlist *sgl, int nents, enum dma_data_direction dir) dir 659 arch/mips/jazz/jazzdma.c arch_sync_dma_for_device(dev, sg_phys(sg), sg->length, dir); dir 663 arch/mips/jazz/jazzdma.c struct scatterlist *sgl, int nents, enum dma_data_direction dir) dir 669 arch/mips/jazz/jazzdma.c arch_sync_dma_for_cpu(dev, sg_phys(sg), sg->length, dir); dir 49 arch/mips/kernel/gpio_txx9.c __raw_writel(__raw_readl(&txx9_pioptr->dir) & ~(1 << offset), dir 50 arch/mips/kernel/gpio_txx9.c &txx9_pioptr->dir); dir 62 arch/mips/kernel/gpio_txx9.c __raw_writel(__raw_readl(&txx9_pioptr->dir) | (1 << offset), dir 63 arch/mips/kernel/gpio_txx9.c &txx9_pioptr->dir); dir 179 arch/mips/lasat/picvue_proc.c struct proc_dir_entry *dir, *proc_entry; dir 182 arch/mips/lasat/picvue_proc.c dir = proc_mkdir(DISPLAY_DIR_NAME, NULL); dir 183 arch/mips/lasat/picvue_proc.c if (dir == NULL) dir 191 arch/mips/lasat/picvue_proc.c proc_entry = proc_create_data(pvc_linename[i], 0644, dir, dir 196 arch/mips/lasat/picvue_proc.c proc_entry = proc_create("scroll", 0644, dir, dir 69 arch/mips/mm/dma-noncoherent.c enum dma_data_direction dir) dir 71 arch/mips/mm/dma-noncoherent.c switch (dir) { dir 95 arch/mips/mm/dma-noncoherent.c enum dma_data_direction dir) dir 111 arch/mips/mm/dma-noncoherent.c dma_sync_virt(addr + offset, len, dir); dir 114 arch/mips/mm/dma-noncoherent.c dma_sync_virt(page_address(page) + offset, size, dir); dir 122 arch/mips/mm/dma-noncoherent.c size_t size, enum dma_data_direction dir) dir 124 arch/mips/mm/dma-noncoherent.c dma_sync_phys(paddr, size, dir); dir 129 arch/mips/mm/dma-noncoherent.c size_t size, enum dma_data_direction dir) dir 132 arch/mips/mm/dma-noncoherent.c dma_sync_phys(paddr, size, dir); dir 73 arch/mips/mm/ioremap.c pgd_t * dir; dir 77 arch/mips/mm/ioremap.c dir = pgd_offset(&init_mm, address); dir 85 arch/mips/mm/ioremap.c pud = pud_alloc(&init_mm, dir, address); dir 96 arch/mips/mm/ioremap.c dir++; dir 31 arch/mips/mm/mmap.c unsigned long flags, enum mmap_allocation_direction dir) dir 78 arch/mips/mm/mmap.c if (dir == DOWN) { dir 54 arch/mips/mm/sc-debugfs.c struct dentry *dir; dir 56 arch/mips/mm/sc-debugfs.c dir = debugfs_create_dir("l2cache", mips_debugfs_dir); dir 57 arch/mips/mm/sc-debugfs.c debugfs_create_file("prefetch", S_IRUGO | S_IWUSR, dir, NULL, dir 43 arch/mips/oprofile/common.c struct dentry *dir; dir 47 arch/mips/oprofile/common.c dir = oprofilefs_mkdir(root, buf); dir 49 arch/mips/oprofile/common.c oprofilefs_create_ulong(dir, "enabled", &ctr[i].enabled); dir 50 arch/mips/oprofile/common.c oprofilefs_create_ulong(dir, "event", &ctr[i].event); dir 51 arch/mips/oprofile/common.c oprofilefs_create_ulong(dir, "count", &ctr[i].count); dir 52 arch/mips/oprofile/common.c oprofilefs_create_ulong(dir, "kernel", &ctr[i].kernel); dir 53 arch/mips/oprofile/common.c oprofilefs_create_ulong(dir, "user", &ctr[i].user); dir 54 arch/mips/oprofile/common.c oprofilefs_create_ulong(dir, "exl", &ctr[i].exl); dir 56 arch/mips/oprofile/common.c oprofilefs_create_ulong(dir, "unit_mask", &ctr[i].unit_mask); dir 144 arch/mips/txx9/jmr3927/setup.c __raw_writel(0x0000f000, &tx3927_pioptr->dir); dir 195 arch/nds32/include/asm/pgtable.h #define pte_offset_kernel(dir, address) ((pte_t *)pmd_page_kernel(*(dir)) + pte_index(address)) dir 196 arch/nds32/include/asm/pgtable.h #define pte_offset_map(dir, address) ((pte_t *)page_address(pmd_page(*(dir))) + pte_index(address)) dir 197 arch/nds32/include/asm/pgtable.h #define pte_offset_map_nested(dir, address) pte_offset_map(dir, address) dir 370 arch/nds32/include/asm/pgtable.h #define pmd_offset(dir, addr) ((pmd_t *)(dir)) dir 50 arch/nds32/kernel/dma.c size_t size, enum dma_data_direction dir) dir 52 arch/nds32/kernel/dma.c switch (dir) { dir 65 arch/nds32/kernel/dma.c size_t size, enum dma_data_direction dir) dir 67 arch/nds32/kernel/dma.c switch (dir) { dir 253 arch/nios2/include/asm/pgtable.h #define pte_offset_map(dir, addr) \ dir 254 arch/nios2/include/asm/pgtable.h ((pte_t *) page_address(pmd_page(*dir)) + \ dir 261 arch/nios2/include/asm/pgtable.h #define pte_offset_kernel(dir, addr) \ dir 262 arch/nios2/include/asm/pgtable.h ((pte_t *) pmd_page_vaddr(*(dir)) + \ dir 22 arch/nios2/mm/dma-mapping.c size_t size, enum dma_data_direction dir) dir 26 arch/nios2/mm/dma-mapping.c switch (dir) { dir 46 arch/nios2/mm/dma-mapping.c size_t size, enum dma_data_direction dir) dir 50 arch/nios2/mm/dma-mapping.c switch (dir) { dir 80 arch/nios2/mm/ioremap.c pgd_t *dir; dir 84 arch/nios2/mm/ioremap.c dir = pgd_offset(&init_mm, address); dir 93 arch/nios2/mm/ioremap.c pud = pud_alloc(&init_mm, dir, address); dir 104 arch/nios2/mm/ioremap.c dir++; dir 392 arch/openrisc/include/asm/pgtable.h #define pte_offset_kernel(dir, address) \ dir 393 arch/openrisc/include/asm/pgtable.h ((pte_t *) pmd_page_kernel(*(dir)) + __pte_offset(address)) dir 394 arch/openrisc/include/asm/pgtable.h #define pte_offset_map(dir, address) \ dir 395 arch/openrisc/include/asm/pgtable.h ((pte_t *)page_address(pmd_page(*(dir))) + __pte_offset(address)) dir 396 arch/openrisc/include/asm/pgtable.h #define pte_offset_map_nested(dir, address) \ dir 397 arch/openrisc/include/asm/pgtable.h pte_offset_map(dir, address) dir 129 arch/openrisc/kernel/dma.c enum dma_data_direction dir) dir 134 arch/openrisc/kernel/dma.c switch (dir) { dir 454 arch/parisc/include/asm/pgtable.h #define pmd_offset(dir,address) \ dir 455 arch/parisc/include/asm/pgtable.h ((pmd_t *) pgd_page_vaddr(*(dir)) + pmd_index(address)) dir 457 arch/parisc/include/asm/pgtable.h #define pmd_offset(dir,addr) ((pmd_t *) dir) dir 131 arch/parisc/kernel/pci-dma.c pgd_t * dir; dir 134 arch/parisc/kernel/pci-dma.c dir = pgd_offset_k(vaddr); dir 138 arch/parisc/kernel/pci-dma.c pmd = pmd_alloc(NULL, dir, vaddr); dir 144 arch/parisc/kernel/pci-dma.c dir++; dir 185 arch/parisc/kernel/pci-dma.c static inline void unmap_uncached_pmd(pgd_t * dir, unsigned long vaddr, dir 192 arch/parisc/kernel/pci-dma.c if (pgd_none(*dir)) dir 194 arch/parisc/kernel/pci-dma.c if (pgd_bad(*dir)) { dir 195 arch/parisc/kernel/pci-dma.c pgd_ERROR(*dir); dir 196 arch/parisc/kernel/pci-dma.c pgd_clear(dir); dir 199 arch/parisc/kernel/pci-dma.c pmd = pmd_offset(dir, vaddr); dir 214 arch/parisc/kernel/pci-dma.c pgd_t * dir; dir 217 arch/parisc/kernel/pci-dma.c dir = pgd_offset_k(vaddr); dir 219 arch/parisc/kernel/pci-dma.c unmap_uncached_pmd(dir, vaddr, end - vaddr); dir 221 arch/parisc/kernel/pci-dma.c dir++; dir 443 arch/parisc/kernel/pci-dma.c size_t size, enum dma_data_direction dir) dir 449 arch/parisc/kernel/pci-dma.c size_t size, enum dma_data_direction dir) dir 106 arch/powerpc/include/asm/book3s/32/kup.h u32 size, unsigned long dir) dir 110 arch/powerpc/include/asm/book3s/32/kup.h BUILD_BUG_ON(!__builtin_constant_p(dir)); dir 111 arch/powerpc/include/asm/book3s/32/kup.h if (!(dir & KUAP_WRITE)) dir 125 arch/powerpc/include/asm/book3s/32/kup.h u32 size, unsigned long dir) dir 130 arch/powerpc/include/asm/book3s/32/kup.h BUILD_BUG_ON(!__builtin_constant_p(dir)); dir 131 arch/powerpc/include/asm/book3s/32/kup.h if (!(dir & KUAP_WRITE)) dir 362 arch/powerpc/include/asm/book3s/32/pgtable.h #define pte_offset_kernel(dir, addr) \ dir 363 arch/powerpc/include/asm/book3s/32/pgtable.h ((pte_t *) pmd_page_vaddr(*(dir)) + pte_index(addr)) dir 364 arch/powerpc/include/asm/book3s/32/pgtable.h #define pte_offset_map(dir, addr) \ dir 365 arch/powerpc/include/asm/book3s/32/pgtable.h ((pte_t *)(kmap_atomic(pmd_page(*(dir))) + \ dir 366 arch/powerpc/include/asm/book3s/32/pgtable.h (pmd_page_vaddr(*(dir)) & ~PAGE_MASK)) + pte_index(addr)) dir 81 arch/powerpc/include/asm/book3s/64/kup-radix.h unsigned long size, unsigned long dir) dir 84 arch/powerpc/include/asm/book3s/64/kup-radix.h BUILD_BUG_ON(!__builtin_constant_p(dir)); dir 85 arch/powerpc/include/asm/book3s/64/kup-radix.h if (dir == KUAP_READ) dir 87 arch/powerpc/include/asm/book3s/64/kup-radix.h else if (dir == KUAP_WRITE) dir 94 arch/powerpc/include/asm/book3s/64/kup-radix.h unsigned long size, unsigned long dir) dir 1017 arch/powerpc/include/asm/book3s/64/pgtable.h #define pte_offset_kernel(dir,addr) \ dir 1018 arch/powerpc/include/asm/book3s/64/pgtable.h (((pte_t *) pmd_page_vaddr(*(dir))) + pte_index(addr)) dir 1020 arch/powerpc/include/asm/book3s/64/pgtable.h #define pte_offset_map(dir,addr) pte_offset_kernel((dir), (addr)) dir 133 arch/powerpc/include/asm/floppy.h int dir; dir 136 arch/powerpc/include/asm/floppy.h dir = (mode == DMA_MODE_READ) ? PCI_DMA_FROMDEVICE : PCI_DMA_TODEVICE; dir 139 arch/powerpc/include/asm/floppy.h && (addr != prev_addr || size != prev_size || dir != prev_dir)) { dir 146 arch/powerpc/include/asm/floppy.h bus_addr = pci_map_single(isa_bridge_pcidev, addr, size, dir); dir 151 arch/powerpc/include/asm/floppy.h prev_dir = dir; dir 317 arch/powerpc/include/asm/iommu.h extern unsigned long iommu_direction_to_tce_perm(enum dma_data_direction dir); dir 49 arch/powerpc/include/asm/kup.h unsigned long size, unsigned long dir) { } dir 51 arch/powerpc/include/asm/kup.h unsigned long size, unsigned long dir) { } dir 114 arch/powerpc/include/asm/mpc5121.h enum mpc512x_lpbfifo_req_dir dir; dir 37 arch/powerpc/include/asm/nohash/32/kup-8xx.h unsigned long size, unsigned long dir) dir 43 arch/powerpc/include/asm/nohash/32/kup-8xx.h unsigned long size, unsigned long dir) dir 367 arch/powerpc/include/asm/nohash/32/pgtable.h #define pte_offset_kernel(dir, addr) \ dir 368 arch/powerpc/include/asm/nohash/32/pgtable.h (pmd_bad(*(dir)) ? NULL : (pte_t *)pmd_page_vaddr(*(dir)) + \ dir 370 arch/powerpc/include/asm/nohash/32/pgtable.h #define pte_offset_map(dir, addr) \ dir 371 arch/powerpc/include/asm/nohash/32/pgtable.h ((pte_t *)(kmap_atomic(pmd_page(*(dir))) + \ dir 372 arch/powerpc/include/asm/nohash/32/pgtable.h (pmd_page_vaddr(*(dir)) & ~PAGE_MASK)) + pte_index(addr)) dir 196 arch/powerpc/include/asm/nohash/64/pgtable.h #define pte_offset_kernel(dir,addr) \ dir 197 arch/powerpc/include/asm/nohash/64/pgtable.h (((pte_t *) pmd_page_vaddr(*(dir))) + (((addr) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))) dir 199 arch/powerpc/include/asm/nohash/64/pgtable.h #define pte_offset_map(dir,addr) pte_offset_kernel((dir), (addr)) dir 708 arch/powerpc/kernel/cacheinfo.c static void cacheinfo_create_index_opt_attrs(struct cache_index_dir *dir) dir 719 arch/powerpc/kernel/cacheinfo.c cache = dir->cache; dir 733 arch/powerpc/kernel/cacheinfo.c rc = attr->show(&dir->kobj, attr, buf); dir 741 arch/powerpc/kernel/cacheinfo.c if (sysfs_create_file(&dir->kobj, &attr->attr)) dir 170 arch/powerpc/kernel/dma-iommu.c size_t size, enum dma_data_direction dir) dir 173 arch/powerpc/kernel/dma-iommu.c dma_direct_sync_single_for_cpu(dev, addr, size, dir); dir 177 arch/powerpc/kernel/dma-iommu.c size_t sz, enum dma_data_direction dir) dir 180 arch/powerpc/kernel/dma-iommu.c dma_direct_sync_single_for_device(dev, addr, sz, dir); dir 184 arch/powerpc/kernel/dma-iommu.c struct scatterlist *sgl, int nents, enum dma_data_direction dir) dir 187 arch/powerpc/kernel/dma-iommu.c dma_direct_sync_sg_for_cpu(dev, sgl, nents, dir); dir 191 arch/powerpc/kernel/dma-iommu.c struct scatterlist *sgl, int nents, enum dma_data_direction dir) dir 194 arch/powerpc/kernel/dma-iommu.c dma_direct_sync_sg_for_device(dev, sgl, nents, dir); dir 93 arch/powerpc/kernel/iommu.c struct dentry *dir = fault_create_debugfs_attr("fail_iommu", dir 96 arch/powerpc/kernel/iommu.c return PTR_ERR_OR_ZERO(dir); dir 913 arch/powerpc/kernel/iommu.c unsigned long iommu_direction_to_tce_perm(enum dma_data_direction dir) dir 915 arch/powerpc/kernel/iommu.c switch (dir) { dir 2272 arch/powerpc/kernel/traps.c struct dentry *dir, *d; dir 2279 arch/powerpc/kernel/traps.c dir = debugfs_create_dir("emulated_instructions", dir 2281 arch/powerpc/kernel/traps.c if (!dir) dir 2284 arch/powerpc/kernel/traps.c d = debugfs_create_u32("do_warn", 0644, dir, dir 2290 arch/powerpc/kernel/traps.c d = debugfs_create_u32(entries[i].name, 0644, dir, dir 2299 arch/powerpc/kernel/traps.c debugfs_remove_recursive(dir); dir 353 arch/powerpc/kvm/book3s_64_vio.c enum dma_data_direction dir = iommu_tce_direction(tce); dir 358 arch/powerpc/kvm/book3s_64_vio.c if (dir == DMA_NONE) dir 417 arch/powerpc/kvm/book3s_64_vio.c enum dma_data_direction dir = DMA_NONE; dir 419 arch/powerpc/kvm/book3s_64_vio.c iommu_tce_xchg_no_kill(mm, tbl, entry, &hpa, &dir); dir 446 arch/powerpc/kvm/book3s_64_vio.c enum dma_data_direction dir = DMA_NONE; dir 451 arch/powerpc/kvm/book3s_64_vio.c &dir))) dir 454 arch/powerpc/kvm/book3s_64_vio.c if (dir == DMA_NONE) dir 459 arch/powerpc/kvm/book3s_64_vio.c iommu_tce_xchg_no_kill(kvm->mm, tbl, entry, &hpa, &dir); dir 483 arch/powerpc/kvm/book3s_64_vio.c enum dma_data_direction dir) dir 505 arch/powerpc/kvm/book3s_64_vio.c ret = iommu_tce_xchg_no_kill(kvm->mm, tbl, entry, &hpa, &dir); dir 511 arch/powerpc/kvm/book3s_64_vio.c if (dir != DMA_NONE) dir 522 arch/powerpc/kvm/book3s_64_vio.c enum dma_data_direction dir) dir 532 arch/powerpc/kvm/book3s_64_vio.c io_entry + i, ua + pgoff, dir); dir 547 arch/powerpc/kvm/book3s_64_vio.c enum dma_data_direction dir; dir 566 arch/powerpc/kvm/book3s_64_vio.c dir = iommu_tce_direction(tce); dir 568 arch/powerpc/kvm/book3s_64_vio.c if ((dir != DMA_NONE) && kvmppc_tce_to_ua(vcpu->kvm, tce, &ua)) { dir 576 arch/powerpc/kvm/book3s_64_vio.c if (dir == DMA_NONE) dir 581 arch/powerpc/kvm/book3s_64_vio.c entry, ua, dir); dir 109 arch/powerpc/kvm/book3s_64_vio_hv.c enum dma_data_direction dir = iommu_tce_direction(tce); dir 114 arch/powerpc/kvm/book3s_64_vio_hv.c if (dir == DMA_NONE) dir 255 arch/powerpc/kvm/book3s_64_vio_hv.c enum dma_data_direction dir = DMA_NONE; dir 257 arch/powerpc/kvm/book3s_64_vio_hv.c iommu_tce_xchg_no_kill_rm(kvm->mm, tbl, entry, &hpa, &dir); dir 285 arch/powerpc/kvm/book3s_64_vio_hv.c enum dma_data_direction dir = DMA_NONE; dir 289 arch/powerpc/kvm/book3s_64_vio_hv.c if (iommu_tce_xchg_no_kill_rm(kvm->mm, tbl, entry, &hpa, &dir)) dir 296 arch/powerpc/kvm/book3s_64_vio_hv.c if (dir == DMA_NONE) dir 301 arch/powerpc/kvm/book3s_64_vio_hv.c iommu_tce_xchg_no_kill_rm(kvm->mm, tbl, entry, &hpa, &dir); dir 325 arch/powerpc/kvm/book3s_64_vio_hv.c enum dma_data_direction dir) dir 347 arch/powerpc/kvm/book3s_64_vio_hv.c ret = iommu_tce_xchg_no_kill_rm(kvm->mm, tbl, entry, &hpa, &dir); dir 357 arch/powerpc/kvm/book3s_64_vio_hv.c if (dir != DMA_NONE) dir 368 arch/powerpc/kvm/book3s_64_vio_hv.c enum dma_data_direction dir) dir 378 arch/powerpc/kvm/book3s_64_vio_hv.c io_entry + i, ua + pgoff, dir); dir 393 arch/powerpc/kvm/book3s_64_vio_hv.c enum dma_data_direction dir; dir 414 arch/powerpc/kvm/book3s_64_vio_hv.c dir = iommu_tce_direction(tce); dir 415 arch/powerpc/kvm/book3s_64_vio_hv.c if ((dir != DMA_NONE) && kvmppc_rm_tce_to_ua(vcpu->kvm, tce, &ua, NULL)) dir 421 arch/powerpc/kvm/book3s_64_vio_hv.c if (dir == DMA_NONE) dir 426 arch/powerpc/kvm/book3s_64_vio_hv.c stit->tbl, entry, ua, dir); dir 94 arch/powerpc/mm/dma-noncoherent.c static void __dma_sync_page(phys_addr_t paddr, size_t size, int dir) dir 100 arch/powerpc/mm/dma-noncoherent.c __dma_sync_page_highmem(page, offset, size, dir); dir 103 arch/powerpc/mm/dma-noncoherent.c __dma_sync((void *)start, size, dir); dir 108 arch/powerpc/mm/dma-noncoherent.c size_t size, enum dma_data_direction dir) dir 110 arch/powerpc/mm/dma-noncoherent.c __dma_sync_page(paddr, size, dir); dir 114 arch/powerpc/mm/dma-noncoherent.c size_t size, enum dma_data_direction dir) dir 116 arch/powerpc/mm/dma-noncoherent.c __dma_sync_page(paddr, size, dir); dir 155 arch/powerpc/oprofile/common.c struct dentry *dir; dir 159 arch/powerpc/oprofile/common.c dir = oprofilefs_mkdir(root, buf); dir 161 arch/powerpc/oprofile/common.c oprofilefs_create_ulong(dir, "enabled", &ctr[i].enabled); dir 162 arch/powerpc/oprofile/common.c oprofilefs_create_ulong(dir, "event", &ctr[i].event); dir 163 arch/powerpc/oprofile/common.c oprofilefs_create_ulong(dir, "count", &ctr[i].count); dir 172 arch/powerpc/oprofile/common.c oprofilefs_create_ulong(dir, "kernel", &ctr[i].kernel); dir 173 arch/powerpc/oprofile/common.c oprofilefs_create_ulong(dir, "user", &ctr[i].user); dir 175 arch/powerpc/oprofile/common.c oprofilefs_create_ulong(dir, "unit_mask", &ctr[i].unit_mask); dir 76 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (!req || req->dir == MPC512X_LPBFIFO_REQ_DIR_READ) { dir 119 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c enum dma_data_direction dir; dir 136 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (req->dir == MPC512X_LPBFIFO_REQ_DIR_WRITE) dir 137 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c dir = DMA_TO_DEVICE; dir 139 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c dir = DMA_FROM_DEVICE; dir 141 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.ram_bus_addr, req->size, dir); dir 167 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c enum dma_data_direction dir; dir 228 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (lpbfifo.req->dir == MPC512X_LPBFIFO_REQ_DIR_WRITE) { dir 229 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c dir = DMA_TO_DEVICE; dir 234 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c dir = DMA_FROM_DEVICE; dir 251 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.req->ram_virt_addr, lpbfifo.req->size, dir); dir 294 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (lpbfifo.req->dir == MPC512X_LPBFIFO_REQ_DIR_READ) dir 303 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c if (lpbfifo.req->dir == MPC512X_LPBFIFO_REQ_DIR_WRITE) dir 328 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c lpbfifo.req->size, dir); dir 297 arch/powerpc/platforms/8xx/cpm1.c __be16 dir, par, odr_sor, dat, intr; dir 302 arch/powerpc/platforms/8xx/cpm1.c __be32 dir, par, odr, dat; dir 306 arch/powerpc/platforms/8xx/cpm1.c __be32 dir, par, sor, odr, dat; dir 322 arch/powerpc/platforms/8xx/cpm1.c setbits32(&iop->dir, pin); dir 324 arch/powerpc/platforms/8xx/cpm1.c clrbits32(&iop->dir, pin); dir 362 arch/powerpc/platforms/8xx/cpm1.c setbits16(&iop->dir, pin); dir 364 arch/powerpc/platforms/8xx/cpm1.c clrbits16(&iop->dir, pin); dir 608 arch/powerpc/platforms/8xx/cpm1.c setbits16(&iop->dir, pin_mask); dir 626 arch/powerpc/platforms/8xx/cpm1.c clrbits16(&iop->dir, pin_mask); dir 737 arch/powerpc/platforms/8xx/cpm1.c setbits32(&iop->dir, pin_mask); dir 755 arch/powerpc/platforms/8xx/cpm1.c clrbits32(&iop->dir, pin_mask); dir 144 arch/powerpc/platforms/cell/spufs/inode.c static void spufs_prune_dir(struct dentry *dir) dir 148 arch/powerpc/platforms/cell/spufs/inode.c inode_lock(d_inode(dir)); dir 149 arch/powerpc/platforms/cell/spufs/inode.c list_for_each_entry_safe(dentry, tmp, &dir->d_subdirs, d_child) { dir 155 arch/powerpc/platforms/cell/spufs/inode.c simple_unlink(d_inode(dir), dentry); dir 164 arch/powerpc/platforms/cell/spufs/inode.c shrink_dcache_parent(dir); dir 165 arch/powerpc/platforms/cell/spufs/inode.c inode_unlock(d_inode(dir)); dir 169 arch/powerpc/platforms/cell/spufs/inode.c static int spufs_rmdir(struct inode *parent, struct dentry *dir) dir 173 arch/powerpc/platforms/cell/spufs/inode.c spufs_prune_dir(dir); dir 174 arch/powerpc/platforms/cell/spufs/inode.c d_drop(dir); dir 175 arch/powerpc/platforms/cell/spufs/inode.c res = simple_rmdir(parent, dir); dir 177 arch/powerpc/platforms/cell/spufs/inode.c spu_forget(SPUFS_I(d_inode(dir))->i_ctx); dir 181 arch/powerpc/platforms/cell/spufs/inode.c static int spufs_fill_dir(struct dentry *dir, dir 187 arch/powerpc/platforms/cell/spufs/inode.c struct dentry *dentry = d_alloc_name(dir, files->name); dir 190 arch/powerpc/platforms/cell/spufs/inode.c ret = spufs_new_file(dir->d_sb, dentry, files->ops, dir 203 arch/powerpc/platforms/cell/spufs/inode.c struct dentry *dir; dir 206 arch/powerpc/platforms/cell/spufs/inode.c dir = file->f_path.dentry; dir 207 arch/powerpc/platforms/cell/spufs/inode.c parent = d_inode(dir->d_parent); dir 208 arch/powerpc/platforms/cell/spufs/inode.c ctx = SPUFS_I(d_inode(dir))->i_ctx; dir 211 arch/powerpc/platforms/cell/spufs/inode.c ret = spufs_rmdir(parent, dir); dir 229 arch/powerpc/platforms/cell/spufs/inode.c spufs_mkdir(struct inode *dir, struct dentry *dentry, unsigned int flags, dir 236 arch/powerpc/platforms/cell/spufs/inode.c inode = spufs_new_inode(dir->i_sb, mode | S_IFDIR); dir 240 arch/powerpc/platforms/cell/spufs/inode.c if (dir->i_mode & S_ISGID) { dir 241 arch/powerpc/platforms/cell/spufs/inode.c inode->i_gid = dir->i_gid; dir 244 arch/powerpc/platforms/cell/spufs/inode.c ctx = alloc_spu_context(SPUFS_I(dir)->i_gang); /* XXX gang */ dir 258 arch/powerpc/platforms/cell/spufs/inode.c inc_nlink(dir); dir 269 arch/powerpc/platforms/cell/spufs/inode.c if (!ret && spufs_get_sb_info(dir->i_sb)->debug) dir 274 arch/powerpc/platforms/cell/spufs/inode.c spufs_rmdir(dir, dentry); dir 462 arch/powerpc/platforms/cell/spufs/inode.c spufs_mkgang(struct inode *dir, struct dentry *dentry, umode_t mode) dir 469 arch/powerpc/platforms/cell/spufs/inode.c inode = spufs_new_inode(dir->i_sb, mode | S_IFDIR); dir 474 arch/powerpc/platforms/cell/spufs/inode.c if (dir->i_mode & S_ISGID) { dir 475 arch/powerpc/platforms/cell/spufs/inode.c inode->i_gid = dir->i_gid; dir 490 arch/powerpc/platforms/cell/spufs/inode.c inc_nlink(dir); dir 548 arch/powerpc/platforms/cell/spufs/inode.c struct inode *dir = d_inode(path->dentry); dir 561 arch/powerpc/platforms/cell/spufs/inode.c if ((flags & SPU_CREATE_GANG) || !SPUFS_I(dir)->i_gang) dir 567 arch/powerpc/platforms/cell/spufs/inode.c ret = spufs_create_gang(dir, dentry, path->mnt, mode); dir 569 arch/powerpc/platforms/cell/spufs/inode.c ret = spufs_create_context(dir, dentry, path->mnt, flags, mode, dir 572 arch/powerpc/platforms/cell/spufs/inode.c fsnotify_mkdir(dir, dentry); dir 29 arch/powerpc/platforms/powernv/memtrace.c struct dentry *dir; dir 176 arch/powerpc/platforms/powernv/memtrace.c struct dentry *dir; dir 189 arch/powerpc/platforms/powernv/memtrace.c dir = debugfs_create_dir(ent->name, memtrace_debugfs_dir); dir 190 arch/powerpc/platforms/powernv/memtrace.c if (!dir) { dir 196 arch/powerpc/platforms/powernv/memtrace.c ent->dir = dir; dir 197 arch/powerpc/platforms/powernv/memtrace.c debugfs_create_file("trace", 0400, dir, ent, &memtrace_fops); dir 198 arch/powerpc/platforms/powernv/memtrace.c debugfs_create_x64("start", 0400, dir, &ent->start); dir 199 arch/powerpc/platforms/powernv/memtrace.c debugfs_create_x64("size", 0400, dir, &ent->size); dir 254 arch/powerpc/platforms/powernv/memtrace.c debugfs_remove_recursive(ent->dir); dir 159 arch/powerpc/platforms/powernv/opal-xscom.c struct dentry *dir; dir 170 arch/powerpc/platforms/powernv/opal-xscom.c dir = debugfs_create_dir(ent->name, root); dir 171 arch/powerpc/platforms/powernv/opal-xscom.c if (!dir) { dir 177 arch/powerpc/platforms/powernv/opal-xscom.c debugfs_create_blob("devspec", 0400, dir, &ent->path); dir 178 arch/powerpc/platforms/powernv/opal-xscom.c debugfs_create_file("access", 0600, dir, ent, &scom_debug_fops); dir 326 arch/powerpc/sysdev/cpm2.c u32 dir, par, sor, odr, dat; dir 338 arch/powerpc/sysdev/cpm2.c setbits32(&iop[port].dir, pin); dir 340 arch/powerpc/sysdev/cpm2.c clrbits32(&iop[port].dir, pin); dir 95 arch/powerpc/sysdev/cpm_common.c u32 dir, par, sor, odr, dat; dir 165 arch/powerpc/sysdev/cpm_common.c setbits32(&iop->dir, pin_mask); dir 183 arch/powerpc/sysdev/cpm_common.c clrbits32(&iop->dir, pin_mask); dir 201 arch/riscv/include/asm/pgtable.h #define pte_offset_map(dir, addr) pte_offset_kernel((dir), (addr)) dir 25 arch/s390/hypfs/hypfs.h extern struct dentry *hypfs_create_u64(struct dentry *dir, const char *name, dir 28 arch/s390/hypfs/hypfs.h extern struct dentry *hypfs_create_str(struct dentry *dir, const char *name, dir 113 arch/s390/hypfs/hypfs_vm.c #define ATTRIBUTE(dir, name, member) \ dir 116 arch/s390/hypfs/hypfs_vm.c rc = hypfs_create_u64(dir, name, member); \ dir 181 arch/s390/hypfs/hypfs_vm.c struct dentry *dir, *file; dir 191 arch/s390/hypfs/hypfs_vm.c dir = hypfs_mkdir(root, "hyp"); dir 192 arch/s390/hypfs/hypfs_vm.c if (IS_ERR(dir)) { dir 193 arch/s390/hypfs/hypfs_vm.c rc = PTR_ERR(dir); dir 196 arch/s390/hypfs/hypfs_vm.c file = hypfs_create_str(dir, "type", "z/VM Hypervisor"); dir 203 arch/s390/hypfs/hypfs_vm.c dir = hypfs_mkdir(root, "cpus"); dir 204 arch/s390/hypfs/hypfs_vm.c if (IS_ERR(dir)) { dir 205 arch/s390/hypfs/hypfs_vm.c rc = PTR_ERR(dir); dir 208 arch/s390/hypfs/hypfs_vm.c file = hypfs_create_u64(dir, "count", data->lcpus); dir 215 arch/s390/hypfs/hypfs_vm.c dir = hypfs_mkdir(root, "systems"); dir 216 arch/s390/hypfs/hypfs_vm.c if (IS_ERR(dir)) { dir 217 arch/s390/hypfs/hypfs_vm.c rc = PTR_ERR(dir); dir 222 arch/s390/hypfs/hypfs_vm.c rc = hypfs_vm_create_guest(dir, &(data[i])); dir 33 arch/s390/hypfs/inode.c static struct dentry *hypfs_create_update_file(struct dentry *dir); dir 391 arch/s390/hypfs/inode.c static struct dentry *hypfs_create_update_file(struct dentry *dir) dir 395 arch/s390/hypfs/inode.c dentry = hypfs_create_file(dir, "update", NULL, dir 405 arch/s390/hypfs/inode.c struct dentry *hypfs_create_u64(struct dentry *dir, dir 417 arch/s390/hypfs/inode.c hypfs_create_file(dir, name, buffer, S_IFREG | REG_FILE_MODE); dir 426 arch/s390/hypfs/inode.c struct dentry *hypfs_create_str(struct dentry *dir, dir 437 arch/s390/hypfs/inode.c hypfs_create_file(dir, name, buffer, S_IFREG | REG_FILE_MODE); dir 439 arch/s390/pci/pci_dma.c enum dma_data_direction dir) dir 454 arch/s390/pci/pci_dma.c if (dir == DMA_NONE || dir == DMA_TO_DEVICE) dir 485 arch/s390/pci/pci_dma.c int nr_elements, enum dma_data_direction dir, dir 503 arch/s390/pci/pci_dma.c &dma->dma_address, dir)) dir 516 arch/s390/pci/pci_dma.c if (__s390_dma_map_sg(dev, start, size, &dma->dma_address, dir)) dir 526 arch/s390/pci/pci_dma.c dir, attrs); dir 532 arch/s390/pci/pci_dma.c int nr_elements, enum dma_data_direction dir, dir 541 arch/s390/pci/pci_dma.c dir, attrs); dir 422 arch/sh/include/asm/pgtable_32.h #define pte_offset_kernel(dir, address) \ dir 423 arch/sh/include/asm/pgtable_32.h ((pte_t *) pmd_page_vaddr(*(dir)) + pte_index(address)) dir 424 arch/sh/include/asm/pgtable_32.h #define pte_offset_map(dir, address) pte_offset_kernel(dir, address) dir 80 arch/sh/include/asm/pgtable_64.h #define pte_offset_kernel(dir, addr) \ dir 81 arch/sh/include/asm/pgtable_64.h ((pte_t *) ((pmd_val(*(dir))) & PAGE_MASK) + pte_index((addr))) dir 83 arch/sh/include/asm/pgtable_64.h #define pte_offset_map(dir,addr) pte_offset_kernel(dir, addr) dir 63 arch/sh/kernel/dma-coherent.c size_t size, enum dma_data_direction dir) dir 67 arch/sh/kernel/dma-coherent.c switch (dir) { dir 172 arch/sh/mm/alignment.c struct proc_dir_entry *dir, *res; dir 174 arch/sh/mm/alignment.c dir = proc_mkdir("cpu", NULL); dir 175 arch/sh/mm/alignment.c if (!dir) dir 178 arch/sh/mm/alignment.c res = proc_create_data("alignment", S_IWUSR | S_IRUGO, dir, dir 183 arch/sh/mm/alignment.c res = proc_create_data("kernel_alignment", S_IWUSR | S_IRUGO, dir, dir 322 arch/sparc/include/asm/pgtable_32.h static inline pmd_t *pmd_offset(pgd_t * dir, unsigned long address) dir 324 arch/sparc/include/asm/pgtable_32.h return (pmd_t *) pgd_page_vaddr(*dir) + dir 329 arch/sparc/include/asm/pgtable_32.h pte_t *pte_offset_kernel(pmd_t * dir, unsigned long address); dir 908 arch/sparc/include/asm/pgtable_64.h #define pte_index(dir, address) \ dir 909 arch/sparc/include/asm/pgtable_64.h ((pte_t *) __pmd_page(*(dir)) + \ dir 39 arch/sparc/include/uapi/asm/ioctl.h #define _IOC(dir,type,nr,size) \ dir 40 arch/sparc/include/uapi/asm/ioctl.h (((dir) << _IOC_DIRSHIFT) | \ dir 370 arch/sparc/kernel/ioport.c size_t size, enum dma_data_direction dir) dir 372 arch/sparc/kernel/ioport.c if (dir != PCI_DMA_TODEVICE) dir 242 arch/sparc/kernel/unaligned_32.c enum direction dir = decode_direction(insn); dir 245 arch/sparc/kernel/unaligned_32.c if(!ok_for_kernel(insn) || dir == both) { dir 254 arch/sparc/kernel/unaligned_32.c switch (dir) { dir 278 arch/sparc/kernel/unaligned_32.c enum direction dir) dir 320 arch/sparc/kernel/unaligned_32.c enum direction dir; dir 325 arch/sparc/kernel/unaligned_32.c dir = decode_direction(insn); dir 326 arch/sparc/kernel/unaligned_32.c if(!ok_for_user(regs, insn, dir)) { dir 339 arch/sparc/kernel/unaligned_32.c switch(dir) { dir 308 arch/sparc/kernel/unaligned_64.c enum direction dir = decode_direction(insn); dir 327 arch/sparc/kernel/unaligned_64.c if (!ok_for_kernel(insn) || dir == both) { dir 352 arch/sparc/kernel/unaligned_64.c switch (dir) { dir 42 arch/sparc/mm/highmem.c pmd_t *dir; dir 45 arch/sparc/mm/highmem.c dir = pmd_offset(pgd_offset_k(address), address); dir 48 arch/sparc/mm/highmem.c kmap_pte = pte_offset_kernel(dir, address); dir 144 arch/sparc/mm/io-unit.c unsigned long offset, size_t len, enum dma_data_direction dir, dir 162 arch/sparc/mm/io-unit.c enum dma_data_direction dir, unsigned long attrs) dir 180 arch/sparc/mm/io-unit.c enum dma_data_direction dir, unsigned long attrs) dir 195 arch/sparc/mm/io-unit.c int nents, enum dma_data_direction dir, unsigned long attrs) dir 230 arch/sparc/mm/iommu.c enum dma_data_direction dir, unsigned long attrs) dir 238 arch/sparc/mm/iommu.c enum dma_data_direction dir, unsigned long attrs) dir 244 arch/sparc/mm/iommu.c int nents, enum dma_data_direction dir, unsigned long attrs, dir 262 arch/sparc/mm/iommu.c int nents, enum dma_data_direction dir, unsigned long attrs) dir 265 arch/sparc/mm/iommu.c return __sbus_iommu_map_sg(dev, sgl, nents, dir, attrs, false); dir 269 arch/sparc/mm/iommu.c int nents, enum dma_data_direction dir, unsigned long attrs) dir 271 arch/sparc/mm/iommu.c return __sbus_iommu_map_sg(dev, sgl, nents, dir, attrs, true); dir 275 arch/sparc/mm/iommu.c size_t len, enum dma_data_direction dir, unsigned long attrs) dir 294 arch/sparc/mm/iommu.c int nents, enum dma_data_direction dir, unsigned long attrs) dir 300 arch/sparc/mm/iommu.c sbus_iommu_unmap_page(dev, sg->dma_address, sg->length, dir, dir 162 arch/sparc/mm/srmmu.c pte_t *pte_offset_kernel(pmd_t *dir, unsigned long address) dir 166 arch/sparc/mm/srmmu.c pte = __nocache_va((dir->pmdv[0] & SRMMU_PTD_PMASK) << 4); dir 212 arch/um/drivers/ubd_kern.c struct proc_dir_entry *dir, *ent; dir 217 arch/um/drivers/ubd_kern.c dir = proc_mkdir(dev_name, proc_ide); dir 218 arch/um/drivers/ubd_kern.c if(!dir) return; dir 220 arch/um/drivers/ubd_kern.c ent = proc_create_single("media", S_IRUGO, dir, dir 340 arch/um/include/asm/pgtable.h #define pte_offset_kernel(dir, address) \ dir 341 arch/um/include/asm/pgtable.h ((pte_t *) pmd_page_vaddr(*(dir)) + pte_index(address)) dir 342 arch/um/include/asm/pgtable.h #define pte_offset_map(dir, address) \ dir 343 arch/um/include/asm/pgtable.h ((pte_t *)page_address(pmd_page(*(dir))) + pte_index(address)) dir 175 arch/um/include/shared/os.h extern int os_change_dir(char *dir); dir 24 arch/um/os-Linux/mem.c static int __init check_tmpfs(const char *dir) dir 28 arch/um/os-Linux/mem.c os_info("Checking if %s is on tmpfs...", dir); dir 29 arch/um/os-Linux/mem.c if (statfs(dir, &st) < 0) { dir 62 arch/um/os-Linux/mem.c const char *dir; dir 66 arch/um/os-Linux/mem.c dir = getenv(vars[i]); dir 67 arch/um/os-Linux/mem.c if ((dir != NULL) && (*dir != '\0')) { dir 68 arch/um/os-Linux/mem.c os_info("%s\n", dir); dir 69 arch/um/os-Linux/mem.c if (check_tmpfs(dir) >= 0) dir 78 arch/um/os-Linux/mem.c dir = tmpfs_dirs[i]; dir 79 arch/um/os-Linux/mem.c if (check_tmpfs(dir) >= 0) dir 83 arch/um/os-Linux/mem.c dir = fallback_dir; dir 85 arch/um/os-Linux/mem.c os_warn("Warning: tempdir %s is not on tmpfs\n", dir); dir 88 arch/um/os-Linux/mem.c return strdup(dir); dir 30 arch/um/os-Linux/umid.c char dir[512] = { '\0' }; dir 43 arch/um/os-Linux/umid.c strlcpy(dir, home, sizeof(dir)); dir 46 arch/um/os-Linux/umid.c strlcat(dir, uml_dir, sizeof(dir)); dir 47 arch/um/os-Linux/umid.c len = strlen(dir); dir 48 arch/um/os-Linux/umid.c if (len > 0 && dir[len - 1] != '/') dir 49 arch/um/os-Linux/umid.c strlcat(dir, "/", sizeof(dir)); dir 52 arch/um/os-Linux/umid.c uml_dir = malloc(strlen(dir) + 1); dir 58 arch/um/os-Linux/umid.c strcpy(uml_dir, dir); dir 81 arch/um/os-Linux/umid.c static int remove_files_and_dir(char *dir) dir 89 arch/um/os-Linux/umid.c directory = opendir(dir); dir 100 arch/um/os-Linux/umid.c len = strlen(dir) + sizeof("/") + strlen(ent->d_name) + 1; dir 106 arch/um/os-Linux/umid.c sprintf(file, "%s/%s", dir, ent->d_name); dir 113 arch/um/os-Linux/umid.c if (rmdir(dir) < 0 && errno != ENOENT) { dir 136 arch/um/os-Linux/umid.c static inline int is_umdir_used(char *dir) dir 142 arch/um/os-Linux/umid.c err = asprintf(&file, "%s/pid", dir); dir 148 arch/um/os-Linux/umid.c n = snprintf(file, filelen, "%s/pid", dir); dir 204 arch/um/os-Linux/umid.c static int umdir_take_if_dead(char *dir) dir 207 arch/um/os-Linux/umid.c if (is_umdir_used(dir)) dir 210 arch/um/os-Linux/umid.c ret = remove_files_and_dir(dir); dir 400 arch/um/os-Linux/umid.c char *dir, err; dir 402 arch/um/os-Linux/umid.c dir = malloc(strlen(uml_dir) + UMID_LEN + 1); dir 403 arch/um/os-Linux/umid.c if (!dir) dir 406 arch/um/os-Linux/umid.c sprintf(dir, "%s%s", uml_dir, umid); dir 407 arch/um/os-Linux/umid.c err = remove_files_and_dir(dir); dir 412 arch/um/os-Linux/umid.c free(dir); dir 157 arch/unicore32/include/asm/pgtable.h #define pte_offset_kernel(dir, addr) (pmd_page_vaddr(*(dir)) \ dir 160 arch/unicore32/include/asm/pgtable.h #define pte_offset_map(dir, addr) (pmd_page_vaddr(*(dir)) \ dir 49 arch/x86/include/asm/pgtable_32.h #define pte_offset_map(dir, address) \ dir 50 arch/x86/include/asm/pgtable_32.h ((pte_t *)kmap_atomic(pmd_page(*(dir))) + \ dir 54 arch/x86/include/asm/pgtable_32.h #define pte_offset_map(dir, address) \ dir 55 arch/x86/include/asm/pgtable_32.h ((pte_t *)page_address(pmd_page(*(dir))) + pte_index((address))) dir 184 arch/x86/include/asm/pgtable_64.h #define pte_offset_map(dir, address) pte_offset_kernel((dir), (address)) dir 167 arch/x86/kernel/amd_gart_64.c static void iommu_full(struct device *dev, size_t size, int dir) dir 201 arch/x86/kernel/amd_gart_64.c size_t size, int dir, unsigned long align_mask) dir 216 arch/x86/kernel/amd_gart_64.c iommu_full(dev, size, dir); dir 230 arch/x86/kernel/amd_gart_64.c enum dma_data_direction dir, dir 239 arch/x86/kernel/amd_gart_64.c bus = dma_map_area(dev, paddr, size, dir, 0); dir 249 arch/x86/kernel/amd_gart_64.c size_t size, enum dma_data_direction dir, dir 280 arch/x86/kernel/amd_gart_64.c enum dma_data_direction dir, unsigned long attrs) dir 288 arch/x86/kernel/amd_gart_64.c gart_unmap_page(dev, s->dma_address, s->dma_length, dir, 0); dir 294 arch/x86/kernel/amd_gart_64.c int nents, int dir) dir 307 arch/x86/kernel/amd_gart_64.c addr = dma_map_area(dev, addr, s->length, dir, 0); dir 310 arch/x86/kernel/amd_gart_64.c gart_unmap_sg(dev, sg, i, dir, 0); dir 381 arch/x86/kernel/amd_gart_64.c enum dma_data_direction dir, unsigned long attrs) dir 448 arch/x86/kernel/amd_gart_64.c gart_unmap_sg(dev, sg, out, dir, 0); dir 452 arch/x86/kernel/amd_gart_64.c out = dma_map_sg_nonforce(dev, sg, nents, dir); dir 459 arch/x86/kernel/amd_gart_64.c iommu_full(dev, pages << PAGE_SHIFT, dir); dir 326 arch/x86/kernel/pci-calgary_64.c int nelems,enum dma_data_direction dir, dir 350 arch/x86/kernel/pci-calgary_64.c int nelems, enum dma_data_direction dir, dir 376 arch/x86/kernel/pci-calgary_64.c tce_build(tbl, entry, npages, vaddr & PAGE_MASK, dir); dir 383 arch/x86/kernel/pci-calgary_64.c calgary_unmap_sg(dev, sg, nelems, dir, 0); dir 393 arch/x86/kernel/pci-calgary_64.c enum dma_data_direction dir, dir 404 arch/x86/kernel/pci-calgary_64.c return iommu_alloc(dev, tbl, vaddr, npages, dir); dir 408 arch/x86/kernel/pci-calgary_64.c size_t size, enum dma_data_direction dir, dir 53 arch/x86/mm/debug_pagetables.c static struct dentry *dir; dir 57 arch/x86/mm/debug_pagetables.c dir = debugfs_create_dir("page_tables", NULL); dir 59 arch/x86/mm/debug_pagetables.c debugfs_create_file("kernel", 0400, dir, NULL, &ptdump_fops); dir 60 arch/x86/mm/debug_pagetables.c debugfs_create_file("current_kernel", 0400, dir, NULL, dir 64 arch/x86/mm/debug_pagetables.c debugfs_create_file("current_user", 0400, dir, NULL, dir 68 arch/x86/mm/debug_pagetables.c debugfs_create_file("efi", 0400, dir, NULL, &ptdump_efi_fops); dir 75 arch/x86/mm/debug_pagetables.c debugfs_remove_recursive(dir); dir 418 arch/x86/oprofile/nmi_int.c struct dentry *dir; dir 430 arch/x86/oprofile/nmi_int.c dir = oprofilefs_mkdir(root, buf); dir 431 arch/x86/oprofile/nmi_int.c oprofilefs_create_ulong(dir, "enabled", &counter_config[i].enabled); dir 432 arch/x86/oprofile/nmi_int.c oprofilefs_create_ulong(dir, "event", &counter_config[i].event); dir 433 arch/x86/oprofile/nmi_int.c oprofilefs_create_ulong(dir, "count", &counter_config[i].count); dir 434 arch/x86/oprofile/nmi_int.c oprofilefs_create_ulong(dir, "unit_mask", &counter_config[i].unit_mask); dir 435 arch/x86/oprofile/nmi_int.c oprofilefs_create_ulong(dir, "kernel", &counter_config[i].kernel); dir 436 arch/x86/oprofile/nmi_int.c oprofilefs_create_ulong(dir, "user", &counter_config[i].user); dir 437 arch/x86/oprofile/nmi_int.c oprofilefs_create_ulong(dir, "extra", &counter_config[i].extra); dir 460 arch/x86/oprofile/op_model_amd.c struct dentry *dir; dir 481 arch/x86/oprofile/op_model_amd.c dir = oprofilefs_mkdir(root, "ibs_fetch"); dir 482 arch/x86/oprofile/op_model_amd.c oprofilefs_create_ulong(dir, "enable", dir 484 arch/x86/oprofile/op_model_amd.c oprofilefs_create_ulong(dir, "max_count", dir 486 arch/x86/oprofile/op_model_amd.c oprofilefs_create_ulong(dir, "rand_enable", dir 491 arch/x86/oprofile/op_model_amd.c dir = oprofilefs_mkdir(root, "ibs_op"); dir 492 arch/x86/oprofile/op_model_amd.c oprofilefs_create_ulong(dir, "enable", dir 494 arch/x86/oprofile/op_model_amd.c oprofilefs_create_ulong(dir, "max_count", dir 497 arch/x86/oprofile/op_model_amd.c oprofilefs_create_ulong(dir, "dispatched_ops", dir 500 arch/x86/oprofile/op_model_amd.c oprofilefs_create_ulong(dir, "branch_target", dir 375 arch/xtensa/include/asm/pgtable.h #define pmd_offset(dir,address) ((pmd_t*)(dir)) dir 379 arch/xtensa/include/asm/pgtable.h #define pte_offset_kernel(dir,addr) \ dir 380 arch/xtensa/include/asm/pgtable.h ((pte_t*) pmd_page_vaddr(*(dir)) + pte_index(addr)) dir 381 arch/xtensa/include/asm/pgtable.h #define pte_offset_map(dir,addr) pte_offset_kernel((dir),(addr)) dir 48 arch/xtensa/kernel/pci-dma.c size_t size, enum dma_data_direction dir) dir 50 arch/xtensa/kernel/pci-dma.c switch (dir) { dir 66 arch/xtensa/kernel/pci-dma.c size_t size, enum dma_data_direction dir) dir 68 arch/xtensa/kernel/pci-dma.c switch (dir) { dir 769 block/blk-core.c struct dentry *dir = fault_create_debugfs_attr("fail_make_request", dir 772 block/blk-core.c return PTR_ERR_OR_ZERO(dir); dir 33 block/blk-timeout.c struct dentry *dir = fault_create_debugfs_attr("fail_io_timeout", dir 36 block/blk-timeout.c return PTR_ERR_OR_ZERO(dir); dir 151 block/compat_ioctl.c unsigned char dir; dir 164 block/compat_ioctl.c get_user(dir, &cgc32->data_direction) || dir 165 block/compat_ioctl.c put_user(dir, &cgc->data_direction) || dir 120 crypto/scompress.c static int scomp_acomp_comp_decomp(struct acomp_req *req, int dir) dir 142 crypto/scompress.c if (dir) dir 80 drivers/android/binder_internal.h extern struct dentry *binderfs_create_file(struct dentry *dir, const char *name, dir 89 drivers/android/binder_internal.h static inline struct dentry *binderfs_create_file(struct dentry *dir, dir 377 drivers/android/binderfs.c static int binderfs_unlink(struct inode *dir, struct dentry *dentry) dir 382 drivers/android/binderfs.c return simple_unlink(dir, dentry); dir 5021 drivers/ata/libata-core.c int dir = qc->dma_dir; dir 5028 drivers/ata/libata-core.c dma_unmap_sg(ap->dev, sg, qc->orig_n_elem, dir); dir 51 drivers/ata/pata_pxa.c enum dma_transfer_direction dir; dir 56 drivers/ata/pata_pxa.c dir = (qc->dma_dir == DMA_TO_DEVICE ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM); dir 57 drivers/ata/pata_pxa.c tx = dmaengine_prep_slave_sg(pd->dma_chan, qc->sg, qc->n_elem, dir, dir 1015 drivers/ata/sata_dwc_460ex.c int dir = qc->dma_dir; dir 1019 drivers/ata/sata_dwc_460ex.c if (dir == DMA_TO_DEVICE) dir 1043 drivers/ata/sata_dwc_460ex.c if (dir == DMA_TO_DEVICE) dir 1740 drivers/base/core.c struct class_dir *dir = to_class_dir(kobj); dir 1741 drivers/base/core.c kfree(dir); dir 1747 drivers/base/core.c struct class_dir *dir = to_class_dir(kobj); dir 1748 drivers/base/core.c return dir->class->ns_type; dir 1760 drivers/base/core.c struct class_dir *dir; dir 1763 drivers/base/core.c dir = kzalloc(sizeof(*dir), GFP_KERNEL); dir 1764 drivers/base/core.c if (!dir) dir 1767 drivers/base/core.c dir->class = class; dir 1768 drivers/base/core.c kobject_init(&dir->kobj, &class_dir_ktype); dir 1770 drivers/base/core.c dir->kobj.kset = &class->p->glue_dirs; dir 1772 drivers/base/core.c retval = kobject_add(&dir->kobj, parent_kobj, "%s", class->name); dir 1774 drivers/base/core.c kobject_put(&dir->kobj); dir 1777 drivers/base/core.c return &dir->kobj; dir 1573 drivers/block/nbd.c struct dentry *dir; dir 1579 drivers/block/nbd.c dir = debugfs_create_dir(nbd_name(nbd), nbd_dbg_dir); dir 1580 drivers/block/nbd.c if (!dir) { dir 1585 drivers/block/nbd.c config->dbg_dir = dir; dir 1587 drivers/block/nbd.c debugfs_create_file("tasks", 0444, dir, nbd, &nbd_dbg_tasks_ops); dir 1588 drivers/block/nbd.c debugfs_create_u64("size_bytes", 0444, dir, &config->bytesize); dir 1589 drivers/block/nbd.c debugfs_create_u32("timeout", 0444, dir, &nbd->tag_set.timeout); dir 1590 drivers/block/nbd.c debugfs_create_u64("blocksize", 0444, dir, &config->blksize); dir 1591 drivers/block/nbd.c debugfs_create_file("flags", 0444, dir, nbd, &nbd_dbg_flags_ops); dir 388 drivers/block/rsxx/dma.c int dir; dir 427 drivers/block/rsxx/dma.c dir = DMA_TO_DEVICE; dir 429 drivers/block/rsxx/dma.c dir = DMA_FROM_DEVICE; dir 442 drivers/block/rsxx/dma.c dma->pg_off, dma->sub_page.cnt << 9, dir); dir 631 drivers/block/rsxx/dma.c int dir, dir 646 drivers/block/rsxx/dma.c dma->cmd = dir ? HW_CMD_BLK_WRITE : HW_CMD_BLK_READ; dir 657 drivers/block/rsxx/dma.c dir ? 'W' : 'R', dma->laddr, dma->sub_page.off, dir 2604 drivers/block/skd_main.c enum dma_data_direction dir) dir 2613 drivers/block/skd_main.c kmem_cache_size(s), dir); dir 2623 drivers/block/skd_main.c enum dma_data_direction dir) dir 2629 drivers/block/skd_main.c kmem_cache_size(s), dir); dir 924 drivers/block/xen-blkback/xenbus.c static int read_per_ring_refs(struct xen_blkif_ring *ring, const char *dir) dir 933 drivers/block/xen-blkback/xenbus.c err = xenbus_scanf(XBT_NIL, dir, "event-channel", "%u", dir 937 drivers/block/xen-blkback/xenbus.c xenbus_dev_fatal(dev, err, "reading %s/event-channel", dir); dir 952 drivers/block/xen-blkback/xenbus.c err = xenbus_scanf(XBT_NIL, dir, ring_ref_name, dir 961 drivers/block/xen-blkback/xenbus.c dir, ring_ref_name); dir 969 drivers/block/xen-blkback/xenbus.c err = xenbus_scanf(XBT_NIL, dir, "ring-ref", "%u", dir 973 drivers/block/xen-blkback/xenbus.c xenbus_dev_fatal(dev, err, "reading %s/ring-ref", dir); dir 1724 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo, const char *dir) dir 1732 drivers/block/xen-blkfront.c err = xenbus_printf(xbt, dir, "ring-ref", "%u", rinfo->ring_ref[0]); dir 1742 drivers/block/xen-blkfront.c err = xenbus_printf(xbt, dir, ring_ref_name, dir 1751 drivers/block/xen-blkfront.c err = xenbus_printf(xbt, dir, "event-channel", "%u", rinfo->evtchn); dir 118 drivers/bluetooth/btmtksdio.c u8 dir; dir 185 drivers/bluetooth/btmtksdio.c hdr->dir = 1; dir 78 drivers/bluetooth/btmtkuart.c u8 dir; dir 165 drivers/bluetooth/btmtkuart.c hdr->dir = 1; dir 2517 drivers/bluetooth/btusb.c u8 dir; dir 2713 drivers/bluetooth/btusb.c hdr->dir = 1; dir 66 drivers/char/ds1620.c static inline void netwinder_ds1620_set_data_dir(int dir) dir 68 drivers/char/ds1620.c nw_gpio_modify_io(GPIO_DATA, dir ? GPIO_DATA : 0); dir 359 drivers/char/dsp56k.c int dir, out, status; dir 362 drivers/char/dsp56k.c if(get_user(dir, &hf->dir) < 0) dir 368 drivers/char/dsp56k.c if ((dir & 0x1) && (out & 0x1)) dir 370 drivers/char/dsp56k.c else if (dir & 0x1) dir 372 drivers/char/dsp56k.c if ((dir & 0x2) && (out & 0x2)) dir 374 drivers/char/dsp56k.c else if (dir & 0x2) dir 343 drivers/char/efirtc.c struct proc_dir_entry *dir; dir 354 drivers/char/efirtc.c dir = proc_create_single("driver/efirtc", 0, NULL, efi_rtc_proc_show); dir 355 drivers/char/efirtc.c if (dir == NULL) { dir 1083 drivers/counter/104-quad-8.c enum counter_count_direction dir; dir 1085 drivers/counter/104-quad-8.c quad8_direction_get(counter, count, &dir); dir 1087 drivers/counter/104-quad-8.c return sprintf(buf, "%s\n", counter_count_direction_str[dir]); dir 162 drivers/cpufreq/longhaul.c unsigned int dir) dir 181 drivers/cpufreq/longhaul.c if (can_scale_voltage && dir) { dir 218 drivers/cpufreq/longhaul.c if (can_scale_voltage && !dir) { dir 255 drivers/cpufreq/longhaul.c unsigned int dir = 0; dir 269 drivers/cpufreq/longhaul.c dir = 1; dir 327 drivers/cpufreq/longhaul.c do_powersaver(cx->address, mults_index, dir); dir 329 drivers/cpufreq/longhaul.c do_powersaver(0, mults_index, dir); dir 624 drivers/cpufreq/longhaul.c unsigned int dir = 0; dir 640 drivers/cpufreq/longhaul.c dir = 1; dir 648 drivers/cpufreq/longhaul.c if (dir) dir 33 drivers/crypto/amcc/crypto4xx_alg.c u32 op_grp, u32 op, u32 dir) dir 47 drivers/crypto/amcc/crypto4xx_alg.c sa->sa_command_0.bf.dir = dir; dir 170 drivers/crypto/amcc/crypto4xx_alg.c sa->sa_command_0.bf.dir = DIR_OUTBOUND; dir 599 drivers/crypto/amcc/crypto4xx_alg.c sa->sa_command_0.bf.dir = DIR_OUTBOUND; dir 591 drivers/crypto/amcc/crypto4xx_core.c if (pd_uinfo->sa_va->sa_command_0.bf.dir == DIR_OUTBOUND) { dir 102 drivers/crypto/amcc/crypto4xx_sa.h u32 dir:1; dir 781 drivers/crypto/atmel-aes.c enum dma_transfer_direction dir, dir 791 drivers/crypto/atmel-aes.c config.direction = dir; dir 797 drivers/crypto/atmel-aes.c switch (dir) { dir 818 drivers/crypto/atmel-aes.c desc = dmaengine_prep_slave_sg(dma->chan, dma->sg, dma->sg_len, dir, dir 832 drivers/crypto/atmel-aes.c enum dma_transfer_direction dir) dir 836 drivers/crypto/atmel-aes.c switch (dir) { dir 235 drivers/crypto/axis/artpec6_crypto.c enum dma_data_direction dir; dir 603 drivers/crypto/axis/artpec6_crypto.c enum dma_data_direction dir, dir 616 drivers/crypto/axis/artpec6_crypto.c dma_addr = dma_map_page(dev, page, offset, size, dir); dir 623 drivers/crypto/axis/artpec6_crypto.c map->dir = dir; dir 633 drivers/crypto/axis/artpec6_crypto.c enum dma_data_direction dir, dir 639 drivers/crypto/axis/artpec6_crypto.c return artpec6_crypto_dma_map_page(common, page, offset, size, dir, dir 685 drivers/crypto/axis/artpec6_crypto.c dma_unmap_page(dev, map->dma_addr, map->size, map->dir); dir 110 drivers/crypto/caam/caamalg.c enum dma_data_direction dir; dir 143 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 162 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 245 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 267 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 291 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 336 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 353 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 402 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 420 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 470 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 488 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 521 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 527 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 597 drivers/crypto/caam/caamalg.c keys.enckeylen, ctx->dir); dir 611 drivers/crypto/caam/caamalg.c keys.enckeylen, ctx->dir); dir 661 drivers/crypto/caam/caamalg.c dma_sync_single_for_device(jrdev, ctx->key_dma, keylen, ctx->dir); dir 691 drivers/crypto/caam/caamalg.c ctx->dir); dir 719 drivers/crypto/caam/caamalg.c ctx->dir); dir 747 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 754 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 862 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 868 drivers/crypto/caam/caamalg.c desc_bytes(desc), ctx->dir); dir 3422 drivers/crypto/caam/caamalg.c ctx->dir = DMA_BIDIRECTIONAL; dir 3424 drivers/crypto/caam/caamalg.c ctx->dir = DMA_TO_DEVICE; dir 3429 drivers/crypto/caam/caamalg.c ctx->dir, DMA_ATTR_SKIP_CPU_SYNC); dir 3472 drivers/crypto/caam/caamalg.c ctx->dir, DMA_ATTR_SKIP_CPU_SYNC); dir 63 drivers/crypto/caam/caamalg_qi.c enum dma_data_direction dir; dir 222 drivers/crypto/caam/caamalg_qi.c keys.enckeylen, ctx->dir); dir 236 drivers/crypto/caam/caamalg_qi.c ctx->dir); dir 369 drivers/crypto/caam/caamalg_qi.c ctx->dir); dir 480 drivers/crypto/caam/caamalg_qi.c ctx->cdata.keylen, ctx->dir); dir 588 drivers/crypto/caam/caamalg_qi.c ctx->cdata.keylen, ctx->dir); dir 2435 drivers/crypto/caam/caamalg_qi.c ctx->dir = DMA_BIDIRECTIONAL; dir 2437 drivers/crypto/caam/caamalg_qi.c ctx->dir = DMA_TO_DEVICE; dir 2440 drivers/crypto/caam/caamalg_qi.c ctx->dir); dir 2486 drivers/crypto/caam/caamalg_qi.c ctx->dir); dir 78 drivers/crypto/caam/caamalg_qi2.c enum dma_data_direction dir; dir 244 drivers/crypto/caam/caamalg_qi2.c ctx->dir); dir 265 drivers/crypto/caam/caamalg_qi2.c ctx->dir); dir 306 drivers/crypto/caam/caamalg_qi2.c keys.enckeylen, ctx->dir); dir 604 drivers/crypto/caam/caamalg_qi2.c ctx->dir); dir 613 drivers/crypto/caam/caamalg_qi2.c ctx->dir); dir 680 drivers/crypto/caam/caamalg_qi2.c ctx->dir); dir 700 drivers/crypto/caam/caamalg_qi2.c ctx->dir); dir 736 drivers/crypto/caam/caamalg_qi2.c dma_sync_single_for_device(dev, ctx->key_dma, keylen, ctx->dir); dir 776 drivers/crypto/caam/caamalg_qi2.c ctx->dir); dir 796 drivers/crypto/caam/caamalg_qi2.c ctx->dir); dir 840 drivers/crypto/caam/caamalg_qi2.c ctx->dir); dir 879 drivers/crypto/caam/caamalg_qi2.c ctx->dir); dir 899 drivers/crypto/caam/caamalg_qi2.c ctx->dir); dir 941 drivers/crypto/caam/caamalg_qi2.c ctx->dir); dir 974 drivers/crypto/caam/caamalg_qi2.c ctx->dir); dir 984 drivers/crypto/caam/caamalg_qi2.c ctx->dir); dir 1102 drivers/crypto/caam/caamalg_qi2.c ctx->dir); dir 1111 drivers/crypto/caam/caamalg_qi2.c ctx->dir); dir 1544 drivers/crypto/caam/caamalg_qi2.c ctx->dir = uses_dkp ? DMA_BIDIRECTIONAL : DMA_TO_DEVICE; dir 1548 drivers/crypto/caam/caamalg_qi2.c ctx->dir, DMA_ATTR_SKIP_CPU_SYNC); dir 1585 drivers/crypto/caam/caamalg_qi2.c offsetof(struct caam_ctx, flc_dma), ctx->dir, dir 98 drivers/crypto/caam/caamhash.c enum dma_data_direction dir; dir 237 drivers/crypto/caam/caamhash.c desc_bytes(desc), ctx->dir); dir 248 drivers/crypto/caam/caamhash.c desc_bytes(desc), ctx->dir); dir 258 drivers/crypto/caam/caamhash.c desc_bytes(desc), ctx->dir); dir 269 drivers/crypto/caam/caamhash.c desc_bytes(desc), ctx->dir); dir 290 drivers/crypto/caam/caamhash.c desc_bytes(desc), ctx->dir); dir 300 drivers/crypto/caam/caamhash.c desc_bytes(desc), ctx->dir); dir 313 drivers/crypto/caam/caamhash.c desc_bytes(desc), ctx->dir); dir 323 drivers/crypto/caam/caamhash.c desc_bytes(desc), ctx->dir); dir 342 drivers/crypto/caam/caamhash.c desc_bytes(desc), ctx->dir); dir 352 drivers/crypto/caam/caamhash.c desc_bytes(desc), ctx->dir); dir 362 drivers/crypto/caam/caamhash.c desc_bytes(desc), ctx->dir); dir 372 drivers/crypto/caam/caamhash.c desc_bytes(desc), ctx->dir); dir 1840 drivers/crypto/caam/caamhash.c ctx->dir = DMA_TO_DEVICE; dir 1845 drivers/crypto/caam/caamhash.c ctx->dir = DMA_TO_DEVICE; dir 1851 drivers/crypto/caam/caamhash.c ctx->dir = DMA_BIDIRECTIONAL; dir 1854 drivers/crypto/caam/caamhash.c ctx->dir = DMA_TO_DEVICE; dir 1877 drivers/crypto/caam/caamhash.c ctx->dir, DMA_ATTR_SKIP_CPU_SYNC); dir 1916 drivers/crypto/caam/caamhash.c ctx->dir, DMA_ATTR_SKIP_CPU_SYNC); dir 61 drivers/crypto/cavium/nitrox/nitrox_debugfs.c struct dentry *dir; dir 63 drivers/crypto/cavium/nitrox/nitrox_debugfs.c dir = debugfs_create_dir(KBUILD_MODNAME, NULL); dir 65 drivers/crypto/cavium/nitrox/nitrox_debugfs.c ndev->debugfs_dir = dir; dir 66 drivers/crypto/cavium/nitrox/nitrox_debugfs.c debugfs_create_file("firmware", 0400, dir, ndev, &firmware_fops); dir 67 drivers/crypto/cavium/nitrox/nitrox_debugfs.c debugfs_create_file("device", 0400, dir, ndev, &device_fops); dir 68 drivers/crypto/cavium/nitrox/nitrox_debugfs.c debugfs_create_file("stats", 0400, dir, ndev, &stats_fops); dir 454 drivers/crypto/ccp/ccp-dev.h enum dma_data_direction dir; dir 128 drivers/crypto/ccp/ccp-ops.c wa->dma.dir); dir 139 drivers/crypto/ccp/ccp-ops.c enum dma_data_direction dir) dir 165 drivers/crypto/ccp/ccp-ops.c dir); dir 171 drivers/crypto/ccp/ccp-ops.c wa->dma.dir = dir; dir 255 drivers/crypto/ccp/ccp-ops.c enum dma_data_direction dir) dir 262 drivers/crypto/ccp/ccp-ops.c dir); dir 266 drivers/crypto/ccp/ccp-ops.c ret = ccp_init_dm_workarea(&data->dm_wa, cmd_q, dm_len, dir); dir 64 drivers/crypto/ccree/cc_buffer_mgr.c enum cc_sg_cpy_direct dir) dir 74 drivers/crypto/ccree/cc_buffer_mgr.c (skip - areq_ctx->req_authsize), skip, dir); dir 12 drivers/crypto/ccree/cc_debugfs.c struct dentry *dir; dir 85 drivers/crypto/ccree/cc_debugfs.c ctx->dir = debugfs_create_dir(drvdata->plat_dev->name, cc_debugfs_dir); dir 87 drivers/crypto/ccree/cc_debugfs.c debugfs_create_regset32("regs", 0400, ctx->dir, regset); dir 88 drivers/crypto/ccree/cc_debugfs.c debugfs_create_bool("coherent", 0400, ctx->dir, &drvdata->coherent); dir 106 drivers/crypto/ccree/cc_debugfs.c debugfs_create_regset32("version", 0400, ctx->dir, verset); dir 117 drivers/crypto/ccree/cc_debugfs.c debugfs_remove_recursive(ctx->dir); dir 70 drivers/crypto/geode-aes.c void *dst, u32 len, u8 *iv, int mode, int dir) dir 83 drivers/crypto/geode-aes.c if (dir == AES_DIR_ENCRYPT) dir 278 drivers/crypto/geode-aes.c static int geode_skcipher_crypt(struct skcipher_request *req, int mode, int dir) dir 291 drivers/crypto/geode-aes.c if (dir == AES_DIR_DECRYPT) dir 302 drivers/crypto/geode-aes.c walk.iv, mode, dir); dir 390 drivers/crypto/inside-secure/safexcel.c char fw_path[37], *dir = NULL; dir 395 drivers/crypto/inside-secure/safexcel.c dir = "eip197d"; dir 398 drivers/crypto/inside-secure/safexcel.c dir = "eip197b"; dir 404 drivers/crypto/inside-secure/safexcel.c snprintf(fw_path, 37, "inside-secure/%s/%s", dir, fw_name[i]); dir 445 drivers/crypto/inside-secure/safexcel.c dir = "eip197_minifw"; dir 1015 drivers/crypto/inside-secure/safexcel_cipher.c enum safexcel_cipher_direction dir) dir 1022 drivers/crypto/inside-secure/safexcel_cipher.c sreq->direction = dir; dir 106 drivers/crypto/ixp4xx_crypto.c enum dma_data_direction dir; dir 332 drivers/crypto/ixp4xx_crypto.c dma_unmap_single(dev, buf->phys_next, buf->buf_len, buf->dir); dir 535 drivers/crypto/ixp4xx_crypto.c static void reset_sa_dir(struct ix_sa_dir *dir) dir 537 drivers/crypto/ixp4xx_crypto.c memset(dir->npe_ctx, 0, NPE_CTX_LEN); dir 538 drivers/crypto/ixp4xx_crypto.c dir->npe_ctx_idx = 0; dir 539 drivers/crypto/ixp4xx_crypto.c dir->npe_mode = 0; dir 542 drivers/crypto/ixp4xx_crypto.c static int init_sa_dir(struct ix_sa_dir *dir) dir 544 drivers/crypto/ixp4xx_crypto.c dir->npe_ctx = dma_pool_alloc(ctx_pool, GFP_KERNEL, &dir->npe_ctx_phys); dir 545 drivers/crypto/ixp4xx_crypto.c if (!dir->npe_ctx) { dir 548 drivers/crypto/ixp4xx_crypto.c reset_sa_dir(dir); dir 552 drivers/crypto/ixp4xx_crypto.c static void free_sa_dir(struct ix_sa_dir *dir) dir 554 drivers/crypto/ixp4xx_crypto.c memset(dir->npe_ctx, 0, NPE_CTX_LEN); dir 555 drivers/crypto/ixp4xx_crypto.c dma_pool_free(ctx_pool, dir->npe_ctx, dir->npe_ctx_phys); dir 661 drivers/crypto/ixp4xx_crypto.c struct ix_sa_dir *dir; dir 665 drivers/crypto/ixp4xx_crypto.c dir = encrypt ? &ctx->encrypt : &ctx->decrypt; dir 666 drivers/crypto/ixp4xx_crypto.c cinfo = dir->npe_ctx + dir->npe_ctx_idx; dir 681 drivers/crypto/ixp4xx_crypto.c itarget = dir->npe_ctx_phys + dir->npe_ctx_idx dir 684 drivers/crypto/ixp4xx_crypto.c init_len = cinfo - (dir->npe_ctx + dir->npe_ctx_idx); dir 685 drivers/crypto/ixp4xx_crypto.c npe_ctx_addr = dir->npe_ctx_phys + dir->npe_ctx_idx; dir 687 drivers/crypto/ixp4xx_crypto.c dir->npe_ctx_idx += init_len; dir 688 drivers/crypto/ixp4xx_crypto.c dir->npe_mode |= NPE_OP_HASH_ENABLE; dir 691 drivers/crypto/ixp4xx_crypto.c dir->npe_mode |= NPE_OP_HASH_VERIFY; dir 705 drivers/crypto/ixp4xx_crypto.c struct ix_sa_dir *dir = &ctx->decrypt; dir 711 drivers/crypto/ixp4xx_crypto.c *(u32*)dir->npe_ctx |= cpu_to_be32(CIPH_ENCR); dir 717 drivers/crypto/ixp4xx_crypto.c crypt->crypto_ctx = dir->npe_ctx_phys; dir 718 drivers/crypto/ixp4xx_crypto.c crypt->icv_rev_aes = dir->npe_ctx_phys + sizeof(u32); dir 720 drivers/crypto/ixp4xx_crypto.c crypt->init_len = dir->npe_ctx_idx; dir 735 drivers/crypto/ixp4xx_crypto.c struct ix_sa_dir *dir; dir 739 drivers/crypto/ixp4xx_crypto.c dir = encrypt ? &ctx->encrypt : &ctx->decrypt; dir 740 drivers/crypto/ixp4xx_crypto.c cinfo = dir->npe_ctx; dir 744 drivers/crypto/ixp4xx_crypto.c dir->npe_mode |= NPE_OP_CRYPT_ENCRYPT; dir 772 drivers/crypto/ixp4xx_crypto.c dir->npe_ctx_idx = sizeof(cipher_cfg) + key_len; dir 773 drivers/crypto/ixp4xx_crypto.c dir->npe_mode |= NPE_OP_CRYPT_ENABLE; dir 783 drivers/crypto/ixp4xx_crypto.c enum dma_data_direction dir) dir 798 drivers/crypto/ixp4xx_crypto.c sg_dma_address(sg) = dma_map_single(dev, ptr, len, dir); dir 805 drivers/crypto/ixp4xx_crypto.c buf->dir = dir; dir 876 drivers/crypto/ixp4xx_crypto.c struct ix_sa_dir *dir; dir 891 drivers/crypto/ixp4xx_crypto.c dir = encrypt ? &ctx->encrypt : &ctx->decrypt; dir 898 drivers/crypto/ixp4xx_crypto.c crypt->crypto_ctx = dir->npe_ctx_phys; dir 899 drivers/crypto/ixp4xx_crypto.c crypt->mode = dir->npe_mode; dir 900 drivers/crypto/ixp4xx_crypto.c crypt->init_len = dir->npe_ctx_idx; dir 983 drivers/crypto/ixp4xx_crypto.c struct ix_sa_dir *dir; dir 1000 drivers/crypto/ixp4xx_crypto.c dir = &ctx->encrypt; dir 1003 drivers/crypto/ixp4xx_crypto.c dir = &ctx->decrypt; dir 1013 drivers/crypto/ixp4xx_crypto.c crypt->crypto_ctx = dir->npe_ctx_phys; dir 1014 drivers/crypto/ixp4xx_crypto.c crypt->mode = dir->npe_mode; dir 1015 drivers/crypto/ixp4xx_crypto.c crypt->init_len = dir->npe_ctx_idx; dir 328 drivers/crypto/marvell/cesa.h enum dma_data_direction dir; dir 787 drivers/crypto/marvell/cesa.h enum dma_data_direction dir) dir 792 drivers/crypto/marvell/cesa.h iter->dir = dir; dir 325 drivers/crypto/marvell/tdma.c u32 flags = sgiter->dir == DMA_TO_DEVICE ? dir 334 drivers/crypto/marvell/tdma.c if (sgiter->dir == DMA_TO_DEVICE) { dir 276 drivers/crypto/picoxcell_crypto.c enum dma_data_direction dir, dir 290 drivers/crypto/picoxcell_crypto.c mapped_ents = dma_map_sg(engine->dev, payload, nents, dir); dir 306 drivers/crypto/picoxcell_crypto.c dma_unmap_sg(engine->dev, payload, nents, dir); dir 444 drivers/crypto/picoxcell_crypto.c unsigned nbytes, enum dma_data_direction dir) dir 453 drivers/crypto/picoxcell_crypto.c dma_unmap_sg(req->engine->dev, payload, nents, dir); dir 254 drivers/crypto/qat/qat_common/icp_qat_hw.h #define ICP_QAT_HW_CIPHER_CONFIG_BUILD(mode, algo, convert, dir) \ dir 258 drivers/crypto/qat/qat_common/icp_qat_hw.h ((dir & QAT_CIPHER_DIR_MASK) << QAT_CIPHER_DIR_BITPOS)) dir 73 drivers/crypto/qce/common.h #define IS_ENCRYPT(dir) (dir & QCE_ENCRYPT) dir 74 drivers/crypto/qce/common.h #define IS_DECRYPT(dir) (dir & QCE_DECRYPT) dir 76 drivers/crypto/qce/dma.c enum dma_transfer_direction dir, dir 85 drivers/crypto/qce/dma.c desc = dmaengine_prep_slave_sg(chan, sg, nents, dir, flags); dir 97 drivers/crypto/talitos.c enum dma_data_direction dir, dir 100 drivers/crypto/talitos.c dma_addr_t dma_addr = dma_map_single_attrs(dev, data, len, dir, attrs); dir 110 drivers/crypto/talitos.c enum dma_data_direction dir) dir 112 drivers/crypto/talitos.c __map_single_talitos_ptr(dev, ptr, len, data, dir, 0); dir 118 drivers/crypto/talitos.c enum dma_data_direction dir) dir 120 drivers/crypto/talitos.c __map_single_talitos_ptr(dev, ptr, len, data, dir, dir 129 drivers/crypto/talitos.c enum dma_data_direction dir) dir 135 drivers/crypto/talitos.c from_talitos_ptr_len(ptr, is_sec1), dir); dir 717 drivers/dma-buf/dma-buf.c dmabuf->ops->unmap_dma_buf(attach, attach->sgt, attach->dir); dir 759 drivers/dma-buf/dma-buf.c if (attach->dir != direction && dir 760 drivers/dma-buf/dma-buf.c attach->dir != DMA_BIDIRECTIONAL) dir 772 drivers/dma-buf/dma-buf.c attach->dir = direction; dir 386 drivers/dma/altera-msgdma.c unsigned int sg_len, enum dma_transfer_direction dir, dir 423 drivers/dma/altera-msgdma.c if (dir == DMA_MEM_TO_DEV) { dir 950 drivers/dma/at_xdmac.c if (!xt || !xt->numf || (xt->dir != DMA_MEM_TO_MEM)) dir 90 drivers/dma/bcm2835-dma.c enum dma_transfer_direction dir; dir 324 drivers/dma/bcm2835-dma.c d->dir = direction; dir 550 drivers/dma/bcm2835-dma.c if (d->dir == DMA_DEV_TO_MEM) dir 585 drivers/dma/bcm2835-dma.c if (d->dir == DMA_MEM_TO_DEV) dir 587 drivers/dma/bcm2835-dma.c else if (d->dir == DMA_DEV_TO_MEM) dir 1274 drivers/dma/coh901318.c enum dma_transfer_direction dir; dir 2381 drivers/dma/coh901318.c cohd->dir = direction; dir 117 drivers/dma/coh901318.h enum dma_transfer_direction dir); dir 139 drivers/dma/coh901318.h enum dma_transfer_direction dir, u32 ctrl_irq_mask); dir 179 drivers/dma/coh901318_lli.c enum dma_transfer_direction dir) dir 186 drivers/dma/coh901318_lli.c if (dir == DMA_MEM_TO_DEV) { dir 190 drivers/dma/coh901318_lli.c } else if (dir == DMA_DEV_TO_MEM) { dir 217 drivers/dma/coh901318_lli.c if (dir == DMA_MEM_TO_DEV) dir 219 drivers/dma/coh901318_lli.c else if (dir == DMA_DEV_TO_MEM) dir 236 drivers/dma/coh901318_lli.c enum dma_transfer_direction dir, u32 ctrl_irq_mask) dir 251 drivers/dma/coh901318_lli.c if (dir == DMA_MEM_TO_DEV) dir 253 drivers/dma/coh901318_lli.c else if (dir == DMA_DEV_TO_MEM) dir 271 drivers/dma/coh901318_lli.c if (dir == DMA_MEM_TO_DEV) dir 295 drivers/dma/coh901318_lli.c if (dir == DMA_DEV_TO_MEM) dir 612 drivers/dma/dma-axi-dmac.c if (xt->dir != chan->direction) dir 334 drivers/dma/dw-edma/dw-edma-core.c if ((direction == DMA_MEM_TO_DEV && chan->dir == EDMA_DIR_WRITE) || dir 335 drivers/dma/dw-edma/dw-edma-core.c (direction == DMA_DEV_TO_MEM && chan->dir == EDMA_DIR_READ)) dir 674 drivers/dma/dw-edma/dw-edma-core.c chan->dir = write ? EDMA_DIR_WRITE : EDMA_DIR_READ; dir 83 drivers/dma/dw-edma/dw-edma-core.h enum dw_edma_dir dir; dir 37 drivers/dma/dw-edma/dw-edma-v0-core.c #define SET_RW(dw, dir, name, value) \ dir 39 drivers/dma/dw-edma/dw-edma-v0-core.c if ((dir) == EDMA_DIR_WRITE) \ dir 45 drivers/dma/dw-edma/dw-edma-v0-core.c #define GET_RW(dw, dir, name) \ dir 46 drivers/dma/dw-edma/dw-edma-v0-core.c ((dir) == EDMA_DIR_WRITE \ dir 57 drivers/dma/dw-edma/dw-edma-v0-core.c __dw_ch_regs(struct dw_edma *dw, enum dw_edma_dir dir, u16 ch) dir 62 drivers/dma/dw-edma/dw-edma-v0-core.c if (dir == EDMA_DIR_WRITE) dir 68 drivers/dma/dw-edma/dw-edma-v0-core.c static inline void writel_ch(struct dw_edma *dw, enum dw_edma_dir dir, u16 ch, dir 78 drivers/dma/dw-edma/dw-edma-v0-core.c if (dir == EDMA_DIR_READ) dir 91 drivers/dma/dw-edma/dw-edma-v0-core.c static inline u32 readl_ch(struct dw_edma *dw, enum dw_edma_dir dir, u16 ch, dir 103 drivers/dma/dw-edma/dw-edma-v0-core.c if (dir == EDMA_DIR_READ) dir 118 drivers/dma/dw-edma/dw-edma-v0-core.c #define SET_CH(dw, dir, ch, name, value) \ dir 119 drivers/dma/dw-edma/dw-edma-v0-core.c writel_ch(dw, dir, ch, value, &(__dw_ch_regs(dw, dir, ch)->name)) dir 121 drivers/dma/dw-edma/dw-edma-v0-core.c #define GET_CH(dw, dir, ch, name) \ dir 122 drivers/dma/dw-edma/dw-edma-v0-core.c readl_ch(dw, dir, ch, &(__dw_ch_regs(dw, dir, ch)->name)) dir 135 drivers/dma/dw-edma/dw-edma-v0-core.c u16 dw_edma_v0_core_ch_count(struct dw_edma *dw, enum dw_edma_dir dir) dir 139 drivers/dma/dw-edma/dw-edma-v0-core.c if (dir == EDMA_DIR_WRITE) dir 156 drivers/dma/dw-edma/dw-edma-v0-core.c GET_CH(dw, chan->dir, chan->id, ch_control1)); dir 170 drivers/dma/dw-edma/dw-edma-v0-core.c SET_RW(dw, chan->dir, int_clear, dir 178 drivers/dma/dw-edma/dw-edma-v0-core.c SET_RW(dw, chan->dir, int_clear, dir 182 drivers/dma/dw-edma/dw-edma-v0-core.c u32 dw_edma_v0_core_status_done_int(struct dw_edma *dw, enum dw_edma_dir dir) dir 184 drivers/dma/dw-edma/dw-edma-v0-core.c return FIELD_GET(EDMA_V0_DONE_INT_MASK, GET_RW(dw, dir, int_status)); dir 187 drivers/dma/dw-edma/dw-edma-v0-core.c u32 dw_edma_v0_core_status_abort_int(struct dw_edma *dw, enum dw_edma_dir dir) dir 189 drivers/dma/dw-edma/dw-edma-v0-core.c return FIELD_GET(EDMA_V0_ABORT_INT_MASK, GET_RW(dw, dir, int_status)); dir 246 drivers/dma/dw-edma/dw-edma-v0-core.c SET_RW(dw, chan->dir, engine_en, BIT(0)); dir 248 drivers/dma/dw-edma/dw-edma-v0-core.c tmp = GET_RW(dw, chan->dir, int_mask); dir 251 drivers/dma/dw-edma/dw-edma-v0-core.c SET_RW(dw, chan->dir, int_mask, tmp); dir 253 drivers/dma/dw-edma/dw-edma-v0-core.c tmp = GET_RW(dw, chan->dir, linked_list_err_en); dir 255 drivers/dma/dw-edma/dw-edma-v0-core.c SET_RW(dw, chan->dir, linked_list_err_en, tmp); dir 257 drivers/dma/dw-edma/dw-edma-v0-core.c SET_CH(dw, chan->dir, chan->id, ch_control1, dir 260 drivers/dma/dw-edma/dw-edma-v0-core.c SET_CH(dw, chan->dir, chan->id, llp_low, dir 262 drivers/dma/dw-edma/dw-edma-v0-core.c SET_CH(dw, chan->dir, chan->id, llp_high, dir 266 drivers/dma/dw-edma/dw-edma-v0-core.c SET_RW(dw, chan->dir, doorbell, dir 276 drivers/dma/dw-edma/dw-edma-v0-core.c SET_RW(dw, chan->dir, done_imwr_low, chan->msi.address_lo); dir 277 drivers/dma/dw-edma/dw-edma-v0-core.c SET_RW(dw, chan->dir, done_imwr_high, chan->msi.address_hi); dir 279 drivers/dma/dw-edma/dw-edma-v0-core.c SET_RW(dw, chan->dir, abort_imwr_low, chan->msi.address_lo); dir 280 drivers/dma/dw-edma/dw-edma-v0-core.c SET_RW(dw, chan->dir, abort_imwr_high, chan->msi.address_hi); dir 285 drivers/dma/dw-edma/dw-edma-v0-core.c tmp = GET_RW(dw, chan->dir, ch01_imwr_data); dir 290 drivers/dma/dw-edma/dw-edma-v0-core.c tmp = GET_RW(dw, chan->dir, ch23_imwr_data); dir 295 drivers/dma/dw-edma/dw-edma-v0-core.c tmp = GET_RW(dw, chan->dir, ch45_imwr_data); dir 300 drivers/dma/dw-edma/dw-edma-v0-core.c tmp = GET_RW(dw, chan->dir, ch67_imwr_data); dir 319 drivers/dma/dw-edma/dw-edma-v0-core.c SET_RW(dw, chan->dir, ch01_imwr_data, tmp); dir 324 drivers/dma/dw-edma/dw-edma-v0-core.c SET_RW(dw, chan->dir, ch23_imwr_data, tmp); dir 329 drivers/dma/dw-edma/dw-edma-v0-core.c SET_RW(dw, chan->dir, ch45_imwr_data, tmp); dir 334 drivers/dma/dw-edma/dw-edma-v0-core.c SET_RW(dw, chan->dir, ch67_imwr_data, tmp); dir 16 drivers/dma/dw-edma/dw-edma-v0-core.h u16 dw_edma_v0_core_ch_count(struct dw_edma *chan, enum dw_edma_dir dir); dir 20 drivers/dma/dw-edma/dw-edma-v0-core.h u32 dw_edma_v0_core_status_done_int(struct dw_edma *chan, enum dw_edma_dir dir); dir 21 drivers/dma/dw-edma/dw-edma-v0-core.h u32 dw_edma_v0_core_status_abort_int(struct dw_edma *chan, enum dw_edma_dir dir); dir 98 drivers/dma/dw-edma/dw-edma-v0-debugfs.c int nr_entries, struct dentry *dir) dir 103 drivers/dma/dw-edma/dw-edma-v0-debugfs.c if (!debugfs_create_file_unsafe(entries[i].name, 0444, dir, dir 110 drivers/dma/dw-edma/dw-edma-v0-debugfs.c struct dentry *dir) dir 126 drivers/dma/dw-edma/dw-edma-v0-debugfs.c dw_edma_debugfs_create_x32(debugfs_regs, nr_entries, dir); dir 129 drivers/dma/dw-edma/dw-edma-v0-debugfs.c static void dw_edma_debugfs_regs_wr(struct dentry *dir) dir 170 drivers/dma/dw-edma/dw-edma-v0-debugfs.c regs_dir = debugfs_create_dir(WRITE_STR, dir); dir 197 drivers/dma/dw-edma/dw-edma-v0-debugfs.c static void dw_edma_debugfs_regs_rd(struct dentry *dir) dir 239 drivers/dma/dw-edma/dw-edma-v0-debugfs.c regs_dir = debugfs_create_dir(READ_STR, dir); dir 109 drivers/dma/ep93xx_dma.c enum dma_transfer_direction dir, dir 1034 drivers/dma/ep93xx_dma.c unsigned int sg_len, enum dma_transfer_direction dir, dir 1042 drivers/dma/ep93xx_dma.c if (!edmac->edma->m2m && dir != ep93xx_dma_chan_direction(chan)) { dir 1054 drivers/dma/ep93xx_dma.c ep93xx_dma_slave_config_write(chan, dir, &edmac->slave_config); dir 1072 drivers/dma/ep93xx_dma.c if (dir == DMA_MEM_TO_DEV) { dir 1117 drivers/dma/ep93xx_dma.c enum dma_transfer_direction dir, unsigned long flags) dir 1123 drivers/dma/ep93xx_dma.c if (!edmac->edma->m2m && dir != ep93xx_dma_chan_direction(chan)) { dir 1141 drivers/dma/ep93xx_dma.c ep93xx_dma_slave_config_write(chan, dir, &edmac->slave_config); dir 1152 drivers/dma/ep93xx_dma.c if (dir == DMA_MEM_TO_DEV) { dir 1241 drivers/dma/ep93xx_dma.c enum dma_transfer_direction dir, dir 1252 drivers/dma/ep93xx_dma.c switch (dir) { dir 215 drivers/dma/fsl-edma-common.c enum dma_transfer_direction dir) dir 222 drivers/dma/fsl-edma-common.c switch (dir) { dir 271 drivers/dma/fsl-edma-common.c enum dma_transfer_direction dir = edesc->dirn; dir 284 drivers/dma/fsl-edma-common.c if (dir == DMA_MEM_TO_DEV) dir 293 drivers/dma/fsl-edma-common.c if (dir == DMA_MEM_TO_DEV) dir 207 drivers/dma/img-mdc-dma.c enum dma_transfer_direction dir, dir 235 drivers/dma/img-mdc-dma.c if (dir == DMA_MEM_TO_DEV) { dir 242 drivers/dma/img-mdc-dma.c } else if (dir == DMA_DEV_TO_MEM) { dir 341 drivers/dma/img-mdc-dma.c enum dma_transfer_direction dir) dir 345 drivers/dma/img-mdc-dma.c if (dir == DMA_MEM_TO_DEV) dir 368 drivers/dma/img-mdc-dma.c size_t period_len, enum dma_transfer_direction dir, dir 380 drivers/dma/img-mdc-dma.c if (!is_slave_direction(dir)) dir 383 drivers/dma/img-mdc-dma.c if (mdc_check_slave_width(mchan, dir) < 0) dir 417 drivers/dma/img-mdc-dma.c if (dir == DMA_MEM_TO_DEV) { dir 418 drivers/dma/img-mdc-dma.c mdc_list_desc_config(mchan, curr, dir, dir 423 drivers/dma/img-mdc-dma.c mdc_list_desc_config(mchan, curr, dir, dir 449 drivers/dma/img-mdc-dma.c unsigned int sg_len, enum dma_transfer_direction dir, dir 463 drivers/dma/img-mdc-dma.c if (!is_slave_direction(dir)) dir 466 drivers/dma/img-mdc-dma.c if (mdc_check_slave_width(mchan, dir) < 0) dir 497 drivers/dma/img-mdc-dma.c if (dir == DMA_MEM_TO_DEV) { dir 498 drivers/dma/img-mdc-dma.c mdc_list_desc_config(mchan, curr, dir, buf, dir 502 drivers/dma/img-mdc-dma.c mdc_list_desc_config(mchan, curr, dir, dir 974 drivers/dma/imx-dma.c if (xt->frame_size != 1 || xt->numf <= 0 || xt->dir != DMA_MEM_TO_MEM) dir 126 drivers/dma/k3dma.c enum dma_transfer_direction dir, dir 534 drivers/dma/k3dma.c enum dma_transfer_direction dir, unsigned long flags, void *context) dir 558 drivers/dma/k3dma.c k3_dma_config_write(chan, dir, &c->slave_config); dir 568 drivers/dma/k3dma.c if (dir == DMA_MEM_TO_DEV) { dir 571 drivers/dma/k3dma.c } else if (dir == DMA_DEV_TO_MEM) { dir 591 drivers/dma/k3dma.c enum dma_transfer_direction dir, dir 604 drivers/dma/k3dma.c buf_len, period_len, (int)dir); dir 619 drivers/dma/k3dma.c k3_dma_config_write(chan, dir, &c->slave_config); dir 627 drivers/dma/k3dma.c if (dir == DMA_MEM_TO_DEV) { dir 630 drivers/dma/k3dma.c } else if (dir == DMA_DEV_TO_MEM) { dir 667 drivers/dma/k3dma.c enum dma_transfer_direction dir, dir 674 drivers/dma/k3dma.c if (dir == DMA_DEV_TO_MEM) { dir 679 drivers/dma/k3dma.c } else if (dir == DMA_MEM_TO_DEV) { dir 96 drivers/dma/mediatek/mtk-uart-apdma.c enum dma_transfer_direction dir; dir 260 drivers/dma/mediatek/mtk-uart-apdma.c if (c->dir == DMA_DEV_TO_MEM) dir 262 drivers/dma/mediatek/mtk-uart-apdma.c else if (c->dir == DMA_MEM_TO_DEV) dir 341 drivers/dma/mediatek/mtk-uart-apdma.c unsigned int sglen, enum dma_transfer_direction dir, dir 347 drivers/dma/mediatek/mtk-uart-apdma.c if (!is_slave_direction(dir) || sglen != 1) dir 357 drivers/dma/mediatek/mtk-uart-apdma.c c->dir = dir; dir 373 drivers/dma/mediatek/mtk-uart-apdma.c if (c->dir == DMA_DEV_TO_MEM) dir 375 drivers/dma/mediatek/mtk-uart-apdma.c else if (c->dir == DMA_MEM_TO_DEV) dir 424 drivers/dma/mediatek/mtk-uart-apdma.c if (c->dir == DMA_DEV_TO_MEM) dir 426 drivers/dma/mediatek/mtk-uart-apdma.c else if (c->dir == DMA_MEM_TO_DEV) dir 95 drivers/dma/mmp_pdma.c enum dma_transfer_direction dir; dir 462 drivers/dma/mmp_pdma.c if (!chan->dir) { dir 463 drivers/dma/mmp_pdma.c chan->dir = DMA_MEM_TO_MEM; dir 495 drivers/dma/mmp_pdma.c if (chan->dir == DMA_MEM_TO_DEV) { dir 497 drivers/dma/mmp_pdma.c } else if (chan->dir == DMA_DEV_TO_MEM) { dir 499 drivers/dma/mmp_pdma.c } else if (chan->dir == DMA_MEM_TO_MEM) { dir 527 drivers/dma/mmp_pdma.c unsigned int sg_len, enum dma_transfer_direction dir, dir 542 drivers/dma/mmp_pdma.c mmp_pdma_config_write(dchan, &chan->slave_config, dir); dir 561 drivers/dma/mmp_pdma.c if (dir == DMA_MEM_TO_DEV) { dir 594 drivers/dma/mmp_pdma.c chan->dir = dir; dir 642 drivers/dma/mmp_pdma.c chan->dir = direction; dir 668 drivers/dma/mmp_pdma.c if (chan->dir == DMA_MEM_TO_DEV) dir 729 drivers/dma/mmp_pdma.c chan->dir = direction; dir 784 drivers/dma/mmp_pdma.c if (chan->dir == DMA_DEV_TO_MEM) dir 792 drivers/dma/mmp_pdma.c if (chan->dir == DMA_DEV_TO_MEM) dir 110 drivers/dma/mmp_tdma.c enum dma_transfer_direction dir; dir 140 drivers/dma/mmp_tdma.c enum dma_transfer_direction dir, dir 210 drivers/dma/mmp_tdma.c if (tdmac->dir == DMA_MEM_TO_DEV) dir 212 drivers/dma/mmp_tdma.c else if (tdmac->dir == DMA_DEV_TO_MEM) dir 510 drivers/dma/mmp_tdma.c enum dma_transfer_direction dir, dir 515 drivers/dma/mmp_tdma.c if (dir == DMA_DEV_TO_MEM) { dir 524 drivers/dma/mmp_tdma.c tdmac->dir = dir; dir 271 drivers/dma/moxart-dma.c unsigned int sg_len, enum dma_transfer_direction dir, dir 282 drivers/dma/moxart-dma.c if (!is_slave_direction(dir)) { dir 288 drivers/dma/moxart-dma.c if (dir == DMA_DEV_TO_MEM) { dir 316 drivers/dma/moxart-dma.c d->dma_dir = dir; dir 362 drivers/dma/owl-dma.c u32 len, enum dma_transfer_direction dir, dir 371 drivers/dma/owl-dma.c switch (dir) { dir 878 drivers/dma/owl-dma.c enum dma_transfer_direction dir, dir 913 drivers/dma/owl-dma.c if (dir == DMA_MEM_TO_DEV) { dir 921 drivers/dma/owl-dma.c ret = owl_dma_cfg_lli(vchan, lli, src, dst, len, dir, sconfig, dir 943 drivers/dma/owl-dma.c enum dma_transfer_direction dir, dir 969 drivers/dma/owl-dma.c if (dir == DMA_MEM_TO_DEV) { dir 972 drivers/dma/owl-dma.c } else if (dir == DMA_DEV_TO_MEM) { dir 978 drivers/dma/owl-dma.c dir, sconfig, txd->cyclic); dir 93 drivers/dma/pch_dma.c enum dma_transfer_direction dir; dir 217 drivers/dma/pch_dma.c if (pd_chan->dir == DMA_MEM_TO_DEV) dir 235 drivers/dma/pch_dma.c if (pd_chan->dir == DMA_MEM_TO_DEV) dir 592 drivers/dma/pch_dma.c pd_chan->dir = direction; dir 448 drivers/dma/pl330.c enum dma_data_direction dir; dir 2179 drivers/dma/pl330.c pl330_dma_slave_map_dir(enum dma_transfer_direction dir) dir 2181 drivers/dma/pl330.c switch (dir) { dir 2195 drivers/dma/pl330.c if (pch->dir != DMA_NONE) dir 2197 drivers/dma/pl330.c 1 << pch->burst_sz, pch->dir, 0); dir 2198 drivers/dma/pl330.c pch->dir = DMA_NONE; dir 2203 drivers/dma/pl330.c enum dma_transfer_direction dir) dir 2206 drivers/dma/pl330.c enum dma_data_direction dma_dir = pl330_dma_slave_map_dir(dir); dir 2209 drivers/dma/pl330.c if (pch->dir == dma_dir) dir 2218 drivers/dma/pl330.c pch->dir = dma_dir; dir 3110 drivers/dma/pl330.c pch->dir = DMA_NONE; dir 867 drivers/dma/pxa_dma.c enum dma_transfer_direction dir, dir 875 drivers/dma/pxa_dma.c if (dir == DMA_DEV_TO_MEM) { dir 884 drivers/dma/pxa_dma.c if (dir == DMA_MEM_TO_DEV) { dir 893 drivers/dma/pxa_dma.c if (dir == DMA_MEM_TO_MEM) dir 899 drivers/dma/pxa_dma.c __func__, dev_addr, maxburst, width, dir); dir 972 drivers/dma/pxa_dma.c unsigned int sg_len, enum dma_transfer_direction dir, dir 986 drivers/dma/pxa_dma.c pxad_get_config(chan, dir, &dcmd, &dsadr, &dtadr); dir 988 drivers/dma/pxa_dma.c "%s(): dir=%d flags=%lx\n", __func__, dir, flags); dir 1023 drivers/dma/pxa_dma.c enum dma_transfer_direction dir, unsigned long flags) dir 1034 drivers/dma/pxa_dma.c if ((dir != DMA_DEV_TO_MEM) && (dir != DMA_MEM_TO_DEV)) { dir 1044 drivers/dma/pxa_dma.c pxad_get_config(chan, dir, &dcmd, &dsadr, &dtadr); dir 1048 drivers/dma/pxa_dma.c __func__, (unsigned long)buf_addr, len, period_len, dir, flags); dir 75 drivers/dma/qcom/bam_dma.c enum dma_transfer_direction dir; dir 450 drivers/dma/qcom/bam_dma.c enum dma_transfer_direction dir) dir 481 drivers/dma/qcom/bam_dma.c if (dir == DMA_DEV_TO_MEM) dir 644 drivers/dma/qcom/bam_dma.c async_desc->dir = direction; dir 713 drivers/dma/qcom/bam_dma.c bam_chan_init_hw(bchan, async_desc->dir); dir 956 drivers/dma/qcom/bam_dma.c enum dma_transfer_direction dir) dir 962 drivers/dma/qcom/bam_dma.c if (dir == DMA_DEV_TO_MEM) dir 1006 drivers/dma/qcom/bam_dma.c bam_chan_init_hw(bchan, async_desc->dir); dir 1010 drivers/dma/qcom/bam_dma.c bam_apply_new_config(bchan, async_desc->dir); dir 145 drivers/dma/qcom/hidma_dbg.c struct dentry *dir; dir 156 drivers/dma/qcom/hidma_dbg.c dir = debugfs_create_dir(chan->dbg_name, dir 158 drivers/dma/qcom/hidma_dbg.c debugfs_create_file("stats", S_IRUGO, dir, chan, dir 524 drivers/dma/sa11x0-dma.c enum dma_transfer_direction dir, unsigned long flags, void *context) dir 533 drivers/dma/sa11x0-dma.c if (dir != (c->ddar & DDAR_RW ? DMA_DEV_TO_MEM : DMA_MEM_TO_DEV)) { dir 535 drivers/dma/sa11x0-dma.c &c->vc, c->ddar, dir); dir 606 drivers/dma/sa11x0-dma.c enum dma_transfer_direction dir, unsigned long flags) dir 613 drivers/dma/sa11x0-dma.c if (dir != (c->ddar & DDAR_RW ? DMA_DEV_TO_MEM : DMA_MEM_TO_DEV)) { dir 615 drivers/dma/sa11x0-dma.c &c->vc, c->ddar, dir); dir 136 drivers/dma/sh/rcar-dmac.c enum dma_data_direction dir; dir 896 drivers/dma/sh/rcar-dmac.c enum dma_transfer_direction dir, unsigned long dma_flags, dir 920 drivers/dma/sh/rcar-dmac.c desc->direction = dir; dir 970 drivers/dma/sh/rcar-dmac.c if (dir == DMA_DEV_TO_MEM) { dir 986 drivers/dma/sh/rcar-dmac.c if (dir == DMA_MEM_TO_MEM) dir 1085 drivers/dma/sh/rcar-dmac.c map->slave.xfer_size, map->dir, 0); dir 1113 drivers/dma/sh/rcar-dmac.c enum dma_transfer_direction dir) dir 1121 drivers/dma/sh/rcar-dmac.c if (dir == DMA_DEV_TO_MEM) { dir 1134 drivers/dma/sh/rcar-dmac.c dev_dir == map->dir) dir 1140 drivers/dma/sh/rcar-dmac.c map->slave.xfer_size, map->dir, 0); dir 1160 drivers/dma/sh/rcar-dmac.c map->dir = dev_dir; dir 1167 drivers/dma/sh/rcar-dmac.c unsigned int sg_len, enum dma_transfer_direction dir, dir 1180 drivers/dma/sh/rcar-dmac.c if (rcar_dmac_map_slave_addr(chan, dir)) dir 1184 drivers/dma/sh/rcar-dmac.c dir, flags, false); dir 1192 drivers/dma/sh/rcar-dmac.c enum dma_transfer_direction dir, unsigned long flags) dir 1208 drivers/dma/sh/rcar-dmac.c if (rcar_dmac_map_slave_addr(chan, dir)) dir 1239 drivers/dma/sh/rcar-dmac.c dir, flags, true); dir 417 drivers/dma/sh/usb-dmac.c unsigned int sg_len, enum dma_transfer_direction dir, dir 435 drivers/dma/sh/usb-dmac.c desc->direction = dir; dir 90 drivers/dma/sirf-dma.c int dir; dir 167 drivers/dma/sirf-dma.c writel_relaxed((sdesc->dir << SIRFSOC_DMA_DIR_CTRL_BIT_ATLAS7) | dir 179 drivers/dma/sirf-dma.c writel_relaxed((sdesc->dir << SIRFSOC_DMA_DIR_CTRL_BIT_ATLAS7) | dir 200 drivers/dma/sirf-dma.c (sdesc->dir << SIRFSOC_DMA_DIR_CTRL_BIT), dir 220 drivers/dma/sirf-dma.c (sdesc->dir << SIRFSOC_DMA_DIR_CTRL_BIT), dir 698 drivers/dma/sirf-dma.c if ((xt->dir != DMA_MEM_TO_DEV) && (xt->dir != DMA_DEV_TO_MEM)) { dir 732 drivers/dma/sirf-dma.c if (xt->dir == DMA_MEM_TO_DEV) { dir 734 drivers/dma/sirf-dma.c sdesc->dir = 1; dir 737 drivers/dma/sirf-dma.c sdesc->dir = 0; dir 187 drivers/dma/sprd-dma.c enum dma_transfer_direction dir; dir 665 drivers/dma/sprd-dma.c if (sdesc->dir == DMA_DEV_TO_MEM) dir 721 drivers/dma/sprd-dma.c enum dma_transfer_direction dir, dir 734 drivers/dma/sprd-dma.c if (dir == DMA_MEM_TO_DEV) { dir 847 drivers/dma/sprd-dma.c enum dma_transfer_direction dir, dir 861 drivers/dma/sprd-dma.c dir, flags, slave_cfg); dir 921 drivers/dma/sprd-dma.c unsigned int sglen, enum dma_transfer_direction dir, dir 933 drivers/dma/sprd-dma.c if (!is_slave_direction(dir)) dir 961 drivers/dma/sprd-dma.c sdesc->dir = dir; dir 966 drivers/dma/sprd-dma.c if (dir == DMA_MEM_TO_DEV) { dir 988 drivers/dma/sprd-dma.c dir, flags, slave_cfg); dir 996 drivers/dma/sprd-dma.c start_dst, len, dir, flags, slave_cfg); dir 402 drivers/dma/st_fdma.c fchan->cfg.dir = direction; dir 112 drivers/dma/st_fdma.h enum dma_transfer_direction dir; dir 84 drivers/dma/ste_dma40.c .dir = DMA_MEM_TO_MEM, dir 98 drivers/dma/ste_dma40.c .dir = DMA_MEM_TO_MEM, dir 858 drivers/dma/ste_dma40.c chan->dma_cfg.dir == DMA_DEV_TO_MEM)) dir 1244 drivers/dma/ste_dma40.c if ((d40c->dma_cfg.dir == DMA_DEV_TO_MEM) || dir 1245 drivers/dma/ste_dma40.c (d40c->dma_cfg.dir == DMA_DEV_TO_DEV)) dir 1249 drivers/dma/ste_dma40.c if (d40c->dma_cfg.dir != DMA_DEV_TO_MEM) dir 1708 drivers/dma/ste_dma40.c if (!conf->dir) { dir 1720 drivers/dma/ste_dma40.c if (conf->dir == DMA_DEV_TO_DEV) { dir 1848 drivers/dma/ste_dma40.c if (d40c->dma_cfg.dir == DMA_DEV_TO_MEM) { dir 1851 drivers/dma/ste_dma40.c } else if (d40c->dma_cfg.dir == DMA_MEM_TO_DEV || dir 1852 drivers/dma/ste_dma40.c d40c->dma_cfg.dir == DMA_MEM_TO_MEM) { dir 1863 drivers/dma/ste_dma40.c if (d40c->dma_cfg.dir == DMA_MEM_TO_MEM) { dir 2011 drivers/dma/ste_dma40.c if (d40c->dma_cfg.dir == DMA_MEM_TO_DEV || dir 2012 drivers/dma/ste_dma40.c d40c->dma_cfg.dir == DMA_MEM_TO_MEM) dir 2014 drivers/dma/ste_dma40.c else if (d40c->dma_cfg.dir == DMA_DEV_TO_MEM) dir 2074 drivers/dma/ste_dma40.c if (d40c->dma_cfg.dir == DMA_MEM_TO_DEV || dir 2075 drivers/dma/ste_dma40.c d40c->dma_cfg.dir == DMA_MEM_TO_MEM) { dir 2077 drivers/dma/ste_dma40.c } else if (d40c->dma_cfg.dir == DMA_DEV_TO_MEM) { dir 2331 drivers/dma/ste_dma40.c if ((d40c->dma_cfg.dir == DMA_DEV_TO_MEM) || dir 2332 drivers/dma/ste_dma40.c (d40c->dma_cfg.dir == DMA_DEV_TO_DEV)) dir 2335 drivers/dma/ste_dma40.c if ((d40c->dma_cfg.dir == DMA_MEM_TO_DEV) || dir 2336 drivers/dma/ste_dma40.c (d40c->dma_cfg.dir == DMA_DEV_TO_DEV)) dir 2368 drivers/dma/ste_dma40.c cfg.dir = DMA_MEM_TO_DEV; dir 2372 drivers/dma/ste_dma40.c cfg.dir = DMA_DEV_TO_MEM; dir 2421 drivers/dma/ste_dma40.c if (d40c->dma_cfg.dir == DMA_DEV_TO_MEM) dir 2680 drivers/dma/ste_dma40.c if (cfg->dir != DMA_DEV_TO_MEM) dir 2684 drivers/dma/ste_dma40.c cfg->dir); dir 2685 drivers/dma/ste_dma40.c cfg->dir = DMA_DEV_TO_MEM; dir 2696 drivers/dma/ste_dma40.c if (cfg->dir != DMA_MEM_TO_DEV) dir 2700 drivers/dma/ste_dma40.c cfg->dir); dir 2701 drivers/dma/ste_dma40.c cfg->dir = DMA_MEM_TO_DEV; dir 33 drivers/dma/ste_dma40_ll.c if (cfg->dir == DMA_MEM_TO_DEV || dir 34 drivers/dma/ste_dma40_ll.c cfg->dir == DMA_MEM_TO_MEM) dir 38 drivers/dma/ste_dma40_ll.c if (cfg->dir == DMA_DEV_TO_MEM || dir 39 drivers/dma/ste_dma40_ll.c cfg->dir == DMA_MEM_TO_MEM) dir 43 drivers/dma/ste_dma40_ll.c if (cfg->dir == DMA_DEV_TO_MEM || dir 44 drivers/dma/ste_dma40_ll.c cfg->dir == DMA_DEV_TO_DEV) dir 48 drivers/dma/ste_dma40_ll.c if (cfg->dir == DMA_MEM_TO_DEV || dir 49 drivers/dma/ste_dma40_ll.c cfg->dir == DMA_DEV_TO_DEV) dir 72 drivers/dma/ste_dma40_ll.c if ((cfg->dir == DMA_DEV_TO_MEM) || dir 73 drivers/dma/ste_dma40_ll.c (cfg->dir == DMA_DEV_TO_DEV)) { dir 83 drivers/dma/ste_dma40_ll.c if ((cfg->dir == DMA_MEM_TO_DEV) || dir 84 drivers/dma/ste_dma40_ll.c (cfg->dir == DMA_DEV_TO_DEV)) { dir 691 drivers/dma/stm32-mdma.c enum dma_transfer_direction dir, u32 count, dir 662 drivers/dma/sun4i-dma.c size_t period_len, enum dma_transfer_direction dir, dir 673 drivers/dma/sun4i-dma.c if (!is_slave_direction(dir)) { dir 697 drivers/dma/sun4i-dma.c if (dir == DMA_MEM_TO_DEV) { dir 744 drivers/dma/sun4i-dma.c if (dir == DMA_MEM_TO_DEV) dir 751 drivers/dma/sun4i-dma.c plength, sconfig, dir); dir 768 drivers/dma/sun4i-dma.c unsigned int sg_len, enum dma_transfer_direction dir, dir 784 drivers/dma/sun4i-dma.c if (!is_slave_direction(dir)) { dir 803 drivers/dma/sun4i-dma.c if (dir == DMA_MEM_TO_DEV) dir 816 drivers/dma/sun4i-dma.c if (dir == DMA_MEM_TO_DEV) { dir 843 drivers/dma/sun4i-dma.c sconfig, dir); dir 684 drivers/dma/sun6i-dma.c unsigned int sg_len, enum dma_transfer_direction dir, dir 700 drivers/dma/sun6i-dma.c ret = set_config(sdev, sconfig, dir, &lli_cfg); dir 718 drivers/dma/sun6i-dma.c if (dir == DMA_MEM_TO_DEV) { dir 766 drivers/dma/sun6i-dma.c enum dma_transfer_direction dir, dir 779 drivers/dma/sun6i-dma.c ret = set_config(sdev, sconfig, dir, &lli_cfg); dir 799 drivers/dma/sun6i-dma.c if (dir == DMA_MEM_TO_DEV) { dir 586 drivers/dma/ti/cppi41.c enum dma_transfer_direction dir, unsigned long tx_flags, void *context) dir 92 drivers/dma/ti/omap-dma.c enum dma_transfer_direction dir; dir 245 drivers/dma/ti/omap-dma.c enum dma_transfer_direction dir, bool last) dir 262 drivers/dma/ti/omap-dma.c switch (dir) { dir 402 drivers/dma/ti/omap-dma.c if (d->dir == DMA_DEV_TO_MEM) dir 509 drivers/dma/ti/omap-dma.c if (d->dir == DMA_DEV_TO_MEM || d->dir == DMA_MEM_TO_MEM) { dir 556 drivers/dma/ti/omap-dma.c if (d->dir == DMA_DEV_TO_MEM || d->dir == DMA_MEM_TO_MEM) { dir 835 drivers/dma/ti/omap-dma.c if (d->dir == DMA_MEM_TO_DEV) dir 837 drivers/dma/ti/omap-dma.c else if (d->dir == DMA_DEV_TO_MEM || d->dir == DMA_MEM_TO_MEM) dir 887 drivers/dma/ti/omap-dma.c enum dma_transfer_direction dir, unsigned long tx_flags, void *context) dir 900 drivers/dma/ti/omap-dma.c if (dir == DMA_DEV_TO_MEM) { dir 905 drivers/dma/ti/omap-dma.c } else if (dir == DMA_MEM_TO_DEV) { dir 935 drivers/dma/ti/omap-dma.c d->dir = dir; dir 955 drivers/dma/ti/omap-dma.c if (dir == DMA_DEV_TO_MEM) { dir 996 drivers/dma/ti/omap-dma.c if (dir == DMA_DEV_TO_MEM) dir 1001 drivers/dma/ti/omap-dma.c if (dir == DMA_DEV_TO_MEM) dir 1045 drivers/dma/ti/omap-dma.c omap_dma_fill_type2_desc(d, i, dir, (i == sglen - 1)); dir 1069 drivers/dma/ti/omap-dma.c size_t period_len, enum dma_transfer_direction dir, unsigned long flags) dir 1079 drivers/dma/ti/omap-dma.c if (dir == DMA_DEV_TO_MEM) { dir 1083 drivers/dma/ti/omap-dma.c } else if (dir == DMA_MEM_TO_DEV) { dir 1112 drivers/dma/ti/omap-dma.c d->dir = dir; dir 1122 drivers/dma/ti/omap-dma.c if (dir == DMA_DEV_TO_MEM) dir 1136 drivers/dma/ti/omap-dma.c if (dir == DMA_DEV_TO_MEM) dir 1146 drivers/dma/ti/omap-dma.c if (dir == DMA_DEV_TO_MEM) { dir 1184 drivers/dma/ti/omap-dma.c d->dir = DMA_MEM_TO_MEM; dir 1225 drivers/dma/ti/omap-dma.c if (is_slave_direction(xt->dir)) dir 1240 drivers/dma/ti/omap-dma.c d->dir = DMA_MEM_TO_MEM; dir 1391 drivers/dma/ti/omap-dma.c else if (c->desc->dir == DMA_DEV_TO_MEM) dir 56 drivers/dma/uniphier-mdmac.c enum dma_transfer_direction dir; dir 116 drivers/dma/uniphier-mdmac.c if (md->dir == DMA_MEM_TO_DEV) { dir 247 drivers/dma/uniphier-mdmac.c md->dir = direction; dir 1645 drivers/dma/xilinx/xilinx_dma.c if (!is_slave_direction(xt->dir)) dir 1677 drivers/dma/xilinx/xilinx_dma.c if (xt->dir != DMA_MEM_TO_DEV) { dir 1989 drivers/dma/xilinx/xilinx_dma.c if (!is_slave_direction(xt->dir)) dir 2003 drivers/dma/xilinx/xilinx_dma.c chan->direction = xt->dir; dir 2015 drivers/dma/xilinx/xilinx_dma.c if (xt->dir != DMA_MEM_TO_DEV) dir 2039 drivers/dma/xilinx/xilinx_dma.c if (xt->dir == DMA_MEM_TO_DEV) { dir 459 drivers/dma/zx_dma.c static int zx_pre_config(struct zx_dma_chan *c, enum dma_transfer_direction dir) dir 466 drivers/dma/zx_dma.c switch (dir) { dir 547 drivers/dma/zx_dma.c enum dma_transfer_direction dir, unsigned long flags, void *context) dir 559 drivers/dma/zx_dma.c if (zx_pre_config(c, dir)) dir 582 drivers/dma/zx_dma.c if (dir == DMA_MEM_TO_DEV) { dir 585 drivers/dma/zx_dma.c } else if (dir == DMA_DEV_TO_MEM) { dir 605 drivers/dma/zx_dma.c size_t period_len, enum dma_transfer_direction dir, dir 619 drivers/dma/zx_dma.c if (zx_pre_config(c, dir)) dir 628 drivers/dma/zx_dma.c if (dir == DMA_MEM_TO_DEV) { dir 631 drivers/dma/zx_dma.c } else if (dir == DMA_DEV_TO_MEM) { dir 254 drivers/firewire/core-device.c const u32 *dir; dir 260 drivers/firewire/core-device.c dir = fw_unit(dev)->directory; dir 262 drivers/firewire/core-device.c dir = fw_device(dev)->config_rom + 5; dir 264 drivers/firewire/core-device.c fw_csr_iterator_init(&ci, dir); dir 285 drivers/firewire/core-device.c const u32 *dir; dir 293 drivers/firewire/core-device.c dir = fw_unit(dev)->directory; dir 295 drivers/firewire/core-device.c dir = fw_device(dev)->config_rom + 5; dir 304 drivers/firewire/core-device.c ret = fw_csr_string(dir, attr->key, buf, bufsize); dir 472 drivers/firewire/ohci.c char dir, int speed, u32 *header, int evt) dir 485 drivers/firewire/ohci.c dir, (header[2] >> 16) & 0xff); dir 505 drivers/firewire/ohci.c dir, evts[evt], tcodes[tcode]); dir 509 drivers/firewire/ohci.c dir, evts[evt], header[1], header[2]); dir 514 drivers/firewire/ohci.c dir, speed, header[0] >> 10 & 0x3f, dir 521 drivers/firewire/ohci.c dir, speed, header[0] >> 10 & 0x3f, dir 492 drivers/firmware/qemu_fw_cfg.c static int fw_cfg_build_symlink(struct kset *dir, dir 500 drivers/firmware/qemu_fw_cfg.c if (!dir || !target || !name || !*name) dir 513 drivers/firmware/qemu_fw_cfg.c ret = sysfs_create_link(&dir->kobj, target, tok); dir 518 drivers/firmware/qemu_fw_cfg.c ko = kset_find_obj(dir, tok); dir 524 drivers/firmware/qemu_fw_cfg.c if (ko->ktype != dir->kobj.ktype) { dir 530 drivers/firmware/qemu_fw_cfg.c dir = to_kset(ko); dir 538 drivers/firmware/qemu_fw_cfg.c subdir->kobj.kset = dir; dir 539 drivers/firmware/qemu_fw_cfg.c subdir->kobj.ktype = dir->kobj.ktype; dir 552 drivers/firmware/qemu_fw_cfg.c dir = subdir; dir 636 drivers/firmware/qemu_fw_cfg.c struct fw_cfg_file *dir; dir 647 drivers/firmware/qemu_fw_cfg.c dir = kmalloc(dir_size, GFP_KERNEL); dir 648 drivers/firmware/qemu_fw_cfg.c if (!dir) dir 651 drivers/firmware/qemu_fw_cfg.c ret = fw_cfg_read_blob(FW_CFG_FILE_DIR, dir, dir 657 drivers/firmware/qemu_fw_cfg.c ret = fw_cfg_register_file(&dir[i]); dir 663 drivers/firmware/qemu_fw_cfg.c kfree(dir); dir 37 drivers/gpio/gpio-adp5588.c uint8_t dir[3]; dir 74 drivers/gpio/gpio-adp5588.c if (dev->dir[bank] & bit) dir 113 drivers/gpio/gpio-adp5588.c dev->dir[bank] &= ~ADP5588_BIT(off); dir 114 drivers/gpio/gpio-adp5588.c ret = adp5588_gpio_write(dev->client, GPIO_DIR1 + bank, dev->dir[bank]); dir 131 drivers/gpio/gpio-adp5588.c dev->dir[bank] |= bit; dir 141 drivers/gpio/gpio-adp5588.c dev->dir[bank]); dir 174 drivers/gpio/gpio-adp5588.c dev->dir[i] &= ~dev->int_input_en[i]; dir 177 drivers/gpio/gpio-adp5588.c dev->dir[i]); dir 377 drivers/gpio/gpio-adp5588.c dev->dir[i] = adp5588_gpio_read(client, GPIO_DIR1 + i); dir 16 drivers/gpio/gpio-clps711x.c void __iomem *dat, *dir; dir 35 drivers/gpio/gpio-clps711x.c dir = devm_platform_ioremap_resource(pdev, 1); dir 36 drivers/gpio/gpio-clps711x.c if (IS_ERR(dir)) dir 37 drivers/gpio/gpio-clps711x.c return PTR_ERR(dir); dir 43 drivers/gpio/gpio-clps711x.c NULL, dir, 0); dir 47 drivers/gpio/gpio-clps711x.c dir, NULL, 0); dir 32 drivers/gpio/gpio-davinci.c u32 dir; dir 98 drivers/gpio/gpio-davinci.c temp = readl_relaxed(&g->dir); dir 105 drivers/gpio/gpio-davinci.c writel_relaxed(temp, &g->dir); dir 211 drivers/gpio/gpio-dln2.c int dir; dir 213 drivers/gpio/gpio-dln2.c dir = dln2_gpio_get_direction(chip, offset); dir 214 drivers/gpio/gpio-dln2.c if (dir < 0) dir 215 drivers/gpio/gpio-dln2.c return dir; dir 217 drivers/gpio/gpio-dln2.c if (dir == 1) dir 231 drivers/gpio/gpio-dln2.c unsigned dir) dir 236 drivers/gpio/gpio-dln2.c .value = dir, dir 245 drivers/gpio/gpio-dln2.c if (dir == DLN2_GPIO_DIRECTION_OUT) dir 71 drivers/gpio/gpio-dwapb.c u32 dir; dir 761 drivers/gpio/gpio-dwapb.c ctx->dir = dwapb_read(gpio, offset); dir 811 drivers/gpio/gpio-dwapb.c dwapb_write(gpio, offset, ctx->dir); dir 278 drivers/gpio/gpio-ep93xx.c int dir; dir 289 drivers/gpio/gpio-ep93xx.c .dir = _dir, \ dir 335 drivers/gpio/gpio-ep93xx.c void __iomem *dir = epg->base + bank->dir; dir 340 drivers/gpio/gpio-ep93xx.c err = bgpio_init(gc, dev, 1, data, NULL, NULL, dir, NULL, 0); dir 242 drivers/gpio/gpio-f7188x.c u8 dir; dir 249 drivers/gpio/gpio-f7188x.c dir = superio_inb(sio->addr, gpio_dir(bank->regbase)); dir 253 drivers/gpio/gpio-f7188x.c return !(dir & 1 << offset); dir 261 drivers/gpio/gpio-f7188x.c u8 dir; dir 268 drivers/gpio/gpio-f7188x.c dir = superio_inb(sio->addr, gpio_dir(bank->regbase)); dir 269 drivers/gpio/gpio-f7188x.c dir &= ~BIT(offset); dir 270 drivers/gpio/gpio-f7188x.c superio_outb(sio->addr, gpio_dir(bank->regbase), dir); dir 282 drivers/gpio/gpio-f7188x.c u8 dir, data; dir 289 drivers/gpio/gpio-f7188x.c dir = superio_inb(sio->addr, gpio_dir(bank->regbase)); dir 290 drivers/gpio/gpio-f7188x.c dir = !!(dir & BIT(offset)); dir 291 drivers/gpio/gpio-f7188x.c if (dir) dir 307 drivers/gpio/gpio-f7188x.c u8 dir, data_out; dir 321 drivers/gpio/gpio-f7188x.c dir = superio_inb(sio->addr, gpio_dir(bank->regbase)); dir 322 drivers/gpio/gpio-f7188x.c dir |= BIT(offset); dir 323 drivers/gpio/gpio-f7188x.c superio_outb(sio->addr, gpio_dir(bank->regbase), dir); dir 285 drivers/gpio/gpio-lpc18xx.c u32 port, pin, dir; dir 291 drivers/gpio/gpio-lpc18xx.c dir = readl(gc->base + LPC18XX_REG_DIR(port)); dir 293 drivers/gpio/gpio-lpc18xx.c dir |= BIT(pin); dir 295 drivers/gpio/gpio-lpc18xx.c dir &= ~BIT(pin); dir 296 drivers/gpio/gpio-lpc18xx.c writel(dir, gc->base + LPC18XX_REG_DIR(port)); dir 135 drivers/gpio/gpio-mmio.c bool dir = !!(gc->bgpio_dir & pinmask); dir 137 drivers/gpio/gpio-mmio.c if (dir) dir 48 drivers/gpio/gpio-mockup.c int dir; dir 155 drivers/gpio/gpio-mockup.c chip->lines[offset].dir = GPIO_MOCKUP_DIR_OUT; dir 167 drivers/gpio/gpio-mockup.c chip->lines[offset].dir = GPIO_MOCKUP_DIR_IN; dir 179 drivers/gpio/gpio-mockup.c direction = !chip->lines[offset].dir; dir 248 drivers/gpio/gpio-mxs.c u32 dir; dir 250 drivers/gpio/gpio-mxs.c dir = readl(port->base + PINCTRL_DOE(port)); dir 251 drivers/gpio/gpio-mxs.c return !(dir & mask); dir 204 drivers/gpio/gpio-pxa.c int ret, af = 0, dir = 0; dir 215 drivers/gpio/gpio-pxa.c dir = gpdr & GPIO_bit(gpio); dir 218 drivers/gpio/gpio-pxa.c ret = (af != 1) || (dir == 0); dir 220 drivers/gpio/gpio-pxa.c ret = (af != 0) || (dir != 0); dir 26 drivers/gpio/gpio-sta2x11.c u32 dir; /* 0x10 */ dir 259 drivers/gpio/gpio-stmpe.c u8 dir; dir 264 drivers/gpio/gpio-stmpe.c dir = !!(ret & mask); dir 266 drivers/gpio/gpio-stmpe.c if (dir) { dir 255 drivers/gpio/gpio-viperboard.c unsigned int dir) dir 261 drivers/gpio/gpio-viperboard.c gbmsg->val = cpu_to_be16(dir << offset); dir 326 drivers/gpio/gpio-vr41xx.c static int giu_set_direction(struct gpio_chip *chip, unsigned pin, int dir) dir 363 drivers/gpio/gpio-vr41xx.c if (dir == GPIO_OUTPUT) dir 78 drivers/gpio/gpio-zevio.c u32 val, dir; dir 81 drivers/gpio/gpio-zevio.c dir = zevio_gpio_port_get(controller, pin, ZEVIO_GPIO_DIRECTION); dir 82 drivers/gpio/gpio-zevio.c if (dir & BIT(ZEVIO_GPIO_BIT(pin))) dir 3888 drivers/gpio/gpiolib.c int dir = gpiod_get_direction(desc); dir 3890 drivers/gpio/gpiolib.c if (dir < 0) { dir 3893 drivers/gpio/gpiolib.c return dir; dir 930 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c con->dir = debugfs_create_dir("ras", minor->debugfs_root); dir 931 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c con->ent = debugfs_create_file("ras_ctrl", S_IWUGO | S_IRUGO, con->dir, dir 951 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c S_IWUGO | S_IRUGO, con->dir, obj, dir 978 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c debugfs_remove(con->dir); dir 979 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c con->dir = NULL; dir 319 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h struct dentry *dir; dir 948 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c struct dentry *dir = connector->base.debugfs_entry; dir 954 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 0644, dir, connector, dir 376 drivers/gpu/drm/armada/armada_gem.c enum dma_data_direction dir) dir 410 drivers/gpu/drm/armada/armada_gem.c if (dma_map_sg(attach->dev, sgt->sgl, sgt->nents, dir) == 0) { dir 421 drivers/gpu/drm/armada/armada_gem.c if (dma_map_sg(attach->dev, sgt->sgl, sgt->nents, dir) == 0) dir 445 drivers/gpu/drm/armada/armada_gem.c struct sg_table *sgt, enum dma_data_direction dir) dir 452 drivers/gpu/drm/armada/armada_gem.c dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents, dir); dir 614 drivers/gpu/drm/drm_prime.c enum dma_data_direction dir) dir 619 drivers/gpu/drm/drm_prime.c if (WARN_ON(dir == DMA_NONE)) dir 627 drivers/gpu/drm/drm_prime.c if (!dma_map_sg_attrs(attach->dev, sgt->sgl, sgt->nents, dir, dir 648 drivers/gpu/drm/drm_prime.c enum dma_data_direction dir) dir 653 drivers/gpu/drm/drm_prime.c dma_unmap_sg_attrs(attach->dev, sgt->sgl, sgt->nents, dir, dir 317 drivers/gpu/drm/exynos/exynos_drm_scaler.c int i, j, dir; dir 329 drivers/gpu/drm/exynos/exynos_drm_scaler.c dir = 1; dir 332 drivers/gpu/drm/exynos/exynos_drm_scaler.c dir = 0; dir 337 drivers/gpu/drm/exynos/exynos_drm_scaler.c scaler_write(csc_mtx[dir][i][j], SCALER_CSC_COEF(j, i)); dir 21 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c enum dma_data_direction dir) dir 51 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c if (!dma_map_sg(attachment->dev, st->sgl, st->nents, dir)) { dir 70 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c enum dma_data_direction dir) dir 74 drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c dma_unmap_sg(attachment->dev, sg->sgl, sg->nents, dir); dir 10 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c enum dma_data_direction dir) dir 31 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c if (!dma_map_sg(attachment->dev, st->sgl, st->nents, dir)) { dir 47 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c enum dma_data_direction dir) dir 49 drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c dma_unmap_sg(attachment->dev, st->sgl, st->nents, dir); dir 26 drivers/gpu/drm/nouveau/nvkm/core/mm.c #define node(root, dir) ((root)->nl_entry.dir == &mm->nodes) ? NULL : \ dir 27 drivers/gpu/drm/nouveau/nvkm/core/mm.c list_entry((root)->nl_entry.dir, struct nvkm_mm_node, nl_entry) dir 30 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/base.c nvkm_gpio_drive(struct nvkm_gpio *gpio, int idx, int line, int dir, int out) dir 32 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/base.c return gpio->func->drive(gpio, line, dir, out); dir 88 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/base.c int dir = !!(func.log[state] & 0x02); dir 90 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/base.c ret = nvkm_gpio_drive(gpio, idx, func.line, dir, out); dir 56 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/gf119.c gf119_gpio_drive(struct nvkm_gpio *gpio, int line, int dir, int out) dir 59 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/gf119.c u32 data = ((dir ^ 1) << 13) | (out << 12); dir 52 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/nv10.c nv10_gpio_drive(struct nvkm_gpio *gpio, int line, int dir, int out) dir 61 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/nv10.c data = (dir << 4) | out; dir 67 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/nv10.c data = (dir << 1) | out; dir 73 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/nv10.c data = (dir << 1) | out; dir 71 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/nv50.c nv50_gpio_drive(struct nvkm_gpio *gpio, int line, int dir, int out) dir 79 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/nv50.c nvkm_mask(device, reg, 3 << shift, (((dir ^ 1) << 1) | out) << shift); dir 22 drivers/gpu/drm/nouveau/nvkm/subdev/gpio/priv.h int (*drive)(struct nvkm_gpio *, int line, int dir, int out); dir 879 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c #define node(root, dir) (((root)->head.dir == &vmm->list) ? NULL : \ dir 880 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c list_entry((root)->head.dir, struct nvkm_vma, head)) dir 164 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_therm_cstate(struct nvkm_therm *therm, int fan, int dir) dir 167 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c if (!dir || (dir < 0 && fan < therm->cstate) || dir 168 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c (dir > 0 && fan > therm->cstate)) { dir 82 drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c enum nvkm_therm_thrs_direction dir) dir 94 drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c if (dir == NVKM_THERM_THRS_FALLING) dir 102 drivers/gpu/drm/nouveau/nvkm/subdev/therm/temp.c active = (dir == NVKM_THERM_THRS_RISING); dir 884 drivers/gpu/drm/omapdrm/dss/dss.c struct dentry *dir; dir 886 drivers/gpu/drm/omapdrm/dss/dss.c dir = debugfs_create_dir("omapdss", NULL); dir 887 drivers/gpu/drm/omapdrm/dss/dss.c if (IS_ERR(dir)) dir 888 drivers/gpu/drm/omapdrm/dss/dss.c return PTR_ERR(dir); dir 890 drivers/gpu/drm/omapdrm/dss/dss.c dss->debugfs.root = dir; dir 98 drivers/gpu/drm/omapdrm/omap_dmm_priv.h u32 dir:4; dir 719 drivers/gpu/drm/omapdrm/omap_gem.c enum dma_data_direction dir) dir 735 drivers/gpu/drm/omapdrm/omap_gem.c PAGE_SIZE, dir); dir 76 drivers/gpu/drm/omapdrm/omap_gem.h enum dma_data_direction dir); dir 20 drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c enum dma_data_direction dir) dir 48 drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c omap_gem_dma_sync_buffer(obj, dir); dir 57 drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c struct sg_table *sg, enum dma_data_direction dir) dir 66 drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c enum dma_data_direction dir) dir 81 drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c enum dma_data_direction dir) dir 500 drivers/gpu/drm/tegra/gem.c enum dma_data_direction dir) dir 520 drivers/gpu/drm/tegra/gem.c if (dma_map_sg(attach->dev, sgt->sgl, sgt->nents, dir) == 0) dir 540 drivers/gpu/drm/tegra/gem.c enum dma_data_direction dir) dir 546 drivers/gpu/drm/tegra/gem.c dma_unmap_sg(attach->dev, sgt->sgl, sgt->nents, dir); dir 371 drivers/gpu/drm/ttm/ttm_bo_util.c int dir; dir 410 drivers/gpu/drm/ttm/ttm_bo_util.c dir = 1; dir 414 drivers/gpu/drm/ttm/ttm_bo_util.c dir = -1; dir 419 drivers/gpu/drm/ttm/ttm_bo_util.c page = i * dir + add; dir 17 drivers/gpu/drm/udl/udl_dmabuf.c enum dma_data_direction dir; dir 33 drivers/gpu/drm/udl/udl_dmabuf.c udl_attach->dir = DMA_NONE; dir 53 drivers/gpu/drm/udl/udl_dmabuf.c if (udl_attach->dir != DMA_NONE) dir 55 drivers/gpu/drm/udl/udl_dmabuf.c udl_attach->dir); dir 63 drivers/gpu/drm/udl/udl_dmabuf.c enum dma_data_direction dir) dir 76 drivers/gpu/drm/udl/udl_dmabuf.c attach->dmabuf->size, dir); dir 79 drivers/gpu/drm/udl/udl_dmabuf.c if (udl_attach->dir == dir && udl_attach->is_mapped) dir 115 drivers/gpu/drm/udl/udl_dmabuf.c if (dir != DMA_NONE) { dir 116 drivers/gpu/drm/udl/udl_dmabuf.c nents = dma_map_sg(attach->dev, sgt->sgl, sgt->orig_nents, dir); dir 126 drivers/gpu/drm/udl/udl_dmabuf.c udl_attach->dir = dir; dir 136 drivers/gpu/drm/udl/udl_dmabuf.c enum dma_data_direction dir) dir 140 drivers/gpu/drm/udl/udl_dmabuf.c attach->dmabuf->size, dir); dir 54 drivers/gpu/drm/vmwgfx/vmwgfx_prime.c enum dma_data_direction dir) dir 61 drivers/gpu/drm/vmwgfx/vmwgfx_prime.c enum dma_data_direction dir) dir 792 drivers/greybus/svc.c struct dentry *dir; dir 802 drivers/greybus/svc.c dir = debugfs_create_dir(fname, dent); dir 803 drivers/greybus/svc.c debugfs_create_file("voltage_now", 0444, dir, rail, dir 805 drivers/greybus/svc.c debugfs_create_file("current_now", 0444, dir, rail, dir 807 drivers/greybus/svc.c debugfs_create_file("power_now", 0444, dir, rail, dir 110 drivers/hid/hid-elo.c u8 dir; dir 114 drivers/hid/hid-elo.c dir = USB_DIR_OUT; dir 117 drivers/hid/hid-elo.c dir = USB_DIR_IN; dir 122 drivers/hid/hid-elo.c dir | USB_TYPE_VENDOR | USB_RECIP_DEVICE, dir 130 drivers/hid/hid-picolcd.h struct hid_report *picolcd_report(int id, struct hid_device *hdev, int dir); dir 53 drivers/hid/hid-picolcd_core.c struct hid_report *picolcd_report(int id, struct hid_device *hdev, int dir) dir 55 drivers/hid/hid-picolcd_core.c struct list_head *feature_report_list = &hdev->report_enum[dir].report_list; dir 57 drivers/hid/hid-sensor-hub.c int dir) dir 61 drivers/hid/hid-sensor-hub.c list_for_each_entry(report, &hdev->report_enum[dir].report_list, list) { dir 368 drivers/hid/usbhid/hid-core.c unsigned char dir; dir 375 drivers/hid/usbhid/hid-core.c dir = usbhid->ctrl[usbhid->ctrltail].dir; dir 378 drivers/hid/usbhid/hid-core.c if (dir == USB_DIR_OUT) { dir 403 drivers/hid/usbhid/hid-core.c usbhid->cr->bRequestType = USB_TYPE_CLASS | USB_RECIP_INTERFACE | dir; dir 404 drivers/hid/usbhid/hid-core.c usbhid->cr->bRequest = (dir == USB_DIR_OUT) ? HID_REQ_SET_REPORT : dir 485 drivers/hid/usbhid/hid-core.c if (usbhid->ctrl[usbhid->ctrltail].dir == USB_DIR_IN) dir 524 drivers/hid/usbhid/hid-core.c unsigned char dir) dir 529 drivers/hid/usbhid/hid-core.c if (((hid->quirks & HID_QUIRK_NOGET) && dir == USB_DIR_IN) || dir 533 drivers/hid/usbhid/hid-core.c if (usbhid->urbout && dir == USB_DIR_OUT && report->type == HID_OUTPUT_REPORT) { dir 587 drivers/hid/usbhid/hid-core.c if (dir == USB_DIR_OUT) { dir 596 drivers/hid/usbhid/hid-core.c usbhid->ctrl[usbhid->ctrlhead].dir = dir; dir 632 drivers/hid/usbhid/hid-core.c static void usbhid_submit_report(struct hid_device *hid, struct hid_report *report, unsigned char dir) dir 638 drivers/hid/usbhid/hid-core.c __usbhid_submit_report(hid, report, dir); dir 297 drivers/hsi/clients/cmt_speech.c const char *dir = (msg->ttype == HSI_MSG_READ) ? "TX" : "RX"; dir 299 drivers/hsi/clients/cmt_speech.c dev_dbg(&cs_char_data.cl->device, "Freeing data %s message\n", dir); dir 304 drivers/hsi/clients/cmt_speech.c "Data %s flush while device active\n", dir); dir 104 drivers/hsi/controllers/omap_ssi.h struct dentry *dir; dir 155 drivers/hsi/controllers/omap_ssi.h struct dentry *dir; dir 113 drivers/hsi/controllers/omap_ssi_core.c struct dentry *dir; dir 116 drivers/hsi/controllers/omap_ssi_core.c omap_ssi->dir = debugfs_create_dir(dev_name(&ssi->device), NULL); dir 117 drivers/hsi/controllers/omap_ssi_core.c if (!omap_ssi->dir) dir 120 drivers/hsi/controllers/omap_ssi_core.c debugfs_create_file("regs", S_IRUGO, omap_ssi->dir, ssi, dir 123 drivers/hsi/controllers/omap_ssi_core.c dir = debugfs_create_dir("gdd", omap_ssi->dir); dir 124 drivers/hsi/controllers/omap_ssi_core.c if (!dir) dir 126 drivers/hsi/controllers/omap_ssi_core.c debugfs_create_file("regs", S_IRUGO, dir, ssi, &ssi_gdd_regs_fops); dir 130 drivers/hsi/controllers/omap_ssi_core.c debugfs_remove_recursive(omap_ssi->dir); dir 139 drivers/hsi/controllers/omap_ssi_core.c debugfs_remove_recursive(omap_ssi->dir); dir 173 drivers/hsi/controllers/omap_ssi_core.c unsigned int dir; dir 184 drivers/hsi/controllers/omap_ssi_core.c dir = DMA_FROM_DEVICE; dir 188 drivers/hsi/controllers/omap_ssi_core.c dir = DMA_TO_DEVICE; dir 192 drivers/hsi/controllers/omap_ssi_core.c dma_unmap_sg(&ssi->device, msg->sgt.sgl, msg->sgt.nents, dir); dir 44 drivers/hsi/controllers/omap_ssi_port.c debugfs_remove_recursive(omap_port->dir); dir 155 drivers/hsi/controllers/omap_ssi_port.c struct dentry *dir) dir 159 drivers/hsi/controllers/omap_ssi_port.c dir = debugfs_create_dir(dev_name(omap_port->dev), dir); dir 160 drivers/hsi/controllers/omap_ssi_port.c if (!dir) dir 162 drivers/hsi/controllers/omap_ssi_port.c omap_port->dir = dir; dir 163 drivers/hsi/controllers/omap_ssi_port.c debugfs_create_file("regs", S_IRUGO, dir, port, &ssi_port_regs_fops); dir 164 drivers/hsi/controllers/omap_ssi_port.c dir = debugfs_create_dir("sst", dir); dir 165 drivers/hsi/controllers/omap_ssi_port.c if (!dir) dir 167 drivers/hsi/controllers/omap_ssi_port.c debugfs_create_file_unsafe("divisor", 0644, dir, port, dir 1220 drivers/hsi/controllers/omap_ssi_port.c err = ssi_debug_add_port(omap_port, omap_ssi->dir); dir 593 drivers/hwtracing/coresight/coresight-platform.c int rc, dir; dir 614 drivers/hwtracing/coresight/coresight-platform.c dir = fields[3].integer.value; dir 615 drivers/hwtracing/coresight/coresight-platform.c if (dir == ACPI_CORESIGHT_LINK_MASTER) { dir 632 drivers/hwtracing/coresight/coresight-platform.c return dir; dir 668 drivers/hwtracing/coresight/coresight-platform.c int dir; dir 670 drivers/hwtracing/coresight/coresight-platform.c dir = acpi_coresight_parse_link(adev, link, ptr); dir 671 drivers/hwtracing/coresight/coresight-platform.c if (dir < 0) dir 672 drivers/hwtracing/coresight/coresight-platform.c return dir; dir 674 drivers/hwtracing/coresight/coresight-platform.c if (dir == ACPI_CORESIGHT_LINK_MASTER) { dir 162 drivers/hwtracing/coresight/coresight-tmc-etr.c struct device *dev, enum dma_data_direction dir) dir 170 drivers/hwtracing/coresight/coresight-tmc-etr.c PAGE_SIZE, dir); dir 192 drivers/hwtracing/coresight/coresight-tmc-etr.c enum dma_data_direction dir, void **pages) dir 221 drivers/hwtracing/coresight/coresight-tmc-etr.c paddr = dma_map_page(real_dev, page, 0, PAGE_SIZE, dir); dir 229 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_pages_free(tmc_pages, dev, dir); dir 176 drivers/i2c/busses/i2c-mv64xxx.c u32 dir = 0; dir 182 drivers/i2c/busses/i2c-mv64xxx.c dir = 1; dir 185 drivers/i2c/busses/i2c-mv64xxx.c drv_data->addr1 = 0xf0 | (((u32)msg->addr & 0x300) >> 7) | dir; dir 188 drivers/i2c/busses/i2c-mv64xxx.c drv_data->addr1 = MV64XXX_I2C_ADDR_ADDR((u32)msg->addr) | dir; dir 604 drivers/i2c/busses/i2c-qup.c int dir) dir 609 drivers/i2c/busses/i2c-qup.c ret = dma_map_sg(qup->dev, sg, 1, dir); dir 408 drivers/i2c/busses/i2c-rcar.c enum dma_data_direction dir = read ? DMA_FROM_DEVICE : DMA_TO_DEVICE; dir 436 drivers/i2c/busses/i2c-rcar.c dma_addr = dma_map_single(chan->device->dev, buf, len, dir); dir 445 drivers/i2c/busses/i2c-rcar.c priv->dma_direction = dir; dir 682 drivers/i2c/busses/i2c-rcar.c enum dma_transfer_direction dir, dir 687 drivers/i2c/busses/i2c-rcar.c char *chan_name = dir == DMA_MEM_TO_DEV ? "tx" : "rx"; dir 698 drivers/i2c/busses/i2c-rcar.c cfg.direction = dir; dir 699 drivers/i2c/busses/i2c-rcar.c if (dir == DMA_MEM_TO_DEV) { dir 725 drivers/i2c/busses/i2c-rcar.c enum dma_transfer_direction dir; dir 733 drivers/i2c/busses/i2c-rcar.c dir = read ? DMA_DEV_TO_MEM : DMA_MEM_TO_DEV; dir 734 drivers/i2c/busses/i2c-rcar.c chan = rcar_i2c_request_dma_chan(dev, dir, priv->res->start + ICRXTX); dir 482 drivers/i2c/busses/i2c-sh_mobile.c enum dma_transfer_direction dir, dma_addr_t port_addr) dir 486 drivers/i2c/busses/i2c-sh_mobile.c char *chan_name = dir == DMA_MEM_TO_DEV ? "tx" : "rx"; dir 497 drivers/i2c/busses/i2c-sh_mobile.c cfg.direction = dir; dir 498 drivers/i2c/busses/i2c-sh_mobile.c if (dir == DMA_MEM_TO_DEV) { dir 520 drivers/i2c/busses/i2c-sh_mobile.c enum dma_data_direction dir = read ? DMA_FROM_DEVICE : DMA_TO_DEVICE; dir 538 drivers/i2c/busses/i2c-sh_mobile.c dma_addr = dma_map_single(chan->device->dev, pd->dma_buf, pd->msg->len, dir); dir 547 drivers/i2c/busses/i2c-sh_mobile.c pd->dma_direction = dir; dir 1220 drivers/i2c/busses/i2c-stm32f7.c u32 isr, addcode, dir, mask; dir 1225 drivers/i2c/busses/i2c-stm32f7.c dir = isr & STM32F7_I2C_ISR_DIR; dir 1230 drivers/i2c/busses/i2c-stm32f7.c i2c_dev->slave_dir = dir; dir 360 drivers/i2c/busses/i2c-tegra.c enum dma_transfer_direction dir; dir 365 drivers/i2c/busses/i2c-tegra.c dir = i2c_dev->msg_read ? DMA_DEV_TO_MEM : DMA_MEM_TO_DEV; dir 368 drivers/i2c/busses/i2c-tegra.c len, dir, DMA_PREP_INTERRUPT | dir 474 drivers/ide/ide-proc.c static void ide_add_proc_entries(struct proc_dir_entry *dir, ide_proc_entry_t *p, void *data) dir 478 drivers/ide/ide-proc.c if (!dir || !p) dir 481 drivers/ide/ide-proc.c ent = proc_create_single_data(p->name, p->mode, dir, p->show, data); dir 487 drivers/ide/ide-proc.c static void ide_remove_proc_entries(struct proc_dir_entry *dir, ide_proc_entry_t *p) dir 489 drivers/ide/ide-proc.c if (!dir || !p) dir 492 drivers/ide/ide-proc.c remove_proc_entry(p->name, dir); dir 941 drivers/ide/ide-tape.c static int idetape_init_rw(ide_drive_t *drive, int dir) dir 946 drivers/ide/ide-tape.c BUG_ON(dir != IDETAPE_DIR_READ && dir != IDETAPE_DIR_WRITE); dir 948 drivers/ide/ide-tape.c if (tape->chrdev_dir == dir) dir 966 drivers/ide/ide-tape.c tape->chrdev_dir = dir; dir 976 drivers/ide/ide-tape.c int cmd = dir == IDETAPE_DIR_READ ? REQ_IDETAPE_READ dir 664 drivers/iio/accel/bmc150-accel-core.c enum iio_event_direction dir, dir 688 drivers/iio/accel/bmc150-accel-core.c enum iio_event_direction dir, dir 714 drivers/iio/accel/bmc150-accel-core.c enum iio_event_direction dir) dir 724 drivers/iio/accel/bmc150-accel-core.c enum iio_event_direction dir, dir 967 drivers/iio/accel/bmc150-accel-core.c .dir = IIO_EV_DIR_EITHER, dir 1197 drivers/iio/accel/bmc150-accel-core.c int dir; dir 1208 drivers/iio/accel/bmc150-accel-core.c dir = IIO_EV_DIR_FALLING; dir 1210 drivers/iio/accel/bmc150-accel-core.c dir = IIO_EV_DIR_RISING; dir 1218 drivers/iio/accel/bmc150-accel-core.c dir), dir 1227 drivers/iio/accel/bmc150-accel-core.c dir), dir 1236 drivers/iio/accel/bmc150-accel-core.c dir), dir 827 drivers/iio/accel/kxcjk-1013.c enum iio_event_direction dir, dir 851 drivers/iio/accel/kxcjk-1013.c enum iio_event_direction dir, dir 877 drivers/iio/accel/kxcjk-1013.c enum iio_event_direction dir) dir 887 drivers/iio/accel/kxcjk-1013.c enum iio_event_direction dir, dir 980 drivers/iio/accel/kxcjk-1013.c .dir = IIO_EV_DIR_EITHER, dir 786 drivers/iio/accel/mma8452.c const struct iio_chan_spec *chan, enum iio_event_direction dir, dir 794 drivers/iio/accel/mma8452.c switch (dir) { dir 818 drivers/iio/accel/mma8452.c enum iio_event_direction dir, dir 826 drivers/iio/accel/mma8452.c ret = mma8452_get_event_regs(data, chan, dir, &ev_regs); dir 881 drivers/iio/accel/mma8452.c enum iio_event_direction dir, dir 889 drivers/iio/accel/mma8452.c ret = mma8452_get_event_regs(data, chan, dir, &ev_regs); dir 939 drivers/iio/accel/mma8452.c enum iio_event_direction dir) dir 945 drivers/iio/accel/mma8452.c ret = mma8452_get_event_regs(data, chan, dir, &ev_regs); dir 949 drivers/iio/accel/mma8452.c switch (dir) { dir 968 drivers/iio/accel/mma8452.c enum iio_event_direction dir, dir 975 drivers/iio/accel/mma8452.c ret = mma8452_get_event_regs(data, chan, dir, &ev_regs); dir 983 drivers/iio/accel/mma8452.c switch (dir) { dir 1135 drivers/iio/accel/mma8452.c .dir = IIO_EV_DIR_FALLING, dir 1146 drivers/iio/accel/mma8452.c .dir = IIO_EV_DIR_FALLING, dir 1156 drivers/iio/accel/mma8452.c .dir = IIO_EV_DIR_RISING, dir 1167 drivers/iio/accel/mma8452.c .dir = IIO_EV_DIR_RISING, dir 150 drivers/iio/accel/mma9551.c enum iio_event_direction dir) dir 227 drivers/iio/accel/mma9551.c enum iio_event_direction dir, dir 248 drivers/iio/accel/mma9551.c enum iio_event_direction dir, dir 275 drivers/iio/accel/mma9551.c enum iio_event_direction dir, dir 302 drivers/iio/accel/mma9551.c .dir = IIO_EV_DIR_RISING, dir 106 drivers/iio/accel/mma9553.c enum iio_event_direction dir; dir 111 drivers/iio/accel/mma9553.c .dir = IIO_EV_DIR_NONE, dir 116 drivers/iio/accel/mma9553.c .dir = IIO_EV_DIR_RISING, dir 121 drivers/iio/accel/mma9553.c .dir = IIO_EV_DIR_FALLING, dir 126 drivers/iio/accel/mma9553.c .dir = IIO_EV_DIR_RISING, dir 131 drivers/iio/accel/mma9553.c .dir = IIO_EV_DIR_FALLING, dir 136 drivers/iio/accel/mma9553.c .dir = IIO_EV_DIR_RISING, dir 141 drivers/iio/accel/mma9553.c .dir = IIO_EV_DIR_FALLING, dir 146 drivers/iio/accel/mma9553.c .dir = IIO_EV_DIR_RISING, dir 151 drivers/iio/accel/mma9553.c .dir = IIO_EV_DIR_FALLING, dir 235 drivers/iio/accel/mma9553.c enum iio_event_direction dir) dir 242 drivers/iio/accel/mma9553.c data->events[i].info->dir == dir) dir 713 drivers/iio/accel/mma9553.c enum iio_event_direction dir) dir 718 drivers/iio/accel/mma9553.c event = mma9553_get_event(data, chan->type, chan->channel2, dir); dir 728 drivers/iio/accel/mma9553.c enum iio_event_direction dir, int state) dir 734 drivers/iio/accel/mma9553.c event = mma9553_get_event(data, chan->type, chan->channel2, dir); dir 769 drivers/iio/accel/mma9553.c enum iio_event_direction dir, dir 809 drivers/iio/accel/mma9553.c enum iio_event_direction dir, dir 888 drivers/iio/accel/mma9553.c .dir = IIO_EV_DIR_NONE, dir 895 drivers/iio/accel/mma9553.c .dir = IIO_EV_DIR_RISING, dir 902 drivers/iio/accel/mma9553.c .dir = IIO_EV_DIR_FALLING, dir 475 drivers/iio/accel/sca3000.c .dir = IIO_EV_DIR_RISING, dir 507 drivers/iio/accel/sca3000.c .dir = IIO_EV_DIR_FALLING, dir 868 drivers/iio/accel/sca3000.c enum iio_event_direction dir, dir 920 drivers/iio/accel/sca3000.c enum iio_event_direction dir, dir 1109 drivers/iio/accel/sca3000.c enum iio_event_direction dir) dir 1247 drivers/iio/accel/sca3000.c enum iio_event_direction dir, dir 171 drivers/iio/adc/ad7291.c enum iio_event_direction dir, dir 189 drivers/iio/adc/ad7291.c if (dir == IIO_EV_DIR_FALLING) dir 204 drivers/iio/adc/ad7291.c enum iio_event_direction dir, dir 212 drivers/iio/adc/ad7291.c ret = ad7291_i2c_read(chip, ad7291_threshold_reg(chan, dir, info), dir 229 drivers/iio/adc/ad7291.c enum iio_event_direction dir, dir 243 drivers/iio/adc/ad7291.c return ad7291_i2c_write(chip, ad7291_threshold_reg(chan, dir, info), dir 250 drivers/iio/adc/ad7291.c enum iio_event_direction dir) dir 273 drivers/iio/adc/ad7291.c enum iio_event_direction dir, dir 410 drivers/iio/adc/ad7291.c .dir = IIO_EV_DIR_RISING, dir 415 drivers/iio/adc/ad7291.c .dir = IIO_EV_DIR_FALLING, dir 420 drivers/iio/adc/ad7291.c .dir = IIO_EV_DIR_EITHER, dir 371 drivers/iio/adc/ad799x.c enum iio_event_direction dir) dir 387 drivers/iio/adc/ad799x.c enum iio_event_direction dir, dir 413 drivers/iio/adc/ad799x.c enum iio_event_direction dir, dir 418 drivers/iio/adc/ad799x.c if (dir == IIO_EV_DIR_FALLING) dir 434 drivers/iio/adc/ad799x.c enum iio_event_direction dir, dir 446 drivers/iio/adc/ad799x.c ad799x_threshold_reg(chan, dir, info), dir 456 drivers/iio/adc/ad799x.c enum iio_event_direction dir, dir 465 drivers/iio/adc/ad799x.c ad799x_threshold_reg(chan, dir, info)); dir 546 drivers/iio/adc/ad799x.c .dir = IIO_EV_DIR_RISING, dir 551 drivers/iio/adc/ad799x.c .dir = IIO_EV_DIR_FALLING, dir 556 drivers/iio/adc/ad799x.c .dir = IIO_EV_DIR_EITHER, dir 127 drivers/iio/adc/hi8435.c enum iio_event_direction dir) dir 137 drivers/iio/adc/hi8435.c enum iio_event_direction dir, int state) dir 162 drivers/iio/adc/hi8435.c enum iio_event_direction dir, dir 183 drivers/iio/adc/hi8435.c if (dir == IIO_EV_DIR_FALLING) dir 185 drivers/iio/adc/hi8435.c else if (dir == IIO_EV_DIR_RISING) dir 194 drivers/iio/adc/hi8435.c enum iio_event_direction dir, dir 215 drivers/iio/adc/hi8435.c if (dir == IIO_EV_DIR_FALLING) { dir 228 drivers/iio/adc/hi8435.c } else if (dir == IIO_EV_DIR_RISING) { dir 289 drivers/iio/adc/hi8435.c .dir = IIO_EV_DIR_RISING, dir 293 drivers/iio/adc/hi8435.c .dir = IIO_EV_DIR_FALLING, dir 297 drivers/iio/adc/hi8435.c .dir = IIO_EV_DIR_EITHER, dir 418 drivers/iio/adc/hi8435.c enum iio_event_direction dir; dir 427 drivers/iio/adc/hi8435.c dir = val & BIT(i) ? IIO_EV_DIR_RISING : dir 431 drivers/iio/adc/hi8435.c IIO_EV_TYPE_THRESH, dir), dir 449 drivers/iio/adc/max1363.c .dir = IIO_EV_DIR_RISING, dir 454 drivers/iio/adc/max1363.c .dir = IIO_EV_DIR_FALLING, dir 724 drivers/iio/adc/max1363.c enum iio_event_direction dir, enum iio_event_info info, int *val, dir 728 drivers/iio/adc/max1363.c if (dir == IIO_EV_DIR_FALLING) dir 737 drivers/iio/adc/max1363.c enum iio_event_direction dir, enum iio_event_info info, int val, dir 753 drivers/iio/adc/max1363.c switch (dir) { dir 807 drivers/iio/adc/max1363.c enum iio_event_direction dir) dir 814 drivers/iio/adc/max1363.c if (dir == IIO_EV_DIR_FALLING) dir 958 drivers/iio/adc/max1363.c enum iio_event_direction dir, int state) dir 967 drivers/iio/adc/max1363.c if (dir == IIO_EV_DIR_FALLING) { dir 121 drivers/iio/adc/ti-ads1015.c .dir = IIO_EV_DIR_RISING, dir 126 drivers/iio/adc/ti-ads1015.c .dir = IIO_EV_DIR_FALLING, dir 130 drivers/iio/adc/ti-ads1015.c .dir = IIO_EV_DIR_EITHER, dir 528 drivers/iio/adc/ti-ads1015.c enum iio_event_direction dir, enum iio_event_info info, int *val, dir 541 drivers/iio/adc/ti-ads1015.c *val = (dir == IIO_EV_DIR_RISING) ? dir 568 drivers/iio/adc/ti-ads1015.c enum iio_event_direction dir, enum iio_event_info info, int val, dir 586 drivers/iio/adc/ti-ads1015.c if (dir == IIO_EV_DIR_RISING) dir 614 drivers/iio/adc/ti-ads1015.c enum iio_event_direction dir) dir 621 drivers/iio/adc/ti-ads1015.c switch (dir) { dir 713 drivers/iio/adc/ti-ads1015.c enum iio_event_direction dir, int state) dir 717 drivers/iio/adc/ti-ads1015.c int comp_mode = (dir == IIO_EV_DIR_EITHER) ? dir 753 drivers/iio/adc/ti-ads1015.c enum iio_event_direction dir; dir 756 drivers/iio/adc/ti-ads1015.c dir = data->comp_mode == ADS1015_CFG_COMP_MODE_TRAD ? dir 759 drivers/iio/adc/ti-ads1015.c IIO_EV_TYPE_THRESH, dir); dir 982 drivers/iio/adc/xilinx-xadc-core.c .dir = IIO_EV_DIR_RISING, dir 993 drivers/iio/adc/xilinx-xadc-core.c .dir = IIO_EV_DIR_RISING, dir 997 drivers/iio/adc/xilinx-xadc-core.c .dir = IIO_EV_DIR_FALLING, dir 1001 drivers/iio/adc/xilinx-xadc-core.c .dir = IIO_EV_DIR_EITHER, dir 71 drivers/iio/adc/xilinx-xadc-events.c enum iio_event_direction dir) dir 84 drivers/iio/adc/xilinx-xadc-events.c if (dir == IIO_EV_DIR_FALLING) dir 115 drivers/iio/adc/xilinx-xadc-events.c enum iio_event_direction dir) dir 124 drivers/iio/adc/xilinx-xadc-events.c enum iio_event_direction dir, int state) dir 163 drivers/iio/adc/xilinx-xadc-events.c enum iio_event_direction dir, enum iio_event_info info, dir 166 drivers/iio/adc/xilinx-xadc-events.c unsigned int offset = xadc_get_threshold_offset(chan, dir); dir 187 drivers/iio/adc/xilinx-xadc-events.c enum iio_event_direction dir, enum iio_event_info info, dir 190 drivers/iio/adc/xilinx-xadc-events.c unsigned int offset = xadc_get_threshold_offset(chan, dir); dir 25 drivers/iio/adc/xilinx-xadc.h enum iio_event_direction dir); dir 28 drivers/iio/adc/xilinx-xadc.h enum iio_event_direction dir, int state); dir 31 drivers/iio/adc/xilinx-xadc.h enum iio_event_direction dir, enum iio_event_info info, dir 35 drivers/iio/adc/xilinx-xadc.h enum iio_event_direction dir, enum iio_event_info info, dir 85 drivers/iio/dac/ad5421.c .dir = IIO_EV_DIR_RISING, dir 90 drivers/iio/dac/ad5421.c .dir = IIO_EV_DIR_FALLING, dir 99 drivers/iio/dac/ad5421.c .dir = IIO_EV_DIR_RISING, dir 384 drivers/iio/dac/ad5421.c enum iio_event_direction dir, int state) dir 391 drivers/iio/dac/ad5421.c if (dir == IIO_EV_DIR_RISING) dir 415 drivers/iio/dac/ad5421.c enum iio_event_direction dir) dir 422 drivers/iio/dac/ad5421.c if (dir == IIO_EV_DIR_RISING) dir 439 drivers/iio/dac/ad5421.c enum iio_event_direction dir, enum iio_event_info info, int *val, dir 56 drivers/iio/dummy/iio_simple_dummy.c .dir = IIO_EV_DIR_RISING, dir 65 drivers/iio/dummy/iio_simple_dummy.c .dir = IIO_EV_DIR_NONE, dir 75 drivers/iio/dummy/iio_simple_dummy.c .dir = IIO_EV_DIR_RISING, dir 85 drivers/iio/dummy/iio_simple_dummy.c .dir = IIO_EV_DIR_FALLING, dir 57 drivers/iio/dummy/iio_simple_dummy.h enum iio_event_direction dir); dir 62 drivers/iio/dummy/iio_simple_dummy.h enum iio_event_direction dir, dir 68 drivers/iio/dummy/iio_simple_dummy.h enum iio_event_direction dir, dir 75 drivers/iio/dummy/iio_simple_dummy.h enum iio_event_direction dir, dir 33 drivers/iio/dummy/iio_simple_dummy_events.c enum iio_event_direction dir) dir 55 drivers/iio/dummy/iio_simple_dummy_events.c enum iio_event_direction dir, dir 68 drivers/iio/dummy/iio_simple_dummy_events.c if (dir == IIO_EV_DIR_RISING) dir 120 drivers/iio/dummy/iio_simple_dummy_events.c enum iio_event_direction dir, dir 143 drivers/iio/dummy/iio_simple_dummy_events.c enum iio_event_direction dir, dir 691 drivers/iio/gyro/bmg160_core.c enum iio_event_direction dir, dir 712 drivers/iio/gyro/bmg160_core.c enum iio_event_direction dir, dir 735 drivers/iio/gyro/bmg160_core.c enum iio_event_direction dir) dir 746 drivers/iio/gyro/bmg160_core.c enum iio_event_direction dir, dir 821 drivers/iio/gyro/bmg160_core.c .dir = IIO_EV_DIR_EITHER, dir 973 drivers/iio/gyro/bmg160_core.c int dir; dir 983 drivers/iio/gyro/bmg160_core.c dir = IIO_EV_DIR_RISING; dir 985 drivers/iio/gyro/bmg160_core.c dir = IIO_EV_DIR_FALLING; dir 992 drivers/iio/gyro/bmg160_core.c dir), dir 999 drivers/iio/gyro/bmg160_core.c dir), dir 1006 drivers/iio/gyro/bmg160_core.c dir), dir 223 drivers/iio/imu/kmx61.c .dir = IIO_EV_DIR_EITHER, dir 889 drivers/iio/imu/kmx61.c enum iio_event_direction dir, dir 911 drivers/iio/imu/kmx61.c enum iio_event_direction dir, dir 935 drivers/iio/imu/kmx61.c enum iio_event_direction dir) dir 945 drivers/iio/imu/kmx61.c enum iio_event_direction dir, dir 244 drivers/iio/industrialio-event.c return attr->c->event_spec[attr->address & 0xffff].dir; dir 343 drivers/iio/industrialio-event.c enum iio_event_type type, enum iio_event_direction dir, dir 357 drivers/iio/industrialio-event.c if (dir != IIO_EV_DIR_NONE) dir 360 drivers/iio/industrialio-event.c iio_ev_dir_text[dir], dir 398 drivers/iio/industrialio-event.c enum iio_event_direction dir; dir 403 drivers/iio/industrialio-event.c dir = chan->event_spec[i].dir; dir 405 drivers/iio/industrialio-event.c ret = iio_device_add_event(indio_dev, chan, i, type, dir, dir 411 drivers/iio/industrialio-event.c ret = iio_device_add_event(indio_dev, chan, i, type, dir, dir 418 drivers/iio/industrialio-event.c ret = iio_device_add_event(indio_dev, chan, i, type, dir, dir 425 drivers/iio/industrialio-event.c ret = iio_device_add_event(indio_dev, chan, i, type, dir, dir 275 drivers/iio/light/apds9300.c enum iio_event_direction dir, enum iio_event_info info, dir 280 drivers/iio/light/apds9300.c switch (dir) { dir 296 drivers/iio/light/apds9300.c enum iio_event_direction dir, enum iio_event_info info, int val, dir 303 drivers/iio/light/apds9300.c if (dir == IIO_EV_DIR_RISING) dir 315 drivers/iio/light/apds9300.c enum iio_event_direction dir) dir 324 drivers/iio/light/apds9300.c enum iio_event_direction dir, int state) dir 351 drivers/iio/light/apds9300.c .dir = IIO_EV_DIR_RISING, dir 356 drivers/iio/light/apds9300.c .dir = IIO_EV_DIR_FALLING, dir 226 drivers/iio/light/apds9960.c .dir = IIO_EV_DIR_RISING, dir 232 drivers/iio/light/apds9960.c .dir = IIO_EV_DIR_FALLING, dir 241 drivers/iio/light/apds9960.c .dir = IIO_EV_DIR_RISING, dir 247 drivers/iio/light/apds9960.c .dir = IIO_EV_DIR_FALLING, dir 572 drivers/iio/light/apds9960.c enum iio_event_direction dir, dir 575 drivers/iio/light/apds9960.c switch (dir) { dir 610 drivers/iio/light/apds9960.c enum iio_event_direction dir, dir 622 drivers/iio/light/apds9960.c ret = apds9960_get_thres_reg(chan, dir, ®); dir 646 drivers/iio/light/apds9960.c enum iio_event_direction dir, dir 658 drivers/iio/light/apds9960.c ret = apds9960_get_thres_reg(chan, dir, ®); dir 684 drivers/iio/light/apds9960.c enum iio_event_direction dir) dir 703 drivers/iio/light/apds9960.c enum iio_event_direction dir, dir 50 drivers/iio/light/cm3605.c enum iio_event_direction dir; dir 61 drivers/iio/light/cm3605.c IIO_EV_TYPE_THRESH, cm3605->dir); dir 65 drivers/iio/light/cm3605.c if (cm3605->dir == IIO_EV_DIR_RISING) dir 66 drivers/iio/light/cm3605.c cm3605->dir = IIO_EV_DIR_FALLING; dir 68 drivers/iio/light/cm3605.c cm3605->dir = IIO_EV_DIR_RISING; dir 136 drivers/iio/light/cm3605.c .dir = IIO_EV_DIR_EITHER, dir 171 drivers/iio/light/cm3605.c cm3605->dir = IIO_EV_DIR_FALLING; dir 491 drivers/iio/light/cm36651.c enum iio_event_direction dir, dir 505 drivers/iio/light/cm36651.c enum iio_event_direction dir, dir 531 drivers/iio/light/cm36651.c enum iio_event_direction dir, dir 550 drivers/iio/light/cm36651.c enum iio_event_direction dir) dir 576 drivers/iio/light/cm36651.c .dir = IIO_EV_DIR_EITHER, dir 1021 drivers/iio/light/gp2ap020a00f.c enum iio_event_direction dir, dir 1033 drivers/iio/light/gp2ap020a00f.c thresh_reg_l = gp2ap020a00f_get_thresh_reg(chan, dir); dir 1080 drivers/iio/light/gp2ap020a00f.c enum iio_event_direction dir, dir 1090 drivers/iio/light/gp2ap020a00f.c thresh_reg_l = gp2ap020a00f_get_thresh_reg(chan, dir); dir 1163 drivers/iio/light/gp2ap020a00f.c enum iio_event_direction dir, dir 1177 drivers/iio/light/gp2ap020a00f.c if (dir == IIO_EV_DIR_RISING) { dir 1199 drivers/iio/light/gp2ap020a00f.c enum iio_event_direction dir) dir 1208 drivers/iio/light/gp2ap020a00f.c if (dir == IIO_EV_DIR_RISING) dir 1216 drivers/iio/light/gp2ap020a00f.c if (dir == IIO_EV_DIR_RISING) dir 1301 drivers/iio/light/gp2ap020a00f.c .dir = IIO_EV_DIR_RISING, dir 1306 drivers/iio/light/gp2ap020a00f.c .dir = IIO_EV_DIR_FALLING, dir 1315 drivers/iio/light/gp2ap020a00f.c .dir = IIO_EV_DIR_RISING, dir 1320 drivers/iio/light/gp2ap020a00f.c .dir = IIO_EV_DIR_FALLING, dir 523 drivers/iio/light/ltr501.c .dir = IIO_EV_DIR_RISING, dir 527 drivers/iio/light/ltr501.c .dir = IIO_EV_DIR_FALLING, dir 531 drivers/iio/light/ltr501.c .dir = IIO_EV_DIR_EITHER, dir 541 drivers/iio/light/ltr501.c .dir = IIO_EV_DIR_RISING, dir 545 drivers/iio/light/ltr501.c .dir = IIO_EV_DIR_FALLING, dir 549 drivers/iio/light/ltr501.c .dir = IIO_EV_DIR_EITHER, dir 854 drivers/iio/light/ltr501.c enum iio_event_direction dir, dir 863 drivers/iio/light/ltr501.c switch (dir) { dir 884 drivers/iio/light/ltr501.c switch (dir) { dir 914 drivers/iio/light/ltr501.c enum iio_event_direction dir, dir 928 drivers/iio/light/ltr501.c switch (dir) { dir 949 drivers/iio/light/ltr501.c switch (dir) { dir 977 drivers/iio/light/ltr501.c enum iio_event_direction dir, dir 985 drivers/iio/light/ltr501.c return ltr501_read_thresh(indio_dev, chan, type, dir, dir 1003 drivers/iio/light/ltr501.c enum iio_event_direction dir, dir 1011 drivers/iio/light/ltr501.c return ltr501_write_thresh(indio_dev, chan, type, dir, dir 1026 drivers/iio/light/ltr501.c enum iio_event_direction dir) dir 1052 drivers/iio/light/ltr501.c enum iio_event_direction dir, int state) dir 87 drivers/iio/light/max44009.c .dir = IIO_EV_DIR_RISING, dir 93 drivers/iio/light/max44009.c .dir = IIO_EV_DIR_FALLING, dir 326 drivers/iio/light/max44009.c static int max44009_get_thr_reg(enum iio_event_direction dir) dir 328 drivers/iio/light/max44009.c switch (dir) { dir 341 drivers/iio/light/max44009.c enum iio_event_direction dir, dir 355 drivers/iio/light/max44009.c reg = max44009_get_thr_reg(dir); dir 363 drivers/iio/light/max44009.c enum iio_event_direction dir) dir 369 drivers/iio/light/max44009.c reg = max44009_get_thr_reg(dir); dir 384 drivers/iio/light/max44009.c if (dir == IIO_EV_DIR_RISING) dir 400 drivers/iio/light/max44009.c enum iio_event_direction dir, dir 410 drivers/iio/light/max44009.c ret = max44009_read_threshold(indio_dev, dir); dir 424 drivers/iio/light/max44009.c enum iio_event_direction dir, dir 449 drivers/iio/light/max44009.c enum iio_event_direction dir) dir 200 drivers/iio/light/opt3001.c .dir = IIO_EV_DIR_RISING, dir 206 drivers/iio/light/opt3001.c .dir = IIO_EV_DIR_FALLING, dir 444 drivers/iio/light/opt3001.c enum iio_event_direction dir, enum iio_event_info info, dir 452 drivers/iio/light/opt3001.c switch (dir) { dir 472 drivers/iio/light/opt3001.c enum iio_event_direction dir, enum iio_event_info info, dir 498 drivers/iio/light/opt3001.c switch (dir) { dir 528 drivers/iio/light/opt3001.c enum iio_event_direction dir) dir 537 drivers/iio/light/opt3001.c enum iio_event_direction dir, int state) dir 124 drivers/iio/light/stk3310.c .dir = IIO_EV_DIR_RISING, dir 131 drivers/iio/light/stk3310.c .dir = IIO_EV_DIR_FALLING, dir 194 drivers/iio/light/stk3310.c enum iio_event_direction dir, dir 207 drivers/iio/light/stk3310.c if (dir == IIO_EV_DIR_RISING) dir 209 drivers/iio/light/stk3310.c else if (dir == IIO_EV_DIR_FALLING) dir 229 drivers/iio/light/stk3310.c enum iio_event_direction dir, dir 247 drivers/iio/light/stk3310.c if (dir == IIO_EV_DIR_RISING) dir 249 drivers/iio/light/stk3310.c else if (dir == IIO_EV_DIR_FALLING) dir 265 drivers/iio/light/stk3310.c enum iio_event_direction dir) dir 281 drivers/iio/light/stk3310.c enum iio_event_direction dir, dir 537 drivers/iio/light/stk3310.c unsigned int dir; dir 545 drivers/iio/light/stk3310.c ret = regmap_field_read(data->reg_flag_nf, &dir); dir 553 drivers/iio/light/stk3310.c (dir ? IIO_EV_DIR_FALLING : dir 73 drivers/iio/light/tcs3472.c .dir = IIO_EV_DIR_RISING, dir 77 drivers/iio/light/tcs3472.c .dir = IIO_EV_DIR_FALLING, dir 81 drivers/iio/light/tcs3472.c .dir = IIO_EV_DIR_EITHER, dir 221 drivers/iio/light/tcs3472.c enum iio_event_direction dir, enum iio_event_info info, int *val, dir 232 drivers/iio/light/tcs3472.c *val = (dir == IIO_EV_DIR_RISING) ? dir 255 drivers/iio/light/tcs3472.c enum iio_event_direction dir, enum iio_event_info info, int val, dir 267 drivers/iio/light/tcs3472.c switch (dir) { dir 282 drivers/iio/light/tcs3472.c if (dir == IIO_EV_DIR_RISING) dir 312 drivers/iio/light/tcs3472.c enum iio_event_direction dir) dir 326 drivers/iio/light/tcs3472.c enum iio_event_direction dir, int state) dir 523 drivers/iio/light/tsl2563.c .dir = IIO_EV_DIR_RISING, dir 528 drivers/iio/light/tsl2563.c .dir = IIO_EV_DIR_FALLING, dir 559 drivers/iio/light/tsl2563.c enum iio_event_direction dir, enum iio_event_info info, int *val, dir 564 drivers/iio/light/tsl2563.c switch (dir) { dir 580 drivers/iio/light/tsl2563.c enum iio_event_direction dir, enum iio_event_info info, int val, dir 587 drivers/iio/light/tsl2563.c if (dir == IIO_EV_DIR_RISING) dir 599 drivers/iio/light/tsl2563.c if (dir == IIO_EV_DIR_RISING) dir 629 drivers/iio/light/tsl2563.c enum iio_event_direction dir, int state) dir 671 drivers/iio/light/tsl2563.c enum iio_event_direction dir) dir 1074 drivers/iio/light/tsl2772.c enum iio_event_direction dir) dir 1087 drivers/iio/light/tsl2772.c enum iio_event_direction dir, dir 1103 drivers/iio/light/tsl2772.c enum iio_event_direction dir, dir 1114 drivers/iio/light/tsl2772.c switch (dir) { dir 1127 drivers/iio/light/tsl2772.c switch (dir) { dir 1176 drivers/iio/light/tsl2772.c enum iio_event_direction dir, dir 1187 drivers/iio/light/tsl2772.c switch (dir) { dir 1198 drivers/iio/light/tsl2772.c switch (dir) { dir 1501 drivers/iio/light/tsl2772.c .dir = IIO_EV_DIR_RISING, dir 1505 drivers/iio/light/tsl2772.c .dir = IIO_EV_DIR_FALLING, dir 1509 drivers/iio/light/tsl2772.c .dir = IIO_EV_DIR_EITHER, dir 172 drivers/iio/light/us5182d.c .dir = IIO_EV_DIR_RISING, dir 178 drivers/iio/light/us5182d.c .dir = IIO_EV_DIR_FALLING, dir 523 drivers/iio/light/us5182d.c enum iio_event_direction dir, u16 val) dir 527 drivers/iio/light/us5182d.c if (dir == IIO_EV_DIR_FALLING) dir 530 drivers/iio/light/us5182d.c else if (dir == IIO_EV_DIR_RISING) dir 539 drivers/iio/light/us5182d.c enum iio_event_direction dir, enum iio_event_info info, int *val, dir 544 drivers/iio/light/us5182d.c switch (dir) { dir 564 drivers/iio/light/us5182d.c enum iio_event_direction dir, enum iio_event_info info, int val, dir 573 drivers/iio/light/us5182d.c switch (dir) { dir 577 drivers/iio/light/us5182d.c ret = us5182d_setup_prox(indio_dev, dir, val); dir 587 drivers/iio/light/us5182d.c ret = us5182d_setup_prox(indio_dev, dir, val); dir 606 drivers/iio/light/us5182d.c enum iio_event_direction dir) dir 611 drivers/iio/light/us5182d.c switch (dir) { dir 632 drivers/iio/light/us5182d.c enum iio_event_direction dir, int state) dir 640 drivers/iio/light/us5182d.c switch (dir) { dir 657 drivers/iio/light/us5182d.c ret = us5182d_setup_prox(indio_dev, dir, new_th); dir 678 drivers/iio/light/us5182d.c ret = us5182d_setup_prox(indio_dev, dir, new_th); dir 814 drivers/iio/light/us5182d.c enum iio_event_direction dir; dir 824 drivers/iio/light/us5182d.c dir = ret & US5182D_CFG0_PROX ? IIO_EV_DIR_RISING : IIO_EV_DIR_FALLING; dir 825 drivers/iio/light/us5182d.c ev = IIO_UNMOD_EVENT_CODE(IIO_PROXIMITY, 1, IIO_EV_TYPE_THRESH, dir); dir 250 drivers/iio/light/vcnl4035.c enum iio_event_direction dir, enum iio_event_info info, dir 257 drivers/iio/light/vcnl4035.c switch (dir) { dir 279 drivers/iio/light/vcnl4035.c enum iio_event_direction dir, enum iio_event_info info, int val, dir 290 drivers/iio/light/vcnl4035.c if (dir == IIO_EV_DIR_RISING) { dir 344 drivers/iio/light/vcnl4035.c .dir = IIO_EV_DIR_RISING, dir 348 drivers/iio/light/vcnl4035.c .dir = IIO_EV_DIR_FALLING, dir 352 drivers/iio/light/vcnl4035.c .dir = IIO_EV_DIR_EITHER, dir 103 drivers/iio/proximity/sx9500.c .dir = IIO_EV_DIR_EITHER, dir 480 drivers/iio/proximity/sx9500.c int dir; dir 490 drivers/iio/proximity/sx9500.c dir = new_prox ? IIO_EV_DIR_FALLING : IIO_EV_DIR_RISING; dir 492 drivers/iio/proximity/sx9500.c IIO_EV_TYPE_THRESH, dir); dir 528 drivers/iio/proximity/sx9500.c enum iio_event_direction dir) dir 533 drivers/iio/proximity/sx9500.c dir != IIO_EV_DIR_EITHER) dir 542 drivers/iio/proximity/sx9500.c enum iio_event_direction dir, dir 549 drivers/iio/proximity/sx9500.c dir != IIO_EV_DIR_EITHER) dir 219 drivers/iio/temperature/tmp007.c enum iio_event_direction dir, int state) dir 227 drivers/iio/temperature/tmp007.c if (dir == IIO_EV_DIR_RISING) dir 233 drivers/iio/temperature/tmp007.c if (dir == IIO_EV_DIR_RISING) dir 259 drivers/iio/temperature/tmp007.c enum iio_event_direction dir) dir 266 drivers/iio/temperature/tmp007.c if (dir == IIO_EV_DIR_RISING) dir 272 drivers/iio/temperature/tmp007.c if (dir == IIO_EV_DIR_RISING) dir 286 drivers/iio/temperature/tmp007.c enum iio_event_direction dir, enum iio_event_info info, dir 295 drivers/iio/temperature/tmp007.c if (dir == IIO_EV_DIR_RISING) dir 301 drivers/iio/temperature/tmp007.c if (dir == IIO_EV_DIR_RISING) dir 322 drivers/iio/temperature/tmp007.c enum iio_event_direction dir, enum iio_event_info info, dir 330 drivers/iio/temperature/tmp007.c if (dir == IIO_EV_DIR_RISING) dir 336 drivers/iio/temperature/tmp007.c if (dir == IIO_EV_DIR_RISING) dir 367 drivers/iio/temperature/tmp007.c .dir = IIO_EV_DIR_RISING, dir 373 drivers/iio/temperature/tmp007.c .dir = IIO_EV_DIR_FALLING, dir 382 drivers/iio/temperature/tmp007.c .dir = IIO_EV_DIR_RISING, dir 388 drivers/iio/temperature/tmp007.c .dir = IIO_EV_DIR_FALLING, dir 45 drivers/infiniband/core/rw.c enum dma_data_direction dir, int dma_nents) dir 47 drivers/infiniband/core/rw.c if (rdma_protocol_iwarp(dev, port_num) && dir == DMA_FROM_DEVICE) dir 120 drivers/infiniband/core/rw.c u64 remote_addr, u32 rkey, enum dma_data_direction dir) dir 157 drivers/infiniband/core/rw.c if (dir == DMA_TO_DEVICE) { dir 191 drivers/infiniband/core/rw.c u64 remote_addr, u32 rkey, enum dma_data_direction dir) dir 193 drivers/infiniband/core/rw.c u32 max_sge = dir == DMA_TO_DEVICE ? qp->max_write_sge : dir 212 drivers/infiniband/core/rw.c if (dir == DMA_TO_DEVICE) dir 247 drivers/infiniband/core/rw.c enum dma_data_direction dir) dir 258 drivers/infiniband/core/rw.c if (dir == DMA_TO_DEVICE) dir 272 drivers/infiniband/core/rw.c u32 sg_cnt, enum dma_data_direction dir) dir 275 drivers/infiniband/core/rw.c pci_p2pdma_unmap_sg(dev->dma_device, sg, sg_cnt, dir); dir 277 drivers/infiniband/core/rw.c ib_dma_unmap_sg(dev, sg, sg_cnt, dir); dir 281 drivers/infiniband/core/rw.c u32 sg_cnt, enum dma_data_direction dir) dir 284 drivers/infiniband/core/rw.c return pci_p2pdma_map_sg(dev->dma_device, sg, sg_cnt, dir); dir 285 drivers/infiniband/core/rw.c return ib_dma_map_sg(dev, sg, sg_cnt, dir); dir 305 drivers/infiniband/core/rw.c u64 remote_addr, u32 rkey, enum dma_data_direction dir) dir 310 drivers/infiniband/core/rw.c ret = rdma_rw_map_sg(dev, sg, sg_cnt, dir); dir 333 drivers/infiniband/core/rw.c if (rdma_rw_io_needs_mr(qp->device, port_num, dir, sg_cnt)) { dir 335 drivers/infiniband/core/rw.c sg_offset, remote_addr, rkey, dir); dir 338 drivers/infiniband/core/rw.c remote_addr, rkey, dir); dir 341 drivers/infiniband/core/rw.c remote_addr, rkey, dir); dir 349 drivers/infiniband/core/rw.c rdma_rw_unmap_sg(dev, sg, sg_cnt, dir); dir 375 drivers/infiniband/core/rw.c u64 remote_addr, u32 rkey, enum dma_data_direction dir) dir 389 drivers/infiniband/core/rw.c ret = ib_dma_map_sg(dev, sg, sg_cnt, dir); dir 395 drivers/infiniband/core/rw.c ret = ib_dma_map_sg(dev, prot_sg, prot_sg_cnt, dir); dir 449 drivers/infiniband/core/rw.c if (dir == DMA_TO_DEVICE) dir 464 drivers/infiniband/core/rw.c ib_dma_unmap_sg(dev, prot_sg, prot_sg_cnt, dir); dir 466 drivers/infiniband/core/rw.c ib_dma_unmap_sg(dev, sg, sg_cnt, dir); dir 578 drivers/infiniband/core/rw.c struct scatterlist *sg, u32 sg_cnt, enum dma_data_direction dir) dir 599 drivers/infiniband/core/rw.c rdma_rw_unmap_sg(qp->pd->device, sg, sg_cnt, dir); dir 618 drivers/infiniband/core/rw.c enum dma_data_direction dir) dir 626 drivers/infiniband/core/rw.c ib_dma_unmap_sg(qp->pd->device, sg, sg_cnt, dir); dir 628 drivers/infiniband/core/rw.c ib_dma_unmap_sg(qp->pd->device, prot_sg, prot_sg_cnt, dir); dir 1062 drivers/infiniband/hw/bnxt_re/main.c static int bnxt_re_query_hwrm_pri2cos(struct bnxt_re_dev *rdev, u8 dir, dir 1080 drivers/infiniband/hw/bnxt_re/main.c flags |= (dir & 0x01); dir 157 drivers/infiniband/hw/efa/efa_verbs.c size_t size, enum dma_data_direction dir) dir 165 drivers/infiniband/hw/efa/efa_verbs.c *dma_addr = dma_map_single(&dev->pdev->dev, addr, size, dir); dir 254 drivers/infiniband/hw/hfi1/fault.c debugfs_remove_recursive(ibd->fault->dir); dir 289 drivers/infiniband/hw/hfi1/fault.c ibd->fault->dir = fault_dir; dir 62 drivers/infiniband/hw/hfi1/fault.h struct dentry *dir; dir 581 drivers/infiniband/hw/mlx5/mr.c struct dentry *dir; dir 592 drivers/infiniband/hw/mlx5/mr.c dir = debugfs_create_dir(ent->name, cache->root); dir 593 drivers/infiniband/hw/mlx5/mr.c debugfs_create_file("size", 0600, dir, ent, &size_fops); dir 594 drivers/infiniband/hw/mlx5/mr.c debugfs_create_file("limit", 0600, dir, ent, &limit_fops); dir 595 drivers/infiniband/hw/mlx5/mr.c debugfs_create_u32("cur", 0400, dir, &ent->cur); dir 596 drivers/infiniband/hw/mlx5/mr.c debugfs_create_u32("miss", 0600, dir, &ent->miss); dir 570 drivers/infiniband/hw/mthca/mthca_memfree.c int start, end, dir; dir 583 drivers/infiniband/hw/mthca/mthca_memfree.c dir = 1; dir 592 drivers/infiniband/hw/mthca/mthca_memfree.c dir = -1; dir 600 drivers/infiniband/hw/mthca/mthca_memfree.c for (i = start; i != end; i += dir) dir 608 drivers/infiniband/hw/mthca/mthca_memfree.c for (i = start; i != end; i += dir) dir 311 drivers/infiniband/hw/ocrdma/ocrdma.h struct dentry *dir; dir 769 drivers/infiniband/hw/ocrdma/ocrdma_stats.c dev->dir = debugfs_create_dir(pci_name(pdev), ocrdma_dbgfs_dir); dir 773 drivers/infiniband/hw/ocrdma/ocrdma_stats.c debugfs_create_file("resource_stats", S_IRUSR, dev->dir, dir 778 drivers/infiniband/hw/ocrdma/ocrdma_stats.c debugfs_create_file("rx_stats", S_IRUSR, dev->dir, &dev->rx_stats, dir 783 drivers/infiniband/hw/ocrdma/ocrdma_stats.c debugfs_create_file("wqe_stats", S_IRUSR, dev->dir, &dev->wqe_stats, dir 788 drivers/infiniband/hw/ocrdma/ocrdma_stats.c debugfs_create_file("tx_stats", S_IRUSR, dev->dir, &dev->tx_stats, dir 793 drivers/infiniband/hw/ocrdma/ocrdma_stats.c debugfs_create_file("db_err_stats", S_IRUSR, dev->dir, dir 798 drivers/infiniband/hw/ocrdma/ocrdma_stats.c debugfs_create_file("tx_qp_err_stats", S_IRUSR, dev->dir, dir 803 drivers/infiniband/hw/ocrdma/ocrdma_stats.c debugfs_create_file("rx_qp_err_stats", S_IRUSR, dev->dir, dir 808 drivers/infiniband/hw/ocrdma/ocrdma_stats.c debugfs_create_file("tx_dbg_stats", S_IRUSR, dev->dir, dir 813 drivers/infiniband/hw/ocrdma/ocrdma_stats.c debugfs_create_file("rx_dbg_stats", S_IRUSR, dev->dir, dir 818 drivers/infiniband/hw/ocrdma/ocrdma_stats.c debugfs_create_file("driver_dbg_stats", S_IRUSR, dev->dir, dir 823 drivers/infiniband/hw/ocrdma/ocrdma_stats.c debugfs_create_file("reset_stats", 0200, dev->dir, &dev->reset_stats, dir 829 drivers/infiniband/hw/ocrdma/ocrdma_stats.c debugfs_remove_recursive(dev->dir); dir 794 drivers/infiniband/hw/qib/qib.h int (*f_gpio_mod)(struct qib_devdata *dd, u32 out, u32 dir, dir 51 drivers/infiniband/hw/qib/qib_fs.c static int qibfs_mknod(struct inode *dir, struct dentry *dentry, dir 56 drivers/infiniband/hw/qib/qib_fs.c struct inode *inode = new_inode(dir->i_sb); dir 75 drivers/infiniband/hw/qib/qib_fs.c inc_nlink(dir); dir 362 drivers/infiniband/hw/qib/qib_fs.c struct dentry *dir, *tmp; dir 368 drivers/infiniband/hw/qib/qib_fs.c ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir, dir 376 drivers/infiniband/hw/qib/qib_fs.c ret = create_file("counters", S_IFREG|S_IRUGO, dir, &tmp, dir 383 drivers/infiniband/hw/qib/qib_fs.c ret = create_file("counter_names", S_IFREG|S_IRUGO, dir, &tmp, dir 390 drivers/infiniband/hw/qib/qib_fs.c ret = create_file("portcounter_names", S_IFREG|S_IRUGO, dir, &tmp, dir 402 drivers/infiniband/hw/qib/qib_fs.c ret = create_file(fname, S_IFREG|S_IRUGO, dir, &tmp, dir 412 drivers/infiniband/hw/qib/qib_fs.c ret = create_file(fname, S_IFREG|S_IRUGO, dir, &tmp, dir 421 drivers/infiniband/hw/qib/qib_fs.c ret = create_file("flash", S_IFREG|S_IWUSR|S_IRUGO, dir, &tmp, dir 464 drivers/infiniband/hw/qib/qib_fs.c struct dentry *dir, *root; dir 471 drivers/infiniband/hw/qib/qib_fs.c dir = lookup_one_len(unit, root, strlen(unit)); dir 473 drivers/infiniband/hw/qib/qib_fs.c if (IS_ERR(dir)) { dir 474 drivers/infiniband/hw/qib/qib_fs.c ret = PTR_ERR(dir); dir 479 drivers/infiniband/hw/qib/qib_fs.c inode_lock(d_inode(dir)); dir 480 drivers/infiniband/hw/qib/qib_fs.c remove_file(dir, "counters"); dir 481 drivers/infiniband/hw/qib/qib_fs.c remove_file(dir, "counter_names"); dir 482 drivers/infiniband/hw/qib/qib_fs.c remove_file(dir, "portcounter_names"); dir 487 drivers/infiniband/hw/qib/qib_fs.c remove_file(dir, fname); dir 490 drivers/infiniband/hw/qib/qib_fs.c remove_file(dir, fname); dir 493 drivers/infiniband/hw/qib/qib_fs.c remove_file(dir, "flash"); dir 494 drivers/infiniband/hw/qib/qib_fs.c inode_unlock(d_inode(dir)); dir 495 drivers/infiniband/hw/qib/qib_fs.c ret = simple_rmdir(d_inode(root), dir); dir 496 drivers/infiniband/hw/qib/qib_fs.c d_drop(dir); dir 497 drivers/infiniband/hw/qib/qib_fs.c dput(dir); dir 3038 drivers/infiniband/hw/qib/qib_iba6120.c static int gpio_6120_mod(struct qib_devdata *dd, u32 out, u32 dir, u32 mask) dir 3045 drivers/infiniband/hw/qib/qib_iba6120.c dir &= mask; dir 3049 drivers/infiniband/hw/qib/qib_iba6120.c dd->cspec->extctrl |= ((u64) dir << SYM_LSB(EXTCtrl, GPIOOe)); dir 3749 drivers/infiniband/hw/qib/qib_iba7220.c static int gpio_7220_mod(struct qib_devdata *dd, u32 out, u32 dir, u32 mask) dir 3756 drivers/infiniband/hw/qib/qib_iba7220.c dir &= mask; dir 3760 drivers/infiniband/hw/qib/qib_iba7220.c dd->cspec->extctrl |= ((u64) dir << SYM_LSB(EXTCtrl, GPIOOe)); dir 5696 drivers/infiniband/hw/qib/qib_iba7322.c static int gpio_7322_mod(struct qib_devdata *dd, u32 out, u32 dir, u32 mask) dir 5703 drivers/infiniband/hw/qib/qib_iba7322.c dir &= mask; dir 5707 drivers/infiniband/hw/qib/qib_iba7322.c dd->cspec->extctrl |= ((u64) dir << SYM_LSB(EXTCtrl, GPIOOe)); dir 79 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h u64 *dir; dir 62 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c pdir->dir = dma_alloc_coherent(&dev->pdev->dev, PAGE_SIZE, dir 64 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c if (!pdir->dir) dir 75 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c (dma_addr_t *)&pdir->dir[i], dir 151 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c table, pdir->dir[i]); dir 161 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c if (pdir->dir) { dir 164 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c pdir->dir, pdir->dir_dma); dir 117 drivers/infiniband/sw/rxe/rxe_loc.h int length, enum copy_direction dir, u32 *crcp); dir 121 drivers/infiniband/sw/rxe/rxe_loc.h enum copy_direction dir, u32 *crcp); dir 345 drivers/infiniband/sw/rxe/rxe_mr.c enum copy_direction dir, u32 *crcp) dir 363 drivers/infiniband/sw/rxe/rxe_mr.c src = (dir == to_mem_obj) ? dir 366 drivers/infiniband/sw/rxe/rxe_mr.c dest = (dir == to_mem_obj) ? dir 395 drivers/infiniband/sw/rxe/rxe_mr.c src = (dir == to_mem_obj) ? addr : va; dir 396 drivers/infiniband/sw/rxe/rxe_mr.c dest = (dir == to_mem_obj) ? va : addr; dir 441 drivers/infiniband/sw/rxe/rxe_mr.c enum copy_direction dir, dir 503 drivers/infiniband/sw/rxe/rxe_mr.c err = rxe_mem_copy(mem, iova, addr, bytes, dir, crcp); dir 410 drivers/infiniband/ulp/iser/iscsi_iser.c enum iser_data_dir dir = iser_task->dir[ISER_DIR_IN] ? dir 413 drivers/infiniband/ulp/iser/iscsi_iser.c return iser_check_task_pi_status(iser_task, dir, sector); dir 515 drivers/infiniband/ulp/iser/iscsi_iser.h int dir[ISER_DIRS_NUM]; dir 595 drivers/infiniband/ulp/iser/iscsi_iser.h enum iser_data_dir dir, dir 598 drivers/infiniband/ulp/iser/iscsi_iser.h enum iser_data_dir dir); dir 622 drivers/infiniband/ulp/iser/iscsi_iser.h enum dma_data_direction dir); dir 629 drivers/infiniband/ulp/iser/iser_initiator.c if (iser_task->dir[ISER_DIR_IN]) { dir 635 drivers/infiniband/ulp/iser/iser_initiator.c if (iser_task->dir[ISER_DIR_OUT]) { dir 743 drivers/infiniband/ulp/iser/iser_initiator.c iser_task->dir[ISER_DIR_IN] = 0; dir 744 drivers/infiniband/ulp/iser/iser_initiator.c iser_task->dir[ISER_DIR_OUT] = 0; dir 765 drivers/infiniband/ulp/iser/iser_initiator.c if (iser_task->dir[ISER_DIR_IN]) { dir 776 drivers/infiniband/ulp/iser/iser_initiator.c if (iser_task->dir[ISER_DIR_OUT]) { dir 169 drivers/infiniband/ulp/iser/iser_memory.c iser_task->dir[iser_dir] = 1; dir 182 drivers/infiniband/ulp/iser/iser_memory.c enum dma_data_direction dir) dir 187 drivers/infiniband/ulp/iser/iser_memory.c ib_dma_unmap_sg(dev, data->sg, data->size, dir); dir 501 drivers/infiniband/ulp/iser/iser_memory.c enum iser_data_dir dir, dir 506 drivers/infiniband/ulp/iser/iser_memory.c struct iser_data_buf *mem = &task->data[dir]; dir 507 drivers/infiniband/ulp/iser/iser_memory.c struct iser_mem_reg *reg = &task->rdma_reg[dir]; dir 525 drivers/infiniband/ulp/iser/iser_memory.c err = iser_reg_sig_mr(task, mem, &task->prot[dir], dir 543 drivers/infiniband/ulp/iser/iser_memory.c enum iser_data_dir dir) dir 547 drivers/infiniband/ulp/iser/iser_memory.c device->reg_ops->unreg_mem(task, dir); dir 1489 drivers/infiniband/ulp/isert/ib_isert.c enum dma_data_direction dir = target_reverse_dma_direction(se_cmd); dir 1498 drivers/infiniband/ulp/isert/ib_isert.c se_cmd->t_prot_nents, dir); dir 1501 drivers/infiniband/ulp/isert/ib_isert.c se_cmd->t_data_sg, se_cmd->t_data_nents, dir); dir 2122 drivers/infiniband/ulp/isert/ib_isert.c enum dma_data_direction dir = target_reverse_dma_direction(se_cmd); dir 2131 drivers/infiniband/ulp/isert/ib_isert.c if (dir == DMA_FROM_DEVICE) { dir 2152 drivers/infiniband/ulp/isert/ib_isert.c &sig_attrs, addr, rkey, dir); dir 2156 drivers/infiniband/ulp/isert/ib_isert.c offset, addr, rkey, dir); dir 657 drivers/infiniband/ulp/srpt/ib_srpt.c enum dma_data_direction dir) dir 670 drivers/infiniband/ulp/srpt/ib_srpt.c kmem_cache_size(buf_cache), dir); dir 693 drivers/infiniband/ulp/srpt/ib_srpt.c enum dma_data_direction dir) dir 699 drivers/infiniband/ulp/srpt/ib_srpt.c kmem_cache_size(buf_cache), dir); dir 718 drivers/infiniband/ulp/srpt/ib_srpt.c enum dma_data_direction dir) dir 730 drivers/infiniband/ulp/srpt/ib_srpt.c ring[i] = srpt_alloc_ioctx(sdev, ioctx_size, buf_cache, dir); dir 740 drivers/infiniband/ulp/srpt/ib_srpt.c srpt_free_ioctx(sdev, ring[i], buf_cache, dir); dir 758 drivers/infiniband/ulp/srpt/ib_srpt.c enum dma_data_direction dir) dir 766 drivers/infiniband/ulp/srpt/ib_srpt.c srpt_free_ioctx(sdev, ioctx_ring[i], buf_cache, dir); dir 892 drivers/infiniband/ulp/srpt/ib_srpt.c enum dma_data_direction dir = target_reverse_dma_direction(&ioctx->cmd); dir 919 drivers/infiniband/ulp/srpt/ib_srpt.c ctx->sg, ctx->nents, 0, remote_addr, rkey, dir); dir 948 drivers/infiniband/ulp/srpt/ib_srpt.c ctx->sg, ctx->nents, dir); dir 959 drivers/infiniband/ulp/srpt/ib_srpt.c enum dma_data_direction dir = target_reverse_dma_direction(&ioctx->cmd); dir 966 drivers/infiniband/ulp/srpt/ib_srpt.c ctx->sg, ctx->nents, dir); dir 1013 drivers/infiniband/ulp/srpt/ib_srpt.c struct srp_cmd *srp_cmd, enum dma_data_direction *dir, dir 1017 drivers/infiniband/ulp/srpt/ib_srpt.c BUG_ON(!dir); dir 1027 drivers/infiniband/ulp/srpt/ib_srpt.c *dir = DMA_FROM_DEVICE; dir 1030 drivers/infiniband/ulp/srpt/ib_srpt.c *dir = DMA_TO_DEVICE; dir 1032 drivers/infiniband/ulp/srpt/ib_srpt.c *dir = DMA_NONE; dir 1035 drivers/infiniband/ulp/srpt/ib_srpt.c ioctx->cmd.data_direction = *dir; dir 1495 drivers/infiniband/ulp/srpt/ib_srpt.c enum dma_data_direction dir; dir 1520 drivers/infiniband/ulp/srpt/ib_srpt.c rc = srpt_get_desc_tbl(recv_ioctx, send_ioctx, srp_cmd, &dir, dir 1533 drivers/infiniband/ulp/srpt/ib_srpt.c TCM_SIMPLE_TAG, dir, TARGET_SCF_ACK_KREF, dir 411 drivers/input/joystick/grip_mp.c int dir = (packet >> 8) & 0xf; /* eight way directional value */ dir 413 drivers/input/joystick/grip_mp.c port->yaxes = ((axis_map[dir] >> 2) & 3) - 1; dir 414 drivers/input/joystick/grip_mp.c port->xaxes = (axis_map[dir] & 3) - 1; dir 54 drivers/input/keyboard/adp5588-keys.c u8 dir[3]; dir 83 drivers/input/keyboard/adp5588-keys.c if (kpad->dir[bank] & bit) dir 122 drivers/input/keyboard/adp5588-keys.c kpad->dir[bank] &= ~bit; dir 123 drivers/input/keyboard/adp5588-keys.c ret = adp5588_write(kpad->client, GPIO_DIR1 + bank, kpad->dir[bank]); dir 140 drivers/input/keyboard/adp5588-keys.c kpad->dir[bank] |= bit; dir 150 drivers/input/keyboard/adp5588-keys.c kpad->dir[bank]); dir 222 drivers/input/keyboard/adp5588-keys.c kpad->dir[i] = adp5588_read(kpad->client, GPIO_DIR1 + i); dir 245 drivers/input/keyboard/adp5589-keys.c u8 dir[3]; dir 428 drivers/input/keyboard/adp5589-keys.c kpad->dir[bank] &= ~bit; dir 431 drivers/input/keyboard/adp5589-keys.c kpad->dir[bank]); dir 448 drivers/input/keyboard/adp5589-keys.c kpad->dir[bank] |= bit; dir 459 drivers/input/keyboard/adp5589-keys.c kpad->dir[bank]); dir 538 drivers/input/keyboard/adp5589-keys.c kpad->dir[i] = adp5589_read(kpad->client, kpad->var->reg( dir 51 drivers/input/misc/rotary_encoder.c signed char dir; /* 1 - clockwise, -1 - CCW */ dir 78 drivers/input/misc/rotary_encoder.c encoder->axis, encoder->dir); dir 82 drivers/input/misc/rotary_encoder.c if (encoder->dir < 0) { dir 124 drivers/input/misc/rotary_encoder.c encoder->dir = 2 - state; dir 147 drivers/input/misc/rotary_encoder.c encoder->dir = ((encoder->last_stable - state + 1) % 4) - 1; dir 170 drivers/input/misc/rotary_encoder.c encoder->dir = 1; dir 172 drivers/input/misc/rotary_encoder.c encoder->dir = -1; dir 89 drivers/input/misc/twl4030-vibra.c int dir; dir 93 drivers/input/misc/twl4030-vibra.c dir = info->direction; dir 106 drivers/input/misc/twl4030-vibra.c reg = (dir) ? (reg | TWL4030_VIBRA_DIR) : dir 227 drivers/input/touchscreen/wm97xx-core.c void wm97xx_config_gpio(struct wm97xx *wm, u32 gpio, enum wm97xx_gpio_dir dir, dir 260 drivers/input/touchscreen/wm97xx-core.c if (dir == WM97XX_GPIO_IN) dir 2474 drivers/iommu/amd_iommu.c int dir) dir 2507 drivers/iommu/amd_iommu.c enum dma_data_direction dir, dir 2524 drivers/iommu/amd_iommu.c return __map_single(dev, dma_dom, paddr, size, dir, dma_mask); dir 2531 drivers/iommu/amd_iommu.c enum dma_data_direction dir, unsigned long attrs) dir 2542 drivers/iommu/amd_iommu.c __unmap_single(dma_dom, dma_addr, size, dir); dir 2667 drivers/iommu/amd_iommu.c int nelems, enum dma_data_direction dir, dir 2683 drivers/iommu/amd_iommu.c __unmap_single(dma_dom, startaddr, npages << PAGE_SHIFT, dir); dir 364 drivers/iommu/dma-iommu.c static int dma_info_to_prot(enum dma_data_direction dir, bool coherent, dir 372 drivers/iommu/dma-iommu.c switch (dir) { dir 653 drivers/iommu/dma-iommu.c dma_addr_t dma_handle, size_t size, enum dma_data_direction dir) dir 661 drivers/iommu/dma-iommu.c arch_sync_dma_for_cpu(dev, phys, size, dir); dir 665 drivers/iommu/dma-iommu.c dma_addr_t dma_handle, size_t size, enum dma_data_direction dir) dir 673 drivers/iommu/dma-iommu.c arch_sync_dma_for_device(dev, phys, size, dir); dir 678 drivers/iommu/dma-iommu.c enum dma_data_direction dir) dir 687 drivers/iommu/dma-iommu.c arch_sync_dma_for_cpu(dev, sg_phys(sg), sg->length, dir); dir 692 drivers/iommu/dma-iommu.c enum dma_data_direction dir) dir 701 drivers/iommu/dma-iommu.c arch_sync_dma_for_device(dev, sg_phys(sg), sg->length, dir); dir 705 drivers/iommu/dma-iommu.c unsigned long offset, size_t size, enum dma_data_direction dir, dir 710 drivers/iommu/dma-iommu.c int prot = dma_info_to_prot(dir, coherent, attrs); dir 716 drivers/iommu/dma-iommu.c arch_sync_dma_for_device(dev, phys, size, dir); dir 721 drivers/iommu/dma-iommu.c size_t size, enum dma_data_direction dir, unsigned long attrs) dir 724 drivers/iommu/dma-iommu.c iommu_dma_sync_single_for_cpu(dev, dma_handle, size, dir); dir 811 drivers/iommu/dma-iommu.c int nents, enum dma_data_direction dir, unsigned long attrs) dir 817 drivers/iommu/dma-iommu.c int prot = dma_info_to_prot(dir, dev_is_dma_coherent(dev), attrs); dir 824 drivers/iommu/dma-iommu.c iommu_dma_sync_sg_for_device(dev, sg, nents, dir); dir 886 drivers/iommu/dma-iommu.c int nents, enum dma_data_direction dir, unsigned long attrs) dir 893 drivers/iommu/dma-iommu.c iommu_dma_sync_sg_for_cpu(dev, sg, nents, dir); dir 910 drivers/iommu/dma-iommu.c size_t size, enum dma_data_direction dir, unsigned long attrs) dir 913 drivers/iommu/dma-iommu.c dma_info_to_prot(dir, false, attrs) | IOMMU_MMIO); dir 917 drivers/iommu/dma-iommu.c size_t size, enum dma_data_direction dir, unsigned long attrs) dir 3493 drivers/iommu/intel-iommu.c size_t size, int dir, u64 dma_mask) dir 3503 drivers/iommu/intel-iommu.c BUG_ON(dir == DMA_NONE); dir 3520 drivers/iommu/intel-iommu.c if (dir == DMA_TO_DEVICE || dir == DMA_BIDIRECTIONAL || \ dir 3523 drivers/iommu/intel-iommu.c if (dir == DMA_FROM_DEVICE || dir == DMA_BIDIRECTIONAL) dir 3547 drivers/iommu/intel-iommu.c size, (unsigned long long)paddr, dir); dir 3553 drivers/iommu/intel-iommu.c enum dma_data_direction dir, dir 3558 drivers/iommu/intel-iommu.c size, dir, *dev->dma_mask); dir 3559 drivers/iommu/intel-iommu.c return dma_direct_map_page(dev, page, offset, size, dir, attrs); dir 3563 drivers/iommu/intel-iommu.c size_t size, enum dma_data_direction dir, dir 3567 drivers/iommu/intel-iommu.c return __intel_map_single(dev, phys_addr, size, dir, dir 3569 drivers/iommu/intel-iommu.c return dma_direct_map_resource(dev, phys_addr, size, dir, attrs); dir 3617 drivers/iommu/intel-iommu.c size_t size, enum dma_data_direction dir, dir 3623 drivers/iommu/intel-iommu.c dma_direct_unmap_page(dev, dev_addr, size, dir, attrs); dir 3627 drivers/iommu/intel-iommu.c size_t size, enum dma_data_direction dir, unsigned long attrs) dir 3688 drivers/iommu/intel-iommu.c int nelems, enum dma_data_direction dir, dir 3697 drivers/iommu/intel-iommu.c return dma_direct_unmap_sg(dev, sglist, nelems, dir, attrs); dir 3709 drivers/iommu/intel-iommu.c enum dma_data_direction dir, unsigned long attrs) dir 3721 drivers/iommu/intel-iommu.c BUG_ON(dir == DMA_NONE); dir 3723 drivers/iommu/intel-iommu.c return dma_direct_map_sg(dev, sglist, nelems, dir, attrs); dir 3745 drivers/iommu/intel-iommu.c if (dir == DMA_TO_DEVICE || dir == DMA_BIDIRECTIONAL || \ dir 3748 drivers/iommu/intel-iommu.c if (dir == DMA_FROM_DEVICE || dir == DMA_BIDIRECTIONAL) dir 3792 drivers/iommu/intel-iommu.c enum dma_data_direction dir, enum dma_sync_target target) dir 3803 drivers/iommu/intel-iommu.c swiotlb_tbl_sync_single(dev, tlb_addr, size, dir, target); dir 3808 drivers/iommu/intel-iommu.c enum dma_data_direction dir, unsigned long attrs, dir 3821 drivers/iommu/intel-iommu.c if (WARN_ON(dir == DMA_NONE || !domain)) dir 3838 drivers/iommu/intel-iommu.c if (dir == DMA_TO_DEVICE || dir == DMA_BIDIRECTIONAL || dir 3841 drivers/iommu/intel-iommu.c if (dir == DMA_FROM_DEVICE || dir == DMA_BIDIRECTIONAL) dir 3851 drivers/iommu/intel-iommu.c paddr, size, aligned_size, dir, attrs); dir 3860 drivers/iommu/intel-iommu.c (dir == DMA_TO_DEVICE || dir 3861 drivers/iommu/intel-iommu.c dir == DMA_BIDIRECTIONAL)) { dir 3884 drivers/iommu/intel-iommu.c aligned_size, dir, attrs); dir 3888 drivers/iommu/intel-iommu.c size, (unsigned long long)paddr, dir); dir 3895 drivers/iommu/intel-iommu.c enum dma_data_direction dir, unsigned long attrs) dir 3912 drivers/iommu/intel-iommu.c aligned_size, dir, attrs); dir 3919 drivers/iommu/intel-iommu.c size_t size, enum dma_data_direction dir, unsigned long attrs) dir 3922 drivers/iommu/intel-iommu.c size, dir, attrs, *dev->dma_mask); dir 3927 drivers/iommu/intel-iommu.c enum dma_data_direction dir, unsigned long attrs) dir 3930 drivers/iommu/intel-iommu.c dir, attrs, *dev->dma_mask); dir 3935 drivers/iommu/intel-iommu.c enum dma_data_direction dir, unsigned long attrs) dir 3937 drivers/iommu/intel-iommu.c bounce_unmap_single(dev, dev_addr, size, dir, attrs); dir 3942 drivers/iommu/intel-iommu.c enum dma_data_direction dir, unsigned long attrs) dir 3944 drivers/iommu/intel-iommu.c bounce_unmap_single(dev, dev_addr, size, dir, attrs); dir 3949 drivers/iommu/intel-iommu.c enum dma_data_direction dir, unsigned long attrs) dir 3956 drivers/iommu/intel-iommu.c sg_dma_len(sg), dir, attrs); dir 3961 drivers/iommu/intel-iommu.c enum dma_data_direction dir, unsigned long attrs) dir 3969 drivers/iommu/intel-iommu.c dir, attrs); dir 3978 drivers/iommu/intel-iommu.c bounce_unmap_sg(dev, sglist, i, dir, attrs | DMA_ATTR_SKIP_CPU_SYNC); dir 3984 drivers/iommu/intel-iommu.c size_t size, enum dma_data_direction dir) dir 3986 drivers/iommu/intel-iommu.c bounce_sync_single(dev, addr, size, dir, SYNC_FOR_CPU); dir 3991 drivers/iommu/intel-iommu.c size_t size, enum dma_data_direction dir) dir 3993 drivers/iommu/intel-iommu.c bounce_sync_single(dev, addr, size, dir, SYNC_FOR_DEVICE); dir 3998 drivers/iommu/intel-iommu.c int nelems, enum dma_data_direction dir) dir 4005 drivers/iommu/intel-iommu.c sg_dma_len(sg), dir, SYNC_FOR_CPU); dir 4010 drivers/iommu/intel-iommu.c int nelems, enum dma_data_direction dir) dir 4017 drivers/iommu/intel-iommu.c sg_dma_len(sg), dir, SYNC_FOR_DEVICE); dir 176 drivers/iommu/intel-pasid.c struct pasid_dir_entry *dir; dir 191 drivers/iommu/intel-pasid.c dir = pasid_table->table; dir 194 drivers/iommu/intel-pasid.c table = get_pasid_table_from_pde(&dir[i]); dir 228 drivers/iommu/intel-pasid.c struct pasid_dir_entry *dir; dir 237 drivers/iommu/intel-pasid.c dir = pasid_table->table; dir 243 drivers/iommu/intel-pasid.c entries = get_pasid_table_from_pde(&dir[dir_index]); dir 251 drivers/iommu/intel-pasid.c WRITE_ONCE(dir[dir_index].val, dir 106 drivers/leds/leds-blinkm.c u8 dir:2; dir 341 drivers/leds/leds-pca963x.c pdata->dir = PCA963X_INVERTED; dir 343 drivers/leds/leds-pca963x.c pdata->dir = PCA963X_NORMAL; dir 447 drivers/leds/leds-pca963x.c if (pdata->dir == PCA963X_INVERTED) dir 61 drivers/mailbox/hi6220-mailbox.c unsigned int dir, dst_irq, ack_irq; dir 131 drivers/mailbox/hi6220-mailbox.c mchan->dir = MBOX_TX; dir 175 drivers/mailbox/hi6220-mailbox.c if (mchan->dir == MBOX_TX) dir 198 drivers/mailbox/hi6220-mailbox.c mchan->dir = 0; dir 589 drivers/mailbox/ti-msgmgr.c char *dir; dir 613 drivers/mailbox/ti-msgmgr.c dir = "thr"; dir 615 drivers/mailbox/ti-msgmgr.c dev_name(dev), dir, qinst->proxy_id); dir 627 drivers/mailbox/ti-msgmgr.c dir = qinst->is_tx ? "tx" : "rx"; dir 629 drivers/mailbox/ti-msgmgr.c dev_name(dev), dir, qinst->queue_id, qinst->proxy_id); dir 1299 drivers/md/dm-writecache.c int dir = bio_data_dir(bio); dir 1300 drivers/md/dm-writecache.c if (atomic_dec_and_test(&wc->bio_in_progress[dir])) dir 1301 drivers/md/dm-writecache.c if (unlikely(waitqueue_active(&wc->bio_in_progress_wait[dir]))) dir 1302 drivers/md/dm-writecache.c wake_up(&wc->bio_in_progress_wait[dir]); dir 100 drivers/md/md-faulty.c static int check_sector(struct faulty_conf *conf, sector_t start, sector_t end, int dir) dir 108 drivers/md/md-faulty.c switch (conf->modes[i] * 2 + dir) { dir 541 drivers/media/dvb-frontends/dib7000p.c static int dib7000p_cfg_gpio(struct dib7000p_state *st, u8 num, u8 dir, u8 val) dir 545 drivers/media/dvb-frontends/dib7000p.c st->gpio_dir |= (dir & 0x1) << num; /* set the new direction */ dir 556 drivers/media/dvb-frontends/dib7000p.c static int dib7000p_set_gpio(struct dvb_frontend *demod, u8 num, u8 dir, u8 val) dir 559 drivers/media/dvb-frontends/dib7000p.c return dib7000p_cfg_gpio(state, num, dir, val); dir 54 drivers/media/dvb-frontends/dib7000p.h int (*set_gpio)(struct dvb_frontend *demod, u8 num, u8 dir, u8 val); dir 836 drivers/media/dvb-frontends/dib8000.c static int dib8000_cfg_gpio(struct dib8000_state *st, u8 num, u8 dir, u8 val) dir 840 drivers/media/dvb-frontends/dib8000.c st->cfg.gpio_dir |= (dir & 0x1) << num; /* set the new direction */ dir 853 drivers/media/dvb-frontends/dib8000.c static int dib8000_set_gpio(struct dvb_frontend *fe, u8 num, u8 dir, u8 val) dir 856 drivers/media/dvb-frontends/dib8000.c return dib8000_cfg_gpio(state, num, dir, val); dir 47 drivers/media/dvb-frontends/dib8000.h int (*set_gpio)(struct dvb_frontend *fe, u8 num, u8 dir, u8 val); dir 1754 drivers/media/dvb-frontends/dib9000.c static int dib9000_cfg_gpio(struct dib9000_state *st, u8 num, u8 dir, u8 val) dir 1758 drivers/media/dvb-frontends/dib9000.c st->gpio_dir |= (dir & 0x1) << num; /* set the new direction */ dir 1771 drivers/media/dvb-frontends/dib9000.c int dib9000_set_gpio(struct dvb_frontend *fe, u8 num, u8 dir, u8 val) dir 1774 drivers/media/dvb-frontends/dib9000.c return dib9000_cfg_gpio(state, num, dir, val); dir 36 drivers/media/dvb-frontends/dib9000.h extern int dib9000_set_gpio(struct dvb_frontend *fe, u8 num, u8 dir, u8 val); dir 70 drivers/media/dvb-frontends/dib9000.h static inline int dib9000_set_gpio(struct dvb_frontend *fe, u8 num, u8 dir, u8 val) dir 1588 drivers/media/dvb-frontends/stv090x.c s32 i, j, steps, dir; dir 1615 drivers/media/dvb-frontends/stv090x.c dir = 1; dir 1620 drivers/media/dvb-frontends/stv090x.c if (dir > 0) dir 1625 drivers/media/dvb-frontends/stv090x.c dir *= -1; dir 1683 drivers/media/dvb-frontends/stv090x.c s32 tmg_cpt = 0, dir = 1, steps, cur_step = 0, freq; dir 1755 drivers/media/dvb-frontends/stv090x.c dir = 1; dir 1783 drivers/media/dvb-frontends/stv090x.c dir *= -1; dir 1788 drivers/media/dvb-frontends/stv090x.c if (dir > 0) dir 2132 drivers/media/dvb-frontends/stv090x.c s32 car_step, steps, cur_step, dir, freq, timeout_lock; dir 2173 drivers/media/dvb-frontends/stv090x.c dir = 1; dir 2178 drivers/media/dvb-frontends/stv090x.c if (dir > 0) dir 2228 drivers/media/dvb-frontends/stv090x.c dir *= -1; dir 4879 drivers/media/dvb-frontends/stv090x.c static int stv090x_set_gpio(struct dvb_frontend *fe, u8 gpio, u8 dir, dir 4885 drivers/media/dvb-frontends/stv090x.c STV090x_SETFIELD(reg, GPIOx_OPD_FIELD, dir); dir 95 drivers/media/dvb-frontends/stv090x.h int (*set_gpio)(struct dvb_frontend *fe, u8 gpio, u8 dir, u8 value, dir 34 drivers/media/i2c/s5c73m3/s5c73m3-spi.c enum spi_direction dir) dir 42 drivers/media/i2c/s5c73m3/s5c73m3-spi.c if (dir == SPI_DIR_TX) dir 278 drivers/media/pci/ddbridge/ddbridge-core.c static void dma_free(struct pci_dev *pdev, struct ddb_dma *dma, int dir) dir 289 drivers/media/pci/ddbridge/ddbridge-core.c dir ? DMA_TO_DEVICE : dir 303 drivers/media/pci/ddbridge/ddbridge-core.c static int dma_alloc(struct pci_dev *pdev, struct ddb_dma *dma, int dir) dir 317 drivers/media/pci/ddbridge/ddbridge-core.c dir ? DMA_TO_DEVICE : dir 893 drivers/media/pci/sta2x11/sta2x11_vip.c static int vip_gpio_reserve(struct device *dev, int pin, int dir, dir 907 drivers/media/pci/sta2x11/sta2x11_vip.c ret = gpio_direction_output(pin, dir); dir 341 drivers/media/pci/ttpci/av7110.c static inline void start_debi_dma(struct av7110 *av7110, int dir, dir 344 drivers/media/pci/ttpci/av7110.c dprintk(8, "%c %08lx %u\n", dir == DEBI_READ ? 'R' : 'W', addr, len); dir 354 drivers/media/pci/ttpci/av7110.c if (dir == DEBI_WRITE) dir 323 drivers/media/platform/m2m-deinterlace.c ctx->xt->dir = DMA_MEM_TO_MEM; dir 264 drivers/media/platform/omap/omap_vout_vrfb.c xt->dir = DMA_MEM_TO_MEM; dir 62 drivers/media/platform/omap3isp/ispstat.c u32 buf_size, enum dma_data_direction dir, dir 68 drivers/media/platform/omap3isp/ispstat.c dma_sync(stat->isp->dev, buf->dma_addr, 0, MAGIC_SIZE, dir); dir 70 drivers/media/platform/omap3isp/ispstat.c buf_size & ~PAGE_MASK, MAGIC_SIZE, dir); dir 76 drivers/media/platform/omap3isp/ispstat.c enum dma_data_direction dir) dir 81 drivers/media/platform/omap3isp/ispstat.c __isp_stat_buf_sync_magic(stat, buf, buf_size, dir, dir 88 drivers/media/platform/omap3isp/ispstat.c enum dma_data_direction dir) dir 93 drivers/media/platform/omap3isp/ispstat.c __isp_stat_buf_sync_magic(stat, buf, buf_size, dir, dir 745 drivers/media/platform/ti-vpe/vpdma.c int dir, chan; dir 747 drivers/media/platform/ti-vpe/vpdma.c dir = dtd_get_dir(dtd); dir 751 drivers/media/platform/ti-vpe/vpdma.c dir == DTD_DIR_OUT ? "outbound" : "inbound", chan); dir 758 drivers/media/platform/ti-vpe/vpdma.c if (dir == DTD_DIR_IN) dir 766 drivers/media/platform/ti-vpe/vpdma.c dtd_get_mode(dtd), dir, chan, dtd_get_priority(dtd), dir 769 drivers/media/platform/ti-vpe/vpdma.c if (dir == DTD_DIR_IN) dir 777 drivers/media/platform/ti-vpe/vpdma.c if (dir == DTD_DIR_IN) dir 269 drivers/media/platform/ti-vpe/vpdma_priv.h static inline u32 dtd_pkt_ctl(bool mode, bool dir, int chan, int pri, dir 273 drivers/media/platform/ti-vpe/vpdma_priv.h (dir << DTD_DIR_SHFT) | (chan << DTD_CHAN_SHFT) | dir 354 drivers/media/platform/xilinx/xilinx-dma.c dma->xt.dir = DMA_DEV_TO_MEM; dir 360 drivers/media/platform/xilinx/xilinx-dma.c dma->xt.dir = DMA_MEM_TO_DEV; dir 788 drivers/media/radio/radio-wl1273.c unsigned int dir = (seek_upward == 0) ? 0 : 1; dir 794 drivers/media/radio/radio-wl1273.c if (dir && f + radio->spacing <= radio->rangehigh) dir 796 drivers/media/radio/radio-wl1273.c else if (dir && wrap_around) dir 822 drivers/media/radio/radio-wl1273.c r = core->write(core, WL1273_SEARCH_DIR_SET, dir); dir 1287 drivers/media/rc/imon.c int dir = 0; dir 1316 drivers/media/rc/imon.c dir = 1; dir 1318 drivers/media/rc/imon.c dir = -1; dir 1327 drivers/media/rc/imon.c if (dir) { dir 1328 drivers/media/rc/imon.c input_report_rel(ictx->idev, REL_WHEEL, dir); dir 1359 drivers/media/rc/imon.c int dir = 0; dir 1384 drivers/media/rc/imon.c dir = stabilize((int)rel_x, (int)rel_y, dir 1386 drivers/media/rc/imon.c if (!dir) { dir 1394 drivers/media/rc/imon.c buf[2] = dir & 0xFF; dir 1395 drivers/media/rc/imon.c buf[3] = (dir >> 8) & 0xFF; dir 1450 drivers/media/rc/imon.c dir = stabilize((int)rel_x, (int)rel_y, dir 1452 drivers/media/rc/imon.c if (!dir) { dir 1458 drivers/media/rc/imon.c buf[2] = dir & 0xFF; dir 1459 drivers/media/rc/imon.c buf[3] = (dir >> 8) & 0xFF; dir 100 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c u8 dir; dir 110 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c mxl_debug_adv("(%d, %d)", gpio_cfg->pin, gpio_cfg->dir); dir 121 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c tmp |= (gpio_cfg->dir << (gpio_cfg->pin + 4)); dir 134 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c tmp |= (gpio_cfg->dir << gpio_cfg->pin); dir 146 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c tmp |= (gpio_cfg->dir << (gpio_cfg->pin - 3)); dir 155 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c ret = (MXL_GPIO_DIR_OUTPUT == gpio_cfg->dir) ? dir 170 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c .dir = direction, dir 111 drivers/media/usb/uvc/uvc_debugfs.c struct dentry *dir; dir 113 drivers/media/usb/uvc/uvc_debugfs.c dir = debugfs_create_dir("uvcvideo", usb_debug_root); dir 114 drivers/media/usb/uvc/uvc_debugfs.c if (IS_ERR_OR_NULL(dir)) { dir 119 drivers/media/usb/uvc/uvc_debugfs.c uvc_debugfs_root_dir = dir; dir 1680 drivers/media/usb/uvc/uvc_driver.c static unsigned int uvc_print_terms(struct list_head *terms, u16 dir, dir 1689 drivers/media/usb/uvc/uvc_driver.c UVC_TERM_DIRECTION(term) != dir) dir 2121 drivers/media/usb/uvc/uvc_video.c unsigned int dir = stream->header.bEndpointAddress dir 2125 drivers/media/usb/uvc/uvc_video.c pipe = usb_sndbulkpipe(stream->dev->udev, epnum) | dir; dir 2808 drivers/media/v4l2-core/v4l2-ioctl.c const char *dir, *type; dir 2830 drivers/media/v4l2-core/v4l2-ioctl.c case _IOC_NONE: dir = "--"; break; dir 2831 drivers/media/v4l2-core/v4l2-ioctl.c case _IOC_READ: dir = "r-"; break; dir 2832 drivers/media/v4l2-core/v4l2-ioctl.c case _IOC_WRITE: dir = "-w"; break; dir 2833 drivers/media/v4l2-core/v4l2-ioctl.c case _IOC_READ | _IOC_WRITE: dir = "rw"; break; dir 2834 drivers/media/v4l2-core/v4l2-ioctl.c default: dir = "*ERR*"; break; dir 2837 drivers/media/v4l2-core/v4l2-ioctl.c type, _IOC_TYPE(cmd), dir, _IOC_NR(cmd), cmd); dir 4970 drivers/message/fusion/mptbase.c cfg.dir = 0; dir 5014 drivers/message/fusion/mptbase.c cfg.dir = 0; dir 5311 drivers/message/fusion/mptbase.c cfg.dir = 0; dir 5403 drivers/message/fusion/mptbase.c cfg.dir = 0; dir 5480 drivers/message/fusion/mptbase.c cfg.dir = 0; dir 5589 drivers/message/fusion/mptbase.c cfg.dir = 0; dir 5986 drivers/message/fusion/mptbase.c cfg.dir = 0; dir 6051 drivers/message/fusion/mptbase.c cfg.dir = 0; dir 6103 drivers/message/fusion/mptbase.c cfg.dir = 0; dir 6157 drivers/message/fusion/mptbase.c cfg.dir = 0; dir 6190 drivers/message/fusion/mptbase.c cfg.dir = 1; dir 6440 drivers/message/fusion/mptbase.c if (pCfg->dir) dir 902 drivers/message/fusion/mptbase.h u8 dir; dir 128 drivers/message/fusion/mptctl.c static MptSge_t *kbuf_alloc_2_sgl(int bytes, u32 dir, int sge_offset, int *frags, dir 1023 drivers/message/fusion/mptctl.c int dir; dir 1051 drivers/message/fusion/mptctl.c dir = PCI_DMA_TODEVICE; dir 1053 drivers/message/fusion/mptctl.c dir = PCI_DMA_FROMDEVICE; dir 1086 drivers/message/fusion/mptctl.c buflist[buflist_ent].kptr, this_alloc, dir); dir 1163 drivers/message/fusion/mptctl.c int dir; dir 1167 drivers/message/fusion/mptctl.c dir = PCI_DMA_TODEVICE; dir 1169 drivers/message/fusion/mptctl.c dir = PCI_DMA_FROMDEVICE; dir 1184 drivers/message/fusion/mptctl.c pci_unmap_single(ioc->pcidev, dma_addr, len, dir); dir 1202 drivers/message/fusion/mptctl.c pci_unmap_single(ioc->pcidev, dma_addr, len, dir); dir 2397 drivers/message/fusion/mptctl.c cfg.dir = 0; /* read */ dir 2605 drivers/message/fusion/mptctl.c cfg.dir = 0; dir 2653 drivers/message/fusion/mptctl.c cfg.dir = 0; dir 323 drivers/message/fusion/mptfc.c cfg.dir = 0; dir 754 drivers/message/fusion/mptfc.c cfg.dir = 0; dir 847 drivers/message/fusion/mptfc.c cfg.dir = 0; dir 862 drivers/message/fusion/mptfc.c cfg.dir = 1; dir 890 drivers/message/fusion/mptfc.c cfg.dir = 0; dir 1363 drivers/message/fusion/mptsas.c cfg.dir = 0; /* read */ dir 2024 drivers/message/fusion/mptsas.c cfg.dir = 0; /* read */ dir 2376 drivers/message/fusion/mptsas.c cfg.dir = 0; /* read */ dir 2509 drivers/message/fusion/mptsas.c cfg.dir = 0; /* read */ dir 2577 drivers/message/fusion/mptsas.c cfg.dir = 0; /* read */ dir 2659 drivers/message/fusion/mptsas.c cfg.dir = 0; /* read */ dir 2740 drivers/message/fusion/mptsas.c cfg.dir = 0; /* read */ dir 2780 drivers/message/fusion/mptscsih.c int my_idx, ii, dir; dir 2807 drivers/message/fusion/mptscsih.c dir = MPI_SCSIIO_CONTROL_READ; dir 2815 drivers/message/fusion/mptscsih.c dir = MPI_SCSIIO_CONTROL_READ; dir 2821 drivers/message/fusion/mptscsih.c dir = MPI_SCSIIO_CONTROL_READ; dir 2831 drivers/message/fusion/mptscsih.c dir = MPI_SCSIIO_CONTROL_READ; dir 2837 drivers/message/fusion/mptscsih.c dir = MPI_SCSIIO_CONTROL_READ; dir 2856 drivers/message/fusion/mptscsih.c dir = MPI_SCSIIO_CONTROL_WRITE; dir 2871 drivers/message/fusion/mptscsih.c dir = MPI_SCSIIO_CONTROL_READ; dir 2878 drivers/message/fusion/mptscsih.c dir = MPI_SCSIIO_CONTROL_READ; dir 2885 drivers/message/fusion/mptscsih.c dir = MPI_SCSIIO_CONTROL_READ; dir 2936 drivers/message/fusion/mptscsih.c pScsiReq->Control = cpu_to_le32(dir | MPI_SCSIIO_CONTROL_SIMPLEQ); dir 2938 drivers/message/fusion/mptscsih.c pScsiReq->Control = cpu_to_le32(dir | MPI_SCSIIO_CONTROL_UNTAGGED); dir 2941 drivers/message/fusion/mptscsih.c pScsiReq->Control = cpu_to_le32(dir | MPI_SCSIIO_CONTROL_UNTAGGED); dir 2957 drivers/message/fusion/mptscsih.c if (dir == MPI_SCSIIO_CONTROL_READ) dir 557 drivers/message/fusion/mptspi.c cfg.dir = 0; dir 892 drivers/message/fusion/mptspi.c cfg.dir = 1; dir 566 drivers/mfd/asic3.c u8 alt, pin, dir, init, bank_num, bit_num; dir 571 drivers/mfd/asic3.c dir = ASIC3_CONFIG_GPIO_DIR(config); dir 579 drivers/mfd/asic3.c dir_reg[bank_num] |= (dir << bit_num); dir 139 drivers/mfd/intel-lpss.c struct dentry *dir; dir 141 drivers/mfd/intel-lpss.c dir = debugfs_create_dir(dev_name(lpss->dev), intel_lpss_debugfs); dir 142 drivers/mfd/intel-lpss.c if (IS_ERR(dir)) dir 143 drivers/mfd/intel-lpss.c return PTR_ERR(dir); dir 148 drivers/mfd/intel-lpss.c debugfs_create_x32("capabilities", S_IRUGO, dir, &lpss->caps); dir 149 drivers/mfd/intel-lpss.c debugfs_create_x32("active_ltr", S_IRUGO, dir, &lpss->active_ltr); dir 150 drivers/mfd/intel-lpss.c debugfs_create_x32("idle_ltr", S_IRUGO, dir, &lpss->idle_ltr); dir 152 drivers/mfd/intel-lpss.c lpss->debugfs = dir; dir 18 drivers/mfd/wm8350-gpio.c static int gpio_set_dir(struct wm8350 *wm8350, int gpio, int dir) dir 23 drivers/mfd/wm8350-gpio.c if (dir == WM8350_GPIO_DIR_OUT) dir 183 drivers/mfd/wm8350-gpio.c int wm8350_gpio_config(struct wm8350 *wm8350, int gpio, int dir, int func, dir 210 drivers/mfd/wm8350-gpio.c if (gpio_set_dir(wm8350, gpio, dir)) dir 48 drivers/misc/c2port/c2port-duramar2150.c static void duramar2150_c2port_c2d_dir(struct c2port_device *dev, int dir) dir 56 drivers/misc/c2port/c2port-duramar2150.c if (dir) dir 270 drivers/misc/cardreader/rtl8411.c static int rtl8411_conv_clk_and_div_n(int input, int dir) dir 274 drivers/misc/cardreader/rtl8411.c if (dir == CLK_TO_DIV_N) dir 472 drivers/misc/cardreader/rtsx_pcr.c enum dma_data_direction dir = read ? DMA_FROM_DEVICE : DMA_TO_DEVICE; dir 480 drivers/misc/cardreader/rtsx_pcr.c return dma_map_sg(&(pcr->pci->dev), sglist, num_sg, dir); dir 487 drivers/misc/cardreader/rtsx_pcr.c enum dma_data_direction dir = read ? DMA_FROM_DEVICE : DMA_TO_DEVICE; dir 489 drivers/misc/cardreader/rtsx_pcr.c dma_unmap_sg(&(pcr->pci->dev), sglist, num_sg, dir); dir 504 drivers/misc/cardreader/rtsx_pcr.c u8 dir = read ? DEVICE_TO_HOST : HOST_TO_DEVICE; dir 512 drivers/misc/cardreader/rtsx_pcr.c val = ((u32)(dir & 0x01) << 29) | TRIG_DMA | ADMA_MODE; dir 638 drivers/misc/cxl/cxl.h void (*debugfs_add_adapter_regs)(struct cxl *adapter, struct dentry *dir); dir 639 drivers/misc/cxl/cxl.h void (*debugfs_add_afu_regs)(struct cxl_afu *afu, struct dentry *dir); dir 917 drivers/misc/cxl/cxl.h void cxl_debugfs_add_adapter_regs_psl9(struct cxl *adapter, struct dentry *dir); dir 918 drivers/misc/cxl/cxl.h void cxl_debugfs_add_adapter_regs_psl8(struct cxl *adapter, struct dentry *dir); dir 919 drivers/misc/cxl/cxl.h void cxl_debugfs_add_afu_regs_psl9(struct cxl_afu *afu, struct dentry *dir); dir 920 drivers/misc/cxl/cxl.h void cxl_debugfs_add_afu_regs_psl8(struct cxl_afu *afu, struct dentry *dir); dir 949 drivers/misc/cxl/cxl.h struct dentry *dir) dir 954 drivers/misc/cxl/cxl.h struct dentry *dir) dir 958 drivers/misc/cxl/cxl.h static inline void cxl_debugfs_add_afu_regs_psl9(struct cxl_afu *afu, struct dentry *dir) dir 962 drivers/misc/cxl/cxl.h static inline void cxl_debugfs_add_afu_regs_psl8(struct cxl_afu *afu, struct dentry *dir) dir 36 drivers/misc/cxl/debugfs.c void cxl_debugfs_add_adapter_regs_psl9(struct cxl *adapter, struct dentry *dir) dir 38 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("fir1", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_FIR1)); dir 39 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("fir_mask", 0400, dir, dir 41 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("fir_cntl", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_FIR_CNTL)); dir 42 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("trace", S_IRUSR | S_IWUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_TRACECFG)); dir 43 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("debug", 0600, dir, dir 45 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("xsl-debug", 0600, dir, dir 49 drivers/misc/cxl/debugfs.c void cxl_debugfs_add_adapter_regs_psl8(struct cxl *adapter, struct dentry *dir) dir 51 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("fir1", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_FIR1)); dir 52 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("fir2", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_FIR2)); dir 53 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("fir_cntl", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_FIR_CNTL)); dir 54 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("trace", S_IRUSR | S_IWUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_TRACE)); dir 59 drivers/misc/cxl/debugfs.c struct dentry *dir; dir 66 drivers/misc/cxl/debugfs.c dir = debugfs_create_dir(buf, cxl_debugfs); dir 67 drivers/misc/cxl/debugfs.c adapter->debugfs = dir; dir 69 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("err_ivte", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_ErrIVTE)); dir 72 drivers/misc/cxl/debugfs.c adapter->native->sl_ops->debugfs_add_adapter_regs(adapter, dir); dir 80 drivers/misc/cxl/debugfs.c void cxl_debugfs_add_afu_regs_psl9(struct cxl_afu *afu, struct dentry *dir) dir 82 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("serr", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_SERR_An)); dir 85 drivers/misc/cxl/debugfs.c void cxl_debugfs_add_afu_regs_psl8(struct cxl_afu *afu, struct dentry *dir) dir 87 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("sstp0", S_IRUSR, dir, _cxl_p2n_addr(afu, CXL_SSTP0_An)); dir 88 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("sstp1", S_IRUSR, dir, _cxl_p2n_addr(afu, CXL_SSTP1_An)); dir 90 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("fir", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_FIR_SLICE_An)); dir 91 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("serr", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_SERR_An)); dir 92 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("afu_debug", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_AFU_DEBUG_An)); dir 93 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("trace", S_IRUSR | S_IWUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_SLICE_TRACE)); dir 98 drivers/misc/cxl/debugfs.c struct dentry *dir; dir 105 drivers/misc/cxl/debugfs.c dir = debugfs_create_dir(buf, afu->adapter->debugfs); dir 106 drivers/misc/cxl/debugfs.c afu->debugfs = dir; dir 108 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("sr", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_SR_An)); dir 109 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("dsisr", S_IRUSR, dir, _cxl_p2n_addr(afu, CXL_PSL_DSISR_An)); dir 110 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("dar", S_IRUSR, dir, _cxl_p2n_addr(afu, CXL_PSL_DAR_An)); dir 112 drivers/misc/cxl/debugfs.c debugfs_create_io_x64("err_status", S_IRUSR, dir, _cxl_p2n_addr(afu, CXL_PSL_ErrStat_An)); dir 115 drivers/misc/cxl/debugfs.c afu->adapter->native->sl_ops->debugfs_add_afu_regs(afu, dir); dir 488 drivers/misc/fastrpc.c enum dma_data_direction dir) dir 495 drivers/misc/fastrpc.c if (!dma_map_sg(attachment->dev, table->sgl, table->nents, dir)) dir 503 drivers/misc/fastrpc.c enum dma_data_direction dir) dir 505 drivers/misc/fastrpc.c dma_unmap_sg(attach->dev, table->sgl, table->nents, dir); dir 213 drivers/misc/habanalabs/debugfs.c userptr->addr, userptr->size, dma_dir[userptr->dir]); dir 3108 drivers/misc/habanalabs/goya/goya.c int nents, enum dma_data_direction dir) dir 3113 drivers/misc/habanalabs/goya/goya.c if (!dma_map_sg(&hdev->pdev->dev, sgl, nents, dir)) dir 3124 drivers/misc/habanalabs/goya/goya.c int nents, enum dma_data_direction dir) dir 3133 drivers/misc/habanalabs/goya/goya.c dma_unmap_sg(&hdev->pdev->dev, sgl, nents, dir); dir 3180 drivers/misc/habanalabs/goya/goya.c u64 addr, enum dma_data_direction dir) dir 3201 drivers/misc/habanalabs/goya/goya.c userptr->sgt->nents, dir); dir 3208 drivers/misc/habanalabs/goya/goya.c userptr->dir = dir; dir 3228 drivers/misc/habanalabs/goya/goya.c enum dma_data_direction dir; dir 3247 drivers/misc/habanalabs/goya/goya.c dir = DMA_TO_DEVICE; dir 3257 drivers/misc/habanalabs/goya/goya.c dir = DMA_FROM_DEVICE; dir 3265 drivers/misc/habanalabs/goya/goya.c dir = DMA_TO_DEVICE; dir 3274 drivers/misc/habanalabs/goya/goya.c dir = DMA_FROM_DEVICE; dir 3312 drivers/misc/habanalabs/goya/goya.c if ((dir == DMA_TO_DEVICE) && dir 3320 drivers/misc/habanalabs/goya/goya.c addr, dir); dir 3602 drivers/misc/habanalabs/goya/goya.c enum dma_data_direction dir; dir 3626 drivers/misc/habanalabs/goya/goya.c dir = DMA_TO_DEVICE; dir 3632 drivers/misc/habanalabs/goya/goya.c dir = DMA_FROM_DEVICE; dir 3644 drivers/misc/habanalabs/goya/goya.c if ((user_memset) && (dir == DMA_TO_DEVICE)) { dir 3690 drivers/misc/habanalabs/goya/goya.c if (dir == DMA_TO_DEVICE) { dir 540 drivers/misc/habanalabs/habanalabs.h enum dma_data_direction dir); dir 544 drivers/misc/habanalabs/habanalabs.h enum dma_data_direction dir); dir 700 drivers/misc/habanalabs/habanalabs.h enum dma_data_direction dir; dir 201 drivers/misc/habanalabs/memory.c userptr->dir = DMA_BIDIRECTIONAL; dir 1339 drivers/misc/habanalabs/memory.c userptr->dir); dir 130 drivers/misc/hpilo.c int dir, int id, int len) dir 135 drivers/misc/hpilo.c if (dir == SENDQ) dir 145 drivers/misc/hpilo.c int dir, int *id, int *len, void **pkt) dir 151 drivers/misc/hpilo.c if (dir == SENDQ) { dir 584 drivers/misc/ibmasm/ibmasmfs.c struct dentry *dir; dir 587 drivers/misc/ibmasm/ibmasmfs.c dir = ibmasmfs_create_dir(sb->s_root, sp->dirname); dir 588 drivers/misc/ibmasm/ibmasmfs.c if (!dir) dir 591 drivers/misc/ibmasm/ibmasmfs.c ibmasmfs_create_file(dir, "command", &command_fops, sp, S_IRUSR|S_IWUSR); dir 592 drivers/misc/ibmasm/ibmasmfs.c ibmasmfs_create_file(dir, "event", &event_fops, sp, S_IRUSR|S_IWUSR); dir 593 drivers/misc/ibmasm/ibmasmfs.c ibmasmfs_create_file(dir, "reverse_heartbeat", &r_heartbeat_fops, sp, S_IRUSR|S_IWUSR); dir 595 drivers/misc/ibmasm/ibmasmfs.c remote_dir = ibmasmfs_create_dir(dir, "remote_video"); dir 160 drivers/misc/mei/debugfs.c struct dentry *dir; dir 162 drivers/misc/mei/debugfs.c dir = debugfs_create_dir(name, NULL); dir 163 drivers/misc/mei/debugfs.c dev->dbgfs_dir = dir; dir 165 drivers/misc/mei/debugfs.c debugfs_create_file("meclients", S_IRUSR, dir, dev, dir 167 drivers/misc/mei/debugfs.c debugfs_create_file("active", S_IRUSR, dir, dev, dir 169 drivers/misc/mei/debugfs.c debugfs_create_file("devstate", S_IRUSR, dir, dev, dir 171 drivers/misc/mei/debugfs.c debugfs_create_file("allow_fixed_address", S_IRUSR | S_IWUSR, dir, dir 29 drivers/misc/mic/host/mic_boot.c enum dma_data_direction dir, unsigned long attrs) dir 38 drivers/misc/mic/host/mic_boot.c size_t size, enum dma_data_direction dir, dir 166 drivers/misc/mic/host/mic_boot.c size_t size, enum dma_data_direction dir, dir 178 drivers/misc/mic/host/mic_boot.c size_t size, enum dma_data_direction dir, dir 188 drivers/misc/mic/host/mic_boot.c int nents, enum dma_data_direction dir, dir 197 drivers/misc/mic/host/mic_boot.c ret = dma_map_sg(&mdev->pdev->dev, sg, nents, dir); dir 213 drivers/misc/mic/host/mic_boot.c dma_unmap_sg(&mdev->pdev->dev, sg, nents, dir); dir 219 drivers/misc/mic/host/mic_boot.c enum dma_data_direction dir, dir 233 drivers/misc/mic/host/mic_boot.c dma_unmap_sg(&mdev->pdev->dev, sg, nents, dir); dir 317 drivers/misc/mic/host/mic_boot.c unsigned long offset, size_t size, enum dma_data_direction dir, dir 328 drivers/misc/mic/host/mic_boot.c size_t size, enum dma_data_direction dir, dir 1636 drivers/misc/mic/scif/scif_dma.c enum scif_rma_dir dir, bool last_chunk) dir 1679 drivers/misc/mic/scif/scif_dma.c remote_req.prot = dir == SCIF_LOCAL_TO_REMOTE ? VM_WRITE : VM_READ; dir 1707 drivers/misc/mic/scif/scif_dma.c req.prot = (dir == SCIF_LOCAL_TO_REMOTE ? dir 1746 drivers/misc/mic/scif/scif_dma.c req.prot = dir == SCIF_LOCAL_TO_REMOTE ? VM_READ : VM_WRITE; dir 1772 drivers/misc/mic/scif/scif_dma.c if (dir == SCIF_LOCAL_TO_REMOTE) { dir 834 drivers/mmc/host/atmel-mci.c enum atmci_xfer_dir dir, enum atmci_pdc_buf buf_nb) dir 839 drivers/mmc/host/atmel-mci.c if (dir == XFER_RECEIVE) { dir 884 drivers/mmc/host/atmel-mci.c static void atmci_pdc_set_both_buf(struct atmel_mci *host, int dir) dir 886 drivers/mmc/host/atmel-mci.c atmci_pdc_set_single_buf(host, dir, PDC_FIRST_BUF); dir 888 drivers/mmc/host/atmel-mci.c atmci_pdc_set_single_buf(host, dir, PDC_SECOND_BUF); dir 102 drivers/mmc/host/au1xmmc.c int dir; dir 245 drivers/mmc/host/au1xmmc.c host->dma.dir = 0; dir 352 drivers/mmc/host/au1xmmc.c dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len, host->dma.dir); dir 630 drivers/mmc/host/au1xmmc.c host->dma.dir = DMA_BIDIRECTIONAL; dir 633 drivers/mmc/host/au1xmmc.c data->sg_len, host->dma.dir); dir 685 drivers/mmc/host/au1xmmc.c host->dma.dir); dir 115 drivers/mmc/host/cavium-octeon.c static void octeon_mmc_set_shared_power(struct cvm_mmc_host *host, int dir) dir 117 drivers/mmc/host/cavium-octeon.c if (dir == 0) dir 120 drivers/mmc/host/cavium-octeon.c if (dir == 1) dir 240 drivers/mmc/host/jz4740_mmc.c enum dma_data_direction dir = mmc_get_dma_dir(data); dir 242 drivers/mmc/host/jz4740_mmc.c dma_unmap_sg(chan->device->dev, data->sg, data->sg_len, dir); dir 254 drivers/mmc/host/jz4740_mmc.c enum dma_data_direction dir = mmc_get_dma_dir(data); dir 263 drivers/mmc/host/jz4740_mmc.c dir); dir 899 drivers/mmc/host/mmc_spi.c enum dma_data_direction dir = direction; dir 907 drivers/mmc/host/mmc_spi.c && dir == DMA_FROM_DEVICE) dir 908 drivers/mmc/host/mmc_spi.c dir = DMA_BIDIRECTIONAL; dir 911 drivers/mmc/host/mmc_spi.c PAGE_SIZE, dir); dir 957 drivers/mmc/host/mmc_spi.c dma_unmap_page(dma_dev, dma_addr, PAGE_SIZE, dir); dir 235 drivers/mmc/host/renesas_sdhi_internal_dmac.c enum dma_data_direction dir; dir 243 drivers/mmc/host/renesas_sdhi_internal_dmac.c dir = DMA_FROM_DEVICE; dir 245 drivers/mmc/host/renesas_sdhi_internal_dmac.c dir = DMA_TO_DEVICE; dir 248 drivers/mmc/host/renesas_sdhi_internal_dmac.c dma_unmap_sg(&host->pdev->dev, host->sg_ptr, host->sg_len, dir); dir 250 drivers/mmc/host/renesas_sdhi_internal_dmac.c if (dir == DMA_FROM_DEVICE) dir 566 drivers/mmc/host/usdhi6rol0.c enum dma_transfer_direction dir) dir 575 drivers/mmc/host/usdhi6rol0.c switch (dir) { dir 589 drivers/mmc/host/usdhi6rol0.c desc = dmaengine_prep_slave_sg(chan, sg, ret, dir, dir 448 drivers/mmc/host/via-sdmmc.c dma_addr_t dmaaddr, u32 count, int dir, int enirq) dir 456 drivers/mmc/host/via-sdmmc.c if (dir) dir 525 drivers/mmc/host/wmt-sdmmc.c static void wmt_dma_config(struct mmc_host *mmc, u32 descaddr, u8 dir) dir 540 drivers/mmc/host/wmt-sdmmc.c if (dir == PDMA_WRITE) { dir 365 drivers/mtd/nand/raw/atmel/nand-controller.c enum dma_data_direction dir) dir 372 drivers/mtd/nand/raw/atmel/nand-controller.c buf_dma = dma_map_single(nc->dev, buf, len, dir); dir 379 drivers/mtd/nand/raw/atmel/nand-controller.c if (dir == DMA_FROM_DEVICE) { dir 409 drivers/mtd/nand/raw/atmel/nand-controller.c dma_unmap_single(nc->dev, buf_dma, len, dir); dir 1699 drivers/mtd/nand/raw/brcmnand/brcmnand.c int dir = dma_cmd == CMD_PAGE_READ ? DMA_FROM_DEVICE : DMA_TO_DEVICE; dir 1701 drivers/mtd/nand/raw/brcmnand/brcmnand.c buf_pa = dma_map_single(ctrl->dev, buf, len, dir); dir 1712 drivers/mtd/nand/raw/brcmnand/brcmnand.c dma_unmap_single(ctrl->dev, buf_pa, len, dir); dir 659 drivers/mtd/nand/raw/denali.c enum dma_data_direction dir = write ? DMA_TO_DEVICE : DMA_FROM_DEVICE; dir 662 drivers/mtd/nand/raw/denali.c dma_addr = dma_map_single(denali->dev, buf, size, dir); dir 703 drivers/mtd/nand/raw/denali.c dma_unmap_single(denali->dev, dma_addr, size, dir); dir 393 drivers/mtd/nand/raw/lpc32xx_mlc.c enum dma_transfer_direction dir) dir 409 drivers/mtd/nand/raw/lpc32xx_mlc.c desc = dmaengine_prep_slave_sg(host->dma_chan, &host->sgl, 1, dir, dir 428 drivers/mtd/nand/raw/lpc32xx_slc.c void *mem, int len, enum dma_transfer_direction dir) dir 436 drivers/mtd/nand/raw/lpc32xx_slc.c host->dma_slave_config.direction = dir; dir 458 drivers/mtd/nand/raw/lpc32xx_slc.c desc = dmaengine_prep_slave_sg(host->dma_chan, &host->sgl, 1, dir, dir 495 drivers/mtd/nand/raw/lpc32xx_slc.c enum dma_transfer_direction dir = dir 535 drivers/mtd/nand/raw/lpc32xx_slc.c mtd->writesize / chip->ecc.steps, dir); dir 74 drivers/mtd/nand/raw/meson_nand.c #define DMA_DIR(dir) ((dir) ? NFC_CMD_N2M : NFC_CMD_M2N) dir 265 drivers/mtd/nand/raw/meson_nand.c static void meson_nfc_cmd_access(struct nand_chip *nand, int raw, bool dir, dir 278 drivers/mtd/nand/raw/meson_nand.c cmd = (len & GENMASK(5, 0)) | scrambler | DMA_DIR(dir); dir 285 drivers/mtd/nand/raw/meson_nand.c cmd = CMDRWGEN(DMA_DIR(dir), scrambler, bch, dir 475 drivers/mtd/nand/raw/meson_nand.c enum dma_data_direction dir) dir 481 drivers/mtd/nand/raw/meson_nand.c nfc->daddr = dma_map_single(nfc->dev, databuf, datalen, dir); dir 494 drivers/mtd/nand/raw/meson_nand.c nfc->iaddr = dma_map_single(nfc->dev, infobuf, infolen, dir); dir 499 drivers/mtd/nand/raw/meson_nand.c nfc->daddr, datalen, dir); dir 514 drivers/mtd/nand/raw/meson_nand.c enum dma_data_direction dir) dir 518 drivers/mtd/nand/raw/meson_nand.c dma_unmap_single(nfc->dev, nfc->daddr, datalen, dir); dir 520 drivers/mtd/nand/raw/meson_nand.c dma_unmap_single(nfc->dev, nfc->iaddr, infolen, dir); dir 529 drivers/mtd/nand/raw/nand_bbt.c int startblock, block, dir; dir 537 drivers/mtd/nand/raw/nand_bbt.c dir = -1; dir 540 drivers/mtd/nand/raw/nand_bbt.c dir = 1; dir 560 drivers/mtd/nand/raw/nand_bbt.c int actblock = startblock + dir * block; dir 625 drivers/mtd/nand/raw/nand_bbt.c int startblock, dir, page, numblocks, i; dir 646 drivers/mtd/nand/raw/nand_bbt.c dir = -1; dir 649 drivers/mtd/nand/raw/nand_bbt.c dir = 1; dir 653 drivers/mtd/nand/raw/nand_bbt.c int block = startblock + dir * i; dir 459 drivers/mtd/nand/raw/omap2.c enum dma_data_direction dir = is_write ? DMA_TO_DEVICE : dir 471 drivers/mtd/nand/raw/omap2.c n = dma_map_sg(info->dma->device->dev, &sg, 1, dir); dir 513 drivers/mtd/nand/raw/omap2.c dma_unmap_sg(info->dma->device->dev, &sg, 1, dir); dir 517 drivers/mtd/nand/raw/omap2.c dma_unmap_sg(info->dma->device->dev, &sg, 1, dir); dir 278 drivers/mtd/nand/raw/qcom_nandc.c enum dma_data_direction dir; dir 748 drivers/mtd/nand/raw/qcom_nandc.c desc->dir = DMA_TO_DEVICE; dir 754 drivers/mtd/nand/raw/qcom_nandc.c desc->dir = DMA_TO_DEVICE; dir 760 drivers/mtd/nand/raw/qcom_nandc.c desc->dir = DMA_FROM_DEVICE; dir 764 drivers/mtd/nand/raw/qcom_nandc.c ret = dma_map_sg(nandc->dev, sgl, sgl_cnt, desc->dir); dir 779 drivers/mtd/nand/raw/qcom_nandc.c dma_unmap_sg(nandc->dev, sgl, sgl_cnt, desc->dir); dir 913 drivers/mtd/nand/raw/qcom_nandc.c desc->dir = DMA_FROM_DEVICE; dir 916 drivers/mtd/nand/raw/qcom_nandc.c desc->dir = DMA_TO_DEVICE; dir 919 drivers/mtd/nand/raw/qcom_nandc.c ret = dma_map_sg(nandc->dev, sgl, 1, desc->dir); dir 1348 drivers/mtd/nand/raw/qcom_nandc.c desc->sgl_cnt, desc->dir); dir 1351 drivers/mtd/nand/raw/qcom_nandc.c desc->dir); dir 379 drivers/mtd/nand/raw/sh_flctl.c int len, enum dma_data_direction dir) dir 389 drivers/mtd/nand/raw/sh_flctl.c if (dir == DMA_FROM_DEVICE) { dir 397 drivers/mtd/nand/raw/sh_flctl.c dma_addr = dma_map_single(chan->device->dev, buf, len, dir); dir 442 drivers/mtd/nand/raw/sh_flctl.c dma_unmap_single(chan->device->dev, dma_addr, len, dir); dir 229 drivers/mtd/nand/raw/tango_nand.c static int do_dma(struct tango_nfc *nfc, enum dma_data_direction dir, int cmd, dir 242 drivers/mtd/nand/raw/tango_nand.c if (dma_map_sg(chan->device->dev, &sg, 1, dir) != 1) dir 245 drivers/mtd/nand/raw/tango_nand.c tdir = dir == DMA_TO_DEVICE ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM; dir 270 drivers/mtd/nand/raw/tango_nand.c dma_unmap_sg(chan->device->dev, &sg, 1, dir); dir 496 drivers/mtd/nand/raw/tegra_nand.c enum dma_data_direction dir = read ? DMA_FROM_DEVICE : DMA_TO_DEVICE; dir 527 drivers/mtd/nand/raw/tegra_nand.c dma_addr = dma_map_single(ctrl->dev, buf, mtd->writesize, dir); dir 540 drivers/mtd/nand/raw/tegra_nand.c dir); dir 606 drivers/mtd/nand/raw/tegra_nand.c dma_unmap_single(ctrl->dev, dma_addr_oob, mtd->oobsize, dir); dir 609 drivers/mtd/nand/raw/tegra_nand.c dma_unmap_single(ctrl->dev, dma_addr, mtd->writesize, dir); dir 259 drivers/mtd/spi-nor/spi-nor.c if (op->data.dir == SPI_MEM_DATA_IN) dir 271 drivers/mtd/spi-nor/spi-nor.c if (op->data.dir == SPI_MEM_DATA_IN) { dir 289 drivers/mtd/spi-nor/spi-nor.c if (usebouncebuf && op->data.dir == SPI_MEM_DATA_IN) dir 274 drivers/net/can/pch_can.c int set, enum pch_ifreg dir) dir 278 drivers/net/can/pch_can.c if (dir) dir 284 drivers/net/can/pch_can.c iowrite32(PCH_CMASK_RX_TX_GET, &priv->regs->ifregs[dir].cmask); dir 285 drivers/net/can/pch_can.c pch_can_rw_msg_obj(&priv->regs->ifregs[dir].creq, buff_num); dir 289 drivers/net/can/pch_can.c &priv->regs->ifregs[dir].cmask); dir 293 drivers/net/can/pch_can.c pch_can_bit_set(&priv->regs->ifregs[dir].mcont, ie); dir 294 drivers/net/can/pch_can.c pch_can_bit_set(&priv->regs->ifregs[dir].id2, PCH_ID_MSGVAL); dir 297 drivers/net/can/pch_can.c pch_can_bit_clear(&priv->regs->ifregs[dir].mcont, ie); dir 298 drivers/net/can/pch_can.c pch_can_bit_clear(&priv->regs->ifregs[dir].id2, PCH_ID_MSGVAL); dir 301 drivers/net/can/pch_can.c pch_can_rw_msg_obj(&priv->regs->ifregs[dir].creq, buff_num); dir 979 drivers/net/can/pch_can.c enum pch_ifreg dir) dir 983 drivers/net/can/pch_can.c if (dir) dir 988 drivers/net/can/pch_can.c iowrite32(PCH_CMASK_RX_TX_GET, &priv->regs->ifregs[dir].cmask); dir 989 drivers/net/can/pch_can.c pch_can_rw_msg_obj(&priv->regs->ifregs[dir].creq, buff_num); dir 991 drivers/net/can/pch_can.c if (((ioread32(&priv->regs->ifregs[dir].id2)) & PCH_ID_MSGVAL) && dir 992 drivers/net/can/pch_can.c ((ioread32(&priv->regs->ifregs[dir].mcont)) & ie)) dir 143 drivers/net/dsa/bcm_sf2.h u32 indir, dir; \ dir 145 drivers/net/dsa/bcm_sf2.h dir = name##_readl(priv, off); \ dir 148 drivers/net/dsa/bcm_sf2.h return (u64)indir << 32 | dir; \ dir 298 drivers/net/ethernet/8390/mac8390.c struct nubus_dir dir; dir 312 drivers/net/ethernet/8390/mac8390.c if (nubus_get_func_dir(fres, &dir) == -1) { dir 319 drivers/net/ethernet/8390/mac8390.c if (nubus_find_rsrc(&dir, NUBUS_RESID_MAC_ADDRESS, &ent) == -1) { dir 327 drivers/net/ethernet/8390/mac8390.c nubus_rewinddir(&dir); dir 328 drivers/net/ethernet/8390/mac8390.c if (nubus_find_rsrc(&dir, NUBUS_RESID_MINOR_BASEOS, dir 338 drivers/net/ethernet/8390/mac8390.c nubus_rewinddir(&dir); dir 339 drivers/net/ethernet/8390/mac8390.c if (nubus_find_rsrc(&dir, NUBUS_RESID_MINOR_LENGTH, dir 151 drivers/net/ethernet/broadcom/b44.c enum dma_data_direction dir) dir 154 drivers/net/ethernet/broadcom/b44.c dma_desc_sync_size, dir); dir 160 drivers/net/ethernet/broadcom/b44.c enum dma_data_direction dir) dir 163 drivers/net/ethernet/broadcom/b44.c dma_desc_sync_size, dir); dir 76 drivers/net/ethernet/broadcom/bnxt/bnxt_debugfs.c struct dentry *dir; dir 80 drivers/net/ethernet/broadcom/bnxt/bnxt_debugfs.c dir = debugfs_create_dir("dim", bp->debugfs_pdev); dir 87 drivers/net/ethernet/broadcom/bnxt/bnxt_debugfs.c debugfs_dim_ring_init(&cpr->dim, i, dir); dir 1224 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c flow->l2_key.dir = (bp->pf.fw_fid == src_fid) ? BNXT_DIR_RX : BNXT_DIR_TX; dir 1393 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c if (flow_node->flow.l2_key.dir == BNXT_DIR_RX) dir 26 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.h u8 dir; dir 194 drivers/net/ethernet/chelsio/cxgb3/aq100x.c static int aq100x_set_loopback(struct cphy *phy, int mmd, int dir, int enable) dir 529 drivers/net/ethernet/chelsio/cxgb3/common.h int (*set_loopback)(struct cphy *phy, int mmd, int dir, int enable); dir 1618 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int dir); dir 1622 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h void *buf, int dir); dir 574 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int dir) dir 583 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c if (dir == T4_MEMORY_READ) { dir 615 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c u32 len, void *hbuf, int dir) dir 692 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c if (dir == T4_MEMORY_READ) dir 721 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c (u8 *)buf, dir); dir 64 drivers/net/ethernet/cisco/enic/vnic_devcmd.h #define _CMDCF(dir, flags, vtype, nr) \ dir 65 drivers/net/ethernet/cisco/enic/vnic_devcmd.h (((dir) << _CMD_DIRSHIFT) | \ dir 69 drivers/net/ethernet/cisco/enic/vnic_devcmd.h #define _CMDC(dir, vtype, nr) _CMDCF(dir, 0, vtype, nr) dir 70 drivers/net/ethernet/cisco/enic/vnic_devcmd.h #define _CMDCNW(dir, vtype, nr) _CMDCF(dir, _CMD_FLAGS_NOWAIT, vtype, nr) dir 167 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c struct dentry *dir; dir 170 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c dir = debugfs_create_dir(priv->net_dev->name, dpaa2_dbg_root); dir 171 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c priv->dbg.dir = dir; dir 174 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c debugfs_create_file("cpu_stats", 0444, dir, priv, &dpaa2_dbg_cpu_ops); dir 177 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c debugfs_create_file("fq_stats", 0444, dir, priv, &dpaa2_dbg_fq_ops); dir 180 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c debugfs_create_file("ch_stats", 0444, dir, priv, &dpaa2_dbg_ch_ops); dir 185 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c debugfs_remove_recursive(priv->dbg.dir); dir 13 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.h struct dentry *dir; dir 32 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c __be32 __iomem *dir; dir 58 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c static inline void mdio_dir(struct mdiobb_ctrl *ctrl, int dir) dir 62 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c if (dir) dir 63 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c bb_set(bitbang->dir, bitbang->mdio_msk); dir 65 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c bb_clr(bitbang->dir, bitbang->mdio_msk); dir 68 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c in_be32(bitbang->dir); dir 141 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c bitbang->dir = ioremap(res.start, resource_size(&res)); dir 142 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c if (!bitbang->dir) dir 145 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c bitbang->dat = bitbang->dir + 4; dir 186 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c iounmap(bitbang->dir); dir 202 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c iounmap(bitbang->dir); dir 518 drivers/net/ethernet/google/gve/gve_main.c enum dma_data_direction dir) dir 523 drivers/net/ethernet/google/gve/gve_main.c *dma = dma_map_page(dev, *page, 0, PAGE_SIZE, dir); dir 573 drivers/net/ethernet/google/gve/gve_main.c enum dma_data_direction dir) dir 576 drivers/net/ethernet/google/gve/gve_main.c dma_unmap_page(dev, dma, PAGE_SIZE, dir); dir 178 drivers/net/ethernet/ibm/ehea/ehea.h struct ehea_dir_bmap *dir[EHEA_MAP_ENTRIES]; dir 541 drivers/net/ethernet/ibm/ehea/ehea_qmr.c int dir) dir 543 drivers/net/ethernet/ibm/ehea/ehea_qmr.c if (!ehea_top_bmap->dir[dir]) { dir 544 drivers/net/ethernet/ibm/ehea/ehea_qmr.c ehea_top_bmap->dir[dir] = dir 546 drivers/net/ethernet/ibm/ehea/ehea_qmr.c if (!ehea_top_bmap->dir[dir]) dir 552 drivers/net/ethernet/ibm/ehea/ehea_qmr.c static inline int ehea_init_bmap(struct ehea_bmap *ehea_bmap, int top, int dir) dir 560 drivers/net/ethernet/ibm/ehea/ehea_qmr.c return ehea_init_top_bmap(ehea_bmap->top[top], dir); dir 572 drivers/net/ethernet/ibm/ehea/ehea_qmr.c int top, dir, idx; dir 581 drivers/net/ethernet/ibm/ehea/ehea_qmr.c for (dir = 0; dir < EHEA_MAP_ENTRIES; dir++) { dir 585 drivers/net/ethernet/ibm/ehea/ehea_qmr.c if (!ehea_top->dir[dir]) dir 588 drivers/net/ethernet/ibm/ehea/ehea_qmr.c ehea_dir = ehea_top->dir[dir]; dir 597 drivers/net/ethernet/ibm/ehea/ehea_qmr.c ehea_top->dir[dir] = NULL; dir 627 drivers/net/ethernet/ibm/ehea/ehea_qmr.c int dir = ehea_calc_index(i, EHEA_DIR_INDEX_SHIFT); dir 631 drivers/net/ethernet/ibm/ehea/ehea_qmr.c int ret = ehea_init_bmap(ehea_bmap, top, dir); dir 639 drivers/net/ethernet/ibm/ehea/ehea_qmr.c if (!ehea_bmap->top[top]->dir[dir]) dir 645 drivers/net/ethernet/ibm/ehea/ehea_qmr.c ehea_bmap->top[top]->dir[dir]->ent[idx] = flag; dir 735 drivers/net/ethernet/ibm/ehea/ehea_qmr.c int top, dir; dir 744 drivers/net/ethernet/ibm/ehea/ehea_qmr.c for (dir = 0; dir < EHEA_MAP_ENTRIES; dir++) { dir 745 drivers/net/ethernet/ibm/ehea/ehea_qmr.c if (!ehea_bmap->top[top]->dir[dir]) dir 748 drivers/net/ethernet/ibm/ehea/ehea_qmr.c kfree(ehea_bmap->top[top]->dir[dir]); dir 762 drivers/net/ethernet/ibm/ehea/ehea_qmr.c int top, dir, idx; dir 773 drivers/net/ethernet/ibm/ehea/ehea_qmr.c dir = (index >> EHEA_DIR_INDEX_SHIFT) & EHEA_INDEX_MASK; dir 774 drivers/net/ethernet/ibm/ehea/ehea_qmr.c if (!ehea_bmap->top[top]->dir[dir]) dir 778 drivers/net/ethernet/ibm/ehea/ehea_qmr.c if (!ehea_bmap->top[top]->dir[dir]->ent[idx]) dir 782 drivers/net/ethernet/ibm/ehea/ehea_qmr.c return ehea_bmap->top[top]->dir[dir]->ent[idx] | offset; dir 785 drivers/net/ethernet/ibm/ehea/ehea_qmr.c static inline void *ehea_calc_sectbase(int top, int dir, int idx) dir 788 drivers/net/ethernet/ibm/ehea/ehea_qmr.c ret |= dir << EHEA_DIR_INDEX_SHIFT; dir 793 drivers/net/ethernet/ibm/ehea/ehea_qmr.c static u64 ehea_reg_mr_section(int top, int dir, int idx, u64 *pt, dir 802 drivers/net/ethernet/ibm/ehea/ehea_qmr.c void *sectbase = ehea_calc_sectbase(top, dir, idx); dir 824 drivers/net/ethernet/ibm/ehea/ehea_qmr.c static u64 ehea_reg_mr_sections(int top, int dir, u64 *pt, dir 832 drivers/net/ethernet/ibm/ehea/ehea_qmr.c if (!ehea_bmap->top[top]->dir[dir]->ent[idx]) dir 835 drivers/net/ethernet/ibm/ehea/ehea_qmr.c hret = ehea_reg_mr_section(top, dir, idx, pt, adapter, mr); dir 847 drivers/net/ethernet/ibm/ehea/ehea_qmr.c int dir; dir 849 drivers/net/ethernet/ibm/ehea/ehea_qmr.c for (dir = 0; dir < EHEA_MAP_ENTRIES; dir++) { dir 850 drivers/net/ethernet/ibm/ehea/ehea_qmr.c if (!ehea_bmap->top[top]->dir[dir]) dir 853 drivers/net/ethernet/ibm/ehea/ehea_qmr.c hret = ehea_reg_mr_sections(top, dir, pt, adapter, mr); dir 545 drivers/net/ethernet/intel/e100.c u16 (*mdio_ctrl)(struct nic *nic, u32 addr, u32 dir, u32 reg, u16 data); dir 919 drivers/net/ethernet/intel/e100.c static u16 mdio_ctrl_hw(struct nic *nic, u32 addr, u32 dir, u32 reg, u16 data) dir 943 drivers/net/ethernet/intel/e100.c iowrite32((reg << 16) | (addr << 21) | dir | data, &nic->csr->mdi_ctrl); dir 953 drivers/net/ethernet/intel/e100.c dir == mdi_read ? "READ" : "WRITE", dir 961 drivers/net/ethernet/intel/e100.c u32 dir, dir 965 drivers/net/ethernet/intel/e100.c if ((reg == MII_BMCR) && (dir == mdi_write)) { dir 980 drivers/net/ethernet/intel/e100.c return mdio_ctrl_hw(nic, addr, dir, reg, data); dir 991 drivers/net/ethernet/intel/e100.c u32 dir, dir 999 drivers/net/ethernet/intel/e100.c if (dir == mdi_read) { dir 1016 drivers/net/ethernet/intel/e100.c dir == mdi_read ? "READ" : "WRITE", dir 1025 drivers/net/ethernet/intel/e100.c dir == mdi_read ? "READ" : "WRITE", dir 1587 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int err, i, dir, dir_up; dir 1596 drivers/net/ethernet/marvell/octeontx2/af/rvu.c dir = MBOX_DIR_AFPF; dir 1603 drivers/net/ethernet/marvell/octeontx2/af/rvu.c dir = MBOX_DIR_PFVF; dir 1642 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err = otx2_mbox_init(&mw->mbox, hwbase, rvu->pdev, reg_base, dir, num); dir 9390 drivers/net/ethernet/mellanox/mlxsw/reg.h MLXSW_ITEM32(reg, mtpptr, dir, 0x00, 0, 1); dir 10062 drivers/net/ethernet/mellanox/mlxsw/reg.h MLXSW_ITEM32(reg, sbpr, dir, 0x00, 24, 2); dir 10095 drivers/net/ethernet/mellanox/mlxsw/reg.h enum mlxsw_reg_sbxx_dir dir, dir 10101 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sbpr_dir_set(payload, dir); dir 10140 drivers/net/ethernet/mellanox/mlxsw/reg.h MLXSW_ITEM32(reg, sbcm, dir, 0x00, 0, 2); dir 10179 drivers/net/ethernet/mellanox/mlxsw/reg.h enum mlxsw_reg_sbxx_dir dir, dir 10186 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sbcm_dir_set(payload, dir); dir 10222 drivers/net/ethernet/mellanox/mlxsw/reg.h MLXSW_ITEM32(reg, sbpm, dir, 0x00, 0, 2); dir 10265 drivers/net/ethernet/mellanox/mlxsw/reg.h enum mlxsw_reg_sbxx_dir dir, bool clr, dir 10271 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sbpm_dir_set(payload, dir); dir 52 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c enum mlxsw_reg_sbxx_dir dir; dir 144 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c static bool mlxsw_sp_sb_cm_exists(u8 pg_buff, enum mlxsw_reg_sbxx_dir dir) dir 146 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c if (dir == MLXSW_REG_SBXX_DIR_INGRESS) dir 154 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c enum mlxsw_reg_sbxx_dir dir) dir 158 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c WARN_ON(!mlxsw_sp_sb_cm_exists(pg_buff, dir)); dir 159 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c if (dir == MLXSW_REG_SBXX_DIR_INGRESS) dir 181 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c mlxsw_reg_sbpr_pack(sbpr_pl, des->pool, des->dir, mode, dir 205 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c mlxsw_reg_sbcm_pack(sbcm_pl, local_port, pg_buff, des->dir, dir 211 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c if (mlxsw_sp_sb_cm_exists(pg_buff, des->dir)) { dir 217 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c des->dir); dir 234 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c mlxsw_reg_sbpm_pack(sbpm_pl, local_port, des->pool, des->dir, false, dir 254 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c des->dir == MLXSW_REG_SBXX_DIR_INGRESS) dir 257 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c mlxsw_reg_sbpm_pack(sbpm_pl, local_port, des->pool, des->dir, dir 281 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c des->dir == MLXSW_REG_SBXX_DIR_INGRESS) dir 285 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c mlxsw_reg_sbpm_pack(sbpm_pl, local_port, des->pool, des->dir, dir 639 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c enum mlxsw_reg_sbxx_dir dir, dir 652 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c if (i == 8 && dir == MLXSW_REG_SBXX_DIR_INGRESS) dir 655 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c if (WARN_ON(sb_vals->pool_dess[cm->pool_index].dir != dir)) dir 769 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c if (skip_ingress && des->dir == MLXSW_REG_SBXX_DIR_INGRESS) dir 855 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c if (mlxsw_sp->sb_vals->pool_dess[i].dir == dir 991 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c enum mlxsw_reg_sbxx_dir dir; dir 994 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c dir = mlxsw_sp->sb_vals->pool_dess[pool_index].dir; dir 996 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c pool_info->pool_type = (enum devlink_sb_pool_type) dir; dir 1120 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c enum mlxsw_reg_sbxx_dir dir = (enum mlxsw_reg_sbxx_dir) pool_type; dir 1122 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c pg_buff, dir); dir 1142 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c enum mlxsw_reg_sbxx_dir dir = (enum mlxsw_reg_sbxx_dir) pool_type; dir 1151 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c if (dir != mlxsw_sp->sb_vals->pool_dess[pool_index].dir) { dir 1156 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c if (dir == MLXSW_REG_SBXX_DIR_INGRESS) dir 1394 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c enum mlxsw_reg_sbxx_dir dir = (enum mlxsw_reg_sbxx_dir) pool_type; dir 1396 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c pg_buff, dir); dir 157 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c enum mlxsw_sp_rif_counter_dir dir) dir 159 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c switch (dir) { dir 170 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c enum mlxsw_sp_rif_counter_dir dir) dir 172 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c switch (dir) { dir 183 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c enum mlxsw_sp_rif_counter_dir dir, dir 186 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c switch (dir) { dir 198 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c enum mlxsw_sp_rif_counter_dir dir) dir 204 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c if (dir == MLXSW_SP_RIF_COUNTER_EGRESS) dir 218 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c enum mlxsw_sp_rif_counter_dir dir, u64 *cnt) dir 225 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c valid = mlxsw_sp_rif_counter_valid_get(rif, dir); dir 229 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c p_counter_index = mlxsw_sp_rif_p_counter_get(rif, dir); dir 253 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c enum mlxsw_sp_rif_counter_dir dir) dir 258 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c p_counter_index = mlxsw_sp_rif_p_counter_get(rif, dir); dir 271 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c *p_counter_index, true, dir); dir 274 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c mlxsw_sp_rif_counter_valid_set(rif, dir, true); dir 286 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c enum mlxsw_sp_rif_counter_dir dir) dir 290 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c if (!mlxsw_sp_rif_counter_valid_get(rif, dir)) dir 293 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c p_counter_index = mlxsw_sp_rif_p_counter_get(rif, dir); dir 297 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c *p_counter_index, false, dir); dir 300 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c mlxsw_sp_rif_counter_valid_set(rif, dir, false); dir 38 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h enum mlxsw_sp_rif_counter_dir dir, dir 42 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h enum mlxsw_sp_rif_counter_dir dir); dir 45 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h enum mlxsw_sp_rif_counter_dir dir); dir 967 drivers/net/ethernet/netronome/nfp/nfp_net.h void nfp_net_debugfs_dir_clean(struct dentry **dir); dir 987 drivers/net/ethernet/netronome/nfp/nfp_net.h static inline void nfp_net_debugfs_dir_clean(struct dentry **dir) dir 190 drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c void nfp_net_debugfs_dir_clean(struct dentry **dir) dir 192 drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c debugfs_remove_recursive(*dir); dir 193 drivers/net/ethernet/netronome/nfp/nfp_net_debugfs.c *dir = NULL; dir 633 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h u16 pch_gbe_mac_ctrl_miim(struct pch_gbe_hw *hw, u32 addr, u32 dir, u32 reg, dir 488 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c u16 pch_gbe_mac_ctrl_miim(struct pch_gbe_hw *hw, u32 addr, u32 dir, u32 reg, dir 510 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c dir | data), &hw->reg->MIIM); dir 520 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c dir == PCH_GBE_MIIM_OPER_READ ? "READ" : "WRITE", reg, dir 521 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c dir == PCH_GBE_MIIM_OPER_READ ? data_out : data); dir 44 drivers/net/ethernet/sfc/falcon/phy.h void falcon_txc_set_gpio_dir(struct ef4_nic *efx, int pin, int dir); dir 177 drivers/net/ethernet/sfc/falcon/txc43128_phy.c void falcon_txc_set_gpio_dir(struct ef4_nic *efx, int pin, int dir) dir 179 drivers/net/ethernet/sfc/falcon/txc43128_phy.c ef4_mdio_set_flag(efx, MDIO_MMD_PHYXS, TXC_GPIO_DIR, 1 << pin, dir); dir 550 drivers/net/ethernet/socionext/sni_ave.c void *ptr, size_t len, enum dma_data_direction dir, dir 555 drivers/net/ethernet/socionext/sni_ave.c map_addr = dma_map_single(ndev->dev.parent, ptr, len, dir); dir 567 drivers/net/ethernet/socionext/sni_ave.c enum dma_data_direction dir) dir 573 drivers/net/ethernet/socionext/sni_ave.c desc->skbs_dma, desc->skbs_dmalen, dir); dir 119 drivers/net/ethernet/ti/davinci_cpdma.c enum dma_data_direction dir; dir 913 drivers/net/ethernet/ti/davinci_cpdma.c chan->dir = DMA_FROM_DEVICE; dir 920 drivers/net/ethernet/ti/davinci_cpdma.c chan->dir = DMA_TO_DEVICE; dir 1047 drivers/net/ethernet/ti/davinci_cpdma.c dma_sync_single_for_device(ctlr->dev, buffer, len, chan->dir); dir 1049 drivers/net/ethernet/ti/davinci_cpdma.c buffer = dma_map_single(ctlr->dev, si->data_virt, len, chan->dir); dir 1210 drivers/net/ethernet/ti/davinci_cpdma.c chan->dir); dir 1212 drivers/net/ethernet/ti/davinci_cpdma.c dma_unmap_single(ctlr->dev, buff_dma, origlen, chan->dir); dir 53 drivers/net/phy/mdio-gpio.c static void mdio_dir(struct mdiobb_ctrl *ctrl, int dir) dir 68 drivers/net/phy/mdio-gpio.c if (dir) dir 328 drivers/net/thunderbolt.c enum dma_data_direction dir; dir 336 drivers/net/thunderbolt.c dir = DMA_TO_DEVICE; dir 340 drivers/net/thunderbolt.c dir = DMA_FROM_DEVICE; dir 347 drivers/net/thunderbolt.c dir); dir 173 drivers/net/usb/catc.c u8 dir; dir 462 drivers/net/usb/catc.c static int catc_ctrl_msg(struct catc *catc, u8 dir, u8 request, u16 value, u16 index, void *buf, int len) dir 465 drivers/net/usb/catc.c dir ? usb_rcvctrlpipe(catc->usbdev, 0) : usb_sndctrlpipe(catc->usbdev, 0), dir 466 drivers/net/usb/catc.c request, 0x40 | dir, value, index, buf, len, 1000); dir 479 drivers/net/usb/catc.c dr->bRequestType = 0x40 | q->dir; dir 484 drivers/net/usb/catc.c urb->pipe = q->dir ? usb_rcvctrlpipe(usbdev, 0) : usb_sndctrlpipe(usbdev, 0); dir 490 drivers/net/usb/catc.c if (!q->dir && q->buf && q->len) dir 513 drivers/net/usb/catc.c if (q->dir) { dir 533 drivers/net/usb/catc.c static int catc_ctrl_async(struct catc *catc, u8 dir, u8 request, u16 value, dir 544 drivers/net/usb/catc.c q->dir = dir; dir 302 drivers/net/usb/hso.c int type, int dir); dir 3140 drivers/net/usb/hso.c int type, int dir) dir 3148 drivers/net/usb/hso.c if (((endp->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == dir) && dir 71 drivers/net/wireless/ath/ath10k/core.c .dir = QCA988X_HW_2_0_FW_DIR, dir 105 drivers/net/wireless/ath/ath10k/core.c .dir = QCA988X_HW_2_0_FW_DIR, dir 141 drivers/net/wireless/ath/ath10k/core.c .dir = QCA9887_HW_1_0_FW_DIR, dir 176 drivers/net/wireless/ath/ath10k/core.c .dir = QCA6174_HW_3_0_FW_DIR, dir 204 drivers/net/wireless/ath/ath10k/core.c .dir = QCA6174_HW_2_1_FW_DIR, dir 239 drivers/net/wireless/ath/ath10k/core.c .dir = QCA6174_HW_2_1_FW_DIR, dir 274 drivers/net/wireless/ath/ath10k/core.c .dir = QCA6174_HW_3_0_FW_DIR, dir 310 drivers/net/wireless/ath/ath10k/core.c .dir = QCA6174_HW_3_0_FW_DIR, dir 352 drivers/net/wireless/ath/ath10k/core.c .dir = QCA99X0_HW_2_0_FW_DIR, dir 394 drivers/net/wireless/ath/ath10k/core.c .dir = QCA9984_HW_1_0_FW_DIR, dir 441 drivers/net/wireless/ath/ath10k/core.c .dir = QCA9888_HW_2_0_FW_DIR, dir 481 drivers/net/wireless/ath/ath10k/core.c .dir = QCA9377_HW_1_0_FW_DIR, dir 516 drivers/net/wireless/ath/ath10k/core.c .dir = QCA9377_HW_1_0_FW_DIR, dir 559 drivers/net/wireless/ath/ath10k/core.c .dir = QCA4019_HW_1_0_FW_DIR, dir 593 drivers/net/wireless/ath/ath10k/core.c .dir = WCN3990_HW_1_0_FW_DIR, dir 782 drivers/net/wireless/ath/ath10k/core.c const char *dir, dir 792 drivers/net/wireless/ath/ath10k/core.c if (dir == NULL) dir 793 drivers/net/wireless/ath/ath10k/core.c dir = "."; dir 795 drivers/net/wireless/ath/ath10k/core.c snprintf(filename, sizeof(filename), "%s/%s", dir, file); dir 1128 drivers/net/wireless/ath/ath10k/core.c ar->hw_params.fw.dir, dir 1141 drivers/net/wireless/ath/ath10k/core.c fw = ath10k_fetch_fw_file(ar, ar->hw_params.fw.dir, dir 1314 drivers/net/wireless/ath/ath10k/core.c ar->hw_params.fw.dir, dir 1326 drivers/net/wireless/ath/ath10k/core.c ar->hw_params.fw.dir, filename, len); dir 1341 drivers/net/wireless/ath/ath10k/core.c ar->hw_params.fw.dir, filename, len); dir 1359 drivers/net/wireless/ath/ath10k/core.c boardname, ar->hw_params.fw.dir, filename); dir 1468 drivers/net/wireless/ath/ath10k/core.c ar->hw_params.fw.dir); dir 1773 drivers/net/wireless/ath/ath10k/core.c fw_file->firmware = ath10k_fetch_fw_file(ar, ar->hw_params.fw.dir, dir 1786 drivers/net/wireless/ath/ath10k/core.c ar->hw_params.fw.dir, name, len); dir 1928 drivers/net/wireless/ath/ath10k/core.c ar->hw_params.fw.dir, name); dir 1982 drivers/net/wireless/ath/ath10k/core.c ATH10K_FW_API_MIN, ATH10K_FW_API_MAX, ar->hw_params.fw.dir, dir 204 drivers/net/wireless/ath/ath10k/debug.h struct ieee80211_sta *sta, struct dentry *dir); dir 758 drivers/net/wireless/ath/ath10k/debugfs_sta.c struct ieee80211_sta *sta, struct dentry *dir) dir 762 drivers/net/wireless/ath/ath10k/debugfs_sta.c debugfs_create_file("aggr_mode", 0644, dir, sta, &fops_aggr_mode); dir 763 drivers/net/wireless/ath/ath10k/debugfs_sta.c debugfs_create_file("addba", 0200, dir, sta, &fops_addba); dir 764 drivers/net/wireless/ath/ath10k/debugfs_sta.c debugfs_create_file("addba_resp", 0200, dir, sta, &fops_addba_resp); dir 765 drivers/net/wireless/ath/ath10k/debugfs_sta.c debugfs_create_file("delba", 0200, dir, sta, &fops_delba); dir 766 drivers/net/wireless/ath/ath10k/debugfs_sta.c debugfs_create_file("peer_debug_trigger", 0600, dir, sta, dir 768 drivers/net/wireless/ath/ath10k/debugfs_sta.c debugfs_create_file("dump_tid_stats", 0400, dir, sta, dir 773 drivers/net/wireless/ath/ath10k/debugfs_sta.c debugfs_create_file("tx_stats", 0400, dir, sta, dir 775 drivers/net/wireless/ath/ath10k/debugfs_sta.c debugfs_create_file("peer_ps_state", 0400, dir, sta, dir 549 drivers/net/wireless/ath/ath10k/hw.h const char *dir; dir 774 drivers/net/wireless/ath/ath10k/qmi.c ar->hw_params.fw.dir = WCN3990_HW_1_0_FW_DIR; dir 146 drivers/net/wireless/ath/ath10k/testmode.c ar->hw_params.fw.dir, ATH10K_FW_UTF_FILE); dir 792 drivers/net/wireless/ath/ath6kl/core.h const char *dir; dir 51 drivers/net/wireless/ath/ath6kl/init.c .dir = AR6003_HW_2_0_FW_DIR, dir 74 drivers/net/wireless/ath/ath6kl/init.c .dir = AR6003_HW_2_1_1_FW_DIR, dir 99 drivers/net/wireless/ath/ath6kl/init.c .dir = AR6004_HW_1_0_FW_DIR, dir 118 drivers/net/wireless/ath/ath6kl/init.c .dir = AR6004_HW_1_1_FW_DIR, dir 138 drivers/net/wireless/ath/ath6kl/init.c .dir = AR6004_HW_1_2_FW_DIR, dir 157 drivers/net/wireless/ath/ath6kl/init.c .dir = AR6004_HW_1_3_FW_DIR, dir 180 drivers/net/wireless/ath/ath6kl/init.c .dir = AR6004_HW_3_0_FW_DIR, dir 718 drivers/net/wireless/ath/ath6kl/init.c "%s/bdata.%s.bin", ar->hw.fw.dir, board_id); dir 799 drivers/net/wireless/ath/ath6kl/init.c ar->hw.fw.dir, ar->hw.fw.otp); dir 829 drivers/net/wireless/ath/ath6kl/init.c ar->hw.fw.dir, ar->hw.fw.utf); dir 837 drivers/net/wireless/ath/ath6kl/init.c ar->hw.fw.dir, ar->hw.fw.tcmd); dir 865 drivers/net/wireless/ath/ath6kl/init.c ar->hw.fw.dir, ar->hw.fw.fw); dir 889 drivers/net/wireless/ath/ath6kl/init.c ar->hw.fw.dir, ar->hw.fw.patch); dir 917 drivers/net/wireless/ath/ath6kl/init.c ar->hw.fw.dir, ar->hw.fw.testscript); dir 963 drivers/net/wireless/ath/ath6kl/init.c snprintf(filename, sizeof(filename), "%s/%s", ar->hw.fw.dir, name); dir 57 drivers/net/wireless/ath/ath9k/ar9003_aic.c bool dir, u8 index) dir 61 drivers/net/wireless/ath/ath9k/ar9003_aic.c if (dir) { dir 273 drivers/net/wireless/ath/ath9k/debug.h struct dentry *dir); dir 248 drivers/net/wireless/ath/ath9k/debug_sta.c struct dentry *dir) dir 252 drivers/net/wireless/ath/ath9k/debug_sta.c debugfs_create_file("node_aggr", 0444, dir, an, &fops_node_aggr); dir 253 drivers/net/wireless/ath/ath9k/debug_sta.c debugfs_create_file("node_recv", 0444, dir, an, &fops_node_recv); dir 113 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h TP_PROTO(u8 dir, void *data), dir 114 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h TP_ARGS(dir, data), dir 116 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h __field(u8, dir) dir 118 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h __dynamic_array(u8, hdr, dir == SDPCM_GLOM ? 20 : 12) dir 121 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h memcpy(__get_dynamic_array(hdr), data, dir == SDPCM_GLOM ? 20 : 12); dir 123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h __entry->dir = dir; dir 126 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h __entry->dir == SDPCM_RX ? "RX" : "TX", dir 141 drivers/net/wireless/broadcom/brcm80211/brcmutil/utils.c brcmu_pktq_pflush(struct pktq *pq, int prec, bool dir, dir 158 drivers/net/wireless/broadcom/brcm80211/brcmutil/utils.c void brcmu_pktq_flush(struct pktq *pq, bool dir, dir 163 drivers/net/wireless/broadcom/brcm80211/brcmutil/utils.c brcmu_pktq_pflush(pq, prec, dir, fn, arg); dir 122 drivers/net/wireless/broadcom/brcm80211/include/brcmu_utils.h void brcmu_pktq_pflush(struct pktq *pq, int prec, bool dir, dir 160 drivers/net/wireless/broadcom/brcm80211/include/brcmu_utils.h void brcmu_pktq_flush(struct pktq *pq, bool dir, dir 842 drivers/net/wireless/intel/iwlegacy/3945-rs.c il3945_add_debugfs(void *il, void *il_sta, struct dentry *dir) dir 846 drivers/net/wireless/intel/iwlegacy/3945-rs.c debugfs_create_file("rate_stats_table", 0600, dir, lq_sta, dir 2748 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_add_debugfs(void *il, void *il_sta, struct dentry *dir) dir 2752 drivers/net/wireless/intel/iwlegacy/4965-rs.c debugfs_create_file("rate_scale_table", 0600, dir, lq_sta, dir 2754 drivers/net/wireless/intel/iwlegacy/4965-rs.c debugfs_create_file("rate_stats_table", 0400, dir, lq_sta, dir 2756 drivers/net/wireless/intel/iwlegacy/4965-rs.c debugfs_create_file("rate_scale_data", 0400, dir, lq_sta, dir 2758 drivers/net/wireless/intel/iwlegacy/4965-rs.c debugfs_create_u8("tx_agg_tid_enable", 0600, dir, dir 3256 drivers/net/wireless/intel/iwlwifi/dvm/rs.c struct dentry *dir) dir 3260 drivers/net/wireless/intel/iwlwifi/dvm/rs.c debugfs_create_file("rate_scale_table", 0600, dir, lq_sta, dir 3262 drivers/net/wireless/intel/iwlwifi/dvm/rs.c debugfs_create_file("rate_stats_table", 0400, dir, lq_sta, dir 3264 drivers/net/wireless/intel/iwlwifi/dvm/rs.c debugfs_create_file("rate_scale_data", 0400, dir, lq_sta, dir 3266 drivers/net/wireless/intel/iwlwifi/dvm/rs.c debugfs_create_u8("tx_agg_tid_enable", 0600, dir, dir 1978 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c struct dentry *dir) dir 1983 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c MVM_DEBUGFS_ADD_STA_FILE(rs_data, dir, 0400); dir 1985 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c MVM_DEBUGFS_ADD_STA_FILE(amsdu_len, dir, 0600); dir 2077 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h struct dentry *dir); dir 4103 drivers/net/wireless/intel/iwlwifi/mvm/rs.c struct dentry *dir) dir 4113 drivers/net/wireless/intel/iwlwifi/mvm/rs.c debugfs_create_file("rate_scale_table", 0600, dir, dir 4115 drivers/net/wireless/intel/iwlwifi/mvm/rs.c debugfs_create_file("rate_stats_table", 0400, dir, dir 4117 drivers/net/wireless/intel/iwlwifi/mvm/rs.c debugfs_create_file("drv_tx_stats", 0600, dir, dir 4119 drivers/net/wireless/intel/iwlwifi/mvm/rs.c debugfs_create_u8("tx_agg_tid_enable", 0600, dir, dir 4121 drivers/net/wireless/intel/iwlwifi/mvm/rs.c debugfs_create_u8("reduced_tpc", 0600, dir, dir 4124 drivers/net/wireless/intel/iwlwifi/mvm/rs.c MVM_DEBUGFS_ADD_FILE_RS(ss_force, dir, 0600); dir 2928 drivers/net/wireless/intel/iwlwifi/pcie/trans.c struct dentry *dir = trans->dbgfs_dir; dir 2930 drivers/net/wireless/intel/iwlwifi/pcie/trans.c DEBUGFS_ADD_FILE(rx_queue, dir, 0400); dir 2931 drivers/net/wireless/intel/iwlwifi/pcie/trans.c DEBUGFS_ADD_FILE(tx_queue, dir, 0400); dir 2932 drivers/net/wireless/intel/iwlwifi/pcie/trans.c DEBUGFS_ADD_FILE(interrupt, dir, 0600); dir 2933 drivers/net/wireless/intel/iwlwifi/pcie/trans.c DEBUGFS_ADD_FILE(csr, dir, 0200); dir 2934 drivers/net/wireless/intel/iwlwifi/pcie/trans.c DEBUGFS_ADD_FILE(fh_reg, dir, 0400); dir 2935 drivers/net/wireless/intel/iwlwifi/pcie/trans.c DEBUGFS_ADD_FILE(rfkill, dir, 0600); dir 2936 drivers/net/wireless/intel/iwlwifi/pcie/trans.c DEBUGFS_ADD_FILE(monitor_data, dir, 0400); dir 945 drivers/net/wireless/marvell/libertas/host.h u8 dir; dir 80 drivers/net/wireless/mediatek/mt76/debugfs.c struct dentry *dir; dir 82 drivers/net/wireless/mediatek/mt76/debugfs.c dir = debugfs_create_dir("mt76", dev->hw->wiphy->debugfsdir); dir 83 drivers/net/wireless/mediatek/mt76/debugfs.c if (!dir) dir 86 drivers/net/wireless/mediatek/mt76/debugfs.c debugfs_create_u8("led_pin", 0600, dir, &dev->led_pin); dir 87 drivers/net/wireless/mediatek/mt76/debugfs.c debugfs_create_u32("regidx", 0600, dir, &dev->debugfs_reg); dir 88 drivers/net/wireless/mediatek/mt76/debugfs.c debugfs_create_file_unsafe("regval", 0600, dir, dev, dir 90 drivers/net/wireless/mediatek/mt76/debugfs.c debugfs_create_blob("eeprom", 0400, dir, &dev->eeprom); dir 92 drivers/net/wireless/mediatek/mt76/debugfs.c debugfs_create_blob("otp", 0400, dir, &dev->otp); dir 93 drivers/net/wireless/mediatek/mt76/debugfs.c debugfs_create_devm_seqfile(dev->dev, "queues", dir, mt76_queues_read); dir 94 drivers/net/wireless/mediatek/mt76/debugfs.c debugfs_create_devm_seqfile(dev->dev, "rate_txpower", dir, dir 97 drivers/net/wireless/mediatek/mt76/debugfs.c return dir; dir 74 drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c struct dentry *dir; dir 76 drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c dir = mt76_register_debugfs(&dev->mt76); dir 77 drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c if (!dir) dir 80 drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c debugfs_create_file("edcca", 0600, dir, dev, &fops_edcca); dir 81 drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c debugfs_create_u32("reset_test", 0600, dir, &dev->reset_test); dir 82 drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c debugfs_create_devm_seqfile(dev->mt76.dev, "reset", dir, dir 84 drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c debugfs_create_devm_seqfile(dev->mt76.dev, "radio", dir, dir 66 drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c struct dentry *dir; dir 68 drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c dir = mt76_register_debugfs(&dev->mt76); dir 69 drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c if (!dir) dir 72 drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c debugfs_create_file("scs", 0600, dir, dev, &fops_scs); dir 73 drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c debugfs_create_devm_seqfile(dev->mt76.dev, "radio", dir, dir 75 drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c debugfs_create_u32("dfs_hw_pattern", 0400, dir, &dev->hw_pattern); dir 77 drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c debugfs_create_u8("pattern_len", 0600, dir, dir 79 drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c debugfs_create_u32("pulse_period", 0600, dir, dir 81 drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c debugfs_create_u16("pulse_width", 0600, dir, dir 83 drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c debugfs_create_u16("pulse_power", 0600, dir, dir 85 drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c debugfs_create_file("radar_trigger", 0200, dir, dev, dir 87 drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c debugfs_create_devm_seqfile(dev->mt76.dev, "temperature", dir, dir 140 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c struct dentry *dir; dir 142 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c dir = mt76_register_debugfs(&dev->mt76); dir 143 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c if (!dir) dir 146 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c debugfs_create_u8("temperature", 0400, dir, &dev->cal.temp); dir 147 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c debugfs_create_bool("tpc", 0600, dir, &dev->enable_tpc); dir 149 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c debugfs_create_file("edcca", 0600, dir, dev, &fops_edcca); dir 150 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c debugfs_create_file("ampdu_stat", 0400, dir, dev, &fops_ampdu_stat); dir 151 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c debugfs_create_file("dfs_stats", 0400, dir, dev, &fops_dfs_stat); dir 152 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c debugfs_create_devm_seqfile(dev->mt76.dev, "txpower", dir, dir 155 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c debugfs_create_devm_seqfile(dev->mt76.dev, "agc", dir, read_agc); dir 157 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c debugfs_create_u32("tx_hang_reset", 0400, dir, &dev->tx_hang_reset); dir 371 drivers/net/wireless/mediatek/mt76/usb.c mt76u_fill_bulk_urb(struct mt76_dev *dev, int dir, int index, dir 379 drivers/net/wireless/mediatek/mt76/usb.c if (dir == USB_DIR_IN) dir 149 drivers/net/wireless/mediatek/mt7601u/debugfs.c struct dentry *dir; dir 151 drivers/net/wireless/mediatek/mt7601u/debugfs.c dir = debugfs_create_dir("mt7601u", dev->hw->wiphy->debugfsdir); dir 152 drivers/net/wireless/mediatek/mt7601u/debugfs.c if (!dir) dir 155 drivers/net/wireless/mediatek/mt7601u/debugfs.c debugfs_create_u8("temperature", 0400, dir, &dev->raw_temp); dir 156 drivers/net/wireless/mediatek/mt7601u/debugfs.c debugfs_create_u32("temp_mode", 0400, dir, &dev->temp_mode); dir 158 drivers/net/wireless/mediatek/mt7601u/debugfs.c debugfs_create_u32("regidx", 0600, dir, &dev->debugfs_reg); dir 159 drivers/net/wireless/mediatek/mt7601u/debugfs.c debugfs_create_file("regval", 0600, dir, dev, &fops_regval); dir 160 drivers/net/wireless/mediatek/mt7601u/debugfs.c debugfs_create_file("ampdu_stat", 0400, dir, dev, &fops_ampdu_stat); dir 161 drivers/net/wireless/mediatek/mt7601u/debugfs.c debugfs_create_file("eeprom_param", 0400, dir, dev, &fops_eeprom_param); dir 54 drivers/net/wireless/mediatek/mt7601u/usb.c int mt7601u_usb_submit_buf(struct mt7601u_dev *dev, int dir, int ep_idx, dir 62 drivers/net/wireless/mediatek/mt7601u/usb.c if (dir == USB_DIR_IN) dir 76 drivers/net/wireless/mediatek/mt7601u/usb.c dir, ep_idx, ret); dir 59 drivers/net/wireless/mediatek/mt7601u/usb.h int mt7601u_usb_submit_buf(struct mt7601u_dev *dev, int dir, int ep_idx, dir 5915 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u8 dir, xtype, num; dir 5925 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c dir = endpoint->bEndpointAddress & USB_ENDPOINT_DIR_MASK; dir 5931 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c __func__, dir, num, xtype); dir 1238 drivers/net/wireless/ti/wlcore/acx.c acx->dir = WL1271_ACX_TRIG_DIR_BIDIR; dir 635 drivers/net/wireless/ti/wlcore/acx.h u8 dir; dir 220 drivers/nubus/nubus.c struct nubus_dir *dir) dir 222 drivers/nubus/nubus.c dir->ptr = dir->base = board->directory; dir 223 drivers/nubus/nubus.c dir->done = 0; dir 224 drivers/nubus/nubus.c dir->mask = board->lanes; dir 230 drivers/nubus/nubus.c int nubus_get_func_dir(const struct nubus_rsrc *fres, struct nubus_dir *dir) dir 232 drivers/nubus/nubus.c dir->ptr = dir->base = fres->directory; dir 233 drivers/nubus/nubus.c dir->done = 0; dir 234 drivers/nubus/nubus.c dir->mask = fres->board->lanes; dir 240 drivers/nubus/nubus.c struct nubus_dir *dir) dir 244 drivers/nubus/nubus.c dir->ptr = dir->base = board->directory; dir 245 drivers/nubus/nubus.c dir->done = 0; dir 246 drivers/nubus/nubus.c dir->mask = board->lanes; dir 250 drivers/nubus/nubus.c if (nubus_readdir(dir, &ent) == -1) dir 252 drivers/nubus/nubus.c if (nubus_get_subdir(&ent, dir) == -1) dir 259 drivers/nubus/nubus.c struct nubus_dir *dir) dir 261 drivers/nubus/nubus.c dir->ptr = dir->base = nubus_dirptr(ent); dir 262 drivers/nubus/nubus.c dir->done = 0; dir 263 drivers/nubus/nubus.c dir->mask = ent->mask; dir 297 drivers/nubus/nubus.c int nubus_rewinddir(struct nubus_dir *dir) dir 299 drivers/nubus/nubus.c dir->ptr = dir->base; dir 300 drivers/nubus/nubus.c dir->done = 0; dir 323 drivers/nubus/nubus.c nubus_find_rsrc(struct nubus_dir *dir, unsigned char rsrc_type, dir 326 drivers/nubus/nubus.c while (nubus_readdir(dir, ent) != -1) { dir 342 drivers/nubus/nubus.c struct nubus_dir dir; dir 345 drivers/nubus/nubus.c nubus_get_subdir(parent, &dir); dir 346 drivers/nubus/nubus.c dir.procdir = nubus_proc_add_rsrc_dir(procdir, parent, board); dir 348 drivers/nubus/nubus.c while (nubus_readdir(&dir, &ent) != -1) { dir 353 drivers/nubus/nubus.c nubus_proc_add_rsrc_mem(dir.procdir, &ent, size); dir 362 drivers/nubus/nubus.c struct nubus_dir dir; dir 365 drivers/nubus/nubus.c nubus_get_subdir(parent, &dir); dir 366 drivers/nubus/nubus.c dir.procdir = nubus_proc_add_rsrc_dir(procdir, parent, board); dir 368 drivers/nubus/nubus.c while (nubus_readdir(&dir, &ent) != -1) { dir 378 drivers/nubus/nubus.c nubus_proc_add_rsrc_mem(dir.procdir, &ent, size); dir 384 drivers/nubus/nubus.c nubus_proc_add_rsrc_mem(dir.procdir, &ent, 0); dir 493 drivers/nubus/nubus.c struct nubus_dir dir; dir 498 drivers/nubus/nubus.c nubus_get_subdir(parent, &dir); dir 499 drivers/nubus/nubus.c dir.procdir = nubus_proc_add_rsrc_dir(board->procdir, parent, board); dir 506 drivers/nubus/nubus.c fres->directory = dir.base; dir 509 drivers/nubus/nubus.c while (nubus_readdir(&dir, &ent) != -1) { dir 522 drivers/nubus/nubus.c nubus_proc_add_rsrc_mem(dir.procdir, &ent, 8); dir 532 drivers/nubus/nubus.c nubus_proc_add_rsrc_mem(dir.procdir, &ent, len + 1); dir 541 drivers/nubus/nubus.c nubus_get_block_rsrc_dir(board, dir.procdir, &ent); dir 553 drivers/nubus/nubus.c nubus_proc_add_rsrc_mem(dir.procdir, &ent, 4); dir 563 drivers/nubus/nubus.c nubus_proc_add_rsrc_mem(dir.procdir, &ent, 4); dir 568 drivers/nubus/nubus.c nubus_proc_add_rsrc(dir.procdir, &ent); dir 572 drivers/nubus/nubus.c nubus_proc_add_rsrc(dir.procdir, &ent); dir 577 drivers/nubus/nubus.c nubus_get_private_resource(fres, dir.procdir, &ent); dir 608 drivers/nubus/nubus.c struct nubus_dir dir; dir 614 drivers/nubus/nubus.c nubus_get_subdir(parent, &dir); dir 615 drivers/nubus/nubus.c dir.procdir = nubus_proc_add_rsrc_dir(procdir, parent, board); dir 617 drivers/nubus/nubus.c while (nubus_readdir(&dir, &ent) != -1) { dir 626 drivers/nubus/nubus.c nubus_proc_add_rsrc_mem(dir.procdir, &ent, len + 1); dir 634 drivers/nubus/nubus.c struct nubus_dir dir; dir 638 drivers/nubus/nubus.c nubus_get_subdir(parent, &dir); dir 639 drivers/nubus/nubus.c dir.procdir = nubus_proc_add_rsrc_dir(board->procdir, parent, board); dir 641 drivers/nubus/nubus.c while (nubus_readdir(&dir, &ent) != -1) { dir 656 drivers/nubus/nubus.c nubus_proc_add_rsrc_mem(dir.procdir, &ent, 8); dir 666 drivers/nubus/nubus.c nubus_proc_add_rsrc_mem(dir.procdir, &ent, len + 1); dir 670 drivers/nubus/nubus.c nubus_get_icon(board, dir.procdir, &ent); dir 674 drivers/nubus/nubus.c nubus_proc_add_rsrc(dir.procdir, &ent); dir 678 drivers/nubus/nubus.c nubus_proc_add_rsrc(dir.procdir, &ent); dir 681 drivers/nubus/nubus.c nubus_get_vendorinfo(board, dir.procdir, &ent); dir 685 drivers/nubus/nubus.c nubus_proc_add_rsrc(dir.procdir, &ent); dir 689 drivers/nubus/nubus.c nubus_proc_add_rsrc(dir.procdir, &ent); dir 694 drivers/nubus/nubus.c nubus_proc_add_rsrc(dir.procdir, &ent); dir 700 drivers/nubus/nubus.c nubus_get_block_rsrc_dir(board, dir.procdir, &ent); dir 706 drivers/nubus/nubus.c nubus_proc_add_rsrc(dir.procdir, &ent); dir 711 drivers/nubus/nubus.c nubus_proc_add_rsrc_mem(dir.procdir, &ent, 0); dir 722 drivers/nubus/nubus.c struct nubus_dir dir; dir 781 drivers/nubus/nubus.c nubus_get_root_dir(board, &dir); dir 792 drivers/nubus/nubus.c if (nubus_readdir(&dir, &ent) == -1) { dir 806 drivers/nubus/nubus.c while (nubus_readdir(&dir, &ent) != -1) { dir 21 drivers/nvme/host/fault_inject.c struct dentry *dir, *parent; dir 36 drivers/nvme/host/fault_inject.c dir = fault_create_debugfs_attr("fault_inject", parent, attr); dir 37 drivers/nvme/host/fault_inject.c if (IS_ERR(dir)) { dir 47 drivers/nvme/host/fault_inject.c debugfs_create_x16("status", 0600, dir, &fault_inj->status); dir 48 drivers/nvme/host/fault_inject.c debugfs_create_bool("dont_retry", 0600, dir, &fault_inj->dont_retry); dir 930 drivers/nvme/host/fc.c enum dma_data_direction dir) dir 932 drivers/nvme/host/fc.c return dev ? dma_map_single(dev, ptr, size, dir) : (dma_addr_t)0L; dir 943 drivers/nvme/host/fc.c enum dma_data_direction dir) dir 946 drivers/nvme/host/fc.c dma_unmap_single(dev, addr, size, dir); dir 951 drivers/nvme/host/fc.c enum dma_data_direction dir) dir 954 drivers/nvme/host/fc.c dma_sync_single_for_cpu(dev, addr, size, dir); dir 959 drivers/nvme/host/fc.c enum dma_data_direction dir) dir 962 drivers/nvme/host/fc.c dma_sync_single_for_device(dev, addr, size, dir); dir 985 drivers/nvme/host/fc.c enum dma_data_direction dir) dir 987 drivers/nvme/host/fc.c return dev ? dma_map_sg(dev, sg, nents, dir) : fc_map_sg(sg, nents); dir 992 drivers/nvme/host/fc.c enum dma_data_direction dir) dir 995 drivers/nvme/host/fc.c dma_unmap_sg(dev, sg, nents, dir); dir 171 drivers/nvme/host/rdma.c size_t capsule_size, enum dma_data_direction dir) dir 173 drivers/nvme/host/rdma.c ib_dma_unmap_single(ibdev, qe->dma, capsule_size, dir); dir 178 drivers/nvme/host/rdma.c size_t capsule_size, enum dma_data_direction dir) dir 184 drivers/nvme/host/rdma.c qe->dma = ib_dma_map_single(ibdev, qe->data, capsule_size, dir); dir 196 drivers/nvme/host/rdma.c size_t capsule_size, enum dma_data_direction dir) dir 201 drivers/nvme/host/rdma.c nvme_rdma_free_qe(ibdev, &ring[i], capsule_size, dir); dir 207 drivers/nvme/host/rdma.c enum dma_data_direction dir) dir 222 drivers/nvme/host/rdma.c if (nvme_rdma_alloc_qe(ibdev, &ring[i], capsule_size, dir)) dir 229 drivers/nvme/host/rdma.c nvme_rdma_free_ring(ibdev, ring, i, capsule_size, dir); dir 211 drivers/nvme/host/tcp.c unsigned int dir) dir 233 drivers/nvme/host/tcp.c iov_iter_bvec(&req->iter, dir, vec, nsegs, size); dir 252 drivers/nvme/target/fc.c enum dma_data_direction dir) dir 254 drivers/nvme/target/fc.c return dev ? dma_map_single(dev, ptr, size, dir) : (dma_addr_t)0L; dir 265 drivers/nvme/target/fc.c enum dma_data_direction dir) dir 268 drivers/nvme/target/fc.c dma_unmap_single(dev, addr, size, dir); dir 273 drivers/nvme/target/fc.c enum dma_data_direction dir) dir 276 drivers/nvme/target/fc.c dma_sync_single_for_cpu(dev, addr, size, dir); dir 281 drivers/nvme/target/fc.c enum dma_data_direction dir) dir 284 drivers/nvme/target/fc.c dma_sync_single_for_device(dev, addr, size, dir); dir 307 drivers/nvme/target/fc.c enum dma_data_direction dir) dir 309 drivers/nvme/target/fc.c return dev ? dma_map_sg(dev, sg, nents, dir) : fc_map_sg(sg, nents); dir 314 drivers/nvme/target/fc.c enum dma_data_direction dir) dir 317 drivers/nvme/target/fc.c dma_unmap_sg(dev, sg, nents, dir); dir 147 drivers/oprofile/oprofile_perf.c struct dentry *dir; dir 151 drivers/oprofile/oprofile_perf.c dir = oprofilefs_mkdir(root, buf); dir 152 drivers/oprofile/oprofile_perf.c oprofilefs_create_ulong(dir, "enabled", &counter_config[i].enabled); dir 153 drivers/oprofile/oprofile_perf.c oprofilefs_create_ulong(dir, "event", &counter_config[i].event); dir 154 drivers/oprofile/oprofile_perf.c oprofilefs_create_ulong(dir, "count", &counter_config[i].count); dir 155 drivers/oprofile/oprofile_perf.c oprofilefs_create_ulong(dir, "unit_mask", &counter_config[i].unit_mask); dir 156 drivers/oprofile/oprofile_perf.c oprofilefs_create_ulong(dir, "kernel", &counter_config[i].kernel); dir 157 drivers/oprofile/oprofile_perf.c oprofilefs_create_ulong(dir, "user", &counter_config[i].user); dir 45 drivers/oprofile/oprofile_stats.c struct dentry *dir; dir 49 drivers/oprofile/oprofile_stats.c dir = oprofilefs_mkdir(root, "stats"); dir 50 drivers/oprofile/oprofile_stats.c if (!dir) dir 56 drivers/oprofile/oprofile_stats.c cpudir = oprofilefs_mkdir(dir, buf); dir 72 drivers/oprofile/oprofile_stats.c oprofilefs_create_ro_atomic(dir, "sample_lost_no_mm", dir 74 drivers/oprofile/oprofile_stats.c oprofilefs_create_ro_atomic(dir, "sample_lost_no_mapping", dir 76 drivers/oprofile/oprofile_stats.c oprofilefs_create_ro_atomic(dir, "event_lost_overflow", dir 78 drivers/oprofile/oprofile_stats.c oprofilefs_create_ro_atomic(dir, "bt_lost_no_mapping", dir 81 drivers/oprofile/oprofile_stats.c oprofilefs_create_ro_atomic(dir, "multiplex_counter", dir 466 drivers/parport/parport_ip32.c enum dma_data_direction dir; dir 567 drivers/parport/parport_ip32.c enum dma_data_direction dir, void *addr, size_t count) dir 572 drivers/parport/parport_ip32.c pr_trace(NULL, "(%d, %lu)", dir, (unsigned long)count); dir 576 drivers/parport/parport_ip32.c BUG_ON(dir != DMA_TO_DEVICE); dir 591 drivers/parport/parport_ip32.c parport_ip32_dma.dir = dir; dir 592 drivers/parport/parport_ip32.c parport_ip32_dma.buf = dma_map_single(&p->bus_dev, addr, count, dir); dir 599 drivers/parport/parport_ip32.c ctrl = (dir == DMA_TO_DEVICE) ? 0 : MACEPAR_CTLSTAT_DIRECTION; dir 678 drivers/parport/parport_ip32.c parport_ip32_dma.len, parport_ip32_dma.dir); dir 341 drivers/pci/controller/vmd.c enum dma_data_direction dir, dir 344 drivers/pci/controller/vmd.c return dma_map_page_attrs(to_vmd_dev(dev), page, offset, size, dir, dir 349 drivers/pci/controller/vmd.c enum dma_data_direction dir, unsigned long attrs) dir 351 drivers/pci/controller/vmd.c dma_unmap_page_attrs(to_vmd_dev(dev), addr, size, dir, attrs); dir 355 drivers/pci/controller/vmd.c enum dma_data_direction dir, unsigned long attrs) dir 357 drivers/pci/controller/vmd.c return dma_map_sg_attrs(to_vmd_dev(dev), sg, nents, dir, attrs); dir 361 drivers/pci/controller/vmd.c enum dma_data_direction dir, unsigned long attrs) dir 363 drivers/pci/controller/vmd.c dma_unmap_sg_attrs(to_vmd_dev(dev), sg, nents, dir, attrs); dir 367 drivers/pci/controller/vmd.c size_t size, enum dma_data_direction dir) dir 369 drivers/pci/controller/vmd.c dma_sync_single_for_cpu(to_vmd_dev(dev), addr, size, dir); dir 373 drivers/pci/controller/vmd.c size_t size, enum dma_data_direction dir) dir 375 drivers/pci/controller/vmd.c dma_sync_single_for_device(to_vmd_dev(dev), addr, size, dir); dir 379 drivers/pci/controller/vmd.c int nents, enum dma_data_direction dir) dir 381 drivers/pci/controller/vmd.c dma_sync_sg_for_cpu(to_vmd_dev(dev), sg, nents, dir); dir 385 drivers/pci/controller/vmd.c int nents, enum dma_data_direction dir) dir 387 drivers/pci/controller/vmd.c dma_sync_sg_for_device(to_vmd_dev(dev), sg, nents, dir); dir 856 drivers/pci/p2pdma.c int nents, enum dma_data_direction dir, unsigned long attrs) dir 869 drivers/pci/p2pdma.c return dma_map_sg_attrs(dev, sg, nents, dir, attrs); dir 889 drivers/pci/p2pdma.c int nents, enum dma_data_direction dir, unsigned long attrs) dir 904 drivers/pci/p2pdma.c dma_unmap_sg_attrs(dev, sg, nents, dir, attrs); dir 239 drivers/perf/arm-ccn.c static CCN_FORMAT_ATTR(dir, "config:29-29"); dir 559 drivers/perf/xgene_pmu.c XGENE_PMU_EVENT_ATTR(dir-change, 0x1c), dir 560 drivers/perf/xgene_pmu.c XGENE_PMU_EVENT_ATTR(rank-dir-change, 0x1d), dir 849 drivers/pinctrl/nomadik/pinctrl-nomadik.c int dir; dir 853 drivers/pinctrl/nomadik/pinctrl-nomadik.c dir = !(readl(nmk_chip->addr + NMK_GPIO_DIR) & BIT(offset)); dir 857 drivers/pinctrl/nomadik/pinctrl-nomadik.c return dir; dir 79 drivers/pinctrl/pinctrl-coh901.c u32 dir; dir 215 drivers/pinctrl/pinctrl-coh901.c return !!(readl(U300_PIN_REG(offset, dir)) & U300_PIN_BIT(offset)); dir 658 drivers/pinctrl/pinctrl-coh901.c gpio->dir = U300_GPIO_PXPDIR; dir 108 drivers/pinctrl/pinctrl-rza2.c u8 dir) dir 119 drivers/pinctrl/pinctrl-rza2.c if (dir) dir 217 drivers/pinctrl/pinctrl-stmfx.c int ret, dir, type, pupd; dir 223 drivers/pinctrl/pinctrl-stmfx.c dir = stmfx_gpio_get_direction(&pctl->gpio_chip, pin); dir 224 drivers/pinctrl/pinctrl-stmfx.c if (dir < 0) dir 225 drivers/pinctrl/pinctrl-stmfx.c return dir; dir 235 drivers/pinctrl/pinctrl-stmfx.c if ((!dir && (!type || !pupd)) || (dir && !type)) dir 239 drivers/pinctrl/pinctrl-stmfx.c if (dir && type && !pupd) dir 247 drivers/pinctrl/pinctrl-stmfx.c if ((!dir && type) || (dir && !type)) dir 251 drivers/pinctrl/pinctrl-stmfx.c if ((!dir && !type) || (dir && type)) dir 255 drivers/pinctrl/pinctrl-stmfx.c if (dir) dir 280 drivers/pinctrl/pinctrl-stmfx.c int dir, i, ret; dir 288 drivers/pinctrl/pinctrl-stmfx.c dir = stmfx_gpio_get_direction(&pctl->gpio_chip, pin); dir 289 drivers/pinctrl/pinctrl-stmfx.c if (dir < 0) dir 290 drivers/pinctrl/pinctrl-stmfx.c return dir; dir 344 drivers/pinctrl/pinctrl-stmfx.c int dir, type, pupd, val; dir 350 drivers/pinctrl/pinctrl-stmfx.c dir = stmfx_gpio_get_direction(&pctl->gpio_chip, offset); dir 351 drivers/pinctrl/pinctrl-stmfx.c if (dir < 0) dir 363 drivers/pinctrl/pinctrl-stmfx.c if (!dir) { dir 777 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c int type, subtype, val, dir; dir 834 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c dir = val & PMIC_GPIO_REG_LV_MV_MODE_DIR_MASK; dir 842 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c dir = val >> PMIC_GPIO_REG_MODE_DIR_SHIFT; dir 843 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c dir &= PMIC_GPIO_REG_MODE_DIR_MASK; dir 848 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c switch (dir) { dir 661 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c int type, subtype, val, dir; dir 701 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c dir = val >> PMIC_MPP_REG_MODE_DIR_SHIFT; dir 702 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c dir &= PMIC_MPP_REG_MODE_DIR_MASK; dir 704 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c switch (dir) { dir 450 drivers/pinctrl/sh-pfc/pinctrl.c unsigned int dir; dir 457 drivers/pinctrl/sh-pfc/pinctrl.c dir = input ? SH_PFC_PIN_CFG_INPUT : SH_PFC_PIN_CFG_OUTPUT; dir 458 drivers/pinctrl/sh-pfc/pinctrl.c if (!(pin->configs & dir)) dir 44 drivers/pinctrl/spear/pinctrl-plgpio.c u32 dir; /* direction set register */ dir 121 drivers/pinctrl/spear/pinctrl-plgpio.c plgpio_reg_set(plgpio->base, offset, plgpio->regs.dir); dir 154 drivers/pinctrl/spear/pinctrl-plgpio.c plgpio_reg_reset(plgpio->base, dir_offset, plgpio->regs.dir); dir 478 drivers/pinctrl/spear/pinctrl-plgpio.c plgpio->regs.dir = val; dir 631 drivers/pinctrl/spear/pinctrl-plgpio.c plgpio->csave_regs[i].dir = readl_relaxed(plgpio->regs.dir + dir 674 drivers/pinctrl/spear/pinctrl-plgpio.c plgpio_prepare_reg(dir, off, mask, tmp); dir 680 drivers/pinctrl/spear/pinctrl-plgpio.c writel_relaxed(plgpio->csave_regs[i].dir, plgpio->regs.dir + dir 973 drivers/pinctrl/stm32/pinctrl-stm32.c unsigned int offset, bool dir) dir 981 drivers/pinctrl/stm32/pinctrl-stm32.c if (dir) dir 43 drivers/platform/chrome/cros_ec_debugfs.c struct dentry *dir; dir 364 drivers/platform/chrome/cros_ec_debugfs.c debugfs_create_file("console_log", S_IFREG | 0444, debug_info->dir, dir 412 drivers/platform/chrome/cros_ec_debugfs.c debugfs_create_blob("panicinfo", S_IFREG | 0444, debug_info->dir, dir 435 drivers/platform/chrome/cros_ec_debugfs.c debug_info->dir = debugfs_create_dir(name, NULL); dir 445 drivers/platform/chrome/cros_ec_debugfs.c debugfs_create_file("pdinfo", 0444, debug_info->dir, debug_info, dir 448 drivers/platform/chrome/cros_ec_debugfs.c debugfs_create_file("uptime", 0444, debug_info->dir, debug_info, dir 451 drivers/platform/chrome/cros_ec_debugfs.c debugfs_create_x32("last_resume_result", 0444, debug_info->dir, dir 461 drivers/platform/chrome/cros_ec_debugfs.c debugfs_remove_recursive(debug_info->dir); dir 469 drivers/platform/chrome/cros_ec_debugfs.c debugfs_remove_recursive(ec->debug_info->dir); dir 24 drivers/platform/chrome/wilco_ec/debugfs.c struct dentry *dir; dir 223 drivers/platform/chrome/wilco_ec/debugfs.c debug_info->dir = debugfs_create_dir("wilco_ec", NULL); dir 224 drivers/platform/chrome/wilco_ec/debugfs.c if (!debug_info->dir) dir 226 drivers/platform/chrome/wilco_ec/debugfs.c debugfs_create_file("raw", 0644, debug_info->dir, NULL, &fops_raw); dir 227 drivers/platform/chrome/wilco_ec/debugfs.c debugfs_create_file("h1_gpio", 0444, debug_info->dir, ec, dir 235 drivers/platform/chrome/wilco_ec/debugfs.c debugfs_remove_recursive(debug_info->dir); dir 321 drivers/platform/x86/ideapad-laptop.c struct dentry *dir; dir 323 drivers/platform/x86/ideapad-laptop.c dir = debugfs_create_dir("ideapad", NULL); dir 324 drivers/platform/x86/ideapad-laptop.c priv->debug = dir; dir 326 drivers/platform/x86/ideapad-laptop.c debugfs_create_file("cfg", S_IRUGO, dir, priv, &debugfs_cfg_fops); dir 327 drivers/platform/x86/ideapad-laptop.c debugfs_create_file("status", S_IRUGO, dir, priv, &debugfs_status_fops); dir 762 drivers/platform/x86/intel_pmc_core.c struct dentry *dir; dir 764 drivers/platform/x86/intel_pmc_core.c dir = debugfs_create_dir("pmc_core", NULL); dir 765 drivers/platform/x86/intel_pmc_core.c pmcdev->dbgfs_dir = dir; dir 767 drivers/platform/x86/intel_pmc_core.c debugfs_create_file("slp_s0_residency_usec", 0444, dir, pmcdev, dir 770 drivers/platform/x86/intel_pmc_core.c debugfs_create_file("pch_ip_power_gating_status", 0444, dir, pmcdev, dir 773 drivers/platform/x86/intel_pmc_core.c debugfs_create_file("ltr_ignore", 0644, dir, pmcdev, dir 776 drivers/platform/x86/intel_pmc_core.c debugfs_create_file("ltr_show", 0444, dir, pmcdev, &pmc_core_ltr_fops); dir 778 drivers/platform/x86/intel_pmc_core.c debugfs_create_file("package_cstate_show", 0444, dir, pmcdev, dir 782 drivers/platform/x86/intel_pmc_core.c debugfs_create_file("pll_status", 0444, dir, pmcdev, dir 787 drivers/platform/x86/intel_pmc_core.c 0444, dir, pmcdev, dir 792 drivers/platform/x86/intel_pmc_core.c dir, pmcdev, dir 796 drivers/platform/x86/intel_pmc_core.c dir, &slps0_dbg_latch); dir 903 drivers/platform/x86/intel_telemetry_debugfs.c struct dentry *dir; dir 926 drivers/platform/x86/intel_telemetry_debugfs.c dir = debugfs_create_dir("telemetry", NULL); dir 927 drivers/platform/x86/intel_telemetry_debugfs.c debugfs_conf->telemetry_dbg_dir = dir; dir 929 drivers/platform/x86/intel_telemetry_debugfs.c debugfs_create_file("pss_info", S_IFREG | S_IRUGO, dir, NULL, dir 931 drivers/platform/x86/intel_telemetry_debugfs.c debugfs_create_file("ioss_info", S_IFREG | S_IRUGO, dir, NULL, dir 933 drivers/platform/x86/intel_telemetry_debugfs.c debugfs_create_file("soc_states", S_IFREG | S_IRUGO, dir, NULL, dir 935 drivers/platform/x86/intel_telemetry_debugfs.c debugfs_create_file("s0ix_residency_usec", S_IFREG | S_IRUGO, dir, NULL, dir 937 drivers/platform/x86/intel_telemetry_debugfs.c debugfs_create_file("pss_trace_verbosity", S_IFREG | S_IRUGO, dir, NULL, dir 939 drivers/platform/x86/intel_telemetry_debugfs.c debugfs_create_file("ioss_trace_verbosity", S_IFREG | S_IRUGO, dir, dir 346 drivers/platform/x86/pmc_atom.c struct dentry *dir; dir 348 drivers/platform/x86/pmc_atom.c dir = debugfs_create_dir("pmc_atom", NULL); dir 350 drivers/platform/x86/pmc_atom.c pmc->dbgfs_dir = dir; dir 352 drivers/platform/x86/pmc_atom.c debugfs_create_file("dev_state", S_IFREG | S_IRUGO, dir, pmc, dir 354 drivers/platform/x86/pmc_atom.c debugfs_create_file("pss_state", S_IFREG | S_IRUGO, dir, pmc, dir 356 drivers/platform/x86/pmc_atom.c debugfs_create_file("sleep_state", S_IFREG | S_IRUGO, dir, pmc, dir 124 drivers/rapidio/devices/rio_mport_cdev.c enum rio_mport_map_dir dir; dir 377 drivers/rapidio/devices/rio_mport_cdev.c map->dir = MAP_OUTBOUND; dir 402 drivers/rapidio/devices/rio_mport_cdev.c if (map->dir != MAP_OUTBOUND) dir 476 drivers/rapidio/devices/rio_mport_cdev.c if (map->dir == MAP_OUTBOUND && map->phys_addr == handle) { dir 545 drivers/rapidio/devices/rio_mport_cdev.c enum dma_data_direction dir; dir 578 drivers/rapidio/devices/rio_mport_cdev.c req->sgt.sgl, req->sgt.nents, req->dir); dir 617 drivers/rapidio/devices/rio_mport_cdev.c struct sg_table *sgt, int nents, enum dma_transfer_direction dir, dir 626 drivers/rapidio/devices/rio_mport_cdev.c if (dir == DMA_MEM_TO_DEV) { dir 645 drivers/rapidio/devices/rio_mport_cdev.c return rio_dma_prep_xfer(chan, transfer->rioid, &tx_data, dir, flags); dir 703 drivers/rapidio/devices/rio_mport_cdev.c enum dma_transfer_direction dir; dir 711 drivers/rapidio/devices/rio_mport_cdev.c dir = (req->dir == DMA_FROM_DEVICE) ? DMA_DEV_TO_MEM : DMA_MEM_TO_DEV; dir 716 drivers/rapidio/devices/rio_mport_cdev.c (dir == DMA_DEV_TO_MEM)?"READ":"WRITE"); dir 719 drivers/rapidio/devices/rio_mport_cdev.c tx = prep_dma_xfer(chan, xfer, sgt, nents, dir, dir 724 drivers/rapidio/devices/rio_mport_cdev.c (dir == DMA_DEV_TO_MEM)?"READ":"WRITE", dir 731 drivers/rapidio/devices/rio_mport_cdev.c (dir == DMA_DEV_TO_MEM)?"READ":"WRITE", dir 746 drivers/rapidio/devices/rio_mport_cdev.c (dir == DMA_DEV_TO_MEM)?"READ":"WRITE", cookie); dir 772 drivers/rapidio/devices/rio_mport_cdev.c (dir == DMA_DEV_TO_MEM)?"READ":"WRITE", cookie); dir 780 drivers/rapidio/devices/rio_mport_cdev.c (dir == DMA_DEV_TO_MEM)?"READ":"WRITE", cookie); dir 788 drivers/rapidio/devices/rio_mport_cdev.c (dir == DMA_DEV_TO_MEM)?"READ":"WRITE", dir 809 drivers/rapidio/devices/rio_mport_cdev.c enum rio_transfer_sync sync, enum dma_data_direction dir, dir 836 drivers/rapidio/devices/rio_mport_cdev.c req->dir = dir; dir 868 drivers/rapidio/devices/rio_mport_cdev.c dir == DMA_FROM_DEVICE ? FOLL_WRITE : 0, dir 936 drivers/rapidio/devices/rio_mport_cdev.c req->sgt.sgl, req->sgt.nents, dir); dir 968 drivers/rapidio/devices/rio_mport_cdev.c enum dma_data_direction dir; dir 992 drivers/rapidio/devices/rio_mport_cdev.c dir = (transaction.dir == RIO_TRANSFER_DIR_READ) ? dir 996 drivers/rapidio/devices/rio_mport_cdev.c transaction.sync, dir, &transfer[i]); dir 1050 drivers/rapidio/devices/rio_mport_cdev.c (req->dir == DMA_FROM_DEVICE)?"READ":"WRITE"); dir 1059 drivers/rapidio/devices/rio_mport_cdev.c (req->dir == DMA_FROM_DEVICE)?"READ":"WRITE"); dir 1068 drivers/rapidio/devices/rio_mport_cdev.c (req->dir == DMA_FROM_DEVICE)?"READ":"WRITE", dir 1103 drivers/rapidio/devices/rio_mport_cdev.c map->dir = MAP_DMA; dir 1157 drivers/rapidio/devices/rio_mport_cdev.c if (map->dir == MAP_DMA && map->phys_addr == handle && dir 1229 drivers/rapidio/devices/rio_mport_cdev.c map->dir = MAP_INBOUND; dir 1262 drivers/rapidio/devices/rio_mport_cdev.c if (map->dir != MAP_INBOUND) dir 1343 drivers/rapidio/devices/rio_mport_cdev.c if (map->dir == MAP_INBOUND && map->phys_addr == handle) { dir 2149 drivers/rapidio/devices/rio_mport_cdev.c map->dir, map->virt_addr, dir 2154 drivers/rapidio/devices/rio_mport_cdev.c switch (map->dir) { dir 2229 drivers/rapidio/devices/rio_mport_cdev.c if (map->dir == MAP_INBOUND || map->dir == MAP_DMA) dir 2232 drivers/rapidio/devices/rio_mport_cdev.c else if (map->dir == MAP_OUTBOUND) { dir 826 drivers/rapidio/devices/tsi721_dma.c enum dma_transfer_direction dir, unsigned long flags, dir 842 drivers/rapidio/devices/tsi721_dma.c (dir == DMA_DEV_TO_MEM)?"READ":"WRITE"); dir 844 drivers/rapidio/devices/tsi721_dma.c if (dir == DMA_DEV_TO_MEM) dir 846 drivers/rapidio/devices/tsi721_dma.c else if (dir == DMA_MEM_TO_DEV) { dir 69 drivers/regulator/dbx500-prcmu.c struct dentry *dir; dir 126 drivers/regulator/dbx500-prcmu.c rdebug.dir = debugfs_create_dir("ux500-regulator", NULL); dir 127 drivers/regulator/dbx500-prcmu.c if (!rdebug.dir) dir 132 drivers/regulator/dbx500-prcmu.c S_IRUGO, rdebug.dir, &pdev->dev, dir 139 drivers/regulator/dbx500-prcmu.c S_IRUGO, rdebug.dir, &pdev->dev, dir 165 drivers/regulator/dbx500-prcmu.c debugfs_remove(rdebug.dir); dir 173 drivers/regulator/dbx500-prcmu.c debugfs_remove_recursive(rdebug.dir); dir 423 drivers/scsi/aha1740.c host->ecb[ecbno].dir = direction; dir 120 drivers/scsi/aha1740.h dir:1, /* Direction of transfer 1 = datain */ dir 130 drivers/scsi/aic94xx/aic94xx_sds.c struct asd_ocm_dir *dir, u32 offs) dir 132 drivers/scsi/aic94xx/aic94xx_sds.c int err = asd_read_ocm_seg(asd_ha, dir, offs, sizeof(*dir)); dir 138 drivers/scsi/aic94xx/aic94xx_sds.c if (dir->sig[0] != 'M' || dir->sig[1] != 'O') { dir 140 drivers/scsi/aic94xx/aic94xx_sds.c dir->sig[0], dir->sig[1]); dir 143 drivers/scsi/aic94xx/aic94xx_sds.c if (dir->major != 0) { dir 145 drivers/scsi/aic94xx/aic94xx_sds.c dir->major); dir 148 drivers/scsi/aic94xx/aic94xx_sds.c dir->num_de &= 0xf; dir 176 drivers/scsi/aic94xx/aic94xx_sds.c static int asd_find_dir_entry(struct asd_ocm_dir *dir, u8 type, dir 182 drivers/scsi/aic94xx/aic94xx_sds.c for (i = 0; i < dir->num_de; i++) { dir 183 drivers/scsi/aic94xx/aic94xx_sds.c if (dir->entry[i].type == type) dir 186 drivers/scsi/aic94xx/aic94xx_sds.c if (i >= dir->num_de) dir 188 drivers/scsi/aic94xx/aic94xx_sds.c ent = &dir->entry[i]; dir 198 drivers/scsi/aic94xx/aic94xx_sds.c struct asd_ocm_dir *dir) dir 204 drivers/scsi/aic94xx/aic94xx_sds.c err = asd_find_dir_entry(dir, OCM_BIOS_CHIM_DE, &offs, &size); dir 339 drivers/scsi/aic94xx/aic94xx_sds.c struct asd_ocm_dir *dir; dir 344 drivers/scsi/aic94xx/aic94xx_sds.c dir = kmalloc(sizeof(*dir), GFP_KERNEL); dir 345 drivers/scsi/aic94xx/aic94xx_sds.c if (!dir) { dir 350 drivers/scsi/aic94xx/aic94xx_sds.c err = asd_read_ocm_dir(asd_ha, dir, 0); dir 354 drivers/scsi/aic94xx/aic94xx_sds.c err = asd_get_bios_chim(asd_ha, dir); dir 356 drivers/scsi/aic94xx/aic94xx_sds.c kfree(dir); dir 351 drivers/scsi/arm/eesox.c fasdmadir_t dir, int transfer_size) dir 354 drivers/scsi/arm/eesox.c if (dir == DMA_IN) { dir 427 drivers/scsi/atari_scsi.c int dir) dir 432 drivers/scsi/atari_scsi.c hostdata->host->host_no, data, addr, count, dir); dir 440 drivers/scsi/atari_scsi.c if (dir) dir 458 drivers/scsi/atari_scsi.c dma_cache_maintenance(addr, count, dir); dir 461 drivers/scsi/atari_scsi.c tt_scsi_dma.dma_ctrl = dir; dir 464 drivers/scsi/atari_scsi.c tt_scsi_dma.dma_ctrl = dir | 2; dir 471 drivers/scsi/atari_scsi.c dir <<= 8; dir 472 drivers/scsi/atari_scsi.c st_dma.dma_mode_status = 0x90 | dir; dir 473 drivers/scsi/atari_scsi.c st_dma.dma_mode_status = 0x90 | (dir ^ 0x100); dir 474 drivers/scsi/atari_scsi.c st_dma.dma_mode_status = 0x90 | dir; dir 478 drivers/scsi/atari_scsi.c st_dma.fdc_acces_seccount = (count + (dir ? 511 : 0)) >> 9; dir 480 drivers/scsi/atari_scsi.c st_dma.dma_mode_status = 0x10 | dir; dir 256 drivers/scsi/csiostor/csio_hw_t5.c u32 len, uint32_t *buf, int dir) dir 325 drivers/scsi/csiostor/csio_hw_t5.c if (dir) dir 882 drivers/scsi/dc395x.c enum dma_data_direction dir = cmd->sc_data_direction; dir 906 drivers/scsi/dc395x.c if (dir == PCI_DMA_NONE || !nseg) { dir 3169 drivers/scsi/dc395x.c enum dma_data_direction dir = cmd->sc_data_direction; dir 3171 drivers/scsi/dc395x.c if (scsi_sg_count(cmd) && dir != PCI_DMA_NONE) { dir 3214 drivers/scsi/dc395x.c enum dma_data_direction dir = cmd->sc_data_direction; dir 3369 drivers/scsi/dc395x.c && dir != PCI_DMA_NONE && ptr && (ptr->Vers & 0x07) >= 2) dir 3426 drivers/scsi/dc395x.c enum dma_data_direction dir; dir 3430 drivers/scsi/dc395x.c dir = p->sc_data_direction; dir 62 drivers/scsi/fnic/vnic_devcmd.h #define _CMDCF(dir, flags, vtype, nr) \ dir 63 drivers/scsi/fnic/vnic_devcmd.h (((dir) << _CMD_DIRSHIFT) | \ dir 67 drivers/scsi/fnic/vnic_devcmd.h #define _CMDC(dir, vtype, nr) _CMDCF(dir, 0, vtype, nr) dir 68 drivers/scsi/fnic/vnic_devcmd.h #define _CMDCNW(dir, vtype, nr) _CMDCF(dir, _CMD_FLAGS_NOWAIT, vtype, nr) dir 6650 drivers/scsi/hpsa.c enum dma_data_direction dir = DMA_NONE; dir 6856 drivers/scsi/hpsa.c dir = DMA_FROM_DEVICE; dir 6859 drivers/scsi/hpsa.c dir = DMA_TO_DEVICE; dir 6862 drivers/scsi/hpsa.c dir = DMA_NONE; dir 6865 drivers/scsi/hpsa.c dir = DMA_BIDIRECTIONAL; dir 6867 drivers/scsi/hpsa.c if (hpsa_map_one(h->pdev, c, buff, size, dir)) dir 2675 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c enum dma_data_direction dir; dir 2697 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c if (srp_get_desc_table(srp, &dir, &data_len)) { dir 2734 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c data_len, attr, dir, 0); dir 3205 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c enum dma_data_direction dir, unsigned int bytes) dir 3258 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c if (dir == DMA_TO_DEVICE) { dir 162 drivers/scsi/ibmvscsi_tgt/libsrp.c enum dma_data_direction dir, srp_rdma_t rdma_io, dir 184 drivers/scsi/ibmvscsi_tgt/libsrp.c err = rdma_io(cmd, sg, nsg, md, 1, dir, len); dir 194 drivers/scsi/ibmvscsi_tgt/libsrp.c enum dma_data_direction dir, srp_rdma_t rdma_io, dir 211 drivers/scsi/ibmvscsi_tgt/libsrp.c if ((dir == DMA_FROM_DEVICE && nmd == srp_cmd->data_in_desc_cnt) || dir 212 drivers/scsi/ibmvscsi_tgt/libsrp.c (dir == DMA_TO_DEVICE && nmd == srp_cmd->data_out_desc_cnt)) { dir 256 drivers/scsi/ibmvscsi_tgt/libsrp.c err = rdma_io(cmd, sg, nsg, md, nmd, dir, len); dir 300 drivers/scsi/ibmvscsi_tgt/libsrp.c enum dma_data_direction dir; dir 309 drivers/scsi/ibmvscsi_tgt/libsrp.c dir = srp_cmd_direction(srp_cmd); dir 310 drivers/scsi/ibmvscsi_tgt/libsrp.c if (dir == DMA_FROM_DEVICE) dir 313 drivers/scsi/ibmvscsi_tgt/libsrp.c if (dir == DMA_TO_DEVICE) dir 323 drivers/scsi/ibmvscsi_tgt/libsrp.c err = srp_direct_data(cmd, md, dir, rdma_io, dma_map, ext_desc); dir 327 drivers/scsi/ibmvscsi_tgt/libsrp.c err = srp_indirect_data(cmd, srp_cmd, id, dir, rdma_io, dma_map, dir 331 drivers/scsi/ibmvscsi_tgt/libsrp.c pr_err("Unknown format %d %x\n", dir, format); dir 338 drivers/scsi/ibmvscsi_tgt/libsrp.c u64 srp_data_length(struct srp_cmd *cmd, enum dma_data_direction dir) dir 346 drivers/scsi/ibmvscsi_tgt/libsrp.c if (dir == DMA_TO_DEVICE) { dir 371 drivers/scsi/ibmvscsi_tgt/libsrp.c int srp_get_desc_table(struct srp_cmd *srp_cmd, enum dma_data_direction *dir, dir 387 drivers/scsi/ibmvscsi_tgt/libsrp.c BUG_ON(!dir); dir 393 drivers/scsi/ibmvscsi_tgt/libsrp.c *dir = DMA_NONE; dir 396 drivers/scsi/ibmvscsi_tgt/libsrp.c *dir = DMA_FROM_DEVICE; dir 398 drivers/scsi/ibmvscsi_tgt/libsrp.c *dir = DMA_TO_DEVICE; dir 119 drivers/scsi/ibmvscsi_tgt/libsrp.h u64 srp_data_length(struct srp_cmd *cmd, enum dma_data_direction dir); dir 120 drivers/scsi/ibmvscsi_tgt/libsrp.h int srp_get_desc_table(struct srp_cmd *srp_cmd, enum dma_data_direction *dir, dir 419 drivers/scsi/isci/request.c enum dma_data_direction dir, dir 434 drivers/scsi/isci/request.c switch (dir) { dir 611 drivers/scsi/isci/request.c enum dma_data_direction dir) dir 624 drivers/scsi/isci/request.c if (dir == DMA_TO_DEVICE) { dir 668 drivers/scsi/isci/request.c enum dma_data_direction dir, dir 713 drivers/scsi/isci/request.c len, dir); dir 721 drivers/scsi/isci/request.c len, dir); dir 2741 drivers/scsi/megaraid.c struct proc_dir_entry *dir; dir 2745 drivers/scsi/megaraid.c dir = proc_mkdir_data(string, 0, parent, adapter); dir 2746 drivers/scsi/megaraid.c if (!dir) { dir 2751 drivers/scsi/megaraid.c proc_create_single_data("config", S_IRUSR, dir, dir 2753 drivers/scsi/megaraid.c proc_create_single_data("stat", S_IRUSR, dir, dir 2755 drivers/scsi/megaraid.c proc_create_single_data("mailbox", S_IRUSR, dir, dir 2758 drivers/scsi/megaraid.c proc_create_single_data("rebuild-rate", S_IRUSR, dir, dir 2760 drivers/scsi/megaraid.c proc_create_single_data("battery-status", S_IRUSR, dir, dir 2762 drivers/scsi/megaraid.c proc_create_single_data("diskdrives-ch0", S_IRUSR, dir, dir 2764 drivers/scsi/megaraid.c proc_create_single_data("diskdrives-ch1", S_IRUSR, dir, dir 2766 drivers/scsi/megaraid.c proc_create_single_data("diskdrives-ch2", S_IRUSR, dir, dir 2768 drivers/scsi/megaraid.c proc_create_single_data("diskdrives-ch3", S_IRUSR, dir, dir 2770 drivers/scsi/megaraid.c proc_create_single_data("raiddrives-0-9", S_IRUSR, dir, dir 2772 drivers/scsi/megaraid.c proc_create_single_data("raiddrives-10-19", S_IRUSR, dir, dir 2774 drivers/scsi/megaraid.c proc_create_single_data("raiddrives-20-29", S_IRUSR, dir, dir 2776 drivers/scsi/megaraid.c proc_create_single_data("raiddrives-30-39", S_IRUSR, dir, dir 268 drivers/scsi/mpt3sas/mpt3sas_scsih.c enum dma_data_direction dir; dir 4371 drivers/scsi/pm8001/pm8001_hwi.c u32 dir; dir 4398 drivers/scsi/pm8001/pm8001_hwi.c dir = data_dir_flags[task->data_dir] << 8; dir 4403 drivers/scsi/pm8001/pm8001_hwi.c cpu_to_le32(((ncg_tag & 0xff)<<16)|((ATAP & 0x3f) << 10) | dir); dir 4223 drivers/scsi/pm8001/pm80xx_hwi.c u32 dir; dir 4252 drivers/scsi/pm8001/pm80xx_hwi.c dir = data_dir_flags[task->data_dir] << 8; dir 4273 drivers/scsi/pm8001/pm80xx_hwi.c ((ATAP & 0x3f) << 10) | 0x20 | dir); dir 4339 drivers/scsi/pm8001/pm80xx_hwi.c ((ATAP & 0x3f) << 10) | dir); dir 2749 drivers/scsi/qla1280.c u8 dir; dir 2842 drivers/scsi/qla1280.c dir = qla1280_data_direction(cmd); dir 2843 drivers/scsi/qla1280.c pkt->control_flags |= cpu_to_le16(dir); dir 3002 drivers/scsi/qla1280.c u8 dir; dir 3097 drivers/scsi/qla1280.c dir = qla1280_data_direction(cmd); dir 3098 drivers/scsi/qla1280.c pkt->control_flags |= cpu_to_le16(dir); dir 101 drivers/scsi/qla1280.h uint8_t dir; /* direction of transfer */ dir 541 drivers/scsi/qla2xxx/qla_def.h enum nvmefc_fcp_datadir dir; dir 305 drivers/scsi/qla2xxx/qla_nvme.c nvme->u.nvme.dir = 0; dir 2485 drivers/scsi/scsi_debug.c enum dma_data_direction dir; dir 2488 drivers/scsi/scsi_debug.c dir = DMA_TO_DEVICE; dir 2491 drivers/scsi/scsi_debug.c dir = DMA_FROM_DEVICE; dir 2496 drivers/scsi/scsi_debug.c if (scmd->sc_data_direction != dir) dir 108 drivers/scsi/scsi_transport_spi.c enum dma_data_direction dir, dir 120 drivers/scsi/scsi_transport_spi.c result = scsi_execute(sdev, cmd, dir, buffer, bufflen, sense, dir 452 drivers/scsi/smartpqi/smartpqi_init.c u16 vpd_page, enum dma_data_direction *dir) dir 537 drivers/scsi/smartpqi/smartpqi_init.c *dir = DMA_FROM_DEVICE; dir 540 drivers/scsi/smartpqi/smartpqi_init.c *dir = DMA_TO_DEVICE; dir 543 drivers/scsi/smartpqi/smartpqi_init.c *dir = DMA_NONE; dir 546 drivers/scsi/smartpqi/smartpqi_init.c *dir = DMA_BIDIRECTIONAL; dir 551 drivers/scsi/smartpqi/smartpqi_init.c buffer, buffer_length, *dir); dir 595 drivers/scsi/smartpqi/smartpqi_init.c enum dma_data_direction dir; dir 600 drivers/scsi/smartpqi/smartpqi_init.c buffer_length, vpd_page, &dir); dir 607 drivers/scsi/smartpqi/smartpqi_init.c pqi_pci_unmap(ctrl_info->pci_dev, request.sg_descriptors, 1, dir); dir 657 drivers/scsi/smartpqi/smartpqi_init.c enum dma_data_direction dir; dir 663 drivers/scsi/smartpqi/smartpqi_init.c buffer_length, 0, &dir); dir 674 drivers/scsi/smartpqi/smartpqi_init.c pqi_pci_unmap(ctrl_info->pci_dev, request.sg_descriptors, 1, dir); dir 62 drivers/scsi/snic/vnic_devcmd.h #define _CMDCF(dir, flags, vtype, nr) \ dir 63 drivers/scsi/snic/vnic_devcmd.h (((dir) << _CMD_DIRSHIFT) | \ dir 67 drivers/scsi/snic/vnic_devcmd.h #define _CMDC(dir, vtype, nr) _CMDCF(dir, 0, vtype, nr) dir 68 drivers/scsi/snic/vnic_devcmd.h #define _CMDCNW(dir, vtype, nr) _CMDCF(dir, _CMD_FLAGS_NOWAIT, vtype, nr) dir 335 drivers/scsi/sym53c8xx_2/sym_glue.c int dir; dir 346 drivers/scsi/sym53c8xx_2/sym_glue.c dir = cmd->sc_data_direction; dir 347 drivers/scsi/sym53c8xx_2/sym_glue.c if (dir != DMA_NONE) { dir 358 drivers/scsi/sym53c8xx_2/sym_glue.c dir = DMA_NONE; dir 367 drivers/scsi/sym53c8xx_2/sym_glue.c switch (dir) { dir 973 drivers/scsi/xen-scsifront.c char **dir; dir 979 drivers/scsi/xen-scsifront.c dir = xenbus_directory(XBT_NIL, dev->otherend, "vscsi-devs", &dir_n); dir 980 drivers/scsi/xen-scsifront.c if (IS_ERR(dir)) dir 989 drivers/scsi/xen-scsifront.c snprintf(str, sizeof(str), "vscsi-devs/%s/state", dir[i]); dir 996 drivers/scsi/xen-scsifront.c snprintf(str, sizeof(str), "vscsi-devs/%s/v-dev", dir[i]); dir 1008 drivers/scsi/xen-scsifront.c "vscsi-devs/%s/state", dir[i]); dir 1052 drivers/scsi/xen-scsifront.c kfree(dir); dir 48 drivers/soc/fsl/qe/qe_io.c void __par_io_config_pin(struct qe_pio_regs __iomem *par_io, u8 pin, int dir, dir 76 drivers/soc/fsl/qe/qe_io.c new_mask2bits = (u32) (dir << (QE_PIO_PINS - dir 113 drivers/soc/fsl/qe/qe_io.c int par_io_config_pin(u8 port, u8 pin, int dir, int open_drain, dir 119 drivers/soc/fsl/qe/qe_io.c __par_io_config_pin(&par_io[port], pin, dir, open_drain, assignment, dir 588 drivers/soc/ti/knav_dma.c enum dma_transfer_direction dir, dir 605 drivers/soc/ti/knav_dma.c if (dir == DMA_MEM_TO_DEV) { dir 606 drivers/soc/ti/knav_dma.c chan->direction = dir; dir 608 drivers/soc/ti/knav_dma.c } else if (dir == DMA_DEV_TO_MEM) { dir 609 drivers/soc/ti/knav_dma.c chan->direction = dir; dir 1217 drivers/soundwire/cadence_master.c u32 ch, u32 dir, struct sdw_cdns_pdi *pdi) dir 1221 drivers/soundwire/cadence_master.c if (dir == SDW_DATA_DIR_RX) dir 1278 drivers/soundwire/cadence_master.c u32 ch, u32 dir) dir 1282 drivers/soundwire/cadence_master.c if (dir == SDW_DATA_DIR_RX) dir 1306 drivers/soundwire/cadence_master.c struct sdw_cdns_port *port, u32 ch, u32 dir) dir 1310 drivers/soundwire/cadence_master.c if (dir == SDW_DATA_DIR_RX) dir 1325 drivers/soundwire/cadence_master.c pdi->dir = dir; dir 27 drivers/soundwire/cadence_master.h enum sdw_data_direction dir; dir 172 drivers/soundwire/cadence_master.h u32 ch, u32 dir); dir 175 drivers/soundwire/cadence_master.h struct sdw_cdns_port *port, u32 ch, u32 dir); dir 177 drivers/soundwire/cadence_master.h u32 ch, u32 dir, struct sdw_cdns_pdi *pdi); dir 494 drivers/soundwire/intel.c if (pdi->dir == SDW_DATA_DIR_RX) dir 613 drivers/soundwire/intel.c u32 ch, u32 dir, bool pcm) dir 625 drivers/soundwire/intel.c port->direction = dir; dir 636 drivers/soundwire/intel.c ret = sdw_cdns_alloc_stream(cdns, &cdns->pcm, port, ch, dir); dir 641 drivers/soundwire/intel.c sdw_cdns_config_stream(cdns, port, ch, dir, port->pdi); dir 646 drivers/soundwire/intel.c ret = sdw_cdns_alloc_stream(cdns, &cdns->pdm, port, ch, dir); dir 681 drivers/soundwire/intel.c int ret, i, ch, dir; dir 690 drivers/soundwire/intel.c dir = SDW_DATA_DIR_RX; dir 692 drivers/soundwire/intel.c dir = SDW_DATA_DIR_TX; dir 696 drivers/soundwire/intel.c dma->nr_ports = sdw_cdns_get_stream(cdns, &cdns->pdm, ch, dir); dir 699 drivers/soundwire/intel.c dma->nr_ports = sdw_cdns_get_stream(cdns, &cdns->pcm, ch, dir); dir 712 drivers/soundwire/intel.c dma->port[i] = intel_alloc_port(sdw, ch, dir, pcm); dir 727 drivers/soundwire/intel.c sconfig.direction = dir; dir 304 drivers/spi/atmel-quadspi.c if (!op->addr.nbytes && op->data.dir == SPI_MEM_DATA_IN) dir 309 drivers/spi/atmel-quadspi.c if (op->data.dir == SPI_MEM_DATA_IN) dir 315 drivers/spi/atmel-quadspi.c if (op->data.dir == SPI_MEM_DATA_OUT) dir 351 drivers/spi/atmel-quadspi.c if (op->data.dir == SPI_MEM_DATA_IN) dir 25 drivers/spi/internals.h enum dma_data_direction dir); dir 27 drivers/spi/internals.h struct sg_table *sgt, enum dma_data_direction dir); dir 31 drivers/spi/internals.h enum dma_data_direction dir) dir 38 drivers/spi/internals.h enum dma_data_direction dir) dir 956 drivers/spi/spi-bcm-qspi.c op->data.dir != SPI_MEM_DATA_IN) dir 158 drivers/spi/spi-bcm2835.c struct dentry *dir; dir 164 drivers/spi/spi-bcm2835.c dir = debugfs_create_dir(name, NULL); dir 165 drivers/spi/spi-bcm2835.c bs->debugfs_dir = dir; dir 168 drivers/spi/spi-bcm2835.c debugfs_create_u64("count_transfer_polling", 0444, dir, dir 170 drivers/spi/spi-bcm2835.c debugfs_create_u64("count_transfer_irq", 0444, dir, dir 172 drivers/spi/spi-bcm2835.c debugfs_create_u64("count_transfer_irq_after_polling", 0444, dir, dir 174 drivers/spi/spi-bcm2835.c debugfs_create_u64("count_transfer_dma", 0444, dir, dir 668 drivers/spi/spi-bcm2835.c enum dma_transfer_direction dir; dir 675 drivers/spi/spi-bcm2835.c dir = DMA_MEM_TO_DEV; dir 681 drivers/spi/spi-bcm2835.c dir = DMA_DEV_TO_MEM; dir 688 drivers/spi/spi-bcm2835.c desc = dmaengine_prep_slave_sg(chan, sgl, nents, dir, flags); dir 112 drivers/spi/spi-bcm2835aux.c struct dentry *dir; dir 118 drivers/spi/spi-bcm2835aux.c dir = debugfs_create_dir(name, NULL); dir 119 drivers/spi/spi-bcm2835aux.c bs->debugfs_dir = dir; dir 122 drivers/spi/spi-bcm2835aux.c debugfs_create_u64("count_transfer_polling", 0444, dir, dir 124 drivers/spi/spi-bcm2835aux.c debugfs_create_u64("count_transfer_irq", 0444, dir, dir 126 drivers/spi/spi-bcm2835aux.c debugfs_create_u64("count_transfer_irq_after_poll", 0444, dir, dir 246 drivers/spi/spi-ep93xx.c ep93xx_dma_data_to_trans_dir(enum dma_data_direction dir) dir 248 drivers/spi/spi-ep93xx.c switch (dir) { dir 269 drivers/spi/spi-ep93xx.c enum dma_data_direction dir) dir 289 drivers/spi/spi-ep93xx.c conf.direction = ep93xx_dma_data_to_trans_dir(dir); dir 291 drivers/spi/spi-ep93xx.c if (dir == DMA_FROM_DEVICE) { dir 351 drivers/spi/spi-ep93xx.c nents = dma_map_sg(chan->device->dev, sgt->sgl, sgt->nents, dir); dir 358 drivers/spi/spi-ep93xx.c dma_unmap_sg(chan->device->dev, sgt->sgl, sgt->nents, dir); dir 373 drivers/spi/spi-ep93xx.c enum dma_data_direction dir) dir 379 drivers/spi/spi-ep93xx.c if (dir == DMA_FROM_DEVICE) { dir 387 drivers/spi/spi-ep93xx.c dma_unmap_sg(chan->device->dev, sgt->sgl, sgt->nents, dir); dir 391 drivers/spi/spi-fsl-qspi.c if (op->data.dir == SPI_MEM_DATA_IN && dir 397 drivers/spi/spi-fsl-qspi.c if (op->data.dir == SPI_MEM_DATA_OUT && dir 438 drivers/spi/spi-fsl-qspi.c op->data.dir == SPI_MEM_DATA_IN ? dir 612 drivers/spi/spi-fsl-qspi.c if (!err && op->data.nbytes && op->data.dir == SPI_MEM_DATA_IN) dir 667 drivers/spi/spi-fsl-qspi.c op->data.dir == SPI_MEM_DATA_IN) { dir 673 drivers/spi/spi-fsl-qspi.c if (op->data.nbytes && op->data.dir == SPI_MEM_DATA_OUT) dir 691 drivers/spi/spi-fsl-qspi.c if (op->data.dir == SPI_MEM_DATA_OUT) { dir 43 drivers/spi/spi-mem.c if (op->data.dir == SPI_MEM_DATA_OUT && ctlr->dma_tx) dir 45 drivers/spi/spi-mem.c else if (op->data.dir == SPI_MEM_DATA_IN && ctlr->dma_rx) dir 54 drivers/spi/spi-mem.c op->data.dir == SPI_MEM_DATA_IN ? dir 89 drivers/spi/spi-mem.c if (op->data.dir == SPI_MEM_DATA_OUT && ctlr->dma_tx) dir 91 drivers/spi/spi-mem.c else if (op->data.dir == SPI_MEM_DATA_IN && ctlr->dma_rx) dir 97 drivers/spi/spi-mem.c op->data.dir == SPI_MEM_DATA_IN ? dir 152 drivers/spi/spi-mem.c if (op->data.dir != SPI_MEM_NO_DATA && dir 154 drivers/spi/spi-mem.c op->data.dir == SPI_MEM_DATA_OUT)) dir 355 drivers/spi/spi-mem.c if (op->data.dir == SPI_MEM_DATA_IN) { dir 508 drivers/spi/spi-mem.c if (info->op_tmpl.data.dir == SPI_MEM_NO_DATA) dir 646 drivers/spi/spi-mem.c if (desc->info.op_tmpl.data.dir != SPI_MEM_DATA_IN) dir 692 drivers/spi/spi-mem.c if (desc->info.op_tmpl.data.dir != SPI_MEM_DATA_OUT) dir 387 drivers/spi/spi-mxic.c if (op->data.dir == SPI_MEM_DATA_IN) dir 412 drivers/spi/spi-mxic.c op->data.dir == SPI_MEM_DATA_OUT ? dir 414 drivers/spi/spi-mxic.c op->data.dir == SPI_MEM_DATA_IN ? dir 550 drivers/spi/spi-npcm-fiu.c if (op->data.dir == SPI_MEM_DATA_IN) { dir 599 drivers/spi/spi-npcm-fiu.c desc->info.op_tmpl.data.dir == SPI_MEM_DATA_OUT) { dir 630 drivers/spi/spi-npcm-fiu.c if (desc->info.op_tmpl.data.dir == SPI_MEM_DATA_IN) { dir 432 drivers/spi/spi-nxp-fspi.c if (op->data.dir == SPI_MEM_DATA_IN && dir 438 drivers/spi/spi-nxp-fspi.c if (op->data.dir == SPI_MEM_DATA_OUT && dir 517 drivers/spi/spi-nxp-fspi.c op->data.dir == SPI_MEM_DATA_IN ? dir 781 drivers/spi/spi-nxp-fspi.c if (!err && op->data.nbytes && op->data.dir == SPI_MEM_DATA_IN) dir 808 drivers/spi/spi-nxp-fspi.c op->data.dir == SPI_MEM_DATA_IN) { dir 811 drivers/spi/spi-nxp-fspi.c if (op->data.nbytes && op->data.dir == SPI_MEM_DATA_OUT) dir 829 drivers/spi/spi-nxp-fspi.c if (op->data.dir == SPI_MEM_DATA_OUT) { dir 70 drivers/spi/spi-pxa2xx-dma.c enum dma_transfer_direction dir, dir 94 drivers/spi/spi-pxa2xx-dma.c cfg.direction = dir; dir 96 drivers/spi/spi-pxa2xx-dma.c if (dir == DMA_MEM_TO_DEV) { dir 118 drivers/spi/spi-pxa2xx-dma.c return dmaengine_prep_slave_sg(chan, sgt->sgl, sgt->nents, dir, dir 127 drivers/spi/spi-qcom-qspi.c enum qspi_dir dir; dir 171 drivers/spi/spi-qcom-qspi.c pio_xfer_cfg |= xfer->dir; dir 202 drivers/spi/spi-qcom-qspi.c if (ctrl->xfer.dir == QSPI_WRITE) dir 248 drivers/spi/spi-qcom-qspi.c ctrl->xfer.dir = QSPI_READ; dir 252 drivers/spi/spi-qcom-qspi.c ctrl->xfer.dir = QSPI_WRITE; dir 396 drivers/spi/spi-qcom-qspi.c if (ctrl->xfer.dir == QSPI_WRITE) { dir 390 drivers/spi/spi-qup.c unsigned int nents, enum dma_transfer_direction dir, dir 399 drivers/spi/spi-qup.c if (dir == DMA_MEM_TO_DEV) dir 404 drivers/spi/spi-qup.c desc = dmaengine_prep_slave_sg(chan, sgl, nents, dir, flags); dir 1026 drivers/spi/spi-rspi.c enum dma_transfer_direction dir, dir 1040 drivers/spi/spi-rspi.c dir == DMA_MEM_TO_DEV ? "tx" : "rx"); dir 1047 drivers/spi/spi-rspi.c cfg.direction = dir; dir 1048 drivers/spi/spi-rspi.c if (dir == DMA_MEM_TO_DEV) { dir 1168 drivers/spi/spi-sh-msiof.c enum dma_transfer_direction dir, unsigned int id, dma_addr_t port_addr) dir 1180 drivers/spi/spi-sh-msiof.c dir == DMA_MEM_TO_DEV ? "tx" : "rx"); dir 1187 drivers/spi/spi-sh-msiof.c cfg.direction = dir; dir 1188 drivers/spi/spi-sh-msiof.c if (dir == DMA_MEM_TO_DEV) { dir 491 drivers/spi/spi-sprd.c enum dma_transfer_direction dir) dir 504 drivers/spi/spi-sprd.c desc = dmaengine_prep_slave_sg(dma_chan, sg->sgl, sg->nents, dir, flags); dir 160 drivers/spi/spi-stm32-qspi.c if (op->data.dir == SPI_MEM_DATA_IN) { dir 210 drivers/spi/spi-stm32-qspi.c if (op->data.dir == SPI_MEM_DATA_IN) { dir 270 drivers/spi/spi-stm32-qspi.c else if ((op->data.dir == SPI_MEM_DATA_IN && qspi->dma_chrx) || dir 271 drivers/spi/spi-stm32-qspi.c (op->data.dir == SPI_MEM_DATA_OUT && qspi->dma_chtx)) dir 345 drivers/spi/spi-stm32-qspi.c if (op->data.dir == SPI_MEM_DATA_IN) { dir 1109 drivers/spi/spi-stm32.c enum dma_transfer_direction dir) dir 1132 drivers/spi/spi-stm32.c dma_conf->direction = dir; dir 538 drivers/spi/spi-ti-qspi.c if (!op->data.nbytes || op->data.dir != SPI_MEM_DATA_IN || dir 579 drivers/spi/spi-zynq-qspi.c if (op->data.dir == SPI_MEM_DATA_OUT) { dir 808 drivers/spi/spi.c enum dma_data_direction dir) dir 874 drivers/spi/spi.c ret = dma_map_sg(dev, sgt->sgl, sgt->nents, dir); dir 888 drivers/spi/spi.c struct sg_table *sgt, enum dma_data_direction dir) dir 891 drivers/spi/spi.c dma_unmap_sg(dev, sgt->sgl, sgt->orig_nents, dir); dir 31 drivers/staging/comedi/drivers/8255.h int (*io)(struct comedi_device *dev, int dir, int port, dir 36 drivers/staging/comedi/drivers/8255.h int (*io)(struct comedi_device *dev, int dir, int port, dir 3429 drivers/staging/comedi/drivers/cb_pcidas64.c int dir, int port, int data, unsigned long iobase) dir 3433 drivers/staging/comedi/drivers/cb_pcidas64.c if (dir) { dir 38 drivers/staging/comedi/drivers/comedi_8255.c int (*io)(struct comedi_device *dev, int dir, int port, int data, dir 43 drivers/staging/comedi/drivers/comedi_8255.c int dir, int port, int data, unsigned long regbase) dir 45 drivers/staging/comedi/drivers/comedi_8255.c if (dir) { dir 53 drivers/staging/comedi/drivers/comedi_8255.c int dir, int port, int data, unsigned long regbase) dir 55 drivers/staging/comedi/drivers/comedi_8255.c if (dir) { dir 145 drivers/staging/comedi/drivers/comedi_8255.c int dir, int port, int data, dir 204 drivers/staging/comedi/drivers/comedi_8255.c int (*io)(struct comedi_device *dev, int dir, int port, dir 239 drivers/staging/comedi/drivers/comedi_8255.c int (*io)(struct comedi_device *dev, int dir, int port, dir 668 drivers/staging/comedi/drivers/daqboard2000.c static int db2k_8255_cb(struct comedi_device *dev, int dir, int port, int data, dir 671 drivers/staging/comedi/drivers/daqboard2000.c if (dir) { dir 483 drivers/staging/comedi/drivers/dmm32at.c int dir, int port, int data, unsigned long regbase) dir 488 drivers/staging/comedi/drivers/dmm32at.c if (dir) { dir 643 drivers/staging/comedi/drivers/dt9812.c int dir = -1; dir 649 drivers/staging/comedi/drivers/dt9812.c dir = USB_DIR_IN; dir 652 drivers/staging/comedi/drivers/dt9812.c dir = USB_DIR_OUT; dir 657 drivers/staging/comedi/drivers/dt9812.c dir = USB_DIR_IN; dir 663 drivers/staging/comedi/drivers/dt9812.c dir = USB_DIR_OUT; dir 667 drivers/staging/comedi/drivers/dt9812.c dir = USB_DIR_IN; dir 670 drivers/staging/comedi/drivers/dt9812.c if ((ep->bEndpointAddress & USB_DIR_IN) != dir) { dir 354 drivers/staging/comedi/drivers/mite.c if (mite_chan->dir == COMEDI_INPUT) dir 506 drivers/staging/comedi/drivers/mite.c if (mite_chan->dir == COMEDI_INPUT) dir 39 drivers/staging/comedi/drivers/mite.h int dir; dir 355 drivers/staging/comedi/drivers/ni_660x.c mite_chan->dir = direction; dir 576 drivers/staging/comedi/drivers/ni_mio_common.c mite_chan->dir = COMEDI_INPUT; dir 602 drivers/staging/comedi/drivers/ni_mio_common.c mite_chan->dir = COMEDI_OUTPUT; dir 632 drivers/staging/comedi/drivers/ni_mio_common.c mite_chan->dir = direction; dir 659 drivers/staging/comedi/drivers/ni_mio_common.c mite_chan->dir = COMEDI_OUTPUT; dir 4154 drivers/staging/comedi/drivers/ni_mio_common.c int dir, int port, int data, unsigned long iobase) dir 4156 drivers/staging/comedi/drivers/ni_mio_common.c if (dir) { dir 309 drivers/staging/comedi/drivers/ni_pcidio.c devpriv->di_mite_chan->dir = COMEDI_INPUT; dir 113 drivers/staging/comedi/drivers/ni_tiocmd.c counter->mite_chan->dir = COMEDI_INPUT; dir 373 drivers/staging/comedi/drivers/ni_tiocmd.c counter->mite_chan->dir != COMEDI_INPUT || dir 80 drivers/staging/comedi/drivers/pcl724.c int dir, int port, int data, dir 88 drivers/staging/comedi/drivers/pcl724.c if (dir) { dir 274 drivers/staging/exfat/exfat.h u32 dir; dir 280 drivers/staging/exfat/exfat.h struct chain_t dir; dir 510 drivers/staging/exfat/exfat.h u32 dir; dir 798 drivers/staging/exfat/exfat.h s32 count_num_clusters(struct super_block *sb, struct chain_t *dir); dir 177 drivers/staging/exfat/exfat_core.c new_clu = p_chain->dir; dir 185 drivers/staging/exfat/exfat_core.c p_chain->dir = CLUSTER_32(~0); dir 196 drivers/staging/exfat/exfat_core.c if (p_chain->dir == CLUSTER_32(~0)) { dir 197 drivers/staging/exfat/exfat_core.c p_chain->dir = new_clu; dir 231 drivers/staging/exfat/exfat_core.c hint_clu = p_chain->dir; dir 243 drivers/staging/exfat/exfat_core.c p_chain->dir = CLUSTER_32(~0); dir 248 drivers/staging/exfat/exfat_core.c exfat_chain_cont_cluster(sb, p_chain->dir, dir 264 drivers/staging/exfat/exfat_core.c if (p_chain->dir == CLUSTER_32(~0)) { dir 265 drivers/staging/exfat/exfat_core.c p_chain->dir = new_clu; dir 288 drivers/staging/exfat/exfat_core.c exfat_chain_cont_cluster(sb, p_chain->dir, dir 312 drivers/staging/exfat/exfat_core.c if ((p_chain->dir == CLUSTER_32(0)) || (p_chain->dir == CLUSTER_32(~0))) dir 315 drivers/staging/exfat/exfat_core.c clu = p_chain->dir; dir 353 drivers/staging/exfat/exfat_core.c if ((p_chain->dir == CLUSTER_32(0)) || (p_chain->dir == CLUSTER_32(~0))) dir 358 drivers/staging/exfat/exfat_core.c p_chain->dir); dir 363 drivers/staging/exfat/exfat_core.c clu = p_chain->dir; dir 408 drivers/staging/exfat/exfat_core.c clu = p_chain->dir; dir 430 drivers/staging/exfat/exfat_core.c if ((p_chain->dir == CLUSTER_32(0)) || (p_chain->dir == CLUSTER_32(~0))) dir 433 drivers/staging/exfat/exfat_core.c clu = p_chain->dir; dir 517 drivers/staging/exfat/exfat_core.c clu.dir = p_fs->root_dir; dir 520 drivers/staging/exfat/exfat_core.c while (clu.dir != CLUSTER_32(~0)) { dir 571 drivers/staging/exfat/exfat_core.c if (FAT_read(sb, clu.dir, &clu.dir) != 0) dir 854 drivers/staging/exfat/exfat_core.c clu.dir = p_fs->root_dir; dir 860 drivers/staging/exfat/exfat_core.c while (clu.dir != CLUSTER_32(~0)) { dir 884 drivers/staging/exfat/exfat_core.c if (FAT_read(sb, clu.dir, &clu.dir) != 0) dir 1587 drivers/staging/exfat/exfat_core.c cur_clu = p_dir->dir; dir 1614 drivers/staging/exfat/exfat_core.c if (p_dir->dir == CLUSTER_32(0)) { /* FAT16 root_dir */ dir 1706 drivers/staging/exfat/exfat_core.c __func__, p_dir->dir, p_dir->flags, p_dir->size); dir 1929 drivers/staging/exfat/exfat_core.c struct chain_t dir; dir 1935 drivers/staging/exfat/exfat_core.c dir.dir = GET_CLUSTER_FROM_SECTOR(es->sector); dir 1936 drivers/staging/exfat/exfat_core.c dir.flags = es->alloc_flag; dir 1937 drivers/staging/exfat/exfat_core.c dir.size = 0xffffffff; /* XXX */ dir 1939 drivers/staging/exfat/exfat_core.c byte_offset = (es->sector - START_SECTOR(dir.dir)) << dir 1943 drivers/staging/exfat/exfat_core.c ret = _walk_fat_chain(sb, &dir, byte_offset, &clu); dir 1970 drivers/staging/exfat/exfat_core.c if (p_dir->dir == CLUSTER_32(0)) /* FAT16 root_dir */ dir 1975 drivers/staging/exfat/exfat_core.c if (p_fs->hint_uentry.dir == p_dir->dir) { dir 1979 drivers/staging/exfat/exfat_core.c clu.dir = p_fs->hint_uentry.clu.dir; dir 1987 drivers/staging/exfat/exfat_core.c clu.dir = p_dir->dir; dir 1994 drivers/staging/exfat/exfat_core.c while (clu.dir != CLUSTER_32(~0)) { dir 1998 drivers/staging/exfat/exfat_core.c if (p_dir->dir == CLUSTER_32(0)) /* FAT16 root_dir */ dir 2013 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.dir = p_dir->dir; dir 2016 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.clu.dir = clu.dir; dir 2027 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.dir = CLUSTER_32(~0); dir 2037 drivers/staging/exfat/exfat_core.c if (p_dir->dir == CLUSTER_32(0)) dir 2042 drivers/staging/exfat/exfat_core.c clu.dir++; dir 2044 drivers/staging/exfat/exfat_core.c clu.dir = CLUSTER_32(~0); dir 2046 drivers/staging/exfat/exfat_core.c if (FAT_read(sb, clu.dir, &clu.dir) != 0) dir 2066 drivers/staging/exfat/exfat_core.c if (p_dir->dir == CLUSTER_32(0)) /* FAT16 root_dir */ dir 2074 drivers/staging/exfat/exfat_core.c if (p_dir->dir != p_fs->root_dir) dir 2079 drivers/staging/exfat/exfat_core.c clu.dir = last_clu + 1; dir 2088 drivers/staging/exfat/exfat_core.c if (clear_cluster(sb, clu.dir) != FFS_SUCCESS) dir 2093 drivers/staging/exfat/exfat_core.c exfat_chain_cont_cluster(sb, p_dir->dir, p_dir->size); dir 2098 drivers/staging/exfat/exfat_core.c if (FAT_write(sb, last_clu, clu.dir) < 0) dir 2102 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.dir = p_dir->dir; dir 2105 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.clu.dir = clu.dir; dir 2114 drivers/staging/exfat/exfat_core.c if (p_dir->dir != p_fs->root_dir) { dir 2117 drivers/staging/exfat/exfat_core.c ep = get_entry_in_dir(sb, &fid->dir, dir 2125 drivers/staging/exfat/exfat_core.c update_dir_checksum(sb, &(fid->dir), dir 2161 drivers/staging/exfat/exfat_core.c if (p_dir->dir == p_fs->root_dir) { dir 2169 drivers/staging/exfat/exfat_core.c if (p_dir->dir == CLUSTER_32(0)) /* FAT16 root_dir */ dir 2174 drivers/staging/exfat/exfat_core.c clu.dir = p_dir->dir; dir 2177 drivers/staging/exfat/exfat_core.c while (clu.dir != CLUSTER_32(~0)) { dir 2228 drivers/staging/exfat/exfat_core.c if (p_dir->dir == CLUSTER_32(0)) dir 2231 drivers/staging/exfat/exfat_core.c if (FAT_read(sb, clu.dir, &clu.dir) != 0) dir 2260 drivers/staging/exfat/exfat_core.c if (p_dir->dir == p_fs->root_dir) { dir 2268 drivers/staging/exfat/exfat_core.c if (p_dir->dir == CLUSTER_32(0)) /* FAT16 root_dir */ dir 2273 drivers/staging/exfat/exfat_core.c clu.dir = p_dir->dir; dir 2277 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.dir = p_dir->dir; dir 2280 drivers/staging/exfat/exfat_core.c while (clu.dir != CLUSTER_32(~0)) { dir 2299 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.clu.dir = clu.dir; dir 2351 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.dir = CLUSTER_32(~0); dir 2369 drivers/staging/exfat/exfat_core.c if (p_dir->dir == CLUSTER_32(0)) dir 2374 drivers/staging/exfat/exfat_core.c clu.dir++; dir 2376 drivers/staging/exfat/exfat_core.c clu.dir = CLUSTER_32(~0); dir 2378 drivers/staging/exfat/exfat_core.c if (FAT_read(sb, clu.dir, &clu.dir) != 0) dir 2450 drivers/staging/exfat/exfat_core.c if (p_dir->dir == CLUSTER_32(0)) /* FAT16 root_dir */ dir 2455 drivers/staging/exfat/exfat_core.c clu.dir = p_dir->dir; dir 2459 drivers/staging/exfat/exfat_core.c while (clu.dir != CLUSTER_32(~0)) { dir 2480 drivers/staging/exfat/exfat_core.c if (p_dir->dir == CLUSTER_32(0)) dir 2485 drivers/staging/exfat/exfat_core.c clu.dir++; dir 2487 drivers/staging/exfat/exfat_core.c clu.dir = CLUSTER_32(~0); dir 2489 drivers/staging/exfat/exfat_core.c if (FAT_read(sb, clu.dir, &clu.dir) != 0) dir 2506 drivers/staging/exfat/exfat_core.c if (p_dir->dir == CLUSTER_32(0)) /* FAT16 root_dir */ dir 2511 drivers/staging/exfat/exfat_core.c clu.dir = p_dir->dir; dir 2515 drivers/staging/exfat/exfat_core.c while (clu.dir != CLUSTER_32(~0)) { dir 2531 drivers/staging/exfat/exfat_core.c if (p_dir->dir == CLUSTER_32(0)) /* FAT16 root_dir */ dir 2536 drivers/staging/exfat/exfat_core.c if ((p_dir->dir == p_fs->root_dir) || ((++count) > 2)) dir 2540 drivers/staging/exfat/exfat_core.c if (p_dir->dir == CLUSTER_32(0)) dir 2545 drivers/staging/exfat/exfat_core.c clu.dir++; dir 2547 drivers/staging/exfat/exfat_core.c clu.dir = CLUSTER_32(~0); dir 2549 drivers/staging/exfat/exfat_core.c if (FAT_read(sb, clu.dir, &clu.dir) != 0) dir 2758 drivers/staging/exfat/exfat_core.c if (p_dir->dir == CLUSTER_32(0)) /* FAT16 root_dir */ dir 2763 drivers/staging/exfat/exfat_core.c clu.dir = p_dir->dir; dir 2766 drivers/staging/exfat/exfat_core.c while (clu.dir != CLUSTER_32(~0)) { dir 2809 drivers/staging/exfat/exfat_core.c if (p_dir->dir == CLUSTER_32(0)) dir 2812 drivers/staging/exfat/exfat_core.c if (FAT_read(sb, clu.dir, &clu.dir) != 0) dir 2973 drivers/staging/exfat/exfat_core.c p_dir->dir = fid->start_clu; dir 3221 drivers/staging/exfat/exfat_core.c clu.dir = CLUSTER_32(~0); dir 3232 drivers/staging/exfat/exfat_core.c ret = clear_cluster(sb, clu.dir); dir 3249 drivers/staging/exfat/exfat_core.c ret = fs_func->init_dir_entry(sb, &clu, 0, TYPE_DIR, clu.dir, dir 3260 drivers/staging/exfat/exfat_core.c if (p_dir->dir == p_fs->root_dir) dir 3265 drivers/staging/exfat/exfat_core.c p_dir->dir, 0); dir 3278 drivers/staging/exfat/exfat_core.c ret = fs_func->init_dir_entry(sb, p_dir, dentry, TYPE_DIR, clu.dir, dir 3288 drivers/staging/exfat/exfat_core.c fid->dir.dir = p_dir->dir; dir 3289 drivers/staging/exfat/exfat_core.c fid->dir.size = p_dir->size; dir 3290 drivers/staging/exfat/exfat_core.c fid->dir.flags = p_dir->flags; dir 3296 drivers/staging/exfat/exfat_core.c fid->start_clu = clu.dir; dir 3338 drivers/staging/exfat/exfat_core.c fid->dir.dir = p_dir->dir; dir 3339 drivers/staging/exfat/exfat_core.c fid->dir.size = p_dir->size; dir 3340 drivers/staging/exfat/exfat_core.c fid->dir.flags = p_dir->flags; dir 3508 drivers/staging/exfat/exfat_core.c fs_func->get_entry_clu0(epmov) == p_newdir->dir) dir 3566 drivers/staging/exfat/exfat_core.c clu.dir = fs_func->get_entry_clu0(epnew); dir 3573 drivers/staging/exfat/exfat_core.c if (p_newdir->dir == p_fs->root_dir) dir 3576 drivers/staging/exfat/exfat_core.c fs_func->set_entry_clu0(epnew, p_newdir->dir); dir 3587 drivers/staging/exfat/exfat_core.c fid->dir.dir = p_newdir->dir; dir 3588 drivers/staging/exfat/exfat_core.c fid->dir.size = p_newdir->size; dir 3589 drivers/staging/exfat/exfat_core.c fid->dir.flags = p_newdir->flags; dir 550 drivers/staging/exfat/exfat_super.c struct chain_t dir; dir 568 drivers/staging/exfat/exfat_super.c ret = resolve_path(inode, path, &dir, &uni_name); dir 572 drivers/staging/exfat/exfat_super.c ret = get_num_entries_and_dos_name(sb, &dir, &uni_name, &num_entries, dir 578 drivers/staging/exfat/exfat_super.c dentry = p_fs->fs_func->find_dir_entry(sb, &dir, &uni_name, num_entries, dir 585 drivers/staging/exfat/exfat_super.c fid->dir.dir = dir.dir; dir 586 drivers/staging/exfat/exfat_super.c fid->dir.size = dir.size; dir 587 drivers/staging/exfat/exfat_super.c fid->dir.flags = dir.flags; dir 601 drivers/staging/exfat/exfat_super.c es = get_entry_set_in_dir(sb, &dir, dentry, dir 609 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &dir, dentry, NULL); dir 647 drivers/staging/exfat/exfat_super.c struct chain_t dir; dir 661 drivers/staging/exfat/exfat_super.c ret = resolve_path(inode, path, &dir, &uni_name); dir 668 drivers/staging/exfat/exfat_super.c ret = create_file(inode, &dir, &uni_name, mode, fid); dir 900 drivers/staging/exfat/exfat_super.c new_clu.dir = (last_clu == CLUSTER_32(~0)) ? dir 920 drivers/staging/exfat/exfat_super.c fid->start_clu = new_clu.dir; dir 931 drivers/staging/exfat/exfat_super.c FAT_write(sb, last_clu, new_clu.dir); dir 935 drivers/staging/exfat/exfat_super.c clu = new_clu.dir; dir 1006 drivers/staging/exfat/exfat_super.c es = get_entry_set_in_dir(sb, &(fid->dir), fid->entry, dir 1012 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &(fid->dir), fid->entry, §or); dir 1104 drivers/staging/exfat/exfat_super.c clu.dir = fid->start_clu; dir 1113 drivers/staging/exfat/exfat_super.c clu.dir += num_clusters; dir 1116 drivers/staging/exfat/exfat_super.c last_clu = clu.dir; dir 1117 drivers/staging/exfat/exfat_super.c if (FAT_read(sb, clu.dir, &clu.dir) == -1) { dir 1137 drivers/staging/exfat/exfat_super.c es = get_entry_set_in_dir(sb, &fid->dir, fid->entry, dir 1145 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &(fid->dir), fid->entry, §or); dir 1205 drivers/staging/exfat/exfat_super.c if (unlikely((parent_fid->flags != fid->dir.flags) || dir 1207 drivers/staging/exfat/exfat_super.c (fid->dir.size << p_fs->cluster_size_bits)) || dir 1208 drivers/staging/exfat/exfat_super.c (parent_fid->start_clu != fid->dir.dir))) { dir 1209 drivers/staging/exfat/exfat_super.c fid->dir.dir = parent_fid->start_clu; dir 1210 drivers/staging/exfat/exfat_super.c fid->dir.flags = parent_fid->flags; dir 1211 drivers/staging/exfat/exfat_super.c fid->dir.size = ((parent_fid->size + (p_fs->cluster_size - 1)) dir 1246 drivers/staging/exfat/exfat_super.c olddir.dir = fid->dir.dir; dir 1247 drivers/staging/exfat/exfat_super.c olddir.size = fid->dir.size; dir 1248 drivers/staging/exfat/exfat_super.c olddir.flags = fid->dir.flags; dir 1254 drivers/staging/exfat/exfat_super.c if ((olddir.dir != p_fs->root_dir) && (dentry < 2)) { dir 1280 drivers/staging/exfat/exfat_super.c p_dir = &(new_fid->dir); dir 1291 drivers/staging/exfat/exfat_super.c new_clu.dir = new_fid->start_clu; dir 1310 drivers/staging/exfat/exfat_super.c if (olddir.dir == newdir.dir) dir 1349 drivers/staging/exfat/exfat_super.c struct chain_t dir, clu_to_free; dir 1361 drivers/staging/exfat/exfat_super.c dir.dir = fid->dir.dir; dir 1362 drivers/staging/exfat/exfat_super.c dir.size = fid->dir.size; dir 1363 drivers/staging/exfat/exfat_super.c dir.flags = fid->dir.flags; dir 1367 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &dir, dentry, NULL); dir 1380 drivers/staging/exfat/exfat_super.c remove_file(inode, &dir, dentry); dir 1382 drivers/staging/exfat/exfat_super.c clu_to_free.dir = fid->start_clu; dir 1428 drivers/staging/exfat/exfat_super.c if ((fid->dir.dir == p_fs->root_dir) && dir 1441 drivers/staging/exfat/exfat_super.c es = get_entry_set_in_dir(sb, &(fid->dir), fid->entry, dir 1448 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &(fid->dir), fid->entry, §or); dir 1502 drivers/staging/exfat/exfat_super.c struct chain_t dir; dir 1518 drivers/staging/exfat/exfat_super.c if ((fid->dir.dir == p_fs->root_dir) && dir 1530 drivers/staging/exfat/exfat_super.c dir.dir = p_fs->root_dir; dir 1531 drivers/staging/exfat/exfat_super.c dir.flags = 0x01; dir 1538 drivers/staging/exfat/exfat_super.c info->Size = count_num_clusters(sb, &dir) << dir 1542 drivers/staging/exfat/exfat_super.c count = count_dos_name_entries(sb, &dir, TYPE_DIR); dir 1557 drivers/staging/exfat/exfat_super.c es = get_entry_set_in_dir(sb, &(fid->dir), fid->entry, dir 1565 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &(fid->dir), fid->entry, §or); dir 1601 drivers/staging/exfat/exfat_super.c p_fs->fs_func->get_uni_name_from_ext_entry(sb, &(fid->dir), fid->entry, dir 1624 drivers/staging/exfat/exfat_super.c dir.dir = fid->start_clu; dir 1625 drivers/staging/exfat/exfat_super.c dir.flags = 0x01; dir 1628 drivers/staging/exfat/exfat_super.c info->Size = (u64)count_num_clusters(sb, &dir) << dir 1631 drivers/staging/exfat/exfat_super.c count = count_dos_name_entries(sb, &dir, TYPE_DIR); dir 1668 drivers/staging/exfat/exfat_super.c if ((fid->dir.dir == p_fs->root_dir) && dir 1681 drivers/staging/exfat/exfat_super.c es = get_entry_set_in_dir(sb, &(fid->dir), fid->entry, dir 1690 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &(fid->dir), fid->entry, §or); dir 1799 drivers/staging/exfat/exfat_super.c new_clu.dir = (last_clu == CLUSTER_32(~0)) ? CLUSTER_32(~0) : dir 1818 drivers/staging/exfat/exfat_super.c fid->start_clu = new_clu.dir; dir 1828 drivers/staging/exfat/exfat_super.c FAT_write(sb, last_clu, new_clu.dir); dir 1832 drivers/staging/exfat/exfat_super.c *clu = new_clu.dir; dir 1835 drivers/staging/exfat/exfat_super.c es = get_entry_set_in_dir(sb, &fid->dir, fid->entry, dir 1848 drivers/staging/exfat/exfat_super.c ep = get_entry_in_dir(sb, &(fid->dir), dir 1897 drivers/staging/exfat/exfat_super.c struct chain_t dir; dir 1912 drivers/staging/exfat/exfat_super.c ret = resolve_path(inode, path, &dir, &uni_name); dir 1918 drivers/staging/exfat/exfat_super.c ret = create_dir(inode, &dir, &uni_name, fid); dir 1941 drivers/staging/exfat/exfat_super.c struct chain_t dir, clu; dir 1962 drivers/staging/exfat/exfat_super.c dir.dir = p_fs->root_dir; dir 1963 drivers/staging/exfat/exfat_super.c dir.flags = 0x01; dir 1965 drivers/staging/exfat/exfat_super.c dir.dir = fid->start_clu; dir 1966 drivers/staging/exfat/exfat_super.c dir.size = (s32)(fid->size >> p_fs->cluster_size_bits); dir 1967 drivers/staging/exfat/exfat_super.c dir.flags = fid->flags; dir 1972 drivers/staging/exfat/exfat_super.c if (dir.dir == CLUSTER_32(0)) { dir 1977 drivers/staging/exfat/exfat_super.c clu.dir = CLUSTER_32(~0); dir 1979 drivers/staging/exfat/exfat_super.c clu.dir = dir.dir; dir 1980 drivers/staging/exfat/exfat_super.c clu.size = dir.size; dir 1981 drivers/staging/exfat/exfat_super.c clu.flags = dir.flags; dir 1988 drivers/staging/exfat/exfat_super.c clu.dir = dir.dir; dir 1989 drivers/staging/exfat/exfat_super.c clu.size = dir.size; dir 1990 drivers/staging/exfat/exfat_super.c clu.flags = dir.flags; dir 1993 drivers/staging/exfat/exfat_super.c clu.dir += clu_offset; dir 2000 drivers/staging/exfat/exfat_super.c clu.dir = fid->hint_last_clu; dir 2005 drivers/staging/exfat/exfat_super.c if (FAT_read(sb, clu.dir, &clu.dir) == -1) { dir 2014 drivers/staging/exfat/exfat_super.c while (clu.dir != CLUSTER_32(~0)) { dir 2018 drivers/staging/exfat/exfat_super.c if (dir.dir == CLUSTER_32(0)) /* FAT16 root_dir */ dir 2062 drivers/staging/exfat/exfat_super.c fs_func->get_uni_name_from_ext_entry(sb, &dir, dentry, dir 2088 drivers/staging/exfat/exfat_super.c if (dir.dir == CLUSTER_32(0)) { /* FAT16 root_dir */ dir 2092 drivers/staging/exfat/exfat_super.c fid->hint_last_clu = clu.dir; dir 2102 drivers/staging/exfat/exfat_super.c if (dir.dir == CLUSTER_32(0)) dir 2107 drivers/staging/exfat/exfat_super.c clu.dir++; dir 2109 drivers/staging/exfat/exfat_super.c clu.dir = CLUSTER_32(~0); dir 2112 drivers/staging/exfat/exfat_super.c if (FAT_read(sb, clu.dir, &clu.dir) == -1) { dir 2137 drivers/staging/exfat/exfat_super.c struct chain_t dir, clu_to_free; dir 2145 drivers/staging/exfat/exfat_super.c dir.dir = fid->dir.dir; dir 2146 drivers/staging/exfat/exfat_super.c dir.size = fid->dir.size; dir 2147 drivers/staging/exfat/exfat_super.c dir.flags = fid->dir.flags; dir 2153 drivers/staging/exfat/exfat_super.c if ((dir.dir != p_fs->root_dir) && (dentry < 2)) dir 2160 drivers/staging/exfat/exfat_super.c clu_to_free.dir = fid->start_clu; dir 2172 drivers/staging/exfat/exfat_super.c remove_file(inode, &dir, dentry); dir 2292 drivers/staging/exfat/exfat_super.c static int exfat_ioctl_volume_id(struct inode *dir) dir 2294 drivers/staging/exfat/exfat_super.c struct super_block *sb = dir->i_sb; dir 2350 drivers/staging/exfat/exfat_super.c static int exfat_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 2353 drivers/staging/exfat/exfat_super.c struct super_block *sb = dir->i_sb; dir 2363 drivers/staging/exfat/exfat_super.c err = ffsCreateFile(dir, (u8 *)dentry->d_name.name, FM_REGULAR, &fid); dir 2377 drivers/staging/exfat/exfat_super.c INC_IVERSION(dir); dir 2378 drivers/staging/exfat/exfat_super.c dir->i_ctime = dir->i_mtime = dir->i_atime = current_time(dir); dir 2379 drivers/staging/exfat/exfat_super.c if (IS_DIRSYNC(dir)) dir 2380 drivers/staging/exfat/exfat_super.c (void)exfat_sync_inode(dir); dir 2382 drivers/staging/exfat/exfat_super.c mark_inode_dirty(dir); dir 2384 drivers/staging/exfat/exfat_super.c i_pos = ((loff_t)fid.dir.dir << 32) | (fid.entry & 0xffffffff); dir 2406 drivers/staging/exfat/exfat_super.c static int exfat_find(struct inode *dir, struct qstr *qname, dir 2414 drivers/staging/exfat/exfat_super.c err = ffsLookupFile(dir, (u8 *)qname->name, fid); dir 2426 drivers/staging/exfat/exfat_super.c static struct dentry *exfat_lookup(struct inode *dir, struct dentry *dentry, dir 2429 drivers/staging/exfat/exfat_super.c struct super_block *sb = dir->i_sb; dir 2440 drivers/staging/exfat/exfat_super.c err = exfat_find(dir, &dentry->d_name, &fid); dir 2449 drivers/staging/exfat/exfat_super.c i_pos = ((loff_t)fid.dir.dir << 32) | (fid.entry & 0xffffffff); dir 2464 drivers/staging/exfat/exfat_super.c ffsReadFile(dir, &fid, EXFAT_I(inode)->target, dir 2521 drivers/staging/exfat/exfat_super.c static int exfat_unlink(struct inode *dir, struct dentry *dentry) dir 2524 drivers/staging/exfat/exfat_super.c struct super_block *sb = dir->i_sb; dir 2533 drivers/staging/exfat/exfat_super.c err = ffsRemoveFile(dir, &(EXFAT_I(inode)->fid)); dir 2541 drivers/staging/exfat/exfat_super.c INC_IVERSION(dir); dir 2542 drivers/staging/exfat/exfat_super.c dir->i_mtime = dir->i_atime = current_time(dir); dir 2543 drivers/staging/exfat/exfat_super.c if (IS_DIRSYNC(dir)) dir 2544 drivers/staging/exfat/exfat_super.c (void)exfat_sync_inode(dir); dir 2546 drivers/staging/exfat/exfat_super.c mark_inode_dirty(dir); dir 2559 drivers/staging/exfat/exfat_super.c static int exfat_symlink(struct inode *dir, struct dentry *dentry, dir 2562 drivers/staging/exfat/exfat_super.c struct super_block *sb = dir->i_sb; dir 2574 drivers/staging/exfat/exfat_super.c err = ffsCreateFile(dir, (u8 *)dentry->d_name.name, FM_SYMLINK, &fid); dir 2587 drivers/staging/exfat/exfat_super.c err = ffsWriteFile(dir, &fid, (char *)target, len, &ret); dir 2590 drivers/staging/exfat/exfat_super.c ffsRemoveFile(dir, &fid); dir 2599 drivers/staging/exfat/exfat_super.c INC_IVERSION(dir); dir 2600 drivers/staging/exfat/exfat_super.c dir->i_ctime = dir->i_mtime = dir->i_atime = current_time(dir); dir 2601 drivers/staging/exfat/exfat_super.c if (IS_DIRSYNC(dir)) dir 2602 drivers/staging/exfat/exfat_super.c (void)exfat_sync_inode(dir); dir 2604 drivers/staging/exfat/exfat_super.c mark_inode_dirty(dir); dir 2606 drivers/staging/exfat/exfat_super.c i_pos = ((loff_t)fid.dir.dir << 32) | (fid.entry & 0xffffffff); dir 2632 drivers/staging/exfat/exfat_super.c static int exfat_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 2634 drivers/staging/exfat/exfat_super.c struct super_block *sb = dir->i_sb; dir 2644 drivers/staging/exfat/exfat_super.c err = ffsCreateDir(dir, (u8 *)dentry->d_name.name, &fid); dir 2658 drivers/staging/exfat/exfat_super.c INC_IVERSION(dir); dir 2659 drivers/staging/exfat/exfat_super.c dir->i_ctime = dir->i_mtime = dir->i_atime = current_time(dir); dir 2660 drivers/staging/exfat/exfat_super.c if (IS_DIRSYNC(dir)) dir 2661 drivers/staging/exfat/exfat_super.c (void)exfat_sync_inode(dir); dir 2663 drivers/staging/exfat/exfat_super.c mark_inode_dirty(dir); dir 2664 drivers/staging/exfat/exfat_super.c inc_nlink(dir); dir 2666 drivers/staging/exfat/exfat_super.c i_pos = ((loff_t)fid.dir.dir << 32) | (fid.entry & 0xffffffff); dir 2686 drivers/staging/exfat/exfat_super.c static int exfat_rmdir(struct inode *dir, struct dentry *dentry) dir 2689 drivers/staging/exfat/exfat_super.c struct super_block *sb = dir->i_sb; dir 2698 drivers/staging/exfat/exfat_super.c err = ffsRemoveDir(dir, &(EXFAT_I(inode)->fid)); dir 2712 drivers/staging/exfat/exfat_super.c INC_IVERSION(dir); dir 2713 drivers/staging/exfat/exfat_super.c dir->i_mtime = dir->i_atime = current_time(dir); dir 2714 drivers/staging/exfat/exfat_super.c if (IS_DIRSYNC(dir)) dir 2715 drivers/staging/exfat/exfat_super.c (void)exfat_sync_inode(dir); dir 2717 drivers/staging/exfat/exfat_super.c mark_inode_dirty(dir); dir 2718 drivers/staging/exfat/exfat_super.c drop_nlink(dir); dir 2777 drivers/staging/exfat/exfat_super.c i_pos = ((loff_t)EXFAT_I(old_inode)->fid.dir.dir << 32) | dir 3793 drivers/staging/exfat/exfat_super.c EXFAT_I(inode)->fid.dir.dir = p_fs->root_dir; dir 3794 drivers/staging/exfat/exfat_super.c EXFAT_I(inode)->fid.dir.flags = 0x01; dir 319 drivers/staging/greybus/audio_codec.c char intf_name[NAME_SIZE], dir[NAME_SIZE]; dir 330 drivers/staging/greybus/audio_codec.c ret = sscanf(w->sname, "%s %d %s", intf_name, &dai_id, dir); dir 133 drivers/staging/iio/cdc/ad7150.c enum iio_event_direction dir) dir 151 drivers/staging/iio/cdc/ad7150.c if (dir == IIO_EV_DIR_RISING) dir 155 drivers/staging/iio/cdc/ad7150.c if (dir == IIO_EV_DIR_RISING) dir 159 drivers/staging/iio/cdc/ad7150.c if (dir == IIO_EV_DIR_RISING) dir 173 drivers/staging/iio/cdc/ad7150.c enum iio_event_direction dir) dir 179 drivers/staging/iio/cdc/ad7150.c int rising = (dir == IIO_EV_DIR_RISING); dir 182 drivers/staging/iio/cdc/ad7150.c event_code = IIO_UNMOD_EVENT_CODE(IIO_CAPACITANCE, chan, type, dir); dir 218 drivers/staging/iio/cdc/ad7150.c enum iio_event_direction dir, int state) dir 223 drivers/staging/iio/cdc/ad7150.c int rising = (dir == IIO_EV_DIR_RISING); dir 230 drivers/staging/iio/cdc/ad7150.c event_code = IIO_UNMOD_EVENT_CODE(chan->type, chan->channel, type, dir); dir 276 drivers/staging/iio/cdc/ad7150.c ret = ad7150_write_event_params(indio_dev, chan->channel, type, dir); dir 286 drivers/staging/iio/cdc/ad7150.c enum iio_event_direction dir, dir 291 drivers/staging/iio/cdc/ad7150.c int rising = (dir == IIO_EV_DIR_RISING); dir 312 drivers/staging/iio/cdc/ad7150.c enum iio_event_direction dir, dir 318 drivers/staging/iio/cdc/ad7150.c int rising = (dir == IIO_EV_DIR_RISING); dir 337 drivers/staging/iio/cdc/ad7150.c ret = ad7150_write_event_params(indio_dev, chan->channel, type, dir); dir 381 drivers/staging/iio/cdc/ad7150.c enum iio_event_direction dir; dir 388 drivers/staging/iio/cdc/ad7150.c dir = IIO_EVENT_CODE_EXTRACT_DIR(this_attr->address); dir 389 drivers/staging/iio/cdc/ad7150.c rising = (dir == IIO_EV_DIR_RISING); dir 408 drivers/staging/iio/cdc/ad7150.c ret = ad7150_write_event_params(indio_dev, chan, type, dir); dir 418 drivers/staging/iio/cdc/ad7150.c #define AD7150_TIMEOUT(chan, type, dir, ev_type, ev_dir) \ dir 419 drivers/staging/iio/cdc/ad7150.c IIO_DEVICE_ATTR(in_capacitance##chan##_##type##_##dir##_timeout, \ dir 439 drivers/staging/iio/cdc/ad7150.c .dir = IIO_EV_DIR_RISING, dir 444 drivers/staging/iio/cdc/ad7150.c .dir = IIO_EV_DIR_FALLING, dir 449 drivers/staging/iio/cdc/ad7150.c .dir = IIO_EV_DIR_RISING, dir 454 drivers/staging/iio/cdc/ad7150.c .dir = IIO_EV_DIR_FALLING, dir 459 drivers/staging/iio/cdc/ad7150.c .dir = IIO_EV_DIR_RISING, dir 464 drivers/staging/iio/cdc/ad7150.c .dir = IIO_EV_DIR_FALLING, dir 101 drivers/staging/kpc2000/kpc_dma/dma.c eng->dir = DMA_FROM_DEVICE; dir 103 drivers/staging/kpc2000/kpc_dma/dma.c eng->dir = DMA_TO_DEVICE; dir 95 drivers/staging/kpc2000/kpc_dma/fileops.c acd->mapped_entry_count = dma_map_sg(&ldev->pldev->dev, acd->sgt.sgl, acd->sgt.nents, ldev->dir); dir 189 drivers/staging/kpc2000/kpc_dma/fileops.c dma_unmap_sg(&ldev->pldev->dev, acd->sgt.sgl, acd->sgt.nents, ldev->dir); dir 220 drivers/staging/kpc2000/kpc_dma/fileops.c dma_unmap_sg(&acd->ldev->pldev->dev, acd->sgt.sgl, acd->sgt.nents, acd->ldev->dir); dir 307 drivers/staging/kpc2000/kpc_dma/fileops.c if (priv->ldev->dir != DMA_FROM_DEVICE) dir 318 drivers/staging/kpc2000/kpc_dma/fileops.c if (priv->ldev->dir != DMA_TO_DEVICE) dir 29 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.h int dir; // DMA_FROM_DEVICE || DMA_TO_DEVICE dir 955 drivers/staging/most/core.c static int arm_mbo_chain(struct most_channel *c, int dir, dir 985 drivers/staging/most/core.c if (dir == MOST_CH_RX) { dir 22 drivers/staging/rtl8188eu/include/phy.h u8 type, u8 *dir, u32 *out_write); dir 214 drivers/staging/rtl8192e/rtl819x_TSProc.c u8 dir; dir 249 drivers/staging/rtl8192e/rtl819x_TSProc.c for (dir = 0; dir <= DIR_BI_DIR; dir++) { dir 250 drivers/staging/rtl8192e/rtl819x_TSProc.c if (!search_dir[dir]) dir 255 drivers/staging/rtl8192e/rtl819x_TSProc.c pRet->TSpec.f.TSInfo.field.ucDirection == dir) dir 208 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c u8 dir; dir 243 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c for (dir = 0; dir <= DIR_BI_DIR; dir++) { dir 244 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c if (!search_dir[dir]) dir 250 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c if (pRet->t_spec.ts_info.uc_direction == dir) { dir 621 drivers/staging/rtl8192u/r8192U_core.c struct proc_dir_entry *dir; dir 626 drivers/staging/rtl8192u/r8192U_core.c dir = proc_mkdir_data(dev->name, 0, rtl8192_proc, dev); dir 627 drivers/staging/rtl8192u/r8192U_core.c if (!dir) dir 630 drivers/staging/rtl8192u/r8192U_core.c proc_create_single("stats-rx", S_IFREG | S_IRUGO, dir, dir 632 drivers/staging/rtl8192u/r8192U_core.c proc_create_single("stats-tx", S_IFREG | S_IRUGO, dir, dir 634 drivers/staging/rtl8192u/r8192U_core.c proc_create_single("stats-ap", S_IFREG | S_IRUGO, dir, dir 636 drivers/staging/rtl8192u/r8192U_core.c proc_create_single("registers", S_IFREG | S_IRUGO, dir, dir 101 drivers/staging/rts5208/ms.c enum dma_data_direction dir; dir 107 drivers/staging/rts5208/ms.c dir = DMA_FROM_DEVICE; dir 110 drivers/staging/rts5208/ms.c dir = DMA_TO_DEVICE; dir 131 drivers/staging/rts5208/ms.c trans_dma_enable(dir, chip, sec_cnt * 512, DMA_512); dir 141 drivers/staging/rts5208/ms.c use_sg, dir, chip->mspro_timeout); dir 820 drivers/staging/rts5208/rtsx_card.c void trans_dma_enable(enum dma_data_direction dir, struct rtsx_chip *chip, dir 833 drivers/staging/rts5208/rtsx_card.c if (dir == DMA_FROM_DEVICE) { dir 1003 drivers/staging/rts5208/rtsx_card.h void trans_dma_enable(enum dma_data_direction dir, dir 37 drivers/staging/rts5208/rtsx_transport.c enum xfer_buf_dir dir) dir 51 drivers/staging/rts5208/rtsx_transport.c if (dir == TO_XFER_BUF) dir 97 drivers/staging/rts5208/rtsx_transport.c if (dir == TO_XFER_BUF) dir 322 drivers/staging/rts5208/rtsx_transport.c u8 dir; dir 333 drivers/staging/rts5208/rtsx_transport.c dir = HOST_TO_DEVICE; dir 335 drivers/staging/rts5208/rtsx_transport.c dir = DEVICE_TO_HOST; dir 410 drivers/staging/rts5208/rtsx_transport.c val |= (u32)(dir & 0x01) << 29; dir 486 drivers/staging/rts5208/rtsx_transport.c u8 dir; dir 496 drivers/staging/rts5208/rtsx_transport.c dir = HOST_TO_DEVICE; dir 498 drivers/staging/rts5208/rtsx_transport.c dir = DEVICE_TO_HOST; dir 554 drivers/staging/rts5208/rtsx_transport.c val |= (u32)(dir & 0x01) << 29; dir 633 drivers/staging/rts5208/rtsx_transport.c u8 dir; dir 642 drivers/staging/rts5208/rtsx_transport.c dir = HOST_TO_DEVICE; dir 644 drivers/staging/rts5208/rtsx_transport.c dir = DEVICE_TO_HOST; dir 661 drivers/staging/rts5208/rtsx_transport.c val |= (u32)(dir & 0x01) << 29; dir 25 drivers/staging/rts5208/rtsx_transport.h enum xfer_buf_dir dir); dir 221 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c int dir) dir 226 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c (dir == VCHIQ_BULK_RECEIVE) dir 177 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c unsigned int size, VCHIQ_BULK_DIR_T dir); dir 434 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c unsigned int size, VCHIQ_BULK_DIR_T dir) dir 486 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c VCHIQ_BULK_MODE_BLOCKING, dir); dir 1045 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c VCHIQ_BULK_DIR_T dir = dir 1094 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c args.userdata, args.mode, dir); dir 1204 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c if (bulk->dir == VCHIQ_BULK_TRANSMIT) { dir 1233 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c VCHIQ_REASON_T reason = (bulk->dir == dir 1374 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c bulk->dir = is_tx ? VCHIQ_BULK_TRANSMIT : dir 2961 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c VCHIQ_BULK_DIR_T dir) dir 2968 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c const char dir_char = (dir == VCHIQ_BULK_TRANSMIT) ? 't' : 'r'; dir 2969 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c const int dir_msgtype = (dir == VCHIQ_BULK_TRANSMIT) ? dir 2998 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c queue = (dir == VCHIQ_BULK_TRANSMIT) ? dir 3026 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c bulk->dir = dir; dir 3031 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c if (vchiq_prepare_bulk_data(bulk, offset, size, dir) != VCHIQ_SUCCESS) dir 214 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h short dir; dir 527 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h VCHIQ_BULK_DIR_T dir); dir 585 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h int dir); dir 214 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c struct dentry *dir; dir 221 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c dir = debugfs_create_dir("log", vchiq_dbg_dir); dir 225 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c dir, vchiq_debugfs_log_entries[i].plevel, dir 56 drivers/tee/tee_shm.c *attach, enum dma_data_direction dir) dir 63 drivers/tee/tee_shm.c enum dma_data_direction dir) dir 100 drivers/thunderbolt/property.c struct tb_property_dir *dir; dir 116 drivers/thunderbolt/property.c dir = __tb_property_parse_dir(block, block_len, entry->value, dir 118 drivers/thunderbolt/property.c if (!dir) { dir 122 drivers/thunderbolt/property.c property->value.dir = dir; dir 167 drivers/thunderbolt/property.c struct tb_property_dir *dir; dir 169 drivers/thunderbolt/property.c dir = kzalloc(sizeof(*dir), GFP_KERNEL); dir 170 drivers/thunderbolt/property.c if (!dir) dir 177 drivers/thunderbolt/property.c dir->uuid = kmemdup(&block[dir_offset], sizeof(*dir->uuid), dir 179 drivers/thunderbolt/property.c if (!dir->uuid) { dir 180 drivers/thunderbolt/property.c tb_property_free_dir(dir); dir 190 drivers/thunderbolt/property.c INIT_LIST_HEAD(&dir->properties); dir 197 drivers/thunderbolt/property.c tb_property_free_dir(dir); dir 201 drivers/thunderbolt/property.c list_add_tail(&property->list, &dir->properties); dir 204 drivers/thunderbolt/property.c return dir; dir 244 drivers/thunderbolt/property.c struct tb_property_dir *dir; dir 246 drivers/thunderbolt/property.c dir = kzalloc(sizeof(*dir), GFP_KERNEL); dir 247 drivers/thunderbolt/property.c if (!dir) dir 250 drivers/thunderbolt/property.c INIT_LIST_HEAD(&dir->properties); dir 252 drivers/thunderbolt/property.c dir->uuid = kmemdup(uuid, sizeof(*dir->uuid), GFP_KERNEL); dir 253 drivers/thunderbolt/property.c if (!dir->uuid) { dir 254 drivers/thunderbolt/property.c kfree(dir); dir 259 drivers/thunderbolt/property.c return dir; dir 267 drivers/thunderbolt/property.c tb_property_free_dir(property->value.dir); dir 293 drivers/thunderbolt/property.c void tb_property_free_dir(struct tb_property_dir *dir) dir 297 drivers/thunderbolt/property.c if (!dir) dir 300 drivers/thunderbolt/property.c list_for_each_entry_safe(property, tmp, &dir->properties, list) { dir 304 drivers/thunderbolt/property.c kfree(dir->uuid); dir 305 drivers/thunderbolt/property.c kfree(dir); dir 309 drivers/thunderbolt/property.c static size_t tb_property_dir_length(const struct tb_property_dir *dir, dir 315 drivers/thunderbolt/property.c if (dir->uuid) dir 316 drivers/thunderbolt/property.c len += sizeof(*dir->uuid) / 4; dir 320 drivers/thunderbolt/property.c list_for_each_entry(property, &dir->properties, list) { dir 327 drivers/thunderbolt/property.c property->value.dir, recurse, data_len); dir 348 drivers/thunderbolt/property.c static ssize_t __tb_property_format_dir(const struct tb_property_dir *dir, dir 402 drivers/thunderbolt/property.c dir_len = tb_property_dir_length(dir, false, &data_len); dir 412 drivers/thunderbolt/property.c if (dir->uuid) { dir 416 drivers/thunderbolt/property.c memcpy(pe->uuid, dir->uuid, sizeof(pe->uuid)); dir 427 drivers/thunderbolt/property.c list_for_each_entry(property, &dir->properties, list) { dir 435 drivers/thunderbolt/property.c child = property->value.dir; dir 488 drivers/thunderbolt/property.c ssize_t tb_property_format_dir(const struct tb_property_dir *dir, u32 *block, dir 496 drivers/thunderbolt/property.c dir_len = tb_property_dir_length(dir, true, &data_len); dir 500 drivers/thunderbolt/property.c ret = __tb_property_format_dir(dir, block, 0, block_len); dir 610 drivers/thunderbolt/property.c struct tb_property_dir *dir) dir 621 drivers/thunderbolt/property.c property->value.dir = dir; dir 651 drivers/thunderbolt/property.c struct tb_property *tb_property_find(struct tb_property_dir *dir, dir 656 drivers/thunderbolt/property.c list_for_each_entry(property, &dir->properties, list) { dir 670 drivers/thunderbolt/property.c struct tb_property *tb_property_get_next(struct tb_property_dir *dir, dir 674 drivers/thunderbolt/property.c if (list_is_last(&prev->list, &dir->properties)) dir 678 drivers/thunderbolt/property.c return list_first_entry_or_null(&dir->properties, struct tb_property, dir 773 drivers/thunderbolt/xdomain.c struct tb_property_dir *dir = property->value.dir; dir 777 drivers/thunderbolt/xdomain.c p = tb_property_find(dir, "prtcid", TB_PROPERTY_TYPE_VALUE); dir 780 drivers/thunderbolt/xdomain.c p = tb_property_find(dir, "prtcvers", TB_PROPERTY_TYPE_VALUE); dir 783 drivers/thunderbolt/xdomain.c p = tb_property_find(dir, "prtcrevs", TB_PROPERTY_TYPE_VALUE); dir 786 drivers/thunderbolt/xdomain.c p = tb_property_find(dir, "prtcstns", TB_PROPERTY_TYPE_VALUE); dir 850 drivers/thunderbolt/xdomain.c struct tb_property_dir *dir) dir 855 drivers/thunderbolt/xdomain.c p = tb_property_find(dir, "deviceid", TB_PROPERTY_TYPE_VALUE); dir 860 drivers/thunderbolt/xdomain.c p = tb_property_find(dir, "vendorid", TB_PROPERTY_TYPE_VALUE); dir 871 drivers/thunderbolt/xdomain.c p = tb_property_find(dir, "deviceid", TB_PROPERTY_TYPE_TEXT); dir 874 drivers/thunderbolt/xdomain.c p = tb_property_find(dir, "vendorid", TB_PROPERTY_TYPE_TEXT); dir 947 drivers/thunderbolt/xdomain.c struct tb_property_dir *dir; dir 986 drivers/thunderbolt/xdomain.c dir = tb_property_parse_dir(block, ret); dir 987 drivers/thunderbolt/xdomain.c if (!dir) { dir 992 drivers/thunderbolt/xdomain.c ret = populate_properties(xd, dir); dir 1004 drivers/thunderbolt/xdomain.c xd->properties = dir; dir 1031 drivers/thunderbolt/xdomain.c tb_property_free_dir(dir); dir 1614 drivers/thunderbolt/xdomain.c static bool remove_directory(const char *key, const struct tb_property_dir *dir) dir 1620 drivers/thunderbolt/xdomain.c if (p && p->value.dir == dir) { dir 1639 drivers/thunderbolt/xdomain.c int tb_register_property_dir(const char *key, struct tb_property_dir *dir) dir 1656 drivers/thunderbolt/xdomain.c ret = tb_property_add_dir(xdomain_property_dir, key, dir); dir 1662 drivers/thunderbolt/xdomain.c remove_directory(key, dir); dir 1684 drivers/thunderbolt/xdomain.c void tb_unregister_property_dir(const char *key, struct tb_property_dir *dir) dir 1689 drivers/thunderbolt/xdomain.c if (remove_directory(key, dir)) dir 310 drivers/tty/serial/8250/8250_exar.c u8 dir = pcidev->vendor == PCI_VENDOR_ID_EXAR ? 0xff : 0x00; dir 316 drivers/tty/serial/8250/8250_exar.c writeb(dir, p + UART_EXAR_MPIOSEL_7_0); dir 322 drivers/tty/serial/8250/8250_exar.c writeb(dir, p + UART_EXAR_MPIOSEL_15_8); dir 372 drivers/tty/serial/amba-pl011.c enum dma_data_direction dir) dir 391 drivers/tty/serial/amba-pl011.c enum dma_data_direction dir) dir 165 drivers/tty/serial/msm_serial.c enum dma_data_direction dir; dir 268 drivers/tty/serial/msm_serial.c dma_unmap_single(dev, dma->phys, mapped, dma->dir); dir 321 drivers/tty/serial/msm_serial.c dma->dir = DMA_TO_DEVICE; dir 368 drivers/tty/serial/msm_serial.c dma->dir = DMA_FROM_DEVICE; dir 446 drivers/tty/serial/msm_serial.c dma_unmap_single(port->dev, dma->phys, dma->count, dma->dir); dir 487 drivers/tty/serial/msm_serial.c dma->phys = dma_map_single(port->dev, cpu_addr, count, dma->dir); dir 532 drivers/tty/serial/msm_serial.c dma_unmap_single(port->dev, dma->phys, count, dma->dir); dir 568 drivers/tty/serial/msm_serial.c dma_unmap_single(port->dev, dma->phys, UARTDM_RX_SIZE, dma->dir); dir 610 drivers/tty/serial/msm_serial.c UARTDM_RX_SIZE, dma->dir); dir 663 drivers/tty/serial/msm_serial.c dma_unmap_single(uart->dev, dma->phys, UARTDM_RX_SIZE, dma->dir); dir 1531 drivers/tty/serial/sh-sci.c enum dma_transfer_direction dir) dir 1538 drivers/tty/serial/sh-sci.c dir == DMA_MEM_TO_DEV ? "tx" : "rx"); dir 1545 drivers/tty/serial/sh-sci.c cfg.direction = dir; dir 1546 drivers/tty/serial/sh-sci.c if (dir == DMA_MEM_TO_DEV) { dir 2948 drivers/tty/synclink_gt.c gpio.dir, gpio.dmask)); dir 2953 drivers/tty/synclink_gt.c data |= gpio.dmask & gpio.dir; dir 2954 drivers/tty/synclink_gt.c data &= ~(gpio.dmask & ~gpio.dir); dir 2978 drivers/tty/synclink_gt.c gpio.dir = rd_reg32(info, IODR); dir 2983 drivers/tty/synclink_gt.c info->device_name, gpio.state, gpio.dir)); dir 439 drivers/tty/vt/vt.c enum con_scroll dir, unsigned int nr) dir 449 drivers/tty/vt/vt.c if (dir == SM_DOWN) { dir 628 drivers/tty/vt/vt.c enum con_scroll dir, unsigned int nr) dir 636 drivers/tty/vt/vt.c vc_uniscr_scroll(vc, t, b, dir, nr); dir 637 drivers/tty/vt/vt.c if (con_is_visible(vc) && vc->vc_sw->con_scroll(vc, t, b, dir, nr)) dir 643 drivers/tty/vt/vt.c if (dir == SM_UP) { dir 97 drivers/usb/cdns3/debug.h int dir, dir 101 drivers/usb/cdns3/debug.h dir ? "ep0IN" : "ep0OUT"); dir 565 drivers/usb/cdns3/ep0.c priv_ep->dir = priv_dev->ep0_data_dir; dir 602 drivers/usb/cdns3/ep0.c priv_ep->dir = priv_dev->ep0_data_dir; dir 630 drivers/usb/cdns3/ep0.c void cdns3_check_ep0_interrupt_proceed(struct cdns3_device *priv_dev, int dir) dir 634 drivers/usb/cdns3/ep0.c cdns3_select_ep(priv_dev, dir); dir 651 drivers/usb/cdns3/ep0.c priv_dev->ep0_data_dir = dir; dir 656 drivers/usb/cdns3/ep0.c if (dir == 0 && !priv_dev->setup_pending) dir 383 drivers/usb/cdns3/gadget.c if (!priv_ep->dir && priv_ep->type != USB_ENDPOINT_XFER_ISOC) { \ dir 485 drivers/usb/cdns3/gadget.c cdns3_select_ep(priv_dev, priv_ep->num | priv_ep->dir); dir 647 drivers/usb/cdns3/gadget.c priv_ep->dir); dir 650 drivers/usb/cdns3/gadget.c priv_ep->dir == USB_DIR_OUT && !request->status) dir 764 drivers/usb/cdns3/gadget.c if (priv_ep->dir == USB_DIR_IN) { dir 930 drivers/usb/cdns3/gadget.c if (priv_ep->type == USB_ENDPOINT_XFER_ISOC && !priv_ep->dir) { dir 987 drivers/usb/cdns3/gadget.c if (priv_ep->type == USB_ENDPOINT_XFER_ISOC && !priv_ep->dir && dir 1242 drivers/usb/cdns3/gadget.c if (!priv_ep->dir) { dir 1529 drivers/usb/cdns3/gadget.c if (priv_ep->dir) dir 1541 drivers/usb/cdns3/gadget.c if (priv_ep->type == USB_ENDPOINT_XFER_ISOC && !priv_ep->dir) dir 1556 drivers/usb/cdns3/gadget.c u32 bEndpointAddress = priv_ep->num | priv_ep->dir; dir 1572 drivers/usb/cdns3/gadget.c if ((priv_dev->dev_ver == DEV_VER_V2 && !priv_ep->dir) || dir 1579 drivers/usb/cdns3/gadget.c if ((priv_dev->dev_ver == DEV_VER_V2 && !priv_ep->dir) || dir 1624 drivers/usb/cdns3/gadget.c !!priv_ep->dir); dir 1714 drivers/usb/cdns3/gadget.c priv_ep->dir = usb_endpoint_dir_in(desc) ? USB_DIR_IN : USB_DIR_OUT; dir 1819 drivers/usb/cdns3/gadget.c bEndpointAddress = priv_ep->num | priv_ep->dir; dir 1853 drivers/usb/cdns3/gadget.c if (priv_ep->type == USB_ENDPOINT_XFER_ISOC && !priv_ep->dir) dir 2409 drivers/usb/cdns3/gadget.c bEndpointAddress = priv_ep->num | priv_ep->dir; dir 2492 drivers/usb/cdns3/gadget.c priv_ep->dir = ep_dir ? USB_DIR_IN : USB_DIR_OUT; dir 1149 drivers/usb/cdns3/gadget.h u8 dir; dir 1335 drivers/usb/cdns3/gadget.h void cdns3_check_ep0_interrupt_proceed(struct cdns3_device *priv_dev, int dir); dir 273 drivers/usb/cdns3/trace.h __field(int, dir) dir 277 drivers/usb/cdns3/trace.h __entry->dir = dev_priv->ep0_data_dir; dir 280 drivers/usb/cdns3/trace.h TP_printk("Queue to ep0%s length: %u", __entry->dir ? "in" : "out", dir 403 drivers/usb/cdns3/trace.h __field(unsigned int, dir) dir 414 drivers/usb/cdns3/trace.h __entry->dir = priv_ep->dir; dir 432 drivers/usb/cdns3/trace.h __entry->dir ? "IN" : "OUT" dir 88 drivers/usb/chipidea/ci.h u8 dir; dir 58 drivers/usb/chipidea/udc.c static inline int hw_ep_bit(int num, int dir) dir 60 drivers/usb/chipidea/udc.c return num + ((dir == TX) ? 16 : 0); dir 99 drivers/usb/chipidea/udc.c static int hw_ep_flush(struct ci_hdrc *ci, int num, int dir) dir 101 drivers/usb/chipidea/udc.c int n = hw_ep_bit(num, dir); dir 120 drivers/usb/chipidea/udc.c static int hw_ep_disable(struct ci_hdrc *ci, int num, int dir) dir 123 drivers/usb/chipidea/udc.c (dir == TX) ? ENDPTCTRL_TXE : ENDPTCTRL_RXE, 0); dir 135 drivers/usb/chipidea/udc.c static int hw_ep_enable(struct ci_hdrc *ci, int num, int dir, int type) dir 139 drivers/usb/chipidea/udc.c if (dir == TX) { dir 169 drivers/usb/chipidea/udc.c static int hw_ep_get_halt(struct ci_hdrc *ci, int num, int dir) dir 171 drivers/usb/chipidea/udc.c u32 mask = (dir == TX) ? ENDPTCTRL_TXS : ENDPTCTRL_RXS; dir 184 drivers/usb/chipidea/udc.c static int hw_ep_prime(struct ci_hdrc *ci, int num, int dir, int is_ctrl) dir 186 drivers/usb/chipidea/udc.c int n = hw_ep_bit(num, dir); dir 191 drivers/usb/chipidea/udc.c if (is_ctrl && dir == RX && hw_read(ci, OP_ENDPTSETUPSTAT, BIT(num))) dir 198 drivers/usb/chipidea/udc.c if (is_ctrl && dir == RX && hw_read(ci, OP_ENDPTSETUPSTAT, BIT(num))) dir 214 drivers/usb/chipidea/udc.c static int hw_ep_set_halt(struct ci_hdrc *ci, int num, int dir, int value) dir 221 drivers/usb/chipidea/udc.c u32 mask_xs = (dir == TX) ? ENDPTCTRL_TXS : ENDPTCTRL_RXS; dir 222 drivers/usb/chipidea/udc.c u32 mask_xr = (dir == TX) ? ENDPTCTRL_TXR : ENDPTCTRL_RXR; dir 227 drivers/usb/chipidea/udc.c } while (value != hw_ep_get_halt(ci, num, dir)); dir 360 drivers/usb/chipidea/udc.c if (hwep->type == USB_ENDPOINT_XFER_ISOC && hwep->dir == TX) { dir 400 drivers/usb/chipidea/udc.c return ((ep->dir == TX) ? USB_ENDPOINT_DIR_MASK : 0) | ep->num; dir 425 drivers/usb/chipidea/udc.c &hwreq->req, hwep->dir); dir 452 drivers/usb/chipidea/udc.c if (hwreq->req.zero && hwreq->req.length && hwep->dir == TX dir 472 drivers/usb/chipidea/udc.c int n = hw_ep_bit(hwep->num, hwep->dir); dir 500 drivers/usb/chipidea/udc.c if (hwep->type == USB_ENDPOINT_XFER_ISOC && hwep->dir == RX) { dir 509 drivers/usb/chipidea/udc.c ret = hw_ep_prime(ci, hwep->num, hwep->dir, dir 535 drivers/usb/chipidea/udc.c return hw_ep_prime(ci, hwep->num, hwep->dir, dir 562 drivers/usb/chipidea/udc.c int n = hw_ep_bit(hwep->num, hwep->dir); dir 588 drivers/usb/chipidea/udc.c if (hwep->dir == TX) { dir 606 drivers/usb/chipidea/udc.c &hwreq->req, hwep->dir); dir 631 drivers/usb/chipidea/udc.c hw_ep_flush(hwep->ci, hwep->num, hwep->dir); dir 676 drivers/usb/chipidea/udc.c if (value && hwep->dir == TX && check_transfer && dir 683 drivers/usb/chipidea/udc.c direction = hwep->dir; dir 685 drivers/usb/chipidea/udc.c retval |= hw_ep_set_halt(hwep->ci, hwep->num, hwep->dir, value); dir 691 drivers/usb/chipidea/udc.c hwep->dir = (hwep->dir == TX) ? RX : TX; dir 693 drivers/usb/chipidea/udc.c } while (hwep->dir != direction); dir 864 drivers/usb/chipidea/udc.c int dir, num, retval; dir 888 drivers/usb/chipidea/udc.c dir = (le16_to_cpu(setup->wIndex) & USB_ENDPOINT_DIR_MASK) ? dir 891 drivers/usb/chipidea/udc.c *(u16 *)req->buf = hw_ep_get_halt(ci, num, dir); dir 1019 drivers/usb/chipidea/udc.c int type, num, dir, err = -EINVAL; dir 1047 drivers/usb/chipidea/udc.c dir = (num & USB_ENDPOINT_DIR_MASK) ? TX : RX; dir 1049 drivers/usb/chipidea/udc.c if (dir == TX) dir 1099 drivers/usb/chipidea/udc.c dir = (num & USB_ENDPOINT_DIR_MASK) ? TX : RX; dir 1101 drivers/usb/chipidea/udc.c if (dir == TX) dir 1249 drivers/usb/chipidea/udc.c hwep->dir = usb_endpoint_dir_in(desc) ? TX : RX; dir 1265 drivers/usb/chipidea/udc.c if (hwep->type == USB_ENDPOINT_XFER_ISOC && hwep->dir == TX) dir 1282 drivers/usb/chipidea/udc.c retval |= hw_ep_enable(hwep->ci, hwep->num, hwep->dir, dir 1313 drivers/usb/chipidea/udc.c direction = hwep->dir; dir 1316 drivers/usb/chipidea/udc.c retval |= hw_ep_disable(hwep->ci, hwep->num, hwep->dir); dir 1319 drivers/usb/chipidea/udc.c hwep->dir = (hwep->dir == TX) ? RX : TX; dir 1321 drivers/usb/chipidea/udc.c } while (hwep->dir != direction); dir 1427 drivers/usb/chipidea/udc.c hw_ep_flush(hwep->ci, hwep->num, hwep->dir); dir 1438 drivers/usb/chipidea/udc.c usb_gadget_unmap_request(&hwep->ci->gadget, req, hwep->dir); dir 1503 drivers/usb/chipidea/udc.c hw_ep_flush(hwep->ci, hwep->num, hwep->dir); dir 250 drivers/usb/class/usblp.c static int usblp_ctrl_msg(struct usblp *usblp, int request, int type, int dir, int recip, int value, void *buf, int len) dir 262 drivers/usb/class/usblp.c dir ? usb_rcvctrlpipe(usblp->dev, 0) : usb_sndctrlpipe(usblp->dev, 0), dir 263 drivers/usb/class/usblp.c request, type | dir | recip, value, index, buf, len, USBLP_CTL_TIMEOUT); dir 266 drivers/usb/class/usblp.c request, !!dir, recip, value, index, len, retval); dir 164 drivers/usb/core/devices.c char dir, unit, *type; dir 170 drivers/usb/core/devices.c dir = usb_endpoint_dir_in(desc) ? 'I' : 'O'; dir 183 drivers/usb/core/devices.c dir = 'B'; /* ctrl is bidirectional */ dir 191 drivers/usb/core/devices.c if (speed == USB_SPEED_HIGH && dir == 'O') /* uframes per NAK */ dir 215 drivers/usb/core/devices.c start += sprintf(start, format_endpt, desc->bEndpointAddress, dir, dir 1273 drivers/usb/core/hcd.c enum dma_data_direction dir) dir 1298 drivers/usb/core/hcd.c if (dir == DMA_TO_DEVICE) dir 1307 drivers/usb/core/hcd.c enum dma_data_direction dir) dir 1313 drivers/usb/core/hcd.c if (dir == DMA_FROM_DEVICE) dir 1352 drivers/usb/core/hcd.c enum dma_data_direction dir; dir 1356 drivers/usb/core/hcd.c dir = usb_urb_dir_in(urb) ? DMA_FROM_DEVICE : DMA_TO_DEVICE; dir 1362 drivers/usb/core/hcd.c dir); dir 1368 drivers/usb/core/hcd.c dir); dir 1374 drivers/usb/core/hcd.c dir); dir 1380 drivers/usb/core/hcd.c dir); dir 1400 drivers/usb/core/hcd.c enum dma_data_direction dir; dir 1443 drivers/usb/core/hcd.c dir = usb_urb_dir_in(urb) ? DMA_FROM_DEVICE : DMA_TO_DEVICE; dir 1452 drivers/usb/core/hcd.c dir); dir 1469 drivers/usb/core/hcd.c dir); dir 1485 drivers/usb/core/hcd.c dir); dir 1502 drivers/usb/core/hcd.c dir); dir 1535 drivers/usb/dwc2/gadget.c int dir = (windex & USB_DIR_IN) ? 1 : 0; dir 1544 drivers/usb/dwc2/gadget.c ep = index_to_ep(hsotg, idx, dir); dir 1546 drivers/usb/dwc2/gadget.c if (idx && ep->dir_in != dir) dir 4632 drivers/usb/dwc2/gadget.c char *dir; dir 4635 drivers/usb/dwc2/gadget.c dir = ""; dir 4637 drivers/usb/dwc2/gadget.c dir = "in"; dir 4639 drivers/usb/dwc2/gadget.c dir = "out"; dir 4644 drivers/usb/dwc2/gadget.c snprintf(hs_ep->name, sizeof(hs_ep->name), "ep%d%s", epnum, dir); dir 884 drivers/usb/dwc3/debugfs.c struct dentry *dir; dir 886 drivers/usb/dwc3/debugfs.c dir = debugfs_create_dir(dep->name, parent); dir 887 drivers/usb/dwc3/debugfs.c dwc3_debugfs_create_endpoint_files(dep, dir); dir 1042 drivers/usb/gadget/function/f_tcm.c int dir, flags = (TARGET_SCF_UNKNOWN_SIZE | TARGET_SCF_ACK_KREF); dir 1047 drivers/usb/gadget/function/f_tcm.c dir = get_cmd_dir(cmd->cmd_buf); dir 1048 drivers/usb/gadget/function/f_tcm.c if (dir < 0) { dir 1058 drivers/usb/gadget/function/f_tcm.c cmd->prio_attr, dir, flags) < 0) dir 1172 drivers/usb/gadget/function/f_tcm.c int dir; dir 1177 drivers/usb/gadget/function/f_tcm.c dir = get_cmd_dir(cmd->cmd_buf); dir 1178 drivers/usb/gadget/function/f_tcm.c if (dir < 0) { dir 1188 drivers/usb/gadget/function/f_tcm.c cmd->data_len, cmd->prio_attr, dir, 0) < 0) dir 41 drivers/usb/gadget/function/u_uac1_legacy.c int dir) dir 46 drivers/usb/gadget/function/u_uac1_legacy.c if (val == 0 && dir < 0) { dir 50 drivers/usb/gadget/function/u_uac1_legacy.c if (dir > 0) dir 52 drivers/usb/gadget/function/u_uac1_legacy.c else if (dir < 0) dir 59 drivers/usb/gadget/function/u_uac1_legacy.c if (val == 0 && dir < 0) { dir 62 drivers/usb/gadget/function/u_uac1_legacy.c } else if (dir == 0) dir 70 drivers/usb/gadget/function/u_uac1_legacy.c if (dir < 0) { dir 158 drivers/usb/gadget/udc/bcm63xx_udc.c int dir; dir 571 drivers/usb/gadget/udc/bcm63xx_udc.c (cfg->dir << USBD_CSR_EP_DIR_SHIFT) | dir 355 drivers/usb/gadget/udc/bdc/bdc.h u8 dir; dir 389 drivers/usb/gadget/udc/bdc/bdc_ep.c req->ep->dir = 0; dir 462 drivers/usb/gadget/udc/bdc/bdc_ep.c if (!req->ep->dir) dir 549 drivers/usb/gadget/udc/bdc/bdc_ep.c usb_gadget_unmap_request(&bdc->gadget, &req->usb_req, ep->dir); dir 687 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = usb_gadget_map_request(&bdc->gadget, &req->usb_req, ep->dir); dir 724 drivers/usb/gadget/udc/bdc/bdc_ep.c ret = usb_gadget_map_request(&bdc->gadget, &req->usb_req, ep->dir); dir 1935 drivers/usb/gadget/udc/bdc/bdc_ep.c static int init_ep(struct bdc *bdc, u32 epnum, u32 dir) dir 1939 drivers/usb/gadget/udc/bdc/bdc_ep.c dev_dbg(bdc->dev, "%s epnum=%d dir=%d\n", __func__, epnum, dir); dir 1945 drivers/usb/gadget/udc/bdc/bdc_ep.c ep->dir = dir; dir 1947 drivers/usb/gadget/udc/bdc/bdc_ep.c if (dir) dir 1962 drivers/usb/gadget/udc/bdc/bdc_ep.c if (dir) dir 1969 drivers/usb/gadget/udc/bdc/bdc_ep.c dir & 1 ? "in" : "out"); dir 158 drivers/usb/gadget/udc/fotg210.h #define EPMAP_FIFONO(ep, dir) \ dir 159 drivers/usb/gadget/udc/fotg210.h ((((ep) - 1) << ((ep) - 1) * 8) << ((dir) ? 0 : 4)) dir 160 drivers/usb/gadget/udc/fotg210.h #define EPMAP_FIFONOMSK(ep, dir) \ dir 161 drivers/usb/gadget/udc/fotg210.h ((3 << ((ep) - 1) * 8) << ((dir) ? 0 : 4)) dir 152 drivers/usb/gadget/udc/fsl_qe_udc.c else if (ep->dir == USB_DIR_IN) dir 169 drivers/usb/gadget/udc/fsl_qe_udc.c else if (ep->dir == USB_DIR_OUT) dir 288 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_OUT) dir 320 drivers/usb/gadget/udc/fsl_qe_udc.c switch (ep->dir) { dir 356 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_OUT) dir 425 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_OUT) dir 496 drivers/usb/gadget/udc/fsl_qe_udc.c switch (ep->dir) { dir 638 drivers/usb/gadget/udc/fsl_qe_udc.c ep->dir = USB_DIR_BOTH; dir 644 drivers/usb/gadget/udc/fsl_qe_udc.c ep->dir = USB_DIR_OUT; dir 647 drivers/usb/gadget/udc/fsl_qe_udc.c ep->dir = USB_DIR_IN; dir 655 drivers/usb/gadget/udc/fsl_qe_udc.c if ((ep->tm == USBP_TM_CTL) || (ep->dir == USB_DIR_OUT)) { dir 661 drivers/usb/gadget/udc/fsl_qe_udc.c if ((ep->tm == USBP_TM_CTL) || (ep->dir == USB_DIR_IN)) { dir 818 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_IN) { dir 941 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_IN || ep->enable_tasklet == 0) { dir 1024 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_IN) { dir 1068 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_OUT) { dir 1632 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_OUT) dir 1639 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir != USB_DIR_IN) { dir 1655 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir != USB_DIR_OUT) dir 1748 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep->dir == USB_DIR_OUT) dir 1962 drivers/usb/gadget/udc/fsl_qe_udc.c if (target_ep->dir != USB_DIR_IN) dir 1967 drivers/usb/gadget/udc/fsl_qe_udc.c if (target_ep->dir != USB_DIR_OUT) dir 2171 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep && ep->init && (ep->dir != USB_DIR_OUT)) { dir 2196 drivers/usb/gadget/udc/fsl_qe_udc.c if (ep && ep->init && (ep->dir != USB_DIR_IN)) { dir 2420 drivers/usb/gadget/udc/fsl_qe_udc.c ep->dir = 0xff; dir 289 drivers/usb/gadget/udc/fsl_qe_udc.h u8 dir; dir 409 drivers/usb/gadget/udc/fsl_udc_core.c static void dr_ep_setup(unsigned char ep_num, unsigned char dir, dir 415 drivers/usb/gadget/udc/fsl_udc_core.c if (dir) { dir 435 drivers/usb/gadget/udc/fsl_udc_core.c dr_ep_change_stall(unsigned char ep_num, unsigned char dir, int value) dir 443 drivers/usb/gadget/udc/fsl_udc_core.c if (dir) dir 449 drivers/usb/gadget/udc/fsl_udc_core.c if (dir) { dir 462 drivers/usb/gadget/udc/fsl_udc_core.c static int dr_ep_get_stall(unsigned char ep_num, unsigned char dir) dir 467 drivers/usb/gadget/udc/fsl_udc_core.c if (dir) dir 483 drivers/usb/gadget/udc/fsl_udc_core.c unsigned char dir, unsigned char ep_type, dir 487 drivers/usb/gadget/udc/fsl_udc_core.c struct ep_queue_head *p_QH = &udc->ep_qh[2 * ep_num + dir]; dir 69 drivers/usb/gadget/udc/lpc32xx_udc.c #define EP_MASK_SEL(ep, dir) (1 << (((ep) * 2) + dir)) dir 216 drivers/usb/gadget/udc/mv_u3d.h u32 dir:1; /* Working at data stage of control endpoint dir 319 drivers/usb/gadget/udc/mv_u3d_core.c trb_hw->ctrl.dir = 1; dir 321 drivers/usb/gadget/udc/mv_u3d_core.c trb_hw->ctrl.dir = 0; dir 365 drivers/usb/gadget/udc/mv_u3d_core.c trb->trb_hw->ctrl.dir = 1; dir 367 drivers/usb/gadget/udc/mv_u3d_core.c trb->trb_hw->ctrl.dir = 0; dir 624 drivers/usb/gadget/udc/net2272.c unsigned len, unsigned dir) dir 627 drivers/usb/gadget/udc/net2272.c ep, buf, len, dir); dir 636 drivers/usb/gadget/udc/net2272.c if ((dir == 1) && (len > 0x1000000)) dir 661 drivers/usb/gadget/udc/net2272.c writel((dir << DIRECTION_OF_TRANSFER) | dir 742 drivers/usb/gadget/udc/pch_udc.c static inline void pch_udc_set_dma(struct pch_udc_dev *dev, int dir) dir 744 drivers/usb/gadget/udc/pch_udc.c if (dir == DMA_DIR_RX) dir 746 drivers/usb/gadget/udc/pch_udc.c else if (dir == DMA_DIR_TX) dir 758 drivers/usb/gadget/udc/pch_udc.c static inline void pch_udc_clear_dma(struct pch_udc_dev *dev, int dir) dir 760 drivers/usb/gadget/udc/pch_udc.c if (dir == DMA_DIR_RX) dir 762 drivers/usb/gadget/udc/pch_udc.c else if (dir == DMA_DIR_TX) dir 961 drivers/usb/gadget/udc/pch_udc.c static void pch_udc_ep_fifo_flush(struct pch_udc_ep *ep, int dir) dir 963 drivers/usb/gadget/udc/pch_udc.c if (dir) { /* IN ep */ dir 233 drivers/usb/gadget/udc/pxa27x_udc.h #define USB_EP_DEF(addr, bname, dir, type, maxpkt, ctype, cdir) \ dir 236 drivers/usb/gadget/udc/pxa27x_udc.h .desc = { .bEndpointAddress = addr | (dir ? USB_DIR_IN : 0), \ dir 241 drivers/usb/gadget/udc/pxa27x_udc.h #define USB_EP_BULK(addr, bname, dir, cdir) \ dir 242 drivers/usb/gadget/udc/pxa27x_udc.h USB_EP_DEF(addr, bname, dir, BULK, BULK_FIFO_SIZE, \ dir 244 drivers/usb/gadget/udc/pxa27x_udc.h #define USB_EP_ISO(addr, bname, dir, cdir) \ dir 245 drivers/usb/gadget/udc/pxa27x_udc.h USB_EP_DEF(addr, bname, dir, ISOC, ISO_FIFO_SIZE, \ dir 247 drivers/usb/gadget/udc/pxa27x_udc.h #define USB_EP_INT(addr, bname, dir, cdir) \ dir 248 drivers/usb/gadget/udc/pxa27x_udc.h USB_EP_DEF(addr, bname, dir, INT, INT_FIFO_SIZE, \ dir 263 drivers/usb/gadget/udc/pxa27x_udc.h #define PXA_EP_DEF(_idx, _addr, dir, _type, maxpkt, _config, iface, altset) \ dir 268 drivers/usb/gadget/udc/pxa27x_udc.h .dir_in = dir, .addr = _addr, \ dir 272 drivers/usb/gadget/udc/pxa27x_udc.h #define PXA_EP_BULK(_idx, addr, dir, config, iface, alt) \ dir 273 drivers/usb/gadget/udc/pxa27x_udc.h PXA_EP_DEF(_idx, addr, dir, USB_ENDPOINT_XFER_BULK, BULK_FIFO_SIZE, \ dir 275 drivers/usb/gadget/udc/pxa27x_udc.h #define PXA_EP_ISO(_idx, addr, dir, config, iface, alt) \ dir 276 drivers/usb/gadget/udc/pxa27x_udc.h PXA_EP_DEF(_idx, addr, dir, USB_ENDPOINT_XFER_ISOC, ISO_FIFO_SIZE, \ dir 278 drivers/usb/gadget/udc/pxa27x_udc.h #define PXA_EP_INT(_idx, addr, dir, config, iface, alt) \ dir 279 drivers/usb/gadget/udc/pxa27x_udc.h PXA_EP_DEF(_idx, addr, dir, USB_ENDPOINT_XFER_INT, INT_FIFO_SIZE, \ dir 649 drivers/usb/gadget/udc/r8a66597-udc.c dma->dir = 1; dir 651 drivers/usb/gadget/udc/r8a66597-udc.c dma->dir = 0; dir 663 drivers/usb/gadget/udc/r8a66597-udc.c return usb_gadget_map_request(&r8a66597->gadget, &req->req, dma->dir); dir 673 drivers/usb/gadget/udc/r8a66597-udc.c usb_gadget_unmap_request(&r8a66597->gadget, &req->req, ep->dma->dir); dir 1433 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->dma->dir) { dir 81 drivers/usb/gadget/udc/r8a66597-udc.h unsigned dir:1; /* 1 = IN(write), 0 = OUT(read) */ dir 976 drivers/usb/gadget/udc/s3c-hsudc.c char *dir; dir 979 drivers/usb/gadget/udc/s3c-hsudc.c dir = "out"; dir 981 drivers/usb/gadget/udc/s3c-hsudc.c dir = "in"; dir 987 drivers/usb/gadget/udc/s3c-hsudc.c snprintf(hsep->name, sizeof(hsep->name), "ep%d%s", epnum, dir); dir 215 drivers/usb/host/imx21-hcd.c int etd_num, struct urb *urb, u8 dir, u16 maxpacket) dir 220 drivers/usb/host/imx21-hcd.c ((u32) dir << DW0_DIRECT) | dir 254 drivers/usb/host/imx21-hcd.c static void activate_etd(struct imx21 *imx21, int etd_num, u8 dir) dir 263 drivers/usb/host/imx21-hcd.c if (dir != TD_DIR_IN) { dir 274 drivers/usb/host/imx21-hcd.c if (dir == TD_DIR_IN) { dir 313 drivers/usb/host/imx21-hcd.c if (dir != TD_DIR_IN) { dir 398 drivers/usb/host/imx21-hcd.c u8 dir = (etd_readl(imx21, etd_num, 2) >> DW2_DIRPID) & 0x03; dir 407 drivers/usb/host/imx21-hcd.c activate_etd(imx21, etd_num, dir); dir 562 drivers/usb/host/imx21-hcd.c u8 dir; dir 604 drivers/usb/host/imx21-hcd.c dir = usb_pipeout(td->urb->pipe) ? TD_DIR_OUT : TD_DIR_IN; dir 605 drivers/usb/host/imx21-hcd.c setup_etd_dword0(imx21, etd_num, td->urb, dir, etd->dmem_size); dir 614 drivers/usb/host/imx21-hcd.c activate_etd(imx21, etd_num, dir); dir 909 drivers/usb/host/imx21-hcd.c u8 dir; dir 929 drivers/usb/host/imx21-hcd.c dir = TD_DIR_SETUP; dir 939 drivers/usb/host/imx21-hcd.c dir = usb_pipeout(pipe) ? TD_DIR_IN : TD_DIR_OUT; dir 945 drivers/usb/host/imx21-hcd.c dir = usb_pipeout(pipe) ? TD_DIR_OUT : TD_DIR_IN; dir 946 drivers/usb/host/imx21-hcd.c bufround = (dir == TD_DIR_IN) ? 1 : 0; dir 980 drivers/usb/host/imx21-hcd.c setup_etd_dword0(imx21, etd_num, urb, dir, maxpacket); dir 985 drivers/usb/host/imx21-hcd.c ((u32) dir << DW2_DIRPID) | dir 1025 drivers/usb/host/imx21-hcd.c etd_num, count, dir != TD_DIR_IN ? "out" : "in"); dir 1026 drivers/usb/host/imx21-hcd.c activate_etd(imx21, etd_num, dir); dir 1037 drivers/usb/host/imx21-hcd.c int dir; dir 1044 drivers/usb/host/imx21-hcd.c dir = (etd_readl(imx21, etd_num, 0) >> DW0_DIRECT) & 0x3; dir 1053 drivers/usb/host/imx21-hcd.c if (dir == TD_DIR_IN) { dir 239 drivers/usb/host/isp116x-hcd.c u16 toggle = 0, dir = PTD_DIR_SETUP; dir 252 drivers/usb/host/isp116x-hcd.c dir = PTD_DIR_IN; dir 256 drivers/usb/host/isp116x-hcd.c dir = PTD_DIR_OUT; dir 265 drivers/usb/host/isp116x-hcd.c dir = (urb->transfer_buffer_length dir 279 drivers/usb/host/isp116x-hcd.c ptd->len = PTD_LEN(len) | PTD_DIR(dir); dir 283 drivers/usb/host/isp116x-hcd.c isp116x->atl_last_dir = dir; dir 266 drivers/usb/host/isp1362-hcd.c int dir; dir 279 drivers/usb/host/isp1362-hcd.c dir = PTD_DIR_IN; dir 292 drivers/usb/host/isp1362-hcd.c dir = PTD_DIR_OUT; dir 307 drivers/usb/host/isp1362-hcd.c dir = PTD_DIR_SETUP; dir 315 drivers/usb/host/isp1362-hcd.c dir = (urb->transfer_buffer_length && usb_pipein(urb->pipe)) ? dir 320 drivers/usb/host/isp1362-hcd.c toggle = dir = len = 0; dir 332 drivers/usb/host/isp1362-hcd.c ptd->len = PTD_LEN(len) | PTD_DIR(dir); dir 415 drivers/usb/host/xhci-debugfs.c struct dentry *dir; dir 417 drivers/usb/host/xhci-debugfs.c dir = debugfs_create_dir(name, parent); dir 419 drivers/usb/host/xhci-debugfs.c ring, dir, &xhci_ring_fops); dir 421 drivers/usb/host/xhci-debugfs.c return dir; dir 523 drivers/usb/host/xhci-debugfs.c struct dentry *dir; dir 532 drivers/usb/host/xhci-debugfs.c dir = debugfs_create_dir(port_name, parent); dir 534 drivers/usb/host/xhci-debugfs.c debugfs_create_file("portsc", 0644, dir, port, &port_fops); dir 557 drivers/usb/host/xhci-trace.h __field(bool, dir) dir 564 drivers/usb/host/xhci-trace.h __entry->dir = req->direction; dir 570 drivers/usb/host/xhci-trace.h __entry->dir ? "bulk-in" : "bulk-out", dir 78 drivers/usb/isp1760/isp1760-udc.c static void __isp1760_udc_select_ep(struct isp1760_ep *ep, int dir) dir 82 drivers/usb/isp1760/isp1760-udc.c (dir == USB_DIR_IN ? DC_EPDIR : 0)); dir 102 drivers/usb/isp1760/isp1760-udc.c static void isp1760_udc_ctrl_send_status(struct isp1760_ep *ep, int dir) dir 112 drivers/usb/isp1760/isp1760-udc.c (dir == USB_DIR_IN ? 0 : DC_EPDIR)); dir 766 drivers/usb/misc/sisusbvga/sisusb_con.c unsigned int t, unsigned int b, enum con_scroll dir, dir 781 drivers/usb/misc/sisusbvga/sisusb_con.c switch (dir) { dir 811 drivers/usb/misc/sisusbvga/sisusb_con.c enum con_scroll dir, unsigned int lines) dir 842 drivers/usb/misc/sisusbvga/sisusb_con.c return sisusbcon_scroll_area(c, sisusb, t, b, dir, lines); dir 855 drivers/usb/misc/sisusbvga/sisusb_con.c switch (dir) { dir 903 drivers/usb/misc/sisusbvga/sisusb_con.c else if (dir == SM_UP) dir 1331 drivers/usb/misc/sisusbvga/sisusb_con.c unsigned int bottom, enum con_scroll dir, dir 496 drivers/usb/mon/mon_bin.c unsigned char dir; dir 539 drivers/usb/mon/mon_bin.c dir = USB_DIR_IN; dir 545 drivers/usb/mon/mon_bin.c dir = 0; dir 569 drivers/usb/mon/mon_bin.c ep->epnum = dir | usb_endpoint_num(epd); dir 2577 drivers/usb/musb/musb_host.c enum dma_data_direction dir; dir 2584 drivers/usb/musb/musb_host.c dir = usb_urb_dir_in(urb) ? DMA_FROM_DEVICE : DMA_TO_DEVICE; dir 2589 drivers/usb/musb/musb_host.c if (dir == DMA_FROM_DEVICE) { dir 2605 drivers/usb/musb/musb_host.c enum dma_data_direction dir; dir 2615 drivers/usb/musb/musb_host.c dir = usb_urb_dir_in(urb) ? DMA_FROM_DEVICE : DMA_TO_DEVICE; dir 2631 drivers/usb/musb/musb_host.c if (dir == DMA_TO_DEVICE) dir 276 drivers/usb/musb/ux500_dma.c u8 dir; dir 298 drivers/usb/musb/ux500_dma.c for (dir = 0; dir < 2; dir++) { dir 327 drivers/usb/musb/ux500_dma.c dir, ch_num); dir 815 drivers/usb/renesas_usbhs/fifo.c enum dma_transfer_direction dir; dir 822 drivers/usb/renesas_usbhs/fifo.c dir = usbhs_pipe_is_dir_in(pipe) ? DMA_DEV_TO_MEM : DMA_MEM_TO_DEV; dir 825 drivers/usb/renesas_usbhs/fifo.c pkt->trans, dir, dir 193 drivers/usb/renesas_usbhs/mod_gadget.c enum dma_data_direction dir; dir 196 drivers/usb/renesas_usbhs/mod_gadget.c dir = usbhs_pipe_is_dir_host(pipe); dir 202 drivers/usb/renesas_usbhs/mod_gadget.c ret = usb_gadget_map_request_by_dev(dma_dev, req, dir); dir 208 drivers/usb/renesas_usbhs/mod_gadget.c usb_gadget_unmap_request_by_dev(dma_dev, req, dir); dir 407 drivers/usb/renesas_usbhs/pipe.c u16 dir = 0; dir 447 drivers/usb/renesas_usbhs/pipe.c dir |= DIR_OUT; dir 449 drivers/usb/renesas_usbhs/pipe.c if (!dir) dir 454 drivers/usb/renesas_usbhs/pipe.c !dir) dir 463 drivers/usb/renesas_usbhs/pipe.c dir | dir 1725 drivers/usb/serial/keyspan.c int dir, void *ctx, char *buf, int len, dir 1754 drivers/usb/serial/keyspan.c usb_sndintpipe(serial->dev, endpoint) | dir, dir 1760 drivers/usb/serial/keyspan.c usb_sndbulkpipe(serial->dev, endpoint) | dir, dir 720 drivers/usb/serial/sierra.c int dir, void *ctx, int len, dir 735 drivers/usb/serial/sierra.c usb_sndbulkpipe(serial->dev, endpoint) | dir, dir 739 drivers/usb/serial/sierra.c dir == USB_DIR_IN ? 'i' : 'o', urb, buf); dir 464 drivers/usb/serial/usb_wwan.c int dir, void *ctx, char *buf, int len, dir 476 drivers/usb/serial/usb_wwan.c usb_sndbulkpipe(serial->dev, endpoint) | dir, dir 479 drivers/usb/serial/usb_wwan.c if (intfdata->use_zlp && dir == USB_DIR_OUT) dir 450 drivers/usb/storage/isd200.c enum dma_data_direction dir, void* buff, unsigned bufflen) dir 457 drivers/usb/storage/isd200.c srb->sc_data_direction = dir; dir 123 drivers/usb/storage/protocol.c unsigned int *offset, enum xfer_buf_dir dir) dir 135 drivers/usb/storage/protocol.c sg_miter_start(&miter, sg, nents, dir == FROM_XFER_BUF ? dir 145 drivers/usb/storage/protocol.c if (dir == FROM_XFER_BUF) dir 38 drivers/usb/storage/protocol.h unsigned int *offset, enum xfer_buf_dir dir); dir 203 drivers/usb/storage/realtek_cr.c enum dma_data_direction dir, int *act_len) dir 215 drivers/usb/storage/realtek_cr.c bcb->Flags = (dir == DMA_FROM_DEVICE) ? US_BULK_FLAG_IN : 0; dir 234 drivers/usb/storage/realtek_cr.c unsigned int pipe = (dir == DMA_FROM_DEVICE) ? dir 293 drivers/usb/storage/realtek_cr.c enum dma_data_direction dir, int *act_len) dir 304 drivers/usb/storage/realtek_cr.c bcb->Flags = (dir == DMA_FROM_DEVICE) ? US_BULK_FLAG_IN : 0; dir 323 drivers/usb/storage/realtek_cr.c unsigned int pipe = (dir == DMA_FROM_DEVICE) ? dir 446 drivers/usb/storage/uas.c enum dma_data_direction dir) dir 452 drivers/usb/storage/uas.c unsigned int pipe = (dir == DMA_FROM_DEVICE) dir 281 drivers/usb/typec/class.c char dir[6]; dir 294 drivers/usb/typec/class.c snprintf(dir, sizeof(dir), "mode%d", adev->mode); dir 295 drivers/usb/typec/class.c sysfs_notify(&adev->dev.kobj, dir, "active"); dir 331 drivers/usb/usbip/stub_rx.c int dir = pdu->base.direction; dir 336 drivers/usb/usbip/stub_rx.c if (dir == USBIP_DIR_IN) dir 346 drivers/usb/usbip/stub_rx.c if (dir == USBIP_DIR_OUT) dir 353 drivers/usb/usbip/stub_rx.c if (dir == USBIP_DIR_OUT) dir 360 drivers/usb/usbip/stub_rx.c if (dir == USBIP_DIR_OUT) dir 376 drivers/usb/usbip/stub_rx.c if (dir == USBIP_DIR_OUT) dir 63 drivers/usb/usbip/usbip_common.c unsigned char dir = usb_pipein(p); dir 65 drivers/usb/usbip/usbip_common.c pr_debug("dev(%d) ep(%d) [%s] ", dev, ep, dir ? "IN" : "OUT"); dir 116 drivers/video/console/dummycon.c unsigned int bottom, enum con_scroll dir, dir 505 drivers/video/console/mdacon.c enum con_scroll dir, unsigned int lines) dir 515 drivers/video/console/mdacon.c switch (dir) { dir 579 drivers/video/console/newport_con.c enum con_scroll dir, unsigned int lines) dir 588 drivers/video/console/newport_con.c if (dir == SM_UP) { dir 603 drivers/video/console/newport_con.c if (dir == SM_UP) { dir 157 drivers/video/console/sticon.c unsigned int b, enum con_scroll dir, unsigned int count) dir 166 drivers/video/console/sticon.c switch (dir) { dir 1368 drivers/video/console/vgacon.c enum con_scroll dir, unsigned int lines) dir 1382 drivers/video/console/vgacon.c if (dir == SM_UP) { dir 1873 drivers/video/fbdev/core/fbcon.c enum con_scroll dir, unsigned int count) dir 1890 drivers/video/fbdev/core/fbcon.c switch (dir) { dir 10 drivers/video/fbdev/mbx/mbxdebugfs.c struct dentry *dir; dir 214 drivers/video/fbdev/mbx/mbxdebugfs.c struct dentry *dir; dir 216 drivers/video/fbdev/mbx/mbxdebugfs.c dir = debugfs_create_dir("mbxfb", NULL); dir 217 drivers/video/fbdev/mbx/mbxdebugfs.c mfbi->debugfs_dir = dir; dir 219 drivers/video/fbdev/mbx/mbxdebugfs.c debugfs_create_file("sysconf", 0444, dir, fbi, &sysconf_fops); dir 220 drivers/video/fbdev/mbx/mbxdebugfs.c debugfs_create_file("clock", 0444, dir, fbi, &clock_fops); dir 221 drivers/video/fbdev/mbx/mbxdebugfs.c debugfs_create_file("display", 0444, dir, fbi, &display_fops); dir 222 drivers/video/fbdev/mbx/mbxdebugfs.c debugfs_create_file("gsctl", 0444, dir, fbi, &gsctl_fops); dir 223 drivers/video/fbdev/mbx/mbxdebugfs.c debugfs_create_file("sdram", 0444, dir, fbi, &sdram_fops); dir 224 drivers/video/fbdev/mbx/mbxdebugfs.c debugfs_create_file("misc", 0444, dir, fbi, &misc_fops); dir 872 drivers/video/fbdev/sstfb.c int i, mir, dir; dir 885 drivers/video/fbdev/sstfb.c dir = sst_dac_read(DACREG_RMR); dir 886 drivers/video/fbdev/sstfb.c f_ddprintk("mir: %#x, dir: %#x\n", mir, dir); dir 887 drivers/video/fbdev/sstfb.c if (mir == DACREG_MIR_ATT && dir == DACREG_DIR_ATT) { dir 897 drivers/video/fbdev/sstfb.c int i, mir, dir; dir 910 drivers/video/fbdev/sstfb.c dir = sst_dac_read(DACREG_RMR); dir 911 drivers/video/fbdev/sstfb.c f_ddprintk("mir: %#x, dir: %#x\n", mir, dir); dir 912 drivers/video/fbdev/sstfb.c if ((mir == DACREG_MIR_TI ) && (dir == DACREG_DIR_TI)) { dir 137 drivers/watchdog/bcm_kona_wdt.c struct dentry *dir; dir 145 drivers/watchdog/bcm_kona_wdt.c dir = debugfs_create_dir(BCM_KONA_WDT_NAME, NULL); dir 147 drivers/watchdog/bcm_kona_wdt.c debugfs_create_file("info", S_IFREG | S_IRUGO, dir, wdt, dir 149 drivers/watchdog/bcm_kona_wdt.c wdt->debugfs = dir; dir 542 drivers/watchdog/mei_wdt.c struct dentry *dir; dir 544 drivers/watchdog/mei_wdt.c dir = debugfs_create_dir(KBUILD_MODNAME, NULL); dir 545 drivers/watchdog/mei_wdt.c wdt->dbgfs_dir = dir; dir 547 drivers/watchdog/mei_wdt.c debugfs_create_file("state", S_IRUSR, dir, wdt, &dbgfs_fops_state); dir 549 drivers/watchdog/mei_wdt.c debugfs_create_file("activation", S_IRUSR, dir, wdt, dir 37 drivers/xen/cpu_hotplug.c char dir[16], state[16]; dir 39 drivers/xen/cpu_hotplug.c sprintf(dir, "cpu/%u", cpu); dir 40 drivers/xen/cpu_hotplug.c err = xenbus_scanf(XBT_NIL, dir, "availability", "%15s", state); dir 71 drivers/xen/gntdev-dmabuf.c enum dma_data_direction dir; dir 235 drivers/xen/gntdev-dmabuf.c gntdev_dmabuf_attach->dir = DMA_NONE; dir 249 drivers/xen/gntdev-dmabuf.c if (gntdev_dmabuf_attach->dir != DMA_NONE) dir 252 drivers/xen/gntdev-dmabuf.c gntdev_dmabuf_attach->dir, dir 265 drivers/xen/gntdev-dmabuf.c enum dma_data_direction dir) dir 274 drivers/xen/gntdev-dmabuf.c if (dir == DMA_NONE || !gntdev_dmabuf_attach) dir 278 drivers/xen/gntdev-dmabuf.c if (gntdev_dmabuf_attach->dir == dir) dir 285 drivers/xen/gntdev-dmabuf.c if (gntdev_dmabuf_attach->dir != DMA_NONE) dir 291 drivers/xen/gntdev-dmabuf.c if (!dma_map_sg_attrs(attach->dev, sgt->sgl, sgt->nents, dir, dir 298 drivers/xen/gntdev-dmabuf.c gntdev_dmabuf_attach->dir = dir; dir 308 drivers/xen/gntdev-dmabuf.c enum dma_data_direction dir) dir 366 drivers/xen/swiotlb-xen.c enum dma_data_direction dir, dir 372 drivers/xen/swiotlb-xen.c BUG_ON(dir == DMA_NONE); dir 390 drivers/xen/swiotlb-xen.c size, size, dir, attrs); dir 401 drivers/xen/swiotlb-xen.c swiotlb_tbl_unmap_single(dev, map, size, size, dir, dir 408 drivers/xen/swiotlb-xen.c xen_dma_sync_for_device(dev, dev_addr, phys, size, dir); dir 421 drivers/xen/swiotlb-xen.c size_t size, enum dma_data_direction dir, unsigned long attrs) dir 425 drivers/xen/swiotlb-xen.c BUG_ON(dir == DMA_NONE); dir 428 drivers/xen/swiotlb-xen.c xen_dma_sync_for_cpu(hwdev, dev_addr, paddr, size, dir); dir 432 drivers/xen/swiotlb-xen.c swiotlb_tbl_unmap_single(hwdev, paddr, size, size, dir, attrs); dir 437 drivers/xen/swiotlb-xen.c size_t size, enum dma_data_direction dir) dir 442 drivers/xen/swiotlb-xen.c xen_dma_sync_for_cpu(dev, dma_addr, paddr, size, dir); dir 445 drivers/xen/swiotlb-xen.c swiotlb_tbl_sync_single(dev, paddr, size, dir, SYNC_FOR_CPU); dir 450 drivers/xen/swiotlb-xen.c size_t size, enum dma_data_direction dir) dir 455 drivers/xen/swiotlb-xen.c swiotlb_tbl_sync_single(dev, paddr, size, dir, SYNC_FOR_DEVICE); dir 458 drivers/xen/swiotlb-xen.c xen_dma_sync_for_device(dev, dma_addr, paddr, size, dir); dir 467 drivers/xen/swiotlb-xen.c enum dma_data_direction dir, unsigned long attrs) dir 472 drivers/xen/swiotlb-xen.c BUG_ON(dir == DMA_NONE); dir 476 drivers/xen/swiotlb-xen.c dir, attrs); dir 482 drivers/xen/swiotlb-xen.c enum dma_data_direction dir, unsigned long attrs) dir 487 drivers/xen/swiotlb-xen.c BUG_ON(dir == DMA_NONE); dir 491 drivers/xen/swiotlb-xen.c sg->offset, sg->length, dir, attrs); dir 499 drivers/xen/swiotlb-xen.c xen_swiotlb_unmap_sg(dev, sgl, i, dir, attrs | DMA_ATTR_SKIP_CPU_SYNC); dir 506 drivers/xen/swiotlb-xen.c int nelems, enum dma_data_direction dir) dir 513 drivers/xen/swiotlb-xen.c sg->length, dir); dir 519 drivers/xen/swiotlb-xen.c int nelems, enum dma_data_direction dir) dir 526 drivers/xen/swiotlb-xen.c sg->length, dir); dir 1136 drivers/xen/xen-scsiback.c char **dir; dir 1139 drivers/xen/xen-scsiback.c dir = xenbus_directory(XBT_NIL, info->dev->nodename, "vscsi-devs", dir 1141 drivers/xen/xen-scsiback.c if (IS_ERR(dir)) dir 1145 drivers/xen/xen-scsiback.c scsiback_do_1lun_hotplug(info, op, dir[i]); dir 1147 drivers/xen/xen-scsiback.c kfree(dir); dir 46 drivers/xen/xenbus/xenbus.h const char *dir); dir 494 drivers/xen/xenbus/xenbus_probe.c char **dir; dir 498 drivers/xen/xenbus/xenbus_probe.c dir = xenbus_directory(XBT_NIL, bus->root, type, &dir_n); dir 499 drivers/xen/xenbus/xenbus_probe.c if (IS_ERR(dir)) dir 500 drivers/xen/xenbus/xenbus_probe.c return PTR_ERR(dir); dir 503 drivers/xen/xenbus/xenbus_probe.c err = bus->probe(bus, type, dir[i]); dir 508 drivers/xen/xenbus/xenbus_probe.c kfree(dir); dir 515 drivers/xen/xenbus/xenbus_probe.c char **dir; dir 518 drivers/xen/xenbus/xenbus_probe.c dir = xenbus_directory(XBT_NIL, bus->root, "", &dir_n); dir 519 drivers/xen/xenbus/xenbus_probe.c if (IS_ERR(dir)) dir 520 drivers/xen/xenbus/xenbus_probe.c return PTR_ERR(dir); dir 523 drivers/xen/xenbus/xenbus_probe.c err = xenbus_probe_device_type(bus, dir[i]); dir 528 drivers/xen/xenbus/xenbus_probe.c kfree(dir); dir 134 drivers/xen/xenbus/xenbus_probe_backend.c const char *dir, dir 141 drivers/xen/xenbus/xenbus_probe_backend.c nodename = kasprintf(GFP_KERNEL, "%s/%s", dir, name); dir 158 drivers/xen/xenbus/xenbus_probe_backend.c char **dir; dir 167 drivers/xen/xenbus/xenbus_probe_backend.c dir = xenbus_directory(XBT_NIL, nodename, "", &dir_n); dir 168 drivers/xen/xenbus/xenbus_probe_backend.c if (IS_ERR(dir)) { dir 170 drivers/xen/xenbus/xenbus_probe_backend.c return PTR_ERR(dir); dir 174 drivers/xen/xenbus/xenbus_probe_backend.c err = xenbus_probe_backend_unit(bus, nodename, type, dir[i]); dir 178 drivers/xen/xenbus/xenbus_probe_backend.c kfree(dir); dir 388 drivers/xen/xenbus/xenbus_xs.c static char *join(const char *dir, const char *name) dir 393 drivers/xen/xenbus/xenbus_xs.c buffer = kasprintf(GFP_NOIO | __GFP_HIGH, "%s", dir); dir 395 drivers/xen/xenbus/xenbus_xs.c buffer = kasprintf(GFP_NOIO | __GFP_HIGH, "%s/%s", dir, name); dir 423 drivers/xen/xenbus/xenbus_xs.c const char *dir, const char *node, unsigned int *num) dir 428 drivers/xen/xenbus/xenbus_xs.c path = join(dir, node); dir 443 drivers/xen/xenbus/xenbus_xs.c const char *dir, const char *node) dir 448 drivers/xen/xenbus/xenbus_xs.c d = xenbus_directory(t, dir, node, &dir_n); dir 461 drivers/xen/xenbus/xenbus_xs.c const char *dir, const char *node, unsigned int *len) dir 466 drivers/xen/xenbus/xenbus_xs.c path = join(dir, node); dir 480 drivers/xen/xenbus/xenbus_xs.c const char *dir, const char *node, const char *string) dir 486 drivers/xen/xenbus/xenbus_xs.c path = join(dir, node); dir 503 drivers/xen/xenbus/xenbus_xs.c const char *dir, const char *node) dir 508 drivers/xen/xenbus/xenbus_xs.c path = join(dir, node); dir 519 drivers/xen/xenbus/xenbus_xs.c int xenbus_rm(struct xenbus_transaction t, const char *dir, const char *node) dir 524 drivers/xen/xenbus/xenbus_xs.c path = join(dir, node); dir 569 drivers/xen/xenbus/xenbus_xs.c const char *dir, const char *node, const char *fmt, ...) dir 575 drivers/xen/xenbus/xenbus_xs.c val = xenbus_read(t, dir, node, NULL); dir 591 drivers/xen/xenbus/xenbus_xs.c unsigned int xenbus_read_unsigned(const char *dir, const char *node, dir 597 drivers/xen/xenbus/xenbus_xs.c ret = xenbus_scanf(XBT_NIL, dir, node, "%u", &val); dir 607 drivers/xen/xenbus/xenbus_xs.c const char *dir, const char *node, const char *fmt, ...) dir 620 drivers/xen/xenbus/xenbus_xs.c ret = xenbus_write(t, dir, node, buf); dir 629 drivers/xen/xenbus/xenbus_xs.c int xenbus_gather(struct xenbus_transaction t, const char *dir, ...) dir 635 drivers/xen/xenbus/xenbus_xs.c va_start(ap, dir); dir 641 drivers/xen/xenbus/xenbus_xs.c p = xenbus_read(t, dir, name, NULL); dir 186 fs/9p/acl.c int v9fs_acl_mode(struct inode *dir, umode_t *modep, dir 194 fs/9p/acl.c acl = v9fs_get_cached_acl(dir, ACL_TYPE_DEFAULT); dir 23 fs/9p/acl.h extern int v9fs_acl_mode(struct inode *dir, umode_t *modep, dir 47 fs/9p/acl.h static inline int v9fs_acl_mode(struct inode *dir, umode_t *modep, dir 134 fs/9p/v9fs.h extern struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry, dir 586 fs/9p/vfs_inode.c static int v9fs_remove(struct inode *dir, struct dentry *dentry, int flags) dir 594 fs/9p/vfs_inode.c dir, dentry, flags); dir 596 fs/9p/vfs_inode.c v9ses = v9fs_inode2v9ses(dir); dir 621 fs/9p/vfs_inode.c v9fs_dec_count(dir); dir 626 fs/9p/vfs_inode.c v9fs_invalidate_inode_attr(dir); dir 642 fs/9p/vfs_inode.c v9fs_create(struct v9fs_session_info *v9ses, struct inode *dir, dir 690 fs/9p/vfs_inode.c inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); dir 724 fs/9p/vfs_inode.c v9fs_vfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 727 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses = v9fs_inode2v9ses(dir); dir 732 fs/9p/vfs_inode.c fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_ORDWR); dir 736 fs/9p/vfs_inode.c v9fs_invalidate_inode_attr(dir); dir 750 fs/9p/vfs_inode.c static int v9fs_vfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 759 fs/9p/vfs_inode.c v9ses = v9fs_inode2v9ses(dir); dir 761 fs/9p/vfs_inode.c fid = v9fs_create(v9ses, dir, dentry, NULL, perm, P9_OREAD); dir 766 fs/9p/vfs_inode.c inc_nlink(dir); dir 767 fs/9p/vfs_inode.c v9fs_invalidate_inode_attr(dir); dir 784 fs/9p/vfs_inode.c struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry, dir 794 fs/9p/vfs_inode.c dir, dentry, dentry, flags); dir 799 fs/9p/vfs_inode.c v9ses = v9fs_inode2v9ses(dir); dir 817 fs/9p/vfs_inode.c inode = v9fs_get_inode_from_fid(v9ses, fid, dir->i_sb); dir 819 fs/9p/vfs_inode.c inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); dir 840 fs/9p/vfs_inode.c v9fs_vfs_atomic_open(struct inode *dir, struct dentry *dentry, dir 851 fs/9p/vfs_inode.c res = v9fs_vfs_lookup(dir, dentry, 0); dir 865 fs/9p/vfs_inode.c v9ses = v9fs_inode2v9ses(dir); dir 867 fs/9p/vfs_inode.c fid = v9fs_create(v9ses, dir, dentry, NULL, perm, dir 876 fs/9p/vfs_inode.c v9fs_invalidate_inode_attr(dir); dir 1285 fs/9p/vfs_inode.c static int v9fs_vfs_mkspecial(struct inode *dir, struct dentry *dentry, dir 1291 fs/9p/vfs_inode.c v9ses = v9fs_inode2v9ses(dir); dir 1297 fs/9p/vfs_inode.c fid = v9fs_create(v9ses, dir, dentry, (char *) extension, perm, dir 1302 fs/9p/vfs_inode.c v9fs_invalidate_inode_attr(dir); dir 1318 fs/9p/vfs_inode.c v9fs_vfs_symlink(struct inode *dir, struct dentry *dentry, const char *symname) dir 1321 fs/9p/vfs_inode.c dir->i_ino, dentry, symname); dir 1323 fs/9p/vfs_inode.c return v9fs_vfs_mkspecial(dir, dentry, P9_DMSYMLINK, symname); dir 1337 fs/9p/vfs_inode.c v9fs_vfs_link(struct dentry *old_dentry, struct inode *dir, dir 1345 fs/9p/vfs_inode.c dir->i_ino, dentry, old_dentry); dir 1352 fs/9p/vfs_inode.c retval = v9fs_vfs_mkspecial(dir, dentry, P9_DMLINK, name); dir 1355 fs/9p/vfs_inode.c v9fs_invalidate_inode_attr(dir); dir 1371 fs/9p/vfs_inode.c v9fs_vfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) dir 1373 fs/9p/vfs_inode.c struct v9fs_session_info *v9ses = v9fs_inode2v9ses(dir); dir 1379 fs/9p/vfs_inode.c dir->i_ino, dentry, mode, dir 1391 fs/9p/vfs_inode.c retval = v9fs_vfs_mkspecial(dir, dentry, perm, name); dir 36 fs/9p/vfs_inode_dotl.c v9fs_vfs_mknod_dotl(struct inode *dir, struct dentry *dentry, umode_t omode, dir 221 fs/9p/vfs_inode_dotl.c v9fs_vfs_create_dotl(struct inode *dir, struct dentry *dentry, umode_t omode, dir 224 fs/9p/vfs_inode_dotl.c return v9fs_vfs_mknod_dotl(dir, dentry, omode, 0); dir 228 fs/9p/vfs_inode_dotl.c v9fs_vfs_atomic_open_dotl(struct inode *dir, struct dentry *dentry, dir 245 fs/9p/vfs_inode_dotl.c res = v9fs_vfs_lookup(dir, dentry, 0); dir 257 fs/9p/vfs_inode_dotl.c v9ses = v9fs_inode2v9ses(dir); dir 278 fs/9p/vfs_inode_dotl.c gid = v9fs_get_fsgid_for_create(dir); dir 282 fs/9p/vfs_inode_dotl.c err = v9fs_acl_mode(dir, &mode, &dacl, &pacl); dir 295 fs/9p/vfs_inode_dotl.c v9fs_invalidate_inode_attr(dir); dir 305 fs/9p/vfs_inode_dotl.c inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); dir 368 fs/9p/vfs_inode_dotl.c static int v9fs_vfs_mkdir_dotl(struct inode *dir, dir 383 fs/9p/vfs_inode_dotl.c v9ses = v9fs_inode2v9ses(dir); dir 386 fs/9p/vfs_inode_dotl.c if (dir->i_mode & S_ISGID) dir 397 fs/9p/vfs_inode_dotl.c gid = v9fs_get_fsgid_for_create(dir); dir 400 fs/9p/vfs_inode_dotl.c err = v9fs_acl_mode(dir, &mode, &dacl, &pacl); dir 422 fs/9p/vfs_inode_dotl.c inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); dir 440 fs/9p/vfs_inode_dotl.c inode = v9fs_get_inode(dir->i_sb, mode, 0); dir 448 fs/9p/vfs_inode_dotl.c inc_nlink(dir); dir 449 fs/9p/vfs_inode_dotl.c v9fs_invalidate_inode_attr(dir); dir 668 fs/9p/vfs_inode_dotl.c v9fs_vfs_symlink_dotl(struct inode *dir, struct dentry *dentry, dir 681 fs/9p/vfs_inode_dotl.c p9_debug(P9_DEBUG_VFS, "%lu,%s,%s\n", dir->i_ino, name, symname); dir 682 fs/9p/vfs_inode_dotl.c v9ses = v9fs_inode2v9ses(dir); dir 691 fs/9p/vfs_inode_dotl.c gid = v9fs_get_fsgid_for_create(dir); dir 701 fs/9p/vfs_inode_dotl.c v9fs_invalidate_inode_attr(dir); dir 714 fs/9p/vfs_inode_dotl.c inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); dir 727 fs/9p/vfs_inode_dotl.c inode = v9fs_get_inode(dir->i_sb, S_IFLNK, 0); dir 751 fs/9p/vfs_inode_dotl.c v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir, dir 759 fs/9p/vfs_inode_dotl.c dir->i_ino, old_dentry, dentry); dir 761 fs/9p/vfs_inode_dotl.c v9ses = v9fs_inode2v9ses(dir); dir 777 fs/9p/vfs_inode_dotl.c v9fs_invalidate_inode_attr(dir); dir 802 fs/9p/vfs_inode_dotl.c v9fs_vfs_mknod_dotl(struct inode *dir, struct dentry *dentry, umode_t omode, dir 816 fs/9p/vfs_inode_dotl.c dir->i_ino, dentry, omode, dir 819 fs/9p/vfs_inode_dotl.c v9ses = v9fs_inode2v9ses(dir); dir 828 fs/9p/vfs_inode_dotl.c gid = v9fs_get_fsgid_for_create(dir); dir 831 fs/9p/vfs_inode_dotl.c err = v9fs_acl_mode(dir, &mode, &dacl, &pacl); dir 843 fs/9p/vfs_inode_dotl.c v9fs_invalidate_inode_attr(dir); dir 855 fs/9p/vfs_inode_dotl.c inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); dir 872 fs/9p/vfs_inode_dotl.c inode = v9fs_get_inode(dir->i_sb, mode, rdev); dir 124 fs/adfs/adfs.h unsigned int size, struct adfs_dir *dir); dir 125 fs/adfs/adfs.h int (*setpos)(struct adfs_dir *dir, unsigned int fpos); dir 126 fs/adfs/adfs.h int (*getnext)(struct adfs_dir *dir, struct object_info *obj); dir 127 fs/adfs/adfs.h int (*update)(struct adfs_dir *dir, struct object_info *obj); dir 128 fs/adfs/adfs.h int (*create)(struct adfs_dir *dir, struct object_info *obj); dir 129 fs/adfs/adfs.h int (*remove)(struct adfs_dir *dir, struct object_info *obj); dir 130 fs/adfs/adfs.h int (*sync)(struct adfs_dir *dir); dir 131 fs/adfs/adfs.h void (*free)(struct adfs_dir *dir); dir 170 fs/adfs/adfs.h void adfs_object_fixup(struct adfs_dir *dir, struct object_info *obj); dir 16 fs/adfs/dir.c void adfs_object_fixup(struct adfs_dir *dir, struct object_info *obj) dir 42 fs/adfs/dir.c if (!(obj->attr & ADFS_NDA_DIRECTORY) && ADFS_SB(dir->sb)->s_ftsuffix) { dir 61 fs/adfs/dir.c struct adfs_dir dir; dir 67 fs/adfs/dir.c ret = ops->read(sb, inode->i_ino, inode->i_size, &dir); dir 77 fs/adfs/dir.c if (!dir_emit(ctx, "..", 2, dir.parent_id, DT_DIR)) dir 84 fs/adfs/dir.c ret = ops->setpos(&dir, ctx->pos - 2); dir 87 fs/adfs/dir.c while (ops->getnext(&dir, &obj) == 0) { dir 98 fs/adfs/dir.c ops->free(&dir); dir 108 fs/adfs/dir.c struct adfs_dir dir; dir 118 fs/adfs/dir.c ret = ops->read(sb, obj->parent_id, 0, &dir); dir 123 fs/adfs/dir.c ret = ops->update(&dir, obj); dir 127 fs/adfs/dir.c int err = ops->sync(&dir); dir 132 fs/adfs/dir.c ops->free(&dir); dir 166 fs/adfs/dir.c struct adfs_dir dir; dir 170 fs/adfs/dir.c ret = ops->read(sb, inode->i_ino, inode->i_size, &dir); dir 174 fs/adfs/dir.c if (ADFS_I(inode)->parent_id != dir.parent_id) { dir 177 fs/adfs/dir.c ADFS_I(inode)->parent_id, dir.parent_id); dir 186 fs/adfs/dir.c ret = ops->setpos(&dir, 0); dir 193 fs/adfs/dir.c while (ops->getnext(&dir, obj) == 0) { dir 204 fs/adfs/dir.c ops->free(&dir); dir 252 fs/adfs/dir.c adfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) dir 258 fs/adfs/dir.c error = adfs_dir_lookup_byname(dir, &dentry->d_name, &obj); dir 264 fs/adfs/dir.c inode = adfs_iget(dir->i_sb, &obj); dir 12 fs/adfs/dir_f.c static void adfs_f_free(struct adfs_dir *dir); dir 72 fs/adfs/dir_f.c adfs_dir_checkbyte(const struct adfs_dir *dir) dir 74 fs/adfs/dir_f.c struct buffer_head * const *bh = dir->bh; dir 75 fs/adfs/dir_f.c const int blocksize_bits = dir->sb->s_blocksize_bits; dir 128 fs/adfs/dir_f.c unsigned int size, struct adfs_dir *dir) dir 142 fs/adfs/dir_f.c dir->nr_buffers = 0; dir 143 fs/adfs/dir_f.c dir->sb = sb; dir 155 fs/adfs/dir_f.c dir->bh[blk] = sb_bread(sb, phys); dir 156 fs/adfs/dir_f.c if (!dir->bh[blk]) dir 160 fs/adfs/dir_f.c memcpy(&dir->dirhead, bufoff(dir->bh, 0), sizeof(dir->dirhead)); dir 161 fs/adfs/dir_f.c memcpy(&dir->dirtail, bufoff(dir->bh, 2007), sizeof(dir->dirtail)); dir 163 fs/adfs/dir_f.c if (dir->dirhead.startmasseq != dir->dirtail.new.endmasseq || dir 164 fs/adfs/dir_f.c memcmp(&dir->dirhead.startname, &dir->dirtail.new.endname, 4)) dir 167 fs/adfs/dir_f.c if (memcmp(&dir->dirhead.startname, "Nick", 4) && dir 168 fs/adfs/dir_f.c memcmp(&dir->dirhead.startname, "Hugo", 4)) dir 171 fs/adfs/dir_f.c if (adfs_dir_checkbyte(dir) != dir->dirtail.new.dircheckbyte) dir 174 fs/adfs/dir_f.c dir->nr_buffers = blk; dir 182 fs/adfs/dir_f.c brelse(dir->bh[blk]); dir 184 fs/adfs/dir_f.c dir->sb = NULL; dir 193 fs/adfs/dir_f.c adfs_dir2obj(struct adfs_dir *dir, struct object_info *obj, dir 212 fs/adfs/dir_f.c adfs_object_fixup(dir, obj); dir 233 fs/adfs/dir_f.c __adfs_dir_get(struct adfs_dir *dir, int pos, struct object_info *obj) dir 235 fs/adfs/dir_f.c struct super_block *sb = dir->sb; dir 241 fs/adfs/dir_f.c if (buffer > dir->nr_buffers) dir 249 fs/adfs/dir_f.c memcpy(&de, dir->bh[buffer]->b_data + offset, thissize); dir 251 fs/adfs/dir_f.c memcpy(((char *)&de) + thissize, dir->bh[buffer + 1]->b_data, dir 257 fs/adfs/dir_f.c adfs_dir2obj(dir, obj, &de); dir 263 fs/adfs/dir_f.c __adfs_dir_put(struct adfs_dir *dir, int pos, struct object_info *obj) dir 265 fs/adfs/dir_f.c struct super_block *sb = dir->sb; dir 271 fs/adfs/dir_f.c if (buffer > dir->nr_buffers) dir 282 fs/adfs/dir_f.c memcpy(&de, dir->bh[buffer]->b_data + offset, thissize); dir 284 fs/adfs/dir_f.c memcpy(((char *)&de) + thissize, dir->bh[buffer + 1]->b_data, dir 295 fs/adfs/dir_f.c memcpy(dir->bh[buffer]->b_data + offset, &de, thissize); dir 297 fs/adfs/dir_f.c memcpy(dir->bh[buffer + 1]->b_data, ((char *)&de) + thissize, dir 307 fs/adfs/dir_f.c static int adfs_dir_find_entry(struct adfs_dir *dir, u32 indaddr) dir 316 fs/adfs/dir_f.c if (!__adfs_dir_get(dir, pos, &obj)) dir 329 fs/adfs/dir_f.c struct adfs_dir *dir) dir 336 fs/adfs/dir_f.c ret = adfs_dir_read(sb, indaddr, size, dir); dir 340 fs/adfs/dir_f.c dir->parent_id = adfs_readval(dir->dirtail.new.dirparent, 3); dir 346 fs/adfs/dir_f.c adfs_f_setpos(struct adfs_dir *dir, unsigned int fpos) dir 351 fs/adfs/dir_f.c dir->pos = 5 + fpos * 26; dir 356 fs/adfs/dir_f.c adfs_f_getnext(struct adfs_dir *dir, struct object_info *obj) dir 360 fs/adfs/dir_f.c ret = __adfs_dir_get(dir, dir->pos, obj); dir 362 fs/adfs/dir_f.c dir->pos += 26; dir 368 fs/adfs/dir_f.c adfs_f_update(struct adfs_dir *dir, struct object_info *obj) dir 370 fs/adfs/dir_f.c struct super_block *sb = dir->sb; dir 373 fs/adfs/dir_f.c ret = adfs_dir_find_entry(dir, obj->indaddr); dir 375 fs/adfs/dir_f.c adfs_error(dir->sb, "unable to locate entry to update"); dir 379 fs/adfs/dir_f.c __adfs_dir_put(dir, ret, obj); dir 384 fs/adfs/dir_f.c dir->bh[0]->b_data[0] += 1; dir 385 fs/adfs/dir_f.c dir->bh[dir->nr_buffers - 1]->b_data[sb->s_blocksize - 6] += 1; dir 387 fs/adfs/dir_f.c ret = adfs_dir_checkbyte(dir); dir 391 fs/adfs/dir_f.c dir->bh[dir->nr_buffers - 1]->b_data[sb->s_blocksize - 1] = ret; dir 397 fs/adfs/dir_f.c memcpy(&dir->dirhead, bufoff(dir->bh, 0), sizeof(dir->dirhead)); dir 398 fs/adfs/dir_f.c memcpy(&dir->dirtail, bufoff(dir->bh, 2007), sizeof(dir->dirtail)); dir 400 fs/adfs/dir_f.c if (dir->dirhead.startmasseq != dir->dirtail.new.endmasseq || dir 401 fs/adfs/dir_f.c memcmp(&dir->dirhead.startname, &dir->dirtail.new.endname, 4)) dir 404 fs/adfs/dir_f.c if (memcmp(&dir->dirhead.startname, "Nick", 4) && dir 405 fs/adfs/dir_f.c memcmp(&dir->dirhead.startname, "Hugo", 4)) dir 408 fs/adfs/dir_f.c if (adfs_dir_checkbyte(dir) != dir->dirtail.new.dircheckbyte) dir 412 fs/adfs/dir_f.c for (i = dir->nr_buffers - 1; i >= 0; i--) dir 413 fs/adfs/dir_f.c mark_buffer_dirty(dir->bh[i]); dir 420 fs/adfs/dir_f.c adfs_error(dir->sb, "whoops! I broke a directory!"); dir 426 fs/adfs/dir_f.c adfs_f_sync(struct adfs_dir *dir) dir 431 fs/adfs/dir_f.c for (i = dir->nr_buffers - 1; i >= 0; i--) { dir 432 fs/adfs/dir_f.c struct buffer_head *bh = dir->bh[i]; dir 442 fs/adfs/dir_f.c adfs_f_free(struct adfs_dir *dir) dir 446 fs/adfs/dir_f.c for (i = dir->nr_buffers - 1; i >= 0; i--) { dir 447 fs/adfs/dir_f.c brelse(dir->bh[i]); dir 448 fs/adfs/dir_f.c dir->bh[i] = NULL; dir 451 fs/adfs/dir_f.c dir->nr_buffers = 0; dir 452 fs/adfs/dir_f.c dir->sb = NULL; dir 12 fs/adfs/dir_fplus.c adfs_fplus_read(struct super_block *sb, unsigned int id, unsigned int sz, struct adfs_dir *dir) dir 20 fs/adfs/dir_fplus.c dir->nr_buffers = 0; dir 23 fs/adfs/dir_fplus.c dir->bh_fplus = &dir->bh[0]; dir 31 fs/adfs/dir_fplus.c dir->bh_fplus[0] = sb_bread(sb, block); dir 32 fs/adfs/dir_fplus.c if (!dir->bh_fplus[0]) dir 34 fs/adfs/dir_fplus.c dir->nr_buffers += 1; dir 36 fs/adfs/dir_fplus.c h = (struct adfs_bigdirheader *)dir->bh_fplus[0]->b_data; dir 52 fs/adfs/dir_fplus.c if (size > ARRAY_SIZE(dir->bh)) { dir 64 fs/adfs/dir_fplus.c dir->bh_fplus = bh_fplus; dir 66 fs/adfs/dir_fplus.c dir->bh_fplus[0] = dir->bh[0]; dir 76 fs/adfs/dir_fplus.c dir->bh_fplus[blk] = sb_bread(sb, block); dir 77 fs/adfs/dir_fplus.c if (!dir->bh_fplus[blk]) { dir 83 fs/adfs/dir_fplus.c dir->nr_buffers += 1; dir 87 fs/adfs/dir_fplus.c (dir->bh_fplus[size - 1]->b_data + (sb->s_blocksize - 8)); dir 96 fs/adfs/dir_fplus.c dir->parent_id = le32_to_cpu(h->bigdirparent); dir 97 fs/adfs/dir_fplus.c dir->sb = sb; dir 101 fs/adfs/dir_fplus.c if (dir->bh_fplus) { dir 102 fs/adfs/dir_fplus.c for (i = 0; i < dir->nr_buffers; i++) dir 103 fs/adfs/dir_fplus.c brelse(dir->bh_fplus[i]); dir 105 fs/adfs/dir_fplus.c if (&dir->bh[0] != dir->bh_fplus) dir 106 fs/adfs/dir_fplus.c kfree(dir->bh_fplus); dir 108 fs/adfs/dir_fplus.c dir->bh_fplus = NULL; dir 111 fs/adfs/dir_fplus.c dir->nr_buffers = 0; dir 112 fs/adfs/dir_fplus.c dir->sb = NULL; dir 117 fs/adfs/dir_fplus.c adfs_fplus_setpos(struct adfs_dir *dir, unsigned int fpos) dir 120 fs/adfs/dir_fplus.c (struct adfs_bigdirheader *) dir->bh_fplus[0]->b_data; dir 124 fs/adfs/dir_fplus.c dir->pos = fpos; dir 132 fs/adfs/dir_fplus.c dir_memcpy(struct adfs_dir *dir, unsigned int offset, void *to, int len) dir 134 fs/adfs/dir_fplus.c struct super_block *sb = dir->sb; dir 143 fs/adfs/dir_fplus.c memcpy(to, dir->bh_fplus[buffer]->b_data + offset, len); dir 150 fs/adfs/dir_fplus.c dir->bh_fplus[buffer]->b_data + offset, dir 154 fs/adfs/dir_fplus.c dir->bh_fplus[buffer + 1]->b_data, dir 160 fs/adfs/dir_fplus.c adfs_fplus_getnext(struct adfs_dir *dir, struct object_info *obj) dir 163 fs/adfs/dir_fplus.c (struct adfs_bigdirheader *) dir->bh_fplus[0]->b_data; dir 168 fs/adfs/dir_fplus.c if (dir->pos >= le32_to_cpu(h->bigdirentries)) dir 173 fs/adfs/dir_fplus.c offset += dir->pos * sizeof(struct adfs_bigdirentry); dir 175 fs/adfs/dir_fplus.c dir_memcpy(dir, offset, &bde, sizeof(struct adfs_bigdirentry)); dir 189 fs/adfs/dir_fplus.c dir_memcpy(dir, offset, obj->name, obj->name_len); dir 190 fs/adfs/dir_fplus.c adfs_object_fixup(dir, obj); dir 192 fs/adfs/dir_fplus.c dir->pos += 1; dir 199 fs/adfs/dir_fplus.c adfs_fplus_sync(struct adfs_dir *dir) dir 204 fs/adfs/dir_fplus.c for (i = dir->nr_buffers - 1; i >= 0; i--) { dir 205 fs/adfs/dir_fplus.c struct buffer_head *bh = dir->bh_fplus[i]; dir 215 fs/adfs/dir_fplus.c adfs_fplus_free(struct adfs_dir *dir) dir 219 fs/adfs/dir_fplus.c if (dir->bh_fplus) { dir 220 fs/adfs/dir_fplus.c for (i = 0; i < dir->nr_buffers; i++) dir 221 fs/adfs/dir_fplus.c brelse(dir->bh_fplus[i]); dir 223 fs/adfs/dir_fplus.c if (&dir->bh[0] != dir->bh_fplus) dir 224 fs/adfs/dir_fplus.c kfree(dir->bh_fplus); dir 226 fs/adfs/dir_fplus.c dir->bh_fplus = NULL; dir 229 fs/adfs/dir_fplus.c dir->nr_buffers = 0; dir 230 fs/adfs/dir_fplus.c dir->sb = NULL; dir 138 fs/affs/affs.h extern int affs_remove_hash(struct inode *dir, struct buffer_head *rem_bh); dir 168 fs/affs/affs.h extern struct dentry *affs_lookup(struct inode *dir, struct dentry *dentry, unsigned int); dir 169 fs/affs/affs.h extern int affs_unlink(struct inode *dir, struct dentry *dentry); dir 170 fs/affs/affs.h extern int affs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool); dir 171 fs/affs/affs.h extern int affs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode); dir 172 fs/affs/affs.h extern int affs_rmdir(struct inode *dir, struct dentry *dentry); dir 173 fs/affs/affs.h extern int affs_link(struct dentry *olddentry, struct inode *dir, dir 175 fs/affs/affs.h extern int affs_symlink(struct inode *dir, struct dentry *dentry, dir 183 fs/affs/affs.h extern struct inode *affs_new_inode(struct inode *dir); dir 190 fs/affs/affs.h extern int affs_add_entry(struct inode *dir, struct inode *inode, struct dentry *dentry, s32 type); dir 26 fs/affs/amigaffs.c affs_insert_hash(struct inode *dir, struct buffer_head *bh) dir 28 fs/affs/amigaffs.c struct super_block *sb = dir->i_sb; dir 36 fs/affs/amigaffs.c pr_debug("%s(dir=%lu, ino=%d)\n", __func__, dir->i_ino, ino); dir 38 fs/affs/amigaffs.c dir_bh = affs_bread(sb, dir->i_ino); dir 50 fs/affs/amigaffs.c AFFS_TAIL(sb, bh)->parent = cpu_to_be32(dir->i_ino); dir 54 fs/affs/amigaffs.c if (dir->i_ino == dir_bh->b_blocknr) dir 60 fs/affs/amigaffs.c mark_buffer_dirty_inode(dir_bh, dir); dir 63 fs/affs/amigaffs.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 64 fs/affs/amigaffs.c inode_inc_iversion(dir); dir 65 fs/affs/amigaffs.c mark_inode_dirty(dir); dir 75 fs/affs/amigaffs.c affs_remove_hash(struct inode *dir, struct buffer_head *rem_bh) dir 83 fs/affs/amigaffs.c sb = dir->i_sb; dir 86 fs/affs/amigaffs.c pr_debug("%s(dir=%lu, ino=%d, hashval=%d)\n", __func__, dir->i_ino, dir 89 fs/affs/amigaffs.c bh = affs_bread(sb, dir->i_ino); dir 98 fs/affs/amigaffs.c if (dir->i_ino == bh->b_blocknr) dir 103 fs/affs/amigaffs.c mark_buffer_dirty_inode(bh, dir); dir 117 fs/affs/amigaffs.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 118 fs/affs/amigaffs.c inode_inc_iversion(dir); dir 119 fs/affs/amigaffs.c mark_inode_dirty(dir); dir 144 fs/affs/amigaffs.c struct inode *dir, *inode = d_inode(dentry); dir 166 fs/affs/amigaffs.c dir = affs_iget(sb, be32_to_cpu(AFFS_TAIL(sb, link_bh)->parent)); dir 167 fs/affs/amigaffs.c if (IS_ERR(dir)) { dir 168 fs/affs/amigaffs.c retval = PTR_ERR(dir); dir 172 fs/affs/amigaffs.c affs_lock_dir(dir); dir 178 fs/affs/amigaffs.c retval = affs_remove_hash(dir, link_bh); dir 180 fs/affs/amigaffs.c affs_unlock_dir(dir); dir 186 fs/affs/amigaffs.c retval = affs_insert_hash(dir, bh); dir 188 fs/affs/amigaffs.c affs_unlock_dir(dir); dir 193 fs/affs/amigaffs.c affs_unlock_dir(dir); dir 194 fs/affs/amigaffs.c iput(dir); dir 270 fs/affs/amigaffs.c struct inode *inode, *dir; dir 274 fs/affs/amigaffs.c dir = d_inode(dentry->d_parent); dir 275 fs/affs/amigaffs.c sb = dir->i_sb; dir 289 fs/affs/amigaffs.c affs_lock_dir(dir); dir 306 fs/affs/amigaffs.c retval = affs_remove_hash(dir, bh); dir 311 fs/affs/amigaffs.c affs_unlock_dir(dir); dir 326 fs/affs/amigaffs.c affs_unlock_dir(dir); dir 293 fs/affs/inode.c affs_new_inode(struct inode *dir) dir 295 fs/affs/inode.c struct super_block *sb = dir->i_sb; dir 303 fs/affs/inode.c if (!(block = affs_alloc_block(dir, dir->i_ino))) dir 350 fs/affs/inode.c affs_add_entry(struct inode *dir, struct inode *inode, struct dentry *dentry, s32 type) dir 352 fs/affs/inode.c struct super_block *sb = dir->i_sb; dir 359 fs/affs/inode.c dir->i_ino, inode->i_ino, dentry, type); dir 371 fs/affs/inode.c block = affs_alloc_block(dir, dir->i_ino); dir 388 fs/affs/inode.c AFFS_TAIL(sb, bh)->parent = cpu_to_be32(dir->i_ino); dir 405 fs/affs/inode.c affs_lock_dir(dir); dir 406 fs/affs/inode.c retval = affs_insert_hash(dir, bh); dir 408 fs/affs/inode.c affs_unlock_dir(dir); dir 170 fs/affs/namei.c affs_find_entry(struct inode *dir, struct dentry *dentry) dir 172 fs/affs/namei.c struct super_block *sb = dir->i_sb; dir 179 fs/affs/namei.c bh = affs_bread(sb, dir->i_ino); dir 199 fs/affs/namei.c affs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) dir 201 fs/affs/namei.c struct super_block *sb = dir->i_sb; dir 208 fs/affs/namei.c affs_lock_dir(dir); dir 209 fs/affs/namei.c bh = affs_find_entry(dir, dentry); dir 211 fs/affs/namei.c affs_unlock_dir(dir); dir 231 fs/affs/namei.c affs_unlock_dir(dir); dir 236 fs/affs/namei.c affs_unlink(struct inode *dir, struct dentry *dentry) dir 238 fs/affs/namei.c pr_debug("%s(dir=%lu, %lu \"%pd\")\n", __func__, dir->i_ino, dir 245 fs/affs/namei.c affs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) dir 247 fs/affs/namei.c struct super_block *sb = dir->i_sb; dir 252 fs/affs/namei.c __func__, dir->i_ino, dentry, mode); dir 254 fs/affs/namei.c inode = affs_new_inode(dir); dir 266 fs/affs/namei.c error = affs_add_entry(dir, inode, dentry, ST_FILE); dir 276 fs/affs/namei.c affs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 282 fs/affs/namei.c __func__, dir->i_ino, dentry, mode); dir 284 fs/affs/namei.c inode = affs_new_inode(dir); dir 294 fs/affs/namei.c error = affs_add_entry(dir, inode, dentry, ST_USERDIR); dir 305 fs/affs/namei.c affs_rmdir(struct inode *dir, struct dentry *dentry) dir 307 fs/affs/namei.c pr_debug("%s(dir=%lu, %lu \"%pd\")\n", __func__, dir->i_ino, dir 314 fs/affs/namei.c affs_symlink(struct inode *dir, struct dentry *dentry, const char *symname) dir 316 fs/affs/namei.c struct super_block *sb = dir->i_sb; dir 324 fs/affs/namei.c __func__, dir->i_ino, dentry, symname); dir 327 fs/affs/namei.c inode = affs_new_inode(dir); dir 377 fs/affs/namei.c error = affs_add_entry(dir, inode, dentry, ST_SOFTLINK); dir 391 fs/affs/namei.c affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) dir 395 fs/affs/namei.c pr_debug("%s(%lu, %lu, \"%pd\")\n", __func__, inode->i_ino, dir->i_ino, dir 398 fs/affs/namei.c return affs_add_entry(dir, inode, dentry, ST_LINKFILE); dir 20 fs/afs/dir.c static struct dentry *afs_lookup(struct inode *dir, struct dentry *dentry, dir 31 fs/afs/dir.c static int afs_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 33 fs/afs/dir.c static int afs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode); dir 34 fs/afs/dir.c static int afs_rmdir(struct inode *dir, struct dentry *dentry); dir 35 fs/afs/dir.c static int afs_unlink(struct inode *dir, struct dentry *dentry); dir 36 fs/afs/dir.c static int afs_link(struct dentry *from, struct inode *dir, dir 38 fs/afs/dir.c static int afs_symlink(struct inode *dir, struct dentry *dentry, dir 442 fs/afs/dir.c static int afs_dir_iterate(struct inode *dir, struct dir_context *ctx, dir 445 fs/afs/dir.c struct afs_vnode *dvnode = AFS_FS_I(dir); dir 453 fs/afs/dir.c _enter("{%lu},%u,,", dir->i_ino, (unsigned)ctx->pos); dir 455 fs/afs/dir.c if (test_bit(AFS_VNODE_DELETED, &AFS_FS_I(dir)->flags)) { dir 500 fs/afs/dir.c } while (ctx->pos < dir->i_size && blkoff < limit); dir 561 fs/afs/dir.c static int afs_do_lookup_one(struct inode *dir, struct dentry *dentry, dir 565 fs/afs/dir.c struct afs_super_info *as = dir->i_sb->s_fs_info; dir 573 fs/afs/dir.c _enter("{%lu},%p{%pd},", dir->i_ino, dentry, dentry); dir 576 fs/afs/dir.c ret = afs_dir_iterate(dir, &cookie.ctx, key, _dir_version); dir 638 fs/afs/dir.c static struct inode *afs_do_lookup(struct inode *dir, struct dentry *dentry, dir 643 fs/afs/dir.c struct afs_super_info *as = dir->i_sb->s_fs_info; dir 648 fs/afs/dir.c struct afs_vnode *dvnode = AFS_FS_I(dir), *vnode; dir 653 fs/afs/dir.c _enter("{%lu},%p{%pd},", dir->i_ino, dentry, dentry); dir 678 fs/afs/dir.c ret = afs_dir_iterate(dir, &cookie->ctx, key, &data_version); dir 695 fs/afs/dir.c inode = ilookup5(dir->i_sb, cookie->fids[0].vnode, dir 719 fs/afs/dir.c ti = ilookup5_nowait(dir->i_sb, iget_data.fid.vnode, dir 820 fs/afs/dir.c ti = afs_iget(dir->i_sb, key, &iget_data, scb, cbi, dvnode); dir 851 fs/afs/dir.c static struct dentry *afs_lookup_atsys(struct inode *dir, struct dentry *dentry, dir 855 fs/afs/dir.c struct afs_net *net = afs_i2net(dir); dir 907 fs/afs/dir.c static struct dentry *afs_lookup(struct inode *dir, struct dentry *dentry, dir 910 fs/afs/dir.c struct afs_vnode *dvnode = AFS_FS_I(dir); dir 950 fs/afs/dir.c return afs_lookup_atsys(dir, dentry, key); dir 953 fs/afs/dir.c inode = afs_do_lookup(dir, dentry, key); dir 956 fs/afs/dir.c inode = afs_try_auto_mntpt(dentry, dir); dir 978 fs/afs/dir.c struct inode *dir, *inode; dir 985 fs/afs/dir.c dir = d_inode_rcu(parent); dir 986 fs/afs/dir.c if (!dir) dir 988 fs/afs/dir.c dvnode = AFS_FS_I(dir); dir 1030 fs/afs/dir.c struct afs_vnode *vnode, *dir; dir 1067 fs/afs/dir.c dir = AFS_FS_I(d_inode(parent)); dir 1070 fs/afs/dir.c afs_validate(dir, key); dir 1072 fs/afs/dir.c if (test_bit(AFS_VNODE_DELETED, &dir->flags)) { dir 1082 fs/afs/dir.c dir_version = dir->status.data_version; dir 1087 fs/afs/dir.c invalid_before = dir->invalid_before; dir 1092 fs/afs/dir.c afs_stat_v(dir, n_reval); dir 1095 fs/afs/dir.c ret = afs_do_lookup_one(&dir->vfs_inode, dentry, &fid, key, &dir_version); dir 1271 fs/afs/dir.c static int afs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 1276 fs/afs/dir.c struct afs_vnode *dvnode = AFS_FS_I(dir); dir 1362 fs/afs/dir.c static int afs_rmdir(struct inode *dir, struct dentry *dentry) dir 1366 fs/afs/dir.c struct afs_vnode *dvnode = AFS_FS_I(dir), *vnode = NULL; dir 1479 fs/afs/dir.c static int afs_unlink(struct inode *dir, struct dentry *dentry) dir 1483 fs/afs/dir.c struct afs_vnode *dvnode = AFS_FS_I(dir); dir 1582 fs/afs/dir.c static int afs_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 1588 fs/afs/dir.c struct afs_vnode *dvnode = AFS_FS_I(dir); dir 1661 fs/afs/dir.c static int afs_link(struct dentry *from, struct inode *dir, dir 1666 fs/afs/dir.c struct afs_vnode *dvnode = AFS_FS_I(dir); dir 1749 fs/afs/dir.c static int afs_symlink(struct inode *dir, struct dentry *dentry, dir 1755 fs/afs/dir.c struct afs_vnode *dvnode = AFS_FS_I(dir); dir 50 fs/afs/dynroot.c struct inode *afs_try_auto_mntpt(struct dentry *dentry, struct inode *dir) dir 52 fs/afs/dynroot.c struct afs_vnode *vnode = AFS_FS_I(dir); dir 66 fs/afs/dynroot.c inode = afs_iget_pseudo_dir(dir->i_sb, false); dir 132 fs/afs/dynroot.c static struct dentry *afs_dynroot_lookup(struct inode *dir, struct dentry *dentry, dir 151 fs/afs/dynroot.c return d_splice_alias(afs_try_auto_mntpt(dentry, dir), dentry); dir 20 fs/afs/mntpt.c static struct dentry *afs_mntpt_lookup(struct inode *dir, dir 52 fs/afs/mntpt.c static struct dentry *afs_mntpt_lookup(struct inode *dir, dir 56 fs/afs/mntpt.c _enter("%p,%p{%pd2}", dir, dentry, dentry); dir 604 fs/afs/proc.c struct proc_dir_entry *dir; dir 609 fs/afs/proc.c dir = proc_net_mkdir(net->net, cell->name, net->proc_afs); dir 610 fs/afs/proc.c if (!dir) dir 613 fs/afs/proc.c if (!proc_create_net_data("vlservers", 0444, dir, dir 617 fs/afs/proc.c !proc_create_net_data("volumes", 0444, dir, dir 474 fs/autofs/root.c static struct dentry *autofs_lookup(struct inode *dir, dir 487 fs/autofs/root.c sbi = autofs_sbi(dir->i_sb); dir 527 fs/autofs/root.c static int autofs_dir_symlink(struct inode *dir, dir 531 fs/autofs/root.c struct autofs_sb_info *sbi = autofs_sbi(dir->i_sb); dir 562 fs/autofs/root.c inode = autofs_get_inode(dir->i_sb, S_IFLNK | 0555); dir 577 fs/autofs/root.c dir->i_mtime = current_time(dir); dir 597 fs/autofs/root.c static int autofs_dir_unlink(struct inode *dir, struct dentry *dentry) dir 599 fs/autofs/root.c struct autofs_sb_info *sbi = autofs_sbi(dir->i_sb); dir 623 fs/autofs/root.c dir->i_mtime = current_time(dir); dir 683 fs/autofs/root.c static int autofs_dir_rmdir(struct inode *dir, struct dentry *dentry) dir 685 fs/autofs/root.c struct autofs_sb_info *sbi = autofs_sbi(dir->i_sb); dir 722 fs/autofs/root.c if (dir->i_nlink) dir 723 fs/autofs/root.c drop_nlink(dir); dir 728 fs/autofs/root.c static int autofs_dir_mkdir(struct inode *dir, dir 731 fs/autofs/root.c struct autofs_sb_info *sbi = autofs_sbi(dir->i_sb); dir 754 fs/autofs/root.c inode = autofs_get_inode(dir->i_sb, S_IFDIR | mode); dir 767 fs/autofs/root.c inc_nlink(dir); dir 768 fs/autofs/root.c dir->i_mtime = current_time(dir); dir 29 fs/bad_inode.c static int bad_inode_create (struct inode *dir, struct dentry *dentry, dir 35 fs/bad_inode.c static struct dentry *bad_inode_lookup(struct inode *dir, dir 41 fs/bad_inode.c static int bad_inode_link (struct dentry *old_dentry, struct inode *dir, dir 47 fs/bad_inode.c static int bad_inode_unlink(struct inode *dir, struct dentry *dentry) dir 52 fs/bad_inode.c static int bad_inode_symlink (struct inode *dir, struct dentry *dentry, dir 58 fs/bad_inode.c static int bad_inode_mkdir(struct inode *dir, struct dentry *dentry, dir 64 fs/bad_inode.c static int bad_inode_rmdir (struct inode *dir, struct dentry *dentry) dir 69 fs/bad_inode.c static int bad_inode_mknod (struct inode *dir, struct dentry *dentry, dir 171 fs/befs/linuxvfs.c befs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) dir 174 fs/befs/linuxvfs.c struct super_block *sb = dir->i_sb; dir 175 fs/befs/linuxvfs.c const befs_data_stream *ds = &BEFS_I(dir)->i_data.ds; dir 183 fs/befs/linuxvfs.c dentry, dir->i_ino); dir 207 fs/befs/linuxvfs.c inode = befs_iget(dir->i_sb, (ino_t) offset); dir 24 fs/bfs/dir.c static int bfs_add_entry(struct inode *dir, const struct qstr *child, int ino); dir 25 fs/bfs/dir.c static struct buffer_head *bfs_find_entry(struct inode *dir, dir 31 fs/bfs/dir.c struct inode *dir = file_inode(f); dir 40 fs/bfs/dir.c dir->i_sb->s_id, dir->i_ino); dir 44 fs/bfs/dir.c while (ctx->pos < dir->i_size) { dir 46 fs/bfs/dir.c block = BFS_I(dir)->i_sblock + (ctx->pos >> BFS_BSIZE_BITS); dir 47 fs/bfs/dir.c bh = sb_bread(dir->i_sb, block); dir 65 fs/bfs/dir.c } while ((offset < BFS_BSIZE) && (ctx->pos < dir->i_size)); dir 78 fs/bfs/dir.c static int bfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 83 fs/bfs/dir.c struct super_block *s = dir->i_sb; dir 99 fs/bfs/dir.c inode_init_owner(inode, dir, mode); dir 113 fs/bfs/dir.c err = bfs_add_entry(dir, &dentry->d_name, inode->i_ino); dir 125 fs/bfs/dir.c static struct dentry *bfs_lookup(struct inode *dir, struct dentry *dentry, dir 131 fs/bfs/dir.c struct bfs_sb_info *info = BFS_SB(dir->i_sb); dir 137 fs/bfs/dir.c bh = bfs_find_entry(dir, &dentry->d_name, &de); dir 141 fs/bfs/dir.c inode = bfs_iget(dir->i_sb, ino); dir 147 fs/bfs/dir.c static int bfs_link(struct dentry *old, struct inode *dir, dir 155 fs/bfs/dir.c err = bfs_add_entry(dir, &new->d_name, inode->i_ino); dir 169 fs/bfs/dir.c static int bfs_unlink(struct inode *dir, struct dentry *dentry) dir 178 fs/bfs/dir.c bh = bfs_find_entry(dir, &dentry->d_name, &de); dir 189 fs/bfs/dir.c mark_buffer_dirty_inode(bh, dir); dir 190 fs/bfs/dir.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 191 fs/bfs/dir.c mark_inode_dirty(dir); dir 192 fs/bfs/dir.c inode->i_ctime = dir->i_ctime; dir 267 fs/bfs/dir.c static int bfs_add_entry(struct inode *dir, const struct qstr *child, int ino) dir 283 fs/bfs/dir.c sblock = BFS_I(dir)->i_sblock; dir 284 fs/bfs/dir.c eblock = BFS_I(dir)->i_eblock; dir 286 fs/bfs/dir.c bh = sb_bread(dir->i_sb, block); dir 293 fs/bfs/dir.c if (pos >= dir->i_size) { dir 294 fs/bfs/dir.c dir->i_size += BFS_DIRENT_SIZE; dir 295 fs/bfs/dir.c dir->i_ctime = current_time(dir); dir 297 fs/bfs/dir.c dir->i_mtime = current_time(dir); dir 298 fs/bfs/dir.c mark_inode_dirty(dir); dir 303 fs/bfs/dir.c mark_buffer_dirty_inode(bh, dir); dir 321 fs/bfs/dir.c static struct buffer_head *bfs_find_entry(struct inode *dir, dir 335 fs/bfs/dir.c while (block * BFS_BSIZE + offset < dir->i_size) { dir 337 fs/bfs/dir.c bh = sb_bread(dir->i_sb, BFS_I(dir)->i_sblock + block); dir 127 fs/btrfs/acl.c struct inode *inode, struct inode *dir) dir 133 fs/btrfs/acl.c if (!dir) dir 136 fs/btrfs/acl.c ret = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); dir 2707 fs/btrfs/ctree.h int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir, dir 2710 fs/btrfs/ctree.h int name_len, struct btrfs_inode *dir, dir 2714 fs/btrfs/ctree.h struct btrfs_path *path, u64 dir, dir 2720 fs/btrfs/ctree.h struct btrfs_path *path, u64 dir, dir 2738 fs/btrfs/ctree.h struct btrfs_path *path, u64 dir, dir 2823 fs/btrfs/ctree.h struct inode *btrfs_lookup_dentry(struct inode *dir, struct dentry *dentry); dir 2824 fs/btrfs/ctree.h int btrfs_set_inode_index(struct btrfs_inode *dir, u64 *index); dir 2827 fs/btrfs/ctree.h struct btrfs_inode *dir, struct btrfs_inode *inode, dir 2832 fs/btrfs/ctree.h int btrfs_delete_subvolume(struct inode *dir, struct dentry *dentry); dir 3330 fs/btrfs/ctree.h struct inode *inode, struct inode *dir); dir 3335 fs/btrfs/ctree.h struct inode *inode, struct inode *dir) dir 1438 fs/btrfs/delayed-inode.c struct btrfs_inode *dir, dir 1447 fs/btrfs/delayed-inode.c delayed_node = btrfs_get_or_create_delayed_node(dir); dir 1457 fs/btrfs/delayed-inode.c delayed_item->key.objectid = btrfs_ino(dir); dir 1469 fs/btrfs/delayed-inode.c ret = btrfs_delayed_item_reserve_metadata(trans, dir->root, delayed_item); dir 1512 fs/btrfs/delayed-inode.c struct btrfs_inode *dir, u64 index) dir 1519 fs/btrfs/delayed-inode.c node = btrfs_get_or_create_delayed_node(dir); dir 1523 fs/btrfs/delayed-inode.c item_key.objectid = btrfs_ino(dir); dir 1540 fs/btrfs/delayed-inode.c ret = btrfs_delayed_item_reserve_metadata(trans, dir->root, item); dir 1559 fs/btrfs/delayed-inode.c btrfs_delayed_item_release_metadata(dir->root, item); dir 90 fs/btrfs/delayed-inode.h struct btrfs_inode *dir, dir 95 fs/btrfs/delayed-inode.h struct btrfs_inode *dir, u64 index); dir 109 fs/btrfs/dir-item.c int name_len, struct btrfs_inode *dir, dir 114 fs/btrfs/dir-item.c struct btrfs_root *root = dir->root; dir 123 fs/btrfs/dir-item.c key.objectid = btrfs_ino(dir); dir 163 fs/btrfs/dir-item.c ret2 = btrfs_insert_delayed_dir_index(trans, name, name_len, dir, dir 181 fs/btrfs/dir-item.c struct btrfs_path *path, u64 dir, dir 190 fs/btrfs/dir-item.c key.objectid = dir; dir 204 fs/btrfs/dir-item.c int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir, dir 220 fs/btrfs/dir-item.c key.objectid = dir; dir 274 fs/btrfs/dir-item.c struct btrfs_path *path, u64 dir, dir 283 fs/btrfs/dir-item.c key.objectid = dir; dir 345 fs/btrfs/dir-item.c struct btrfs_path *path, u64 dir, dir 354 fs/btrfs/dir-item.c key.objectid = dir; dir 157 fs/btrfs/export.c struct inode *dir = d_inode(child); dir 158 fs/btrfs/export.c struct btrfs_fs_info *fs_info = btrfs_sb(dir->i_sb); dir 159 fs/btrfs/export.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 171 fs/btrfs/export.c if (btrfs_ino(BTRFS_I(dir)) == BTRFS_FIRST_FREE_OBJECTID) { dir 177 fs/btrfs/export.c key.objectid = btrfs_ino(BTRFS_I(dir)); dir 227 fs/btrfs/export.c struct inode *dir = d_inode(parent); dir 230 fs/btrfs/export.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 240 fs/btrfs/export.c if (!S_ISDIR(dir->i_mode)) dir 257 fs/btrfs/export.c key.offset = btrfs_ino(BTRFS_I(dir)); dir 150 fs/btrfs/inode.c struct inode *inode, struct inode *dir, dir 155 fs/btrfs/inode.c err = btrfs_init_acl(trans, inode, dir); dir 157 fs/btrfs/inode.c err = btrfs_xattr_security_init(trans, inode, dir, qstr); dir 4117 fs/btrfs/inode.c struct btrfs_inode *dir, dir 4127 fs/btrfs/inode.c u64 dir_ino = btrfs_ino(dir); dir 4175 fs/btrfs/inode.c ret = btrfs_delete_delayed_dir_index(trans, dir, index); dir 4188 fs/btrfs/inode.c ret = btrfs_del_dir_entries_in_log(trans, root, name, name_len, dir, dir 4210 fs/btrfs/inode.c btrfs_i_size_write(dir, dir->vfs_inode.i_size - name_len * 2); dir 4212 fs/btrfs/inode.c inode_inc_iversion(&dir->vfs_inode); dir 4213 fs/btrfs/inode.c inode->vfs_inode.i_ctime = dir->vfs_inode.i_mtime = dir 4214 fs/btrfs/inode.c dir->vfs_inode.i_ctime = current_time(&inode->vfs_inode); dir 4215 fs/btrfs/inode.c ret = btrfs_update_inode(trans, root, &dir->vfs_inode); dir 4222 fs/btrfs/inode.c struct btrfs_inode *dir, struct btrfs_inode *inode, dir 4226 fs/btrfs/inode.c ret = __btrfs_unlink_inode(trans, root, dir, inode, name, name_len); dir 4242 fs/btrfs/inode.c static struct btrfs_trans_handle *__unlink_start_trans(struct inode *dir) dir 4244 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 4256 fs/btrfs/inode.c static int btrfs_unlink(struct inode *dir, struct dentry *dentry) dir 4258 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 4263 fs/btrfs/inode.c trans = __unlink_start_trans(dir); dir 4267 fs/btrfs/inode.c btrfs_record_unlink_dir(trans, BTRFS_I(dir), BTRFS_I(d_inode(dentry)), dir 4270 fs/btrfs/inode.c ret = btrfs_unlink_inode(trans, root, BTRFS_I(dir), dir 4289 fs/btrfs/inode.c struct inode *dir, struct dentry *dentry) dir 4291 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 4302 fs/btrfs/inode.c u64 dir_ino = btrfs_ino(BTRFS_I(dir)); dir 4369 fs/btrfs/inode.c ret = btrfs_delete_delayed_dir_index(trans, BTRFS_I(dir), index); dir 4375 fs/btrfs/inode.c btrfs_i_size_write(BTRFS_I(dir), dir->i_size - name_len * 2); dir 4376 fs/btrfs/inode.c inode_inc_iversion(dir); dir 4377 fs/btrfs/inode.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 4378 fs/btrfs/inode.c ret = btrfs_update_inode_fallback(trans, root, dir); dir 4505 fs/btrfs/inode.c int btrfs_delete_subvolume(struct inode *dir, struct dentry *dentry) dir 4508 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 4559 fs/btrfs/inode.c btrfs_record_snapshot_destroy(trans, BTRFS_I(dir)); dir 4561 fs/btrfs/inode.c ret = btrfs_unlink_subvol(trans, dir, dentry); dir 4638 fs/btrfs/inode.c static int btrfs_rmdir(struct inode *dir, struct dentry *dentry) dir 4642 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 4649 fs/btrfs/inode.c return btrfs_delete_subvolume(dir, dentry); dir 4651 fs/btrfs/inode.c trans = __unlink_start_trans(dir); dir 4656 fs/btrfs/inode.c err = btrfs_unlink_subvol(trans, dir, dentry); dir 4667 fs/btrfs/inode.c err = btrfs_unlink_inode(trans, root, BTRFS_I(dir), dir 4684 fs/btrfs/inode.c BTRFS_I(dir)->last_unlink_trans = last_unlink_trans; dir 5663 fs/btrfs/inode.c static int btrfs_inode_by_name(struct inode *dir, struct dentry *dentry, dir 5670 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 5677 fs/btrfs/inode.c di = btrfs_lookup_dir_item(NULL, root, path, btrfs_ino(BTRFS_I(dir)), dir 5690 fs/btrfs/inode.c __func__, name, btrfs_ino(BTRFS_I(dir)), dir 5706 fs/btrfs/inode.c struct inode *dir, dir 5726 fs/btrfs/inode.c key.objectid = BTRFS_I(dir)->root->root_key.objectid; dir 5739 fs/btrfs/inode.c if (btrfs_root_ref_dirid(leaf, ref) != btrfs_ino(BTRFS_I(dir)) || dir 5948 fs/btrfs/inode.c struct inode *btrfs_lookup_dentry(struct inode *dir, struct dentry *dentry) dir 5950 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = btrfs_sb(dir->i_sb); dir 5952 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 5962 fs/btrfs/inode.c ret = btrfs_inode_by_name(dir, dentry, &location, &di_type); dir 5967 fs/btrfs/inode.c inode = btrfs_iget(dir->i_sb, &location, root, NULL); dir 5984 fs/btrfs/inode.c ret = fixup_tree_root_location(fs_info, dir, dentry, dir 5990 fs/btrfs/inode.c inode = new_simple_dir(dir->i_sb, &location, sub_root); dir 5992 fs/btrfs/inode.c inode = btrfs_iget(dir->i_sb, &location, sub_root, NULL); dir 6029 fs/btrfs/inode.c static struct dentry *btrfs_lookup(struct inode *dir, struct dentry *dentry, dir 6032 fs/btrfs/inode.c struct inode *inode = btrfs_lookup_dentry(dir, dentry); dir 6350 fs/btrfs/inode.c int btrfs_set_inode_index(struct btrfs_inode *dir, u64 *index) dir 6354 fs/btrfs/inode.c if (dir->index_cnt == (u64)-1) { dir 6355 fs/btrfs/inode.c ret = btrfs_inode_delayed_dir_index_count(dir); dir 6357 fs/btrfs/inode.c ret = btrfs_set_inode_index_count(dir); dir 6363 fs/btrfs/inode.c *index = dir->index_cnt; dir 6364 fs/btrfs/inode.c dir->index_cnt++; dir 6385 fs/btrfs/inode.c static void btrfs_inherit_iflags(struct inode *inode, struct inode *dir) dir 6389 fs/btrfs/inode.c if (!dir) dir 6392 fs/btrfs/inode.c flags = BTRFS_I(dir)->flags; dir 6413 fs/btrfs/inode.c struct inode *dir, dir 6456 fs/btrfs/inode.c if (dir && name) { dir 6457 fs/btrfs/inode.c trace_btrfs_inode_request(dir); dir 6459 fs/btrfs/inode.c ret = btrfs_set_inode_index(BTRFS_I(dir), index); dir 6465 fs/btrfs/inode.c } else if (dir) { dir 6523 fs/btrfs/inode.c inode_init_owner(inode, dir, mode); dir 6549 fs/btrfs/inode.c btrfs_inherit_iflags(inode, dir); dir 6566 fs/btrfs/inode.c ret = btrfs_inode_inherit_props(trans, inode, dir); dir 6577 fs/btrfs/inode.c if (dir && name) dir 6578 fs/btrfs/inode.c BTRFS_I(dir)->index_cnt--; dir 6673 fs/btrfs/inode.c struct btrfs_inode *dir, struct dentry *dentry, dir 6676 fs/btrfs/inode.c int err = btrfs_add_link(trans, dir, inode, dir 6684 fs/btrfs/inode.c static int btrfs_mknod(struct inode *dir, struct dentry *dentry, dir 6687 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = btrfs_sb(dir->i_sb); dir 6689 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 6708 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name, dir 6709 fs/btrfs/inode.c dentry->d_name.len, btrfs_ino(BTRFS_I(dir)), objectid, dir 6726 fs/btrfs/inode.c err = btrfs_init_inode_security(trans, inode, dir, &dentry->d_name); dir 6730 fs/btrfs/inode.c err = btrfs_add_nondir(trans, BTRFS_I(dir), dentry, BTRFS_I(inode), dir 6748 fs/btrfs/inode.c static int btrfs_create(struct inode *dir, struct dentry *dentry, dir 6751 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = btrfs_sb(dir->i_sb); dir 6753 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 6772 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name, dir 6773 fs/btrfs/inode.c dentry->d_name.len, btrfs_ino(BTRFS_I(dir)), objectid, dir 6790 fs/btrfs/inode.c err = btrfs_init_inode_security(trans, inode, dir, &dentry->d_name); dir 6798 fs/btrfs/inode.c err = btrfs_add_nondir(trans, BTRFS_I(dir), dentry, BTRFS_I(inode), dir 6816 fs/btrfs/inode.c static int btrfs_link(struct dentry *old_dentry, struct inode *dir, dir 6820 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 6834 fs/btrfs/inode.c err = btrfs_set_inode_index(BTRFS_I(dir), &index); dir 6859 fs/btrfs/inode.c err = btrfs_add_nondir(trans, BTRFS_I(dir), dentry, BTRFS_I(inode), dir 6900 fs/btrfs/inode.c static int btrfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 6902 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = btrfs_sb(dir->i_sb); dir 6905 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 6923 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name, dir 6924 fs/btrfs/inode.c dentry->d_name.len, btrfs_ino(BTRFS_I(dir)), objectid, dir 6936 fs/btrfs/inode.c err = btrfs_init_inode_security(trans, inode, dir, &dentry->d_name); dir 6945 fs/btrfs/inode.c err = btrfs_add_link(trans, BTRFS_I(dir), BTRFS_I(inode), dir 9878 fs/btrfs/inode.c struct inode *dir, dir 9890 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, dir 9893 fs/btrfs/inode.c btrfs_ino(BTRFS_I(dir)), dir 9907 fs/btrfs/inode.c ret = btrfs_init_inode_security(trans, inode, dir, dir 9912 fs/btrfs/inode.c ret = btrfs_add_nondir(trans, BTRFS_I(dir), dentry, dir 10348 fs/btrfs/inode.c static int btrfs_symlink(struct inode *dir, struct dentry *dentry, dir 10351 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = btrfs_sb(dir->i_sb); dir 10353 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 10385 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name, dir 10386 fs/btrfs/inode.c dentry->d_name.len, btrfs_ino(BTRFS_I(dir)), dir 10405 fs/btrfs/inode.c err = btrfs_init_inode_security(trans, inode, dir, &dentry->d_name); dir 10451 fs/btrfs/inode.c err = btrfs_add_nondir(trans, BTRFS_I(dir), dentry, dir 10647 fs/btrfs/inode.c static int btrfs_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) dir 10649 fs/btrfs/inode.c struct btrfs_fs_info *fs_info = btrfs_sb(dir->i_sb); dir 10651 fs/btrfs/inode.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 10668 fs/btrfs/inode.c inode = btrfs_new_inode(trans, root, dir, NULL, 0, dir 10669 fs/btrfs/inode.c btrfs_ino(BTRFS_I(dir)), objectid, mode, &index); dir 10682 fs/btrfs/inode.c ret = btrfs_init_inode_security(trans, inode, dir, NULL); dir 555 fs/btrfs/ioctl.c static noinline int create_subvol(struct inode *dir, dir 561 fs/btrfs/ioctl.c struct btrfs_fs_info *fs_info = btrfs_sb(dir->i_sb); dir 567 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 570 fs/btrfs/ioctl.c struct timespec64 cur_time = current_time(dir); dir 693 fs/btrfs/ioctl.c ret = btrfs_set_inode_index(BTRFS_I(dir), &index); dir 699 fs/btrfs/ioctl.c ret = btrfs_insert_dir_item(trans, name, namelen, BTRFS_I(dir), &key, dir 706 fs/btrfs/ioctl.c btrfs_i_size_write(BTRFS_I(dir), dir->i_size + namelen * 2); dir 707 fs/btrfs/ioctl.c ret = btrfs_update_inode(trans, root, dir); dir 714 fs/btrfs/ioctl.c btrfs_ino(BTRFS_I(dir)), index, name, namelen); dir 743 fs/btrfs/ioctl.c inode = btrfs_lookup_dentry(dir, dentry); dir 755 fs/btrfs/ioctl.c static int create_snapshot(struct btrfs_root *root, struct inode *dir, dir 760 fs/btrfs/ioctl.c struct btrfs_fs_info *fs_info = btrfs_sb(dir->i_sb); dir 823 fs/btrfs/ioctl.c ret = btrfs_subvolume_reserve_metadata(BTRFS_I(dir)->root, dir 832 fs/btrfs/ioctl.c pending_snapshot->dir = dir; dir 907 fs/btrfs/ioctl.c static int btrfs_may_delete(struct inode *dir, struct dentry *victim, int isdir) dir 914 fs/btrfs/ioctl.c BUG_ON(d_inode(victim->d_parent) != dir); dir 915 fs/btrfs/ioctl.c audit_inode_child(dir, victim, AUDIT_TYPE_CHILD_DELETE); dir 917 fs/btrfs/ioctl.c error = inode_permission(dir, MAY_WRITE | MAY_EXEC); dir 920 fs/btrfs/ioctl.c if (IS_APPEND(dir)) dir 922 fs/btrfs/ioctl.c if (check_sticky(dir, d_inode(victim)) || IS_APPEND(d_inode(victim)) || dir 932 fs/btrfs/ioctl.c if (IS_DEADDIR(dir)) dir 940 fs/btrfs/ioctl.c static inline int btrfs_may_create(struct inode *dir, struct dentry *child) dir 944 fs/btrfs/ioctl.c if (IS_DEADDIR(dir)) dir 946 fs/btrfs/ioctl.c return inode_permission(dir, MAY_WRITE | MAY_EXEC); dir 960 fs/btrfs/ioctl.c struct inode *dir = d_inode(parent->dentry); dir 961 fs/btrfs/ioctl.c struct btrfs_fs_info *fs_info = btrfs_sb(dir->i_sb); dir 965 fs/btrfs/ioctl.c error = down_write_killable_nested(&dir->i_rwsem, I_MUTEX_PARENT); dir 974 fs/btrfs/ioctl.c error = btrfs_may_create(dir, dentry); dir 982 fs/btrfs/ioctl.c error = btrfs_check_dir_item_collision(BTRFS_I(dir)->root, dir 983 fs/btrfs/ioctl.c dir->i_ino, name, dir 990 fs/btrfs/ioctl.c if (btrfs_root_refs(&BTRFS_I(dir)->root->root_item) == 0) dir 994 fs/btrfs/ioctl.c error = create_snapshot(snap_src, dir, dentry, dir 997 fs/btrfs/ioctl.c error = create_subvol(dir, dentry, name, namelen, dir 1001 fs/btrfs/ioctl.c fsnotify_mkdir(dir, dentry); dir 1007 fs/btrfs/ioctl.c inode_unlock(dir); dir 2845 fs/btrfs/ioctl.c struct inode *dir = d_inode(parent); dir 2847 fs/btrfs/ioctl.c struct btrfs_root *root = BTRFS_I(dir)->root; dir 2853 fs/btrfs/ioctl.c if (!S_ISDIR(dir->i_mode)) dir 2873 fs/btrfs/ioctl.c err = down_write_killable_nested(&dir->i_rwsem, I_MUTEX_PARENT); dir 2924 fs/btrfs/ioctl.c err = btrfs_may_delete(dir, dentry, 1); dir 2934 fs/btrfs/ioctl.c err = btrfs_delete_subvolume(dir, dentry); dir 2937 fs/btrfs/ioctl.c fsnotify_rmdir(dir, dentry); dir 2944 fs/btrfs/ioctl.c inode_unlock(dir); dir 398 fs/btrfs/props.c struct inode *dir) dir 400 fs/btrfs/props.c if (!dir) dir 403 fs/btrfs/props.c return inherit_props(trans, inode, dir); dir 22 fs/btrfs/props.h struct inode *dir); dir 877 fs/btrfs/send.c typedef int (*iterate_inode_ref_t)(int num, u64 dir, int index, dir 907 fs/btrfs/send.c u64 dir; dir 943 fs/btrfs/send.c dir = found_key->offset; dir 949 fs/btrfs/send.c dir = btrfs_inode_extref_parent(eb, extref); dir 954 fs/btrfs/send.c name_off, eb, dir, dir 968 fs/btrfs/send.c eb, dir, dir 985 fs/btrfs/send.c ret = iterate(num, dir, index, p, ctx); dir 1122 fs/btrfs/send.c static int __copy_first_ref(int num, u64 dir, int index, dir 1701 fs/btrfs/send.c u64 dir, const char *name, int name_len, dir 1715 fs/btrfs/send.c dir, name, name_len, 0); dir 1738 fs/btrfs/send.c u64 *dir, u64 *dir_gen, struct fs_path *name) dir 1797 fs/btrfs/send.c *dir = parent_dir; dir 1805 fs/btrfs/send.c u64 ino, u64 dir, dir 1820 fs/btrfs/send.c if (dir != tmp_dir || name_len != fs_path_len(tmp_name)) { dir 1842 fs/btrfs/send.c static int will_overwrite_ref(struct send_ctx *sctx, u64 dir, u64 dir_gen, dir 1854 fs/btrfs/send.c ret = is_inode_existent(sctx, dir, dir_gen); dir 1863 fs/btrfs/send.c if (sctx->parent_root && dir != BTRFS_FIRST_FREE_OBJECTID) { dir 1864 fs/btrfs/send.c ret = get_inode_info(sctx->parent_root, dir, NULL, &gen, NULL, dir 1876 fs/btrfs/send.c ret = lookup_dir_item_inode(sctx->parent_root, dir, name, name_len, dir 1915 fs/btrfs/send.c u64 dir, u64 dir_gen, dir 1927 fs/btrfs/send.c ret = is_inode_existent(sctx, dir, dir_gen); dir 1931 fs/btrfs/send.c if (dir != BTRFS_FIRST_FREE_OBJECTID) { dir 1932 fs/btrfs/send.c ret = get_inode_info(sctx->send_root, dir, NULL, &gen, NULL, dir 1945 fs/btrfs/send.c ret = lookup_dir_item_inode(sctx->send_root, dir, name, name_len, dir 1991 fs/btrfs/send.c u64 dir; dir 2001 fs/btrfs/send.c ret = get_first_ref(sctx->parent_root, ino, &dir, &dir_gen, name); dir 2005 fs/btrfs/send.c ret = did_overwrite_ref(sctx, dir, dir_gen, ino, gen, dir 2671 fs/btrfs/send.c static int did_create_dir(struct send_ctx *sctx, u64 dir) dir 2688 fs/btrfs/send.c key.objectid = dir; dir 2765 fs/btrfs/send.c u64 dir; dir 2782 fs/btrfs/send.c static int __record_ref(struct list_head *head, u64 dir, dir 2791 fs/btrfs/send.c ref->dir = dir; dir 2806 fs/btrfs/send.c new->dir = ref->dir; dir 2928 fs/btrfs/send.c static int can_rmdir(struct send_ctx *sctx, u64 dir, u64 dir_gen, dir 2943 fs/btrfs/send.c if (dir == BTRFS_FIRST_FREE_OBJECTID) dir 2950 fs/btrfs/send.c key.objectid = dir; dir 2954 fs/btrfs/send.c odi = get_orphan_dir_info(sctx, dir); dir 2985 fs/btrfs/send.c odi = add_orphan_dir_info(sctx, dir); dir 2992 fs/btrfs/send.c dm->rmdir_ino = dir; dir 2998 fs/btrfs/send.c odi = add_orphan_dir_info(sctx, dir); dir 3330 fs/btrfs/send.c ret = get_inode_info(sctx->send_root, cur->dir, NULL, dir 3339 fs/btrfs/send.c ret = send_utimes(sctx, cur->dir, cur->dir_gen); dir 3473 fs/btrfs/send.c key.objectid = parent_ref->dir; dir 3677 fs/btrfs/send.c u64 ino = parent_ref->dir; dir 3788 fs/btrfs/send.c ret = get_cur_path(sctx, ref->dir, ref->dir_gen, new_path); dir 3881 fs/btrfs/send.c ret = get_cur_inode_state(sctx, cur->dir, cur->dir_gen); dir 3893 fs/btrfs/send.c if (cur2->dir == cur->dir) { dir 3904 fs/btrfs/send.c ret = did_create_dir(sctx, cur->dir); dir 3908 fs/btrfs/send.c ret = send_create_inode(sctx, cur->dir); dir 3920 fs/btrfs/send.c ret = will_overwrite_ref(sctx, cur->dir, cur->dir_gen, dir 3927 fs/btrfs/send.c ow_inode, cur->dir, cur->name, dir 4114 fs/btrfs/send.c ret = did_overwrite_ref(sctx, cur->dir, cur->dir_gen, dir 4167 fs/btrfs/send.c if (cur->dir > sctx->cur_ino) dir 4170 fs/btrfs/send.c ret = get_cur_inode_state(sctx, cur->dir, cur->dir_gen); dir 4177 fs/btrfs/send.c ret = send_utimes(sctx, cur->dir, cur->dir_gen); dir 4181 fs/btrfs/send.c cur->dir != last_dir_ino_rm) { dir 4182 fs/btrfs/send.c ret = can_rmdir(sctx, cur->dir, cur->dir_gen, dir 4187 fs/btrfs/send.c ret = get_cur_path(sctx, cur->dir, dir 4194 fs/btrfs/send.c last_dir_ino_rm = cur->dir; dir 4208 fs/btrfs/send.c static int record_ref(struct btrfs_root *root, u64 dir, struct fs_path *name, dir 4220 fs/btrfs/send.c ret = get_inode_info(root, dir, NULL, &gen, NULL, NULL, dir 4225 fs/btrfs/send.c ret = get_cur_path(sctx, dir, gen, p); dir 4232 fs/btrfs/send.c ret = __record_ref(refs, dir, gen, p); dir 4240 fs/btrfs/send.c static int __record_new_ref(int num, u64 dir, int index, dir 4245 fs/btrfs/send.c return record_ref(sctx->send_root, dir, name, ctx, &sctx->new_refs); dir 4249 fs/btrfs/send.c static int __record_deleted_ref(int num, u64 dir, int index, dir 4254 fs/btrfs/send.c return record_ref(sctx->parent_root, dir, name, ctx, dir 4287 fs/btrfs/send.c u64 dir; dir 4294 fs/btrfs/send.c static int __find_iref(int num, u64 dir, int index, dir 4302 fs/btrfs/send.c if (dir == ctx->dir && fs_path_len(name) == fs_path_len(ctx->name) && dir 4308 fs/btrfs/send.c ret = get_inode_info(ctx->root, dir, NULL, &dir_gen, NULL, dir 4323 fs/btrfs/send.c u64 dir, u64 dir_gen, struct fs_path *name) dir 4328 fs/btrfs/send.c ctx.dir = dir; dir 4344 fs/btrfs/send.c static int __record_changed_new_ref(int num, u64 dir, int index, dir 4352 fs/btrfs/send.c ret = get_inode_info(sctx->send_root, dir, NULL, &dir_gen, NULL, dir 4358 fs/btrfs/send.c sctx->cmp_key, dir, dir_gen, name); dir 4360 fs/btrfs/send.c ret = __record_new_ref(num, dir, index, name, sctx); dir 4367 fs/btrfs/send.c static int __record_changed_deleted_ref(int num, u64 dir, int index, dir 4375 fs/btrfs/send.c ret = get_inode_info(sctx->parent_root, dir, NULL, &dir_gen, NULL, dir 4381 fs/btrfs/send.c dir, dir_gen, name); dir 4383 fs/btrfs/send.c ret = __record_deleted_ref(num, dir, index, name, sctx); dir 6034 fs/btrfs/send.c static int record_parent_ref(int num, u64 dir, int index, struct fs_path *name, dir 6039 fs/btrfs/send.c return record_ref(ppctx->sctx->parent_root, dir, name, ppctx->sctx, dir 6388 fs/btrfs/send.c static int dir_changed(struct send_ctx *sctx, u64 dir) dir 6393 fs/btrfs/send.c ret = get_inode_info(sctx->send_root, dir, NULL, &new_gen, NULL, NULL, dir 6398 fs/btrfs/send.c ret = get_inode_info(sctx->parent_root, dir, NULL, &orig_gen, NULL, dir 1467 fs/btrfs/transaction.c parent_inode = pending->dir; dir 132 fs/btrfs/transaction.h struct inode *dir; dir 853 fs/btrfs/tree-log.c struct btrfs_inode *dir, dir 884 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, dir, BTRFS_I(inode), name, dir 1003 fs/btrfs/tree-log.c struct btrfs_inode *dir, dir 1061 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, dir, inode, dir 1155 fs/btrfs/tree-log.c di = btrfs_lookup_dir_index_item(trans, root, path, btrfs_ino(dir), dir 1158 fs/btrfs/tree-log.c ret = drop_one_dir_item(trans, root, path, dir, di); dir 1165 fs/btrfs/tree-log.c di = btrfs_lookup_dir_item(trans, root, path, btrfs_ino(dir), dir 1168 fs/btrfs/tree-log.c ret = drop_one_dir_item(trans, root, path, dir, di); dir 1279 fs/btrfs/tree-log.c struct inode *dir; dir 1282 fs/btrfs/tree-log.c dir = read_one_inode(root, parent_id); dir 1283 fs/btrfs/tree-log.c if (!dir) { dir 1288 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, BTRFS_I(dir), dir 1291 fs/btrfs/tree-log.c iput(dir); dir 1310 fs/btrfs/tree-log.c static int btrfs_inode_ref_exists(struct inode *inode, struct inode *dir, dir 1316 fs/btrfs/tree-log.c const u64 parent_id = btrfs_ino(BTRFS_I(dir)); dir 1350 fs/btrfs/tree-log.c struct inode *dir, struct inode *inode, const char *name, dir 1364 fs/btrfs/tree-log.c btrfs_ino(BTRFS_I(dir)), dir 1386 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, BTRFS_I(dir), BTRFS_I(other_inode), dir 1401 fs/btrfs/tree-log.c ret = btrfs_add_link(trans, BTRFS_I(dir), BTRFS_I(inode), dir 1423 fs/btrfs/tree-log.c struct inode *dir = NULL; dir 1459 fs/btrfs/tree-log.c dir = read_one_inode(root, parent_objectid); dir 1460 fs/btrfs/tree-log.c if (!dir) { dir 1479 fs/btrfs/tree-log.c if (!dir) dir 1480 fs/btrfs/tree-log.c dir = read_one_inode(root, parent_objectid); dir 1481 fs/btrfs/tree-log.c if (!dir) { dir 1493 fs/btrfs/tree-log.c if (!inode_in_dir(root, path, btrfs_ino(BTRFS_I(dir)), dir 1506 fs/btrfs/tree-log.c BTRFS_I(dir), dir 1527 fs/btrfs/tree-log.c ret = btrfs_inode_ref_exists(inode, dir, key->type, dir 1531 fs/btrfs/tree-log.c BTRFS_I(dir), dir 1546 fs/btrfs/tree-log.c ret = add_link(trans, root, dir, inode, name, namelen, dir 1558 fs/btrfs/tree-log.c iput(dir); dir 1559 fs/btrfs/tree-log.c dir = NULL; dir 1581 fs/btrfs/tree-log.c iput(dir); dir 1865 fs/btrfs/tree-log.c struct inode *dir; dir 1872 fs/btrfs/tree-log.c dir = read_one_inode(root, dirid); dir 1873 fs/btrfs/tree-log.c if (!dir) { dir 1878 fs/btrfs/tree-log.c ret = btrfs_add_link(trans, BTRFS_I(dir), BTRFS_I(inode), name, dir 1884 fs/btrfs/tree-log.c iput(dir); dir 1940 fs/btrfs/tree-log.c struct inode *dir; dir 1947 fs/btrfs/tree-log.c dir = read_one_inode(root, key->objectid); dir 1948 fs/btrfs/tree-log.c if (!dir) dir 2009 fs/btrfs/tree-log.c ret = drop_one_dir_item(trans, root, path, BTRFS_I(dir), dst_di); dir 2018 fs/btrfs/tree-log.c btrfs_i_size_write(BTRFS_I(dir), dir->i_size + name_len * 2); dir 2019 fs/btrfs/tree-log.c ret = btrfs_update_inode(trans, root, dir); dir 2022 fs/btrfs/tree-log.c iput(dir); dir 2220 fs/btrfs/tree-log.c struct inode *dir, dir 2283 fs/btrfs/tree-log.c ret = btrfs_unlink_inode(trans, root, BTRFS_I(dir), dir 2439 fs/btrfs/tree-log.c struct inode *dir; dir 2447 fs/btrfs/tree-log.c dir = read_one_inode(root, dirid); dir 2452 fs/btrfs/tree-log.c if (!dir) { dir 2495 fs/btrfs/tree-log.c log_path, dir, dir 2520 fs/btrfs/tree-log.c iput(dir); dir 3392 fs/btrfs/tree-log.c struct btrfs_inode *dir, u64 index) dir 3400 fs/btrfs/tree-log.c u64 dir_ino = btrfs_ino(dir); dir 3402 fs/btrfs/tree-log.c if (!inode_logged(trans, dir)) dir 3409 fs/btrfs/tree-log.c mutex_lock(&dir->log_mutex); dir 3484 fs/btrfs/tree-log.c mutex_unlock(&dir->log_mutex); dir 6345 fs/btrfs/tree-log.c struct btrfs_inode *dir, struct btrfs_inode *inode, dir 6366 fs/btrfs/tree-log.c if (dir->logged_trans == trans->transid) dir 6390 fs/btrfs/tree-log.c mutex_lock(&dir->log_mutex); dir 6391 fs/btrfs/tree-log.c dir->last_unlink_trans = trans->transid; dir 6392 fs/btrfs/tree-log.c mutex_unlock(&dir->log_mutex); dir 6408 fs/btrfs/tree-log.c struct btrfs_inode *dir) dir 6410 fs/btrfs/tree-log.c mutex_lock(&dir->log_mutex); dir 6411 fs/btrfs/tree-log.c dir->last_unlink_trans = trans->transid; dir 6412 fs/btrfs/tree-log.c mutex_unlock(&dir->log_mutex); dir 58 fs/btrfs/tree-log.h struct btrfs_inode *dir, u64 index); dir 66 fs/btrfs/tree-log.h struct btrfs_inode *dir, struct btrfs_inode *inode, dir 69 fs/btrfs/tree-log.h struct btrfs_inode *dir); dir 472 fs/btrfs/xattr.c struct inode *inode, struct inode *dir, dir 475 fs/btrfs/xattr.c return security_inode_init_security(inode, dir, qstr, dir 22 fs/btrfs/xattr.h struct inode *inode, struct inode *dir, dir 470 fs/cachefiles/daemon.c char *dir; dir 484 fs/cachefiles/daemon.c dir = kstrdup(args, GFP_KERNEL); dir 485 fs/cachefiles/daemon.c if (!dir) dir 488 fs/cachefiles/daemon.c cache->rootdirname = dir; dir 171 fs/cachefiles/internal.h struct dentry *dir, dir 174 fs/cachefiles/internal.h extern int cachefiles_cull(struct cachefiles_cache *cache, struct dentry *dir, dir 178 fs/cachefiles/internal.h struct dentry *dir, char *filename); dir 289 fs/cachefiles/namei.c struct dentry *dir, dir 299 fs/cachefiles/namei.c _enter(",'%pd','%pd'", dir, rep); dir 301 fs/cachefiles/namei.c _debug("remove %p from %p", rep, dir); dir 308 fs/cachefiles/namei.c path.dentry = dir; dir 314 fs/cachefiles/namei.c ret = vfs_unlink(d_inode(dir), rep, NULL); dir 320 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 331 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 340 fs/cachefiles/namei.c trap = lock_rename(cache->graveyard, dir); dir 343 fs/cachefiles/namei.c if (rep->d_parent != dir || IS_DEADDIR(d_inode(rep))) { dir 346 fs/cachefiles/namei.c unlock_rename(cache->graveyard, dir); dir 352 fs/cachefiles/namei.c unlock_rename(cache->graveyard, dir); dir 358 fs/cachefiles/namei.c unlock_rename(cache->graveyard, dir); dir 364 fs/cachefiles/namei.c unlock_rename(cache->graveyard, dir); dir 371 fs/cachefiles/namei.c unlock_rename(cache->graveyard, dir); dir 384 fs/cachefiles/namei.c unlock_rename(cache->graveyard, dir); dir 392 fs/cachefiles/namei.c unlock_rename(cache->graveyard, dir); dir 400 fs/cachefiles/namei.c unlock_rename(cache->graveyard, dir); dir 408 fs/cachefiles/namei.c path.dentry = dir; dir 416 fs/cachefiles/namei.c ret = vfs_rename(d_inode(dir), rep, dir 426 fs/cachefiles/namei.c unlock_rename(cache->graveyard, dir); dir 438 fs/cachefiles/namei.c struct dentry *dir; dir 447 fs/cachefiles/namei.c dir = dget_parent(object->dentry); dir 449 fs/cachefiles/namei.c inode_lock_nested(d_inode(dir), I_MUTEX_PARENT); dir 455 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 460 fs/cachefiles/namei.c if (dir == object->dentry->d_parent) { dir 461 fs/cachefiles/namei.c ret = cachefiles_bury_object(cache, object, dir, dir 468 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 473 fs/cachefiles/namei.c dput(dir); dir 488 fs/cachefiles/namei.c struct dentry *dir, *next = NULL; dir 512 fs/cachefiles/namei.c dir = dget(parent->dentry); dir 528 fs/cachefiles/namei.c inode_lock_nested(d_inode(dir), I_MUTEX_PARENT); dir 531 fs/cachefiles/namei.c next = lookup_one_len(name, dir, nlen); dir 559 fs/cachefiles/namei.c path.dentry = dir; dir 564 fs/cachefiles/namei.c ret = vfs_mkdir(d_inode(dir), next, 0); dir 573 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 595 fs/cachefiles/namei.c path.dentry = dir; dir 600 fs/cachefiles/namei.c ret = vfs_create(d_inode(dir), next, S_IFREG, true); dir 624 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 625 fs/cachefiles/namei.c dput(dir); dir 626 fs/cachefiles/namei.c dir = next; dir 645 fs/cachefiles/namei.c ret = cachefiles_bury_object(cache, object, dir, next, dir 663 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 664 fs/cachefiles/namei.c dput(dir); dir 665 fs/cachefiles/namei.c dir = NULL; dir 742 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 745 fs/cachefiles/namei.c dput(dir); dir 755 fs/cachefiles/namei.c struct dentry *dir, dir 766 fs/cachefiles/namei.c inode_lock(d_inode(dir)); dir 770 fs/cachefiles/namei.c subdir = lookup_one_len(dirname, dir, strlen(dirname)); dir 790 fs/cachefiles/namei.c path.dentry = dir; dir 794 fs/cachefiles/namei.c ret = vfs_mkdir(d_inode(dir), subdir, 0700); dir 810 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 840 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 846 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 852 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 864 fs/cachefiles/namei.c struct dentry *dir, dir 877 fs/cachefiles/namei.c inode_lock_nested(d_inode(dir), I_MUTEX_PARENT); dir 880 fs/cachefiles/namei.c victim = lookup_one_len(filename, dir, strlen(filename)); dir 892 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 921 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 927 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 950 fs/cachefiles/namei.c int cachefiles_cull(struct cachefiles_cache *cache, struct dentry *dir, dir 956 fs/cachefiles/namei.c _enter(",%pd/,%s", dir, filename); dir 958 fs/cachefiles/namei.c victim = cachefiles_check_active(cache, dir, filename); dir 977 fs/cachefiles/namei.c ret = cachefiles_bury_object(cache, NULL, dir, victim, false, dir 987 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 1010 fs/cachefiles/namei.c int cachefiles_check_in_use(struct cachefiles_cache *cache, struct dentry *dir, dir 1018 fs/cachefiles/namei.c victim = cachefiles_check_active(cache, dir, filename); dir 1022 fs/cachefiles/namei.c inode_unlock(d_inode(dir)); dir 161 fs/ceph/acl.c int ceph_pre_init_acls(struct inode *dir, umode_t *mode, dir 170 fs/ceph/acl.c err = posix_acl_create(dir, mode, &default_acl, &acl); dir 4241 fs/ceph/caps.c struct inode *dir, dir 4259 fs/ceph/caps.c if (!dir) { dir 4261 fs/ceph/caps.c dir = d_inode(parent); dir 4265 fs/ceph/caps.c ret = ceph_encode_inode_release(p, dir, mds, drop, unless, force); dir 127 fs/ceph/dir.c struct inode *dir = d_inode(parent); dir 133 fs/ceph/dir.c if (ptr_pos >= i_size_read(dir)) dir 138 fs/ceph/dir.c cache_ctl->page = find_lock_page(&dir->i_data, ptr_pgoff); dir 155 fs/ceph/dir.c if (ceph_dir_is_complete_ordered(dir) && ptr_pos < i_size_read(dir)) dir 182 fs/ceph/dir.c struct inode *dir = d_inode(parent); dir 189 fs/ceph/dir.c dout("__dcache_readdir %p v%u at %llx\n", dir, (unsigned)shared_gen, ctx->pos); dir 193 fs/ceph/dir.c u64 count = div_u64(i_size_read(dir), sizeof(struct dentry *)); dir 219 fs/ceph/dir.c dout("__dcache_readdir %p cache idx %llu\n", dir, idx); dir 733 fs/ceph/dir.c static struct dentry *ceph_lookup(struct inode *dir, struct dentry *dentry, dir 736 fs/ceph/dir.c struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb); dir 744 fs/ceph/dir.c dir, dentry, dentry); dir 751 fs/ceph/dir.c struct ceph_inode_info *ci = ceph_inode(dir); dir 755 fs/ceph/dir.c dout(" dir %p flags are %d\n", dir, ci->i_ceph_flags); dir 759 fs/ceph/dir.c !is_root_ceph_dentry(dir, dentry) && dir 764 fs/ceph/dir.c dout(" dir %p complete, -ENOENT\n", dir); dir 772 fs/ceph/dir.c op = ceph_snap(dir) == CEPH_SNAPDIR ? dir 781 fs/ceph/dir.c if (ceph_security_xattr_wanted(dir)) dir 785 fs/ceph/dir.c req->r_parent = dir; dir 799 fs/ceph/dir.c int ceph_handle_notrace_create(struct inode *dir, struct dentry *dentry) dir 801 fs/ceph/dir.c struct dentry *result = ceph_lookup(dir, dentry, 0); dir 822 fs/ceph/dir.c static int ceph_mknod(struct inode *dir, struct dentry *dentry, dir 825 fs/ceph/dir.c struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb); dir 831 fs/ceph/dir.c if (ceph_snap(dir) != CEPH_NOSNAP) dir 834 fs/ceph/dir.c if (ceph_quota_is_max_files_exceeded(dir)) { dir 839 fs/ceph/dir.c err = ceph_pre_init_acls(dir, &mode, &as_ctx); dir 847 fs/ceph/dir.c dir, dentry, mode, rdev); dir 855 fs/ceph/dir.c req->r_parent = dir; dir 865 fs/ceph/dir.c err = ceph_mdsc_do_request(mdsc, dir, req); dir 867 fs/ceph/dir.c err = ceph_handle_notrace_create(dir, dentry); dir 878 fs/ceph/dir.c static int ceph_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 881 fs/ceph/dir.c return ceph_mknod(dir, dentry, mode, 0); dir 884 fs/ceph/dir.c static int ceph_symlink(struct inode *dir, struct dentry *dentry, dir 887 fs/ceph/dir.c struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb); dir 893 fs/ceph/dir.c if (ceph_snap(dir) != CEPH_NOSNAP) dir 896 fs/ceph/dir.c if (ceph_quota_is_max_files_exceeded(dir)) { dir 905 fs/ceph/dir.c dout("symlink in dir %p dentry %p to '%s'\n", dir, dentry, dest); dir 917 fs/ceph/dir.c req->r_parent = dir; dir 923 fs/ceph/dir.c err = ceph_mdsc_do_request(mdsc, dir, req); dir 925 fs/ceph/dir.c err = ceph_handle_notrace_create(dir, dentry); dir 934 fs/ceph/dir.c static int ceph_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 936 fs/ceph/dir.c struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb); dir 943 fs/ceph/dir.c if (ceph_snap(dir) == CEPH_SNAPDIR) { dir 946 fs/ceph/dir.c dout("mksnap dir %p snap '%pd' dn %p\n", dir, dir 948 fs/ceph/dir.c } else if (ceph_snap(dir) == CEPH_NOSNAP) { dir 949 fs/ceph/dir.c dout("mkdir dir %p dn %p mode 0%ho\n", dir, dentry, mode); dir 956 fs/ceph/dir.c ceph_quota_is_max_files_exceeded(dir)) { dir 962 fs/ceph/dir.c err = ceph_pre_init_acls(dir, &mode, &as_ctx); dir 977 fs/ceph/dir.c req->r_parent = dir; dir 986 fs/ceph/dir.c err = ceph_mdsc_do_request(mdsc, dir, req); dir 990 fs/ceph/dir.c err = ceph_handle_notrace_create(dir, dentry); dir 1001 fs/ceph/dir.c static int ceph_link(struct dentry *old_dentry, struct inode *dir, dir 1004 fs/ceph/dir.c struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb); dir 1009 fs/ceph/dir.c if (ceph_snap(dir) != CEPH_NOSNAP) dir 1012 fs/ceph/dir.c dout("link in dir %p old_dentry %p dentry %p\n", dir, dir 1022 fs/ceph/dir.c req->r_parent = dir; dir 1028 fs/ceph/dir.c err = ceph_mdsc_do_request(mdsc, dir, req); dir 1042 fs/ceph/dir.c static int ceph_unlink(struct inode *dir, struct dentry *dentry) dir 1044 fs/ceph/dir.c struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb); dir 1051 fs/ceph/dir.c if (ceph_snap(dir) == CEPH_SNAPDIR) { dir 1053 fs/ceph/dir.c dout("rmsnap dir %p '%pd' dn %p\n", dir, dentry, dentry); dir 1055 fs/ceph/dir.c } else if (ceph_snap(dir) == CEPH_NOSNAP) { dir 1057 fs/ceph/dir.c dir, dentry, inode); dir 1069 fs/ceph/dir.c req->r_parent = dir; dir 1074 fs/ceph/dir.c err = ceph_mdsc_do_request(mdsc, dir, req); dir 1494 fs/ceph/dir.c struct inode *dir; dir 1503 fs/ceph/dir.c dir = d_inode(dentry->d_parent); dir 1504 fs/ceph/dir.c ci = ceph_inode(dir); dir 1523 fs/ceph/dir.c static int dir_lease_is_valid(struct inode *dir, struct dentry *dentry) dir 1525 fs/ceph/dir.c struct ceph_inode_info *ci = ceph_inode(dir); dir 1537 fs/ceph/dir.c if (dir == d_inode(dentry->d_parent) && dir 1545 fs/ceph/dir.c dir, (unsigned)atomic_read(&ci->i_shared_gen), dentry, valid); dir 1556 fs/ceph/dir.c struct inode *dir, *inode; dir 1560 fs/ceph/dir.c dir = d_inode_rcu(parent); dir 1561 fs/ceph/dir.c if (!dir) dir 1566 fs/ceph/dir.c dir = d_inode(parent); dir 1574 fs/ceph/dir.c if (ceph_snap(dir) != CEPH_NOSNAP) { dir 1584 fs/ceph/dir.c if (valid || dir_lease_is_valid(dir, dentry)) { dir 1594 fs/ceph/dir.c ceph_sb_to_client(dir->i_sb)->mdsc; dir 1602 fs/ceph/dir.c op = ceph_snap(dir) == CEPH_SNAPDIR ? dir 1608 fs/ceph/dir.c req->r_parent = dir; dir 1611 fs/ceph/dir.c if (ceph_security_xattr_wanted(dir)) dir 1637 fs/ceph/dir.c ceph_dir_clear_complete(dir); dir 1786 fs/ceph/dir.c unsigned ceph_dentry_hash(struct inode *dir, struct dentry *dn) dir 1788 fs/ceph/dir.c struct ceph_inode_info *dci = ceph_inode(dir); dir 53 fs/ceph/export.c struct inode *dir; dir 59 fs/ceph/export.c dir = d_inode_rcu(dentry->d_parent); dir 60 fs/ceph/export.c if (ceph_snap(dir) != CEPH_SNAPDIR) { dir 61 fs/ceph/export.c sfh->parent_ino = ceph_ino(dir); dir 62 fs/ceph/export.c sfh->hash = ceph_dentry_hash(dir, dentry); dir 339 fs/ceph/export.c struct inode* dir; dir 346 fs/ceph/export.c dir = __lookup_inode(inode->i_sb, ceph_ino(inode)); dir 347 fs/ceph/export.c if (IS_ERR(dir)) { dir 348 fs/ceph/export.c dn = ERR_CAST(dir); dir 354 fs/ceph/export.c struct inode *snapdir = ceph_get_snapdir(dir); dir 355 fs/ceph/export.c if (dir->i_nlink == 0) dir 357 fs/ceph/export.c iput(dir); dir 362 fs/ceph/export.c dir = snapdir; dir 368 fs/ceph/export.c dn = d_obtain_root(dir); dir 370 fs/ceph/export.c dn = d_obtain_alias(dir); dir 411 fs/ceph/export.c struct inode *dir = d_inode(parent); dir 418 fs/ceph/export.c if (ceph_ino(inode) != ceph_ino(dir)) dir 421 fs/ceph/export.c if (ceph_snap(dir) == CEPH_NOSNAP) { dir 427 fs/ceph/export.c if (ceph_snap(dir) != CEPH_SNAPDIR) dir 455 fs/ceph/export.c req->r_inode = dir; dir 456 fs/ceph/export.c ihold(dir); dir 459 fs/ceph/export.c inode_lock(dir); dir 461 fs/ceph/export.c inode_unlock(dir); dir 438 fs/ceph/file.c int ceph_atomic_open(struct inode *dir, struct dentry *dentry, dir 441 fs/ceph/file.c struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb); dir 450 fs/ceph/file.c dir, dentry, dentry, dir 457 fs/ceph/file.c if (ceph_quota_is_max_files_exceeded(dir)) dir 459 fs/ceph/file.c err = ceph_pre_init_acls(dir, &mode, &as_ctx); dir 471 fs/ceph/file.c req = prepare_open_request(dir->i_sb, flags, mode); dir 488 fs/ceph/file.c if (ceph_security_xattr_wanted(dir)) dir 492 fs/ceph/file.c req->r_parent = dir; dir 495 fs/ceph/file.c (flags & (O_CREAT|O_TRUNC)) ? dir : NULL, dir 502 fs/ceph/file.c err = ceph_handle_notrace_create(dir, dentry); dir 1042 fs/ceph/inode.c static void __update_dentry_lease(struct inode *dir, struct dentry *dentry, dir 1057 fs/ceph/inode.c if (ceph_snap(dir) != CEPH_NOSNAP) dir 1060 fs/ceph/inode.c di->lease_shared_gen = atomic_read(&ceph_inode(dir)->i_shared_gen); dir 1086 fs/ceph/inode.c static inline void update_dentry_lease(struct inode *dir, struct dentry *dentry, dir 1093 fs/ceph/inode.c __update_dentry_lease(dir, dentry, lease, session, from_time, dir 1112 fs/ceph/inode.c struct inode *dir; dir 1121 fs/ceph/inode.c dir = d_inode(dentry->d_parent); dir 1123 fs/ceph/inode.c if (!ceph_ino_compare(dir, pdvino)) dir 1138 fs/ceph/inode.c __update_dentry_lease(dir, dentry, lease, session, dir 1235 fs/ceph/inode.c struct inode *dir = req->r_parent; dir 1237 fs/ceph/inode.c if (dir) { dir 1238 fs/ceph/inode.c err = fill_inode(dir, NULL, dir 1248 fs/ceph/inode.c if (dir && req->r_op == CEPH_MDS_OP_LOOKUPNAME && dir 1257 fs/ceph/inode.c parent = d_find_any_alias(dir); dir 1285 fs/ceph/inode.c ceph_dir_clear_ordered(dir); dir 1334 fs/ceph/inode.c struct inode *dir = req->r_parent; dir 1339 fs/ceph/inode.c BUG_ON(!dir); dir 1340 fs/ceph/inode.c BUG_ON(d_inode(dn->d_parent) != dir); dir 1345 fs/ceph/inode.c BUG_ON(ceph_ino(dir) != dvino.ino); dir 1346 fs/ceph/inode.c BUG_ON(ceph_snap(dir) != dvino.snap); dir 1372 fs/ceph/inode.c ceph_dir_clear_ordered(dir); dir 1401 fs/ceph/inode.c ceph_dir_clear_ordered(dir); dir 1406 fs/ceph/inode.c update_dentry_lease(dir, dn, dir 1415 fs/ceph/inode.c ceph_dir_clear_ordered(dir); dir 1430 fs/ceph/inode.c update_dentry_lease(dir, dn, dir 1439 fs/ceph/inode.c struct inode *dir = req->r_parent; dir 1442 fs/ceph/inode.c BUG_ON(!dir); dir 1443 fs/ceph/inode.c BUG_ON(ceph_snap(dir) != CEPH_SNAPDIR); dir 1446 fs/ceph/inode.c ceph_dir_clear_ordered(dir); dir 1518 fs/ceph/inode.c static int fill_readdir_cache(struct inode *dir, struct dentry *dn, dir 1522 fs/ceph/inode.c struct ceph_inode_info *ci = ceph_inode(dir); dir 1530 fs/ceph/inode.c ctl->page = grab_cache_page(&dir->i_data, pgoff); dir 1532 fs/ceph/inode.c ctl->page = find_lock_page(&dir->i_data, pgoff); dir 768 fs/ceph/mds_client.c struct inode *dir) dir 794 fs/ceph/mds_client.c if (dir) { dir 795 fs/ceph/mds_client.c ihold(dir); dir 796 fs/ceph/mds_client.c req->r_unsafe_dir = dir; dir 921 fs/ceph/mds_client.c struct inode *dir; dir 925 fs/ceph/mds_client.c dir = req->r_parent ? : d_inode_rcu(parent); dir 927 fs/ceph/mds_client.c if (!dir || dir->i_sb != mdsc->fsc->sb) { dir 932 fs/ceph/mds_client.c } else if (ceph_snap(dir) != CEPH_NOSNAP) { dir 942 fs/ceph/mds_client.c inode = igrab(dir); dir 943 fs/ceph/mds_client.c hash = ceph_dentry_hash(dir, req->r_dentry); dir 2031 fs/ceph/mds_client.c struct inode *dir) dir 2033 fs/ceph/mds_client.c struct ceph_inode_info *ci = ceph_inode(dir); dir 2204 fs/ceph/mds_client.c static int build_dentry_path(struct dentry *dentry, struct inode *dir, dir 2211 fs/ceph/mds_client.c if (!dir) dir 2212 fs/ceph/mds_client.c dir = d_inode_rcu(dentry->d_parent); dir 2213 fs/ceph/mds_client.c if (dir && parent_locked && ceph_snap(dir) == CEPH_NOSNAP) { dir 2214 fs/ceph/mds_client.c *pino = ceph_ino(dir); dir 2666 fs/ceph/mds_client.c int ceph_mdsc_submit_request(struct ceph_mds_client *mdsc, struct inode *dir, dir 2682 fs/ceph/mds_client.c dout("submit_request on %p for inode %p\n", req, dir); dir 2684 fs/ceph/mds_client.c __register_request(mdsc, req, dir); dir 2746 fs/ceph/mds_client.c struct inode *dir, dir 2754 fs/ceph/mds_client.c err = ceph_mdsc_submit_request(mdsc, dir, req); dir 2767 fs/ceph/mds_client.c struct inode *dir = req->r_parent; dir 2770 fs/ceph/mds_client.c dout("invalidate_dir_request %p %p (complete, lease(s))\n", dir, old_dir); dir 2772 fs/ceph/mds_client.c ceph_dir_clear_complete(dir); dir 3974 fs/ceph/mds_client.c struct inode *dir; dir 3988 fs/ceph/mds_client.c dir = d_inode(dentry->d_parent); dir 3989 fs/ceph/mds_client.c lease->ino = cpu_to_le64(ceph_ino(dir)); dir 3990 fs/ceph/mds_client.c lease->first = lease->last = cpu_to_le64(ceph_snap(dir)); dir 468 fs/ceph/mds_client.h struct inode *dir); dir 472 fs/ceph/mds_client.h struct inode *dir, dir 475 fs/ceph/mds_client.h struct inode *dir, dir 997 fs/ceph/super.h int ceph_pre_init_acls(struct inode *dir, umode_t *mode, dir 1012 fs/ceph/super.h static inline int ceph_pre_init_acls(struct inode *dir, umode_t *mode, dir 1073 fs/ceph/super.h struct inode *dir, dir 1097 fs/ceph/super.h extern int ceph_atomic_open(struct inode *dir, struct dentry *dentry, dir 1111 fs/ceph/super.h extern int ceph_handle_notrace_create(struct inode *dir, struct dentry *dentry); dir 1121 fs/ceph/super.h extern unsigned ceph_dentry_hash(struct inode *dir, struct dentry *dn); dir 344 fs/ceph/xattr.c XATTR_LAYOUT_FIELD(dir, layout, stripe_unit), dir 345 fs/ceph/xattr.c XATTR_LAYOUT_FIELD(dir, layout, stripe_count), dir 346 fs/ceph/xattr.c XATTR_LAYOUT_FIELD(dir, layout, object_size), dir 347 fs/ceph/xattr.c XATTR_LAYOUT_FIELD(dir, layout, pool), dir 348 fs/ceph/xattr.c XATTR_LAYOUT_FIELD(dir, layout, pool_namespace), dir 349 fs/ceph/xattr.c XATTR_NAME_CEPH(dir, entries, 0), dir 350 fs/ceph/xattr.c XATTR_NAME_CEPH(dir, files, 0), dir 351 fs/ceph/xattr.c XATTR_NAME_CEPH(dir, subdirs, 0), dir 352 fs/ceph/xattr.c XATTR_RSTAT_FIELD(dir, rentries), dir 353 fs/ceph/xattr.c XATTR_RSTAT_FIELD(dir, rfiles), dir 354 fs/ceph/xattr.c XATTR_RSTAT_FIELD(dir, rsubdirs), dir 355 fs/ceph/xattr.c XATTR_RSTAT_FIELD(dir, rbytes), dir 356 fs/ceph/xattr.c XATTR_RSTAT_FIELD(dir, rctime), dir 732 fs/cifs/cifsfs.c struct inode *dir = d_inode(dentry); dir 735 fs/cifs/cifsfs.c if (!dir) { dir 740 fs/cifs/cifsfs.c if (!S_ISDIR(dir->i_mode)) { dir 71 fs/cifs/cifsfs.h extern int cifs_unlink(struct inode *dir, struct dentry *dentry); dir 1334 fs/cifs/inode.c int cifs_unlink(struct inode *dir, struct dentry *dentry) dir 1341 fs/cifs/inode.c struct super_block *sb = dir->i_sb; dir 1349 fs/cifs/inode.c cifs_dbg(FYI, "cifs_unlink, dir=0x%p, dentry=0x%p\n", dir, dentry); dir 1433 fs/cifs/inode.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 1434 fs/cifs/inode.c cifs_inode = CIFS_I(dir); dir 1435 fs/cifs/inode.c CIFS_I(dir)->time = 0; /* force revalidate of dir as well */ dir 2324 fs/cifs/smbdirect.c mr->sgl_count, mr->dir); dir 2452 fs/cifs/smbdirect.c enum dma_data_direction dir; dir 2490 fs/cifs/smbdirect.c dir = writing ? DMA_FROM_DEVICE : DMA_TO_DEVICE; dir 2491 fs/cifs/smbdirect.c smbdirect_mr->dir = dir; dir 2492 fs/cifs/smbdirect.c rc = ib_dma_map_sg(info->id->device, smbdirect_mr->sgl, num_pages, dir); dir 2495 fs/cifs/smbdirect.c num_pages, dir, rc); dir 2537 fs/cifs/smbdirect.c smbdirect_mr->sgl_count, smbdirect_mr->dir); dir 2606 fs/cifs/smbdirect.c smbdirect_mr->dir); dir 295 fs/cifs/smbdirect.h enum dma_data_direction dir; dir 41 fs/coda/dir.c static struct dentry *coda_lookup(struct inode *dir, struct dentry *entry, unsigned int flags) dir 43 fs/coda/dir.c struct super_block *sb = dir->i_sb; dir 51 fs/coda/dir.c coda_i2s(dir), length); dir 56 fs/coda/dir.c if (is_root_inode(dir) && coda_iscontrol(name, length)) { dir 61 fs/coda/dir.c int error = venus_lookup(sb, coda_i2f(dir), name, length, dir 103 fs/coda/dir.c static inline void coda_dir_update_mtime(struct inode *dir) dir 108 fs/coda/dir.c coda_flag_inode(dir, C_VATTR); dir 113 fs/coda/dir.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 122 fs/coda/dir.c static inline void coda_dir_inc_nlink(struct inode *dir) dir 124 fs/coda/dir.c if (dir->i_nlink >= 2) dir 125 fs/coda/dir.c inc_nlink(dir); dir 128 fs/coda/dir.c static inline void coda_dir_drop_nlink(struct inode *dir) dir 130 fs/coda/dir.c if (dir->i_nlink > 2) dir 131 fs/coda/dir.c drop_nlink(dir); dir 135 fs/coda/dir.c static int coda_create(struct inode *dir, struct dentry *de, umode_t mode, bool excl) dir 144 fs/coda/dir.c if (is_root_inode(dir) && coda_iscontrol(name, length)) dir 147 fs/coda/dir.c error = venus_create(dir->i_sb, coda_i2f(dir), name, length, dir 152 fs/coda/dir.c inode = coda_iget(dir->i_sb, &newfid, &attrs); dir 159 fs/coda/dir.c coda_dir_update_mtime(dir); dir 167 fs/coda/dir.c static int coda_mkdir(struct inode *dir, struct dentry *de, umode_t mode) dir 176 fs/coda/dir.c if (is_root_inode(dir) && coda_iscontrol(name, len)) dir 180 fs/coda/dir.c error = venus_mkdir(dir->i_sb, coda_i2f(dir), dir 185 fs/coda/dir.c inode = coda_iget(dir->i_sb, &newfid, &attrs); dir 192 fs/coda/dir.c coda_dir_inc_nlink(dir); dir 193 fs/coda/dir.c coda_dir_update_mtime(dir); dir 259 fs/coda/dir.c static int coda_unlink(struct inode *dir, struct dentry *de) dir 265 fs/coda/dir.c error = venus_remove(dir->i_sb, coda_i2f(dir), name, len); dir 269 fs/coda/dir.c coda_dir_update_mtime(dir); dir 274 fs/coda/dir.c static int coda_rmdir(struct inode *dir, struct dentry *de) dir 280 fs/coda/dir.c error = venus_rmdir(dir->i_sb, coda_i2f(dir), name, len); dir 287 fs/coda/dir.c coda_dir_drop_nlink(dir); dir 288 fs/coda/dir.c coda_dir_update_mtime(dir); dir 78 fs/configfs/configfs_internal.h extern void configfs_hash_and_remove(struct dentry * dir, const char * name); dir 95 fs/configfs/configfs_internal.h extern int configfs_symlink(struct inode *dir, struct dentry *dentry, dir 97 fs/configfs/configfs_internal.h extern int configfs_unlink(struct inode *dir, struct dentry *dentry); dir 451 fs/configfs/dir.c static struct dentry * configfs_lookup(struct inode *dir, dir 1270 fs/configfs/dir.c static int configfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 1453 fs/configfs/dir.c static int configfs_rmdir(struct inode *dir, struct dentry *dentry) dir 523 fs/configfs/file.c struct dentry *dir = item->ci_dentry; dir 524 fs/configfs/file.c struct configfs_dirent *parent_sd = dir->d_fsdata; dir 528 fs/configfs/file.c inode_lock_nested(d_inode(dir), I_MUTEX_NORMAL); dir 531 fs/configfs/file.c inode_unlock(d_inode(dir)); dir 545 fs/configfs/file.c struct dentry *dir = item->ci_dentry; dir 546 fs/configfs/file.c struct configfs_dirent *parent_sd = dir->d_fsdata; dir 550 fs/configfs/file.c inode_lock_nested(dir->d_inode, I_MUTEX_NORMAL); dir 553 fs/configfs/file.c inode_unlock(dir->d_inode); dir 228 fs/configfs/inode.c void configfs_hash_and_remove(struct dentry * dir, const char * name) dir 231 fs/configfs/inode.c struct configfs_dirent * parent_sd = dir->d_fsdata; dir 233 fs/configfs/inode.c if (d_really_is_negative(dir)) dir 237 fs/configfs/inode.c inode_lock(d_inode(dir)); dir 245 fs/configfs/inode.c configfs_drop_dentry(sd, dir); dir 250 fs/configfs/inode.c inode_unlock(d_inode(dir)); dir 142 fs/configfs/symlink.c int configfs_symlink(struct inode *dir, struct dentry *dentry, const char *symname) dir 191 fs/configfs/symlink.c inode_unlock(dir); dir 193 fs/configfs/symlink.c inode_lock(dir); dir 200 fs/configfs/symlink.c ret = inode_permission(dir, MAY_WRITE | MAY_EXEC); dir 220 fs/configfs/symlink.c int configfs_unlink(struct inode *dir, struct dentry *dentry) dir 765 fs/cramfs/inode.c static struct dentry *cramfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) dir 772 fs/cramfs/inode.c sorted = CRAMFS_SB(dir->i_sb)->flags & CRAMFS_FLAG_SORTED_DIRS; dir 773 fs/cramfs/inode.c while (offset < dir->i_size) { dir 777 fs/cramfs/inode.c int dir_off = OFFSET(dir) + offset; dir 779 fs/cramfs/inode.c de = cramfs_read(dir->i_sb, dir_off, sizeof(*de)+CRAMFS_MAXPATHLEN); dir 808 fs/cramfs/inode.c inode = get_cramfs_inode(dir->i_sb, de, dir_off); dir 357 fs/crypto/crypto.c struct dentry *dir; dir 384 fs/crypto/crypto.c dir = dget_parent(dentry); dir 385 fs/crypto/crypto.c err = fscrypt_get_encryption_info(d_inode(dir)); dir 386 fs/crypto/crypto.c valid = !fscrypt_has_encryption_key(d_inode(dir)); dir 387 fs/crypto/crypto.c dput(dir); dir 317 fs/crypto/fname.c int fscrypt_setup_filename(struct inode *dir, const struct qstr *iname, dir 326 fs/crypto/fname.c if (!IS_ENCRYPTED(dir) || fscrypt_is_dot_dotdot(iname)) { dir 331 fs/crypto/fname.c ret = fscrypt_get_encryption_info(dir); dir 335 fs/crypto/fname.c if (fscrypt_has_encryption_key(dir)) { dir 336 fs/crypto/fname.c if (!fscrypt_fname_encrypted_size(dir, iname->len, dir 337 fs/crypto/fname.c dir->i_sb->s_cop->max_namelen, dir 345 fs/crypto/fname.c ret = fname_encrypt(dir, iname, fname->crypto_buf.name, dir 33 fs/crypto/hooks.c struct dentry *dir; dir 39 fs/crypto/hooks.c dir = dget_parent(file_dentry(filp)); dir 40 fs/crypto/hooks.c if (IS_ENCRYPTED(d_inode(dir)) && dir 41 fs/crypto/hooks.c !fscrypt_has_permitted_context(d_inode(dir), inode)) { dir 44 fs/crypto/hooks.c d_inode(dir)->i_ino); dir 47 fs/crypto/hooks.c dput(dir); dir 52 fs/crypto/hooks.c int __fscrypt_prepare_link(struct inode *inode, struct inode *dir, dir 57 fs/crypto/hooks.c err = fscrypt_require_key(dir); dir 65 fs/crypto/hooks.c if (!fscrypt_has_permitted_context(dir, inode)) dir 107 fs/crypto/hooks.c int __fscrypt_prepare_lookup(struct inode *dir, struct dentry *dentry, dir 110 fs/crypto/hooks.c int err = fscrypt_setup_filename(dir, &dentry->d_name, 1, fname); dir 125 fs/crypto/hooks.c int __fscrypt_prepare_symlink(struct inode *dir, unsigned int len, dir 140 fs/crypto/hooks.c err = fscrypt_get_encryption_info(dir); dir 143 fs/crypto/hooks.c if (!fscrypt_has_encryption_key(dir)) dir 157 fs/crypto/hooks.c if (!fscrypt_fname_encrypted_size(dir, len, dir 2400 fs/dcache.c struct dentry *d_hash_and_lookup(struct dentry *dir, struct qstr *name) dir 2407 fs/dcache.c name->hash = full_name_hash(dir, name->name, name->len); dir 2408 fs/dcache.c if (dir->d_flags & DCACHE_OP_HASH) { dir 2409 fs/dcache.c int err = dir->d_op->d_hash(dir, name); dir 2413 fs/dcache.c return d_lookup(dir, name); dir 2482 fs/dcache.c static inline unsigned start_dir_add(struct inode *dir) dir 2486 fs/dcache.c unsigned n = dir->i_dir_seq; dir 2487 fs/dcache.c if (!(n & 1) && cmpxchg(&dir->i_dir_seq, n, n + 1) == n) dir 2493 fs/dcache.c static inline void end_dir_add(struct inode *dir, unsigned n) dir 2495 fs/dcache.c smp_store_release(&dir->i_dir_seq, n + 2); dir 2641 fs/dcache.c struct inode *dir = NULL; dir 2645 fs/dcache.c dir = dentry->d_parent->d_inode; dir 2646 fs/dcache.c n = start_dir_add(dir); dir 2658 fs/dcache.c if (dir) dir 2659 fs/dcache.c end_dir_add(dir, n); dir 2806 fs/dcache.c struct inode *dir = NULL; dir 2834 fs/dcache.c dir = target->d_parent->d_inode; dir 2835 fs/dcache.c n = start_dir_add(dir); dir 2871 fs/dcache.c if (dir) dir 2872 fs/dcache.c end_dir_add(dir, n); dir 26 fs/ecryptfs/inode.c struct dentry *dir; dir 28 fs/ecryptfs/inode.c dir = dget_parent(dentry); dir 29 fs/ecryptfs/inode.c inode_lock_nested(d_inode(dir), I_MUTEX_PARENT); dir 30 fs/ecryptfs/inode.c return dir; dir 33 fs/ecryptfs/inode.c static void unlock_dir(struct dentry *dir) dir 35 fs/ecryptfs/inode.c inode_unlock(d_inode(dir)); dir 36 fs/ecryptfs/inode.c dput(dir); dir 127 fs/ecryptfs/inode.c static int ecryptfs_do_unlink(struct inode *dir, struct dentry *dentry, dir 149 fs/ecryptfs/inode.c fsstack_copy_attr_times(dir, lower_dir_inode); dir 151 fs/ecryptfs/inode.c inode->i_ctime = dir->i_ctime; dir 424 fs/ecryptfs/inode.c static int ecryptfs_link(struct dentry *old_dentry, struct inode *dir, dir 443 fs/ecryptfs/inode.c rc = ecryptfs_interpose(lower_new_dentry, new_dentry, dir->i_sb); dir 446 fs/ecryptfs/inode.c fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); dir 447 fs/ecryptfs/inode.c fsstack_copy_inode_size(dir, d_inode(lower_dir_dentry)); dir 458 fs/ecryptfs/inode.c static int ecryptfs_unlink(struct inode *dir, struct dentry *dentry) dir 460 fs/ecryptfs/inode.c return ecryptfs_do_unlink(dir, dentry, d_inode(dentry)); dir 463 fs/ecryptfs/inode.c static int ecryptfs_symlink(struct inode *dir, struct dentry *dentry, dir 477 fs/ecryptfs/inode.c dir->i_sb)->mount_crypt_stat; dir 489 fs/ecryptfs/inode.c rc = ecryptfs_interpose(lower_dentry, dentry, dir->i_sb); dir 492 fs/ecryptfs/inode.c fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); dir 493 fs/ecryptfs/inode.c fsstack_copy_inode_size(dir, d_inode(lower_dir_dentry)); dir 502 fs/ecryptfs/inode.c static int ecryptfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 513 fs/ecryptfs/inode.c rc = ecryptfs_interpose(lower_dentry, dentry, dir->i_sb); dir 516 fs/ecryptfs/inode.c fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); dir 517 fs/ecryptfs/inode.c fsstack_copy_inode_size(dir, d_inode(lower_dir_dentry)); dir 518 fs/ecryptfs/inode.c set_nlink(dir, d_inode(lower_dir_dentry)->i_nlink); dir 526 fs/ecryptfs/inode.c static int ecryptfs_rmdir(struct inode *dir, struct dentry *dentry) dir 547 fs/ecryptfs/inode.c fsstack_copy_attr_times(dir, lower_dir_inode); dir 548 fs/ecryptfs/inode.c set_nlink(dir, lower_dir_inode->i_nlink); dir 558 fs/ecryptfs/inode.c ecryptfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) dir 569 fs/ecryptfs/inode.c rc = ecryptfs_interpose(lower_dentry, dentry, dir->i_sb); dir 572 fs/ecryptfs/inode.c fsstack_copy_attr_times(dir, d_inode(lower_dir_dentry)); dir 573 fs/ecryptfs/inode.c fsstack_copy_inode_size(dir, d_inode(lower_dir_dentry)); dir 16 fs/efivarfs/inode.c const struct inode *dir, int mode, dir 68 fs/efivarfs/inode.c static int efivarfs_create(struct inode *dir, struct dentry *dentry, dir 94 fs/efivarfs/inode.c inode = efivarfs_get_inode(dir->i_sb, dir, mode, 0, is_removable); dir 122 fs/efivarfs/inode.c static int efivarfs_unlink(struct inode *dir, struct dentry *dentry) dir 15 fs/efivarfs/internal.h const struct inode *dir, int mode, dev_t dev, dir 113 fs/efs/efs.h #define EFS_SLOTAT(dir, slot) EFS_REALOFF((dir)->space[slot]) dir 65 fs/efs/namei.c struct dentry *efs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) dir 70 fs/efs/namei.c inodenum = efs_find_entry(dir, dentry->d_name.name, dentry->d_name.len); dir 72 fs/efs/namei.c inode = efs_iget(dir->i_sb, inodenum); dir 24 fs/erofs/dir.c static int erofs_fill_dentries(struct inode *dir, struct dir_context *ctx, dir 50 fs/erofs/dir.c erofs_err(dir->i_sb, "bogus dirent @ nid %llu", dir 51 fs/erofs/dir.c EROFS_I(dir)->nid); dir 70 fs/erofs/dir.c struct inode *dir = file_inode(f); dir 71 fs/erofs/dir.c struct address_space *mapping = dir->i_mapping; dir 72 fs/erofs/dir.c const size_t dirsize = i_size_read(dir); dir 88 fs/erofs/dir.c erofs_err(dir->i_sb, dir 90 fs/erofs/dir.c i, EROFS_I(dir)->nid); dir 101 fs/erofs/dir.c erofs_err(dir->i_sb, dir 103 fs/erofs/dir.c nameoff, EROFS_I(dir)->nid); dir 120 fs/erofs/dir.c err = erofs_fill_dentries(dir, ctx, de, &ofs, dir 371 fs/erofs/internal.h struct inode *erofs_iget(struct super_block *sb, erofs_nid_t nid, bool dir); dir 378 fs/erofs/internal.h int erofs_namei(struct inode *dir, struct qstr *name, dir 90 fs/erofs/namei.c static struct page *find_target_block_classic(struct inode *dir, dir 96 fs/erofs/namei.c struct address_space *const mapping = dir->i_mapping; dir 101 fs/erofs/namei.c back = erofs_inode_datablocks(dir) - 1; dir 119 fs/erofs/namei.c erofs_err(dir->i_sb, dir 121 fs/erofs/namei.c mid, EROFS_I(dir)->nid); dir 168 fs/erofs/namei.c int erofs_namei(struct inode *dir, dir 178 fs/erofs/namei.c if (!dir->i_size) dir 185 fs/erofs/namei.c page = find_target_block_classic(dir, &qn, &ndirents); dir 209 fs/erofs/namei.c static struct dentry *erofs_lookup(struct inode *dir, dir 222 fs/erofs/namei.c trace_erofs_lookup(dir, dentry, flags); dir 229 fs/erofs/namei.c err = erofs_namei(dir, &dentry->d_name, &nid, &d_type); dir 239 fs/erofs/namei.c inode = erofs_iget(dir->i_sb, nid, d_type == FT_DIR); dir 27 fs/exportfs/expfs.c static int exportfs_get_name(struct vfsmount *mnt, struct dentry *dir, dir 30 fs/exportfs/expfs.c const struct export_operations *nop = dir->d_sb->s_export_op; dir 31 fs/exportfs/expfs.c struct path path = {.mnt = mnt, .dentry = dir}; dir 34 fs/exportfs/expfs.c return nop->get_name(dir, name, child); dir 280 fs/exportfs/expfs.c struct inode *dir = path->dentry->d_inode; dir 294 fs/exportfs/expfs.c if (!dir || !S_ISDIR(dir->i_mode)) dir 297 fs/exportfs/expfs.c if (!dir->i_fop) dir 247 fs/ext2/acl.c ext2_init_acl(struct inode *inode, struct inode *dir) dir 252 fs/ext2/acl.c error = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); dir 67 fs/ext2/acl.h static inline int ext2_init_acl (struct inode *inode, struct inode *dir) dir 93 fs/ext2/dir.c struct inode *dir = mapping->host; dir 96 fs/ext2/dir.c inode_inc_iversion(dir); dir 99 fs/ext2/dir.c if (pos+len > dir->i_size) { dir 100 fs/ext2/dir.c i_size_write(dir, pos+len); dir 101 fs/ext2/dir.c mark_inode_dirty(dir); dir 104 fs/ext2/dir.c if (IS_DIRSYNC(dir)) { dir 107 fs/ext2/dir.c err = sync_inode_metadata(dir, 1); dir 117 fs/ext2/dir.c struct inode *dir = page->mapping->host; dir 118 fs/ext2/dir.c struct super_block *sb = dir->i_sb; dir 119 fs/ext2/dir.c unsigned chunk_size = ext2_chunk_size(dir); dir 127 fs/ext2/dir.c if ((dir->i_size >> PAGE_SHIFT) == page->index) { dir 128 fs/ext2/dir.c limit = dir->i_size & ~PAGE_MASK; dir 161 fs/ext2/dir.c "of chunk size", dir->i_ino); dir 181 fs/ext2/dir.c dir->i_ino, error, (page->index<<PAGE_SHIFT)+offs, dir 191 fs/ext2/dir.c dir->i_ino, (page->index<<PAGE_SHIFT)+offs, dir 199 fs/ext2/dir.c static struct page * ext2_get_page(struct inode *dir, unsigned long n, dir 202 fs/ext2/dir.c struct address_space *mapping = dir->i_mapping; dir 340 fs/ext2/dir.c struct ext2_dir_entry_2 *ext2_find_entry (struct inode *dir, dir 347 fs/ext2/dir.c unsigned long npages = dir_pages(dir); dir 349 fs/ext2/dir.c struct ext2_inode_info *ei = EXT2_I(dir); dir 365 fs/ext2/dir.c page = ext2_get_page(dir, n, dir_has_error); dir 369 fs/ext2/dir.c kaddr += ext2_last_byte(dir, n) - reclen; dir 372 fs/ext2/dir.c ext2_error(dir->i_sb, __func__, dir 388 fs/ext2/dir.c if (unlikely(n > (dir->i_blocks >> (PAGE_SHIFT - 9)))) { dir 389 fs/ext2/dir.c ext2_error(dir->i_sb, __func__, dir 391 fs/ext2/dir.c dir->i_ino, dir->i_size, dir 392 fs/ext2/dir.c (unsigned long long)dir->i_blocks); dir 405 fs/ext2/dir.c struct ext2_dir_entry_2 * ext2_dotdot (struct inode *dir, struct page **p) dir 407 fs/ext2/dir.c struct page *page = ext2_get_page(dir, 0, 0); dir 417 fs/ext2/dir.c ino_t ext2_inode_by_name(struct inode *dir, const struct qstr *child) dir 423 fs/ext2/dir.c de = ext2_find_entry (dir, child, &page); dir 437 fs/ext2/dir.c void ext2_set_link(struct inode *dir, struct ext2_dir_entry_2 *de, dir 453 fs/ext2/dir.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 454 fs/ext2/dir.c EXT2_I(dir)->i_flags &= ~EXT2_BTREE_FL; dir 455 fs/ext2/dir.c mark_inode_dirty(dir); dir 463 fs/ext2/dir.c struct inode *dir = d_inode(dentry->d_parent); dir 466 fs/ext2/dir.c unsigned chunk_size = ext2_chunk_size(dir); dir 471 fs/ext2/dir.c unsigned long npages = dir_pages(dir); dir 485 fs/ext2/dir.c page = ext2_get_page(dir, n, 0); dir 491 fs/ext2/dir.c dir_end = kaddr + ext2_last_byte(dir, n); dir 504 fs/ext2/dir.c ext2_error(dir->i_sb, __func__, dir 543 fs/ext2/dir.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 544 fs/ext2/dir.c EXT2_I(dir)->i_flags &= ~EXT2_BTREE_FL; dir 545 fs/ext2/dir.c mark_inode_dirty(dir); dir 560 fs/ext2/dir.c int ext2_delete_entry (struct ext2_dir_entry_2 * dir, struct page * page ) dir 564 fs/ext2/dir.c unsigned from = ((char*)dir - kaddr) & ~(ext2_chunk_size(inode)-1); dir 565 fs/ext2/dir.c unsigned to = ((char *)dir - kaddr) + dir 566 fs/ext2/dir.c ext2_rec_len_from_disk(dir->rec_len); dir 572 fs/ext2/dir.c while ((char*)de < (char*)dir) { dir 590 fs/ext2/dir.c dir->inode = 0; dir 66 fs/ext2/ialloc.c static void ext2_release_inode(struct super_block *sb, int group, int dir) dir 80 fs/ext2/ialloc.c if (dir) dir 83 fs/ext2/ialloc.c if (dir) dir 427 fs/ext2/ialloc.c struct inode *ext2_new_inode(struct inode *dir, umode_t mode, dir 442 fs/ext2/ialloc.c sb = dir->i_sb; dir 452 fs/ext2/ialloc.c group = find_group_dir(sb, dir); dir 454 fs/ext2/ialloc.c group = find_group_orlov(sb, dir); dir 456 fs/ext2/ialloc.c group = find_group_other(sb, dir); dir 551 fs/ext2/ialloc.c inode->i_gid = dir->i_gid; dir 553 fs/ext2/ialloc.c inode_init_owner(inode, dir, mode); dir 560 fs/ext2/ialloc.c ext2_mask_flags(mode, EXT2_I(dir)->i_flags & EXT2_FL_INHERITED); dir 591 fs/ext2/ialloc.c err = ext2_init_acl(inode, dir); dir 595 fs/ext2/ialloc.c err = ext2_init_security(inode, dir, qstr); dir 56 fs/ext2/namei.c static struct dentry *ext2_lookup(struct inode * dir, struct dentry *dentry, unsigned int flags) dir 64 fs/ext2/namei.c ino = ext2_inode_by_name(dir, &dentry->d_name); dir 67 fs/ext2/namei.c inode = ext2_iget(dir->i_sb, ino); dir 69 fs/ext2/namei.c ext2_error(dir->i_sb, __func__, dir 95 fs/ext2/namei.c static int ext2_create (struct inode * dir, struct dentry * dentry, umode_t mode, bool excl) dir 100 fs/ext2/namei.c err = dquot_initialize(dir); dir 104 fs/ext2/namei.c inode = ext2_new_inode(dir, mode, &dentry->d_name); dir 113 fs/ext2/namei.c static int ext2_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) dir 115 fs/ext2/namei.c struct inode *inode = ext2_new_inode(dir, mode, NULL); dir 126 fs/ext2/namei.c static int ext2_mknod (struct inode * dir, struct dentry *dentry, umode_t mode, dev_t rdev) dir 131 fs/ext2/namei.c err = dquot_initialize(dir); dir 135 fs/ext2/namei.c inode = ext2_new_inode (dir, mode, &dentry->d_name); dir 148 fs/ext2/namei.c static int ext2_symlink (struct inode * dir, struct dentry * dentry, dir 151 fs/ext2/namei.c struct super_block * sb = dir->i_sb; dir 159 fs/ext2/namei.c err = dquot_initialize(dir); dir 163 fs/ext2/namei.c inode = ext2_new_inode (dir, S_IFLNK | S_IRWXUGO, &dentry->d_name); dir 198 fs/ext2/namei.c static int ext2_link (struct dentry * old_dentry, struct inode * dir, dir 204 fs/ext2/namei.c err = dquot_initialize(dir); dir 222 fs/ext2/namei.c static int ext2_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) dir 227 fs/ext2/namei.c err = dquot_initialize(dir); dir 231 fs/ext2/namei.c inode_inc_link_count(dir); dir 233 fs/ext2/namei.c inode = ext2_new_inode(dir, S_IFDIR | mode, &dentry->d_name); dir 247 fs/ext2/namei.c err = ext2_make_empty(inode, dir); dir 264 fs/ext2/namei.c inode_dec_link_count(dir); dir 268 fs/ext2/namei.c static int ext2_unlink(struct inode * dir, struct dentry *dentry) dir 275 fs/ext2/namei.c err = dquot_initialize(dir); dir 279 fs/ext2/namei.c de = ext2_find_entry (dir, &dentry->d_name, &page); dir 289 fs/ext2/namei.c inode->i_ctime = dir->i_ctime; dir 296 fs/ext2/namei.c static int ext2_rmdir (struct inode * dir, struct dentry *dentry) dir 302 fs/ext2/namei.c err = ext2_unlink(dir, dentry); dir 306 fs/ext2/namei.c inode_dec_link_count(dir); dir 107 fs/ext2/xattr.h extern int ext2_init_security(struct inode *inode, struct inode *dir, dir 110 fs/ext2/xattr.h static inline int ext2_init_security(struct inode *inode, struct inode *dir, dir 47 fs/ext2/xattr_security.c ext2_init_security(struct inode *inode, struct inode *dir, dir 50 fs/ext2/xattr_security.c return security_inode_init_security(inode, dir, qstr, dir 275 fs/ext4/acl.c ext4_init_acl(handle_t *handle, struct inode *inode, struct inode *dir) dir 280 fs/ext4/acl.c error = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); dir 68 fs/ext4/acl.h ext4_init_acl(handle_t *handle, struct inode *inode, struct inode *dir) dir 67 fs/ext4/dir.c struct inode *dir, struct file *filp, dir 74 fs/ext4/dir.c dir->i_sb->s_blocksize); dir 90 fs/ext4/dir.c le32_to_cpu(EXT4_SB(dir->i_sb)->s_es->s_inodes_count))) dir 102 fs/ext4/dir.c ext4_error_inode(dir, function, line, bh->b_blocknr, dir 636 fs/ext4/dir.c int ext4_check_all_de(struct inode *dir, struct buffer_head *bh, void *buf, dir 647 fs/ext4/dir.c if (ext4_check_dir_entry(dir, NULL, de, bh, dir 2077 fs/ext4/ext4.h #define is_dx(dir) (ext4_has_feature_dir_index((dir)->i_sb) && \ dir 2078 fs/ext4/ext4.h ext4_test_inode_flag((dir), EXT4_INODE_INDEX)) dir 2079 fs/ext4/ext4.h #define EXT4_DIR_LINK_MAX(dir) unlikely((dir)->i_nlink >= EXT4_LINK_MAX && \ dir 2080 fs/ext4/ext4.h !(ext4_has_feature_dir_nlink((dir)->i_sb) && is_dx(dir))) dir 2081 fs/ext4/ext4.h #define EXT4_DIR_LINK_EMPTY(dir) ((dir)->i_nlink == 2 || (dir)->i_nlink == 1) dir 2368 fs/ext4/ext4.h extern void ext4_fname_setup_ci_filename(struct inode *dir, dir 2386 fs/ext4/ext4.h static inline int ext4_fname_setup_filename(struct inode *dir, dir 2394 fs/ext4/ext4.h err = fscrypt_setup_filename(dir, iname, lookup, &name); dir 2401 fs/ext4/ext4.h ext4_fname_setup_ci_filename(dir, iname, &fname->cf_name); dir 2406 fs/ext4/ext4.h static inline int ext4_fname_prepare_lookup(struct inode *dir, dir 2413 fs/ext4/ext4.h err = fscrypt_prepare_lookup(dir, dentry, &name); dir 2420 fs/ext4/ext4.h ext4_fname_setup_ci_filename(dir, &dentry->d_name, &fname->cf_name); dir 2442 fs/ext4/ext4.h static inline int ext4_fname_setup_filename(struct inode *dir, dir 2452 fs/ext4/ext4.h ext4_fname_setup_ci_filename(dir, iname, &fname->cf_name); dir 2458 fs/ext4/ext4.h static inline int ext4_fname_prepare_lookup(struct inode *dir, dir 2462 fs/ext4/ext4.h return ext4_fname_setup_filename(dir, &dentry->d_name, 1, fname); dir 2480 fs/ext4/ext4.h #define ext4_check_dir_entry(dir, filp, de, bh, buf, size, offset) \ dir 2481 fs/ext4/ext4.h unlikely(__ext4_check_dir_entry(__func__, __LINE__, (dir), (filp), \ dir 2488 fs/ext4/ext4.h extern int ext4_find_dest_de(struct inode *dir, struct inode *inode, dir 2516 fs/ext4/ext4.h extern int ext4_check_all_de(struct inode *dir, struct buffer_head *bh, dir 2523 fs/ext4/ext4.h extern int ext4fs_dirhash(const struct inode *dir, const char *name, int len, dir 2533 fs/ext4/ext4.h #define ext4_new_inode(handle, dir, mode, qstr, goal, owner, i_flags) \ dir 2534 fs/ext4/ext4.h __ext4_new_inode((handle), (dir), (mode), (qstr), (goal), (owner), \ dir 2536 fs/ext4/ext4.h #define ext4_new_inode_start_handle(dir, mode, qstr, goal, owner, \ dir 2538 fs/ext4/ext4.h __ext4_new_inode(NULL, (dir), (mode), (qstr), (goal), (owner), \ dir 2675 fs/ext4/ext4.h struct inode *dir, dir 2680 fs/ext4/ext4.h struct inode *dir, dir 3162 fs/ext4/ext4.h struct inode *dir, struct inode *inode); dir 3170 fs/ext4/ext4.h struct inode *dir, ext4_lblk_t block, dir 3174 fs/ext4/ext4.h extern struct buffer_head *ext4_find_inline_entry(struct inode *dir, dir 3179 fs/ext4/ext4.h struct inode *dir, dir 3183 fs/ext4/ext4.h extern bool empty_inline_dir(struct inode *dir, int *has_inline_data); dir 274 fs/ext4/hash.c int ext4fs_dirhash(const struct inode *dir, const char *name, int len, dir 278 fs/ext4/hash.c const struct unicode_map *um = EXT4_SB(dir->i_sb)->s_encoding; dir 283 fs/ext4/hash.c if (len && IS_CASEFOLDED(dir) && um) { dir 740 fs/ext4/ialloc.c struct inode *__ext4_new_inode(handle_t *handle, struct inode *dir, dir 763 fs/ext4/ialloc.c if (!dir || !dir->i_nlink) dir 766 fs/ext4/ialloc.c sb = dir->i_sb; dir 772 fs/ext4/ialloc.c if ((IS_ENCRYPTED(dir) || DUMMY_ENCRYPTION_ENABLED(sbi)) && dir 775 fs/ext4/ialloc.c err = fscrypt_get_encryption_info(dir); dir 778 fs/ext4/ialloc.c if (!fscrypt_has_encryption_key(dir)) dir 785 fs/ext4/ialloc.c struct posix_acl *p = get_acl(dir, ACL_TYPE_DEFAULT); dir 826 fs/ext4/ialloc.c trace_ext4_request_inode(dir, mode); dir 844 fs/ext4/ialloc.c inode->i_gid = dir->i_gid; dir 846 fs/ext4/ialloc.c inode_init_owner(inode, dir, mode); dir 849 fs/ext4/ialloc.c ext4_test_inode_flag(dir, EXT4_INODE_PROJINHERIT)) dir 850 fs/ext4/ialloc.c ei->i_projid = EXT4_I(dir)->i_projid; dir 869 fs/ext4/ialloc.c ret2 = find_group_orlov(sb, dir, &group, mode, qstr); dir 871 fs/ext4/ialloc.c ret2 = find_group_other(sb, dir, &group, mode); dir 874 fs/ext4/ialloc.c EXT4_I(dir)->i_last_alloc_group = group; dir 926 fs/ext4/ialloc.c handle = __ext4_journal_start_sb(dir->i_sb, line_no, dir 1097 fs/ext4/ialloc.c ext4_mask_flags(mode, EXT4_I(dir)->i_flags & EXT4_FL_INHERITED); dir 1150 fs/ext4/ialloc.c err = fscrypt_inherit_context(dir, inode, handle, true); dir 1156 fs/ext4/ialloc.c err = ext4_init_acl(handle, inode, dir); dir 1160 fs/ext4/ialloc.c err = ext4_init_security(handle, inode, dir, qstr); dir 1185 fs/ext4/ialloc.c trace_ext4_allocate_inode(inode, dir, mode); dir 983 fs/ext4/inline.c void ext4_show_inline_dir(struct inode *dir, struct buffer_head *bh, dir 991 fs/ext4/inline.c trace_printk("inode %lu\n", dir->i_ino); dir 998 fs/ext4/inline.c if (ext4_check_dir_entry(dir, NULL, de, bh, dir 1007 fs/ext4/inline.c #define ext4_show_inline_dir(dir, bh, inline_start, inline_size) dir 1017 fs/ext4/inline.c struct inode *dir, dir 1025 fs/ext4/inline.c err = ext4_find_dest_de(dir, inode, iloc->bh, inline_start, dir 1036 fs/ext4/inline.c ext4_show_inline_dir(dir, iloc->bh, inline_start, inline_size); dir 1049 fs/ext4/inline.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 1050 fs/ext4/inline.c ext4_update_dx_flag(dir); dir 1051 fs/ext4/inline.c inode_inc_iversion(dir); dir 1096 fs/ext4/inline.c static int ext4_update_inline_dir(handle_t *handle, struct inode *dir, dir 1100 fs/ext4/inline.c int old_size = EXT4_I(dir)->i_inline_size - EXT4_MIN_INLINE_DATA_SIZE; dir 1101 fs/ext4/inline.c int new_size = get_max_inline_xattr_value_size(dir, iloc); dir 1106 fs/ext4/inline.c ret = ext4_update_inline_data(handle, dir, dir 1111 fs/ext4/inline.c ext4_update_final_de(ext4_get_inline_xattr_pos(dir, iloc), old_size, dir 1112 fs/ext4/inline.c EXT4_I(dir)->i_inline_size - dir 1114 fs/ext4/inline.c dir->i_size = EXT4_I(dir)->i_disksize = EXT4_I(dir)->i_inline_size; dir 1261 fs/ext4/inline.c struct inode *dir, struct inode *inode) dir 1267 fs/ext4/inline.c ret = ext4_get_inode_loc(dir, &iloc); dir 1271 fs/ext4/inline.c ext4_write_lock_xattr(dir, &no_expand); dir 1272 fs/ext4/inline.c if (!ext4_has_inline_data(dir)) dir 1279 fs/ext4/inline.c ret = ext4_add_dirent_to_inline(handle, fname, dir, inode, &iloc, dir 1285 fs/ext4/inline.c inline_size = EXT4_I(dir)->i_inline_size - dir 1289 fs/ext4/inline.c ret = ext4_update_inline_dir(handle, dir, &iloc); dir 1293 fs/ext4/inline.c inline_size = EXT4_I(dir)->i_inline_size - dir 1298 fs/ext4/inline.c inline_start = ext4_get_inline_xattr_pos(dir, &iloc); dir 1300 fs/ext4/inline.c ret = ext4_add_dirent_to_inline(handle, fname, dir, dir 1313 fs/ext4/inline.c ret = ext4_convert_inline_data_nolock(handle, dir, &iloc); dir 1316 fs/ext4/inline.c ext4_write_unlock_xattr(dir, &no_expand); dir 1317 fs/ext4/inline.c ext4_mark_inode_dirty(handle, dir); dir 1328 fs/ext4/inline.c struct inode *dir, ext4_lblk_t block, dir 1407 fs/ext4/inline.c ext4fs_dirhash(dir, de->name, de->name_len, hinfo); dir 1622 fs/ext4/inline.c struct buffer_head *ext4_find_inline_entry(struct inode *dir, dir 1632 fs/ext4/inline.c if (ext4_get_inode_loc(dir, &iloc)) dir 1635 fs/ext4/inline.c down_read(&EXT4_I(dir)->xattr_sem); dir 1636 fs/ext4/inline.c if (!ext4_has_inline_data(dir)) { dir 1645 fs/ext4/inline.c dir, fname, 0, res_dir); dir 1651 fs/ext4/inline.c if (ext4_get_inline_size(dir) == EXT4_MIN_INLINE_DATA_SIZE) dir 1654 fs/ext4/inline.c inline_start = ext4_get_inline_xattr_pos(dir, &iloc); dir 1655 fs/ext4/inline.c inline_size = ext4_get_inline_size(dir) - EXT4_MIN_INLINE_DATA_SIZE; dir 1658 fs/ext4/inline.c dir, fname, 0, res_dir); dir 1666 fs/ext4/inline.c up_read(&EXT4_I(dir)->xattr_sem); dir 1671 fs/ext4/inline.c struct inode *dir, dir 1680 fs/ext4/inline.c err = ext4_get_inode_loc(dir, &iloc); dir 1684 fs/ext4/inline.c ext4_write_lock_xattr(dir, &no_expand); dir 1685 fs/ext4/inline.c if (!ext4_has_inline_data(dir)) { dir 1697 fs/ext4/inline.c inline_start = ext4_get_inline_xattr_pos(dir, &iloc); dir 1698 fs/ext4/inline.c inline_size = ext4_get_inline_size(dir) - dir 1707 fs/ext4/inline.c err = ext4_generic_delete_entry(handle, dir, de_del, bh, dir 1712 fs/ext4/inline.c ext4_show_inline_dir(dir, iloc.bh, inline_start, inline_size); dir 1714 fs/ext4/inline.c ext4_write_unlock_xattr(dir, &no_expand); dir 1716 fs/ext4/inline.c err = ext4_mark_inode_dirty(handle, dir); dir 1719 fs/ext4/inline.c ext4_std_error(dir->i_sb, err); dir 1752 fs/ext4/inline.c bool empty_inline_dir(struct inode *dir, int *has_inline_data) dir 1762 fs/ext4/inline.c err = ext4_get_inode_loc(dir, &iloc); dir 1764 fs/ext4/inline.c EXT4_ERROR_INODE(dir, "error %d getting inode %lu block", dir 1765 fs/ext4/inline.c err, dir->i_ino); dir 1769 fs/ext4/inline.c down_read(&EXT4_I(dir)->xattr_sem); dir 1770 fs/ext4/inline.c if (!ext4_has_inline_data(dir)) { dir 1777 fs/ext4/inline.c ext4_warning(dir->i_sb, dir 1779 fs/ext4/inline.c dir->i_ino); dir 1784 fs/ext4/inline.c inline_len = ext4_get_inline_size(dir); dir 1787 fs/ext4/inline.c de = ext4_get_inline_entry(dir, &iloc, offset, dir 1789 fs/ext4/inline.c if (ext4_check_dir_entry(dir, NULL, de, dir 1792 fs/ext4/inline.c ext4_warning(dir->i_sb, dir 1796 fs/ext4/inline.c dir->i_ino, le32_to_cpu(de->inode), dir 1810 fs/ext4/inline.c up_read(&EXT4_I(dir)->xattr_sem); dir 269 fs/ext4/namei.c static unsigned dx_root_limit(struct inode *dir, unsigned infosize); dir 270 fs/ext4/namei.c static unsigned dx_node_limit(struct inode *dir); dir 272 fs/ext4/namei.c struct inode *dir, dir 276 fs/ext4/namei.c static int dx_make_map(struct inode *dir, struct ext4_dir_entry_2 *de, dir 285 fs/ext4/namei.c static int ext4_htree_next_block(struct inode *dir, __u32 hash, dir 289 fs/ext4/namei.c static struct buffer_head * ext4_dx_find_entry(struct inode *dir, dir 293 fs/ext4/namei.c struct inode *dir, struct inode *inode); dir 572 fs/ext4/namei.c static inline unsigned dx_root_limit(struct inode *dir, unsigned infosize) dir 574 fs/ext4/namei.c unsigned entry_space = dir->i_sb->s_blocksize - EXT4_DIR_REC_LEN(1) - dir 577 fs/ext4/namei.c if (ext4_has_metadata_csum(dir->i_sb)) dir 582 fs/ext4/namei.c static inline unsigned dx_node_limit(struct inode *dir) dir 584 fs/ext4/namei.c unsigned entry_space = dir->i_sb->s_blocksize - EXT4_DIR_REC_LEN(0); dir 586 fs/ext4/namei.c if (ext4_has_metadata_csum(dir->i_sb)) dir 614 fs/ext4/namei.c static struct stats dx_show_leaf(struct inode *dir, dir 639 fs/ext4/namei.c if (IS_ENCRYPTED(dir)) dir 640 fs/ext4/namei.c res = fscrypt_get_encryption_info(dir); dir 645 fs/ext4/namei.c if (!fscrypt_has_encryption_key(dir)) { dir 647 fs/ext4/namei.c ext4fs_dirhash(dir, de->name, dir 659 fs/ext4/namei.c dir, len, dir 666 fs/ext4/namei.c res = fscrypt_fname_disk_to_usr(dir, dir 680 fs/ext4/namei.c ext4fs_dirhash(dir, de->name, dir 691 fs/ext4/namei.c ext4fs_dirhash(dir, de->name, de->name_len, &h); dir 705 fs/ext4/namei.c struct stats dx_show_entries(struct dx_hash_info *hinfo, struct inode *dir, dir 708 fs/ext4/namei.c unsigned blocksize = dir->i_sb->s_blocksize; dir 720 fs/ext4/namei.c bh = ext4_bread(NULL,dir, block, 0); dir 724 fs/ext4/namei.c dx_show_entries(hinfo, dir, ((struct dx_node *) bh->b_data)->entries, levels - 1): dir 725 fs/ext4/namei.c dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) dir 750 fs/ext4/namei.c dx_probe(struct ext4_filename *fname, struct inode *dir, dir 761 fs/ext4/namei.c frame->bh = ext4_read_dirblock(dir, 0, INDEX); dir 769 fs/ext4/namei.c ext4_warning_inode(dir, "Unrecognised inode hash code %u", dir 777 fs/ext4/namei.c hinfo->hash_version += EXT4_SB(dir->i_sb)->s_hash_unsigned; dir 778 fs/ext4/namei.c hinfo->seed = EXT4_SB(dir->i_sb)->s_hash_seed; dir 780 fs/ext4/namei.c ext4fs_dirhash(dir, fname_name(fname), fname_len(fname), hinfo); dir 784 fs/ext4/namei.c ext4_warning_inode(dir, "Unimplemented hash flags: %#06x", dir 790 fs/ext4/namei.c if (indirect >= ext4_dir_htree_level(dir->i_sb)) { dir 791 fs/ext4/namei.c ext4_warning(dir->i_sb, dir 793 fs/ext4/namei.c "supported value", dir->i_ino, dir 794 fs/ext4/namei.c ext4_dir_htree_level(dir->i_sb)); dir 795 fs/ext4/namei.c if (ext4_dir_htree_level(dir->i_sb) < EXT4_HTREE_LEVEL) { dir 796 fs/ext4/namei.c ext4_warning(dir->i_sb, "Enable large directory " dir 805 fs/ext4/namei.c if (dx_get_limit(entries) != dx_root_limit(dir, dir 807 fs/ext4/namei.c ext4_warning_inode(dir, "dx entry: limit %u != root limit %u", dir 809 fs/ext4/namei.c dx_root_limit(dir, root->info.info_length)); dir 817 fs/ext4/namei.c ext4_warning_inode(dir, dir 858 fs/ext4/namei.c frame->bh = ext4_read_dirblock(dir, dx_get_block(at), INDEX); dir 866 fs/ext4/namei.c if (dx_get_limit(entries) != dx_node_limit(dir)) { dir 867 fs/ext4/namei.c ext4_warning_inode(dir, dir 869 fs/ext4/namei.c dx_get_limit(entries), dx_node_limit(dir)); dir 880 fs/ext4/namei.c ext4_warning_inode(dir, dir 922 fs/ext4/namei.c static int ext4_htree_next_block(struct inode *dir, __u32 hash, dir 968 fs/ext4/namei.c bh = ext4_read_dirblock(dir, dx_get_block(p->at), INDEX); dir 986 fs/ext4/namei.c struct inode *dir, ext4_lblk_t block, dir 997 fs/ext4/namei.c bh = ext4_read_dirblock(dir, block, DIRENT_HTREE); dir 1003 fs/ext4/namei.c dir->i_sb->s_blocksize - dir 1007 fs/ext4/namei.c if (IS_ENCRYPTED(dir)) { dir 1008 fs/ext4/namei.c err = fscrypt_get_encryption_info(dir); dir 1013 fs/ext4/namei.c err = fscrypt_fname_alloc_buffer(dir, EXT4_NAME_LEN, dir 1021 fs/ext4/namei.c for (; de < top; de = ext4_next_entry(de, dir->i_sb->s_blocksize)) { dir 1022 fs/ext4/namei.c if (ext4_check_dir_entry(dir, NULL, de, bh, dir 1024 fs/ext4/namei.c (block<<EXT4_BLOCK_SIZE_BITS(dir->i_sb)) dir 1029 fs/ext4/namei.c ext4fs_dirhash(dir, de->name, de->name_len, hinfo); dir 1036 fs/ext4/namei.c if (!IS_ENCRYPTED(dir)) { dir 1048 fs/ext4/namei.c err = fscrypt_fname_disk_to_usr(dir, hinfo->hash, dir 1089 fs/ext4/namei.c struct inode *dir; dir 1098 fs/ext4/namei.c dir = file_inode(dir_file); dir 1099 fs/ext4/namei.c if (!(ext4_test_inode_flag(dir, EXT4_INODE_INDEX))) { dir 1100 fs/ext4/namei.c hinfo.hash_version = EXT4_SB(dir->i_sb)->s_def_hash_version; dir 1103 fs/ext4/namei.c EXT4_SB(dir->i_sb)->s_hash_unsigned; dir 1104 fs/ext4/namei.c hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; dir 1105 fs/ext4/namei.c if (ext4_has_inline_data(dir)) { dir 1107 fs/ext4/namei.c count = ext4_inlinedir_to_tree(dir_file, dir, 0, dir 1116 fs/ext4/namei.c count = htree_dirblock_to_tree(dir_file, dir, 0, &hinfo, dir 1123 fs/ext4/namei.c frame = dx_probe(NULL, dir, &hinfo, frames); dir 1140 fs/ext4/namei.c de = ext4_next_entry(de, dir->i_sb->s_blocksize); dir 1157 fs/ext4/namei.c ret = htree_dirblock_to_tree(dir_file, dir, block, &hinfo, dir 1165 fs/ext4/namei.c ret = ext4_htree_next_block(dir, HASH_NB_ALWAYS, dir 1191 fs/ext4/namei.c struct inode *dir, dir 1196 fs/ext4/namei.c return ext4_search_dir(bh, bh->b_data, dir->i_sb->s_blocksize, dir, dir 1208 fs/ext4/namei.c static int dx_make_map(struct inode *dir, struct ext4_dir_entry_2 *de, dir 1218 fs/ext4/namei.c ext4fs_dirhash(dir, de->name, de->name_len, &h); dir 1310 fs/ext4/namei.c void ext4_fname_setup_ci_filename(struct inode *dir, const struct qstr *iname, dir 1315 fs/ext4/namei.c if (!IS_CASEFOLDED(dir) || !EXT4_SB(dir->i_sb)->s_encoding) { dir 1324 fs/ext4/namei.c len = utf8_casefold(EXT4_SB(dir->i_sb)->s_encoding, dir 1379 fs/ext4/namei.c struct inode *dir, struct ext4_filename *fname, dir 1392 fs/ext4/namei.c ext4_match(dir, fname, de)) { dir 1395 fs/ext4/namei.c if (ext4_check_dir_entry(dir, NULL, de, bh, bh->b_data, dir 1403 fs/ext4/namei.c dir->i_sb->s_blocksize); dir 1412 fs/ext4/namei.c static int is_dx_internal_node(struct inode *dir, ext4_lblk_t block, dir 1415 fs/ext4/namei.c struct super_block *sb = dir->i_sb; dir 1417 fs/ext4/namei.c if (!is_dx(dir)) dir 1439 fs/ext4/namei.c static struct buffer_head *__ext4_find_entry(struct inode *dir, dir 1457 fs/ext4/namei.c sb = dir->i_sb; dir 1462 fs/ext4/namei.c if (ext4_has_inline_data(dir)) { dir 1464 fs/ext4/namei.c ret = ext4_find_inline_entry(dir, fname, res_dir, dir 1483 fs/ext4/namei.c if (is_dx(dir)) { dir 1484 fs/ext4/namei.c ret = ext4_dx_find_entry(dir, fname, res_dir); dir 1496 fs/ext4/namei.c nblocks = dir->i_size >> EXT4_BLOCK_SIZE_BITS(sb); dir 1501 fs/ext4/namei.c start = EXT4_I(dir)->i_dir_start_lookup; dir 1519 fs/ext4/namei.c retval = ext4_bread_batch(dir, block, ra_max, dir 1531 fs/ext4/namei.c EXT4_ERROR_INODE(dir, "reading directory lblock %lu", dir 1538 fs/ext4/namei.c !is_dx_internal_node(dir, block, dir 1540 fs/ext4/namei.c !ext4_dirblock_csum_verify(dir, bh)) { dir 1541 fs/ext4/namei.c EXT4_ERROR_INODE(dir, "checksumming directory " dir 1548 fs/ext4/namei.c i = search_dirblock(bh, dir, fname, dir 1551 fs/ext4/namei.c EXT4_I(dir)->i_dir_start_lookup = block; dir 1569 fs/ext4/namei.c nblocks = dir->i_size >> EXT4_BLOCK_SIZE_BITS(sb); dir 1582 fs/ext4/namei.c static struct buffer_head *ext4_find_entry(struct inode *dir, dir 1591 fs/ext4/namei.c err = ext4_fname_setup_filename(dir, d_name, 1, &fname); dir 1597 fs/ext4/namei.c bh = __ext4_find_entry(dir, &fname, res_dir, inlined); dir 1603 fs/ext4/namei.c static struct buffer_head *ext4_lookup_entry(struct inode *dir, dir 1611 fs/ext4/namei.c err = ext4_fname_prepare_lookup(dir, dentry, &fname); dir 1617 fs/ext4/namei.c bh = __ext4_find_entry(dir, &fname, res_dir, NULL); dir 1623 fs/ext4/namei.c static struct buffer_head * ext4_dx_find_entry(struct inode *dir, dir 1627 fs/ext4/namei.c struct super_block * sb = dir->i_sb; dir 1636 fs/ext4/namei.c frame = dx_probe(fname, dir, NULL, frames); dir 1641 fs/ext4/namei.c bh = ext4_read_dirblock(dir, block, DIRENT_HTREE); dir 1645 fs/ext4/namei.c retval = search_dirblock(bh, dir, fname, dir 1657 fs/ext4/namei.c retval = ext4_htree_next_block(dir, fname->hinfo.hash, frame, dir 1660 fs/ext4/namei.c ext4_warning_inode(dir, dir 1676 fs/ext4/namei.c static struct dentry *ext4_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) dir 1685 fs/ext4/namei.c bh = ext4_lookup_entry(dir, dentry, &de); dir 1692 fs/ext4/namei.c if (!ext4_valid_inum(dir->i_sb, ino)) { dir 1693 fs/ext4/namei.c EXT4_ERROR_INODE(dir, "bad inode number: %u", ino); dir 1696 fs/ext4/namei.c if (unlikely(ino == dir->i_ino)) { dir 1697 fs/ext4/namei.c EXT4_ERROR_INODE(dir, "'%pd' linked to parent dir", dir 1701 fs/ext4/namei.c inode = ext4_iget(dir->i_sb, ino, EXT4_IGET_NORMAL); dir 1703 fs/ext4/namei.c EXT4_ERROR_INODE(dir, dir 1708 fs/ext4/namei.c if (!IS_ERR(inode) && IS_ENCRYPTED(dir) && dir 1710 fs/ext4/namei.c !fscrypt_has_permitted_context(dir, inode)) { dir 1713 fs/ext4/namei.c dir->i_ino, inode->i_ino); dir 1720 fs/ext4/namei.c if (!inode && IS_CASEFOLDED(dir)) { dir 1811 fs/ext4/namei.c static struct ext4_dir_entry_2 *do_split(handle_t *handle, struct inode *dir, dir 1815 fs/ext4/namei.c unsigned blocksize = dir->i_sb->s_blocksize; dir 1827 fs/ext4/namei.c if (ext4_has_metadata_csum(dir->i_sb)) dir 1830 fs/ext4/namei.c bh2 = ext4_append(handle, dir, &newblock); dir 1851 fs/ext4/namei.c count = dx_make_map(dir, (struct ext4_dir_entry_2 *) data1, dir 1888 fs/ext4/namei.c dxtrace(dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) data1, dir 1890 fs/ext4/namei.c dxtrace(dx_show_leaf(dir, hinfo, (struct ext4_dir_entry_2 *) data2, dir 1899 fs/ext4/namei.c err = ext4_handle_dirty_dirblock(handle, dir, bh2); dir 1902 fs/ext4/namei.c err = ext4_handle_dirty_dx_node(handle, dir, frame->bh); dir 1913 fs/ext4/namei.c ext4_std_error(dir->i_sb, err); dir 1917 fs/ext4/namei.c int ext4_find_dest_de(struct inode *dir, struct inode *inode, dir 1932 fs/ext4/namei.c if (ext4_check_dir_entry(dir, NULL, de, bh, dir 1935 fs/ext4/namei.c if (ext4_match(dir, fname, de)) dir 1984 fs/ext4/namei.c struct inode *dir, dir 1988 fs/ext4/namei.c unsigned int blocksize = dir->i_sb->s_blocksize; dir 1996 fs/ext4/namei.c err = ext4_find_dest_de(dir, inode, bh, bh->b_data, dir 2004 fs/ext4/namei.c ext4_std_error(dir->i_sb, err); dir 2022 fs/ext4/namei.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 2023 fs/ext4/namei.c ext4_update_dx_flag(dir); dir 2024 fs/ext4/namei.c inode_inc_iversion(dir); dir 2025 fs/ext4/namei.c ext4_mark_inode_dirty(handle, dir); dir 2027 fs/ext4/namei.c err = ext4_handle_dirty_dirblock(handle, dir, bh); dir 2029 fs/ext4/namei.c ext4_std_error(dir->i_sb, err); dir 2038 fs/ext4/namei.c struct inode *dir, dir 2057 fs/ext4/namei.c blocksize = dir->i_sb->s_blocksize; dir 2058 fs/ext4/namei.c dxtrace(printk(KERN_DEBUG "Creating index: inode %lu\n", dir->i_ino)); dir 2062 fs/ext4/namei.c ext4_std_error(dir->i_sb, retval); dir 2073 fs/ext4/namei.c EXT4_ERROR_INODE(dir, "invalid rec_len for '..'"); dir 2080 fs/ext4/namei.c bh2 = ext4_append(handle, dir, &block); dir 2085 fs/ext4/namei.c ext4_set_inode_flag(dir, EXT4_INODE_INDEX); dir 2105 fs/ext4/namei.c root->info.hash_version = EXT4_SB(dir->i_sb)->s_def_hash_version; dir 2109 fs/ext4/namei.c dx_set_limit(entries, dx_root_limit(dir, sizeof(root->info))); dir 2114 fs/ext4/namei.c fname->hinfo.hash_version += EXT4_SB(dir->i_sb)->s_hash_unsigned; dir 2115 fs/ext4/namei.c fname->hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; dir 2116 fs/ext4/namei.c ext4fs_dirhash(dir, fname_name(fname), fname_len(fname), &fname->hinfo); dir 2124 fs/ext4/namei.c retval = ext4_handle_dirty_dx_node(handle, dir, frame->bh); dir 2127 fs/ext4/namei.c retval = ext4_handle_dirty_dirblock(handle, dir, bh2); dir 2131 fs/ext4/namei.c de = do_split(handle,dir, &bh2, frame, &fname->hinfo); dir 2137 fs/ext4/namei.c retval = add_dirent_to_buf(handle, fname, dir, inode, de, bh2); dir 2145 fs/ext4/namei.c ext4_mark_inode_dirty(handle, dir); dir 2164 fs/ext4/namei.c struct inode *dir = d_inode(dentry->d_parent); dir 2179 fs/ext4/namei.c sb = dir->i_sb; dir 2186 fs/ext4/namei.c if (ext4_has_strict_mode(sbi) && IS_CASEFOLDED(dir) && dir 2191 fs/ext4/namei.c retval = ext4_fname_setup_filename(dir, &dentry->d_name, 0, &fname); dir 2195 fs/ext4/namei.c if (ext4_has_inline_data(dir)) { dir 2196 fs/ext4/namei.c retval = ext4_try_add_inline_entry(handle, &fname, dir, inode); dir 2205 fs/ext4/namei.c if (is_dx(dir)) { dir 2206 fs/ext4/namei.c retval = ext4_dx_add_entry(handle, &fname, dir, inode); dir 2211 fs/ext4/namei.c EXT4_ERROR_INODE(dir, dir 2216 fs/ext4/namei.c ext4_clear_inode_flag(dir, EXT4_INODE_INDEX); dir 2218 fs/ext4/namei.c ext4_mark_inode_dirty(handle, dir); dir 2220 fs/ext4/namei.c blocks = dir->i_size >> sb->s_blocksize_bits; dir 2222 fs/ext4/namei.c bh = ext4_read_dirblock(dir, block, DIRENT); dir 2224 fs/ext4/namei.c bh = ext4_bread(handle, dir, block, dir 2233 fs/ext4/namei.c retval = add_dirent_to_buf(handle, &fname, dir, inode, dir 2240 fs/ext4/namei.c retval = make_indexed_dir(handle, &fname, dir, dir 2247 fs/ext4/namei.c bh = ext4_append(handle, dir, &block); dir 2261 fs/ext4/namei.c retval = add_dirent_to_buf(handle, &fname, dir, inode, de, bh); dir 2274 fs/ext4/namei.c struct inode *dir, struct inode *inode) dir 2279 fs/ext4/namei.c struct super_block *sb = dir->i_sb; dir 2286 fs/ext4/namei.c frame = dx_probe(fname, dir, NULL, frames); dir 2291 fs/ext4/namei.c bh = ext4_read_dirblock(dir, dx_get_block(frame->at), DIRENT_HTREE); dir 2303 fs/ext4/namei.c err = add_dirent_to_buf(handle, fname, dir, inode, NULL, bh); dir 2335 fs/ext4/namei.c dir->i_ino, levels); dir 2345 fs/ext4/namei.c bh2 = ext4_append(handle, dir, &newblock); dir 2375 fs/ext4/namei.c dx_set_limit(entries2, dx_node_limit(dir)); dir 2387 fs/ext4/namei.c err = ext4_handle_dirty_dx_node(handle, dir, bh2); dir 2391 fs/ext4/namei.c err = ext4_handle_dirty_dx_node(handle, dir, dir 2396 fs/ext4/namei.c err = ext4_handle_dirty_dx_node(handle, dir, dir 2404 fs/ext4/namei.c dx_set_limit(entries2, dx_node_limit(dir)); dir 2414 fs/ext4/namei.c err = ext4_handle_dirty_dx_node(handle, dir, frame->bh); dir 2417 fs/ext4/namei.c err = ext4_handle_dirty_dx_node(handle, dir, bh2); dir 2423 fs/ext4/namei.c de = do_split(handle, dir, &bh, frame, &fname->hinfo); dir 2428 fs/ext4/namei.c err = add_dirent_to_buf(handle, fname, dir, inode, de, bh); dir 2432 fs/ext4/namei.c ext4_std_error(dir->i_sb, err); /* this is a no-op if err == 0 */ dir 2449 fs/ext4/namei.c struct inode *dir, dir 2457 fs/ext4/namei.c unsigned int blocksize = dir->i_sb->s_blocksize; dir 2464 fs/ext4/namei.c if (ext4_check_dir_entry(dir, NULL, de, bh, dir 2477 fs/ext4/namei.c inode_inc_iversion(dir); dir 2488 fs/ext4/namei.c struct inode *dir, dir 2494 fs/ext4/namei.c if (ext4_has_inline_data(dir)) { dir 2496 fs/ext4/namei.c err = ext4_delete_inline_entry(handle, dir, de_del, bh, dir 2502 fs/ext4/namei.c if (ext4_has_metadata_csum(dir->i_sb)) dir 2510 fs/ext4/namei.c err = ext4_generic_delete_entry(handle, dir, de_del, dir 2512 fs/ext4/namei.c dir->i_sb->s_blocksize, csum_size); dir 2517 fs/ext4/namei.c err = ext4_handle_dirty_dirblock(handle, dir, bh); dir 2524 fs/ext4/namei.c ext4_std_error(dir->i_sb, err); dir 2581 fs/ext4/namei.c static int ext4_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 2588 fs/ext4/namei.c err = dquot_initialize(dir); dir 2592 fs/ext4/namei.c credits = (EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + dir 2595 fs/ext4/namei.c inode = ext4_new_inode_start_handle(dir, mode, &dentry->d_name, 0, dir 2604 fs/ext4/namei.c if (!err && IS_DIRSYNC(dir)) dir 2609 fs/ext4/namei.c if (err == -ENOSPC && ext4_should_retry_alloc(dir->i_sb, &retries)) dir 2614 fs/ext4/namei.c static int ext4_mknod(struct inode *dir, struct dentry *dentry, dir 2621 fs/ext4/namei.c err = dquot_initialize(dir); dir 2625 fs/ext4/namei.c credits = (EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + dir 2628 fs/ext4/namei.c inode = ext4_new_inode_start_handle(dir, mode, &dentry->d_name, 0, dir 2636 fs/ext4/namei.c if (!err && IS_DIRSYNC(dir)) dir 2641 fs/ext4/namei.c if (err == -ENOSPC && ext4_should_retry_alloc(dir->i_sb, &retries)) dir 2646 fs/ext4/namei.c static int ext4_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) dir 2652 fs/ext4/namei.c err = dquot_initialize(dir); dir 2657 fs/ext4/namei.c inode = ext4_new_inode_start_handle(dir, mode, dir 2660 fs/ext4/namei.c EXT4_MAXQUOTAS_INIT_BLOCKS(dir->i_sb) + dir 2677 fs/ext4/namei.c if (err == -ENOSPC && ext4_should_retry_alloc(dir->i_sb, &retries)) dir 2714 fs/ext4/namei.c static int ext4_init_new_dir(handle_t *handle, struct inode *dir, dir 2720 fs/ext4/namei.c unsigned int blocksize = dir->i_sb->s_blocksize; dir 2724 fs/ext4/namei.c if (ext4_has_metadata_csum(dir->i_sb)) dir 2728 fs/ext4/namei.c err = ext4_try_create_inline_dir(handle, dir, inode); dir 2740 fs/ext4/namei.c ext4_init_dot_dotdot(inode, de, blocksize, csum_size, dir->i_ino, 0); dir 2755 fs/ext4/namei.c static int ext4_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 2761 fs/ext4/namei.c if (EXT4_DIR_LINK_MAX(dir)) dir 2764 fs/ext4/namei.c err = dquot_initialize(dir); dir 2768 fs/ext4/namei.c credits = (EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + dir 2771 fs/ext4/namei.c inode = ext4_new_inode_start_handle(dir, S_IFDIR | mode, dir 2781 fs/ext4/namei.c err = ext4_init_new_dir(handle, dir, inode); dir 2795 fs/ext4/namei.c ext4_inc_count(handle, dir); dir 2796 fs/ext4/namei.c ext4_update_dx_flag(dir); dir 2797 fs/ext4/namei.c err = ext4_mark_inode_dirty(handle, dir); dir 2801 fs/ext4/namei.c if (IS_DIRSYNC(dir)) dir 2807 fs/ext4/namei.c if (err == -ENOSPC && ext4_should_retry_alloc(dir->i_sb, &retries)) dir 3065 fs/ext4/namei.c static int ext4_rmdir(struct inode *dir, struct dentry *dentry) dir 3073 fs/ext4/namei.c if (unlikely(ext4_forced_shutdown(EXT4_SB(dir->i_sb)))) dir 3078 fs/ext4/namei.c retval = dquot_initialize(dir); dir 3086 fs/ext4/namei.c bh = ext4_find_entry(dir, &dentry->d_name, &de, NULL); dir 3102 fs/ext4/namei.c handle = ext4_journal_start(dir, EXT4_HT_DIR, dir 3103 fs/ext4/namei.c EXT4_DATA_TRANS_BLOCKS(dir->i_sb)); dir 3110 fs/ext4/namei.c if (IS_DIRSYNC(dir)) dir 3113 fs/ext4/namei.c retval = ext4_delete_entry(handle, dir, de, bh); dir 3128 fs/ext4/namei.c inode->i_ctime = dir->i_ctime = dir->i_mtime = current_time(inode); dir 3130 fs/ext4/namei.c ext4_dec_count(handle, dir); dir 3131 fs/ext4/namei.c ext4_update_dx_flag(dir); dir 3132 fs/ext4/namei.c ext4_mark_inode_dirty(handle, dir); dir 3141 fs/ext4/namei.c if (IS_CASEFOLDED(dir)) dir 3152 fs/ext4/namei.c static int ext4_unlink(struct inode *dir, struct dentry *dentry) dir 3160 fs/ext4/namei.c if (unlikely(ext4_forced_shutdown(EXT4_SB(dir->i_sb)))) dir 3163 fs/ext4/namei.c trace_ext4_unlink_enter(dir, dentry); dir 3166 fs/ext4/namei.c retval = dquot_initialize(dir); dir 3174 fs/ext4/namei.c bh = ext4_find_entry(dir, &dentry->d_name, &de, NULL); dir 3186 fs/ext4/namei.c handle = ext4_journal_start(dir, EXT4_HT_DIR, dir 3187 fs/ext4/namei.c EXT4_DATA_TRANS_BLOCKS(dir->i_sb)); dir 3194 fs/ext4/namei.c if (IS_DIRSYNC(dir)) dir 3197 fs/ext4/namei.c retval = ext4_delete_entry(handle, dir, de, bh); dir 3200 fs/ext4/namei.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 3201 fs/ext4/namei.c ext4_update_dx_flag(dir); dir 3202 fs/ext4/namei.c ext4_mark_inode_dirty(handle, dir); dir 3220 fs/ext4/namei.c if (IS_CASEFOLDED(dir)) dir 3232 fs/ext4/namei.c static int ext4_symlink(struct inode *dir, dir 3241 fs/ext4/namei.c if (unlikely(ext4_forced_shutdown(EXT4_SB(dir->i_sb)))) dir 3244 fs/ext4/namei.c err = fscrypt_prepare_symlink(dir, symname, len, dir->i_sb->s_blocksize, dir 3249 fs/ext4/namei.c err = dquot_initialize(dir); dir 3260 fs/ext4/namei.c credits = 4 + EXT4_MAXQUOTAS_INIT_BLOCKS(dir->i_sb) + dir 3269 fs/ext4/namei.c credits = EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + dir 3273 fs/ext4/namei.c inode = ext4_new_inode_start_handle(dir, S_IFLNK|S_IRWXUGO, dir 3318 fs/ext4/namei.c handle = ext4_journal_start(dir, EXT4_HT_DIR, dir 3319 fs/ext4/namei.c EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + dir 3343 fs/ext4/namei.c if (!err && IS_DIRSYNC(dir)) dir 3363 fs/ext4/namei.c struct inode *dir, struct dentry *dentry) dir 3372 fs/ext4/namei.c err = fscrypt_prepare_link(old_dentry, dir, dentry); dir 3376 fs/ext4/namei.c if ((ext4_test_inode_flag(dir, EXT4_INODE_PROJINHERIT)) && dir 3377 fs/ext4/namei.c (!projid_eq(EXT4_I(dir)->i_projid, dir 3381 fs/ext4/namei.c err = dquot_initialize(dir); dir 3386 fs/ext4/namei.c handle = ext4_journal_start(dir, EXT4_HT_DIR, dir 3387 fs/ext4/namei.c (EXT4_DATA_TRANS_BLOCKS(dir->i_sb) + dir 3392 fs/ext4/namei.c if (IS_DIRSYNC(dir)) dir 3413 fs/ext4/namei.c if (err == -ENOSPC && ext4_should_retry_alloc(dir->i_sb, &retries)) dir 3452 fs/ext4/namei.c struct inode *dir; dir 3478 fs/ext4/namei.c if (le32_to_cpu(ent->parent_de->inode) != ent->dir->i_ino) dir 3504 fs/ext4/namei.c ext4_std_error(ent->dir->i_sb, retval); dir 3520 fs/ext4/namei.c if (ext4_has_feature_filetype(ent->dir->i_sb)) dir 3522 fs/ext4/namei.c inode_inc_iversion(ent->dir); dir 3523 fs/ext4/namei.c ent->dir->i_ctime = ent->dir->i_mtime = dir 3524 fs/ext4/namei.c current_time(ent->dir); dir 3525 fs/ext4/namei.c ext4_mark_inode_dirty(handle, ent->dir); dir 3528 fs/ext4/namei.c retval = ext4_handle_dirty_dirblock(handle, ent->dir, ent->bh); dir 3530 fs/ext4/namei.c ext4_std_error(ent->dir->i_sb, retval); dir 3540 fs/ext4/namei.c static int ext4_find_delete_entry(handle_t *handle, struct inode *dir, dir 3547 fs/ext4/namei.c bh = ext4_find_entry(dir, d_name, &de, NULL); dir 3551 fs/ext4/namei.c retval = ext4_delete_entry(handle, dir, de, bh); dir 3572 fs/ext4/namei.c retval = ext4_find_delete_entry(handle, ent->dir, dir 3575 fs/ext4/namei.c retval = ext4_delete_entry(handle, ent->dir, ent->de, ent->bh); dir 3577 fs/ext4/namei.c retval = ext4_find_delete_entry(handle, ent->dir, dir 3583 fs/ext4/namei.c ext4_warning_inode(ent->dir, dir 3585 fs/ext4/namei.c ent->dir->i_nlink, retval); dir 3593 fs/ext4/namei.c ext4_dec_count(handle, ent->dir); dir 3595 fs/ext4/namei.c ext4_inc_count(handle, ent->dir); dir 3596 fs/ext4/namei.c ext4_mark_inode_dirty(handle, ent->dir); dir 3611 fs/ext4/namei.c credits += (EXT4_MAXQUOTAS_TRANS_BLOCKS(ent->dir->i_sb) + dir 3614 fs/ext4/namei.c wh = ext4_new_inode_start_handle(ent->dir, S_IFCHR | WHITEOUT_MODE, dir 3623 fs/ext4/namei.c ext4_should_retry_alloc(ent->dir->i_sb, &retries)) dir 3647 fs/ext4/namei.c .dir = old_dir, dir 3652 fs/ext4/namei.c .dir = new_dir, dir 3673 fs/ext4/namei.c retval = dquot_initialize(old.dir); dir 3676 fs/ext4/namei.c retval = dquot_initialize(new.dir); dir 3688 fs/ext4/namei.c old.bh = ext4_find_entry(old.dir, &old.dentry->d_name, &old.de, NULL); dir 3701 fs/ext4/namei.c new.bh = ext4_find_entry(new.dir, &new.dentry->d_name, dir 3714 fs/ext4/namei.c if (new.inode && !test_opt(new.dir->i_sb, NO_AUTO_DA_ALLOC)) dir 3717 fs/ext4/namei.c credits = (2 * EXT4_DATA_TRANS_BLOCKS(old.dir->i_sb) + dir 3720 fs/ext4/namei.c handle = ext4_journal_start(old.dir, EXT4_HT_DIR, credits); dir 3735 fs/ext4/namei.c if (IS_DIRSYNC(old.dir) || IS_DIRSYNC(new.dir)) dir 3745 fs/ext4/namei.c if (new.dir != old.dir && EXT4_DIR_LINK_MAX(new.dir)) dir 3759 fs/ext4/namei.c force_reread = (new.dir->i_ino == old.dir->i_ino && dir 3760 fs/ext4/namei.c ext4_test_inode_flag(new.dir, EXT4_INODE_INLINE_DATA)); dir 3785 fs/ext4/namei.c force_reread = !ext4_test_inode_flag(new.dir, dir 3806 fs/ext4/namei.c old.dir->i_ctime = old.dir->i_mtime = current_time(old.dir); dir 3807 fs/ext4/namei.c ext4_update_dx_flag(old.dir); dir 3809 fs/ext4/namei.c retval = ext4_rename_dir_finish(handle, &old, new.dir->i_ino); dir 3813 fs/ext4/namei.c ext4_dec_count(handle, old.dir); dir 3820 fs/ext4/namei.c ext4_inc_count(handle, new.dir); dir 3821 fs/ext4/namei.c ext4_update_dx_flag(new.dir); dir 3822 fs/ext4/namei.c ext4_mark_inode_dirty(handle, new.dir); dir 3825 fs/ext4/namei.c ext4_mark_inode_dirty(handle, old.dir); dir 3853 fs/ext4/namei.c .dir = old_dir, dir 3858 fs/ext4/namei.c .dir = new_dir, dir 3874 fs/ext4/namei.c retval = dquot_initialize(old.dir); dir 3877 fs/ext4/namei.c retval = dquot_initialize(new.dir); dir 3881 fs/ext4/namei.c old.bh = ext4_find_entry(old.dir, &old.dentry->d_name, dir 3895 fs/ext4/namei.c new.bh = ext4_find_entry(new.dir, &new.dentry->d_name, dir 3907 fs/ext4/namei.c handle = ext4_journal_start(old.dir, EXT4_HT_DIR, dir 3908 fs/ext4/namei.c (2 * EXT4_DATA_TRANS_BLOCKS(old.dir->i_sb) + dir 3916 fs/ext4/namei.c if (IS_DIRSYNC(old.dir) || IS_DIRSYNC(new.dir)) dir 3936 fs/ext4/namei.c if (old.dir != new.dir && old.is_dir != new.is_dir) { dir 3940 fs/ext4/namei.c if ((old.dir_nlink_delta > 0 && EXT4_DIR_LINK_MAX(old.dir)) || dir 3941 fs/ext4/namei.c (new.dir_nlink_delta > 0 && EXT4_DIR_LINK_MAX(new.dir))) dir 3965 fs/ext4/namei.c retval = ext4_rename_dir_finish(handle, &old, new.dir->i_ino); dir 3970 fs/ext4/namei.c retval = ext4_rename_dir_finish(handle, &new, old.dir->i_ino); dir 197 fs/ext4/xattr.h struct inode *dir, const struct qstr *qstr); dir 200 fs/ext4/xattr.h struct inode *dir, const struct qstr *qstr) dir 54 fs/ext4/xattr_security.c ext4_init_security(handle_t *handle, struct inode *inode, struct inode *dir, dir 57 fs/ext4/xattr_security.c return security_inode_init_security(inode, dir, qstr, dir 332 fs/f2fs/acl.c static int f2fs_acl_create(struct inode *dir, umode_t *mode, dir 343 fs/f2fs/acl.c if (S_ISLNK(*mode) || !IS_POSIXACL(dir)) dir 346 fs/f2fs/acl.c p = __f2fs_get_acl(dir, ACL_TYPE_DEFAULT, dpage); dir 383 fs/f2fs/acl.c int f2fs_init_acl(struct inode *inode, struct inode *dir, struct page *ipage, dir 389 fs/f2fs/acl.c error = f2fs_acl_create(dir, &inode->i_mode, &default_acl, &acl, dpage); dir 44 fs/f2fs/acl.h static inline int f2fs_init_acl(struct inode *inode, struct inode *dir, dir 85 fs/f2fs/dir.c static struct f2fs_dir_entry *find_in_block(struct inode *dir, dir 98 fs/f2fs/dir.c make_dentry_ptr_block(dir, &d, dentry_blk); dir 142 fs/f2fs/dir.c static void f2fs_fname_setup_ci_filename(struct inode *dir, dir 146 fs/f2fs/dir.c struct f2fs_sb_info *sbi = F2FS_I_SB(dir); dir 148 fs/f2fs/dir.c if (!IS_CASEFOLDED(dir)) { dir 253 fs/f2fs/dir.c static struct f2fs_dir_entry *find_in_level(struct inode *dir, dir 266 fs/f2fs/dir.c f2fs_hash_t namehash = f2fs_dentry_hash(dir, &name, fname); dir 268 fs/f2fs/dir.c nbucket = dir_buckets(level, F2FS_I(dir)->i_dir_level); dir 271 fs/f2fs/dir.c bidx = dir_block_index(level, F2FS_I(dir)->i_dir_level, dir 277 fs/f2fs/dir.c dentry_page = f2fs_find_data_page(dir, bidx); dir 288 fs/f2fs/dir.c de = find_in_block(dir, dentry_page, fname, namehash, dir 298 fs/f2fs/dir.c if (!de && room && F2FS_I(dir)->chash != namehash) { dir 299 fs/f2fs/dir.c F2FS_I(dir)->chash = namehash; dir 300 fs/f2fs/dir.c F2FS_I(dir)->clevel = level; dir 306 fs/f2fs/dir.c struct f2fs_dir_entry *__f2fs_find_entry(struct inode *dir, dir 309 fs/f2fs/dir.c unsigned long npages = dir_blocks(dir); dir 314 fs/f2fs/dir.c if (f2fs_has_inline_dentry(dir)) { dir 316 fs/f2fs/dir.c de = f2fs_find_in_inline_dir(dir, fname, res_page); dir 325 fs/f2fs/dir.c max_depth = F2FS_I(dir)->i_current_depth; dir 327 fs/f2fs/dir.c f2fs_warn(F2FS_I_SB(dir), "Corrupted max_depth of %lu: %u", dir 328 fs/f2fs/dir.c dir->i_ino, max_depth); dir 330 fs/f2fs/dir.c f2fs_i_depth_write(dir, max_depth); dir 335 fs/f2fs/dir.c de = find_in_level(dir, level, fname, res_page); dir 342 fs/f2fs/dir.c F2FS_I(dir)->task = current; dir 352 fs/f2fs/dir.c struct f2fs_dir_entry *f2fs_find_entry(struct inode *dir, dir 360 fs/f2fs/dir.c if (f2fs_has_strict_mode(F2FS_I_SB(dir)) && IS_CASEFOLDED(dir) && dir 361 fs/f2fs/dir.c utf8_validate(F2FS_I_SB(dir)->s_encoding, child)) { dir 367 fs/f2fs/dir.c err = fscrypt_setup_filename(dir, child, 1, &fname); dir 376 fs/f2fs/dir.c de = __f2fs_find_entry(dir, &fname, res_page); dir 382 fs/f2fs/dir.c struct f2fs_dir_entry *f2fs_parent_dir(struct inode *dir, struct page **p) dir 386 fs/f2fs/dir.c return f2fs_find_entry(dir, &dotdot, p); dir 389 fs/f2fs/dir.c ino_t f2fs_inode_by_name(struct inode *dir, const struct qstr *qstr, dir 395 fs/f2fs/dir.c de = f2fs_find_entry(dir, qstr, page); dir 404 fs/f2fs/dir.c void f2fs_set_link(struct inode *dir, struct f2fs_dir_entry *de, dir 407 fs/f2fs/dir.c enum page_type type = f2fs_has_inline_dentry(dir) ? NODE : DATA; dir 414 fs/f2fs/dir.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 415 fs/f2fs/dir.c f2fs_mark_inode_dirty_sync(dir, false); dir 469 fs/f2fs/dir.c struct page *f2fs_init_inode_metadata(struct inode *inode, struct inode *dir, dir 474 fs/f2fs/dir.c int dummy_encrypt = DUMMY_ENCRYPTION_ENABLED(F2FS_I_SB(dir)); dir 485 fs/f2fs/dir.c err = make_empty_dir(inode, dir, page); dir 493 fs/f2fs/dir.c err = f2fs_init_acl(inode, dir, page, dpage); dir 497 fs/f2fs/dir.c err = f2fs_init_security(inode, dir, orig_name, page); dir 501 fs/f2fs/dir.c if ((IS_ENCRYPTED(dir) || dummy_encrypt) && dir 503 fs/f2fs/dir.c err = fscrypt_inherit_context(dir, inode, page, false); dir 508 fs/f2fs/dir.c page = f2fs_get_node_page(F2FS_I_SB(dir), inode->i_ino); dir 515 fs/f2fs/dir.c if (IS_ENCRYPTED(dir)) dir 531 fs/f2fs/dir.c f2fs_remove_orphan_inode(F2FS_I_SB(dir), inode->i_ino); dir 543 fs/f2fs/dir.c void f2fs_update_parent_metadata(struct inode *dir, struct inode *inode, dir 548 fs/f2fs/dir.c f2fs_i_links_write(dir, true); dir 551 fs/f2fs/dir.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 552 fs/f2fs/dir.c f2fs_mark_inode_dirty_sync(dir, false); dir 554 fs/f2fs/dir.c if (F2FS_I(dir)->i_current_depth != current_depth) dir 555 fs/f2fs/dir.c f2fs_i_depth_write(dir, current_depth); dir 603 fs/f2fs/dir.c int f2fs_add_regular_entry(struct inode *dir, const struct qstr *new_name, dir 621 fs/f2fs/dir.c dentry_hash = f2fs_dentry_hash(dir, new_name, NULL); dir 623 fs/f2fs/dir.c current_depth = F2FS_I(dir)->i_current_depth; dir 624 fs/f2fs/dir.c if (F2FS_I(dir)->chash == dentry_hash) { dir 625 fs/f2fs/dir.c level = F2FS_I(dir)->clevel; dir 626 fs/f2fs/dir.c F2FS_I(dir)->chash = 0; dir 630 fs/f2fs/dir.c if (time_to_inject(F2FS_I_SB(dir), FAULT_DIR_DEPTH)) { dir 642 fs/f2fs/dir.c nbucket = dir_buckets(level, F2FS_I(dir)->i_dir_level); dir 645 fs/f2fs/dir.c bidx = dir_block_index(level, F2FS_I(dir)->i_dir_level, dir 649 fs/f2fs/dir.c dentry_page = f2fs_get_new_data_page(dir, NULL, block, true); dir 670 fs/f2fs/dir.c page = f2fs_init_inode_metadata(inode, dir, new_name, dir 684 fs/f2fs/dir.c f2fs_i_pino_write(inode, dir->i_ino); dir 693 fs/f2fs/dir.c f2fs_update_parent_metadata(dir, inode, current_depth); dir 703 fs/f2fs/dir.c int f2fs_add_dentry(struct inode *dir, struct fscrypt_name *fname, dir 712 fs/f2fs/dir.c if (f2fs_has_inline_dentry(dir)) dir 713 fs/f2fs/dir.c err = f2fs_add_inline_entry(dir, &new_name, fname->usr_fname, dir 716 fs/f2fs/dir.c err = f2fs_add_regular_entry(dir, &new_name, fname->usr_fname, dir 719 fs/f2fs/dir.c f2fs_update_time(F2FS_I_SB(dir), REQ_TIME); dir 727 fs/f2fs/dir.c int f2fs_do_add_link(struct inode *dir, const struct qstr *name, dir 735 fs/f2fs/dir.c err = fscrypt_setup_filename(dir, name, 0, &fname); dir 746 fs/f2fs/dir.c if (current != F2FS_I(dir)->task) { dir 747 fs/f2fs/dir.c de = __f2fs_find_entry(dir, &fname, &page); dir 748 fs/f2fs/dir.c F2FS_I(dir)->task = NULL; dir 756 fs/f2fs/dir.c err = f2fs_add_dentry(dir, &fname, inode, ino, mode); dir 762 fs/f2fs/dir.c int f2fs_do_tmpfile(struct inode *inode, struct inode *dir) dir 768 fs/f2fs/dir.c page = f2fs_init_inode_metadata(inode, dir, NULL, NULL, NULL); dir 782 fs/f2fs/dir.c void f2fs_drop_nlink(struct inode *dir, struct inode *inode) dir 784 fs/f2fs/dir.c struct f2fs_sb_info *sbi = F2FS_I_SB(dir); dir 789 fs/f2fs/dir.c f2fs_i_links_write(dir, false); dir 810 fs/f2fs/dir.c struct inode *dir, struct inode *inode) dir 817 fs/f2fs/dir.c f2fs_update_time(F2FS_I_SB(dir), REQ_TIME); dir 819 fs/f2fs/dir.c if (F2FS_OPTION(F2FS_I_SB(dir)).fsync_mode == FSYNC_MODE_STRICT) dir 820 fs/f2fs/dir.c f2fs_add_ino_entry(F2FS_I_SB(dir), dir->i_ino, TRANS_DIR_INO); dir 822 fs/f2fs/dir.c if (f2fs_has_inline_dentry(dir)) dir 823 fs/f2fs/dir.c return f2fs_delete_inline_entry(dentry, page, dir, inode); dir 839 fs/f2fs/dir.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 840 fs/f2fs/dir.c f2fs_mark_inode_dirty_sync(dir, false); dir 843 fs/f2fs/dir.c f2fs_drop_nlink(dir, inode); dir 846 fs/f2fs/dir.c !f2fs_truncate_hole(dir, page->index, page->index + 1)) { dir 852 fs/f2fs/dir.c inode_dec_dirty_pages(dir); dir 853 fs/f2fs/dir.c f2fs_remove_dirty_inode(dir); dir 858 fs/f2fs/dir.c bool f2fs_empty_dir(struct inode *dir) dir 864 fs/f2fs/dir.c unsigned long nblock = dir_blocks(dir); dir 866 fs/f2fs/dir.c if (f2fs_has_inline_dentry(dir)) dir 867 fs/f2fs/dir.c return f2fs_empty_inline_dir(dir); dir 870 fs/f2fs/dir.c dentry_page = f2fs_get_lock_data_page(dir, bidx, false); dir 2978 fs/f2fs/f2fs.h struct page *f2fs_init_inode_metadata(struct inode *inode, struct inode *dir, dir 2981 fs/f2fs/f2fs.h void f2fs_update_parent_metadata(struct inode *dir, struct inode *inode, dir 2984 fs/f2fs/f2fs.h void f2fs_drop_nlink(struct inode *dir, struct inode *inode); dir 2985 fs/f2fs/f2fs.h struct f2fs_dir_entry *__f2fs_find_entry(struct inode *dir, dir 2987 fs/f2fs/f2fs.h struct f2fs_dir_entry *f2fs_find_entry(struct inode *dir, dir 2989 fs/f2fs/f2fs.h struct f2fs_dir_entry *f2fs_parent_dir(struct inode *dir, struct page **p); dir 2990 fs/f2fs/f2fs.h ino_t f2fs_inode_by_name(struct inode *dir, const struct qstr *qstr, dir 2992 fs/f2fs/f2fs.h void f2fs_set_link(struct inode *dir, struct f2fs_dir_entry *de, dir 2997 fs/f2fs/f2fs.h int f2fs_add_regular_entry(struct inode *dir, const struct qstr *new_name, dir 3000 fs/f2fs/f2fs.h int f2fs_add_dentry(struct inode *dir, struct fscrypt_name *fname, dir 3002 fs/f2fs/f2fs.h int f2fs_do_add_link(struct inode *dir, const struct qstr *name, dir 3005 fs/f2fs/f2fs.h struct inode *dir, struct inode *inode); dir 3006 fs/f2fs/f2fs.h int f2fs_do_tmpfile(struct inode *inode, struct inode *dir); dir 3007 fs/f2fs/f2fs.h bool f2fs_empty_dir(struct inode *dir); dir 3030 fs/f2fs/f2fs.h f2fs_hash_t f2fs_dentry_hash(const struct inode *dir, dir 3501 fs/f2fs/f2fs.h struct f2fs_dir_entry *f2fs_find_in_inline_dir(struct inode *dir, dir 3505 fs/f2fs/f2fs.h int f2fs_add_inline_entry(struct inode *dir, const struct qstr *new_name, dir 3509 fs/f2fs/f2fs.h struct page *page, struct inode *dir, dir 3511 fs/f2fs/f2fs.h bool f2fs_empty_inline_dir(struct inode *dir); dir 108 fs/f2fs/hash.c f2fs_hash_t f2fs_dentry_hash(const struct inode *dir, dir 112 fs/f2fs/hash.c struct f2fs_sb_info *sbi = F2FS_SB(dir->i_sb); dir 118 fs/f2fs/hash.c if (!name_info->len || !IS_CASEFOLDED(dir)) dir 307 fs/f2fs/inline.c struct f2fs_dir_entry *f2fs_find_in_inline_dir(struct inode *dir, dir 310 fs/f2fs/inline.c struct f2fs_sb_info *sbi = F2FS_SB(dir->i_sb); dir 318 fs/f2fs/inline.c ipage = f2fs_get_node_page(sbi, dir->i_ino); dir 324 fs/f2fs/inline.c namehash = f2fs_dentry_hash(dir, &name, fname); dir 326 fs/f2fs/inline.c inline_dentry = inline_data_addr(dir, ipage); dir 328 fs/f2fs/inline.c make_dentry_ptr_inline(dir, &d, inline_dentry); dir 362 fs/f2fs/inline.c static int f2fs_move_inline_dirents(struct inode *dir, struct page *ipage, dir 371 fs/f2fs/inline.c page = f2fs_grab_cache_page(dir->i_mapping, 0, false); dir 377 fs/f2fs/inline.c set_new_dnode(&dn, dir, ipage, NULL, 0); dir 386 fs/f2fs/inline.c __func__, dir->i_ino, dn.data_blkaddr); dir 395 fs/f2fs/inline.c make_dentry_ptr_inline(dir, &src, inline_dentry); dir 396 fs/f2fs/inline.c make_dentry_ptr_block(dir, &dst, dentry_blk); dir 415 fs/f2fs/inline.c f2fs_truncate_inline_inode(dir, ipage, 0); dir 417 fs/f2fs/inline.c stat_dec_inline_dir(dir); dir 418 fs/f2fs/inline.c clear_inode_flag(dir, FI_INLINE_DENTRY); dir 424 fs/f2fs/inline.c if (!f2fs_sb_has_flexible_inline_xattr(F2FS_I_SB(dir)) && dir 425 fs/f2fs/inline.c !f2fs_has_inline_xattr(dir)) dir 426 fs/f2fs/inline.c F2FS_I(dir)->i_inline_xattr_size = 0; dir 428 fs/f2fs/inline.c f2fs_i_depth_write(dir, 1); dir 429 fs/f2fs/inline.c if (i_size_read(dir) < PAGE_SIZE) dir 430 fs/f2fs/inline.c f2fs_i_size_write(dir, PAGE_SIZE); dir 436 fs/f2fs/inline.c static int f2fs_add_inline_entries(struct inode *dir, void *inline_dentry) dir 442 fs/f2fs/inline.c make_dentry_ptr_inline(dir, &d, inline_dentry); dir 468 fs/f2fs/inline.c err = f2fs_add_regular_entry(dir, &new_name, NULL, NULL, dir 477 fs/f2fs/inline.c truncate_inode_pages(&dir->i_data, 0); dir 478 fs/f2fs/inline.c f2fs_truncate_blocks(dir, 0, false); dir 479 fs/f2fs/inline.c f2fs_remove_dirty_inode(dir); dir 483 fs/f2fs/inline.c static int f2fs_move_rehashed_dirents(struct inode *dir, struct page *ipage, dir 489 fs/f2fs/inline.c backup_dentry = f2fs_kmalloc(F2FS_I_SB(dir), dir 490 fs/f2fs/inline.c MAX_INLINE_DATA(dir), GFP_F2FS_ZERO); dir 496 fs/f2fs/inline.c memcpy(backup_dentry, inline_dentry, MAX_INLINE_DATA(dir)); dir 497 fs/f2fs/inline.c f2fs_truncate_inline_inode(dir, ipage, 0); dir 501 fs/f2fs/inline.c err = f2fs_add_inline_entries(dir, backup_dentry); dir 507 fs/f2fs/inline.c stat_dec_inline_dir(dir); dir 508 fs/f2fs/inline.c clear_inode_flag(dir, FI_INLINE_DENTRY); dir 514 fs/f2fs/inline.c if (!f2fs_sb_has_flexible_inline_xattr(F2FS_I_SB(dir)) && dir 515 fs/f2fs/inline.c !f2fs_has_inline_xattr(dir)) dir 516 fs/f2fs/inline.c F2FS_I(dir)->i_inline_xattr_size = 0; dir 523 fs/f2fs/inline.c memcpy(inline_dentry, backup_dentry, MAX_INLINE_DATA(dir)); dir 524 fs/f2fs/inline.c f2fs_i_depth_write(dir, 0); dir 525 fs/f2fs/inline.c f2fs_i_size_write(dir, MAX_INLINE_DATA(dir)); dir 533 fs/f2fs/inline.c static int f2fs_convert_inline_dir(struct inode *dir, struct page *ipage, dir 536 fs/f2fs/inline.c if (!F2FS_I(dir)->i_dir_level) dir 537 fs/f2fs/inline.c return f2fs_move_inline_dirents(dir, ipage, inline_dentry); dir 539 fs/f2fs/inline.c return f2fs_move_rehashed_dirents(dir, ipage, inline_dentry); dir 542 fs/f2fs/inline.c int f2fs_add_inline_entry(struct inode *dir, const struct qstr *new_name, dir 546 fs/f2fs/inline.c struct f2fs_sb_info *sbi = F2FS_I_SB(dir); dir 556 fs/f2fs/inline.c ipage = f2fs_get_node_page(sbi, dir->i_ino); dir 560 fs/f2fs/inline.c inline_dentry = inline_data_addr(dir, ipage); dir 561 fs/f2fs/inline.c make_dentry_ptr_inline(dir, &d, inline_dentry); dir 565 fs/f2fs/inline.c err = f2fs_convert_inline_dir(dir, ipage, inline_dentry); dir 574 fs/f2fs/inline.c page = f2fs_init_inode_metadata(inode, dir, new_name, dir 584 fs/f2fs/inline.c name_hash = f2fs_dentry_hash(dir, new_name, NULL); dir 591 fs/f2fs/inline.c f2fs_i_pino_write(inode, dir->i_ino); dir 600 fs/f2fs/inline.c f2fs_update_parent_metadata(dir, inode, 0); dir 610 fs/f2fs/inline.c struct inode *dir, struct inode *inode) dir 621 fs/f2fs/inline.c inline_dentry = inline_data_addr(dir, page); dir 622 fs/f2fs/inline.c make_dentry_ptr_inline(dir, &d, inline_dentry); dir 631 fs/f2fs/inline.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 632 fs/f2fs/inline.c f2fs_mark_inode_dirty_sync(dir, false); dir 635 fs/f2fs/inline.c f2fs_drop_nlink(dir, inode); dir 638 fs/f2fs/inline.c bool f2fs_empty_inline_dir(struct inode *dir) dir 640 fs/f2fs/inline.c struct f2fs_sb_info *sbi = F2FS_I_SB(dir); dir 646 fs/f2fs/inline.c ipage = f2fs_get_node_page(sbi, dir->i_ino); dir 650 fs/f2fs/inline.c inline_dentry = inline_data_addr(dir, ipage); dir 651 fs/f2fs/inline.c make_dentry_ptr_inline(dir, &d, inline_dentry); dir 25 fs/f2fs/namei.c static struct inode *f2fs_new_inode(struct inode *dir, umode_t mode) dir 27 fs/f2fs/namei.c struct f2fs_sb_info *sbi = F2FS_I_SB(dir); dir 34 fs/f2fs/namei.c inode = new_inode(dir->i_sb); dir 48 fs/f2fs/namei.c inode_init_owner(inode, dir, mode); dir 66 fs/f2fs/namei.c (F2FS_I(dir)->i_flags & F2FS_PROJINHERIT_FL)) dir 67 fs/f2fs/namei.c F2FS_I(inode)->i_projid = F2FS_I(dir)->i_projid; dir 79 fs/f2fs/namei.c if ((IS_ENCRYPTED(dir) || DUMMY_ENCRYPTION_ENABLED(sbi)) && dir 114 fs/f2fs/namei.c f2fs_mask_flags(mode, F2FS_I(dir)->i_flags & F2FS_FL_INHERITED); dir 265 fs/f2fs/namei.c static int f2fs_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 268 fs/f2fs/namei.c struct f2fs_sb_info *sbi = F2FS_I_SB(dir); dir 278 fs/f2fs/namei.c err = dquot_initialize(dir); dir 282 fs/f2fs/namei.c inode = f2fs_new_inode(dir, mode); dir 304 fs/f2fs/namei.c if (IS_DIRSYNC(dir)) dir 314 fs/f2fs/namei.c static int f2fs_link(struct dentry *old_dentry, struct inode *dir, dir 318 fs/f2fs/namei.c struct f2fs_sb_info *sbi = F2FS_I_SB(dir); dir 326 fs/f2fs/namei.c err = fscrypt_prepare_link(old_dentry, dir, dentry); dir 330 fs/f2fs/namei.c if (is_inode_flag_set(dir, FI_PROJ_INHERIT) && dir 331 fs/f2fs/namei.c (!projid_eq(F2FS_I(dir)->i_projid, dir 335 fs/f2fs/namei.c err = dquot_initialize(dir); dir 353 fs/f2fs/namei.c if (IS_DIRSYNC(dir)) dir 376 fs/f2fs/namei.c static int __recover_dot_dentries(struct inode *dir, nid_t pino) dir 378 fs/f2fs/namei.c struct f2fs_sb_info *sbi = F2FS_I_SB(dir); dir 387 fs/f2fs/namei.c dir->i_ino, pino); dir 391 fs/f2fs/namei.c err = dquot_initialize(dir); dir 399 fs/f2fs/namei.c de = f2fs_find_entry(dir, &dot, &page); dir 406 fs/f2fs/namei.c err = f2fs_do_add_link(dir, &dot, NULL, dir->i_ino, S_IFDIR); dir 411 fs/f2fs/namei.c de = f2fs_find_entry(dir, &dotdot, &page); dir 417 fs/f2fs/namei.c err = f2fs_do_add_link(dir, &dotdot, NULL, pino, S_IFDIR); dir 420 fs/f2fs/namei.c clear_inode_flag(dir, FI_INLINE_DOTS); dir 426 fs/f2fs/namei.c static struct dentry *f2fs_lookup(struct inode *dir, struct dentry *dentry, dir 435 fs/f2fs/namei.c unsigned int root_ino = F2FS_ROOT_INO(F2FS_I_SB(dir)); dir 438 fs/f2fs/namei.c trace_f2fs_lookup_start(dir, dentry, flags); dir 445 fs/f2fs/namei.c err = fscrypt_prepare_lookup(dir, dentry, &fname); dir 450 fs/f2fs/namei.c de = __f2fs_find_entry(dir, &fname, &page); dir 464 fs/f2fs/namei.c inode = f2fs_iget(dir->i_sb, ino); dir 470 fs/f2fs/namei.c if ((dir->i_ino == root_ino) && f2fs_has_inline_dots(dir)) { dir 471 fs/f2fs/namei.c err = __recover_dot_dentries(dir, root_ino); dir 477 fs/f2fs/namei.c err = __recover_dot_dentries(inode, dir->i_ino); dir 481 fs/f2fs/namei.c if (IS_ENCRYPTED(dir) && dir 483 fs/f2fs/namei.c !fscrypt_has_permitted_context(dir, inode)) { dir 485 fs/f2fs/namei.c dir->i_ino, inode->i_ino); dir 491 fs/f2fs/namei.c if (!inode && IS_CASEFOLDED(dir)) { dir 497 fs/f2fs/namei.c trace_f2fs_lookup_end(dir, dentry, ino, err); dir 503 fs/f2fs/namei.c trace_f2fs_lookup_end(dir, dentry, ino, err); dir 508 fs/f2fs/namei.c trace_f2fs_lookup_end(dir, dentry, ino, err); dir 512 fs/f2fs/namei.c static int f2fs_unlink(struct inode *dir, struct dentry *dentry) dir 514 fs/f2fs/namei.c struct f2fs_sb_info *sbi = F2FS_I_SB(dir); dir 520 fs/f2fs/namei.c trace_f2fs_unlink_enter(dir, dentry); dir 525 fs/f2fs/namei.c err = dquot_initialize(dir); dir 532 fs/f2fs/namei.c de = f2fs_find_entry(dir, &dentry->d_name, &page); dir 548 fs/f2fs/namei.c f2fs_delete_entry(de, page, dir, inode); dir 556 fs/f2fs/namei.c if (IS_CASEFOLDED(dir)) dir 561 fs/f2fs/namei.c if (IS_DIRSYNC(dir)) dir 582 fs/f2fs/namei.c static int f2fs_symlink(struct inode *dir, struct dentry *dentry, dir 585 fs/f2fs/namei.c struct f2fs_sb_info *sbi = F2FS_I_SB(dir); dir 596 fs/f2fs/namei.c err = fscrypt_prepare_symlink(dir, symname, len, dir->i_sb->s_blocksize, dir 601 fs/f2fs/namei.c err = dquot_initialize(dir); dir 605 fs/f2fs/namei.c inode = f2fs_new_inode(dir, S_IFLNK | S_IRWXUGO); dir 645 fs/f2fs/namei.c if (IS_DIRSYNC(dir)) dir 648 fs/f2fs/namei.c f2fs_unlink(dir, dentry); dir 662 fs/f2fs/namei.c static int f2fs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 664 fs/f2fs/namei.c struct f2fs_sb_info *sbi = F2FS_I_SB(dir); dir 671 fs/f2fs/namei.c err = dquot_initialize(dir); dir 675 fs/f2fs/namei.c inode = f2fs_new_inode(dir, S_IFDIR | mode); dir 695 fs/f2fs/namei.c if (IS_DIRSYNC(dir)) dir 707 fs/f2fs/namei.c static int f2fs_rmdir(struct inode *dir, struct dentry *dentry) dir 711 fs/f2fs/namei.c return f2fs_unlink(dir, dentry); dir 715 fs/f2fs/namei.c static int f2fs_mknod(struct inode *dir, struct dentry *dentry, dir 718 fs/f2fs/namei.c struct f2fs_sb_info *sbi = F2FS_I_SB(dir); dir 727 fs/f2fs/namei.c err = dquot_initialize(dir); dir 731 fs/f2fs/namei.c inode = f2fs_new_inode(dir, mode); dir 748 fs/f2fs/namei.c if (IS_DIRSYNC(dir)) dir 758 fs/f2fs/namei.c static int __f2fs_tmpfile(struct inode *dir, struct dentry *dentry, dir 761 fs/f2fs/namei.c struct f2fs_sb_info *sbi = F2FS_I_SB(dir); dir 765 fs/f2fs/namei.c err = dquot_initialize(dir); dir 769 fs/f2fs/namei.c inode = f2fs_new_inode(dir, mode); dir 787 fs/f2fs/namei.c err = f2fs_do_tmpfile(inode, dir); dir 819 fs/f2fs/namei.c static int f2fs_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) dir 821 fs/f2fs/namei.c struct f2fs_sb_info *sbi = F2FS_I_SB(dir); dir 828 fs/f2fs/namei.c if (IS_ENCRYPTED(dir) || DUMMY_ENCRYPTION_ENABLED(sbi)) { dir 829 fs/f2fs/namei.c int err = fscrypt_get_encryption_info(dir); dir 834 fs/f2fs/namei.c return __f2fs_tmpfile(dir, dentry, mode, NULL); dir 837 fs/f2fs/namei.c static int f2fs_create_whiteout(struct inode *dir, struct inode **whiteout) dir 839 fs/f2fs/namei.c if (unlikely(f2fs_cp_error(F2FS_I_SB(dir)))) dir 842 fs/f2fs/namei.c return __f2fs_tmpfile(dir, NULL, S_IFCHR | WHITEOUT_MODE, whiteout); dir 118 fs/f2fs/recovery.c struct inode *dir, *einode; dir 128 fs/f2fs/recovery.c dir = ERR_CAST(entry); dir 134 fs/f2fs/recovery.c dir = entry->inode; dir 146 fs/f2fs/recovery.c de = __f2fs_find_entry(dir, &fname, &page); dir 171 fs/f2fs/recovery.c f2fs_delete_entry(de, page, dir, einode); dir 177 fs/f2fs/recovery.c err = f2fs_add_dentry(dir, &fname, inode, dir 193 fs/f2fs/recovery.c IS_ERR(dir) ? 0 : dir->i_ino, err); dir 2374 fs/f2fs/segment.c unsigned int *newseg, bool new_sec, int dir) dir 2397 fs/f2fs/segment.c if (dir == ALLOC_RIGHT) { dir 2431 fs/f2fs/segment.c if (dir == ALLOC_LEFT) { dir 2510 fs/f2fs/segment.c int dir = ALLOC_LEFT; dir 2515 fs/f2fs/segment.c dir = ALLOC_RIGHT; dir 2518 fs/f2fs/segment.c dir = ALLOC_RIGHT; dir 2521 fs/f2fs/segment.c get_new_segment(sbi, &segno, new_sec, dir); dir 132 fs/f2fs/xattr.c int f2fs_init_security(struct inode *inode, struct inode *dir, dir 135 fs/f2fs/xattr.c return security_inode_init_security(inode, dir, qstr, dir 159 fs/f2fs/xattr.h static inline int f2fs_init_security(struct inode *inode, struct inode *dir, dir 49 fs/fat/dir.c static inline void fat_dir_readahead(struct inode *dir, sector_t iblock, dir 52 fs/fat/dir.c struct super_block *sb = dir->i_sb; dir 61 fs/fat/dir.c if (!is_fat32(sbi) && (dir->i_ino == MSDOS_ROOT_INO)) dir 82 fs/fat/dir.c static int fat__get_entry(struct inode *dir, loff_t *pos, dir 85 fs/fat/dir.c struct super_block *sb = dir->i_sb; dir 94 fs/fat/dir.c err = fat_bmap(dir, iblock, &phys, &mapped_blocks, 0, false); dir 98 fs/fat/dir.c fat_dir_readahead(dir, iblock, phys); dir 116 fs/fat/dir.c static inline int fat_get_entry(struct inode *dir, loff_t *pos, dir 123 fs/fat/dir.c MSDOS_SB(dir->i_sb)->dir_per_block - 1) { dir 128 fs/fat/dir.c return fat__get_entry(dir, pos, bh, de); dir 279 fs/fat/dir.c static int fat_parse_long(struct inode *dir, loff_t *pos, dir 316 fs/fat/dir.c if (fat_get_entry(dir, pos, bh, de) < 0) dir 873 fs/fat/dir.c static int fat_get_short_entry(struct inode *dir, loff_t *pos, dir 877 fs/fat/dir.c while (fat_get_entry(dir, pos, bh, de) >= 0) { dir 894 fs/fat/dir.c int fat_get_dotdot_entry(struct inode *dir, struct buffer_head **bh, dir 900 fs/fat/dir.c while (fat_get_short_entry(dir, &offset, bh, de) >= 0) { dir 909 fs/fat/dir.c int fat_dir_empty(struct inode *dir) dir 918 fs/fat/dir.c while (fat_get_short_entry(dir, &cpos, &bh, &de) >= 0) { dir 934 fs/fat/dir.c int fat_subdirs(struct inode *dir) dir 943 fs/fat/dir.c while (fat_get_short_entry(dir, &cpos, &bh, &de) >= 0) { dir 955 fs/fat/dir.c int fat_scan(struct inode *dir, const unsigned char *name, dir 958 fs/fat/dir.c struct super_block *sb = dir->i_sb; dir 962 fs/fat/dir.c while (fat_get_short_entry(dir, &sinfo->slot_off, &sinfo->bh, dir 979 fs/fat/dir.c int fat_scan_logstart(struct inode *dir, int i_logstart, dir 982 fs/fat/dir.c struct super_block *sb = dir->i_sb; dir 986 fs/fat/dir.c while (fat_get_short_entry(dir, &sinfo->slot_off, &sinfo->bh, dir 998 fs/fat/dir.c static int __fat_remove_entries(struct inode *dir, loff_t pos, int nr_slots) dir 1000 fs/fat/dir.c struct super_block *sb = dir->i_sb; dir 1007 fs/fat/dir.c if (fat_get_entry(dir, &pos, &bh, &de) < 0) { dir 1019 fs/fat/dir.c mark_buffer_dirty_inode(bh, dir); dir 1020 fs/fat/dir.c if (IS_DIRSYNC(dir)) dir 1033 fs/fat/dir.c int fat_remove_entries(struct inode *dir, struct fat_slot_info *sinfo) dir 1035 fs/fat/dir.c struct super_block *sb = dir->i_sb; dir 1054 fs/fat/dir.c mark_buffer_dirty_inode(bh, dir); dir 1055 fs/fat/dir.c if (IS_DIRSYNC(dir)) dir 1060 fs/fat/dir.c inode_inc_iversion(dir); dir 1068 fs/fat/dir.c err = __fat_remove_entries(dir, sinfo->slot_off, nr_slots); dir 1075 fs/fat/dir.c fat_truncate_time(dir, NULL, S_ATIME|S_MTIME); dir 1076 fs/fat/dir.c if (IS_DIRSYNC(dir)) dir 1077 fs/fat/dir.c (void)fat_sync_inode(dir); dir 1079 fs/fat/dir.c mark_inode_dirty(dir); dir 1085 fs/fat/dir.c static int fat_zeroed_cluster(struct inode *dir, sector_t blknr, int nr_used, dir 1088 fs/fat/dir.c struct super_block *sb = dir->i_sb; dir 1106 fs/fat/dir.c mark_buffer_dirty_inode(bhs[n], dir); dir 1111 fs/fat/dir.c if (IS_DIRSYNC(dir)) { dir 1121 fs/fat/dir.c if (IS_DIRSYNC(dir)) { dir 1137 fs/fat/dir.c int fat_alloc_new_dir(struct inode *dir, struct timespec64 *ts) dir 1139 fs/fat/dir.c struct super_block *sb = dir->i_sb; dir 1148 fs/fat/dir.c err = fat_alloc_clusters(dir, &cluster, 1); dir 1182 fs/fat/dir.c fat_set_start(&de[1], MSDOS_I(dir)->i_logstart); dir 1187 fs/fat/dir.c mark_buffer_dirty_inode(bhs[0], dir); dir 1189 fs/fat/dir.c err = fat_zeroed_cluster(dir, blknr, 1, bhs, MAX_BUF_PER_PAGE); dir 1196 fs/fat/dir.c fat_free_clusters(dir, cluster); dir 1202 fs/fat/dir.c static int fat_add_new_entries(struct inode *dir, void *slots, int nr_slots, dir 1206 fs/fat/dir.c struct super_block *sb = dir->i_sb; dir 1222 fs/fat/dir.c err = fat_alloc_clusters(dir, cluster, *nr_cluster); dir 1249 fs/fat/dir.c mark_buffer_dirty_inode(bhs[n], dir); dir 1267 fs/fat/dir.c err = fat_zeroed_cluster(dir, start_blknr, ++n, bhs, MAX_BUF_PER_PAGE); dir 1280 fs/fat/dir.c fat_free_clusters(dir, cluster[0]); dir 1285 fs/fat/dir.c int fat_add_entries(struct inode *dir, void *slots, int nr_slots, dir 1288 fs/fat/dir.c struct super_block *sb = dir->i_sb; dir 1302 fs/fat/dir.c while (fat_get_entry(dir, &pos, &bh, &de) > -1) { dir 1323 fs/fat/dir.c if (dir->i_ino == MSDOS_ROOT_INO) { dir 1326 fs/fat/dir.c } else if (MSDOS_I(dir)->i_start == 0) { dir 1328 fs/fat/dir.c MSDOS_I(dir)->i_pos); dir 1351 fs/fat/dir.c mark_buffer_dirty_inode(bhs[i], dir); dir 1356 fs/fat/dir.c if (long_bhs && IS_DIRSYNC(dir)) dir 1362 fs/fat/dir.c mark_buffer_dirty_inode(bhs[i], dir); dir 1363 fs/fat/dir.c if (IS_DIRSYNC(dir)) dir 1380 fs/fat/dir.c cluster = fat_add_new_entries(dir, slots, nr_slots, &nr_cluster, dir 1386 fs/fat/dir.c err = fat_chain_add(dir, cluster, nr_cluster); dir 1388 fs/fat/dir.c fat_free_clusters(dir, cluster); dir 1391 fs/fat/dir.c if (dir->i_size & (sbi->cluster_size - 1)) { dir 1393 fs/fat/dir.c dir->i_size = (dir->i_size + sbi->cluster_size - 1) dir 1396 fs/fat/dir.c dir->i_size += nr_cluster << sbi->cluster_bits; dir 1397 fs/fat/dir.c MSDOS_I(dir)->mmu_private += nr_cluster << sbi->cluster_bits; dir 1415 fs/fat/dir.c __fat_remove_entries(dir, pos, free_slots); dir 327 fs/fat/fat.h extern int fat_dir_empty(struct inode *dir); dir 328 fs/fat/fat.h extern int fat_subdirs(struct inode *dir); dir 329 fs/fat/fat.h extern int fat_scan(struct inode *dir, const unsigned char *name, dir 331 fs/fat/fat.h extern int fat_scan_logstart(struct inode *dir, int i_logstart, dir 333 fs/fat/fat.h extern int fat_get_dotdot_entry(struct inode *dir, struct buffer_head **bh, dir 335 fs/fat/fat.h extern int fat_alloc_new_dir(struct inode *dir, struct timespec64 *ts); dir 336 fs/fat/fat.h extern int fat_add_entries(struct inode *dir, void *slots, int nr_slots, dir 338 fs/fat/fat.h extern int fat_remove_entries(struct inode *dir, struct fat_slot_info *sinfo); dir 496 fs/fat/inode.c static int fat_validate_dir(struct inode *dir) dir 498 fs/fat/inode.c struct super_block *sb = dir->i_sb; dir 500 fs/fat/inode.c if (dir->i_nlink < 2) { dir 505 fs/fat/inode.c if (MSDOS_I(dir)->i_start == 0 || dir 506 fs/fat/inode.c MSDOS_I(dir)->i_start == MSDOS_SB(sb)->root_cluster) { dir 119 fs/fat/namei_msdos.c static int msdos_find(struct inode *dir, const unsigned char *name, int len, dir 122 fs/fat/namei_msdos.c struct msdos_sb_info *sbi = MSDOS_SB(dir->i_sb); dir 130 fs/fat/namei_msdos.c err = fat_scan(dir, msdos_name, sinfo); dir 201 fs/fat/namei_msdos.c static struct dentry *msdos_lookup(struct inode *dir, struct dentry *dentry, dir 204 fs/fat/namei_msdos.c struct super_block *sb = dir->i_sb; dir 210 fs/fat/namei_msdos.c err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo); dir 227 fs/fat/namei_msdos.c static int msdos_add_entry(struct inode *dir, const unsigned char *name, dir 231 fs/fat/namei_msdos.c struct msdos_sb_info *sbi = MSDOS_SB(dir->i_sb); dir 250 fs/fat/namei_msdos.c err = fat_add_entries(dir, &de, 1, sinfo); dir 254 fs/fat/namei_msdos.c fat_truncate_time(dir, ts, S_CTIME|S_MTIME); dir 255 fs/fat/namei_msdos.c if (IS_DIRSYNC(dir)) dir 256 fs/fat/namei_msdos.c (void)fat_sync_inode(dir); dir 258 fs/fat/namei_msdos.c mark_inode_dirty(dir); dir 264 fs/fat/namei_msdos.c static int msdos_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 267 fs/fat/namei_msdos.c struct super_block *sb = dir->i_sb; dir 282 fs/fat/namei_msdos.c if (!fat_scan(dir, msdos_name, &sinfo)) { dir 288 fs/fat/namei_msdos.c ts = current_time(dir); dir 289 fs/fat/namei_msdos.c err = msdos_add_entry(dir, msdos_name, 0, is_hid, 0, &ts, &sinfo); dir 305 fs/fat/namei_msdos.c err = fat_flush_inodes(sb, dir, inode); dir 310 fs/fat/namei_msdos.c static int msdos_rmdir(struct inode *dir, struct dentry *dentry) dir 312 fs/fat/namei_msdos.c struct super_block *sb = dir->i_sb; dir 321 fs/fat/namei_msdos.c err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo); dir 325 fs/fat/namei_msdos.c err = fat_remove_entries(dir, &sinfo); /* and releases bh */ dir 328 fs/fat/namei_msdos.c drop_nlink(dir); dir 336 fs/fat/namei_msdos.c err = fat_flush_inodes(sb, dir, inode); dir 342 fs/fat/namei_msdos.c static int msdos_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 344 fs/fat/namei_msdos.c struct super_block *sb = dir->i_sb; dir 359 fs/fat/namei_msdos.c if (!fat_scan(dir, msdos_name, &sinfo)) { dir 365 fs/fat/namei_msdos.c ts = current_time(dir); dir 366 fs/fat/namei_msdos.c cluster = fat_alloc_new_dir(dir, &ts); dir 371 fs/fat/namei_msdos.c err = msdos_add_entry(dir, msdos_name, 1, is_hid, cluster, &ts, &sinfo); dir 374 fs/fat/namei_msdos.c inc_nlink(dir); dir 390 fs/fat/namei_msdos.c fat_flush_inodes(sb, dir, inode); dir 394 fs/fat/namei_msdos.c fat_free_clusters(dir, cluster); dir 401 fs/fat/namei_msdos.c static int msdos_unlink(struct inode *dir, struct dentry *dentry) dir 409 fs/fat/namei_msdos.c err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo); dir 413 fs/fat/namei_msdos.c err = fat_remove_entries(dir, &sinfo); /* and releases bh */ dir 422 fs/fat/namei_msdos.c err = fat_flush_inodes(sb, dir, inode); dir 236 fs/fat/namei_vfat.c static int vfat_find_form(struct inode *dir, unsigned char *name) dir 239 fs/fat/namei_vfat.c int err = fat_scan(dir, name, &sinfo); dir 327 fs/fat/namei_vfat.c static int vfat_create_shortname(struct inode *dir, struct nls_table *nls, dir 331 fs/fat/namei_vfat.c struct fat_mount_options *opts = &MSDOS_SB(dir->i_sb)->options; dir 448 fs/fat/namei_vfat.c if (vfat_find_form(dir, name_res) == 0) dir 469 fs/fat/namei_vfat.c if (vfat_find_form(dir, name_res) < 0) dir 487 fs/fat/namei_vfat.c if (vfat_find_form(dir, name_res) < 0) dir 502 fs/fat/namei_vfat.c if (vfat_find_form(dir, name_res) < 0) dir 579 fs/fat/namei_vfat.c static int vfat_build_slots(struct inode *dir, const unsigned char *name, dir 584 fs/fat/namei_vfat.c struct msdos_sb_info *sbi = MSDOS_SB(dir->i_sb); dir 611 fs/fat/namei_vfat.c err = vfat_create_shortname(dir, sbi->nls_disk, uname, ulen, dir 656 fs/fat/namei_vfat.c static int vfat_add_entry(struct inode *dir, const struct qstr *qname, dir 672 fs/fat/namei_vfat.c err = vfat_build_slots(dir, qname->name, len, is_dir, cluster, ts, dir 677 fs/fat/namei_vfat.c err = fat_add_entries(dir, slots, nr_slots, sinfo); dir 682 fs/fat/namei_vfat.c fat_truncate_time(dir, ts, S_CTIME|S_MTIME); dir 683 fs/fat/namei_vfat.c if (IS_DIRSYNC(dir)) dir 684 fs/fat/namei_vfat.c (void)fat_sync_inode(dir); dir 686 fs/fat/namei_vfat.c mark_inode_dirty(dir); dir 692 fs/fat/namei_vfat.c static int vfat_find(struct inode *dir, const struct qstr *qname, dir 698 fs/fat/namei_vfat.c return fat_search_long(dir, qname->name, len, sinfo); dir 701 fs/fat/namei_vfat.c static struct dentry *vfat_lookup(struct inode *dir, struct dentry *dentry, dir 704 fs/fat/namei_vfat.c struct super_block *sb = dir->i_sb; dir 712 fs/fat/namei_vfat.c err = vfat_find(dir, &dentry->d_name, &sinfo); dir 752 fs/fat/namei_vfat.c vfat_d_version_set(dentry, inode_query_iversion(dir)); dir 759 fs/fat/namei_vfat.c static int vfat_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 762 fs/fat/namei_vfat.c struct super_block *sb = dir->i_sb; dir 770 fs/fat/namei_vfat.c ts = current_time(dir); dir 771 fs/fat/namei_vfat.c err = vfat_add_entry(dir, &dentry->d_name, 0, 0, &ts, &sinfo); dir 774 fs/fat/namei_vfat.c inode_inc_iversion(dir); dir 792 fs/fat/namei_vfat.c static int vfat_rmdir(struct inode *dir, struct dentry *dentry) dir 795 fs/fat/namei_vfat.c struct super_block *sb = dir->i_sb; dir 804 fs/fat/namei_vfat.c err = vfat_find(dir, &dentry->d_name, &sinfo); dir 808 fs/fat/namei_vfat.c err = fat_remove_entries(dir, &sinfo); /* and releases bh */ dir 811 fs/fat/namei_vfat.c drop_nlink(dir); dir 816 fs/fat/namei_vfat.c vfat_d_version_set(dentry, inode_query_iversion(dir)); dir 823 fs/fat/namei_vfat.c static int vfat_unlink(struct inode *dir, struct dentry *dentry) dir 826 fs/fat/namei_vfat.c struct super_block *sb = dir->i_sb; dir 832 fs/fat/namei_vfat.c err = vfat_find(dir, &dentry->d_name, &sinfo); dir 836 fs/fat/namei_vfat.c err = fat_remove_entries(dir, &sinfo); /* and releases bh */ dir 842 fs/fat/namei_vfat.c vfat_d_version_set(dentry, inode_query_iversion(dir)); dir 849 fs/fat/namei_vfat.c static int vfat_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 851 fs/fat/namei_vfat.c struct super_block *sb = dir->i_sb; dir 859 fs/fat/namei_vfat.c ts = current_time(dir); dir 860 fs/fat/namei_vfat.c cluster = fat_alloc_new_dir(dir, &ts); dir 865 fs/fat/namei_vfat.c err = vfat_add_entry(dir, &dentry->d_name, 1, cluster, &ts, &sinfo); dir 868 fs/fat/namei_vfat.c inode_inc_iversion(dir); dir 869 fs/fat/namei_vfat.c inc_nlink(dir); dir 889 fs/fat/namei_vfat.c fat_free_clusters(dir, cluster); dir 20 fs/fuse/dir.c static void fuse_advise_use_readdirplus(struct inode *dir) dir 22 fs/fuse/dir.c struct fuse_inode *fi = get_fuse_inode(dir); dir 132 fs/fuse/dir.c static void fuse_dir_changed(struct inode *dir) dir 134 fs/fuse/dir.c fuse_invalidate_attr(dir); dir 135 fs/fuse/dir.c inode_maybe_inc_iversion(dir, false); dir 379 fs/fuse/dir.c static struct dentry *fuse_lookup(struct inode *dir, struct dentry *entry, dir 389 fs/fuse/dir.c locked = fuse_lock_inode(dir); dir 390 fs/fuse/dir.c err = fuse_lookup_name(dir->i_sb, get_node_id(dir), &entry->d_name, dir 392 fs/fuse/dir.c fuse_unlock_inode(dir, locked); dir 416 fs/fuse/dir.c fuse_advise_use_readdirplus(dir); dir 431 fs/fuse/dir.c static int fuse_create_open(struct inode *dir, struct dentry *entry, dir 437 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(dir); dir 469 fs/fuse/dir.c args.nodeid = get_node_id(dir); dir 492 fs/fuse/dir.c inode = fuse_iget(dir->i_sb, outentry.nodeid, outentry.generation, dir 504 fs/fuse/dir.c fuse_dir_changed(dir); dir 524 fs/fuse/dir.c static int fuse_atomic_open(struct inode *dir, struct dentry *entry, dir 529 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(dir); dir 533 fs/fuse/dir.c res = fuse_lookup(dir, entry, 0); dir 550 fs/fuse/dir.c err = fuse_create_open(dir, entry, file, flags, mode); dir 560 fs/fuse/dir.c err = fuse_mknod(dir, entry, mode, 0); dir 571 fs/fuse/dir.c struct inode *dir, struct dentry *entry, dir 585 fs/fuse/dir.c args->nodeid = get_node_id(dir); dir 600 fs/fuse/dir.c inode = fuse_iget(dir->i_sb, outarg.nodeid, outarg.generation, dir 619 fs/fuse/dir.c fuse_dir_changed(dir); dir 627 fs/fuse/dir.c static int fuse_mknod(struct inode *dir, struct dentry *entry, umode_t mode, dir 631 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(dir); dir 647 fs/fuse/dir.c return create_new_entry(fc, &args, dir, entry, mode); dir 650 fs/fuse/dir.c static int fuse_create(struct inode *dir, struct dentry *entry, umode_t mode, dir 653 fs/fuse/dir.c return fuse_mknod(dir, entry, mode, 0); dir 656 fs/fuse/dir.c static int fuse_mkdir(struct inode *dir, struct dentry *entry, umode_t mode) dir 659 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(dir); dir 674 fs/fuse/dir.c return create_new_entry(fc, &args, dir, entry, S_IFDIR); dir 677 fs/fuse/dir.c static int fuse_symlink(struct inode *dir, struct dentry *entry, dir 680 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(dir); dir 690 fs/fuse/dir.c return create_new_entry(fc, &args, dir, entry, S_IFLNK); dir 701 fs/fuse/dir.c static int fuse_unlink(struct inode *dir, struct dentry *entry) dir 704 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(dir); dir 708 fs/fuse/dir.c args.nodeid = get_node_id(dir); dir 729 fs/fuse/dir.c fuse_dir_changed(dir); dir 737 fs/fuse/dir.c static int fuse_rmdir(struct inode *dir, struct dentry *entry) dir 740 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(dir); dir 744 fs/fuse/dir.c args.nodeid = get_node_id(dir); dir 751 fs/fuse/dir.c fuse_dir_changed(dir); dir 1010 fs/fuse/dir.c struct dentry *dir; dir 1022 fs/fuse/dir.c dir = d_find_alias(parent); dir 1023 fs/fuse/dir.c if (!dir) dir 1026 fs/fuse/dir.c name->hash = full_name_hash(dir, name->name, name->len); dir 1027 fs/fuse/dir.c entry = d_lookup(dir, name); dir 1028 fs/fuse/dir.c dput(dir); dir 16 fs/fuse/readdir.c static bool fuse_use_readdirplus(struct inode *dir, struct dir_context *ctx) dir 18 fs/fuse/readdir.c struct fuse_conn *fc = get_fuse_conn(dir); dir 19 fs/fuse/readdir.c struct fuse_inode *fi = get_fuse_inode(dir); dir 158 fs/fuse/readdir.c struct inode *dir = d_inode(parent); dir 190 fs/fuse/readdir.c fc = get_fuse_conn(dir); dir 229 fs/fuse/readdir.c inode = fuse_iget(dir->i_sb, o->nodeid, o->generation, dir 1643 fs/gfs2/dir.c struct inode *gfs2_dir_search(struct inode *dir, const struct qstr *name, dir 1651 fs/gfs2/dir.c dent = gfs2_dirent_search(dir, name, gfs2_dirent_find, &bh); dir 1665 fs/gfs2/dir.c inode = gfs2_inode_lookup(dir->i_sb, dtype, addr, formal_ino, dir 1674 fs/gfs2/dir.c int gfs2_dir_check(struct inode *dir, const struct qstr *name, dir 1681 fs/gfs2/dir.c dent = gfs2_dirent_search(dir, name, gfs2_dirent_find, &bh); dir 1693 fs/gfs2/dir.c gfs2_consist_inode(GFS2_I(dir)); dir 26 fs/gfs2/dir.h extern struct inode *gfs2_dir_search(struct inode *dir, dir 29 fs/gfs2/dir.h extern int gfs2_dir_check(struct inode *dir, const struct qstr *filename, dir 46 fs/gfs2/dir.h extern int gfs2_diradd_alloc_required(struct inode *dir, dir 88 fs/gfs2/export.c struct inode *dir = d_inode(parent); dir 99 fs/gfs2/export.c if (!dir) dir 102 fs/gfs2/export.c if (!S_ISDIR(dir->i_mode) || !inode) dir 105 fs/gfs2/export.c dip = GFS2_I(dir); dir 116 fs/gfs2/export.c error = gfs2_dir_read(dir, &gnfd.ctx, &f_ra); dir 105 fs/gfs2/file.c struct inode *dir = file->f_mapping->host; dir 106 fs/gfs2/file.c struct gfs2_inode *dip = GFS2_I(dir); dir 114 fs/gfs2/file.c error = gfs2_dir_read(dir, ctx, &file->f_ra); dir 277 fs/gfs2/inode.c struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name, dir 280 fs/gfs2/inode.c struct super_block *sb = dir->i_sb; dir 281 fs/gfs2/inode.c struct gfs2_inode *dip = GFS2_I(dir); dir 292 fs/gfs2/inode.c dir == d_inode(sb->s_root))) { dir 293 fs/gfs2/inode.c igrab(dir); dir 294 fs/gfs2/inode.c return dir; dir 304 fs/gfs2/inode.c error = gfs2_permission(dir, MAY_EXEC); dir 309 fs/gfs2/inode.c inode = gfs2_dir_search(dir, name, false); dir 577 fs/gfs2/inode.c static int gfs2_create_inode(struct inode *dir, struct dentry *dentry, dir 586 fs/gfs2/inode.c struct gfs2_inode *dip = GFS2_I(dir), *ip; dir 614 fs/gfs2/inode.c inode = gfs2_dir_search(dir, &dentry->d_name, !S_ISREG(mode) || excl); dir 636 fs/gfs2/inode.c error = gfs2_diradd_alloc_required(dir, name, &da); dir 645 fs/gfs2/inode.c error = posix_acl_create(dir, &mode, &default_acl, &acl); dir 819 fs/gfs2/inode.c static int gfs2_create(struct inode *dir, struct dentry *dentry, dir 822 fs/gfs2/inode.c return gfs2_create_inode(dir, dentry, NULL, S_IFREG | mode, 0, NULL, 0, excl); dir 835 fs/gfs2/inode.c static struct dentry *__gfs2_lookup(struct inode *dir, struct dentry *dentry, dir 844 fs/gfs2/inode.c inode = gfs2_lookupi(dir, &dentry->d_name, 0); dir 875 fs/gfs2/inode.c static struct dentry *gfs2_lookup(struct inode *dir, struct dentry *dentry, dir 878 fs/gfs2/inode.c return __gfs2_lookup(dir, dentry, NULL); dir 893 fs/gfs2/inode.c static int gfs2_link(struct dentry *old_dentry, struct inode *dir, dir 896 fs/gfs2/inode.c struct gfs2_inode *dip = GFS2_I(dir); dir 897 fs/gfs2/inode.c struct gfs2_sbd *sdp = GFS2_SB(dir); dir 927 fs/gfs2/inode.c error = gfs2_permission(dir, MAY_WRITE | MAY_EXEC); dir 931 fs/gfs2/inode.c error = gfs2_dir_check(dir, &dentry->d_name, NULL); dir 957 fs/gfs2/inode.c error = gfs2_diradd_alloc_required(dir, &dentry->d_name, &da); dir 984 fs/gfs2/inode.c error = gfs2_dir_add(dir, &dentry->d_name, ip, &da); dir 1097 fs/gfs2/inode.c static int gfs2_unlink(struct inode *dir, struct dentry *dentry) dir 1099 fs/gfs2/inode.c struct gfs2_inode *dip = GFS2_I(dir); dir 1100 fs/gfs2/inode.c struct gfs2_sbd *sdp = GFS2_SB(dir); dir 1179 fs/gfs2/inode.c static int gfs2_symlink(struct inode *dir, struct dentry *dentry, dir 1185 fs/gfs2/inode.c if (size >= gfs2_max_stuffed_size(GFS2_I(dir))) dir 1188 fs/gfs2/inode.c return gfs2_create_inode(dir, dentry, NULL, S_IFLNK | S_IRWXUGO, 0, symname, size, 0); dir 1200 fs/gfs2/inode.c static int gfs2_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 1202 fs/gfs2/inode.c unsigned dsize = gfs2_max_stuffed_size(GFS2_I(dir)); dir 1203 fs/gfs2/inode.c return gfs2_create_inode(dir, dentry, NULL, S_IFDIR | mode, 0, NULL, dsize, 0); dir 1215 fs/gfs2/inode.c static int gfs2_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dir 1218 fs/gfs2/inode.c return gfs2_create_inode(dir, dentry, NULL, mode, dev, NULL, 0, 0); dir 1232 fs/gfs2/inode.c static int gfs2_atomic_open(struct inode *dir, struct dentry *dentry, dir 1242 fs/gfs2/inode.c d = __gfs2_lookup(dir, dentry, file); dir 1260 fs/gfs2/inode.c return gfs2_create_inode(dir, dentry, file, S_IFREG | mode, 0, NULL, 0, excl); dir 1276 fs/gfs2/inode.c struct inode *dir = &to->i_inode; dir 1277 fs/gfs2/inode.c struct super_block *sb = dir->i_sb; dir 1281 fs/gfs2/inode.c igrab(dir); dir 1284 fs/gfs2/inode.c if (dir == &this->i_inode) { dir 1288 fs/gfs2/inode.c if (dir == d_inode(sb->s_root)) { dir 1293 fs/gfs2/inode.c tmp = gfs2_lookupi(dir, &gfs2_qdotdot, 1); dir 1303 fs/gfs2/inode.c iput(dir); dir 1304 fs/gfs2/inode.c dir = tmp; dir 1307 fs/gfs2/inode.c iput(dir); dir 100 fs/gfs2/inode.h extern struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name, dir 43 fs/hfs/catalog.c rec->dir.DirID = cpu_to_be32(cnid); dir 44 fs/hfs/catalog.c rec->dir.CrDat = mtime; dir 45 fs/hfs/catalog.c rec->dir.MdDat = mtime; dir 46 fs/hfs/catalog.c rec->dir.BkDat = 0; dir 47 fs/hfs/catalog.c rec->dir.UsrInfo.frView = cpu_to_be16(0xff); dir 82 fs/hfs/catalog.c int hfs_cat_create(u32 cnid, struct inode *dir, const struct qstr *str, struct inode *inode) dir 92 fs/hfs/catalog.c if (dir->i_size >= HFS_MAX_VALENCE) dir 95 fs/hfs/catalog.c sb = dir->i_sb; dir 111 fs/hfs/catalog.c dir->i_ino, str); dir 122 fs/hfs/catalog.c hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str); dir 135 fs/hfs/catalog.c dir->i_size++; dir 136 fs/hfs/catalog.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 137 fs/hfs/catalog.c mark_inode_dirty(dir); dir 221 fs/hfs/catalog.c int hfs_cat_delete(u32 cnid, struct inode *dir, const struct qstr *str) dir 229 fs/hfs/catalog.c sb = dir->i_sb; dir 234 fs/hfs/catalog.c hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str); dir 252 fs/hfs/catalog.c spin_lock(&HFS_I(dir)->open_dir_lock); dir 253 fs/hfs/catalog.c list_for_each_entry(rd, &HFS_I(dir)->open_dir_list, list) { dir 257 fs/hfs/catalog.c spin_unlock(&HFS_I(dir)->open_dir_lock); dir 271 fs/hfs/catalog.c dir->i_size--; dir 272 fs/hfs/catalog.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 273 fs/hfs/catalog.c mark_inode_dirty(dir); dir 20 fs/hfs/dir.c static struct dentry *hfs_lookup(struct inode *dir, struct dentry *dentry, dir 28 fs/hfs/dir.c res = hfs_find_init(HFS_SB(dir->i_sb)->cat_tree, &fd); dir 31 fs/hfs/dir.c hfs_cat_build_key(dir->i_sb, fd.search_key, dir->i_ino, &dentry->d_name); dir 37 fs/hfs/dir.c inode = hfs_iget(dir->i_sb, &fd.search_key->cat, &rec); dir 126 fs/hfs/dir.c be32_to_cpu(entry.dir.DirID), DT_DIR)) dir 192 fs/hfs/dir.c static int hfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 198 fs/hfs/dir.c inode = hfs_new_inode(dir, &dentry->d_name, mode); dir 202 fs/hfs/dir.c res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); dir 222 fs/hfs/dir.c static int hfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 227 fs/hfs/dir.c inode = hfs_new_inode(dir, &dentry->d_name, S_IFDIR | mode); dir 231 fs/hfs/dir.c res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); dir 254 fs/hfs/dir.c static int hfs_remove(struct inode *dir, struct dentry *dentry) dir 261 fs/hfs/dir.c res = hfs_cat_delete(inode->i_ino, dir, &dentry->d_name); dir 142 fs/hfs/hfs.h } dir; dir 236 fs/hfs/hfs.h struct hfs_cat_dir dir; dir 182 fs/hfs/inode.c struct inode *hfs_new_inode(struct inode *dir, const struct qstr *name, umode_t mode) dir 184 fs/hfs/inode.c struct super_block *sb = dir->i_sb; dir 192 fs/hfs/inode.c hfs_cat_build_key(sb, (btree_key *)&HFS_I(inode)->cat_key, dir->i_ino, name); dir 205 fs/hfs/inode.c if (dir->i_ino == HFS_ROOT_CNID) dir 214 fs/hfs/inode.c if (dir->i_ino == HFS_ROOT_CNID) dir 301 fs/hfs/inode.c return inode->i_ino == be32_to_cpu(rec->dir.DirID); dir 360 fs/hfs/inode.c inode->i_ino = be32_to_cpu(rec->dir.DirID); dir 361 fs/hfs/inode.c inode->i_size = be16_to_cpu(rec->dir.Val) + 2; dir 365 fs/hfs/inode.c timespec_to_timespec64(hfs_m_to_utime(rec->dir.MdDat)); dir 392 fs/hfs/inode.c cnid = be32_to_cpu(rec->dir.DirID); dir 467 fs/hfs/inode.c be32_to_cpu(rec.dir.DirID) != inode->i_ino) { dir 470 fs/hfs/inode.c rec.dir.MdDat = hfs_u_to_mtime(inode->i_mtime); dir 471 fs/hfs/inode.c rec.dir.Val = cpu_to_be16(inode->i_size - 2); dir 506 fs/hfs/inode.c static struct dentry *hfs_file_lookup(struct inode *dir, struct dentry *dentry, dir 514 fs/hfs/inode.c if (HFS_IS_RSRC(dir) || strcmp(dentry->d_name.name, "rsrc")) dir 517 fs/hfs/inode.c inode = HFS_I(dir)->rsrc_inode; dir 521 fs/hfs/inode.c inode = new_inode(dir->i_sb); dir 525 fs/hfs/inode.c res = hfs_find_init(HFS_SB(dir->i_sb)->cat_tree, &fd); dir 530 fs/hfs/inode.c fd.search_key->cat = HFS_I(dir)->cat_key; dir 541 fs/hfs/inode.c HFS_I(inode)->rsrc_inode = dir; dir 542 fs/hfs/inode.c HFS_I(dir)->rsrc_inode = inode; dir 543 fs/hfs/inode.c igrab(dir); dir 354 fs/hfsplus/attributes.c int hfsplus_delete_all_attrs(struct inode *dir, u32 cnid) dir 361 fs/hfsplus/attributes.c if (!HFSPLUS_SB(dir->i_sb)->attr_tree) { dir 366 fs/hfsplus/attributes.c err = hfs_find_init(HFSPLUS_SB(dir->i_sb)->attr_tree, &fd); dir 371 fs/hfsplus/attributes.c err = hfsplus_find_attr(dir->i_sb, cnid, NULL, &fd); dir 378 fs/hfsplus/attributes.c err = __hfsplus_delete_attr(dir, cnid, &fd); dir 223 fs/hfsplus/catalog.c static void hfsplus_subfolders_inc(struct inode *dir) dir 225 fs/hfsplus/catalog.c struct hfsplus_sb_info *sbi = HFSPLUS_SB(dir->i_sb); dir 232 fs/hfsplus/catalog.c HFSPLUS_I(dir)->subfolders++; dir 236 fs/hfsplus/catalog.c static void hfsplus_subfolders_dec(struct inode *dir) dir 238 fs/hfsplus/catalog.c struct hfsplus_sb_info *sbi = HFSPLUS_SB(dir->i_sb); dir 248 fs/hfsplus/catalog.c if (HFSPLUS_I(dir)->subfolders) dir 249 fs/hfsplus/catalog.c HFSPLUS_I(dir)->subfolders--; dir 253 fs/hfsplus/catalog.c int hfsplus_create_cat(u32 cnid, struct inode *dir, dir 256 fs/hfsplus/catalog.c struct super_block *sb = dir->i_sb; dir 280 fs/hfsplus/catalog.c dir->i_ino, str); dir 296 fs/hfsplus/catalog.c err = hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, str); dir 312 fs/hfsplus/catalog.c dir->i_size++; dir 314 fs/hfsplus/catalog.c hfsplus_subfolders_inc(dir); dir 315 fs/hfsplus/catalog.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 316 fs/hfsplus/catalog.c hfsplus_mark_inode_dirty(dir, HFSPLUS_I_CAT_DIRTY); dir 330 fs/hfsplus/catalog.c int hfsplus_delete_cat(u32 cnid, struct inode *dir, const struct qstr *str) dir 332 fs/hfsplus/catalog.c struct super_block *sb = dir->i_sb; dir 362 fs/hfsplus/catalog.c fd.search_key->cat.parent = cpu_to_be32(dir->i_ino); dir 371 fs/hfsplus/catalog.c err = hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, str); dir 395 fs/hfsplus/catalog.c spin_lock(&HFSPLUS_I(dir)->open_dir_lock); dir 396 fs/hfsplus/catalog.c list_for_each(pos, &HFSPLUS_I(dir)->open_dir_list) { dir 402 fs/hfsplus/catalog.c spin_unlock(&HFSPLUS_I(dir)->open_dir_lock); dir 417 fs/hfsplus/catalog.c dir->i_size--; dir 419 fs/hfsplus/catalog.c hfsplus_subfolders_dec(dir); dir 420 fs/hfsplus/catalog.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 421 fs/hfsplus/catalog.c hfsplus_mark_inode_dirty(dir, HFSPLUS_I_CAT_DIRTY); dir 425 fs/hfsplus/catalog.c hfsplus_delete_all_attrs(dir, cnid); dir 30 fs/hfsplus/dir.c static struct dentry *hfsplus_lookup(struct inode *dir, struct dentry *dentry, dir 41 fs/hfsplus/dir.c sb = dir->i_sb; dir 47 fs/hfsplus/dir.c err = hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, dir 118 fs/hfsplus/dir.c inode = hfsplus_iget(dir->i_sb, cnid); dir 358 fs/hfsplus/dir.c static int hfsplus_unlink(struct inode *dir, struct dentry *dentry) dir 360 fs/hfsplus/dir.c struct hfsplus_sb_info *sbi = HFSPLUS_SB(dir->i_sb); dir 377 fs/hfsplus/dir.c dir, &dentry->d_name, dir 385 fs/hfsplus/dir.c res = hfsplus_delete_cat(cnid, dir, &dentry->d_name); dir 415 fs/hfsplus/dir.c static int hfsplus_rmdir(struct inode *dir, struct dentry *dentry) dir 417 fs/hfsplus/dir.c struct hfsplus_sb_info *sbi = HFSPLUS_SB(dir->i_sb); dir 425 fs/hfsplus/dir.c res = hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name); dir 437 fs/hfsplus/dir.c static int hfsplus_symlink(struct inode *dir, struct dentry *dentry, dir 440 fs/hfsplus/dir.c struct hfsplus_sb_info *sbi = HFSPLUS_SB(dir->i_sb); dir 445 fs/hfsplus/dir.c inode = hfsplus_new_inode(dir->i_sb, dir, S_IFLNK | S_IRWXUGO); dir 453 fs/hfsplus/dir.c res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); dir 457 fs/hfsplus/dir.c res = hfsplus_init_security(inode, dir, &dentry->d_name); dir 462 fs/hfsplus/dir.c hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name); dir 479 fs/hfsplus/dir.c static int hfsplus_mknod(struct inode *dir, struct dentry *dentry, dir 482 fs/hfsplus/dir.c struct hfsplus_sb_info *sbi = HFSPLUS_SB(dir->i_sb); dir 487 fs/hfsplus/dir.c inode = hfsplus_new_inode(dir->i_sb, dir, mode); dir 494 fs/hfsplus/dir.c res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); dir 498 fs/hfsplus/dir.c res = hfsplus_init_security(inode, dir, &dentry->d_name); dir 503 fs/hfsplus/dir.c hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name); dir 520 fs/hfsplus/dir.c static int hfsplus_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 523 fs/hfsplus/dir.c return hfsplus_mknod(dir, dentry, mode, 0); dir 526 fs/hfsplus/dir.c static int hfsplus_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 528 fs/hfsplus/dir.c return hfsplus_mknod(dir, dentry, mode | S_IFDIR, 0); dir 386 fs/hfsplus/hfsplus_fs.h int hfsplus_delete_all_attrs(struct inode *dir, u32 cnid); dir 456 fs/hfsplus/hfsplus_fs.h int hfsplus_create_cat(u32 cnid, struct inode *dir, const struct qstr *str, dir 458 fs/hfsplus/hfsplus_fs.h int hfsplus_delete_cat(u32 cnid, struct inode *dir, const struct qstr *str); dir 482 fs/hfsplus/hfsplus_fs.h struct inode *hfsplus_new_inode(struct super_block *sb, struct inode *dir, dir 182 fs/hfsplus/inode.c struct hfsplus_perm *perms, int dir) dir 197 fs/hfsplus/inode.c if (dir) { dir 368 fs/hfsplus/inode.c struct inode *hfsplus_new_inode(struct super_block *sb, struct inode *dir, dir 379 fs/hfsplus/inode.c inode_init_owner(inode, dir, mode); dir 38 fs/hfsplus/xattr.h int hfsplus_init_security(struct inode *inode, struct inode *dir, dir 67 fs/hfsplus/xattr_security.c int hfsplus_init_security(struct inode *inode, struct inode *dir, dir 70 fs/hfsplus/xattr_security.c return security_inode_init_security(inode, dir, qstr, dir 275 fs/hostfs/hostfs_kern.c void *dir; dir 284 fs/hostfs/hostfs_kern.c dir = open_dir(name, &error); dir 286 fs/hostfs/hostfs_kern.c if (dir == NULL) dir 289 fs/hostfs/hostfs_kern.c seek_dir(dir, next); dir 290 fs/hostfs/hostfs_kern.c while ((name = read_dir(dir, &next, &ino, &len, &type)) != NULL) { dir 295 fs/hostfs/hostfs_kern.c close_dir(dir); dir 560 fs/hostfs/hostfs_kern.c static int hostfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 567 fs/hostfs/hostfs_kern.c inode = hostfs_iget(dir->i_sb); dir 696 fs/hostfs/hostfs_kern.c static int hostfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) dir 702 fs/hostfs/hostfs_kern.c inode = hostfs_iget(dir->i_sb); dir 92 fs/hostfs/hostfs_user.c DIR *dir; dir 94 fs/hostfs/hostfs_user.c dir = opendir(path); dir 97 fs/hostfs/hostfs_user.c return dir; dir 102 fs/hostfs/hostfs_user.c DIR *dir = stream; dir 104 fs/hostfs/hostfs_user.c seekdir(dir, pos); dir 111 fs/hostfs/hostfs_user.c DIR *dir = stream; dir 114 fs/hostfs/hostfs_user.c ent = readdir(dir); dir 202 fs/hpfs/dir.c struct dentry *hpfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) dir 213 fs/hpfs/dir.c hpfs_lock(dir->i_sb); dir 216 fs/hpfs/dir.c hpfs_unlock(dir->i_sb); dir 226 fs/hpfs/dir.c de = map_dirent(dir, hpfs_i(dir)->i_dno, name, len, NULL, &qbh); dir 244 fs/hpfs/dir.c result = iget_locked(dir->i_sb, ino); dir 246 fs/hpfs/dir.c hpfs_error(dir->i_sb, "hpfs_lookup: can't get inode"); dir 254 fs/hpfs/dir.c else if (le32_to_cpu(de->ea_size) && hpfs_sb(dir->i_sb)->sb_eas) dir 266 fs/hpfs/dir.c if (!de->directory) hpfs_result->i_parent_dir = dir->i_ino; dir 268 fs/hpfs/dir.c if (de->has_acl || de->has_xtd_perm) if (!sb_rdonly(dir->i_sb)) { dir 281 fs/hpfs/dir.c if (!(result->i_ctime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(de->creation_date)))) dir 284 fs/hpfs/dir.c result->i_mtime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(de->write_date)); dir 286 fs/hpfs/dir.c result->i_atime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(de->read_date)); dir 316 fs/hpfs/dir.c hpfs_unlock(dir->i_sb); dir 23 fs/hpfs/name.c static inline unsigned char upcase(unsigned char *dir, unsigned char a) dir 26 fs/hpfs/name.c if (!dir) return a; dir 27 fs/hpfs/name.c return dir[a-128]; dir 30 fs/hpfs/name.c unsigned char hpfs_upcase(unsigned char *dir, unsigned char a) dir 32 fs/hpfs/name.c return upcase(dir, a); dir 35 fs/hpfs/name.c static inline unsigned char locase(unsigned char *dir, unsigned char a) dir 38 fs/hpfs/name.c if (!dir) return a; dir 39 fs/hpfs/name.c return dir[a]; dir 12 fs/hpfs/namei.c static void hpfs_update_directory_times(struct inode *dir) dir 14 fs/hpfs/namei.c time64_t t = local_to_gmt(dir->i_sb, local_get_seconds(dir->i_sb)); dir 15 fs/hpfs/namei.c if (t == dir->i_mtime.tv_sec && dir 16 fs/hpfs/namei.c t == dir->i_ctime.tv_sec) dir 18 fs/hpfs/namei.c dir->i_mtime.tv_sec = dir->i_ctime.tv_sec = t; dir 19 fs/hpfs/namei.c dir->i_mtime.tv_nsec = dir->i_ctime.tv_nsec = 0; dir 20 fs/hpfs/namei.c hpfs_write_inode_nolock(dir); dir 23 fs/hpfs/namei.c static int hpfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 39 fs/hpfs/namei.c hpfs_lock(dir->i_sb); dir 41 fs/hpfs/namei.c fnode = hpfs_alloc_fnode(dir->i_sb, hpfs_i(dir)->i_dno, &fno, &bh); dir 44 fs/hpfs/namei.c dnode = hpfs_alloc_dnode(dir->i_sb, fno, &dno, &qbh0); dir 53 fs/hpfs/namei.c dee.creation_date = dee.write_date = dee.read_date = cpu_to_le32(local_get_seconds(dir->i_sb)); dir 54 fs/hpfs/namei.c result = new_inode(dir->i_sb); dir 59 fs/hpfs/namei.c hpfs_i(result)->i_parent_dir = dir->i_ino; dir 61 fs/hpfs/namei.c result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(dee.creation_date)); dir 75 fs/hpfs/namei.c r = hpfs_add_dirent(dir, name, len, &dee); dir 84 fs/hpfs/namei.c fnode->up = cpu_to_le32(dir->i_ino); dir 93 fs/hpfs/namei.c de = hpfs_add_de(dir->i_sb, dnode, "\001\001", 2, 0); dir 94 fs/hpfs/namei.c de->creation_date = de->write_date = de->read_date = cpu_to_le32(local_get_seconds(dir->i_sb)); dir 103 fs/hpfs/namei.c inc_nlink(dir); dir 114 fs/hpfs/namei.c hpfs_update_directory_times(dir); dir 116 fs/hpfs/namei.c hpfs_unlock(dir->i_sb); dir 122 fs/hpfs/namei.c hpfs_free_dnode(dir->i_sb, dno); dir 125 fs/hpfs/namei.c hpfs_free_sectors(dir->i_sb, fno, 1); dir 127 fs/hpfs/namei.c hpfs_unlock(dir->i_sb); dir 131 fs/hpfs/namei.c static int hpfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) dir 144 fs/hpfs/namei.c hpfs_lock(dir->i_sb); dir 146 fs/hpfs/namei.c fnode = hpfs_alloc_fnode(dir->i_sb, hpfs_i(dir)->i_dno, &fno, &bh); dir 154 fs/hpfs/namei.c dee.creation_date = dee.write_date = dee.read_date = cpu_to_le32(local_get_seconds(dir->i_sb)); dir 156 fs/hpfs/namei.c result = new_inode(dir->i_sb); dir 167 fs/hpfs/namei.c hpfs_i(result)->i_parent_dir = dir->i_ino; dir 168 fs/hpfs/namei.c result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(dee.creation_date)); dir 180 fs/hpfs/namei.c r = hpfs_add_dirent(dir, name, len, &dee); dir 189 fs/hpfs/namei.c fnode->up = cpu_to_le32(dir->i_ino); dir 203 fs/hpfs/namei.c hpfs_update_directory_times(dir); dir 205 fs/hpfs/namei.c hpfs_unlock(dir->i_sb); dir 212 fs/hpfs/namei.c hpfs_free_sectors(dir->i_sb, fno, 1); dir 214 fs/hpfs/namei.c hpfs_unlock(dir->i_sb); dir 218 fs/hpfs/namei.c static int hpfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) dir 230 fs/hpfs/namei.c if (hpfs_sb(dir->i_sb)->sb_eas < 2) return -EPERM; dir 231 fs/hpfs/namei.c hpfs_lock(dir->i_sb); dir 233 fs/hpfs/namei.c fnode = hpfs_alloc_fnode(dir->i_sb, hpfs_i(dir)->i_dno, &fno, &bh); dir 241 fs/hpfs/namei.c dee.creation_date = dee.write_date = dee.read_date = cpu_to_le32(local_get_seconds(dir->i_sb)); dir 243 fs/hpfs/namei.c result = new_inode(dir->i_sb); dir 249 fs/hpfs/namei.c hpfs_i(result)->i_parent_dir = dir->i_ino; dir 250 fs/hpfs/namei.c result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(dee.creation_date)); dir 262 fs/hpfs/namei.c r = hpfs_add_dirent(dir, name, len, &dee); dir 271 fs/hpfs/namei.c fnode->up = cpu_to_le32(dir->i_ino); dir 277 fs/hpfs/namei.c hpfs_update_directory_times(dir); dir 280 fs/hpfs/namei.c hpfs_unlock(dir->i_sb); dir 286 fs/hpfs/namei.c hpfs_free_sectors(dir->i_sb, fno, 1); dir 288 fs/hpfs/namei.c hpfs_unlock(dir->i_sb); dir 292 fs/hpfs/namei.c static int hpfs_symlink(struct inode *dir, struct dentry *dentry, const char *symlink) dir 304 fs/hpfs/namei.c hpfs_lock(dir->i_sb); dir 305 fs/hpfs/namei.c if (hpfs_sb(dir->i_sb)->sb_eas < 2) { dir 306 fs/hpfs/namei.c hpfs_unlock(dir->i_sb); dir 310 fs/hpfs/namei.c fnode = hpfs_alloc_fnode(dir->i_sb, hpfs_i(dir)->i_dno, &fno, &bh); dir 317 fs/hpfs/namei.c dee.creation_date = dee.write_date = dee.read_date = cpu_to_le32(local_get_seconds(dir->i_sb)); dir 319 fs/hpfs/namei.c result = new_inode(dir->i_sb); dir 324 fs/hpfs/namei.c hpfs_i(result)->i_parent_dir = dir->i_ino; dir 325 fs/hpfs/namei.c result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb, le32_to_cpu(dee.creation_date)); dir 340 fs/hpfs/namei.c r = hpfs_add_dirent(dir, name, len, &dee); dir 349 fs/hpfs/namei.c fnode->up = cpu_to_le32(dir->i_ino); dir 357 fs/hpfs/namei.c hpfs_update_directory_times(dir); dir 359 fs/hpfs/namei.c hpfs_unlock(dir->i_sb); dir 365 fs/hpfs/namei.c hpfs_free_sectors(dir->i_sb, fno, 1); dir 367 fs/hpfs/namei.c hpfs_unlock(dir->i_sb); dir 371 fs/hpfs/namei.c static int hpfs_unlink(struct inode *dir, struct dentry *dentry) dir 382 fs/hpfs/namei.c hpfs_lock(dir->i_sb); dir 386 fs/hpfs/namei.c de = map_dirent(dir, hpfs_i(dir)->i_dno, name, len, &dno, &qbh); dir 398 fs/hpfs/namei.c r = hpfs_remove_dirent(dir, dno, de, &qbh, 1); dir 401 fs/hpfs/namei.c hpfs_error(dir->i_sb, "there was error when removing dirent"); dir 417 fs/hpfs/namei.c hpfs_update_directory_times(dir); dir 418 fs/hpfs/namei.c hpfs_unlock(dir->i_sb); dir 422 fs/hpfs/namei.c static int hpfs_rmdir(struct inode *dir, struct dentry *dentry) dir 435 fs/hpfs/namei.c hpfs_lock(dir->i_sb); dir 437 fs/hpfs/namei.c de = map_dirent(dir, hpfs_i(dir)->i_dno, name, len, &dno, &qbh); dir 449 fs/hpfs/namei.c hpfs_count_dnodes(dir->i_sb, hpfs_i(inode)->i_dno, NULL, NULL, &n_items); dir 454 fs/hpfs/namei.c r = hpfs_remove_dirent(dir, dno, de, &qbh, 1); dir 457 fs/hpfs/namei.c hpfs_error(dir->i_sb, "there was error when removing dirent"); dir 464 fs/hpfs/namei.c drop_nlink(dir); dir 473 fs/hpfs/namei.c hpfs_update_directory_times(dir); dir 474 fs/hpfs/namei.c hpfs_unlock(dir->i_sb); dir 758 fs/hugetlbfs/inode.c struct inode *dir, dir 779 fs/hugetlbfs/inode.c inode_init_owner(inode, dir, mode); dir 818 fs/hugetlbfs/inode.c static int hugetlbfs_mknod(struct inode *dir, dir 824 fs/hugetlbfs/inode.c inode = hugetlbfs_get_inode(dir->i_sb, dir, mode, dev); dir 826 fs/hugetlbfs/inode.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 834 fs/hugetlbfs/inode.c static int hugetlbfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 836 fs/hugetlbfs/inode.c int retval = hugetlbfs_mknod(dir, dentry, mode | S_IFDIR, 0); dir 838 fs/hugetlbfs/inode.c inc_nlink(dir); dir 842 fs/hugetlbfs/inode.c static int hugetlbfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) dir 844 fs/hugetlbfs/inode.c return hugetlbfs_mknod(dir, dentry, mode | S_IFREG, 0); dir 847 fs/hugetlbfs/inode.c static int hugetlbfs_symlink(struct inode *dir, dir 853 fs/hugetlbfs/inode.c inode = hugetlbfs_get_inode(dir->i_sb, dir, S_IFLNK|S_IRWXUGO, 0); dir 863 fs/hugetlbfs/inode.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 2052 fs/inode.c void inode_init_owner(struct inode *inode, const struct inode *dir, dir 2056 fs/inode.c if (dir && dir->i_mode & S_ISGID) { dir 2057 fs/inode.c inode->i_gid = dir->i_gid; dir 2064 fs/inode.c !capable_wrt_inode_uidgid(dir, CAP_FSETID)) dir 36 fs/isofs/namei.c isofs_find_entry(struct inode *dir, struct dentry *dentry, dir 40 fs/isofs/namei.c unsigned long bufsize = ISOFS_BUFFER_SIZE(dir); dir 41 fs/isofs/namei.c unsigned char bufbits = ISOFS_BUFFER_BITS(dir); dir 44 fs/isofs/namei.c struct isofs_sb_info *sbi = ISOFS_SB(dir->i_sb); dir 46 fs/isofs/namei.c if (!ISOFS_I(dir)->i_first_extent) dir 53 fs/isofs/namei.c while (f_pos < dir->i_size) { dir 59 fs/isofs/namei.c bh = isofs_bread(dir, block); dir 90 fs/isofs/namei.c bh = isofs_bread(dir, block); dir 104 fs/isofs/namei.c dir->i_ino); dir 109 fs/isofs/namei.c ((i = get_rock_ridge_filename(de, tmpname, dir)))) { dir 114 fs/isofs/namei.c dlen = get_joliet_filename(de, tmpname, dir); dir 118 fs/isofs/namei.c dlen = get_acorn_filename(de, tmpname, dir); dir 121 fs/isofs/namei.c dlen = isofs_name_translate(de, tmpname, dir); dir 152 fs/isofs/namei.c struct dentry *isofs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) dir 164 fs/isofs/namei.c found = isofs_find_entry(dir, dentry, dir 170 fs/isofs/namei.c inode = found ? isofs_iget(dir->i_sb, block, offset) : NULL; dir 43 fs/jffs2/security.c int jffs2_init_security(struct inode *inode, struct inode *dir, dir 46 fs/jffs2/security.c return security_inode_init_security(inode, dir, qstr, dir 120 fs/jffs2/xattr.h extern int jffs2_init_security(struct inode *inode, struct inode *dir, dir 124 fs/jffs2/xattr.h #define jffs2_init_security(inode,dir,qstr) (0) dir 125 fs/jfs/acl.c int jfs_init_acl(tid_t tid, struct inode *inode, struct inode *dir) dir 130 fs/jfs/acl.c rc = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); dir 17 fs/jfs/jfs_acl.h struct inode *dir) dir 1321 fs/jfs/jfs_imap.c int diAlloc(struct inode *pip, bool dir, struct inode *ip) dir 1343 fs/jfs/jfs_imap.c if (dir) { dir 1585 fs/jfs/jfs_imap.c rc = diAllocAG(imap, agno, dir, ip); dir 1595 fs/jfs/jfs_imap.c return (diAllocAny(imap, agno, dir, ip)); dir 1629 fs/jfs/jfs_imap.c diAllocAG(struct inomap * imap, int agno, bool dir, struct inode *ip) dir 1649 fs/jfs/jfs_imap.c if (dir) dir 1699 fs/jfs/jfs_imap.c diAllocAny(struct inomap * imap, int agno, bool dir, struct inode *ip) dir 1711 fs/jfs/jfs_imap.c rc = diAllocAG(imap, ag, dir, ip); dir 1724 fs/jfs/jfs_imap.c rc = diAllocAG(imap, ag, dir, ip); dir 75 fs/jfs/jfs_incore.h } dir; dir 95 fs/jfs/jfs_incore.h #define i_dirtable u.dir._table dir 96 fs/jfs/jfs_incore.h #define i_dtroot u.dir._dtroot dir 56 fs/jfs/jfs_xattr.h struct inode *dir, const struct qstr *qstr) dir 785 fs/jfs/namei.c struct inode *dir, struct dentry *dentry) dir 797 fs/jfs/namei.c rc = dquot_initialize(dir); dir 803 fs/jfs/namei.c mutex_lock_nested(&JFS_IP(dir)->commit_mutex, COMMIT_MUTEX_PARENT); dir 812 fs/jfs/namei.c if ((rc = dtSearch(dir, &dname, &ino, &btstack, JFS_CREATE))) dir 819 fs/jfs/namei.c if ((rc = dtInsert(tid, dir, &dname, &ino, &btstack))) dir 825 fs/jfs/namei.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 826 fs/jfs/namei.c mark_inode_dirty(dir); dir 830 fs/jfs/namei.c iplist[1] = dir; dir 846 fs/jfs/namei.c mutex_unlock(&JFS_IP(dir)->commit_mutex); dir 1347 fs/jfs/namei.c static int jfs_mknod(struct inode *dir, struct dentry *dentry, dir 1362 fs/jfs/namei.c rc = dquot_initialize(dir); dir 1369 fs/jfs/namei.c ip = ialloc(dir, mode); dir 1376 fs/jfs/namei.c tid = txBegin(dir->i_sb, 0); dir 1378 fs/jfs/namei.c mutex_lock_nested(&JFS_IP(dir)->commit_mutex, COMMIT_MUTEX_PARENT); dir 1381 fs/jfs/namei.c rc = jfs_init_acl(tid, ip, dir); dir 1385 fs/jfs/namei.c rc = jfs_init_security(tid, ip, dir, &dentry->d_name); dir 1391 fs/jfs/namei.c if ((rc = dtSearch(dir, &dname, &ino, &btstack, JFS_CREATE))) { dir 1402 fs/jfs/namei.c if ((rc = dtInsert(tid, dir, &dname, &ino, &btstack))) { dir 1413 fs/jfs/namei.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 1415 fs/jfs/namei.c mark_inode_dirty(dir); dir 1417 fs/jfs/namei.c iplist[0] = dir; dir 1424 fs/jfs/namei.c mutex_unlock(&JFS_IP(dir)->commit_mutex); dir 1541 fs/jfs/namei.c static int jfs_ci_hash(const struct dentry *dir, struct qstr *this) dir 1546 fs/jfs/namei.c hash = init_name_hash(dir); dir 1027 fs/jfs/xattr.c int jfs_init_security(tid_t tid, struct inode *inode, struct inode *dir, dir 1030 fs/jfs/xattr.c return security_inode_init_security(inode, dir, qstr, dir 350 fs/kernfs/dir.c struct rb_node **node = &kn->parent->dir.children.rb_node; dir 370 fs/kernfs/dir.c rb_insert_color(&kn->rb, &kn->parent->dir.children); dir 374 fs/kernfs/dir.c kn->parent->dir.subdirs++; dir 396 fs/kernfs/dir.c kn->parent->dir.subdirs--; dir 398 fs/kernfs/dir.c rb_erase(&kn->rb, &kn->parent->dir.children); dir 835 fs/kernfs/dir.c struct rb_node *node = parent->dir.children.rb_node; dir 976 fs/kernfs/dir.c kn->dir.root = root; dir 1027 fs/kernfs/dir.c kn->dir.root = parent->dir.root; dir 1060 fs/kernfs/dir.c kn->dir.root = parent->dir.root; dir 1073 fs/kernfs/dir.c static struct dentry *kernfs_iop_lookup(struct inode *dir, dir 1078 fs/kernfs/dir.c struct kernfs_node *parent = dir->i_private; dir 1086 fs/kernfs/dir.c ns = kernfs_info(dir->i_sb)->ns; dir 1097 fs/kernfs/dir.c inode = kernfs_get_inode(dir->i_sb, kn); dir 1110 fs/kernfs/dir.c static int kernfs_iop_mkdir(struct inode *dir, struct dentry *dentry, dir 1113 fs/kernfs/dir.c struct kernfs_node *parent = dir->i_private; dir 1129 fs/kernfs/dir.c static int kernfs_iop_rmdir(struct inode *dir, struct dentry *dentry) dir 1201 fs/kernfs/dir.c rbn = rb_first(&pos->dir.children); dir 1621 fs/kernfs/dir.c struct rb_node *node = parent->dir.children.rb_node; dir 181 fs/kernfs/inode.c set_nlink(inode, kn->dir.subdirs + 2); dir 47 fs/kernfs/kernfs-internal.h return kn->dir.root; dir 65 fs/libfs.c struct dentry *simple_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) dir 321 fs/libfs.c int simple_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) dir 325 fs/libfs.c inode->i_ctime = dir->i_ctime = dir->i_mtime = current_time(inode); dir 355 fs/libfs.c int simple_unlink(struct inode *dir, struct dentry *dentry) dir 359 fs/libfs.c inode->i_ctime = dir->i_ctime = dir->i_mtime = current_time(inode); dir 366 fs/libfs.c int simple_rmdir(struct inode *dir, struct dentry *dentry) dir 372 fs/libfs.c simple_unlink(dir, dentry); dir 373 fs/libfs.c drop_nlink(dir); dir 1224 fs/libfs.c static struct dentry *empty_dir_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) dir 213 fs/minix/bitmap.c struct inode *minix_new_inode(const struct inode *dir, umode_t mode, int *error) dir 215 fs/minix/bitmap.c struct super_block *sb = dir->i_sb; dir 255 fs/minix/bitmap.c inode_init_owner(inode, dir, mode); dir 52 fs/minix/dir.c struct inode *dir = mapping->host; dir 56 fs/minix/dir.c if (pos+len > dir->i_size) { dir 57 fs/minix/dir.c i_size_write(dir, pos+len); dir 58 fs/minix/dir.c mark_inode_dirty(dir); dir 60 fs/minix/dir.c if (IS_DIRSYNC(dir)) dir 67 fs/minix/dir.c static struct page * dir_get_page(struct inode *dir, unsigned long n) dir 69 fs/minix/dir.c struct address_space *mapping = dir->i_mapping; dir 155 fs/minix/dir.c struct inode * dir = d_inode(dentry->d_parent); dir 156 fs/minix/dir.c struct super_block * sb = dir->i_sb; dir 159 fs/minix/dir.c unsigned long npages = dir_pages(dir); dir 170 fs/minix/dir.c page = dir_get_page(dir, n); dir 175 fs/minix/dir.c limit = kaddr + minix_last_byte(dir, n) - sbi->s_dirsize; dir 202 fs/minix/dir.c struct inode *dir = d_inode(dentry->d_parent); dir 205 fs/minix/dir.c struct super_block * sb = dir->i_sb; dir 208 fs/minix/dir.c unsigned long npages = dir_pages(dir); dir 226 fs/minix/dir.c page = dir_get_page(dir, n); dir 232 fs/minix/dir.c dir_end = kaddr + minix_last_byte(dir, n); dir 278 fs/minix/dir.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 279 fs/minix/dir.c mark_inode_dirty(dir); dir 315 fs/minix/dir.c int minix_make_empty(struct inode *inode, struct inode *dir) dir 339 fs/minix/dir.c de3->inode = dir->i_ino; dir 347 fs/minix/dir.c de->inode = dir->i_ino; dir 415 fs/minix/dir.c struct inode *dir = page->mapping->host; dir 416 fs/minix/dir.c struct minix_sb_info *sbi = minix_sb(dir->i_sb); dir 434 fs/minix/dir.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 435 fs/minix/dir.c mark_inode_dirty(dir); dir 438 fs/minix/dir.c struct minix_dir_entry * minix_dotdot (struct inode *dir, struct page **p) dir 440 fs/minix/dir.c struct page *page = dir_get_page(dir, 0); dir 441 fs/minix/dir.c struct minix_sb_info *sbi = minix_sb(dir->i_sb); dir 22 fs/minix/namei.c static struct dentry *minix_lookup(struct inode * dir, struct dentry *dentry, unsigned int flags) dir 27 fs/minix/namei.c if (dentry->d_name.len > minix_sb(dir->i_sb)->s_namelen) dir 32 fs/minix/namei.c inode = minix_iget(dir->i_sb, ino); dir 36 fs/minix/namei.c static int minix_mknod(struct inode * dir, struct dentry *dentry, umode_t mode, dev_t rdev) dir 44 fs/minix/namei.c inode = minix_new_inode(dir, mode, &error); dir 54 fs/minix/namei.c static int minix_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) dir 57 fs/minix/namei.c struct inode *inode = minix_new_inode(dir, mode, &error); dir 66 fs/minix/namei.c static int minix_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 69 fs/minix/namei.c return minix_mknod(dir, dentry, mode, 0); dir 72 fs/minix/namei.c static int minix_symlink(struct inode * dir, struct dentry *dentry, dir 79 fs/minix/namei.c if (i > dir->i_sb->s_blocksize) dir 82 fs/minix/namei.c inode = minix_new_inode(dir, S_IFLNK | 0777, &err); dir 101 fs/minix/namei.c static int minix_link(struct dentry * old_dentry, struct inode * dir, dir 112 fs/minix/namei.c static int minix_mkdir(struct inode * dir, struct dentry *dentry, umode_t mode) dir 117 fs/minix/namei.c inode_inc_link_count(dir); dir 119 fs/minix/namei.c inode = minix_new_inode(dir, S_IFDIR | mode, &err); dir 127 fs/minix/namei.c err = minix_make_empty(inode, dir); dir 144 fs/minix/namei.c inode_dec_link_count(dir); dir 148 fs/minix/namei.c static int minix_unlink(struct inode * dir, struct dentry *dentry) dir 163 fs/minix/namei.c inode->i_ctime = dir->i_ctime; dir 169 fs/minix/namei.c static int minix_rmdir(struct inode * dir, struct dentry *dentry) dir 175 fs/minix/namei.c err = minix_unlink(dir, dentry); dir 177 fs/minix/namei.c inode_dec_link_count(dir); dir 1498 fs/namei.c struct dentry *dir, dir 1501 fs/namei.c struct dentry *dentry = d_lookup(dir, name); dir 1526 fs/namei.c struct inode *dir = base->d_inode; dir 1532 fs/namei.c if (unlikely(IS_DEADDIR(dir))) dir 1539 fs/namei.c old = dir->i_op->lookup(dir, dentry, flags); dir 1636 fs/namei.c struct dentry *dir, dir 1640 fs/namei.c struct inode *inode = dir->d_inode; dir 1647 fs/namei.c dentry = d_alloc_parallel(dir, name, &wq); dir 1675 fs/namei.c struct dentry *dir, dir 1678 fs/namei.c struct inode *inode = dir->d_inode; dir 1681 fs/namei.c res = __lookup_slow(name, dir, flags); dir 2631 fs/namei.c struct dentry *dir = nd->path.dentry; dir 2648 fs/namei.c path.dentry = d_lookup(dir, &nd->last); dir 2656 fs/namei.c path.dentry = lookup_slow(&nd->last, dir, dir 2749 fs/namei.c int __check_sticky(struct inode *dir, struct inode *inode) dir 2755 fs/namei.c if (uid_eq(dir->i_uid, fsuid)) dir 2781 fs/namei.c static int may_delete(struct inode *dir, struct dentry *victim, bool isdir) dir 2790 fs/namei.c BUG_ON(victim->d_parent->d_inode != dir); dir 2796 fs/namei.c audit_inode_child(dir, victim, AUDIT_TYPE_CHILD_DELETE); dir 2798 fs/namei.c error = inode_permission(dir, MAY_WRITE | MAY_EXEC); dir 2801 fs/namei.c if (IS_APPEND(dir)) dir 2804 fs/namei.c if (check_sticky(dir, inode) || IS_APPEND(inode) || dir 2814 fs/namei.c if (IS_DEADDIR(dir)) dir 2830 fs/namei.c static inline int may_create(struct inode *dir, struct dentry *child) dir 2833 fs/namei.c audit_inode_child(dir, child, AUDIT_TYPE_CHILD_CREATE); dir 2836 fs/namei.c if (IS_DEADDIR(dir)) dir 2838 fs/namei.c s_user_ns = dir->i_sb->s_user_ns; dir 2842 fs/namei.c return inode_permission(dir, MAY_WRITE | MAY_EXEC); dir 2889 fs/namei.c int vfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 2892 fs/namei.c int error = may_create(dir, dentry); dir 2896 fs/namei.c if (!dir->i_op->create) dir 2900 fs/namei.c error = security_inode_create(dir, dentry, mode); dir 2903 fs/namei.c error = dir->i_op->create(dir, dentry, mode, want_excl); dir 2905 fs/namei.c fsnotify_create(dir, dentry); dir 2914 fs/namei.c struct inode *dir = dentry->d_parent->d_inode; dir 2915 fs/namei.c int error = may_create(dir, dentry); dir 2921 fs/namei.c error = security_inode_create(dir, dentry, mode); dir 2926 fs/namei.c fsnotify_create(dir, dentry); dir 3014 fs/namei.c static int may_o_create(const struct path *dir, struct dentry *dentry, umode_t mode) dir 3017 fs/namei.c int error = security_path_mknod(dir, dentry, mode, 0); dir 3021 fs/namei.c s_user_ns = dir->dentry->d_sb->s_user_ns; dir 3026 fs/namei.c error = inode_permission(dir->dentry->d_inode, MAY_WRITE | MAY_EXEC); dir 3030 fs/namei.c return security_inode_create(dir->dentry->d_inode, dentry, mode); dir 3052 fs/namei.c struct inode *dir = nd->path.dentry->d_inode; dir 3063 fs/namei.c error = dir->i_op->atomic_open(dir, dentry, file, dir 3075 fs/namei.c fsnotify_create(dir, dentry); dir 3089 fs/namei.c fsnotify_create(dir, dentry); dir 3123 fs/namei.c struct dentry *dir = nd->path.dentry; dir 3124 fs/namei.c struct inode *dir_inode = dir->d_inode; dir 3135 fs/namei.c dentry = d_lookup(dir, &nd->last); dir 3138 fs/namei.c dentry = d_alloc_parallel(dir, &nd->last, &wq); dir 3169 fs/namei.c if (!IS_POSIXACL(dir->d_inode)) dir 3251 fs/namei.c struct dentry *dir = nd->path.dentry; dir 3284 fs/namei.c BUG_ON(nd->inode != dir->d_inode); dir 3297 fs/namei.c audit_inode(nd->name, dir, AUDIT_INODE_PARENT); dir 3314 fs/namei.c inode_lock(dir->d_inode); dir 3316 fs/namei.c inode_lock_shared(dir->d_inode); dir 3319 fs/namei.c inode_unlock(dir->d_inode); dir 3321 fs/namei.c inode_unlock_shared(dir->d_inode); dir 3431 fs/namei.c struct inode *dir = dentry->d_inode; dir 3436 fs/namei.c error = inode_permission(dir, MAY_WRITE | MAY_EXEC); dir 3440 fs/namei.c if (!dir->i_op->tmpfile) dir 3446 fs/namei.c error = dir->i_op->tmpfile(dir, child, mode); dir 3691 fs/namei.c int vfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) dir 3693 fs/namei.c int error = may_create(dir, dentry); dir 3701 fs/namei.c if (!dir->i_op->mknod) dir 3708 fs/namei.c error = security_inode_mknod(dir, dentry, mode, dev); dir 3712 fs/namei.c error = dir->i_op->mknod(dir, dentry, mode, dev); dir 3714 fs/namei.c fsnotify_create(dir, dentry); dir 3791 fs/namei.c int vfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 3793 fs/namei.c int error = may_create(dir, dentry); dir 3794 fs/namei.c unsigned max_links = dir->i_sb->s_max_links; dir 3799 fs/namei.c if (!dir->i_op->mkdir) dir 3803 fs/namei.c error = security_inode_mkdir(dir, dentry, mode); dir 3807 fs/namei.c if (max_links && dir->i_nlink >= max_links) dir 3810 fs/namei.c error = dir->i_op->mkdir(dir, dentry, mode); dir 3812 fs/namei.c fsnotify_mkdir(dir, dentry); dir 3852 fs/namei.c int vfs_rmdir(struct inode *dir, struct dentry *dentry) dir 3854 fs/namei.c int error = may_delete(dir, dentry, 1); dir 3859 fs/namei.c if (!dir->i_op->rmdir) dir 3869 fs/namei.c error = security_inode_rmdir(dir, dentry); dir 3873 fs/namei.c error = dir->i_op->rmdir(dir, dentry); dir 3881 fs/namei.c fsnotify_rmdir(dir, dentry); dir 3974 fs/namei.c int vfs_unlink(struct inode *dir, struct dentry *dentry, struct inode **delegated_inode) dir 3977 fs/namei.c int error = may_delete(dir, dentry, 0); dir 3982 fs/namei.c if (!dir->i_op->unlink) dir 3989 fs/namei.c error = security_inode_unlink(dir, dentry); dir 3994 fs/namei.c error = dir->i_op->unlink(dir, dentry); dir 3998 fs/namei.c fsnotify_unlink(dir, dentry); dir 4108 fs/namei.c int vfs_symlink(struct inode *dir, struct dentry *dentry, const char *oldname) dir 4110 fs/namei.c int error = may_create(dir, dentry); dir 4115 fs/namei.c if (!dir->i_op->symlink) dir 4118 fs/namei.c error = security_inode_symlink(dir, dentry, oldname); dir 4122 fs/namei.c error = dir->i_op->symlink(dir, dentry, oldname); dir 4124 fs/namei.c fsnotify_create(dir, dentry); dir 4190 fs/namei.c int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry, struct inode **delegated_inode) dir 4193 fs/namei.c unsigned max_links = dir->i_sb->s_max_links; dir 4199 fs/namei.c error = may_create(dir, new_dentry); dir 4203 fs/namei.c if (dir->i_sb != inode->i_sb) dir 4218 fs/namei.c if (!dir->i_op->link) dir 4223 fs/namei.c error = security_inode_link(old_dentry, dir, new_dentry); dir 4236 fs/namei.c error = dir->i_op->link(old_dentry, dir, new_dentry); dir 4246 fs/namei.c fsnotify_link(dir, inode, new_dentry); dir 4671 fs/namei.c int vfs_whiteout(struct inode *dir, struct dentry *dentry) dir 4673 fs/namei.c int error = may_create(dir, dentry); dir 4677 fs/namei.c if (!dir->i_op->mknod) dir 4680 fs/namei.c return dir->i_op->mknod(dir, dentry, dir 148 fs/nfs/blocklayout/rpc_pipefs.c struct dentry *dir, *dentry; dir 150 fs/nfs/blocklayout/rpc_pipefs.c dir = rpc_d_lookup_sb(sb, NFS_PIPE_DIRNAME); dir 151 fs/nfs/blocklayout/rpc_pipefs.c if (dir == NULL) dir 153 fs/nfs/blocklayout/rpc_pipefs.c dentry = rpc_mkpipe_dentry(dir, "blocklayout", NULL, pipe); dir 154 fs/nfs/blocklayout/rpc_pipefs.c dput(dir); dir 119 fs/nfs/cache_lib.c struct dentry *dir; dir 121 fs/nfs/cache_lib.c dir = rpc_d_lookup_sb(sb, "cache"); dir 122 fs/nfs/cache_lib.c ret = sunrpc_cache_register_pipefs(dir, cd->name, 0600, cd); dir 123 fs/nfs/cache_lib.c dput(dir); dir 71 fs/nfs/dir.c static struct nfs_open_dir_context *alloc_nfs_open_dir_context(struct inode *dir, const struct cred *cred) dir 73 fs/nfs/dir.c struct nfs_inode *nfsi = NFS_I(dir); dir 82 fs/nfs/dir.c spin_lock(&dir->i_lock); dir 88 fs/nfs/dir.c spin_unlock(&dir->i_lock); dir 94 fs/nfs/dir.c static void put_nfs_open_dir_context(struct inode *dir, struct nfs_open_dir_context *ctx) dir 96 fs/nfs/dir.c spin_lock(&dir->i_lock); dir 98 fs/nfs/dir.c spin_unlock(&dir->i_lock); dir 412 fs/nfs/dir.c bool nfs_use_readdirplus(struct inode *dir, struct dir_context *ctx) dir 414 fs/nfs/dir.c if (!nfs_server_capable(dir, NFS_CAP_READDIRPLUS)) dir 416 fs/nfs/dir.c if (test_and_clear_bit(NFS_INO_ADVISE_RDPLUS, &NFS_I(dir)->flags)) dir 428 fs/nfs/dir.c void nfs_advise_use_readdirplus(struct inode *dir) dir 430 fs/nfs/dir.c struct nfs_inode *nfsi = NFS_I(dir); dir 432 fs/nfs/dir.c if (nfs_server_capable(dir, NFS_CAP_READDIRPLUS) && dir 445 fs/nfs/dir.c void nfs_force_use_readdirplus(struct inode *dir) dir 447 fs/nfs/dir.c struct nfs_inode *nfsi = NFS_I(dir); dir 449 fs/nfs/dir.c if (nfs_server_capable(dir, NFS_CAP_READDIRPLUS) && dir 452 fs/nfs/dir.c invalidate_mapping_pages(dir->i_mapping, 0, -1); dir 463 fs/nfs/dir.c struct inode *dir = d_inode(parent); dir 502 fs/nfs/dir.c nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); dir 528 fs/nfs/dir.c nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); dir 983 fs/nfs/dir.c void nfs_force_lookup_revalidate(struct inode *dir) dir 985 fs/nfs/dir.c NFS_I(dir)->cache_change_attribute++; dir 995 fs/nfs/dir.c static int nfs_check_verifier(struct inode *dir, struct dentry *dentry, dir 1000 fs/nfs/dir.c if (NFS_SERVER(dir)->flags & NFS_MOUNT_LOOKUP_CACHE_NONE) dir 1002 fs/nfs/dir.c if (!nfs_verify_change_attribute(dir, dentry->d_time)) dir 1005 fs/nfs/dir.c if (nfs_mapping_need_revalidate_inode(dir)) { dir 1008 fs/nfs/dir.c if (__nfs_revalidate_inode(NFS_SERVER(dir), dir) < 0) dir 1011 fs/nfs/dir.c if (!nfs_verify_change_attribute(dir, dentry->d_time)) dir 1020 fs/nfs/dir.c static int nfs_is_exclusive_create(struct inode *dir, unsigned int flags) dir 1022 fs/nfs/dir.c if (NFS_PROTO(dir)->version == 2) dir 1087 fs/nfs/dir.c int nfs_neg_need_reval(struct inode *dir, struct dentry *dentry, dir 1092 fs/nfs/dir.c if (NFS_SERVER(dir)->flags & NFS_MOUNT_LOOKUP_CACHE_NONEG) dir 1094 fs/nfs/dir.c return !nfs_check_verifier(dir, dentry, flags & LOOKUP_RCU); dir 1098 fs/nfs/dir.c nfs_lookup_revalidate_done(struct inode *dir, struct dentry *dentry, dir 1107 fs/nfs/dir.c nfs_mark_for_revalidate(dir); dir 1130 fs/nfs/dir.c nfs_lookup_revalidate_negative(struct inode *dir, struct dentry *dentry, dir 1134 fs/nfs/dir.c if (nfs_neg_need_reval(dir, dentry, flags)) { dir 1139 fs/nfs/dir.c return nfs_lookup_revalidate_done(dir, dentry, NULL, ret); dir 1143 fs/nfs/dir.c nfs_lookup_revalidate_delegated(struct inode *dir, struct dentry *dentry, dir 1146 fs/nfs/dir.c nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); dir 1147 fs/nfs/dir.c return nfs_lookup_revalidate_done(dir, dentry, inode, 1); dir 1151 fs/nfs/dir.c nfs_lookup_revalidate_dentry(struct inode *dir, struct dentry *dentry, dir 1166 fs/nfs/dir.c ret = NFS_PROTO(dir)->lookup(dir, &dentry->d_name, fhandle, fattr, label); dir 1179 fs/nfs/dir.c nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); dir 1182 fs/nfs/dir.c nfs_force_use_readdirplus(dir); dir 1188 fs/nfs/dir.c return nfs_lookup_revalidate_done(dir, dentry, inode, ret); dir 1203 fs/nfs/dir.c nfs_do_lookup_revalidate(struct inode *dir, struct dentry *dentry, dir 1209 fs/nfs/dir.c nfs_inc_stats(dir, NFSIOS_DENTRYREVALIDATE); dir 1213 fs/nfs/dir.c return nfs_lookup_revalidate_negative(dir, dentry, flags); dir 1221 fs/nfs/dir.c if (NFS_PROTO(dir)->have_delegation(inode, FMODE_READ)) dir 1222 fs/nfs/dir.c return nfs_lookup_revalidate_delegated(dir, dentry, inode); dir 1226 fs/nfs/dir.c nfs_check_verifier(dir, dentry, flags & LOOKUP_RCU)) { dir 1230 fs/nfs/dir.c nfs_zap_caches(dir); dir 1233 fs/nfs/dir.c nfs_advise_use_readdirplus(dir); dir 1243 fs/nfs/dir.c trace_nfs_lookup_revalidate_enter(dir, dentry, flags); dir 1244 fs/nfs/dir.c error = nfs_lookup_revalidate_dentry(dir, dentry, inode); dir 1245 fs/nfs/dir.c trace_nfs_lookup_revalidate_exit(dir, dentry, flags, error); dir 1248 fs/nfs/dir.c return nfs_lookup_revalidate_done(dir, dentry, inode, 1); dir 1252 fs/nfs/dir.c return nfs_lookup_revalidate_done(dir, dentry, inode, 0); dir 1260 fs/nfs/dir.c struct inode *dir; dir 1265 fs/nfs/dir.c dir = d_inode_rcu(parent); dir 1266 fs/nfs/dir.c if (!dir) dir 1268 fs/nfs/dir.c ret = reval(dir, dentry, flags); dir 1399 fs/nfs/dir.c struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, unsigned int flags) dir 1409 fs/nfs/dir.c nfs_inc_stats(dir, NFSIOS_VFSLOOKUP); dir 1411 fs/nfs/dir.c if (unlikely(dentry->d_name.len > NFS_SERVER(dir)->namelen)) dir 1418 fs/nfs/dir.c if (nfs_is_exclusive_create(dir, flags) || flags & LOOKUP_RENAME_TARGET) dir 1427 fs/nfs/dir.c label = nfs4_label_alloc(NFS_SERVER(dir), GFP_NOWAIT); dir 1431 fs/nfs/dir.c trace_nfs_lookup_enter(dir, dentry, flags); dir 1432 fs/nfs/dir.c error = NFS_PROTO(dir)->lookup(dir, &dentry->d_name, fhandle, fattr, label); dir 1445 fs/nfs/dir.c nfs_force_use_readdirplus(dir); dir 1454 fs/nfs/dir.c nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); dir 1456 fs/nfs/dir.c trace_nfs_lookup_exit(dir, dentry, flags, error); dir 1516 fs/nfs/dir.c int nfs_atomic_open(struct inode *dir, struct dentry *dentry, dir 1534 fs/nfs/dir.c dir->i_sb->s_id, dir->i_ino, dentry); dir 1554 fs/nfs/dir.c if (dentry->d_name.len > NFS_SERVER(dir)->namelen) dir 1558 fs/nfs/dir.c struct nfs_server *server = NFS_SERVER(dir); dir 1587 fs/nfs/dir.c trace_nfs_atomic_open_enter(dir, ctx, open_flags); dir 1588 fs/nfs/dir.c inode = NFS_PROTO(dir)->open_context(dir, ctx, open_flags, &attr, &created); dir 1593 fs/nfs/dir.c trace_nfs_atomic_open_exit(dir, ctx, open_flags, err); dir 1599 fs/nfs/dir.c nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); dir 1616 fs/nfs/dir.c trace_nfs_atomic_open_exit(dir, ctx, open_flags, err); dir 1626 fs/nfs/dir.c res = nfs_lookup(dir, dentry, lookup_flags); dir 1641 fs/nfs/dir.c nfs4_do_lookup_revalidate(struct inode *dir, struct dentry *dentry, dir 1659 fs/nfs/dir.c if (NFS_PROTO(dir)->have_delegation(inode, FMODE_READ)) dir 1660 fs/nfs/dir.c return nfs_lookup_revalidate_delegated(dir, dentry, inode); dir 1671 fs/nfs/dir.c if (!nfs_check_verifier(dir, dentry, flags & LOOKUP_RCU)) dir 1679 fs/nfs/dir.c return nfs_lookup_revalidate_dentry(dir, dentry, inode); dir 1682 fs/nfs/dir.c return nfs_do_lookup_revalidate(dir, dentry, flags); dir 1699 fs/nfs/dir.c struct inode *dir = d_inode(parent); dir 1707 fs/nfs/dir.c error = NFS_PROTO(dir)->lookup(dir, &dentry->d_name, fhandle, fattr, NULL); dir 1711 fs/nfs/dir.c nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); dir 1725 fs/nfs/dir.c nfs_mark_for_revalidate(dir); dir 1756 fs/nfs/dir.c int nfs_create(struct inode *dir, struct dentry *dentry, dir 1764 fs/nfs/dir.c dir->i_sb->s_id, dir->i_ino, dentry); dir 1769 fs/nfs/dir.c trace_nfs_create_enter(dir, dentry, open_flags); dir 1770 fs/nfs/dir.c error = NFS_PROTO(dir)->create(dir, dentry, &attr, open_flags); dir 1771 fs/nfs/dir.c trace_nfs_create_exit(dir, dentry, open_flags, error); dir 1785 fs/nfs/dir.c nfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) dir 1791 fs/nfs/dir.c dir->i_sb->s_id, dir->i_ino, dentry); dir 1796 fs/nfs/dir.c trace_nfs_mknod_enter(dir, dentry); dir 1797 fs/nfs/dir.c status = NFS_PROTO(dir)->mknod(dir, dentry, &attr, rdev); dir 1798 fs/nfs/dir.c trace_nfs_mknod_exit(dir, dentry, status); dir 1811 fs/nfs/dir.c int nfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 1817 fs/nfs/dir.c dir->i_sb->s_id, dir->i_ino, dentry); dir 1822 fs/nfs/dir.c trace_nfs_mkdir_enter(dir, dentry); dir 1823 fs/nfs/dir.c error = NFS_PROTO(dir)->mkdir(dir, dentry, &attr); dir 1824 fs/nfs/dir.c trace_nfs_mkdir_exit(dir, dentry, error); dir 1840 fs/nfs/dir.c int nfs_rmdir(struct inode *dir, struct dentry *dentry) dir 1845 fs/nfs/dir.c dir->i_sb->s_id, dir->i_ino, dentry); dir 1847 fs/nfs/dir.c trace_nfs_rmdir_enter(dir, dentry); dir 1850 fs/nfs/dir.c error = NFS_PROTO(dir)->rmdir(dir, &dentry->d_name); dir 1861 fs/nfs/dir.c error = NFS_PROTO(dir)->rmdir(dir, &dentry->d_name); dir 1862 fs/nfs/dir.c trace_nfs_rmdir_exit(dir, dentry, error); dir 1877 fs/nfs/dir.c struct inode *dir = d_inode(dentry->d_parent); dir 1889 fs/nfs/dir.c trace_nfs_remove_enter(dir, dentry); dir 1891 fs/nfs/dir.c error = NFS_PROTO(dir)->remove(dir, dentry); dir 1895 fs/nfs/dir.c error = NFS_PROTO(dir)->remove(dir, dentry); dir 1898 fs/nfs/dir.c trace_nfs_remove_exit(dir, dentry, error); dir 1908 fs/nfs/dir.c int nfs_unlink(struct inode *dir, struct dentry *dentry) dir 1913 fs/nfs/dir.c dfprintk(VFS, "NFS: unlink(%s/%lu, %pd)\n", dir->i_sb->s_id, dir 1914 fs/nfs/dir.c dir->i_ino, dentry); dir 1916 fs/nfs/dir.c trace_nfs_unlink_enter(dir, dentry); dir 1922 fs/nfs/dir.c error = nfs_sillyrename(dir, dentry); dir 1932 fs/nfs/dir.c nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); dir 1936 fs/nfs/dir.c trace_nfs_unlink_exit(dir, dentry, error); dir 1956 fs/nfs/dir.c int nfs_symlink(struct inode *dir, struct dentry *dentry, const char *symname) dir 1964 fs/nfs/dir.c dfprintk(VFS, "NFS: symlink(%s/%lu, %pd, %s)\n", dir->i_sb->s_id, dir 1965 fs/nfs/dir.c dir->i_ino, dentry, symname); dir 1982 fs/nfs/dir.c trace_nfs_symlink_enter(dir, dentry); dir 1983 fs/nfs/dir.c error = NFS_PROTO(dir)->symlink(dir, dentry, page, pathlen, &attr); dir 1984 fs/nfs/dir.c trace_nfs_symlink_exit(dir, dentry, error); dir 1987 fs/nfs/dir.c dir->i_sb->s_id, dir->i_ino, dir 2015 fs/nfs/dir.c nfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) dir 2023 fs/nfs/dir.c trace_nfs_link_enter(inode, dir, dentry); dir 2025 fs/nfs/dir.c error = NFS_PROTO(dir)->link(inode, dir, &dentry->d_name); dir 2030 fs/nfs/dir.c trace_nfs_link_exit(inode, dir, dentry, error); dir 347 fs/nfs/internal.h extern void nfs_advise_use_readdirplus(struct inode *dir); dir 348 fs/nfs/internal.h extern void nfs_force_use_readdirplus(struct inode *dir); dir 550 fs/nfs/internal.h extern int nfs_sillyrename(struct inode *dir, struct dentry *dentry); dir 152 fs/nfs/nfs3proc.c nfs3_proc_lookup(struct inode *dir, const struct qstr *name, dir 157 fs/nfs/nfs3proc.c .fh = NFS_FH(dir), dir 178 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); dir 179 fs/nfs/nfs3proc.c nfs_refresh_inode(dir, res.dir_attr); dir 184 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); dir 283 fs/nfs/nfs3proc.c nfs3_do_create(struct inode *dir, struct dentry *dentry, struct nfs3_createdata *data) dir 287 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(dir), &data->msg, 0); dir 288 fs/nfs/nfs3proc.c nfs_post_op_update_inode(dir, data->res.dir_attr); dir 304 fs/nfs/nfs3proc.c nfs3_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr, dir 319 fs/nfs/nfs3proc.c data->arg.create.fh = NFS_FH(dir); dir 331 fs/nfs/nfs3proc.c status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); dir 336 fs/nfs/nfs3proc.c d_alias = nfs3_do_create(dir, dentry, data); dir 399 fs/nfs/nfs3proc.c nfs3_proc_remove(struct inode *dir, struct dentry *dentry) dir 402 fs/nfs/nfs3proc.c .fh = NFS_FH(dir), dir 418 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); dir 419 fs/nfs/nfs3proc.c nfs_post_op_update_inode(dir, res.dir_attr); dir 440 fs/nfs/nfs3proc.c nfs3_proc_unlink_done(struct rpc_task *task, struct inode *dir) dir 443 fs/nfs/nfs3proc.c if (nfs3_async_handle_jukebox(task, dir)) dir 446 fs/nfs/nfs3proc.c nfs_post_op_update_inode(dir, res->dir_attr); dir 479 fs/nfs/nfs3proc.c nfs3_proc_link(struct inode *inode, struct inode *dir, const struct qstr *name) dir 483 fs/nfs/nfs3proc.c .tofh = NFS_FH(dir), dir 502 fs/nfs/nfs3proc.c nfs_post_op_update_inode(dir, res.dir_attr); dir 512 fs/nfs/nfs3proc.c nfs3_proc_symlink(struct inode *dir, struct dentry *dentry, struct page *page, dir 528 fs/nfs/nfs3proc.c data->arg.symlink.fromfh = NFS_FH(dir); dir 535 fs/nfs/nfs3proc.c d_alias = nfs3_do_create(dir, dentry, data); dir 548 fs/nfs/nfs3proc.c nfs3_proc_mkdir(struct inode *dir, struct dentry *dentry, struct iattr *sattr) dir 561 fs/nfs/nfs3proc.c status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); dir 566 fs/nfs/nfs3proc.c data->arg.mkdir.fh = NFS_FH(dir); dir 571 fs/nfs/nfs3proc.c d_alias = nfs3_do_create(dir, dentry, data); dir 593 fs/nfs/nfs3proc.c nfs3_proc_rmdir(struct inode *dir, const struct qstr *name) dir 597 fs/nfs/nfs3proc.c .fh = NFS_FH(dir), dir 613 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); dir 614 fs/nfs/nfs3proc.c nfs_post_op_update_inode(dir, dir_attr); dir 634 fs/nfs/nfs3proc.c struct inode *dir = d_inode(dentry); dir 635 fs/nfs/nfs3proc.c __be32 *verf = NFS_I(dir)->cookieverf; dir 637 fs/nfs/nfs3proc.c .fh = NFS_FH(dir), dir 666 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); dir 668 fs/nfs/nfs3proc.c nfs_invalidate_atime(dir); dir 669 fs/nfs/nfs3proc.c nfs_refresh_inode(dir, res.dir_attr); dir 679 fs/nfs/nfs3proc.c nfs3_proc_mknod(struct inode *dir, struct dentry *dentry, struct iattr *sattr, dir 694 fs/nfs/nfs3proc.c status = posix_acl_create(dir, &sattr->ia_mode, &default_acl, &acl); dir 699 fs/nfs/nfs3proc.c data->arg.mknod.fh = NFS_FH(dir); dir 723 fs/nfs/nfs3proc.c d_alias = nfs3_do_create(dir, dentry, data); dir 234 fs/nfs/nfs4_fs.h struct dentry *dir; dir 31 fs/nfs/nfs4file.c struct inode *dir; dir 58 fs/nfs/nfs4file.c dir = d_inode(parent); dir 72 fs/nfs/nfs4file.c inode = NFS_PROTO(dir)->open_context(dir, ctx, openflags, &attr, NULL); dir 422 fs/nfs/nfs4idmap.c static void nfs_idmap_pipe_destroy(struct dentry *dir, dir 434 fs/nfs/nfs4idmap.c static int nfs_idmap_pipe_create(struct dentry *dir, dir 441 fs/nfs/nfs4idmap.c dentry = rpc_mkpipe_dentry(dir, "idmap", idmap, pipe); dir 394 fs/nfs/nfs4namespace.c struct inode *dir = d_inode(parent); dir 400 fs/nfs/nfs4namespace.c client = nfs4_proc_lookup_mountpoint(dir, name, fh, fattr); dir 113 fs/nfs/nfs4proc.c nfs4_label_init_security(struct inode *dir, struct dentry *dentry, dir 121 fs/nfs/nfs4proc.c if (nfs_server_capable(dir, NFS_CAP_SECURITY_LABEL) == 0) dir 146 fs/nfs/nfs4proc.c nfs4_label_init_security(struct inode *dir, struct dentry *dentry, dir 1148 fs/nfs/nfs4proc.c update_changeattr_locked(struct inode *dir, struct nfs4_change_info *cinfo, dir 1151 fs/nfs/nfs4proc.c struct nfs_inode *nfsi = NFS_I(dir); dir 1157 fs/nfs/nfs4proc.c if (cinfo->atomic && cinfo->before == inode_peek_iversion_raw(dir)) { dir 1161 fs/nfs/nfs4proc.c nfs_force_lookup_revalidate(dir); dir 1162 fs/nfs/nfs4proc.c if (cinfo->before != inode_peek_iversion_raw(dir)) dir 1166 fs/nfs/nfs4proc.c inode_set_iversion_raw(dir, cinfo->after); dir 1170 fs/nfs/nfs4proc.c nfs_fscache_invalidate(dir); dir 1174 fs/nfs/nfs4proc.c update_changeattr(struct inode *dir, struct nfs4_change_info *cinfo, dir 1177 fs/nfs/nfs4proc.c spin_lock(&dir->i_lock); dir 1178 fs/nfs/nfs4proc.c update_changeattr_locked(dir, cinfo, timestamp, cache_validity); dir 1179 fs/nfs/nfs4proc.c spin_unlock(&dir->i_lock); dir 1274 fs/nfs/nfs4proc.c struct inode *dir = d_inode(parent); dir 1275 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); dir 1298 fs/nfs/nfs4proc.c p->dir = parent; dir 1344 fs/nfs/nfs4proc.c p->o_arg.fh = NFS_FH(dir); dir 1386 fs/nfs/nfs4proc.c dput(p->dir); dir 1949 fs/nfs/nfs4proc.c inode = nfs_fhget(data->dir->d_sb, &data->o_res.fh, dir 2323 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(d_inode(data->dir)); dir 2485 fs/nfs/nfs4proc.c struct inode *dir = d_inode(data->dir); dir 2486 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); dir 2535 fs/nfs/nfs4proc.c struct inode *dir = d_inode(data->dir); dir 2543 fs/nfs/nfs4proc.c nfs_fattr_map_and_free_names(NFS_SERVER(dir), &data->f_attr); dir 2603 fs/nfs/nfs4proc.c struct inode *dir = d_inode(data->dir); dir 2604 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); dir 2627 fs/nfs/nfs4proc.c inode_peek_iversion_raw(dir) != o_res->cinfo.after) dir 2628 fs/nfs/nfs4proc.c update_changeattr(dir, &o_res->cinfo, dir 2965 fs/nfs/nfs4proc.c struct inode *dir = d_inode(opendata->dir); dir 2971 fs/nfs/nfs4proc.c dir_verifier = nfs_save_change_attribute(dir); dir 3010 fs/nfs/nfs4proc.c dir_verifier = nfs_save_change_attribute(dir); dir 3037 fs/nfs/nfs4proc.c static int _nfs4_do_open(struct inode *dir, dir 3045 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); dir 3148 fs/nfs/nfs4proc.c static struct nfs4_state *nfs4_do_open(struct inode *dir, dir 3155 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); dir 3171 fs/nfs/nfs4proc.c status = _nfs4_do_open(dir, ctx, flags, &c, opened); dir 3190 fs/nfs/nfs4proc.c NFS_SERVER(dir)->nfs_client->cl_hostname); dir 3696 fs/nfs/nfs4proc.c nfs4_atomic_open(struct inode *dir, struct nfs_open_context *ctx, dir 3702 fs/nfs/nfs4proc.c label = nfs4_label_init_security(dir, ctx->dentry, attr, &l); dir 3705 fs/nfs/nfs4proc.c state = nfs4_do_open(dir, ctx, open_flags, attr, label, opened); dir 4024 fs/nfs/nfs4proc.c static int nfs4_get_referral(struct rpc_clnt *client, struct inode *dir, dir 4039 fs/nfs/nfs4proc.c status = nfs4_proc_fs_locations(client, dir, name, locations, page); dir 4048 fs/nfs/nfs4proc.c if (nfs_fsid_equal(&NFS_SERVER(dir)->fsid, &locations->fattr.fsid)) { dir 4177 fs/nfs/nfs4proc.c static int _nfs4_proc_lookup(struct rpc_clnt *clnt, struct inode *dir, dir 4181 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); dir 4185 fs/nfs/nfs4proc.c .dir_fh = NFS_FH(dir), dir 4218 fs/nfs/nfs4proc.c static int nfs4_proc_lookup_common(struct rpc_clnt **clnt, struct inode *dir, dir 4228 fs/nfs/nfs4proc.c err = _nfs4_proc_lookup(client, dir, name, fhandle, fattr, label); dir 4229 fs/nfs/nfs4proc.c trace_nfs4_lookup(dir, name, err); dir 4235 fs/nfs/nfs4proc.c err = nfs4_get_referral(client, dir, name, fattr, fhandle); dir 4237 fs/nfs/nfs4proc.c err = nfs4_handle_exception(NFS_SERVER(dir), err, &exception); dir 4243 fs/nfs/nfs4proc.c client = nfs4_negotiate_security(client, dir, name); dir 4250 fs/nfs/nfs4proc.c err = nfs4_handle_exception(NFS_SERVER(dir), err, &exception); dir 4263 fs/nfs/nfs4proc.c static int nfs4_proc_lookup(struct inode *dir, const struct qstr *name, dir 4268 fs/nfs/nfs4proc.c struct rpc_clnt *client = NFS_CLIENT(dir); dir 4270 fs/nfs/nfs4proc.c status = nfs4_proc_lookup_common(&client, dir, name, fhandle, fattr, label); dir 4271 fs/nfs/nfs4proc.c if (client != NFS_CLIENT(dir)) { dir 4279 fs/nfs/nfs4proc.c nfs4_proc_lookup_mountpoint(struct inode *dir, const struct qstr *name, dir 4282 fs/nfs/nfs4proc.c struct rpc_clnt *client = NFS_CLIENT(dir); dir 4285 fs/nfs/nfs4proc.c status = nfs4_proc_lookup_common(&client, dir, name, fhandle, fattr, NULL); dir 4288 fs/nfs/nfs4proc.c return (client == NFS_CLIENT(dir)) ? rpc_clone_client(client) : client; dir 4451 fs/nfs/nfs4proc.c nfs4_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr, dir 4454 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); dir 4464 fs/nfs/nfs4proc.c ilabel = nfs4_label_init_security(dir, dentry, sattr, &l); dir 4468 fs/nfs/nfs4proc.c state = nfs4_do_open(dir, ctx, flags, sattr, ilabel, NULL); dir 4480 fs/nfs/nfs4proc.c _nfs4_proc_remove(struct inode *dir, const struct qstr *name, u32 ftype) dir 4482 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); dir 4484 fs/nfs/nfs4proc.c .fh = NFS_FH(dir), dir 4500 fs/nfs/nfs4proc.c spin_lock(&dir->i_lock); dir 4501 fs/nfs/nfs4proc.c update_changeattr_locked(dir, &res.cinfo, timestamp, 0); dir 4503 fs/nfs/nfs4proc.c if (ftype == NF4DIR && dir->i_nlink > 2) dir 4504 fs/nfs/nfs4proc.c nfs4_dec_nlink_locked(dir); dir 4505 fs/nfs/nfs4proc.c spin_unlock(&dir->i_lock); dir 4510 fs/nfs/nfs4proc.c static int nfs4_proc_remove(struct inode *dir, struct dentry *dentry) dir 4525 fs/nfs/nfs4proc.c err = _nfs4_proc_remove(dir, &dentry->d_name, NF4REG); dir 4526 fs/nfs/nfs4proc.c trace_nfs4_remove(dir, &dentry->d_name, err); dir 4527 fs/nfs/nfs4proc.c err = nfs4_handle_exception(NFS_SERVER(dir), err, dir 4533 fs/nfs/nfs4proc.c static int nfs4_proc_rmdir(struct inode *dir, const struct qstr *name) dir 4541 fs/nfs/nfs4proc.c err = _nfs4_proc_remove(dir, name, NF4DIR); dir 4542 fs/nfs/nfs4proc.c trace_nfs4_remove(dir, name, err); dir 4543 fs/nfs/nfs4proc.c err = nfs4_handle_exception(NFS_SERVER(dir), err, dir 4574 fs/nfs/nfs4proc.c static int nfs4_proc_unlink_done(struct rpc_task *task, struct inode *dir) dir 4585 fs/nfs/nfs4proc.c update_changeattr(dir, &res->cinfo, dir 4644 fs/nfs/nfs4proc.c static int _nfs4_proc_link(struct inode *inode, struct inode *dir, const struct qstr *name) dir 4650 fs/nfs/nfs4proc.c .dir_fh = NFS_FH(dir), dir 4680 fs/nfs/nfs4proc.c update_changeattr(dir, &res.cinfo, res.fattr->time_start, 0); dir 4694 fs/nfs/nfs4proc.c static int nfs4_proc_link(struct inode *inode, struct inode *dir, const struct qstr *name) dir 4702 fs/nfs/nfs4proc.c _nfs4_proc_link(inode, dir, name), dir 4717 fs/nfs/nfs4proc.c static struct nfs4_createdata *nfs4_alloc_createdata(struct inode *dir, dir 4724 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); dir 4733 fs/nfs/nfs4proc.c data->arg.dir_fh = NFS_FH(dir); dir 4752 fs/nfs/nfs4proc.c static int nfs4_do_create(struct inode *dir, struct dentry *dentry, struct nfs4_createdata *data) dir 4754 fs/nfs/nfs4proc.c int status = nfs4_call_sync(NFS_SERVER(dir)->client, NFS_SERVER(dir), &data->msg, dir 4757 fs/nfs/nfs4proc.c spin_lock(&dir->i_lock); dir 4758 fs/nfs/nfs4proc.c update_changeattr_locked(dir, &data->res.dir_cinfo, dir 4762 fs/nfs/nfs4proc.c nfs4_inc_nlink_locked(dir); dir 4763 fs/nfs/nfs4proc.c spin_unlock(&dir->i_lock); dir 4775 fs/nfs/nfs4proc.c static int _nfs4_proc_symlink(struct inode *dir, struct dentry *dentry, dir 4786 fs/nfs/nfs4proc.c data = nfs4_alloc_createdata(dir, &dentry->d_name, sattr, NF4LNK); dir 4795 fs/nfs/nfs4proc.c status = nfs4_do_create(dir, dentry, data); dir 4802 fs/nfs/nfs4proc.c static int nfs4_proc_symlink(struct inode *dir, struct dentry *dentry, dir 4811 fs/nfs/nfs4proc.c label = nfs4_label_init_security(dir, dentry, sattr, &l); dir 4814 fs/nfs/nfs4proc.c err = _nfs4_proc_symlink(dir, dentry, page, len, sattr, label); dir 4815 fs/nfs/nfs4proc.c trace_nfs4_symlink(dir, &dentry->d_name, err); dir 4816 fs/nfs/nfs4proc.c err = nfs4_handle_exception(NFS_SERVER(dir), err, dir 4824 fs/nfs/nfs4proc.c static int _nfs4_proc_mkdir(struct inode *dir, struct dentry *dentry, dir 4830 fs/nfs/nfs4proc.c data = nfs4_alloc_createdata(dir, &dentry->d_name, sattr, NF4DIR); dir 4835 fs/nfs/nfs4proc.c status = nfs4_do_create(dir, dentry, data); dir 4842 fs/nfs/nfs4proc.c static int nfs4_proc_mkdir(struct inode *dir, struct dentry *dentry, dir 4845 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); dir 4852 fs/nfs/nfs4proc.c label = nfs4_label_init_security(dir, dentry, sattr, &l); dir 4857 fs/nfs/nfs4proc.c err = _nfs4_proc_mkdir(dir, dentry, sattr, label); dir 4858 fs/nfs/nfs4proc.c trace_nfs4_mkdir(dir, &dentry->d_name, err); dir 4859 fs/nfs/nfs4proc.c err = nfs4_handle_exception(NFS_SERVER(dir), err, dir 4870 fs/nfs/nfs4proc.c struct inode *dir = d_inode(dentry); dir 4872 fs/nfs/nfs4proc.c .fh = NFS_FH(dir), dir 4891 fs/nfs/nfs4proc.c nfs4_setup_readdir(cookie, NFS_I(dir)->cookieverf, dentry, &args); dir 4893 fs/nfs/nfs4proc.c status = nfs4_call_sync(NFS_SERVER(dir)->client, NFS_SERVER(dir), &msg, &args.seq_args, &res.seq_res, 0); dir 4895 fs/nfs/nfs4proc.c memcpy(NFS_I(dir)->cookieverf, res.verifier.data, NFS4_VERIFIER_SIZE); dir 4899 fs/nfs/nfs4proc.c nfs_invalidate_atime(dir); dir 4922 fs/nfs/nfs4proc.c static int _nfs4_proc_mknod(struct inode *dir, struct dentry *dentry, dir 4929 fs/nfs/nfs4proc.c data = nfs4_alloc_createdata(dir, &dentry->d_name, sattr, NF4SOCK); dir 4950 fs/nfs/nfs4proc.c status = nfs4_do_create(dir, dentry, data); dir 4957 fs/nfs/nfs4proc.c static int nfs4_proc_mknod(struct inode *dir, struct dentry *dentry, dir 4960 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); dir 4967 fs/nfs/nfs4proc.c label = nfs4_label_init_security(dir, dentry, sattr, &l); dir 4972 fs/nfs/nfs4proc.c err = _nfs4_proc_mknod(dir, dentry, sattr, label, rdev); dir 4973 fs/nfs/nfs4proc.c trace_nfs4_mknod(dir, &dentry->d_name, err); dir 4974 fs/nfs/nfs4proc.c err = nfs4_handle_exception(NFS_SERVER(dir), err, dir 7395 fs/nfs/nfs4proc.c static int _nfs4_proc_fs_locations(struct rpc_clnt *client, struct inode *dir, dir 7400 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); dir 7403 fs/nfs/nfs4proc.c .dir_fh = NFS_FH(dir), dir 7425 fs/nfs/nfs4proc.c if (NFS_SERVER(dir)->attr_bitmask[1] & FATTR4_WORD1_MOUNTED_ON_FILEID) dir 7438 fs/nfs/nfs4proc.c int nfs4_proc_fs_locations(struct rpc_clnt *client, struct inode *dir, dir 7448 fs/nfs/nfs4proc.c err = _nfs4_proc_fs_locations(client, dir, name, dir 7450 fs/nfs/nfs4proc.c trace_nfs4_get_fs_locations(dir, name, err); dir 7451 fs/nfs/nfs4proc.c err = nfs4_handle_exception(NFS_SERVER(dir), err, dir 7741 fs/nfs/nfs4proc.c static int _nfs4_proc_secinfo(struct inode *dir, const struct qstr *name, struct nfs4_secinfo_flavors *flavors, bool use_integrity) dir 7744 fs/nfs/nfs4proc.c struct rpc_clnt *clnt = NFS_SERVER(dir)->client; dir 7745 fs/nfs/nfs4proc.c struct nfs_client *clp = NFS_SERVER(dir)->nfs_client; dir 7747 fs/nfs/nfs4proc.c .dir_fh = NFS_FH(dir), dir 7759 fs/nfs/nfs4proc.c .seq_server = NFS_SERVER(dir), dir 7792 fs/nfs/nfs4proc.c int nfs4_proc_secinfo(struct inode *dir, const struct qstr *name, dir 7803 fs/nfs/nfs4proc.c if (_nfs4_is_integrity_protected(NFS_SERVER(dir)->nfs_client)) dir 7804 fs/nfs/nfs4proc.c err = _nfs4_proc_secinfo(dir, name, flavors, true); dir 7813 fs/nfs/nfs4proc.c err = _nfs4_proc_secinfo(dir, name, flavors, false); dir 7815 fs/nfs/nfs4proc.c trace_nfs4_secinfo(dir, name, err); dir 7816 fs/nfs/nfs4proc.c err = nfs4_handle_exception(NFS_SERVER(dir), err, dir 7864 fs/nfs/nfs4proc.c if (args->dir == NFS4_CDFC4_FORE_OR_BOTH && dir 7865 fs/nfs/nfs4proc.c res->dir != NFS4_CDFS4_BOTH) { dir 7891 fs/nfs/nfs4proc.c .dir = NFS4_CDFC4_FORE_OR_BOTH, dir 7913 fs/nfs/nfs4proc.c args.dir = NFS4_CDFC4_FORE; dir 7917 fs/nfs/nfs4proc.c args.dir = NFS4_CDFC4_FORE; dir 7932 fs/nfs/nfs4proc.c if ((res.dir & args.dir) != res.dir || res.dir == 0) { dir 618 fs/nfs/nfs4trace.h __field(u64, dir) dir 657 fs/nfs/nfs4trace.h __entry->dir = NFS_FILEID(d_inode(ctx->dentry->d_parent)); dir 675 fs/nfs/nfs4trace.h (unsigned long long)__entry->dir, dir 1070 fs/nfs/nfs4trace.h const struct inode *dir, dir 1075 fs/nfs/nfs4trace.h TP_ARGS(dir, name, error), dir 1080 fs/nfs/nfs4trace.h __field(u64, dir) dir 1085 fs/nfs/nfs4trace.h __entry->dev = dir->i_sb->s_dev; dir 1086 fs/nfs/nfs4trace.h __entry->dir = NFS_FILEID(dir); dir 1096 fs/nfs/nfs4trace.h (unsigned long long)__entry->dir, dir 1104 fs/nfs/nfs4trace.h const struct inode *dir, \ dir 1108 fs/nfs/nfs4trace.h TP_ARGS(dir, name, error)) dir 1769 fs/nfs/nfs4xdr.c *p++ = cpu_to_be32(args->dir); dir 5664 fs/nfs/nfs4xdr.c res->dir = be32_to_cpup(p++); dir 5665 fs/nfs/nfs4xdr.c if (res->dir == 0 || res->dir > NFS4_CDFS4_BOTH) dir 239 fs/nfs/nfstrace.h const struct inode *dir, dir 244 fs/nfs/nfstrace.h TP_ARGS(dir, dentry, flags), dir 249 fs/nfs/nfstrace.h __field(u64, dir) dir 254 fs/nfs/nfstrace.h __entry->dev = dir->i_sb->s_dev; dir 255 fs/nfs/nfstrace.h __entry->dir = NFS_FILEID(dir); dir 265 fs/nfs/nfstrace.h (unsigned long long)__entry->dir, dir 273 fs/nfs/nfstrace.h const struct inode *dir, \ dir 277 fs/nfs/nfstrace.h TP_ARGS(dir, dentry, flags)) dir 281 fs/nfs/nfstrace.h const struct inode *dir, dir 287 fs/nfs/nfstrace.h TP_ARGS(dir, dentry, flags, error), dir 293 fs/nfs/nfstrace.h __field(u64, dir) dir 298 fs/nfs/nfstrace.h __entry->dev = dir->i_sb->s_dev; dir 299 fs/nfs/nfstrace.h __entry->dir = NFS_FILEID(dir); dir 311 fs/nfs/nfstrace.h (unsigned long long)__entry->dir, dir 319 fs/nfs/nfstrace.h const struct inode *dir, \ dir 324 fs/nfs/nfstrace.h TP_ARGS(dir, dentry, flags, error)) dir 377 fs/nfs/nfstrace.h const struct inode *dir, dir 382 fs/nfs/nfstrace.h TP_ARGS(dir, ctx, flags), dir 388 fs/nfs/nfstrace.h __field(u64, dir) dir 393 fs/nfs/nfstrace.h __entry->dev = dir->i_sb->s_dev; dir 394 fs/nfs/nfstrace.h __entry->dir = NFS_FILEID(dir); dir 406 fs/nfs/nfstrace.h (unsigned long long)__entry->dir, dir 413 fs/nfs/nfstrace.h const struct inode *dir, dir 419 fs/nfs/nfstrace.h TP_ARGS(dir, ctx, flags, error), dir 426 fs/nfs/nfstrace.h __field(u64, dir) dir 432 fs/nfs/nfstrace.h __entry->dev = dir->i_sb->s_dev; dir 433 fs/nfs/nfstrace.h __entry->dir = NFS_FILEID(dir); dir 447 fs/nfs/nfstrace.h (unsigned long long)__entry->dir, dir 454 fs/nfs/nfstrace.h const struct inode *dir, dir 459 fs/nfs/nfstrace.h TP_ARGS(dir, dentry, flags), dir 464 fs/nfs/nfstrace.h __field(u64, dir) dir 469 fs/nfs/nfstrace.h __entry->dev = dir->i_sb->s_dev; dir 470 fs/nfs/nfstrace.h __entry->dir = NFS_FILEID(dir); dir 480 fs/nfs/nfstrace.h (unsigned long long)__entry->dir, dir 487 fs/nfs/nfstrace.h const struct inode *dir, dir 493 fs/nfs/nfstrace.h TP_ARGS(dir, dentry, flags, error), dir 499 fs/nfs/nfstrace.h __field(u64, dir) dir 505 fs/nfs/nfstrace.h __entry->dev = dir->i_sb->s_dev; dir 506 fs/nfs/nfstrace.h __entry->dir = NFS_FILEID(dir); dir 517 fs/nfs/nfstrace.h (unsigned long long)__entry->dir, dir 524 fs/nfs/nfstrace.h const struct inode *dir, dir 528 fs/nfs/nfstrace.h TP_ARGS(dir, dentry), dir 532 fs/nfs/nfstrace.h __field(u64, dir) dir 537 fs/nfs/nfstrace.h __entry->dev = dir->i_sb->s_dev; dir 538 fs/nfs/nfstrace.h __entry->dir = NFS_FILEID(dir); dir 545 fs/nfs/nfstrace.h (unsigned long long)__entry->dir, dir 553 fs/nfs/nfstrace.h const struct inode *dir, \ dir 556 fs/nfs/nfstrace.h TP_ARGS(dir, dentry)) dir 560 fs/nfs/nfstrace.h const struct inode *dir, dir 565 fs/nfs/nfstrace.h TP_ARGS(dir, dentry, error), dir 570 fs/nfs/nfstrace.h __field(u64, dir) dir 575 fs/nfs/nfstrace.h __entry->dev = dir->i_sb->s_dev; dir 576 fs/nfs/nfstrace.h __entry->dir = NFS_FILEID(dir); dir 585 fs/nfs/nfstrace.h (unsigned long long)__entry->dir, dir 593 fs/nfs/nfstrace.h const struct inode *dir, \ dir 597 fs/nfs/nfstrace.h TP_ARGS(dir, dentry, error)) dir 615 fs/nfs/nfstrace.h const struct inode *dir, dir 619 fs/nfs/nfstrace.h TP_ARGS(inode, dir, dentry), dir 624 fs/nfs/nfstrace.h __field(u64, dir) dir 631 fs/nfs/nfstrace.h __entry->dir = NFS_FILEID(dir); dir 640 fs/nfs/nfstrace.h (unsigned long long)__entry->dir, dir 648 fs/nfs/nfstrace.h const struct inode *dir, dir 653 fs/nfs/nfstrace.h TP_ARGS(inode, dir, dentry, error), dir 659 fs/nfs/nfstrace.h __field(u64, dir) dir 666 fs/nfs/nfstrace.h __entry->dir = NFS_FILEID(dir); dir 677 fs/nfs/nfstrace.h (unsigned long long)__entry->dir, dir 797 fs/nfs/nfstrace.h __field(u64, dir) dir 802 fs/nfs/nfstrace.h struct inode *dir = d_inode(data->dentry->d_parent); dir 804 fs/nfs/nfstrace.h __entry->dev = dir->i_sb->s_dev; dir 805 fs/nfs/nfstrace.h __entry->dir = NFS_FILEID(dir); dir 816 fs/nfs/nfstrace.h (unsigned long long)__entry->dir, dir 2221 fs/nfs/pnfs.c struct nfs_server *server = NFS_SERVER(data->dir->d_inode); dir 2227 fs/nfs/pnfs.c if (!nfs_server_capable(data->dir->d_inode, NFS_CAP_LGOPEN)) dir 150 fs/nfs/proc.c nfs_proc_lookup(struct inode *dir, const struct qstr *name, dir 155 fs/nfs/proc.c .fh = NFS_FH(dir), dir 172 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); dir 205 fs/nfs/proc.c static struct nfs_createdata *nfs_alloc_createdata(struct inode *dir, dir 213 fs/nfs/proc.c data->arg.fh = NFS_FH(dir); dir 231 fs/nfs/proc.c nfs_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr, dir 241 fs/nfs/proc.c data = nfs_alloc_createdata(dir, dentry, sattr); dir 246 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); dir 247 fs/nfs/proc.c nfs_mark_for_revalidate(dir); dir 260 fs/nfs/proc.c nfs_proc_mknod(struct inode *dir, struct dentry *dentry, struct iattr *sattr, dir 281 fs/nfs/proc.c data = nfs_alloc_createdata(dir, dentry, sattr); dir 287 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); dir 288 fs/nfs/proc.c nfs_mark_for_revalidate(dir); dir 293 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); dir 304 fs/nfs/proc.c nfs_proc_remove(struct inode *dir, struct dentry *dentry) dir 307 fs/nfs/proc.c .fh = NFS_FH(dir), dir 317 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); dir 318 fs/nfs/proc.c nfs_mark_for_revalidate(dir); dir 337 fs/nfs/proc.c static int nfs_proc_unlink_done(struct rpc_task *task, struct inode *dir) dir 339 fs/nfs/proc.c nfs_mark_for_revalidate(dir); dir 366 fs/nfs/proc.c nfs_proc_link(struct inode *inode, struct inode *dir, const struct qstr *name) dir 370 fs/nfs/proc.c .tofh = NFS_FH(dir), dir 383 fs/nfs/proc.c nfs_mark_for_revalidate(dir); dir 389 fs/nfs/proc.c nfs_proc_symlink(struct inode *dir, struct dentry *dentry, struct page *page, dir 395 fs/nfs/proc.c .fromfh = NFS_FH(dir), dir 419 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); dir 420 fs/nfs/proc.c nfs_mark_for_revalidate(dir); dir 439 fs/nfs/proc.c nfs_proc_mkdir(struct inode *dir, struct dentry *dentry, struct iattr *sattr) dir 448 fs/nfs/proc.c data = nfs_alloc_createdata(dir, dentry, sattr); dir 454 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); dir 455 fs/nfs/proc.c nfs_mark_for_revalidate(dir); dir 465 fs/nfs/proc.c nfs_proc_rmdir(struct inode *dir, const struct qstr *name) dir 468 fs/nfs/proc.c .fh = NFS_FH(dir), dir 479 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); dir 480 fs/nfs/proc.c nfs_mark_for_revalidate(dir); dir 496 fs/nfs/proc.c struct inode *dir = d_inode(dentry); dir 498 fs/nfs/proc.c .fh = NFS_FH(dir), dir 511 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); dir 513 fs/nfs/proc.c nfs_invalidate_atime(dir); dir 49 fs/nfs/unlink.c struct inode *dir = d_inode(data->dentry->d_parent); dir 52 fs/nfs/unlink.c if (!NFS_PROTO(dir)->unlink_done(task, dir)) dir 79 fs/nfs/unlink.c struct inode *dir = d_inode(data->dentry->d_parent); dir 80 fs/nfs/unlink.c NFS_PROTO(dir)->unlink_rpc_prepare(task, data); dir 104 fs/nfs/unlink.c struct inode *dir = d_inode(data->dentry->d_parent); dir 105 fs/nfs/unlink.c nfs_sb_active(dir->i_sb); dir 106 fs/nfs/unlink.c data->args.fh = NFS_FH(dir); dir 109 fs/nfs/unlink.c NFS_PROTO(dir)->unlink_setup(&msg, data->dentry, inode); dir 111 fs/nfs/unlink.c task_setup_data.rpc_client = NFS_CLIENT(dir); dir 119 fs/nfs/unlink.c struct inode *dir = d_inode(dentry->d_parent); dir 122 fs/nfs/unlink.c down_read_non_owner(&NFS_I(dir)->rmdir_sem); dir 125 fs/nfs/unlink.c up_read_non_owner(&NFS_I(dir)->rmdir_sem); dir 147 fs/nfs/unlink.c up_read_non_owner(&NFS_I(dir)->rmdir_sem); dir 431 fs/nfs/unlink.c nfs_sillyrename(struct inode *dir, struct dentry *dentry) dir 443 fs/nfs/unlink.c nfs_inc_stats(dir, NFSIOS_SILLYRENAME); dir 485 fs/nfs/unlink.c task = nfs_async_rename(dir, dir, dentry, sdentry, dir 500 fs/nfs/unlink.c nfs_set_verifier(dentry, nfs_save_change_attribute(dir)); dir 204 fs/nfsd/nfs4recover.c struct dentry *dir, *dentry; dir 225 fs/nfsd/nfs4recover.c dir = nn->rec_file->f_path.dentry; dir 227 fs/nfsd/nfs4recover.c inode_lock(d_inode(dir)); dir 229 fs/nfsd/nfs4recover.c dentry = lookup_one_len(dname, dir, HEXDIR_LEN-1); dir 244 fs/nfsd/nfs4recover.c status = vfs_mkdir(d_inode(dir), dentry, S_IRWXU); dir 248 fs/nfsd/nfs4recover.c inode_unlock(d_inode(dir)); dir 300 fs/nfsd/nfs4recover.c struct dentry *dir = nn->rec_file->f_path.dentry; dir 319 fs/nfsd/nfs4recover.c inode_lock_nested(d_inode(dir), I_MUTEX_PARENT); dir 324 fs/nfsd/nfs4recover.c dentry = lookup_one_len(entry->name, dir, HEXDIR_LEN-1); dir 329 fs/nfsd/nfs4recover.c status = f(dir, dentry, nn); dir 335 fs/nfsd/nfs4recover.c inode_unlock(d_inode(dir)); dir 349 fs/nfsd/nfs4recover.c struct dentry *dir, *dentry; dir 354 fs/nfsd/nfs4recover.c dir = nn->rec_file->f_path.dentry; dir 355 fs/nfsd/nfs4recover.c inode_lock_nested(d_inode(dir), I_MUTEX_PARENT); dir 356 fs/nfsd/nfs4recover.c dentry = lookup_one_len(name, dir, namlen); dir 364 fs/nfsd/nfs4recover.c status = vfs_rmdir(d_inode(dir), dentry); dir 368 fs/nfsd/nfs4recover.c inode_unlock(d_inode(dir)); dir 945 fs/nfsd/nfs4recover.c struct dentry *dir, *dentry; dir 947 fs/nfsd/nfs4recover.c dir = rpc_d_lookup_sb(sb, NFSD_PIPE_DIR); dir 948 fs/nfsd/nfs4recover.c if (dir == NULL) dir 950 fs/nfsd/nfs4recover.c dentry = rpc_mkpipe_dentry(dir, NFSD_CLD_PIPE, NULL, pipe); dir 951 fs/nfsd/nfs4recover.c dput(dir); dir 1724 fs/nfsd/nfs4state.c u32 dir = NFS4_CDFC4_FORE; dir 1727 fs/nfsd/nfs4state.c dir |= NFS4_CDFC4_BACK; dir 1728 fs/nfsd/nfs4state.c return alloc_conn(rqstp, dir); dir 3368 fs/nfsd/nfs4state.c static __be32 nfsd4_map_bcts_dir(u32 *dir) dir 3370 fs/nfsd/nfs4state.c switch (*dir) { dir 3376 fs/nfsd/nfs4state.c *dir = NFS4_CDFC4_BOTH; dir 3425 fs/nfsd/nfs4state.c status = nfsd4_map_bcts_dir(&bcts->dir); dir 3428 fs/nfsd/nfs4state.c conn = alloc_conn(rqstp, bcts->dir); dir 623 fs/nfsd/nfs4xdr.c bcts->dir = be32_to_cpup(p++); dir 3192 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(bcts->dir); dir 1174 fs/nfsd/nfsctl.c static int __nfsd_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode, struct nfsdfs_client *ncl) dir 1178 fs/nfsd/nfsctl.c inode = nfsd_get_inode(dir->i_sb, mode); dir 1186 fs/nfsd/nfsctl.c inc_nlink(dir); dir 1187 fs/nfsd/nfsctl.c fsnotify_mkdir(dir, dentry); dir 1193 fs/nfsd/nfsctl.c struct inode *dir = parent->d_inode; dir 1197 fs/nfsd/nfsctl.c inode_lock(dir); dir 1205 fs/nfsd/nfsctl.c inode_unlock(dir); dir 1240 fs/nfsd/nfsctl.c static void nfsdfs_remove_file(struct inode *dir, struct dentry *dentry) dir 1246 fs/nfsd/nfsctl.c ret = simple_unlink(dir, dentry); dir 1270 fs/nfsd/nfsctl.c struct inode *dir = d_inode(root); dir 1275 fs/nfsd/nfsctl.c inode_lock(dir); dir 1289 fs/nfsd/nfsctl.c inode->i_private = __get_nfsdfs_client(dir); dir 1291 fs/nfsd/nfsctl.c fsnotify_create(dir, dentry); dir 1293 fs/nfsd/nfsctl.c inode_unlock(dir); dir 1297 fs/nfsd/nfsctl.c inode_unlock(dir); dir 1326 fs/nfsd/nfsctl.c struct inode *dir = d_inode(dentry->d_parent); dir 1330 fs/nfsd/nfsctl.c inode_lock(dir); dir 1334 fs/nfsd/nfsctl.c ret = simple_rmdir(dir, dentry); dir 1336 fs/nfsd/nfsctl.c fsnotify_rmdir(dir, dentry); dir 1338 fs/nfsd/nfsctl.c inode_unlock(dir); dir 221 fs/nfsd/state.h u32 dir; dir 99 fs/nilfs2/dir.c struct inode *dir = mapping->host; dir 107 fs/nilfs2/dir.c if (pos + copied > dir->i_size) dir 108 fs/nilfs2/dir.c i_size_write(dir, pos + copied); dir 109 fs/nilfs2/dir.c if (IS_DIRSYNC(dir)) dir 111 fs/nilfs2/dir.c err = nilfs_set_file_dirty(dir, nr_dirty); dir 118 fs/nilfs2/dir.c struct inode *dir = page->mapping->host; dir 119 fs/nilfs2/dir.c struct super_block *sb = dir->i_sb; dir 120 fs/nilfs2/dir.c unsigned int chunk_size = nilfs_chunk_size(dir); dir 127 fs/nilfs2/dir.c if ((dir->i_size >> PAGE_SHIFT) == page->index) { dir 128 fs/nilfs2/dir.c limit = dir->i_size & ~PAGE_MASK; dir 158 fs/nilfs2/dir.c dir->i_ino); dir 174 fs/nilfs2/dir.c dir->i_ino, error, (page->index << PAGE_SHIFT) + offs, dir 182 fs/nilfs2/dir.c dir->i_ino, (page->index << PAGE_SHIFT) + offs, dir 189 fs/nilfs2/dir.c static struct page *nilfs_get_page(struct inode *dir, unsigned long n) dir 191 fs/nilfs2/dir.c struct address_space *mapping = dir->i_mapping; dir 325 fs/nilfs2/dir.c nilfs_find_entry(struct inode *dir, const struct qstr *qstr, dir 332 fs/nilfs2/dir.c unsigned long npages = dir_pages(dir); dir 334 fs/nilfs2/dir.c struct nilfs_inode_info *ei = NILFS_I(dir); dir 350 fs/nilfs2/dir.c page = nilfs_get_page(dir, n); dir 354 fs/nilfs2/dir.c kaddr += nilfs_last_byte(dir, n) - reclen; dir 357 fs/nilfs2/dir.c nilfs_error(dir->i_sb, dir 371 fs/nilfs2/dir.c if (unlikely(n > (dir->i_blocks >> (PAGE_SHIFT - 9)))) { dir 372 fs/nilfs2/dir.c nilfs_error(dir->i_sb, dir 374 fs/nilfs2/dir.c dir->i_ino, dir->i_size, dir 375 fs/nilfs2/dir.c (unsigned long long)dir->i_blocks); dir 388 fs/nilfs2/dir.c struct nilfs_dir_entry *nilfs_dotdot(struct inode *dir, struct page **p) dir 390 fs/nilfs2/dir.c struct page *page = nilfs_get_page(dir, 0); dir 401 fs/nilfs2/dir.c ino_t nilfs_inode_by_name(struct inode *dir, const struct qstr *qstr) dir 407 fs/nilfs2/dir.c de = nilfs_find_entry(dir, qstr, &page); dir 417 fs/nilfs2/dir.c void nilfs_set_link(struct inode *dir, struct nilfs_dir_entry *de, dir 432 fs/nilfs2/dir.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 440 fs/nilfs2/dir.c struct inode *dir = d_inode(dentry->d_parent); dir 443 fs/nilfs2/dir.c unsigned int chunk_size = nilfs_chunk_size(dir); dir 448 fs/nilfs2/dir.c unsigned long npages = dir_pages(dir); dir 462 fs/nilfs2/dir.c page = nilfs_get_page(dir, n); dir 468 fs/nilfs2/dir.c dir_end = kaddr + nilfs_last_byte(dir, n); dir 481 fs/nilfs2/dir.c nilfs_error(dir->i_sb, dir 522 fs/nilfs2/dir.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 523 fs/nilfs2/dir.c nilfs_mark_inode_dirty(dir); dir 538 fs/nilfs2/dir.c int nilfs_delete_entry(struct nilfs_dir_entry *dir, struct page *page) dir 547 fs/nilfs2/dir.c from = ((char *)dir - kaddr) & ~(nilfs_chunk_size(inode) - 1); dir 548 fs/nilfs2/dir.c to = ((char *)dir - kaddr) + nilfs_rec_len_from_disk(dir->rec_len); dir 551 fs/nilfs2/dir.c while ((char *)de < (char *)dir) { dir 568 fs/nilfs2/dir.c dir->inode = 0; dir 331 fs/nilfs2/inode.c struct inode *nilfs_new_inode(struct inode *dir, umode_t mode) dir 333 fs/nilfs2/inode.c struct super_block *sb = dir->i_sb; dir 348 fs/nilfs2/inode.c root = NILFS_I(dir)->i_root; dir 359 fs/nilfs2/inode.c inode_init_owner(inode, dir, mode); dir 373 fs/nilfs2/inode.c mode, NILFS_I(dir)->i_flags & NILFS_FL_INHERITED); dir 387 fs/nilfs2/inode.c err = nilfs_init_acl(inode, dir); dir 47 fs/nilfs2/ioctl.c struct nilfs_argv *argv, int dir, dir 84 fs/nilfs2/ioctl.c if ((dir & _IOC_WRITE) && dir 97 fs/nilfs2/ioctl.c if ((dir & _IOC_READ) && dir 54 fs/nilfs2/namei.c nilfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) dir 62 fs/nilfs2/namei.c ino = nilfs_inode_by_name(dir, &dentry->d_name); dir 63 fs/nilfs2/namei.c inode = ino ? nilfs_iget(dir->i_sb, NILFS_I(dir)->i_root, ino) : NULL; dir 75 fs/nilfs2/namei.c static int nilfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 82 fs/nilfs2/namei.c err = nilfs_transaction_begin(dir->i_sb, &ti, 1); dir 85 fs/nilfs2/namei.c inode = nilfs_new_inode(dir, mode); dir 95 fs/nilfs2/namei.c err = nilfs_transaction_commit(dir->i_sb); dir 97 fs/nilfs2/namei.c nilfs_transaction_abort(dir->i_sb); dir 103 fs/nilfs2/namei.c nilfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) dir 109 fs/nilfs2/namei.c err = nilfs_transaction_begin(dir->i_sb, &ti, 1); dir 112 fs/nilfs2/namei.c inode = nilfs_new_inode(dir, mode); dir 120 fs/nilfs2/namei.c err = nilfs_transaction_commit(dir->i_sb); dir 122 fs/nilfs2/namei.c nilfs_transaction_abort(dir->i_sb); dir 127 fs/nilfs2/namei.c static int nilfs_symlink(struct inode *dir, struct dentry *dentry, dir 131 fs/nilfs2/namei.c struct super_block *sb = dir->i_sb; dir 139 fs/nilfs2/namei.c err = nilfs_transaction_begin(dir->i_sb, &ti, 1); dir 143 fs/nilfs2/namei.c inode = nilfs_new_inode(dir, S_IFLNK | 0777); dir 162 fs/nilfs2/namei.c err = nilfs_transaction_commit(dir->i_sb); dir 164 fs/nilfs2/namei.c nilfs_transaction_abort(dir->i_sb); dir 176 fs/nilfs2/namei.c static int nilfs_link(struct dentry *old_dentry, struct inode *dir, dir 183 fs/nilfs2/namei.c err = nilfs_transaction_begin(dir->i_sb, &ti, 1); dir 194 fs/nilfs2/namei.c err = nilfs_transaction_commit(dir->i_sb); dir 198 fs/nilfs2/namei.c nilfs_transaction_abort(dir->i_sb); dir 204 fs/nilfs2/namei.c static int nilfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 210 fs/nilfs2/namei.c err = nilfs_transaction_begin(dir->i_sb, &ti, 1); dir 214 fs/nilfs2/namei.c inc_nlink(dir); dir 216 fs/nilfs2/namei.c inode = nilfs_new_inode(dir, S_IFDIR | mode); dir 227 fs/nilfs2/namei.c err = nilfs_make_empty(inode, dir); dir 239 fs/nilfs2/namei.c err = nilfs_transaction_commit(dir->i_sb); dir 241 fs/nilfs2/namei.c nilfs_transaction_abort(dir->i_sb); dir 252 fs/nilfs2/namei.c drop_nlink(dir); dir 253 fs/nilfs2/namei.c nilfs_mark_inode_dirty(dir); dir 257 fs/nilfs2/namei.c static int nilfs_do_unlink(struct inode *dir, struct dentry *dentry) dir 265 fs/nilfs2/namei.c de = nilfs_find_entry(dir, &dentry->d_name, &page); dir 284 fs/nilfs2/namei.c inode->i_ctime = dir->i_ctime; dir 291 fs/nilfs2/namei.c static int nilfs_unlink(struct inode *dir, struct dentry *dentry) dir 296 fs/nilfs2/namei.c err = nilfs_transaction_begin(dir->i_sb, &ti, 0); dir 300 fs/nilfs2/namei.c err = nilfs_do_unlink(dir, dentry); dir 303 fs/nilfs2/namei.c nilfs_mark_inode_dirty(dir); dir 305 fs/nilfs2/namei.c err = nilfs_transaction_commit(dir->i_sb); dir 307 fs/nilfs2/namei.c nilfs_transaction_abort(dir->i_sb); dir 312 fs/nilfs2/namei.c static int nilfs_rmdir(struct inode *dir, struct dentry *dentry) dir 318 fs/nilfs2/namei.c err = nilfs_transaction_begin(dir->i_sb, &ti, 0); dir 324 fs/nilfs2/namei.c err = nilfs_do_unlink(dir, dentry); dir 329 fs/nilfs2/namei.c drop_nlink(dir); dir 330 fs/nilfs2/namei.c nilfs_mark_inode_dirty(dir); dir 334 fs/nilfs2/namei.c err = nilfs_transaction_commit(dir->i_sb); dir 336 fs/nilfs2/namei.c nilfs_transaction_abort(dir->i_sb); dir 204 fs/nilfs2/nilfs.h static inline int nilfs_init_acl(struct inode *inode, struct inode *dir) dir 167 fs/ntfs/dir.c ie->data.dir.indexed_file); dir 175 fs/ntfs/dir.c mref = le64_to_cpu(ie->data.dir.indexed_file); dir 219 fs/ntfs/dir.c name->mref = le64_to_cpu(ie->data.dir.indexed_file); dir 427 fs/ntfs/dir.c ie->data.dir.indexed_file); dir 435 fs/ntfs/dir.c mref = le64_to_cpu(ie->data.dir.indexed_file); dir 481 fs/ntfs/dir.c name->mref = le64_to_cpu(ie->data.dir.indexed_file); dir 709 fs/ntfs/dir.c mref = le64_to_cpu(ie->data.dir.indexed_file); dir 896 fs/ntfs/dir.c mref = le64_to_cpu(ie->data.dir.indexed_file); dir 1025 fs/ntfs/dir.c if (MREF_LE(ie->data.dir.indexed_file) == FILE_root) { dir 1029 fs/ntfs/dir.c if (MREF_LE(ie->data.dir.indexed_file) < FILE_first_user && dir 1039 fs/ntfs/dir.c (long long)MREF_LE(ie->data.dir.indexed_file)); dir 1047 fs/ntfs/dir.c mref = MREF_LE(ie->data.dir.indexed_file); dir 2190 fs/ntfs/layout.h } __attribute__ ((__packed__)) dir; dir 2225 fs/ntfs/layout.h } __attribute__ ((__packed__)) dir; dir 347 fs/ocfs2/acl.c struct inode *dir, dir 360 fs/ocfs2/acl.c down_read(&OCFS2_I(dir)->ip_xattr_sem); dir 361 fs/ocfs2/acl.c acl = ocfs2_get_acl_nolock(dir, ACL_TYPE_DEFAULT, dir 363 fs/ocfs2/acl.c up_read(&OCFS2_I(dir)->ip_xattr_sem); dir 245 fs/ocfs2/blockcheck.c struct dentry *dir; dir 247 fs/ocfs2/blockcheck.c dir = debugfs_create_dir("blockcheck", parent); dir 248 fs/ocfs2/blockcheck.c stats->b_debug_dir = dir; dir 250 fs/ocfs2/blockcheck.c debugfs_create_file("blocks_checked", S_IFREG | S_IRUSR, dir, dir 253 fs/ocfs2/blockcheck.c debugfs_create_file("checksums_failed", S_IFREG | S_IRUSR, dir, dir 256 fs/ocfs2/blockcheck.c debugfs_create_file("ecc_recoveries", S_IFREG | S_IRUSR, dir, dir 1393 fs/ocfs2/cluster/heartbeat.c static void o2hb_debug_create(const char *name, struct dentry *dir, dir 1406 fs/ocfs2/cluster/heartbeat.c debugfs_create_file(name, S_IFREG|S_IRUSR, dir, *db, &o2hb_debug_fops); dir 1985 fs/ocfs2/cluster/heartbeat.c struct dentry *dir; dir 1987 fs/ocfs2/cluster/heartbeat.c dir = debugfs_create_dir(config_item_name(®->hr_item), parent); dir 1988 fs/ocfs2/cluster/heartbeat.c reg->hr_debug_dir = dir; dir 1990 fs/ocfs2/cluster/heartbeat.c o2hb_debug_create(O2HB_DEBUG_LIVENODES, dir, &(reg->hr_db_livenodes), dir 1996 fs/ocfs2/cluster/heartbeat.c o2hb_debug_create(O2HB_DEBUG_REGION_NUMBER, dir, &(reg->hr_db_regnum), dir 2000 fs/ocfs2/cluster/heartbeat.c o2hb_debug_create(O2HB_DEBUG_REGION_ELAPSED_TIME, dir, dir 2005 fs/ocfs2/cluster/heartbeat.c o2hb_debug_create(O2HB_DEBUG_REGION_PINNED, dir, &(reg->hr_db_pinned), dir 60 fs/ocfs2/dir.c struct inode *dir, dir 71 fs/ocfs2/dir.c static int ocfs2_supports_dir_trailer(struct inode *dir) dir 73 fs/ocfs2/dir.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 75 fs/ocfs2/dir.c if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) dir 78 fs/ocfs2/dir.c return ocfs2_meta_ecc(osb) || ocfs2_dir_indexed(dir); dir 89 fs/ocfs2/dir.c static int ocfs2_new_dir_wants_trailer(struct inode *dir) dir 91 fs/ocfs2/dir.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 119 fs/ocfs2/dir.c static int ocfs2_skip_dir_trailer(struct inode *dir, dir 126 fs/ocfs2/dir.c if (!ocfs2_supports_dir_trailer(dir)) dir 153 fs/ocfs2/dir.c static int ocfs2_dx_dir_link_trailer(struct inode *dir, handle_t *handle, dir 161 fs/ocfs2/dir.c ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, dir 167 fs/ocfs2/dir.c trailer = ocfs2_trailer_from_bh(dirdata_bh, dir->i_sb); dir 253 fs/ocfs2/dir.c static void ocfs2_dx_dir_name_hash(struct inode *dir, const char *name, int len, dir 256 fs/ocfs2/dir.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 299 fs/ocfs2/dir.c static int ocfs2_check_dir_entry(struct inode * dir, dir 314 fs/ocfs2/dir.c ((char *) de - bh->b_data) + rlen > dir->i_sb->s_blocksize)) dir 320 fs/ocfs2/dir.c (unsigned long long)OCFS2_I(dir)->ip_blkno, error_msg, dir 342 fs/ocfs2/dir.c struct inode *dir, dir 366 fs/ocfs2/dir.c if (!ocfs2_check_dir_entry(dir, de, bh, offset)) { dir 393 fs/ocfs2/dir.c struct inode *dir, dir 401 fs/ocfs2/dir.c ret = ocfs2_read_inode_block(dir, &di_bh); dir 410 fs/ocfs2/dir.c found = ocfs2_search_dirblock(di_bh, dir, name, namelen, 0, dir 411 fs/ocfs2/dir.c data->id_data, i_size_read(dir), res_dir); dir 459 fs/ocfs2/dir.c static int ocfs2_check_dir_trailer(struct inode *dir, struct buffer_head *bh) dir 464 fs/ocfs2/dir.c trailer = ocfs2_trailer_from_bh(bh, dir->i_sb); dir 466 fs/ocfs2/dir.c rc = ocfs2_error(dir->i_sb, dir 473 fs/ocfs2/dir.c rc = ocfs2_error(dir->i_sb, dir 480 fs/ocfs2/dir.c OCFS2_I(dir)->ip_blkno) { dir 481 fs/ocfs2/dir.c rc = ocfs2_error(dir->i_sb, dir 484 fs/ocfs2/dir.c (unsigned long long)OCFS2_I(dir)->ip_blkno, dir 535 fs/ocfs2/dir.c static int ocfs2_read_dir_block_direct(struct inode *dir, u64 phys, dir 541 fs/ocfs2/dir.c ret = ocfs2_read_block(INODE_CACHE(dir), phys, &tmp, dir 548 fs/ocfs2/dir.c if (ocfs2_supports_dir_trailer(dir)) { dir 549 fs/ocfs2/dir.c ret = ocfs2_check_dir_trailer(dir, tmp); dir 592 fs/ocfs2/dir.c static int ocfs2_read_dx_root(struct inode *dir, struct ocfs2_dinode *di, dir 599 fs/ocfs2/dir.c ret = ocfs2_read_block(INODE_CACHE(dir), blkno, &tmp, dir 633 fs/ocfs2/dir.c static int ocfs2_read_dx_leaf(struct inode *dir, u64 blkno, dir 639 fs/ocfs2/dir.c ret = ocfs2_read_block(INODE_CACHE(dir), blkno, &tmp, dir 653 fs/ocfs2/dir.c static int ocfs2_read_dx_leaves(struct inode *dir, u64 start, int num, dir 658 fs/ocfs2/dir.c ret = ocfs2_read_blocks(INODE_CACHE(dir), start, num, dx_leaf_bhs, 0, dir 667 fs/ocfs2/dir.c struct inode *dir, dir 681 fs/ocfs2/dir.c sb = dir->i_sb; dir 683 fs/ocfs2/dir.c nblocks = i_size_read(dir) >> sb->s_blocksize_bits; dir 684 fs/ocfs2/dir.c start = OCFS2_I(dir)->ip_dir_start_lookup; dir 711 fs/ocfs2/dir.c err = ocfs2_read_dir_block(dir, b++, &bh, dir 718 fs/ocfs2/dir.c if (ocfs2_read_dir_block(dir, block, &bh, 0)) { dir 723 fs/ocfs2/dir.c (unsigned long long)OCFS2_I(dir)->ip_blkno, dir 727 fs/ocfs2/dir.c i = ocfs2_search_dirblock(bh, dir, name, namelen, dir 732 fs/ocfs2/dir.c OCFS2_I(dir)->ip_dir_start_lookup = block; dir 750 fs/ocfs2/dir.c nblocks = i_size_read(dir) >> sb->s_blocksize_bits; dir 892 fs/ocfs2/dir.c struct inode *dir, dir 907 fs/ocfs2/dir.c ocfs2_dx_dir_name_hash(dir, name, namelen, &res->dl_hinfo); dir 916 fs/ocfs2/dir.c ret = ocfs2_dx_dir_lookup(dir, dr_el, hinfo, NULL, &phys); dir 922 fs/ocfs2/dir.c trace_ocfs2_dx_dir_search((unsigned long long)OCFS2_I(dir)->ip_blkno, dir 926 fs/ocfs2/dir.c ret = ocfs2_read_dx_leaf(dir, phys, &dx_leaf_bh); dir 956 fs/ocfs2/dir.c ret = ocfs2_read_dir_block_direct(dir, dir 969 fs/ocfs2/dir.c found = ocfs2_search_dirblock(dir_ent_bh, dir, name, namelen, dir 971 fs/ocfs2/dir.c dir->i_sb->s_blocksize, &dir_ent); dir 1006 fs/ocfs2/dir.c struct inode *dir, dir 1015 fs/ocfs2/dir.c ret = ocfs2_read_inode_block(dir, &di_bh); dir 1023 fs/ocfs2/dir.c ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); dir 1030 fs/ocfs2/dir.c ret = ocfs2_dx_dir_search(name, namelen, dir, dx_root, lookup); dir 1060 fs/ocfs2/dir.c struct inode *dir, struct ocfs2_dir_lookup_result *lookup) dir 1065 fs/ocfs2/dir.c if (ocfs2_dir_indexed(dir)) dir 1066 fs/ocfs2/dir.c return ocfs2_find_entry_dx(name, namelen, dir, lookup); dir 1073 fs/ocfs2/dir.c if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) dir 1074 fs/ocfs2/dir.c bh = ocfs2_find_entry_id(name, namelen, dir, &res_dir); dir 1076 fs/ocfs2/dir.c bh = ocfs2_find_entry_el(name, namelen, dir, &res_dir); dir 1089 fs/ocfs2/dir.c int ocfs2_update_entry(struct inode *dir, handle_t *handle, dir 1104 fs/ocfs2/dir.c if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) dir 1107 fs/ocfs2/dir.c ret = access(handle, INODE_CACHE(dir), de_bh, dir 1127 fs/ocfs2/dir.c static int __ocfs2_delete_entry(handle_t *handle, struct inode *dir, dir 1136 fs/ocfs2/dir.c if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) dir 1143 fs/ocfs2/dir.c if (!ocfs2_check_dir_entry(dir, de, bh, i)) { dir 1149 fs/ocfs2/dir.c status = access(handle, INODE_CACHE(dir), bh, dir 1160 fs/ocfs2/dir.c inode_inc_iversion(dir); dir 1231 fs/ocfs2/dir.c static int ocfs2_delete_entry_dx(handle_t *handle, struct inode *dir, dir 1272 fs/ocfs2/dir.c (unsigned long long)OCFS2_I(dir)->ip_blkno, index, dir 1282 fs/ocfs2/dir.c trailer = ocfs2_trailer_from_bh(leaf_bh, dir->i_sb); dir 1297 fs/ocfs2/dir.c ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, dir 1305 fs/ocfs2/dir.c ret = ocfs2_journal_access_dl(handle, INODE_CACHE(dir), dir 1314 fs/ocfs2/dir.c trace_ocfs2_delete_entry_dx((unsigned long long)OCFS2_I(dir)->ip_blkno, dir 1317 fs/ocfs2/dir.c ret = __ocfs2_delete_entry(handle, dir, lookup->dl_entry, dir 1324 fs/ocfs2/dir.c max_rec_len = ocfs2_find_max_rec_len(dir->i_sb, leaf_bh); dir 1348 fs/ocfs2/dir.c struct inode *dir, dir 1357 fs/ocfs2/dir.c ret = ocfs2_read_inode_block(dir, &di_bh); dir 1366 fs/ocfs2/dir.c ret = __ocfs2_delete_entry(handle, dir, de_del, bh, data->id_data, dir 1367 fs/ocfs2/dir.c i_size_read(dir)); dir 1375 fs/ocfs2/dir.c struct inode *dir, dir 1379 fs/ocfs2/dir.c return __ocfs2_delete_entry(handle, dir, de_del, bh, bh->b_data, dir 1388 fs/ocfs2/dir.c struct inode *dir, dir 1391 fs/ocfs2/dir.c if (ocfs2_dir_indexed(dir)) dir 1392 fs/ocfs2/dir.c return ocfs2_delete_entry_dx(handle, dir, res); dir 1394 fs/ocfs2/dir.c if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) dir 1395 fs/ocfs2/dir.c return ocfs2_delete_entry_id(handle, dir, res->dl_entry, dir 1398 fs/ocfs2/dir.c return ocfs2_delete_entry_el(handle, dir, res->dl_entry, dir 1456 fs/ocfs2/dir.c static int __ocfs2_dx_dir_leaf_insert(struct inode *dir, handle_t *handle, dir 1464 fs/ocfs2/dir.c ret = ocfs2_journal_access_dl(handle, INODE_CACHE(dir), dx_leaf_bh, dir 1479 fs/ocfs2/dir.c static void ocfs2_dx_inline_root_insert(struct inode *dir, handle_t *handle, dir 1487 fs/ocfs2/dir.c static int ocfs2_dx_dir_insert(struct inode *dir, handle_t *handle, dir 1494 fs/ocfs2/dir.c ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, dir 1503 fs/ocfs2/dir.c ocfs2_dx_inline_root_insert(dir, handle, dir 1508 fs/ocfs2/dir.c ret = __ocfs2_dx_dir_leaf_insert(dir, handle, &lookup->dl_hinfo, dir 1522 fs/ocfs2/dir.c static void ocfs2_remove_block_from_free_list(struct inode *dir, dir 1530 fs/ocfs2/dir.c trailer = ocfs2_trailer_from_bh(lookup->dl_leaf_bh, dir->i_sb); dir 1538 fs/ocfs2/dir.c prev = ocfs2_trailer_from_bh(bh, dir->i_sb); dir 1553 fs/ocfs2/dir.c static void ocfs2_recalc_free_list(struct inode *dir, handle_t *handle, dir 1560 fs/ocfs2/dir.c max_rec_len = ocfs2_find_max_rec_len(dir->i_sb, lookup->dl_leaf_bh); dir 1567 fs/ocfs2/dir.c trailer = ocfs2_trailer_from_bh(lookup->dl_leaf_bh, dir->i_sb); dir 1571 fs/ocfs2/dir.c ocfs2_remove_block_from_free_list(dir, handle, lookup); dir 1582 fs/ocfs2/dir.c struct inode *dir, dir 1592 fs/ocfs2/dir.c struct super_block *sb = dir->i_sb; dir 1601 fs/ocfs2/dir.c if (ocfs2_dir_indexed(dir)) { dir 1615 fs/ocfs2/dir.c INODE_CACHE(dir), bh, dir 1620 fs/ocfs2/dir.c INODE_CACHE(dir), bh, dir 1627 fs/ocfs2/dir.c } else if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { dir 1629 fs/ocfs2/dir.c size = i_size_read(dir); dir 1643 fs/ocfs2/dir.c if (!ocfs2_check_dir_entry(dir, de, insert_bh, offset)) { dir 1654 fs/ocfs2/dir.c mlog_bug_on_msg(ocfs2_skip_dir_trailer(dir, de, offset, size), dir 1660 fs/ocfs2/dir.c offset, ocfs2_dir_trailer_blk_off(dir->i_sb)); dir 1663 fs/ocfs2/dir.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 1664 fs/ocfs2/dir.c retval = ocfs2_mark_inode_dirty(handle, dir, parent_fe_bh); dir 1672 fs/ocfs2/dir.c INODE_CACHE(dir), dir 1677 fs/ocfs2/dir.c INODE_CACHE(dir), dir 1681 fs/ocfs2/dir.c if (!retval && ocfs2_dir_indexed(dir)) dir 1682 fs/ocfs2/dir.c retval = ocfs2_dx_dir_insert(dir, dir 1712 fs/ocfs2/dir.c if (ocfs2_dir_indexed(dir)) dir 1713 fs/ocfs2/dir.c ocfs2_recalc_free_list(dir, handle, lookup); dir 1715 fs/ocfs2/dir.c inode_inc_iversion(dir); dir 1991 fs/ocfs2/dir.c int ocfs2_lookup_ino_from_name(struct inode *dir, const char *name, dir 1997 fs/ocfs2/dir.c ret = ocfs2_find_files_on_disk(name, namelen, blkno, dir, &lookup); dir 2010 fs/ocfs2/dir.c int ocfs2_check_dir_for_entry(struct inode *dir, dir 2018 fs/ocfs2/dir.c (unsigned long long)OCFS2_I(dir)->ip_blkno, namelen, name); dir 2020 fs/ocfs2/dir.c if (ocfs2_find_entry(name, namelen, dir, &lookup) == 0) { dir 2285 fs/ocfs2/dir.c handle_t *handle, struct inode *dir, dir 2300 fs/ocfs2/dir.c ocfs2_trailer_from_bh(dirdata_bh, dir->i_sb); dir 2310 fs/ocfs2/dir.c (unsigned long long)OCFS2_I(dir)->ip_blkno, dir 2318 fs/ocfs2/dir.c ocfs2_set_new_buffer_uptodate(INODE_CACHE(dir), dx_root_bh); dir 2320 fs/ocfs2/dir.c ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, dir 2335 fs/ocfs2/dir.c dx_root->dr_dir_blkno = cpu_to_le64(OCFS2_I(dir)->ip_blkno); dir 2352 fs/ocfs2/dir.c ret = ocfs2_journal_access_di(handle, INODE_CACHE(dir), di_bh, dir 2361 fs/ocfs2/dir.c spin_lock(&OCFS2_I(dir)->ip_lock); dir 2362 fs/ocfs2/dir.c OCFS2_I(dir)->ip_dyn_features |= OCFS2_INDEXED_DIR_FL; dir 2363 fs/ocfs2/dir.c di->i_dyn_features = cpu_to_le16(OCFS2_I(dir)->ip_dyn_features); dir 2364 fs/ocfs2/dir.c spin_unlock(&OCFS2_I(dir)->ip_lock); dir 2377 fs/ocfs2/dir.c handle_t *handle, struct inode *dir, dir 2393 fs/ocfs2/dir.c ocfs2_set_new_buffer_uptodate(INODE_CACHE(dir), bh); dir 2395 fs/ocfs2/dir.c ret = ocfs2_journal_access_dl(handle, INODE_CACHE(dir), bh, dir 2412 fs/ocfs2/dir.c (unsigned long long)OCFS2_I(dir)->ip_blkno, dir 2429 fs/ocfs2/dir.c static int __ocfs2_dx_dir_new_cluster(struct inode *dir, dir 2438 fs/ocfs2/dir.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 2457 fs/ocfs2/dir.c ret = ocfs2_dx_dir_format_cluster(osb, handle, dir, dx_leaves, dir 2469 fs/ocfs2/dir.c static int ocfs2_dx_dir_new_cluster(struct inode *dir, dir 2480 fs/ocfs2/dir.c ret = __ocfs2_dx_dir_new_cluster(dir, cpos, handle, data_ac, dx_leaves, dir 2586 fs/ocfs2/dir.c static int ocfs2_dx_dir_index_block(struct inode *dir, dir 2601 fs/ocfs2/dir.c limit = de_buf + dir->i_sb->s_blocksize; dir 2610 fs/ocfs2/dir.c ocfs2_dx_dir_name_hash(dir, de->name, namelen, &hinfo); dir 2612 fs/ocfs2/dir.c i = ocfs2_dx_dir_hash_idx(OCFS2_SB(dir->i_sb), &hinfo); dir 2615 fs/ocfs2/dir.c ret = __ocfs2_dx_dir_leaf_insert(dir, handle, &hinfo, dir 2635 fs/ocfs2/dir.c static void ocfs2_dx_dir_index_root_block(struct inode *dir, dir 2648 fs/ocfs2/dir.c limit = de_buf + dir->i_sb->s_blocksize; dir 2656 fs/ocfs2/dir.c ocfs2_dx_dir_name_hash(dir, de->name, de->name_len, &hinfo); dir 2659 fs/ocfs2/dir.c (unsigned long long)dir->i_ino, dir 2678 fs/ocfs2/dir.c static int ocfs2_new_dx_should_be_inline(struct inode *dir, dir 2687 fs/ocfs2/dir.c limit = de_buf + i_size_read(dir); dir 2699 fs/ocfs2/dir.c return dirent_count < ocfs2_dx_entries_per_root(dir->i_sb); dir 2717 fs/ocfs2/dir.c struct inode *dir) dir 2719 fs/ocfs2/dir.c struct super_block *sb = dir->i_sb; dir 2727 fs/ocfs2/dir.c if (ocfs2_new_dir_wants_trailer(dir)) dir 2766 fs/ocfs2/dir.c static int ocfs2_expand_inline_dir(struct inode *dir, struct buffer_head *di_bh, dir 2772 fs/ocfs2/dir.c struct super_block *sb = dir->i_sb; dir 2777 fs/ocfs2/dir.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 2778 fs/ocfs2/dir.c struct ocfs2_inode_info *oi = OCFS2_I(dir); dir 2790 fs/ocfs2/dir.c ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(dir), di_bh); dir 2800 fs/ocfs2/dir.c dx_inline = ocfs2_new_dx_should_be_inline(dir, di_bh); dir 2851 fs/ocfs2/dir.c ret = dquot_alloc_space_nodirty(dir, dir 2863 fs/ocfs2/dir.c ret = __ocfs2_dx_dir_new_cluster(dir, 0, handle, data_ac, dir 2870 fs/ocfs2/dir.c bytes_allocated += ocfs2_clusters_to_bytes(dir->i_sb, 1); dir 2885 fs/ocfs2/dir.c bytes_allocated += ocfs2_clusters_to_bytes(dir->i_sb, 1); dir 2892 fs/ocfs2/dir.c blkno = ocfs2_clusters_to_blocks(dir->i_sb, bit_off); dir 2900 fs/ocfs2/dir.c ocfs2_set_new_buffer_uptodate(INODE_CACHE(dir), dirdata_bh); dir 2902 fs/ocfs2/dir.c ret = ocfs2_journal_access_db(handle, INODE_CACHE(dir), dirdata_bh, dir 2909 fs/ocfs2/dir.c memcpy(dirdata_bh->b_data, di->id2.i_data.id_data, i_size_read(dir)); dir 2910 fs/ocfs2/dir.c memset(dirdata_bh->b_data + i_size_read(dir), 0, dir 2911 fs/ocfs2/dir.c sb->s_blocksize - i_size_read(dir)); dir 2912 fs/ocfs2/dir.c i = ocfs2_expand_last_dirent(dirdata_bh->b_data, i_size_read(dir), dir); dir 2913 fs/ocfs2/dir.c if (ocfs2_new_dir_wants_trailer(dir)) { dir 2920 fs/ocfs2/dir.c ocfs2_init_dir_trailer(dir, dirdata_bh, i); dir 2923 fs/ocfs2/dir.c ocfs2_update_inode_fsync_trans(handle, dir, 1); dir 2935 fs/ocfs2/dir.c ret = ocfs2_dx_dir_index_block(dir, handle, dx_leaves, dir 2952 fs/ocfs2/dir.c ret = ocfs2_journal_access_di(handle, INODE_CACHE(dir), di_bh, dir 2964 fs/ocfs2/dir.c ocfs2_dinode_new_extent_list(dir, di); dir 2966 fs/ocfs2/dir.c i_size_write(dir, sb->s_blocksize); dir 2967 fs/ocfs2/dir.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 2970 fs/ocfs2/dir.c di->i_ctime = di->i_mtime = cpu_to_le64(dir->i_ctime.tv_sec); dir 2971 fs/ocfs2/dir.c di->i_ctime_nsec = di->i_mtime_nsec = cpu_to_le32(dir->i_ctime.tv_nsec); dir 2972 fs/ocfs2/dir.c ocfs2_update_inode_fsync_trans(handle, dir, 1); dir 2989 fs/ocfs2/dir.c dir->i_blocks = ocfs2_inode_sector_count(dir); dir 2994 fs/ocfs2/dir.c ret = ocfs2_dx_dir_attach_index(osb, handle, dir, di_bh, dir 3003 fs/ocfs2/dir.c ocfs2_dx_dir_index_root_block(dir, dx_root_bh, dir 3007 fs/ocfs2/dir.c INODE_CACHE(dir), dir 3027 fs/ocfs2/dir.c blkno = ocfs2_clusters_to_blocks(dir->i_sb, bit_off); dir 3035 fs/ocfs2/dir.c bytes_allocated += ocfs2_clusters_to_bytes(dir->i_sb, 1); dir 3059 fs/ocfs2/dir.c dquot_free_space_nodirty(dir, bytes_allocated); dir 3085 fs/ocfs2/dir.c struct inode *dir, dir 3095 fs/ocfs2/dir.c spin_lock(&OCFS2_I(dir)->ip_lock); dir 3096 fs/ocfs2/dir.c extend = (i_size_read(dir) == ocfs2_clusters_to_bytes(sb, OCFS2_I(dir)->ip_clusters)); dir 3097 fs/ocfs2/dir.c spin_unlock(&OCFS2_I(dir)->ip_lock); dir 3100 fs/ocfs2/dir.c u32 offset = OCFS2_I(dir)->ip_clusters; dir 3102 fs/ocfs2/dir.c status = dquot_alloc_space_nodirty(dir, dir 3108 fs/ocfs2/dir.c status = ocfs2_add_inode_data(OCFS2_SB(sb), dir, &offset, dir 3118 fs/ocfs2/dir.c v_blkno = ocfs2_blocks_for_bytes(sb, i_size_read(dir)); dir 3119 fs/ocfs2/dir.c status = ocfs2_extent_map_get_blocks(dir, v_blkno, &p_blkno, NULL, NULL); dir 3134 fs/ocfs2/dir.c dquot_free_space_nodirty(dir, ocfs2_clusters_to_bytes(sb, 1)); dir 3149 fs/ocfs2/dir.c struct inode *dir, dir 3169 fs/ocfs2/dir.c if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { dir 3176 fs/ocfs2/dir.c status = ocfs2_expand_inline_dir(dir, parent_fe_bh, dir 3207 fs/ocfs2/dir.c down_write(&OCFS2_I(dir)->ip_alloc_sem); dir 3209 fs/ocfs2/dir.c dir_i_size = i_size_read(dir); dir 3214 fs/ocfs2/dir.c down_write(&OCFS2_I(dir)->ip_alloc_sem); dir 3216 fs/ocfs2/dir.c dir_i_size = i_size_read(dir); dir 3217 fs/ocfs2/dir.c trace_ocfs2_extend_dir((unsigned long long)OCFS2_I(dir)->ip_blkno, dir 3221 fs/ocfs2/dir.c spin_lock(&OCFS2_I(dir)->ip_lock); dir 3222 fs/ocfs2/dir.c if (dir_i_size == ocfs2_clusters_to_bytes(sb, OCFS2_I(dir)->ip_clusters)) { dir 3223 fs/ocfs2/dir.c spin_unlock(&OCFS2_I(dir)->ip_lock); dir 3224 fs/ocfs2/dir.c ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(dir), dir 3250 fs/ocfs2/dir.c data_ac->ac_resv = &OCFS2_I(dir)->ip_la_data_resv; dir 3254 fs/ocfs2/dir.c spin_unlock(&OCFS2_I(dir)->ip_lock); dir 3259 fs/ocfs2/dir.c if (ocfs2_dir_indexed(dir)) dir 3271 fs/ocfs2/dir.c status = ocfs2_do_extend_dir(osb->sb, handle, dir, parent_fe_bh, dir 3278 fs/ocfs2/dir.c ocfs2_set_new_buffer_uptodate(INODE_CACHE(dir), new_bh); dir 3280 fs/ocfs2/dir.c status = ocfs2_journal_access_db(handle, INODE_CACHE(dir), new_bh, dir 3290 fs/ocfs2/dir.c if (ocfs2_supports_dir_trailer(dir)) { dir 3293 fs/ocfs2/dir.c ocfs2_init_dir_trailer(dir, new_bh, le16_to_cpu(de->rec_len)); dir 3295 fs/ocfs2/dir.c if (ocfs2_dir_indexed(dir)) { dir 3296 fs/ocfs2/dir.c status = ocfs2_dx_dir_link_trailer(dir, handle, dir 3306 fs/ocfs2/dir.c ocfs2_update_inode_fsync_trans(handle, dir, 1); dir 3309 fs/ocfs2/dir.c dir_i_size += dir->i_sb->s_blocksize; dir 3310 fs/ocfs2/dir.c i_size_write(dir, dir_i_size); dir 3311 fs/ocfs2/dir.c dir->i_blocks = ocfs2_inode_sector_count(dir); dir 3312 fs/ocfs2/dir.c status = ocfs2_mark_inode_dirty(handle, dir, parent_fe_bh); dir 3325 fs/ocfs2/dir.c up_write(&OCFS2_I(dir)->ip_alloc_sem); dir 3337 fs/ocfs2/dir.c static int ocfs2_find_dir_space_id(struct inode *dir, struct buffer_head *di_bh, dir 3343 fs/ocfs2/dir.c struct super_block *sb = dir->i_sb; dir 3348 fs/ocfs2/dir.c unsigned int rec_len, new_rec_len, free_space = dir->i_sb->s_blocksize; dir 3354 fs/ocfs2/dir.c if (ocfs2_new_dir_wants_trailer(dir)) dir 3355 fs/ocfs2/dir.c free_space = ocfs2_dir_trailer_blk_off(sb) - i_size_read(dir); dir 3357 fs/ocfs2/dir.c free_space = dir->i_sb->s_blocksize - i_size_read(dir); dir 3360 fs/ocfs2/dir.c limit = de_buf + i_size_read(dir); dir 3366 fs/ocfs2/dir.c if (!ocfs2_check_dir_entry(dir, de, di_bh, offset)) { dir 3408 fs/ocfs2/dir.c static int ocfs2_find_dir_space_el(struct inode *dir, const char *name, dir 3415 fs/ocfs2/dir.c struct super_block *sb = dir->i_sb; dir 3417 fs/ocfs2/dir.c int blocksize = dir->i_sb->s_blocksize; dir 3419 fs/ocfs2/dir.c status = ocfs2_read_dir_block(dir, 0, &bh, 0); dir 3431 fs/ocfs2/dir.c if (i_size_read(dir) <= offset) { dir 3439 fs/ocfs2/dir.c status = ocfs2_read_dir_block(dir, dir 3448 fs/ocfs2/dir.c if (!ocfs2_check_dir_entry(dir, de, bh, offset)) { dir 3457 fs/ocfs2/dir.c if (ocfs2_skip_dir_trailer(dir, de, offset % blocksize, dir 3629 fs/ocfs2/dir.c static void ocfs2_dx_dir_transfer_leaf(struct inode *dir, u32 split_hash, dir 3651 fs/ocfs2/dir.c memcpy(tmp_dx_leaf, orig_dx_leaf, dir->i_sb->s_blocksize); dir 3665 fs/ocfs2/dir.c memcpy(orig_dx_leaf, tmp_dx_leaf, dir->i_sb->s_blocksize); dir 3686 fs/ocfs2/dir.c static int ocfs2_dx_dir_rebalance(struct ocfs2_super *osb, struct inode *dir, dir 3705 fs/ocfs2/dir.c trace_ocfs2_dx_dir_rebalance((unsigned long long)OCFS2_I(dir)->ip_blkno, dir 3709 fs/ocfs2/dir.c ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); dir 3722 fs/ocfs2/dir.c "%llu, %d\n", (unsigned long long)OCFS2_I(dir)->ip_blkno, dir 3742 fs/ocfs2/dir.c ret = ocfs2_lock_allocators(dir, &et, 1, 0, &data_ac, &meta_ac); dir 3758 fs/ocfs2/dir.c ret = dquot_alloc_space_nodirty(dir, dir 3759 fs/ocfs2/dir.c ocfs2_clusters_to_bytes(dir->i_sb, 1)); dir 3764 fs/ocfs2/dir.c ret = ocfs2_journal_access_dl(handle, INODE_CACHE(dir), dx_leaf_bh, dir 3814 fs/ocfs2/dir.c orig_leaves_start = ocfs2_block_to_cluster_start(dir->i_sb, leaf_blkno); dir 3815 fs/ocfs2/dir.c ret = ocfs2_read_dx_leaves(dir, orig_leaves_start, num_dx_leaves, dir 3823 fs/ocfs2/dir.c ret = ocfs2_dx_dir_new_cluster(dir, &et, cpos, handle, dir 3832 fs/ocfs2/dir.c ret = ocfs2_journal_access_dl(handle, INODE_CACHE(dir), dir 3840 fs/ocfs2/dir.c ret = ocfs2_journal_access_dl(handle, INODE_CACHE(dir), dir 3849 fs/ocfs2/dir.c ocfs2_dx_dir_transfer_leaf(dir, split_hash, handle, tmp_dx_leaf, dir 3854 fs/ocfs2/dir.c dquot_free_space_nodirty(dir, dir 3855 fs/ocfs2/dir.c ocfs2_clusters_to_bytes(dir->i_sb, 1)); dir 3857 fs/ocfs2/dir.c ocfs2_update_inode_fsync_trans(handle, dir, 1); dir 3881 fs/ocfs2/dir.c static int ocfs2_find_dir_space_dx(struct ocfs2_super *osb, struct inode *dir, dir 3897 fs/ocfs2/dir.c ret = ocfs2_dx_dir_lookup(dir, &dx_root->dr_list, &lookup->dl_hinfo, dir 3904 fs/ocfs2/dir.c ret = ocfs2_read_dx_leaf(dir, blkno, &dx_leaf_bh); dir 3926 fs/ocfs2/dir.c ret = ocfs2_dx_dir_rebalance(osb, dir, dx_root_bh, dx_leaf_bh, dir 3954 fs/ocfs2/dir.c static int ocfs2_search_dx_free_list(struct inode *dir, dir 3974 fs/ocfs2/dir.c ret = ocfs2_read_dir_block_direct(dir, next_block, &leaf_bh); dir 3980 fs/ocfs2/dir.c db = ocfs2_trailer_from_bh(leaf_bh, dir->i_sb); dir 4002 fs/ocfs2/dir.c static int ocfs2_expand_inline_dx_root(struct inode *dir, dir 4010 fs/ocfs2/dir.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 4037 fs/ocfs2/dir.c ret = dquot_alloc_space_nodirty(dir, dir 4048 fs/ocfs2/dir.c ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, dir 4055 fs/ocfs2/dir.c ret = __ocfs2_dx_dir_new_cluster(dir, 0, handle, data_ac, dx_leaves, dir 4090 fs/ocfs2/dir.c ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); dir 4096 fs/ocfs2/dir.c ocfs2_update_inode_fsync_trans(handle, dir, 1); dir 4101 fs/ocfs2/dir.c dquot_free_space_nodirty(dir, dir 4102 fs/ocfs2/dir.c ocfs2_clusters_to_bytes(dir->i_sb, 1)); dir 4133 fs/ocfs2/dir.c static int ocfs2_prepare_dx_dir_for_insert(struct inode *dir, dir 4140 fs/ocfs2/dir.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 4146 fs/ocfs2/dir.c ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); dir 4170 fs/ocfs2/dir.c ret = ocfs2_expand_inline_dx_root(dir, dx_root_bh); dir 4183 fs/ocfs2/dir.c ret = ocfs2_find_dir_space_dx(osb, dir, di_bh, dx_root_bh, name, dir 4197 fs/ocfs2/dir.c ret = ocfs2_search_dx_free_list(dir, dx_root_bh, namelen, lookup); dir 4208 fs/ocfs2/dir.c ret = ocfs2_extend_dir(osb, dir, di_bh, 1, lookup, &leaf_bh); dir 4236 fs/ocfs2/dir.c struct inode *dir, dir 4247 fs/ocfs2/dir.c (unsigned long long)OCFS2_I(dir)->ip_blkno, namelen); dir 4267 fs/ocfs2/dir.c ocfs2_dx_dir_name_hash(dir, name, namelen, &lookup->dl_hinfo); dir 4269 fs/ocfs2/dir.c if (ocfs2_dir_indexed(dir)) { dir 4270 fs/ocfs2/dir.c ret = ocfs2_prepare_dx_dir_for_insert(dir, parent_fe_bh, dir 4277 fs/ocfs2/dir.c if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { dir 4278 fs/ocfs2/dir.c ret = ocfs2_find_dir_space_id(dir, parent_fe_bh, name, dir 4281 fs/ocfs2/dir.c ret = ocfs2_find_dir_space_el(dir, name, namelen, &bh); dir 4294 fs/ocfs2/dir.c ret = ocfs2_extend_dir(osb, dir, parent_fe_bh, blocks_wanted, dir 4312 fs/ocfs2/dir.c static int ocfs2_dx_dir_remove_index(struct inode *dir, dir 4317 fs/ocfs2/dir.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 4352 fs/ocfs2/dir.c ret = ocfs2_journal_access_di(handle, INODE_CACHE(dir), di_bh, dir 4359 fs/ocfs2/dir.c spin_lock(&OCFS2_I(dir)->ip_lock); dir 4360 fs/ocfs2/dir.c OCFS2_I(dir)->ip_dyn_features &= ~OCFS2_INDEXED_DIR_FL; dir 4361 fs/ocfs2/dir.c di->i_dyn_features = cpu_to_le16(OCFS2_I(dir)->ip_dyn_features); dir 4362 fs/ocfs2/dir.c spin_unlock(&OCFS2_I(dir)->ip_lock); dir 4364 fs/ocfs2/dir.c ocfs2_update_inode_fsync_trans(handle, dir, 1); dir 4393 fs/ocfs2/dir.c int ocfs2_dx_dir_truncate(struct inode *dir, struct buffer_head *di_bh) dir 4399 fs/ocfs2/dir.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 4408 fs/ocfs2/dir.c if (!ocfs2_dir_indexed(dir)) dir 4411 fs/ocfs2/dir.c ret = ocfs2_read_dx_root(dir, di, &dx_root_bh); dir 4421 fs/ocfs2/dir.c ocfs2_init_dx_root_extent_tree(&et, INODE_CACHE(dir), dx_root_bh); dir 4425 fs/ocfs2/dir.c ret = ocfs2_dx_dir_lookup_rec(dir, &dx_root->dr_list, dir 4432 fs/ocfs2/dir.c p_cpos = ocfs2_blocks_to_clusters(dir->i_sb, blkno); dir 4434 fs/ocfs2/dir.c ret = ocfs2_remove_btree_range(dir, &et, cpos, p_cpos, clen, 0, dir 4448 fs/ocfs2/dir.c ret = ocfs2_dx_dir_remove_index(dir, di_bh, dx_root_bh); dir 4454 fs/ocfs2/dir.c ocfs2_remove_from_cache(INODE_CACHE(dir), dx_root_bh); dir 44 fs/ocfs2/dir.h struct inode *dir, dir 47 fs/ocfs2/dir.h struct inode *dir, dir 50 fs/ocfs2/dir.h struct inode *dir, dir 65 fs/ocfs2/dir.h int ocfs2_update_entry(struct inode *dir, handle_t *handle, dir 69 fs/ocfs2/dir.h int ocfs2_check_dir_for_entry(struct inode *dir, dir 79 fs/ocfs2/dir.h int ocfs2_lookup_ino_from_name(struct inode *dir, const char *name, dir 84 fs/ocfs2/dir.h struct inode *dir, dir 98 fs/ocfs2/dir.h int ocfs2_dx_dir_truncate(struct inode *dir, struct buffer_head *di_bh); dir 442 fs/ocfs2/dlmfs/dlmfs.c static int dlmfs_mkdir(struct inode * dir, dir 461 fs/ocfs2/dlmfs/dlmfs.c inode = dlmfs_get_inode(dir, dentry, mode | S_IFDIR); dir 479 fs/ocfs2/dlmfs/dlmfs.c inc_nlink(dir); dir 490 fs/ocfs2/dlmfs/dlmfs.c static int dlmfs_create(struct inode *dir, dir 511 fs/ocfs2/dlmfs/dlmfs.c inode = dlmfs_get_inode(dir, dentry, mode | S_IFREG); dir 524 fs/ocfs2/dlmfs/dlmfs.c static int dlmfs_unlink(struct inode *dir, dir 540 fs/ocfs2/dlmfs/dlmfs.c status = simple_unlink(dir, dentry); dir 136 fs/ocfs2/export.c struct inode *dir = d_inode(child); dir 140 fs/ocfs2/export.c (unsigned long long)OCFS2_I(dir)->ip_blkno); dir 142 fs/ocfs2/export.c status = ocfs2_nfs_sync_lock(OCFS2_SB(dir->i_sb), 1); dir 149 fs/ocfs2/export.c status = ocfs2_inode_lock(dir, NULL, 0); dir 157 fs/ocfs2/export.c status = ocfs2_lookup_ino_from_name(dir, "..", 2, &blkno); dir 163 fs/ocfs2/export.c status = ocfs2_test_inode_bit(OCFS2_SB(dir->i_sb), blkno, &set); dir 180 fs/ocfs2/export.c parent = d_obtain_alias(ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0)); dir 183 fs/ocfs2/export.c ocfs2_inode_unlock(dir, 0); dir 186 fs/ocfs2/export.c ocfs2_nfs_sync_unlock(OCFS2_SB(dir->i_sb), 1); dir 57 fs/ocfs2/namei.c struct inode *dir, dir 97 fs/ocfs2/namei.c static struct dentry *ocfs2_lookup(struct inode *dir, struct dentry *dentry, dir 106 fs/ocfs2/namei.c trace_ocfs2_lookup(dir, dentry, dentry->d_name.len, dir 108 fs/ocfs2/namei.c (unsigned long long)OCFS2_I(dir)->ip_blkno, 0); dir 115 fs/ocfs2/namei.c status = ocfs2_inode_lock_nested(dir, NULL, 0, OI_LS_PARENT); dir 123 fs/ocfs2/namei.c status = ocfs2_lookup_ino_from_name(dir, dentry->d_name.name, dir 128 fs/ocfs2/namei.c inode = ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0); dir 162 fs/ocfs2/namei.c OCFS2_I(dir)->ip_blkno); dir 176 fs/ocfs2/namei.c ocfs2_inode_unlock(dir, 0); dir 185 fs/ocfs2/namei.c static struct inode *ocfs2_get_init_inode(struct inode *dir, umode_t mode) dir 190 fs/ocfs2/namei.c inode = new_inode(dir->i_sb); dir 201 fs/ocfs2/namei.c inode_init_owner(inode, dir, mode); dir 224 fs/ocfs2/namei.c static int ocfs2_mknod(struct inode *dir, dir 251 fs/ocfs2/namei.c trace_ocfs2_mknod(dir, dentry, dentry->d_name.len, dentry->d_name.name, dir 252 fs/ocfs2/namei.c (unsigned long long)OCFS2_I(dir)->ip_blkno, dir 255 fs/ocfs2/namei.c status = dquot_initialize(dir); dir 262 fs/ocfs2/namei.c osb = OCFS2_SB(dir->i_sb); dir 264 fs/ocfs2/namei.c status = ocfs2_inode_lock(dir, &parent_fe_bh, 1); dir 271 fs/ocfs2/namei.c if (S_ISDIR(mode) && (dir->i_nlink >= ocfs2_link_max(osb))) { dir 283 fs/ocfs2/namei.c status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name, dir 289 fs/ocfs2/namei.c status = ocfs2_prepare_dir_for_insert(osb, dir, parent_fe_bh, dir 305 fs/ocfs2/namei.c inode = ocfs2_get_init_inode(dir, mode); dir 314 fs/ocfs2/namei.c status = ocfs2_init_security_get(inode, dir, &dentry->d_name, &si); dir 325 fs/ocfs2/namei.c status = ocfs2_calc_xattr_init(dir, parent_fe_bh, mode, dir 376 fs/ocfs2/namei.c status = ocfs2_mknod_locked(osb, dir, inode, dev, dir 385 fs/ocfs2/namei.c status = ocfs2_fill_new_dir(osb, handle, dir, inode, dir 392 fs/ocfs2/namei.c status = ocfs2_journal_access_di(handle, INODE_CACHE(dir), dir 401 fs/ocfs2/namei.c inc_nlink(dir); dir 404 fs/ocfs2/namei.c status = ocfs2_init_acl(handle, inode, dir, new_fe_bh, parent_fe_bh, dir 427 fs/ocfs2/namei.c OCFS2_I(dir)->ip_blkno); dir 452 fs/ocfs2/namei.c ocfs2_inode_unlock(dir, 1); dir 491 fs/ocfs2/namei.c static int __ocfs2_mknod_locked(struct inode *dir, dir 501 fs/ocfs2/namei.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 606 fs/ocfs2/namei.c struct inode *dir, dir 620 fs/ocfs2/namei.c status = ocfs2_claim_new_inode(handle, dir, parent_fe_bh, dir 628 fs/ocfs2/namei.c status = __ocfs2_mknod_locked(dir, inode, dev, new_fe_bh, dir 642 fs/ocfs2/namei.c static int ocfs2_mkdir(struct inode *dir, dir 648 fs/ocfs2/namei.c trace_ocfs2_mkdir(dir, dentry, dentry->d_name.len, dentry->d_name.name, dir 649 fs/ocfs2/namei.c OCFS2_I(dir)->ip_blkno, mode); dir 650 fs/ocfs2/namei.c ret = ocfs2_mknod(dir, dentry, mode | S_IFDIR, 0); dir 657 fs/ocfs2/namei.c static int ocfs2_create(struct inode *dir, dir 664 fs/ocfs2/namei.c trace_ocfs2_create(dir, dentry, dentry->d_name.len, dentry->d_name.name, dir 665 fs/ocfs2/namei.c (unsigned long long)OCFS2_I(dir)->ip_blkno, mode); dir 666 fs/ocfs2/namei.c ret = ocfs2_mknod(dir, dentry, mode | S_IFREG, 0); dir 674 fs/ocfs2/namei.c struct inode *dir, dir 685 fs/ocfs2/namei.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 697 fs/ocfs2/namei.c err = dquot_initialize(dir); dir 704 fs/ocfs2/namei.c &parent_fe_bh, dir, 0); dir 724 fs/ocfs2/namei.c if (!dir->i_nlink) { dir 745 fs/ocfs2/namei.c err = ocfs2_check_dir_for_entry(dir, dentry->d_name.name, dir 750 fs/ocfs2/namei.c err = ocfs2_prepare_dir_for_insert(osb, dir, parent_fe_bh, dir 806 fs/ocfs2/namei.c err = ocfs2_dentry_attach_lock(dentry, inode, OCFS2_I(dir)->ip_blkno); dir 822 fs/ocfs2/namei.c ocfs2_double_unlock(old_dir, dir); dir 866 fs/ocfs2/namei.c static int ocfs2_unlink(struct inode *dir, dir 874 fs/ocfs2/namei.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 884 fs/ocfs2/namei.c trace_ocfs2_unlink(dir, dentry, dentry->d_name.len, dir 886 fs/ocfs2/namei.c (unsigned long long)OCFS2_I(dir)->ip_blkno, dir 889 fs/ocfs2/namei.c status = dquot_initialize(dir); dir 895 fs/ocfs2/namei.c BUG_ON(d_inode(dentry->d_parent) != dir); dir 900 fs/ocfs2/namei.c status = ocfs2_inode_lock_nested(dir, &parent_node_bh, 1, dir 909 fs/ocfs2/namei.c dentry->d_name.len, &blkno, dir, dir 980 fs/ocfs2/namei.c status = ocfs2_delete_entry(handle, dir, &lookup); dir 992 fs/ocfs2/namei.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 994 fs/ocfs2/namei.c drop_nlink(dir); dir 996 fs/ocfs2/namei.c status = ocfs2_mark_inode_dirty(handle, dir, parent_node_bh); dir 1000 fs/ocfs2/namei.c inc_nlink(dir); dir 1025 fs/ocfs2/namei.c ocfs2_inode_unlock(dir, 1); dir 1781 fs/ocfs2/namei.c static int ocfs2_symlink(struct inode *dir, dir 1809 fs/ocfs2/namei.c trace_ocfs2_symlink_begin(dir, dentry, symname, dir 1812 fs/ocfs2/namei.c status = dquot_initialize(dir); dir 1818 fs/ocfs2/namei.c sb = dir->i_sb; dir 1826 fs/ocfs2/namei.c status = ocfs2_inode_lock(dir, &parent_fe_bh, 1); dir 1840 fs/ocfs2/namei.c status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name, dir 1845 fs/ocfs2/namei.c status = ocfs2_prepare_dir_for_insert(osb, dir, parent_fe_bh, dir 1860 fs/ocfs2/namei.c inode = ocfs2_get_init_inode(dir, S_IFLNK | S_IRWXUGO); dir 1869 fs/ocfs2/namei.c status = ocfs2_init_security_get(inode, dir, &dentry->d_name, &si); dir 1881 fs/ocfs2/namei.c status = ocfs2_calc_security_init(dir, &si, &want_clusters, dir 1917 fs/ocfs2/namei.c trace_ocfs2_symlink_create(dir, dentry, dentry->d_name.len, dir 1919 fs/ocfs2/namei.c (unsigned long long)OCFS2_I(dir)->ip_blkno, dir 1922 fs/ocfs2/namei.c status = ocfs2_mknod_locked(osb, dir, inode, dir 1996 fs/ocfs2/namei.c status = ocfs2_dentry_attach_lock(dentry, inode, OCFS2_I(dir)->ip_blkno); dir 2023 fs/ocfs2/namei.c ocfs2_inode_unlock(dir, 1); dir 2412 fs/ocfs2/namei.c static int ocfs2_prep_new_orphaned_file(struct inode *dir, dir 2422 fs/ocfs2/namei.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 2441 fs/ocfs2/namei.c ret = ocfs2_find_new_inode_loc(dir, dir_bh, inode_ac, dir 2481 fs/ocfs2/namei.c int ocfs2_create_inode_in_orphan(struct inode *dir, dir 2488 fs/ocfs2/namei.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 2498 fs/ocfs2/namei.c status = ocfs2_inode_lock(dir, &parent_di_bh, 1); dir 2505 fs/ocfs2/namei.c status = ocfs2_prep_new_orphaned_file(dir, parent_di_bh, dir 2514 fs/ocfs2/namei.c inode = ocfs2_get_init_inode(dir, mode); dir 2535 fs/ocfs2/namei.c status = ocfs2_claim_new_inode_at_loc(handle, dir, inode_ac, dir 2545 fs/ocfs2/namei.c status = __ocfs2_mknod_locked(dir, inode, dir 2595 fs/ocfs2/namei.c ocfs2_inode_unlock(dir, 1); dir 2752 fs/ocfs2/namei.c int ocfs2_mv_orphaned_inode_to_new(struct inode *dir, dir 2759 fs/ocfs2/namei.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 2766 fs/ocfs2/namei.c trace_ocfs2_mv_orphaned_inode_to_new(dir, dentry, dir 2768 fs/ocfs2/namei.c (unsigned long long)OCFS2_I(dir)->ip_blkno, dir 2771 fs/ocfs2/namei.c status = ocfs2_inode_lock(dir, &parent_di_bh, 1); dir 2785 fs/ocfs2/namei.c status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name, dir 2791 fs/ocfs2/namei.c status = ocfs2_prepare_dir_for_insert(osb, dir, parent_di_bh, dir 2863 fs/ocfs2/namei.c OCFS2_I(dir)->ip_blkno); dir 2879 fs/ocfs2/namei.c ocfs2_inode_unlock(dir, 1); dir 28 fs/ocfs2/namei.h int ocfs2_create_inode_in_orphan(struct inode *dir, dir 36 fs/ocfs2/namei.h int ocfs2_mv_orphaned_inode_to_new(struct inode *dir, dir 2082 fs/ocfs2/ocfs2_trace.h unsigned long long dir), dir 2083 fs/ocfs2/ocfs2_trace.h TP_ARGS(namelen, name, blkno, dir), dir 2088 fs/ocfs2/ocfs2_trace.h __field(unsigned long long, dir) dir 2094 fs/ocfs2/ocfs2_trace.h __entry->dir = dir; dir 2097 fs/ocfs2/ocfs2_trace.h __entry->blkno, __entry->dir) dir 2101 fs/ocfs2/ocfs2_trace.h TP_PROTO(unsigned long long dir, int namelen, const char *name), dir 2102 fs/ocfs2/ocfs2_trace.h TP_ARGS(dir, namelen, name), dir 2104 fs/ocfs2/ocfs2_trace.h __field(unsigned long long, dir) dir 2109 fs/ocfs2/ocfs2_trace.h __entry->dir = dir; dir 2113 fs/ocfs2/ocfs2_trace.h TP_printk("%llu %.*s", __entry->dir, dir 2122 fs/ocfs2/ocfs2_trace.h TP_PROTO(unsigned long long dir, dir 2125 fs/ocfs2/ocfs2_trace.h TP_ARGS(dir, major_hash, minor_hash, namelen, name, num_used), dir 2127 fs/ocfs2/ocfs2_trace.h __field(unsigned long long, dir) dir 2135 fs/ocfs2/ocfs2_trace.h __entry->dir = dir; dir 2142 fs/ocfs2/ocfs2_trace.h TP_printk("%llu %x %x %.*s %u", __entry->dir, dir 2160 fs/ocfs2/ocfs2_trace.h TP_PROTO(void *dir, void *dentry, int name_len, const char *name, dir 2162 fs/ocfs2/ocfs2_trace.h TP_ARGS(dir, dentry, name_len, name, dir_blkno, extra), dir 2164 fs/ocfs2/ocfs2_trace.h __field(void *, dir) dir 2172 fs/ocfs2/ocfs2_trace.h __entry->dir = dir; dir 2179 fs/ocfs2/ocfs2_trace.h TP_printk("%p %p %.*s %llu %llu", __entry->dir, __entry->dentry, dir 2186 fs/ocfs2/ocfs2_trace.h TP_PROTO(void *dir, void *dentry, int name_len, const char *name, \ dir 2188 fs/ocfs2/ocfs2_trace.h TP_ARGS(dir, dentry, name_len, name, dir_blkno, extra)) dir 2205 fs/ocfs2/ocfs2_trace.h TP_PROTO(void *dir, void *dentry, int name_len, const char *name, dir 2207 fs/ocfs2/ocfs2_trace.h TP_ARGS(dir, dentry, name_len, name, dir_blkno, dev, mode), dir 2209 fs/ocfs2/ocfs2_trace.h __field(void *, dir) dir 2218 fs/ocfs2/ocfs2_trace.h __entry->dir = dir; dir 2226 fs/ocfs2/ocfs2_trace.h TP_printk("%p %p %.*s %llu %lu %d", __entry->dir, __entry->dentry, dir 2333 fs/ocfs2/ocfs2_trace.h TP_PROTO(void *dir, void *dentry, const char *symname, dir 2335 fs/ocfs2/ocfs2_trace.h TP_ARGS(dir, dentry, symname, len, name), dir 2337 fs/ocfs2/ocfs2_trace.h __field(void *, dir) dir 2344 fs/ocfs2/ocfs2_trace.h __entry->dir = dir; dir 2350 fs/ocfs2/ocfs2_trace.h TP_printk("%p %p %s %.*s", __entry->dir, __entry->dentry, dir 2376 fs/ocfs2/ocfs2_trace.h TP_PROTO(unsigned long long dir, const char *name, int namelen), dir 2377 fs/ocfs2/ocfs2_trace.h TP_ARGS(dir, name, namelen), dir 2379 fs/ocfs2/ocfs2_trace.h __field(unsigned long long, dir) dir 2384 fs/ocfs2/ocfs2_trace.h __entry->dir = dir; dir 2388 fs/ocfs2/ocfs2_trace.h TP_printk("%llu %s %d", __entry->dir, __get_str(name), dir 4248 fs/ocfs2/refcounttree.c static int ocfs2_reflink(struct dentry *old_dentry, struct inode *dir, dir 4261 fs/ocfs2/refcounttree.c error = ocfs2_create_inode_in_orphan(dir, inode->i_mode, dir 4307 fs/ocfs2/refcounttree.c error = ocfs2_init_security_and_acl(dir, new_orphan_inode, dir 4313 fs/ocfs2/refcounttree.c error = ocfs2_mv_orphaned_inode_to_new(dir, new_orphan_inode, dir 4341 fs/ocfs2/refcounttree.c static inline int ocfs2_may_create(struct inode *dir, struct dentry *child) dir 4345 fs/ocfs2/refcounttree.c if (IS_DEADDIR(dir)) dir 4347 fs/ocfs2/refcounttree.c return inode_permission(dir, MAY_WRITE | MAY_EXEC); dir 4358 fs/ocfs2/refcounttree.c static int ocfs2_vfs_reflink(struct dentry *old_dentry, struct inode *dir, dir 4367 fs/ocfs2/refcounttree.c error = ocfs2_may_create(dir, new_dentry); dir 4371 fs/ocfs2/refcounttree.c if (dir->i_sb != inode->i_sb) dir 4407 fs/ocfs2/refcounttree.c error = dquot_initialize(dir); dir 4409 fs/ocfs2/refcounttree.c error = ocfs2_reflink(old_dentry, dir, new_dentry, preserve); dir 4412 fs/ocfs2/refcounttree.c fsnotify_create(dir, new_dentry); dir 2024 fs/ocfs2/suballoc.c static void ocfs2_init_inode_ac_group(struct inode *dir, dir 2039 fs/ocfs2/suballoc.c if (OCFS2_I(dir)->ip_last_used_group && dir 2040 fs/ocfs2/suballoc.c OCFS2_I(dir)->ip_last_used_slot == ac->ac_alloc_slot) dir 2041 fs/ocfs2/suballoc.c ac->ac_last_group = OCFS2_I(dir)->ip_last_used_group; dir 2052 fs/ocfs2/suballoc.c static inline void ocfs2_save_inode_ac_group(struct inode *dir, dir 2055 fs/ocfs2/suballoc.c OCFS2_I(dir)->ip_last_used_group = ac->ac_last_group; dir 2056 fs/ocfs2/suballoc.c OCFS2_I(dir)->ip_last_used_slot = ac->ac_alloc_slot; dir 2059 fs/ocfs2/suballoc.c int ocfs2_find_new_inode_loc(struct inode *dir, dir 2080 fs/ocfs2/suballoc.c ocfs2_init_inode_ac_group(dir, parent_fe_bh, ac); dir 2086 fs/ocfs2/suballoc.c handle = ocfs2_start_trans(OCFS2_SB(dir->i_sb), OCFS2_SUBALLOC_ALLOC); dir 2109 fs/ocfs2/suballoc.c ocfs2_update_inode_fsync_trans(handle, dir, 0); dir 2112 fs/ocfs2/suballoc.c ocfs2_commit_trans(OCFS2_SB(dir->i_sb), handle); dir 2121 fs/ocfs2/suballoc.c struct inode *dir, dir 2183 fs/ocfs2/suballoc.c ocfs2_save_inode_ac_group(dir, ac); dir 2192 fs/ocfs2/suballoc.c struct inode *dir, dir 2207 fs/ocfs2/suballoc.c ocfs2_init_inode_ac_group(dir, parent_fe_bh, ac); dir 2226 fs/ocfs2/suballoc.c ocfs2_save_inode_ac_group(dir, ac); dir 99 fs/ocfs2/suballoc.h struct inode *dir, dir 211 fs/ocfs2/suballoc.h int ocfs2_find_new_inode_loc(struct inode *dir, dir 217 fs/ocfs2/suballoc.h struct inode *dir, dir 578 fs/ocfs2/xattr.c int ocfs2_calc_security_init(struct inode *dir, dir 585 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 594 fs/ocfs2/xattr.c if (dir->i_sb->s_blocksize == OCFS2_MIN_BLOCKSIZE || dir 606 fs/ocfs2/xattr.c int new_clusters = ocfs2_clusters_for_bytes(dir->i_sb, dir 609 fs/ocfs2/xattr.c *xattr_credits += ocfs2_clusters_to_blocks(dir->i_sb, dir 616 fs/ocfs2/xattr.c int ocfs2_calc_xattr_init(struct inode *dir, dir 625 fs/ocfs2/xattr.c struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); dir 633 fs/ocfs2/xattr.c down_read(&OCFS2_I(dir)->ip_xattr_sem); dir 634 fs/ocfs2/xattr.c acl_len = ocfs2_xattr_get_nolock(dir, dir_bh, dir 637 fs/ocfs2/xattr.c up_read(&OCFS2_I(dir)->ip_xattr_sem); dir 664 fs/ocfs2/xattr.c if (dir->i_sb->s_blocksize == OCFS2_MIN_BLOCKSIZE || dir 671 fs/ocfs2/xattr.c if (dir->i_sb->s_blocksize == OCFS2_MIN_BLOCKSIZE && dir 672 fs/ocfs2/xattr.c (s_size + a_size) > OCFS2_XATTR_FREE_IN_BLOCK(dir)) { dir 674 fs/ocfs2/xattr.c *xattr_credits += ocfs2_blocks_per_xattr_bucket(dir->i_sb); dir 682 fs/ocfs2/xattr.c new_clusters = ocfs2_clusters_for_bytes(dir->i_sb, dir 684 fs/ocfs2/xattr.c *xattr_credits += ocfs2_clusters_to_blocks(dir->i_sb, dir 692 fs/ocfs2/xattr.c ocfs2_clusters_for_bytes(dir->i_sb, acl_len); dir 693 fs/ocfs2/xattr.c *xattr_credits += ocfs2_clusters_to_blocks(dir->i_sb, dir 7212 fs/ocfs2/xattr.c int ocfs2_init_security_and_acl(struct inode *dir, dir 7219 fs/ocfs2/xattr.c ret = ocfs2_init_security_get(inode, dir, qstr, NULL); dir 7225 fs/ocfs2/xattr.c ret = ocfs2_inode_lock(dir, &dir_bh, 0); dir 7230 fs/ocfs2/xattr.c ret = ocfs2_init_acl(NULL, inode, dir, NULL, dir_bh, NULL, NULL); dir 7234 fs/ocfs2/xattr.c ocfs2_inode_unlock(dir, 0); dir 7277 fs/ocfs2/xattr.c struct inode *dir, dir 7282 fs/ocfs2/xattr.c if (!ocfs2_supports_xattr(OCFS2_SB(dir->i_sb))) dir 7285 fs/ocfs2/xattr.c return security_old_inode_init_security(inode, dir, qstr, dir 7289 fs/ocfs2/xattr.c return security_inode_init_security(inode, dir, qstr, dir 87 fs/ocfs2/xattr.h int ocfs2_init_security_and_acl(struct inode *dir, dir 24 fs/omfs/dir.c static struct buffer_head *omfs_get_bucket(struct inode *dir, dir 27 fs/omfs/dir.c int nbuckets = (dir->i_size - OMFS_DIR_START)/8; dir 31 fs/omfs/dir.c return omfs_bread(dir->i_sb, dir->i_ino); dir 34 fs/omfs/dir.c static struct buffer_head *omfs_scan_list(struct inode *dir, u64 block, dir 44 fs/omfs/dir.c bh = omfs_bread(dir->i_sb, block); dir 51 fs/omfs/dir.c if (omfs_is_bad(OMFS_SB(dir->i_sb), &oi->i_head, block)) { dir 67 fs/omfs/dir.c static struct buffer_head *omfs_find_entry(struct inode *dir, dir 74 fs/omfs/dir.c bh = omfs_get_bucket(dir, name, namelen, &ofs); dir 81 fs/omfs/dir.c return omfs_scan_list(dir, block, name, namelen, &dummy); dir 113 fs/omfs/dir.c struct inode *dir = d_inode(dentry->d_parent); dir 123 fs/omfs/dir.c bh = omfs_get_bucket(dir, name, namelen, &ofs); dir 134 fs/omfs/dir.c bh = omfs_bread(dir->i_sb, inode->i_ino); dir 142 fs/omfs/dir.c oi->i_parent = cpu_to_be64(dir->i_ino); dir 146 fs/omfs/dir.c dir->i_ctime = current_time(dir); dir 149 fs/omfs/dir.c mark_inode_dirty(dir); dir 158 fs/omfs/dir.c struct inode *dir = d_inode(dentry->d_parent); dir 170 fs/omfs/dir.c bh = omfs_get_bucket(dir, name, namelen, &ofs); dir 177 fs/omfs/dir.c bh2 = omfs_scan_list(dir, block, name, namelen, &prev); dir 190 fs/omfs/dir.c bh = omfs_bread(dir->i_sb, prev); dir 202 fs/omfs/dir.c dirty = omfs_iget(dir->i_sb, prev); dir 238 fs/omfs/dir.c static int omfs_remove(struct inode *dir, struct dentry *dentry) dir 254 fs/omfs/dir.c mark_inode_dirty(dir); dir 258 fs/omfs/dir.c static int omfs_add_node(struct inode *dir, struct dentry *dentry, umode_t mode) dir 261 fs/omfs/dir.c struct inode *inode = omfs_new_inode(dir, mode); dir 266 fs/omfs/dir.c err = omfs_make_empty(inode, dir->i_sb); dir 282 fs/omfs/dir.c static int omfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 284 fs/omfs/dir.c return omfs_add_node(dir, dentry, mode | S_IFDIR); dir 287 fs/omfs/dir.c static int omfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 290 fs/omfs/dir.c return omfs_add_node(dir, dentry, mode | S_IFREG); dir 293 fs/omfs/dir.c static struct dentry *omfs_lookup(struct inode *dir, struct dentry *dentry, dir 302 fs/omfs/dir.c bh = omfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len); dir 307 fs/omfs/dir.c inode = omfs_iget(dir->i_sb, ino); dir 329 fs/omfs/dir.c static bool omfs_fill_chain(struct inode *dir, struct dir_context *ctx, dir 334 fs/omfs/dir.c struct buffer_head *bh = omfs_bread(dir->i_sb, fsblock); dir 343 fs/omfs/dir.c if (omfs_is_bad(OMFS_SB(dir->i_sb), &oi->i_head, fsblock)) { dir 409 fs/omfs/dir.c struct inode *dir = file_inode(file); dir 424 fs/omfs/dir.c nbuckets = (dir->i_size - OMFS_DIR_START) / 8; dir 430 fs/omfs/dir.c bh = omfs_bread(dir->i_sb, dir->i_ino); dir 438 fs/omfs/dir.c if (!omfs_fill_chain(dir, ctx, fsblock, hindex)) dir 33 fs/omfs/inode.c struct inode *omfs_new_inode(struct inode *dir, umode_t mode) dir 39 fs/omfs/inode.c struct omfs_sb_info *sbi = OMFS_SB(dir->i_sb); dir 41 fs/omfs/inode.c inode = new_inode(dir->i_sb); dir 45 fs/omfs/inode.c err = omfs_allocate_range(dir->i_sb, sbi->s_mirrors, sbi->s_mirrors, dir 64 fs/omfs/omfs.h extern struct inode *omfs_new_inode(struct inode *dir, umode_t mode); dir 181 fs/openpromfs/inode.c static struct dentry *openpromfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) dir 183 fs/openpromfs/inode.c struct op_inode_info *ent_oi, *oi = OP_I(dir); dir 235 fs/openpromfs/inode.c inode = openprom_iget(dir->i_sb, ino); dir 155 fs/orangefs/acl.c int orangefs_init_acl(struct inode *inode, struct inode *dir) dir 162 fs/orangefs/acl.c error = posix_acl_create(dir, &mode, &default_acl, &acl); dir 1131 fs/orangefs/inode.c struct inode *orangefs_new_inode(struct super_block *sb, struct inode *dir, dir 1167 fs/orangefs/inode.c orangefs_init_acl(inode, dir); dir 18 fs/orangefs/namei.c static int orangefs_create(struct inode *dir, dir 23 fs/orangefs/namei.c struct orangefs_inode_s *parent = ORANGEFS_I(dir); dir 46 fs/orangefs/namei.c ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); dir 62 fs/orangefs/namei.c inode = orangefs_new_inode(dir->i_sb, dir, S_IFREG | mode, 0, &ref); dir 87 fs/orangefs/namei.c iattr.ia_mtime = iattr.ia_ctime = current_time(dir); dir 88 fs/orangefs/namei.c __orangefs_setattr(dir, &iattr); dir 104 fs/orangefs/namei.c static struct dentry *orangefs_lookup(struct inode *dir, struct dentry *dentry, dir 107 fs/orangefs/namei.c struct orangefs_inode_s *parent = ORANGEFS_I(dir); dir 149 fs/orangefs/namei.c ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); dir 159 fs/orangefs/namei.c inode = orangefs_iget(dir->i_sb, &new_op->downcall.resp.lookup.refn); dir 172 fs/orangefs/namei.c static int orangefs_unlink(struct inode *dir, struct dentry *dentry) dir 175 fs/orangefs/namei.c struct orangefs_inode_s *parent = ORANGEFS_I(dir); dir 212 fs/orangefs/namei.c iattr.ia_mtime = iattr.ia_ctime = current_time(dir); dir 213 fs/orangefs/namei.c __orangefs_setattr(dir, &iattr); dir 218 fs/orangefs/namei.c static int orangefs_symlink(struct inode *dir, dir 222 fs/orangefs/namei.c struct orangefs_inode_s *parent = ORANGEFS_I(dir); dir 253 fs/orangefs/namei.c ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); dir 269 fs/orangefs/namei.c inode = orangefs_new_inode(dir->i_sb, dir, S_IFLNK | mode, 0, &ref); dir 298 fs/orangefs/namei.c iattr.ia_mtime = iattr.ia_ctime = current_time(dir); dir 299 fs/orangefs/namei.c __orangefs_setattr(dir, &iattr); dir 306 fs/orangefs/namei.c static int orangefs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 308 fs/orangefs/namei.c struct orangefs_inode_s *parent = ORANGEFS_I(dir); dir 327 fs/orangefs/namei.c ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); dir 343 fs/orangefs/namei.c inode = orangefs_new_inode(dir->i_sb, dir, S_IFDIR | mode, 0, &ref); dir 368 fs/orangefs/namei.c iattr.ia_mtime = iattr.ia_ctime = current_time(dir); dir 369 fs/orangefs/namei.c __orangefs_setattr(dir, &iattr); dir 106 fs/orangefs/orangefs-kernel.h extern int orangefs_init_acl(struct inode *inode, struct inode *dir); dir 360 fs/orangefs/orangefs-kernel.h struct inode *dir, dir 335 fs/overlayfs/copy_up.c struct inode *dir = d_inode(indexdir); dir 373 fs/overlayfs/copy_up.c err = ovl_do_rename(dir, temp, dir, index, 0); dir 378 fs/overlayfs/copy_up.c ovl_cleanup(dir, temp); dir 85 fs/overlayfs/dir.c int ovl_cleanup_and_whiteout(struct dentry *workdir, struct inode *dir, dir 101 fs/overlayfs/dir.c err = ovl_do_rename(wdir, whiteout, dir, dentry, flags); dir 116 fs/overlayfs/dir.c static int ovl_mkdir_real(struct inode *dir, struct dentry **newdentry, dir 122 fs/overlayfs/dir.c err = ovl_do_mkdir(dir, dentry, mode); dir 147 fs/overlayfs/dir.c struct dentry *ovl_create_real(struct inode *dir, struct dentry *newdentry, dir 160 fs/overlayfs/dir.c err = ovl_do_link(attr->hardlink, dir, newdentry); dir 164 fs/overlayfs/dir.c err = ovl_do_create(dir, newdentry, attr->mode); dir 169 fs/overlayfs/dir.c err = ovl_mkdir_real(dir, &newdentry, attr->mode); dir 176 fs/overlayfs/dir.c err = ovl_do_mknod(dir, newdentry, attr->mode, dir 181 fs/overlayfs/dir.c err = ovl_do_symlink(dir, newdentry, attr->link); dir 624 fs/overlayfs/dir.c static int ovl_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 630 fs/overlayfs/dir.c static int ovl_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 635 fs/overlayfs/dir.c static int ovl_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dir 645 fs/overlayfs/dir.c static int ovl_symlink(struct inode *dir, struct dentry *dentry, dir 769 fs/overlayfs/dir.c struct inode *dir = upperdir->d_inode; dir 781 fs/overlayfs/dir.c inode_lock_nested(dir, I_MUTEX_PARENT); dir 794 fs/overlayfs/dir.c err = vfs_rmdir(dir, upper); dir 796 fs/overlayfs/dir.c err = vfs_unlink(dir, upper, NULL); dir 810 fs/overlayfs/dir.c inode_unlock(dir); dir 880 fs/overlayfs/dir.c static int ovl_unlink(struct inode *dir, struct dentry *dentry) dir 885 fs/overlayfs/dir.c static int ovl_rmdir(struct inode *dir, struct dentry *dentry) dir 372 fs/overlayfs/export.c struct inode *dir = d_inode(connected); dir 384 fs/overlayfs/export.c inode_lock_nested(dir, I_MUTEX_PARENT); dir 414 fs/overlayfs/export.c inode_unlock(dir); dir 784 fs/overlayfs/inode.c bool ovl_lookup_trap_inode(struct super_block *sb, struct dentry *dir) dir 786 fs/overlayfs/inode.c struct inode *key = d_inode(dir); dir 806 fs/overlayfs/inode.c struct inode *ovl_get_trap_inode(struct super_block *sb, struct dentry *dir) dir 808 fs/overlayfs/inode.c struct inode *key = d_inode(dir); dir 811 fs/overlayfs/inode.c if (!d_is_dir(dir)) dir 813 fs/overlayfs/namei.c struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry, dir 88 fs/overlayfs/overlayfs.h static inline int ovl_do_rmdir(struct inode *dir, struct dentry *dentry) dir 90 fs/overlayfs/overlayfs.h int err = vfs_rmdir(dir, dentry); dir 96 fs/overlayfs/overlayfs.h static inline int ovl_do_unlink(struct inode *dir, struct dentry *dentry) dir 98 fs/overlayfs/overlayfs.h int err = vfs_unlink(dir, dentry, NULL); dir 104 fs/overlayfs/overlayfs.h static inline int ovl_do_link(struct dentry *old_dentry, struct inode *dir, dir 107 fs/overlayfs/overlayfs.h int err = vfs_link(old_dentry, dir, new_dentry, NULL); dir 113 fs/overlayfs/overlayfs.h static inline int ovl_do_create(struct inode *dir, struct dentry *dentry, dir 116 fs/overlayfs/overlayfs.h int err = vfs_create(dir, dentry, mode, true); dir 122 fs/overlayfs/overlayfs.h static inline int ovl_do_mkdir(struct inode *dir, struct dentry *dentry, dir 125 fs/overlayfs/overlayfs.h int err = vfs_mkdir(dir, dentry, mode); dir 130 fs/overlayfs/overlayfs.h static inline int ovl_do_mknod(struct inode *dir, struct dentry *dentry, dir 133 fs/overlayfs/overlayfs.h int err = vfs_mknod(dir, dentry, mode, dev); dir 139 fs/overlayfs/overlayfs.h static inline int ovl_do_symlink(struct inode *dir, struct dentry *dentry, dir 142 fs/overlayfs/overlayfs.h int err = vfs_symlink(dir, dentry, oldname); dir 179 fs/overlayfs/overlayfs.h static inline int ovl_do_whiteout(struct inode *dir, struct dentry *dentry) dir 181 fs/overlayfs/overlayfs.h int err = vfs_whiteout(dir, dentry); dir 319 fs/overlayfs/overlayfs.h struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry, dir 342 fs/overlayfs/overlayfs.h void ovl_workdir_cleanup(struct inode *dir, struct vfsmount *mnt, dir 377 fs/overlayfs/overlayfs.h bool ovl_lookup_trap_inode(struct super_block *sb, struct dentry *dir); dir 378 fs/overlayfs/overlayfs.h struct inode *ovl_get_trap_inode(struct super_block *sb, struct dentry *dir); dir 401 fs/overlayfs/overlayfs.h int ovl_cleanup_and_whiteout(struct dentry *workdir, struct inode *dir, dir 412 fs/overlayfs/overlayfs.h struct dentry *ovl_create_real(struct inode *dir, struct dentry *newdentry, dir 414 fs/overlayfs/overlayfs.h int ovl_cleanup(struct inode *dir, struct dentry *dentry); dir 267 fs/overlayfs/readdir.c static int ovl_check_whiteouts(struct dentry *dir, struct ovl_readdir_data *rdd) dir 276 fs/overlayfs/readdir.c err = down_write_killable(&dir->d_inode->i_rwsem); dir 281 fs/overlayfs/readdir.c dentry = lookup_one_len(p->name, dir, p->len); dir 287 fs/overlayfs/readdir.c inode_unlock(dir->d_inode); dir 329 fs/overlayfs/readdir.c static bool ovl_dir_is_real(struct dentry *dir) dir 331 fs/overlayfs/readdir.c return !ovl_test_flag(OVL_WHITEOUTS, d_inode(dir)); dir 465 fs/overlayfs/readdir.c struct dentry *dir = path->dentry; dir 469 fs/overlayfs/readdir.c int xinobits = ovl_xino_bits(dir->d_sb); dir 472 fs/overlayfs/readdir.c if (!ovl_same_sb(dir->d_sb) && !xinobits) dir 477 fs/overlayfs/readdir.c this = dget(dir); dir 482 fs/overlayfs/readdir.c this = dget(dir->d_parent); dir 486 fs/overlayfs/readdir.c this = lookup_one_len(p->name, dir, p->len); dir 513 fs/overlayfs/readdir.c dir->d_sb->s_dev != stat.dev); dir 677 fs/overlayfs/readdir.c struct inode *dir = d_inode(file->f_path.dentry); dir 685 fs/overlayfs/readdir.c return od->is_upper && ovl_test_flag(OVL_IMPURE, dir); dir 693 fs/overlayfs/readdir.c struct dentry *dir = file->f_path.dentry; dir 694 fs/overlayfs/readdir.c struct ovl_layer *lower_layer = ovl_layer_lower(dir); dir 698 fs/overlayfs/readdir.c .xinobits = ovl_xino_bits(dir->d_sb), dir 704 fs/overlayfs/readdir.c if (OVL_TYPE_MERGE(ovl_path_type(dir->d_parent))) { dir 708 fs/overlayfs/readdir.c statpath.dentry = dir->d_parent; dir 713 fs/overlayfs/readdir.c WARN_ON_ONCE(dir->d_sb->s_dev != stat.dev); dir 1025 fs/overlayfs/readdir.c struct inode *dir = path->dentry->d_inode; dir 1041 fs/overlayfs/readdir.c inode_lock_nested(dir, I_MUTEX_PARENT); dir 1055 fs/overlayfs/readdir.c ovl_workdir_cleanup(dir, path->mnt, dentry, level); dir 1058 fs/overlayfs/readdir.c inode_unlock(dir); dir 1063 fs/overlayfs/readdir.c void ovl_workdir_cleanup(struct inode *dir, struct vfsmount *mnt, dir 1069 fs/overlayfs/readdir.c ovl_cleanup(dir, dentry); dir 1073 fs/overlayfs/readdir.c err = ovl_do_rmdir(dir, dentry); dir 1077 fs/overlayfs/readdir.c inode_unlock(dir); dir 1079 fs/overlayfs/readdir.c inode_lock_nested(dir, I_MUTEX_PARENT); dir 1080 fs/overlayfs/readdir.c ovl_cleanup(dir, dentry); dir 1089 fs/overlayfs/readdir.c struct inode *dir = indexdir->d_inode; dir 1106 fs/overlayfs/readdir.c inode_lock_nested(dir, I_MUTEX_PARENT); dir 1125 fs/overlayfs/readdir.c err = ovl_cleanup(dir, index); dir 1138 fs/overlayfs/readdir.c err = ovl_cleanup_and_whiteout(indexdir, dir, index); dir 1141 fs/overlayfs/readdir.c err = ovl_cleanup(dir, index); dir 1152 fs/overlayfs/readdir.c inode_unlock(dir); dir 617 fs/overlayfs/super.c struct inode *dir = ofs->workbasedir->d_inode; dir 624 fs/overlayfs/super.c inode_lock_nested(dir, I_MUTEX_PARENT); dir 645 fs/overlayfs/super.c ovl_workdir_cleanup(dir, mnt, work, 0); dir 650 fs/overlayfs/super.c work = ovl_create_real(dir, work, OVL_CATTR(attr.ia_mode)); dir 688 fs/overlayfs/super.c inode_unlock(dir); dir 989 fs/overlayfs/super.c static int ovl_setup_trap(struct super_block *sb, struct dentry *dir, dir 995 fs/overlayfs/super.c trap = ovl_get_trap_inode(sb, dir); dir 689 fs/overlayfs/util.c struct inode *dir = indexdir->d_inode; dir 719 fs/overlayfs/util.c inode_lock_nested(dir, I_MUTEX_PARENT); dir 726 fs/overlayfs/util.c err = ovl_cleanup_and_whiteout(indexdir, dir, index); dir 729 fs/overlayfs/util.c err = ovl_cleanup(dir, index); dir 732 fs/overlayfs/util.c inode_unlock(dir); dir 582 fs/posix_acl.c posix_acl_create(struct inode *dir, umode_t *mode, dir 592 fs/posix_acl.c if (S_ISLNK(*mode) || !IS_POSIXACL(dir)) dir 595 fs/posix_acl.c p = get_acl(dir, ACL_TYPE_DEFAULT); dir 938 fs/posix_acl.c int simple_acl_create(struct inode *dir, struct inode *inode) dir 943 fs/posix_acl.c error = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); dir 1886 fs/proc/base.c struct dentry *child, *dir = file->f_path.dentry; dir 1892 fs/proc/base.c child = d_hash_and_lookup(dir, &qname); dir 1895 fs/proc/base.c child = d_alloc_parallel(dir, &qname, &wq); dir 2107 fs/proc/base.c static struct dentry *proc_map_files_lookup(struct inode *dir, dir 2117 fs/proc/base.c task = get_proc_task(dir); dir 2476 fs/proc/base.c static struct dentry *proc_pident_lookup(struct inode *dir, dir 2481 fs/proc/base.c struct task_struct *task = get_proc_task(dir); dir 2627 fs/proc/base.c static struct dentry *proc_##LSM##_attr_dir_lookup(struct inode *dir, \ dir 2630 fs/proc/base.c return proc_pident_lookup(dir, dentry, \ dir 2673 fs/proc/base.c static struct dentry *proc_attr_dir_lookup(struct inode *dir, dir 2676 fs/proc/base.c return proc_pident_lookup(dir, dentry, dir 3122 fs/proc/base.c static struct dentry *proc_tgid_base_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) dir 3124 fs/proc/base.c return proc_pident_lookup(dir, dentry, dir 3138 fs/proc/base.c struct dentry *dentry, *leader, *dir; dir 3162 fs/proc/base.c dir = d_hash_and_lookup(leader, &name); dir 3163 fs/proc/base.c if (!dir) dir 3168 fs/proc/base.c dentry = d_hash_and_lookup(dir, &name); dir 3174 fs/proc/base.c dput(dir); dir 3498 fs/proc/base.c static struct dentry *proc_tid_base_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) dir 3500 fs/proc/base.c return proc_pident_lookup(dir, dentry, dir 3536 fs/proc/base.c static struct dentry *proc_task_lookup(struct inode *dir, struct dentry * dentry, unsigned int flags) dir 3539 fs/proc/base.c struct task_struct *leader = get_proc_task(dir); dir 206 fs/proc/fd.c static struct dentry *proc_lookupfd_common(struct inode *dir, dir 210 fs/proc/fd.c struct task_struct *task = get_proc_task(dir); dir 287 fs/proc/fd.c static struct dentry *proc_lookupfd(struct inode *dir, struct dentry *dentry, dir 290 fs/proc/fd.c return proc_lookupfd_common(dir, dentry, proc_fd_instantiate); dir 343 fs/proc/fd.c proc_lookupfdinfo(struct inode *dir, struct dentry *dentry, unsigned int flags) dir 345 fs/proc/fd.c return proc_lookupfd_common(dir, dentry, proc_fdinfo_instantiate); dir 56 fs/proc/generic.c static struct proc_dir_entry *pde_subdir_first(struct proc_dir_entry *dir) dir 58 fs/proc/generic.c return rb_entry_safe(rb_first(&dir->subdir), struct proc_dir_entry, dir 62 fs/proc/generic.c static struct proc_dir_entry *pde_subdir_next(struct proc_dir_entry *dir) dir 64 fs/proc/generic.c return rb_entry_safe(rb_next(&dir->subdir_node), struct proc_dir_entry, dir 68 fs/proc/generic.c static struct proc_dir_entry *pde_subdir_find(struct proc_dir_entry *dir, dir 72 fs/proc/generic.c struct rb_node *node = dir->subdir.rb_node; dir 90 fs/proc/generic.c static bool pde_subdir_insert(struct proc_dir_entry *dir, dir 93 fs/proc/generic.c struct rb_root *root = &dir->subdir; dir 247 fs/proc/generic.c struct dentry *proc_lookup_de(struct inode *dir, struct dentry *dentry, dir 257 fs/proc/generic.c inode = proc_get_inode(dir->i_sb, de); dir 267 fs/proc/generic.c struct dentry *proc_lookup(struct inode *dir, struct dentry *dentry, dir 270 fs/proc/generic.c return proc_lookup_de(dir, dentry, PDE(dir)); dir 351 fs/proc/generic.c struct proc_dir_entry *proc_register(struct proc_dir_entry *dir, dir 358 fs/proc/generic.c dp->parent = dir; dir 359 fs/proc/generic.c if (pde_subdir_insert(dir, dp) == false) { dir 361 fs/proc/generic.c dir->name, dp->name); dir 176 fs/proc/internal.h struct proc_dir_entry *proc_register(struct proc_dir_entry *dir, dir 143 fs/proc/namespaces.c static struct dentry *proc_ns_dir_lookup(struct inode *dir, dir 146 fs/proc/namespaces.c struct task_struct *task = get_proc_task(dir); dir 254 fs/proc/proc_net.c static struct net *get_proc_task_net(struct inode *dir) dir 261 fs/proc/proc_net.c task = pid_task(proc_pid(dir), PIDTYPE_PID); dir 274 fs/proc/proc_net.c static struct dentry *proc_tgid_net_lookup(struct inode *dir, dir 281 fs/proc/proc_net.c net = get_proc_task_net(dir); dir 283 fs/proc/proc_net.c de = proc_lookup_de(dir, dentry, net->proc_net); dir 40 fs/proc/proc_sysctl.c static void set_empty_dir(struct ctl_dir *dir) dir 42 fs/proc/proc_sysctl.c dir->header.ctl_table[0].child = sysctl_mount_point; dir 45 fs/proc/proc_sysctl.c static void clear_empty_dir(struct ctl_dir *dir) dir 48 fs/proc/proc_sysctl.c dir->header.ctl_table[0].child = NULL; dir 68 fs/proc/proc_sysctl.c .default_set.dir.header = { dir 86 fs/proc/proc_sysctl.c static void sysctl_print_dir(struct ctl_dir *dir) dir 88 fs/proc/proc_sysctl.c if (dir->header.parent) dir 89 fs/proc/proc_sysctl.c sysctl_print_dir(dir->header.parent); dir 90 fs/proc/proc_sysctl.c pr_cont("%s/", dir->header.ctl_table[0].procname); dir 110 fs/proc/proc_sysctl.c struct ctl_dir *dir, const char *name, int namelen) dir 114 fs/proc/proc_sysctl.c struct rb_node *node = dir->root.rb_node; dir 215 fs/proc/proc_sysctl.c static int insert_header(struct ctl_dir *dir, struct ctl_table_header *header) dir 221 fs/proc/proc_sysctl.c if (is_empty_dir(&dir->header)) dir 226 fs/proc/proc_sysctl.c if (!RB_EMPTY_ROOT(&dir->root)) dir 228 fs/proc/proc_sysctl.c set_empty_dir(dir); dir 231 fs/proc/proc_sysctl.c dir->header.nreg++; dir 232 fs/proc/proc_sysctl.c header->parent = dir; dir 247 fs/proc/proc_sysctl.c clear_empty_dir(dir); dir 249 fs/proc/proc_sysctl.c drop_sysctl_table(&dir->header); dir 368 fs/proc/proc_sysctl.c struct ctl_dir *dir, dir 375 fs/proc/proc_sysctl.c entry = find_entry(&head, dir, name, namelen); dir 396 fs/proc/proc_sysctl.c static void first_entry(struct ctl_dir *dir, dir 404 fs/proc/proc_sysctl.c ctl_node = first_usable_entry(rb_first(&dir->root)); dir 527 fs/proc/proc_sysctl.c head = &sysctl_table_root.default_set.dir.header; dir 531 fs/proc/proc_sysctl.c static struct dentry *proc_sys_lookup(struct inode *dir, struct dentry *dentry, dir 534 fs/proc/proc_sysctl.c struct ctl_table_header *head = grab_header(dir); dir 559 fs/proc/proc_sysctl.c inode = proc_sys_make_inode(dir->i_sb, h ? h : head, p); dir 693 fs/proc/proc_sysctl.c struct dentry *child, *dir = file->f_path.dentry; dir 701 fs/proc/proc_sysctl.c qname.hash = full_name_hash(dir, qname.name, qname.len); dir 703 fs/proc/proc_sysctl.c child = d_lookup(dir, &qname); dir 706 fs/proc/proc_sysctl.c child = d_alloc_parallel(dir, &qname, &wq); dir 711 fs/proc/proc_sysctl.c inode = proc_sys_make_inode(dir->d_sb, head, table); dir 950 fs/proc/proc_sysctl.c static struct ctl_dir *find_subdir(struct ctl_dir *dir, dir 956 fs/proc/proc_sysctl.c entry = find_entry(&head, dir, name, namelen); dir 985 fs/proc/proc_sysctl.c init_header(&new->header, set->dir.header.root, set, node, table); dir 1002 fs/proc/proc_sysctl.c static struct ctl_dir *get_subdir(struct ctl_dir *dir, dir 1005 fs/proc/proc_sysctl.c struct ctl_table_set *set = dir->header.set; dir 1010 fs/proc/proc_sysctl.c subdir = find_subdir(dir, name, namelen); dir 1024 fs/proc/proc_sysctl.c subdir = find_subdir(dir, name, namelen); dir 1031 fs/proc/proc_sysctl.c err = insert_header(dir, &new->header); dir 1041 fs/proc/proc_sysctl.c sysctl_print_dir(dir); dir 1045 fs/proc/proc_sysctl.c drop_sysctl_table(&dir->header); dir 1052 fs/proc/proc_sysctl.c static struct ctl_dir *xlate_dir(struct ctl_table_set *set, struct ctl_dir *dir) dir 1056 fs/proc/proc_sysctl.c if (!dir->header.parent) dir 1057 fs/proc/proc_sysctl.c return &set->dir; dir 1058 fs/proc/proc_sysctl.c parent = xlate_dir(set, dir->header.parent); dir 1061 fs/proc/proc_sysctl.c procname = dir->header.ctl_table[0].procname; dir 1072 fs/proc/proc_sysctl.c struct ctl_dir *dir; dir 1079 fs/proc/proc_sysctl.c dir = xlate_dir(set, (*phead)->parent); dir 1080 fs/proc/proc_sysctl.c if (IS_ERR(dir)) dir 1081 fs/proc/proc_sysctl.c ret = PTR_ERR(dir); dir 1085 fs/proc/proc_sysctl.c entry = find_entry(&head, dir, procname, strlen(procname)); dir 1162 fs/proc/proc_sysctl.c static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table *table, dir 1199 fs/proc/proc_sysctl.c init_header(links, dir->header.root, dir->header.set, node, link_table); dir 1205 fs/proc/proc_sysctl.c static bool get_links(struct ctl_dir *dir, dir 1214 fs/proc/proc_sysctl.c link = find_entry(&head, dir, procname, strlen(procname)); dir 1227 fs/proc/proc_sysctl.c link = find_entry(&head, dir, procname, strlen(procname)); dir 1320 fs/proc/proc_sysctl.c struct ctl_table_root *root = set->dir.header.root; dir 1323 fs/proc/proc_sysctl.c struct ctl_dir *dir; dir 1342 fs/proc/proc_sysctl.c dir = &set->dir; dir 1344 fs/proc/proc_sysctl.c dir->header.nreg++; dir 1360 fs/proc/proc_sysctl.c dir = get_subdir(dir, name, namelen); dir 1361 fs/proc/proc_sysctl.c if (IS_ERR(dir)) dir 1366 fs/proc/proc_sysctl.c if (insert_header(dir, header)) dir 1369 fs/proc/proc_sysctl.c drop_sysctl_table(&dir->header); dir 1375 fs/proc/proc_sysctl.c drop_sysctl_table(&dir->header); dir 1709 fs/proc/proc_sysctl.c init_header(&set->dir.header, root, set, NULL, root_table); dir 1714 fs/proc/proc_sysctl.c WARN_ON(!RB_EMPTY_ROOT(&set->dir.root)); dir 246 fs/proc/root.c static struct dentry *proc_root_lookup(struct inode * dir, struct dentry * dentry, unsigned int flags) dir 251 fs/proc/root.c return proc_lookup(dir, dentry, flags); dir 177 fs/pstore/inode.c static int pstore_unlink(struct inode *dir, struct dentry *dentry) dir 189 fs/pstore/inode.c return simple_unlink(dir, dentry); dir 57 fs/qnx4/namei.c static struct buffer_head *qnx4_find_entry(int len, struct inode *dir, dir 66 fs/qnx4/namei.c while (blkofs * QNX4_BLOCK_SIZE + offset < dir->i_size) { dir 68 fs/qnx4/namei.c block = qnx4_block_map(dir, blkofs); dir 70 fs/qnx4/namei.c bh = sb_bread(dir->i_sb, block); dir 95 fs/qnx4/namei.c struct dentry * qnx4_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) dir 105 fs/qnx4/namei.c if (!(bh = qnx4_find_entry(len, dir, name, &de, &ino))) dir 116 fs/qnx4/namei.c foundinode = qnx4_iget(dir->i_sb, ino); dir 25 fs/qnx4/qnx4.h extern struct dentry *qnx4_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags); dir 27 fs/qnx6/dir.c static struct page *qnx6_get_page(struct inode *dir, unsigned long n) dir 29 fs/qnx6/dir.c struct address_space *mapping = dir->i_mapping; dir 176 fs/qnx6/dir.c struct qnx6_long_dir_entry *de, struct inode *dir) dir 178 fs/qnx6/dir.c struct super_block *s = dir->i_sb; dir 213 fs/qnx6/dir.c unsigned qnx6_find_entry(int len, struct inode *dir, const char *name, dir 216 fs/qnx6/dir.c struct super_block *s = dir->i_sb; dir 217 fs/qnx6/dir.c struct qnx6_inode_info *ei = QNX6_I(dir); dir 220 fs/qnx6/dir.c unsigned long npages = dir_pages(dir); dir 235 fs/qnx6/dir.c page = qnx6_get_page(dir, n); dir 237 fs/qnx6/dir.c int limit = last_entry(dir, n); dir 253 fs/qnx6/dir.c name, lde, dir); dir 16 fs/qnx6/namei.c struct dentry *qnx6_lookup(struct inode *dir, struct dentry *dentry, dir 28 fs/qnx6/namei.c ino = qnx6_find_entry(len, dir, name, &page); dir 30 fs/qnx6/namei.c foundinode = qnx6_iget(dir->i_sb, ino); dir 48 fs/qnx6/qnx6.h extern struct dentry *qnx6_lookup(struct inode *dir, struct dentry *dentry, dir 135 fs/qnx6/qnx6.h extern unsigned qnx6_find_entry(int len, struct inode *dir, const char *name, dir 64 fs/ramfs/inode.c const struct inode *dir, umode_t mode, dev_t dev) dir 70 fs/ramfs/inode.c inode_init_owner(inode, dir, mode); dir 104 fs/ramfs/inode.c ramfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) dir 106 fs/ramfs/inode.c struct inode * inode = ramfs_get_inode(dir->i_sb, dir, mode, dev); dir 113 fs/ramfs/inode.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 118 fs/ramfs/inode.c static int ramfs_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) dir 120 fs/ramfs/inode.c int retval = ramfs_mknod(dir, dentry, mode | S_IFDIR, 0); dir 122 fs/ramfs/inode.c inc_nlink(dir); dir 126 fs/ramfs/inode.c static int ramfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) dir 128 fs/ramfs/inode.c return ramfs_mknod(dir, dentry, mode | S_IFREG, 0); dir 131 fs/ramfs/inode.c static int ramfs_symlink(struct inode * dir, struct dentry *dentry, const char * symname) dir 136 fs/ramfs/inode.c inode = ramfs_get_inode(dir->i_sb, dir, S_IFLNK|S_IRWXUGO, 0); dir 143 fs/ramfs/inode.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 55 fs/reiserfs/acl.h struct inode *dir, struct dentry *dentry, dir 57 fs/reiserfs/acl.h int reiserfs_cache_default_acl(struct inode *dir); dir 72 fs/reiserfs/acl.h const struct inode *dir, struct dentry *dentry, dir 325 fs/reiserfs/bitmap.c __le32 reiserfs_choose_packing(struct inode * dir) dir 328 fs/reiserfs/bitmap.c if (TEST_OPTION(packing_groups, dir->i_sb)) { dir 329 fs/reiserfs/bitmap.c u32 parent_dir = le32_to_cpu(INODE_PKEY(dir)->k_dir_id); dir 334 fs/reiserfs/bitmap.c if (parent_dir == 1 || block_group_used(dir->i_sb, parent_dir)) dir 335 fs/reiserfs/bitmap.c packing = INODE_PKEY(dir)->k_objectid; dir 337 fs/reiserfs/bitmap.c packing = INODE_PKEY(dir)->k_dir_id; dir 339 fs/reiserfs/bitmap.c packing = INODE_PKEY(dir)->k_objectid; dir 53 fs/reiserfs/dir.c static inline bool is_privroot_deh(struct inode *dir, struct reiserfs_de_head *deh) dir 55 fs/reiserfs/dir.c struct dentry *privroot = REISERFS_SB(dir->i_sb)->priv_root; dir 1807 fs/reiserfs/inode.c struct inode *dir) dir 1832 fs/reiserfs/inode.c INODE_PKEY(dir)->k_dir_id, dir 1833 fs/reiserfs/inode.c INODE_PKEY(dir)->k_objectid); dir 1840 fs/reiserfs/inode.c INODE_PKEY(dir)->k_dir_id, dir 1841 fs/reiserfs/inode.c INODE_PKEY(dir)->k_objectid); dir 1927 fs/reiserfs/inode.c struct inode *dir, umode_t mode, const char *symname, dir 1934 fs/reiserfs/inode.c struct super_block *sb = dir->i_sb; dir 1951 fs/reiserfs/inode.c if (!dir->i_nlink) { dir 1957 fs/reiserfs/inode.c ih.ih_key.k_dir_id = reiserfs_choose_packing(dir); dir 1989 fs/reiserfs/inode.c inode->i_generation = le32_to_cpu(INODE_PKEY(dir)->k_objectid); dir 2017 fs/reiserfs/inode.c REISERFS_I(dir)->i_attrs & REISERFS_INHERIT_MASK; dir 2064 fs/reiserfs/inode.c if (REISERFS_I(dir)->new_packing_locality) dir 2077 fs/reiserfs/inode.c REISERFS_I(dir)->new_packing_locality = 0; dir 2082 fs/reiserfs/inode.c reiserfs_new_directory(th, inode, &ih, &path_to_key, dir); dir 2104 fs/reiserfs/inode.c if (IS_PRIVATE(dir) || dentry == REISERFS_SB(sb)->priv_root) { dir 2111 fs/reiserfs/inode.c retval = reiserfs_inherit_default_acl(th, dir, dentry, inode); dir 304 fs/reiserfs/namei.c static int reiserfs_find_entry(struct inode *dir, const char *name, int namelen, dir 311 fs/reiserfs/namei.c if (namelen > REISERFS_MAX_NAME(dir->i_sb->s_blocksize)) dir 315 fs/reiserfs/namei.c make_cpu_key(&key_to_search, dir, dir 316 fs/reiserfs/namei.c get_third_component(dir->i_sb, name, namelen), dir 321 fs/reiserfs/namei.c search_by_entry_key(dir->i_sb, &key_to_search, dir 324 fs/reiserfs/namei.c reiserfs_error(dir->i_sb, "zam-7001", "io error"); dir 352 fs/reiserfs/namei.c static struct dentry *reiserfs_lookup(struct inode *dir, struct dentry *dentry, dir 360 fs/reiserfs/namei.c if (REISERFS_MAX_NAME(dir->i_sb->s_blocksize) < dentry->d_name.len) dir 363 fs/reiserfs/namei.c reiserfs_write_lock(dir->i_sb); dir 367 fs/reiserfs/namei.c reiserfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len, dir 371 fs/reiserfs/namei.c inode = reiserfs_iget(dir->i_sb, dir 374 fs/reiserfs/namei.c reiserfs_write_unlock(dir->i_sb); dir 383 fs/reiserfs/namei.c if (IS_PRIVATE(dir)) { dir 388 fs/reiserfs/namei.c reiserfs_write_unlock(dir->i_sb); dir 406 fs/reiserfs/namei.c struct inode *dir = d_inode(child); dir 408 fs/reiserfs/namei.c if (dir->i_nlink == 0) { dir 413 fs/reiserfs/namei.c reiserfs_write_lock(dir->i_sb); dir 414 fs/reiserfs/namei.c retval = reiserfs_find_entry(dir, "..", 2, &path_to_entry, &de); dir 417 fs/reiserfs/namei.c reiserfs_write_unlock(dir->i_sb); dir 420 fs/reiserfs/namei.c inode = reiserfs_iget(dir->i_sb, (struct cpu_key *)&de.de_dir_id); dir 421 fs/reiserfs/namei.c reiserfs_write_unlock(dir->i_sb); dir 433 fs/reiserfs/namei.c struct inode *dir, const char *name, int namelen, dir 459 fs/reiserfs/namei.c if (namelen > REISERFS_MAX_NAME(dir->i_sb->s_blocksize)) dir 463 fs/reiserfs/namei.c make_cpu_key(&entry_key, dir, dir 464 fs/reiserfs/namei.c get_third_component(dir->i_sb, name, namelen), dir 477 fs/reiserfs/namei.c (get_inode_sd_version(dir) == dir 510 fs/reiserfs/namei.c retval = reiserfs_find_entry(dir, name, namelen, &path, &de); dir 521 fs/reiserfs/namei.c reiserfs_error(dir->i_sb, "zam-7002", dir 534 fs/reiserfs/namei.c reiserfs_warning(dir->i_sb, "reiserfs-7010", dir 551 fs/reiserfs/namei.c if (search_by_entry_key(dir->i_sb, &entry_key, &path, &de) != dir 553 fs/reiserfs/namei.c reiserfs_warning(dir->i_sb, "vs-7032", dir 566 fs/reiserfs/namei.c reiserfs_paste_into_item(th, &path, &entry_key, dir, buffer, dir 575 fs/reiserfs/namei.c dir->i_size += paste_size; dir 576 fs/reiserfs/namei.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 579 fs/reiserfs/namei.c reiserfs_update_sd(th, dir); dir 606 fs/reiserfs/namei.c static int new_inode_init(struct inode *inode, struct inode *dir, umode_t mode) dir 618 fs/reiserfs/namei.c inode_init_owner(inode, dir, mode); dir 622 fs/reiserfs/namei.c static int reiserfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 633 fs/reiserfs/namei.c 2 * (REISERFS_QUOTA_INIT_BLOCKS(dir->i_sb) + dir 634 fs/reiserfs/namei.c REISERFS_QUOTA_TRANS_BLOCKS(dir->i_sb)); dir 638 fs/reiserfs/namei.c retval = dquot_initialize(dir); dir 642 fs/reiserfs/namei.c if (!(inode = new_inode(dir->i_sb))) { dir 645 fs/reiserfs/namei.c retval = new_inode_init(inode, dir, mode); dir 651 fs/reiserfs/namei.c jbegin_count += reiserfs_cache_default_acl(dir); dir 652 fs/reiserfs/namei.c retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); dir 658 fs/reiserfs/namei.c reiserfs_write_lock(dir->i_sb); dir 660 fs/reiserfs/namei.c retval = journal_begin(&th, dir->i_sb, jbegin_count); dir 667 fs/reiserfs/namei.c reiserfs_new_inode(&th, dir, mode, NULL, 0 /*i_size */ , dentry, dir 677 fs/reiserfs/namei.c reiserfs_add_entry(&th, dir, dentry->d_name.name, dir 691 fs/reiserfs/namei.c reiserfs_update_inode_transaction(dir); dir 697 fs/reiserfs/namei.c reiserfs_write_unlock(dir->i_sb); dir 701 fs/reiserfs/namei.c static int reiserfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dir 714 fs/reiserfs/namei.c 2 * (REISERFS_QUOTA_INIT_BLOCKS(dir->i_sb) + dir 715 fs/reiserfs/namei.c REISERFS_QUOTA_TRANS_BLOCKS(dir->i_sb)); dir 717 fs/reiserfs/namei.c retval = dquot_initialize(dir); dir 721 fs/reiserfs/namei.c if (!(inode = new_inode(dir->i_sb))) { dir 724 fs/reiserfs/namei.c retval = new_inode_init(inode, dir, mode); dir 730 fs/reiserfs/namei.c jbegin_count += reiserfs_cache_default_acl(dir); dir 731 fs/reiserfs/namei.c retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); dir 737 fs/reiserfs/namei.c reiserfs_write_lock(dir->i_sb); dir 739 fs/reiserfs/namei.c retval = journal_begin(&th, dir->i_sb, jbegin_count); dir 746 fs/reiserfs/namei.c reiserfs_new_inode(&th, dir, mode, NULL, 0 /*i_size */ , dentry, dir 759 fs/reiserfs/namei.c reiserfs_update_inode_transaction(dir); dir 762 fs/reiserfs/namei.c reiserfs_add_entry(&th, dir, dentry->d_name.name, dir 780 fs/reiserfs/namei.c reiserfs_write_unlock(dir->i_sb); dir 784 fs/reiserfs/namei.c static int reiserfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 796 fs/reiserfs/namei.c 2 * (REISERFS_QUOTA_INIT_BLOCKS(dir->i_sb) + dir 797 fs/reiserfs/namei.c REISERFS_QUOTA_TRANS_BLOCKS(dir->i_sb)); dir 799 fs/reiserfs/namei.c retval = dquot_initialize(dir); dir 808 fs/reiserfs/namei.c REISERFS_I(dir)->new_packing_locality = 1; dir 811 fs/reiserfs/namei.c if (!(inode = new_inode(dir->i_sb))) { dir 814 fs/reiserfs/namei.c retval = new_inode_init(inode, dir, mode); dir 820 fs/reiserfs/namei.c jbegin_count += reiserfs_cache_default_acl(dir); dir 821 fs/reiserfs/namei.c retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); dir 827 fs/reiserfs/namei.c reiserfs_write_lock(dir->i_sb); dir 829 fs/reiserfs/namei.c retval = journal_begin(&th, dir->i_sb, jbegin_count); dir 839 fs/reiserfs/namei.c INC_DIR_INODE_NLINK(dir) dir 841 fs/reiserfs/namei.c retval = reiserfs_new_inode(&th, dir, mode, NULL /*symlink */ , dir 842 fs/reiserfs/namei.c old_format_only(dir->i_sb) ? dir 846 fs/reiserfs/namei.c DEC_DIR_INODE_NLINK(dir) dir 851 fs/reiserfs/namei.c reiserfs_update_inode_transaction(dir); dir 858 fs/reiserfs/namei.c reiserfs_add_entry(&th, dir, dentry->d_name.name, dir 863 fs/reiserfs/namei.c DEC_DIR_INODE_NLINK(dir); dir 873 fs/reiserfs/namei.c reiserfs_update_sd(&th, dir); dir 878 fs/reiserfs/namei.c reiserfs_write_unlock(dir->i_sb); dir 897 fs/reiserfs/namei.c static int reiserfs_rmdir(struct inode *dir, struct dentry *dentry) dir 914 fs/reiserfs/namei.c 4 * REISERFS_QUOTA_TRANS_BLOCKS(dir->i_sb); dir 916 fs/reiserfs/namei.c retval = dquot_initialize(dir); dir 920 fs/reiserfs/namei.c reiserfs_write_lock(dir->i_sb); dir 921 fs/reiserfs/namei.c retval = journal_begin(&th, dir->i_sb, jbegin_count); dir 927 fs/reiserfs/namei.c reiserfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len, dir 939 fs/reiserfs/namei.c reiserfs_update_inode_transaction(dir); dir 955 fs/reiserfs/namei.c dir, NULL, /* page */ dir 966 fs/reiserfs/namei.c inode->i_ctime = dir->i_ctime = dir->i_mtime = current_time(dir); dir 969 fs/reiserfs/namei.c DEC_DIR_INODE_NLINK(dir) dir 970 fs/reiserfs/namei.c dir->i_size -= (DEH_SIZE + de.de_entrylen); dir 971 fs/reiserfs/namei.c reiserfs_update_sd(&th, dir); dir 979 fs/reiserfs/namei.c reiserfs_write_unlock(dir->i_sb); dir 990 fs/reiserfs/namei.c reiserfs_write_unlock(dir->i_sb); dir 994 fs/reiserfs/namei.c static int reiserfs_unlink(struct inode *dir, struct dentry *dentry) dir 1004 fs/reiserfs/namei.c retval = dquot_initialize(dir); dir 1019 fs/reiserfs/namei.c 4 * REISERFS_QUOTA_TRANS_BLOCKS(dir->i_sb); dir 1021 fs/reiserfs/namei.c reiserfs_write_lock(dir->i_sb); dir 1022 fs/reiserfs/namei.c retval = journal_begin(&th, dir->i_sb, jbegin_count); dir 1028 fs/reiserfs/namei.c reiserfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len, dir 1038 fs/reiserfs/namei.c reiserfs_update_inode_transaction(dir); dir 1064 fs/reiserfs/namei.c reiserfs_cut_from_item(&th, &path, &de.de_entry_key, dir, NULL, dir 1073 fs/reiserfs/namei.c dir->i_size -= (de.de_entrylen + DEH_SIZE); dir 1074 fs/reiserfs/namei.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 1075 fs/reiserfs/namei.c reiserfs_update_sd(&th, dir); dir 1083 fs/reiserfs/namei.c reiserfs_write_unlock(dir->i_sb); dir 1093 fs/reiserfs/namei.c reiserfs_write_unlock(dir->i_sb); dir 1197 fs/reiserfs/namei.c static int reiserfs_link(struct dentry *old_dentry, struct inode *dir, dir 1209 fs/reiserfs/namei.c 2 * REISERFS_QUOTA_TRANS_BLOCKS(dir->i_sb); dir 1211 fs/reiserfs/namei.c retval = dquot_initialize(dir); dir 1215 fs/reiserfs/namei.c reiserfs_write_lock(dir->i_sb); dir 1218 fs/reiserfs/namei.c reiserfs_write_unlock(dir->i_sb); dir 1225 fs/reiserfs/namei.c retval = journal_begin(&th, dir->i_sb, jbegin_count); dir 1228 fs/reiserfs/namei.c reiserfs_write_unlock(dir->i_sb); dir 1234 fs/reiserfs/namei.c reiserfs_add_entry(&th, dir, dentry->d_name.name, dir 1238 fs/reiserfs/namei.c reiserfs_update_inode_transaction(dir); dir 1244 fs/reiserfs/namei.c reiserfs_write_unlock(dir->i_sb); dir 1254 fs/reiserfs/namei.c reiserfs_write_unlock(dir->i_sb); dir 3090 fs/reiserfs/reiserfs.h struct inode *dir, umode_t mode, dir 3318 fs/reiserfs/reiserfs.h __le32 reiserfs_choose_packing(struct inode *dir); dir 66 fs/reiserfs/xattr.c static int xattr_create(struct inode *dir, struct dentry *dentry, int mode) dir 68 fs/reiserfs/xattr.c BUG_ON(!inode_is_locked(dir)); dir 69 fs/reiserfs/xattr.c return dir->i_op->create(dir, dentry, mode, true); dir 73 fs/reiserfs/xattr.c static int xattr_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 75 fs/reiserfs/xattr.c BUG_ON(!inode_is_locked(dir)); dir 76 fs/reiserfs/xattr.c return dir->i_op->mkdir(dir, dentry, mode); dir 85 fs/reiserfs/xattr.c static int xattr_unlink(struct inode *dir, struct dentry *dentry) dir 89 fs/reiserfs/xattr.c BUG_ON(!inode_is_locked(dir)); dir 92 fs/reiserfs/xattr.c error = dir->i_op->unlink(dir, dentry); dir 100 fs/reiserfs/xattr.c static int xattr_rmdir(struct inode *dir, struct dentry *dentry) dir 104 fs/reiserfs/xattr.c BUG_ON(!inode_is_locked(dir)); dir 107 fs/reiserfs/xattr.c error = dir->i_op->rmdir(dir, dentry); dir 242 fs/reiserfs/xattr.c struct dentry *dir; dir 252 fs/reiserfs/xattr.c dir = open_xa_dir(inode, XATTR_REPLACE); dir 253 fs/reiserfs/xattr.c if (IS_ERR(dir)) { dir 254 fs/reiserfs/xattr.c err = PTR_ERR(dir); dir 256 fs/reiserfs/xattr.c } else if (d_really_is_negative(dir)) { dir 261 fs/reiserfs/xattr.c inode_lock_nested(d_inode(dir), I_MUTEX_XATTR); dir 263 fs/reiserfs/xattr.c buf.xadir = dir; dir 265 fs/reiserfs/xattr.c err = reiserfs_readdir_inode(d_inode(dir), &buf.ctx); dir 287 fs/reiserfs/xattr.c inode_unlock(d_inode(dir)); dir 309 fs/reiserfs/xattr.c inode_lock_nested(d_inode(dir->d_parent), dir 311 fs/reiserfs/xattr.c err = action(dir, data); dir 315 fs/reiserfs/xattr.c inode_unlock(d_inode(dir->d_parent)); dir 320 fs/reiserfs/xattr.c dput(dir); dir 334 fs/reiserfs/xattr.c struct inode *dir = d_inode(dentry->d_parent); dir 338 fs/reiserfs/xattr.c return xattr_rmdir(dir, dentry); dir 340 fs/reiserfs/xattr.c return xattr_unlink(dir, dentry); dir 433 fs/reiserfs/xattr.c static struct page *reiserfs_get_page(struct inode *dir, size_t n) dir 435 fs/reiserfs/xattr.c struct address_space *mapping = dir->i_mapping; dir 840 fs/reiserfs/xattr.c struct dentry *dir; dir 855 fs/reiserfs/xattr.c dir = open_xa_dir(d_inode(dentry), XATTR_REPLACE); dir 856 fs/reiserfs/xattr.c if (IS_ERR(dir)) { dir 857 fs/reiserfs/xattr.c err = PTR_ERR(dir); dir 863 fs/reiserfs/xattr.c inode_lock_nested(d_inode(dir), I_MUTEX_XATTR); dir 864 fs/reiserfs/xattr.c err = reiserfs_readdir_inode(d_inode(dir), &buf.ctx); dir 865 fs/reiserfs/xattr.c inode_unlock(d_inode(dir)); dir 870 fs/reiserfs/xattr.c dput(dir); dir 35 fs/reiserfs/xattr.h int reiserfs_security_init(struct inode *dir, struct inode *inode, dir 100 fs/reiserfs/xattr.h static inline int reiserfs_security_init(struct inode *dir, dir 301 fs/reiserfs/xattr_acl.c struct inode *dir, struct dentry *dentry, dir 315 fs/reiserfs/xattr_acl.c if (get_inode_sd_version(dir) == STAT_DATA_V1) dir 326 fs/reiserfs/xattr_acl.c err = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); dir 44 fs/reiserfs/xattr_security.c int reiserfs_security_init(struct inode *dir, struct inode *inode, dir 54 fs/reiserfs/xattr_security.c if (IS_PRIVATE(dir)) dir 57 fs/reiserfs/xattr_security.c error = security_old_inode_init_security(inode, dir, qstr, &sec->name, dir 212 fs/romfs/super.c static struct dentry *romfs_lookup(struct inode *dir, struct dentry *dentry, dir 221 fs/romfs/super.c offset = dir->i_ino & ROMFH_MASK; dir 222 fs/romfs/super.c ret = romfs_dev_read(dir->i_sb, offset, &ri, ROMFH_SIZE); dir 228 fs/romfs/super.c maxoff = romfs_maxsize(dir->i_sb); dir 238 fs/romfs/super.c ret = romfs_dev_read(dir->i_sb, offset, &ri, sizeof(ri)); dir 243 fs/romfs/super.c ret = romfs_dev_strcmp(dir->i_sb, offset + ROMFH_SIZE, name, dir 251 fs/romfs/super.c inode = romfs_iget(dir->i_sb, offset); dir 220 fs/squashfs/inode.c struct squashfs_dir_inode *sqsh_ino = &squashfs_ino.dir; dir 126 fs/squashfs/namei.c static struct dentry *squashfs_lookup(struct inode *dir, struct dentry *dentry, dir 132 fs/squashfs/namei.c struct squashfs_sb_info *msblk = dir->i_sb->s_fs_info; dir 135 fs/squashfs/namei.c u64 block = squashfs_i(dir)->start + msblk->directory_table; dir 136 fs/squashfs/namei.c int offset = squashfs_i(dir)->offset; dir 153 fs/squashfs/namei.c length = get_dir_index_using_name(dir->i_sb, &block, &offset, dir 154 fs/squashfs/namei.c squashfs_i(dir)->dir_idx_start, dir 155 fs/squashfs/namei.c squashfs_i(dir)->dir_idx_offset, dir 156 fs/squashfs/namei.c squashfs_i(dir)->dir_idx_cnt, name, len); dir 158 fs/squashfs/namei.c while (length < i_size_read(dir)) { dir 162 fs/squashfs/namei.c err = squashfs_read_metadata(dir->i_sb, &dirh, &block, dir 178 fs/squashfs/namei.c err = squashfs_read_metadata(dir->i_sb, dire, &block, dir 189 fs/squashfs/namei.c err = squashfs_read_metadata(dir->i_sb, dire->name, dir 212 fs/squashfs/namei.c inode = squashfs_iget(dir->i_sb, ino, ino_num); dir 227 fs/squashfs/namei.c squashfs_i(dir)->start + msblk->directory_table, dir 228 fs/squashfs/namei.c squashfs_i(dir)->offset); dir 402 fs/squashfs/squashfs_fs.h struct squashfs_dir_inode dir; dir 172 fs/sysfs/file.c void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr) dir 176 fs/sysfs/file.c if (kn && dir) dir 177 fs/sysfs/file.c kn = kernfs_find_and_get(kn, dir); dir 40 fs/sysv/dir.c struct inode *dir = mapping->host; dir 44 fs/sysv/dir.c if (pos+len > dir->i_size) { dir 45 fs/sysv/dir.c i_size_write(dir, pos+len); dir 46 fs/sysv/dir.c mark_inode_dirty(dir); dir 48 fs/sysv/dir.c if (IS_DIRSYNC(dir)) dir 55 fs/sysv/dir.c static struct page * dir_get_page(struct inode *dir, unsigned long n) dir 57 fs/sysv/dir.c struct address_space *mapping = dir->i_mapping; dir 131 fs/sysv/dir.c struct inode * dir = d_inode(dentry->d_parent); dir 133 fs/sysv/dir.c unsigned long npages = dir_pages(dir); dir 139 fs/sysv/dir.c start = SYSV_I(dir)->i_dir_start_lookup; dir 146 fs/sysv/dir.c page = dir_get_page(dir, n); dir 168 fs/sysv/dir.c SYSV_I(dir)->i_dir_start_lookup = n; dir 175 fs/sysv/dir.c struct inode *dir = d_inode(dentry->d_parent); dir 180 fs/sysv/dir.c unsigned long npages = dir_pages(dir); dir 188 fs/sysv/dir.c page = dir_get_page(dir, n); dir 219 fs/sysv/dir.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 220 fs/sysv/dir.c mark_inode_dirty(dir); dir 248 fs/sysv/dir.c int sysv_make_empty(struct inode *inode, struct inode *dir) dir 271 fs/sysv/dir.c de->inode = cpu_to_fs16(SYSV_SB(inode->i_sb), dir->i_ino); dir 330 fs/sysv/dir.c struct inode *dir = page->mapping->host; dir 341 fs/sysv/dir.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 342 fs/sysv/dir.c mark_inode_dirty(dir); dir 345 fs/sysv/dir.c struct sysv_dir_entry * sysv_dotdot (struct inode *dir, struct page **p) dir 347 fs/sysv/dir.c struct page *page = dir_get_page(dir, 0); dir 136 fs/sysv/ialloc.c struct inode * sysv_new_inode(const struct inode * dir, umode_t mode) dir 138 fs/sysv/ialloc.c struct super_block *sb = dir->i_sb; dir 166 fs/sysv/ialloc.c inode_init_owner(inode, dir, mode); dir 31 fs/sysv/namei.c static struct dentry *sysv_lookup(struct inode * dir, struct dentry * dentry, unsigned int flags) dir 40 fs/sysv/namei.c inode = sysv_iget(dir->i_sb, ino); dir 44 fs/sysv/namei.c static int sysv_mknod(struct inode * dir, struct dentry * dentry, umode_t mode, dev_t rdev) dir 52 fs/sysv/namei.c inode = sysv_new_inode(dir, mode); dir 63 fs/sysv/namei.c static int sysv_create(struct inode * dir, struct dentry * dentry, umode_t mode, bool excl) dir 65 fs/sysv/namei.c return sysv_mknod(dir, dentry, mode, 0); dir 68 fs/sysv/namei.c static int sysv_symlink(struct inode * dir, struct dentry * dentry, dir 75 fs/sysv/namei.c if (l > dir->i_sb->s_blocksize) dir 78 fs/sysv/namei.c inode = sysv_new_inode(dir, S_IFLNK|0777); dir 99 fs/sysv/namei.c static int sysv_link(struct dentry * old_dentry, struct inode * dir, dir 111 fs/sysv/namei.c static int sysv_mkdir(struct inode * dir, struct dentry *dentry, umode_t mode) dir 116 fs/sysv/namei.c inode_inc_link_count(dir); dir 118 fs/sysv/namei.c inode = sysv_new_inode(dir, S_IFDIR|mode); dir 127 fs/sysv/namei.c err = sysv_make_empty(inode, dir); dir 144 fs/sysv/namei.c inode_dec_link_count(dir); dir 148 fs/sysv/namei.c static int sysv_unlink(struct inode * dir, struct dentry * dentry) dir 163 fs/sysv/namei.c inode->i_ctime = dir->i_ctime; dir 169 fs/sysv/namei.c static int sysv_rmdir(struct inode * dir, struct dentry * dentry) dir 175 fs/sysv/namei.c err = sysv_unlink(dir, dentry); dir 179 fs/sysv/namei.c inode_dec_link_count(dir); dir 1103 fs/ubifs/debug.c int dbg_check_dir(struct ubifs_info *c, const struct inode *dir) dir 1114 fs/ubifs/debug.c if (!S_ISDIR(dir->i_mode)) dir 1117 fs/ubifs/debug.c lowest_dent_key(c, &key, dir->i_ino); dir 1140 fs/ubifs/debug.c if (i_size_read(dir) != size) { dir 1142 fs/ubifs/debug.c dir->i_ino, (unsigned long long)i_size_read(dir), dir 1144 fs/ubifs/debug.c ubifs_dump_inode(c, dir); dir 1148 fs/ubifs/debug.c if (dir->i_nlink != nlink) { dir 1150 fs/ubifs/debug.c dir->i_ino, dir->i_nlink, nlink); dir 1151 fs/ubifs/debug.c ubifs_dump_inode(c, dir); dir 280 fs/ubifs/debug.h int dbg_check_dir(struct ubifs_info *c, const struct inode *dir); dir 47 fs/ubifs/dir.c static int inherit_flags(const struct inode *dir, umode_t mode) dir 50 fs/ubifs/dir.c const struct ubifs_inode *ui = ubifs_inode(dir); dir 52 fs/ubifs/dir.c if (!S_ISDIR(dir->i_mode)) dir 76 fs/ubifs/dir.c struct inode *ubifs_new_inode(struct ubifs_info *c, struct inode *dir, dir 84 fs/ubifs/dir.c if (ubifs_crypt_is_encrypted(dir)) { dir 85 fs/ubifs/dir.c err = fscrypt_get_encryption_info(dir); dir 91 fs/ubifs/dir.c if (!fscrypt_has_encryption_key(dir)) dir 110 fs/ubifs/dir.c inode_init_owner(inode, dir, mode); dir 140 fs/ubifs/dir.c ui->flags = inherit_flags(dir, mode); dir 174 fs/ubifs/dir.c err = fscrypt_inherit_context(dir, inode, &encrypted, true); dir 199 fs/ubifs/dir.c static struct dentry *ubifs_lookup(struct inode *dir, struct dentry *dentry, dir 206 fs/ubifs/dir.c struct ubifs_info *c = dir->i_sb->s_fs_info; dir 209 fs/ubifs/dir.c dbg_gen("'%pd' in dir ino %lu", dentry, dir->i_ino); dir 211 fs/ubifs/dir.c err = fscrypt_prepare_lookup(dir, dentry, &nm); dir 233 fs/ubifs/dir.c dent_key_init_hash(c, &key, dir->i_ino, nm.hash); dir 236 fs/ubifs/dir.c dent_key_init(c, &key, dir->i_ino, &nm); dir 253 fs/ubifs/dir.c inode = ubifs_iget(dir->i_sb, le64_to_cpu(dent->inum)); dir 266 fs/ubifs/dir.c if (ubifs_crypt_is_encrypted(dir) && dir 268 fs/ubifs/dir.c !fscrypt_has_permitted_context(dir, inode)) { dir 270 fs/ubifs/dir.c dir->i_ino, inode->i_ino); dir 281 fs/ubifs/dir.c static int ubifs_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 285 fs/ubifs/dir.c struct ubifs_info *c = dir->i_sb->s_fs_info; dir 288 fs/ubifs/dir.c struct ubifs_inode *dir_ui = ubifs_inode(dir); dir 298 fs/ubifs/dir.c dentry, mode, dir->i_ino); dir 304 fs/ubifs/dir.c err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm); dir 310 fs/ubifs/dir.c inode = ubifs_new_inode(c, dir, mode); dir 316 fs/ubifs/dir.c err = ubifs_init_security(dir, inode, &dentry->d_name); dir 321 fs/ubifs/dir.c dir->i_size += sz_change; dir 322 fs/ubifs/dir.c dir_ui->ui_size = dir->i_size; dir 323 fs/ubifs/dir.c dir->i_mtime = dir->i_ctime = inode->i_ctime; dir 324 fs/ubifs/dir.c err = ubifs_jnl_update(c, dir, &nm, inode, 0, 0); dir 336 fs/ubifs/dir.c dir->i_size -= sz_change; dir 337 fs/ubifs/dir.c dir_ui->ui_size = dir->i_size; dir 350 fs/ubifs/dir.c static int do_tmpfile(struct inode *dir, struct dentry *dentry, dir 354 fs/ubifs/dir.c struct ubifs_info *c = dir->i_sb->s_fs_info; dir 357 fs/ubifs/dir.c struct ubifs_inode *ui, *dir_ui = ubifs_inode(dir); dir 367 fs/ubifs/dir.c dentry, mode, dir->i_ino); dir 369 fs/ubifs/dir.c err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm); dir 386 fs/ubifs/dir.c inode = ubifs_new_inode(c, dir, mode); dir 398 fs/ubifs/dir.c err = ubifs_init_security(dir, inode, &dentry->d_name); dir 418 fs/ubifs/dir.c err = ubifs_jnl_update(c, dir, &nm, inode, 1, 0); dir 442 fs/ubifs/dir.c static int ubifs_tmpfile(struct inode *dir, struct dentry *dentry, dir 445 fs/ubifs/dir.c return do_tmpfile(dir, dentry, mode, NULL); dir 502 fs/ubifs/dir.c struct inode *dir = file_inode(file); dir 503 fs/ubifs/dir.c struct ubifs_info *c = dir->i_sb->s_fs_info; dir 504 fs/ubifs/dir.c bool encrypted = ubifs_crypt_is_encrypted(dir); dir 506 fs/ubifs/dir.c dbg_gen("dir ino %lu, f_pos %#llx", dir->i_ino, ctx->pos); dir 516 fs/ubifs/dir.c err = fscrypt_get_encryption_info(dir); dir 520 fs/ubifs/dir.c err = fscrypt_fname_alloc_buffer(dir, UBIFS_MAX_NLEN, &fstr); dir 555 fs/ubifs/dir.c lowest_dent_key(c, &key, dir->i_ino); dir 573 fs/ubifs/dir.c dent_key_init_hash(c, &key, dir->i_ino, ctx->pos); dir 589 fs/ubifs/dir.c ubifs_inode(dir)->creat_sqnum); dir 597 fs/ubifs/dir.c err = fscrypt_fname_disk_to_usr(dir, key_hash_flash(c, dir 654 fs/ubifs/dir.c static int ubifs_dir_release(struct inode *dir, struct file *file) dir 687 fs/ubifs/dir.c static int ubifs_link(struct dentry *old_dentry, struct inode *dir, dir 690 fs/ubifs/dir.c struct ubifs_info *c = dir->i_sb->s_fs_info; dir 693 fs/ubifs/dir.c struct ubifs_inode *dir_ui = ubifs_inode(dir); dir 706 fs/ubifs/dir.c inode->i_nlink, dir->i_ino); dir 707 fs/ubifs/dir.c ubifs_assert(c, inode_is_locked(dir)); dir 710 fs/ubifs/dir.c err = fscrypt_prepare_link(old_dentry, dir, dentry); dir 714 fs/ubifs/dir.c err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm); dir 726 fs/ubifs/dir.c lock_2_inodes(dir, inode); dir 735 fs/ubifs/dir.c dir->i_size += sz_change; dir 736 fs/ubifs/dir.c dir_ui->ui_size = dir->i_size; dir 737 fs/ubifs/dir.c dir->i_mtime = dir->i_ctime = inode->i_ctime; dir 738 fs/ubifs/dir.c err = ubifs_jnl_update(c, dir, &nm, inode, 0, 0); dir 741 fs/ubifs/dir.c unlock_2_inodes(dir, inode); dir 749 fs/ubifs/dir.c dir->i_size -= sz_change; dir 750 fs/ubifs/dir.c dir_ui->ui_size = dir->i_size; dir 754 fs/ubifs/dir.c unlock_2_inodes(dir, inode); dir 762 fs/ubifs/dir.c static int ubifs_unlink(struct inode *dir, struct dentry *dentry) dir 764 fs/ubifs/dir.c struct ubifs_info *c = dir->i_sb->s_fs_info; dir 766 fs/ubifs/dir.c struct ubifs_inode *dir_ui = ubifs_inode(dir); dir 781 fs/ubifs/dir.c inode->i_nlink, dir->i_ino); dir 783 fs/ubifs/dir.c err = fscrypt_setup_filename(dir, &dentry->d_name, 1, &nm); dir 793 fs/ubifs/dir.c ubifs_assert(c, inode_is_locked(dir)); dir 806 fs/ubifs/dir.c lock_2_inodes(dir, inode); dir 807 fs/ubifs/dir.c inode->i_ctime = current_time(dir); dir 809 fs/ubifs/dir.c dir->i_size -= sz_change; dir 810 fs/ubifs/dir.c dir_ui->ui_size = dir->i_size; dir 811 fs/ubifs/dir.c dir->i_mtime = dir->i_ctime = inode->i_ctime; dir 812 fs/ubifs/dir.c err = ubifs_jnl_update(c, dir, &nm, inode, 1, 0); dir 815 fs/ubifs/dir.c unlock_2_inodes(dir, inode); dir 828 fs/ubifs/dir.c dir->i_size += sz_change; dir 829 fs/ubifs/dir.c dir_ui->ui_size = dir->i_size; dir 831 fs/ubifs/dir.c unlock_2_inodes(dir, inode); dir 847 fs/ubifs/dir.c int ubifs_check_dir_empty(struct inode *dir) dir 849 fs/ubifs/dir.c struct ubifs_info *c = dir->i_sb->s_fs_info; dir 855 fs/ubifs/dir.c lowest_dent_key(c, &key, dir->i_ino); dir 868 fs/ubifs/dir.c static int ubifs_rmdir(struct inode *dir, struct dentry *dentry) dir 870 fs/ubifs/dir.c struct ubifs_info *c = dir->i_sb->s_fs_info; dir 873 fs/ubifs/dir.c struct ubifs_inode *dir_ui = ubifs_inode(dir); dir 884 fs/ubifs/dir.c inode->i_ino, dir->i_ino); dir 885 fs/ubifs/dir.c ubifs_assert(c, inode_is_locked(dir)); dir 891 fs/ubifs/dir.c err = fscrypt_setup_filename(dir, &dentry->d_name, 1, &nm); dir 908 fs/ubifs/dir.c lock_2_inodes(dir, inode); dir 909 fs/ubifs/dir.c inode->i_ctime = current_time(dir); dir 911 fs/ubifs/dir.c drop_nlink(dir); dir 912 fs/ubifs/dir.c dir->i_size -= sz_change; dir 913 fs/ubifs/dir.c dir_ui->ui_size = dir->i_size; dir 914 fs/ubifs/dir.c dir->i_mtime = dir->i_ctime = inode->i_ctime; dir 915 fs/ubifs/dir.c err = ubifs_jnl_update(c, dir, &nm, inode, 1, 0); dir 918 fs/ubifs/dir.c unlock_2_inodes(dir, inode); dir 931 fs/ubifs/dir.c dir->i_size += sz_change; dir 932 fs/ubifs/dir.c dir_ui->ui_size = dir->i_size; dir 933 fs/ubifs/dir.c inc_nlink(dir); dir 935 fs/ubifs/dir.c unlock_2_inodes(dir, inode); dir 943 fs/ubifs/dir.c static int ubifs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 946 fs/ubifs/dir.c struct ubifs_inode *dir_ui = ubifs_inode(dir); dir 947 fs/ubifs/dir.c struct ubifs_info *c = dir->i_sb->s_fs_info; dir 958 fs/ubifs/dir.c dentry, mode, dir->i_ino); dir 964 fs/ubifs/dir.c err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm); dir 970 fs/ubifs/dir.c inode = ubifs_new_inode(c, dir, S_IFDIR | mode); dir 976 fs/ubifs/dir.c err = ubifs_init_security(dir, inode, &dentry->d_name); dir 983 fs/ubifs/dir.c inc_nlink(dir); dir 984 fs/ubifs/dir.c dir->i_size += sz_change; dir 985 fs/ubifs/dir.c dir_ui->ui_size = dir->i_size; dir 986 fs/ubifs/dir.c dir->i_mtime = dir->i_ctime = inode->i_ctime; dir 987 fs/ubifs/dir.c err = ubifs_jnl_update(c, dir, &nm, inode, 0, 0); dir 1000 fs/ubifs/dir.c dir->i_size -= sz_change; dir 1001 fs/ubifs/dir.c dir_ui->ui_size = dir->i_size; dir 1002 fs/ubifs/dir.c drop_nlink(dir); dir 1014 fs/ubifs/dir.c static int ubifs_mknod(struct inode *dir, struct dentry *dentry, dir 1019 fs/ubifs/dir.c struct ubifs_inode *dir_ui = ubifs_inode(dir); dir 1020 fs/ubifs/dir.c struct ubifs_info *c = dir->i_sb->s_fs_info; dir 1033 fs/ubifs/dir.c dbg_gen("dent '%pd' in dir ino %lu", dentry, dir->i_ino); dir 1049 fs/ubifs/dir.c err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm); dir 1057 fs/ubifs/dir.c inode = ubifs_new_inode(c, dir, mode); dir 1070 fs/ubifs/dir.c err = ubifs_init_security(dir, inode, &dentry->d_name); dir 1075 fs/ubifs/dir.c dir->i_size += sz_change; dir 1076 fs/ubifs/dir.c dir_ui->ui_size = dir->i_size; dir 1077 fs/ubifs/dir.c dir->i_mtime = dir->i_ctime = inode->i_ctime; dir 1078 fs/ubifs/dir.c err = ubifs_jnl_update(c, dir, &nm, inode, 0, 0); dir 1090 fs/ubifs/dir.c dir->i_size -= sz_change; dir 1091 fs/ubifs/dir.c dir_ui->ui_size = dir->i_size; dir 1103 fs/ubifs/dir.c static int ubifs_symlink(struct inode *dir, struct dentry *dentry, dir 1108 fs/ubifs/dir.c struct ubifs_inode *dir_ui = ubifs_inode(dir); dir 1109 fs/ubifs/dir.c struct ubifs_info *c = dir->i_sb->s_fs_info; dir 1118 fs/ubifs/dir.c symname, dir->i_ino); dir 1120 fs/ubifs/dir.c err = fscrypt_prepare_symlink(dir, symname, len, UBIFS_MAX_INO_DATA, dir 1133 fs/ubifs/dir.c err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm); dir 1139 fs/ubifs/dir.c inode = ubifs_new_inode(c, dir, S_IFLNK | S_IRWXUGO); dir 1170 fs/ubifs/dir.c err = ubifs_init_security(dir, inode, &dentry->d_name); dir 1175 fs/ubifs/dir.c dir->i_size += sz_change; dir 1176 fs/ubifs/dir.c dir_ui->ui_size = dir->i_size; dir 1177 fs/ubifs/dir.c dir->i_mtime = dir->i_ctime = inode->i_ctime; dir 1178 fs/ubifs/dir.c err = ubifs_jnl_update(c, dir, &nm, inode, 0, 0); dir 1189 fs/ubifs/dir.c dir->i_size -= sz_change; dir 1190 fs/ubifs/dir.c dir_ui->ui_size = dir->i_size; dir 1621 fs/ubifs/dir.c static int ubifs_dir_open(struct inode *dir, struct file *file) dir 1623 fs/ubifs/dir.c if (ubifs_crypt_is_encrypted(dir)) dir 1624 fs/ubifs/dir.c return fscrypt_get_encryption_info(dir) ? -EACCES : 0; dir 538 fs/ubifs/journal.c int ubifs_jnl_update(struct ubifs_info *c, const struct inode *dir, dir 543 fs/ubifs/journal.c int aligned_dlen, aligned_ilen, sync = IS_DIRSYNC(dir); dir 546 fs/ubifs/journal.c struct ubifs_inode *host_ui = ubifs_inode(dir); dir 592 fs/ubifs/journal.c dent_key_init_hash(c, &dent_key, dir->i_ino, nm->hash); dir 594 fs/ubifs/journal.c dent_key_init(c, &dent_key, dir->i_ino, nm); dir 597 fs/ubifs/journal.c xent_key_init(c, &dent_key, dir->i_ino, nm); dir 621 fs/ubifs/journal.c pack_inode(c, ino, dir, 1); dir 642 fs/ubifs/journal.c ubifs_wbuf_add_ino_nolock(wbuf, dir->i_ino); dir 674 fs/ubifs/journal.c ino_key_init(c, &ino_key, dir->i_ino); dir 1763 fs/ubifs/ubifs.h int ubifs_jnl_update(struct ubifs_info *c, const struct inode *dir, dir 1995 fs/ubifs/ubifs.h struct inode *ubifs_new_inode(struct ubifs_info *c, struct inode *dir, dir 1999 fs/ubifs/ubifs.h int ubifs_check_dir_empty(struct inode *dir); dir 41 fs/udf/dir.c struct inode *dir = file_inode(file); dir 42 fs/udf/dir.c struct udf_inode_info *iinfo = UDF_I(dir); dir 53 fs/udf/dir.c loff_t size = udf_ext0_offset(dir) + dir->i_size; dir 60 fs/udf/dir.c struct super_block *sb = dir->i_sb; dir 78 fs/udf/dir.c nf_pos = udf_ext0_offset(dir); dir 82 fs/udf/dir.c if (inode_bmap(dir, nf_pos >> sb->s_blocksize_bits, dir 129 fs/udf/dir.c fi = udf_fileident_read(dir, &nf_pos, &fibh, &cfi, &epos, &eloc, dir 21 fs/udf/directory.c struct fileIdentDesc *udf_fileident_read(struct inode *dir, loff_t *nf_pos, dir 32 fs/udf/directory.c struct udf_inode_info *iinfo = UDF_I(dir); dir 41 fs/udf/directory.c dir->i_sb->s_blocksize, dir 54 fs/udf/directory.c if (fibh->eoffset == dir->i_sb->s_blocksize) { dir 56 fs/udf/directory.c unsigned char blocksize_bits = dir->i_sb->s_blocksize_bits; dir 58 fs/udf/directory.c if (udf_next_aext(dir, epos, eloc, elen, 1) != dir 62 fs/udf/directory.c block = udf_get_lb_pblock(dir->i_sb, eloc, *offset); dir 72 fs/udf/directory.c fibh->sbh = fibh->ebh = udf_tread(dir->i_sb, block); dir 82 fs/udf/directory.c block = udf_get_lb_pblock(dir->i_sb, eloc, dir 84 fs/udf/directory.c tmp = udf_tgetblk(dir->i_sb, block); dir 102 fs/udf/directory.c fi = udf_get_fileident(fibh->sbh->b_data, dir->i_sb->s_blocksize, dir 110 fs/udf/directory.c if (fibh->eoffset <= dir->i_sb->s_blocksize) { dir 113 fs/udf/directory.c } else if (fibh->eoffset > dir->i_sb->s_blocksize) { dir 116 fs/udf/directory.c if (udf_next_aext(dir, epos, eloc, elen, 1) != dir 120 fs/udf/directory.c block = udf_get_lb_pblock(dir->i_sb, eloc, *offset); dir 124 fs/udf/directory.c if ((*offset << dir->i_sb->s_blocksize_bits) >= *elen) dir 129 fs/udf/directory.c fibh->soffset -= dir->i_sb->s_blocksize; dir 130 fs/udf/directory.c fibh->eoffset -= dir->i_sb->s_blocksize; dir 132 fs/udf/directory.c fibh->ebh = udf_tread(dir->i_sb, block); dir 153 fs/udf/directory.c if (*nf_pos > dir->i_size) dir 48 fs/udf/ialloc.c struct inode *udf_new_inode(struct inode *dir, umode_t mode) dir 50 fs/udf/ialloc.c struct super_block *sb = dir->i_sb; dir 54 fs/udf/ialloc.c uint32_t start = UDF_I(dir)->i_location.logicalBlockNum; dir 56 fs/udf/ialloc.c struct udf_inode_info *dinfo = UDF_I(dir); dir 85 fs/udf/ialloc.c block = udf_new_block(dir->i_sb, NULL, dir 106 fs/udf/ialloc.c inode_init_owner(inode, dir, mode); dir 160 fs/udf/namei.c static struct fileIdentDesc *udf_find_entry(struct inode *dir, dir 178 fs/udf/namei.c struct udf_inode_info *dinfo = UDF_I(dir); dir 181 fs/udf/namei.c struct super_block *sb = dir->i_sb; dir 183 fs/udf/namei.c size = udf_ext0_offset(dir) + dir->i_size; dir 184 fs/udf/namei.c f_pos = udf_ext0_offset(dir); dir 189 fs/udf/namei.c if (inode_bmap(dir, f_pos >> sb->s_blocksize_bits, &epos, dir 218 fs/udf/namei.c fi = udf_fileident_read(dir, &f_pos, fibh, cfi, &epos, &eloc, dir 296 fs/udf/namei.c static struct dentry *udf_lookup(struct inode *dir, struct dentry *dentry, dir 307 fs/udf/namei.c fi = udf_find_entry(dir, &dentry->d_name, &fibh, &cfi); dir 319 fs/udf/namei.c inode = udf_iget(dir->i_sb, &loc); dir 327 fs/udf/namei.c static struct fileIdentDesc *udf_add_entry(struct inode *dir, dir 332 fs/udf/namei.c struct super_block *sb = dir->i_sb; dir 337 fs/udf/namei.c loff_t size = udf_ext0_offset(dir) + dir->i_size; dir 371 fs/udf/namei.c f_pos = udf_ext0_offset(dir); dir 373 fs/udf/namei.c fibh->soffset = fibh->eoffset = f_pos & (dir->i_sb->s_blocksize - 1); dir 374 fs/udf/namei.c dinfo = UDF_I(dir); dir 376 fs/udf/namei.c if (inode_bmap(dir, f_pos >> dir->i_sb->s_blocksize_bits, &epos, dir 378 fs/udf/namei.c block = udf_get_lb_pblock(dir->i_sb, dir 383 fs/udf/namei.c block = udf_get_lb_pblock(dir->i_sb, &eloc, offset); dir 384 fs/udf/namei.c if ((++offset << dir->i_sb->s_blocksize_bits) < elen) { dir 392 fs/udf/namei.c fibh->sbh = fibh->ebh = udf_tread(dir->i_sb, block); dir 402 fs/udf/namei.c fi = udf_fileident_read(dir, &f_pos, fibh, cfi, &epos, &eloc, dir 417 fs/udf/namei.c if (!udf_write_fi(dir, cfi, fi, fibh, NULL, dir 435 fs/udf/namei.c fibh->soffset -= udf_ext0_offset(dir); dir 436 fs/udf/namei.c fibh->eoffset -= udf_ext0_offset(dir); dir 437 fs/udf/namei.c f_pos -= udf_ext0_offset(dir); dir 442 fs/udf/namei.c udf_expand_dir_adinicb(dir, &block, err); dir 446 fs/udf/namei.c epos.offset = udf_file_entry_alloc_offset(dir); dir 448 fs/udf/namei.c udf_current_aext(dir, &epos, &eloc, &elen, 1); dir 465 fs/udf/namei.c udf_ext0_offset(dir) + dir 470 fs/udf/namei.c dir->i_sb->s_blocksize_bits); dir 481 fs/udf/namei.c udf_write_aext(dir, &epos, &eloc, elen, 1); dir 493 fs/udf/namei.c dir->i_sb->s_blocksize_bits); dir 494 fs/udf/namei.c fibh->ebh = udf_bread(dir, dir 495 fs/udf/namei.c f_pos >> dir->i_sb->s_blocksize_bits, 1, err); dir 502 fs/udf/namei.c epos.offset = udf_file_entry_alloc_offset(dir); dir 506 fs/udf/namei.c while (udf_next_aext(dir, &epos, &eloc, &elen, 1) == dir 510 fs/udf/namei.c dir->i_sb->s_blocksize_bits); dir 531 fs/udf/namei.c if (!udf_write_fi(dir, cfi, fi, fibh, NULL, name)) { dir 532 fs/udf/namei.c dir->i_size += nfidlen; dir 537 fs/udf/namei.c while (udf_next_aext(dir, &epos, &eloc, &elen, 1) == dir 540 fs/udf/namei.c elen -= dinfo->i_lenExtents - dir->i_size; dir 545 fs/udf/namei.c udf_write_aext(dir, &epos, &eloc, elen, 1); dir 546 fs/udf/namei.c dinfo->i_lenExtents = dir->i_size; dir 549 fs/udf/namei.c mark_inode_dirty(dir); dir 582 fs/udf/namei.c struct inode *dir = d_inode(dentry->d_parent); dir 587 fs/udf/namei.c fi = udf_add_entry(dir, dentry, &fibh, &cfi, &err); dir 597 fs/udf/namei.c udf_write_fi(dir, &cfi, fi, &fibh, NULL, NULL); dir 598 fs/udf/namei.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 599 fs/udf/namei.c mark_inode_dirty(dir); dir 608 fs/udf/namei.c static int udf_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 611 fs/udf/namei.c struct inode *inode = udf_new_inode(dir, mode); dir 627 fs/udf/namei.c static int udf_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) dir 629 fs/udf/namei.c struct inode *inode = udf_new_inode(dir, mode); dir 646 fs/udf/namei.c static int udf_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dir 654 fs/udf/namei.c inode = udf_new_inode(dir, mode); dir 662 fs/udf/namei.c static int udf_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 668 fs/udf/namei.c struct udf_inode_info *dinfo = UDF_I(dir); dir 671 fs/udf/namei.c inode = udf_new_inode(dir, S_IFDIR | mode); dir 695 fs/udf/namei.c fi = udf_add_entry(dir, dentry, &fibh, &cfi, &err); dir 707 fs/udf/namei.c udf_write_fi(dir, &cfi, fi, &fibh, NULL, NULL); dir 708 fs/udf/namei.c inc_nlink(dir); dir 709 fs/udf/namei.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 710 fs/udf/namei.c mark_inode_dirty(dir); dir 721 fs/udf/namei.c static int empty_dir(struct inode *dir) dir 726 fs/udf/namei.c loff_t size = udf_ext0_offset(dir) + dir->i_size; dir 732 fs/udf/namei.c struct udf_inode_info *dinfo = UDF_I(dir); dir 734 fs/udf/namei.c f_pos = udf_ext0_offset(dir); dir 735 fs/udf/namei.c fibh.soffset = fibh.eoffset = f_pos & (dir->i_sb->s_blocksize - 1); dir 739 fs/udf/namei.c else if (inode_bmap(dir, f_pos >> dir->i_sb->s_blocksize_bits, dir 742 fs/udf/namei.c block = udf_get_lb_pblock(dir->i_sb, &eloc, offset); dir 743 fs/udf/namei.c if ((++offset << dir->i_sb->s_blocksize_bits) < elen) { dir 751 fs/udf/namei.c fibh.sbh = fibh.ebh = udf_tread(dir->i_sb, block); dir 762 fs/udf/namei.c fi = udf_fileident_read(dir, &f_pos, &fibh, &cfi, &epos, &eloc, dir 790 fs/udf/namei.c static int udf_rmdir(struct inode *dir, struct dentry *dentry) dir 799 fs/udf/namei.c fi = udf_find_entry(dir, &dentry->d_name, &fibh, &cfi); dir 808 fs/udf/namei.c if (udf_get_lb_pblock(dir->i_sb, &tloc, 0) != inode->i_ino) dir 813 fs/udf/namei.c retval = udf_delete_entry(dir, fi, &fibh, &cfi); dir 821 fs/udf/namei.c inode_dec_link_count(dir); dir 822 fs/udf/namei.c inode->i_ctime = dir->i_ctime = dir->i_mtime = dir 824 fs/udf/namei.c mark_inode_dirty(dir); dir 835 fs/udf/namei.c static int udf_unlink(struct inode *dir, struct dentry *dentry) dir 845 fs/udf/namei.c fi = udf_find_entry(dir, &dentry->d_name, &fibh, &cfi); dir 855 fs/udf/namei.c if (udf_get_lb_pblock(dir->i_sb, &tloc, 0) != inode->i_ino) dir 863 fs/udf/namei.c retval = udf_delete_entry(dir, fi, &fibh, &cfi); dir 866 fs/udf/namei.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 867 fs/udf/namei.c mark_inode_dirty(dir); dir 869 fs/udf/namei.c inode->i_ctime = dir->i_ctime; dir 881 fs/udf/namei.c static int udf_symlink(struct inode *dir, struct dentry *dentry, dir 884 fs/udf/namei.c struct inode *inode = udf_new_inode(dir, S_IFLNK | 0777); dir 895 fs/udf/namei.c struct super_block *sb = dir->i_sb; dir 1030 fs/udf/namei.c static int udf_link(struct dentry *old_dentry, struct inode *dir, dir 1038 fs/udf/namei.c fi = udf_add_entry(dir, dentry, &fibh, &cfi, &err); dir 1048 fs/udf/namei.c udf_write_fi(dir, &cfi, fi, &fibh, NULL, NULL); dir 1049 fs/udf/namei.c if (UDF_I(dir)->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB) dir 1050 fs/udf/namei.c mark_inode_dirty(dir); dir 1058 fs/udf/namei.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 1059 fs/udf/namei.c mark_inode_dirty(dir); dir 48 fs/ufs/dir.c struct inode *dir = mapping->host; dir 51 fs/ufs/dir.c inode_inc_iversion(dir); dir 53 fs/ufs/dir.c if (pos+len > dir->i_size) { dir 54 fs/ufs/dir.c i_size_write(dir, pos+len); dir 55 fs/ufs/dir.c mark_inode_dirty(dir); dir 57 fs/ufs/dir.c if (IS_DIRSYNC(dir)) dir 70 fs/ufs/dir.c ino_t ufs_inode_by_name(struct inode *dir, const struct qstr *qstr) dir 76 fs/ufs/dir.c de = ufs_find_entry(dir, qstr, &page); dir 78 fs/ufs/dir.c res = fs32_to_cpu(dir->i_sb, de->d_ino); dir 86 fs/ufs/dir.c void ufs_set_link(struct inode *dir, struct ufs_dir_entry *de, dir 92 fs/ufs/dir.c unsigned len = fs16_to_cpu(dir->i_sb, de->d_reclen); dir 99 fs/ufs/dir.c de->d_ino = cpu_to_fs32(dir->i_sb, inode->i_ino); dir 100 fs/ufs/dir.c ufs_set_de_type(dir->i_sb, de, inode->i_mode); dir 105 fs/ufs/dir.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 106 fs/ufs/dir.c mark_inode_dirty(dir); dir 112 fs/ufs/dir.c struct inode *dir = page->mapping->host; dir 113 fs/ufs/dir.c struct super_block *sb = dir->i_sb; dir 121 fs/ufs/dir.c if ((dir->i_size >> PAGE_SHIFT) == page->index) { dir 122 fs/ufs/dir.c limit = dir->i_size & ~PAGE_MASK; dir 155 fs/ufs/dir.c dir->i_ino dir 175 fs/ufs/dir.c dir->i_ino, error, (page->index<<PAGE_SHIFT)+offs, dir 183 fs/ufs/dir.c dir->i_ino, (page->index<<PAGE_SHIFT)+offs); dir 189 fs/ufs/dir.c static struct page *ufs_get_page(struct inode *dir, unsigned long n) dir 191 fs/ufs/dir.c struct address_space *mapping = dir->i_mapping; dir 229 fs/ufs/dir.c struct ufs_dir_entry *ufs_dotdot(struct inode *dir, struct page **p) dir 231 fs/ufs/dir.c struct page *page = ufs_get_page(dir, 0); dir 235 fs/ufs/dir.c de = ufs_next_entry(dir->i_sb, dir 250 fs/ufs/dir.c struct ufs_dir_entry *ufs_find_entry(struct inode *dir, const struct qstr *qstr, dir 253 fs/ufs/dir.c struct super_block *sb = dir->i_sb; dir 258 fs/ufs/dir.c unsigned long npages = dir_pages(dir); dir 260 fs/ufs/dir.c struct ufs_inode_info *ui = UFS_I(dir); dir 263 fs/ufs/dir.c UFSD("ENTER, dir_ino %lu, name %s, namlen %u\n", dir->i_ino, name, namelen); dir 278 fs/ufs/dir.c page = ufs_get_page(dir, n); dir 282 fs/ufs/dir.c kaddr += ufs_last_byte(dir, n) - reclen; dir 307 fs/ufs/dir.c struct inode *dir = d_inode(dentry->d_parent); dir 310 fs/ufs/dir.c struct super_block *sb = dir->i_sb; dir 316 fs/ufs/dir.c unsigned long npages = dir_pages(dir); dir 332 fs/ufs/dir.c page = ufs_get_page(dir, n); dir 338 fs/ufs/dir.c dir_end = kaddr + ufs_last_byte(dir, n); dir 351 fs/ufs/dir.c ufs_error(dir->i_sb, __func__, dir 394 fs/ufs/dir.c dir->i_mtime = dir->i_ctime = current_time(dir); dir 396 fs/ufs/dir.c mark_inode_dirty(dir); dir 495 fs/ufs/dir.c int ufs_delete_entry(struct inode *inode, struct ufs_dir_entry *dir, dir 500 fs/ufs/dir.c unsigned from = ((char*)dir - kaddr) & ~(UFS_SB(sb)->s_uspi->s_dirblksize - 1); dir 501 fs/ufs/dir.c unsigned to = ((char*)dir - kaddr) + fs16_to_cpu(sb, dir->d_reclen); dir 514 fs/ufs/dir.c while ((char*)de < (char*)dir) { dir 533 fs/ufs/dir.c dir->d_ino = 0; dir 543 fs/ufs/dir.c int ufs_make_empty(struct inode * inode, struct inode *dir) dir 545 fs/ufs/dir.c struct super_block * sb = dir->i_sb; dir 575 fs/ufs/dir.c de->d_ino = cpu_to_fs32(sb, dir->i_ino); dir 576 fs/ufs/dir.c ufs_set_de_type(sb, de, dir->i_mode); dir 172 fs/ufs/ialloc.c struct inode *ufs_new_inode(struct inode *dir, umode_t mode) dir 188 fs/ufs/ialloc.c if (!dir || !dir->i_nlink) dir 190 fs/ufs/ialloc.c sb = dir->i_sb; dir 203 fs/ufs/ialloc.c i = ufs_inotocg(dir->i_ino); dir 225 fs/ufs/ialloc.c i = ufs_inotocg(dir->i_ino) + 1; dir 292 fs/ufs/ialloc.c inode_init_owner(inode, dir, mode); dir 296 fs/ufs/ialloc.c ufsi->i_flags = UFS_I(dir)->i_flags; dir 50 fs/ufs/namei.c static struct dentry *ufs_lookup(struct inode * dir, struct dentry *dentry, unsigned int flags) dir 58 fs/ufs/namei.c ino = ufs_inode_by_name(dir, &dentry->d_name); dir 60 fs/ufs/namei.c inode = ufs_iget(dir->i_sb, ino); dir 72 fs/ufs/namei.c static int ufs_create (struct inode * dir, struct dentry * dentry, umode_t mode, dir 77 fs/ufs/namei.c inode = ufs_new_inode(dir, mode); dir 88 fs/ufs/namei.c static int ufs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) dir 96 fs/ufs/namei.c inode = ufs_new_inode(dir, mode); dir 107 fs/ufs/namei.c static int ufs_symlink (struct inode * dir, struct dentry * dentry, dir 110 fs/ufs/namei.c struct super_block * sb = dir->i_sb; dir 118 fs/ufs/namei.c inode = ufs_new_inode(dir, S_IFLNK | S_IRWXUGO); dir 148 fs/ufs/namei.c static int ufs_link (struct dentry * old_dentry, struct inode * dir, dir 167 fs/ufs/namei.c static int ufs_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) dir 172 fs/ufs/namei.c inode_inc_link_count(dir); dir 174 fs/ufs/namei.c inode = ufs_new_inode(dir, S_IFDIR|mode); dir 185 fs/ufs/namei.c err = ufs_make_empty(inode, dir); dir 201 fs/ufs/namei.c inode_dec_link_count(dir); dir 205 fs/ufs/namei.c static int ufs_unlink(struct inode *dir, struct dentry *dentry) dir 212 fs/ufs/namei.c de = ufs_find_entry(dir, &dentry->d_name, &page); dir 216 fs/ufs/namei.c err = ufs_delete_entry(dir, de, page); dir 220 fs/ufs/namei.c inode->i_ctime = dir->i_ctime; dir 227 fs/ufs/namei.c static int ufs_rmdir (struct inode * dir, struct dentry *dentry) dir 233 fs/ufs/namei.c err = ufs_unlink(dir, dentry); dir 237 fs/ufs/namei.c inode_dec_link_count(dir); dir 109 fs/ufs/ufs.h extern void ufs_set_link(struct inode *dir, struct ufs_dir_entry *de, dir 1000 fs/xfs/libxfs/xfs_alloc.c int dir) /* 0 = search right, 1 = search left */ dir 1026 fs/xfs/libxfs/xfs_alloc.c if (!dir) { dir 1058 fs/xfs/libxfs/xfs_alloc.c if (!dir) dir 1387 fs/xfs/libxfs/xfs_btree.c int dir, dir 1393 fs/xfs/libxfs/xfs_btree.c ASSERT(dir == 1 || dir == -1); dir 1395 fs/xfs/libxfs/xfs_btree.c dst_key = (char *)key + (dir * cur->bc_ops->key_len); dir 1406 fs/xfs/libxfs/xfs_btree.c int dir, dir 1412 fs/xfs/libxfs/xfs_btree.c ASSERT(dir == 1 || dir == -1); dir 1414 fs/xfs/libxfs/xfs_btree.c dst_rec = (char *)rec + (dir * cur->bc_ops->rec_len); dir 1425 fs/xfs/libxfs/xfs_btree.c int dir, dir 1431 fs/xfs/libxfs/xfs_btree.c ASSERT(dir == 1 || dir == -1); dir 1433 fs/xfs/libxfs/xfs_btree.c dst_ptr = (char *)ptr + (dir * xfs_btree_ptr_len(cur)); dir 1856 fs/xfs/libxfs/xfs_btree.c xfs_lookup_t dir, /* <=, ==, or >= */ dir 1917 fs/xfs/libxfs/xfs_btree.c cur->bc_ptrs[0] = dir != XFS_LOOKUP_LE; dir 1974 fs/xfs/libxfs/xfs_btree.c if (dir != XFS_LOOKUP_LE && diff < 0) { dir 1981 fs/xfs/libxfs/xfs_btree.c if (dir == XFS_LOOKUP_GE && dir 1994 fs/xfs/libxfs/xfs_btree.c } else if (dir == XFS_LOOKUP_LE && diff > 0) dir 2001 fs/xfs/libxfs/xfs_btree.c else if (dir != XFS_LOOKUP_EQ || diff == 0) dir 38 fs/xfs/libxfs/xfs_ialloc.c xfs_lookup_t dir, /* <=, >=, == */ dir 46 fs/xfs/libxfs/xfs_ialloc.c return xfs_btree_lookup(cur, dir, stat); dir 121 fs/xfs/libxfs/xfs_ialloc.h xfs_lookup_t dir, int *stat); dir 276 fs/xfs/xfs_filestream.c struct inode *inode = VFS_I(ip), *dir = NULL; dir 287 fs/xfs/xfs_filestream.c dir = igrab(d_inode(parent)); dir 293 fs/xfs/xfs_filestream.c return dir ? XFS_I(dir) : NULL; dir 70 fs/xfs/xfs_iops.c struct inode *dir, dir 73 fs/xfs/xfs_iops.c return security_inode_init_security(inode, dir, qstr, dir 105 fs/xfs/xfs_iops.c struct inode *dir, dir 118 fs/xfs/xfs_iops.c xfs_remove(XFS_I(dir), &teardown, XFS_I(inode)); dir 123 fs/xfs/xfs_iops.c struct inode *dir, dir 146 fs/xfs/xfs_iops.c error = posix_acl_create(dir, &mode, &default_acl, &acl); dir 156 fs/xfs/xfs_iops.c error = xfs_create(XFS_I(dir), &name, mode, rdev, &ip); dir 158 fs/xfs/xfs_iops.c error = xfs_create_tmpfile(XFS_I(dir), mode, &ip); dir 165 fs/xfs/xfs_iops.c error = xfs_init_security(inode, dir, &dentry->d_name); dir 210 fs/xfs/xfs_iops.c xfs_cleanup_inode(dir, inode, dentry); dir 217 fs/xfs/xfs_iops.c struct inode *dir, dir 222 fs/xfs/xfs_iops.c return xfs_generic_create(dir, dentry, mode, rdev, false); dir 227 fs/xfs/xfs_iops.c struct inode *dir, dir 232 fs/xfs/xfs_iops.c return xfs_vn_mknod(dir, dentry, mode, 0); dir 237 fs/xfs/xfs_iops.c struct inode *dir, dir 241 fs/xfs/xfs_iops.c return xfs_vn_mknod(dir, dentry, mode|S_IFDIR, 0); dir 246 fs/xfs/xfs_iops.c struct inode *dir, dir 259 fs/xfs/xfs_iops.c error = xfs_lookup(XFS_I(dir), &name, &cip, NULL); dir 271 fs/xfs/xfs_iops.c struct inode *dir, dir 285 fs/xfs/xfs_iops.c error = xfs_lookup(XFS_I(dir), &xname, &ip, &ci_name); dir 312 fs/xfs/xfs_iops.c struct inode *dir, dir 323 fs/xfs/xfs_iops.c error = xfs_link(XFS_I(dir), XFS_I(inode), &name); dir 334 fs/xfs/xfs_iops.c struct inode *dir, dir 342 fs/xfs/xfs_iops.c error = xfs_remove(XFS_I(dir), &name, XFS_I(d_inode(dentry))); dir 351 fs/xfs/xfs_iops.c if (xfs_sb_version_hasasciici(&XFS_M(dir->i_sb)->m_sb)) dir 358 fs/xfs/xfs_iops.c struct inode *dir, dir 374 fs/xfs/xfs_iops.c error = xfs_symlink(XFS_I(dir), &name, symname, mode, &cip); dir 380 fs/xfs/xfs_iops.c error = xfs_init_security(inode, dir, &dentry->d_name); dir 392 fs/xfs/xfs_iops.c xfs_cleanup_inode(dir, inode, dentry); dir 1126 fs/xfs/xfs_iops.c struct inode *dir, dir 1130 fs/xfs/xfs_iops.c return xfs_generic_create(dir, dentry, mode, 0, true); dir 2641 fs/xfs/xfs_trace.h xfs_agblock_t agbno, xfs_lookup_t dir), dir 2642 fs/xfs/xfs_trace.h TP_ARGS(mp, agno, agbno, dir), dir 2647 fs/xfs/xfs_trace.h __field(xfs_lookup_t, dir) dir 2653 fs/xfs/xfs_trace.h __entry->dir = dir; dir 2659 fs/xfs/xfs_trace.h __print_symbolic(__entry->dir, XFS_AG_BTREE_CMP_FORMAT_STR), dir 2660 fs/xfs/xfs_trace.h __entry->dir) dir 2666 fs/xfs/xfs_trace.h xfs_agblock_t agbno, xfs_lookup_t dir), \ dir 2667 fs/xfs/xfs_trace.h TP_ARGS(mp, agno, agbno, dir)) dir 212 include/acpi/acpi_bus.h #define acpi_device_dir(d) ((d)->dir.entry) dir 365 include/acpi/acpi_bus.h struct acpi_device_dir dir; dir 83 include/drm/drm_prime.h enum dma_data_direction dir); dir 86 include/drm/drm_prime.h enum dma_data_direction dir); dir 68 include/dt-bindings/pinctrl/omap.h #define AM33XX_PADCONF(pa, dir, mux) OMAP_IOPAD_OFFSET((pa), 0x0800) ((dir) | (mux)) dir 680 include/linux/blkdev.h #define dma_map_bvec(dev, bv, dir, attrs) \ dir 682 include/linux/blkdev.h (dir), (attrs)) dir 25 include/linux/blktrace_api.h struct dentry *dir; dir 43 include/linux/c2port.h void (*c2d_dir)(struct c2port_device *dev, int dir); dir 60 include/linux/console.h unsigned int bottom, enum con_scroll dir, dir 345 include/linux/dma-buf.h enum dma_data_direction dir; dir 413 include/linux/dma-buf.h enum dma_data_direction dir); dir 415 include/linux/dma-buf.h enum dma_data_direction dir); dir 37 include/linux/dma-debug.h int nelems, int dir); dir 106 include/linux/dma-debug.h int nelems, int dir) dir 95 include/linux/dma-mapping.h enum dma_data_direction dir, dir 98 include/linux/dma-mapping.h size_t size, enum dma_data_direction dir, dir 105 include/linux/dma-mapping.h int nents, enum dma_data_direction dir, dir 109 include/linux/dma-mapping.h enum dma_data_direction dir, dir 112 include/linux/dma-mapping.h size_t size, enum dma_data_direction dir, dir 115 include/linux/dma-mapping.h size_t size, enum dma_data_direction dir, dir 119 include/linux/dma-mapping.h enum dma_data_direction dir); dir 122 include/linux/dma-mapping.h enum dma_data_direction dir); dir 125 include/linux/dma-mapping.h enum dma_data_direction dir); dir 128 include/linux/dma-mapping.h enum dma_data_direction dir); dir 204 include/linux/dma-mapping.h unsigned long offset, size_t size, enum dma_data_direction dir, dir 207 include/linux/dma-mapping.h enum dma_data_direction dir, unsigned long attrs); dir 209 include/linux/dma-mapping.h size_t size, enum dma_data_direction dir, unsigned long attrs); dir 214 include/linux/dma-mapping.h dma_addr_t addr, size_t size, enum dma_data_direction dir); dir 216 include/linux/dma-mapping.h struct scatterlist *sgl, int nents, enum dma_data_direction dir); dir 219 include/linux/dma-mapping.h dma_addr_t addr, size_t size, enum dma_data_direction dir) dir 223 include/linux/dma-mapping.h struct scatterlist *sgl, int nents, enum dma_data_direction dir) dir 232 include/linux/dma-mapping.h size_t size, enum dma_data_direction dir, unsigned long attrs); dir 234 include/linux/dma-mapping.h int nents, enum dma_data_direction dir, unsigned long attrs); dir 236 include/linux/dma-mapping.h dma_addr_t addr, size_t size, enum dma_data_direction dir); dir 238 include/linux/dma-mapping.h struct scatterlist *sgl, int nents, enum dma_data_direction dir); dir 241 include/linux/dma-mapping.h size_t size, enum dma_data_direction dir, unsigned long attrs) dir 245 include/linux/dma-mapping.h struct scatterlist *sgl, int nents, enum dma_data_direction dir, dir 250 include/linux/dma-mapping.h dma_addr_t addr, size_t size, enum dma_data_direction dir) dir 254 include/linux/dma-mapping.h struct scatterlist *sgl, int nents, enum dma_data_direction dir) dir 279 include/linux/dma-mapping.h enum dma_data_direction dir, unsigned long attrs) dir 284 include/linux/dma-mapping.h BUG_ON(!valid_dma_direction(dir)); dir 286 include/linux/dma-mapping.h addr = dma_direct_map_page(dev, page, offset, size, dir, attrs); dir 288 include/linux/dma-mapping.h addr = ops->map_page(dev, page, offset, size, dir, attrs); dir 289 include/linux/dma-mapping.h debug_dma_map_page(dev, page, offset, size, dir, addr); dir 295 include/linux/dma-mapping.h size_t size, enum dma_data_direction dir, unsigned long attrs) dir 299 include/linux/dma-mapping.h BUG_ON(!valid_dma_direction(dir)); dir 301 include/linux/dma-mapping.h dma_direct_unmap_page(dev, addr, size, dir, attrs); dir 303 include/linux/dma-mapping.h ops->unmap_page(dev, addr, size, dir, attrs); dir 304 include/linux/dma-mapping.h debug_dma_unmap_page(dev, addr, size, dir); dir 312 include/linux/dma-mapping.h int nents, enum dma_data_direction dir, dir 318 include/linux/dma-mapping.h BUG_ON(!valid_dma_direction(dir)); dir 320 include/linux/dma-mapping.h ents = dma_direct_map_sg(dev, sg, nents, dir, attrs); dir 322 include/linux/dma-mapping.h ents = ops->map_sg(dev, sg, nents, dir, attrs); dir 324 include/linux/dma-mapping.h debug_dma_map_sg(dev, sg, nents, ents, dir); dir 330 include/linux/dma-mapping.h int nents, enum dma_data_direction dir, dir 335 include/linux/dma-mapping.h BUG_ON(!valid_dma_direction(dir)); dir 336 include/linux/dma-mapping.h debug_dma_unmap_sg(dev, sg, nents, dir); dir 338 include/linux/dma-mapping.h dma_direct_unmap_sg(dev, sg, nents, dir, attrs); dir 340 include/linux/dma-mapping.h ops->unmap_sg(dev, sg, nents, dir, attrs); dir 346 include/linux/dma-mapping.h enum dma_data_direction dir, dir 352 include/linux/dma-mapping.h BUG_ON(!valid_dma_direction(dir)); dir 359 include/linux/dma-mapping.h addr = dma_direct_map_resource(dev, phys_addr, size, dir, attrs); dir 361 include/linux/dma-mapping.h addr = ops->map_resource(dev, phys_addr, size, dir, attrs); dir 363 include/linux/dma-mapping.h debug_dma_map_resource(dev, phys_addr, size, dir, addr); dir 368 include/linux/dma-mapping.h size_t size, enum dma_data_direction dir, dir 373 include/linux/dma-mapping.h BUG_ON(!valid_dma_direction(dir)); dir 375 include/linux/dma-mapping.h ops->unmap_resource(dev, addr, size, dir, attrs); dir 376 include/linux/dma-mapping.h debug_dma_unmap_resource(dev, addr, size, dir); dir 381 include/linux/dma-mapping.h enum dma_data_direction dir) dir 385 include/linux/dma-mapping.h BUG_ON(!valid_dma_direction(dir)); dir 387 include/linux/dma-mapping.h dma_direct_sync_single_for_cpu(dev, addr, size, dir); dir 389 include/linux/dma-mapping.h ops->sync_single_for_cpu(dev, addr, size, dir); dir 390 include/linux/dma-mapping.h debug_dma_sync_single_for_cpu(dev, addr, size, dir); dir 395 include/linux/dma-mapping.h enum dma_data_direction dir) dir 399 include/linux/dma-mapping.h BUG_ON(!valid_dma_direction(dir)); dir 401 include/linux/dma-mapping.h dma_direct_sync_single_for_device(dev, addr, size, dir); dir 403 include/linux/dma-mapping.h ops->sync_single_for_device(dev, addr, size, dir); dir 404 include/linux/dma-mapping.h debug_dma_sync_single_for_device(dev, addr, size, dir); dir 409 include/linux/dma-mapping.h int nelems, enum dma_data_direction dir) dir 413 include/linux/dma-mapping.h BUG_ON(!valid_dma_direction(dir)); dir 415 include/linux/dma-mapping.h dma_direct_sync_sg_for_cpu(dev, sg, nelems, dir); dir 417 include/linux/dma-mapping.h ops->sync_sg_for_cpu(dev, sg, nelems, dir); dir 418 include/linux/dma-mapping.h debug_dma_sync_sg_for_cpu(dev, sg, nelems, dir); dir 423 include/linux/dma-mapping.h int nelems, enum dma_data_direction dir) dir 427 include/linux/dma-mapping.h BUG_ON(!valid_dma_direction(dir)); dir 429 include/linux/dma-mapping.h dma_direct_sync_sg_for_device(dev, sg, nelems, dir); dir 431 include/linux/dma-mapping.h ops->sync_sg_for_device(dev, sg, nelems, dir); dir 432 include/linux/dma-mapping.h debug_dma_sync_sg_for_device(dev, sg, nelems, dir); dir 454 include/linux/dma-mapping.h enum dma_data_direction dir); dir 471 include/linux/dma-mapping.h enum dma_data_direction dir, unsigned long attrs) dir 476 include/linux/dma-mapping.h size_t size, enum dma_data_direction dir, unsigned long attrs) dir 480 include/linux/dma-mapping.h int nents, enum dma_data_direction dir, unsigned long attrs) dir 485 include/linux/dma-mapping.h struct scatterlist *sg, int nents, enum dma_data_direction dir, dir 490 include/linux/dma-mapping.h phys_addr_t phys_addr, size_t size, enum dma_data_direction dir, dir 496 include/linux/dma-mapping.h size_t size, enum dma_data_direction dir, unsigned long attrs) dir 500 include/linux/dma-mapping.h size_t size, enum dma_data_direction dir) dir 504 include/linux/dma-mapping.h dma_addr_t addr, size_t size, enum dma_data_direction dir) dir 508 include/linux/dma-mapping.h struct scatterlist *sg, int nelems, enum dma_data_direction dir) dir 512 include/linux/dma-mapping.h struct scatterlist *sg, int nelems, enum dma_data_direction dir) dir 538 include/linux/dma-mapping.h enum dma_data_direction dir) dir 584 include/linux/dma-mapping.h size_t size, enum dma_data_direction dir, unsigned long attrs) dir 592 include/linux/dma-mapping.h size, dir, attrs); dir 596 include/linux/dma-mapping.h size_t size, enum dma_data_direction dir, unsigned long attrs) dir 598 include/linux/dma-mapping.h return dma_unmap_page_attrs(dev, addr, size, dir, attrs); dir 603 include/linux/dma-mapping.h enum dma_data_direction dir) dir 605 include/linux/dma-mapping.h return dma_sync_single_for_cpu(dev, addr + offset, size, dir); dir 610 include/linux/dma-mapping.h enum dma_data_direction dir) dir 612 include/linux/dma-mapping.h return dma_sync_single_for_device(dev, addr + offset, size, dir); dir 79 include/linux/dma-noncoherent.h size_t size, enum dma_data_direction dir); dir 82 include/linux/dma-noncoherent.h phys_addr_t paddr, size_t size, enum dma_data_direction dir) dir 89 include/linux/dma-noncoherent.h size_t size, enum dma_data_direction dir); dir 92 include/linux/dma-noncoherent.h phys_addr_t paddr, size_t size, enum dma_data_direction dir) dir 18 include/linux/dma/mxs-dma.h enum dma_transfer_direction dir, unsigned long flags) dir 21 include/linux/dma/mxs-dma.h dir, flags); dir 149 include/linux/dmaengine.h enum dma_transfer_direction dir; dir 823 include/linux/dmaengine.h enum dma_transfer_direction dir, unsigned long flags) dir 834 include/linux/dmaengine.h dir, flags, NULL); dir 839 include/linux/dmaengine.h enum dma_transfer_direction dir, unsigned long flags) dir 845 include/linux/dmaengine.h dir, flags, NULL); dir 852 include/linux/dmaengine.h enum dma_transfer_direction dir, unsigned long flags, dir 859 include/linux/dmaengine.h dir, flags, rio_ext); dir 865 include/linux/dmaengine.h size_t period_len, enum dma_transfer_direction dir, dir 872 include/linux/dmaengine.h period_len, dir, flags); dir 1741 include/linux/fs.h extern void inode_init_owner(struct inode *inode, const struct inode *dir, dir 2879 include/linux/fs.h extern int __check_sticky(struct inode *dir, struct inode *inode); dir 3527 include/linux/fs.h static inline int check_sticky(struct inode *dir, struct inode *inode) dir 3529 include/linux/fs.h if (!(dir->i_mode & S_ISVTX)) dir 3532 include/linux/fs.h return __check_sticky(dir, inode); dir 254 include/linux/fscrypt.h extern int __fscrypt_prepare_link(struct inode *inode, struct inode *dir, dir 261 include/linux/fscrypt.h extern int __fscrypt_prepare_lookup(struct inode *dir, struct dentry *dentry, dir 263 include/linux/fscrypt.h extern int __fscrypt_prepare_symlink(struct inode *dir, unsigned int len, dir 434 include/linux/fscrypt.h static inline int fscrypt_setup_filename(struct inode *dir, dir 438 include/linux/fscrypt.h if (IS_ENCRYPTED(dir)) dir 507 include/linux/fscrypt.h static inline int __fscrypt_prepare_link(struct inode *inode, struct inode *dir, dir 522 include/linux/fscrypt.h static inline int __fscrypt_prepare_lookup(struct inode *dir, dir 529 include/linux/fscrypt.h static inline int __fscrypt_prepare_symlink(struct inode *dir, dir 606 include/linux/fscrypt.h struct inode *dir, dir 609 include/linux/fscrypt.h if (IS_ENCRYPTED(dir)) dir 610 include/linux/fscrypt.h return __fscrypt_prepare_link(d_inode(old_dentry), dir, dentry); dir 666 include/linux/fscrypt.h static inline int fscrypt_prepare_lookup(struct inode *dir, dir 670 include/linux/fscrypt.h if (IS_ENCRYPTED(dir)) dir 671 include/linux/fscrypt.h return __fscrypt_prepare_lookup(dir, dentry, fname); dir 728 include/linux/fscrypt.h static inline int fscrypt_prepare_symlink(struct inode *dir, dir 734 include/linux/fscrypt.h if (IS_ENCRYPTED(dir) || fscrypt_dummy_context_enabled(dir)) dir 735 include/linux/fscrypt.h return __fscrypt_prepare_symlink(dir, len, max_len, disk_link); dir 26 include/linux/fsnotify.h static inline int fsnotify_dirent(struct inode *dir, struct dentry *dentry, dir 29 include/linux/fsnotify.h return fsnotify(dir, mask, d_inode(dentry), FSNOTIFY_EVENT_INODE, dir 183 include/linux/fsnotify.h static inline void fsnotify_link(struct inode *dir, struct inode *inode, struct dentry *new_dentry) dir 186 include/linux/fsnotify.h audit_inode_child(dir, new_dentry, AUDIT_TYPE_CHILD_CREATE); dir 188 include/linux/fsnotify.h fsnotify(dir, FS_CREATE, inode, FSNOTIFY_EVENT_INODE, &new_dentry->d_name, 0); dir 196 include/linux/fsnotify.h static inline void fsnotify_unlink(struct inode *dir, struct dentry *dentry) dir 201 include/linux/fsnotify.h fsnotify_dirent(dir, dentry, FS_DELETE); dir 219 include/linux/fsnotify.h static inline void fsnotify_rmdir(struct inode *dir, struct dentry *dentry) dir 224 include/linux/fsnotify.h fsnotify_dirent(dir, dentry, FS_DELETE | FS_ISDIR); dir 55 include/linux/genl_magic_func.h static void dprint_field(const char *dir, int nla_type, dir 63 include/linux/genl_magic_func.h pr_info("%s attr %s: %d 0x%08x\n", dir, dir 68 include/linux/genl_magic_func.h pr_info("%s attr %s: %lld 0x%08llx\n", dir, dir 73 include/linux/genl_magic_func.h pr_info("%s attr %s: set\n", dir, name); dir 78 include/linux/genl_magic_func.h static void dprint_array(const char *dir, int nla_type, dir 85 include/linux/genl_magic_func.h pr_info("%s attr %s: [len:%u] '%s'\n", dir, name, len, val); dir 91 include/linux/genl_magic_func.h dir, name, len, val[0], val[1], val[2], val[3]); dir 101 include/linux/genl_magic_func.h #define DPRINT_FIELD(dir, nla_type, name, s, nla) \ dir 104 include/linux/genl_magic_func.h dprint_field(dir, nla_type, #name, &s->name); \ dir 106 include/linux/genl_magic_func.h dprint_field(dir, nla_type, #name, \ dir 111 include/linux/genl_magic_func.h #define DPRINT_ARRAY(dir, nla_type, name, s, nla) \ dir 114 include/linux/genl_magic_func.h dprint_array(dir, nla_type, #name, \ dir 117 include/linux/genl_magic_func.h dprint_array(dir, nla_type, #name, \ dir 122 include/linux/genl_magic_func.h #define DPRINT_FIELD(dir, nla_type, name, s, nla) do {} while (0) dir 123 include/linux/genl_magic_func.h #define DPRINT_ARRAY(dir, nla_type, name, s, nla) do {} while (0) dir 500 include/linux/hid.h unsigned char dir; dir 166 include/linux/iio/iio.h enum iio_event_direction dir; dir 430 include/linux/iio/iio.h enum iio_event_direction dir); dir 435 include/linux/iio/iio.h enum iio_event_direction dir, dir 441 include/linux/iio/iio.h enum iio_event_direction dir, dir 447 include/linux/iio/iio.h enum iio_event_direction dir, dir 123 include/linux/interrupt.h struct proc_dir_entry *dir; dir 95 include/linux/irqdesc.h struct proc_dir_entry *dir; dir 151 include/linux/kernfs.h struct kernfs_elem_dir dir; dir 306 include/linux/kernfs.h WARN_ON_ONCE(!RB_EMPTY_ROOT(&kn->dir.children)); dir 136 include/linux/kobject.h return kobj->sd && kobj->sd->dir.subdirs; dir 1528 include/linux/lsm_hooks.h int (*path_unlink)(const struct path *dir, struct dentry *dentry); dir 1529 include/linux/lsm_hooks.h int (*path_mkdir)(const struct path *dir, struct dentry *dentry, dir 1531 include/linux/lsm_hooks.h int (*path_rmdir)(const struct path *dir, struct dentry *dentry); dir 1532 include/linux/lsm_hooks.h int (*path_mknod)(const struct path *dir, struct dentry *dentry, dir 1535 include/linux/lsm_hooks.h int (*path_symlink)(const struct path *dir, struct dentry *dentry, dir 1551 include/linux/lsm_hooks.h int (*inode_init_security)(struct inode *inode, struct inode *dir, dir 1555 include/linux/lsm_hooks.h int (*inode_create)(struct inode *dir, struct dentry *dentry, dir 1557 include/linux/lsm_hooks.h int (*inode_link)(struct dentry *old_dentry, struct inode *dir, dir 1559 include/linux/lsm_hooks.h int (*inode_unlink)(struct inode *dir, struct dentry *dentry); dir 1560 include/linux/lsm_hooks.h int (*inode_symlink)(struct inode *dir, struct dentry *dentry, dir 1562 include/linux/lsm_hooks.h int (*inode_mkdir)(struct inode *dir, struct dentry *dentry, dir 1564 include/linux/lsm_hooks.h int (*inode_rmdir)(struct inode *dir, struct dentry *dentry); dir 1565 include/linux/lsm_hooks.h int (*inode_mknod)(struct inode *dir, struct dentry *dentry, dir 1785 include/linux/lsm_hooks.h u8 dir); dir 108 include/linux/mfd/asic3.h #define ASIC3_CONFIG_GPIO(gpio, alt, dir, init) (((gpio) & 0x7f) \ dir 109 include/linux/mfd/asic3.h | (((alt) & 0x7f) << 7) | (((dir) & 0x1) << 14) \ dir 111 include/linux/mfd/asic3.h #define ASIC3_CONFIG_GPIO_DEFAULT(gpio, dir, init) \ dir 112 include/linux/mfd/asic3.h ASIC3_CONFIG_GPIO((gpio), 0, (dir), (init)) dir 344 include/linux/mfd/wm8350/gpio.h int wm8350_gpio_config(struct wm8350 *wm8350, int gpio, int dir, int func, dir 366 include/linux/netfilter.h enum ip_conntrack_dir dir); dir 25 include/linux/netfilter/nf_conntrack_proto_gre.h int nf_ct_gre_keymap_add(struct nf_conn *ct, enum ip_conntrack_dir dir, dir 19 include/linux/netfilter/nf_conntrack_zones_common.h u8 dir; dir 346 include/linux/nfs_fs.h static inline unsigned long nfs_save_change_attribute(struct inode *dir) dir 348 include/linux/nfs_fs.h return NFS_I(dir)->cache_change_attribute; dir 359 include/linux/nfs_fs.h static inline int nfs_verify_change_attribute(struct inode *dir, unsigned long chattr) dir 361 include/linux/nfs_fs.h return chattr == NFS_I(dir)->cache_change_attribute; dir 492 include/linux/nfs_fs.h extern void nfs_force_lookup_revalidate(struct inode *dir); dir 1314 include/linux/nfs_xdr.h u32 dir; dir 1321 include/linux/nfs_xdr.h u32 dir; dir 1701 include/linux/nfs_xdr.h struct inode * (*open_context) (struct inode *dir, dir 138 include/linux/nubus.h struct nubus_dir *dir); dir 141 include/linux/nubus.h struct nubus_dir *dir); dir 143 include/linux/nubus.h int nubus_get_func_dir(const struct nubus_rsrc *fres, struct nubus_dir *dir); dir 146 include/linux/nubus.h int nubus_readdir(struct nubus_dir *dir, dir 148 include/linux/nubus.h int nubus_find_rsrc(struct nubus_dir *dir, dir 151 include/linux/nubus.h int nubus_rewinddir(struct nubus_dir *dir); dir 155 include/linux/nubus.h struct nubus_dir *dir); dir 34 include/linux/pci-p2pdma.h int nents, enum dma_data_direction dir, unsigned long attrs); dir 36 include/linux/pci-p2pdma.h int nents, enum dma_data_direction dir, unsigned long attrs); dir 87 include/linux/pci-p2pdma.h struct scatterlist *sg, int nents, enum dma_data_direction dir, dir 93 include/linux/pci-p2pdma.h struct scatterlist *sg, int nents, enum dma_data_direction dir, dir 123 include/linux/pci-p2pdma.h int nents, enum dma_data_direction dir) dir 125 include/linux/pci-p2pdma.h return pci_p2pdma_map_sg_attrs(dev, sg, nents, dir, 0); dir 129 include/linux/pci-p2pdma.h struct scatterlist *sg, int nents, enum dma_data_direction dir) dir 131 include/linux/pci-p2pdma.h pci_p2pdma_unmap_sg_attrs(dev, sg, nents, dir, 0); dir 108 include/linux/platform_data/dma-ste-dma40.h enum dma_transfer_direction dir; dir 32 include/linux/platform_data/leds-pca963x.h enum pca963x_direction dir; dir 102 include/linux/posix_acl.h static inline int simple_acl_create(struct inode *dir, struct inode *inode) dir 5 include/linux/ramfs.h struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir, dir 1077 include/linux/rtsx_pci.h int (*conv_clk_and_div_n)(int clk, int dir); dir 318 include/linux/security.h int security_inode_init_security(struct inode *inode, struct inode *dir, dir 321 include/linux/security.h int security_old_inode_init_security(struct inode *inode, struct inode *dir, dir 324 include/linux/security.h int security_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode); dir 325 include/linux/security.h int security_inode_link(struct dentry *old_dentry, struct inode *dir, dir 327 include/linux/security.h int security_inode_unlink(struct inode *dir, struct dentry *dentry); dir 328 include/linux/security.h int security_inode_symlink(struct inode *dir, struct dentry *dentry, dir 330 include/linux/security.h int security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode); dir 331 include/linux/security.h int security_inode_rmdir(struct inode *dir, struct dentry *dentry); dir 332 include/linux/security.h int security_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev); dir 715 include/linux/security.h struct inode *dir, dir 724 include/linux/security.h struct inode *dir, dir 732 include/linux/security.h static inline int security_inode_create(struct inode *dir, dir 740 include/linux/security.h struct inode *dir, dir 746 include/linux/security.h static inline int security_inode_unlink(struct inode *dir, dir 752 include/linux/security.h static inline int security_inode_symlink(struct inode *dir, dir 759 include/linux/security.h static inline int security_inode_mkdir(struct inode *dir, dir 766 include/linux/security.h static inline int security_inode_rmdir(struct inode *dir, dir 772 include/linux/security.h static inline int security_inode_mknod(struct inode *dir, dir 1584 include/linux/security.h int security_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid, u8 dir); dir 1635 include/linux/security.h static inline int security_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid, u8 dir) dir 1658 include/linux/security.h int security_path_unlink(const struct path *dir, struct dentry *dentry); dir 1659 include/linux/security.h int security_path_mkdir(const struct path *dir, struct dentry *dentry, umode_t mode); dir 1660 include/linux/security.h int security_path_rmdir(const struct path *dir, struct dentry *dentry); dir 1661 include/linux/security.h int security_path_mknod(const struct path *dir, struct dentry *dentry, umode_t mode, dir 1664 include/linux/security.h int security_path_symlink(const struct path *dir, struct dentry *dentry, dir 1675 include/linux/security.h static inline int security_path_unlink(const struct path *dir, struct dentry *dentry) dir 1680 include/linux/security.h static inline int security_path_mkdir(const struct path *dir, struct dentry *dentry, dir 1686 include/linux/security.h static inline int security_path_rmdir(const struct path *dir, struct dentry *dentry) dir 1691 include/linux/security.h static inline int security_path_mknod(const struct path *dir, struct dentry *dentry, dir 1702 include/linux/security.h static inline int security_path_symlink(const struct path *dir, struct dentry *dentry, dir 3072 include/linux/skbuff.h enum dma_data_direction dir) dir 3075 include/linux/skbuff.h skb_frag_off(frag) + offset, size, dir); dir 41 include/linux/spi/spi-mem.h .dir = SPI_MEM_DATA_IN, \ dir 49 include/linux/spi/spi-mem.h .dir = SPI_MEM_DATA_OUT, \ dir 110 include/linux/spi/spi-mem.h enum spi_mem_data_dir dir; dir 23 include/linux/sunrpc/rpc_pipe_fs.h int (*create)(struct dentry *dir, dir 25 include/linux/sunrpc/rpc_pipe_fs.h void (*destroy)(struct dentry *dir, dir 52 include/linux/swiotlb.h enum dma_data_direction dir, dir 59 include/linux/swiotlb.h enum dma_data_direction dir, dir 64 include/linux/swiotlb.h size_t size, enum dma_data_direction dir, dir 77 include/linux/swiotlb.h size_t size, enum dma_data_direction dir, unsigned long attrs); dir 89 include/linux/swiotlb.h dma_addr_t *dma_addr, size_t size, enum dma_data_direction dir, dir 171 include/linux/sysctl.h struct ctl_dir dir; dir 273 include/linux/sysfs.h void sysfs_delete_link(struct kobject *dir, struct kobject *targ, dir 304 include/linux/sysfs.h void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr); dir 511 include/linux/sysfs.h static inline void sysfs_notify(struct kobject *kobj, const char *dir, dir 135 include/linux/thunderbolt.h struct tb_property_dir *dir; dir 144 include/linux/thunderbolt.h ssize_t tb_property_format_dir(const struct tb_property_dir *dir, u32 *block, dir 147 include/linux/thunderbolt.h void tb_property_free_dir(struct tb_property_dir *dir); dir 155 include/linux/thunderbolt.h struct tb_property_dir *dir); dir 157 include/linux/thunderbolt.h struct tb_property *tb_property_find(struct tb_property_dir *dir, dir 159 include/linux/thunderbolt.h struct tb_property *tb_property_get_next(struct tb_property_dir *dir, dir 162 include/linux/thunderbolt.h #define tb_property_for_each(dir, property) \ dir 163 include/linux/thunderbolt.h for (property = tb_property_get_next(dir, NULL); \ dir 165 include/linux/thunderbolt.h property = tb_property_get_next(dir, property)) dir 167 include/linux/thunderbolt.h int tb_register_property_dir(const char *key, struct tb_property_dir *dir); dir 168 include/linux/thunderbolt.h void tb_unregister_property_dir(const char *key, struct tb_property_dir *dir); dir 141 include/linux/ucb1400.h u16 dir) dir 143 include/linux/ucb1400.h ucb1400_reg_write(ac97, UCB_IO_DIR, dir ? dir 591 include/linux/usb/hcd.h #define HUB_CLASS_REQ(dir, type, request) ((((dir) | (type)) << 8) | (request)) dir 320 include/linux/wm97xx.h enum wm97xx_gpio_dir dir, dir 72 include/net/arp.h int arp_mc_map(__be32 addr, u8 *haddr, struct net_device *dev, int dir); dir 210 include/net/caif/cfpkt.h struct cfpkt *cfpkt_fromnative(enum caif_direction dir, void *nativepkt); dir 297 include/net/erspan.h md2->dir = direction; dir 41 include/net/ip6_tunnel.h __u8 dir; /* direction */ dir 122 include/net/ip_tunnels.h u8 dir; /* ERSPAN direction */ dir 1536 include/net/ip_vs.h struct ip_vs_conn *cp, int dir); dir 1540 include/net/ip_vs.h struct ip_vs_conn *cp, int dir); dir 3838 include/net/mac80211.h struct dentry *dir); dir 5962 include/net/mac80211.h struct dentry *dir); dir 474 include/net/ndisc.h int dir); dir 114 include/net/netfilter/nf_conntrack.h tuplehash[hash->tuple.dst.dir]); dir 127 include/net/netfilter/nf_conntrack.h #define nf_ct_tuple(ct, dir) (&(ct)->tuplehash[dir].tuple) dir 57 include/net/netfilter/nf_conntrack_expect.h enum ip_conntrack_dir dir; dir 71 include/net/netfilter/nf_conntrack_tuple.h u_int8_t dir; dir 116 include/net/netfilter/nf_conntrack_tuple.h ((enum ip_conntrack_dir)(h)->tuple.dst.dir) dir 19 include/net/netfilter/nf_conntrack_zones.h nf_ct_zone_init(struct nf_conntrack_zone *zone, u16 id, u8 dir, u8 flags) dir 23 include/net/netfilter/nf_conntrack_zones.h zone->dir = dir; dir 37 include/net/netfilter/nf_conntrack_zones.h return nf_ct_zone_init(tmp, skb->mark, tmpl->zone.dir, 0); dir 51 include/net/netfilter/nf_conntrack_zones.h enum ip_conntrack_dir dir) dir 53 include/net/netfilter/nf_conntrack_zones.h return zone->dir & (1 << dir); dir 57 include/net/netfilter/nf_conntrack_zones.h enum ip_conntrack_dir dir) dir 60 include/net/netfilter/nf_conntrack_zones.h return nf_ct_zone_matches_dir(zone, dir) ? dir 69 include/net/netfilter/nf_conntrack_zones.h enum ip_conntrack_dir dir) dir 72 include/net/netfilter/nf_conntrack_zones.h return nf_ct_zone_id(nf_ct_zone(a), dir) == dir 73 include/net/netfilter/nf_conntrack_zones.h nf_ct_zone_id(b, dir); dir 55 include/net/netfilter/nf_flow_table.h u8 dir; dir 109 include/net/netfilter/nf_flow_table.h u8 protocol, enum flow_offload_tuple_dir dir); dir 112 include/net/netfilter/nf_flow_table.h u8 protocol, enum flow_offload_tuple_dir dir); dir 81 include/net/netfilter/nf_nat.h enum ip_conntrack_dir dir); dir 338 include/net/xfrm.h void km_policy_notify(struct xfrm_policy *xp, int dir, dir 573 include/net/xfrm.h struct xfrm_policy *(*compile_policy)(struct sock *sk, int opt, u8 *data, int len, int *dir); dir 575 include/net/xfrm.h int (*notify_policy)(struct xfrm_policy *x, int dir, const struct km_event *c); dir 578 include/net/xfrm.h u8 dir, u8 type, dir 1086 include/net/xfrm.h int __xfrm_policy_check(struct sock *, int dir, struct sk_buff *skb, dir 1089 include/net/xfrm.h static inline int __xfrm_policy_check2(struct sock *sk, int dir, dir 1094 include/net/xfrm.h int ndir = dir | (reverse ? XFRM_POLICY_MASK + 1 : 0); dir 1099 include/net/xfrm.h return (!net->xfrm.policy_count[dir] && !secpath_exists(skb)) || dir 1104 include/net/xfrm.h static inline int xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb, unsigned short family) dir 1106 include/net/xfrm.h return __xfrm_policy_check2(sk, dir, skb, family, 0); dir 1109 include/net/xfrm.h static inline int xfrm4_policy_check(struct sock *sk, int dir, struct sk_buff *skb) dir 1111 include/net/xfrm.h return xfrm_policy_check(sk, dir, skb, AF_INET); dir 1114 include/net/xfrm.h static inline int xfrm6_policy_check(struct sock *sk, int dir, struct sk_buff *skb) dir 1116 include/net/xfrm.h return xfrm_policy_check(sk, dir, skb, AF_INET6); dir 1119 include/net/xfrm.h static inline int xfrm4_policy_check_reverse(struct sock *sk, int dir, dir 1122 include/net/xfrm.h return __xfrm_policy_check2(sk, dir, skb, AF_INET, 1); dir 1125 include/net/xfrm.h static inline int xfrm6_policy_check_reverse(struct sock *sk, int dir, dir 1128 include/net/xfrm.h return __xfrm_policy_check2(sk, dir, skb, AF_INET6, 1); dir 1179 include/net/xfrm.h int xfrm_policy_delete(struct xfrm_policy *pol, int dir); dir 1203 include/net/xfrm.h static inline int xfrm6_policy_check(struct sock *sk, int dir, struct sk_buff *skb) dir 1207 include/net/xfrm.h static inline int xfrm4_policy_check(struct sock *sk, int dir, struct sk_buff *skb) dir 1211 include/net/xfrm.h static inline int xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb, unsigned short family) dir 1221 include/net/xfrm.h static inline int xfrm4_policy_check_reverse(struct sock *sk, int dir, dir 1226 include/net/xfrm.h static inline int xfrm6_policy_check_reverse(struct sock *sk, int dir, dir 1637 include/net/xfrm.h int xfrm_policy_insert(int dir, struct xfrm_policy *policy, int excl); dir 1639 include/net/xfrm.h u8 type, int dir, dir 1644 include/net/xfrm.h int dir, u32 id, int delete, int *err); dir 1655 include/net/xfrm.h int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol); dir 1658 include/net/xfrm.h int km_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, dir 1666 include/net/xfrm.h int xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, dir 1673 include/net/xfrm.h void km_policy_expired(struct xfrm_policy *pol, int dir, int hard, u32 portid); dir 4062 include/rdma/ib_verbs.h enum dma_data_direction dir) dir 4064 include/rdma/ib_verbs.h dma_sync_single_for_cpu(dev->dma_device, addr, size, dir); dir 4077 include/rdma/ib_verbs.h enum dma_data_direction dir) dir 4079 include/rdma/ib_verbs.h dma_sync_single_for_device(dev->dma_device, addr, size, dir); dir 47 include/rdma/rw.h u64 remote_addr, u32 rkey, enum dma_data_direction dir); dir 50 include/rdma/rw.h enum dma_data_direction dir); dir 56 include/rdma/rw.h enum dma_data_direction dir); dir 60 include/rdma/rw.h enum dma_data_direction dir); dir 159 include/soc/fsl/qe/qe.h int dir, int open_drain, int assignment, dir 164 include/soc/fsl/qe/qe.h extern int par_io_config_pin(u8 port, u8 pin, int dir, int open_drain, dir 170 include/soc/fsl/qe/qe.h static inline int par_io_config_pin(u8 port, u8 pin, int dir, int open_drain, dir 50 include/sound/hda_regmap.h #define snd_hdac_regmap_encode_amp(nid, ch, dir, idx) \ dir 53 include/sound/hda_regmap.h ((dir) == HDA_OUTPUT ? AC_AMP_GET_OUTPUT : AC_AMP_GET_INPUT) | \ dir 64 include/sound/hda_regmap.h #define snd_hdac_regmap_encode_amp_stereo(nid, dir, idx) \ dir 67 include/sound/hda_regmap.h ((dir) == HDA_OUTPUT ? AC_AMP_GET_OUTPUT : AC_AMP_GET_INPUT) | \ dir 137 include/sound/hda_regmap.h int ch, int dir, int idx) dir 139 include/sound/hda_regmap.h unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx); dir 161 include/sound/hda_regmap.h int ch, int dir, int idx, int mask, int val) dir 163 include/sound/hda_regmap.h unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx); dir 182 include/sound/hda_regmap.h int dir, int idx) dir 184 include/sound/hda_regmap.h unsigned int cmd = snd_hdac_regmap_encode_amp_stereo(nid, dir, idx); dir 206 include/sound/hda_regmap.h int dir, int idx, int mask, int val) dir 208 include/sound/hda_regmap.h unsigned int cmd = snd_hdac_regmap_encode_amp_stereo(nid, dir, idx); dir 548 include/sound/hdaudio.h int dir, int stream_tag); dir 84 include/sound/hdaudio_ext.h int num_stream, int dir); dir 14 include/sound/pcm_params.h snd_pcm_hw_param_t var, int *dir); dir 17 include/sound/pcm_params.h snd_pcm_hw_param_t var, int *dir); dir 19 include/sound/pcm_params.h snd_pcm_hw_param_t var, int *dir); dir 59 include/sound/soc-component.h int clk_id, int source, unsigned int freq, int dir); dir 277 include/sound/soc-component.h unsigned int freq, int dir); dir 115 include/sound/soc-dai.h unsigned int freq, int dir); dir 179 include/sound/soc-dai.h int clk_id, unsigned int freq, int dir); dir 753 include/sound/soc-dapm.h #define snd_soc_dapm_widget_for_each_path(w, dir, p) \ dir 754 include/sound/soc-dapm.h list_for_each_entry(p, &w->edges[dir], list_node[dir]) dir 768 include/sound/soc-dapm.h #define snd_soc_dapm_widget_for_each_path_safe(w, dir, p, next_p) \ dir 769 include/sound/soc-dapm.h list_for_each_entry_safe(p, next_p, &w->edges[dir], list_node[dir]) dir 167 include/sound/soc-dpcm.h int dpcm_dapm_stream_event(struct snd_soc_pcm_runtime *fe, int dir, dir 12 include/trace/events/asoc.h #define DAPM_ARROW(dir) (((dir) == SND_SOC_DAPM_DIR_OUT) ? "->" : "<-") dir 159 include/trace/events/asoc.h enum snd_soc_dapm_direction dir, dir 162 include/trace/events/asoc.h TP_ARGS(widget, dir, path), dir 167 include/trace/events/asoc.h __string( pnname, path->node[dir]->name ) dir 176 include/trace/events/asoc.h __assign_str(pnname, path->node[dir]->name); dir 178 include/trace/events/asoc.h __entry->path_node = (long)path->node[dir]; dir 179 include/trace/events/asoc.h __entry->path_dir = dir; dir 31 include/trace/events/erofs.h TP_PROTO(struct inode *dir, struct dentry *dentry, unsigned int flags), dir 33 include/trace/events/erofs.h TP_ARGS(dir, dentry, flags), dir 43 include/trace/events/erofs.h __entry->dev = dir->i_sb->s_dev; dir 44 include/trace/events/erofs.h __entry->nid = EROFS_I(dir)->nid; dir 90 include/trace/events/erofs.h __field(int, dir ) dir 99 include/trace/events/erofs.h __entry->dir = S_ISDIR(page->mapping->host->i_mode); dir 108 include/trace/events/erofs.h show_file_type(__entry->dir), dir 139 include/trace/events/ext4.h TP_PROTO(struct inode *dir, int mode), dir 141 include/trace/events/ext4.h TP_ARGS(dir, mode), dir 145 include/trace/events/ext4.h __field( ino_t, dir ) dir 150 include/trace/events/ext4.h __entry->dev = dir->i_sb->s_dev; dir 151 include/trace/events/ext4.h __entry->dir = dir->i_ino; dir 157 include/trace/events/ext4.h (unsigned long) __entry->dir, __entry->mode) dir 161 include/trace/events/ext4.h TP_PROTO(struct inode *inode, struct inode *dir, int mode), dir 163 include/trace/events/ext4.h TP_ARGS(inode, dir, mode), dir 168 include/trace/events/ext4.h __field( ino_t, dir ) dir 175 include/trace/events/ext4.h __entry->dir = dir->i_ino; dir 182 include/trace/events/ext4.h (unsigned long) __entry->dir, __entry->mode) dir 310 include/trace/events/f2fs.h TP_PROTO(struct inode *dir, struct dentry *dentry), dir 312 include/trace/events/f2fs.h TP_ARGS(dir, dentry), dir 323 include/trace/events/f2fs.h __entry->dev = dir->i_sb->s_dev; dir 324 include/trace/events/f2fs.h __entry->ino = dir->i_ino; dir 325 include/trace/events/f2fs.h __entry->size = dir->i_size; dir 326 include/trace/events/f2fs.h __entry->blocks = dir->i_blocks; dir 789 include/trace/events/f2fs.h TP_PROTO(struct inode *dir, struct dentry *dentry, unsigned int flags), dir 791 include/trace/events/f2fs.h TP_ARGS(dir, dentry, flags), dir 801 include/trace/events/f2fs.h __entry->dev = dir->i_sb->s_dev; dir 802 include/trace/events/f2fs.h __entry->ino = dir->i_ino; dir 815 include/trace/events/f2fs.h TP_PROTO(struct inode *dir, struct dentry *dentry, nid_t ino, dir 818 include/trace/events/f2fs.h TP_ARGS(dir, dentry, ino, err), dir 829 include/trace/events/f2fs.h __entry->dev = dir->i_sb->s_dev; dir 830 include/trace/events/f2fs.h __entry->ino = dir->i_ino; dir 845 include/trace/events/f2fs.h TP_PROTO(struct inode *dir, loff_t start_pos, loff_t end_pos, int err), dir 847 include/trace/events/f2fs.h TP_ARGS(dir, start_pos, end_pos, err), dir 858 include/trace/events/f2fs.h __entry->dev = dir->i_sb->s_dev; dir 859 include/trace/events/f2fs.h __entry->ino = dir->i_ino; dir 1203 include/trace/events/f2fs.h __field(int, dir) dir 1213 include/trace/events/f2fs.h __entry->dir = dir 1224 include/trace/events/f2fs.h show_file_type(__entry->dir), dir 1315 include/trace/events/f2fs.h __field(int, dir) dir 1334 include/trace/events/f2fs.h __entry->dir = S_ISDIR(inode->i_mode); dir 1354 include/trace/events/f2fs.h show_file_type(__entry->dir), dir 243 include/trace/events/rpcrdma.h __field(u32, dir) dir 251 include/trace/events/rpcrdma.h __entry->dir = mr->mr_dir; dir 257 include/trace/events/rpcrdma.h xprtrdma_show_direction(__entry->dir) dir 871 include/trace/events/rpcrdma.h __field(u32, dir) dir 880 include/trace/events/rpcrdma.h __entry->dir = mr->mr_dir; dir 887 include/trace/events/rpcrdma.h xprtrdma_show_direction(__entry->dir), dir 903 include/trace/events/rpcrdma.h __field(u32, dir) dir 910 include/trace/events/rpcrdma.h __entry->dir = mr->mr_dir; dir 916 include/trace/events/rpcrdma.h xprtrdma_show_direction(__entry->dir), dir 932 include/trace/events/rpcrdma.h __field(u32, dir) dir 940 include/trace/events/rpcrdma.h __entry->dir = mr->mr_dir; dir 947 include/trace/events/rpcrdma.h xprtrdma_show_direction(__entry->dir), dir 69 include/uapi/asm-generic/ioctl.h #define _IOC(dir,type,nr,size) \ dir 70 include/uapi/asm-generic/ioctl.h (((dir) << _IOC_DIRSHIFT) | \ dir 23 include/uapi/drm/armada_drm.h #define ARMADA_IOCTL(dir, name, str) \ dir 24 include/uapi/drm/armada_drm.h DRM_##dir(DRM_COMMAND_BASE + DRM_ARMADA_##name, struct drm_armada_##str) dir 29 include/uapi/linux/erspan.h dir:1, dir 36 include/uapi/linux/erspan.h dir:1, dir 207 include/uapi/linux/rio_mport_cdev.h __u16 dir; /* Transfer direction, one of rio_transfer_dir enum */ dir 234 include/uapi/linux/synclink.h __u32 dir; dir 417 include/uapi/linux/xfrm.h __u8 dir; dir 431 include/uapi/linux/xfrm.h __u8 dir; dir 8 include/xen/swiotlb-xen.h phys_addr_t paddr, size_t size, enum dma_data_direction dir); dir 10 include/xen/swiotlb-xen.h phys_addr_t paddr, size_t size, enum dma_data_direction dir); dir 137 include/xen/xenbus.h const char *dir, const char *node, unsigned int *num); dir 139 include/xen/xenbus.h const char *dir, const char *node, unsigned int *len); dir 141 include/xen/xenbus.h const char *dir, const char *node, const char *string); dir 143 include/xen/xenbus.h const char *dir, const char *node); dir 145 include/xen/xenbus.h const char *dir, const char *node); dir 146 include/xen/xenbus.h int xenbus_rm(struct xenbus_transaction t, const char *dir, const char *node); dir 153 include/xen/xenbus.h const char *dir, const char *node, const char *fmt, ...); dir 156 include/xen/xenbus.h unsigned int xenbus_read_unsigned(const char *dir, const char *node, dir 162 include/xen/xenbus.h const char *dir, const char *node, const char *fmt, ...); dir 166 include/xen/xenbus.h int xenbus_gather(struct xenbus_transaction t, const char *dir, ...); dir 495 ipc/mqueue.c struct inode *dir = dentry->d_parent->d_inode; dir 502 ipc/mqueue.c ipc_ns = __get_ns_from_inode(dir); dir 516 ipc/mqueue.c inode = mqueue_get_inode(dir->i_sb, ipc_ns, mode, attr); dir 525 ipc/mqueue.c dir->i_size += DIRENT_SIZE; dir 526 ipc/mqueue.c dir->i_ctime = dir->i_mtime = dir->i_atime = current_time(dir); dir 538 ipc/mqueue.c static int mqueue_create(struct inode *dir, struct dentry *dentry, dir 544 ipc/mqueue.c static int mqueue_unlink(struct inode *dir, struct dentry *dentry) dir 548 ipc/mqueue.c dir->i_ctime = dir->i_mtime = dir->i_atime = current_time(dir); dir 549 ipc/mqueue.c dir->i_size -= DIRENT_SIZE; dir 1145 kernel/bpf/cgroup.c static ssize_t sysctl_cpy_dir(const struct ctl_dir *dir, char **bufp, dir 1150 kernel/bpf/cgroup.c if (dir->header.parent) { dir 1151 kernel/bpf/cgroup.c tmp_ret = sysctl_cpy_dir(dir->header.parent, bufp, lenp); dir 1156 kernel/bpf/cgroup.c ret = strscpy(*bufp, dir->header.ctl_table[0].procname, *lenp); dir 82 kernel/bpf/inode.c const struct inode *dir, dir 105 kernel/bpf/inode.c inode_init_owner(inode, dir, mode); dir 124 kernel/bpf/inode.c struct inode *dir) dir 129 kernel/bpf/inode.c dir->i_mtime = current_time(dir); dir 130 kernel/bpf/inode.c dir->i_ctime = dir->i_mtime; dir 133 kernel/bpf/inode.c static int bpf_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 137 kernel/bpf/inode.c inode = bpf_get_inode(dir->i_sb, dir, mode | S_IFDIR); dir 145 kernel/bpf/inode.c inc_nlink(dir); dir 147 kernel/bpf/inode.c bpf_dentry_finalize(dentry, inode, dir); dir 310 kernel/bpf/inode.c struct inode *dir = dentry->d_parent->d_inode; dir 311 kernel/bpf/inode.c struct inode *inode = bpf_get_inode(dir->i_sb, dir, mode); dir 319 kernel/bpf/inode.c bpf_dentry_finalize(dentry, inode, dir); dir 339 kernel/bpf/inode.c bpf_lookup(struct inode *dir, struct dentry *dentry, unsigned flags) dir 347 kernel/bpf/inode.c return simple_lookup(dir, dentry, flags); dir 350 kernel/bpf/inode.c static int bpf_symlink(struct inode *dir, struct dentry *dentry, dir 359 kernel/bpf/inode.c inode = bpf_get_inode(dir->i_sb, dir, S_IRWXUGO | S_IFLNK); dir 368 kernel/bpf/inode.c bpf_dentry_finalize(dentry, inode, dir); dir 386 kernel/bpf/inode.c struct inode *dir; dir 401 kernel/bpf/inode.c dir = d_inode(path.dentry); dir 402 kernel/bpf/inode.c if (dir->i_op != &bpf_dir_iops) { dir 1404 kernel/dma/debug.c int nelems, int dir) dir 1421 kernel/dma/debug.c .direction = dir, dir 227 kernel/dma/direct.c dma_addr_t addr, size_t size, enum dma_data_direction dir) dir 232 kernel/dma/direct.c swiotlb_tbl_sync_single(dev, paddr, size, dir, SYNC_FOR_DEVICE); dir 235 kernel/dma/direct.c arch_sync_dma_for_device(dev, paddr, size, dir); dir 240 kernel/dma/direct.c struct scatterlist *sgl, int nents, enum dma_data_direction dir) dir 250 kernel/dma/direct.c dir, SYNC_FOR_DEVICE); dir 254 kernel/dma/direct.c dir); dir 264 kernel/dma/direct.c dma_addr_t addr, size_t size, enum dma_data_direction dir) dir 269 kernel/dma/direct.c arch_sync_dma_for_cpu(dev, paddr, size, dir); dir 274 kernel/dma/direct.c swiotlb_tbl_sync_single(dev, paddr, size, dir, SYNC_FOR_CPU); dir 279 kernel/dma/direct.c struct scatterlist *sgl, int nents, enum dma_data_direction dir) dir 288 kernel/dma/direct.c arch_sync_dma_for_cpu(dev, paddr, sg->length, dir); dir 291 kernel/dma/direct.c swiotlb_tbl_sync_single(dev, paddr, sg->length, dir, dir 301 kernel/dma/direct.c size_t size, enum dma_data_direction dir, unsigned long attrs) dir 306 kernel/dma/direct.c dma_direct_sync_single_for_cpu(dev, addr, size, dir); dir 309 kernel/dma/direct.c swiotlb_tbl_unmap_single(dev, phys, size, size, dir, attrs); dir 314 kernel/dma/direct.c int nents, enum dma_data_direction dir, unsigned long attrs) dir 320 kernel/dma/direct.c dma_direct_unmap_page(dev, sg->dma_address, sg_dma_len(sg), dir, dir 334 kernel/dma/direct.c unsigned long offset, size_t size, enum dma_data_direction dir, dir 341 kernel/dma/direct.c !swiotlb_map(dev, &phys, &dma_addr, size, dir, attrs)) { dir 347 kernel/dma/direct.c arch_sync_dma_for_device(dev, phys, size, dir); dir 353 kernel/dma/direct.c enum dma_data_direction dir, unsigned long attrs) dir 360 kernel/dma/direct.c sg->offset, sg->length, dir, attrs); dir 369 kernel/dma/direct.c dma_direct_unmap_sg(dev, sgl, i, dir, attrs | DMA_ATTR_SKIP_CPU_SYNC); dir 375 kernel/dma/direct.c size_t size, enum dma_data_direction dir, unsigned long attrs) dir 15 kernel/dma/dummy.c unsigned long offset, size_t size, enum dma_data_direction dir, dir 22 kernel/dma/dummy.c int nelems, enum dma_data_direction dir, dir 404 kernel/dma/mapping.c enum dma_data_direction dir) dir 408 kernel/dma/mapping.c BUG_ON(!valid_dma_direction(dir)); dir 411 kernel/dma/mapping.c arch_dma_cache_sync(dev, vaddr, size, dir); dir 413 kernel/dma/mapping.c ops->cache_sync(dev, vaddr, size, dir); dir 409 kernel/dma/swiotlb.c size_t size, enum dma_data_direction dir) dir 426 kernel/dma/swiotlb.c if (dir == DMA_TO_DEVICE) dir 438 kernel/dma/swiotlb.c } else if (dir == DMA_TO_DEVICE) { dir 450 kernel/dma/swiotlb.c enum dma_data_direction dir, dir 571 kernel/dma/swiotlb.c (dir == DMA_TO_DEVICE || dir == DMA_BIDIRECTIONAL)) dir 582 kernel/dma/swiotlb.c enum dma_data_direction dir, unsigned long attrs) dir 594 kernel/dma/swiotlb.c ((dir == DMA_FROM_DEVICE) || (dir == DMA_BIDIRECTIONAL))) dir 628 kernel/dma/swiotlb.c size_t size, enum dma_data_direction dir, dir 640 kernel/dma/swiotlb.c if (likely(dir == DMA_FROM_DEVICE || dir == DMA_BIDIRECTIONAL)) dir 644 kernel/dma/swiotlb.c BUG_ON(dir != DMA_TO_DEVICE); dir 647 kernel/dma/swiotlb.c if (likely(dir == DMA_TO_DEVICE || dir == DMA_BIDIRECTIONAL)) dir 651 kernel/dma/swiotlb.c BUG_ON(dir != DMA_FROM_DEVICE); dir 663 kernel/dma/swiotlb.c size_t size, enum dma_data_direction dir, unsigned long attrs) dir 675 kernel/dma/swiotlb.c *phys, size, size, dir, attrs); dir 682 kernel/dma/swiotlb.c swiotlb_tbl_unmap_single(dev, *phys, size, size, dir, dir 31 kernel/dma/virt.c enum dma_data_direction dir, dir 38 kernel/dma/virt.c int nents, enum dma_data_direction dir, dir 157 kernel/fail_function.c struct dentry *dir; dir 159 kernel/fail_function.c dir = debugfs_create_dir(attr->kp.symbol_name, fei_debugfs_dir); dir 161 kernel/fail_function.c debugfs_create_file("retval", 0600, dir, attr, &fei_retval_ops); dir 166 kernel/fail_function.c struct dentry *dir; dir 168 kernel/fail_function.c dir = debugfs_lookup(attr->kp.symbol_name, fei_debugfs_dir); dir 169 kernel/fail_function.c debugfs_remove_recursive(dir); dir 325 kernel/fail_function.c struct dentry *dir; dir 327 kernel/fail_function.c dir = fault_create_debugfs_attr("fail_function", NULL, dir 329 kernel/fail_function.c if (IS_ERR(dir)) dir 330 kernel/fail_function.c return PTR_ERR(dir); dir 333 kernel/fail_function.c debugfs_create_symlink("injectable", dir, "../error_injection/list"); dir 335 kernel/fail_function.c debugfs_create_file("inject", 0600, dir, NULL, &fei_ops); dir 337 kernel/fail_function.c fei_debugfs_dir = dir; dir 305 kernel/futex.c struct dentry *dir; dir 307 kernel/futex.c dir = fault_create_debugfs_attr("fail_futex", NULL, dir 309 kernel/futex.c if (IS_ERR(dir)) dir 310 kernel/futex.c return PTR_ERR(dir); dir 312 kernel/futex.c debugfs_create_bool("ignore-private", mode, dir, dir 303 kernel/gcov/fs.c static char *link_target(const char *dir, const char *path, const char *ext) dir 315 kernel/gcov/fs.c if (dir) dir 316 kernel/gcov/fs.c target = kasprintf(GFP_KERNEL, "%s/%s.%s", dir, copy, ext); dir 337 kernel/gcov/fs.c if (ext->dir == SRC_TREE) dir 83 kernel/gcov/gcov.h } dir; dir 1604 kernel/irq/manage.c new->dir = NULL; dir 324 kernel/irq/proc.c if (!desc->dir || action->dir || !action->name || dir 331 kernel/irq/proc.c action->dir = proc_mkdir(name, desc->dir); dir 354 kernel/irq/proc.c if (desc->dir) dir 360 kernel/irq/proc.c desc->dir = proc_mkdir(name, root_irq_dir); dir 361 kernel/irq/proc.c if (!desc->dir) dir 366 kernel/irq/proc.c proc_create_data("smp_affinity", 0644, desc->dir, dir 370 kernel/irq/proc.c proc_create_single_data("affinity_hint", 0444, desc->dir, dir 374 kernel/irq/proc.c proc_create_data("smp_affinity_list", 0644, desc->dir, dir 377 kernel/irq/proc.c proc_create_single_data("node", 0444, desc->dir, irq_node_proc_show, dir 380 kernel/irq/proc.c proc_create_single_data("effective_affinity", 0444, desc->dir, dir 382 kernel/irq/proc.c proc_create_single_data("effective_affinity_list", 0444, desc->dir, dir 386 kernel/irq/proc.c proc_create_single_data("spurious", 0444, desc->dir, dir 397 kernel/irq/proc.c if (!root_irq_dir || !desc->dir) dir 400 kernel/irq/proc.c remove_proc_entry("smp_affinity", desc->dir); dir 401 kernel/irq/proc.c remove_proc_entry("affinity_hint", desc->dir); dir 402 kernel/irq/proc.c remove_proc_entry("smp_affinity_list", desc->dir); dir 403 kernel/irq/proc.c remove_proc_entry("node", desc->dir); dir 405 kernel/irq/proc.c remove_proc_entry("effective_affinity", desc->dir); dir 406 kernel/irq/proc.c remove_proc_entry("effective_affinity_list", desc->dir); dir 409 kernel/irq/proc.c remove_proc_entry("spurious", desc->dir); dir 419 kernel/irq/proc.c proc_remove(action->dir); dir 2620 kernel/kprobes.c struct dentry *dir; dir 2623 kernel/kprobes.c dir = debugfs_create_dir("kprobes", NULL); dir 2625 kernel/kprobes.c debugfs_create_file("list", 0400, dir, NULL, dir 2628 kernel/kprobes.c debugfs_create_file("enabled", 0600, dir, &value, &fops_kp); dir 2630 kernel/kprobes.c debugfs_create_file("blacklist", 0400, dir, NULL, dir 2133 kernel/locking/lockdep.c int dir = new_bit & LOCK_USAGE_DIR_MASK; dir 2138 kernel/locking/lockdep.c return state | (dir ^ LOCK_USAGE_DIR_MASK); dir 3296 kernel/locking/lockdep.c int dir = new_bit & LOCK_USAGE_DIR_MASK; dir 3305 kernel/locking/lockdep.c check_usage_f usage = dir ? dir 1609 kernel/module.c struct kobject *dir; dir 1628 kernel/module.c if (notes_attrs->dir) { dir 1630 kernel/module.c sysfs_remove_bin_file(notes_attrs->dir, dir 1632 kernel/module.c kobject_put(notes_attrs->dir); dir 1679 kernel/module.c notes_attrs->dir = kobject_create_and_add("notes", &mod->mkobj.kobj); dir 1680 kernel/module.c if (!notes_attrs->dir) dir 1684 kernel/module.c if (sysfs_create_bin_file(notes_attrs->dir, dir 315 kernel/trace/blktrace.c debugfs_remove(bt->dir); dir 480 kernel/trace/blktrace.c struct dentry *dir = NULL; dir 513 kernel/trace/blktrace.c dir = debugfs_lookup(buts->name, blk_debugfs_root); dir 514 kernel/trace/blktrace.c if (!dir) dir 515 kernel/trace/blktrace.c bt->dir = dir = debugfs_create_dir(buts->name, blk_debugfs_root); dir 522 kernel/trace/blktrace.c bt->dropped_file = debugfs_create_file("dropped", 0444, dir, bt, dir 525 kernel/trace/blktrace.c bt->msg_file = debugfs_create_file("msg", 0222, dir, bt, &blk_msg_fops); dir 527 kernel/trace/blktrace.c bt->rchan = relay_open("trace", dir, buts->buf_size, dir 555 kernel/trace/blktrace.c if (dir && !bt->dir) dir 556 kernel/trace/blktrace.c dput(dir); dir 5630 kernel/trace/trace.c if (!tr->dir) dir 7777 kernel/trace/trace.c if (WARN_ON(!tr->dir)) dir 7785 kernel/trace/trace.c return tr->dir; dir 8427 kernel/trace/trace.c tr->dir = tracefs_create_dir(name, trace_instance_dir); dir 8428 kernel/trace/trace.c if (!tr->dir) dir 8431 kernel/trace/trace.c ret = event_trace_add_tracer(tr->dir, tr); dir 8433 kernel/trace/trace.c tracefs_remove_recursive(tr->dir); dir 8439 kernel/trace/trace.c init_tracer_tracefs(tr, tr->dir); dir 8489 kernel/trace/trace.c tracefs_remove_recursive(tr->dir); dir 8592 kernel/trace/trace.c if (file && file->dir) dir 8593 kernel/trace/trace.c trace_create_file("trigger", 0644, file->dir, file, dir 8677 kernel/trace/trace.c if (tr->dir) dir 8691 kernel/trace/trace.c tr->dir = debugfs_create_automount("tracing", NULL, dir 302 kernel/trace/trace.h struct dentry *dir; dir 1567 kernel/trace/trace.h extern int apply_subsystem_event_filter(struct trace_subsystem_dir *dir, dir 669 kernel/trace/trace_events.c static void __get_system_dir(struct trace_subsystem_dir *dir) dir 671 kernel/trace/trace_events.c WARN_ON_ONCE(dir->ref_count == 0); dir 672 kernel/trace/trace_events.c dir->ref_count++; dir 673 kernel/trace/trace_events.c __get_system(dir->subsystem); dir 676 kernel/trace/trace_events.c static void __put_system_dir(struct trace_subsystem_dir *dir) dir 678 kernel/trace/trace_events.c WARN_ON_ONCE(dir->ref_count == 0); dir 680 kernel/trace/trace_events.c WARN_ON_ONCE(system_refcount(dir->subsystem) == 1 && dir->ref_count != 1); dir 682 kernel/trace/trace_events.c __put_system(dir->subsystem); dir 683 kernel/trace/trace_events.c if (!--dir->ref_count) dir 684 kernel/trace/trace_events.c kfree(dir); dir 687 kernel/trace/trace_events.c static void put_system(struct trace_subsystem_dir *dir) dir 690 kernel/trace/trace_events.c __put_system_dir(dir); dir 694 kernel/trace/trace_events.c static void remove_subsystem(struct trace_subsystem_dir *dir) dir 696 kernel/trace/trace_events.c if (!dir) dir 699 kernel/trace/trace_events.c if (!--dir->nr_events) { dir 700 kernel/trace/trace_events.c tracefs_remove_recursive(dir->entry); dir 701 kernel/trace/trace_events.c list_del(&dir->list); dir 702 kernel/trace/trace_events.c __put_system_dir(dir); dir 708 kernel/trace/trace_events.c struct dentry *dir = file->dir; dir 711 kernel/trace/trace_events.c if (dir) { dir 712 kernel/trace/trace_events.c spin_lock(&dir->d_lock); /* probably unneeded */ dir 713 kernel/trace/trace_events.c list_for_each_entry(child, &dir->d_subdirs, d_child) { dir 717 kernel/trace/trace_events.c spin_unlock(&dir->d_lock); dir 719 kernel/trace/trace_events.c tracefs_remove_recursive(dir); dir 1096 kernel/trace/trace_events.c struct trace_subsystem_dir *dir = filp->private_data; dir 1097 kernel/trace/trace_events.c struct event_subsystem *system = dir->subsystem; dir 1100 kernel/trace/trace_events.c struct trace_array *tr = dir->tr; dir 1141 kernel/trace/trace_events.c struct trace_subsystem_dir *dir = filp->private_data; dir 1142 kernel/trace/trace_events.c struct event_subsystem *system = dir->subsystem; dir 1165 kernel/trace/trace_events.c ret = __ftrace_set_clr_event(dir->tr, NULL, name, NULL, val); dir 1393 kernel/trace/trace_events.c struct trace_subsystem_dir *dir = NULL; /* Initialize for gcc */ dir 1404 kernel/trace/trace_events.c list_for_each_entry(dir, &tr->systems, list) { dir 1405 kernel/trace/trace_events.c if (dir == inode->i_private) { dir 1407 kernel/trace/trace_events.c if (dir->nr_events) { dir 1408 kernel/trace/trace_events.c __get_system_dir(dir); dir 1409 kernel/trace/trace_events.c system = dir->subsystem; dir 1423 kernel/trace/trace_events.c WARN_ON(!dir); dir 1427 kernel/trace/trace_events.c put_system(dir); dir 1434 kernel/trace/trace_events.c put_system(dir); dir 1442 kernel/trace/trace_events.c struct trace_subsystem_dir *dir; dir 1447 kernel/trace/trace_events.c dir = kzalloc(sizeof(*dir), GFP_KERNEL); dir 1448 kernel/trace/trace_events.c if (!dir) dir 1453 kernel/trace/trace_events.c kfree(dir); dir 1456 kernel/trace/trace_events.c dir->tr = tr; dir 1457 kernel/trace/trace_events.c filp->private_data = dir; dir 1464 kernel/trace/trace_events.c struct trace_subsystem_dir *dir = file->private_data; dir 1466 kernel/trace/trace_events.c trace_array_put(dir->tr); dir 1473 kernel/trace/trace_events.c if (dir->subsystem) dir 1474 kernel/trace/trace_events.c put_system(dir); dir 1476 kernel/trace/trace_events.c kfree(dir); dir 1485 kernel/trace/trace_events.c struct trace_subsystem_dir *dir = filp->private_data; dir 1486 kernel/trace/trace_events.c struct event_subsystem *system = dir->subsystem; dir 1512 kernel/trace/trace_events.c struct trace_subsystem_dir *dir = filp->private_data; dir 1523 kernel/trace/trace_events.c err = apply_subsystem_event_filter(dir, buf); dir 1877 kernel/trace/trace_events.c struct trace_subsystem_dir *dir; dir 1882 kernel/trace/trace_events.c list_for_each_entry(dir, &tr->systems, list) { dir 1883 kernel/trace/trace_events.c system = dir->subsystem; dir 1885 kernel/trace/trace_events.c dir->nr_events++; dir 1886 kernel/trace/trace_events.c file->system = dir; dir 1887 kernel/trace/trace_events.c return dir->entry; dir 1900 kernel/trace/trace_events.c dir = kmalloc(sizeof(*dir), GFP_KERNEL); dir 1901 kernel/trace/trace_events.c if (!dir) dir 1911 kernel/trace/trace_events.c dir->entry = tracefs_create_dir(name, parent); dir 1912 kernel/trace/trace_events.c if (!dir->entry) { dir 1918 kernel/trace/trace_events.c dir->tr = tr; dir 1919 kernel/trace/trace_events.c dir->ref_count = 1; dir 1920 kernel/trace/trace_events.c dir->nr_events = 1; dir 1921 kernel/trace/trace_events.c dir->subsystem = system; dir 1922 kernel/trace/trace_events.c file->system = dir; dir 1924 kernel/trace/trace_events.c entry = tracefs_create_file("filter", 0644, dir->entry, dir, dir 1932 kernel/trace/trace_events.c trace_create_file("enable", 0644, dir->entry, dir, dir 1935 kernel/trace/trace_events.c list_add(&dir->list, &tr->systems); dir 1937 kernel/trace/trace_events.c return dir->entry; dir 1940 kernel/trace/trace_events.c kfree(dir); dir 1943 kernel/trace/trace_events.c if (!dir || !system) dir 1970 kernel/trace/trace_events.c file->dir = tracefs_create_dir(name, d_events); dir 1971 kernel/trace/trace_events.c if (!file->dir) { dir 1977 kernel/trace/trace_events.c trace_create_file("enable", 0644, file->dir, file, dir 1982 kernel/trace/trace_events.c trace_create_file("id", 0444, file->dir, dir 2006 kernel/trace/trace_events.c trace_create_file("filter", 0644, file->dir, file, dir 2009 kernel/trace/trace_events.c trace_create_file("trigger", 0644, file->dir, file, dir 2014 kernel/trace/trace_events.c trace_create_file("hist", 0444, file->dir, file, dir 2017 kernel/trace/trace_events.c trace_create_file("format", 0444, file->dir, call, dir 3243 kernel/trace/trace_events.c struct trace_subsystem_dir *dir; dir 3299 kernel/trace/trace_events.c list_for_each_entry(dir, &tr->systems, list) { dir 3301 kernel/trace/trace_events.c system = dir->subsystem; dir 1051 kernel/trace/trace_events_filter.c static void filter_free_subsystem_preds(struct trace_subsystem_dir *dir, dir 1057 kernel/trace/trace_events_filter.c if (file->system != dir) dir 1069 kernel/trace/trace_events_filter.c static void filter_free_subsystem_filters(struct trace_subsystem_dir *dir, dir 1075 kernel/trace/trace_events_filter.c if (file->system != dir) dir 1590 kernel/trace/trace_events_filter.c static int process_system_preds(struct trace_subsystem_dir *dir, dir 1605 kernel/trace/trace_events_filter.c if (file->system != dir) dir 1773 kernel/trace/trace_events_filter.c static int create_system_filter(struct trace_subsystem_dir *dir, dir 1782 kernel/trace/trace_events_filter.c err = process_system_preds(dir, tr, pe, filter_str); dir 1848 kernel/trace/trace_events_filter.c int apply_subsystem_event_filter(struct trace_subsystem_dir *dir, dir 1851 kernel/trace/trace_events_filter.c struct event_subsystem *system = dir->subsystem; dir 1852 kernel/trace/trace_events_filter.c struct trace_array *tr = dir->tr; dir 1859 kernel/trace/trace_events_filter.c if (!dir->nr_events) { dir 1865 kernel/trace/trace_events_filter.c filter_free_subsystem_preds(dir, tr); dir 1871 kernel/trace/trace_events_filter.c filter_free_subsystem_filters(dir, tr); dir 1876 kernel/trace/trace_events_filter.c err = create_system_filter(dir, tr, filter_string, &filter); dir 996 lib/dynamic_debug.c struct dentry *dir; dir 1001 lib/dynamic_debug.c dir = debugfs_create_dir("dynamic_debug", NULL); dir 1002 lib/dynamic_debug.c debugfs_create_file("control", 0644, dir, NULL, &ddebug_proc_fops); dir 218 lib/error-inject.c struct dentry *dir, *file; dir 220 lib/error-inject.c dir = debugfs_create_dir("error_injection", NULL); dir 221 lib/error-inject.c if (!dir) dir 224 lib/error-inject.c file = debugfs_create_file("list", 0444, dir, NULL, &debugfs_ei_ops); dir 226 lib/error-inject.c debugfs_remove(dir); dir 201 lib/fault-inject.c struct dentry *dir; dir 203 lib/fault-inject.c dir = debugfs_create_dir(name, parent); dir 204 lib/fault-inject.c if (IS_ERR(dir)) dir 205 lib/fault-inject.c return dir; dir 207 lib/fault-inject.c debugfs_create_ul("probability", mode, dir, &attr->probability); dir 208 lib/fault-inject.c debugfs_create_ul("interval", mode, dir, &attr->interval); dir 209 lib/fault-inject.c debugfs_create_atomic_t("times", mode, dir, &attr->times); dir 210 lib/fault-inject.c debugfs_create_atomic_t("space", mode, dir, &attr->space); dir 211 lib/fault-inject.c debugfs_create_ul("verbose", mode, dir, &attr->verbose); dir 212 lib/fault-inject.c debugfs_create_u32("verbose_ratelimit_interval_ms", mode, dir, dir 214 lib/fault-inject.c debugfs_create_u32("verbose_ratelimit_burst", mode, dir, dir 216 lib/fault-inject.c debugfs_create_bool("task-filter", mode, dir, &attr->task_filter); dir 219 lib/fault-inject.c debugfs_create_stacktrace_depth("stacktrace-depth", mode, dir, dir 221 lib/fault-inject.c debugfs_create_ul("require-start", mode, dir, &attr->require_start); dir 222 lib/fault-inject.c debugfs_create_ul("require-end", mode, dir, &attr->require_end); dir 223 lib/fault-inject.c debugfs_create_ul("reject-start", mode, dir, &attr->reject_start); dir 224 lib/fault-inject.c debugfs_create_ul("reject-end", mode, dir, &attr->reject_end); dir 227 lib/fault-inject.c attr->dname = dget(dir); dir 228 lib/fault-inject.c return dir; dir 20 lib/memory-notifier-error-inject.c static struct dentry *dir; dir 26 lib/memory-notifier-error-inject.c dir = notifier_err_inject_init("memory", notifier_err_inject_dir, dir 28 lib/memory-notifier-error-inject.c if (IS_ERR(dir)) dir 29 lib/memory-notifier-error-inject.c return PTR_ERR(dir); dir 33 lib/memory-notifier-error-inject.c debugfs_remove_recursive(dir); dir 41 lib/memory-notifier-error-inject.c debugfs_remove_recursive(dir); dir 27 lib/netdev-notifier-error-inject.c static struct dentry *dir; dir 33 lib/netdev-notifier-error-inject.c dir = notifier_err_inject_init("netdev", notifier_err_inject_dir, dir 35 lib/netdev-notifier-error-inject.c if (IS_ERR(dir)) dir 36 lib/netdev-notifier-error-inject.c return PTR_ERR(dir); dir 40 lib/netdev-notifier-error-inject.c debugfs_remove_recursive(dir); dir 48 lib/netdev-notifier-error-inject.c debugfs_remove_recursive(dir); dir 55 lib/notifier-error-inject.c struct dentry *dir; dir 61 lib/notifier-error-inject.c dir = debugfs_create_dir(name, parent); dir 63 lib/notifier-error-inject.c actions_dir = debugfs_create_dir("actions", dir); dir 77 lib/notifier-error-inject.c return dir; dir 23 lib/of-reconfig-notifier-error-inject.c static struct dentry *dir; dir 29 lib/of-reconfig-notifier-error-inject.c dir = notifier_err_inject_init("OF-reconfig", dir 31 lib/of-reconfig-notifier-error-inject.c if (IS_ERR(dir)) dir 32 lib/of-reconfig-notifier-error-inject.c return PTR_ERR(dir); dir 36 lib/of-reconfig-notifier-error-inject.c debugfs_remove_recursive(dir); dir 44 lib/of-reconfig-notifier-error-inject.c debugfs_remove_recursive(dir); dir 21 lib/pm-notifier-error-inject.c static struct dentry *dir; dir 27 lib/pm-notifier-error-inject.c dir = notifier_err_inject_init("pm", notifier_err_inject_dir, dir 29 lib/pm-notifier-error-inject.c if (IS_ERR(dir)) dir 30 lib/pm-notifier-error-inject.c return PTR_ERR(dir); dir 34 lib/pm-notifier-error-inject.c debugfs_remove_recursive(dir); dir 42 lib/pm-notifier-error-inject.c debugfs_remove_recursive(dir); dir 45 mm/failslab.c struct dentry *dir; dir 48 mm/failslab.c dir = fault_create_debugfs_attr("failslab", NULL, &failslab.attr); dir 49 mm/failslab.c if (IS_ERR(dir)) dir 50 mm/failslab.c return PTR_ERR(dir); dir 52 mm/failslab.c debugfs_create_bool("ignore-gfp-wait", mode, dir, dir 54 mm/failslab.c debugfs_create_bool("cache-filter", mode, dir, dir 976 mm/hmm.c enum dma_data_direction dir = DMA_TO_DEVICE; dir 1001 mm/hmm.c dir = DMA_BIDIRECTIONAL; dir 1003 mm/hmm.c daddrs[i] = dma_map_page(device, page, 0, PAGE_SIZE, dir); dir 1016 mm/hmm.c enum dma_data_direction dir = DMA_TO_DEVICE; dir 1028 mm/hmm.c dir = DMA_BIDIRECTIONAL; dir 1030 mm/hmm.c dma_unmap_page(device, daddrs[i], PAGE_SIZE, dir); dir 1069 mm/hmm.c enum dma_data_direction dir = DMA_TO_DEVICE; dir 1078 mm/hmm.c dir = DMA_BIDIRECTIONAL; dir 1089 mm/hmm.c dma_unmap_page(device, daddrs[i], PAGE_SIZE, dir); dir 3360 mm/page_alloc.c struct dentry *dir; dir 3362 mm/page_alloc.c dir = fault_create_debugfs_attr("fail_page_alloc", NULL, dir 3365 mm/page_alloc.c debugfs_create_bool("ignore-gfp-wait", mode, dir, dir 3367 mm/page_alloc.c debugfs_create_bool("ignore-gfp-highmem", mode, dir, dir 3369 mm/page_alloc.c debugfs_create_u32("min-order", mode, dir, &fail_page_alloc.min_order); dir 267 mm/process_vm_access.c int dir = vm_write ? WRITE : READ; dir 273 mm/process_vm_access.c rc = import_iovec(dir, lvec, liovcnt, UIO_FASTIOV, &iov_l, &iter); dir 325 mm/process_vm_access.c int dir = vm_write ? WRITE : READ; dir 330 mm/process_vm_access.c rc = compat_import_iovec(dir, lvec, liovcnt, UIO_FASTIOV, &iov_l, &iter); dir 2241 mm/shmem.c static struct inode *shmem_get_inode(struct super_block *sb, const struct inode *dir, dir 2254 mm/shmem.c inode_init_owner(inode, dir, mode); dir 2882 mm/shmem.c shmem_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) dir 2887 mm/shmem.c inode = shmem_get_inode(dir->i_sb, dir, mode, dev, VM_NORESERVE); dir 2889 mm/shmem.c error = simple_acl_create(dir, inode); dir 2892 mm/shmem.c error = security_inode_init_security(inode, dir, dir 2899 mm/shmem.c dir->i_size += BOGO_DIRENT_SIZE; dir 2900 mm/shmem.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 2911 mm/shmem.c shmem_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) dir 2916 mm/shmem.c inode = shmem_get_inode(dir->i_sb, dir, mode, 0, VM_NORESERVE); dir 2918 mm/shmem.c error = security_inode_init_security(inode, dir, dir 2923 mm/shmem.c error = simple_acl_create(dir, inode); dir 2934 mm/shmem.c static int shmem_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 2938 mm/shmem.c if ((error = shmem_mknod(dir, dentry, mode | S_IFDIR, 0))) dir 2940 mm/shmem.c inc_nlink(dir); dir 2944 mm/shmem.c static int shmem_create(struct inode *dir, struct dentry *dentry, umode_t mode, dir 2947 mm/shmem.c return shmem_mknod(dir, dentry, mode | S_IFREG, 0); dir 2953 mm/shmem.c static int shmem_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) dir 2971 mm/shmem.c dir->i_size += BOGO_DIRENT_SIZE; dir 2972 mm/shmem.c inode->i_ctime = dir->i_ctime = dir->i_mtime = current_time(inode); dir 2981 mm/shmem.c static int shmem_unlink(struct inode *dir, struct dentry *dentry) dir 2988 mm/shmem.c dir->i_size -= BOGO_DIRENT_SIZE; dir 2989 mm/shmem.c inode->i_ctime = dir->i_ctime = dir->i_mtime = current_time(inode); dir 2995 mm/shmem.c static int shmem_rmdir(struct inode *dir, struct dentry *dentry) dir 3001 mm/shmem.c drop_nlink(dir); dir 3002 mm/shmem.c return shmem_unlink(dir, dentry); dir 3100 mm/shmem.c static int shmem_symlink(struct inode *dir, struct dentry *dentry, const char *symname) dir 3111 mm/shmem.c inode = shmem_get_inode(dir->i_sb, dir, S_IFLNK | 0777, 0, dir 3116 mm/shmem.c error = security_inode_init_security(inode, dir, &dentry->d_name, dir 3149 mm/shmem.c dir->i_size += BOGO_DIRENT_SIZE; dir 3150 mm/shmem.c dir->i_ctime = dir->i_mtime = current_time(dir); dir 4087 mm/shmem.c #define shmem_get_inode(sb, dir, mode, dev, flags) ramfs_get_inode(sb, dir, mode, dev) dir 343 net/batman-adv/debugfs.c struct dentry *dir; dir 345 net/batman-adv/debugfs.c dir = hard_iface->debug_dir; dir 346 net/batman-adv/debugfs.c if (!dir) dir 349 net/batman-adv/debugfs.c debugfs_rename(dir->d_parent, dir, dir->d_parent, name); dir 415 net/batman-adv/debugfs.c struct dentry *dir; dir 417 net/batman-adv/debugfs.c dir = bat_priv->debug_dir; dir 418 net/batman-adv/debugfs.c if (!dir) dir 421 net/batman-adv/debugfs.c debugfs_rename(dir->d_parent, dir, dir->d_parent, name); dir 88 net/bluetooth/rfcomm/core.c #define __dlci(dir, chn) (((chn & 0x1f) << 1) | dir) dir 2313 net/bridge/br_multicast.c const struct sk_buff *skb, u8 type, u8 dir) dir 2325 net/bridge/br_multicast.c pstats->mstats.igmp_v1reports[dir]++; dir 2328 net/bridge/br_multicast.c pstats->mstats.igmp_v2reports[dir]++; dir 2331 net/bridge/br_multicast.c pstats->mstats.igmp_v3reports[dir]++; dir 2335 net/bridge/br_multicast.c pstats->mstats.igmp_v3queries[dir]++; dir 2345 net/bridge/br_multicast.c pstats->mstats.igmp_v1queries[dir]++; dir 2347 net/bridge/br_multicast.c pstats->mstats.igmp_v2queries[dir]++; dir 2351 net/bridge/br_multicast.c pstats->mstats.igmp_leaves[dir]++; dir 2362 net/bridge/br_multicast.c pstats->mstats.mld_v1reports[dir]++; dir 2365 net/bridge/br_multicast.c pstats->mstats.mld_v2reports[dir]++; dir 2369 net/bridge/br_multicast.c pstats->mstats.mld_v2queries[dir]++; dir 2371 net/bridge/br_multicast.c pstats->mstats.mld_v1queries[dir]++; dir 2374 net/bridge/br_multicast.c pstats->mstats.mld_leaves[dir]++; dir 2384 net/bridge/br_multicast.c const struct sk_buff *skb, u8 type, u8 dir) dir 2399 net/bridge/br_multicast.c br_mcast_stats_add(stats, skb, type, dir); dir 697 net/bridge/br_private.h const struct sk_buff *skb, u8 type, u8 dir); dir 844 net/bridge/br_private.h u8 type, u8 dir) dir 65 net/caif/cfpkt_skbuff.c struct cfpkt *cfpkt_fromnative(enum caif_direction dir, void *nativepkt) dir 552 net/dcb/dcbnl.c struct nlattr **tb, struct sk_buff *skb, int dir) dir 607 net/dcb/dcbnl.c if (dir) { dir 661 net/dcb/dcbnl.c if (dir) { dir 767 net/dcb/dcbnl.c int dir) dir 824 net/dcb/dcbnl.c if (dir) { dir 844 net/dcb/dcbnl.c if (dir) { dir 1175 net/dcb/dcbnl.c int dir) dir 1179 net/dcb/dcbnl.c int i = dir ? DCB_ATTR_CEE_TX_PG : DCB_ATTR_CEE_RX_PG; dir 1196 net/dcb/dcbnl.c if (!dir) dir 1214 net/dcb/dcbnl.c if (!dir) dir 184 net/ipv4/arp.c int arp_mc_map(__be32 addr, u8 *haddr, struct net_device *dev, int dir) dir 199 net/ipv4/arp.c if (dir) { dir 548 net/ipv4/ip_gre.c md->u.md2.dir, dir 671 net/ipv4/ip_gre.c tunnel->dir, tunnel->hwid, dir 1185 net/ipv4/ip_gre.c t->dir = nla_get_u8(data[IFLA_GRE_ERSPAN_DIR]); dir 1186 net/ipv4/ip_gre.c if (t->dir & ~(DIR_MASK >> DIR_OFFSET)) dir 1466 net/ipv4/ip_gre.c if (nla_put_u8(skb, IFLA_GRE_ERSPAN_DIR, t->dir)) dir 98 net/ipv4/netfilter/nf_nat_h323.c int dir = CTINFO2DIR(ctinfo); dir 105 net/ipv4/netfilter/nf_nat_h323.c if (addr.ip == ct->tuplehash[dir].tuple.src.u3.ip && dir 106 net/ipv4/netfilter/nf_nat_h323.c port == info->sig_port[dir]) { dir 118 net/ipv4/netfilter/nf_nat_h323.c &ct->tuplehash[!dir].tuple.dst.u3.ip, dir 119 net/ipv4/netfilter/nf_nat_h323.c info->sig_port[!dir]); dir 122 net/ipv4/netfilter/nf_nat_h323.c &ct->tuplehash[!dir]. dir 124 net/ipv4/netfilter/nf_nat_h323.c info->sig_port[!dir]); dir 125 net/ipv4/netfilter/nf_nat_h323.c } else if (addr.ip == ct->tuplehash[dir].tuple.dst.u3.ip && dir 126 net/ipv4/netfilter/nf_nat_h323.c port == info->sig_port[dir]) { dir 130 net/ipv4/netfilter/nf_nat_h323.c &ct->tuplehash[!dir].tuple.src.u3.ip, dir 131 net/ipv4/netfilter/nf_nat_h323.c info->sig_port[!dir]); dir 134 net/ipv4/netfilter/nf_nat_h323.c &ct->tuplehash[!dir]. dir 136 net/ipv4/netfilter/nf_nat_h323.c info->sig_port[!dir]); dir 150 net/ipv4/netfilter/nf_nat_h323.c int dir = CTINFO2DIR(ctinfo); dir 157 net/ipv4/netfilter/nf_nat_h323.c addr.ip == ct->tuplehash[dir].tuple.src.u3.ip && dir 158 net/ipv4/netfilter/nf_nat_h323.c port == ct->tuplehash[dir].tuple.src.u.udp.port) { dir 161 net/ipv4/netfilter/nf_nat_h323.c &ct->tuplehash[!dir].tuple.dst.u3.ip, dir 162 net/ipv4/netfilter/nf_nat_h323.c ntohs(ct->tuplehash[!dir].tuple.dst.u.udp.port)); dir 164 net/ipv4/netfilter/nf_nat_h323.c &ct->tuplehash[!dir].tuple.dst.u3, dir 165 net/ipv4/netfilter/nf_nat_h323.c ct->tuplehash[!dir].tuple. dir 183 net/ipv4/netfilter/nf_nat_h323.c int dir = CTINFO2DIR(ctinfo); dir 190 net/ipv4/netfilter/nf_nat_h323.c rtp_exp->dir = !dir; dir 193 net/ipv4/netfilter/nf_nat_h323.c rtcp_exp->dir = !dir; dir 197 net/ipv4/netfilter/nf_nat_h323.c if (info->rtp_port[i][dir] == rtp_port) { dir 202 net/ipv4/netfilter/nf_nat_h323.c rtp_exp->tuple.dst.u.udp.port = info->rtp_port[i][dir]; dir 204 net/ipv4/netfilter/nf_nat_h323.c htons(ntohs(info->rtp_port[i][dir]) + 1); dir 206 net/ipv4/netfilter/nf_nat_h323.c } else if (info->rtp_port[i][dir] == 0) { dir 252 net/ipv4/netfilter/nf_nat_h323.c &ct->tuplehash[!dir].tuple.dst.u3, dir 261 net/ipv4/netfilter/nf_nat_h323.c info->rtp_port[i][dir] = rtp_port; dir 262 net/ipv4/netfilter/nf_nat_h323.c info->rtp_port[i][!dir] = htons(nated_port); dir 286 net/ipv4/netfilter/nf_nat_h323.c int dir = CTINFO2DIR(ctinfo); dir 292 net/ipv4/netfilter/nf_nat_h323.c exp->dir = !dir; dir 315 net/ipv4/netfilter/nf_nat_h323.c &ct->tuplehash[!dir].tuple.dst.u3, dir 338 net/ipv4/netfilter/nf_nat_h323.c int dir = CTINFO2DIR(ctinfo); dir 344 net/ipv4/netfilter/nf_nat_h323.c exp->dir = !dir; dir 347 net/ipv4/netfilter/nf_nat_h323.c if (info->sig_port[dir] == port) dir 348 net/ipv4/netfilter/nf_nat_h323.c nated_port = ntohs(info->sig_port[!dir]); dir 371 net/ipv4/netfilter/nf_nat_h323.c &ct->tuplehash[!dir].tuple.dst.u3, dir 378 net/ipv4/netfilter/nf_nat_h323.c info->sig_port[dir] = port; dir 379 net/ipv4/netfilter/nf_nat_h323.c info->sig_port[!dir] = htons(nated_port); dir 410 net/ipv4/netfilter/nf_nat_h323.c new->tuplehash[!this->dir].tuple.src.u3; dir 417 net/ipv4/netfilter/nf_nat_h323.c new->master->tuplehash[!this->dir].tuple.src.u3; dir 429 net/ipv4/netfilter/nf_nat_h323.c int dir = CTINFO2DIR(ctinfo); dir 436 net/ipv4/netfilter/nf_nat_h323.c exp->dir = !dir; dir 439 net/ipv4/netfilter/nf_nat_h323.c if (info->sig_port[dir] == port) dir 440 net/ipv4/netfilter/nf_nat_h323.c nated_port = ntohs(info->sig_port[!dir]); dir 463 net/ipv4/netfilter/nf_nat_h323.c &ct->tuplehash[!dir].tuple.dst.u3, dir 470 net/ipv4/netfilter/nf_nat_h323.c info->sig_port[dir] = port; dir 471 net/ipv4/netfilter/nf_nat_h323.c info->sig_port[!dir] = htons(nated_port); dir 478 net/ipv4/netfilter/nf_nat_h323.c &ct->tuplehash[!dir].tuple.dst.u3, dir 479 net/ipv4/netfilter/nf_nat_h323.c info->sig_port[!dir])) { dir 507 net/ipv4/netfilter/nf_nat_h323.c new->tuplehash[!this->dir].tuple.src.u3; dir 525 net/ipv4/netfilter/nf_nat_h323.c int dir = CTINFO2DIR(ctinfo); dir 530 net/ipv4/netfilter/nf_nat_h323.c exp->tuple.dst.u3.ip = ct->tuplehash[!dir].tuple.dst.u3.ip; dir 533 net/ipv4/netfilter/nf_nat_h323.c exp->dir = !dir; dir 556 net/ipv4/netfilter/nf_nat_h323.c &ct->tuplehash[!dir].tuple.dst.u3, dir 63 net/ipv4/netfilter/nf_nat_pptp.c if (exp->dir == IP_CT_DIR_ORIGINAL) { dir 67 net/ipv4/netfilter/nf_nat_pptp.c t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; dir 69 net/ipv4/netfilter/nf_nat_pptp.c t.dst.u3.ip = master->tuplehash[!exp->dir].tuple.dst.u3.ip; dir 76 net/ipv4/netfilter/nf_nat_pptp.c t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; dir 78 net/ipv4/netfilter/nf_nat_pptp.c t.dst.u3.ip = master->tuplehash[!exp->dir].tuple.dst.u3.ip; dir 100 net/ipv4/netfilter/nf_nat_pptp.c = ct->master->tuplehash[!exp->dir].tuple.dst.u3; dir 101 net/ipv4/netfilter/nf_nat_pptp.c if (exp->dir == IP_CT_DIR_ORIGINAL) { dir 110 net/ipv4/netfilter/nf_nat_pptp.c = ct->master->tuplehash[!exp->dir].tuple.src.u3; dir 111 net/ipv4/netfilter/nf_nat_pptp.c if (exp->dir == IP_CT_DIR_REPLY) { dir 220 net/ipv4/netfilter/nf_nat_pptp.c expect_orig->dir = IP_CT_DIR_ORIGINAL; dir 226 net/ipv4/netfilter/nf_nat_pptp.c expect_reply->dir = IP_CT_DIR_REPLY; dir 126 net/ipv4/netfilter/nf_nat_snmp_basic_main.c static int snmp_translate(struct nf_conn *ct, int dir, struct sk_buff *skb) dir 135 net/ipv4/netfilter/nf_nat_snmp_basic_main.c if (dir == IP_CT_DIR_ORIGINAL) { dir 136 net/ipv4/netfilter/nf_nat_snmp_basic_main.c ctx.from = ct->tuplehash[dir].tuple.src.u3.ip; dir 137 net/ipv4/netfilter/nf_nat_snmp_basic_main.c ctx.to = ct->tuplehash[!dir].tuple.dst.u3.ip; dir 139 net/ipv4/netfilter/nf_nat_snmp_basic_main.c ctx.from = ct->tuplehash[!dir].tuple.src.u3.ip; dir 140 net/ipv4/netfilter/nf_nat_snmp_basic_main.c ctx.to = ct->tuplehash[dir].tuple.dst.u3.ip; dir 164 net/ipv4/netfilter/nf_nat_snmp_basic_main.c int dir = CTINFO2DIR(ctinfo); dir 170 net/ipv4/netfilter/nf_nat_snmp_basic_main.c if (udph->source == htons(SNMP_PORT) && dir != IP_CT_DIR_REPLY) dir 172 net/ipv4/netfilter/nf_nat_snmp_basic_main.c if (udph->dest == htons(SNMP_TRAP_PORT) && dir != IP_CT_DIR_ORIGINAL) dir 195 net/ipv4/netfilter/nf_nat_snmp_basic_main.c ret = snmp_translate(ct, dir, skb); dir 244 net/ipv6/ah6.c static int ipv6_clear_mutable_options(struct ipv6hdr *iph, int len, int dir) dir 260 net/ipv6/ah6.c if (dir == XFRM_POLICY_OUT) dir 697 net/ipv6/ip6_fib.c __be32 dir = 0; dir 751 net/ipv6/ip6_fib.c dir = addr_bit_set(addr, fn->fn_bit); dir 753 net/ipv6/ip6_fib.c fn = dir ? dir 790 net/ipv6/ip6_fib.c if (dir) dir 851 net/ipv6/ip6_fib.c if (dir) dir 892 net/ipv6/ip6_fib.c if (dir) dir 1480 net/ipv6/ip6_fib.c __be32 dir; dir 1494 net/ipv6/ip6_fib.c dir = addr_bit_set(args->addr, fn->fn_bit); dir 1496 net/ipv6/ip6_fib.c next = dir ? rcu_dereference(fn->right) : dir 996 net/ipv6/ip6_gre.c md->u.md2.dir, dir 1027 net/ipv6/ip6_gre.c t->parms.dir, dir 1174 net/ipv6/ip6_gre.c t->parms.dir = p->dir; dir 1706 net/ipv6/ip6_gre.c u16 dir = nla_get_u8(data[IFLA_GRE_ERSPAN_DIR]); dir 1708 net/ipv6/ip6_gre.c if (dir & ~(DIR_MASK >> DIR_OFFSET)) dir 1738 net/ipv6/ip6_gre.c parms->dir = nla_get_u8(data[IFLA_GRE_ERSPAN_DIR]); dir 2121 net/ipv6/ip6_gre.c if (nla_put_u8(skb, IFLA_GRE_ERSPAN_DIR, p->dir)) dir 284 net/ipv6/ndisc.c int ndisc_mc_map(const struct in6_addr *addr, char *buf, struct net_device *dev, int dir) dir 301 net/ipv6/ndisc.c if (dir) { dir 1903 net/key/af_key.c static int check_reqid(struct xfrm_policy *xp, int dir, int count, void *ptr) dir 2055 net/key/af_key.c static int pfkey_xfrm_policy2msg(struct sk_buff *skb, const struct xfrm_policy *xp, int dir) dir 2141 net/key/af_key.c pol->sadb_x_policy_dir = dir+1; dir 2205 net/key/af_key.c static int key_notify_policy(struct xfrm_policy *xp, int dir, const struct km_event *c) dir 2215 net/key/af_key.c err = pfkey_xfrm_policy2msg(out_skb, xp, dir); dir 2426 net/key/af_key.c static int key_pol_get_resp(struct sock *sk, struct xfrm_policy *xp, const struct sadb_msg *hdr, int dir) dir 2438 net/key/af_key.c err = pfkey_xfrm_policy2msg(out_skb, xp, dir); dir 2541 net/key/af_key.c u8 dir; dir 2578 net/key/af_key.c dir = pol->sadb_x_policy_dir - 1; dir 2622 net/key/af_key.c return xfrm_migrate(&sel, dir, XFRM_POLICY_TYPE_MAIN, m, i, dir 2640 net/key/af_key.c unsigned int dir; dir 2649 net/key/af_key.c dir = xfrm_policy_id2dir(pol->sadb_x_policy_id); dir 2650 net/key/af_key.c if (dir >= XFRM_POLICY_MAX) dir 2655 net/key/af_key.c dir, pol->sadb_x_policy_id, delete, &err); dir 2668 net/key/af_key.c km_policy_notify(xp, dir, &c); dir 2670 net/key/af_key.c err = key_pol_get_resp(sk, xp, hdr, dir); dir 2678 net/key/af_key.c static int dump_sp(struct xfrm_policy *xp, int dir, int count, void *ptr) dir 2692 net/key/af_key.c err = pfkey_xfrm_policy2msg(out_skb, xp, dir); dir 3079 net/key/af_key.c static int pfkey_send_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) dir 3090 net/key/af_key.c return key_notify_policy(xp, dir, c); dir 3241 net/key/af_key.c u8 *data, int len, int *dir) dir 3251 net/key/af_key.c *dir = -EOPNOTSUPP; dir 3258 net/key/af_key.c *dir = -EOPNOTSUPP; dir 3264 net/key/af_key.c *dir = -EINVAL; dir 3268 net/key/af_key.c *dir = -EINVAL; dir 3278 net/key/af_key.c *dir = -ENOBUFS; dir 3293 net/key/af_key.c (*dir = parse_ipsecrequests(xp, pol)) < 0) dir 3306 net/key/af_key.c *dir = -EINVAL; dir 3309 net/key/af_key.c if ((*dir = verify_sec_ctx_len(p))) dir 3312 net/key/af_key.c *dir = security_xfrm_policy_alloc(&xp->security, uctx, GFP_ATOMIC); dir 3315 net/key/af_key.c if (*dir) dir 3319 net/key/af_key.c *dir = pol->sadb_x_policy_dir-1; dir 3523 net/key/af_key.c static int pfkey_send_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, dir 3600 net/key/af_key.c pol->sadb_x_policy_dir = dir + 1; dir 3634 net/key/af_key.c static int pfkey_send_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, dir 321 net/mac80211/debugfs_key.c debugfs_create_file(#name, 0400, key->debugfs.dir, \ dir 324 net/mac80211/debugfs_key.c debugfs_create_file(#name, 0600, key->debugfs.dir, \ dir 339 net/mac80211/debugfs_key.c key->debugfs.dir = debugfs_create_dir(buf, dir 347 net/mac80211/debugfs_key.c debugfs_create_symlink("station", key->debugfs.dir, buf); dir 369 net/mac80211/debugfs_key.c debugfs_remove_recursive(key->debugfs.dir); dir 370 net/mac80211/debugfs_key.c key->debugfs.dir = NULL; dir 723 net/mac80211/debugfs_netdev.c struct dentry *dir = debugfs_create_dir("mesh_stats", dir 726 net/mac80211/debugfs_netdev.c debugfs_create_file(#name, 0400, dir, sdata, &name##_ops); dir 739 net/mac80211/debugfs_netdev.c struct dentry *dir = debugfs_create_dir("mesh_config", dir 743 net/mac80211/debugfs_netdev.c debugfs_create_file(#name, 0600, dir, sdata, &name##_ops); dir 842 net/mac80211/debugfs_netdev.c struct dentry *dir; dir 845 net/mac80211/debugfs_netdev.c dir = sdata->vif.debugfs_dir; dir 847 net/mac80211/debugfs_netdev.c if (IS_ERR_OR_NULL(dir)) dir 851 net/mac80211/debugfs_netdev.c debugfs_rename(dir->d_parent, dir, dir->d_parent, buf); dir 494 net/mac80211/driver-ops.h struct dentry *dir) dir 504 net/mac80211/driver-ops.h sta, dir); dir 125 net/mac80211/key.h struct dentry *dir; dir 126 net/mac80211/rc80211_minstrel.h void minstrel_add_sta_debugfs(void *priv, void *priv_sta, struct dentry *dir); dir 120 net/mac80211/rc80211_minstrel_ht.h void minstrel_ht_add_sta_debugfs(void *priv, void *priv_sta, struct dentry *dir); dir 317 net/mac80211/rc80211_minstrel_ht_debugfs.c minstrel_ht_add_sta_debugfs(void *priv, void *priv_sta, struct dentry *dir) dir 321 net/mac80211/rc80211_minstrel_ht_debugfs.c debugfs_create_file("rc_stats", 0444, dir, msp, dir 323 net/mac80211/rc80211_minstrel_ht_debugfs.c debugfs_create_file("rc_stats_csv", 0444, dir, msp, dir 603 net/netfilter/core.c .dir = NF_CT_DEFAULT_ZONE_DIR, dir 169 net/netfilter/ipset/ip_set_hash_netiface.c #define IFACE(dir) (par->state->dir ? par->state->dir->name : "") dir 252 net/netfilter/ipvs/ip_vs_nfct.c .dst = { .protonum = cp->protocol, .dir = IP_CT_DIR_ORIGINAL } }; dir 145 net/netfilter/nf_conncount.c nf_ct_zone_id(&conn->zone, conn->zone.dir) == dir 146 net/netfilter/nf_conncount.c nf_ct_zone_id(zone, zone->dir)) dir 157 net/netfilter/nf_conncount.c nf_ct_zone_equal(found_ct, zone, zone->dir)) { dir 284 net/netfilter/nf_conntrack_core.c tuple->dst.dir = IP_CT_DIR_ORIGINAL; dir 430 net/netfilter/nf_conntrack_core.c inverse->dst.dir = !orig->dst.dir; dir 2048 net/netfilter/nf_conntrack_core.c src_tuple = nf_ct_tuple(ct, !hash->tuple.dst.dir); dir 337 net/netfilter/nf_conntrack_ftp.c static int find_nl_seq(u32 seq, const struct nf_ct_ftp_master *info, int dir) dir 341 net/netfilter/nf_conntrack_ftp.c for (i = 0; i < info->seq_aft_nl_num[dir]; i++) dir 342 net/netfilter/nf_conntrack_ftp.c if (info->seq_aft_nl[dir][i] == seq) dir 349 net/netfilter/nf_conntrack_ftp.c struct nf_ct_ftp_master *info, int dir, dir 355 net/netfilter/nf_conntrack_ftp.c for (i = 0; i < info->seq_aft_nl_num[dir]; i++) { dir 356 net/netfilter/nf_conntrack_ftp.c if (info->seq_aft_nl[dir][i] == nl_seq) dir 360 net/netfilter/nf_conntrack_ftp.c if (info->seq_aft_nl_num[dir] < NUM_SEQ_TO_REMEMBER) { dir 361 net/netfilter/nf_conntrack_ftp.c info->seq_aft_nl[dir][info->seq_aft_nl_num[dir]++] = nl_seq; dir 363 net/netfilter/nf_conntrack_ftp.c if (before(info->seq_aft_nl[dir][0], info->seq_aft_nl[dir][1])) dir 368 net/netfilter/nf_conntrack_ftp.c if (after(nl_seq, info->seq_aft_nl[dir][oldest])) dir 369 net/netfilter/nf_conntrack_ftp.c info->seq_aft_nl[dir][oldest] = nl_seq; dir 384 net/netfilter/nf_conntrack_ftp.c int dir = CTINFO2DIR(ctinfo); dir 422 net/netfilter/nf_conntrack_ftp.c if (!find_nl_seq(ntohl(th->seq), ct_ftp_info, dir)) { dir 424 net/netfilter/nf_conntrack_ftp.c if (unlikely(ct_ftp_info->flags[dir] & NF_CT_FTP_SEQ_PICKUP)) { dir 425 net/netfilter/nf_conntrack_ftp.c ct_ftp_info->flags[dir] ^= NF_CT_FTP_SEQ_PICKUP; dir 431 net/netfilter/nf_conntrack_ftp.c ct_ftp_info->seq_aft_nl_num[dir] > 0 ? "" : "(UNSET)", dir 432 net/netfilter/nf_conntrack_ftp.c ct_ftp_info->seq_aft_nl[dir][0], dir 433 net/netfilter/nf_conntrack_ftp.c ct_ftp_info->seq_aft_nl_num[dir] > 1 ? "" : "(UNSET)", dir 434 net/netfilter/nf_conntrack_ftp.c ct_ftp_info->seq_aft_nl[dir][1]); dir 443 net/netfilter/nf_conntrack_ftp.c memcpy(cmd.u3.all, &ct->tuplehash[dir].tuple.src.u3.all, dir 446 net/netfilter/nf_conntrack_ftp.c for (i = 0; i < ARRAY_SIZE(search[dir]); i++) { dir 448 net/netfilter/nf_conntrack_ftp.c search[dir][i].pattern, dir 449 net/netfilter/nf_conntrack_ftp.c search[dir][i].plen, dir 450 net/netfilter/nf_conntrack_ftp.c search[dir][i].skip, dir 451 net/netfilter/nf_conntrack_ftp.c search[dir][i].term, dir 454 net/netfilter/nf_conntrack_ftp.c search[dir][i].getnum); dir 463 net/netfilter/nf_conntrack_ftp.c search[dir][i].pattern); dir 485 net/netfilter/nf_conntrack_ftp.c daddr = &ct->tuplehash[!dir].tuple.dst.u3; dir 489 net/netfilter/nf_conntrack_ftp.c memcmp(&cmd.u3.all, &ct->tuplehash[dir].tuple.src.u3.all, dir 498 net/netfilter/nf_conntrack_ftp.c &ct->tuplehash[dir].tuple.src.u3.ip); dir 502 net/netfilter/nf_conntrack_ftp.c ct->tuplehash[dir].tuple.src.u3.ip6); dir 517 net/netfilter/nf_conntrack_ftp.c &ct->tuplehash[!dir].tuple.src.u3, daddr, dir 524 net/netfilter/nf_conntrack_ftp.c ret = nf_nat_ftp(skb, ctinfo, search[dir][i].ftptype, dir 542 net/netfilter/nf_conntrack_ftp.c update_nl_seq(ct, seq, ct_ftp_info, dir, skb); dir 123 net/netfilter/nf_conntrack_h323_main.c int dir = CTINFO2DIR(ctinfo); dir 154 net/netfilter/nf_conntrack_h323_main.c if (info->tpkt_len[dir] > 0) { dir 157 net/netfilter/nf_conntrack_h323_main.c "bytes\n", info->tpkt_len[dir]); dir 158 net/netfilter/nf_conntrack_h323_main.c if (info->tpkt_len[dir] <= tcpdatalen) { dir 162 net/netfilter/nf_conntrack_h323_main.c *datalen = info->tpkt_len[dir]; dir 198 net/netfilter/nf_conntrack_h323_main.c info->tpkt_len[dir] = tpktlen - 4; dir 213 net/netfilter/nf_conntrack_h323_main.c info->tpkt_len[dir] = 0; dir 217 net/netfilter/nf_conntrack_h323_main.c info->tpkt_len[dir] = 0; dir 261 net/netfilter/nf_conntrack_h323_main.c int dir = CTINFO2DIR(ctinfo); dir 272 net/netfilter/nf_conntrack_h323_main.c memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) || dir 284 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.src.u3, dir 285 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.dst.u3, dir 294 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.src.u3, dir 295 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.dst.u3, dir 298 net/netfilter/nf_conntrack_h323_main.c if (memcmp(&ct->tuplehash[dir].tuple.src.u3, dir 299 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.dst.u3, dir 300 net/netfilter/nf_conntrack_h323_main.c sizeof(ct->tuplehash[dir].tuple.src.u3)) && dir 335 net/netfilter/nf_conntrack_h323_main.c int dir = CTINFO2DIR(ctinfo); dir 344 net/netfilter/nf_conntrack_h323_main.c memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) || dir 352 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.src.u3, dir 353 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.dst.u3, dir 357 net/netfilter/nf_conntrack_h323_main.c if (memcmp(&ct->tuplehash[dir].tuple.src.u3, dir 358 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.dst.u3, dir 359 net/netfilter/nf_conntrack_h323_main.c sizeof(ct->tuplehash[dir].tuple.src.u3)) && dir 672 net/netfilter/nf_conntrack_h323_main.c int dir = CTINFO2DIR(ctinfo); dir 681 net/netfilter/nf_conntrack_h323_main.c memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) || dir 689 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.src.u3, dir 690 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.dst.u3, dir 694 net/netfilter/nf_conntrack_h323_main.c if (memcmp(&ct->tuplehash[dir].tuple.src.u3, dir 695 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.dst.u3, dir 696 net/netfilter/nf_conntrack_h323_main.c sizeof(ct->tuplehash[dir].tuple.src.u3)) && dir 787 net/netfilter/nf_conntrack_h323_main.c int dir = CTINFO2DIR(ctinfo); dir 803 net/netfilter/nf_conntrack_h323_main.c callforward_do_filter(net, &addr, &ct->tuplehash[!dir].tuple.src.u3, dir 813 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.src.u3, &addr, dir 817 net/netfilter/nf_conntrack_h323_main.c if (memcmp(&ct->tuplehash[dir].tuple.src.u3, dir 818 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.dst.u3, dir 819 net/netfilter/nf_conntrack_h323_main.c sizeof(ct->tuplehash[dir].tuple.src.u3)) && dir 846 net/netfilter/nf_conntrack_h323_main.c int dir = CTINFO2DIR(ctinfo); dir 868 net/netfilter/nf_conntrack_h323_main.c memcmp(&addr, &ct->tuplehash[!dir].tuple.src.u3, sizeof(addr))) { dir 870 net/netfilter/nf_conntrack_h323_main.c &addr, ntohs(port), &ct->tuplehash[!dir].tuple.src.u3, dir 871 net/netfilter/nf_conntrack_h323_main.c ntohs(ct->tuplehash[!dir].tuple.src.u.tcp.port)); dir 874 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.src.u3, dir 875 net/netfilter/nf_conntrack_h323_main.c ct->tuplehash[!dir].tuple.src.u.tcp.port); dir 885 net/netfilter/nf_conntrack_h323_main.c memcmp(&addr, &ct->tuplehash[!dir].tuple.dst.u3, sizeof(addr))) { dir 887 net/netfilter/nf_conntrack_h323_main.c &addr, ntohs(port), &ct->tuplehash[!dir].tuple.dst.u3, dir 888 net/netfilter/nf_conntrack_h323_main.c ntohs(ct->tuplehash[!dir].tuple.dst.u.tcp.port)); dir 891 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.dst.u3, dir 892 net/netfilter/nf_conntrack_h323_main.c ct->tuplehash[!dir].tuple.dst.u.tcp.port); dir 1251 net/netfilter/nf_conntrack_h323_main.c int dir = CTINFO2DIR(ctinfo); dir 1262 net/netfilter/nf_conntrack_h323_main.c memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, dir 1275 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.src.u3 : NULL, dir 1276 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.dst.u3, dir 1292 net/netfilter/nf_conntrack_h323_main.c info->sig_port[dir] = port; dir 1324 net/netfilter/nf_conntrack_h323_main.c int dir = CTINFO2DIR(ctinfo); dir 1336 net/netfilter/nf_conntrack_h323_main.c if (!memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) && dir 1337 net/netfilter/nf_conntrack_h323_main.c port == ct->tuplehash[dir].tuple.src.u.udp.port) dir 1348 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.src.u3, &addr, dir 1405 net/netfilter/nf_conntrack_h323_main.c int dir = CTINFO2DIR(ctinfo); dir 1434 net/netfilter/nf_conntrack_h323_main.c exp = find_expect(ct, &ct->tuplehash[dir].tuple.dst.u3, dir 1435 net/netfilter/nf_conntrack_h323_main.c info->sig_port[!dir]); dir 1456 net/netfilter/nf_conntrack_h323_main.c int dir = CTINFO2DIR(ctinfo); dir 1474 net/netfilter/nf_conntrack_h323_main.c info->sig_port[dir] = 0; dir 1475 net/netfilter/nf_conntrack_h323_main.c info->sig_port[!dir] = 0; dir 1489 net/netfilter/nf_conntrack_h323_main.c int dir = CTINFO2DIR(ctinfo); dir 1500 net/netfilter/nf_conntrack_h323_main.c !memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) && dir 1501 net/netfilter/nf_conntrack_h323_main.c port == info->sig_port[dir] && dir 1507 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.dst.u3, dir 1508 net/netfilter/nf_conntrack_h323_main.c info->sig_port[!dir]); dir 1514 net/netfilter/nf_conntrack_h323_main.c !memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) && dir 1520 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.dst.u3, dir 1532 net/netfilter/nf_conntrack_h323_main.c int dir = CTINFO2DIR(ctinfo); dir 1545 net/netfilter/nf_conntrack_h323_main.c if (!memcmp(&addr, &ct->tuplehash[dir].tuple.dst.u3, sizeof(addr))) { dir 1559 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.src.u3, &addr, dir 1597 net/netfilter/nf_conntrack_h323_main.c int dir = CTINFO2DIR(ctinfo); dir 1613 net/netfilter/nf_conntrack_h323_main.c &ct->tuplehash[!dir].tuple.src.u3, &addr, dir 115 net/netfilter/nf_conntrack_irc.c int dir = CTINFO2DIR(ctinfo); dir 126 net/netfilter/nf_conntrack_irc.c if (dir == IP_CT_DIR_REPLY) dir 187 net/netfilter/nf_conntrack_irc.c tuple = &ct->tuplehash[dir].tuple; dir 203 net/netfilter/nf_conntrack_irc.c tuple = &ct->tuplehash[!dir].tuple; dir 146 net/netfilter/nf_conntrack_netlink.c const struct nf_conntrack_zone *zone, int dir) dir 148 net/netfilter/nf_conntrack_netlink.c if (zone->id == NF_CT_DEFAULT_ZONE_ID || zone->dir != dir) dir 237 net/netfilter/nf_conntrack_netlink.c enum ip_conntrack_dir dir, int type) dir 239 net/netfilter/nf_conntrack_netlink.c enum ctattr_type attr = dir ? CTA_COUNTERS_REPLY: CTA_COUNTERS_ORIG; dir 245 net/netfilter/nf_conntrack_netlink.c pkts = atomic64_xchg(&counter[dir].packets, 0); dir 246 net/netfilter/nf_conntrack_netlink.c bytes = atomic64_xchg(&counter[dir].bytes, 0); dir 248 net/netfilter/nf_conntrack_netlink.c pkts = atomic64_read(&counter[dir].packets); dir 249 net/netfilter/nf_conntrack_netlink.c bytes = atomic64_read(&counter[dir].bytes); dir 1113 net/netfilter/nf_conntrack_netlink.c zone->dir = NF_CT_ZONE_DIR_REPL; dir 1115 net/netfilter/nf_conntrack_netlink.c zone->dir = NF_CT_ZONE_DIR_ORIG; dir 1169 net/netfilter/nf_conntrack_netlink.c tuple->dst.dir = IP_CT_DIR_REPLY; dir 1171 net/netfilter/nf_conntrack_netlink.c tuple->dst.dir = IP_CT_DIR_ORIGINAL; dir 2759 net/netfilter/nf_conntrack_netlink.c if (nla_put_be32(skb, CTA_EXPECT_NAT_DIR, htonl(exp->dir))) dir 3237 net/netfilter/nf_conntrack_netlink.c exp->dir = ntohl(nla_get_be32(tb[CTA_EXPECT_NAT_DIR])); dir 212 net/netfilter/nf_conntrack_pptp.c enum ip_conntrack_dir dir; dir 225 net/netfilter/nf_conntrack_pptp.c dir = IP_CT_DIR_ORIGINAL; dir 228 net/netfilter/nf_conntrack_pptp.c &ct->tuplehash[dir].tuple.src.u3, dir 229 net/netfilter/nf_conntrack_pptp.c &ct->tuplehash[dir].tuple.dst.u3, dir 234 net/netfilter/nf_conntrack_pptp.c dir = IP_CT_DIR_REPLY; dir 237 net/netfilter/nf_conntrack_pptp.c &ct->tuplehash[dir].tuple.src.u3, dir 238 net/netfilter/nf_conntrack_pptp.c &ct->tuplehash[dir].tuple.dst.u3, dir 519 net/netfilter/nf_conntrack_pptp.c int dir = CTINFO2DIR(ctinfo); dir 590 net/netfilter/nf_conntrack_pptp.c if (dir == IP_CT_DIR_ORIGINAL) dir 476 net/netfilter/nf_conntrack_proto_dccp.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 502 net/netfilter/nf_conntrack_proto_dccp.c role = ct->proto.dccp.role[dir]; dir 512 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.role[dir] = CT_DCCP_ROLE_CLIENT; dir 513 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.role[!dir] = CT_DCCP_ROLE_SERVER; dir 532 net/netfilter/nf_conntrack_proto_dccp.c if (ct->proto.dccp.last_dir == !dir && dir 535 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.role[!dir] = CT_DCCP_ROLE_CLIENT; dir 536 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.role[dir] = CT_DCCP_ROLE_SERVER; dir 541 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.last_dir = dir; dir 553 net/netfilter/nf_conntrack_proto_dccp.c ct->proto.dccp.last_dir = dir; dir 102 net/netfilter/nf_conntrack_proto_gre.c int nf_ct_gre_keymap_add(struct nf_conn *ct, enum ip_conntrack_dir dir, dir 110 net/netfilter/nf_conntrack_proto_gre.c kmp = &ct_pptp_info->keymap[dir]; dir 118 net/netfilter/nf_conntrack_proto_gre.c dir == IP_CT_DIR_REPLY ? "reply" : "orig", ct); dir 143 net/netfilter/nf_conntrack_proto_gre.c enum ip_conntrack_dir dir; dir 148 net/netfilter/nf_conntrack_proto_gre.c for (dir = IP_CT_DIR_ORIGINAL; dir < IP_CT_DIR_MAX; dir++) { dir 149 net/netfilter/nf_conntrack_proto_gre.c if (ct_pptp_info->keymap[dir]) { dir 151 net/netfilter/nf_conntrack_proto_gre.c ct_pptp_info->keymap[dir]); dir 152 net/netfilter/nf_conntrack_proto_gre.c list_del_rcu(&ct_pptp_info->keymap[dir]->list); dir 153 net/netfilter/nf_conntrack_proto_gre.c kfree_rcu(ct_pptp_info->keymap[dir], rcu); dir 154 net/netfilter/nf_conntrack_proto_gre.c ct_pptp_info->keymap[dir] = NULL; dir 115 net/netfilter/nf_conntrack_proto_icmp.c enum ip_conntrack_dir dir; dir 167 net/netfilter/nf_conntrack_proto_icmp.c dir = NF_CT_DIRECTION(h); dir 168 net/netfilter/nf_conntrack_proto_icmp.c ct_daddr = &ct->tuplehash[dir].tuple.dst.u3; dir 186 net/netfilter/nf_conntrack_proto_icmp.c if (dir == IP_CT_DIR_REPLY) dir 201 net/netfilter/nf_conntrack_proto_sctp.c static int sctp_new_state(enum ip_conntrack_dir dir, dir 262 net/netfilter/nf_conntrack_proto_sctp.c dir, sctp_conntrack_names[cur_state], chunk_type, dir 263 net/netfilter/nf_conntrack_proto_sctp.c sctp_conntrack_names[sctp_conntracks[dir][i][cur_state]]); dir 265 net/netfilter/nf_conntrack_proto_sctp.c return sctp_conntracks[dir][i][cur_state]; dir 364 net/netfilter/nf_conntrack_proto_sctp.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 402 net/netfilter/nf_conntrack_proto_sctp.c sh->vtag != ct->proto.sctp.vtag[dir]) { dir 417 net/netfilter/nf_conntrack_proto_sctp.c if (sh->vtag != ct->proto.sctp.vtag[dir] && dir 418 net/netfilter/nf_conntrack_proto_sctp.c sh->vtag != ct->proto.sctp.vtag[!dir]) dir 422 net/netfilter/nf_conntrack_proto_sctp.c if (sh->vtag != ct->proto.sctp.vtag[dir] && dir 423 net/netfilter/nf_conntrack_proto_sctp.c sh->vtag != ct->proto.sctp.vtag[!dir] && dir 428 net/netfilter/nf_conntrack_proto_sctp.c if (sh->vtag != ct->proto.sctp.vtag[dir]) dir 432 net/netfilter/nf_conntrack_proto_sctp.c if (ct->proto.sctp.vtag[dir] == 0) { dir 434 net/netfilter/nf_conntrack_proto_sctp.c sh->vtag, dir); dir 435 net/netfilter/nf_conntrack_proto_sctp.c ct->proto.sctp.vtag[dir] = sh->vtag; dir 436 net/netfilter/nf_conntrack_proto_sctp.c } else if (sh->vtag != ct->proto.sctp.vtag[dir]) { dir 443 net/netfilter/nf_conntrack_proto_sctp.c new_state = sctp_new_state(dir, old_state, sch->type); dir 449 net/netfilter/nf_conntrack_proto_sctp.c dir, sch->type, old_state); dir 463 net/netfilter/nf_conntrack_proto_sctp.c ih->init_tag, !dir); dir 464 net/netfilter/nf_conntrack_proto_sctp.c ct->proto.sctp.vtag[!dir] = ih->init_tag; dir 480 net/netfilter/nf_conntrack_proto_sctp.c dir == IP_CT_DIR_REPLY && dir 463 net/netfilter/nf_conntrack_proto_tcp.c enum ip_conntrack_dir dir, dir 471 net/netfilter/nf_conntrack_proto_tcp.c struct ip_ct_tcp_state *sender = &state->seen[dir]; dir 472 net/netfilter/nf_conntrack_proto_tcp.c struct ip_ct_tcp_state *receiver = &state->seen[!dir]; dir 473 net/netfilter/nf_conntrack_proto_tcp.c const struct nf_conntrack_tuple *tuple = &ct->tuplehash[dir].tuple; dir 492 net/netfilter/nf_conntrack_proto_tcp.c receiver_offset = nf_ct_seq_offset(ct, !dir, ack - 1); dir 553 net/netfilter/nf_conntrack_proto_tcp.c && dir == IP_CT_DIR_ORIGINAL) dir 555 net/netfilter/nf_conntrack_proto_tcp.c && dir == IP_CT_DIR_REPLY)) dir 656 net/netfilter/nf_conntrack_proto_tcp.c if (state->last_dir == dir dir 663 net/netfilter/nf_conntrack_proto_tcp.c state->last_dir = dir; dir 848 net/netfilter/nf_conntrack_proto_tcp.c enum ip_conntrack_dir dir; dir 865 net/netfilter/nf_conntrack_proto_tcp.c dir = CTINFO2DIR(ctinfo); dir 867 net/netfilter/nf_conntrack_proto_tcp.c new_state = tcp_conntracks[dir][index][old_state]; dir 868 net/netfilter/nf_conntrack_proto_tcp.c tuple = &ct->tuplehash[dir].tuple; dir 886 net/netfilter/nf_conntrack_proto_tcp.c if (((ct->proto.tcp.seen[dir].flags dir 887 net/netfilter/nf_conntrack_proto_tcp.c | ct->proto.tcp.seen[!dir].flags) dir 889 net/netfilter/nf_conntrack_proto_tcp.c || (ct->proto.tcp.last_dir == dir dir 920 net/netfilter/nf_conntrack_proto_tcp.c && ct->proto.tcp.last_dir != dir dir 942 net/netfilter/nf_conntrack_proto_tcp.c memset(&ct->proto.tcp.seen[dir], 0, dir 947 net/netfilter/nf_conntrack_proto_tcp.c ct->proto.tcp.last_dir = dir; dir 960 net/netfilter/nf_conntrack_proto_tcp.c if (index == TCP_SYN_SET && dir == IP_CT_DIR_ORIGINAL) { dir 995 net/netfilter/nf_conntrack_proto_tcp.c index == TCP_ACK_SET && dir == IP_CT_DIR_ORIGINAL && dir 997 net/netfilter/nf_conntrack_proto_tcp.c ct->proto.tcp.seen[dir].td_end - 1 == ntohl(th->seq)) { dir 1005 net/netfilter/nf_conntrack_proto_tcp.c dir, get_conntrack_index(th), old_state); dir 1016 net/netfilter/nf_conntrack_proto_tcp.c ct->proto.tcp.last_dir != dir && dir 1033 net/netfilter/nf_conntrack_proto_tcp.c if (dir == IP_CT_DIR_REPLY && index == TCP_ACK_SET && dir 1041 net/netfilter/nf_conntrack_proto_tcp.c if (ct->proto.tcp.seen[!dir].flags & IP_CT_TCP_FLAG_MAXACK_SET) { dir 1044 net/netfilter/nf_conntrack_proto_tcp.c if (before(seq, ct->proto.tcp.seen[!dir].td_maxack)) { dir 1052 net/netfilter/nf_conntrack_proto_tcp.c seq == ct->proto.tcp.seen[!dir].td_maxack) dir 1060 net/netfilter/nf_conntrack_proto_tcp.c ct->proto.tcp.last_dir == dir && dir 1091 net/netfilter/nf_conntrack_proto_tcp.c if (!tcp_in_window(ct, &ct->proto.tcp, dir, index, dir 1099 net/netfilter/nf_conntrack_proto_tcp.c ct->proto.tcp.last_dir = dir; dir 1111 net/netfilter/nf_conntrack_proto_tcp.c ct->proto.tcp.seen[dir].flags |= IP_CT_TCP_FLAG_CLOSE_INIT; dir 72 net/netfilter/nf_conntrack_sane.c int dir = CTINFO2DIR(ctinfo); dir 100 net/netfilter/nf_conntrack_sane.c if (dir == IP_CT_DIR_ORIGINAL) { dir 13 net/netfilter/nf_conntrack_seqadj.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 23 net/netfilter/nf_conntrack_seqadj.c this_way = &seqadj->seq[dir]; dir 34 net/netfilter/nf_conntrack_seqadj.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 48 net/netfilter/nf_conntrack_seqadj.c this_way = &seqadj->seq[dir]; dir 124 net/netfilter/nf_conntrack_seqadj.c unsigned int dir, optoff, optend; dir 133 net/netfilter/nf_conntrack_seqadj.c dir = CTINFO2DIR(ctinfo); dir 156 net/netfilter/nf_conntrack_seqadj.c &seqadj->seq[!dir]); dir 168 net/netfilter/nf_conntrack_seqadj.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 176 net/netfilter/nf_conntrack_seqadj.c this_way = &seqadj->seq[dir]; dir 177 net/netfilter/nf_conntrack_seqadj.c other_way = &seqadj->seq[!dir]; dir 221 net/netfilter/nf_conntrack_seqadj.c enum ip_conntrack_dir dir, dir 230 net/netfilter/nf_conntrack_seqadj.c this_way = &seqadj->seq[dir]; dir 857 net/netfilter/nf_conntrack_sip.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 867 net/netfilter/nf_conntrack_sip.c if (!nf_inet_addr_cmp(daddr, &ct->tuplehash[dir].tuple.src.u3)) dir 869 net/netfilter/nf_conntrack_sip.c saddr = &ct->tuplehash[!dir].tuple.src.u3; dir 1227 net/netfilter/nf_conntrack_sip.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 1263 net/netfilter/nf_conntrack_sip.c if (!nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.src.u3, &daddr)) dir 1290 net/netfilter/nf_conntrack_sip.c saddr = &ct->tuplehash[!dir].tuple.src.u3; dir 1325 net/netfilter/nf_conntrack_sip.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 1367 net/netfilter/nf_conntrack_sip.c if (!nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.dst.u3, &addr)) dir 1454 net/netfilter/nf_conntrack_sip.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 1469 net/netfilter/nf_conntrack_sip.c port != ct->tuplehash[dir].tuple.src.u.udp.port && dir 1470 net/netfilter/nf_conntrack_sip.c nf_inet_addr_cmp(&addr, &ct->tuplehash[dir].tuple.src.u3)) dir 195 net/netfilter/nf_conntrack_standalone.c int dir) dir 199 net/netfilter/nf_conntrack_standalone.c if (zone->dir != dir) dir 201 net/netfilter/nf_conntrack_standalone.c switch (zone->dir) { dir 217 net/netfilter/nf_conntrack_standalone.c int dir) dir 275 net/netfilter/nf_conntrack_standalone.c seq_print_acct(struct seq_file *s, const struct nf_conn *ct, int dir) dir 286 net/netfilter/nf_conntrack_standalone.c (unsigned long long)atomic64_read(&counter[dir].packets), dir 287 net/netfilter/nf_conntrack_standalone.c (unsigned long long)atomic64_read(&counter[dir].bytes)); dir 29 net/netfilter/nf_flow_table_core.c enum flow_offload_tuple_dir dir) dir 31 net/netfilter/nf_flow_table_core.c struct flow_offload_tuple *ft = &flow->tuplehash[dir].tuple; dir 32 net/netfilter/nf_flow_table_core.c struct nf_conntrack_tuple *ctt = &ct->tuplehash[dir].tuple; dir 33 net/netfilter/nf_flow_table_core.c struct dst_entry *other_dst = route->tuple[!dir].dst; dir 34 net/netfilter/nf_flow_table_core.c struct dst_entry *dst = route->tuple[dir].dst; dir 36 net/netfilter/nf_flow_table_core.c ft->dir = dir; dir 171 net/netfilter/nf_flow_table_core.c return jhash(tuple, offsetof(struct flow_offload_tuple, dir), seed); dir 178 net/netfilter/nf_flow_table_core.c return jhash(&tuplehash->tuple, offsetof(struct flow_offload_tuple, dir), seed); dir 187 net/netfilter/nf_flow_table_core.c if (memcmp(&x->tuple, tuple, offsetof(struct flow_offload_tuple, dir))) dir 273 net/netfilter/nf_flow_table_core.c int dir; dir 280 net/netfilter/nf_flow_table_core.c dir = tuplehash->tuple.dir; dir 281 net/netfilter/nf_flow_table_core.c flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); dir 314 net/netfilter/nf_flow_table_core.c if (tuplehash->tuple.dir) dir 401 net/netfilter/nf_flow_table_core.c u8 protocol, enum flow_offload_tuple_dir dir) dir 412 net/netfilter/nf_flow_table_core.c switch (dir) { dir 433 net/netfilter/nf_flow_table_core.c u8 protocol, enum flow_offload_tuple_dir dir) dir 444 net/netfilter/nf_flow_table_core.c switch (dir) { dir 94 net/netfilter/nf_flow_table_ip.c enum flow_offload_tuple_dir dir) dir 98 net/netfilter/nf_flow_table_ip.c switch (dir) { dir 119 net/netfilter/nf_flow_table_ip.c enum flow_offload_tuple_dir dir) dir 123 net/netfilter/nf_flow_table_ip.c switch (dir) { dir 143 net/netfilter/nf_flow_table_ip.c unsigned int thoff, enum flow_offload_tuple_dir dir) dir 148 net/netfilter/nf_flow_table_ip.c (nf_flow_snat_port(flow, skb, thoff, iph->protocol, dir) < 0 || dir 149 net/netfilter/nf_flow_table_ip.c nf_flow_snat_ip(flow, skb, iph, thoff, dir) < 0)) dir 152 net/netfilter/nf_flow_table_ip.c (nf_flow_dnat_port(flow, skb, thoff, iph->protocol, dir) < 0 || dir 153 net/netfilter/nf_flow_table_ip.c nf_flow_dnat_ip(flow, skb, iph, thoff, dir) < 0)) dir 243 net/netfilter/nf_flow_table_ip.c enum flow_offload_tuple_dir dir; dir 261 net/netfilter/nf_flow_table_ip.c dir = tuplehash->tuple.dir; dir 262 net/netfilter/nf_flow_table_ip.c flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); dir 263 net/netfilter/nf_flow_table_ip.c rt = (struct rtable *)flow->tuplehash[dir].tuple.dst_cache; dir 266 net/netfilter/nf_flow_table_ip.c if (unlikely(nf_flow_exceeds_mtu(skb, flow->tuplehash[dir].tuple.mtu))) dir 281 net/netfilter/nf_flow_table_ip.c if (nf_flow_nat_ip(flow, skb, thoff, dir) < 0) dir 297 net/netfilter/nf_flow_table_ip.c nexthop = rt_nexthop(rt, flow->tuplehash[!dir].tuple.src_v4.s_addr); dir 364 net/netfilter/nf_flow_table_ip.c enum flow_offload_tuple_dir dir) dir 368 net/netfilter/nf_flow_table_ip.c switch (dir) { dir 389 net/netfilter/nf_flow_table_ip.c enum flow_offload_tuple_dir dir) dir 393 net/netfilter/nf_flow_table_ip.c switch (dir) { dir 413 net/netfilter/nf_flow_table_ip.c enum flow_offload_tuple_dir dir) dir 419 net/netfilter/nf_flow_table_ip.c (nf_flow_snat_port(flow, skb, thoff, ip6h->nexthdr, dir) < 0 || dir 420 net/netfilter/nf_flow_table_ip.c nf_flow_snat_ipv6(flow, skb, ip6h, thoff, dir) < 0)) dir 423 net/netfilter/nf_flow_table_ip.c (nf_flow_dnat_port(flow, skb, thoff, ip6h->nexthdr, dir) < 0 || dir 424 net/netfilter/nf_flow_table_ip.c nf_flow_dnat_ipv6(flow, skb, ip6h, thoff, dir) < 0)) dir 474 net/netfilter/nf_flow_table_ip.c enum flow_offload_tuple_dir dir; dir 491 net/netfilter/nf_flow_table_ip.c dir = tuplehash->tuple.dir; dir 492 net/netfilter/nf_flow_table_ip.c flow = container_of(tuplehash, struct flow_offload, tuplehash[dir]); dir 493 net/netfilter/nf_flow_table_ip.c rt = (struct rt6_info *)flow->tuplehash[dir].tuple.dst_cache; dir 496 net/netfilter/nf_flow_table_ip.c if (unlikely(nf_flow_exceeds_mtu(skb, flow->tuplehash[dir].tuple.mtu))) dir 511 net/netfilter/nf_flow_table_ip.c if (nf_flow_nat_ipv6(flow, skb, dir) < 0) dir 527 net/netfilter/nf_flow_table_ip.c nexthop = rt6_nexthop(rt, &flow->tuplehash[!dir].tuple.src_v6); dir 40 net/netfilter/nf_nat_amanda.c exp->dir = IP_CT_DIR_ORIGINAL; dir 57 net/netfilter/nf_nat_core.c enum ip_conntrack_dir dir, dir 61 net/netfilter/nf_nat_core.c const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; dir 89 net/netfilter/nf_nat_core.c enum ip_conntrack_dir dir, dir 94 net/netfilter/nf_nat_core.c const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; dir 125 net/netfilter/nf_nat_core.c enum ip_conntrack_dir dir; dir 134 net/netfilter/nf_nat_core.c dir = CTINFO2DIR(ctinfo); dir 135 net/netfilter/nf_nat_core.c if (dir == IP_CT_DIR_ORIGINAL) dir 142 net/netfilter/nf_nat_core.c nf_nat_ipv4_decode_session(skb, ct, dir, statusbit, fl); dir 145 net/netfilter/nf_nat_core.c nf_nat_ipv6_decode_session(skb, ct, dir, statusbit, fl); dir 701 net/netfilter/nf_nat_core.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 711 net/netfilter/nf_nat_core.c if (dir == IP_CT_DIR_REPLY) dir 716 net/netfilter/nf_nat_core.c verdict = nf_nat_manip_pkt(skb, ct, mtype, dir); dir 73 net/netfilter/nf_nat_ftp.c int dir = CTINFO2DIR(ctinfo); dir 81 net/netfilter/nf_nat_ftp.c newaddr = ct->tuplehash[!dir].tuple.dst.u3; dir 83 net/netfilter/nf_nat_ftp.c exp->dir = !dir; dir 190 net/netfilter/nf_nat_helper.c = ct->master->tuplehash[!exp->dir].tuple.dst.u3; dir 197 net/netfilter/nf_nat_helper.c = ct->master->tuplehash[!exp->dir].tuple.src.u3; dir 48 net/netfilter/nf_nat_irc.c exp->dir = IP_CT_DIR_REPLY; dir 421 net/netfilter/nf_nat_proto.c enum ip_conntrack_dir dir) dir 426 net/netfilter/nf_nat_proto.c nf_ct_invert_tuple(&target, &ct->tuplehash[!dir].tuple); dir 568 net/netfilter/nf_nat_proto.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 595 net/netfilter/nf_nat_proto.c if (dir == IP_CT_DIR_REPLY) dir 602 net/netfilter/nf_nat_proto.c &ct->tuplehash[!dir].tuple, !manip)) dir 615 net/netfilter/nf_nat_proto.c nf_ct_invert_tuple(&target, &ct->tuplehash[!dir].tuple); dir 683 net/netfilter/nf_nat_proto.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 685 net/netfilter/nf_nat_proto.c if (ct->tuplehash[dir].tuple.src.u3.ip != dir 686 net/netfilter/nf_nat_proto.c ct->tuplehash[!dir].tuple.dst.u3.ip || dir 687 net/netfilter/nf_nat_proto.c (ct->tuplehash[dir].tuple.dst.protonum != IPPROTO_ICMP && dir 688 net/netfilter/nf_nat_proto.c ct->tuplehash[dir].tuple.src.u.all != dir 689 net/netfilter/nf_nat_proto.c ct->tuplehash[!dir].tuple.dst.u.all)) { dir 714 net/netfilter/nf_nat_proto.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 716 net/netfilter/nf_nat_proto.c if (ct->tuplehash[dir].tuple.dst.u3.ip != dir 717 net/netfilter/nf_nat_proto.c ct->tuplehash[!dir].tuple.src.u3.ip) { dir 724 net/netfilter/nf_nat_proto.c ct->tuplehash[dir].tuple.dst.protonum != IPPROTO_ICMP && dir 725 net/netfilter/nf_nat_proto.c ct->tuplehash[dir].tuple.dst.u.all != dir 726 net/netfilter/nf_nat_proto.c ct->tuplehash[!dir].tuple.src.u.all) { dir 791 net/netfilter/nf_nat_proto.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 817 net/netfilter/nf_nat_proto.c if (dir == IP_CT_DIR_REPLY) dir 824 net/netfilter/nf_nat_proto.c &ct->tuplehash[!dir].tuple, !manip)) dir 839 net/netfilter/nf_nat_proto.c nf_ct_invert_tuple(&target, &ct->tuplehash[!dir].tuple); dir 920 net/netfilter/nf_nat_proto.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 922 net/netfilter/nf_nat_proto.c if (!nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.src.u3, dir 923 net/netfilter/nf_nat_proto.c &ct->tuplehash[!dir].tuple.dst.u3) || dir 924 net/netfilter/nf_nat_proto.c (ct->tuplehash[dir].tuple.dst.protonum != IPPROTO_ICMPV6 && dir 925 net/netfilter/nf_nat_proto.c ct->tuplehash[dir].tuple.src.u.all != dir 926 net/netfilter/nf_nat_proto.c ct->tuplehash[!dir].tuple.dst.u.all)) { dir 952 net/netfilter/nf_nat_proto.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 954 net/netfilter/nf_nat_proto.c if (!nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.dst.u3, dir 955 net/netfilter/nf_nat_proto.c &ct->tuplehash[!dir].tuple.src.u3)) { dir 962 net/netfilter/nf_nat_proto.c ct->tuplehash[dir].tuple.dst.protonum != IPPROTO_ICMPV6 && dir 963 net/netfilter/nf_nat_proto.c ct->tuplehash[dir].tuple.dst.u.all != dir 964 net/netfilter/nf_nat_proto.c ct->tuplehash[!dir].tuple.src.u.all) { dir 100 net/netfilter/nf_nat_sip.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 107 net/netfilter/nf_nat_sip.c if (nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.src.u3, addr) && dir 108 net/netfilter/nf_nat_sip.c ct->tuplehash[dir].tuple.src.u.udp.port == port) { dir 109 net/netfilter/nf_nat_sip.c newaddr = ct->tuplehash[!dir].tuple.dst.u3; dir 110 net/netfilter/nf_nat_sip.c newport = ct->tuplehash[!dir].tuple.dst.u.udp.port; dir 111 net/netfilter/nf_nat_sip.c } else if (nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.dst.u3, addr) && dir 112 net/netfilter/nf_nat_sip.c ct->tuplehash[dir].tuple.dst.u.udp.port == port) { dir 113 net/netfilter/nf_nat_sip.c newaddr = ct->tuplehash[!dir].tuple.src.u3; dir 115 net/netfilter/nf_nat_sip.c ct->tuplehash[!dir].tuple.src.u.udp.port; dir 151 net/netfilter/nf_nat_sip.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 189 net/netfilter/nf_nat_sip.c &ct->tuplehash[dir].tuple.src.u3) || dir 190 net/netfilter/nf_nat_sip.c port != ct->tuplehash[dir].tuple.src.u.udp.port) dir 194 net/netfilter/nf_nat_sip.c &ct->tuplehash[dir].tuple.dst.u3) || dir 195 net/netfilter/nf_nat_sip.c port != ct->tuplehash[dir].tuple.dst.u.udp.port) dir 213 net/netfilter/nf_nat_sip.c nf_inet_addr_cmp(&addr, &ct->tuplehash[dir].tuple.src.u3) && dir 214 net/netfilter/nf_nat_sip.c !nf_inet_addr_cmp(&addr, &ct->tuplehash[!dir].tuple.dst.u3)) { dir 216 net/netfilter/nf_nat_sip.c &ct->tuplehash[!dir].tuple.dst.u3, dir 230 net/netfilter/nf_nat_sip.c nf_inet_addr_cmp(&addr, &ct->tuplehash[dir].tuple.dst.u3) && dir 231 net/netfilter/nf_nat_sip.c !nf_inet_addr_cmp(&addr, &ct->tuplehash[!dir].tuple.src.u3)) { dir 233 net/netfilter/nf_nat_sip.c &ct->tuplehash[!dir].tuple.src.u3, dir 247 net/netfilter/nf_nat_sip.c htons(n) == ct->tuplehash[dir].tuple.dst.u.udp.port && dir 248 net/netfilter/nf_nat_sip.c htons(n) != ct->tuplehash[!dir].tuple.src.u.udp.port) { dir 249 net/netfilter/nf_nat_sip.c __be16 p = ct->tuplehash[!dir].tuple.src.u.udp.port; dir 282 net/netfilter/nf_nat_sip.c if (dir == IP_CT_DIR_REPLY && ct_sip_info->forced_dport) { dir 361 net/netfilter/nf_nat_sip.c &ct->master->tuplehash[exp->dir].tuple.src.u3)) { dir 364 net/netfilter/nf_nat_sip.c = ct->master->tuplehash[!exp->dir].tuple.dst.u3; dir 382 net/netfilter/nf_nat_sip.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 391 net/netfilter/nf_nat_sip.c if (nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.src.u3, dir 392 net/netfilter/nf_nat_sip.c &ct->tuplehash[!dir].tuple.dst.u3)) dir 395 net/netfilter/nf_nat_sip.c newaddr = ct->tuplehash[!dir].tuple.dst.u3; dir 401 net/netfilter/nf_nat_sip.c ct->tuplehash[dir].tuple.src.u.udp.port; dir 403 net/netfilter/nf_nat_sip.c port = ntohs(ct->tuplehash[!dir].tuple.dst.u.udp.port); dir 410 net/netfilter/nf_nat_sip.c exp->dir = !dir; dir 582 net/netfilter/nf_nat_sip.c enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); dir 586 net/netfilter/nf_nat_sip.c if (nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.src.u3, dir 587 net/netfilter/nf_nat_sip.c &ct->tuplehash[!dir].tuple.dst.u3)) dir 590 net/netfilter/nf_nat_sip.c *rtp_addr = ct->tuplehash[!dir].tuple.dst.u3; dir 595 net/netfilter/nf_nat_sip.c rtp_exp->dir = !dir; dir 601 net/netfilter/nf_nat_sip.c rtcp_exp->dir = !dir; dir 31 net/netfilter/nf_nat_tftp.c exp->dir = IP_CT_DIR_REPLY; dir 28 net/netfilter/nft_ct.c enum ip_conntrack_dir dir:8; dir 139 net/netfilter/nft_ct.c priv->key, priv->dir); dir 149 net/netfilter/nft_ct.c NFT_CT_PKTS, priv->dir); dir 151 net/netfilter/nft_ct.c NFT_CT_BYTES, priv->dir); dir 170 net/netfilter/nft_ct.c if (priv->dir < IP_CT_DIR_MAX) dir 171 net/netfilter/nft_ct.c zoneid = nf_ct_zone_id(zone, priv->dir); dir 188 net/netfilter/nft_ct.c tuple = &ct->tuplehash[priv->dir].tuple; dir 237 net/netfilter/nft_ct.c struct nf_conntrack_zone zone = { .dir = NF_CT_DEFAULT_ZONE_DIR }; dir 250 net/netfilter/nft_ct.c switch (priv->dir) { dir 252 net/netfilter/nft_ct.c zone.dir = NF_CT_ZONE_DIR_ORIG; dir 255 net/netfilter/nft_ct.c zone.dir = NF_CT_ZONE_DIR_REPL; dir 396 net/netfilter/nft_ct.c priv->dir = IP_CT_DIR_MAX; dir 493 net/netfilter/nft_ct.c priv->dir = nla_get_u8(tb[NFTA_CT_DIRECTION]); dir 494 net/netfilter/nft_ct.c switch (priv->dir) { dir 547 net/netfilter/nft_ct.c priv->dir = IP_CT_DIR_MAX; dir 594 net/netfilter/nft_ct.c priv->dir = nla_get_u8(tb[NFTA_CT_DIRECTION]); dir 595 net/netfilter/nft_ct.c switch (priv->dir) { dir 654 net/netfilter/nft_ct.c if (nla_put_u8(skb, NFTA_CT_DIRECTION, priv->dir)) dir 661 net/netfilter/nft_ct.c if (priv->dir < IP_CT_DIR_MAX && dir 662 net/netfilter/nft_ct.c nla_put_u8(skb, NFTA_CT_DIRECTION, priv->dir)) dir 686 net/netfilter/nft_ct.c if (priv->dir < IP_CT_DIR_MAX && dir 687 net/netfilter/nft_ct.c nla_put_u8(skb, NFTA_CT_DIRECTION, priv->dir)) dir 1218 net/netfilter/nft_ct.c enum ip_conntrack_dir dir; dir 1227 net/netfilter/nft_ct.c dir = CTINFO2DIR(ctinfo); dir 1250 net/netfilter/nft_ct.c &ct->tuplehash[!dir].tuple.src.u3, dir 1251 net/netfilter/nft_ct.c &ct->tuplehash[!dir].tuple.dst.u3, dir 25 net/netfilter/nft_flow_offload.c enum ip_conntrack_dir dir) dir 34 net/netfilter/nft_flow_offload.c fl.u.ip4.daddr = ct->tuplehash[dir].tuple.src.u3.ip; dir 38 net/netfilter/nft_flow_offload.c fl.u.ip6.daddr = ct->tuplehash[dir].tuple.src.u3.in6; dir 47 net/netfilter/nft_flow_offload.c route->tuple[dir].dst = this_dst; dir 48 net/netfilter/nft_flow_offload.c route->tuple[!dir].dst = other_dst; dir 80 net/netfilter/nft_flow_offload.c enum ip_conntrack_dir dir; dir 114 net/netfilter/nft_flow_offload.c dir = CTINFO2DIR(ctinfo); dir 115 net/netfilter/nft_flow_offload.c if (nft_flow_route(pkt, ct, &route, dir) < 0) dir 131 net/netfilter/nft_flow_offload.c dst_release(route.tuple[!dir].dst); dir 137 net/netfilter/nft_flow_offload.c dst_release(route.tuple[!dir].dst); dir 261 net/netfilter/nft_tunnel.c uint8_t hwid, dir; dir 288 net/netfilter/nft_tunnel.c dir = nla_get_u8(tb[NFTA_TUNNEL_KEY_ERSPAN_V2_DIR]); dir 291 net/netfilter/nft_tunnel.c opts->u.erspan.u.md2.dir = dir; dir 497 net/netfilter/nft_tunnel.c opts->u.erspan.u.md2.dir)) dir 28 net/netfilter/nft_xfrm.c u8 dir; dir 39 net/netfilter/nft_xfrm.c u8 dir; dir 71 net/netfilter/nft_xfrm.c dir = nla_get_u8(tb[NFTA_XFRM_DIR]); dir 72 net/netfilter/nft_xfrm.c switch (dir) { dir 75 net/netfilter/nft_xfrm.c priv->dir = dir; dir 199 net/netfilter/nft_xfrm.c switch (priv->dir) { dir 223 net/netfilter/nft_xfrm.c if (nla_put_u8(skb, NFTA_XFRM_DIR, priv->dir)) dir 237 net/netfilter/nft_xfrm.c switch (priv->dir) { dir 165 net/netfilter/xt_CT.c zone.dir = xt_ct_flags_to_dir(info); dir 315 net/netlabel/netlabel_addrlist.c char *dir = (src ? "src" : "dst"); dir 319 net/netlabel/netlabel_addrlist.c audit_log_format(audit_buf, " %s=%pI4", dir, &addr); dir 326 net/netlabel/netlabel_addrlist.c audit_log_format(audit_buf, " %s_prefixlen=%d", dir, mask_len); dir 349 net/netlabel/netlabel_addrlist.c char *dir = (src ? "src" : "dst"); dir 353 net/netlabel/netlabel_addrlist.c audit_log_format(audit_buf, " %s=%pI6", dir, addr); dir 365 net/netlabel/netlabel_addrlist.c audit_log_format(audit_buf, " %s_prefixlen=%d", dir, mask_len); dir 67 net/nfc/digital_dep.c u8 dir; dir 78 net/nfc/digital_dep.c u8 dir; dir 90 net/nfc/digital_dep.c u8 dir; dir 98 net/nfc/digital_dep.c u8 dir; dir 104 net/nfc/digital_dep.c u8 dir; dir 326 net/nfc/digital_dep.c (psl_res->dir != DIGITAL_NFC_DEP_FRAME_DIR_IN) || dir 378 net/nfc/digital_dep.c psl_req->dir = DIGITAL_NFC_DEP_FRAME_DIR_OUT; dir 500 net/nfc/digital_dep.c atr_req->dir = DIGITAL_NFC_DEP_FRAME_DIR_OUT; dir 547 net/nfc/digital_dep.c dep_req->dir = DIGITAL_NFC_DEP_FRAME_DIR_OUT; dir 584 net/nfc/digital_dep.c dep_req->dir = DIGITAL_NFC_DEP_FRAME_DIR_OUT; dir 616 net/nfc/digital_dep.c dep_req->dir = DIGITAL_NFC_DEP_FRAME_DIR_OUT; dir 654 net/nfc/digital_dep.c dep_req->dir = DIGITAL_NFC_DEP_FRAME_DIR_OUT; dir 762 net/nfc/digital_dep.c if (resp->len < size || dep_res->dir != DIGITAL_NFC_DEP_FRAME_DIR_IN || dir 919 net/nfc/digital_dep.c dep_req->dir = DIGITAL_NFC_DEP_FRAME_DIR_OUT; dir 996 net/nfc/digital_dep.c dep_res->dir = DIGITAL_NFC_DEP_FRAME_DIR_IN; dir 1041 net/nfc/digital_dep.c dep_res->dir = DIGITAL_NFC_DEP_FRAME_DIR_IN; dir 1114 net/nfc/digital_dep.c if (resp->len < size || dep_req->dir != DIGITAL_NFC_DEP_FRAME_DIR_OUT || dir 1308 net/nfc/digital_dep.c dep_res->dir = DIGITAL_NFC_DEP_FRAME_DIR_IN; dir 1381 net/nfc/digital_dep.c psl_res->dir = DIGITAL_NFC_DEP_FRAME_DIR_IN; dir 1428 net/nfc/digital_dep.c psl_req->dir != DIGITAL_NFC_DEP_FRAME_DIR_OUT || dir 1512 net/nfc/digital_dep.c atr_res->dir = DIGITAL_NFC_DEP_FRAME_DIR_IN; dir 1590 net/nfc/digital_dep.c if (atr_req->dir != DIGITAL_NFC_DEP_FRAME_DIR_OUT || dir 642 net/openvswitch/conntrack.c h = &ct->tuplehash[!h->tuple.dst.dir]; dir 126 net/rds/ib_mr.h void rds_ib_sync_mr(void *trans_private, int dir); dir 73 net/sched/act_connmark.c zone.dir = NF_CT_DEFAULT_ZONE_DIR; dir 121 net/sched/act_ctinfo.c zone.dir = NF_CT_DEFAULT_ZONE_DIR; dir 880 net/sunrpc/auth_gss/auth_gss.c static void gss_pipe_dentry_destroy(struct dentry *dir, dir 892 net/sunrpc/auth_gss/auth_gss.c static int gss_pipe_dentry_create(struct dentry *dir, dir 898 net/sunrpc/auth_gss/auth_gss.c dentry = rpc_mkpipe_dentry(dir, p->name, p->clnt, p->pipe); dir 1868 net/sunrpc/cache.c struct dentry *dir = rpc_create_cache_dir(parent, name, umode, cd); dir 1869 net/sunrpc/cache.c if (IS_ERR(dir)) dir 1870 net/sunrpc/cache.c return PTR_ERR(dir); dir 1871 net/sunrpc/cache.c cd->pipefs = dir; dir 127 net/sunrpc/clnt.c struct dentry *dir, *dentry; dir 129 net/sunrpc/clnt.c dir = rpc_d_lookup_sb(sb, dir_name); dir 130 net/sunrpc/clnt.c if (dir == NULL) { dir 132 net/sunrpc/clnt.c return dir; dir 137 net/sunrpc/clnt.c dentry = rpc_create_client_dir(dir, name, clnt); dir 147 net/sunrpc/clnt.c dput(dir); dir 487 net/sunrpc/rpc_pipe.c static int __rpc_create_common(struct inode *dir, struct dentry *dentry, dir 495 net/sunrpc/rpc_pipe.c inode = rpc_get_inode(dir->i_sb, mode); dir 498 net/sunrpc/rpc_pipe.c inode->i_ino = iunique(dir->i_sb, 100); dir 512 net/sunrpc/rpc_pipe.c static int __rpc_create(struct inode *dir, struct dentry *dentry, dir 519 net/sunrpc/rpc_pipe.c err = __rpc_create_common(dir, dentry, S_IFREG | mode, i_fop, private); dir 522 net/sunrpc/rpc_pipe.c fsnotify_create(dir, dentry); dir 526 net/sunrpc/rpc_pipe.c static int __rpc_mkdir(struct inode *dir, struct dentry *dentry, dir 533 net/sunrpc/rpc_pipe.c err = __rpc_create_common(dir, dentry, S_IFDIR | mode, i_fop, private); dir 536 net/sunrpc/rpc_pipe.c inc_nlink(dir); dir 537 net/sunrpc/rpc_pipe.c fsnotify_mkdir(dir, dentry); dir 577 net/sunrpc/rpc_pipe.c static int __rpc_mkpipe_dentry(struct inode *dir, struct dentry *dentry, dir 586 net/sunrpc/rpc_pipe.c err = __rpc_create_common(dir, dentry, S_IFIFO | mode, i_fop, private); dir 592 net/sunrpc/rpc_pipe.c fsnotify_create(dir, dentry); dir 596 net/sunrpc/rpc_pipe.c static int __rpc_rmdir(struct inode *dir, struct dentry *dentry) dir 601 net/sunrpc/rpc_pipe.c ret = simple_rmdir(dir, dentry); dir 603 net/sunrpc/rpc_pipe.c fsnotify_rmdir(dir, dentry); dir 609 net/sunrpc/rpc_pipe.c static int __rpc_unlink(struct inode *dir, struct dentry *dentry) dir 614 net/sunrpc/rpc_pipe.c ret = simple_unlink(dir, dentry); dir 616 net/sunrpc/rpc_pipe.c fsnotify_unlink(dir, dentry); dir 622 net/sunrpc/rpc_pipe.c static int __rpc_rmpipe(struct inode *dir, struct dentry *dentry) dir 627 net/sunrpc/rpc_pipe.c return __rpc_unlink(dir, dentry); dir 653 net/sunrpc/rpc_pipe.c struct inode *dir = d_inode(parent); dir 671 net/sunrpc/rpc_pipe.c __rpc_unlink(dir, dentry); dir 674 net/sunrpc/rpc_pipe.c __rpc_rmdir(dir, dentry); dir 685 net/sunrpc/rpc_pipe.c struct inode *dir = d_inode(parent); dir 687 net/sunrpc/rpc_pipe.c inode_lock_nested(dir, I_MUTEX_CHILD); dir 689 net/sunrpc/rpc_pipe.c inode_unlock(dir); dir 697 net/sunrpc/rpc_pipe.c struct inode *dir = d_inode(parent); dir 701 net/sunrpc/rpc_pipe.c inode_lock(dir); dir 711 net/sunrpc/rpc_pipe.c err = __rpc_create(dir, dentry, dir 717 net/sunrpc/rpc_pipe.c err = __rpc_mkdir(dir, dentry, dir 725 net/sunrpc/rpc_pipe.c inode_unlock(dir); dir 729 net/sunrpc/rpc_pipe.c inode_unlock(dir); dir 740 net/sunrpc/rpc_pipe.c struct inode *dir = d_inode(parent); dir 743 net/sunrpc/rpc_pipe.c inode_lock_nested(dir, I_MUTEX_PARENT); dir 747 net/sunrpc/rpc_pipe.c error = __rpc_mkdir(dir, dentry, mode, NULL, private); dir 756 net/sunrpc/rpc_pipe.c inode_unlock(dir); dir 759 net/sunrpc/rpc_pipe.c __rpc_rmdir(dir, dentry); dir 769 net/sunrpc/rpc_pipe.c struct inode *dir; dir 773 net/sunrpc/rpc_pipe.c dir = d_inode(parent); dir 774 net/sunrpc/rpc_pipe.c inode_lock_nested(dir, I_MUTEX_PARENT); dir 777 net/sunrpc/rpc_pipe.c error = __rpc_rmdir(dir, dentry); dir 778 net/sunrpc/rpc_pipe.c inode_unlock(dir); dir 805 net/sunrpc/rpc_pipe.c struct inode *dir = d_inode(parent); dir 814 net/sunrpc/rpc_pipe.c inode_lock_nested(dir, I_MUTEX_PARENT); dir 818 net/sunrpc/rpc_pipe.c err = __rpc_mkpipe_dentry(dir, dentry, umode, &rpc_pipe_fops, dir 823 net/sunrpc/rpc_pipe.c inode_unlock(dir); dir 846 net/sunrpc/rpc_pipe.c struct inode *dir; dir 850 net/sunrpc/rpc_pipe.c dir = d_inode(parent); dir 851 net/sunrpc/rpc_pipe.c inode_lock_nested(dir, I_MUTEX_PARENT); dir 852 net/sunrpc/rpc_pipe.c error = __rpc_rmpipe(dir, dentry); dir 853 net/sunrpc/rpc_pipe.c inode_unlock(dir); dir 996 net/sunrpc/rpc_pipe.c struct dentry *dir = pdh->pdh_dentry; dir 999 net/sunrpc/rpc_pipe.c pdo->pdo_ops->create(dir, pdo); dir 1006 net/sunrpc/rpc_pipe.c struct dentry *dir = pdh->pdh_dentry; dir 1009 net/sunrpc/rpc_pipe.c pdo->pdo_ops->destroy(dir, pdo); dir 1192 net/sunrpc/rpc_pipe.c struct qstr dir = QSTR_INIT(dir_name, strlen(dir_name)); dir 1193 net/sunrpc/rpc_pipe.c return d_hash_and_lookup(sb->s_root, &dir); dir 1505 net/sunrpc/svc.c u32 dir; dir 1522 net/sunrpc/svc.c dir = svc_getnl(argv); dir 1523 net/sunrpc/svc.c if (dir != 0) { dir 1525 net/sunrpc/svc.c svc_printk(rqstp, "bad direction %d, dropping request\n", dir); dir 136 net/sunrpc/xprtrdma/svc_rdma_rw.c enum dma_data_direction dir) dir 146 net/sunrpc/xprtrdma/svc_rdma_rw.c ctxt->rw_nents, dir); dir 113 net/xfrm/xfrm_policy.c u8 dir, type; dir 165 net/xfrm/xfrm_policy.c static void __xfrm_policy_link(struct xfrm_policy *pol, int dir); dir 167 net/xfrm/xfrm_policy.c int dir); dir 170 net/xfrm/xfrm_policy.c xfrm_policy_inexact_lookup(struct net *net, u8 type, u16 family, u8 dir, dir 175 net/xfrm/xfrm_policy.c u8 type, u16 family, u8 dir, u32 if_id); dir 316 net/xfrm/xfrm_policy.c int dir; dir 323 net/xfrm/xfrm_policy.c dir = xfrm_policy_id2dir(xp->index); dir 363 net/xfrm/xfrm_policy.c km_policy_expired(xp, dir, 0, 0); dir 375 net/xfrm/xfrm_policy.c if (!xfrm_policy_delete(xp, dir)) dir 376 net/xfrm/xfrm_policy.c km_policy_expired(xp, dir, 1, 0); dir 459 net/xfrm/xfrm_policy.c unsigned short family, int dir, dir 464 net/xfrm/xfrm_policy.c *dbits = net->xfrm.policy_bydst[dir].dbits4; dir 465 net/xfrm/xfrm_policy.c *sbits = net->xfrm.policy_bydst[dir].sbits4; dir 469 net/xfrm/xfrm_policy.c *dbits = net->xfrm.policy_bydst[dir].dbits6; dir 470 net/xfrm/xfrm_policy.c *sbits = net->xfrm.policy_bydst[dir].sbits6; dir 481 net/xfrm/xfrm_policy.c unsigned short family, int dir) dir 483 net/xfrm/xfrm_policy.c unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; dir 488 net/xfrm/xfrm_policy.c __get_hash_thresh(net, family, dir, &dbits, &sbits); dir 494 net/xfrm/xfrm_policy.c return rcu_dereference_check(net->xfrm.policy_bydst[dir].table, dir 501 net/xfrm/xfrm_policy.c unsigned short family, int dir) dir 503 net/xfrm/xfrm_policy.c unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; dir 508 net/xfrm/xfrm_policy.c __get_hash_thresh(net, family, dir, &dbits, &sbits); dir 511 net/xfrm/xfrm_policy.c return rcu_dereference_check(net->xfrm.policy_bydst[dir].table, dir 519 net/xfrm/xfrm_policy.c int dir) dir 531 net/xfrm/xfrm_policy.c __get_hash_thresh(net, pol->family, dir, &dbits, &sbits); dir 572 net/xfrm/xfrm_policy.c static void xfrm_bydst_resize(struct net *net, int dir) dir 574 net/xfrm/xfrm_policy.c unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; dir 587 net/xfrm/xfrm_policy.c odst = rcu_dereference_protected(net->xfrm.policy_bydst[dir].table, dir 591 net/xfrm/xfrm_policy.c xfrm_dst_hash_transfer(net, odst + i, ndst, nhashmask, dir); dir 593 net/xfrm/xfrm_policy.c rcu_assign_pointer(net->xfrm.policy_bydst[dir].table, ndst); dir 594 net/xfrm/xfrm_policy.c net->xfrm.policy_bydst[dir].hmask = nhashmask; dir 629 net/xfrm/xfrm_policy.c static inline int xfrm_bydst_should_resize(struct net *net, int dir, int *total) dir 631 net/xfrm/xfrm_policy.c unsigned int cnt = net->xfrm.policy_count[dir]; dir 632 net/xfrm/xfrm_policy.c unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; dir 672 net/xfrm/xfrm_policy.c int dir, total; dir 677 net/xfrm/xfrm_policy.c for (dir = 0; dir < XFRM_POLICY_MAX; dir++) { dir 678 net/xfrm/xfrm_policy.c if (xfrm_bydst_should_resize(net, dir, &total)) dir 679 net/xfrm/xfrm_policy.c xfrm_bydst_resize(net, dir); dir 692 net/xfrm/xfrm_policy.c xfrm_policy_inexact_alloc_bin(const struct xfrm_policy *pol, u8 dir) dir 698 net/xfrm/xfrm_policy.c .dir = dir, dir 978 net/xfrm/xfrm_policy.c u16 family, u8 prefixlen, u8 dir) dir 1113 net/xfrm/xfrm_policy.c struct xfrm_policy *policy, u8 dir) dir 1133 net/xfrm/xfrm_policy.c dir); dir 1147 net/xfrm/xfrm_policy.c policy->selector.prefixlen_d, dir); dir 1163 net/xfrm/xfrm_policy.c policy->selector.prefixlen_s, dir); dir 1172 net/xfrm/xfrm_policy.c xfrm_policy_inexact_insert(struct xfrm_policy *policy, u8 dir, int excl) dir 1179 net/xfrm/xfrm_policy.c bin = xfrm_policy_inexact_alloc_bin(policy, dir); dir 1186 net/xfrm/xfrm_policy.c chain = xfrm_policy_inexact_alloc_chain(bin, policy, dir); dir 1198 net/xfrm/xfrm_policy.c chain = &net->xfrm.policy_inexact[dir]; dir 1218 net/xfrm/xfrm_policy.c int dir; dir 1244 net/xfrm/xfrm_policy.c dir = xfrm_policy_id2dir(policy->index); dir 1245 net/xfrm/xfrm_policy.c if (policy->walk.dead || dir >= XFRM_POLICY_MAX) dir 1248 net/xfrm/xfrm_policy.c if ((dir & XFRM_POLICY_MASK) == XFRM_POLICY_OUT) { dir 1270 net/xfrm/xfrm_policy.c bin = xfrm_policy_inexact_alloc_bin(policy, dir); dir 1274 net/xfrm/xfrm_policy.c if (!xfrm_policy_inexact_alloc_chain(bin, policy, dir)) dir 1279 net/xfrm/xfrm_policy.c for (dir = 0; dir < XFRM_POLICY_MAX; dir++) { dir 1283 net/xfrm/xfrm_policy.c &net->xfrm.policy_inexact[dir], dir 1289 net/xfrm/xfrm_policy.c hmask = net->xfrm.policy_bydst[dir].hmask; dir 1290 net/xfrm/xfrm_policy.c odst = net->xfrm.policy_bydst[dir].table; dir 1295 net/xfrm/xfrm_policy.c if ((dir & XFRM_POLICY_MASK) == XFRM_POLICY_OUT) { dir 1297 net/xfrm/xfrm_policy.c net->xfrm.policy_bydst[dir].dbits4 = rbits4; dir 1298 net/xfrm/xfrm_policy.c net->xfrm.policy_bydst[dir].sbits4 = lbits4; dir 1299 net/xfrm/xfrm_policy.c net->xfrm.policy_bydst[dir].dbits6 = rbits6; dir 1300 net/xfrm/xfrm_policy.c net->xfrm.policy_bydst[dir].sbits6 = lbits6; dir 1303 net/xfrm/xfrm_policy.c net->xfrm.policy_bydst[dir].dbits4 = lbits4; dir 1304 net/xfrm/xfrm_policy.c net->xfrm.policy_bydst[dir].sbits4 = rbits4; dir 1305 net/xfrm/xfrm_policy.c net->xfrm.policy_bydst[dir].dbits6 = lbits6; dir 1306 net/xfrm/xfrm_policy.c net->xfrm.policy_bydst[dir].sbits6 = rbits6; dir 1314 net/xfrm/xfrm_policy.c dir = xfrm_policy_id2dir(policy->index); dir 1315 net/xfrm/xfrm_policy.c if (dir >= XFRM_POLICY_MAX) { dir 1321 net/xfrm/xfrm_policy.c policy->family, dir); dir 1324 net/xfrm/xfrm_policy.c void *p = xfrm_policy_inexact_insert(policy, dir, 0); dir 1358 net/xfrm/xfrm_policy.c static u32 xfrm_gen_index(struct net *net, int dir, u32 index) dir 1369 net/xfrm/xfrm_policy.c idx = (idx_generator | dir); dir 1446 net/xfrm/xfrm_policy.c u32 a = k->type << 24 | k->dir << 16 | k->family; dir 1469 net/xfrm/xfrm_policy.c ret = b->k.dir ^ key->dir; dir 1562 net/xfrm/xfrm_policy.c int xfrm_policy_insert(int dir, struct xfrm_policy *policy, int excl) dir 1569 net/xfrm/xfrm_policy.c chain = policy_hash_bysel(net, &policy->selector, policy->family, dir); dir 1573 net/xfrm/xfrm_policy.c delpol = xfrm_policy_inexact_insert(policy, dir, excl); dir 1580 net/xfrm/xfrm_policy.c __xfrm_policy_link(policy, dir); dir 1590 net/xfrm/xfrm_policy.c __xfrm_policy_unlink(delpol, dir); dir 1592 net/xfrm/xfrm_policy.c policy->index = delpol ? delpol->index : xfrm_gen_index(net, dir, policy->index); dir 1602 net/xfrm/xfrm_policy.c else if (xfrm_bydst_should_resize(net, dir, NULL)) dir 1611 net/xfrm/xfrm_policy.c u8 type, int dir, dir 1633 net/xfrm/xfrm_policy.c u8 type, int dir, dir 1644 net/xfrm/xfrm_policy.c chain = policy_hash_bysel(net, sel, sel->family, dir); dir 1650 net/xfrm/xfrm_policy.c sel->family, dir, if_id); dir 1668 net/xfrm/xfrm_policy.c if_id, type, dir, dir 1677 net/xfrm/xfrm_policy.c pol = __xfrm_policy_bysel_ctx(chain, mark, if_id, type, dir, dir 1689 net/xfrm/xfrm_policy.c __xfrm_policy_unlink(pol, dir); dir 1704 net/xfrm/xfrm_policy.c u8 type, int dir, u32 id, int delete, dir 1711 net/xfrm/xfrm_policy.c if (xfrm_policy_id2dir(id) != dir) dir 1730 net/xfrm/xfrm_policy.c __xfrm_policy_unlink(pol, dir); dir 1775 net/xfrm/xfrm_policy.c int dir, err = 0, cnt = 0; dir 1786 net/xfrm/xfrm_policy.c dir = xfrm_policy_id2dir(pol->index); dir 1788 net/xfrm/xfrm_policy.c dir >= XFRM_POLICY_MAX || dir 1792 net/xfrm/xfrm_policy.c __xfrm_policy_unlink(pol, dir); dir 1885 net/xfrm/xfrm_policy.c u8 type, u16 family, int dir, u32 if_id) dir 1900 net/xfrm/xfrm_policy.c dir); dir 1977 net/xfrm/xfrm_policy.c u8 dir, u32 if_id) dir 1982 net/xfrm/xfrm_policy.c .dir = dir, dir 1994 net/xfrm/xfrm_policy.c u8 dir, u32 if_id) dir 2001 net/xfrm/xfrm_policy.c bin = xfrm_policy_inexact_lookup_rcu(net, type, family, dir, if_id); dir 2011 net/xfrm/xfrm_policy.c u8 type, u16 family, int dir, u32 if_id) dir 2025 net/xfrm/xfrm_policy.c err = xfrm_policy_match(pol, fl, type, family, dir, if_id); dir 2050 net/xfrm/xfrm_policy.c u8 type, u16 family, int dir, u32 if_id) dir 2058 net/xfrm/xfrm_policy.c fl, type, family, dir, dir 2073 net/xfrm/xfrm_policy.c u16 family, u8 dir, dir 2093 net/xfrm/xfrm_policy.c chain = policy_hash_direct(net, daddr, saddr, family, dir); dir 2098 net/xfrm/xfrm_policy.c err = xfrm_policy_match(pol, fl, type, family, dir, if_id); dir 2111 net/xfrm/xfrm_policy.c bin = xfrm_policy_inexact_lookup_rcu(net, type, family, dir, if_id); dir 2117 net/xfrm/xfrm_policy.c family, dir, if_id); dir 2138 net/xfrm/xfrm_policy.c u16 family, u8 dir, u32 if_id) dir 2144 net/xfrm/xfrm_policy.c dir, if_id); dir 2149 net/xfrm/xfrm_policy.c dir, if_id); dir 2152 net/xfrm/xfrm_policy.c static struct xfrm_policy *xfrm_sk_policy_lookup(const struct sock *sk, int dir, dir 2160 net/xfrm/xfrm_policy.c pol = rcu_dereference(sk->sk_policy[dir]); dir 2179 net/xfrm/xfrm_policy.c dir); dir 2196 net/xfrm/xfrm_policy.c static void __xfrm_policy_link(struct xfrm_policy *pol, int dir) dir 2201 net/xfrm/xfrm_policy.c net->xfrm.policy_count[dir]++; dir 2206 net/xfrm/xfrm_policy.c int dir) dir 2221 net/xfrm/xfrm_policy.c net->xfrm.policy_count[dir]--; dir 2226 net/xfrm/xfrm_policy.c static void xfrm_sk_policy_link(struct xfrm_policy *pol, int dir) dir 2228 net/xfrm/xfrm_policy.c __xfrm_policy_link(pol, XFRM_POLICY_MAX + dir); dir 2231 net/xfrm/xfrm_policy.c static void xfrm_sk_policy_unlink(struct xfrm_policy *pol, int dir) dir 2233 net/xfrm/xfrm_policy.c __xfrm_policy_unlink(pol, XFRM_POLICY_MAX + dir); dir 2236 net/xfrm/xfrm_policy.c int xfrm_policy_delete(struct xfrm_policy *pol, int dir) dir 2241 net/xfrm/xfrm_policy.c pol = __xfrm_policy_unlink(pol, dir); dir 2251 net/xfrm/xfrm_policy.c int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol) dir 2262 net/xfrm/xfrm_policy.c old_pol = rcu_dereference_protected(sk->sk_policy[dir], dir 2266 net/xfrm/xfrm_policy.c pol->index = xfrm_gen_index(net, XFRM_POLICY_MAX+dir, 0); dir 2267 net/xfrm/xfrm_policy.c xfrm_sk_policy_link(pol, dir); dir 2269 net/xfrm/xfrm_policy.c rcu_assign_pointer(sk->sk_policy[dir], pol); dir 2277 net/xfrm/xfrm_policy.c xfrm_sk_policy_unlink(old_pol, dir); dir 2287 net/xfrm/xfrm_policy.c static struct xfrm_policy *clone_policy(const struct xfrm_policy *old, int dir) dir 2312 net/xfrm/xfrm_policy.c xfrm_sk_policy_link(newp, dir); dir 2928 net/xfrm/xfrm_policy.c u16 family, u8 dir, dir 2938 net/xfrm/xfrm_policy.c pols[0] = xfrm_policy_lookup(net, fl, family, dir, if_id); dir 3024 net/xfrm/xfrm_policy.c u8 dir = XFRM_POLICY_OUT; dir 3079 net/xfrm/xfrm_policy.c xdst = xfrm_bundle_lookup(net, fl, family, dir, &xflo, if_id); dir 3502 net/xfrm/xfrm_policy.c int __xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *skb, dir 3531 net/xfrm/xfrm_policy.c reverse = dir & ~XFRM_POLICY_MASK; dir 3532 net/xfrm/xfrm_policy.c dir &= XFRM_POLICY_MASK; dir 3557 net/xfrm/xfrm_policy.c if (sk && sk->sk_policy[dir]) { dir 3558 net/xfrm/xfrm_policy.c pol = xfrm_sk_policy_lookup(sk, dir, &fl, family, if_id); dir 3566 net/xfrm/xfrm_policy.c pol = xfrm_policy_lookup(net, &fl, family, dir, if_id); dir 4006 net/xfrm/xfrm_policy.c int dir, err; dir 4026 net/xfrm/xfrm_policy.c for (dir = 0; dir < XFRM_POLICY_MAX; dir++) { dir 4029 net/xfrm/xfrm_policy.c net->xfrm.policy_count[dir] = 0; dir 4030 net/xfrm/xfrm_policy.c net->xfrm.policy_count[XFRM_POLICY_MAX + dir] = 0; dir 4031 net/xfrm/xfrm_policy.c INIT_HLIST_HEAD(&net->xfrm.policy_inexact[dir]); dir 4033 net/xfrm/xfrm_policy.c htab = &net->xfrm.policy_bydst[dir]; dir 4057 net/xfrm/xfrm_policy.c for (dir--; dir >= 0; dir--) { dir 4060 net/xfrm/xfrm_policy.c htab = &net->xfrm.policy_bydst[dir]; dir 4072 net/xfrm/xfrm_policy.c int dir; dir 4082 net/xfrm/xfrm_policy.c for (dir = 0; dir < XFRM_POLICY_MAX; dir++) { dir 4085 net/xfrm/xfrm_policy.c WARN_ON(!hlist_empty(&net->xfrm.policy_inexact[dir])); dir 4087 net/xfrm/xfrm_policy.c htab = &net->xfrm.policy_bydst[dir]; dir 4249 net/xfrm/xfrm_policy.c u8 dir, u8 type, struct net *net) dir 4256 net/xfrm/xfrm_policy.c chain = policy_hash_direct(net, &sel->daddr, &sel->saddr, sel->family, dir); dir 4265 net/xfrm/xfrm_policy.c chain = &net->xfrm.policy_inexact[dir]; dir 4383 net/xfrm/xfrm_policy.c int xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, dir 4399 net/xfrm/xfrm_policy.c if (dir >= XFRM_POLICY_MAX) { dir 4405 net/xfrm/xfrm_policy.c if ((pol = xfrm_migrate_policy_find(sel, dir, type, net)) == NULL) { dir 4437 net/xfrm/xfrm_policy.c km_migrate(sel, dir, type, m, num_migrate, k, encap); dir 2120 net/xfrm/xfrm_state.c void km_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) dir 2127 net/xfrm/xfrm_state.c km->notify_policy(xp, dir, c); dir 2192 net/xfrm/xfrm_state.c void km_policy_expired(struct xfrm_policy *pol, int dir, int hard, u32 portid) dir 2199 net/xfrm/xfrm_state.c km_policy_notify(pol, dir, &c); dir 2204 net/xfrm/xfrm_state.c int km_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, dir 2216 net/xfrm/xfrm_state.c ret = km->migrate(sel, dir, type, m, num_migrate, k, dir 1369 net/xfrm/xfrm_user.c static int verify_policy_dir(u8 dir) dir 1371 net/xfrm/xfrm_user.c switch (dir) { dir 1445 net/xfrm/xfrm_user.c ret = verify_policy_dir(p->dir); dir 1448 net/xfrm/xfrm_user.c if (p->index && (xfrm_policy_id2dir(p->index) != p->dir)) dir 1596 net/xfrm/xfrm_user.c static void copy_to_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p, int dir) dir 1605 net/xfrm/xfrm_user.c p->dir = dir; dir 1671 net/xfrm/xfrm_user.c err = xfrm_policy_insert(p->dir, xp, excl); dir 1683 net/xfrm/xfrm_user.c km_policy_notify(xp, p->dir, &c); dir 1761 net/xfrm/xfrm_user.c static int dump_one_policy(struct xfrm_policy *xp, int dir, int count, void *ptr) dir 1776 net/xfrm/xfrm_user.c copy_to_user_policy(xp, p, dir); dir 1831 net/xfrm/xfrm_user.c int dir, u32 seq) dir 1846 net/xfrm/xfrm_user.c err = dump_one_policy(xp, dir, 0, &info); dir 1876 net/xfrm/xfrm_user.c err = verify_policy_dir(p->dir); dir 1884 net/xfrm/xfrm_user.c xp = xfrm_policy_byid(net, mark, if_id, type, p->dir, p->index, delete, &err); dir 1901 net/xfrm/xfrm_user.c xp = xfrm_policy_bysel_ctx(net, mark, if_id, type, p->dir, &p->sel, dir 1911 net/xfrm/xfrm_user.c resp_skb = xfrm_policy_netlink(skb, xp, p->dir, nlh->nlmsg_seq); dir 1928 net/xfrm/xfrm_user.c km_policy_notify(xp, p->dir, &c); dir 2176 net/xfrm/xfrm_user.c err = verify_policy_dir(p->dir); dir 2184 net/xfrm/xfrm_user.c xp = xfrm_policy_byid(net, mark, if_id, type, p->dir, p->index, 0, &err); dir 2201 net/xfrm/xfrm_user.c xp = xfrm_policy_bysel_ctx(net, mark, if_id, type, p->dir, dir 2213 net/xfrm/xfrm_user.c xfrm_policy_delete(xp, p->dir); dir 2216 net/xfrm/xfrm_user.c km_policy_expired(xp, p->dir, up->hard, nlh->nlmsg_pid); dir 2397 net/xfrm/xfrm_user.c err = xfrm_migrate(&pi->sel, pi->dir, type, m, n, kmp, net, encap); dir 2456 net/xfrm/xfrm_user.c const struct xfrm_encap_tmpl *encap, u8 dir, u8 type) dir 2471 net/xfrm/xfrm_user.c pol_id->dir = dir; dir 2500 net/xfrm/xfrm_user.c static int xfrm_send_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, dir 2515 net/xfrm/xfrm_user.c err = build_migrate(skb, m, num_migrate, k, sel, encap, dir, type); dir 2521 net/xfrm/xfrm_user.c static int xfrm_send_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, dir 2983 net/xfrm/xfrm_user.c u8 *data, int len, int *dir) dir 2994 net/xfrm/xfrm_user.c *dir = -EOPNOTSUPP; dir 3001 net/xfrm/xfrm_user.c *dir = -EOPNOTSUPP; dir 3007 net/xfrm/xfrm_user.c *dir = -EINVAL; dir 3011 net/xfrm/xfrm_user.c *dir = -EINVAL; dir 3021 net/xfrm/xfrm_user.c if (p->dir > XFRM_POLICY_OUT) dir 3026 net/xfrm/xfrm_user.c *dir = -ENOBUFS; dir 3034 net/xfrm/xfrm_user.c *dir = p->dir; dir 3049 net/xfrm/xfrm_user.c int dir, const struct km_event *c) dir 3061 net/xfrm/xfrm_user.c copy_to_user_policy(xp, &upe->pol, dir); dir 3081 net/xfrm/xfrm_user.c static int xfrm_exp_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) dir 3091 net/xfrm/xfrm_user.c err = build_polexpire(skb, xp, dir, c); dir 3097 net/xfrm/xfrm_user.c static int xfrm_notify_policy(struct xfrm_policy *xp, int dir, const struct km_event *c) dir 3132 net/xfrm/xfrm_user.c id->dir = dir; dir 3146 net/xfrm/xfrm_user.c copy_to_user_policy(xp, p, dir); dir 3194 net/xfrm/xfrm_user.c static int xfrm_send_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) dir 3201 net/xfrm/xfrm_user.c return xfrm_notify_policy(xp, dir, c); dir 3205 net/xfrm/xfrm_user.c return xfrm_exp_policy_notify(xp, dir, c); dir 87 samples/mic/mpssd/mpssd.h char *readsysfs(char *dir, char *entry); dir 88 samples/mic/mpssd/mpssd.h int setsysfs(char *dir, char *entry, char *value); dir 15 samples/mic/mpssd/sysfs.c readsysfs(char *dir, char *entry) dir 23 samples/mic/mpssd/sysfs.c if (dir == NULL) dir 27 samples/mic/mpssd/sysfs.c "%s/%s/%s", MICSYSFSDIR, dir, entry); dir 57 samples/mic/mpssd/sysfs.c setsysfs(char *dir, char *entry, char *value) dir 63 samples/mic/mpssd/sysfs.c if (dir == NULL) dir 67 samples/mic/mpssd/sysfs.c MICSYSFSDIR, dir, entry); dir 69 samples/mic/mpssd/sysfs.c oldvalue = readsysfs(dir, entry); dir 320 scripts/asn1_compiler.c const char *const *pdir = _pdir, *dir = *pdir; dir 324 scripts/asn1_compiler.c dlen = strlen(dir); dir 329 scripts/asn1_compiler.c val = memcmp(token->content, dir, clen); dir 412 scripts/asn1_compiler.c const char **dir; dir 442 scripts/asn1_compiler.c dir = bsearch(&tokens[tix], directives, dir 446 scripts/asn1_compiler.c if (dir) { dir 447 scripts/asn1_compiler.c tokens[tix++].token_type = dir - directives; dir 146 scripts/basic/fixdep.c static void print_dep(const char *m, int slen, const char *dir) dir 150 scripts/basic/fixdep.c xprintf(" $(wildcard %s/", dir); dir 68 scripts/dtc/include-prefixes/dt-bindings/pinctrl/omap.h #define AM33XX_PADCONF(pa, dir, mux) OMAP_IOPAD_OFFSET((pa), 0x0800) ((dir) | (mux)) dir 32 scripts/dtc/srcpos.c char *dir = xmalloc(len + 1); dir 34 scripts/dtc/srcpos.c memcpy(dir, path, len); dir 35 scripts/dtc/srcpos.c dir[len] = '\0'; dir 36 scripts/dtc/srcpos.c return dir; dir 136 scripts/dtc/srcpos.c cur_dir = current_srcfile->dir; dir 182 scripts/dtc/srcpos.c srcfile->dir = get_dirname(srcfile->name); dir 16 scripts/dtc/srcpos.h char *dir; dir 143 scripts/gcc-plugins/gcc-common.h void debug_dominance_info(enum cdi_direction dir); dir 144 scripts/gcc-plugins/gcc-common.h void debug_dominance_tree(enum cdi_direction dir, basic_block root); dir 307 scripts/mod/sumversion.c char *cmd, *file, *line, *dir; dir 323 scripts/mod/sumversion.c dir = NOFAIL(malloc(dirlen + 1)); dir 324 scripts/mod/sumversion.c strncpy(dir, objfile, dirlen); dir 325 scripts/mod/sumversion.c dir[dirlen] = '\0'; dir 371 scripts/mod/sumversion.c if ((strstr(line, dir)+strlen(dir)-1) == strrchr(line, '/')) { dir 387 scripts/mod/sumversion.c free(dir); dir 181 security/apparmor/apparmorfs.c static int __aafs_setup_d_inode(struct inode *dir, struct dentry *dentry, dir 186 security/apparmor/apparmorfs.c struct inode *inode = new_inode(dir->i_sb); dir 188 security/apparmor/apparmorfs.c AA_BUG(!dir); dir 202 security/apparmor/apparmorfs.c inc_nlink(dir); dir 237 security/apparmor/apparmorfs.c struct inode *dir; dir 250 security/apparmor/apparmorfs.c dir = d_inode(parent); dir 252 security/apparmor/apparmorfs.c inode_lock(dir); dir 264 security/apparmor/apparmorfs.c error = __aafs_setup_d_inode(dir, dentry, mode, data, link, fops, iops); dir 267 security/apparmor/apparmorfs.c inode_unlock(dir); dir 275 security/apparmor/apparmorfs.c inode_unlock(dir); dir 352 security/apparmor/apparmorfs.c struct inode *dir; dir 357 security/apparmor/apparmorfs.c dir = d_inode(dentry->d_parent); dir 358 security/apparmor/apparmorfs.c inode_lock(dir); dir 361 security/apparmor/apparmorfs.c simple_rmdir(dir, dentry); dir 363 security/apparmor/apparmorfs.c simple_unlink(dir, dentry); dir 367 security/apparmor/apparmorfs.c inode_unlock(dir); dir 1350 security/apparmor/apparmorfs.c struct dentry *dent, *dir; dir 1366 security/apparmor/apparmorfs.c dir = aafs_create_dir(rawdata->name, ns_subdata_dir(ns)); dir 1367 security/apparmor/apparmorfs.c if (IS_ERR(dir)) dir 1369 security/apparmor/apparmorfs.c return PTR_ERR(dir); dir 1370 security/apparmor/apparmorfs.c rawdata->dents[AAFS_LOADDATA_DIR] = dir; dir 1372 security/apparmor/apparmorfs.c dent = aafs_create_file("abi", S_IFREG | 0444, dir, rawdata, dir 1378 security/apparmor/apparmorfs.c dent = aafs_create_file("revision", S_IFREG | 0444, dir, rawdata, dir 1385 security/apparmor/apparmorfs.c dent = aafs_create_file("sha1", S_IFREG | 0444, dir, dir 1393 security/apparmor/apparmorfs.c dir, rawdata, &rawdata_fops); dir 1461 security/apparmor/apparmorfs.c static struct dentry *create_profile_file(struct dentry *dir, const char *name, dir 1468 security/apparmor/apparmorfs.c dent = aafs_create_file(name, S_IFREG | 0444, dir, proxy, fops); dir 1584 security/apparmor/apparmorfs.c struct dentry *dent = NULL, *dir; dir 1619 security/apparmor/apparmorfs.c prof_dir(profile) = dir = dent; dir 1621 security/apparmor/apparmorfs.c dent = create_profile_file(dir, "name", profile, dir 1627 security/apparmor/apparmorfs.c dent = create_profile_file(dir, "mode", profile, dir 1633 security/apparmor/apparmorfs.c dent = create_profile_file(dir, "attach", profile, dir 1640 security/apparmor/apparmorfs.c dent = create_profile_file(dir, "sha1", profile, dir 1648 security/apparmor/apparmorfs.c dent = aafs_create_symlink("raw_sha1", dir, NULL, dir 1656 security/apparmor/apparmorfs.c dent = aafs_create_symlink("raw_abi", dir, NULL, dir 1664 security/apparmor/apparmorfs.c dent = aafs_create_symlink("raw_data", dir, NULL, dir 1690 security/apparmor/apparmorfs.c static int ns_mkdir_op(struct inode *dir, struct dentry *dentry, umode_t mode) dir 1703 security/apparmor/apparmorfs.c parent = aa_get_ns(dir->i_private); dir 1704 security/apparmor/apparmorfs.c AA_BUG(d_inode(ns_subns_dir(parent)) != dir); dir 1709 security/apparmor/apparmorfs.c inode_unlock(dir); dir 1712 security/apparmor/apparmorfs.c inode_lock_nested(dir, I_MUTEX_PARENT); dir 1716 security/apparmor/apparmorfs.c error = __aafs_setup_d_inode(dir, dentry, mode | S_IFDIR, NULL, dir 1739 security/apparmor/apparmorfs.c static int ns_rmdir_op(struct inode *dir, struct dentry *dentry) dir 1752 security/apparmor/apparmorfs.c parent = aa_get_ns(dir->i_private); dir 1757 security/apparmor/apparmorfs.c inode_unlock(dir); dir 1774 security/apparmor/apparmorfs.c inode_lock_nested(dir, I_MUTEX_PARENT); dir 1850 security/apparmor/apparmorfs.c static int __aafs_ns_mkdir_entries(struct aa_ns *ns, struct dentry *dir) dir 1855 security/apparmor/apparmorfs.c AA_BUG(!dir); dir 1857 security/apparmor/apparmorfs.c dent = aafs_create_dir("profiles", dir); dir 1862 security/apparmor/apparmorfs.c dent = aafs_create_dir("raw_data", dir); dir 1867 security/apparmor/apparmorfs.c dent = aafs_create_file("revision", 0444, dir, ns, dir 1874 security/apparmor/apparmorfs.c dent = aafs_create_file(".load", 0640, dir, ns, dir 1881 security/apparmor/apparmorfs.c dent = aafs_create_file(".replace", 0640, dir, ns, dir 1888 security/apparmor/apparmorfs.c dent = aafs_create_file(".remove", 0640, dir, ns, dir 1896 security/apparmor/apparmorfs.c dent = aafs_create("namespaces", S_IFDIR | 0755, dir, ns, NULL, NULL, dir 1914 security/apparmor/apparmorfs.c struct dentry *dir; dir 1931 security/apparmor/apparmorfs.c ns_dir(ns) = dir = dent; dir 1932 security/apparmor/apparmorfs.c error = __aafs_ns_mkdir_entries(ns, dir); dir 2339 security/apparmor/apparmorfs.c struct dentry *dir; dir 2342 security/apparmor/apparmorfs.c dir = securityfs_create_dir(fs_dir->name, parent); dir 2343 security/apparmor/apparmorfs.c if (IS_ERR(dir)) dir 2344 security/apparmor/apparmorfs.c return PTR_ERR(dir); dir 2345 security/apparmor/apparmorfs.c fs_dir->dentry = dir; dir 95 security/apparmor/include/policy_ns.h struct dentry *dir); dir 237 security/apparmor/lsm.c static int common_perm_dir_dentry(const char *op, const struct path *dir, dir 241 security/apparmor/lsm.c struct path path = { .mnt = dir->mnt, .dentry = dentry }; dir 255 security/apparmor/lsm.c static int common_perm_rm(const char *op, const struct path *dir, dir 267 security/apparmor/lsm.c return common_perm_dir_dentry(op, dir, dentry, mask, &cond); dir 280 security/apparmor/lsm.c static int common_perm_create(const char *op, const struct path *dir, dir 285 security/apparmor/lsm.c if (!path_mediated_fs(dir->dentry)) dir 288 security/apparmor/lsm.c return common_perm_dir_dentry(op, dir, dentry, mask, &cond); dir 291 security/apparmor/lsm.c static int apparmor_path_unlink(const struct path *dir, struct dentry *dentry) dir 293 security/apparmor/lsm.c return common_perm_rm(OP_UNLINK, dir, dentry, AA_MAY_DELETE); dir 296 security/apparmor/lsm.c static int apparmor_path_mkdir(const struct path *dir, struct dentry *dentry, dir 299 security/apparmor/lsm.c return common_perm_create(OP_MKDIR, dir, dentry, AA_MAY_CREATE, dir 303 security/apparmor/lsm.c static int apparmor_path_rmdir(const struct path *dir, struct dentry *dentry) dir 305 security/apparmor/lsm.c return common_perm_rm(OP_RMDIR, dir, dentry, AA_MAY_DELETE); dir 308 security/apparmor/lsm.c static int apparmor_path_mknod(const struct path *dir, struct dentry *dentry, dir 311 security/apparmor/lsm.c return common_perm_create(OP_MKNOD, dir, dentry, AA_MAY_CREATE, mode); dir 319 security/apparmor/lsm.c static int apparmor_path_symlink(const struct path *dir, struct dentry *dentry, dir 322 security/apparmor/lsm.c return common_perm_create(OP_SYMLINK, dir, dentry, AA_MAY_CREATE, dir 243 security/apparmor/policy_ns.c struct dentry *dir) dir 257 security/apparmor/policy_ns.c error = __aafs_ns_mkdir(ns, ns_subns_dir(parent), name, dir); dir 283 security/apparmor/policy_ns.c struct dentry *dir) dir 293 security/apparmor/policy_ns.c ns = __aa_create_ns(parent, name, dir); dir 113 security/inode.c struct inode *dir, *inode; dir 128 security/inode.c dir = d_inode(parent); dir 130 security/inode.c inode_lock(dir); dir 140 security/inode.c inode = new_inode(dir->i_sb); dir 154 security/inode.c inc_nlink(dir); dir 163 security/inode.c inode_unlock(dir); dir 170 security/inode.c inode_unlock(dir); dir 297 security/inode.c struct inode *dir; dir 302 security/inode.c dir = d_inode(dentry->d_parent); dir 303 security/inode.c inode_lock(dir); dir 306 security/inode.c simple_rmdir(dir, dentry); dir 308 security/inode.c simple_unlink(dir, dentry); dir 311 security/inode.c inode_unlock(dir); dir 969 security/security.c int security_inode_init_security(struct inode *inode, struct inode *dir, dir 982 security/security.c dir, qstr, NULL, NULL, NULL); dir 985 security/security.c ret = call_int_hook(inode_init_security, -EOPNOTSUPP, inode, dir, qstr, dir 1004 security/security.c int security_old_inode_init_security(struct inode *inode, struct inode *dir, dir 1010 security/security.c return call_int_hook(inode_init_security, -EOPNOTSUPP, inode, dir, dir 1016 security/security.c int security_path_mknod(const struct path *dir, struct dentry *dentry, umode_t mode, dir 1019 security/security.c if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry)))) dir 1021 security/security.c return call_int_hook(path_mknod, 0, dir, dentry, mode, dev); dir 1025 security/security.c int security_path_mkdir(const struct path *dir, struct dentry *dentry, umode_t mode) dir 1027 security/security.c if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry)))) dir 1029 security/security.c return call_int_hook(path_mkdir, 0, dir, dentry, mode); dir 1033 security/security.c int security_path_rmdir(const struct path *dir, struct dentry *dentry) dir 1035 security/security.c if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry)))) dir 1037 security/security.c return call_int_hook(path_rmdir, 0, dir, dentry); dir 1040 security/security.c int security_path_unlink(const struct path *dir, struct dentry *dentry) dir 1042 security/security.c if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry)))) dir 1044 security/security.c return call_int_hook(path_unlink, 0, dir, dentry); dir 1048 security/security.c int security_path_symlink(const struct path *dir, struct dentry *dentry, dir 1051 security/security.c if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry)))) dir 1053 security/security.c return call_int_hook(path_symlink, 0, dir, dentry, old_name); dir 1111 security/security.c int security_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode) dir 1113 security/security.c if (unlikely(IS_PRIVATE(dir))) dir 1115 security/security.c return call_int_hook(inode_create, 0, dir, dentry, mode); dir 1119 security/security.c int security_inode_link(struct dentry *old_dentry, struct inode *dir, dir 1124 security/security.c return call_int_hook(inode_link, 0, old_dentry, dir, new_dentry); dir 1127 security/security.c int security_inode_unlink(struct inode *dir, struct dentry *dentry) dir 1131 security/security.c return call_int_hook(inode_unlink, 0, dir, dentry); dir 1134 security/security.c int security_inode_symlink(struct inode *dir, struct dentry *dentry, dir 1137 security/security.c if (unlikely(IS_PRIVATE(dir))) dir 1139 security/security.c return call_int_hook(inode_symlink, 0, dir, dentry, old_name); dir 1142 security/security.c int security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) dir 1144 security/security.c if (unlikely(IS_PRIVATE(dir))) dir 1146 security/security.c return call_int_hook(inode_mkdir, 0, dir, dentry, mode); dir 1150 security/security.c int security_inode_rmdir(struct inode *dir, struct dentry *dentry) dir 1154 security/security.c return call_int_hook(inode_rmdir, 0, dir, dentry); dir 1157 security/security.c int security_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) dir 1159 security/security.c if (unlikely(IS_PRIVATE(dir))) dir 1161 security/security.c return call_int_hook(inode_mknod, 0, dir, dentry, mode, dev); dir 2276 security/security.c int security_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid, u8 dir) dir 2278 security/security.c return call_int_hook(xfrm_policy_lookup, 0, ctx, fl_secid, dir); dir 1787 security/selinux/hooks.c struct inode *dir, dir 1791 security/selinux/hooks.c const struct superblock_security_struct *sbsec = dir->i_sb->s_security; dir 1800 security/selinux/hooks.c const struct inode_security_struct *dsec = inode_security(dir); dir 1810 security/selinux/hooks.c static int may_create(struct inode *dir, dir 1821 security/selinux/hooks.c dsec = inode_security(dir); dir 1822 security/selinux/hooks.c sbsec = dir->i_sb->s_security; dir 1836 security/selinux/hooks.c rc = selinux_determine_inode_label(selinux_cred(current_cred()), dir, dir 1857 security/selinux/hooks.c static int may_link(struct inode *dir, dir 1868 security/selinux/hooks.c dsec = inode_security(dir); dir 2906 security/selinux/hooks.c static int selinux_inode_init_security(struct inode *inode, struct inode *dir, dir 2917 security/selinux/hooks.c sbsec = dir->i_sb->s_security; dir 2922 security/selinux/hooks.c dir, qstr, dir 2954 security/selinux/hooks.c static int selinux_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode) dir 2956 security/selinux/hooks.c return may_create(dir, dentry, SECCLASS_FILE); dir 2959 security/selinux/hooks.c static int selinux_inode_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry) dir 2961 security/selinux/hooks.c return may_link(dir, old_dentry, MAY_LINK); dir 2964 security/selinux/hooks.c static int selinux_inode_unlink(struct inode *dir, struct dentry *dentry) dir 2966 security/selinux/hooks.c return may_link(dir, dentry, MAY_UNLINK); dir 2969 security/selinux/hooks.c static int selinux_inode_symlink(struct inode *dir, struct dentry *dentry, const char *name) dir 2971 security/selinux/hooks.c return may_create(dir, dentry, SECCLASS_LNK_FILE); dir 2974 security/selinux/hooks.c static int selinux_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mask) dir 2976 security/selinux/hooks.c return may_create(dir, dentry, SECCLASS_DIR); dir 2979 security/selinux/hooks.c static int selinux_inode_rmdir(struct inode *dir, struct dentry *dentry) dir 2981 security/selinux/hooks.c return may_link(dir, dentry, MAY_RMDIR); dir 2984 security/selinux/hooks.c static int selinux_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) dir 2986 security/selinux/hooks.c return may_create(dir, dentry, inode_mode_to_security_class(mode)); dir 26 security/selinux/include/xfrm.h int selinux_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid, u8 dir); dir 348 security/selinux/selinuxfs.c static struct dentry *sel_make_dir(struct dentry *dir, const char *name, dir 1331 security/selinux/selinuxfs.c struct dentry *dir = fsi->bool_dir; dir 1348 security/selinux/selinuxfs.c sel_remove_entries(dir); dir 1361 security/selinux/selinuxfs.c dentry = d_alloc_name(dir, names[i]); dir 1366 security/selinux/selinuxfs.c inode = sel_make_inode(dir->d_sb, S_IFREG | S_IRUGO | S_IWUSR); dir 1410 security/selinux/selinuxfs.c sel_remove_entries(dir); dir 1570 security/selinux/selinuxfs.c static int sel_make_avc_files(struct dentry *dir) dir 1572 security/selinux/selinuxfs.c struct super_block *sb = dir->d_sb; dir 1588 security/selinux/selinuxfs.c dentry = d_alloc_name(dir, files[i].name); dir 1592 security/selinux/selinuxfs.c inode = sel_make_inode(dir->d_sb, S_IFREG|files[i].mode); dir 1629 security/selinux/selinuxfs.c static int sel_make_initcon_files(struct dentry *dir) dir 1636 security/selinux/selinuxfs.c dentry = d_alloc_name(dir, security_get_initial_sid_context(i)); dir 1640 security/selinux/selinuxfs.c inode = sel_make_inode(dir->d_sb, S_IFREG|S_IRUGO); dir 1723 security/selinux/selinuxfs.c struct dentry *dir) dir 1725 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = dir->d_sb->s_fs_info; dir 1738 security/selinux/selinuxfs.c dentry = d_alloc_name(dir, perms[i]); dir 1743 security/selinux/selinuxfs.c inode = sel_make_inode(dir->d_sb, S_IFREG|S_IRUGO); dir 1763 security/selinux/selinuxfs.c struct dentry *dir) dir 1765 security/selinux/selinuxfs.c struct super_block *sb = dir->d_sb; dir 1771 security/selinux/selinuxfs.c dentry = d_alloc_name(dir, "index"); dir 1775 security/selinux/selinuxfs.c inode = sel_make_inode(dir->d_sb, S_IFREG|S_IRUGO); dir 1785 security/selinux/selinuxfs.c dentry = sel_make_dir(dir, "perms", &fsi->last_class_ino); dir 1866 security/selinux/selinuxfs.c static struct dentry *sel_make_dir(struct dentry *dir, const char *name, dir 1869 security/selinux/selinuxfs.c struct dentry *dentry = d_alloc_name(dir, name); dir 1875 security/selinux/selinuxfs.c inode = sel_make_inode(dir->d_sb, S_IFDIR | S_IRUGO | S_IXUGO); dir 1888 security/selinux/selinuxfs.c inc_nlink(d_inode(dir)); dir 153 security/selinux/xfrm.c int selinux_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid, u8 dir) dir 981 security/smack/smack_lsm.c static int smack_inode_init_security(struct inode *inode, struct inode *dir, dir 988 security/smack/smack_lsm.c struct smack_known *dsp = smk_of_inode(dir); dir 1007 security/smack/smack_lsm.c smk_inode_transmutable(dir)) { dir 1030 security/smack/smack_lsm.c static int smack_inode_link(struct dentry *old_dentry, struct inode *dir, dir 1062 security/smack/smack_lsm.c static int smack_inode_unlink(struct inode *dir, struct dentry *dentry) dir 1081 security/smack/smack_lsm.c smk_ad_setfield_u_fs_inode(&ad, dir); dir 1082 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(dir), MAY_WRITE, &ad); dir 1083 security/smack/smack_lsm.c rc = smk_bu_inode(dir, MAY_WRITE, rc); dir 1096 security/smack/smack_lsm.c static int smack_inode_rmdir(struct inode *dir, struct dentry *dentry) dir 1114 security/smack/smack_lsm.c smk_ad_setfield_u_fs_inode(&ad, dir); dir 1115 security/smack/smack_lsm.c rc = smk_curacc(smk_of_inode(dir), MAY_WRITE, &ad); dir 1116 security/smack/smack_lsm.c rc = smk_bu_inode(dir, MAY_WRITE, rc); dir 485 security/tomoyo/common.h const struct tomoyo_path_info *dir; dir 34 security/tomoyo/mount.c r->param.mount.dir->name, dir 57 security/tomoyo/mount.c tomoyo_compare_name_union(r->param.mount.dir, dir 79 security/tomoyo/mount.c const struct path *dir, const char *type, dir 104 security/tomoyo/mount.c obj.path2 = *dir; dir 105 security/tomoyo/mount.c requested_dir_name = tomoyo_realpath_from_path(dir); dir 161 security/tomoyo/mount.c r->param.mount.dir = &rdir; dir 126 sound/core/oss/pcm_oss.c snd_pcm_hw_param_t var, int *dir) dir 129 sound/core/oss/pcm_oss.c if (dir) dir 130 sound/core/oss/pcm_oss.c *dir = 0; dir 135 sound/core/oss/pcm_oss.c if (dir) dir 136 sound/core/oss/pcm_oss.c *dir = i->openmin; dir 152 sound/core/oss/pcm_oss.c snd_pcm_hw_param_t var, int *dir) dir 155 sound/core/oss/pcm_oss.c if (dir) dir 156 sound/core/oss/pcm_oss.c *dir = 0; dir 161 sound/core/oss/pcm_oss.c if (dir) dir 162 sound/core/oss/pcm_oss.c *dir = - (int) i->openmax; dir 199 sound/core/oss/pcm_oss.c int dir) dir 203 sound/core/oss/pcm_oss.c if (dir) { dir 204 sound/core/oss/pcm_oss.c if (dir > 0) { dir 206 sound/core/oss/pcm_oss.c } else if (dir < 0) { dir 243 sound/core/oss/pcm_oss.c int *dir) dir 245 sound/core/oss/pcm_oss.c int changed = _snd_pcm_hw_param_min(params, var, val, dir ? *dir : 0); dir 253 sound/core/oss/pcm_oss.c return snd_pcm_hw_param_value_min(params, var, dir); dir 258 sound/core/oss/pcm_oss.c int dir) dir 262 sound/core/oss/pcm_oss.c if (dir) { dir 263 sound/core/oss/pcm_oss.c if (dir < 0) { dir 265 sound/core/oss/pcm_oss.c } else if (dir > 0) { dir 304 sound/core/oss/pcm_oss.c int *dir) dir 306 sound/core/oss/pcm_oss.c int changed = _snd_pcm_hw_param_max(params, var, val, dir ? *dir : 0); dir 314 sound/core/oss/pcm_oss.c return snd_pcm_hw_param_value_max(params, var, dir); dir 378 sound/core/oss/pcm_oss.c int *dir) dir 386 sound/core/oss/pcm_oss.c int valdir = dir ? *dir : 0; dir 440 sound/core/oss/pcm_oss.c v = snd_pcm_hw_param_last(pcm, params, var, dir); dir 442 sound/core/oss/pcm_oss.c v = snd_pcm_hw_param_first(pcm, params, var, dir); dir 448 sound/core/oss/pcm_oss.c int dir) dir 453 sound/core/oss/pcm_oss.c if (val == 0 && dir < 0) { dir 457 sound/core/oss/pcm_oss.c if (dir > 0) dir 459 sound/core/oss/pcm_oss.c else if (dir < 0) dir 465 sound/core/oss/pcm_oss.c if (val == 0 && dir < 0) { dir 468 sound/core/oss/pcm_oss.c } else if (dir == 0) dir 476 sound/core/oss/pcm_oss.c if (dir < 0) { dir 509 sound/core/oss/pcm_oss.c int dir) dir 511 sound/core/oss/pcm_oss.c int changed = _snd_pcm_hw_param_set(params, var, val, dir); dir 350 sound/core/pcm_compat.c int dir, struct snd_xferi32 __user *data32) dir 358 sound/core/pcm_compat.c if (substream->stream != dir) dir 367 sound/core/pcm_compat.c if (dir == SNDRV_PCM_STREAM_PLAYBACK) dir 394 sound/core/pcm_compat.c int dir, struct snd_xfern32 __user *data32) dir 404 sound/core/pcm_compat.c if (substream->stream != dir) dir 427 sound/core/pcm_compat.c if (dir == SNDRV_PCM_STREAM_PLAYBACK) dir 1542 sound/core/pcm_lib.c snd_pcm_hw_param_t var, int *dir) dir 1548 sound/core/pcm_lib.c if (dir) dir 1549 sound/core/pcm_lib.c *dir = 0; dir 1556 sound/core/pcm_lib.c if (dir) dir 1557 sound/core/pcm_lib.c *dir = i->openmin; dir 1613 sound/core/pcm_lib.c snd_pcm_hw_param_t var, int *dir) dir 1623 sound/core/pcm_lib.c return snd_pcm_hw_param_value(params, var, dir); dir 1659 sound/core/pcm_lib.c snd_pcm_hw_param_t var, int *dir) dir 1669 sound/core/pcm_lib.c return snd_pcm_hw_param_value(params, var, dir); dir 1767 sound/core/rawmidi.c int dir; dir 1773 sound/core/rawmidi.c for (dir = 0; dir < 2; dir++) { dir 1776 sound/core/rawmidi.c list_for_each_entry(s, &rmidi->streams[dir].substreams, list) { dir 964 sound/drivers/vx/vx_mixer.c static char *dir[2] = { "Output", "Input" }; dir 974 sound/drivers/vx/vx_mixer.c sprintf(name, "%s VU Meter", dir[c]); dir 981 sound/drivers/vx/vx_mixer.c sprintf(name, "%s Peak Meter", dir[c]); dir 415 sound/firewire/amdtp-am824.c enum amdtp_stream_direction dir, enum cip_flags flags) dir 419 sound/firewire/amdtp-am824.c if (dir == AMDTP_IN_STREAM) dir 424 sound/firewire/amdtp-am824.c return amdtp_stream_init(s, unit, dir, flags, CIP_FMT_AM, dir 48 sound/firewire/amdtp-am824.h enum amdtp_stream_direction dir, enum cip_flags flags); dir 81 sound/firewire/amdtp-stream.c enum amdtp_stream_direction dir, enum cip_flags flags, dir 94 sound/firewire/amdtp-stream.c s->direction = dir; dir 107 sound/firewire/amdtp-stream.c if (dir == AMDTP_OUT_STREAM) dir 913 sound/firewire/amdtp-stream.c enum dma_data_direction dir; dir 937 sound/firewire/amdtp-stream.c dir = DMA_FROM_DEVICE; dir 947 sound/firewire/amdtp-stream.c dir = DMA_TO_DEVICE; dir 957 sound/firewire/amdtp-stream.c max_ctx_payload_size, dir); dir 181 sound/firewire/amdtp-stream.h enum amdtp_stream_direction dir, enum cip_flags flags, dir 174 sound/firewire/bebob/bebob.h enum avc_bridgeco_plug_dir dir, dir 179 sound/firewire/bebob/bebob.h buf[1] = dir; dir 187 sound/firewire/bebob/bebob.h enum avc_bridgeco_plug_dir dir, dir 191 sound/firewire/bebob/bebob.h buf[1] = dir; dir 261 sound/firewire/bebob/bebob_stream.c enum avc_bridgeco_plug_dir dir; dir 273 sound/firewire/bebob/bebob_stream.c dir = AVC_BRIDGECO_PLUG_DIR_OUT; dir 275 sound/firewire/bebob/bebob_stream.c dir = AVC_BRIDGECO_PLUG_DIR_IN; dir 277 sound/firewire/bebob/bebob_stream.c avc_bridgeco_fill_unit_addr(addr, dir, AVC_BRIDGECO_PLUG_UNIT_ISOC, 0); dir 282 sound/firewire/bebob/bebob_stream.c (dir == AVC_BRIDGECO_PLUG_DIR_IN) ? "in" : "out", dir 297 sound/firewire/bebob/bebob_stream.c avc_bridgeco_fill_unit_addr(addr, dir, dir 304 sound/firewire/bebob/bebob_stream.c (dir == AVC_BRIDGECO_PLUG_DIR_IN) ? "in" : dir 783 sound/firewire/bebob/bebob_stream.c fill_stream_formations(struct snd_bebob *bebob, enum avc_bridgeco_plug_dir dir, dir 796 sound/firewire/bebob/bebob_stream.c if (dir == AVC_BRIDGECO_PLUG_DIR_IN) dir 803 sound/firewire/bebob/bebob_stream.c avc_bridgeco_fill_unit_addr(addr, dir, dir 815 sound/firewire/bebob/bebob_stream.c (dir == AVC_BRIDGECO_PLUG_DIR_IN) ? "in" : dir 89 sound/firewire/dice/dice-pcm.c enum amdtp_stream_direction dir, dir 96 sound/firewire/dice/dice-pcm.c if (dir == AMDTP_IN_STREAM) dir 131 sound/firewire/dice/dice-pcm.c enum amdtp_stream_direction dir; dir 137 sound/firewire/dice/dice-pcm.c dir = AMDTP_IN_STREAM; dir 141 sound/firewire/dice/dice-pcm.c dir = AMDTP_OUT_STREAM; dir 145 sound/firewire/dice/dice-pcm.c err = limit_channels_and_rates(dice, substream->runtime, dir, dir 148 sound/firewire/dice/dice-stream.c static void stop_streams(struct snd_dice *dice, enum amdtp_stream_direction dir, dir 156 sound/firewire/dice/dice-stream.c if (dir == AMDTP_IN_STREAM) { dir 211 sound/firewire/dice/dice-stream.c enum amdtp_stream_direction dir, dir 231 sound/firewire/dice/dice-stream.c if (dir == AMDTP_IN_STREAM) { dir 335 sound/firewire/dice/dice-stream.c static int start_streams(struct snd_dice *dice, enum amdtp_stream_direction dir, dir 347 sound/firewire/dice/dice-stream.c if (dir == AMDTP_IN_STREAM) { dir 356 sound/firewire/dice/dice-stream.c if (dir == AMDTP_IN_STREAM) { dir 368 sound/firewire/dice/dice-stream.c if (dir == AMDTP_IN_STREAM) { dir 501 sound/firewire/dice/dice-stream.c static int init_stream(struct snd_dice *dice, enum amdtp_stream_direction dir, dir 508 sound/firewire/dice/dice-stream.c if (dir == AMDTP_IN_STREAM) { dir 521 sound/firewire/dice/dice-stream.c err = amdtp_am824_init(stream, dice->unit, dir, CIP_BLOCKING); dir 535 sound/firewire/dice/dice-stream.c enum amdtp_stream_direction dir, dir 541 sound/firewire/dice/dice-stream.c if (dir == AMDTP_IN_STREAM) { dir 396 sound/firewire/digi00x/amdtp-dot.c enum amdtp_stream_direction dir) dir 402 sound/firewire/digi00x/amdtp-dot.c if (dir == AMDTP_IN_STREAM) { dir 410 sound/firewire/digi00x/amdtp-dot.c return amdtp_stream_init(s, unit, dir, flags, CIP_FMT_AM, dir 221 sound/firewire/digi00x/digi00x-stream.c enum amdtp_stream_direction dir; dir 226 sound/firewire/digi00x/digi00x-stream.c dir = AMDTP_IN_STREAM; dir 229 sound/firewire/digi00x/digi00x-stream.c dir = AMDTP_OUT_STREAM; dir 236 sound/firewire/digi00x/digi00x-stream.c err = amdtp_dot_init(s, dg00x->unit, dir); dir 119 sound/firewire/digi00x/digi00x.h enum amdtp_stream_direction dir); dir 29 sound/firewire/fcp.c enum avc_general_plug_dir dir, dir 53 sound/firewire/fcp.c if (dir == AVC_GENERAL_PLUG_DIR_IN) dir 85 sound/firewire/fcp.c enum avc_general_plug_dir dir, dir 98 sound/firewire/fcp.c if (dir == AVC_GENERAL_PLUG_DIR_IN) dir 19 sound/firewire/fcp.h enum avc_general_plug_dir dir, dir 22 sound/firewire/fcp.h enum avc_general_plug_dir dir, dir 162 sound/firewire/fireface/amdtp-ff.c enum amdtp_stream_direction dir) dir 166 sound/firewire/fireface/amdtp-ff.c if (dir == AMDTP_IN_STREAM) dir 171 sound/firewire/fireface/amdtp-ff.c return amdtp_stream_init(s, unit, dir, CIP_NO_HEADER, 0, dir 42 sound/firewire/fireface/ff-stream.c enum amdtp_stream_direction dir; dir 47 sound/firewire/fireface/ff-stream.c dir = AMDTP_IN_STREAM; dir 50 sound/firewire/fireface/ff-stream.c dir = AMDTP_OUT_STREAM; dir 57 sound/firewire/fireface/ff-stream.c err = amdtp_ff_init(s, ff->unit, dir); dir 136 sound/firewire/fireface/ff.h enum amdtp_stream_direction dir); dir 442 sound/firewire/motu/amdtp-motu.c enum amdtp_stream_direction dir, dir 450 sound/firewire/motu/amdtp-motu.c if (dir == AMDTP_IN_STREAM) { dir 474 sound/firewire/motu/amdtp-motu.c err = amdtp_stream_init(s, unit, dir, flags, fmt, process_ctx_payloads, dir 481 sound/firewire/motu/amdtp-motu.c if (dir == AMDTP_OUT_STREAM) { dir 171 sound/firewire/motu/motu-protocol-v2.c enum amdtp_stream_direction dir, dir 184 sound/firewire/motu/motu-protocol-v2.c if (dir == AMDTP_IN_STREAM) { dir 157 sound/firewire/motu/motu-protocol-v3.c enum amdtp_stream_direction dir, dir 170 sound/firewire/motu/motu-protocol-v3.c if (dir == AMDTP_IN_STREAM) { dir 295 sound/firewire/motu/motu-stream.c enum amdtp_stream_direction dir; dir 300 sound/firewire/motu/motu-stream.c dir = AMDTP_IN_STREAM; dir 303 sound/firewire/motu/motu-stream.c dir = AMDTP_OUT_STREAM; dir 310 sound/firewire/motu/motu-stream.c err = amdtp_motu_init(s, motu->unit, dir, motu->spec->protocol); dir 136 sound/firewire/motu/motu.h enum amdtp_stream_direction dir, dir 10 sound/firewire/oxfw/oxfw-command.c int avc_stream_set_format(struct fw_unit *unit, enum avc_general_plug_dir dir, dir 24 sound/firewire/oxfw/oxfw-command.c buf[4] = dir; /* Plug Direction */ dir 53 sound/firewire/oxfw/oxfw-command.c enum avc_general_plug_dir dir, unsigned int pid, dir 68 sound/firewire/oxfw/oxfw-command.c buf[4] = dir; /* Plug Direction */ dir 112 sound/firewire/oxfw/oxfw-command.c enum avc_general_plug_dir dir, dir 132 sound/firewire/oxfw/oxfw-command.c if (dir == AVC_GENERAL_PLUG_DIR_IN) dir 150 sound/firewire/oxfw/oxfw-pcm.c enum avc_general_plug_dir dir; dir 154 sound/firewire/oxfw/oxfw-pcm.c dir = AVC_GENERAL_PLUG_DIR_OUT; dir 156 sound/firewire/oxfw/oxfw-pcm.c dir = AVC_GENERAL_PLUG_DIR_IN; dir 158 sound/firewire/oxfw/oxfw-pcm.c err = snd_oxfw_stream_get_current_formation(oxfw, dir, &formation); dir 62 sound/firewire/oxfw/oxfw-stream.c enum avc_general_plug_dir dir; dir 68 sound/firewire/oxfw/oxfw-stream.c dir = AVC_GENERAL_PLUG_DIR_OUT; dir 71 sound/firewire/oxfw/oxfw-stream.c dir = AVC_GENERAL_PLUG_DIR_IN; dir 93 sound/firewire/oxfw/oxfw-stream.c err = avc_stream_set_format(oxfw->unit, dir, 0, formats[i], len); dir 195 sound/firewire/oxfw/oxfw-stream.c enum avc_general_plug_dir dir; dir 203 sound/firewire/oxfw/oxfw-stream.c dir = AVC_GENERAL_PLUG_DIR_IN; dir 207 sound/firewire/oxfw/oxfw-stream.c dir = AVC_GENERAL_PLUG_DIR_OUT; dir 212 sound/firewire/oxfw/oxfw-stream.c err = snd_oxfw_stream_get_current_formation(oxfw, dir, &formation); dir 250 sound/firewire/oxfw/oxfw-stream.c enum avc_general_plug_dir dir; dir 265 sound/firewire/oxfw/oxfw-stream.c dir = AVC_GENERAL_PLUG_DIR_OUT; dir 267 sound/firewire/oxfw/oxfw-stream.c dir = AVC_GENERAL_PLUG_DIR_IN; dir 269 sound/firewire/oxfw/oxfw-stream.c err = snd_oxfw_stream_get_current_formation(oxfw, dir, &formation); dir 460 sound/firewire/oxfw/oxfw-stream.c enum avc_general_plug_dir dir, dir 472 sound/firewire/oxfw/oxfw-stream.c err = avc_stream_get_format_single(oxfw->unit, dir, 0, format, &len); dir 569 sound/firewire/oxfw/oxfw-stream.c assume_stream_formats(struct snd_oxfw *oxfw, enum avc_general_plug_dir dir, dir 578 sound/firewire/oxfw/oxfw-stream.c err = avc_stream_get_format_single(oxfw->unit, dir, pid, buf, len); dir 582 sound/firewire/oxfw/oxfw-stream.c (dir == AVC_GENERAL_PLUG_DIR_IN) ? "in" : "out", dir 607 sound/firewire/oxfw/oxfw-stream.c dir, pid); dir 628 sound/firewire/oxfw/oxfw-stream.c enum avc_general_plug_dir dir, dir 640 sound/firewire/oxfw/oxfw-stream.c if (dir == AVC_GENERAL_PLUG_DIR_OUT) dir 647 sound/firewire/oxfw/oxfw-stream.c err = avc_stream_get_format_list(oxfw->unit, dir, 0, buf, &len, 0); dir 651 sound/firewire/oxfw/oxfw-stream.c err = assume_stream_formats(oxfw, dir, pid, buf, &len, dir 657 sound/firewire/oxfw/oxfw-stream.c eid, (dir == AVC_GENERAL_PLUG_DIR_IN) ? "in" : "out", dir 684 sound/firewire/oxfw/oxfw-stream.c err = avc_stream_get_format_list(oxfw->unit, dir, 0, dir 693 sound/firewire/oxfw/oxfw-stream.c eid, (dir == AVC_GENERAL_PLUG_DIR_IN) ? "in" : dir 74 sound/firewire/oxfw/oxfw.h int avc_stream_set_format(struct fw_unit *unit, enum avc_general_plug_dir dir, dir 77 sound/firewire/oxfw/oxfw.h enum avc_general_plug_dir dir, unsigned int pid, dir 81 sound/firewire/oxfw/oxfw.h enum avc_general_plug_dir dir, unsigned int pid, dir 84 sound/firewire/oxfw/oxfw.h return avc_stream_get_format(unit, dir, pid, buf, len, 0xff); dir 88 sound/firewire/oxfw/oxfw.h enum avc_general_plug_dir dir, unsigned int pid, dir 92 sound/firewire/oxfw/oxfw.h return avc_stream_get_format(unit, dir, pid, buf, len, eid); dir 100 sound/firewire/oxfw/oxfw.h enum avc_general_plug_dir dir, dir 120 sound/firewire/oxfw/oxfw.h enum avc_general_plug_dir dir, dir 228 sound/firewire/tascam/amdtp-tascam.c enum amdtp_stream_direction dir, unsigned int pcm_channels) dir 235 sound/firewire/tascam/amdtp-tascam.c if (dir == AMDTP_IN_STREAM) { dir 243 sound/firewire/tascam/amdtp-tascam.c err = amdtp_stream_init(s, unit, dir, dir 249 sound/firewire/tascam/amdtp-tascam.c if (dir == AMDTP_OUT_STREAM) { dir 304 sound/firewire/tascam/tascam-stream.c enum amdtp_stream_direction dir; dir 310 sound/firewire/tascam/tascam-stream.c dir = AMDTP_IN_STREAM; dir 314 sound/firewire/tascam/tascam-stream.c dir = AMDTP_OUT_STREAM; dir 327 sound/firewire/tascam/tascam-stream.c err = amdtp_tscm_init(s, tscm->unit, dir, pcm_channels); dir 160 sound/firewire/tascam/tascam.h enum amdtp_stream_direction dir, unsigned int pcm_channels); dir 70 sound/hda/ext/hdac_ext_stream.c int num_stream, int dir) dir 81 sound/hda/ext/hdac_ext_stream.c snd_hdac_ext_stream_init(bus, stream, idx, dir, tag); dir 343 sound/hda/hdac_stream.c int dir, int stream_tag) dir 348 sound/hda/hdac_stream.c if (s->direction == dir && s->stream_tag == stream_tag) dir 1428 sound/pci/asihpi/asihpi.c char *dir; dir 1436 sound/pci/asihpi/asihpi.c dir = ""; /* clock is neither capture nor playback */ dir 1438 sound/pci/asihpi/asihpi.c dir = "Capture "; /* On or towards a PCM capture destination*/ dir 1441 sound/pci/asihpi/asihpi.c dir = "Capture "; /* On a source node that is not PCM playback */ dir 1445 sound/pci/asihpi/asihpi.c dir = "Monitor Playback "; /* Between an input and an output */ dir 1447 sound/pci/asihpi/asihpi.c dir = "Playback "; /* PCM Playback source, or output node */ dir 1455 sound/pci/asihpi/asihpi.c dir, name); dir 1460 sound/pci/asihpi/asihpi.c dir, name); dir 1465 sound/pci/asihpi/asihpi.c dir, name); dir 117 sound/pci/au88x0/au88x0.h int dir; /* Stream Direction. */ dir 189 sound/pci/au88x0/au88x0.h unsigned int cvrt, int dir); dir 195 sound/pci/au88x0/au88x0.h int dir, int fmt, int d, dir 237 sound/pci/au88x0/au88x0.h int dir, int type, int subdev); dir 1142 sound/pci/au88x0/au88x0_core.c vortex_adbdma_setmode(vortex_t * vortex, int adbdma, int ie, int dir, dir 1155 sound/pci/au88x0/au88x0_core.c (dma->dma_ctrl & ~DIR_MASK) | ((dir << DIR_SHIFT) & DIR_MASK); dir 2109 sound/pci/au88x0/au88x0_core.c vortex_adb_allocroute(vortex_t *vortex, int dma, int nr_ch, int dir, dir 2131 sound/pci/au88x0/au88x0_core.c stream->dir = dir; dir 2135 sound/pci/au88x0/au88x0_core.c if (dir == SNDRV_PCM_STREAM_PLAYBACK) { dir 2347 sound/pci/au88x0/au88x0_core.c vortex_adb_setsrc(vortex_t * vortex, int adbdma, unsigned int rate, int dir) dir 2353 sound/pci/au88x0/au88x0_core.c if (dir) dir 2361 sound/pci/au88x0/au88x0_core.c vortex_src_setupchannel(vortex, i, cvrt, 0, 0, i, dir, 1, cvrt, dir); dir 232 sound/pci/au88x0/au88x0_pcm.c stream->nr_ch, stream->dir, dir 293 sound/pci/au88x0/au88x0_pcm.c stream->nr_ch, stream->dir, dir 316 sound/pci/au88x0/au88x0_pcm.c int dma = stream->dma, fmt, dir; dir 320 sound/pci/au88x0/au88x0_pcm.c dir = 1; dir 322 sound/pci/au88x0/au88x0_pcm.c dir = 0; dir 326 sound/pci/au88x0/au88x0_pcm.c vortex_adbdma_setmode(chip, dma, 1, dir, fmt, dir 330 sound/pci/au88x0/au88x0_pcm.c vortex_adb_setsrc(chip, dma, runtime->rate, dir); dir 1234 sound/pci/hda/hda_codec.c int dir, unsigned int bits) dir 1238 sound/pci/hda/hda_codec.c if (get_wcaps(codec, nid) & (1 << (dir + 1))) dir 1239 sound/pci/hda/hda_codec.c if (query_amp_caps(codec, nid, dir) & bits) dir 1258 sound/pci/hda/hda_codec.c int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, dir 1265 sound/pci/hda/hda_codec.c parm = dir == HDA_OUTPUT ? AC_PAR_AMP_OUT_CAP : AC_PAR_AMP_IN_CAP; dir 1271 sound/pci/hda/hda_codec.c int ch, int dir, int idx) dir 1273 sound/pci/hda/hda_codec.c unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx); dir 1276 sound/pci/hda/hda_codec.c if ((query_amp_caps(codec, nid, dir) & dir 1295 sound/pci/hda/hda_codec.c int ch, int dir, int idx, int mask, int val) dir 1297 sound/pci/hda/hda_codec.c unsigned int cmd = encode_amp(codec, nid, ch, dir, idx); dir 1344 sound/pci/hda/hda_codec.c int dir, int idx, int mask, int val) dir 1346 sound/pci/hda/hda_codec.c unsigned int cmd = encode_amp(codec, nid, ch, dir, idx); dir 1366 sound/pci/hda/hda_codec.c int dir, int idx, int mask, int val) dir 1373 sound/pci/hda/hda_codec.c ret |= snd_hda_codec_amp_init(codec, nid, ch, dir, dir 1379 sound/pci/hda/hda_codec.c static u32 get_amp_max_value(struct hda_codec *codec, hda_nid_t nid, int dir, dir 1382 sound/pci/hda/hda_codec.c u32 caps = query_amp_caps(codec, nid, dir); dir 1404 sound/pci/hda/hda_codec.c int dir = get_amp_direction(kcontrol); dir 1410 sound/pci/hda/hda_codec.c uinfo->value.integer.max = get_amp_max_value(codec, nid, dir, ofs); dir 1424 sound/pci/hda/hda_codec.c int ch, int dir, int idx, unsigned int ofs) dir 1427 sound/pci/hda/hda_codec.c val = snd_hda_codec_amp_read(codec, nid, ch, dir, idx); dir 1438 sound/pci/hda/hda_codec.c int ch, int dir, int idx, unsigned int ofs, dir 1446 sound/pci/hda/hda_codec.c maxval = get_amp_max_value(codec, nid, dir, 0); dir 1449 sound/pci/hda/hda_codec.c return snd_hda_codec_amp_update(codec, nid, ch, dir, idx, dir 1467 sound/pci/hda/hda_codec.c int dir = get_amp_direction(kcontrol); dir 1473 sound/pci/hda/hda_codec.c *valp++ = read_amp_value(codec, nid, 0, dir, idx, ofs); dir 1475 sound/pci/hda/hda_codec.c *valp = read_amp_value(codec, nid, 1, dir, idx, ofs); dir 1494 sound/pci/hda/hda_codec.c int dir = get_amp_direction(kcontrol); dir 1501 sound/pci/hda/hda_codec.c change = update_amp_value(codec, nid, 0, dir, idx, ofs, *valp); dir 1505 sound/pci/hda/hda_codec.c change |= update_amp_value(codec, nid, 1, dir, idx, ofs, *valp); dir 1515 sound/pci/hda/hda_codec.c int dir = get_amp_direction(kcontrol); dir 1520 sound/pci/hda/hda_codec.c caps = query_amp_caps(codec, nid, dir); dir 1569 sound/pci/hda/hda_codec.c void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, dir 1575 sound/pci/hda/hda_codec.c caps = query_amp_caps(codec, nid, dir); dir 2122 sound/pci/hda/hda_codec.c int dir = get_amp_direction(kcontrol); dir 2127 sound/pci/hda/hda_codec.c *valp++ = (snd_hda_codec_amp_read(codec, nid, 0, dir, idx) & dir 2130 sound/pci/hda/hda_codec.c *valp = (snd_hda_codec_amp_read(codec, nid, 1, dir, idx) & dir 2150 sound/pci/hda/hda_codec.c int dir = get_amp_direction(kcontrol); dir 2156 sound/pci/hda/hda_codec.c change = snd_hda_codec_amp_update(codec, nid, 0, dir, idx, dir 2162 sound/pci/hda/hda_codec.c change |= snd_hda_codec_amp_update(codec, nid, 1, dir, idx, dir 3439 sound/pci/hda/hda_codec.c v = snd_hda_codec_amp_read(codec, p->nid, ch, p->dir, dir 1352 sound/pci/hda/hda_controller.c int dir, tag; dir 1357 sound/pci/hda/hda_controller.c dir = stream_direction(chip, i); dir 1365 sound/pci/hda/hda_controller.c tag = ++stream_tags[dir]; dir 1369 sound/pci/hda/hda_controller.c i, dir, tag); dir 355 sound/pci/hda/hda_generic.c int dir, int idx, int type) dir 357 sound/pci/hda/hda_generic.c unsigned int val = HDA_COMPOSE_AMP_VAL(nid, 3, idx, dir); dir 550 sound/pci/hda/hda_generic.c hda_nid_t nid2, int dir) dir 552 sound/pci/hda/hda_generic.c if (!(get_wcaps(codec, nid1) & (1 << (dir + 1)))) dir 553 sound/pci/hda/hda_generic.c return !(get_wcaps(codec, nid2) & (1 << (dir + 1))); dir 554 sound/pci/hda/hda_generic.c return (query_amp_caps(codec, nid1, dir) == dir 555 sound/pci/hda/hda_generic.c query_amp_caps(codec, nid2, dir)); dir 625 sound/pci/hda/hda_generic.c unsigned int dir, unsigned int idx) dir 648 sound/pci/hda/hda_generic.c if (dir == HDA_OUTPUT || idx == -1 || dir 664 sound/pci/hda/hda_generic.c int dir, unsigned int caps, bool enable) dir 681 sound/pci/hda/hda_generic.c static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, int dir) dir 688 sound/pci/hda/hda_generic.c if (dir != HDA_INPUT || get_wcaps_type(wcaps) != AC_WID_AUD_MIX) dir 698 sound/pci/hda/hda_generic.c static void init_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx) dir 700 sound/pci/hda/hda_generic.c unsigned int caps = query_amp_caps(codec, nid, dir); dir 701 sound/pci/hda/hda_generic.c int val = get_amp_val_to_activate(codec, nid, dir, caps, false); dir 703 sound/pci/hda/hda_generic.c if (is_stereo_amps(codec, nid, dir)) dir 704 sound/pci/hda/hda_generic.c snd_hda_codec_amp_init_stereo(codec, nid, dir, idx, 0xff, val); dir 706 sound/pci/hda/hda_generic.c snd_hda_codec_amp_init(codec, nid, 0, dir, idx, 0xff, val); dir 710 sound/pci/hda/hda_generic.c static int update_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, dir 713 sound/pci/hda/hda_generic.c if (is_stereo_amps(codec, nid, dir)) dir 714 sound/pci/hda/hda_generic.c return snd_hda_codec_amp_stereo(codec, nid, dir, idx, dir 717 sound/pci/hda/hda_generic.c return snd_hda_codec_amp_update(codec, nid, 0, dir, idx, dir 725 sound/pci/hda/hda_generic.c hda_nid_t nid, int dir, int idx, dir 731 sound/pci/hda/hda_generic.c if (is_ctl_associated(codec, nid, dir, idx, NID_PATH_MUTE_CTL)) dir 735 sound/pci/hda/hda_generic.c if (is_ctl_associated(codec, nid, dir, idx, NID_PATH_VOL_CTL) || dir 736 sound/pci/hda/hda_generic.c is_ctl_associated(codec, nid, dir, idx, NID_PATH_BOOST_CTL)) dir 742 sound/pci/hda/hda_generic.c static void activate_amp(struct hda_codec *codec, hda_nid_t nid, int dir, dir 748 sound/pci/hda/hda_generic.c caps = query_amp_caps(codec, nid, dir); dir 749 sound/pci/hda/hda_generic.c val = get_amp_val_to_activate(codec, nid, dir, caps, enable); dir 750 sound/pci/hda/hda_generic.c mask = get_amp_mask_to_modify(codec, nid, dir, idx_to_check, caps); dir 755 sound/pci/hda/hda_generic.c update_amp(codec, nid, dir, idx, mask, val); dir 759 sound/pci/hda/hda_generic.c int dir, int idx, int idx_to_check, dir 763 sound/pci/hda/hda_generic.c if (!enable && is_active_nid(codec, nid, dir, idx_to_check)) dir 765 sound/pci/hda/hda_generic.c activate_amp(codec, nid, dir, idx, idx_to_check, enable); dir 989 sound/pci/hda/hda_generic.c const char *pfx, const char *dir, dir 993 sound/pci/hda/hda_generic.c snprintf(name, sizeof(name), "%s %s %s", pfx, dir, sfx); dir 3025 sound/pci/hda/hda_generic.c list->dir = HDA_INPUT; dir 3804 sound/pci/hda/hda_generic.c int dir, int idx) dir 3808 sound/pci/hda/hda_generic.c if (!nid_has_volume(codec, nid, dir) || dir 3809 sound/pci/hda/hda_generic.c is_ctl_associated(codec, nid, dir, idx, NID_PATH_VOL_CTL) || dir 3810 sound/pci/hda/hda_generic.c is_ctl_associated(codec, nid, dir, idx, NID_PATH_BOOST_CTL)) dir 3813 sound/pci/hda/hda_generic.c step = (query_amp_caps(codec, nid, dir) & AC_AMPCAP_STEP_SIZE) dir 26 sound/pci/hda/hda_local.h #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs) \ dir 27 sound/pci/hda/hda_local.h ((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19) | ((ofs)<<23)) dir 29 sound/pci/hda/hda_local.h #define HDA_COMPOSE_AMP_VAL(nid,chs,idx,dir) \ dir 30 sound/pci/hda/hda_local.h HDA_COMPOSE_AMP_VAL_OFS(nid, chs, idx, dir, 0) dir 32 sound/pci/hda/hda_local.h #define HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, channel, xindex, dir, flags) \ dir 42 sound/pci/hda/hda_local.h .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, dir) | flags } dir 84 sound/pci/hda/hda_local.h #define HDA_CODEC_MUTE_BEEP_MONO_IDX(xname, xcidx, nid, ch, xidx, dir) \ dir 85 sound/pci/hda/hda_local.h HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, ch, xidx, dir) dir 117 sound/pci/hda/hda_local.h #define snd_hda_codec_amp_read(codec, nid, ch, dir, idx) \ dir 118 sound/pci/hda/hda_local.h snd_hdac_regmap_get_amp(&(codec)->core, nid, ch, dir, idx) dir 120 sound/pci/hda/hda_local.h int ch, int dir, int idx, int mask, int val); dir 122 sound/pci/hda/hda_local.h int dir, int idx, int mask, int val); dir 126 sound/pci/hda/hda_local.h int dir, int idx, int mask, int val); dir 127 sound/pci/hda/hda_local.h void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, dir 487 sound/pci/hda/hda_local.h int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, dir 525 sound/pci/hda/hda_local.h int dir, unsigned int bits); dir 527 sound/pci/hda/hda_local.h #define nid_has_mute(codec, nid, dir) \ dir 528 sound/pci/hda/hda_local.h snd_hda_check_amp_caps(codec, nid, dir, (AC_AMPCAP_MUTE | AC_AMPCAP_MIN_MUTE)) dir 529 sound/pci/hda/hda_local.h #define nid_has_volume(codec, nid, dir) \ dir 530 sound/pci/hda/hda_local.h snd_hda_check_amp_caps(codec, nid, dir, AC_AMPCAP_NUM_STEPS) dir 595 sound/pci/hda/hda_local.h unsigned char dir; dir 94 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid, int dir) dir 97 sound/pci/hda/hda_proc.c caps = param_read(codec, nid, dir == HDA_OUTPUT ? dir 113 sound/pci/hda/hda_proc.c int dir, unsigned int wcaps, int indices) dir 122 sound/pci/hda/hda_proc.c if (indices != 1 || dir != HDA_INPUT || dir 135 sound/pci/hda/hda_proc.c int dir, unsigned int wcaps, int indices) dir 141 sound/pci/hda/hda_proc.c stereo = is_stereo_amps(codec, nid, dir, wcaps, indices); dir 143 sound/pci/hda/hda_proc.c dir = dir == HDA_OUTPUT ? AC_AMP_GET_OUTPUT : AC_AMP_GET_INPUT; dir 148 sound/pci/hda/hda_proc.c AC_AMP_GET_LEFT | dir | i); dir 153 sound/pci/hda/hda_proc.c AC_AMP_GET_RIGHT | dir | i); dir 42 sound/pci/hda/patch_analog.c #define set_beep_amp(spec, nid, idx, dir) \ dir 43 sound/pci/hda/patch_analog.c ((spec)->beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir)) /* mono */ dir 45 sound/pci/hda/patch_analog.c #define set_beep_amp(spec, nid, idx, dir) /* NOP */ dir 1937 sound/pci/hda/patch_ca0132.c int mod_id, int src_id, int req, int dir, const void *data, dir 1952 sound/pci/hda/patch_ca0132.c if (dir == SCP_GET && reply == NULL) { dir 1962 sound/pci/hda/patch_ca0132.c scp_send.hdr = make_scp_header(mod_id, src_id, (dir == SCP_GET), req, dir 3644 sound/pci/hda/patch_ca0132.c #define CA0132_CODEC_VOL_MONO(xname, nid, channel, dir) \ dir 3655 sound/pci/hda/patch_ca0132.c .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, 0, dir) } dir 3662 sound/pci/hda/patch_ca0132.c #define CA0132_ALT_CODEC_VOL_MONO(xname, nid, channel, dir) \ dir 3673 sound/pci/hda/patch_ca0132.c .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, 0, dir) } dir 3675 sound/pci/hda/patch_ca0132.c #define CA0132_CODEC_MUTE_MONO(xname, nid, channel, dir) \ dir 3682 sound/pci/hda/patch_ca0132.c .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, 0, dir) } dir 3685 sound/pci/hda/patch_ca0132.c #define CA0132_CODEC_VOL(xname, nid, dir) \ dir 3686 sound/pci/hda/patch_ca0132.c CA0132_CODEC_VOL_MONO(xname, nid, 3, dir) dir 3687 sound/pci/hda/patch_ca0132.c #define CA0132_ALT_CODEC_VOL(xname, nid, dir) \ dir 3688 sound/pci/hda/patch_ca0132.c CA0132_ALT_CODEC_VOL_MONO(xname, nid, 3, dir) dir 3689 sound/pci/hda/patch_ca0132.c #define CA0132_CODEC_MUTE(xname, nid, dir) \ dir 3690 sound/pci/hda/patch_ca0132.c CA0132_CODEC_MUTE_MONO(xname, nid, 3, dir) dir 3975 sound/pci/hda/patch_ca0132.c const char *name, int dir) dir 3978 sound/pci/hda/patch_ca0132.c int type = dir ? HDA_INPUT : HDA_OUTPUT; dir 4009 sound/pci/hda/patch_ca0132.c sprintf(namestr, "%s %s Volume", name, dirstr[dir]); dir 5107 sound/pci/hda/patch_ca0132.c int dir = get_amp_direction(kcontrol); dir 5114 sound/pci/hda/patch_ca0132.c 0, dir); dir 5878 sound/pci/hda/patch_ca0132.c int dir = get_amp_direction(kcontrol); dir 5888 sound/pci/hda/patch_ca0132.c kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir); dir 5898 sound/pci/hda/patch_ca0132.c kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir); dir 5955 sound/pci/hda/patch_ca0132.c int dir = get_amp_direction(kcontrol); dir 5962 sound/pci/hda/patch_ca0132.c 0, dir); dir 6024 sound/pci/hda/patch_ca0132.c int dir = get_amp_direction(kcontrol); dir 6034 sound/pci/hda/patch_ca0132.c kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir); dir 6044 sound/pci/hda/patch_ca0132.c kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir); dir 6057 sound/pci/hda/patch_ca0132.c const char *pfx, int dir) dir 6060 sound/pci/hda/patch_ca0132.c int type = dir ? HDA_INPUT : HDA_OUTPUT; dir 6064 sound/pci/hda/patch_ca0132.c sprintf(namestr, "FX: %s %s Volume", pfx, dirstr[dir]); dir 6092 sound/pci/hda/patch_ca0132.c const char *pfx, int dir) dir 6096 sound/pci/hda/patch_ca0132.c int type = dir ? HDA_INPUT : HDA_OUTPUT; dir 6103 sound/pci/hda/patch_ca0132.c sprintf(namestr, "FX: %s %s Switch", pfx, dirstr[dir]); dir 6105 sound/pci/hda/patch_ca0132.c sprintf(namestr, "%s %s Switch", pfx, dirstr[dir]); dir 6726 sound/pci/hda/patch_ca0132.c static void refresh_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir) dir 6730 sound/pci/hda/patch_ca0132.c caps = snd_hda_param_read(codec, nid, dir == HDA_OUTPUT ? dir 6732 sound/pci/hda/patch_ca0132.c snd_hda_override_amp_caps(codec, nid, dir, caps); dir 7829 sound/pci/hda/patch_ca0132.c static void sbz_gpio_shutdown_commands(struct hda_codec *codec, int dir, dir 7832 sound/pci/hda/patch_ca0132.c if (dir >= 0) dir 7834 sound/pci/hda/patch_ca0132.c AC_VERB_SET_GPIO_DIRECTION, dir); dir 57 sound/pci/hda/patch_conexant.c int idx, int dir) dir 60 sound/pci/hda/patch_conexant.c unsigned int beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir); dir 1055 sound/pci/hda/patch_realtek.c int idx, int dir) dir 1058 sound/pci/hda/patch_realtek.c unsigned int beep_amp = HDA_COMPOSE_AMP_VAL(nid, 3, idx, dir); dir 1097 sound/pci/hda/patch_realtek.c #define set_beep_amp(spec, nid, idx, dir) 0 dir 259 sound/pci/hda/patch_via.c int idx, int dir) dir 262 sound/pci/hda/patch_via.c unsigned int beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir); dir 302 sound/pci/hda/patch_via.c v = snd_hda_codec_amp_read(codec, p->nid, ch, p->dir, dir 484 sound/pci/lola/lola.h int lola_init_pcm(struct lola *chip, int dir, int *nidp); dir 498 sound/pci/lola/lola.h int lola_init_pins(struct lola *chip, int dir, int *nidp); dir 502 sound/pci/lola/lola.h int lola_setup_all_analog_gains(struct lola *chip, int dir, bool mute); dir 19 sound/pci/lola/lola_mixer.c int dir, int nid) dir 33 sound/pci/lola/lola_mixer.c else if (val == 0x0040000a && dir == CAPT) /* Dig=0, InAmp/ovrd */ dir 35 sound/pci/lola/lola_mixer.c else if (val == 0x0040000c && dir == PLAY) /* Dig=0, OutAmp/ovrd */ dir 47 sound/pci/lola/lola_mixer.c if (dir == PLAY) dir 81 sound/pci/lola/lola_mixer.c int lola_init_pins(struct lola *chip, int dir, int *nidp) dir 85 sound/pci/lola/lola_mixer.c for (i = 0; i < chip->pin[dir].num_pins; i++, nid++) { dir 86 sound/pci/lola/lola_mixer.c err = lola_init_pin(chip, &chip->pin[dir].pins[i], dir, nid); dir 89 sound/pci/lola/lola_mixer.c if (chip->pin[dir].pins[i].is_analog) dir 90 sound/pci/lola/lola_mixer.c chip->pin[dir].num_analog_pins++; dir 316 sound/pci/lola/lola_mixer.c static int set_analog_volume(struct lola *chip, int dir, dir 320 sound/pci/lola/lola_mixer.c int lola_setup_all_analog_gains(struct lola *chip, int dir, bool mute) dir 325 sound/pci/lola/lola_mixer.c pin = chip->pin[dir].pins; dir 326 sound/pci/lola/lola_mixer.c max_idx = chip->pin[dir].num_pins; dir 331 sound/pci/lola/lola_mixer.c set_analog_volume(chip, dir, idx, val, false); dir 383 sound/pci/lola/lola_mixer.c static int set_analog_volume(struct lola *chip, int dir, dir 390 sound/pci/lola/lola_mixer.c if (idx >= chip->pin[dir].num_pins) dir 392 sound/pci/lola/lola_mixer.c pin = &chip->pin[dir].pins[idx]; dir 401 sound/pci/lola/lola_mixer.c dir, idx, val); dir 503 sound/pci/lola/lola_mixer.c int dir = kcontrol->private_value; dir 506 sound/pci/lola/lola_mixer.c uinfo->count = chip->pin[dir].num_pins; dir 508 sound/pci/lola/lola_mixer.c uinfo->value.integer.max = chip->pin[dir].pins[0].amp_num_steps; dir 516 sound/pci/lola/lola_mixer.c int dir = kcontrol->private_value; dir 519 sound/pci/lola/lola_mixer.c for (i = 0; i < chip->pin[dir].num_pins; i++) dir 521 sound/pci/lola/lola_mixer.c chip->pin[dir].pins[i].cur_gain_step; dir 529 sound/pci/lola/lola_mixer.c int dir = kcontrol->private_value; dir 532 sound/pci/lola/lola_mixer.c for (i = 0; i < chip->pin[dir].num_pins; i++) { dir 533 sound/pci/lola/lola_mixer.c err = set_analog_volume(chip, dir, i, dir 546 sound/pci/lola/lola_mixer.c int dir = kcontrol->private_value; dir 552 sound/pci/lola/lola_mixer.c pin = &chip->pin[dir].pins[0]; dir 581 sound/pci/lola/lola_mixer.c static int create_analog_mixer(struct lola *chip, int dir, char *name) dir 583 sound/pci/lola/lola_mixer.c if (!chip->pin[dir].num_pins) dir 586 sound/pci/lola/lola_mixer.c if (chip->pin[dir].num_pins != chip->pin[dir].num_analog_pins) dir 589 sound/pci/lola/lola_mixer.c lola_analog_mixer.private_value = dir; dir 630 sound/pci/lola/lola_pcm.c int idx, int nid, int dir) dir 638 sound/pci/lola/lola_pcm.c if (dir == PLAY) dir 645 sound/pci/lola/lola_pcm.c if (dir == PLAY) { dir 684 sound/pci/lola/lola_pcm.c int lola_init_pcm(struct lola *chip, int dir, int *nidp) dir 686 sound/pci/lola/lola_pcm.c struct lola_pcm *pcm = &chip->pcm[dir]; dir 691 sound/pci/lola/lola_pcm.c err = lola_init_stream(chip, &pcm->streams[i], i, nid, dir); dir 1971 sound/pci/maestro3.c u16 dir; dir 1990 sound/pci/maestro3.c dir = inw(io + GPIO_DIRECTION); dir 1992 sound/pci/maestro3.c dir |= 0x10; /* assuming pci bus master? */ dir 1999 sound/pci/maestro3.c outw(dir & ~GPO_PRIMARY_AC97 , io + GPIO_DIRECTION); dir 2002 sound/pci/maestro3.c outw(dir | GPO_PRIMARY_AC97, io + GPIO_DIRECTION); dir 275 sound/soc/atmel/atmel_ssc_dai.c int dir, dir_mask; dir 291 sound/soc/atmel/atmel_ssc_dai.c dir = 0; dir 294 sound/soc/atmel/atmel_ssc_dai.c dir = 1; dir 309 sound/soc/atmel/atmel_ssc_dai.c dma_params = &ssc_dma_params[pdev->id][dir]; dir 313 sound/soc/atmel/atmel_ssc_dai.c ssc_p->dma_params[dir] = dma_params; dir 335 sound/soc/atmel/atmel_ssc_dai.c int dir, dir_mask; dir 338 sound/soc/atmel/atmel_ssc_dai.c dir = 0; dir 340 sound/soc/atmel/atmel_ssc_dai.c dir = 1; dir 342 sound/soc/atmel/atmel_ssc_dai.c dma_params = ssc_p->dma_params[dir]; dir 347 sound/soc/atmel/atmel_ssc_dai.c ssc_p->dma_params[dir] = NULL; dir 350 sound/soc/atmel/atmel_ssc_dai.c dir_mask = 1 << dir; dir 463 sound/soc/atmel/atmel_ssc_dai.c int dir, channels, bits; dir 477 sound/soc/atmel/atmel_ssc_dai.c dir = 0; dir 479 sound/soc/atmel/atmel_ssc_dai.c dir = 1; dir 521 sound/soc/atmel/atmel_ssc_dai.c dma_params = ssc_p->dma_params[dir]; dir 715 sound/soc/atmel/atmel_ssc_dai.c int dir; dir 718 sound/soc/atmel/atmel_ssc_dai.c dir = 0; dir 720 sound/soc/atmel/atmel_ssc_dai.c dir = 1; dir 722 sound/soc/atmel/atmel_ssc_dai.c dma_params = ssc_p->dma_params[dir]; dir 728 sound/soc/atmel/atmel_ssc_dai.c dir ? "receive" : "transmit", dir 739 sound/soc/atmel/atmel_ssc_dai.c int dir; dir 742 sound/soc/atmel/atmel_ssc_dai.c dir = 0; dir 744 sound/soc/atmel/atmel_ssc_dai.c dir = 1; dir 746 sound/soc/atmel/atmel_ssc_dai.c dma_params = ssc_p->dma_params[dir]; dir 292 sound/soc/atmel/mchp-i2s-mcc.c int clk_id, unsigned int freq, int dir) dir 297 sound/soc/atmel/mchp-i2s-mcc.c __func__, clk_id, freq, dir); dir 300 sound/soc/atmel/mchp-i2s-mcc.c if (dir == SND_SOC_CLOCK_IN) dir 716 sound/soc/bcm/cygnus-ssp.c int clk_id, unsigned int freq, int dir) dir 356 sound/soc/cirrus/ep93xx-i2s.c unsigned int freq, int dir) dir 360 sound/soc/cirrus/ep93xx-i2s.c if (dir == SND_SOC_CLOCK_IN || clk_id != 0) dir 137 sound/soc/codecs/88pm860x-codec.c unsigned int dir; dir 975 sound/soc/codecs/88pm860x-codec.c if (pm860x->dir == PM860X_CLK_DIR_OUT) { dir 981 sound/soc/codecs/88pm860x-codec.c if (pm860x->dir == PM860X_CLK_DIR_IN) { dir 1002 sound/soc/codecs/88pm860x-codec.c int clk_id, unsigned int freq, int dir) dir 1007 sound/soc/codecs/88pm860x-codec.c if (dir == PM860X_CLK_DIR_OUT) dir 1008 sound/soc/codecs/88pm860x-codec.c pm860x->dir = PM860X_CLK_DIR_OUT; dir 1078 sound/soc/codecs/88pm860x-codec.c if (pm860x->dir == PM860X_CLK_DIR_OUT) dir 1084 sound/soc/codecs/88pm860x-codec.c if (pm860x->dir == PM860X_CLK_DIR_IN) dir 282 sound/soc/codecs/ad193x.c int clk_id, unsigned int freq, int dir) dir 290 sound/soc/codecs/ad193x.c if (dir == SND_SOC_CLOCK_OUT || freq != 24576000) dir 1158 sound/soc/codecs/adau1373.c int clk_id, unsigned int freq, int dir) dir 594 sound/soc/codecs/adau1701.c int source, unsigned int freq, int dir) dir 374 sound/soc/codecs/adau17x1.c int clk_id, unsigned int freq, int dir) dir 793 sound/soc/codecs/adau1977.c int clk_id, int source, unsigned int freq, int dir) dir 800 sound/soc/codecs/adau1977.c if (dir != SND_SOC_CLOCK_IN) dir 538 sound/soc/codecs/adav80x.c unsigned int freq, int dir) dir 543 sound/soc/codecs/adav80x.c if (dir == SND_SOC_CLOCK_IN) { dir 249 sound/soc/codecs/ak4535.c int clk_id, unsigned int freq, int dir) dir 315 sound/soc/codecs/ak4613.c int clk_id, unsigned int freq, int dir) dir 305 sound/soc/codecs/ak4641.c int clk_id, unsigned int freq, int dir) dir 336 sound/soc/codecs/ak4642.c int clk_id, unsigned int freq, int dir) dir 469 sound/soc/codecs/ak4671.c unsigned int freq, int dir) dir 618 sound/soc/codecs/alc5623.c int clk_id, unsigned int freq, int dir) dir 791 sound/soc/codecs/alc5632.c int clk_id, unsigned int freq, int dir) dir 1365 sound/soc/codecs/arizona.c int source, unsigned int freq, int dir) dir 1910 sound/soc/codecs/arizona.c int clk_id, unsigned int freq, int dir) dir 274 sound/soc/codecs/arizona.h unsigned int freq, int dir); dir 1127 sound/soc/codecs/cpcap.c unsigned int freq, int dir) dir 1284 sound/soc/codecs/cpcap.c unsigned int freq, int dir) dir 50 sound/soc/codecs/cq93vc.c int clk_id, unsigned int freq, int dir) dir 202 sound/soc/codecs/cs35l32.c int clk_id, int source, unsigned int freq, int dir) dir 638 sound/soc/codecs/cs35l33.c int clk_id, int source, unsigned int freq, int dir) dir 601 sound/soc/codecs/cs35l34.c int clk_id, unsigned int freq, int dir) dir 652 sound/soc/codecs/cs35l35.c int clk_id, unsigned int freq, int dir) dir 713 sound/soc/codecs/cs35l35.c int dir) dir 909 sound/soc/codecs/cs35l36.c unsigned int freq, int dir) dir 1004 sound/soc/codecs/cs35l36.c int dir) dir 320 sound/soc/codecs/cs4265.c unsigned int freq, int dir) dir 255 sound/soc/codecs/cs4270.c int clk_id, unsigned int freq, int dir) dir 198 sound/soc/codecs/cs4271.c int clk_id, unsigned int freq, int dir) dir 842 sound/soc/codecs/cs42l42.c int clk_id, unsigned int freq, int dir) dir 354 sound/soc/codecs/cs42l51.c int clk_id, unsigned int freq, int dir) dir 713 sound/soc/codecs/cs42l52.c int clk_id, unsigned int freq, int dir) dir 715 sound/soc/codecs/cs42l56.c int clk_id, unsigned int freq, int dir) dir 908 sound/soc/codecs/cs42l73.c int clk_id, unsigned int freq, int dir) dir 204 sound/soc/codecs/cs42xx8.c int clk_id, unsigned int freq, int dir) dir 1537 sound/soc/codecs/cs43130.c int clk_id, unsigned int freq, int dir) dir 1629 sound/soc/codecs/cs43130.c int dir) dir 1634 sound/soc/codecs/cs43130.c clk_id, source, freq, dir); dir 546 sound/soc/codecs/cs53l30.c int clk_id, unsigned int freq, int dir) dir 993 sound/soc/codecs/cx2072x.c unsigned int freq, int dir) dir 943 sound/soc/codecs/da7210.c int clk_id, unsigned int freq, int dir) dir 1338 sound/soc/codecs/da7213.c int clk_id, unsigned int freq, int dir) dir 1810 sound/soc/codecs/da7218.c int clk_id, unsigned int freq, int dir) dir 1158 sound/soc/codecs/da7219.c int clk_id, unsigned int freq, int dir) dir 1181 sound/soc/codecs/da732x.c unsigned int freq, int dir) dir 1237 sound/soc/codecs/da9055.c int clk_id, unsigned int freq, int dir) dir 79 sound/soc/codecs/es7134.c unsigned int freq, int dir) dir 83 sound/soc/codecs/es7134.c if (dir == SND_SOC_CLOCK_IN && clk_id == 0) { dir 113 sound/soc/codecs/es7241.c unsigned int freq, int dir) dir 117 sound/soc/codecs/es7241.c if (dir == SND_SOC_CLOCK_IN && clk_id == 0) { dir 364 sound/soc/codecs/es8316.c int clk_id, unsigned int freq, int dir) dir 552 sound/soc/codecs/es8328.c int clk_id, unsigned int freq, int dir) dir 1195 sound/soc/codecs/lm49453.c unsigned int freq, int dir) dir 2636 sound/soc/codecs/madera.c int source, unsigned int freq, int dir) dir 3210 sound/soc/codecs/madera.c int clk_id, unsigned int freq, int dir) dir 404 sound/soc/codecs/madera.h int source, unsigned int freq, int dir); dir 1096 sound/soc/codecs/max98088.c int clk_id, unsigned int freq, int dir) dir 1979 sound/soc/codecs/max98090.c int clk_id, unsigned int freq, int dir) dir 1122 sound/soc/codecs/max98095.c int clk_id, unsigned int freq, int dir) dir 152 sound/soc/codecs/max9850.c int clk_id, unsigned int freq, int dir) dir 258 sound/soc/codecs/max9867.c int clk_id, unsigned int freq, int dir) dir 461 sound/soc/codecs/max98925.c int clk_id, unsigned int freq, int dir) dir 480 sound/soc/codecs/max98927.c int clk_id, unsigned int freq, int dir) dir 242 sound/soc/codecs/mc13783.c int clk_id, unsigned int freq, int dir, dir 271 sound/soc/codecs/mc13783.c int clk_id, unsigned int freq, int dir) dir 273 sound/soc/codecs/mc13783.c return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_DAC); dir 277 sound/soc/codecs/mc13783.c int clk_id, unsigned int freq, int dir) dir 279 sound/soc/codecs/mc13783.c return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_CODEC); dir 283 sound/soc/codecs/mc13783.c int clk_id, unsigned int freq, int dir) dir 287 sound/soc/codecs/mc13783.c ret = mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_DAC); dir 291 sound/soc/codecs/mc13783.c return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_CODEC); dir 438 sound/soc/codecs/ml26124.c int clk_id, unsigned int freq, int dir) dir 855 sound/soc/codecs/msm8916-wcd-digital.c unsigned int freq, int dir) dir 700 sound/soc/codecs/nau8540.c int clk_id, int source, unsigned int freq, int dir) dir 480 sound/soc/codecs/nau8810.c int clk_id, unsigned int freq, int dir) dir 613 sound/soc/codecs/nau8822.c unsigned int freq, int dir) dir 1452 sound/soc/codecs/nau8824.c int clk_id, int source, unsigned int freq, int dir) dir 2302 sound/soc/codecs/nau8825.c int source, unsigned int freq, int dir) dir 465 sound/soc/codecs/pcm186x.c unsigned int freq, int dir) dir 471 sound/soc/codecs/pcm186x.c __func__, clk_id, freq, dir); dir 17 sound/soc/codecs/pcm3060.c unsigned int freq, int dir) dir 24 sound/soc/codecs/pcm3060.c if (dir != SND_SOC_CLOCK_IN) { dir 25 sound/soc/codecs/pcm3060.c dev_err(comp->dev, "unsupported sysclock dir: %d\n", dir); dir 300 sound/soc/codecs/pcm3168a.c int clk_id, unsigned int freq, int dir) dir 1691 sound/soc/codecs/rt1011.c int clk_id, int source, unsigned int freq, int dir) dir 756 sound/soc/codecs/rt1305.c int clk_id, int source, unsigned int freq, int dir) dir 578 sound/soc/codecs/rt1308.c int clk_id, int source, unsigned int freq, int dir) dir 804 sound/soc/codecs/rt274.c int clk_id, unsigned int freq, int dir) dir 801 sound/soc/codecs/rt286.c int clk_id, unsigned int freq, int dir) dir 870 sound/soc/codecs/rt298.c int clk_id, unsigned int freq, int dir) dir 863 sound/soc/codecs/rt5514.c int clk_id, unsigned int freq, int dir) dir 1063 sound/soc/codecs/rt5616.c int clk_id, unsigned int freq, int dir) dir 1453 sound/soc/codecs/rt5631.c int clk_id, unsigned int freq, int dir) dir 1834 sound/soc/codecs/rt5640.c int clk_id, unsigned int freq, int dir) dir 2879 sound/soc/codecs/rt5645.c int clk_id, unsigned int freq, int dir) dir 1411 sound/soc/codecs/rt5651.c int clk_id, unsigned int freq, int dir) dir 3462 sound/soc/codecs/rt5659.c int source, unsigned int freq, int dir) dir 971 sound/soc/codecs/rt5660.c int clk_id, unsigned int freq, int dir) dir 2858 sound/soc/codecs/rt5663.c unsigned int freq, int dir) dir 4286 sound/soc/codecs/rt5665.c int source, unsigned int freq, int dir) dir 2089 sound/soc/codecs/rt5668.c int clk_id, int source, unsigned int freq, int dir) dir 2397 sound/soc/codecs/rt5670.c int source, unsigned int freq, int dir) dir 4262 sound/soc/codecs/rt5677.c int clk_id, unsigned int freq, int dir) dir 2167 sound/soc/codecs/rt5682.c int clk_id, int source, unsigned int freq, int dir) dir 863 sound/soc/codecs/sgtl5000.c int clk_id, unsigned int freq, int dir) dir 644 sound/soc/codecs/ssm2518.c int source, unsigned int freq, int dir) dir 356 sound/soc/codecs/ssm2602.c int clk_id, unsigned int freq, int dir) dir 361 sound/soc/codecs/ssm2602.c if (dir == SND_SOC_CLOCK_IN) { dir 581 sound/soc/codecs/sta32x.c int clk_id, unsigned int freq, int dir) dir 610 sound/soc/codecs/sta350.c int clk_id, unsigned int freq, int dir) dir 261 sound/soc/codecs/sti-sas.c unsigned int freq, int dir) dir 266 sound/soc/codecs/sti-sas.c if (dir == SND_SOC_CLOCK_OUT) dir 394 sound/soc/codecs/tas2552.c unsigned int freq, int dir) dir 297 sound/soc/codecs/tas5086.c int clk_id, unsigned int freq, int dir) dir 472 sound/soc/codecs/tlv320aic23.c int clk_id, unsigned int freq, int dir) dir 156 sound/soc/codecs/tlv320aic26.c int clk_id, unsigned int freq, int dir) dir 163 sound/soc/codecs/tlv320aic26.c codec_dai, clk_id, freq, dir); dir 1085 sound/soc/codecs/tlv320aic31xx.c int clk_id, unsigned int freq, int dir) dir 1092 sound/soc/codecs/tlv320aic31xx.c __func__, clk_id, freq, dir); dir 569 sound/soc/codecs/tlv320aic32x4.c int clk_id, unsigned int freq, int dir) dir 1237 sound/soc/codecs/tlv320aic3x.c int clk_id, unsigned int freq, int dir) dir 1282 sound/soc/codecs/tlv320dac33.c int clk_id, unsigned int freq, int dir) dir 2639 sound/soc/codecs/tscs454.c int clk_id, unsigned int freq, int dir) dir 1808 sound/soc/codecs/twl4030.c unsigned int freq, int dir) dir 2010 sound/soc/codecs/twl4030.c int clk_id, unsigned int freq, int dir) dir 933 sound/soc/codecs/twl6040.c int clk_id, unsigned int freq, int dir) dir 125 sound/soc/codecs/uda1334.c int clk_id, unsigned int freq, int dir) dir 246 sound/soc/codecs/uda134x.c int clk_id, unsigned int freq, int dir) dir 252 sound/soc/codecs/uda134x.c clk_id, freq, dir); dir 4877 sound/soc/codecs/wcd9335.c unsigned int freq, int dir) dir 762 sound/soc/codecs/wm0010.c int clk_id, unsigned int freq, int dir) dir 1787 sound/soc/codecs/wm2200.c int source, unsigned int freq, int dir) dir 1507 sound/soc/codecs/wm5100.c int source, unsigned int freq, int dir) dir 751 sound/soc/codecs/wm8350.c int clk_id, unsigned int freq, int dir) dir 776 sound/soc/codecs/wm8350.c if (dir == SND_SOC_CLOCK_OUT) dir 845 sound/soc/codecs/wm8400.c int clk_id, unsigned int freq, int dir) dir 209 sound/soc/codecs/wm8523.c int clk_id, unsigned int freq, int dir) dir 93 sound/soc/codecs/wm8524.c int clk_id, unsigned int freq, int dir) dir 751 sound/soc/codecs/wm8580.c unsigned int freq, int dir) dir 221 sound/soc/codecs/wm8711.c int clk_id, unsigned int freq, int dir) dir 382 sound/soc/codecs/wm8731.c int clk_id, unsigned int freq, int dir) dir 380 sound/soc/codecs/wm8737.c int clk_id, unsigned int freq, int dir) dir 259 sound/soc/codecs/wm8741.c int clk_id, unsigned int freq, int dir) dir 500 sound/soc/codecs/wm8750.c int clk_id, unsigned int freq, int dir) dir 862 sound/soc/codecs/wm8753.c int clk_id, unsigned int freq, int dir) dir 485 sound/soc/codecs/wm8770.c int clk_id, unsigned int freq, int dir) dir 320 sound/soc/codecs/wm8776.c int clk_id, unsigned int freq, int dir) dir 449 sound/soc/codecs/wm8804.c int clk_id, unsigned int freq, int dir) dir 1213 sound/soc/codecs/wm8903.c int clk_id, unsigned int freq, int dir) dir 1415 sound/soc/codecs/wm8904.c unsigned int freq, int dir) dir 615 sound/soc/codecs/wm8940.c int clk_id, unsigned int freq, int dir) dir 639 sound/soc/codecs/wm8955.c unsigned int freq, int dir) dir 1283 sound/soc/codecs/wm8960.c unsigned int freq, int dir) dir 594 sound/soc/codecs/wm8961.c int dir) dir 2613 sound/soc/codecs/wm8962.c unsigned int freq, int dir) dir 430 sound/soc/codecs/wm8971.c int clk_id, unsigned int freq, int dir) dir 443 sound/soc/codecs/wm8974.c unsigned int freq, int dir) dir 448 sound/soc/codecs/wm8974.c if (dir != SND_SOC_CLOCK_IN) dir 608 sound/soc/codecs/wm8978.c unsigned int freq, int dir) dir 824 sound/soc/codecs/wm8983.c int clk_id, unsigned int freq, int dir) dir 919 sound/soc/codecs/wm8985.c int clk_id, unsigned int freq, int dir) dir 553 sound/soc/codecs/wm8988.c int clk_id, unsigned int freq, int dir) dir 964 sound/soc/codecs/wm8990.c int clk_id, unsigned int freq, int dir) dir 1068 sound/soc/codecs/wm8993.c int clk_id, unsigned int freq, int dir) dir 2376 sound/soc/codecs/wm8994.c int clk_id, unsigned int freq, int dir) dir 1906 sound/soc/codecs/wm8995.c int clk_id, unsigned int freq, int dir) dir 1811 sound/soc/codecs/wm8996.c int clk_id, unsigned int freq, int dir) dir 1168 sound/soc/codecs/wm9081.c int source, unsigned int freq, int dir) dir 468 sound/soc/fsl/fsl_asrc.c struct dma_chan *fsl_asrc_get_dma_channel(struct fsl_asrc_pair *pair, bool dir) dir 474 sound/soc/fsl/fsl_asrc.c sprintf(name, "%cx%c", dir == IN ? 'r' : 't', index + 'a'); dir 464 sound/soc/fsl/fsl_asrc.h struct dma_chan *fsl_asrc_get_dma_channel(struct fsl_asrc_pair *pair, bool dir); dir 59 sound/soc/fsl/fsl_asrc_dma.c u8 dir = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? OUT : IN; dir 72 sound/soc/fsl/fsl_asrc_dma.c pair->desc[!dir] = dmaengine_prep_dma_cyclic( dir 73 sound/soc/fsl/fsl_asrc_dma.c pair->dma_chan[!dir], runtime->dma_addr, dir 76 sound/soc/fsl/fsl_asrc_dma.c dir == OUT ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM, flags); dir 77 sound/soc/fsl/fsl_asrc_dma.c if (!pair->desc[!dir]) { dir 82 sound/soc/fsl/fsl_asrc_dma.c pair->desc[!dir]->callback = fsl_asrc_dma_complete; dir 83 sound/soc/fsl/fsl_asrc_dma.c pair->desc[!dir]->callback_param = substream; dir 85 sound/soc/fsl/fsl_asrc_dma.c dmaengine_submit(pair->desc[!dir]); dir 88 sound/soc/fsl/fsl_asrc_dma.c pair->desc[dir] = dmaengine_prep_dma_cyclic( dir 89 sound/soc/fsl/fsl_asrc_dma.c pair->dma_chan[dir], 0xffff, 64, 64, DMA_DEV_TO_DEV, 0); dir 90 sound/soc/fsl/fsl_asrc_dma.c if (!pair->desc[dir]) { dir 95 sound/soc/fsl/fsl_asrc_dma.c dmaengine_submit(pair->desc[dir]); dir 149 sound/soc/fsl/fsl_asrc_dma.c u8 dir = tx ? OUT : IN; dir 175 sound/soc/fsl/fsl_asrc_dma.c dma_params_fe->addr = asrc_priv->paddr + REG_ASRDx(!dir, index); dir 178 sound/soc/fsl/fsl_asrc_dma.c pair->dma_chan[!dir] = fsl_asrc_get_dma_channel(pair, !dir); dir 179 sound/soc/fsl/fsl_asrc_dma.c if (!pair->dma_chan[!dir]) { dir 191 sound/soc/fsl/fsl_asrc_dma.c ret = dmaengine_slave_config(pair->dma_chan[!dir], &config_fe); dir 209 sound/soc/fsl/fsl_asrc_dma.c tmp_chan = fsl_asrc_get_dma_channel(pair, dir); dir 216 sound/soc/fsl/fsl_asrc_dma.c pair->dma_chan[dir] = dma_request_channel(mask, filter, &pair->dma_data); dir 217 sound/soc/fsl/fsl_asrc_dma.c if (!pair->dma_chan[dir]) { dir 241 sound/soc/fsl/fsl_asrc_dma.c ret = dmaengine_slave_config(pair->dma_chan[dir], &config_be); dir 234 sound/soc/fsl/fsl_esai.c unsigned int freq, int dir) dir 239 sound/soc/fsl/fsl_esai.c bool in = dir == SND_SOC_CLOCK_IN; dir 251 sound/soc/fsl/fsl_esai.c if (freq == esai_priv->hck_rate[tx] && dir == esai_priv->hck_dir[tx]) dir 320 sound/soc/fsl/fsl_esai.c esai_priv->hck_dir[tx] = dir; dir 367 sound/soc/fsl/fsl_micfil.c unsigned int freq, int dir) dir 182 sound/soc/fsl/fsl_sai.c int clk_id, unsigned int freq, int dir) dir 186 sound/soc/fsl/fsl_sai.c if (dir == SND_SOC_CLOCK_IN) dir 408 sound/soc/fsl/fsl_ssi.c int dir = tx ? TX : RX; dir 433 sound/soc/fsl/fsl_ssi.c srcr = vals[dir].srcr; dir 434 sound/soc/fsl/fsl_ssi.c stcr = vals[dir].stcr; dir 435 sound/soc/fsl/fsl_ssi.c sier = vals[dir].sier; dir 471 sound/soc/fsl/fsl_ssi.c vals[dir].scr, vals[dir].scr); dir 474 sound/soc/fsl/fsl_ssi.c ssi->streams |= BIT(dir); dir 510 sound/soc/fsl/fsl_ssi.c int dir = tx ? TX : RX; dir 516 sound/soc/fsl/fsl_ssi.c vals = &ssi->regvals[dir]; dir 531 sound/soc/fsl/fsl_ssi.c ssi->streams &= ~BIT(dir); dir 81 sound/soc/fsl/imx-audmix.c int ret, dir; dir 85 sound/soc/fsl/imx-audmix.c dir = tx ? SND_SOC_CLOCK_OUT : SND_SOC_CLOCK_IN; dir 94 sound/soc/fsl/imx-audmix.c ret = snd_soc_dai_set_sysclk(rtd->cpu_dai, FSL_SAI_CLK_MAST1, 0, dir); dir 157 sound/soc/fsl/imx-ssi.c int clk_id, unsigned int freq, int dir) dir 166 sound/soc/fsl/imx-ssi.c if (dir == SND_SOC_CLOCK_OUT) dir 88 sound/soc/fsl/mpc5200_psc_i2s.c int clk_id, unsigned int freq, int dir) dir 92 sound/soc/fsl/mpc5200_psc_i2s.c cpu_dai, dir); dir 93 sound/soc/fsl/mpc5200_psc_i2s.c return (dir == SND_SOC_CLOCK_IN) ? 0 : -EINVAL; dir 156 sound/soc/intel/atom/sst-mfld-platform-pcm.c static int sst_get_stream_mapping(int dev, int sdev, int dir, dir 167 sound/soc/intel/atom/sst-mfld-platform-pcm.c if ((map[i].dev_num == dev) && (map[i].direction == dir)) dir 286 sound/soc/intel/skylake/skl-topology.c int link_type, dir; dir 301 sound/soc/intel/skylake/skl-topology.c dir = SNDRV_PCM_STREAM_CAPTURE; dir 310 sound/soc/intel/skylake/skl-topology.c dir = SNDRV_PCM_STREAM_PLAYBACK; dir 315 sound/soc/intel/skylake/skl-topology.c dir = SNDRV_PCM_STREAM_CAPTURE; dir 328 sound/soc/intel/skylake/skl-topology.c s_fmt, ch, s_freq, dir, dev_type); dir 334 sound/soc/intel/skylake/skl-topology.c m_cfg->vbus_id, link_type, dir); dir 1860 sound/soc/intel/skylake/skl-topology.c u32 tkn_val, int conf_idx, int dir) dir 1865 sound/soc/intel/skylake/skl-topology.c switch (dir) { dir 1875 sound/soc/intel/skylake/skl-topology.c dev_err(dev, "Invalid direction: %d\n", dir); dir 2040 sound/soc/intel/skylake/skl-topology.c int dir, int pin_count) dir 2045 sound/soc/intel/skylake/skl-topology.c switch (dir) { dir 2120 sound/soc/intel/skylake/skl-topology.c u32 tkn, u32 val, u32 dir, int fmt_idx) dir 2127 sound/soc/intel/skylake/skl-topology.c switch (dir) { dir 2137 sound/soc/intel/skylake/skl-topology.c dev_err(dev, "Invalid direction: %d\n", dir); dir 2159 sound/soc/intel/skylake/skl-topology.c struct skl_module_res *res, int pin_idx, int dir) dir 2163 sound/soc/intel/skylake/skl-topology.c switch (dir) { dir 2173 sound/soc/intel/skylake/skl-topology.c dev_err(dev, "Invalid pin direction: %d\n", dir); dir 2201 sound/soc/intel/skylake/skl-topology.c int pin_idx, int dir) dir 2232 sound/soc/intel/skylake/skl-topology.c pin_idx, dir); dir 2262 sound/soc/intel/skylake/skl-topology.c static int pin_index, dir, conf_idx; dir 2345 sound/soc/intel/skylake/skl-topology.c ret = skl_tplg_fill_res_tkn(dev, tkn_elem, res, pin_index, dir); dir 2407 sound/soc/intel/skylake/skl-topology.c conf_idx, dir); dir 2427 sound/soc/intel/skylake/skl-topology.c dir = tkn_elem->value & SKL_IN_DIR_BIT_MASK; dir 2442 sound/soc/intel/skylake/skl-topology.c tkn_elem->value, dir, pin_index); dir 2453 sound/soc/intel/skylake/skl-topology.c mconfig, tkn_elem, dir, dir 3086 sound/soc/intel/skylake/skl-topology.c u32 dir, int fmt_idx) dir 3095 sound/soc/intel/skylake/skl-topology.c switch (dir) { dir 3105 sound/soc/intel/skylake/skl-topology.c dev_err(dev, "Invalid direction: %d\n", dir); dir 3174 sound/soc/intel/skylake/skl-topology.c static int mod_idx, res_val_idx, intf_val_idx, dir, pin_idx; dir 3265 sound/soc/intel/skylake/skl-topology.c dir = tkn_elem->value & SKL_IN_DIR_BIT_MASK; dir 3293 sound/soc/intel/skylake/skl-topology.c ret = skl_tplg_fill_res_tkn(dev, tkn_elem, res, pin_idx, dir); dir 3323 sound/soc/intel/skylake/skl-topology.c dir, pin_idx); dir 303 sound/soc/jz4740/jz4740-i2s.c unsigned int freq, int dir) dir 288 sound/soc/mediatek/common/mtk-btcvsd.c static void mtk_btcvsd_snd_data_transfer(enum bt_sco_direct dir, dir 309 sound/soc/mediatek/common/mtk-btcvsd.c if (dir == BT_SCO_DIRECT_BT2ARM) dir 103 sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c int dir) dir 113 sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c ret = clk_prepare_enable(i2s_path->hop_ck[dir]); dir 129 sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c int dir) dir 131 sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c clk_disable_unprepare(i2s_path->hop_ck[dir]); dir 22 sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h int dir); dir 25 sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h int dir); dir 266 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c unsigned int freq, int dir) dir 277 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c if (dir == SND_SOC_CLOCK_IN) { dir 790 sound/soc/mediatek/mt8183/mt8183-dai-i2s.c int clk_id, unsigned int freq, int dir) dir 803 sound/soc/mediatek/mt8183/mt8183-dai-i2s.c if (dir != SND_SOC_CLOCK_OUT) { dir 616 sound/soc/mediatek/mt8183/mt8183-dai-tdm.c int clk_id, unsigned int freq, int dir) dir 627 sound/soc/mediatek/mt8183/mt8183-dai-tdm.c if (dir != SND_SOC_CLOCK_OUT) { dir 100 sound/soc/meson/axg-tdm-interface.c unsigned int freq, int dir) dir 105 sound/soc/meson/axg-tdm-interface.c if (dir == SND_SOC_CLOCK_OUT && clk_id == 0) { dir 49 sound/soc/mxs/mxs-saif.c int clk_id, unsigned int freq, int dir) dir 114 sound/soc/pxa/mmp-sspa.c int clk_id, unsigned int freq, int dir) dir 203 sound/soc/pxa/pxa-ssp.c int clk_id, unsigned int freq, int dir) dir 148 sound/soc/pxa/pxa2xx-i2s.c int clk_id, unsigned int freq, int dir) dir 23 sound/soc/qcom/lpass-cpu.c unsigned int freq, int dir) dir 58 sound/soc/qcom/lpass-ipq806x.c static int ipq806x_lpass_alloc_dma_channel(struct lpass_data *drvdata, int dir) dir 60 sound/soc/qcom/lpass-ipq806x.c if (dir == SNDRV_PCM_STREAM_PLAYBACK) dir 118 sound/soc/qcom/lpass-lpaif-reg.h #define __LPAIF_DMA_REG(v, chan, dir, reg) \ dir 119 sound/soc/qcom/lpass-lpaif-reg.h (dir == SNDRV_PCM_STREAM_PLAYBACK) ? \ dir 123 sound/soc/qcom/lpass-lpaif-reg.h #define LPAIF_DMACTL_REG(v, chan, dir) __LPAIF_DMA_REG(v, chan, dir, CTL) dir 124 sound/soc/qcom/lpass-lpaif-reg.h #define LPAIF_DMABASE_REG(v, chan, dir) __LPAIF_DMA_REG(v, chan, dir, BASE) dir 125 sound/soc/qcom/lpass-lpaif-reg.h #define LPAIF_DMABUFF_REG(v, chan, dir) __LPAIF_DMA_REG(v, chan, dir, BUFF) dir 126 sound/soc/qcom/lpass-lpaif-reg.h #define LPAIF_DMACURR_REG(v, chan, dir) __LPAIF_DMA_REG(v, chan, dir, CURR) dir 127 sound/soc/qcom/lpass-lpaif-reg.h #define LPAIF_DMAPER_REG(v, chan, dir) __LPAIF_DMA_REG(v, chan, dir, PER) dir 128 sound/soc/qcom/lpass-lpaif-reg.h #define LPAIF_DMAPERCNT_REG(v, chan, dir) __LPAIF_DMA_REG(v, chan, dir, PERCNT) dir 61 sound/soc/qcom/lpass-platform.c int ret, dma_ch, dir = substream->stream; dir 72 sound/soc/qcom/lpass-platform.c dma_ch = v->alloc_dma_channel(drvdata, dir); dir 82 sound/soc/qcom/lpass-platform.c LPAIF_DMACTL_REG(v, dma_ch, dir), 0); dir 137 sound/soc/qcom/lpass-platform.c int ch, dir = substream->stream; dir 209 sound/soc/qcom/lpass-platform.c LPAIF_DMACTL_REG(v, ch, dir), regval); dir 248 sound/soc/qcom/lpass-platform.c int ret, ch, dir = substream->stream; dir 253 sound/soc/qcom/lpass-platform.c LPAIF_DMABASE_REG(v, ch, dir), dir 262 sound/soc/qcom/lpass-platform.c LPAIF_DMABUFF_REG(v, ch, dir), dir 271 sound/soc/qcom/lpass-platform.c LPAIF_DMAPER_REG(v, ch, dir), dir 280 sound/soc/qcom/lpass-platform.c LPAIF_DMACTL_REG(v, ch, dir), dir 300 sound/soc/qcom/lpass-platform.c int ret, ch, dir = substream->stream; dir 329 sound/soc/qcom/lpass-platform.c LPAIF_DMACTL_REG(v, ch, dir), dir 342 sound/soc/qcom/lpass-platform.c LPAIF_DMACTL_REG(v, ch, dir), dir 375 sound/soc/qcom/lpass-platform.c int ret, ch, dir = substream->stream; dir 380 sound/soc/qcom/lpass-platform.c LPAIF_DMABASE_REG(v, ch, dir), &base_addr); dir 388 sound/soc/qcom/lpass-platform.c LPAIF_DMACURR_REG(v, ch, dir), &curr_addr); dir 417 sound/soc/qcom/qdsp6/q6afe-dai.c int clk_id, unsigned int freq, int dir) dir 424 sound/soc/qcom/qdsp6/q6afe-dai.c return q6afe_port_set_sysclk(port, clk_id, 0, 5, freq, dir); dir 430 sound/soc/qcom/qdsp6/q6afe-dai.c freq, dir); dir 436 sound/soc/qcom/qdsp6/q6afe-dai.c freq, dir); dir 441 sound/soc/qcom/qdsp6/q6afe-dai.c freq, dir); dir 963 sound/soc/qcom/qdsp6/q6afe.c unsigned int freq, int dir) dir 210 sound/soc/qcom/qdsp6/q6afe.h unsigned int freq, int dir); dir 636 sound/soc/qcom/qdsp6/q6asm-dai.c int dir = stream->direction; dir 656 sound/soc/qcom/qdsp6/q6asm-dai.c if (dir == SND_COMPRESS_PLAYBACK) { dir 670 sound/soc/qcom/qdsp6/q6asm-dai.c prtd->session_id, dir); dir 676 sound/soc/qcom/qdsp6/q6asm-dai.c ret = q6asm_map_memory_regions(dir, prtd->audio_client, prtd->phys, dir 878 sound/soc/qcom/qdsp6/q6asm-dai.c int ret, id, dir; dir 891 sound/soc/qcom/qdsp6/q6asm-dai.c ret = of_property_read_u32(node, "direction", &dir); dir 895 sound/soc/qcom/qdsp6/q6asm-dai.c if (dir == Q6ASM_DAI_RX) dir 897 sound/soc/qcom/qdsp6/q6asm-dai.c else if (dir == Q6ASM_DAI_TX) dir 251 sound/soc/qcom/qdsp6/q6asm.c phys_addr_t buf_add, int dir) dir 259 sound/soc/qcom/qdsp6/q6asm.c if (ac->port[dir].mem_map_handle == 0) { dir 276 sound/soc/qcom/qdsp6/q6asm.c pkt->hdr.token = ((ac->session << 8) | dir); dir 279 sound/soc/qcom/qdsp6/q6asm.c mem_unmap->mem_map_handle = ac->port[dir].mem_map_handle; dir 287 sound/soc/qcom/qdsp6/q6asm.c ac->port[dir].mem_map_handle = 0; dir 314 sound/soc/qcom/qdsp6/q6asm.c int q6asm_unmap_memory_regions(unsigned int dir, struct audio_client *ac) dir 320 sound/soc/qcom/qdsp6/q6asm.c port = &ac->port[dir]; dir 328 sound/soc/qcom/qdsp6/q6asm.c rc = __q6asm_memory_unmap(ac, port->buf[dir].phys, dir); dir 343 sound/soc/qcom/qdsp6/q6asm.c static int __q6asm_memory_map_regions(struct audio_client *ac, int dir, dir 384 sound/soc/qcom/qdsp6/q6asm.c pkt->hdr.token = ((ac->session << 8) | dir); dir 392 sound/soc/qcom/qdsp6/q6asm.c port = &ac->port[dir]; dir 422 sound/soc/qcom/qdsp6/q6asm.c int q6asm_map_memory_regions(unsigned int dir, struct audio_client *ac, dir 432 sound/soc/qcom/qdsp6/q6asm.c if (ac->port[dir].buf) { dir 445 sound/soc/qcom/qdsp6/q6asm.c ac->port[dir].buf = buf; dir 456 sound/soc/qcom/qdsp6/q6asm.c ac->port[dir].num_periods = periods; dir 460 sound/soc/qcom/qdsp6/q6asm.c rc = __q6asm_memory_map_regions(ac, dir, period_sz, periods, 1); dir 463 sound/soc/qcom/qdsp6/q6asm.c q6asm_audio_client_free_buf(ac, &ac->port[dir]); dir 675 sound/soc/qcom/qdsp6/q6asm.c uint32_t dir = 0; dir 690 sound/soc/qcom/qdsp6/q6asm.c dir = (hdr->token & 0x0F); dir 691 sound/soc/qcom/qdsp6/q6asm.c port = &ac->port[dir]; dir 64 sound/soc/qcom/qdsp6/q6asm.h int q6asm_map_memory_regions(unsigned int dir, dir 68 sound/soc/qcom/qdsp6/q6asm.h int q6asm_unmap_memory_regions(unsigned int dir, struct audio_client *ac); dir 417 sound/soc/rockchip/rockchip_i2s.c unsigned int freq, int dir) dir 498 sound/soc/samsung/i2s.c int dir) dir 519 sound/soc/samsung/i2s.c val = (dir << MOD_OPCLK_SHIFT) & MOD_OPCLK_MASK; dir 524 sound/soc/samsung/i2s.c if (dir == SND_SOC_CLOCK_IN) dir 529 sound/soc/samsung/i2s.c (((dir == SND_SOC_CLOCK_IN) dir 531 sound/soc/samsung/i2s.c ((dir == SND_SOC_CLOCK_OUT) dir 539 sound/soc/samsung/i2s.c if (dir == SND_SOC_CLOCK_IN) dir 402 sound/soc/samsung/pcm.c int clk_id, unsigned int freq, int dir) dir 335 sound/soc/samsung/s3c-i2s-v2.c int clk_id, unsigned int freq, int dir) dir 357 sound/soc/samsung/s3c-i2s-v2.c switch (dir) { dir 277 sound/soc/samsung/s3c24xx-i2s.c int clk_id, unsigned int freq, int dir) dir 114 sound/soc/samsung/spdif.c int clk_id, unsigned int freq, int dir) dir 1290 sound/soc/sh/fsi.c enum dma_transfer_direction dir; dir 1294 sound/soc/sh/fsi.c dir = DMA_MEM_TO_DEV; dir 1296 sound/soc/sh/fsi.c dir = DMA_DEV_TO_MEM; dir 1302 sound/soc/sh/fsi.c dir, dir 36 sound/soc/sh/siu.h __u32 dir; /* 0=the ather except CPUOUTPUT, 1=CPUINPUT */ dir 161 sound/soc/sh/siu_dai.c (fw->spbpar[idx].dir << 7) | 3; dir 626 sound/soc/sh/siu_dai.c unsigned int freq, int dir) dir 632 sound/soc/sh/siu_dai.c if (dir != SND_SOC_CLOCK_IN) dir 209 sound/soc/sh/ssi.c unsigned int freq, int dir) dir 23 sound/soc/soc-component.c int dir) dir 27 sound/soc/soc-component.c freq, dir); dir 22 sound/soc/soc-dai.c unsigned int freq, int dir) dir 25 sound/soc/soc-dai.c return dai->driver->ops->set_sysclk(dai, clk_id, freq, dir); dir 28 sound/soc/soc-dai.c freq, dir); dir 396 sound/soc/soc-dai.c bool snd_soc_dai_stream_valid(struct snd_soc_dai *dai, int dir) dir 400 sound/soc/soc-dai.c if (dir == SNDRV_PCM_STREAM_PLAYBACK) dir 47 sound/soc/soc-dapm.c #define snd_soc_dapm_for_each_direction(dir) \ dir 48 sound/soc/soc-dapm.c for ((dir) = SND_SOC_DAPM_DIR_IN; (dir) <= SND_SOC_DAPM_DIR_OUT; \ dir 49 sound/soc/soc-dapm.c (dir)++) dir 205 sound/soc/soc-dapm.c struct snd_soc_dapm_widget *w, enum snd_soc_dapm_direction dir) dir 207 sound/soc/soc-dapm.c enum snd_soc_dapm_direction rdir = SND_SOC_DAPM_DIR_REVERSE(dir); dir 214 sound/soc/soc-dapm.c if (w->endpoints[dir] == -1) dir 218 sound/soc/soc-dapm.c w->endpoints[dir] = -1; dir 221 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_path(w, dir, p) { dir 225 sound/soc/soc-dapm.c if (node->endpoints[dir] != -1) { dir 226 sound/soc/soc-dapm.c node->endpoints[dir] = -1; dir 1021 sound/soc/soc-dapm.c enum snd_soc_dapm_direction dir; dir 1028 sound/soc/soc-dapm.c dir = SND_SOC_DAPM_DIR_OUT; dir 1032 sound/soc/soc-dapm.c dir = SND_SOC_DAPM_DIR_IN; dir 1046 sound/soc/soc-dapm.c if (list_empty(&w->edges[dir])) { dir 1055 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_path(w, dir, path) { dir 1157 sound/soc/soc-dapm.c enum snd_soc_dapm_direction dir) dir 1159 sound/soc/soc-dapm.c enum snd_soc_dapm_direction rdir = SND_SOC_DAPM_DIR_REVERSE(dir); dir 1162 sound/soc/soc-dapm.c widget->endpoints[dir] = -1; dir 1173 sound/soc/soc-dapm.c invalidate_paths_ep(path->node[dir], dir); dir 1187 sound/soc/soc-dapm.c struct list_head *list, enum snd_soc_dapm_direction dir, dir 1194 sound/soc/soc-dapm.c enum snd_soc_dapm_direction rdir = SND_SOC_DAPM_DIR_REVERSE(dir); dir 1198 sound/soc/soc-dapm.c if (widget->endpoints[dir] >= 0) dir 1199 sound/soc/soc-dapm.c return widget->endpoints[dir]; dir 1207 sound/soc/soc-dapm.c if (custom_stop_condition && custom_stop_condition(widget, dir)) { dir 1212 sound/soc/soc-dapm.c if ((widget->is_ep & SND_SOC_DAPM_DIR_TO_EP(dir)) && widget->connected) { dir 1213 sound/soc/soc-dapm.c widget->endpoints[dir] = snd_soc_dapm_suspend_check(widget); dir 1214 sound/soc/soc-dapm.c return widget->endpoints[dir]; dir 1226 sound/soc/soc-dapm.c trace_snd_soc_dapm_path(widget, dir, path); dir 1230 sound/soc/soc-dapm.c con += fn(path->node[dir], list, custom_stop_condition); dir 1235 sound/soc/soc-dapm.c widget->endpoints[dir] = con; dir 2101 sound/soc/soc-dapm.c enum snd_soc_dapm_direction dir, rdir; dir 2138 sound/soc/soc-dapm.c snd_soc_dapm_for_each_direction(dir) { dir 2139 sound/soc/soc-dapm.c rdir = SND_SOC_DAPM_DIR_REVERSE(dir); dir 2140 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_path(w, dir, p) { dir 2484 sound/soc/soc-dapm.c enum snd_soc_dapm_direction dir; dir 2492 sound/soc/soc-dapm.c snd_soc_dapm_for_each_direction(dir) { dir 2493 sound/soc/soc-dapm.c snd_soc_dapm_widget_for_each_path_safe(w, dir, p, next_p) dir 2641 sound/soc/soc-dapm.c int dir = substream->stream; dir 2647 sound/soc/soc-dapm.c if (dir == SNDRV_PCM_STREAM_PLAYBACK) dir 2656 sound/soc/soc-dapm.c dir == SNDRV_PCM_STREAM_PLAYBACK ? "playback" : "capture"); dir 2699 sound/soc/soc-dapm.c enum snd_soc_dapm_direction dir; dir 2736 sound/soc/soc-dapm.c snd_soc_dapm_for_each_direction(dir) { dir 2737 sound/soc/soc-dapm.c if (!list_empty(&w->edges[dir])) dir 2738 sound/soc/soc-dapm.c ep |= SND_SOC_DAPM_DIR_TO_EP(dir); dir 2799 sound/soc/soc-dapm.c enum snd_soc_dapm_direction dir; dir 2877 sound/soc/soc-dapm.c snd_soc_dapm_for_each_direction(dir) dir 2878 sound/soc/soc-dapm.c list_add(&path->list_node[dir], &widgets[dir]->edges[dir]); dir 2880 sound/soc/soc-dapm.c snd_soc_dapm_for_each_direction(dir) { dir 2881 sound/soc/soc-dapm.c dapm_update_widget_flags(widgets[dir]); dir 2882 sound/soc/soc-dapm.c dapm_mark_dirty(widgets[dir], "Route added"); dir 3597 sound/soc/soc-dapm.c enum snd_soc_dapm_direction dir; dir 3723 sound/soc/soc-dapm.c snd_soc_dapm_for_each_direction(dir) { dir 3724 sound/soc/soc-dapm.c INIT_LIST_HEAD(&w->edges[dir]); dir 3725 sound/soc/soc-dapm.c w->endpoints[dir] = -1; dir 154 sound/soc/soc-pcm.c int dpcm_dapm_stream_event(struct snd_soc_pcm_runtime *fe, int dir, dir 159 sound/soc/soc-pcm.c for_each_dpcm_be(fe, dir, dpcm) { dir 164 sound/soc/soc-pcm.c be->dai_link->name, event, dir); dir 167 sound/soc/soc-pcm.c (be->dpcm[dir].users >= 1)) dir 170 sound/soc/soc-pcm.c snd_soc_dapm_stream_event(be, dir, event); dir 173 sound/soc/soc-pcm.c snd_soc_dapm_stream_event(fe, dir, event); dir 1330 sound/soc/soc-pcm.c enum snd_soc_dapm_direction dir) dir 1337 sound/soc/soc-pcm.c if (dir == SND_SOC_DAPM_DIR_OUT) { dir 99 sound/soc/sof/core.c const char *pcm_name, int dir) dir 104 sound/soc/sof/core.c if (dir == SNDRV_PCM_STREAM_PLAYBACK) dir 38 sound/soc/sof/intel/hda-dai.c int dir, int stream_tag) dir 44 sound/soc/sof/intel/hda-dai.c for_each_dpcm_fe(rtd, dir, dpcm) { dir 45 sound/soc/sof/intel/hda-dai.c fe_substream = snd_soc_dpcm_get_substream(dpcm->fe, dir); dir 155 sound/soc/sof/intel/hda-dai.c const char *dai_name, int channel, int dir) dir 167 sound/soc/sof/intel/hda-dai.c dir == sof_dai->comp_dai.direction) { dir 530 sound/soc/sof/intel/hda.h int hda_dsp_ipc_cmd_done(struct snd_sof_dev *sdev, int dir); dir 221 sound/soc/sof/pm.c int dir; dir 229 sound/soc/sof/pm.c for (dir = 0; dir <= SNDRV_PCM_STREAM_CAPTURE; dir++) { dir 230 sound/soc/sof/pm.c substream = spcm->stream[dir].substream; dir 236 sound/soc/sof/pm.c spcm->prepared[dir] = false; dir 506 sound/soc/sof/sof-priv.h int dir); dir 53 sound/soc/sof/topology.c static int ipc_pcm_params(struct snd_sof_widget *swidget, int dir) dir 72 sound/soc/sof/topology.c params = &spcm->params[dir]; dir 79 sound/soc/sof/topology.c pcm.params.direction = dir; dir 1283 sound/soc/sof/topology.c int dir) dir 1288 sound/soc/sof/topology.c spcm->pcm.caps[dir].name, dir 1289 sound/soc/sof/topology.c dir); dir 1295 sound/soc/sof/topology.c spcm->stream[dir].comp_id = host_widget->comp_id; dir 1306 sound/soc/sof/topology.c enum sof_ipc_stream_direction dir, dir 1325 sound/soc/sof/topology.c host->direction = dir; dir 143 sound/soc/sprd/sprd-pcm-compress.c enum dma_transfer_direction dir; dir 207 sound/soc/sprd/sprd-pcm-compress.c dir = DMA_MEM_TO_DEV; dir 211 sound/soc/sprd/sprd-pcm-compress.c dir = DMA_DEV_TO_MEM; dir 239 sound/soc/sprd/sprd-pcm-compress.c sg_num, dir, dir 243 sound/soc/sprd/sprd-pcm-dma.c enum dma_transfer_direction dir; dir 253 sound/soc/sprd/sprd-pcm-dma.c dir = DMA_MEM_TO_DEV; dir 258 sound/soc/sprd/sprd-pcm-dma.c dir = DMA_DEV_TO_MEM; dir 291 sound/soc/sprd/sprd-pcm-dma.c sg_num, dir, dir 725 sound/soc/sti/uniperif_player.c unsigned int freq, int dir) dir 731 sound/soc/sti/uniperif_player.c if (UNIPERIF_TYPE_IS_TDM(player) || (dir == SND_SOC_CLOCK_IN)) dir 113 sound/soc/stm/stm32_adfsdm.c unsigned int freq, int dir) dir 405 sound/soc/stm/stm32_i2s.c int clk_id, unsigned int freq, int dir) dir 411 sound/soc/stm/stm32_i2s.c if ((dir == SND_SOC_CLOCK_OUT) && STM32_I2S_IS_MASTER(i2s)) { dir 40 sound/soc/stm/stm32_sai_sub.c #define STM_SAI_IS_PLAYBACK(ip) ((ip)->dir == SNDRV_PCM_STREAM_PLAYBACK) dir 41 sound/soc/stm/stm32_sai_sub.c #define STM_SAI_IS_CAPTURE(ip) ((ip)->dir == SNDRV_PCM_STREAM_CAPTURE) dir 113 sound/soc/stm/stm32_sai_sub.c int dir; dir 550 sound/soc/stm/stm32_sai_sub.c int clk_id, unsigned int freq, int dir) dir 555 sound/soc/stm/stm32_sai_sub.c if (dir == SND_SOC_CLOCK_OUT && sai->sai_mclk) { dir 1389 sound/soc/stm/stm32_sai_sub.c sai->dir = SNDRV_PCM_STREAM_PLAYBACK; dir 1391 sound/soc/stm/stm32_sai_sub.c sai->dir = SNDRV_PCM_STREAM_CAPTURE; dir 1401 sound/soc/stm/stm32_sai_sub.c sai->dir == SNDRV_PCM_STREAM_CAPTURE) { dir 817 sound/soc/sunxi/sun4i-i2s.c unsigned int freq, int dir) dir 662 sound/soc/ti/davinci-mcasp.c unsigned int freq, int dir) dir 667 sound/soc/ti/davinci-mcasp.c if (dir == SND_SOC_CLOCK_OUT) { dir 1438 sound/soc/ti/davinci-mcasp.c int i, dir, ret; dir 1458 sound/soc/ti/davinci-mcasp.c dir = TX_MODE; dir 1460 sound/soc/ti/davinci-mcasp.c dir = RX_MODE; dir 1463 sound/soc/ti/davinci-mcasp.c if (mcasp->serial_dir[i] == dir) dir 390 sound/soc/ti/omap-dmic.c unsigned int freq, int dir) dir 394 sound/soc/ti/omap-dmic.c if (dir == SND_SOC_CLOCK_IN) dir 396 sound/soc/ti/omap-dmic.c else if (dir == SND_SOC_CLOCK_OUT) dir 399 sound/soc/ti/omap-dmic.c dev_err(dmic->dev, "invalid clock direction (%d)\n", dir); dir 1212 sound/soc/ti/omap-mcbsp.c int dir) dir 39 sound/soc/uniphier/aio-compress.c if (sub->swm->dir == PORT_DIR_OUTPUT) dir 63 sound/soc/uniphier/aio-compress.c if (sub->swm->dir == PORT_DIR_OUTPUT) dir 261 sound/soc/uniphier/aio-compress.c if (sub->swm->dir == PORT_DIR_OUTPUT) { dir 336 sound/soc/uniphier/aio-compress.c if (sub->swm->dir == PORT_DIR_OUTPUT) { dir 362 sound/soc/uniphier/aio-compress.c if (sub->swm->dir == PORT_DIR_OUTPUT) { dir 214 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_INPUT) { dir 254 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { dir 336 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { dir 455 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { dir 531 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { dir 646 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { dir 679 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { dir 748 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_INPUT) dir 791 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { dir 901 sound/soc/uniphier/aio-core.c if (sub->swm->dir != PORT_DIR_OUTPUT) dir 925 sound/soc/uniphier/aio-core.c if (sub->swm->dir != PORT_DIR_OUTPUT) dir 1025 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) dir 1161 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { dir 1191 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) { dir 1235 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) dir 1245 sound/soc/uniphier/aio-core.c if (sub->swm->dir == PORT_DIR_OUTPUT) dir 65 sound/soc/uniphier/aio-cpu.c const char *name, int dir) dir 67 sound/soc/uniphier/aio-cpu.c if (dir == SNDRV_PCM_STREAM_PLAYBACK && dir 68 sound/soc/uniphier/aio-cpu.c spec->swm.dir != PORT_DIR_OUTPUT) { dir 72 sound/soc/uniphier/aio-cpu.c if (dir == SNDRV_PCM_STREAM_CAPTURE && dir 73 sound/soc/uniphier/aio-cpu.c spec->swm.dir != PORT_DIR_INPUT) { dir 147 sound/soc/uniphier/aio-cpu.c unsigned int freq, int dir) dir 209 sound/soc/uniphier/aio-cpu.c if (dir == SND_SOC_CLOCK_OUT) dir 198 sound/soc/uniphier/aio-dma.c if (sub->swm->dir == PORT_DIR_OUTPUT) dir 18 sound/soc/uniphier/aio-ld11.c .dir = PORT_DIR_INPUT, dir 31 sound/soc/uniphier/aio-ld11.c .dir = PORT_DIR_INPUT, dir 45 sound/soc/uniphier/aio-ld11.c .dir = PORT_DIR_INPUT, dir 59 sound/soc/uniphier/aio-ld11.c .dir = PORT_DIR_INPUT, dir 72 sound/soc/uniphier/aio-ld11.c .dir = PORT_DIR_OUTPUT, dir 86 sound/soc/uniphier/aio-ld11.c .dir = PORT_DIR_OUTPUT, dir 100 sound/soc/uniphier/aio-ld11.c .dir = PORT_DIR_OUTPUT, dir 113 sound/soc/uniphier/aio-ld11.c .dir = PORT_DIR_OUTPUT, dir 126 sound/soc/uniphier/aio-ld11.c .dir = PORT_DIR_OUTPUT, dir 141 sound/soc/uniphier/aio-ld11.c .dir = PORT_DIR_OUTPUT, dir 157 sound/soc/uniphier/aio-ld11.c .dir = PORT_DIR_OUTPUT, dir 171 sound/soc/uniphier/aio-ld11.c .dir = PORT_DIR_OUTPUT, dir 18 sound/soc/uniphier/aio-pxs2.c .dir = PORT_DIR_INPUT, dir 32 sound/soc/uniphier/aio-pxs2.c .dir = PORT_DIR_INPUT, dir 46 sound/soc/uniphier/aio-pxs2.c .dir = PORT_DIR_OUTPUT, dir 60 sound/soc/uniphier/aio-pxs2.c .dir = PORT_DIR_OUTPUT, dir 74 sound/soc/uniphier/aio-pxs2.c .dir = PORT_DIR_OUTPUT, dir 87 sound/soc/uniphier/aio-pxs2.c .dir = PORT_DIR_OUTPUT, dir 100 sound/soc/uniphier/aio-pxs2.c .dir = PORT_DIR_OUTPUT, dir 113 sound/soc/uniphier/aio-pxs2.c .dir = PORT_DIR_OUTPUT, dir 126 sound/soc/uniphier/aio-pxs2.c .dir = PORT_DIR_OUTPUT, dir 195 sound/soc/uniphier/aio.h int dir; dir 622 sound/soc/ux500/ux500_msp_dai.c int clk_id, unsigned int freq, int dir) dir 533 sound/soc/ux500/ux500_msp_i2s.c static int disable_msp(struct ux500_msp *msp, unsigned int dir) dir 540 sound/soc/ux500/ux500_msp_i2s.c disable_tx = dir & MSP_DIR_TX; dir 541 sound/soc/ux500/ux500_msp_i2s.c disable_rx = dir & MSP_DIR_TX; dir 609 sound/soc/ux500/ux500_msp_i2s.c int ux500_msp_i2s_close(struct ux500_msp *msp, unsigned int dir) dir 613 sound/soc/ux500/ux500_msp_i2s.c dev_dbg(msp->dev, "%s: Enter (dir = 0x%01x).\n", __func__, dir); dir 615 sound/soc/ux500/ux500_msp_i2s.c status = disable_msp(msp, dir); dir 495 sound/soc/ux500/ux500_msp_i2s.h unsigned int dir); dir 60 sound/sparc/cs4231.c int dir; dir 68 sound/sparc/cs4231.c int dir); dir 1686 sound/sparc/cs4231.c if (base->dir == APC_PLAY) dir 1692 sound/sparc/cs4231.c if (base->dir == APC_PLAY) dir 1697 sound/sparc/cs4231.c sbus_writel(bus_addr, base->regs + base->dir + APCNVA); dir 1698 sound/sparc/cs4231.c sbus_writel(len, base->regs + base->dir + APCNC); dir 1715 sound/sparc/cs4231.c if (base->dir == APC_RECORD) dir 1731 sound/sparc/cs4231.c sbus_writel(0, base->regs + base->dir + APCNC); dir 1732 sound/sparc/cs4231.c sbus_writel(0, base->regs + base->dir + APCNVA); dir 1733 sound/sparc/cs4231.c if (base->dir == APC_PLAY) { dir 1734 sound/sparc/cs4231.c sbus_writel(0, base->regs + base->dir + APCC); dir 1735 sound/sparc/cs4231.c sbus_writel(0, base->regs + base->dir + APCVA); dir 1742 sound/sparc/cs4231.c if (base->dir == APC_PLAY) dir 1762 sound/sparc/cs4231.c return sbus_readl(base->regs + base->dir + APCVA); dir 1819 sound/sparc/cs4231.c chip->c_dma.sbus_info.dir = APC_RECORD; dir 1820 sound/sparc/cs4231.c chip->p_dma.sbus_info.dir = APC_PLAY; dir 1915 sound/sparc/cs4231.c static void _ebus_dma_prepare(struct cs4231_dma_control *dma_cont, int dir) dir 1917 sound/sparc/cs4231.c ebus_dma_prepare(&dma_cont->ebus_info, dir); dir 707 sound/usb/caiaq/audio.c static struct urb **alloc_urbs(struct snd_usb_caiaqdev *cdev, int dir, int *ret) dir 714 sound/usb/caiaq/audio.c pipe = (dir == SNDRV_PCM_STREAM_PLAYBACK) ? dir 754 sound/usb/caiaq/audio.c urbs[i]->complete = (dir == SNDRV_PCM_STREAM_CAPTURE) ? dir 304 sound/usb/line6/pcm.c int ret = 0, dir; dir 308 sound/usb/line6/pcm.c for (dir = 0; dir < 2; dir++) { dir 309 sound/usb/line6/pcm.c pstr = get_stream(line6pcm, dir); dir 310 sound/usb/line6/pcm.c ret = line6_buffer_acquire(line6pcm, pstr, dir, type); dir 317 sound/usb/line6/pcm.c for (dir = 0; dir < 2; dir++) { dir 318 sound/usb/line6/pcm.c ret = line6_stream_start(line6pcm, dir, type); dir 335 sound/usb/line6/pcm.c int dir; dir 338 sound/usb/line6/pcm.c for (dir = 0; dir < 2; dir++) dir 339 sound/usb/line6/pcm.c line6_stream_stop(line6pcm, dir, type); dir 340 sound/usb/line6/pcm.c for (dir = 0; dir < 2; dir++) { dir 341 sound/usb/line6/pcm.c pstr = get_stream(line6pcm, dir); dir 1093 sound/usb/midi.c static int substream_open(struct snd_rawmidi_substream *substream, int dir, dir 1117 sound/usb/midi.c umidi->opened[dir]++; dir 1121 sound/usb/midi.c umidi->opened[dir]--; dir 170 tools/bpf/bpftool/common.c char *dir; dir 175 tools/bpf/bpftool/common.c dir = dirname(file); dir 177 tools/bpf/bpftool/common.c if (is_bpffs(dir)) dir 187 tools/bpf/bpftool/common.c err = mnt_fs(dir, "bpf", err_str, ERR_MAX_LEN); dir 557 tools/hv/hv_kvp_daemon.c DIR *dir; dir 565 tools/hv/hv_kvp_daemon.c dir = opendir(KVP_NET_DIR); dir 566 tools/hv/hv_kvp_daemon.c if (dir == NULL) dir 569 tools/hv/hv_kvp_daemon.c while ((entry = readdir(dir)) != NULL) { dir 599 tools/hv/hv_kvp_daemon.c closedir(dir); dir 948 tools/hv/hv_kvp_daemon.c DIR *dir; dir 958 tools/hv/hv_kvp_daemon.c dir = opendir(KVP_NET_DIR); dir 959 tools/hv/hv_kvp_daemon.c if (dir == NULL) dir 962 tools/hv/hv_kvp_daemon.c while ((entry = readdir(dir)) != NULL) { dir 1003 tools/hv/hv_kvp_daemon.c closedir(dir); dir 32 tools/hv/hv_vss_daemon.c static int vss_do_freeze(char *dir, unsigned int cmd) dir 34 tools/hv/hv_vss_daemon.c int ret, fd = open(dir, O_RDONLY); dir 65 tools/hv/hv_vss_daemon.c DIR *dir; dir 85 tools/hv/hv_vss_daemon.c dir = opendir(buffer); dir 86 tools/hv/hv_vss_daemon.c if (!dir) { dir 93 tools/hv/hv_vss_daemon.c while ((entry = readdir(dir)) != NULL) { dir 105 tools/hv/hv_vss_daemon.c closedir(dir); dir 129 tools/iio/iio_event_monitor.c enum iio_event_direction dir = IIO_EVENT_CODE_EXTRACT_DIR(event->id); dir 231 tools/iio/iio_event_monitor.c switch (dir) { dir 249 tools/iio/iio_event_monitor.c enum iio_event_direction dir = IIO_EVENT_CODE_EXTRACT_DIR(event->id); dir 275 tools/iio/iio_event_monitor.c if (dir != IIO_EV_DIR_NONE) dir 276 tools/iio/iio_event_monitor.c printf(", direction: %s", iio_ev_dir_text[dir]); dir 29 tools/include/uapi/linux/erspan.h dir:1, dir 36 tools/include/uapi/linux/erspan.h dir:1, dir 105 tools/lib/api/fs/tracing_path.c DIR *dir = NULL; dir 109 tools/lib/api/fs/tracing_path.c dir = opendir(path); dir 113 tools/lib/api/fs/tracing_path.c return dir; dir 3745 tools/lib/bpf/libbpf.c char *dname, *dir; dir 3755 tools/lib/bpf/libbpf.c dir = dirname(dname); dir 3756 tools/lib/bpf/libbpf.c if (statfs(dir, &st_fs)) { dir 3758 tools/lib/bpf/libbpf.c pr_warning("failed to statfs %s: %s\n", dir, cp); dir 160 tools/lib/subcmd/help.c DIR *dir = opendir(path); dir 164 tools/lib/subcmd/help.c if (!dir) dir 172 tools/lib/subcmd/help.c while ((de = readdir(dir)) != NULL) { dir 188 tools/lib/subcmd/help.c closedir(dir); dir 112 tools/lib/subcmd/run-command.c if (cmd->dir && chdir(cmd->dir)) dir 114 tools/lib/subcmd/run-command.c cmd->dir, str_error_r(errno, sbuf, sizeof(sbuf))); dir 42 tools/lib/subcmd/run-command.h const char *dir; dir 337 tools/lib/traceevent/event-plugin.c DIR *dir; dir 347 tools/lib/traceevent/event-plugin.c dir = opendir(path); dir 348 tools/lib/traceevent/event-plugin.c if (!dir) dir 351 tools/lib/traceevent/event-plugin.c while ((dent = readdir(dir))) { dir 365 tools/lib/traceevent/event-plugin.c closedir(dir); dir 47 tools/perf/builtin-buildid-cache.c static int build_id_cache__kcore_dir(char *dir, size_t sz) dir 49 tools/perf/builtin-buildid-cache.c return fetch_current_timestamp(dir, sz); dir 119 tools/perf/builtin-buildid-cache.c char dir[32], sbuildid[SBUILD_ID_SIZE]; dir 142 tools/perf/builtin-buildid-cache.c if (build_id_cache__kcore_dir(dir, sizeof(dir))) dir 146 tools/perf/builtin-buildid-cache.c buildid_dir, DSO__NAME_KCORE, sbuildid, dir); dir 880 tools/perf/pmu-events/jevents.c struct dirent *dir; dir 887 tools/perf/pmu-events/jevents.c while ((dir = readdir(d)) != NULL) { dir 888 tools/perf/pmu-events/jevents.c if (!strcmp(dir->d_name, ".") || !strcmp(dir->d_name, "..")) dir 891 tools/perf/pmu-events/jevents.c if (dir->d_type == DT_DIR) { dir 894 tools/perf/pmu-events/jevents.c } else if (dir->d_type == DT_UNKNOWN) { dir 898 tools/perf/pmu-events/jevents.c sprintf(path, "%s/%s", fpath, dir->d_name); dir 40 tools/perf/tests/attr.c static char *dir; dir 45 tools/perf/tests/attr.c dir = getenv(ENV); dir 46 tools/perf/tests/attr.c test_attr__enabled = (dir != NULL); dir 76 tools/perf/tests/attr.c snprintf(path, PATH_MAX, "%s/event-%d-%llu-%d", dir, dir 447 tools/perf/tests/builtin-test.c #define for_each_shell_test(dir, base, ent) \ dir 448 tools/perf/tests/builtin-test.c while ((ent = readdir(dir)) != NULL) \ dir 475 tools/perf/tests/builtin-test.c DIR *dir; dir 484 tools/perf/tests/builtin-test.c dir = opendir(path); dir 485 tools/perf/tests/builtin-test.c if (!dir) dir 488 tools/perf/tests/builtin-test.c for_each_shell_test(dir, path, ent) { dir 500 tools/perf/tests/builtin-test.c closedir(dir); dir 505 tools/perf/tests/builtin-test.c const char *dir; dir 515 tools/perf/tests/builtin-test.c path__join(script, sizeof(script), st->dir, st->file); dir 526 tools/perf/tests/builtin-test.c DIR *dir; dir 530 tools/perf/tests/builtin-test.c .dir = shell_tests__dir(path_dir, sizeof(path_dir)), dir 533 tools/perf/tests/builtin-test.c if (st.dir == NULL) dir 536 tools/perf/tests/builtin-test.c dir = opendir(st.dir); dir 537 tools/perf/tests/builtin-test.c if (!dir) dir 540 tools/perf/tests/builtin-test.c for_each_shell_test(dir, st.dir, ent) { dir 544 tools/perf/tests/builtin-test.c .desc = shell_test__description(desc, sizeof(desc), st.dir, ent->d_name), dir 557 tools/perf/tests/builtin-test.c closedir(dir); dir 638 tools/perf/tests/builtin-test.c DIR *dir; dir 646 tools/perf/tests/builtin-test.c dir = opendir(path); dir 647 tools/perf/tests/builtin-test.c if (!dir) dir 650 tools/perf/tests/builtin-test.c for_each_shell_test(dir, path, ent) { dir 663 tools/perf/tests/builtin-test.c closedir(dir); dir 181 tools/perf/tests/dso-data.c DIR *dir; dir 187 tools/perf/tests/dso-data.c dir = opendir(path); dir 188 tools/perf/tests/dso-data.c TEST_ASSERT_VAL("failed to open fd directory", dir); dir 190 tools/perf/tests/dso-data.c while ((dent = readdir(dir)) != NULL) { dir 198 tools/perf/tests/dso-data.c closedir(dir); dir 1873 tools/perf/tests/parse-events.c DIR *dir; dir 1885 tools/perf/tests/parse-events.c dir = opendir(path); dir 1886 tools/perf/tests/parse-events.c if (!dir) { dir 1891 tools/perf/tests/parse-events.c while (!ret && (ent = readdir(dir))) { dir 1913 tools/perf/tests/parse-events.c closedir(dir); dir 90 tools/perf/tests/pmu.c static char dir[PATH_MAX]; dir 93 tools/perf/tests/pmu.c snprintf(dir, PATH_MAX, "/tmp/perf-pmu-test-format-XXXXXX"); dir 94 tools/perf/tests/pmu.c if (!mkdtemp(dir)) dir 102 tools/perf/tests/pmu.c scnprintf(name, PATH_MAX, "%s/%s", dir, format->name); dir 114 tools/perf/tests/pmu.c return dir; dir 118 tools/perf/tests/pmu.c static int test_format_dir_put(char *dir) dir 121 tools/perf/tests/pmu.c snprintf(buf, PATH_MAX, "rm -f %s/*\n", dir); dir 125 tools/perf/tests/pmu.c snprintf(buf, PATH_MAX, "rmdir %s\n", dir); dir 21 tools/perf/trace/beauty/ioctl.c static size_t ioctl__scnprintf_tty_cmd(int nr, int dir, char *bf, size_t size) dir 44 tools/perf/trace/beauty/ioctl.c return scnprintf(bf, size, "(%#x, %#x, %#x)", 'T', nr, dir); dir 47 tools/perf/trace/beauty/ioctl.c static size_t ioctl__scnprintf_drm_cmd(int nr, int dir, char *bf, size_t size) dir 55 tools/perf/trace/beauty/ioctl.c return scnprintf(bf, size, "(%#x, %#x, %#x)", 'd', nr, dir); dir 58 tools/perf/trace/beauty/ioctl.c static size_t ioctl__scnprintf_sndrv_pcm_cmd(int nr, int dir, char *bf, size_t size) dir 66 tools/perf/trace/beauty/ioctl.c return scnprintf(bf, size, "(%#x, %#x, %#x)", 'A', nr, dir); dir 69 tools/perf/trace/beauty/ioctl.c static size_t ioctl__scnprintf_sndrv_ctl_cmd(int nr, int dir, char *bf, size_t size) dir 77 tools/perf/trace/beauty/ioctl.c return scnprintf(bf, size, "(%#x, %#x, %#x)", 'U', nr, dir); dir 80 tools/perf/trace/beauty/ioctl.c static size_t ioctl__scnprintf_kvm_cmd(int nr, int dir, char *bf, size_t size) dir 88 tools/perf/trace/beauty/ioctl.c return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAE, nr, dir); dir 91 tools/perf/trace/beauty/ioctl.c static size_t ioctl__scnprintf_vhost_virtio_cmd(int nr, int dir, char *bf, size_t size) dir 96 tools/perf/trace/beauty/ioctl.c struct strarray *s = (dir & _IOC_READ) ? &strarray__vhost_virtio_ioctl_read_cmds : &strarray__vhost_virtio_ioctl_cmds; dir 101 tools/perf/trace/beauty/ioctl.c return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAF, nr, dir); dir 104 tools/perf/trace/beauty/ioctl.c static size_t ioctl__scnprintf_perf_cmd(int nr, int dir, char *bf, size_t size) dir 112 tools/perf/trace/beauty/ioctl.c return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAE, nr, dir); dir 115 tools/perf/trace/beauty/ioctl.c static size_t ioctl__scnprintf_usbdevfs_cmd(int nr, int dir, char *bf, size_t size) dir 123 tools/perf/trace/beauty/ioctl.c return scnprintf(bf, size, "(%c, %#x, %#x)", 'U', nr, dir); dir 129 tools/perf/trace/beauty/ioctl.c int dir = _IOC_DIR(cmd), dir 136 tools/perf/trace/beauty/ioctl.c size_t (*scnprintf)(int nr, int dir, char *bf, size_t size); dir 152 tools/perf/trace/beauty/ioctl.c return ioctl_types[index].scnprintf(nr, dir, bf, size); dir 157 tools/perf/trace/beauty/ioctl.c if (dir == _IOC_NONE) { dir 160 tools/perf/trace/beauty/ioctl.c if (dir & _IOC_READ) dir 162 tools/perf/trace/beauty/ioctl.c if (dir & _IOC_WRITE) { dir 163 tools/perf/trace/beauty/ioctl.c printed += scnprintf(bf + printed, size - printed, "%s%s%s", dir & _IOC_READ ? "|" : "", dir 57 tools/perf/util/build-id.h void set_buildid_dir(const char *dir); dir 411 tools/perf/util/config.c const char *dir = perf_config_dirname(var, value); dir 413 tools/perf/util/config.c if (!dir) { dir 417 tools/perf/util/config.c strncpy(buildid_dir, dir, MAXPATHLEN-1); dir 822 tools/perf/util/config.c void set_buildid_dir(const char *dir) dir 824 tools/perf/util/config.c if (dir) dir 825 tools/perf/util/config.c scnprintf(buildid_dir, MAXPATHLEN, "%s", dir); dir 32 tools/perf/util/data.c close_dir(data->dir.files, data->dir.nr); dir 47 tools/perf/util/data.c data->dir.version = PERF_DIR_VERSION; dir 48 tools/perf/util/data.c data->dir.files = files; dir 49 tools/perf/util/data.c data->dir.nr = nr; dir 76 tools/perf/util/data.c DIR *dir; dir 83 tools/perf/util/data.c if (WARN_ON(data->dir.version != PERF_DIR_VERSION)) dir 86 tools/perf/util/data.c dir = opendir(data->path); dir 87 tools/perf/util/data.c if (!dir) dir 90 tools/perf/util/data.c while ((dent = readdir(dir)) != NULL) { dir 126 tools/perf/util/data.c data->dir.files = files; dir 127 tools/perf/util/data.c data->dir.nr = nr; dir 142 tools/perf/util/data.c for (i = 0; i < data->dir.nr; i++) { dir 143 tools/perf/util/data.c struct perf_data_file *file = &data->dir.files[i]; dir 412 tools/perf/util/data.c for (i = 0; i < data->dir.nr; i++) { dir 413 tools/perf/util/data.c struct perf_data_file *file = &data->dir.files[i]; dir 30 tools/perf/util/data.h } dir; dir 2386 tools/perf/util/evsel.c DIR *dir; dir 2390 tools/perf/util/evsel.c dir = opendir(procfs__mountpoint()); dir 2391 tools/perf/util/evsel.c if (!dir) dir 2395 tools/perf/util/evsel.c while (ret && (d = readdir(dir)) != NULL) { dir 2415 tools/perf/util/evsel.c closedir(dir); dir 911 tools/perf/util/header.c return do_write(ff, &data->dir.version, sizeof(data->dir.version)); dir 1208 tools/perf/util/header.c DIR *dir; dir 1210 tools/perf/util/header.c #define for_each_memory(mem, dir) \ dir 1211 tools/perf/util/header.c while ((ent = readdir(dir))) \ dir 1220 tools/perf/util/header.c dir = opendir(path); dir 1221 tools/perf/util/header.c if (!dir) { dir 1226 tools/perf/util/header.c for_each_memory(phys, dir) { dir 1234 tools/perf/util/header.c closedir(dir); dir 1241 tools/perf/util/header.c rewinddir(dir); dir 1243 tools/perf/util/header.c for_each_memory(phys, dir) { dir 1247 tools/perf/util/header.c closedir(dir); dir 1263 tools/perf/util/header.c DIR *dir; dir 1270 tools/perf/util/header.c dir = opendir(path); dir 1271 tools/perf/util/header.c if (!dir) { dir 1277 tools/perf/util/header.c while (!ret && (ent = readdir(dir))) { dir 1291 tools/perf/util/header.c closedir(dir); dir 1299 tools/perf/util/header.c closedir(dir); dir 1529 tools/perf/util/header.c fprintf(fp, "# directory data version : %"PRIu64"\n", data->dir.version); dir 2666 tools/perf/util/header.c return do_read_u64(ff, &data->dir.version); dir 53 tools/perf/util/jitdump.c char dir[PATH_MAX]; dir 229 tools/perf/util/jitdump.c strcpy(jd->dir, name); dir 230 tools/perf/util/jitdump.c dirname(jd->dir); dir 422 tools/perf/util/jitdump.c jd->dir, dir 533 tools/perf/util/jitdump.c jd->dir, dir 1296 tools/perf/util/machine.c DIR *dir = opendir(dir_name); dir 1299 tools/perf/util/machine.c if (!dir) { dir 1304 tools/perf/util/machine.c while ((dent = readdir(dir)) != NULL) { dir 1347 tools/perf/util/machine.c closedir(dir); dir 44 tools/perf/util/pmu.c int perf_pmu__format_parse(char *dir, struct list_head *head) dir 50 tools/perf/util/pmu.c format_dir = opendir(dir); dir 62 tools/perf/util/pmu.c snprintf(path, PATH_MAX, "%s/%s", dir, name); dir 141 tools/perf/util/pmu.c static int perf_pmu__parse_scale(struct perf_pmu_alias *alias, char *dir, char *name) dir 149 tools/perf/util/pmu.c scnprintf(path, PATH_MAX, "%s/%s.scale", dir, name); dir 173 tools/perf/util/pmu.c static int perf_pmu__parse_unit(struct perf_pmu_alias *alias, char *dir, char *name) dir 179 tools/perf/util/pmu.c scnprintf(path, PATH_MAX, "%s/%s.unit", dir, name); dir 204 tools/perf/util/pmu.c perf_pmu__parse_per_pkg(struct perf_pmu_alias *alias, char *dir, char *name) dir 209 tools/perf/util/pmu.c scnprintf(path, PATH_MAX, "%s/%s.per-pkg", dir, name); dir 222 tools/perf/util/pmu.c char *dir, char *name) dir 227 tools/perf/util/pmu.c scnprintf(path, PATH_MAX, "%s/%s.snapshot", dir, name); dir 306 tools/perf/util/pmu.c static int __perf_pmu__new_alias(struct list_head *list, char *dir, char *name, dir 358 tools/perf/util/pmu.c if (dir) { dir 362 tools/perf/util/pmu.c perf_pmu__parse_unit(alias, dir, name); dir 363 tools/perf/util/pmu.c perf_pmu__parse_scale(alias, dir, name); dir 364 tools/perf/util/pmu.c perf_pmu__parse_per_pkg(alias, dir, name); dir 365 tools/perf/util/pmu.c perf_pmu__parse_snapshot(alias, dir, name); dir 388 tools/perf/util/pmu.c static int perf_pmu__new_alias(struct list_head *list, char *dir, char *name, FILE *file) dir 402 tools/perf/util/pmu.c return __perf_pmu__new_alias(list, dir, name, NULL, buf, NULL, NULL, NULL, dir 427 tools/perf/util/pmu.c static int pmu_aliases_parse(char *dir, struct list_head *head) dir 432 tools/perf/util/pmu.c event_dir = opendir(dir); dir 450 tools/perf/util/pmu.c scnprintf(path, PATH_MAX, "%s/%s", dir, name); dir 458 tools/perf/util/pmu.c if (perf_pmu__new_alias(head, dir, name, file) < 0) dir 553 tools/perf/util/pmu.c DIR *dir; dir 563 tools/perf/util/pmu.c dir = opendir(path); dir 564 tools/perf/util/pmu.c if (!dir) dir 567 tools/perf/util/pmu.c while ((dent = readdir(dir))) { dir 574 tools/perf/util/pmu.c closedir(dir); dir 83 tools/perf/util/pmu.h int perf_pmu__format_parse(char *dir, struct list_head *head); dir 1556 tools/perf/util/symbol-elf.c const char *dir) dir 1560 tools/perf/util/symbol-elf.c scnprintf(kallsyms_filename, PATH_MAX, "%s/kallsyms", dir); dir 1585 tools/perf/util/symbol-elf.c const char *dir) dir 1589 tools/perf/util/symbol-elf.c scnprintf(modules_filename, PATH_MAX, "%s/modules", dir); dir 1704 tools/perf/util/symbol-elf.c static int kcore_copy__calc_maps(struct kcore_copy_info *kci, const char *dir, dir 1707 tools/perf/util/symbol-elf.c if (kcore_copy__parse_kallsyms(kci, dir)) dir 1710 tools/perf/util/symbol-elf.c if (kcore_copy__parse_modules(kci, dir)) dir 1759 tools/perf/util/symbol-elf.c static int kcore_copy__unlink(const char *dir, const char *name) dir 1763 tools/perf/util/symbol-elf.c scnprintf(filename, PATH_MAX, "%s/%s", dir, name); dir 1887 tools/perf/util/symbol.c static int find_matching_kcore(struct map *map, char *dir, size_t dir_sz) dir 1894 tools/perf/util/symbol.c dirs = lsdir(dir, visible_dir_filter); dir 1900 tools/perf/util/symbol.c "%s/%s/kallsyms", dir, nd->s); dir 1902 tools/perf/util/symbol.c strlcpy(dir, kallsyms_filename, dir_sz); dir 2331 tools/perf/util/symbol.c const char *dir, int unset __maybe_unused) dir 2336 tools/perf/util/symbol.c symbol_conf.symfs = strdup(dir); dir 2343 tools/perf/util/symbol.c ret = asprintf(&bf, "%s/%s", dir, ".debug"); dir 184 tools/perf/util/symbol.h const char *dir, int unset __maybe_unused); dir 23 tools/perf/util/thread_map.c static int filter(const struct dirent *dir) dir 25 tools/perf/util/thread_map.c if (dir->d_name[0] == '.') dir 155 tools/perf/util/trace-event-info.c #define for_each_event(dir, dent, tps) \ dir 156 tools/perf/util/trace-event-info.c while ((dent = readdir(dir))) \ dir 166 tools/perf/util/trace-event-info.c DIR *dir; dir 171 tools/perf/util/trace-event-info.c dir = opendir(sys); dir 172 tools/perf/util/trace-event-info.c if (!dir) { dir 177 tools/perf/util/trace-event-info.c for_each_event(dir, dent, tps) { dir 198 tools/perf/util/trace-event-info.c rewinddir(dir); dir 199 tools/perf/util/trace-event-info.c for_each_event(dir, dent, tps) { dir 220 tools/perf/util/trace-event-info.c closedir(dir); dir 259 tools/perf/util/trace-event-info.c DIR *dir; dir 270 tools/perf/util/trace-event-info.c dir = opendir(path); dir 271 tools/perf/util/trace-event-info.c if (!dir) { dir 277 tools/perf/util/trace-event-info.c for_each_event(dir, dent, tps) { dir 291 tools/perf/util/trace-event-info.c rewinddir(dir); dir 292 tools/perf/util/trace-event-info.c for_each_event(dir, dent, tps) { dir 316 tools/perf/util/trace-event-info.c closedir(dir); dir 132 tools/perf/util/util.c DIR *dir; dir 148 tools/perf/util/util.c dir = opendir(path); dir 149 tools/perf/util/util.c if (dir == NULL) dir 152 tools/perf/util/util.c while ((d = readdir(dir)) != NULL && !ret) { dir 177 tools/perf/util/util.c closedir(dir); dir 212 tools/perf/util/util.c DIR *dir; dir 215 tools/perf/util/util.c dir = opendir(name); dir 216 tools/perf/util/util.c if (!dir) dir 225 tools/perf/util/util.c while ((d = readdir(dir)) != NULL) { dir 231 tools/perf/util/util.c closedir(dir); dir 50 tools/power/acpi/os_specific/service_layers/osunixdir.c DIR *dir; dir 61 tools/power/acpi/os_specific/service_layers/osunixdir.c dir = opendir(dir_pathname); dir 62 tools/power/acpi/os_specific/service_layers/osunixdir.c if (!dir) { dir 73 tools/power/acpi/os_specific/service_layers/osunixdir.c external_info->dir_ptr = dir; dir 57 tools/power/cpupower/bench/parse.c DIR *dir; dir 59 tools/power/cpupower/bench/parse.c dir = opendir(dirname); dir 60 tools/power/cpupower/bench/parse.c if (dir == NULL) { dir 109 tools/power/cpupower/bench/parse.c closedir(dir); dir 36 tools/power/cpupower/bench/parse.h FILE *prepare_output(const char *dir); dir 123 tools/power/x86/intel-speed-select/isst-config.c DIR *dir; dir 125 tools/power/x86/intel-speed-select/isst-config.c dir = opendir("/sys/devices/system/cpu/cpu0/cpufreq"); dir 126 tools/power/x86/intel-speed-select/isst-config.c if (dir) { dir 127 tools/power/x86/intel-speed-select/isst-config.c closedir(dir); dir 300 tools/power/x86/intel-speed-select/isst-config.c DIR *dir; dir 310 tools/power/x86/intel-speed-select/isst-config.c dir = opendir(buffer); dir 311 tools/power/x86/intel-speed-select/isst-config.c if (dir) { dir 324 tools/power/x86/intel-speed-select/isst-config.c closedir(dir); dir 158 tools/testing/selftests/bpf/progs/test_tunnel_kern.c md.u.md2.dir = direction; dir 205 tools/testing/selftests/bpf/progs/test_tunnel_kern.c md.u.md2.dir, dir 243 tools/testing/selftests/bpf/progs/test_tunnel_kern.c md.u.md2.dir = direction; dir 291 tools/testing/selftests/bpf/progs/test_tunnel_kern.c md.u.md2.dir, dir 128 tools/testing/selftests/filesystems/binderfs/binderfs_test.c static void rmdir_protect_errno(const char *dir) dir 131 tools/testing/selftests/filesystems/binderfs/binderfs_test.c (void)rmdir(dir); dir 72 tools/testing/selftests/gpio/gpio-mockup-chardev.c static int gpio_debugfs_get(const char *consumer, int *dir, int *value) dir 102 tools/testing/selftests/gpio/gpio-mockup-chardev.c *dir = OUT; dir 105 tools/testing/selftests/gpio/gpio-mockup-chardev.c *dir = IN; dir 280 tools/thermal/tmon/sysfs.c DIR *dir; dir 292 tools/thermal/tmon/sysfs.c dir = opendir(tz_name); dir 293 tools/thermal/tmon/sysfs.c if (!dir) { dir 327 tools/thermal/tmon/sysfs.c closedir(dir); dir 338 tools/thermal/tmon/sysfs.c DIR *dir; dir 351 tools/thermal/tmon/sysfs.c dir = opendir(cdev_name); dir 352 tools/thermal/tmon/sysfs.c if (!dir) { dir 374 tools/thermal/tmon/sysfs.c closedir(dir); dir 383 tools/thermal/tmon/sysfs.c DIR *dir; dir 387 tools/thermal/tmon/sysfs.c dir = opendir(THERMAL_SYSFS); dir 388 tools/thermal/tmon/sysfs.c if (!dir) { dir 433 tools/thermal/tmon/sysfs.c closedir(dir); dir 24 tools/virtio/linux/dma-mapping.h #define dma_map_page(d, p, o, s, dir) (page_to_phys(p) + (o)) dir 26 tools/virtio/linux/dma-mapping.h #define dma_map_single(d, p, s, dir) (virt_to_phys(p)) dir 1177 tools/vm/slabinfo.c DIR *dir; dir 1188 tools/vm/slabinfo.c dir = opendir("."); dir 1189 tools/vm/slabinfo.c while ((de = readdir(dir))) { dir 1273 tools/vm/slabinfo.c closedir(dir);