ddata 20 arch/x86/platform/intel-mid/device_libs/platform_bt.c int (*setup)(struct bt_sfi_data *ddata); ddata 37 arch/x86/platform/intel-mid/device_libs/platform_bt.c static int __init tng_bt_sfi_setup(struct bt_sfi_data *ddata) ddata 48 arch/x86/platform/intel-mid/device_libs/platform_bt.c ddata->dev = &pdev->dev; ddata 49 arch/x86/platform/intel-mid/device_libs/platform_bt.c ddata->name = table->dev_id; ddata 63 arch/x86/platform/intel-mid/device_libs/platform_bt.c #define ICPU(model, ddata) \ ddata 64 arch/x86/platform/intel-mid/device_libs/platform_bt.c { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, (kernel_ulong_t)&ddata } ddata 76 arch/x86/platform/intel-mid/device_libs/platform_bt.c struct bt_sfi_data *ddata; ddata 83 arch/x86/platform/intel-mid/device_libs/platform_bt.c ddata = (struct bt_sfi_data *)id->driver_data; ddata 84 arch/x86/platform/intel-mid/device_libs/platform_bt.c if (!ddata) ddata 87 arch/x86/platform/intel-mid/device_libs/platform_bt.c ret = ddata->setup(ddata); ddata 92 arch/x86/platform/intel-mid/device_libs/platform_bt.c info.fwnode = ddata->dev->fwnode; ddata 93 arch/x86/platform/intel-mid/device_libs/platform_bt.c info.parent = ddata->dev; ddata 94 arch/x86/platform/intel-mid/device_libs/platform_bt.c info.name = ddata->name, ddata 101 arch/x86/platform/intel-mid/device_libs/platform_bt.c dev_info(ddata->dev, "Registered Bluetooth device: %s\n", ddata->name); ddata 107 drivers/bus/ti-sysc.c static void sysc_parse_dts_quirks(struct sysc *ddata, struct device_node *np, ddata 110 drivers/bus/ti-sysc.c static void sysc_write(struct sysc *ddata, int offset, u32 value) ddata 112 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & SYSC_QUIRK_16BIT) { ddata 113 drivers/bus/ti-sysc.c writew_relaxed(value & 0xffff, ddata->module_va + offset); ddata 116 drivers/bus/ti-sysc.c if (ddata->offsets[SYSC_REVISION] >= 0 && ddata 117 drivers/bus/ti-sysc.c offset == ddata->offsets[SYSC_REVISION]) { ddata 120 drivers/bus/ti-sysc.c writew_relaxed(hi, ddata->module_va + offset + 4); ddata 126 drivers/bus/ti-sysc.c writel_relaxed(value, ddata->module_va + offset); ddata 129 drivers/bus/ti-sysc.c static u32 sysc_read(struct sysc *ddata, int offset) ddata 131 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & SYSC_QUIRK_16BIT) { ddata 134 drivers/bus/ti-sysc.c val = readw_relaxed(ddata->module_va + offset); ddata 137 drivers/bus/ti-sysc.c if (ddata->offsets[SYSC_REVISION] >= 0 && ddata 138 drivers/bus/ti-sysc.c offset == ddata->offsets[SYSC_REVISION]) { ddata 139 drivers/bus/ti-sysc.c u16 tmp = readw_relaxed(ddata->module_va + offset + 4); ddata 147 drivers/bus/ti-sysc.c return readl_relaxed(ddata->module_va + offset); ddata 150 drivers/bus/ti-sysc.c static bool sysc_opt_clks_needed(struct sysc *ddata) ddata 152 drivers/bus/ti-sysc.c return !!(ddata->cfg.quirks & SYSC_QUIRK_OPT_CLKS_NEEDED); ddata 155 drivers/bus/ti-sysc.c static u32 sysc_read_revision(struct sysc *ddata) ddata 157 drivers/bus/ti-sysc.c int offset = ddata->offsets[SYSC_REVISION]; ddata 162 drivers/bus/ti-sysc.c return sysc_read(ddata, offset); ddata 165 drivers/bus/ti-sysc.c static u32 sysc_read_sysconfig(struct sysc *ddata) ddata 167 drivers/bus/ti-sysc.c int offset = ddata->offsets[SYSC_SYSCONFIG]; ddata 172 drivers/bus/ti-sysc.c return sysc_read(ddata, offset); ddata 175 drivers/bus/ti-sysc.c static u32 sysc_read_sysstatus(struct sysc *ddata) ddata 177 drivers/bus/ti-sysc.c int offset = ddata->offsets[SYSC_SYSSTATUS]; ddata 182 drivers/bus/ti-sysc.c return sysc_read(ddata, offset); ddata 185 drivers/bus/ti-sysc.c static int sysc_add_named_clock_from_child(struct sysc *ddata, ddata 189 drivers/bus/ti-sysc.c struct device_node *np = ddata->dev->of_node; ddata 212 drivers/bus/ti-sysc.c clock = devm_get_clk_from_child(ddata->dev, child, name); ddata 226 drivers/bus/ti-sysc.c cl->dev_id = dev_name(ddata->dev); ddata 235 drivers/bus/ti-sysc.c static int sysc_init_ext_opt_clock(struct sysc *ddata, const char *name) ddata 240 drivers/bus/ti-sysc.c if (ddata->nr_clocks < SYSC_OPTFCK0) ddata 243 drivers/bus/ti-sysc.c index = ddata->nr_clocks; ddata 250 drivers/bus/ti-sysc.c error = sysc_add_named_clock_from_child(ddata, name, optfck_name); ddata 254 drivers/bus/ti-sysc.c ddata->clock_roles[index] = optfck_name; ddata 255 drivers/bus/ti-sysc.c ddata->nr_clocks++; ddata 260 drivers/bus/ti-sysc.c static int sysc_get_one_clock(struct sysc *ddata, const char *name) ddata 271 drivers/bus/ti-sysc.c if (!ddata->clocks[i]) { ddata 279 drivers/bus/ti-sysc.c dev_err(ddata->dev, "clock %s not added\n", name); ddata 283 drivers/bus/ti-sysc.c ddata->clocks[index] = devm_clk_get(ddata->dev, name); ddata 284 drivers/bus/ti-sysc.c if (IS_ERR(ddata->clocks[index])) { ddata 285 drivers/bus/ti-sysc.c dev_err(ddata->dev, "clock get error for %s: %li\n", ddata 286 drivers/bus/ti-sysc.c name, PTR_ERR(ddata->clocks[index])); ddata 288 drivers/bus/ti-sysc.c return PTR_ERR(ddata->clocks[index]); ddata 291 drivers/bus/ti-sysc.c error = clk_prepare(ddata->clocks[index]); ddata 293 drivers/bus/ti-sysc.c dev_err(ddata->dev, "clock prepare error for %s: %i\n", ddata 302 drivers/bus/ti-sysc.c static int sysc_get_clocks(struct sysc *ddata) ddata 304 drivers/bus/ti-sysc.c struct device_node *np = ddata->dev->of_node; ddata 309 drivers/bus/ti-sysc.c ddata->clock_roles = devm_kcalloc(ddata->dev, ddata 311 drivers/bus/ti-sysc.c sizeof(*ddata->clock_roles), ddata 313 drivers/bus/ti-sysc.c if (!ddata->clock_roles) ddata 321 drivers/bus/ti-sysc.c ddata->clock_roles[ddata->nr_clocks] = name; ddata 322 drivers/bus/ti-sysc.c ddata->nr_clocks++; ddata 325 drivers/bus/ti-sysc.c if (ddata->nr_clocks < 1) ddata 328 drivers/bus/ti-sysc.c if ((ddata->cfg.quirks & SYSC_QUIRK_EXT_OPT_CLOCK)) { ddata 329 drivers/bus/ti-sysc.c error = sysc_init_ext_opt_clock(ddata, NULL); ddata 334 drivers/bus/ti-sysc.c if (ddata->nr_clocks > SYSC_MAX_CLOCKS) { ddata 335 drivers/bus/ti-sysc.c dev_err(ddata->dev, "too many clocks for %pOF\n", np); ddata 341 drivers/bus/ti-sysc.c dev_err(ddata->dev, "max one fck and ick for %pOF\n", np); ddata 348 drivers/bus/ti-sysc.c ddata->nr_clocks++; ddata 350 drivers/bus/ti-sysc.c ddata->nr_clocks++; ddata 352 drivers/bus/ti-sysc.c ddata->clocks = devm_kcalloc(ddata->dev, ddata 353 drivers/bus/ti-sysc.c ddata->nr_clocks, sizeof(*ddata->clocks), ddata 355 drivers/bus/ti-sysc.c if (!ddata->clocks) ddata 359 drivers/bus/ti-sysc.c const char *name = ddata->clock_roles[i]; ddata 364 drivers/bus/ti-sysc.c error = sysc_get_one_clock(ddata, name); ddata 372 drivers/bus/ti-sysc.c static int sysc_enable_main_clocks(struct sysc *ddata) ddata 377 drivers/bus/ti-sysc.c if (!ddata->clocks) ddata 381 drivers/bus/ti-sysc.c clock = ddata->clocks[i]; ddata 396 drivers/bus/ti-sysc.c clock = ddata->clocks[i]; ddata 408 drivers/bus/ti-sysc.c static void sysc_disable_main_clocks(struct sysc *ddata) ddata 413 drivers/bus/ti-sysc.c if (!ddata->clocks) ddata 417 drivers/bus/ti-sysc.c clock = ddata->clocks[i]; ddata 425 drivers/bus/ti-sysc.c static int sysc_enable_opt_clocks(struct sysc *ddata) ddata 430 drivers/bus/ti-sysc.c if (!ddata->clocks || ddata->nr_clocks < SYSC_OPTFCK0 + 1) ddata 434 drivers/bus/ti-sysc.c clock = ddata->clocks[i]; ddata 449 drivers/bus/ti-sysc.c clock = ddata->clocks[i]; ddata 459 drivers/bus/ti-sysc.c static void sysc_disable_opt_clocks(struct sysc *ddata) ddata 464 drivers/bus/ti-sysc.c if (!ddata->clocks || ddata->nr_clocks < SYSC_OPTFCK0 + 1) ddata 468 drivers/bus/ti-sysc.c clock = ddata->clocks[i]; ddata 478 drivers/bus/ti-sysc.c static void sysc_clkdm_deny_idle(struct sysc *ddata) ddata 482 drivers/bus/ti-sysc.c if (ddata->legacy_mode || (ddata->cfg.quirks & SYSC_QUIRK_CLKDM_NOAUTO)) ddata 485 drivers/bus/ti-sysc.c pdata = dev_get_platdata(ddata->dev); ddata 487 drivers/bus/ti-sysc.c pdata->clkdm_deny_idle(ddata->dev, &ddata->cookie); ddata 490 drivers/bus/ti-sysc.c static void sysc_clkdm_allow_idle(struct sysc *ddata) ddata 494 drivers/bus/ti-sysc.c if (ddata->legacy_mode || (ddata->cfg.quirks & SYSC_QUIRK_CLKDM_NOAUTO)) ddata 497 drivers/bus/ti-sysc.c pdata = dev_get_platdata(ddata->dev); ddata 499 drivers/bus/ti-sysc.c pdata->clkdm_allow_idle(ddata->dev, &ddata->cookie); ddata 508 drivers/bus/ti-sysc.c static int sysc_init_resets(struct sysc *ddata) ddata 510 drivers/bus/ti-sysc.c ddata->rsts = ddata 511 drivers/bus/ti-sysc.c devm_reset_control_get_optional_shared(ddata->dev, "rstctrl"); ddata 512 drivers/bus/ti-sysc.c if (IS_ERR(ddata->rsts)) ddata 513 drivers/bus/ti-sysc.c return PTR_ERR(ddata->rsts); ddata 527 drivers/bus/ti-sysc.c static int sysc_parse_and_check_child_range(struct sysc *ddata) ddata 529 drivers/bus/ti-sysc.c struct device_node *np = ddata->dev->of_node; ddata 536 drivers/bus/ti-sysc.c dev_err(ddata->dev, "missing ranges for %pOF\n", np); ddata 544 drivers/bus/ti-sysc.c dev_err(ddata->dev, "incomplete ranges for %pOF\n", np); ddata 558 drivers/bus/ti-sysc.c dev_err(ddata->dev, "invalid ranges for %pOF\n", np); ddata 564 drivers/bus/ti-sysc.c ddata->module_pa = of_translate_address(np, ranges++); ddata 565 drivers/bus/ti-sysc.c ddata->module_size = be32_to_cpup(ranges); ddata 572 drivers/bus/ti-sysc.c static void sysc_init_stdout_path(struct sysc *ddata) ddata 603 drivers/bus/ti-sysc.c static void sysc_check_quirk_stdout(struct sysc *ddata, ddata 606 drivers/bus/ti-sysc.c sysc_init_stdout_path(ddata); ddata 610 drivers/bus/ti-sysc.c ddata->cfg.quirks |= SYSC_QUIRK_NO_IDLE_ON_INIT | ddata 623 drivers/bus/ti-sysc.c static void sysc_check_one_child(struct sysc *ddata, ddata 630 drivers/bus/ti-sysc.c dev_warn(ddata->dev, "really a child ti,hwmods property?"); ddata 632 drivers/bus/ti-sysc.c sysc_check_quirk_stdout(ddata, np); ddata 633 drivers/bus/ti-sysc.c sysc_parse_dts_quirks(ddata, np, true); ddata 636 drivers/bus/ti-sysc.c static void sysc_check_children(struct sysc *ddata) ddata 640 drivers/bus/ti-sysc.c for_each_child_of_node(ddata->dev->of_node, child) ddata 641 drivers/bus/ti-sysc.c sysc_check_one_child(ddata, child); ddata 650 drivers/bus/ti-sysc.c static void sysc_check_quirk_16bit(struct sysc *ddata, struct resource *res) ddata 653 drivers/bus/ti-sysc.c ddata->cfg.quirks |= SYSC_QUIRK_16BIT | SYSC_QUIRK_USE_CLOCKACT; ddata 661 drivers/bus/ti-sysc.c static int sysc_parse_one(struct sysc *ddata, enum sysc_registers reg) ddata 676 drivers/bus/ti-sysc.c res = platform_get_resource_byname(to_platform_device(ddata->dev), ddata 679 drivers/bus/ti-sysc.c ddata->offsets[reg] = -ENODEV; ddata 684 drivers/bus/ti-sysc.c ddata->offsets[reg] = res->start - ddata->module_pa; ddata 686 drivers/bus/ti-sysc.c sysc_check_quirk_16bit(ddata, res); ddata 691 drivers/bus/ti-sysc.c static int sysc_parse_registers(struct sysc *ddata) ddata 696 drivers/bus/ti-sysc.c error = sysc_parse_one(ddata, i); ddata 708 drivers/bus/ti-sysc.c static int sysc_check_registers(struct sysc *ddata) ddata 713 drivers/bus/ti-sysc.c if (ddata->offsets[i] < 0) ddata 716 drivers/bus/ti-sysc.c if (ddata->offsets[i] > (ddata->module_size - 4)) { ddata 717 drivers/bus/ti-sysc.c dev_err(ddata->dev, "register outside module range"); ddata 723 drivers/bus/ti-sysc.c if (ddata->offsets[j] < 0) ddata 726 drivers/bus/ti-sysc.c if (ddata->offsets[i] == ddata->offsets[j]) ddata 733 drivers/bus/ti-sysc.c dev_err(ddata->dev, "overlapping registers: (%i/%i)", ddata 753 drivers/bus/ti-sysc.c static int sysc_ioremap(struct sysc *ddata) ddata 757 drivers/bus/ti-sysc.c if (ddata->offsets[SYSC_REVISION] < 0 && ddata 758 drivers/bus/ti-sysc.c ddata->offsets[SYSC_SYSCONFIG] < 0 && ddata 759 drivers/bus/ti-sysc.c ddata->offsets[SYSC_SYSSTATUS] < 0) { ddata 760 drivers/bus/ti-sysc.c size = ddata->module_size; ddata 762 drivers/bus/ti-sysc.c size = max3(ddata->offsets[SYSC_REVISION], ddata 763 drivers/bus/ti-sysc.c ddata->offsets[SYSC_SYSCONFIG], ddata 764 drivers/bus/ti-sysc.c ddata->offsets[SYSC_SYSSTATUS]); ddata 769 drivers/bus/ti-sysc.c if ((size + sizeof(u32)) > ddata->module_size) ddata 770 drivers/bus/ti-sysc.c size = ddata->module_size; ddata 773 drivers/bus/ti-sysc.c ddata->module_va = devm_ioremap(ddata->dev, ddata 774 drivers/bus/ti-sysc.c ddata->module_pa, ddata 776 drivers/bus/ti-sysc.c if (!ddata->module_va) ddata 786 drivers/bus/ti-sysc.c static int sysc_map_and_check_registers(struct sysc *ddata) ddata 790 drivers/bus/ti-sysc.c error = sysc_parse_and_check_child_range(ddata); ddata 794 drivers/bus/ti-sysc.c sysc_check_children(ddata); ddata 796 drivers/bus/ti-sysc.c error = sysc_parse_registers(ddata); ddata 800 drivers/bus/ti-sysc.c error = sysc_ioremap(ddata); ddata 804 drivers/bus/ti-sysc.c error = sysc_check_registers(ddata); ddata 816 drivers/bus/ti-sysc.c static int sysc_show_rev(char *bufp, struct sysc *ddata) ddata 820 drivers/bus/ti-sysc.c if (ddata->offsets[SYSC_REVISION] < 0) ddata 823 drivers/bus/ti-sysc.c len = sprintf(bufp, ":%08x", ddata->revision); ddata 828 drivers/bus/ti-sysc.c static int sysc_show_reg(struct sysc *ddata, ddata 831 drivers/bus/ti-sysc.c if (ddata->offsets[reg] < 0) ddata 834 drivers/bus/ti-sysc.c return sprintf(bufp, ":%x", ddata->offsets[reg]); ddata 837 drivers/bus/ti-sysc.c static int sysc_show_name(char *bufp, struct sysc *ddata) ddata 839 drivers/bus/ti-sysc.c if (!ddata->name) ddata 842 drivers/bus/ti-sysc.c return sprintf(bufp, ":%s", ddata->name); ddata 849 drivers/bus/ti-sysc.c static void sysc_show_registers(struct sysc *ddata) ddata 856 drivers/bus/ti-sysc.c bufp += sysc_show_reg(ddata, bufp, i); ddata 858 drivers/bus/ti-sysc.c bufp += sysc_show_rev(bufp, ddata); ddata 859 drivers/bus/ti-sysc.c bufp += sysc_show_name(bufp, ddata); ddata 861 drivers/bus/ti-sysc.c dev_dbg(ddata->dev, "%llx:%x%s\n", ddata 862 drivers/bus/ti-sysc.c ddata->module_pa, ddata->module_size, ddata 872 drivers/bus/ti-sysc.c struct sysc *ddata; ddata 876 drivers/bus/ti-sysc.c ddata = dev_get_drvdata(dev); ddata 877 drivers/bus/ti-sysc.c if (ddata->offsets[SYSC_SYSCONFIG] == -ENODEV) ddata 880 drivers/bus/ti-sysc.c regbits = ddata->cap->regbits; ddata 881 drivers/bus/ti-sysc.c reg = sysc_read(ddata, ddata->offsets[SYSC_SYSCONFIG]); ddata 885 drivers/bus/ti-sysc.c (ddata->cfg.quirks & SYSC_QUIRK_USE_CLOCKACT || ddata 886 drivers/bus/ti-sysc.c ddata->cfg.sysc_val & BIT(regbits->clkact_shift))) ddata 890 drivers/bus/ti-sysc.c idlemodes = ddata->cfg.sidlemodes; ddata 894 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & (SYSC_QUIRK_SWSUP_SIDLE | ddata 898 drivers/bus/ti-sysc.c best_mode = fls(ddata->cfg.sidlemodes) - 1; ddata 906 drivers/bus/ti-sysc.c ddata->cfg.sysc_val & BIT(regbits->enwkup_shift)) ddata 912 drivers/bus/ti-sysc.c sysc_write(ddata, ddata->offsets[SYSC_SYSCONFIG], reg); ddata 916 drivers/bus/ti-sysc.c idlemodes = ddata->cfg.midlemodes; ddata 920 drivers/bus/ti-sysc.c best_mode = fls(ddata->cfg.midlemodes) - 1; ddata 926 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & SYSC_QUIRK_SWSUP_MSTANDBY) ddata 931 drivers/bus/ti-sysc.c sysc_write(ddata, ddata->offsets[SYSC_SYSCONFIG], reg); ddata 936 drivers/bus/ti-sysc.c ddata->cfg.sysc_val & BIT(regbits->autoidle_shift)) { ddata 938 drivers/bus/ti-sysc.c sysc_write(ddata, ddata->offsets[SYSC_SYSCONFIG], reg); ddata 941 drivers/bus/ti-sysc.c if (ddata->module_enable_quirk) ddata 942 drivers/bus/ti-sysc.c ddata->module_enable_quirk(ddata); ddata 964 drivers/bus/ti-sysc.c struct sysc *ddata; ddata 969 drivers/bus/ti-sysc.c ddata = dev_get_drvdata(dev); ddata 970 drivers/bus/ti-sysc.c if (ddata->offsets[SYSC_SYSCONFIG] == -ENODEV) ddata 973 drivers/bus/ti-sysc.c if (ddata->module_disable_quirk) ddata 974 drivers/bus/ti-sysc.c ddata->module_disable_quirk(ddata); ddata 976 drivers/bus/ti-sysc.c regbits = ddata->cap->regbits; ddata 977 drivers/bus/ti-sysc.c reg = sysc_read(ddata, ddata->offsets[SYSC_SYSCONFIG]); ddata 980 drivers/bus/ti-sysc.c idlemodes = ddata->cfg.midlemodes; ddata 990 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & (SYSC_QUIRK_SWSUP_MSTANDBY) || ddata 991 drivers/bus/ti-sysc.c ddata->cfg.quirks & (SYSC_QUIRK_FORCE_MSTANDBY)) ddata 996 drivers/bus/ti-sysc.c sysc_write(ddata, ddata->offsets[SYSC_SYSCONFIG], reg); ddata 1000 drivers/bus/ti-sysc.c idlemodes = ddata->cfg.sidlemodes; ddata 1004 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & SYSC_QUIRK_SWSUP_SIDLE) { ddata 1017 drivers/bus/ti-sysc.c ddata->cfg.sysc_val & BIT(regbits->autoidle_shift)) ddata 1019 drivers/bus/ti-sysc.c sysc_write(ddata, ddata->offsets[SYSC_SYSCONFIG], reg); ddata 1025 drivers/bus/ti-sysc.c struct sysc *ddata) ddata 1030 drivers/bus/ti-sysc.c pdata = dev_get_platdata(ddata->dev); ddata 1037 drivers/bus/ti-sysc.c error = pdata->idle_module(dev, &ddata->cookie); ddata 1042 drivers/bus/ti-sysc.c reset_control_assert(ddata->rsts); ddata 1048 drivers/bus/ti-sysc.c struct sysc *ddata) ddata 1053 drivers/bus/ti-sysc.c reset_control_deassert(ddata->rsts); ddata 1055 drivers/bus/ti-sysc.c pdata = dev_get_platdata(ddata->dev); ddata 1062 drivers/bus/ti-sysc.c error = pdata->enable_module(dev, &ddata->cookie); ddata 1072 drivers/bus/ti-sysc.c struct sysc *ddata; ddata 1075 drivers/bus/ti-sysc.c ddata = dev_get_drvdata(dev); ddata 1077 drivers/bus/ti-sysc.c if (!ddata->enabled) ddata 1080 drivers/bus/ti-sysc.c sysc_clkdm_deny_idle(ddata); ddata 1082 drivers/bus/ti-sysc.c if (ddata->legacy_mode) { ddata 1083 drivers/bus/ti-sysc.c error = sysc_runtime_suspend_legacy(dev, ddata); ddata 1092 drivers/bus/ti-sysc.c sysc_disable_main_clocks(ddata); ddata 1094 drivers/bus/ti-sysc.c if (sysc_opt_clks_needed(ddata)) ddata 1095 drivers/bus/ti-sysc.c sysc_disable_opt_clocks(ddata); ddata 1097 drivers/bus/ti-sysc.c ddata->enabled = false; ddata 1100 drivers/bus/ti-sysc.c reset_control_assert(ddata->rsts); ddata 1102 drivers/bus/ti-sysc.c sysc_clkdm_allow_idle(ddata); ddata 1109 drivers/bus/ti-sysc.c struct sysc *ddata; ddata 1112 drivers/bus/ti-sysc.c ddata = dev_get_drvdata(dev); ddata 1114 drivers/bus/ti-sysc.c if (ddata->enabled) ddata 1118 drivers/bus/ti-sysc.c sysc_clkdm_deny_idle(ddata); ddata 1120 drivers/bus/ti-sysc.c reset_control_deassert(ddata->rsts); ddata 1122 drivers/bus/ti-sysc.c if (sysc_opt_clks_needed(ddata)) { ddata 1123 drivers/bus/ti-sysc.c error = sysc_enable_opt_clocks(ddata); ddata 1128 drivers/bus/ti-sysc.c error = sysc_enable_main_clocks(ddata); ddata 1132 drivers/bus/ti-sysc.c if (ddata->legacy_mode) { ddata 1133 drivers/bus/ti-sysc.c error = sysc_runtime_resume_legacy(dev, ddata); ddata 1142 drivers/bus/ti-sysc.c ddata->enabled = true; ddata 1144 drivers/bus/ti-sysc.c sysc_clkdm_allow_idle(ddata); ddata 1149 drivers/bus/ti-sysc.c sysc_disable_main_clocks(ddata); ddata 1151 drivers/bus/ti-sysc.c if (sysc_opt_clks_needed(ddata)) ddata 1152 drivers/bus/ti-sysc.c sysc_disable_opt_clocks(ddata); ddata 1154 drivers/bus/ti-sysc.c sysc_clkdm_allow_idle(ddata); ddata 1161 drivers/bus/ti-sysc.c struct sysc *ddata; ddata 1163 drivers/bus/ti-sysc.c ddata = dev_get_drvdata(dev); ddata 1165 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & SYSC_QUIRK_LEGACY_IDLE) ddata 1173 drivers/bus/ti-sysc.c struct sysc *ddata; ddata 1175 drivers/bus/ti-sysc.c ddata = dev_get_drvdata(dev); ddata 1177 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & SYSC_QUIRK_LEGACY_IDLE) ddata 1344 drivers/bus/ti-sysc.c static void sysc_init_early_quirks(struct sysc *ddata) ddata 1355 drivers/bus/ti-sysc.c if (q->base != ddata->module_pa) ddata 1359 drivers/bus/ti-sysc.c q->rev_offset != ddata->offsets[SYSC_REVISION]) ddata 1363 drivers/bus/ti-sysc.c q->sysc_offset != ddata->offsets[SYSC_SYSCONFIG]) ddata 1367 drivers/bus/ti-sysc.c q->syss_offset != ddata->offsets[SYSC_SYSSTATUS]) ddata 1370 drivers/bus/ti-sysc.c ddata->name = q->name; ddata 1371 drivers/bus/ti-sysc.c ddata->cfg.quirks |= q->quirks; ddata 1376 drivers/bus/ti-sysc.c static void sysc_init_revision_quirks(struct sysc *ddata) ddata 1384 drivers/bus/ti-sysc.c if (q->base && q->base != ddata->module_pa) ddata 1388 drivers/bus/ti-sysc.c q->rev_offset != ddata->offsets[SYSC_REVISION]) ddata 1392 drivers/bus/ti-sysc.c q->sysc_offset != ddata->offsets[SYSC_SYSCONFIG]) ddata 1396 drivers/bus/ti-sysc.c q->syss_offset != ddata->offsets[SYSC_SYSSTATUS]) ddata 1399 drivers/bus/ti-sysc.c if (q->revision == ddata->revision || ddata 1401 drivers/bus/ti-sysc.c (ddata->revision & q->revision_mask)) { ddata 1402 drivers/bus/ti-sysc.c ddata->name = q->name; ddata 1403 drivers/bus/ti-sysc.c ddata->cfg.quirks |= q->quirks; ddata 1409 drivers/bus/ti-sysc.c static void sysc_pre_reset_quirk_hdq1w(struct sysc *ddata) ddata 1414 drivers/bus/ti-sysc.c val = sysc_read(ddata, offset); ddata 1416 drivers/bus/ti-sysc.c sysc_write(ddata, offset, val); ddata 1420 drivers/bus/ti-sysc.c static void sysc_module_enable_quirk_aess(struct sysc *ddata) ddata 1424 drivers/bus/ti-sysc.c sysc_write(ddata, offset, 1); ddata 1428 drivers/bus/ti-sysc.c static void sysc_clk_quirk_i2c(struct sysc *ddata, bool enable) ddata 1434 drivers/bus/ti-sysc.c if ((ddata->revision & 0xffffff00) == 0x001f0000) ddata 1440 drivers/bus/ti-sysc.c val = sysc_read(ddata, offset); ddata 1445 drivers/bus/ti-sysc.c sysc_write(ddata, offset, val); ddata 1448 drivers/bus/ti-sysc.c static void sysc_clk_enable_quirk_i2c(struct sysc *ddata) ddata 1450 drivers/bus/ti-sysc.c sysc_clk_quirk_i2c(ddata, true); ddata 1453 drivers/bus/ti-sysc.c static void sysc_clk_disable_quirk_i2c(struct sysc *ddata) ddata 1455 drivers/bus/ti-sysc.c sysc_clk_quirk_i2c(ddata, false); ddata 1459 drivers/bus/ti-sysc.c static void sysc_module_enable_quirk_sgx(struct sysc *ddata) ddata 1464 drivers/bus/ti-sysc.c sysc_write(ddata, offset, val); ddata 1468 drivers/bus/ti-sysc.c static void sysc_reset_done_quirk_wdt(struct sysc *ddata) ddata 1476 drivers/bus/ti-sysc.c sysc_write(ddata, spr, 0xaaaa); ddata 1477 drivers/bus/ti-sysc.c error = readl_poll_timeout(ddata->module_va + wps, val, ddata 1481 drivers/bus/ti-sysc.c dev_warn(ddata->dev, "wdt disable step1 failed\n"); ddata 1483 drivers/bus/ti-sysc.c sysc_write(ddata, spr, 0x5555); ddata 1484 drivers/bus/ti-sysc.c error = readl_poll_timeout(ddata->module_va + wps, val, ddata 1488 drivers/bus/ti-sysc.c dev_warn(ddata->dev, "wdt disable step2 failed\n"); ddata 1491 drivers/bus/ti-sysc.c static void sysc_init_module_quirks(struct sysc *ddata) ddata 1493 drivers/bus/ti-sysc.c if (ddata->legacy_mode || !ddata->name) ddata 1496 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & SYSC_MODULE_QUIRK_HDQ1W) { ddata 1497 drivers/bus/ti-sysc.c ddata->clk_disable_quirk = sysc_pre_reset_quirk_hdq1w; ddata 1502 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & SYSC_MODULE_QUIRK_I2C) { ddata 1503 drivers/bus/ti-sysc.c ddata->clk_enable_quirk = sysc_clk_enable_quirk_i2c; ddata 1504 drivers/bus/ti-sysc.c ddata->clk_disable_quirk = sysc_clk_disable_quirk_i2c; ddata 1509 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & SYSC_MODULE_QUIRK_AESS) ddata 1510 drivers/bus/ti-sysc.c ddata->module_enable_quirk = sysc_module_enable_quirk_aess; ddata 1512 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & SYSC_MODULE_QUIRK_SGX) ddata 1513 drivers/bus/ti-sysc.c ddata->module_enable_quirk = sysc_module_enable_quirk_sgx; ddata 1515 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & SYSC_MODULE_QUIRK_WDT) { ddata 1516 drivers/bus/ti-sysc.c ddata->reset_done_quirk = sysc_reset_done_quirk_wdt; ddata 1517 drivers/bus/ti-sysc.c ddata->module_disable_quirk = sysc_reset_done_quirk_wdt; ddata 1521 drivers/bus/ti-sysc.c static int sysc_clockdomain_init(struct sysc *ddata) ddata 1523 drivers/bus/ti-sysc.c struct ti_sysc_platform_data *pdata = dev_get_platdata(ddata->dev); ddata 1530 drivers/bus/ti-sysc.c switch (ddata->nr_clocks) { ddata 1532 drivers/bus/ti-sysc.c ick = ddata->clocks[SYSC_ICK]; ddata 1535 drivers/bus/ti-sysc.c fck = ddata->clocks[SYSC_FCK]; ddata 1541 drivers/bus/ti-sysc.c error = pdata->init_clockdomain(ddata->dev, fck, ick, &ddata->cookie); ddata 1553 drivers/bus/ti-sysc.c static int sysc_legacy_init(struct sysc *ddata) ddata 1555 drivers/bus/ti-sysc.c struct ti_sysc_platform_data *pdata = dev_get_platdata(ddata->dev); ddata 1561 drivers/bus/ti-sysc.c error = pdata->init_module(ddata->dev, ddata->mdata, &ddata->cookie); ddata 1581 drivers/bus/ti-sysc.c static int sysc_rstctrl_reset_deassert(struct sysc *ddata, bool reset) ddata 1585 drivers/bus/ti-sysc.c if (!ddata->rsts) ddata 1589 drivers/bus/ti-sysc.c error = reset_control_assert(ddata->rsts); ddata 1594 drivers/bus/ti-sysc.c reset_control_deassert(ddata->rsts); ddata 1603 drivers/bus/ti-sysc.c static int sysc_reset(struct sysc *ddata) ddata 1608 drivers/bus/ti-sysc.c sysc_offset = ddata->offsets[SYSC_SYSCONFIG]; ddata 1609 drivers/bus/ti-sysc.c syss_offset = ddata->offsets[SYSC_SYSSTATUS]; ddata 1611 drivers/bus/ti-sysc.c if (ddata->legacy_mode || sysc_offset < 0 || ddata 1612 drivers/bus/ti-sysc.c ddata->cap->regbits->srst_shift < 0 || ddata 1613 drivers/bus/ti-sysc.c ddata->cfg.quirks & SYSC_QUIRK_NO_RESET_ON_INIT) ddata 1616 drivers/bus/ti-sysc.c sysc_mask = BIT(ddata->cap->regbits->srst_shift); ddata 1618 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & SYSS_QUIRK_RESETDONE_INVERTED) ddata 1621 drivers/bus/ti-sysc.c syss_done = ddata->cfg.syss_mask; ddata 1623 drivers/bus/ti-sysc.c if (ddata->clk_disable_quirk) ddata 1624 drivers/bus/ti-sysc.c ddata->clk_disable_quirk(ddata); ddata 1626 drivers/bus/ti-sysc.c sysc_val = sysc_read_sysconfig(ddata); ddata 1628 drivers/bus/ti-sysc.c sysc_write(ddata, sysc_offset, sysc_val); ddata 1630 drivers/bus/ti-sysc.c if (ddata->cfg.srst_udelay) ddata 1631 drivers/bus/ti-sysc.c usleep_range(ddata->cfg.srst_udelay, ddata 1632 drivers/bus/ti-sysc.c ddata->cfg.srst_udelay * 2); ddata 1634 drivers/bus/ti-sysc.c if (ddata->clk_enable_quirk) ddata 1635 drivers/bus/ti-sysc.c ddata->clk_enable_quirk(ddata); ddata 1639 drivers/bus/ti-sysc.c error = readx_poll_timeout(sysc_read_sysstatus, ddata, rstval, ddata 1640 drivers/bus/ti-sysc.c (rstval & ddata->cfg.syss_mask) == ddata 1644 drivers/bus/ti-sysc.c } else if (ddata->cfg.quirks & SYSC_QUIRK_RESET_STATUS) { ddata 1645 drivers/bus/ti-sysc.c error = readx_poll_timeout(sysc_read_sysconfig, ddata, rstval, ddata 1650 drivers/bus/ti-sysc.c if (ddata->reset_done_quirk) ddata 1651 drivers/bus/ti-sysc.c ddata->reset_done_quirk(ddata); ddata 1662 drivers/bus/ti-sysc.c static int sysc_init_module(struct sysc *ddata) ddata 1667 drivers/bus/ti-sysc.c error = sysc_rstctrl_reset_deassert(ddata, false); ddata 1671 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & ddata 1675 drivers/bus/ti-sysc.c error = sysc_clockdomain_init(ddata); ddata 1679 drivers/bus/ti-sysc.c sysc_clkdm_deny_idle(ddata); ddata 1685 drivers/bus/ti-sysc.c error = sysc_enable_opt_clocks(ddata); ddata 1689 drivers/bus/ti-sysc.c error = sysc_enable_main_clocks(ddata); ddata 1693 drivers/bus/ti-sysc.c if (!(ddata->cfg.quirks & SYSC_QUIRK_NO_RESET_ON_INIT)) { ddata 1694 drivers/bus/ti-sysc.c error = sysc_rstctrl_reset_deassert(ddata, true); ddata 1699 drivers/bus/ti-sysc.c ddata->revision = sysc_read_revision(ddata); ddata 1700 drivers/bus/ti-sysc.c sysc_init_revision_quirks(ddata); ddata 1701 drivers/bus/ti-sysc.c sysc_init_module_quirks(ddata); ddata 1703 drivers/bus/ti-sysc.c if (ddata->legacy_mode) { ddata 1704 drivers/bus/ti-sysc.c error = sysc_legacy_init(ddata); ddata 1709 drivers/bus/ti-sysc.c if (!ddata->legacy_mode) { ddata 1710 drivers/bus/ti-sysc.c error = sysc_enable_module(ddata->dev); ddata 1715 drivers/bus/ti-sysc.c error = sysc_reset(ddata); ddata 1717 drivers/bus/ti-sysc.c dev_err(ddata->dev, "Reset failed with %d\n", error); ddata 1719 drivers/bus/ti-sysc.c if (!ddata->legacy_mode && manage_clocks) ddata 1720 drivers/bus/ti-sysc.c sysc_disable_module(ddata->dev); ddata 1724 drivers/bus/ti-sysc.c sysc_disable_main_clocks(ddata); ddata 1728 drivers/bus/ti-sysc.c sysc_disable_opt_clocks(ddata); ddata 1729 drivers/bus/ti-sysc.c sysc_clkdm_allow_idle(ddata); ddata 1735 drivers/bus/ti-sysc.c static int sysc_init_sysc_mask(struct sysc *ddata) ddata 1737 drivers/bus/ti-sysc.c struct device_node *np = ddata->dev->of_node; ddata 1745 drivers/bus/ti-sysc.c ddata->cfg.sysc_val = val & ddata->cap->sysc_mask; ddata 1750 drivers/bus/ti-sysc.c static int sysc_init_idlemode(struct sysc *ddata, u8 *idlemodes, ddata 1753 drivers/bus/ti-sysc.c struct device_node *np = ddata->dev->of_node; ddata 1760 drivers/bus/ti-sysc.c dev_err(ddata->dev, "invalid idlemode: %i\n", val); ddata 1769 drivers/bus/ti-sysc.c static int sysc_init_idlemodes(struct sysc *ddata) ddata 1773 drivers/bus/ti-sysc.c error = sysc_init_idlemode(ddata, &ddata->cfg.midlemodes, ddata 1778 drivers/bus/ti-sysc.c error = sysc_init_idlemode(ddata, &ddata->cfg.sidlemodes, ddata 1793 drivers/bus/ti-sysc.c static int sysc_init_syss_mask(struct sysc *ddata) ddata 1795 drivers/bus/ti-sysc.c struct device_node *np = ddata->dev->of_node; ddata 1801 drivers/bus/ti-sysc.c if ((ddata->cap->type == TI_SYSC_OMAP4 || ddata 1802 drivers/bus/ti-sysc.c ddata->cap->type == TI_SYSC_OMAP4_TIMER) && ddata 1803 drivers/bus/ti-sysc.c (ddata->cfg.sysc_val & SYSC_OMAP4_SOFTRESET)) ddata 1804 drivers/bus/ti-sysc.c ddata->cfg.quirks |= SYSC_QUIRK_RESET_STATUS; ddata 1809 drivers/bus/ti-sysc.c if (!(val & 1) && (ddata->cfg.sysc_val & SYSC_OMAP4_SOFTRESET)) ddata 1810 drivers/bus/ti-sysc.c ddata->cfg.quirks |= SYSC_QUIRK_RESET_STATUS; ddata 1812 drivers/bus/ti-sysc.c ddata->cfg.syss_mask = val; ddata 1821 drivers/bus/ti-sysc.c static int sysc_child_add_named_clock(struct sysc *ddata, ddata 1839 drivers/bus/ti-sysc.c clk = clk_get(ddata->dev, name); ddata 1852 drivers/bus/ti-sysc.c static int sysc_child_add_clocks(struct sysc *ddata, ddata 1857 drivers/bus/ti-sysc.c for (i = 0; i < ddata->nr_clocks; i++) { ddata 1858 drivers/bus/ti-sysc.c error = sysc_child_add_named_clock(ddata, ddata 1860 drivers/bus/ti-sysc.c ddata->clock_roles[i]); ddata 1862 drivers/bus/ti-sysc.c dev_err(ddata->dev, "could not add child clock %s: %i\n", ddata 1863 drivers/bus/ti-sysc.c ddata->clock_roles[i], error); ddata 1887 drivers/bus/ti-sysc.c struct sysc *ddata; ddata 1890 drivers/bus/ti-sysc.c ddata = sysc_child_to_parent(dev); ddata 1896 drivers/bus/ti-sysc.c if (!ddata->enabled) ddata 1899 drivers/bus/ti-sysc.c return sysc_runtime_suspend(ddata->dev); ddata 1904 drivers/bus/ti-sysc.c struct sysc *ddata; ddata 1907 drivers/bus/ti-sysc.c ddata = sysc_child_to_parent(dev); ddata 1909 drivers/bus/ti-sysc.c if (!ddata->enabled) { ddata 1910 drivers/bus/ti-sysc.c error = sysc_runtime_resume(ddata->dev); ddata 1912 drivers/bus/ti-sysc.c dev_err(ddata->dev, ddata 1922 drivers/bus/ti-sysc.c struct sysc *ddata; ddata 1925 drivers/bus/ti-sysc.c ddata = sysc_child_to_parent(dev); ddata 1927 drivers/bus/ti-sysc.c dev_dbg(ddata->dev, "%s %s\n", __func__, ddata 1928 drivers/bus/ti-sysc.c ddata->name ? ddata->name : ""); ddata 1947 drivers/bus/ti-sysc.c error = sysc_runtime_suspend(ddata->dev); ddata 1955 drivers/bus/ti-sysc.c ddata->child_needs_resume = true; ddata 1963 drivers/bus/ti-sysc.c struct sysc *ddata; ddata 1966 drivers/bus/ti-sysc.c ddata = sysc_child_to_parent(dev); ddata 1968 drivers/bus/ti-sysc.c dev_dbg(ddata->dev, "%s %s\n", __func__, ddata 1969 drivers/bus/ti-sysc.c ddata->name ? ddata->name : ""); ddata 1971 drivers/bus/ti-sysc.c if (ddata->child_needs_resume) { ddata 1972 drivers/bus/ti-sysc.c ddata->child_needs_resume = false; ddata 1974 drivers/bus/ti-sysc.c error = sysc_runtime_resume(ddata->dev); ddata 1976 drivers/bus/ti-sysc.c dev_err(ddata->dev, ddata 1982 drivers/bus/ti-sysc.c dev_err(ddata->dev, ddata 2015 drivers/bus/ti-sysc.c static void sysc_legacy_idle_quirk(struct sysc *ddata, struct device *child) ddata 2017 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & SYSC_QUIRK_LEGACY_IDLE) ddata 2025 drivers/bus/ti-sysc.c struct sysc *ddata; ddata 2028 drivers/bus/ti-sysc.c ddata = sysc_child_to_parent(dev); ddata 2029 drivers/bus/ti-sysc.c if (!ddata) ddata 2034 drivers/bus/ti-sysc.c error = sysc_child_add_clocks(ddata, dev); ddata 2037 drivers/bus/ti-sysc.c sysc_legacy_idle_quirk(ddata, dev); ddata 2065 drivers/bus/ti-sysc.c static void sysc_parse_dts_quirks(struct sysc *ddata, struct device_node *np, ddata 2078 drivers/bus/ti-sysc.c ddata->cfg.quirks |= sysc_dts_quirks[i].mask; ddata 2080 drivers/bus/ti-sysc.c dev_warn(ddata->dev, ddata 2087 drivers/bus/ti-sysc.c static int sysc_init_dts_quirks(struct sysc *ddata) ddata 2089 drivers/bus/ti-sysc.c struct device_node *np = ddata->dev->of_node; ddata 2093 drivers/bus/ti-sysc.c ddata->legacy_mode = of_get_property(np, "ti,hwmods", NULL); ddata 2095 drivers/bus/ti-sysc.c sysc_parse_dts_quirks(ddata, np, false); ddata 2099 drivers/bus/ti-sysc.c dev_warn(ddata->dev, "bad ti,sysc-delay-us: %i\n", ddata 2103 drivers/bus/ti-sysc.c ddata->cfg.srst_udelay = (u8)val; ddata 2109 drivers/bus/ti-sysc.c static void sysc_unprepare(struct sysc *ddata) ddata 2113 drivers/bus/ti-sysc.c if (!ddata->clocks) ddata 2117 drivers/bus/ti-sysc.c if (!IS_ERR_OR_NULL(ddata->clocks[i])) ddata 2118 drivers/bus/ti-sysc.c clk_unprepare(ddata->clocks[i]); ddata 2359 drivers/bus/ti-sysc.c static int sysc_init_pdata(struct sysc *ddata) ddata 2361 drivers/bus/ti-sysc.c struct ti_sysc_platform_data *pdata = dev_get_platdata(ddata->dev); ddata 2367 drivers/bus/ti-sysc.c mdata = devm_kzalloc(ddata->dev, sizeof(*mdata), GFP_KERNEL); ddata 2371 drivers/bus/ti-sysc.c if (ddata->legacy_mode) { ddata 2372 drivers/bus/ti-sysc.c mdata->name = ddata->legacy_mode; ddata 2373 drivers/bus/ti-sysc.c mdata->module_pa = ddata->module_pa; ddata 2374 drivers/bus/ti-sysc.c mdata->module_size = ddata->module_size; ddata 2375 drivers/bus/ti-sysc.c mdata->offsets = ddata->offsets; ddata 2377 drivers/bus/ti-sysc.c mdata->cap = ddata->cap; ddata 2378 drivers/bus/ti-sysc.c mdata->cfg = &ddata->cfg; ddata 2381 drivers/bus/ti-sysc.c ddata->mdata = mdata; ddata 2386 drivers/bus/ti-sysc.c static int sysc_init_match(struct sysc *ddata) ddata 2390 drivers/bus/ti-sysc.c cap = of_device_get_match_data(ddata->dev); ddata 2394 drivers/bus/ti-sysc.c ddata->cap = cap; ddata 2395 drivers/bus/ti-sysc.c if (ddata->cap) ddata 2396 drivers/bus/ti-sysc.c ddata->cfg.quirks |= ddata->cap->mod_quirks; ddata 2403 drivers/bus/ti-sysc.c struct sysc *ddata; ddata 2405 drivers/bus/ti-sysc.c ddata = container_of(work, struct sysc, idle_work.work); ddata 2413 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & (SYSC_QUIRK_NO_IDLE | ddata 2415 drivers/bus/ti-sysc.c sysc_disable_main_clocks(ddata); ddata 2416 drivers/bus/ti-sysc.c sysc_disable_opt_clocks(ddata); ddata 2417 drivers/bus/ti-sysc.c sysc_clkdm_allow_idle(ddata); ddata 2421 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & SYSC_QUIRK_NO_IDLE) ddata 2428 drivers/bus/ti-sysc.c if (pm_runtime_active(ddata->dev)) ddata 2429 drivers/bus/ti-sysc.c pm_runtime_put_sync(ddata->dev); ddata 2440 drivers/bus/ti-sysc.c struct sysc *ddata; ddata 2443 drivers/bus/ti-sysc.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 2444 drivers/bus/ti-sysc.c if (!ddata) ddata 2447 drivers/bus/ti-sysc.c ddata->dev = &pdev->dev; ddata 2448 drivers/bus/ti-sysc.c platform_set_drvdata(pdev, ddata); ddata 2450 drivers/bus/ti-sysc.c error = sysc_init_match(ddata); ddata 2454 drivers/bus/ti-sysc.c error = sysc_init_dts_quirks(ddata); ddata 2458 drivers/bus/ti-sysc.c error = sysc_map_and_check_registers(ddata); ddata 2462 drivers/bus/ti-sysc.c error = sysc_init_sysc_mask(ddata); ddata 2466 drivers/bus/ti-sysc.c error = sysc_init_idlemodes(ddata); ddata 2470 drivers/bus/ti-sysc.c error = sysc_init_syss_mask(ddata); ddata 2474 drivers/bus/ti-sysc.c error = sysc_init_pdata(ddata); ddata 2478 drivers/bus/ti-sysc.c sysc_init_early_quirks(ddata); ddata 2480 drivers/bus/ti-sysc.c error = sysc_get_clocks(ddata); ddata 2484 drivers/bus/ti-sysc.c error = sysc_init_resets(ddata); ddata 2488 drivers/bus/ti-sysc.c error = sysc_init_module(ddata); ddata 2492 drivers/bus/ti-sysc.c pm_runtime_enable(ddata->dev); ddata 2493 drivers/bus/ti-sysc.c error = pm_runtime_get_sync(ddata->dev); ddata 2495 drivers/bus/ti-sysc.c pm_runtime_put_noidle(ddata->dev); ddata 2496 drivers/bus/ti-sysc.c pm_runtime_disable(ddata->dev); ddata 2501 drivers/bus/ti-sysc.c if (ddata->rsts) ddata 2502 drivers/bus/ti-sysc.c reset_control_assert(ddata->rsts); ddata 2504 drivers/bus/ti-sysc.c sysc_show_registers(ddata); ddata 2506 drivers/bus/ti-sysc.c ddata->dev->type = &sysc_device_type; ddata 2507 drivers/bus/ti-sysc.c error = of_platform_populate(ddata->dev->of_node, sysc_match_table, ddata 2509 drivers/bus/ti-sysc.c ddata->dev); ddata 2513 drivers/bus/ti-sysc.c INIT_DELAYED_WORK(&ddata->idle_work, ti_sysc_idle); ddata 2516 drivers/bus/ti-sysc.c if (ddata->cfg.quirks & (SYSC_QUIRK_NO_IDLE | ddata 2519 drivers/bus/ti-sysc.c schedule_delayed_work(&ddata->idle_work, 3000); ddata 2530 drivers/bus/ti-sysc.c sysc_unprepare(ddata); ddata 2537 drivers/bus/ti-sysc.c struct sysc *ddata = platform_get_drvdata(pdev); ddata 2540 drivers/bus/ti-sysc.c cancel_delayed_work_sync(&ddata->idle_work); ddata 2542 drivers/bus/ti-sysc.c error = pm_runtime_get_sync(ddata->dev); ddata 2544 drivers/bus/ti-sysc.c pm_runtime_put_noidle(ddata->dev); ddata 2545 drivers/bus/ti-sysc.c pm_runtime_disable(ddata->dev); ddata 2553 drivers/bus/ti-sysc.c reset_control_assert(ddata->rsts); ddata 2556 drivers/bus/ti-sysc.c sysc_unprepare(ddata); ddata 50 drivers/char/hw_random/st-rng.c struct st_rng_data *ddata = (struct st_rng_data *)rng->priv; ddata 56 drivers/char/hw_random/st-rng.c status = readl_relaxed(ddata->base + ST_RNG_STATUS_REG); ddata 67 drivers/char/hw_random/st-rng.c readl_relaxed(ddata->base + ST_RNG_DATA_REG); ddata 74 drivers/char/hw_random/st-rng.c struct st_rng_data *ddata; ddata 80 drivers/char/hw_random/st-rng.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 81 drivers/char/hw_random/st-rng.c if (!ddata) ddata 97 drivers/char/hw_random/st-rng.c ddata->ops.priv = (unsigned long)ddata; ddata 98 drivers/char/hw_random/st-rng.c ddata->ops.read = st_rng_read; ddata 99 drivers/char/hw_random/st-rng.c ddata->ops.name = pdev->name; ddata 100 drivers/char/hw_random/st-rng.c ddata->base = base; ddata 101 drivers/char/hw_random/st-rng.c ddata->clk = clk; ddata 103 drivers/char/hw_random/st-rng.c dev_set_drvdata(&pdev->dev, ddata); ddata 105 drivers/char/hw_random/st-rng.c ret = devm_hwrng_register(&pdev->dev, &ddata->ops); ddata 119 drivers/char/hw_random/st-rng.c struct st_rng_data *ddata = dev_get_drvdata(&pdev->dev); ddata 121 drivers/char/hw_random/st-rng.c clk_disable_unprepare(ddata->clk); ddata 28 drivers/clocksource/clksrc_st_lpc.c } ddata; ddata 32 drivers/clocksource/clksrc_st_lpc.c writel_relaxed(0, ddata.base + LPC_LPT_START_OFF); ddata 33 drivers/clocksource/clksrc_st_lpc.c writel_relaxed(0, ddata.base + LPC_LPT_MSB_OFF); ddata 34 drivers/clocksource/clksrc_st_lpc.c writel_relaxed(0, ddata.base + LPC_LPT_LSB_OFF); ddata 35 drivers/clocksource/clksrc_st_lpc.c writel_relaxed(1, ddata.base + LPC_LPT_START_OFF); ddata 40 drivers/clocksource/clksrc_st_lpc.c return (u64)readl_relaxed(ddata.base + LPC_LPT_LSB_OFF); ddata 50 drivers/clocksource/clksrc_st_lpc.c rate = clk_get_rate(ddata.clk); ddata 54 drivers/clocksource/clksrc_st_lpc.c ret = clocksource_mmio_init(ddata.base + LPC_LPT_LSB_OFF, ddata 86 drivers/clocksource/clksrc_st_lpc.c ddata.clk = clk; ddata 106 drivers/clocksource/clksrc_st_lpc.c ddata.base = of_iomap(np, 0); ddata 107 drivers/clocksource/clksrc_st_lpc.c if (!ddata.base) { ddata 114 drivers/clocksource/clksrc_st_lpc.c iounmap(ddata.base); ddata 120 drivers/clocksource/clksrc_st_lpc.c clk_disable_unprepare(ddata.clk); ddata 121 drivers/clocksource/clksrc_st_lpc.c clk_put(ddata.clk); ddata 122 drivers/clocksource/clksrc_st_lpc.c iounmap(ddata.base); ddata 127 drivers/clocksource/clksrc_st_lpc.c clk_get_rate(ddata.clk)); ddata 131 drivers/clocksource/clksrc_st_lpc.c TIMER_OF_DECLARE(ddata, "st,stih407-lpc", st_clksrc_of_register); ddata 50 drivers/clocksource/timer-efm32.c struct efm32_clock_event_ddata *ddata = ddata 53 drivers/clocksource/timer-efm32.c writel_relaxed(TIMERn_CMD_STOP, ddata->base + TIMERn_CMD); ddata 59 drivers/clocksource/timer-efm32.c struct efm32_clock_event_ddata *ddata = ddata 62 drivers/clocksource/timer-efm32.c writel_relaxed(TIMERn_CMD_STOP, ddata->base + TIMERn_CMD); ddata 67 drivers/clocksource/timer-efm32.c ddata->base + TIMERn_CTRL); ddata 73 drivers/clocksource/timer-efm32.c struct efm32_clock_event_ddata *ddata = ddata 76 drivers/clocksource/timer-efm32.c writel_relaxed(TIMERn_CMD_STOP, ddata->base + TIMERn_CMD); ddata 77 drivers/clocksource/timer-efm32.c writel_relaxed(ddata->periodic_top, ddata->base + TIMERn_TOP); ddata 81 drivers/clocksource/timer-efm32.c ddata->base + TIMERn_CTRL); ddata 82 drivers/clocksource/timer-efm32.c writel_relaxed(TIMERn_CMD_START, ddata->base + TIMERn_CMD); ddata 89 drivers/clocksource/timer-efm32.c struct efm32_clock_event_ddata *ddata = ddata 92 drivers/clocksource/timer-efm32.c writel_relaxed(TIMERn_CMD_STOP, ddata->base + TIMERn_CMD); ddata 93 drivers/clocksource/timer-efm32.c writel_relaxed(evt, ddata->base + TIMERn_CNT); ddata 94 drivers/clocksource/timer-efm32.c writel_relaxed(TIMERn_CMD_START, ddata->base + TIMERn_CMD); ddata 101 drivers/clocksource/timer-efm32.c struct efm32_clock_event_ddata *ddata = dev_id; ddata 103 drivers/clocksource/timer-efm32.c writel_relaxed(TIMERn_IRQ_UF, ddata->base + TIMERn_IFC); ddata 105 drivers/clocksource/timer-efm32.c ddata->evtdev.event_handler(&ddata->evtdev); ddata 70 drivers/clocksource/timer-lpc32xx.c struct lpc32xx_clock_event_ddata *ddata = ddata 79 drivers/clocksource/timer-lpc32xx.c writel_relaxed(LPC32XX_TIMER_TCR_CRST, ddata->base + LPC32XX_TIMER_TCR); ddata 80 drivers/clocksource/timer-lpc32xx.c writel_relaxed(delta, ddata->base + LPC32XX_TIMER_MR0); ddata 81 drivers/clocksource/timer-lpc32xx.c writel_relaxed(LPC32XX_TIMER_TCR_CEN, ddata->base + LPC32XX_TIMER_TCR); ddata 88 drivers/clocksource/timer-lpc32xx.c struct lpc32xx_clock_event_ddata *ddata = ddata 92 drivers/clocksource/timer-lpc32xx.c writel_relaxed(0, ddata->base + LPC32XX_TIMER_TCR); ddata 99 drivers/clocksource/timer-lpc32xx.c struct lpc32xx_clock_event_ddata *ddata = ddata 106 drivers/clocksource/timer-lpc32xx.c writel_relaxed(0, ddata->base + LPC32XX_TIMER_TCR); ddata 110 drivers/clocksource/timer-lpc32xx.c LPC32XX_TIMER_MCR_MR0S, ddata->base + LPC32XX_TIMER_MCR); ddata 116 drivers/clocksource/timer-lpc32xx.c struct lpc32xx_clock_event_ddata *ddata = ddata 121 drivers/clocksource/timer-lpc32xx.c ddata->base + LPC32XX_TIMER_MCR); ddata 127 drivers/clocksource/timer-lpc32xx.c writel_relaxed(LPC32XX_TIMER_TCR_CRST, ddata->base + LPC32XX_TIMER_TCR); ddata 128 drivers/clocksource/timer-lpc32xx.c writel_relaxed(ddata->ticks_per_jiffy, ddata->base + LPC32XX_TIMER_MR0); ddata 129 drivers/clocksource/timer-lpc32xx.c writel_relaxed(LPC32XX_TIMER_TCR_CEN, ddata->base + LPC32XX_TIMER_TCR); ddata 136 drivers/clocksource/timer-lpc32xx.c struct lpc32xx_clock_event_ddata *ddata = dev_id; ddata 139 drivers/clocksource/timer-lpc32xx.c writel_relaxed(LPC32XX_TIMER_IR_MR0INT, ddata->base + LPC32XX_TIMER_IR); ddata 141 drivers/clocksource/timer-lpc32xx.c ddata->evtdev.event_handler(&ddata->evtdev); ddata 632 drivers/counter/stm32-lptimer-cnt.c struct stm32_lptimer *ddata = dev_get_drvdata(pdev->dev.parent); ddata 637 drivers/counter/stm32-lptimer-cnt.c if (IS_ERR_OR_NULL(ddata)) ddata 646 drivers/counter/stm32-lptimer-cnt.c priv->regmap = ddata->regmap; ddata 647 drivers/counter/stm32-lptimer-cnt.c priv->clk = ddata->clk; ddata 655 drivers/counter/stm32-lptimer-cnt.c if (ddata->has_encoder) ddata 665 drivers/counter/stm32-lptimer-cnt.c if (ddata->has_encoder) { ddata 344 drivers/counter/stm32-timer-cnt.c struct stm32_timers *ddata = dev_get_drvdata(pdev->dev.parent); ddata 348 drivers/counter/stm32-timer-cnt.c if (IS_ERR_OR_NULL(ddata)) ddata 355 drivers/counter/stm32-timer-cnt.c priv->regmap = ddata->regmap; ddata 356 drivers/counter/stm32-timer-cnt.c priv->clk = ddata->clk; ddata 357 drivers/counter/stm32-timer-cnt.c priv->ceiling = ddata->max_arr; ddata 53 drivers/cpufreq/sti-cpufreq.c } ddata; ddata 56 drivers/cpufreq/sti-cpufreq.c struct device_node *np = ddata.cpu->of_node; ddata 57 drivers/cpufreq/sti-cpufreq.c struct device *dev = ddata.cpu; ddata 70 drivers/cpufreq/sti-cpufreq.c ret = regmap_read(ddata.syscfg, major_offset, &socid); ddata 82 drivers/cpufreq/sti-cpufreq.c struct device *dev = ddata.cpu; ddata 97 drivers/cpufreq/sti-cpufreq.c ret = regmap_read(ddata.syscfg_eng, minor_offset, &minid); ddata 113 drivers/cpufreq/sti-cpufreq.c struct device *dev = ddata.cpu; ddata 119 drivers/cpufreq/sti-cpufreq.c ddata.syscfg_eng, ddata 152 drivers/cpufreq/sti-cpufreq.c struct device *dev = ddata.cpu; ddata 238 drivers/cpufreq/sti-cpufreq.c struct device *dev = ddata.cpu; ddata 241 drivers/cpufreq/sti-cpufreq.c ddata.syscfg = syscon_regmap_lookup_by_phandle(np, "st,syscfg"); ddata 242 drivers/cpufreq/sti-cpufreq.c if (IS_ERR(ddata.syscfg)) { ddata 244 drivers/cpufreq/sti-cpufreq.c return PTR_ERR(ddata.syscfg); ddata 247 drivers/cpufreq/sti-cpufreq.c ddata.syscfg_eng = syscon_regmap_lookup_by_phandle(np, "st,syscfg-eng"); ddata 248 drivers/cpufreq/sti-cpufreq.c if (IS_ERR(ddata.syscfg_eng)) { ddata 250 drivers/cpufreq/sti-cpufreq.c return PTR_ERR(ddata.syscfg_eng); ddata 264 drivers/cpufreq/sti-cpufreq.c ddata.cpu = get_cpu_device(0); ddata 265 drivers/cpufreq/sti-cpufreq.c if (!ddata.cpu) { ddata 266 drivers/cpufreq/sti-cpufreq.c dev_err(ddata.cpu, "Failed to get device for CPU0\n"); ddata 270 drivers/cpufreq/sti-cpufreq.c if (!of_get_property(ddata.cpu->of_node, "operating-points-v2", NULL)) { ddata 271 drivers/cpufreq/sti-cpufreq.c dev_err(ddata.cpu, "OPP-v2 not supported\n"); ddata 284 drivers/cpufreq/sti-cpufreq.c dev_err(ddata.cpu, "Not doing voltage scaling\n"); ddata 336 drivers/gpio/gpio-intel-mid.c struct intel_mid_gpio_ddata *ddata = ddata 370 drivers/gpio/gpio-intel-mid.c priv->chip.ngpio = ddata->ngpio; ddata 30 drivers/gpio/gpio-siox.c struct gpio_siox_ddata *ddata = dev_get_drvdata(&sdevice->dev); ddata 32 drivers/gpio/gpio-siox.c mutex_lock(&ddata->lock); ddata 33 drivers/gpio/gpio-siox.c buf[0] = ddata->setdata[0]; ddata 34 drivers/gpio/gpio-siox.c mutex_unlock(&ddata->lock); ddata 41 drivers/gpio/gpio-siox.c struct gpio_siox_ddata *ddata = dev_get_drvdata(&sdevice->dev); ddata 45 drivers/gpio/gpio-siox.c mutex_lock(&ddata->lock); ddata 47 drivers/gpio/gpio-siox.c spin_lock_irq(&ddata->irqlock); ddata 53 drivers/gpio/gpio-siox.c ddata->getdata[bitpos / 8] & (1 << (bitpos % 8)); ddata 54 drivers/gpio/gpio-siox.c u32 irq_type = ddata->irq_type[offset]; ddata 59 drivers/gpio/gpio-siox.c ddata->irq_status |= 1 << offset; ddata 63 drivers/gpio/gpio-siox.c ddata->irq_status |= 1 << offset; ddata 67 drivers/gpio/gpio-siox.c trigger = ddata->irq_status & ddata->irq_enable; ddata 69 drivers/gpio/gpio-siox.c spin_unlock_irq(&ddata->irqlock); ddata 71 drivers/gpio/gpio-siox.c ddata->getdata[0] = buf[0]; ddata 72 drivers/gpio/gpio-siox.c ddata->getdata[1] = buf[1]; ddata 73 drivers/gpio/gpio-siox.c ddata->getdata[2] = buf[2]; ddata 75 drivers/gpio/gpio-siox.c mutex_unlock(&ddata->lock); ddata 79 drivers/gpio/gpio-siox.c struct irq_domain *irqdomain = ddata->gchip.irq.domain; ddata 87 drivers/gpio/gpio-siox.c spin_lock_irq(&ddata->irqlock); ddata 88 drivers/gpio/gpio-siox.c ddata->irq_status &= ~(1 << offset); ddata 89 drivers/gpio/gpio-siox.c spin_unlock_irq(&ddata->irqlock); ddata 101 drivers/gpio/gpio-siox.c struct gpio_siox_ddata *ddata = ddata 104 drivers/gpio/gpio-siox.c spin_lock_irq(&ddata->irqlock); ddata 105 drivers/gpio/gpio-siox.c ddata->irq_status &= ~(1 << d->hwirq); ddata 106 drivers/gpio/gpio-siox.c spin_unlock_irq(&ddata->irqlock); ddata 112 drivers/gpio/gpio-siox.c struct gpio_siox_ddata *ddata = ddata 115 drivers/gpio/gpio-siox.c spin_lock_irq(&ddata->irqlock); ddata 116 drivers/gpio/gpio-siox.c ddata->irq_enable &= ~(1 << d->hwirq); ddata 117 drivers/gpio/gpio-siox.c spin_unlock_irq(&ddata->irqlock); ddata 123 drivers/gpio/gpio-siox.c struct gpio_siox_ddata *ddata = ddata 126 drivers/gpio/gpio-siox.c spin_lock_irq(&ddata->irqlock); ddata 127 drivers/gpio/gpio-siox.c ddata->irq_enable |= 1 << d->hwirq; ddata 128 drivers/gpio/gpio-siox.c spin_unlock_irq(&ddata->irqlock); ddata 134 drivers/gpio/gpio-siox.c struct gpio_siox_ddata *ddata = ddata 137 drivers/gpio/gpio-siox.c spin_lock_irq(&ddata->irqlock); ddata 138 drivers/gpio/gpio-siox.c ddata->irq_type[d->hwirq] = type; ddata 139 drivers/gpio/gpio-siox.c spin_unlock_irq(&ddata->irqlock); ddata 146 drivers/gpio/gpio-siox.c struct gpio_siox_ddata *ddata = ddata 150 drivers/gpio/gpio-siox.c mutex_lock(&ddata->lock); ddata 155 drivers/gpio/gpio-siox.c ret = ddata->setdata[0] & (1 << bitpos); ddata 159 drivers/gpio/gpio-siox.c ret = ddata->getdata[bitpos / 8] & (1 << (bitpos % 8)); ddata 162 drivers/gpio/gpio-siox.c mutex_unlock(&ddata->lock); ddata 170 drivers/gpio/gpio-siox.c struct gpio_siox_ddata *ddata = ddata 174 drivers/gpio/gpio-siox.c mutex_lock(&ddata->lock); ddata 177 drivers/gpio/gpio-siox.c ddata->setdata[0] |= mask; ddata 179 drivers/gpio/gpio-siox.c ddata->setdata[0] &= ~mask; ddata 181 drivers/gpio/gpio-siox.c mutex_unlock(&ddata->lock); ddata 213 drivers/gpio/gpio-siox.c struct gpio_siox_ddata *ddata; ddata 218 drivers/gpio/gpio-siox.c ddata = devm_kzalloc(dev, sizeof(*ddata), GFP_KERNEL); ddata 219 drivers/gpio/gpio-siox.c if (!ddata) ddata 222 drivers/gpio/gpio-siox.c dev_set_drvdata(dev, ddata); ddata 224 drivers/gpio/gpio-siox.c mutex_init(&ddata->lock); ddata 225 drivers/gpio/gpio-siox.c spin_lock_init(&ddata->irqlock); ddata 227 drivers/gpio/gpio-siox.c ddata->gchip.base = -1; ddata 228 drivers/gpio/gpio-siox.c ddata->gchip.can_sleep = 1; ddata 229 drivers/gpio/gpio-siox.c ddata->gchip.parent = dev; ddata 230 drivers/gpio/gpio-siox.c ddata->gchip.owner = THIS_MODULE; ddata 231 drivers/gpio/gpio-siox.c ddata->gchip.get = gpio_siox_get; ddata 232 drivers/gpio/gpio-siox.c ddata->gchip.set = gpio_siox_set; ddata 233 drivers/gpio/gpio-siox.c ddata->gchip.direction_input = gpio_siox_direction_input; ddata 234 drivers/gpio/gpio-siox.c ddata->gchip.direction_output = gpio_siox_direction_output; ddata 235 drivers/gpio/gpio-siox.c ddata->gchip.get_direction = gpio_siox_get_direction; ddata 236 drivers/gpio/gpio-siox.c ddata->gchip.ngpio = 20; ddata 238 drivers/gpio/gpio-siox.c ddata->ichip.name = "siox-gpio"; ddata 239 drivers/gpio/gpio-siox.c ddata->ichip.irq_ack = gpio_siox_irq_ack; ddata 240 drivers/gpio/gpio-siox.c ddata->ichip.irq_mask = gpio_siox_irq_mask; ddata 241 drivers/gpio/gpio-siox.c ddata->ichip.irq_unmask = gpio_siox_irq_unmask; ddata 242 drivers/gpio/gpio-siox.c ddata->ichip.irq_set_type = gpio_siox_irq_set_type; ddata 244 drivers/gpio/gpio-siox.c girq = &ddata->gchip.irq; ddata 245 drivers/gpio/gpio-siox.c girq->chip = &ddata->ichip; ddata 249 drivers/gpio/gpio-siox.c ret = devm_gpiochip_add_data(dev, &ddata->gchip, NULL); ddata 790 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c struct dsi_data *ddata = dev_get_drvdata(dev); ddata 791 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c struct dw_dsi *dsi = &ddata->dsi; ddata 42 drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c struct panel_drv_data *ddata; ddata 45 drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 46 drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c if (!ddata) ddata 49 drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c platform_set_drvdata(pdev, ddata); ddata 50 drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c ddata->dev = &pdev->dev; ddata 52 drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c dssdev = &ddata->dssdev; ddata 68 drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 70 drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c omapdss_device_unregister(&ddata->dssdev); ddata 43 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 45 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c return gpiod_get_value_cansleep(ddata->hpd_gpio); ddata 53 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 55 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c mutex_lock(&ddata->hpd_lock); ddata 56 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c ddata->hpd_cb = cb; ddata 57 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c ddata->hpd_cb_data = cb_data; ddata 58 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c mutex_unlock(&ddata->hpd_lock); ddata 63 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 65 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c mutex_lock(&ddata->hpd_lock); ddata 66 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c ddata->hpd_cb = NULL; ddata 67 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c ddata->hpd_cb_data = NULL; ddata 68 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c mutex_unlock(&ddata->hpd_lock); ddata 82 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c struct panel_drv_data *ddata = data; ddata 84 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c mutex_lock(&ddata->hpd_lock); ddata 85 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c if (ddata->hpd_cb) { ddata 88 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c if (hdmic_detect(&ddata->dssdev)) ddata 93 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c ddata->hpd_cb(ddata->hpd_cb_data, status); ddata 95 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c mutex_unlock(&ddata->hpd_lock); ddata 102 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c struct panel_drv_data *ddata; ddata 107 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 108 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c if (!ddata) ddata 111 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c platform_set_drvdata(pdev, ddata); ddata 112 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c ddata->dev = &pdev->dev; ddata 114 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c mutex_init(&ddata->hpd_lock); ddata 123 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c ddata->hpd_gpio = gpio; ddata 125 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c if (ddata->hpd_gpio) { ddata 127 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c gpiod_to_irq(ddata->hpd_gpio), ddata 131 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c "hdmic hpd", ddata); ddata 136 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c dssdev = &ddata->dssdev; ddata 143 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c dssdev->ops_flags = ddata->hpd_gpio ddata 155 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 157 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c omapdss_device_unregister(&ddata->dssdev); ddata 43 drivers/gpu/drm/omapdrm/displays/encoder-opa362.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 45 drivers/gpu/drm/omapdrm/displays/encoder-opa362.c if (ddata->enable_gpio) ddata 46 drivers/gpu/drm/omapdrm/displays/encoder-opa362.c gpiod_set_value_cansleep(ddata->enable_gpio, 1); ddata 51 drivers/gpu/drm/omapdrm/displays/encoder-opa362.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 53 drivers/gpu/drm/omapdrm/displays/encoder-opa362.c if (ddata->enable_gpio) ddata 54 drivers/gpu/drm/omapdrm/displays/encoder-opa362.c gpiod_set_value_cansleep(ddata->enable_gpio, 0); ddata 66 drivers/gpu/drm/omapdrm/displays/encoder-opa362.c struct panel_drv_data *ddata; ddata 72 drivers/gpu/drm/omapdrm/displays/encoder-opa362.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 73 drivers/gpu/drm/omapdrm/displays/encoder-opa362.c if (!ddata) ddata 76 drivers/gpu/drm/omapdrm/displays/encoder-opa362.c platform_set_drvdata(pdev, ddata); ddata 82 drivers/gpu/drm/omapdrm/displays/encoder-opa362.c ddata->enable_gpio = gpio; ddata 84 drivers/gpu/drm/omapdrm/displays/encoder-opa362.c dssdev = &ddata->dssdev; ddata 105 drivers/gpu/drm/omapdrm/displays/encoder-opa362.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 106 drivers/gpu/drm/omapdrm/displays/encoder-opa362.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 110 drivers/gpu/drm/omapdrm/displays/encoder-opa362.c omapdss_device_unregister(&ddata->dssdev); ddata 35 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = to_panel_data(dst); ddata 42 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c gpiod_set_value_cansleep(ddata->ct_cp_hpd_gpio, 1); ddata 43 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c gpiod_set_value_cansleep(ddata->ls_oe_gpio, 1); ddata 54 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = to_panel_data(dst); ddata 56 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c gpiod_set_value_cansleep(ddata->ct_cp_hpd_gpio, 0); ddata 57 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c gpiod_set_value_cansleep(ddata->ls_oe_gpio, 0); ddata 64 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 66 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c return gpiod_get_value_cansleep(ddata->hpd_gpio); ddata 74 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 76 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c mutex_lock(&ddata->hpd_lock); ddata 77 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c ddata->hpd_cb = cb; ddata 78 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c ddata->hpd_cb_data = cb_data; ddata 79 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c mutex_unlock(&ddata->hpd_lock); ddata 84 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 86 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c mutex_lock(&ddata->hpd_lock); ddata 87 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c ddata->hpd_cb = NULL; ddata 88 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c ddata->hpd_cb_data = NULL; ddata 89 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c mutex_unlock(&ddata->hpd_lock); ddata 102 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = data; ddata 104 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c mutex_lock(&ddata->hpd_lock); ddata 105 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c if (ddata->hpd_cb) { ddata 108 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c if (tpd_detect(&ddata->dssdev)) ddata 113 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c ddata->hpd_cb(ddata->hpd_cb_data, status); ddata 115 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c mutex_unlock(&ddata->hpd_lock); ddata 123 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c struct panel_drv_data *ddata; ddata 127 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 128 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c if (!ddata) ddata 131 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c platform_set_drvdata(pdev, ddata); ddata 138 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c ddata->ct_cp_hpd_gpio = gpio; ddata 145 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c ddata->ls_oe_gpio = gpio; ddata 152 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c ddata->hpd_gpio = gpio; ddata 154 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c mutex_init(&ddata->hpd_lock); ddata 156 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c r = devm_request_threaded_irq(&pdev->dev, gpiod_to_irq(ddata->hpd_gpio), ddata 159 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c "tpd12s015 hpd", ddata); ddata 163 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c dssdev = &ddata->dssdev; ddata 186 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 187 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 191 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c omapdss_device_unregister(&ddata->dssdev); ddata 96 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static int _dsicm_enable_te(struct panel_drv_data *ddata, bool enable); ddata 98 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static int dsicm_panel_reset(struct panel_drv_data *ddata); ddata 102 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static void dsicm_bl_power(struct panel_drv_data *ddata, bool enable) ddata 106 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->bldev) ddata 107 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c backlight = ddata->bldev; ddata 108 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c else if (ddata->extbldev) ddata 109 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c backlight = ddata->extbldev; ddata 126 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static void hw_guard_start(struct panel_drv_data *ddata, int guard_msec) ddata 128 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->hw_guard_wait = msecs_to_jiffies(guard_msec); ddata 129 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->hw_guard_end = jiffies + ddata->hw_guard_wait; ddata 132 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static void hw_guard_wait(struct panel_drv_data *ddata) ddata 134 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c unsigned long wait = ddata->hw_guard_end - jiffies; ddata 136 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if ((long)wait > 0 && wait <= ddata->hw_guard_wait) { ddata 142 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static int dsicm_dcs_read_1(struct panel_drv_data *ddata, u8 dcs_cmd, u8 *data) ddata 144 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 148 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = src->ops->dsi.dcs_read(src, ddata->channel, dcs_cmd, buf, 1); ddata 158 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static int dsicm_dcs_write_0(struct panel_drv_data *ddata, u8 dcs_cmd) ddata 160 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 162 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c return src->ops->dsi.dcs_write(src, ddata->channel, &dcs_cmd, 1); ddata 165 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static int dsicm_dcs_write_1(struct panel_drv_data *ddata, u8 dcs_cmd, u8 param) ddata 167 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 170 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c return src->ops->dsi.dcs_write(src, ddata->channel, buf, 2); ddata 173 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static int dsicm_sleep_in(struct panel_drv_data *ddata) ddata 176 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 180 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c hw_guard_wait(ddata); ddata 183 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = src->ops->dsi.dcs_write_nosync(src, ddata->channel, &cmd, 1); ddata 187 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c hw_guard_start(ddata, 120); ddata 194 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static int dsicm_sleep_out(struct panel_drv_data *ddata) ddata 198 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c hw_guard_wait(ddata); ddata 200 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_dcs_write_0(ddata, MIPI_DCS_EXIT_SLEEP_MODE); ddata 204 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c hw_guard_start(ddata, 120); ddata 211 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static int dsicm_get_id(struct panel_drv_data *ddata, u8 *id1, u8 *id2, u8 *id3) ddata 215 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_dcs_read_1(ddata, DCS_GET_ID1, id1); ddata 218 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_dcs_read_1(ddata, DCS_GET_ID2, id2); ddata 221 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_dcs_read_1(ddata, DCS_GET_ID3, id3); ddata 228 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static int dsicm_set_update_window(struct panel_drv_data *ddata, ddata 231 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 245 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = src->ops->dsi.dcs_write_nosync(src, ddata->channel, buf, sizeof(buf)); ddata 255 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = src->ops->dsi.dcs_write_nosync(src, ddata->channel, buf, sizeof(buf)); ddata 259 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c src->ops->dsi.bta_sync(src, ddata->channel); ddata 264 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static void dsicm_queue_ulps_work(struct panel_drv_data *ddata) ddata 266 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->ulps_timeout > 0) ddata 267 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c queue_delayed_work(ddata->workqueue, &ddata->ulps_work, ddata 268 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c msecs_to_jiffies(ddata->ulps_timeout)); ddata 271 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static void dsicm_cancel_ulps_work(struct panel_drv_data *ddata) ddata 273 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c cancel_delayed_work(&ddata->ulps_work); ddata 276 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static int dsicm_enter_ulps(struct panel_drv_data *ddata) ddata 278 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 281 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->ulps_enabled) ddata 284 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_cancel_ulps_work(ddata); ddata 286 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = _dsicm_enable_te(ddata, false); ddata 290 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->ext_te_gpio) ddata 291 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c disable_irq(gpiod_to_irq(ddata->ext_te_gpio)); ddata 295 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->ulps_enabled = true; ddata 300 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "enter ULPS failed"); ddata 301 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_panel_reset(ddata); ddata 303 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->ulps_enabled = false; ddata 305 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_queue_ulps_work(ddata); ddata 310 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static int dsicm_exit_ulps(struct panel_drv_data *ddata) ddata 312 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 315 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (!ddata->ulps_enabled) ddata 319 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c src->ops->dsi.enable_hs(src, ddata->channel, true); ddata 321 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = _dsicm_enable_te(ddata, true); ddata 323 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "failed to re-enable TE"); ddata 327 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->ext_te_gpio) ddata 328 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c enable_irq(gpiod_to_irq(ddata->ext_te_gpio)); ddata 330 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_queue_ulps_work(ddata); ddata 332 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->ulps_enabled = false; ddata 337 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "failed to exit ULPS"); ddata 339 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_panel_reset(ddata); ddata 341 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->ext_te_gpio) ddata 342 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c enable_irq(gpiod_to_irq(ddata->ext_te_gpio)); ddata 343 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->ulps_enabled = false; ddata 346 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_queue_ulps_work(ddata); ddata 351 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static int dsicm_wake_up(struct panel_drv_data *ddata) ddata 353 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->ulps_enabled) ddata 354 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c return dsicm_exit_ulps(ddata); ddata 356 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_cancel_ulps_work(ddata); ddata 357 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_queue_ulps_work(ddata); ddata 363 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = dev_get_drvdata(&dev->dev); ddata 364 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 374 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_dbg(&ddata->pdev->dev, "update brightness to %d\n", level); ddata 376 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 378 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->enabled) { ddata 381 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 383 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_dcs_write_1(ddata, DCS_BRIGHTNESS, level); ddata 388 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 410 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 411 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 415 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 417 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->enabled) { ddata 420 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 422 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_dcs_read_1(ddata, DCS_READ_NUM_ERRORS, ddata 430 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 441 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 442 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 446 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 448 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->enabled) { ddata 451 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 453 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_get_id(ddata, &id1, &id2, &id3); ddata 460 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 472 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 473 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 481 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 483 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->enabled) { ddata 487 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_enter_ulps(ddata); ddata 489 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 494 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 506 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 509 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 510 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c t = ddata->ulps_enabled; ddata 511 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 520 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 521 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 529 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 530 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->ulps_timeout = t; ddata 532 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->enabled) { ddata 535 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 539 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 551 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 554 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 555 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c t = ddata->ulps_timeout; ddata 556 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 580 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static void dsicm_hw_reset(struct panel_drv_data *ddata) ddata 582 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c gpiod_set_value(ddata->reset_gpio, 1); ddata 585 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c gpiod_set_value(ddata->reset_gpio, 0); ddata 588 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c gpiod_set_value(ddata->reset_gpio, 1); ddata 593 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static int dsicm_power_on(struct panel_drv_data *ddata) ddata 595 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 601 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c .vm = &ddata->vm, ddata 608 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->vpnl) { ddata 609 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = regulator_enable(ddata->vpnl); ddata 611 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, ddata 617 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->vddi) { ddata 618 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = regulator_enable(ddata->vddi); ddata 620 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, ddata 626 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->pin_config.num_pins > 0) { ddata 627 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = src->ops->dsi.configure_pins(src, &ddata->pin_config); ddata 629 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, ddata 637 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "failed to configure DSI\n"); ddata 643 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_hw_reset(ddata); ddata 645 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c src->ops->dsi.enable_hs(src, ddata->channel, false); ddata 647 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_sleep_out(ddata); ddata 651 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_get_id(ddata, &id1, &id2, &id3); ddata 655 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_dcs_write_1(ddata, DCS_BRIGHTNESS, 0xff); ddata 659 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_dcs_write_1(ddata, DCS_CTRL_DISPLAY, ddata 664 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_dcs_write_1(ddata, MIPI_DCS_SET_PIXEL_FORMAT, ddata 669 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_dcs_write_0(ddata, MIPI_DCS_SET_DISPLAY_ON); ddata 673 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = _dsicm_enable_te(ddata, ddata->te_enabled); ddata 677 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = src->ops->dsi.enable_video_output(src, ddata->channel); ddata 681 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->enabled = 1; ddata 683 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (!ddata->intro_printed) { ddata 684 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_info(&ddata->pdev->dev, "panel revision %02x.%02x.%02x\n", ddata 686 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->intro_printed = true; ddata 689 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c src->ops->dsi.enable_hs(src, ddata->channel, true); ddata 693 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "error while enabling panel, issuing HW reset\n"); ddata 695 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_hw_reset(ddata); ddata 699 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->vddi) ddata 700 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c regulator_disable(ddata->vddi); ddata 702 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->vpnl) ddata 703 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c regulator_disable(ddata->vpnl); ddata 708 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static void dsicm_power_off(struct panel_drv_data *ddata) ddata 710 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 713 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c src->ops->dsi.disable_video_output(src, ddata->channel); ddata 715 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_dcs_write_0(ddata, MIPI_DCS_SET_DISPLAY_OFF); ddata 717 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_sleep_in(ddata); ddata 720 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, ddata 722 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_hw_reset(ddata); ddata 727 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->vddi) ddata 728 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c regulator_disable(ddata->vddi); ddata 729 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->vpnl) ddata 730 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c regulator_disable(ddata->vpnl); ddata 732 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->enabled = 0; ddata 735 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static int dsicm_panel_reset(struct panel_drv_data *ddata) ddata 737 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "performing LCD reset\n"); ddata 739 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_power_off(ddata); ddata 740 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_hw_reset(ddata); ddata 741 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c return dsicm_power_on(ddata); ddata 747 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dst); ddata 748 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct device *dev = &ddata->pdev->dev; ddata 751 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = src->ops->dsi.request_vc(src, &ddata->channel); ddata 757 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = src->ops->dsi.set_vc_id(src, ddata->channel, TCH); ddata 760 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c src->ops->dsi.release_vc(src, ddata->channel); ddata 764 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->src = src; ddata 771 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dst); ddata 773 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c src->ops->dsi.release_vc(src, ddata->channel); ddata 774 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->src = NULL; ddata 779 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 780 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 783 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 787 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_power_on(ddata); ddata 794 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 796 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_bl_power(ddata, true); ddata 800 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_dbg(&ddata->pdev->dev, "enable failed (%d)\n", r); ddata 801 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 806 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 807 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 810 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_bl_power(ddata, false); ddata 812 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 814 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_cancel_ulps_work(ddata); ddata 818 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 820 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_power_off(ddata); ddata 824 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 829 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = data; ddata 830 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 832 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_dbg(&ddata->pdev->dev, "framedone, err %d\n", err); ddata 838 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = data; ddata 839 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 843 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c old = atomic_cmpxchg(&ddata->do_update, 1, 0); ddata 846 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c cancel_delayed_work(&ddata->te_timeout_work); ddata 848 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = src->ops->dsi.update(src, ddata->channel, dsicm_framedone_cb, ddata 849 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata); ddata 856 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "start update failed\n"); ddata 863 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = container_of(work, struct panel_drv_data, ddata 865 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 867 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "TE not received for 250ms!\n"); ddata 869 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c atomic_set(&ddata->do_update, 0); ddata 876 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 877 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 880 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_dbg(&ddata->pdev->dev, "update %d, %d, %d x %d\n", x, y, w, h); ddata 882 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 885 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 889 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (!ddata->enabled) { ddata 895 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_set_update_window(ddata, 0, 0, ddata->vm.hactive, ddata 896 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->vm.vactive); ddata 900 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->te_enabled && ddata->ext_te_gpio) { ddata 901 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c schedule_delayed_work(&ddata->te_timeout_work, ddata 903 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c atomic_set(&ddata->do_update, 1); ddata 905 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = src->ops->dsi.update(src, ddata->channel, dsicm_framedone_cb, ddata 906 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata); ddata 912 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 916 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 922 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 923 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 925 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_dbg(&ddata->pdev->dev, "sync\n"); ddata 927 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 930 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 932 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_dbg(&ddata->pdev->dev, "sync done\n"); ddata 937 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c static int _dsicm_enable_te(struct panel_drv_data *ddata, bool enable) ddata 939 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 943 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_dcs_write_1(ddata, MIPI_DCS_SET_TEAR_ON, 0); ddata 945 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_dcs_write_0(ddata, MIPI_DCS_SET_TEAR_OFF); ddata 947 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (!ddata->ext_te_gpio) ddata 958 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 959 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 962 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 964 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->te_enabled == enable) ddata 969 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->enabled) { ddata 970 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 974 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = _dsicm_enable_te(ddata, enable); ddata 979 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->te_enabled = enable; ddata 983 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 988 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 995 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 998 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 999 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = ddata->te_enabled; ddata 1000 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 1009 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 1010 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 1019 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 1021 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (!ddata->enabled) { ddata 1027 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->vm.hactive * ddata->vm.vactive * 3); ddata 1031 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 1043 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_set_update_window(ddata, x, y, w, h); ddata 1045 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = src->ops->dsi.set_max_rx_packet_size(src, ddata->channel, plen); ddata 1053 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = src->ops->dsi.dcs_read(src, ddata->channel, dcs_cmd, ddata 1064 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "short read\n"); ddata 1069 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "signal pending, " ddata 1079 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c src->ops->dsi.set_max_rx_packet_size(src, ddata->channel, 1); ddata 1083 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 1089 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = container_of(work, struct panel_drv_data, ddata 1091 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 1092 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *src = ddata->src; ddata 1094 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 1096 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE || !ddata->enabled) { ddata 1097 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 1103 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_enter_ulps(ddata); ddata 1106 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 1112 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 1114 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c connector->display_info.width_mm = ddata->width_mm; ddata 1115 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c connector->display_info.height_mm = ddata->height_mm; ddata 1117 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c return omapdss_display_get_modes(connector, &ddata->vm); ddata 1123 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 1126 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (mode->hdisplay != ddata->vm.hactive) ddata 1129 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (mode->vdisplay != ddata->vm.vactive) ddata 1136 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->vm.hactive, ddata->vm.vactive); ddata 1167 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 1171 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->reset_gpio = devm_gpiod_get(&pdev->dev, "reset", GPIOD_OUT_LOW); ddata 1172 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (IS_ERR(ddata->reset_gpio)) { ddata 1173 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c err = PTR_ERR(ddata->reset_gpio); ddata 1178 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->ext_te_gpio = devm_gpiod_get_optional(&pdev->dev, "te", ddata 1180 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (IS_ERR(ddata->ext_te_gpio)) { ddata 1181 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c err = PTR_ERR(ddata->ext_te_gpio); ddata 1188 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c videomode_from_timing(&timing, &ddata->vm); ddata 1189 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (!ddata->vm.pixelclock) ddata 1190 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->vm.pixelclock = ddata 1191 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->vm.hactive * ddata->vm.vactive * 60; ddata 1197 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->width_mm = 0; ddata 1198 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c of_property_read_u32(node, "width-mm", &ddata->width_mm); ddata 1200 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->height_mm = 0; ddata 1201 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c of_property_read_u32(node, "height-mm", &ddata->height_mm); ddata 1203 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->vpnl = devm_regulator_get_optional(&pdev->dev, "vpnl"); ddata 1204 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (IS_ERR(ddata->vpnl)) { ddata 1205 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c err = PTR_ERR(ddata->vpnl); ddata 1208 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->vpnl = NULL; ddata 1211 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->vddi = devm_regulator_get_optional(&pdev->dev, "vddi"); ddata 1212 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (IS_ERR(ddata->vddi)) { ddata 1213 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c err = PTR_ERR(ddata->vddi); ddata 1216 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->vddi = NULL; ddata 1221 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->extbldev = of_find_backlight_by_node(backlight); ddata 1224 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (!ddata->extbldev) ddata 1228 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->use_dsi_backlight = true; ddata 1238 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata; ddata 1246 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata = devm_kzalloc(dev, sizeof(*ddata), GFP_KERNEL); ddata 1247 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (!ddata) ddata 1250 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c platform_set_drvdata(pdev, ddata); ddata 1251 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->pdev = pdev; ddata 1253 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->vm.hactive = 864; ddata 1254 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->vm.vactive = 480; ddata 1255 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->vm.pixelclock = 864 * 480 * 60; ddata 1261 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dssdev = &ddata->dssdev; ddata 1277 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mutex_init(&ddata->lock); ddata 1279 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c atomic_set(&ddata->do_update, 0); ddata 1281 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->ext_te_gpio) { ddata 1282 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c r = devm_request_irq(dev, gpiod_to_irq(ddata->ext_te_gpio), ddata 1285 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c "taal vsync", ddata); ddata 1292 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c INIT_DEFERRABLE_WORK(&ddata->te_timeout_work, ddata 1298 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->workqueue = create_singlethread_workqueue("dsicm_wq"); ddata 1299 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (!ddata->workqueue) { ddata 1303 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c INIT_DELAYED_WORK(&ddata->ulps_work, dsicm_ulps_work); ddata 1305 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_hw_reset(ddata); ddata 1307 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->use_dsi_backlight) { ddata 1313 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dev, ddata, &dsicm_bl_ops, &props); ddata 1319 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c ddata->bldev = bldev; ddata 1331 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c destroy_workqueue(ddata->workqueue); ddata 1333 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->extbldev) ddata 1334 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c put_device(&ddata->extbldev->dev); ddata 1341 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 1342 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 1350 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c omapdss_device_disconnect(ddata->src, dssdev); ddata 1354 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (ddata->extbldev) ddata 1355 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c put_device(&ddata->extbldev->dev); ddata 1357 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_cancel_ulps_work(ddata); ddata 1358 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c destroy_workqueue(ddata->workqueue); ddata 1361 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c dsicm_hw_reset(ddata); ddata 128 drivers/i2c/busses/i2c-efm32.c static u32 efm32_i2c_read32(struct efm32_i2c_ddata *ddata, unsigned offset) ddata 130 drivers/i2c/busses/i2c-efm32.c return readl(ddata->base + offset); ddata 133 drivers/i2c/busses/i2c-efm32.c static void efm32_i2c_write32(struct efm32_i2c_ddata *ddata, ddata 136 drivers/i2c/busses/i2c-efm32.c writel(value, ddata->base + offset); ddata 139 drivers/i2c/busses/i2c-efm32.c static void efm32_i2c_send_next_msg(struct efm32_i2c_ddata *ddata) ddata 141 drivers/i2c/busses/i2c-efm32.c struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; ddata 143 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_CMD, REG_CMD_START); ddata 144 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_TXDATA, i2c_8bit_addr_from_msg(cur_msg)); ddata 147 drivers/i2c/busses/i2c-efm32.c static void efm32_i2c_send_next_byte(struct efm32_i2c_ddata *ddata) ddata 149 drivers/i2c/busses/i2c-efm32.c struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; ddata 151 drivers/i2c/busses/i2c-efm32.c if (ddata->current_word >= cur_msg->len) { ddata 153 drivers/i2c/busses/i2c-efm32.c ddata->current_word = 0; ddata 154 drivers/i2c/busses/i2c-efm32.c ddata->current_msg += 1; ddata 156 drivers/i2c/busses/i2c-efm32.c if (ddata->current_msg >= ddata->num_msgs) { ddata 157 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_CMD, REG_CMD_STOP); ddata 158 drivers/i2c/busses/i2c-efm32.c complete(&ddata->done); ddata 160 drivers/i2c/busses/i2c-efm32.c efm32_i2c_send_next_msg(ddata); ddata 163 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_TXDATA, ddata 164 drivers/i2c/busses/i2c-efm32.c cur_msg->buf[ddata->current_word++]); ddata 168 drivers/i2c/busses/i2c-efm32.c static void efm32_i2c_recv_next_byte(struct efm32_i2c_ddata *ddata) ddata 170 drivers/i2c/busses/i2c-efm32.c struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; ddata 172 drivers/i2c/busses/i2c-efm32.c cur_msg->buf[ddata->current_word] = efm32_i2c_read32(ddata, REG_RXDATA); ddata 173 drivers/i2c/busses/i2c-efm32.c ddata->current_word += 1; ddata 174 drivers/i2c/busses/i2c-efm32.c if (ddata->current_word >= cur_msg->len) { ddata 176 drivers/i2c/busses/i2c-efm32.c ddata->current_word = 0; ddata 177 drivers/i2c/busses/i2c-efm32.c ddata->current_msg += 1; ddata 179 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_CMD, REG_CMD_NACK); ddata 181 drivers/i2c/busses/i2c-efm32.c if (ddata->current_msg >= ddata->num_msgs) { ddata 182 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_CMD, REG_CMD_STOP); ddata 183 drivers/i2c/busses/i2c-efm32.c complete(&ddata->done); ddata 185 drivers/i2c/busses/i2c-efm32.c efm32_i2c_send_next_msg(ddata); ddata 188 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_CMD, REG_CMD_ACK); ddata 194 drivers/i2c/busses/i2c-efm32.c struct efm32_i2c_ddata *ddata = dev_id; ddata 195 drivers/i2c/busses/i2c-efm32.c struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; ddata 196 drivers/i2c/busses/i2c-efm32.c u32 irqflag = efm32_i2c_read32(ddata, REG_IF); ddata 197 drivers/i2c/busses/i2c-efm32.c u32 state = efm32_i2c_read32(ddata, REG_STATE); ddata 199 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_IFC, irqflag & REG_IFC__MASK); ddata 204 drivers/i2c/busses/i2c-efm32.c ddata->retval = -EAGAIN; ddata 205 drivers/i2c/busses/i2c-efm32.c complete(&ddata->done); ddata 212 drivers/i2c/busses/i2c-efm32.c ddata->retval = -EIO; ddata 213 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_CMD, ddata 216 drivers/i2c/busses/i2c-efm32.c complete(&ddata->done); ddata 226 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_CMD, REG_CMD_STOP); ddata 227 drivers/i2c/busses/i2c-efm32.c ddata->retval = -ENXIO; ddata 228 drivers/i2c/busses/i2c-efm32.c complete(&ddata->done); ddata 232 drivers/i2c/busses/i2c-efm32.c efm32_i2c_send_next_byte(ddata); ddata 237 drivers/i2c/busses/i2c-efm32.c efm32_i2c_recv_next_byte(ddata); ddata 244 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_CMD, REG_CMD_STOP); ddata 245 drivers/i2c/busses/i2c-efm32.c complete(&ddata->done); ddata 247 drivers/i2c/busses/i2c-efm32.c efm32_i2c_send_next_byte(ddata); ddata 257 drivers/i2c/busses/i2c-efm32.c struct efm32_i2c_ddata *ddata = i2c_get_adapdata(adap); ddata 260 drivers/i2c/busses/i2c-efm32.c if (ddata->msgs) ddata 263 drivers/i2c/busses/i2c-efm32.c ddata->msgs = msgs; ddata 264 drivers/i2c/busses/i2c-efm32.c ddata->num_msgs = num; ddata 265 drivers/i2c/busses/i2c-efm32.c ddata->current_word = 0; ddata 266 drivers/i2c/busses/i2c-efm32.c ddata->current_msg = 0; ddata 267 drivers/i2c/busses/i2c-efm32.c ddata->retval = -EIO; ddata 269 drivers/i2c/busses/i2c-efm32.c reinit_completion(&ddata->done); ddata 271 drivers/i2c/busses/i2c-efm32.c dev_dbg(&ddata->adapter.dev, "state: %08x, status: %08x\n", ddata 272 drivers/i2c/busses/i2c-efm32.c efm32_i2c_read32(ddata, REG_STATE), ddata 273 drivers/i2c/busses/i2c-efm32.c efm32_i2c_read32(ddata, REG_STATUS)); ddata 275 drivers/i2c/busses/i2c-efm32.c efm32_i2c_send_next_msg(ddata); ddata 277 drivers/i2c/busses/i2c-efm32.c wait_for_completion(&ddata->done); ddata 279 drivers/i2c/busses/i2c-efm32.c if (ddata->current_msg >= ddata->num_msgs) ddata 280 drivers/i2c/busses/i2c-efm32.c ret = ddata->num_msgs; ddata 282 drivers/i2c/busses/i2c-efm32.c ret = ddata->retval; ddata 297 drivers/i2c/busses/i2c-efm32.c static u32 efm32_i2c_get_configured_location(struct efm32_i2c_ddata *ddata) ddata 299 drivers/i2c/busses/i2c-efm32.c u32 reg = efm32_i2c_read32(ddata, REG_ROUTE); ddata 307 drivers/i2c/busses/i2c-efm32.c struct efm32_i2c_ddata *ddata; ddata 318 drivers/i2c/busses/i2c-efm32.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 319 drivers/i2c/busses/i2c-efm32.c if (!ddata) ddata 321 drivers/i2c/busses/i2c-efm32.c platform_set_drvdata(pdev, ddata); ddata 323 drivers/i2c/busses/i2c-efm32.c init_completion(&ddata->done); ddata 324 drivers/i2c/busses/i2c-efm32.c strlcpy(ddata->adapter.name, pdev->name, sizeof(ddata->adapter.name)); ddata 325 drivers/i2c/busses/i2c-efm32.c ddata->adapter.owner = THIS_MODULE; ddata 326 drivers/i2c/busses/i2c-efm32.c ddata->adapter.algo = &efm32_i2c_algo; ddata 327 drivers/i2c/busses/i2c-efm32.c ddata->adapter.dev.parent = &pdev->dev; ddata 328 drivers/i2c/busses/i2c-efm32.c ddata->adapter.dev.of_node = pdev->dev.of_node; ddata 329 drivers/i2c/busses/i2c-efm32.c i2c_set_adapdata(&ddata->adapter, ddata); ddata 331 drivers/i2c/busses/i2c-efm32.c ddata->clk = devm_clk_get(&pdev->dev, NULL); ddata 332 drivers/i2c/busses/i2c-efm32.c if (IS_ERR(ddata->clk)) { ddata 333 drivers/i2c/busses/i2c-efm32.c ret = PTR_ERR(ddata->clk); ddata 349 drivers/i2c/busses/i2c-efm32.c ddata->base = devm_ioremap_resource(&pdev->dev, res); ddata 350 drivers/i2c/busses/i2c-efm32.c if (IS_ERR(ddata->base)) ddata 351 drivers/i2c/busses/i2c-efm32.c return PTR_ERR(ddata->base); ddata 361 drivers/i2c/busses/i2c-efm32.c ddata->irq = ret; ddata 363 drivers/i2c/busses/i2c-efm32.c ret = clk_prepare_enable(ddata->clk); ddata 380 drivers/i2c/busses/i2c-efm32.c location = efm32_i2c_get_configured_location(ddata); ddata 385 drivers/i2c/busses/i2c-efm32.c ddata->location = location; ddata 394 drivers/i2c/busses/i2c-efm32.c ddata->frequency = frequency; ddata 396 drivers/i2c/busses/i2c-efm32.c rate = clk_get_rate(ddata->clk); ddata 402 drivers/i2c/busses/i2c-efm32.c clkdiv = DIV_ROUND_UP(rate, 8 * ddata->frequency) - 1; ddata 406 drivers/i2c/busses/i2c-efm32.c rate, ddata->frequency); ddata 412 drivers/i2c/busses/i2c-efm32.c rate, ddata->frequency, (unsigned long)clkdiv); ddata 413 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_CLKDIV, REG_CLKDIV_DIV(clkdiv)); ddata 415 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_ROUTE, REG_ROUTE_SDAPEN | ddata 417 drivers/i2c/busses/i2c-efm32.c REG_ROUTE_LOCATION(ddata->location)); ddata 419 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_CTRL, REG_CTRL_EN | ddata 422 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_IFC, REG_IFC__MASK); ddata 423 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_IEN, REG_IF_TXC | REG_IF_ACK | REG_IF_NACK ddata 427 drivers/i2c/busses/i2c-efm32.c efm32_i2c_write32(ddata, REG_CMD, REG_CMD_ABORT); ddata 429 drivers/i2c/busses/i2c-efm32.c ret = request_irq(ddata->irq, efm32_i2c_irq, 0, DRIVER_NAME, ddata); ddata 435 drivers/i2c/busses/i2c-efm32.c ret = i2c_add_adapter(&ddata->adapter); ddata 437 drivers/i2c/busses/i2c-efm32.c free_irq(ddata->irq, ddata); ddata 440 drivers/i2c/busses/i2c-efm32.c clk_disable_unprepare(ddata->clk); ddata 447 drivers/i2c/busses/i2c-efm32.c struct efm32_i2c_ddata *ddata = platform_get_drvdata(pdev); ddata 449 drivers/i2c/busses/i2c-efm32.c i2c_del_adapter(&ddata->adapter); ddata 450 drivers/i2c/busses/i2c-efm32.c free_irq(ddata->irq, ddata); ddata 451 drivers/i2c/busses/i2c-efm32.c clk_disable_unprepare(ddata->clk); ddata 385 drivers/iio/adc/cpcap-adc.c struct cpcap_adc *ddata = iio_priv(indio_dev); ddata 388 drivers/iio/adc/cpcap-adc.c error = regmap_update_bits(ddata->reg, CPCAP_REG_ADCC2, ddata 394 drivers/iio/adc/cpcap-adc.c ddata->done = true; ddata 395 drivers/iio/adc/cpcap-adc.c wake_up_interruptible(&ddata->wq_data_avail); ddata 401 drivers/iio/adc/cpcap-adc.c static void cpcap_adc_setup_calibrate(struct cpcap_adc *ddata, ddata 416 drivers/iio/adc/cpcap-adc.c error = regmap_update_bits(ddata->reg, CPCAP_REG_ADCC1, ddata 427 drivers/iio/adc/cpcap-adc.c error = regmap_update_bits(ddata->reg, CPCAP_REG_ADCC2, ddata 435 drivers/iio/adc/cpcap-adc.c error = regmap_update_bits(ddata->reg, CPCAP_REG_ADCC2, ddata 441 drivers/iio/adc/cpcap-adc.c error = regmap_update_bits(ddata->reg, CPCAP_REG_ADCC2, ddata 449 drivers/iio/adc/cpcap-adc.c error = regmap_read(ddata->reg, CPCAP_REG_ADCC2, &value); ddata 455 drivers/iio/adc/cpcap-adc.c dev_err(ddata->dev, ddata 458 drivers/iio/adc/cpcap-adc.c error = regmap_update_bits(ddata->reg, CPCAP_REG_ADCC1, ddata 464 drivers/iio/adc/cpcap-adc.c static int cpcap_adc_calibrate_one(struct cpcap_adc *ddata, ddata 478 drivers/iio/adc/cpcap-adc.c cpcap_adc_setup_calibrate(ddata, channel); ddata 479 drivers/iio/adc/cpcap-adc.c error = regmap_read(ddata->reg, calibration_register, ddata 483 drivers/iio/adc/cpcap-adc.c cpcap_adc_setup_calibrate(ddata, channel); ddata 484 drivers/iio/adc/cpcap-adc.c error = regmap_read(ddata->reg, calibration_register, ddata 499 drivers/iio/adc/cpcap-adc.c (ddata->vendor == CPCAP_VENDOR_TI)) { ddata 502 drivers/iio/adc/cpcap-adc.c dev_dbg(ddata->dev, "ch%i calibration complete: %i\n", ddata 512 drivers/iio/adc/cpcap-adc.c static int cpcap_adc_calibrate(struct cpcap_adc *ddata) ddata 516 drivers/iio/adc/cpcap-adc.c error = cpcap_adc_calibrate_one(ddata, CPCAP_ADC_CHG_ISENSE, ddata 523 drivers/iio/adc/cpcap-adc.c error = cpcap_adc_calibrate_one(ddata, CPCAP_ADC_BATTI, ddata 534 drivers/iio/adc/cpcap-adc.c static void cpcap_adc_setup_bank(struct cpcap_adc *ddata, ddata 537 drivers/iio/adc/cpcap-adc.c const struct cpcap_adc_ato *ato = ddata->ato; ddata 548 drivers/iio/adc/cpcap-adc.c error = regmap_update_bits(ddata->reg, CPCAP_REG_ADCC2, ddata 583 drivers/iio/adc/cpcap-adc.c error = regmap_update_bits(ddata->reg, CPCAP_REG_ADCC1, ddata 594 drivers/iio/adc/cpcap-adc.c error = regmap_update_bits(ddata->reg, CPCAP_REG_ADCC2, ddata 604 drivers/iio/adc/cpcap-adc.c error = regmap_update_bits(ddata->reg, CPCAP_REG_ADCC2, ddata 610 drivers/iio/adc/cpcap-adc.c error = regmap_update_bits(ddata->reg, CPCAP_REG_ADCC2, ddata 616 drivers/iio/adc/cpcap-adc.c error = regmap_update_bits(ddata->reg, CPCAP_REG_ADCC2, ddata 622 drivers/iio/adc/cpcap-adc.c error = regmap_update_bits(ddata->reg, CPCAP_REG_ADCC2, ddata 629 drivers/iio/adc/cpcap-adc.c static int cpcap_adc_start_bank(struct cpcap_adc *ddata, ddata 635 drivers/iio/adc/cpcap-adc.c ddata->done = false; ddata 638 drivers/iio/adc/cpcap-adc.c cpcap_adc_setup_bank(ddata, req); ddata 639 drivers/iio/adc/cpcap-adc.c error = wait_event_interruptible_timeout(ddata->wq_data_avail, ddata 640 drivers/iio/adc/cpcap-adc.c ddata->done, ddata 657 drivers/iio/adc/cpcap-adc.c static int cpcap_adc_stop_bank(struct cpcap_adc *ddata) ddata 661 drivers/iio/adc/cpcap-adc.c error = regmap_update_bits(ddata->reg, CPCAP_REG_ADCC1, ddata 667 drivers/iio/adc/cpcap-adc.c return regmap_update_bits(ddata->reg, CPCAP_REG_ADCC2, ddata 786 drivers/iio/adc/cpcap-adc.c static int cpcap_adc_read_bank_scaled(struct cpcap_adc *ddata, ddata 791 drivers/iio/adc/cpcap-adc.c if (ddata->vendor == CPCAP_VENDOR_TI) { ddata 792 drivers/iio/adc/cpcap-adc.c error = regmap_read(ddata->reg, CPCAP_REG_ADCAL1, ddata 799 drivers/iio/adc/cpcap-adc.c error = regmap_read(ddata->reg, CPCAP_REG_ADCAL2, ddata 809 drivers/iio/adc/cpcap-adc.c error = regmap_read(ddata->reg, addr, &req->result); ddata 847 drivers/iio/adc/cpcap-adc.c static int cpcap_adc_read_st_die_temp(struct cpcap_adc *ddata, ddata 852 drivers/iio/adc/cpcap-adc.c error = regmap_read(ddata->reg, addr, val); ddata 867 drivers/iio/adc/cpcap-adc.c struct cpcap_adc *ddata = iio_priv(indio_dev); ddata 877 drivers/iio/adc/cpcap-adc.c mutex_lock(&ddata->lock); ddata 878 drivers/iio/adc/cpcap-adc.c error = cpcap_adc_start_bank(ddata, &req); ddata 881 drivers/iio/adc/cpcap-adc.c error = regmap_read(ddata->reg, chan->address, val); ddata 884 drivers/iio/adc/cpcap-adc.c error = cpcap_adc_stop_bank(ddata); ddata 887 drivers/iio/adc/cpcap-adc.c mutex_unlock(&ddata->lock); ddata 890 drivers/iio/adc/cpcap-adc.c mutex_lock(&ddata->lock); ddata 891 drivers/iio/adc/cpcap-adc.c error = cpcap_adc_start_bank(ddata, &req); ddata 894 drivers/iio/adc/cpcap-adc.c if ((ddata->vendor == CPCAP_VENDOR_ST) && ddata 896 drivers/iio/adc/cpcap-adc.c error = cpcap_adc_read_st_die_temp(ddata, ddata 902 drivers/iio/adc/cpcap-adc.c error = cpcap_adc_read_bank_scaled(ddata, &req); ddata 906 drivers/iio/adc/cpcap-adc.c error = cpcap_adc_stop_bank(ddata); ddata 909 drivers/iio/adc/cpcap-adc.c mutex_unlock(&ddata->lock); ddata 919 drivers/iio/adc/cpcap-adc.c mutex_unlock(&ddata->lock); ddata 920 drivers/iio/adc/cpcap-adc.c dev_err(ddata->dev, "error reading ADC: %i\n", error); ddata 959 drivers/iio/adc/cpcap-adc.c struct cpcap_adc *ddata; ddata 974 drivers/iio/adc/cpcap-adc.c indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*ddata)); ddata 980 drivers/iio/adc/cpcap-adc.c ddata = iio_priv(indio_dev); ddata 981 drivers/iio/adc/cpcap-adc.c ddata->ato = match->data; ddata 982 drivers/iio/adc/cpcap-adc.c ddata->dev = &pdev->dev; ddata 984 drivers/iio/adc/cpcap-adc.c mutex_init(&ddata->lock); ddata 985 drivers/iio/adc/cpcap-adc.c init_waitqueue_head(&ddata->wq_data_avail); ddata 995 drivers/iio/adc/cpcap-adc.c ddata->reg = dev_get_regmap(pdev->dev.parent, NULL); ddata 996 drivers/iio/adc/cpcap-adc.c if (!ddata->reg) ddata 999 drivers/iio/adc/cpcap-adc.c error = cpcap_get_vendor(ddata->dev, ddata->reg, &ddata->vendor); ddata 1005 drivers/iio/adc/cpcap-adc.c ddata->irq = platform_get_irq_byname(pdev, "adcdone"); ddata 1006 drivers/iio/adc/cpcap-adc.c if (ddata->irq < 0) ddata 1009 drivers/iio/adc/cpcap-adc.c error = devm_request_threaded_irq(&pdev->dev, ddata->irq, NULL, ddata 1020 drivers/iio/adc/cpcap-adc.c error = cpcap_adc_calibrate(ddata); ddata 731 drivers/iio/trigger/stm32-timer-trigger.c struct stm32_timers *ddata = dev_get_drvdata(pdev->dev.parent); ddata 756 drivers/iio/trigger/stm32-timer-trigger.c priv->regmap = ddata->regmap; ddata 757 drivers/iio/trigger/stm32-timer-trigger.c priv->clk = ddata->clk; ddata 758 drivers/iio/trigger/stm32-timer-trigger.c priv->max_arr = ddata->max_arr; ddata 187 drivers/input/keyboard/gpio_keys.c static ssize_t gpio_keys_attr_show_helper(struct gpio_keys_drvdata *ddata, ddata 200 drivers/input/keyboard/gpio_keys.c for (i = 0; i < ddata->pdata->nbuttons; i++) { ddata 201 drivers/input/keyboard/gpio_keys.c struct gpio_button_data *bdata = &ddata->data[i]; ddata 231 drivers/input/keyboard/gpio_keys.c static ssize_t gpio_keys_attr_store_helper(struct gpio_keys_drvdata *ddata, ddata 235 drivers/input/keyboard/gpio_keys.c const unsigned long *bitmap = get_bm_events_by_type(ddata->input, type); ddata 254 drivers/input/keyboard/gpio_keys.c for (i = 0; i < ddata->pdata->nbuttons; i++) { ddata 255 drivers/input/keyboard/gpio_keys.c struct gpio_button_data *bdata = &ddata->data[i]; ddata 267 drivers/input/keyboard/gpio_keys.c mutex_lock(&ddata->disable_lock); ddata 269 drivers/input/keyboard/gpio_keys.c for (i = 0; i < ddata->pdata->nbuttons; i++) { ddata 270 drivers/input/keyboard/gpio_keys.c struct gpio_button_data *bdata = &ddata->data[i]; ddata 281 drivers/input/keyboard/gpio_keys.c mutex_unlock(&ddata->disable_lock); ddata 294 drivers/input/keyboard/gpio_keys.c struct gpio_keys_drvdata *ddata = platform_get_drvdata(pdev); \ ddata 296 drivers/input/keyboard/gpio_keys.c return gpio_keys_attr_show_helper(ddata, buf, \ ddata 321 drivers/input/keyboard/gpio_keys.c struct gpio_keys_drvdata *ddata = platform_get_drvdata(pdev); \ ddata 324 drivers/input/keyboard/gpio_keys.c error = gpio_keys_attr_store_helper(ddata, buf, type); \ ddata 479 drivers/input/keyboard/gpio_keys.c struct gpio_keys_drvdata *ddata, ddata 486 drivers/input/keyboard/gpio_keys.c struct gpio_button_data *bdata = &ddata->data[idx]; ddata 612 drivers/input/keyboard/gpio_keys.c bdata->code = &ddata->keymap[idx]; ddata 645 drivers/input/keyboard/gpio_keys.c static void gpio_keys_report_state(struct gpio_keys_drvdata *ddata) ddata 647 drivers/input/keyboard/gpio_keys.c struct input_dev *input = ddata->input; ddata 650 drivers/input/keyboard/gpio_keys.c for (i = 0; i < ddata->pdata->nbuttons; i++) { ddata 651 drivers/input/keyboard/gpio_keys.c struct gpio_button_data *bdata = &ddata->data[i]; ddata 660 drivers/input/keyboard/gpio_keys.c struct gpio_keys_drvdata *ddata = input_get_drvdata(input); ddata 661 drivers/input/keyboard/gpio_keys.c const struct gpio_keys_platform_data *pdata = ddata->pdata; ddata 671 drivers/input/keyboard/gpio_keys.c gpio_keys_report_state(ddata); ddata 678 drivers/input/keyboard/gpio_keys.c struct gpio_keys_drvdata *ddata = input_get_drvdata(input); ddata 679 drivers/input/keyboard/gpio_keys.c const struct gpio_keys_platform_data *pdata = ddata->pdata; ddata 769 drivers/input/keyboard/gpio_keys.c struct gpio_keys_drvdata *ddata; ddata 780 drivers/input/keyboard/gpio_keys.c ddata = devm_kzalloc(dev, struct_size(ddata, data, pdata->nbuttons), ddata 782 drivers/input/keyboard/gpio_keys.c if (!ddata) { ddata 787 drivers/input/keyboard/gpio_keys.c ddata->keymap = devm_kcalloc(dev, ddata 788 drivers/input/keyboard/gpio_keys.c pdata->nbuttons, sizeof(ddata->keymap[0]), ddata 790 drivers/input/keyboard/gpio_keys.c if (!ddata->keymap) ddata 799 drivers/input/keyboard/gpio_keys.c ddata->pdata = pdata; ddata 800 drivers/input/keyboard/gpio_keys.c ddata->input = input; ddata 801 drivers/input/keyboard/gpio_keys.c mutex_init(&ddata->disable_lock); ddata 803 drivers/input/keyboard/gpio_keys.c platform_set_drvdata(pdev, ddata); ddata 804 drivers/input/keyboard/gpio_keys.c input_set_drvdata(input, ddata); ddata 817 drivers/input/keyboard/gpio_keys.c input->keycode = ddata->keymap; ddata 818 drivers/input/keyboard/gpio_keys.c input->keycodesize = sizeof(ddata->keymap[0]); ddata 838 drivers/input/keyboard/gpio_keys.c error = gpio_keys_setup_key(pdev, input, ddata, ddata 916 drivers/input/keyboard/gpio_keys.c gpio_keys_enable_wakeup(struct gpio_keys_drvdata *ddata) ddata 922 drivers/input/keyboard/gpio_keys.c for (i = 0; i < ddata->pdata->nbuttons; i++) { ddata 923 drivers/input/keyboard/gpio_keys.c bdata = &ddata->data[i]; ddata 936 drivers/input/keyboard/gpio_keys.c bdata = &ddata->data[i]; ddata 946 drivers/input/keyboard/gpio_keys.c gpio_keys_disable_wakeup(struct gpio_keys_drvdata *ddata) ddata 951 drivers/input/keyboard/gpio_keys.c for (i = 0; i < ddata->pdata->nbuttons; i++) { ddata 952 drivers/input/keyboard/gpio_keys.c bdata = &ddata->data[i]; ddata 961 drivers/input/keyboard/gpio_keys.c struct gpio_keys_drvdata *ddata = dev_get_drvdata(dev); ddata 962 drivers/input/keyboard/gpio_keys.c struct input_dev *input = ddata->input; ddata 966 drivers/input/keyboard/gpio_keys.c error = gpio_keys_enable_wakeup(ddata); ddata 981 drivers/input/keyboard/gpio_keys.c struct gpio_keys_drvdata *ddata = dev_get_drvdata(dev); ddata 982 drivers/input/keyboard/gpio_keys.c struct input_dev *input = ddata->input; ddata 986 drivers/input/keyboard/gpio_keys.c gpio_keys_disable_wakeup(ddata); ddata 997 drivers/input/keyboard/gpio_keys.c gpio_keys_report_state(ddata); ddata 480 drivers/input/touchscreen/cyttsp4_core.c p = krealloc(si->si_ptrs.ddata, si->si_ofs.ddata_size, GFP_KERNEL); ddata 485 drivers/input/touchscreen/cyttsp4_core.c si->si_ptrs.ddata = p; ddata 488 drivers/input/touchscreen/cyttsp4_core.c si->si_ptrs.ddata); ddata 494 drivers/input/touchscreen/cyttsp4_core.c (u8 *)si->si_ptrs.ddata, ddata 1726 drivers/input/touchscreen/cyttsp4_core.c kfree(si->si_ptrs.ddata); ddata 199 drivers/input/touchscreen/cyttsp4_core.h struct cyttsp4_ddata *ddata; ddata 69 drivers/irqchip/irq-st.c struct st_irq_syscfg *ddata = dev_get_drvdata(&pdev->dev); ddata 74 drivers/irqchip/irq-st.c ddata->config |= ST_A9_IRQ_EN_EXT_0; ddata 77 drivers/irqchip/irq-st.c ddata->config |= ST_A9_IRQ_EN_EXT_1; ddata 80 drivers/irqchip/irq-st.c ddata->config |= ST_A9_IRQ_EN_EXT_2; ddata 83 drivers/irqchip/irq-st.c ddata->config |= ST_A9_IRQ_EN_CTI_0; ddata 86 drivers/irqchip/irq-st.c ddata->config |= ST_A9_IRQ_EN_CTI_1; ddata 89 drivers/irqchip/irq-st.c ddata->config |= ST_A9_IRQ_EN_PMU_0; ddata 92 drivers/irqchip/irq-st.c ddata->config |= ST_A9_IRQ_EN_PMU_1; ddata 95 drivers/irqchip/irq-st.c ddata->config |= ST_A9_IRQ_EN_PL310_L2; ddata 105 drivers/irqchip/irq-st.c ddata->config |= irq ? ddata 115 drivers/irqchip/irq-st.c struct st_irq_syscfg *ddata = dev_get_drvdata(&pdev->dev); ddata 147 drivers/irqchip/irq-st.c ddata->config |= ST_A9_EXTIRQ_INV_SEL(invert); ddata 149 drivers/irqchip/irq-st.c return regmap_update_bits(ddata->regmap, ddata->syscfg, ddata 150 drivers/irqchip/irq-st.c ST_A9_IRQ_MASK, ddata->config); ddata 157 drivers/irqchip/irq-st.c struct st_irq_syscfg *ddata; ddata 159 drivers/irqchip/irq-st.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 160 drivers/irqchip/irq-st.c if (!ddata) ddata 167 drivers/irqchip/irq-st.c ddata->syscfg = (unsigned int)match->data; ddata 169 drivers/irqchip/irq-st.c ddata->regmap = syscon_regmap_lookup_by_phandle(np, "st,syscfg"); ddata 170 drivers/irqchip/irq-st.c if (IS_ERR(ddata->regmap)) { ddata 172 drivers/irqchip/irq-st.c return PTR_ERR(ddata->regmap); ddata 175 drivers/irqchip/irq-st.c dev_set_drvdata(&pdev->dev, ddata); ddata 182 drivers/irqchip/irq-st.c struct st_irq_syscfg *ddata = dev_get_drvdata(dev); ddata 184 drivers/irqchip/irq-st.c return regmap_update_bits(ddata->regmap, ddata->syscfg, ddata 185 drivers/irqchip/irq-st.c ST_A9_IRQ_MASK, ddata->config); ddata 41 drivers/mfd/atmel-flexcom.c struct atmel_flexcom *ddata; ddata 44 drivers/mfd/atmel-flexcom.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 45 drivers/mfd/atmel-flexcom.c if (!ddata) ddata 48 drivers/mfd/atmel-flexcom.c platform_set_drvdata(pdev, ddata); ddata 50 drivers/mfd/atmel-flexcom.c err = of_property_read_u32(np, "atmel,flexcom-mode", &ddata->opmode); ddata 54 drivers/mfd/atmel-flexcom.c if (ddata->opmode < ATMEL_FLEXCOM_MODE_USART || ddata 55 drivers/mfd/atmel-flexcom.c ddata->opmode > ATMEL_FLEXCOM_MODE_TWI) ddata 59 drivers/mfd/atmel-flexcom.c ddata->base = devm_ioremap_resource(&pdev->dev, res); ddata 60 drivers/mfd/atmel-flexcom.c if (IS_ERR(ddata->base)) ddata 61 drivers/mfd/atmel-flexcom.c return PTR_ERR(ddata->base); ddata 63 drivers/mfd/atmel-flexcom.c ddata->clk = devm_clk_get(&pdev->dev, NULL); ddata 64 drivers/mfd/atmel-flexcom.c if (IS_ERR(ddata->clk)) ddata 65 drivers/mfd/atmel-flexcom.c return PTR_ERR(ddata->clk); ddata 67 drivers/mfd/atmel-flexcom.c err = clk_prepare_enable(ddata->clk); ddata 77 drivers/mfd/atmel-flexcom.c writel(FLEX_MR_OPMODE(ddata->opmode), ddata->base + FLEX_MR); ddata 79 drivers/mfd/atmel-flexcom.c clk_disable_unprepare(ddata->clk); ddata 93 drivers/mfd/atmel-flexcom.c struct atmel_flexcom *ddata = dev_get_drvdata(dev); ddata 97 drivers/mfd/atmel-flexcom.c err = clk_prepare_enable(ddata->clk); ddata 101 drivers/mfd/atmel-flexcom.c val = FLEX_MR_OPMODE(ddata->opmode), ddata 102 drivers/mfd/atmel-flexcom.c writel(val, ddata->base + FLEX_MR); ddata 104 drivers/mfd/atmel-flexcom.c clk_disable_unprepare(ddata->clk); ddata 159 drivers/mfd/sprd-sc27xx-spi.c struct sprd_pmic *ddata; ddata 169 drivers/mfd/sprd-sc27xx-spi.c ddata = devm_kzalloc(&spi->dev, sizeof(*ddata), GFP_KERNEL); ddata 170 drivers/mfd/sprd-sc27xx-spi.c if (!ddata) ddata 173 drivers/mfd/sprd-sc27xx-spi.c ddata->regmap = devm_regmap_init(&spi->dev, &sprd_pmic_regmap, ddata 175 drivers/mfd/sprd-sc27xx-spi.c if (IS_ERR(ddata->regmap)) { ddata 176 drivers/mfd/sprd-sc27xx-spi.c ret = PTR_ERR(ddata->regmap); ddata 181 drivers/mfd/sprd-sc27xx-spi.c spi_set_drvdata(spi, ddata); ddata 182 drivers/mfd/sprd-sc27xx-spi.c ddata->dev = &spi->dev; ddata 183 drivers/mfd/sprd-sc27xx-spi.c ddata->irq = spi->irq; ddata 185 drivers/mfd/sprd-sc27xx-spi.c ddata->irq_chip.name = dev_name(&spi->dev); ddata 186 drivers/mfd/sprd-sc27xx-spi.c ddata->irq_chip.status_base = ddata 188 drivers/mfd/sprd-sc27xx-spi.c ddata->irq_chip.mask_base = pdata->irq_base + SPRD_PMIC_INT_EN; ddata 189 drivers/mfd/sprd-sc27xx-spi.c ddata->irq_chip.ack_base = 0; ddata 190 drivers/mfd/sprd-sc27xx-spi.c ddata->irq_chip.num_regs = 1; ddata 191 drivers/mfd/sprd-sc27xx-spi.c ddata->irq_chip.num_irqs = pdata->num_irqs; ddata 192 drivers/mfd/sprd-sc27xx-spi.c ddata->irq_chip.mask_invert = true; ddata 194 drivers/mfd/sprd-sc27xx-spi.c ddata->irqs = devm_kcalloc(&spi->dev, ddata 197 drivers/mfd/sprd-sc27xx-spi.c if (!ddata->irqs) ddata 200 drivers/mfd/sprd-sc27xx-spi.c ddata->irq_chip.irqs = ddata->irqs; ddata 202 drivers/mfd/sprd-sc27xx-spi.c ddata->irqs[i].reg_offset = i / pdata->num_irqs; ddata 203 drivers/mfd/sprd-sc27xx-spi.c ddata->irqs[i].mask = BIT(i % pdata->num_irqs); ddata 206 drivers/mfd/sprd-sc27xx-spi.c ret = devm_regmap_add_irq_chip(&spi->dev, ddata->regmap, ddata->irq, ddata 208 drivers/mfd/sprd-sc27xx-spi.c &ddata->irq_chip, &ddata->irq_data); ddata 217 drivers/mfd/sprd-sc27xx-spi.c regmap_irq_get_domain(ddata->irq_data)); ddata 22 drivers/mfd/stm32-lptimer.c static int stm32_lptimer_detect_encoder(struct stm32_lptimer *ddata) ddata 31 drivers/mfd/stm32-lptimer.c ret = regmap_update_bits(ddata->regmap, STM32_LPTIM_CFGR, ddata 36 drivers/mfd/stm32-lptimer.c ret = regmap_read(ddata->regmap, STM32_LPTIM_CFGR, &val); ddata 40 drivers/mfd/stm32-lptimer.c ret = regmap_update_bits(ddata->regmap, STM32_LPTIM_CFGR, ddata 45 drivers/mfd/stm32-lptimer.c ddata->has_encoder = !!(val & STM32_LPTIM_ENC); ddata 53 drivers/mfd/stm32-lptimer.c struct stm32_lptimer *ddata; ddata 58 drivers/mfd/stm32-lptimer.c ddata = devm_kzalloc(dev, sizeof(*ddata), GFP_KERNEL); ddata 59 drivers/mfd/stm32-lptimer.c if (!ddata) ddata 67 drivers/mfd/stm32-lptimer.c ddata->regmap = devm_regmap_init_mmio_clk(dev, "mux", mmio, ddata 69 drivers/mfd/stm32-lptimer.c if (IS_ERR(ddata->regmap)) ddata 70 drivers/mfd/stm32-lptimer.c return PTR_ERR(ddata->regmap); ddata 72 drivers/mfd/stm32-lptimer.c ddata->clk = devm_clk_get(dev, NULL); ddata 73 drivers/mfd/stm32-lptimer.c if (IS_ERR(ddata->clk)) ddata 74 drivers/mfd/stm32-lptimer.c return PTR_ERR(ddata->clk); ddata 76 drivers/mfd/stm32-lptimer.c ret = stm32_lptimer_detect_encoder(ddata); ddata 80 drivers/mfd/stm32-lptimer.c platform_set_drvdata(pdev, ddata); ddata 54 drivers/mfd/stm32-timers.c struct stm32_timers *ddata = dev_get_drvdata(dev); ddata 56 drivers/mfd/stm32-timers.c struct regmap *regmap = ddata->regmap; ddata 57 drivers/mfd/stm32-timers.c struct stm32_timers_dma *dma = &ddata->dma; ddata 159 drivers/mfd/stm32-timers.c static void stm32_timers_get_arr_size(struct stm32_timers *ddata) ddata 165 drivers/mfd/stm32-timers.c regmap_write(ddata->regmap, TIM_ARR, ~0L); ddata 166 drivers/mfd/stm32-timers.c regmap_read(ddata->regmap, TIM_ARR, &ddata->max_arr); ddata 167 drivers/mfd/stm32-timers.c regmap_write(ddata->regmap, TIM_ARR, 0x0); ddata 171 drivers/mfd/stm32-timers.c struct stm32_timers *ddata) ddata 176 drivers/mfd/stm32-timers.c init_completion(&ddata->dma.completion); ddata 177 drivers/mfd/stm32-timers.c mutex_init(&ddata->dma.lock); ddata 182 drivers/mfd/stm32-timers.c ddata->dma.chans[i] = dma_request_slave_channel(dev, name); ddata 184 drivers/mfd/stm32-timers.c ddata->dma.chans[STM32_TIMERS_DMA_UP] = ddata 186 drivers/mfd/stm32-timers.c ddata->dma.chans[STM32_TIMERS_DMA_TRIG] = ddata 188 drivers/mfd/stm32-timers.c ddata->dma.chans[STM32_TIMERS_DMA_COM] = ddata 193 drivers/mfd/stm32-timers.c struct stm32_timers *ddata) ddata 198 drivers/mfd/stm32-timers.c if (ddata->dma.chans[i]) ddata 199 drivers/mfd/stm32-timers.c dma_release_channel(ddata->dma.chans[i]); ddata 205 drivers/mfd/stm32-timers.c struct stm32_timers *ddata; ddata 210 drivers/mfd/stm32-timers.c ddata = devm_kzalloc(dev, sizeof(*ddata), GFP_KERNEL); ddata 211 drivers/mfd/stm32-timers.c if (!ddata) ddata 220 drivers/mfd/stm32-timers.c ddata->dma.phys_base = res->start; ddata 222 drivers/mfd/stm32-timers.c ddata->regmap = devm_regmap_init_mmio_clk(dev, "int", mmio, ddata 224 drivers/mfd/stm32-timers.c if (IS_ERR(ddata->regmap)) ddata 225 drivers/mfd/stm32-timers.c return PTR_ERR(ddata->regmap); ddata 227 drivers/mfd/stm32-timers.c ddata->clk = devm_clk_get(dev, NULL); ddata 228 drivers/mfd/stm32-timers.c if (IS_ERR(ddata->clk)) ddata 229 drivers/mfd/stm32-timers.c return PTR_ERR(ddata->clk); ddata 231 drivers/mfd/stm32-timers.c stm32_timers_get_arr_size(ddata); ddata 233 drivers/mfd/stm32-timers.c stm32_timers_dma_probe(dev, ddata); ddata 235 drivers/mfd/stm32-timers.c platform_set_drvdata(pdev, ddata); ddata 239 drivers/mfd/stm32-timers.c stm32_timers_dma_remove(dev, ddata); ddata 246 drivers/mfd/stm32-timers.c struct stm32_timers *ddata = platform_get_drvdata(pdev); ddata 253 drivers/mfd/stm32-timers.c stm32_timers_dma_remove(&pdev->dev, ddata); ddata 122 drivers/mfd/stpmic1.c struct stpmic1 *ddata; ddata 128 drivers/mfd/stpmic1.c ddata = devm_kzalloc(dev, sizeof(struct stpmic1), GFP_KERNEL); ddata 129 drivers/mfd/stpmic1.c if (!ddata) ddata 132 drivers/mfd/stpmic1.c i2c_set_clientdata(i2c, ddata); ddata 133 drivers/mfd/stpmic1.c ddata->dev = dev; ddata 135 drivers/mfd/stpmic1.c ddata->regmap = devm_regmap_init_i2c(i2c, &stpmic1_regmap_config); ddata 136 drivers/mfd/stpmic1.c if (IS_ERR(ddata->regmap)) ddata 137 drivers/mfd/stpmic1.c return PTR_ERR(ddata->regmap); ddata 139 drivers/mfd/stpmic1.c ddata->irq = of_irq_get(np, STPMIC1_MAIN_IRQ); ddata 140 drivers/mfd/stpmic1.c if (ddata->irq < 0) { ddata 141 drivers/mfd/stpmic1.c dev_err(dev, "Failed to get main IRQ: %d\n", ddata->irq); ddata 142 drivers/mfd/stpmic1.c return ddata->irq; ddata 145 drivers/mfd/stpmic1.c ret = regmap_read(ddata->regmap, VERSION_SR, ®); ddata 153 drivers/mfd/stpmic1.c ret = devm_regmap_add_irq_chip(dev, ddata->regmap, ddata->irq, ddata 156 drivers/mfd/stpmic1.c &ddata->irq_data); ddata 1223 drivers/mtd/spi-nor/cadence-quadspi.c const struct cqspi_driver_platdata *ddata; ddata 1231 drivers/mtd/spi-nor/cadence-quadspi.c ddata = of_device_get_match_data(dev); ddata 1232 drivers/mtd/spi-nor/cadence-quadspi.c if (!ddata) { ddata 1236 drivers/mtd/spi-nor/cadence-quadspi.c hwcaps.mask = ddata->hwcaps_mask; ddata 1321 drivers/mtd/spi-nor/cadence-quadspi.c const struct cqspi_driver_platdata *ddata; ddata 1407 drivers/mtd/spi-nor/cadence-quadspi.c ddata = of_device_get_match_data(dev); ddata 1408 drivers/mtd/spi-nor/cadence-quadspi.c if (ddata && (ddata->quirks & CQSPI_NEEDS_WR_DELAY)) ddata 139 drivers/phy/motorola/phy-cpcap-usb.c static bool cpcap_usb_vbus_valid(struct cpcap_phy_ddata *ddata) ddata 143 drivers/phy/motorola/phy-cpcap-usb.c error = iio_read_channel_processed(ddata->vbus, &value); ddata 147 drivers/phy/motorola/phy-cpcap-usb.c dev_err(ddata->dev, "error reading VBUS: %i\n", error); ddata 175 drivers/phy/motorola/phy-cpcap-usb.c static int cpcap_phy_get_ints_state(struct cpcap_phy_ddata *ddata, ddata 180 drivers/phy/motorola/phy-cpcap-usb.c error = regmap_read(ddata->reg, CPCAP_REG_INTS1, &val); ddata 188 drivers/phy/motorola/phy-cpcap-usb.c error = regmap_read(ddata->reg, CPCAP_REG_INTS2, &val); ddata 197 drivers/phy/motorola/phy-cpcap-usb.c error = regmap_read(ddata->reg, CPCAP_REG_INTS4, &val); ddata 207 drivers/phy/motorola/phy-cpcap-usb.c static int cpcap_usb_set_uart_mode(struct cpcap_phy_ddata *ddata); ddata 208 drivers/phy/motorola/phy-cpcap-usb.c static int cpcap_usb_set_usb_mode(struct cpcap_phy_ddata *ddata); ddata 210 drivers/phy/motorola/phy-cpcap-usb.c static void cpcap_usb_try_musb_mailbox(struct cpcap_phy_ddata *ddata, ddata 219 drivers/phy/motorola/phy-cpcap-usb.c dev_dbg(ddata->dev, "%s: musb_mailbox failed: %i\n", ddata 225 drivers/phy/motorola/phy-cpcap-usb.c struct cpcap_phy_ddata *ddata; ddata 230 drivers/phy/motorola/phy-cpcap-usb.c ddata = container_of(work, struct cpcap_phy_ddata, detect_work.work); ddata 232 drivers/phy/motorola/phy-cpcap-usb.c error = cpcap_phy_get_ints_state(ddata, &s); ddata 237 drivers/phy/motorola/phy-cpcap-usb.c dev_dbg(ddata->dev, "id ground, USB host mode\n"); ddata 238 drivers/phy/motorola/phy-cpcap-usb.c error = cpcap_usb_set_usb_mode(ddata); ddata 242 drivers/phy/motorola/phy-cpcap-usb.c cpcap_usb_try_musb_mailbox(ddata, MUSB_ID_GROUND); ddata 244 drivers/phy/motorola/phy-cpcap-usb.c error = regmap_update_bits(ddata->reg, CPCAP_REG_USBC3, ddata 254 drivers/phy/motorola/phy-cpcap-usb.c error = regmap_update_bits(ddata->reg, CPCAP_REG_USBC3, ddata 260 drivers/phy/motorola/phy-cpcap-usb.c vbus = cpcap_usb_vbus_valid(ddata); ddata 265 drivers/phy/motorola/phy-cpcap-usb.c dev_dbg(ddata->dev, "connected to a dock\n"); ddata 268 drivers/phy/motorola/phy-cpcap-usb.c error = cpcap_usb_set_usb_mode(ddata); ddata 271 drivers/phy/motorola/phy-cpcap-usb.c cpcap_usb_try_musb_mailbox(ddata, MUSB_ID_GROUND); ddata 277 drivers/phy/motorola/phy-cpcap-usb.c dev_dbg(ddata->dev, "connected to USB host\n"); ddata 278 drivers/phy/motorola/phy-cpcap-usb.c error = cpcap_usb_set_usb_mode(ddata); ddata 281 drivers/phy/motorola/phy-cpcap-usb.c cpcap_usb_try_musb_mailbox(ddata, MUSB_VBUS_VALID); ddata 286 drivers/phy/motorola/phy-cpcap-usb.c cpcap_usb_try_musb_mailbox(ddata, MUSB_VBUS_OFF); ddata 289 drivers/phy/motorola/phy-cpcap-usb.c error = cpcap_usb_set_uart_mode(ddata); ddata 293 drivers/phy/motorola/phy-cpcap-usb.c dev_dbg(ddata->dev, "set UART mode\n"); ddata 298 drivers/phy/motorola/phy-cpcap-usb.c dev_err(ddata->dev, "error setting cable state: %i\n", error); ddata 303 drivers/phy/motorola/phy-cpcap-usb.c struct cpcap_phy_ddata *ddata = data; ddata 305 drivers/phy/motorola/phy-cpcap-usb.c if (!atomic_read(&ddata->active)) ddata 308 drivers/phy/motorola/phy-cpcap-usb.c schedule_delayed_work(&ddata->detect_work, msecs_to_jiffies(1)); ddata 314 drivers/phy/motorola/phy-cpcap-usb.c struct cpcap_phy_ddata *ddata, ddata 323 drivers/phy/motorola/phy-cpcap-usb.c error = devm_request_threaded_irq(ddata->dev, irq, NULL, ddata 326 drivers/phy/motorola/phy-cpcap-usb.c name, ddata); ddata 328 drivers/phy/motorola/phy-cpcap-usb.c dev_err(ddata->dev, "could not get irq %s: %i\n", ddata 349 drivers/phy/motorola/phy-cpcap-usb.c struct cpcap_phy_ddata *ddata) ddata 354 drivers/phy/motorola/phy-cpcap-usb.c error = cpcap_usb_init_irq(pdev, ddata, cpcap_phy_irqs[i]); ddata 368 drivers/phy/motorola/phy-cpcap-usb.c static int cpcap_usb_gpio_set_mode(struct cpcap_phy_ddata *ddata, ddata 371 drivers/phy/motorola/phy-cpcap-usb.c if (!ddata->gpio[0] || !ddata->gpio[1]) ddata 374 drivers/phy/motorola/phy-cpcap-usb.c gpiod_set_value(ddata->gpio[0], mode & 1); ddata 375 drivers/phy/motorola/phy-cpcap-usb.c gpiod_set_value(ddata->gpio[1], mode >> 1); ddata 380 drivers/phy/motorola/phy-cpcap-usb.c static int cpcap_usb_set_uart_mode(struct cpcap_phy_ddata *ddata) ddata 385 drivers/phy/motorola/phy-cpcap-usb.c error = cpcap_usb_gpio_set_mode(ddata, CPCAP_UNKNOWN_DISABLED); ddata 389 drivers/phy/motorola/phy-cpcap-usb.c if (ddata->pins_uart) { ddata 390 drivers/phy/motorola/phy-cpcap-usb.c error = pinctrl_select_state(ddata->pins, ddata->pins_uart); ddata 395 drivers/phy/motorola/phy-cpcap-usb.c error = regmap_update_bits(ddata->reg, CPCAP_REG_USBC1, ddata 401 drivers/phy/motorola/phy-cpcap-usb.c error = regmap_update_bits(ddata->reg, CPCAP_REG_USBC2, ddata 407 drivers/phy/motorola/phy-cpcap-usb.c error = regmap_update_bits(ddata->reg, CPCAP_REG_USBC3, 0x7fff, ddata 413 drivers/phy/motorola/phy-cpcap-usb.c error = cpcap_usb_gpio_set_mode(ddata, CPCAP_DM_DP); ddata 420 drivers/phy/motorola/phy-cpcap-usb.c dev_err(ddata->dev, "%s failed with %i\n", __func__, error); ddata 425 drivers/phy/motorola/phy-cpcap-usb.c static int cpcap_usb_set_usb_mode(struct cpcap_phy_ddata *ddata) ddata 430 drivers/phy/motorola/phy-cpcap-usb.c error = cpcap_usb_gpio_set_mode(ddata, CPCAP_UNKNOWN_DISABLED); ddata 434 drivers/phy/motorola/phy-cpcap-usb.c if (ddata->pins_utmi) { ddata 435 drivers/phy/motorola/phy-cpcap-usb.c error = pinctrl_select_state(ddata->pins, ddata->pins_utmi); ddata 437 drivers/phy/motorola/phy-cpcap-usb.c dev_err(ddata->dev, "could not set usb mode: %i\n", ddata 444 drivers/phy/motorola/phy-cpcap-usb.c error = regmap_update_bits(ddata->reg, CPCAP_REG_USBC1, ddata 449 drivers/phy/motorola/phy-cpcap-usb.c error = regmap_update_bits(ddata->reg, CPCAP_REG_USBC2, ddata 455 drivers/phy/motorola/phy-cpcap-usb.c error = regmap_update_bits(ddata->reg, CPCAP_REG_USBC3, ddata 464 drivers/phy/motorola/phy-cpcap-usb.c error = regmap_update_bits(ddata->reg, CPCAP_REG_USBC2, ddata 471 drivers/phy/motorola/phy-cpcap-usb.c error = cpcap_usb_gpio_set_mode(ddata, CPCAP_OTG_DM_DP); ddata 478 drivers/phy/motorola/phy-cpcap-usb.c dev_err(ddata->dev, "%s failed with %i\n", __func__, error); ddata 483 drivers/phy/motorola/phy-cpcap-usb.c static int cpcap_usb_init_optional_pins(struct cpcap_phy_ddata *ddata) ddata 485 drivers/phy/motorola/phy-cpcap-usb.c ddata->pins = devm_pinctrl_get(ddata->dev); ddata 486 drivers/phy/motorola/phy-cpcap-usb.c if (IS_ERR(ddata->pins)) { ddata 487 drivers/phy/motorola/phy-cpcap-usb.c dev_info(ddata->dev, "default pins not configured: %ld\n", ddata 488 drivers/phy/motorola/phy-cpcap-usb.c PTR_ERR(ddata->pins)); ddata 489 drivers/phy/motorola/phy-cpcap-usb.c ddata->pins = NULL; ddata 494 drivers/phy/motorola/phy-cpcap-usb.c ddata->pins_ulpi = pinctrl_lookup_state(ddata->pins, "ulpi"); ddata 495 drivers/phy/motorola/phy-cpcap-usb.c if (IS_ERR(ddata->pins_ulpi)) { ddata 496 drivers/phy/motorola/phy-cpcap-usb.c dev_info(ddata->dev, "ulpi pins not configured\n"); ddata 497 drivers/phy/motorola/phy-cpcap-usb.c ddata->pins_ulpi = NULL; ddata 500 drivers/phy/motorola/phy-cpcap-usb.c ddata->pins_utmi = pinctrl_lookup_state(ddata->pins, "utmi"); ddata 501 drivers/phy/motorola/phy-cpcap-usb.c if (IS_ERR(ddata->pins_utmi)) { ddata 502 drivers/phy/motorola/phy-cpcap-usb.c dev_info(ddata->dev, "utmi pins not configured\n"); ddata 503 drivers/phy/motorola/phy-cpcap-usb.c ddata->pins_utmi = NULL; ddata 506 drivers/phy/motorola/phy-cpcap-usb.c ddata->pins_uart = pinctrl_lookup_state(ddata->pins, "uart"); ddata 507 drivers/phy/motorola/phy-cpcap-usb.c if (IS_ERR(ddata->pins_uart)) { ddata 508 drivers/phy/motorola/phy-cpcap-usb.c dev_info(ddata->dev, "uart pins not configured\n"); ddata 509 drivers/phy/motorola/phy-cpcap-usb.c ddata->pins_uart = NULL; ddata 512 drivers/phy/motorola/phy-cpcap-usb.c if (ddata->pins_uart) ddata 513 drivers/phy/motorola/phy-cpcap-usb.c return pinctrl_select_state(ddata->pins, ddata->pins_uart); ddata 518 drivers/phy/motorola/phy-cpcap-usb.c static void cpcap_usb_init_optional_gpios(struct cpcap_phy_ddata *ddata) ddata 523 drivers/phy/motorola/phy-cpcap-usb.c ddata->gpio[i] = devm_gpiod_get_index(ddata->dev, "mode", ddata 525 drivers/phy/motorola/phy-cpcap-usb.c if (IS_ERR(ddata->gpio[i])) { ddata 526 drivers/phy/motorola/phy-cpcap-usb.c dev_info(ddata->dev, "no mode change GPIO%i: %li\n", ddata 527 drivers/phy/motorola/phy-cpcap-usb.c i, PTR_ERR(ddata->gpio[i])); ddata 528 drivers/phy/motorola/phy-cpcap-usb.c ddata->gpio[i] = NULL; ddata 533 drivers/phy/motorola/phy-cpcap-usb.c static int cpcap_usb_init_iio(struct cpcap_phy_ddata *ddata) ddata 538 drivers/phy/motorola/phy-cpcap-usb.c ddata->vbus = devm_iio_channel_get(ddata->dev, "vbus"); ddata 539 drivers/phy/motorola/phy-cpcap-usb.c if (IS_ERR(ddata->vbus)) { ddata 540 drivers/phy/motorola/phy-cpcap-usb.c error = PTR_ERR(ddata->vbus); ddata 544 drivers/phy/motorola/phy-cpcap-usb.c if (!ddata->vbus->indio_dev) { ddata 549 drivers/phy/motorola/phy-cpcap-usb.c error = iio_get_channel_type(ddata->vbus, &type); ddata 561 drivers/phy/motorola/phy-cpcap-usb.c dev_err(ddata->dev, "could not initialize VBUS or ID IIO: %i\n", ddata 582 drivers/phy/motorola/phy-cpcap-usb.c struct cpcap_phy_ddata *ddata; ddata 594 drivers/phy/motorola/phy-cpcap-usb.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 595 drivers/phy/motorola/phy-cpcap-usb.c if (!ddata) ddata 598 drivers/phy/motorola/phy-cpcap-usb.c ddata->reg = dev_get_regmap(pdev->dev.parent, NULL); ddata 599 drivers/phy/motorola/phy-cpcap-usb.c if (!ddata->reg) ddata 606 drivers/phy/motorola/phy-cpcap-usb.c ddata->dev = &pdev->dev; ddata 607 drivers/phy/motorola/phy-cpcap-usb.c ddata->phy.dev = ddata->dev; ddata 608 drivers/phy/motorola/phy-cpcap-usb.c ddata->phy.label = "cpcap_usb_phy"; ddata 609 drivers/phy/motorola/phy-cpcap-usb.c ddata->phy.otg = otg; ddata 610 drivers/phy/motorola/phy-cpcap-usb.c ddata->phy.type = USB_PHY_TYPE_USB2; ddata 613 drivers/phy/motorola/phy-cpcap-usb.c otg->usb_phy = &ddata->phy; ddata 614 drivers/phy/motorola/phy-cpcap-usb.c INIT_DELAYED_WORK(&ddata->detect_work, cpcap_usb_detect); ddata 615 drivers/phy/motorola/phy-cpcap-usb.c platform_set_drvdata(pdev, ddata); ddata 617 drivers/phy/motorola/phy-cpcap-usb.c ddata->vusb = devm_regulator_get(&pdev->dev, "vusb"); ddata 618 drivers/phy/motorola/phy-cpcap-usb.c if (IS_ERR(ddata->vusb)) ddata 619 drivers/phy/motorola/phy-cpcap-usb.c return PTR_ERR(ddata->vusb); ddata 621 drivers/phy/motorola/phy-cpcap-usb.c error = regulator_enable(ddata->vusb); ddata 625 drivers/phy/motorola/phy-cpcap-usb.c generic_phy = devm_phy_create(ddata->dev, NULL, &ops); ddata 631 drivers/phy/motorola/phy-cpcap-usb.c phy_set_drvdata(generic_phy, ddata); ddata 633 drivers/phy/motorola/phy-cpcap-usb.c phy_provider = devm_of_phy_provider_register(ddata->dev, ddata 638 drivers/phy/motorola/phy-cpcap-usb.c error = cpcap_usb_init_optional_pins(ddata); ddata 642 drivers/phy/motorola/phy-cpcap-usb.c cpcap_usb_init_optional_gpios(ddata); ddata 644 drivers/phy/motorola/phy-cpcap-usb.c error = cpcap_usb_init_iio(ddata); ddata 648 drivers/phy/motorola/phy-cpcap-usb.c error = cpcap_usb_init_interrupts(pdev, ddata); ddata 652 drivers/phy/motorola/phy-cpcap-usb.c usb_add_phy_dev(&ddata->phy); ddata 653 drivers/phy/motorola/phy-cpcap-usb.c atomic_set(&ddata->active, 1); ddata 654 drivers/phy/motorola/phy-cpcap-usb.c schedule_delayed_work(&ddata->detect_work, msecs_to_jiffies(1)); ddata 661 drivers/phy/motorola/phy-cpcap-usb.c struct cpcap_phy_ddata *ddata = platform_get_drvdata(pdev); ddata 664 drivers/phy/motorola/phy-cpcap-usb.c atomic_set(&ddata->active, 0); ddata 665 drivers/phy/motorola/phy-cpcap-usb.c error = cpcap_usb_set_uart_mode(ddata); ddata 667 drivers/phy/motorola/phy-cpcap-usb.c dev_err(ddata->dev, "could not set UART mode\n"); ddata 669 drivers/phy/motorola/phy-cpcap-usb.c cpcap_usb_try_musb_mailbox(ddata, MUSB_VBUS_OFF); ddata 671 drivers/phy/motorola/phy-cpcap-usb.c usb_remove_phy(&ddata->phy); ddata 672 drivers/phy/motorola/phy-cpcap-usb.c cancel_delayed_work_sync(&ddata->detect_work); ddata 673 drivers/phy/motorola/phy-cpcap-usb.c clk_unprepare(ddata->refclk); ddata 674 drivers/phy/motorola/phy-cpcap-usb.c regulator_disable(ddata->vusb); ddata 110 drivers/phy/motorola/phy-mapphone-mdm6600.c struct phy_mdm6600 *ddata = phy_get_drvdata(x); ddata 111 drivers/phy/motorola/phy-mapphone-mdm6600.c struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; ddata 113 drivers/phy/motorola/phy-mapphone-mdm6600.c if (!ddata->enabled) ddata 123 drivers/phy/motorola/phy-mapphone-mdm6600.c struct phy_mdm6600 *ddata = phy_get_drvdata(x); ddata 124 drivers/phy/motorola/phy-mapphone-mdm6600.c struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; ddata 127 drivers/phy/motorola/phy-mapphone-mdm6600.c if (!ddata->enabled) ddata 130 drivers/phy/motorola/phy-mapphone-mdm6600.c error = pinctrl_pm_select_default_state(ddata->dev); ddata 132 drivers/phy/motorola/phy-mapphone-mdm6600.c dev_warn(ddata->dev, "%s: error with default_state: %i\n", ddata 146 drivers/phy/motorola/phy-mapphone-mdm6600.c struct phy_mdm6600 *ddata = phy_get_drvdata(x); ddata 147 drivers/phy/motorola/phy-mapphone-mdm6600.c struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; ddata 150 drivers/phy/motorola/phy-mapphone-mdm6600.c if (!ddata->enabled) ddata 157 drivers/phy/motorola/phy-mapphone-mdm6600.c dev_warn(ddata->dev, "%s: phy_pm_runtime_get: %i\n", ddata 163 drivers/phy/motorola/phy-mapphone-mdm6600.c error = pinctrl_pm_select_sleep_state(ddata->dev); ddata 165 drivers/phy/motorola/phy-mapphone-mdm6600.c dev_warn(ddata->dev, "%s: error with sleep_state: %i\n", ddata 184 drivers/phy/motorola/phy-mapphone-mdm6600.c static void phy_mdm6600_cmd(struct phy_mdm6600 *ddata, int val) ddata 191 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->cmd_gpios->desc, ddata 192 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->cmd_gpios->info, values); ddata 201 drivers/phy/motorola/phy-mapphone-mdm6600.c struct phy_mdm6600 *ddata; ddata 206 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata = container_of(work, struct phy_mdm6600, status_work.work); ddata 207 drivers/phy/motorola/phy-mapphone-mdm6600.c dev = ddata->dev; ddata 210 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->status_gpios->desc, ddata 211 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->status_gpios->info, ddata 216 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->status = values[0] & ((1 << PHY_MDM6600_NR_STATUS_LINES) - 1); ddata 219 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->status, ddata 220 drivers/phy/motorola/phy-mapphone-mdm6600.c phy_mdm6600_status_name[ddata->status]); ddata 221 drivers/phy/motorola/phy-mapphone-mdm6600.c complete(&ddata->ack); ddata 226 drivers/phy/motorola/phy-mapphone-mdm6600.c struct phy_mdm6600 *ddata = data; ddata 228 drivers/phy/motorola/phy-mapphone-mdm6600.c schedule_delayed_work(&ddata->status_work, msecs_to_jiffies(10)); ddata 245 drivers/phy/motorola/phy-mapphone-mdm6600.c struct phy_mdm6600 *ddata = data; ddata 249 drivers/phy/motorola/phy-mapphone-mdm6600.c mode_gpio1 = ddata->mode_gpios->desc[PHY_MDM6600_MODE1]; ddata 254 drivers/phy/motorola/phy-mapphone-mdm6600.c dev_dbg(ddata->dev, "OOB wake on mode_gpio1: %i\n", wakeup); ddata 255 drivers/phy/motorola/phy-mapphone-mdm6600.c error = pm_runtime_get_sync(ddata->dev); ddata 257 drivers/phy/motorola/phy-mapphone-mdm6600.c pm_runtime_put_noidle(ddata->dev); ddata 263 drivers/phy/motorola/phy-mapphone-mdm6600.c pm_runtime_mark_last_busy(ddata->dev); ddata 264 drivers/phy/motorola/phy-mapphone-mdm6600.c pm_runtime_put_autosuspend(ddata->dev); ddata 273 drivers/phy/motorola/phy-mapphone-mdm6600.c static void phy_mdm6600_init_irq(struct phy_mdm6600 *ddata) ddata 275 drivers/phy/motorola/phy-mapphone-mdm6600.c struct device *dev = ddata->dev; ddata 280 drivers/phy/motorola/phy-mapphone-mdm6600.c struct gpio_desc *gpio = ddata->status_gpios->desc[i]; ddata 292 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata); ddata 315 drivers/phy/motorola/phy-mapphone-mdm6600.c static int phy_mdm6600_init_lines(struct phy_mdm6600 *ddata) ddata 317 drivers/phy/motorola/phy-mapphone-mdm6600.c struct device *dev = ddata->dev; ddata 324 drivers/phy/motorola/phy-mapphone-mdm6600.c struct gpio_desc **gpio = &ddata->ctrl_gpios[i]; ddata 335 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->mode_gpios = devm_gpiod_get_array(dev, "motorola,mode", ddata 337 drivers/phy/motorola/phy-mapphone-mdm6600.c if (IS_ERR(ddata->mode_gpios)) ddata 338 drivers/phy/motorola/phy-mapphone-mdm6600.c return PTR_ERR(ddata->mode_gpios); ddata 340 drivers/phy/motorola/phy-mapphone-mdm6600.c if (ddata->mode_gpios->ndescs != PHY_MDM6600_NR_MODE_LINES) ddata 344 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->status_gpios = devm_gpiod_get_array(dev, "motorola,status", ddata 346 drivers/phy/motorola/phy-mapphone-mdm6600.c if (IS_ERR(ddata->status_gpios)) ddata 347 drivers/phy/motorola/phy-mapphone-mdm6600.c return PTR_ERR(ddata->status_gpios); ddata 349 drivers/phy/motorola/phy-mapphone-mdm6600.c if (ddata->status_gpios->ndescs != PHY_MDM6600_NR_STATUS_LINES) ddata 353 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->cmd_gpios = devm_gpiod_get_array(dev, "motorola,cmd", ddata 355 drivers/phy/motorola/phy-mapphone-mdm6600.c if (IS_ERR(ddata->cmd_gpios)) ddata 356 drivers/phy/motorola/phy-mapphone-mdm6600.c return PTR_ERR(ddata->cmd_gpios); ddata 358 drivers/phy/motorola/phy-mapphone-mdm6600.c if (ddata->cmd_gpios->ndescs != PHY_MDM6600_NR_CMD_LINES) ddata 374 drivers/phy/motorola/phy-mapphone-mdm6600.c static int phy_mdm6600_device_power_on(struct phy_mdm6600 *ddata) ddata 379 drivers/phy/motorola/phy-mapphone-mdm6600.c mode_gpio0 = ddata->mode_gpios->desc[PHY_MDM6600_MODE0]; ddata 380 drivers/phy/motorola/phy-mapphone-mdm6600.c mode_gpio1 = ddata->mode_gpios->desc[PHY_MDM6600_MODE1]; ddata 381 drivers/phy/motorola/phy-mapphone-mdm6600.c reset_gpio = ddata->ctrl_gpios[PHY_MDM6600_RESET]; ddata 382 drivers/phy/motorola/phy-mapphone-mdm6600.c power_gpio = ddata->ctrl_gpios[PHY_MDM6600_POWER]; ddata 394 drivers/phy/motorola/phy-mapphone-mdm6600.c phy_mdm6600_cmd(ddata, PHY_MDM6600_CMD_NO_BYPASS); ddata 412 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->enabled = true; ddata 415 drivers/phy/motorola/phy-mapphone-mdm6600.c dev_info(ddata->dev, "Waiting for power up request to complete..\n"); ddata 416 drivers/phy/motorola/phy-mapphone-mdm6600.c if (wait_for_completion_timeout(&ddata->ack, ddata 418 drivers/phy/motorola/phy-mapphone-mdm6600.c if (ddata->status > PHY_MDM6600_STATUS_PANIC && ddata 419 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->status < PHY_MDM6600_STATUS_SHUTDOWN_ACK) ddata 420 drivers/phy/motorola/phy-mapphone-mdm6600.c dev_info(ddata->dev, "Powered up OK\n"); ddata 422 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->enabled = false; ddata 424 drivers/phy/motorola/phy-mapphone-mdm6600.c dev_err(ddata->dev, "Timed out powering up\n"); ddata 434 drivers/phy/motorola/phy-mapphone-mdm6600.c error = devm_request_threaded_irq(ddata->dev, wakeirq, NULL, ddata 440 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata); ddata 442 drivers/phy/motorola/phy-mapphone-mdm6600.c dev_warn(ddata->dev, "no modem wakeirq irq%i: %i\n", ddata 445 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->running = true; ddata 454 drivers/phy/motorola/phy-mapphone-mdm6600.c static void phy_mdm6600_device_power_off(struct phy_mdm6600 *ddata) ddata 457 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->ctrl_gpios[PHY_MDM6600_RESET]; ddata 459 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->enabled = false; ddata 460 drivers/phy/motorola/phy-mapphone-mdm6600.c phy_mdm6600_cmd(ddata, PHY_MDM6600_CMD_BP_SHUTDOWN_REQ); ddata 465 drivers/phy/motorola/phy-mapphone-mdm6600.c dev_info(ddata->dev, "Waiting for power down request to complete.. "); ddata 466 drivers/phy/motorola/phy-mapphone-mdm6600.c if (wait_for_completion_timeout(&ddata->ack, ddata 468 drivers/phy/motorola/phy-mapphone-mdm6600.c if (ddata->status == PHY_MDM6600_STATUS_PANIC) ddata 469 drivers/phy/motorola/phy-mapphone-mdm6600.c dev_info(ddata->dev, "Powered down OK\n"); ddata 471 drivers/phy/motorola/phy-mapphone-mdm6600.c dev_err(ddata->dev, "Timed out powering down\n"); ddata 477 drivers/phy/motorola/phy-mapphone-mdm6600.c struct phy_mdm6600 *ddata; ddata 480 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata = container_of(work, struct phy_mdm6600, bootup_work.work); ddata 482 drivers/phy/motorola/phy-mapphone-mdm6600.c error = phy_mdm6600_device_power_on(ddata); ddata 484 drivers/phy/motorola/phy-mapphone-mdm6600.c dev_err(ddata->dev, "Device not functional\n"); ddata 494 drivers/phy/motorola/phy-mapphone-mdm6600.c static void phy_mdm6600_wake_modem(struct phy_mdm6600 *ddata) ddata 498 drivers/phy/motorola/phy-mapphone-mdm6600.c mode_gpio0 = ddata->mode_gpios->desc[PHY_MDM6600_MODE0]; ddata 502 drivers/phy/motorola/phy-mapphone-mdm6600.c if (ddata->awake) ddata 510 drivers/phy/motorola/phy-mapphone-mdm6600.c struct phy_mdm6600 *ddata; ddata 512 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata = container_of(work, struct phy_mdm6600, modem_wake_work.work); ddata 513 drivers/phy/motorola/phy-mapphone-mdm6600.c phy_mdm6600_wake_modem(ddata); ddata 520 drivers/phy/motorola/phy-mapphone-mdm6600.c schedule_delayed_work(&ddata->modem_wake_work, ddata 526 drivers/phy/motorola/phy-mapphone-mdm6600.c struct phy_mdm6600 *ddata = dev_get_drvdata(dev); ddata 528 drivers/phy/motorola/phy-mapphone-mdm6600.c cancel_delayed_work_sync(&ddata->modem_wake_work); ddata 529 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->awake = false; ddata 536 drivers/phy/motorola/phy-mapphone-mdm6600.c struct phy_mdm6600 *ddata = dev_get_drvdata(dev); ddata 538 drivers/phy/motorola/phy-mapphone-mdm6600.c phy_mdm6600_modem_wake(&ddata->modem_wake_work.work); ddata 539 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->awake = true; ddata 557 drivers/phy/motorola/phy-mapphone-mdm6600.c struct phy_mdm6600 *ddata; ddata 560 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 561 drivers/phy/motorola/phy-mapphone-mdm6600.c if (!ddata) ddata 564 drivers/phy/motorola/phy-mapphone-mdm6600.c INIT_DELAYED_WORK(&ddata->bootup_work, ddata 566 drivers/phy/motorola/phy-mapphone-mdm6600.c INIT_DELAYED_WORK(&ddata->status_work, phy_mdm6600_status); ddata 567 drivers/phy/motorola/phy-mapphone-mdm6600.c INIT_DELAYED_WORK(&ddata->modem_wake_work, phy_mdm6600_modem_wake); ddata 568 drivers/phy/motorola/phy-mapphone-mdm6600.c init_completion(&ddata->ack); ddata 570 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->dev = &pdev->dev; ddata 571 drivers/phy/motorola/phy-mapphone-mdm6600.c platform_set_drvdata(pdev, ddata); ddata 574 drivers/phy/motorola/phy-mapphone-mdm6600.c error = pinctrl_pm_select_sleep_state(ddata->dev); ddata 576 drivers/phy/motorola/phy-mapphone-mdm6600.c dev_warn(ddata->dev, "%s: error with sleep_state: %i\n", ddata 579 drivers/phy/motorola/phy-mapphone-mdm6600.c error = phy_mdm6600_init_lines(ddata); ddata 583 drivers/phy/motorola/phy-mapphone-mdm6600.c phy_mdm6600_init_irq(ddata); ddata 584 drivers/phy/motorola/phy-mapphone-mdm6600.c schedule_delayed_work(&ddata->bootup_work, 0); ddata 599 drivers/phy/motorola/phy-mapphone-mdm6600.c pm_runtime_use_autosuspend(ddata->dev); ddata 600 drivers/phy/motorola/phy-mapphone-mdm6600.c pm_runtime_set_autosuspend_delay(ddata->dev, ddata 602 drivers/phy/motorola/phy-mapphone-mdm6600.c pm_runtime_enable(ddata->dev); ddata 603 drivers/phy/motorola/phy-mapphone-mdm6600.c error = pm_runtime_get_sync(ddata->dev); ddata 605 drivers/phy/motorola/phy-mapphone-mdm6600.c dev_warn(ddata->dev, "failed to wake modem: %i\n", error); ddata 606 drivers/phy/motorola/phy-mapphone-mdm6600.c pm_runtime_put_noidle(ddata->dev); ddata 610 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->generic_phy = devm_phy_create(ddata->dev, NULL, &gpio_usb_ops); ddata 611 drivers/phy/motorola/phy-mapphone-mdm6600.c if (IS_ERR(ddata->generic_phy)) { ddata 612 drivers/phy/motorola/phy-mapphone-mdm6600.c error = PTR_ERR(ddata->generic_phy); ddata 616 drivers/phy/motorola/phy-mapphone-mdm6600.c phy_set_drvdata(ddata->generic_phy, ddata); ddata 618 drivers/phy/motorola/phy-mapphone-mdm6600.c ddata->phy_provider = ddata 619 drivers/phy/motorola/phy-mapphone-mdm6600.c devm_of_phy_provider_register(ddata->dev, ddata 621 drivers/phy/motorola/phy-mapphone-mdm6600.c if (IS_ERR(ddata->phy_provider)) ddata 622 drivers/phy/motorola/phy-mapphone-mdm6600.c error = PTR_ERR(ddata->phy_provider); ddata 625 drivers/phy/motorola/phy-mapphone-mdm6600.c pm_runtime_mark_last_busy(ddata->dev); ddata 626 drivers/phy/motorola/phy-mapphone-mdm6600.c pm_runtime_put_autosuspend(ddata->dev); ddata 630 drivers/phy/motorola/phy-mapphone-mdm6600.c phy_mdm6600_device_power_off(ddata); ddata 637 drivers/phy/motorola/phy-mapphone-mdm6600.c struct phy_mdm6600 *ddata = platform_get_drvdata(pdev); ddata 638 drivers/phy/motorola/phy-mapphone-mdm6600.c struct gpio_desc *reset_gpio = ddata->ctrl_gpios[PHY_MDM6600_RESET]; ddata 640 drivers/phy/motorola/phy-mapphone-mdm6600.c pm_runtime_dont_use_autosuspend(ddata->dev); ddata 641 drivers/phy/motorola/phy-mapphone-mdm6600.c pm_runtime_put_sync(ddata->dev); ddata 642 drivers/phy/motorola/phy-mapphone-mdm6600.c pm_runtime_disable(ddata->dev); ddata 644 drivers/phy/motorola/phy-mapphone-mdm6600.c if (!ddata->running) ddata 645 drivers/phy/motorola/phy-mapphone-mdm6600.c wait_for_completion_timeout(&ddata->ack, ddata 649 drivers/phy/motorola/phy-mapphone-mdm6600.c phy_mdm6600_device_power_off(ddata); ddata 651 drivers/phy/motorola/phy-mapphone-mdm6600.c cancel_delayed_work_sync(&ddata->modem_wake_work); ddata 652 drivers/phy/motorola/phy-mapphone-mdm6600.c cancel_delayed_work_sync(&ddata->bootup_work); ddata 653 drivers/phy/motorola/phy-mapphone-mdm6600.c cancel_delayed_work_sync(&ddata->status_work); ddata 200 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct s3c24xx_eint_domain_data *ddata = bank->irq_domain->host_data; ddata 201 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct s3c24xx_eint_data *eint_data = ddata->eint_data; ddata 211 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct s3c24xx_eint_domain_data *ddata = bank->irq_domain->host_data; ddata 212 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct s3c24xx_eint_data *eint_data = ddata->eint_data; ddata 222 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct s3c24xx_eint_domain_data *ddata = bank->irq_domain->host_data; ddata 223 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct s3c24xx_eint_data *eint_data = ddata->eint_data; ddata 417 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct s3c24xx_eint_domain_data *ddata = h->host_data; ddata 418 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct samsung_pin_bank *bank = ddata->bank; ddata 424 drivers/pinctrl/samsung/pinctrl-s3c24xx.c if (ddata->eint0_3_parent_only) ddata 446 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct s3c24xx_eint_domain_data *ddata = h->host_data; ddata 447 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct samsung_pin_bank *bank = ddata->bank; ddata 519 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct s3c24xx_eint_domain_data *ddata; ddata 527 drivers/pinctrl/samsung/pinctrl-s3c24xx.c ddata = devm_kzalloc(dev, sizeof(*ddata), GFP_KERNEL); ddata 528 drivers/pinctrl/samsung/pinctrl-s3c24xx.c if (!ddata) ddata 531 drivers/pinctrl/samsung/pinctrl-s3c24xx.c ddata->bank = bank; ddata 532 drivers/pinctrl/samsung/pinctrl-s3c24xx.c ddata->eint_data = eint_data; ddata 533 drivers/pinctrl/samsung/pinctrl-s3c24xx.c ddata->eint0_3_parent_only = eint0_3_parent_only; ddata 539 drivers/pinctrl/samsung/pinctrl-s3c24xx.c bank->nr_pins, ops, ddata); ddata 512 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct s3c64xx_eint0_domain_data *ddata = ddata 514 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pinctrl_drv_data *d = ddata->bank->drvdata; ddata 519 drivers/pinctrl/samsung/pinctrl-s3c64xx.c val |= 1 << ddata->eints[irqd->hwirq]; ddata 521 drivers/pinctrl/samsung/pinctrl-s3c64xx.c val &= ~(1 << ddata->eints[irqd->hwirq]); ddata 537 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct s3c64xx_eint0_domain_data *ddata = ddata 539 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pinctrl_drv_data *d = ddata->bank->drvdata; ddata 541 drivers/pinctrl/samsung/pinctrl-s3c64xx.c writel(1 << ddata->eints[irqd->hwirq], ddata 547 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct s3c64xx_eint0_domain_data *ddata = ddata 549 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pin_bank *bank = ddata->bank; ddata 566 drivers/pinctrl/samsung/pinctrl-s3c64xx.c shift = ddata->eints[irqd->hwirq]; ddata 657 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct s3c64xx_eint0_domain_data *ddata = h->host_data; ddata 658 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pin_bank *bank = ddata->bank; ddata 665 drivers/pinctrl/samsung/pinctrl-s3c64xx.c irq_set_chip_data(virq, ddata); ddata 731 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct s3c64xx_eint0_domain_data *ddata; ddata 743 drivers/pinctrl/samsung/pinctrl-s3c64xx.c ddata = devm_kzalloc(dev, ddata 744 drivers/pinctrl/samsung/pinctrl-s3c64xx.c sizeof(*ddata) + nr_eints, GFP_KERNEL); ddata 745 drivers/pinctrl/samsung/pinctrl-s3c64xx.c if (!ddata) ddata 747 drivers/pinctrl/samsung/pinctrl-s3c64xx.c ddata->bank = bank; ddata 750 drivers/pinctrl/samsung/pinctrl-s3c64xx.c nr_eints, &s3c64xx_eint0_irqd_ops, ddata); ddata 763 drivers/pinctrl/samsung/pinctrl-s3c64xx.c ddata->eints[pin] = irq; ddata 49 drivers/platform/x86/intel_mid_powerbtn.c int (*setup)(struct mid_pb_ddata *ddata); ddata 52 drivers/platform/x86/intel_mid_powerbtn.c static int mid_pbstat(struct mid_pb_ddata *ddata, int *value) ddata 54 drivers/platform/x86/intel_mid_powerbtn.c struct input_dev *input = ddata->input; ddata 58 drivers/platform/x86/intel_mid_powerbtn.c ret = intel_scu_ipc_ioread8(ddata->pbstat_addr, &pbstat); ddata 64 drivers/platform/x86/intel_mid_powerbtn.c *value = !(pbstat & ddata->pbstat_mask); ddata 68 drivers/platform/x86/intel_mid_powerbtn.c static int mid_irq_ack(struct mid_pb_ddata *ddata) ddata 70 drivers/platform/x86/intel_mid_powerbtn.c return intel_scu_ipc_update_register(ddata->mirqlvl1_addr, 0, MSIC_PWRBTNM); ddata 73 drivers/platform/x86/intel_mid_powerbtn.c static int mrfld_setup(struct mid_pb_ddata *ddata) ddata 84 drivers/platform/x86/intel_mid_powerbtn.c struct mid_pb_ddata *ddata = dev_id; ddata 85 drivers/platform/x86/intel_mid_powerbtn.c struct input_dev *input = ddata->input; ddata 89 drivers/platform/x86/intel_mid_powerbtn.c ret = mid_pbstat(ddata, &value); ddata 98 drivers/platform/x86/intel_mid_powerbtn.c mid_irq_ack(ddata); ddata 124 drivers/platform/x86/intel_mid_powerbtn.c struct mid_pb_ddata *ddata; ddata 149 drivers/platform/x86/intel_mid_powerbtn.c ddata = devm_kmemdup(&pdev->dev, (void *)id->driver_data, ddata 150 drivers/platform/x86/intel_mid_powerbtn.c sizeof(*ddata), GFP_KERNEL); ddata 151 drivers/platform/x86/intel_mid_powerbtn.c if (!ddata) ddata 154 drivers/platform/x86/intel_mid_powerbtn.c ddata->dev = &pdev->dev; ddata 155 drivers/platform/x86/intel_mid_powerbtn.c ddata->irq = irq; ddata 156 drivers/platform/x86/intel_mid_powerbtn.c ddata->input = input; ddata 158 drivers/platform/x86/intel_mid_powerbtn.c if (ddata->setup) { ddata 159 drivers/platform/x86/intel_mid_powerbtn.c error = ddata->setup(ddata); ddata 165 drivers/platform/x86/intel_mid_powerbtn.c IRQF_ONESHOT, DRIVER_NAME, ddata); ddata 179 drivers/platform/x86/intel_mid_powerbtn.c platform_set_drvdata(pdev, ddata); ddata 191 drivers/platform/x86/intel_mid_powerbtn.c error = mid_irq_ack(ddata); ddata 121 drivers/power/supply/cpcap-battery.c cpcap_battery_get_state(struct cpcap_battery_ddata *ddata, ddata 127 drivers/power/supply/cpcap-battery.c return &ddata->state[state]; ddata 131 drivers/power/supply/cpcap-battery.c cpcap_battery_latest(struct cpcap_battery_ddata *ddata) ddata 133 drivers/power/supply/cpcap-battery.c return cpcap_battery_get_state(ddata, CPCAP_BATTERY_STATE_LATEST); ddata 137 drivers/power/supply/cpcap-battery.c cpcap_battery_previous(struct cpcap_battery_ddata *ddata) ddata 139 drivers/power/supply/cpcap-battery.c return cpcap_battery_get_state(ddata, CPCAP_BATTERY_STATE_PREVIOUS); ddata 142 drivers/power/supply/cpcap-battery.c static int cpcap_charger_battery_temperature(struct cpcap_battery_ddata *ddata, ddata 148 drivers/power/supply/cpcap-battery.c channel = ddata->channels[CPCAP_BATTERY_IIO_BATTDET]; ddata 151 drivers/power/supply/cpcap-battery.c dev_warn(ddata->dev, "%s failed: %i\n", __func__, error); ddata 162 drivers/power/supply/cpcap-battery.c static int cpcap_battery_get_voltage(struct cpcap_battery_ddata *ddata) ddata 167 drivers/power/supply/cpcap-battery.c channel = ddata->channels[CPCAP_BATTERY_IIO_VOLTAGE]; ddata 170 drivers/power/supply/cpcap-battery.c dev_warn(ddata->dev, "%s failed: %i\n", __func__, error); ddata 178 drivers/power/supply/cpcap-battery.c static int cpcap_battery_get_current(struct cpcap_battery_ddata *ddata) ddata 183 drivers/power/supply/cpcap-battery.c channel = ddata->channels[CPCAP_BATTERY_IIO_BATT_CURRENT]; ddata 186 drivers/power/supply/cpcap-battery.c dev_warn(ddata->dev, "%s failed: %i\n", __func__, error); ddata 215 drivers/power/supply/cpcap-battery.c static int cpcap_battery_cc_raw_div(struct cpcap_battery_ddata *ddata, ddata 227 drivers/power/supply/cpcap-battery.c switch (ddata->vendor) { ddata 240 drivers/power/supply/cpcap-battery.c cc_lsb = (cc_lsb * ddata->config.cd_factor) / 1000; ddata 258 drivers/power/supply/cpcap-battery.c static int cpcap_battery_cc_to_uah(struct cpcap_battery_ddata *ddata, ddata 262 drivers/power/supply/cpcap-battery.c return cpcap_battery_cc_raw_div(ddata, sample, ddata 267 drivers/power/supply/cpcap-battery.c static int cpcap_battery_cc_to_ua(struct cpcap_battery_ddata *ddata, ddata 271 drivers/power/supply/cpcap-battery.c return cpcap_battery_cc_raw_div(ddata, sample, ddata 293 drivers/power/supply/cpcap-battery.c cpcap_battery_read_accumulated(struct cpcap_battery_ddata *ddata, ddata 304 drivers/power/supply/cpcap-battery.c error = regmap_bulk_read(ddata->reg, CPCAP_REG_CCS1, ddata 312 drivers/power/supply/cpcap-battery.c if (ddata->vendor == CPCAP_VENDOR_TI) ddata 326 drivers/power/supply/cpcap-battery.c return cpcap_battery_cc_to_uah(ddata, ddata 336 drivers/power/supply/cpcap-battery.c static int cpcap_battery_cc_get_avg_current(struct cpcap_battery_ddata *ddata) ddata 342 drivers/power/supply/cpcap-battery.c if (ddata->vendor == CPCAP_VENDOR_ST) ddata 346 drivers/power/supply/cpcap-battery.c error = regmap_read(ddata->reg, CPCAP_REG_CCI, &value); ddata 350 drivers/power/supply/cpcap-battery.c if ((ddata->vendor == CPCAP_VENDOR_TI) && (value > 0x2000)) ddata 356 drivers/power/supply/cpcap-battery.c error = regmap_read(ddata->reg, CPCAP_REG_CCM, &value); ddata 365 drivers/power/supply/cpcap-battery.c return cpcap_battery_cc_to_ua(ddata, sample, acc, offset); ddata 368 drivers/power/supply/cpcap-battery.c static bool cpcap_battery_full(struct cpcap_battery_ddata *ddata) ddata 370 drivers/power/supply/cpcap-battery.c struct cpcap_battery_state_data *state = cpcap_battery_latest(ddata); ddata 373 drivers/power/supply/cpcap-battery.c if (state->voltage >= (ddata->config.info.voltage_max_design - 4000)) ddata 379 drivers/power/supply/cpcap-battery.c static int cpcap_battery_update_status(struct cpcap_battery_ddata *ddata) ddata 388 drivers/power/supply/cpcap-battery.c latest = cpcap_battery_latest(ddata); ddata 397 drivers/power/supply/cpcap-battery.c state.voltage = cpcap_battery_get_voltage(ddata); ddata 398 drivers/power/supply/cpcap-battery.c state.current_ua = cpcap_battery_get_current(ddata); ddata 399 drivers/power/supply/cpcap-battery.c state.counter_uah = cpcap_battery_read_accumulated(ddata, &state.cc); ddata 401 drivers/power/supply/cpcap-battery.c error = cpcap_charger_battery_temperature(ddata, ddata 406 drivers/power/supply/cpcap-battery.c previous = cpcap_battery_previous(ddata); ddata 435 drivers/power/supply/cpcap-battery.c struct cpcap_battery_ddata *ddata = power_supply_get_drvdata(psy); ddata 442 drivers/power/supply/cpcap-battery.c cached = cpcap_battery_update_status(ddata); ddata 446 drivers/power/supply/cpcap-battery.c latest = cpcap_battery_latest(ddata); ddata 447 drivers/power/supply/cpcap-battery.c previous = cpcap_battery_previous(ddata); ddata 457 drivers/power/supply/cpcap-battery.c if (cpcap_battery_full(ddata)) { ddata 461 drivers/power/supply/cpcap-battery.c if (cpcap_battery_cc_get_avg_current(ddata) < 0) ddata 467 drivers/power/supply/cpcap-battery.c val->intval = ddata->config.info.technology; ddata 470 drivers/power/supply/cpcap-battery.c val->intval = cpcap_battery_get_voltage(ddata); ddata 473 drivers/power/supply/cpcap-battery.c val->intval = ddata->config.info.voltage_max_design; ddata 476 drivers/power/supply/cpcap-battery.c val->intval = ddata->config.info.voltage_min_design; ddata 481 drivers/power/supply/cpcap-battery.c val->intval = cpcap_battery_cc_get_avg_current(ddata); ddata 485 drivers/power/supply/cpcap-battery.c val->intval = cpcap_battery_cc_to_ua(ddata, sample, ddata 502 drivers/power/supply/cpcap-battery.c tmp = cpcap_battery_cc_get_avg_current(ddata); ddata 508 drivers/power/supply/cpcap-battery.c tmp = cpcap_battery_cc_to_ua(ddata, sample, accumulator, ddata 514 drivers/power/supply/cpcap-battery.c if (cpcap_battery_full(ddata)) ddata 528 drivers/power/supply/cpcap-battery.c val->intval = ddata->config.info.charge_full_design; ddata 545 drivers/power/supply/cpcap-battery.c struct cpcap_battery_ddata *ddata = data; ddata 549 drivers/power/supply/cpcap-battery.c if (!atomic_read(&ddata->active)) ddata 552 drivers/power/supply/cpcap-battery.c list_for_each_entry(d, &ddata->irq_list, node) { ddata 560 drivers/power/supply/cpcap-battery.c latest = cpcap_battery_latest(ddata); ddata 565 drivers/power/supply/cpcap-battery.c dev_warn(ddata->dev, "Battery low at %imV!\n", ddata 570 drivers/power/supply/cpcap-battery.c dev_emerg(ddata->dev, ddata 580 drivers/power/supply/cpcap-battery.c power_supply_changed(ddata->psy); ddata 586 drivers/power/supply/cpcap-battery.c struct cpcap_battery_ddata *ddata, ddata 596 drivers/power/supply/cpcap-battery.c error = devm_request_threaded_irq(ddata->dev, irq, NULL, ddata 599 drivers/power/supply/cpcap-battery.c name, ddata); ddata 601 drivers/power/supply/cpcap-battery.c dev_err(ddata->dev, "could not get irq %s: %i\n", ddata 607 drivers/power/supply/cpcap-battery.c d = devm_kzalloc(ddata->dev, sizeof(*d), GFP_KERNEL); ddata 619 drivers/power/supply/cpcap-battery.c list_add(&d->node, &ddata->irq_list); ddata 625 drivers/power/supply/cpcap-battery.c struct cpcap_battery_ddata *ddata) ddata 634 drivers/power/supply/cpcap-battery.c error = cpcap_battery_init_irq(pdev, ddata, ddata 641 drivers/power/supply/cpcap-battery.c error = regmap_update_bits(ddata->reg, CPCAP_REG_BPEOL, ddata 650 drivers/power/supply/cpcap-battery.c static int cpcap_battery_init_iio(struct cpcap_battery_ddata *ddata) ddata 658 drivers/power/supply/cpcap-battery.c ddata->channels[i] = devm_iio_channel_get(ddata->dev, ddata 660 drivers/power/supply/cpcap-battery.c if (IS_ERR(ddata->channels[i])) { ddata 661 drivers/power/supply/cpcap-battery.c error = PTR_ERR(ddata->channels[i]); ddata 665 drivers/power/supply/cpcap-battery.c if (!ddata->channels[i]->indio_dev) { ddata 675 drivers/power/supply/cpcap-battery.c dev_err(ddata->dev, "could not initialize VBUS or ID IIO: %i\n", ddata 714 drivers/power/supply/cpcap-battery.c struct cpcap_battery_ddata *ddata; ddata 730 drivers/power/supply/cpcap-battery.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 731 drivers/power/supply/cpcap-battery.c if (!ddata) ddata 734 drivers/power/supply/cpcap-battery.c INIT_LIST_HEAD(&ddata->irq_list); ddata 735 drivers/power/supply/cpcap-battery.c ddata->dev = &pdev->dev; ddata 736 drivers/power/supply/cpcap-battery.c memcpy(&ddata->config, match->data, sizeof(ddata->config)); ddata 738 drivers/power/supply/cpcap-battery.c ddata->reg = dev_get_regmap(ddata->dev->parent, NULL); ddata 739 drivers/power/supply/cpcap-battery.c if (!ddata->reg) ddata 742 drivers/power/supply/cpcap-battery.c error = cpcap_get_vendor(ddata->dev, ddata->reg, &ddata->vendor); ddata 746 drivers/power/supply/cpcap-battery.c platform_set_drvdata(pdev, ddata); ddata 748 drivers/power/supply/cpcap-battery.c error = regmap_update_bits(ddata->reg, CPCAP_REG_CCM, ddata 749 drivers/power/supply/cpcap-battery.c 0xffff, ddata->config.ccm); ddata 753 drivers/power/supply/cpcap-battery.c error = cpcap_battery_init_interrupts(pdev, ddata); ddata 757 drivers/power/supply/cpcap-battery.c error = cpcap_battery_init_iio(ddata); ddata 761 drivers/power/supply/cpcap-battery.c psy_desc = devm_kzalloc(ddata->dev, sizeof(*psy_desc), GFP_KERNEL); ddata 772 drivers/power/supply/cpcap-battery.c psy_cfg.drv_data = ddata; ddata 774 drivers/power/supply/cpcap-battery.c ddata->psy = devm_power_supply_register(ddata->dev, psy_desc, ddata 776 drivers/power/supply/cpcap-battery.c error = PTR_ERR_OR_ZERO(ddata->psy); ddata 778 drivers/power/supply/cpcap-battery.c dev_err(ddata->dev, "failed to register power supply\n"); ddata 782 drivers/power/supply/cpcap-battery.c atomic_set(&ddata->active, 1); ddata 789 drivers/power/supply/cpcap-battery.c struct cpcap_battery_ddata *ddata = platform_get_drvdata(pdev); ddata 792 drivers/power/supply/cpcap-battery.c atomic_set(&ddata->active, 0); ddata 793 drivers/power/supply/cpcap-battery.c error = regmap_update_bits(ddata->reg, CPCAP_REG_BPEOL, ddata 169 drivers/power/supply/cpcap-charger.c static bool cpcap_charger_battery_found(struct cpcap_charger_ddata *ddata) ddata 174 drivers/power/supply/cpcap-charger.c channel = ddata->channels[CPCAP_CHARGER_IIO_BATTDET]; ddata 177 drivers/power/supply/cpcap-charger.c dev_warn(ddata->dev, "%s failed: %i\n", __func__, error); ddata 185 drivers/power/supply/cpcap-charger.c static int cpcap_charger_get_charge_voltage(struct cpcap_charger_ddata *ddata) ddata 190 drivers/power/supply/cpcap-charger.c channel = ddata->channels[CPCAP_CHARGER_IIO_VOLTAGE]; ddata 193 drivers/power/supply/cpcap-charger.c dev_warn(ddata->dev, "%s failed: %i\n", __func__, error); ddata 201 drivers/power/supply/cpcap-charger.c static int cpcap_charger_get_charge_current(struct cpcap_charger_ddata *ddata) ddata 206 drivers/power/supply/cpcap-charger.c channel = ddata->channels[CPCAP_CHARGER_IIO_CHRG_CURRENT]; ddata 209 drivers/power/supply/cpcap-charger.c dev_warn(ddata->dev, "%s failed: %i\n", __func__, error); ddata 221 drivers/power/supply/cpcap-charger.c struct cpcap_charger_ddata *ddata = dev_get_drvdata(psy->dev.parent); ddata 225 drivers/power/supply/cpcap-charger.c val->intval = ddata->status; ddata 228 drivers/power/supply/cpcap-charger.c if (ddata->status == POWER_SUPPLY_STATUS_CHARGING) ddata 229 drivers/power/supply/cpcap-charger.c val->intval = cpcap_charger_get_charge_voltage(ddata) * ddata 235 drivers/power/supply/cpcap-charger.c if (ddata->status == POWER_SUPPLY_STATUS_CHARGING) ddata 236 drivers/power/supply/cpcap-charger.c val->intval = cpcap_charger_get_charge_current(ddata) * ddata 242 drivers/power/supply/cpcap-charger.c val->intval = ddata->status == POWER_SUPPLY_STATUS_CHARGING; ddata 251 drivers/power/supply/cpcap-charger.c static void cpcap_charger_set_cable_path(struct cpcap_charger_ddata *ddata, ddata 254 drivers/power/supply/cpcap-charger.c if (!ddata->gpio[0]) ddata 257 drivers/power/supply/cpcap-charger.c gpiod_set_value(ddata->gpio[0], enabled); ddata 260 drivers/power/supply/cpcap-charger.c static void cpcap_charger_set_inductive_path(struct cpcap_charger_ddata *ddata, ddata 263 drivers/power/supply/cpcap-charger.c if (!ddata->gpio[1]) ddata 266 drivers/power/supply/cpcap-charger.c gpiod_set_value(ddata->gpio[1], enabled); ddata 269 drivers/power/supply/cpcap-charger.c static int cpcap_charger_set_state(struct cpcap_charger_ddata *ddata, ddata 277 drivers/power/supply/cpcap-charger.c dev_dbg(ddata->dev, "%s enable: %i\n", __func__, enable); ddata 280 drivers/power/supply/cpcap-charger.c error = regmap_update_bits(ddata->reg, CPCAP_REG_CRM, ddata 285 drivers/power/supply/cpcap-charger.c ddata->status = POWER_SUPPLY_STATUS_UNKNOWN; ddata 289 drivers/power/supply/cpcap-charger.c ddata->status = POWER_SUPPLY_STATUS_DISCHARGING; ddata 294 drivers/power/supply/cpcap-charger.c error = regmap_update_bits(ddata->reg, CPCAP_REG_CRM, 0x3fff, ddata 302 drivers/power/supply/cpcap-charger.c ddata->status = POWER_SUPPLY_STATUS_UNKNOWN; ddata 306 drivers/power/supply/cpcap-charger.c ddata->status = POWER_SUPPLY_STATUS_CHARGING; ddata 311 drivers/power/supply/cpcap-charger.c dev_err(ddata->dev, "%s failed with %i\n", __func__, error); ddata 316 drivers/power/supply/cpcap-charger.c static bool cpcap_charger_vbus_valid(struct cpcap_charger_ddata *ddata) ddata 320 drivers/power/supply/cpcap-charger.c ddata->channels[CPCAP_CHARGER_IIO_VBUS]; ddata 326 drivers/power/supply/cpcap-charger.c dev_err(ddata->dev, "error reading VBUS: %i\n", error); ddata 334 drivers/power/supply/cpcap-charger.c struct cpcap_charger_ddata *ddata; ddata 338 drivers/power/supply/cpcap-charger.c ddata = container_of(work, struct cpcap_charger_ddata, ddata 341 drivers/power/supply/cpcap-charger.c if (ddata->vbus_enabled) { ddata 342 drivers/power/supply/cpcap-charger.c vbus = cpcap_charger_vbus_valid(ddata); ddata 344 drivers/power/supply/cpcap-charger.c dev_info(ddata->dev, "VBUS already provided\n"); ddata 349 drivers/power/supply/cpcap-charger.c ddata->feeding_vbus = true; ddata 350 drivers/power/supply/cpcap-charger.c cpcap_charger_set_cable_path(ddata, false); ddata 351 drivers/power/supply/cpcap-charger.c cpcap_charger_set_inductive_path(ddata, false); ddata 353 drivers/power/supply/cpcap-charger.c error = cpcap_charger_set_state(ddata, 0, 0, 0); ddata 357 drivers/power/supply/cpcap-charger.c error = regmap_update_bits(ddata->reg, CPCAP_REG_VUSBC, ddata 363 drivers/power/supply/cpcap-charger.c error = regmap_update_bits(ddata->reg, CPCAP_REG_CRM, ddata 369 drivers/power/supply/cpcap-charger.c error = regmap_update_bits(ddata->reg, CPCAP_REG_VUSBC, ddata 374 drivers/power/supply/cpcap-charger.c error = regmap_update_bits(ddata->reg, CPCAP_REG_CRM, ddata 379 drivers/power/supply/cpcap-charger.c cpcap_charger_set_cable_path(ddata, true); ddata 380 drivers/power/supply/cpcap-charger.c cpcap_charger_set_inductive_path(ddata, true); ddata 381 drivers/power/supply/cpcap-charger.c ddata->feeding_vbus = false; ddata 387 drivers/power/supply/cpcap-charger.c dev_err(ddata->dev, "%s could not %s vbus: %i\n", __func__, ddata 388 drivers/power/supply/cpcap-charger.c ddata->vbus_enabled ? "enable" : "disable", error); ddata 394 drivers/power/supply/cpcap-charger.c struct cpcap_charger_ddata *ddata = ddata 398 drivers/power/supply/cpcap-charger.c ddata->vbus_enabled = enabled; ddata 399 drivers/power/supply/cpcap-charger.c schedule_delayed_work(&ddata->vbus_work, 0); ddata 406 drivers/power/supply/cpcap-charger.c static int cpcap_charger_get_ints_state(struct cpcap_charger_ddata *ddata, ddata 411 drivers/power/supply/cpcap-charger.c error = regmap_read(ddata->reg, CPCAP_REG_INTS1, &val); ddata 419 drivers/power/supply/cpcap-charger.c error = regmap_read(ddata->reg, CPCAP_REG_INTS2, &val); ddata 428 drivers/power/supply/cpcap-charger.c error = regmap_read(ddata->reg, CPCAP_REG_INTS4, &val); ddata 439 drivers/power/supply/cpcap-charger.c struct cpcap_charger_ddata *ddata; ddata 443 drivers/power/supply/cpcap-charger.c ddata = container_of(work, struct cpcap_charger_ddata, ddata 446 drivers/power/supply/cpcap-charger.c error = cpcap_charger_get_ints_state(ddata, &s); ddata 450 drivers/power/supply/cpcap-charger.c if (!ddata->feeding_vbus && cpcap_charger_vbus_valid(ddata) && ddata 454 drivers/power/supply/cpcap-charger.c if (cpcap_charger_battery_found(ddata)) ddata 459 drivers/power/supply/cpcap-charger.c error = cpcap_charger_set_state(ddata, ddata 465 drivers/power/supply/cpcap-charger.c error = cpcap_charger_set_state(ddata, 0, 0, 0); ddata 470 drivers/power/supply/cpcap-charger.c power_supply_changed(ddata->usb); ddata 474 drivers/power/supply/cpcap-charger.c dev_err(ddata->dev, "%s failed with %i\n", __func__, error); ddata 479 drivers/power/supply/cpcap-charger.c struct cpcap_charger_ddata *ddata = data; ddata 481 drivers/power/supply/cpcap-charger.c if (!atomic_read(&ddata->active)) ddata 484 drivers/power/supply/cpcap-charger.c schedule_delayed_work(&ddata->detect_work, 0); ddata 490 drivers/power/supply/cpcap-charger.c struct cpcap_charger_ddata *ddata, ddata 500 drivers/power/supply/cpcap-charger.c error = devm_request_threaded_irq(ddata->dev, irq, NULL, ddata 503 drivers/power/supply/cpcap-charger.c name, ddata); ddata 505 drivers/power/supply/cpcap-charger.c dev_err(ddata->dev, "could not get irq %s: %i\n", ddata 511 drivers/power/supply/cpcap-charger.c d = devm_kzalloc(ddata->dev, sizeof(*d), GFP_KERNEL); ddata 517 drivers/power/supply/cpcap-charger.c list_add(&d->node, &ddata->irq_list); ddata 534 drivers/power/supply/cpcap-charger.c struct cpcap_charger_ddata *ddata) ddata 539 drivers/power/supply/cpcap-charger.c error = cpcap_usb_init_irq(pdev, ddata, cpcap_charger_irqs[i]); ddata 547 drivers/power/supply/cpcap-charger.c static void cpcap_charger_init_optional_gpios(struct cpcap_charger_ddata *ddata) ddata 552 drivers/power/supply/cpcap-charger.c ddata->gpio[i] = devm_gpiod_get_index(ddata->dev, "mode", ddata 554 drivers/power/supply/cpcap-charger.c if (IS_ERR(ddata->gpio[i])) { ddata 555 drivers/power/supply/cpcap-charger.c dev_info(ddata->dev, "no mode change GPIO%i: %li\n", ddata 556 drivers/power/supply/cpcap-charger.c i, PTR_ERR(ddata->gpio[i])); ddata 557 drivers/power/supply/cpcap-charger.c ddata->gpio[i] = NULL; ddata 562 drivers/power/supply/cpcap-charger.c static int cpcap_charger_init_iio(struct cpcap_charger_ddata *ddata) ddata 570 drivers/power/supply/cpcap-charger.c ddata->channels[i] = devm_iio_channel_get(ddata->dev, ddata 572 drivers/power/supply/cpcap-charger.c if (IS_ERR(ddata->channels[i])) { ddata 573 drivers/power/supply/cpcap-charger.c error = PTR_ERR(ddata->channels[i]); ddata 577 drivers/power/supply/cpcap-charger.c if (!ddata->channels[i]->indio_dev) { ddata 587 drivers/power/supply/cpcap-charger.c dev_err(ddata->dev, "could not initialize VBUS or ID IIO: %i\n", ddata 613 drivers/power/supply/cpcap-charger.c struct cpcap_charger_ddata *ddata; ddata 623 drivers/power/supply/cpcap-charger.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 624 drivers/power/supply/cpcap-charger.c if (!ddata) ddata 627 drivers/power/supply/cpcap-charger.c ddata->dev = &pdev->dev; ddata 629 drivers/power/supply/cpcap-charger.c ddata->reg = dev_get_regmap(ddata->dev->parent, NULL); ddata 630 drivers/power/supply/cpcap-charger.c if (!ddata->reg) ddata 633 drivers/power/supply/cpcap-charger.c INIT_LIST_HEAD(&ddata->irq_list); ddata 634 drivers/power/supply/cpcap-charger.c INIT_DELAYED_WORK(&ddata->detect_work, cpcap_usb_detect); ddata 635 drivers/power/supply/cpcap-charger.c INIT_DELAYED_WORK(&ddata->vbus_work, cpcap_charger_vbus_work); ddata 636 drivers/power/supply/cpcap-charger.c platform_set_drvdata(pdev, ddata); ddata 638 drivers/power/supply/cpcap-charger.c error = cpcap_charger_init_iio(ddata); ddata 642 drivers/power/supply/cpcap-charger.c atomic_set(&ddata->active, 1); ddata 645 drivers/power/supply/cpcap-charger.c psy_cfg.drv_data = ddata; ddata 647 drivers/power/supply/cpcap-charger.c ddata->usb = devm_power_supply_register(ddata->dev, ddata 650 drivers/power/supply/cpcap-charger.c if (IS_ERR(ddata->usb)) { ddata 651 drivers/power/supply/cpcap-charger.c error = PTR_ERR(ddata->usb); ddata 652 drivers/power/supply/cpcap-charger.c dev_err(ddata->dev, "failed to register USB charger: %i\n", ddata 658 drivers/power/supply/cpcap-charger.c error = cpcap_usb_init_interrupts(pdev, ddata); ddata 662 drivers/power/supply/cpcap-charger.c ddata->comparator.set_vbus = cpcap_charger_set_vbus; ddata 663 drivers/power/supply/cpcap-charger.c error = omap_usb2_set_comparator(&ddata->comparator); ddata 665 drivers/power/supply/cpcap-charger.c dev_info(ddata->dev, "charger needs phy, deferring probe\n"); ddata 669 drivers/power/supply/cpcap-charger.c cpcap_charger_init_optional_gpios(ddata); ddata 671 drivers/power/supply/cpcap-charger.c schedule_delayed_work(&ddata->detect_work, 0); ddata 678 drivers/power/supply/cpcap-charger.c struct cpcap_charger_ddata *ddata = platform_get_drvdata(pdev); ddata 681 drivers/power/supply/cpcap-charger.c atomic_set(&ddata->active, 0); ddata 684 drivers/power/supply/cpcap-charger.c dev_warn(ddata->dev, "could not clear USB comparator: %i\n", ddata 687 drivers/power/supply/cpcap-charger.c error = cpcap_charger_set_state(ddata, 0, 0, 0); ddata 689 drivers/power/supply/cpcap-charger.c dev_warn(ddata->dev, "could not clear charger: %i\n", ddata 691 drivers/power/supply/cpcap-charger.c cancel_delayed_work_sync(&ddata->vbus_work); ddata 692 drivers/power/supply/cpcap-charger.c cancel_delayed_work_sync(&ddata->detect_work); ddata 63 drivers/pwm/pwm-sifive.c struct pwm_sifive_ddata *ddata = pwm_sifive_chip_to_ddata(chip); ddata 65 drivers/pwm/pwm-sifive.c mutex_lock(&ddata->lock); ddata 66 drivers/pwm/pwm-sifive.c ddata->user_count++; ddata 67 drivers/pwm/pwm-sifive.c mutex_unlock(&ddata->lock); ddata 74 drivers/pwm/pwm-sifive.c struct pwm_sifive_ddata *ddata = pwm_sifive_chip_to_ddata(chip); ddata 76 drivers/pwm/pwm-sifive.c mutex_lock(&ddata->lock); ddata 77 drivers/pwm/pwm-sifive.c ddata->user_count--; ddata 78 drivers/pwm/pwm-sifive.c mutex_unlock(&ddata->lock); ddata 81 drivers/pwm/pwm-sifive.c static void pwm_sifive_update_clock(struct pwm_sifive_ddata *ddata, ddata 95 drivers/pwm/pwm-sifive.c scale_pow = div64_ul(ddata->approx_period * (u64)rate, NSEC_PER_SEC); ddata 100 drivers/pwm/pwm-sifive.c writel(val, ddata->regs + PWM_SIFIVE_PWMCFG); ddata 104 drivers/pwm/pwm-sifive.c ddata->real_period = div64_ul(num, rate); ddata 105 drivers/pwm/pwm-sifive.c dev_dbg(ddata->chip.dev, ddata 106 drivers/pwm/pwm-sifive.c "New real_period = %u ns\n", ddata->real_period); ddata 112 drivers/pwm/pwm-sifive.c struct pwm_sifive_ddata *ddata = pwm_sifive_chip_to_ddata(chip); ddata 115 drivers/pwm/pwm-sifive.c duty = readl(ddata->regs + PWM_SIFIVE_PWMCMP0 + ddata 120 drivers/pwm/pwm-sifive.c val = readl(ddata->regs + PWM_SIFIVE_PWMCFG); ddata 124 drivers/pwm/pwm-sifive.c state->period = ddata->real_period; ddata 126 drivers/pwm/pwm-sifive.c (u64)duty * ddata->real_period >> PWM_SIFIVE_CMPWIDTH; ddata 132 drivers/pwm/pwm-sifive.c struct pwm_sifive_ddata *ddata = pwm_sifive_chip_to_ddata(chip); ddata 136 drivers/pwm/pwm-sifive.c ret = clk_enable(ddata->clk); ddata 138 drivers/pwm/pwm-sifive.c dev_err(ddata->chip.dev, "Enable clk failed\n"); ddata 144 drivers/pwm/pwm-sifive.c clk_disable(ddata->clk); ddata 152 drivers/pwm/pwm-sifive.c struct pwm_sifive_ddata *ddata = pwm_sifive_chip_to_ddata(chip); ddata 163 drivers/pwm/pwm-sifive.c ret = clk_enable(ddata->clk); ddata 165 drivers/pwm/pwm-sifive.c dev_err(ddata->chip.dev, "Enable clk failed\n"); ddata 169 drivers/pwm/pwm-sifive.c mutex_lock(&ddata->lock); ddata 188 drivers/pwm/pwm-sifive.c if (state->period != ddata->approx_period) { ddata 189 drivers/pwm/pwm-sifive.c if (ddata->user_count != 1) { ddata 193 drivers/pwm/pwm-sifive.c ddata->approx_period = state->period; ddata 194 drivers/pwm/pwm-sifive.c pwm_sifive_update_clock(ddata, clk_get_rate(ddata->clk)); ddata 197 drivers/pwm/pwm-sifive.c writel(frac, ddata->regs + PWM_SIFIVE_PWMCMP0 + ddata 204 drivers/pwm/pwm-sifive.c clk_disable(ddata->clk); ddata 205 drivers/pwm/pwm-sifive.c mutex_unlock(&ddata->lock); ddata 221 drivers/pwm/pwm-sifive.c struct pwm_sifive_ddata *ddata = ddata 225 drivers/pwm/pwm-sifive.c pwm_sifive_update_clock(ddata, ndata->new_rate); ddata 233 drivers/pwm/pwm-sifive.c struct pwm_sifive_ddata *ddata; ddata 238 drivers/pwm/pwm-sifive.c ddata = devm_kzalloc(dev, sizeof(*ddata), GFP_KERNEL); ddata 239 drivers/pwm/pwm-sifive.c if (!ddata) ddata 242 drivers/pwm/pwm-sifive.c mutex_init(&ddata->lock); ddata 243 drivers/pwm/pwm-sifive.c chip = &ddata->chip; ddata 252 drivers/pwm/pwm-sifive.c ddata->regs = devm_ioremap_resource(dev, res); ddata 253 drivers/pwm/pwm-sifive.c if (IS_ERR(ddata->regs)) ddata 254 drivers/pwm/pwm-sifive.c return PTR_ERR(ddata->regs); ddata 256 drivers/pwm/pwm-sifive.c ddata->clk = devm_clk_get(dev, NULL); ddata 257 drivers/pwm/pwm-sifive.c if (IS_ERR(ddata->clk)) { ddata 258 drivers/pwm/pwm-sifive.c if (PTR_ERR(ddata->clk) != -EPROBE_DEFER) ddata 260 drivers/pwm/pwm-sifive.c return PTR_ERR(ddata->clk); ddata 263 drivers/pwm/pwm-sifive.c ret = clk_prepare_enable(ddata->clk); ddata 270 drivers/pwm/pwm-sifive.c ddata->notifier.notifier_call = pwm_sifive_clock_notifier; ddata 271 drivers/pwm/pwm-sifive.c ret = clk_notifier_register(ddata->clk, &ddata->notifier); ddata 283 drivers/pwm/pwm-sifive.c platform_set_drvdata(pdev, ddata); ddata 289 drivers/pwm/pwm-sifive.c clk_notifier_unregister(ddata->clk, &ddata->notifier); ddata 291 drivers/pwm/pwm-sifive.c clk_disable_unprepare(ddata->clk); ddata 298 drivers/pwm/pwm-sifive.c struct pwm_sifive_ddata *ddata = platform_get_drvdata(dev); ddata 303 drivers/pwm/pwm-sifive.c for (ch = 0; ch < ddata->chip.npwm; ch++) { ddata 304 drivers/pwm/pwm-sifive.c pwm = &ddata->chip.pwms[ch]; ddata 311 drivers/pwm/pwm-sifive.c clk_disable(ddata->clk); ddata 313 drivers/pwm/pwm-sifive.c clk_disable_unprepare(ddata->clk); ddata 314 drivers/pwm/pwm-sifive.c ret = pwmchip_remove(&ddata->chip); ddata 315 drivers/pwm/pwm-sifive.c clk_notifier_unregister(ddata->clk, &ddata->notifier); ddata 317 drivers/pwm/pwm-sti.c struct sti_cpt_ddata *ddata = pwm_get_chip_data(pwm); ddata 328 drivers/pwm/pwm-sti.c mutex_lock(&ddata->lock); ddata 329 drivers/pwm/pwm-sti.c ddata->index = 0; ddata 343 drivers/pwm/pwm-sti.c ret = wait_event_interruptible_timeout(ddata->wait, ddata->index > 1, ddata 351 drivers/pwm/pwm-sti.c switch (ddata->index) { ddata 368 drivers/pwm/pwm-sti.c high = ddata->snapshot[1] - ddata->snapshot[0]; ddata 369 drivers/pwm/pwm-sti.c low = ddata->snapshot[2] - ddata->snapshot[1]; ddata 390 drivers/pwm/pwm-sti.c mutex_unlock(&ddata->lock); ddata 407 drivers/pwm/pwm-sti.c struct sti_cpt_ddata *ddata; ddata 420 drivers/pwm/pwm-sti.c ddata = pwm_get_chip_data(&pc->chip.pwms[devicenum]); ddata 440 drivers/pwm/pwm-sti.c &ddata->snapshot[ddata->index]); ddata 442 drivers/pwm/pwm-sti.c switch (ddata->index) { ddata 449 drivers/pwm/pwm-sti.c ddata->index++; ddata 456 drivers/pwm/pwm-sti.c wake_up(&ddata->wait); ddata 641 drivers/pwm/pwm-sti.c struct sti_cpt_ddata *ddata; ddata 643 drivers/pwm/pwm-sti.c ddata = devm_kzalloc(dev, sizeof(*ddata), GFP_KERNEL); ddata 644 drivers/pwm/pwm-sti.c if (!ddata) ddata 647 drivers/pwm/pwm-sti.c init_waitqueue_head(&ddata->wait); ddata 648 drivers/pwm/pwm-sti.c mutex_init(&ddata->lock); ddata 650 drivers/pwm/pwm-sti.c pwm_set_chip_data(&pc->chip.pwms[i], ddata); ddata 198 drivers/pwm/pwm-stm32-lp.c struct stm32_lptimer *ddata = dev_get_drvdata(pdev->dev.parent); ddata 206 drivers/pwm/pwm-stm32-lp.c priv->regmap = ddata->regmap; ddata 207 drivers/pwm/pwm-stm32-lp.c priv->clk = ddata->clk; ddata 599 drivers/pwm/pwm-stm32.c struct stm32_timers *ddata = dev_get_drvdata(pdev->dev.parent); ddata 608 drivers/pwm/pwm-stm32.c priv->regmap = ddata->regmap; ddata 609 drivers/pwm/pwm-stm32.c priv->clk = ddata->clk; ddata 610 drivers/pwm/pwm-stm32.c priv->max_arr = ddata->max_arr; ddata 507 drivers/regulator/cpcap-regulator.c struct cpcap_ddata *ddata; ddata 519 drivers/regulator/cpcap-regulator.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 520 drivers/regulator/cpcap-regulator.c if (!ddata) ddata 523 drivers/regulator/cpcap-regulator.c ddata->reg = dev_get_regmap(pdev->dev.parent, NULL); ddata 524 drivers/regulator/cpcap-regulator.c if (!ddata->reg) ddata 527 drivers/regulator/cpcap-regulator.c ddata->dev = &pdev->dev; ddata 528 drivers/regulator/cpcap-regulator.c ddata->soc = match_data; ddata 529 drivers/regulator/cpcap-regulator.c platform_set_drvdata(pdev, ddata); ddata 533 drivers/regulator/cpcap-regulator.c config.regmap = ddata->reg; ddata 536 drivers/regulator/cpcap-regulator.c const struct cpcap_regulator *regulator = &ddata->soc[i]; ddata 443 drivers/regulator/palmas-regulator.c struct palmas_pmic_driver_data *ddata = pmic->palmas->pmic_ddata; ddata 444 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; ddata 506 drivers/regulator/palmas-regulator.c struct palmas_pmic_driver_data *ddata = pmic->palmas->pmic_ddata; ddata 507 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; ddata 600 drivers/regulator/palmas-regulator.c struct palmas_pmic_driver_data *ddata = pmic->palmas->pmic_ddata; ddata 601 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; ddata 676 drivers/regulator/palmas-regulator.c struct palmas_pmic_driver_data *ddata = palmas->pmic_ddata; ddata 677 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; ddata 700 drivers/regulator/palmas-regulator.c struct palmas_pmic_driver_data *ddata = palmas->pmic_ddata; ddata 701 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; ddata 770 drivers/regulator/palmas-regulator.c struct palmas_pmic_driver_data *ddata = palmas->pmic_ddata; ddata 771 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; ddata 815 drivers/regulator/palmas-regulator.c struct palmas_pmic_driver_data *ddata = palmas->pmic_ddata; ddata 816 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; ddata 852 drivers/regulator/palmas-regulator.c struct palmas_pmic_driver_data *ddata = palmas->pmic_ddata; ddata 855 drivers/regulator/palmas-regulator.c rinfo = &ddata->palmas_regs_info[PALMAS_REG_LDO8]; ddata 891 drivers/regulator/palmas-regulator.c struct palmas_pmic_driver_data *ddata, ddata 902 drivers/regulator/palmas-regulator.c for (id = ddata->ldo_begin; id < ddata->max_reg; id++) { ddata 908 drivers/regulator/palmas-regulator.c rinfo = &ddata->palmas_regs_info[id]; ddata 959 drivers/regulator/palmas-regulator.c if (!ddata->has_regen3 && id == PALMAS_REG_REGEN3) ddata 979 drivers/regulator/palmas-regulator.c config.of_node = ddata->palmas_matches[id].of_node; ddata 993 drivers/regulator/palmas-regulator.c if (id <= ddata->ldo_end) ddata 1009 drivers/regulator/palmas-regulator.c struct palmas_pmic_driver_data *ddata, ddata 1020 drivers/regulator/palmas-regulator.c for (id = ddata->ldo_begin; id < ddata->max_reg; id++) { ddata 1029 drivers/regulator/palmas-regulator.c rinfo = &ddata->palmas_regs_info[id]; ddata 1086 drivers/regulator/palmas-regulator.c config.of_node = ddata->palmas_matches[id].of_node; ddata 1116 drivers/regulator/palmas-regulator.c struct palmas_pmic_driver_data *ddata, ddata 1128 drivers/regulator/palmas-regulator.c for (id = ddata->smps_start; id <= ddata->smps_end; id++) { ddata 1165 drivers/regulator/palmas-regulator.c rinfo = &ddata->palmas_regs_info[id]; ddata 1271 drivers/regulator/palmas-regulator.c config.of_node = ddata->palmas_matches[id].of_node; ddata 1286 drivers/regulator/palmas-regulator.c struct palmas_pmic_driver_data *ddata, ddata 1298 drivers/regulator/palmas-regulator.c for (id = ddata->smps_start; id <= ddata->smps_end; id++) { ddata 1318 drivers/regulator/palmas-regulator.c rinfo = &ddata->palmas_regs_info[id]; ddata 1375 drivers/regulator/palmas-regulator.c config.of_node = ddata->palmas_matches[id].of_node; ddata 1469 drivers/regulator/palmas-regulator.c struct palmas_pmic_driver_data *ddata) ddata 1481 drivers/regulator/palmas-regulator.c ret = of_regulator_match(dev, regulators, ddata->palmas_matches, ddata 1482 drivers/regulator/palmas-regulator.c ddata->max_reg); ddata 1489 drivers/regulator/palmas-regulator.c for (idx = 0; idx < ddata->max_reg; idx++) { ddata 1494 drivers/regulator/palmas-regulator.c match = &ddata->palmas_matches[idx]; ddata 78 drivers/remoteproc/st_remoteproc.c struct st_rproc *ddata = rproc->priv; ddata 86 drivers/remoteproc/st_remoteproc.c ret = mbox_send_message(ddata->mbox_chan[vqid * MBOX_MAX + MBOX_TX], ddata 165 drivers/remoteproc/st_remoteproc.c struct st_rproc *ddata = rproc->priv; ddata 168 drivers/remoteproc/st_remoteproc.c regmap_update_bits(ddata->boot_base, ddata->boot_offset, ddata 169 drivers/remoteproc/st_remoteproc.c ddata->config->bootaddr_mask, rproc->bootaddr); ddata 171 drivers/remoteproc/st_remoteproc.c err = clk_enable(ddata->clk); ddata 177 drivers/remoteproc/st_remoteproc.c if (ddata->config->sw_reset) { ddata 178 drivers/remoteproc/st_remoteproc.c err = reset_control_deassert(ddata->sw_reset); ddata 185 drivers/remoteproc/st_remoteproc.c if (ddata->config->pwr_reset) { ddata 186 drivers/remoteproc/st_remoteproc.c err = reset_control_deassert(ddata->pwr_reset); ddata 199 drivers/remoteproc/st_remoteproc.c if (ddata->config->pwr_reset) ddata 200 drivers/remoteproc/st_remoteproc.c reset_control_assert(ddata->sw_reset); ddata 202 drivers/remoteproc/st_remoteproc.c clk_disable(ddata->clk); ddata 209 drivers/remoteproc/st_remoteproc.c struct st_rproc *ddata = rproc->priv; ddata 212 drivers/remoteproc/st_remoteproc.c if (ddata->config->sw_reset) { ddata 213 drivers/remoteproc/st_remoteproc.c sw_err = reset_control_assert(ddata->sw_reset); ddata 218 drivers/remoteproc/st_remoteproc.c if (ddata->config->pwr_reset) { ddata 219 drivers/remoteproc/st_remoteproc.c pwr_err = reset_control_assert(ddata->pwr_reset); ddata 224 drivers/remoteproc/st_remoteproc.c clk_disable(ddata->clk); ddata 246 drivers/remoteproc/st_remoteproc.c struct st_rproc *ddata = rproc->priv; ddata 249 drivers/remoteproc/st_remoteproc.c if (ddata->config->sw_reset) ddata 250 drivers/remoteproc/st_remoteproc.c reset_sw = reset_control_status(ddata->sw_reset); ddata 252 drivers/remoteproc/st_remoteproc.c if (ddata->config->pwr_reset) ddata 253 drivers/remoteproc/st_remoteproc.c reset_pwr = reset_control_status(ddata->pwr_reset); ddata 284 drivers/remoteproc/st_remoteproc.c struct st_rproc *ddata = rproc->priv; ddata 288 drivers/remoteproc/st_remoteproc.c if (ddata->config->sw_reset) { ddata 289 drivers/remoteproc/st_remoteproc.c ddata->sw_reset = devm_reset_control_get_exclusive(dev, ddata 291 drivers/remoteproc/st_remoteproc.c if (IS_ERR(ddata->sw_reset)) { ddata 293 drivers/remoteproc/st_remoteproc.c return PTR_ERR(ddata->sw_reset); ddata 297 drivers/remoteproc/st_remoteproc.c if (ddata->config->pwr_reset) { ddata 298 drivers/remoteproc/st_remoteproc.c ddata->pwr_reset = devm_reset_control_get_exclusive(dev, ddata 300 drivers/remoteproc/st_remoteproc.c if (IS_ERR(ddata->pwr_reset)) { ddata 302 drivers/remoteproc/st_remoteproc.c return PTR_ERR(ddata->pwr_reset); ddata 306 drivers/remoteproc/st_remoteproc.c ddata->clk = devm_clk_get(dev, NULL); ddata 307 drivers/remoteproc/st_remoteproc.c if (IS_ERR(ddata->clk)) { ddata 309 drivers/remoteproc/st_remoteproc.c return PTR_ERR(ddata->clk); ddata 312 drivers/remoteproc/st_remoteproc.c err = of_property_read_u32(np, "clock-frequency", &ddata->clk_rate); ddata 318 drivers/remoteproc/st_remoteproc.c ddata->boot_base = syscon_regmap_lookup_by_phandle(np, "st,syscfg"); ddata 319 drivers/remoteproc/st_remoteproc.c if (IS_ERR(ddata->boot_base)) { ddata 321 drivers/remoteproc/st_remoteproc.c return PTR_ERR(ddata->boot_base); ddata 325 drivers/remoteproc/st_remoteproc.c &ddata->boot_offset); ddata 331 drivers/remoteproc/st_remoteproc.c err = clk_prepare(ddata->clk); ddata 342 drivers/remoteproc/st_remoteproc.c struct st_rproc *ddata; ddata 355 drivers/remoteproc/st_remoteproc.c rproc = rproc_alloc(dev, np->name, &st_rproc_ops, NULL, sizeof(*ddata)); ddata 360 drivers/remoteproc/st_remoteproc.c ddata = rproc->priv; ddata 361 drivers/remoteproc/st_remoteproc.c ddata->config = (struct st_rproc_config *)match->data; ddata 379 drivers/remoteproc/st_remoteproc.c clk_set_rate(ddata->clk, ddata->clk_rate); ddata 383 drivers/remoteproc/st_remoteproc.c ddata->mbox_client_vq0.dev = dev; ddata 384 drivers/remoteproc/st_remoteproc.c ddata->mbox_client_vq0.tx_done = NULL; ddata 385 drivers/remoteproc/st_remoteproc.c ddata->mbox_client_vq0.tx_block = false; ddata 386 drivers/remoteproc/st_remoteproc.c ddata->mbox_client_vq0.knows_txdone = false; ddata 387 drivers/remoteproc/st_remoteproc.c ddata->mbox_client_vq0.rx_callback = st_rproc_mbox_callback_vq0; ddata 389 drivers/remoteproc/st_remoteproc.c ddata->mbox_client_vq1.dev = dev; ddata 390 drivers/remoteproc/st_remoteproc.c ddata->mbox_client_vq1.tx_done = NULL; ddata 391 drivers/remoteproc/st_remoteproc.c ddata->mbox_client_vq1.tx_block = false; ddata 392 drivers/remoteproc/st_remoteproc.c ddata->mbox_client_vq1.knows_txdone = false; ddata 393 drivers/remoteproc/st_remoteproc.c ddata->mbox_client_vq1.rx_callback = st_rproc_mbox_callback_vq1; ddata 399 drivers/remoteproc/st_remoteproc.c chan = mbox_request_channel_byname(&ddata->mbox_client_vq0, "vq0_rx"); ddata 405 drivers/remoteproc/st_remoteproc.c ddata->mbox_chan[ST_RPROC_VQ0 * MBOX_MAX + MBOX_RX] = chan; ddata 407 drivers/remoteproc/st_remoteproc.c chan = mbox_request_channel_byname(&ddata->mbox_client_vq0, "vq0_tx"); ddata 413 drivers/remoteproc/st_remoteproc.c ddata->mbox_chan[ST_RPROC_VQ0 * MBOX_MAX + MBOX_TX] = chan; ddata 415 drivers/remoteproc/st_remoteproc.c chan = mbox_request_channel_byname(&ddata->mbox_client_vq1, "vq1_rx"); ddata 421 drivers/remoteproc/st_remoteproc.c ddata->mbox_chan[ST_RPROC_VQ1 * MBOX_MAX + MBOX_RX] = chan; ddata 423 drivers/remoteproc/st_remoteproc.c chan = mbox_request_channel_byname(&ddata->mbox_client_vq1, "vq1_tx"); ddata 429 drivers/remoteproc/st_remoteproc.c ddata->mbox_chan[ST_RPROC_VQ1 * MBOX_MAX + MBOX_TX] = chan; ddata 440 drivers/remoteproc/st_remoteproc.c mbox_free_channel(ddata->mbox_chan[i]); ddata 442 drivers/remoteproc/st_remoteproc.c clk_unprepare(ddata->clk); ddata 451 drivers/remoteproc/st_remoteproc.c struct st_rproc *ddata = rproc->priv; ddata 456 drivers/remoteproc/st_remoteproc.c clk_disable_unprepare(ddata->clk); ddata 459 drivers/remoteproc/st_remoteproc.c mbox_free_channel(ddata->mbox_chan[i]); ddata 77 drivers/remoteproc/stm32_rproc.c struct stm32_rproc *ddata = rproc->priv; ddata 80 drivers/remoteproc/stm32_rproc.c for (i = 0; i < ddata->nb_rmems; i++) { ddata 81 drivers/remoteproc/stm32_rproc.c p_mem = &ddata->rmems[i]; ddata 126 drivers/remoteproc/stm32_rproc.c struct stm32_rproc *ddata = rproc->priv; ddata 168 drivers/remoteproc/stm32_rproc.c ddata->rmems = p_mems; ddata 169 drivers/remoteproc/stm32_rproc.c ddata->nb_rmems = cnt; ddata 178 drivers/remoteproc/stm32_rproc.c struct stm32_rproc *ddata = rproc->priv; ddata 181 drivers/remoteproc/stm32_rproc.c for (i = 0; i < ARRAY_SIZE(ddata->mb); i++) { ddata 182 drivers/remoteproc/stm32_rproc.c if (!strncmp(ddata->mb[i].name, name, strlen(name))) ddata 275 drivers/remoteproc/stm32_rproc.c struct stm32_rproc *ddata = rproc->priv; ddata 278 drivers/remoteproc/stm32_rproc.c for (i = 0; i < ARRAY_SIZE(ddata->mb); i++) { ddata 279 drivers/remoteproc/stm32_rproc.c if (ddata->mb[i].chan) ddata 280 drivers/remoteproc/stm32_rproc.c mbox_free_channel(ddata->mb[i].chan); ddata 281 drivers/remoteproc/stm32_rproc.c ddata->mb[i].chan = NULL; ddata 315 drivers/remoteproc/stm32_rproc.c struct stm32_rproc *ddata = rproc->priv; ddata 322 drivers/remoteproc/stm32_rproc.c memcpy(ddata->mb, stm32_rproc_mbox, sizeof(stm32_rproc_mbox)); ddata 325 drivers/remoteproc/stm32_rproc.c name = ddata->mb[i].name; ddata 327 drivers/remoteproc/stm32_rproc.c cl = &ddata->mb[i].client; ddata 330 drivers/remoteproc/stm32_rproc.c ddata->mb[i].chan = mbox_request_channel_byname(cl, name); ddata 331 drivers/remoteproc/stm32_rproc.c if (IS_ERR(ddata->mb[i].chan)) { ddata 333 drivers/remoteproc/stm32_rproc.c ddata->mb[i].chan = NULL; ddata 340 drivers/remoteproc/stm32_rproc.c struct stm32_rproc *ddata = rproc->priv; ddata 341 drivers/remoteproc/stm32_rproc.c struct stm32_syscon hold_boot = ddata->hold_boot; ddata 347 drivers/remoteproc/stm32_rproc.c if (IS_ENABLED(CONFIG_HAVE_ARM_SMCCC) && ddata->secured_soc) { ddata 386 drivers/remoteproc/stm32_rproc.c struct stm32_rproc *ddata = rproc->priv; ddata 392 drivers/remoteproc/stm32_rproc.c if (ddata->pdds.map) { ddata 393 drivers/remoteproc/stm32_rproc.c err = regmap_update_bits(ddata->pdds.map, ddata->pdds.reg, ddata 394 drivers/remoteproc/stm32_rproc.c ddata->pdds.mask, 0); ddata 410 drivers/remoteproc/stm32_rproc.c struct stm32_rproc *ddata = rproc->priv; ddata 416 drivers/remoteproc/stm32_rproc.c if (idx >= 0 && ddata->mb[idx].chan) { ddata 418 drivers/remoteproc/stm32_rproc.c err = mbox_send_message(ddata->mb[idx].chan, ddata 429 drivers/remoteproc/stm32_rproc.c err = reset_control_assert(ddata->rst); ddata 436 drivers/remoteproc/stm32_rproc.c if (ddata->pdds.map) { ddata 437 drivers/remoteproc/stm32_rproc.c err = regmap_update_bits(ddata->pdds.map, ddata->pdds.reg, ddata 438 drivers/remoteproc/stm32_rproc.c ddata->pdds.mask, 1); ddata 450 drivers/remoteproc/stm32_rproc.c struct stm32_rproc *ddata = rproc->priv; ddata 458 drivers/remoteproc/stm32_rproc.c if (vqid != ddata->mb[i].vq_id) ddata 460 drivers/remoteproc/stm32_rproc.c if (!ddata->mb[i].chan) ddata 462 drivers/remoteproc/stm32_rproc.c err = mbox_send_message(ddata->mb[i].chan, (void *)(long)vqid); ddata 465 drivers/remoteproc/stm32_rproc.c __func__, ddata->mb[i].name, err); ddata 514 drivers/remoteproc/stm32_rproc.c struct stm32_rproc *ddata = rproc->priv; ddata 534 drivers/remoteproc/stm32_rproc.c ddata->rst = devm_reset_control_get_by_index(dev, 0); ddata 535 drivers/remoteproc/stm32_rproc.c if (IS_ERR(ddata->rst)) { ddata 537 drivers/remoteproc/stm32_rproc.c return PTR_ERR(ddata->rst); ddata 556 drivers/remoteproc/stm32_rproc.c ddata->secured_soc = tzen & tz.mask; ddata 559 drivers/remoteproc/stm32_rproc.c &ddata->hold_boot); ddata 565 drivers/remoteproc/stm32_rproc.c err = stm32_rproc_get_syscon(np, "st,syscfg-pdds", &ddata->pdds); ddata 577 drivers/remoteproc/stm32_rproc.c struct stm32_rproc *ddata; ddata 586 drivers/remoteproc/stm32_rproc.c rproc = rproc_alloc(dev, np->name, &st_rproc_ops, NULL, sizeof(*ddata)); ddata 591 drivers/remoteproc/stm32_rproc.c ddata = rproc->priv; ddata 32 drivers/siox/siox-bus-gpio.c struct siox_gpio_ddata *ddata = siox_master_get_devdata(smaster); ddata 37 drivers/siox/siox-bus-gpio.c gpiod_set_value_cansleep(ddata->dout, 0); ddata 38 drivers/siox/siox-bus-gpio.c gpiod_set_value_cansleep(ddata->dclk, 0); ddata 40 drivers/siox/siox-bus-gpio.c gpiod_set_value_cansleep(ddata->dld, 1); ddata 42 drivers/siox/siox-bus-gpio.c gpiod_set_value_cansleep(ddata->dld, 0); ddata 53 drivers/siox/siox-bus-gpio.c if (gpiod_get_value_cansleep(ddata->din)) ddata 57 drivers/siox/siox-bus-gpio.c gpiod_set_value_cansleep(ddata->dout, !(set & 0x80)); ddata 60 drivers/siox/siox-bus-gpio.c gpiod_set_value_cansleep(ddata->dclk, 1); ddata 62 drivers/siox/siox-bus-gpio.c gpiod_set_value_cansleep(ddata->dclk, 0); ddata 71 drivers/siox/siox-bus-gpio.c gpiod_set_value_cansleep(ddata->dld, 1); ddata 73 drivers/siox/siox-bus-gpio.c gpiod_set_value_cansleep(ddata->dld, 0); ddata 82 drivers/siox/siox-bus-gpio.c gpiod_set_value_cansleep(ddata->dout, 0); ddata 90 drivers/siox/siox-bus-gpio.c struct siox_gpio_ddata *ddata; ddata 94 drivers/siox/siox-bus-gpio.c smaster = siox_master_alloc(&pdev->dev, sizeof(*ddata)); ddata 101 drivers/siox/siox-bus-gpio.c ddata = siox_master_get_devdata(smaster); ddata 103 drivers/siox/siox-bus-gpio.c ddata->din = devm_gpiod_get(dev, "din", GPIOD_IN); ddata 104 drivers/siox/siox-bus-gpio.c if (IS_ERR(ddata->din)) { ddata 105 drivers/siox/siox-bus-gpio.c ret = PTR_ERR(ddata->din); ddata 110 drivers/siox/siox-bus-gpio.c ddata->dout = devm_gpiod_get(dev, "dout", GPIOD_OUT_LOW); ddata 111 drivers/siox/siox-bus-gpio.c if (IS_ERR(ddata->dout)) { ddata 112 drivers/siox/siox-bus-gpio.c ret = PTR_ERR(ddata->dout); ddata 117 drivers/siox/siox-bus-gpio.c ddata->dclk = devm_gpiod_get(dev, "dclk", GPIOD_OUT_LOW); ddata 118 drivers/siox/siox-bus-gpio.c if (IS_ERR(ddata->dclk)) { ddata 119 drivers/siox/siox-bus-gpio.c ret = PTR_ERR(ddata->dclk); ddata 124 drivers/siox/siox-bus-gpio.c ddata->dld = devm_gpiod_get(dev, "dld", GPIOD_OUT_LOW); ddata 125 drivers/siox/siox-bus-gpio.c if (IS_ERR(ddata->dld)) { ddata 126 drivers/siox/siox-bus-gpio.c ret = PTR_ERR(ddata->dld); ddata 90 drivers/spi/spi-efm32.c #define ddata_to_dev(ddata) (&(ddata->bitbang.master->dev)) ddata 91 drivers/spi/spi-efm32.c #define efm32_spi_vdbg(ddata, format, arg...) \ ddata 92 drivers/spi/spi-efm32.c dev_vdbg(ddata_to_dev(ddata), format, ##arg) ddata 94 drivers/spi/spi-efm32.c static void efm32_spi_write32(struct efm32_spi_ddata *ddata, ddata 97 drivers/spi/spi-efm32.c writel_relaxed(value, ddata->base + offset); ddata 100 drivers/spi/spi-efm32.c static u32 efm32_spi_read32(struct efm32_spi_ddata *ddata, unsigned offset) ddata 102 drivers/spi/spi-efm32.c return readl_relaxed(ddata->base + offset); ddata 107 drivers/spi/spi-efm32.c struct efm32_spi_ddata *ddata = spi_master_get_devdata(spi->master); ddata 110 drivers/spi/spi-efm32.c gpio_set_value(ddata->csgpio[spi->chip_select], value); ddata 116 drivers/spi/spi-efm32.c struct efm32_spi_ddata *ddata = spi_master_get_devdata(spi->master); ddata 120 drivers/spi/spi-efm32.c unsigned long clkfreq = clk_get_rate(ddata->clk); ddata 123 drivers/spi/spi-efm32.c efm32_spi_write32(ddata, REG_CTRL_SYNC | REG_CTRL_MSBF | ddata 127 drivers/spi/spi-efm32.c efm32_spi_write32(ddata, ddata 138 drivers/spi/spi-efm32.c efm32_spi_write32(ddata, clkdiv, REG_CLKDIV); ddata 139 drivers/spi/spi-efm32.c efm32_spi_write32(ddata, REG_CMD_MASTEREN, REG_CMD); ddata 140 drivers/spi/spi-efm32.c efm32_spi_write32(ddata, REG_CMD_RXEN | REG_CMD_TXEN, REG_CMD); ddata 145 drivers/spi/spi-efm32.c static void efm32_spi_tx_u8(struct efm32_spi_ddata *ddata) ddata 149 drivers/spi/spi-efm32.c if (ddata->tx_buf) { ddata 150 drivers/spi/spi-efm32.c val = *ddata->tx_buf; ddata 151 drivers/spi/spi-efm32.c ddata->tx_buf++; ddata 154 drivers/spi/spi-efm32.c ddata->tx_len--; ddata 155 drivers/spi/spi-efm32.c efm32_spi_write32(ddata, val, REG_TXDATA); ddata 156 drivers/spi/spi-efm32.c efm32_spi_vdbg(ddata, "%s: tx 0x%x\n", __func__, val); ddata 159 drivers/spi/spi-efm32.c static void efm32_spi_rx_u8(struct efm32_spi_ddata *ddata) ddata 161 drivers/spi/spi-efm32.c u32 rxdata = efm32_spi_read32(ddata, REG_RXDATAX); ddata 162 drivers/spi/spi-efm32.c efm32_spi_vdbg(ddata, "%s: rx 0x%x\n", __func__, rxdata); ddata 164 drivers/spi/spi-efm32.c if (ddata->rx_buf) { ddata 165 drivers/spi/spi-efm32.c *ddata->rx_buf = rxdata; ddata 166 drivers/spi/spi-efm32.c ddata->rx_buf++; ddata 169 drivers/spi/spi-efm32.c ddata->rx_len--; ddata 172 drivers/spi/spi-efm32.c static void efm32_spi_filltx(struct efm32_spi_ddata *ddata) ddata 174 drivers/spi/spi-efm32.c while (ddata->tx_len && ddata 175 drivers/spi/spi-efm32.c ddata->tx_len + 2 > ddata->rx_len && ddata 176 drivers/spi/spi-efm32.c efm32_spi_read32(ddata, REG_STATUS) & REG_STATUS_TXBL) { ddata 177 drivers/spi/spi-efm32.c efm32_spi_tx_u8(ddata); ddata 183 drivers/spi/spi-efm32.c struct efm32_spi_ddata *ddata = spi_master_get_devdata(spi->master); ddata 186 drivers/spi/spi-efm32.c spin_lock_irq(&ddata->lock); ddata 188 drivers/spi/spi-efm32.c if (ddata->tx_buf || ddata->rx_buf) ddata 191 drivers/spi/spi-efm32.c ddata->tx_buf = t->tx_buf; ddata 192 drivers/spi/spi-efm32.c ddata->rx_buf = t->rx_buf; ddata 193 drivers/spi/spi-efm32.c ddata->tx_len = ddata->rx_len = ddata 196 drivers/spi/spi-efm32.c efm32_spi_filltx(ddata); ddata 198 drivers/spi/spi-efm32.c reinit_completion(&ddata->done); ddata 200 drivers/spi/spi-efm32.c efm32_spi_write32(ddata, REG_IF_TXBL | REG_IF_RXDATAV, REG_IEN); ddata 202 drivers/spi/spi-efm32.c spin_unlock_irq(&ddata->lock); ddata 204 drivers/spi/spi-efm32.c wait_for_completion(&ddata->done); ddata 206 drivers/spi/spi-efm32.c spin_lock_irq(&ddata->lock); ddata 208 drivers/spi/spi-efm32.c ret = t->len - max(ddata->tx_len, ddata->rx_len); ddata 210 drivers/spi/spi-efm32.c efm32_spi_write32(ddata, 0, REG_IEN); ddata 211 drivers/spi/spi-efm32.c ddata->tx_buf = ddata->rx_buf = NULL; ddata 214 drivers/spi/spi-efm32.c spin_unlock_irq(&ddata->lock); ddata 221 drivers/spi/spi-efm32.c struct efm32_spi_ddata *ddata = data; ddata 224 drivers/spi/spi-efm32.c spin_lock(&ddata->lock); ddata 226 drivers/spi/spi-efm32.c while (ddata->rx_len > 0 && ddata 227 drivers/spi/spi-efm32.c efm32_spi_read32(ddata, REG_STATUS) & ddata 229 drivers/spi/spi-efm32.c efm32_spi_rx_u8(ddata); ddata 234 drivers/spi/spi-efm32.c if (!ddata->rx_len) { ddata 235 drivers/spi/spi-efm32.c u32 ien = efm32_spi_read32(ddata, REG_IEN); ddata 239 drivers/spi/spi-efm32.c efm32_spi_write32(ddata, ien, REG_IEN); ddata 241 drivers/spi/spi-efm32.c complete(&ddata->done); ddata 244 drivers/spi/spi-efm32.c spin_unlock(&ddata->lock); ddata 251 drivers/spi/spi-efm32.c struct efm32_spi_ddata *ddata = data; ddata 253 drivers/spi/spi-efm32.c efm32_spi_vdbg(ddata, ddata 255 drivers/spi/spi-efm32.c __func__, ddata->tx_len, ddata->rx_len, ddata 256 drivers/spi/spi-efm32.c efm32_spi_read32(ddata, REG_IF), ddata 257 drivers/spi/spi-efm32.c efm32_spi_read32(ddata, REG_STATUS)); ddata 259 drivers/spi/spi-efm32.c spin_lock(&ddata->lock); ddata 261 drivers/spi/spi-efm32.c efm32_spi_filltx(ddata); ddata 263 drivers/spi/spi-efm32.c efm32_spi_vdbg(ddata, "%s: txlen = %u, rxlen = %u\n", ddata 264 drivers/spi/spi-efm32.c __func__, ddata->tx_len, ddata->rx_len); ddata 266 drivers/spi/spi-efm32.c if (!ddata->tx_len) { ddata 267 drivers/spi/spi-efm32.c u32 ien = efm32_spi_read32(ddata, REG_IEN); ddata 271 drivers/spi/spi-efm32.c efm32_spi_write32(ddata, ien, REG_IEN); ddata 272 drivers/spi/spi-efm32.c efm32_spi_vdbg(ddata, "disable TXBL\n"); ddata 275 drivers/spi/spi-efm32.c spin_unlock(&ddata->lock); ddata 280 drivers/spi/spi-efm32.c static u32 efm32_spi_get_configured_location(struct efm32_spi_ddata *ddata) ddata 282 drivers/spi/spi-efm32.c u32 reg = efm32_spi_read32(ddata, REG_ROUTE); ddata 288 drivers/spi/spi-efm32.c struct spi_master *master, struct efm32_spi_ddata *ddata) ddata 308 drivers/spi/spi-efm32.c location = efm32_spi_get_configured_location(ddata); ddata 313 drivers/spi/spi-efm32.c ddata->pdata.location = location; ddata 318 drivers/spi/spi-efm32.c struct efm32_spi_ddata *ddata; ddata 333 drivers/spi/spi-efm32.c sizeof(*ddata) + num_cs * sizeof(unsigned)); ddata 347 drivers/spi/spi-efm32.c ddata = spi_master_get_devdata(master); ddata 349 drivers/spi/spi-efm32.c ddata->bitbang.master = master; ddata 350 drivers/spi/spi-efm32.c ddata->bitbang.chipselect = efm32_spi_chipselect; ddata 351 drivers/spi/spi-efm32.c ddata->bitbang.setup_transfer = efm32_spi_setup_transfer; ddata 352 drivers/spi/spi-efm32.c ddata->bitbang.txrx_bufs = efm32_spi_txrx_bufs; ddata 354 drivers/spi/spi-efm32.c spin_lock_init(&ddata->lock); ddata 355 drivers/spi/spi-efm32.c init_completion(&ddata->done); ddata 357 drivers/spi/spi-efm32.c ddata->clk = devm_clk_get(&pdev->dev, NULL); ddata 358 drivers/spi/spi-efm32.c if (IS_ERR(ddata->clk)) { ddata 359 drivers/spi/spi-efm32.c ret = PTR_ERR(ddata->clk); ddata 371 drivers/spi/spi-efm32.c ddata->csgpio[i] = ret; ddata 372 drivers/spi/spi-efm32.c dev_dbg(&pdev->dev, "csgpio#%u = %u\n", i, ddata->csgpio[i]); ddata 373 drivers/spi/spi-efm32.c ret = devm_gpio_request_one(&pdev->dev, ddata->csgpio[i], ddata 396 drivers/spi/spi-efm32.c ddata->base = devm_ioremap_resource(&pdev->dev, res); ddata 397 drivers/spi/spi-efm32.c if (IS_ERR(ddata->base)) { ddata 398 drivers/spi/spi-efm32.c ret = PTR_ERR(ddata->base); ddata 406 drivers/spi/spi-efm32.c ddata->rxirq = ret; ddata 410 drivers/spi/spi-efm32.c ret = ddata->rxirq + 1; ddata 412 drivers/spi/spi-efm32.c ddata->txirq = ret; ddata 414 drivers/spi/spi-efm32.c ret = clk_prepare_enable(ddata->clk); ddata 420 drivers/spi/spi-efm32.c efm32_spi_probe_dt(pdev, master, ddata); ddata 422 drivers/spi/spi-efm32.c efm32_spi_write32(ddata, 0, REG_IEN); ddata 423 drivers/spi/spi-efm32.c efm32_spi_write32(ddata, REG_ROUTE_TXPEN | REG_ROUTE_RXPEN | ddata 425 drivers/spi/spi-efm32.c REG_ROUTE_LOCATION(ddata->pdata.location), REG_ROUTE); ddata 427 drivers/spi/spi-efm32.c ret = request_irq(ddata->rxirq, efm32_spi_rxirq, ddata 428 drivers/spi/spi-efm32.c 0, DRIVER_NAME " rx", ddata); ddata 434 drivers/spi/spi-efm32.c ret = request_irq(ddata->txirq, efm32_spi_txirq, ddata 435 drivers/spi/spi-efm32.c 0, DRIVER_NAME " tx", ddata); ddata 441 drivers/spi/spi-efm32.c ret = spi_bitbang_start(&ddata->bitbang); ddata 445 drivers/spi/spi-efm32.c free_irq(ddata->txirq, ddata); ddata 447 drivers/spi/spi-efm32.c free_irq(ddata->rxirq, ddata); ddata 449 drivers/spi/spi-efm32.c clk_disable_unprepare(ddata->clk); ddata 460 drivers/spi/spi-efm32.c struct efm32_spi_ddata *ddata = spi_master_get_devdata(master); ddata 462 drivers/spi/spi-efm32.c spi_bitbang_stop(&ddata->bitbang); ddata 464 drivers/spi/spi-efm32.c efm32_spi_write32(ddata, 0, REG_IEN); ddata 466 drivers/spi/spi-efm32.c free_irq(ddata->txirq, ddata); ddata 467 drivers/spi/spi-efm32.c free_irq(ddata->rxirq, ddata); ddata 468 drivers/spi/spi-efm32.c clk_disable_unprepare(ddata->clk); ddata 213 drivers/staging/unisys/visorhba/visorhba_main.c static struct uiscmdrsp *get_scsipending_cmdrsp(struct visorhba_devdata *ddata, ddata 216 drivers/staging/unisys/visorhba/visorhba_main.c if (ddata->pending[ent].sent) ddata 217 drivers/staging/unisys/visorhba/visorhba_main.c return &ddata->pending[ent].cmdrsp; ddata 48 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 49 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct omap_dss_device *in = ddata->in; ddata 52 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c dev_dbg(ddata->dev, "connect\n"); ddata 66 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 67 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct omap_dss_device *in = ddata->in; ddata 69 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c dev_dbg(ddata->dev, "disconnect\n"); ddata 79 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 80 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct omap_dss_device *in = ddata->in; ddata 83 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c dev_dbg(ddata->dev, "enable\n"); ddata 91 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c in->ops.atv->set_timings(in, &ddata->timings); ddata 93 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c if (!ddata->dev->of_node) { ddata 97 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c ddata->invert_polarity); ddata 111 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 112 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct omap_dss_device *in = ddata->in; ddata 114 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c dev_dbg(ddata->dev, "disable\n"); ddata 127 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 128 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct omap_dss_device *in = ddata->in; ddata 130 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c ddata->timings = *timings; ddata 139 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 141 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c *timings = ddata->timings; ddata 147 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 148 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct omap_dss_device *in = ddata->in; ddata 155 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 156 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct omap_dss_device *in = ddata->in; ddata 163 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 164 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct omap_dss_device *in = ddata->in; ddata 188 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 200 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c ddata->in = in; ddata 202 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c ddata->invert_polarity = pdata->invert_polarity; ddata 204 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c dssdev = &ddata->dssdev; ddata 212 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 222 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c ddata->in = in; ddata 229 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct panel_drv_data *ddata; ddata 233 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 234 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c if (!ddata) ddata 237 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c platform_set_drvdata(pdev, ddata); ddata 238 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c ddata->dev = &pdev->dev; ddata 252 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c ddata->timings = tvc_pal_timings; ddata 254 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c dssdev = &ddata->dssdev; ddata 269 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c omap_dss_put_device(ddata->in); ddata 275 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 276 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 277 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c struct omap_dss_device *in = ddata->in; ddata 279 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c omapdss_unregister_display(&ddata->dssdev); ddata 52 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 53 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct omap_dss_device *in = ddata->in; ddata 68 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 69 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct omap_dss_device *in = ddata->in; ddata 79 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 80 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct omap_dss_device *in = ddata->in; ddata 89 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c in->ops.dvi->set_timings(in, &ddata->timings); ddata 102 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 103 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct omap_dss_device *in = ddata->in; ddata 116 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 117 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct omap_dss_device *in = ddata->in; ddata 119 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c ddata->timings = *timings; ddata 128 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 130 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c *timings = ddata->timings; ddata 136 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 137 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct omap_dss_device *in = ddata->in; ddata 176 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 179 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c if (!ddata->i2c_adapter) ddata 183 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c r = dvic_ddc_read(ddata->i2c_adapter, edid, l, 0); ddata 193 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c r = dvic_ddc_read(ddata->i2c_adapter, edid + EDID_LENGTH, ddata 206 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 210 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c if (!ddata->i2c_adapter) ddata 213 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c r = dvic_ddc_read(ddata->i2c_adapter, &out, 1, 0); ddata 237 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 249 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c ddata->in = in; ddata 256 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c omap_dss_put_device(ddata->in); ddata 260 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c ddata->i2c_adapter = adapter; ddata 268 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct panel_drv_data *ddata; ddata 275 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 276 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c if (!ddata) ddata 279 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c platform_set_drvdata(pdev, ddata); ddata 285 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c ddata->timings = dvic_default_timings; ddata 287 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c dssdev = &ddata->dssdev; ddata 303 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c omap_dss_put_device(ddata->in); ddata 305 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c i2c_put_adapter(ddata->i2c_adapter); ddata 312 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 313 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 314 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c struct omap_dss_device *in = ddata->in; ddata 316 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c omapdss_unregister_display(&ddata->dssdev); ddata 323 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c i2c_put_adapter(ddata->i2c_adapter); ddata 51 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 52 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct omap_dss_device *in = ddata->in; ddata 55 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c dev_dbg(ddata->dev, "connect\n"); ddata 69 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 70 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct omap_dss_device *in = ddata->in; ddata 72 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c dev_dbg(ddata->dev, "disconnect\n"); ddata 82 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 83 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct omap_dss_device *in = ddata->in; ddata 86 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c dev_dbg(ddata->dev, "enable\n"); ddata 94 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c in->ops.hdmi->set_timings(in, &ddata->timings); ddata 107 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 108 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct omap_dss_device *in = ddata->in; ddata 110 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c dev_dbg(ddata->dev, "disable\n"); ddata 123 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 124 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct omap_dss_device *in = ddata->in; ddata 126 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c ddata->timings = *timings; ddata 135 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 137 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c *timings = ddata->timings; ddata 143 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 144 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct omap_dss_device *in = ddata->in; ddata 152 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 153 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct omap_dss_device *in = ddata->in; ddata 160 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 161 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct omap_dss_device *in = ddata->in; ddata 163 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c if (gpio_is_valid(ddata->hpd_gpio)) ddata 164 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c return gpio_get_value_cansleep(ddata->hpd_gpio); ddata 171 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 172 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct omap_dss_device *in = ddata->in; ddata 180 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 181 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct omap_dss_device *in = ddata->in; ddata 207 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 215 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c ddata->hpd_gpio = gpio; ddata 217 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c ddata->hpd_gpio = -ENODEV; ddata 225 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c ddata->in = in; ddata 232 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct panel_drv_data *ddata; ddata 239 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 240 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c if (!ddata) ddata 243 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c platform_set_drvdata(pdev, ddata); ddata 244 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c ddata->dev = &pdev->dev; ddata 250 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c if (gpio_is_valid(ddata->hpd_gpio)) { ddata 251 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c r = devm_gpio_request_one(&pdev->dev, ddata->hpd_gpio, ddata 257 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c ddata->timings = hdmic_default_timings; ddata 259 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c dssdev = &ddata->dssdev; ddata 274 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c omap_dss_put_device(ddata->in); ddata 280 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 281 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 282 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c struct omap_dss_device *in = ddata->in; ddata 284 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c omapdss_unregister_display(&ddata->dssdev); ddata 36 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 37 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct omap_dss_device *in = ddata->in; ddata 58 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 59 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct omap_dss_device *in = ddata->in; ddata 74 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c in->ops.atv->disconnect(in, &ddata->dssdev); ddata 79 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 80 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct omap_dss_device *in = ddata->in; ddata 91 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c in->ops.atv->set_timings(in, &ddata->timings); ddata 97 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c if (ddata->enable_gpio) ddata 98 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c gpiod_set_value_cansleep(ddata->enable_gpio, 1); ddata 107 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 108 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct omap_dss_device *in = ddata->in; ddata 115 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c if (ddata->enable_gpio) ddata 116 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c gpiod_set_value_cansleep(ddata->enable_gpio, 0); ddata 126 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 127 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct omap_dss_device *in = ddata->in; ddata 131 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c ddata->timings = *timings; ddata 140 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 144 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c *timings = ddata->timings; ddata 150 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 151 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct omap_dss_device *in = ddata->in; ddata 183 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct panel_drv_data *ddata; ddata 195 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 196 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c if (!ddata) ddata 199 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c platform_set_drvdata(pdev, ddata); ddata 205 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c ddata->enable_gpio = gpio; ddata 213 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c ddata->in = in; ddata 215 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c dssdev = &ddata->dssdev; ddata 230 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c omap_dss_put_device(ddata->in); ddata 236 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 237 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 238 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c struct omap_dss_device *in = ddata->in; ddata 240 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c omapdss_unregister_output(&ddata->dssdev); ddata 32 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 33 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct omap_dss_device *in = ddata->in; ddata 52 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 53 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct omap_dss_device *in = ddata->in; ddata 66 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c in->ops.dpi->disconnect(in, &ddata->dssdev); ddata 71 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 72 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct omap_dss_device *in = ddata->in; ddata 81 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c in->ops.dpi->set_timings(in, &ddata->timings); ddata 82 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c if (ddata->data_lines) ddata 83 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c in->ops.dpi->set_data_lines(in, ddata->data_lines); ddata 89 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c if (gpio_is_valid(ddata->pd_gpio)) ddata 90 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c gpio_set_value_cansleep(ddata->pd_gpio, 1); ddata 99 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 100 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct omap_dss_device *in = ddata->in; ddata 105 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c if (gpio_is_valid(ddata->pd_gpio)) ddata 106 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c gpio_set_value_cansleep(ddata->pd_gpio, 0); ddata 123 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 124 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct omap_dss_device *in = ddata->in; ddata 128 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c ddata->timings = *timings; ddata 137 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 139 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c *timings = ddata->timings; ddata 145 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 146 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct omap_dss_device *in = ddata->in; ddata 167 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 175 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c ddata->pd_gpio = gpio; ddata 187 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c ddata->in = in; ddata 194 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct panel_drv_data *ddata; ddata 201 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 202 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c if (!ddata) ddata 205 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c platform_set_drvdata(pdev, ddata); ddata 211 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c if (gpio_is_valid(ddata->pd_gpio)) { ddata 212 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c r = devm_gpio_request_one(&pdev->dev, ddata->pd_gpio, ddata 216 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c ddata->pd_gpio); ddata 221 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c dssdev = &ddata->dssdev; ddata 227 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c dssdev->phy.dpi.data_lines = ddata->data_lines; ddata 239 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c omap_dss_put_device(ddata->in); ddata 245 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 246 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 247 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c struct omap_dss_device *in = ddata->in; ddata 249 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c omapdss_unregister_output(&ddata->dssdev); ddata 35 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 36 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct omap_dss_device *in = ddata->in; ddata 46 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c if (ddata->ct_cp_hpd_gpio) { ddata 47 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c gpiod_set_value_cansleep(ddata->ct_cp_hpd_gpio, 1); ddata 58 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 59 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct omap_dss_device *in = ddata->in; ddata 66 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c gpiod_set_value_cansleep(ddata->ct_cp_hpd_gpio, 0); ddata 71 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c in->ops.hdmi->disconnect(in, &ddata->dssdev); ddata 76 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 77 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct omap_dss_device *in = ddata->in; ddata 83 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c in->ops.hdmi->set_timings(in, &ddata->timings); ddata 96 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 97 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct omap_dss_device *in = ddata->in; ddata 110 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 111 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct omap_dss_device *in = ddata->in; ddata 113 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c ddata->timings = *timings; ddata 122 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 124 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c *timings = ddata->timings; ddata 130 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 131 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct omap_dss_device *in = ddata->in; ddata 142 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 143 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct omap_dss_device *in = ddata->in; ddata 146 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c if (!gpiod_get_value_cansleep(ddata->hpd_gpio)) ddata 149 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c gpiod_set_value_cansleep(ddata->ls_oe_gpio, 1); ddata 153 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c gpiod_set_value_cansleep(ddata->ls_oe_gpio, 0); ddata 160 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 162 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c return gpiod_get_value_cansleep(ddata->hpd_gpio); ddata 168 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 169 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct omap_dss_device *in = ddata->in; ddata 177 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 178 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct omap_dss_device *in = ddata->in; ddata 202 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 212 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c ddata->in = in; ddata 220 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct panel_drv_data *ddata; ddata 224 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 225 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c if (!ddata) ddata 228 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c platform_set_drvdata(pdev, ddata); ddata 245 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c ddata->ct_cp_hpd_gpio = gpio; ddata 254 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c ddata->ls_oe_gpio = gpio; ddata 263 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c ddata->hpd_gpio = gpio; ddata 265 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c dssdev = &ddata->dssdev; ddata 282 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c omap_dss_put_device(ddata->in); ddata 288 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 289 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 290 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c struct omap_dss_device *in = ddata->in; ddata 292 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c omapdss_unregister_output(&ddata->dssdev); ddata 38 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 39 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct omap_dss_device *in = ddata->in; ddata 54 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 55 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct omap_dss_device *in = ddata->in; ddata 65 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 66 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct omap_dss_device *in = ddata->in; ddata 75 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c if (ddata->data_lines) ddata 76 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c in->ops.dpi->set_data_lines(in, ddata->data_lines); ddata 77 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c in->ops.dpi->set_timings(in, &ddata->videomode); ddata 83 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c gpiod_set_value_cansleep(ddata->enable_gpio, 1); ddata 85 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c if (gpio_is_valid(ddata->backlight_gpio)) ddata 86 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c gpio_set_value_cansleep(ddata->backlight_gpio, 1); ddata 95 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 96 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct omap_dss_device *in = ddata->in; ddata 101 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c if (gpio_is_valid(ddata->backlight_gpio)) ddata 102 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c gpio_set_value_cansleep(ddata->backlight_gpio, 0); ddata 104 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c gpiod_set_value_cansleep(ddata->enable_gpio, 0); ddata 114 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 115 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct omap_dss_device *in = ddata->in; ddata 117 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c ddata->videomode = *timings; ddata 126 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 128 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c *timings = ddata->videomode; ddata 134 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 135 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct omap_dss_device *in = ddata->in; ddata 157 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 171 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c ddata->in = in; ddata 173 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c ddata->data_lines = pdata->data_lines; ddata 176 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c videomode_to_omap_video_timings(&vm, &ddata->videomode); ddata 178 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c dssdev = &ddata->dssdev; ddata 186 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c ddata->enable_gpio = gpio_to_desc(pdata->enable_gpio); ddata 188 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c ddata->backlight_gpio = pdata->backlight_gpio; ddata 193 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c omap_dss_put_device(ddata->in); ddata 199 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 211 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c ddata->enable_gpio = gpio; ddata 213 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c ddata->backlight_gpio = -ENOENT; ddata 222 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c videomode_to_omap_video_timings(&vm, &ddata->videomode); ddata 230 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c ddata->in = in; ddata 237 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct panel_drv_data *ddata; ddata 241 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 242 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c if (ddata == NULL) ddata 245 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c platform_set_drvdata(pdev, ddata); ddata 259 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c if (gpio_is_valid(ddata->backlight_gpio)) { ddata 260 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c r = devm_gpio_request_one(&pdev->dev, ddata->backlight_gpio, ddata 266 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c dssdev = &ddata->dssdev; ddata 271 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c dssdev->panel.timings = ddata->videomode; ddata 272 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c dssdev->phy.dpi.data_lines = ddata->data_lines; ddata 284 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c omap_dss_put_device(ddata->in); ddata 290 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 291 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 292 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c struct omap_dss_device *in = ddata->in; ddata 84 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static int _dsicm_enable_te(struct panel_drv_data *ddata, bool enable); ddata 86 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static int dsicm_panel_reset(struct panel_drv_data *ddata); ddata 90 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static void hw_guard_start(struct panel_drv_data *ddata, int guard_msec) ddata 92 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->hw_guard_wait = msecs_to_jiffies(guard_msec); ddata 93 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->hw_guard_end = jiffies + ddata->hw_guard_wait; ddata 96 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static void hw_guard_wait(struct panel_drv_data *ddata) ddata 98 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c unsigned long wait = ddata->hw_guard_end - jiffies; ddata 100 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if ((long)wait > 0 && time_before_eq(wait, ddata->hw_guard_wait)) { ddata 106 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static int dsicm_dcs_read_1(struct panel_drv_data *ddata, u8 dcs_cmd, u8 *data) ddata 108 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 112 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = in->ops.dsi->dcs_read(in, ddata->channel, dcs_cmd, buf, 1); ddata 122 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static int dsicm_dcs_write_0(struct panel_drv_data *ddata, u8 dcs_cmd) ddata 124 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 125 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c return in->ops.dsi->dcs_write(in, ddata->channel, &dcs_cmd, 1); ddata 128 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static int dsicm_dcs_write_1(struct panel_drv_data *ddata, u8 dcs_cmd, u8 param) ddata 130 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 133 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c return in->ops.dsi->dcs_write(in, ddata->channel, buf, 2); ddata 136 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static int dsicm_sleep_in(struct panel_drv_data *ddata) ddata 139 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 143 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c hw_guard_wait(ddata); ddata 146 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = in->ops.dsi->dcs_write_nosync(in, ddata->channel, &cmd, 1); ddata 150 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c hw_guard_start(ddata, 120); ddata 157 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static int dsicm_sleep_out(struct panel_drv_data *ddata) ddata 161 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c hw_guard_wait(ddata); ddata 163 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_dcs_write_0(ddata, MIPI_DCS_EXIT_SLEEP_MODE); ddata 167 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c hw_guard_start(ddata, 120); ddata 174 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static int dsicm_get_id(struct panel_drv_data *ddata, u8 *id1, u8 *id2, u8 *id3) ddata 178 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_dcs_read_1(ddata, DCS_GET_ID1, id1); ddata 181 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_dcs_read_1(ddata, DCS_GET_ID2, id2); ddata 184 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_dcs_read_1(ddata, DCS_GET_ID3, id3); ddata 191 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static int dsicm_set_update_window(struct panel_drv_data *ddata, ddata 194 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 208 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = in->ops.dsi->dcs_write_nosync(in, ddata->channel, buf, sizeof(buf)); ddata 218 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = in->ops.dsi->dcs_write_nosync(in, ddata->channel, buf, sizeof(buf)); ddata 222 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c in->ops.dsi->bta_sync(in, ddata->channel); ddata 227 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static void dsicm_queue_ulps_work(struct panel_drv_data *ddata) ddata 229 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (ddata->ulps_timeout > 0) ddata 230 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c schedule_delayed_work(&ddata->ulps_work, ddata 231 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c msecs_to_jiffies(ddata->ulps_timeout)); ddata 234 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static void dsicm_cancel_ulps_work(struct panel_drv_data *ddata) ddata 236 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c cancel_delayed_work(&ddata->ulps_work); ddata 239 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static int dsicm_enter_ulps(struct panel_drv_data *ddata) ddata 241 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 244 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (ddata->ulps_enabled) ddata 247 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_cancel_ulps_work(ddata); ddata 249 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = _dsicm_enable_te(ddata, false); ddata 253 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (gpio_is_valid(ddata->ext_te_gpio)) ddata 254 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c disable_irq(gpio_to_irq(ddata->ext_te_gpio)); ddata 258 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->ulps_enabled = true; ddata 263 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "enter ULPS failed"); ddata 264 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_panel_reset(ddata); ddata 266 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->ulps_enabled = false; ddata 268 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_queue_ulps_work(ddata); ddata 273 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static int dsicm_exit_ulps(struct panel_drv_data *ddata) ddata 275 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 278 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (!ddata->ulps_enabled) ddata 283 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "failed to enable DSI\n"); ddata 287 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c in->ops.dsi->enable_hs(in, ddata->channel, true); ddata 289 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = _dsicm_enable_te(ddata, true); ddata 291 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "failed to re-enable TE"); ddata 295 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (gpio_is_valid(ddata->ext_te_gpio)) ddata 296 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c enable_irq(gpio_to_irq(ddata->ext_te_gpio)); ddata 298 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_queue_ulps_work(ddata); ddata 300 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->ulps_enabled = false; ddata 305 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "failed to exit ULPS"); ddata 307 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_panel_reset(ddata); ddata 309 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (gpio_is_valid(ddata->ext_te_gpio)) ddata 310 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c enable_irq(gpio_to_irq(ddata->ext_te_gpio)); ddata 311 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->ulps_enabled = false; ddata 314 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_queue_ulps_work(ddata); ddata 319 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static int dsicm_wake_up(struct panel_drv_data *ddata) ddata 321 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (ddata->ulps_enabled) ddata 322 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c return dsicm_exit_ulps(ddata); ddata 324 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_cancel_ulps_work(ddata); ddata 325 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_queue_ulps_work(ddata); ddata 331 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = dev_get_drvdata(&dev->dev); ddata 332 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 342 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_dbg(&ddata->pdev->dev, "update brightness to %d\n", level); ddata 344 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 346 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (ddata->enabled) { ddata 349 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 351 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_dcs_write_1(ddata, DCS_BRIGHTNESS, level); ddata 358 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 387 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 388 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 392 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 394 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (ddata->enabled) { ddata 397 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 399 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_dcs_read_1(ddata, DCS_READ_NUM_ERRORS, ddata 407 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 418 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 419 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 423 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 425 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (ddata->enabled) { ddata 428 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 430 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_get_id(ddata, &id1, &id2, &id3); ddata 437 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 449 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 450 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 458 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 460 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (ddata->enabled) { ddata 464 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_enter_ulps(ddata); ddata 466 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 471 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 483 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 486 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 487 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c t = ddata->ulps_enabled; ddata 488 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 497 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 498 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 506 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 507 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->ulps_timeout = t; ddata 509 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (ddata->enabled) { ddata 512 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 516 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 528 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 531 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 532 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c t = ddata->ulps_timeout; ddata 533 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 557 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static void dsicm_hw_reset(struct panel_drv_data *ddata) ddata 559 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (!gpio_is_valid(ddata->reset_gpio)) ddata 562 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c gpio_set_value(ddata->reset_gpio, 1); ddata 565 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c gpio_set_value(ddata->reset_gpio, 0); ddata 568 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c gpio_set_value(ddata->reset_gpio, 1); ddata 573 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static int dsicm_power_on(struct panel_drv_data *ddata) ddata 575 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 581 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c .timings = &ddata->timings, ddata 588 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (ddata->pin_config.num_pins > 0) { ddata 589 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = in->ops.dsi->configure_pins(in, &ddata->pin_config); ddata 591 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, ddata 599 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "failed to configure DSI\n"); ddata 605 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "failed to enable DSI\n"); ddata 609 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_hw_reset(ddata); ddata 611 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c in->ops.dsi->enable_hs(in, ddata->channel, false); ddata 613 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_sleep_out(ddata); ddata 617 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_get_id(ddata, &id1, &id2, &id3); ddata 621 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_dcs_write_1(ddata, DCS_BRIGHTNESS, 0xff); ddata 625 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_dcs_write_1(ddata, DCS_CTRL_DISPLAY, ddata 630 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_dcs_write_1(ddata, MIPI_DCS_SET_PIXEL_FORMAT, ddata 635 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_dcs_write_0(ddata, MIPI_DCS_SET_DISPLAY_ON); ddata 639 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = _dsicm_enable_te(ddata, ddata->te_enabled); ddata 643 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = in->ops.dsi->enable_video_output(in, ddata->channel); ddata 647 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->enabled = 1; ddata 649 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (!ddata->intro_printed) { ddata 650 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_info(&ddata->pdev->dev, "panel revision %02x.%02x.%02x\n", ddata 652 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->intro_printed = true; ddata 655 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c in->ops.dsi->enable_hs(in, ddata->channel, true); ddata 659 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "error while enabling panel, issuing HW reset\n"); ddata 661 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_hw_reset(ddata); ddata 668 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static void dsicm_power_off(struct panel_drv_data *ddata) ddata 670 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 673 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c in->ops.dsi->disable_video_output(in, ddata->channel); ddata 675 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_dcs_write_0(ddata, MIPI_DCS_SET_DISPLAY_OFF); ddata 677 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_sleep_in(ddata); ddata 680 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, ddata 682 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_hw_reset(ddata); ddata 687 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->enabled = 0; ddata 690 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static int dsicm_panel_reset(struct panel_drv_data *ddata) ddata 692 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "performing LCD reset\n"); ddata 694 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_power_off(ddata); ddata 695 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_hw_reset(ddata); ddata 696 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c return dsicm_power_on(ddata); ddata 701 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 702 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 703 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct device *dev = &ddata->pdev->dev; ddata 715 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = in->ops.dsi->request_vc(ddata->in, &ddata->channel); ddata 721 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = in->ops.dsi->set_vc_id(ddata->in, ddata->channel, TCH); ddata 730 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c in->ops.dsi->release_vc(ddata->in, ddata->channel); ddata 738 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 739 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 744 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c in->ops.dsi->release_vc(in, ddata->channel); ddata 750 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 751 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 754 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_dbg(&ddata->pdev->dev, "enable\n"); ddata 756 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 770 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_power_on(ddata); ddata 779 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 783 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_dbg(&ddata->pdev->dev, "enable failed\n"); ddata 784 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 790 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 791 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 794 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_dbg(&ddata->pdev->dev, "disable\n"); ddata 796 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 798 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_cancel_ulps_work(ddata); ddata 803 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 805 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_power_off(ddata); ddata 812 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 817 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = data; ddata 818 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 820 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_dbg(&ddata->pdev->dev, "framedone, err %d\n", err); ddata 821 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c in->ops.dsi->bus_unlock(ddata->in); ddata 826 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = data; ddata 827 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 831 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c old = atomic_cmpxchg(&ddata->do_update, 1, 0); ddata 834 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c cancel_delayed_work(&ddata->te_timeout_work); ddata 836 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = in->ops.dsi->update(in, ddata->channel, dsicm_framedone_cb, ddata 837 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata); ddata 844 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "start update failed\n"); ddata 851 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = container_of(work, struct panel_drv_data, ddata 853 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 855 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "TE not received for 250ms!\n"); ddata 857 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c atomic_set(&ddata->do_update, 0); ddata 864 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 865 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 868 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_dbg(&ddata->pdev->dev, "update %d, %d, %d x %d\n", x, y, w, h); ddata 870 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 873 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 877 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (!ddata->enabled) { ddata 883 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_set_update_window(ddata, 0, 0, ddata 889 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (ddata->te_enabled && gpio_is_valid(ddata->ext_te_gpio)) { ddata 890 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c schedule_delayed_work(&ddata->te_timeout_work, ddata 892 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c atomic_set(&ddata->do_update, 1); ddata 894 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = in->ops.dsi->update(in, ddata->channel, dsicm_framedone_cb, ddata 895 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata); ddata 901 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 905 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 911 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 912 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 914 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_dbg(&ddata->pdev->dev, "sync\n"); ddata 916 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 919 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 921 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_dbg(&ddata->pdev->dev, "sync done\n"); ddata 926 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c static int _dsicm_enable_te(struct panel_drv_data *ddata, bool enable) ddata 928 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 932 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_dcs_write_1(ddata, MIPI_DCS_SET_TEAR_ON, 0); ddata 934 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_dcs_write_0(ddata, MIPI_DCS_SET_TEAR_OFF); ddata 936 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (!gpio_is_valid(ddata->ext_te_gpio)) ddata 947 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 948 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 951 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 953 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (ddata->te_enabled == enable) ddata 958 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (ddata->enabled) { ddata 959 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 963 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = _dsicm_enable_te(ddata, enable); ddata 968 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->te_enabled = enable; ddata 972 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 977 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 984 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 987 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 988 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = ddata->te_enabled; ddata 989 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 998 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 999 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 1008 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 1010 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (!ddata->enabled) { ddata 1021 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = dsicm_wake_up(ddata); ddata 1033 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_set_update_window(ddata, x, y, w, h); ddata 1035 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = in->ops.dsi->set_max_rx_packet_size(in, ddata->channel, plen); ddata 1043 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = in->ops.dsi->dcs_read(in, ddata->channel, dcs_cmd, ddata 1054 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "short read\n"); ddata 1059 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev_err(&ddata->pdev->dev, "signal pending, " ddata 1069 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c in->ops.dsi->set_max_rx_packet_size(in, ddata->channel, 1); ddata 1073 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 1079 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = container_of(work, struct panel_drv_data, ddata 1081 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 1082 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *in = ddata->in; ddata 1084 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_lock(&ddata->lock); ddata 1086 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE || !ddata->enabled) { ddata 1087 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 1093 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_enter_ulps(ddata); ddata 1096 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_unlock(&ddata->lock); ddata 1121 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 1130 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->reset_gpio = gpio; ddata 1134 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->ext_te_gpio = gpio; ddata 1146 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->in = in; ddata 1156 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata; ddata 1167 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata = devm_kzalloc(dev, sizeof(*ddata), GFP_KERNEL); ddata 1168 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (!ddata) ddata 1171 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c platform_set_drvdata(pdev, ddata); ddata 1172 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->pdev = pdev; ddata 1178 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->timings.x_res = 864; ddata 1179 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->timings.y_res = 480; ddata 1180 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->timings.pixelclock = 864 * 480 * 60; ddata 1182 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dssdev = &ddata->dssdev; ddata 1185 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dssdev->panel.timings = ddata->timings; ddata 1199 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c mutex_init(&ddata->lock); ddata 1201 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c atomic_set(&ddata->do_update, 0); ddata 1203 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (gpio_is_valid(ddata->reset_gpio)) { ddata 1204 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = devm_gpio_request_one(dev, ddata->reset_gpio, ddata 1212 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (gpio_is_valid(ddata->ext_te_gpio)) { ddata 1213 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = devm_gpio_request_one(dev, ddata->ext_te_gpio, ddata 1220 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c r = devm_request_irq(dev, gpio_to_irq(ddata->ext_te_gpio), ddata 1223 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c "taal vsync", ddata); ddata 1230 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c INIT_DEFERRABLE_WORK(&ddata->te_timeout_work, ddata 1236 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c INIT_DELAYED_WORK(&ddata->ulps_work, dsicm_ulps_work); ddata 1238 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_hw_reset(ddata); ddata 1240 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c if (ddata->use_dsi_backlight) { ddata 1246 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dev, ddata, &dsicm_bl_ops, &props); ddata 1252 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c ddata->bldev = bldev; ddata 1278 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 1279 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 1291 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c bldev = ddata->bldev; ddata 1298 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c omap_dss_put_device(ddata->in); ddata 1300 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_cancel_ulps_work(ddata); ddata 1303 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c dsicm_hw_reset(ddata); ddata 119 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 120 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct omap_dss_device *in = ddata->in; ddata 130 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c init_lb035q02_panel(ddata->spi); ddata 137 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 138 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct omap_dss_device *in = ddata->in; ddata 148 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 149 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct omap_dss_device *in = ddata->in; ddata 158 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c if (ddata->data_lines) ddata 159 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c in->ops.dpi->set_data_lines(in, ddata->data_lines); ddata 160 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c in->ops.dpi->set_timings(in, &ddata->videomode); ddata 166 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c if (ddata->enable_gpio) ddata 167 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c gpiod_set_value_cansleep(ddata->enable_gpio, 1); ddata 169 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c if (gpio_is_valid(ddata->backlight_gpio)) ddata 170 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c gpio_set_value_cansleep(ddata->backlight_gpio, 1); ddata 179 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 180 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct omap_dss_device *in = ddata->in; ddata 185 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c if (ddata->enable_gpio) ddata 186 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c gpiod_set_value_cansleep(ddata->enable_gpio, 0); ddata 188 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c if (gpio_is_valid(ddata->backlight_gpio)) ddata 189 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c gpio_set_value_cansleep(ddata->backlight_gpio, 0); ddata 199 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 200 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct omap_dss_device *in = ddata->in; ddata 202 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c ddata->videomode = *timings; ddata 211 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 213 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c *timings = ddata->videomode; ddata 219 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 220 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct omap_dss_device *in = ddata->in; ddata 242 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct panel_drv_data *ddata = dev_get_drvdata(&spi->dev); ddata 252 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c ddata->enable_gpio = gpio; ddata 254 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c ddata->backlight_gpio = -ENOENT; ddata 262 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c ddata->in = in; ddata 269 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct panel_drv_data *ddata; ddata 276 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c ddata = devm_kzalloc(&spi->dev, sizeof(*ddata), GFP_KERNEL); ddata 277 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c if (ddata == NULL) ddata 280 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c dev_set_drvdata(&spi->dev, ddata); ddata 282 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c ddata->spi = spi; ddata 288 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c if (gpio_is_valid(ddata->backlight_gpio)) { ddata 289 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c r = devm_gpio_request_one(&spi->dev, ddata->backlight_gpio, ddata 295 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c ddata->videomode = lb035q02_timings; ddata 297 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c dssdev = &ddata->dssdev; ddata 302 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c dssdev->panel.timings = ddata->videomode; ddata 303 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c dssdev->phy.dpi.data_lines = ddata->data_lines; ddata 315 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c omap_dss_put_device(ddata->in); ddata 321 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct panel_drv_data *ddata = dev_get_drvdata(&spi->dev); ddata 322 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 323 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct omap_dss_device *in = ddata->in; ddata 118 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 119 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct omap_dss_device *in = ddata->in; ddata 134 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 135 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct omap_dss_device *in = ddata->in; ddata 145 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 146 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct omap_dss_device *in = ddata->in; ddata 155 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c if (ddata->data_lines) ddata 156 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c in->ops.dpi->set_data_lines(in, ddata->data_lines); ddata 157 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c in->ops.dpi->set_timings(in, &ddata->videomode); ddata 163 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c if (gpio_is_valid(ddata->res_gpio)) ddata 164 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c gpio_set_value_cansleep(ddata->res_gpio, 1); ddata 173 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 174 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct omap_dss_device *in = ddata->in; ddata 179 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c if (gpio_is_valid(ddata->res_gpio)) ddata 180 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c gpio_set_value_cansleep(ddata->res_gpio, 0); ddata 190 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 191 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct omap_dss_device *in = ddata->in; ddata 193 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c ddata->videomode = *timings; ddata 202 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 204 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c *timings = ddata->videomode; ddata 210 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 211 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct omap_dss_device *in = ddata->in; ddata 234 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct panel_drv_data *ddata = dev_get_drvdata(&spi->dev); ddata 243 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c ddata->res_gpio = gpio; ddata 246 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c ddata->qvga_gpio = -ENOENT; ddata 254 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c ddata->in = in; ddata 261 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct panel_drv_data *ddata; ddata 281 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c ddata = devm_kzalloc(&spi->dev, sizeof(*ddata), GFP_KERNEL); ddata 282 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c if (ddata == NULL) ddata 285 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c dev_set_drvdata(&spi->dev, ddata); ddata 287 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c ddata->spi = spi; ddata 293 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c if (gpio_is_valid(ddata->qvga_gpio)) { ddata 294 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c r = devm_gpio_request_one(&spi->dev, ddata->qvga_gpio, ddata 300 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c if (gpio_is_valid(ddata->res_gpio)) { ddata 301 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c r = devm_gpio_request_one(&spi->dev, ddata->res_gpio, ddata 307 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c ddata->videomode = nec_8048_panel_timings; ddata 309 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c dssdev = &ddata->dssdev; ddata 314 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c dssdev->panel.timings = ddata->videomode; ddata 326 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c omap_dss_put_device(ddata->in); ddata 332 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct panel_drv_data *ddata = dev_get_drvdata(&spi->dev); ddata 333 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 334 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c struct omap_dss_device *in = ddata->in; ddata 336 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c dev_dbg(&ddata->spi->dev, "%s\n", __func__); ddata 60 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 61 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct omap_dss_device *in = ddata->in; ddata 76 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 77 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct omap_dss_device *in = ddata->in; ddata 87 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 88 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct omap_dss_device *in = ddata->in; ddata 97 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c if (ddata->data_lines) ddata 98 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c in->ops.dpi->set_data_lines(in, ddata->data_lines); ddata 99 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c in->ops.dpi->set_timings(in, &ddata->videomode); ddata 101 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c if (ddata->vcc) { ddata 102 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c r = regulator_enable(ddata->vcc); ddata 109 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c regulator_disable(ddata->vcc); ddata 116 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c if (ddata->resb_gpio) ddata 117 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c gpiod_set_value_cansleep(ddata->resb_gpio, 1); ddata 119 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c if (ddata->ini_gpio) ddata 120 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c gpiod_set_value_cansleep(ddata->ini_gpio, 1); ddata 129 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 130 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct omap_dss_device *in = ddata->in; ddata 135 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c if (ddata->ini_gpio) ddata 136 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c gpiod_set_value_cansleep(ddata->ini_gpio, 0); ddata 138 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c if (ddata->resb_gpio) ddata 139 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c gpiod_set_value_cansleep(ddata->resb_gpio, 0); ddata 147 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c if (ddata->vcc) ddata 148 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c regulator_disable(ddata->vcc); ddata 156 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 157 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct omap_dss_device *in = ddata->in; ddata 159 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c ddata->videomode = *timings; ddata 168 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 170 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c *timings = ddata->videomode; ddata 176 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 177 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct omap_dss_device *in = ddata->in; ddata 213 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 218 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c ddata->vcc = devm_regulator_get(&pdev->dev, "envdd"); ddata 219 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c if (IS_ERR(ddata->vcc)) { ddata 221 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c return PTR_ERR(ddata->vcc); ddata 225 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c r = sharp_ls_get_gpio_of(&pdev->dev, 0, 0, "enable", &ddata->ini_gpio); ddata 230 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c r = sharp_ls_get_gpio_of(&pdev->dev, 0, 0, "reset", &ddata->resb_gpio); ddata 235 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c r = sharp_ls_get_gpio_of(&pdev->dev, 0, 0, "mode", &ddata->mo_gpio); ddata 240 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c r = sharp_ls_get_gpio_of(&pdev->dev, 1, 1, "mode", &ddata->lr_gpio); ddata 245 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c r = sharp_ls_get_gpio_of(&pdev->dev, 2, 1, "mode", &ddata->ud_gpio); ddata 255 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c ddata->in = in; ddata 262 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct panel_drv_data *ddata; ddata 269 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL); ddata 270 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c if (ddata == NULL) ddata 273 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c platform_set_drvdata(pdev, ddata); ddata 279 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c ddata->videomode = sharp_ls_timings; ddata 281 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c dssdev = &ddata->dssdev; ddata 286 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c dssdev->panel.timings = ddata->videomode; ddata 287 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c dssdev->phy.dpi.data_lines = ddata->data_lines; ddata 298 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c omap_dss_put_device(ddata->in); ddata 304 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct panel_drv_data *ddata = platform_get_drvdata(pdev); ddata 305 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 306 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c struct omap_dss_device *in = ddata->in; ddata 105 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static void acx565akm_transfer(struct panel_drv_data *ddata, int cmd, ddata 112 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c BUG_ON(ddata->spi == NULL); ddata 150 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c r = spi_sync(ddata->spi, &m); ddata 152 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c dev_dbg(&ddata->spi->dev, "spi_sync %d\n", r); ddata 155 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static inline void acx565akm_cmd(struct panel_drv_data *ddata, int cmd) ddata 157 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c acx565akm_transfer(ddata, cmd, NULL, 0, NULL, 0); ddata 160 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static inline void acx565akm_write(struct panel_drv_data *ddata, ddata 163 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c acx565akm_transfer(ddata, reg, buf, len, NULL, 0); ddata 166 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static inline void acx565akm_read(struct panel_drv_data *ddata, ddata 169 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c acx565akm_transfer(ddata, reg, NULL, 0, buf, len); ddata 172 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static void hw_guard_start(struct panel_drv_data *ddata, int guard_msec) ddata 174 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->hw_guard_wait = msecs_to_jiffies(guard_msec); ddata 175 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->hw_guard_end = jiffies + ddata->hw_guard_wait; ddata 178 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static void hw_guard_wait(struct panel_drv_data *ddata) ddata 180 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c unsigned long wait = ddata->hw_guard_end - jiffies; ddata 182 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if ((long)wait > 0 && wait <= ddata->hw_guard_wait) { ddata 188 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static void set_sleep_mode(struct panel_drv_data *ddata, int on) ddata 200 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c hw_guard_wait(ddata); ddata 201 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c acx565akm_cmd(ddata, cmd); ddata 202 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c hw_guard_start(ddata, 120); ddata 205 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static void set_display_state(struct panel_drv_data *ddata, int enabled) ddata 209 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c acx565akm_cmd(ddata, cmd); ddata 212 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static int panel_enabled(struct panel_drv_data *ddata) ddata 217 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c acx565akm_read(ddata, MIPID_CMD_READ_DISP_STATUS, ddata 221 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c dev_dbg(&ddata->spi->dev, ddata 227 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static int panel_detect(struct panel_drv_data *ddata) ddata 229 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c acx565akm_read(ddata, MIPID_CMD_READ_DISP_ID, ddata->display_id, 3); ddata 230 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c dev_dbg(&ddata->spi->dev, "MIPI display ID: %02x%02x%02x\n", ddata 231 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->display_id[0], ddata 232 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->display_id[1], ddata 233 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->display_id[2]); ddata 235 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c switch (ddata->display_id[0]) { ddata 237 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->model = MIPID_VER_ACX565AKM; ddata 238 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->name = "acx565akm"; ddata 239 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->has_bc = 1; ddata 240 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->has_cabc = 1; ddata 243 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->model = MIPID_VER_L4F00311; ddata 244 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->name = "l4f00311"; ddata 247 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->model = MIPID_VER_LPH8923; ddata 248 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->name = "lph8923"; ddata 251 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->model = MIPID_VER_LS041Y3; ddata 252 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->name = "ls041y3"; ddata 255 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->name = "unknown"; ddata 256 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c dev_err(&ddata->spi->dev, "invalid display ID\n"); ddata 260 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->revision = ddata->display_id[1]; ddata 262 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c dev_info(&ddata->spi->dev, "omapfb: %s rev %02x LCD detected\n", ddata 263 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->name, ddata->revision); ddata 270 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static void enable_backlight_ctrl(struct panel_drv_data *ddata, int enable) ddata 274 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c acx565akm_read(ddata, MIPID_CMD_READ_CTRL_DISP, (u8 *)&ctrl, 1); ddata 284 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c acx565akm_write(ddata, MIPID_CMD_WRITE_CTRL_DISP, (u8 *)&ctrl, 2); ddata 287 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static void set_cabc_mode(struct panel_drv_data *ddata, unsigned mode) ddata 291 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->cabc_mode = mode; ddata 292 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (!ddata->enabled) ddata 295 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c acx565akm_read(ddata, MIPID_CMD_READ_CABC, (u8 *)&cabc_ctrl, 1); ddata 298 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c acx565akm_write(ddata, MIPID_CMD_WRITE_CABC, (u8 *)&cabc_ctrl, 2); ddata 301 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static unsigned get_cabc_mode(struct panel_drv_data *ddata) ddata 303 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c return ddata->cabc_mode; ddata 306 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static unsigned get_hw_cabc_mode(struct panel_drv_data *ddata) ddata 310 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c acx565akm_read(ddata, MIPID_CMD_READ_CABC, &cabc_ctrl, 1); ddata 314 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static void acx565akm_set_brightness(struct panel_drv_data *ddata, int level) ddata 319 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c acx565akm_write(ddata, MIPID_CMD_WRITE_DISP_BRIGHTNESS, (u8 *)&bv, 2); ddata 322 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c enable_backlight_ctrl(ddata, 1); ddata 324 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c enable_backlight_ctrl(ddata, 0); ddata 327 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static int acx565akm_get_actual_brightness(struct panel_drv_data *ddata) ddata 331 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c acx565akm_read(ddata, MIPID_CMD_READ_DISP_BRIGHTNESS, &bv, 1); ddata 339 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = dev_get_drvdata(&dev->dev); ddata 342 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c dev_dbg(&ddata->spi->dev, "%s\n", __func__); ddata 350 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (ddata->has_bc) ddata 351 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c acx565akm_set_brightness(ddata, level); ddata 360 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = dev_get_drvdata(&dev->dev); ddata 364 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (!ddata->has_bc) ddata 369 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (ddata->has_bc) ddata 370 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c return acx565akm_get_actual_brightness(ddata); ddata 380 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = dev_get_drvdata(&dev->dev); ddata 383 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c mutex_lock(&ddata->mutex); ddata 385 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c mutex_unlock(&ddata->mutex); ddata 392 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = dev_get_drvdata(&dev->dev); ddata 395 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c mutex_lock(&ddata->mutex); ddata 397 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c mutex_unlock(&ddata->mutex); ddata 420 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 425 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (!ddata->has_cabc) ddata 428 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c mode = get_cabc_mode(ddata); ddata 441 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 460 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (!ddata->has_cabc && i != 0) ddata 463 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c mutex_lock(&ddata->mutex); ddata 464 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c set_cabc_mode(ddata, i); ddata 465 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c mutex_unlock(&ddata->mutex); ddata 474 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 478 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (!ddata->has_cabc) ddata 507 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 508 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct omap_dss_device *in = ddata->in; ddata 523 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 524 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct omap_dss_device *in = ddata->in; ddata 534 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 535 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct omap_dss_device *in = ddata->in; ddata 538 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c dev_dbg(&ddata->spi->dev, "%s\n", __func__); ddata 540 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c in->ops.sdi->set_timings(in, &ddata->videomode); ddata 542 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (ddata->datapairs > 0) ddata 543 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c in->ops.sdi->set_datapairs(in, ddata->datapairs); ddata 554 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (gpio_is_valid(ddata->reset_gpio)) ddata 555 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c gpio_set_value(ddata->reset_gpio, 1); ddata 557 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (ddata->enabled) { ddata 558 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c dev_dbg(&ddata->spi->dev, "panel already enabled\n"); ddata 572 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c set_sleep_mode(ddata, 0); ddata 573 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->enabled = 1; ddata 577 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c set_display_state(ddata, 1); ddata 578 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c set_cabc_mode(ddata, ddata->cabc_mode); ddata 580 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c return acx565akm_bl_update_status(ddata->bl_dev); ddata 585 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 586 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct omap_dss_device *in = ddata->in; ddata 590 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (!ddata->enabled) ddata 593 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c set_display_state(ddata, 0); ddata 594 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c set_sleep_mode(ddata, 1); ddata 595 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->enabled = 0; ddata 604 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (gpio_is_valid(ddata->reset_gpio)) ddata 605 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c gpio_set_value(ddata->reset_gpio, 0); ddata 615 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 626 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c mutex_lock(&ddata->mutex); ddata 628 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c mutex_unlock(&ddata->mutex); ddata 639 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 646 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c mutex_lock(&ddata->mutex); ddata 648 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c mutex_unlock(&ddata->mutex); ddata 656 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 657 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct omap_dss_device *in = ddata->in; ddata 659 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->videomode = *timings; ddata 668 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 670 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c *timings = ddata->videomode; ddata 676 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 677 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct omap_dss_device *in = ddata->in; ddata 699 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = dev_get_drvdata(&spi->dev); ddata 704 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->reset_gpio = pdata->reset_gpio; ddata 712 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->in = in; ddata 714 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->datapairs = pdata->datapairs; ddata 716 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c dssdev = &ddata->dssdev; ddata 724 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = dev_get_drvdata(&spi->dev); ddata 727 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->reset_gpio = of_get_named_gpio(np, "reset-gpios", 0); ddata 729 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->in = omapdss_of_find_source_for_first_ep(np); ddata 730 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (IS_ERR(ddata->in)) { ddata 732 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c return PTR_ERR(ddata->in); ddata 740 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata; ddata 751 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata = devm_kzalloc(&spi->dev, sizeof(*ddata), GFP_KERNEL); ddata 752 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (ddata == NULL) ddata 755 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c dev_set_drvdata(&spi->dev, ddata); ddata 757 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->spi = spi; ddata 759 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c mutex_init(&ddata->mutex); ddata 774 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (gpio_is_valid(ddata->reset_gpio)) { ddata 775 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c r = devm_gpio_request_one(&spi->dev, ddata->reset_gpio, ddata 781 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (gpio_is_valid(ddata->reset_gpio)) ddata 782 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c gpio_set_value(ddata->reset_gpio, 1); ddata 790 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->enabled = panel_enabled(ddata); ddata 792 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c r = panel_detect(ddata); ddata 794 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (!ddata->enabled && gpio_is_valid(ddata->reset_gpio)) ddata 795 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c gpio_set_value(ddata->reset_gpio, 0); ddata 807 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c bldev = backlight_device_register("acx565akm", &ddata->spi->dev, ddata 808 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata, &acx565akm_bl_ops, &props); ddata 813 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->bl_dev = bldev; ddata 814 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (ddata->has_cabc) { ddata 821 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->cabc_mode = get_hw_cabc_mode(ddata); ddata 826 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (ddata->has_bc) ddata 827 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c brightness = acx565akm_get_actual_brightness(ddata); ddata 837 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->videomode = acx565akm_panel_timings; ddata 839 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c dssdev = &ddata->dssdev; ddata 844 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c dssdev->panel.timings = ddata->videomode; ddata 861 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c omap_dss_put_device(ddata->in); ddata 867 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct panel_drv_data *ddata = dev_get_drvdata(&spi->dev); ddata 868 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 869 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c struct omap_dss_device *in = ddata->in; ddata 871 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c dev_dbg(&ddata->spi->dev, "%s\n", __func__); ddata 873 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c sysfs_remove_group(&ddata->bl_dev->dev.kobj, &bldev_attr_group); ddata 874 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c backlight_device_unregister(ddata->bl_dev); ddata 55 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c static int jbt_ret_write_0(struct panel_drv_data *ddata, u8 reg) ddata 60 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c rc = spi_write(ddata->spi_dev, (u8 *)&tx_buf, ddata 63 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c dev_err(&ddata->spi_dev->dev, ddata 69 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c static int jbt_reg_write_1(struct panel_drv_data *ddata, u8 reg, u8 data) ddata 76 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c rc = spi_write(ddata->spi_dev, (u8 *)tx_buf, ddata 79 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c dev_err(&ddata->spi_dev->dev, ddata 85 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c static int jbt_reg_write_2(struct panel_drv_data *ddata, u8 reg, u16 data) ddata 94 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c rc = spi_write(ddata->spi_dev, (u8 *)tx_buf, ddata 98 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c dev_err(&ddata->spi_dev->dev, ddata 160 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 161 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct omap_dss_device *in = ddata->in; ddata 176 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 177 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct omap_dss_device *in = ddata->in; ddata 187 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 188 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct omap_dss_device *in = ddata->in; ddata 197 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c if (ddata->data_lines) ddata 198 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c in->ops.dpi->set_data_lines(in, ddata->data_lines); ddata 199 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c in->ops.dpi->set_timings(in, &ddata->videomode); ddata 209 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_ret_write_0(ddata, 0x00); ddata 211 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_ret_write_0(ddata, 0x00); ddata 213 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_ret_write_0(ddata, 0x00); ddata 222 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_POWER_ON_OFF, 0x17); ddata 225 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_DISPLAY_MODE, 0x80); ddata 228 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_QUAD_RATE, 0x00); ddata 231 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_POWER_ON_OFF, 0x16); ddata 234 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_2(ddata, JBT_REG_OUTPUT_CONTROL, 0xfff9); ddata 237 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_ret_write_0(ddata, JBT_REG_SLEEP_OUT); ddata 242 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_DISPLAY_MODE1, 0x01); ddata 243 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_DISPLAY_MODE2, 0x00); ddata 244 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_RGB_FORMAT, 0x60); ddata 245 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_DRIVE_SYSTEM, 0x10); ddata 246 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_BOOSTER_OP, 0x56); ddata 247 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_BOOSTER_MODE, 0x33); ddata 248 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_BOOSTER_FREQ, 0x11); ddata 249 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_BOOSTER_FREQ, 0x11); ddata 250 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_OPAMP_SYSCLK, 0x02); ddata 251 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_VSC_VOLTAGE, 0x2b); ddata 252 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_VCOM_VOLTAGE, 0x40); ddata 253 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_EXT_DISPL, 0x03); ddata 254 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_DCCLK_DCEV, 0x04); ddata 259 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_ASW_SLEW, 0x04); ddata 260 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_DUMMY_DISPLAY, 0x00); ddata 262 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_SLEEP_OUT_FR_A, 0x11); ddata 263 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_SLEEP_OUT_FR_B, 0x11); ddata 264 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_SLEEP_OUT_FR_C, 0x11); ddata 265 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_2(ddata, JBT_REG_SLEEP_IN_LCCNT_D, 0x2040); ddata 266 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_2(ddata, JBT_REG_SLEEP_IN_LCCNT_E, 0x60c0); ddata 267 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_2(ddata, JBT_REG_SLEEP_IN_LCCNT_F, 0x1020); ddata 268 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_2(ddata, JBT_REG_SLEEP_IN_LCCNT_G, 0x60c0); ddata 270 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_2(ddata, JBT_REG_GAMMA1_FINE_1, 0x5533); ddata 271 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_GAMMA1_FINE_2, 0x00); ddata 272 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_GAMMA1_INCLINATION, 0x00); ddata 273 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_GAMMA1_BLUE_OFFSET, 0x00); ddata 275 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_2(ddata, JBT_REG_HCLOCK_VGA, 0x1f0); ddata 276 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_BLANK_CONTROL, 0x02); ddata 277 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_2(ddata, JBT_REG_BLANK_TH_TV, 0x0804); ddata 279 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_CKV_ON_OFF, 0x01); ddata 280 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_2(ddata, JBT_REG_CKV_1_2, 0x0000); ddata 282 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_2(ddata, JBT_REG_OEV_TIMING, 0x0d0e); ddata 283 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_2(ddata, JBT_REG_ASW_TIMING_1, 0x11a4); ddata 284 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_reg_write_1(ddata, JBT_REG_ASW_TIMING_2, 0x0e); ddata 286 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c r |= jbt_ret_write_0(ddata, JBT_REG_DISPLAY_ON); ddata 297 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 298 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct omap_dss_device *in = ddata->in; ddata 305 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c jbt_ret_write_0(ddata, JBT_REG_DISPLAY_OFF); ddata 306 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c jbt_reg_write_2(ddata, JBT_REG_OUTPUT_CONTROL, 0x8002); ddata 307 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c jbt_ret_write_0(ddata, JBT_REG_SLEEP_IN); ddata 308 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c jbt_reg_write_1(ddata, JBT_REG_POWER_ON_OFF, 0x00); ddata 318 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 319 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct omap_dss_device *in = ddata->in; ddata 321 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c ddata->videomode = *timings; ddata 330 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 332 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c *timings = ddata->videomode; ddata 338 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 339 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct omap_dss_device *in = ddata->in; ddata 359 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct panel_drv_data *ddata = dev_get_drvdata(&spi->dev); ddata 368 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c ddata->in = in; ddata 375 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct panel_drv_data *ddata; ddata 393 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c ddata = devm_kzalloc(&spi->dev, sizeof(*ddata), GFP_KERNEL); ddata 394 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c if (ddata == NULL) ddata 397 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c dev_set_drvdata(&spi->dev, ddata); ddata 399 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c ddata->spi_dev = spi; ddata 405 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c ddata->videomode = td028ttec1_panel_timings; ddata 407 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c dssdev = &ddata->dssdev; ddata 412 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c dssdev->panel.timings = ddata->videomode; ddata 413 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c dssdev->phy.dpi.data_lines = ddata->data_lines; ddata 424 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c omap_dss_put_device(ddata->in); ddata 430 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct panel_drv_data *ddata = dev_get_drvdata(&spi->dev); ddata 431 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 432 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct omap_dss_device *in = ddata->in; ddata 434 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c dev_dbg(&ddata->spi_dev->dev, "%s\n", __func__); ddata 153 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev); ddata 155 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->hmirror = enable; ddata 156 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c return tpo_td043_write_mirror(ddata->spi, ddata->hmirror, ddata 157 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->vmirror); ddata 162 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev); ddata 164 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c return ddata->hmirror; ddata 170 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 172 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c return snprintf(buf, PAGE_SIZE, "%d\n", ddata->vmirror); ddata 178 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 188 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ret = tpo_td043_write_mirror(ddata->spi, ddata->hmirror, val); ddata 192 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->vmirror = val; ddata 200 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 202 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c return snprintf(buf, PAGE_SIZE, "%d\n", ddata->mode); ddata 208 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 216 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->mode = val; ddata 219 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c tpo_td043_write(ddata->spi, 2, val); ddata 227 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 232 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c for (i = 0; i < ARRAY_SIZE(ddata->gamma); i++) { ddata 234 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->gamma[i]); ddata 247 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 260 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->gamma[i] = g[i]; ddata 262 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c tpo_td043_write_gamma(ddata->spi, ddata->gamma); ddata 285 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c static int tpo_td043_power_on(struct panel_drv_data *ddata) ddata 289 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c if (ddata->powered_on) ddata 292 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c r = regulator_enable(ddata->vcc_reg); ddata 299 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c if (gpio_is_valid(ddata->nreset_gpio)) ddata 300 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c gpio_set_value(ddata->nreset_gpio, 1); ddata 302 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c tpo_td043_write(ddata->spi, 2, ddata 303 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c TPO_R02_MODE(ddata->mode) | TPO_R02_NCLK_RISING); ddata 304 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c tpo_td043_write(ddata->spi, 3, TPO_R03_VAL_NORMAL); ddata 305 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c tpo_td043_write(ddata->spi, 0x20, 0xf0); ddata 306 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c tpo_td043_write(ddata->spi, 0x21, 0xf0); ddata 307 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c tpo_td043_write_mirror(ddata->spi, ddata->hmirror, ddata 308 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->vmirror); ddata 309 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c tpo_td043_write_gamma(ddata->spi, ddata->gamma); ddata 311 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->powered_on = 1; ddata 315 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c static void tpo_td043_power_off(struct panel_drv_data *ddata) ddata 317 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c if (!ddata->powered_on) ddata 320 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c tpo_td043_write(ddata->spi, 3, ddata 323 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c if (gpio_is_valid(ddata->nreset_gpio)) ddata 324 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c gpio_set_value(ddata->nreset_gpio, 0); ddata 329 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c tpo_td043_write(ddata->spi, 3, TPO_R03_VAL_STANDBY); ddata 331 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c regulator_disable(ddata->vcc_reg); ddata 333 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->powered_on = 0; ddata 338 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 339 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct omap_dss_device *in = ddata->in; ddata 354 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 355 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct omap_dss_device *in = ddata->in; ddata 365 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 366 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct omap_dss_device *in = ddata->in; ddata 375 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c if (ddata->data_lines) ddata 376 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c in->ops.dpi->set_data_lines(in, ddata->data_lines); ddata 377 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c in->ops.dpi->set_timings(in, &ddata->videomode); ddata 387 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c if (!ddata->spi_suspended) { ddata 388 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c r = tpo_td043_power_on(ddata); ddata 402 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 403 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct omap_dss_device *in = ddata->in; ddata 410 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c if (!ddata->spi_suspended) ddata 411 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c tpo_td043_power_off(ddata); ddata 419 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 420 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct omap_dss_device *in = ddata->in; ddata 422 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->videomode = *timings; ddata 431 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 433 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c *timings = ddata->videomode; ddata 439 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = to_panel_data(dssdev); ddata 440 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct omap_dss_device *in = ddata->in; ddata 466 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = dev_get_drvdata(&spi->dev); ddata 475 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->nreset_gpio = gpio; ddata 483 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->in = in; ddata 490 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata; ddata 508 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata = devm_kzalloc(&spi->dev, sizeof(*ddata), GFP_KERNEL); ddata 509 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c if (ddata == NULL) ddata 512 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c dev_set_drvdata(&spi->dev, ddata); ddata 514 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->spi = spi; ddata 520 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->mode = TPO_R02_MODE_800x480; ddata 521 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c memcpy(ddata->gamma, tpo_td043_def_gamma, sizeof(ddata->gamma)); ddata 523 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->vcc_reg = devm_regulator_get(&spi->dev, "vcc"); ddata 524 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c if (IS_ERR(ddata->vcc_reg)) { ddata 526 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c r = PTR_ERR(ddata->vcc_reg); ddata 530 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c if (gpio_is_valid(ddata->nreset_gpio)) { ddata 532 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->nreset_gpio, GPIOF_OUT_INIT_LOW, ddata 546 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->videomode = tpo_td043_timings; ddata 548 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c dssdev = &ddata->dssdev; ddata 553 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c dssdev->panel.timings = ddata->videomode; ddata 568 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c omap_dss_put_device(ddata->in); ddata 574 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = dev_get_drvdata(&spi->dev); ddata 575 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct omap_dss_device *dssdev = &ddata->dssdev; ddata 576 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct omap_dss_device *in = ddata->in; ddata 578 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c dev_dbg(&ddata->spi->dev, "%s\n", __func__); ddata 595 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 597 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c dev_dbg(dev, "tpo_td043_spi_suspend, tpo %p\n", ddata); ddata 599 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->power_on_resume = ddata->powered_on; ddata 600 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c tpo_td043_power_off(ddata); ddata 601 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->spi_suspended = 1; ddata 608 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c struct panel_drv_data *ddata = dev_get_drvdata(dev); ddata 613 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c if (ddata->power_on_resume) { ddata 614 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ret = tpo_td043_power_on(ddata); ddata 618 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->spi_suspended = 0; ddata 72 drivers/watchdog/mpc8xxx_wdt.c static void mpc8xxx_wdt_keepalive(struct mpc8xxx_wdt_ddata *ddata) ddata 75 drivers/watchdog/mpc8xxx_wdt.c spin_lock(&ddata->lock); ddata 76 drivers/watchdog/mpc8xxx_wdt.c out_be16(&ddata->base->swsrr, 0x556c); ddata 77 drivers/watchdog/mpc8xxx_wdt.c out_be16(&ddata->base->swsrr, 0xaa39); ddata 78 drivers/watchdog/mpc8xxx_wdt.c spin_unlock(&ddata->lock); ddata 83 drivers/watchdog/mpc8xxx_wdt.c struct mpc8xxx_wdt_ddata *ddata = ddata 85 drivers/watchdog/mpc8xxx_wdt.c u32 tmp = in_be32(&ddata->base->swcrr); ddata 89 drivers/watchdog/mpc8xxx_wdt.c tmp |= SWCRR_SWEN | SWCRR_SWPR | (ddata->swtc << 16); ddata 94 drivers/watchdog/mpc8xxx_wdt.c out_be32(&ddata->base->swcrr, tmp); ddata 96 drivers/watchdog/mpc8xxx_wdt.c tmp = in_be32(&ddata->base->swcrr); ddata 100 drivers/watchdog/mpc8xxx_wdt.c ddata->swtc = tmp >> 16; ddata 101 drivers/watchdog/mpc8xxx_wdt.c set_bit(WDOG_HW_RUNNING, &ddata->wdd.status); ddata 108 drivers/watchdog/mpc8xxx_wdt.c struct mpc8xxx_wdt_ddata *ddata = ddata 111 drivers/watchdog/mpc8xxx_wdt.c mpc8xxx_wdt_keepalive(ddata); ddata 132 drivers/watchdog/mpc8xxx_wdt.c struct mpc8xxx_wdt_ddata *ddata; ddata 144 drivers/watchdog/mpc8xxx_wdt.c ddata = devm_kzalloc(dev, sizeof(*ddata), GFP_KERNEL); ddata 145 drivers/watchdog/mpc8xxx_wdt.c if (!ddata) ddata 148 drivers/watchdog/mpc8xxx_wdt.c ddata->base = devm_platform_ioremap_resource(ofdev, 0); ddata 149 drivers/watchdog/mpc8xxx_wdt.c if (IS_ERR(ddata->base)) ddata 150 drivers/watchdog/mpc8xxx_wdt.c return PTR_ERR(ddata->base); ddata 152 drivers/watchdog/mpc8xxx_wdt.c enabled = in_be32(&ddata->base->swcrr) & SWCRR_SWEN; ddata 167 drivers/watchdog/mpc8xxx_wdt.c ddata->wdd.bootstatus = status ? WDIOF_CARDRESET : 0; ddata 176 drivers/watchdog/mpc8xxx_wdt.c spin_lock_init(&ddata->lock); ddata 178 drivers/watchdog/mpc8xxx_wdt.c ddata->wdd.info = &mpc8xxx_wdt_info, ddata 179 drivers/watchdog/mpc8xxx_wdt.c ddata->wdd.ops = &mpc8xxx_wdt_ops, ddata 181 drivers/watchdog/mpc8xxx_wdt.c ddata->wdd.timeout = WATCHDOG_TIMEOUT; ddata 182 drivers/watchdog/mpc8xxx_wdt.c watchdog_init_timeout(&ddata->wdd, timeout, dev); ddata 184 drivers/watchdog/mpc8xxx_wdt.c watchdog_set_nowayout(&ddata->wdd, nowayout); ddata 186 drivers/watchdog/mpc8xxx_wdt.c ddata->swtc = min(ddata->wdd.timeout * freq / wdt_type->prescaler, ddata 195 drivers/watchdog/mpc8xxx_wdt.c mpc8xxx_wdt_start(&ddata->wdd); ddata 197 drivers/watchdog/mpc8xxx_wdt.c ddata->wdd.max_hw_heartbeat_ms = (ddata->swtc * wdt_type->prescaler) / ddata 199 drivers/watchdog/mpc8xxx_wdt.c ddata->wdd.min_timeout = ddata->wdd.max_hw_heartbeat_ms / 1000; ddata 200 drivers/watchdog/mpc8xxx_wdt.c if (ddata->wdd.timeout < ddata->wdd.min_timeout) ddata 201 drivers/watchdog/mpc8xxx_wdt.c ddata->wdd.timeout = ddata->wdd.min_timeout; ddata 203 drivers/watchdog/mpc8xxx_wdt.c ret = devm_watchdog_register_device(dev, &ddata->wdd); ddata 209 drivers/watchdog/mpc8xxx_wdt.c reset ? "reset" : "interrupt", ddata->wdd.timeout); ddata 211 drivers/watchdog/mpc8xxx_wdt.c platform_set_drvdata(ofdev, ddata); ddata 121 include/linux/mfd/palmas.h struct palmas_pmic_driver_data *ddata, ddata 126 include/linux/mfd/palmas.h struct palmas_pmic_driver_data *ddata,