| /linux/mm/ |
| H A D | hugetlb_cma.c | 29 static phys_addr_t __init memblock_node_memory_size(int nid) in memblock_node_memory_size() argument 35 if (reg->nid == nid) in memblock_node_memory_size() 41 static phys_addr_t __init memblock_node_memory_size(int nid) in memblock_node_memory_size() argument 54 int nid, nodemask_t *nodemask) in hugetlb_cma_alloc_frozen_folio() argument 73 if (hugetlb_cma[nid] && node_isset(nid, *nmask)) in hugetlb_cma_alloc_frozen_folio() 74 page = cma_alloc_frozen_compound(hugetlb_cma[nid], order); in hugetlb_cma_alloc_frozen_folio() 78 if (node == nid || !hugetlb_cma[node]) in hugetlb_cma_alloc_frozen_folio() 99 void * __init hugetlb_cma_alloc_bootmem(struct hstate *h, int nid, bool node_exact) in hugetlb_cma_alloc_bootmem() argument 105 cma = hugetlb_cma[nid]; in hugetlb_cma_alloc_bootmem() 112 if (!cma || node == nid) in hugetlb_cma_alloc_bootmem() [all …]
|
| H A D | sparse.c | 53 static void set_section_nid(unsigned long section_nr, int nid) in set_section_nid() argument 55 section_to_node_table[section_nr] = nid; in set_section_nid() 58 static inline void set_section_nid(unsigned long section_nr, int nid) in set_section_nid() argument 64 static noinline struct mem_section __ref *sparse_index_alloc(int nid) in sparse_index_alloc() argument 71 section = kzalloc_node(array_size, GFP_KERNEL, nid); in sparse_index_alloc() 74 nid); in sparse_index_alloc() 77 __func__, array_size, nid); in sparse_index_alloc() 83 int __meminit sparse_index_init(unsigned long section_nr, int nid) in sparse_index_init() argument 98 section = sparse_index_alloc(nid); in sparse_index_init() 107 int __meminit sparse_index_init(unsigned long section_nr, int nid) in sparse_index_init() argument [all …]
|
| H A D | hugetlb_internal.h | 31 static inline int next_node_allowed(int nid, nodemask_t *nodes_allowed) in next_node_allowed() argument 33 nid = next_node_in(nid, *nodes_allowed); in next_node_allowed() 34 VM_BUG_ON(nid >= MAX_NUMNODES); in next_node_allowed() 36 return nid; in next_node_allowed() 39 static inline int get_valid_node_allowed(int nid, nodemask_t *nodes_allowed) in get_valid_node_allowed() argument 41 if (!node_isset(nid, *nodes_allowed)) in get_valid_node_allowed() 42 nid = next_node_allowed(nid, nodes_allowed); in get_valid_node_allowed() 43 return nid; in get_valid_node_allowed() 55 int nid; in hstate_next_node_to_alloc() local 59 nid = get_valid_node_allowed(*next_node, nodes_allowed); in hstate_next_node_to_alloc() [all …]
|
| H A D | shrinker.c | 42 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 70 for_each_node(nid) { in __free_shrinker_info() 71 pn = memcg->nodeinfo[nid]; in __free_shrinker_info() 88 int nid, ret = 0; in alloc_shrinker_info() local 93 for_each_node(nid) { in alloc_shrinker_info() 95 GFP_KERNEL, nid); in alloc_shrinker_info() 99 if (shrinker_unit_alloc(info, NULL, nid)) { in alloc_shrinker_info() 103 rcu_assign_pointer(memcg->nodeinfo[nid]->shrinker_info, info); in alloc_shrinker_info() [all …]
|
| H A D | mm_init.c | 77 int nid; in mminit_verify_zonelist() local 82 for_each_online_node(nid) { in mminit_verify_zonelist() 83 pg_data_t *pgdat = NODE_DATA(nid); in mminit_verify_zonelist() 101 listid > 0 ? "thisnode" : "general", nid, in mminit_verify_zonelist() 333 int i, nid; in early_calculate_totalpages() local 335 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, &nid) { in early_calculate_totalpages() 339 node_set_state(nid, N_MEMORY); in early_calculate_totalpages() 373 int i, nid; in find_zone_movable_pfns_for_nodes() local 394 nid = memblock_get_region_node(r); in find_zone_movable_pfns_for_nodes() 397 zone_movable_pfn[nid] = zone_movable_pfn[nid] ? in find_zone_movable_pfns_for_nodes() [all …]
|
| H A D | arch_numa.c | 65 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() 138 void __init early_map_cpu_to_node(unsigned int cpu, int nid) in early_map_cpu_to_node() argument 141 if (nid < 0 || nid >= MAX_NUMNODES || numa_off) in early_map_cpu_to_node() 142 nid = 0; in early_map_cpu_to_node() 144 cpu_to_node_map[cpu] = nid; in early_map_cpu_to_node() 152 set_cpu_numa_node(cpu, nid); in early_map_cpu_to_node() 207 static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn) in setup_node_data() argument [all …]
|
| H A D | hugetlb_sysfs.c | 47 int nid; in nr_hugepages_show_common() local 49 h = kobj_to_hstate(kobj, &nid); in nr_hugepages_show_common() 50 if (nid == NUMA_NO_NODE) in nr_hugepages_show_common() 53 nr_huge_pages = h->nr_huge_pages_node[nid]; in nr_hugepages_show_common() 64 int nid; in nr_hugepages_store_common() local 71 h = kobj_to_hstate(kobj, &nid); in nr_hugepages_store_common() 72 return __nr_hugepages_store_common(obey_mempolicy, h, nid, count, len); in nr_hugepages_store_common() 144 int nid; in free_hugepages_show() local 146 h = kobj_to_hstate(kobj, &nid); in free_hugepages_show() 147 if (nid == NUMA_NO_NODE) in free_hugepages_show() [all …]
|
| H A D | numa.c | 12 void __init alloc_node_data(int nid) in alloc_node_data() argument 19 nd_pa = memblock_phys_alloc_try_nid(nd_size, SMP_CACHE_BYTES, nid); in alloc_node_data() 22 nd_size, nid); in alloc_node_data() 25 pr_info("NODE_DATA(%d) allocated [mem %#010Lx-%#010Lx]\n", nid, in alloc_node_data() 28 if (tnid != nid) in alloc_node_data() 29 pr_info(" NODE_DATA(%d) on node %d\n", nid, tnid); in alloc_node_data() 31 node_data[nid] = __va(nd_pa); in alloc_node_data() 32 memset(NODE_DATA(nid), 0, sizeof(pg_data_t)); in alloc_node_data() 35 void __init alloc_offline_node_data(int nid) in alloc_offline_node_data() argument 38 node_data[nid] = memblock_alloc_or_panic(sizeof(*pgdat), SMP_CACHE_BYTES); in alloc_offline_node_data()
|
| H A D | page_ext.c | 188 static int __init alloc_node_page_ext(int nid) in alloc_node_page_ext() argument 194 nr_pages = NODE_DATA(nid)->node_spanned_pages; in alloc_node_page_ext() 203 if (!IS_ALIGNED(node_start_pfn(nid), MAX_ORDER_NR_PAGES) || in alloc_node_page_ext() 204 !IS_ALIGNED(node_end_pfn(nid), MAX_ORDER_NR_PAGES)) in alloc_node_page_ext() 211 MEMBLOCK_ALLOC_ACCESSIBLE, nid); in alloc_node_page_ext() 214 NODE_DATA(nid)->node_page_ext = base; in alloc_node_page_ext() 223 int nid, fail; in page_ext_init_flatmem() local 228 for_each_online_node(nid) { in page_ext_init_flatmem() 229 fail = alloc_node_page_ext(nid); in page_ext_init_flatmem() 265 static void *__meminit alloc_page_ext(size_t size, int nid) in alloc_page_ext() argument [all …]
|
| /linux/sound/hda/core/ |
| H A D | 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 …]
|
| H A D | device.c | 225 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/sound/hda/common/ |
| H A D | hda_local.h | 28 #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs) \ argument 29 ((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19) | ((ofs)<<23)) 31 #define HDA_COMPOSE_AMP_VAL(nid,chs,idx,dir) \ argument 32 HDA_COMPOSE_AMP_VAL_OFS(nid, chs, idx, dir, 0) 34 #define HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, channel, xindex, dir, flags) \ argument 44 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, dir) | flags } 46 #define HDA_CODEC_VOLUME_IDX(xname, xcidx, nid, xindex, direction) \ argument 47 HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, 3, xindex, direction, 0) 49 #define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \ argument 50 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, channe 52 HDA_CODEC_VOLUME(xname,nid,xindex,direction) global() argument 55 HDA_CODEC_VOLUME_MIN_MUTE(xname,nid,xindex,direction) global() argument 59 HDA_CODEC_MUTE_MONO_IDX(xname,xcidx,nid,channel,xindex,direction) global() argument 67 HDA_CODEC_MUTE_IDX(xname,xcidx,nid,xindex,direction) global() argument 70 HDA_CODEC_MUTE_MONO(xname,nid,channel,xindex,direction) global() argument 73 HDA_CODEC_MUTE(xname,nid,xindex,direction) global() argument 77 HDA_CODEC_MUTE_BEEP_MONO_IDX(xname,xcidx,nid,channel,xindex,direction) global() argument 86 HDA_CODEC_MUTE_BEEP_MONO_IDX(xname,xcidx,nid,ch,xidx,dir) global() argument 90 HDA_CODEC_MUTE_BEEP_MONO(xname,nid,channel,xindex,direction) global() argument 93 HDA_CODEC_MUTE_BEEP(xname,nid,xindex,direction) global() argument 119 snd_hda_codec_amp_read(codec,nid,ch,dir,idx) global() argument 274 hda_nid_t nid; global() member 466 for_each_hda_codec_node(nid,codec) global() argument 481 get_wcaps(struct hda_codec * codec,hda_nid_t nid) get_wcaps() argument 508 snd_hda_override_wcaps(struct hda_codec * codec,hda_nid_t nid,u32 val) snd_hda_override_wcaps() argument 530 snd_hda_query_pin_caps(struct hda_codec * codec,hda_nid_t nid) snd_hda_query_pin_caps() argument 547 snd_hda_override_pin_caps(struct hda_codec * codec,hda_nid_t nid,unsigned int caps) snd_hda_override_pin_caps() argument 556 nid_has_mute(codec,nid,dir) global() argument 558 nid_has_volume(codec,nid,dir) global() argument 568 hda_nid_t nid; global() member 621 hda_nid_t nid; global() member 637 snd_hda_check_power_state(struct hda_codec * codec,hda_nid_t nid,unsigned int target_state) snd_hda_check_power_state() argument 644 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 | 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, di in print_amp_caps() 112 is_stereo_amps(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int wcaps,int indices) is_stereo_amps() argument 134 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 200 print_pcm_caps(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_pcm_caps() argument 305 print_pin_caps(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid,int * supports_vref) print_pin_caps() argument 401 print_pin_ctls(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid,int supports_vref) print_pin_ctls() argument 439 print_vol_knob(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_vol_knob() argument 451 print_audio_io(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid,unsigned int wid_type) print_audio_io() argument 469 print_digital_conv(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_digital_conv() argument 513 print_power_state(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_power_state() argument 554 print_unsol_cap(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_unsol_cap() argument 574 print_proc_caps(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_proc_caps() argument 599 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 639 print_gpio(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_gpio() argument 683 print_dpmst_connections(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid,int dev_num) print_dpmst_connections() argument 715 print_device_list(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_device_list() argument 777 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...] |
| H A D | jack.c | 22 * @nid: pin NID 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() 73 * @nid in snd_hda_jack_tbl_get_mst() 71 snd_hda_jack_tbl_get_mst(struct hda_codec * codec,hda_nid_t nid,int dev_id) snd_hda_jack_tbl_get_mst() argument 108 any_jack_tbl_get_from_nid(struct hda_codec * codec,hda_nid_t nid) any_jack_tbl_get_from_nid() argument 128 snd_hda_jack_tbl_new(struct hda_codec * codec,hda_nid_t nid,int dev_id) snd_hda_jack_tbl_new() argument 253 snd_hda_jack_pin_sense(struct hda_codec * codec,hda_nid_t nid,int dev_id) snd_hda_jack_pin_sense() argument 275 snd_hda_jack_detect_state_mst(struct hda_codec * codec,hda_nid_t nid,int dev_id) snd_hda_jack_detect_state_mst() argument 318 snd_hda_jack_detect_enable_callback_mst(struct hda_codec * codec,hda_nid_t nid,int dev_id,hda_jack_callback_fn func) snd_hda_jack_detect_enable_callback_mst() argument 365 snd_hda_jack_detect_enable(struct hda_codec * codec,hda_nid_t nid,int dev_id) snd_hda_jack_detect_enable() argument 502 get_input_jack_type(struct hda_codec * codec,hda_nid_t nid) get_input_jack_type() argument 541 snd_hda_jack_add_kctl_mst(struct hda_codec * codec,hda_nid_t nid,int dev_id,const char * name,bool phantom_jack,int type,const struct hda_jack_keymap * keymap) snd_hda_jack_add_kctl_mst() argument 586 add_jack_kctl(struct hda_codec * codec,hda_nid_t nid,const struct auto_pin_cfg * cfg,const char * base_name) add_jack_kctl() argument [all...] |
| H A D | codec.c | 96 for (; seq->nid; seq++) in snd_hda_sequence_write() 97 snd_hda_codec_write(codec, seq->nid, 0, seq->verb, seq->param); in snd_hda_sequence_write() 105 hda_nid_t nid; member 111 lookup_conn_list(struct hda_codec *codec, hda_nid_t nid) in lookup_conn_list() argument 115 if (p->nid == nid) in lookup_conn_list() 121 static int add_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in add_conn_list() argument 130 p->nid = nid; in add_conn_list() 147 static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) in read_and_add_raw_conns() argument 153 len = snd_hda_get_raw_connections(codec, nid, list, ARRAY_SIZE(list)); in read_and_add_raw_conns() 155 len = snd_hda_get_num_raw_conns(codec, nid); in read_and_add_raw_conns() [all …]
|
| H A D | auto_parser.c | 20 static int is_in_nid_list(hda_nid_t nid, const hda_nid_t *list) in is_in_nid_list() argument 23 if (*list == nid) in is_in_nid_list() 57 hda_nid_t nid, int type) in add_auto_cfg_input_pin() argument 60 cfg->inputs[cfg->num_inputs].pin = nid; in add_auto_cfg_input_pin() 63 nid_has_volume(codec, nid, HDA_INPUT); in add_auto_cfg_input_pin() 177 hda_nid_t nid; in snd_hda_parse_pin_defcfg() local 194 for_each_hda_codec_node(nid, codec) { in snd_hda_parse_pin_defcfg() 195 unsigned int wid_caps = get_wcaps(codec, nid); in snd_hda_parse_pin_defcfg() 204 if (ignore_nids && is_in_nid_list(nid, ignore_nids)) in snd_hda_parse_pin_defcfg() 207 def_conf = snd_hda_codec_get_pincfg(codec, nid); in snd_hda_parse_pin_defcfg() 595 find_idx_in_nid_list(hda_nid_t nid,const hda_nid_t * list,int nums) find_idx_in_nid_list() argument 605 check_output_sfx(hda_nid_t nid,const hda_nid_t * pins,int num_pins,int * indexp) check_output_sfx() argument 626 check_output_pfx(struct hda_codec * codec,hda_nid_t nid) check_output_pfx() argument 641 get_hp_label_index(struct hda_codec * codec,hda_nid_t nid,const hda_nid_t * pins,int num_pins) get_hp_label_index() argument 658 fill_audio_out_name(struct hda_codec * codec,hda_nid_t nid,const struct auto_pin_cfg * cfg,const char * name,char * label,int maxlen,int * indexp) fill_audio_out_name() argument 714 snd_hda_get_pin_label(struct hda_codec * codec,hda_nid_t nid,const struct auto_pin_cfg * cfg,char * label,int maxlen,int * indexp) snd_hda_get_pin_label() argument 903 hda_nid_t nid = pin->nid; pin_config_match() local [all...] |
| /linux/sound/pci/lola/ |
| H A 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/include/sound/ |
| H A D | hda_codec.h | 119 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 269 unsigned int (*power_filter)(struct hda_codec *codec, hda_nid_t nid, 274 struct hda_codec *codec, hda_nid_t nid); 326 snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_read() argument 330 return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm); in snd_hda_codec_read() 334 snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, in snd_hda_codec_write() argument 337 return snd_hdac_codec_write(&codec->core, nid, flags, verb, parm); in snd_hda_codec_write() 342 snd_hda_codec_write_sync(struct hda_codec *codec, hda_nid_t nid, int flags, in snd_hda_codec_write_sync() argument [all …]
|
| /linux/include/linux/ |
| H A D | node.h | 85 void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs); 86 void node_set_perf_attrs(unsigned int nid, struct access_coordinate *coord, 88 void node_update_perf_attrs(unsigned int nid, struct access_coordinate *coord, 91 static inline void node_add_cache(unsigned int nid, in node_add_cache() argument 96 static inline void node_set_perf_attrs(unsigned int nid, in node_set_perf_attrs() argument 102 static inline void node_update_perf_attrs(unsigned int nid, in node_update_perf_attrs() argument 122 void register_memory_blocks_under_node_hotplug(int nid, unsigned long start_pfn, 125 static inline void register_memory_blocks_under_node_hotplug(int nid, in register_memory_blocks_under_node_hotplug() argument 136 int nid; member 177 int register_node(int nid); [all …]
|
| /linux/arch/sh/include/asm/ |
| H A D | mmzone.h | 10 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/arch/sh/mm/ |
| H A D | numa.c | 23 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/include/trace/events/ |
| H A D | compaction.h | 201 __field(int, nid) 208 __entry->nid = zone_to_nid(zone); 215 __entry->nid, 246 __field(int, nid) 255 __entry->nid = zone_to_nid(zone); 264 __entry->nid, 295 TP_PROTO(int nid), 297 TP_ARGS(nid), 300 __field(int, nid) 304 __entry->nid = nid; [all …]
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | memtrace.c | 28 u32 nid; member 95 static u64 memtrace_alloc_node(u32 nid, u64 size) in memtrace_alloc_node() argument 106 __GFP_NOWARN | __GFP_ZERO, nid, NULL); in memtrace_alloc_node() 133 u32 nid; in memtrace_init_regions_runtime() local 142 for_each_online_node(nid) { in memtrace_init_regions_runtime() 143 m = memtrace_alloc_node(nid, size); in memtrace_init_regions_runtime() 150 pr_err("Failed to allocate trace memory on node %d\n", nid); in memtrace_init_regions_runtime() 154 pr_info("Allocated trace memory on node %d at 0x%016llx\n", nid, m); in memtrace_init_regions_runtime() 158 memtrace_array[memtrace_array_nr].nid = nid; in memtrace_init_regions_runtime() 185 snprintf(ent->name, 16, "%08x", ent->nid); in memtrace_init_debugfs() [all …]
|
| /linux/fs/f2fs/ |
| H A D | node.c | 31 static inline bool is_invalid_nid(struct f2fs_sb_info *sbi, nid_t nid) in is_invalid_nid() argument 33 return nid < F2FS_ROOT_INO(sbi) || nid >= NM_I(sbi)->max_nid; in is_invalid_nid() 39 int f2fs_check_nid_range(struct f2fs_sb_info *sbi, nid_t nid) in f2fs_check_nid_range() argument 41 if (unlikely(is_invalid_nid(sbi, nid))) { in f2fs_check_nid_range() 44 __func__, nid); in f2fs_check_nid_range() 143 static struct folio *get_current_nat_folio(struct f2fs_sb_info *sbi, nid_t nid) in get_current_nat_folio() argument 145 return f2fs_get_meta_folio_retry(sbi, current_nat_addr(sbi, nid)); in get_current_nat_folio() 148 static struct folio *get_next_nat_folio(struct f2fs_sb_info *sbi, nid_t nid) in get_next_nat_folio() argument 157 dst_off = next_nat_addr(sbi, current_nat_addr(sbi, nid)); in get_next_nat_folio() 160 src_folio = get_current_nat_folio(sbi, nid); in get_next_nat_folio() [all …]
|