Lines Matching refs:ci
300 static void g450_addcache(struct matrox_pll_cache* ci, unsigned int mnp_key, unsigned int mnp_value… in g450_addcache() argument
301 if (++ci->valid > ARRAY_SIZE(ci->data)) { in g450_addcache()
302 ci->valid = ARRAY_SIZE(ci->data); in g450_addcache()
304 memmove(ci->data + 1, ci->data, (ci->valid - 1) * sizeof(*ci->data)); in g450_addcache()
305 ci->data[0].mnp_key = mnp_key & G450_MNP_FREQBITS; in g450_addcache()
306 ci->data[0].mnp_value = mnp_value; in g450_addcache()
310 struct matrox_pll_cache *ci, unsigned int mnp_key) in g450_checkcache() argument
315 for (i = 0; i < ci->valid; i++) { in g450_checkcache()
316 if (ci->data[i].mnp_key == mnp_key) { in g450_checkcache()
319 mnp = ci->data[i].mnp_value; in g450_checkcache()
321 memmove(ci->data + 1, ci->data, i * sizeof(*ci->data)); in g450_checkcache()
322 ci->data[0].mnp_key = mnp_key; in g450_checkcache()
323 ci->data[0].mnp_value = mnp; in g450_checkcache()
338 struct matrox_pll_cache* ci; in __g450_setclk() local
395 ci = &minfo->cache.pixel; in __g450_setclk()
407 ci = &minfo->cache.system; in __g450_setclk()
427 ci = &minfo->cache.video; in __g450_setclk()
499 mnp = g450_checkcache(minfo, ci, mnparray[0]); in __g450_setclk()
504 g450_addcache(ci, mnparray[0], mnp); in __g450_setclk()