Home | History | Annotate | Download | only in modetest

Lines Matching refs:_res

465 #define free_resource(_res, __res, type, Type)					\
467 if (!(_res)->type##s) \
469 for (i = 0; i < (int)(_res)->__res->count_##type##s; ++i) { \
470 if (!(_res)->type##s[i].type) \
472 drmModeFree##Type((_res)->type##s[i].type); \
474 free((_res)->type##s); \
477 #define free_properties(_res, __res, type) \
479 for (i = 0; i < (int)(_res)->__res->count_##type##s; ++i) { \
538 #define get_resource(_res, __res, type, Type) \
540 for (i = 0; i < (int)(_res)->__res->count_##type##s; ++i) { \
541 (_res)->type##s[i].type = \
542 drmModeGet##Type(dev->fd, (_res)->__res->type##s[i]); \
543 if (!(_res)->type##s[i].type) \
545 #type, (_res)->__res->type##s[i], \
565 #define get_properties(_res, __res, type, Type) \
567 for (i = 0; i < (int)(_res)->__res->count_##type##s; ++i) { \
857 #define find_object(_res, __res, type, Type) \
859 for (i = 0; i < (int)(_res)->__res->count_##type##s; ++i) { \
860 struct type *obj = &(_res)->type##s[i]; \