| /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() 475 ret_val = phy->ops.read_reg(hw, I82580_CFG_REG, &phy_data); in igb_copper_link_setup_82580() 489 ret_val = phy->ops.read_reg(hw, I82580_PHY_CTRL_2, &phy_data); in igb_copper_link_setup_82580() 534 ret_val = phy->ops.read_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); in igb_copper_link_setup_m88() 583 ret_val = phy->ops.read_reg(hw, M88E1000_EXT_PHY_SPEC_CTRL, in igb_copper_link_setup_m88() 636 ret_val = phy->ops.read_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); in igb_copper_link_setup_m88_gen2() 764 ret_val = phy->ops.read_reg(hw, IGP01E1000_PHY_PORT_CTRL, &data); in igb_copper_link_setup_igp() 794 ret_val = phy->ops.read_reg(hw, in igb_copper_link_setup_igp() 808 ret_val = phy->ops.read_reg(hw, PHY_1000T_CTRL, &data); in igb_copper_link_setup_igp() [all …]
|
| /linux/drivers/macintosh/ |
| H A D | therm_windtunnel.c | 139 read_reg( struct i2c_client *cl, int reg, int len ) in read_reg() function 174 temp = read_reg( x.thermostat, 0, 2 ); in poll_temp() 180 casetemp = read_reg(x.fan, 0x0b, 1) << 8; in poll_temp() 181 casetemp |= (read_reg(x.fan, 0x06, 1) & 0x7) << 5; 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() 223 if( (val=read_reg(x.thermostat, 1, 1)) >= 0 ) { in setup_hardware() [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() 376 BUILD_SHOW_FUNC_INT(sensor1_temperature, (read_reg(th, TEMP_REG[1]))) 377 BUILD_SHOW_FUNC_INT(sensor2_temperature, (read_reg(th, TEMP_REG[2]))) 509 rc = read_reg(th, CONFIG_REG); in probe_thermostat() [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-mmio.c | 143 return !!(chip->read_reg(chip->reg_set) & pinmask); in gpio_mmio_get_set() 145 return !!(chip->read_reg(chip->reg_dat) & pinmask); in gpio_mmio_get_set() 165 *bits |= chip->read_reg(chip->reg_set) & set_mask; in gpio_mmio_get_set_multiple() 167 *bits |= chip->read_reg(chip->reg_dat) & get_mask; in gpio_mmio_get_set_multiple() 176 return !!(chip->read_reg(chip->reg_dat) & gpio_mmio_line2mask(gc, gpio)); in gpio_mmio_get() 189 *bits |= chip->read_reg(chip->reg_dat) & *mask; in gpio_mmio_get_multiple() 212 val = chip->read_reg(chip->reg_dat) & readmask; in gpio_mmio_get_multiple_be() 418 if (chip->read_reg(chip->reg_dir_out) & gpio_mmio_line2mask(gc, gpio)) in gpio_mmio_get_dir() 424 if (!(chip->read_reg(chip->reg_dir_in) & gpio_mmio_line2mask(gc, gpio))) in gpio_mmio_get_dir() 466 chip->read_reg = gpio_mmio_read8; in gpio_mmio_setup_accessors() [all …]
|
| /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() 227 ret_val = phy->ops.read_reg(hw, PHY_AUTONEG_ADV, &mii_autoneg_adv_reg); in igc_phy_setup_autoneg() 233 ret_val = phy->ops.read_reg(hw, PHY_1000T_CTRL, in igc_phy_setup_autoneg() 241 ret_val = phy->ops.read_reg(hw, (STANDARD_AN_REG_MASK << in igc_phy_setup_autoneg() 403 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg() [all …]
|
| /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()
|
| /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()
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | stv0910.c | 159 static int read_reg(struct stv *state, u16 reg, u8 *val) in read_reg() function 177 status = read_reg(state, reg, &tmp); in write_shared_reg() 189 status = read_reg(state, field >> 16, &old); in write_field() 209 read_reg(state, state->nr ? RSTV0910_P2_##_reg : \ 472 read_reg(state, RSTV0910_P2_SFR3 + state->regoff, &symb_freq3); in get_cur_symbol_rate() 473 read_reg(state, RSTV0910_P2_SFR2 + state->regoff, &symb_freq2); in get_cur_symbol_rate() 474 read_reg(state, RSTV0910_P2_SFR1 + state->regoff, &symb_freq1); in get_cur_symbol_rate() 475 read_reg(state, RSTV0910_P2_SFR0 + state->regoff, &symb_freq0); in get_cur_symbol_rate() 476 read_reg(state, RSTV0910_P2_TMGREG2 + state->regoff, &tim_offs2); in get_cur_symbol_rate() 477 read_reg(state, RSTV0910_P2_TMGREG1 + state->regoff, &tim_offs1); in get_cur_symbol_rate() [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() 994 noise = ((read_reg(state, LGDT3305_PT_MSE_1) & 0x07) << 16) | in lgdt3305_read_snr() 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() 1001 noise = ((read_reg(state, LGDT3305_EQ_MSE_1) & 0x0f) << 16) | 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() [all …]
|
| H A D | cxd2099.c | 77 static int read_reg(struct cxd *ci, u8 reg, u8 *val) in read_reg() function 218 read_reg(ci, 0x12, &dummy); in cam_mode() 493 read_reg(ci, 0x04, &istat); in campoll() 506 read_reg(ci, 0x01, &slotstat); in campoll() 538 read_reg(ci, 0x01, &slotstat); in poll_slot_status() 558 read_reg(ci, 0x0f, &msb); in read_data() 559 read_reg(ci, 0x10, &lsb); in read_data()
|
| /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
|
| /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, 372 error = priv->chip->read_reg(client, REG_PANEL_INFO, &rs, sizeof(rs)); in ili251x_firmware_update_resolution() 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() 458 error = priv->chip->read_reg(client, REG_GET_MODE, &md, sizeof(md)); in ili251x_firmware_update_ic_mode() [all …]
|
| /linux/drivers/mtd/nand/raw/brcmnand/ |
| H A D | brcmnand.h | 33 u32 (*read_reg)(struct brcmnand_soc *soc, u32 offset); member 78 return soc && soc->ops && soc->ops->read_reg && soc->ops->write_reg; in brcmnand_soc_has_ops() 83 return soc->ops->read_reg(soc, offset); in brcmnand_soc_read()
|
| /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_platform.c | 148 val = priv->read_reg(priv, index); in c_can_plat_read_reg32() 149 val |= ((u32)priv->read_reg(priv, index + 1)) << 16; in c_can_plat_read_reg32() 295 priv->read_reg = c_can_plat_read_reg_aligned_to_32bit; in c_can_plat_probe() 302 priv->read_reg = c_can_plat_read_reg_aligned_to_16bit; in c_can_plat_probe() 311 priv->read_reg = c_can_plat_read_reg_aligned_to_16bit; in c_can_plat_probe()
|
| /linux/drivers/net/can/sja1000/ |
| H A D | plx_pci.c | 419 if ((priv->read_reg(priv, REG_CR) & REG_CR_BASICCAN_INITIAL_MASK) == in plx_pci_check_sja1000() 421 (priv->read_reg(priv, SJA1000_SR) == REG_SR_BASICCAN_INITIAL) && in plx_pci_check_sja1000() 422 (priv->read_reg(priv, SJA1000_IR) == REG_IR_BASICCAN_INITIAL)) in plx_pci_check_sja1000() 432 if (priv->read_reg(priv, SJA1000_MOD) == REG_MOD_PELICAN_INITIAL && in plx_pci_check_sja1000() 433 priv->read_reg(priv, SJA1000_SR) == REG_SR_PELICAN_INITIAL && in plx_pci_check_sja1000() 434 priv->read_reg(priv, SJA1000_IR) == REG_IR_PELICAN_INITIAL) in plx_pci_check_sja1000() 684 priv->read_reg = plx_pci_read_reg; in plx_pci_add_card()
|
| H A D | sja1000_isa.c | 160 priv->read_reg = sja1000_isa_mem_read_reg; in sja1000_isa_probe() 167 priv->read_reg = sja1000_isa_port_read_reg_indirect; in sja1000_isa_probe() 171 priv->read_reg = sja1000_isa_port_read_reg; in sja1000_isa_probe() 238 if (priv->read_reg == sja1000_isa_port_read_reg_indirect) in sja1000_isa_remove()
|
| H A D | ems_pci.c | 202 res = priv->read_reg(priv, SJA1000_CDR); in ems_pci_check_chan() 351 priv->read_reg = ems_pci_v1_read_reg; in ems_pci_add_card() 357 priv->read_reg = ems_pci_v2_read_reg; in ems_pci_add_card() 363 priv->read_reg = ems_pci_v3_read_reg; in ems_pci_add_card()
|
| /linux/drivers/net/can/cc770/ |
| H A D | cc770_isa.c | 205 priv->read_reg = cc770_isa_mem_read_reg; in cc770_isa_probe() 212 priv->read_reg = cc770_isa_port_read_reg_indirect; in cc770_isa_probe() 215 priv->read_reg = cc770_isa_port_read_reg; in cc770_isa_probe() 300 if (priv->read_reg == cc770_isa_port_read_reg_indirect) in cc770_isa_remove()
|
| H A D | cc770.h | 141 priv->read_reg(priv, offsetof(struct cc770_regs, member)) 172 u8 (*read_reg)(const struct cc770_priv *priv, int reg); member
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_phy.c | 242 hw->phy.ops.read_reg(hw, in ixgbe_probe_phy() 341 status = hw->phy.ops.read_reg(hw, MDIO_DEVID1, MDIO_MMD_PMAPMD, in ixgbe_get_phy_id() 346 status = hw->phy.ops.read_reg(hw, MDIO_DEVID2, MDIO_MMD_PMAPMD, in ixgbe_get_phy_id() 433 status = hw->phy.ops.read_reg(hw, in ixgbe_reset_phy_generic() 444 status = hw->phy.ops.read_reg(hw, MDIO_CTRL1, in ixgbe_reset_phy_generic() 1108 hw->phy.ops.read_reg(hw, MDIO_AN_10GBT_CTRL, MDIO_MMD_AN, &autoneg_reg); in ixgbe_setup_phy_link_generic() 1117 hw->phy.ops.read_reg(hw, IXGBE_MII_AUTONEG_VENDOR_PROVISION_1_REG, in ixgbe_setup_phy_link_generic() 1145 hw->phy.ops.read_reg(hw, MDIO_AN_ADVERTISE, MDIO_MMD_AN, &autoneg_reg); in ixgbe_setup_phy_link_generic() 1159 hw->phy.ops.read_reg(hw, MDIO_CTRL1, in ixgbe_setup_phy_link_generic() 1222 status = hw->phy.ops.read_reg(hw, MDIO_SPEED, MDIO_MMD_PMAPMD, in ixgbe_get_copper_speeds_supported() [all …]
|
| H A D | ixgbe_82598.c | 471 hw->phy.ops.read_reg(hw, MDIO_STAT1, MDIO_MMD_AN, &an_reg); in ixgbe_validate_link_ready() 512 hw->phy.ops.read_reg(hw, 0xC79F, MDIO_MMD_PMAPMD, &link_reg); in ixgbe_check_mac_link_82598() 513 hw->phy.ops.read_reg(hw, 0xC79F, MDIO_MMD_PMAPMD, &link_reg); in ixgbe_check_mac_link_82598() 514 hw->phy.ops.read_reg(hw, 0xC00C, MDIO_MMD_PMAPMD, in ixgbe_check_mac_link_82598() 526 hw->phy.ops.read_reg(hw, 0xC79F, in ixgbe_check_mac_link_82598() 529 hw->phy.ops.read_reg(hw, 0xC00C, in ixgbe_check_mac_link_82598() 1180 .read_reg = &ixgbe_read_phy_reg_generic,
|
| /linux/drivers/edac/ |
| H A D | altera_edac.c | 127 u32 reg, read_reg; in altr_sdr_mc_err_inject_write() local 137 &read_reg); in altr_sdr_mc_err_inject_write() 138 read_reg &= ~(priv->ce_set_mask | priv->ue_set_mask); in altr_sdr_mc_err_inject_write() 149 (read_reg | priv->ue_set_mask)); in altr_sdr_mc_err_inject_write() 156 (read_reg | priv->ce_set_mask)); in altr_sdr_mc_err_inject_write() 164 regmap_write(drvdata->mc_vbase, priv->ce_ue_trgr_offset, read_reg); in altr_sdr_mc_err_inject_write() 175 read_reg = READ_ONCE(ptemp[1]); in altr_sdr_mc_err_inject_write() 180 reg, read_reg); in altr_sdr_mc_err_inject_write() 288 u32 read_reg; in altr_sdram_probe() local 305 if (regmap_read(mc_vbase, priv->ecc_ctrl_offset, &read_reg) || in altr_sdram_probe() [all …]
|
| /linux/drivers/mfd/ |
| H A D | max8925-core.c | 476 int read_reg = -1, value = 0; in max8925_irq() local 490 if (read_reg != irq_data->reg) { in max8925_irq() 491 read_reg = irq_data->reg; in max8925_irq() 505 int read_reg = -1, value = 0; in max8925_tsc_irq() local 519 if (read_reg != irq_data->reg) { in max8925_tsc_irq() 520 read_reg = irq_data->reg; in max8925_tsc_irq()
|