Lines Matching defs:ret

357 	int ret;
422 if ((ret = pcp_send_req_msg_hdr(req_msg_hdr))) {
424 return (ret);
431 if ((ret = pcp_io_op(datap, req_msg->msg_len,
433 return (ret);
456 if ((ret = pcp_recv_resp_msg_hdr(resp_msg_hdr))) {
457 return (ret);
503 if ((ret = pcp_io_op(resp_msg_data, resp_msg_hdr->msg_len,
506 return (ret);
546 int ret;
554 if ((ret = ioctl(channel_fd, GLVC_XPORT_IOCTL_OPT_OP,
558 return (ret);
639 int ret;
667 if ((ret = ioctl(chnl_fd, GLVC_XPORT_IOCTL_DATA_PEEK, &peek_ctrl))
670 return (ret);
695 int ret;
705 if ((ret = write(chnl_fd, buf, byte_cnt)) < 0) {
707 return (ret);
711 if ((ret = vldc_write(chnl_fd, buf, byte_cnt)) <= 0) {
712 return (ret);
716 return (ret);
733 int ret;
784 if ((ret = read(chnl_fd, read_tail, m)) < 0) {
786 return (ret);
795 if ((ret = vldc_read(chnl_fd,
797 return (ret);
800 read_tail += ret;
821 int ret;
862 if ((ret = vldc_read(chnl_fd,
864 return (ret);
866 read_tail += ret;
951 int ret;
970 if ((ret = pcp_io_op((char *)hdrp, hdr_sz, PCPL_IO_OP_WRITE)) != 0) {
972 return (ret);
995 int ret;
1008 ret = pcp_frame_error_handle();
1010 ret = pcp_vldc_frame_error_handle();
1012 if (ret != 0)
1016 if ((ret = pcp_io_op(&magic_num, sizeof (magic_num),
1018 return (ret);
1028 if ((ret = pcp_io_op(&proto_ver, sizeof (proto_ver),
1030 return (ret);
1039 if ((ret = pcp_io_op(&msg_type, sizeof (msg_type),
1041 return (ret);
1045 if ((ret = pcp_io_op(&sub_type, sizeof (sub_type),
1047 return (ret);
1051 if ((ret = pcp_io_op(&rsvd_pad, sizeof (rsvd_pad),
1053 return (ret);
1057 if ((ret = pcp_io_op(&xid, sizeof (xid),
1059 return (ret);
1065 if ((ret = pcp_io_op(&timeout, sizeof (timeout),
1067 return (ret);
1073 if ((ret = pcp_io_op(&msg_len, sizeof (msg_len),
1075 return (ret);
1081 if ((ret = pcp_io_op(&status, sizeof (status),
1083 return (ret);
1089 if ((ret = pcp_io_op(&msg_cksum, sizeof (msg_cksum),
1091 return (ret);
1097 if ((ret = pcp_io_op(&hdr_cksum, sizeof (hdr_cksum),
1099 return (ret);
1130 uint32_t ret;
1149 ret = msg_xid++;
1152 if (ret == 0)
1153 ret = msg_xid++;
1155 return (ret);
1251 int ret, i;
1254 if ((ret = pcp_peek_read(buf, byte_cnt)) < 0) {
1255 return (ret);
1259 if (ret != byte_cnt) {
1316 int ret;
1344 if ((ret = ioctl(channel_fd, GLVC_XPORT_IOCTL_DATA_PEEK,
1364 if ((ret = read(channel_fd, buf, n)) < 0) {
1373 return (ret);