| /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/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 …]
|
| H A D | igc_mac.c | 472 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, in igc_config_fc_after_link_up() 476 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, in igc_config_fc_after_link_up() 492 ret_val = hw->phy.ops.read_reg(hw, PHY_AUTONEG_ADV, in igc_config_fc_after_link_up() 496 ret_val = hw->phy.ops.read_reg(hw, PHY_LP_ABILITY, in igc_config_fc_after_link_up()
|
| /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/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/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 | 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()
|
| /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 | 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()
|
| H A D | sja1000.h | 160 u8 (*read_reg) (const struct sja1000_priv *priv, int reg); member
|
| /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/media/usb/dvb-usb-v2/ |
| H A D | mxl111sf-demod.h | 15 int (*read_reg)(struct mxl111sf_state *state, u8 addr, u8 *data); member
|
| H A D | mxl111sf-tuner.h | 39 int (*read_reg)(struct mxl111sf_state *state, u8 addr, u8 *data); member
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| 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/net/can/ctucanfd/ |
| H A D | ctucanfd.h | 33 u32 (*read_reg)(struct ctucan_priv *priv, member
|
| /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()
|
| /linux/include/video/ |
| H A D | broadsheetfb.h | 50 u16 (*read_reg)(struct broadsheetfb_par *, u16 reg); member
|