Home
last modified time | relevance | path

Searched refs:r_bytes (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/tools/testing/selftests/net/
Dipsec.c674 ssize_t r_bytes, s_bytes; in udp_ping_send() local
689 r_bytes = recv(sock[0], sock_buf, buf_len, 0); in udp_ping_send()
690 if (r_bytes < 0) { in udp_ping_send()
694 } else if (r_bytes == 0) { /* EOF */ in udp_ping_send()
697 } else if (r_bytes != buf_len || memcmp(buf, sock_buf, buf_len)) { in udp_ping_send()
698 printk("ping reply packet is corrupted %zd/%zu", r_bytes, buf_len); in udp_ping_send()
711 ssize_t r_bytes, s_bytes; in udp_ping_reply() local
717 r_bytes = recv(sock[0], sock_buf, buf_len, 0); in udp_ping_reply()
718 if (r_bytes < 0) { in udp_ping_reply()
723 if (r_bytes == 0) { /* EOF */ in udp_ping_reply()
[all …]
/linux-6.6.21/lib/
Dbch.c214 const size_t r_bytes = BCH_ECC_WORDS(bch) * sizeof(*r); in bch_encode() local
221 if (WARN_ON(r_bytes > sizeof(r))) in bch_encode()
228 memset(bch->ecc_buf, 0, r_bytes); in bch_encode()
245 memcpy(r, bch->ecc_buf, r_bytes); in bch_encode()
277 memcpy(bch->ecc_buf, r, r_bytes); in bch_encode()
/linux-6.6.21/drivers/tty/serial/
Dimx.c1166 unsigned int r_bytes; in imx_uart_dma_rx_callback() local
1200 r_bytes = rx_ring->head - rx_ring->tail; in imx_uart_dma_rx_callback()
1214 sport->rx_buf + rx_ring->tail, r_bytes); in imx_uart_dma_rx_callback()
1220 if (w_bytes != r_bytes) in imx_uart_dma_rx_callback()