/Zephyr-latest/drivers/serial/ |
D | uart_imx.c | 138 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()
|
D | uart_msp432p4xx.c | 178 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()
|
D | uart_bcm2711.c | 166 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()
|
D | uart_cc32xx.c | 141 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()
|
D | usart_gd32.c | 170 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()
|
D | uart_mcux_lpsci.c | 92 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()
|
D | uart_rv32m1_lpuart.c | 96 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()
|
D | uart_mcux_iuart.c | 89 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()
|
D | leuart_gecko.c | 104 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()
|
D | uart_stellaris.c | 316 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()
|
D | uart_mcux.c | 182 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()
|
D | uart_rzt2m.c | 115 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()
|
D | uart_rcar.c | 340 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()
|
D | uart_max32.c | 260 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()
|
D | uart_pl011.c | 320 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()
|
D | uart_nrfx_uart.c | 789 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()
|
D | uart_smartbond.c | 480 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()
|
D | uart_gecko.c | 225 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()
|
D | uart_renesas_ra8_sci_b.c | 259 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()
|
D | uart_renesas_ra_sci.c | 304 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()
|
D | uart_mcux_flexcomm.c | 149 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()
|
D | uart_mcux_lpuart.c | 236 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()
|
D | uart_stm32.c | 826 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/ |
D | can_mcan.c | 361 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/ |
D | main.c | 227 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()
|