elm 1102 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c const struct out_csc_color_matrix *elm; elm 1116 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c elm = &global_color_matrix[i]; elm 1117 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c if (elm->color_space != default_adjust->out_color_space) elm 1121 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c program_color_matrix(xfm_dce, elm, option); elm 680 drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_csc_v.c const struct out_csc_color_matrix *elm; elm 694 drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_csc_v.c elm = &global_color_matrix[i]; elm 695 drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_csc_v.c if (elm->color_space != default_adjust->out_color_space) elm 700 drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_csc_v.c program_color_matrix_v(xfm_dce, elm, option); elm 18 drivers/infiniband/core/uverbs_uapi.c void *elm; elm 24 drivers/infiniband/core/uverbs_uapi.c elm = kzalloc(alloc_size, GFP_KERNEL); elm 25 drivers/infiniband/core/uverbs_uapi.c if (!elm) elm 27 drivers/infiniband/core/uverbs_uapi.c rc = radix_tree_insert(&uapi->radix, key, elm); elm 29 drivers/infiniband/core/uverbs_uapi.c kfree(elm); elm 33 drivers/infiniband/core/uverbs_uapi.c return elm; elm 39 drivers/infiniband/core/uverbs_uapi.c void *elm; elm 41 drivers/infiniband/core/uverbs_uapi.c elm = uapi_add_elm(uapi, key, alloc_size); elm 42 drivers/infiniband/core/uverbs_uapi.c if (!IS_ERR(elm)) { elm 44 drivers/infiniband/core/uverbs_uapi.c return elm; elm 47 drivers/infiniband/core/uverbs_uapi.c if (elm != ERR_PTR(-EEXIST)) elm 48 drivers/infiniband/core/uverbs_uapi.c return elm; elm 50 drivers/infiniband/core/uverbs_uapi.c elm = radix_tree_lookup(&uapi->radix, key); elm 51 drivers/infiniband/core/uverbs_uapi.c if (WARN_ON(!elm)) elm 54 drivers/infiniband/core/uverbs_uapi.c return elm; elm 368 drivers/infiniband/core/uverbs_uapi.c struct uverbs_api_attr *elm = elm 372 drivers/infiniband/core/uverbs_uapi.c u8 type = elm->spec.type; elm 378 drivers/infiniband/core/uverbs_uapi.c if (elm->spec.mandatory) elm 381 drivers/infiniband/core/uverbs_uapi.c if (elm->spec.is_udata) elm 386 drivers/infiniband/core/uverbs_uapi.c u8 access = elm->spec.u.obj.access; elm 399 drivers/infiniband/core/uverbs_uapi.c if (WARN_ON(!elm->spec.mandatory)) elm 723 drivers/infiniband/core/uverbs_uapi.c struct uverbs_api_attr *elm = elm 726 drivers/infiniband/core/uverbs_uapi.c if (elm->spec.type == UVERBS_ATTR_TYPE_ENUM_IN) elm 727 drivers/infiniband/core/uverbs_uapi.c elm->spec.u2.enum_def.ids = NULL; elm 136 drivers/scsi/aic7xxx/queue.h #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ elm 137 drivers/scsi/aic7xxx/queue.h SLIST_NEXT((elm), field) = SLIST_NEXT((slistelm), field); \ elm 138 drivers/scsi/aic7xxx/queue.h SLIST_NEXT((slistelm), field) = (elm); \ elm 141 drivers/scsi/aic7xxx/queue.h #define SLIST_INSERT_HEAD(head, elm, field) do { \ elm 142 drivers/scsi/aic7xxx/queue.h SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \ elm 143 drivers/scsi/aic7xxx/queue.h SLIST_FIRST((head)) = (elm); \ elm 146 drivers/scsi/aic7xxx/queue.h #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) elm 148 drivers/scsi/aic7xxx/queue.h #define SLIST_REMOVE(head, elm, type, field) do { \ elm 149 drivers/scsi/aic7xxx/queue.h if (SLIST_FIRST((head)) == (elm)) { \ elm 154 drivers/scsi/aic7xxx/queue.h while (SLIST_NEXT(curelm, field) != (elm)) \ elm 199 drivers/scsi/aic7xxx/queue.h #define STAILQ_INSERT_AFTER(head, tqelm, elm, field) do { \ elm 200 drivers/scsi/aic7xxx/queue.h if ((STAILQ_NEXT((elm), field) = STAILQ_NEXT((tqelm), field)) == NULL)\ elm 201 drivers/scsi/aic7xxx/queue.h (head)->stqh_last = &STAILQ_NEXT((elm), field); \ elm 202 drivers/scsi/aic7xxx/queue.h STAILQ_NEXT((tqelm), field) = (elm); \ elm 205 drivers/scsi/aic7xxx/queue.h #define STAILQ_INSERT_HEAD(head, elm, field) do { \ elm 206 drivers/scsi/aic7xxx/queue.h if ((STAILQ_NEXT((elm), field) = STAILQ_FIRST((head))) == NULL) \ elm 207 drivers/scsi/aic7xxx/queue.h (head)->stqh_last = &STAILQ_NEXT((elm), field); \ elm 208 drivers/scsi/aic7xxx/queue.h STAILQ_FIRST((head)) = (elm); \ elm 211 drivers/scsi/aic7xxx/queue.h #define STAILQ_INSERT_TAIL(head, elm, field) do { \ elm 212 drivers/scsi/aic7xxx/queue.h STAILQ_NEXT((elm), field) = NULL; \ elm 213 drivers/scsi/aic7xxx/queue.h STAILQ_LAST((head)) = (elm); \ elm 214 drivers/scsi/aic7xxx/queue.h (head)->stqh_last = &STAILQ_NEXT((elm), field); \ elm 219 drivers/scsi/aic7xxx/queue.h #define STAILQ_NEXT(elm, field) ((elm)->field.stqe_next) elm 221 drivers/scsi/aic7xxx/queue.h #define STAILQ_REMOVE(head, elm, type, field) do { \ elm 222 drivers/scsi/aic7xxx/queue.h if (STAILQ_FIRST((head)) == (elm)) { \ elm 227 drivers/scsi/aic7xxx/queue.h while (STAILQ_NEXT(curelm, field) != (elm)) \ elm 241 drivers/scsi/aic7xxx/queue.h #define STAILQ_REMOVE_HEAD_UNTIL(head, elm, field) do { \ elm 242 drivers/scsi/aic7xxx/queue.h if ((STAILQ_FIRST((head)) = STAILQ_NEXT((elm), field)) == NULL) \ elm 280 drivers/scsi/aic7xxx/queue.h #define LIST_INSERT_AFTER(listelm, elm, field) do { \ elm 281 drivers/scsi/aic7xxx/queue.h if ((LIST_NEXT((elm), field) = LIST_NEXT((listelm), field)) != NULL)\ elm 283 drivers/scsi/aic7xxx/queue.h &LIST_NEXT((elm), field); \ elm 284 drivers/scsi/aic7xxx/queue.h LIST_NEXT((listelm), field) = (elm); \ elm 285 drivers/scsi/aic7xxx/queue.h (elm)->field.le_prev = &LIST_NEXT((listelm), field); \ elm 288 drivers/scsi/aic7xxx/queue.h #define LIST_INSERT_BEFORE(listelm, elm, field) do { \ elm 289 drivers/scsi/aic7xxx/queue.h (elm)->field.le_prev = (listelm)->field.le_prev; \ elm 290 drivers/scsi/aic7xxx/queue.h LIST_NEXT((elm), field) = (listelm); \ elm 291 drivers/scsi/aic7xxx/queue.h *(listelm)->field.le_prev = (elm); \ elm 292 drivers/scsi/aic7xxx/queue.h (listelm)->field.le_prev = &LIST_NEXT((elm), field); \ elm 295 drivers/scsi/aic7xxx/queue.h #define LIST_INSERT_HEAD(head, elm, field) do { \ elm 296 drivers/scsi/aic7xxx/queue.h if ((LIST_NEXT((elm), field) = LIST_FIRST((head))) != NULL) \ elm 297 drivers/scsi/aic7xxx/queue.h LIST_FIRST((head))->field.le_prev = &LIST_NEXT((elm), field);\ elm 298 drivers/scsi/aic7xxx/queue.h LIST_FIRST((head)) = (elm); \ elm 299 drivers/scsi/aic7xxx/queue.h (elm)->field.le_prev = &LIST_FIRST((head)); \ elm 302 drivers/scsi/aic7xxx/queue.h #define LIST_NEXT(elm, field) ((elm)->field.le_next) elm 304 drivers/scsi/aic7xxx/queue.h #define LIST_REMOVE(elm, field) do { \ elm 305 drivers/scsi/aic7xxx/queue.h if (LIST_NEXT((elm), field) != NULL) \ elm 306 drivers/scsi/aic7xxx/queue.h LIST_NEXT((elm), field)->field.le_prev = \ elm 307 drivers/scsi/aic7xxx/queue.h (elm)->field.le_prev; \ elm 308 drivers/scsi/aic7xxx/queue.h *(elm)->field.le_prev = LIST_NEXT((elm), field); \ elm 351 drivers/scsi/aic7xxx/queue.h #define TAILQ_INSERT_AFTER(head, listelm, elm, field) do { \ elm 352 drivers/scsi/aic7xxx/queue.h if ((TAILQ_NEXT((elm), field) = TAILQ_NEXT((listelm), field)) != NULL)\ elm 353 drivers/scsi/aic7xxx/queue.h TAILQ_NEXT((elm), field)->field.tqe_prev = \ elm 354 drivers/scsi/aic7xxx/queue.h &TAILQ_NEXT((elm), field); \ elm 356 drivers/scsi/aic7xxx/queue.h (head)->tqh_last = &TAILQ_NEXT((elm), field); \ elm 357 drivers/scsi/aic7xxx/queue.h TAILQ_NEXT((listelm), field) = (elm); \ elm 358 drivers/scsi/aic7xxx/queue.h (elm)->field.tqe_prev = &TAILQ_NEXT((listelm), field); \ elm 361 drivers/scsi/aic7xxx/queue.h #define TAILQ_INSERT_BEFORE(listelm, elm, field) do { \ elm 362 drivers/scsi/aic7xxx/queue.h (elm)->field.tqe_prev = (listelm)->field.tqe_prev; \ elm 363 drivers/scsi/aic7xxx/queue.h TAILQ_NEXT((elm), field) = (listelm); \ elm 364 drivers/scsi/aic7xxx/queue.h *(listelm)->field.tqe_prev = (elm); \ elm 365 drivers/scsi/aic7xxx/queue.h (listelm)->field.tqe_prev = &TAILQ_NEXT((elm), field); \ elm 368 drivers/scsi/aic7xxx/queue.h #define TAILQ_INSERT_HEAD(head, elm, field) do { \ elm 369 drivers/scsi/aic7xxx/queue.h if ((TAILQ_NEXT((elm), field) = TAILQ_FIRST((head))) != NULL) \ elm 371 drivers/scsi/aic7xxx/queue.h &TAILQ_NEXT((elm), field); \ elm 373 drivers/scsi/aic7xxx/queue.h (head)->tqh_last = &TAILQ_NEXT((elm), field); \ elm 374 drivers/scsi/aic7xxx/queue.h TAILQ_FIRST((head)) = (elm); \ elm 375 drivers/scsi/aic7xxx/queue.h (elm)->field.tqe_prev = &TAILQ_FIRST((head)); \ elm 378 drivers/scsi/aic7xxx/queue.h #define TAILQ_INSERT_TAIL(head, elm, field) do { \ elm 379 drivers/scsi/aic7xxx/queue.h TAILQ_NEXT((elm), field) = NULL; \ elm 380 drivers/scsi/aic7xxx/queue.h (elm)->field.tqe_prev = (head)->tqh_last; \ elm 381 drivers/scsi/aic7xxx/queue.h *(head)->tqh_last = (elm); \ elm 382 drivers/scsi/aic7xxx/queue.h (head)->tqh_last = &TAILQ_NEXT((elm), field); \ elm 388 drivers/scsi/aic7xxx/queue.h #define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next) elm 390 drivers/scsi/aic7xxx/queue.h #define TAILQ_PREV(elm, headname, field) \ elm 391 drivers/scsi/aic7xxx/queue.h (*(((struct headname *)((elm)->field.tqe_prev))->tqh_last)) elm 393 drivers/scsi/aic7xxx/queue.h #define TAILQ_REMOVE(head, elm, field) do { \ elm 394 drivers/scsi/aic7xxx/queue.h if ((TAILQ_NEXT((elm), field)) != NULL) \ elm 395 drivers/scsi/aic7xxx/queue.h TAILQ_NEXT((elm), field)->field.tqe_prev = \ elm 396 drivers/scsi/aic7xxx/queue.h (elm)->field.tqe_prev; \ elm 398 drivers/scsi/aic7xxx/queue.h (head)->tqh_last = (elm)->field.tqe_prev; \ elm 399 drivers/scsi/aic7xxx/queue.h *(elm)->field.tqe_prev = TAILQ_NEXT((elm), field); \ elm 442 drivers/scsi/aic7xxx/queue.h #define CIRCLEQ_INSERT_AFTER(head, listelm, elm, field) do { \ elm 443 drivers/scsi/aic7xxx/queue.h CIRCLEQ_NEXT((elm), field) = CIRCLEQ_NEXT((listelm), field); \ elm 444 drivers/scsi/aic7xxx/queue.h CIRCLEQ_PREV((elm), field) = (listelm); \ elm 446 drivers/scsi/aic7xxx/queue.h CIRCLEQ_LAST((head)) = (elm); \ elm 448 drivers/scsi/aic7xxx/queue.h CIRCLEQ_PREV(CIRCLEQ_NEXT((listelm), field), field) = (elm);\ elm 449 drivers/scsi/aic7xxx/queue.h CIRCLEQ_NEXT((listelm), field) = (elm); \ elm 452 drivers/scsi/aic7xxx/queue.h #define CIRCLEQ_INSERT_BEFORE(head, listelm, elm, field) do { \ elm 453 drivers/scsi/aic7xxx/queue.h CIRCLEQ_NEXT((elm), field) = (listelm); \ elm 454 drivers/scsi/aic7xxx/queue.h CIRCLEQ_PREV((elm), field) = CIRCLEQ_PREV((listelm), field); \ elm 456 drivers/scsi/aic7xxx/queue.h CIRCLEQ_FIRST((head)) = (elm); \ elm 458 drivers/scsi/aic7xxx/queue.h CIRCLEQ_NEXT(CIRCLEQ_PREV((listelm), field), field) = (elm);\ elm 459 drivers/scsi/aic7xxx/queue.h CIRCLEQ_PREV((listelm), field) = (elm); \ elm 462 drivers/scsi/aic7xxx/queue.h #define CIRCLEQ_INSERT_HEAD(head, elm, field) do { \ elm 463 drivers/scsi/aic7xxx/queue.h CIRCLEQ_NEXT((elm), field) = CIRCLEQ_FIRST((head)); \ elm 464 drivers/scsi/aic7xxx/queue.h CIRCLEQ_PREV((elm), field) = (void *)(head); \ elm 466 drivers/scsi/aic7xxx/queue.h CIRCLEQ_LAST((head)) = (elm); \ elm 468 drivers/scsi/aic7xxx/queue.h CIRCLEQ_PREV(CIRCLEQ_FIRST((head)), field) = (elm); \ elm 469 drivers/scsi/aic7xxx/queue.h CIRCLEQ_FIRST((head)) = (elm); \ elm 472 drivers/scsi/aic7xxx/queue.h #define CIRCLEQ_INSERT_TAIL(head, elm, field) do { \ elm 473 drivers/scsi/aic7xxx/queue.h CIRCLEQ_NEXT((elm), field) = (void *)(head); \ elm 474 drivers/scsi/aic7xxx/queue.h CIRCLEQ_PREV((elm), field) = CIRCLEQ_LAST((head)); \ elm 476 drivers/scsi/aic7xxx/queue.h CIRCLEQ_FIRST((head)) = (elm); \ elm 478 drivers/scsi/aic7xxx/queue.h CIRCLEQ_NEXT(CIRCLEQ_LAST((head)), field) = (elm); \ elm 479 drivers/scsi/aic7xxx/queue.h CIRCLEQ_LAST((head)) = (elm); \ elm 484 drivers/scsi/aic7xxx/queue.h #define CIRCLEQ_NEXT(elm,field) ((elm)->field.cqe_next) elm 486 drivers/scsi/aic7xxx/queue.h #define CIRCLEQ_PREV(elm,field) ((elm)->field.cqe_prev) elm 488 drivers/scsi/aic7xxx/queue.h #define CIRCLEQ_REMOVE(head, elm, field) do { \ elm 489 drivers/scsi/aic7xxx/queue.h if (CIRCLEQ_NEXT((elm), field) == (void *)(head)) \ elm 490 drivers/scsi/aic7xxx/queue.h CIRCLEQ_LAST((head)) = CIRCLEQ_PREV((elm), field); \ elm 492 drivers/scsi/aic7xxx/queue.h CIRCLEQ_PREV(CIRCLEQ_NEXT((elm), field), field) = \ elm 493 drivers/scsi/aic7xxx/queue.h CIRCLEQ_PREV((elm), field); \ elm 494 drivers/scsi/aic7xxx/queue.h if (CIRCLEQ_PREV((elm), field) == (void *)(head)) \ elm 495 drivers/scsi/aic7xxx/queue.h CIRCLEQ_FIRST((head)) = CIRCLEQ_NEXT((elm), field); \ elm 497 drivers/scsi/aic7xxx/queue.h CIRCLEQ_NEXT(CIRCLEQ_PREV((elm), field), field) = \ elm 498 drivers/scsi/aic7xxx/queue.h CIRCLEQ_NEXT((elm), field); \ elm 56 tools/firewire/list.h #define list_next(elm, member) \ elm 57 tools/firewire/list.h list_entry((elm)->member.next, typeof(*elm), member)