Lines Matching refs:off
421 #define hermes_read_reg(hw, off) \ argument
422 (ioread16((hw)->iobase + ((off) << (hw)->reg_spacing)))
423 #define hermes_write_reg(hw, off, val) \ argument
424 (iowrite16((val), (hw)->iobase + ((off) << (hw)->reg_spacing)))
469 static inline void hermes_read_words(struct hermes *hw, int off, in hermes_read_words() argument
472 off = off << hw->reg_spacing; in hermes_read_words()
473 ioread16_rep(hw->iobase + off, buf, count); in hermes_read_words()
476 static inline void hermes_write_bytes(struct hermes *hw, int off, in hermes_write_bytes() argument
479 off = off << hw->reg_spacing; in hermes_write_bytes()
480 iowrite16_rep(hw->iobase + off, buf, count >> 1); in hermes_write_bytes()
482 iowrite8(buf[count - 1], hw->iobase + off); in hermes_write_bytes()
485 static inline void hermes_clear_words(struct hermes *hw, int off, in hermes_clear_words() argument
490 off = off << hw->reg_spacing; in hermes_clear_words()
493 iowrite16(0, hw->iobase + off); in hermes_clear_words()