Home
last modified time | relevance | path

Searched refs:num_segment (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/lib/libfru/libfruraw/
H A Dfruraw.c207 int num_segment = fru_get_num_segments(section->handle, NULL); in add_segs_for_section() local
208 if (num_segment == -1) { in add_segs_for_section()
210 } else if (num_segment == 0) { in add_segs_for_section()
214 segs = malloc(sizeof (*segs) * (num_segment)); in add_segs_for_section()
219 acc_err = fru_get_segments(section->handle, segs, num_segment, NULL); in add_segs_for_section()
226 * (list->num + num_segment)); in add_segs_for_section()
228 for (i = 0; i < num_segment; i++) { in add_segs_for_section()
426 int num_segment; in frt_for_each_segment() local
454 num_segment = fru_get_num_segments(sects[cnt].handle, NULL); in frt_for_each_segment()
455 if (num_segment == -1) { in frt_for_each_segment()
[all …]
/illumos-gate/usr/src/uts/common/rpc/
H A Dxdr_rdma.c982 uint_t num_segment = 0; in xdr_encode_wlist() local
994 num_segment++; in xdr_encode_wlist()
997 if (!xdr_uint32(xdrs, &num_segment)) in xdr_encode_wlist()
999 for (i = 0; i < num_segment; i++) { in xdr_encode_wlist()