Lines Matching refs:num_sect
345 int num_sect;
349 num_sect = fru_get_num_sections(cont, NULL);
350 if (num_sect == -1) {
354 sect = malloc(sizeof (*sect) * (num_sect));
359 acc_err = fru_get_sections(cont, sect, num_sect, NULL);
365 for (i = 0; i < num_sect; i++) {
428 int num_sect;
439 num_sect = fru_get_num_sections(cont, NULL);
440 if (num_sect == -1) {
444 sects = malloc((num_sect + 1) * sizeof (section_t));
448 num_sect = fru_get_sections(cont, sects, num_sect, NULL);
449 if (num_sect == -1) {
453 for (cnt = 0; cnt < num_sect; cnt++) {
501 int num_sect;
512 num_sect = fru_get_num_sections(cont, NULL);
513 if (num_sect == -1) {
517 sects = malloc(sizeof (*sects) * (num_sect));
521 acc_err = fru_get_sections(cont, sects, num_sect, NULL);
527 for (cnt = 0; cnt < num_sect; cnt++) {