Home
last modified time | relevance | path

Searched refs:nid (Results 1 – 25 of 341) sorted by relevance

12345678910>>...14

/linux-6.12.1/sound/hda/
Dhdac_sysfs.c89 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 …]
Dhdac_device.c225 static unsigned int snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_make_cmd() argument
231 if ((addr & ~0xf) || (nid & ~0x7f) || in snd_hdac_make_cmd()
234 addr, nid, verb, parm); in snd_hdac_make_cmd()
239 val |= (u32)nid << 20; in snd_hdac_make_cmd()
276 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read() argument
279 unsigned int cmd = snd_hdac_make_cmd(codec, nid, verb, parm); in snd_hdac_read()
294 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, in _snd_hdac_read_parm() argument
299 cmd = snd_hdac_regmap_encode_verb(nid, AC_VERB_PARAMETERS) | parm; in _snd_hdac_read_parm()
313 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read_parm_uncached() argument
318 cmd = snd_hdac_regmap_encode_verb(nid, AC_VERB_PARAMETERS) | parm; in snd_hdac_read_parm_uncached()
[all …]
/linux-6.12.1/drivers/base/
Dnode.c193 void node_set_perf_attrs(unsigned int nid, struct access_coordinate *coord, in node_set_perf_attrs() argument
200 if (WARN_ON_ONCE(!node_online(nid))) in node_set_perf_attrs()
203 node = node_devices[nid]; in node_set_perf_attrs()
213 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 …]
Darch_numa.c65 int nid = cpu_to_node(cpu); in numa_update_cpu() local
67 if (nid == NUMA_NO_NODE) in numa_update_cpu()
71 cpumask_clear_cpu(cpu, node_to_cpumask_map[nid]); in numa_update_cpu()
73 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()
195 static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn) in setup_node_data() argument
[all …]
/linux-6.12.1/arch/powerpc/mm/
Dnuma.c90 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.12.1/sound/pci/hda/
Dhda_local.h26 #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 …]
Dhda_proc.c22 #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 …]
Dhda_jack.h21 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 …]
Dhda_jack.c29 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 …]
Dhda_codec.c81 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.12.1/include/trace/events/
Dvmscan.h51 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.12.1/include/linux/
Dnode.h78 void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs);
79 void node_set_perf_attrs(unsigned int nid, struct access_coordinate *coord,
82 static inline void node_add_cache(unsigned int nid, in node_add_cache() argument
87 static inline void node_set_perf_attrs(unsigned int nid, in node_set_perf_attrs() argument
107 void register_memory_blocks_under_node(int nid, unsigned long start_pfn,
111 static inline void register_memory_blocks_under_node(int nid, unsigned long start_pfn, in register_memory_blocks_under_node() argument
122 extern int __register_one_node(int nid);
125 static inline int register_one_node(int nid) in register_one_node() argument
129 if (node_online(nid)) { in register_one_node()
130 struct pglist_data *pgdat = NODE_DATA(nid); in register_one_node()
[all …]
/linux-6.12.1/include/sound/
Dhda_regmap.h38 #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 …]
Dhda_codec.h114 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid);
115 void (*stream_pm)(struct hda_codec *codec, hda_nid_t nid, bool on);
139 hda_nid_t nid; /* default NID to query rates/formats/bps, or set up */ member
265 unsigned int (*power_filter)(struct hda_codec *codec, hda_nid_t nid,
270 struct hda_codec *codec, hda_nid_t nid);
322 snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_read() argument
326 return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm); in snd_hda_codec_read()
330 snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, in snd_hda_codec_write() argument
333 return snd_hdac_codec_write(&codec->core, nid, flags, verb, parm); in snd_hda_codec_write()
336 #define snd_hda_param_read(codec, nid, param) \ argument
[all …]
/linux-6.12.1/sound/pci/lola/
Dlola_proc.c17 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.12.1/mm/
Dshrinker.c42 struct shrinker_info *old, int nid) in shrinker_unit_alloc() argument
50 unit = kzalloc_node(sizeof(*unit), GFP_KERNEL, nid); in shrinker_unit_alloc()
66 int nid; in free_shrinker_info() local
68 for_each_node(nid) { in free_shrinker_info()
69 pn = memcg->nodeinfo[nid]; in free_shrinker_info()
79 int nid, ret = 0; in alloc_shrinker_info() local
84 for_each_node(nid) { in alloc_shrinker_info()
86 GFP_KERNEL, nid); in alloc_shrinker_info()
90 if (shrinker_unit_alloc(info, NULL, nid)) { in alloc_shrinker_info()
94 rcu_assign_pointer(memcg->nodeinfo[nid]->shrinker_info, info); in alloc_shrinker_info()
[all …]
Dsparse.c52 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 …]
Dmm_init.c45 int nid; in mminit_verify_zonelist() local
50 for_each_online_node(nid) { in mminit_verify_zonelist()
51 pg_data_t *pgdat = NODE_DATA(nid); in mminit_verify_zonelist()
69 listid > 0 ? "thisnode" : "general", nid, in mminit_verify_zonelist()
302 int i, nid; in early_calculate_totalpages() local
304 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, &nid) { in early_calculate_totalpages()
309 node_set_state(nid, N_MEMORY); in early_calculate_totalpages()
343 int i, nid; in find_zone_movable_pfns_for_nodes() local
364 nid = memblock_get_region_node(r); in find_zone_movable_pfns_for_nodes()
367 zone_movable_pfn[nid] = zone_movable_pfn[nid] ? in find_zone_movable_pfns_for_nodes()
[all …]
Dnuma_emulation.c24 static int __init emu_find_memblk_by_nid(int nid, const struct numa_meminfo *mi) in emu_find_memblk_by_nid() argument
29 if (mi->blk[i].nid == nid) in emu_find_memblk_by_nid()
50 int nid, int phys_blk, u64 size) in emu_setup_memblk() argument
63 eb->nid = nid; in emu_setup_memblk()
65 if (emu_nid_to_phys[nid] == NUMA_NO_NODE) in emu_setup_memblk()
66 emu_nid_to_phys[nid] = pb->nid; in emu_setup_memblk()
75 nid, eb->start, eb->end - 1, (eb->end - eb->start) >> 20); in emu_setup_memblk()
92 int nid = 0; in split_nodes_interleave() local
143 if (nid < big) in split_nodes_interleave()
175 ret = emu_setup_memblk(ei, pi, nid++ % nr_nodes, in split_nodes_interleave()
[all …]
Dlist_lru.c53 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()
82 list_lru_from_memcg_idx(struct list_lru *lru, int nid, int idx) in list_lru_from_memcg_idx() argument
84 return &lru->node[nid].lru; in list_lru_from_memcg_idx()
89 bool list_lru_add(struct list_lru *lru, struct list_head *item, int nid, in list_lru_add() argument
92 struct list_lru_node *nlru = &lru->node[nid]; in list_lru_add()
97 l = list_lru_from_memcg_idx(lru, nid, memcg_kmem_id(memcg)); in list_lru_add()
101 set_shrinker_bit(memcg, nid, lru_shrinker_id(lru)); in list_lru_add()
114 int nid = page_to_nid(virt_to_page(item)); in list_lru_add_obj() local
[all …]
Dnuma_memblks.c28 mi->blk[i].nid != NUMA_NO_NODE) in numa_nodemask_from_meminfo()
29 node_set(mi->blk[i].nid, *nodemask); in numa_nodemask_from_meminfo()
133 static int __init numa_add_memblk_to(int nid, u64 start, u64 end, in numa_add_memblk_to() argument
141 if (start > end || nid < 0 || nid >= MAX_NUMNODES) { in numa_add_memblk_to()
143 nid, start, end - 1); in numa_add_memblk_to()
154 mi->blk[mi->nr_blks].nid = nid; in numa_add_memblk_to()
198 int __init numa_add_memblk(int nid, u64 start, u64 end) in numa_add_memblk() argument
200 return numa_add_memblk_to(nid, start, end, &numa_meminfo); in numa_add_memblk()
235 numa_add_memblk_to(bi->nid, high, bi->end, in numa_cleanup_meminfo()
259 if (bi->nid != bj->nid) { in numa_cleanup_meminfo()
[all …]
Dnuma.c12 void __init alloc_node_data(int nid) in alloc_node_data() argument
20 nd_pa = memblock_phys_alloc_try_nid(nd_size, SMP_CACHE_BYTES, nid); in alloc_node_data()
23 nd_size, nid); in alloc_node_data()
27 pr_info("NODE_DATA(%d) allocated [mem %#010Lx-%#010Lx]\n", nid, in alloc_node_data()
30 if (tnid != nid) in alloc_node_data()
31 pr_info(" NODE_DATA(%d) on node %d\n", nid, tnid); in alloc_node_data()
33 node_data[nid] = nd; in alloc_node_data()
34 memset(NODE_DATA(nid), 0, sizeof(pg_data_t)); in alloc_node_data()
37 void __init alloc_offline_node_data(int nid) in alloc_offline_node_data() argument
44 sizeof(*pgdat), nid); in alloc_offline_node_data()
[all …]
/linux-6.12.1/arch/sh/include/asm/
Dmmzone.h10 int nid; in pfn_to_nid() local
12 for (nid = 0; nid < MAX_NUMNODES; nid++) in pfn_to_nid()
13 if (pfn >= node_start_pfn(nid) && pfn <= node_end_pfn(nid)) in pfn_to_nid()
16 return nid; in pfn_to_nid()
25 void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end);
28 setup_bootmem_node(int nid, unsigned long start, unsigned long end) in setup_bootmem_node() argument
37 void __init __add_active_range(unsigned int nid, unsigned long start_pfn,
40 void __init allocate_pgdat(unsigned int nid);
/linux-6.12.1/arch/sh/mm/
Dnuma.c23 void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end) in setup_bootmem_node() argument
28 BUG_ON(nid >= MAX_NUMNODES || nid <= 0); in setup_bootmem_node()
38 __add_active_range(nid, start_pfn, end_pfn); in setup_bootmem_node()
41 NODE_DATA(nid) = memblock_alloc_node(sizeof(struct pglist_data), in setup_bootmem_node()
42 SMP_CACHE_BYTES, nid); in setup_bootmem_node()
43 if (!NODE_DATA(nid)) in setup_bootmem_node()
46 nid); in setup_bootmem_node()
48 NODE_DATA(nid)->node_start_pfn = start_pfn; in setup_bootmem_node()
49 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in setup_bootmem_node()
52 node_set_online(nid); in setup_bootmem_node()
/linux-6.12.1/drivers/of/
Dof_numa.c26 u32 nid; in of_numa_parse_cpu_nodes() local
31 r = of_property_read_u32(np, "numa-node-id", &nid); in of_numa_parse_cpu_nodes()
35 pr_debug("CPU on %u\n", nid); in of_numa_parse_cpu_nodes()
36 if (nid >= MAX_NUMNODES) in of_numa_parse_cpu_nodes()
37 pr_warn("Node id %u exceeds maximum value\n", nid); in of_numa_parse_cpu_nodes()
39 node_set(nid, numa_nodes_parsed); in of_numa_parse_cpu_nodes()
47 u32 nid; in of_numa_parse_memory_nodes() local
51 r = of_property_read_u32(np, "numa-node-id", &nid); in of_numa_parse_memory_nodes()
60 if (nid >= MAX_NUMNODES) { in of_numa_parse_memory_nodes()
61 pr_warn("Node id %u exceeds maximum value\n", nid); in of_numa_parse_memory_nodes()
[all …]

12345678910>>...14