Lines Matching refs:addr
146 sdiob_rw_direct_sc(struct sdiob_softc *sc, uint8_t fn, uint32_t addr, bool wr,
160 ("%s(fn=%d, addr=%#02x, wr=%d, *val=%#02x)\n", __func__,
161 fn, addr, wr, *val));
164 arg = SD_IO_RW_FUNC(fn) | SD_IO_RW_ADR(addr);
182 __func__, (wr) ? "write" : "read", addr, error);
186 __func__, (wr) ? "write" : "read", addr, error));
199 sdio_rw_direct(device_t dev, uint8_t fn, uint32_t addr, bool wr,
207 error = sdiob_rw_direct_sc(sc, fn, addr, wr, val);
213 sdiob_read_direct(device_t dev, uint8_t fn, uint32_t addr, uint8_t *val)
218 error = sdio_rw_direct(dev, fn, addr, false, &v);
226 sdiob_write_direct(device_t dev, uint8_t fn, uint32_t addr, uint8_t val)
229 return (sdio_rw_direct(dev, fn, addr, true, &val));
247 sdiob_rw_extended_cam(struct sdiob_softc *sc, uint8_t fn, uint32_t addr,
260 ("%s(fn=%d addr=%#0x wr=%d b_count=%u blksz=%u buf=%p incr=%d)\n",
261 __func__, fn, addr, wr, b_count, blksz, buffer, incaddr));
264 "supported: b_count %u blksz %u, sc %p, fn %u, addr %#10x, %s, "
265 "buffer %p, %s\n", __func__, b_count, blksz, sc, fn, addr,
269 "%u > bur_blksize %u, sc %p, fn %u, addr %#10x, %s, "
271 sc->cardinfo.f[fn].cur_blksize, sc, fn, addr,
293 arg |= SD_IOE_RW_FUNC(fn) | SD_IOE_RW_ADR(addr);
342 __func__, (wr) ? "write to" : "read from", addr,
349 __func__, (wr) ? "write to" : "read from", addr,
363 __func__, (wr) ? "write to" : "read from", addr,
370 __func__, (wr) ? "write to" : "read from", addr,
378 sdiob_rw_extended_sc(struct sdiob_softc *sc, uint8_t fn, uint32_t addr,
403 error = sdiob_rw_extended_cam(sc, fn, addr, wr, buffer, incaddr,
411 addr += len;
417 error = sdiob_rw_extended_cam(sc, fn, addr, wr, buffer, incaddr,
426 addr += len;
433 sdiob_rw_extended(device_t dev, uint8_t fn, uint32_t addr, bool wr,
441 error = sdiob_rw_extended_sc(sc, fn, addr, wr, size, buffer, incaddr);
447 sdiob_read_extended(device_t dev, uint8_t fn, uint32_t addr, uint32_t size,
451 return (sdiob_rw_extended(dev, fn, addr, false, size, buffer, incaddr));
455 sdiob_write_extended(device_t dev, uint8_t fn, uint32_t addr, uint32_t size,
459 return (sdiob_rw_extended(dev, fn, addr, true, size, buffer, incaddr));
655 sdio_read_direct_sc(struct sdiob_softc *sc, uint8_t fn, uint32_t addr,
661 error = sdiob_rw_direct_sc(sc, fn, addr, false, &v);
673 uint32_t addr;
685 addr = cis_addr;
686 ret = sdio_read_direct_sc(sc, 0, addr++, &tuple_id);
694 ret = sdio_read_direct_sc(sc, 0, addr++, &tuple_len);
705 addr += 2;
708 ret = sdio_read_direct_sc(sc, 0, addr + i, &ch);
730 ret = sdio_read_direct_sc(sc, 0, addr++, &v);
733 ret = sdio_read_direct_sc(sc, 0, addr++, &v);
737 ret = sdio_read_direct_sc(sc, 0, addr++, &v);
740 ret = sdio_read_direct_sc(sc, 0, addr, &v);
754 ret = sdio_read_direct_sc(sc, 0, addr++, &v);
762 addr += 0x0b;
764 ret = sdio_read_direct_sc(sc, 0, addr, &v);
767 ret = sdio_read_direct_sc(sc, 0, addr+1, &v);
791 sdio_get_common_cis_addr(struct sdiob_softc *sc, uint32_t *addr)
815 } else if (error == 0 && addr != NULL)
816 *addr = a;