Lines Matching refs:path

160 				PathDef *path, int *rcIterThere,
174 if (path->iterIndex == PathDef::addIteration) {
180 if (iterPoss != path->def->iterationCount) {
193 if ((path->iterIndex != PathDef::addIteration) &&
194 (path->iterIndex != PathDef::lastIteration) &&
195 (path->iterIndex >= iterThere)) {
201 int length = ((path->def->payloadLen - ITER_CONT_BYTE_LEN)
202 /path->def->iterationCount);
204 rc = calcOffset(path->def->iterationType,
206 length, path->iterIndex, err);
220 PayloadReader::readRecurse(PathDef *path,
228 if (path->next == NULL) {
236 if (IS_ITERATED(path)) {
238 calc_data_len = (path->def->payloadLen
240 path->def->iterationCount;
242 offset = getIterationOffset(cur, curLen, path,
259 calc_data_len = path->def->payloadLen;
265 if (path->def->dataType == FDTYPE_Record) {
270 if (path->def->dataType == FDTYPE_Binary) {
276 int bitLength = path->def->dataLength;
278 if (IS_ITERATED(path)) {
280 path->def->iterationCount;
291 } else if (path->def->dataType == FDTYPE_Enumeration) {
320 if (IS_ITERATED(path)) {
324 path, NULL, &rc, NORMAL_READ);
329 newOffset += getOffsetIntoRecord(path->def, path->next->def);
330 newLength = path->next->def->payloadLen;
332 return (readRecurse(path->next, &(cur[newOffset]), newLength,
339 PayloadReader::readData(PathDef *path, Ancestor *curDef,
345 return (readRecurse(path, &(payload[offset]), payloadLen-offset,
351 PayloadReader::findIterThere(PathDef *path, Ancestor *curDef,
358 fru_errno_t err = readRecurse(path, &(payload[offset]),
372 update_iter_cont_bytes(PathDef *path, uint8_t *cur, size_t curLen)
381 if (numPoss != path->def->iterationCount) {
390 switch (path->def->iterationType) {
432 PayloadReader::updateRecurse(PathDef *path,
438 if (path->next == NULL) {
443 if (IS_ITERATED(path) &&
444 (path->iterIndex == PathDef::addIteration)) {
445 return (update_iter_cont_bytes(path, cur, curLen));
448 if (path->def->dataType == FDTYPE_Record) {
456 if (IS_ITERATED(path)) {
458 calcLen = (path->def->payloadLen-ITER_CONT_BYTE_LEN)/
459 path->def->iterationCount;
462 path, &dummy, &rc, NORMAL_READ);
466 calcLen = path->def->payloadLen;
472 if (path->def->dataType == FDTYPE_Binary) {
473 int bitLength = path->def->dataLength;
475 if (path->def->iterationType != FRU_NOT_ITERATED) {
477 path->def->iterationCount;
484 } else if (path->def->dataType == FDTYPE_Enumeration) {
499 if (path->def->iterationType != FRU_NOT_ITERATED) {
502 newOffset = getIterationOffset(cur, curLen, path,
507 newOffset += getOffsetIntoRecord(path->def, path->next->def);
508 newLength = path->next->def->payloadLen;
510 return (updateRecurse(path->next, &(cur[newOffset]), newLength,
517 PayloadReader::updateData(PathDef *path, Ancestor *ancestorDef,
524 PathDef *prev = path;
525 PathDef *cur = path;
554 return (updateRecurse(path, &(payload[offset]), payloadLen-offset,