Home
last modified time | relevance | path

Searched refs:reg_read (Results 1 – 25 of 37) sorted by relevance

12

/drivers/firewire/
Dinit_ohci1394_dma.c58 static inline u32 reg_read(const struct ohci *ohci, int offset) in reg_read() function
74 if (reg_read(ohci, OHCI1394_PhyControl) & 0x80000000) in get_phy_reg()
78 r = reg_read(ohci, OHCI1394_PhyControl); in get_phy_reg()
91 if (!(reg_read(ohci, OHCI1394_PhyControl) & 0x00004000)) in set_phy_reg()
105 if (!(reg_read(ohci, OHCI1394_HCControlSet) in init_ohci1394_soft_reset()
123 bus_options = reg_read(ohci, OHCI1394_BusOptions); in init_ohci1394_initialize()
196 events = reg_read(ohci, OHCI1394_IntEventSet); in init_ohci1394_wait_for_busresets()
Dohci.c545 static inline u32 reg_read(const struct fw_ohci *ohci, int offset) in reg_read() function
553 reg_read(ohci, OHCI1394_Version); in flush_writes()
569 val = reg_read(ohci, OHCI1394_PhyControl); in read_phy_reg()
596 val = reg_read(ohci, OHCI1394_PhyControl); in write_phy_reg()
708 if (reg_read(ohci, CONTROL_CLEAR(ctx->regs)) & CONTEXT_RUN) { in ar_context_abort()
1284 reg = reg_read(ohci, CONTROL_SET(ctx->regs)); in context_stop()
1591 if (reg_read(ohci, OHCI1394_CSRControl) & 0x80000000) { in handle_local_lock()
1592 lock_old = cpu_to_be32(reg_read(ohci, in handle_local_lock()
1673 ctl = reg_read(ohci, CONTROL_SET(regs)); in detect_dead_context()
1736 c2 = reg_read(ohci, OHCI1394_IsochronousCycleTimer); in get_cycle_time()
[all …]
Dnosy.c232 reg_read(struct pcilynx *lynx, int offset) in reg_read() function
240 reg_write(lynx, offset, (reg_read(lynx, offset) | mask)); in reg_set_bits()
465 pci_int_status = reg_read(lynx, PCI_INT_STATUS); in irq_handler()
478 link_int_status = reg_read(lynx, LINK_INT_STATUS); in irq_handler()
/drivers/media/i2c/
Dak881x.c38 static int reg_read(struct i2c_client *client, const u8 reg) in reg_read() function
52 int ret = reg_read(client, reg); in reg_set()
73 reg->val = reg_read(client, reg->reg); in ak881x_g_register()
195 reg_read(client, AK881X_STATUS)); in ak881x_s_stream()
200 reg_read(client, AK881X_STATUS)); in ak881x_s_stream()
247 data = reg_read(client, AK881X_DEVICE_ID); in ak881x_probe()
259 ak881x->revision = reg_read(client, AK881X_DEVICE_REVISION); in ak881x_probe()
/drivers/media/usb/gspca/
Dspca508.c1263 static int reg_read(struct gspca_dev *gspca_dev, in reg_read() function
1310 ret = reg_read(gspca_dev, 0x8803); in ssi_w()
1370 data1 = reg_read(gspca_dev, 0x8104); in sd_config()
1371 data2 = reg_read(gspca_dev, 0x8105); in sd_config()
1374 data1 = reg_read(gspca_dev, 0x8106); in sd_config()
1375 data2 = reg_read(gspca_dev, 0x8107); in sd_config()
1378 data1 = reg_read(gspca_dev, 0x8621); in sd_config()
Dspca505.c566 static int reg_read(struct gspca_dev *gspca_dev, in reg_read() function
654 ret = reg_read(gspca_dev, 0x06, 0x16); in sd_start()
/drivers/media/i2c/soc_camera/
Dmt9v022.c173 static int reg_read(struct i2c_client *client, const u8 reg) in reg_read() function
189 ret = reg_read(client, reg); in reg_set()
200 ret = reg_read(client, reg); in reg_clear()
301 ret = reg_read(client, MT9V022_AEC_AGC_ENABLE); in mt9v022_s_crop()
476 reg->val = reg_read(client, reg->reg); in mt9v022_g_register()
521 data = reg_read(client, MT9V022_ANALOG_GAIN); in mt9v022_g_volatile_ctrl()
529 data = reg_read(client, MT9V022_TOTAL_SHUTTER_WIDTH); in mt9v022_g_volatile_ctrl()
537 data = reg_read(client, MT9V022_HORIZONTAL_BLANKING); in mt9v022_g_volatile_ctrl()
543 data = reg_read(client, MT9V022_VERTICAL_BLANKING); in mt9v022_g_volatile_ctrl()
600 reg_read(client, MT9V022_ANALOG_GAIN), gain_val); in mt9v022_s_ctrl()
[all …]
Dmt9t031.c91 static int reg_read(struct i2c_client *client, const u8 reg) in reg_read() function
107 ret = reg_read(client, reg); in reg_set()
118 ret = reg_read(client, reg); in reg_clear()
140 ret = reg_read(client, MT9T031_SHUTTER_WIDTH_UPPER); in get_shutter()
144 ret = reg_read(client, MT9T031_SHUTTER_WIDTH); in get_shutter()
404 reg->val = reg_read(client, reg->reg); in mt9t031_g_register()
500 reg_read(client, MT9T031_GLOBAL_GAIN), data); in mt9t031_s_ctrl()
630 data = reg_read(client, MT9T031_CHIP_VERSION); in mt9t031_video_probe()
Dmt9m001.c110 static int reg_read(struct i2c_client *client, const u8 reg) in reg_read() function
126 ret = reg_read(client, reg); in reg_set()
137 ret = reg_read(client, reg); in reg_clear()
333 reg->val = reg_read(client, reg->reg); in mt9m001_g_register()
427 reg_read(client, MT9M001_GLOBAL_GAIN), data); in mt9m001_s_ctrl()
442 reg_read(client, MT9M001_SHUTTER_WIDTH), shutter); in mt9m001_s_ctrl()
479 data = reg_read(client, MT9M001_CHIP_VERSION); in mt9m001_video_probe()
Drj54n1cb0c.c428 static int reg_read(struct i2c_client *client, const u16 reg) in reg_read() function
467 ret = reg_read(client, reg); in reg_set()
874 ret = reg_read(client, RJ54N1_CLK_RST); in rj54n1_set_clock()
931 ret = reg_read(client, RJ54N1_WB_SEL_WEIGHT_I); in rj54n1_reg_init()
1013 ret = reg_read(client, RJ54N1_RESET_STANDBY); in rj54n1_s_fmt()
1135 reg->val = reg_read(client, reg->reg); in rj54n1_g_register()
1284 data1 = reg_read(client, RJ54N1_DEV_CODE); in rj54n1_video_probe()
1285 data2 = reg_read(client, RJ54N1_DEV_CODE2); in rj54n1_video_probe()
Dov5642.c642 static int reg_read(struct i2c_client *client, u16 reg, u8 *val) in reg_read() function
705 ret = reg_read(client, reg->reg, &val); in ov5642_get_register()
977 ret = reg_read(client, REG_CHIP_ID_HIGH, &id_high); in ov5642_video_probe()
983 ret = reg_read(client, REG_CHIP_ID_LOW, &id_low); in ov5642_video_probe()
Dimx074.c128 static int reg_read(struct i2c_client *client, const u16 addr) in reg_read() function
307 ret = reg_read(client, 0); in imx074_video_probe()
313 ret = reg_read(client, 1); in imx074_video_probe()
/drivers/media/dvb-frontends/
Dtc90522.c75 static int reg_read(struct tc90522_state *state, u8 reg, u8 *val, u8 len) in reg_read() function
140 ret = reg_read(state, 0xc3, &reg, 1); in tc90522s_read_status()
155 if (reg_read(state, 0xc5, &reg, 1) < 0 || !(reg & 0x03)) in tc90522s_read_status()
168 ret = reg_read(state, 0x96, &reg, 1); in tc90522t_read_status()
179 ret = reg_read(state, 0x80, &reg, 1); in tc90522t_read_status()
219 ret = reg_read(state, 0xe6, val, 5); in tc90522s_get_frontend()
260 ret = reg_read(state, 0xbc, val, 2); in tc90522s_get_frontend()
291 ret = reg_read(state, 0xeb, val, 10); in tc90522s_get_frontend()
351 ret = reg_read(state, 0xb0, val, 1); in tc90522t_get_frontend()
358 ret = reg_read(state, 0xb2, val, 6); in tc90522t_get_frontend()
[all …]
Dsi21xx.c543 u8 reg_read; in si21_read_status() local
549 reg_read = 0; in si21_read_status()
552 reg_read |= ((regs_read[0] >> i) & 0x01) << (6 - i); in si21_read_status()
554 lock = ((reg_read & 0x7f) | (regs_read[1] & 0x80)); in si21_read_status()
/drivers/media/tuners/
Dmxl301rf.c61 static int reg_read(struct mxl301rf_state *state, u8 reg, u8 *val) in reg_read() function
97 ret = reg_read(state, 0x18, &rf_in1); in mxl301rf_get_rf_strength()
99 ret = reg_read(state, 0x19, &rf_in2); in mxl301rf_get_rf_strength()
101 ret = reg_read(state, 0xd6, &rf_off1); in mxl301rf_get_rf_strength()
103 ret = reg_read(state, 0xd7, &rf_off2); in mxl301rf_get_rf_strength()
Dqm1d1c0042.c74 static int reg_read(struct qm1d1c0042_state *state, u8 reg, u8 *val) in reg_read() function
339 ret = reg_read(state, 0x00, &val); in qm1d1c0042_init()
/drivers/net/dsa/
Dmv88e6060.c22 static int reg_read(struct dsa_switch *ds, int addr, int reg) in reg_read() function
36 __ret = reg_read(ds, addr, reg); \
210 return reg_read(ds, addr, regnum); in mv88e6060_phy_read()
243 port_status = reg_read(ds, REG_PORT(i), 0x00); in mv88e6060_poll_link()
/drivers/media/pci/sta2x11/
Dsta2x11_vip.c224 static inline u32 reg_read(struct sta2x11_vip *vip, unsigned int reg) in reg_read() function
238 reg_write(vip, DVP_CTL, reg_read(vip, DVP_CTL) | DVP_CTL_ENA); in start_dma()
366 reg_write(vip, DVP_CTL, reg_read(vip, DVP_CTL) & ~DVP_CTL_ENA); in stop_streaming()
789 status = reg_read(vip, DVP_ITS); in vip_irq()
814 reg_write(vip, DVP_CTL, reg_read(vip, DVP_CTL) & ~DVP_CTL_ENA); in vip_irq()
829 reg_read(vip, DVP_ITS); in sta2x11_vip_init_register()
848 reg_read(vip, DVP_ITS); in sta2x11_vip_clear_register()
1222 vip->register_save_area[0] = reg_read(vip, DVP_CTL); in sta2x11_vip_suspend()
1224 vip->register_save_area[SAVE_COUNT] = reg_read(vip, DVP_ITM); in sta2x11_vip_suspend()
1227 vip->register_save_area[i] = reg_read(vip, 4 * i); in sta2x11_vip_suspend()
[all …]
/drivers/i2c/busses/
Di2c-pasemi.c67 static inline int reg_read(struct pasemi_smbus *smbus, int reg) in reg_read() function
77 #define RXFIFO_RD(smbus) reg_read((smbus), REG_MRXFIFO)
83 status = reg_read(smbus, REG_SMSTA); in pasemi_smb_clear()
92 status = reg_read(smbus, REG_SMSTA); in pasemi_smb_waitready()
96 status = reg_read(smbus, REG_SMSTA); in pasemi_smb_waitready()
/drivers/video/fbdev/msm/
Dmddi.c79 struct reg_read_info *reg_read; member
142 ri = mddi->reg_read; in mddi_handle_rev_data()
158 mddi->reg_read = NULL; in mddi_handle_rev_data()
205 ri = mddi->reg_read; in mddi_handle_rev_data_avail()
210 mddi->reg_read = NULL; in mddi_handle_rev_data_avail()
582 mddi->reg_read = &ri; in mddi_remote_read()
596 mddi->reg_read = NULL; in mddi_remote_read()
615 mddi->reg_read = NULL; in mddi_remote_read()
/drivers/gpu/drm/i2c/
Dtda998x_drv.c444 reg_read(struct tda998x_priv *priv, uint16_t reg) in reg_read() function
492 old_val = reg_read(priv, reg); in reg_set()
502 old_val = reg_read(priv, reg); in reg_clear()
552 flag0 = reg_read(priv, REG_INT_FLAGS_0); in tda998x_irq_thread()
553 flag1 = reg_read(priv, REG_INT_FLAGS_1); in tda998x_irq_thread()
554 flag2 = reg_read(priv, REG_INT_FLAGS_2); in tda998x_irq_thread()
1046 ret = reg_read(priv, REG_INT_FLAGS_2); in read_edid_block()
1278 rev_lo = reg_read(priv, REG_VERSION_LSB); in tda998x_create()
1279 rev_hi = reg_read(priv, REG_VERSION_MSB); in tda998x_create()
1330 reg_read(priv, REG_INT_FLAGS_0); in tda998x_create()
[all …]
/drivers/base/regmap/
Dregmap-i2c.c51 .reg_read = regmap_smbus_byte_reg_read,
87 .reg_read = regmap_smbus_word_reg_read,
/drivers/atm/
Dlanai.c477 static inline u32 reg_read(const struct lanai_dev *lanai, in reg_read() function
892 #define read_pin() (reg_read(lanai, Status_Reg) & STATUS_PROMDATA) in eeprom_read()
1066 return reg_read(lanai, IntStatusMasked_Reg); in intr_pending()
1090 u32 new = reg_read(lanai, Status_Reg); in lanai_check_status()
1268 for (i = 0; reg_read(lanai, Status_Reg) & STATUS_BUTTBUSY; i++) { in lanai_endtx()
1725 u32 wreg = reg_read(lanai, ServWrite_Reg); in run_service()
1747 u32 statreg = reg_read(lanai, Statistics_Reg); in get_statistics()
1843 (unsigned int) reg_read(lanai, DMA_Addr_Reg)); in lanai_int_1()
2163 lanai->conf1 = reg_read(lanai, Config1_Reg); in lanai_dev_open()
2181 reg_read(lanai, Reset_Reg), &lanai->board_rev); in lanai_dev_open()
[all …]
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_minidump.c666 int i, reg_read; in qlcnic_read_memory_test_agent() local
668 reg_read = mem->size; in qlcnic_read_memory_test_agent()
671 if ((addr & 0xf) || (reg_read%16)) { in qlcnic_read_memory_test_agent()
674 addr, reg_read); in qlcnic_read_memory_test_agent()
681 while (reg_read != 0) { in qlcnic_read_memory_test_agent()
704 reg_read -= 16; in qlcnic_read_memory_test_agent()
/drivers/gpu/drm/radeon/
Datom.h116 uint32_t (* reg_read)(struct card_info *, uint32_t); /* filled by driver */ member

12