dss 32 drivers/gpu/drm/omapdrm/displays/encoder-opa362.c return omapdss_device_connect(dst->dss, dst, dst->next); dss 38 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c r = omapdss_device_connect(dst->dss, dst, dst->next); dss 27 drivers/gpu/drm/omapdrm/dss/base.c void omapdss_set_dss(struct dss_device *dss) dss 29 drivers/gpu/drm/omapdrm/dss/base.c dss_device = dss; dss 33 drivers/gpu/drm/omapdrm/dss/base.c struct dispc_device *dispc_get_dispc(struct dss_device *dss) dss 35 drivers/gpu/drm/omapdrm/dss/base.c return dss->dispc; dss 39 drivers/gpu/drm/omapdrm/dss/base.c const struct dispc_ops *dispc_get_ops(struct dss_device *dss) dss 41 drivers/gpu/drm/omapdrm/dss/base.c return dss->dispc_ops; dss 172 drivers/gpu/drm/omapdrm/dss/base.c return dssdev->dss; dss 175 drivers/gpu/drm/omapdrm/dss/base.c int omapdss_device_connect(struct dss_device *dss, dss 181 drivers/gpu/drm/omapdrm/dss/base.c dev_dbg(&dss->pdev->dev, "connect(%s, %s)\n", dss 198 drivers/gpu/drm/omapdrm/dss/base.c dst->dss = dss; dss 202 drivers/gpu/drm/omapdrm/dss/base.c dst->dss = NULL; dss 213 drivers/gpu/drm/omapdrm/dss/base.c struct dss_device *dss = src ? src->dss : dst->dss; dss 215 drivers/gpu/drm/omapdrm/dss/base.c dev_dbg(&dss->pdev->dev, "disconnect(%s, %s)\n", dss 232 drivers/gpu/drm/omapdrm/dss/base.c dst->dss = NULL; dss 161 drivers/gpu/drm/omapdrm/dss/dispc.c struct dss_device *dss; dss 3289 drivers/gpu/drm/omapdrm/dss/dispc.c src = dss_get_dispc_clk_source(dispc->dss); dss 3292 drivers/gpu/drm/omapdrm/dss/dispc.c r = dss_get_dispc_clk_rate(dispc->dss); dss 3297 drivers/gpu/drm/omapdrm/dss/dispc.c pll = dss_pll_find_by_src(dispc->dss, src); dss 3317 drivers/gpu/drm/omapdrm/dss/dispc.c src = dss_get_lcd_clk_source(dispc->dss, channel); dss 3320 drivers/gpu/drm/omapdrm/dss/dispc.c r = dss_get_dispc_clk_rate(dispc->dss); dss 3325 drivers/gpu/drm/omapdrm/dss/dispc.c pll = dss_pll_find_by_src(dispc->dss, src); dss 3402 drivers/gpu/drm/omapdrm/dss/dispc.c lcd_clk_src = dss_get_lcd_clk_source(dispc->dss, channel); dss 3426 drivers/gpu/drm/omapdrm/dss/dispc.c dispc_clk_src = dss_get_dispc_clk_source(dispc->dss); dss 3687 drivers/gpu/drm/omapdrm/dss/dispc.c lck_max = dss_get_max_fck_rate(dispc->dss); dss 4660 drivers/gpu/drm/omapdrm/dss/dispc.c dispc_calc_clock_rates(dispc, dss_get_dispc_clk_rate(dispc->dss), dss 4756 drivers/gpu/drm/omapdrm/dss/dispc.c struct dss_device *dss = dss_get_device(master); dss 4769 drivers/gpu/drm/omapdrm/dss/dispc.c dispc->dss = dss; dss 4835 drivers/gpu/drm/omapdrm/dss/dispc.c dss->dispc = dispc; dss 4836 drivers/gpu/drm/omapdrm/dss/dispc.c dss->dispc_ops = &dispc_ops; dss 4838 drivers/gpu/drm/omapdrm/dss/dispc.c dispc->debugfs = dss_debugfs_create_file(dss, "dispc", dispc_dump_regs, dss 4853 drivers/gpu/drm/omapdrm/dss/dispc.c struct dss_device *dss = dispc->dss; dss 4857 drivers/gpu/drm/omapdrm/dss/dispc.c dss->dispc = NULL; dss 4858 drivers/gpu/drm/omapdrm/dss/dispc.c dss->dispc_ops = NULL; dss 30 drivers/gpu/drm/omapdrm/dss/dpi.c struct dss_device *dss; dss 64 drivers/gpu/drm/omapdrm/dss/dpi.c if (dss_pll_find_by_src(dpi->dss, DSS_CLK_SRC_PLL1_1)) dss 70 drivers/gpu/drm/omapdrm/dss/dpi.c if (dss_pll_find_by_src(dpi->dss, DSS_CLK_SRC_PLL1_3)) dss 72 drivers/gpu/drm/omapdrm/dss/dpi.c if (dss_pll_find_by_src(dpi->dss, DSS_CLK_SRC_PLL2_3)) dss 78 drivers/gpu/drm/omapdrm/dss/dpi.c if (dss_pll_find_by_src(dpi->dss, DSS_CLK_SRC_PLL2_1)) dss 80 drivers/gpu/drm/omapdrm/dss/dpi.c if (dss_pll_find_by_src(dpi->dss, DSS_CLK_SRC_PLL1_3)) dss 184 drivers/gpu/drm/omapdrm/dss/dpi.c return dispc_div_calc(ctx->dpi->dss->dispc, dispc, dss 202 drivers/gpu/drm/omapdrm/dss/dpi.c ctx->pck_min, dss_get_max_fck_rate(ctx->dpi->dss), dss 212 drivers/gpu/drm/omapdrm/dss/dpi.c return dispc_div_calc(ctx->dpi->dss->dispc, fck, dss 275 drivers/gpu/drm/omapdrm/dss/dpi.c ok = dss_div_calc(dpi->dss, pck, ctx->pck_min, dss 302 drivers/gpu/drm/omapdrm/dss/dpi.c dss_select_lcd_clk_source(dpi->dss, channel, dpi->clk_src); dss 324 drivers/gpu/drm/omapdrm/dss/dpi.c r = dss_set_fck_rate(dpi->dss, ctx.fck); dss 383 drivers/gpu/drm/omapdrm/dss/dpi.c r = dispc_runtime_get(dpi->dss->dispc); dss 387 drivers/gpu/drm/omapdrm/dss/dpi.c r = dss_dpi_select_source(dpi->dss, dpi->id, out->dispc_channel); dss 419 drivers/gpu/drm/omapdrm/dss/dpi.c dispc_runtime_put(dpi->dss->dispc); dss 436 drivers/gpu/drm/omapdrm/dss/dpi.c dss_select_lcd_clk_source(dpi->dss, dpi->output.dispc_channel, dss 441 drivers/gpu/drm/omapdrm/dss/dpi.c dispc_runtime_put(dpi->dss->dispc); dss 527 drivers/gpu/drm/omapdrm/dss/dpi.c pll = dss_pll_find_by_src(dpi->dss, dpi->clk_src); dss 582 drivers/gpu/drm/omapdrm/dss/dpi.c return omapdss_device_connect(dst->dss, dst, dst->next); dss 679 drivers/gpu/drm/omapdrm/dss/dpi.c int dpi_init_port(struct dss_device *dss, struct platform_device *pdev, dss 706 drivers/gpu/drm/omapdrm/dss/dpi.c dpi->dss = dss; dss 334 drivers/gpu/drm/omapdrm/dss/dsi.c struct dss_device *dss; dss 1200 drivers/gpu/drm/omapdrm/dss/dsi.c source = dss_get_dsi_clk_source(dsi->dss, dsi->module_id); dss 1339 drivers/gpu/drm/omapdrm/dss/dsi.c dispc_pck_free_enable(dsi->dss->dispc, 1); dss 1344 drivers/gpu/drm/omapdrm/dss/dsi.c dispc_pck_free_enable(dsi->dss->dispc, 0); dss 1350 drivers/gpu/drm/omapdrm/dss/dsi.c dispc_pck_free_enable(dsi->dss->dispc, 0); dss 1390 drivers/gpu/drm/omapdrm/dss/dsi.c dispc_clk_src = dss_get_dispc_clk_source(dsi->dss); dss 1391 drivers/gpu/drm/omapdrm/dss/dsi.c dsi_clk_src = dss_get_dsi_clk_source(dsi->dss, dsi_module); dss 3864 drivers/gpu/drm/omapdrm/dss/dsi.c dispc_disable_sidle(dsi->dss->dispc); dss 3897 drivers/gpu/drm/omapdrm/dss/dsi.c dispc_enable_sidle(dsi->dss->dispc); dss 3978 drivers/gpu/drm/omapdrm/dss/dsi.c r = dispc_calc_clock_rates(dsi->dss->dispc, fck, &dispc_cinfo); dss 3994 drivers/gpu/drm/omapdrm/dss/dsi.c dss_select_lcd_clk_source(dsi->dss, channel, dsi->module_id == 0 ? dss 4030 drivers/gpu/drm/omapdrm/dss/dsi.c dss_select_lcd_clk_source(dsi->dss, channel, DSS_CLK_SRC_FCK); dss 4042 drivers/gpu/drm/omapdrm/dss/dsi.c dss_select_lcd_clk_source(dsi->dss, channel, DSS_CLK_SRC_FCK); dss 4073 drivers/gpu/drm/omapdrm/dss/dsi.c dss_select_dsi_clk_source(dsi->dss, dsi->module_id, dss 4118 drivers/gpu/drm/omapdrm/dss/dsi.c dss_select_dsi_clk_source(dsi->dss, dsi->module_id, DSS_CLK_SRC_FCK); dss 4138 drivers/gpu/drm/omapdrm/dss/dsi.c dss_select_dsi_clk_source(dsi->dss, dsi->module_id, DSS_CLK_SRC_FCK); dss 4326 drivers/gpu/drm/omapdrm/dss/dsi.c return dispc_div_calc(ctx->dsi->dss->dispc, dispc, dss 4627 drivers/gpu/drm/omapdrm/dss/dsi.c return dispc_div_calc(ctx->dsi->dss->dispc, dispc, dss 4874 drivers/gpu/drm/omapdrm/dss/dsi.c return omapdss_device_connect(dst->dss, dst, dst->next); dss 5015 drivers/gpu/drm/omapdrm/dss/dsi.c static int dsi_init_pll_data(struct dss_device *dss, struct dsi_data *dsi) dss 5034 drivers/gpu/drm/omapdrm/dss/dsi.c r = dss_pll_register(dss, pll); dss 5047 drivers/gpu/drm/omapdrm/dss/dsi.c struct dss_device *dss = dss_get_device(master); dss 5053 drivers/gpu/drm/omapdrm/dss/dsi.c dsi->dss = dss; dss 5055 drivers/gpu/drm/omapdrm/dss/dsi.c dsi_init_pll_data(dss, dsi); dss 5070 drivers/gpu/drm/omapdrm/dss/dsi.c dsi->debugfs.regs = dss_debugfs_create_file(dss, name, dss 5074 drivers/gpu/drm/omapdrm/dss/dsi.c dsi->debugfs.irqs = dss_debugfs_create_file(dss, name, dss 5078 drivers/gpu/drm/omapdrm/dss/dsi.c dsi->debugfs.clks = dss_debugfs_create_file(dss, name, dss 54 drivers/gpu/drm/omapdrm/dss/dss.c #define REG_GET(dss, idx, start, end) \ dss 55 drivers/gpu/drm/omapdrm/dss/dss.c FLD_GET(dss_read_reg(dss, idx), start, end) dss 57 drivers/gpu/drm/omapdrm/dss/dss.c #define REG_FLD_MOD(dss, idx, val, start, end) \ dss 58 drivers/gpu/drm/omapdrm/dss/dss.c dss_write_reg(dss, idx, \ dss 59 drivers/gpu/drm/omapdrm/dss/dss.c FLD_MOD(dss_read_reg(dss, idx), val, start, end)) dss 62 drivers/gpu/drm/omapdrm/dss/dss.c int (*dpi_select_source)(struct dss_device *dss, int port, dss 64 drivers/gpu/drm/omapdrm/dss/dss.c int (*select_lcd_source)(struct dss_device *dss, dss 94 drivers/gpu/drm/omapdrm/dss/dss.c static inline void dss_write_reg(struct dss_device *dss, dss 97 drivers/gpu/drm/omapdrm/dss/dss.c __raw_writel(val, dss->base + idx.idx); dss 100 drivers/gpu/drm/omapdrm/dss/dss.c static inline u32 dss_read_reg(struct dss_device *dss, const struct dss_reg idx) dss 102 drivers/gpu/drm/omapdrm/dss/dss.c return __raw_readl(dss->base + idx.idx); dss 105 drivers/gpu/drm/omapdrm/dss/dss.c #define SR(dss, reg) \ dss 106 drivers/gpu/drm/omapdrm/dss/dss.c dss->ctx[(DSS_##reg).idx / sizeof(u32)] = dss_read_reg(dss, DSS_##reg) dss 107 drivers/gpu/drm/omapdrm/dss/dss.c #define RR(dss, reg) \ dss 108 drivers/gpu/drm/omapdrm/dss/dss.c dss_write_reg(dss, DSS_##reg, dss->ctx[(DSS_##reg).idx / sizeof(u32)]) dss 110 drivers/gpu/drm/omapdrm/dss/dss.c static void dss_save_context(struct dss_device *dss) dss 114 drivers/gpu/drm/omapdrm/dss/dss.c SR(dss, CONTROL); dss 116 drivers/gpu/drm/omapdrm/dss/dss.c if (dss->feat->outputs[OMAP_DSS_CHANNEL_LCD] & OMAP_DSS_OUTPUT_SDI) { dss 117 drivers/gpu/drm/omapdrm/dss/dss.c SR(dss, SDI_CONTROL); dss 118 drivers/gpu/drm/omapdrm/dss/dss.c SR(dss, PLL_CONTROL); dss 121 drivers/gpu/drm/omapdrm/dss/dss.c dss->ctx_valid = true; dss 126 drivers/gpu/drm/omapdrm/dss/dss.c static void dss_restore_context(struct dss_device *dss) dss 130 drivers/gpu/drm/omapdrm/dss/dss.c if (!dss->ctx_valid) dss 133 drivers/gpu/drm/omapdrm/dss/dss.c RR(dss, CONTROL); dss 135 drivers/gpu/drm/omapdrm/dss/dss.c if (dss->feat->outputs[OMAP_DSS_CHANNEL_LCD] & OMAP_DSS_OUTPUT_SDI) { dss 136 drivers/gpu/drm/omapdrm/dss/dss.c RR(dss, SDI_CONTROL); dss 137 drivers/gpu/drm/omapdrm/dss/dss.c RR(dss, PLL_CONTROL); dss 151 drivers/gpu/drm/omapdrm/dss/dss.c if (!pll->dss->syscon_pll_ctrl) dss 171 drivers/gpu/drm/omapdrm/dss/dss.c regmap_update_bits(pll->dss->syscon_pll_ctrl, dss 172 drivers/gpu/drm/omapdrm/dss/dss.c pll->dss->syscon_pll_ctrl_offset, dss 176 drivers/gpu/drm/omapdrm/dss/dss.c static int dss_ctrl_pll_set_control_mux(struct dss_device *dss, dss 182 drivers/gpu/drm/omapdrm/dss/dss.c if (!dss->syscon_pll_ctrl) dss 237 drivers/gpu/drm/omapdrm/dss/dss.c regmap_update_bits(dss->syscon_pll_ctrl, dss->syscon_pll_ctrl_offset, dss 243 drivers/gpu/drm/omapdrm/dss/dss.c void dss_sdi_init(struct dss_device *dss, int datapairs) dss 249 drivers/gpu/drm/omapdrm/dss/dss.c l = dss_read_reg(dss, DSS_SDI_CONTROL); dss 253 drivers/gpu/drm/omapdrm/dss/dss.c dss_write_reg(dss, DSS_SDI_CONTROL, l); dss 255 drivers/gpu/drm/omapdrm/dss/dss.c l = dss_read_reg(dss, DSS_PLL_CONTROL); dss 259 drivers/gpu/drm/omapdrm/dss/dss.c dss_write_reg(dss, DSS_PLL_CONTROL, l); dss 262 drivers/gpu/drm/omapdrm/dss/dss.c int dss_sdi_enable(struct dss_device *dss) dss 266 drivers/gpu/drm/omapdrm/dss/dss.c dispc_pck_free_enable(dss->dispc, 1); dss 269 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_PLL_CONTROL, 1, 18, 18); /* SDI_PLL_SYSRESET */ dss 273 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_PLL_CONTROL, 1, 28, 28); /* SDI_PLL_GOBIT */ dss 277 drivers/gpu/drm/omapdrm/dss/dss.c while (dss_read_reg(dss, DSS_SDI_STATUS) & (1 << 6)) { dss 285 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_PLL_CONTROL, 0, 28, 28); dss 289 drivers/gpu/drm/omapdrm/dss/dss.c while (!(dss_read_reg(dss, DSS_SDI_STATUS) & (1 << 5))) { dss 296 drivers/gpu/drm/omapdrm/dss/dss.c dispc_lcd_enable_signal(dss->dispc, 1); dss 300 drivers/gpu/drm/omapdrm/dss/dss.c while (!(dss_read_reg(dss, DSS_SDI_STATUS) & (1 << 2))) { dss 310 drivers/gpu/drm/omapdrm/dss/dss.c dispc_lcd_enable_signal(dss->dispc, 0); dss 313 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_PLL_CONTROL, 0, 18, 18); /* SDI_PLL_SYSRESET */ dss 315 drivers/gpu/drm/omapdrm/dss/dss.c dispc_pck_free_enable(dss->dispc, 0); dss 320 drivers/gpu/drm/omapdrm/dss/dss.c void dss_sdi_disable(struct dss_device *dss) dss 322 drivers/gpu/drm/omapdrm/dss/dss.c dispc_lcd_enable_signal(dss->dispc, 0); dss 324 drivers/gpu/drm/omapdrm/dss/dss.c dispc_pck_free_enable(dss->dispc, 0); dss 327 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_PLL_CONTROL, 0, 18, 18); /* SDI_PLL_SYSRESET */ dss 335 drivers/gpu/drm/omapdrm/dss/dss.c static void dss_dump_clocks(struct dss_device *dss, struct seq_file *s) dss 340 drivers/gpu/drm/omapdrm/dss/dss.c if (dss_runtime_get(dss)) dss 346 drivers/gpu/drm/omapdrm/dss/dss.c fclk_rate = clk_get_rate(dss->dss_clk); dss 352 drivers/gpu/drm/omapdrm/dss/dss.c dss_runtime_put(dss); dss 357 drivers/gpu/drm/omapdrm/dss/dss.c struct dss_device *dss = s->private; dss 359 drivers/gpu/drm/omapdrm/dss/dss.c #define DUMPREG(dss, r) seq_printf(s, "%-35s %08x\n", #r, dss_read_reg(dss, r)) dss 361 drivers/gpu/drm/omapdrm/dss/dss.c if (dss_runtime_get(dss)) dss 364 drivers/gpu/drm/omapdrm/dss/dss.c DUMPREG(dss, DSS_REVISION); dss 365 drivers/gpu/drm/omapdrm/dss/dss.c DUMPREG(dss, DSS_SYSCONFIG); dss 366 drivers/gpu/drm/omapdrm/dss/dss.c DUMPREG(dss, DSS_SYSSTATUS); dss 367 drivers/gpu/drm/omapdrm/dss/dss.c DUMPREG(dss, DSS_CONTROL); dss 369 drivers/gpu/drm/omapdrm/dss/dss.c if (dss->feat->outputs[OMAP_DSS_CHANNEL_LCD] & OMAP_DSS_OUTPUT_SDI) { dss 370 drivers/gpu/drm/omapdrm/dss/dss.c DUMPREG(dss, DSS_SDI_CONTROL); dss 371 drivers/gpu/drm/omapdrm/dss/dss.c DUMPREG(dss, DSS_PLL_CONTROL); dss 372 drivers/gpu/drm/omapdrm/dss/dss.c DUMPREG(dss, DSS_SDI_STATUS); dss 375 drivers/gpu/drm/omapdrm/dss/dss.c dss_runtime_put(dss); dss 382 drivers/gpu/drm/omapdrm/dss/dss.c struct dss_device *dss = s->private; dss 384 drivers/gpu/drm/omapdrm/dss/dss.c dss_dump_clocks(dss, s); dss 385 drivers/gpu/drm/omapdrm/dss/dss.c dispc_dump_clocks(dss->dispc, s); dss 404 drivers/gpu/drm/omapdrm/dss/dss.c static void dss_select_dispc_clk_source(struct dss_device *dss, dss 413 drivers/gpu/drm/omapdrm/dss/dss.c if (WARN_ON(dss->feat->has_lcd_clk_src && clk_src != DSS_CLK_SRC_FCK)) dss 431 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, b, /* DISPC_CLK_SWITCH */ dss 432 drivers/gpu/drm/omapdrm/dss/dss.c dss->feat->dispc_clk_switch.start, dss 433 drivers/gpu/drm/omapdrm/dss/dss.c dss->feat->dispc_clk_switch.end); dss 435 drivers/gpu/drm/omapdrm/dss/dss.c dss->dispc_clk_source = clk_src; dss 438 drivers/gpu/drm/omapdrm/dss/dss.c void dss_select_dsi_clk_source(struct dss_device *dss, int dsi_module, dss 461 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, b, pos, pos); /* DSIx_CLK_SWITCH */ dss 463 drivers/gpu/drm/omapdrm/dss/dss.c dss->dsi_clk_source[dsi_module] = clk_src; dss 466 drivers/gpu/drm/omapdrm/dss/dss.c static int dss_lcd_clk_mux_dra7(struct dss_device *dss, dss 481 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, 0, ctrl_bit, ctrl_bit); dss 485 drivers/gpu/drm/omapdrm/dss/dss.c r = dss_ctrl_pll_set_control_mux(dss, clk_src, channel); dss 489 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, 1, ctrl_bit, ctrl_bit); dss 494 drivers/gpu/drm/omapdrm/dss/dss.c static int dss_lcd_clk_mux_omap5(struct dss_device *dss, dss 513 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, 0, ctrl_bit, ctrl_bit); dss 520 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, 1, ctrl_bit, ctrl_bit); dss 525 drivers/gpu/drm/omapdrm/dss/dss.c static int dss_lcd_clk_mux_omap4(struct dss_device *dss, dss 542 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, 0, ctrl_bit, ctrl_bit); dss 549 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, 1, ctrl_bit, ctrl_bit); dss 554 drivers/gpu/drm/omapdrm/dss/dss.c void dss_select_lcd_clk_source(struct dss_device *dss, dss 561 drivers/gpu/drm/omapdrm/dss/dss.c if (!dss->feat->has_lcd_clk_src) { dss 562 drivers/gpu/drm/omapdrm/dss/dss.c dss_select_dispc_clk_source(dss, clk_src); dss 563 drivers/gpu/drm/omapdrm/dss/dss.c dss->lcd_clk_source[idx] = clk_src; dss 567 drivers/gpu/drm/omapdrm/dss/dss.c r = dss->feat->ops->select_lcd_source(dss, channel, clk_src); dss 571 drivers/gpu/drm/omapdrm/dss/dss.c dss->lcd_clk_source[idx] = clk_src; dss 574 drivers/gpu/drm/omapdrm/dss/dss.c enum dss_clk_source dss_get_dispc_clk_source(struct dss_device *dss) dss 576 drivers/gpu/drm/omapdrm/dss/dss.c return dss->dispc_clk_source; dss 579 drivers/gpu/drm/omapdrm/dss/dss.c enum dss_clk_source dss_get_dsi_clk_source(struct dss_device *dss, dss 582 drivers/gpu/drm/omapdrm/dss/dss.c return dss->dsi_clk_source[dsi_module]; dss 585 drivers/gpu/drm/omapdrm/dss/dss.c enum dss_clk_source dss_get_lcd_clk_source(struct dss_device *dss, dss 588 drivers/gpu/drm/omapdrm/dss/dss.c if (dss->feat->has_lcd_clk_src) { dss 590 drivers/gpu/drm/omapdrm/dss/dss.c return dss->lcd_clk_source[idx]; dss 594 drivers/gpu/drm/omapdrm/dss/dss.c return dss->dispc_clk_source; dss 598 drivers/gpu/drm/omapdrm/dss/dss.c bool dss_div_calc(struct dss_device *dss, unsigned long pck, dss 608 drivers/gpu/drm/omapdrm/dss/dss.c fck_hw_max = dss->feat->fck_freq_max; dss 610 drivers/gpu/drm/omapdrm/dss/dss.c if (dss->parent_clk == NULL) { dss 617 drivers/gpu/drm/omapdrm/dss/dss.c fck = clk_round_rate(dss->dss_clk, fck); dss 622 drivers/gpu/drm/omapdrm/dss/dss.c fckd_hw_max = dss->feat->fck_div_max; dss 624 drivers/gpu/drm/omapdrm/dss/dss.c m = dss->feat->dss_fck_multiplier; dss 625 drivers/gpu/drm/omapdrm/dss/dss.c prate = clk_get_rate(dss->parent_clk); dss 642 drivers/gpu/drm/omapdrm/dss/dss.c int dss_set_fck_rate(struct dss_device *dss, unsigned long rate) dss 648 drivers/gpu/drm/omapdrm/dss/dss.c r = clk_set_rate(dss->dss_clk, rate); dss 652 drivers/gpu/drm/omapdrm/dss/dss.c dss->dss_clk_rate = clk_get_rate(dss->dss_clk); dss 654 drivers/gpu/drm/omapdrm/dss/dss.c WARN_ONCE(dss->dss_clk_rate != rate, "clk rate mismatch: %lu != %lu", dss 655 drivers/gpu/drm/omapdrm/dss/dss.c dss->dss_clk_rate, rate); dss 660 drivers/gpu/drm/omapdrm/dss/dss.c unsigned long dss_get_dispc_clk_rate(struct dss_device *dss) dss 662 drivers/gpu/drm/omapdrm/dss/dss.c return dss->dss_clk_rate; dss 665 drivers/gpu/drm/omapdrm/dss/dss.c unsigned long dss_get_max_fck_rate(struct dss_device *dss) dss 667 drivers/gpu/drm/omapdrm/dss/dss.c return dss->feat->fck_freq_max; dss 670 drivers/gpu/drm/omapdrm/dss/dss.c static int dss_setup_default_clock(struct dss_device *dss) dss 677 drivers/gpu/drm/omapdrm/dss/dss.c max_dss_fck = dss->feat->fck_freq_max; dss 679 drivers/gpu/drm/omapdrm/dss/dss.c if (dss->parent_clk == NULL) { dss 680 drivers/gpu/drm/omapdrm/dss/dss.c fck = clk_round_rate(dss->dss_clk, max_dss_fck); dss 682 drivers/gpu/drm/omapdrm/dss/dss.c prate = clk_get_rate(dss->parent_clk); dss 684 drivers/gpu/drm/omapdrm/dss/dss.c fck_div = DIV_ROUND_UP(prate * dss->feat->dss_fck_multiplier, dss 687 drivers/gpu/drm/omapdrm/dss/dss.c * dss->feat->dss_fck_multiplier; dss 690 drivers/gpu/drm/omapdrm/dss/dss.c r = dss_set_fck_rate(dss, fck); dss 697 drivers/gpu/drm/omapdrm/dss/dss.c void dss_set_venc_output(struct dss_device *dss, enum omap_dss_venc_type type) dss 709 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, l, 6, 6); dss 712 drivers/gpu/drm/omapdrm/dss/dss.c void dss_set_dac_pwrdn_bgz(struct dss_device *dss, bool enable) dss 715 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, enable, 5, 5); dss 718 drivers/gpu/drm/omapdrm/dss/dss.c void dss_select_hdmi_venc_clk_source(struct dss_device *dss, dss 723 drivers/gpu/drm/omapdrm/dss/dss.c outputs = dss->feat->outputs[OMAP_DSS_CHANNEL_DIGIT]; dss 733 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, src, 15, 15); dss 736 drivers/gpu/drm/omapdrm/dss/dss.c static int dss_dpi_select_source_omap2_omap3(struct dss_device *dss, int port, dss 745 drivers/gpu/drm/omapdrm/dss/dss.c static int dss_dpi_select_source_omap4(struct dss_device *dss, int port, dss 761 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, val, 17, 17); dss 766 drivers/gpu/drm/omapdrm/dss/dss.c static int dss_dpi_select_source_omap5(struct dss_device *dss, int port, dss 788 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, val, 17, 16); dss 793 drivers/gpu/drm/omapdrm/dss/dss.c static int dss_dpi_select_source_dra7xx(struct dss_device *dss, int port, dss 798 drivers/gpu/drm/omapdrm/dss/dss.c return dss_dpi_select_source_omap5(dss, port, channel); dss 814 drivers/gpu/drm/omapdrm/dss/dss.c int dss_dpi_select_source(struct dss_device *dss, int port, dss 817 drivers/gpu/drm/omapdrm/dss/dss.c return dss->feat->ops->dpi_select_source(dss, port, channel); dss 820 drivers/gpu/drm/omapdrm/dss/dss.c static int dss_get_clocks(struct dss_device *dss) dss 824 drivers/gpu/drm/omapdrm/dss/dss.c clk = devm_clk_get(&dss->pdev->dev, "fck"); dss 830 drivers/gpu/drm/omapdrm/dss/dss.c dss->dss_clk = clk; dss 832 drivers/gpu/drm/omapdrm/dss/dss.c if (dss->feat->parent_clk_name) { dss 833 drivers/gpu/drm/omapdrm/dss/dss.c clk = clk_get(NULL, dss->feat->parent_clk_name); dss 836 drivers/gpu/drm/omapdrm/dss/dss.c dss->feat->parent_clk_name); dss 843 drivers/gpu/drm/omapdrm/dss/dss.c dss->parent_clk = clk; dss 848 drivers/gpu/drm/omapdrm/dss/dss.c static void dss_put_clocks(struct dss_device *dss) dss 850 drivers/gpu/drm/omapdrm/dss/dss.c if (dss->parent_clk) dss 851 drivers/gpu/drm/omapdrm/dss/dss.c clk_put(dss->parent_clk); dss 854 drivers/gpu/drm/omapdrm/dss/dss.c int dss_runtime_get(struct dss_device *dss) dss 860 drivers/gpu/drm/omapdrm/dss/dss.c r = pm_runtime_get_sync(&dss->pdev->dev); dss 865 drivers/gpu/drm/omapdrm/dss/dss.c void dss_runtime_put(struct dss_device *dss) dss 871 drivers/gpu/drm/omapdrm/dss/dss.c r = pm_runtime_put_sync(&dss->pdev->dev); dss 882 drivers/gpu/drm/omapdrm/dss/dss.c static int dss_initialize_debugfs(struct dss_device *dss) dss 890 drivers/gpu/drm/omapdrm/dss/dss.c dss->debugfs.root = dir; dss 895 drivers/gpu/drm/omapdrm/dss/dss.c static void dss_uninitialize_debugfs(struct dss_device *dss) dss 897 drivers/gpu/drm/omapdrm/dss/dss.c debugfs_remove_recursive(dss->debugfs.root); dss 921 drivers/gpu/drm/omapdrm/dss/dss.c dss_debugfs_create_file(struct dss_device *dss, const char *name, dss 933 drivers/gpu/drm/omapdrm/dss/dss.c entry->dentry = debugfs_create_file(name, 0444, dss->debugfs.root, dss 949 drivers/gpu/drm/omapdrm/dss/dss.c static inline int dss_initialize_debugfs(struct dss_device *dss) dss 953 drivers/gpu/drm/omapdrm/dss/dss.c static inline void dss_uninitialize_debugfs(struct dss_device *dss) dss 1154 drivers/gpu/drm/omapdrm/dss/dss.c static int dss_init_ports(struct dss_device *dss) dss 1156 drivers/gpu/drm/omapdrm/dss/dss.c struct platform_device *pdev = dss->pdev; dss 1162 drivers/gpu/drm/omapdrm/dss/dss.c for (i = 0; i < dss->feat->num_ports; i++) { dss 1167 drivers/gpu/drm/omapdrm/dss/dss.c switch (dss->feat->ports[i]) { dss 1169 drivers/gpu/drm/omapdrm/dss/dss.c r = dpi_init_port(dss, pdev, port, dss->feat->model); dss 1175 drivers/gpu/drm/omapdrm/dss/dss.c r = sdi_init_port(dss, pdev, port); dss 1188 drivers/gpu/drm/omapdrm/dss/dss.c static void dss_uninit_ports(struct dss_device *dss) dss 1190 drivers/gpu/drm/omapdrm/dss/dss.c struct platform_device *pdev = dss->pdev; dss 1195 drivers/gpu/drm/omapdrm/dss/dss.c for (i = 0; i < dss->feat->num_ports; i++) { dss 1200 drivers/gpu/drm/omapdrm/dss/dss.c switch (dss->feat->ports[i]) { dss 1213 drivers/gpu/drm/omapdrm/dss/dss.c static int dss_video_pll_probe(struct dss_device *dss) dss 1215 drivers/gpu/drm/omapdrm/dss/dss.c struct platform_device *pdev = dss->pdev; dss 1224 drivers/gpu/drm/omapdrm/dss/dss.c dss->syscon_pll_ctrl = syscon_regmap_lookup_by_phandle(np, dss 1226 drivers/gpu/drm/omapdrm/dss/dss.c if (IS_ERR(dss->syscon_pll_ctrl)) { dss 1229 drivers/gpu/drm/omapdrm/dss/dss.c return PTR_ERR(dss->syscon_pll_ctrl); dss 1233 drivers/gpu/drm/omapdrm/dss/dss.c &dss->syscon_pll_ctrl_offset)) { dss 1259 drivers/gpu/drm/omapdrm/dss/dss.c dss->video1_pll = dss_video_pll_init(dss, pdev, 0, dss 1261 drivers/gpu/drm/omapdrm/dss/dss.c if (IS_ERR(dss->video1_pll)) dss 1262 drivers/gpu/drm/omapdrm/dss/dss.c return PTR_ERR(dss->video1_pll); dss 1266 drivers/gpu/drm/omapdrm/dss/dss.c dss->video2_pll = dss_video_pll_init(dss, pdev, 1, dss 1268 drivers/gpu/drm/omapdrm/dss/dss.c if (IS_ERR(dss->video2_pll)) { dss 1269 drivers/gpu/drm/omapdrm/dss/dss.c dss_video_pll_uninit(dss->video1_pll); dss 1270 drivers/gpu/drm/omapdrm/dss/dss.c return PTR_ERR(dss->video2_pll); dss 1297 drivers/gpu/drm/omapdrm/dss/dss.c struct dss_device *dss = dev_get_drvdata(dev); dss 1307 drivers/gpu/drm/omapdrm/dss/dss.c omapdss_set_dss(dss); dss 1315 drivers/gpu/drm/omapdrm/dss/dss.c dss->drm_pdev = drm_pdev; dss 1322 drivers/gpu/drm/omapdrm/dss/dss.c struct dss_device *dss = dev_get_drvdata(dev); dss 1324 drivers/gpu/drm/omapdrm/dss/dss.c platform_device_unregister(dss->drm_pdev); dss 1360 drivers/gpu/drm/omapdrm/dss/dss.c static int dss_probe_hardware(struct dss_device *dss) dss 1365 drivers/gpu/drm/omapdrm/dss/dss.c r = dss_runtime_get(dss); dss 1369 drivers/gpu/drm/omapdrm/dss/dss.c dss->dss_clk_rate = clk_get_rate(dss->dss_clk); dss 1372 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, 0, 0, 0); dss 1374 drivers/gpu/drm/omapdrm/dss/dss.c dss_select_dispc_clk_source(dss, DSS_CLK_SRC_FCK); dss 1377 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, 1, 4, 4); /* venc dac demen */ dss 1378 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, 1, 3, 3); /* venc clock 4x enable */ dss 1379 drivers/gpu/drm/omapdrm/dss/dss.c REG_FLD_MOD(dss, DSS_CONTROL, 0, 2, 2); /* venc clock mode = normal */ dss 1381 drivers/gpu/drm/omapdrm/dss/dss.c dss->dsi_clk_source[0] = DSS_CLK_SRC_FCK; dss 1382 drivers/gpu/drm/omapdrm/dss/dss.c dss->dsi_clk_source[1] = DSS_CLK_SRC_FCK; dss 1383 drivers/gpu/drm/omapdrm/dss/dss.c dss->dispc_clk_source = DSS_CLK_SRC_FCK; dss 1384 drivers/gpu/drm/omapdrm/dss/dss.c dss->lcd_clk_source[0] = DSS_CLK_SRC_FCK; dss 1385 drivers/gpu/drm/omapdrm/dss/dss.c dss->lcd_clk_source[1] = DSS_CLK_SRC_FCK; dss 1387 drivers/gpu/drm/omapdrm/dss/dss.c rev = dss_read_reg(dss, DSS_REVISION); dss 1390 drivers/gpu/drm/omapdrm/dss/dss.c dss_runtime_put(dss); dss 1400 drivers/gpu/drm/omapdrm/dss/dss.c struct dss_device *dss; dss 1403 drivers/gpu/drm/omapdrm/dss/dss.c dss = kzalloc(sizeof(*dss), GFP_KERNEL); dss 1404 drivers/gpu/drm/omapdrm/dss/dss.c if (!dss) dss 1407 drivers/gpu/drm/omapdrm/dss/dss.c dss->pdev = pdev; dss 1408 drivers/gpu/drm/omapdrm/dss/dss.c platform_set_drvdata(pdev, dss); dss 1422 drivers/gpu/drm/omapdrm/dss/dss.c dss->feat = soc->data; dss 1424 drivers/gpu/drm/omapdrm/dss/dss.c dss->feat = of_match_device(dss_of_match, &pdev->dev)->data; dss 1428 drivers/gpu/drm/omapdrm/dss/dss.c dss->base = devm_ioremap_resource(&pdev->dev, dss_mem); dss 1429 drivers/gpu/drm/omapdrm/dss/dss.c if (IS_ERR(dss->base)) { dss 1430 drivers/gpu/drm/omapdrm/dss/dss.c r = PTR_ERR(dss->base); dss 1434 drivers/gpu/drm/omapdrm/dss/dss.c r = dss_get_clocks(dss); dss 1438 drivers/gpu/drm/omapdrm/dss/dss.c r = dss_setup_default_clock(dss); dss 1443 drivers/gpu/drm/omapdrm/dss/dss.c r = dss_video_pll_probe(dss); dss 1447 drivers/gpu/drm/omapdrm/dss/dss.c r = dss_init_ports(dss); dss 1454 drivers/gpu/drm/omapdrm/dss/dss.c r = dss_probe_hardware(dss); dss 1459 drivers/gpu/drm/omapdrm/dss/dss.c r = dss_initialize_debugfs(dss); dss 1463 drivers/gpu/drm/omapdrm/dss/dss.c dss->debugfs.clk = dss_debugfs_create_file(dss, "clk", dss 1464 drivers/gpu/drm/omapdrm/dss/dss.c dss_debug_dump_clocks, dss); dss 1465 drivers/gpu/drm/omapdrm/dss/dss.c dss->debugfs.dss = dss_debugfs_create_file(dss, "dss", dss_dump_regs, dss 1466 drivers/gpu/drm/omapdrm/dss/dss.c dss); dss 1487 drivers/gpu/drm/omapdrm/dss/dss.c dss_debugfs_remove_file(dss->debugfs.clk); dss 1488 drivers/gpu/drm/omapdrm/dss/dss.c dss_debugfs_remove_file(dss->debugfs.dss); dss 1489 drivers/gpu/drm/omapdrm/dss/dss.c dss_uninitialize_debugfs(dss); dss 1493 drivers/gpu/drm/omapdrm/dss/dss.c dss_uninit_ports(dss); dss 1496 drivers/gpu/drm/omapdrm/dss/dss.c if (dss->video1_pll) dss 1497 drivers/gpu/drm/omapdrm/dss/dss.c dss_video_pll_uninit(dss->video1_pll); dss 1498 drivers/gpu/drm/omapdrm/dss/dss.c if (dss->video2_pll) dss 1499 drivers/gpu/drm/omapdrm/dss/dss.c dss_video_pll_uninit(dss->video2_pll); dss 1502 drivers/gpu/drm/omapdrm/dss/dss.c dss_put_clocks(dss); dss 1505 drivers/gpu/drm/omapdrm/dss/dss.c kfree(dss); dss 1512 drivers/gpu/drm/omapdrm/dss/dss.c struct dss_device *dss = platform_get_drvdata(pdev); dss 1518 drivers/gpu/drm/omapdrm/dss/dss.c dss_debugfs_remove_file(dss->debugfs.clk); dss 1519 drivers/gpu/drm/omapdrm/dss/dss.c dss_debugfs_remove_file(dss->debugfs.dss); dss 1520 drivers/gpu/drm/omapdrm/dss/dss.c dss_uninitialize_debugfs(dss); dss 1524 drivers/gpu/drm/omapdrm/dss/dss.c dss_uninit_ports(dss); dss 1526 drivers/gpu/drm/omapdrm/dss/dss.c if (dss->video1_pll) dss 1527 drivers/gpu/drm/omapdrm/dss/dss.c dss_video_pll_uninit(dss->video1_pll); dss 1529 drivers/gpu/drm/omapdrm/dss/dss.c if (dss->video2_pll) dss 1530 drivers/gpu/drm/omapdrm/dss/dss.c dss_video_pll_uninit(dss->video2_pll); dss 1532 drivers/gpu/drm/omapdrm/dss/dss.c dss_put_clocks(dss); dss 1534 drivers/gpu/drm/omapdrm/dss/dss.c kfree(dss); dss 1553 drivers/gpu/drm/omapdrm/dss/dss.c struct dss_device *dss = dev_get_drvdata(dev); dss 1555 drivers/gpu/drm/omapdrm/dss/dss.c dss_save_context(dss); dss 1565 drivers/gpu/drm/omapdrm/dss/dss.c struct dss_device *dss = dev_get_drvdata(dev); dss 1581 drivers/gpu/drm/omapdrm/dss/dss.c dss_restore_context(dss); dss 180 drivers/gpu/drm/omapdrm/dss/dss.h struct dss_device *dss; dss 252 drivers/gpu/drm/omapdrm/dss/dss.h struct dss_debugfs_entry *dss; dss 284 drivers/gpu/drm/omapdrm/dss/dss.h dss_debugfs_create_file(struct dss_device *dss, const char *name, dss 290 drivers/gpu/drm/omapdrm/dss/dss.h dss_debugfs_create_file(struct dss_device *dss, const char *name, dss 304 drivers/gpu/drm/omapdrm/dss/dss.h int dss_runtime_get(struct dss_device *dss); dss 305 drivers/gpu/drm/omapdrm/dss/dss.h void dss_runtime_put(struct dss_device *dss); dss 307 drivers/gpu/drm/omapdrm/dss/dss.h unsigned long dss_get_dispc_clk_rate(struct dss_device *dss); dss 308 drivers/gpu/drm/omapdrm/dss/dss.h unsigned long dss_get_max_fck_rate(struct dss_device *dss); dss 309 drivers/gpu/drm/omapdrm/dss/dss.h int dss_dpi_select_source(struct dss_device *dss, int port, dss 311 drivers/gpu/drm/omapdrm/dss/dss.h void dss_select_hdmi_venc_clk_source(struct dss_device *dss, dss 316 drivers/gpu/drm/omapdrm/dss/dss.h struct dss_pll *dss_video_pll_init(struct dss_device *dss, dss 323 drivers/gpu/drm/omapdrm/dss/dss.h void dss_sdi_init(struct dss_device *dss, int datapairs); dss 324 drivers/gpu/drm/omapdrm/dss/dss.h int dss_sdi_enable(struct dss_device *dss); dss 325 drivers/gpu/drm/omapdrm/dss/dss.h void dss_sdi_disable(struct dss_device *dss); dss 327 drivers/gpu/drm/omapdrm/dss/dss.h void dss_select_dsi_clk_source(struct dss_device *dss, int dsi_module, dss 329 drivers/gpu/drm/omapdrm/dss/dss.h void dss_select_lcd_clk_source(struct dss_device *dss, dss 332 drivers/gpu/drm/omapdrm/dss/dss.h enum dss_clk_source dss_get_dispc_clk_source(struct dss_device *dss); dss 333 drivers/gpu/drm/omapdrm/dss/dss.h enum dss_clk_source dss_get_dsi_clk_source(struct dss_device *dss, dss 335 drivers/gpu/drm/omapdrm/dss/dss.h enum dss_clk_source dss_get_lcd_clk_source(struct dss_device *dss, dss 338 drivers/gpu/drm/omapdrm/dss/dss.h void dss_set_venc_output(struct dss_device *dss, enum omap_dss_venc_type type); dss 339 drivers/gpu/drm/omapdrm/dss/dss.h void dss_set_dac_pwrdn_bgz(struct dss_device *dss, bool enable); dss 341 drivers/gpu/drm/omapdrm/dss/dss.h int dss_set_fck_rate(struct dss_device *dss, unsigned long rate); dss 344 drivers/gpu/drm/omapdrm/dss/dss.h bool dss_div_calc(struct dss_device *dss, unsigned long pck, dss 349 drivers/gpu/drm/omapdrm/dss/dss.h int sdi_init_port(struct dss_device *dss, struct platform_device *pdev, dss 353 drivers/gpu/drm/omapdrm/dss/dss.h static inline int sdi_init_port(struct dss_device *dss, dss 374 drivers/gpu/drm/omapdrm/dss/dss.h int dpi_init_port(struct dss_device *dss, struct platform_device *pdev, dss 378 drivers/gpu/drm/omapdrm/dss/dss.h static inline int dpi_init_port(struct dss_device *dss, dss 446 drivers/gpu/drm/omapdrm/dss/dss.h int dss_pll_register(struct dss_device *dss, struct dss_pll *pll); dss 448 drivers/gpu/drm/omapdrm/dss/dss.h struct dss_pll *dss_pll_find(struct dss_device *dss, const char *name); dss 449 drivers/gpu/drm/omapdrm/dss/dss.h struct dss_pll *dss_pll_find_by_src(struct dss_device *dss, dss 318 drivers/gpu/drm/omapdrm/dss/hdmi.h int hdmi_pll_init(struct dss_device *dss, struct platform_device *pdev, dss 351 drivers/gpu/drm/omapdrm/dss/hdmi.h struct dss_device *dss; dss 118 drivers/gpu/drm/omapdrm/dss/hdmi4.c dss_select_hdmi_venc_clk_source(hdmi->dss, DSS_HDMI_M_PCLK); dss 249 drivers/gpu/drm/omapdrm/dss/hdmi4.c dispc_set_tv_pclk(hdmi->dss->dispc, mode->clock * 1000); dss 399 drivers/gpu/drm/omapdrm/dss/hdmi4.c return omapdss_device_connect(dst->dss, dst, dst->next); dss 602 drivers/gpu/drm/omapdrm/dss/hdmi4.c struct dss_device *dss = dss_get_device(master); dss 606 drivers/gpu/drm/omapdrm/dss/hdmi4.c hdmi->dss = dss; dss 612 drivers/gpu/drm/omapdrm/dss/hdmi4.c r = hdmi_pll_init(dss, hdmi->pdev, &hdmi->pll, &hdmi->wp); dss 626 drivers/gpu/drm/omapdrm/dss/hdmi4.c hdmi->debugfs = dss_debugfs_create_file(dss, "hdmi", hdmi_dump_regs, dss 122 drivers/gpu/drm/omapdrm/dss/hdmi5.c dss_select_hdmi_venc_clk_source(hdmi->dss, DSS_HDMI_M_PCLK); dss 248 drivers/gpu/drm/omapdrm/dss/hdmi5.c dispc_set_tv_pclk(hdmi->dss->dispc, mode->clock * 1000); dss 404 drivers/gpu/drm/omapdrm/dss/hdmi5.c return omapdss_device_connect(dst->dss, dst, dst->next); dss 601 drivers/gpu/drm/omapdrm/dss/hdmi5.c struct dss_device *dss = dss_get_device(master); dss 605 drivers/gpu/drm/omapdrm/dss/hdmi5.c hdmi->dss = dss; dss 607 drivers/gpu/drm/omapdrm/dss/hdmi5.c r = hdmi_pll_init(dss, hdmi->pdev, &hdmi->pll, &hdmi->wp); dss 617 drivers/gpu/drm/omapdrm/dss/hdmi5.c hdmi->debugfs = dss_debugfs_create_file(dss, "hdmi", hdmi_dump_regs, dss 128 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c static int hdmi_init_pll_data(struct dss_device *dss, dss 154 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c r = dss_pll_register(dss, pll); dss 161 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c int hdmi_pll_init(struct dss_device *dss, struct platform_device *pdev, dss 175 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c r = hdmi_init_pll_data(dss, pdev, pll); dss 188 drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c struct device_node *dss, *child; dss 192 drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c dss = of_find_matching_node(NULL, omapdss_of_match); dss 194 drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c if (dss == NULL || !of_device_is_available(dss)) dss 197 drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c omapdss_walk_device(dss, true); dss 199 drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c for_each_available_child_of_node(dss, child) { dss 400 drivers/gpu/drm/omapdrm/dss/omapdss.h struct dss_device *dss; dss 457 drivers/gpu/drm/omapdrm/dss/omapdss.h void omapdss_set_dss(struct dss_device *dss); dss 473 drivers/gpu/drm/omapdrm/dss/omapdss.h int omapdss_device_connect(struct dss_device *dss, dss 540 drivers/gpu/drm/omapdrm/dss/omapdss.h int dss_install_mgr_ops(struct dss_device *dss, dss 543 drivers/gpu/drm/omapdrm/dss/omapdss.h void dss_uninstall_mgr_ops(struct dss_device *dss); dss 627 drivers/gpu/drm/omapdrm/dss/omapdss.h struct dispc_device *dispc_get_dispc(struct dss_device *dss); dss 628 drivers/gpu/drm/omapdrm/dss/omapdss.h const struct dispc_ops *dispc_get_ops(struct dss_device *dss); dss 57 drivers/gpu/drm/omapdrm/dss/output.c int dss_install_mgr_ops(struct dss_device *dss, dss 61 drivers/gpu/drm/omapdrm/dss/output.c if (dss->mgr_ops) dss 64 drivers/gpu/drm/omapdrm/dss/output.c dss->mgr_ops = mgr_ops; dss 65 drivers/gpu/drm/omapdrm/dss/output.c dss->mgr_ops_priv = priv; dss 71 drivers/gpu/drm/omapdrm/dss/output.c void dss_uninstall_mgr_ops(struct dss_device *dss) dss 73 drivers/gpu/drm/omapdrm/dss/output.c dss->mgr_ops = NULL; dss 74 drivers/gpu/drm/omapdrm/dss/output.c dss->mgr_ops_priv = NULL; dss 81 drivers/gpu/drm/omapdrm/dss/output.c dssdev->dss->mgr_ops->set_timings(dssdev->dss->mgr_ops_priv, dss 89 drivers/gpu/drm/omapdrm/dss/output.c dssdev->dss->mgr_ops->set_lcd_config(dssdev->dss->mgr_ops_priv, dss 96 drivers/gpu/drm/omapdrm/dss/output.c return dssdev->dss->mgr_ops->enable(dssdev->dss->mgr_ops_priv, dss 103 drivers/gpu/drm/omapdrm/dss/output.c dssdev->dss->mgr_ops->disable(dssdev->dss->mgr_ops_priv, dss 110 drivers/gpu/drm/omapdrm/dss/output.c dssdev->dss->mgr_ops->start_update(dssdev->dss->mgr_ops_priv, dss 118 drivers/gpu/drm/omapdrm/dss/output.c struct dss_device *dss = dssdev->dss; dss 120 drivers/gpu/drm/omapdrm/dss/output.c return dss->mgr_ops->register_framedone_handler(dss->mgr_ops_priv, dss 129 drivers/gpu/drm/omapdrm/dss/output.c struct dss_device *dss = dssdev->dss; dss 131 drivers/gpu/drm/omapdrm/dss/output.c dss->mgr_ops->unregister_framedone_handler(dss->mgr_ops_priv, dss 28 drivers/gpu/drm/omapdrm/dss/pll.c int dss_pll_register(struct dss_device *dss, struct dss_pll *pll) dss 32 drivers/gpu/drm/omapdrm/dss/pll.c for (i = 0; i < ARRAY_SIZE(dss->plls); ++i) { dss 33 drivers/gpu/drm/omapdrm/dss/pll.c if (!dss->plls[i]) { dss 34 drivers/gpu/drm/omapdrm/dss/pll.c dss->plls[i] = pll; dss 35 drivers/gpu/drm/omapdrm/dss/pll.c pll->dss = dss; dss 45 drivers/gpu/drm/omapdrm/dss/pll.c struct dss_device *dss = pll->dss; dss 48 drivers/gpu/drm/omapdrm/dss/pll.c for (i = 0; i < ARRAY_SIZE(dss->plls); ++i) { dss 49 drivers/gpu/drm/omapdrm/dss/pll.c if (dss->plls[i] == pll) { dss 50 drivers/gpu/drm/omapdrm/dss/pll.c dss->plls[i] = NULL; dss 51 drivers/gpu/drm/omapdrm/dss/pll.c pll->dss = NULL; dss 57 drivers/gpu/drm/omapdrm/dss/pll.c struct dss_pll *dss_pll_find(struct dss_device *dss, const char *name) dss 61 drivers/gpu/drm/omapdrm/dss/pll.c for (i = 0; i < ARRAY_SIZE(dss->plls); ++i) { dss 62 drivers/gpu/drm/omapdrm/dss/pll.c if (dss->plls[i] && strcmp(dss->plls[i]->name, name) == 0) dss 63 drivers/gpu/drm/omapdrm/dss/pll.c return dss->plls[i]; dss 69 drivers/gpu/drm/omapdrm/dss/pll.c struct dss_pll *dss_pll_find_by_src(struct dss_device *dss, dss 80 drivers/gpu/drm/omapdrm/dss/pll.c return dss_pll_find(dss, "hdmi"); dss 85 drivers/gpu/drm/omapdrm/dss/pll.c pll = dss_pll_find(dss, "dsi0"); dss 87 drivers/gpu/drm/omapdrm/dss/pll.c pll = dss_pll_find(dss, "video0"); dss 93 drivers/gpu/drm/omapdrm/dss/pll.c pll = dss_pll_find(dss, "dsi1"); dss 95 drivers/gpu/drm/omapdrm/dss/pll.c pll = dss_pll_find(dss, "video1"); dss 23 drivers/gpu/drm/omapdrm/dss/sdi.c struct dss_device *dss; dss 64 drivers/gpu/drm/omapdrm/dss/sdi.c return dispc_div_calc(ctx->sdi->dss->dispc, fck, dss 96 drivers/gpu/drm/omapdrm/dss/sdi.c ok = dss_div_calc(sdi->dss, pclk, ctx.pck_min, dss 132 drivers/gpu/drm/omapdrm/dss/sdi.c r = dispc_runtime_get(sdi->dss->dispc); dss 142 drivers/gpu/drm/omapdrm/dss/sdi.c r = dss_set_fck_rate(sdi->dss, fck); dss 159 drivers/gpu/drm/omapdrm/dss/sdi.c dispc_mgr_set_clock_div(sdi->dss->dispc, sdi->output.dispc_channel, dss 162 drivers/gpu/drm/omapdrm/dss/sdi.c dss_sdi_init(sdi->dss, sdi->datapairs); dss 163 drivers/gpu/drm/omapdrm/dss/sdi.c r = dss_sdi_enable(sdi->dss); dss 175 drivers/gpu/drm/omapdrm/dss/sdi.c dss_sdi_disable(sdi->dss); dss 179 drivers/gpu/drm/omapdrm/dss/sdi.c dispc_runtime_put(sdi->dss->dispc); dss 190 drivers/gpu/drm/omapdrm/dss/sdi.c dss_sdi_disable(sdi->dss); dss 192 drivers/gpu/drm/omapdrm/dss/sdi.c dispc_runtime_put(sdi->dss->dispc); dss 237 drivers/gpu/drm/omapdrm/dss/sdi.c return omapdss_device_connect(dst->dss, dst, dst->next); dss 289 drivers/gpu/drm/omapdrm/dss/sdi.c int sdi_init_port(struct dss_device *dss, struct platform_device *pdev, dss 315 drivers/gpu/drm/omapdrm/dss/sdi.c sdi->dss = dss; dss 294 drivers/gpu/drm/omapdrm/dss/venc.c struct dss_device *dss; dss 432 drivers/gpu/drm/omapdrm/dss/venc.c dss_set_venc_output(venc->dss, venc->type); dss 433 drivers/gpu/drm/omapdrm/dss/venc.c dss_set_dac_pwrdn_bgz(venc->dss, 1); dss 461 drivers/gpu/drm/omapdrm/dss/venc.c dss_set_dac_pwrdn_bgz(venc->dss, 0); dss 471 drivers/gpu/drm/omapdrm/dss/venc.c dss_set_dac_pwrdn_bgz(venc->dss, 0); dss 571 drivers/gpu/drm/omapdrm/dss/venc.c dispc_set_tv_pclk(venc->dss->dispc, 13500000); dss 679 drivers/gpu/drm/omapdrm/dss/venc.c return omapdss_device_connect(dst->dss, dst, dst->next); dss 707 drivers/gpu/drm/omapdrm/dss/venc.c struct dss_device *dss = dss_get_device(master); dss 712 drivers/gpu/drm/omapdrm/dss/venc.c venc->dss = dss; dss 723 drivers/gpu/drm/omapdrm/dss/venc.c venc->debugfs = dss_debugfs_create_file(dss, "venc", venc_dump_regs, dss 59 drivers/gpu/drm/omapdrm/dss/video-pll.c r = dss_runtime_get(pll->dss); dss 78 drivers/gpu/drm/omapdrm/dss/video-pll.c dss_runtime_put(pll->dss); dss 93 drivers/gpu/drm/omapdrm/dss/video-pll.c dss_runtime_put(pll->dss); dss 132 drivers/gpu/drm/omapdrm/dss/video-pll.c struct dss_pll *dss_video_pll_init(struct dss_device *dss, dss 187 drivers/gpu/drm/omapdrm/dss/video-pll.c r = dss_pll_register(dss, pll); dss 770 drivers/gpu/drm/omapdrm/omap_crtc.c dss_install_mgr_ops(priv->dss, &mgr_ops, priv); dss 775 drivers/gpu/drm/omapdrm/omap_crtc.c dss_uninstall_mgr_ops(priv->dss); dss 157 drivers/gpu/drm/omapdrm/omap_drv.c r = omapdss_device_connect(priv->dss, NULL, output); dss 574 drivers/gpu/drm/omapdrm/omap_drv.c priv->dss = omapdss_get_dss(); dss 575 drivers/gpu/drm/omapdrm/omap_drv.c priv->dispc = dispc_get_dispc(priv->dss); dss 576 drivers/gpu/drm/omapdrm/omap_drv.c priv->dispc_ops = dispc_get_ops(priv->dss); dss 48 drivers/gpu/drm/omapdrm/omap_drv.h struct dss_device *dss; dss 150 drivers/spi/spi-ep93xx.c u8 dss = bits_per_word_to_dss(xfer->bits_per_word); dss 163 drivers/spi/spi-ep93xx.c cr0 |= dss; dss 166 drivers/spi/spi-ep93xx.c spi->mode, div_cpsr, div_scr, dss); dss 98 drivers/video/fbdev/omap2/omapfb/dss/core.c DEFINE_SHOW_ATTRIBUTE(dss); dss 95 drivers/video/fbdev/omap2/omapfb/dss/dss.c } dss; dss 115 drivers/video/fbdev/omap2/omapfb/dss/dss.c __raw_writel(val, dss.base + idx.idx); dss 120 drivers/video/fbdev/omap2/omapfb/dss/dss.c return __raw_readl(dss.base + idx.idx); dss 124 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.ctx[(DSS_##reg).idx / sizeof(u32)] = dss_read_reg(DSS_##reg) dss 126 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss_write_reg(DSS_##reg, dss.ctx[(DSS_##reg).idx / sizeof(u32)]) dss 140 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.ctx_valid = true; dss 149 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (!dss.ctx_valid) dss 171 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (!dss.syscon_pll_ctrl) dss 191 drivers/video/fbdev/omap2/omapfb/dss/dss.c regmap_update_bits(dss.syscon_pll_ctrl, dss.syscon_pll_ctrl_offset, dss 200 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (!dss.syscon_pll_ctrl) dss 255 drivers/video/fbdev/omap2/omapfb/dss/dss.c regmap_update_bits(dss.syscon_pll_ctrl, dss.syscon_pll_ctrl_offset, dss 363 drivers/video/fbdev/omap2/omapfb/dss/dss.c fclk_rate = clk_get_rate(dss.dss_clk); dss 419 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.dispc_clk_source = clk_src; dss 447 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.dsi_clk_source[dsi_module] = clk_src; dss 484 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.lcd_clk_source[ix] = clk_src; dss 489 drivers/video/fbdev/omap2/omapfb/dss/dss.c return dss.dispc_clk_source; dss 494 drivers/video/fbdev/omap2/omapfb/dss/dss.c return dss.dsi_clk_source[dsi_module]; dss 502 drivers/video/fbdev/omap2/omapfb/dss/dss.c return dss.lcd_clk_source[ix]; dss 506 drivers/video/fbdev/omap2/omapfb/dss/dss.c return dss.dispc_clk_source; dss 522 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (dss.parent_clk == NULL) { dss 529 drivers/video/fbdev/omap2/omapfb/dss/dss.c fck = clk_round_rate(dss.dss_clk, fck); dss 534 drivers/video/fbdev/omap2/omapfb/dss/dss.c fckd_hw_max = dss.feat->fck_div_max; dss 536 drivers/video/fbdev/omap2/omapfb/dss/dss.c m = dss.feat->dss_fck_multiplier; dss 537 drivers/video/fbdev/omap2/omapfb/dss/dss.c prate = clk_get_rate(dss.parent_clk); dss 560 drivers/video/fbdev/omap2/omapfb/dss/dss.c r = clk_set_rate(dss.dss_clk, rate); dss 564 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.dss_clk_rate = clk_get_rate(dss.dss_clk); dss 566 drivers/video/fbdev/omap2/omapfb/dss/dss.c WARN_ONCE(dss.dss_clk_rate != rate, dss 567 drivers/video/fbdev/omap2/omapfb/dss/dss.c "clk rate mismatch: %lu != %lu", dss.dss_clk_rate, dss 575 drivers/video/fbdev/omap2/omapfb/dss/dss.c return dss.dss_clk_rate; dss 587 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (dss.parent_clk == NULL) { dss 588 drivers/video/fbdev/omap2/omapfb/dss/dss.c fck = clk_round_rate(dss.dss_clk, max_dss_fck); dss 590 drivers/video/fbdev/omap2/omapfb/dss/dss.c prate = clk_get_rate(dss.parent_clk); dss 592 drivers/video/fbdev/omap2/omapfb/dss/dss.c fck_div = DIV_ROUND_UP(prate * dss.feat->dss_fck_multiplier, dss 594 drivers/video/fbdev/omap2/omapfb/dss/dss.c fck = DIV_ROUND_UP(prate, fck_div) * dss.feat->dss_fck_multiplier; dss 728 drivers/video/fbdev/omap2/omapfb/dss/dss.c return dss.feat->dpi_select_source(port, channel); dss 735 drivers/video/fbdev/omap2/omapfb/dss/dss.c clk = devm_clk_get(&dss.pdev->dev, "fck"); dss 741 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.dss_clk = clk; dss 743 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (dss.feat->parent_clk_name) { dss 744 drivers/video/fbdev/omap2/omapfb/dss/dss.c clk = clk_get(NULL, dss.feat->parent_clk_name); dss 746 drivers/video/fbdev/omap2/omapfb/dss/dss.c DSSERR("Failed to get %s\n", dss.feat->parent_clk_name); dss 753 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.parent_clk = clk; dss 760 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (dss.parent_clk) dss 761 drivers/video/fbdev/omap2/omapfb/dss/dss.c clk_put(dss.parent_clk); dss 770 drivers/video/fbdev/omap2/omapfb/dss/dss.c r = pm_runtime_get_sync(&dss.pdev->dev); dss 781 drivers/video/fbdev/omap2/omapfb/dss/dss.c r = pm_runtime_put_sync(&dss.pdev->dev); dss 928 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (dss.feat->num_ports == 0) dss 939 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (reg >= dss.feat->num_ports) dss 942 drivers/video/fbdev/omap2/omapfb/dss/dss.c port_type = dss.feat->ports[reg]; dss 975 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (dss.feat->num_ports == 0) dss 987 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (reg >= dss.feat->num_ports) dss 990 drivers/video/fbdev/omap2/omapfb/dss/dss.c port_type = dss.feat->ports[reg]; dss 1015 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.syscon_pll_ctrl = syscon_regmap_lookup_by_phandle(np, dss 1017 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (IS_ERR(dss.syscon_pll_ctrl)) { dss 1020 drivers/video/fbdev/omap2/omapfb/dss/dss.c return PTR_ERR(dss.syscon_pll_ctrl); dss 1024 drivers/video/fbdev/omap2/omapfb/dss/dss.c &dss.syscon_pll_ctrl_offset)) { dss 1050 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.video1_pll = dss_video_pll_init(pdev, 0, pll_regulator); dss 1051 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (IS_ERR(dss.video1_pll)) dss 1052 drivers/video/fbdev/omap2/omapfb/dss/dss.c return PTR_ERR(dss.video1_pll); dss 1056 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.video2_pll = dss_video_pll_init(pdev, 1, pll_regulator); dss 1057 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (IS_ERR(dss.video2_pll)) { dss 1058 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss_video_pll_uninit(dss.video1_pll); dss 1059 drivers/video/fbdev/omap2/omapfb/dss/dss.c return PTR_ERR(dss.video2_pll); dss 1074 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.pdev = pdev; dss 1076 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.feat = dss_get_features(); dss 1077 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (!dss.feat) dss 1080 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss_mem = platform_get_resource(dss.pdev, IORESOURCE_MEM, 0); dss 1086 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.base = devm_ioremap(&pdev->dev, dss_mem->start, dss 1088 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (!dss.base) { dss 1115 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.dss_clk_rate = clk_get_rate(dss.dss_clk); dss 1127 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.dsi_clk_source[0] = OMAP_DSS_CLK_SRC_FCK; dss 1128 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.dsi_clk_source[1] = OMAP_DSS_CLK_SRC_FCK; dss 1129 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.dispc_clk_source = OMAP_DSS_CLK_SRC_FCK; dss 1130 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.lcd_clk_source[0] = OMAP_DSS_CLK_SRC_FCK; dss 1131 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.lcd_clk_source[1] = OMAP_DSS_CLK_SRC_FCK; dss 1156 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (dss.video1_pll) dss 1157 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss_video_pll_uninit(dss.video1_pll); dss 1159 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (dss.video2_pll) dss 1160 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss_video_pll_uninit(dss.video2_pll); dss 1175 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (dss.video1_pll) dss 1176 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss_video_pll_uninit(dss.video1_pll); dss 1178 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (dss.video2_pll) dss 1179 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss_video_pll_uninit(dss.video2_pll); dss 181 drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c struct device_node *dss, *child; dss 185 drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c dss = of_find_matching_node(NULL, omapdss_of_match); dss 187 drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c if (dss == NULL || !of_device_is_available(dss)) { dss 188 drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c of_node_put(dss); dss 192 drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c omapdss_walk_device(dss, true); dss 194 drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c for_each_available_child_of_node(dss, child) { dss 62 fs/nfs/nfs4client.c struct nfs4_ds_server *dss; dss 65 fs/nfs/nfs4client.c list_for_each_entry_rcu(dss, &ds_clp->cl_ds_clients, list) { dss 66 fs/nfs/nfs4client.c if (dss->rpc_clnt->cl_auth->au_flavor != flavor) dss 70 fs/nfs/nfs4client.c dss = NULL; dss 73 fs/nfs/nfs4client.c return dss; dss 80 fs/nfs/nfs4client.c struct nfs4_ds_server *dss; dss 83 fs/nfs/nfs4client.c list_for_each_entry(dss, &ds_clp->cl_ds_clients, list) { dss 84 fs/nfs/nfs4client.c if (dss->rpc_clnt->cl_auth->au_flavor != flavor) dss 90 fs/nfs/nfs4client.c dss = new; dss 93 fs/nfs/nfs4client.c return dss; dss 99 fs/nfs/nfs4client.c struct nfs4_ds_server *dss; dss 101 fs/nfs/nfs4client.c dss = kmalloc(sizeof(*dss), GFP_NOFS); dss 102 fs/nfs/nfs4client.c if (dss == NULL) dss 105 fs/nfs/nfs4client.c dss->rpc_clnt = rpc_clone_client_set_auth(ds_clp->cl_rpcclient, flavor); dss 106 fs/nfs/nfs4client.c if (IS_ERR(dss->rpc_clnt)) { dss 107 fs/nfs/nfs4client.c int err = PTR_ERR(dss->rpc_clnt); dss 108 fs/nfs/nfs4client.c kfree (dss); dss 111 fs/nfs/nfs4client.c INIT_LIST_HEAD(&dss->list); dss 113 fs/nfs/nfs4client.c return dss; dss 117 fs/nfs/nfs4client.c nfs4_free_ds_server(struct nfs4_ds_server *dss) dss 119 fs/nfs/nfs4client.c rpc_release_client(dss->rpc_clnt); dss 120 fs/nfs/nfs4client.c kfree(dss); dss 134 fs/nfs/nfs4client.c struct nfs4_ds_server *dss, *new; dss 137 fs/nfs/nfs4client.c dss = nfs4_find_ds_client(ds_clp, flavor); dss 138 fs/nfs/nfs4client.c if (dss != NULL) dss 143 fs/nfs/nfs4client.c dss = nfs4_add_ds_client(ds_clp, flavor, new); dss 144 fs/nfs/nfs4client.c if (dss != new) dss 147 fs/nfs/nfs4client.c return dss->rpc_clnt; dss 154 fs/nfs/nfs4client.c struct nfs4_ds_server *dss; dss 157 fs/nfs/nfs4client.c dss = list_entry(clp->cl_ds_clients.next, dss 159 fs/nfs/nfs4client.c list_del(&dss->list); dss 160 fs/nfs/nfs4client.c rpc_shutdown_client(dss->rpc_clnt); dss 161 fs/nfs/nfs4client.c kfree (dss);