Home
last modified time | relevance | path

Searched refs:num_tx (Results 1 – 25 of 26) sorted by relevance

12

/Zephyr-latest/drivers/serial/
Duart_imx.c138 unsigned int num_tx = 0U; in uart_imx_fifo_fill() local
140 while (((size - num_tx) > 0) && in uart_imx_fifo_fill()
143 UART_Putchar(uart, tx_data[num_tx]); in uart_imx_fifo_fill()
144 num_tx++; in uart_imx_fifo_fill()
147 return (int)num_tx; in uart_imx_fifo_fill()
Duart_msp432p4xx.c178 unsigned int num_tx = 0U; in uart_msp432p4xx_fifo_fill() local
180 while ((size - num_tx) > 0) { in uart_msp432p4xx_fifo_fill()
181 MAP_UART_transmitData(config->base, tx_data[num_tx]); in uart_msp432p4xx_fifo_fill()
184 num_tx++; in uart_msp432p4xx_fifo_fill()
190 return (int)num_tx; in uart_msp432p4xx_fifo_fill()
Duart_bcm2711.c166 int num_tx = 0U; in uart_bcm2711_fifo_fill() local
169 while ((size - num_tx) > 0) { in uart_bcm2711_fifo_fill()
171 bcm2711_mu_lowlevel_putc(uart_data->uart_addr, tx_data[num_tx]); in uart_bcm2711_fifo_fill()
172 num_tx++; in uart_bcm2711_fifo_fill()
175 return num_tx; in uart_bcm2711_fifo_fill()
Duart_cc32xx.c141 unsigned int num_tx = 0U; in uart_cc32xx_fifo_fill() local
143 while ((size - num_tx) > 0) { in uart_cc32xx_fifo_fill()
145 if (MAP_UARTCharPutNonBlocking(config->base, tx_data[num_tx])) { in uart_cc32xx_fifo_fill()
146 num_tx++; in uart_cc32xx_fifo_fill()
152 return (int)num_tx; in uart_cc32xx_fifo_fill()
Dusart_gd32.c170 int num_tx = 0U; in usart_gd32_fifo_fill() local
172 while ((len - num_tx > 0) && in usart_gd32_fifo_fill()
174 usart_data_transmit(cfg->reg, tx_data[num_tx++]); in usart_gd32_fifo_fill()
177 return num_tx; in usart_gd32_fifo_fill()
Duart_mcux_lpsci.c92 int num_tx = 0U; in mcux_lpsci_fifo_fill() local
94 while ((len - num_tx > 0) && in mcux_lpsci_fifo_fill()
98 LPSCI_WriteByte(config->base, tx_data[num_tx++]); in mcux_lpsci_fifo_fill()
101 return num_tx; in mcux_lpsci_fifo_fill()
Duart_rv32m1_lpuart.c96 int num_tx = 0U; in rv32m1_lpuart_fifo_fill() local
98 while ((len - num_tx > 0) && in rv32m1_lpuart_fifo_fill()
102 LPUART_WriteByte(config->base, tx_data[num_tx++]); in rv32m1_lpuart_fifo_fill()
105 return num_tx; in rv32m1_lpuart_fifo_fill()
Duart_mcux_iuart.c89 int num_tx = 0U; in mcux_iuart_fifo_fill() local
91 while ((len - num_tx > 0) && in mcux_iuart_fifo_fill()
94 UART_WriteByte(config->base, tx_data[num_tx++]); in mcux_iuart_fifo_fill()
97 return num_tx; in mcux_iuart_fifo_fill()
Dleuart_gecko.c104 int num_tx = 0U; in leuart_gecko_fifo_fill() local
106 while ((len - num_tx > 0) && in leuart_gecko_fifo_fill()
109 base->TXDATA = (uint32_t)tx_data[num_tx++]; in leuart_gecko_fifo_fill()
112 return num_tx; in leuart_gecko_fifo_fill()
Duart_stellaris.c316 int num_tx = 0U; in uart_stellaris_fifo_fill() local
318 while ((len - num_tx > 0) && ((config->uart->fr & UARTFR_TXFF) == 0U)) { in uart_stellaris_fifo_fill()
319 config->uart->dr = (uint32_t)tx_data[num_tx++]; in uart_stellaris_fifo_fill()
322 return (int)num_tx; in uart_stellaris_fifo_fill()
Duart_mcux.c182 int num_tx = 0U; in uart_mcux_fifo_fill() local
184 while ((len - num_tx > 0) && in uart_mcux_fifo_fill()
187 UART_WriteByte(config->base, tx_data[num_tx++]); in uart_mcux_fifo_fill()
190 return num_tx; in uart_mcux_fifo_fill()
Duart_rzt2m.c115 int num_tx = 0; in rzt2m_fifo_fill() local
118 while ((size - num_tx > 0) && uart_rzt2m_irq_tx_ready(dev)) { in rzt2m_fifo_fill()
119 *TDR(config->base) = (uint8_t)tx_data[num_tx++]; in rzt2m_fifo_fill()
123 return num_tx; in rzt2m_fifo_fill()
Duart_rcar.c340 int num_tx = 0; in uart_rcar_fifo_fill() local
344 while (((len - num_tx) > 0) && in uart_rcar_fifo_fill()
347 uart_rcar_write_8(dev, SCFTDR, tx_data[num_tx]); in uart_rcar_fifo_fill()
353 num_tx++; in uart_rcar_fifo_fill()
358 return num_tx; in uart_rcar_fifo_fill()
Duart_max32.c260 unsigned int num_tx = 0; in api_fifo_fill() local
263 num_tx = MXC_UART_WriteTXFIFO(cfg->regs, (unsigned char *)tx_data, size); in api_fifo_fill()
265 return (int)num_tx; in api_fifo_fill()
Duart_pl011.c320 int num_tx = 0U; in pl011_fifo_fill() local
322 while (!(get_uart(dev)->fr & PL011_FR_TXFF) && (len - num_tx > 0)) { in pl011_fifo_fill()
323 get_uart(dev)->dr = tx_data[num_tx++]; in pl011_fifo_fill()
325 return num_tx; in pl011_fifo_fill()
Duart_nrfx_uart.c789 int num_tx = 0U; in uart_nrfx_fifo_fill() local
791 while ((len - num_tx > 0) && in uart_nrfx_fifo_fill()
798 nrf_uart_txd_set(uart0_addr, (uint8_t)tx_data[num_tx++]); in uart_nrfx_fifo_fill()
801 return (int)num_tx; in uart_nrfx_fifo_fill()
Duart_smartbond.c480 int num_tx = 0; in uart_smartbond_fifo_fill() local
484 while ((len - num_tx > 0) && in uart_smartbond_fifo_fill()
486 config->regs->UART2_RBR_THR_DLL_REG = tx_data[num_tx++]; in uart_smartbond_fifo_fill()
496 return num_tx; in uart_smartbond_fifo_fill()
Duart_gecko.c225 int num_tx = 0U; in uart_gecko_fifo_fill() local
227 while ((len - num_tx > 0) && in uart_gecko_fifo_fill()
230 config->base->TXDATA = (uint32_t)tx_data[num_tx++]; in uart_gecko_fifo_fill()
233 return num_tx; in uart_gecko_fifo_fill()
Duart_renesas_ra8_sci_b.c259 int num_tx = 0U; in uart_ra_sci_b_fifo_fill() local
262 while ((size - num_tx > 0) && cfg->regs->FTSR != 0x10U) { in uart_ra_sci_b_fifo_fill()
266 cfg->regs->TDR_BY = tx_data[num_tx++]; in uart_ra_sci_b_fifo_fill()
273 cfg->regs->TDR_BY = tx_data[num_tx++]; in uart_ra_sci_b_fifo_fill()
277 return num_tx; in uart_ra_sci_b_fifo_fill()
Duart_renesas_ra_sci.c304 int num_tx = 0U; in uart_ra_sci_fifo_fill() local
308 while ((size - num_tx > 0) && cfg->regs->FDR_b.T < data->sci.fifo_depth) { in uart_ra_sci_fifo_fill()
310 cfg->regs->FTDRL = tx_data[num_tx++]; in uart_ra_sci_fifo_fill()
318 cfg->regs->TDR = tx_data[num_tx++]; in uart_ra_sci_fifo_fill()
322 return num_tx; in uart_ra_sci_fifo_fill()
Duart_mcux_flexcomm.c149 int num_tx = 0U; in mcux_flexcomm_fifo_fill() local
151 while ((len - num_tx > 0) && in mcux_flexcomm_fifo_fill()
155 USART_WriteByte(config->base, tx_data[num_tx++]); in mcux_flexcomm_fifo_fill()
158 return num_tx; in mcux_flexcomm_fifo_fill()
Duart_mcux_lpuart.c236 int num_tx = 0U; in mcux_lpuart_fifo_fill() local
238 while ((len - num_tx > 0) && in mcux_lpuart_fifo_fill()
242 LPUART_WriteByte(config->base, tx_data[num_tx++]); in mcux_lpuart_fifo_fill()
244 return num_tx; in mcux_lpuart_fifo_fill()
Duart_stm32.c826 int num_tx = 0U; in uart_stm32_fifo_fill_visitor() local
830 return num_tx; in uart_stm32_fifo_fill_visitor()
836 while ((size - num_tx > 0) && LL_USART_IsActiveFlag_TXE(usart)) { in uart_stm32_fifo_fill_visitor()
840 fill_fn(usart, tx_data, num_tx); in uart_stm32_fifo_fill_visitor()
841 num_tx++; in uart_stm32_fifo_fill_visitor()
846 return num_tx; in uart_stm32_fifo_fill_visitor()
/Zephyr-latest/drivers/can/
Dcan_mcan.c361 for (tx_idx = 0U; tx_idx < cbs->num_tx; tx_idx++) { in can_mcan_stop()
483 for (tx_idx = 0U; tx_idx < cbs->num_tx; tx_idx++) { in can_mcan_state_change_handler()
552 __ASSERT_NO_MSG(tx_idx < cbs->num_tx); in can_mcan_tx_event_handler()
993 for (int i = 0; i < cbs->num_tx; i++) { in can_mcan_send()
1028 __ASSERT_NO_MSG(put_idx < cbs->num_tx); in can_mcan_send()
1388 __ASSERT_NO_MSG(cbs->num_tx <= config->mram_elements[CAN_MCAN_MRAM_CFG_TX_BUFFER]); in can_mcan_init()
1394 k_sem_init(&data->tx_sem, cbs->num_tx, cbs->num_tx); in can_mcan_init()
/Zephyr-latest/samples/net/wpan_serial/src/
Dmain.c227 static void send_pkt_report(uint8_t seq, uint8_t status, uint8_t num_tx) in send_pkt_report() argument
234 report[2] = num_tx; in send_pkt_report()

12