Home
last modified time | relevance | path

Searched full:divisors (Results 1 – 25 of 113) sorted by relevance

12345

/linux/drivers/clk/at91/
H A Dclk-usb.c38 u32 divisors[4]; member
316 if (usb->divisors[usbdiv]) in at91rm9200_clk_usb_recalc_rate()
317 return parent_rate / usb->divisors[usbdiv]; in at91rm9200_clk_usb_recalc_rate()
336 if (!usb->divisors[i]) in at91rm9200_clk_usb_round_rate()
339 tmp_parent_rate = rate * usb->divisors[i]; in at91rm9200_clk_usb_round_rate()
341 tmprate = DIV_ROUND_CLOSEST(tmp_parent_rate, usb->divisors[i]); in at91rm9200_clk_usb_round_rate()
373 if (usb->divisors[i] == div) { in at91rm9200_clk_usb_set_rate()
393 const char *parent_name, const u32 *divisors) in at91rm9200_clk_register_usb() argument
412 memcpy(usb->divisors, divisors, sizeof(usb->divisors)); in at91rm9200_clk_register_usb()
H A Dclk-master.c103 rate /= characteristics->divisors[div]; in clk_master_div_recalc_rate()
126 div = master->characteristics->divisors[div]; in clk_master_div_save_context()
147 div = master->characteristics->divisors[div]; in clk_master_div_restore_context()
172 for (i = 0; i < ARRAY_SIZE(characteristics->divisors); i++) { in clk_master_div_set()
173 if (!characteristics->divisors[i]) in clk_master_div_set()
176 if (div == characteristics->divisors[i]) in clk_master_div_set()
179 if (max_div < characteristics->divisors[i]) { in clk_master_div_set()
180 max_div = characteristics->divisors[i]; in clk_master_div_set()
197 rate /= characteristics->divisors[div_index]; in clk_master_div_set()
212 master->div = characteristics->divisors[div_index]; in clk_master_div_set()
[all …]
H A Ddt-compat.c379 of_property_read_u32_array(np, "atmel,clk-divisors", in of_at91_clk_master_get_characteristics()
380 characteristics->divisors, 4); in of_at91_clk_master_get_characteristics()
993 u32 divisors[4] = {0, 0, 0, 0}; in of_at91rm9200_clk_usb_setup() local
1001 of_property_read_u32_array(np, "atmel,clk-divisors", divisors, 4); in of_at91rm9200_clk_usb_setup()
1002 if (!divisors[0]) in of_at91rm9200_clk_usb_setup()
1012 hw = at91rm9200_clk_register_usb(regmap, name, parent_name, divisors); in of_at91rm9200_clk_usb_setup()
H A Dat91sam9260.c39 .divisors = { 1, 2, 4, 0 },
126 .divisors = { 1, 2, 4, 6 },
184 .divisors = { 1, 2, 4, 0 },
264 .divisors = { 1, 2, 4, 0 },
H A Dpmc.h53 u32 divisors[5]; member
287 const char *parent_name, const u32 *divisors);
/linux/sound/soc/codecs/
H A Dmax98925.c208 int divisors[3][2]; member
213 .divisors = { {1, 375}, {5, 1764}, {1, 384} }
218 .divisors = { {147, 40000}, {1, 256}, {147, 40960} }
223 .divisors = { {1, 250}, {5, 1176}, {1, 256} }
228 .divisors = { {2, 375}, {5, 882}, {1, 192} }
233 .divisors = { {147, 20000}, {1, 128}, {147, 20480} }
238 .divisors = { {1, 125}, {5, 588}, {1, 128} }
243 .divisors = { {4, 375}, {5, 441}, {1, 96} }
248 .divisors = { {147, 10000}, {1, 64}, {147, 10240} }
253 .divisors = { {2, 125}, {5, 294}, {1, 64} }
[all …]
/linux/arch/sh/kernel/cpu/sh3/
H A Dclock-sh7712.c19 static int divisors[] = { 1, 2, 3, 4, 6 }; variable
38 return clk->parent->rate / divisors[idx]; in module_clk_recalc()
50 return clk->parent->rate / divisors[idx]; in cpu_clk_recalc()
H A Dclock-sh7705.c23 * SH7705 uses the same divisors as the generic SH-3 case, it's just the
/linux/arch/sh/kernel/cpu/sh4a/
H A Dclock-sh7722.c95 static int divisors[] = { 1, 3, 2, 5, 3, 4, 5, 6, 8, 10, 12, 16, 20 }; variable
98 .divisors = divisors,
99 .nr_divisors = ARRAY_SIZE(divisors),
H A Dclock-sh7343.c89 static int divisors[] = { 1, 3, 2, 5, 3, 4, 5, 6, 8, 10, 12, 16, 20 }; variable
92 .divisors = divisors,
93 .nr_divisors = ARRAY_SIZE(divisors),
H A Dclock-sh7366.c92 static int divisors[] = { 1, 3, 2, 5, 3, 4, 5, 6, 8, 10, 12, 16, 20 }; variable
95 .divisors = divisors,
96 .nr_divisors = ARRAY_SIZE(divisors),
H A Dclock-sh7734.c54 static int divisors[] = { 1, 3, 2, 3, 4, 6, 8, 9, 12, 16, 18, 24 }; variable
57 .divisors = divisors,
58 .nr_divisors = ARRAY_SIZE(divisors),
H A Dclock-sh7723.c96 static int divisors[] = { 1, 3, 2, 5, 3, 4, 5, 6, 8, 10, 12, 16, 20 }; variable
99 .divisors = divisors,
100 .nr_divisors = ARRAY_SIZE(divisors),
H A Dclock-sh7724.c136 static int divisors[] = { 2, 3, 4, 6, 8, 12, 16, 0, 24, 32, 36, 48, 0, 72 }; variable
139 .divisors = divisors,
140 .nr_divisors = ARRAY_SIZE(divisors),
/linux/drivers/clk/versatile/
H A Dicst.c7 * Support functions for calculating clocks/divisors for the ICST307
20 * Divisors for each OD setting.
H A Dicst.h5 * Support functions for calculating clocks/divisors for the ICST
/linux/drivers/misc/
H A Dics932s401.c173 static const int divisors[] = {2, 3, 5, 15, 4, 6, 10, 30, 8, 12, 20, 60, 16, variable
189 freq /= divisors[data->regs[ICS932S401_REG_CPU_DIVISOR] >> in calculate_cpu_freq()
246 freq /= divisors[data->regs[ICS932S401_REG_PCISRC_DIVISOR] & in calculate_src_freq()
294 freq /= divisors[data->regs[ICS932S401_REG_PCISRC_DIVISOR] >> in calculate_pci_freq()
/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A Dsdi.c171 * LCLK and PCLK divisors are located in shadow registers, and we in sdi_display_enable()
174 * is affected by the divisors. And as we need the PLL before enabling in sdi_display_enable()
175 * the output, we need to write the divisors early. in sdi_display_enable()
/linux/include/linux/
H A Dktime.h131 * Negative divisors could cause an inf loop, in ktime_divns()
149 * 32-bit implementation cannot handle negative divisors, in ktime_divns()
/linux/Documentation/hwmon/
H A Duserspace-tools.rst33 4) fix sensors.conf, labels, limits, fan divisors
H A Dasb100.rst70 * Experiment with fan divisors > 8.
/linux/arch/arm/lib/
H A Dlib1funcs.S73 @ For very big divisors, we must shift it a bit at a time, or
160 @ For very big divisors, we must shift it a bit at a time, or
/linux/drivers/video/fbdev/
H A Dcyber2000fb.c68 * Clock divisors
70 u_int divisors[4]; member
670 new_pll = pll_ps / cfb->divisors[div2]; in cyber2000fb_decode_clock()
1414 cfb->divisors[0] = 1; in cyberpro_alloc_fb_info()
1415 cfb->divisors[1] = 2; in cyberpro_alloc_fb_info()
1416 cfb->divisors[2] = 4; in cyberpro_alloc_fb_info()
1419 cfb->divisors[3] = 8; in cyberpro_alloc_fb_info()
1421 cfb->divisors[3] = 6; in cyberpro_alloc_fb_info()
/linux/Documentation/devicetree/bindings/serial/
H A Dmvebu-uart.txt19 of UART. TBG clock (with UART TBG divisors d1=d2=1) or xtal clock
/linux/drivers/clk/renesas/
H A Drcar-gen2-cpg.c201 /* ADSP divisors */
247 /* SDHI divisors */

12345