Home
last modified time | relevance | path

Searched refs:tab (Results 1 – 25 of 27) sorted by relevance

12

/linux-4.19.296/lib/
Dcrc32.c58 crc32_body(u32 crc, unsigned char const *buf, size_t len, const u32 (*tab)[256])
78 const u32 *t0=tab[0], *t1=tab[1], *t2=tab[2], *t3=tab[3];
80 const u32 *t4 = tab[4], *t5 = tab[5], *t6 = tab[6], *t7 = tab[7];
147 size_t len, const u32 (*tab)[256],
160 crc = (crc >> 2) ^ tab[0][crc & 3];
161 crc = (crc >> 2) ^ tab[0][crc & 3];
162 crc = (crc >> 2) ^ tab[0][crc & 3];
163 crc = (crc >> 2) ^ tab[0][crc & 3];
168 crc = (crc >> 4) ^ tab[0][crc & 15];
169 crc = (crc >> 4) ^ tab[0][crc & 15];
[all …]
Dgen_crc32table.c38 uint32_t (*tab)[256]) in crc32init_le_generic()
43 tab[0][0] = 0; in crc32init_le_generic()
48 tab[0][i + j] = crc ^ tab[0][j]; in crc32init_le_generic()
51 crc = tab[0][i]; in crc32init_le_generic()
53 crc = tab[0][crc & 0xff] ^ (crc >> 8); in crc32init_le_generic()
54 tab[j][i] = crc; in crc32init_le_generic()
Ddynamic_debug.c848 int ddebug_add_module(struct _ddebug *tab, unsigned int n, in ddebug_add_module() argument
864 dt->ddebugs = tab; in ddebug_add_module()
Dbch.c1092 uint32_t data, hi, lo, *tab; in build_mod8_tables() local
1103 tab = bch->mod8_tab + (b*256+i)*l; in build_mod8_tables()
1113 tab[j] ^= hi|lo; in build_mod8_tables()
/linux-4.19.296/drivers/hid/
Dhid-debug.c530 static void tab(int n, struct seq_file *f) { in tab() function
538 tab(n, f); in hid_dump_field()
543 tab(n, f); in hid_dump_field()
548 tab(n, f); in hid_dump_field()
552 tab(n, f); seq_printf(f, "Usage(%d)\n", field->maxusage); in hid_dump_field()
554 tab(n+2, f); hid_resolv_usage(field->usage[j].hid, f); seq_printf(f, "\n"); in hid_dump_field()
557 tab(n, f); seq_printf(f, "Logical Minimum(%d)\n", field->logical_minimum); in hid_dump_field()
558 tab(n, f); seq_printf(f, "Logical Maximum(%d)\n", field->logical_maximum); in hid_dump_field()
561 tab(n, f); seq_printf(f, "Physical Minimum(%d)\n", field->physical_minimum); in hid_dump_field()
562 tab(n, f); seq_printf(f, "Physical Maximum(%d)\n", field->physical_maximum); in hid_dump_field()
[all …]
/linux-4.19.296/drivers/media/dvb-frontends/
Dcxd2820r_c.c33 struct reg_val_mask tab[] = { in cxd2820r_set_frontend_c() local
61 ret = cxd2820r_wr_reg_val_mask_tab(priv, tab, ARRAY_SIZE(tab)); in cxd2820r_set_frontend_c()
314 struct reg_val_mask tab[] = { in cxd2820r_sleep_c() local
326 ret = cxd2820r_wr_reg_val_mask_tab(priv, tab, ARRAY_SIZE(tab)); in cxd2820r_sleep_c()
Dcxd2820r_t2.c39 struct reg_val_mask tab[] = { in cxd2820r_set_frontend_t2() local
104 ret = cxd2820r_wr_reg_val_mask_tab(priv, tab, ARRAY_SIZE(tab)); in cxd2820r_set_frontend_t2()
402 struct reg_val_mask tab[] = { in cxd2820r_sleep_t2() local
413 ret = cxd2820r_wr_reg_val_mask_tab(priv, tab, ARRAY_SIZE(tab)); in cxd2820r_sleep_t2()
Dcxd2820r_t.c43 struct reg_val_mask tab[] = { in cxd2820r_set_frontend_t() local
86 ret = cxd2820r_wr_reg_val_mask_tab(priv, tab, ARRAY_SIZE(tab)); in cxd2820r_set_frontend_t()
408 struct reg_val_mask tab[] = { in cxd2820r_sleep_t() local
420 ret = cxd2820r_wr_reg_val_mask_tab(priv, tab, ARRAY_SIZE(tab)); in cxd2820r_sleep_t()
Daf9013.c846 const struct af9013_reg_mask_val *tab; in af9013_init() local
904 tab = demod_init_tab; in af9013_init()
906 ret = regmap_update_bits(state->regmap, tab[i].reg, tab[i].mask, in af9013_init()
907 tab[i].val); in af9013_init()
917 tab = tuner_init_tab_mxl5003d; in af9013_init()
923 tab = tuner_init_tab_mxl5005; in af9013_init()
927 tab = tuner_init_tab_env77h11d5; in af9013_init()
931 tab = tuner_init_tab_mt2060; in af9013_init()
935 tab = tuner_init_tab_mc44s803; in af9013_init()
940 tab = tuner_init_tab_qt1010; in af9013_init()
[all …]
Dm88rs2000.c385 struct inittab *tab) in m88rs2000_tab_set() argument
389 if (tab == NULL) in m88rs2000_tab_set()
393 switch (tab[i].cmd) { in m88rs2000_tab_set()
395 ret = m88rs2000_writereg(state, tab[i].reg, in m88rs2000_tab_set()
396 tab[i].val); in m88rs2000_tab_set()
399 if (tab[i].reg > 0) in m88rs2000_tab_set()
400 mdelay(tab[i].reg); in m88rs2000_tab_set()
403 if (tab[i].reg == 0xaa && tab[i].val == 0xff) in m88rs2000_tab_set()
Daf9033.c42 const struct reg_val *tab, int tab_len) in af9033_wr_reg_val_tab() argument
57 buf[j] = tab[i].val; in af9033_wr_reg_val_tab()
59 if (i == tab_len - 1 || tab[i].reg != tab[i + 1].reg - 1) { in af9033_wr_reg_val_tab()
60 ret = regmap_bulk_write(dev->regmap, tab[i].reg - j, in af9033_wr_reg_val_tab()
86 struct reg_val_mask tab[] = { in af9033_init() local
152 for (i = 0; i < ARRAY_SIZE(tab); i++) { in af9033_init()
153 ret = regmap_update_bits(dev->regmap, tab[i].reg, tab[i].mask, in af9033_init()
154 tab[i].val); in af9033_init()
Dstb0899_drv.c934 static int stb0899_table_lookup(const struct stb0899_tab *tab, int max, int val) in stb0899_table_lookup() argument
939 if (val < tab[min].read) in stb0899_table_lookup()
940 res = tab[min].real; in stb0899_table_lookup()
941 else if (val >= tab[max].read) in stb0899_table_lookup()
942 res = tab[max].real; in stb0899_table_lookup()
946 if (val >= tab[min].read && val < tab[med].read) in stb0899_table_lookup()
951 res = ((val - tab[min].read) * in stb0899_table_lookup()
952 (tab[max].real - tab[min].real) / in stb0899_table_lookup()
953 (tab[max].read - tab[min].read)) + in stb0899_table_lookup()
954 tab[min].real; in stb0899_table_lookup()
Dtda10071.c774 struct tda10071_reg_val_mask tab[] = { in tda10071_init() local
835 for (i = 0; i < ARRAY_SIZE(tab); i++) { in tda10071_init()
836 ret = tda10071_wr_reg_mask(dev, tab[i].reg, in tda10071_init()
837 tab[i].val, tab[i].mask); in tda10071_init()
1057 struct tda10071_reg_val_mask tab[] = { in tda10071_sleep() local
1083 for (i = 0; i < ARRAY_SIZE(tab); i++) { in tda10071_sleep()
1084 ret = tda10071_wr_reg_mask(dev, tab[i].reg, tab[i].val, in tda10071_sleep()
1085 tab[i].mask); in tda10071_sleep()
Dtda10023.c110 static void tda10023_writetab(struct tda10023_state* state, u8* tab) in tda10023_writetab() argument
114 r=*tab++; in tda10023_writetab()
115 m=*tab++; in tda10023_writetab()
116 v=*tab++; in tda10023_writetab()
Drtl2830.c63 struct rtl2830_reg_val_mask tab[] = { in rtl2830_init() local
102 for (i = 0; i < ARRAY_SIZE(tab); i++) { in rtl2830_init()
103 ret = rtl2830_update_bits(client, tab[i].reg, tab[i].mask, in rtl2830_init()
104 tab[i].val); in rtl2830_init()
Dcxd2820r_core.c26 const struct reg_val_mask *tab, int tab_len) in cxd2820r_wr_reg_val_mask_tab() argument
36 if ((tab[i].reg >> 16) & 0x1) in cxd2820r_wr_reg_val_mask_tab()
41 reg = (tab[i].reg >> 0) & 0xffff; in cxd2820r_wr_reg_val_mask_tab()
42 val = tab[i].val; in cxd2820r_wr_reg_val_mask_tab()
43 mask = tab[i].mask; in cxd2820r_wr_reg_val_mask_tab()
Dau8522_dig.c227 static int au8522_mse2snr_lookup(struct mse2snr_tab *tab, int sz, int mse, in au8522_mse2snr_lookup() argument
234 if (mse < tab[i].val) { in au8522_mse2snr_lookup()
235 *snr = tab[i].data; in au8522_mse2snr_lookup()
Dstv090x.c3627 static int stv090x_table_lookup(const struct stv090x_tab *tab, int max, int val) in stv090x_table_lookup() argument
3632 if ((val >= tab[min].read && val < tab[max].read) || in stv090x_table_lookup()
3633 (val >= tab[max].read && val < tab[min].read)) { in stv090x_table_lookup()
3636 if ((val >= tab[min].read && val < tab[med].read) || in stv090x_table_lookup()
3637 (val >= tab[med].read && val < tab[min].read)) in stv090x_table_lookup()
3642 res = ((val - tab[min].read) * in stv090x_table_lookup()
3643 (tab[max].real - tab[min].real) / in stv090x_table_lookup()
3644 (tab[max].read - tab[min].read)) + in stv090x_table_lookup()
3645 tab[min].real; in stv090x_table_lookup()
3647 if (tab[min].read < tab[max].read) { in stv090x_table_lookup()
[all …]
Dcxd2820r_priv.h73 const struct reg_val_mask *tab, int tab_len);
Dm88ds3103.c44 const struct m88ds3103_reg_val *tab, int tab_len) in m88ds3103_wr_reg_val_tab() argument
58 buf[j] = tab[i].val; in m88ds3103_wr_reg_val_tab()
60 if (i == tab_len - 1 || tab[i].reg != tab[i + 1].reg - 1 || in m88ds3103_wr_reg_val_tab()
62 ret = regmap_bulk_write(dev->regmap, tab[i].reg - j, buf, j + 1); in m88ds3103_wr_reg_val_tab()
/linux-4.19.296/include/net/
Dpkt_sched.h108 struct nlattr *tab,
110 void qdisc_put_rtab(struct qdisc_rate_table *tab);
111 void qdisc_put_stab(struct qdisc_size_table *tab);
/linux-4.19.296/drivers/media/usb/dvb-usb-v2/
Daf9035.c1707 struct reg_val_mask tab[] = { in af9035_init() local
1732 for (i = 0; i < ARRAY_SIZE(tab); i++) { in af9035_init()
1733 ret = af9035_wr_reg_mask(d, tab[i].reg, tab[i].val, in af9035_init()
1734 tab[i].mask); in af9035_init()
1754 struct reg_val_mask tab[] = { in it930x_init() local
1814 for (i = 0; i < ARRAY_SIZE(tab); i++) { in it930x_init()
1815 ret = af9035_wr_reg_mask(d, tab[i].reg, in it930x_init()
1816 tab[i].val, tab[i].mask); in it930x_init()
/linux-4.19.296/drivers/iio/magnetometer/
Dak8974.c454 __le16 *tab, size_t tab_size) in ak8974_read_calib_data() argument
456 int ret = regmap_bulk_read(ak8974->map, reg, tab, tab_size); in ak8974_read_calib_data()
458 memset(tab, 0xFF, tab_size); in ak8974_read_calib_data()
463 add_device_randomness(tab, tab_size); in ak8974_read_calib_data()
/linux-4.19.296/
D.gitignore42 *.tab.[ch]
/linux-4.19.296/include/linux/
Ddynamic_debug.h50 int ddebug_add_module(struct _ddebug *tab, unsigned int n,

12