/linux-6.3-rc2/drivers/net/can/sja1000/ |
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() 405 txerr = priv->read_reg(priv, SJA1000_TXERR); in sja1000_err() 406 rxerr = priv->read_reg(priv, SJA1000_RXERR); in sja1000_err() 439 ecc = priv->read_reg(priv, SJA1000_ECC); in sja1000_err() 477 alc = priv->read_reg(priv, SJA1000_ALC); in sja1000_err() [all …]
|
A D | sja1000_platform.c | 102 priv->read_reg = sp_technologic_read_reg16; in sp_technologic_init() 123 priv->read_reg = sp_read_reg32; in sp_populate() 127 priv->read_reg = sp_read_reg16; in sp_populate() 132 priv->read_reg = sp_read_reg8; in sp_populate() 149 priv->read_reg = sp_read_reg32; in sp_populate_of() 153 priv->read_reg = sp_read_reg16; in sp_populate_of() 158 priv->read_reg = sp_read_reg8; in sp_populate_of()
|
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()
|
/linux-6.3-rc2/drivers/media/pci/ivtv/ |
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 …]
|
A D | ivtv-yuv.c | 846 yi->reg_2834 = read_reg(0x02834); in ivtv_yuv_init() 847 yi->reg_2838 = read_reg(0x02838); in ivtv_yuv_init() 848 yi->reg_283c = read_reg(0x0283c); in ivtv_yuv_init() 849 yi->reg_2840 = read_reg(0x02840); in ivtv_yuv_init() 850 yi->reg_2844 = read_reg(0x02844); in ivtv_yuv_init() 851 yi->reg_2848 = read_reg(0x02848); in ivtv_yuv_init() 852 yi->reg_2854 = read_reg(0x02854); in ivtv_yuv_init() 853 yi->reg_285c = read_reg(0x0285c); in ivtv_yuv_init() 854 yi->reg_2864 = read_reg(0x02864); in ivtv_yuv_init() 855 yi->reg_2870 = read_reg(0x02870); in ivtv_yuv_init() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/intel/igb/ |
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() 2054 if (!(hw->phy.ops.read_reg)) in igb_phy_sw_reset() 2389 hw->phy.ops.read_reg(hw, PHY_CONTROL, &mii_reg); in igb_power_up_phy_copper() [all …]
|
/linux-6.3-rc2/drivers/macintosh/ |
A D | therm_windtunnel.c | 172 temp = read_reg( x.thermostat, 0, 2 ); in poll_temp() 178 casetemp = read_reg(x.fan, 0x0b, 1) << 8; in poll_temp() 214 x.r0 = read_reg( x.fan, 0x00, 1 ); in setup_hardware() 215 x.r1 = read_reg( x.fan, 0x01, 1 ); in setup_hardware() 216 x.r20 = read_reg( x.fan, 0x20, 1 ); in setup_hardware() 217 x.r23 = read_reg( x.fan, 0x23, 1 ); in setup_hardware() 218 x.r25 = read_reg( x.fan, 0x25, 1 ); in setup_hardware() 362 if( read_reg(cl, 0x3d, 1) != 0x30 || read_reg(cl, 0x3e, 1) != 0x41 ) in attach_fan() 379 if( (temp=read_reg(cl, 0, 2)) < 0 ) in attach_thermostat() 385 hyst_temp = read_reg(cl, 2, 2); in attach_thermostat() [all …]
|
A D | therm_adt746x.c | 110 read_reg(struct thermostat* th, int reg) in read_reg() function 133 tmp[1] = read_reg(th, addr); in read_fan_speed() 134 tmp[0] = read_reg(th, addr + 1); in read_fan_speed() 173 manual = read_reg(th, MANUAL_MODE[fan]); in write_fan_speed() 181 manual = read_reg(th, in write_fan_speed() 188 manual = read_reg(th, MANUAL_MODE[fan]); in write_fan_speed() 203 th->temps[i] = read_reg(th, TEMP_REG[i]); in read_sensors() 507 rc = read_reg(th, CONFIG_REG); in probe_thermostat() 526 th->initial_limits[i] = read_reg(th, LIMIT_REG[i]); in probe_thermostat() 537 th->pwm_inv[0] = read_reg(th, MANUAL_MODE[0]) & INVERT_MASK; in probe_thermostat() [all …]
|
/linux-6.3-rc2/drivers/mtd/nand/onenand/ |
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 …]
|
/linux-6.3-rc2/drivers/gpio/ |
A D | gpio-mmio.c | 160 *bits |= gc->read_reg(gc->reg_set) & set_mask; in bgpio_get_set_multiple() 180 *bits |= gc->read_reg(gc->reg_dat) & *mask; in bgpio_get_multiple() 202 val = gc->read_reg(gc->reg_dat) & readmask; in bgpio_get_multiple_be() 425 gc->read_reg = bgpio_read8; in bgpio_setup_accessors() 430 gc->read_reg = bgpio_read16be; in bgpio_setup_accessors() 433 gc->read_reg = bgpio_read16; in bgpio_setup_accessors() 439 gc->read_reg = bgpio_read32be; in bgpio_setup_accessors() 442 gc->read_reg = bgpio_read32; in bgpio_setup_accessors() 453 gc->read_reg = bgpio_read64; in bgpio_setup_accessors() 633 gc->bgpio_data = gc->read_reg(gc->reg_dat); in bgpio_init() [all …]
|
A D | gpio-mpc8xxx.c | 71 out_mask = gc->read_reg(mpc8xxx_gc->regs + GPIO_DIR); in mpc8572_gpio_get() 72 val = gc->read_reg(mpc8xxx_gc->regs + GPIO_DAT) & ~out_mask; in mpc8572_gpio_get() 117 mask = gc->read_reg(mpc8xxx_gc->regs + GPIO_IER) in mpc8xxx_gpio_irq_cascade() 118 & gc->read_reg(mpc8xxx_gc->regs + GPIO_IMR); in mpc8xxx_gpio_irq_cascade() 134 gc->read_reg(mpc8xxx_gc->regs + GPIO_IMR) in mpc8xxx_irq_unmask() 149 gc->read_reg(mpc8xxx_gc->regs + GPIO_IMR) in mpc8xxx_irq_mask() 175 gc->read_reg(mpc8xxx_gc->regs + GPIO_ICR) in mpc8xxx_irq_set_type() 183 gc->read_reg(mpc8xxx_gc->regs + GPIO_ICR) in mpc8xxx_irq_set_type() 216 gc->write_reg(reg, (gc->read_reg(reg) & ~(3 << shift)) in mpc512x_irq_set_type() 224 gc->write_reg(reg, (gc->read_reg(reg) & ~(3 << shift)) in mpc512x_irq_set_type() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/intel/igc/ |
A D | igc_phy.c | 37 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id() 43 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id() 74 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link() 85 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link() 113 hw->phy.ops.read_reg(hw, PHY_CONTROL, &mii_reg); in igc_power_up_phy_copper() 130 hw->phy.ops.read_reg(hw, PHY_CONTROL, &mii_reg); in igc_power_down_phy_copper() 236 ret_val = phy->ops.read_reg(hw, PHY_1000T_CTRL, in igc_phy_setup_autoneg() 244 ret_val = phy->ops.read_reg(hw, (STANDARD_AN_REG_MASK << in igc_phy_setup_autoneg() 406 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg() 460 ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_ctrl); in igc_copper_link_autoneg() [all …]
|
/linux-6.3-rc2/drivers/net/can/ |
A D | xilinx_can.c | 476 priv->read_reg(priv, XCAN_BRPR_OFFSET), in xcan_set_bittiming() 477 priv->read_reg(priv, XCAN_BTR_OFFSET)); in xcan_set_bittiming() 541 priv->read_reg(priv, XCAN_SR_OFFSET)); in xcan_chip_start() 897 data[0] = priv->read_reg(priv, dw_offset); in xcanfd_rx() 1178 fsr = priv->read_reg(priv, XCAN_FSR_OFFSET); in xcan_rx_fifo_get_next_frame() 1198 if (!(priv->read_reg(priv, XCAN_ISR_OFFSET) & in xcan_rx_fifo_get_next_frame() 1251 ier = priv->read_reg(priv, XCAN_IER_OFFSET); in xcan_rx_poll() 1356 isr = priv->read_reg(priv, XCAN_ISR_OFFSET); in xcan_interrupt() 1382 ier = priv->read_reg(priv, XCAN_IER_OFFSET); in xcan_interrupt() 1847 priv->read_reg = xcan_read_reg_le; in xcan_probe() [all …]
|
/linux-6.3-rc2/arch/sh/boards/mach-kfr2r09/ |
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-6.3-rc2/drivers/media/i2c/ |
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-6.3-rc2/drivers/media/dvb-frontends/ |
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 …]
|
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 …]
|
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-6.3-rc2/drivers/media/radio/ |
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()
|
A D | radio-tea5777.h | 47 int (*read_reg)(struct radio_tea5777 *tea, u32 *val); member 62 u32 read_reg; member
|
/linux-6.3-rc2/drivers/mtd/nand/raw/brcmnand/ |
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()
|
/linux-6.3-rc2/drivers/net/can/c_can/ |
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()
|
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() 1068 priv->last_status = priv->read_reg(priv, C_CAN_STS_REG); in c_can_poll() 1135 reg_int = priv->read_reg(priv, C_CAN_INT_REG); in c_can_isr() 1266 val = priv->read_reg(priv, C_CAN_CTRL_EX_REG); in c_can_power_down() 1304 val = priv->read_reg(priv, C_CAN_CTRL_EX_REG); in c_can_power_up() [all …]
|
/linux-6.3-rc2/drivers/input/touchscreen/ |
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, 399 error = priv->chip->read_reg(client, REG_FIRMWARE_VERSION, in ili251x_firmware_update_firmware_version() 415 error = priv->chip->read_reg(client, REG_KERNEL_VERSION, in ili251x_firmware_update_kernel_version() 431 error = priv->chip->read_reg(client, REG_PROTOCOL_VERSION, in ili251x_firmware_update_protocol_version() 631 error = priv->chip->read_reg(client, REG_GET_MODE, md, sizeof(md)); in ili251x_switch_ic_mode() 673 error = priv->chip->read_reg(client, REG_IC_BUSY, &data, 1); in ili251x_firmware_busy() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/intel/ixgbe/ |
A D | ixgbe_x550.c | 337 hw->phy.ops.read_reg = NULL; in ixgbe_identify_phy_x550em() 537 hw->phy.ops.read_reg = NULL; in ixgbe_identify_phy_fw() 2483 status = hw->phy.ops.read_reg(hw, in ixgbe_enable_lasi_ext_t_x550em() 3145 status = hw->phy.ops.read_reg(hw, in ixgbe_enter_lplu_t_x550em() 3311 phy->ops.read_reg = NULL; in ixgbe_init_phy_ops_X550em() 3372 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em() 3383 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em() 4036 .read_reg = &ixgbe_read_phy_reg_generic, 4054 .read_reg = NULL, 4065 .read_reg = &ixgbe_read_phy_reg_x550a, [all …]
|