| /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 …]
|
| /linux/mm/ |
| H A D | hugetlb_cma.c | 28 int nid, nodemask_t *nodemask) in hugetlb_cma_alloc_frozen_folio() argument 37 if (hugetlb_cma[nid]) in hugetlb_cma_alloc_frozen_folio() 38 page = cma_alloc_frozen_compound(hugetlb_cma[nid], order); in hugetlb_cma_alloc_frozen_folio() 42 if (node == nid || !hugetlb_cma[node]) in hugetlb_cma_alloc_frozen_folio() 60 hugetlb_cma_alloc_bootmem(struct hstate *h, int *nid, bool node_exact) in hugetlb_cma_alloc_bootmem() argument 64 int node = *nid; in hugetlb_cma_alloc_bootmem() 66 cma = hugetlb_cma[*nid]; in hugetlb_cma_alloc_bootmem() 74 if (!cma || node == *nid) in hugetlb_cma_alloc_bootmem() 78 *nid = node; in hugetlb_cma_alloc_bootmem() 94 int nid, coun in cmdline_parse_hugetlb_cma() local 147 int nid; hugetlb_cma_reserve() local [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 | mm_init.c | 73 int nid; in mminit_verify_zonelist() local 78 for_each_online_node(nid) { in mminit_verify_zonelist() 79 pg_data_t *pgdat = NODE_DATA(nid); in mminit_verify_zonelist() 97 listid > 0 ? "thisnode" : "general", nid, in mminit_verify_zonelist() 329 int i, nid; in early_calculate_totalpages() local 331 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, &nid) { in early_calculate_totalpages() 336 node_set_state(nid, N_MEMORY); in early_calculate_totalpages() 370 int i, nid; in find_zone_movable_pfns_for_nodes() local 391 nid = memblock_get_region_node(r); in find_zone_movable_pfns_for_nodes() 394 zone_movable_pfn[nid] in find_zone_movable_pfns_for_nodes() 593 __init_single_page(struct page * page,unsigned long pfn,unsigned long zone,int nid) __init_single_page() argument 631 int nid; __early_pfn_to_nid() local 649 int nid; early_pfn_to_nid() local 680 __init_page_from_nid(unsigned long pfn,int nid) __init_page_from_nid() argument 707 early_page_initialised(unsigned long pfn,int nid) early_page_initialised() argument 720 defer_init(int nid,unsigned long pfn,unsigned long end_pfn) defer_init() argument 756 __init_deferred_page(unsigned long pfn,int nid) __init_deferred_page() argument 766 early_page_initialised(unsigned long pfn,int nid) early_page_initialised() argument 771 defer_init(int nid,unsigned long pfn,unsigned long end_pfn) defer_init() argument 776 __init_deferred_page(unsigned long pfn,int nid) __init_deferred_page() argument 781 init_deferred_page(unsigned long pfn,int nid) init_deferred_page() argument 858 memmap_init_range(unsigned long size,int nid,unsigned long zone,unsigned long start_pfn,unsigned long zone_end_pfn,enum meminit_context context,struct vmem_altmap * altmap,int migratetype,bool isolate_pageblock) memmap_init_range() argument 934 int nid = zone_to_nid(zone), zone_id = zone_idx(zone); memmap_init_zone_range() local 956 int i, j, zone_id = 0, nid; memmap_init() local 991 __init_zone_device_page(struct page * page,unsigned long pfn,unsigned long zone_idx,int nid,struct dev_pagemap * pgmap) __init_zone_device_page() argument 1070 memmap_init_compound(struct page * head,unsigned long head_pfn,unsigned long zone_idx,int nid,struct dev_pagemap * pgmap,unsigned long nr_pages) memmap_init_compound() argument 1105 int nid = pgdat->node_id; memmap_init_zone_device() local 1147 adjust_zone_range_for_zone_movable(int nid,unsigned long zone_type,unsigned long node_end_pfn,unsigned long * zone_start_pfn,unsigned long * zone_end_pfn) adjust_zone_range_for_zone_movable() argument 1177 __absent_pages_in_range(int nid,unsigned long range_start_pfn,unsigned long range_end_pfn) __absent_pages_in_range() argument 1207 zone_absent_pages_in_node(int nid,unsigned long zone_type,unsigned long zone_start_pfn,unsigned long zone_end_pfn) zone_absent_pages_in_node() argument 1252 zone_spanned_pages_in_node(int nid,unsigned long zone_type,unsigned long node_start_pfn,unsigned long node_end_pfn,unsigned long * zone_start_pfn,unsigned long * zone_end_pfn) zone_spanned_pages_in_node() argument 1407 zone_init_internals(struct zone * zone,enum zone_type idx,int nid,unsigned long remaining_pages) zone_init_internals() argument 1538 int nid = pgdat->node_id; free_area_init_core_hotplug() local 1582 int nid = pgdat->node_id; free_area_init_core() local 1606 memmap_alloc(phys_addr_t size,phys_addr_t align,phys_addr_t min_addr,int nid,bool exact_nid) memmap_alloc() argument 1682 get_pfn_range_for_nid(unsigned int nid,unsigned long * start_pfn,unsigned long * end_pfn) get_pfn_range_for_nid() argument 1700 free_area_init_node(int nid) free_area_init_node() argument 1810 int i, nid, zone; free_area_init() local 1945 int i, nid; node_map_pfn_alignment() local 2021 int nid = zone_to_nid(zone); deferred_init_pages() local 2048 int nid = zone_to_nid(zone); deferred_init_memmap_chunk() local 2277 pfn_range_intersects_zones(int nid,unsigned long start_pfn,unsigned long nr_pages) pfn_range_intersects_zones() argument 2301 int nid; page_alloc_init_late() local 2472 int nid = early_pfn_to_nid(pfn); memblock_free_pages() local [all...] |
| H A D | numa_memblks.c | 30 mi->blk[i].nid != NUMA_NO_NODE) in numa_nodemask_from_meminfo() 31 node_set(mi->blk[i].nid, *nodemask); in numa_nodemask_from_meminfo() 135 static int __init numa_add_memblk_to(int nid, u64 start, u64 end, in numa_add_memblk_to() argument 143 if (start > end || nid < 0 || nid >= MAX_NUMNODES) { in numa_add_memblk_to() 145 nid, start, end - 1); in numa_add_memblk_to() 156 mi->blk[mi->nr_blks].nid = nid; in numa_add_memblk_to() 200 int __init numa_add_memblk(int nid, u64 start, u64 end) in numa_add_memblk() argument 202 return numa_add_memblk_to(nid, start, end, &numa_meminfo); in numa_add_memblk() 222 int __init numa_add_reserved_memblk(int nid, u64 start, u64 end) in numa_add_reserved_memblk() argument 224 return numa_add_memblk_to(nid, start, end, &numa_reserved_meminfo); in numa_add_reserved_memblk() [all …]
|
| H A D | memory_hotplug.c | 381 int __add_pages(int nid, unsigned long pfn, unsigned long nr_pages, in __add_pages() argument 415 err = sparse_add_section(nid, pfn, cur_nr_pages, altmap, in __add_pages() 426 static unsigned long find_smallest_section_pfn(int nid, struct zone *zone, in find_smallest_section_pfn() argument 434 if (unlikely(pfn_to_nid(start_pfn) != nid)) in find_smallest_section_pfn() 447 static unsigned long find_biggest_section_pfn(int nid, struct zone *zone, in find_biggest_section_pfn() argument 459 if (unlikely(pfn_to_nid(pfn) != nid)) in find_biggest_section_pfn() 475 int nid = zone_to_nid(zone); in shrink_zone_span() local 484 pfn = find_smallest_section_pfn(nid, zone, end_pfn, in shrink_zone_span() 500 pfn = find_biggest_section_pfn(nid, zone, zone->zone_start_pfn, in shrink_zone_span() 747 int nid in move_pfn_range_to_zone() 746 int nid = pgdat->node_id; move_pfn_range_to_zone() local 835 auto_movable_can_online_movable(int nid,struct memory_group * group,unsigned long nr_pages) auto_movable_can_online_movable() argument 890 default_kernel_zone_for_pfn(int nid,unsigned long start_pfn,unsigned long nr_pages) default_kernel_zone_for_pfn() argument 956 auto_movable_zone_for_pfn(int nid,struct memory_group * group,unsigned long pfn,unsigned long nr_pages) auto_movable_zone_for_pfn() argument 1017 default_zone_for_pfn(int nid,unsigned long start_pfn,unsigned long nr_pages) default_zone_for_pfn() argument 1041 zone_for_pfn_range(enum mmop online_type,int nid,struct memory_group * group,unsigned long start_pfn,unsigned long nr_pages) zone_for_pfn_range() argument 1146 const int nid = zone_to_nid(zone); online_pages() local 1252 hotadd_init_pgdat(int nid) hotadd_init_pgdat() argument 1287 __try_online_node(int nid,bool set_node_online) __try_online_node() argument 1314 try_online_node(int nid) try_online_node() argument 1438 create_altmaps_and_memory_blocks(int nid,struct memory_group * group,u64 start,u64 size) create_altmaps_and_memory_blocks() argument 1492 add_memory_resource(int nid,struct resource * res,mhp_t mhp_flags) add_memory_resource() argument 1600 __add_memory(int nid,u64 start,u64 size,mhp_t mhp_flags) __add_memory() argument 1615 add_memory(int nid,u64 start,u64 size,mhp_t mhp_flags) add_memory() argument 1648 add_memory_driver_managed(int nid,u64 start,u64 size,const char * resource_name,mhp_t mhp_flags) add_memory_driver_managed() argument 2120 int *nid = arg; check_memblock_offlined_cb() local 2146 check_cpu_on_node(int nid) check_cpu_on_node() argument 2164 int nid = *(int *)arg; check_no_memblock_for_node_cb() local 2183 try_offline_node(int nid) try_offline_node() argument 2238 int rc, nid = NUMA_NO_NODE; try_remove_memory() local [all...] |
| H A D | numa_emulation.c | 25 static int __init emu_find_memblk_by_nid(int nid, const struct numa_meminfo *mi) in emu_find_memblk_by_nid() argument 30 if (mi->blk[i].nid == nid) in emu_find_memblk_by_nid() 46 * Sets up nid to range from @start to @end. The return value is -errno if 51 int nid, int phys_blk, u64 size) in emu_setup_memblk() argument 64 eb->nid = nid; in emu_setup_memblk() 66 if (emu_nid_to_phys[nid] == NUMA_NO_NODE) in emu_setup_memblk() 67 emu_nid_to_phys[nid] = pb->nid; in emu_setup_memblk() 93 int nid = 0; split_nodes_interleave() local 223 split_nodes_size_interleave_uniform(struct numa_meminfo * ei,struct numa_meminfo * pi,u64 addr,u64 max_addr,u64 size,int nr_nodes,struct numa_memblk * pblk,int nid) split_nodes_size_interleave_uniform() argument 401 int nid = 0; numa_emulation() local 549 int physnid, nid; numa_add_cpu() local 575 int nid, physnid; numa_set_cpumask() local [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()
|
| /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 | 90 for (; seq->nid; seq++) in snd_hda_sequence_write() 91 snd_hda_codec_write(codec, seq->nid, 0, seq->verb, seq->param); in snd_hda_sequence_write() 99 hda_nid_t nid; member 105 lookup_conn_list(struct hda_codec *codec, hda_nid_t nid) in lookup_conn_list() argument 109 if (p->nid == nid) in lookup_conn_list() 115 static int add_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in add_conn_list() argument 124 p->nid = nid; in add_conn_list() 141 static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) in read_and_add_raw_conns() argument 177 snd_hda_get_conn_list(struct hda_codec * codec,hda_nid_t nid,const hda_nid_t ** listp) snd_hda_get_conn_list() argument 216 snd_hda_get_connections(struct hda_codec * codec,hda_nid_t nid,hda_nid_t * conn_list,int max_conns) snd_hda_get_connections() argument 247 snd_hda_override_conn_list(struct hda_codec * codec,hda_nid_t nid,int len,const hda_nid_t * list) snd_hda_override_conn_list() argument 274 snd_hda_get_conn_index(struct hda_codec * codec,hda_nid_t mux,hda_nid_t nid,int recursive) snd_hda_get_conn_index() argument 309 snd_hda_get_num_devices(struct hda_codec * codec,hda_nid_t nid) snd_hda_get_num_devices() argument 335 snd_hda_get_devices(struct hda_codec * codec,hda_nid_t nid,u8 * dev_list,unsigned int max_devices) snd_hda_get_devices() argument 372 snd_hda_get_dev_select(struct hda_codec * codec,hda_nid_t nid) snd_hda_get_dev_select() argument 390 snd_hda_set_dev_select(struct hda_codec * codec,hda_nid_t nid,int dev_id) snd_hda_set_dev_select() argument 426 hda_nid_t nid; read_widget_caps() local 441 hda_nid_t nid; read_pin_defaults() local 469 look_up_pincfg(struct hda_codec * codec,struct snd_array * array,hda_nid_t nid) look_up_pincfg() argument 485 snd_hda_add_pincfg(struct hda_codec * codec,struct snd_array * list,hda_nid_t nid,unsigned int cfg) snd_hda_add_pincfg() argument 511 snd_hda_codec_set_pincfg(struct hda_codec * codec,hda_nid_t nid,unsigned int cfg) snd_hda_codec_set_pincfg() argument 526 snd_hda_codec_get_pincfg(struct hda_codec * codec,hda_nid_t nid) snd_hda_codec_get_pincfg() argument 562 snd_hda_codec_set_pin_target(struct hda_codec * codec,hda_nid_t nid,unsigned int val) snd_hda_codec_set_pin_target() argument 580 snd_hda_codec_get_pin_target(struct hda_codec * codec,hda_nid_t nid) snd_hda_codec_get_pin_target() argument 664 hda_nid_t nid; global() member 674 get_hda_cvt_setup(struct hda_codec * codec,hda_nid_t nid) get_hda_cvt_setup() argument 1073 update_pcm_stream_id(struct hda_codec * codec,struct hda_cvt_setup * p,hda_nid_t nid,u32 stream_tag,int channel_id) update_pcm_stream_id() argument 1092 update_pcm_format(struct hda_codec * codec,struct hda_cvt_setup * p,hda_nid_t nid,int format) update_pcm_format() argument 1117 snd_hda_codec_setup_stream(struct hda_codec * codec,hda_nid_t nid,u32 stream_tag,int channel_id,int format) snd_hda_codec_setup_stream() argument 1169 __snd_hda_codec_cleanup_stream(struct hda_codec * codec,hda_nid_t nid,int do_now) __snd_hda_codec_cleanup_stream() argument 1199 hda_nid_t nid = q->nid; really_cleanup_stream() local 1255 query_amp_caps(struct hda_codec * codec,hda_nid_t nid,int direction) query_amp_caps() argument 1274 snd_hda_check_amp_caps(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int bits) snd_hda_check_amp_caps() argument 1299 snd_hda_override_amp_caps(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int caps) snd_hda_override_amp_caps() argument 1311 encode_amp(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx) encode_amp() argument 1335 snd_hda_codec_amp_update(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx,int mask,int val) snd_hda_codec_amp_update() argument 1356 snd_hda_codec_amp_stereo(struct hda_codec * codec,hda_nid_t nid,int direction,int idx,int mask,int val) snd_hda_codec_amp_stereo() argument 1384 snd_hda_codec_amp_init(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx,int mask,int val) snd_hda_codec_amp_init() argument 1406 snd_hda_codec_amp_init_stereo(struct hda_codec * codec,hda_nid_t nid,int dir,int idx,int mask,int val) snd_hda_codec_amp_init_stereo() argument 1420 get_amp_max_value(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int ofs) get_amp_max_value() argument 1443 u16 nid = get_amp_nid(kcontrol); snd_hda_mixer_amp_volume_info() local 1464 read_amp_value(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx,unsigned int ofs) read_amp_value() argument 1478 update_amp_value(struct hda_codec * codec,hda_nid_t nid,int ch,int dir,int idx,unsigned int ofs,unsigned int val) update_amp_value() argument 1506 hda_nid_t nid = get_amp_nid(kcontrol); snd_hda_mixer_amp_volume_get() local 1533 hda_nid_t nid = get_amp_nid(kcontrol); snd_hda_mixer_amp_volume_put() local 1563 hda_nid_t nid = get_amp_nid(kcontrol); get_ctl_amp_tlv() local 1618 snd_hda_set_vmaster_tlv(struct hda_codec * codec,hda_nid_t nid,int dir,unsigned int * tlv) snd_hda_set_vmaster_tlv() argument 1695 snd_hda_ctl_add(struct hda_codec * codec,hda_nid_t nid,struct snd_kcontrol * kctl) snd_hda_ctl_add() argument 2082 hda_nid_t nid = get_amp_nid(kcontrol); snd_hda_mixer_amp_switch_get() local 2110 hda_nid_t nid = get_amp_nid(kcontrol); snd_hda_mixer_amp_switch_put() local 2243 set_dig_out(struct hda_codec * codec,hda_nid_t nid,int mask,int val) set_dig_out() argument 2258 set_dig_out_convert(struct hda_codec * codec,hda_nid_t nid,int dig1,int dig2) set_dig_out_convert() argument 2281 hda_nid_t nid; snd_hda_spdif_default_put() local 2320 set_spdif_ctls(struct hda_codec * codec,hda_nid_t nid,int dig1,int dig2) set_spdif_ctls() argument 2337 hda_nid_t nid; snd_hda_spdif_out_switch_put() local 2471 snd_hda_spdif_out_of_nid(struct hda_codec * codec,hda_nid_t nid) snd_hda_spdif_out_of_nid() argument 2511 snd_hda_spdif_ctls_assign(struct hda_codec * codec,int idx,hda_nid_t nid) snd_hda_spdif_ctls_assign() argument 2621 hda_nid_t nid = kcontrol->private_value; snd_hda_spdif_in_switch_put() local 2639 hda_nid_t nid = kcontrol->private_value; snd_hda_spdif_in_status_get() local 2681 snd_hda_create_spdif_in_ctls(struct hda_codec * codec,hda_nid_t nid) snd_hda_create_spdif_in_ctls() argument 2723 hda_nid_t nid; snd_hda_codec_set_power_to_all() local 2751 snd_hda_codec_eapd_power_filter(struct hda_codec * codec,hda_nid_t nid,unsigned int power_state) snd_hda_codec_eapd_power_filter() argument 2817 hda_nid_t nid; sync_power_up_states() local 3476 snd_hda_check_amp_list_power(struct hda_codec * codec,struct hda_loopback_check * check,hda_nid_t nid) snd_hda_check_amp_list_power() argument 3549 snd_hda_input_mux_put(struct hda_codec * codec,const struct hda_input_mux * imux,struct snd_ctl_elem_value * ucontrol,hda_nid_t nid,unsigned int * cur_val) snd_hda_input_mux_put() argument 3601 setup_dig_out_stream(struct hda_codec * codec,hda_nid_t nid,unsigned int stream_tag,unsigned int format) setup_dig_out_stream() argument 3640 cleanup_dig_out_stream(struct hda_codec * codec,hda_nid_t nid) cleanup_dig_out_stream() argument [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/include/sound/ |
| H A 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 …]
|
| /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/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 …]
|
| H A D | gfp.h | 217 static inline struct zonelist *node_zonelist(int nid, gfp_t flags) in node_zonelist() argument 219 return NODE_DATA(nid)->node_zonelists + gfp_zonelist(flags); in node_zonelist() 255 alloc_pages_bulk_node_noprof(gfp_t gfp, int nid, unsigned long nr_pages, in alloc_pages_bulk_node_noprof() 258 if (nid == NUMA_NO_NODE) in alloc_pages_bulk_node_noprof() 259 nid = numa_mem_id(); in alloc_pages_bulk_node_noprof() 261 return alloc_pages_bulk_noprof(gfp, nid, NULL, nr_pages, page_array); 282 * Allocate pages, preferring the node given as nid. The node must be valid and 286 __alloc_pages_node_noprof(int nid, gfp_t gfp_mask, unsigned int order) in __alloc_pages_node_noprof() 288 VM_BUG_ON(nid < 0 || nid > in __alloc_pages_node_noprof() 253 alloc_pages_bulk_node_noprof(gfp_t gfp,int nid,unsigned long nr_pages,struct page ** page_array) alloc_pages_bulk_node_noprof() argument 284 __alloc_pages_node_noprof(int nid,gfp_t gfp_mask,unsigned int order) __alloc_pages_node_noprof() argument 295 __folio_alloc_node_noprof(gfp_t gfp,unsigned int order,int nid) __folio_alloc_node_noprof() argument 310 alloc_pages_node_noprof(int nid,gfp_t gfp_mask,unsigned int order) alloc_pages_node_noprof() argument 338 folio_alloc_mpol_noprof(gfp_t gfp,unsigned int order,struct mempolicy * mpol,pgoff_t ilx,int nid) folio_alloc_mpol_noprof() argument [all...] |
| /linux/drivers/of/ |
| H A D | of_numa.c | 23 u32 nid; in of_numa_parse_cpu_nodes() local 28 r = of_property_read_u32(np, "numa-node-id", &nid); in of_numa_parse_cpu_nodes() 32 pr_debug("CPU on %u\n", nid); in of_numa_parse_cpu_nodes() 33 if (nid >= MAX_NUMNODES) in of_numa_parse_cpu_nodes() 34 pr_warn("Node id %u exceeds maximum value\n", nid); in of_numa_parse_cpu_nodes() 36 node_set(nid, numa_nodes_parsed); in of_numa_parse_cpu_nodes() 44 u32 nid; in of_numa_parse_memory_nodes() local 48 r = of_property_read_u32(np, "numa-node-id", &nid); in of_numa_parse_memory_nodes() 57 if (nid >= MAX_NUMNODES) { in of_numa_parse_memory_nodes() 58 pr_warn("Node id %u exceeds maximum value\n", nid); in of_numa_parse_memory_nodes() [all …]
|
| /linux/drivers/base/ |
| 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() 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/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 …]
|