• Home
  • Raw
  • Download

Lines Matching refs:iter

77 			       struct displayid_iter *iter)  in displayid_iter_edid_begin()  argument
79 memset(iter, 0, sizeof(*iter)); in displayid_iter_edid_begin()
81 iter->drm_edid = drm_edid; in displayid_iter_edid_begin()
85 displayid_iter_block(const struct displayid_iter *iter) in displayid_iter_block() argument
89 if (!iter->section) in displayid_iter_block()
92 block = (const struct displayid_block *)&iter->section[iter->idx]; in displayid_iter_block()
94 if (iter->idx + sizeof(*block) <= iter->length && in displayid_iter_block()
95 iter->idx + sizeof(*block) + block->num_bytes <= iter->length) in displayid_iter_block()
102 __displayid_iter_next(struct displayid_iter *iter) in __displayid_iter_next() argument
106 if (!iter->drm_edid) in __displayid_iter_next()
109 if (iter->section) { in __displayid_iter_next()
111 block = displayid_iter_block(iter); in __displayid_iter_next()
113 iter->section = NULL; in __displayid_iter_next()
114 iter->drm_edid = NULL; in __displayid_iter_next()
119 iter->idx += sizeof(*block) + block->num_bytes; in __displayid_iter_next()
121 block = displayid_iter_block(iter); in __displayid_iter_next()
127 iter->section = drm_find_displayid_extension(iter->drm_edid, in __displayid_iter_next()
128 &iter->length, in __displayid_iter_next()
129 &iter->idx, in __displayid_iter_next()
130 &iter->ext_index); in __displayid_iter_next()
131 if (!iter->section) { in __displayid_iter_next()
132 iter->drm_edid = NULL; in __displayid_iter_next()
136 iter->idx += sizeof(struct displayid_header); in __displayid_iter_next()
138 block = displayid_iter_block(iter); in __displayid_iter_next()
144 void displayid_iter_end(struct displayid_iter *iter) in displayid_iter_end() argument
146 memset(iter, 0, sizeof(*iter)); in displayid_iter_end()