Lines Matching refs:rw
911 sgcn_read_header(int rw, cnsram_header *header) in sgcn_read_header() argument
928 if (rw == RW_CONSOLE_READ) { in sgcn_read_header()
933 } else if (rw == RW_CONSOLE_WRITE) { in sgcn_read_header()
945 sgcn_rw(int rw, caddr_t buf, int len) in sgcn_rw() argument
952 rw, buf, len); in sgcn_rw()
959 sgcn_log_error(rw, EINVAL); in sgcn_rw()
964 rv = sgcn_read_header(rw, &header); in sgcn_rw()
966 sgcn_log_error(rw, EIO); in sgcn_rw()
970 sgcn_log_error(rw, EPROTO); in sgcn_rw()
974 if (rw == RW_CONSOLE_READ) in sgcn_rw()
976 else if (rw == RW_CONSOLE_WRITE) in sgcn_rw()
979 sgcn_log_error(rw, EPROTO); in sgcn_rw()
983 if (rw == RW_CONSOLE_READ) in sgcn_rw()
989 else if (rw == RW_CONSOLE_WRITE) in sgcn_rw()
1006 if (rw == RW_CONSOLE_READ) { in sgcn_rw()
1015 } else if (rw == RW_CONSOLE_WRITE) { in sgcn_rw()
1026 sgcn_log_error(rw, EIO); in sgcn_rw()