Lines Matching refs:mem
399 static int sb1250pc_get_mem_map(unsigned int lsock, struct pccard_mem_map *mem) in sb1250pc_get_mem_map() argument
401 if(mem->map >= MAX_WIN) in sb1250pc_get_mem_map()
404 *mem = sibyte_memmap[mem->map]; in sb1250pc_get_mem_map()
407 "%#5.5lx-%#5.5lx, %#5.5x) called\n", lsock, mem->map, mem->flags, in sb1250pc_get_mem_map()
408 mem->speed, mem->sys_start, mem->sys_stop, mem->card_start); in sb1250pc_get_mem_map()
413 static int sb1250pc_set_mem_map(unsigned int lsock, struct pccard_mem_map *mem) in sb1250pc_set_mem_map() argument
417 if (mem->map >= MAX_WIN) { in sb1250pc_set_mem_map()
418 DPRINTK(KERN_ERR PFX "map (%d) out of range\n", mem->map); in sb1250pc_set_mem_map()
422 if (mem->sys_start == 0) in sb1250pc_set_mem_map()
423 mem->sys_start = mem->card_start + sb_pcmcia_base; in sb1250pc_set_mem_map()
425 if (mem->sys_stop == 0) in sb1250pc_set_mem_map()
426 mem->sys_stop = mem->sys_start + sb_pcmcia_size - 1; in sb1250pc_set_mem_map()
430 DPRINTK(PFX " Setting mem_map %p\n", mem); in sb1250pc_set_mem_map()
431 if (mem->flags & MAP_ATTRIB) { in sb1250pc_set_mem_map()
441 sibyte_memmap[mem->map] = *mem; in sb1250pc_set_mem_map()
444 "%#5.5lx-%#5.5lx, %#5.5x)\n", lsock, mem->map, mem->flags, in sb1250pc_set_mem_map()
445 mem->speed, mem->sys_start, mem->sys_stop, mem->card_start); in sb1250pc_set_mem_map()