Lines Matching defs:val
54 rtwn_pci_write_1(struct rtwn_softc *sc, uint16_t addr, uint8_t val)
58 bus_space_write_1(pc->pc_st, pc->pc_sh, addr, val);
64 rtwn_pci_write_2(struct rtwn_softc *sc, uint16_t addr, uint16_t val)
68 val = htole16(val);
69 bus_space_write_2(pc->pc_st, pc->pc_sh, addr, val);
75 rtwn_pci_write_4(struct rtwn_softc *sc, uint16_t addr, uint32_t val)
79 val = htole32(val);
80 bus_space_write_4(pc->pc_st, pc->pc_sh, addr, val);
97 uint16_t val;
99 val = bus_space_read_2(pc->pc_st, pc->pc_sh, addr);
100 return le16toh(val);
107 uint32_t val;
109 val = bus_space_read_4(pc->pc_st, pc->pc_sh, addr);
110 return le32toh(val);