Home
last modified time | relevance | path

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

/f-stack/app/redis-5.0.5/src/
H A Drio.h108 …size_t bytes_to_read = (r->max_processing_chunk && r->max_processing_chunk < len) ? r->max_process… in rioRead() local
109 if (r->read(r,buf,bytes_to_read) == 0) in rioRead()
111 if (r->update_cksum) r->update_cksum(r,buf,bytes_to_read); in rioRead()
112 buf = (char*)buf + bytes_to_read; in rioRead()
113 len -= bytes_to_read; in rioRead()
114 r->processed_bytes += bytes_to_read; in rioRead()
/f-stack/freebsd/contrib/octeon-sdk/
H A Docteon-pci-console.c203 int bytes_to_read = octeon_pci_console_buffer_avail_bytes(console_buffer_size, wr_idx, rd_idx); in octeon_pci_console_host_read() local
204 if (bytes_to_read <= 0) in octeon_pci_console_host_read()
205 return bytes_to_read; in octeon_pci_console_host_read()
208 bytes_to_read = MIN(bytes_to_read, buf_size); in octeon_pci_console_host_read()
210 if (rd_idx + bytes_to_read >= console_buffer_size) in octeon_pci_console_host_read()
211 bytes_to_read = console_buffer_size - rd_idx; in octeon_pci_console_host_read()
214 octeon_pci_read_mem(buffer, base_addr + rd_idx, bytes_to_read,OCTEON_PCI_ENDIAN_64BIT_SWAP); in octeon_pci_console_host_read()
215 …e_addr + offsetof(octeon_pci_console_t, output_read_index), (rd_idx + bytes_to_read)%console_buffe… in octeon_pci_console_host_read()
217 return bytes_to_read; in octeon_pci_console_host_read()
/f-stack/freebsd/mips/atheros/
H A Dar71xx_pci.c135 uint32_t bytes_to_read = 0; in ar71xx_get_bytes_to_read() local
138 bytes_to_read = 0; in ar71xx_get_bytes_to_read()
140 bytes_to_read = (~(1 << (reg % 4))) & 0xf; in ar71xx_get_bytes_to_read()
142 bytes_to_read = (~(3 << (reg % 4))) & 0xf; in ar71xx_get_bytes_to_read()
146 return (bytes_to_read); in ar71xx_get_bytes_to_read()