Home
last modified time | relevance | path

Searched refs:corr (Results 1 – 17 of 17) sorted by relevance

/linux/lib/reed_solomon/
H A Dtest_rslib.c80 uint16_t *corr; /* correction buffer */ member
124 ws->corr = ws->s + nroots; in alloc_ws()
220 static void fix_err(uint16_t *data, int nerrs, uint16_t *corr, int *errlocs)
225 data[errlocs[i]] ^= corr[i]; in fix_err()
266 uint16_t *corr = ws->corr; in test_uc()
279 NULL, eras, derrlocs, 0, corr); in test_uc()
280 fix_err(r, derrs, corr, derrlocs); in test_uc()
285 s, eras, derrlocs, 0, corr); in test_uc()
286 fix_err(r, derrs, corr, derrloc in test_uc()
221 fix_err(uint16_t * data,int nerrs,uint16_t * corr,int * errlocs) fix_err() argument
267 uint16_t *corr = ws->corr; test_uc() local
373 uint16_t *corr = ws->corr; test_bc() local
[all...]
H A Dreed_solomon.c348 * @corr: buffer to store correction bitmask on eras_pos
363 uint16_t *corr) in decode_rs8() argument
401 * @corr: buffer to store correction bitmask on eras_pos
414 uint16_t *corr) in decode_rs16() argument
H A Ddecode_rs.c307 if (corr && eras_pos) {
311 corr[j] = b[i];
/linux/drivers/input/
H A Djoydev.c46 struct js_corr corr[ABS_CNT]; member
68 static int joydev_correct(int value, struct js_corr *corr) in joydev_correct() argument
70 switch (corr->type) { in joydev_correct()
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()
133 &joydev->corr[event.number]); in joydev_event()
192 joydev->abs[i] = joydev_correct(val, &joydev->corr[i]); in joydev_refresh_state()
545 if (copy_from_user(joydev->corr, argp, in joydev_ioctl_common()
546 sizeof(joydev->corr[0]) * joydev->nabs)) in joydev_ioctl_common()
[all …]
/linux/drivers/iio/proximity/
H A Disl29501.c423 int corr; in isl29501_write_ext() local
426 corr = isl29501->shadow_coeffs[i]; in isl29501_write_ext()
427 corr_exp = isl29501_find_corr_exp(corr, in isl29501_write_ext()
431 "found exp of corr(%d) = %d\n", corr, corr_exp); in isl29501_write_ext()
442 int corr; in isl29501_write_ext() local
445 corr = isl29501->shadow_coeffs[i]; in isl29501_write_ext()
446 if (!corr) in isl29501_write_ext()
449 mantissa = corr >> max_exp; in isl29501_write_ext()
/linux/drivers/rtc/
H A Drtc-at91rm9200.c328 long corr; in at91_rtc_setoffset() local
356 corr = DIV_ROUND_CLOSEST(AT91_RTC_CORR_DIVIDEND, offset * AT91_RTC_CORR_LOW_RATIO); in at91_rtc_setoffset()
358 corr = DIV_ROUND_CLOSEST(AT91_RTC_CORR_DIVIDEND, offset); in at91_rtc_setoffset()
362 if (corr > 128) in at91_rtc_setoffset()
363 corr = 128; in at91_rtc_setoffset()
365 mr |= FIELD_PREP(AT91_RTC_CORRECTION, corr - 1); in at91_rtc_setoffset()
/linux/include/linux/
H A Drslib.h67 uint16_t *corr);
78 uint16_t *corr);
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwxgmac2_core.c625 static void dwxgmac3_log_error(struct net_device *ndev, u32 value, bool corr, in dwxgmac3_log_error() argument
639 netdev_err(ndev, "Found %s error in %s: '%s: %s'\n", corr ? in dwxgmac3_log_error()
888 bool err, corr; in dwxgmac3_safety_feat_irq_status() local
899 corr = false; in dwxgmac3_safety_feat_irq_status()
901 dwxgmac3_handle_mac_err(ndev, ioaddr, corr, stats); in dwxgmac3_safety_feat_irq_status()
902 ret |= !corr; in dwxgmac3_safety_feat_irq_status()
907 corr = (mtl & XGMAC_MECIS) || (dma & XGMAC_MSCIS); in dwxgmac3_safety_feat_irq_status()
909 dwxgmac3_handle_mtl_err(ndev, ioaddr, corr, stats); in dwxgmac3_safety_feat_irq_status()
910 ret |= !corr; in dwxgmac3_safety_feat_irq_status()
918 corr in dwxgmac3_safety_feat_irq_status()
[all...]
/linux/Documentation/core-api/
H A Dlibrs.rst147 uint16_t par[6], syn[6], corr[8];
157 numerr = decode_rs8 (rs_decoder, NULL, NULL, 512, syn, 0, errpos, 0, corr);
159 do_error_correction_in_your_buffer(errpos[i], corr[i]);
/linux/drivers/mtd/nand/
H A Decc.c479 int corr, ds_corr; in nand_ecc_is_strong_enough() local
489 corr = (mtd->writesize * conf->strength) / conf->step_size; in nand_ecc_is_strong_enough()
492 return corr >= ds_corr && conf->strength >= reqs->strength; in nand_ecc_is_strong_enough()
/linux/drivers/mtd/ubi/
H A Dattach.c279 list_add(&aeb->u.list, &ai->corr); in add_corrupted()
1224 list_for_each_entry(aeb, &ai->corr, u.list) in late_analysis()
1325 list_for_each_entry_safe(aeb, aeb_tmp, &ai->corr, u.list) { in destroy_ai()
1426 list_for_each_entry(aeb, &ai->corr, u.list) in scan_all()
1458 INIT_LIST_HEAD(&ai->corr); in alloc_ai()
1885 list_for_each_entry(aeb, &ai->corr, u.list) in self_check_ai()
H A Dubi.h779 struct list_head corr; member
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_rps.c624 rps->ips.corr = init_emon(uncore); in gen5_rps_enable()
1502 u64 corr, corr2; in __ips_gfx_val() local
1517 corr = t * 2349 + 135940; in __ips_gfx_val()
1519 corr = t * 964 + 29317; in __ips_gfx_val()
1521 corr = t * 301 + 1004; in __ips_gfx_val()
1523 corr = div_u64(corr * 150142 * state1, 10000) - 78642; in __ips_gfx_val()
1524 corr2 = div_u64(corr, 100000) * ips->corr; in __ips_gfx_val()
/linux/tools/perf/
H A Dbuiltin-list.c92 static void wordwrap(FILE *fp, const char *s, int start, int max, int corr) in wordwrap()
105 column = start + corr; in wordwrap()
90 wordwrap(FILE * fp,const char * s,int start,int max,int corr) wordwrap() argument
/linux/Documentation/devicetree/bindings/sound/
H A Dst,sta350.txt70 - st,max-power-corr:
/linux/drivers/mtd/nand/raw/brcmnand/
H A Dbrcmnand.c2077 u8 *oob, u64 *err_addr, unsigned int *corr) in brcmnand_read_by_pio() argument
2084 if (corr) in brcmnand_read_by_pio()
2085 *corr = 0; in brcmnand_read_by_pio()
2121 if (corr && (brcmnand_corr_total(ctrl) - prev_corr) > *corr) in brcmnand_read_by_pio()
2122 *corr = brcmnand_corr_total(ctrl) - prev_corr; in brcmnand_read_by_pio()
/linux/Documentation/input/joydev/
H A Djoystick-api.rst280 information for all axes. That is, struct js_corr corr[MAX_AXIS];