/external/libcups/backend/ |
D | runloop.c | 26 int device_fd) /* I - Device file descriptor */ in backendDrainOutput() argument 38 print_fd, device_fd); in backendDrainOutput() 44 nfds = (print_fd > device_fd ? print_fd : device_fd) + 1; in backendDrainOutput() 98 if ((bytes = write(device_fd, print_ptr, (size_t)print_bytes)) < 0) in backendDrainOutput() 130 int device_fd, /* I - Device file descriptor */ in backendRunLoop() argument 160 print_fd, device_fd, snmp_fd, addr, use_bc, side_cb); in backendRunLoop() 196 nfds = (print_fd > device_fd ? print_fd : device_fd) + 1; in backendRunLoop() 213 FD_SET(device_fd, &input); in backendRunLoop() 219 FD_SET(device_fd, &output); in backendRunLoop() 262 if ((*side_cb)(print_fd, device_fd, snmp_fd, addr, use_bc)) in backendRunLoop() [all …]
|
D | socket.c | 37 static ssize_t wait_bc(int device_fd, int secs); 68 int device_fd; /* AppSocket */ in main() local 299 if ((addr = httpAddrConnect(addrlist, &device_fd)) == NULL) in main() 302 device_fd = -1; in main() 388 tbytes += write(device_fd, buffer, (size_t)bytes); in main() 400 …if ((bytes = backendRunLoop(print_fd, device_fd, snmp_fd, &(addrlist->addr), 1, 0, backendNetworkS… in main() 419 shutdown(device_fd, 1); in main() 421 while (wait_bc(device_fd, 90) > 0); in main() 437 close(device_fd); in main() 457 wait_bc(int device_fd, /* I - Socket */ in wait_bc() argument [all …]
|
D | usb-unix.c | 25 static int side_cb(int print_fd, int device_fd, int snmp_fd, 44 int device_fd; /* USB device */ in print_device() local 91 if ((device_fd = open_device(uri, &use_bc)) == -1) in print_device() 132 while (device_fd < 0); in print_device() 140 tcgetattr(device_fd, &opts); in print_device() 146 tcsetattr(device_fd, TCSANOW, &opts); in print_device() 170 tbytes = backendRunLoop(print_fd, device_fd, -1, NULL, use_bc, 1, NULL); in print_device() 173 tbytes = backendRunLoop(print_fd, device_fd, -1, NULL, use_bc, 1, side_cb); in print_device() 184 close(device_fd); in print_device() 534 int device_fd, /* I - Device file */ in side_cb() argument [all …]
|
D | backend-private.h | 291 typedef int (*_cups_sccb_t)(int print_fd, int device_fd, int snmp_fd, 300 extern int backendDrainOutput(int print_fd, int device_fd); 311 extern int backendNetworkSideCB(int print_fd, int device_fd, 314 extern ssize_t backendRunLoop(int print_fd, int device_fd, int snmp_fd,
|
D | network.c | 109 int device_fd, /* I - Device file or -1 */ in backendNetworkSideCB() argument 133 if (device_fd < 0) in backendNetworkSideCB() 135 else if (backendDrainOutput(print_fd, device_fd)) in backendNetworkSideCB() 306 data[0] = device_fd != -1; in backendNetworkSideCB()
|
/external/libbrillo/brillo/blkdev_utils/ |
D | loop_device.cc | 44 base::ScopedFD device_fd( in LoopDeviceIoctl() local 47 if (!device_fd.is_valid()) { in LoopDeviceIoctl() 52 int rc = ioctl(device_fd.get(), type, arg); in LoopDeviceIoctl()
|
/external/f2fs-tools/tools/sg_write_buffer/include/ |
D | sg_pt.h | 42 int scsi_pt_close_device(int device_fd);
|
D | sg_cmds_basic.h | 277 int sg_cmds_close_device(int device_fd);
|
/external/f2fs-tools/tools/sg_write_buffer/ |
D | sg_cmds_basic.c | 111 sg_cmds_close_device(int device_fd) in sg_cmds_close_device() argument 113 return scsi_pt_close_device(device_fd); in sg_cmds_close_device()
|
D | sg_pt_linux.c | 382 scsi_pt_close_device(int device_fd) in scsi_pt_close_device() argument 386 res = close(device_fd); in scsi_pt_close_device()
|