Lines Matching refs:matrix
349 matrix_t *matrix, in update_matrix() argument
368 if (primary >= matrix->x) { in update_matrix()
374 if (primary >= matrix->x * 2) { in update_matrix()
377 new_x = matrix->x * 2; in update_matrix()
382 while (i < matrix->y) { in update_matrix()
383 bmp = MATRIX_X_UNIT(matrix, i); in update_matrix()
393 if (i == matrix->y) { in update_matrix()
398 new_y = matrix->y * 2; in update_matrix()
409 new_x = matrix->x; in update_matrix()
412 new_y = matrix->y; in update_matrix()
417 while (j < matrix->y) { in update_matrix()
418 bmp = MATRIX_X_UNIT(matrix, j); in update_matrix()
423 (void *)bmp, SIZEOF_X_UNIT(matrix)); in update_matrix()
427 free(matrix->m); in update_matrix()
428 matrix->x = tmp_matrix->x; in update_matrix()
429 matrix->y = tmp_matrix->y; in update_matrix()
430 matrix->m = tmp_matrix->m; in update_matrix()
438 bmp = MATRIX_X_UNIT(matrix, i); in update_matrix()
446 bmp = MATRIX_X_UNIT(matrix, 0); in update_matrix()
460 while (i < matrix->y) { in update_matrix()
461 bmp = MATRIX_X_UNIT(matrix, i); in update_matrix()
470 if (i == matrix->y) { in update_matrix()
471 bmp = MATRIX_X_UNIT(matrix, 0); in update_matrix()
495 matrix_t *matrix; in update_dd_matrix() local
499 matrix = cache_get_matrix(OBJ_DD); in update_dd_matrix()
501 return (update_matrix(matrix, op, dd_id, m_id, 1)); in update_dd_matrix()
518 matrix_t *matrix, in clear_matrix() argument
539 while (i < matrix->y) { in clear_matrix()
540 bmp = MATRIX_X_UNIT(matrix, i); in clear_matrix()
545 *n = matrix->x; in clear_matrix()
555 (void) memset(bmp, 0, SIZEOF_X_UNIT(matrix)); in clear_matrix()
562 bmp = MATRIX_X_UNIT(matrix, 0); in clear_matrix()
582 matrix_t *matrix, in get_matrix() argument
597 while (i < matrix->y) { in get_matrix()
598 bmp = MATRIX_X_UNIT(matrix, i); in get_matrix()
602 *n = matrix->x; in get_matrix()
626 matrix_t *matrix = cache_get_matrix(OBJ_DD); in clear_dd_matrix() local
628 return (clear_matrix(matrix, dd_id, p, n, 1)); in clear_dd_matrix()
636 matrix_t *matrix = cache_get_matrix(OBJ_DDS); in clear_dds_matrix() local
638 return (clear_matrix(matrix, dds_id, NULL, NULL, 0)); in clear_dds_matrix()
648 matrix_t *matrix = cache_get_matrix(OBJ_DD); in get_dd_matrix() local
650 return (get_matrix(matrix, dd_id, p, n)); in get_dd_matrix()
660 matrix_t *matrix = cache_get_matrix(OBJ_DDS); in get_dds_matrix() local
662 return (get_matrix(matrix, dds_id, p, n)); in get_dds_matrix()
947 matrix_t *matrix; in new_matrix() local
949 matrix = (matrix_t *)malloc(sizeof (matrix_t)); in new_matrix()
950 if (matrix != NULL) { in new_matrix()
951 matrix->x = x; in new_matrix()
952 matrix->y = y; in new_matrix()
953 matrix->m = (bmp_t *)calloc(y, SIZEOF_X_UNIT(matrix)); in new_matrix()
954 if (matrix->m == NULL) { in new_matrix()
955 free(matrix); in new_matrix()
956 matrix = NULL; in new_matrix()
960 return (matrix); in new_matrix()
1027 matrix_t *matrix, in get_ds_id() argument
1039 if (matrix->x > primary) { in get_ds_id()
1040 while (i < matrix->y) { in get_ds_id()
1041 bmp = MATRIX_X_UNIT(matrix, i); in get_ds_id()
1063 matrix_t *matrix; in get_common_dd() local
1073 matrix = cache_get_matrix(OBJ_DD); in get_common_dd()
1075 if (matrix->x > primary1 && matrix->x > primary2) { in get_common_dd()
1076 while (i < matrix->y) { in get_common_dd()
1077 bmp = MATRIX_X_UNIT(matrix, i); in get_common_dd()
1097 matrix_t *matrix = cache_get_matrix(OBJ_DD); in get_dd_id() local
1099 return (get_ds_id(matrix, m_id, curr_id)); in get_dd_id()
1108 matrix_t *matrix = cache_get_matrix(OBJ_DDS); in get_dds_id() local
1110 return (get_ds_id(matrix, m_id, curr_id)); in get_dds_id()
1655 matrix_t *matrix, in remove_member_wildchar() argument
1670 if (primary >= matrix->x) { in remove_member_wildchar()
1675 while (ec == 0 && i < matrix->y) { in remove_member_wildchar()
1676 bmp = MATRIX_X_UNIT(matrix, i); in remove_member_wildchar()
1784 matrix_t *matrix; in update_ddd() local
1791 matrix = cache_get_matrix(OBJ_DD); in update_ddd()
1794 return (update_matrix(matrix, op, ISNS_DEFAULT_DD_ID, uid, 0)); in update_ddd()