Lines Matching refs:channel
189 static void sedi_dma_poll_dummy_cb(IN sedi_dma_t dma_dev, IN int channel, IN int event, in sedi_dma_poll_dummy_cb() argument
195 PARAM_UNUSED(channel); in sedi_dma_poll_dummy_cb()
1831 static int sedi_uart_dma_config(IN sedi_dma_t dma, int32_t channel, IN sedi_dma_event_cb_t cb, in sedi_uart_dma_config() argument
1838 ret = sedi_dma_init(dma, channel, cb, param); in sedi_uart_dma_config()
1841 ret = sedi_dma_set_power(dma, channel, SEDI_POWER_FULL); in sedi_uart_dma_config()
1845 ret = sedi_dma_control(dma, channel, SEDI_CONFIG_DMA_BURST_LENGTH, in sedi_uart_dma_config()
1848 ret = sedi_dma_control(dma, channel, SEDI_CONFIG_DMA_BURST_LENGTH, in sedi_uart_dma_config()
1856 ret = sedi_dma_control(dma, channel, SEDI_CONFIG_DMA_SR_TRANS_WIDTH, DMA_TRANS_WIDTH_8); in sedi_uart_dma_config()
1859 ret = sedi_dma_control(dma, channel, SEDI_CONFIG_DMA_DT_TRANS_WIDTH, DMA_TRANS_WIDTH_8); in sedi_uart_dma_config()
1862 ret = sedi_dma_control(dma, channel, SEDI_CONFIG_DMA_HS_POLARITY, DMA_HS_POLARITY_HIGH); in sedi_uart_dma_config()
1880 ret = sedi_uart_dma_config(xfer->dma_dev, xfer->channel, sedi_dma_event_cb, in sedi_uart_dma_io_async()
1891 ret = sedi_uart_dma_config(xfer->dma_dev, xfer->channel, sedi_dma_event_cb, in sedi_uart_dma_io_async()
1905 ret = sedi_dma_control(xfer->dma_dev, xfer->channel, SEDI_CONFIG_DMA_HS_DEVICE_ID, in sedi_uart_dma_io_async()
1909 ret = sedi_dma_control(xfer->dma_dev, xfer->channel, SEDI_CONFIG_DMA_HS_DEVICE_ID_PER_DIR, in sedi_uart_dma_io_async()
1913 ret = sedi_dma_control(xfer->dma_dev, xfer->channel, SEDI_CONFIG_DMA_DIRECTION, dma_dir); in sedi_uart_dma_io_async()
1920 ret = sedi_dma_start_transfer(xfer->dma_dev, xfer->channel, src, dst, xfer->len); in sedi_uart_dma_io_async()
1924 static int sedi_uart_dma_io_polled(sedi_uart_t uart, sedi_dma_t dma_dev, uint32_t channel, in sedi_uart_dma_io_polled() argument
1948 ret = sedi_uart_dma_config(dma_dev, channel, sedi_dma_poll_dummy_cb, NULL, op); in sedi_uart_dma_io_polled()
1952 ret = sedi_dma_control(dma_dev, channel, SEDI_CONFIG_DMA_HS_DEVICE_ID, in sedi_uart_dma_io_polled()
1957 ret = sedi_dma_control(dma_dev, channel, SEDI_CONFIG_DMA_HS_DEVICE_ID_PER_DIR, dma_hs_per); in sedi_uart_dma_io_polled()
1960 ret = sedi_dma_control(dma_dev, channel, SEDI_CONFIG_DMA_DIRECTION, dma_dir); in sedi_uart_dma_io_polled()
1967 ret = sedi_dma_start_transfer_polling(dma_dev, channel, src, dst, length); in sedi_uart_dma_io_polled()
2014 ret = sedi_dma_set_power(xfer->dma_dev, xfer->channel, SEDI_POWER_OFF); in sedi_uart_dma_write_terminate()
2016 ret = sedi_dma_uninit(xfer->dma_dev, xfer->channel); in sedi_uart_dma_write_terminate()
2057 ret = sedi_dma_set_power(xfer->dma_dev, xfer->channel, SEDI_POWER_OFF); in sedi_uart_dma_read_terminate()
2059 ret = sedi_dma_uninit(xfer->dma_dev, xfer->channel); in sedi_uart_dma_read_terminate()
2068 int sedi_uart_dma_write_polled(IN sedi_uart_t uart, IN sedi_dma_t dma_dev, IN uint32_t channel, in sedi_uart_dma_write_polled() argument
2080 ret = sedi_uart_dma_io_polled(uart, dma_dev, channel, buff, length, WRITE); in sedi_uart_dma_write_polled()
2084 int sedi_uart_dma_read_polled(IN sedi_uart_t uart, IN sedi_dma_t dma_dev, IN uint32_t channel, in sedi_uart_dma_read_polled() argument
2098 ret = sedi_uart_dma_io_polled(uart, dma_dev, channel, buff, length, READ); in sedi_uart_dma_read_polled()