/drivers/video/fbdev/omap2/omapfb/dss/ |
D | dpi.c | 146 unsigned long pck, void *data) in dpi_calc_dispc_cb() argument 166 ctx->dispc_cinfo.pck = pck; in dpi_calc_dispc_cb() 219 static bool dpi_dsi_clk_calc(struct dpi_data *dpi, unsigned long pck, in dpi_dsi_clk_calc() argument 227 ctx->pck_min = pck - 1000; in dpi_dsi_clk_calc() 228 ctx->pck_max = pck + 1000; in dpi_dsi_clk_calc() 240 static bool dpi_dss_clk_calc(unsigned long pck, struct dpi_clk_calc_ctx *ctx) in dpi_dss_clk_calc() argument 255 if (pck > 1000 * i * i * i) in dpi_dss_clk_calc() 256 ctx->pck_min = max(pck - 1000 * i * i * i, 0lu); in dpi_dss_clk_calc() 259 ctx->pck_max = pck + 1000 * i * i * i; in dpi_dss_clk_calc() 261 ok = dss_div_calc(pck, ctx->pck_min, dpi_calc_dss_cb, ctx); in dpi_dss_clk_calc() [all …]
|
D | sdi.c | 47 unsigned long pck, void *data) in dpi_calc_dispc_cb() argument 54 ctx->dispc_cinfo.pck = pck; in dpi_calc_dispc_cb() 125 unsigned long pck; in sdi_display_enable() local 151 pck = fck / dispc_cinfo.lck_div / dispc_cinfo.pck_div; in sdi_display_enable() 153 if (pck != t->pixelclock) { in sdi_display_enable() 155 t->pixelclock, pck); in sdi_display_enable() 157 t->pixelclock = pck; in sdi_display_enable()
|
D | dsi.c | 4354 unsigned long pck = t->pixelclock; in print_dispc_vm() local 4361 #define TO_DISPC_T(x) ((u32)div64_u64((u64)x * 1000000000llu, pck)) in print_dispc_vm() 4366 pck, in print_dispc_vm() 4385 unsigned long pck; in print_dsi_dispc_vm() local 4390 pck = (u32)div64_u64(dsi_tput, t->bitspp); in print_dsi_dispc_vm() 4394 vm.pixelclock = pck; in print_dsi_dispc_vm() 4395 vm.hsw = div64_u64((u64)(t->hsa + t->hse) * pck, byteclk); in print_dsi_dispc_vm() 4396 vm.hbp = div64_u64((u64)t->hbp * pck, byteclk); in print_dsi_dispc_vm() 4397 vm.hfp = div64_u64((u64)t->hfp * pck, byteclk); in print_dsi_dispc_vm() 4405 unsigned long pck, void *data) in dsi_cm_calc_dispc_cb() argument [all …]
|
D | dss.h | 167 unsigned long pck; member 296 bool dss_div_calc(unsigned long pck, unsigned long fck_min, 373 unsigned long pck, void *data);
|
D | dss.c | 510 bool dss_div_calc(unsigned long pck, unsigned long fck_min, in dss_div_calc() argument 525 pckd = fck_hw_max / pck; in dss_div_calc() 527 fck = pck * pckd; in dss_div_calc()
|
D | dispc.c | 3587 cinfo->pck = cinfo->lck / cinfo->pck_div; in dispc_calc_clock_rates() 3598 unsigned long pck, lck; in dispc_div_calc() local 3628 pck = lck / pckd; in dispc_div_calc() 3641 if (fck < pck * min_fck_per_pck) in dispc_div_calc() 3644 if (func(lckd, pckd, lck, pck, data)) in dispc_div_calc() 3656 DSSDBG("pck = %lu (%u)\n", cinfo->pck, cinfo->pck_div); in dispc_mgr_set_clock_div() 3672 cinfo->pck = cinfo->lck / cinfo->pck_div; in dispc_mgr_get_clock_div()
|
/drivers/clk/at91/ |
D | at91sam9260.c | 16 struct pck { struct 28 const struct pck *pck; member 82 static const struct pck at91sam9260_periphck[] = { 118 .pck = at91sam9260_periphck, 176 .pck = at91sam9260_periphck, 227 static const struct pck at91sam9261_periphck[] = { 257 .pck = at91sam9261_periphck, 289 static const struct pck at91sam9263_periphck[] = { 324 .pck = at91sam9263_periphck, 359 ndck(data->pck, data->num_pck), in at91sam926x_pmc_setup() [all …]
|
D | at91sam9x5.c | 61 struct pck { struct 66 static const struct pck at91sam9x5_periphck[] = { argument 92 static const struct pck at91sam9g15_periphck[] = { 97 static const struct pck at91sam9g25_periphck[] = { 104 static const struct pck at91sam9g35_periphck[] = { 110 static const struct pck at91sam9x25_periphck[] = { 119 static const struct pck at91sam9x35_periphck[] = { 128 const struct pck *extra_pcks, in at91sam9x5_pmc_setup()
|
D | pmc.c | 159 void pmc_register_pck(u8 pck) in pmc_register_pck() argument 165 registered_pcks[i] = pck + 1; in pmc_register_pck() 168 if (registered_pcks[i] == (pck + 1)) in pmc_register_pck()
|
D | at91rm9200.c | 18 struct pck { struct 51 static const struct pck at91rm9200_periphck[] = {
|
D | at91sam9g45.c | 51 struct pck { struct 56 static const struct pck at91sam9g45_periphck[] = { argument
|
D | at91sam9n12.c | 74 struct pck { struct 79 static const struct pck at91sam9n12_periphck[] = { argument
|
D | pmc.h | 253 void pmc_register_pck(u8 pck); 256 static inline void pmc_register_pck(u8 pck) {} in pmc_register_pck() argument
|
/drivers/gpu/drm/omapdrm/dss/ |
D | dpi.c | 152 unsigned long pck, void *data) in dpi_calc_dispc_cb() argument 172 ctx->dispc_cinfo.pck = pck; in dpi_calc_dispc_cb() 219 static bool dpi_pll_clk_calc(struct dpi_data *dpi, unsigned long pck, in dpi_pll_clk_calc() argument 233 ctx->pck_min = pck - 1000; in dpi_pll_clk_calc() 234 ctx->pck_max = pck + 1000; in dpi_pll_clk_calc() 243 dss_pll_calc_b(dpi->pll, clkin, pck, &ctx->pll_cinfo); in dpi_pll_clk_calc() 248 ctx->dispc_cinfo.pck = ctx->dispc_cinfo.lck; in dpi_pll_clk_calc() 254 static bool dpi_dss_clk_calc(struct dpi_data *dpi, unsigned long pck, in dpi_dss_clk_calc() argument 271 if (pck > 1000 * i * i * i) in dpi_dss_clk_calc() 272 ctx->pck_min = max(pck - 1000 * i * i * i, 0lu); in dpi_dss_clk_calc() [all …]
|
D | sdi.c | 50 unsigned long pck, void *data) in dpi_calc_dispc_cb() argument 57 ctx->dispc_cinfo.pck = pck; in dpi_calc_dispc_cb() 170 unsigned long pck; in sdi_bridge_mode_fixup() local 177 pck = fck / dispc_cinfo.lck_div / dispc_cinfo.pck_div; in sdi_bridge_mode_fixup() 179 if (pck != pixelclock) in sdi_bridge_mode_fixup() 182 pixelclock, pck); in sdi_bridge_mode_fixup() 184 adjusted_mode->clock = pck / 1000; in sdi_bridge_mode_fixup()
|
D | dsi.c | 3611 unsigned long pck = vm->pixelclock; in print_dispc_vm() local 3618 #define TO_DISPC_T(x) ((u32)div64_u64((u64)x * 1000000000llu, pck)) in print_dispc_vm() 3623 pck, in print_dispc_vm() 3642 unsigned long pck; in print_dsi_dispc_vm() local 3647 pck = (u32)div64_u64(dsi_tput, t->bitspp); in print_dsi_dispc_vm() 3651 vm.pixelclock = pck; in print_dsi_dispc_vm() 3652 vm.hsync_len = div64_u64((u64)(t->hsa + t->hse) * pck, byteclk); in print_dsi_dispc_vm() 3653 vm.hback_porch = div64_u64((u64)t->hbp * pck, byteclk); in print_dsi_dispc_vm() 3654 vm.hfront_porch = div64_u64((u64)t->hfp * pck, byteclk); in print_dsi_dispc_vm() 3662 unsigned long pck, void *data) in dsi_cm_calc_dispc_cb() argument [all …]
|
D | dss.h | 202 unsigned long pck; member 342 bool dss_div_calc(struct dss_device *dss, unsigned long pck, 472 unsigned long pck, void *data);
|
D | dss.c | 598 bool dss_div_calc(struct dss_device *dss, unsigned long pck, in dss_div_calc() argument 613 pckd = fck_hw_max / pck; in dss_div_calc() 615 fck = pck * pckd; in dss_div_calc()
|
D | dispc.c | 3661 cinfo->pck = cinfo->lck / cinfo->pck_div; in dispc_calc_clock_rates() 3672 unsigned long pck, lck; in dispc_div_calc() local 3702 pck = lck / pckd; in dispc_div_calc() 3715 if (fck < pck * min_fck_per_pck) in dispc_div_calc() 3718 if (func(lckd, pckd, lck, pck, data)) in dispc_div_calc() 3731 DSSDBG("pck = %lu (%u)\n", cinfo->pck, cinfo->pck_div); in dispc_mgr_set_clock_div() 3749 cinfo->pck = cinfo->lck / cinfo->pck_div; in dispc_mgr_get_clock_div()
|
/drivers/video/fbdev/omap/ |
D | lcdc.c | 437 static void calc_ck_div(int is_tft, int pck, int *pck_div) in calc_ck_div() argument 441 pck = max(1, pck); in calc_ck_div() 443 *pck_div = (lck + pck - 1) / pck; in calc_ck_div() 452 pck / 1000); in calc_ck_div()
|
/drivers/input/tablet/ |
D | aiptek.c | 419 int retval, macro, x, y, z, left, right, middle, p, dv, tip, bs, pck; in aiptek_irq() local 523 pck = (data[5] & aiptek->curSetting.stylusButtonUpper) != 0 ? 1 : 0; in aiptek_irq() 551 input_report_key(inputdev, BTN_STYLUS2, pck); in aiptek_irq() 658 pck = (data[1] & aiptek->curSetting.stylusButtonUpper) != 0 ? 1 : 0; in aiptek_irq()
|