/kernel/linux/linux-5.10/drivers/base/ |
H A D | node.c | 185 * @nid: Node identifier to be set 189 void node_set_perf_attrs(unsigned int nid, struct node_hmem_attrs *hmem_attrs, in node_set_perf_attrs() argument 196 if (WARN_ON_ONCE(!node_online(nid))) in node_set_perf_attrs() 199 node = node_devices[nid]; in node_set_perf_attrs() 209 nid); in node_set_perf_attrs() 289 * @nid: Node identifier that has new cache attributes 292 void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs) in node_add_cache() argument 298 if (!node_online(nid) || !node_devices[nid]) in node_add_cache() 301 node = node_devices[nid]; in node_add_cache() 355 node_init_caches(unsigned int nid) node_init_caches() argument 360 node_init_caches(unsigned int nid) node_init_caches() argument 369 int nid = dev->id; node_read_meminfo() local 503 int nid = dev->id; node_read_vmstat() local 532 int nid = dev->id; node_read_distance() local 670 register_cpu_under_node(unsigned int cpu, unsigned int nid) register_cpu_under_node() argument 743 unregister_cpu_under_node(unsigned int cpu, unsigned int nid) unregister_cpu_under_node() argument 774 do_register_memory_block_under_node(int nid, struct memory_block *mem_blk) do_register_memory_block_under_node() argument 810 int nid = *(int *)arg; register_mem_block_under_node_early() local 850 int nid = *(int *)arg; register_mem_block_under_node_hotplug() local 871 link_mem_sections(int nid, unsigned long start_pfn, unsigned long end_pfn, enum meminit_context context) link_mem_sections() argument 907 init_node_hugetlb_work(int nid) init_node_hugetlb_work() argument 916 int nid = mnb->status_change_nid; node_memory_callback() local 950 init_node_hugetlb_work(int nid) init_node_hugetlb_work() argument 954 __register_one_node(int nid) __register_one_node() argument 979 unregister_one_node(int nid) unregister_one_node() argument [all...] |
/kernel/linux/linux-5.10/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; 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_att in widget_attr_show() 131 int nid; widget_attr_store() local 161 caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) caps_show() argument 167 pin_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) pin_caps_show() argument 176 pin_cfg_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) pin_cfg_show() argument 188 has_pcm_cap(struct hdac_device *codec, hda_nid_t nid) has_pcm_cap() argument 201 pcm_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) pcm_caps_show() argument 210 pcm_formats_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) pcm_formats_show() argument 219 amp_in_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) amp_in_caps_show() argument 228 amp_out_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) amp_out_caps_show() argument 237 power_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) power_caps_show() argument 246 gpio_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) gpio_caps_show() argument 253 connections_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) connections_show() argument 338 add_widget_node(struct kobject *parent, hda_nid_t nid, const struct attribute_group *group, struct kobject **res) add_widget_node() argument 367 hda_nid_t nid; widget_tree_create() local 429 hda_nid_t nid; hda_widget_sysfs_reinit() local [all...] |
/kernel/linux/linux-6.6/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; 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_att in widget_attr_show() 131 int nid; widget_attr_store() local 161 caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) caps_show() argument 167 pin_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) pin_caps_show() argument 176 pin_cfg_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) pin_cfg_show() argument 188 has_pcm_cap(struct hdac_device *codec, hda_nid_t nid) has_pcm_cap() argument 201 pcm_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) pcm_caps_show() argument 210 pcm_formats_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) pcm_formats_show() argument 219 amp_in_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) amp_in_caps_show() argument 228 amp_out_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) amp_out_caps_show() argument 237 power_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) power_caps_show() argument 246 gpio_caps_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) gpio_caps_show() argument 253 connections_show(struct hdac_device *codec, hda_nid_t nid, struct widget_attribute *attr, char *buf) connections_show() argument 338 add_widget_node(struct kobject *parent, hda_nid_t nid, const struct attribute_group *group, struct kobject **res) add_widget_node() argument 367 hda_nid_t nid; widget_tree_create() local 429 hda_nid_t nid; hda_widget_sysfs_reinit() local [all...] |
/kernel/linux/linux-5.10/sound/pci/hda/ |
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 281 hda_nid_t nid; global() member 453 get_wcaps(struct hda_codec *codec, hda_nid_t nid) get_wcaps() argument 479 snd_hda_override_wcaps(struct hda_codec *codec, hda_nid_t nid, u32 val) snd_hda_override_wcaps() argument 502 snd_hda_query_pin_caps(struct hda_codec *codec, hda_nid_t nid) snd_hda_query_pin_caps() argument 519 snd_hda_override_pin_caps(struct hda_codec *codec, hda_nid_t nid, unsigned int caps) snd_hda_override_pin_caps() argument 540 hda_nid_t nid; global() member 595 hda_nid_t nid; global() member 611 snd_hda_check_power_state(struct hda_codec *codec, hda_nid_t nid, unsigned int target_state) snd_hda_check_power_state() argument 617 snd_hda_sync_power_state(struct hda_codec *codec, hda_nid_t nid, unsigned int target_state) snd_hda_sync_power_state() argument [all...] |
H A D | hda_proc.c | 22 #define param_read(codec, nid, parm) \ 23 snd_hdac_read_parm_uncached(&(codec)->core, nid, parm) 48 struct hda_codec *codec, hda_nid_t nid, in print_nid_array() 56 if (item->nid == nid) { in print_nid_array() 75 struct hda_codec *codec, hda_nid_t nid) in print_nid_pcms() 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() 97 caps = param_read(codec, nid, di in print_amp_caps() 47 print_nid_array(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, struct snd_array *array) print_nid_array() argument 74 print_nid_pcms(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_nid_pcms() argument 93 print_amp_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int dir) print_amp_caps() argument 112 is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int wcaps, int indices) is_stereo_amps() argument 133 print_amp_vals(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int wcaps, int indices) print_amp_vals() argument 199 print_pcm_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_pcm_caps() argument 304 print_pin_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int *supports_vref) print_pin_caps() argument 400 print_pin_ctls(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int supports_vref) print_pin_ctls() argument 438 print_vol_knob(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_vol_knob() argument 450 print_audio_io(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type) print_audio_io() argument 468 print_digital_conv(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_digital_conv() argument 512 print_power_state(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_power_state() argument 553 print_unsol_cap(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_unsol_cap() argument 573 print_proc_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_proc_caps() argument 598 print_conn_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type, hda_nid_t *conn, int conn_len) print_conn_list() argument 638 print_gpio(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_gpio() argument 682 print_device_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_device_list() argument 742 hda_nid_t nid, fg; print_codec_info() local [all...] |
H A D | hda_jack.h | 21 hda_nid_t nid; member 31 hda_nid_t nid; member 54 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id); 59 * @nid: pin NID to refer to 62 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_get() argument 64 return snd_hda_jack_tbl_get_mst(codec, nid, 0); in snd_hda_jack_tbl_get() 75 int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid, 79 snd_hda_jack_detect_enable_callback_mst(struct hda_codec *codec, hda_nid_t nid, 85 * @nid: pin NID to enable 93 snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_detect_enable_callback() argument 121 snd_hda_jack_detect_state(struct hda_codec *codec, hda_nid_t nid) snd_hda_jack_detect_state() argument 133 snd_hda_jack_detect_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) snd_hda_jack_detect_mst() argument 145 snd_hda_jack_detect(struct hda_codec *codec, hda_nid_t nid) snd_hda_jack_detect() argument 169 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) snd_hda_jack_add_kctl() argument [all...] |
/kernel/linux/linux-6.6/sound/pci/hda/ |
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; global() member 453 get_wcaps(struct hda_codec *codec, hda_nid_t nid) get_wcaps() argument 479 snd_hda_override_wcaps(struct hda_codec *codec, hda_nid_t nid, u32 val) snd_hda_override_wcaps() argument 502 snd_hda_query_pin_caps(struct hda_codec *codec, hda_nid_t nid) snd_hda_query_pin_caps() argument 519 snd_hda_override_pin_caps(struct hda_codec *codec, hda_nid_t nid, unsigned int caps) snd_hda_override_pin_caps() argument 540 hda_nid_t nid; global() member 595 hda_nid_t nid; global() member 611 snd_hda_check_power_state(struct hda_codec *codec, hda_nid_t nid, unsigned int target_state) snd_hda_check_power_state() argument 617 snd_hda_sync_power_state(struct hda_codec *codec, hda_nid_t nid, unsigned int target_state) snd_hda_sync_power_state() argument [all...] |
H A D | hda_proc.c | 22 #define param_read(codec, nid, parm) \ 23 snd_hdac_read_parm_uncached(&(codec)->core, nid, parm) 48 struct hda_codec *codec, hda_nid_t nid, in print_nid_array() 56 if (item->nid == nid) { in print_nid_array() 75 struct hda_codec *codec, hda_nid_t nid) in print_nid_pcms() 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() 97 caps = param_read(codec, nid, di in print_amp_caps() 47 print_nid_array(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, struct snd_array *array) print_nid_array() argument 74 print_nid_pcms(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_nid_pcms() argument 93 print_amp_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int dir) print_amp_caps() argument 112 is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int wcaps, int indices) is_stereo_amps() argument 133 print_amp_vals(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int wcaps, int indices) print_amp_vals() argument 199 print_pcm_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_pcm_caps() argument 304 print_pin_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int *supports_vref) print_pin_caps() argument 400 print_pin_ctls(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int supports_vref) print_pin_ctls() argument 438 print_vol_knob(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_vol_knob() argument 450 print_audio_io(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type) print_audio_io() argument 468 print_digital_conv(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_digital_conv() argument 512 print_power_state(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_power_state() argument 553 print_unsol_cap(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_unsol_cap() argument 573 print_proc_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_proc_caps() argument 598 print_conn_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type, hda_nid_t *conn, int conn_len) print_conn_list() argument 638 print_gpio(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_gpio() argument 682 print_dpmst_connections(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int dev_num) print_dpmst_connections() argument 714 print_device_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_device_list() argument 778 hda_nid_t nid, fg; print_codec_info() local [all...] |
H A 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); 60 * @nid: pin NID to refer to 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, 87 * @nid: pin NID to enable 95 snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_detect_enable_callback() argument 130 snd_hda_jack_detect_state(struct hda_codec *codec, hda_nid_t nid) snd_hda_jack_detect_state() argument 142 snd_hda_jack_detect_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) snd_hda_jack_detect_mst() argument 154 snd_hda_jack_detect(struct hda_codec *codec, hda_nid_t nid) snd_hda_jack_detect() 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) snd_hda_jack_add_kctl() argument [all...] |
/kernel/linux/linux-6.6/drivers/base/ |
H A D | node.c | 189 * @nid: Node identifier to be set 193 void node_set_perf_attrs(unsigned int nid, struct node_hmem_attrs *hmem_attrs, 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() 293 * @nid: Node identifier that has new cache attributes 296 void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs) in node_add_cache() argument 302 if (!node_online(nid) || !node_devices[nid]) in node_add_cache() 305 node = node_devices[nid]; in node_add_cache() 359 node_init_caches(unsigned int nid) node_init_caches() argument 364 node_init_caches(unsigned int nid) node_init_caches() argument 373 int nid = dev->id; node_read_meminfo() local 518 int nid = dev->id; node_read_vmstat() local 552 int nid = dev->id; node_read_distance() local 654 register_cpu_under_node(unsigned int cpu, unsigned int nid) register_cpu_under_node() argument 727 unregister_cpu_under_node(unsigned int cpu, unsigned int nid) unregister_cpu_under_node() argument 756 do_register_memory_block_under_node(int nid, struct memory_block *mem_blk, enum meminit_context context) do_register_memory_block_under_node() argument 789 int nid = *(int *)arg; register_mem_block_under_node_early() local 829 int nid = *(int *)arg; register_mem_block_under_node_hotplug() local 850 register_memory_blocks_under_node(int nid, unsigned long start_pfn, unsigned long end_pfn, enum meminit_context context) register_memory_blocks_under_node() argument 867 __register_one_node(int nid) __register_one_node() argument 893 unregister_one_node(int nid) unregister_one_node() argument [all...] |
/kernel/linux/linux-5.10/arch/powerpc/mm/ |
H A D | numa.c | 94 unsigned int *nid) in fake_numa_create_new_node() 106 *nid = fake_nid; in fake_numa_create_new_node() 133 *nid = fake_nid; in fake_numa_create_new_node() 177 int nid; in __associativity_to_nid() local 186 nid = of_read_number(&associativity[index], 1); in __associativity_to_nid() 189 if (nid == 0xffff || nid >= nr_node_ids) in __associativity_to_nid() 190 nid = NUMA_NO_NODE; in __associativity_to_nid() 191 return nid; in __associativity_to_nid() 194 * Returns nid i 93 fake_numa_create_new_node(unsigned long end_pfn, unsigned int *nid) fake_numa_create_new_node() argument 280 int nid = NUMA_NO_NODE; of_node_to_nid_single() local 292 int nid = NUMA_NO_NODE; of_node_to_nid() local 311 int i, nid; __initialize_form1_numa_distance() local 348 int nid; update_numa_distance() local 599 int nid = default_nid; get_nid_and_numa_distance() local 635 int nid = default_nid; of_drconf_to_nid_single() local 717 int nid = NUMA_NO_NODE; numa_setup_cpu() local 801 int nid; ppc_numa_cpu_prepare() local 865 int nid; numa_setup_drmem_lmb() local 945 int nid = NUMA_NO_NODE; parse_numa_properties() local 980 int nid; parse_numa_properties() local 1041 unsigned int nid = 0; setup_nonnuma() local 1053 &memblock.memory, nid); setup_nonnuma() local 1094 setup_node_data(int nid, u64 start_pfn, u64 end_pfn) setup_node_data() argument 1219 int nid; initmem_init() local 1275 int nid = NUMA_NO_NODE; hot_add_drconf_scn_to_nid() local 1305 int nid = NUMA_NO_NODE; hot_add_node_scn_to_nid() local 1348 int nid; hot_add_scn_to_nid() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/mm/ |
H A D | numa.c | 92 unsigned int *nid) in fake_numa_create_new_node() 104 *nid = fake_nid; in fake_numa_create_new_node() 131 *nid = fake_nid; in fake_numa_create_new_node() 173 int nid; in __associativity_to_nid() local 182 nid = of_read_number(&associativity[index], 1); in __associativity_to_nid() 185 if (nid == 0xffff || nid >= nr_node_ids) in __associativity_to_nid() 186 nid = NUMA_NO_NODE; in __associativity_to_nid() 187 return nid; in __associativity_to_nid() 190 * Returns nid i 91 fake_numa_create_new_node(unsigned long end_pfn, unsigned int *nid) fake_numa_create_new_node() argument 276 int nid = NUMA_NO_NODE; of_node_to_nid_single() local 288 int nid = NUMA_NO_NODE; of_node_to_nid() local 307 int i, nid; __initialize_form1_numa_distance() local 344 int nid; update_numa_distance() local 590 int nid = default_nid; get_nid_and_numa_distance() local 626 int nid = default_nid; of_drconf_to_nid_single() local 708 int nid = NUMA_NO_NODE; numa_setup_cpu() local 792 int nid; ppc_numa_cpu_prepare() local 856 int nid; numa_setup_drmem_lmb() local 936 int nid = NUMA_NO_NODE; parse_numa_properties() local 971 int nid; parse_numa_properties() local 1032 unsigned int nid = 0; setup_nonnuma() local 1042 &memblock.memory, nid); setup_nonnuma() local 1083 setup_node_data(int nid, u64 start_pfn, u64 end_pfn) setup_node_data() argument 1211 int nid; initmem_init() local 1261 int nid = NUMA_NO_NODE; hot_add_drconf_scn_to_nid() local 1291 int nid = NUMA_NO_NODE; hot_add_node_scn_to_nid() local 1326 int nid; hot_add_scn_to_nid() local [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A 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() 145 __register_one_node(int nid) __register_one_node() argument 149 register_one_node(int nid) register_one_node() argument 153 unregister_one_node(int nid) unregister_one_node() argument 157 register_cpu_under_node(unsigned int cpu, unsigned int nid) register_cpu_under_node() argument 161 unregister_cpu_under_node(unsigned int cpu, unsigned int nid) unregister_cpu_under_node() argument [all...] |
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | vmscan.h | 37 TP_PROTO(int nid), 39 TP_ARGS(nid), 42 __field( int, nid ) 46 __entry->nid = nid; 49 TP_printk("nid=%d", __entry->nid) 54 TP_PROTO(int nid, int zid, int order), 56 TP_ARGS(nid, zid, order), 59 __field( int, nid ) [all...] |
/kernel/linux/linux-6.6/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...] |
/kernel/linux/linux-5.10/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) snd_hdac_regmap_write() argument 97 snd_hdac_regmap_update(struct hdac_device *codec, hda_nid_t nid, unsigned int verb, unsigned int mask, unsigned int val) snd_hdac_regmap_update() argument 115 snd_hdac_regmap_read(struct hdac_device *codec, hda_nid_t nid, unsigned int verb, unsigned int *val) snd_hdac_regmap_read() argument 136 snd_hdac_regmap_get_amp(struct hdac_device *codec, hda_nid_t nid, int ch, int dir, int idx) snd_hdac_regmap_get_amp() 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) snd_hdac_regmap_update_amp() argument 181 snd_hdac_regmap_get_amp_stereo(struct hdac_device *codec, hda_nid_t nid, int dir, int idx) snd_hdac_regmap_get_amp_stereo() argument 205 snd_hdac_regmap_update_amp_stereo(struct hdac_device *codec, hda_nid_t nid, int dir, int idx, int mask, int val) snd_hdac_regmap_update_amp_stereo() argument 219 snd_hdac_regmap_sync_node(struct hdac_device *codec, hda_nid_t nid) snd_hdac_regmap_sync_node() argument [all...] |
H A D | hda_codec.h | 115 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid); 118 void (*stream_pm)(struct hda_codec *codec, hda_nid_t nid, bool on); 142 hda_nid_t nid; /* default NID to query rates/formats/bps, or set up */ member 266 /* filter the requested power state per nid */ 267 unsigned int (*power_filter)(struct hda_codec *codec, hda_nid_t nid, 272 struct hda_codec *codec, hda_nid_t nid); 319 snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_read() argument 323 return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm); in snd_hda_codec_read() 327 snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, in snd_hda_codec_write() argument 330 return snd_hdac_codec_write(&codec->core, nid, flag in snd_hda_codec_write() 340 snd_hda_get_num_conns(struct hda_codec *codec, hda_nid_t nid) snd_hda_get_num_conns() argument 363 hda_nid_t nid; global() member 373 snd_hda_codec_write_cache(struct hda_codec *codec, hda_nid_t nid, int flags, unsigned int verb, unsigned int parm) snd_hda_codec_write_cache() argument 381 hda_nid_t nid; global() member 396 hda_nid_t nid; /* Converter nid values relate to */ global() member 475 hda_call_check_power_status(struct hda_codec *codec, hda_nid_t nid) hda_call_check_power_status() argument [all...] |
/kernel/linux/linux-6.6/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) snd_hdac_regmap_write() argument 97 snd_hdac_regmap_update(struct hdac_device *codec, hda_nid_t nid, unsigned int verb, unsigned int mask, unsigned int val) snd_hdac_regmap_update() argument 115 snd_hdac_regmap_read(struct hdac_device *codec, hda_nid_t nid, unsigned int verb, unsigned int *val) snd_hdac_regmap_read() argument 136 snd_hdac_regmap_get_amp(struct hdac_device *codec, hda_nid_t nid, int ch, int dir, int idx) snd_hdac_regmap_get_amp() 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) snd_hdac_regmap_update_amp() argument 181 snd_hdac_regmap_get_amp_stereo(struct hdac_device *codec, hda_nid_t nid, int dir, int idx) snd_hdac_regmap_get_amp_stereo() argument 205 snd_hdac_regmap_update_amp_stereo(struct hdac_device *codec, hda_nid_t nid, int dir, int idx, int mask, int val) snd_hdac_regmap_update_amp_stereo() argument 219 snd_hdac_regmap_sync_node(struct hdac_device *codec, hda_nid_t nid) snd_hdac_regmap_sync_node() argument [all...] |
H A D | hda_codec.h | 115 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid); 117 void (*stream_pm)(struct hda_codec *codec, hda_nid_t nid, bool on); 141 hda_nid_t nid; /* default NID to query rates/formats/bps, or set up */ member 267 /* filter the requested power state per nid */ 268 unsigned int (*power_filter)(struct hda_codec *codec, hda_nid_t nid, 273 struct hda_codec *codec, hda_nid_t nid); 325 snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_read() argument 329 return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm); in snd_hda_codec_read() 333 snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, in snd_hda_codec_write() argument 336 return snd_hdac_codec_write(&codec->core, nid, flag in snd_hda_codec_write() 346 snd_hda_get_num_conns(struct hda_codec *codec, hda_nid_t nid) snd_hda_get_num_conns() argument 369 hda_nid_t nid; global() member 379 snd_hda_codec_write_cache(struct hda_codec *codec, hda_nid_t nid, int flags, unsigned int verb, unsigned int parm) snd_hda_codec_write_cache() argument 387 hda_nid_t nid; global() member 402 hda_nid_t nid; /* Converter nid values relate to */ global() member 481 hda_call_check_power_status(struct hda_codec *codec, hda_nid_t nid) hda_call_check_power_status() argument [all...] |
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
H A D | mmzone.h | 9 #define NODE_DATA(nid) (node_data[nid]) 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, unsigne 31 setup_bootmem_node(int nid, unsigned long start, unsigned long end) setup_bootmem_node() argument [all...] |
/kernel/linux/linux-6.6/arch/sh/include/asm/ |
H A D | mmzone.h | 9 #define NODE_DATA(nid) (node_data[nid]) 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, unsigne 31 setup_bootmem_node(int nid, unsigned long start, unsigned long end) setup_bootmem_node() argument [all...] |
/kernel/linux/linux-5.10/arch/x86/mm/ |
H A 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() 181 * @nid: NUMA node ID of the new memblk 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 524 int nid = memblock_get_region_node(mb_region); numa_clear_kernel_node_hotplug() local 550 int i, nid; numa_register_memblks() local 678 int nid = early_cpu_to_node(i); numa_init() local 735 init_memory_less_node(int nid) init_memory_less_node() argument 761 int nid; init_gi_nodes() local 929 int nid = meminfo_to_nid(&numa_meminfo, start); phys_to_target_node() local 944 int nid = meminfo_to_nid(&numa_meminfo, start); memory_add_physaddr_to_nid() local [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | node.h | 68 void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs); 69 void node_set_perf_attrs(unsigned int nid, struct node_hmem_attrs *hmem_attrs, 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 102 void link_mem_sections(int nid, unsigned long start_pfn, 106 static inline void link_mem_sections(int nid, unsigned long start_pfn, in link_mem_sections() 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() 152 __register_one_node(int nid) __register_one_node() argument 156 register_one_node(int nid) register_one_node() argument 160 unregister_one_node(int nid) unregister_one_node() argument 164 register_cpu_under_node(unsigned int cpu, unsigned int nid) register_cpu_under_node() argument 168 unregister_cpu_under_node(unsigned int cpu, unsigned int nid) unregister_cpu_under_node() argument [all...] |
/kernel/linux/linux-6.6/arch/x86/mm/ |
H A D | numa.c | 126 static int __init numa_add_memblk_to(int nid, u64 start, u64 end, in numa_add_memblk_to() argument 134 if (start > end || nid < 0 || nid >= MAX_NUMNODES) { in numa_add_memblk_to() 136 nid, start, end - 1); in numa_add_memblk_to() 147 mi->blk[mi->nr_blks].nid = nid; in numa_add_memblk_to() 182 * @nid: NUMA node ID of the new memblk 191 int __init numa_add_memblk(int nid, u64 start, u64 end) in numa_add_memblk() argument 193 return numa_add_memblk_to(nid, start, end, &numa_meminfo); in numa_add_memblk() 197 static void __init alloc_node_data(int nid) in alloc_node_data() argument 524 int nid = memblock_get_region_node(mb_region); numa_clear_kernel_node_hotplug() local 550 int i, nid; numa_register_memblks() local 678 int nid = early_cpu_to_node(i); numa_init() local 750 int nid; init_gi_nodes() local 936 int nid = meminfo_to_nid(&numa_meminfo, start); phys_to_target_node() local 951 int nid = meminfo_to_nid(&numa_meminfo, start); memory_add_physaddr_to_nid() local [all...] |
/kernel/linux/linux-5.10/arch/arm64/mm/ |
H A D | numa.c | 67 int nid = cpu_to_node(cpu); in numa_update_cpu() local 69 if (nid == NUMA_NO_NODE) in numa_update_cpu() 73 cpumask_clear_cpu(cpu, node_to_cpumask_map[nid]); in numa_update_cpu() 75 cpumask_set_cpu(cpu, node_to_cpumask_map[nid]); in numa_update_cpu() 127 void __init early_map_cpu_to_node(unsigned int cpu, int nid) in early_map_cpu_to_node() argument 130 if (nid < 0 || nid >= MAX_NUMNODES || numa_off) in early_map_cpu_to_node() 131 nid = 0; in early_map_cpu_to_node() 133 cpu_to_node_map[cpu] = nid; in early_map_cpu_to_node() 141 set_cpu_numa_node(cpu, nid); in early_map_cpu_to_node() 161 int nid = early_cpu_to_node(cpu); pcpu_fc_alloc() local 204 numa_add_memblk(int nid, u64 start, u64 end) numa_add_memblk() argument 222 setup_node_data(int nid, u64 start_pfn, u64 end_pfn) setup_node_data() argument 353 int nid; numa_register_nodes() local [all...] |