Lines Matching defs:b_count

232  * A b_count of 0 means byte mode, b_count > 0 gets block mode.
233 * A b_count of >= 512 would mean infinitive block transfer, which would become
234 * b_count = 0, is not yet supported.
235 * For b_count == 0, blksz is the len of bytes, otherwise it is the amount of
243 bool wr, uint8_t *buffer, bool incaddr, uint32_t b_count, uint16_t blksz)
255 ("%s(fn=%d addr=%#0x wr=%d b_count=%u blksz=%u buf=%p incr=%d)\n",
256 __func__, fn, addr, wr, b_count, blksz, buffer, incaddr));
258 KASSERT((b_count <= 511), ("%s: infinitive block transfer not yet "
259 "supported: b_count %u blksz %u, sc %p, fn %u, addr %#10x, %s, "
260 "buffer %p, %s\n", __func__, b_count, blksz, sc, fn, addr,
265 "buffer %p, %s, b_count %u\n", __func__, blksz,
268 b_count));
269 if (b_count == 0) {
278 if (b_count > 511) {
280 b_count = 0;
283 len = b_count * blksz;
284 arg = SD_IOE_RW_BLK | SD_IOE_RW_LEN(b_count);
298 mmcd.block_count = b_count;
310 if (b_count == 0) {
326 if (b_count != 1)
336 "%s b_count %u blksz %u error=%d\n",
339 b_count, blksz, error);
343 "%s b_count %u blksz %u error=%d\n",
346 b_count, blksz, error));
357 "%s b_count %u blksz %u mmcio resp error=%d\n",
360 b_count, blksz, error);
364 "%s b_count %u blksz %u mmcio resp error=%d\n",
367 b_count, blksz, error));
378 uint32_t b_count;
386 b_count = size / sc->cardinfo.f[fn].cur_blksize;
387 KASSERT(b_count >= 1, ("%s: block count too small %u size %u "
388 "cur_blksize %u\n", __func__, b_count, size,
392 /* XXX support inifinite transfer with b_count = 0. */
394 if (b_count > 511)
395 b_count = 511;
397 len = b_count * sc->cardinfo.f[fn].cur_blksize;
399 b_count, sc->cardinfo.f[fn].cur_blksize);