Lines Matching refs:iter
62 struct displayid_iter *iter) in displayid_iter_edid_begin() argument
64 memset(iter, 0, sizeof(*iter)); in displayid_iter_edid_begin()
66 iter->edid = edid; in displayid_iter_edid_begin()
70 displayid_iter_block(const struct displayid_iter *iter) in displayid_iter_block() argument
74 if (!iter->section) in displayid_iter_block()
77 block = (const struct displayid_block *)&iter->section[iter->idx]; in displayid_iter_block()
79 if (iter->idx + sizeof(*block) <= iter->length && in displayid_iter_block()
80 iter->idx + sizeof(*block) + block->num_bytes <= iter->length) in displayid_iter_block()
87 __displayid_iter_next(struct displayid_iter *iter) in __displayid_iter_next() argument
91 if (!iter->edid) in __displayid_iter_next()
94 if (iter->section) { in __displayid_iter_next()
96 block = displayid_iter_block(iter); in __displayid_iter_next()
98 iter->section = NULL; in __displayid_iter_next()
99 iter->edid = NULL; in __displayid_iter_next()
104 iter->idx += sizeof(*block) + block->num_bytes; in __displayid_iter_next()
106 block = displayid_iter_block(iter); in __displayid_iter_next()
112 iter->section = drm_find_displayid_extension(iter->edid, in __displayid_iter_next()
113 &iter->length, in __displayid_iter_next()
114 &iter->idx, in __displayid_iter_next()
115 &iter->ext_index); in __displayid_iter_next()
116 if (!iter->section) { in __displayid_iter_next()
117 iter->edid = NULL; in __displayid_iter_next()
121 iter->idx += sizeof(struct displayid_header); in __displayid_iter_next()
123 block = displayid_iter_block(iter); in __displayid_iter_next()
129 void displayid_iter_end(struct displayid_iter *iter) in displayid_iter_end() argument
131 memset(iter, 0, sizeof(*iter)); in displayid_iter_end()