Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 25 of 243) sorted by relevance

12345678910

/linux-2.4.37.9/include/asm-alpha/
Dcompiler.h56 #define __kernel_ldbu(mem) (mem) argument
57 #define __kernel_ldwu(mem) (mem) argument
58 #define __kernel_stb(val,mem) ((mem) = (val)) argument
59 #define __kernel_stw(val,mem) ((mem) = (val)) argument
61 #define __kernel_ldbu(mem) \ argument
63 __asm__("ldbu %0,%1" : "=r"(__kir) : "m"(mem)); \
65 #define __kernel_ldwu(mem) \ argument
67 __asm__("ldwu %0,%1" : "=r"(__kir) : "m"(mem)); \
69 #define __kernel_stb(val,mem) \ argument
70 __asm__("stb %1,%0" : "=m"(mem) : "r"(val))
[all …]
/linux-2.4.37.9/drivers/char/drm/
Dvia_mm.c181 drm_via_mem_t mem; in via_mem_alloc() local
183 if (copy_from_user(&mem, (drm_via_mem_t *)arg, sizeof(mem))) in via_mem_alloc()
186 switch (mem.type) { in via_mem_alloc()
188 if (via_fb_alloc(&mem) < 0) in via_mem_alloc()
190 if (copy_to_user((drm_via_mem_t *)arg, &mem, sizeof(mem))) in via_mem_alloc()
194 if (via_agp_alloc(&mem) < 0) in via_mem_alloc()
196 if (copy_to_user((drm_via_mem_t *)arg, &mem, sizeof(mem))) in via_mem_alloc()
203 int via_fb_alloc(drm_via_mem_t* mem) in via_fb_alloc() argument
212 fb.size = mem->size; in via_fb_alloc()
213 fb.context = mem->context; in via_fb_alloc()
[all …]
Dvia_mm.h41 int via_fb_alloc(drm_via_mem_t *mem);
42 int via_fb_free(drm_via_mem_t *mem);
43 int via_agp_alloc(drm_via_mem_t *mem);
44 int via_agp_free(drm_via_mem_t *mem);
/linux-2.4.37.9/drivers/media/video/
Dzr36120_mem.c41 void* mem; in bmalloc() local
43 mem = bigphysarea_alloc_pages(size/PAGE_SIZE, 1, GFP_KERNEL); in bmalloc()
49 mem = (void*)__get_free_pages(GFP_USER|GFP_DMA,get_order(size)); in bmalloc()
51 if (mem) { in bmalloc()
52 unsigned long adr = (unsigned long)mem; in bmalloc()
59 return mem; in bmalloc()
62 void bfree(void* mem, unsigned long size) in bfree() argument
64 if (mem) { in bfree()
65 unsigned long adr = (unsigned long)mem; in bfree()
73 bigphysarea_free_pages(mem); in bfree()
[all …]
/linux-2.4.37.9/drivers/pcmcia/
Dm8xx_pcmcia.c1014 static int m8xx_get_mem_map(unsigned int lsock, struct pccard_mem_map *mem) in m8xx_get_mem_map() argument
1016 if(mem->map >= PCMCIA_MEM_WIN_NO) in m8xx_get_mem_map()
1019 *mem = socket[lsock].mem_win[mem->map]; /* copy the struct */ in m8xx_get_mem_map()
1022 "%#5.5lx-%#5.5lx, %#5.5x\n", lsock, mem->map, mem->flags, in m8xx_get_mem_map()
1023 mem->speed, mem->sys_start, mem->sys_stop, mem->card_start); in m8xx_get_mem_map()
1029 static int m8xx_set_mem_map(unsigned int lsock, struct pccard_mem_map *mem) in m8xx_set_mem_map() argument
1037 "%#5.5lx-%#5.5lx, %#5.5x)\n", lsock, mem->map, mem->flags, in m8xx_set_mem_map()
1038 mem->speed, mem->sys_start, mem->sys_stop, mem->card_start); in m8xx_set_mem_map()
1040 if ((mem->map >= PCMCIA_MEM_WIN_NO) || (mem->sys_start > mem->sys_stop) in m8xx_set_mem_map()
1041 || ((mem->sys_stop - mem->sys_start) >= PCMCIA_MEM_WIN_SIZE) in m8xx_set_mem_map()
[all …]
Dtcic.c875 static int tcic_get_mem_map(unsigned int lsock, struct pccard_mem_map *mem) in tcic_get_mem_map() argument
881 if (mem->map > 3) return -EINVAL; in tcic_get_mem_map()
883 addr = TCIC_MWIN(psock, mem->map); in tcic_get_mem_map()
888 mem->sys_start = base & TCIC_MBASE_HA_MASK; in tcic_get_mem_map()
889 mem->sys_stop = mem->sys_start; in tcic_get_mem_map()
892 mem->sys_start = (base & (base-1)); in tcic_get_mem_map()
893 mem->sys_stop = mem->sys_start + (base ^ (base-1)); in tcic_get_mem_map()
895 mem->sys_start = mem->sys_start << TCIC_MBASE_HA_SHFT; in tcic_get_mem_map()
896 mem->sys_stop = (mem->sys_stop << TCIC_MBASE_HA_SHFT) + 0x0fff; in tcic_get_mem_map()
900 mem->flags = (mmap & TCIC_MMAP_REG) ? MAP_ATTRIB : 0; in tcic_get_mem_map()
[all …]
Di82092.c491 pccard_mem_map mem = { 0, 0, 0, 0, 0, 0 }; in i82092aa_init() local
501 mem.map = i; in i82092aa_init()
502 i82092aa_set_mem_map(s, &mem); in i82092aa_init()
821 static int i82092aa_get_mem_map(unsigned sock, struct pccard_mem_map *mem) in i82092aa_get_mem_map() argument
828 mem->flags = 0; in i82092aa_get_mem_map()
829 mem->speed = 0; in i82092aa_get_mem_map()
830 map = mem->map; in i82092aa_get_mem_map()
839 mem->flags |= MAP_ACTIVE; /* yes this mapping is active */ in i82092aa_get_mem_map()
847 mem->flags |= MAP_16BIT; in i82092aa_get_mem_map()
849 mem->flags |= MAP_0WS; in i82092aa_get_mem_map()
[all …]
Dsibyte_generic.c399 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()
[all …]
Di82365.c1248 static int i365_get_mem_map(u_short sock, struct pccard_mem_map *mem) in i365_get_mem_map() argument
1253 map = mem->map; in i365_get_mem_map()
1256 mem->flags = (addr & I365_ENA_MEM(map)) ? MAP_ACTIVE : 0; in i365_get_mem_map()
1260 mem->flags |= (i & I365_MEM_16BIT) ? MAP_16BIT : 0; in i365_get_mem_map()
1261 mem->flags |= (i & I365_MEM_0WS) ? MAP_0WS : 0; in i365_get_mem_map()
1262 mem->sys_start = ((u_long)(i & 0x0fff) << 12); in i365_get_mem_map()
1265 mem->speed = (i & I365_MEM_WS0) ? 1 : 0; in i365_get_mem_map()
1266 mem->speed += (i & I365_MEM_WS1) ? 2 : 0; in i365_get_mem_map()
1267 mem->speed = to_ns(mem->speed); in i365_get_mem_map()
1268 mem->sys_stop = ((u_long)(i & 0x0fff) << 12) + 0x0fff; in i365_get_mem_map()
[all …]
Dvrc4173_cardu.c357 static int cardu_get_mem_map(unsigned int sock, struct pccard_mem_map *mem) in cardu_get_mem_map() argument
364 map = mem->map; in cardu_get_mem_map()
369 mem->flags = (window & MEM_WIN_EN(map)) ? MAP_ACTIVE : 0; in cardu_get_mem_map()
372 mem->flags |= (start & MEM_WIN_DSIZE) ? MAP_16BIT : 0; in cardu_get_mem_map()
379 mem->flags |= (offset & MEM_WIN_WP) ? MAP_WRPROT : 0; in cardu_get_mem_map()
380 mem->flags |= (offset & MEM_WIN_REGSET) ? MAP_ATTRIB : 0; in cardu_get_mem_map()
382 mem->card_start = offset & 0x03ffffff; in cardu_get_mem_map()
385 mem->sys_start = start + page; in cardu_get_mem_map()
386 mem->sys_stop = start + page; in cardu_get_mem_map()
391 static int cardu_set_mem_map(unsigned int sock, struct pccard_mem_map *mem) in cardu_set_mem_map() argument
[all …]
Dyenta.c363 static int yenta_get_mem_map(pci_socket_t *socket, struct pccard_mem_map *mem) in yenta_get_mem_map() argument
369 map = mem->map; in yenta_get_mem_map()
374 mem->flags = (addr & I365_ENA_MEM(map)) ? MAP_ACTIVE : 0; in yenta_get_mem_map()
377 mem->flags |= (start & I365_MEM_16BIT) ? MAP_16BIT : 0; in yenta_get_mem_map()
378 mem->flags |= (start & I365_MEM_0WS) ? MAP_0WS : 0; in yenta_get_mem_map()
382 mem->speed = to_ns(stop >> 14); in yenta_get_mem_map()
386 mem->flags |= (offset & I365_MEM_WRPROT) ? MAP_WRPROT : 0; in yenta_get_mem_map()
387 mem->flags |= (offset & I365_MEM_REG) ? MAP_ATTRIB : 0; in yenta_get_mem_map()
389 mem->card_start = offset & 0x3ffffff; in yenta_get_mem_map()
392 mem->sys_start = start + page; in yenta_get_mem_map()
[all …]
/linux-2.4.37.9/arch/ia64/kernel/
Dminstate.h126 .mem.offset 0,0; st8.spill [r16]=r8,16; \
127 .mem.offset 8,0; st8.spill [r17]=r9,16; \
129 .mem.offset 0,0; st8.spill [r16]=r10,24; \
130 .mem.offset 8,0; st8.spill [r17]=r11,32; \
160 .mem.offset 0,0; st8.spill [r16]=r12,16; \
161 .mem.offset 8,0; st8.spill [r17]=r13,16; \
164 .mem.offset 0,0; st8 [r16]=r21,PT(R14)-PT(AR_FPSR); /* ar.fpsr */ \
165 .mem.offset 8,0; st8.spill [r17]=r15,PT(R3)-PT(R15); \
169 .mem.offset 0,0; st8.spill [r16]=r14,8; \
172 .mem.offset 0,0; st8.spill [r16]=r2,16; \
[all …]
/linux-2.4.37.9/arch/ia64/sn/io/sn2/ioc4/
Dioc4.c126 extern int ioc4_serial_attach(vertex_hdl_t conn, void *mem);
202 ioc4_mem_t *mem = ((ioc4_soft_t *) ioc4_soft)->is_ioc4_mem; in ioc4_write_ireg() local
213 mem->sio_ies_ro = val; in ioc4_write_ireg()
217 mem->sio_iec_ro = val; in ioc4_write_ireg()
225 mem->other_ies_ro = val; in ioc4_write_ireg()
229 mem->other_iec_ro = val; in ioc4_write_ireg()
244 ioc4_mem_t *mem = ioc4_soft->is_ioc4_mem; in ioc4_pending_intrs() local
255 intrs = mem->sio_ir & mem->sio_ies_ro; in ioc4_pending_intrs()
259 intrs = mem->other_ir & mem->other_ies_ro; in ioc4_pending_intrs()
277 ioc4_mem_t *mem; in ioc4_attach() local
[all …]
/linux-2.4.37.9/drivers/isdn/pcbit/
Dmodule.c26 MODULE_PARM(mem, "1-" __MODULE_STRING(MAX_PCBIT_CARDS) "i");
29 static int mem[MAX_PCBIT_CARDS] = {0, }; variable
48 if (mem[0] || irq[0]) in pcbit_init()
50 for (board=0; board < MAX_PCBIT_CARDS && mem[board] && irq[board]; board++) in pcbit_init()
52 if (!mem[board]) in pcbit_init()
53 mem[board] = 0xD0000; in pcbit_init()
57 if (pcbit_init_dev(board, mem[board], irq[board]) == 0) in pcbit_init()
110 mem[i] = ints[j]; in pcbit_setup()
/linux-2.4.37.9/drivers/acorn/char/
Dpcf8583.c162 pcf8583_read_mem(struct i2c_client *client, struct mem *mem) in pcf8583_read_mem() argument
167 { client->addr, I2C_M_RD, 0, mem->data } in pcf8583_read_mem()
170 if (mem->loc < 8) in pcf8583_read_mem()
173 addr[0] = mem->loc; in pcf8583_read_mem()
174 msgs[1].len = mem->nr; in pcf8583_read_mem()
180 pcf8583_write_mem(struct i2c_client *client, struct mem *mem) in pcf8583_write_mem() argument
185 { client->addr, 0, 0, mem->data } in pcf8583_write_mem()
188 if (mem->loc < 8) in pcf8583_write_mem()
191 addr[0] = mem->loc; in pcf8583_write_mem()
192 msgs[1].len = mem->nr; in pcf8583_write_mem()
/linux-2.4.37.9/drivers/sound/emu10k1/
Dvoicemgr.c43 int emu10k1_voice_alloc_buffer(struct emu10k1_card *card, struct voice_mem *mem, u32 pages) in emu10k1_voice_alloc_buffer() argument
51 if ((mem->emupageindex = emu10k1_addxmgr_alloc(pages * PAGE_SIZE, card)) < 0) in emu10k1_voice_alloc_buffer()
59 …if ((mem->addr[pagecount] = pci_alloc_consistent(card->pci_dev, PAGE_SIZE, &mem->dma_handle[pageco… in emu10k1_voice_alloc_buffer()
61 mem->pages = pagecount; in emu10k1_voice_alloc_buffer()
66 DPD(2, "Virtual Addx: %p\n", mem->addr[pagecount]); in emu10k1_voice_alloc_buffer()
69 busaddx = (u32) mem->dma_handle[pagecount] + i * EMUPAGESIZE; in emu10k1_voice_alloc_buffer()
73 pageindex = mem->emupageindex + pagecount * PAGE_SIZE / EMUPAGESIZE + i; in emu10k1_voice_alloc_buffer()
79 mem->pages = pagecount; in emu10k1_voice_alloc_buffer()
89 void emu10k1_voice_free_buffer(struct emu10k1_card *card, struct voice_mem *mem) in emu10k1_voice_free_buffer() argument
94 if (mem->emupageindex < 0) in emu10k1_voice_free_buffer()
[all …]
/linux-2.4.37.9/drivers/char/
Dser_a2232.c289 volatile struct a2232memory *mem; in a2232_set_real_termios() local
294 mem = a2232mem(port->which_a2232); in a2232_set_real_termios()
317 if (mem->Common.Crystal == A2232_TURBO) rate = a2232_baud_table[i+2]; in a2232_set_real_termios()
505 volatile struct a2232memory *mem = a2232mem(board); in a2232stat() local
506 return &(mem->Status[portonboard]); in a2232stat()
553 volatile struct a2232memory *mem; in a2232_vbl_inter() local
561 mem = a2232mem(n); in a2232_vbl_inter()
576 ibuf = mem->InBuf[p]; in a2232_vbl_inter()
579 cbuf = mem->InCtl[p]; in a2232_vbl_inter()
617 obuf = mem->OutBuf[p]; in a2232_vbl_inter()
[all …]
/linux-2.4.37.9/drivers/hotplug/
Dibmphp_pci.c332 } else if (cur_func->mem[i]) { in ibmphp_configure_card()
333 ibmphp_remove_resource (cur_func->mem[i]); in ibmphp_configure_card()
334 cur_func->mem[i] = NULL; in ibmphp_configure_card()
361 struct resource_node *mem[6]; in configure_device() local
510 mem[count] = kmalloc (sizeof (struct resource_node), GFP_KERNEL); in configure_device()
511 if (!mem[count]) { in configure_device()
515 memset (mem[count], 0, sizeof (struct resource_node)); in configure_device()
516 mem[count]->type = MEM; in configure_device()
517 mem[count]->busno = func->busno; in configure_device()
518 mem[count]->devfunc = ((func->device << 3) | (func->function & 0x7)); in configure_device()
[all …]
/linux-2.4.37.9/drivers/pnp/
Disapnp.c666 struct isapnp_mem *mem, *ptr; in isapnp_add_mem_resource() local
669 mem = isapnp_alloc(sizeof(struct isapnp_mem)); in isapnp_add_mem_resource()
670 if (!mem) in isapnp_add_mem_resource()
675 kfree(mem); in isapnp_add_mem_resource()
679 mem->min = ((tmp[2] << 8) | tmp[1]) << 8; in isapnp_add_mem_resource()
680 mem->max = ((tmp[4] << 8) | tmp[3]) << 8; in isapnp_add_mem_resource()
681 mem->align = (tmp[6] << 8) | tmp[5]; in isapnp_add_mem_resource()
682 mem->size = ((tmp[8] << 8) | tmp[7]) << 8; in isapnp_add_mem_resource()
683 mem->flags = tmp[0]; in isapnp_add_mem_resource()
684 mem->res = *res; in isapnp_add_mem_resource()
[all …]
/linux-2.4.37.9/arch/ppc/kernel/
Dprom_init.c94 static unsigned long check_display(unsigned long mem);
101 static void prom_hold_cpus(unsigned long mem);
265 check_display(unsigned long mem) in check_display() argument
299 path = (char *) mem; in check_display()
309 mem += strlen(path) + 1; in check_display()
372 return ALIGN(mem); in check_display()
576 prom_hold_cpus(unsigned long mem) in prom_hold_cpus() argument
609 path = (char *) mem; in prom_hold_cpus()
761 unsigned long mem; in prom_init() local
783 mem = (unsigned long) klimit + offset; in prom_init()
[all …]
/linux-2.4.37.9/arch/ppc64/kernel/
DLparData.c234 msChunks_alloc(unsigned long mem, unsigned long num_chunks, unsigned long chunk_size) in msChunks_alloc() argument
244 mem = _ALIGN(mem, sizeof(msChunks_entry)); in msChunks_alloc()
245 _msChunks->abs = (msChunks_entry *)(mem + offset); in msChunks_alloc()
246 mem += num_chunks * sizeof(msChunks_entry); in msChunks_alloc()
248 return mem; in msChunks_alloc()
/linux-2.4.37.9/arch/mips/jazz/
Dfloppy-jazz.c98 unsigned long mem; in jazz_fd_dma_mem_alloc() local
100 mem = __get_dma_pages(GFP_KERNEL, get_order(size)); in jazz_fd_dma_mem_alloc()
101 if(!mem) in jazz_fd_dma_mem_alloc()
103 vdma_alloc(PHYSADDR(mem), size); /* XXX error checking */ in jazz_fd_dma_mem_alloc()
105 return mem; in jazz_fd_dma_mem_alloc()
/linux-2.4.37.9/drivers/char/agp/
Dagpgart_be.c679 static int agp_generic_insert_memory(agp_memory * mem, in agp_generic_insert_memory() argument
712 if (type != 0 || mem->type != 0) { in agp_generic_insert_memory()
716 if ((pg_start + mem->page_count) > num_entries) { in agp_generic_insert_memory()
721 while (j < (pg_start + mem->page_count)) { in agp_generic_insert_memory()
728 if (mem->is_flushed == FALSE) { in agp_generic_insert_memory()
730 mem->is_flushed = TRUE; in agp_generic_insert_memory()
732 for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { in agp_generic_insert_memory()
734 agp_bridge.mask_memory(mem->memory[i], mem->type); in agp_generic_insert_memory()
737 agp_bridge.tlb_flush(mem); in agp_generic_insert_memory()
741 static int agp_generic_remove_memory(agp_memory * mem, off_t pg_start, in agp_generic_remove_memory() argument
[all …]
/linux-2.4.37.9/drivers/message/i2o/
Di2o_pci.c154 unsigned long mem; in i2o_pci_install() local
188 mem = (unsigned long)ioremap(memptr, size); in i2o_pci_install()
189 if(mem==0) in i2o_pci_install()
201 c->irq_mask = mem+0x34; in i2o_pci_install()
202 c->post_port = mem+0x40; in i2o_pci_install()
203 c->reply_port = mem+0x44; in i2o_pci_install()
206 c->mem_offset = mem; in i2o_pci_install()
274 iounmap((void *)mem); in i2o_pci_install()
289 iounmap((void *)mem); in i2o_pci_install()
/linux-2.4.37.9/arch/ia64/sn/io/sn2/
Dgeo_op.c213 rv = g0.mem.membus - g1.mem.membus; in geo_cmp()
215 rv = g0.mem.memslot - g1.mem.memslot; in geo_cmp()
303 g.mem.membus = (char)va_arg(al, int); in geo_new()
304 g.mem.memslot = (char)va_arg(al, int); in geo_new()

12345678910