Home
last modified time | relevance | path

Searched refs:multiplier (Results 1 – 25 of 25) sorted by relevance

/drivers/clk/
Dclk-vt8500.c359 u32 *multiplier, u32 *prediv) in vt8500_find_pll_bits() argument
366 *multiplier = 0; in vt8500_find_pll_bits()
376 *multiplier = rate / (parent_rate / *prediv); in vt8500_find_pll_bits()
377 tclk = (parent_rate / *prediv) * *multiplier; in vt8500_find_pll_bits()
385 u32 *multiplier, u32 *divisor1, u32 *divisor2) in wm8650_find_pll_bits() argument
403 *multiplier = mul; in wm8650_find_pll_bits()
420 *multiplier = best_mul; in wm8650_find_pll_bits()
453 u32 *filter, u32 *multiplier, u32 *divisor1, u32 *divisor2) in wm8750_find_pll_bits() argument
472 *multiplier = mul; in wm8750_find_pll_bits()
491 *multiplier = best_mul; in wm8750_find_pll_bits()
[all …]
DMakefile9 obj-$(CONFIG_COMMON_CLK) += clk-multiplier.o
/drivers/gpu/drm/msm/hdmi/
Dhdmi_audio.c132 uint32_t n, cts, multiplier; in hdmi_audio_update() local
141 multiplier = 4; in hdmi_audio_update()
145 multiplier = 2; in hdmi_audio_update()
148 multiplier = 1; in hdmi_audio_update()
151 DBG("n=%u, cts=%u, multiplier=%u", n, cts, multiplier); in hdmi_audio_update()
155 acr_pkt_ctrl |= HDMI_ACR_PKT_CTRL_N_MULTIPLIER(multiplier); in hdmi_audio_update()
/drivers/video/fbdev/aty/
Dmach64_ct.c122 u32 multiplier, divider, ras_multiplier, ras_divider, tmp; in aty_dsp_gt() local
126 multiplier = ((u32)pll->mclk_fb_div) * pll->vclk_post_div_real; in aty_dsp_gt()
144 multiplier = multiplier * par->lcd_width; in aty_dsp_gt()
153 while (((multiplier | divider) & 1) == 0) { in aty_dsp_gt()
154 multiplier = multiplier >> 1; in aty_dsp_gt()
159 tmp = ((multiplier * pll->fifo_size) << vshift) / divider; in aty_dsp_gt()
172 dsp_off = ((multiplier * (pll->fifo_size - 1)) << vshift) / divider - in aty_dsp_gt()
179 dsp_on = ((multiplier << vshift) + divider) / divider; in aty_dsp_gt()
191 dsp_on = dsp_off - (multiplier << vshift) / divider; in aty_dsp_gt()
196 dsp_xclks = ((multiplier << (vshift + 5)) + divider) / divider; in aty_dsp_gt()
/drivers/video/fbdev/via/
Dvia_clock.h41 u16 multiplier; member
65 return ref_freq / pll.divisor * pll.multiplier; in get_pll_internal_frequency()
Dvia_clock.c38 return (pll.multiplier << 8) in cle266_encode_pll()
47 | (pll.multiplier - 2); in k800_encode_pll()
54 | pll.multiplier; in vx855_encode_pll()
Dhw.c1398 cur.multiplier = clk / ((f0 / cur.divisor)>>cur.rshift); in get_pll_config()
1401 up.multiplier++; in get_pll_config()
1402 down.multiplier--; in get_pll_config()
1408 if (cur.multiplier < limits[i].multiplier_min) in get_pll_config()
1409 cur.multiplier = limits[i].multiplier_min; in get_pll_config()
1410 else if (cur.multiplier > limits[i].multiplier_max) in get_pll_config()
1411 cur.multiplier = limits[i].multiplier_max; in get_pll_config()
/drivers/gpu/drm/gma500/
Dpsb_intel_drv.h74 int multiplier) in psb_intel_mode_set_pixel_multiplier() argument
76 mode->clock *= multiplier; in psb_intel_mode_set_pixel_multiplier()
77 mode->private_flags |= multiplier; in psb_intel_mode_set_pixel_multiplier()
Dpsb_intel_sdvo.c954 int multiplier; in psb_intel_sdvo_mode_fixup() local
981 multiplier = psb_intel_sdvo_get_pixel_multiplier(adjusted_mode); in psb_intel_sdvo_mode_fixup()
982 psb_intel_mode_set_pixel_multiplier(adjusted_mode, multiplier); in psb_intel_sdvo_mode_fixup()
/drivers/tty/vt/
Dselection.c171 int i, ps, pe, multiplier; in __set_selection() local
304 multiplier = use_unicode ? 3 : 1; /* chars can take up to 3 bytes */ in __set_selection()
305 bp = kmalloc(((sel_end-sel_start)/2+1)*multiplier, GFP_KERNEL); in __set_selection()
/drivers/scsi/be2iscsi/
Dbe_cmds.c789 u32 multiplier; in eq_delay_to_mult() local
792 multiplier = 0; in eq_delay_to_mult()
796 multiplier = 1023; in eq_delay_to_mult()
798 multiplier = (MAX_INTR_RATE - interrupt_rate) * round; in eq_delay_to_mult()
799 multiplier /= interrupt_rate; in eq_delay_to_mult()
800 multiplier = (multiplier + round / 2) / round; in eq_delay_to_mult()
801 multiplier = min(multiplier, (u32) 1023); in eq_delay_to_mult()
804 return multiplier; in eq_delay_to_mult()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb.c47 int min_credit, multiplier; in ixgbe_ieee_credits() local
58 multiplier = (min_credit / min_percent) + 1; in ixgbe_ieee_credits()
62 int val = min(bw[i] * multiplier, MAX_CREDIT_REFILL); in ixgbe_ieee_credits()
/drivers/media/pci/cobalt/
Dcobalt-cpld.c135 struct multiplier { struct
143 static const struct multiplier multipliers[] = { argument
/drivers/hwmon/
Dibmpex.c72 int multiplier; member
285 int mult = data->sensors[attr->index].multiplier; in ibmpex_show_sensor()
404 data->sensors[i].multiplier = in ibmpex_find_sensors()
413 data->sensors[i].multiplier = 1000; in ibmpex_find_sensors()
Dabituguru3.c137 int multiplier; member
858 value = (value * sensor->multiplier) / sensor->divisor + in show_value()
/drivers/staging/clocking-wizard/
DTODO2 - support for fractional multiplier
/drivers/staging/speakup/
Dvarhandlers.c221 if (var_data->u.n.multiplier != 0) in spk_set_num_var()
222 val *= var_data->u.n.multiplier; in spk_set_num_var()
Dspk_types.h116 short offset, multiplier; /* for fiddling rates etc. */ member
/drivers/scsi/sym53c8xx_2/
Dsym_hipd.c250 if (np->multiplier <= 1) { in sym_selectclock()
395 np->multiplier = 1; in sym_getclock()
403 np->multiplier = mult; in sym_getclock()
411 if (np->multiplier != mult || (scntl3 & 7) < 3 || !(scntl3 & 1)) { in sym_getclock()
426 np->multiplier = mult; in sym_getclock()
433 f1 /= np->multiplier; in sym_getclock()
439 f1 *= np->multiplier; in sym_getclock()
706 np->multiplier = 4;
708 np->multiplier = 2;
710 np->multiplier = 1;
[all …]
Dsym_hipd.h933 u_char multiplier; /* Clock multiplier (1,2,4) */ member
/drivers/scsi/
Dncr53c8xx.c1692 u_char multiplier; /* Clock multiplier (1,2,4) */ member
3784 np->multiplier = 4; in ncr_prepare_setting()
3786 np->multiplier = 2; in ncr_prepare_setting()
3788 np->multiplier = 1; in ncr_prepare_setting()
3795 ncr_getclock(np, np->multiplier); in ncr_prepare_setting()
7822 if (np->multiplier < 2) {
7831 if (np->multiplier > 2) { /* Poll bit 5 of stest4 for quadrupler */
7906 np->multiplier = 1;
7915 np->multiplier = mult;
7923 if (np->multiplier != mult || (scntl3 & 7) < 3 || !(scntl3 & 1)) {
[all …]
/drivers/atm/
Dlanai.c1483 struct lanai_buffer *buf, int max_sdu, int multiplier, in lanai_get_sized_buffer() argument
1490 size = (max_sdu + 16) * multiplier + 16; in lanai_get_sized_buffer()
1514 int max_sdu, multiplier; in lanai_setup_tx_vci() local
1518 multiplier = AAL0_TX_MULTIPLIER; in lanai_setup_tx_vci()
1522 multiplier = AAL5_TX_MULTIPLIER; in lanai_setup_tx_vci()
1525 multiplier, "TX"); in lanai_setup_tx_vci()
/drivers/media/usb/uvc/
Duvc_driver.c282 uint32_t multiplier; in uvc_fraction_to_interval() local
293 multiplier = 10000000; in uvc_fraction_to_interval()
294 while (numerator > ((uint32_t)-1)/multiplier) { in uvc_fraction_to_interval()
295 multiplier /= 2; in uvc_fraction_to_interval()
299 return denominator ? numerator * multiplier / denominator : 0; in uvc_fraction_to_interval()
/drivers/ata/
Dpata_octeon_cf.c88 static void octeon_cf_set_boot_reg_cfg(int cs, unsigned int multiplier) in octeon_cf_set_boot_reg_cfg() argument
93 switch (multiplier) { in octeon_cf_set_boot_reg_cfg()
/drivers/gpu/drm/radeon/
Dcypress_dpm.c907 u32 multiplier = pi->mem_gddr5 ? 1 : 2; in cypress_calculate_burst_time() local
908 u32 result = (4 * multiplier * engine_clock) / (memory_clock / 2); in cypress_calculate_burst_time()