Lines Matching refs:addr

837 		uint32_t addr, val;
840 addr = le32toh(dest_v1->reg_ops[i].addr);
844 DPRINTF(("%s: op=%u addr=%u val=%u\n", __func__, op, addr, val));
847 IWX_WRITE(sc, addr, val);
850 IWX_SETBITS(sc, addr, (1 << val));
853 IWX_CLRBITS(sc, addr, (1 << val));
856 iwx_write_prph(sc, addr, val);
859 err = iwx_set_bits_prph(sc, addr, (1 << val));
864 err = iwx_clear_bits_prph(sc, addr, (1 << val));
869 if (iwx_read_prph(sc, addr) & (1 << val))
1642 iwx_read_prph_unlocked(struct iwx_softc *sc, uint32_t addr)
1645 IWX_WRITE(sc, IWX_HBUS_TARG_PRPH_RADDR, ((addr & mask) | (3 << 24)));
1651 iwx_read_prph(struct iwx_softc *sc, uint32_t addr)
1654 return iwx_read_prph_unlocked(sc, addr);
1658 iwx_write_prph_unlocked(struct iwx_softc *sc, uint32_t addr, uint32_t val)
1661 IWX_WRITE(sc, IWX_HBUS_TARG_PRPH_WADDR, ((addr & mask) | (3 << 24)));
1667 iwx_write_prph(struct iwx_softc *sc, uint32_t addr, uint32_t val)
1670 iwx_write_prph_unlocked(sc, addr, val);
1674 iwx_write_prph64(struct iwx_softc *sc, uint64_t addr, uint64_t val)
1676 iwx_write_prph(sc, (uint32_t)addr, val & 0xffffffff);
1677 iwx_write_prph(sc, (uint32_t)addr + 4, val >> 32);
1681 iwx_read_umac_prph_unlocked(struct iwx_softc *sc, uint32_t addr)
1683 return iwx_read_prph_unlocked(sc, addr + sc->sc_umac_prph_offset);
1687 iwx_read_umac_prph(struct iwx_softc *sc, uint32_t addr)
1689 return iwx_read_prph(sc, addr + sc->sc_umac_prph_offset);
1693 iwx_write_umac_prph_unlocked(struct iwx_softc *sc, uint32_t addr, uint32_t val)
1695 iwx_write_prph_unlocked(sc, addr + sc->sc_umac_prph_offset, val);
1699 iwx_write_umac_prph(struct iwx_softc *sc, uint32_t addr, uint32_t val)
1701 iwx_write_prph(sc, addr + sc->sc_umac_prph_offset, val);
1705 iwx_read_mem(struct iwx_softc *sc, uint32_t addr, void *buf, int dwords)
1711 IWX_WRITE(sc, IWX_HBUS_TARG_MEM_RADDR, addr);
1722 iwx_write_mem(struct iwx_softc *sc, uint32_t addr, const void *buf, int dwords)
1728 IWX_WRITE(sc, IWX_HBUS_TARG_MEM_WADDR, addr);
1742 iwx_write_mem32(struct iwx_softc *sc, uint32_t addr, uint32_t val)
1744 return iwx_write_mem(sc, addr, &val, 1);
3870 iwx_is_valid_mac_addr(const uint8_t *addr)
3876 return (memcmp(reserved_mac, addr, ETHER_ADDR_LEN) != 0 &&
3877 memcmp(etherbroadcastaddr, addr, sizeof(etherbroadcastaddr)) != 0 &&
3878 memcmp(etheranyaddr, addr, sizeof(etheranyaddr)) != 0 &&
3879 !ETHER_IS_MULTICAST(addr));
4433 desc[idx].addr = htole64(data->map->dm_segs[0].ds_addr);
5750 uint64_t addr;
5857 addr = htole64(paddr);
5858 memcpy(&desc->tbs[0].addr, &addr, sizeof(addr));
5862 addr = htole64(paddr + IWX_FIRST_TB_SIZE);
5863 memcpy(&desc->tbs[1].addr, &addr, sizeof(addr));
6333 memcpy(&desc->tbs[0].addr, &paddr, sizeof(paddr));
6339 memcpy(&desc->tbs[1].addr, &paddr, sizeof(paddr));
6349 memcpy(&desc->tbs[i + 2].addr, &paddr, sizeof(paddr));
6662 IEEE80211_ADDR_COPY(&add_sta_cmd.addr,
6665 IEEE80211_ADDR_COPY(&add_sta_cmd.addr,