/linux/drivers/base/ |
A D | node.c | 213 nid); in node_set_perf_attrs() 302 if (!node_online(nid) || !node_devices[nid]) in node_add_cache() 373 int nid = dev->id; in node_read_meminfo() local 411 nid, K(sum_zone_node_page_state(nid, NR_MLOCK))); in node_read_meminfo() 462 nid, 0UL, in node_read_meminfo() 463 nid, K(sum_zone_node_page_state(nid, NR_BOUNCE)), in node_read_meminfo() 509 int nid = dev->id; in node_read_vmstat() local 543 int nid = dev->id; in node_read_distance() local 804 mem_blk->nid = nid; in do_register_memory_block_under_node() 854 if (page_nid != nid) in register_mem_block_under_node_early() [all …]
|
A D | arch_numa.c | 67 int nid = cpu_to_node(cpu); in numa_update_cpu() local 69 if (nid == NUMA_NO_NODE) in numa_update_cpu() 130 if (nid < 0 || nid >= MAX_NUMNODES || numa_off) in early_map_cpu_to_node() 131 nid = 0; in early_map_cpu_to_node() 272 start, (end - 1), nid); in numa_add_memblk() 296 nd_size, nid); in setup_node_data() 304 if (tnid != nid) in setup_node_data() 307 node_data[nid] = nd; in setup_node_data() 309 NODE_DATA(nid)->node_id = nid; in setup_node_data() 409 int nid; in numa_register_nodes() local [all …]
|
/linux/sound/hda/ |
A D | hdac_sysfs.c | 99 int nid; in get_codec_nid() local 106 return nid; in get_codec_nid() 115 int nid; in widget_attr_show() local 120 if (nid < 0) in widget_attr_show() 121 return nid; in widget_attr_show() 131 int nid; in widget_attr_store() local 136 if (nid < 0) in widget_attr_store() 137 return nid; in widget_attr_store() 190 if (nid == codec->afg || nid == codec->mfg) in has_pcm_cap() 445 if (nid < start_nid || nid >= end_nid) in hda_widget_sysfs_reinit() [all …]
|
A D | hdac_device.c | 233 addr, nid, verb, parm); in snd_hdac_make_cmd() 238 val |= (u32)nid << 20; in snd_hdac_make_cmd() 377 hda_nid_t nid; in setup_fg_nodes() local 385 codec->afg = nid; in setup_fg_nodes() 390 codec->mfg = nid; in setup_fg_nodes() 473 parm = get_num_conns(codec, nid); in snd_hdac_get_connections() 522 nid, i, parm); in snd_hdac_get_connections() 791 if (nid != codec->afg && in query_pcm_param() 830 wcaps = get_wcaps(codec, nid); in snd_hdac_query_supported_pcm() 842 nid, val, in snd_hdac_query_supported_pcm() [all …]
|
/linux/arch/powerpc/mm/ |
A D | numa.c | 172 int nid; in __associativity_to_nid() local 184 if (nid == 0xffff || nid >= nr_node_ids) in __associativity_to_nid() 343 int nid; in update_numa_distance() local 367 WARN(numa_distance_table[nid][nid] == -1, in update_numa_distance() 745 if (nid < 0 || !node_possible(nid)) in numa_setup_cpu() 790 int nid; in ppc_numa_cpu_prepare() local 854 int nid; in numa_setup_drmem_lmb() local 1103 NODE_DATA(nid)->node_id = nid; in setup_node_data() 1204 int nid; in initmem_init() local 1330 int nid; in hot_add_scn_to_nid() local [all …]
|
/linux/sound/pci/hda/ |
A D | hda_local.h | 273 hda_nid_t nid; member 439 for ((nid) = (codec)->core.start_nid; (nid) < (codec)->core.end_nid; (nid)++) 455 if (nid < codec->core.start_nid || in get_wcaps() 480 hda_nid_t nid, u32 val) in snd_hda_override_wcaps() argument 482 if (nid >= codec->core.start_nid && in snd_hda_override_wcaps() 528 #define nid_has_mute(codec, nid, dir) \ argument 540 hda_nid_t nid; member 595 hda_nid_t nid; member 607 hda_nid_t nid); 618 hda_nid_t nid, in snd_hda_sync_power_state() argument [all …]
|
A D | hda_proc.c | 22 #define param_read(codec, nid, parm) \ argument 56 if (item->nid == nid) { in print_nid_array() 82 if (cpcm->stream[type].nid != nid || cpcm->pcm == NULL) in print_nid_pcms() 146 val = snd_hda_codec_read(codec, nid, 0, in print_amp_vals() 151 val = snd_hda_codec_read(codec, nid, 0, in print_amp_vals() 683 hda_nid_t nid, int dev_num) in print_dpmst_connections() argument 778 hda_nid_t nid, fg; in print_codec_info() local 796 if (! nid || nodes < 0) { in print_codec_info() 806 for (i = 0; i < nodes; i++, nid++) { in print_codec_info() 839 print_nid_pcms(buffer, codec, nid); in print_codec_info() [all …]
|
A D | hda_jack.h | 21 hda_nid_t nid; member 31 hda_nid_t nid; member 63 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_get() argument 65 return snd_hda_jack_tbl_get_mst(codec, nid, 0); in snd_hda_jack_tbl_get() 131 return snd_hda_jack_detect_state_mst(codec, nid, 0); in snd_hda_jack_detect_state() 143 return snd_hda_jack_detect_state_mst(codec, nid, dev_id) != in snd_hda_jack_detect_mst() 153 snd_hda_jack_detect(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_detect() argument 155 return snd_hda_jack_detect_mst(codec, nid, 0); in snd_hda_jack_detect() 158 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid); 177 snd_hda_jack_add_kctl(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_add_kctl() argument [all …]
|
A D | hda_codec.c | 100 if (p->nid == nid) in lookup_conn_list() 115 p->nid = nid; in add_conn_list() 445 pin->nid = nid; in read_pin_defaults() 496 pin->nid = nid; in snd_hda_add_pincfg() 694 if (p->nid == nid) in get_hda_cvt_setup() 699 p->nid = nid; in get_hda_cvt_setup() 1180 q->nid = nid; in really_cleanup_stream() 1685 item->nid = nid; in snd_hda_ctl_add() 1713 item->nid = nid; in snd_hda_add_nid() 2283 nid = spdif->nid; in snd_hda_spdif_default_put() [all …]
|
A D | hda_jack.c | 76 if (!nid || !jack) in snd_hda_jack_tbl_get_mst() 79 if (jack->nid == nid && jack->dev_id == dev_id) in snd_hda_jack_tbl_get_mst() 113 if (!nid || !jack) in any_jack_tbl_get_from_nid() 116 if (jack->nid == nid) in any_jack_tbl_get_from_nid() 142 jack->nid = nid; in snd_hda_jack_tbl_new() 228 if (jack->nid) in snd_hda_jack_set_dirty_all() 325 callback->nid = jack->nid; in snd_hda_jack_detect_enable_callback_mst() 466 if (jack->nid) in snd_hda_jack_report_sync() 474 if (jack->nid) { in snd_hda_jack_report_sync() 513 jacks->nid = 0; in hda_free_jack_priv() [all …]
|
A D | hda_auto_parser.c | 23 if (*list == nid) in is_in_nid_list() 95 hda_nid_t nid; in reorder_outputs() local 100 nid = pins[1]; in reorder_outputs() 102 pins[2] = nid; in reorder_outputs() 177 hda_nid_t nid; in snd_hda_parse_pin_defcfg() local 245 nid); in snd_hda_parse_pin_defcfg() 258 nid); in snd_hda_parse_pin_defcfg() 271 nid); in snd_hda_parse_pin_defcfg() 295 nid); in snd_hda_parse_pin_defcfg() 900 hda_nid_t nid = pin->nid; in pin_config_match() local [all …]
|
/linux/include/trace/events/ |
A D | vmscan.h | 53 TP_ARGS(nid), 60 __entry->nid = nid; 79 __entry->nid = nid; 85 __entry->nid, 103 __entry->nid = nid; 223 __entry->nid = sc->nid; 263 __entry->nid = nid; 378 __entry->nid = nid; 423 __entry->nid = nid; 453 __entry->nid = nid; [all …]
|
/linux/arch/x86/mm/ |
A D | numa.c | 133 if (start > end || nid < 0 || nid >= MAX_NUMNODES) { in numa_add_memblk_to() 146 mi->blk[mi->nr_blks].nid = nid; in numa_add_memblk_to() 284 if (bi->nid != bj->nid) { in numa_cleanup_meminfo() 300 if (bi->nid != bj->nid) in numa_cleanup_meminfo() 307 if (bi->nid == bk->nid) in numa_cleanup_meminfo() 549 int i, nid; in numa_register_memblks() local 595 if (nid != mi->blk[i].nid) in numa_register_memblks() 767 int nid; in init_gi_nodes() local 942 return nid; in phys_to_target_node() 953 nid = numa_meminfo.blk[0].nid; in memory_add_physaddr_to_nid() [all …]
|
A D | numa_emulation.c | 27 if (mi->blk[i].nid == nid) in emu_find_memblk_by_nid() 61 eb->nid = nid; in emu_setup_memblk() 64 emu_nid_to_phys[nid] = pb->nid; in emu_setup_memblk() 90 int nid = 0; in split_nodes_interleave() local 141 if (nid < big) in split_nodes_interleave() 220 int nid) in split_nodes_size_interleave_uniform() argument 317 return nid; in split_nodes_size_interleave_uniform() 398 int nid = 0; in numa_emulation() local 422 nid = ret; in numa_emulation() 532 int physnid, nid; in numa_add_cpu() local [all …]
|
/linux/include/sound/ |
A D | hda_regmap.h | 38 #define snd_hdac_regmap_encode_verb(nid, verb) \ argument 39 (((verb) << 8) | 0x80000 | ((unsigned int)(nid) << 20)) 50 #define snd_hdac_regmap_encode_amp(nid, ch, dir, idx) \ argument 51 (snd_hdac_regmap_encode_verb(nid, AC_VERB_GET_AMP_GAIN_MUTE) | \ 64 #define snd_hdac_regmap_encode_amp_stereo(nid, dir, idx) \ argument 79 snd_hdac_regmap_write(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_write() argument 82 unsigned int cmd = snd_hdac_regmap_encode_verb(nid, verb); in snd_hdac_regmap_write() 101 unsigned int cmd = snd_hdac_regmap_encode_verb(nid, verb); in snd_hdac_regmap_update() 115 snd_hdac_regmap_read(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_read() argument 118 unsigned int cmd = snd_hdac_regmap_encode_verb(nid, verb); in snd_hdac_regmap_read() [all …]
|
A D | hda_codec.h | 271 struct hda_codec *codec, hda_nid_t nid); 332 #define snd_hda_param_read(codec, nid, param) \ argument 333 snd_hdac_read_parm(&(codec)->core, nid, param) 341 return snd_hda_get_connections(codec, nid, NULL, 0); in snd_hda_get_num_conns() 346 #define snd_hda_get_num_raw_conns(codec, nid) \ argument 354 hda_nid_t nid, int recursive); 362 hda_nid_t nid; member 380 hda_nid_t nid; member 400 hda_nid_t nid); 441 #define snd_hda_codec_cleanup_stream(codec, nid) \ argument [all …]
|
/linux/include/linux/ |
A D | node.h | 72 static inline void node_add_cache(unsigned int nid, in node_add_cache() argument 77 static inline void node_set_perf_attrs(unsigned int nid, in node_set_perf_attrs() argument 116 extern int __register_one_node(int nid); 119 static inline int register_one_node(int nid) in register_one_node() argument 123 if (node_online(nid)) { in register_one_node() 124 struct pglist_data *pgdat = NODE_DATA(nid); in register_one_node() 128 error = __register_one_node(nid); in register_one_node() 138 extern void unregister_one_node(int nid); 152 static inline int __register_one_node(int nid) in __register_one_node() argument 156 static inline int register_one_node(int nid) in register_one_node() argument [all …]
|
A D | memory_hotplug.h | 121 extern int try_online_node(int nid); 123 extern int arch_add_memory(int nid, u64 start, u64 size, 150 return __add_pages(nid, start_pfn, nr_pages, params); in add_pages() 168 extern pg_data_t *arch_alloc_nodedata(int nid); 174 #define arch_alloc_nodedata(nid) generic_alloc_nodedata(nid) argument 184 #define generic_alloc_nodedata(nid) \ argument 197 node_data[nid] = pgdat; in arch_refresh_nodedata() 244 static inline int try_online_node(int nid) in try_online_node() argument 298 extern void try_offline_node(int nid); 306 static inline void try_offline_node(int nid) {} in try_offline_node() argument [all …]
|
/linux/sound/pci/lola/ |
A D | lola_proc.c | 17 struct lola *chip, int nid, const char *name) in print_audio_widget() argument 28 struct lola *chip, int nid, unsigned int ampcap, in print_pin_widget() argument 37 lola_read_param(chip, nid, ampcap, &val); in print_pin_widget() 49 struct lola *chip, int nid) in print_clock_widget() argument 89 struct lola *chip, int nid) in print_mixer_widget() argument 102 int i, nid; in lola_proc_codec_read() local 112 nid = 2; in lola_proc_codec_read() 124 print_clock_widget(buffer, chip, nid); in lola_proc_codec_read() 125 nid++; in lola_proc_codec_read() 128 print_mixer_widget(buffer, chip, nid); in lola_proc_codec_read() [all …]
|
/linux/mm/ |
A D | sparse.c | 73 nid); in sparse_index_alloc() 250 set_section_nid(section, nid); in memory_present() 269 int i, nid; in memblocks_present() local 338 int nid; in sparse_early_usemaps_alloc_pgdat_section() local 389 if (usemap_nid != nid) { in check_usemap_section_nr() 391 nid, usemap_snr); in check_usemap_section_nr() 401 usemap_snr, pgdat_snr, nid); in check_usemap_section_nr() 527 nid, NULL); in sparse_init_nid() 530 __func__, nid); in sparse_init_nid() 574 if (nid == nid_begin) { in sparse_init() [all …]
|
A D | page_ext.c | 175 MEMBLOCK_ALLOC_ACCESSIBLE, nid); in alloc_node_page_ext() 186 int nid, fail; in page_ext_init_flatmem() local 191 for_each_online_node(nid) { in page_ext_init_flatmem() 192 fail = alloc_node_page_ext(nid); in page_ext_init_flatmem() 232 addr = vzalloc_node(size, nid); in alloc_page_ext() 304 int nid) in online_page_ext() argument 312 if (nid == NUMA_NO_NODE) { in online_page_ext() 318 nid = pfn_to_nid(start_pfn); in online_page_ext() 380 int nid; in page_ext_init() local 389 end_pfn = node_end_pfn(nid); in page_ext_init() [all …]
|
A D | memory_hotplug.c | 1135 kswapd_run(nid); in online_pages() 1136 kcompactd_run(nid); in online_pages() 1197 pgdat->node_id = nid; in hotadd_new_pgdat() 1246 if (node_online(nid)) in __try_online_node() 1257 node_set_online(nid); in __try_online_node() 1364 nid = group->nid; in add_memory_resource() 1419 node_set_online(nid); in add_memory_resource() 2025 int *nid = arg; in check_memblock_offlined_cb() local 2027 *nid = mem->nid; in check_memblock_offlined_cb() 2067 int nid = *(int *)arg; in check_no_memblock_for_node_cb() local [all …]
|
/linux/arch/sh/include/asm/ |
A D | mmzone.h | 9 #define NODE_DATA(nid) (node_data[nid]) argument 13 int nid; in pfn_to_nid() local 15 for (nid = 0; nid < MAX_NUMNODES; nid++) in pfn_to_nid() 16 if (pfn >= node_start_pfn(nid) && pfn <= node_end_pfn(nid)) in pfn_to_nid() 19 return nid; in pfn_to_nid() 28 void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end); 31 setup_bootmem_node(int nid, unsigned long start, unsigned long end) in setup_bootmem_node() argument 40 void __init __add_active_range(unsigned int nid, unsigned long start_pfn, 43 void __init allocate_pgdat(unsigned int nid);
|
/linux/arch/ia64/kernel/ |
A D | uncached.c | 95 page = __alloc_pages_node(nid, in uncached_add_chunk() 181 int nid; in uncached_alloc_page() local 188 nid = starting_nid; in uncached_alloc_page() 191 if (!node_state(nid, N_HIGH_MEMORY)) in uncached_alloc_page() 193 uc_pool = &uncached_pools[nid]; in uncached_alloc_page() 201 } while (uncached_add_chunk(uc_pool, nid) == 0); in uncached_alloc_page() 203 } while ((nid = (nid + 1) % MAX_NUMNODES) != starting_nid); in uncached_alloc_page() 254 (void) gen_pool_add(pool, uc_start, size, nid); in uncached_build_memmap() 262 int nid; in uncached_init() local 264 for_each_node_state(nid, N_ONLINE) { in uncached_init() [all …]
|
/linux/drivers/of/ |
A D | of_numa.c | 25 u32 nid; in of_numa_parse_cpu_nodes() local 30 r = of_property_read_u32(np, "numa-node-id", &nid); in of_numa_parse_cpu_nodes() 34 pr_debug("CPU on %u\n", nid); in of_numa_parse_cpu_nodes() 35 if (nid >= MAX_NUMNODES) in of_numa_parse_cpu_nodes() 36 pr_warn("Node id %u exceeds maximum value\n", nid); in of_numa_parse_cpu_nodes() 38 node_set(nid, numa_nodes_parsed); in of_numa_parse_cpu_nodes() 46 u32 nid; in of_numa_parse_memory_nodes() local 59 if (nid >= MAX_NUMNODES) { in of_numa_parse_memory_nodes() 143 u32 nid; in of_node_to_nid() local 171 if (!r && nid < MAX_NUMNODES && node_possible(nid)) in of_node_to_nid() [all …]
|