Home
last modified time | relevance | path

Searched refs:pck (Results 1 – 21 of 21) sorted by relevance

/drivers/video/fbdev/omap2/omapfb/dss/
Ddpi.c146 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 …]
Dsdi.c47 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()
Ddsi.c4354 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 …]
Ddss.h167 unsigned long pck; member
296 bool dss_div_calc(unsigned long pck, unsigned long fck_min,
373 unsigned long pck, void *data);
Ddss.c510 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()
Ddispc.c3587 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/
Dat91sam9260.c16 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 …]
Dat91sam9x5.c61 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()
Dpmc.c159 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()
Dat91rm9200.c18 struct pck { struct
51 static const struct pck at91rm9200_periphck[] = {
Dat91sam9g45.c51 struct pck { struct
56 static const struct pck at91sam9g45_periphck[] = { argument
Dat91sam9n12.c74 struct pck { struct
79 static const struct pck at91sam9n12_periphck[] = { argument
Dpmc.h253 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/
Ddpi.c152 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 …]
Dsdi.c50 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()
Ddsi.c3611 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 …]
Ddss.h202 unsigned long pck; member
342 bool dss_div_calc(struct dss_device *dss, unsigned long pck,
472 unsigned long pck, void *data);
Ddss.c598 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()
Ddispc.c3661 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/
Dlcdc.c437 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/
Daiptek.c419 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()