Lines Matching refs:size_t

291 static size_t
294 size_t size, max_size = 0;
398 test_device->val[opt_mode].s = malloc ((size_t) od->size);
465 test_device->val[opt_three_pass_order].s = malloc ((size_t) od->size);
494 test_device->val[opt_scan_source].s = malloc ((size_t) od->size);
530 test_device->val[opt_test_picture].s = malloc ((size_t) od->size);
625 test_device->val[opt_read_status_code].s = malloc ((size_t) od->size);
1176 test_device->val[opt_string].s = malloc ((size_t) od->size);
1195 test_device->val[opt_string_constraint_string_list].s = malloc ((size_t) od->size);
1216 malloc ((size_t) od->size);
1439 size_t byte_count = 0;
1440 size_t bytes_total;
1443 size_t buffer_size = 0, write_count = 0;
1448 bytes_total = (size_t) test_device->lines * (size_t) test_device->bytes_per_line;
1461 if (byte_count + (size_t) write_count > bytes_total)
1462 write_count = (size_t) bytes_total - (size_t) byte_count;
1474 byte_count += (size_t) bytes_written;
1477 write_count -= (size_t) bytes_written;
1845 malloc ((size_t) (init_number_of_devices + 1) * sizeof (sane_device));
2346 (size_t) test_device->opt[option].size);
2584 (size_t) test_device->opt[option].size);
2876 size_t read_count;
2877 size_t bytes_total = (size_t) test_device->lines * (size_t) test_device->bytes_per_line;
2962 read_count = (size_t) max_scan_length;
2966 || ((size_t) bytes_read + (size_t) test_device->bytes_total >= bytes_total))
3002 test_device->bytes_total += (size_t) bytes_read;
3004 DBG (2, "sane_read: read %zu bytes of %zu, total %zu\n", (size_t) bytes_read,
3005 (size_t) max_scan_length, (size_t) test_device->bytes_total);