Home
last modified time | relevance | path

Searched refs:array (Results 1 – 8 of 8) sorted by relevance

/sound/pci/lola/
Dlola_mixer.c133 chip->mixer.array = (struct lola_mixer_array __iomem *) in lola_init_mixer_widget()
229 oldval = val = readl(&chip->mixer.array->src_gain_enable); in lola_mixer_set_src_gain()
236 (gain == readw(&chip->mixer.array->src_gain[id]))) in lola_mixer_set_src_gain()
241 writew(gain, &chip->mixer.array->src_gain[id]); in lola_mixer_set_src_gain()
242 writel(val, &chip->mixer.array->src_gain_enable); in lola_mixer_set_src_gain()
259 writew(*gains, &chip->mixer.array->src_gain[i]);
263 writel(mask, &chip->mixer.array->src_gain_enable);
291 writew(gain, &chip->mixer.array->dest_mix_gain[dest][src]); in lola_mixer_set_mapping_gain()
292 val = readl(&chip->mixer.array->dest_mix_gain_enable[dest]); in lola_mixer_set_mapping_gain()
297 writel(val, &chip->mixer.array->dest_mix_gain_enable[dest]); in lola_mixer_set_mapping_gain()
[all …]
Dlola.h278 struct lola_mixer_array __user *array; member
/sound/pci/hda/
Dhda_codec.h568 void *snd_array_new(struct snd_array *array);
569 void snd_array_free(struct snd_array *array);
570 static inline void snd_array_init(struct snd_array *array, unsigned int size, in snd_array_init() argument
573 array->elem_size = size; in snd_array_init()
574 array->alloc_align = align; in snd_array_init()
577 static inline void *snd_array_elem(struct snd_array *array, unsigned int idx) in snd_array_elem() argument
579 return array->list + idx * array->elem_size; in snd_array_elem()
582 static inline unsigned int snd_array_index(struct snd_array *array, void *ptr) in snd_array_index() argument
584 return (unsigned long)(ptr - array->list) / array->elem_size; in snd_array_index()
Dhda_codec.c1051 struct snd_array *array, in look_up_pincfg() argument
1055 for (i = 0; i < array->used; i++) { in look_up_pincfg()
1056 struct hda_pincfg *pin = snd_array_elem(array, i); in look_up_pincfg()
5555 void *snd_array_new(struct snd_array *array) in snd_array_new() argument
5557 if (snd_BUG_ON(!array->elem_size)) in snd_array_new()
5559 if (array->used >= array->alloced) { in snd_array_new()
5560 int num = array->alloced + array->alloc_align; in snd_array_new()
5561 int size = (num + 1) * array->elem_size; in snd_array_new()
5565 nlist = krealloc(array->list, size, GFP_KERNEL | __GFP_ZERO); in snd_array_new()
5568 array->list = nlist; in snd_array_new()
[all …]
Dhda_proc.c69 struct snd_array *array) in print_nid_array() argument
72 struct hda_nid_item *items = array->list, *item; in print_nid_array()
74 for (i = 0; i < array->used; i++) { in print_nid_array()
Dhda_generic.c271 struct nid_path *array = spec->paths.list; in snd_hda_get_path_idx() local
276 idx = path - array; in snd_hda_get_path_idx()
/sound/isa/
Dcmi8328.c193 int array_find(int array[], int item) in array_find() argument
197 for (i = 0; array[i] != -1; i++) in array_find()
198 if (array[i] == item) in array_find()
204 int array_find_l(long array[], long item) in array_find_l() argument
208 for (i = 0; array[i] != -1; i++) in array_find_l()
209 if (array[i] == item) in array_find_l()
/sound/soc/codecs/
Dtas5086.c237 static int index_in_array(const int *array, int len, int needle) in index_in_array() argument
242 if (array[i] == needle) in index_in_array()