Lines Matching refs:fdblock
2090 static int read_data(int fd, void *buffer, int bytes, int block, int *fdblock) in read_data() argument
2095 if (block != *fdblock) { in read_data()
2099 *fdblock = 0; in read_data()
2102 *fdblock = 1; in read_data()
2154 static int read_events(int fd, int always_block, int *fdblock) in read_events() argument
2169 ret = read_data(fd, bit, sizeof(*bit), should_block, fdblock); in read_events()
2194 if (read_data(fd, ptr + sizeof(*bit), pdu_len, 1, fdblock)) { in read_events()
2323 ret = read_data(pci->fd, bit, sizeof(*bit), 1, &pci->fdblock); in ms_prime()
2341 1, &pci->fdblock); in ms_prime()
2416 pci->fdblock = -1; in setup_file()
2541 int events, fdblock; in do_pipe() local
2544 fdblock = -1; in do_pipe()
2545 while ((events = read_events(fd, 0, &fdblock)) > 0) { in do_pipe()