/linux/drivers/gpu/drm/imx/dcss/ |
A D | dcss-scaler.c | 173 int coef[][PSC_NUM_TAPS]) in dcss_scaler_gaussian_filter() 184 coef[phase][0] = 0; in dcss_scaler_gaussian_filter() 237 sum += coef[phase][i]; in dcss_scaler_gaussian_filter() 239 ll_temp = coef[phase][i]; in dcss_scaler_gaussian_filter() 243 coef[phase][i] = (int)ll_temp; in dcss_scaler_gaussian_filter() 249 int coef[][PSC_NUM_TAPS]) in dcss_scaler_nearest_neighbor_filter() 587 int coef[][PSC_NUM_TAPS]) in dcss_scaler_program_5_coef_set() 622 int coef[][PSC_NUM_TAPS]) in dcss_scaler_program_7_coef_set() 637 (coef[i][6] & 0xfff)), in dcss_scaler_program_7_coef_set() 673 src_xres == dst_xres, coef, in dcss_scaler_yuv_coef_set() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
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/pci/hda/ |
A D | patch_cirrus.c | 141 unsigned int coef) in cs_vendor_coef_set() argument 189 unsigned int coef; in init_input_coef() local 280 unsigned int coef; in init_digital_coef() local 963 unsigned int coef = in cs421x_boost_vol_put() local 967 coef &= ~0x0003; in cs421x_boost_vol_put() 968 coef |= (vol & 0x0003); in cs421x_boost_vol_put() 969 if (original_coef != coef) { in cs421x_boost_vol_put() 992 unsigned int def_conf, coef; in cs4210_pinmux_init() local 1000 coef &= ~0x0008; in cs4210_pinmux_init() 1005 coef &= ~0x0010; in cs4210_pinmux_init() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
A D | nv50.c | 75 P = (coef & 0x00070000) >> 16; 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() 110 P += (coef & 0x00070000) >> 16; in read_pll_src() 111 N = (coef & 0x0000ff00) >> 8; in read_pll_src() 112 M = (coef & 0x000000ff) >> 0; in read_pll_src() 174 N2 = (coef & 0xff000000) >> 24; in read_pll() 175 M2 = (coef & 0x00ff0000) >> 16; in read_pll() 176 N1 = (coef & 0x0000ff00) >> 8; in read_pll() [all …]
|
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 …]
|
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 …]
|
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()
|
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()
|
/linux/drivers/iio/pressure/ |
A D | dps310.c | 113 u8 coef[18]; in dps310_get_coefs() local 119 sizeof(coef)); in dps310_get_coefs() 127 c0 = (coef[0] << 4) | (coef[1] >> 4); in dps310_get_coefs() 130 c1 = ((coef[1] & GENMASK(3, 0)) << 8) | coef[2]; in dps310_get_coefs() 138 c00 = (coef[3] << 12) | (coef[4] << 4) | (coef[5] >> 4); in dps310_get_coefs() 141 c10 = ((coef[5] & GENMASK(3, 0)) << 16) | (coef[6] << 8) | coef[7]; in dps310_get_coefs() 144 c01 = (coef[8] << 8) | coef[9]; in dps310_get_coefs() 147 c11 = (coef[10] << 8) | coef[11]; in dps310_get_coefs() 150 c20 = (coef[12] << 8) | coef[13]; in dps310_get_coefs() 153 c21 = (coef[14] << 8) | coef[15]; in dps310_get_coefs() [all …]
|
/linux/drivers/media/platform/sti/bdisp/ |
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 …]
|
A D | bdisp-filter.h | 20 const u8 coef[BDISP_HF_NB]; member 32 const u8 coef[BDISP_VF_NB]; member
|
/linux/crypto/async_tx/ |
A D | async_raid6_recov.c | 71 amul = raid6_gfmul[coef[0]]; in async_sum_product() 72 bmul = raid6_gfmul[coef[1]]; in async_sum_product() 123 1, &coef, len, dma_flags); in async_mult() 142 qmul = raid6_gfmul[coef]; in async_mult() 162 unsigned char coef[2]; in __2data_recov_4() local 184 coef[0] = raid6_gfexi[failb-faila]; in __2data_recov_4() 212 unsigned char coef[2]; in __2data_recov_5() local 276 coef[0] = raid6_gfexi[failb-faila]; in __2data_recov_5() 303 unsigned char coef[2]; in __2data_recov_n() local 365 coef[0] = raid6_gfexi[failb-faila]; in __2data_recov_n() [all …]
|
/linux/drivers/thermal/ |
A D | rcar_gen3_thermal.c | 83 struct equation_coefs coef; member 148 tsc->coef.a1 = FIXPT_DIV(FIXPT_INT(tsc->thcode[1] - tsc->thcode[2]), in rcar_gen3_thermal_calc_coefs() 150 tsc->coef.b1 = FIXPT_INT(tsc->thcode[2]) - tsc->coef.a1 * TJ_3; in rcar_gen3_thermal_calc_coefs() 152 tsc->coef.a2 = FIXPT_DIV(FIXPT_INT(tsc->thcode[1] - tsc->thcode[0]), in rcar_gen3_thermal_calc_coefs() 154 tsc->coef.b2 = FIXPT_INT(tsc->thcode[0]) - tsc->coef.a2 * ths_tj_1; in rcar_gen3_thermal_calc_coefs() 177 val = FIXPT_DIV(FIXPT_INT(reg) - tsc->coef.b1, in rcar_gen3_thermal_get_temp() 178 tsc->coef.a1); in rcar_gen3_thermal_get_temp() 180 val = FIXPT_DIV(FIXPT_INT(reg) - tsc->coef.b2, in rcar_gen3_thermal_get_temp() 181 tsc->coef.a2); in rcar_gen3_thermal_get_temp() 199 val = celsius * tsc->coef.a1 + tsc->coef.b1; in rcar_gen3_thermal_mcelsius_to_temp() [all …]
|
/linux/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ |
A D | ia_css_sdis.host.c | 137 hor_num_isp = dvs_binary->dis.coef.pad.width; in ia_css_get_isp_dis_coefficients() 138 ver_num_isp = dvs_binary->dis.coef.pad.height; in ia_css_get_isp_dis_coefficients() 139 hor_num_3a = dvs_binary->dis.coef.dim.width; in ia_css_get_isp_dis_coefficients() 140 ver_num_3a = dvs_binary->dis.coef.dim.height; in ia_css_get_isp_dis_coefficients() 161 return sizeof(short) * IA_CSS_DVS_NUM_COEF_TYPES * binary->dis.coef.pad.width; in ia_css_sdis_hor_coef_tbl_bytes() 163 return sizeof(short) * IA_CSS_DVS2_NUM_COEF_TYPES * binary->dis.coef.pad.width; in ia_css_sdis_hor_coef_tbl_bytes() 171 binary->dis.coef.pad.height; in ia_css_sdis_ver_coef_tbl_bytes() 199 dis->coef.dim.width = in ia_css_sdis_init_info() 202 dis->coef.dim.height = in ia_css_sdis_init_info() 205 dis->coef.pad.width = in ia_css_sdis_init_info() [all …]
|
/linux/drivers/media/platform/omap3isp/ |
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/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
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()
|
A D | ramnv40.h | 10 u32 coef; member
|
/linux/drivers/dma/ioat/ |
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()
|
A D | hw.h | 187 uint8_t coef[8]; member 218 unsigned int coef:8; member 237 uint8_t coef[8]; member
|
/linux/drivers/gpu/drm/v3d/ |
A D | v3d_sched.c | 199 V3D_WRITE(V3D_TFU_COEF0, job->args.coef[0]); in v3d_tfu_job_run() 200 if (job->args.coef[0] & V3D_TFU_COEF0_USECOEF) { in v3d_tfu_job_run() 201 V3D_WRITE(V3D_TFU_COEF1, job->args.coef[1]); in v3d_tfu_job_run() 202 V3D_WRITE(V3D_TFU_COEF2, job->args.coef[2]); in v3d_tfu_job_run() 203 V3D_WRITE(V3D_TFU_COEF3, job->args.coef[3]); in v3d_tfu_job_run()
|
/linux/drivers/input/ |
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() 978 joydev->corr[i].coef[0] = t - input_abs_get_flat(dev, j); in joydev_connect() 979 joydev->corr[i].coef[1] = t + input_abs_get_flat(dev, j); in joydev_connect() 984 joydev->corr[i].coef[2] = (1 << 29) / t; in joydev_connect() 985 joydev->corr[i].coef[3] = (1 << 29) / t; in joydev_connect()
|
/linux/drivers/gpu/drm/sti/ |
A D | sti_hqvdp.c | 453 static const char *hqvdp_dbg_get_lut(u32 *coef) in hqvdp_dbg_get_lut() argument 455 if (!memcmp(coef, coef_lut_a_legacy, 16)) in hqvdp_dbg_get_lut() 457 if (!memcmp(coef, coef_lut_b, 16)) in hqvdp_dbg_get_lut() 459 if (!memcmp(coef, coef_lut_c_y_legacy, 16)) in hqvdp_dbg_get_lut() 461 if (!memcmp(coef, coef_lut_c_c_legacy, 16)) in hqvdp_dbg_get_lut() 463 if (!memcmp(coef, coef_lut_d_y_legacy, 16)) in hqvdp_dbg_get_lut() 465 if (!memcmp(coef, coef_lut_d_c_legacy, 16)) in hqvdp_dbg_get_lut() 467 if (!memcmp(coef, coef_lut_e_y_legacy, 16)) in hqvdp_dbg_get_lut() 469 if (!memcmp(coef, coef_lut_e_c_legacy, 16)) in hqvdp_dbg_get_lut() 471 if (!memcmp(coef, coef_lut_f_y_legacy, 16)) in hqvdp_dbg_get_lut() [all …]
|
/linux/drivers/staging/media/atomisp/pci/isp/kernels/tnr/tnr_1.0/ |
A D | ia_css_tnr.host.c | 40 to->coef = in ia_css_tnr_encode() 56 "tnr_coef", tnr->coef); in ia_css_tnr_dump()
|
/linux/Documentation/devicetree/bindings/iio/light/ |
A D | upisemi,us5182.yaml | 19 upisemi,glass-coef: 72 upisemi,glass-coef = < 1000 >;
|
/linux/drivers/iio/magnetometer/ |
A D | yamaha-yas530.c | 272 s32 coef; in yas5xx_linearize() local 278 coef = YAS530_VERSION_A_COEF; in yas5xx_linearize() 280 coef = YAS530_VERSION_B_COEF; in yas5xx_linearize() 284 coef = YAS532_VERSION_AB_COEF; in yas5xx_linearize() 287 coef = yas532ac_coef[axis]; in yas5xx_linearize() 302 (yas5xx->hard_offsets[axis] - c->r[axis]) * coef; in yas5xx_linearize()
|