Lines Matching refs:cnt
175 #define sxi(inst, a, b, d, cnt) \
177 sx_write(sc->sc_sx, SX_INSTRUCTIONS, inst((a), (b), (d), (cnt)))
1274 int line, cnt, pre, words;
1290 cnt = wi;
1294 cnt -= pre;
1297 while(cnt > 3) {
1298 words = uimin(32, cnt >> 2);
1301 cnt -= words << 2;
1304 if (cnt > 0)
1305 sxm(SX_STBS, pptr, 8, cnt - 1);
1337 int line, cnt, pre, words, pwrds = 0, post, reg;
1358 cnt = words - pwrds;
1370 if (cnt > 0) {
1372 /* XXX handle cnt > 16 */
1373 sxi(SX_ROP, reg, reg, reg + 32, cnt - 1);
1374 reg += cnt;
1387 cg14_slurp(int reg, uint32_t addr, int cnt)
1390 while (cnt > 0) {
1391 num = uimin(32, cnt);
1393 cnt -= num;
1400 cg14_spit(int reg, uint32_t addr, int cnt)
1403 while (cnt > 0) {
1404 num = uimin(32, cnt);
1406 cnt -= num;
1418 int line, cnt, stride = sc->sc_fb.fb_type.fb_width;
1438 cnt = wi;
1442 cnt -= pre;
1446 words = cnt >> 2;
1447 while(cnt > 3) {
1453 cnt -= num << 2;
1455 if (cnt > 0) {
1456 sxm(SX_LDB, sptr, 32, cnt - 1);
1457 sxm(SX_STB, dptr, 32, cnt - 1);
1468 cnt = wi;
1469 while(cnt > 31) {
1474 cnt -= 32;
1476 if (cnt > 0) {
1477 sxm(SX_LDB, sptr, 32, cnt - 1);
1478 sxm(SX_STB, dptr, 32, cnt - 1);
1499 int line, cnt = wi, stride = sc->sc_fb.fb_type.fb_width;
1515 cnt -= in;
1518 q = cnt >> 2;
1519 out = cnt & 3;
1677 int i, j, x, y, wi, he, r, g, b, aval, cnt, reg;
1755 cnt = wi;
1761 cnt -= in;
1763 q = cnt >> 2; /* number of writes we can do in quads */
1767 cnt -= (q << 2);
1770 if (cnt > 0) {
1771 sxm(SX_STB, next, reg, cnt - 1);