Lines Matching refs:size_t

51 ssize_t loop_read(int fd, void *buf, size_t nbytes, bool do_poll) {  in loop_read()
61 if (nbytes > (size_t) SSIZE_MAX) in loop_read()
88 assert((size_t) k <= nbytes); in loop_read()
98 int loop_read_exact(int fd, void *buf, size_t nbytes, bool do_poll) { in loop_read_exact()
104 if ((size_t) n != nbytes) in loop_read_exact()
110 int loop_write(int fd, const void *buf, size_t nbytes, bool do_poll) { in loop_write()
116 if (_unlikely_(nbytes > (size_t) SSIZE_MAX)) in loop_write()
142 assert((size_t) k <= nbytes); in loop_write()
161 int ppoll_usec(struct pollfd *fds, size_t nfds, usec_t timeout) { in ppoll_usec()
175 for (size_t i = 0, n = r; i < nfds && n > 0; i++) { in ppoll_usec()
200 static size_t nul_length(const uint8_t *p, size_t sz) { in nul_length()
201 size_t n = 0; in nul_length()
215 ssize_t sparse_write(int fd, const void *p, size_t sz, size_t run_length) { in sparse_write()
222 size_t n; in sparse_write()
262 char* set_iovec_string_field(struct iovec *iovec, size_t *n_iovec, const char *field, const char *v… in set_iovec_string_field()
271 char* set_iovec_string_field_free(struct iovec *iovec, size_t *n_iovec, const char *field, char *va… in set_iovec_string_field_free()
285 for (size_t i = 0; i < iovw->count; i++) in iovw_free_contents()
304 int iovw_put(struct iovec_wrapper *iovw, void *data, size_t len) { in iovw_put()
337 for (size_t i = 0; i < iovw->count; i++) in iovw_rebase()
341 size_t iovw_size(struct iovec_wrapper *iovw) { in iovw_size()
342 size_t n = 0; in iovw_size()
344 for (size_t i = 0; i < iovw->count; i++) in iovw_size()