curs
curs(cx,cy+2);
curs(cx,cy+2);
void curs(int, int);
curs(1, ROWNO+4);
curs(1, LI);
curs(1, ROWNO+4);
curs(1, ROWNO+4);
curs(lth, curline);
curs(lth, curline);
curs(x,y);
curs(xmin,y+2);
curs(1,ROWNO+3);
curs(u.ux, u.uy+2);
curs(i,ROWNO+2);
curs(u.ux-1, u.uy+1);
curs(u.ux-1, u.uy+2);
curs(u.ux-1, u.uy+3);
curs(1, 8);
curs(x, y);
curs(cx, cy);
curs(1, 1); /* using UP ... */
curs(cx, cy);
curs(tlx,tly);
curs(tlx, tly);
int curs, needtran;
curs = k8pnow_acpi_states(nstate, pss, npss, status);
if (curs < 0) {
curs = ((perflevel * npss) + 1) / 101;
if (curs >= npss)
curs = npss - 1;
ctrl = pss[curs].pss_ctrl;
k8pnow_transition(nstate, curs);
int curs;
curs = k8pnow_acpi_states(cstate, pss, cstate->n_states, status);
ctrl = pss[curs].pss_ctrl;
int curs;
curs = k7pnow_acpi_states(cstate, pss, npss, status);
ctrl = pss[curs].pss_ctrl;
int curs;
curs = k7pnow_acpi_states(cstate, pss, cstate->n_states, status);
ctrl = pss[curs].pss_ctrl;
int curs;
curs = k8pnow_acpi_states(cstate, pss, npss, status);
ctrl = pss[curs].pss_ctrl;
int curs;
curs = k8pnow_acpi_states(cstate, pss, cstate->n_states, status);
ctrl = pss[curs].pss_ctrl;
struct wsdisplay_cursor *curs;
curs = (struct wsdisplay_cursor *)data;
if (curs->which & WSDISPLAY_CURSOR_DOCUR)
curs->enable = sc->sc_curs_enabled;
if (curs->which & WSDISPLAY_CURSOR_DOPOS) {
curs->pos.x = sc->sc_curs_pos.x;
curs->pos.y = sc->sc_curs_pos.y;
if (curs->which & WSDISPLAY_CURSOR_DOHOT) {
curs->hot.x = sc->sc_curs_hot.x;
curs->hot.y = sc->sc_curs_hot.y;
if (curs->which & WSDISPLAY_CURSOR_DOCMAP) {
curs->cmap.index = 0;
curs->cmap.count = 2;
error = copyout(r, curs->cmap.red, sizeof(r));
error = copyout(g, curs->cmap.green, sizeof(g));
error = copyout(b, curs->cmap.blue, sizeof(b));
if (curs->which & WSDISPLAY_CURSOR_DOSHAPE) {
curs->size.x = sc->sc_curs_size.x;
curs->size.y = sc->sc_curs_size.y;
error = copyout(sc->sc_curs_image, curs->image, l);
error = copyout(sc->sc_curs_mask, curs->mask, l);
curs = (struct wsdisplay_cursor *)data;
return (creator_setcursor(sc, curs));
creator_setcursor(struct creator_softc *sc, struct wsdisplay_cursor *curs)
if (curs->which & WSDISPLAY_CURSOR_DOCMAP) {
if (curs->cmap.count < 2)
error = copyin(curs->cmap.red, r, sizeof(r));
error = copyin(curs->cmap.green, g, sizeof(g));
error = copyin(curs->cmap.blue, b, sizeof(b));
if (curs->which & WSDISPLAY_CURSOR_DOSHAPE) {
if (curs->size.x > CREATOR_CURS_MAX ||
curs->size.y > CREATOR_CURS_MAX)
imcount = (curs->size.x * curs->size.y) / NBBY;
error = copyin(curs->image, image, imcount);
error = copyin(curs->mask, mask, imcount);
if (curs->which & WSDISPLAY_CURSOR_DOCUR)
sc->sc_curs_enabled = curs->enable;
if (curs->which & WSDISPLAY_CURSOR_DOPOS) {
sc->sc_curs_pos.x = curs->pos.x;
sc->sc_curs_pos.y = curs->pos.y;
if (curs->which & WSDISPLAY_CURSOR_DOHOT) {
sc->sc_curs_hot.x = curs->hot.x;
sc->sc_curs_hot.y = curs->hot.y;
if (curs->which & WSDISPLAY_CURSOR_DOCMAP) {
if (curs->which & WSDISPLAY_CURSOR_DOSHAPE) {
sc->sc_curs_size.x = curs->size.x;
sc->sc_curs_size.y = curs->size.y;
creator_updatecursor(sc, curs->which);
void ttm_bo_lru_cursor_fini(struct ttm_bo_lru_cursor *curs);
ttm_bo_lru_cursor_init(struct ttm_bo_lru_cursor *curs,
struct ttm_buffer_object *ttm_bo_lru_cursor_first(struct ttm_bo_lru_cursor *curs);
struct ttm_buffer_object *ttm_bo_lru_cursor_next(struct ttm_bo_lru_cursor *curs);
ttm_bo_lru_cursor_init(curs, man, arg),
struct ttm_bo_lru_cursor *curs, struct ttm_resource_manager *man,
res = ttm_resource_manager_next(&curs->res_curs);
if (ttm_lru_walk_trylock(curs, bo))
if (curs->needs_unlock)
ret = ttm_lru_walk_ticketlock(curs, bo);
curs->bo = bo;
ttm_bo_lru_cursor_cleanup_bo(curs);
struct ttm_buffer_object *ttm_bo_lru_cursor_next(struct ttm_bo_lru_cursor *curs)
return __ttm_bo_lru_cursor_next(curs);
struct ttm_buffer_object *ttm_bo_lru_cursor_first(struct ttm_bo_lru_cursor *curs)
ttm_bo_lru_cursor_cleanup_bo(curs);
return __ttm_bo_lru_cursor_next(curs);
static bool ttm_lru_walk_trylock(struct ttm_bo_lru_cursor *curs,
struct ttm_operation_ctx *ctx = curs->arg->ctx;
curs->needs_unlock = false;
curs->needs_unlock = true;
static int ttm_lru_walk_ticketlock(struct ttm_bo_lru_cursor *curs,
struct ttm_lru_walk_arg *arg = curs->arg;
curs->needs_unlock = true;
static void ttm_bo_lru_cursor_cleanup_bo(struct ttm_bo_lru_cursor *curs)
struct ttm_buffer_object *bo = curs->bo;
if (curs->needs_unlock)
curs->bo = NULL;
void ttm_bo_lru_cursor_fini(struct ttm_bo_lru_cursor *curs)
spinlock_t *lru_lock = &curs->res_curs.man->bdev->lru_lock;
ttm_bo_lru_cursor_cleanup_bo(curs);
ttm_resource_cursor_fini(&curs->res_curs);
ttm_bo_lru_cursor_init(struct ttm_bo_lru_cursor *curs,
memset(curs, 0, sizeof(*curs));
ttm_resource_cursor_init(&curs->res_curs, man);
curs->arg = arg;
return curs;
__ttm_bo_lru_cursor_next(struct ttm_bo_lru_cursor *curs)
spinlock_t *lru_lock = &curs->res_curs.man->bdev->lru_lock;
struct ttm_lru_walk_arg *arg = curs->arg;
bool first = !curs->bo;
ttm_bo_lru_cursor_cleanup_bo(curs);
res = ttm_resource_manager_first(&curs->res_curs);
struct wsdisplay_cursor *curs;
curs = (struct wsdisplay_cursor *)data;
return (cgsix_setcursor(sc, curs));
curs = (struct wsdisplay_cursor *)data;
if (curs->which & WSDISPLAY_CURSOR_DOCUR)
curs->enable = sc->sc_curs_enabled;
if (curs->which & WSDISPLAY_CURSOR_DOPOS) {
curs->pos.x = sc->sc_curs_pos.x;
curs->pos.y = sc->sc_curs_pos.y;
if (curs->which & WSDISPLAY_CURSOR_DOHOT) {
curs->hot.x = sc->sc_curs_hot.x;
curs->hot.y = sc->sc_curs_hot.y;
if (curs->which & WSDISPLAY_CURSOR_DOCMAP) {
curs->cmap.index = 0;
curs->cmap.count = 2;
error = copyout(r, curs->cmap.red, sizeof(r));
error = copyout(g, curs->cmap.green, sizeof(g));
error = copyout(b, curs->cmap.blue, sizeof(b));
if (curs->which & WSDISPLAY_CURSOR_DOSHAPE) {
curs->size.x = sc->sc_curs_size.x;
curs->size.y = sc->sc_curs_size.y;
error = copyout(sc->sc_curs_image, curs->image, l);
error = copyout(sc->sc_curs_mask, curs->mask, l);
cgsix_setcursor(struct cgsix_softc *sc, struct wsdisplay_cursor *curs)
if (curs->which & WSDISPLAY_CURSOR_DOCMAP) {
if (curs->cmap.count < 2)
error = copyin(curs->cmap.red, r, sizeof(r));
error = copyin(curs->cmap.green, g, sizeof(g));
error = copyin(curs->cmap.blue, b, sizeof(b));
if (curs->which & WSDISPLAY_CURSOR_DOSHAPE) {
if (curs->size.x > CG6_MAX_CURSOR ||
curs->size.y > CG6_MAX_CURSOR)
imcount = (curs->size.x * curs->size.y) / NBBY;
error = copyin(curs->image, image, imcount);
error = copyin(curs->mask, mask, imcount);
if (curs->which & WSDISPLAY_CURSOR_DOCUR)
sc->sc_curs_enabled = curs->enable;
if (curs->which & WSDISPLAY_CURSOR_DOPOS) {
sc->sc_curs_pos.x = curs->pos.x;
sc->sc_curs_pos.y = curs->pos.y;
if (curs->which & WSDISPLAY_CURSOR_DOHOT) {
sc->sc_curs_hot.x = curs->hot.x;
sc->sc_curs_hot.y = curs->hot.y;
if (curs->which & WSDISPLAY_CURSOR_DOCMAP) {
if (curs->which & WSDISPLAY_CURSOR_DOSHAPE) {
sc->sc_curs_size.x = curs->size.x;
sc->sc_curs_size.y = curs->size.y;
cgsix_updatecursor(sc, curs->which);