Lines Matching refs:actual_len
125 int res, actual_len; in send_cmd() local
154 actual_len = kinect_read(udev, ibuf, 0x200); in send_cmd()
155 } while (actual_len == 0); in send_cmd()
156 gspca_dbg(gspca_dev, D_USBO, "Control reply: %d\n", actual_len); in send_cmd()
157 if (actual_len < (int)sizeof(*rhdr)) { in send_cmd()
159 actual_len); in send_cmd()
160 return actual_len < 0 ? actual_len : -EREMOTEIO; in send_cmd()
162 actual_len -= sizeof(*rhdr); in send_cmd()
179 if (le16_to_cpu(rhdr->len) != (actual_len/2)) { in send_cmd()
181 le16_to_cpu(rhdr->len), (int)(actual_len/2)); in send_cmd()
185 if (actual_len > reply_len) { in send_cmd()
187 reply_len, actual_len); in send_cmd()
190 memcpy(replybuf, ibuf+sizeof(*rhdr), actual_len); in send_cmd()
195 return actual_len; in send_cmd()