Lines Matching refs:fd

64 static int _t_adjust_state(int fd, int instate);
65 static int _t_alloc_bufs(int fd, struct _ti_user *tiptr,
74 _t_checkfd(int fd, int force_sync, int api_semantics)
80 if (fd < 0) {
86 if ((tiptr = find_tilink(fd)) != NULL) {
100 retval = ioctl(fd, I_FIND, "timod");
131 retval = ioctl(fd, I_PUSH, "timod");
152 tiptr = _t_create(fd, NULL, api_semantics, NULL);
162 (void) ioctl(fd, I_POP, 0);
310 _t_is_event(int fd, struct _ti_user *tiptr)
315 if ((retval = ioctl(fd, I_NREAD, &size)) < 0) {
332 _t_is_ok(int fd, struct _ti_user *tiptr, t_scalar_t type)
364 cntlflag = fcntl(fd, F_GETFL, 0);
366 (void) fcntl(fd, F_SETFL, cntlflag & ~(O_NDELAY | O_NONBLOCK));
370 while ((retval = getmsg(fd, &ctlbuf, &databuf, &flags)) < 0) {
374 (void) fcntl(fd, F_SETFL, cntlflag);
382 (void) fcntl(fd, F_SETFL, cntlflag);
393 (void) fcntl(fd, F_SETFL, cntlflag);
400 (void) fcntl(fd, F_SETFL, cntlflag);
436 if ((retval = ioctl(fd, I_NREAD, &size)) < 0) {
471 _t_do_ioctl(int fd, char *buf, int size, int cmd, int *retlenp)
481 if ((retval = ioctl(fd, I_STR, &strioc)) < 0) {
502 _t_alloc_bufs(int fd, struct _ti_user *tiptr, struct T_info_ack *tsap)
838 _t_create(int fd, struct t_info *info, int api_semantics, int *t_capreq_failed)
890 rval = _t_do_ioctl(fd, (char *)ioctlbuf,
960 ntiptr = add_tilink(fd);
971 if (_t_alloc_bufs(fd, ntiptr, tiap) < 0) {
973 (void) _t_delete_tilink(fd);
1017 if ((rstate = _t_adjust_state(fd, T_IDLE)) < 0) {
1019 (void) _t_delete_tilink(fd);
1036 if ((rstate = _t_adjust_state(fd, T_DATAXFER)) < 0) {
1038 (void) _t_delete_tilink(fd);
1051 if ((rstate = _t_adjust_state(fd, T_INREL)) < 0) {
1053 (void) _t_delete_tilink(fd);
1062 (void) _t_delete_tilink(fd);
1072 rval = _t_do_ioctl(fd, ioctlbuf,
1078 (void) _t_delete_tilink(fd);
1092 (void) _t_delete_tilink(fd);
1109 _t_adjust_state(int fd, int instate)
1130 if ((retval = ioctl(fd, I_PEEK, &arg)) < 0) {
1444 _t_expinline_queued(int fd, int *expedited_queuedp)
1462 rval = _t_do_ioctl(fd, ioctlbuf,
1639 _t_do_postconn_sync(int fd, struct _ti_user *tiptr)
1659 rval = _t_do_ioctl(fd, (char *)ioctlbuf,