nid 23 arch/alpha/include/asm/mmzone.h #define node_mem_start(nid) \ nid 25 arch/alpha/include/asm/mmzone.h ? alpha_mv.node_mem_start(nid) \ nid 27 arch/alpha/include/asm/mmzone.h #define node_mem_size(nid) \ nid 29 arch/alpha/include/asm/mmzone.h ? alpha_mv.node_mem_size(nid) \ nid 30 arch/alpha/include/asm/mmzone.h : ((nid) ? (0UL) : (~0UL))) nid 33 arch/alpha/include/asm/mmzone.h #define NODE_DATA(nid) (&node_data[(nid)]) nid 35 arch/alpha/include/asm/mmzone.h #define node_localnr(pfn, nid) ((pfn) - NODE_DATA(nid)->node_start_pfn) nid 876 arch/alpha/kernel/core_marvel.c marvel_node_mem_start(int nid) nid 880 arch/alpha/kernel/core_marvel.c pa = (nid & 0x3) | ((nid & (0x1f << 2)) << 1); nid 887 arch/alpha/kernel/core_marvel.c marvel_node_mem_size(int nid) nid 458 arch/alpha/kernel/core_wildfire.c unsigned long wildfire_node_mem_start(int nid) nid 461 arch/alpha/kernel/core_wildfire.c return (unsigned long)nid * (64UL * 1024 * 1024 * 1024); nid 464 arch/alpha/kernel/core_wildfire.c unsigned long wildfire_node_mem_size(int nid) nid 59 arch/alpha/kernel/pci_iommu.c iommu_arena_new_node(int nid, struct pci_controller *hose, dma_addr_t base, nid 77 arch/alpha/kernel/pci_iommu.c arena = memblock_alloc_node(sizeof(*arena), align, nid); nid 78 arch/alpha/kernel/pci_iommu.c if (!NODE_DATA(nid) || !arena) { nid 81 arch/alpha/kernel/pci_iommu.c __func__, nid); nid 88 arch/alpha/kernel/pci_iommu.c arena->ptes = memblock_alloc_node(sizeof(*arena), align, nid); nid 89 arch/alpha/kernel/pci_iommu.c if (!NODE_DATA(nid) || !arena->ptes) { nid 92 arch/alpha/kernel/pci_iommu.c __func__, nid); nid 56 arch/alpha/mm/numa.c setup_memory_node(int nid, void *kernel_end) nid 69 arch/alpha/mm/numa.c node_pfn_start = (node_mem_start(nid)) >> PAGE_SHIFT; nid 70 arch/alpha/mm/numa.c node_pfn_end = node_pfn_start + (node_mem_size(nid) >> PAGE_SHIFT); nid 94 arch/alpha/mm/numa.c printk("Initializing bootmem allocator on Node ID %d\n", nid); nid 133 arch/alpha/mm/numa.c node_data[nid] = (pg_data_t *)(__va(node_min_pfn << PAGE_SHIFT)); nid 138 arch/alpha/mm/numa.c DBGDCONT(" DISCONTIG: node_data[%d] is at 0x%p\n", nid, NODE_DATA(nid)); nid 144 arch/alpha/mm/numa.c if (!nid && (node_max_pfn < end_kernel_pfn || node_min_pfn > start_kernel_pfn)) nid 155 arch/alpha/mm/numa.c NODE_DATA(nid)->node_start_pfn = node_min_pfn; nid 156 arch/alpha/mm/numa.c NODE_DATA(nid)->node_present_pages = node_max_pfn - node_min_pfn; nid 158 arch/alpha/mm/numa.c node_set_online(nid); nid 165 arch/alpha/mm/numa.c int nid; nid 173 arch/alpha/mm/numa.c for (nid = 0; nid < MAX_NUMNODES; nid++) nid 174 arch/alpha/mm/numa.c setup_memory_node(nid, kernel_end); nid 195 arch/alpha/mm/numa.c nid = kvaddr_to_nid(initrd_start); nid 205 arch/alpha/mm/numa.c unsigned int nid; nid 218 arch/alpha/mm/numa.c for_each_online_node(nid) { nid 219 arch/alpha/mm/numa.c unsigned long start_pfn = NODE_DATA(nid)->node_start_pfn; nid 220 arch/alpha/mm/numa.c unsigned long end_pfn = start_pfn + NODE_DATA(nid)->node_present_pages; nid 228 arch/alpha/mm/numa.c node_set_state(nid, N_NORMAL_MEMORY); nid 229 arch/alpha/mm/numa.c free_area_init_node(nid, zones_size, start_pfn, NULL); nid 12 arch/arc/include/asm/mmzone.h #define NODE_DATA(nid) (&node_data[nid]) nid 34 arch/arc/include/asm/mmzone.h int nid = pfn_to_nid(pfn); nid 36 arch/arc/include/asm/mmzone.h return (pfn <= node_end_pfn(nid)); nid 129 arch/arc/plat-eznps/include/plat/ctop.h nid:4, __reserved3:4, cid:4, nid 10 arch/arm64/include/asm/mmzone.h #define NODE_DATA(nid) (node_data[(nid)]) nid 36 arch/arm64/include/asm/numa.h void __init early_map_cpu_to_node(unsigned int cpu, int nid); nid 47 arch/arm64/include/asm/numa.h static inline void early_map_cpu_to_node(unsigned int cpu, int nid) { } nid 1053 arch/arm64/mm/mmu.c int arch_add_memory(int nid, u64 start, u64 size, nid 1064 arch/arm64/mm/mmu.c return __add_pages(nid, start >> PAGE_SHIFT, size >> PAGE_SHIFT, nid 1067 arch/arm64/mm/mmu.c void arch_remove_memory(int nid, u64 start, u64 size, nid 63 arch/arm64/mm/numa.c int nid = cpu_to_node(cpu); nid 65 arch/arm64/mm/numa.c if (nid == NUMA_NO_NODE) nid 69 arch/arm64/mm/numa.c cpumask_clear_cpu(cpu, node_to_cpumask_map[nid]); nid 71 arch/arm64/mm/numa.c cpumask_set_cpu(cpu, node_to_cpumask_map[nid]); nid 123 arch/arm64/mm/numa.c void __init early_map_cpu_to_node(unsigned int cpu, int nid) nid 126 arch/arm64/mm/numa.c if (nid < 0 || nid >= MAX_NUMNODES || numa_off) nid 127 arch/arm64/mm/numa.c nid = 0; nid 129 arch/arm64/mm/numa.c cpu_to_node_map[cpu] = nid; nid 137 arch/arm64/mm/numa.c set_cpu_numa_node(cpu, nid); nid 157 arch/arm64/mm/numa.c int nid = early_cpu_to_node(cpu); nid 160 arch/arm64/mm/numa.c __pa(MAX_DMA_ADDRESS), MEMBLOCK_ALLOC_ACCESSIBLE, nid); nid 200 arch/arm64/mm/numa.c int __init numa_add_memblk(int nid, u64 start, u64 end) nid 204 arch/arm64/mm/numa.c ret = memblock_set_node(start, (end - start), &memblock.memory, nid); nid 207 arch/arm64/mm/numa.c start, (end - 1), nid); nid 211 arch/arm64/mm/numa.c node_set(nid, numa_nodes_parsed); nid 218 arch/arm64/mm/numa.c static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn) nid 226 arch/arm64/mm/numa.c pr_info("Initmem setup node %d [<memory-less node>]\n", nid); nid 228 arch/arm64/mm/numa.c nd_pa = memblock_phys_alloc_try_nid(nd_size, SMP_CACHE_BYTES, nid); nid 231 arch/arm64/mm/numa.c nd_size, nid); nid 239 arch/arm64/mm/numa.c if (tnid != nid) nid 240 arch/arm64/mm/numa.c pr_info("NODE_DATA(%d) on node %d\n", nid, tnid); nid 242 arch/arm64/mm/numa.c node_data[nid] = nd; nid 243 arch/arm64/mm/numa.c memset(NODE_DATA(nid), 0, sizeof(pg_data_t)); nid 244 arch/arm64/mm/numa.c NODE_DATA(nid)->node_id = nid; nid 245 arch/arm64/mm/numa.c NODE_DATA(nid)->node_start_pfn = start_pfn; nid 246 arch/arm64/mm/numa.c NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; nid 349 arch/arm64/mm/numa.c int nid; nid 354 arch/arm64/mm/numa.c if (mblk->nid == NUMA_NO_NODE || mblk->nid >= MAX_NUMNODES) { nid 356 arch/arm64/mm/numa.c mblk->nid, mblk->base, nid 362 arch/arm64/mm/numa.c for_each_node_mask(nid, numa_nodes_parsed) { nid 365 arch/arm64/mm/numa.c get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); nid 366 arch/arm64/mm/numa.c setup_node_data(nid, start_pfn, end_pfn); nid 367 arch/arm64/mm/numa.c node_set_online(nid); nid 94 arch/ia64/include/asm/acpi.h if (node_cpuid[cpu].nid == NUMA_NO_NODE) { nid 95 arch/ia64/include/asm/acpi.h node_cpuid[cpu].nid = next_nid; nid 59 arch/ia64/include/asm/meminit.h extern int register_active_ranges(u64 start, u64 len, int nid); nid 23 arch/ia64/include/asm/mmzone.h int nid = paddr_to_nid(pfn << PAGE_SHIFT); nid 24 arch/ia64/include/asm/mmzone.h if (nid < 0) nid 27 arch/ia64/include/asm/mmzone.h return nid; nid 47 arch/ia64/include/asm/nodedata.h #define NODE_DATA(nid) (local_node_data->pg_data_ptrs[nid]) nid 41 arch/ia64/include/asm/numa.h int nid; /* which logical node contains this chunk? */ nid 47 arch/ia64/include/asm/numa.h int nid; /* logical node containing this CPU */ nid 72 arch/ia64/include/asm/numa.h extern void map_cpu_to_node(int cpu, int nid); nid 73 arch/ia64/include/asm/numa.h extern void unmap_cpu_from_node(int cpu, int nid); nid 77 arch/ia64/include/asm/numa.h #define map_cpu_to_node(cpu, nid) do{}while(0) nid 78 arch/ia64/include/asm/numa.h #define unmap_cpu_from_node(cpu, nid) do{}while(0) nid 547 arch/ia64/include/asm/pgtable.h extern void memmap_init (unsigned long size, int nid, unsigned long zone, nid 267 arch/ia64/include/asm/uv/uv_hub.h static inline int uv_node_to_blade_id(int nid) nid 297 arch/ia64/include/asm/uv/uv_hub.h static inline int uv_node_to_pnode(int nid) nid 396 arch/ia64/kernel/acpi.c node_cpuid[srat_num_cpus].nid = pxm; nid 438 arch/ia64/kernel/acpi.c p->nid = pxm; nid 461 arch/ia64/kernel/acpi.c int nid = acpi_map_pxm_to_node(i); nid 462 arch/ia64/kernel/acpi.c node_set_online(nid); nid 468 arch/ia64/kernel/acpi.c node_memblk[i].nid = pxm_to_node(node_memblk[i].nid); nid 476 arch/ia64/kernel/acpi.c if (node_memblk[j].nid == i) nid 482 arch/ia64/kernel/acpi.c node_cpuid[i].nid = pxm_to_node(node_cpuid[i].nid); nid 725 arch/ia64/kernel/acpi.c node_cpuid[cpu].nid = acpi_get_node(handle); nid 21 arch/ia64/kernel/numa.c void map_cpu_to_node(int cpu, int nid) nid 24 arch/ia64/kernel/numa.c if (nid < 0) { /* just initialize by zero */ nid 35 arch/ia64/kernel/numa.c if (!node_online(nid)) nid 36 arch/ia64/kernel/numa.c nid = first_online_node; nid 37 arch/ia64/kernel/numa.c cpu_to_node_map[cpu] = nid; nid 38 arch/ia64/kernel/numa.c cpumask_set_cpu(cpu, &node_to_cpu_mask[nid]); nid 42 arch/ia64/kernel/numa.c void unmap_cpu_from_node(int cpu, int nid) nid 44 arch/ia64/kernel/numa.c WARN_ON(!cpumask_test_cpu(cpu, &node_to_cpu_mask[nid])); nid 45 arch/ia64/kernel/numa.c WARN_ON(cpu_to_node_map[cpu] != nid); nid 47 arch/ia64/kernel/numa.c cpumask_clear_cpu(cpu, &node_to_cpu_mask[nid]); nid 68 arch/ia64/kernel/numa.c node = node_cpuid[i].nid; nid 51 arch/ia64/kernel/topology.c map_cpu_to_node(num, node_cpuid[num].nid); nid 75 arch/ia64/kernel/uncached.c static int uncached_add_chunk(struct uncached_pool *uc_pool, int nid) nid 97 arch/ia64/kernel/uncached.c page = __alloc_pages_node(nid, nid 150 arch/ia64/kernel/uncached.c status = gen_pool_add(uc_pool->pool, uc_addr, IA64_GRANULE_SIZE, nid); nid 183 arch/ia64/kernel/uncached.c int nid; nid 190 arch/ia64/kernel/uncached.c nid = starting_nid; nid 193 arch/ia64/kernel/uncached.c if (!node_state(nid, N_HIGH_MEMORY)) nid 195 arch/ia64/kernel/uncached.c uc_pool = &uncached_pools[nid]; nid 203 arch/ia64/kernel/uncached.c } while (uncached_add_chunk(uc_pool, nid) == 0); nid 205 arch/ia64/kernel/uncached.c } while ((nid = (nid + 1) % MAX_NUMNODES) != starting_nid); nid 222 arch/ia64/kernel/uncached.c int nid = paddr_to_nid(uc_addr - __IA64_UNCACHED_OFFSET); nid 223 arch/ia64/kernel/uncached.c struct gen_pool *pool = uncached_pools[nid].pool; nid 248 arch/ia64/kernel/uncached.c int nid = paddr_to_nid(uc_start - __IA64_UNCACHED_OFFSET); nid 249 arch/ia64/kernel/uncached.c struct gen_pool *pool = uncached_pools[nid].pool; nid 256 arch/ia64/kernel/uncached.c (void) gen_pool_add(pool, uc_start, size, nid); nid 264 arch/ia64/kernel/uncached.c int nid; nid 266 arch/ia64/kernel/uncached.c for_each_node_state(nid, N_ONLINE) { nid 267 arch/ia64/kernel/uncached.c uncached_pools[nid].pool = gen_pool_create(PAGE_SHIFT, nid); nid 268 arch/ia64/kernel/uncached.c mutex_init(&uncached_pools[nid].add_chunk_mutex); nid 103 arch/ia64/mm/discontig.c if (node == node_cpuid[cpu].nid) nid 144 arch/ia64/mm/discontig.c if (node != node_cpuid[cpu].nid) nid 207 arch/ia64/mm/discontig.c if (node == node_cpuid[cpu].nid) nid 234 arch/ia64/mm/discontig.c node = node_cpuid[cpu].nid; nid 407 arch/ia64/mm/discontig.c node = node_cpuid[cpu].nid; nid 415 arch/ia64/mm/discontig.c node = node_cpuid[cpu].nid; nid 430 arch/ia64/mm/discontig.c static void __init *memory_less_node_alloc(int nid, unsigned long pernodesize) nid 439 arch/ia64/mm/discontig.c else if (node_distance(nid, node) < best) { nid 440 arch/ia64/mm/discontig.c best = node_distance(nid, node); nid 581 arch/ia64/mm/discontig.c (*func)(rs, re - rs, node_memblk[i].nid); nid 636 arch/ia64/mm/discontig.c pg_data_t *arch_alloc_nodedata(int nid) nid 638 arch/ia64/mm/discontig.c unsigned long size = compute_pernodesize(nid); nid 490 arch/ia64/mm/init.c int nid; nid 520 arch/ia64/mm/init.c args->nid, args->zone, page_to_pfn(map_start), nid 526 arch/ia64/mm/init.c memmap_init (unsigned long size, int nid, unsigned long zone, nid 530 arch/ia64/mm/init.c memmap_init_zone(size, nid, zone, start_pfn, MEMMAP_EARLY, nid 539 arch/ia64/mm/init.c args.nid = nid; nid 574 arch/ia64/mm/init.c int __init register_active_ranges(u64 start, u64 len, int nid) nid 586 arch/ia64/mm/init.c memblock_add_node(__pa(start), end - start, nid); nid 672 arch/ia64/mm/init.c int arch_add_memory(int nid, u64 start, u64 size, nid 679 arch/ia64/mm/init.c ret = __add_pages(nid, start_pfn, nr_pages, restrictions); nid 687 arch/ia64/mm/init.c void arch_remove_memory(int nid, u64 start, u64 size, nid 31 arch/ia64/mm/numa.c { [0 ... NR_CPUS-1] = { .phys_id = 0, .nid = NUMA_NO_NODE } }; nid 56 arch/ia64/mm/numa.c return (i < num_node_memblks) ? node_memblk[i].nid : (num_node_memblks ? -1 : 0); nid 83 arch/ia64/mm/numa.c state->last_nid = node_memblk[i].nid; nid 84 arch/ia64/mm/numa.c return node_memblk[i].nid; nid 104 arch/ia64/mm/numa.c int nid = paddr_to_nid(addr); nid 105 arch/ia64/mm/numa.c if (nid < 0) nid 107 arch/ia64/mm/numa.c return nid; nid 89 arch/ia64/uv/kernel/setup.c int nid, cpu, m_val, n_val; nid 106 arch/ia64/uv/kernel/setup.c nid = cpu_to_node(cpu); nid 117 arch/ia64/uv/kernel/setup.c printk(KERN_DEBUG "UV cpu %d, nid %d\n", cpu, nid); nid 7 arch/m68k/include/asm/mmzone.h #define NODE_DATA(nid) (&pg_data_map[nid]) nid 8 arch/m68k/include/asm/mmzone.h #define NODE_MEM_MAP(nid) (NODE_DATA(nid)->node_mem_map) nid 20 arch/mips/include/asm/mach-loongson64/mmzone.h #define nid_to_addrbase(nid) ((nid) << NODE_ADDRSPACE_SHIFT) nid 20 arch/mips/include/asm/mmzone.h #define nid_to_addrbase(nid) 0 nid 10 arch/mips/loongson64/loongson-3/dma.c long nid = (paddr >> 44) & 0x3; nid 11 arch/mips/loongson64/loongson-3/dma.c return ((nid << 44) ^ paddr) | (nid << 37); nid 18 arch/mips/loongson64/loongson-3/dma.c long nid = (daddr >> 37) & 0x3; nid 19 arch/mips/loongson64/loongson-3/dma.c return ((nid << 37) ^ daddr) | (nid << 44); nid 98 arch/mips/loongson64/loongson-3/numa.c static unsigned long nid_to_addroffset(unsigned int nid) nid 101 arch/mips/loongson64/loongson-3/numa.c switch (nid) { nid 129 arch/mips/sgi-ip27/ip27-init.c nasid_t nid; nid 136 arch/mips/sgi-ip27/ip27-init.c nid = get_nasid(); nid 137 arch/mips/sgi-ip27/ip27-init.c printk("IP27: Running on node %d.\n", nid); nid 141 arch/mips/sgi-ip27/ip27-init.c printk("Node %d has %s primary CPU%s.\n", nid, nid 147 arch/mips/sgi-ip27/ip27-init.c printk("Node %d has %s secondary CPU%s.\n", nid, nid 141 arch/mips/sgi-ip27/ip27-xtalk.c static void xtalk_probe_node(cnodeid_t nid) nid 148 arch/mips/sgi-ip27/ip27-xtalk.c nasid = COMPACT_TO_NASID_NODEID(nid); nid 254 arch/powerpc/include/asm/book3s/64/hash.h int hash__create_section_mapping(unsigned long start, unsigned long end, int nid); nid 297 arch/powerpc/include/asm/book3s/64/radix.h int radix__create_section_mapping(unsigned long start, unsigned long end, int nid); nid 17 arch/powerpc/include/asm/drmem.h int nid; nid 109 arch/powerpc/include/asm/drmem.h lmb->nid = memory_add_physaddr_to_nid(lmb->base_addr); nid 113 arch/powerpc/include/asm/drmem.h lmb->nid = -1; nid 156 arch/powerpc/include/asm/iommu.h int nid, unsigned long res_start, unsigned long res_end); nid 27 arch/powerpc/include/asm/mmzone.h #define NODE_DATA(nid) (node_data[nid]) nid 16 arch/powerpc/include/asm/sparsemem.h extern int create_section_mapping(unsigned long start, unsigned long end, int nid); nid 44 arch/powerpc/include/asm/topology.h extern int sysfs_add_device_to_node(struct device *dev, int nid); nid 45 arch/powerpc/include/asm/topology.h extern void sysfs_remove_device_from_node(struct device *dev, int nid); nid 55 arch/powerpc/include/asm/topology.h int nid; nid 57 arch/powerpc/include/asm/topology.h nid = numa_cpu_lookup_table[cpu]; nid 63 arch/powerpc/include/asm/topology.h return (nid < 0) ? 0 : nid; nid 71 arch/powerpc/include/asm/topology.h static inline int sysfs_add_device_to_node(struct device *dev, int nid) nid 77 arch/powerpc/include/asm/topology.h int nid) nid 682 arch/powerpc/kernel/iommu.c struct iommu_table *iommu_init_table(struct iommu_table *tbl, int nid, nid 696 arch/powerpc/kernel/iommu.c page = alloc_pages_node(nid, GFP_KERNEL, get_order(sz)); nid 30 arch/powerpc/kernel/paca.c int nid; nid 38 arch/powerpc/kernel/paca.c nid = NUMA_NO_NODE; nid 41 arch/powerpc/kernel/paca.c nid = early_cpu_to_node(cpu); nid 45 arch/powerpc/kernel/paca.c limit, nid); nid 123 arch/powerpc/kernel/pci-common.c int nid = of_node_to_nid(dev); nid 125 arch/powerpc/kernel/pci-common.c if (nid < 0 || !node_online(nid)) nid 126 arch/powerpc/kernel/pci-common.c nid = NUMA_NO_NODE; nid 128 arch/powerpc/kernel/pci-common.c PHB_SET_NODE(phb, nid); nid 1014 arch/powerpc/kernel/sysfs.c int sysfs_add_device_to_node(struct device *dev, int nid) nid 1016 arch/powerpc/kernel/sysfs.c struct node *node = node_devices[nid]; nid 1022 arch/powerpc/kernel/sysfs.c void sysfs_remove_device_from_node(struct device *dev, int nid) nid 1024 arch/powerpc/kernel/sysfs.c struct node *node = node_devices[nid]; nid 792 arch/powerpc/mm/book3s64/hash_utils.c int hash__create_section_mapping(unsigned long start, unsigned long end, int nid) nid 174 arch/powerpc/mm/book3s64/pgtable.c int __meminit create_section_mapping(unsigned long start, unsigned long end, int nid) nid 177 arch/powerpc/mm/book3s64/pgtable.c return radix__create_section_mapping(start, end, nid); nid 179 arch/powerpc/mm/book3s64/pgtable.c return hash__create_section_mapping(start, end, nid); nid 37 arch/powerpc/mm/book3s64/radix_pgtable.c static __ref void *early_alloc_pgtable(unsigned long size, int nid, nid 49 arch/powerpc/mm/book3s64/radix_pgtable.c ptr = memblock_alloc_try_nid(size, size, min_addr, max_addr, nid); nid 53 arch/powerpc/mm/book3s64/radix_pgtable.c __func__, size, size, nid, &min_addr, &max_addr); nid 61 arch/powerpc/mm/book3s64/radix_pgtable.c int nid, nid 72 arch/powerpc/mm/book3s64/radix_pgtable.c pudp = early_alloc_pgtable(PUD_TABLE_SIZE, nid, nid 82 arch/powerpc/mm/book3s64/radix_pgtable.c pmdp = early_alloc_pgtable(PMD_TABLE_SIZE, nid, nid 92 arch/powerpc/mm/book3s64/radix_pgtable.c ptep = early_alloc_pgtable(PAGE_SIZE, nid, nid 111 arch/powerpc/mm/book3s64/radix_pgtable.c int nid, nid 130 arch/powerpc/mm/book3s64/radix_pgtable.c nid, region_start, region_end); nid 255 arch/powerpc/mm/book3s64/radix_pgtable.c int nid) nid 300 arch/powerpc/mm/book3s64/radix_pgtable.c rc = __map_kernel_page(vaddr, addr, prot, mapping_size, nid, start, end); nid 868 arch/powerpc/mm/book3s64/radix_pgtable.c int __meminit radix__create_section_mapping(unsigned long start, unsigned long end, int nid) nid 875 arch/powerpc/mm/book3s64/radix_pgtable.c return create_physical_mapping(__pa(start), __pa(end), nid); nid 888 arch/powerpc/mm/book3s64/radix_pgtable.c int nid) nid 890 arch/powerpc/mm/book3s64/radix_pgtable.c return __map_kernel_page(ea, pa, flags, map_page_size, nid, 0, 0); nid 899 arch/powerpc/mm/book3s64/radix_pgtable.c int nid = early_pfn_to_nid(phys >> PAGE_SHIFT); nid 907 arch/powerpc/mm/book3s64/radix_pgtable.c ret = __map_kernel_page_nid(start, phys, __pgprot(flags), page_size, nid); nid 97 arch/powerpc/mm/mem.c int __weak create_section_mapping(unsigned long start, unsigned long end, int nid) nid 128 arch/powerpc/mm/mem.c int __ref arch_add_memory(int nid, u64 start, u64 size, nid 138 arch/powerpc/mm/mem.c rc = create_section_mapping(start, start + size, nid); nid 147 arch/powerpc/mm/mem.c return __add_pages(nid, start_pfn, nr_pages, restrictions); nid 150 arch/powerpc/mm/mem.c void __ref arch_remove_memory(int nid, u64 start, u64 size, nid 86 arch/powerpc/mm/numa.c unsigned int *nid) nid 98 arch/powerpc/mm/numa.c *nid = fake_nid; nid 125 arch/powerpc/mm/numa.c *nid = fake_nid; nid 208 arch/powerpc/mm/numa.c static void initialize_distance_lookup_table(int nid, nid 220 arch/powerpc/mm/numa.c distance_lookup_table[nid][i] = of_read_number(entry, 1); nid 229 arch/powerpc/mm/numa.c int nid = NUMA_NO_NODE; nid 235 arch/powerpc/mm/numa.c nid = of_read_number(&associativity[min_common_depth], 1); nid 238 arch/powerpc/mm/numa.c if (nid == 0xffff || nid >= MAX_NUMNODES) nid 239 arch/powerpc/mm/numa.c nid = NUMA_NO_NODE; nid 241 arch/powerpc/mm/numa.c if (nid > 0 && nid 246 arch/powerpc/mm/numa.c initialize_distance_lookup_table(nid, associativity + 1); nid 250 arch/powerpc/mm/numa.c return nid; nid 258 arch/powerpc/mm/numa.c int nid = NUMA_NO_NODE; nid 263 arch/powerpc/mm/numa.c nid = associativity_to_nid(tmp); nid 264 arch/powerpc/mm/numa.c return nid; nid 270 arch/powerpc/mm/numa.c int nid = NUMA_NO_NODE; nid 274 arch/powerpc/mm/numa.c nid = of_node_to_nid_single(device); nid 275 arch/powerpc/mm/numa.c if (nid != -1) nid 282 arch/powerpc/mm/numa.c return nid; nid 436 arch/powerpc/mm/numa.c int nid = default_nid; nid 449 arch/powerpc/mm/numa.c nid = of_read_number(&aa.arrays[index], 1); nid 451 arch/powerpc/mm/numa.c if (nid == 0xffff || nid >= MAX_NUMNODES) nid 452 arch/powerpc/mm/numa.c nid = default_nid; nid 454 arch/powerpc/mm/numa.c if (nid > 0) { nid 456 arch/powerpc/mm/numa.c initialize_distance_lookup_table(nid, nid 461 arch/powerpc/mm/numa.c return nid; nid 470 arch/powerpc/mm/numa.c int nid = NUMA_NO_NODE; nid 478 arch/powerpc/mm/numa.c if ((nid = numa_cpu_lookup_table[lcpu]) >= 0) { nid 479 arch/powerpc/mm/numa.c map_cpu_to_node(lcpu, nid); nid 480 arch/powerpc/mm/numa.c return nid; nid 493 arch/powerpc/mm/numa.c nid = of_node_to_nid_single(cpu); nid 496 arch/powerpc/mm/numa.c if (nid < 0 || !node_possible(nid)) nid 497 arch/powerpc/mm/numa.c nid = first_online_node; nid 499 arch/powerpc/mm/numa.c map_cpu_to_node(lcpu, nid); nid 502 arch/powerpc/mm/numa.c return nid; nid 529 arch/powerpc/mm/numa.c int nid; nid 531 arch/powerpc/mm/numa.c nid = numa_setup_cpu(cpu); nid 532 arch/powerpc/mm/numa.c verify_cpu_node_mapping(cpu, nid); nid 595 arch/powerpc/mm/numa.c int nid; nid 624 arch/powerpc/mm/numa.c nid = of_drconf_to_nid_single(lmb); nid 626 arch/powerpc/mm/numa.c &nid); nid 627 arch/powerpc/mm/numa.c node_set_online(nid); nid 630 arch/powerpc/mm/numa.c memblock_set_node(base, sz, &memblock.memory, nid); nid 665 arch/powerpc/mm/numa.c int nid; nid 669 arch/powerpc/mm/numa.c nid = of_node_to_nid_single(cpu); nid 677 arch/powerpc/mm/numa.c if (nid < 0) nid 679 arch/powerpc/mm/numa.c node_set_online(nid); nid 687 arch/powerpc/mm/numa.c int nid; nid 711 arch/powerpc/mm/numa.c nid = of_node_to_nid_single(memory); nid 712 arch/powerpc/mm/numa.c if (nid < 0) nid 713 arch/powerpc/mm/numa.c nid = default_nid; nid 715 arch/powerpc/mm/numa.c fake_numa_create_new_node(((start + size) >> PAGE_SHIFT), &nid); nid 716 arch/powerpc/mm/numa.c node_set_online(nid); nid 720 arch/powerpc/mm/numa.c memblock_set_node(start, size, &memblock.memory, nid); nid 745 arch/powerpc/mm/numa.c unsigned int nid = 0; nid 757 arch/powerpc/mm/numa.c fake_numa_create_new_node(end_pfn, &nid); nid 760 arch/powerpc/mm/numa.c &memblock.memory, nid); nid 761 arch/powerpc/mm/numa.c node_set_online(nid); nid 801 arch/powerpc/mm/numa.c static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn) nid 809 arch/powerpc/mm/numa.c nd_pa = memblock_phys_alloc_try_nid(nd_size, SMP_CACHE_BYTES, nid); nid 812 arch/powerpc/mm/numa.c nd_size, nid); nid 820 arch/powerpc/mm/numa.c if (tnid != nid) nid 821 arch/powerpc/mm/numa.c pr_info(" NODE_DATA(%d) on node %d\n", nid, tnid); nid 823 arch/powerpc/mm/numa.c node_data[nid] = nd; nid 824 arch/powerpc/mm/numa.c memset(NODE_DATA(nid), 0, sizeof(pg_data_t)); nid 825 arch/powerpc/mm/numa.c NODE_DATA(nid)->node_id = nid; nid 826 arch/powerpc/mm/numa.c NODE_DATA(nid)->node_start_pfn = start_pfn; nid 827 arch/powerpc/mm/numa.c NODE_DATA(nid)->node_spanned_pages = spanned_pages; nid 883 arch/powerpc/mm/numa.c int nid; nid 890 arch/powerpc/mm/numa.c for_each_online_node(nid) { nid 893 arch/powerpc/mm/numa.c get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); nid 894 arch/powerpc/mm/numa.c setup_node_data(nid, start_pfn, end_pfn); nid 895 arch/powerpc/mm/numa.c sparse_memory_present_with_active_regions(nid); nid 962 arch/powerpc/mm/numa.c int nid = NUMA_NO_NODE; nid 977 arch/powerpc/mm/numa.c nid = of_drconf_to_nid_single(lmb); nid 981 arch/powerpc/mm/numa.c return nid; nid 992 arch/powerpc/mm/numa.c int nid = NUMA_NO_NODE; nid 1014 arch/powerpc/mm/numa.c nid = of_node_to_nid_single(memory); nid 1018 arch/powerpc/mm/numa.c if (nid >= 0) nid 1024 arch/powerpc/mm/numa.c return nid; nid 1035 arch/powerpc/mm/numa.c int nid; nid 1042 arch/powerpc/mm/numa.c nid = hot_add_drconf_scn_to_nid(scn_addr); nid 1045 arch/powerpc/mm/numa.c nid = hot_add_node_scn_to_nid(scn_addr); nid 1048 arch/powerpc/mm/numa.c if (nid < 0 || !node_possible(nid)) nid 1049 arch/powerpc/mm/numa.c nid = first_online_node; nid 1051 arch/powerpc/mm/numa.c return nid; nid 1297 arch/powerpc/mm/numa.c int nid, base, j; nid 1299 arch/powerpc/mm/numa.c nid = update->new_nid; nid 1303 arch/powerpc/mm/numa.c update_numa_cpu_lookup_table(base + j, nid); nid 335 arch/powerpc/perf/imc-pmu.c int nid, target = -1; nid 363 arch/powerpc/perf/imc-pmu.c nid = cpu_to_node(cpu); nid 364 arch/powerpc/perf/imc-pmu.c l_cpumask = cpumask_of_node(nid); nid 578 arch/powerpc/perf/imc-pmu.c int nid, rc = 0, core_id = (cpu / threads_per_core); nid 586 arch/powerpc/perf/imc-pmu.c nid = cpu_to_node(cpu); nid 591 arch/powerpc/perf/imc-pmu.c page = alloc_pages_node(nid, nid 851 arch/powerpc/perf/imc-pmu.c int nid = cpu_to_node(cpu_id); nid 859 arch/powerpc/perf/imc-pmu.c page = alloc_pages_node(nid, nid 1372 arch/powerpc/perf/imc-pmu.c int nid, i, cpu; nid 1381 arch/powerpc/perf/imc-pmu.c for_each_node(nid) { nid 1394 arch/powerpc/perf/imc-pmu.c nest_imc_refc[i++].id = nid; nid 1402 arch/powerpc/perf/imc-pmu.c nid = cpu_to_node(cpu); nid 1404 arch/powerpc/perf/imc-pmu.c if (nest_imc_refc[i].id == nid) { nid 111 arch/powerpc/platforms/cell/iommu.c int nid; nid 256 arch/powerpc/platforms/cell/iommu.c static int cell_iommu_find_ioc(int nid, unsigned long *base) nid 265 arch/powerpc/platforms/cell/iommu.c if (of_node_to_nid(np) != nid) nid 283 arch/powerpc/platforms/cell/iommu.c if (nidp && *nidp == nid) { nid 306 arch/powerpc/platforms/cell/iommu.c __func__, iommu->nid, segments); nid 310 arch/powerpc/platforms/cell/iommu.c page = alloc_pages_node(iommu->nid, GFP_KERNEL, get_order(stab_size)); nid 334 arch/powerpc/platforms/cell/iommu.c iommu->nid, ptab_size, get_order(ptab_size)); nid 335 arch/powerpc/platforms/cell/iommu.c page = alloc_pages_node(iommu->nid, GFP_KERNEL, get_order(ptab_size)); nid 345 arch/powerpc/platforms/cell/iommu.c __func__, iommu->nid, iommu->stab, ptab, nid 382 arch/powerpc/platforms/cell/iommu.c if (cell_iommu_find_ioc(iommu->nid, &xlate_base)) nid 384 arch/powerpc/platforms/cell/iommu.c __func__, iommu->nid); nid 400 arch/powerpc/platforms/cell/iommu.c IIC_IRQ_IOEX_ATI | (iommu->nid << IIC_IRQ_NODE_SHIFT)); nid 472 arch/powerpc/platforms/cell/iommu.c window = kzalloc_node(sizeof(*window), GFP_KERNEL, iommu->nid); nid 482 arch/powerpc/platforms/cell/iommu.c window->table.it_index = iommu->nid; nid 489 arch/powerpc/platforms/cell/iommu.c iommu_init_table(&window->table, iommu->nid, 0, 0); nid 509 arch/powerpc/platforms/cell/iommu.c page = alloc_pages_node(iommu->nid, GFP_KERNEL, 0); nid 521 arch/powerpc/platforms/cell/iommu.c static struct cbe_iommu *cell_iommu_for_node(int nid) nid 526 arch/powerpc/platforms/cell/iommu.c if (iommus[i].nid == nid) nid 620 arch/powerpc/platforms/cell/iommu.c int nid, i; nid 623 arch/powerpc/platforms/cell/iommu.c nid = of_node_to_nid(np); nid 624 arch/powerpc/platforms/cell/iommu.c if (nid < 0) { nid 630 arch/powerpc/platforms/cell/iommu.c nid, np); nid 650 arch/powerpc/platforms/cell/iommu.c iommu->nid = nid; nid 999 arch/powerpc/platforms/cell/iommu.c "fixed window 0x%lx-0x%lx\n", iommu->nid, dbase, nid 98 arch/powerpc/platforms/cell/ras.c int nid; nid 107 arch/powerpc/platforms/cell/ras.c static int __init cbe_ptcal_enable_on_node(int nid, int order) nid 114 arch/powerpc/platforms/cell/ras.c rtas_call(ptcal_stop_tok, 1, 1, NULL, nid); nid 120 arch/powerpc/platforms/cell/ras.c area->nid = nid; nid 122 arch/powerpc/platforms/cell/ras.c area->pages = __alloc_pages_node(area->nid, nid 128 arch/powerpc/platforms/cell/ras.c __func__, area->nid); nid 139 arch/powerpc/platforms/cell/ras.c __func__, area->nid, addr); nid 142 arch/powerpc/platforms/cell/ras.c if (rtas_call(ptcal_start_tok, 3, 1, NULL, area->nid, nid 146 arch/powerpc/platforms/cell/ras.c __func__, nid); nid 193 arch/powerpc/platforms/cell/ras.c const u32 *nid = of_get_property(np, "node-id", NULL); nid 194 arch/powerpc/platforms/cell/ras.c if (!nid) { nid 199 arch/powerpc/platforms/cell/ras.c cbe_ptcal_enable_on_node(*nid, order); nid 215 arch/powerpc/platforms/cell/ras.c if (rtas_call(ptcal_stop_tok, 1, 1, NULL, area->nid)) { nid 218 arch/powerpc/platforms/cell/ras.c area->nid); nid 72 arch/powerpc/platforms/cell/spu_manage.c int nid; nid 83 arch/powerpc/platforms/cell/spu_manage.c nid = spu->node; nid 85 arch/powerpc/platforms/cell/spu_manage.c nid = tmp[0]; nid 88 arch/powerpc/platforms/cell/spu_manage.c isrc |= nid << IIC_IRQ_NODE_SHIFT; nid 28 arch/powerpc/platforms/powernv/memtrace.c u32 nid; nid 71 arch/powerpc/platforms/powernv/memtrace.c static bool memtrace_offline_pages(u32 nid, u64 start_pfn, u64 nr_pages) nid 95 arch/powerpc/platforms/powernv/memtrace.c static u64 memtrace_alloc_node(u32 nid, u64 size) nid 101 arch/powerpc/platforms/powernv/memtrace.c if (!node_spanned_pages(nid)) nid 104 arch/powerpc/platforms/powernv/memtrace.c start_pfn = node_start_pfn(nid); nid 105 arch/powerpc/platforms/powernv/memtrace.c end_pfn = node_end_pfn(nid); nid 113 arch/powerpc/platforms/powernv/memtrace.c if (memtrace_offline_pages(nid, base_pfn, nr_pages) == true) { nid 122 arch/powerpc/platforms/powernv/memtrace.c __remove_memory(nid, pfn << PAGE_SHIFT, bytes); nid 135 arch/powerpc/platforms/powernv/memtrace.c u32 nid; nid 145 arch/powerpc/platforms/powernv/memtrace.c for_each_online_node(nid) { nid 146 arch/powerpc/platforms/powernv/memtrace.c m = memtrace_alloc_node(nid, size); nid 153 arch/powerpc/platforms/powernv/memtrace.c pr_err("Failed to allocate trace memory on node %d\n", nid); nid 157 arch/powerpc/platforms/powernv/memtrace.c pr_info("Allocated trace memory on node %d at 0x%016llx\n", nid, m); nid 161 arch/powerpc/platforms/powernv/memtrace.c memtrace_array[memtrace_array_nr].nid = nid; nid 188 arch/powerpc/platforms/powernv/memtrace.c snprintf(ent->name, 16, "%08x", ent->nid); nid 192 arch/powerpc/platforms/powernv/memtrace.c ent->nid); nid 223 arch/powerpc/platforms/powernv/memtrace.c if (ent->nid == NUMA_NO_NODE) nid 232 arch/powerpc/platforms/powernv/memtrace.c if (add_memory(ent->nid, ent->start, ent->size)) { nid 234 arch/powerpc/platforms/powernv/memtrace.c ent->nid); nid 255 arch/powerpc/platforms/powernv/memtrace.c pr_info("Added trace memory back to node %d\n", ent->nid); nid 256 arch/powerpc/platforms/powernv/memtrace.c ent->size = ent->start = ent->nid = NUMA_NO_NODE; nid 196 arch/powerpc/platforms/powernv/opal-imc.c int nid, cpu; nid 200 arch/powerpc/platforms/powernv/opal-imc.c for_each_node_with_cpus(nid) { nid 201 arch/powerpc/platforms/powernv/opal-imc.c l_cpumask = cpumask_of_node(nid); nid 34 arch/powerpc/platforms/powernv/pci-ioda-tce.c static __be64 *pnv_alloc_tce_level(int nid, unsigned int shift) nid 39 arch/powerpc/platforms/powernv/pci-ioda-tce.c tce_mem = alloc_pages_node(nid, GFP_ATOMIC | __GFP_NOWARN, nid 229 arch/powerpc/platforms/powernv/pci-ioda-tce.c static __be64 *pnv_pci_ioda2_table_do_alloc_pages(int nid, unsigned int shift, nid 238 arch/powerpc/platforms/powernv/pci-ioda-tce.c addr = pnv_alloc_tce_level(nid, shift); nid 248 arch/powerpc/platforms/powernv/pci-ioda-tce.c tmp = pnv_pci_ioda2_table_do_alloc_pages(nid, shift, nid 263 arch/powerpc/platforms/powernv/pci-ioda-tce.c long pnv_pci_ioda2_table_alloc_pages(int nid, __u64 bus_offset, nid 291 arch/powerpc/platforms/powernv/pci-ioda-tce.c addr = pnv_pci_ioda2_table_do_alloc_pages(nid, level_shift, nid 309 arch/powerpc/platforms/powernv/pci-ioda-tce.c uas = pnv_pci_ioda2_table_do_alloc_pages(nid, level_shift, nid 325 arch/powerpc/platforms/powernv/pci-ioda-tce.c tbl->it_nid = nid; nid 2368 arch/powerpc/platforms/powernv/pci-ioda.c int nid = pe->phb->hose->node; nid 2373 arch/powerpc/platforms/powernv/pci-ioda.c tbl = pnv_pci_table_alloc(nid); nid 2379 arch/powerpc/platforms/powernv/pci-ioda.c ret = pnv_pci_ioda2_table_alloc_pages(nid, nid 799 arch/powerpc/platforms/powernv/pci.c struct iommu_table *pnv_pci_table_alloc(int nid) nid 803 arch/powerpc/platforms/powernv/pci.c tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, nid); nid 182 arch/powerpc/platforms/powernv/pci.h extern struct iommu_table *pnv_pci_table_alloc(int nid); nid 236 arch/powerpc/platforms/powernv/pci.h extern long pnv_pci_ioda2_table_alloc_pages(int nid, __u64 bus_offset, nid 286 arch/powerpc/platforms/pseries/hotplug-memory.c int i, nid; nid 297 arch/powerpc/platforms/pseries/hotplug-memory.c nid = memory_add_physaddr_to_nid(base); nid 300 arch/powerpc/platforms/pseries/hotplug-memory.c __remove_memory(nid, base, MIN_MEMORY_BLOCK_SIZE); nid 391 arch/powerpc/platforms/pseries/hotplug-memory.c __remove_memory(lmb->nid, lmb->base_addr, block_sz); nid 669 arch/powerpc/platforms/pseries/hotplug-memory.c rc = __add_memory(lmb->nid, lmb->base_addr, block_sz); nid 677 arch/powerpc/platforms/pseries/hotplug-memory.c __remove_memory(lmb->nid, lmb->base_addr, block_sz); nid 309 arch/powerpc/platforms/pseries/papr_scm.c int nid, min_node; nid 315 arch/powerpc/platforms/pseries/papr_scm.c for_each_online_node(nid) { nid 316 arch/powerpc/platforms/pseries/papr_scm.c dist = node_distance(node, nid); nid 319 arch/powerpc/platforms/pseries/papr_scm.c min_node = nid; nid 14 arch/s390/include/asm/mmzone.h #define NODE_DATA(nid) (node_data[nid]) nid 269 arch/s390/mm/init.c int arch_add_memory(int nid, u64 start, u64 size, nid 283 arch/s390/mm/init.c rc = __add_pages(nid, start_pfn, size_pages, restrictions); nid 289 arch/s390/mm/init.c void arch_remove_memory(int nid, u64 start, u64 size, nid 179 arch/s390/numa/mode_emu.c int nid; nid 182 arch/s390/numa/mode_emu.c for (nid = 0; nid < emu_nodes; nid++) nid 183 arch/s390/numa/mode_emu.c toptree_get_child(tree, nid); nid 294 arch/s390/numa/mode_emu.c int nid; nid 299 arch/s390/numa/mode_emu.c for (nid = 0; nid < nodes; nid++) { nid 300 arch/s390/numa/mode_emu.c if (!toptree_get_child(tree, nid)) nid 415 arch/s390/numa/mode_emu.c int nid, cid; nid 420 arch/s390/numa/mode_emu.c for (nid = 0; nid < emu_nodes; nid++) { nid 421 arch/s390/numa/mode_emu.c printk(KERN_DEBUG " node %3d: ", nid); nid 423 arch/s390/numa/mode_emu.c if (emu_cores->to_node_id[cid] == nid) nid 508 arch/s390/numa/mode_emu.c int nid; nid 512 arch/s390/numa/mode_emu.c for (nid = 0; nid < emu_nodes; nid++) nid 513 arch/s390/numa/mode_emu.c node_set(nid, node_possible_map); nid 76 arch/s390/numa/numa.c int nid = 0; nid 88 arch/s390/numa/numa.c nid = numa_pfn_to_nid(PFN_DOWN(cur_base)); nid 89 arch/s390/numa/numa.c node_set_online(nid); nid 90 arch/s390/numa/numa.c memblock_set_node(cur_base, align, &memblock.memory, nid); nid 95 arch/s390/numa/numa.c for (nid = 0; nid < MAX_NUMNODES; nid++) { nid 96 arch/s390/numa/numa.c NODE_DATA(nid) = memblock_alloc(sizeof(pg_data_t), 8); nid 97 arch/s390/numa/numa.c if (!NODE_DATA(nid)) nid 102 arch/s390/numa/numa.c for_each_online_node(nid) { nid 109 arch/s390/numa/numa.c for_each_mem_pfn_range(i, nid, &t_start, &t_end, NULL) { nid 115 arch/s390/numa/numa.c NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; nid 116 arch/s390/numa/numa.c NODE_DATA(nid)->node_id = nid; nid 144 arch/s390/numa/numa.c int nid; nid 146 arch/s390/numa/numa.c for_each_online_node(nid) nid 147 arch/s390/numa/numa.c register_one_node(nid); nid 11 arch/sh/include/asm/mmzone.h #define NODE_DATA(nid) (node_data[nid]) nid 15 arch/sh/include/asm/mmzone.h int nid; nid 17 arch/sh/include/asm/mmzone.h for (nid = 0; nid < MAX_NUMNODES; nid++) nid 18 arch/sh/include/asm/mmzone.h if (pfn >= node_start_pfn(nid) && pfn <= node_end_pfn(nid)) nid 21 arch/sh/include/asm/mmzone.h return nid; nid 30 arch/sh/include/asm/mmzone.h void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end); nid 33 arch/sh/include/asm/mmzone.h setup_bootmem_node(int nid, unsigned long start, unsigned long end) nid 42 arch/sh/include/asm/mmzone.h void __init __add_active_range(unsigned int nid, unsigned long start_pfn, nid 45 arch/sh/include/asm/mmzone.h void __init allocate_pgdat(unsigned int nid); nid 382 arch/sh/kernel/cpu/sh4a/setup-shx3.c unsigned int nid = 1; nid 385 arch/sh/kernel/cpu/sh4a/setup-shx3.c setup_bootmem_node(nid++, 0x145f0000, 0x14610000); /* CPU0 */ nid 389 arch/sh/kernel/cpu/sh4a/setup-shx3.c setup_bootmem_node(nid++, 0x14df0000, 0x14e10000); /* CPU1 */ nid 390 arch/sh/kernel/cpu/sh4a/setup-shx3.c setup_bootmem_node(nid++, 0x155f0000, 0x15610000); /* CPU2 */ nid 391 arch/sh/kernel/cpu/sh4a/setup-shx3.c setup_bootmem_node(nid++, 0x15df0000, 0x15e10000); /* CPU3 */ nid 394 arch/sh/kernel/cpu/sh4a/setup-shx3.c setup_bootmem_node(nid++, 0x16000000, 0x16020000); /* CSM */ nid 196 arch/sh/kernel/setup.c void __init __add_active_range(unsigned int nid, unsigned long start_pfn, nid 199 arch/sh/kernel/setup.c struct resource *res = &mem_resources[nid]; nid 239 arch/sh/kernel/setup.c &memblock.memory, nid); nid 199 arch/sh/mm/init.c void __init allocate_pgdat(unsigned int nid) nid 203 arch/sh/mm/init.c get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); nid 206 arch/sh/mm/init.c NODE_DATA(nid) = memblock_alloc_try_nid( nid 209 arch/sh/mm/init.c MEMBLOCK_ALLOC_ACCESSIBLE, nid); nid 210 arch/sh/mm/init.c if (!NODE_DATA(nid)) nid 211 arch/sh/mm/init.c panic("Can't allocate pgdat for node %d\n", nid); nid 214 arch/sh/mm/init.c NODE_DATA(nid)->node_start_pfn = start_pfn; nid 215 arch/sh/mm/init.c NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; nid 237 arch/sh/mm/init.c int nid = memblock_get_region_node(reg); nid 239 arch/sh/mm/init.c memory_present(nid, memblock_region_memory_base_pfn(reg), nid 408 arch/sh/mm/init.c int arch_add_memory(int nid, u64 start, u64 size, nid 416 arch/sh/mm/init.c ret = __add_pages(nid, start_pfn, nr_pages, restrictions); nid 432 arch/sh/mm/init.c void arch_remove_memory(int nid, u64 start, u64 size, nid 26 arch/sh/mm/numa.c void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end) nid 31 arch/sh/mm/numa.c BUG_ON(nid >= MAX_NUMNODES || nid <= 0); nid 41 arch/sh/mm/numa.c __add_active_range(nid, start_pfn, end_pfn); nid 44 arch/sh/mm/numa.c NODE_DATA(nid) = memblock_alloc_node(sizeof(struct pglist_data), nid 45 arch/sh/mm/numa.c SMP_CACHE_BYTES, nid); nid 46 arch/sh/mm/numa.c if (!NODE_DATA(nid)) nid 49 arch/sh/mm/numa.c nid); nid 51 arch/sh/mm/numa.c NODE_DATA(nid)->node_start_pfn = start_pfn; nid 52 arch/sh/mm/numa.c NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; nid 55 arch/sh/mm/numa.c node_set_online(nid); nid 58 arch/sh/mm/numa.c sparse_memory_present_with_active_regions(nid); nid 11 arch/sparc/include/asm/mmzone.h #define NODE_DATA(nid) (node_data[nid]) nid 204 arch/sparc/kernel/iommu.c int npages, nid; nid 213 arch/sparc/kernel/iommu.c nid = dev->archdata.numa_node; nid 214 arch/sparc/kernel/iommu.c page = alloc_pages_node(nid, gfp, order); nid 541 arch/sparc/kernel/of_device_64.c int nid; nid 625 arch/sparc/kernel/of_device_64.c nid = of_node_to_nid(dp); nid 626 arch/sparc/kernel/of_device_64.c if (nid != -1) { nid 629 arch/sparc/kernel/of_device_64.c cpumask_copy(&numa_mask, cpumask_of_node(nid)); nid 281 arch/sparc/kernel/pci_msi.c int err, nid; nid 286 arch/sparc/kernel/pci_msi.c nid = pbm->numa_node; nid 287 arch/sparc/kernel/pci_msi.c if (nid != -1) { nid 290 arch/sparc/kernel/pci_msi.c cpumask_copy(&numa_mask, cpumask_of_node(nid)); nid 191 arch/sparc/kernel/pci_sun4v.c int nid; nid 203 arch/sparc/kernel/pci_sun4v.c nid = dev->archdata.numa_node; nid 204 arch/sparc/kernel/pci_sun4v.c page = alloc_pages_node(nid, gfp, order); nid 975 arch/sparc/mm/init_64.c static u64 __init memblock_nid_range_sun4u(u64 start, u64 end, int *nid) nid 1001 arch/sparc/mm/init_64.c *nid = prev_nid; nid 1006 arch/sparc/mm/init_64.c static u64 __init memblock_nid_range(u64 start, u64 end, int *nid) nid 1013 arch/sparc/mm/init_64.c return memblock_nid_range_sun4u(start, end, nid); nid 1078 arch/sparc/mm/init_64.c *nid = _nid; nid 1087 arch/sparc/mm/init_64.c static void __init allocate_node_data(int nid) nid 1093 arch/sparc/mm/init_64.c NODE_DATA(nid) = memblock_alloc_node(sizeof(struct pglist_data), nid 1094 arch/sparc/mm/init_64.c SMP_CACHE_BYTES, nid); nid 1095 arch/sparc/mm/init_64.c if (!NODE_DATA(nid)) { nid 1096 arch/sparc/mm/init_64.c prom_printf("Cannot allocate pglist_data for nid[%d]\n", nid); nid 1100 arch/sparc/mm/init_64.c NODE_DATA(nid)->node_id = nid; nid 1103 arch/sparc/mm/init_64.c p = NODE_DATA(nid); nid 1105 arch/sparc/mm/init_64.c get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); nid 1189 arch/sparc/mm/init_64.c int count, nid; nid 1208 arch/sparc/mm/init_64.c nid = NUMA_NO_NODE; nid 1211 arch/sparc/mm/init_64.c nid = count; nid 1219 arch/sparc/mm/init_64.c return nid; nid 1238 arch/sparc/mm/init_64.c int nid; nid 1240 arch/sparc/mm/init_64.c this_end = memblock_nid_range(start, end, &nid); nid 1244 arch/sparc/mm/init_64.c nid, start, this_end); nid 1247 arch/sparc/mm/init_64.c &memblock.memory, nid); nid 75 arch/x86/include/asm/highmem.h extern void add_highpages_with_active_regions(int nid, unsigned long start_pfn, nid 339 arch/x86/include/asm/mce.h int umc_normaddr_to_sysaddr(u64 norm_addr, u16 nid, u8 umc, u64 *sys_addr); nid 348 arch/x86/include/asm/mce.h umc_normaddr_to_sysaddr(u64 norm_addr, u16 nid, u8 umc, u64 *sys_addr) { return -EINVAL; }; nid 14 arch/x86/include/asm/mmzone_32.h #define NODE_DATA(nid) (node_data[nid]) nid 45 arch/x86/include/asm/mmzone_32.h int nid = pfn_to_nid(pfn); nid 47 arch/x86/include/asm/mmzone_32.h if (nid >= 0) nid 48 arch/x86/include/asm/mmzone_32.h return (pfn < node_end_pfn(nid)); nid 15 arch/x86/include/asm/mmzone_64.h #define NODE_DATA(nid) (node_data[nid]) nid 735 arch/x86/include/asm/uv/uv_hub.h static inline int uv_node_to_blade_id(int nid) nid 737 arch/x86/include/asm/uv/uv_hub.h return nid; nid 777 arch/x86/include/asm/uv/uv_hub.h static inline int uv_node_to_pnode(int nid) nid 779 arch/x86/include/asm/uv/uv_hub.h return uv_hub_info_list(nid)->pnode; nid 738 arch/x86/kernel/acpi/boot.c int nid; nid 740 arch/x86/kernel/acpi/boot.c nid = acpi_get_node(handle); nid 741 arch/x86/kernel/acpi/boot.c if (nid != NUMA_NO_NODE) { nid 742 arch/x86/kernel/acpi/boot.c set_apicid_to_node(physid, nid); nid 743 arch/x86/kernel/acpi/boot.c numa_set_node(cpu, nid); nid 756 arch/x86/kernel/apic/x2apic_uv_x.c int nid; nid 772 arch/x86/kernel/apic/x2apic_uv_x.c for_each_online_node(nid) { nid 773 arch/x86/kernel/apic/x2apic_uv_x.c paddr = ((u64)uv_node_to_pnode(nid) << uv_hub_info->m_val) | nid 1376 arch/x86/kernel/apic/x2apic_uv_x.c int nid = cpu_to_node(cpu); nid 1379 arch/x86/kernel/apic/x2apic_uv_x.c if (lnid == nid) nid 1381 arch/x86/kernel/apic/x2apic_uv_x.c lnid = nid; nid 1384 arch/x86/kernel/apic/x2apic_uv_x.c _socket_to_node[sockid - minsock] = nid; nid 1386 arch/x86/kernel/apic/x2apic_uv_x.c sockid, apicid, nid); nid 662 arch/x86/kernel/cpu/mce/amd.c int umc_normaddr_to_sysaddr(u64 norm_addr, u16 nid, u8 umc, u64 *sys_addr) nid 679 arch/x86/kernel/cpu/mce/amd.c if (amd_df_indirect_read(nid, 0, 0x1B4, umc, &tmp)) nid 693 arch/x86/kernel/cpu/mce/amd.c if (amd_df_indirect_read(nid, 0, 0x110 + (8 * base), umc, &tmp)) nid 716 arch/x86/kernel/cpu/mce/amd.c if (amd_df_indirect_read(nid, 0, 0x114 + (8 * base), umc, &tmp)) nid 772 arch/x86/kernel/cpu/mce/amd.c if (amd_df_indirect_read(nid, 0, 0x50, umc, &tmp)) nid 789 arch/x86/kernel/cpu/mce/amd.c if (amd_df_indirect_read(nid, 1, 0x208, umc, &tmp)) nid 828 arch/x86/kernel/cpu/mce/amd.c if (amd_df_indirect_read(nid, 0, 0x104, umc, &tmp)) nid 422 arch/x86/kernel/cpu/mce/inject.c static void toggle_nb_mca_mst_cpu(u16 nid) nid 429 arch/x86/kernel/cpu/mce/inject.c nb = node_to_amd_nb(nid); nid 111 arch/x86/mm/highmem_32.c int nid; nid 127 arch/x86/mm/highmem_32.c nid = zone_to_nid(zone); nid 129 arch/x86/mm/highmem_32.c zone->name, nid, zone_start_pfn, zone_end_pfn); nid 131 arch/x86/mm/highmem_32.c add_highpages_with_active_regions(nid, zone_start_pfn, nid 434 arch/x86/mm/init_32.c void __init add_highpages_with_active_regions(int nid, nid 440 arch/x86/mm/init_32.c for_each_free_mem_range(i, nid, MEMBLOCK_NONE, &start, &end, NULL) { nid 854 arch/x86/mm/init_32.c int arch_add_memory(int nid, u64 start, u64 size, nid 860 arch/x86/mm/init_32.c return __add_pages(nid, start_pfn, nr_pages, restrictions); nid 863 arch/x86/mm/init_32.c void arch_remove_memory(int nid, u64 start, u64 size, nid 846 arch/x86/mm/init_64.c int add_pages(int nid, unsigned long start_pfn, unsigned long nr_pages, nid 851 arch/x86/mm/init_64.c ret = __add_pages(nid, start_pfn, nr_pages, restrictions); nid 861 arch/x86/mm/init_64.c int arch_add_memory(int nid, u64 start, u64 size, nid 869 arch/x86/mm/init_64.c return add_pages(nid, start_pfn, nr_pages, restrictions); nid 1210 arch/x86/mm/init_64.c void __ref arch_remove_memory(int nid, u64 start, u64 size, nid 27 arch/x86/mm/kasan_init_64.c static __init void *early_alloc(size_t size, int nid, bool should_panic) nid 30 arch/x86/mm/kasan_init_64.c __pa(MAX_DMA_ADDRESS), MEMBLOCK_ALLOC_ACCESSIBLE, nid); nid 34 arch/x86/mm/kasan_init_64.c (void *)_RET_IP_, nid, __pa(MAX_DMA_ADDRESS)); nid 40 arch/x86/mm/kasan_init_64.c unsigned long end, int nid) nid 50 arch/x86/mm/kasan_init_64.c p = early_alloc(PMD_SIZE, nid, false); nid 57 arch/x86/mm/kasan_init_64.c p = early_alloc(PAGE_SIZE, nid, true); nid 69 arch/x86/mm/kasan_init_64.c p = early_alloc(PAGE_SIZE, nid, true); nid 76 arch/x86/mm/kasan_init_64.c unsigned long end, int nid) nid 87 arch/x86/mm/kasan_init_64.c p = early_alloc(PUD_SIZE, nid, false); nid 94 arch/x86/mm/kasan_init_64.c p = early_alloc(PAGE_SIZE, nid, true); nid 102 arch/x86/mm/kasan_init_64.c kasan_populate_pmd(pmd, addr, next, nid); nid 107 arch/x86/mm/kasan_init_64.c unsigned long end, int nid) nid 113 arch/x86/mm/kasan_init_64.c void *p = early_alloc(PAGE_SIZE, nid, true); nid 122 arch/x86/mm/kasan_init_64.c kasan_populate_pud(pud, addr, next, nid); nid 127 arch/x86/mm/kasan_init_64.c unsigned long end, int nid) nid 134 arch/x86/mm/kasan_init_64.c p = early_alloc(PAGE_SIZE, nid, true); nid 141 arch/x86/mm/kasan_init_64.c kasan_populate_p4d(p4d, addr, next, nid); nid 146 arch/x86/mm/kasan_init_64.c int nid) nid 156 arch/x86/mm/kasan_init_64.c kasan_populate_pgd(pgd, addr, next, nid); nid 130 arch/x86/mm/numa.c static int __init numa_add_memblk_to(int nid, u64 start, u64 end, nid 138 arch/x86/mm/numa.c if (start > end || nid < 0 || nid >= MAX_NUMNODES) { nid 140 arch/x86/mm/numa.c nid, start, end - 1); nid 151 arch/x86/mm/numa.c mi->blk[mi->nr_blks].nid = nid; nid 182 arch/x86/mm/numa.c int __init numa_add_memblk(int nid, u64 start, u64 end) nid 184 arch/x86/mm/numa.c return numa_add_memblk_to(nid, start, end, &numa_meminfo); nid 188 arch/x86/mm/numa.c static void __init alloc_node_data(int nid) nid 199 arch/x86/mm/numa.c nd_pa = memblock_phys_alloc_try_nid(nd_size, SMP_CACHE_BYTES, nid); nid 202 arch/x86/mm/numa.c nd_size, nid); nid 208 arch/x86/mm/numa.c printk(KERN_INFO "NODE_DATA(%d) allocated [mem %#010Lx-%#010Lx]\n", nid, nid 211 arch/x86/mm/numa.c if (tnid != nid) nid 212 arch/x86/mm/numa.c printk(KERN_INFO " NODE_DATA(%d) on node %d\n", nid, tnid); nid 214 arch/x86/mm/numa.c node_data[nid] = nd; nid 215 arch/x86/mm/numa.c memset(NODE_DATA(nid), 0, sizeof(pg_data_t)); nid 217 arch/x86/mm/numa.c node_set_online(nid); nid 265 arch/x86/mm/numa.c if (bi->nid != bj->nid) { nid 267 arch/x86/mm/numa.c bi->nid, bi->start, bi->end - 1, nid 268 arch/x86/mm/numa.c bj->nid, bj->start, bj->end - 1); nid 272 arch/x86/mm/numa.c bi->nid, bi->start, bi->end - 1, nid 281 arch/x86/mm/numa.c if (bi->nid != bj->nid) nid 288 arch/x86/mm/numa.c if (bi->nid == bk->nid) nid 296 arch/x86/mm/numa.c bi->nid, bi->start, bi->end - 1, bj->start, nid 307 arch/x86/mm/numa.c mi->blk[i].nid = NUMA_NO_NODE; nid 323 arch/x86/mm/numa.c mi->blk[i].nid != NUMA_NO_NODE) nid 324 arch/x86/mm/numa.c node_set(mi->blk[i].nid, *nodemask); nid 446 arch/x86/mm/numa.c numaram -= __absent_pages_in_range(mi->blk[i].nid, s, e); nid 491 arch/x86/mm/numa.c ret = memblock_set_node(mb->start, mb->end - mb->start, &memblock.reserved, mb->nid); nid 505 arch/x86/mm/numa.c if (mb_region->nid != MAX_NUMNODES) nid 506 arch/x86/mm/numa.c node_set(mb_region->nid, reserved_nodemask); nid 520 arch/x86/mm/numa.c if (!node_isset(mb->nid, reserved_nodemask)) nid 530 arch/x86/mm/numa.c int i, nid; nid 541 arch/x86/mm/numa.c &memblock.memory, mb->nid); nid 570 arch/x86/mm/numa.c for_each_node_mask(nid, node_possible_map) { nid 575 arch/x86/mm/numa.c if (nid != mi->blk[i].nid) nid 591 arch/x86/mm/numa.c alloc_node_data(nid); nid 664 arch/x86/mm/numa.c int nid = early_cpu_to_node(i); nid 666 arch/x86/mm/numa.c if (nid == NUMA_NO_NODE) nid 668 arch/x86/mm/numa.c if (!node_online(nid)) nid 721 arch/x86/mm/numa.c static void __init init_memory_less_node(int nid) nid 727 arch/x86/mm/numa.c alloc_node_data(nid); nid 728 arch/x86/mm/numa.c free_area_init_node(nid, zones_size, 0, zholes_size); nid 888 arch/x86/mm/numa.c int nid = mi->blk[0].nid; nid 893 arch/x86/mm/numa.c nid = mi->blk[i].nid; nid 894 arch/x86/mm/numa.c return nid; nid 46 arch/x86/mm/numa_32.c void memory_present(int nid, unsigned long start, unsigned long end) nid 51 arch/x86/mm/numa_32.c nid, start, end); nid 52 arch/x86/mm/numa_32.c printk(KERN_DEBUG " Setting physnode_map array to node %d for pfns:\n", nid); nid 57 arch/x86/mm/numa_32.c physnode_map[pfn / PAGES_PER_SECTION] = nid; nid 21 arch/x86/mm/numa_emulation.c static int __init emu_find_memblk_by_nid(int nid, const struct numa_meminfo *mi) nid 26 arch/x86/mm/numa_emulation.c if (mi->blk[i].nid == nid) nid 47 arch/x86/mm/numa_emulation.c int nid, int phys_blk, u64 size) nid 60 arch/x86/mm/numa_emulation.c eb->nid = nid; nid 62 arch/x86/mm/numa_emulation.c if (emu_nid_to_phys[nid] == NUMA_NO_NODE) nid 63 arch/x86/mm/numa_emulation.c emu_nid_to_phys[nid] = pb->nid; nid 72 arch/x86/mm/numa_emulation.c nid, eb->start, eb->end - 1, (eb->end - eb->start) >> 20); nid 89 arch/x86/mm/numa_emulation.c int nid = 0; nid 140 arch/x86/mm/numa_emulation.c if (nid < big) nid 172 arch/x86/mm/numa_emulation.c ret = emu_setup_memblk(ei, pi, nid++ % nr_nodes, nid 219 arch/x86/mm/numa_emulation.c int nid) nid 242 arch/x86/mm/numa_emulation.c node_set(pblk->nid, physnode_mask); nid 309 arch/x86/mm/numa_emulation.c ret = emu_setup_memblk(ei, pi, nid++ % MAX_NUMNODES, nid 316 arch/x86/mm/numa_emulation.c return nid; nid 397 arch/x86/mm/numa_emulation.c int nid = 0; nid 412 arch/x86/mm/numa_emulation.c n, &pi.blk[0], nid); nid 421 arch/x86/mm/numa_emulation.c nid = ret; nid 477 arch/x86/mm/numa_emulation.c ei.blk[i].nid != NUMA_NO_NODE) nid 478 arch/x86/mm/numa_emulation.c node_set(ei.blk[i].nid, numa_nodes_parsed); nid 533 arch/x86/mm/numa_emulation.c int physnid, nid; nid 535 arch/x86/mm/numa_emulation.c nid = early_cpu_to_node(cpu); nid 536 arch/x86/mm/numa_emulation.c BUG_ON(nid == NUMA_NO_NODE || !node_online(nid)); nid 538 arch/x86/mm/numa_emulation.c physnid = emu_nid_to_phys[nid]; nid 544 arch/x86/mm/numa_emulation.c for_each_online_node(nid) nid 545 arch/x86/mm/numa_emulation.c if (emu_nid_to_phys[nid] == physnid) nid 546 arch/x86/mm/numa_emulation.c cpumask_set_cpu(cpu, node_to_cpumask_map[nid]); nid 559 arch/x86/mm/numa_emulation.c int nid, physnid; nid 561 arch/x86/mm/numa_emulation.c nid = early_cpu_to_node(cpu); nid 562 arch/x86/mm/numa_emulation.c if (nid == NUMA_NO_NODE) { nid 567 arch/x86/mm/numa_emulation.c physnid = emu_nid_to_phys[nid]; nid 569 arch/x86/mm/numa_emulation.c for_each_online_node(nid) { nid 570 arch/x86/mm/numa_emulation.c if (emu_nid_to_phys[nid] != physnid) nid 573 arch/x86/mm/numa_emulation.c debug_cpumask_set_cpu(cpu, nid, enable); nid 11 arch/x86/mm/numa_internal.h int nid; nid 1013 arch/x86/platform/uv/uv_nmi.c int nid = cpu_to_node(cpu); nid 1014 arch/x86/platform/uv/uv_nmi.c if (uv_hub_nmi_list[nid] == NULL) { nid 1015 arch/x86/platform/uv/uv_nmi.c uv_hub_nmi_list[nid] = kzalloc_node(size, nid 1016 arch/x86/platform/uv/uv_nmi.c GFP_KERNEL, nid); nid 1017 arch/x86/platform/uv/uv_nmi.c BUG_ON(!uv_hub_nmi_list[nid]); nid 1018 arch/x86/platform/uv/uv_nmi.c raw_spin_lock_init(&(uv_hub_nmi_list[nid]->nmi_lock)); nid 1019 arch/x86/platform/uv/uv_nmi.c atomic_set(&uv_hub_nmi_list[nid]->cpu_owner, -1); nid 1020 arch/x86/platform/uv/uv_nmi.c uv_hub_nmi_list[nid]->hub_present = hubbed; nid 1021 arch/x86/platform/uv/uv_nmi.c uv_hub_nmi_list[nid]->pch_owner = (nid == 0); nid 1023 arch/x86/platform/uv/uv_nmi.c uv_hub_nmi_per(cpu) = uv_hub_nmi_list[nid]; nid 153 arch/x86/platform/uv/uv_time.c int nid = cpu_to_node(cpu); nid 162 arch/x86/platform/uv/uv_time.c GFP_KERNEL, nid); nid 254 drivers/acpi/acpi_memhotplug.c int nid = acpi_get_node(handle); nid 260 drivers/acpi/acpi_memhotplug.c if (nid == NUMA_NO_NODE) nid 261 drivers/acpi/acpi_memhotplug.c nid = memory_add_physaddr_to_nid(info->start_addr); nid 264 drivers/acpi/acpi_memhotplug.c __remove_memory(nid, info->start_addr, info->length); nid 618 drivers/acpi/hmat/hmat.c int nid = pxm_to_node(target->memory_pxm); nid 627 drivers/acpi/hmat/hmat.c if (nid == NUMA_NO_NODE || !node_online(nid)) nid 653 drivers/acpi/hmat/hmat.c int pxm, nid = mnb->status_change_nid; nid 655 drivers/acpi/hmat/hmat.c if (nid == NUMA_NO_NODE || action != MEM_ONLINE) nid 658 drivers/acpi/hmat/hmat.c pxm = node_to_pxm(nid); nid 93 drivers/base/devres.c size_t size, gfp_t gfp, int nid) nid 103 drivers/base/devres.c dr = kmalloc_node_track_caller(tot_size, gfp, nid); nid 122 drivers/base/devres.c void * __devres_alloc_node(dr_release_t release, size_t size, gfp_t gfp, int nid, nid 127 drivers/base/devres.c dr = alloc_dr(release, size, gfp | __GFP_ZERO, nid); nid 149 drivers/base/devres.c void * devres_alloc_node(dr_release_t release, size_t size, gfp_t gfp, int nid) nid 153 drivers/base/devres.c dr = alloc_dr(release, size, gfp | __GFP_ZERO, nid); nid 365 drivers/base/memory.c static void print_allowed_zone(char *buf, int nid, unsigned long start_pfn, nid 371 drivers/base/memory.c zone = zone_for_pfn_range(online_type, nid, start_pfn, nr_pages); nid 386 drivers/base/memory.c int nid; nid 405 drivers/base/memory.c nid = mem->nid; nid 406 drivers/base/memory.c default_zone = zone_for_pfn_range(MMOP_ONLINE_KEEP, nid, start_pfn, nr_pages); nid 409 drivers/base/memory.c print_allowed_zone(buf, nid, start_pfn, nr_pages, MMOP_ONLINE_KERNEL, nid 411 drivers/base/memory.c print_allowed_zone(buf, nid, start_pfn, nr_pages, MMOP_ONLINE_MOVABLE, nid 477 drivers/base/memory.c int nid, ret; nid 491 drivers/base/memory.c nid = memory_add_physaddr_to_nid(phys_addr); nid 492 drivers/base/memory.c ret = __add_memory(nid, phys_addr, nid 648 drivers/base/memory.c mem->nid = NUMA_NO_NODE; nid 184 drivers/base/node.c void node_set_perf_attrs(unsigned int nid, struct node_hmem_attrs *hmem_attrs, nid 191 drivers/base/node.c if (WARN_ON_ONCE(!node_online(nid))) nid 194 drivers/base/node.c node = node_devices[nid]; nid 204 drivers/base/node.c nid); nid 287 drivers/base/node.c void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs) nid 293 drivers/base/node.c if (!node_online(nid) || !node_devices[nid]) nid 296 drivers/base/node.c node = node_devices[nid]; nid 351 drivers/base/node.c static void node_init_caches(unsigned int nid) nid 353 drivers/base/node.c INIT_LIST_HEAD(&node_devices[nid]->cache_attrs); nid 356 drivers/base/node.c static void node_init_caches(unsigned int nid) { } nid 365 drivers/base/node.c int nid = dev->id; nid 366 drivers/base/node.c struct pglist_data *pgdat = NODE_DATA(nid); nid 370 drivers/base/node.c si_meminfo_node(&i, nid); nid 385 drivers/base/node.c nid, K(i.totalram), nid 386 drivers/base/node.c nid, K(i.freeram), nid 387 drivers/base/node.c nid, K(i.totalram - i.freeram), nid 388 drivers/base/node.c nid, K(node_page_state(pgdat, NR_ACTIVE_ANON) + nid 390 drivers/base/node.c nid, K(node_page_state(pgdat, NR_INACTIVE_ANON) + nid 392 drivers/base/node.c nid, K(node_page_state(pgdat, NR_ACTIVE_ANON)), nid 393 drivers/base/node.c nid, K(node_page_state(pgdat, NR_INACTIVE_ANON)), nid 394 drivers/base/node.c nid, K(node_page_state(pgdat, NR_ACTIVE_FILE)), nid 395 drivers/base/node.c nid, K(node_page_state(pgdat, NR_INACTIVE_FILE)), nid 396 drivers/base/node.c nid, K(node_page_state(pgdat, NR_UNEVICTABLE)), nid 397 drivers/base/node.c nid, K(sum_zone_node_page_state(nid, NR_MLOCK))); nid 405 drivers/base/node.c nid, K(i.totalhigh), nid 406 drivers/base/node.c nid, K(i.freehigh), nid 407 drivers/base/node.c nid, K(i.totalram - i.totalhigh), nid 408 drivers/base/node.c nid, K(i.freeram - i.freehigh)); nid 434 drivers/base/node.c nid, K(node_page_state(pgdat, NR_FILE_DIRTY)), nid 435 drivers/base/node.c nid, K(node_page_state(pgdat, NR_WRITEBACK)), nid 436 drivers/base/node.c nid, K(node_page_state(pgdat, NR_FILE_PAGES)), nid 437 drivers/base/node.c nid, K(node_page_state(pgdat, NR_FILE_MAPPED)), nid 438 drivers/base/node.c nid, K(node_page_state(pgdat, NR_ANON_MAPPED)), nid 439 drivers/base/node.c nid, K(i.sharedram), nid 440 drivers/base/node.c nid, sum_zone_node_page_state(nid, NR_KERNEL_STACK_KB), nid 441 drivers/base/node.c nid, K(sum_zone_node_page_state(nid, NR_PAGETABLE)), nid 442 drivers/base/node.c nid, K(node_page_state(pgdat, NR_UNSTABLE_NFS)), nid 443 drivers/base/node.c nid, K(sum_zone_node_page_state(nid, NR_BOUNCE)), nid 444 drivers/base/node.c nid, K(node_page_state(pgdat, NR_WRITEBACK_TEMP)), nid 445 drivers/base/node.c nid, K(sreclaimable + nid 447 drivers/base/node.c nid, K(sreclaimable + sunreclaimable), nid 448 drivers/base/node.c nid, K(sreclaimable), nid 449 drivers/base/node.c nid, K(sunreclaimable) nid 452 drivers/base/node.c nid, K(node_page_state(pgdat, NR_ANON_THPS) * nid 454 drivers/base/node.c nid, K(node_page_state(pgdat, NR_SHMEM_THPS) * nid 456 drivers/base/node.c nid, K(node_page_state(pgdat, NR_SHMEM_PMDMAPPED) * nid 458 drivers/base/node.c nid, K(node_page_state(pgdat, NR_FILE_THPS) * nid 460 drivers/base/node.c nid, K(node_page_state(pgdat, NR_FILE_PMDMAPPED) * nid 464 drivers/base/node.c n += hugetlb_report_node_meminfo(nid, buf + n); nid 493 drivers/base/node.c int nid = dev->id; nid 494 drivers/base/node.c struct pglist_data *pgdat = NODE_DATA(nid); nid 500 drivers/base/node.c sum_zone_node_page_state(nid, i)); nid 506 drivers/base/node.c sum_zone_numa_state(nid, i)); nid 522 drivers/base/node.c int nid = dev->id; nid 533 drivers/base/node.c len += sprintf(buf + len, "%s%d", i ? " " : "", node_distance(nid, i)); nid 657 drivers/base/node.c int register_cpu_under_node(unsigned int cpu, unsigned int nid) nid 662 drivers/base/node.c if (!node_online(nid)) nid 669 drivers/base/node.c ret = sysfs_create_link(&node_devices[nid]->dev.kobj, nid 676 drivers/base/node.c &node_devices[nid]->dev.kobj, nid 677 drivers/base/node.c kobject_name(&node_devices[nid]->dev.kobj)); nid 730 drivers/base/node.c int unregister_cpu_under_node(unsigned int cpu, unsigned int nid) nid 734 drivers/base/node.c if (!node_online(nid)) nid 741 drivers/base/node.c sysfs_remove_link(&node_devices[nid]->dev.kobj, nid 744 drivers/base/node.c kobject_name(&node_devices[nid]->dev.kobj)); nid 768 drivers/base/node.c int ret, nid = *(int *)arg; nid 793 drivers/base/node.c if (page_nid != nid) nid 801 drivers/base/node.c mem_blk->nid = nid; nid 803 drivers/base/node.c ret = sysfs_create_link_nowarn(&node_devices[nid]->dev.kobj, nid 810 drivers/base/node.c &node_devices[nid]->dev.kobj, nid 811 drivers/base/node.c kobject_name(&node_devices[nid]->dev.kobj)); nid 823 drivers/base/node.c if (mem_blk->nid == NUMA_NO_NODE) nid 826 drivers/base/node.c sysfs_remove_link(&node_devices[mem_blk->nid]->dev.kobj, nid 829 drivers/base/node.c kobject_name(&node_devices[mem_blk->nid]->dev.kobj)); nid 832 drivers/base/node.c int link_mem_sections(int nid, unsigned long start_pfn, unsigned long end_pfn) nid 835 drivers/base/node.c PFN_PHYS(end_pfn - start_pfn), (void *)&nid, nid 860 drivers/base/node.c static void init_node_hugetlb_work(int nid) nid 862 drivers/base/node.c INIT_WORK(&node_devices[nid]->node_work, node_hugetlb_work); nid 869 drivers/base/node.c int nid = mnb->status_change_nid; nid 878 drivers/base/node.c if (nid != NUMA_NO_NODE) nid 879 drivers/base/node.c schedule_work(&node_devices[nid]->node_work); nid 903 drivers/base/node.c static void init_node_hugetlb_work(int nid) { } nid 907 drivers/base/node.c int __register_one_node(int nid) nid 912 drivers/base/node.c node_devices[nid] = kzalloc(sizeof(struct node), GFP_KERNEL); nid 913 drivers/base/node.c if (!node_devices[nid]) nid 916 drivers/base/node.c error = register_node(node_devices[nid], nid); nid 920 drivers/base/node.c if (cpu_to_node(cpu) == nid) nid 921 drivers/base/node.c register_cpu_under_node(cpu, nid); nid 924 drivers/base/node.c INIT_LIST_HEAD(&node_devices[nid]->access_list); nid 926 drivers/base/node.c init_node_hugetlb_work(nid); nid 927 drivers/base/node.c node_init_caches(nid); nid 932 drivers/base/node.c void unregister_one_node(int nid) nid 934 drivers/base/node.c if (!node_devices[nid]) nid 937 drivers/base/node.c unregister_node(node_devices[nid]); nid 938 drivers/base/node.c node_devices[nid] = NULL; nid 80 drivers/base/test/test_async_driver_probe.c test_platform_device_register_node(char *name, int id, int nid) nid 89 drivers/base/test/test_async_driver_probe.c if (nid != NUMA_NO_NODE) nid 90 drivers/base/test/test_async_driver_probe.c set_dev_node(&pdev->dev, nid); nid 108 drivers/base/test/test_async_driver_probe.c int err, nid, cpu; nid 113 drivers/base/test/test_async_driver_probe.c nid = cpu_to_node(cpu); nid 117 drivers/base/test/test_async_driver_probe.c nid); nid 148 drivers/base/test/test_async_driver_probe.c nid = cpu_to_node(cpu); nid 153 drivers/base/test/test_async_driver_probe.c nid); nid 177 drivers/base/test/test_async_driver_probe.c nid = cpu_to_node(cpu); nid 302 drivers/edac/amd64_edac.c static bool base_limit_match(struct amd64_pvt *pvt, u64 sys_addr, u8 nid) nid 314 drivers/edac/amd64_edac.c return ((addr >= get_dram_base(pvt, nid)) && nid 315 drivers/edac/amd64_edac.c (addr <= get_dram_limit(pvt, nid))); nid 1825 drivers/edac/amd64_edac.c static int f1x_lookup_addr_in_dct(u64 in_addr, u8 nid, u8 dct) nid 1833 drivers/edac/amd64_edac.c mci = edac_mc_find(nid); nid 2744 drivers/edac/amd64_edac.c u8 nid = pvt->mc_node_id; nid 2754 drivers/edac/amd64_edac.c amd_smn_read(nid, umc_base + UMCCH_DIMM_CFG, &umc->dimm_cfg); nid 2755 drivers/edac/amd64_edac.c amd_smn_read(nid, umc_base + UMCCH_UMC_CFG, &umc->umc_cfg); nid 2756 drivers/edac/amd64_edac.c amd_smn_read(nid, umc_base + UMCCH_SDP_CTRL, &umc->sdp_ctrl); nid 2757 drivers/edac/amd64_edac.c amd_smn_read(nid, umc_base + UMCCH_ECC_CTRL, &umc->ecc_ctrl); nid 2758 drivers/edac/amd64_edac.c amd_smn_read(nid, umc_base + UMCCH_UMC_CAP_HI, &umc->umc_cap_hi); nid 3024 drivers/edac/amd64_edac.c static void get_cpus_on_this_dct_cpumask(struct cpumask *mask, u16 nid) nid 3029 drivers/edac/amd64_edac.c if (amd_get_nb_id(cpu) == nid) nid 3034 drivers/edac/amd64_edac.c static bool nb_mce_bank_enabled_on_node(u16 nid) nid 3045 drivers/edac/amd64_edac.c get_cpus_on_this_dct_cpumask(mask, nid); nid 3067 drivers/edac/amd64_edac.c static int toggle_ecc_err_reporting(struct ecc_settings *s, u16 nid, bool on) nid 3077 drivers/edac/amd64_edac.c get_cpus_on_this_dct_cpumask(cmask, nid); nid 3105 drivers/edac/amd64_edac.c static bool enable_ecc_error_reporting(struct ecc_settings *s, u16 nid, nid 3111 drivers/edac/amd64_edac.c if (toggle_ecc_err_reporting(s, nid, ON)) { nid 3127 drivers/edac/amd64_edac.c nid, value, !!(value & NBCFG_ECC_ENABLE)); nid 3152 drivers/edac/amd64_edac.c nid, value, !!(value & NBCFG_ECC_ENABLE)); nid 3157 drivers/edac/amd64_edac.c static void restore_ecc_error_reporting(struct ecc_settings *s, u16 nid, nid 3179 drivers/edac/amd64_edac.c if (toggle_ecc_err_reporting(s, nid, OFF)) nid 3195 drivers/edac/amd64_edac.c static bool ecc_enabled(struct pci_dev *F3, u16 nid) nid 3208 drivers/edac/amd64_edac.c if (amd_smn_read(nid, base + UMCCH_SDP_CTRL, &value)) nid 3216 drivers/edac/amd64_edac.c if (amd_smn_read(nid, base + UMCCH_UMC_CAP_HI, &value)) nid 3227 drivers/edac/amd64_edac.c edac_dbg(0, "Node %d: No enabled UMCs.\n", nid); nid 3236 drivers/edac/amd64_edac.c nb_mce_en = nb_mce_bank_enabled_on_node(nid); nid 3239 drivers/edac/amd64_edac.c MSR_IA32_MCG_CTL, nid); nid 3243 drivers/edac/amd64_edac.c nid, (ecc_en ? "enabled" : "disabled")); nid 3422 drivers/edac/amd64_edac.c static int init_one_instance(unsigned int nid) nid 3424 drivers/edac/amd64_edac.c struct pci_dev *F3 = node_to_amd_nb(nid)->misc; nid 3437 drivers/edac/amd64_edac.c pvt->mc_node_id = nid; nid 3495 drivers/edac/amd64_edac.c mci = edac_mc_alloc(nid, ARRAY_SIZE(layers), layers, 0); nid 3532 drivers/edac/amd64_edac.c static int probe_one_instance(unsigned int nid) nid 3534 drivers/edac/amd64_edac.c struct pci_dev *F3 = node_to_amd_nb(nid)->misc; nid 3543 drivers/edac/amd64_edac.c ecc_stngs[nid] = s; nid 3545 drivers/edac/amd64_edac.c if (!ecc_enabled(F3, nid)) { nid 3557 drivers/edac/amd64_edac.c if (!enable_ecc_error_reporting(s, nid, F3)) nid 3561 drivers/edac/amd64_edac.c ret = init_one_instance(nid); nid 3563 drivers/edac/amd64_edac.c amd64_err("Error probing instance: %d\n", nid); nid 3566 drivers/edac/amd64_edac.c restore_ecc_error_reporting(s, nid, F3); nid 3575 drivers/edac/amd64_edac.c ecc_stngs[nid] = NULL; nid 3581 drivers/edac/amd64_edac.c static void remove_one_instance(unsigned int nid) nid 3583 drivers/edac/amd64_edac.c struct pci_dev *F3 = node_to_amd_nb(nid)->misc; nid 3584 drivers/edac/amd64_edac.c struct ecc_settings *s = ecc_stngs[nid]; nid 3598 drivers/edac/amd64_edac.c restore_ecc_error_reporting(s, nid, F3); nid 3602 drivers/edac/amd64_edac.c kfree(ecc_stngs[nid]); nid 3603 drivers/edac/amd64_edac.c ecc_stngs[nid] = NULL; nid 883 drivers/gpu/drm/amd/amdkfd/kfd_crat.c int nid; nid 895 drivers/gpu/drm/amd/amdkfd/kfd_crat.c for_each_online_node(nid) { nid 896 drivers/gpu/drm/amd/amdkfd/kfd_crat.c if (nid == numa_node_id) /* node itself */ nid 912 drivers/gpu/drm/amd/amdkfd/kfd_crat.c sub_type_hdr->proximity_domain_to = nid; nid 1151 drivers/gpu/drm/amd/amdkfd/kfd_crat.c uint32_t nid = 0; nid 1295 drivers/gpu/drm/amd/amdkfd/kfd_crat.c for (nid = 0; nid < proximity_domain; ++nid) { nid 1296 drivers/gpu/drm/amd/amdkfd/kfd_crat.c peer_dev = kfd_topology_device_by_proximity_domain(nid); nid 1307 drivers/gpu/drm/amd/amdkfd/kfd_crat.c proximity_domain, nid); nid 706 drivers/hv/hv_balloon.c int i, nid; nid 732 drivers/hv/hv_balloon.c nid = memory_add_physaddr_to_nid(PFN_PHYS(start_pfn)); nid 733 drivers/hv/hv_balloon.c ret = add_memory(nid, PFN_PHYS((start_pfn)), nid 496 drivers/iommu/dma-iommu.c unsigned int i = 0, nid = dev_to_node(dev); nid 526 drivers/iommu/dma-iommu.c page = alloc_pages_node(nid, alloc_flags, order); nid 909 drivers/iommu/intel-iommu.c tmp_page = alloc_pgtable_page(domain->nid); nid 1721 drivers/iommu/intel-iommu.c domain->nid = NUMA_NO_NODE; nid 1756 drivers/iommu/intel-iommu.c domain->nid = iommu->node; nid 1894 drivers/iommu/intel-iommu.c domain->nid = iommu->node; nid 1897 drivers/iommu/intel-iommu.c domain->pgd = (struct dma_pte *)alloc_pgtable_page(domain->nid); nid 2738 drivers/iommu/intel-iommu.c int i, nid, ret; nid 2752 drivers/iommu/intel-iommu.c for_each_online_node(nid) { nid 2756 drivers/iommu/intel-iommu.c for_each_mem_pfn_range(i, nid, &start_pfn, &end_pfn, NULL) { nid 5156 drivers/iommu/intel-iommu.c domain->pgd = (struct dma_pte *)alloc_pgtable_page(domain->nid); nid 69 drivers/irqchip/irq-mbigen.c unsigned int nid, pin; nid 72 drivers/irqchip/irq-mbigen.c nid = hwirq / IRQS_PER_MBIGEN_NODE + 1; nid 75 drivers/irqchip/irq-mbigen.c return pin * 4 + nid * MBIGEN_NODE_OFFSET nid 82 drivers/irqchip/irq-mbigen.c unsigned int nid, irq_ofst, ofst; nid 85 drivers/irqchip/irq-mbigen.c nid = hwirq / IRQS_PER_MBIGEN_NODE + 1; nid 91 drivers/irqchip/irq-mbigen.c *addr = ofst + nid * MBIGEN_NODE_OFFSET nid 995 drivers/media/platform/sti/bdisp/bdisp-hw.c unsigned int i, nid = 0; nid 1011 drivers/media/platform/sti/bdisp/bdisp-hw.c bdisp_hw_build_node(ctx, &cfg, ctx->node[nid], nid 1014 drivers/media/platform/sti/bdisp/bdisp-hw.c if (nid) nid 1015 drivers/media/platform/sti/bdisp/bdisp-hw.c ctx->node[nid - 1]->nip = ctx->node_paddr[nid]; nid 1016 drivers/media/platform/sti/bdisp/bdisp-hw.c nid++; nid 1020 drivers/media/platform/sti/bdisp/bdisp-hw.c bdisp_hw_build_node(ctx, &cfg, ctx->node[nid], nid 1022 drivers/media/platform/sti/bdisp/bdisp-hw.c ctx->node[nid - 1]->nip = ctx->node_paddr[nid]; nid 1023 drivers/media/platform/sti/bdisp/bdisp-hw.c nid++; nid 1033 drivers/media/platform/sti/bdisp/bdisp-hw.c ctx->node[nid - 1]->nip = 0; nid 253 drivers/misc/sgi-gru/grufile.c int pnode, nid, bid, chip; nid 265 drivers/misc/sgi-gru/grufile.c nid = uv_blade_to_memory_nid(bid);/* -1 if no memory on blade */ nid 266 drivers/misc/sgi-gru/grufile.c page = alloc_pages_node(nid, GFP_KERNEL, order); nid 508 drivers/misc/sgi-gru/grutables.h #define for_each_gru_on_blade(gru, nid, i) \ nid 509 drivers/misc/sgi-gru/grutables.h for ((gru) = gru_base[nid]->bs_grus, (i) = 0; \ nid 214 drivers/misc/sgi-xp/xpc_uv.c int nid; nid 244 drivers/misc/sgi-xp/xpc_uv.c nid = cpu_to_node(cpu); nid 245 drivers/misc/sgi-xp/xpc_uv.c page = __alloc_pages_node(nid, nid 250 drivers/misc/sgi-xp/xpc_uv.c "bytes of memory on nid=%d for GRU mq\n", mq_size, nid); nid 1741 drivers/misc/sgi-xp/xpc_uv.c xpc_init_mq_node(int nid) nid 1747 drivers/misc/sgi-xp/xpc_uv.c for_each_cpu(cpu, cpumask_of_node(nid)) { nid 1749 drivers/misc/sgi-xp/xpc_uv.c xpc_create_gru_mq_uv(XPC_ACTIVATE_MQ_SIZE_UV, nid, nid 1760 drivers/misc/sgi-xp/xpc_uv.c for_each_cpu(cpu, cpumask_of_node(nid)) { nid 1762 drivers/misc/sgi-xp/xpc_uv.c xpc_create_gru_mq_uv(XPC_NOTIFY_MQ_SIZE_UV, nid, nid 1781 drivers/misc/sgi-xp/xpc_uv.c int nid; nid 1793 drivers/misc/sgi-xp/xpc_uv.c for_each_online_node(nid) { nid 1794 drivers/misc/sgi-xp/xpc_uv.c ret = xpc_init_mq_node(nid); nid 358 drivers/mtd/maps/pcmciamtd.c for (i = 0; i < t->nid; i++) nid 2808 drivers/net/ethernet/broadcom/bnxt/bnxt.c pp.nid = dev_to_node(&bp->pdev->dev); nid 551 drivers/net/ethernet/mellanox/mlx5/core/en_main.c pp_params.nid = cpu_to_node(c->cpu); nid 215 drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c int nid = dev_to_node(device); nid 221 drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c page = alloc_pages_node(nid, GFP_HIGHUSER, 0); nid 1281 drivers/net/ethernet/socionext/netsec.c pp_params.nid = cpu_to_node(0); nid 1560 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c pp_params.nid = dev_to_node(priv->device); nid 564 drivers/net/ethernet/ti/cpsw.c pp_params.nid = NUMA_NO_NODE; nid 357 drivers/nvdimm/pmem.c int nid = dev_to_node(dev), fua; nid 448 drivers/nvdimm/pmem.c disk = alloc_disk_node(0, nid); nid 35 drivers/nvdimm/virtio_pmem.c int nid = dev_to_node(&vdev->dev); nid 82 drivers/nvdimm/virtio_pmem.c ndr_desc.numa_node = nid; nid 25 drivers/of/of_numa.c u32 nid; nid 30 drivers/of/of_numa.c r = of_property_read_u32(np, "numa-node-id", &nid); nid 34 drivers/of/of_numa.c pr_debug("CPU on %u\n", nid); nid 35 drivers/of/of_numa.c if (nid >= MAX_NUMNODES) nid 36 drivers/of/of_numa.c pr_warn("Node id %u exceeds maximum value\n", nid); nid 38 drivers/of/of_numa.c node_set(nid, numa_nodes_parsed); nid 46 drivers/of/of_numa.c u32 nid; nid 50 drivers/of/of_numa.c r = of_property_read_u32(np, "numa-node-id", &nid); nid 59 drivers/of/of_numa.c if (nid >= MAX_NUMNODES) { nid 60 drivers/of/of_numa.c pr_warn("Node id %u exceeds maximum value\n", nid); nid 65 drivers/of/of_numa.c r = numa_add_memblk(nid, rsrc.start, rsrc.end + 1); nid 141 drivers/of/of_numa.c u32 nid; nid 147 drivers/of/of_numa.c r = of_property_read_u32(np, "numa-node-id", &nid); nid 169 drivers/of/of_numa.c if (!r && nid < MAX_NUMNODES && node_possible(nid)) nid 170 drivers/of/of_numa.c return nid; nid 824 drivers/pcmcia/cistpl.c int nid; nid 829 drivers/pcmcia/cistpl.c for (nid = 0; nid < CISTPL_MAX_DEVICES; nid++) { nid 832 drivers/pcmcia/cistpl.c jedec->id[nid].mfr = p[0]; nid 833 drivers/pcmcia/cistpl.c jedec->id[nid].info = p[1]; nid 836 drivers/pcmcia/cistpl.c jedec->nid = nid; nid 291 drivers/xen/balloon.c int nid, rc; nid 310 drivers/xen/balloon.c nid = memory_add_physaddr_to_nid(resource->start); nid 350 drivers/xen/balloon.c rc = add_memory_resource(nid, resource); nid 80 fs/erofs/data.c map->m_pa = iloc(sbi, vi->nid) + vi->inode_isize + nid 88 fs/erofs/data.c vi->nid); nid 98 fs/erofs/data.c vi->nid, inode->i_size, map->m_la); nid 309 fs/erofs/data.c EROFS_I(mapping->host)->nid); nid 51 fs/erofs/dir.c EROFS_I(dir)->nid); nid 58 fs/erofs/dir.c le64_to_cpu(de->nid), d_type)) nid 90 fs/erofs/dir.c i, EROFS_I(dir)->nid); nid 103 fs/erofs/dir.c nameoff, EROFS_I(dir)->nid); nid 285 fs/erofs/erofs_fs.h __le64 nid; /* node number */ nid 26 fs/erofs/inode.c vi->datalayout, vi->nid); nid 113 fs/erofs/inode.c erofs_inode_version(ifmt), vi->nid); nid 127 fs/erofs/inode.c inode->i_mode, vi->nid); nid 155 fs/erofs/inode.c vi->nid); nid 180 fs/erofs/inode.c inode_loc = iloc(EROFS_SB(sb), vi->nid); nid 185 fs/erofs/inode.c __func__, vi->nid, ofs, blkaddr); nid 191 fs/erofs/inode.c vi->nid, PTR_ERR(page)); nid 248 fs/erofs/inode.c const erofs_nid_t nid = *(erofs_nid_t *)opaque; nid 250 fs/erofs/inode.c return EROFS_I(inode)->nid == nid; nid 255 fs/erofs/inode.c const erofs_nid_t nid = *(erofs_nid_t *)opaque; nid 257 fs/erofs/inode.c inode->i_ino = erofs_inode_hash(nid); nid 262 fs/erofs/inode.c erofs_nid_t nid) nid 264 fs/erofs/inode.c const unsigned long hashval = erofs_inode_hash(nid); nid 267 fs/erofs/inode.c erofs_iget_set_actor, &nid); nid 271 fs/erofs/inode.c erofs_nid_t nid, nid 274 fs/erofs/inode.c struct inode *inode = erofs_iget_locked(sb, nid); nid 283 fs/erofs/inode.c vi->nid = nid; nid 208 fs/erofs/internal.h static inline erofs_off_t iloc(struct erofs_sb_info *sbi, erofs_nid_t nid) nid 210 fs/erofs/internal.h return blknr_to_addr(sbi->meta_blkaddr) + (nid << sbi->islotbits); nid 222 fs/erofs/internal.h erofs_nid_t nid; nid 358 fs/erofs/internal.h static inline unsigned long erofs_inode_hash(erofs_nid_t nid) nid 361 fs/erofs/internal.h return (nid >> 32) ^ (nid & 0xffffffff); nid 363 fs/erofs/internal.h return nid; nid 371 fs/erofs/internal.h struct inode *erofs_iget(struct super_block *sb, erofs_nid_t nid, bool dir); nid 379 fs/erofs/internal.h erofs_nid_t *nid, unsigned int *d_type); nid 121 fs/erofs/namei.c mid, EROFS_I(dir)->nid); nid 170 fs/erofs/namei.c erofs_nid_t *nid, unsigned int *d_type) nid 198 fs/erofs/namei.c *nid = le64_to_cpu(de->nid); nid 214 fs/erofs/namei.c erofs_nid_t nid; nid 229 fs/erofs/namei.c err = erofs_namei(dir, &dentry->d_name, &nid, &d_type); nid 238 fs/erofs/namei.c dentry->d_name.name, nid, d_type); nid 239 fs/erofs/namei.c inode = erofs_iget(dir->i_sb, nid, d_type == FT_DIR); nid 72 fs/erofs/xattr.c vi->xattr_isize, vi->nid); nid 78 fs/erofs/xattr.c "bogus xattr ibody @ nid %llu", vi->nid); nid 89 fs/erofs/xattr.c it.blkaddr = erofs_blknr(iloc(sbi, vi->nid) + vi->inode_isize); nid 90 fs/erofs/xattr.c it.ofs = erofs_blkoff(iloc(sbi, vi->nid) + vi->inode_isize); nid 200 fs/erofs/xattr.c it->blkaddr = erofs_blknr(iloc(sbi, vi->nid) + inline_xattr_ofs); nid 201 fs/erofs/xattr.c it->ofs = erofs_blkoff(iloc(sbi, vi->nid) + inline_xattr_ofs); nid 1419 fs/erofs/zdata.c page->index, EROFS_I(inode)->nid); nid 51 fs/erofs/zmap.c pos = ALIGN(iloc(EROFS_SB(sb), vi->nid) + vi->inode_isize + nid 68 fs/erofs/zmap.c vi->z_algorithmtype[0], vi->nid); nid 79 fs/erofs/zmap.c vi->z_physical_clusterbits[0], vi->nid); nid 146 fs/erofs/zmap.c const erofs_off_t ibase = iloc(EROFS_I_SB(inode), vi->nid); nid 265 fs/erofs/zmap.c const erofs_off_t ebase = ALIGN(iloc(EROFS_I_SB(inode), vi->nid) + nid 339 fs/erofs/zmap.c "bogus lookback distance @ nid %llu", vi->nid); nid 355 fs/erofs/zmap.c vi->nid); nid 369 fs/erofs/zmap.c m->type, lcn, vi->nid); nid 429 fs/erofs/zmap.c vi->nid); nid 446 fs/erofs/zmap.c m.type, ofs, vi->nid); nid 785 fs/f2fs/data.c trace_f2fs_reserve_new_blocks(dn->inode, dn->nid, nid 1040 fs/f2fs/data.c err = f2fs_get_node_info(sbi, dn->nid, &ni); nid 1053 fs/f2fs/data.c set_summary(&sum, dn->nid, dn->ofs_in_node, ni.version); nid 2050 fs/f2fs/data.c err = f2fs_get_node_info(fio->sbi, dn.nid, &ni); nid 363 fs/f2fs/f2fs.h #define nid_in_journal(jnl, i) ((jnl)->nat_j.entries[i].nid) nid 850 fs/f2fs/f2fs.h nid_t nid; /* node id of the direct node block */ nid 860 fs/f2fs/f2fs.h struct page *ipage, struct page *npage, nid_t nid) nid 866 fs/f2fs/f2fs.h dn->nid = nid; nid 2265 fs/f2fs/f2fs.h #define RAW_IS_INODE(p) ((p)->footer.nid == (p)->footer.ino) nid 3039 fs/f2fs/f2fs.h int f2fs_check_nid_range(struct f2fs_sb_info *sbi, nid_t nid); nid 3045 fs/f2fs/f2fs.h int f2fs_need_dentry_mark(struct f2fs_sb_info *sbi, nid_t nid); nid 3046 fs/f2fs/f2fs.h bool f2fs_is_checkpointed_node(struct f2fs_sb_info *sbi, nid_t nid); nid 3048 fs/f2fs/f2fs.h int f2fs_get_node_info(struct f2fs_sb_info *sbi, nid_t nid, nid 3059 fs/f2fs/f2fs.h void f2fs_ra_node_page(struct f2fs_sb_info *sbi, nid_t nid); nid 3060 fs/f2fs/f2fs.h struct page *f2fs_get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid); nid 3070 fs/f2fs/f2fs.h bool f2fs_alloc_nid(struct f2fs_sb_info *sbi, nid_t *nid); nid 3071 fs/f2fs/f2fs.h void f2fs_alloc_nid_done(struct f2fs_sb_info *sbi, nid_t nid); nid 3072 fs/f2fs/f2fs.h void f2fs_alloc_nid_failed(struct f2fs_sb_info *sbi, nid_t nid); nid 3123 fs/f2fs/f2fs.h void f2fs_do_write_node_page(unsigned int nid, struct f2fs_io_info *fio); nid 563 fs/f2fs/file.c trace_f2fs_truncate_data_blocks_range(dn->inode, dn->nid, nid 1111 fs/f2fs/file.c ret = f2fs_get_node_info(sbi, dn.nid, &ni); nid 525 fs/f2fs/gc.c nid_t nid = le32_to_cpu(entry->nid); nid 538 fs/f2fs/gc.c f2fs_ra_meta_pages(sbi, NAT_BLOCK_OFFSET(nid), 1, nid 544 fs/f2fs/gc.c f2fs_ra_node_page(sbi, nid); nid 549 fs/f2fs/gc.c node_page = f2fs_get_node_page(sbi, nid); nid 559 fs/f2fs/gc.c if (f2fs_get_node_info(sbi, nid, &ni)) { nid 614 fs/f2fs/gc.c nid_t nid; nid 618 fs/f2fs/gc.c nid = le32_to_cpu(sum->nid); nid 621 fs/f2fs/gc.c node_page = f2fs_get_node_page(sbi, nid); nid 625 fs/f2fs/gc.c if (f2fs_get_node_info(sbi, nid, dni)) { nid 809 fs/f2fs/gc.c err = f2fs_get_node_info(fio.sbi, dn.nid, &ni); nid 813 fs/f2fs/gc.c set_summary(&sum, dn.nid, dn.ofs_in_node, ni.version); nid 1013 fs/f2fs/gc.c nid_t nid = le32_to_cpu(entry->nid); nid 1023 fs/f2fs/gc.c f2fs_ra_meta_pages(sbi, NAT_BLOCK_OFFSET(nid), 1, nid 1029 fs/f2fs/gc.c f2fs_ra_node_page(sbi, nid); nid 132 fs/f2fs/inline.c err = f2fs_get_node_info(fio.sbi, dn->nid, &ni); nid 33 fs/f2fs/node.c int f2fs_check_nid_range(struct f2fs_sb_info *sbi, nid_t nid) nid 35 fs/f2fs/node.c if (unlikely(nid < F2FS_ROOT_INO(sbi) || nid >= NM_I(sbi)->max_nid)) { nid 38 fs/f2fs/node.c __func__, nid); nid 110 fs/f2fs/node.c static struct page *get_current_nat_page(struct f2fs_sb_info *sbi, nid_t nid) nid 112 fs/f2fs/node.c return f2fs_get_meta_page_nofail(sbi, current_nat_addr(sbi, nid)); nid 115 fs/f2fs/node.c static struct page *get_next_nat_page(struct f2fs_sb_info *sbi, nid_t nid) nid 124 fs/f2fs/node.c dst_off = next_nat_addr(sbi, current_nat_addr(sbi, nid)); nid 127 fs/f2fs/node.c src_page = get_current_nat_page(sbi, nid); nid 139 fs/f2fs/node.c set_to_next_nat(nm_i, nid); nid 144 fs/f2fs/node.c static struct nat_entry *__alloc_nat_entry(nid_t nid, bool no_fail) nid 153 fs/f2fs/node.c nat_set_nid(new, nid); nid 217 fs/f2fs/node.c nid_t set = NAT_BLOCK_OFFSET(ne->ni.nid); nid 352 fs/f2fs/node.c int f2fs_need_dentry_mark(struct f2fs_sb_info *sbi, nid_t nid) nid 359 fs/f2fs/node.c e = __lookup_nat_cache(nm_i, nid); nid 369 fs/f2fs/node.c bool f2fs_is_checkpointed_node(struct f2fs_sb_info *sbi, nid_t nid) nid 376 fs/f2fs/node.c e = __lookup_nat_cache(nm_i, nid); nid 400 fs/f2fs/node.c static void cache_nat_entry(struct f2fs_sb_info *sbi, nid_t nid, nid 406 fs/f2fs/node.c new = __alloc_nat_entry(nid, false); nid 411 fs/f2fs/node.c e = __lookup_nat_cache(nm_i, nid); nid 429 fs/f2fs/node.c struct nat_entry *new = __alloc_nat_entry(ni->nid, true); nid 432 fs/f2fs/node.c e = __lookup_nat_cache(nm_i, ni->nid); nid 472 fs/f2fs/node.c if (ni->nid != ni->ino) nid 475 fs/f2fs/node.c if (fsync_done && ni->nid == ni->ino) nid 516 fs/f2fs/node.c int f2fs_get_node_info(struct f2fs_sb_info *sbi, nid_t nid, nid 522 fs/f2fs/node.c nid_t start_nid = START_NID(nid); nid 531 fs/f2fs/node.c ni->nid = nid; nid 535 fs/f2fs/node.c e = __lookup_nat_cache(nm_i, nid); nid 548 fs/f2fs/node.c i = f2fs_lookup_journal_in_cursum(journal, NAT_JOURNAL, nid, 0); nid 560 fs/f2fs/node.c index = current_nat_addr(sbi, nid); nid 568 fs/f2fs/node.c ne = nat_blk->entries[nid - start_nid]; nid 578 fs/f2fs/node.c cache_nat_entry(sbi, nid, &ne); nid 590 fs/f2fs/node.c nid_t nid; nid 598 fs/f2fs/node.c nid = get_nid(parent, i, false); nid 599 fs/f2fs/node.c f2fs_ra_node_page(sbi, nid); nid 770 fs/f2fs/node.c dn->nid = nids[i]; nid 809 fs/f2fs/node.c dn->nid = nids[level]; nid 838 fs/f2fs/node.c err = f2fs_get_node_info(sbi, dn->nid, &ni); nid 844 fs/f2fs/node.c dec_valid_node_count(sbi, dn->inode, dn->nid == dn->inode->i_ino); nid 847 fs/f2fs/node.c if (dn->nid == dn->inode->i_ino) { nid 848 fs/f2fs/node.c f2fs_remove_orphan_inode(sbi, dn->nid); nid 863 fs/f2fs/node.c trace_f2fs_truncate_node(dn->inode, dn->nid, ni.blk_addr); nid 873 fs/f2fs/node.c if (dn->nid == 0) nid 877 fs/f2fs/node.c page = f2fs_get_node_page(F2FS_I_SB(dn->inode), dn->nid); nid 905 fs/f2fs/node.c if (dn->nid == 0) nid 908 fs/f2fs/node.c trace_f2fs_truncate_nodes_enter(dn->inode, dn->nid, dn->data_blkaddr); nid 910 fs/f2fs/node.c page = f2fs_get_node_page(F2FS_I_SB(dn->inode), dn->nid); nid 921 fs/f2fs/node.c child_nid = le32_to_cpu(rn->in.nid[i]); nid 924 fs/f2fs/node.c rdn.nid = child_nid; nid 934 fs/f2fs/node.c child_nid = le32_to_cpu(rn->in.nid[i]); nid 939 fs/f2fs/node.c rdn.nid = child_nid; nid 975 fs/f2fs/node.c nid_t nid[3]; nid 981 fs/f2fs/node.c nid[0] = le32_to_cpu(ri->i_nid[offset[0] - NODE_DIR1_BLOCK]); nid 982 fs/f2fs/node.c if (!nid[0]) nid 988 fs/f2fs/node.c pages[i] = f2fs_get_node_page(F2FS_I_SB(dn->inode), nid[i]); nid 994 fs/f2fs/node.c nid[i + 1] = get_nid(pages[i], offset[i + 1], false); nid 1004 fs/f2fs/node.c dn->nid = child_nid; nid 1014 fs/f2fs/node.c dn->nid = nid[idx]; nid 1028 fs/f2fs/node.c trace_f2fs_truncate_partial_nodes(dn->inode, nid, depth, err); nid 1090 fs/f2fs/node.c dn.nid = le32_to_cpu(ri->i_nid[offset[0] - NODE_DIR1_BLOCK]); nid 1135 fs/f2fs/node.c nid_t nid = F2FS_I(inode)->i_xattr_nid; nid 1140 fs/f2fs/node.c if (!nid) nid 1143 fs/f2fs/node.c npage = f2fs_get_node_page(sbi, nid); nid 1147 fs/f2fs/node.c set_new_dnode(&dn, inode, NULL, npage, nid); nid 1226 fs/f2fs/node.c page = f2fs_grab_cache_page(NODE_MAPPING(sbi), dn->nid, false); nid 1234 fs/f2fs/node.c err = f2fs_get_node_info(sbi, dn->nid, &new_ni); nid 1241 fs/f2fs/node.c new_ni.nid = dn->nid; nid 1249 fs/f2fs/node.c fill_node_footer(page, dn->nid, dn->inode->i_ino, ofs, true); nid 1257 fs/f2fs/node.c f2fs_i_xnid_write(dn->inode, dn->nid); nid 1313 fs/f2fs/node.c void f2fs_ra_node_page(struct f2fs_sb_info *sbi, nid_t nid) nid 1318 fs/f2fs/node.c if (!nid) nid 1320 fs/f2fs/node.c if (f2fs_check_nid_range(sbi, nid)) nid 1323 fs/f2fs/node.c apage = xa_load(&NODE_MAPPING(sbi)->i_pages, nid); nid 1327 fs/f2fs/node.c apage = f2fs_grab_cache_page(NODE_MAPPING(sbi), nid, false); nid 1335 fs/f2fs/node.c static struct page *__get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid, nid 1341 fs/f2fs/node.c if (!nid) nid 1343 fs/f2fs/node.c if (f2fs_check_nid_range(sbi, nid)) nid 1346 fs/f2fs/node.c page = f2fs_grab_cache_page(NODE_MAPPING(sbi), nid, false); nid 1379 fs/f2fs/node.c if(unlikely(nid != nid_of_node(page))) { nid 1381 fs/f2fs/node.c nid, nid_of_node(page), ino_of_node(page), nid 1393 fs/f2fs/node.c struct page *f2fs_get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid) nid 1395 fs/f2fs/node.c return __get_node_page(sbi, nid, NULL, 0); nid 1401 fs/f2fs/node.c nid_t nid = get_nid(parent, start, false); nid 1403 fs/f2fs/node.c return __get_node_page(sbi, nid, parent, start); nid 1503 fs/f2fs/node.c nid_t nid; nid 1533 fs/f2fs/node.c nid = nid_of_node(page); nid 1534 fs/f2fs/node.c f2fs_bug_on(sbi, page->index != nid); nid 1536 fs/f2fs/node.c if (f2fs_get_node_info(sbi, nid, &ni)) nid 1576 fs/f2fs/node.c f2fs_do_write_node_page(nid, &fio); nid 2059 fs/f2fs/node.c int err = radix_tree_insert(&nm_i->free_nid_root, i->nid, i); nid 2079 fs/f2fs/node.c radix_tree_delete(&nm_i->free_nid_root, i->nid); nid 2104 fs/f2fs/node.c static void update_free_nid_bitmap(struct f2fs_sb_info *sbi, nid_t nid, nid 2108 fs/f2fs/node.c unsigned int nat_ofs = NAT_BLOCK_OFFSET(nid); nid 2109 fs/f2fs/node.c unsigned int nid_ofs = nid - START_NID(nid); nid 2130 fs/f2fs/node.c nid_t nid, bool build, bool update) nid 2139 fs/f2fs/node.c if (unlikely(nid == 0)) nid 2142 fs/f2fs/node.c if (unlikely(f2fs_check_nid_range(sbi, nid))) nid 2146 fs/f2fs/node.c i->nid = nid; nid 2175 fs/f2fs/node.c ne = __lookup_nat_cache(nm_i, nid); nid 2180 fs/f2fs/node.c e = __lookup_free_nid_list(nm_i, nid); nid 2191 fs/f2fs/node.c update_free_nid_bitmap(sbi, nid, ret, build); nid 2203 fs/f2fs/node.c static void remove_free_nid(struct f2fs_sb_info *sbi, nid_t nid) nid 2210 fs/f2fs/node.c i = __lookup_free_nid_list(nm_i, nid); nid 2264 fs/f2fs/node.c nid_t nid; nid 2267 fs/f2fs/node.c nid = le32_to_cpu(nid_in_journal(journal, i)); nid 2269 fs/f2fs/node.c add_free_nid(sbi, nid, true, false); nid 2271 fs/f2fs/node.c remove_free_nid(sbi, nid); nid 2280 fs/f2fs/node.c nid_t nid; nid 2295 fs/f2fs/node.c nid = i * NAT_ENTRY_PER_BLOCK + idx; nid 2296 fs/f2fs/node.c add_free_nid(sbi, nid, true, false); nid 2313 fs/f2fs/node.c nid_t nid = nm_i->next_scan_nid; nid 2315 fs/f2fs/node.c if (unlikely(nid >= nm_i->max_nid)) nid 2316 fs/f2fs/node.c nid = 0; nid 2334 fs/f2fs/node.c f2fs_ra_meta_pages(sbi, NAT_BLOCK_OFFSET(nid), FREE_NID_PAGES, nid 2340 fs/f2fs/node.c if (!test_bit_le(NAT_BLOCK_OFFSET(nid), nid 2342 fs/f2fs/node.c struct page *page = get_current_nat_page(sbi, nid); nid 2347 fs/f2fs/node.c ret = scan_nat_page(sbi, page, nid); nid 2359 fs/f2fs/node.c nid += (NAT_ENTRY_PER_BLOCK - (nid % NAT_ENTRY_PER_BLOCK)); nid 2360 fs/f2fs/node.c if (unlikely(nid >= nm_i->max_nid)) nid 2361 fs/f2fs/node.c nid = 0; nid 2368 fs/f2fs/node.c nm_i->next_scan_nid = nid; nid 2397 fs/f2fs/node.c bool f2fs_alloc_nid(struct f2fs_sb_info *sbi, nid_t *nid) nid 2419 fs/f2fs/node.c *nid = i->nid; nid 2424 fs/f2fs/node.c update_free_nid_bitmap(sbi, *nid, false, false); nid 2440 fs/f2fs/node.c void f2fs_alloc_nid_done(struct f2fs_sb_info *sbi, nid_t nid) nid 2446 fs/f2fs/node.c i = __lookup_free_nid_list(nm_i, nid); nid 2457 fs/f2fs/node.c void f2fs_alloc_nid_failed(struct f2fs_sb_info *sbi, nid_t nid) nid 2463 fs/f2fs/node.c if (!nid) nid 2467 fs/f2fs/node.c i = __lookup_free_nid_list(nm_i, nid); nid 2479 fs/f2fs/node.c update_free_nid_bitmap(sbi, nid, true, false); nid 2687 fs/f2fs/node.c sum_entry->nid = rn->footer.nid; nid 2711 fs/f2fs/node.c nid_t nid = le32_to_cpu(nid_in_journal(journal, i)); nid 2715 fs/f2fs/node.c ne = __lookup_nat_cache(nm_i, nid); nid 2717 fs/f2fs/node.c ne = __alloc_nat_entry(nid, true); nid 2824 fs/f2fs/node.c nid_t nid = nat_get_nid(ne); nid 2831 fs/f2fs/node.c NAT_JOURNAL, nid, 1); nid 2834 fs/f2fs/node.c nid_in_journal(journal, offset) = cpu_to_le32(nid); nid 2836 fs/f2fs/node.c raw_ne = &nat_blk->entries[nid - start_nid]; nid 2842 fs/f2fs/node.c add_free_nid(sbi, nid, false, true); nid 2845 fs/f2fs/node.c update_free_nid_bitmap(sbi, nid, false, false); nid 2972 fs/f2fs/node.c nid_t nid, last_nid; nid 2984 fs/f2fs/node.c nid = i * NAT_ENTRY_PER_BLOCK; nid 2985 fs/f2fs/node.c last_nid = nid + NAT_ENTRY_PER_BLOCK; nid 2988 fs/f2fs/node.c for (; nid < last_nid; nid++) nid 2989 fs/f2fs/node.c update_free_nid_bitmap(sbi, nid, true, true); nid 3125 fs/f2fs/node.c nid_t nid = 0; nid 3147 fs/f2fs/node.c nid, NATVEC_SIZE, natvec))) { nid 3150 fs/f2fs/node.c nid = nat_get_nid(natvec[found - 1]) + 1; nid 3162 fs/f2fs/node.c nid = 0; nid 3164 fs/f2fs/node.c nid, SETVEC_SIZE, setvec))) { nid 3167 fs/f2fs/node.c nid = setvec[found - 1]->set + 1; nid 9 fs/f2fs/node.h #define START_NID(nid) (((nid) / NAT_ENTRY_PER_BLOCK) * NAT_ENTRY_PER_BLOCK) nid 51 fs/f2fs/node.h nid_t nid; /* node id */ nid 63 fs/f2fs/node.h #define nat_get_nid(nat) ((nat)->ni.nid) nid 64 fs/f2fs/node.h #define nat_set_nid(nat, n) ((nat)->ni.nid = (n)) nid 77 fs/f2fs/node.h dst->nid = src->nid; nid 159 fs/f2fs/node.h nid_t nid; /* node id */ nid 163 fs/f2fs/node.h static inline void next_free_nid(struct f2fs_sb_info *sbi, nid_t *nid) nid 174 fs/f2fs/node.h *nid = fnid->nid; nid 245 fs/f2fs/node.h return le32_to_cpu(rn->footer.nid); nid 267 fs/f2fs/node.h static inline void fill_node_footer(struct page *page, nid_t nid, nid 278 fs/f2fs/node.h rn->footer.nid = cpu_to_le32(nid); nid 360 fs/f2fs/node.h static inline int set_nid(struct page *p, int off, nid_t nid, bool i) nid 367 fs/f2fs/node.h rn->i.i_nid[off - NODE_DIR1_BLOCK] = cpu_to_le32(nid); nid 369 fs/f2fs/node.h rn->in.nid[off] = cpu_to_le32(nid); nid 379 fs/f2fs/node.h return le32_to_cpu(rn->in.nid[off]); nid 407 fs/f2fs/recovery.c nid_t ino, nid; nid 434 fs/f2fs/recovery.c nid = le32_to_cpu(sum.nid); nid 435 fs/f2fs/recovery.c if (dn->inode->i_ino == nid) { nid 436 fs/f2fs/recovery.c tdn.nid = nid; nid 442 fs/f2fs/recovery.c } else if (dn->nid == nid) { nid 448 fs/f2fs/recovery.c node_page = f2fs_get_node_page(sbi, nid); nid 502 fs/f2fs/recovery.c if (dn->inode->i_ino == nid && !dn->inode_page_locked) nid 546 fs/f2fs/recovery.c err = f2fs_get_node_info(sbi, dn.nid, &ni); nid 635 fs/f2fs/recovery.c fill_node_footer(dn.node_page, dn.nid, ni.ino, nid 256 fs/f2fs/segment.c err = f2fs_get_node_info(sbi, dn.nid, &ni); nid 3222 fs/f2fs/segment.c void f2fs_do_write_node_page(unsigned int nid, struct f2fs_io_info *fio) nid 3226 fs/f2fs/segment.c set_summary(&sum, nid, 0, 0); nid 3239 fs/f2fs/segment.c set_summary(&sum, dn->nid, dn->ofs_in_node, fio->version); nid 3377 fs/f2fs/segment.c set_summary(&sum, dn->nid, dn->ofs_in_node, version); nid 781 fs/f2fs/segment.h static inline void set_summary(struct f2fs_summary *sum, nid_t nid, nid 784 fs/f2fs/segment.h sum->nid = cpu_to_le32(nid); nid 238 fs/proc/kcore.c int nid, ret; nid 244 fs/proc/kcore.c for_each_node_state(nid, N_MEMORY) { nid 246 fs/proc/kcore.c node_end = node_end_pfn(nid); nid 1698 fs/proc/task_mmu.c int nid; nid 1710 fs/proc/task_mmu.c nid = page_to_nid(page); nid 1711 fs/proc/task_mmu.c if (!node_isset(nid, node_states[N_MEMORY])) nid 1723 fs/proc/task_mmu.c int nid; nid 1735 fs/proc/task_mmu.c nid = page_to_nid(page); nid 1736 fs/proc/task_mmu.c if (!node_isset(nid, node_states[N_MEMORY])) nid 1826 fs/proc/task_mmu.c int nid; nid 1883 fs/proc/task_mmu.c for_each_node_state(nid, N_MEMORY) nid 1884 fs/proc/task_mmu.c if (md->node[nid]) nid 1885 fs/proc/task_mmu.c seq_printf(m, " N%d=%lu", nid, md->node[nid]); nid 22 include/asm-generic/memory_model.h #define arch_local_page_offset(pfn, nid) \ nid 23 include/asm-generic/memory_model.h ((pfn) - NODE_DATA(nid)->node_start_pfn) nid 183 include/linux/compaction.h extern int kcompactd_run(int nid); nid 184 include/linux/compaction.h extern void kcompactd_stop(int nid); nid 227 include/linux/compaction.h static inline int kcompactd_run(int nid) nid 231 include/linux/compaction.h static inline void kcompactd_stop(int nid) nid 872 include/linux/device.h int nid, const char *name) __malloc; nid 875 include/linux/device.h #define devres_alloc_node(release, size, gfp, nid) \ nid 876 include/linux/device.h __devres_alloc_node(release, size, gfp, nid, #release) nid 879 include/linux/device.h int nid) __malloc; nid 288 include/linux/f2fs_fs.h __le32 nid[NIDS_PER_BLOCK]; /* array of data block address */ nid 301 include/linux/f2fs_fs.h __le32 nid; /* node id */ nid 394 include/linux/f2fs_fs.h __le32 nid; /* parent node id */ nid 439 include/linux/f2fs_fs.h __le32 nid; nid 102 include/linux/genalloc.h phys_addr_t phys, size_t size, int nid) nid 104 include/linux/genalloc.h return gen_pool_add_owner(pool, addr, phys, size, nid, NULL); nid 120 include/linux/genalloc.h size_t size, int nid) nid 122 include/linux/genalloc.h return gen_pool_add_virt(pool, addr, -1, size, nid); nid 206 include/linux/genalloc.h int min_alloc_order, int nid, const char *name); nid 477 include/linux/gfp.h static inline struct zonelist *node_zonelist(int nid, gfp_t flags) nid 479 include/linux/gfp.h return NODE_DATA(nid)->node_zonelists + gfp_zonelist(flags); nid 504 include/linux/gfp.h __alloc_pages_node(int nid, gfp_t gfp_mask, unsigned int order) nid 506 include/linux/gfp.h VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES); nid 507 include/linux/gfp.h VM_WARN_ON((gfp_mask & __GFP_THISNODE) && !node_online(nid)); nid 509 include/linux/gfp.h return __alloc_pages(gfp_mask, order, nid); nid 517 include/linux/gfp.h static inline struct page *alloc_pages_node(int nid, gfp_t gfp_mask, nid 520 include/linux/gfp.h if (nid == NUMA_NO_NODE) nid 521 include/linux/gfp.h nid = numa_mem_id(); nid 523 include/linux/gfp.h return __alloc_pages_node(nid, gfp_mask, order); nid 558 include/linux/gfp.h void * __meminit alloc_pages_exact_nid(int nid, size_t size, gfp_t gfp_mask); nid 362 include/linux/hugetlb.h struct page *alloc_huge_page_node(struct hstate *h, int nid); nid 368 include/linux/hugetlb.h int nid, nodemask_t *nmask); nid 603 include/linux/hugetlb.h static inline struct page *alloc_huge_page_node(struct hstate *h, int nid) nid 479 include/linux/intel-iommu.h int nid; /* node id */ nid 117 include/linux/list_lru.h int nid, struct mem_cgroup *memcg); nid 118 include/linux/list_lru.h unsigned long list_lru_count_node(struct list_lru *lru, int nid); nid 123 include/linux/list_lru.h return list_lru_count_one(lru, sc->nid, sc->memcg); nid 129 include/linux/list_lru.h int nid; nid 131 include/linux/list_lru.h for_each_node_state(nid, N_NORMAL_MEMORY) nid 132 include/linux/list_lru.h count += list_lru_count_node(lru, nid); nid 54 include/linux/memblock.h int nid; nid 111 include/linux/memblock.h int memblock_add_node(phys_addr_t base, phys_addr_t size, int nid); nid 132 include/linux/memblock.h int nid, enum memblock_flags flags); nid 134 include/linux/memblock.h void __next_mem_range(u64 *idx, int nid, enum memblock_flags flags, nid 139 include/linux/memblock.h void __next_mem_range_rev(u64 *idx, int nid, enum memblock_flags flags, nid 161 include/linux/memblock.h #define for_each_mem_range(i, type_a, type_b, nid, flags, \ nid 163 include/linux/memblock.h for (i = 0, __next_mem_range(&i, nid, flags, type_a, type_b, \ nid 166 include/linux/memblock.h __next_mem_range(&i, nid, flags, type_a, type_b, \ nid 181 include/linux/memblock.h #define for_each_mem_range_rev(i, type_a, type_b, nid, flags, \ nid 184 include/linux/memblock.h __next_mem_range_rev(&i, nid, flags, type_a, type_b,\ nid 187 include/linux/memblock.h __next_mem_range_rev(&i, nid, flags, type_a, type_b, \ nid 222 include/linux/memblock.h void __next_mem_pfn_range(int *idx, int nid, unsigned long *out_start_pfn, nid 235 include/linux/memblock.h #define for_each_mem_pfn_range(i, nid, p_start, p_end, p_nid) \ nid 236 include/linux/memblock.h for (i = -1, __next_mem_pfn_range(&i, nid, p_start, p_end, p_nid); \ nid 237 include/linux/memblock.h i >= 0; __next_mem_pfn_range(&i, nid, p_start, p_end, p_nid)) nid 293 include/linux/memblock.h #define for_each_free_mem_range(i, nid, flags, p_start, p_end, p_nid) \ nid 295 include/linux/memblock.h nid, flags, p_start, p_end, p_nid) nid 309 include/linux/memblock.h #define for_each_free_mem_range_reverse(i, nid, flags, p_start, p_end, \ nid 312 include/linux/memblock.h nid, flags, p_start, p_end, p_nid) nid 316 include/linux/memblock.h struct memblock_type *type, int nid); nid 318 include/linux/memblock.h static inline void memblock_set_region_node(struct memblock_region *r, int nid) nid 320 include/linux/memblock.h r->nid = nid; nid 325 include/linux/memblock.h return r->nid; nid 328 include/linux/memblock.h static inline void memblock_set_region_node(struct memblock_region *r, int nid) nid 352 include/linux/memblock.h phys_addr_t memblock_phys_alloc_try_nid(phys_addr_t size, phys_addr_t align, int nid); nid 363 include/linux/memblock.h int nid); nid 366 include/linux/memblock.h int nid); nid 398 include/linux/memblock.h phys_addr_t align, int nid) nid 401 include/linux/memblock.h MEMBLOCK_ALLOC_ACCESSIBLE, nid); nid 411 include/linux/memblock.h phys_addr_t size, int nid) nid 391 include/linux/memcontrol.h mem_cgroup_nodeinfo(struct mem_cgroup *memcg, int nid) nid 393 include/linux/memcontrol.h return memcg->nodeinfo[nid]; nid 1357 include/linux/memcontrol.h int nid, int shrinker_id); nid 1368 include/linux/memcontrol.h int nid, int shrinker_id) nid 35 include/linux/memory.h int nid; /* NID for this memory block */ nid 112 include/linux/memory_hotplug.h extern int try_online_node(int nid); nid 114 include/linux/memory_hotplug.h extern int arch_add_memory(int nid, u64 start, u64 size, nid 126 include/linux/memory_hotplug.h extern void arch_remove_memory(int nid, u64 start, u64 size, nid 132 include/linux/memory_hotplug.h extern int __add_pages(int nid, unsigned long start_pfn, unsigned long nr_pages, nid 136 include/linux/memory_hotplug.h static inline int add_pages(int nid, unsigned long start_pfn, nid 139 include/linux/memory_hotplug.h return __add_pages(nid, start_pfn, nr_pages, restrictions); nid 142 include/linux/memory_hotplug.h int add_pages(int nid, unsigned long start_pfn, unsigned long nr_pages, nid 166 include/linux/memory_hotplug.h extern pg_data_t *arch_alloc_nodedata(int nid); nid 168 include/linux/memory_hotplug.h extern void arch_refresh_nodedata(int nid, pg_data_t *pgdat); nid 172 include/linux/memory_hotplug.h #define arch_alloc_nodedata(nid) generic_alloc_nodedata(nid) nid 182 include/linux/memory_hotplug.h #define generic_alloc_nodedata(nid) \ nid 193 include/linux/memory_hotplug.h static inline void arch_refresh_nodedata(int nid, pg_data_t *pgdat) nid 195 include/linux/memory_hotplug.h node_data[nid] = pgdat; nid 201 include/linux/memory_hotplug.h static inline pg_data_t *generic_alloc_nodedata(int nid) nid 209 include/linux/memory_hotplug.h static inline void arch_refresh_nodedata(int nid, pg_data_t *pgdat) nid 267 include/linux/memory_hotplug.h static inline int try_online_node(int nid) nid 315 include/linux/memory_hotplug.h extern void try_offline_node(int nid); nid 317 include/linux/memory_hotplug.h extern int remove_memory(int nid, u64 start, u64 size); nid 318 include/linux/memory_hotplug.h extern void __remove_memory(int nid, u64 start, u64 size); nid 327 include/linux/memory_hotplug.h static inline void try_offline_node(int nid) {} nid 334 include/linux/memory_hotplug.h static inline int remove_memory(int nid, u64 start, u64 size) nid 339 include/linux/memory_hotplug.h static inline void __remove_memory(int nid, u64 start, u64 size) {} nid 342 include/linux/memory_hotplug.h extern void __ref free_area_init_core_hotplug(int nid); nid 343 include/linux/memory_hotplug.h extern int __add_memory(int nid, u64 start, u64 size); nid 344 include/linux/memory_hotplug.h extern int add_memory(int nid, u64 start, u64 size); nid 345 include/linux/memory_hotplug.h extern int add_memory_resource(int nid, struct resource *resource); nid 352 include/linux/memory_hotplug.h extern int sparse_add_section(int nid, unsigned long pfn, nid 359 include/linux/memory_hotplug.h extern bool allow_online_pfn_range(int nid, unsigned long pfn, unsigned long nr_pages, nid 361 include/linux/memory_hotplug.h extern struct zone *zone_for_pfn_range(int online_type, int nid, unsigned start_pfn, nid 44 include/linux/mempool.h gfp_t gfp_mask, int nid); nid 126 include/linux/memremap.h void *memremap_pages(struct dev_pagemap *pgmap, int nid); nid 1208 include/linux/mm.h static inline int cpu_pid_to_cpupid(int nid, int pid) nid 2075 include/linux/mm.h extern void __init free_area_init_node(int nid, unsigned long * zones_size, nid 2137 include/linux/mm.h int nid; nid 2140 include/linux/mm.h for_each_online_node(nid) nid 2141 include/linux/mm.h phys_pages += node_present_pages(nid); nid 2175 include/linux/mm.h unsigned long __absent_pages_in_range(int nid, unsigned long start_pfn, nid 2179 include/linux/mm.h extern void get_pfn_range_for_nid(unsigned int nid, nid 2182 include/linux/mm.h extern void free_bootmem_with_active_regions(int nid, nid 2184 include/linux/mm.h extern void sparse_memory_present_with_active_regions(int nid); nid 2219 include/linux/mm.h extern void si_meminfo_node(struct sysinfo *val, int nid); nid 2755 include/linux/mm.h void drop_slab_node(int nid); nid 2774 include/linux/mm.h unsigned long nr_pages, int nid, struct vmem_altmap *altmap); nid 783 include/linux/mmzone.h #define node_present_pages(nid) (NODE_DATA(nid)->node_present_pages) nid 784 include/linux/mmzone.h #define node_spanned_pages(nid) (NODE_DATA(nid)->node_spanned_pages) nid 790 include/linux/mmzone.h #define nid_page_nr(nid, pagenr) pgdat_page_nr(NODE_DATA(nid),(pagenr)) nid 792 include/linux/mmzone.h #define node_start_pfn(nid) (NODE_DATA(nid)->node_start_pfn) nid 793 include/linux/mmzone.h #define node_end_pfn(nid) pgdat_end_pfn(NODE_DATA(nid)) nid 844 include/linux/mmzone.h void memory_present(int nid, unsigned long start, unsigned long end); nid 846 include/linux/mmzone.h static inline void memory_present(int nid, unsigned long start, unsigned long end) {} nid 889 include/linux/mmzone.h static inline void zone_set_nid(struct zone *zone, int nid) nid 891 include/linux/mmzone.h zone->node = nid; nid 899 include/linux/mmzone.h static inline void zone_set_nid(struct zone *zone, int nid) {} nid 966 include/linux/mmzone.h #define NODE_DATA(nid) (&contig_page_data) nid 967 include/linux/mmzone.h #define NODE_MEM_MAP(nid) mem_map nid 1408 include/linux/mmzone.h void memory_present(int nid, unsigned long start, unsigned long end); nid 68 include/linux/node.h void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs); nid 69 include/linux/node.h void node_set_perf_attrs(unsigned int nid, struct node_hmem_attrs *hmem_attrs, nid 72 include/linux/node.h static inline void node_add_cache(unsigned int nid, nid 77 include/linux/node.h static inline void node_set_perf_attrs(unsigned int nid, nid 102 include/linux/node.h extern int link_mem_sections(int nid, unsigned long start_pfn, nid 105 include/linux/node.h static inline int link_mem_sections(int nid, unsigned long start_pfn, nid 115 include/linux/node.h extern int __register_one_node(int nid); nid 118 include/linux/node.h static inline int register_one_node(int nid) nid 122 include/linux/node.h if (node_online(nid)) { nid 123 include/linux/node.h struct pglist_data *pgdat = NODE_DATA(nid); nid 127 include/linux/node.h error = __register_one_node(nid); nid 131 include/linux/node.h error = link_mem_sections(nid, start_pfn, end_pfn); nid 137 include/linux/node.h extern void unregister_one_node(int nid); nid 138 include/linux/node.h extern int register_cpu_under_node(unsigned int cpu, unsigned int nid); nid 139 include/linux/node.h extern int unregister_cpu_under_node(unsigned int cpu, unsigned int nid); nid 151 include/linux/node.h static inline int __register_one_node(int nid) nid 155 include/linux/node.h static inline int register_one_node(int nid) nid 159 include/linux/node.h static inline int unregister_one_node(int nid) nid 163 include/linux/node.h static inline int register_cpu_under_node(unsigned int cpu, unsigned int nid) nid 167 include/linux/node.h static inline int unregister_cpu_under_node(unsigned int cpu, unsigned int nid) nid 438 include/linux/nodemask.h static inline int next_online_node(int nid) nid 440 include/linux/nodemask.h return next_node(nid, node_states[N_ONLINE]); nid 442 include/linux/nodemask.h static inline int next_memory_node(int nid) nid 444 include/linux/nodemask.h return next_node(nid, node_states[N_MEMORY]); nid 450 include/linux/nodemask.h static inline void node_set_online(int nid) nid 452 include/linux/nodemask.h node_set_state(nid, N_ONLINE); nid 456 include/linux/nodemask.h static inline void node_set_offline(int nid) nid 458 include/linux/nodemask.h node_clear_state(nid, N_ONLINE); nid 487 include/linux/nodemask.h #define next_online_node(nid) (MAX_NUMNODES) nid 16 include/linux/shrinker.h int nid; nid 380 include/linux/swap.h extern int kswapd_run(int nid); nid 381 include/linux/swap.h extern void kswapd_stop(int nid); nid 65 include/net/page_pool.h int nid; /* Numa node id to allocate from pages from */ nid 132 include/pcmcia/cistpl.h u_char nid; nid 116 include/sound/hda_codec.h int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid); nid 119 include/sound/hda_codec.h void (*stream_pm)(struct hda_codec *codec, hda_nid_t nid, bool on); nid 143 include/sound/hda_codec.h hda_nid_t nid; /* default NID to query rates/formats/bps, or set up */ nid 265 include/sound/hda_codec.h unsigned int (*power_filter)(struct hda_codec *codec, hda_nid_t nid, nid 270 include/sound/hda_codec.h struct hda_codec *codec, hda_nid_t nid); nid 313 include/sound/hda_codec.h snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, nid 317 include/sound/hda_codec.h return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm); nid 321 include/sound/hda_codec.h snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, nid 324 include/sound/hda_codec.h return snd_hdac_codec_write(&codec->core, nid, flags, verb, parm); nid 327 include/sound/hda_codec.h #define snd_hda_param_read(codec, nid, param) \ nid 328 include/sound/hda_codec.h snd_hdac_read_parm(&(codec)->core, nid, param) nid 329 include/sound/hda_codec.h #define snd_hda_get_sub_nodes(codec, nid, start_nid) \ nid 330 include/sound/hda_codec.h snd_hdac_get_sub_nodes(&(codec)->core, nid, start_nid) nid 331 include/sound/hda_codec.h int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, nid 334 include/sound/hda_codec.h snd_hda_get_num_conns(struct hda_codec *codec, hda_nid_t nid) nid 336 include/sound/hda_codec.h return snd_hda_get_connections(codec, nid, NULL, 0); nid 339 include/sound/hda_codec.h #define snd_hda_get_raw_connections(codec, nid, list, max_conns) \ nid 340 include/sound/hda_codec.h snd_hdac_get_connections(&(codec)->core, nid, list, max_conns) nid 341 include/sound/hda_codec.h #define snd_hda_get_num_raw_conns(codec, nid) \ nid 342 include/sound/hda_codec.h snd_hdac_get_connections(&(codec)->core, nid, NULL, 0); nid 344 include/sound/hda_codec.h int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid, nid 346 include/sound/hda_codec.h int snd_hda_override_conn_list(struct hda_codec *codec, hda_nid_t nid, int nums, nid 349 include/sound/hda_codec.h hda_nid_t nid, int recursive); nid 350 include/sound/hda_codec.h unsigned int snd_hda_get_num_devices(struct hda_codec *codec, hda_nid_t nid); nid 351 include/sound/hda_codec.h int snd_hda_get_devices(struct hda_codec *codec, hda_nid_t nid, nid 353 include/sound/hda_codec.h int snd_hda_get_dev_select(struct hda_codec *codec, hda_nid_t nid); nid 354 include/sound/hda_codec.h int snd_hda_set_dev_select(struct hda_codec *codec, hda_nid_t nid, int dev_id); nid 357 include/sound/hda_codec.h hda_nid_t nid; nid 374 include/sound/hda_codec.h snd_hda_codec_write_cache(struct hda_codec *codec, hda_nid_t nid, nid 377 include/sound/hda_codec.h return snd_hdac_regmap_write(&codec->core, nid, verb, parm); nid 382 include/sound/hda_codec.h hda_nid_t nid; nid 388 include/sound/hda_codec.h unsigned int snd_hda_codec_get_pincfg(struct hda_codec *codec, hda_nid_t nid); nid 389 include/sound/hda_codec.h int snd_hda_codec_set_pincfg(struct hda_codec *codec, hda_nid_t nid, nid 392 include/sound/hda_codec.h hda_nid_t nid, unsigned int cfg); /* for hwdep */ nid 397 include/sound/hda_codec.h hda_nid_t nid; /* Converter nid values relate to */ nid 402 include/sound/hda_codec.h hda_nid_t nid); nid 404 include/sound/hda_codec.h void snd_hda_spdif_ctls_assign(struct hda_codec *codec, int idx, hda_nid_t nid); nid 436 include/sound/hda_codec.h void snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid, nid 439 include/sound/hda_codec.h void __snd_hda_codec_cleanup_stream(struct hda_codec *codec, hda_nid_t nid, nid 441 include/sound/hda_codec.h #define snd_hda_codec_cleanup_stream(codec, nid) \ nid 442 include/sound/hda_codec.h __snd_hda_codec_cleanup_stream(codec, nid, 0) nid 444 include/sound/hda_codec.h #define snd_hda_query_supported_pcm(codec, nid, ratesp, fmtsp, bpsp) \ nid 445 include/sound/hda_codec.h snd_hdac_query_supported_pcm(&(codec)->core, nid, ratesp, fmtsp, bpsp) nid 446 include/sound/hda_codec.h #define snd_hda_is_supported_format(codec, nid, fmt) \ nid 447 include/sound/hda_codec.h snd_hdac_is_supported_format(&(codec)->core, nid, fmt) nid 474 include/sound/hda_codec.h int hda_call_check_power_status(struct hda_codec *codec, hda_nid_t nid) nid 478 include/sound/hda_codec.h return codec->patch_ops.check_power_status(codec, nid); nid 17 include/sound/hda_component.h int snd_hdac_sync_audio_rate(struct hdac_device *codec, hda_nid_t nid, nid 19 include/sound/hda_component.h int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, int dev_id, nid 38 include/sound/hda_component.h hda_nid_t nid, int dev_id, int rate) nid 42 include/sound/hda_component.h static inline int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, nid 17 include/sound/hda_hwdep.h #define HDA_VERB(nid,verb,param) ((nid)<<24 | (verb)<<8 | (param)) nid 38 include/sound/hda_regmap.h #define snd_hdac_regmap_encode_verb(nid, verb) \ nid 39 include/sound/hda_regmap.h (((verb) << 8) | 0x80000 | ((unsigned int)(nid) << 20)) nid 50 include/sound/hda_regmap.h #define snd_hdac_regmap_encode_amp(nid, ch, dir, idx) \ nid 51 include/sound/hda_regmap.h (snd_hdac_regmap_encode_verb(nid, AC_VERB_GET_AMP_GAIN_MUTE) | \ nid 64 include/sound/hda_regmap.h #define snd_hdac_regmap_encode_amp_stereo(nid, dir, idx) \ nid 65 include/sound/hda_regmap.h (snd_hdac_regmap_encode_verb(nid, AC_VERB_GET_AMP_GAIN_MUTE) | \ nid 79 include/sound/hda_regmap.h snd_hdac_regmap_write(struct hdac_device *codec, hda_nid_t nid, nid 82 include/sound/hda_regmap.h unsigned int cmd = snd_hdac_regmap_encode_verb(nid, verb); nid 97 include/sound/hda_regmap.h snd_hdac_regmap_update(struct hdac_device *codec, hda_nid_t nid, nid 101 include/sound/hda_regmap.h unsigned int cmd = snd_hdac_regmap_encode_verb(nid, verb); nid 115 include/sound/hda_regmap.h snd_hdac_regmap_read(struct hdac_device *codec, hda_nid_t nid, nid 118 include/sound/hda_regmap.h unsigned int cmd = snd_hdac_regmap_encode_verb(nid, verb); nid 136 include/sound/hda_regmap.h snd_hdac_regmap_get_amp(struct hdac_device *codec, hda_nid_t nid, nid 139 include/sound/hda_regmap.h unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx); nid 160 include/sound/hda_regmap.h snd_hdac_regmap_update_amp(struct hdac_device *codec, hda_nid_t nid, nid 163 include/sound/hda_regmap.h unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx); nid 181 include/sound/hda_regmap.h snd_hdac_regmap_get_amp_stereo(struct hdac_device *codec, hda_nid_t nid, nid 184 include/sound/hda_regmap.h unsigned int cmd = snd_hdac_regmap_encode_amp_stereo(nid, dir, idx); nid 205 include/sound/hda_regmap.h snd_hdac_regmap_update_amp_stereo(struct hdac_device *codec, hda_nid_t nid, nid 208 include/sound/hda_regmap.h unsigned int cmd = snd_hdac_regmap_encode_amp_stereo(nid, dir, idx); nid 219 include/sound/hda_regmap.h snd_hdac_regmap_sync_node(struct hdac_device *codec, hda_nid_t nid) nid 222 include/sound/hda_regmap.h regcache_sync_region(codec->regmap, nid << 20, ((nid + 1) << 20) - 1); nid 127 include/sound/hdaudio.h int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, nid 129 include/sound/hdaudio.h int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, nid 131 include/sound/hdaudio.h int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid, nid 133 include/sound/hdaudio.h int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid, nid 135 include/sound/hdaudio.h int snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid, nid 137 include/sound/hdaudio.h int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid, nid 144 include/sound/hdaudio.h int snd_hdac_query_supported_pcm(struct hdac_device *codec, hda_nid_t nid, nid 146 include/sound/hdaudio.h bool snd_hdac_is_supported_format(struct hdac_device *codec, hda_nid_t nid, nid 149 include/sound/hdaudio.h int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid, nid 151 include/sound/hdaudio.h int snd_hdac_codec_write(struct hdac_device *hdac, hda_nid_t nid, nid 154 include/sound/hdaudio.h hda_nid_t nid, unsigned int target_state); nid 156 include/sound/hdaudio.h hda_nid_t nid, unsigned int target_state); nid 166 include/sound/hdaudio.h static inline int snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, nid 171 include/sound/hdaudio.h return _snd_hdac_read_parm(codec, nid, parm, &val) < 0 ? -1 : val; nid 155 include/sound/hdaudio_ext.h hda_nid_t nid; nid 206 include/trace/events/compaction.h __field(int, nid) nid 213 include/trace/events/compaction.h __entry->nid = zone_to_nid(zone); nid 220 include/trace/events/compaction.h __entry->nid, nid 251 include/trace/events/compaction.h __field(int, nid) nid 260 include/trace/events/compaction.h __entry->nid = zone_to_nid(zone); nid 269 include/trace/events/compaction.h __entry->nid, nid 300 include/trace/events/compaction.h TP_PROTO(int nid), nid 302 include/trace/events/compaction.h TP_ARGS(nid), nid 305 include/trace/events/compaction.h __field(int, nid) nid 309 include/trace/events/compaction.h __entry->nid = nid; nid 312 include/trace/events/compaction.h TP_printk("nid=%d", __entry->nid) nid 317 include/trace/events/compaction.h TP_PROTO(int nid, int order, enum zone_type classzone_idx), nid 319 include/trace/events/compaction.h TP_ARGS(nid, order, classzone_idx), nid 322 include/trace/events/compaction.h __field(int, nid) nid 328 include/trace/events/compaction.h __entry->nid = nid; nid 334 include/trace/events/compaction.h __entry->nid, nid 341 include/trace/events/compaction.h TP_PROTO(int nid, int order, enum zone_type classzone_idx), nid 343 include/trace/events/compaction.h TP_ARGS(nid, order, classzone_idx) nid 348 include/trace/events/compaction.h TP_PROTO(int nid, int order, enum zone_type classzone_idx), nid 350 include/trace/events/compaction.h TP_ARGS(nid, order, classzone_idx) nid 14 include/trace/events/erofs.h #define show_dev_nid(entry) show_dev(entry->dev), entry->nid nid 37 include/trace/events/erofs.h __field(erofs_nid_t, nid ) nid 44 include/trace/events/erofs.h __entry->nid = EROFS_I(dir)->nid; nid 61 include/trace/events/erofs.h __field(erofs_nid_t, nid ) nid 69 include/trace/events/erofs.h __entry->nid = EROFS_I(inode)->nid; nid 70 include/trace/events/erofs.h __entry->blkaddr = erofs_blknr(iloc(EROFS_I_SB(inode), __entry->nid)); nid 71 include/trace/events/erofs.h __entry->ofs = erofs_blkoff(iloc(EROFS_I_SB(inode), __entry->nid)); nid 89 include/trace/events/erofs.h __field(erofs_nid_t, nid ) nid 98 include/trace/events/erofs.h __entry->nid = EROFS_I(page->mapping->host)->nid; nid 123 include/trace/events/erofs.h __field(erofs_nid_t, nid ) nid 131 include/trace/events/erofs.h __entry->nid = EROFS_I(inode)->nid; nid 152 include/trace/events/erofs.h __field( erofs_nid_t, nid ) nid 160 include/trace/events/erofs.h __entry->nid = EROFS_I(inode)->nid; nid 194 include/trace/events/erofs.h __field( erofs_nid_t, nid ) nid 206 include/trace/events/erofs.h __entry->nid = EROFS_I(inode)->nid; nid 245 include/trace/events/erofs.h __field( erofs_nid_t, nid ) nid 250 include/trace/events/erofs.h __entry->nid = EROFS_I(inode)->nid; nid 361 include/trace/events/f2fs.h TP_PROTO(struct inode *inode, nid_t nid, unsigned int ofs, int free), nid 363 include/trace/events/f2fs.h TP_ARGS(inode, nid, ofs, free), nid 368 include/trace/events/f2fs.h __field(nid_t, nid) nid 376 include/trace/events/f2fs.h __entry->nid = nid; nid 383 include/trace/events/f2fs.h (unsigned int)__entry->nid, nid 448 include/trace/events/f2fs.h TP_PROTO(struct inode *inode, nid_t nid, block_t blk_addr), nid 450 include/trace/events/f2fs.h TP_ARGS(inode, nid, blk_addr), nid 455 include/trace/events/f2fs.h __field(nid_t, nid) nid 462 include/trace/events/f2fs.h __entry->nid = nid; nid 468 include/trace/events/f2fs.h (unsigned int)__entry->nid, nid 474 include/trace/events/f2fs.h TP_PROTO(struct inode *inode, nid_t nid, block_t blk_addr), nid 476 include/trace/events/f2fs.h TP_ARGS(inode, nid, blk_addr) nid 488 include/trace/events/f2fs.h TP_PROTO(struct inode *inode, nid_t nid, block_t blk_addr), nid 490 include/trace/events/f2fs.h TP_ARGS(inode, nid, blk_addr) nid 495 include/trace/events/f2fs.h TP_PROTO(struct inode *inode, nid_t *nid, int depth, int err), nid 497 include/trace/events/f2fs.h TP_ARGS(inode, nid, depth, err), nid 502 include/trace/events/f2fs.h __field(nid_t, nid[3]) nid 510 include/trace/events/f2fs.h __entry->nid[0] = nid[0]; nid 511 include/trace/events/f2fs.h __entry->nid[1] = nid[1]; nid 512 include/trace/events/f2fs.h __entry->nid[2] = nid[2]; nid 520 include/trace/events/f2fs.h (unsigned int)__entry->nid[0], nid 521 include/trace/events/f2fs.h (unsigned int)__entry->nid[1], nid 522 include/trace/events/f2fs.h (unsigned int)__entry->nid[2], nid 977 include/trace/events/f2fs.h TP_PROTO(struct inode *inode, nid_t nid, unsigned int ofs_in_node, nid 980 include/trace/events/f2fs.h TP_ARGS(inode, nid, ofs_in_node, count), nid 984 include/trace/events/f2fs.h __field(nid_t, nid) nid 991 include/trace/events/f2fs.h __entry->nid = nid; nid 998 include/trace/events/f2fs.h (unsigned int)__entry->nid, nid 37 include/trace/events/vmscan.h TP_PROTO(int nid), nid 39 include/trace/events/vmscan.h TP_ARGS(nid), nid 42 include/trace/events/vmscan.h __field( int, nid ) nid 46 include/trace/events/vmscan.h __entry->nid = nid; nid 49 include/trace/events/vmscan.h TP_printk("nid=%d", __entry->nid) nid 54 include/trace/events/vmscan.h TP_PROTO(int nid, int zid, int order), nid 56 include/trace/events/vmscan.h TP_ARGS(nid, zid, order), nid 59 include/trace/events/vmscan.h __field( int, nid ) nid 65 include/trace/events/vmscan.h __entry->nid = nid; nid 71 include/trace/events/vmscan.h __entry->nid, nid 77 include/trace/events/vmscan.h TP_PROTO(int nid, int zid, int order, gfp_t gfp_flags), nid 79 include/trace/events/vmscan.h TP_ARGS(nid, zid, order, gfp_flags), nid 82 include/trace/events/vmscan.h __field( int, nid ) nid 89 include/trace/events/vmscan.h __entry->nid = nid; nid 96 include/trace/events/vmscan.h __entry->nid, nid 197 include/trace/events/vmscan.h __field(int, nid) nid 209 include/trace/events/vmscan.h __entry->nid = sc->nid; nid 221 include/trace/events/vmscan.h __entry->nid, nid 231 include/trace/events/vmscan.h TP_PROTO(struct shrinker *shr, int nid, int shrinker_retval, nid 234 include/trace/events/vmscan.h TP_ARGS(shr, nid, shrinker_retval, unused_scan_cnt, new_scan_cnt, nid 239 include/trace/events/vmscan.h __field(int, nid) nid 249 include/trace/events/vmscan.h __entry->nid = nid; nid 260 include/trace/events/vmscan.h __entry->nid, nid 337 include/trace/events/vmscan.h TP_PROTO(int nid, nid 341 include/trace/events/vmscan.h TP_ARGS(nid, nr_scanned, nr_reclaimed, stat, priority, file), nid 344 include/trace/events/vmscan.h __field(int, nid) nid 360 include/trace/events/vmscan.h __entry->nid = nid; nid 376 include/trace/events/vmscan.h __entry->nid, nid 388 include/trace/events/vmscan.h TP_PROTO(int nid, unsigned long nr_taken, nid 392 include/trace/events/vmscan.h TP_ARGS(nid, nr_taken, nr_active, nr_deactivated, nr_referenced, priority, file), nid 395 include/trace/events/vmscan.h __field(int, nid) nid 405 include/trace/events/vmscan.h __entry->nid = nid; nid 415 include/trace/events/vmscan.h __entry->nid, nid 424 include/trace/events/vmscan.h TP_PROTO(int nid, int reclaim_idx, nid 429 include/trace/events/vmscan.h TP_ARGS(nid, reclaim_idx, total_inactive, inactive, total_active, active, ratio, file), nid 432 include/trace/events/vmscan.h __field(int, nid) nid 443 include/trace/events/vmscan.h __entry->nid = nid; nid 455 include/trace/events/vmscan.h __entry->nid, nid 465 include/trace/events/vmscan.h TP_PROTO(int nid, int order, gfp_t gfp_flags), nid 467 include/trace/events/vmscan.h TP_ARGS(nid, order, gfp_flags), nid 470 include/trace/events/vmscan.h __field(int, nid) nid 476 include/trace/events/vmscan.h __entry->nid = nid; nid 482 include/trace/events/vmscan.h __entry->nid, nid 2028 kernel/sched/core.c int nid = cpu_to_node(cpu); nid 2038 kernel/sched/core.c if (nid != -1) { nid 2039 kernel/sched/core.c nodemask = cpumask_of_node(nid); nid 6145 kernel/sched/core.c void sched_setnuma(struct task_struct *p, int nid) nid 6160 kernel/sched/core.c p->numa_preferred_nid = nid; nid 1231 kernel/sched/fair.c static inline int task_faults_idx(enum numa_faults_stats s, int nid, int priv) nid 1233 kernel/sched/fair.c return NR_NUMA_HINT_FAULT_TYPES * (s * nr_node_ids + nid) + priv; nid 1236 kernel/sched/fair.c static inline unsigned long task_faults(struct task_struct *p, int nid) nid 1241 kernel/sched/fair.c return p->numa_faults[task_faults_idx(NUMA_MEM, nid, 0)] + nid 1242 kernel/sched/fair.c p->numa_faults[task_faults_idx(NUMA_MEM, nid, 1)]; nid 1245 kernel/sched/fair.c static inline unsigned long group_faults(struct task_struct *p, int nid) nid 1252 kernel/sched/fair.c return ng->faults[task_faults_idx(NUMA_MEM, nid, 0)] + nid 1253 kernel/sched/fair.c ng->faults[task_faults_idx(NUMA_MEM, nid, 1)]; nid 1256 kernel/sched/fair.c static inline unsigned long group_faults_cpu(struct numa_group *group, int nid) nid 1258 kernel/sched/fair.c return group->faults_cpu[task_faults_idx(NUMA_MEM, nid, 0)] + nid 1259 kernel/sched/fair.c group->faults_cpu[task_faults_idx(NUMA_MEM, nid, 1)]; nid 1293 kernel/sched/fair.c static bool numa_is_active_node(int nid, struct numa_group *ng) nid 1295 kernel/sched/fair.c return group_faults_cpu(ng, nid) * ACTIVE_NODE_FRACTION > ng->max_faults_cpu; nid 1299 kernel/sched/fair.c static unsigned long score_nearby_nodes(struct task_struct *p, int nid, nid 1318 kernel/sched/fair.c int dist = node_distance(nid, node); nid 1324 kernel/sched/fair.c if (dist == sched_max_numa_distance || node == nid) nid 1369 kernel/sched/fair.c static inline unsigned long task_weight(struct task_struct *p, int nid, nid 1382 kernel/sched/fair.c faults = task_faults(p, nid); nid 1383 kernel/sched/fair.c faults += score_nearby_nodes(p, nid, dist, true); nid 1388 kernel/sched/fair.c static inline unsigned long group_weight(struct task_struct *p, int nid, nid 1402 kernel/sched/fair.c faults = group_faults(p, nid); nid 1403 kernel/sched/fair.c faults += score_nearby_nodes(p, nid, dist, false); nid 1490 kernel/sched/fair.c static void update_numa_stats(struct numa_stats *ns, int nid) nid 1495 kernel/sched/fair.c for_each_cpu(cpu, cpumask_of_node(nid)) { nid 1756 kernel/sched/fair.c int nid, ret, dist; nid 1804 kernel/sched/fair.c for_each_online_node(nid) { nid 1805 kernel/sched/fair.c if (nid == env.src_nid || nid == p->numa_preferred_nid) nid 1816 kernel/sched/fair.c taskimp = task_weight(p, nid, dist) - taskweight; nid 1817 kernel/sched/fair.c groupimp = group_weight(p, nid, dist) - groupweight; nid 1822 kernel/sched/fair.c env.dst_nid = nid; nid 1838 kernel/sched/fair.c nid = env.src_nid; nid 1840 kernel/sched/fair.c nid = cpu_to_node(env.best_cpu); nid 1842 kernel/sched/fair.c if (nid != p->numa_preferred_nid) nid 1843 kernel/sched/fair.c sched_setnuma(p, nid); nid 1898 kernel/sched/fair.c int nid, active_nodes = 0; nid 1900 kernel/sched/fair.c for_each_online_node(nid) { nid 1901 kernel/sched/fair.c faults = group_faults_cpu(numa_group, nid); nid 1906 kernel/sched/fair.c for_each_online_node(nid) { nid 1907 kernel/sched/fair.c faults = group_faults_cpu(numa_group, nid); nid 2040 kernel/sched/fair.c static int preferred_group_nid(struct task_struct *p, int nid) nid 2047 kernel/sched/fair.c return nid; nid 2056 kernel/sched/fair.c int node, max_node = nid; nid 2112 kernel/sched/fair.c nid = a; nid 2120 kernel/sched/fair.c return nid; nid 2125 kernel/sched/fair.c int seq, nid, max_nid = NUMA_NO_NODE; nid 2156 kernel/sched/fair.c for_each_online_node(nid) { nid 2165 kernel/sched/fair.c mem_idx = task_faults_idx(NUMA_MEM, nid, priv); nid 2166 kernel/sched/fair.c membuf_idx = task_faults_idx(NUMA_MEMBUF, nid, priv); nid 2167 kernel/sched/fair.c cpu_idx = task_faults_idx(NUMA_CPU, nid, priv); nid 2168 kernel/sched/fair.c cpubuf_idx = task_faults_idx(NUMA_CPUBUF, nid, priv); nid 2210 kernel/sched/fair.c max_nid = nid; nid 2214 kernel/sched/fair.c max_nid = nid; nid 151 lib/genalloc.c struct gen_pool *gen_pool_create(int min_alloc_order, int nid) nid 155 lib/genalloc.c pool = kmalloc_node(sizeof(struct gen_pool), GFP_KERNEL, nid); nid 183 lib/genalloc.c size_t size, int nid, void *owner) nid 190 lib/genalloc.c chunk = vzalloc_node(nbytes, nid); nid 822 lib/genalloc.c int nid, const char *name) nid 841 lib/genalloc.c pool = gen_pool_create(min_alloc_order, nid); nid 2409 mm/compaction.c static void compact_node(int nid) nid 2411 mm/compaction.c pg_data_t *pgdat = NODE_DATA(nid); nid 2441 mm/compaction.c int nid; nid 2446 mm/compaction.c for_each_online_node(nid) nid 2447 mm/compaction.c compact_node(nid); nid 2471 mm/compaction.c int nid = dev->id; nid 2473 mm/compaction.c if (nid >= 0 && nid < nr_node_ids && node_online(nid)) { nid 2477 mm/compaction.c compact_node(nid); nid 2662 mm/compaction.c int kcompactd_run(int nid) nid 2664 mm/compaction.c pg_data_t *pgdat = NODE_DATA(nid); nid 2670 mm/compaction.c pgdat->kcompactd = kthread_run(kcompactd, pgdat, "kcompactd%d", nid); nid 2672 mm/compaction.c pr_err("Failed to start kcompactd on node %d\n", nid); nid 2683 mm/compaction.c void kcompactd_stop(int nid) nid 2685 mm/compaction.c struct task_struct *kcompactd = NODE_DATA(nid)->kcompactd; nid 2689 mm/compaction.c NODE_DATA(nid)->kcompactd = NULL; nid 2701 mm/compaction.c int nid; nid 2703 mm/compaction.c for_each_node_state(nid, N_MEMORY) { nid 2704 mm/compaction.c pg_data_t *pgdat = NODE_DATA(nid); nid 2718 mm/compaction.c int nid; nid 2729 mm/compaction.c for_each_node_state(nid, N_MEMORY) nid 2730 mm/compaction.c kcompactd_run(nid); nid 1403 mm/gup.c int nid = page_to_nid(page); nid 1423 mm/gup.c return alloc_migrate_huge_page(h, gfp_mask, nid, NULL); nid 1438 mm/gup.c thp = __alloc_pages_node(nid, thp_gfpmask, HPAGE_PMD_ORDER); nid 1445 mm/gup.c return __alloc_pages_node(nid, gfp_mask, 0); nid 2891 mm/huge_memory.c struct pglist_data *pgdata = NODE_DATA(sc->nid); nid 2904 mm/huge_memory.c struct pglist_data *pgdata = NODE_DATA(sc->nid); nid 868 mm/hugetlb.c int nid = page_to_nid(page); nid 869 mm/hugetlb.c list_move(&page->lru, &h->hugepage_freelists[nid]); nid 871 mm/hugetlb.c h->free_huge_pages_node[nid]++; nid 874 mm/hugetlb.c static struct page *dequeue_huge_page_node_exact(struct hstate *h, int nid) nid 878 mm/hugetlb.c list_for_each_entry(page, &h->hugepage_freelists[nid], lru) nid 885 mm/hugetlb.c if (&h->hugepage_freelists[nid] == &page->lru) nid 890 mm/hugetlb.c h->free_huge_pages_node[nid]--; nid 894 mm/hugetlb.c static struct page *dequeue_huge_page_nodemask(struct hstate *h, gfp_t gfp_mask, int nid, nid 903 mm/hugetlb.c zonelist = node_zonelist(nid, gfp_mask); nid 948 mm/hugetlb.c int nid; nid 964 mm/hugetlb.c nid = huge_node(vma, address, gfp_mask, &mpol, &nodemask); nid 965 mm/hugetlb.c page = dequeue_huge_page_nodemask(h, gfp_mask, nid, nodemask); nid 985 mm/hugetlb.c static int next_node_allowed(int nid, nodemask_t *nodes_allowed) nid 987 mm/hugetlb.c nid = next_node_in(nid, *nodes_allowed); nid 988 mm/hugetlb.c VM_BUG_ON(nid >= MAX_NUMNODES); nid 990 mm/hugetlb.c return nid; nid 993 mm/hugetlb.c static int get_valid_node_allowed(int nid, nodemask_t *nodes_allowed) nid 995 mm/hugetlb.c if (!node_isset(nid, *nodes_allowed)) nid 996 mm/hugetlb.c nid = next_node_allowed(nid, nodes_allowed); nid 997 mm/hugetlb.c return nid; nid 1009 mm/hugetlb.c int nid; nid 1013 mm/hugetlb.c nid = get_valid_node_allowed(h->next_nid_to_alloc, nodes_allowed); nid 1014 mm/hugetlb.c h->next_nid_to_alloc = next_node_allowed(nid, nodes_allowed); nid 1016 mm/hugetlb.c return nid; nid 1027 mm/hugetlb.c int nid; nid 1031 mm/hugetlb.c nid = get_valid_node_allowed(h->next_nid_to_free, nodes_allowed); nid 1032 mm/hugetlb.c h->next_nid_to_free = next_node_allowed(nid, nodes_allowed); nid 1034 mm/hugetlb.c return nid; nid 1116 mm/hugetlb.c int nid, nodemask_t *nodemask) nid 1125 mm/hugetlb.c zonelist = node_zonelist(nid, gfp_mask); nid 1154 mm/hugetlb.c static void prep_new_huge_page(struct hstate *h, struct page *page, int nid); nid 1158 mm/hugetlb.c int nid, nodemask_t *nodemask) nid 1166 mm/hugetlb.c int nid, nodemask_t *nodemask) nid 1266 mm/hugetlb.c int nid = page_to_nid(page); nid 1309 mm/hugetlb.c } else if (h->surplus_huge_pages_node[nid]) { nid 1314 mm/hugetlb.c h->surplus_huge_pages_node[nid]--; nid 1370 mm/hugetlb.c static void prep_new_huge_page(struct hstate *h, struct page *page, int nid) nid 1377 mm/hugetlb.c h->nr_huge_pages_node[nid]++; nid 1456 mm/hugetlb.c gfp_t gfp_mask, int nid, nodemask_t *nmask, nid 1470 mm/hugetlb.c if (node_alloc_noretry && node_isset(nid, *node_alloc_noretry)) nid 1475 mm/hugetlb.c if (nid == NUMA_NO_NODE) nid 1476 mm/hugetlb.c nid = numa_mem_id(); nid 1477 mm/hugetlb.c page = __alloc_pages_nodemask(gfp_mask, order, nid, nmask); nid 1489 mm/hugetlb.c node_clear(nid, *node_alloc_noretry); nid 1497 mm/hugetlb.c node_set(nid, *node_alloc_noretry); nid 1507 mm/hugetlb.c gfp_t gfp_mask, int nid, nodemask_t *nmask, nid 1513 mm/hugetlb.c page = alloc_gigantic_page(h, gfp_mask, nid, nmask); nid 1516 mm/hugetlb.c nid, nmask, node_alloc_noretry); nid 1618 mm/hugetlb.c int nid = page_to_nid(head); nid 1631 mm/hugetlb.c h->free_huge_pages_node[nid]--; nid 1672 mm/hugetlb.c int nid, nodemask_t *nmask) nid 1684 mm/hugetlb.c page = alloc_fresh_huge_page(h, gfp_mask, nid, nmask, NULL); nid 1713 mm/hugetlb.c int nid, nodemask_t *nmask) nid 1720 mm/hugetlb.c page = alloc_fresh_huge_page(h, gfp_mask, nid, nmask, NULL); nid 1743 mm/hugetlb.c int nid; nid 1746 mm/hugetlb.c nid = huge_node(vma, addr, gfp_mask, &mpol, &nodemask); nid 1747 mm/hugetlb.c page = alloc_surplus_huge_page(h, gfp_mask, nid, nodemask); nid 1754 mm/hugetlb.c struct page *alloc_huge_page_node(struct hstate *h, int nid) nid 1759 mm/hugetlb.c if (nid != NUMA_NO_NODE) nid 1764 mm/hugetlb.c page = dequeue_huge_page_nodemask(h, gfp_mask, nid, NULL); nid 1768 mm/hugetlb.c page = alloc_migrate_huge_page(h, gfp_mask, nid, NULL); nid 2424 mm/hugetlb.c static int set_max_huge_pages(struct hstate *h, unsigned long count, int nid, nid 2448 mm/hugetlb.c if (nid != NUMA_NO_NODE) { nid 2451 mm/hugetlb.c count += h->nr_huge_pages - h->nr_huge_pages_node[nid]; nid 2583 mm/hugetlb.c int nid; nid 2585 mm/hugetlb.c h = kobj_to_hstate(kobj, &nid); nid 2586 mm/hugetlb.c if (nid == NUMA_NO_NODE) nid 2589 mm/hugetlb.c nr_huge_pages = h->nr_huge_pages_node[nid]; nid 2595 mm/hugetlb.c struct hstate *h, int nid, nid 2604 mm/hugetlb.c if (nid == NUMA_NO_NODE) { nid 2618 mm/hugetlb.c init_nodemask_of_node(&nodes_allowed, nid); nid 2622 mm/hugetlb.c err = set_max_huge_pages(h, count, nid, n_mask); nid 2633 mm/hugetlb.c int nid; nid 2640 mm/hugetlb.c h = kobj_to_hstate(kobj, &nid); nid 2641 mm/hugetlb.c return __nr_hugepages_store_common(obey_mempolicy, h, nid, count, len); nid 2712 mm/hugetlb.c int nid; nid 2714 mm/hugetlb.c h = kobj_to_hstate(kobj, &nid); nid 2715 mm/hugetlb.c if (nid == NUMA_NO_NODE) nid 2718 mm/hugetlb.c free_huge_pages = h->free_huge_pages_node[nid]; nid 2737 mm/hugetlb.c int nid; nid 2739 mm/hugetlb.c h = kobj_to_hstate(kobj, &nid); nid 2740 mm/hugetlb.c if (nid == NUMA_NO_NODE) nid 2743 mm/hugetlb.c surplus_huge_pages = h->surplus_huge_pages_node[nid]; nid 2835 mm/hugetlb.c int nid; nid 2837 mm/hugetlb.c for (nid = 0; nid < nr_node_ids; nid++) { nid 2838 mm/hugetlb.c struct node_hstate *nhs = &node_hstates[nid]; nid 2843 mm/hugetlb.c *nidp = nid; nid 2915 mm/hugetlb.c int nid; nid 2917 mm/hugetlb.c for_each_node_state(nid, N_MEMORY) { nid 2918 mm/hugetlb.c struct node *node = node_devices[nid]; nid 2919 mm/hugetlb.c if (node->dev.id == nid) nid 3189 mm/hugetlb.c int hugetlb_report_node_meminfo(int nid, char *buf) nid 3198 mm/hugetlb.c nid, h->nr_huge_pages_node[nid], nid 3199 mm/hugetlb.c nid, h->free_huge_pages_node[nid], nid 3200 mm/hugetlb.c nid, h->surplus_huge_pages_node[nid]); nid 3206 mm/hugetlb.c int nid; nid 3211 mm/hugetlb.c for_each_node_state(nid, N_MEMORY) nid 3214 mm/hugetlb.c nid, nid 3215 mm/hugetlb.c h->nr_huge_pages_node[nid], nid 3216 mm/hugetlb.c h->free_huge_pages_node[nid], nid 3217 mm/hugetlb.c h->surplus_huge_pages_node[nid], nid 707 mm/khugepaged.c static bool khugepaged_scan_abort(int nid) nid 719 mm/khugepaged.c if (khugepaged_node_load[nid]) nid 725 mm/khugepaged.c if (node_distance(nid, i) > node_reclaim_distance) nid 741 mm/khugepaged.c int nid, target_node = 0, max_value = 0; nid 744 mm/khugepaged.c for (nid = 0; nid < MAX_NUMNODES; nid++) nid 745 mm/khugepaged.c if (khugepaged_node_load[nid] > max_value) { nid 746 mm/khugepaged.c max_value = khugepaged_node_load[nid]; nid 747 mm/khugepaged.c target_node = nid; nid 752 mm/khugepaged.c for (nid = last_khugepaged_target_node + 1; nid < MAX_NUMNODES; nid 753 mm/khugepaged.c nid++) nid 754 mm/khugepaged.c if (max_value == khugepaged_node_load[nid]) { nid 755 mm/khugepaged.c target_node = nid; nid 179 mm/ksm.c int nid; nid 200 mm/ksm.c int nid; /* when node of unstable tree */ nid 371 mm/ksm.c rb_erase(&dup->node, root_stable_tree + NUMA(dup->nid)); nid 600 mm/ksm.c chain->nid = NUMA_NO_NODE; /* debug */ nid 811 mm/ksm.c root_unstable_tree + NUMA(rmap_item->nid)); nid 941 mm/ksm.c int nid; nid 944 mm/ksm.c for (nid = 0; nid < ksm_nr_node_ids; nid++) { nid 945 mm/ksm.c while (root_stable_tree[nid].rb_node) { nid 946 mm/ksm.c stable_node = rb_entry(root_stable_tree[nid].rb_node, nid 949 mm/ksm.c root_stable_tree + nid)) { nid 1553 mm/ksm.c int nid; nid 1567 mm/ksm.c nid = get_kpfn_nid(page_to_pfn(page)); nid 1568 mm/ksm.c root = root_stable_tree + nid; nid 1690 mm/ksm.c NUMA(stable_node_dup->nid)) { nid 1702 mm/ksm.c DO_NUMA(page_node->nid = nid); nid 1728 mm/ksm.c DO_NUMA(page_node->nid = nid); nid 1746 mm/ksm.c DO_NUMA(page_node->nid = nid); nid 1791 mm/ksm.c DO_NUMA(page_node->nid = nid); nid 1805 mm/ksm.c int nid; nid 1814 mm/ksm.c nid = get_kpfn_nid(kpfn); nid 1815 mm/ksm.c root = root_stable_tree + nid; nid 1888 mm/ksm.c DO_NUMA(stable_node_dup->nid = nid); nid 1930 mm/ksm.c int nid; nid 1932 mm/ksm.c nid = get_kpfn_nid(page_to_pfn(page)); nid 1933 mm/ksm.c root = root_unstable_tree + nid; nid 1965 mm/ksm.c page_to_nid(tree_page) != nid) { nid 1981 mm/ksm.c DO_NUMA(rmap_item->nid = nid); nid 2050 mm/ksm.c NUMA(stable_node->nid)) { nid 2230 mm/ksm.c int nid; nid 2269 mm/ksm.c for (nid = 0; nid < ksm_nr_node_ids; nid++) nid 2270 mm/ksm.c root_unstable_tree[nid] = RB_ROOT; nid 2770 mm/ksm.c int nid; nid 2772 mm/ksm.c for (nid = 0; nid < ksm_nr_node_ids; nid++) { nid 2773 mm/ksm.c node = rb_first(root_stable_tree + nid); nid 2779 mm/ksm.c nid)) nid 2780 mm/ksm.c node = rb_first(root_stable_tree + nid); nid 127 mm/list_lru.c int nid = page_to_nid(virt_to_page(item)); nid 128 mm/list_lru.c struct list_lru_node *nlru = &lru->node[nid]; nid 138 mm/list_lru.c memcg_set_shrinker_bit(memcg, nid, nid 151 mm/list_lru.c int nid = page_to_nid(virt_to_page(item)); nid 152 mm/list_lru.c struct list_lru_node *nlru = &lru->node[nid]; nid 185 mm/list_lru.c int nid, struct mem_cgroup *memcg) nid 187 mm/list_lru.c struct list_lru_node *nlru = &lru->node[nid]; nid 200 mm/list_lru.c unsigned long list_lru_count_node(struct list_lru *lru, int nid) nid 204 mm/list_lru.c nlru = &lru->node[nid]; nid 268 mm/list_lru.c list_lru_walk_one(struct list_lru *lru, int nid, struct mem_cgroup *memcg, nid 272 mm/list_lru.c struct list_lru_node *nlru = &lru->node[nid]; nid 284 mm/list_lru.c list_lru_walk_one_irq(struct list_lru *lru, int nid, struct mem_cgroup *memcg, nid 288 mm/list_lru.c struct list_lru_node *nlru = &lru->node[nid]; nid 298 mm/list_lru.c unsigned long list_lru_walk_node(struct list_lru *lru, int nid, nid 305 mm/list_lru.c isolated += list_lru_walk_one(lru, nid, NULL, isolate, cb_arg, nid 309 mm/list_lru.c struct list_lru_node *nlru = &lru->node[nid]; nid 541 mm/list_lru.c static void memcg_drain_list_lru_node(struct list_lru *lru, int nid, nid 544 mm/list_lru.c struct list_lru_node *nlru = &lru->node[nid]; nid 562 mm/list_lru.c memcg_set_shrinker_bit(dst_memcg, nid, lru_shrinker_id(lru)); nid 191 mm/memblock.c phys_addr_t size, phys_addr_t align, int nid, nid 197 mm/memblock.c for_each_free_mem_range(i, nid, flags, &this_start, &this_end, NULL) { nid 226 mm/memblock.c phys_addr_t size, phys_addr_t align, int nid, nid 232 mm/memblock.c for_each_free_mem_range_reverse(i, nid, flags, &this_start, &this_end, nid 273 mm/memblock.c phys_addr_t end, int nid, nid 300 mm/memblock.c size, align, nid, flags); nid 318 mm/memblock.c return __memblock_find_range_top_down(start, end, size, align, nid, nid 551 mm/memblock.c int nid, nid 561 mm/memblock.c memblock_set_region_node(rgn, nid); nid 584 mm/memblock.c int nid, enum memblock_flags flags) nid 601 mm/memblock.c memblock_set_region_node(&type->regions[0], nid); nid 628 mm/memblock.c WARN_ON(nid != memblock_get_region_node(rgn)); nid 634 mm/memblock.c rbase - base, nid, nid 646 mm/memblock.c nid, flags); nid 681 mm/memblock.c int nid) nid 683 mm/memblock.c return memblock_add_range(&memblock.memory, base, size, nid, 0); nid 965 mm/memblock.c static bool should_skip_region(struct memblock_region *m, int nid, int flags) nid 970 mm/memblock.c if (nid != NUMA_NO_NODE && nid != m_nid) nid 1014 mm/memblock.c void __init_memblock __next_mem_range(u64 *idx, int nid, nid 1024 mm/memblock.c if (WARN_ONCE(nid == MAX_NUMNODES, nid 1026 mm/memblock.c nid = NUMA_NO_NODE; nid 1035 mm/memblock.c if (should_skip_region(m, nid, flags)) nid 1111 mm/memblock.c void __init_memblock __next_mem_range_rev(u64 *idx, int nid, nid 1121 mm/memblock.c if (WARN_ONCE(nid == MAX_NUMNODES, "Usage of MAX_NUMNODES is deprecated. Use NUMA_NO_NODE instead\n")) nid 1122 mm/memblock.c nid = NUMA_NO_NODE; nid 1139 mm/memblock.c if (should_skip_region(m, nid, flags)) nid 1196 mm/memblock.c void __init_memblock __next_mem_pfn_range(int *idx, int nid, nid 1208 mm/memblock.c if (nid == MAX_NUMNODES || nid == r->nid) nid 1221 mm/memblock.c *out_nid = r->nid; nid 1238 mm/memblock.c struct memblock_type *type, int nid) nid 1248 mm/memblock.c memblock_set_region_node(&type->regions[i], nid); nid 1276 mm/memblock.c int nid; nid 1280 mm/memblock.c &spa, &epa, &nid); nid 1307 mm/memblock.c &spa, &epa, &nid); nid 1345 mm/memblock.c phys_addr_t end, int nid) nid 1350 mm/memblock.c if (WARN_ONCE(nid == MAX_NUMNODES, "Usage of MAX_NUMNODES is deprecated. Use NUMA_NO_NODE instead\n")) nid 1351 mm/memblock.c nid = NUMA_NO_NODE; nid 1360 mm/memblock.c found = memblock_find_in_range_node(size, align, start, end, nid, nid 1365 mm/memblock.c if (nid != NUMA_NO_NODE) { nid 1429 mm/memblock.c phys_addr_t __init memblock_phys_alloc_try_nid(phys_addr_t size, phys_addr_t align, int nid) nid 1432 mm/memblock.c MEMBLOCK_ALLOC_ACCESSIBLE, nid); nid 1457 mm/memblock.c int nid) nid 1467 mm/memblock.c return kzalloc_node(size, GFP_NOWAIT, nid); nid 1472 mm/memblock.c alloc = memblock_alloc_range_nid(size, align, min_addr, max_addr, nid); nid 1476 mm/memblock.c alloc = memblock_alloc_range_nid(size, align, 0, max_addr, nid); nid 1506 mm/memblock.c int nid) nid 1511 mm/memblock.c __func__, (u64)size, (u64)align, nid, &min_addr, nid 1515 mm/memblock.c min_addr, max_addr, nid); nid 1542 mm/memblock.c int nid) nid 1547 mm/memblock.c __func__, (u64)size, (u64)align, nid, &min_addr, nid 1550 mm/memblock.c min_addr, max_addr, nid); nid 1762 mm/memblock.c return type->regions[mid].nid; nid 335 mm/memcontrol.c int nid; nid 339 mm/memcontrol.c for_each_node(nid) { nid 341 mm/memcontrol.c mem_cgroup_nodeinfo(memcg, nid)->shrinker_map, true); nid 354 mm/memcontrol.c rcu_assign_pointer(memcg->nodeinfo[nid]->shrinker_map, new); nid 365 mm/memcontrol.c int nid; nid 370 mm/memcontrol.c for_each_node(nid) { nid 371 mm/memcontrol.c pn = mem_cgroup_nodeinfo(memcg, nid); nid 382 mm/memcontrol.c int nid, size, ret = 0; nid 389 mm/memcontrol.c for_each_node(nid) { nid 396 mm/memcontrol.c rcu_assign_pointer(memcg->nodeinfo[nid]->shrinker_map, map); nid 433 mm/memcontrol.c void memcg_set_shrinker_bit(struct mem_cgroup *memcg, int nid, int shrinker_id) nid 439 mm/memcontrol.c map = rcu_dereference(memcg->nodeinfo[nid]->shrinker_map); nid 504 mm/memcontrol.c int nid = page_to_nid(page); nid 506 mm/memcontrol.c return memcg->nodeinfo[nid]; nid 510 mm/memcontrol.c soft_limit_tree_node(int nid) nid 512 mm/memcontrol.c return soft_limit_tree.rb_tree_per_node[nid]; nid 518 mm/memcontrol.c int nid = page_to_nid(page); nid 520 mm/memcontrol.c return soft_limit_tree.rb_tree_per_node[nid]; nid 639 mm/memcontrol.c int nid; nid 641 mm/memcontrol.c for_each_node(nid) { nid 642 mm/memcontrol.c mz = mem_cgroup_nodeinfo(memcg, nid); nid 643 mm/memcontrol.c mctz = soft_limit_tree_node(nid); nid 715 mm/memcontrol.c parent_nodeinfo(struct mem_cgroup_per_node *pn, int nid) nid 722 mm/memcontrol.c return mem_cgroup_nodeinfo(parent, nid); nid 1167 mm/memcontrol.c int nid; nid 1170 mm/memcontrol.c for_each_node(nid) { nid 1171 mm/memcontrol.c mz = mem_cgroup_nodeinfo(from, nid); nid 1624 mm/memcontrol.c int nid, bool noswap) nid 1626 mm/memcontrol.c struct lruvec *lruvec = mem_cgroup_lruvec(NODE_DATA(nid), memcg); nid 1648 mm/memcontrol.c int nid; nid 1661 mm/memcontrol.c for_each_node_mask(nid, node_states[N_MEMORY]) { nid 1663 mm/memcontrol.c if (!test_mem_cgroup_node_reclaimable(memcg, nid, false)) nid 1664 mm/memcontrol.c node_clear(nid, memcg->scan_nodes); nid 2318 mm/memcontrol.c int nid; nid 2329 mm/memcontrol.c for_each_node(nid) { nid 2332 mm/memcontrol.c pn = mem_cgroup_nodeinfo(memcg, nid); nid 2337 mm/memcontrol.c } while ((pn = parent_nodeinfo(pn, nid))); nid 3798 mm/memcontrol.c int nid, unsigned int lru_mask) nid 3800 mm/memcontrol.c struct lruvec *lruvec = mem_cgroup_lruvec(NODE_DATA(nid), memcg); nid 3804 mm/memcontrol.c VM_BUG_ON((unsigned)nid >= nr_node_ids); nid 3842 mm/memcontrol.c int nid; nid 3849 mm/memcontrol.c for_each_node_state(nid, N_MEMORY) { nid 3850 mm/memcontrol.c nr = mem_cgroup_node_nr_lru_pages(memcg, nid, nid 3852 mm/memcontrol.c seq_printf(m, " N%d=%lu", nid, nr); nid 3864 mm/memcontrol.c for_each_node_state(nid, N_MEMORY) { nid 3868 mm/memcontrol.c iter, nid, stat->lru_mask); nid 3869 mm/memcontrol.c seq_printf(m, " N%d=%lu", nid, nr); nid 1615 mm/memory-failure.c int nid = page_to_nid(p); nid 1617 mm/memory-failure.c return new_page_nodemask(p, nid, &node_states[N_MEMORY]); nid 287 mm/memory_hotplug.c int __ref __add_pages(int nid, unsigned long pfn, unsigned long nr_pages, nid 317 mm/memory_hotplug.c err = sparse_add_section(nid, pfn, pfns, altmap); nid 329 mm/memory_hotplug.c static unsigned long find_smallest_section_pfn(int nid, struct zone *zone, nid 337 mm/memory_hotplug.c if (unlikely(pfn_to_nid(start_pfn) != nid)) nid 350 mm/memory_hotplug.c static unsigned long find_biggest_section_pfn(int nid, struct zone *zone, nid 362 mm/memory_hotplug.c if (unlikely(pfn_to_nid(pfn) != nid)) nid 381 mm/memory_hotplug.c int nid = zone_to_nid(zone); nid 391 mm/memory_hotplug.c pfn = find_smallest_section_pfn(nid, zone, end_pfn, nid 404 mm/memory_hotplug.c pfn = find_biggest_section_pfn(nid, zone, zone_start_pfn, nid 647 mm/memory_hotplug.c int nid = zone_to_nid(zone); nid 653 mm/memory_hotplug.c if (!node_state(nid, N_MEMORY)) nid 654 mm/memory_hotplug.c arg->status_change_nid = nid; nid 655 mm/memory_hotplug.c if (zone_idx(zone) <= ZONE_NORMAL && !node_state(nid, N_NORMAL_MEMORY)) nid 656 mm/memory_hotplug.c arg->status_change_nid_normal = nid; nid 658 mm/memory_hotplug.c if (zone_idx(zone) <= ZONE_HIGHMEM && !node_state(nid, N_HIGH_MEMORY)) nid 659 mm/memory_hotplug.c arg->status_change_nid_high = nid; nid 706 mm/memory_hotplug.c int nid = pgdat->node_id; nid 727 mm/memory_hotplug.c memmap_init_zone(nr_pages, nid, zone_idx(zone), start_pfn, nid 738 mm/memory_hotplug.c static struct zone *default_kernel_zone_for_pfn(int nid, unsigned long start_pfn, nid 741 mm/memory_hotplug.c struct pglist_data *pgdat = NODE_DATA(nid); nid 754 mm/memory_hotplug.c static inline struct zone *default_zone_for_pfn(int nid, unsigned long start_pfn, nid 757 mm/memory_hotplug.c struct zone *kernel_zone = default_kernel_zone_for_pfn(nid, start_pfn, nid 759 mm/memory_hotplug.c struct zone *movable_zone = &NODE_DATA(nid)->node_zones[ZONE_MOVABLE]; nid 778 mm/memory_hotplug.c struct zone * zone_for_pfn_range(int online_type, int nid, unsigned start_pfn, nid 782 mm/memory_hotplug.c return default_kernel_zone_for_pfn(nid, start_pfn, nr_pages); nid 785 mm/memory_hotplug.c return &NODE_DATA(nid)->node_zones[ZONE_MOVABLE]; nid 787 mm/memory_hotplug.c return default_zone_for_pfn(nid, start_pfn, nr_pages); nid 796 mm/memory_hotplug.c int nid; nid 808 mm/memory_hotplug.c nid = mem->nid; nid 812 mm/memory_hotplug.c zone = zone_for_pfn_range(online_type, nid, pfn, nr_pages); nid 851 mm/memory_hotplug.c node_states_set_node(nid, &arg); nid 859 mm/memory_hotplug.c kswapd_run(nid); nid 860 mm/memory_hotplug.c kcompactd_run(nid); nid 892 mm/memory_hotplug.c static pg_data_t __ref *hotadd_new_pgdat(int nid, u64 start) nid 897 mm/memory_hotplug.c pgdat = NODE_DATA(nid); nid 899 mm/memory_hotplug.c pgdat = arch_alloc_nodedata(nid); nid 905 mm/memory_hotplug.c arch_refresh_nodedata(nid, pgdat); nid 926 mm/memory_hotplug.c pgdat->node_id = nid; nid 930 mm/memory_hotplug.c free_area_init_core_hotplug(nid); nid 949 mm/memory_hotplug.c static void rollback_node_hotadd(int nid) nid 951 mm/memory_hotplug.c pg_data_t *pgdat = NODE_DATA(nid); nid 953 mm/memory_hotplug.c arch_refresh_nodedata(nid, NULL); nid 971 mm/memory_hotplug.c static int __try_online_node(int nid, u64 start, bool set_node_online) nid 976 mm/memory_hotplug.c if (node_online(nid)) nid 979 mm/memory_hotplug.c pgdat = hotadd_new_pgdat(nid, start); nid 981 mm/memory_hotplug.c pr_err("Cannot online node %d due to NULL pgdat\n", nid); nid 987 mm/memory_hotplug.c node_set_online(nid); nid 988 mm/memory_hotplug.c ret = register_one_node(nid); nid 998 mm/memory_hotplug.c int try_online_node(int nid) nid 1003 mm/memory_hotplug.c ret = __try_online_node(nid, 0, true); nid 1032 mm/memory_hotplug.c int __ref add_memory_resource(int nid, struct resource *res) nid 1054 mm/memory_hotplug.c memblock_add_node(start, size, nid); nid 1056 mm/memory_hotplug.c ret = __try_online_node(nid, start, false); nid 1062 mm/memory_hotplug.c ret = arch_add_memory(nid, start, size, &restrictions); nid 1069 mm/memory_hotplug.c arch_remove_memory(nid, start, size, NULL); nid 1079 mm/memory_hotplug.c node_set_online(nid); nid 1080 mm/memory_hotplug.c ret = __register_one_node(nid); nid 1085 mm/memory_hotplug.c ret = link_mem_sections(nid, PFN_DOWN(start), PFN_UP(start + size - 1)); nid 1102 mm/memory_hotplug.c rollback_node_hotadd(nid); nid 1109 mm/memory_hotplug.c int __ref __add_memory(int nid, u64 start, u64 size) nid 1118 mm/memory_hotplug.c ret = add_memory_resource(nid, res); nid 1124 mm/memory_hotplug.c int add_memory(int nid, u64 start, u64 size) nid 1129 mm/memory_hotplug.c rc = __add_memory(nid, start, size); nid 1295 mm/memory_hotplug.c int nid = page_to_nid(page); nid 1303 mm/memory_hotplug.c node_clear(nid, nmask); nid 1305 mm/memory_hotplug.c node_set(nid, nmask); nid 1307 mm/memory_hotplug.c return new_page_nodemask(page, nid, &nmask); nid 1668 mm/memory_hotplug.c int nid = *(int *)arg; nid 1675 mm/memory_hotplug.c return mem->nid == nid ? -EEXIST : 0; nid 1687 mm/memory_hotplug.c void try_offline_node(int nid) nid 1689 mm/memory_hotplug.c pg_data_t *pgdat = NODE_DATA(nid); nid 1705 mm/memory_hotplug.c rc = for_each_memory_block(&nid, check_no_memblock_for_node_cb); nid 1716 mm/memory_hotplug.c node_set_offline(nid); nid 1717 mm/memory_hotplug.c unregister_one_node(nid); nid 1741 mm/memory_hotplug.c static int __ref try_remove_memory(int nid, u64 start, u64 size) nid 1769 mm/memory_hotplug.c arch_remove_memory(nid, start, size, NULL); nid 1772 mm/memory_hotplug.c try_offline_node(nid); nid 1789 mm/memory_hotplug.c void __remove_memory(int nid, u64 start, u64 size) nid 1796 mm/memory_hotplug.c if (try_remove_memory(nid, start, size)) nid 1804 mm/memory_hotplug.c int remove_memory(int nid, u64 start, u64 size) nid 1809 mm/memory_hotplug.c rc = try_remove_memory(nid, start, size); nid 425 mm/mempolicy.c int nid = page_to_nid(page); nid 428 mm/mempolicy.c return node_isset(nid, *qp->nmask) == !(flags & MPOL_MF_INVERT); nid 1893 mm/mempolicy.c int nid; nid 1898 mm/mempolicy.c nid = first_node(pol->v.nodes); nid 1900 mm/mempolicy.c nid = next_node(nid, pol->v.nodes); nid 1901 mm/mempolicy.c return nid; nid 1945 mm/mempolicy.c int nid; nid 1951 mm/mempolicy.c nid = interleave_nid(*mpol, vma, addr, nid 1954 mm/mempolicy.c nid = policy_node(gfp_flags, *mpol, numa_node_id()); nid 1958 mm/mempolicy.c return nid; nid 1980 mm/mempolicy.c int nid; nid 1990 mm/mempolicy.c nid = numa_node_id(); nid 1992 mm/mempolicy.c nid = mempolicy->v.preferred_node; nid 1993 mm/mempolicy.c init_nodemask_of_node(mask, nid); nid 2058 mm/mempolicy.c unsigned nid) nid 2062 mm/mempolicy.c page = __alloc_pages(gfp, order, nid); nid 2066 mm/mempolicy.c if (page && page_to_nid(page) == nid) { nid 2109 mm/mempolicy.c unsigned nid; nid 2111 mm/mempolicy.c nid = interleave_nid(pol, vma, addr, PAGE_SHIFT + order); nid 2113 mm/mempolicy.c page = alloc_page_interleave(gfp, order, nid); nid 2713 mm/mempolicy.c int nid, prefer = 0; nid 2723 mm/mempolicy.c for_each_node(nid) { nid 2724 mm/mempolicy.c preferred_node_policy[nid] = (struct mempolicy) { nid 2728 mm/mempolicy.c .v = { .preferred_node = nid, }, nid 2738 mm/mempolicy.c for_each_node_state(nid, N_MEMORY) { nid 2739 mm/mempolicy.c unsigned long total_pages = node_present_pages(nid); nid 2744 mm/mempolicy.c prefer = nid; nid 2749 mm/mempolicy.c node_set(nid, interleave_nodes); nid 108 mm/memremap.c int nid; nid 119 mm/memremap.c nid = page_to_nid(first_page); nid 126 mm/memremap.c arch_remove_memory(nid, res->start, resource_size(res), nid 157 mm/memremap.c void *memremap_pages(struct dev_pagemap *pgmap, int nid) nid 252 mm/memremap.c if (nid < 0) nid 253 mm/memremap.c nid = numa_mem_id(); nid 274 mm/memremap.c error = add_pages(nid, PHYS_PFN(res->start), nid 283 mm/memremap.c error = arch_add_memory(nid, res->start, resource_size(res), nid 290 mm/memremap.c zone = &NODE_DATA(nid)->node_zones[ZONE_DEVICE]; nid 303 mm/memremap.c memmap_init_zone_device(&NODE_DATA(nid)->node_zones[ZONE_DEVICE], nid 1908 mm/migrate.c int nid = (int) data; nid 1911 mm/migrate.c newpage = __alloc_pages_node(nid, nid 28 mm/mm_init.c int nid; nid 33 mm/mm_init.c for_each_online_node(nid) { nid 34 mm/mm_init.c pg_data_t *pgdat = NODE_DATA(nid); nid 53 mm/mm_init.c listid > 0 ? "thisnode" : "general", nid, nid 20 mm/mmzone.c int nid = next_online_node(pgdat->node_id); nid 22 mm/mmzone.c if (nid == MAX_NUMNODES) nid 24 mm/mmzone.c return NODE_DATA(nid); nid 258 mm/oom_kill.c int nid; nid 289 mm/oom_kill.c for_each_node_mask(nid, *oc->nodemask) nid 290 mm/oom_kill.c oc->totalpages += node_present_pages(nid); nid 302 mm/oom_kill.c for_each_node_mask(nid, cpuset_current_mems_allowed) nid 303 mm/oom_kill.c oc->totalpages += node_present_pages(nid); nid 392 mm/page_alloc.c int nid = early_pfn_to_nid(pfn); nid 394 mm/page_alloc.c if (node_online(nid) && pfn >= NODE_DATA(nid)->first_deferred_pfn) nid 405 mm/page_alloc.c defer_init(int nid, unsigned long pfn, unsigned long end_pfn) nid 419 mm/page_alloc.c if (end_pfn < pgdat_end_pfn(NODE_DATA(nid))) nid 429 mm/page_alloc.c NODE_DATA(nid)->first_deferred_pfn = pfn; nid 442 mm/page_alloc.c static inline bool defer_init(int nid, unsigned long pfn, unsigned long end_pfn) nid 1341 mm/page_alloc.c unsigned long zone, int nid) nid 1344 mm/page_alloc.c set_page_links(page, zone, nid, pfn); nid 1362 mm/page_alloc.c int nid, zid; nid 1367 mm/page_alloc.c nid = early_pfn_to_nid(pfn); nid 1368 mm/page_alloc.c pgdat = NODE_DATA(nid); nid 1376 mm/page_alloc.c __init_single_page(pfn_to_page(pfn), pfn, zid, nid); nid 1458 mm/page_alloc.c int nid; nid 1461 mm/page_alloc.c nid = __early_pfn_to_nid(pfn, &early_pfnnid_cache); nid 1462 mm/page_alloc.c if (nid < 0) nid 1463 mm/page_alloc.c nid = first_online_node; nid 1466 mm/page_alloc.c return nid; nid 1474 mm/page_alloc.c int nid; nid 1476 mm/page_alloc.c nid = __early_pfn_to_nid(pfn, &early_pfnnid_cache); nid 1477 mm/page_alloc.c if (nid >= 0 && nid != node) nid 1662 mm/page_alloc.c int nid = zone_to_nid(zone); nid 1677 mm/page_alloc.c __init_single_page(page, pfn, zid, nid); nid 1931 mm/page_alloc.c int nid; nid 1937 mm/page_alloc.c for_each_node_state(nid, N_MEMORY) { nid 1938 mm/page_alloc.c kthread_run(deferred_init_memmap, NODE_DATA(nid), "pgdatinit%d", nid); nid 1965 mm/page_alloc.c for_each_node_state(nid, N_MEMORY) nid 1966 mm/page_alloc.c shuffle_free_memory(NODE_DATA(nid)); nid 4999 mm/page_alloc.c void * __meminit alloc_pages_exact_nid(int nid, size_t size, gfp_t gfp_mask) nid 5007 mm/page_alloc.c p = alloc_pages_node(nid, gfp_mask, order); nid 5158 mm/page_alloc.c void si_meminfo_node(struct sysinfo *val, int nid) nid 5164 mm/page_alloc.c pg_data_t *pgdat = NODE_DATA(nid); nid 5170 mm/page_alloc.c val->freeram = sum_zone_node_page_state(nid, NR_FREE_PAGES); nid 5194 mm/page_alloc.c static bool show_mem_node_skip(unsigned int flags, int nid, nodemask_t *nodemask) nid 5207 mm/page_alloc.c return !node_isset(nid, *nodemask); nid 5744 mm/page_alloc.c int nid; nid 5762 mm/page_alloc.c for_each_online_node(nid) { nid 5763 mm/page_alloc.c pg_data_t *pgdat = NODE_DATA(nid); nid 5877 mm/page_alloc.c void __meminit memmap_init_zone(unsigned long size, int nid, unsigned long zone, nid 5913 mm/page_alloc.c if (!early_pfn_in_nid(pfn, nid)) nid 5917 mm/page_alloc.c if (defer_init(nid, pfn, end_pfn)) nid 5922 mm/page_alloc.c __init_single_page(page, pfn, zone, nid); nid 5956 mm/page_alloc.c int nid = pgdat->node_id; nid 5974 mm/page_alloc.c __init_single_page(page, pfn, zone_idx, nid); nid 6028 mm/page_alloc.c void __meminit __weak memmap_init(unsigned long size, int nid, nid 6031 mm/page_alloc.c memmap_init_zone(size, nid, zone, start_pfn, MEMMAP_EARLY, NULL); nid 6239 mm/page_alloc.c int nid; nid 6244 mm/page_alloc.c nid = memblock_search_pfn_nid(pfn, &start_pfn, &end_pfn); nid 6245 mm/page_alloc.c if (nid != NUMA_NO_NODE) { nid 6248 mm/page_alloc.c state->last_nid = nid; nid 6251 mm/page_alloc.c return nid; nid 6264 mm/page_alloc.c void __init free_bootmem_with_active_regions(int nid, unsigned long max_low_pfn) nid 6269 mm/page_alloc.c for_each_mem_pfn_range(i, nid, &start_pfn, &end_pfn, &this_nid) { nid 6287 mm/page_alloc.c void __init sparse_memory_present_with_active_regions(int nid) nid 6292 mm/page_alloc.c for_each_mem_pfn_range(i, nid, &start_pfn, &end_pfn, &this_nid) nid 6307 mm/page_alloc.c void __init get_pfn_range_for_nid(unsigned int nid, nid 6316 mm/page_alloc.c for_each_mem_pfn_range(i, nid, &this_start_pfn, &this_end_pfn, NULL) { nid 6356 mm/page_alloc.c static void __init adjust_zone_range_for_zone_movable(int nid, nid 6364 mm/page_alloc.c if (zone_movable_pfn[nid]) { nid 6367 mm/page_alloc.c *zone_start_pfn = zone_movable_pfn[nid]; nid 6373 mm/page_alloc.c *zone_start_pfn < zone_movable_pfn[nid] && nid 6374 mm/page_alloc.c *zone_end_pfn > zone_movable_pfn[nid]) { nid 6375 mm/page_alloc.c *zone_end_pfn = zone_movable_pfn[nid]; nid 6378 mm/page_alloc.c } else if (*zone_start_pfn >= zone_movable_pfn[nid]) nid 6387 mm/page_alloc.c static unsigned long __init zone_spanned_pages_in_node(int nid, nid 6404 mm/page_alloc.c adjust_zone_range_for_zone_movable(nid, zone_type, nid 6424 mm/page_alloc.c unsigned long __init __absent_pages_in_range(int nid, nid 6432 mm/page_alloc.c for_each_mem_pfn_range(i, nid, &start_pfn, &end_pfn, NULL) { nid 6454 mm/page_alloc.c static unsigned long __init zone_absent_pages_in_node(int nid, nid 6472 mm/page_alloc.c adjust_zone_range_for_zone_movable(nid, zone_type, nid 6475 mm/page_alloc.c nr_absent = __absent_pages_in_range(nid, zone_start_pfn, zone_end_pfn); nid 6482 mm/page_alloc.c if (mirrored_kernelcore && zone_movable_pfn[nid]) { nid 6506 mm/page_alloc.c static inline unsigned long __init zone_spanned_pages_in_node(int nid, nid 6525 mm/page_alloc.c static inline unsigned long __init zone_absent_pages_in_node(int nid, nid 6715 mm/page_alloc.c static void __meminit zone_init_internals(struct zone *zone, enum zone_type idx, int nid, nid 6719 mm/page_alloc.c zone_set_nid(zone, nid); nid 6721 mm/page_alloc.c zone->zone_pgdat = NODE_DATA(nid); nid 6735 mm/page_alloc.c void __ref free_area_init_core_hotplug(int nid) nid 6738 mm/page_alloc.c pg_data_t *pgdat = NODE_DATA(nid); nid 6742 mm/page_alloc.c zone_init_internals(&pgdat->node_zones[z], z, nid, 0); nid 6758 mm/page_alloc.c int nid = pgdat->node_id; nid 6808 mm/page_alloc.c zone_init_internals(zone, j, nid, freesize); nid 6816 mm/page_alloc.c memmap_init(size, nid, j, zone_start_pfn); nid 6881 mm/page_alloc.c void __init free_area_init_node(int nid, unsigned long *zones_size, nid 6885 mm/page_alloc.c pg_data_t *pgdat = NODE_DATA(nid); nid 6892 mm/page_alloc.c pgdat->node_id = nid; nid 6896 mm/page_alloc.c get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); nid 6897 mm/page_alloc.c pr_info("Initmem setup node %d [mem %#018Lx-%#018Lx]\n", nid, nid 7023 mm/page_alloc.c int i, nid; nid 7025 mm/page_alloc.c for_each_mem_pfn_range(i, MAX_NUMNODES, &start, &end, &nid) { nid 7026 mm/page_alloc.c if (!start || last_nid < 0 || last_nid == nid) { nid 7027 mm/page_alloc.c last_nid = nid; nid 7050 mm/page_alloc.c static unsigned long __init find_min_pfn_for_node(int nid) nid 7056 mm/page_alloc.c for_each_mem_pfn_range(i, nid, &start_pfn, NULL, NULL) nid 7060 mm/page_alloc.c pr_warn("Could not find start_pfn for node %d\n", nid); nid 7087 mm/page_alloc.c int i, nid; nid 7089 mm/page_alloc.c for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, &nid) { nid 7094 mm/page_alloc.c node_set_state(nid, N_MEMORY); nid 7107 mm/page_alloc.c int i, nid; nid 7128 mm/page_alloc.c nid = r->nid; nid 7131 mm/page_alloc.c zone_movable_pfn[nid] = zone_movable_pfn[nid] ? nid 7132 mm/page_alloc.c min(usable_startpfn, zone_movable_pfn[nid]) : nid 7149 mm/page_alloc.c nid = r->nid; nid 7158 mm/page_alloc.c zone_movable_pfn[nid] = zone_movable_pfn[nid] ? nid 7159 mm/page_alloc.c min(usable_startpfn, zone_movable_pfn[nid]) : nid 7216 mm/page_alloc.c for_each_node_state(nid, N_MEMORY) { nid 7235 mm/page_alloc.c for_each_mem_pfn_range(i, nid, &start_pfn, &end_pfn, NULL) { nid 7238 mm/page_alloc.c start_pfn = max(start_pfn, zone_movable_pfn[nid]); nid 7262 mm/page_alloc.c zone_movable_pfn[nid] = end_pfn; nid 7276 mm/page_alloc.c zone_movable_pfn[nid] = start_pfn + size_pages; nid 7303 mm/page_alloc.c for (nid = 0; nid < MAX_NUMNODES; nid++) nid 7304 mm/page_alloc.c zone_movable_pfn[nid] = nid 7305 mm/page_alloc.c roundup(zone_movable_pfn[nid], MAX_ORDER_NR_PAGES); nid 7313 mm/page_alloc.c static void check_for_memory(pg_data_t *pgdat, int nid) nid 7321 mm/page_alloc.c node_set_state(nid, N_HIGH_MEMORY); nid 7323 mm/page_alloc.c node_set_state(nid, N_NORMAL_MEMORY); nid 7345 mm/page_alloc.c int i, nid; nid 7401 mm/page_alloc.c for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, &nid) { nid 7402 mm/page_alloc.c pr_info(" node %3d: [mem %#018Lx-%#018Lx]\n", nid, nid 7412 mm/page_alloc.c for_each_online_node(nid) { nid 7413 mm/page_alloc.c pg_data_t *pgdat = NODE_DATA(nid); nid 7414 mm/page_alloc.c free_area_init_node(nid, NULL, nid 7415 mm/page_alloc.c find_min_pfn_for_node(nid), NULL); nid 7419 mm/page_alloc.c node_set_state(nid, N_MEMORY); nid 7420 mm/page_alloc.c check_for_memory(pgdat, nid); nid 135 mm/page_ext.c static int __init alloc_node_page_ext(int nid) nid 141 mm/page_ext.c nr_pages = NODE_DATA(nid)->node_spanned_pages; nid 150 mm/page_ext.c if (!IS_ALIGNED(node_start_pfn(nid), MAX_ORDER_NR_PAGES) || nid 151 mm/page_ext.c !IS_ALIGNED(node_end_pfn(nid), MAX_ORDER_NR_PAGES)) nid 158 mm/page_ext.c MEMBLOCK_ALLOC_ACCESSIBLE, nid); nid 161 mm/page_ext.c NODE_DATA(nid)->node_page_ext = base; nid 169 mm/page_ext.c int nid, fail; nid 174 mm/page_ext.c for_each_online_node(nid) { nid 175 mm/page_ext.c fail = alloc_node_page_ext(nid); nid 205 mm/page_ext.c static void *__meminit alloc_page_ext(size_t size, int nid) nid 210 mm/page_ext.c addr = alloc_pages_exact_nid(nid, size, flags); nid 216 mm/page_ext.c addr = vzalloc_node(size, nid); nid 221 mm/page_ext.c static int __meminit init_section_page_ext(unsigned long pfn, int nid) nid 233 mm/page_ext.c base = alloc_page_ext(table_size, nid); nid 288 mm/page_ext.c int nid) nid 296 mm/page_ext.c if (nid == NUMA_NO_NODE) { nid 302 mm/page_ext.c nid = pfn_to_nid(start_pfn); nid 303 mm/page_ext.c VM_BUG_ON(!node_state(nid, N_ONLINE)); nid 309 mm/page_ext.c fail = init_section_page_ext(pfn, nid); nid 322 mm/page_ext.c unsigned long nr_pages, int nid) nid 369 mm/page_ext.c int nid; nid 374 mm/page_ext.c for_each_node_state(nid, N_MEMORY) { nid 377 mm/page_ext.c start_pfn = node_start_pfn(nid); nid 378 mm/page_ext.c end_pfn = node_end_pfn(nid); nid 395 mm/page_ext.c if (pfn_to_nid(pfn) != nid) nid 397 mm/page_ext.c if (init_section_page_ext(pfn, nid)) nid 1123 mm/slab.c int nid; nid 1125 mm/slab.c nid = mnb->status_change_nid; nid 1126 mm/slab.c if (nid < 0) nid 1132 mm/slab.c ret = init_cache_node_node(nid); nid 1137 mm/slab.c ret = drain_cache_node_node(nid); nid 1260 mm/slab.c int nid; nid 1262 mm/slab.c for_each_online_node(nid) { nid 1263 mm/slab.c init_list(kmem_cache, &init_kmem_cache_node[CACHE_CACHE + nid], nid); nid 1266 mm/slab.c &init_kmem_cache_node[SIZE_NODE + nid], nid); nid 3111 mm/slab.c int nid; nid 3127 mm/slab.c nid = zone_to_nid(zone); nid 3130 mm/slab.c get_node(cache, nid) && nid 3131 mm/slab.c get_node(cache, nid)->free_objects) { nid 3133 mm/slab.c gfp_exact_node(flags), nid); nid 3149 mm/slab.c nid = page_to_nid(page); nid 3151 mm/slab.c gfp_exact_node(flags), nid); nid 2405 mm/slub.c slab_out_of_memory(struct kmem_cache *s, gfp_t gfpflags, int nid) nid 2417 mm/slub.c nid, gfpflags, &gfpflags); nid 4134 mm/slub.c int nid = marg->status_change_nid_normal; nid 4141 mm/slub.c if (nid < 0) nid 4162 mm/slub.c s->node[nid] = n; nid 249 mm/sparse-vmemmap.c unsigned long nr_pages, int nid, struct vmem_altmap *altmap) nid 266 mm/sparse-vmemmap.c if (vmemmap_populate(start, end, nid, altmap)) nid 53 mm/sparse.c static void set_section_nid(unsigned long section_nr, int nid) nid 55 mm/sparse.c section_to_node_table[section_nr] = nid; nid 58 mm/sparse.c static inline void set_section_nid(unsigned long section_nr, int nid) nid 64 mm/sparse.c static noinline struct mem_section __ref *sparse_index_alloc(int nid) nid 71 mm/sparse.c section = kzalloc_node(array_size, GFP_KERNEL, nid); nid 74 mm/sparse.c nid); nid 77 mm/sparse.c __func__, array_size, nid); nid 83 mm/sparse.c static int __meminit sparse_index_init(unsigned long section_nr, int nid) nid 98 mm/sparse.c section = sparse_index_alloc(nid); nid 107 mm/sparse.c static inline int sparse_index_init(unsigned long section_nr, int nid) nid 145 mm/sparse.c static inline unsigned long sparse_encode_early_nid(int nid) nid 147 mm/sparse.c return (nid << SECTION_NID_SHIFT); nid 258 mm/sparse.c void __init memory_present(int nid, unsigned long start, unsigned long end) nid 281 mm/sparse.c sparse_index_init(section, nid); nid 282 mm/sparse.c set_section_nid(section, nid); nid 286 mm/sparse.c ms->section_mem_map = sparse_encode_early_nid(nid) | nid 360 mm/sparse.c int nid; nid 373 mm/sparse.c nid = early_pfn_to_nid(goal >> PAGE_SHIFT); nid 375 mm/sparse.c usage = memblock_alloc_try_nid(size, SMP_CACHE_BYTES, goal, limit, nid); nid 383 mm/sparse.c static void __init check_usemap_section_nr(int nid, nid 389 mm/sparse.c struct pglist_data *pgdat = NODE_DATA(nid); nid 411 mm/sparse.c if (usemap_nid != nid) { nid 413 mm/sparse.c nid, usemap_snr); nid 423 mm/sparse.c usemap_snr, pgdat_snr, nid); nid 433 mm/sparse.c static void __init check_usemap_section_nr(int nid, nid 452 mm/sparse.c unsigned long nr_pages, int nid, struct vmem_altmap *altmap) nid 463 mm/sparse.c MEMBLOCK_ALLOC_ACCESSIBLE, nid); nid 466 mm/sparse.c __func__, size, PAGE_SIZE, nid, &addr); nid 481 mm/sparse.c static void __init sparse_buffer_init(unsigned long size, int nid) nid 488 mm/sparse.c MEMBLOCK_ALLOC_ACCESSIBLE, nid); nid 527 mm/sparse.c static void __init sparse_init_nid(int nid, unsigned long pnum_begin, nid 535 mm/sparse.c usage = sparse_early_usemaps_alloc_pgdat_section(NODE_DATA(nid), nid 538 mm/sparse.c pr_err("%s: node[%d] usemap allocation failed", __func__, nid); nid 541 mm/sparse.c sparse_buffer_init(map_count * section_map_size(), nid); nid 549 mm/sparse.c nid, NULL); nid 552 mm/sparse.c __func__, nid); nid 556 mm/sparse.c check_usemap_section_nr(nid, usage); nid 589 mm/sparse.c int nid = sparse_early_nid(__nr_to_section(pnum_end)); nid 591 mm/sparse.c if (nid == nid_begin) { nid 597 mm/sparse.c nid_begin = nid; nid 651 mm/sparse.c unsigned long nr_pages, int nid, struct vmem_altmap *altmap) nid 653 mm/sparse.c return __populate_section_memmap(pfn, nr_pages, nid, altmap); nid 673 mm/sparse.c unsigned long nr_pages, int nid, struct vmem_altmap *altmap) nid 809 mm/sparse.c static struct page * __meminit section_activate(int nid, unsigned long pfn, nid 854 mm/sparse.c memmap = populate_section_memmap(pfn, nr_pages, nid, altmap); nid 877 mm/sparse.c int __meminit sparse_add_section(int nid, unsigned long start_pfn, nid 885 mm/sparse.c ret = sparse_index_init(section_nr, nid); nid 889 mm/sparse.c memmap = section_activate(nid, start_pfn, nr_pages, altmap); nid 900 mm/sparse.c set_section_nid(section_nr, nid); nid 660 mm/swapfile.c int nid; nid 662 mm/swapfile.c for_each_node(nid) nid 663 mm/swapfile.c plist_del(&p->avail_lists[nid], &swap_avail_heads[nid]); nid 692 mm/swapfile.c int nid; nid 695 mm/swapfile.c for_each_node(nid) { nid 696 mm/swapfile.c WARN_ON(!plist_node_empty(&p->avail_lists[nid])); nid 697 mm/swapfile.c plist_add(&p->avail_lists[nid], &swap_avail_heads[nid]); nid 2568 mm/swapfile.c int nid; nid 2573 mm/swapfile.c for_each_node(nid) { nid 2574 mm/swapfile.c if (si->avail_lists[nid].prio != 1) nid 2575 mm/swapfile.c si->avail_lists[nid].prio--; nid 3772 mm/swapfile.c int nid; nid 3781 mm/swapfile.c for_each_node(nid) nid 3782 mm/swapfile.c plist_head_init(&swap_avail_heads[nid]); nid 471 mm/vmscan.c int nid = shrinkctl->nid; nid 477 mm/vmscan.c nid = 0; nid 488 mm/vmscan.c nr = atomic_long_xchg(&shrinker->nr_deferred[nid], 0); nid 584 mm/vmscan.c &shrinker->nr_deferred[nid]); nid 586 mm/vmscan.c new_nr = atomic_long_read(&shrinker->nr_deferred[nid]); nid 588 mm/vmscan.c trace_mm_shrink_slab_end(shrinker, nid, freed, nr, new_nr, total_scan); nid 593 mm/vmscan.c static unsigned long shrink_slab_memcg(gfp_t gfp_mask, int nid, nid 606 mm/vmscan.c map = rcu_dereference_protected(memcg->nodeinfo[nid]->shrinker_map, nid 614 mm/vmscan.c .nid = nid, nid 654 mm/vmscan.c memcg_set_shrinker_bit(memcg, nid, i); nid 668 mm/vmscan.c static unsigned long shrink_slab_memcg(gfp_t gfp_mask, int nid, nid 695 mm/vmscan.c static unsigned long shrink_slab(gfp_t gfp_mask, int nid, nid 710 mm/vmscan.c return shrink_slab_memcg(gfp_mask, nid, memcg, priority); nid 718 mm/vmscan.c .nid = nid, nid 743 mm/vmscan.c void drop_slab_node(int nid) nid 753 mm/vmscan.c freed += shrink_slab(GFP_KERNEL, nid, memcg, 0); nid 760 mm/vmscan.c int nid; nid 762 mm/vmscan.c for_each_online_node(nid) nid 763 mm/vmscan.c drop_slab_node(nid); nid 2148 mm/vmscan.c int nid = -1; nid 2163 mm/vmscan.c if (nid == -1) { nid 2164 mm/vmscan.c nid = page_to_nid(page); nid 2168 mm/vmscan.c if (nid == page_to_nid(page)) { nid 2175 mm/vmscan.c NODE_DATA(nid), nid 2184 mm/vmscan.c nid = -1; nid 2189 mm/vmscan.c NODE_DATA(nid), nid 3357 mm/vmscan.c int nid; nid 3377 mm/vmscan.c nid = mem_cgroup_select_victim_node(memcg); nid 3379 mm/vmscan.c zonelist = &NODE_DATA(nid)->node_zonelists[ZONELIST_FALLBACK]; nid 4063 mm/vmscan.c int nid; nid 4065 mm/vmscan.c for_each_node_state(nid, N_MEMORY) { nid 4066 mm/vmscan.c pg_data_t *pgdat = NODE_DATA(nid); nid 4082 mm/vmscan.c int kswapd_run(int nid) nid 4084 mm/vmscan.c pg_data_t *pgdat = NODE_DATA(nid); nid 4090 mm/vmscan.c pgdat->kswapd = kthread_run(kswapd, pgdat, "kswapd%d", nid); nid 4094 mm/vmscan.c pr_err("Failed to start kswapd on node %d\n", nid); nid 4105 mm/vmscan.c void kswapd_stop(int nid) nid 4107 mm/vmscan.c struct task_struct *kswapd = NODE_DATA(nid)->kswapd; nid 4111 mm/vmscan.c NODE_DATA(nid)->kswapd = NULL; nid 4117 mm/vmscan.c int nid, ret; nid 4120 mm/vmscan.c for_each_node_state(nid, N_MEMORY) nid 4121 mm/vmscan.c kswapd_run(nid); nid 200 mm/workingset.c int memcgid, nid; nid 205 mm/workingset.c nid = entry & ((1UL << NODES_SHIFT) - 1); nid 211 mm/workingset.c *pgdat = NODE_DATA(nid); nid 429 mm/workingset.c lruvec = mem_cgroup_lruvec(NODE_DATA(sc->nid), sc->memcg); nid 437 mm/workingset.c pages = node_present_pages(sc->nid); nid 69 net/core/page_pool.c pool = kzalloc_node(sizeof(*pool), GFP_KERNEL, params->nid); nid 141 net/core/page_pool.c page = alloc_pages_node(pool->p.nid, gfp, pool->p.order); nid 124 net/qrtr/qrtr.c unsigned int nid; nid 147 net/qrtr/qrtr.c if (node->nid != QRTR_EP_NID_AUTO) nid 148 net/qrtr/qrtr.c radix_tree_delete(&qrtr_nodes, node->nid); nid 189 net/qrtr/qrtr.c hdr->dst_node_id = cpu_to_le32(node->nid); nid 215 net/qrtr/qrtr.c static struct qrtr_node *qrtr_node_lookup(unsigned int nid) nid 220 net/qrtr/qrtr.c node = radix_tree_lookup(&qrtr_nodes, nid); nid 232 net/qrtr/qrtr.c static void qrtr_node_assign(struct qrtr_node *node, unsigned int nid) nid 234 net/qrtr/qrtr.c if (node->nid != QRTR_EP_NID_AUTO || nid == QRTR_EP_NID_AUTO) nid 238 net/qrtr/qrtr.c radix_tree_insert(&qrtr_nodes, nid, node); nid 239 net/qrtr/qrtr.c node->nid = nid; nid 418 net/qrtr/qrtr.c int qrtr_endpoint_register(struct qrtr_endpoint *ep, unsigned int nid) nid 433 net/qrtr/qrtr.c node->nid = QRTR_EP_NID_AUTO; nid 436 net/qrtr/qrtr.c qrtr_node_assign(node, nid); nid 454 net/qrtr/qrtr.c struct sockaddr_qrtr src = {AF_QIPCRTR, node->nid, QRTR_PORT_CTRL}; nid 26 net/qrtr/qrtr.h int qrtr_endpoint_register(struct qrtr_endpoint *ep, unsigned int nid); nid 560 sound/core/init.c const char *nid) nid 564 sound/core/init.c while (*nid && !isalnum(*nid)) nid 565 sound/core/init.c nid++; nid 566 sound/core/init.c if (isdigit(*nid)) nid 568 sound/core/init.c while (*nid && (size_t)(id - card->id) < sizeof(card->id) - 1) { nid 569 sound/core/init.c if (isalnum(*nid)) nid 570 sound/core/init.c *id++ = *nid; nid 571 sound/core/init.c nid++; nid 580 sound/core/init.c const char *nid) nid 586 sound/core/init.c copy_valid_id_string(card, src, nid); nid 635 sound/core/init.c void snd_card_set_id(struct snd_card *card, const char *nid) nid 641 sound/core/init.c snd_card_set_id_no_lock(card, nid, nid); nid 121 sound/hda/hdac_component.c int snd_hdac_sync_audio_rate(struct hdac_device *codec, hda_nid_t nid, nid 130 sound/hda/hdac_component.c port = nid; nid 132 sound/hda/hdac_component.c port = acomp->audio_ops->pin2port(codec, nid); nid 162 sound/hda/hdac_component.c int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, int dev_id, nid 172 sound/hda/hdac_component.c port = nid; nid 174 sound/hda/hdac_component.c port = acomp->audio_ops->pin2port(codec, nid); nid 222 sound/hda/hdac_device.c static unsigned int snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid, nid 228 sound/hda/hdac_device.c if ((addr & ~0xf) || (nid & ~0x7f) || nid 231 sound/hda/hdac_device.c addr, nid, verb, parm); nid 236 sound/hda/hdac_device.c val |= (u32)nid << 20; nid 273 sound/hda/hdac_device.c int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, nid 276 sound/hda/hdac_device.c unsigned int cmd = snd_hdac_make_cmd(codec, nid, verb, parm); nid 287 sound/hda/hdac_device.c int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, nid 292 sound/hda/hdac_device.c cmd = snd_hdac_regmap_encode_verb(nid, AC_VERB_PARAMETERS) | parm; nid 306 sound/hda/hdac_device.c int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid, nid 311 sound/hda/hdac_device.c cmd = snd_hdac_regmap_encode_verb(nid, AC_VERB_PARAMETERS) | parm; nid 325 sound/hda/hdac_device.c int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid, nid 328 sound/hda/hdac_device.c unsigned int verb = (AC_VERB_PARAMETERS << 8) | (nid << 20) | parm; nid 350 sound/hda/hdac_device.c int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid, nid 355 sound/hda/hdac_device.c parm = snd_hdac_read_parm_uncached(codec, nid, AC_PAR_NODE_COUNT); nid 371 sound/hda/hdac_device.c hda_nid_t nid; nid 373 sound/hda/hdac_device.c total_nodes = snd_hdac_get_sub_nodes(codec, AC_NODE_ROOT, &nid); nid 374 sound/hda/hdac_device.c for (i = 0; i < total_nodes; i++, nid++) { nid 375 sound/hda/hdac_device.c function_id = snd_hdac_read_parm(codec, nid, nid 379 sound/hda/hdac_device.c codec->afg = nid; nid 384 sound/hda/hdac_device.c codec->mfg = nid; nid 430 sound/hda/hdac_device.c static unsigned int get_num_conns(struct hdac_device *codec, hda_nid_t nid) nid 432 sound/hda/hdac_device.c unsigned int wcaps = get_wcaps(codec, nid); nid 439 sound/hda/hdac_device.c parm = snd_hdac_read_parm(codec, nid, AC_PAR_CONNLIST_LEN); nid 458 sound/hda/hdac_device.c int snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid, nid 467 sound/hda/hdac_device.c parm = get_num_conns(codec, nid); nid 488 sound/hda/hdac_device.c err = snd_hdac_read(codec, nid, AC_VERB_GET_CONNECT_LIST, 0, nid 505 sound/hda/hdac_device.c err = snd_hdac_read(codec, nid, nid 516 sound/hda/hdac_device.c nid, i, parm); nid 781 sound/hda/hdac_device.c static unsigned int query_pcm_param(struct hdac_device *codec, hda_nid_t nid) nid 785 sound/hda/hdac_device.c if (nid != codec->afg && nid 786 sound/hda/hdac_device.c (get_wcaps(codec, nid) & AC_WCAP_FORMAT_OVRD)) nid 787 sound/hda/hdac_device.c val = snd_hdac_read_parm(codec, nid, AC_PAR_PCM); nid 795 sound/hda/hdac_device.c static unsigned int query_stream_param(struct hdac_device *codec, hda_nid_t nid) nid 797 sound/hda/hdac_device.c unsigned int streams = snd_hdac_read_parm(codec, nid, AC_PAR_STREAM); nid 819 sound/hda/hdac_device.c int snd_hdac_query_supported_pcm(struct hdac_device *codec, hda_nid_t nid, nid 824 sound/hda/hdac_device.c wcaps = get_wcaps(codec, nid); nid 825 sound/hda/hdac_device.c val = query_pcm_param(codec, nid); nid 836 sound/hda/hdac_device.c nid, val, nid 847 sound/hda/hdac_device.c streams = query_stream_param(codec, nid); nid 899 sound/hda/hdac_device.c nid, val, nid 924 sound/hda/hdac_device.c bool snd_hdac_is_supported_format(struct hdac_device *codec, hda_nid_t nid, nid 930 sound/hda/hdac_device.c val = query_pcm_param(codec, nid); nid 944 sound/hda/hdac_device.c stream = query_stream_param(codec, nid); nid 981 sound/hda/hdac_device.c static unsigned int codec_read(struct hdac_device *hdac, hda_nid_t nid, nid 984 sound/hda/hdac_device.c unsigned int cmd = snd_hdac_make_cmd(hdac, nid, verb, parm); nid 993 sound/hda/hdac_device.c static int codec_write(struct hdac_device *hdac, hda_nid_t nid, nid 996 sound/hda/hdac_device.c unsigned int cmd = snd_hdac_make_cmd(hdac, nid, verb, parm); nid 1013 sound/hda/hdac_device.c int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid, nid 1016 sound/hda/hdac_device.c return codec_read(hdac, nid, flags, verb, parm); nid 1032 sound/hda/hdac_device.c int snd_hdac_codec_write(struct hdac_device *hdac, hda_nid_t nid, nid 1035 sound/hda/hdac_device.c return codec_write(hdac, nid, flags, verb, parm); nid 1050 sound/hda/hdac_device.c hda_nid_t nid, unsigned int target_state) nid 1052 sound/hda/hdac_device.c unsigned int state = codec_read(hdac, nid, 0, nid 1072 sound/hda/hdac_device.c hda_nid_t nid, unsigned int power_state) nid 1078 sound/hda/hdac_device.c state = snd_hdac_codec_read(codec, nid, 0, nid 89 sound/hda/hdac_sysfs.c ssize_t (*show)(struct hdac_device *codec, hda_nid_t nid, nid 91 sound/hda/hdac_sysfs.c ssize_t (*store)(struct hdac_device *codec, hda_nid_t nid, nid 99 sound/hda/hdac_sysfs.c int nid; nid 102 sound/hda/hdac_sysfs.c ret = kstrtoint(kobj->name, 16, &nid); nid 106 sound/hda/hdac_sysfs.c return nid; nid 115 sound/hda/hdac_sysfs.c int nid; nid 119 sound/hda/hdac_sysfs.c nid = get_codec_nid(kobj, &codec); nid 120 sound/hda/hdac_sysfs.c if (nid < 0) nid 121 sound/hda/hdac_sysfs.c return nid; nid 122 sound/hda/hdac_sysfs.c return wid_attr->show(codec, nid, wid_attr, buf); nid 131 sound/hda/hdac_sysfs.c int nid; nid 135 sound/hda/hdac_sysfs.c nid = get_codec_nid(kobj, &codec); nid 136 sound/hda/hdac_sysfs.c if (nid < 0) nid 137 sound/hda/hdac_sysfs.c return nid; nid 138 sound/hda/hdac_sysfs.c return wid_attr->store(codec, nid, wid_attr, buf, count); nid 161 sound/hda/hdac_sysfs.c static ssize_t caps_show(struct hdac_device *codec, hda_nid_t nid, nid 164 sound/hda/hdac_sysfs.c return sprintf(buf, "0x%08x\n", get_wcaps(codec, nid)); nid 167 sound/hda/hdac_sysfs.c static ssize_t pin_caps_show(struct hdac_device *codec, hda_nid_t nid, nid 170 sound/hda/hdac_sysfs.c if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) nid 173 sound/hda/hdac_sysfs.c snd_hdac_read_parm(codec, nid, AC_PAR_PIN_CAP)); nid 176 sound/hda/hdac_sysfs.c static ssize_t pin_cfg_show(struct hdac_device *codec, hda_nid_t nid, nid 181 sound/hda/hdac_sysfs.c if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) nid 183 sound/hda/hdac_sysfs.c if (snd_hdac_read(codec, nid, AC_VERB_GET_CONFIG_DEFAULT, 0, &val)) nid 188 sound/hda/hdac_sysfs.c static bool has_pcm_cap(struct hdac_device *codec, hda_nid_t nid) nid 190 sound/hda/hdac_sysfs.c if (nid == codec->afg || nid == codec->mfg) nid 192 sound/hda/hdac_sysfs.c switch (get_wcaps_type(get_wcaps(codec, nid))) { nid 201 sound/hda/hdac_sysfs.c static ssize_t pcm_caps_show(struct hdac_device *codec, hda_nid_t nid, nid 204 sound/hda/hdac_sysfs.c if (!has_pcm_cap(codec, nid)) nid 207 sound/hda/hdac_sysfs.c snd_hdac_read_parm(codec, nid, AC_PAR_PCM)); nid 210 sound/hda/hdac_sysfs.c static ssize_t pcm_formats_show(struct hdac_device *codec, hda_nid_t nid, nid 213 sound/hda/hdac_sysfs.c if (!has_pcm_cap(codec, nid)) nid 216 sound/hda/hdac_sysfs.c snd_hdac_read_parm(codec, nid, AC_PAR_STREAM)); nid 219 sound/hda/hdac_sysfs.c static ssize_t amp_in_caps_show(struct hdac_device *codec, hda_nid_t nid, nid 222 sound/hda/hdac_sysfs.c if (nid != codec->afg && !(get_wcaps(codec, nid) & AC_WCAP_IN_AMP)) nid 225 sound/hda/hdac_sysfs.c snd_hdac_read_parm(codec, nid, AC_PAR_AMP_IN_CAP)); nid 228 sound/hda/hdac_sysfs.c static ssize_t amp_out_caps_show(struct hdac_device *codec, hda_nid_t nid, nid 231 sound/hda/hdac_sysfs.c if (nid != codec->afg && !(get_wcaps(codec, nid) & AC_WCAP_OUT_AMP)) nid 234 sound/hda/hdac_sysfs.c snd_hdac_read_parm(codec, nid, AC_PAR_AMP_OUT_CAP)); nid 237 sound/hda/hdac_sysfs.c static ssize_t power_caps_show(struct hdac_device *codec, hda_nid_t nid, nid 240 sound/hda/hdac_sysfs.c if (nid != codec->afg && !(get_wcaps(codec, nid) & AC_WCAP_POWER)) nid 243 sound/hda/hdac_sysfs.c snd_hdac_read_parm(codec, nid, AC_PAR_POWER_STATE)); nid 246 sound/hda/hdac_sysfs.c static ssize_t gpio_caps_show(struct hdac_device *codec, hda_nid_t nid, nid 250 sound/hda/hdac_sysfs.c snd_hdac_read_parm(codec, nid, AC_PAR_GPIO_CAP)); nid 253 sound/hda/hdac_sysfs.c static ssize_t connections_show(struct hdac_device *codec, hda_nid_t nid, nid 260 sound/hda/hdac_sysfs.c nconns = snd_hdac_get_connections(codec, nid, list, ARRAY_SIZE(list)); nid 338 sound/hda/hdac_sysfs.c static int add_widget_node(struct kobject *parent, hda_nid_t nid, nid 348 sound/hda/hdac_sysfs.c err = kobject_add(kobj, parent, "%02x", nid); nid 365 sound/hda/hdac_sysfs.c hda_nid_t nid; nid 380 sound/hda/hdac_sysfs.c for (i = 0, nid = codec->start_nid; i < codec->num_nodes; i++, nid++) { nid 381 sound/hda/hdac_sysfs.c err = add_widget_node(tree->root, nid, &widget_node_group, nid 427 sound/hda/hdac_sysfs.c hda_nid_t nid; nid 444 sound/hda/hdac_sysfs.c for (i = 0, nid = codec->start_nid; i < codec->num_nodes; i++, nid++) { nid 445 sound/hda/hdac_sysfs.c if (nid < start_nid || nid >= end_nid) nid 451 sound/hda/hdac_sysfs.c for (i = 0, nid = start_nid; i < num_nodes; i++, nid++) { nid 452 sound/hda/hdac_sysfs.c if (nid < codec->start_nid || nid >= codec->end_nid) nid 453 sound/hda/hdac_sysfs.c add_widget_node(tree->root, nid, &widget_node_group, nid 457 sound/hda/hdac_sysfs.c codec->widgets->nodes[nid - codec->start_nid]; nid 9 sound/hda/local.h #define get_wcaps(codec, nid) \ nid 10 sound/hda/local.h snd_hdac_read_parm(codec, nid, AC_PAR_AUDIO_WIDGET_CAP) nid 20 sound/pci/hda/hda_auto_parser.c static int is_in_nid_list(hda_nid_t nid, const hda_nid_t *list) nid 23 sound/pci/hda/hda_auto_parser.c if (*list == nid) nid 57 sound/pci/hda/hda_auto_parser.c hda_nid_t nid, int type) nid 60 sound/pci/hda/hda_auto_parser.c cfg->inputs[cfg->num_inputs].pin = nid; nid 63 sound/pci/hda/hda_auto_parser.c nid_has_volume(codec, nid, HDA_INPUT); nid 89 sound/pci/hda/hda_auto_parser.c hda_nid_t nid; nid 94 sound/pci/hda/hda_auto_parser.c nid = pins[1]; nid 96 sound/pci/hda/hda_auto_parser.c pins[2] = nid; nid 171 sound/pci/hda/hda_auto_parser.c hda_nid_t nid; nid 188 sound/pci/hda/hda_auto_parser.c for_each_hda_codec_node(nid, codec) { nid 189 sound/pci/hda/hda_auto_parser.c unsigned int wid_caps = get_wcaps(codec, nid); nid 198 sound/pci/hda/hda_auto_parser.c if (ignore_nids && is_in_nid_list(nid, ignore_nids)) nid 201 sound/pci/hda/hda_auto_parser.c def_conf = snd_hda_codec_get_pincfg(codec, nid); nid 215 sound/pci/hda/hda_auto_parser.c if (!check_pincap_validity(codec, nid, dev)) nid 225 sound/pci/hda/hda_auto_parser.c cfg->mono_out_pin = nid; nid 233 sound/pci/hda/hda_auto_parser.c nid, assoc, assoc_line_out); nid 239 sound/pci/hda/hda_auto_parser.c nid); nid 242 sound/pci/hda/hda_auto_parser.c line_out[cfg->line_outs].pin = nid; nid 252 sound/pci/hda/hda_auto_parser.c nid); nid 255 sound/pci/hda/hda_auto_parser.c speaker_out[cfg->speaker_outs].pin = nid; nid 265 sound/pci/hda/hda_auto_parser.c nid); nid 268 sound/pci/hda/hda_auto_parser.c hp_out[cfg->hp_outs].pin = nid; nid 273 sound/pci/hda/hda_auto_parser.c add_auto_cfg_input_pin(codec, cfg, nid, AUTO_PIN_MIC); nid 276 sound/pci/hda/hda_auto_parser.c add_auto_cfg_input_pin(codec, cfg, nid, AUTO_PIN_LINE_IN); nid 279 sound/pci/hda/hda_auto_parser.c add_auto_cfg_input_pin(codec, cfg, nid, AUTO_PIN_CD); nid 282 sound/pci/hda/hda_auto_parser.c add_auto_cfg_input_pin(codec, cfg, nid, AUTO_PIN_AUX); nid 289 sound/pci/hda/hda_auto_parser.c nid); nid 292 sound/pci/hda/hda_auto_parser.c cfg->dig_out_pins[cfg->dig_outs] = nid; nid 300 sound/pci/hda/hda_auto_parser.c cfg->dig_in_pin = nid; nid 587 sound/pci/hda/hda_auto_parser.c static int find_idx_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums) nid 591 sound/pci/hda/hda_auto_parser.c if (list[i] == nid) nid 597 sound/pci/hda/hda_auto_parser.c static const char *check_output_sfx(hda_nid_t nid, const hda_nid_t *pins, nid 605 sound/pci/hda/hda_auto_parser.c i = find_idx_in_nid_list(nid, pins, num_pins); nid 618 sound/pci/hda/hda_auto_parser.c static const char *check_output_pfx(struct hda_codec *codec, hda_nid_t nid) nid 620 sound/pci/hda/hda_auto_parser.c unsigned int def_conf = snd_hda_codec_get_pincfg(codec, nid); nid 633 sound/pci/hda/hda_auto_parser.c static int get_hp_label_index(struct hda_codec *codec, hda_nid_t nid, nid 638 sound/pci/hda/hda_auto_parser.c const char *pfx = check_output_pfx(codec, nid); nid 640 sound/pci/hda/hda_auto_parser.c i = find_idx_in_nid_list(nid, pins, num_pins); nid 650 sound/pci/hda/hda_auto_parser.c static int fill_audio_out_name(struct hda_codec *codec, hda_nid_t nid, nid 655 sound/pci/hda/hda_auto_parser.c unsigned int def_conf = snd_hda_codec_get_pincfg(codec, nid); nid 662 sound/pci/hda/hda_auto_parser.c pfx = check_output_pfx(codec, nid); nid 666 sound/pci/hda/hda_auto_parser.c sfx = check_output_sfx(nid, cfg->line_out_pins, cfg->line_outs, nid 669 sound/pci/hda/hda_auto_parser.c sfx = check_output_sfx(nid, cfg->speaker_pins, cfg->speaker_outs, nid 673 sound/pci/hda/hda_auto_parser.c int idx = get_hp_label_index(codec, nid, cfg->hp_pins, nid 706 sound/pci/hda/hda_auto_parser.c int snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid, nid 710 sound/pci/hda/hda_auto_parser.c unsigned int def_conf = snd_hda_codec_get_pincfg(codec, nid); nid 722 sound/pci/hda/hda_auto_parser.c return fill_audio_out_name(codec, nid, cfg, "Line Out", nid 725 sound/pci/hda/hda_auto_parser.c return fill_audio_out_name(codec, nid, cfg, "Speaker", nid 728 sound/pci/hda/hda_auto_parser.c return fill_audio_out_name(codec, nid, cfg, "Headphone", nid 738 sound/pci/hda/hda_auto_parser.c if (pin == nid) nid 748 sound/pci/hda/hda_auto_parser.c if (cfg->inputs[i].pin != nid) nid 756 sound/pci/hda/hda_auto_parser.c name = hda_get_input_pin_label(codec, NULL, nid, true); nid 808 sound/pci/hda/hda_auto_parser.c for (; cfg->nid; cfg++) nid 809 sound/pci/hda/hda_auto_parser.c snd_hda_codec_set_pincfg(codec, cfg->nid, cfg->val); nid 816 sound/pci/hda/hda_auto_parser.c for (; cfg->nid; cfg++) nid 817 sound/pci/hda/hda_auto_parser.c snd_hda_set_pin_ctl_cache(codec, cfg->nid, cfg->val); nid 894 sound/pci/hda/hda_auto_parser.c hda_nid_t nid = pin->nid; nid 901 sound/pci/hda/hda_auto_parser.c for (; t_pins->nid; t_pins++) { nid 902 sound/pci/hda/hda_auto_parser.c if (t_pins->nid == nid) { nid 44 sound/pci/hda/hda_auto_parser.h int snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid, nid 34 sound/pci/hda/hda_beep.c snd_hda_codec_write(codec, beep->nid, 0, nid 193 sound/pci/hda/hda_beep.c int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) nid 215 sound/pci/hda/hda_beep.c snd_hda_codec_write_cache(codec, nid, 0, nid 218 sound/pci/hda/hda_beep.c beep->nid = nid; nid 23 sound/pci/hda/hda_beep.h hda_nid_t nid; nid 35 sound/pci/hda/hda_beep.h int snd_hda_attach_beep_device(struct hda_codec *codec, int nid); nid 38 sound/pci/hda/hda_beep.h static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) nid 241 sound/pci/hda/hda_bind.c hda_nid_t nid; nid 243 sound/pci/hda/hda_bind.c for_each_hda_codec_node(nid, codec) { nid 244 sound/pci/hda/hda_bind.c unsigned int wcaps = get_wcaps(codec, nid); nid 81 sound/pci/hda/hda_codec.c for (; seq->nid; seq++) nid 82 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, seq->nid, 0, seq->verb, seq->param); nid 90 sound/pci/hda/hda_codec.c hda_nid_t nid; nid 96 sound/pci/hda/hda_codec.c lookup_conn_list(struct hda_codec *codec, hda_nid_t nid) nid 100 sound/pci/hda/hda_codec.c if (p->nid == nid) nid 106 sound/pci/hda/hda_codec.c static int add_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, nid 115 sound/pci/hda/hda_codec.c p->nid = nid; nid 132 sound/pci/hda/hda_codec.c static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) nid 138 sound/pci/hda/hda_codec.c len = snd_hda_get_raw_connections(codec, nid, list, ARRAY_SIZE(list)); nid 140 sound/pci/hda/hda_codec.c len = snd_hda_get_num_raw_conns(codec, nid); nid 144 sound/pci/hda/hda_codec.c len = snd_hda_get_raw_connections(codec, nid, result, len); nid 147 sound/pci/hda/hda_codec.c len = snd_hda_override_conn_list(codec, nid, len, result); nid 168 sound/pci/hda/hda_codec.c int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid, nid 178 sound/pci/hda/hda_codec.c p = lookup_conn_list(codec, nid); nid 187 sound/pci/hda/hda_codec.c err = read_and_add_raw_conns(codec, nid); nid 207 sound/pci/hda/hda_codec.c int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, nid 211 sound/pci/hda/hda_codec.c int len = snd_hda_get_conn_list(codec, nid, &list); nid 216 sound/pci/hda/hda_codec.c len, nid); nid 238 sound/pci/hda/hda_codec.c int snd_hda_override_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, nid 243 sound/pci/hda/hda_codec.c p = lookup_conn_list(codec, nid); nid 249 sound/pci/hda/hda_codec.c return add_conn_list(codec, nid, len, list); nid 265 sound/pci/hda/hda_codec.c hda_nid_t nid, int recursive) nid 272 sound/pci/hda/hda_codec.c if (conn[i] == nid) nid 277 sound/pci/hda/hda_codec.c codec_dbg(codec, "too deep connection for 0x%x\n", nid); nid 285 sound/pci/hda/hda_codec.c if (snd_hda_get_conn_index(codec, conn[i], nid, recursive) >= 0) nid 300 sound/pci/hda/hda_codec.c unsigned int snd_hda_get_num_devices(struct hda_codec *codec, hda_nid_t nid) nid 302 sound/pci/hda/hda_codec.c unsigned int wcaps = get_wcaps(codec, nid); nid 309 sound/pci/hda/hda_codec.c parm = snd_hdac_read_parm_uncached(&codec->core, nid, AC_PAR_DEVLIST_LEN); nid 326 sound/pci/hda/hda_codec.c int snd_hda_get_devices(struct hda_codec *codec, hda_nid_t nid, nid 332 sound/pci/hda/hda_codec.c parm = snd_hda_get_num_devices(codec, nid); nid 341 sound/pci/hda/hda_codec.c if (snd_hdac_read(&codec->core, nid, nid 365 sound/pci/hda/hda_codec.c int snd_hda_get_dev_select(struct hda_codec *codec, hda_nid_t nid) nid 371 sound/pci/hda/hda_codec.c return snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_DEVICE_SEL, 0); nid 383 sound/pci/hda/hda_codec.c int snd_hda_set_dev_select(struct hda_codec *codec, hda_nid_t nid, int dev_id) nid 392 sound/pci/hda/hda_codec.c num_devices = snd_hda_get_num_devices(codec, nid) + 1; nid 406 sound/pci/hda/hda_codec.c ret = snd_hda_codec_write(codec, nid, 0, nid 419 sound/pci/hda/hda_codec.c hda_nid_t nid; nid 424 sound/pci/hda/hda_codec.c nid = codec->core.start_nid; nid 425 sound/pci/hda/hda_codec.c for (i = 0; i < codec->core.num_nodes; i++, nid++) nid 427 sound/pci/hda/hda_codec.c nid, AC_PAR_AUDIO_WIDGET_CAP); nid 434 sound/pci/hda/hda_codec.c hda_nid_t nid; nid 436 sound/pci/hda/hda_codec.c for_each_hda_codec_node(nid, codec) { nid 438 sound/pci/hda/hda_codec.c unsigned int wcaps = get_wcaps(codec, nid); nid 445 sound/pci/hda/hda_codec.c pin->nid = nid; nid 446 sound/pci/hda/hda_codec.c pin->cfg = snd_hda_codec_read(codec, nid, 0, nid 452 sound/pci/hda/hda_codec.c pin->ctrl = snd_hda_codec_read(codec, nid, 0, nid 462 sound/pci/hda/hda_codec.c hda_nid_t nid) nid 468 sound/pci/hda/hda_codec.c if (pin->nid == nid) nid 478 sound/pci/hda/hda_codec.c hda_nid_t nid, unsigned int cfg) nid 491 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, list, nid); nid 496 sound/pci/hda/hda_codec.c pin->nid = nid; nid 513 sound/pci/hda/hda_codec.c hda_nid_t nid, unsigned int cfg) nid 515 sound/pci/hda/hda_codec.c return snd_hda_add_pincfg(codec, &codec->driver_pins, nid, cfg); nid 528 sound/pci/hda/hda_codec.c unsigned int snd_hda_codec_get_pincfg(struct hda_codec *codec, hda_nid_t nid) nid 536 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, &codec->user_pins, nid); nid 544 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, &codec->driver_pins, nid); nid 547 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, &codec->init_pins, nid); nid 564 sound/pci/hda/hda_codec.c int snd_hda_codec_set_pin_target(struct hda_codec *codec, hda_nid_t nid, nid 569 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, &codec->init_pins, nid); nid 582 sound/pci/hda/hda_codec.c int snd_hda_codec_get_pin_target(struct hda_codec *codec, hda_nid_t nid) nid 586 sound/pci/hda/hda_codec.c pin = look_up_pincfg(codec, &codec->init_pins, nid); nid 612 sound/pci/hda/hda_codec.c snd_hda_codec_read(codec, pin->nid, 0, nid 631 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, pin->nid, 0, nid 668 sound/pci/hda/hda_codec.c hda_nid_t nid; nid 678 sound/pci/hda/hda_codec.c get_hda_cvt_setup(struct hda_codec *codec, hda_nid_t nid) nid 684 sound/pci/hda/hda_codec.c if (p->nid == nid) nid 689 sound/pci/hda/hda_codec.c p->nid = nid; nid 1033 sound/pci/hda/hda_codec.c struct hda_cvt_setup *p, hda_nid_t nid, nid 1039 sound/pci/hda/hda_codec.c oldval = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_CONV, 0); nid 1042 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, nid, 0, nid 1052 sound/pci/hda/hda_codec.c hda_nid_t nid, int format) nid 1057 sound/pci/hda/hda_codec.c oldval = snd_hda_codec_read(codec, nid, 0, nid 1061 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, nid, 0, nid 1077 sound/pci/hda/hda_codec.c void snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid, nid 1086 sound/pci/hda/hda_codec.c if (!nid) nid 1091 sound/pci/hda/hda_codec.c nid, stream_tag, channel_id, format); nid 1092 sound/pci/hda/hda_codec.c p = get_hda_cvt_setup(codec, nid); nid 1097 sound/pci/hda/hda_codec.c codec->patch_ops.stream_pm(codec, nid, true); nid 1099 sound/pci/hda/hda_codec.c update_pcm_format(codec, p, nid, format); nid 1100 sound/pci/hda/hda_codec.c update_pcm_stream_id(codec, p, nid, stream_tag, channel_id); nid 1102 sound/pci/hda/hda_codec.c update_pcm_format(codec, p, nid, format); nid 1108 sound/pci/hda/hda_codec.c type = get_wcaps_type(get_wcaps(codec, nid)); nid 1112 sound/pci/hda/hda_codec.c get_wcaps_type(get_wcaps(c, p->nid)) == type) nid 1128 sound/pci/hda/hda_codec.c void __snd_hda_codec_cleanup_stream(struct hda_codec *codec, hda_nid_t nid, nid 1133 sound/pci/hda/hda_codec.c if (!nid) nid 1139 sound/pci/hda/hda_codec.c codec_dbg(codec, "hda_codec_cleanup_stream: NID=0x%x\n", nid); nid 1140 sound/pci/hda/hda_codec.c p = get_hda_cvt_setup(codec, nid); nid 1157 sound/pci/hda/hda_codec.c hda_nid_t nid = q->nid; nid 1159 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_CHANNEL_STREAMID, 0); nid 1161 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_STREAM_FORMAT, 0 nid 1164 sound/pci/hda/hda_codec.c q->nid = nid; nid 1166 sound/pci/hda/hda_codec.c codec->patch_ops.stream_pm(codec, nid, false); nid 1214 sound/pci/hda/hda_codec.c u32 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction) nid 1216 sound/pci/hda/hda_codec.c if (!(get_wcaps(codec, nid) & AC_WCAP_AMP_OVRD)) nid 1217 sound/pci/hda/hda_codec.c nid = codec->core.afg; nid 1218 sound/pci/hda/hda_codec.c return snd_hda_param_read(codec, nid, nid 1233 sound/pci/hda/hda_codec.c bool snd_hda_check_amp_caps(struct hda_codec *codec, hda_nid_t nid, nid 1236 sound/pci/hda/hda_codec.c if (!nid) nid 1238 sound/pci/hda/hda_codec.c if (get_wcaps(codec, nid) & (1 << (dir + 1))) nid 1239 sound/pci/hda/hda_codec.c if (query_amp_caps(codec, nid, dir) & bits) nid 1258 sound/pci/hda/hda_codec.c int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, nid 1263 sound/pci/hda/hda_codec.c snd_hda_override_wcaps(codec, nid, nid 1264 sound/pci/hda/hda_codec.c get_wcaps(codec, nid) | AC_WCAP_AMP_OVRD); nid 1266 sound/pci/hda/hda_codec.c return snd_hdac_override_parm(&codec->core, nid, parm, caps); nid 1270 sound/pci/hda/hda_codec.c static unsigned int encode_amp(struct hda_codec *codec, hda_nid_t nid, nid 1273 sound/pci/hda/hda_codec.c unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx); nid 1276 sound/pci/hda/hda_codec.c if ((query_amp_caps(codec, nid, dir) & nid 1294 sound/pci/hda/hda_codec.c int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, nid 1297 sound/pci/hda/hda_codec.c unsigned int cmd = encode_amp(codec, nid, ch, dir, idx); nid 1315 sound/pci/hda/hda_codec.c int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid, nid 1323 sound/pci/hda/hda_codec.c ret |= snd_hda_codec_amp_update(codec, nid, ch, direction, nid 1343 sound/pci/hda/hda_codec.c int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch, nid 1346 sound/pci/hda/hda_codec.c unsigned int cmd = encode_amp(codec, nid, ch, dir, idx); nid 1365 sound/pci/hda/hda_codec.c int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid, nid 1373 sound/pci/hda/hda_codec.c ret |= snd_hda_codec_amp_init(codec, nid, ch, dir, nid 1379 sound/pci/hda/hda_codec.c static u32 get_amp_max_value(struct hda_codec *codec, hda_nid_t nid, int dir, nid 1382 sound/pci/hda/hda_codec.c u32 caps = query_amp_caps(codec, nid, dir); nid 1402 sound/pci/hda/hda_codec.c u16 nid = get_amp_nid(kcontrol); nid 1410 sound/pci/hda/hda_codec.c uinfo->value.integer.max = get_amp_max_value(codec, nid, dir, ofs); nid 1414 sound/pci/hda/hda_codec.c nid, kcontrol->id.name); nid 1423 sound/pci/hda/hda_codec.c read_amp_value(struct hda_codec *codec, hda_nid_t nid, nid 1427 sound/pci/hda/hda_codec.c val = snd_hda_codec_amp_read(codec, nid, ch, dir, idx); nid 1437 sound/pci/hda/hda_codec.c update_amp_value(struct hda_codec *codec, hda_nid_t nid, nid 1446 sound/pci/hda/hda_codec.c maxval = get_amp_max_value(codec, nid, dir, 0); nid 1449 sound/pci/hda/hda_codec.c return snd_hda_codec_amp_update(codec, nid, ch, dir, idx, nid 1465 sound/pci/hda/hda_codec.c hda_nid_t nid = get_amp_nid(kcontrol); nid 1473 sound/pci/hda/hda_codec.c *valp++ = read_amp_value(codec, nid, 0, dir, idx, ofs); nid 1475 sound/pci/hda/hda_codec.c *valp = read_amp_value(codec, nid, 1, dir, idx, ofs); nid 1492 sound/pci/hda/hda_codec.c hda_nid_t nid = get_amp_nid(kcontrol); nid 1501 sound/pci/hda/hda_codec.c change = update_amp_value(codec, nid, 0, dir, idx, ofs, *valp); nid 1505 sound/pci/hda/hda_codec.c change |= update_amp_value(codec, nid, 1, dir, idx, ofs, *valp); nid 1514 sound/pci/hda/hda_codec.c hda_nid_t nid = get_amp_nid(kcontrol); nid 1520 sound/pci/hda/hda_codec.c caps = query_amp_caps(codec, nid, dir); nid 1569 sound/pci/hda/hda_codec.c void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, nid 1575 sound/pci/hda/hda_codec.c caps = query_amp_caps(codec, nid, dir); nid 1646 sound/pci/hda/hda_codec.c int snd_hda_ctl_add(struct hda_codec *codec, hda_nid_t nid, nid 1655 sound/pci/hda/hda_codec.c if (nid == 0) nid 1656 sound/pci/hda/hda_codec.c nid = get_amp_nid_(kctl->private_value); nid 1658 sound/pci/hda/hda_codec.c if ((kctl->id.subdevice & HDA_SUBDEV_NID_FLAG) != 0 && nid == 0) nid 1659 sound/pci/hda/hda_codec.c nid = kctl->id.subdevice & 0xffff; nid 1669 sound/pci/hda/hda_codec.c item->nid = nid; nid 1687 sound/pci/hda/hda_codec.c unsigned int index, hda_nid_t nid) nid 1691 sound/pci/hda/hda_codec.c if (nid > 0) { nid 1697 sound/pci/hda/hda_codec.c item->nid = nid; nid 2120 sound/pci/hda/hda_codec.c hda_nid_t nid = get_amp_nid(kcontrol); nid 2127 sound/pci/hda/hda_codec.c *valp++ = (snd_hda_codec_amp_read(codec, nid, 0, dir, idx) & nid 2130 sound/pci/hda/hda_codec.c *valp = (snd_hda_codec_amp_read(codec, nid, 1, dir, idx) & nid 2148 sound/pci/hda/hda_codec.c hda_nid_t nid = get_amp_nid(kcontrol); nid 2156 sound/pci/hda/hda_codec.c change = snd_hda_codec_amp_update(codec, nid, 0, dir, idx, nid 2162 sound/pci/hda/hda_codec.c change |= snd_hda_codec_amp_update(codec, nid, 1, dir, idx, nid 2165 sound/pci/hda/hda_codec.c hda_call_check_power_status(codec, nid); nid 2277 sound/pci/hda/hda_codec.c static void set_dig_out(struct hda_codec *codec, hda_nid_t nid, nid 2282 sound/pci/hda/hda_codec.c snd_hdac_regmap_update(&codec->core, nid, AC_VERB_SET_DIGI_CONVERT_1, nid 2292 sound/pci/hda/hda_codec.c static inline void set_dig_out_convert(struct hda_codec *codec, hda_nid_t nid, nid 2306 sound/pci/hda/hda_codec.c set_dig_out(codec, nid, mask, val); nid 2315 sound/pci/hda/hda_codec.c hda_nid_t nid; nid 2323 sound/pci/hda/hda_codec.c nid = spdif->nid; nid 2332 sound/pci/hda/hda_codec.c if (change && nid != (u16)-1) nid 2333 sound/pci/hda/hda_codec.c set_dig_out_convert(codec, nid, val & 0xff, (val >> 8) & 0xff); nid 2356 sound/pci/hda/hda_codec.c static inline void set_spdif_ctls(struct hda_codec *codec, hda_nid_t nid, nid 2359 sound/pci/hda/hda_codec.c set_dig_out_convert(codec, nid, dig1, dig2); nid 2361 sound/pci/hda/hda_codec.c if ((get_wcaps(codec, nid) & AC_WCAP_OUT_AMP) && nid 2363 sound/pci/hda/hda_codec.c snd_hda_codec_amp_stereo(codec, nid, HDA_OUTPUT, 0, nid 2373 sound/pci/hda/hda_codec.c hda_nid_t nid; nid 2381 sound/pci/hda/hda_codec.c nid = spdif->nid; nid 2387 sound/pci/hda/hda_codec.c if (change && nid != (u16)-1) nid 2388 sound/pci/hda/hda_codec.c set_spdif_ctls(codec, nid, val & 0xff, -1); nid 2485 sound/pci/hda/hda_codec.c spdif->nid = cvt_nid; nid 2502 sound/pci/hda/hda_codec.c hda_nid_t nid) nid 2508 sound/pci/hda/hda_codec.c if (spdif->nid == nid) nid 2530 sound/pci/hda/hda_codec.c spdif->nid = (u16)-1; nid 2543 sound/pci/hda/hda_codec.c void snd_hda_spdif_ctls_assign(struct hda_codec *codec, int idx, hda_nid_t nid) nid 2552 sound/pci/hda/hda_codec.c if (spdif->nid != nid) { nid 2553 sound/pci/hda/hda_codec.c spdif->nid = nid; nid 2555 sound/pci/hda/hda_codec.c set_spdif_ctls(codec, nid, val & 0xff, (val >> 8) & 0xff); nid 2628 sound/pci/hda/hda_codec.c hda_nid_t nid = kcontrol->private_value; nid 2636 sound/pci/hda/hda_codec.c snd_hdac_regmap_write(&codec->core, nid, nid 2647 sound/pci/hda/hda_codec.c hda_nid_t nid = kcontrol->private_value; nid 2651 sound/pci/hda/hda_codec.c snd_hdac_regmap_read(&codec->core, nid, nid 2689 sound/pci/hda/hda_codec.c int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid) nid 2705 sound/pci/hda/hda_codec.c kctl->private_value = nid; nid 2706 sound/pci/hda/hda_codec.c err = snd_hda_ctl_add(codec, nid, kctl); nid 2711 sound/pci/hda/hda_codec.c snd_hda_codec_read(codec, nid, 0, nid 2731 sound/pci/hda/hda_codec.c hda_nid_t nid; nid 2733 sound/pci/hda/hda_codec.c for_each_hda_codec_node(nid, codec) { nid 2734 sound/pci/hda/hda_codec.c unsigned int wcaps = get_wcaps(codec, nid); nid 2739 sound/pci/hda/hda_codec.c state = codec->power_filter(codec, nid, power_state); nid 2743 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_POWER_STATE, nid 2759 sound/pci/hda/hda_codec.c hda_nid_t nid, nid 2762 sound/pci/hda/hda_codec.c if (nid == codec->core.afg || nid == codec->core.mfg) nid 2765 sound/pci/hda/hda_codec.c get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_PIN && nid 2766 sound/pci/hda/hda_codec.c (snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_EAPD)) { nid 2767 sound/pci/hda/hda_codec.c int eapd = snd_hda_codec_read(codec, nid, 0, nid 2824 sound/pci/hda/hda_codec.c hda_nid_t nid; nid 2830 sound/pci/hda/hda_codec.c for_each_hda_codec_node(nid, codec) { nid 2831 sound/pci/hda/hda_codec.c unsigned int wcaps = get_wcaps(codec, nid); nid 2835 sound/pci/hda/hda_codec.c target = codec->power_filter(codec, nid, AC_PWRST_D0); nid 2838 sound/pci/hda/hda_codec.c if (!snd_hda_check_power_state(codec, nid, target)) nid 2839 sound/pci/hda/hda_codec.c snd_hda_codec_write(codec, nid, 0, nid 3096 sound/pci/hda/hda_codec.c snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format); nid 3104 sound/pci/hda/hda_codec.c snd_hda_codec_cleanup_stream(codec, hinfo->nid); nid 3114 sound/pci/hda/hda_codec.c if (info->nid && (!info->rates || !info->formats)) { nid 3115 sound/pci/hda/hda_codec.c err = snd_hda_query_supported_pcm(codec, info->nid, nid 3127 sound/pci/hda/hda_codec.c if (snd_BUG_ON(!info->nid)) nid 3132 sound/pci/hda/hda_codec.c if (snd_BUG_ON(!info->nid)) nid 3423 sound/pci/hda/hda_codec.c hda_nid_t nid) nid 3430 sound/pci/hda/hda_codec.c for (p = check->amplist; p->nid; p++) { nid 3431 sound/pci/hda/hda_codec.c if (p->nid == nid) nid 3434 sound/pci/hda/hda_codec.c if (!p->nid) nid 3437 sound/pci/hda/hda_codec.c for (p = check->amplist; p->nid; p++) { nid 3439 sound/pci/hda/hda_codec.c v = snd_hda_codec_amp_read(codec, p->nid, ch, p->dir, nid 3497 sound/pci/hda/hda_codec.c hda_nid_t nid, nid 3509 sound/pci/hda/hda_codec.c snd_hda_codec_write_cache(codec, nid, 0, AC_VERB_SET_CONNECT_SEL, nid 3549 sound/pci/hda/hda_codec.c static void setup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid, nid 3556 sound/pci/hda/hda_codec.c spdif = snd_hda_spdif_out_of_nid(codec, nid); nid 3563 sound/pci/hda/hda_codec.c curr_fmt = snd_hda_codec_read(codec, nid, 0, nid 3572 sound/pci/hda/hda_codec.c set_dig_out_convert(codec, nid, nid 3575 sound/pci/hda/hda_codec.c snd_hda_codec_setup_stream(codec, nid, stream_tag, 0, format); nid 3584 sound/pci/hda/hda_codec.c set_dig_out_convert(codec, nid, nid 3588 sound/pci/hda/hda_codec.c static void cleanup_dig_out_stream(struct hda_codec *codec, hda_nid_t nid) nid 3590 sound/pci/hda/hda_codec.c snd_hda_codec_cleanup_stream(codec, nid); nid 160 sound/pci/hda/hda_controller.c snd_hda_spdif_out_of_nid(apcm->codec, hinfo->nid); nid 122 sound/pci/hda/hda_eld.c static unsigned int hdmi_get_eld_data(struct hda_codec *codec, hda_nid_t nid, nid 127 sound/pci/hda/hda_eld.c val = snd_hda_codec_read(codec, nid, 0, nid 288 sound/pci/hda/hda_eld.c int snd_hdmi_get_eld_size(struct hda_codec *codec, hda_nid_t nid) nid 290 sound/pci/hda/hda_eld.c return snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_HDMI_DIP_SIZE, nid 294 sound/pci/hda/hda_eld.c int snd_hdmi_get_eld(struct hda_codec *codec, hda_nid_t nid, nid 306 sound/pci/hda/hda_eld.c size = snd_hdmi_get_eld_size(codec, nid); nid 319 sound/pci/hda/hda_eld.c unsigned int val = hdmi_get_eld_data(codec, nid, i); nid 632 sound/pci/hda/hda_eld.c int snd_hdmi_get_eld_ati(struct hda_codec *codec, hda_nid_t nid, nid 641 sound/pci/hda/hda_eld.c spkalloc = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SPEAKER_ALLOCATION, 0); nid 665 sound/pci/hda/hda_eld.c snd_hda_codec_write(codec, nid, 0, ATI_VERB_SET_SINK_INFO_INDEX, ATI_INFO_IDX_PORT_ID_LOW); nid 666 sound/pci/hda/hda_eld.c sink_info = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SINK_INFO_DATA, 0); nid 669 sound/pci/hda/hda_eld.c snd_hda_codec_write(codec, nid, 0, ATI_VERB_SET_SINK_INFO_INDEX, ATI_INFO_IDX_PORT_ID_HIGH); nid 670 sound/pci/hda/hda_eld.c sink_info = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SINK_INFO_DATA, 0); nid 673 sound/pci/hda/hda_eld.c snd_hda_codec_write(codec, nid, 0, ATI_VERB_SET_SINK_INFO_INDEX, ATI_INFO_IDX_MANUFACTURER_ID); nid 674 sound/pci/hda/hda_eld.c sink_info = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SINK_INFO_DATA, 0); nid 677 sound/pci/hda/hda_eld.c snd_hda_codec_write(codec, nid, 0, ATI_VERB_SET_SINK_INFO_INDEX, ATI_INFO_IDX_PRODUCT_ID); nid 678 sound/pci/hda/hda_eld.c sink_info = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SINK_INFO_DATA, 0); nid 681 sound/pci/hda/hda_eld.c snd_hda_codec_write(codec, nid, 0, ATI_VERB_SET_SINK_INFO_INDEX, ATI_INFO_IDX_SINK_DESC_LEN); nid 682 sound/pci/hda/hda_eld.c sink_desc_len = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SINK_INFO_DATA, 0); nid 693 sound/pci/hda/hda_eld.c snd_hda_codec_write(codec, nid, 0, ATI_VERB_SET_SINK_INFO_INDEX, ATI_INFO_IDX_SINK_DESC_FIRST + i); nid 694 sound/pci/hda/hda_eld.c buf[pos++] = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SINK_INFO_DATA, 0); nid 702 sound/pci/hda/hda_eld.c snd_hda_codec_write(codec, nid, 0, ATI_VERB_SET_AUDIO_DESCRIPTOR, i << 3); nid 703 sound/pci/hda/hda_eld.c ati_sad = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_AUDIO_DESCRIPTOR, 0); nid 744 sound/pci/hda/hda_eld.c aud_synch = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_AUDIO_VIDEO_DELAY, 0); nid 235 sound/pci/hda/hda_generic.c static int find_idx_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums) nid 239 sound/pci/hda/hda_generic.c if (list[i] == nid) nid 245 sound/pci/hda/hda_generic.c static bool is_nid_contained(struct nid_path *path, hda_nid_t nid) nid 247 sound/pci/hda/hda_generic.c return find_idx_in_nid_list(nid, path->path, path->depth) >= 0; nid 313 sound/pci/hda/hda_generic.c static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) nid 320 sound/pci/hda/hda_generic.c if (path->path[0] == nid) nid 354 sound/pci/hda/hda_generic.c static bool is_ctl_associated(struct hda_codec *codec, hda_nid_t nid, nid 357 sound/pci/hda/hda_generic.c unsigned int val = HDA_COMPOSE_AMP_VAL(nid, 3, idx, dir); nid 529 sound/pci/hda/hda_generic.c hda_nid_t nid = spec->all_dacs[i]; nid 530 sound/pci/hda/hda_generic.c if (!nid || is_dac_already_used(codec, nid)) nid 532 sound/pci/hda/hda_generic.c cap_digital = !!(get_wcaps(codec, nid) & AC_WCAP_DIGITAL); nid 535 sound/pci/hda/hda_generic.c if (is_reachable_path(codec, nid, pin)) nid 536 sound/pci/hda/hda_generic.c return nid; nid 582 sound/pci/hda/hda_generic.c hda_nid_t nid = path->path[i]; nid 583 sound/pci/hda/hda_generic.c if ((spec->out_vol_mask >> nid) & 1) nid 585 sound/pci/hda/hda_generic.c if (nid_has_volume(codec, nid, HDA_OUTPUT)) nid 586 sound/pci/hda/hda_generic.c return nid; nid 598 sound/pci/hda/hda_generic.c hda_nid_t nid = path->path[idx]; nid 599 sound/pci/hda/hda_generic.c unsigned int caps = get_wcaps(codec, nid); nid 612 sound/pci/hda/hda_generic.c hda_nid_t nid = path->path[idx]; nid 613 sound/pci/hda/hda_generic.c unsigned int caps = get_wcaps(codec, nid); nid 624 sound/pci/hda/hda_generic.c static bool is_active_nid(struct hda_codec *codec, hda_nid_t nid, nid 628 sound/pci/hda/hda_generic.c int type = get_wcaps_type(get_wcaps(codec, nid)); nid 632 sound/pci/hda/hda_generic.c if (nid == codec->core.afg) nid 647 sound/pci/hda/hda_generic.c if (path->path[i] == nid) { nid 659 sound/pci/hda/hda_generic.c #define is_active_nid_for_any(codec, nid) \ nid 660 sound/pci/hda/hda_generic.c is_active_nid(codec, nid, HDA_OUTPUT, -1) nid 663 sound/pci/hda/hda_generic.c static int get_amp_val_to_activate(struct hda_codec *codec, hda_nid_t nid, nid 681 sound/pci/hda/hda_generic.c static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, int dir) nid 683 sound/pci/hda/hda_generic.c unsigned int wcaps = get_wcaps(codec, nid); nid 690 sound/pci/hda/hda_generic.c if (snd_hda_get_num_conns(codec, nid) != 1) nid 692 sound/pci/hda/hda_generic.c if (snd_hda_get_connections(codec, nid, &conn, 1) < 0) nid 698 sound/pci/hda/hda_generic.c static void init_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx) nid 700 sound/pci/hda/hda_generic.c unsigned int caps = query_amp_caps(codec, nid, dir); nid 701 sound/pci/hda/hda_generic.c int val = get_amp_val_to_activate(codec, nid, dir, caps, false); nid 703 sound/pci/hda/hda_generic.c if (is_stereo_amps(codec, nid, dir)) nid 704 sound/pci/hda/hda_generic.c snd_hda_codec_amp_init_stereo(codec, nid, dir, idx, 0xff, val); nid 706 sound/pci/hda/hda_generic.c snd_hda_codec_amp_init(codec, nid, 0, dir, idx, 0xff, val); nid 710 sound/pci/hda/hda_generic.c static int update_amp(struct hda_codec *codec, hda_nid_t nid, int dir, int idx, nid 713 sound/pci/hda/hda_generic.c if (is_stereo_amps(codec, nid, dir)) nid 714 sound/pci/hda/hda_generic.c return snd_hda_codec_amp_stereo(codec, nid, dir, idx, nid 717 sound/pci/hda/hda_generic.c return snd_hda_codec_amp_update(codec, nid, 0, dir, idx, nid 725 sound/pci/hda/hda_generic.c hda_nid_t nid, int dir, int idx, nid 731 sound/pci/hda/hda_generic.c if (is_ctl_associated(codec, nid, dir, idx, NID_PATH_MUTE_CTL)) nid 735 sound/pci/hda/hda_generic.c if (is_ctl_associated(codec, nid, dir, idx, NID_PATH_VOL_CTL) || nid 736 sound/pci/hda/hda_generic.c is_ctl_associated(codec, nid, dir, idx, NID_PATH_BOOST_CTL)) nid 742 sound/pci/hda/hda_generic.c static void activate_amp(struct hda_codec *codec, hda_nid_t nid, int dir, nid 748 sound/pci/hda/hda_generic.c caps = query_amp_caps(codec, nid, dir); nid 749 sound/pci/hda/hda_generic.c val = get_amp_val_to_activate(codec, nid, dir, caps, enable); nid 750 sound/pci/hda/hda_generic.c mask = get_amp_mask_to_modify(codec, nid, dir, idx_to_check, caps); nid 755 sound/pci/hda/hda_generic.c update_amp(codec, nid, dir, idx, mask, val); nid 758 sound/pci/hda/hda_generic.c static void check_and_activate_amp(struct hda_codec *codec, hda_nid_t nid, nid 763 sound/pci/hda/hda_generic.c if (!enable && is_active_nid(codec, nid, dir, idx_to_check)) nid 765 sound/pci/hda/hda_generic.c activate_amp(codec, nid, dir, idx, idx_to_check, enable); nid 771 sound/pci/hda/hda_generic.c hda_nid_t nid = path->path[i]; nid 772 sound/pci/hda/hda_generic.c init_amp(codec, nid, HDA_OUTPUT, 0); nid 773 sound/pci/hda/hda_generic.c check_and_activate_amp(codec, nid, HDA_OUTPUT, 0, 0, enable); nid 783 sound/pci/hda/hda_generic.c hda_nid_t nid = path->path[i]; nid 785 sound/pci/hda/hda_generic.c nums = snd_hda_get_conn_list(codec, nid, &conn); nid 788 sound/pci/hda/hda_generic.c type = get_wcaps_type(get_wcaps(codec, nid)); nid 797 sound/pci/hda/hda_generic.c init_amp(codec, nid, HDA_INPUT, n); nid 808 sound/pci/hda/hda_generic.c activate_amp(codec, nid, HDA_INPUT, n, n, false); nid 812 sound/pci/hda/hda_generic.c check_and_activate_amp(codec, nid, HDA_INPUT, n, idx, enable); nid 821 sound/pci/hda/hda_generic.c hda_nid_t nid, changed = 0; nid 825 sound/pci/hda/hda_generic.c nid = path->path[i]; nid 826 sound/pci/hda/hda_generic.c if (!(get_wcaps(codec, nid) & AC_WCAP_POWER)) nid 828 sound/pci/hda/hda_generic.c if (nid == codec->core.afg) nid 830 sound/pci/hda/hda_generic.c if (!allow_powerdown || is_active_nid_for_any(codec, nid)) nid 834 sound/pci/hda/hda_generic.c power = snd_hda_codec_read(codec, nid, 0, nid 837 sound/pci/hda/hda_generic.c snd_hda_codec_write(codec, nid, 0, nid 839 sound/pci/hda/hda_generic.c changed = nid; nid 848 sound/pci/hda/hda_generic.c snd_hdac_regmap_sync_node(&codec->core, nid); nid 856 sound/pci/hda/hda_generic.c static void sync_power_state_change(struct hda_codec *codec, hda_nid_t nid) nid 858 sound/pci/hda/hda_generic.c if (nid) { nid 860 sound/pci/hda/hda_generic.c snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_POWER_STATE, 0); nid 886 sound/pci/hda/hda_generic.c hda_nid_t nid = path->path[i]; nid 889 sound/pci/hda/hda_generic.c snd_hda_codec_write_cache(codec, nid, 0, nid 1027 sound/pci/hda/hda_generic.c hda_nid_t nid = get_amp_nid_(path->ctls[type]); nid 1028 sound/pci/hda/hda_generic.c if (nid && (get_wcaps(codec, nid) & AC_WCAP_STEREO)) nid 1057 sound/pci/hda/hda_generic.c hda_nid_t nid = get_amp_nid_(val); nid 1058 sound/pci/hda/hda_generic.c int nums = snd_hda_get_num_conns(codec, nid); nid 1082 sound/pci/hda/hda_generic.c hda_nid_t nid = get_amp_nid(kcontrol); nid 1083 sound/pci/hda/hda_generic.c bool enabled = !((spec->mute_bits >> nid) & 1); nid 1269 sound/pci/hda/hda_generic.c hda_nid_t nid; nid 1280 sound/pci/hda/hda_generic.c nid = look_for_out_vol_nid(codec, path); nid 1281 sound/pci/hda/hda_generic.c if (nid) { nid 1282 sound/pci/hda/hda_generic.c val = HDA_COMPOSE_AMP_VAL(nid, 3, 0, HDA_OUTPUT); nid 1291 sound/pci/hda/hda_generic.c nid = look_for_out_mute_nid(codec, path); nid 1292 sound/pci/hda/hda_generic.c if (nid) { nid 1293 sound/pci/hda/hda_generic.c unsigned int wid_type = get_wcaps_type(get_wcaps(codec, nid)); nid 1295 sound/pci/hda/hda_generic.c nid_has_mute(codec, nid, HDA_OUTPUT)) nid 1296 sound/pci/hda/hda_generic.c val = HDA_COMPOSE_AMP_VAL(nid, 3, 0, HDA_OUTPUT); nid 1298 sound/pci/hda/hda_generic.c val = HDA_COMPOSE_AMP_VAL(nid, 3, 0, HDA_INPUT); nid 1445 sound/pci/hda/hda_generic.c hda_nid_t nid = spec->all_dacs[i]; nid 1446 sound/pci/hda/hda_generic.c if (!nid || is_dac_already_used(codec, nid)) nid 1448 sound/pci/hda/hda_generic.c if (is_reachable_path(codec, nid, pin)) { nid 1451 sound/pci/hda/hda_generic.c nid_found = nid; nid 1459 sound/pci/hda/hda_generic.c unsigned int location, hda_nid_t nid) nid 1463 sound/pci/hda/hda_generic.c defcfg = snd_hda_codec_get_pincfg(codec, nid); nid 1468 sound/pci/hda/hda_generic.c caps = snd_hda_query_pin_caps(codec, nid); nid 1526 sound/pci/hda/hda_generic.c hda_nid_t nid = cfg->inputs[i].pin; nid 1531 sound/pci/hda/hda_generic.c if (!can_be_multiio_pin(codec, location, nid)) nid 1534 sound/pci/hda/hda_generic.c if (nid == spec->multi_io[j].pin) nid 1541 sound/pci/hda/hda_generic.c dac = get_dac_if_single(codec, nid); nid 1543 sound/pci/hda/hda_generic.c dac = look_for_dac(codec, nid, false); nid 1548 sound/pci/hda/hda_generic.c path = snd_hda_add_new_path(codec, dac, nid, nid 1555 sound/pci/hda/hda_generic.c spec->multi_io[spec->multi_ios].pin = nid; nid 1947 sound/pci/hda/hda_generic.c hda_nid_t nid; nid 1951 sound/pci/hda/hda_generic.c for_each_hda_codec_node(nid, codec) { nid 1952 sound/pci/hda/hda_generic.c if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_AUD_OUT) nid 1958 sound/pci/hda/hda_generic.c spec->all_dacs[spec->num_all_dacs++] = nid; nid 2354 sound/pci/hda/hda_generic.c hda_nid_t nid = spec->multi_io[idx].pin; nid 2365 sound/pci/hda/hda_generic.c set_pin_target(codec, nid, PIN_OUT, true); nid 2367 sound/pci/hda/hda_generic.c set_pin_eapd(codec, nid, true); nid 2369 sound/pci/hda/hda_generic.c set_pin_eapd(codec, nid, false); nid 2371 sound/pci/hda/hda_generic.c set_pin_target(codec, nid, spec->multi_io[idx].ctl_in, true); nid 2591 sound/pci/hda/hda_generic.c hda_nid_t nid; nid 2612 sound/pci/hda/hda_generic.c nid = 0; nid 2614 sound/pci/hda/hda_generic.c nid = cfg->line_out_pins[0]; nid 2616 sound/pci/hda/hda_generic.c nid = cfg->hp_pins[0]; nid 2617 sound/pci/hda/hda_generic.c if (!nid) nid 2620 sound/pci/hda/hda_generic.c if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_IN)) nid 2623 sound/pci/hda/hda_generic.c cfg->inputs[cfg->num_inputs].pin = nid; nid 2628 sound/pci/hda/hda_generic.c spec->hp_mic_pin = nid; nid 2631 sound/pci/hda/hda_generic.c codec_dbg(codec, "Enable shared I/O jack on NID 0x%x\n", nid); nid 2655 sound/pci/hda/hda_generic.c hda_nid_t nid = kcontrol->private_value; nid 2656 sound/pci/hda/hda_generic.c if (snd_hda_codec_get_pin_target(codec, nid) == PIN_HP) nid 2667 sound/pci/hda/hda_generic.c hda_nid_t nid = kcontrol->private_value; nid 2671 sound/pci/hda/hda_generic.c if (snd_hda_codec_get_pin_target(codec, nid) == val) nid 2673 sound/pci/hda/hda_generic.c snd_hda_set_pin_ctl_cache(codec, nid, val); nid 2802 sound/pci/hda/hda_generic.c hda_nid_t nid = kcontrol->private_value; nid 2803 sound/pci/hda/hda_generic.c unsigned int vref_caps = get_vref_caps(codec, nid); nid 2817 sound/pci/hda/hda_generic.c hda_nid_t nid = kcontrol->private_value; nid 2818 sound/pci/hda/hda_generic.c unsigned int vref_caps = get_vref_caps(codec, nid); nid 2821 sound/pci/hda/hda_generic.c idx = snd_hda_codec_get_pin_target(codec, nid) & AC_PINCTL_VREFEN; nid 2830 sound/pci/hda/hda_generic.c hda_nid_t nid = kcontrol->private_value; nid 2831 sound/pci/hda/hda_generic.c unsigned int vref_caps = get_vref_caps(codec, nid); nid 2834 sound/pci/hda/hda_generic.c val = snd_hda_codec_get_pin_target(codec, nid); nid 2841 sound/pci/hda/hda_generic.c snd_hda_set_pin_ctl_cache(codec, nid, val); nid 2895 sound/pci/hda/hda_generic.c hda_nid_t nid = kcontrol->private_value; nid 2896 sound/pci/hda/hda_generic.c int out_jacks = get_out_jack_num_items(codec, nid); nid 2897 sound/pci/hda/hda_generic.c int in_jacks = get_in_jack_num_items(codec, nid); nid 2915 sound/pci/hda/hda_generic.c unsigned int vref_caps = get_vref_caps(codec, nid); nid 2925 sound/pci/hda/hda_generic.c static int get_cur_hp_mic_jack_mode(struct hda_codec *codec, hda_nid_t nid) nid 2927 sound/pci/hda/hda_generic.c int out_jacks = get_out_jack_num_items(codec, nid); nid 2928 sound/pci/hda/hda_generic.c int in_jacks = get_in_jack_num_items(codec, nid); nid 2929 sound/pci/hda/hda_generic.c unsigned int val = snd_hda_codec_get_pin_target(codec, nid); nid 2938 sound/pci/hda/hda_generic.c unsigned int vref_caps = get_vref_caps(codec, nid); nid 2950 sound/pci/hda/hda_generic.c hda_nid_t nid = kcontrol->private_value; nid 2952 sound/pci/hda/hda_generic.c get_cur_hp_mic_jack_mode(codec, nid); nid 2960 sound/pci/hda/hda_generic.c hda_nid_t nid = kcontrol->private_value; nid 2961 sound/pci/hda/hda_generic.c int out_jacks = get_out_jack_num_items(codec, nid); nid 2962 sound/pci/hda/hda_generic.c int in_jacks = get_in_jack_num_items(codec, nid); nid 2965 sound/pci/hda/hda_generic.c oldval = get_cur_hp_mic_jack_mode(codec, nid); nid 2978 sound/pci/hda/hda_generic.c unsigned int vref_caps = get_vref_caps(codec, nid); nid 2979 sound/pci/hda/hda_generic.c val = snd_hda_codec_get_pin_target(codec, nid); nid 2983 sound/pci/hda/hda_generic.c val = snd_hda_get_default_vref(codec, nid) | PIN_IN; nid 2985 sound/pci/hda/hda_generic.c snd_hda_set_pin_ctl_cache(codec, nid, val); nid 3024 sound/pci/hda/hda_generic.c list->nid = mix; nid 3040 sound/pci/hda/hda_generic.c hda_nid_t nid; nid 3058 sound/pci/hda/hda_generic.c nid = list[idx]; nid 3059 sound/pci/hda/hda_generic.c if (!*mix_val && nid_has_volume(codec, nid, HDA_OUTPUT) && nid 3060 sound/pci/hda/hda_generic.c !is_ctl_associated(codec, nid, HDA_OUTPUT, 0, NID_PATH_VOL_CTL)) nid 3061 sound/pci/hda/hda_generic.c *mix_val = HDA_COMPOSE_AMP_VAL(nid, 3, 0, HDA_OUTPUT); nid 3062 sound/pci/hda/hda_generic.c if (!*mute_val && nid_has_mute(codec, nid, HDA_OUTPUT) && nid 3063 sound/pci/hda/hda_generic.c !is_ctl_associated(codec, nid, HDA_OUTPUT, 0, NID_PATH_MUTE_CTL)) nid 3064 sound/pci/hda/hda_generic.c *mute_val = HDA_COMPOSE_AMP_VAL(nid, 3, 0, HDA_OUTPUT); nid 3126 sound/pci/hda/hda_generic.c static int is_input_pin(struct hda_codec *codec, hda_nid_t nid) nid 3128 sound/pci/hda/hda_generic.c unsigned int pincap = snd_hda_query_pin_caps(codec, nid); nid 3136 sound/pci/hda/hda_generic.c hda_nid_t nid; nid 3141 sound/pci/hda/hda_generic.c for_each_hda_codec_node(nid, codec) { nid 3142 sound/pci/hda/hda_generic.c unsigned int caps = get_wcaps(codec, nid); nid 3147 sound/pci/hda/hda_generic.c adc_nids[nums] = nid; nid 3518 sound/pci/hda/hda_generic.c hda_nid_t nid; nid 3526 sound/pci/hda/hda_generic.c nid = path->path[i]; nid 3528 sound/pci/hda/hda_generic.c if (nid_has_volume(codec, nid, HDA_OUTPUT)) nid 3530 sound/pci/hda/hda_generic.c HDA_COMPOSE_AMP_VAL(nid, 3, 0, HDA_OUTPUT); nid 3531 sound/pci/hda/hda_generic.c else if (nid_has_volume(codec, nid, HDA_INPUT)) { nid 3536 sound/pci/hda/hda_generic.c HDA_COMPOSE_AMP_VAL(nid, 3, idx, HDA_INPUT); nid 3540 sound/pci/hda/hda_generic.c if (nid_has_mute(codec, nid, HDA_OUTPUT)) nid 3542 sound/pci/hda/hda_generic.c HDA_COMPOSE_AMP_VAL(nid, 3, 0, HDA_OUTPUT); nid 3543 sound/pci/hda/hda_generic.c else if (nid_has_mute(codec, nid, HDA_INPUT)) { nid 3548 sound/pci/hda/hda_generic.c HDA_COMPOSE_AMP_VAL(nid, 3, idx, HDA_INPUT); nid 3555 sound/pci/hda/hda_generic.c static bool is_inv_dmic_pin(struct hda_codec *codec, hda_nid_t nid) nid 3565 sound/pci/hda/hda_generic.c if (cfg->inputs[i].pin != nid) nid 3569 sound/pci/hda/hda_generic.c val = snd_hda_codec_get_pincfg(codec, nid); nid 3803 sound/pci/hda/hda_generic.c static bool check_boost_vol(struct hda_codec *codec, hda_nid_t nid, nid 3808 sound/pci/hda/hda_generic.c if (!nid_has_volume(codec, nid, dir) || nid 3809 sound/pci/hda/hda_generic.c is_ctl_associated(codec, nid, dir, idx, NID_PATH_VOL_CTL) || nid 3810 sound/pci/hda/hda_generic.c is_ctl_associated(codec, nid, dir, idx, NID_PATH_BOOST_CTL)) nid 3813 sound/pci/hda/hda_generic.c step = (query_amp_caps(codec, nid, dir) & AC_AMPCAP_STEP_SIZE) nid 3825 sound/pci/hda/hda_generic.c hda_nid_t nid; nid 3831 sound/pci/hda/hda_generic.c nid = path->path[depth]; nid 3832 sound/pci/hda/hda_generic.c if (depth && check_boost_vol(codec, nid, HDA_OUTPUT, 0)) { nid 3833 sound/pci/hda/hda_generic.c val = HDA_COMPOSE_AMP_VAL(nid, 3, 0, HDA_OUTPUT); nid 3835 sound/pci/hda/hda_generic.c } else if (check_boost_vol(codec, nid, HDA_INPUT, nid 3837 sound/pci/hda/hda_generic.c val = HDA_COMPOSE_AMP_VAL(nid, 3, path->idx[depth], nid 4170 sound/pci/hda/hda_generic.c static hda_nid_t set_path_power(struct hda_codec *codec, hda_nid_t nid, nid 4181 sound/pci/hda/hda_generic.c if (path->path[0] == nid || nid 4182 sound/pci/hda/hda_generic.c path->path[path->depth - 1] == nid) { nid 4234 sound/pci/hda/hda_generic.c if (jack && jack->nid) nid 4236 sound/pci/hda/hda_generic.c set_pin_power_jack(codec, jack->nid, on)); nid 4319 sound/pci/hda/hda_generic.c static int add_fake_paths(struct hda_codec *codec, hda_nid_t nid, nid 4329 sound/pci/hda/hda_generic.c if (get_nid_path(codec, nid, pins[i], 0)) nid 4336 sound/pci/hda/hda_generic.c path->path[0] = nid; nid 4348 sound/pci/hda/hda_generic.c hda_nid_t nid = spec->beep_nid; nid 4351 sound/pci/hda/hda_generic.c if (!codec->power_save_node || !nid) nid 4353 sound/pci/hda/hda_generic.c err = add_fake_paths(codec, nid, cfg->line_outs, cfg->line_out_pins); nid 4357 sound/pci/hda/hda_generic.c err = add_fake_paths(codec, nid, cfg->hp_outs, cfg->hp_pins); nid 4362 sound/pci/hda/hda_generic.c err = add_fake_paths(codec, nid, cfg->speaker_outs, nid 4373 sound/pci/hda/hda_generic.c set_path_power(beep->codec, beep->nid, -1, on); nid 4410 sound/pci/hda/hda_generic.c hda_nid_t nid = pins[i]; nid 4411 sound/pci/hda/hda_generic.c if (!nid) nid 4414 sound/pci/hda/hda_generic.c if (snd_hda_codec_get_pin_target(codec, nid) & AC_PINCTL_IN_EN) nid 4416 sound/pci/hda/hda_generic.c if (snd_hda_jack_detect_state(codec, nid) == HDA_JACK_PRESENT) nid 4430 sound/pci/hda/hda_generic.c hda_nid_t nid = pins[i]; nid 4432 sound/pci/hda/hda_generic.c if (!nid) nid 4435 sound/pci/hda/hda_generic.c oldval = snd_hda_codec_get_pin_target(codec, nid); nid 4469 sound/pci/hda/hda_generic.c update_pin_ctl(codec, nid, val); nid 4472 sound/pci/hda/hda_generic.c set_pin_eapd(codec, nid, !mute); nid 4476 sound/pci/hda/hda_generic.c on = detect_pin_state(codec, nid); nid 4477 sound/pci/hda/hda_generic.c set_path_power(codec, nid, on, -1); nid 4793 sound/pci/hda/hda_generic.c hda_nid_t nid = cfg->hp_pins[i]; nid 4794 sound/pci/hda/hda_generic.c if (!is_jack_detectable(codec, nid)) nid 4796 sound/pci/hda/hda_generic.c codec_dbg(codec, "Enable HP auto-muting on NID 0x%x\n", nid); nid 4797 sound/pci/hda/hda_generic.c snd_hda_jack_detect_enable_callback(codec, nid, nid 4805 sound/pci/hda/hda_generic.c hda_nid_t nid = cfg->line_out_pins[i]; nid 4806 sound/pci/hda/hda_generic.c if (!is_jack_detectable(codec, nid)) nid 4808 sound/pci/hda/hda_generic.c codec_dbg(codec, "Enable Line-Out auto-muting on NID 0x%x\n", nid); nid 4809 sound/pci/hda/hda_generic.c snd_hda_jack_detect_enable_callback(codec, nid, nid 4879 sound/pci/hda/hda_generic.c hda_nid_t nid = cfg->inputs[i].pin; nid 4881 sound/pci/hda/hda_generic.c attr = snd_hda_codec_get_pincfg(codec, nid); nid 4898 sound/pci/hda/hda_generic.c if (!is_jack_detectable(codec, nid)) nid 4905 sound/pci/hda/hda_generic.c spec->am_entry[num_pins].pin = nid; nid 4942 sound/pci/hda/hda_generic.c hda_nid_t nid, nid 4949 sound/pci/hda/hda_generic.c if (power_state != AC_PWRST_D0 || nid == codec->core.afg) nid 4951 sound/pci/hda/hda_generic.c if (get_wcaps_type(get_wcaps(codec, nid)) >= AC_WID_POWER) nid 4953 sound/pci/hda/hda_generic.c if (is_active_nid_for_any(codec, nid)) nid 4986 sound/pci/hda/hda_generic.c void snd_hda_gen_stream_pm(struct hda_codec *codec, hda_nid_t nid, bool on) nid 4989 sound/pci/hda/hda_generic.c set_path_power(codec, nid, -1, on); nid 5376 sound/pci/hda/hda_generic.c snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format); nid 5386 sound/pci/hda/hda_generic.c snd_hda_codec_cleanup_stream(codec, hinfo->nid); nid 5437 sound/pci/hda/hda_generic.c snd_hda_codec_setup_stream(codec, hinfo->nid, stream_tag, 0, format); nid 5447 sound/pci/hda/hda_generic.c snd_hda_codec_cleanup_stream(codec, hinfo->nid); nid 5657 sound/pci/hda/hda_generic.c .nid = 0, /* fill later */ nid 5689 sound/pci/hda/hda_generic.c hda_nid_t nid) nid 5692 sound/pci/hda/hda_generic.c if (nid) nid 5693 sound/pci/hda/hda_generic.c str->nid = nid; nid 5923 sound/pci/hda/hda_generic.c hda_nid_t nid = cfg->inputs[i].pin; nid 5924 sound/pci/hda/hda_generic.c if (is_input_pin(codec, nid)) nid 5925 sound/pci/hda/hda_generic.c restore_pin_ctl(codec, nid); nid 5991 sound/pci/hda/hda_generic.c hda_nid_t nid = pin->nid; nid 5992 sound/pci/hda/hda_generic.c if (is_jack_detectable(codec, nid) && nid 5993 sound/pci/hda/hda_generic.c !snd_hda_jack_tbl_get(codec, nid)) nid 5994 sound/pci/hda/hda_generic.c snd_hda_codec_write_cache(codec, nid, 0, nid 6081 sound/pci/hda/hda_generic.c int snd_hda_gen_check_power_status(struct hda_codec *codec, hda_nid_t nid) nid 6084 sound/pci/hda/hda_generic.c return snd_hda_check_amp_list_power(codec, &spec->loopback, nid); nid 348 sound/pci/hda/hda_generic.h int snd_hda_gen_check_power_status(struct hda_codec *codec, hda_nid_t nid); nid 351 sound/pci/hda/hda_generic.h hda_nid_t nid, nid 353 sound/pci/hda/hda_generic.h void snd_hda_gen_stream_pm(struct hda_codec *codec, hda_nid_t nid, bool on); nid 29 sound/pci/hda/hda_jack.c bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) nid 33 sound/pci/hda/hda_jack.c if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_PRES_DETECT)) nid 35 sound/pci/hda/hda_jack.c if (get_defcfg_misc(snd_hda_codec_get_pincfg(codec, nid)) & nid 38 sound/pci/hda/hda_jack.c if (!(get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) && nid 46 sound/pci/hda/hda_jack.c static u32 read_pin_sense(struct hda_codec *codec, hda_nid_t nid) nid 52 sound/pci/hda/hda_jack.c pincap = snd_hda_query_pin_caps(codec, nid); nid 54 sound/pci/hda/hda_jack.c snd_hda_codec_read(codec, nid, 0, nid 57 sound/pci/hda/hda_jack.c val = snd_hda_codec_read(codec, nid, 0, nid 70 sound/pci/hda/hda_jack.c snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) nid 75 sound/pci/hda/hda_jack.c if (!nid || !jack) nid 78 sound/pci/hda/hda_jack.c if (jack->nid == nid) nid 110 sound/pci/hda/hda_jack.c snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid) nid 112 sound/pci/hda/hda_jack.c struct hda_jack_tbl *jack = snd_hda_jack_tbl_get(codec, nid); nid 118 sound/pci/hda/hda_jack.c jack->nid = nid; nid 156 sound/pci/hda/hda_jack.c jack->pin_sense = read_pin_sense(codec, jack->nid); nid 188 sound/pci/hda/hda_jack.c if (jack->nid) nid 201 sound/pci/hda/hda_jack.c u32 snd_hda_pin_sense(struct hda_codec *codec, hda_nid_t nid) nid 203 sound/pci/hda/hda_jack.c struct hda_jack_tbl *jack = snd_hda_jack_tbl_get(codec, nid); nid 208 sound/pci/hda/hda_jack.c return read_pin_sense(codec, nid); nid 220 sound/pci/hda/hda_jack.c int snd_hda_jack_detect_state(struct hda_codec *codec, hda_nid_t nid) nid 222 sound/pci/hda/hda_jack.c struct hda_jack_tbl *jack = snd_hda_jack_tbl_get(codec, nid); nid 225 sound/pci/hda/hda_jack.c else if (snd_hda_pin_sense(codec, nid) & AC_PINSENSE_PRESENCE) nid 243 sound/pci/hda/hda_jack.c snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, nid 250 sound/pci/hda/hda_jack.c jack = snd_hda_jack_tbl_new(codec, nid); nid 258 sound/pci/hda/hda_jack.c callback->nid = jack->nid; nid 268 sound/pci/hda/hda_jack.c err = snd_hda_codec_write_cache(codec, nid, 0, nid 285 sound/pci/hda/hda_jack.c int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid) nid 287 sound/pci/hda/hda_jack.c return PTR_ERR_OR_ZERO(snd_hda_jack_detect_enable_callback(codec, nid, NULL)); nid 327 sound/pci/hda/hda_jack.c if (jack->nid) nid 335 sound/pci/hda/hda_jack.c if (jack->nid) { nid 352 sound/pci/hda/hda_jack.c static int get_input_jack_type(struct hda_codec *codec, hda_nid_t nid) nid 354 sound/pci/hda/hda_jack.c unsigned int def_conf = snd_hda_codec_get_pincfg(codec, nid); nid 374 sound/pci/hda/hda_jack.c jacks->nid = 0; nid 390 sound/pci/hda/hda_jack.c int snd_hda_jack_add_kctl(struct hda_codec *codec, hda_nid_t nid, nid 398 sound/pci/hda/hda_jack.c jack = snd_hda_jack_tbl_new(codec, nid); nid 405 sound/pci/hda/hda_jack.c type = get_input_jack_type(codec, nid); nid 428 sound/pci/hda/hda_jack.c state = snd_hda_jack_detect(codec, nid); nid 435 sound/pci/hda/hda_jack.c static int add_jack_kctl(struct hda_codec *codec, hda_nid_t nid, nid 444 sound/pci/hda/hda_jack.c if (!nid) nid 446 sound/pci/hda/hda_jack.c def_conf = snd_hda_codec_get_pincfg(codec, nid); nid 451 sound/pci/hda/hda_jack.c !is_jack_detectable(codec, nid); nid 456 sound/pci/hda/hda_jack.c snd_hda_get_pin_label(codec, nid, cfg, name, sizeof(name), NULL); nid 460 sound/pci/hda/hda_jack.c err = snd_hda_jack_add_kctl(codec, nid, name, phantom_jack, 0, NULL); nid 465 sound/pci/hda/hda_jack.c return snd_hda_jack_detect_enable(codec, nid); nid 588 sound/pci/hda/hda_jack.c if (!jack->nid || !jack->jack_dirty || jack->phantom_jack) nid 21 sound/pci/hda/hda_jack.h hda_nid_t nid; nid 30 sound/pci/hda/hda_jack.h hda_nid_t nid; nid 52 sound/pci/hda/hda_jack.h snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid); nid 60 sound/pci/hda/hda_jack.h int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid); nid 62 sound/pci/hda/hda_jack.h snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, nid 68 sound/pci/hda/hda_jack.h u32 snd_hda_pin_sense(struct hda_codec *codec, hda_nid_t nid); nid 75 sound/pci/hda/hda_jack.h int snd_hda_jack_detect_state(struct hda_codec *codec, hda_nid_t nid); nid 82 sound/pci/hda/hda_jack.h static inline bool snd_hda_jack_detect(struct hda_codec *codec, hda_nid_t nid) nid 84 sound/pci/hda/hda_jack.h return snd_hda_jack_detect_state(codec, nid) != HDA_JACK_NOT_PRESENT; nid 87 sound/pci/hda/hda_jack.h bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid); nid 89 sound/pci/hda/hda_jack.h int snd_hda_jack_add_kctl(struct hda_codec *codec, hda_nid_t nid, nid 26 sound/pci/hda/hda_local.h #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs) \ nid 27 sound/pci/hda/hda_local.h ((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19) | ((ofs)<<23)) nid 29 sound/pci/hda/hda_local.h #define HDA_COMPOSE_AMP_VAL(nid,chs,idx,dir) \ nid 30 sound/pci/hda/hda_local.h HDA_COMPOSE_AMP_VAL_OFS(nid, chs, idx, dir, 0) nid 32 sound/pci/hda/hda_local.h #define HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, channel, xindex, dir, flags) \ nid 42 sound/pci/hda/hda_local.h .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, dir) | flags } nid 44 sound/pci/hda/hda_local.h #define HDA_CODEC_VOLUME_IDX(xname, xcidx, nid, xindex, direction) \ nid 45 sound/pci/hda/hda_local.h HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, 3, xindex, direction, 0) nid 47 sound/pci/hda/hda_local.h #define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \ nid 48 sound/pci/hda/hda_local.h HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, channel, xindex, direction, 0) nid 50 sound/pci/hda/hda_local.h #define HDA_CODEC_VOLUME(xname, nid, xindex, direction) \ nid 51 sound/pci/hda/hda_local.h HDA_CODEC_VOLUME_MONO(xname, nid, 3, xindex, direction) nid 53 sound/pci/hda/hda_local.h #define HDA_CODEC_VOLUME_MIN_MUTE(xname, nid, xindex, direction) \ nid 54 sound/pci/hda/hda_local.h HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, 3, xindex, direction, \ nid 57 sound/pci/hda/hda_local.h #define HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ nid 63 sound/pci/hda/hda_local.h .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) } nid 65 sound/pci/hda/hda_local.h #define HDA_CODEC_MUTE_IDX(xname, xcidx, nid, xindex, direction) \ nid 66 sound/pci/hda/hda_local.h HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, 3, xindex, direction) nid 68 sound/pci/hda/hda_local.h #define HDA_CODEC_MUTE_MONO(xname, nid, channel, xindex, direction) \ nid 69 sound/pci/hda/hda_local.h HDA_CODEC_MUTE_MONO_IDX(xname, 0, nid, channel, xindex, direction) nid 71 sound/pci/hda/hda_local.h #define HDA_CODEC_MUTE(xname, nid, xindex, direction) \ nid 72 sound/pci/hda/hda_local.h HDA_CODEC_MUTE_MONO(xname, nid, 3, xindex, direction) nid 75 sound/pci/hda/hda_local.h #define HDA_CODEC_MUTE_BEEP_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ nid 81 sound/pci/hda/hda_local.h .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) } nid 84 sound/pci/hda/hda_local.h #define HDA_CODEC_MUTE_BEEP_MONO_IDX(xname, xcidx, nid, ch, xidx, dir) \ nid 85 sound/pci/hda/hda_local.h HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, ch, xidx, dir) nid 88 sound/pci/hda/hda_local.h #define HDA_CODEC_MUTE_BEEP_MONO(xname, nid, channel, xindex, direction) \ nid 89 sound/pci/hda/hda_local.h HDA_CODEC_MUTE_BEEP_MONO_IDX(xname, 0, nid, channel, xindex, direction) nid 91 sound/pci/hda/hda_local.h #define HDA_CODEC_MUTE_BEEP(xname, nid, xindex, direction) \ nid 92 sound/pci/hda/hda_local.h HDA_CODEC_MUTE_BEEP_MONO(xname, nid, 3, xindex, direction) nid 117 sound/pci/hda/hda_local.h #define snd_hda_codec_amp_read(codec, nid, ch, dir, idx) \ nid 118 sound/pci/hda/hda_local.h snd_hdac_regmap_get_amp(&(codec)->core, nid, ch, dir, idx) nid 119 sound/pci/hda/hda_local.h int snd_hda_codec_amp_update(struct hda_codec *codec, hda_nid_t nid, nid 121 sound/pci/hda/hda_local.h int snd_hda_codec_amp_stereo(struct hda_codec *codec, hda_nid_t nid, nid 123 sound/pci/hda/hda_local.h int snd_hda_codec_amp_init(struct hda_codec *codec, hda_nid_t nid, int ch, nid 125 sound/pci/hda/hda_local.h int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid, nid 127 sound/pci/hda/hda_local.h void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir, nid 178 sound/pci/hda/hda_local.h int snd_hda_create_spdif_in_ctls(struct hda_codec *codec, hda_nid_t nid); nid 197 sound/pci/hda/hda_local.h struct snd_ctl_elem_value *ucontrol, hda_nid_t nid, nid 281 sound/pci/hda/hda_local.h hda_nid_t nid; nid 442 sound/pci/hda/hda_local.h int snd_hda_codec_get_pin_target(struct hda_codec *codec, hda_nid_t nid); nid 443 sound/pci/hda/hda_local.h int snd_hda_codec_set_pin_target(struct hda_codec *codec, hda_nid_t nid, nid 446 sound/pci/hda/hda_local.h #define for_each_hda_codec_node(nid, codec) \ nid 447 sound/pci/hda/hda_local.h for ((nid) = (codec)->core.start_nid; (nid) < (codec)->core.end_nid; (nid)++) nid 452 sound/pci/hda/hda_local.h static inline u32 get_wcaps(struct hda_codec *codec, hda_nid_t nid) nid 454 sound/pci/hda/hda_local.h if (nid < codec->core.start_nid || nid 455 sound/pci/hda/hda_local.h nid >= codec->core.start_nid + codec->core.num_nodes) nid 457 sound/pci/hda/hda_local.h return codec->wcaps[nid - codec->core.start_nid]; nid 479 sound/pci/hda/hda_local.h hda_nid_t nid, u32 val) nid 481 sound/pci/hda/hda_local.h if (nid >= codec->core.start_nid && nid 482 sound/pci/hda/hda_local.h nid < codec->core.start_nid + codec->core.num_nodes) nid 483 sound/pci/hda/hda_local.h codec->wcaps[nid - codec->core.start_nid] = val; nid 486 sound/pci/hda/hda_local.h u32 query_amp_caps(struct hda_codec *codec, hda_nid_t nid, int direction); nid 487 sound/pci/hda/hda_local.h int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, nid 501 sound/pci/hda/hda_local.h snd_hda_query_pin_caps(struct hda_codec *codec, hda_nid_t nid) nid 503 sound/pci/hda/hda_local.h return snd_hda_param_read(codec, nid, AC_PAR_PIN_CAP); nid 518 sound/pci/hda/hda_local.h snd_hda_override_pin_caps(struct hda_codec *codec, hda_nid_t nid, nid 521 sound/pci/hda/hda_local.h return snd_hdac_override_parm(&codec->core, nid, AC_PAR_PIN_CAP, caps); nid 524 sound/pci/hda/hda_local.h bool snd_hda_check_amp_caps(struct hda_codec *codec, hda_nid_t nid, nid 527 sound/pci/hda/hda_local.h #define nid_has_mute(codec, nid, dir) \ nid 528 sound/pci/hda/hda_local.h snd_hda_check_amp_caps(codec, nid, dir, (AC_AMPCAP_MUTE | AC_AMPCAP_MIN_MUTE)) nid 529 sound/pci/hda/hda_local.h #define nid_has_volume(codec, nid, dir) \ nid 530 sound/pci/hda/hda_local.h snd_hda_check_amp_caps(codec, nid, dir, AC_AMPCAP_NUM_STEPS) nid 539 sound/pci/hda/hda_local.h hda_nid_t nid; nid 543 sound/pci/hda/hda_local.h int snd_hda_ctl_add(struct hda_codec *codec, hda_nid_t nid, nid 546 sound/pci/hda/hda_local.h unsigned int index, hda_nid_t nid); nid 594 sound/pci/hda/hda_local.h hda_nid_t nid; nid 606 sound/pci/hda/hda_local.h hda_nid_t nid); nid 610 sound/pci/hda/hda_local.h snd_hda_check_power_state(struct hda_codec *codec, hda_nid_t nid, nid 613 sound/pci/hda/hda_local.h return snd_hdac_check_power_state(&codec->core, nid, target_state); nid 617 sound/pci/hda/hda_local.h hda_nid_t nid, nid 620 sound/pci/hda/hda_local.h return snd_hdac_sync_power_state(&codec->core, nid, target_state); nid 623 sound/pci/hda/hda_local.h hda_nid_t nid, nid 697 sound/pci/hda/hda_local.h int snd_hdmi_get_eld_size(struct hda_codec *codec, hda_nid_t nid); nid 698 sound/pci/hda/hda_local.h int snd_hdmi_get_eld(struct hda_codec *codec, hda_nid_t nid, nid 706 sound/pci/hda/hda_local.h int snd_hdmi_get_eld_ati(struct hda_codec *codec, hda_nid_t nid, nid 22 sound/pci/hda/hda_proc.c #define param_read(codec, nid, parm) \ nid 23 sound/pci/hda/hda_proc.c snd_hdac_read_parm_uncached(&(codec)->core, nid, parm) nid 48 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid, nid 56 sound/pci/hda/hda_proc.c if (item->nid == nid) { nid 75 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) nid 82 sound/pci/hda/hda_proc.c if (cpcm->stream[type].nid != nid || cpcm->pcm == NULL) nid 94 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid, int dir) nid 97 sound/pci/hda/hda_proc.c caps = param_read(codec, nid, dir == HDA_OUTPUT ? nid 112 sound/pci/hda/hda_proc.c static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, nid 126 sound/pci/hda/hda_proc.c if (snd_hda_get_raw_connections(codec, nid, &conn, 1) < 0) nid 134 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid, nid 141 sound/pci/hda/hda_proc.c stereo = is_stereo_amps(codec, nid, dir, wcaps, indices); nid 146 sound/pci/hda/hda_proc.c val = snd_hda_codec_read(codec, nid, 0, nid 151 sound/pci/hda/hda_proc.c val = snd_hda_codec_read(codec, nid, 0, nid 200 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) nid 202 sound/pci/hda/hda_proc.c unsigned int pcm = param_read(codec, nid, AC_PAR_PCM); nid 203 sound/pci/hda/hda_proc.c unsigned int stream = param_read(codec, nid, AC_PAR_STREAM); nid 305 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid, nid 313 sound/pci/hda/hda_proc.c caps = param_read(codec, nid, AC_PAR_PIN_CAP); nid 363 sound/pci/hda/hda_proc.c val = snd_hda_codec_read(codec, nid, 0, nid 374 sound/pci/hda/hda_proc.c caps = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_CONFIG_DEFAULT, 0); nid 401 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid, nid 406 sound/pci/hda/hda_proc.c pinctls = snd_hda_codec_read(codec, nid, 0, nid 439 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) nid 441 sound/pci/hda/hda_proc.c unsigned int cap = param_read(codec, nid, AC_PAR_VOL_KNB_CAP); nid 444 sound/pci/hda/hda_proc.c cap = snd_hda_codec_read(codec, nid, 0, nid 451 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid, nid 454 sound/pci/hda/hda_proc.c int conv = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_CONV, 0); nid 461 sound/pci/hda/hda_proc.c int sdi = snd_hda_codec_read(codec, nid, 0, nid 469 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) nid 471 sound/pci/hda/hda_proc.c unsigned int digi1 = snd_hda_codec_read(codec, nid, 0, nid 513 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) nid 526 sound/pci/hda/hda_proc.c int sup = param_read(codec, nid, AC_PAR_POWER_STATE); nid 527 sound/pci/hda/hda_proc.c int pwr = snd_hda_codec_read(codec, nid, 0, nid 554 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) nid 556 sound/pci/hda/hda_proc.c int unsol = snd_hda_codec_read(codec, nid, 0, nid 574 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) nid 577 sound/pci/hda/hda_proc.c unsigned int proc_caps = param_read(codec, nid, AC_PAR_PROC_CAP); nid 587 sound/pci/hda/hda_proc.c oldindex = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_COEF_INDEX, 0); nid 590 sound/pci/hda/hda_proc.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, i); nid 591 sound/pci/hda/hda_proc.c val = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PROC_COEF, nid 595 sound/pci/hda/hda_proc.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, oldindex); nid 599 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid, nid 611 sound/pci/hda/hda_proc.c curr = snd_hda_codec_read(codec, nid, 0, nid 625 sound/pci/hda/hda_proc.c cache_len = snd_hda_get_conn_list(codec, nid, &list); nid 639 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) nid 655 sound/pci/hda/hda_proc.c enable = snd_hda_codec_read(codec, nid, 0, nid 657 sound/pci/hda/hda_proc.c direction = snd_hda_codec_read(codec, nid, 0, nid 659 sound/pci/hda/hda_proc.c wake = snd_hda_codec_read(codec, nid, 0, nid 661 sound/pci/hda/hda_proc.c unsol = snd_hda_codec_read(codec, nid, 0, nid 663 sound/pci/hda/hda_proc.c sticky = snd_hda_codec_read(codec, nid, 0, nid 665 sound/pci/hda/hda_proc.c data = snd_hda_codec_read(codec, nid, 0, nid 678 sound/pci/hda/hda_proc.c print_nid_array(buffer, codec, nid, &codec->mixers); nid 679 sound/pci/hda/hda_proc.c print_nid_array(buffer, codec, nid, &codec->nids); nid 683 sound/pci/hda/hda_proc.c struct hda_codec *codec, hda_nid_t nid) nid 689 sound/pci/hda/hda_proc.c devlist_len = snd_hda_get_devices(codec, nid, dev_list, nid 695 sound/pci/hda/hda_proc.c curr = snd_hda_codec_read(codec, nid, 0, nid 742 sound/pci/hda/hda_proc.c hda_nid_t nid, fg; nid 759 sound/pci/hda/hda_proc.c nodes = snd_hda_get_sub_nodes(codec, fg, &nid); nid 760 sound/pci/hda/hda_proc.c if (! nid || nodes < 0) { nid 770 sound/pci/hda/hda_proc.c for (i = 0; i < nodes; i++, nid++) { nid 772 sound/pci/hda/hda_proc.c param_read(codec, nid, AC_PAR_AUDIO_WIDGET_CAP); nid 777 sound/pci/hda/hda_proc.c snd_iprintf(buffer, "Node 0x%02x [%s] wcaps 0x%x:", nid, nid 801 sound/pci/hda/hda_proc.c print_nid_array(buffer, codec, nid, &codec->mixers); nid 802 sound/pci/hda/hda_proc.c print_nid_array(buffer, codec, nid, &codec->nids); nid 803 sound/pci/hda/hda_proc.c print_nid_pcms(buffer, codec, nid); nid 812 sound/pci/hda/hda_proc.c conn_len = snd_hda_get_num_raw_conns(codec, nid); nid 819 sound/pci/hda/hda_proc.c if (snd_hda_get_raw_connections(codec, nid, conn, nid 827 sound/pci/hda/hda_proc.c print_amp_caps(buffer, codec, nid, HDA_INPUT); nid 832 sound/pci/hda/hda_proc.c print_amp_vals(buffer, codec, nid, HDA_INPUT, nid 835 sound/pci/hda/hda_proc.c print_amp_vals(buffer, codec, nid, HDA_INPUT, nid 840 sound/pci/hda/hda_proc.c print_amp_caps(buffer, codec, nid, HDA_OUTPUT); nid 844 sound/pci/hda/hda_proc.c print_amp_vals(buffer, codec, nid, HDA_OUTPUT, nid 847 sound/pci/hda/hda_proc.c print_amp_vals(buffer, codec, nid, HDA_OUTPUT, nid 854 sound/pci/hda/hda_proc.c print_pin_caps(buffer, codec, nid, &supports_vref); nid 855 sound/pci/hda/hda_proc.c print_pin_ctls(buffer, codec, nid, supports_vref); nid 859 sound/pci/hda/hda_proc.c print_vol_knob(buffer, codec, nid); nid 863 sound/pci/hda/hda_proc.c print_audio_io(buffer, codec, nid, wid_type); nid 865 sound/pci/hda/hda_proc.c print_digital_conv(buffer, codec, nid); nid 868 sound/pci/hda/hda_proc.c print_pcm_caps(buffer, codec, nid); nid 874 sound/pci/hda/hda_proc.c print_unsol_cap(buffer, codec, nid); nid 877 sound/pci/hda/hda_proc.c print_power_state(buffer, codec, nid); nid 885 sound/pci/hda/hda_proc.c print_device_list(buffer, codec, nid); nid 888 sound/pci/hda/hda_proc.c print_conn_list(buffer, codec, nid, wid_type, nid 892 sound/pci/hda/hda_proc.c print_proc_caps(buffer, codec, nid); nid 895 sound/pci/hda/hda_proc.c codec->proc_widget_hook(buffer, codec, nid); nid 89 sound/pci/hda/hda_sysfs.c pin->nid, pin->cfg); nid 227 sound/pci/hda/hda_sysfs.c v->nid, v->verb, v->param); nid 236 sound/pci/hda/hda_sysfs.c int nid, verb, param; nid 238 sound/pci/hda/hda_sysfs.c if (sscanf(buf, "%i %i %i", &nid, &verb, ¶m) != 3) nid 240 sound/pci/hda/hda_sysfs.c if (!nid || !verb) nid 248 sound/pci/hda/hda_sysfs.c v->nid = nid; nid 383 sound/pci/hda/hda_sysfs.c int nid, cfg, err; nid 385 sound/pci/hda/hda_sysfs.c if (sscanf(buf, "%i %i", &nid, &cfg) != 2) nid 387 sound/pci/hda/hda_sysfs.c if (!nid) nid 390 sound/pci/hda/hda_sysfs.c err = snd_hda_add_pincfg(codec, &codec->user_pins, nid, cfg); nid 42 sound/pci/hda/patch_analog.c #define set_beep_amp(spec, nid, idx, dir) \ nid 43 sound/pci/hda/patch_analog.c ((spec)->beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir)) /* mono */ nid 45 sound/pci/hda/patch_analog.c #define set_beep_amp(spec, nid, idx, dir) /* NOP */ nid 171 sound/pci/hda/patch_ca0132.c hda_nid_t nid; nid 185 sound/pci/hda/patch_ca0132.c .nid = SURROUND, nid 193 sound/pci/hda/patch_ca0132.c .nid = CRYSTALIZER, nid 201 sound/pci/hda/patch_ca0132.c .nid = DIALOG_PLUS, nid 209 sound/pci/hda/patch_ca0132.c .nid = SMART_VOLUME, nid 217 sound/pci/hda/patch_ca0132.c .nid = X_BASS, nid 225 sound/pci/hda/patch_ca0132.c .nid = EQUALIZER, nid 236 sound/pci/hda/patch_ca0132.c .nid = ECHO_CANCELLATION, nid 244 sound/pci/hda/patch_ca0132.c .nid = VOICE_FOCUS, nid 252 sound/pci/hda/patch_ca0132.c .nid = MIC_SVM, nid 260 sound/pci/hda/patch_ca0132.c .nid = NOISE_REDUCTION, nid 268 sound/pci/hda/patch_ca0132.c .nid = VOICEFX, nid 303 sound/pci/hda/patch_ca0132.c hda_nid_t nid; nid 313 sound/pci/hda/patch_ca0132.c .nid = WEDGE_ANGLE, nid 321 sound/pci/hda/patch_ca0132.c .nid = SVM_LEVEL, nid 329 sound/pci/hda/patch_ca0132.c .nid = EQUALIZER_BAND_0, nid 337 sound/pci/hda/patch_ca0132.c .nid = EQUALIZER_BAND_1, nid 345 sound/pci/hda/patch_ca0132.c .nid = EQUALIZER_BAND_2, nid 353 sound/pci/hda/patch_ca0132.c .nid = EQUALIZER_BAND_3, nid 361 sound/pci/hda/patch_ca0132.c .nid = EQUALIZER_BAND_4, nid 369 sound/pci/hda/patch_ca0132.c .nid = EQUALIZER_BAND_5, nid 377 sound/pci/hda/patch_ca0132.c .nid = EQUALIZER_BAND_6, nid 385 sound/pci/hda/patch_ca0132.c .nid = EQUALIZER_BAND_7, nid 393 sound/pci/hda/patch_ca0132.c .nid = EQUALIZER_BAND_8, nid 401 sound/pci/hda/patch_ca0132.c .nid = EQUALIZER_BAND_9, nid 415 sound/pci/hda/patch_ca0132.c hda_nid_t nid; nid 427 sound/pci/hda/patch_ca0132.c .nid = VOICEFX, nid 511 sound/pci/hda/patch_ca0132.c hda_nid_t nid; nid 523 sound/pci/hda/patch_ca0132.c .nid = EQ_PRESET_ENUM, nid 1192 sound/pci/hda/patch_ca0132.c static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, nid 1196 sound/pci/hda/patch_ca0132.c response = snd_hda_codec_read(codec, nid, 0, verb, parm); nid 1202 sound/pci/hda/patch_ca0132.c static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, nid 1205 sound/pci/hda/patch_ca0132.c return codec_send_command(codec, nid, VENDOR_CHIPIO_STREAM_FORMAT, nid 1210 sound/pci/hda/patch_ca0132.c hda_nid_t nid, unsigned char stream, nid 1216 sound/pci/hda/patch_ca0132.c return codec_send_command(codec, nid, AC_VERB_SET_CHANNEL_STREAMID, nid 3601 sound/pci/hda/patch_ca0132.c snd_hda_codec_setup_stream(codec, hinfo->nid, nid 3616 sound/pci/hda/patch_ca0132.c snd_hda_codec_cleanup_stream(codec, hinfo->nid); nid 3644 sound/pci/hda/patch_ca0132.c #define CA0132_CODEC_VOL_MONO(xname, nid, channel, dir) \ nid 3655 sound/pci/hda/patch_ca0132.c .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, 0, dir) } nid 3662 sound/pci/hda/patch_ca0132.c #define CA0132_ALT_CODEC_VOL_MONO(xname, nid, channel, dir) \ nid 3673 sound/pci/hda/patch_ca0132.c .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, 0, dir) } nid 3675 sound/pci/hda/patch_ca0132.c #define CA0132_CODEC_MUTE_MONO(xname, nid, channel, dir) \ nid 3682 sound/pci/hda/patch_ca0132.c .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, 0, dir) } nid 3685 sound/pci/hda/patch_ca0132.c #define CA0132_CODEC_VOL(xname, nid, dir) \ nid 3686 sound/pci/hda/patch_ca0132.c CA0132_CODEC_VOL_MONO(xname, nid, 3, dir) nid 3687 sound/pci/hda/patch_ca0132.c #define CA0132_ALT_CODEC_VOL(xname, nid, dir) \ nid 3688 sound/pci/hda/patch_ca0132.c CA0132_ALT_CODEC_VOL_MONO(xname, nid, 3, dir) nid 3689 sound/pci/hda/patch_ca0132.c #define CA0132_CODEC_MUTE(xname, nid, dir) \ nid 3690 sound/pci/hda/patch_ca0132.c CA0132_CODEC_MUTE_MONO(xname, nid, 3, dir) nid 3834 sound/pci/hda/patch_ca0132.c static int tuning_ctl_set(struct hda_codec *codec, hda_nid_t nid, nid 3840 sound/pci/hda/patch_ca0132.c if (nid == ca0132_tuning_ctls[i].nid) nid 3857 sound/pci/hda/patch_ca0132.c hda_nid_t nid = get_amp_nid(kcontrol); nid 3859 sound/pci/hda/patch_ca0132.c int idx = nid - TUNING_CTL_START_NID; nid 3883 sound/pci/hda/patch_ca0132.c hda_nid_t nid = get_amp_nid(kcontrol); nid 3887 sound/pci/hda/patch_ca0132.c idx = nid - TUNING_CTL_START_NID; nid 3895 sound/pci/hda/patch_ca0132.c tuning_ctl_set(codec, nid, voice_focus_vals_lookup, idx); nid 3918 sound/pci/hda/patch_ca0132.c hda_nid_t nid = get_amp_nid(kcontrol); nid 3922 sound/pci/hda/patch_ca0132.c idx = nid - TUNING_CTL_START_NID; nid 3930 sound/pci/hda/patch_ca0132.c tuning_ctl_set(codec, nid, mic_svm_vals_lookup, idx); nid 3953 sound/pci/hda/patch_ca0132.c hda_nid_t nid = get_amp_nid(kcontrol); nid 3957 sound/pci/hda/patch_ca0132.c idx = nid - TUNING_CTL_START_NID; nid 3965 sound/pci/hda/patch_ca0132.c tuning_ctl_set(codec, nid, equalizer_vals_lookup, idx); nid 3974 sound/pci/hda/patch_ca0132.c hda_nid_t pnid, hda_nid_t nid, nid 3980 sound/pci/hda/patch_ca0132.c HDA_CODEC_VOLUME_MONO(namestr, nid, 1, 0, type); nid 4008 sound/pci/hda/patch_ca0132.c HDA_COMPOSE_AMP_VAL(nid, 1, 0, type); nid 4010 sound/pci/hda/patch_ca0132.c return snd_hda_ctl_add(codec, nid, snd_ctl_new1(&knew, codec)); nid 4021 sound/pci/hda/patch_ca0132.c ca0132_tuning_ctls[i].nid, nid 4155 sound/pci/hda/patch_ca0132.c static int ca0132_effects_set(struct hda_codec *codec, hda_nid_t nid, long val); nid 4805 sound/pci/hda/patch_ca0132.c hda_nid_t nid; nid 4809 sound/pci/hda/patch_ca0132.c nid = spec->shared_out_nid; nid 4812 sound/pci/hda/patch_ca0132.c nid = spec->shared_mic_nid; nid 4819 sound/pci/hda/patch_ca0132.c *shared_nid = nid; nid 4850 sound/pci/hda/patch_ca0132.c static int ca0132_effects_set(struct hda_codec *codec, hda_nid_t nid, long val) nid 4856 sound/pci/hda/patch_ca0132.c int idx = nid - EFFECT_START_NID; nid 4862 sound/pci/hda/patch_ca0132.c if ((nid >= OUT_EFFECT_START_NID) && (nid < OUT_EFFECT_END_NID)) { nid 4866 sound/pci/hda/patch_ca0132.c if (spec->cur_out_type == SURROUND_OUT && nid == X_BASS) nid 4871 sound/pci/hda/patch_ca0132.c if ((nid >= IN_EFFECT_START_NID) && (nid < IN_EFFECT_END_NID)) { nid 4877 sound/pci/hda/patch_ca0132.c if ((nid == VOICE_FOCUS) && (spec->cur_mic_type != DIGITAL_MIC)) nid 4881 sound/pci/hda/patch_ca0132.c if ((nid == VOICE_FOCUS) && ca0132_use_pci_mmio(spec) nid 4900 sound/pci/hda/patch_ca0132.c if ((nid == NOISE_REDUCTION) && ca0132_use_pci_mmio(spec) nid 4922 sound/pci/hda/patch_ca0132.c nid, val); nid 4940 sound/pci/hda/patch_ca0132.c hda_nid_t nid; nid 4950 sound/pci/hda/patch_ca0132.c nid = OUT_EFFECT_START_NID; nid 4952 sound/pci/hda/patch_ca0132.c for (; nid < OUT_EFFECT_END_NID; nid++, i++) nid 4953 sound/pci/hda/patch_ca0132.c ret |= ca0132_effects_set(codec, nid, spec->effects_switch[i]); nid 4988 sound/pci/hda/patch_ca0132.c hda_nid_t nid; nid 4996 sound/pci/hda/patch_ca0132.c nid = IN_EFFECT_START_NID; nid 4998 sound/pci/hda/patch_ca0132.c for (; nid < IN_EFFECT_END_NID; nid++, i++) nid 4999 sound/pci/hda/patch_ca0132.c ret |= ca0132_effects_set(codec, nid, spec->effects_switch[i]); nid 5064 sound/pci/hda/patch_ca0132.c hda_nid_t nid = get_amp_nid(kcontrol); nid 5071 sound/pci/hda/patch_ca0132.c if (nid == VNID_HP_SEL) { nid 5083 sound/pci/hda/patch_ca0132.c if (nid == VNID_AMIC1_SEL) { nid 5091 sound/pci/hda/patch_ca0132.c if (nid == VNID_HP_ASEL) { nid 5099 sound/pci/hda/patch_ca0132.c if (nid == VNID_AMIC1_ASEL) { nid 5105 sound/pci/hda/patch_ca0132.c effective = ca0132_is_vnode_effective(codec, nid, &shared_nid); nid 5131 sound/pci/hda/patch_ca0132.c static int ca0132_alt_slider_ctl_set(struct hda_codec *codec, hda_nid_t nid, nid 5140 sound/pci/hda/patch_ca0132.c if (nid == X_BASS) nid 5146 sound/pci/hda/patch_ca0132.c if (nid == XBASS_XOVER) { nid 5148 sound/pci/hda/patch_ca0132.c if (ca0132_effects[i].nid == X_BASS) nid 5157 sound/pci/hda/patch_ca0132.c if (nid == ca0132_effects[i].nid) nid 5186 sound/pci/hda/patch_ca0132.c hda_nid_t nid = get_amp_nid(kcontrol); nid 5188 sound/pci/hda/patch_ca0132.c int idx = nid - OUT_EFFECT_START_NID; nid 5229 sound/pci/hda/patch_ca0132.c hda_nid_t nid = get_amp_nid(kcontrol); nid 5240 sound/pci/hda/patch_ca0132.c ca0132_alt_slider_ctl_set(codec, nid, float_xbass_xover_lookup, idx); nid 5250 sound/pci/hda/patch_ca0132.c hda_nid_t nid = get_amp_nid(kcontrol); nid 5254 sound/pci/hda/patch_ca0132.c idx = nid - EFFECT_START_NID; nid 5262 sound/pci/hda/patch_ca0132.c ca0132_alt_slider_ctl_set(codec, nid, float_zero_to_one_lookup, idx); nid 5721 sound/pci/hda/patch_ca0132.c hda_nid_t nid = get_amp_nid(kcontrol); nid 5726 sound/pci/hda/patch_ca0132.c if ((nid >= VNODE_START_NID) && (nid < VNODE_END_NID)) { nid 5728 sound/pci/hda/patch_ca0132.c *valp = spec->vnode_lswitch[nid - VNODE_START_NID]; nid 5732 sound/pci/hda/patch_ca0132.c *valp = spec->vnode_rswitch[nid - VNODE_START_NID]; nid 5739 sound/pci/hda/patch_ca0132.c if ((nid >= EFFECT_START_NID) && (nid < EFFECT_END_NID)) { nid 5740 sound/pci/hda/patch_ca0132.c *valp = spec->effects_switch[nid - EFFECT_START_NID]; nid 5745 sound/pci/hda/patch_ca0132.c if (nid == spec->input_pins[0]) { nid 5758 sound/pci/hda/patch_ca0132.c hda_nid_t nid = get_amp_nid(kcontrol); nid 5764 sound/pci/hda/patch_ca0132.c nid, *valp); nid 5768 sound/pci/hda/patch_ca0132.c if ((nid >= VNODE_START_NID) && (nid < VNODE_END_NID)) { nid 5770 sound/pci/hda/patch_ca0132.c spec->vnode_lswitch[nid - VNODE_START_NID] = *valp; nid 5774 sound/pci/hda/patch_ca0132.c spec->vnode_rswitch[nid - VNODE_START_NID] = *valp; nid 5782 sound/pci/hda/patch_ca0132.c if (nid == PLAY_ENHANCEMENT) { nid 5783 sound/pci/hda/patch_ca0132.c spec->effects_switch[nid - EFFECT_START_NID] = *valp; nid 5789 sound/pci/hda/patch_ca0132.c if (nid == CRYSTAL_VOICE) { nid 5790 sound/pci/hda/patch_ca0132.c spec->effects_switch[nid - EFFECT_START_NID] = *valp; nid 5796 sound/pci/hda/patch_ca0132.c if (((nid >= OUT_EFFECT_START_NID) && (nid < OUT_EFFECT_END_NID)) || nid 5797 sound/pci/hda/patch_ca0132.c ((nid >= IN_EFFECT_START_NID) && (nid < IN_EFFECT_END_NID))) { nid 5798 sound/pci/hda/patch_ca0132.c spec->effects_switch[nid - EFFECT_START_NID] = *valp; nid 5799 sound/pci/hda/patch_ca0132.c changed = ca0132_effects_set(codec, nid, *valp); nid 5804 sound/pci/hda/patch_ca0132.c if (nid == spec->input_pins[0]) { nid 5818 sound/pci/hda/patch_ca0132.c if (nid == ZXR_HEADPHONE_GAIN) { nid 5841 sound/pci/hda/patch_ca0132.c static void ca0132_alt_dsp_volume_put(struct hda_codec *codec, hda_nid_t nid) nid 5847 sound/pci/hda/patch_ca0132.c if (nid == VNID_SPK) nid 5852 sound/pci/hda/patch_ca0132.c lookup_val = spec->vnode_lvol[nid - VNODE_START_NID]; nid 5859 sound/pci/hda/patch_ca0132.c lookup_val = spec->vnode_rvol[nid - VNODE_START_NID]; nid 5876 sound/pci/hda/patch_ca0132.c hda_nid_t nid = get_amp_nid(kcontrol); nid 5882 sound/pci/hda/patch_ca0132.c switch (nid) { nid 5885 sound/pci/hda/patch_ca0132.c nid = spec->shared_out_nid; nid 5888 sound/pci/hda/patch_ca0132.c kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir); nid 5895 sound/pci/hda/patch_ca0132.c nid = spec->shared_mic_nid; nid 5898 sound/pci/hda/patch_ca0132.c kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir); nid 5914 sound/pci/hda/patch_ca0132.c hda_nid_t nid = get_amp_nid(kcontrol); nid 5920 sound/pci/hda/patch_ca0132.c *valp = spec->vnode_lvol[nid - VNODE_START_NID]; nid 5924 sound/pci/hda/patch_ca0132.c *valp = spec->vnode_rvol[nid - VNODE_START_NID]; nid 5935 sound/pci/hda/patch_ca0132.c hda_nid_t nid = get_amp_nid(kcontrol); nid 5944 sound/pci/hda/patch_ca0132.c spec->vnode_lvol[nid - VNODE_START_NID] = *valp; nid 5948 sound/pci/hda/patch_ca0132.c spec->vnode_rvol[nid - VNODE_START_NID] = *valp; nid 5953 sound/pci/hda/patch_ca0132.c effective = ca0132_is_vnode_effective(codec, nid, &shared_nid); nid 5982 sound/pci/hda/patch_ca0132.c hda_nid_t nid = get_amp_nid(kcontrol); nid 5988 sound/pci/hda/patch_ca0132.c switch (nid) { nid 6022 sound/pci/hda/patch_ca0132.c hda_nid_t nid = get_amp_nid(kcontrol); nid 6028 sound/pci/hda/patch_ca0132.c switch (nid) { nid 6031 sound/pci/hda/patch_ca0132.c nid = spec->shared_out_nid; nid 6034 sound/pci/hda/patch_ca0132.c kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir); nid 6041 sound/pci/hda/patch_ca0132.c nid = spec->shared_mic_nid; nid 6044 sound/pci/hda/patch_ca0132.c kcontrol->private_value = HDA_COMPOSE_AMP_VAL(nid, ch, 0, dir); nid 6056 sound/pci/hda/patch_ca0132.c static int ca0132_alt_add_effect_slider(struct hda_codec *codec, hda_nid_t nid, nid 6062 sound/pci/hda/patch_ca0132.c HDA_CODEC_VOLUME_MONO(namestr, nid, 1, 0, type); nid 6068 sound/pci/hda/patch_ca0132.c switch (nid) { nid 6079 sound/pci/hda/patch_ca0132.c HDA_COMPOSE_AMP_VAL(nid, 1, 0, type); nid 6083 sound/pci/hda/patch_ca0132.c return snd_hda_ctl_add(codec, nid, snd_ctl_new1(&knew, codec)); nid 6091 sound/pci/hda/patch_ca0132.c static int add_fx_switch(struct hda_codec *codec, hda_nid_t nid, nid 6098 sound/pci/hda/patch_ca0132.c CA0132_CODEC_MUTE_MONO(namestr, nid, 1, type); nid 6102 sound/pci/hda/patch_ca0132.c if (ca0132_use_alt_controls(spec) && (nid <= IN_EFFECT_END_NID)) nid 6107 sound/pci/hda/patch_ca0132.c return snd_hda_ctl_add(codec, nid, snd_ctl_new1(&knew, codec)); nid 6405 sound/pci/hda/patch_ca0132.c err = add_fx_switch(codec, ca0132_effects[i].nid, nid 6438 sound/pci/hda/patch_ca0132.c ca0132_effects[i].nid, nid 6611 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->dacs[0]; nid 6616 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[0]; nid 6626 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[1]; nid 6634 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[2]; nid 6646 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->dig_out; nid 6651 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->dig_in; nid 6667 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[0]; nid 6680 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->dig_out; nid 6685 sound/pci/hda/patch_ca0132.c info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->dig_in; nid 6726 sound/pci/hda/patch_ca0132.c static void refresh_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir) nid 6730 sound/pci/hda/patch_ca0132.c caps = snd_hda_param_read(codec, nid, dir == HDA_OUTPUT ? nid 6732 sound/pci/hda/patch_ca0132.c snd_hda_override_amp_caps(codec, nid, dir, caps); nid 7611 sound/pci/hda/patch_ca0132.c tbl = snd_hda_jack_tbl_get(codec, cb->nid); nid 8704 sound/pci/hda/patch_ca0132.c spec->spec_init_verbs[0].nid = 0x0b; nid 175 sound/pci/hda/patch_cirrus.c static bool is_active_pin(struct hda_codec *codec, hda_nid_t nid) nid 178 sound/pci/hda/patch_cirrus.c val = snd_hda_codec_get_pincfg(codec, nid); nid 1049 sound/pci/hda/patch_cirrus.c hda_nid_t nid = cfg->dig_out_pins[i]; nid 1050 sound/pci/hda/patch_cirrus.c if (get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) { nid 1052 sound/pci/hda/patch_cirrus.c snd_hda_jack_detect_enable_callback(codec, nid, nid 56 sound/pci/hda/patch_conexant.c static int set_beep_amp(struct conexant_spec *spec, hda_nid_t nid, nid 60 sound/pci/hda/patch_conexant.c unsigned int beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir); nid 63 sound/pci/hda/patch_conexant.c spec->gen.beep_nid = nid; nid 77 sound/pci/hda/patch_conexant.c hda_nid_t nid; nid 79 sound/pci/hda/patch_conexant.c for_each_hda_codec_node(nid, codec) nid 80 sound/pci/hda/patch_conexant.c if (get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) nid 81 sound/pci/hda/patch_conexant.c return set_beep_amp(spec, nid, 0, HDA_OUTPUT); nid 96 sound/pci/hda/patch_conexant.c hda_nid_t nid; nid 98 sound/pci/hda/patch_conexant.c for_each_hda_codec_node(nid, codec) { nid 99 sound/pci/hda/patch_conexant.c if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) nid 101 sound/pci/hda/patch_conexant.c if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_EAPD)) nid 103 sound/pci/hda/patch_conexant.c spec->eapds[spec->num_eapds++] = nid; nid 319 sound/pci/hda/patch_conexant.c #define update_mic_pin(codec, nid, val) \ nid 320 sound/pci/hda/patch_conexant.c snd_hda_codec_write_cache(codec, nid, 0, \ nid 763 sound/pci/hda/patch_hdmi.c static void check_presence_and_report(struct hda_codec *codec, hda_nid_t nid, nid 767 sound/pci/hda/patch_hdmi.c int pin_idx = pin_id_to_pin_index(codec, nid, dev_id); nid 785 sound/pci/hda/patch_hdmi.c check_presence_and_report(codec, jack->nid, 0); nid 807 sound/pci/hda/patch_hdmi.c codec->addr, jack->nid, dev_entry, !!(res & AC_UNSOL_RES_IA), nid 811 sound/pci/hda/patch_hdmi.c check_presence_and_report(codec, jack->nid, 0); nid 857 sound/pci/hda/patch_hdmi.c hda_nid_t cvt_nid, hda_nid_t nid) nid 867 sound/pci/hda/patch_hdmi.c if (!snd_hda_check_power_state(codec, nid, AC_PWRST_D0)) { nid 868 sound/pci/hda/patch_hdmi.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_POWER_STATE, nid 871 sound/pci/hda/patch_hdmi.c pwr = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_POWER_STATE, 0); nid 873 sound/pci/hda/patch_hdmi.c codec_dbg(codec, "Haswell HDMI audio: Power for pin 0x%x is now D%d\n", nid, pwr); nid 1052 sound/pci/hda/patch_hdmi.c hda_nid_t nid; nid 1085 sound/pci/hda/patch_hdmi.c nid = per_pin->pin_nid; nid 1093 sound/pci/hda/patch_hdmi.c dev_id_saved = snd_hda_get_dev_select(codec, nid); nid 1094 sound/pci/hda/patch_hdmi.c snd_hda_set_dev_select(codec, nid, per_pin->dev_id); nid 1095 sound/pci/hda/patch_hdmi.c curr = snd_hda_codec_read(codec, nid, 0, nid 1098 sound/pci/hda/patch_hdmi.c snd_hda_set_dev_select(codec, nid, dev_id_saved); nid 1111 sound/pci/hda/patch_hdmi.c cvt_idx, nid); nid 1112 sound/pci/hda/patch_hdmi.c snd_hda_codec_write_cache(codec, nid, 0, nid 1118 sound/pci/hda/patch_hdmi.c snd_hda_set_dev_select(codec, nid, dev_id_saved); nid 1173 sound/pci/hda/patch_hdmi.c hinfo->nid = per_cvt->cvt_nid; nid 1246 sound/pci/hda/patch_hdmi.c hinfo->nid = per_cvt->cvt_nid; nid 1276 sound/pci/hda/patch_hdmi.c hinfo->nid = 0; nid 1410 sound/pci/hda/patch_hdmi.c per_pin->cvt_nid = hinfo->nid; nid 1412 sound/pci/hda/patch_hdmi.c mux_idx = hdmi_get_pin_cvt_mux(spec, per_pin, hinfo->nid); nid 1420 sound/pci/hda/patch_hdmi.c snd_hda_spdif_ctls_assign(codec, per_pin->pcm_idx, hinfo->nid); nid 1422 sound/pci/hda/patch_hdmi.c non_pcm = check_non_pcm_per_cvt(codec, hinfo->nid); nid 1694 sound/pci/hda/patch_hdmi.c hda_nid_t nid); nid 1820 sound/pci/hda/patch_hdmi.c hda_nid_t nid; nid 1823 sound/pci/hda/patch_hdmi.c nodes = snd_hda_get_sub_nodes(codec, codec->core.afg, &nid); nid 1824 sound/pci/hda/patch_hdmi.c if (!nid || nodes < 0) { nid 1829 sound/pci/hda/patch_hdmi.c for (i = 0; i < nodes; i++, nid++) { nid 1833 sound/pci/hda/patch_hdmi.c caps = get_wcaps(codec, nid); nid 1841 sound/pci/hda/patch_hdmi.c hdmi_add_cvt(codec, nid); nid 1844 sound/pci/hda/patch_hdmi.c hdmi_add_pin(codec, nid); nid 1883 sound/pci/hda/patch_hdmi.c hda_nid_t cvt_nid = hinfo->nid; nid 1964 sound/pci/hda/patch_hdmi.c snd_hda_codec_cleanup_stream(codec, hinfo->nid); nid 1979 sound/pci/hda/patch_hdmi.c if (hinfo->nid) { nid 1983 sound/pci/hda/patch_hdmi.c cvt_idx = cvt_nid_to_cvt_index(codec, hinfo->nid); nid 1990 sound/pci/hda/patch_hdmi.c hinfo->nid = 0; nid 2443 sound/pci/hda/patch_hdmi.c static void reprogram_jack_detect(struct hda_codec *codec, hda_nid_t nid, nid 2448 sound/pci/hda/patch_hdmi.c tbl = snd_hda_jack_tbl_get(codec, nid); nid 2454 sound/pci/hda/patch_hdmi.c snd_hda_codec_write_cache(codec, nid, 0, nid 2461 sound/pci/hda/patch_hdmi.c snd_hda_jack_detect_enable(codec, nid); nid 2580 sound/pci/hda/patch_hdmi.c hda_nid_t nid) nid 2586 sound/pci/hda/patch_hdmi.c nconns = snd_hda_get_connections(codec, nid, conns, ARRAY_SIZE(conns)); nid 2592 sound/pci/hda/patch_hdmi.c codec_dbg(codec, "hdmi: haswell: override pin connection 0x%x\n", nid); nid 2593 sound/pci/hda/patch_hdmi.c snd_hda_override_conn_list(codec, nid, spec->num_cvts, spec->cvt_nids); nid 2949 sound/pci/hda/patch_hdmi.c pstr->nid = per_cvt->cvt_nid; nid 3362 sound/pci/hda/patch_hdmi.c .nid = nvhdmi_master_con_nid_7x, nid 3713 sound/pci/hda/patch_hdmi.c static int atihdmi_pin_get_eld(struct hda_codec *codec, hda_nid_t nid, nid 3717 sound/pci/hda/patch_hdmi.c return snd_hdmi_get_eld_ati(codec, nid, buf, eld_size, nid 132 sound/pci/hda/patch_realtek.c static int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, nid 137 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, coef_idx); nid 138 sound/pci/hda/patch_realtek.c val = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PROC_COEF, 0); nid 145 sound/pci/hda/patch_realtek.c static void alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, nid 148 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_COEF_INDEX, coef_idx); nid 149 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_PROC_COEF, coef_val); nid 155 sound/pci/hda/patch_realtek.c static void alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, nid 159 sound/pci/hda/patch_realtek.c unsigned int val = alc_read_coefex_idx(codec, nid, coef_idx); nid 162 sound/pci/hda/patch_realtek.c alc_write_coefex_idx(codec, nid, coef_idx, nid 181 sound/pci/hda/patch_realtek.c unsigned char nid; nid 188 sound/pci/hda/patch_realtek.c { .nid = (_nid), .idx = (_idx), .mask = (_mask), .val = (_val) } nid 196 sound/pci/hda/patch_realtek.c for (; fw->nid; fw++) { nid 198 sound/pci/hda/patch_realtek.c alc_write_coefex_idx(codec, fw->nid, fw->idx, fw->val); nid 200 sound/pci/hda/patch_realtek.c alc_update_coefex_idx(codec, fw->nid, fw->idx, nid 302 sound/pci/hda/patch_realtek.c static void alc_fix_pll_init(struct hda_codec *codec, hda_nid_t nid, nid 306 sound/pci/hda/patch_realtek.c spec->pll_nid = nid; nid 326 sound/pci/hda/patch_realtek.c val = snd_hda_codec_read(codec, jack->nid, 0, nid 464 sound/pci/hda/patch_realtek.c static void set_eapd(struct hda_codec *codec, hda_nid_t nid, int on) nid 466 sound/pci/hda/patch_realtek.c if (get_wcaps_type(get_wcaps(codec, nid)) != AC_WID_PIN) nid 468 sound/pci/hda/patch_realtek.c if (snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_EAPD) nid 469 sound/pci/hda/patch_realtek.c snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_EAPD_BTLENABLE, nid 501 sound/pci/hda/patch_realtek.c if (pin->nid != mic_pin) nid 502 sound/pci/hda/patch_realtek.c snd_hda_codec_read(codec, pin->nid, 0, nid 608 sound/pci/hda/patch_realtek.c unsigned nid = 0; nid 626 sound/pci/hda/patch_realtek.c nid = 0x1d; nid 628 sound/pci/hda/patch_realtek.c nid = 0x17; nid 629 sound/pci/hda/patch_realtek.c ass = snd_hda_codec_get_pincfg(codec, nid); nid 658 sound/pci/hda/patch_realtek.c nid, spec->cdefine.sku_cfg); nid 673 sound/pci/hda/patch_realtek.c static int find_idx_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums) nid 677 sound/pci/hda/patch_realtek.c if (list[i] == nid) nid 682 sound/pci/hda/patch_realtek.c static bool found_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums) nid 684 sound/pci/hda/patch_realtek.c return find_idx_in_nid_list(nid, list, nums) >= 0; nid 699 sound/pci/hda/patch_realtek.c unsigned nid; nid 723 sound/pci/hda/patch_realtek.c nid = 0x1d; nid 725 sound/pci/hda/patch_realtek.c nid = 0x17; nid 726 sound/pci/hda/patch_realtek.c ass = snd_hda_codec_get_pincfg(codec, nid); nid 729 sound/pci/hda/patch_realtek.c ass, nid); nid 785 sound/pci/hda/patch_realtek.c hda_nid_t nid; nid 787 sound/pci/hda/patch_realtek.c nid = ports[tmp]; nid 788 sound/pci/hda/patch_realtek.c if (found_in_nid_list(nid, spec->gen.autocfg.line_out_pins, nid 791 sound/pci/hda/patch_realtek.c spec->gen.autocfg.hp_pins[0] = nid; nid 1054 sound/pci/hda/patch_realtek.c static int set_beep_amp(struct alc_spec *spec, hda_nid_t nid, nid 1058 sound/pci/hda/patch_realtek.c unsigned int beep_amp = HDA_COMPOSE_AMP_VAL(nid, 3, idx, dir); nid 1097 sound/pci/hda/patch_realtek.c #define set_beep_amp(spec, nid, idx, dir) 0 nid 4005 sound/pci/hda/patch_realtek.c hda_nid_t nid, nid 4010 sound/pci/hda/patch_realtek.c if (power_state != AC_PWRST_D3 || nid == 0 || nid 4011 sound/pci/hda/patch_realtek.c (nid != spec->mute_led_nid && nid != spec->cap_mute_led_nid)) nid 4015 sound/pci/hda/patch_realtek.c snd_hda_set_pin_ctl(codec, nid, nid 4016 sound/pci/hda/patch_realtek.c snd_hda_codec_get_pin_target(codec, nid)); nid 4018 sound/pci/hda/patch_realtek.c return snd_hda_gen_path_power_filter(codec, nid, power_state); nid 5591 sound/pci/hda/patch_realtek.c hda_nid_t nid; nid 5598 sound/pci/hda/patch_realtek.c nid = cfg->inputs[i].pin; nid 5599 sound/pci/hda/patch_realtek.c defcfg = snd_hda_codec_get_pincfg(codec, nid); nid 5602 sound/pci/hda/patch_realtek.c return nid; nid 5640 sound/pci/hda/patch_realtek.c hda_nid_t nid = cfg->inputs[i].pin; nid 5644 sound/pci/hda/patch_realtek.c defcfg = snd_hda_codec_get_pincfg(codec, nid); nid 5648 sound/pci/hda/patch_realtek.c snd_hda_override_amp_caps(codec, nid, HDA_INPUT, nid 8715 sound/pci/hda/patch_realtek.c hda_nid_t nid, nid 8719 sound/pci/hda/patch_realtek.c if (nid == codec->core.afg && power_state == AC_PWRST_D3 && spec->gpio_data) nid 149 sound/pci/hda/patch_si3054.c snd_hda_codec_setup_stream(codec, hinfo->nid, nid 174 sound/pci/hda/patch_si3054.c .nid = 0x1, nid 194 sound/pci/hda/patch_si3054.c info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = codec->core.mfg; nid 195 sound/pci/hda/patch_si3054.c info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = codec->core.mfg; nid 262 sound/pci/hda/patch_sigmatel.c if (spec->gen.all_adcs[i] == hinfo->nid) { nid 271 sound/pci/hda/patch_sigmatel.c snd_hda_codec_write(codec, hinfo->nid, 0, nid 276 sound/pci/hda/patch_sigmatel.c snd_hda_codec_write(codec, hinfo->nid, 0, nid 335 sound/pci/hda/patch_sigmatel.c hda_nid_t nid, unsigned int new_vref) nid 339 sound/pci/hda/patch_sigmatel.c codec_dbg(codec, "%s, nid %x ctl %x\n", __func__, nid, new_vref); nid 340 sound/pci/hda/patch_sigmatel.c pinctl = snd_hda_codec_read(codec, nid, 0, nid 350 sound/pci/hda/patch_sigmatel.c error = snd_hda_set_pin_ctl_cache(codec, nid, pinctl); nid 360 sound/pci/hda/patch_sigmatel.c hda_nid_t nid, nid 363 sound/pci/hda/patch_sigmatel.c if (nid == codec->core.afg && power_state == AC_PWRST_D3) nid 365 sound/pci/hda/patch_sigmatel.c return snd_hda_gen_path_power_filter(codec, nid, power_state); nid 427 sound/pci/hda/patch_sigmatel.c static void stac_toggle_power_map(struct hda_codec *codec, hda_nid_t nid, nid 434 sound/pci/hda/patch_sigmatel.c if (spec->pwr_nids[idx] == nid) nid 467 sound/pci/hda/patch_sigmatel.c if (jack && jack->nid) { nid 468 sound/pci/hda/patch_sigmatel.c stac_toggle_power_map(codec, jack->nid, nid 469 sound/pci/hda/patch_sigmatel.c snd_hda_jack_detect(codec, jack->nid), nid 476 sound/pci/hda/patch_sigmatel.c hda_nid_t nid = spec->pwr_nids[i]; nid 477 sound/pci/hda/patch_sigmatel.c if (!snd_hda_jack_tbl_get(codec, nid)) nid 479 sound/pci/hda/patch_sigmatel.c stac_toggle_power_map(codec, nid, nid 480 sound/pci/hda/patch_sigmatel.c snd_hda_jack_detect(codec, nid), nid 510 sound/pci/hda/patch_sigmatel.c hda_nid_t nid = spec->pwr_nids[i]; nid 511 sound/pci/hda/patch_sigmatel.c unsigned int def_conf = snd_hda_codec_get_pincfg(codec, nid); nid 514 sound/pci/hda/patch_sigmatel.c spec->vref_mute_led_nid != nid && nid 515 sound/pci/hda/patch_sigmatel.c is_jack_detectable(codec, nid)) { nid 516 sound/pci/hda/patch_sigmatel.c snd_hda_jack_detect_enable_callback(codec, nid, nid 520 sound/pci/hda/patch_sigmatel.c stac_toggle_power_map(codec, nid, false, false); nid 522 sound/pci/hda/patch_sigmatel.c stac_toggle_power_map(codec, nid, true, false); nid 823 sound/pci/hda/patch_sigmatel.c hda_nid_t nid) nid 826 sound/pci/hda/patch_sigmatel.c u32 caps = query_amp_caps(codec, nid, HDA_OUTPUT); nid 838 sound/pci/hda/patch_sigmatel.c if (spec->anabeep_nid == nid) nid 847 sound/pci/hda/patch_sigmatel.c HDA_COMPOSE_AMP_VAL(nid, 1, 0, HDA_OUTPUT); nid 858 sound/pci/hda/patch_sigmatel.c HDA_COMPOSE_AMP_VAL(nid, 1, 0, HDA_OUTPUT); nid 4295 sound/pci/hda/patch_sigmatel.c hda_nid_t nid = spec->gen.beep_nid; nid 4298 sound/pci/hda/patch_sigmatel.c err = stac_auto_create_beep_ctls(codec, nid); nid 4305 sound/pci/hda/patch_sigmatel.c caps = query_amp_caps(codec, nid, HDA_OUTPUT); nid 4393 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec, hda_nid_t nid) nid 4395 sound/pci/hda/patch_sigmatel.c if (nid == codec->core.afg) nid 4397 sound/pci/hda/patch_sigmatel.c snd_hda_codec_read(codec, nid, 0, nid 4411 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec, hda_nid_t nid) nid 4413 sound/pci/hda/patch_sigmatel.c stac92hd_proc_hook(buffer, codec, nid); nid 4414 sound/pci/hda/patch_sigmatel.c if (nid == codec->core.afg) nid 4419 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec, hda_nid_t nid) nid 4421 sound/pci/hda/patch_sigmatel.c if (nid == codec->core.afg) nid 4426 sound/pci/hda/patch_sigmatel.c struct hda_codec *codec, hda_nid_t nid) nid 4428 sound/pci/hda/patch_sigmatel.c if (nid == codec->core.afg) nid 258 sound/pci/hda/patch_via.c static int set_beep_amp(struct via_spec *spec, hda_nid_t nid, nid 262 sound/pci/hda/patch_via.c unsigned int beep_amp = HDA_COMPOSE_AMP_VAL(nid, 1, idx, dir); nid 265 sound/pci/hda/patch_via.c spec->gen.beep_nid = nid; nid 279 sound/pci/hda/patch_via.c hda_nid_t nid; nid 281 sound/pci/hda/patch_via.c for_each_hda_codec_node(nid, codec) nid 282 sound/pci/hda/patch_via.c if (get_wcaps_type(get_wcaps(codec, nid)) == AC_WID_BEEP) nid 283 sound/pci/hda/patch_via.c return set_beep_amp(spec, nid, 0, HDA_OUTPUT); nid 300 sound/pci/hda/patch_via.c for (; p->nid; p++) { nid 302 sound/pci/hda/patch_via.c v = snd_hda_codec_amp_read(codec, p->nid, ch, p->dir, nid 405 sound/pci/hda/patch_via.c static int via_check_power_status(struct hda_codec *codec, hda_nid_t nid) nid 410 sound/pci/hda/patch_via.c return snd_hda_check_amp_list_power(codec, &spec->gen.loopback, nid); nid 438 sound/pci/hda/patch_via.c static void vt1708_set_pinconfig_connect(struct hda_codec *codec, hda_nid_t nid) nid 443 sound/pci/hda/patch_via.c def_conf = snd_hda_codec_get_pincfg(codec, nid); nid 449 sound/pci/hda/patch_via.c snd_hda_codec_set_pincfg(codec, nid, def_conf); nid 817 sound/pci/hda/patch_via.c hda_nid_t nid; nid 829 sound/pci/hda/patch_via.c for_each_hda_codec_node(nid, codec) { nid 830 sound/pci/hda/patch_via.c unsigned int caps = get_wcaps(codec, nid); nid 833 sound/pci/hda/patch_via.c conn[nums++] = nid; nid 74 sound/pci/lola/lola.c static int corb_send_verb(struct lola *chip, unsigned int nid, nid 81 sound/pci/lola/lola.c chip->last_cmd_nid = nid; nid 85 sound/pci/lola/lola.c data |= (nid << 20) | (verb << 8); nid 182 sound/pci/lola/lola.c int lola_codec_write(struct lola *chip, unsigned int nid, unsigned int verb, nid 186 sound/pci/lola/lola.c nid, verb, data, extdata); nid 187 sound/pci/lola/lola.c return corb_send_verb(chip, nid, verb, data, extdata); nid 191 sound/pci/lola/lola.c int lola_codec_read(struct lola *chip, unsigned int nid, unsigned int verb, nid 198 sound/pci/lola/lola.c nid, verb, data, extdata); nid 199 sound/pci/lola/lola.c err = corb_send_verb(chip, nid, verb, data, extdata); nid 438 sound/pci/lola/lola.c int nid, err; nid 479 sound/pci/lola/lola.c nid = 0x02; nid 480 sound/pci/lola/lola.c err = lola_init_pcm(chip, CAPT, &nid); nid 483 sound/pci/lola/lola.c err = lola_init_pcm(chip, PLAY, &nid); nid 487 sound/pci/lola/lola.c err = lola_init_pins(chip, CAPT, &nid); nid 490 sound/pci/lola/lola.c err = lola_init_pins(chip, PLAY, &nid); nid 495 sound/pci/lola/lola.c err = lola_init_clock_widget(chip, nid); nid 498 sound/pci/lola/lola.c nid++; nid 501 sound/pci/lola/lola.c err = lola_init_mixer_widget(chip, nid); nid 504 sound/pci/lola/lola.c nid++; nid 218 sound/pci/lola/lola.h unsigned int nid; nid 244 sound/pci/lola/lola.h unsigned int nid; nid 263 sound/pci/lola/lola.h unsigned int nid; nid 279 sound/pci/lola/lola.h unsigned int nid; /* audio widget NID */ nid 472 sound/pci/lola/lola.h int lola_codec_write(struct lola *chip, unsigned int nid, unsigned int verb, nid 474 sound/pci/lola/lola.h int lola_codec_read(struct lola *chip, unsigned int nid, unsigned int verb, nid 478 sound/pci/lola/lola.h #define lola_read_param(chip, nid, param, val) \ nid 479 sound/pci/lola/lola.h lola_codec_read(chip, nid, LOLA_VERB_PARAMETERS, param, 0, val, NULL) nid 488 sound/pci/lola/lola.h int lola_init_clock_widget(struct lola *chip, int nid); nid 499 sound/pci/lola/lola.h int lola_init_mixer_widget(struct lola *chip, int nid); nid 110 sound/pci/lola/lola_clock.c int lola_init_clock_widget(struct lola *chip, int nid) nid 116 sound/pci/lola/lola_clock.c err = lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); nid 118 sound/pci/lola/lola_clock.c dev_err(chip->card->dev, "Can't read wcaps for 0x%x\n", nid); nid 127 sound/pci/lola/lola_clock.c chip->clock.nid = nid; nid 129 sound/pci/lola/lola_clock.c dev_dbg(chip->card->dev, "clock_list nid=%x, entries=%d\n", nid, nid 145 sound/pci/lola/lola_clock.c err = lola_codec_read(chip, nid, LOLA_VERB_GET_CLOCK_LIST, nid 206 sound/pci/lola/lola_clock.c err = lola_codec_read(chip, chip->clock.nid, nid 225 sound/pci/lola/lola_clock.c err = lola_codec_read(chip, chip->clock.nid, nid 19 sound/pci/lola/lola_mixer.c int dir, int nid) nid 24 sound/pci/lola/lola_mixer.c pin->nid = nid; nid 25 sound/pci/lola/lola_mixer.c err = lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); nid 27 sound/pci/lola/lola_mixer.c dev_err(chip->card->dev, "Can't read wcaps for 0x%x\n", nid); nid 38 sound/pci/lola/lola_mixer.c dev_err(chip->card->dev, "Invalid wcaps 0x%x for 0x%x\n", val, nid); nid 48 sound/pci/lola/lola_mixer.c err = lola_read_param(chip, nid, LOLA_PAR_AMP_OUT_CAP, &val); nid 50 sound/pci/lola/lola_mixer.c err = lola_read_param(chip, nid, LOLA_PAR_AMP_IN_CAP, &val); nid 52 sound/pci/lola/lola_mixer.c dev_err(chip->card->dev, "Can't read AMP-caps for 0x%x\n", nid); nid 66 sound/pci/lola/lola_mixer.c err = lola_codec_read(chip, nid, LOLA_VERB_GET_MAX_LEVEL, 0, 0, &val, nid 69 sound/pci/lola/lola_mixer.c dev_err(chip->card->dev, "Can't get MAX_LEVEL 0x%x\n", nid); nid 83 sound/pci/lola/lola_mixer.c int i, err, nid; nid 84 sound/pci/lola/lola_mixer.c nid = *nidp; nid 85 sound/pci/lola/lola_mixer.c for (i = 0; i < chip->pin[dir].num_pins; i++, nid++) { nid 86 sound/pci/lola/lola_mixer.c err = lola_init_pin(chip, &chip->pin[dir].pins[i], dir, nid); nid 92 sound/pci/lola/lola_mixer.c *nidp = nid; nid 101 sound/pci/lola/lola_mixer.c int lola_init_mixer_widget(struct lola *chip, int nid) nid 106 sound/pci/lola/lola_mixer.c err = lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); nid 108 sound/pci/lola/lola_mixer.c dev_err(chip->card->dev, "Can't read wcaps for 0x%x\n", nid); nid 117 sound/pci/lola/lola_mixer.c chip->mixer.nid = nid; nid 232 sound/pci/lola/lola_mixer.c return lola_codec_write(chip, chip->mixer.nid, nid 254 sound/pci/lola/lola_mixer.c return lola_codec_write(chip, chip->mixer.nid, nid 260 sound/pci/lola/lola_mixer.c lola_codec_write(chip, chip->mixer.nid, nid 286 sound/pci/lola/lola_mixer.c return lola_codec_write(chip, chip->mixer.nid, LOLA_VERB_SET_MIX_GAIN, nid 308 sound/pci/lola/lola_mixer.c return lola_codec_write(chip, chip->mixer.nid, nid 361 sound/pci/lola/lola_mixer.c lola_codec_write(chip, chip->mixer.nid, nid 365 sound/pci/lola/lola_mixer.c lola_codec_write(chip, chip->mixer.nid, nid 369 sound/pci/lola/lola_mixer.c lola_codec_write(chip, chip->mixer.nid, nid 373 sound/pci/lola/lola_mixer.c lola_codec_write(chip, chip->mixer.nid, nid 402 sound/pci/lola/lola_mixer.c err = lola_codec_write(chip, pin->nid, nid 433 sound/pci/lola/lola_mixer.c err = lola_codec_write(chip, chip->pcm[CAPT].streams[n].nid, nid 460 sound/pci/lola/lola_mixer.c lola_codec_write(chip, chip->mixer.nid, nid 465 sound/pci/lola/lola_mixer.c lola_codec_write(chip, chip->mixer.nid, nid 402 sound/pci/lola/lola_pcm.c err = lola_codec_read(chip, str->nid, LOLA_VERB_SET_STREAM_FORMAT, nid 413 sound/pci/lola/lola_pcm.c err = lola_codec_read(chip, str[i].nid, nid 630 sound/pci/lola/lola_pcm.c int idx, int nid, int dir) nid 635 sound/pci/lola/lola_pcm.c str->nid = nid; nid 640 sound/pci/lola/lola_pcm.c err = lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); nid 642 sound/pci/lola/lola_pcm.c dev_err(chip->card->dev, "Can't read wcaps for 0x%x\n", nid); nid 650 sound/pci/lola/lola_pcm.c val, nid); nid 660 sound/pci/lola/lola_pcm.c val, nid); nid 668 sound/pci/lola/lola_pcm.c err = lola_read_param(chip, nid, LOLA_PAR_STREAM_FORMATS, &val); nid 670 sound/pci/lola/lola_pcm.c dev_err(chip->card->dev, "Can't read FORMATS 0x%x\n", nid); nid 678 sound/pci/lola/lola_pcm.c "Invalid formats 0x%x for 0x%x", val, nid); nid 687 sound/pci/lola/lola_pcm.c int i, nid, err; nid 689 sound/pci/lola/lola_pcm.c nid = *nidp; nid 690 sound/pci/lola/lola_pcm.c for (i = 0; i < pcm->num_streams; i++, nid++) { nid 691 sound/pci/lola/lola_pcm.c err = lola_init_stream(chip, &pcm->streams[i], i, nid, dir); nid 695 sound/pci/lola/lola_pcm.c *nidp = nid; nid 17 sound/pci/lola/lola_proc.c struct lola *chip, int nid, const char *name) nid 21 sound/pci/lola/lola_proc.c lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); nid 22 sound/pci/lola/lola_proc.c snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); nid 23 sound/pci/lola/lola_proc.c lola_read_param(chip, nid, LOLA_PAR_STREAM_FORMATS, &val); nid 28 sound/pci/lola/lola_proc.c struct lola *chip, int nid, unsigned int ampcap, nid 33 sound/pci/lola/lola_proc.c lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); nid 34 sound/pci/lola/lola_proc.c snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); nid 37 sound/pci/lola/lola_proc.c lola_read_param(chip, nid, ampcap, &val); nid 44 sound/pci/lola/lola_proc.c lola_codec_read(chip, nid, LOLA_VERB_GET_MAX_LEVEL, 0, 0, &val, NULL); nid 49 sound/pci/lola/lola_proc.c struct lola *chip, int nid) nid 54 sound/pci/lola/lola_proc.c lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); nid 55 sound/pci/lola/lola_proc.c snd_iprintf(buffer, "Node 0x%02x [Clock] wcaps 0x%x\n", nid, val); nid 62 sound/pci/lola/lola_proc.c lola_codec_read(chip, nid, LOLA_VERB_GET_CLOCK_LIST, nid 89 sound/pci/lola/lola_proc.c struct lola *chip, int nid) nid 93 sound/pci/lola/lola_proc.c lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); nid 94 sound/pci/lola/lola_proc.c snd_iprintf(buffer, "Node 0x%02x [Mixer] wcaps 0x%x\n", nid, val); nid 102 sound/pci/lola/lola_proc.c int i, nid; nid 112 sound/pci/lola/lola_proc.c nid = 2; nid 113 sound/pci/lola/lola_proc.c for (i = 0; i < chip->pcm[CAPT].num_streams; i++, nid++) nid 114 sound/pci/lola/lola_proc.c print_audio_widget(buffer, chip, nid, "[Audio-In]"); nid 115 sound/pci/lola/lola_proc.c for (i = 0; i < chip->pcm[PLAY].num_streams; i++, nid++) nid 116 sound/pci/lola/lola_proc.c print_audio_widget(buffer, chip, nid, "[Audio-Out]"); nid 117 sound/pci/lola/lola_proc.c for (i = 0; i < chip->pin[CAPT].num_pins; i++, nid++) nid 118 sound/pci/lola/lola_proc.c print_pin_widget(buffer, chip, nid, LOLA_PAR_AMP_IN_CAP, nid 120 sound/pci/lola/lola_proc.c for (i = 0; i < chip->pin[PLAY].num_pins; i++, nid++) nid 121 sound/pci/lola/lola_proc.c print_pin_widget(buffer, chip, nid, LOLA_PAR_AMP_OUT_CAP, nid 124 sound/pci/lola/lola_proc.c print_clock_widget(buffer, chip, nid); nid 125 sound/pci/lola/lola_proc.c nid++; nid 128 sound/pci/lola/lola_proc.c print_mixer_widget(buffer, chip, nid); nid 129 sound/pci/lola/lola_proc.c nid++; nid 56 sound/soc/codecs/hdac_hdmi.c hda_nid_t nid; nid 76 sound/soc/codecs/hdac_hdmi.c hda_nid_t nid; nid 224 sound/soc/codecs/hdac_hdmi.c static int hdac_hdmi_get_port_len(struct hdac_device *hdev, hda_nid_t nid) nid 229 sound/soc/codecs/hdac_hdmi.c caps = get_wcaps(hdev, nid); nid 235 sound/soc/codecs/hdac_hdmi.c param = snd_hdac_read_parm_uncached(hdev, nid, AC_PAR_DEVLIST_LEN); nid 250 sound/soc/codecs/hdac_hdmi.c return snd_hdac_codec_read(hdev, port->pin->nid, nid 267 sound/soc/codecs/hdac_hdmi.c num_ports = hdac_hdmi_get_port_len(hdev, port->pin->nid); nid 277 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, port->pin->nid, 0, nid 382 sound/soc/codecs/hdac_hdmi.c hdmi->chmap.ops.set_channel_count(hdev, cvt->nid, channels); nid 384 sound/soc/codecs/hdac_hdmi.c snd_hdac_setup_channel_mapping(&hdmi->chmap, pin->nid, false, ca, nid 420 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_set_dip_index(hdev, pin->nid, 0x0, 0x0); nid 421 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, pin->nid, 0, nid 426 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_set_dip_index(hdev, pin->nid, 0x0, 0x0); nid 429 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, pin->nid, 0, nid 433 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, pin->nid, 0, nid 438 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_set_dip_index(hdev, pin->nid, 0x0, 0x0); nid 439 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, pin->nid, 0, nid 494 sound/soc/codecs/hdac_hdmi.c if (!(get_wcaps(hdev, pin->nid) & AC_WCAP_CONN_LIST)) { nid 497 sound/soc/codecs/hdac_hdmi.c pin->nid, get_wcaps(hdev, pin->nid)); nid 504 sound/soc/codecs/hdac_hdmi.c port->num_mux_nids = snd_hdac_get_connections(hdev, pin->nid, nid 509 sound/soc/codecs/hdac_hdmi.c pin->nid, port->id); nid 512 sound/soc/codecs/hdac_hdmi.c port->num_mux_nids, pin->nid, port->id); nid 549 sound/soc/codecs/hdac_hdmi.c if (port->mux_nids[i] == cvt->nid && nid 575 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, port->pin->nid, 0, nid 578 sound/soc/codecs/hdac_hdmi.c __func__, cvt->name, port->pin->nid, cvt_idx); nid 616 sound/soc/codecs/hdac_hdmi.c port->pin->nid, port->id); nid 662 sound/soc/codecs/hdac_hdmi.c chans = get_wcaps(hdev, cvt->nid); nid 671 sound/soc/codecs/hdac_hdmi.c err = snd_hdac_query_supported_pcm(hdev, cvt->nid, nid 678 sound/soc/codecs/hdac_hdmi.c cvt->nid, err); nid 739 sound/soc/codecs/hdac_hdmi.c hda_nid_t nid, unsigned int pwr_state) nid 744 sound/soc/codecs/hdac_hdmi.c if (get_wcaps(hdev, nid) & AC_WCAP_POWER) { nid 745 sound/soc/codecs/hdac_hdmi.c if (!snd_hdac_check_power_state(hdev, nid, pwr_state)) { nid 747 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_read(hdev, nid, 0, nid 751 sound/soc/codecs/hdac_hdmi.c nid, pwr_state); nid 760 sound/soc/codecs/hdac_hdmi.c hda_nid_t nid, int val) nid 762 sound/soc/codecs/hdac_hdmi.c if (get_wcaps(hdev, nid) & AC_WCAP_OUT_AMP) nid 763 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, nid, 0, nid 788 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_set_power_state(hdev, port->pin->nid, AC_PWRST_D0); nid 791 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, port->pin->nid, 0, nid 794 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_set_amp(hdev, port->pin->nid, AMP_OUT_UNMUTE); nid 799 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_set_amp(hdev, port->pin->nid, AMP_OUT_MUTE); nid 802 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, port->pin->nid, 0, nid 805 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_set_power_state(hdev, port->pin->nid, AC_PWRST_D3); nid 830 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_set_power_state(hdev, cvt->nid, AC_PWRST_D0); nid 833 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, cvt->nid, 0, nid 837 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, cvt->nid, 0, nid 840 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, cvt->nid, 0, nid 842 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, cvt->nid, 0, nid 855 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, cvt->nid, 0, nid 857 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, cvt->nid, 0, nid 860 sound/soc/codecs/hdac_hdmi.c hdac_hdmi_set_power_state(hdev, cvt->nid, AC_PWRST_D3); nid 888 sound/soc/codecs/hdac_hdmi.c snd_hdac_codec_write(hdev, port->pin->nid, 0, nid 987 sound/soc/codecs/hdac_hdmi.c pin->nid, port->id); nid 1012 sound/soc/codecs/hdac_hdmi.c sprintf(mux_items, "cvt %d", cvt->nid); nid 1096 sound/soc/codecs/hdac_hdmi.c sprintf(widget_name, "Converter %d", cvt->nid); nid 1110 sound/soc/codecs/hdac_hdmi.c pin->nid, pin->ports[j].id); nid 1128 sound/soc/codecs/hdac_hdmi.c pin->nid, pin->ports[j].id); nid 1203 sound/soc/codecs/hdac_hdmi.c static int hdac_hdmi_add_cvt(struct hdac_device *hdev, hda_nid_t nid) nid 1213 sound/soc/codecs/hdac_hdmi.c cvt->nid = nid; nid 1214 sound/soc/codecs/hdac_hdmi.c sprintf(name, "cvt %d", cvt->nid); nid 1273 sound/soc/codecs/hdac_hdmi.c size = snd_hdac_acomp_get_eld(hdev, pin->nid, port_id, nid 1297 sound/soc/codecs/hdac_hdmi.c __func__, pin->nid, port->id); nid 1353 sound/soc/codecs/hdac_hdmi.c static int hdac_hdmi_add_pin(struct hdac_device *hdev, hda_nid_t nid) nid 1363 sound/soc/codecs/hdac_hdmi.c pin->nid = nid; nid 1454 sound/soc/codecs/hdac_hdmi.c ret = snd_hdac_query_supported_pcm(hdev, cvt->nid, nid 1506 sound/soc/codecs/hdac_hdmi.c hda_nid_t nid; nid 1514 sound/soc/codecs/hdac_hdmi.c num_nodes = snd_hdac_get_sub_nodes(hdev, hdev->afg, &nid); nid 1515 sound/soc/codecs/hdac_hdmi.c if (!nid || num_nodes <= 0) { nid 1520 sound/soc/codecs/hdac_hdmi.c for (i = 0; i < num_nodes; i++, nid++) { nid 1524 sound/soc/codecs/hdac_hdmi.c caps = get_wcaps(hdev, nid); nid 1533 sound/soc/codecs/hdac_hdmi.c ret = hdac_hdmi_add_cvt(hdev, nid); nid 1539 sound/soc/codecs/hdac_hdmi.c ret = hdac_hdmi_add_pin(hdev, nid); nid 1629 sound/soc/codecs/hdac_hdmi.c if (pin->nid != pin_nid) nid 1692 sound/soc/codecs/hdac_hdmi.c pin->nid, pin->ports[j].id); nid 1741 sound/soc/codecs/hdac_hdmi.c pin->nid, pin->ports[j].id); nid 1839 sound/soc/codecs/hdac_hdmi.c if (hdac_hdmi_get_port_len(hdev, pin->nid) == 0) nid 501 sound/soc/codecs/rt298.c unsigned int nid; nid 503 sound/soc/codecs/rt298.c nid = (w->reg >> 20) & 0xff; nid 508 sound/soc/codecs/rt298.c VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, nid, 0), nid 513 sound/soc/codecs/rt298.c switch (nid) { nid 533 sound/soc/codecs/rt298.c VERB_CMD(AC_VERB_SET_AMP_GAIN_MUTE, nid, 0),