Lines Matching refs:wmax
271 static void gen_line(struct sg_to_addr to_addr[],int inipos,int pages,int wmax,
274 static void gen_line(char *basep,int inipos,int wmax,
299 wmax/=2;
302 for (w=0;w<wmax;w++) {
303 r=bars[w*7/wmax][0];
304 g=bars[w*7/wmax][1];
305 b=bars[w*7/wmax][2];
340 if (TSTAMP_MIN_X+strlen(timestr)>=wmax)
416 int wmax = buf->vb.width;
436 tmpbuf=kmalloc (wmax*2, GFP_KERNEL);
445 gen_line(to_addr,pos,vb->dma.nr_pages,wmax,hmax,h,dev->timestr);
448 gen_line(tmpbuf,0,wmax,hmax,h,dev->timestr);
449 if (copy_to_user(buf->vb.dma.varea+pos,tmpbuf,wmax*2)!=0)
452 gen_line(tmpbuf,pos,wmax,hmax,h,dev->timestr);
455 pos += wmax*2;