Lines Matching refs:keepout
37 const struct nvmem_keepout *keepout; member
107 const struct nvmem_keepout *keepout = nvmem->keepout; in nvmem_access_with_keepouts() local
108 const struct nvmem_keepout *keepoutend = keepout + nvmem->nkeepout; in nvmem_access_with_keepouts()
115 while ((keepout < keepoutend) && (keepout->end <= offset)) in nvmem_access_with_keepouts()
116 keepout++; in nvmem_access_with_keepouts()
118 while ((offset < end) && (keepout < keepoutend)) { in nvmem_access_with_keepouts()
120 if (offset < keepout->start) { in nvmem_access_with_keepouts()
121 kend = min(end, keepout->start); in nvmem_access_with_keepouts()
139 kend = min(end, keepout->end); in nvmem_access_with_keepouts()
142 memset(val, keepout->value, ksize); in nvmem_access_with_keepouts()
146 keepout++; in nvmem_access_with_keepouts()
633 const struct nvmem_keepout *keepout = nvmem->keepout; in nvmem_validate_keepouts() local
634 const struct nvmem_keepout *keepoutend = keepout + nvmem->nkeepout; in nvmem_validate_keepouts()
636 while (keepout < keepoutend) { in nvmem_validate_keepouts()
638 if (keepout->start < cur) { in nvmem_validate_keepouts()
645 if (keepout->end < keepout->start) { in nvmem_validate_keepouts()
656 if ((keepout->end - keepout->start < nvmem->word_size) || in nvmem_validate_keepouts()
657 ((keepout->start != cur) && in nvmem_validate_keepouts()
658 (keepout->start - cur < nvmem->word_size))) { in nvmem_validate_keepouts()
667 if (!IS_ALIGNED(keepout->start, nvmem->stride) || in nvmem_validate_keepouts()
668 !IS_ALIGNED(keepout->end, nvmem->stride)) { in nvmem_validate_keepouts()
676 cur = keepout->end; in nvmem_validate_keepouts()
677 keepout++; in nvmem_validate_keepouts()
804 nvmem->keepout = config->keepout; in nvmem_register()