ili 350 drivers/gpu/drm/panel/panel-ilitek-ili9322.c static int ili9322_init(struct drm_panel *panel, struct ili9322 *ili) ili 357 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = regmap_write(ili->regmap, ILI9322_GLOBAL_RESET, ili 360 drivers/gpu/drm/panel/panel-ilitek-ili9322.c dev_err(ili->dev, "can't issue GRESET (%d)\n", ret); ili 365 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (ili->vreg1out != U8_MAX) { ili 366 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = regmap_write(ili->regmap, ILI9322_VREG1_VOLTAGE, ili 367 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->vreg1out); ili 369 drivers/gpu/drm/panel/panel-ilitek-ili9322.c dev_err(ili->dev, "can't set up VREG1OUT (%d)\n", ret); ili 374 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (ili->vcom_amplitude != U8_MAX) { ili 375 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = regmap_write(ili->regmap, ILI9322_VCOM_AMP, ili 376 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->vcom_amplitude); ili 378 drivers/gpu/drm/panel/panel-ilitek-ili9322.c dev_err(ili->dev, ili 384 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (ili->vcom_high != U8_MAX) { ili 385 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = regmap_write(ili->regmap, ILI9322_VCOM_HIGH, ili 386 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->vcom_high); ili 388 drivers/gpu/drm/panel/panel-ilitek-ili9322.c dev_err(ili->dev, "can't set up VCOM high (%d)\n", ret); ili 394 drivers/gpu/drm/panel/panel-ilitek-ili9322.c for (i = 0; i < ARRAY_SIZE(ili->gamma); i++) { ili 395 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = regmap_write(ili->regmap, ILI9322_GAMMA_1 + i, ili 396 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->gamma[i]); ili 398 drivers/gpu/drm/panel/panel-ilitek-ili9322.c dev_err(ili->dev, ili 410 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (ili->conf->dclk_active_high) ili 412 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (ili->conf->de_active_high) ili 414 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (ili->conf->hsync_active_high) ili 416 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (ili->conf->vsync_active_high) ili 418 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = regmap_write(ili->regmap, ILI9322_POL, reg); ili 420 drivers/gpu/drm/panel/panel-ilitek-ili9322.c dev_err(ili->dev, "can't write POL register (%d)\n", ret); ili 428 drivers/gpu/drm/panel/panel-ilitek-ili9322.c reg = ili->conf->syncmode; ili 430 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = regmap_write(ili->regmap, ILI9322_IF_CTRL, reg); ili 432 drivers/gpu/drm/panel/panel-ilitek-ili9322.c dev_err(ili->dev, "can't write IF CTRL register (%d)\n", ret); ili 437 drivers/gpu/drm/panel/panel-ilitek-ili9322.c reg = (ili->input << 4); ili 439 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (!ili->conf->flip_horizontal) ili 441 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (!ili->conf->flip_vertical) ili 444 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = regmap_write(ili->regmap, ILI9322_ENTRY, reg); ili 446 drivers/gpu/drm/panel/panel-ilitek-ili9322.c dev_err(ili->dev, "can't write ENTRY reg (%d)\n", ret); ili 449 drivers/gpu/drm/panel/panel-ilitek-ili9322.c dev_info(ili->dev, "display is in %s mode, syncmode %02x\n", ili 450 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili9322_inputs[ili->input], ili 451 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->conf->syncmode); ili 453 drivers/gpu/drm/panel/panel-ilitek-ili9322.c dev_info(ili->dev, "initialized display\n"); ili 461 drivers/gpu/drm/panel/panel-ilitek-ili9322.c static int ili9322_power_on(struct ili9322 *ili) ili 466 drivers/gpu/drm/panel/panel-ilitek-ili9322.c gpiod_set_value(ili->reset_gpio, 1); ili 468 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = regulator_bulk_enable(ARRAY_SIZE(ili->supplies), ili->supplies); ili 470 drivers/gpu/drm/panel/panel-ilitek-ili9322.c dev_err(ili->dev, "unable to enable regulators\n"); ili 476 drivers/gpu/drm/panel/panel-ilitek-ili9322.c gpiod_set_value(ili->reset_gpio, 0); ili 483 drivers/gpu/drm/panel/panel-ilitek-ili9322.c static int ili9322_power_off(struct ili9322 *ili) ili 485 drivers/gpu/drm/panel/panel-ilitek-ili9322.c return regulator_bulk_disable(ARRAY_SIZE(ili->supplies), ili->supplies); ili 490 drivers/gpu/drm/panel/panel-ilitek-ili9322.c struct ili9322 *ili = panel_to_ili9322(panel); ili 493 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = regmap_write(ili->regmap, ILI9322_POW_CTRL, ili 496 drivers/gpu/drm/panel/panel-ilitek-ili9322.c dev_err(ili->dev, "unable to go to standby mode\n"); ili 505 drivers/gpu/drm/panel/panel-ilitek-ili9322.c struct ili9322 *ili = panel_to_ili9322(panel); ili 507 drivers/gpu/drm/panel/panel-ilitek-ili9322.c return ili9322_power_off(ili); ili 512 drivers/gpu/drm/panel/panel-ilitek-ili9322.c struct ili9322 *ili = panel_to_ili9322(panel); ili 515 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = ili9322_power_on(ili); ili 519 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = ili9322_init(panel, ili); ili 528 drivers/gpu/drm/panel/panel-ilitek-ili9322.c struct ili9322 *ili = panel_to_ili9322(panel); ili 531 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = regmap_write(ili->regmap, ILI9322_POW_CTRL, ili 534 drivers/gpu/drm/panel/panel-ilitek-ili9322.c dev_err(ili->dev, "unable to enable panel\n"); ili 647 drivers/gpu/drm/panel/panel-ilitek-ili9322.c struct ili9322 *ili = panel_to_ili9322(panel); ili 652 drivers/gpu/drm/panel/panel-ilitek-ili9322.c info->width_mm = ili->conf->width_mm; ili 653 drivers/gpu/drm/panel/panel-ilitek-ili9322.c info->height_mm = ili->conf->height_mm; ili 654 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (ili->conf->dclk_active_high) ili 659 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (ili->conf->de_active_high) ili 664 drivers/gpu/drm/panel/panel-ilitek-ili9322.c switch (ili->input) { ili 703 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (ili->conf->hsync_active_high) ili 707 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (ili->conf->vsync_active_high) ili 712 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode->width_mm = ili->conf->width_mm; ili 713 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode->height_mm = ili->conf->height_mm; ili 730 drivers/gpu/drm/panel/panel-ilitek-ili9322.c struct ili9322 *ili; ili 737 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili = devm_kzalloc(dev, sizeof(struct ili9322), GFP_KERNEL); ili 738 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (!ili) ili 741 drivers/gpu/drm/panel/panel-ilitek-ili9322.c spi_set_drvdata(spi, ili); ili 743 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->dev = dev; ili 749 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->conf = of_device_get_match_data(dev); ili 750 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (!ili->conf) { ili 755 drivers/gpu/drm/panel/panel-ilitek-ili9322.c val = ili->conf->vreg1out_mv; ili 758 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->vreg1out = U8_MAX; ili 775 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->vreg1out = val; ili 778 drivers/gpu/drm/panel/panel-ilitek-ili9322.c val = ili->conf->vcom_high_percent; ili 781 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->vcom_high = U8_MAX; ili 793 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->vcom_high = val; ili 796 drivers/gpu/drm/panel/panel-ilitek-ili9322.c val = ili->conf->vcom_amplitude_percent; ili 799 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->vcom_high = U8_MAX; ili 812 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->vcom_amplitude = val; ili 815 drivers/gpu/drm/panel/panel-ilitek-ili9322.c for (i = 0; i < ARRAY_SIZE(ili->gamma); i++) { ili 816 drivers/gpu/drm/panel/panel-ilitek-ili9322.c val = ili->conf->gamma_corr_neg[i]; ili 822 drivers/gpu/drm/panel/panel-ilitek-ili9322.c val = ili->conf->gamma_corr_pos[i]; ili 828 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->gamma[i] = gamma; ili 832 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->supplies[0].supply = "vcc"; /* 2.7-3.6 V */ ili 833 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->supplies[1].supply = "iovcc"; /* 1.65-3.6V */ ili 834 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->supplies[2].supply = "vci"; /* 2.7-3.6V */ ili 835 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ili->supplies), ili 836 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->supplies); ili 839 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = regulator_set_voltage(ili->supplies[0].consumer, ili 843 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = regulator_set_voltage(ili->supplies[1].consumer, ili 847 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = regulator_set_voltage(ili->supplies[2].consumer, ili 852 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); ili 853 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (IS_ERR(ili->reset_gpio)) { ili 855 drivers/gpu/drm/panel/panel-ilitek-ili9322.c return PTR_ERR(ili->reset_gpio); ili 865 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->regmap = devm_regmap_init(dev, &ili9322_regmap_bus, dev, ili 867 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (IS_ERR(ili->regmap)) { ili 869 drivers/gpu/drm/panel/panel-ilitek-ili9322.c return PTR_ERR(ili->regmap); ili 872 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = regmap_read(ili->regmap, ILI9322_CHIP_ID, &val); ili 884 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (ili->conf->input == ILI9322_INPUT_UNKNOWN) { ili 885 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ret = regmap_read(ili->regmap, ILI9322_ENTRY, &val); ili 891 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->input = (val >> 4) & 0x0f; ili 892 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (ili->input >= ILI9322_INPUT_UNKNOWN) ili 893 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->input = ILI9322_INPUT_UNKNOWN; ili 895 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->input = ili->conf->input; ili 898 drivers/gpu/drm/panel/panel-ilitek-ili9322.c drm_panel_init(&ili->panel); ili 899 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->panel.dev = dev; ili 900 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili->panel.funcs = &ili9322_drm_funcs; ili 902 drivers/gpu/drm/panel/panel-ilitek-ili9322.c return drm_panel_add(&ili->panel); ili 907 drivers/gpu/drm/panel/panel-ilitek-ili9322.c struct ili9322 *ili = spi_get_drvdata(spi); ili 909 drivers/gpu/drm/panel/panel-ilitek-ili9322.c ili9322_power_off(ili); ili 910 drivers/gpu/drm/panel/panel-ilitek-ili9322.c drm_panel_remove(&ili->panel); ili 455 drivers/video/backlight/ili922x.c struct ili922x *ili = lcd_get_data(ld); ili 457 drivers/video/backlight/ili922x.c return ili922x_lcd_power(ili, power); ili 462 drivers/video/backlight/ili922x.c struct ili922x *ili = lcd_get_data(ld); ili 464 drivers/video/backlight/ili922x.c return ili->power; ili 474 drivers/video/backlight/ili922x.c struct ili922x *ili; ili 479 drivers/video/backlight/ili922x.c ili = devm_kzalloc(&spi->dev, sizeof(*ili), GFP_KERNEL); ili 480 drivers/video/backlight/ili922x.c if (!ili) ili 483 drivers/video/backlight/ili922x.c ili->spi = spi; ili 484 drivers/video/backlight/ili922x.c spi_set_drvdata(spi, ili); ili 508 drivers/video/backlight/ili922x.c ili->power = FB_BLANK_POWERDOWN; ili 510 drivers/video/backlight/ili922x.c lcd = devm_lcd_device_register(&spi->dev, "ili922xlcd", &spi->dev, ili, ili 517 drivers/video/backlight/ili922x.c ili->ld = lcd; ili 518 drivers/video/backlight/ili922x.c spi_set_drvdata(spi, ili); ili 520 drivers/video/backlight/ili922x.c ili922x_lcd_power(ili, FB_BLANK_UNBLANK); ili 26 drivers/video/backlight/ili9320.c static inline int ili9320_write_spi(struct ili9320 *ili, ili 30 drivers/video/backlight/ili9320.c struct ili9320_spi *spi = &ili->access.spi; ili 51 drivers/video/backlight/ili9320.c int ili9320_write(struct ili9320 *ili, unsigned int reg, unsigned int value) ili 53 drivers/video/backlight/ili9320.c dev_dbg(ili->dev, "write: reg=%02x, val=%04x\n", reg, value); ili 54 drivers/video/backlight/ili9320.c return ili->write(ili, reg, value); ili 58 drivers/video/backlight/ili9320.c int ili9320_write_regs(struct ili9320 *ili, ili 66 drivers/video/backlight/ili9320.c ret = ili9320_write(ili, values->address, values->value); ili 169 drivers/video/backlight/ili9320.c static void ili9320_setup_spi(struct ili9320 *ili, ili 172 drivers/video/backlight/ili9320.c struct ili9320_spi *spi = &ili->access.spi; ili 174 drivers/video/backlight/ili9320.c ili->write = ili9320_write_spi; ili 200 drivers/video/backlight/ili9320.c struct ili9320 *ili; ili 218 drivers/video/backlight/ili9320.c ili = devm_kzalloc(&spi->dev, sizeof(struct ili9320), GFP_KERNEL); ili 219 drivers/video/backlight/ili9320.c if (ili == NULL) ili 222 drivers/video/backlight/ili9320.c ili->access.spi.id = ILI9320_SPI_IDCODE | ILI9320_SPI_ID(1); ili 224 drivers/video/backlight/ili9320.c ili->dev = dev; ili 225 drivers/video/backlight/ili9320.c ili->client = client; ili 226 drivers/video/backlight/ili9320.c ili->power = FB_BLANK_POWERDOWN; ili 227 drivers/video/backlight/ili9320.c ili->platdata = cfg; ili 229 drivers/video/backlight/ili9320.c spi_set_drvdata(spi, ili); ili 231 drivers/video/backlight/ili9320.c ili9320_setup_spi(ili, spi); ili 233 drivers/video/backlight/ili9320.c lcd = devm_lcd_device_register(&spi->dev, "ili9320", dev, ili, ili 240 drivers/video/backlight/ili9320.c ili->lcd = lcd; ili 244 drivers/video/backlight/ili9320.c ret = ili9320_power(ili, FB_BLANK_UNBLANK); ili 254 drivers/video/backlight/ili9320.c int ili9320_remove(struct ili9320 *ili) ili 256 drivers/video/backlight/ili9320.c ili9320_power(ili, FB_BLANK_POWERDOWN); ili 22 drivers/video/backlight/ili9320.h int (*init)(struct ili9320 *ili, struct ili9320_platdata *cfg); ili 53 drivers/video/backlight/ili9320.h int (*write)(struct ili9320 *ili, unsigned int reg, unsigned int val); ili 59 drivers/video/backlight/ili9320.h extern int ili9320_write(struct ili9320 *ili, ili 62 drivers/video/backlight/ili9320.h extern int ili9320_write_regs(struct ili9320 *ili, ili 233 fs/xfs/libxfs/xfs_defer.c struct xfs_inode_log_item *ili; ili 256 fs/xfs/libxfs/xfs_defer.c ili = container_of(lip, struct xfs_inode_log_item, ili 258 fs/xfs/libxfs/xfs_defer.c if (ili->ili_lock_flags == 0) { ili 263 fs/xfs/libxfs/xfs_defer.c xfs_trans_log_inode(tp, ili->ili_inode, ili 265 fs/xfs/libxfs/xfs_defer.c iplist[ipcount++] = ili->ili_inode; ili 709 include/uapi/linux/cdrom.h __u8 ili : 1; ili 715 include/uapi/linux/cdrom.h __u8 ili : 1;