Home
last modified time | relevance | path

Searched full:tab (Results 1 – 25 of 416) sorted by relevance

12345678910>>...17

/kernel/linux/linux-5.10/drivers/block/zram/zram_group/
Dzlist.c36 static inline void zlist_before_add_check(struct zlist_table *tab, in zlist_before_add_check() argument
40 assert(idx2node(prev->next, tab) == next); in zlist_before_add_check()
41 assert(idx2node(next->prev, tab) == prev); in zlist_before_add_check()
42 assert(idx2node(node->prev, tab) == node); in zlist_before_add_check()
43 assert(idx2node(node->next, tab) == node); in zlist_before_add_check()
46 static inline void zlist_after_add_check(struct zlist_table *tab, in zlist_after_add_check() argument
50 assert(idx2node(prev->next, tab) == node); in zlist_after_add_check()
51 assert(idx2node(next->prev, tab) == node); in zlist_after_add_check()
52 assert(idx2node(node->prev, tab) == prev); in zlist_after_add_check()
53 assert(idx2node(node->next, tab) == next); in zlist_after_add_check()
[all …]
Dzlist.h29 static inline struct zlist_node *idx2node(u32 idx, struct zlist_table *tab) in idx2node() argument
31 return tab->idx2node(idx, tab->private); in idx2node()
34 static inline u32 next_idx(u32 idx, struct zlist_table *tab) in next_idx() argument
36 return idx2node(idx, tab)->next; in next_idx()
39 static inline u32 prev_idx(u32 idx, struct zlist_table *tab) in prev_idx() argument
41 return idx2node(idx, tab)->prev; in prev_idx()
44 static inline void zlist_table_free(struct zlist_table *tab) in zlist_table_free() argument
46 kfree(tab); in zlist_table_free()
52 void zlist_lock(u32 idx, struct zlist_table *tab);
53 void zlist_unlock(u32 idx, struct zlist_table *tab);
[all …]
/kernel/linux/linux-4.19/arch/x86/crypto/
Daes-x86_64-asm_64.S80 #define round(TAB,OFFSET,r1,r2,r3,r4,r5,r6,r7,r8,ra,rb,rc,rd) \ argument
83 movl TAB+1024(,r5,4),r5 ## E;\
85 movl TAB(,r6,4),r6 ## E; \
92 xorl TAB+3072(,r4,4),r5 ## E;\
93 xorl TAB+2048(,r7,4),r6 ## E;\
96 movl TAB+1024(,r4,4),r4 ## E;\
100 xorl TAB(,r7,4),r5 ## E; \
103 xorl TAB+3072(,r3,4),r4 ## E;\
104 xorl TAB+2048(,r7,4),r5 ## E;\
108 xorl TAB+3072(,r3,4),r6 ## E;\
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c825 static void gfar_set_mask(u32 mask, struct filer_table *tab) in gfar_set_mask() argument
827 tab->fe[tab->index].ctrl = RQFCR_AND | RQFCR_PID_MASK | RQFCR_CMP_EXACT; in gfar_set_mask()
828 tab->fe[tab->index].prop = mask; in gfar_set_mask()
829 tab->index++; in gfar_set_mask()
833 static void gfar_set_parse_bits(u32 value, u32 mask, struct filer_table *tab) in gfar_set_parse_bits() argument
835 gfar_set_mask(mask, tab); in gfar_set_parse_bits()
836 tab->fe[tab->index].ctrl = RQFCR_CMP_EXACT | RQFCR_PID_PARSE | in gfar_set_parse_bits()
838 tab->fe[tab->index].prop = value; in gfar_set_parse_bits()
839 tab->index++; in gfar_set_parse_bits()
843 struct filer_table *tab) in gfar_set_general_attribute() argument
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c895 static void gfar_set_mask(u32 mask, struct filer_table *tab) in gfar_set_mask() argument
897 tab->fe[tab->index].ctrl = RQFCR_AND | RQFCR_PID_MASK | RQFCR_CMP_EXACT; in gfar_set_mask()
898 tab->fe[tab->index].prop = mask; in gfar_set_mask()
899 tab->index++; in gfar_set_mask()
903 static void gfar_set_parse_bits(u32 value, u32 mask, struct filer_table *tab) in gfar_set_parse_bits() argument
905 gfar_set_mask(mask, tab); in gfar_set_parse_bits()
906 tab->fe[tab->index].ctrl = RQFCR_CMP_EXACT | RQFCR_PID_PARSE | in gfar_set_parse_bits()
908 tab->fe[tab->index].prop = value; in gfar_set_parse_bits()
909 tab->index++; in gfar_set_parse_bits()
913 struct filer_table *tab) in gfar_set_general_attribute() argument
[all …]
/kernel/linux/linux-4.19/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];
143 * @tab: little-endian Ethernet table
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];
[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()
/kernel/linux/linux-5.10/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];
143 * @tab: little-endian Ethernet table
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];
[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()
/kernel/linux/linux-5.10/net/sched/
Dsch_gred.c53 struct gred_sched_data *tab[MAX_DPs]; member
98 struct gred_sched_data *q = table->tab[i]; in gred_wred_mode_check()
105 if (table->tab[n] && table->tab[n]->prio == q->prio) in gred_wred_mode_check()
159 if (table->tab[i] && table->tab[i]->red_flags) in gred_per_vq_red_flags_used()
172 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) { in gred_enqueue()
175 q = t->tab[dp]; in gred_enqueue()
198 if (t->tab[i] && t->tab[i]->prio < q->prio && in gred_enqueue()
199 !red_is_idling(&t->tab[i]->vars)) in gred_enqueue()
200 qavg += t->tab[i]->vars.qavg; in gred_enqueue()
271 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) { in gred_dequeue()
[all …]
Dsch_choke.c72 struct sk_buff **tab; member
100 } while (q->tab[q->head] == NULL); in choke_zap_head_holes()
110 } while (q->tab[q->tail] == NULL); in choke_zap_tail_holes()
118 struct sk_buff *skb = q->tab[idx]; in choke_drop_by_idx()
120 q->tab[idx] = NULL; in choke_drop_by_idx()
188 skb = q->tab[*pidx]; in choke_peek_random()
193 return q->tab[*pidx = q->head]; in choke_peek_random()
269 q->tab[q->tail] = skb; in choke_enqueue()
295 skb = q->tab[q->head]; in choke_dequeue()
296 q->tab[q->head] = NULL; in choke_dequeue()
[all …]
/kernel/linux/linux-4.19/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
Dphy_lcn.c991 struct phytbl_info tab; in wlc_lcnphy_common_read_table() local
992 tab.tbl_id = tbl_id; in wlc_lcnphy_common_read_table()
993 tab.tbl_ptr = tbl_ptr; in wlc_lcnphy_common_read_table()
994 tab.tbl_len = tbl_len; in wlc_lcnphy_common_read_table()
995 tab.tbl_width = tbl_width; in wlc_lcnphy_common_read_table()
996 tab.tbl_offset = tbl_offset; in wlc_lcnphy_common_read_table()
997 wlc_lcnphy_read_table(pi, &tab); in wlc_lcnphy_common_read_table()
1006 struct phytbl_info tab; in wlc_lcnphy_common_write_table() local
1007 tab.tbl_id = tbl_id; in wlc_lcnphy_common_write_table()
1008 tab.tbl_ptr = tbl_ptr; in wlc_lcnphy_common_write_table()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
Dphy_lcn.c925 struct phytbl_info tab; in wlc_lcnphy_common_read_table() local
926 tab.tbl_id = tbl_id; in wlc_lcnphy_common_read_table()
927 tab.tbl_ptr = tbl_ptr; in wlc_lcnphy_common_read_table()
928 tab.tbl_len = tbl_len; in wlc_lcnphy_common_read_table()
929 tab.tbl_width = tbl_width; in wlc_lcnphy_common_read_table()
930 tab.tbl_offset = tbl_offset; in wlc_lcnphy_common_read_table()
931 wlc_lcnphy_read_table(pi, &tab); in wlc_lcnphy_common_read_table()
940 struct phytbl_info tab; in wlc_lcnphy_common_write_table() local
941 tab.tbl_id = tbl_id; in wlc_lcnphy_common_write_table()
942 tab.tbl_ptr = tbl_ptr; in wlc_lcnphy_common_write_table()
[all …]
/kernel/linux/linux-4.19/net/sched/
Dsch_gred.c54 struct gred_sched_data *tab[MAX_DPs]; member
99 struct gred_sched_data *q = table->tab[i]; in gred_wred_mode_check()
106 if (table->tab[n] && table->tab[n]->prio == q->prio) in gred_wred_mode_check()
160 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) { in gred_enqueue()
163 q = t->tab[dp]; in gred_enqueue()
186 if (t->tab[i] && t->tab[i]->prio < q->prio && in gred_enqueue()
187 !red_is_idling(&t->tab[i]->vars)) in gred_enqueue()
188 qavg += t->tab[i]->vars.qavg; in gred_enqueue()
259 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) { in gred_dequeue()
288 struct gred_sched_data *q = t->tab[i]; in gred_reset()
[all …]
Dsch_choke.c76 struct sk_buff **tab; member
104 } while (q->tab[q->head] == NULL); in choke_zap_head_holes()
114 } while (q->tab[q->tail] == NULL); in choke_zap_tail_holes()
122 struct sk_buff *skb = q->tab[idx]; in choke_drop_by_idx()
124 q->tab[idx] = NULL; in choke_drop_by_idx()
198 skb = q->tab[*pidx]; in choke_peek_random()
203 return q->tab[*pidx = q->head]; in choke_peek_random()
279 q->tab[q->tail] = skb; in choke_enqueue()
305 skb = q->tab[q->head]; in choke_dequeue()
306 q->tab[q->head] = NULL; in choke_dequeue()
[all …]
/kernel/linux/linux-5.10/scripts/genksyms/
DMakefile5 genksyms-objs := genksyms.o parse.tab.o lex.lex.o
20 $(obj)/pars%.tab.c $(obj)/pars%.tab.h: $(src)/pars%.y FORCE
26 HOSTCFLAGS_parse.tab.o := -I $(srctree)/$(src)
30 $(obj)/lex.lex.o: $(obj)/parse.tab.h
/kernel/linux/linux-4.19/scripts/genksyms/
DMakefile6 genksyms-objs := genksyms.o parse.tab.o lex.lex.o
21 $(obj)/parse.tab.c: $(src)/parse.y FORCE
28 $(obj)/parse.tab.h: $(src)/parse.y FORCE
34 HOSTCFLAGS_parse.tab.o := -I$(src)
38 $(obj)/lex.lex.o: $(obj)/parse.tab.h
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
Dsched.c50 e = &s->tab[p->u.params.class]; in t4_sched_class_fw_cmd()
129 end = &s->tab[s->sched_size]; in t4_sched_entry_lookup()
130 for (e = &s->tab[0]; e != end; ++e) { in t4_sched_entry_lookup()
182 return qe ? &pi->sched_tbl->tab[qe->param.class] : NULL; in cxgb4_sched_queue_lookup()
206 e = &pi->sched_tbl->tab[qe->param.class]; in t4_sched_queue_unbind()
244 e = &s->tab[qe->param.class]; in t4_sched_queue_bind()
277 e = &pi->sched_tbl->tab[fe->param.class]; in t4_sched_flowc_unbind()
309 e = &s->tab[fe->param.class]; in t4_sched_flowc_bind()
488 end = &s->tab[s->sched_size]; in t4_sched_class_lookup()
489 for (e = &s->tab[0]; e != end; ++e) { in t4_sched_class_lookup()
[all …]
/kernel/linux/linux-4.19/arch/arm/kernel/
Dunwind.c518 struct unwind_table *tab = kmalloc(sizeof(*tab), GFP_KERNEL); in unwind_table_add() local
523 if (!tab) in unwind_table_add()
524 return tab; in unwind_table_add()
526 tab->start = (const struct unwind_idx *)start; in unwind_table_add()
527 tab->stop = (const struct unwind_idx *)(start + size); in unwind_table_add()
528 tab->origin = unwind_find_origin(tab->start, tab->stop); in unwind_table_add()
529 tab->begin_addr = text_addr; in unwind_table_add()
530 tab->end_addr = text_addr + text_size; in unwind_table_add()
533 list_add_tail(&tab->list, &unwind_tables); in unwind_table_add()
536 return tab; in unwind_table_add()
[all …]
/kernel/linux/linux-5.10/arch/arm/kernel/
Dunwind.c510 struct unwind_table *tab = kmalloc(sizeof(*tab), GFP_KERNEL); in unwind_table_add() local
515 if (!tab) in unwind_table_add()
516 return tab; in unwind_table_add()
518 tab->start = (const struct unwind_idx *)start; in unwind_table_add()
519 tab->stop = (const struct unwind_idx *)(start + size); in unwind_table_add()
520 tab->origin = unwind_find_origin(tab->start, tab->stop); in unwind_table_add()
521 tab->begin_addr = text_addr; in unwind_table_add()
522 tab->end_addr = text_addr + text_size; in unwind_table_add()
525 list_add_tail(&tab->list, &unwind_tables); in unwind_table_add()
528 return tab; in unwind_table_add()
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/chelsio/cxgb4/
Dsched.c51 e = &s->tab[p->u.params.class]; in t4_sched_class_fw_cmd()
120 end = &s->tab[s->sched_size]; in t4_sched_queue_lookup()
121 for (e = &s->tab[0]; e != end; ++e) { in t4_sched_queue_lookup()
223 e = &s->tab[qe->param.class]; in t4_sched_queue_bind()
388 end = &s->tab[s->sched_size]; in t4_sched_class_lookup()
389 for (e = &s->tab[0]; e != end; ++e) { in t4_sched_class_lookup()
404 end = &s->tab[s->sched_size]; in t4_sched_class_lookup()
405 for (e = &s->tab[0]; e != end; ++e) { in t4_sched_class_lookup()
523 memset(&s->tab[i], 0, sizeof(struct sched_class)); in t4_init_sched()
524 s->tab[i].idx = i; in t4_init_sched()
[all …]
/kernel/linux/linux-5.10/tools/perf/jvmti/
Dlibjvmti.c36 jvmti_line_info_t *tab) in do_get_line_number() argument
57 tab->pc = (unsigned long)pc; in do_get_line_number()
58 tab->line_number = loc_tab[src_line].line_number; in do_get_line_number()
59 tab->discrim = 0; /* not yet used */ in do_get_line_number()
60 tab->methodID = m; in do_get_line_number()
73 get_line_numbers(jvmtiEnv *jvmti, const void *compile_info, jvmti_line_info_t **tab, int *nr_lines) in get_line_numbers() argument
82 if (!(tab && nr_lines)) in get_line_numbers()
101 *tab = malloc(nr_total * sizeof(**tab)); in get_line_numbers()
102 if (!*tab) in get_line_numbers()
118 *tab + lines_total); in get_line_numbers()
[all …]
/kernel/linux/linux-4.19/tools/perf/jvmti/
Dlibjvmti.c33 jvmti_line_info_t *tab, jint *nr) in do_get_line_numbers() argument
48 tab[lines].pc = (unsigned long)pc; in do_get_line_numbers()
49 tab[lines].line_number = loc_tab[i].line_number; in do_get_line_numbers()
50 tab[lines].discrim = 0; /* not yet used */ in do_get_line_numbers()
51 tab[lines].methodID = m; in do_get_line_numbers()
63 get_line_numbers(jvmtiEnv *jvmti, const void *compile_info, jvmti_line_info_t **tab, int *nr_lines) in get_line_numbers() argument
73 if (!(tab && nr_lines)) in get_line_numbers()
86 * unfortunately, need a tab to get the number of lines! in get_line_numbers()
106 *tab = malloc(nr_total * sizeof(**tab)); in get_line_numbers()
107 if (!*tab) in get_line_numbers()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-s3c/
Dinit.c32 struct cpu_table *tab, in s3c_lookup_cpu() argument
35 for (; count != 0; count--, tab++) { in s3c_lookup_cpu()
36 if ((idcode & tab->idmask) == (tab->idcode & tab->idmask)) in s3c_lookup_cpu()
37 return tab; in s3c_lookup_cpu()
/kernel/linux/linux-4.19/arch/arm/plat-samsung/
Dinit.c32 struct cpu_table *tab, in s3c_lookup_cpu() argument
35 for (; count != 0; count--, tab++) { in s3c_lookup_cpu()
36 if ((idcode & tab->idmask) == (tab->idcode & tab->idmask)) in s3c_lookup_cpu()
37 return tab; in s3c_lookup_cpu()

12345678910>>...17