Lines Matching refs:ma
932 vgatext_cons_copy(struct vgatext_softc *softc, struct vis_conscopy *ma)
947 if (ma->s_col < 0 || ma->s_col >= TEXT_COLS ||
948 ma->s_row < 0 || ma->s_row >= TEXT_ROWS ||
949 ma->e_col < 0 || ma->e_col >= TEXT_COLS ||
950 ma->e_row < 0 || ma->e_row >= TEXT_ROWS ||
951 ma->t_col < 0 || ma->t_col >= TEXT_COLS ||
952 ma->t_row < 0 || ma->t_row >= TEXT_ROWS ||
953 ma->s_col > ma->e_col ||
954 ma->s_row > ma->e_row)
961 chars_per_row = ma->e_col - ma->s_col + 1;
962 rows_to_move = ma->e_row - ma->s_row + 1;
965 if (ma->t_row + rows_to_move > TEXT_ROWS ||
966 ma->t_col + chars_per_row > TEXT_COLS)
971 to_row_start = base + ((ma->t_row * TEXT_COLS) + ma->t_col);
972 from_row_start = base + ((ma->s_row * TEXT_COLS) + ma->s_col);