/linux-master/arch/sh/include/asm/ |
H A D | mmzone.h | 9 #define NODE_DATA(nid) (node_data[nid]) 13 int nid; local 15 for (nid = 0; nid < MAX_NUMNODES; nid++) 16 if (pfn >= node_start_pfn(nid) && pfn <= node_end_pfn(nid)) 19 return nid; 28 void __init setup_bootmem_node(int nid, unsigne 31 setup_bootmem_node(int nid, unsigned long start, unsigned long end) argument [all...] |
/linux-master/arch/s390/include/asm/ |
H A D | mmzone.h | 14 #define NODE_DATA(nid) (node_data[nid])
|
/linux-master/arch/arm64/include/asm/ |
H A D | mmzone.h | 10 #define NODE_DATA(nid) (node_data[(nid)])
|
/linux-master/arch/x86/include/asm/ |
H A D | mmzone_64.h | 15 #define NODE_DATA(nid) (node_data[nid])
|
H A D | mmzone_32.h | 14 #define NODE_DATA(nid) (node_data[nid])
|
/linux-master/arch/riscv/include/asm/ |
H A D | mmzone.h | 10 #define NODE_DATA(nid) (node_data[(nid)])
|
/linux-master/arch/loongarch/include/asm/ |
H A D | mmzone.h | 14 #define NODE_DATA(nid) (node_data[(nid)])
|
/linux-master/arch/sh/mm/ |
H A D | numa.c | 26 void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end) argument 31 BUG_ON(nid >= MAX_NUMNODES || nid <= 0); 41 __add_active_range(nid, start_pfn, end_pfn); 44 NODE_DATA(nid) = memblock_alloc_node(sizeof(struct pglist_data), 45 SMP_CACHE_BYTES, nid); 46 if (!NODE_DATA(nid)) 47 panic("%s: Failed to allocate %zu bytes align=0x%x nid=%d\n", 49 nid); 51 NODE_DATA(nid) [all...] |
/linux-master/include/linux/ |
H A D | node.h | 79 void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs); 80 void node_set_perf_attrs(unsigned int nid, struct access_coordinate *coord, 83 static inline void node_add_cache(unsigned int nid, argument 88 static inline void node_set_perf_attrs(unsigned int nid, argument 108 void register_memory_blocks_under_node(int nid, unsigned long start_pfn, 112 static inline void register_memory_blocks_under_node(int nid, unsigned long start_pfn, argument 123 extern int __register_one_node(int nid); 126 static inline int register_one_node(int nid) argument 130 if (node_online(nid)) { 131 struct pglist_data *pgdat = NODE_DATA(nid); 157 __register_one_node(int nid) argument 161 register_one_node(int nid) argument 165 unregister_one_node(int nid) argument 169 register_cpu_under_node(unsigned int cpu, unsigned int nid) argument 173 unregister_cpu_under_node(unsigned int cpu, unsigned int nid) argument [all...] |
/linux-master/arch/s390/kernel/ |
H A D | numa.c | 22 int nid; local 27 for (nid = 0; nid < MAX_NUMNODES; nid++) { 28 NODE_DATA(nid) = memblock_alloc(sizeof(pg_data_t), 8); 29 if (!NODE_DATA(nid))
|
/linux-master/arch/mips/loongson64/ |
H A D | dma.c | 11 long nid = (paddr >> 44) & 0x3; local 13 return ((nid << 44) ^ paddr) | (nid << node_id_offset); 20 long nid = (daddr >> node_id_offset) & 0x3; local 22 return ((nid << node_id_offset) ^ daddr) | (nid << 44);
|
/linux-master/arch/sparc/include/asm/ |
H A D | mmzone.h | 11 #define NODE_DATA(nid) (node_data[nid])
|
/linux-master/arch/mips/include/asm/mach-loongson64/ |
H A D | mmzone.h | 15 #define nid_to_addrbase(nid) ((unsigned long)(nid) << NODE_ADDRSPACE_SHIFT)
|
/linux-master/sound/pci/hda/ |
H A D | hda_jack.h | 21 hda_nid_t nid; member in struct:hda_jack_callback 31 hda_nid_t nid; member in struct:hda_jack_tbl 55 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id); 60 * @nid: pin NID to refer to 63 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) argument 65 return snd_hda_jack_tbl_get_mst(codec, nid, 0); 77 int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid, 81 snd_hda_jack_detect_enable_callback_mst(struct hda_codec *codec, hda_nid_t nid, 87 * @nid: pin NID to enable 95 snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, argument 130 snd_hda_jack_detect_state(struct hda_codec *codec, hda_nid_t nid) argument 142 snd_hda_jack_detect_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) argument 154 snd_hda_jack_detect(struct hda_codec *codec, hda_nid_t nid) argument 178 snd_hda_jack_add_kctl(struct hda_codec *codec, hda_nid_t nid, const char *name, bool phantom_jack, int type, const struct hda_jack_keymap *keymap) argument [all...] |
H A D | hda_local.h | 26 #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs) \ 27 ((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19) | ((ofs)<<23)) 29 #define HDA_COMPOSE_AMP_VAL(nid,chs,idx,dir) \ 30 HDA_COMPOSE_AMP_VAL_OFS(nid, chs, idx, dir, 0) 32 #define HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, channel, xindex, dir, flags) \ 42 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, dir) | flags } 44 #define HDA_CODEC_VOLUME_IDX(xname, xcidx, nid, xindex, direction) \ 45 HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, 3, xindex, direction, 0) 47 #define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \ 48 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, channe 272 hda_nid_t nid; member in struct:hda_pintbl 453 get_wcaps(struct hda_codec *codec, hda_nid_t nid) argument 479 snd_hda_override_wcaps(struct hda_codec *codec, hda_nid_t nid, u32 val) argument 502 snd_hda_query_pin_caps(struct hda_codec *codec, hda_nid_t nid) argument 519 snd_hda_override_pin_caps(struct hda_codec *codec, hda_nid_t nid, unsigned int caps) argument 540 hda_nid_t nid; member in struct:hda_nid_item 595 hda_nid_t nid; member in struct:hda_amp_list 611 snd_hda_check_power_state(struct hda_codec *codec, hda_nid_t nid, unsigned int target_state) argument 617 snd_hda_sync_power_state(struct hda_codec *codec, hda_nid_t nid, unsigned int target_state) argument [all...] |
H A D | hda_beep.h | 23 hda_nid_t nid; member in struct:hda_beep 35 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid); 38 static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) argument
|
/linux-master/sound/hda/ |
H A D | hdac_sysfs.c | 89 ssize_t (*show)(struct hdac_device *codec, hda_nid_t nid, 91 ssize_t (*store)(struct hdac_device *codec, hda_nid_t nid, 99 int nid; local 102 ret = kstrtoint(kobj->name, 16, &nid); 106 return nid; 115 int nid; local 119 nid = get_codec_nid(kobj, &codec); 120 if (nid < 0) 121 return nid; 122 return wid_attr->show(codec, nid, wid_att 131 int nid; local 161 caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 167 pin_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 176 pin_cfg_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 188 has_pcm_cap(struct hdac_device *codec, hda_nid_t nid) argument 201 pcm_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 210 pcm_formats_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 219 amp_in_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 228 amp_out_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 237 power_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 246 gpio_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 253 connections_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) argument 338 add_widget_node(struct kobject *parent, hda_nid_t nid, const struct attribute_group *group, struct kobject **res) argument 367 hda_nid_t nid; local 429 hda_nid_t nid; local [all...] |
/linux-master/drivers/of/ |
H A D | of_numa.c | 25 u32 nid; local 30 r = of_property_read_u32(np, "numa-node-id", &nid); 34 pr_debug("CPU on %u\n", nid); 35 if (nid >= MAX_NUMNODES) 36 pr_warn("Node id %u exceeds maximum value\n", nid); 38 node_set(nid, numa_nodes_parsed); 46 u32 nid; local 50 r = of_property_read_u32(np, "numa-node-id", &nid); 59 if (nid >= MAX_NUMNODES) { 60 pr_warn("Node id %u exceeds maximum value\n", nid); 143 u32 nid; local [all...] |
/linux-master/arch/x86/mm/ |
H A D | highmem_32.c | 11 int nid; local 27 nid = zone_to_nid(zone); 29 zone->name, nid, zone_start_pfn, zone_end_pfn); 31 add_highpages_with_active_regions(nid, zone_start_pfn,
|
/linux-master/arch/mips/include/asm/ |
H A D | mmzone.h | 20 #define nid_to_addrbase(nid) 0
|
/linux-master/include/sound/ |
H A D | hda_regmap.h | 33 * @nid: widget NID 38 #define snd_hdac_regmap_encode_verb(nid, verb) \ 39 (((verb) << 8) | 0x80000 | ((unsigned int)(nid) << 20)) 43 * @nid: widget NID 50 #define snd_hdac_regmap_encode_amp(nid, ch, dir, idx) \ 51 (snd_hdac_regmap_encode_verb(nid, AC_VERB_GET_AMP_GAIN_MUTE) | \ 58 * @nid: widget NID 64 #define snd_hdac_regmap_encode_amp_stereo(nid, dir, idx) \ 65 (snd_hdac_regmap_encode_verb(nid, AC_VERB_GET_AMP_GAIN_MUTE) | \ 72 * @nid 79 snd_hdac_regmap_write(struct hdac_device *codec, hda_nid_t nid, unsigned int verb, unsigned int val) argument 97 snd_hdac_regmap_update(struct hdac_device *codec, hda_nid_t nid, unsigned int verb, unsigned int mask, unsigned int val) argument 115 snd_hdac_regmap_read(struct hdac_device *codec, hda_nid_t nid, unsigned int verb, unsigned int *val) argument 136 snd_hdac_regmap_get_amp(struct hdac_device *codec, hda_nid_t nid, int ch, int dir, int idx) argument 160 snd_hdac_regmap_update_amp(struct hdac_device *codec, hda_nid_t nid, int ch, int dir, int idx, int mask, int val) argument 181 snd_hdac_regmap_get_amp_stereo(struct hdac_device *codec, hda_nid_t nid, int dir, int idx) argument 205 snd_hdac_regmap_update_amp_stereo(struct hdac_device *codec, hda_nid_t nid, int dir, int idx, int mask, int val) argument 219 snd_hdac_regmap_sync_node(struct hdac_device *codec, hda_nid_t nid) argument [all...] |
H A D | hda_hwdep.h | 17 #define HDA_VERB(nid,verb,param) ((nid)<<24 | (verb)<<8 | (param))
|
/linux-master/arch/powerpc/include/asm/ |
H A D | mmzone.h | 27 #define NODE_DATA(nid) (node_data[nid])
|
/linux-master/sound/pci/lola/ |
H A D | lola_proc.c | 17 struct lola *chip, int nid, const char *name) 21 lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); 22 snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); 23 lola_read_param(chip, nid, LOLA_PAR_STREAM_FORMATS, &val); 28 struct lola *chip, int nid, unsigned int ampcap, 33 lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); 34 snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); 37 lola_read_param(chip, nid, ampcap, &val); 44 lola_codec_read(chip, nid, LOLA_VERB_GET_MAX_LEVEL, 0, 0, &val, NULL); 49 struct lola *chip, int nid) 16 print_audio_widget(struct snd_info_buffer *buffer, struct lola *chip, int nid, const char *name) argument 27 print_pin_widget(struct snd_info_buffer *buffer, struct lola *chip, int nid, unsigned int ampcap, const char *name) argument 48 print_clock_widget(struct snd_info_buffer *buffer, struct lola *chip, int nid) argument 88 print_mixer_widget(struct snd_info_buffer *buffer, struct lola *chip, int nid) argument 102 int i, nid; local [all...] |
/linux-master/include/trace/events/ |
H A D | vmscan.h | 51 TP_PROTO(int nid), 53 TP_ARGS(nid), 56 __field( int, nid ) 60 __entry->nid = nid; 63 TP_printk("nid=%d", __entry->nid) 68 TP_PROTO(int nid, int zid, int order), 70 TP_ARGS(nid, zid, order), 73 __field( int, nid ) [all...] |