/linux-6.1.9/sound/hda/ |
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; in get_codec_nid() local 102 ret = kstrtoint(kobj->name, 16, &nid); in get_codec_nid() 106 return nid; in get_codec_nid() 115 int nid; in widget_attr_show() local 119 nid = get_codec_nid(kobj, &codec); in widget_attr_show() 120 if (nid < 0) in widget_attr_show() 121 return nid; in widget_attr_show() 122 return wid_attr->show(codec, nid, wid_attr, buf); in widget_attr_show() [all …]
|
D | hdac_device.c | 224 static unsigned int snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_make_cmd() argument 230 if ((addr & ~0xf) || (nid & ~0x7f) || in snd_hdac_make_cmd() 233 addr, nid, verb, parm); in snd_hdac_make_cmd() 238 val |= (u32)nid << 20; in snd_hdac_make_cmd() 275 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read() argument 278 unsigned int cmd = snd_hdac_make_cmd(codec, nid, verb, parm); in snd_hdac_read() 293 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, in _snd_hdac_read_parm() argument 298 cmd = snd_hdac_regmap_encode_verb(nid, AC_VERB_PARAMETERS) | parm; in _snd_hdac_read_parm() 312 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read_parm_uncached() argument 317 cmd = snd_hdac_regmap_encode_verb(nid, AC_VERB_PARAMETERS) | parm; in snd_hdac_read_parm_uncached() [all …]
|
/linux-6.1.9/drivers/base/ |
D | node.c | 194 void node_set_perf_attrs(unsigned int nid, struct node_hmem_attrs *hmem_attrs, in node_set_perf_attrs() argument 201 if (WARN_ON_ONCE(!node_online(nid))) in node_set_perf_attrs() 204 node = node_devices[nid]; in node_set_perf_attrs() 214 nid); in node_set_perf_attrs() 297 void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs) in node_add_cache() argument 303 if (!node_online(nid) || !node_devices[nid]) in node_add_cache() 306 node = node_devices[nid]; in node_add_cache() 360 static void node_init_caches(unsigned int nid) in node_init_caches() argument 362 INIT_LIST_HEAD(&node_devices[nid]->cache_attrs); in node_init_caches() 365 static void node_init_caches(unsigned int nid) { } in node_init_caches() argument [all …]
|
D | arch_numa.c | 66 int nid = cpu_to_node(cpu); in numa_update_cpu() local 68 if (nid == NUMA_NO_NODE) in numa_update_cpu() 72 cpumask_clear_cpu(cpu, node_to_cpumask_map[nid]); in numa_update_cpu() 74 cpumask_set_cpu(cpu, node_to_cpumask_map[nid]); in numa_update_cpu() 126 void __init early_map_cpu_to_node(unsigned int cpu, int nid) in early_map_cpu_to_node() argument 129 if (nid < 0 || nid >= MAX_NUMNODES || numa_off) in early_map_cpu_to_node() 130 nid = 0; in early_map_cpu_to_node() 132 cpu_to_node_map[cpu] = nid; in early_map_cpu_to_node() 140 set_cpu_numa_node(cpu, nid); in early_map_cpu_to_node() 201 int __init numa_add_memblk(int nid, u64 start, u64 end) in numa_add_memblk() argument [all …]
|
/linux-6.1.9/arch/powerpc/mm/ |
D | numa.c | 90 unsigned int *nid) in fake_numa_create_new_node() argument 102 *nid = fake_nid; in fake_numa_create_new_node() 129 *nid = fake_nid; in fake_numa_create_new_node() 171 int nid; in __associativity_to_nid() local 180 nid = of_read_number(&associativity[index], 1); in __associativity_to_nid() 183 if (nid == 0xffff || nid >= nr_node_ids) in __associativity_to_nid() 184 nid = NUMA_NO_NODE; in __associativity_to_nid() 185 return nid; in __associativity_to_nid() 274 int nid = NUMA_NO_NODE; in of_node_to_nid_single() local 279 nid = associativity_to_nid(tmp); in of_node_to_nid_single() [all …]
|
/linux-6.1.9/sound/pci/hda/ |
D | hda_local.h | 26 #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs) \ argument 27 ((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19) | ((ofs)<<23)) 29 #define HDA_COMPOSE_AMP_VAL(nid,chs,idx,dir) \ argument 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) \ argument 42 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, dir) | flags } 44 #define HDA_CODEC_VOLUME_IDX(xname, xcidx, nid, xindex, direction) \ argument 45 HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, 3, xindex, direction, 0) 47 #define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \ argument 48 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, channel, xindex, direction, 0) [all …]
|
D | hda_proc.c | 22 #define param_read(codec, nid, parm) \ argument 23 snd_hdac_read_parm_uncached(&(codec)->core, nid, parm) 48 struct hda_codec *codec, hda_nid_t nid, in print_nid_array() argument 56 if (item->nid == nid) { in print_nid_array() 75 struct hda_codec *codec, hda_nid_t nid) in print_nid_pcms() argument 82 if (cpcm->stream[type].nid != nid || cpcm->pcm == NULL) in print_nid_pcms() 94 struct hda_codec *codec, hda_nid_t nid, int dir) in print_amp_caps() argument 97 caps = param_read(codec, nid, dir == HDA_OUTPUT ? in print_amp_caps() 112 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, in is_stereo_amps() argument 126 if (snd_hda_get_raw_connections(codec, nid, &conn, 1) < 0) in is_stereo_amps() [all …]
|
D | hda_jack.h | 21 hda_nid_t nid; member 31 hda_nid_t nid; member 55 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id); 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() 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, 95 snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_detect_enable_callback() argument 98 return snd_hda_jack_detect_enable_callback_mst(codec, nid, 0, cb); in snd_hda_jack_detect_enable_callback() 111 u32 snd_hda_jack_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id); [all …]
|
D | hda_jack.c | 29 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) in is_jack_detectable() argument 33 if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_PRES_DETECT)) in is_jack_detectable() 35 if (get_defcfg_misc(snd_hda_codec_get_pincfg(codec, nid)) & in is_jack_detectable() 38 if (!(get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) && in is_jack_detectable() 46 static u32 read_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id) in read_pin_sense() argument 52 pincap = snd_hda_query_pin_caps(codec, nid); in read_pin_sense() 54 snd_hda_codec_read(codec, nid, 0, in read_pin_sense() 57 val = snd_hda_codec_read(codec, nid, 0, in read_pin_sense() 71 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) in snd_hda_jack_tbl_get_mst() argument 76 if (!nid || !jack) in snd_hda_jack_tbl_get_mst() [all …]
|
D | hda_codec.c | 81 for (; seq->nid; seq++) in snd_hda_sequence_write() 82 snd_hda_codec_write(codec, seq->nid, 0, seq->verb, seq->param); in snd_hda_sequence_write() 90 hda_nid_t nid; member 96 lookup_conn_list(struct hda_codec *codec, hda_nid_t nid) in lookup_conn_list() argument 100 if (p->nid == nid) in lookup_conn_list() 106 static int add_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in add_conn_list() argument 115 p->nid = nid; in add_conn_list() 132 static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) in read_and_add_raw_conns() argument 138 len = snd_hda_get_raw_connections(codec, nid, list, ARRAY_SIZE(list)); in read_and_add_raw_conns() 140 len = snd_hda_get_num_raw_conns(codec, nid); in read_and_add_raw_conns() [all …]
|
/linux-6.1.9/include/linux/ |
D | node.h | 67 void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs); 68 void node_set_perf_attrs(unsigned int nid, struct node_hmem_attrs *hmem_attrs, 71 static inline void node_add_cache(unsigned int nid, in node_add_cache() argument 76 static inline void node_set_perf_attrs(unsigned int nid, in node_set_perf_attrs() argument 96 void register_memory_blocks_under_node(int nid, unsigned long start_pfn, 100 static inline void register_memory_blocks_under_node(int nid, unsigned long start_pfn, in register_memory_blocks_under_node() argument 111 extern int __register_one_node(int nid); 114 static inline int register_one_node(int nid) in register_one_node() argument 118 if (node_online(nid)) { in register_one_node() 119 struct pglist_data *pgdat = NODE_DATA(nid); in register_one_node() [all …]
|
D | memory_hotplug.h | 29 extern pg_data_t *arch_alloc_nodedata(int nid); 30 extern void arch_refresh_nodedata(int nid, pg_data_t *pgdat); 34 #define arch_alloc_nodedata(nid) generic_alloc_nodedata(nid) argument 42 #define generic_alloc_nodedata(nid) \ argument 48 static inline void arch_refresh_nodedata(int nid, pg_data_t *pgdat) in arch_refresh_nodedata() argument 50 node_data[nid] = pgdat; in arch_refresh_nodedata() 56 static inline pg_data_t *generic_alloc_nodedata(int nid) in generic_alloc_nodedata() argument 61 static inline void arch_refresh_nodedata(int nid, pg_data_t *pgdat) in arch_refresh_nodedata() argument 168 extern int try_online_node(int nid); 170 extern int arch_add_memory(int nid, u64 start, u64 size, [all …]
|
/linux-6.1.9/include/sound/ |
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 65 (snd_hdac_regmap_encode_verb(nid, AC_VERB_GET_AMP_GAIN_MUTE) | \ 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() 97 snd_hdac_regmap_update(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update() argument 101 unsigned int cmd = snd_hdac_regmap_encode_verb(nid, verb); in snd_hdac_regmap_update() [all …]
|
D | hda_codec.h | 118 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid); 120 void (*stream_pm)(struct hda_codec *codec, hda_nid_t nid, bool on); 144 hda_nid_t nid; /* default NID to query rates/formats/bps, or set up */ member 270 unsigned int (*power_filter)(struct hda_codec *codec, hda_nid_t nid, 275 struct hda_codec *codec, hda_nid_t nid); 327 snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_read() argument 331 return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm); in snd_hda_codec_read() 335 snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, in snd_hda_codec_write() argument 338 return snd_hdac_codec_write(&codec->core, nid, flags, verb, parm); in snd_hda_codec_write() 341 #define snd_hda_param_read(codec, nid, param) \ argument [all …]
|
/linux-6.1.9/include/trace/events/ |
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 ) 79 __entry->nid = nid; 85 __entry->nid, [all …]
|
/linux-6.1.9/arch/sh/include/asm/ |
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-6.1.9/sound/pci/lola/ |
D | lola_proc.c | 17 struct lola *chip, int nid, const char *name) in print_audio_widget() argument 21 lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); in print_audio_widget() 22 snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); in print_audio_widget() 23 lola_read_param(chip, nid, LOLA_PAR_STREAM_FORMATS, &val); in print_audio_widget() 28 struct lola *chip, int nid, unsigned int ampcap, in print_pin_widget() argument 33 lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); in print_pin_widget() 34 snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); in print_pin_widget() 37 lola_read_param(chip, nid, ampcap, &val); in print_pin_widget() 44 lola_codec_read(chip, nid, LOLA_VERB_GET_MAX_LEVEL, 0, 0, &val, NULL); in print_pin_widget() 49 struct lola *chip, int nid) in print_clock_widget() argument [all …]
|
/linux-6.1.9/arch/x86/mm/ |
D | numa.c | 125 static int __init numa_add_memblk_to(int nid, u64 start, u64 end, in numa_add_memblk_to() argument 133 if (start > end || nid < 0 || nid >= MAX_NUMNODES) { in numa_add_memblk_to() 135 nid, start, end - 1); in numa_add_memblk_to() 146 mi->blk[mi->nr_blks].nid = nid; in numa_add_memblk_to() 190 int __init numa_add_memblk(int nid, u64 start, u64 end) in numa_add_memblk() argument 192 return numa_add_memblk_to(nid, start, end, &numa_meminfo); in numa_add_memblk() 196 static void __init alloc_node_data(int nid) in alloc_node_data() argument 207 nd_pa = memblock_phys_alloc_try_nid(nd_size, SMP_CACHE_BYTES, nid); in alloc_node_data() 210 nd_size, nid); in alloc_node_data() 216 printk(KERN_INFO "NODE_DATA(%d) allocated [mem %#010Lx-%#010Lx]\n", nid, in alloc_node_data() [all …]
|
D | numa_emulation.c | 22 static int __init emu_find_memblk_by_nid(int nid, const struct numa_meminfo *mi) in emu_find_memblk_by_nid() argument 27 if (mi->blk[i].nid == nid) in emu_find_memblk_by_nid() 48 int nid, int phys_blk, u64 size) in emu_setup_memblk() argument 61 eb->nid = nid; in emu_setup_memblk() 63 if (emu_nid_to_phys[nid] == NUMA_NO_NODE) in emu_setup_memblk() 64 emu_nid_to_phys[nid] = pb->nid; in emu_setup_memblk() 73 nid, eb->start, eb->end - 1, (eb->end - eb->start) >> 20); in emu_setup_memblk() 90 int nid = 0; in split_nodes_interleave() local 141 if (nid < big) in split_nodes_interleave() 173 ret = emu_setup_memblk(ei, pi, nid++ % nr_nodes, in split_nodes_interleave() [all …]
|
/linux-6.1.9/mm/ |
D | sparse.c | 52 static void set_section_nid(unsigned long section_nr, int nid) in set_section_nid() argument 54 section_to_node_table[section_nr] = nid; in set_section_nid() 57 static inline void set_section_nid(unsigned long section_nr, int nid) in set_section_nid() argument 63 static noinline struct mem_section __ref *sparse_index_alloc(int nid) in sparse_index_alloc() argument 70 section = kzalloc_node(array_size, GFP_KERNEL, nid); in sparse_index_alloc() 73 nid); in sparse_index_alloc() 76 __func__, array_size, nid); in sparse_index_alloc() 82 static int __meminit sparse_index_init(unsigned long section_nr, int nid) in sparse_index_init() argument 97 section = sparse_index_alloc(nid); in sparse_index_init() 106 static inline int sparse_index_init(unsigned long section_nr, int nid) in sparse_index_init() argument [all …]
|
D | list_lru.c | 53 list_lru_from_memcg_idx(struct list_lru *lru, int nid, int idx) in list_lru_from_memcg_idx() argument 58 return mlru ? &mlru->node[nid] : NULL; in list_lru_from_memcg_idx() 60 return &lru->node[nid].lru; in list_lru_from_memcg_idx() 64 list_lru_from_kmem(struct list_lru *lru, int nid, void *ptr, in list_lru_from_kmem() argument 67 struct list_lru_node *nlru = &lru->node[nid]; in list_lru_from_kmem() 78 l = list_lru_from_memcg_idx(lru, nid, memcg_kmem_id(memcg)); in list_lru_from_kmem() 104 list_lru_from_memcg_idx(struct list_lru *lru, int nid, int idx) in list_lru_from_memcg_idx() argument 106 return &lru->node[nid].lru; in list_lru_from_memcg_idx() 110 list_lru_from_kmem(struct list_lru *lru, int nid, void *ptr, in list_lru_from_kmem() argument 115 return &lru->node[nid].lru; in list_lru_from_kmem() [all …]
|
/linux-6.1.9/arch/ia64/kernel/ |
D | uncached.c | 73 static int uncached_add_chunk(struct uncached_pool *uc_pool, int nid) in uncached_add_chunk() argument 95 page = __alloc_pages_node(nid, in uncached_add_chunk() 148 status = gen_pool_add(uc_pool->pool, uc_addr, IA64_GRANULE_SIZE, 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() 220 int nid = paddr_to_nid(uc_addr - __IA64_UNCACHED_OFFSET); in uncached_free_page() local [all …]
|
D | numa.c | 21 void map_cpu_to_node(int cpu, int nid) in map_cpu_to_node() argument 24 if (nid < 0) { /* just initialize by zero */ in map_cpu_to_node() 35 if (!node_online(nid)) in map_cpu_to_node() 36 nid = first_online_node; in map_cpu_to_node() 37 cpu_to_node_map[cpu] = nid; in map_cpu_to_node() 38 cpumask_set_cpu(cpu, &node_to_cpu_mask[nid]); in map_cpu_to_node() 42 void unmap_cpu_from_node(int cpu, int nid) in unmap_cpu_from_node() argument 44 WARN_ON(!cpumask_test_cpu(cpu, &node_to_cpu_mask[nid])); in unmap_cpu_from_node() 45 WARN_ON(cpu_to_node_map[cpu] != nid); in unmap_cpu_from_node() 47 cpumask_clear_cpu(cpu, &node_to_cpu_mask[nid]); in unmap_cpu_from_node() [all …]
|
/linux-6.1.9/arch/sh/mm/ |
D | numa.c | 26 void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end) in setup_bootmem_node() argument 31 BUG_ON(nid >= MAX_NUMNODES || nid <= 0); in setup_bootmem_node() 41 __add_active_range(nid, start_pfn, end_pfn); in setup_bootmem_node() 44 NODE_DATA(nid) = memblock_alloc_node(sizeof(struct pglist_data), in setup_bootmem_node() 45 SMP_CACHE_BYTES, nid); in setup_bootmem_node() 46 if (!NODE_DATA(nid)) in setup_bootmem_node() 49 nid); in setup_bootmem_node() 51 NODE_DATA(nid)->node_start_pfn = start_pfn; in setup_bootmem_node() 52 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in setup_bootmem_node() 55 node_set_online(nid); in setup_bootmem_node()
|
/linux-6.1.9/drivers/of/ |
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 50 r = of_property_read_u32(np, "numa-node-id", &nid); in of_numa_parse_memory_nodes() 59 if (nid >= MAX_NUMNODES) { in of_numa_parse_memory_nodes() 60 pr_warn("Node id %u exceeds maximum value\n", nid); in of_numa_parse_memory_nodes() [all …]
|