Home
last modified time | relevance | path

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

/Linux-v5.15/tools/testing/selftests/net/
Dipsec.c636 ssize_t r_bytes, s_bytes; in udp_ping_send() local
651 r_bytes = recv(sock[0], sock_buf, buf_len, 0); in udp_ping_send()
652 if (r_bytes < 0) { in udp_ping_send()
656 } else if (r_bytes == 0) { /* EOF */ in udp_ping_send()
659 } else if (r_bytes != buf_len || memcmp(buf, sock_buf, buf_len)) { in udp_ping_send()
660 printk("ping reply packet is corrupted %zd/%zu", r_bytes, buf_len); in udp_ping_send()
673 ssize_t r_bytes, s_bytes; in udp_ping_reply() local
679 r_bytes = recv(sock[0], sock_buf, buf_len, 0); in udp_ping_reply()
680 if (r_bytes < 0) { in udp_ping_reply()
685 if (r_bytes == 0) { /* EOF */ in udp_ping_reply()
[all …]
/Linux-v5.15/lib/
Dbch.c248 const size_t r_bytes = BCH_ECC_WORDS(bch) * sizeof(*r); in bch_encode() local
255 if (WARN_ON(r_bytes > sizeof(r))) in bch_encode()
262 memset(bch->ecc_buf, 0, r_bytes); in bch_encode()
279 memcpy(r, bch->ecc_buf, r_bytes); in bch_encode()
311 memcpy(bch->ecc_buf, r, r_bytes); in bch_encode()
/Linux-v5.15/drivers/tty/serial/
Dimx.c1125 unsigned int r_bytes; in imx_uart_dma_rx_callback() local
1159 r_bytes = rx_ring->head - rx_ring->tail; in imx_uart_dma_rx_callback()
1166 sport->rx_buf + rx_ring->tail, r_bytes); in imx_uart_dma_rx_callback()
1172 if (w_bytes != r_bytes) in imx_uart_dma_rx_callback()