Lines Matching refs:num_segment
207 int num_segment = fru_get_num_segments(section->handle, NULL);
208 if (num_segment == -1) {
210 } else if (num_segment == 0) {
214 segs = malloc(sizeof (*segs) * (num_segment));
219 acc_err = fru_get_segments(section->handle, segs, num_segment, NULL);
226 * (list->num + num_segment));
228 for (i = 0; i < num_segment; i++) {
426 int num_segment;
454 num_segment = fru_get_num_segments(sects[cnt].handle, NULL);
455 if (num_segment == -1) {
457 } else if (num_segment == 0) {
460 segs = malloc((num_segment + 1) * sizeof (segment_t));
466 num_segment, NULL);
472 for (each_seg = 0; each_seg < num_segment; each_seg++) {
504 int num_segment;
528 num_segment = fru_get_num_segments(sects[cnt].handle, NULL);
529 if (num_segment == -1) {
532 } else if (num_segment == 0) {
536 segs = malloc(sizeof (*segs) * (num_segment));
543 num_segment, NULL);
550 for (each_seg = 0; each_seg < num_segment; each_seg++) {