Lines Matching defs:index
371 u_int index = cm->index;
375 if (index >= 256 || count > 256 || index + count > 256)
378 error = copyout(&sc->sc_cmap_red[index], cm->red, count);
381 error = copyout(&sc->sc_cmap_green[index], cm->green, count);
384 error = copyout(&sc->sc_cmap_blue[index], cm->blue, count);
394 u_int index = cm->index;
400 if (cm->index >= 256 || cm->count > 256 ||
401 (cm->index + cm->count) > 256)
403 error = copyin(cm->red, &rbuf[index], count);
406 error = copyin(cm->green, &gbuf[index], count);
409 error = copyin(cm->blue, &bbuf[index], count);
413 memcpy(&sc->sc_cmap_red[index], &rbuf[index], count);
414 memcpy(&sc->sc_cmap_green[index], &gbuf[index], count);
415 memcpy(&sc->sc_cmap_blue[index], &bbuf[index], count);
417 r = &sc->sc_cmap_red[index];
418 g = &sc->sc_cmap_green[index];
419 b = &sc->sc_cmap_blue[index];
421 OF_call_method_1("color!", sc->sc_ih, 4, *r, *g, *b, index);
422 r++, g++, b++, index++;