/linux/include/sound/ |
H A D | hda_regmap.h | 38 #define snd_hdac_regmap_encode_verb(nid, verb) \ argument 50 #define snd_hdac_regmap_encode_amp(nid, ch, dir, idx) \ argument 64 #define snd_hdac_regmap_encode_amp_stereo(nid, dir, idx) \ argument 79 snd_hdac_regmap_write(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_write() 97 snd_hdac_regmap_update(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update() 115 snd_hdac_regmap_read(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_read() 136 snd_hdac_regmap_get_amp(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_get_amp() 160 snd_hdac_regmap_update_amp(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update_amp() 181 snd_hdac_regmap_get_amp_stereo(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_get_amp_stereo() 205 snd_hdac_regmap_update_amp_stereo(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update_amp_stereo() [all …]
|
/linux/sound/hda/ |
H A D | hdac_sysfs.c | 99 int nid; in get_codec_nid() local 115 int nid; in widget_attr_show() local 131 int nid; in widget_attr_store() local 161 static ssize_t caps_show(struct hdac_device *codec, hda_nid_t nid, in caps_show() 167 static ssize_t pin_caps_show(struct hdac_device *codec, hda_nid_t nid, in pin_caps_show() 176 static ssize_t pin_cfg_show(struct hdac_device *codec, hda_nid_t nid, in pin_cfg_show() 188 static bool has_pcm_cap(struct hdac_device *codec, hda_nid_t nid) in has_pcm_cap() 201 static ssize_t pcm_caps_show(struct hdac_device *codec, hda_nid_t nid, in pcm_caps_show() 210 static ssize_t pcm_formats_show(struct hdac_device *codec, hda_nid_t nid, in pcm_formats_show() 219 static ssize_t amp_in_caps_show(struct hdac_device *codec, hda_nid_t nid, in amp_in_caps_show() [all …]
|
H A D | hdac_device.c | 225 static unsigned int snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_make_cmd() 276 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, 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() 313 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read_parm_uncached() 332 int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_override_parm() 357 int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_get_sub_nodes() 378 hda_nid_t nid; in setup_fg_nodes() local 437 static unsigned int get_num_conns(struct hdac_device *codec, hda_nid_t nid) in get_num_conns() 465 int snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_get_connections() 853 static unsigned int query_pcm_param(struct hdac_device *codec, hda_nid_t nid) in query_pcm_param() [all …]
|
/linux/sound/pci/hda/ |
H A D | hda_proc.c | 22 #define param_read(codec, nid, parm) \ argument 48 struct hda_codec *codec, hda_nid_t nid, in print_nid_array() 75 struct hda_codec *codec, hda_nid_t nid) in print_nid_pcms() 94 struct hda_codec *codec, hda_nid_t nid, int dir) in print_amp_caps() 112 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, in is_stereo_amps() 134 struct hda_codec *codec, hda_nid_t nid, in print_amp_vals() 200 struct hda_codec *codec, hda_nid_t nid) in print_pcm_caps() 305 struct hda_codec *codec, hda_nid_t nid, in print_pin_caps() 401 struct hda_codec *codec, hda_nid_t nid, in print_pin_ctls() 439 struct hda_codec *codec, hda_nid_t nid) in print_vol_knob() [all …]
|
H A D | hda_codec.c | 90 hda_nid_t nid; member 96 lookup_conn_list(struct hda_codec *codec, hda_nid_t nid) in lookup_conn_list() 106 static int add_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in add_conn_list() 132 static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) in read_and_add_raw_conns() 168 int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_conn_list() 207 int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_connections() 238 int snd_hda_override_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in snd_hda_override_conn_list() 265 hda_nid_t nid, int recursive) in snd_hda_get_conn_index() 300 unsigned int snd_hda_get_num_devices(struct hda_codec *codec, hda_nid_t nid) in snd_hda_get_num_devices() 326 int snd_hda_get_devices(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_devices() [all …]
|
H A D | hda_local.h | 28 #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs) \ argument 31 #define HDA_COMPOSE_AMP_VAL(nid,chs,idx,dir) \ argument 34 #define HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, channel, xindex, dir, flags) \ argument 46 #define HDA_CODEC_VOLUME_IDX(xname, xcidx, nid, xindex, direction) \ argument 49 #define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \ argument 52 #define HDA_CODEC_VOLUME(xname, nid, xindex, direction) \ argument 55 #define HDA_CODEC_VOLUME_MIN_MUTE(xname, nid, xindex, direction) \ argument 59 #define HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument 67 #define HDA_CODEC_MUTE_IDX(xname, xcidx, nid, xindex, direction) \ argument 70 #define HDA_CODEC_MUTE_MONO(xname, nid, channel, xindex, direction) \ argument [all …]
|
H A D | hda_jack.h | 21 hda_nid_t nid; member 31 hda_nid_t nid; member 63 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_get() 95 snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_detect_enable_callback() 130 snd_hda_jack_detect_state(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_detect_state() 142 snd_hda_jack_detect_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) in snd_hda_jack_detect_mst() 154 snd_hda_jack_detect(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_detect() 178 snd_hda_jack_add_kctl(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_add_kctl()
|
H A D | hda_jack.c | 29 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) 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() 71 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) in snd_hda_jack_tbl_get_mst() 108 any_jack_tbl_get_from_nid(struct hda_codec *codec, hda_nid_t nid) in any_jack_tbl_get_from_nid() 128 snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid, int dev_id) in snd_hda_jack_tbl_new() 253 u32 snd_hda_jack_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id) in snd_hda_jack_pin_sense() 275 hda_nid_t nid, int dev_id) in snd_hda_jack_detect_state_mst() 318 snd_hda_jack_detect_enable_callback_mst(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_detect_enable_callback_mst() 365 int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_detect_enable() 502 static int get_input_jack_type(struct hda_codec *codec, hda_nid_t nid) in get_input_jack_type() [all …]
|
H A D | hda_generic.c | 241 static int find_idx_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums) in find_idx_in_nid_list() 251 static bool is_nid_contained(struct nid_path *path, hda_nid_t nid) in is_nid_contained() 319 static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) in is_dac_already_used() 360 static bool is_ctl_associated(struct hda_codec *codec, hda_nid_t nid, in is_ctl_associated() 535 hda_nid_t nid = spec->all_dacs[i]; in look_for_dac() local 588 hda_nid_t nid = path->path[i]; in look_for_out_vol_nid() local 604 hda_nid_t nid = path->path[idx]; in has_amp_in() local 618 hda_nid_t nid = path->path[idx]; in has_amp_out() local 630 static bool is_active_nid(struct hda_codec *codec, hda_nid_t nid, in is_active_nid() 665 #define is_active_nid_for_any(codec, nid) \ argument [all …]
|
H A D | hda_auto_parser.c | 20 static int is_in_nid_list(hda_nid_t nid, const hda_nid_t *list) in is_in_nid_list() 57 hda_nid_t nid, int type) in add_auto_cfg_input_pin() 177 hda_nid_t nid; in snd_hda_parse_pin_defcfg() local 595 static int find_idx_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums) in find_idx_in_nid_list() 605 static const char *check_output_sfx(hda_nid_t nid, const hda_nid_t *pins, in check_output_sfx() 626 static const char *check_output_pfx(struct hda_codec *codec, hda_nid_t nid) in check_output_pfx() 641 static int get_hp_label_index(struct hda_codec *codec, hda_nid_t nid, in get_hp_label_index() 658 static int fill_audio_out_name(struct hda_codec *codec, hda_nid_t nid, in fill_audio_out_name() 714 int snd_hda_get_pin_label(struct hda_codec *codec, hda_nid_t nid, in snd_hda_get_pin_label() 903 hda_nid_t nid = pin->nid; in pin_config_match() local
|
/linux/mm/ |
H A D | shrinker.c | 42 struct shrinker_info *old, int nid) in shrinker_unit_alloc() 66 int nid; in free_shrinker_info() local 79 int nid, ret = 0; in alloc_shrinker_info() local 107 int nid) in shrinker_info_protected() 118 int nid; in expand_one_shrinker_info() local 196 void set_shrinker_bit(struct mem_cgroup *memcg, int nid, int shrinker_id) in set_shrinker_bit() 252 static long xchg_nr_deferred_memcg(int nid, struct shrinker *shrinker, in xchg_nr_deferred_memcg() 268 static long add_nr_deferred_memcg(long nr, int nid, struct shrinker *shrinker, in add_nr_deferred_memcg() 287 int nid, index, offset; in reparent_shrinker_deferred() local 323 static long xchg_nr_deferred_memcg(int nid, struct shrinker *shrinker, in xchg_nr_deferred_memcg() [all …]
|
H A D | mm_init.c | 62 int nid; in mminit_verify_zonelist() local 318 int i, nid; in early_calculate_totalpages() local 359 int i, nid; in find_zone_movable_pfns_for_nodes() local 582 unsigned long zone, int nid) in __init_single_page() 620 int nid; in __early_pfn_to_nid() local 638 int nid; in early_pfn_to_nid() local 672 void __meminit __init_page_from_nid(unsigned long pfn, int nid) in __init_page_from_nid() 698 static inline bool __meminit early_page_initialised(unsigned long pfn, int nid) in early_page_initialised() 711 defer_init(int nid, unsigned long pfn, unsigned long end_pfn) in defer_init() 747 static void __meminit __init_deferred_page(unsigned long pfn, int nid) in __init_deferred_page() [all …]
|
H A D | memory_hotplug.c | 388 int __add_pages(int nid, unsigned long pfn, unsigned long nr_pages, in __add_pages() 433 static unsigned long find_smallest_section_pfn(int nid, struct zone *zone, in find_smallest_section_pfn() 454 static unsigned long find_biggest_section_pfn(int nid, struct zone *zone, in find_biggest_section_pfn() 482 int nid = zone_to_nid(zone); in shrink_zone_span() local 706 int nid = zone_to_nid(zone); in node_states_check_changes_online() local 776 int nid = pgdat->node_id; in move_pfn_range_to_zone() local 864 static bool auto_movable_can_online_movable(int nid, struct memory_group *group, in auto_movable_can_online_movable() 919 static struct zone *default_kernel_zone_for_pfn(int nid, unsigned long start_pfn, in default_kernel_zone_for_pfn() 985 static struct zone *auto_movable_zone_for_pfn(int nid, in auto_movable_zone_for_pfn() 1046 static inline struct zone *default_zone_for_pfn(int nid, unsigned long start_pfn, in default_zone_for_pfn() [all …]
|
H A D | hugetlb_cma.c | 23 int nid = folio_nid(folio); in hugetlb_cma_free_folio() local 30 int nid, nodemask_t *nodemask) in hugetlb_cma_alloc_folio() 57 hugetlb_cma_alloc_bootmem(struct hstate *h, int *nid, bool node_exact) in hugetlb_cma_alloc_bootmem() 94 int nid, count = 0; in cmdline_parse_hugetlb_cma() local 142 int nid; in hugetlb_cma_reserve() local
|
H A D | memblock.c | 235 phys_addr_t size, phys_addr_t align, int nid, in __memblock_find_range_bottom_up() 270 phys_addr_t size, phys_addr_t align, int nid, in __memblock_find_range_top_down() 309 phys_addr_t end, int nid, in memblock_find_in_range_node() 577 int nid, in memblock_insert_region() 610 int nid, enum memblock_flags flags) in memblock_add_range() 728 int nid, enum memblock_flags flags) in memblock_add_node() 774 int nid, i; in memblock_validate_numa_coverage() local 929 int nid, enum memblock_flags flags) in __memblock_reserve() 966 int nid; in memmap_init_kho_scratch_pages() local 1142 int nid, int flags) in should_skip_region() [all …]
|
H A D | numa_memblks.c | 133 static int __init numa_add_memblk_to(int nid, u64 start, u64 end, in numa_add_memblk_to() 198 int __init numa_add_memblk(int nid, u64 start, u64 end) in numa_add_memblk() 220 int __init numa_add_reserved_memblk(int nid, u64 start, u64 end) in numa_add_reserved_memblk() 372 int nid = memblock_get_region_node(mb_region); in numa_clear_kernel_node_hotplug() local 570 int nid = meminfo_to_nid(&numa_meminfo, start); in phys_to_target_node() local 585 int nid = meminfo_to_nid(&numa_meminfo, start); in memory_add_physaddr_to_nid() local
|
/linux/include/linux/ |
H A D | node.h | 89 static inline void node_add_cache(unsigned int nid, in node_add_cache() 94 static inline void node_set_perf_attrs(unsigned int nid, in node_set_perf_attrs() 118 static inline void register_memory_blocks_under_node(int nid, unsigned long start_pfn, in register_memory_blocks_under_node() 132 static inline int register_one_node(int nid) in register_one_node() 163 static inline int __register_one_node(int nid) in __register_one_node() 167 static inline int register_one_node(int nid) in register_one_node() 171 static inline int unregister_one_node(int nid) in unregister_one_node() 175 static inline int register_cpu_under_node(unsigned int cpu, unsigned int nid) in register_cpu_under_node() 179 static inline int unregister_cpu_under_node(unsigned int cpu, unsigned int nid) in unregister_cpu_under_node()
|
H A D | gfp.h | 212 static inline struct zonelist *node_zonelist(int nid, gfp_t flags) in node_zonelist() 248 alloc_pages_bulk_node_noprof(gfp_t gfp, int nid, unsigned long nr_pages, in alloc_pages_bulk_node_noprof() 279 __alloc_pages_node_noprof(int nid, gfp_t gfp_mask, unsigned int order) in __alloc_pages_node_noprof() 290 struct folio *__folio_alloc_node_noprof(gfp_t gfp, unsigned int order, int nid) in __folio_alloc_node_noprof() 305 static inline struct page *alloc_pages_node_noprof(int nid, gfp_t gfp_mask, in alloc_pages_node_noprof() 333 struct mempolicy *mpol, pgoff_t ilx, int nid) in folio_alloc_mpol_noprof() 440 int nid, nodemask_t *node) in folio_alloc_gigantic_noprof() 453 int nid, nodemask_t *node) in folio_alloc_gigantic_noprof()
|
H A D | memblock.h | 77 int nid; member 212 #define __for_each_mem_range(i, type_a, type_b, nid, flags, \ argument 232 #define __for_each_mem_range_rev(i, type_a, type_b, nid, flags, \ argument 322 #define for_each_mem_pfn_range(i, nid, p_start, p_end, p_nid) \ argument 361 #define for_each_free_mem_range(i, nid, flags, p_start, p_end, p_nid) \ argument 377 #define for_each_free_mem_range_reverse(i, nid, flags, p_start, p_end, \ argument 386 static inline void memblock_set_region_node(struct memblock_region *r, int nid) in memblock_set_region_node() 396 static inline void memblock_set_region_node(struct memblock_region *r, int nid) in memblock_set_region_node() 482 phys_addr_t align, int nid) in memblock_alloc_node()
|
/linux/drivers/base/ |
H A D | node.c | 194 void node_set_perf_attrs(unsigned int nid, struct access_coordinate *coord, in node_set_perf_attrs() 308 void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs) in node_add_cache() 371 static void node_init_caches(unsigned int nid) in node_init_caches() 376 static void node_init_caches(unsigned int nid) { } in node_init_caches() 385 int nid = dev->id; in node_read_meminfo() local 530 int nid = dev->id; in node_read_vmstat() local 564 int nid = dev->id; in node_read_distance() local 666 int register_cpu_under_node(unsigned int cpu, unsigned int nid) in register_cpu_under_node() 739 int unregister_cpu_under_node(unsigned int cpu, unsigned int nid) in unregister_cpu_under_node() 768 static void do_register_memory_block_under_node(int nid, in do_register_memory_block_under_node() [all …]
|
H A D | arch_numa.c | 65 int nid = cpu_to_node(cpu); in numa_update_cpu() local 126 void __init early_map_cpu_to_node(unsigned int cpu, int 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() 209 int nid; in numa_register_nodes() local
|
/linux/fs/f2fs/ |
H A D | node.c | 33 int f2fs_check_nid_range(struct f2fs_sb_info *sbi, nid_t nid) in f2fs_check_nid_range() 133 static struct folio *get_current_nat_folio(struct f2fs_sb_info *sbi, nid_t nid) in get_current_nat_folio() 138 static struct page *get_next_nat_page(struct f2fs_sb_info *sbi, nid_t nid) in get_next_nat_page() 168 nid_t nid, bool no_fail) in __alloc_nat_entry() 380 int f2fs_need_dentry_mark(struct f2fs_sb_info *sbi, nid_t nid) in f2fs_need_dentry_mark() 397 bool f2fs_is_checkpointed_node(struct f2fs_sb_info *sbi, nid_t nid) in f2fs_is_checkpointed_node() 428 static void cache_nat_entry(struct f2fs_sb_info *sbi, nid_t nid, in cache_nat_entry() 546 int f2fs_get_node_info(struct f2fs_sb_info *sbi, nid_t nid, in f2fs_get_node_info() 631 nid_t nid; in f2fs_ra_node_pages() local 1067 nid_t nid[3]; in truncate_partial_nodes() 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() 28 struct lola *chip, int nid, unsigned int ampcap, in print_pin_widget() 49 struct lola *chip, int nid) in print_clock_widget() 89 struct lola *chip, int nid) in print_mixer_widget() 102 int i, nid; in lola_proc_codec_read() local
|
/linux/drivers/of/ |
H A D | of_numa.c | 23 u32 nid; in of_numa_parse_cpu_nodes() local 44 u32 nid; in of_numa_parse_memory_nodes() local 141 u32 nid; in of_node_to_nid() local
|
/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() 133 u32 nid; in memtrace_init_regions_runtime() local 198 static int memtrace_free(int nid, u64 start, u64 size) in memtrace_free()
|