/linux-master/drivers/power/reset/ |
H A D | qnap-poweroff.c | 55 const unsigned divisor = ((tclk + (8 * cfg->baud)) / (16 * cfg->baud)); local 61 writel(divisor & 0xff, UART1_REG(DLL)); 62 writel((divisor >> 8) & 0xff, UART1_REG(DLM)); 94 /* We need to know tclk in order to calculate the UART divisor */
|
/linux-master/drivers/clk/ |
H A D | clk-vt8500.c | 124 /* div == 0 is actually the highest divisor */ 135 u32 divisor; local 140 divisor = *prate / rate; 142 /* If prate / rate would be decimal, incr the divisor */ 143 if (rate * divisor < *prate) 144 divisor++; 147 * If this is a request for SDMMC we have to adjust the divisor 150 if ((cdev->div_mask == 0x3F) && (divisor > 31)) { 151 divisor = 64 * ((divisor / 6 161 u32 divisor; local [all...] |
/linux-master/drivers/net/wireless/ath/ath9k/ |
H A D | common-beacon.c | 24 unsigned int offset, divisor; local 27 divisor = TU_TO_USEC(interval); 28 div_u64_rem(tsf, divisor, &offset); 30 return (u32) tsf + divisor - offset;
|
/linux-master/drivers/iio/gyro/ |
H A D | mpu3050.h | 51 * @divisor: base frequency divider: divides 8 or 1 kHz 77 u8 divisor; member in struct:mpu3050
|
/linux-master/drivers/tty/serial/8250/ |
H A D | 8250_early.c | 127 unsigned int divisor; local 138 divisor = DIV_ROUND_CLOSEST(port->uartclk, 16 * device->baud); 141 serial8250_early_out(port, UART_DLL, divisor & 0xff); 142 serial8250_early_out(port, UART_DLM, (divisor >> 8) & 0xff);
|
H A D | 8250_pericom.c | 58 unsigned int divisor = max(maxrate / baud, 1U); local 59 int delta = maxrate / divisor - baud; 65 divisor++; 67 if (divisor > 0xffff) 70 /* Update delta due to possible divisor change */ 71 delta = maxrate / divisor - baud; 77 serial_dl_write(up, divisor);
|
/linux-master/drivers/comedi/drivers/ |
H A D | comedi_8254.c | 81 * Calculates the divisor value needed for a single counter to generate 85 * Calculates the two divisor values needed to the generate the pacer 89 * Transfers the intermediate divisor values to the current divisors. 93 * divisor values. 343 * @counter1: the counter number for the first divisor 344 * @counter2: the counter number for the second divisor 384 i8254->divisor = i8254->next_div & 0xffff; 391 * comedi_8254_cascade_ns_to_timer - calculate the cascaded divisor values 476 * comedi_8254_ns_to_timer - calculate the divisor value for nanosec timing 484 unsigned int divisor; local [all...] |
H A D | addi_apci_3120.c | 276 unsigned int divisor; local 280 divisor = DIV_ROUND_UP(ns, timer_base); 283 divisor = ns / timer_base; 287 divisor = DIV_ROUND_CLOSEST(ns, timer_base); 293 if (divisor > 0x00ffffff) 294 divisor = 0x00ffffff; 297 if (divisor > 0xffff) 298 divisor = 0xffff; 300 /* the timers require a minimum divisor of 2 */ 301 if (divisor < 541 unsigned int divisor; local 709 unsigned int divisor; local 822 unsigned int divisor; local [all...] |
/linux-master/arch/arm/lib/ |
H A D | div64.S | 5 * Optimized computation of 64-bit dividend / 32-bit divisor 29 * __do_div64: perform a division with 64-bit dividend and 32-bit divisor. 36 * r4 = divisor (preserved) 50 bls 9f @ divisor is 0 or 1 52 beq 8f @ divisor is power of 2 59 @ Align divisor with upper part of dividend. 60 @ The aligned divisor is stored in yl preserving the original. 102 @ divisor for comparisons, considering the carry-out bit as well. 139 @ divisor at this point since divisor ca [all...] |
/linux-master/drivers/clk/versatile/ |
H A D | icst.c | 30 u32 divisor = (vco.r + 2) * p->s2div[vco.s]; local 32 do_div(dividend, divisor); 39 * Ascending divisor S values. 54 * First, find the PLL output divisor such 71 * Now find the closest divisor combination
|
/linux-master/arch/powerpc/boot/ |
H A D | div64.S | 7 * the 64-bit quotient, and r4 contains the divisor. 22 divwu r7,r5,r4 # if dividend.hi >= divisor, 23 mullw r0,r7,r4 # quotient.hi = dividend.hi / divisor 24 subf. r5,r0,r5 # dividend.hi %= divisor 31 srw r10,r10,r0 # the divisor right the same amount, 41 mulhwu r9,r11,r4 # multiply the estimate by the divisor, 42 subfc r6,r10,r6 # take the product from the divisor,
|
/linux-master/drivers/staging/sm750fb/ |
H A D | ddk750_chip.c | 87 unsigned int reg, divisor; local 104 /* Calculate the divisor */ 105 divisor = DIV_ROUND_CLOSEST(get_mxclk_freq(), frequency); 107 /* Set the corresponding divisor in the register. */ 109 switch (divisor) { 139 unsigned int reg, divisor; local 156 /* Calculate the divisor */ 157 divisor = DIV_ROUND_CLOSEST(get_mxclk_freq(), frequency); 159 /* Set the corresponding divisor in the register. */ 161 switch (divisor) { [all...] |
/linux-master/drivers/mfd/ |
H A D | mcp-sa11x0.c | 45 mcp_sa11x0_set_telecom_divisor(struct mcp *mcp, unsigned int divisor) argument 49 divisor /= 32; 52 m->mccr0 |= divisor << 8; 57 mcp_sa11x0_set_audio_divisor(struct mcp *mcp, unsigned int divisor) argument 61 divisor /= 32; 64 m->mccr0 |= divisor;
|
/linux-master/arch/mips/ralink/ |
H A D | timer.c | 76 static int rt_timer_config(struct rt_timer *rt, unsigned long divisor) argument 78 if (rt->timer_freq < divisor) 81 rt->timer_div = divisor;
|
/linux-master/tools/tracing/rtla/src/ |
H A D | timerlat_top.c | 224 int divisor = params->output_divisor; local 227 if (divisor == 0) 249 trace_seq_printf(s, "%9llu ", (cpu_data->sum_irq / cpu_data->irq_count) / divisor); 250 trace_seq_printf(s, "%9llu |", cpu_data->max_irq / divisor); 259 trace_seq_printf(s, "%9llu ", cpu_data->cur_thread / divisor); 260 trace_seq_printf(s, "%9llu ", cpu_data->min_thread / divisor); 262 (cpu_data->sum_thread / cpu_data->thread_count) / divisor); 263 trace_seq_printf(s, "%9llu", cpu_data->max_thread / divisor); 279 trace_seq_printf(s, "%9llu ", cpu_data->cur_user / divisor); 280 trace_seq_printf(s, "%9llu ", cpu_data->min_user / divisor); [all...] |
/linux-master/drivers/watchdog/ |
H A D | octeon-wdt-main.c | 70 static int divisor; variable 452 timeout_cnt = ((octeon_get_io_clock_rate() / divisor) * timeout_sec) >> 8; 534 divisor = 0x200; 536 divisor = 0x400; 538 divisor = 0x100; 543 * that decrements every divisor cycle. 551 timeout_cnt = ((octeon_get_io_clock_rate() / divisor) * max_timeout_sec) >> 8;
|
/linux-master/sound/soc/codecs/ |
H A D | tlv320aic32x4-clk.c | 321 u8 divisor; local 323 divisor = DIV_ROUND_UP(parent_rate, rate); 324 if (divisor > AIC32X4_DIV_MAX) 328 AIC32X4_DIV_MASK, divisor); 334 unsigned long divisor; local 336 divisor = DIV_ROUND_UP(req->best_parent_rate, req->rate); 337 if (divisor > AIC32X4_DIV_MAX) 340 req->rate = DIV_ROUND_UP(req->best_parent_rate, divisor);
|
/linux-master/net/sched/ |
H A D | sch_sfq.c | 116 unsigned int divisor; /* number of slots in hash table */ member in struct:sfq_sched_data 126 sfq_index *ht; /* Hash table ('divisor' slots) */ 160 return skb_get_hash_perturb(skb, &q->perturbation) & (q->divisor - 1); 173 TC_H_MIN(skb->priority) <= q->divisor) 194 if (TC_H_MIN(res.classid) <= q->divisor) 640 if (ctl->divisor && 641 (!is_power_of_2(ctl->divisor) || ctl->divisor > 65536)) 668 if (ctl->divisor) { 669 q->divisor [all...] |
/linux-master/arch/powerpc/include/asm/ |
H A D | time.h | 98 unsigned divisor, struct div_result *dr);
|
/linux-master/drivers/input/serio/ |
H A D | ambakmi.c | 31 unsigned int divisor; member in struct:amba_kmi_port 67 unsigned int divisor; local 74 divisor = clk_get_rate(kmi->clk) / 8000000 - 1; 75 writeb(divisor, KMICLKDIV);
|
/linux-master/arch/parisc/net/ |
H A D | bpf_jit_core.c | 190 u64 hppa_div64(u64 div, u64 divisor) argument 192 div = div64_u64(div, divisor); 196 u64 hppa_div64_rem(u64 div, u64 divisor) argument 199 div64_u64_rem(div, divisor, &rem);
|
/linux-master/drivers/usb/serial/ |
H A D | oti6858.c | 76 __le16 divisor; /* baud rate = 96000000 / (16 * divisor), LE */ member in struct:oti6858_control_pkt 114 (((a)->divisor == (priv)->pending_setup.divisor) \ 182 __le16 divisor; member in struct:oti6858_private::__anon304 229 new_setup->divisor = priv->pending_setup.divisor; 406 __le16 divisor; local 440 divisor = 0; 448 divisor [all...] |
/linux-master/drivers/net/mdio/ |
H A D | mdio-mux-bcm-iproc.c | 61 u32 divisor; local 73 divisor = clk_get_rate(md->core_clk) / MDIO_OPERATING_FREQUENCY; 74 divisor = divisor / (MDIO_RATE_ADJ_DIVIDENT + 1); 75 val = divisor;
|
/linux-master/arch/m68k/ifpsp060/src/ |
H A D | ilsp.S | 74 # 0x4(sp) = divisor # 89 # codes before performing the final "rts". If the divisor was equal to # 134 mov.l 0x8(%a6),%d7 # fetch divisor 136 beq.w ldiv64eq0 # divisor is = 0!!! 145 # save the sign of the divisor 146 # make divisor unsigned if it's negative 147 tst.l %d7 # chk sign of divisor 148 slt NDIVISOR(%a6) # save sign of divisor 150 neg.l %d7 # complement negative divisor 165 # - is (hi(dividend) == 0 && (divisor < [all...] |
/linux-master/drivers/i2c/busses/ |
H A D | i2c-altera.c | 139 u32 divisor = clk_get_rate(idev->i2c_clk) / idev->bus_clk_rate; local 148 t_high = divisor * 1 / 2; 149 t_low = divisor * 1 / 2; 153 t_high = divisor * 1 / 3; 154 t_low = divisor * 2 / 3; 159 idev->bus_clk_rate, clk_mhz, divisor);
|