Lines Matching refs:pbus

45 	struct hpc3_pbus_dmacregs *pbus;  member
64 struct hal2_pbus pbus; member
303 if (hal2->dac.pbus.pbus->pbdma_ctrl & HPC3_PDMACTRL_INT) { in hal2_interrupt()
307 if (hal2->adc.pbus.pbus->pbdma_ctrl & HPC3_PDMACTRL_INT) { in hal2_interrupt()
358 struct hal2_pbus *pbus = &hal2->dac.pbus; in hal2_setup_dac() local
371 pbus->ctrl = HPC3_PDMACTRL_RT | HPC3_PDMACTRL_LD | in hal2_setup_dac()
374 pbus->pbus->pbdma_ctrl = HPC3_PDMACTRL_LD; in hal2_setup_dac()
381 hal2_i_setbit16(hal2, H2I_DMA_DRV, (1 << pbus->pbusnr)); in hal2_setup_dac()
383 hal2_i_write16(hal2, H2I_DAC_C1, (pbus->pbusnr << H2I_C1_DMA_SHIFT) in hal2_setup_dac()
391 struct hal2_pbus *pbus = &hal2->adc.pbus; in hal2_setup_adc() local
397 pbus->ctrl = HPC3_PDMACTRL_RT | HPC3_PDMACTRL_RCV | HPC3_PDMACTRL_LD | in hal2_setup_adc()
399 pbus->pbus->pbdma_ctrl = HPC3_PDMACTRL_LD; in hal2_setup_adc()
406 hal2_i_setbit16(hal2, H2I_DMA_DRV, (1 << pbus->pbusnr)); in hal2_setup_adc()
408 hal2_i_write16(hal2, H2I_ADC_C1, (pbus->pbusnr << H2I_C1_DMA_SHIFT) in hal2_setup_adc()
415 struct hal2_pbus *pbus = &hal2->dac.pbus; in hal2_start_dac() local
417 pbus->pbus->pbdma_dptr = hal2->dac.desc_dma; in hal2_start_dac()
418 pbus->pbus->pbdma_ctrl = pbus->ctrl | HPC3_PDMACTRL_ACT; in hal2_start_dac()
425 struct hal2_pbus *pbus = &hal2->adc.pbus; in hal2_start_adc() local
427 pbus->pbus->pbdma_dptr = hal2->adc.desc_dma; in hal2_start_adc()
428 pbus->pbus->pbdma_ctrl = pbus->ctrl | HPC3_PDMACTRL_ACT; in hal2_start_adc()
435 hal2->dac.pbus.pbus->pbdma_ctrl = HPC3_PDMACTRL_LD; in hal2_stop_dac()
441 hal2->adc.pbus.pbus->pbdma_ctrl = HPC3_PDMACTRL_LD; in hal2_stop_adc()
570 dac->pbus.pbus->pbdma_bptr); in hal2_playback_pointer()
655 adc->pbus.pbus->pbdma_bptr); in hal2_capture_pointer()
738 codec->pbus.pbusnr = index; in hal2_init_codec()
739 codec->pbus.pbus = &hpc3->pbdma[index]; in hal2_init_codec()
825 hpc3->pbus_dmacfg[hal2->dac.pbus.pbusnr][0] = 0x8208844; in hal2_create()
826 hpc3->pbus_dmacfg[hal2->adc.pbus.pbusnr][0] = 0x8208844; in hal2_create()