Searched refs:divisor (Results 1 - 25 of 185) sorted by last modified time

12345678

/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vpe.c46 static inline uint16_t div16_u16_rem(uint16_t dividend, uint16_t divisor, uint16_t *remainder) argument
48 *remainder = dividend % divisor;
49 return dividend / divisor;
54 uint16_t divisor,
57 return div16_u16_rem(dividend, divisor, (uint16_t *)remainder);
52 complete_integer_division_u16( uint16_t dividend, uint16_t divisor, uint16_t *remainder) argument
/linux-master/arch/x86/kvm/
H A Dx86.c2379 static uint32_t div_frac(uint32_t dividend, uint32_t divisor) argument
2381 do_shl32_div32(dividend, divisor);
/linux-master/arch/x86/kvm/vmx/
H A Dvmx.c8069 /* (a << shift) / divisor, return 1 if overflow otherwise 0 */
8071 u64 divisor, u64 *result)
8076 if (high >= divisor)
8081 "rm" (divisor), "0" (low), "1" (high));
8070 u64_shl_div_u64(u64 a, unsigned int shift, u64 divisor, u64 *result) argument
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_txrx.c1120 unsigned int divisor; local
1124 divisor = I40E_ITR_ADAPTIVE_MIN_INC * 1024;
1128 divisor = I40E_ITR_ADAPTIVE_MIN_INC * 512;
1132 divisor = I40E_ITR_ADAPTIVE_MIN_INC * 256;
1136 divisor = I40E_ITR_ADAPTIVE_MIN_INC * 32;
1140 return divisor;
/linux-master/drivers/gpu/drm/xe/
H A Dxe_vm_types.h60 u32 divisor; member in struct:xe_userptr
H A Dxe_pt.c926 u32 divisor = uvma->userptr.divisor ? uvma->userptr.divisor : 2; local
929 if (count++ % divisor == divisor - 1) {
932 uvma->userptr.divisor = divisor << 1;
/linux-master/drivers/gpu/drm/i915/display/
H A Dicl_dsi.c1029 u32 hs_tx_timeout, lp_rx_timeout, ta_timeout, divisor, mul; local
1038 divisor = intel_dsi_tlpx_ns(intel_dsi) * afe_clk(encoder, crtc_state) * 1000;
1041 divisor);
1042 lp_rx_timeout = DIV_ROUND_UP(intel_dsi->lp_rx_timeout * mul, divisor);
1043 ta_timeout = DIV_ROUND_UP(intel_dsi->turn_arnd_val * mul, divisor);
H A Dg4x_dp.c60 const struct dpll *divisor = NULL; local
64 divisor = g4x_dpll;
67 divisor = pch_dpll;
70 divisor = chv_dpll;
73 divisor = vlv_dpll;
77 if (divisor && count) {
79 if (pipe_config->port_clock == divisor[i].dot) {
80 pipe_config->dpll = divisor[i];
/linux-master/drivers/video/fbdev/core/
H A Dfbmon.c1141 u32 divisor, hfreq; local
1143 divisor = (1000000 - (vfreq * FLYBACK))/1000;
1145 return (hfreq/divisor);
/linux-master/drivers/usb/serial/
H A Doti6858.c76 __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...]
H A Dftdi_sio.c71 int baud_base; /* baud base clock for divisor setting */
1129 unsigned short int divisor; local
1130 /* divisor shifted 3 bits to the left */
1134 divisor = divisor3 >> 3;
1137 divisor |= 0xc000; /* +0.125 */
1139 divisor |= 0x4000; /* +0.5 */
1141 divisor |= 0x8000; /* +0.25 */
1142 else if (divisor == 1)
1143 divisor = 0; /* special case for maximum baud rate */
1144 return divisor;
1155 u32 divisor; local
1176 u32 divisor; local
[all...]
/linux-master/drivers/tty/serial/
H A Dmsm_serial.c1041 u16 divisor; member in struct:msm_baud_map
1051 unsigned int divisor, result; local
1075 divisor = DIV_ROUND_CLOSEST(target, 16 * baud);
1080 if (entry->divisor <= divisor) {
1081 result = target / entry->divisor / 16;
1093 } else if (entry->divisor > divisor) {
1103 /* Start the divisor search over at this new rate */
1105 divisor
[all...]
/linux-master/drivers/tty/serial/8250/
H A D8250_ingenic.c93 unsigned int divisor; local
107 divisor = DIV_ROUND_CLOSEST(port->uartclk, 16 * baud);
119 early_out(port, UART_DLL, divisor & 0xff);
120 early_out(port, UART_DLM, (divisor >> 8) & 0xff);
/linux-master/drivers/iio/proximity/
H A Dsx9360.c301 int ret, divisor; local
308 divisor = be16_to_cpu(buf);
309 if (divisor == 0) {
315 *val2 = divisor * 8192;
/linux-master/drivers/iio/adc/
H A Dad4130.c843 u64 dividend, divisor; local
848 divisor = (u64)AD4130_MAX_ODR * NANO;
851 DIV64_U64_ROUND_CLOSEST(dividend, divisor);
866 unsigned int dividend, divisor; local
871 divisor = filter_config->fs_max * filter_config->odr_div;
873 temp = div_u64((u64)dividend * NANO, divisor);
/linux-master/tools/tracing/rtla/src/
H A Dtimerlat_top.c224 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/tools/testing/selftests/kvm/include/
H A Dtest_util.h88 struct timespec timespec_div(struct timespec ts, int divisor);
/linux-master/drivers/scsi/mpt3sas/
H A Dmpt3sas_base.c1668 static u32 base_mod64(u64 dividend, u32 divisor) argument
1672 if (!divisor)
1674 remainder = do_div(dividend, divisor);
/linux-master/drivers/media/tuners/
H A Dtda18271-fe.c564 s32 divisor, dividend; local
610 divisor = (s32)(rf_freq[RF2] - rf_freq[RF1]) / 1000;
611 map[i].rf_a1 = (dividend / divisor);
617 divisor = (s32)(rf_freq[RF3] - rf_freq[RF2]) / 1000;
618 map[i].rf_a2 = (dividend / divisor);
/linux-master/drivers/media/i2c/
H A Dmax2175.c618 * dividend and s32 divisor
620 static inline s64 max2175_round_closest(s64 dividend, s32 divisor) argument
622 if ((dividend > 0 && divisor > 0) || (dividend < 0 && divisor < 0))
623 return div_s64(dividend + divisor / 2, divisor);
625 return div_s64(dividend - divisor / 2, divisor);
/linux-master/drivers/i2c/busses/
H A Di2c-hisi.c386 * counts (divide / divisor) according to the target speed mode,
390 u32 divide, u32 divisor,
399 t_scl_hcnt = DIV_ROUND_UP_ULL(total_cnt * divide, divisor);
389 hisi_i2c_set_scl(struct hisi_i2c_controller *ctlr, u32 divide, u32 divisor, u32 reg_hcnt, u32 reg_lcnt) argument
/linux-master/arch/mips/ralink/
H A Dtimer.c76 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/lib/math/
H A Ddiv64.c68 s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) argument
73 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder);
75 if (divisor > 0)
78 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder);
79 if (divisor < 0)
88 * div64_u64_rem - unsigned 64bit divide with 64bit divisor and remainder
90 * @divisor: 64bit divisor
99 u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) argument
101 u32 high = divisor >> 3
139 div64_u64(u64 dividend, u64 divisor) argument
162 div64_s64(s64 dividend, s64 divisor) argument
180 iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder) argument
[all...]
/linux-master/drivers/pwm/
H A Dpwm-samsung.c135 unsigned int channel, u8 divisor)
142 bits = (fls(divisor) - 1) - our_chip->variant.div_base;
208 * divider settings and choose the lowest divisor that can generate
134 pwm_samsung_set_divisor(struct samsung_pwm_chip *our_chip, unsigned int channel, u8 divisor) argument
/linux-master/drivers/hwmon/
H A Daspeed-g6-pwm-tach.c112 /* divisor = 4 to the nth power, n = register value */
114 #define DIV_TO_REG(divisor) (ilog2(divisor) >> 1)
193 u64 div_h, div_l, divisor, expect_period; local
204 divisor = (u64)NSEC_PER_SEC * (PWM_ASPEED_FIXED_PERIOD + 1) *
206 div_h = order_base_2(DIV64_U64_ROUND_UP(priv->clk_rate * expect_period, divisor));
210 divisor = ((u64)NSEC_PER_SEC * (PWM_ASPEED_FIXED_PERIOD + 1)) << div_h;
211 div_l = div64_u64(priv->clk_rate * expect_period, divisor);

Completed in 348 milliseconds

12345678