Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/usb/misc/sisusbvga/
Dsisusb.c1584 int ret = 0, ranksize; in sisusb_set_rank() local
1592 ranksize = dramtype[index][3] / 2 * bw / 32; in sisusb_set_rank()
1594 if ((ranksize * rankno) > 128) in sisusb_set_rank()
1598 while ((ranksize >>= 1) > 0) in sisusb_set_rank()
/linux-5.19.10/drivers/video/fbdev/sis/
Dsis_main.c4633 unsigned int buswidth, ranksize, channelab, mapsize; in sisfb_post_xgi_ramsize() local
4847 ranksize = (ivideo->chip == XGI_20) ? in sisfb_post_xgi_ramsize()
4851 if(reg & 0x80) ranksize <<= 1; in sisfb_post_xgi_ramsize()
4854 if(buswidth == 16) ranksize <<= 1; in sisfb_post_xgi_ramsize()
4855 else if(buswidth == 32) ranksize <<= 2; in sisfb_post_xgi_ramsize()
4857 if(buswidth == 64) ranksize <<= 1; in sisfb_post_xgi_ramsize()
4863 if((ranksize * l) <= 256) { in sisfb_post_xgi_ramsize()
4864 while((ranksize >>= 1)) reg += 0x10; in sisfb_post_xgi_ramsize()