Lines Matching refs:val

213 static __inline u_int8_t b1io_outp(iavc_softc_t *sc, int off, u_int8_t val)
215 bus_space_write_1(sc->sc_io_bt, sc->sc_io_bh, off, val);
222 u_int8_t val = bus_space_read_1(sc->sc_io_bt, sc->sc_io_bh, B1_INSTAT);
223 return (val & 0x01);
228 u_int8_t val = bus_space_read_1(sc->sc_io_bt, sc->sc_io_bh, B1_OUTSTAT);
229 return (val & 0x01);
254 static __inline int b1io_put_byte(iavc_softc_t *sc, u_int8_t val)
261 bus_space_write_1(sc->sc_io_bt, sc->sc_io_bh, B1_WRITE, val);
268 static __inline int b1io_save_put_byte(iavc_softc_t *sc, u_int8_t val)
275 b1io_outp(sc, B1_WRITE, val);
284 u_int32_t val = 0;
285 val |= b1io_get_byte(sc);
286 val |= (b1io_get_byte(sc) << 8);
287 val |= (b1io_get_byte(sc) << 16);
288 val |= (b1io_get_byte(sc) << 24);
289 return val;
292 static __inline void b1io_put_word(iavc_softc_t *sc, u_int32_t val)
294 b1io_put_byte(sc, (val & 0xff));
295 b1io_put_byte(sc, (val >> 8) & 0xff);
296 b1io_put_byte(sc, (val >> 16) & 0xff);
297 b1io_put_byte(sc, (val >> 24) & 0xff);
327 static __inline u_int32_t b1io_write_reg(iavc_softc_t *sc, int reg, u_int32_t val)
331 b1io_put_word(sc, val);
341 static __inline void t1io_outp(iavc_softc_t *sc, int off, u_int8_t val)
343 bus_space_write_1(sc->sc_io_bt, sc->sc_io_bh, off, val);
458 #define iavc_write_reg(sc, reg, val) b1io_write_reg(sc, reg, val)
462 #define iavc_write_port(sc, port, val) \
463 bus_space_write_1(sc->sc_io_bt, sc->sc_io_bh, (port), (val))
469 #define iavc_put_byte(sc, val) b1io_put_byte(sc, val)
471 #define iavc_put_word(sc, val) b1io_put_word(sc, val)