/asus-wl-520gu-7.0.1.45/src/include/rts/ |
H A D | crc.h | 40 #define APPEND_CRC8(pbytes, nbytes) \ 42 uint8 tmp = crc8(pbytes, nbytes, CRC8_INIT_VALUE) ^ 0xff; \ 43 (pbytes)[(nbytes)] = tmp; \ 44 (nbytes) += 1; \ 47 #define APPEND_CRC16(pbytes, nbytes) \ 49 uint16 tmp = crc16(pbytes, nbytes, CRC16_INIT_VALUE) ^ 0xffff; \ 50 (pbytes)[(nbytes) + 0] = (tmp >> 0) & 0xff; \ 51 (pbytes)[(nbytes) + 1] = (tmp >> 8) & 0xff; \ 52 (nbytes) += 2; \ 55 #define APPEND_CRC32(pbytes, nbytes) \ [all...] |
/asus-wl-520gu-7.0.1.45/src/shared/ |
H A D | sromstubs.c | 30 srom_read(sb_t *sbh, uint bus, void *curmap, osl_t *osh, uint byteoff, uint nbytes, uint16 *buf) argument 36 srom_write(sb_t *sbh, uint bus, void *curmap, osl_t *osh, uint byteoff, uint nbytes, uint16 *buf) argument
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/usb/ |
H A D | drivers.c | 50 static ssize_t usb_driver_read(struct file *file, char *buf, size_t nbytes, loff_t *ppos) argument 59 if (nbytes <= 0) 61 if (!access_ok(VERIFY_WRITE, buf, nbytes)) 85 if (len > nbytes) 86 len = nbytes;
|
H A D | devices.c | 444 * nbytes - the maximum number of bytes to write 448 static ssize_t usb_device_dump(char **buffer, size_t *nbytes, loff_t *skip_bytes, loff_t *file_offset, argument 459 if (*nbytes <= 0) 525 if (length > *nbytes) 526 length = *nbytes; 534 *nbytes -= length; 547 ret = usb_device_dump(buffer, nbytes, skip_bytes, file_offset, usbdev->children[chix], 557 static ssize_t usb_device_read(struct file *file, char *buf, size_t nbytes, loff_t *ppos) argument 566 if (nbytes <= 0) 568 if (!access_ok(VERIFY_WRITE, buf, nbytes)) [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/alpha/boot/ |
H A D | bootp.c | 148 static long nbytes; local 174 nbytes = callback_getenv(ENV_BOOTED_OSFLAGS, envval, sizeof(envval)); 175 if (nbytes < 0 || nbytes >= sizeof(envval)) { 176 nbytes = 0; 178 envval[nbytes] = '\0';
|
H A D | main.c | 156 int nbytes; local 179 nbytes = callback_getenv(ENV_BOOTED_OSFLAGS, envval, sizeof(envval)); 180 if (nbytes < 0) { 181 nbytes = 0; 183 envval[nbytes] = '\0';
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/coda/ |
H A D | psdev.c | 103 size_t nbytes, loff_t *off) 117 CDEBUG(D_PSDEV, "(process,opc,uniq)=(%d,%ld,%ld), nbytes %ld\n", 118 current->pid, hdr.opcode, hdr.unique, (long)nbytes); 128 count = nbytes; 133 if ( nbytes < sizeof(struct coda_out_hdr) ) { 136 count = nbytes; 139 if ( nbytes > size ) { 142 nbytes = size; 144 CODA_ALLOC(dcbuf, union outputArgs *, nbytes); 145 if (copy_from_user(dcbuf, buf, nbytes)) { 102 coda_psdev_write(struct file *file, const char *buf, size_t nbytes, loff_t *off) argument 225 coda_psdev_read(struct file * file, char * buf, size_t nbytes, loff_t *off) argument [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/zorro/ |
H A D | proc.c | 45 proc_bus_zorro_read(struct file *file, char *buf, size_t nbytes, loff_t *ppos) argument 55 if (nbytes >= sizeof(struct ConfigDev)) 56 nbytes = sizeof(struct ConfigDev); 57 if (pos + nbytes > sizeof(struct ConfigDev)) 58 nbytes = sizeof(struct ConfigDev) - pos; 68 if (copy_to_user(buf, &cd, nbytes)) 70 *ppos += nbytes; 72 return nbytes;
|
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/ |
H A D | cuda.h | 34 void (*done)(struct adb_request *), int nbytes, ...);
|
H A D | adb.h | 38 int nbytes; member in struct:adb_request 82 int flags, int nbytes, ...);
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/ |
H A D | cuda.h | 34 void (*done)(struct adb_request *), int nbytes, ...);
|
H A D | adb.h | 38 int nbytes; member in struct:adb_request 82 int flags, int nbytes, ...);
|
/asus-wl-520gu-7.0.1.45/src/router/jpeg-6b/ |
H A D | jdatasrc.c | 93 size_t nbytes; local 95 nbytes = JFREAD(src->infile, src->buffer, INPUT_BUF_SIZE); 97 if (nbytes <= 0) { 104 nbytes = 2; 108 src->pub.bytes_in_buffer = nbytes;
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/alpha/kernel/ |
H A D | srm_env.c | 115 int nbytes; local 130 nbytes = (int) ret; 132 nbytes = -EFAULT; 136 return nbytes; 145 int nbytes; local 154 nbytes = strlen(buffer) + 1; 155 if(nbytes > BUFLEN) { 160 /* memcpy(aligned_buffer, buffer, nbytes) */ 173 nbytes = (int) ret1; 175 nbytes [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/macintosh/ |
H A D | via-pmu68k.c | 292 for (i = 0; i < req->nbytes - 1; ++i) 294 --req->nbytes; 305 if (req->nbytes != 2) 308 req->nbytes = 1; 316 if (req->nbytes != 6) 319 req->nbytes = 5; 329 if (req->nbytes != 4) 334 req->nbytes = 3; 342 if (req->nbytes != 5) 348 req->nbytes 453 pmu_request(struct adb_request *req, void (*done)(struct adb_request *), int nbytes, ...) argument [all...] |
H A D | adb-iop.c | 173 printk("adb_iop_start: sending packet, %d bytes:", req->nbytes); 174 for (i = 0 ; i < req->nbytes ; i++) 183 amsg.count = req->nbytes - 2; 187 memcpy(&amsg.cmd, req->data + 1, req->nbytes - 1); 230 if ((req->nbytes < 2) || (req->data[0] != ADB_PACKET)) { 273 req.nbytes = 2;
|
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-m68k/ |
H A D | adb.h | 56 int nbytes; member in struct:adb_request 69 void (*done)(struct adb_request *), int nbytes, ...);
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-m68k/ |
H A D | adb.h | 56 int nbytes; member in struct:adb_request 69 void (*done)(struct adb_request *), int nbytes, ...);
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/pci/ |
H A D | proc.c | 45 proc_bus_pci_read(struct file *file, char *buf, size_t nbytes, loff_t *ppos) argument 68 if (nbytes >= size) 69 nbytes = size; 70 if (pos + nbytes > size) 71 nbytes = size - pos; 72 cnt = nbytes; 123 return nbytes; 127 proc_bus_pci_write(struct file *file, const char *buf, size_t nbytes, loff_t *ppos) argument 137 if (nbytes >= PCI_CFG_SPACE_SIZE) 138 nbytes [all...] |
/asus-wl-520gu-7.0.1.45/src/router/samba/source/client/ |
H A D | smbspool.c | 310 int nbytes, /* Number of bytes read */ local 344 while ((nbytes = fread(buffer, 1, sizeof(buffer), fp)) > 0) 346 if (cli_write(cli, fnum, 0, buffer, tbytes, nbytes) != nbytes) 352 tbytes += nbytes;
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/atm/ |
H A D | mpoa_proc.c | 33 size_t nbytes, loff_t *ppos); 164 size_t nbytes, loff_t *ppos) 170 if (nbytes == 0) return 0; 171 if (nbytes >= PAGE_SIZE) nbytes = PAGE_SIZE-1; 173 error = verify_area(VERIFY_READ, buff, nbytes); 181 while(incoming < nbytes){ 203 return nbytes; 163 proc_mpc_write(struct file *file, const char *buff, size_t nbytes, loff_t *ppos) argument
|
/asus-wl-520gu-7.0.1.45/src/rts/src/ |
H A D | crc.c | 34 uint nbytes /* number of input data bytes to process */ 41 pheader[nbytes - 12 - 1] = 0; 42 hcs0 = crc8(pheader, nbytes, CRC8_INIT_VALUE); 49 pheader[nbytes - 12 - 1] = hcs1 ^ 0xff; 115 uint nbytes, /* number of input data bytes to process */ 119 while (nbytes-- > 0) 183 uint nbytes, /* number of input data bytes to process */ 187 while (nbytes-- > 0) 283 uint nbytes, /* number of input data bytes to process */ 287 while (nbytes 113 crc8( uint8 *pdata, uint nbytes, uint8 crc ) argument 181 crc16( uint8 *pdata, uint nbytes, uint16 crc ) argument 281 crc32( uint8 *pdata, uint nbytes, uint32 crc ) argument [all...] |
/asus-wl-520gu-7.0.1.45/src/cfe/cfe/main/ |
H A D | cfe_ldr_elf.c | 207 unsigned int nbytes; local 244 nbytes = ep->e_phnum * sizeof(Elf32_Phdr); 245 phtab = (Elf32_Phdr *) KMALLOC(nbytes,0); 251 fs_read(fsctx,ref,(uint8_t *)phtab,nbytes) != nbytes) {
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/ |
H A D | binfmt_misc.c | 423 bm_entry_read(struct file * file, char * buf, size_t nbytes, loff_t *ppos) argument 443 if (len < pos + nbytes) 444 nbytes = len - pos; 446 if (copy_to_user(buf, page + pos, nbytes)) 448 *ppos = pos + nbytes; 449 res = nbytes; 548 bm_status_read(struct file * file, char * buf, size_t nbytes, loff_t *ppos) argument 558 if (len < pos + nbytes) 559 nbytes = len - pos; 560 if (copy_to_user(buf, s + pos, nbytes)) [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/isdn/ |
H A D | isdn_v110.c | 102 v->nbytes = 8 / v->nbits; 119 v->framelen = v->nbytes * 10; 154 for (i = 0; (i < v->decodelen) && (i < v->nbytes); i++) 287 if (v->decodelen < v->nbytes) { /* got a new header ? */ 291 if (ValidHeaderBytes(v) != v->nbytes) { /* is that a valid header? */ 295 len = (v->decodelen - (v->decodelen % (10 * v->nbytes))) / v->nbytes; 303 for (j = 0; j < v->nbytes; j++) 304 v110_buf[i] |= (v->decodebuf[(i * v->nbytes) + j] & v->key) << (8 - ((j + 1) * v->nbits)); 307 v->decodelen = (v->decodelen % (10 * v->nbytes)); [all...] |