Lines Matching refs:total_size
1034 unsigned long total_size; in smtcfb_read() local
1039 total_size = info->screen_size; in smtcfb_read()
1041 if (total_size == 0) in smtcfb_read()
1042 total_size = info->fix.smem_len; in smtcfb_read()
1044 if (p >= total_size) in smtcfb_read()
1047 if (count >= total_size) in smtcfb_read()
1048 count = total_size; in smtcfb_read()
1050 if (count + p > total_size) in smtcfb_read()
1051 count = total_size - p; in smtcfb_read()
1097 unsigned long total_size; in smtcfb_write() local
1102 total_size = info->screen_size; in smtcfb_write()
1104 if (total_size == 0) in smtcfb_write()
1105 total_size = info->fix.smem_len; in smtcfb_write()
1107 if (p > total_size) in smtcfb_write()
1110 if (count > total_size) { in smtcfb_write()
1112 count = total_size; in smtcfb_write()
1115 if (count + p > total_size) { in smtcfb_write()
1119 count = total_size - p; in smtcfb_write()