Lines Matching refs:ctrl_arg
777 rt_ubase_t ctrl_arg = (rt_ubase_t) arg; in hpm_uart_dma_config() local
782 if (ctrl_arg == RT_DEVICE_FLAG_DMA_RX) { in hpm_uart_dma_config()
812 } else if (ctrl_arg == RT_DEVICE_FLAG_DMA_TX) { in hpm_uart_dma_config()
863 rt_ubase_t ctrl_arg = (rt_ubase_t) arg; in hpm_uart_control() local
869 if(ctrl_arg & (RT_DEVICE_FLAG_RX_BLOCKING | RT_DEVICE_FLAG_RX_NON_BLOCKING)) in hpm_uart_control()
874 ctrl_arg = RT_DEVICE_FLAG_DMA_RX; in hpm_uart_control()
879 ctrl_arg = RT_DEVICE_FLAG_INT_RX; in hpm_uart_control()
882 else if(ctrl_arg & (RT_DEVICE_FLAG_TX_BLOCKING | RT_DEVICE_FLAG_TX_NON_BLOCKING)) in hpm_uart_control()
887 ctrl_arg = RT_DEVICE_FLAG_DMA_TX; in hpm_uart_control()
892 ctrl_arg = RT_DEVICE_FLAG_INT_TX; in hpm_uart_control()
898 if (ctrl_arg == RT_DEVICE_FLAG_INT_RX) { in hpm_uart_control()
903 else if (ctrl_arg == RT_DEVICE_FLAG_INT_TX) { in hpm_uart_control()
909 else if (ctrl_arg == RT_DEVICE_FLAG_DMA_TX) { in hpm_uart_control()
916 } else if (ctrl_arg == RT_DEVICE_FLAG_DMA_RX) { in hpm_uart_control()
928 if (ctrl_arg == RT_DEVICE_FLAG_INT_RX) { in hpm_uart_control()
932 } else if (ctrl_arg == RT_DEVICE_FLAG_INT_TX) { in hpm_uart_control()
941 if ((ctrl_arg == RT_DEVICE_FLAG_DMA_RX) || (ctrl_arg == RT_DEVICE_FLAG_INT_RX)) { in hpm_uart_control()
960 if ((ctrl_arg == RT_DEVICE_FLAG_DMA_TX) || (ctrl_arg == RT_DEVICE_FLAG_INT_TX)) { in hpm_uart_control()
981 if (ctrl_arg & (RT_DEVICE_FLAG_DMA_RX | RT_DEVICE_FLAG_DMA_TX)) { in hpm_uart_control()
982 hpm_uart_dma_config(serial, (void *)ctrl_arg); in hpm_uart_control()
986 hpm_uart_control(serial, RT_DEVICE_CTRL_SET_INT, (void *)ctrl_arg); in hpm_uart_control()
991 if ((ctrl_arg & RT_DEVICE_FLAG_DMA_TX)) { in hpm_uart_control()