Searched refs:alloc (Results 1 – 4 of 4) sorted by relevance
33 void snd_gf1_mem_lock(struct snd_gf1_mem * alloc, int xup) in snd_gf1_mem_lock() argument36 mutex_lock(&alloc->memory_mutex); in snd_gf1_mem_lock()38 mutex_unlock(&alloc->memory_mutex); in snd_gf1_mem_lock()42 static struct snd_gf1_mem_block *snd_gf1_mem_xalloc(struct snd_gf1_mem * alloc, in snd_gf1_mem_xalloc() argument51 pblock = alloc->first; in snd_gf1_mem_xalloc()57 if (pblock == alloc->first) in snd_gf1_mem_xalloc()58 alloc->first = nblock; in snd_gf1_mem_xalloc()61 mutex_unlock(&alloc->memory_mutex); in snd_gf1_mem_xalloc()67 if (alloc->last == NULL) { in snd_gf1_mem_xalloc()69 alloc->first = alloc->last = nblock; in snd_gf1_mem_xalloc()[all …]
421 for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) in find_voice()422 if (synth_devs[dev]->alloc.map[i] == key) in find_voice()435 &synth_devs[dev]->alloc); in alloc_voice()436 synth_devs[dev]->alloc.map[voice] = key; in alloc_voice()437 synth_devs[dev]->alloc.alloc_times[voice] = in alloc_voice()438 synth_devs[dev]->alloc.timestamp++; in alloc_voice()586 for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) in seq_chn_common_event()587 if ((synth_devs[dev]->alloc.map[i] & 0xff00) == key) in seq_chn_common_event()612 for (i = 0; i < synth_devs[dev]->alloc.max_voice; i++) in seq_chn_common_event()613 if ((synth_devs[dev]->alloc.map[i] & 0xff00) == key) in seq_chn_common_event()
280 int (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc);284 struct voice_alloc_info alloc; member
998 static int opl3_alloc_voice(int dev, int chn, int note, struct voice_alloc_info *alloc) in opl3_alloc_voice() argument1040 if (alloc->map[p] == 0) in opl3_alloc_voice()1044 if (alloc->alloc_times[p] < best_time) /* Find oldest playing note */ in opl3_alloc_voice()1046 best_time = alloc->alloc_times[p]; in opl3_alloc_voice()1157 devc->v_alloc = &opl3_operations.alloc; in opl3_init()