Lines Matching defs:total_size
185 unsigned long total_size, data_size, ext_table_size;
188 total_size = get_totalsize(mc_header);
190 if (data_size + MC_HEADER_SIZE > total_size) {
201 ext_table_size = total_size - (MC_HEADER_SIZE + data_size);
269 unsigned long total_size = get_totalsize(mc_header);
278 if (total_size <= get_datasize(mc_header) + MC_HEADER_SIZE)
296 new_mc = vmalloc(total_size);
305 memcpy(new_mc, mc, total_size);
357 unsigned long total_size;
366 total_size = get_totalsize(&mc_header);
367 if (offset + total_size > user_buffer_size) {
372 *mc = vmalloc(total_size);
375 if (copy_from_user(*mc, user_buffer + offset, total_size)) {
380 return offset + total_size;
496 unsigned long total_size;
502 total_size = get_totalsize(mc_header);
504 if (offset + total_size > size) {
509 *mc = vmalloc(total_size);
514 memcpy(*mc, buf + offset, total_size);
515 return offset + total_size;