Home
last modified time | relevance | path

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

/Linux-v5.4/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-v5.4/drivers/clk/spear/
Dclk-vco-pll.c69 static unsigned long pll_calc_rate(struct pll_rate_tbl *rtbl, in pll_calc_rate() argument
75 mode = rtbl[index].mode ? 256 : 1; in pll_calc_rate()
76 rate = (((2 * rate / 10000) * rtbl[index].m) / (mode * rtbl[index].n)); in pll_calc_rate()
79 *pll_rate = (rate / (1 << rtbl[index].p)) * 10000; in pll_calc_rate()
100 *prate = pll_calc_rate(pll->vco->rtbl, vco_parent_rate, *index, in clk_pll_round_rate_index()
148 struct pll_rate_tbl *rtbl = pll->vco->rtbl; in clk_pll_set_rate() local
159 val |= (rtbl[i].p & PLL_DIV_P_MASK) << PLL_DIV_P_SHIFT; in clk_pll_set_rate()
179 return pll_calc_rate(vco->rtbl, prate, index, NULL); in vco_calc_rate()
234 struct pll_rate_tbl *rtbl = vco->rtbl; in clk_vco_set_rate() local
246 val |= (rtbl[i].mode & PLL_MODE_MASK) << PLL_MODE_SHIFT; in clk_vco_set_rate()
[all …]
Dclk-gpt-synth.c38 struct gpt_rate_tbl *rtbl = gpt->rtbl; in gpt_calc_rate() local
40 prate /= ((1 << (rtbl[index].nscale + 1)) * (rtbl[index].mscale + 1)); in gpt_calc_rate()
84 struct gpt_rate_tbl *rtbl = gpt->rtbl; in clk_gpt_set_rate() local
97 val |= rtbl[i].mscale & GPT_MSCALE_MASK; in clk_gpt_set_rate()
98 val |= (rtbl[i].nscale & GPT_NSCALE_MASK) << GPT_NSCALE_SHIFT; in clk_gpt_set_rate()
115 long flags, void __iomem *reg, struct gpt_rate_tbl *rtbl, u8 in clk_register_gpt() argument
122 if (!name || !parent_name || !reg || !rtbl || !rtbl_cnt) { in clk_register_gpt()
133 gpt->rtbl = rtbl; in clk_register_gpt()
Dclk-aux-synth.c48 struct aux_rate_tbl *rtbl = aux->rtbl; in aux_calc_rate() local
49 u8 eq = rtbl[index].eq ? 1 : 2; in aux_calc_rate()
51 return (((prate / 10000) * rtbl[index].xscale) / in aux_calc_rate()
52 (rtbl[index].yscale * eq)) * 10000; in aux_calc_rate()
103 struct aux_rate_tbl *rtbl = aux->rtbl; in clk_aux_set_rate() local
115 val |= (rtbl[i].eq & aux->masks->eq_sel_mask) << in clk_aux_set_rate()
118 val |= (rtbl[i].xscale & aux->masks->xscale_sel_mask) << in clk_aux_set_rate()
121 val |= (rtbl[i].yscale & aux->masks->yscale_sel_mask) << in clk_aux_set_rate()
139 const struct aux_clk_masks *masks, struct aux_rate_tbl *rtbl, in clk_register_aux() argument
146 if (!aux_name || !parent_name || !reg || !rtbl || !rtbl_cnt) { in clk_register_aux()
[all …]
Dclk-frac-synth.c48 struct frac_rate_tbl *rtbl = frac->rtbl; in frac_calc_rate() local
52 prate /= (2 * rtbl[index].div); in frac_calc_rate()
99 struct frac_rate_tbl *rtbl = frac->rtbl; in clk_frac_set_rate() local
110 val |= rtbl[i].div & DIV_FACTOR_MASK; in clk_frac_set_rate()
127 struct frac_rate_tbl *rtbl, u8 rtbl_cnt, spinlock_t *lock) in clk_register_frac() argument
133 if (!name || !parent_name || !reg || !rtbl || !rtbl_cnt) { in clk_register_frac()
144 frac->rtbl = rtbl; in clk_register_frac()
Dclk.h53 struct aux_rate_tbl *rtbl; member
66 struct frac_rate_tbl *rtbl; member
80 struct gpt_rate_tbl *rtbl; member
97 struct pll_rate_tbl *rtbl; member
115 const struct aux_clk_masks *masks, struct aux_rate_tbl *rtbl,
119 struct frac_rate_tbl *rtbl, u8 rtbl_cnt, spinlock_t *lock);
121 long flags, void __iomem *reg, struct gpt_rate_tbl *rtbl, u8
126 *cfg_reg, struct pll_rate_tbl *rtbl, u8 rtbl_cnt,
/Linux-v5.4/arch/arm64/kernel/
Dhead.S181 .macro populate_entries, tbl, rtbl, index, eindex, flags, inc, tmp1
182 .Lpe\@: phys_to_pte \tmp1, \rtbl
185 add \rtbl, \rtbl, \inc // rtbl = pa next level
244 .macro map_memory, tbl, rtbl, vstart, vend, flags, phys, pgds, istart, iend, tmp, count, sv
245 add \rtbl, \tbl, #PAGE_SIZE
246 mov \sv, \rtbl
249 populate_entries \tbl, \rtbl, \istart, \iend, #PMD_TYPE_TABLE, #PAGE_SIZE, \tmp
251 mov \sv, \rtbl
255 populate_entries \tbl, \rtbl, \istart, \iend, #PMD_TYPE_TABLE, #PAGE_SIZE, \tmp
257 mov \sv, \rtbl
[all …]
/Linux-v5.4/drivers/power/supply/
Dbq25890_charger.c319 const struct bq25890_range *rtbl = &bq25890_tables[id].rt; in bq25890_find_idx() local
322 rtbl_size = (rtbl->max - rtbl->min) / rtbl->step + 1; in bq25890_find_idx()
325 idx < rtbl_size && (idx * rtbl->step + rtbl->min <= value); in bq25890_find_idx()
335 const struct bq25890_range *rtbl; in bq25890_find_val() local
342 rtbl = &bq25890_tables[id].rt; in bq25890_find_val()
344 return (rtbl->min + idx * rtbl->step); in bq25890_find_val()
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/
Dnfp_main.c62 val = nfp_rtsym_read_le(pf->rtbl, name, &err); in nfp_pf_rtsym_read_optional()
82 return nfp_rtsym_map(pf->rtbl, pf_symbol, name, min_size, area); in nfp_pf_map_rtsym()
206 pf->limit_vfs = nfp_rtsym_read_le(pf->rtbl, "nfd_vf_cfg_max_vfs", &err); in nfp_pcie_sriov_read_nfd_limit()
672 pf->mbox = nfp_rtsym_lookup(pf->rtbl, pf_symbol); in nfp_pf_find_rtsyms()
758 pf->rtbl = __nfp_rtsym_table_read(pf->cpp, pf->mip); in nfp_pci_probe()
765 pf->dumpspec = nfp_net_dump_load_dumpspec(pf->cpp, pf->rtbl); in nfp_pci_probe()
795 kfree(pf->rtbl); in nfp_pci_probe()
835 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.h119 struct nfp_rtsym_table *rtbl; member
177 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()
653 if (!pf->rtbl) { in nfp_net_pci_probe()
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/flower/
Dmain.c690 version = nfp_rtsym_read_le(app->pf->rtbl, "hw_flower_version", &err); in nfp_flower_init()
696 num_mems = nfp_rtsym_read_le(app->pf->rtbl, "CONFIG_FC_HOST_CTX_SPLIT", in nfp_flower_init()
713 ctx_count = nfp_rtsym_read_le(app->pf->rtbl, "CONFIG_FC_HOST_CTX_COUNT", in nfp_flower_init()
751 features = nfp_rtsym_read_le(app->pf->rtbl, in nfp_flower_init()
759 err = nfp_rtsym_write_le(app->pf->rtbl, in nfp_flower_init()
772 err = nfp_rtsym_write_le(app->pf->rtbl, in nfp_flower_init()
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/abm/
Dctrl.c331 sym = nfp_rtsym_lookup(pf->rtbl, name); in nfp_abm_ctrl_find_rtsym()
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.c336 mem = nfp_rtsym_map(app->pf->rtbl, "_abi_bpf_capabilities", "bpf.cap", in nfp_bpf_parse_capabilities()