/openbmc/linux/drivers/net/can/sja1000/ |
H A D | sja1000.c | 95 priv->read_reg(priv, SJA1000_SR); in sja1000_write_cmdreg() 134 status = priv->read_reg(priv, SJA1000_MOD); in set_reset_mode() 169 status = priv->read_reg(priv, SJA1000_MOD); in set_normal_mode() 221 priv->read_reg(priv, SJA1000_ECC); in sja1000_start() 224 priv->read_reg(priv, SJA1000_IR); in sja1000_start() 354 fi = priv->read_reg(priv, SJA1000_FI); in sja1000_rx() 422 txerr = priv->read_reg(priv, SJA1000_TXERR); in sja1000_err() 423 rxerr = priv->read_reg(priv, SJA1000_RXERR); in sja1000_err() 465 ecc = priv->read_reg(priv, SJA1000_ECC); in sja1000_err() 503 alc = priv->read_reg(priv, SJA1000_ALC); in sja1000_err() [all …]
|
H A D | sja1000_platform.c | 101 priv->read_reg = sp_technologic_read_reg16; in sp_technologic_init() 122 priv->read_reg = sp_read_reg32; in sp_populate() 126 priv->read_reg = sp_read_reg16; in sp_populate() 131 priv->read_reg = sp_read_reg8; in sp_populate() 148 priv->read_reg = sp_read_reg32; in sp_populate_of() 152 priv->read_reg = sp_read_reg16; in sp_populate_of() 157 priv->read_reg = sp_read_reg8; in sp_populate_of()
|
H A D | plx_pci.c | 420 if ((priv->read_reg(priv, REG_CR) & REG_CR_BASICCAN_INITIAL_MASK) == in plx_pci_check_sja1000() 422 (priv->read_reg(priv, SJA1000_SR) == REG_SR_BASICCAN_INITIAL) && in plx_pci_check_sja1000() 423 (priv->read_reg(priv, SJA1000_IR) == REG_IR_BASICCAN_INITIAL)) in plx_pci_check_sja1000() 433 if (priv->read_reg(priv, SJA1000_MOD) == REG_MOD_PELICAN_INITIAL && in plx_pci_check_sja1000() 434 priv->read_reg(priv, SJA1000_SR) == REG_SR_PELICAN_INITIAL && in plx_pci_check_sja1000() 435 priv->read_reg(priv, SJA1000_IR) == REG_IR_PELICAN_INITIAL) in plx_pci_check_sja1000() 685 priv->read_reg = plx_pci_read_reg; in plx_pci_add_card()
|
/openbmc/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-gpio.c | 101 curout = read_reg(IVTV_REG_GPIO_OUT); in ivtv_reset_ir_gpio() 102 curdir = read_reg(IVTV_REG_GPIO_DIR); in ivtv_reset_ir_gpio() 125 curout = read_reg(IVTV_REG_GPIO_OUT); in ivtv_reset_tuner_gpio() 165 write_reg((read_reg(IVTV_REG_GPIO_OUT) & ~mask) | (data & mask), IVTV_REG_GPIO_OUT); in subdev_s_clock_freq() 175 if (mask == 0 || (read_reg(IVTV_REG_GPIO_IN) & mask)) in subdev_g_tuner() 206 write_reg((read_reg(IVTV_REG_GPIO_OUT) & ~mask) | (data & mask), IVTV_REG_GPIO_OUT); in subdev_s_tuner() 218 write_reg((read_reg(IVTV_REG_GPIO_OUT) & ~mask) | (data & mask), IVTV_REG_GPIO_OUT); in subdev_s_radio() 259 write_reg((read_reg(IVTV_REG_GPIO_OUT) & ~mask) | in subdev_s_ctrl() 272 read_reg(IVTV_REG_GPIO_DIR), read_reg(IVTV_REG_GPIO_OUT), in subdev_log_status() 273 read_reg(IVTV_REG_GPIO_IN)); in subdev_log_status() [all …]
|
H A D | ivtv-yuv.c | 852 yi->reg_2834 = read_reg(0x02834); in ivtv_yuv_init() 853 yi->reg_2838 = read_reg(0x02838); in ivtv_yuv_init() 854 yi->reg_283c = read_reg(0x0283c); in ivtv_yuv_init() 855 yi->reg_2840 = read_reg(0x02840); in ivtv_yuv_init() 856 yi->reg_2844 = read_reg(0x02844); in ivtv_yuv_init() 857 yi->reg_2848 = read_reg(0x02848); in ivtv_yuv_init() 858 yi->reg_2854 = read_reg(0x02854); in ivtv_yuv_init() 859 yi->reg_285c = read_reg(0x0285c); in ivtv_yuv_init() 860 yi->reg_2864 = read_reg(0x02864); in ivtv_yuv_init() 861 yi->reg_2870 = read_reg(0x02870); in ivtv_yuv_init() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/igb/ |
H A D | e1000_phy.c | 64 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id() 70 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igb_get_phy_id() 794 ret_val = phy->ops.read_reg(hw, in igb_copper_link_setup_igp() 940 ret_val = phy->ops.read_reg(hw, PHY_1000T_CTRL, in igb_phy_setup_autoneg() 1401 if (!(hw->phy.ops.read_reg)) in igb_set_d3_lplu_state() 1420 ret_val = phy->ops.read_reg(hw, in igb_set_d3_lplu_state() 1433 ret_val = phy->ops.read_reg(hw, in igb_set_d3_lplu_state() 1571 ret_val = phy->ops.read_reg(hw, offset, &data); in igb_check_polarity_igp() 2052 if (!(hw->phy.ops.read_reg)) in igb_phy_sw_reset() 2387 hw->phy.ops.read_reg(hw, PHY_CONTROL, &mii_reg); in igb_power_up_phy_copper() [all …]
|
/openbmc/linux/drivers/mtd/nand/onenand/ |
H A D | onenand_omap2.c | 170 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait() 174 ctrl = read_reg(c, ONENAND_REG_CTRL_STATUS); in omap2_onenand_wait() 188 syscfg = read_reg(c, ONENAND_REG_SYS_CFG1); in omap2_onenand_wait() 193 syscfg = read_reg(c, ONENAND_REG_SYS_CFG1); in omap2_onenand_wait() 200 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait() 219 intr = read_reg(c, in omap2_onenand_wait() 224 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait() 233 syscfg = read_reg(c, ONENAND_REG_SYS_CFG1); in omap2_onenand_wait() 240 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait() 263 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait() [all …]
|
/openbmc/linux/drivers/macintosh/ |
H A D | therm_windtunnel.c | 174 temp = read_reg( x.thermostat, 0, 2 ); in poll_temp() 180 casetemp = read_reg(x.fan, 0x0b, 1) << 8; in poll_temp() 216 x.r0 = read_reg( x.fan, 0x00, 1 ); in setup_hardware() 217 x.r1 = read_reg( x.fan, 0x01, 1 ); in setup_hardware() 218 x.r20 = read_reg( x.fan, 0x20, 1 ); in setup_hardware() 219 x.r23 = read_reg( x.fan, 0x23, 1 ); in setup_hardware() 220 x.r25 = read_reg( x.fan, 0x25, 1 ); in setup_hardware() 364 if( read_reg(cl, 0x3d, 1) != 0x30 || read_reg(cl, 0x3e, 1) != 0x41 ) in attach_fan() 381 if( (temp=read_reg(cl, 0, 2)) < 0 ) in attach_thermostat() 387 hyst_temp = read_reg(cl, 2, 2); in attach_thermostat() [all …]
|
H A D | therm_adt746x.c | 112 read_reg(struct thermostat* th, int reg) in read_reg() function 135 tmp[1] = read_reg(th, addr); in read_fan_speed() 136 tmp[0] = read_reg(th, addr + 1); in read_fan_speed() 175 manual = read_reg(th, MANUAL_MODE[fan]); in write_fan_speed() 183 manual = read_reg(th, in write_fan_speed() 190 manual = read_reg(th, MANUAL_MODE[fan]); in write_fan_speed() 205 th->temps[i] = read_reg(th, TEMP_REG[i]); in read_sensors() 509 rc = read_reg(th, CONFIG_REG); in probe_thermostat() 528 th->initial_limits[i] = read_reg(th, LIMIT_REG[i]); in probe_thermostat() 539 th->pwm_inv[0] = read_reg(th, MANUAL_MODE[0]) & INVERT_MASK; in probe_thermostat() [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-mmio.c | 162 *bits |= gc->read_reg(gc->reg_set) & set_mask; in bgpio_get_set_multiple() 182 *bits |= gc->read_reg(gc->reg_dat) & *mask; in bgpio_get_multiple() 204 val = gc->read_reg(gc->reg_dat) & readmask; in bgpio_get_multiple_be() 427 gc->read_reg = bgpio_read8; in bgpio_setup_accessors() 432 gc->read_reg = bgpio_read16be; in bgpio_setup_accessors() 435 gc->read_reg = bgpio_read16; in bgpio_setup_accessors() 441 gc->read_reg = bgpio_read32be; in bgpio_setup_accessors() 444 gc->read_reg = bgpio_read32; in bgpio_setup_accessors() 455 gc->read_reg = bgpio_read64; in bgpio_setup_accessors() 638 gc->bgpio_data = gc->read_reg(gc->reg_dat); in bgpio_init() [all …]
|
H A D | gpio-mpc8xxx.c | 68 out_mask = gc->read_reg(mpc8xxx_gc->regs + GPIO_DIR); in mpc8572_gpio_get() 69 val = gc->read_reg(mpc8xxx_gc->regs + GPIO_DAT) & ~out_mask; in mpc8572_gpio_get() 114 mask = gc->read_reg(mpc8xxx_gc->regs + GPIO_IER) in mpc8xxx_gpio_irq_cascade() 115 & gc->read_reg(mpc8xxx_gc->regs + GPIO_IMR); in mpc8xxx_gpio_irq_cascade() 131 gc->read_reg(mpc8xxx_gc->regs + GPIO_IMR) in mpc8xxx_irq_unmask() 146 gc->read_reg(mpc8xxx_gc->regs + GPIO_IMR) in mpc8xxx_irq_mask() 172 gc->read_reg(mpc8xxx_gc->regs + GPIO_ICR) in mpc8xxx_irq_set_type() 180 gc->read_reg(mpc8xxx_gc->regs + GPIO_ICR) in mpc8xxx_irq_set_type() 213 gc->write_reg(reg, (gc->read_reg(reg) & ~(3 << shift)) in mpc512x_irq_set_type() 221 gc->write_reg(reg, (gc->read_reg(reg) & ~(3 << shift)) in mpc512x_irq_set_type() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_phy.c | 38 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id() 44 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id() 75 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link() 86 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link() 114 hw->phy.ops.read_reg(hw, PHY_CONTROL, &mii_reg); in igc_power_up_phy_copper() 131 hw->phy.ops.read_reg(hw, PHY_CONTROL, &mii_reg); in igc_power_down_phy_copper() 237 ret_val = phy->ops.read_reg(hw, PHY_1000T_CTRL, in igc_phy_setup_autoneg() 245 ret_val = phy->ops.read_reg(hw, (STANDARD_AN_REG_MASK << in igc_phy_setup_autoneg() 407 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg() 461 ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_ctrl); in igc_copper_link_autoneg() [all …]
|
/openbmc/linux/drivers/net/can/ |
H A D | xilinx_can.c | 482 priv->read_reg(priv, XCAN_BRPR_OFFSET), in xcan_set_bittiming() 483 priv->read_reg(priv, XCAN_BTR_OFFSET)); in xcan_set_bittiming() 547 priv->read_reg(priv, XCAN_SR_OFFSET)); in xcan_chip_start() 903 data[0] = priv->read_reg(priv, dw_offset); in xcanfd_rx() 1184 fsr = priv->read_reg(priv, XCAN_FSR_OFFSET); in xcan_rx_fifo_get_next_frame() 1204 if (!(priv->read_reg(priv, XCAN_ISR_OFFSET) & in xcan_rx_fifo_get_next_frame() 1257 ier = priv->read_reg(priv, XCAN_IER_OFFSET); in xcan_rx_poll() 1362 isr = priv->read_reg(priv, XCAN_ISR_OFFSET); in xcan_interrupt() 1388 ier = priv->read_reg(priv, XCAN_IER_OFFSET); in xcan_interrupt() 1878 priv->read_reg = xcan_read_reg_le; in xcan_probe() [all …]
|
/openbmc/linux/arch/sh/boards/mach-kfr2r09/ |
H A D | lcd_wqvga.c | 59 static unsigned long read_reg(void *sohandle, in read_reg() function 103 read_reg(sohandle, so); in read_device_code() 106 device_code = ((read_reg(sohandle, so) & 0xff) << 24); in read_device_code() 107 device_code |= ((read_reg(sohandle, so) & 0xff) << 16); in read_device_code() 108 device_code |= ((read_reg(sohandle, so) & 0xff) << 8); in read_device_code() 109 device_code |= (read_reg(sohandle, so) & 0xff); in read_device_code()
|
/openbmc/linux/drivers/media/i2c/ |
H A D | tw2804.c | 125 static int read_reg(struct i2c_client *client, u8 reg, u8 channel) in read_reg() function 171 ctrl->val = read_reg(client, TW2804_REG_GAIN, 0); in tw2804_g_volatile_ctrl() 175 ctrl->val = read_reg(client, TW2804_REG_CHROMA_GAIN, 0); in tw2804_g_volatile_ctrl() 179 ctrl->val = read_reg(client, TW2804_REG_BLUE_BALANCE, 0); in tw2804_g_volatile_ctrl() 183 ctrl->val = read_reg(client, TW2804_REG_RED_BALANCE, 0); in tw2804_g_volatile_ctrl() 199 reg = read_reg(client, addr, state->channel); in tw2804_s_ctrl() 210 reg = read_reg(client, addr, state->channel); in tw2804_s_ctrl() 310 reg = read_reg(client, 0x22, dec->channel); in tw2804_s_video_routing()
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | stv0910.c | 164 static int read_reg(struct stv *state, u16 reg, u8 *val) in read_reg() function 182 status = read_reg(state, reg, &tmp); in write_shared_reg() 194 status = read_reg(state, field >> 16, &old); in write_field() 214 read_reg(state, state->nr ? RSTV0910_P2_##_reg : \ 645 read_reg(state, RSTV0910_P2_NNOSPLHT1 + state->regoff, in get_signal_to_noise() 647 read_reg(state, RSTV0910_P2_NNOSPLHT0 + state->regoff, in get_signal_to_noise() 652 read_reg(state, RSTV0910_P2_NNOSDATAT1 + state->regoff, in get_signal_to_noise() 1146 if (read_reg(state, RSTV0910_MID, &id) < 0) in probe() 1426 read_reg(state, in read_status() 1433 read_reg(state, in read_status() [all …]
|
H A D | lgdt3305.c | 151 #define read_reg(state, reg) \ macro 562 gen_ctrl_3 = read_reg(state, LGDT3305_GEN_CTRL_3); in lgdt3305_sleep() 563 gen_ctrl_4 = read_reg(state, LGDT3305_GEN_CTRL_4); in lgdt3305_sleep() 995 (read_reg(state, LGDT3305_PT_MSE_2) << 8) | in lgdt3305_read_snr() 996 (read_reg(state, LGDT3305_PT_MSE_3) & 0xff); in lgdt3305_read_snr() 1002 (read_reg(state, LGDT3305_EQ_MSE_2) << 8) | in lgdt3305_read_snr() 1003 (read_reg(state, LGDT3305_EQ_MSE_3) & 0xff); in lgdt3305_read_snr() 1009 noise = (read_reg(state, LGDT3305_CR_MSE_1) << 8) | in lgdt3305_read_snr() 1010 (read_reg(state, LGDT3305_CR_MSE_2) & 0xff); in lgdt3305_read_snr() 1070 (read_reg(state, LGDT3305_FEC_PKT_ERR_1) << 8) | in lgdt3305_read_ucblocks() [all …]
|
H A D | stv6111.c | 337 static int read_reg(struct stv *state, u8 reg, u8 *val) in read_reg() function 350 status = read_reg(state, 9, ®val); in wait_for_call_done() 498 read_reg(state, 0x03, &tmp); in set_lof() 503 read_reg(state, 0x08, &tmp); in set_lof() 580 read_reg(state, 2, ®); in get_rf_strength() 582 read_reg(state, 2, ®); in get_rf_strength()
|
/openbmc/linux/drivers/media/radio/ |
H A D | radio-tea5777.c | 218 tea->read_reg = -1; in radio_tea5777_set_freq() 228 if (tea->read_reg != -1) in radio_tea5777_update_read_reg() 242 res = tea->ops->read_reg(tea, &tea->read_reg); in radio_tea5777_update_read_reg() 306 (tea->read_reg & TEA5777_R_FM_STEREO_MASK)) in vidioc_g_tuner() 312 v->signal = (tea->read_reg & TEA5777_R_LEVEL_MASK) >> in vidioc_g_tuner() 316 tea->read_reg = -1; in vidioc_g_tuner() 459 tea->freq = (tea->read_reg & TEA5777_R_FM_PLL_MASK); in vidioc_s_hw_freq_seek() 462 if ((tea->read_reg & TEA5777_R_SFOUND_MASK)) { in vidioc_s_hw_freq_seek() 467 if (tea->read_reg & TEA5777_R_BLIM_MASK) { in vidioc_s_hw_freq_seek() 473 tea->read_reg = -1; in vidioc_s_hw_freq_seek()
|
H A D | radio-tea5777.h | 47 int (*read_reg)(struct radio_tea5777 *tea, u32 *val); member 62 u32 read_reg; member
|
/openbmc/linux/drivers/mtd/nand/raw/brcmnand/ |
H A D | brcmnand.h | 31 u32 (*read_reg)(struct brcmnand_soc *soc, u32 offset); member 76 return soc && soc->ops && soc->ops->read_reg && soc->ops->write_reg; in brcmnand_soc_has_ops() 81 return soc->ops->read_reg(soc, offset); in brcmnand_soc_read()
|
/openbmc/linux/drivers/net/can/c_can/ |
H A D | c_can_pci.c | 91 val = priv->read_reg(priv, index); in c_can_pci_read_reg32() 92 val |= ((u32)priv->read_reg(priv, index + 1)) << 16; in c_can_pci_read_reg32() 192 priv->read_reg = c_can_pci_read_reg_aligned_to_32bit; in c_can_pci_probe() 196 priv->read_reg = c_can_pci_read_reg_aligned_to_16bit; in c_can_pci_probe() 200 priv->read_reg = c_can_pci_read_reg_32bit; in c_can_pci_probe()
|
H A D | c_can_main.c | 243 if (!(priv->read_reg(priv, reg) & IF_COMR_BUSY)) in c_can_obj_update() 400 data = priv->read_reg(priv, dreg); in c_can_read_msg_object() 525 ctrl_save = priv->read_reg(priv, C_CAN_CTRL_REG); in c_can_set_bittiming() 699 reg_err_counter = priv->read_reg(priv, C_CAN_ERR_CNT_REG); in __c_can_get_berr_counter() 731 pend = priv->read_reg(priv, C_CAN_INTPND2_REG); in c_can_do_tx() 864 pend = priv->read_reg(priv, C_CAN_NEWDAT1_REG); in c_can_get_pending() 1073 priv->last_status = priv->read_reg(priv, C_CAN_STS_REG); in c_can_poll() 1140 reg_int = priv->read_reg(priv, C_CAN_INT_REG); in c_can_isr() 1271 val = priv->read_reg(priv, C_CAN_CTRL_EX_REG); in c_can_power_down() 1309 val = priv->read_reg(priv, C_CAN_CTRL_EX_REG); in c_can_power_up() [all …]
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | ili210x.c | 45 int (*read_reg)(struct i2c_client *client, u8 reg, member 127 .read_reg = ili210x_read_reg, 188 .read_reg = ili210x_read_reg, 219 .read_reg = ili210x_read_reg, 295 .read_reg = ili251x_read_reg, 410 error = priv->chip->read_reg(client, REG_FIRMWARE_VERSION, in ili251x_firmware_update_firmware_version() 426 error = priv->chip->read_reg(client, REG_KERNEL_VERSION, in ili251x_firmware_update_kernel_version() 442 error = priv->chip->read_reg(client, REG_PROTOCOL_VERSION, in ili251x_firmware_update_protocol_version() 642 error = priv->chip->read_reg(client, REG_GET_MODE, md, sizeof(md)); in ili251x_switch_ic_mode() 684 error = priv->chip->read_reg(client, REG_IC_BUSY, &data, 1); in ili251x_firmware_busy() [all …]
|
/openbmc/u-boot/board/gdsys/common/ |
H A D | ihs_mdio.c | 26 static inline u16 read_reg(struct udevice *fpga, uint base, uint addr) in read_reg() function 56 val = read_reg(info->fpga, info->base, REG_MDIO_CONTROL); in read_control() 85 val = read_reg(info->fpga, info->base, REG_MDIO_RX_DATA); in read_rx_data()
|