/linux-master/sound/pci/hda/ |
H A D | hda_eld.c | 122 static unsigned int hdmi_get_eld_data(struct hda_codec *codec, hda_nid_t nid, argument 127 val = snd_hda_codec_read(codec, nid, 0, 288 int snd_hdmi_get_eld_size(struct hda_codec *codec, hda_nid_t nid) argument 290 return snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_HDMI_DIP_SIZE, 294 int snd_hdmi_get_eld(struct hda_codec *codec, hda_nid_t nid, argument 306 size = snd_hdmi_get_eld_size(codec, nid); 319 unsigned int val = hdmi_get_eld_data(codec, nid, i); 636 int snd_hdmi_get_eld_ati(struct hda_codec *codec, hda_nid_t nid, argument 645 spkalloc = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SPEAKER_ALLOCATION, 0); 669 snd_hda_codec_write(codec, nid, [all...] |
/linux-master/mm/ |
H A D | mmzone.c | 20 int nid = next_online_node(pgdat->node_id); local 22 if (nid == MAX_NUMNODES) 24 return NODE_DATA(nid);
|
H A D | hugetlb.c | 1313 int nid = folio_nid(folio); local 1318 list_move(&folio->lru, &h->hugepage_freelists[nid]); 1320 h->free_huge_pages_node[nid]++; 1325 int nid) 1331 list_for_each_entry(folio, &h->hugepage_freelists[nid], lru) { 1342 h->free_huge_pages_node[nid]--; 1350 int nid, nodemask_t *nmask) 1358 zonelist = node_zonelist(nid, gfp_mask); 1399 int nid; local 1414 nid 1324 dequeue_hugetlb_folio_node_exact(struct hstate *h, int nid) argument 1349 dequeue_hugetlb_folio_nodemask(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask) argument 1447 next_node_allowed(int nid, nodemask_t *nodes_allowed) argument 1455 get_valid_node_allowed(int nid, nodemask_t *nodes_allowed) argument 1471 int nid; local 1489 int nid; local 1555 int nid = folio_nid(folio); local 1565 alloc_gigantic_folio(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nodemask) argument 1603 alloc_gigantic_folio(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nodemask) argument 1611 alloc_gigantic_folio(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nodemask) argument 1644 int nid = folio_nid(folio); local 1699 int nid = folio_nid(folio); local 1980 int nid = folio_nid(folio); local 2043 __prep_account_new_huge_page(struct hstate *h, int nid) argument 2065 prep_new_hugetlb_folio(struct hstate *h, struct folio *folio, int nid) argument 2182 alloc_buddy_hugetlb_folio(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask, nodemask_t *node_alloc_noretry) argument 2245 __alloc_fresh_hugetlb_folio(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask, nodemask_t *node_alloc_noretry) argument 2279 only_alloc_fresh_hugetlb_folio(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask, nodemask_t *node_alloc_noretry) argument 2299 alloc_fresh_hugetlb_folio(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask, nodemask_t *node_alloc_noretry) argument 2512 alloc_surplus_hugetlb_folio(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask) argument 2553 alloc_migrate_hugetlb_folio(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask) argument 2586 int nid; local 3017 int nid = folio_nid(old_folio); local 3288 __alloc_bootmem_huge_page(struct hstate *h, int nid) argument 3340 int nid = folio_nid(folio); local 3404 gather_bootmem_prealloc_node(unsigned long nid) argument 3446 int nid; local 3468 hugetlb_hstate_alloc_pages_onenode(struct hstate *h, int nid) argument 3764 set_max_huge_pages(struct hstate *h, unsigned long count, int nid, nodemask_t *nodes_allowed) argument 3938 int i, nid = folio_nid(folio); local 4071 int nid; local 4082 __nr_hugepages_store_common(bool obey_mempolicy, struct hstate *h, int nid, unsigned long count, size_t len) argument 4121 int nid; local 4201 int nid; local 4226 int nid; local 4246 int nid; local 4428 int nid; local 4516 int nid; local 5074 hugetlb_report_node_meminfo(char *buf, int len, int nid) argument 5090 hugetlb_show_meminfo_node(int nid) argument 7750 int nid, count = 0; local 7791 int nid; local [all...] |
H A D | mempolicy.c | 172 * Lookup the closest node by distance if @nid is not in state. 460 pgoff_t ilx, int *nid); 489 * Check if the folio's nid is in qp->nmask. 491 * If MPOL_MF_INVERT is set in qp->flags, check if the nid is 497 int nid = folio_nid(folio); local 500 return node_isset(nid, *qp->nmask) == !(flags & MPOL_MF_INVERT); 1071 .nid = dest, 1217 int nid = numa_node_id(); local 1229 nodemask = policy_nodemask(gfp, pol, ilx, &nid); 1230 return alloc_hugetlb_folio_nodemask(h, nid, nodemas 1901 unsigned int nid; local 1986 int nid; local 2028 int nid; local 2044 policy_nodemask(gfp_t gfp, struct mempolicy *pol, pgoff_t ilx, int *nid) argument 2106 int nid; local 2189 alloc_pages_preferred_many(gfp_t gfp, unsigned int order, int nid, nodemask_t *nodemask) argument 2220 alloc_pages_mpol(gfp_t gfp, unsigned int order, struct mempolicy *pol, pgoff_t ilx, int nid) argument 2496 alloc_pages_bulk_array_preferred_many(gfp_t gfp, int nid, struct mempolicy *pol, unsigned long nr_pages, struct page **page_array) argument 2527 int nid; local 3066 int nid, prefer = 0; local 3332 int nid; member in struct:iw_node_attr 3403 add_weight_node(int nid, struct kobject *wi_kobj) argument 3439 int nid, err; local [all...] |
H A D | show_mem.c | 89 void si_meminfo_node(struct sysinfo *val, int nid) argument 95 pg_data_t *pgdat = NODE_DATA(nid); 101 val->freeram = sum_zone_node_page_state(nid, NR_FREE_PAGES); 125 static bool show_mem_node_skip(unsigned int flags, int nid, nodemask_t *nodemask) argument 138 return !node_isset(nid, *nodemask); 189 int cpu, nid; local 389 for_each_online_node(nid) { 390 if (show_mem_node_skip(filter, nid, nodemask)) 392 hugetlb_show_meminfo_node(nid);
|
/linux-master/sound/pci/lola/ |
H A D | lola_clock.c | 110 int lola_init_clock_widget(struct lola *chip, int nid) argument 116 err = lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); 118 dev_err(chip->card->dev, "Can't read wcaps for 0x%x\n", nid); 127 chip->clock.nid = nid; 129 dev_dbg(chip->card->dev, "clock_list nid=%x, entries=%d\n", nid, 145 err = lola_codec_read(chip, nid, LOLA_VERB_GET_CLOCK_LIST, 206 err = lola_codec_read(chip, chip->clock.nid, 225 err = lola_codec_read(chip, chip->clock.nid, [all...] |
H A D | lola_mixer.c | 19 int dir, int nid) 24 pin->nid = nid; 25 err = lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); 27 dev_err(chip->card->dev, "Can't read wcaps for 0x%x\n", nid); 38 dev_err(chip->card->dev, "Invalid wcaps 0x%x for 0x%x\n", val, nid); 48 err = lola_read_param(chip, nid, LOLA_PAR_AMP_OUT_CAP, &val); 50 err = lola_read_param(chip, nid, LOLA_PAR_AMP_IN_CAP, &val); 52 dev_err(chip->card->dev, "Can't read AMP-caps for 0x%x\n", nid); 66 err = lola_codec_read(chip, nid, LOLA_VERB_GET_MAX_LEVE 18 lola_init_pin(struct lola *chip, struct lola_pin *pin, int dir, int nid) argument 83 int i, err, nid; local 101 lola_init_mixer_widget(struct lola *chip, int nid) argument [all...] |
H A D | lola_pcm.c | 401 err = lola_codec_read(chip, str->nid, LOLA_VERB_SET_STREAM_FORMAT, 412 err = lola_codec_read(chip, str[i].nid, 622 int idx, int nid, int dir) 627 str->nid = nid; 632 err = lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); 634 dev_err(chip->card->dev, "Can't read wcaps for 0x%x\n", nid); 642 val, nid); 652 val, nid); 660 err = lola_read_param(chip, nid, LOLA_PAR_STREAM_FORMAT 621 lola_init_stream(struct lola *chip, struct lola_stream *str, int idx, int nid, int dir) argument 679 int i, nid, err; local [all...] |
/linux-master/arch/x86/include/asm/ |
H A D | highmem.h | 72 extern void add_highpages_with_active_regions(int nid, unsigned long start_pfn,
|
/linux-master/fs/erofs/ |
H A D | dir.c | 34 erofs_err(dir->i_sb, "bogus dirent @ nid %llu", 35 EROFS_I(dir)->nid); 41 le64_to_cpu(de->nid), d_type)) 68 erofs_err(sb, "fail to readdir of logical block %u of nid %llu", 69 i, EROFS_I(dir)->nid); 76 erofs_err(sb, "invalid de[0].nameoff %u @ nid %llu", 77 nameoff, EROFS_I(dir)->nid);
|
H A D | namei.c | 114 "corrupted dir block %d @ nid %llu", 115 mid, EROFS_I(dir)->nid); 161 int erofs_namei(struct inode *dir, const struct qstr *name, erofs_nid_t *nid, argument 186 *nid = le64_to_cpu(de->nid); 197 erofs_nid_t nid; local 206 err = erofs_namei(dir, &dentry->d_name, &nid, &d_type); 214 inode = erofs_iget(dir->i_sb, nid);
|
/linux-master/drivers/base/test/ |
H A D | test_async_driver_probe.c | 80 test_platform_device_register_node(char *name, int id, int nid) argument 89 if (nid != NUMA_NO_NODE) 90 set_dev_node(&pdev->dev, nid); 108 int err, nid, cpu; local 113 nid = cpu_to_node(cpu); 117 nid); 147 nid = cpu_to_node(cpu); 152 nid); 175 nid = cpu_to_node(cpu);
|
/linux-master/arch/x86/kernel/cpu/sgx/ |
H A D | main.c | 441 static struct sgx_epc_page *__sgx_alloc_epc_page_from_node(int nid) argument 443 struct sgx_numa_node *node = &sgx_numa_nodes[nid]; 477 int nid = nid_of_current; local 487 nid = next_node_in(nid, sgx_numa_mask); 488 if (nid == nid_of_current) 491 page = __sgx_alloc_epc_page_from_node(nid); 773 static void __init arch_update_sysfs_visibility(int nid) argument 775 struct node *node = node_devices[nid]; 784 static void __init arch_update_sysfs_visibility(int nid) {} argument 791 int nid; local [all...] |
/linux-master/arch/powerpc/mm/ |
H A D | mem.c | 63 int nid, pgprot_t prot) 73 int __ref arch_create_linear_mapping(int nid, u64 start, u64 size, argument 80 rc = create_section_mapping(start, start + size, nid, 126 int __ref add_pages(int nid, unsigned long start_pfn, unsigned long nr_pages, argument 131 ret = __add_pages(nid, start_pfn, nr_pages, params); 142 int __ref arch_add_memory(int nid, u64 start, u64 size, argument 149 rc = arch_create_linear_mapping(nid, start, size, params); 152 rc = add_pages(nid, start_pfn, nr_pages, params); 62 create_section_mapping(unsigned long start, unsigned long end, int nid, pgprot_t prot) argument
|
/linux-master/drivers/base/ |
H A D | memory.c | 198 zone = zone_for_pfn_range(mem->online_type, mem->nid, mem->group, 435 static int print_allowed_zone(char *buf, int len, int nid, argument 442 zone = zone_for_pfn_range(online_type, nid, group, start_pfn, nr_pages); 457 int nid = mem->nid; local 476 default_zone = zone_for_pfn_range(MMOP_ONLINE, nid, group, 480 len += print_allowed_zone(buf, len, nid, group, start_pfn, nr_pages, 482 len += print_allowed_zone(buf, len, nid, group, start_pfn, nr_pages, 554 int nid, ret; local 568 nid 702 early_node_zone_for_memory_block(struct memory_block *mem, int nid) argument 749 memory_block_add_nid(struct memory_block *mem, int nid, enum meminit_context context) argument 1115 memory_group_register_static(int nid, unsigned long max_pages) argument 1145 memory_group_register_dynamic(int nid, unsigned long unit_pages) argument 1207 walk_dynamic_memory_groups(int nid, walk_memory_groups_func_t func, struct memory_group *excluded, void *arg) argument [all...] |
/linux-master/include/linux/ |
H A D | genalloc.h | 102 phys_addr_t phys, size_t size, int nid) 104 return gen_pool_add_owner(pool, addr, phys, size, nid, NULL); 112 * @nid: node id of the node the chunk structure and bitmap should be 120 size_t size, int nid) 122 return gen_pool_add_virt(pool, addr, -1, size, nid); 206 int min_alloc_order, int nid, const char *name); 101 gen_pool_add_virt(struct gen_pool *pool, unsigned long addr, phys_addr_t phys, size_t size, int nid) argument 119 gen_pool_add(struct gen_pool *pool, unsigned long addr, size_t size, int nid) argument
|
H A D | memory-tiers.h | 48 int mt_set_default_dram_perf(int nid, struct access_coordinate *perf, 129 static inline int mt_set_default_dram_perf(int nid, struct access_coordinate *perf, argument
|
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | rtas-work-area.c | 140 const int nid = NUMA_NO_NODE; local 147 pool = gen_pool_create(order, nid); 158 RTAS_WORK_AREA_ARENA_SZ, nid); 194 const int nid = NUMA_NO_NODE; local 209 rwa_state.arena = memblock_alloc_try_nid(size, align, min, limit, nid);
|
/linux-master/arch/x86/kernel/cpu/ |
H A D | topology_amd.c | 131 } nid; local 136 rdmsrl(MSR_FAM10H_NODE_ID, nid.msr); 137 store_node(tscan, nid.nodes_per_pkg + 1, nid.node_id); 138 tscan->c->topo.llc_id = nid.node_id;
|
/linux-master/sound/soc/codecs/ |
H A D | hdac_hdmi.c | 58 hda_nid_t nid; member in struct:hdac_hdmi_cvt 78 hda_nid_t nid; member in struct:hdac_hdmi_pin 219 static int hdac_hdmi_get_port_len(struct hdac_device *hdev, hda_nid_t nid) argument 224 caps = get_wcaps(hdev, nid); 230 param = snd_hdac_read_parm_uncached(hdev, nid, AC_PAR_DEVLIST_LEN); 245 return snd_hdac_codec_read(hdev, port->pin->nid, 262 num_ports = hdac_hdmi_get_port_len(hdev, port->pin->nid); 272 snd_hdac_codec_write(hdev, port->pin->nid, 0, 377 hdmi->chmap.ops.set_channel_count(hdev, cvt->nid, channels); 379 snd_hdac_setup_channel_mapping(&hdmi->chmap, pin->nid, fals 740 hdac_hdmi_set_power_state(struct hdac_device *hdev, hda_nid_t nid, unsigned int pwr_state) argument 761 hdac_hdmi_set_amp(struct hdac_device *hdev, hda_nid_t nid, int val) argument 1205 hdac_hdmi_add_cvt(struct hdac_device *hdev, hda_nid_t nid) argument 1366 hdac_hdmi_add_pin(struct hdac_device *hdev, hda_nid_t nid) argument 1634 hda_nid_t nid; local [all...] |
/linux-master/arch/sh/mm/ |
H A D | init.c | 208 void __init allocate_pgdat(unsigned int nid) argument 212 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); 215 NODE_DATA(nid) = memblock_alloc_try_nid( 218 MEMBLOCK_ALLOC_ACCESSIBLE, nid); 219 if (!NODE_DATA(nid)) 220 panic("Can't allocate pgdat for node %d\n", nid); 223 NODE_DATA(nid)->node_start_pfn = start_pfn; 224 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; 400 int arch_add_memory(int nid, u64 start, u64 size, argument 411 ret = __add_pages(nid, start_pf [all...] |
/linux-master/arch/loongarch/kernel/ |
H A D | acpi.c | 296 int nid; local 298 nid = acpi_get_node(handle); 299 if (nid != NUMA_NO_NODE) { 300 set_cpuid_to_node(physid, nid); 301 node_set(nid, numa_nodes_parsed); 302 set_cpu_numa_node(cpu, nid); 303 cpumask_set_cpu(cpu, cpumask_of_node(nid));
|
/linux-master/sound/virtio/ |
H A D | virtio_pcm.c | 213 * @nid: Function node ID. 218 struct virtio_pcm *virtsnd_pcm_find(struct virtio_snd *snd, u32 nid) argument 223 if (vpcm->nid == nid) 233 * @nid: Function node ID. 238 struct virtio_pcm *virtsnd_pcm_find_or_create(struct virtio_snd *snd, u32 nid) argument 243 vpcm = virtsnd_pcm_find(snd, nid); 251 vpcm->nid = nid; 365 vss->nid [all...] |
/linux-master/arch/powerpc/platforms/cell/ |
H A D | iommu.c | 113 int nid; member in struct:cbe_iommu 258 static int __init cell_iommu_find_ioc(int nid, unsigned long *base) argument 267 if (of_node_to_nid(np) != nid) 285 if (nidp && *nidp == nid) { 308 __func__, iommu->nid, segments); 312 page = alloc_pages_node(iommu->nid, GFP_KERNEL, get_order(stab_size)); 336 iommu->nid, ptab_size, get_order(ptab_size)); 337 page = alloc_pages_node(iommu->nid, GFP_KERNEL, get_order(ptab_size)); 347 __func__, iommu->nid, iommu->stab, ptab, 384 if (cell_iommu_find_ioc(iommu->nid, 524 cell_iommu_for_node(int nid) argument 623 int nid, i; local [all...] |
/linux-master/tools/include/linux/ |
H A D | mm.h | 30 void reserve_bootmem_region(phys_addr_t start, phys_addr_t end, int nid);
|