/linux-master/drivers/clk/mmp/ |
H A D | clk-audio.c | 97 unsigned char divisor; member in struct:__anon99 159 freq /= postdivs[postdiv].divisor; 180 freq /= postdivs[postdiv].divisor; 207 if (rate * postdivs[postdiv].divisor != predivs[prediv].freq_vco)
|
H A D | clk-mix.c | 125 item->divisor = parent_rate / item->rate; 227 mix_rate = parent_rate / item->divisor; 361 div_val = _get_div_val(mix, item->divisor); 394 && item->divisor == best_divisor) 400 _get_div_val(mix, item->divisor),
|
/linux-master/include/linux/comedi/ |
H A D | comedi_8254.h | 83 * @divisor: divisor for single counter 84 * @divisor1: divisor loaded into first cascaded counter 85 * @divisor2: divisor loaded into second cascaded counter 86 * #next_div: next divisor for single counter 87 * @next_div1: next divisor to use for first cascaded counter 88 * @next_div2: next divisor to use for second cascaded counter 100 unsigned int divisor; member in struct:comedi_8254
|
/linux-master/drivers/media/usb/gspca/ |
H A D | cpia1.c | 227 * indexed by [mains][sensorFps.baserate][sensorFps.divisor]*/ 286 u8 divisor; member in struct:cam_params::__anon90 666 params->sensorFps.divisor = 1; 674 [params->sensorFps.divisor]; 948 sd->params.sensorFps.divisor, 1283 sd->params.sensorFps.divisor < 2) { 1286 ++sd->params.sensorFps.divisor; 1292 [sd->params.sensorFps.divisor]; 1308 sd->params.sensorFps.divisor > 0) { 1313 --sd->params.sensorFps.divisor; [all...] |
/linux-master/net/sched/ |
H A D | cls_flow.c | 54 u32 divisor; member in struct:flow_filter 332 if (f->divisor) 333 classid %= f->divisor; 468 fnew->divisor = fold->divisor; 539 fnew->divisor = nla_get_u32(tb[TCA_FLOW_DIVISOR]); 651 if (f->divisor && 652 nla_put_u32(skb, TCA_FLOW_DIVISOR, f->divisor))
|
/linux-master/drivers/mmc/host/ |
H A D | uniphier-sd.c | 60 * 1/1024 divisor, etc. 384 * 1/512 is the finest divisor in the original IP. Newer versions 385 * also supports 1/1024 divisor. (UniPhier-specific extension) 472 unsigned long divisor; local 490 divisor = priv->clk_rate / clock; 493 * In the original IP, bit[7:0] represents the divisor. 500 if (divisor <= 1) 502 else if (priv->caps & UNIPHIER_SD_CAP_EXTENDED_IP && divisor > 512) 505 tmp |= roundup_pow_of_two(divisor) >> 2;
|
/linux-master/lib/ |
H A D | string_helpers.c | 53 static const unsigned int divisor[] = { local 72 * coefficient * divisor[units_base]^i 82 do_div(blk_size, divisor[units_base]); 87 do_div(size, divisor[units_base]); 95 /* and logarithmically reduce it until it's just under the divisor */ 96 while (size >= divisor[units_base]) { 97 remainder = do_div(size, divisor[units_base]); 110 * divisor[units_base], which is 1 << 10 for STRING_UNITS_2 */
|
/linux-master/drivers/usb/serial/ |
H A D | mos7840.c | 49 #define LCR_DL_ENABLE 0x80 /* Enable access to divisor latch */ 1054 * this function calculates the proper baud rate divisor for the specified 1058 int baudRate, int *divisor, 1064 *divisor = 115200 / baudRate; 1068 *divisor = 230400 / baudRate; 1071 *divisor = 403200 / baudRate; 1074 *divisor = 460800 / baudRate; 1077 *divisor = 806400 / baudRate; 1080 *divisor = 921600 / baudRate; 1083 *divisor 1057 mos7840_calc_baud_rate_divisor(struct usb_serial_port *port, int baudRate, int *divisor, __u16 *clk_sel_val) argument 1102 int divisor = 0; local [all...] |
H A D | mos7720.c | 1239 __u16 divisor; member in struct:divisor_table_entry 1266 * this function calculates the proper baud rate divisor for the specified 1269 static int calc_baud_rate_divisor(struct usb_serial_port *port, int baudrate, int *divisor) argument 1281 *divisor = divisor_table[i].divisor; 1287 * Try calculating the divisor for this baud rate */ 1289 /* get the divisor */ 1297 *divisor = custom; 1317 int divisor; local 1331 status = calc_baud_rate_divisor(port, baudrate, &divisor); [all...] |
H A D | mct_u232.c | 178 unsigned int divisor; local 188 divisor = mct_u232_calculate_baud_rate(serial, value, &speed); 189 put_unaligned_le32(divisor, buf); 200 dev_dbg(&port->dev, "set_baud_rate: value: 0x%x, divisor: 0x%x\n", value, divisor);
|
H A D | ftdi_sio.c | 71 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/comedi/drivers/ |
H A D | dt2811.c | 79 * val divisor frequency val multiply divisor/divide frequency by 326 unsigned int divisor = DT2811_TMRCTR_MANTISSA(_div) | local 342 divisor_hi = divisor; 347 divisor_lo = divisor; 446 /* The convert_arg is used to set the divisor. */
|
/linux-master/drivers/gpu/drm/stm/ |
H A D | dw_mipi_dsi-stm.c | 132 int divisor = idf * odf; local 135 if (!divisor) 138 return DIV_ROUND_CLOSEST(clkin_khz * ndiv, divisor);
|
/linux-master/drivers/clocksource/ |
H A D | timer-atmel-tcb.c | 440 unsigned divisor = atmel_tcb_divisors[i]; local 443 tmp = rate / divisor; 444 pr_debug("TC: %u / %-3u [%d] --> %u\n", rate, divisor, i, tmp);
|
/linux-master/arch/arm/net/ |
H A D | bpf_jit_32.c | 223 static u32 jit_udiv32(u32 dividend, u32 divisor) argument 225 return dividend / divisor; 228 static u32 jit_mod32(u32 dividend, u32 divisor) argument 230 return dividend % divisor; 233 static s32 jit_sdiv32(s32 dividend, s32 divisor) argument 235 return dividend / divisor; 238 static s32 jit_smod32(s32 dividend, s32 divisor) argument 240 return dividend % divisor; 244 static u64 jit_udiv64(u64 dividend, u64 divisor) argument 246 return div64_u64(dividend, divisor); 249 jit_mod64(u64 dividend, u64 divisor) argument 257 jit_sdiv64(s64 dividend, s64 divisor) argument 262 jit_smod64(s64 dividend, s64 divisor) argument [all...] |
/linux-master/include/asm-generic/ |
H A D | div64.h | 34 * @base: uint32_t divisor 58 * If the divisor happens to be constant, we determine the appropriate 213 extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor);
|
/linux-master/drivers/hwmon/ |
H A D | ntc_thermistor.c | 373 static inline u64 div64_u64_safe(u64 dividend, u64 divisor) argument 375 if (divisor == 0 && dividend == 0) 377 if (divisor == 0) 379 return div64_u64(dividend, divisor);
|
/linux-master/drivers/video/fbdev/ |
H A D | asiliantfb.c | 119 unsigned char divisor = 0; local 127 divisor += 0x10; 165 divisor |= 4; /* or set VCO loop divide to 1 */ 168 *dclk2_div = divisor; 236 /* First check the constraint that the maximum post-VCO divisor is 32, 275 u8 dclk2_div; /* Holds divisor bitmask */ 438 {0xce, 0x90}, /* MCLK divisor = 2 */
|
/linux-master/drivers/tty/serial/ |
H A D | digicolor-usart.c | 290 unsigned int baud, divisor; local 302 divisor = uart_get_divisor(port, baud) - 1; 341 writeb_relaxed(divisor & 0xff, port->membase + UA_HBAUD_LO); 342 writeb_relaxed(divisor >> 8, port->membase + UA_HBAUD_HI);
|
/linux-master/drivers/iio/proximity/ |
H A D | sx9360.c | 301 int ret, divisor; local 308 divisor = be16_to_cpu(buf); 309 if (divisor == 0) { 315 *val2 = divisor * 8192;
|
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_vm_types.h | 60 u32 divisor; member in struct:xe_userptr
|
/linux-master/arch/alpha/kernel/ |
H A D | core_lca.c | 490 printk("\tPrimary clock divisor\t0x%lx\n", LCA_GET_PRIMARY(pmr_reg)); 491 printk("\tOverride clock divisor\t0x%lx\n", LCA_GET_OVERRIDE(pmr_reg)); 510 lca_clock_fiddle(int divisor) 515 LCA_SET_PRIMARY_CLOCK(pmr_reg, divisor); 516 /* lca_norm_clock = divisor; */ 508 lca_clock_fiddle(int divisor) argument
|
/linux-master/drivers/net/ethernet/ti/ |
H A D | davinci_cpdma.c | 453 u64 divident, divisor; local 470 divisor = min_send_cnt; 471 idle_cnt = DIV_ROUND_CLOSEST_ULL(divident, divisor); 474 divisor = idle_cnt + send_cnt; 475 new_rate = DIV_ROUND_CLOSEST_ULL(divident, divisor); 812 unsigned int divident, divisor; local 815 divisor = 1 + CPDMA_MAX_RLIM_CNT; 817 return DIV_ROUND_UP(divident, divisor);
|
/linux-master/tools/testing/selftests/kvm/lib/ |
H A D | test_util.c | 119 struct timespec timespec_div(struct timespec ts, int divisor) argument 121 int64_t ns = timespec_to_ns(ts) / divisor;
|
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | g4x_dp.c | 60 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];
|