Lines Matching refs:ci
34 void fw_csr_iterator_init(struct fw_csr_iterator *ci, const u32 *p) in fw_csr_iterator_init() argument
36 ci->p = p + 1; in fw_csr_iterator_init()
37 ci->end = ci->p + (p[0] >> 16); in fw_csr_iterator_init()
41 int fw_csr_iterator_next(struct fw_csr_iterator *ci, int *key, int *value) in fw_csr_iterator_next() argument
43 *key = *ci->p >> 24; in fw_csr_iterator_next()
44 *value = *ci->p & 0xffffff; in fw_csr_iterator_next()
46 return ci->p++ < ci->end; in fw_csr_iterator_next()
52 struct fw_csr_iterator ci; in search_leaf() local
55 fw_csr_iterator_init(&ci, directory); in search_leaf()
56 while (fw_csr_iterator_next(&ci, &key, &value)) { in search_leaf()
59 return ci.p - 1 + value; in search_leaf()
122 struct fw_csr_iterator ci; in get_ids() local
125 fw_csr_iterator_init(&ci, directory); in get_ids()
126 while (fw_csr_iterator_next(&ci, &key, &value)) { in get_ids()
253 struct fw_csr_iterator ci; in show_immediate() local
264 fw_csr_iterator_init(&ci, dir); in show_immediate()
265 while (fw_csr_iterator_next(&ci, &key, &value)) in show_immediate()
423 struct fw_csr_iterator ci; in units_sprintf() local
428 fw_csr_iterator_init(&ci, directory); in units_sprintf()
429 while (fw_csr_iterator_next(&ci, &key, &value)) { in units_sprintf()
447 struct fw_csr_iterator ci; in units_show() local
451 fw_csr_iterator_init(&ci, &device->config_rom[5]); in units_show()
452 while (fw_csr_iterator_next(&ci, &key, &value)) { in units_show()
455 i += units_sprintf(&buf[i], ci.p + value - 1); in units_show()
691 struct fw_csr_iterator ci; in create_units() local
696 fw_csr_iterator_init(&ci, &device->config_rom[5]); in create_units()
697 while (fw_csr_iterator_next(&ci, &key, &value)) { in create_units()
709 unit->directory = ci.p + value - 1; in create_units()