Lines Matching refs:size
84 size_t size;
224 size_t size;
229 size = 5; /* first get only 5 bytes to get size of
231 set_inquiry_return_size (inquiry.cmd, size);
232 status = sanei_scsi_cmd (sfd, inquiry.cmd, inquiry.size, buffer, &size);
237 size = get_scsi_inquiry_additional_length (buffer) + 5;
239 /* then get inquiry with actual size */
240 set_inquiry_return_size (inquiry.cmd, size);
241 status = sanei_scsi_cmd (sfd, inquiry.cmd, inquiry.size, buffer, &size);
415 int size = 2;
431 size, 1000) < 0)
444 size = sd->bLength;
446 buffer = calloc (1, size + 1);
456 size, 1000) < 0)
463 if (sd->bLength < 2 || sd->bLength > size
470 size = sd->bLength - 2;
471 for (i = 0; i < (size / 2); i++)
768 int size;
788 size = short_buffer[0];
790 buffer = calloc (1, size + 1);
795 buffer, size);
804 if ((buffer[0] < 2) || (buffer[0] > size) /* descriptor length */
811 size = buffer[0] - 2;
812 for (i = 0; i < (size / 2); i++)