/asus-wl-520gu-7.0.1.45/src/router/samba/source/include/ |
H A D | byteorder.h | 57 #define CVAL(buf,pos) (((unsigned char *)(buf))[pos]) 58 #define PVAL(buf,pos) ((unsigned)CVAL(buf,pos)) 59 #define SVAL(buf,pos) (PVAL(buf,pos)|PVAL(buf,(pos)+1)<<8) 74 SVAL(buf,pos) - extract a 2 byte SMB value 75 IVAL(buf,pos) - extract a 4 byte SMB value 76 SVALS(buf,pos) signe [all...] |
/asus-wl-520gu-7.0.1.45/src/router/iproute2/lib/ |
H A D | dnet_ntop.c | 18 static __inline__ int do_digit(char *str, u_int16_t *addr, u_int16_t scale, size_t *pos, size_t len, int *started) argument 22 if (*pos == len) 28 (*pos)++; 40 size_t pos = 0; local 51 if (do_digit(str + pos, &area, 10, &pos, len, &started)) 54 if (do_digit(str + pos, &area, 1, &pos, len, &started)) 57 if (pos == len) 60 *(str + pos) [all...] |
H A D | ipx_ntop.c | 7 static __inline__ int do_digit(char *str, u_int32_t addr, u_int32_t scale, size_t *pos, size_t len) argument 11 if (*pos == len) 19 (*pos)++; 27 size_t pos = 0; local 33 if (do_digit(str + pos, ntohl(addr->ipx_net), i, &pos, len)) 36 if (pos == len) 39 *(str + pos) = '.'; 40 pos++; 43 if (do_digit(str + pos, add [all...] |
H A D | dnet_pton.c | 42 int pos; local 44 pos = dnet_num(src, &area); 45 if ((pos == 0) || (area > 63) || (*(src + pos) != '.')) 47 pos = dnet_num(src + pos + 1, &node); 48 if ((pos == 0) || (node > 1023))
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/scripts/squashfs/ |
H A D | mksquashfs.h | 32 #define SQUASHFS_SWAP(value, p, pos, tbits) _SQUASHFS_SWAP(value, p, pos, tbits, b_pos) 35 #define SQUASHFS_SWAP(value, p, pos, tbits) _SQUASHFS_SWAP(value, p, pos, tbits, 64 - tbits - b_pos) 38 #define _SQUASHFS_SWAP(value, p, pos, tbits, SHIFT) {\ 40 int b_pos = pos % 8;\ 43 unsigned char *d = ((unsigned char *)p) + (pos / 8);\
|
H A D | read_fs.h | 32 #define SQUASHFS_SWAP(value, p, pos, tbits) _SQUASHFS_SWAP(value, p, pos, tbits, b_pos) 35 #define SQUASHFS_SWAP(value, p, pos, tbits) _SQUASHFS_SWAP(value, p, pos, tbits, 64 - tbits - b_pos) 38 #define _SQUASHFS_SWAP(value, p, pos, tbits, SHIFT) {\ 40 int b_pos = pos % 8;\ 42 unsigned char *s = (unsigned char *)p + (pos / 8);\
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/jffs2/ |
H A D | compr_rtime.c | 59 int pos=0; local 63 while (pos < (*sourcelen) && outpos <= (*dstlen)-2) { 67 value = data_in[pos]; 69 cpage_out[outpos++] = data_in[pos++]; 72 positions[value]=pos; 74 while ((backpos < pos) && (pos < (*sourcelen)) && 75 (data_in[pos]==data_in[backpos++]) && (runlen<255)) { 76 pos++; 82 if (outpos >= pos) { 99 int pos=0; local [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/ |
H A D | list.h | 194 * @pos: the &struct list_head to use as a loop counter. 197 #define list_for_each(pos, head) \ 198 for (pos = (head)->next, prefetch(pos->next); pos != (head); \ 199 pos = pos->next, prefetch(pos->next)) 202 * @pos: the &struct list_head to use as a loop counter. 205 #define list_for_each_prev(pos, hea [all...] |
/asus-wl-520gu-7.0.1.45/src/router/dosfstools/dosfsck/ |
H A D | io.h | 19 void fs_read(loff_t pos,int size,void *data); 24 int fs_test(loff_t pos,int size); 29 void fs_write(loff_t pos,int size,void *data);
|
H A D | io.c | 31 loff_t pos; member in struct:_change 84 void fs_read(loff_t pos,int size,void *data) argument 89 if (llseek(fd,pos,0) != pos) pdie("Seek to %lld",pos); 90 if ((got = read(fd,data,size)) < 0) pdie("Read %d bytes at %lld",size,pos); 91 if (got != size) die("Got %d bytes instead of %d at %lld",got,size,pos); 93 if (walk->pos < pos+size && walk->pos 104 fs_test(loff_t pos,int size) argument 117 fs_write(loff_t pos,int size,void *data) argument [all...] |
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/ |
H A D | list.h | 192 * @pos: the &struct list_head to use as a loop counter. 195 #define list_for_each(pos, head) \ 196 for (pos = (head)->next, prefetch(pos->next); pos != (head); \ 197 pos = pos->next, prefetch(pos->next)) 200 * @pos: the &struct list_head to use as a loop counter. 203 #define list_for_each_prev(pos, hea [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/char/ftape/zftape/ |
H A D | zftape-vtbl.h | 159 extern int zft_open_volume (zft_position *pos, 161 extern int zft_close_volume (zft_position *pos); 163 extern int zft_skip_volumes (int count, zft_position *pos); 165 extern void zft_skip_to_eom (zft_position *pos); 168 extern int zft_weof (unsigned int count, zft_position *pos); 169 extern void zft_move_past_eof (zft_position *pos); 171 static inline int zft_tape_at_eod (const zft_position *pos); 172 static inline int zft_tape_at_lbot (const zft_position *pos); 173 static inline void zft_position_before_eof (zft_position *pos, 176 const zft_position *pos); 183 zft_position_before_eof(zft_position *pos, const zft_volinfo *volume) argument 198 zft_tape_at_eod(const zft_position *pos) argument 210 zft_tape_at_lbot(const zft_position *pos) argument 223 zft_check_for_eof(const zft_volinfo *vtbl, const zft_position *pos) argument [all...] |
H A D | zftape-ctl.h | 47 extern void zft_reset_position(zft_position *pos); 48 extern int zft_check_write_access(zft_position *pos);
|
H A D | zftape-vtbl.c | 492 int zft_open_volume(zft_position *pos, int blk_sz, int use_compression) argument 499 if (zft_tape_at_lbot(pos)) { 506 zft_reset_position(pos); 508 if (pos->seg_pos != zft_last_vtbl->end_seg + 1) { 511 pos->seg_pos, zft_last_vtbl->end_seg); 520 pos->volume_pos = pos->seg_byte_pos = 0; 521 zft_last_vtbl->start_seg = pos->seg_pos; 537 int zft_skip_volumes(int count, zft_position *pos) argument 544 vtbl= zft_find_volume(pos 589 zft_skip_to_eom(zft_position *pos) argument 608 zft_close_volume(zft_position *pos) argument 639 zft_weof(unsigned int count, zft_position *pos) argument 730 zft_move_past_eof(zft_position *pos) argument [all...] |
H A D | zftape-read.c | 165 const zft_position *pos, 170 if (seg_sz - pos->seg_byte_pos < to_do) { 171 *read_cnt = seg_sz - pos->seg_byte_pos; 177 src_buf + pos->seg_byte_pos, *read_cnt) != 0) { 182 memcpy_tofs(dst_buf, src_buf + pos->seg_byte_pos, *read_cnt); 195 const zft_position *pos) 215 if (zft_tape_at_eod(pos)) { 220 *volume = zft_find_volume(pos->seg_pos); 222 remaining = zft_check_for_eof(*volume, pos); 226 } else if (zft_tape_at_eod(pos)) { 160 zft_simple_read(int *read_cnt, __u8 *dst_buf, const int to_do, const __u8 *src_buf, const int seg_sz, const zft_position *pos, const zft_volinfo *volume) argument 192 check_read_access(int *req_len, const zft_volinfo **volume, int *req_clipped, const zft_position *pos) argument 264 empty_deblock_buf(__u8 *usr_buf, const int req_len, const __u8 *src_buf, const int seg_sz, zft_position *pos, const zft_volinfo *volume) argument [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/scsi/ |
H A D | eata_pio_proc.c | 33 off_t pos = 0; local 50 len += size; pos = begin + len; 53 len += size; pos = begin + len; 58 pos = begin + len; 62 pos = begin + len; 65 pos = begin + len; 68 pos = begin + len; 74 pos = begin + len; 76 if (pos < offset) { 78 begin = pos; [all...] |
H A D | eata_dma_proc.c | 91 off_t pos = 0; local 121 len += size; pos = begin + len; 124 len += size; pos = begin + len; 129 pos = begin + len; 133 pos = begin + len; 136 pos = begin + len; 144 pos = begin + len; 148 pos = begin + len; 152 pos = begin + len; 192 pos [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/m68k/amiga/ |
H A D | pcmcia.c | 41 int cnt, pos, len; local 44 pos = 0; 46 id = gayle_attribute[pos]; 48 while((id != CISTPL_END) && (pos < 0x10000)) { 49 len = (int)gayle_attribute[pos+2] + 2; 53 *dest++ = gayle_attribute[pos+(cnt<<1)]; 58 pos += len<<1; 59 id = gayle_attribute[pos];
|
/asus-wl-520gu-7.0.1.45/src/router/samba/source/smbd/ |
H A D | fileio.c | 31 static SMB_OFF_T seek_file(files_struct *fsp,SMB_OFF_T pos) argument 35 seek_ret = SMB_VFS_LSEEK(fsp,fsp->fd,pos,SEEK_SET); 40 fsp->pos = -1; 44 fsp->pos = seek_ret; 46 DEBUG(10,("seek_file (%s): requested pos = %lld, new pos = %lld\n", 47 fsp->fsp_name, pos, fsp->pos )); 49 return(fsp->pos); 57 static BOOL read_from_write_cache(files_struct *fsp,char *data,SMB_OFF_T pos,size_ argument 78 read_file(files_struct *fsp,char *data,SMB_OFF_T pos,size_t n) argument 142 real_write_file(files_struct *fsp,char *data,SMB_OFF_T pos, size_t n) argument 171 write_file(files_struct *fsp, char *data, SMB_OFF_T pos, size_t n) argument [all...] |
/asus-wl-520gu-7.0.1.45/src/router/e2fsprogs-1.40.8/lib/blkid/ |
H A D | list.h | 156 * @pos: the &struct list_head to use as a loop counter. 159 #define list_for_each(pos, head) \ 160 for (pos = (head)->next; pos != (head); pos = pos->next) 164 * pos after the body is done (in case it is freed) 165 * @pos: the &struct list_head to use as a loop counter. 169 #define list_for_each_safe(pos, pnext, head) \ 170 for (pos [all...] |
/asus-wl-520gu-7.0.1.45/src/router/busybox/ |
H A D | loadkmap.c | 50 int i, j, fd, readsz, pos, ibuffsz = NR_KEYS * sizeof(u_short); local 71 pos = 0; 72 while (pos < ibuffsz) { 73 if ((readsz = read(0, (char *) ibuff + pos, ibuffsz - pos)) < 0) 75 pos += readsz;
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/hfs/ |
H A D | file_cap.c | 108 hfs_u32 pos; local 115 pos = *ppos; 116 if (pos > HFS_FORK_MAX) { 120 if (pos > size) { 123 left = size - pos; 132 if (pos < sizeof(struct hfs_cap_info)) { 133 int memcount = sizeof(struct hfs_cap_info) - pos; 140 memcount -= copy_to_user(buf, ((char *)&meta) + pos, memcount); 143 pos += memcount; 149 pos 174 hfs_u32 pos; local [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/hpfs/ |
H A D | ea.c | 17 unsigned pos = 0; local 18 while (pos < len) { 21 if (pos + 4 > len) { 26 if (hpfs_ea_read(s, a, ano, pos, 4, ex)) return; 29 hpfs_error(s, "ea->indirect set while ea->valuelen!=8, %s %08x, pos %08x", 30 ano ? "anode" : "sectors", a, pos); 33 if (hpfs_ea_read(s, a, ano, pos + 4, ea->namelen + 9, ex+4)) 37 pos += ea->namelen + ea->valuelen + 5; 77 unsigned pos; local 95 pos 133 unsigned pos; local 194 unsigned pos; local [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/pci/ |
H A D | proc.c | 50 unsigned int pos = *ppos; local 66 if (pos >= size) 70 if (pos + nbytes > size) 71 nbytes = size - pos; 77 if ((pos & 1) && cnt) { 79 pci_read_config_byte(dev, pos, &val); 82 pos++; 86 if ((pos & 3) && cnt > 2) { 88 pci_read_config_word(dev, pos, &val); 91 pos 132 int pos = *ppos; local 307 pci_seq_start(struct seq_file *m, loff_t *pos) argument 319 pci_seq_next(struct seq_file *m, void *v, loff_t *pos) argument [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/gsc/ |
H A D | eisa_enumerator.c | 324 unsigned int pos=0; local 342 while ((pos < maxlen) && (num_func <= es->num_functions)) { 343 pos+=configure_function(buf+pos, &function_len); 349 p0 = pos; 350 pos += configure_choise(buf+pos, &flags); 354 pos = p0 + function_len; 361 pos = p0 + function_len; 374 pos [all...] |