Lines Matching +full:0 +full:x3000
48 writew(0, base + JQS_wHead); in snd_msnd_init_queue()
49 writew(0, base + JQS_wTail); in snd_msnd_init_queue()
58 while (timeout-- > 0) in snd_msnd_wait_TXDE()
60 return 0; in snd_msnd_wait_TXDE()
70 while (timeout-- > 0) in snd_msnd_wait_HC0()
72 return 0; in snd_msnd_wait_HC0()
82 if (snd_msnd_wait_HC0(dev) == 0) { in snd_msnd_send_dsp_cmd()
85 return 0; in snd_msnd_send_dsp_cmd()
100 if (snd_msnd_wait_TXDE(dev) == 0) { in snd_msnd_send_word()
104 return 0; in snd_msnd_send_word()
117 if (len % 3 != 0) { in snd_msnd_upload_host()
123 for (i = 0; i < len; i += 3) in snd_msnd_upload_host()
130 return 0; in snd_msnd_upload_host()
139 return 0; in snd_msnd_enable_irq()
144 if (snd_msnd_wait_TXDE(dev) == 0) { in snd_msnd_enable_irq()
155 return 0; in snd_msnd_enable_irq()
169 if (--dev->irq_ref > 0) in snd_msnd_disable_irq()
170 return 0; in snd_msnd_disable_irq()
172 if (dev->irq_ref < 0) in snd_msnd_disable_irq()
179 if (snd_msnd_wait_TXDE(dev) == 0) { in snd_msnd_disable_irq()
185 return 0; in snd_msnd_disable_irq()
255 wTmp = 0; in snd_msnd_DARQ()
262 unsigned short offset = 0x3000 + chip->capturePeriodBytes; in snd_msnd_DARQ()
264 if (readw(pDAQ) != PCTODSP_BASED(0x3000)) in snd_msnd_DARQ()
265 offset = 0x3000; in snd_msnd_DARQ()
271 #if 0 in snd_msnd_DARQ()
283 size, 0); in snd_msnd_DARQ()
284 if (n <= 0) { in snd_msnd_DARQ()
298 int protect = start, nbanks = 0; in snd_msnd_DAPQ()
309 start = 0; in snd_msnd_DAPQ()
310 play_banks_submitted = 0; in snd_msnd_DAPQ()
324 if (readw(DAQD + DAQDS_wStart) != PCTODSP_BASED(0x0)) in snd_msnd_DAPQ()
325 offset = 0; in snd_msnd_DAPQ()
355 writew(PCTODSP_OFFSET(0 * DAQDS__size), chip->DAPQ + JQS_wHead); in snd_msnd_play_reset_queue()
356 writew(PCTODSP_OFFSET(0 * DAQDS__size), chip->DAPQ + JQS_wTail); in snd_msnd_play_reset_queue()
360 for (n = 0; n < pcm_periods; ++n, pDAQ += DAQDS__size) { in snd_msnd_play_reset_queue()
363 writew(0, pDAQ + DAQDS_wSize); in snd_msnd_play_reset_queue()
368 writew(HIMT_PLAY_DONE * 0x100 + n, pDAQ + DAQDS_wIntMsg); in snd_msnd_play_reset_queue()
386 writew(PCTODSP_OFFSET(0 * DAQDS__size), chip->DARQ + JQS_wHead); in snd_msnd_capture_reset_queue()
390 #if 0 /* Critical section: bank 1 access. this is how the OSS driver does it:*/ in snd_msnd_capture_reset_queue()
393 memset_io(chip->mappedbase, 0, DAR_BUFF_SIZE * 3); in snd_msnd_capture_reset_queue()
403 for (n = 0; n < pcm_periods; ++n, pDAQ += DAQDS__size) { in snd_msnd_capture_reset_queue()
406 writew(PCTODSP_BASED(tmp + 0x3000), pDAQ + DAQDS_wStart); in snd_msnd_capture_reset_queue()
412 writew(HIMT_RECORD_DONE * 0x100 + n, pDAQ + DAQDS_wIntMsg); in snd_msnd_capture_reset_queue()
428 .buffer_bytes_max = 0x3000,
429 .period_bytes_min = 0x40,
430 .period_bytes_max = 0x1800,
433 .fifo_size = 0,
447 .buffer_bytes_max = 0x3000,
448 .period_bytes_min = 0x40,
449 .period_bytes_max = 0x1800,
452 .fifo_size = 0,
467 runtime->dma_bytes = 0x3000; in snd_msnd_playback_open()
471 return 0; in snd_msnd_playback_open()
480 return 0; in snd_msnd_playback_close()
495 for (i = 0; i < 3; ++i, pDAQ += DAQDS__size) { in snd_msnd_playback_hw_params()
504 return 0; in snd_msnd_playback_hw_params()
515 chip->playDMAPos = 0; in snd_msnd_playback_prepare()
516 return 0; in snd_msnd_playback_prepare()
523 int result = 0; in snd_msnd_playback_trigger()
527 chip->banksPlayed = 0; in snd_msnd_playback_trigger()
570 runtime->dma_area = (__force void *)chip->mappedbase + 0x3000; in snd_msnd_capture_open()
571 runtime->dma_addr = chip->base + 0x3000; in snd_msnd_capture_open()
572 runtime->dma_bytes = 0x3000; in snd_msnd_capture_open()
573 memset(runtime->dma_area, 0, runtime->dma_bytes); in snd_msnd_capture_open()
576 return 0; in snd_msnd_capture_open()
585 return 0; in snd_msnd_capture_close()
596 chip->captureDMAPos = 0; in snd_msnd_capture_prepare()
597 return 0; in snd_msnd_capture_prepare()
608 if (snd_msnd_send_dsp_cmd(chip, HDEX_RECORD_START) == 0) in snd_msnd_capture_trigger()
609 return 0; in snd_msnd_capture_trigger()
615 return 0; in snd_msnd_capture_trigger()
642 for (i = 0; i < 3; ++i, pDAQ += DAQDS__size) { in snd_msnd_capture_hw_params()
647 return 0; in snd_msnd_capture_hw_params()
669 if (err < 0) in snd_msnd_pcm()
678 return 0; in snd_msnd_pcm()