Lines Matching defs:tbl
69 struct applnco_tables *tbl;
102 static void applnco_compute_tables(struct applnco_tables *tbl)
116 tbl->fwd[i] = state;
117 tbl->inv[state] = i;
121 tbl->fwd[0] = 0;
122 tbl->inv[0] = 0;
133 static u32 applnco_div_translate(struct applnco_tables *tbl, unsigned int div)
140 return FIELD_PREP(DIV_COARSE, tbl->fwd[coarse - COARSE_DIV_OFFSET]) |
144 static unsigned int applnco_div_translate_inv(struct applnco_tables *tbl, u32 regval)
148 coarse = tbl->inv[FIELD_GET(DIV_COARSE, regval)] + COARSE_DIV_OFFSET;
169 div = applnco_div_translate(chan->tbl, div);
195 div = applnco_div_translate_inv(chan->tbl,
263 struct applnco_tables *tbl;
282 tbl = devm_kzalloc(&pdev->dev, sizeof(*tbl), GFP_KERNEL);
283 if (!tbl)
285 applnco_compute_tables(tbl);
294 chan->tbl = tbl;