Lines Matching refs:tbytes
1456 int tbytes = sas << sector_1k;
1461 tbytes = max(0, tbytes - (int)ctrl->max_oob);
1462 tbytes = min_t(int, tbytes, ctrl->max_oob);
1464 for (j = 0; j < tbytes; j++)
1466 return tbytes;
1479 int tbytes = sas << sector_1k;
1486 tbytes = max(0, tbytes - (int)ctrl->max_oob);
1487 tbytes = min_t(int, tbytes, ctrl->max_oob);
1490 * tbytes may not be multiple of words. Make sure we don't read out of
1493 for (j = 0; (j + 3) < tbytes; j += 4)
1501 while (j < tbytes)
1504 if (tbytes & 0x3)
1505 oob_reg_write(ctrl, (tbytes & ~0x3), (__force u32)cpu_to_be32(last));
1507 return tbytes;