Lines Matching refs:fwdata
145 do_setfw(struct ufm_test_state *tst_state, const struct ufm_test_data *fwdata) in do_setfw() argument
151 if ((images = calloc(sizeof (nvlist_t *), fwdata->ud_nimages)) == NULL) in do_setfw()
154 for (uint_t i = 0; i < fwdata->ud_nimages; i++) { in do_setfw()
157 fwdata->ud_images[i].ui_desc) != 0) { in do_setfw()
161 fwdata->ud_images[i].ui_nslots)) == NULL) { in do_setfw()
165 for (int s = 0; s < fwdata->ud_images[i].ui_nslots; s++) { in do_setfw()
168 fwdata->ud_images[i].ui_slots[s].us_vers) != 0 || in do_setfw()
170 fwdata->ud_images[i].ui_slots[s].us_attrs) != 0) { in do_setfw()
173 fwdata->ud_images[i].ui_nslots); in do_setfw()
179 slots, fwdata->ud_images[i].ui_nslots) != 0) { in do_setfw()
180 free_nvlist_arr(slots, fwdata->ud_images[i].ui_nslots); in do_setfw()
183 free_nvlist_arr(slots, fwdata->ud_images[i].ui_nslots); in do_setfw()
187 fwdata->ud_nimages) != 0) { in do_setfw()
205 free_nvlist_arr(images, fwdata->ud_nimages); in do_setfw()