Lines Matching refs:total_size
1028 unsigned long total_size; in smtcfb_read() local
1036 total_size = info->screen_size; in smtcfb_read()
1038 if (total_size == 0) in smtcfb_read()
1039 total_size = info->fix.smem_len; in smtcfb_read()
1041 if (p >= total_size) in smtcfb_read()
1044 if (count >= total_size) in smtcfb_read()
1045 count = total_size; in smtcfb_read()
1047 if (count + p > total_size) in smtcfb_read()
1048 count = total_size - p; in smtcfb_read()
1105 unsigned long total_size; in smtcfb_write() local
1113 total_size = info->screen_size; in smtcfb_write()
1115 if (total_size == 0) in smtcfb_write()
1116 total_size = info->fix.smem_len; in smtcfb_write()
1118 if (p > total_size) in smtcfb_write()
1121 if (count > total_size) { in smtcfb_write()
1123 count = total_size; in smtcfb_write()
1126 if (count + p > total_size) { in smtcfb_write()
1130 count = total_size - p; in smtcfb_write()