/drivers/mfd/ |
H A D | ucb1x00-core.c | 39 * @ucb: UCB1x00 structure describing chip 53 void ucb1x00_io_set_dir(struct ucb1x00 *ucb, unsigned int in, unsigned int out) argument 57 spin_lock_irqsave(&ucb->io_lock, flags); 58 ucb->io_dir |= out; 59 ucb->io_dir &= ~in; 61 ucb1x00_reg_write(ucb, UCB_IO_DIR, ucb->io_dir); 62 spin_unlock_irqrestore(&ucb->io_lock, flags); 67 * @ucb: UCB1x00 structure describing chip 81 void ucb1x00_io_write(struct ucb1x00 *ucb, unsigne argument 105 ucb1x00_io_read(struct ucb1x00 *ucb) argument 112 struct ucb1x00 *ucb = container_of(chip, struct ucb1x00, gpio); local 129 struct ucb1x00 *ucb = container_of(chip, struct ucb1x00, gpio); local 141 struct ucb1x00 *ucb = container_of(chip, struct ucb1x00, gpio); local 157 struct ucb1x00 *ucb = container_of(chip, struct ucb1x00, gpio); local 184 struct ucb1x00 *ucb = container_of(chip, struct ucb1x00, gpio); local 214 ucb1x00_adc_enable(struct ucb1x00 *ucb) argument 240 ucb1x00_adc_read(struct ucb1x00 *ucb, int adc_channel, int sync) argument 268 ucb1x00_adc_disable(struct ucb1x00 *ucb) argument 287 struct ucb1x00 *ucb = irq_desc_get_handler_data(desc); local 301 ucb1x00_irq_update(struct ucb1x00 *ucb, unsigned mask) argument 319 struct ucb1x00 *ucb = irq_data_get_irq_chip_data(data); local 330 struct ucb1x00 *ucb = irq_data_get_irq_chip_data(data); local 341 struct ucb1x00 *ucb = irq_data_get_irq_chip_data(data); local 367 struct ucb1x00 *ucb = irq_data_get_irq_chip_data(data); local 393 ucb1x00_add_dev(struct ucb1x00 *ucb, struct ucb1x00_driver *drv) argument 442 ucb1x00_detect_irq(struct ucb1x00 *ucb) argument 488 struct ucb1x00 *ucb = classdev_to_ucb1x00(dev); local 501 struct ucb1x00 *ucb; local 619 struct ucb1x00 *ucb = mcp_get_drvdata(mcp); local 647 struct ucb1x00 *ucb; local 675 struct ucb1x00 *ucb = dev_get_drvdata(dev); local 707 struct ucb1x00 *ucb = dev_get_drvdata(dev); local [all...] |
H A D | ucb1400_core.c | 51 struct ucb1400 *ucb; local 60 ucb = kzalloc(sizeof(struct ucb1400), GFP_KERNEL); 61 if (!ucb) { 66 dev_set_drvdata(dev, ucb); 78 ucb->ucb1400_gpio = platform_device_alloc("ucb1400_gpio", -1); 79 if (!ucb->ucb1400_gpio) { 83 err = platform_device_add_data(ucb->ucb1400_gpio, &ucb_gpio, 87 err = platform_device_add(ucb->ucb1400_gpio); 99 ucb->ucb1400_ts = platform_device_alloc("ucb1400_ts", -1); 100 if (!ucb 128 struct ucb1400 *ucb = dev_get_drvdata(dev); local [all...] |
H A D | ucb1x00-ts.c | 43 struct ucb1x00 *ucb; member in struct:ucb1x00_ts 82 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, 95 ucb1x00_io_write(ts->ucb, COLLIE_TC35143_GPIO_TBL_CHK, 0); 96 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, 102 return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_AD2, ts->adcsync); 104 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, 109 return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_TSPY, ts->adcsync); 122 ucb1x00_io_write(ts->ucb, 0, COLLIE_TC35143_GPIO_TBL_CHK); 124 ucb1x00_reg_write(ts->ucb, UCB_TS_CR, 127 ucb1x00_reg_write(ts->ucb, UCB_TS_C [all...] |
H A D | ucb1x00-assabet.c | 27 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; local 53 buttons[i].gpio = ucb->gpio.base + i; 63 pdev = platform_device_register_data(&ucb->dev, "gpio-keys", -1, 66 device_create_file(&ucb->dev, &dev_attr_vbatt); 67 device_create_file(&ucb [all...] |
/drivers/input/touchscreen/ |
H A D | ucb1400_ts.c | 38 static void ucb1400_ts_mode_int(struct ucb1400_ts *ucb) argument 40 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, 50 static unsigned int ucb1400_ts_read_pressure(struct ucb1400_ts *ucb) argument 52 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, 59 return ucb1400_adc_read(ucb->ac97, UCB_ADC_INP_TSPY, adcsync); 68 static unsigned int ucb1400_ts_read_xpos(struct ucb1400_ts *ucb) argument 70 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, 73 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, 76 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, 82 return ucb1400_adc_read(ucb 91 ucb1400_ts_read_ypos(struct ucb1400_ts *ucb) argument 112 ucb1400_ts_read_xres(struct ucb1400_ts *ucb) argument 124 ucb1400_ts_read_yres(struct ucb1400_ts *ucb) argument 132 ucb1400_ts_pen_up(struct ucb1400_ts *ucb) argument 139 ucb1400_ts_irq_enable(struct ucb1400_ts *ucb) argument 146 ucb1400_ts_irq_disable(struct ucb1400_ts *ucb) argument 167 ucb1400_clear_pending_irq(struct ucb1400_ts *ucb) argument 191 struct ucb1400_ts *ucb = devid; local 228 ucb1400_ts_stop(struct ucb1400_ts *ucb) argument 241 ucb1400_ts_start(struct ucb1400_ts *ucb) argument 255 struct ucb1400_ts *ucb = input_get_drvdata(idev); local 264 struct ucb1400_ts *ucb = input_get_drvdata(idev); local 277 ucb1400_ts_detect_irq(struct ucb1400_ts *ucb, struct platform_device *pdev) argument 323 struct ucb1400_ts *ucb = pdev->dev.platform_data; local 402 struct ucb1400_ts *ucb = pdev->dev.platform_data; local 413 struct ucb1400_ts *ucb = dev->platform_data; local 427 struct ucb1400_ts *ucb = dev->platform_data; local [all...] |
/drivers/gpio/ |
H A D | gpio-ucb1400.c | 50 struct ucb1400_gpio *ucb = dev->dev.platform_data; local 58 platform_set_drvdata(dev, ucb); 60 ucb->gc.label = "ucb1400_gpio"; 61 ucb->gc.base = ucbdata->gpio_offset; 62 ucb->gc.ngpio = 10; 63 ucb->gc.owner = THIS_MODULE; 65 ucb->gc.direction_input = ucb1400_gpio_dir_in; 66 ucb->gc.direction_output = ucb1400_gpio_dir_out; 67 ucb->gc.get = ucb1400_gpio_get; 68 ucb 86 struct ucb1400_gpio *ucb = platform_get_drvdata(dev); local [all...] |
/drivers/power/ |
H A D | collie_battery.c | 28 static struct ucb1x00 *ucb; variable in typeref:struct:ucb1x00 65 ucb1x00_adc_enable(ucb); 66 value = ucb1x00_adc_read(ucb, bat->adc_bat, UCB_SYNC); 67 ucb1x00_adc_disable(ucb); 84 ucb1x00_adc_enable(ucb); 85 value = ucb1x00_adc_read(ucb, bat->adc_temp, UCB_SYNC); 86 ucb1x00_adc_disable(ucb); 315 ucb = dev->ucb; 326 ret = power_supply_register(&dev->ucb [all...] |
/drivers/media/dvb/frontends/ |
H A D | tda10071_priv.h | 48 u32 ucb; member in struct:tda10071_priv
|
H A D | tda10071.c | 607 priv->ucb += (buf[4] << 8) | buf[5]; 631 *ucblocks = priv->ucb;
|
/drivers/pinctrl/ |
H A D | pinctrl-tegra20.c | 2050 "ucb", 2184 "ucb", 2312 "ucb", 2462 "ucb", 2787 MUX_PG(ucb, UARTC, PWM, GMI, RSVD4, RSVD4, 0x18, 23, 0x84, 18, 0xac, 10),
|