Lines Matching refs:tbytes
1520 int tbytes = sas << sector_1k;
1525 tbytes = max(0, tbytes - (int)ctrl->max_oob);
1526 tbytes = min_t(int, tbytes, ctrl->max_oob);
1528 for (j = 0; j < tbytes; j++)
1530 return tbytes;
1543 int tbytes = sas << sector_1k;
1550 tbytes = max(0, tbytes - (int)ctrl->max_oob);
1551 tbytes = min_t(int, tbytes, ctrl->max_oob);
1554 * tbytes may not be multiple of words. Make sure we don't read out of
1557 for (j = 0; (j + 3) < tbytes; j += 4)
1565 while (j < tbytes)
1568 if (tbytes & 0x3)
1569 oob_reg_write(ctrl, (tbytes & ~0x3), (__force u32)cpu_to_be32(last));
1571 return tbytes;