Searched refs:ofs (Results 1 - 25 of 173) sorted by relevance

1234567

/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/asm-mips/
H A Dmarvell.h21 #define __MV_READ(ofs) \
22 (*(volatile u32 *)(marvell_base+(ofs)))
23 #define __MV_WRITE(ofs, data) \
24 do { *(volatile u32 *)(marvell_base+(ofs)) = (data); } while (0)
26 #define MV_READ(ofs) le32_to_cpu(__MV_READ(ofs))
27 #define MV_WRITE(ofs, data) __MV_WRITE(ofs, cpu_to_le32(data))
29 #define MV_READ_16(ofs) \
30 le16_to_cpu(*(volatile u16 *)(marvell_base+(ofs)))
[all...]
H A Dtitan_dep.h19 #define TITAN_READ(ofs) \
20 (*(volatile u32 *)(ocd_base+(ofs)))
21 #define TITAN_READ_16(ofs) \
22 (*(volatile u16 *)(ocd_base+(ofs)))
23 #define TITAN_READ_8(ofs) \
24 (*(volatile u8 *)(ocd_base+(ofs)))
26 #define TITAN_WRITE(ofs, data) \
27 do { *(volatile u32 *)(ocd_base+(ofs)) = (data); } while (0)
28 #define TITAN_WRITE_16(ofs, data) \
29 do { *(volatile u16 *)(ocd_base+(ofs))
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/asm/
H A Dmarvell.h21 #define __MV_READ(ofs) \
22 (*(volatile u32 *)(marvell_base+(ofs)))
23 #define __MV_WRITE(ofs, data) \
24 do { *(volatile u32 *)(marvell_base+(ofs)) = (data); } while (0)
26 #define MV_READ(ofs) le32_to_cpu(__MV_READ(ofs))
27 #define MV_WRITE(ofs, data) __MV_WRITE(ofs, cpu_to_le32(data))
29 #define MV_READ_16(ofs) \
30 le16_to_cpu(*(volatile u16 *)(marvell_base+(ofs)))
[all...]
H A Dtitan_dep.h19 #define TITAN_READ(ofs) \
20 (*(volatile u32 *)(ocd_base+(ofs)))
21 #define TITAN_READ_16(ofs) \
22 (*(volatile u16 *)(ocd_base+(ofs)))
23 #define TITAN_READ_8(ofs) \
24 (*(volatile u8 *)(ocd_base+(ofs)))
26 #define TITAN_WRITE(ofs, data) \
27 do { *(volatile u32 *)(ocd_base+(ofs)) = (data); } while (0)
28 #define TITAN_WRITE_16(ofs, data) \
29 do { *(volatile u16 *)(ocd_base+(ofs))
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/jffs2/
H A Dscan.c40 /* These helper functions _must_ increase ofs and also do the dirty/used space accounting.
45 struct jffs2_raw_inode *ri, uint32_t ofs, struct jffs2_summary *s);
47 struct jffs2_raw_dirent *rd, uint32_t ofs, struct jffs2_summary *s);
279 uint32_t ofs, uint32_t len)
284 ret = jffs2_flash_read(c, ofs, len, &retlen, buf);
286 D1(printk(KERN_WARNING "mtd->read(0x%x bytes from 0x%x) returned %d\n", len, ofs, ret));
290 D1(printk(KERN_WARNING "Read at 0x%x gave only 0x%zx bytes\n", ofs, retlen));
317 struct jffs2_raw_xattr *rx, uint32_t ofs,
327 ofs, je32_to_cpu(rx->node_crc), crc);
340 ofs, je32_to_cp
278 jffs2_fill_scan_buf(struct jffs2_sb_info *c, void *buf, uint32_t ofs, uint32_t len) argument
316 jffs2_scan_xattr_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_xattr *rx, uint32_t ofs, struct jffs2_summary *s) argument
372 jffs2_scan_xref_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_xref *rr, uint32_t ofs, struct jffs2_summary *s) argument
435 uint32_t ofs, prevofs; local
947 jffs2_scan_inode_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_inode *ri, uint32_t ofs, struct jffs2_summary *s) argument
1002 jffs2_scan_dirent_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, struct jffs2_raw_dirent *rd, uint32_t ofs, struct jffs2_summary *s) argument
[all...]
H A Dnodelist.c61 /* We know frag->ofs <= size. That's what lookup does for us */
62 if (frag && frag->ofs != size) {
63 if (frag->ofs+frag->size > size) {
64 frag->size = size - frag->ofs;
68 while (frag && frag->ofs >= size) {
84 if (frag->ofs + frag->size < size)
85 return frag->ofs + frag->size;
89 if (frag->node && (frag->ofs & (PAGE_CACHE_SIZE - 1)) == 0) {
91 frag->ofs, frag->ofs
145 new_fragment(struct jffs2_full_dnode *fn, uint32_t ofs, uint32_t size) argument
605 jffs2_link_node_ref(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t ofs, uint32_t len, struct jffs2_inode_cache *ic) argument
702 uint32_t ofs = jeb->offset + c->sector_size - jeb->free_size; local
[all...]
H A Dread.c23 int ofs, int len)
68 D1(if(ofs + len > je32_to_cpu(ri->dsize)) {
70 len, ofs, je32_to_cpu(ri->dsize));
139 memcpy(buf, decomprbuf+ofs, len);
168 if (unlikely(!frag || frag->ofs > offset)) {
171 D1(printk(KERN_NOTICE "Eep. Hole in ino #%u fraglist. frag->ofs = 0x%08x, offset = 0x%08x\n", f->inocache->ino, frag->ofs, offset));
172 holesize = min(holesize, frag->ofs - offset);
180 uint32_t holeend = min(end, frag->ofs + frag->size);
181 D1(printk(KERN_DEBUG "Filling frag hole from %d-%d (frag 0x%x 0x%x)\n", offset, holeend, frag->ofs, fra
21 jffs2_read_dnode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2_full_dnode *fd, unsigned char *buf, int ofs, int len) argument
[all...]
H A Dcompr_rubin.c32 unsigned int ofs; member in struct:pushpull
46 static inline void init_pushpull(struct pushpull *pp, char *buf, unsigned buflen, unsigned ofs, unsigned reserve) argument
50 pp->ofs = ofs;
56 if (pp->ofs >= pp->buflen - (use_reserved?0:pp->reserve)) {
61 pp->buf[pp->ofs >> 3] |= (1<<(7-(pp->ofs &7)));
64 pp->buf[pp->ofs >> 3] &= ~(1<<(7-(pp->ofs &7)));
66 pp->ofs
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/curl-7.23.1/src/
H A Dtool_cb_see.c101 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence)
107 # define _lseeki64(hnd,ofs,whence) _lseek(hnd,ofs,whence)
109 # define _lseeki64(hnd,ofs,whence) _lseek64(hnd,ofs,whence)
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/ffmpeg-0.5.1/libavcodec/sh4/
H A Ddsputil_align.c40 #define MERGE1(a,b,ofs) (ofs==0)?a:( ((a)>>(8*ofs))|((b)<<(32-8*ofs)) )
41 #define MERGE2(a,b,ofs) (ofs==3)?b:( ((a)>>(8*(ofs+1)))|((b)<<(32-8*(ofs+1))) )
43 #define MERGE1(a,b,ofs) (ofs
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/arch/mips/pmc-sierra/yosemite/
H A Ddbg_io.c86 #define SERIAL_READ(ofs) (*((volatile unsigned char*) \
87 (TITAN_SERIAL_BASE + ofs)))
89 #define SERIAL_WRITE(ofs, val) ((*((volatile unsigned char*) \
90 (TITAN_SERIAL_BASE + ofs))) = val)
95 #define SERIAL_READ_1(ofs) (*((volatile unsigned char*) \
96 (TITAN_SERIAL_BASE_1 + ofs)))
98 #define SERIAL_WRITE_1(ofs, val) ((*((volatile unsigned char*) \
99 (TITAN_SERIAL_BASE_1 + ofs))) = val)
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/mtd/chips/
H A Dcfi_util.c94 loff_t ofs, size_t len, void *thunk)
103 if (ofs > mtd->size)
106 if ((len + ofs) > mtd->size)
121 while (i < mtd->numeraseregions && ofs >= regions[i].offset)
131 if (ofs & (regions[i].erasesize-1))
141 while (i<mtd->numeraseregions && (ofs + len) >= regions[i].offset)
149 if ((ofs + len) & (regions[i].erasesize-1))
152 chipnum = ofs >> cfi->chipshift;
153 adr = ofs - (chipnum << cfi->chipshift);
166 ofs
93 cfi_varsize_frob(struct mtd_info *mtd, varsize_frob_t frob, loff_t ofs, size_t len, void *thunk) argument
[all...]
H A Dfwh_lock.h80 static int fwh_lock_varsize(struct mtd_info *mtd, loff_t ofs, size_t len) argument
84 ret = cfi_varsize_frob(mtd, fwh_xxlock_oneblock, ofs, len,
91 static int fwh_unlock_varsize(struct mtd_info *mtd, loff_t ofs, size_t len) argument
95 ret = cfi_varsize_frob(mtd, fwh_xxlock_oneblock, ofs, len,
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/mtd/maps/
H A Dmap_funcs.c14 static map_word __xipram simple_map_read(struct map_info *map, unsigned long ofs) argument
16 return inline_map_read(map, ofs);
19 static void __xipram simple_map_write(struct map_info *map, const map_word datum, unsigned long ofs) argument
21 inline_map_write(map, datum, ofs);
H A Dpci.c31 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs);
39 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs);
43 static map_word mtd_pci_read8(struct map_info *_map, unsigned long ofs) argument
47 val.x[0]= readb(map->base + map->translate(map, ofs));
48 // printk("read8 : %08lx => %02x\n", ofs, val.x[0]);
52 static map_word mtd_pci_read32(struct map_info *_map, unsigned long ofs) argument
56 val.x[0] = readl(map->base + map->translate(map, ofs));
57 // printk("read32: %08lx => %08x\n", ofs, val.x[0]);
67 static void mtd_pci_write8(struct map_info *_map, map_word val, unsigned long ofs) argument
70 // printk("write8 : %08lx <= %02x\n", ofs, va
74 mtd_pci_write32(struct map_info *_map, map_word val, unsigned long ofs) argument
134 intel_iq80310_translate(struct map_pci_info *map, unsigned long ofs) argument
234 intel_dc21285_translate(struct map_pci_info *map, unsigned long ofs) argument
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/net/arcnet/
H A Darc-rawmode.c93 int ofs; local
98 ofs = 512 - length;
100 ofs = 256 - length;
119 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft),
169 int ofs; local
184 hard->offset[1] = ofs = 512 - length;
187 hard->offset[1] = ofs = 512 - length - 3;
189 hard->offset[0] = ofs = 256 - length;
191 BUGMSG(D_DURING, "prepare_tx: length=%d ofs=%d\n",
192 length,ofs);
[all...]
H A Dcapmode.c108 int ofs; local
113 ofs = 512 - length;
115 ofs = 256 - length;
142 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft),
197 int ofs; local
219 hard->offset[1] = ofs = 512 - length;
222 hard->offset[1] = ofs = 512 - length - 3;
224 hard->offset[0] = ofs = 256 - length;
226 BUGMSG(D_DURING, "prepare_tx: length=%d ofs=%d\n",
227 length,ofs);
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/samba-3.0.13/source/smbwrapper/
H A Drealcalls.h206 #define real_llseek(fd,ofs,whence) (_llseek(fd,ofs,whence))
208 #define real_llseek(fd,ofs,whence) (__llseek(fd,ofs,whence))
210 #define real_llseek(fd,ofs,whence) (__sys_llseek(fd,ofs,whence))
215 #define real_pread(fd,buf,size,ofs) (_pread(fd,buf,size,ofs))
217 #define real_pread(fd,buf,size,ofs) (__pread(fd,buf,size,ofs))
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/mtd/devices/
H A Ddoc2000.c57 static int doc_read_oob(struct mtd_info *mtd, loff_t ofs,
59 static int doc_write_oob(struct mtd_info *mtd, loff_t ofs,
61 static int doc_write_oob_nolock(struct mtd_info *mtd, loff_t ofs, size_t len,
166 static int DoC_Address(struct DiskOnChip *doc, int numbytes, unsigned long ofs, argument
194 WriteDOC(ofs & 0xff, docptr, CDSNSlowIO);
195 WriteDOC_(ofs & 0xff, docptr, doc->ioreg);
199 ofs = ofs >> 8;
201 ofs = ofs >>
925 doc_read_oob(struct mtd_info *mtd, loff_t ofs, struct mtd_oob_ops *ops) argument
989 doc_write_oob_nolock(struct mtd_info *mtd, loff_t ofs, size_t len, size_t * retlen, const u_char * buf) argument
1092 doc_write_oob(struct mtd_info *mtd, loff_t ofs, struct mtd_oob_ops *ops) argument
1111 __u32 ofs = instr->addr; local
[all...]
H A Ddoc2001plus.c42 static int doc_read_oob(struct mtd_info *mtd, loff_t ofs,
44 static int doc_write_oob(struct mtd_info *mtd, loff_t ofs,
125 unsigned long ofs, unsigned char xtraflags1,
131 ofs >>= doc->interleave;
136 WriteDOC(ofs & 0xff, docptr, Mplus_FlashAddress);
140 WriteDOC((ofs >> 9) & 0xff, docptr, Mplus_FlashAddress);
141 WriteDOC((ofs >> 17) & 0xff, docptr, Mplus_FlashAddress);
145 WriteDOC(ofs & 0xff, docptr, Mplus_FlashAddress);
146 WriteDOC((ofs >> 9) & 0xff, docptr, Mplus_FlashAddress);
147 WriteDOC((ofs >> 1
124 DoC_Address(struct DiskOnChip *doc, int numbytes, unsigned long ofs, unsigned char xtraflags1, unsigned char xtraflags2) argument
186 unsigned int ofs = *from & 0x3ff; local
212 unsigned int ofs, cmd; local
228 unsigned int ofs, cmd; local
238 unsigned int ofs, cmd; local
752 doc_read_oob(struct mtd_info *mtd, loff_t ofs, struct mtd_oob_ops *ops) argument
835 doc_write_oob(struct mtd_info *mtd, loff_t ofs, struct mtd_oob_ops *ops) argument
946 __u32 ofs = instr->addr; local
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/arch/sh/cchips/voyagergx/
H A Dconsistent.c22 unsigned long ofs; member in struct:voya_alloc_entry
71 if (p->ofs - start >= size)
74 start = p->ofs + p->len;
82 entry->ofs = start;
107 if (entry->ofs != handle)
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/arch/frv/mb93090-mb00/
H A Dpci-dma-nommu.c24 unsigned long ofs; member in struct:dma_alloc_record
55 end = this_r->ofs;
60 start = this_r->ofs + this_r->len;
68 new->ofs = start;
91 if (rec->ofs == dma_handle) {
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/linux/mtd/
H A Dmap.h365 static inline map_word inline_map_read(struct map_info *map, unsigned long ofs) argument
370 r.x[0] = __raw_readb(map->virt + ofs);
372 r.x[0] = __raw_readw(map->virt + ofs);
374 r.x[0] = __raw_readl(map->virt + ofs);
377 r.x[0] = __raw_readq(map->virt + ofs);
380 memcpy_fromio(r.x, map->virt+ofs, map->bankwidth);
385 static inline void inline_map_write(struct map_info *map, const map_word datum, unsigned long ofs) argument
388 __raw_writeb(datum.x[0], map->virt + ofs);
390 __raw_writew(datum.x[0], map->virt + ofs);
392 __raw_writel(datum.x[0], map->virt + ofs);
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/samba-3.0.13/source/lib/
H A Dbitmap.c144 int bitmap_find(struct bitmap *bm, unsigned ofs) argument
148 if (ofs > bm->n) ofs = 0;
150 i = ofs;
164 while (i < ofs) {
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/samba-3.0.13/source/include/
H A Dincludes.h641 #define SINO_T(p, ofs, v) (SIVAL(p,ofs,(v)&0xFFFFFFFF), SIVAL(p,(ofs)+4,(v)>>32))
643 #define SINO_T(p, ofs, v) (SIVAL(p,ofs,v),SIVAL(p,(ofs)+4,0))
657 #define SBIG_UINT(p, ofs, v) (SIVAL(p,ofs,(v)&0xFFFFFFFF), SIVAL(p,(ofs)+4,(v)>>32))
661 #define SBIG_UINT(p, ofs,
[all...]

Completed in 503 milliseconds

1234567