Searched refs:den (Results 1 - 19 of 19) sorted by relevance

/drivers/media/video/m5mols/
H A Dm5mols_capture.c43 u32 num, den; local
47 ret = m5mols_read_u32(sd, addr_den, &den);
50 *val = den == 0 ? 0 : num / den;
/drivers/staging/line6/
H A Dpodhd.c26 .den = 1,
H A Dtoneport.c30 .den = 1
H A Dplayback.c146 line6pcm->properties->snd_line6_rates.rats[0].den *
H A Dpod.c70 .den = 2
/drivers/video/
H A Dfbcvt.c76 u32 den; local
80 den = 2 * (cvt->yres/cvt->interlace + 2 * cvt->v_margin);
83 den = 2 * (cvt->yres/cvt->interlace + cvt->v_margin * 2
87 return 2 * (num/den);
H A Dcirrusfb.c414 static void bestclock(long freq, int *nom, int *den, int *div);
692 int nom, den, div; local
868 bestclock(freq, &nom, &den, &div);
870 dev_dbg(info->device, "VCLK freq: %ld kHz nom: %d den: %d div: %d\n",
871 freq, nom, den, div);
908 tmp = den << 1;
2783 static void bestclock(long freq, int *nom, int *den, int *div) argument
2789 assert(den != NULL);
2793 *den = 0;
2817 *den
[all...]
/drivers/mtd/devices/
H A Ddocecc.c191 gf u,q,tmp,num1,num2,den,discr_r; local
389 * inv(X(l))**(B0-1) and den = lambda_pr(inv(X(l))) all in poly-form
398 den = 0;
403 den ^= Alpha_to[modnn(lambda[i+1] + i * root[j])];
405 if (den == 0) {
415 eras_val[j] = Alpha_to[modnn(Index_of[num1] + Index_of[num2] + NN - Index_of[den])];
/drivers/video/aty/
H A Dradeonfb.h504 static inline int round_div(int num, int den) argument
506 return (num + (den / 2)) / den;
H A Dradeon_base.c721 int nom, den; local
749 nom = den = 1;
756 den = 1;
765 den = 1;
776 den = 1;
785 den = 1;
816 if (((v.xres_virtual * v.yres_virtual * nom) / den) > rinfo->mapped_vram)
/drivers/video/riva/
H A Dfbdev.c867 * @den:
881 int nom, int den)
901 if (modes[i].xres * nom / den * modes[i].yres <
918 var->xres_virtual = (info->fix.smem_len * den /
924 var->yres_virtual = info->fix.smem_len * den /
930 if (var->xres_virtual * nom / den * var->yres_virtual > info->fix.smem_len) {
939 if (var->xres_virtual * nom / den >= 8192) {
942 var->xres_virtual, 8192 * den / nom - 16);
943 var->xres_virtual = 8192 * den / nom - 16;
1102 int nom, den; /* translatin local
879 rivafb_do_maximize(struct fb_info *info, struct fb_var_screeninfo *var, int nom, int den) argument
[all...]
/drivers/video/matrox/
H A Dmatroxfb_maven.c188 unsigned int den; member in struct:matrox_pll_ctl
216 unsigned int fmin = pll->vco_freq_min / ctl->den;
226 fmax = pll->vco_freq_max / ctl->den;
280 return fxtal * (*feed) / (*in) * ctl->den;
/drivers/media/video/
H A Dmx3_camera.c744 unsigned int num, den; local
745 int ret = soc_mbus_samples_per_pixel(fmt, &num, &den);
747 width = width * num / den;
/drivers/gpu/drm/i915/
H A Dintel_dp.c720 intel_reduce_ratio(uint32_t *num, uint32_t *den) argument
722 while (*num > 0xffffff || *den > 0xffffff) {
724 *den >>= 1;
H A Dintel_display.c3483 fdi_reduce_ratio(u32 *num, u32 *den) argument
3485 while (*num > 0xffffff || *den > 0xffffff) {
3487 *den >>= 1;
/drivers/net/wireless/b43legacy/
H A Dphy.c1958 s32 b43legacy_tssi2dbm_ad(s32 num, s32 den) argument
1961 return num/den;
1963 return (num+den/2)/den;
/drivers/net/wireless/b43/
H A Dphy_g.c2323 static s32 b43_tssi2dbm_ad(s32 num, s32 den) argument
2326 return num / den;
2328 return (num + den / 2) / den;
/drivers/scsi/
H A Dadvansys.c2220 #define ASC_TENTHS(num, den) \
2221 (((10 * ((num)/(den))) > (((num) * 10)/(den))) ? \
2222 0 : ((((num) * 10)/(den)) - (10 * ((num)/(den)))))
/drivers/net/wireless/brcm80211/brcmsmac/phy/
H A Dphy_n.c17796 s32 num, den, pwr_est; local
17994 den = 32768 + a1[tbl_id - 26] * idx;
17995 pwr_est = max(((4 * num + den / 2) / den), -8);

Completed in 1382 milliseconds