/src/sys/arch/mmeye/dev/ |
mmeyepcmcia.c | 647 bus_size_t sizepg; local in function:mmeyepcmcia_chip_mem_alloc 653 sizepg = (size + (MMEYEPCMCIA_MEM_ALIGN - 1)) / MMEYEPCMCIA_MEM_ALIGN; 654 if (sizepg > MMEYEPCMCIA_MAX_MEM_PAGES) 657 mask = (1 << sizepg) - 1; 662 for (i = 0; i <= MMEYEPCMCIA_MAX_MEM_PAGES - sizepg; i++) { 672 pcmhp->realsize = sizepg * MMEYEPCMCIA_MEM_PAGESIZE;
|
/src/sys/dev/ic/ |
i82365.c | 805 bus_size_t sizepg; local in function:pcic_chip_mem_alloc 812 sizepg = (size + (PCIC_MEM_ALIGN - 1)) / PCIC_MEM_ALIGN; 813 if (sizepg > PCIC_MAX_MEM_PAGES) 816 mask = (1 << sizepg) - 1; 821 for (i = 0; i <= PCIC_MAX_MEM_PAGES - sizepg; i++) { 825 sizepg * PCIC_MEM_PAGESIZE, &memh)) 835 pcmhp->realsize = sizepg * PCIC_MEM_PAGESIZE;
|
tcic2.c | 716 bus_size_t sizepg; local in function:tcic_chip_mem_alloc 728 sizepg = uimax(i, TCIC_MEM_SHIFT) - (TCIC_MEM_SHIFT-1); 730 DPRINTF(("tcic_chip_mem_alloc: size %ld sizepg %ld\n", (u_long)size, 731 (u_long)sizepg)); 734 if (sizepg > TCIC_MEM_PAGES) /* XXX -chb */ 737 mask = (1 << sizepg) - 1; 743 for (i = 0; i < (TCIC_MEM_PAGES + 1 - sizepg); i += sizepg) { 747 sizepg * TCIC_MEM_PAGESIZE, &memh)) 768 pcmhp->realsize = sizepg * TCIC_MEM_PAGESIZE [all...] |
/src/sys/dev/pci/ |
pccbb.c | 2453 bus_size_t sizepg; local in function:pccbb_pcmcia_mem_alloc 2470 sizepg = (size + (PCIC_MEM_PAGESIZE - 1)) / PCIC_MEM_PAGESIZE; 2472 if (sizepg > PCIC_MAX_MEM_PAGES) 2483 if (rbus_space_alloc(rb, 0, sizepg * PCIC_MEM_PAGESIZE, 2484 sizepg * PCIC_MEM_PAGESIZE - 1, PCIC_MEM_PAGESIZE, 0, 2490 sizepg * PCIC_MEM_PAGESIZE, PCIC_MEM_PAGESIZE, 2500 (unsigned long)sizepg * PCIC_MEM_PAGESIZE)); 2506 pcmhp->realsize = sizepg * PCIC_MEM_PAGESIZE;
|