Home
last modified time | relevance | path

Searched refs:reg_value (Results 1 – 25 of 26) sorted by relevance

12

/drivers/power/
Dab8500_fg.c1832 u8 reg_value; in ab8500_fg_check_hw_failure_work() local
1843 &reg_value); in ab8500_fg_check_hw_failure_work()
1848 if ((reg_value & BATT_OVV) == BATT_OVV) { in ab8500_fg_check_hw_failure_work()
2594 u8 reg_value; in ab8505_powercut_flagtime_read() local
2601 AB8505_RTC_PCUT_FLAG_TIME_REG, &reg_value); in ab8505_powercut_flagtime_read()
2608 return scnprintf(buf, PAGE_SIZE, "%d\n", (reg_value & 0x7F)); in ab8505_powercut_flagtime_read()
2619 long unsigned reg_value; in ab8505_powercut_flagtime_write() local
2625 reg_value = simple_strtoul(buf, NULL, 10); in ab8505_powercut_flagtime_write()
2627 if (reg_value > 0x7F) { in ab8505_powercut_flagtime_write()
2633 AB8505_RTC_PCUT_FLAG_TIME_REG, (u8)reg_value); in ab8505_powercut_flagtime_write()
[all …]
Dab8500_charger.c1118 u8 reg_value; in ab8500_charger_set_current() local
1125 reg, &reg_value); in ab8500_charger_set_current()
1134 prev_curr_index = (reg_value >> shift_value); in ab8500_charger_set_current()
1145 prev_curr_index = (reg_value >> shift_value); in ab8500_charger_set_current()
1154 prev_curr_index = (reg_value >> shift_value); in ab8500_charger_set_current()
2029 u8 reg_value; in ab8500_charger_check_hw_failure_work() local
2037 AB8500_CHARGER, AB8500_CH_STATUS2_REG, &reg_value); in ab8500_charger_check_hw_failure_work()
2042 if (!(reg_value & MAIN_CH_NOK)) { in ab8500_charger_check_hw_failure_work()
2050 &reg_value); in ab8500_charger_check_hw_failure_work()
2055 if (!(reg_value & VBUS_OVV_TH)) { in ab8500_charger_check_hw_failure_work()
[all …]
Dpm2301_charger.c850 u8 reg_value; in pm2xxx_charger_check_hw_failure_work() local
856 pm2xxx_reg_read(pm2, PM2XXX_SRCE_REG_INT4, &reg_value); in pm2xxx_charger_check_hw_failure_work()
858 if (!(reg_value & (PM2XXX_INT4_S_ITVPWR1OVV | in pm2xxx_charger_check_hw_failure_work()
/drivers/video/via/
Dhw.c1029 int reg_value; in viafb_load_fetch_count_reg() local
1035 reg_value = IGA1_FETCH_COUNT_FORMULA(h_addr, bpp_byte); in viafb_load_fetch_count_reg()
1039 viafb_load_reg(reg_value, viafb_load_reg_num, reg, VIASR); in viafb_load_fetch_count_reg()
1042 reg_value = IGA2_FETCH_COUNT_FORMULA(h_addr, bpp_byte); in viafb_load_fetch_count_reg()
1046 viafb_load_reg(reg_value, viafb_load_reg_num, reg, VIACR); in viafb_load_fetch_count_reg()
1054 int reg_value; in viafb_load_FIFO_reg() local
1174 reg_value = IGA1_FIFO_DEPTH_SELECT_FORMULA(iga1_fifo_max_depth); in viafb_load_FIFO_reg()
1178 viafb_load_reg(reg_value, viafb_load_reg_num, reg, VIASR); in viafb_load_FIFO_reg()
1181 reg_value = IGA1_FIFO_THRESHOLD_FORMULA(iga1_fifo_threshold); in viafb_load_FIFO_reg()
1188 viafb_load_reg(reg_value, viafb_load_reg_num, reg, VIASR); in viafb_load_FIFO_reg()
[all …]
Dlcd.c352 int reg_value = 0; in load_lcd_scaling() local
367 reg_value = in load_lcd_scaling()
373 viafb_load_reg(reg_value, in load_lcd_scaling()
387 reg_value = in load_lcd_scaling()
394 viafb_load_reg(reg_value, in load_lcd_scaling()
399 DEBUG_MSG(KERN_INFO "Horizontal Scaling value = %d", reg_value); in load_lcd_scaling()
411 reg_value = in load_lcd_scaling()
417 viafb_load_reg(reg_value, in load_lcd_scaling()
431 reg_value = in load_lcd_scaling()
438 viafb_load_reg(reg_value, in load_lcd_scaling()
[all …]
/drivers/mfd/
Dvexpress-sysreg.c387 u32 reg_value = readl(vexpress_sysreg_base + gpio->reg); in vexpress_sysreg_gpio_get() local
389 return !!(reg_value & gpio->value); in vexpress_sysreg_gpio_get()
396 u32 reg_value = readl(vexpress_sysreg_base + gpio->reg); in vexpress_sysreg_gpio_set() local
399 reg_value |= gpio->value; in vexpress_sysreg_gpio_set()
401 reg_value &= ~gpio->value; in vexpress_sysreg_gpio_set()
403 writel(reg_value, vexpress_sysreg_base + gpio->reg); in vexpress_sysreg_gpio_set()
/drivers/regulator/
Dmc13892-regulator.c446 u32 reg_value; in mc13892_sw_regulator_set_voltage_sel() local
451 reg_value = selector; in mc13892_sw_regulator_set_voltage_sel()
471 reg_value -= MC13892_SWxHI_SEL_OFFSET; in mc13892_sw_regulator_set_voltage_sel()
472 reg_value |= MC13892_SWITCHERS0_SWxHI; in mc13892_sw_regulator_set_voltage_sel()
474 reg_value &= ~MC13892_SWITCHERS0_SWxHI; in mc13892_sw_regulator_set_voltage_sel()
480 reg_value); in mc13892_sw_regulator_set_voltage_sel()
/drivers/net/wireless/mwifiex/
Ddebugfs.c498 u32 reg_type = 0, reg_offset = 0, reg_value = UINT_MAX; in mwifiex_regrdwr_write() local
509 sscanf(buf, "%u %x %x", &reg_type, &reg_offset, &reg_value); in mwifiex_regrdwr_write()
517 saved_reg_value = reg_value; in mwifiex_regrdwr_write()
541 u32 reg_value; in mwifiex_regrdwr_read() local
566 saved_reg_offset, &reg_value); in mwifiex_regrdwr_read()
573 saved_reg_offset, reg_value); in mwifiex_regrdwr_read()
Dsta_ioctl.c1180 u32 reg_offset, u32 reg_value) in mwifiex_reg_write() argument
1186 reg_rw.value = cpu_to_le32(reg_value); in mwifiex_reg_write()
Dmain.h1063 u32 reg_offset, u32 reg_value);
/drivers/media/platform/omap3isp/
Disp.h290 void isp_reg_writel(struct isp_device *isp, u32 reg_value, in isp_reg_writel() argument
293 __raw_writel(reg_value, isp->mmio_base[isp_mmio_range] + reg_offset); in isp_reg_writel()
/drivers/i2c/busses/
Di2c-eg20t.c225 u32 reg_value; in pch_i2c_init() local
240 reg_value = PCH_I2CCTL_I2CMEN; in pch_i2c_init()
242 reg_value |= FAST_MODE_EN; in pch_i2c_init()
256 reg_value |= NORMAL_INTR_ENBL; /* Enable interrupts in normal mode */ in pch_i2c_init()
257 iowrite32(reg_value, p + PCH_I2CCTL); in pch_i2c_init()
/drivers/media/rc/
Dene_ir.c481 u8 reg_value; in ene_rx_enable() local
488 reg_value = ene_read_reg(dev, ENE_IRQ) & 0xF0; in ene_rx_enable()
489 reg_value |= ENE_IRQ_UNK_EN; in ene_rx_enable()
490 reg_value &= ~ENE_IRQ_STATUS; in ene_rx_enable()
491 reg_value |= (dev->irq & ENE_IRQ_MASK); in ene_rx_enable()
492 ene_write_reg(dev, ENE_IRQ, reg_value); in ene_rx_enable()
/drivers/scsi/isci/
Dregisters.h187 #define SCU_SET_BIT(name, reg_value) \ argument
188 ((reg_value) | SCU_GEN_BIT(name))
190 #define SCU_CLEAR_BIT(name, reg_value) \ argument
191 ((reg_value)$ ~(SCU_GEN_BIT(name)))
/drivers/media/usb/usbvision/
Dusbvision-core.c2336 int buf_idx, err_code, reg_value; in usbvision_init_isoc() local
2353 reg_value = (16 - usbvision_read_reg(usbvision, in usbvision_init_isoc()
2356 usbvision->usb_bandwidth = reg_value >> 1; in usbvision_init_isoc()
2425 int buf_idx, err_code, reg_value; in usbvision_stop_isoc() local
2458 reg_value = (16-usbvision_read_reg(usbvision, USBVISION_ALTER_REG)) & 0x0F; in usbvision_stop_isoc()
2460 (reg_value == 0) ? 0 : (reg_value * 64) - 1; in usbvision_stop_isoc()
2464 usbvision->usb_bandwidth = reg_value >> 1; in usbvision_stop_isoc()
/drivers/hv/
Dhv_kvp.c82 kvp_register(int reg_value) in kvp_register() argument
97 kvp_msg->kvp_hdr.operation = reg_value; in kvp_register()
/drivers/misc/
Dapds990x.c323 u8 reg_value; in apds990x_set_atime() local
327 reg_value = 256 - ((time_ms * TIME_STEP_SCALER) / TIMESTEP); in apds990x_set_atime()
329 chip->a_max_result = (u16)(256 - reg_value) * APDS990X_TIME_TO_ADC; in apds990x_set_atime()
330 return apds990x_write_byte(chip, APDS990X_ATIME, reg_value); in apds990x_set_atime()
/drivers/scsi/
Dwd33c93.h218 uchar reg_value; member
Din2000.h274 uchar reg_value; member
Dwd33c93.c350 result = sx_table[round_period(period,sx_table)].reg_value; in calc_sync_xfer()
1882 sx_table[0].reg_value = 0x20; in calc_sx_table()
1885 sx_table[i].reg_value = (i+1)*0x10; in calc_sx_table()
1887 sx_table[7].reg_value = 0; in calc_sx_table()
1889 sx_table[8].reg_value = 0; in calc_sx_table()
D3w-sas.c1289 u32 reg_value; in twl_poll_register() local
1291 reg_value = readl(reg); in twl_poll_register()
1294 while ((reg_value & value) != result) { in twl_poll_register()
1295 reg_value = readl(reg); in twl_poll_register()
/drivers/gpu/drm/gma500/
Dcdv_intel_dp.c1785 u32 reg_value; in cdv_disable_intel_clock_gating() local
1786 reg_value = REG_READ(DSPCLK_GATE_D); in cdv_disable_intel_clock_gating()
1788 reg_value |= (DPUNIT_PIPEB_GATE_DISABLE | in cdv_disable_intel_clock_gating()
1795 REG_WRITE(DSPCLK_GATE_D, reg_value); in cdv_disable_intel_clock_gating()
/drivers/staging/slicoss/
Dslic.h331 u32 reg_value[32]; member
/drivers/scsi/arm/
Dacornscsi.c634 unsigned char reg_value; member
657 if (syncxfer == sync_xfer_table[i].reg_value) in acornscsi_getperiod()
693 return sync_xfer_table[round_period(period)].reg_value | in calc_sync_xfer()
/drivers/tty/
Dsynclink_gt.c4860 unsigned int reg_value; in tbuf_bytes() local
4886 reg_value = rd_reg32(info, TDCSR); in tbuf_bytes()
4889 if (reg_value & BIT0) in tbuf_bytes()
4893 total_count += (reg_value >> 8) & 0xff; in tbuf_bytes()

12