Lines Matching refs:descpos
124 static void test_ignore_opts(uint8_t *descoption, int *descpos, int *desclen) { in test_ignore_opts() argument
125 assert_se(*descpos >= 0); in test_ignore_opts()
127 while (*descpos < *desclen) { in test_ignore_opts()
128 switch (descoption[*descpos]) { in test_ignore_opts()
130 *descpos += 1; in test_ignore_opts()
135 *descpos += 3; in test_ignore_opts()
147 int *desclen = NULL, *descpos = NULL; in test_options_cb() local
166 descpos = &desc->pos; in test_options_cb()
170 descpos = &desc->filepos; in test_options_cb()
174 descpos = &desc->snamepos; in test_options_cb()
177 assert_se(descoption && desclen && descpos); in test_options_cb()
180 test_ignore_opts(descoption, descpos, desclen); in test_options_cb()
182 if (*descpos < *desclen) in test_options_cb()
185 if (*descpos == *desclen) in test_options_cb()
186 *descpos = -1; in test_options_cb()
189 assert_se(descpos); in test_options_cb()
190 assert_se(*descpos != -1); in test_options_cb()
192 optcode = descoption[*descpos]; in test_options_cb()
193 optlen = descoption[*descpos + 1]; in test_options_cb()
206 descoption[*descpos + 2 + i]); in test_options_cb()
208 assert_se(((uint8_t*) option)[i] == descoption[*descpos + 2 + i]); in test_options_cb()
214 *descpos += optlen + 2; in test_options_cb()
216 test_ignore_opts(descoption, descpos, desclen); in test_options_cb()