| /kernel/linux/linux-5.10/drivers/block/zram/zram_group/ |
| D | zlist.c | 36 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 …]
|
| D | zlist.h | 29 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-6.6/drivers/block/zram/zram_group/ |
| D | zlist.c | 36 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 …]
|
| D | zlist.h | 29 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-6.6/drivers/net/ethernet/freescale/ |
| D | gianfar_ethtool.c | 835 static void gfar_set_mask(u32 mask, struct filer_table *tab) in gfar_set_mask() argument 837 tab->fe[tab->index].ctrl = RQFCR_AND | RQFCR_PID_MASK | RQFCR_CMP_EXACT; in gfar_set_mask() 838 tab->fe[tab->index].prop = mask; in gfar_set_mask() 839 tab->index++; in gfar_set_mask() 843 static void gfar_set_parse_bits(u32 value, u32 mask, struct filer_table *tab) in gfar_set_parse_bits() argument 845 gfar_set_mask(mask, tab); in gfar_set_parse_bits() 846 tab->fe[tab->index].ctrl = RQFCR_CMP_EXACT | RQFCR_PID_PARSE | in gfar_set_parse_bits() 848 tab->fe[tab->index].prop = value; in gfar_set_parse_bits() 849 tab->index++; in gfar_set_parse_bits() 853 struct filer_table *tab) in gfar_set_general_attribute() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/freescale/ |
| D | gianfar_ethtool.c | 825 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-5.10/lib/ |
| D | crc32.c | 58 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 …]
|
| D | gen_crc32table.c | 38 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-6.6/lib/ |
| D | crc32.c | 58 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 …]
|
| D | gen_crc32table.c | 38 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/ |
| D | sch_gred.c | 53 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 …]
|
| D | sch_choke.c | 72 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-6.6/net/sched/ |
| D | sch_gred.c | 53 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 (table->tab[i] && table->tab[i]->red_flags) in gred_per_vq_red_flags_used() 173 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) { in gred_enqueue() 176 q = t->tab[dp]; in gred_enqueue() 199 if (t->tab[i] && t->tab[i]->prio < q->prio && in gred_enqueue() 200 !red_is_idling(&t->tab[i]->vars)) in gred_enqueue() 201 qavg += t->tab[i]->vars.qavg; in gred_enqueue() 272 if (dp >= t->DPs || (q = t->tab[dp]) == NULL) { in gred_dequeue() [all …]
|
| D | sch_choke.c | 71 struct sk_buff **tab; member 99 } while (q->tab[q->head] == NULL); in choke_zap_head_holes() 109 } while (q->tab[q->tail] == NULL); in choke_zap_tail_holes() 117 struct sk_buff *skb = q->tab[idx]; in choke_drop_by_idx() 119 q->tab[idx] = NULL; in choke_drop_by_idx() 187 skb = q->tab[*pidx]; in choke_peek_random() 192 return q->tab[*pidx = q->head]; in choke_peek_random() 268 q->tab[q->tail] = skb; in choke_enqueue() 294 skb = q->tab[q->head]; in choke_dequeue() 295 q->tab[q->head] = NULL; in choke_dequeue() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
| D | phy_lcn.c | 925 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-6.6/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
| D | phy_lcn.c | 925 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-6.6/scripts/genksyms/ |
| D | Makefile | 5 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-5.10/scripts/genksyms/ |
| D | Makefile | 5 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-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
| D | sched.c | 50 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-6.6/drivers/net/ethernet/chelsio/cxgb4/ |
| D | sched.c | 50 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-5.10/arch/arm/kernel/ |
| D | unwind.c | 533 struct unwind_table *tab = kmalloc(sizeof(*tab), GFP_KERNEL); in unwind_table_add() local 538 if (!tab) in unwind_table_add() 539 return tab; in unwind_table_add() 541 tab->start = (const struct unwind_idx *)start; in unwind_table_add() 542 tab->stop = (const struct unwind_idx *)(start + size); in unwind_table_add() 543 tab->origin = unwind_find_origin(tab->start, tab->stop); in unwind_table_add() 544 tab->begin_addr = text_addr; in unwind_table_add() 545 tab->end_addr = text_addr + text_size; in unwind_table_add() 548 list_add_tail(&tab->list, &unwind_tables); in unwind_table_add() 551 return tab; in unwind_table_add() [all …]
|
| /kernel/linux/linux-5.10/tools/perf/jvmti/ |
| D | libjvmti.c | 36 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-6.6/tools/perf/jvmti/ |
| D | libjvmti.c | 36 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-6.6/arch/arm/kernel/ |
| D | unwind.c | 575 struct unwind_table *tab = kmalloc(sizeof(*tab), GFP_KERNEL); in unwind_table_add() local 580 if (!tab) in unwind_table_add() 581 return tab; in unwind_table_add() 583 tab->start = (const struct unwind_idx *)start; in unwind_table_add() 584 tab->stop = (const struct unwind_idx *)(start + size); in unwind_table_add() 585 tab->origin = unwind_find_origin(tab->start, tab->stop); in unwind_table_add() 586 tab->begin_addr = text_addr; in unwind_table_add() 587 tab->end_addr = text_addr + text_size; in unwind_table_add() 590 list_add_tail(&tab->list, &unwind_tables); in unwind_table_add() 593 return tab; in unwind_table_add() [all …]
|
| /kernel/linux/linux-6.6/arch/arm/mach-s3c/ |
| D | init.c | 32 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()
|