Lines Matching refs:ans

584 	struct ezusb_packet *ans = urb->transfer_buffer;  in ezusb_request_in_callback()  local
601 if ((ans->ans_reply_count == reply_count) in ezusb_request_in_callback()
602 && (le16_to_cpu(ans->hermes_rid) == c->in_rid)) { in ezusb_request_in_callback()
607 le16_to_cpu(ans->hermes_rid), c->in_rid, in ezusb_request_in_callback()
608 ans->ans_reply_count, reply_count); in ezusb_request_in_callback()
615 le16_to_cpu(ans->hermes_rid)); in ezusb_request_in_callback()
622 ctx->buf = (void *) ans; in ezusb_request_in_callback()
945 struct ezusb_packet *ans = ctx->buf; in ezusb_access_ltv() local
948 if (ans->hermes_len != 0) in ezusb_access_ltv()
949 exp_len = le16_to_cpu(ans->hermes_len) * 2 + 12; in ezusb_access_ltv()
962 memcpy(ans_buff, ans->data, min(exp_len, ans_size)); in ezusb_access_ltv()
964 *ans_length = le16_to_cpu(ans->hermes_len); in ezusb_access_ltv()
1082 struct ezusb_packet *ans = (void *) upriv->read_urb->transfer_buffer; in ezusb_bap_pread() local
1086 if ((sizeof(*ans) + offset + len) > actual_length) { in ezusb_bap_pread()
1091 memcpy(buf, ans->data + offset, len); in ezusb_bap_pread()
1097 if ((sizeof(*ans) + offset + len - 4) > actual_length) { in ezusb_bap_pread()
1102 memcpy(buf, ans->data + offset - 4, len); in ezusb_bap_pread()
1428 struct ezusb_packet *ans = urb->transfer_buffer; in ezusb_bulk_in_callback() local
1457 if (urb->actual_length < sizeof(*ans)) { in ezusb_bulk_in_callback()
1461 crc = build_crc(ans); in ezusb_bulk_in_callback()
1462 if (le16_to_cpu(ans->crc) != crc) { in ezusb_bulk_in_callback()
1467 hermes_rid = le16_to_cpu(ans->hermes_rid); in ezusb_bulk_in_callback()
1479 le16_to_cpu(ans->hermes_rid)); in ezusb_bulk_in_callback()