Lines Matching refs:used
50 if (buf->used % 3 == 0) {
51 crc = crc32_data_more(crc, buf->data, buf->used);
52 base64_encode(buf->data, buf->used, output);
58 crc = crc32_data_more(crc, buf->data, buf->used);
60 base64_encode(buf->data, buf->used, output);
69 if ((buf->used-4) % V0_MAILBOX_SIZE != 0 ||
70 le32_to_cpu_unaligned(data + buf->used-4) != crc32_data(data, buf->used-4))
95 if (buf->used == 4 && le32_to_cpu_unaligned(data) == 0) {
99 if (buf->used < 8) {
104 if ((buf->used-8) % MAILBOX_SIZE != 0) {
109 if (le32_to_cpu_unaligned(data + buf->used-4) != crc32_data(data, buf->used-4)) {
114 count = (buf->used-8) / MAILBOX_SIZE;