Home
last modified time | relevance | path

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

12

/drivers/clk/mmp/
Dclk-frac.c37 struct clk_factor *factor = to_clk_factor(hw); in clk_factor_round_rate() local
41 for (i = 0; i < factor->ftbl_cnt; i++) { in clk_factor_round_rate()
43 rate = (((*prate / 10000) * factor->ftbl[i].den) / in clk_factor_round_rate()
44 (factor->ftbl[i].num * factor->masks->factor)) * 10000; in clk_factor_round_rate()
48 if ((i == 0) || (i == factor->ftbl_cnt)) { in clk_factor_round_rate()
61 struct clk_factor *factor = to_clk_factor(hw); in clk_factor_recalc_rate() local
62 struct clk_factor_masks *masks = factor->masks; in clk_factor_recalc_rate()
65 val = readl_relaxed(factor->base); in clk_factor_recalc_rate()
77 (num * factor->masks->factor)) * 10000; in clk_factor_recalc_rate()
84 struct clk_factor *factor = to_clk_factor(hw); in clk_factor_set_rate() local
[all …]
Dclk.h11 unsigned int factor; member
/drivers/s390/block/
Ddasd_proc.c196 static void dasd_statistics_array(struct seq_file *m, unsigned int *array, int factor) in dasd_statistics_array() argument
201 seq_printf(m, "%7d ", array[i] / factor); in dasd_statistics_array()
213 int factor; in dasd_stats_proc_show() local
225 for (factor = 1; (prof->dasd_io_reqs / factor) > 9999999; in dasd_stats_proc_show()
226 factor *= 10); in dasd_stats_proc_show()
231 seq_printf(m, "Scale Factor is %d\n", factor); in dasd_stats_proc_show()
242 dasd_statistics_array(m, prof->dasd_io_secs, factor); in dasd_stats_proc_show()
244 dasd_statistics_array(m, prof->dasd_io_times, factor); in dasd_stats_proc_show()
246 dasd_statistics_array(m, prof->dasd_io_timps, factor); in dasd_stats_proc_show()
248 dasd_statistics_array(m, prof->dasd_io_time1, factor); in dasd_stats_proc_show()
[all …]
/drivers/media/platform/vivid/
Dvivid-vid-out.c339 unsigned factor = 1; in vivid_try_fmt_vid_out() local
360 factor = 2; in vivid_try_fmt_vid_out()
363 mp->height = h / factor; in vivid_try_fmt_vid_out()
365 struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor }; in vivid_try_fmt_vid_out()
379 mp->height = r.height / factor; in vivid_try_fmt_vid_out()
420 unsigned factor = 1; in vivid_s_fmt_vid_out() local
445 factor = 2; in vivid_s_fmt_vid_out()
459 factor * r.height / MAX_ZOOM in vivid_s_fmt_vid_out()
464 factor * r.height * MAX_ZOOM in vivid_s_fmt_vid_out()
474 factor * crop->height / MAX_ZOOM in vivid_s_fmt_vid_out()
[all …]
Dvivid-vid-cap.c531 unsigned factor = 1; in vivid_try_fmt_vid_cap() local
558 factor = 2; in vivid_try_fmt_vid_cap()
562 mp->height = h / factor; in vivid_try_fmt_vid_cap()
564 struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor }; in vivid_try_fmt_vid_cap()
578 mp->height = r.height / factor; in vivid_try_fmt_vid_cap()
611 unsigned factor = 1; in vivid_s_fmt_vid_cap() local
629 factor = 2; in vivid_s_fmt_vid_cap()
646 factor * r.height / MAX_ZOOM in vivid_s_fmt_vid_cap()
651 factor * r.height * MAX_ZOOM in vivid_s_fmt_vid_cap()
661 factor * compose->height / MAX_ZOOM in vivid_s_fmt_vid_cap()
[all …]
Dvivid-tpg.c1068 int factor = tpg->mv_hor_mode > TPG_MOVE_NONE ? -1 : 1; in tpg_update_mv_step() local
1071 factor = -factor; in tpg_update_mv_step()
1089 if (factor < 0) in tpg_update_mv_step()
1092 factor = tpg->mv_vert_mode > TPG_MOVE_NONE ? -1 : 1; in tpg_update_mv_step()
1110 if (factor < 0) in tpg_update_mv_step()
1200 unsigned factor = V4L2_FIELD_HAS_T_OR_B(tpg->field) ? 2 : 1; in tpg_fillbuffer() local
1204 unsigned int_part = (tpg->crop.height / factor) / tpg->compose.height; in tpg_fillbuffer()
1205 unsigned fract_part = (tpg->crop.height / factor) % tpg->compose.height; in tpg_fillbuffer()
/drivers/net/wireless/ath/
Ddfs_pri_detector.c45 u32 factor; in pde_get_multiple() local
57 factor = val / fraction; in pde_get_multiple()
63 factor++; in pde_get_multiple()
65 factor = 0; in pde_get_multiple()
67 return factor; in pde_get_multiple()
255 u32 factor; in pseq_handler_create_sequences() local
260 factor = pde_get_multiple(ps.last_ts - p2->ts, ps.pri, in pseq_handler_create_sequences()
262 if (factor > 0) { in pseq_handler_create_sequences()
307 u32 factor; in pseq_handler_add_to_existing_seqs() local
317 factor = pde_get_multiple(delta_ts, ps->pri, in pseq_handler_add_to_existing_seqs()
[all …]
/drivers/misc/echo/
Decho.c124 int factor; in lms_adapt_bg() local
130 factor = clean << shift; in lms_adapt_bg()
132 factor = clean >> -shift; in lms_adapt_bg()
145 exp = *phist++ * factor; in lms_adapt_bg()
196 int factor; in lms_adapt_bg() local
200 factor = clean << shift; in lms_adapt_bg()
202 factor = clean >> -shift; in lms_adapt_bg()
210 exp = (ec->fir_state_bg.history[i - offset1] * factor); in lms_adapt_bg()
214 exp = (ec->fir_state_bg.history[i + offset2] * factor); in lms_adapt_bg()
455 ec->factor = 0; in oslec_update()
Decho.h144 int32_t factor; member
/drivers/clocksource/
Dcadence_ttc_timer.c242 unsigned long factor, rate_low, rate_high; in ttc_rate_change_clocksource_cb() local
245 factor = DIV_ROUND_CLOSEST(ndata->new_rate, in ttc_rate_change_clocksource_cb()
250 factor = DIV_ROUND_CLOSEST(ndata->old_rate, in ttc_rate_change_clocksource_cb()
256 if (!is_power_of_2(factor)) in ttc_rate_change_clocksource_cb()
259 if (abs(rate_high - (factor * rate_low)) > MAX_F_ERR) in ttc_rate_change_clocksource_cb()
262 factor = __ilog2_u32(factor); in ttc_rate_change_clocksource_cb()
276 psv -= factor; in ttc_rate_change_clocksource_cb()
278 psv += factor; in ttc_rate_change_clocksource_cb()
/drivers/media/platform/ti-vpe/
Dsc.c168 u16 factor = 0; in sc_config_scaler() local
232 factor = (u16) ((dst_h << 10) / src_h); in sc_config_scaler()
234 row_acc_init_rav = factor + ((1 + factor) >> 1); in sc_config_scaler()
248 src_h, dst_h, factor, row_acc_init_rav, in sc_config_scaler()
279 *sc_reg13 = factor; in sc_config_scaler()
/drivers/usb/serial/
Dch341.c123 unsigned long factor; in ch341_set_baudrate() local
128 factor = (CH341_BAUDBASE_FACTOR / priv->baud_rate); in ch341_set_baudrate()
131 while ((factor > 0xfff0) && divisor) { in ch341_set_baudrate()
132 factor >>= 3; in ch341_set_baudrate()
136 if (factor > 0xfff0) in ch341_set_baudrate()
139 factor = 0x10000 - factor; in ch341_set_baudrate()
140 a = (factor & 0xff00) | divisor; in ch341_set_baudrate()
141 b = factor & 0xff; in ch341_set_baudrate()
/drivers/message/fusion/
Dmptspi.c116 u8 factor = MPT_ASYNC; in mptspi_setTargetNegoParms() local
125 factor = MPT_ULTRA2; in mptspi_setTargetNegoParms()
133 factor = pspi_data->minSyncFactor; in mptspi_setTargetNegoParms()
135 factor = MPT_ULTRA2; in mptspi_setTargetNegoParms()
139 factor = MPT_ULTRA160; in mptspi_setTargetNegoParms()
141 factor = MPT_ULTRA320; in mptspi_setTargetNegoParms()
165 factor = MPT_ASYNC; in mptspi_setTargetNegoParms()
190 factor = max(factor, nfactor); in mptspi_setTargetNegoParms()
191 if (factor == MPT_ASYNC) in mptspi_setTargetNegoParms()
195 factor = MPT_ASYNC; in mptspi_setTargetNegoParms()
[all …]
/drivers/gpu/drm/nouveau/dispnv04/
Doverlay.c75 sin_mul(int degrees, int factor) in sin_mul() argument
79 factor *= -1; in sin_mul()
81 return factor * 4 * degrees * (180 - degrees) / in sin_mul()
87 cos_mul(int degrees, int factor) in cos_mul() argument
89 return sin_mul((degrees + 90) % 360, factor); in cos_mul()
/drivers/media/dvb-frontends/
Dcx24113.c309 u8 factor; in cx24113_calc_pll_nf() local
313 factor = 1; in cx24113_calc_pll_nf()
315 factor = 2; in cx24113_calc_pll_nf()
337 N /= (state->config->xtal_khz) * factor * 2; in cx24113_calc_pll_nf()
352 do_div(dividend, state->config->xtal_khz * 1000 * factor * 2); in cx24113_calc_pll_nf()
Ddib7000m.c966 u32 value, factor; in dib7000m_autosearch_start() local
979 factor = BANDWIDTH_TO_KHZ(schan.bandwidth_hz); in dib7000m_autosearch_start()
980 if (factor >= 5000) in dib7000m_autosearch_start()
981 factor = 1; in dib7000m_autosearch_start()
983 factor = 6; in dib7000m_autosearch_start()
986 value = 30 * state->internal_clk * factor; in dib7000m_autosearch_start()
989 value = 100 * state->internal_clk * factor; in dib7000m_autosearch_start()
992 value = 500 * state->internal_clk * factor; in dib7000m_autosearch_start()
Ddib7000p.c1122 u32 value, factor; in dib7000p_autosearch_start() local
1135 factor = BANDWIDTH_TO_KHZ(ch->bandwidth_hz); in dib7000p_autosearch_start()
1136 if (factor >= 5000) { in dib7000p_autosearch_start()
1138 factor = 2; in dib7000p_autosearch_start()
1140 factor = 1; in dib7000p_autosearch_start()
1142 factor = 6; in dib7000p_autosearch_start()
1144 value = 30 * internal * factor; in dib7000p_autosearch_start()
1147 value = 100 * internal * factor; in dib7000p_autosearch_start()
1150 value = 500 * internal * factor; in dib7000p_autosearch_start()
/drivers/hwmon/
Dmax6697.c531 int factor = chip->channels; in max6697_init_chip() local
550 factor += hweight8(reg); in max6697_init_chip()
553 factor++; in max6697_init_chip()
577 factor++; in max6697_init_chip()
599 factor += hweight8(pdata->resistance_cancellation >> 1); in max6697_init_chip()
615 data->update_interval = factor * MAX6697_CONV_TIME; in max6697_init_chip()
/drivers/isdn/hardware/eicon/
Ds_4bri.c52 int factor = (IoAdapter->tasks == 1) ? 1 : 2; in qBri_cpu_trapped() local
59 offset = IoAdapter->ControllerNumber * (IoAdapter->MemorySize >> factor); in qBri_cpu_trapped()
76 && (regs[0] < offset + (IoAdapter->MemorySize >> factor) - 1)) in qBri_cpu_trapped()
83 size = offset + (IoAdapter->MemorySize >> factor) - regs[0]; in qBri_cpu_trapped()
/drivers/gpu/drm/radeon/
Drv740_dpm.c98 u32 factor; in rv740_get_dll_speed() local
102 factor = 4; in rv740_get_dll_speed()
104 factor = 2; in rv740_get_dll_speed()
106 data_rate = (u16)(memory_clock * factor / 1000); in rv740_get_dll_speed()
/drivers/media/parport/
Dw9966.c425 static int w9966_calcscale(int size, int min, int max, int *beg, int *end, unsigned char *factor) in w9966_calcscale() argument
437 *factor = (64 * size) / newlen; in w9966_calcscale()
438 if (*factor == 64) in w9966_calcscale()
439 *factor = 0x00; /* downscale is disabled */ in w9966_calcscale()
441 *factor |= 0x80; /* set downscale-enable bit */ in w9966_calcscale()
/drivers/clk/ti/
DMakefile4 fixed-factor.o mux.o apll.o
/drivers/iio/adc/
Dat91_adc.c289 unsigned int factor = 1000; in at91_ts_sample() local
324 pres = rxp * (x * factor / 1024) * (z2 * factor / z1 - factor) in at91_ts_sample()
325 / factor; in at91_ts_sample()
334 x, y, pres / factor); in at91_ts_sample()
/drivers/md/bcache/
Dutil.h444 #define ewma_add(ewma, val, weight, factor) \ argument
447 (ewma) += (val) << factor; \
449 (ewma) >> factor; \
/drivers/staging/iio/Documentation/dac/
Dmax51735 Via out1_scale (and where appropriate, out2_scale), the current scaling factor

12