Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_rtsym.c84 struct nfp_rtsym_table *rtbl; in nfp_rtsym_table_read() local
88 rtbl = __nfp_rtsym_table_read(cpp, mip); in nfp_rtsym_table_read()
91 return rtbl; in nfp_rtsym_table_read()
162 int nfp_rtsym_count(struct nfp_rtsym_table *rtbl) in nfp_rtsym_count() argument
164 if (!rtbl) in nfp_rtsym_count()
166 return rtbl->num; in nfp_rtsym_count()
176 const struct nfp_rtsym *nfp_rtsym_get(struct nfp_rtsym_table *rtbl, int idx) in nfp_rtsym_get() argument
178 if (!rtbl) in nfp_rtsym_get()
180 if (idx >= rtbl->num) in nfp_rtsym_get()
183 return &rtbl->symtab[idx]; in nfp_rtsym_get()
[all …]
Dnfp_nffw.h68 int nfp_rtsym_count(struct nfp_rtsym_table *rtbl);
69 const struct nfp_rtsym *nfp_rtsym_get(struct nfp_rtsym_table *rtbl, int idx);
71 nfp_rtsym_lookup(struct nfp_rtsym_table *rtbl, const char *name);
99 u64 nfp_rtsym_read_le(struct nfp_rtsym_table *rtbl, const char *name,
101 int nfp_rtsym_write_le(struct nfp_rtsym_table *rtbl, const char *name,
104 nfp_rtsym_map(struct nfp_rtsym_table *rtbl, const char *name, const char *id,
/linux-6.1.9/drivers/clk/spear/
Dclk-vco-pll.c66 static unsigned long pll_calc_rate(struct pll_rate_tbl *rtbl, in pll_calc_rate() argument
72 mode = rtbl[index].mode ? 256 : 1; in pll_calc_rate()
73 rate = (((2 * rate / 10000) * rtbl[index].m) / (mode * rtbl[index].n)); in pll_calc_rate()
76 *pll_rate = (rate / (1 << rtbl[index].p)) * 10000; in pll_calc_rate()
97 *prate = pll_calc_rate(pll->vco->rtbl, vco_parent_rate, *index, in clk_pll_round_rate_index()
145 struct pll_rate_tbl *rtbl = pll->vco->rtbl; in clk_pll_set_rate() local
156 val |= (rtbl[i].p & PLL_DIV_P_MASK) << PLL_DIV_P_SHIFT; in clk_pll_set_rate()
176 return pll_calc_rate(vco->rtbl, prate, index, NULL); in vco_calc_rate()
231 struct pll_rate_tbl *rtbl = vco->rtbl; in clk_vco_set_rate() local
243 val |= (rtbl[i].mode & PLL_MODE_MASK) << PLL_MODE_SHIFT; in clk_vco_set_rate()
[all …]
Dclk-gpt-synth.c35 struct gpt_rate_tbl *rtbl = gpt->rtbl; in gpt_calc_rate() local
37 prate /= ((1 << (rtbl[index].nscale + 1)) * (rtbl[index].mscale + 1)); in gpt_calc_rate()
81 struct gpt_rate_tbl *rtbl = gpt->rtbl; in clk_gpt_set_rate() local
94 val |= rtbl[i].mscale & GPT_MSCALE_MASK; in clk_gpt_set_rate()
95 val |= (rtbl[i].nscale & GPT_NSCALE_MASK) << GPT_NSCALE_SHIFT; in clk_gpt_set_rate()
112 long flags, void __iomem *reg, struct gpt_rate_tbl *rtbl, u8 in clk_register_gpt() argument
119 if (!name || !parent_name || !reg || !rtbl || !rtbl_cnt) { in clk_register_gpt()
130 gpt->rtbl = rtbl; in clk_register_gpt()
Dclk-aux-synth.c45 struct aux_rate_tbl *rtbl = aux->rtbl; in aux_calc_rate() local
46 u8 eq = rtbl[index].eq ? 1 : 2; in aux_calc_rate()
48 return (((prate / 10000) * rtbl[index].xscale) / in aux_calc_rate()
49 (rtbl[index].yscale * eq)) * 10000; in aux_calc_rate()
100 struct aux_rate_tbl *rtbl = aux->rtbl; in clk_aux_set_rate() local
112 val |= (rtbl[i].eq & aux->masks->eq_sel_mask) << in clk_aux_set_rate()
115 val |= (rtbl[i].xscale & aux->masks->xscale_sel_mask) << in clk_aux_set_rate()
118 val |= (rtbl[i].yscale & aux->masks->yscale_sel_mask) << in clk_aux_set_rate()
136 const struct aux_clk_masks *masks, struct aux_rate_tbl *rtbl, in clk_register_aux() argument
143 if (!aux_name || !parent_name || !reg || !rtbl || !rtbl_cnt) { in clk_register_aux()
[all …]
Dclk-frac-synth.c45 struct frac_rate_tbl *rtbl = frac->rtbl; in frac_calc_rate() local
49 prate /= (2 * rtbl[index].div); in frac_calc_rate()
96 struct frac_rate_tbl *rtbl = frac->rtbl; in clk_frac_set_rate() local
107 val |= rtbl[i].div & DIV_FACTOR_MASK; in clk_frac_set_rate()
124 struct frac_rate_tbl *rtbl, u8 rtbl_cnt, spinlock_t *lock) in clk_register_frac() argument
130 if (!name || !parent_name || !reg || !rtbl || !rtbl_cnt) { in clk_register_frac()
141 frac->rtbl = rtbl; in clk_register_frac()
Dclk.h50 struct aux_rate_tbl *rtbl; member
63 struct frac_rate_tbl *rtbl; member
77 struct gpt_rate_tbl *rtbl; member
94 struct pll_rate_tbl *rtbl; member
112 const struct aux_clk_masks *masks, struct aux_rate_tbl *rtbl,
116 struct frac_rate_tbl *rtbl, u8 rtbl_cnt, spinlock_t *lock);
118 long flags, void __iomem *reg, struct gpt_rate_tbl *rtbl, u8
123 *cfg_reg, struct pll_rate_tbl *rtbl, u8 rtbl_cnt,
/linux-6.1.9/arch/arm64/kernel/
Dhead.S156 .macro populate_entries, tbl, rtbl, index, eindex, flags, inc, tmp1
157 .Lpe\@: phys_to_pte \tmp1, \rtbl
160 add \rtbl, \rtbl, \inc // rtbl = pa next level
211 ….macro map_memory, tbl, rtbl, vstart, vend, flags, phys, order, istart, iend, tmp, count, sv, extr…
213 add \rtbl, \tbl, #PAGE_SIZE
220 mov \sv, \rtbl
221 populate_entries \tbl, \rtbl, \istart, \iend, #PMD_TYPE_TABLE, #PAGE_SIZE, \tmp
226 mov \sv, \rtbl
227 populate_entries \tbl, \rtbl, \istart, \iend, #PMD_TYPE_TABLE, #PAGE_SIZE, \tmp
232 mov \sv, \rtbl
[all …]
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/
Dnfp_main.c81 val = nfp_rtsym_read_le(pf->rtbl, name, &err); in nfp_pf_rtsym_read_optional()
101 return nfp_rtsym_map(pf->rtbl, pf_symbol, name, min_size, area); in nfp_pf_map_rtsym()
225 pf->limit_vfs = nfp_rtsym_read_le(pf->rtbl, "nfd_vf_cfg_max_vfs", &err); in nfp_pcie_sriov_read_nfd_limit()
684 pf->mbox = nfp_rtsym_lookup(pf->rtbl, pf_symbol); in nfp_pf_find_rtsyms()
708 val = nfp_rtsym_read_le(pf->rtbl, name, &err); in nfp_net_pf_get_app_cap()
834 pf->rtbl = __nfp_rtsym_table_read(pf->cpp, pf->mip); in nfp_pci_probe()
841 pf->dumpspec = nfp_net_dump_load_dumpspec(pf->cpp, pf->rtbl); in nfp_pci_probe()
873 kfree(pf->rtbl); in nfp_pci_probe()
912 kfree(pf->rtbl); in __nfp_pci_shutdown()
Dnfp_net_debugdump.c156 nfp_net_dump_load_dumpspec(struct nfp_cpp *cpp, struct nfp_rtsym_table *rtbl) in nfp_net_dump_load_dumpspec() argument
163 specsym = nfp_rtsym_lookup(rtbl, NFP_DUMP_SPEC_RTSYM); in nfp_net_dump_load_dumpspec()
231 struct nfp_rtsym_table *rtbl = pf->rtbl; in nfp_calc_rtsym_dump_sz() local
242 sym = nfp_rtsym_lookup(rtbl, spec_rtsym->rtsym); in nfp_calc_rtsym_dump_sz()
602 struct nfp_rtsym_table *rtbl = pf->rtbl; in nfp_dump_single_rtsym() local
615 sym = nfp_rtsym_lookup(rtbl, spec->rtsym); in nfp_dump_single_rtsym()
Dnfp_main.h121 struct nfp_rtsym_table *rtbl; member
178 nfp_net_dump_load_dumpspec(struct nfp_cpp *cpp, struct nfp_rtsym_table *rtbl);
Dnfp_net_main.c462 pf->mac_stats_mem = nfp_rtsym_map(pf->rtbl, "_mac_stats", in nfp_net_pci_map_mem()
708 if (!pf->rtbl) { in nfp_net_pci_probe()
/linux-6.1.9/drivers/power/supply/
Dbq25890_charger.c381 const struct bq25890_range *rtbl = &bq25890_tables[id].rt; in bq25890_find_idx() local
384 rtbl_size = (rtbl->max - rtbl->min) / rtbl->step + 1; in bq25890_find_idx()
387 idx < rtbl_size && (idx * rtbl->step + rtbl->min <= value); in bq25890_find_idx()
397 const struct bq25890_range *rtbl; in bq25890_find_val() local
404 rtbl = &bq25890_tables[id].rt; in bq25890_find_val()
406 return (rtbl->min + idx * rtbl->step); in bq25890_find_val()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/flower/
Dmain.c677 feat = nfp_rtsym_read_le(app->pf->rtbl, in nfp_flower_wait_host_bit()
699 err = nfp_rtsym_write_le(app->pf->rtbl, "_abi_flower_host_mask", in nfp_flower_sync_feature_bits()
708 err = nfp_rtsym_write_le(app->pf->rtbl, in nfp_flower_sync_feature_bits()
721 err = nfp_rtsym_write_le(app->pf->rtbl, in nfp_flower_sync_feature_bits()
761 version = nfp_rtsym_read_le(app->pf->rtbl, "hw_flower_version", &err); in nfp_flower_init()
767 num_mems = nfp_rtsym_read_le(app->pf->rtbl, "CONFIG_FC_HOST_CTX_SPLIT", in nfp_flower_init()
784 ctx_count = nfp_rtsym_read_le(app->pf->rtbl, "CONFIG_FC_HOST_CTX_COUNT", in nfp_flower_init()
822 features = nfp_rtsym_read_le(app->pf->rtbl, in nfp_flower_init()
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Dpeer.c171 struct rhashtable *rtbl, in ath11k_peer_rhash_insert() argument
180 tmp = rhashtable_lookup_get_insert_fast(rtbl, rhead, *params); in ath11k_peer_rhash_insert()
191 struct rhashtable *rtbl, in ath11k_peer_rhash_remove() argument
199 ret = rhashtable_remove_fast(rtbl, rhead, *params); in ath11k_peer_rhash_remove()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/abm/
Dctrl.c331 sym = nfp_rtsym_lookup(pf->rtbl, name); in nfp_abm_ctrl_find_rtsym()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.c342 mem = nfp_rtsym_map(app->pf->rtbl, "_abi_bpf_capabilities", "bpf.cap", in nfp_bpf_parse_capabilities()