Lines Matching full:pbus
58 struct hpc3_pbus_dmacregs *pbus; member
60 unsigned int ctrl; /* Current state of pbus->pbdma_ctrl */
77 struct hal2_pbus pbus; member
316 if (hal2->dac.pbus.pbus->pbdma_ctrl & HPC3_PDMACTRL_INT) { in hal2_interrupt()
320 if (hal2->adc.pbus.pbus->pbdma_ctrl & HPC3_PDMACTRL_INT) { in hal2_interrupt()
371 struct hal2_pbus *pbus = &hal2->dac.pbus; in hal2_setup_dac() local
373 /* Now we set up some PBUS information. The PBUS needs information about in hal2_setup_dac()
384 pbus->ctrl = HPC3_PDMACTRL_RT | HPC3_PDMACTRL_LD | in hal2_setup_dac()
387 pbus->pbus->pbdma_ctrl = HPC3_PDMACTRL_LD; in hal2_setup_dac()
394 hal2_i_setbit16(hal2, H2I_DMA_DRV, (1 << pbus->pbusnr)); in hal2_setup_dac()
396 hal2_i_write16(hal2, H2I_DAC_C1, (pbus->pbusnr << H2I_C1_DMA_SHIFT) in hal2_setup_dac()
404 struct hal2_pbus *pbus = &hal2->adc.pbus; in hal2_setup_adc() local
410 pbus->ctrl = HPC3_PDMACTRL_RT | HPC3_PDMACTRL_RCV | HPC3_PDMACTRL_LD | in hal2_setup_adc()
412 pbus->pbus->pbdma_ctrl = HPC3_PDMACTRL_LD; in hal2_setup_adc()
419 hal2_i_setbit16(hal2, H2I_DMA_DRV, (1 << pbus->pbusnr)); in hal2_setup_adc()
421 hal2_i_write16(hal2, H2I_ADC_C1, (pbus->pbusnr << H2I_C1_DMA_SHIFT) in hal2_setup_adc()
428 struct hal2_pbus *pbus = &hal2->dac.pbus; in hal2_start_dac() local
430 pbus->pbus->pbdma_dptr = hal2->dac.desc_dma; in hal2_start_dac()
431 pbus->pbus->pbdma_ctrl = pbus->ctrl | HPC3_PDMACTRL_ACT; in hal2_start_dac()
438 struct hal2_pbus *pbus = &hal2->adc.pbus; in hal2_start_adc() local
440 pbus->pbus->pbdma_dptr = hal2->adc.desc_dma; in hal2_start_adc()
441 pbus->pbus->pbdma_ctrl = pbus->ctrl | HPC3_PDMACTRL_ACT; in hal2_start_adc()
448 hal2->dac.pbus.pbus->pbdma_ctrl = HPC3_PDMACTRL_LD; in hal2_stop_dac()
454 hal2->adc.pbus.pbus->pbdma_ctrl = HPC3_PDMACTRL_LD; in hal2_stop_adc()
599 dac->pbus.pbus->pbdma_bptr); in hal2_playback_pointer()
691 adc->pbus.pbus->pbdma_bptr); in hal2_capture_pointer()
779 codec->pbus.pbusnr = index; in hal2_init_codec()
780 codec->pbus.pbus = &hpc3->pbdma[index]; in hal2_init_codec()
845 * PBUS programmed for 2 cycles in D3, 2 cycles in D4 and 2 cycles in hal2_create()
848 * portion of PBUS (15:8) and assumes that HPC3 is programmed to in hal2_create()
866 hpc3->pbus_dmacfg[hal2->dac.pbus.pbusnr][0] = 0x8208844; in hal2_create()
867 hpc3->pbus_dmacfg[hal2->adc.pbus.pbusnr][0] = 0x8208844; in hal2_create()