ucb 45 drivers/gpio/gpio-ucb1400.c struct ucb1400_gpio *ucb = dev_get_platdata(&dev->dev); ucb 48 drivers/gpio/gpio-ucb1400.c if (!(ucb && ucb->gpio_offset)) { ucb 53 drivers/gpio/gpio-ucb1400.c platform_set_drvdata(dev, ucb); ucb 55 drivers/gpio/gpio-ucb1400.c ucb->gc.label = "ucb1400_gpio"; ucb 56 drivers/gpio/gpio-ucb1400.c ucb->gc.base = ucb->gpio_offset; ucb 57 drivers/gpio/gpio-ucb1400.c ucb->gc.ngpio = 10; ucb 58 drivers/gpio/gpio-ucb1400.c ucb->gc.owner = THIS_MODULE; ucb 60 drivers/gpio/gpio-ucb1400.c ucb->gc.direction_input = ucb1400_gpio_dir_in; ucb 61 drivers/gpio/gpio-ucb1400.c ucb->gc.direction_output = ucb1400_gpio_dir_out; ucb 62 drivers/gpio/gpio-ucb1400.c ucb->gc.get = ucb1400_gpio_get; ucb 63 drivers/gpio/gpio-ucb1400.c ucb->gc.set = ucb1400_gpio_set; ucb 64 drivers/gpio/gpio-ucb1400.c ucb->gc.can_sleep = true; ucb 66 drivers/gpio/gpio-ucb1400.c err = devm_gpiochip_add_data(&dev->dev, &ucb->gc, ucb); ucb 70 drivers/gpio/gpio-ucb1400.c if (ucb->gpio_setup) ucb 71 drivers/gpio/gpio-ucb1400.c err = ucb->gpio_setup(&dev->dev, ucb->gc.ngpio); ucb 81 drivers/gpio/gpio-ucb1400.c struct ucb1400_gpio *ucb = platform_get_drvdata(dev); ucb 83 drivers/gpio/gpio-ucb1400.c if (ucb && ucb->gpio_teardown) { ucb 84 drivers/gpio/gpio-ucb1400.c err = ucb->gpio_teardown(&dev->dev, ucb->gc.ngpio); ucb 34 drivers/input/touchscreen/ucb1400_ts.c static void ucb1400_ts_mode_int(struct ucb1400_ts *ucb) ucb 36 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_TS_CR, ucb 46 drivers/input/touchscreen/ucb1400_ts.c static unsigned int ucb1400_ts_read_pressure(struct ucb1400_ts *ucb) ucb 48 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_TS_CR, ucb 55 drivers/input/touchscreen/ucb1400_ts.c return ucb1400_adc_read(ucb->ac97, UCB_ADC_INP_TSPY, adcsync); ucb 64 drivers/input/touchscreen/ucb1400_ts.c static unsigned int ucb1400_ts_read_xpos(struct ucb1400_ts *ucb) ucb 66 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_TS_CR, ucb 69 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_TS_CR, ucb 72 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_TS_CR, ucb 78 drivers/input/touchscreen/ucb1400_ts.c return ucb1400_adc_read(ucb->ac97, UCB_ADC_INP_TSPY, adcsync); ucb 87 drivers/input/touchscreen/ucb1400_ts.c static int ucb1400_ts_read_ypos(struct ucb1400_ts *ucb) ucb 89 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_TS_CR, ucb 92 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_TS_CR, ucb 95 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_TS_CR, ucb 101 drivers/input/touchscreen/ucb1400_ts.c return ucb1400_adc_read(ucb->ac97, UCB_ADC_INP_TSPX, adcsync); ucb 108 drivers/input/touchscreen/ucb1400_ts.c static unsigned int ucb1400_ts_read_xres(struct ucb1400_ts *ucb) ucb 110 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_TS_CR, ucb 113 drivers/input/touchscreen/ucb1400_ts.c return ucb1400_adc_read(ucb->ac97, 0, adcsync); ucb 120 drivers/input/touchscreen/ucb1400_ts.c static unsigned int ucb1400_ts_read_yres(struct ucb1400_ts *ucb) ucb 122 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_TS_CR, ucb 125 drivers/input/touchscreen/ucb1400_ts.c return ucb1400_adc_read(ucb->ac97, 0, adcsync); ucb 128 drivers/input/touchscreen/ucb1400_ts.c static int ucb1400_ts_pen_up(struct ucb1400_ts *ucb) ucb 130 drivers/input/touchscreen/ucb1400_ts.c unsigned short val = ucb1400_reg_read(ucb->ac97, UCB_TS_CR); ucb 135 drivers/input/touchscreen/ucb1400_ts.c static void ucb1400_ts_irq_enable(struct ucb1400_ts *ucb) ucb 137 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_IE_CLEAR, UCB_IE_TSPX); ucb 138 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_IE_CLEAR, 0); ucb 139 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_IE_FAL, UCB_IE_TSPX); ucb 142 drivers/input/touchscreen/ucb1400_ts.c static void ucb1400_ts_irq_disable(struct ucb1400_ts *ucb) ucb 144 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_IE_FAL, 0); ucb 163 drivers/input/touchscreen/ucb1400_ts.c static void ucb1400_clear_pending_irq(struct ucb1400_ts *ucb) ucb 167 drivers/input/touchscreen/ucb1400_ts.c isr = ucb1400_reg_read(ucb->ac97, UCB_IE_STATUS); ucb 168 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_IE_CLEAR, isr); ucb 169 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_IE_CLEAR, 0); ucb 172 drivers/input/touchscreen/ucb1400_ts.c ucb1400_ts_irq_disable(ucb); ucb 174 drivers/input/touchscreen/ucb1400_ts.c dev_dbg(&ucb->ts_idev->dev, ucb 187 drivers/input/touchscreen/ucb1400_ts.c struct ucb1400_ts *ucb = devid; ucb 191 drivers/input/touchscreen/ucb1400_ts.c if (unlikely(irqnr != ucb->irq)) ucb 194 drivers/input/touchscreen/ucb1400_ts.c ucb1400_clear_pending_irq(ucb); ucb 199 drivers/input/touchscreen/ucb1400_ts.c while (!ucb->stopped && !(penup = ucb1400_ts_pen_up(ucb))) { ucb 201 drivers/input/touchscreen/ucb1400_ts.c ucb1400_adc_enable(ucb->ac97); ucb 202 drivers/input/touchscreen/ucb1400_ts.c x = ucb1400_ts_read_xpos(ucb); ucb 203 drivers/input/touchscreen/ucb1400_ts.c y = ucb1400_ts_read_ypos(ucb); ucb 204 drivers/input/touchscreen/ucb1400_ts.c p = ucb1400_ts_read_pressure(ucb); ucb 205 drivers/input/touchscreen/ucb1400_ts.c ucb1400_adc_disable(ucb->ac97); ucb 207 drivers/input/touchscreen/ucb1400_ts.c ucb1400_ts_report_event(ucb->ts_idev, p, x, y); ucb 209 drivers/input/touchscreen/ucb1400_ts.c wait_event_timeout(ucb->ts_wait, ucb->stopped, ucb 213 drivers/input/touchscreen/ucb1400_ts.c ucb1400_ts_event_release(ucb->ts_idev); ucb 215 drivers/input/touchscreen/ucb1400_ts.c if (!ucb->stopped) { ucb 217 drivers/input/touchscreen/ucb1400_ts.c ucb1400_ts_mode_int(ucb); ucb 218 drivers/input/touchscreen/ucb1400_ts.c ucb1400_ts_irq_enable(ucb); ucb 224 drivers/input/touchscreen/ucb1400_ts.c static void ucb1400_ts_stop(struct ucb1400_ts *ucb) ucb 227 drivers/input/touchscreen/ucb1400_ts.c ucb->stopped = true; ucb 229 drivers/input/touchscreen/ucb1400_ts.c wake_up(&ucb->ts_wait); ucb 230 drivers/input/touchscreen/ucb1400_ts.c disable_irq(ucb->irq); ucb 232 drivers/input/touchscreen/ucb1400_ts.c ucb1400_ts_irq_disable(ucb); ucb 233 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_TS_CR, 0); ucb 237 drivers/input/touchscreen/ucb1400_ts.c static void ucb1400_ts_start(struct ucb1400_ts *ucb) ucb 240 drivers/input/touchscreen/ucb1400_ts.c ucb->stopped = false; ucb 243 drivers/input/touchscreen/ucb1400_ts.c ucb1400_ts_mode_int(ucb); ucb 244 drivers/input/touchscreen/ucb1400_ts.c ucb1400_ts_irq_enable(ucb); ucb 246 drivers/input/touchscreen/ucb1400_ts.c enable_irq(ucb->irq); ucb 251 drivers/input/touchscreen/ucb1400_ts.c struct ucb1400_ts *ucb = input_get_drvdata(idev); ucb 253 drivers/input/touchscreen/ucb1400_ts.c ucb1400_ts_start(ucb); ucb 260 drivers/input/touchscreen/ucb1400_ts.c struct ucb1400_ts *ucb = input_get_drvdata(idev); ucb 262 drivers/input/touchscreen/ucb1400_ts.c ucb1400_ts_stop(ucb); ucb 273 drivers/input/touchscreen/ucb1400_ts.c static int ucb1400_ts_detect_irq(struct ucb1400_ts *ucb, ucb 281 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_IE_RIS, UCB_IE_ADC); ucb 282 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_IE_FAL, UCB_IE_ADC); ucb 283 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_IE_CLEAR, 0xffff); ucb 284 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_IE_CLEAR, 0); ucb 287 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_ADC_CR, UCB_ADC_ENA); ucb 288 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_ADC_CR, UCB_ADC_ENA | UCB_ADC_START); ucb 292 drivers/input/touchscreen/ucb1400_ts.c while (!(ucb1400_reg_read(ucb->ac97, UCB_ADC_DATA) & ucb 301 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_ADC_CR, 0); ucb 304 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_IE_RIS, 0); ucb 305 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_IE_FAL, 0); ucb 306 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_IE_CLEAR, 0xffff); ucb 307 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_IE_CLEAR, 0); ucb 310 drivers/input/touchscreen/ucb1400_ts.c ucb->irq = probe_irq_off(mask); ucb 311 drivers/input/touchscreen/ucb1400_ts.c if (ucb->irq < 0 || ucb->irq == NO_IRQ) ucb 319 drivers/input/touchscreen/ucb1400_ts.c struct ucb1400_ts *ucb = dev_get_platdata(&pdev->dev); ucb 323 drivers/input/touchscreen/ucb1400_ts.c ucb->ts_idev = input_allocate_device(); ucb 324 drivers/input/touchscreen/ucb1400_ts.c if (!ucb->ts_idev) { ucb 330 drivers/input/touchscreen/ucb1400_ts.c if (ucb->irq < 0) { ucb 331 drivers/input/touchscreen/ucb1400_ts.c error = ucb1400_ts_detect_irq(ucb, pdev); ucb 337 drivers/input/touchscreen/ucb1400_ts.c dev_dbg(&pdev->dev, "found IRQ %d\n", ucb->irq); ucb 339 drivers/input/touchscreen/ucb1400_ts.c init_waitqueue_head(&ucb->ts_wait); ucb 341 drivers/input/touchscreen/ucb1400_ts.c input_set_drvdata(ucb->ts_idev, ucb); ucb 343 drivers/input/touchscreen/ucb1400_ts.c ucb->ts_idev->dev.parent = &pdev->dev; ucb 344 drivers/input/touchscreen/ucb1400_ts.c ucb->ts_idev->name = "UCB1400 touchscreen interface"; ucb 345 drivers/input/touchscreen/ucb1400_ts.c ucb->ts_idev->id.vendor = ucb1400_reg_read(ucb->ac97, ucb 347 drivers/input/touchscreen/ucb1400_ts.c ucb->ts_idev->id.product = ucb->id; ucb 348 drivers/input/touchscreen/ucb1400_ts.c ucb->ts_idev->open = ucb1400_ts_open; ucb 349 drivers/input/touchscreen/ucb1400_ts.c ucb->ts_idev->close = ucb1400_ts_close; ucb 350 drivers/input/touchscreen/ucb1400_ts.c ucb->ts_idev->evbit[0] = BIT_MASK(EV_ABS) | BIT_MASK(EV_KEY); ucb 351 drivers/input/touchscreen/ucb1400_ts.c ucb->ts_idev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); ucb 358 drivers/input/touchscreen/ucb1400_ts.c fcsr = ucb1400_reg_read(ucb->ac97, UCB_FCSR); ucb 359 drivers/input/touchscreen/ucb1400_ts.c ucb1400_reg_write(ucb->ac97, UCB_FCSR, fcsr | UCB_FCSR_AVE); ucb 361 drivers/input/touchscreen/ucb1400_ts.c ucb1400_adc_enable(ucb->ac97); ucb 362 drivers/input/touchscreen/ucb1400_ts.c x_res = ucb1400_ts_read_xres(ucb); ucb 363 drivers/input/touchscreen/ucb1400_ts.c y_res = ucb1400_ts_read_yres(ucb); ucb 364 drivers/input/touchscreen/ucb1400_ts.c ucb1400_adc_disable(ucb->ac97); ucb 367 drivers/input/touchscreen/ucb1400_ts.c input_set_abs_params(ucb->ts_idev, ABS_X, 0, x_res, 0, 0); ucb 368 drivers/input/touchscreen/ucb1400_ts.c input_set_abs_params(ucb->ts_idev, ABS_Y, 0, y_res, 0, 0); ucb 369 drivers/input/touchscreen/ucb1400_ts.c input_set_abs_params(ucb->ts_idev, ABS_PRESSURE, 0, 0, 0, 0); ucb 371 drivers/input/touchscreen/ucb1400_ts.c ucb1400_ts_stop(ucb); ucb 373 drivers/input/touchscreen/ucb1400_ts.c error = request_threaded_irq(ucb->irq, NULL, ucb1400_irq, ucb 375 drivers/input/touchscreen/ucb1400_ts.c "UCB1400", ucb); ucb 378 drivers/input/touchscreen/ucb1400_ts.c "unable to grab irq%d: %d\n", ucb->irq, error); ucb 382 drivers/input/touchscreen/ucb1400_ts.c error = input_register_device(ucb->ts_idev); ucb 389 drivers/input/touchscreen/ucb1400_ts.c free_irq(ucb->irq, ucb); ucb 391 drivers/input/touchscreen/ucb1400_ts.c input_free_device(ucb->ts_idev); ucb 398 drivers/input/touchscreen/ucb1400_ts.c struct ucb1400_ts *ucb = dev_get_platdata(&pdev->dev); ucb 400 drivers/input/touchscreen/ucb1400_ts.c free_irq(ucb->irq, ucb); ucb 401 drivers/input/touchscreen/ucb1400_ts.c input_unregister_device(ucb->ts_idev); ucb 408 drivers/input/touchscreen/ucb1400_ts.c struct ucb1400_ts *ucb = dev_get_platdata(dev); ucb 409 drivers/input/touchscreen/ucb1400_ts.c struct input_dev *idev = ucb->ts_idev; ucb 414 drivers/input/touchscreen/ucb1400_ts.c ucb1400_ts_stop(ucb); ucb 422 drivers/input/touchscreen/ucb1400_ts.c struct ucb1400_ts *ucb = dev_get_platdata(dev); ucb 423 drivers/input/touchscreen/ucb1400_ts.c struct input_dev *idev = ucb->ts_idev; ucb 428 drivers/input/touchscreen/ucb1400_ts.c ucb1400_ts_start(ucb); ucb 610 drivers/media/dvb-frontends/cx24120.c u16 sig, ucb; ucb 689 drivers/media/dvb-frontends/cx24120.c ucb = cx24120_readreg(state, CX24120_REG_UCB_H) << 8; ucb 690 drivers/media/dvb-frontends/cx24120.c ucb |= cx24120_readreg(state, CX24120_REG_UCB_L); ucb 691 drivers/media/dvb-frontends/cx24120.c dev_dbg(&state->i2c->dev, "ucblocks = %d\n", ucb); ucb 694 drivers/media/dvb-frontends/cx24120.c if (ucb < state->ucb_offset) ucb 698 drivers/media/dvb-frontends/cx24120.c c->block_error.stat[0].uvalue = ucb + state->ucb_offset; ucb 1668 drivers/media/dvb-frontends/dib7000p.c u32 ucb; ucb 1692 drivers/media/dvb-frontends/dib7000p.c dib7000p_read_unc_blocks(demod, &ucb); ucb 1694 drivers/media/dvb-frontends/dib7000p.c state->old_ucb = ucb; ucb 1902 drivers/media/dvb-frontends/dib7000p.c u64 blocks, ucb; ucb 1944 drivers/media/dvb-frontends/dib7000p.c ucb = val - state->old_ucb; ucb 1946 drivers/media/dvb-frontends/dib7000p.c ucb += 0x100000000LL; ucb 1949 drivers/media/dvb-frontends/dib7000p.c c->block_error.stat[0].uvalue = ucb; ucb 999 drivers/media/dvb-frontends/dib8000.c u32 ucb; ucb 1023 drivers/media/dvb-frontends/dib8000.c dib8000_read_unc_blocks(fe, &ucb); ucb 1025 drivers/media/dvb-frontends/dib8000.c state->init_ucb = -ucb; ucb 12058 drivers/media/dvb-frontends/drx39xyj/drxj.c static int drx39xxj_read_ucblocks(struct dvb_frontend *fe, u32 *ucb) ucb 12063 drivers/media/dvb-frontends/drx39xyj/drxj.c *ucb = 0; ucb 12067 drivers/media/dvb-frontends/drx39xyj/drxj.c *ucb = p->block_error.stat[0].uvalue; ucb 48 drivers/mfd/ucb1400_core.c struct ucb1400 *ucb; ucb 57 drivers/mfd/ucb1400_core.c ucb = kzalloc(sizeof(struct ucb1400), GFP_KERNEL); ucb 58 drivers/mfd/ucb1400_core.c if (!ucb) { ucb 63 drivers/mfd/ucb1400_core.c dev_set_drvdata(dev, ucb); ucb 80 drivers/mfd/ucb1400_core.c ucb->ucb1400_gpio = platform_device_alloc("ucb1400_gpio", -1); ucb 81 drivers/mfd/ucb1400_core.c if (!ucb->ucb1400_gpio) { ucb 85 drivers/mfd/ucb1400_core.c err = platform_device_add_data(ucb->ucb1400_gpio, &ucb_gpio, ucb 89 drivers/mfd/ucb1400_core.c err = platform_device_add(ucb->ucb1400_gpio); ucb 101 drivers/mfd/ucb1400_core.c ucb->ucb1400_ts = platform_device_alloc("ucb1400_ts", -1); ucb 102 drivers/mfd/ucb1400_core.c if (!ucb->ucb1400_ts) { ucb 106 drivers/mfd/ucb1400_core.c err = platform_device_add_data(ucb->ucb1400_ts, &ucb_ts, ucb 110 drivers/mfd/ucb1400_core.c err = platform_device_add(ucb->ucb1400_ts); ucb 117 drivers/mfd/ucb1400_core.c platform_device_put(ucb->ucb1400_ts); ucb 119 drivers/mfd/ucb1400_core.c platform_device_del(ucb->ucb1400_gpio); ucb 121 drivers/mfd/ucb1400_core.c platform_device_put(ucb->ucb1400_gpio); ucb 123 drivers/mfd/ucb1400_core.c kfree(ucb); ucb 130 drivers/mfd/ucb1400_core.c struct ucb1400 *ucb = dev_get_drvdata(dev); ucb 132 drivers/mfd/ucb1400_core.c platform_device_unregister(ucb->ucb1400_ts); ucb 133 drivers/mfd/ucb1400_core.c platform_device_unregister(ucb->ucb1400_gpio); ucb 135 drivers/mfd/ucb1400_core.c kfree(ucb); ucb 24 drivers/mfd/ucb1x00-assabet.c struct ucb1x00 *ucb = classdev_to_ucb1x00(dev); \ ucb 26 drivers/mfd/ucb1x00-assabet.c ucb1x00_adc_enable(ucb); \ ucb 27 drivers/mfd/ucb1x00-assabet.c val = ucb1x00_adc_read(ucb, input, UCB_NOSYNC); \ ucb 28 drivers/mfd/ucb1x00-assabet.c ucb1x00_adc_disable(ucb); \ ucb 39 drivers/mfd/ucb1x00-assabet.c struct ucb1x00 *ucb = dev->ucb; ucb 50 drivers/mfd/ucb1x00-assabet.c buttons[i].gpio = ucb->gpio.base + i; ucb 60 drivers/mfd/ucb1x00-assabet.c pdev = platform_device_register_data(&ucb->dev, "gpio-keys", -1, ucb 63 drivers/mfd/ucb1x00-assabet.c device_create_file(&ucb->dev, &dev_attr_vbatt); ucb 64 drivers/mfd/ucb1x00-assabet.c device_create_file(&ucb->dev, &dev_attr_vcharger); ucb 65 drivers/mfd/ucb1x00-assabet.c device_create_file(&ucb->dev, &dev_attr_batt_temp); ucb 78 drivers/mfd/ucb1x00-assabet.c device_remove_file(&dev->ucb->dev, &dev_attr_batt_temp); ucb 79 drivers/mfd/ucb1x00-assabet.c device_remove_file(&dev->ucb->dev, &dev_attr_vcharger); ucb 80 drivers/mfd/ucb1x00-assabet.c device_remove_file(&dev->ucb->dev, &dev_attr_vbatt); ucb 50 drivers/mfd/ucb1x00-core.c void ucb1x00_io_set_dir(struct ucb1x00 *ucb, unsigned int in, unsigned int out) ucb 54 drivers/mfd/ucb1x00-core.c spin_lock_irqsave(&ucb->io_lock, flags); ucb 55 drivers/mfd/ucb1x00-core.c ucb->io_dir |= out; ucb 56 drivers/mfd/ucb1x00-core.c ucb->io_dir &= ~in; ucb 58 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IO_DIR, ucb->io_dir); ucb 59 drivers/mfd/ucb1x00-core.c spin_unlock_irqrestore(&ucb->io_lock, flags); ucb 78 drivers/mfd/ucb1x00-core.c void ucb1x00_io_write(struct ucb1x00 *ucb, unsigned int set, unsigned int clear) ucb 82 drivers/mfd/ucb1x00-core.c spin_lock_irqsave(&ucb->io_lock, flags); ucb 83 drivers/mfd/ucb1x00-core.c ucb->io_out |= set; ucb 84 drivers/mfd/ucb1x00-core.c ucb->io_out &= ~clear; ucb 86 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IO_DATA, ucb->io_out); ucb 87 drivers/mfd/ucb1x00-core.c spin_unlock_irqrestore(&ucb->io_lock, flags); ucb 102 drivers/mfd/ucb1x00-core.c unsigned int ucb1x00_io_read(struct ucb1x00 *ucb) ucb 104 drivers/mfd/ucb1x00-core.c return ucb1x00_reg_read(ucb, UCB_IO_DATA); ucb 109 drivers/mfd/ucb1x00-core.c struct ucb1x00 *ucb = gpiochip_get_data(chip); ucb 112 drivers/mfd/ucb1x00-core.c spin_lock_irqsave(&ucb->io_lock, flags); ucb 114 drivers/mfd/ucb1x00-core.c ucb->io_out |= 1 << offset; ucb 116 drivers/mfd/ucb1x00-core.c ucb->io_out &= ~(1 << offset); ucb 118 drivers/mfd/ucb1x00-core.c ucb1x00_enable(ucb); ucb 119 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IO_DATA, ucb->io_out); ucb 120 drivers/mfd/ucb1x00-core.c ucb1x00_disable(ucb); ucb 121 drivers/mfd/ucb1x00-core.c spin_unlock_irqrestore(&ucb->io_lock, flags); ucb 126 drivers/mfd/ucb1x00-core.c struct ucb1x00 *ucb = gpiochip_get_data(chip); ucb 129 drivers/mfd/ucb1x00-core.c ucb1x00_enable(ucb); ucb 130 drivers/mfd/ucb1x00-core.c val = ucb1x00_reg_read(ucb, UCB_IO_DATA); ucb 131 drivers/mfd/ucb1x00-core.c ucb1x00_disable(ucb); ucb 138 drivers/mfd/ucb1x00-core.c struct ucb1x00 *ucb = gpiochip_get_data(chip); ucb 141 drivers/mfd/ucb1x00-core.c spin_lock_irqsave(&ucb->io_lock, flags); ucb 142 drivers/mfd/ucb1x00-core.c ucb->io_dir &= ~(1 << offset); ucb 143 drivers/mfd/ucb1x00-core.c ucb1x00_enable(ucb); ucb 144 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IO_DIR, ucb->io_dir); ucb 145 drivers/mfd/ucb1x00-core.c ucb1x00_disable(ucb); ucb 146 drivers/mfd/ucb1x00-core.c spin_unlock_irqrestore(&ucb->io_lock, flags); ucb 154 drivers/mfd/ucb1x00-core.c struct ucb1x00 *ucb = gpiochip_get_data(chip); ucb 158 drivers/mfd/ucb1x00-core.c spin_lock_irqsave(&ucb->io_lock, flags); ucb 159 drivers/mfd/ucb1x00-core.c old = ucb->io_out; ucb 161 drivers/mfd/ucb1x00-core.c ucb->io_out |= mask; ucb 163 drivers/mfd/ucb1x00-core.c ucb->io_out &= ~mask; ucb 165 drivers/mfd/ucb1x00-core.c ucb1x00_enable(ucb); ucb 166 drivers/mfd/ucb1x00-core.c if (old != ucb->io_out) ucb 167 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IO_DATA, ucb->io_out); ucb 169 drivers/mfd/ucb1x00-core.c if (!(ucb->io_dir & mask)) { ucb 170 drivers/mfd/ucb1x00-core.c ucb->io_dir |= mask; ucb 171 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IO_DIR, ucb->io_dir); ucb 173 drivers/mfd/ucb1x00-core.c ucb1x00_disable(ucb); ucb 174 drivers/mfd/ucb1x00-core.c spin_unlock_irqrestore(&ucb->io_lock, flags); ucb 181 drivers/mfd/ucb1x00-core.c struct ucb1x00 *ucb = gpiochip_get_data(chip); ucb 183 drivers/mfd/ucb1x00-core.c return ucb->irq_base > 0 ? ucb->irq_base + offset : -ENXIO; ucb 211 drivers/mfd/ucb1x00-core.c void ucb1x00_adc_enable(struct ucb1x00 *ucb) ucb 213 drivers/mfd/ucb1x00-core.c mutex_lock(&ucb->adc_mutex); ucb 215 drivers/mfd/ucb1x00-core.c ucb->adc_cr |= UCB_ADC_ENA; ucb 217 drivers/mfd/ucb1x00-core.c ucb1x00_enable(ucb); ucb 218 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_ADC_CR, ucb->adc_cr); ucb 237 drivers/mfd/ucb1x00-core.c unsigned int ucb1x00_adc_read(struct ucb1x00 *ucb, int adc_channel, int sync) ucb 244 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_ADC_CR, ucb->adc_cr | adc_channel); ucb 245 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_ADC_CR, ucb->adc_cr | adc_channel | UCB_ADC_START); ucb 248 drivers/mfd/ucb1x00-core.c val = ucb1x00_reg_read(ucb, UCB_ADC_DATA); ucb 265 drivers/mfd/ucb1x00-core.c void ucb1x00_adc_disable(struct ucb1x00 *ucb) ucb 267 drivers/mfd/ucb1x00-core.c ucb->adc_cr &= ~UCB_ADC_ENA; ucb 268 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_ADC_CR, ucb->adc_cr); ucb 269 drivers/mfd/ucb1x00-core.c ucb1x00_disable(ucb); ucb 271 drivers/mfd/ucb1x00-core.c mutex_unlock(&ucb->adc_mutex); ucb 284 drivers/mfd/ucb1x00-core.c struct ucb1x00 *ucb = irq_desc_get_handler_data(desc); ucb 287 drivers/mfd/ucb1x00-core.c ucb1x00_enable(ucb); ucb 288 drivers/mfd/ucb1x00-core.c isr = ucb1x00_reg_read(ucb, UCB_IE_STATUS); ucb 289 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_CLEAR, isr); ucb 290 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_CLEAR, 0); ucb 294 drivers/mfd/ucb1x00-core.c generic_handle_irq(ucb->irq_base + i); ucb 295 drivers/mfd/ucb1x00-core.c ucb1x00_disable(ucb); ucb 298 drivers/mfd/ucb1x00-core.c static void ucb1x00_irq_update(struct ucb1x00 *ucb, unsigned mask) ucb 300 drivers/mfd/ucb1x00-core.c ucb1x00_enable(ucb); ucb 301 drivers/mfd/ucb1x00-core.c if (ucb->irq_ris_enbl & mask) ucb 302 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_RIS, ucb->irq_ris_enbl & ucb 303 drivers/mfd/ucb1x00-core.c ucb->irq_mask); ucb 304 drivers/mfd/ucb1x00-core.c if (ucb->irq_fal_enbl & mask) ucb 305 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_FAL, ucb->irq_fal_enbl & ucb 306 drivers/mfd/ucb1x00-core.c ucb->irq_mask); ucb 307 drivers/mfd/ucb1x00-core.c ucb1x00_disable(ucb); ucb 316 drivers/mfd/ucb1x00-core.c struct ucb1x00 *ucb = irq_data_get_irq_chip_data(data); ucb 317 drivers/mfd/ucb1x00-core.c unsigned mask = 1 << (data->irq - ucb->irq_base); ucb 319 drivers/mfd/ucb1x00-core.c raw_spin_lock(&ucb->irq_lock); ucb 320 drivers/mfd/ucb1x00-core.c ucb->irq_mask &= ~mask; ucb 321 drivers/mfd/ucb1x00-core.c ucb1x00_irq_update(ucb, mask); ucb 322 drivers/mfd/ucb1x00-core.c raw_spin_unlock(&ucb->irq_lock); ucb 327 drivers/mfd/ucb1x00-core.c struct ucb1x00 *ucb = irq_data_get_irq_chip_data(data); ucb 328 drivers/mfd/ucb1x00-core.c unsigned mask = 1 << (data->irq - ucb->irq_base); ucb 330 drivers/mfd/ucb1x00-core.c raw_spin_lock(&ucb->irq_lock); ucb 331 drivers/mfd/ucb1x00-core.c ucb->irq_mask |= mask; ucb 332 drivers/mfd/ucb1x00-core.c ucb1x00_irq_update(ucb, mask); ucb 333 drivers/mfd/ucb1x00-core.c raw_spin_unlock(&ucb->irq_lock); ucb 338 drivers/mfd/ucb1x00-core.c struct ucb1x00 *ucb = irq_data_get_irq_chip_data(data); ucb 339 drivers/mfd/ucb1x00-core.c unsigned mask = 1 << (data->irq - ucb->irq_base); ucb 341 drivers/mfd/ucb1x00-core.c raw_spin_lock(&ucb->irq_lock); ucb 343 drivers/mfd/ucb1x00-core.c ucb->irq_ris_enbl |= mask; ucb 345 drivers/mfd/ucb1x00-core.c ucb->irq_ris_enbl &= ~mask; ucb 348 drivers/mfd/ucb1x00-core.c ucb->irq_fal_enbl |= mask; ucb 350 drivers/mfd/ucb1x00-core.c ucb->irq_fal_enbl &= ~mask; ucb 351 drivers/mfd/ucb1x00-core.c if (ucb->irq_mask & mask) { ucb 352 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_RIS, ucb->irq_ris_enbl & ucb 353 drivers/mfd/ucb1x00-core.c ucb->irq_mask); ucb 354 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_FAL, ucb->irq_fal_enbl & ucb 355 drivers/mfd/ucb1x00-core.c ucb->irq_mask); ucb 357 drivers/mfd/ucb1x00-core.c raw_spin_unlock(&ucb->irq_lock); ucb 364 drivers/mfd/ucb1x00-core.c struct ucb1x00 *ucb = irq_data_get_irq_chip_data(data); ucb 365 drivers/mfd/ucb1x00-core.c struct ucb1x00_plat_data *pdata = ucb->mcp->attached_device.platform_data; ucb 366 drivers/mfd/ucb1x00-core.c unsigned mask = 1 << (data->irq - ucb->irq_base); ucb 371 drivers/mfd/ucb1x00-core.c raw_spin_lock(&ucb->irq_lock); ucb 373 drivers/mfd/ucb1x00-core.c ucb->irq_wake |= mask; ucb 375 drivers/mfd/ucb1x00-core.c ucb->irq_wake &= ~mask; ucb 376 drivers/mfd/ucb1x00-core.c raw_spin_unlock(&ucb->irq_lock); ucb 390 drivers/mfd/ucb1x00-core.c static int ucb1x00_add_dev(struct ucb1x00 *ucb, struct ucb1x00_driver *drv) ucb 399 drivers/mfd/ucb1x00-core.c dev->ucb = ucb; ucb 408 drivers/mfd/ucb1x00-core.c list_add_tail(&dev->dev_node, &ucb->devs); ucb 441 drivers/mfd/ucb1x00-core.c static int ucb1x00_detect_irq(struct ucb1x00 *ucb) ucb 450 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_RIS, UCB_IE_ADC); ucb 451 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_FAL, UCB_IE_ADC); ucb 452 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_CLEAR, 0xffff); ucb 453 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_CLEAR, 0); ucb 458 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_ADC_CR, UCB_ADC_ENA); ucb 459 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_ADC_CR, UCB_ADC_ENA | UCB_ADC_START); ucb 464 drivers/mfd/ucb1x00-core.c while ((ucb1x00_reg_read(ucb, UCB_ADC_DATA) & UCB_ADC_DAT_VAL) == 0); ucb 465 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_ADC_CR, 0); ucb 470 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_RIS, 0); ucb 471 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_FAL, 0); ucb 472 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_CLEAR, 0xffff); ucb 473 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_CLEAR, 0); ucb 483 drivers/mfd/ucb1x00-core.c struct ucb1x00 *ucb = classdev_to_ucb1x00(dev); ucb 484 drivers/mfd/ucb1x00-core.c kfree(ucb); ucb 496 drivers/mfd/ucb1x00-core.c struct ucb1x00 *ucb; ucb 513 drivers/mfd/ucb1x00-core.c ucb = kzalloc(sizeof(struct ucb1x00), GFP_KERNEL); ucb 515 drivers/mfd/ucb1x00-core.c if (!ucb) ucb 518 drivers/mfd/ucb1x00-core.c device_initialize(&ucb->dev); ucb 519 drivers/mfd/ucb1x00-core.c ucb->dev.class = &ucb1x00_class; ucb 520 drivers/mfd/ucb1x00-core.c ucb->dev.parent = &mcp->attached_device; ucb 521 drivers/mfd/ucb1x00-core.c dev_set_name(&ucb->dev, "ucb1x00"); ucb 523 drivers/mfd/ucb1x00-core.c raw_spin_lock_init(&ucb->irq_lock); ucb 524 drivers/mfd/ucb1x00-core.c spin_lock_init(&ucb->io_lock); ucb 525 drivers/mfd/ucb1x00-core.c mutex_init(&ucb->adc_mutex); ucb 527 drivers/mfd/ucb1x00-core.c ucb->id = id; ucb 528 drivers/mfd/ucb1x00-core.c ucb->mcp = mcp; ucb 530 drivers/mfd/ucb1x00-core.c ret = device_add(&ucb->dev); ucb 534 drivers/mfd/ucb1x00-core.c ucb1x00_enable(ucb); ucb 535 drivers/mfd/ucb1x00-core.c ucb->irq = ucb1x00_detect_irq(ucb); ucb 536 drivers/mfd/ucb1x00-core.c ucb1x00_disable(ucb); ucb 537 drivers/mfd/ucb1x00-core.c if (!ucb->irq) { ucb 538 drivers/mfd/ucb1x00-core.c dev_err(&ucb->dev, "IRQ probe failed\n"); ucb 543 drivers/mfd/ucb1x00-core.c ucb->gpio.base = -1; ucb 545 drivers/mfd/ucb1x00-core.c ucb->irq_base = irq_alloc_descs(-1, irq_base, 16, -1); ucb 546 drivers/mfd/ucb1x00-core.c if (ucb->irq_base < 0) { ucb 547 drivers/mfd/ucb1x00-core.c dev_err(&ucb->dev, "unable to allocate 16 irqs: %d\n", ucb 548 drivers/mfd/ucb1x00-core.c ucb->irq_base); ucb 549 drivers/mfd/ucb1x00-core.c ret = ucb->irq_base; ucb 554 drivers/mfd/ucb1x00-core.c unsigned irq = ucb->irq_base + i; ucb 557 drivers/mfd/ucb1x00-core.c irq_set_chip_data(irq, ucb); ucb 561 drivers/mfd/ucb1x00-core.c irq_set_irq_type(ucb->irq, IRQ_TYPE_EDGE_RISING); ucb 562 drivers/mfd/ucb1x00-core.c irq_set_chained_handler_and_data(ucb->irq, ucb1x00_irq, ucb); ucb 565 drivers/mfd/ucb1x00-core.c ucb->gpio.label = dev_name(&ucb->dev); ucb 566 drivers/mfd/ucb1x00-core.c ucb->gpio.parent = &ucb->dev; ucb 567 drivers/mfd/ucb1x00-core.c ucb->gpio.owner = THIS_MODULE; ucb 568 drivers/mfd/ucb1x00-core.c ucb->gpio.base = pdata->gpio_base; ucb 569 drivers/mfd/ucb1x00-core.c ucb->gpio.ngpio = 10; ucb 570 drivers/mfd/ucb1x00-core.c ucb->gpio.set = ucb1x00_gpio_set; ucb 571 drivers/mfd/ucb1x00-core.c ucb->gpio.get = ucb1x00_gpio_get; ucb 572 drivers/mfd/ucb1x00-core.c ucb->gpio.direction_input = ucb1x00_gpio_direction_input; ucb 573 drivers/mfd/ucb1x00-core.c ucb->gpio.direction_output = ucb1x00_gpio_direction_output; ucb 574 drivers/mfd/ucb1x00-core.c ucb->gpio.to_irq = ucb1x00_to_irq; ucb 575 drivers/mfd/ucb1x00-core.c ret = gpiochip_add_data(&ucb->gpio, ucb); ucb 579 drivers/mfd/ucb1x00-core.c dev_info(&ucb->dev, "gpio_base not set so no gpiolib support"); ucb 581 drivers/mfd/ucb1x00-core.c mcp_set_drvdata(mcp, ucb); ucb 584 drivers/mfd/ucb1x00-core.c device_set_wakeup_capable(&ucb->dev, pdata->can_wakeup); ucb 586 drivers/mfd/ucb1x00-core.c INIT_LIST_HEAD(&ucb->devs); ucb 588 drivers/mfd/ucb1x00-core.c list_add_tail(&ucb->node, &ucb1x00_devices); ucb 590 drivers/mfd/ucb1x00-core.c ucb1x00_add_dev(ucb, drv); ucb 597 drivers/mfd/ucb1x00-core.c irq_set_chained_handler(ucb->irq, NULL); ucb 599 drivers/mfd/ucb1x00-core.c if (ucb->irq_base > 0) ucb 600 drivers/mfd/ucb1x00-core.c irq_free_descs(ucb->irq_base, 16); ucb 602 drivers/mfd/ucb1x00-core.c device_del(&ucb->dev); ucb 604 drivers/mfd/ucb1x00-core.c put_device(&ucb->dev); ucb 614 drivers/mfd/ucb1x00-core.c struct ucb1x00 *ucb = mcp_get_drvdata(mcp); ucb 618 drivers/mfd/ucb1x00-core.c list_del(&ucb->node); ucb 619 drivers/mfd/ucb1x00-core.c list_for_each_safe(l, n, &ucb->devs) { ucb 625 drivers/mfd/ucb1x00-core.c if (ucb->gpio.base != -1) ucb 626 drivers/mfd/ucb1x00-core.c gpiochip_remove(&ucb->gpio); ucb 628 drivers/mfd/ucb1x00-core.c irq_set_chained_handler(ucb->irq, NULL); ucb 629 drivers/mfd/ucb1x00-core.c irq_free_descs(ucb->irq_base, 16); ucb 630 drivers/mfd/ucb1x00-core.c device_unregister(&ucb->dev); ucb 638 drivers/mfd/ucb1x00-core.c struct ucb1x00 *ucb; ucb 643 drivers/mfd/ucb1x00-core.c list_for_each_entry(ucb, &ucb1x00_devices, node) { ucb 644 drivers/mfd/ucb1x00-core.c ucb1x00_add_dev(ucb, drv); ucb 667 drivers/mfd/ucb1x00-core.c struct ucb1x00 *ucb = dev_get_drvdata(dev); ucb 671 drivers/mfd/ucb1x00-core.c list_for_each_entry(udev, &ucb->devs, dev_node) { ucb 677 drivers/mfd/ucb1x00-core.c if (ucb->irq_wake) { ucb 680 drivers/mfd/ucb1x00-core.c raw_spin_lock_irqsave(&ucb->irq_lock, flags); ucb 681 drivers/mfd/ucb1x00-core.c ucb1x00_enable(ucb); ucb 682 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_RIS, ucb->irq_ris_enbl & ucb 683 drivers/mfd/ucb1x00-core.c ucb->irq_wake); ucb 684 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_FAL, ucb->irq_fal_enbl & ucb 685 drivers/mfd/ucb1x00-core.c ucb->irq_wake); ucb 686 drivers/mfd/ucb1x00-core.c ucb1x00_disable(ucb); ucb 687 drivers/mfd/ucb1x00-core.c raw_spin_unlock_irqrestore(&ucb->irq_lock, flags); ucb 689 drivers/mfd/ucb1x00-core.c enable_irq_wake(ucb->irq); ucb 699 drivers/mfd/ucb1x00-core.c struct ucb1x00 *ucb = dev_get_drvdata(dev); ucb 702 drivers/mfd/ucb1x00-core.c if (!ucb->irq_wake && pdata && pdata->reset) ucb 705 drivers/mfd/ucb1x00-core.c ucb1x00_enable(ucb); ucb 706 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IO_DATA, ucb->io_out); ucb 707 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IO_DIR, ucb->io_dir); ucb 709 drivers/mfd/ucb1x00-core.c if (ucb->irq_wake) { ucb 712 drivers/mfd/ucb1x00-core.c raw_spin_lock_irqsave(&ucb->irq_lock, flags); ucb 713 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_RIS, ucb->irq_ris_enbl & ucb 714 drivers/mfd/ucb1x00-core.c ucb->irq_mask); ucb 715 drivers/mfd/ucb1x00-core.c ucb1x00_reg_write(ucb, UCB_IE_FAL, ucb->irq_fal_enbl & ucb 716 drivers/mfd/ucb1x00-core.c ucb->irq_mask); ucb 717 drivers/mfd/ucb1x00-core.c raw_spin_unlock_irqrestore(&ucb->irq_lock, flags); ucb 719 drivers/mfd/ucb1x00-core.c disable_irq_wake(ucb->irq); ucb 721 drivers/mfd/ucb1x00-core.c ucb1x00_disable(ucb); ucb 724 drivers/mfd/ucb1x00-core.c list_for_each_entry(udev, &ucb->devs, dev_node) { ucb 40 drivers/mfd/ucb1x00-ts.c struct ucb1x00 *ucb; ucb 79 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ucb 92 drivers/mfd/ucb1x00-ts.c ucb1x00_io_write(ts->ucb, COLLIE_TC35143_GPIO_TBL_CHK, 0); ucb 93 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ucb 99 drivers/mfd/ucb1x00-ts.c return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_AD2, ts->adcsync); ucb 101 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ucb 106 drivers/mfd/ucb1x00-ts.c return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_TSPY, ts->adcsync); ucb 119 drivers/mfd/ucb1x00-ts.c ucb1x00_io_write(ts->ucb, 0, COLLIE_TC35143_GPIO_TBL_CHK); ucb 121 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ucb 124 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ucb 128 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ucb 134 drivers/mfd/ucb1x00-ts.c return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_TSPY, ts->adcsync); ucb 146 drivers/mfd/ucb1x00-ts.c ucb1x00_io_write(ts->ucb, 0, COLLIE_TC35143_GPIO_TBL_CHK); ucb 148 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ucb 151 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ucb 156 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ucb 162 drivers/mfd/ucb1x00-ts.c return ucb1x00_adc_read(ts->ucb, UCB_ADC_INP_TSPX, ts->adcsync); ucb 171 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ucb 174 drivers/mfd/ucb1x00-ts.c return ucb1x00_adc_read(ts->ucb, 0, ts->adcsync); ucb 183 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, ucb 186 drivers/mfd/ucb1x00-ts.c return ucb1x00_adc_read(ts->ucb, 0, ts->adcsync); ucb 191 drivers/mfd/ucb1x00-ts.c unsigned int val = ucb1x00_reg_read(ts->ucb, UCB_TS_CR); ucb 220 drivers/mfd/ucb1x00-ts.c ucb1x00_adc_enable(ts->ucb); ucb 230 drivers/mfd/ucb1x00-ts.c ucb1x00_adc_disable(ts->ucb); ucb 234 drivers/mfd/ucb1x00-ts.c ucb1x00_enable(ts->ucb); ucb 243 drivers/mfd/ucb1x00-ts.c enable_irq(ts->ucb->irq_base + UCB_IRQ_TSPX); ucb 246 drivers/mfd/ucb1x00-ts.c ucb1x00_disable(ts->ucb); ucb 259 drivers/mfd/ucb1x00-ts.c ucb1x00_disable(ts->ucb); ucb 294 drivers/mfd/ucb1x00-ts.c disable_irq_nosync(ts->ucb->irq_base + UCB_IRQ_TSPX); ucb 317 drivers/mfd/ucb1x00-ts.c ret = request_irq(ts->ucb->irq_base + UCB_IRQ_TSPX, ucb1x00_ts_irq, ucb 326 drivers/mfd/ucb1x00-ts.c ucb1x00_adc_enable(ts->ucb); ucb 329 drivers/mfd/ucb1x00-ts.c ucb1x00_adc_disable(ts->ucb); ucb 335 drivers/mfd/ucb1x00-ts.c free_irq(ts->ucb->irq_base + UCB_IRQ_TSPX, ts); ucb 354 drivers/mfd/ucb1x00-ts.c ucb1x00_enable(ts->ucb); ucb 355 drivers/mfd/ucb1x00-ts.c free_irq(ts->ucb->irq_base + UCB_IRQ_TSPX, ts); ucb 356 drivers/mfd/ucb1x00-ts.c ucb1x00_reg_write(ts->ucb, UCB_TS_CR, 0); ucb 357 drivers/mfd/ucb1x00-ts.c ucb1x00_disable(ts->ucb); ucb 377 drivers/mfd/ucb1x00-ts.c ts->ucb = dev->ucb; ucb 383 drivers/mfd/ucb1x00-ts.c idev->id.product = ts->ucb->id; ucb 386 drivers/mfd/ucb1x00-ts.c idev->dev.parent = &ts->ucb->dev; ucb 393 drivers/mfd/ucb1x00-ts.c ucb1x00_adc_enable(ts->ucb); ucb 396 drivers/mfd/ucb1x00-ts.c ucb1x00_adc_disable(ts->ucb); ucb 2154 drivers/pinctrl/tegra/pinctrl-tegra20.c MUX_PG(ucb, UARTC, PWM, GMI, RSVD4, 0x18, 23, 0x84, 18, 0xac, 10), ucb 24 drivers/power/supply/collie_battery.c static struct ucb1x00 *ucb; ucb 61 drivers/power/supply/collie_battery.c ucb1x00_adc_enable(ucb); ucb 62 drivers/power/supply/collie_battery.c value = ucb1x00_adc_read(ucb, bat->adc_bat, UCB_SYNC); ucb 63 drivers/power/supply/collie_battery.c ucb1x00_adc_disable(ucb); ucb 80 drivers/power/supply/collie_battery.c ucb1x00_adc_enable(ucb); ucb 81 drivers/power/supply/collie_battery.c value = ucb1x00_adc_read(ucb, bat->adc_temp, UCB_SYNC); ucb 82 drivers/power/supply/collie_battery.c ucb1x00_adc_disable(ucb); ucb 296 drivers/power/supply/collie_battery.c if (device_may_wakeup(&dev->ucb->dev) && ucb 327 drivers/power/supply/collie_battery.c ucb = dev->ucb; ucb 339 drivers/power/supply/collie_battery.c collie_bat_main.psy = power_supply_register(&dev->ucb->dev, ucb 348 drivers/power/supply/collie_battery.c collie_bat_bu.psy = power_supply_register(&dev->ucb->dev, ucb 363 drivers/power/supply/collie_battery.c device_init_wakeup(&ucb->dev, 1); ucb 146 include/linux/mfd/ucb1x00.h struct ucb1x00 *ucb; ucb 171 include/linux/mfd/ucb1x00.h static inline unsigned int ucb1x00_clkrate(struct ucb1x00 *ucb) ucb 173 include/linux/mfd/ucb1x00.h return mcp_get_sclk_rate(ucb->mcp); ucb 182 include/linux/mfd/ucb1x00.h static inline void ucb1x00_enable(struct ucb1x00 *ucb) ucb 184 include/linux/mfd/ucb1x00.h mcp_enable(ucb->mcp); ucb 195 include/linux/mfd/ucb1x00.h static inline void ucb1x00_disable(struct ucb1x00 *ucb) ucb 197 include/linux/mfd/ucb1x00.h mcp_disable(ucb->mcp); ucb 209 include/linux/mfd/ucb1x00.h static inline void ucb1x00_reg_write(struct ucb1x00 *ucb, unsigned int reg, unsigned int val) ucb 211 include/linux/mfd/ucb1x00.h mcp_reg_write(ucb->mcp, reg, val); ucb 222 include/linux/mfd/ucb1x00.h static inline unsigned int ucb1x00_reg_read(struct ucb1x00 *ucb, unsigned int reg) ucb 224 include/linux/mfd/ucb1x00.h return mcp_reg_read(ucb->mcp, reg); ucb 231 include/linux/mfd/ucb1x00.h static inline void ucb1x00_set_audio_divisor(struct ucb1x00 *ucb, unsigned int div) ucb 233 include/linux/mfd/ucb1x00.h mcp_set_audio_divisor(ucb->mcp, div); ucb 241 include/linux/mfd/ucb1x00.h static inline void ucb1x00_set_telecom_divisor(struct ucb1x00 *ucb, unsigned int div) ucb 243 include/linux/mfd/ucb1x00.h mcp_set_telecom_divisor(ucb->mcp, div); ucb 246 include/linux/mfd/ucb1x00.h void ucb1x00_io_set_dir(struct ucb1x00 *ucb, unsigned int, unsigned int); ucb 247 include/linux/mfd/ucb1x00.h void ucb1x00_io_write(struct ucb1x00 *ucb, unsigned int, unsigned int); ucb 248 include/linux/mfd/ucb1x00.h unsigned int ucb1x00_io_read(struct ucb1x00 *ucb); ucb 253 include/linux/mfd/ucb1x00.h unsigned int ucb1x00_adc_read(struct ucb1x00 *ucb, int adc_channel, int sync); ucb 254 include/linux/mfd/ucb1x00.h void ucb1x00_adc_enable(struct ucb1x00 *ucb); ucb 255 include/linux/mfd/ucb1x00.h void ucb1x00_adc_disable(struct ucb1x00 *ucb); ucb 908 kernel/trace/trace_uprobe.c struct uprobe_cpu_buffer *ucb; ucb 912 kernel/trace/trace_uprobe.c ucb = per_cpu_ptr(uprobe_cpu_buffer, cpu); ucb 918 kernel/trace/trace_uprobe.c mutex_lock(&ucb->mutex); ucb 920 kernel/trace/trace_uprobe.c return ucb; ucb 923 kernel/trace/trace_uprobe.c static void uprobe_buffer_put(struct uprobe_cpu_buffer *ucb) ucb 925 kernel/trace/trace_uprobe.c mutex_unlock(&ucb->mutex); ucb 930 kernel/trace/trace_uprobe.c struct uprobe_cpu_buffer *ucb, int dsize, ucb 965 kernel/trace/trace_uprobe.c memcpy(data, ucb->buf, tu->tp.size + dsize); ucb 972 kernel/trace/trace_uprobe.c struct uprobe_cpu_buffer *ucb, int dsize) ucb 981 kernel/trace/trace_uprobe.c __uprobe_trace_func(tu, 0, regs, ucb, dsize, link->file); ucb 989 kernel/trace/trace_uprobe.c struct uprobe_cpu_buffer *ucb, int dsize) ucb 995 kernel/trace/trace_uprobe.c __uprobe_trace_func(tu, func, regs, ucb, dsize, link->file); ucb 1327 kernel/trace/trace_uprobe.c struct uprobe_cpu_buffer *ucb, int dsize) ucb 1364 kernel/trace/trace_uprobe.c memcpy(data, ucb->buf, tu->tp.size + dsize); ucb 1380 kernel/trace/trace_uprobe.c struct uprobe_cpu_buffer *ucb, int dsize) ucb 1386 kernel/trace/trace_uprobe.c __uprobe_perf_func(tu, 0, regs, ucb, dsize); ucb 1392 kernel/trace/trace_uprobe.c struct uprobe_cpu_buffer *ucb, int dsize) ucb 1394 kernel/trace/trace_uprobe.c __uprobe_perf_func(tu, func, regs, ucb, dsize); ucb 1459 kernel/trace/trace_uprobe.c struct uprobe_cpu_buffer *ucb; ucb 1478 kernel/trace/trace_uprobe.c ucb = uprobe_buffer_get(); ucb 1479 kernel/trace/trace_uprobe.c store_trace_args(ucb->buf, &tu->tp, regs, esize, dsize); ucb 1482 kernel/trace/trace_uprobe.c ret |= uprobe_trace_func(tu, regs, ucb, dsize); ucb 1486 kernel/trace/trace_uprobe.c ret |= uprobe_perf_func(tu, regs, ucb, dsize); ucb 1488 kernel/trace/trace_uprobe.c uprobe_buffer_put(ucb); ucb 1497 kernel/trace/trace_uprobe.c struct uprobe_cpu_buffer *ucb; ucb 1513 kernel/trace/trace_uprobe.c ucb = uprobe_buffer_get(); ucb 1514 kernel/trace/trace_uprobe.c store_trace_args(ucb->buf, &tu->tp, regs, esize, dsize); ucb 1517 kernel/trace/trace_uprobe.c uretprobe_trace_func(tu, func, regs, ucb, dsize); ucb 1521 kernel/trace/trace_uprobe.c uretprobe_perf_func(tu, func, regs, ucb, dsize); ucb 1523 kernel/trace/trace_uprobe.c uprobe_buffer_put(ucb);