Home
last modified time | relevance | path

Searched refs:ucm (Results 1 – 2 of 2) sorted by relevance

/netbsd/src/sys/arch/atari/dev/
Dview.c250 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()
[all …]
/netbsd/src/sys/arch/amiga/dev/
Dview.c346 view_get_colormap(struct view_softc *vu, colormap_t *ucm) in view_get_colormap() argument
353 if (ucm->size + 1 > SIZE_T_MAX / sizeof(u_long)) in view_get_colormap()
355 cme = malloc(sizeof (u_long)*(ucm->size + 1), M_TEMP, M_WAITOK); in view_get_colormap()
359 uep = ucm->entry; in view_get_colormap()
361 ucm->entry = cme; /* set entry to out alloc. */ in view_get_colormap()
362 if (vu->view == NULL || grf_get_colormap(vu->view, ucm)) in view_get_colormap()
365 error = copyout(cme, uep, sizeof(u_long) * ucm->size); in view_get_colormap()
366 ucm->entry = uep; /* set entry back to users. */ in view_get_colormap()
372 view_set_colormap(struct view_softc *vu, colormap_t *ucm) in view_set_colormap() argument
378 cm = malloc(sizeof(u_long) * ucm->size + sizeof (*cm), M_TEMP, in view_set_colormap()
[all …]