Lines Matching refs:ene_read_reg
42 static u8 ene_read_reg(struct ene_device *dev, u16 reg) in ene_read_reg() function
93 chip_major = ene_read_reg(dev, ENE_ECVER_MAJOR); in ene_hw_detect()
94 chip_minor = ene_read_reg(dev, ENE_ECVER_MINOR); in ene_hw_detect()
97 hw_revision = ene_read_reg(dev, ENE_ECHV); in ene_hw_detect()
98 old_ver = ene_read_reg(dev, ENE_HW_VER_OLD); in ene_hw_detect()
100 dev->pll_freq = (ene_read_reg(dev, ENE_PLLFRH) << 4) + in ene_hw_detect()
101 (ene_read_reg(dev, ENE_PLLFRL) >> 4); in ene_hw_detect()
139 fw_reg1 = ene_read_reg(dev, ENE_FW1); in ene_hw_detect()
140 fw_reg2 = ene_read_reg(dev, ENE_FW2); in ene_hw_detect()
190 tmp = ene_read_reg(dev, ENE_FW_SAMPLE_BUFFER); in ene_rx_setup_hw_buffer()
191 tmp |= ene_read_reg(dev, ENE_FW_SAMPLE_BUFFER+1) << 8; in ene_rx_setup_hw_buffer()
194 dev->extra_buf1_len = ene_read_reg(dev, ENE_FW_SAMPLE_BUFFER + 2); in ene_rx_setup_hw_buffer()
196 tmp = ene_read_reg(dev, ENE_FW_SAMPLE_BUFFER + 3); in ene_rx_setup_hw_buffer()
197 tmp |= ene_read_reg(dev, ENE_FW_SAMPLE_BUFFER + 4) << 8; in ene_rx_setup_hw_buffer()
200 dev->extra_buf2_len = ene_read_reg(dev, ENE_FW_SAMPLE_BUFFER + 5); in ene_rx_setup_hw_buffer()
260 dev->w_pointer = ene_read_reg(dev, ENE_FW_RX_POINTER); in ene_rx_read_hw_pointer()
262 dev->w_pointer = ene_read_reg(dev, ENE_FW2) in ene_rx_read_hw_pointer()
320 int period = ene_read_reg(dev, ENE_CIRCAR_PRD); in ene_rx_sense_carrier()
321 int hperiod = ene_read_reg(dev, ENE_CIRCAR_HPRD); in ene_rx_sense_carrier()
473 reg_value = ene_read_reg(dev, ENE_IRQ) & 0xF0; in ene_rx_enable_hw()
575 u8 conf1 = ene_read_reg(dev, ENE_CIRCFG); in ene_tx_enable()
576 u8 fwreg2 = ene_read_reg(dev, ENE_FW2); in ene_tx_enable()
681 fw_flags2 = ene_read_reg(dev, ENE_FW2); in ene_irq_status()
684 irq_status = ene_read_reg(dev, ENEB_IRQ_STATUS); in ene_irq_status()
693 irq_status = ene_read_reg(dev, ENE_IRQ); in ene_irq_status()
708 fw_flags1 = ene_read_reg(dev, ENE_FW1); in ene_irq_status()
769 hw_value = ene_read_reg(dev, reg); in ene_isr()
776 hw_value |= ene_read_reg(dev, reg + offset) << 8; in ene_isr()