Lines Matching refs:rom
118 rtwn_efuse_read_data(struct rtwn_softc *sc, uint8_t *rom, uint8_t off, in rtwn_efuse_read_data() argument
137 rom[addr] = reg; in rtwn_efuse_read_data()
144 rom[addr + 1] = reg; in rtwn_efuse_read_data()
152 rtwn_dump_rom_contents(struct rtwn_softc *sc, uint8_t *rom, uint16_t size) in rtwn_dump_rom_contents() argument
164 printf("%02X", rom[i]); in rtwn_dump_rom_contents()
171 rtwn_efuse_read(struct rtwn_softc *sc, uint8_t *rom, uint16_t size) in rtwn_efuse_read() argument
182 memset(rom, 0xff, size); in rtwn_efuse_read()
200 RTWN_CHK(rtwn_efuse_read_data(sc, rom, off, msk)); in rtwn_efuse_read()
208 rtwn_dump_rom_contents(sc, rom, size); in rtwn_efuse_read()
224 rtwn_efuse_read_prepare(struct rtwn_softc *sc, uint8_t *rom, uint16_t size) in rtwn_efuse_read_prepare() argument
232 error = rtwn_efuse_read(sc, rom, size); in rtwn_efuse_read_prepare()
243 uint8_t *rom; in rtwn_read_rom() local
246 rom = malloc(sc->efuse_maplen, M_TEMP, M_WAITOK); in rtwn_read_rom()
250 error = rtwn_efuse_read_prepare(sc, rom, sc->efuse_maplen); in rtwn_read_rom()
256 rtwn_parse_rom(sc, rom); in rtwn_read_rom()
259 free(rom, M_TEMP); in rtwn_read_rom()