Home
last modified time | relevance | path

Searched refs:read_reg (Results 1 – 25 of 138) sorted by relevance

123456

/linux/drivers/net/can/sja1000/
A Dsja1000.c95 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()
219 priv->read_reg(priv, SJA1000_ECC); in sja1000_start()
222 priv->read_reg(priv, SJA1000_IR); in sja1000_start()
352 fi = priv->read_reg(priv, SJA1000_FI); in sja1000_rx()
404 txerr = priv->read_reg(priv, SJA1000_TXERR); in sja1000_err()
436 ecc = priv->read_reg(priv, SJA1000_ECC); in sja1000_err()
474 alc = priv->read_reg(priv, SJA1000_ALC); in sja1000_err()
515 status = priv->read_reg(priv, SJA1000_SR); in sja1000_interrupt()
[all …]
A Dsja1000_platform.c102 priv->read_reg = sp_technologic_read_reg16; in sp_technologic_init()
120 priv->read_reg = sp_read_reg32; in sp_populate()
124 priv->read_reg = sp_read_reg16; in sp_populate()
129 priv->read_reg = sp_read_reg8; in sp_populate()
146 priv->read_reg = sp_read_reg32; in sp_populate_of()
150 priv->read_reg = sp_read_reg16; in sp_populate_of()
155 priv->read_reg = sp_read_reg8; in sp_populate_of()
/linux/drivers/media/pci/ivtv/
A Divtv-gpio.c101 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 Divtv-yuv.c847 yi->reg_2834 = read_reg(0x02834); in ivtv_yuv_init()
848 yi->reg_2838 = read_reg(0x02838); in ivtv_yuv_init()
849 yi->reg_283c = read_reg(0x0283c); in ivtv_yuv_init()
850 yi->reg_2840 = read_reg(0x02840); in ivtv_yuv_init()
851 yi->reg_2844 = read_reg(0x02844); in ivtv_yuv_init()
852 yi->reg_2848 = read_reg(0x02848); in ivtv_yuv_init()
853 yi->reg_2854 = read_reg(0x02854); in ivtv_yuv_init()
854 yi->reg_285c = read_reg(0x0285c); in ivtv_yuv_init()
855 yi->reg_2864 = read_reg(0x02864); in ivtv_yuv_init()
856 yi->reg_2870 = read_reg(0x02870); in ivtv_yuv_init()
[all …]
/linux/drivers/net/ethernet/intel/igb/
A De1000_phy.c64 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/drivers/macintosh/
A Dtherm_windtunnel.c173 temp = read_reg( x.thermostat, 0, 2 ); in poll_temp()
179 casetemp = read_reg(x.fan, 0x0b, 1) << 8; in poll_temp()
215 x.r0 = read_reg( x.fan, 0x00, 1 ); in setup_hardware()
216 x.r1 = read_reg( x.fan, 0x01, 1 ); in setup_hardware()
217 x.r20 = read_reg( x.fan, 0x20, 1 ); in setup_hardware()
218 x.r23 = read_reg( x.fan, 0x23, 1 ); in setup_hardware()
219 x.r25 = read_reg( x.fan, 0x25, 1 ); in setup_hardware()
363 if( read_reg(cl, 0x3d, 1) != 0x30 || read_reg(cl, 0x3e, 1) != 0x41 ) in attach_fan()
380 if( (temp=read_reg(cl, 0, 2)) < 0 ) in attach_thermostat()
386 hyst_temp = read_reg(cl, 2, 2); in attach_thermostat()
[all …]
A Dtherm_adt746x.c111 read_reg(struct thermostat* th, int reg) in read_reg() function
134 tmp[1] = read_reg(th, addr); in read_fan_speed()
135 tmp[0] = read_reg(th, addr + 1); in read_fan_speed()
174 manual = read_reg(th, MANUAL_MODE[fan]); in write_fan_speed()
182 manual = read_reg(th, in write_fan_speed()
189 manual = read_reg(th, MANUAL_MODE[fan]); in write_fan_speed()
204 th->temps[i] = read_reg(th, TEMP_REG[i]); in read_sensors()
508 rc = read_reg(th, CONFIG_REG); in probe_thermostat()
527 th->initial_limits[i] = read_reg(th, LIMIT_REG[i]); in probe_thermostat()
538 th->pwm_inv[0] = read_reg(th, MANUAL_MODE[0]) & INVERT_MASK; in probe_thermostat()
[all …]
/linux/drivers/mtd/nand/onenand/
A Donenand_omap2.c170 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/drivers/gpio/
A Dgpio-mmio.c160 *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 Dgpio-mpc8xxx.c74 out_mask = gc->read_reg(mpc8xxx_gc->regs + GPIO_DIR); in mpc8572_gpio_get()
75 val = gc->read_reg(mpc8xxx_gc->regs + GPIO_DAT) & ~out_mask; in mpc8572_gpio_get()
120 mask = gc->read_reg(mpc8xxx_gc->regs + GPIO_IER) in mpc8xxx_gpio_irq_cascade()
121 & gc->read_reg(mpc8xxx_gc->regs + GPIO_IMR); in mpc8xxx_gpio_irq_cascade()
137 gc->read_reg(mpc8xxx_gc->regs + GPIO_IMR) in mpc8xxx_irq_unmask()
152 gc->read_reg(mpc8xxx_gc->regs + GPIO_IMR) in mpc8xxx_irq_mask()
177 gc->read_reg(mpc8xxx_gc->regs + GPIO_ICR) in mpc8xxx_irq_set_type()
185 gc->read_reg(mpc8xxx_gc->regs + GPIO_ICR) in mpc8xxx_irq_set_type()
218 gc->write_reg(reg, (gc->read_reg(reg) & ~(3 << shift)) in mpc512x_irq_set_type()
226 gc->write_reg(reg, (gc->read_reg(reg) & ~(3 << shift)) in mpc512x_irq_set_type()
[all …]
/linux/drivers/net/ethernet/intel/igc/
A Digc_phy.c37 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()
246 ret_val = phy->ops.read_reg(hw, PHY_1000T_CTRL, in igc_phy_setup_autoneg()
254 ret_val = phy->ops.read_reg(hw, (STANDARD_AN_REG_MASK << in igc_phy_setup_autoneg()
416 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_wait_autoneg()
470 ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_ctrl); in igc_copper_link_autoneg()
[all …]
/linux/drivers/block/paride/
A Dpt.c283 s = read_reg(pi, 7); in pt_wait()
284 e = read_reg(pi, 1); in pt_wait()
285 p = read_reg(pi, 2); in pt_wait()
338 n = (((read_reg(pi, 4) + 256 * read_reg(pi, 5)) + in pt_completion()
340 p = read_reg(pi, 2) & 3; in pt_completion()
407 s = read_reg(pi, 7); in pt_poll_dsc()
408 e = read_reg(pi, 1); in pt_poll_dsc()
821 s = read_reg(pi, 7); in pt_read()
826 n = (read_reg(pi, 4) + 256 * read_reg(pi, 5)); in pt_read()
922 s = read_reg(pi, 7); in pt_write()
[all …]
A Dpg.c268 static inline int read_reg(struct pg *dev, int reg) in read_reg() function
306 s = read_reg(dev, 7); in pg_wait()
307 e = read_reg(dev, 1); in pg_wait()
308 p = read_reg(dev, 2); in pg_wait()
338 if (read_reg(dev, 2) != 1) { in pg_command()
366 while (read_reg(dev, 7) & STAT_DRQ) { in pg_completion()
367 d = (read_reg(dev, 4) + 256 * read_reg(dev, 5)); in pg_completion()
369 p = read_reg(dev, 2) & 3; in pg_completion()
405 got[i] = read_reg(dev, i + 1); in pg_reset()
A Dpf.c375 static inline int read_reg(struct pf_unit *pf, int reg) in read_reg() function
395 s = read_reg(pf, 7); in pf_wait()
396 e = read_reg(pf, 1); in pf_wait()
397 p = read_reg(pf, 2); in pf_wait()
429 if (read_reg(pf, 2) != 1) { in pf_command()
447 if ((read_reg(pf, 2) & 2) && (read_reg(pf, 7) & STAT_DRQ)) { in pf_completion()
448 n = (((read_reg(pf, 4) + 256 * read_reg(pf, 5)) + in pf_completion()
535 flg &= (read_reg(pf, i + 1) == expect[i]); in pf_reset()
540 printk("%3x", read_reg(pf, i + 1)); in pf_reset()
A Dpcd.c320 static inline int read_reg(struct pcd_unit *cd, int reg) in read_reg() function
340 s = read_reg(cd, 7); in pcd_wait()
341 e = read_reg(cd, 1); in pcd_wait()
342 p = read_reg(cd, 2); in pcd_wait()
374 if (read_reg(cd, 2) != 1) { in pcd_command()
396 while (read_reg(cd, 7) & IDE_DRQ) { in pcd_completion()
397 d = read_reg(cd, 4) + 256 * read_reg(cd, 5); in pcd_completion()
399 p = read_reg(cd, 2) & 3; in pcd_completion()
532 flg &= (read_reg(cd, i + 1) == expect[i]); in pcd_reset()
537 printk("%3x", read_reg(cd, i + 1)); in pcd_reset()
/linux/drivers/net/can/
A Dxilinx_can.c443 priv->read_reg(priv, XCAN_BRPR_OFFSET), in xcan_set_bittiming()
444 priv->read_reg(priv, XCAN_BTR_OFFSET)); in xcan_set_bittiming()
508 priv->read_reg(priv, XCAN_SR_OFFSET)); in xcan_chip_start()
863 data[0] = priv->read_reg(priv, dw_offset); in xcanfd_rx()
1147 fsr = priv->read_reg(priv, XCAN_FSR_OFFSET); in xcan_rx_fifo_get_next_frame()
1167 if (!(priv->read_reg(priv, XCAN_ISR_OFFSET) & in xcan_rx_fifo_get_next_frame()
1222 ier = priv->read_reg(priv, XCAN_IER_OFFSET); in xcan_rx_poll()
1327 isr = priv->read_reg(priv, XCAN_ISR_OFFSET); in xcan_interrupt()
1353 ier = priv->read_reg(priv, XCAN_IER_OFFSET); in xcan_interrupt()
1787 priv->read_reg = xcan_read_reg_le; in xcan_probe()
[all …]
/linux/drivers/media/i2c/
A Dtw2804.c125 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/drivers/media/dvb-frontends/
A Dstv0910.c164 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 Dlgdt3305.c151 #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 …]
/linux/arch/sh/boards/mach-kfr2r09/
A Dlcd_wqvga.c59 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/
A Dradio-tea5777.c218 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()
/linux/drivers/net/can/c_can/
A Dc_can_main.c244 if (!(priv->read_reg(priv, reg) & IF_COMR_BUSY)) in c_can_obj_update()
401 data = priv->read_reg(priv, dreg); in c_can_read_msg_object()
527 ctrl_save = priv->read_reg(priv, C_CAN_CTRL_REG); in c_can_set_bittiming()
701 reg_err_counter = priv->read_reg(priv, C_CAN_ERR_CNT_REG); in __c_can_get_berr_counter()
733 pend = priv->read_reg(priv, C_CAN_INTPND2_REG); in c_can_do_tx()
869 pend = priv->read_reg(priv, C_CAN_NEWDAT1_REG); in c_can_get_pending()
1082 priv->last_status = priv->read_reg(priv, C_CAN_STS_REG); in c_can_poll()
1149 reg_int = priv->read_reg(priv, C_CAN_INT_REG); in c_can_isr()
1284 val = priv->read_reg(priv, C_CAN_CTRL_EX_REG); in c_can_power_down()
1322 val = priv->read_reg(priv, C_CAN_CTRL_EX_REG); in c_can_power_up()
[all …]
A Dc_can_pci.c91 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()
/linux/drivers/input/touchscreen/
A Dili210x.c45 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/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_x550.c337 hw->phy.ops.read_reg = NULL; in ixgbe_identify_phy_x550em()
537 hw->phy.ops.read_reg = NULL; in ixgbe_identify_phy_fw()
2433 status = hw->phy.ops.read_reg(hw, in ixgbe_enable_lasi_ext_t_x550em()
3095 status = hw->phy.ops.read_reg(hw, in ixgbe_enter_lplu_t_x550em()
3261 phy->ops.read_reg = NULL; in ixgbe_init_phy_ops_X550em()
3322 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em()
3333 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em()
3986 .read_reg = &ixgbe_read_phy_reg_generic,
4004 .read_reg = NULL,
4015 .read_reg = &ixgbe_read_phy_reg_x550a,
[all …]

Completed in 125 milliseconds

123456