Lines Matching refs:value
76 static inline void hpi_write_reg(struct c67x00_device *dev, int reg, u16 value) in hpi_write_reg() argument
79 __raw_writew(value, dev->hpi.base + reg * dev->hpi.regstep); in hpi_write_reg()
90 u16 value; in hpi_read_word() local
94 value = hpi_read_word_nolock(dev, reg); in hpi_read_word()
97 return value; in hpi_read_word()
100 static void hpi_write_word_nolock(struct c67x00_device *dev, u16 reg, u16 value) in hpi_write_word_nolock() argument
103 hpi_write_reg(dev, HPI_DATA, value); in hpi_write_word_nolock()
106 static void hpi_write_word(struct c67x00_device *dev, u16 reg, u16 value) in hpi_write_word() argument
111 hpi_write_word_nolock(dev, reg, value); in hpi_write_word()
152 u16 value; in hpi_set_bits() local
156 value = hpi_read_word_nolock(dev, reg); in hpi_set_bits()
157 hpi_write_word_nolock(dev, reg, value | mask); in hpi_set_bits()
163 u16 value; in hpi_clear_bits() local
167 value = hpi_read_word_nolock(dev, reg); in hpi_clear_bits()
168 hpi_write_word_nolock(dev, reg, value & ~mask); in hpi_clear_bits()
174 u16 value; in hpi_recv_mbox() local
178 value = hpi_read_reg(dev, HPI_MAILBOX); in hpi_recv_mbox()
181 return value; in hpi_recv_mbox()
184 static u16 hpi_send_mbox(struct c67x00_device *dev, u16 value) in hpi_send_mbox() argument
189 hpi_write_reg(dev, HPI_MAILBOX, value); in hpi_send_mbox()
192 return value; in hpi_send_mbox()
197 u16 value; in c67x00_ll_hpi_status() local
201 value = hpi_read_reg(dev, HPI_STATUS); in c67x00_ll_hpi_status()
204 return value; in c67x00_ll_hpi_status()
299 void c67x00_ll_set_husb_eot(struct c67x00_device *dev, u16 value) in c67x00_ll_set_husb_eot() argument
302 hpi_write_word(dev, HUSB_pEOT, value); in c67x00_ll_set_husb_eot()