Lines Matching refs:ucm
250 view_get_colormap (struct view_softc *vu, colormap_t *ucm) in view_get_colormap() argument
256 if (ucm->size > MAX_CENTRIES) in view_get_colormap()
260 cme = malloc(sizeof(ucm->entry[0])*(ucm->size+1), M_TEMP,M_WAITOK); in view_get_colormap()
265 uep = ucm->entry; in view_get_colormap()
266 ucm->entry = cme; /* set entry to out alloc. */ in view_get_colormap()
267 if (vu->view == NULL || grf_get_colormap(vu->view, ucm)) in view_get_colormap()
270 error = copyout(cme, uep, sizeof(ucm->entry[0]) * ucm->size); in view_get_colormap()
271 ucm->entry = uep; /* set entry back to users. */ in view_get_colormap()
277 view_set_colormap(struct view_softc *vu, colormap_t *ucm) in view_set_colormap() argument
282 if (ucm->size > MAX_CENTRIES) in view_set_colormap()
285 cm = malloc(sizeof(ucm->entry[0])*ucm->size + sizeof(*cm), in view_set_colormap()
290 memcpy(cm, ucm, sizeof(colormap_t)); in view_set_colormap()
293 copyin(ucm->entry,cm->entry,sizeof(ucm->entry[0])*ucm->size)) == 0) in view_set_colormap()