Home
last modified time | relevance | path

Searched refs:ucb (Results 1 – 11 of 11) sorted by relevance

/drivers/mfd/
Ducb1x00-core.c53 void ucb1x00_io_set_dir(struct ucb1x00 *ucb, unsigned int in, unsigned int out) in ucb1x00_io_set_dir() argument
57 spin_lock_irqsave(&ucb->io_lock, flags); in ucb1x00_io_set_dir()
58 ucb->io_dir |= out; in ucb1x00_io_set_dir()
59 ucb->io_dir &= ~in; in ucb1x00_io_set_dir()
61 ucb1x00_reg_write(ucb, UCB_IO_DIR, ucb->io_dir); in ucb1x00_io_set_dir()
62 spin_unlock_irqrestore(&ucb->io_lock, flags); in ucb1x00_io_set_dir()
81 void ucb1x00_io_write(struct ucb1x00 *ucb, unsigned int set, unsigned int clear) in ucb1x00_io_write() argument
85 spin_lock_irqsave(&ucb->io_lock, flags); in ucb1x00_io_write()
86 ucb->io_out |= set; in ucb1x00_io_write()
87 ucb->io_out &= ~clear; in ucb1x00_io_write()
[all …]
Ducb1x00-ts.c43 struct ucb1x00 *ucb; member
82 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_mode_int()
95 ucb1x00_io_write(ts->ucb, COLLIE_TC35143_GPIO_TBL_CHK, 0); in ucb1x00_ts_read_pressure()
96 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_read_pressure()
102 return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_AD2, ts->adcsync); in ucb1x00_ts_read_pressure()
104 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_read_pressure()
109 return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_TSPY, ts->adcsync); in ucb1x00_ts_read_pressure()
122 ucb1x00_io_write(ts->ucb, 0, COLLIE_TC35143_GPIO_TBL_CHK); in ucb1x00_ts_read_xpos()
124 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_read_xpos()
127 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, in ucb1x00_ts_read_xpos()
[all …]
Ducb1400_core.c51 struct ucb1400 *ucb; in ucb1400_core_probe() local
60 ucb = kzalloc(sizeof(struct ucb1400), GFP_KERNEL); in ucb1400_core_probe()
61 if (!ucb) { in ucb1400_core_probe()
66 dev_set_drvdata(dev, ucb); in ucb1400_core_probe()
83 ucb->ucb1400_gpio = platform_device_alloc("ucb1400_gpio", -1); in ucb1400_core_probe()
84 if (!ucb->ucb1400_gpio) { in ucb1400_core_probe()
88 err = platform_device_add_data(ucb->ucb1400_gpio, &ucb_gpio, in ucb1400_core_probe()
92 err = platform_device_add(ucb->ucb1400_gpio); in ucb1400_core_probe()
104 ucb->ucb1400_ts = platform_device_alloc("ucb1400_ts", -1); in ucb1400_core_probe()
105 if (!ucb->ucb1400_ts) { in ucb1400_core_probe()
[all …]
Ducb1x00-assabet.c27 struct ucb1x00 *ucb = classdev_to_ucb1x00(dev); \
29 ucb1x00_adc_enable(ucb); \
30 val = ucb1x00_adc_read(ucb, input, UCB_NOSYNC); \
31 ucb1x00_adc_disable(ucb); \
42 struct ucb1x00 *ucb = dev->ucb; in ucb1x00_assabet_add() local
53 buttons[i].gpio = ucb->gpio.base + i; in ucb1x00_assabet_add()
63 pdev = platform_device_register_data(&ucb->dev, "gpio-keys", -1, in ucb1x00_assabet_add()
66 device_create_file(&ucb->dev, &dev_attr_vbatt); in ucb1x00_assabet_add()
67 device_create_file(&ucb->dev, &dev_attr_vcharger); in ucb1x00_assabet_add()
68 device_create_file(&ucb->dev, &dev_attr_batt_temp); in ucb1x00_assabet_add()
[all …]
/drivers/input/touchscreen/
Ducb1400_ts.c38 static void ucb1400_ts_mode_int(struct ucb1400_ts *ucb) in ucb1400_ts_mode_int() argument
40 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, in ucb1400_ts_mode_int()
50 static unsigned int ucb1400_ts_read_pressure(struct ucb1400_ts *ucb) in ucb1400_ts_read_pressure() argument
52 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, in ucb1400_ts_read_pressure()
59 return ucb1400_adc_read(ucb->ac97, UCB_ADC_INP_TSPY, adcsync); in ucb1400_ts_read_pressure()
68 static unsigned int ucb1400_ts_read_xpos(struct ucb1400_ts *ucb) in ucb1400_ts_read_xpos() argument
70 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, in ucb1400_ts_read_xpos()
73 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, in ucb1400_ts_read_xpos()
76 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, in ucb1400_ts_read_xpos()
82 return ucb1400_adc_read(ucb->ac97, UCB_ADC_INP_TSPY, adcsync); in ucb1400_ts_read_xpos()
[all …]
/drivers/gpio/
Dgpio-ucb1400.c48 struct ucb1400_gpio *ucb = dev->dev.platform_data; in ucb1400_gpio_probe() local
51 if (!(ucb && ucb->gpio_offset)) { in ucb1400_gpio_probe()
56 platform_set_drvdata(dev, ucb); in ucb1400_gpio_probe()
58 ucb->gc.label = "ucb1400_gpio"; in ucb1400_gpio_probe()
59 ucb->gc.base = ucb->gpio_offset; in ucb1400_gpio_probe()
60 ucb->gc.ngpio = 10; in ucb1400_gpio_probe()
61 ucb->gc.owner = THIS_MODULE; in ucb1400_gpio_probe()
63 ucb->gc.direction_input = ucb1400_gpio_dir_in; in ucb1400_gpio_probe()
64 ucb->gc.direction_output = ucb1400_gpio_dir_out; in ucb1400_gpio_probe()
65 ucb->gc.get = ucb1400_gpio_get; in ucb1400_gpio_probe()
[all …]
/drivers/power/
Dcollie_battery.c28 static struct ucb1x00 *ucb; variable
65 ucb1x00_adc_enable(ucb); in collie_read_bat()
66 value = ucb1x00_adc_read(ucb, bat->adc_bat, UCB_SYNC); in collie_read_bat()
67 ucb1x00_adc_disable(ucb); in collie_read_bat()
84 ucb1x00_adc_enable(ucb); in collie_read_temp()
85 value = ucb1x00_adc_read(ucb, bat->adc_temp, UCB_SYNC); in collie_read_temp()
86 ucb1x00_adc_disable(ucb); in collie_read_temp()
315 ucb = dev->ucb; in collie_bat_probe()
326 ret = power_supply_register(&dev->ucb->dev, &collie_bat_main.psy); in collie_bat_probe()
329 ret = power_supply_register(&dev->ucb->dev, &collie_bat_bu.psy); in collie_bat_probe()
/drivers/media/dvb-frontends/
Dtda10071_priv.h35 u32 ucb; member
Daf9033.c34 u32 ucb; member
917 state->ucb += abort_cnt; in af9033_update_ch_stat()
951 *ucblocks = state->ucb; in af9033_read_ucblocks()
Dtda10071.c614 priv->ucb += (buf[4] << 8) | buf[5]; in tda10071_read_ber()
638 *ucblocks = priv->ucb; in tda10071_read_ucblocks()
/drivers/pinctrl/
Dpinctrl-tegra20.c2795 …MUX_PG(ucb, UARTC, PWM, GMI, RSVD4, RSVD4, 0x18, 23, 0x84, 18, 0xac…