Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/net/
H A Dipsec.c675 ssize_t r_bytes, s_bytes; in udp_ping_send() local
690 r_bytes = recv(sock[0], sock_buf, buf_len, 0); in udp_ping_send()
691 if (r_bytes < 0) { in udp_ping_send()
695 } else if (r_bytes == 0) { /* EOF */ in udp_ping_send()
698 } else if (r_bytes != buf_len || memcmp(buf, sock_buf, buf_len)) { in udp_ping_send()
699 printk("ping reply packet is corrupted %zd/%zu", r_bytes, buf_len); in udp_ping_send()
712 ssize_t r_bytes, s_bytes; in udp_ping_reply() local
718 r_bytes = recv(sock[0], sock_buf, buf_len, 0); in udp_ping_reply()
719 if (r_bytes < 0) { in udp_ping_reply()
724 if (r_bytes == 0) { /* EOF */ in udp_ping_reply()
[all …]
/openbmc/linux/lib/
H A 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()
/openbmc/linux/drivers/tty/serial/
H A Dimx.c1197 unsigned int r_bytes; in imx_uart_dma_rx_callback() local
1231 r_bytes = rx_ring->head - rx_ring->tail; in imx_uart_dma_rx_callback()
1245 sport->rx_buf + rx_ring->tail, r_bytes); in imx_uart_dma_rx_callback()
1251 if (w_bytes != r_bytes) in imx_uart_dma_rx_callback()