Home
last modified time | relevance | path

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

/openbmc/linux/drivers/usb/misc/sisusbvga/
H A Dsisusbvga.c1526 int ret = 0, ranksize; in sisusb_set_rank() local
1534 ranksize = dramtype[index][3] / 2 * bw / 32; in sisusb_set_rank()
1536 if ((ranksize * rankno) > 128) in sisusb_set_rank()
1540 while ((ranksize >>= 1) > 0) in sisusb_set_rank()
/openbmc/linux/drivers/video/fbdev/sis/
H A Dsis_main.c4648 unsigned int buswidth, ranksize, channelab, mapsize; in sisfb_post_xgi_ramsize() local
4862 ranksize = (ivideo->chip == XGI_20) ? in sisfb_post_xgi_ramsize()
4866 if(reg & 0x80) ranksize <<= 1; in sisfb_post_xgi_ramsize()
4869 if(buswidth == 16) ranksize <<= 1; in sisfb_post_xgi_ramsize()
4870 else if(buswidth == 32) ranksize <<= 2; in sisfb_post_xgi_ramsize()
4872 if(buswidth == 64) ranksize <<= 1; in sisfb_post_xgi_ramsize()
4878 if((ranksize * l) <= 256) { in sisfb_post_xgi_ramsize()
4879 while((ranksize >>= 1)) reg += 0x10; in sisfb_post_xgi_ramsize()