• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/tm6000/

Lines Matching defs:chip

36 		printk(KERN_INFO "%s/1: " fmt, chip->core->name , ## arg); \
76 static int _tm6000_start_audio_dma(struct snd_tm6000_card *chip)
78 struct tm6000_core *core = chip->core;
98 static int _tm6000_stop_audio_dma(struct snd_tm6000_card *chip)
100 struct tm6000_core *core = chip->core;
116 struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream);
127 struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream);
180 struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream);
189 chip->substream = substream;
209 struct snd_tm6000_card *chip = core->adev;
210 struct snd_pcm_substream *substream = chip->substream;
222 buf_pos = chip->buf_pos;
236 chip->buf_pos += size;
237 if (chip->buf_pos >= runtime->buffer_size * stride)
238 chip->buf_pos -= runtime->buffer_size * stride;
240 chip->period_pos += size;
241 if (chip->period_pos >= runtime->period_size) {
242 chip->period_pos -= runtime->period_size;
274 struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream);
276 _tm6000_stop_audio_dma(chip);
286 struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream);
288 chip->buf_pos = 0;
289 chip->period_pos = 0;
300 struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream);
303 spin_lock(&chip->reg_lock);
307 err = _tm6000_start_audio_dma(chip);
310 err = _tm6000_stop_audio_dma(chip);
317 spin_unlock(&chip->reg_lock);
327 struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream);
329 return chip->buf_pos;
361 struct snd_tm6000_card *chip;
392 chip = kzalloc(sizeof(struct snd_tm6000_card), GFP_KERNEL);
393 if (!chip) {
398 chip->core = dev;
399 chip->card = card;
400 dev->adev = chip;
401 spin_lock_init(&chip->reg_lock);
408 pcm->private_data = chip;
428 struct snd_tm6000_card *chip = dev->adev;
433 if (!chip)
436 if (!chip->card)
439 snd_card_free(chip->card);
440 chip->card = NULL;
441 kfree(chip);