| /linux/drivers/gpu/drm/imx/dcss/ |
| H A D | dcss-scaler.c | 174 int coef[][PSC_NUM_TAPS]) in dcss_scaler_gaussian_filter() 185 coef[phase][0] = 0; in dcss_scaler_gaussian_filter() 186 coef[phase][PSC_NUM_TAPS - 1] = 0; in dcss_scaler_gaussian_filter() 202 coef[phase_cnt & PSC_PHASE_MASK][tap_cnt1 >> PSC_BITS_FOR_PHASE] = g0_q; in dcss_scaler_gaussian_filter() 214 coef[phase_cnt & PSC_PHASE_MASK][tap_idx] = g0_q; in dcss_scaler_gaussian_filter() 218 coef[(-phase_cnt) & PSC_PHASE_MASK][tap_idx] = g0_q; in dcss_scaler_gaussian_filter() 224 coef[phase_cnt & PSC_PHASE_MASK][tap_cnt1 >> PSC_BITS_FOR_PHASE] = 0; in dcss_scaler_gaussian_filter() 229 coef[0][i] = i == (PSC_NUM_TAPS >> 1) ? in dcss_scaler_gaussian_filter() 238 sum += coef[phase][i]; in dcss_scaler_gaussian_filter() 240 ll_temp = coef[phase][i]; in dcss_scaler_gaussian_filter() [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
| H A D | gk20a.c | 52 gk20a_volt_get_cvb_voltage(int speedo, int s_scale, const struct cvb_coef *coef) in gk20a_volt_get_cvb_voltage() argument 56 mv = DIV_ROUND_CLOSEST(coef->c2 * speedo, s_scale); in gk20a_volt_get_cvb_voltage() 57 mv = DIV_ROUND_CLOSEST((mv + coef->c1) * speedo, s_scale) + coef->c0; in gk20a_volt_get_cvb_voltage() 68 const struct cvb_coef *coef) in gk20a_volt_get_cvb_t_voltage() argument 72 cvb_mv = gk20a_volt_get_cvb_voltage(speedo, s_scale, coef); in gk20a_volt_get_cvb_t_voltage() 74 mv = DIV_ROUND_CLOSEST(coef->c3 * speedo, s_scale) + coef->c4 + in gk20a_volt_get_cvb_t_voltage() 75 DIV_ROUND_CLOSEST(coef->c5 * temp, t_scale); in gk20a_volt_get_cvb_t_voltage() 81 gk20a_volt_calc_voltage(const struct cvb_coef *coef, int speedo) in gk20a_volt_calc_voltage() argument 86 mv = gk20a_volt_get_cvb_t_voltage(speedo, -10, 100, 10, coef); in gk20a_volt_calc_voltage()
|
| /linux/sound/hda/codecs/cirrus/ |
| H A D | cs421x.c | 51 /* coef indices */ 116 unsigned int coef) in cs_vendor_coef_set() argument 123 AC_VERB_SET_PROC_COEF, coef); in cs_vendor_coef_set() 305 /* Speaker Amp Gain is controlled by the vendor widget's coef 4 */ 334 unsigned int coef = in cs421x_boost_vol_put() local 336 unsigned int original_coef = coef; in cs421x_boost_vol_put() 338 coef &= ~0x0003; in cs421x_boost_vol_put() 339 coef |= (vol & 0x0003); in cs421x_boost_vol_put() 340 if (original_coef != coef) { in cs421x_boost_vol_put() 341 cs_vendor_coef_set(codec, CS421X_IDX_SPK_CTL, coef); in cs421x_boost_vol_put() 363 unsigned int def_conf, coef; cs4210_pinmux_init() local 506 unsigned int coef; cs421x_suspend() local [all...] |
| H A D | cs420x.c | 105 unsigned int coef) in cs_vendor_coef_set() argument 112 AC_VERB_SET_PROC_COEF, coef); in cs_vendor_coef_set() 150 unsigned int coef; in init_input_coef() local 154 coef = cs_vendor_coef_get(codec, IDX_BEEP_CFG); in init_input_coef() 156 coef |= 1 << 4; /* DMIC2 2 chan on, GPIO1 off */ in init_input_coef() 158 coef |= 1 << 3; /* DMIC1 2 chan on, GPIO0 off in init_input_coef() 163 cs_vendor_coef_set(codec, IDX_BEEP_CFG, coef); in init_input_coef() 241 unsigned int coef; in init_digital_coef() local 243 coef = 0x0002; /* SRC_MUTE soft-mute on SPDIF (if no lock) */ in init_digital_coef() 244 coef |= 0x0008; /* Replace with mute on error */ in init_digital_coef() [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
| H A D | nv50.c | 56 u32 coef, ref = nvkm_clk_read(&clk->base, nv_clk_src_crystal); in read_pll_src() local 73 coef = nvkm_rd32(device, 0x00e81c + (id * 0x0c)); in read_pll_src() 74 ref *= (coef & 0x01000000) ? 2 : 4; in read_pll_src() 75 P = (coef & 0x00070000) >> 16; in read_pll_src() 76 N = ((coef & 0x0000ff00) >> 8) + 1; in read_pll_src() 77 M = ((coef & 0x000000ff) >> 0) + 1; in read_pll_src() 82 coef = nvkm_rd32(device, 0x00e81c); in read_pll_src() 83 P = (coef & 0x00070000) >> 16; in read_pll_src() 84 N = (coef & 0x0000ff00) >> 8; in read_pll_src() 85 M = (coef & 0x000000ff) >> 0; in read_pll_src() [all …]
|
| H A D | gf100.c | 38 u32 coef; member 63 u32 coef = nvkm_rd32(device, pll + 0x04); in read_pll() local 64 u32 P = (coef & 0x003f0000) >> 16; in read_pll() 65 u32 N = (coef & 0x0000ff00) >> 8; in read_pll() 66 u32 M = (coef & 0x000000ff) >> 0; in read_pll() 250 calc_pll(struct gf100_clk *clk, int idx, u32 freq, u32 *coef) in calc_pll() argument 269 *coef = (P << 16) | (N << 8) | M; in calc_pll() 292 clk1 = calc_pll(clk, idx, freq, &info->coef); in calc_clk() 310 info->ssel = info->coef = 0; in calc_clk() 374 if (info->coef) { in gf100_clk_prog_2() [all …]
|
| H A D | gk104.c | 38 u32 coef; member 64 u32 coef = nvkm_rd32(device, pll + 0x04); in read_pll() local 65 u32 P = (coef & 0x003f0000) >> 16; in read_pll() 66 u32 N = (coef & 0x0000ff00) >> 8; in read_pll() 67 u32 M = (coef & 0x000000ff) >> 0; in read_pll() 82 P = (coef & 0x10000000) ? 2 : 1; in read_pll() 263 calc_pll(struct gk104_clk *clk, int idx, u32 freq, u32 *coef) in calc_pll() argument 282 *coef = (P << 16) | (N << 8) | M; in calc_pll() 306 clk1 = calc_pll(clk, idx, freq, &info->coef); in calc_clk() 393 if (info->coef) { in gk104_clk_prog_2() [all …]
|
| H A D | nv40.c | 60 u32 coef = nvkm_rd32(device, reg + 0x04); in read_pll_2() local 61 int N2 = (coef & 0xff000000) >> 24; in read_pll_2() 62 int M2 = (coef & 0x00ff0000) >> 16; in read_pll_2() 63 int N1 = (coef & 0x0000ff00) >> 8; in read_pll_2() 64 int M1 = (coef & 0x000000ff) >> 0; in read_pll_2()
|
| H A D | gt215.c | 117 u32 coef = nvkm_rd32(device, pll + 4); in read_pll() local 118 M = (coef & 0x000000ff) >> 0; in read_pll() 119 N = (coef & 0x0000ff00) >> 8; in read_pll() 120 P = (coef & 0x003f0000) >> 16; in read_pll() 370 const u32 coef = pll + 4; in prog_pll() local 383 nvkm_wr32(device, coef, info->pll); in prog_pll()
|
| H A D | mcp77.c | 53 u32 coef = nvkm_rd32(device, base + 4); in read_pll() local 70 N1 = (coef & 0x0000ff00) >> 8; in read_pll() 71 M1 = (coef & 0x000000ff); in read_pll()
|
| /linux/drivers/media/platform/st/sti/bdisp/ |
| H A D | bdisp-hw.c | 54 .coef = { 68 .coef = { 82 .coef = { 96 .coef = { 110 .coef = { 124 .coef = { 138 .coef = { 152 .coef = { 166 .coef = { 180 .coef = { [all …]
|
| H A D | bdisp-filter.h | 20 const u8 coef[BDISP_HF_NB]; member 32 const u8 coef[BDISP_VF_NB]; member
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
| H A D | ramnv40.c | 57 ram->coef = (N1 << 8) | M1; in nv40_ram_calc() 60 ram->coef = (N2 << 24) | (M2 << 16) | (N1 << 8) | M1; in nv40_ram_calc() 132 nvkm_wr32(device, 0x004048, ram->coef); in nv40_ram_prog() 133 nvkm_wr32(device, 0x004030, ram->coef); in nv40_ram_prog() 139 nvkm_wr32(device, 0x00403c, ram->coef); in nv40_ram_prog() 143 nvkm_wr32(device, 0x004024, ram->coef); in nv40_ram_prog()
|
| H A D | ramnv40.h | 10 u32 coef; member
|
| /linux/drivers/media/platform/ti/omap3isp/ |
| H A D | isph3a_af.c | 33 u32 coef; in h3a_af_setup_regs() local 78 coef = 0; in h3a_af_setup_regs() 79 coef |= conf->iir.coeff_set0[index]; in h3a_af_setup_regs() 80 coef |= conf->iir.coeff_set0[index + 1] << in h3a_af_setup_regs() 82 isp_reg_writel(af->isp, coef, OMAP3_ISP_IOMEM_H3A, in h3a_af_setup_regs() 87 coef = 0; in h3a_af_setup_regs() 88 coef |= conf->iir.coeff_set1[index]; in h3a_af_setup_regs() 89 coef |= conf->iir.coeff_set1[index + 1] << in h3a_af_setup_regs() 91 isp_reg_writel(af->isp, coef, OMAP3_ISP_IOMEM_H3A, in h3a_af_setup_regs()
|
| /linux/sound/soc/mediatek/mt8365/ |
| H A D | mt8365-dai-i2s.c | 167 const u32 *coef; in get_iir_coef() member 259 const u32 *coef = NULL; in get_iir_coef() local 271 coef = iir_coef_tbl_list[k].coef; in get_iir_coef() 276 return coef; in get_iir_coef() 349 const u32 *coef; in mt8365_afe_set_2nd_i2s_asrc() local 367 coef = get_iir_coef(ifs, ofs, &coef_count); in mt8365_afe_set_2nd_i2s_asrc() 370 if (coef) { in mt8365_afe_set_2nd_i2s_asrc() 383 0xffffffff, coef[i]); in mt8365_afe_set_2nd_i2s_asrc()
|
| /linux/drivers/dma/ioat/ |
| H A D | prep.c | 54 dma_addr_t addr, u32 offset, u8 coef, int idx) in pq_set_src() argument 60 pq->coef[idx] = coef; in pq_set_src() 64 dma_addr_t addr, u32 offset, u8 coef, unsigned idx) in pq16_set_src() argument 74 pq->coef[idx] = coef; in pq16_set_src() 76 pq16->coef[idx - 8] = coef; in pq16_set_src() 297 (unsigned long long) pq_get_src(descs, i), pq->coef[i]); in dump_pq_desc_dbg() 332 pq->coef[i]); in dump_pq16_desc_dbg()
|
| /linux/drivers/media/v4l2-core/ |
| H A D | v4l2-vp9.c | 181 .coef = { 1229 for (i = 0; i < ARRAY_SIZE(probs->coef); i++) { in update_coef_probs() 1230 for (j = 0; j < ARRAY_SIZE(probs->coef[0]); j++) in update_coef_probs() 1231 for (k = 0; k < ARRAY_SIZE(probs->coef[0][0]); k++) in update_coef_probs() 1232 update_coeff(deltas->coef[i][j][k], probs->coef[i][j][k]); in update_coef_probs() 1679 for (l = 0; l < ARRAY_SIZE(probs->coef[0][0][0]); l++) { in _adapt_coeff() 1681 u8 *p = probs->coef[i][j][k][l][m]; in _adapt_coeff() 1699 for (i = 0; i < ARRAY_SIZE(probs->coef); i++) in _adapt_coef_probs() 1700 for (j = 0; j < ARRAY_SIZE(probs->coef[0]); j++) in _adapt_coef_probs() 1701 for (k = 0; k < ARRAY_SIZE(probs->coef[0][0]); k++) in _adapt_coef_probs()
|
| /linux/drivers/input/ |
| H A D | joydev.c | 76 value = value > corr->coef[0] ? (value < corr->coef[1] ? 0 : in joydev_correct() 77 ((corr->coef[3] * (value - corr->coef[1])) >> 14)) : in joydev_correct() 78 ((corr->coef[2] * (value - corr->coef[0])) >> 14); in joydev_correct() 977 joydev->corr[i].coef[0] = t - input_abs_get_flat(dev, j); in joydev_connect() 978 joydev->corr[i].coef[1] = t + input_abs_get_flat(dev, j); in joydev_connect() 983 joydev->corr[i].coef[2] = (1 << 29) / t; in joydev_connect() 984 joydev->corr[i].coef[3] = (1 << 29) / t; in joydev_connect()
|
| /linux/drivers/media/platform/rockchip/rkvdec/ |
| H A D | rkvdec-vp9.c | 49 u8 coef[2][4][2][128]; member 169 static void write_coeff_plane(const u8 coef[6][6][3], u8 *coeff_plane) in write_coeff_plane() 178 p = coef[k][m][n]; in write_coeff_plane() 206 for (i = 0; i < ARRAY_SIZE(probs->coef); i++) { in init_intra_only_probs() 207 for (j = 0; j < ARRAY_SIZE(probs->coef[0]); j++) in init_intra_only_probs() 208 write_coeff_plane(probs->coef[i][j][0], in init_intra_only_probs() 272 for (i = 0; i < ARRAY_SIZE(probs->coef); i++) { in init_inter_probs() 273 for (j = 0; j < ARRAY_SIZE(probs->coef[0]); j++) { in init_inter_probs() 274 for (k = 0; k < ARRAY_SIZE(probs->coef[0][0]); k++) in init_inter_probs() 275 write_coeff_plane(probs->coef[i][j][k], in init_inter_probs() [all …]
|
| /linux/include/linux/ |
| H A D | polynomial.h | 18 long coef; member
|
| /linux/drivers/media/platform/samsung/s5p-jpeg/ |
| H A D | jpeg-hw-s5p.h | 50 unsigned int j, unsigned int coef);
|
| H A D | jpeg-hw-s5p.c | 262 unsigned int j, unsigned int coef) in s5p_jpeg_coef() argument 268 reg |= (coef << S5P_COEFn_SHIFT(j)) & S5P_COEFn_MASK(j); in s5p_jpeg_coef()
|
| /linux/include/uapi/linux/ |
| H A D | joystick.h | 77 __s32 coef[8]; member
|
| /linux/sound/hda/codecs/realtek/ |
| H A D | realtek.c | 226 int coef; in alc_update_knob_master() 228 coef = alc_get_coef0(codec); in alc_update_knob_master() 239 if ((coef & 0x00f0) == 0x0010) in alc_fill_eapd_coef() local 241 if ((coef & 0x00f0) == 0x0020) in alc_fill_eapd_coef() 243 if ((coef & 0x00f0) == 0x0030) in alc_fill_eapd_coef() 301 if ((coef & 0x00f0) == 0x0030) in alc_fill_eapd_coef() 324 if ((coef & 0x00f0) == 0x0020 || (coef & 0x00f0) == 0x0030) in alc_fill_eapd_coef()
|