tag | line | file | source code |
buff | 47 | arch/alpha/lib/checksum.c | static inline unsigned long do_csum(unsigned char * buff, int len) |
buff | 54 | arch/alpha/lib/checksum.c | odd = 1 & (unsigned long) buff; |
buff | 56 | arch/alpha/lib/checksum.c | result = *buff << 8; |
buff | 58 | arch/alpha/lib/checksum.c | buff++; |
buff | 62 | arch/alpha/lib/checksum.c | if (2 & (unsigned long) buff) { |
buff | 63 | arch/alpha/lib/checksum.c | result += *(unsigned short *) buff; |
buff | 66 | arch/alpha/lib/checksum.c | buff += 2; |
buff | 70 | arch/alpha/lib/checksum.c | if (4 & (unsigned long) buff) { |
buff | 71 | arch/alpha/lib/checksum.c | result += *(unsigned int *) buff; |
buff | 74 | arch/alpha/lib/checksum.c | buff += 4; |
buff | 80 | arch/alpha/lib/checksum.c | unsigned long w = *(unsigned long *) buff; |
buff | 82 | arch/alpha/lib/checksum.c | buff += 8; |
buff | 91 | arch/alpha/lib/checksum.c | result += *(unsigned int *) buff; |
buff | 92 | arch/alpha/lib/checksum.c | buff += 4; |
buff | 96 | arch/alpha/lib/checksum.c | result += *(unsigned short *) buff; |
buff | 97 | arch/alpha/lib/checksum.c | buff += 2; |
buff | 101 | arch/alpha/lib/checksum.c | result += *buff; |
buff | 130 | arch/alpha/lib/checksum.c | unsigned int csum_partial(unsigned char * buff, int len, unsigned int sum) |
buff | 132 | arch/alpha/lib/checksum.c | unsigned long result = do_csum(buff, len); |
buff | 167 | arch/alpha/lib/checksum.c | unsigned short ip_compute_csum(unsigned char * buff, int len) |
buff | 169 | arch/alpha/lib/checksum.c | return ~from64to16(do_csum(buff,len)); |
buff | 26 | arch/i386/lib/checksum.c | unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum) { |
buff | 93 | arch/i386/lib/checksum.c | : "0"(sum), "c"(len), "S"(buff) |
buff | 24 | arch/mips/lib/checksum.c | unsigned int csum_partial(const unsigned char *buff, int len, unsigned int sum) |
buff | 128 | arch/mips/lib/checksum.c | : "0"(sum), "r"(len), "r"(buff) |
buff | 107 | arch/ppc/kernel/stubs.c | unsigned int csum_partial(unsigned char * buff, int len, unsigned int sum) |
buff | 594 | drivers/cdrom/sonycd535.c | Byte **buff, int buf_size) |
buff | 628 | drivers/cdrom/sonycd535.c | data_buff = buff[sector_count++]; |
buff | 774 | drivers/char/ftape/fdc-io.c | int setup_fdc_and_dma(buffer_struct * buff, unsigned char operation) |
buff | 811 | drivers/char/ftape/fdc-io.c | TRACEx2(5, "xfer %d sectors to 0x%p", buff->sector_count, buff->ptr); |
buff | 840 | drivers/char/ftape/fdc-io.c | TRACEx2(5, "xfer %d sectors from 0x%p", buff->sector_count, buff->ptr); |
buff | 853 | drivers/char/ftape/fdc-io.c | set_dma_addr(fdc.dma, (unsigned) buff->ptr); |
buff | 854 | drivers/char/ftape/fdc-io.c | set_dma_count(fdc.dma, SECTOR_SIZE * buff->sector_count); |
buff | 872 | drivers/char/ftape/fdc-io.c | out[2] = buff->cyl; |
buff | 873 | drivers/char/ftape/fdc-io.c | out[3] = buff->head; |
buff | 874 | drivers/char/ftape/fdc-io.c | out[4] = buff->sect + buff->sector_offset; |
buff | 876 | drivers/char/ftape/fdc-io.c | out[6] = out[4] + buff->sector_count - 1; /* last sector */ |
buff | 191 | drivers/char/ftape/fdc-isr.c | static void skip_bad_sector(buffer_struct * buff) |
buff | 197 | drivers/char/ftape/fdc-isr.c | if (buff->remaining > 0) { |
buff | 198 | drivers/char/ftape/fdc-isr.c | ++buff->sector_offset; |
buff | 199 | drivers/char/ftape/fdc-isr.c | ++buff->data_offset; |
buff | 200 | drivers/char/ftape/fdc-isr.c | --buff->remaining; |
buff | 201 | drivers/char/ftape/fdc-isr.c | buff->ptr += SECTOR_SIZE; |
buff | 202 | drivers/char/ftape/fdc-isr.c | buff->bad_sector_map >>= 1; |
buff | 204 | drivers/char/ftape/fdc-isr.c | ++buff->sector_offset; /* hack for error maps */ |
buff | 210 | drivers/char/ftape/fdc-isr.c | static void update_error_maps(buffer_struct * buff, unsigned error_offset) |
buff | 217 | drivers/char/ftape/fdc-isr.c | if (buff->retry < SOFT_RETRIES) { |
buff | 218 | drivers/char/ftape/fdc-isr.c | buff->soft_error_map |= (1 << error_offset); |
buff | 220 | drivers/char/ftape/fdc-isr.c | buff->hard_error_map |= (1 << error_offset); |
buff | 221 | drivers/char/ftape/fdc-isr.c | buff->soft_error_map &= ~buff->hard_error_map; |
buff | 222 | drivers/char/ftape/fdc-isr.c | buff->retry = -1; /* will be set to 0 in setup_segment */ |
buff | 228 | drivers/char/ftape/fdc-isr.c | buff->hard_error_map, buff->soft_error_map); |
buff | 244 | drivers/char/ftape/fdc-isr.c | static void determine_progress(buffer_struct * buff, error_cause cause, int mode) |
buff | 256 | drivers/char/ftape/fdc-isr.c | nr_xferred = buff->sector_count * SECTOR_SIZE - dma_residue; |
buff | 266 | drivers/char/ftape/fdc-isr.c | buff->sector_count -= nr_not_xferred; /* adjust to actual value */ |
buff | 270 | drivers/char/ftape/fdc-isr.c | if (buff->sector_count > 0) { |
buff | 271 | drivers/char/ftape/fdc-isr.c | buff->sector_offset += buff->sector_count; |
buff | 272 | drivers/char/ftape/fdc-isr.c | buff->data_offset += buff->sector_count; |
buff | 273 | drivers/char/ftape/fdc-isr.c | buff->ptr += buff->sector_count * SECTOR_SIZE; |
buff | 274 | drivers/char/ftape/fdc-isr.c | buff->remaining -= buff->sector_count; |
buff | 275 | drivers/char/ftape/fdc-isr.c | buff->bad_sector_map >>= buff->sector_count; |
buff | 278 | drivers/char/ftape/fdc-isr.c | TRACEx1(5, "%d Sector(s) transferred", buff->sector_count); |
buff | 280 | drivers/char/ftape/fdc-isr.c | TRACEx1(5, "Sector %d not found", SECTOR(buff->sector_offset)); |
buff | 283 | drivers/char/ftape/fdc-isr.c | TRACEx1(5, "Error in sector %d", SECTOR(buff->sector_offset)); |
buff | 289 | drivers/char/ftape/fdc-isr.c | TRACEx1(4, "Unexpected error at sector %d", SECTOR(buff->sector_offset)); |
buff | 299 | drivers/char/ftape/fdc-isr.c | skip_bad_sector(buff); |
buff | 301 | drivers/char/ftape/fdc-isr.c | update_error_maps(buff, buff->sector_offset - 1); |
buff | 379 | drivers/char/ftape/fdc-isr.c | buffer_struct *buff = *p_buff; |
buff | 387 | drivers/char/ftape/fdc-isr.c | (buff->status != (write ? writing : reading))) { |
buff | 389 | drivers/char/ftape/fdc-isr.c | runner_status, buff->status); |
buff | 390 | drivers/char/ftape/fdc-isr.c | buff->status = error; |
buff | 396 | drivers/char/ftape/fdc-isr.c | if (buff->remaining > 0 && calc_next_cluster(&buffer[head]) > 0) { |
buff | 402 | drivers/char/ftape/fdc-isr.c | buff->bytes = buff->ptr - buff->address; |
buff | 403 | drivers/char/ftape/fdc-isr.c | buff->status = error; |
buff | 404 | drivers/char/ftape/fdc-isr.c | buff = *p_buff = next_buffer(&head); /* finish this buffer */ |
buff | 411 | drivers/char/ftape/fdc-isr.c | unsigned last_segment = buff->segment_id; |
buff | 413 | drivers/char/ftape/fdc-isr.c | int next = buff->next_segment; /* 0 means stop ! */ |
buff | 415 | drivers/char/ftape/fdc-isr.c | buff->bytes = buff->ptr - buff->address; |
buff | 416 | drivers/char/ftape/fdc-isr.c | buff->status = done; |
buff | 417 | drivers/char/ftape/fdc-isr.c | buff = *p_buff = next_buffer(&head); |
buff | 426 | drivers/char/ftape/fdc-isr.c | if (buff->status == waiting) { |
buff | 427 | drivers/char/ftape/fdc-isr.c | if (write && next != buff->segment_id) { |
buff | 434 | drivers/char/ftape/fdc-isr.c | buff->next_segment = 0; |
buff | 443 | drivers/char/ftape/fdc-isr.c | buff->status = (write) ? writing : reading; /* keep on going */ |
buff | 474 | drivers/char/ftape/fdc-isr.c | buffer_struct *buff = *p_buff; |
buff | 478 | drivers/char/ftape/fdc-isr.c | pause_tape(buff->segment_id, 1, fdc_mode); |
buff | 480 | drivers/char/ftape/fdc-isr.c | buff->status = error; |
buff | 481 | drivers/char/ftape/fdc-isr.c | buff->skip = skip; |
buff | 486 | drivers/char/ftape/fdc-isr.c | find_resume_point(buffer_struct * buff) |
buff | 500 | drivers/char/ftape/fdc-isr.c | if (buff->sector_offset < 1 || buff->sector_offset > 32) { |
buff | 501 | drivers/char/ftape/fdc-isr.c | TRACEx1(1, "bug: sector_offset = %d", buff->sector_offset); |
buff | 503 | drivers/char/ftape/fdc-isr.c | if (buff->sector_offset >= 32) { /* C-limitation on shift ! */ |
buff | 506 | drivers/char/ftape/fdc-isr.c | mask = (1 << buff->sector_offset) - 1; |
buff | 508 | drivers/char/ftape/fdc-isr.c | map = buff->soft_error_map & mask; |
buff | 515 | drivers/char/ftape/fdc-isr.c | map = buff->hard_error_map & mask; |
buff | 516 | drivers/char/ftape/fdc-isr.c | i = buff->sector_offset - 1; |
buff | 544 | drivers/char/ftape/fdc-isr.c | buffer_struct *buff = &buffer[head]; |
buff | 581 | drivers/char/ftape/fdc-isr.c | TRACEi(5, "reading segment", buff->segment_id); |
buff | 583 | drivers/char/ftape/fdc-isr.c | TRACEi(4, "error reading segment", buff->segment_id); |
buff | 589 | drivers/char/ftape/fdc-isr.c | if (buff->retry > 0) { |
buff | 590 | drivers/char/ftape/fdc-isr.c | TRACEx1(5, "this is retry nr %d", buff->retry); |
buff | 592 | drivers/char/ftape/fdc-isr.c | if (buff->bad_sector_map == FAKE_SEGMENT) { |
buff | 600 | drivers/char/ftape/fdc-isr.c | buff->remaining = 0; /* skip failing sector */ |
buff | 601 | drivers/char/ftape/fdc-isr.c | continue_xfer(&buff, no_error, fdc_mode, 1); /* fake success */ |
buff | 605 | drivers/char/ftape/fdc-isr.c | determine_progress(buff, cause, fdc_reading_data); |
buff | 611 | drivers/char/ftape/fdc-isr.c | SECTOR(buff->sector_offset - 1)); |
buff | 612 | drivers/char/ftape/fdc-isr.c | buff->deleted = 1; |
buff | 613 | drivers/char/ftape/fdc-isr.c | buff->remaining = 0; /* abort transfer */ |
buff | 614 | drivers/char/ftape/fdc-isr.c | buff->soft_error_map |= (-1L << buff->sector_offset); |
buff | 615 | drivers/char/ftape/fdc-isr.c | if (buff->segment_id == 0) { |
buff | 618 | drivers/char/ftape/fdc-isr.c | buff->next_segment = buff->segment_id + 1; /* force read-ahead */ |
buff | 619 | drivers/char/ftape/fdc-isr.c | skip = (SECTORS_PER_SEGMENT - buff->sector_offset); |
buff | 623 | drivers/char/ftape/fdc-isr.c | continue_xfer(&buff, cause, fdc_mode, skip); |
buff | 637 | drivers/char/ftape/fdc-isr.c | int first_error = (buff->soft_error_map == 0 && |
buff | 638 | drivers/char/ftape/fdc-isr.c | buff->hard_error_map == 0); |
buff | 641 | drivers/char/ftape/fdc-isr.c | determine_progress(buff, cause, fdc_reading_data); |
buff | 643 | drivers/char/ftape/fdc-isr.c | skip = buff->sector_offset; |
buff | 645 | drivers/char/ftape/fdc-isr.c | skip = find_resume_point(buff); |
buff | 653 | drivers/char/ftape/fdc-isr.c | continue_xfer(&buff, cause, fdc_mode, skip); |
buff | 655 | drivers/char/ftape/fdc-isr.c | retry_sector(&buff, cause, fdc_mode, skip); |
buff | 663 | drivers/char/ftape/fdc-isr.c | determine_progress(buff, cause, fdc_reading_data); |
buff | 664 | drivers/char/ftape/fdc-isr.c | retry_sector(&buff, cause, fdc_mode, 0); |
buff | 693 | drivers/char/ftape/fdc-isr.c | TRACEi(5, "writing segment", buff->segment_id); |
buff | 695 | drivers/char/ftape/fdc-isr.c | TRACEi(4, "error writing segment", buff->segment_id); |
buff | 701 | drivers/char/ftape/fdc-isr.c | if (buff->retry > 0) { |
buff | 702 | drivers/char/ftape/fdc-isr.c | TRACEx1(5, "this is retry nr %d", buff->retry); |
buff | 704 | drivers/char/ftape/fdc-isr.c | if (buff->bad_sector_map == FAKE_SEGMENT) { |
buff | 711 | drivers/char/ftape/fdc-isr.c | buff->remaining = 0; /* skip failing sector */ |
buff | 712 | drivers/char/ftape/fdc-isr.c | continue_xfer(&buff, no_error, fdc_mode, 1); /* fake success */ |
buff | 716 | drivers/char/ftape/fdc-isr.c | determine_progress(buff, cause, fdc_writing_data); |
buff | 717 | drivers/char/ftape/fdc-isr.c | continue_xfer(&buff, cause, fdc_mode, 0); |
buff | 726 | drivers/char/ftape/fdc-isr.c | determine_progress(buff, cause, fdc_writing_data); |
buff | 727 | drivers/char/ftape/fdc-isr.c | skip = find_resume_point(buff); |
buff | 728 | drivers/char/ftape/fdc-isr.c | retry_sector(&buff, cause, fdc_mode, skip); |
buff | 74 | drivers/char/ftape/ftape-read.c | static unsigned long convert_sector_map(buffer_struct * buff) |
buff | 78 | drivers/char/ftape/ftape-read.c | unsigned long bad_map = get_bad_sector_entry(buff->segment_id); |
buff | 79 | drivers/char/ftape/ftape-read.c | unsigned long src_map = buff->soft_error_map | buff->hard_error_map; |
buff | 577 | drivers/char/ftape/ftape-read.c | int _ftape_read(char *buff, int req_len) |
buff | 653 | drivers/char/ftape/ftape-read.c | result = verify_area(VERIFY_WRITE, buff, cnt); |
buff | 659 | drivers/char/ftape/ftape-read.c | memcpy_tofs(buff, deblock_buffer + buf_pos_rd, cnt); |
buff | 660 | drivers/char/ftape/ftape-read.c | buff += cnt; |
buff | 39 | drivers/char/ftape/ftape-read.h | extern int _ftape_read(char *buff, int req_len); |
buff | 105 | drivers/char/ftape/ftape-rw.c | static int setup_segment(buffer_struct * buff, unsigned int segment_id, |
buff | 112 | drivers/char/ftape/ftape-rw.c | buff->segment_id = segment_id; |
buff | 113 | drivers/char/ftape/ftape-rw.c | buff->sector_offset = sector_offset; |
buff | 114 | drivers/char/ftape/ftape-rw.c | buff->remaining = sector_count; |
buff | 115 | drivers/char/ftape/ftape-rw.c | buff->head = segment_id / segments_per_head; |
buff | 116 | drivers/char/ftape/ftape-rw.c | buff->cyl = (segment_id % segments_per_head) / segments_per_cylinder; |
buff | 117 | drivers/char/ftape/ftape-rw.c | buff->sect = (segment_id % segments_per_cylinder) * SECTORS_PER_SEGMENT + 1; |
buff | 118 | drivers/char/ftape/ftape-rw.c | buff->deleted = 0; |
buff | 119 | drivers/char/ftape/ftape-rw.c | offset_mask = (1 << buff->sector_offset) - 1; |
buff | 127 | drivers/char/ftape/ftape-rw.c | buff->data_offset = count_ones(offset_mask); /* good sectors to skip */ |
buff | 128 | drivers/char/ftape/ftape-rw.c | buff->ptr = buff->address + buff->data_offset * SECTOR_SIZE; |
buff | 129 | drivers/char/ftape/ftape-rw.c | TRACEx1(5, "data offset = %d sectors", buff->data_offset); |
buff | 131 | drivers/char/ftape/ftape-rw.c | buff->soft_error_map &= offset_mask; /* keep skipped part */ |
buff | 133 | drivers/char/ftape/ftape-rw.c | buff->hard_error_map = buff->soft_error_map = 0; |
buff | 135 | drivers/char/ftape/ftape-rw.c | buff->bad_sector_map = get_bad_sector_entry(buff->segment_id); |
buff | 136 | drivers/char/ftape/ftape-rw.c | if (buff->bad_sector_map != 0) { |
buff | 138 | drivers/char/ftape/ftape-rw.c | buff->segment_id, buff->bad_sector_map); |
buff | 140 | drivers/char/ftape/ftape-rw.c | TRACEx1(5, "segment: %d", buff->segment_id); |
buff | 142 | drivers/char/ftape/ftape-rw.c | if (buff->sector_offset > 0) { |
buff | 143 | drivers/char/ftape/ftape-rw.c | buff->bad_sector_map >>= buff->sector_offset; |
buff | 145 | drivers/char/ftape/ftape-rw.c | if (buff->sector_offset != 0 || buff->remaining != SECTORS_PER_SEGMENT) { |
buff | 147 | drivers/char/ftape/ftape-rw.c | buff->sector_offset, buff->remaining); |
buff | 163 | drivers/char/ftape/ftape-rw.c | if (buff->bad_sector_map == EMPTY_SEGMENT) { |
buff | 165 | drivers/char/ftape/ftape-rw.c | buff->bad_sector_map = FAKE_SEGMENT; |
buff | 168 | drivers/char/ftape/ftape-rw.c | buff->next_segment = segment_id + 1; |
buff | 175 | drivers/char/ftape/ftape-rw.c | int setup_new_segment(buffer_struct * buff, unsigned int segment_id, int skip) |
buff | 193 | drivers/char/ftape/ftape-rw.c | ++buff->retry; |
buff | 195 | drivers/char/ftape/ftape-rw.c | TRACEx1(5, "setting up for retry nr %d", buff->retry); |
buff | 197 | drivers/char/ftape/ftape-rw.c | if (skip && buff->skip > 0) { /* allow skip on retry */ |
buff | 198 | drivers/char/ftape/ftape-rw.c | offset = buff->skip; |
buff | 203 | drivers/char/ftape/ftape-rw.c | buff->retry = 0; |
buff | 204 | drivers/char/ftape/ftape-rw.c | buff->skip = 0; |
buff | 207 | drivers/char/ftape/ftape-rw.c | result = setup_segment(buff, segment_id, offset, count, retry); |
buff | 214 | drivers/char/ftape/ftape-rw.c | int calc_next_cluster(buffer_struct * buff) |
buff | 218 | drivers/char/ftape/ftape-rw.c | while (buff->remaining > 0 && (buff->bad_sector_map & 1) != 0) { |
buff | 219 | drivers/char/ftape/ftape-rw.c | buff->bad_sector_map >>= 1; |
buff | 220 | drivers/char/ftape/ftape-rw.c | ++buff->sector_offset; |
buff | 221 | drivers/char/ftape/ftape-rw.c | --buff->remaining; |
buff | 225 | drivers/char/ftape/ftape-rw.c | if (buff->bad_sector_map == 0) { /* speed up */ |
buff | 226 | drivers/char/ftape/ftape-rw.c | buff->sector_count = buff->remaining; |
buff | 228 | drivers/char/ftape/ftape-rw.c | unsigned long map = buff->bad_sector_map; |
buff | 230 | drivers/char/ftape/ftape-rw.c | buff->sector_count = 0; |
buff | 231 | drivers/char/ftape/ftape-rw.c | while (buff->sector_count < buff->remaining && (map & 1) == 0) { |
buff | 232 | drivers/char/ftape/ftape-rw.c | ++buff->sector_count; |
buff | 236 | drivers/char/ftape/ftape-rw.c | return buff->sector_count; |
buff | 159 | drivers/char/ftape/ftape-rw.h | extern int setup_new_segment(buffer_struct * buff, unsigned int segment_id, |
buff | 161 | drivers/char/ftape/ftape-rw.h | extern int calc_next_cluster(buffer_struct * buff); |
buff | 171 | drivers/char/ftape/ftape-rw.h | extern int setup_fdc_and_dma(buffer_struct * buff, byte operation); |
buff | 112 | drivers/char/ftape/ftape-write.c | buffer_struct *buff = &buffer[head]; |
buff | 113 | drivers/char/ftape/ftape-write.c | int segment_id = buff->segment_id; |
buff | 115 | drivers/char/ftape/ftape-write.c | if (ftape_state == writing && buff->status == waiting) { |
buff | 116 | drivers/char/ftape/ftape-write.c | setup_new_segment(buff, segment_id, 1); |
buff | 120 | drivers/char/ftape/ftape-write.c | calc_next_cluster(buff); /* prepare */ |
buff | 121 | drivers/char/ftape/ftape-write.c | buff->status = writing; |
buff | 124 | drivers/char/ftape/ftape-write.c | result = ftape_start_tape(segment_id, buff->sector_offset); |
buff | 130 | drivers/char/ftape/ftape-write.c | result = setup_fdc_and_dma(buff, FDC_WRITE); /* go */ |
buff | 589 | drivers/char/ftape/ftape-write.c | int _ftape_write(const char *buff, int req_len) |
buff | 635 | drivers/char/ftape/ftape-write.c | result = verify_area(VERIFY_READ, buff, cnt); |
buff | 642 | drivers/char/ftape/ftape-write.c | memcpy_fromfs(deblock_buffer + buf_pos_wr, buff, cnt); |
buff | 643 | drivers/char/ftape/ftape-write.c | buff += cnt; |
buff | 39 | drivers/char/ftape/ftape-write.h | extern int _ftape_write(const char *buff, int req_len); |
buff | 64 | drivers/char/ftape/kernel-interface.c | static int ftape_read(struct inode *ino, struct file *fp, char *buff, |
buff | 66 | drivers/char/ftape/kernel-interface.c | static int ftape_write(struct inode *ino, struct file *fp, const char *buff, |
buff | 313 | drivers/char/ftape/kernel-interface.c | static int ftape_read(struct inode *ino, struct file *fp, char *buff, int req_len) |
buff | 327 | drivers/char/ftape/kernel-interface.c | result = _ftape_read(buff, req_len); |
buff | 336 | drivers/char/ftape/kernel-interface.c | static int ftape_write(struct inode *ino, struct file *fp, const char *buff, int req_len) |
buff | 350 | drivers/char/ftape/kernel-interface.c | result = _ftape_write(buff, req_len); |
buff | 1140 | drivers/isdn/isdn_net.c | isdn_net_rebuild_header(void *buff, struct device *dev, ulong dst, |
buff | 1147 | drivers/isdn/isdn_net.c | struct ethhdr *eth = (struct ethhdr *)buff; |
buff | 49 | drivers/net/apricot.c | #define kfree_skbmem(buff, size) kfree_s(buff,size) |
buff | 2650 | drivers/net/arcnet.c | int arcnetA_rebuild_header(void *buff,struct device *dev,unsigned long dst, |
buff | 2653 | drivers/net/arcnet.c | struct ClientData *head = (struct ClientData *)buff; |
buff | 3105 | drivers/net/arcnet.c | int arcnetS_rebuild_header(void *buff,struct device *dev,unsigned long dst, |
buff | 3108 | drivers/net/arcnet.c | struct S_ClientData *head = (struct S_ClientData *)buff; |
buff | 155 | drivers/net/eql.c | static int eql_rebuild_header(void *buff, struct device *dev, |
buff | 416 | drivers/net/eql.c | static int eql_rebuild_header(void *buff, struct device *dev, |
buff | 1084 | drivers/net/pi2.c | static int pi_rebuild_header(void *buff, struct device *dev, unsigned long raddr, |
buff | 1087 | drivers/net/pi2.c | return ax25_rebuild_header(buff, dev, raddr, skb); |
buff | 145 | drivers/net/plip.c | static int plip_rebuild_header(void *buff, struct device *dev, |
buff | 857 | drivers/net/plip.c | plip_rebuild_header(void *buff, struct device *dev, unsigned long dst, |
buff | 861 | drivers/net/plip.c | struct ethhdr *eth = (struct ethhdr *)buff; |
buff | 865 | drivers/net/plip.c | return nl->orig_rebuild_header(buff, dev, dst, skb); |
buff | 347 | drivers/net/pt.c | static int pt_rebuild_header(void *buff, struct device *dev, unsigned long raddr, |
buff | 350 | drivers/net/pt.c | return ax25_rebuild_header(buff, dev, raddr, skb); |
buff | 556 | drivers/net/slip.c | sl_rebuild_header(void *buff, struct device *dev, unsigned long raddr, |
buff | 564 | drivers/net/slip.c | return ax25_rebuild_header(buff, dev, raddr, skb); |
buff | 518 | drivers/scsi/aha1542.c | void *buff = SCpnt->request_buffer; |
buff | 645 | drivers/scsi/aha1542.c | if(((unsigned int) buff & 0xff000000)) goto baddma; |
buff | 646 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, buff); |
buff | 258 | drivers/scsi/aha1740.c | void *buff = SCpnt->request_buffer; |
buff | 354 | drivers/scsi/aha1740.c | ecb[ecbno].dataptr = (long) buff; |
buff | 79 | drivers/scsi/aic7xxx_proc.c | static u8 buff[512]; |
buff | 124 | drivers/scsi/aic7xxx_proc.c | memset(buff, 0, sizeof(buff)); |
buff | 695 | drivers/scsi/eata_dma.c | static char *buff; |
buff | 704 | drivers/scsi/eata_dma.c | buff = dma_scratch; |
buff | 708 | drivers/scsi/eata_dma.c | memset(buff, 0, 256); |
buff | 716 | drivers/scsi/eata_dma.c | cp->cp_dataDMA = htonl(virt_to_bus(buff)); |
buff | 743 | drivers/scsi/eata_dma.c | (u32) sp->scsi_stat, buff, sp)); |
buff | 757 | drivers/scsi/eata_dma.c | return (buff); |
buff | 851 | drivers/scsi/eata_dma.c | char *buff = 0; |
buff | 905 | drivers/scsi/eata_dma.c | buff = get_board_data(base, gc->IRQ, gc->scsi_id[3]); |
buff | 907 | drivers/scsi/eata_dma.c | if (buff == NULL) { |
buff | 931 | drivers/scsi/eata_dma.c | if (gc->DMA_support == FALSE && buff != NULL) |
buff | 933 | drivers/scsi/eata_dma.c | &buff[16], base); |
buff | 977 | drivers/scsi/eata_dma.c | strncpy(SD(sh)->vendor, &buff[8], 8); |
buff | 979 | drivers/scsi/eata_dma.c | strncpy(SD(sh)->name, &buff[16], 17); |
buff | 981 | drivers/scsi/eata_dma.c | SD(sh)->revision[0] = buff[32]; |
buff | 982 | drivers/scsi/eata_dma.c | SD(sh)->revision[1] = buff[33]; |
buff | 983 | drivers/scsi/eata_dma.c | SD(sh)->revision[2] = buff[34]; |
buff | 985 | drivers/scsi/eata_dma.c | SD(sh)->revision[4] = buff[35]; |
buff | 1013 | drivers/scsi/eata_dma.c | if (buff[21] == '4') |
buff | 1015 | drivers/scsi/eata_dma.c | else if (buff[21] == '2') |
buff | 75 | drivers/scsi/eata_dma_proc.c | static u8 buff[512]; |
buff | 106 | drivers/scsi/eata_dma_proc.c | memset(buff, 0, sizeof(buff)); |
buff | 108 | drivers/scsi/eata_dma_proc.c | cc = (coco *) (buff + 0x148); |
buff | 109 | drivers/scsi/eata_dma_proc.c | st = (scsitrans *)(buff + 0x164); |
buff | 110 | drivers/scsi/eata_dma_proc.c | sm = (scsimod *) (buff + 0x16c); |
buff | 111 | drivers/scsi/eata_dma_proc.c | hb = (hobu *) (buff + 0x172); |
buff | 112 | drivers/scsi/eata_dma_proc.c | sb = (scbu *) (buff + 0x178); |
buff | 113 | drivers/scsi/eata_dma_proc.c | bt = (boty *) (buff + 0x17e); |
buff | 114 | drivers/scsi/eata_dma_proc.c | mc = (memco *) (buff + 0x186); |
buff | 115 | drivers/scsi/eata_dma_proc.c | fm = (firm *) (buff + 0x18e); |
buff | 116 | drivers/scsi/eata_dma_proc.c | si = (subinf *) (buff + 0x196); |
buff | 117 | drivers/scsi/eata_dma_proc.c | pi = (pcinf *) (buff + 0x19c); |
buff | 118 | drivers/scsi/eata_dma_proc.c | al = (arrlim *) (buff + 0x1a2); |
buff | 191 | drivers/scsi/eata_dma_proc.c | scsi_do_cmd (&scmd, cmnd, buff + 0x144, 0x66, |
buff | 539 | drivers/scsi/eata_pio.c | static char buff[256]; |
buff | 543 | drivers/scsi/eata_pio.c | memset(buff, 0, sizeof(buff)); |
buff | 575 | drivers/scsi/eata_pio.c | insw(base+HA_RDATA, &buff, 127); |
buff | 577 | drivers/scsi/eata_pio.c | return (buff); |
buff | 679 | drivers/scsi/eata_pio.c | char *buff; |
buff | 693 | drivers/scsi/eata_pio.c | if ((buff = get_pio_board_data((uint)base, gc->IRQ, gc->scsi_id[3], |
buff | 737 | drivers/scsi/eata_pio.c | strncpy(SD(sh)->vendor, &buff[8], 8); |
buff | 739 | drivers/scsi/eata_pio.c | strncpy(SD(sh)->name, &buff[16], 17); |
buff | 741 | drivers/scsi/eata_pio.c | SD(sh)->revision[0] = buff[32]; |
buff | 742 | drivers/scsi/eata_pio.c | SD(sh)->revision[1] = buff[33]; |
buff | 743 | drivers/scsi/eata_pio.c | SD(sh)->revision[2] = buff[34]; |
buff | 745 | drivers/scsi/eata_pio.c | SD(sh)->revision[4] = buff[35]; |
buff | 772 | drivers/scsi/eata_pio.c | if (buff[21] == '4') |
buff | 774 | drivers/scsi/eata_pio.c | else if (buff[21] == '2') |
buff | 46 | drivers/scsi/eata_pio_proc.c | static u8 buff[512]; |
buff | 63 | drivers/scsi/eata_pio_proc.c | memset(buff, 0, sizeof(buff)); |
buff | 423 | drivers/scsi/in2000.c | void *buff = SCpnt->request_buffer; |
buff | 505 | drivers/scsi/in2000.c | in2000_scatter = (struct scatterlist *) buff; |
buff | 511 | drivers/scsi/in2000.c | in2000_dataptr = (unsigned short*) buff; |
buff | 179 | drivers/scsi/scsi_debug.c | unsigned char * buff; |
buff | 192 | drivers/scsi/scsi_debug.c | buff = (unsigned char *) SCpnt->request_buffer; |
buff | 215 | drivers/scsi/scsi_debug.c | printk("scsi_debug: Requesting sense buffer (%x %x %x %d):", SCpnt, buff, done, bufflen); |
buff | 220 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 221 | drivers/scsi/scsi_debug.c | memcpy(buff, sense_buffer, bufflen); |
buff | 232 | drivers/scsi/scsi_debug.c | printk("Inquiry...(%x %d)\n", buff, bufflen); |
buff | 233 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 234 | drivers/scsi/scsi_debug.c | buff[0] = TYPE_DISK; |
buff | 235 | drivers/scsi/scsi_debug.c | buff[1] = 0x80; /* Removable disk */ |
buff | 236 | drivers/scsi/scsi_debug.c | buff[2] = 1; |
buff | 237 | drivers/scsi/scsi_debug.c | buff[4] = 33 - 5; |
buff | 238 | drivers/scsi/scsi_debug.c | memcpy(&buff[8],"Foo Inc",7); |
buff | 239 | drivers/scsi/scsi_debug.c | memcpy(&buff[16],"XYZZY",5); |
buff | 240 | drivers/scsi/scsi_debug.c | memcpy(&buff[32],"1",1); |
buff | 244 | drivers/scsi/scsi_debug.c | printk("Test unit ready(%x %d)\n", buff, bufflen); |
buff | 245 | drivers/scsi/scsi_debug.c | if (buff) |
buff | 246 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 252 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 253 | drivers/scsi/scsi_debug.c | buff[0] = (CAPACITY >> 24); |
buff | 254 | drivers/scsi/scsi_debug.c | buff[1] = (CAPACITY >> 16) & 0xff; |
buff | 255 | drivers/scsi/scsi_debug.c | buff[2] = (CAPACITY >> 8) & 0xff; |
buff | 256 | drivers/scsi/scsi_debug.c | buff[3] = CAPACITY & 0xff; |
buff | 257 | drivers/scsi/scsi_debug.c | buff[6] = 2; /* 512 byte sectors */ |
buff | 288 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
buff | 289 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
buff | 298 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 303 | drivers/scsi/scsi_debug.c | memset(buff, 0, bufflen); |
buff | 304 | drivers/scsi/scsi_debug.c | *((unsigned short *) (buff+510)) = 0xAA55; |
buff | 305 | drivers/scsi/scsi_debug.c | p = (struct partition* ) (buff + 0x1be); |
buff | 345 | drivers/scsi/scsi_debug.c | memcpy(buff, &target, sizeof(target)); |
buff | 346 | drivers/scsi/scsi_debug.c | memcpy(buff+sizeof(target), cmd, 24); |
buff | 347 | drivers/scsi/scsi_debug.c | memcpy(buff+60, &block, sizeof(block)); |
buff | 348 | drivers/scsi/scsi_debug.c | memcpy(buff+64, SCpnt, sizeof(Scsi_Cmnd)); |
buff | 353 | drivers/scsi/scsi_debug.c | memcpy(buff+128, bh, sizeof(struct buffer_head)); |
buff | 360 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
buff | 387 | drivers/scsi/scsi_debug.c | sgpnt = (struct scatterlist *) buff; |
buff | 388 | drivers/scsi/scsi_debug.c | buff = sgpnt[sgcount].address; |
buff | 391 | drivers/scsi/scsi_debug.c | if (block != *((unsigned long *) (buff+60))) { |
buff | 392 | drivers/scsi/scsi_debug.c | printk("%x %x :",block, *((unsigned long *) (buff+60))); |
buff | 513 | drivers/scsi/sd.c | char * buff, *bounce_buffer; |
buff | 628 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buff | 647 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buff | 692 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buff | 697 | drivers/scsi/sd.c | buff = (char *) sgpnt; |
buff | 738 | drivers/scsi/sd.c | buff = SCpnt->request.buffer; |
buff | 819 | drivers/scsi/sd.c | if (((long) buff) + (this_count << 9) - 1 > ISA_DMA_THRESHOLD && |
buff | 822 | drivers/scsi/sd.c | buff = bounce_buffer; |
buff | 824 | drivers/scsi/sd.c | buff = (char *) scsi_malloc(this_count << 9); |
buff | 825 | drivers/scsi/sd.c | if(buff == NULL) { /* Try backing off a bit if we are low on mem*/ |
buff | 827 | drivers/scsi/sd.c | buff = (char *) scsi_malloc(this_count << 9); |
buff | 828 | drivers/scsi/sd.c | if(!buff) panic("Ran out of DMA buffers."); |
buff | 831 | drivers/scsi/sd.c | memcpy(buff, (char *)SCpnt->request.buffer, this_count << 9); |
buff | 889 | drivers/scsi/sd.c | scsi_do_cmd (SCpnt, (void *) cmd, buff, |
buff | 95 | drivers/scsi/seagate.c | void *buff, int bufflen, int reselect); |
buff | 620 | drivers/scsi/seagate.c | void *buff, int bufflen, int reselect) { |
buff | 56 | drivers/scsi/sg.c | char *buff; /* the buffer */ |
buff | 64 | drivers/scsi/sg.c | static void sg_free(char *buff,int size); |
buff | 136 | drivers/scsi/sg.c | if (scsi_generics[dev].buff != NULL) |
buff | 137 | drivers/scsi/sg.c | sg_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len); |
buff | 138 | drivers/scsi/sg.c | scsi_generics[dev].buff=NULL; |
buff | 181 | drivers/scsi/sg.c | static void sg_free(char *buff,int size) |
buff | 184 | drivers/scsi/sg.c | if (buff==big_buff) |
buff | 191 | drivers/scsi/sg.c | scsi_free(buff,size); |
buff | 241 | drivers/scsi/sg.c | memcpy_tofs(buf,device->buff,count-sizeof(struct sg_header)); |
buff | 251 | drivers/scsi/sg.c | sg_free(device->buff,device->buff_len); |
buff | 252 | drivers/scsi/sg.c | device->buff = NULL; |
buff | 389 | drivers/scsi/sg.c | if ((bsize<0) || !(device->buff=sg_malloc(device->buff_len=bsize))) |
buff | 408 | drivers/scsi/sg.c | sg_free(device->buff,device->buff_len); |
buff | 409 | drivers/scsi/sg.c | device->buff = NULL; |
buff | 432 | drivers/scsi/sg.c | if (input_size > 0) memcpy_fromfs(device->buff, buf, input_size); |
buff | 449 | drivers/scsi/sg.c | (void *) device->buff,amt, |
buff | 576 | drivers/scsi/sg.c | scsi_generics[i].buff=NULL; |
buff | 178 | drivers/sound/audio.c | translate_bytes (const unsigned char *table, unsigned char *buff, int n) |
buff | 186 | drivers/sound/audio.c | buff[i] = table[buff[i]]; |
buff | 191 | drivers/sound/audio.c | translate_bytes (const void *table, void *buff, int n) |
buff | 200 | drivers/sound/audio.c | : "b" ((long) table), "c" (n), "D" ((long) buff), "S" ((long) buff) |
buff | 51 | fs/ncpfs/sock.c | static int _sendto(struct socket *sock, const void *buff, |
buff | 59 | fs/ncpfs/sock.c | iov.iov_base = (void *)buff; |
buff | 47 | fs/smbfs/sock.c | static int _send(struct socket *sock, const void *buff, int len, int nonblock, unsigned flags) { |
buff | 51 | fs/smbfs/sock.c | iov.iov_base = (void *)buff; |
buff | 33 | include/asm-alpha/checksum.h | extern unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum); |
buff | 56 | include/asm-alpha/checksum.h | extern unsigned short ip_compute_csum(unsigned char * buff, int len); |
buff | 28 | include/asm-alpha/ipsum.h | extern inline unsigned short ip_compute_csum(unsigned char * buff, int len) |
buff | 39 | include/asm-alpha/ipsum.h | static inline unsigned short ip_fast_csum(unsigned char * buff, int wlen) |
buff | 16 | include/asm-i386/checksum.h | unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum); |
buff | 123 | include/asm-i386/checksum.h | static inline unsigned short ip_compute_csum(unsigned char * buff, int len) { |
buff | 135 | include/asm-i386/checksum.h | : "0" (csum_partial(buff, len, 0))); |
buff | 25 | include/asm-mips/checksum.h | unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum); |
buff | 161 | include/asm-mips/checksum.h | static inline unsigned short ip_compute_csum(unsigned char * buff, int len) { |
buff | 173 | include/asm-mips/checksum.h | : "r" (csum_partial(buff, len, 0)) |
buff | 33 | include/asm-ppc/checksum.h | extern unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum); |
buff | 56 | include/asm-ppc/checksum.h | extern unsigned short ip_compute_csum(unsigned char * buff, int len); |
buff | 25 | include/asm-sparc/checksum.h | do_csum(unsigned char * buff, int len) |
buff | 32 | include/asm-sparc/checksum.h | odd = 1 & (unsigned long) buff; |
buff | 34 | include/asm-sparc/checksum.h | result = *buff << 8; |
buff | 36 | include/asm-sparc/checksum.h | buff++; |
buff | 40 | include/asm-sparc/checksum.h | if (2 & (unsigned long) buff) { |
buff | 41 | include/asm-sparc/checksum.h | result += *(unsigned short *) buff; |
buff | 44 | include/asm-sparc/checksum.h | buff += 2; |
buff | 50 | include/asm-sparc/checksum.h | unsigned long w = *(unsigned long *) buff; |
buff | 52 | include/asm-sparc/checksum.h | buff += 4; |
buff | 62 | include/asm-sparc/checksum.h | result += *(unsigned short *) buff; |
buff | 63 | include/asm-sparc/checksum.h | buff += 2; |
buff | 67 | include/asm-sparc/checksum.h | result += (*buff) << 8; |
buff | 92 | include/asm-sparc/checksum.h | extern inline unsigned int csum_partial(unsigned char * buff, int len, unsigned int sum) |
buff | 94 | include/asm-sparc/checksum.h | unsigned long result = do_csum(buff, len); |
buff | 128 | include/asm-sparc/checksum.h | extern inline unsigned short ip_compute_csum(unsigned char * buff, int len) |
buff | 130 | include/asm-sparc/checksum.h | return ~from32to16(do_csum(buff,len)); |
buff | 34 | include/linux/etherdevice.h | extern int eth_rebuild_header(void *buff, struct device *dev, |
buff | 34 | include/linux/trdevice.h | extern int tr_rebuild_header(void *buff, struct device *dev, |
buff | 35 | include/net/protocol.h | void (*err_handler)(int type, int code, unsigned char *buff, |
buff | 29 | include/net/raw.h | extern int raw_read(struct sock *sk, unsigned char *buff, |
buff | 351 | include/net/sock.h | int (*rcv)(struct sk_buff *buff, struct device *dev, |
buff | 41 | include/net/udp.h | extern int udp_read(struct sock *sk, unsigned char *buff, |
buff | 71 | net/802/tr.c | int tr_rebuild_header(void *buff, struct device *dev, unsigned long dest, |
buff | 74 | net/802/tr.c | struct trh_hdr *trh=(struct trh_hdr *)buff; |
buff | 75 | net/802/tr.c | struct trllc *trllc=(struct trllc *)(buff+sizeof(struct trh_hdr)); |
buff | 2517 | net/ax25/af_ax25.c | unsigned char *buff = skb_push(skb, AX25_HEADER_LEN); |
buff | 2519 | net/ax25/af_ax25.c | *buff++ = 0; /* KISS DATA */ |
buff | 2522 | net/ax25/af_ax25.c | memcpy(buff, daddr, dev->addr_len); /* Address specified */ |
buff | 2524 | net/ax25/af_ax25.c | buff[6] &= ~LAPB_C; |
buff | 2525 | net/ax25/af_ax25.c | buff[6] &= ~LAPB_E; |
buff | 2526 | net/ax25/af_ax25.c | buff[6] |= SSSID_SPARE; |
buff | 2527 | net/ax25/af_ax25.c | buff += AX25_ADDR_LEN; |
buff | 2530 | net/ax25/af_ax25.c | memcpy(buff, saddr, dev->addr_len); |
buff | 2532 | net/ax25/af_ax25.c | memcpy(buff, dev->dev_addr, dev->addr_len); |
buff | 2534 | net/ax25/af_ax25.c | buff[6] &= ~LAPB_C; |
buff | 2535 | net/ax25/af_ax25.c | buff[6] |= LAPB_E; |
buff | 2536 | net/ax25/af_ax25.c | buff[6] |= SSSID_SPARE; |
buff | 2537 | net/ax25/af_ax25.c | buff += AX25_ADDR_LEN; |
buff | 2539 | net/ax25/af_ax25.c | *buff++ = LAPB_UI; /* UI */ |
buff | 2544 | net/ax25/af_ax25.c | *buff++ = AX25_P_IP; |
buff | 2548 | net/ax25/af_ax25.c | *buff++ = AX25_P_ARP; |
buff | 2552 | net/ax25/af_ax25.c | *buff++ = 0; |
buff | 140 | net/ethernet/eth.c | int eth_rebuild_header(void *buff, struct device *dev, unsigned long dst, |
buff | 143 | net/ethernet/eth.c | struct ethhdr *eth = (struct ethhdr *)buff; |
buff | 1218 | net/ipv4/tcp.c | struct sk_buff *buff; |
buff | 1241 | net/ipv4/tcp.c | buff = sock_wmalloc(sk,MAX_ACK_SIZE,1, GFP_ATOMIC); |
buff | 1242 | net/ipv4/tcp.c | if (buff == NULL) |
buff | 1249 | net/ipv4/tcp.c | buff->sk = sk; |
buff | 1250 | net/ipv4/tcp.c | buff->localroute = sk->localroute; |
buff | 1251 | net/ipv4/tcp.c | buff->csum = 0; |
buff | 1257 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
buff | 1261 | net/ipv4/tcp.c | buff->free = 1; |
buff | 1262 | net/ipv4/tcp.c | sock_wfree(sk, buff); |
buff | 1266 | net/ipv4/tcp.c | t1 =(struct tcphdr *)skb_put(buff,sizeof(struct tcphdr)); |
buff | 1278 | net/ipv4/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), buff); |
buff | 1279 | net/ipv4/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
buff | 1908 | net/ipv4/tcp.c | struct sk_buff *buff; |
buff | 1955 | net/ipv4/tcp.c | buff = sock_wmalloc(sk,MAX_SYN_SIZE,0, GFP_KERNEL); |
buff | 1956 | net/ipv4/tcp.c | if (buff == NULL) |
buff | 1961 | net/ipv4/tcp.c | buff->sk = sk; |
buff | 1962 | net/ipv4/tcp.c | buff->free = 0; |
buff | 1963 | net/ipv4/tcp.c | buff->localroute = sk->localroute; |
buff | 1970 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
buff | 1974 | net/ipv4/tcp.c | sock_wfree(sk, buff); |
buff | 1982 | net/ipv4/tcp.c | t1 = (struct tcphdr *) skb_put(buff,sizeof(struct tcphdr)); |
buff | 1985 | net/ipv4/tcp.c | buff->seq = sk->write_seq++; |
buff | 1986 | net/ipv4/tcp.c | t1->seq = htonl(buff->seq); |
buff | 1988 | net/ipv4/tcp.c | buff->end_seq = sk->write_seq; |
buff | 2035 | net/ipv4/tcp.c | ptr = skb_put(buff,4); |
buff | 2040 | net/ipv4/tcp.c | buff->csum = csum_partial(ptr, 4, 0); |
buff | 2042 | net/ipv4/tcp.c | sizeof(struct tcphdr) + 4, buff); |
buff | 2060 | net/ipv4/tcp.c | sk->prot->queue_xmit(sk, dev, buff, 0); |
buff | 496 | net/ipv4/tcp_output.c | struct sk_buff *buff; |
buff | 513 | net/ipv4/tcp_output.c | buff = sock_wmalloc(NULL, MAX_RESET_SIZE, 1, GFP_ATOMIC); |
buff | 514 | net/ipv4/tcp_output.c | if (buff == NULL) |
buff | 517 | net/ipv4/tcp_output.c | buff->sk = NULL; |
buff | 518 | net/ipv4/tcp_output.c | buff->dev = dev; |
buff | 519 | net/ipv4/tcp_output.c | buff->localroute = 0; |
buff | 520 | net/ipv4/tcp_output.c | buff->csum = 0; |
buff | 526 | net/ipv4/tcp_output.c | tmp = prot->build_header(buff, saddr, daddr, &ndev, IPPROTO_TCP, opt, |
buff | 530 | net/ipv4/tcp_output.c | buff->free = 1; |
buff | 531 | net/ipv4/tcp_output.c | sock_wfree(NULL, buff); |
buff | 535 | net/ipv4/tcp_output.c | t1 =(struct tcphdr *)skb_put(buff,sizeof(struct tcphdr)); |
buff | 560 | net/ipv4/tcp_output.c | tcp_send_check(t1, saddr, daddr, sizeof(*t1), buff); |
buff | 561 | net/ipv4/tcp_output.c | prot->queue_xmit(NULL, ndev, buff, 1); |
buff | 574 | net/ipv4/tcp_output.c | struct sk_buff *buff; |
buff | 578 | net/ipv4/tcp_output.c | buff = sock_wmalloc(sk, MAX_RESET_SIZE,1 , GFP_KERNEL); |
buff | 580 | net/ipv4/tcp_output.c | if (buff == NULL) |
buff | 591 | net/ipv4/tcp_output.c | buff->sk = sk; |
buff | 592 | net/ipv4/tcp_output.c | buff->localroute = sk->localroute; |
buff | 593 | net/ipv4/tcp_output.c | buff->csum = 0; |
buff | 599 | net/ipv4/tcp_output.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
buff | 610 | net/ipv4/tcp_output.c | buff->free = 1; |
buff | 611 | net/ipv4/tcp_output.c | sock_wfree(sk,buff); |
buff | 626 | net/ipv4/tcp_output.c | t1 =(struct tcphdr *)skb_put(buff,sizeof(struct tcphdr)); |
buff | 627 | net/ipv4/tcp_output.c | buff->dev = dev; |
buff | 629 | net/ipv4/tcp_output.c | buff->seq = sk->write_seq; |
buff | 631 | net/ipv4/tcp_output.c | buff->end_seq = sk->write_seq; |
buff | 632 | net/ipv4/tcp_output.c | t1->seq = htonl(buff->seq); |
buff | 636 | net/ipv4/tcp_output.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), buff); |
buff | 645 | net/ipv4/tcp_output.c | buff->free = 0; |
buff | 646 | net/ipv4/tcp_output.c | if (buff->next != NULL) |
buff | 649 | net/ipv4/tcp_output.c | skb_unlink(buff); |
buff | 651 | net/ipv4/tcp_output.c | skb_queue_tail(&sk->write_queue, buff); |
buff | 656 | net/ipv4/tcp_output.c | sk->prot->queue_xmit(sk, dev, buff, 0); |
buff | 666 | net/ipv4/tcp_output.c | struct sk_buff * buff; |
buff | 670 | net/ipv4/tcp_output.c | buff = sock_wmalloc(newsk, MAX_SYN_SIZE, 1, GFP_ATOMIC); |
buff | 671 | net/ipv4/tcp_output.c | if (buff == NULL) |
buff | 680 | net/ipv4/tcp_output.c | buff->sk = newsk; |
buff | 681 | net/ipv4/tcp_output.c | buff->localroute = newsk->localroute; |
buff | 687 | net/ipv4/tcp_output.c | tmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &ndev, |
buff | 697 | net/ipv4/tcp_output.c | buff->free = 1; |
buff | 698 | net/ipv4/tcp_output.c | kfree_skb(buff,FREE_WRITE); |
buff | 706 | net/ipv4/tcp_output.c | t1 =(struct tcphdr *)skb_put(buff,sizeof(struct tcphdr)); |
buff | 709 | net/ipv4/tcp_output.c | buff->seq = newsk->write_seq++; |
buff | 710 | net/ipv4/tcp_output.c | buff->end_seq = newsk->write_seq; |
buff | 716 | net/ipv4/tcp_output.c | t1->seq = ntohl(buff->seq); |
buff | 726 | net/ipv4/tcp_output.c | ptr = skb_put(buff,4); |
buff | 731 | net/ipv4/tcp_output.c | buff->csum = csum_partial(ptr, 4, 0); |
buff | 732 | net/ipv4/tcp_output.c | tcp_send_check(t1, newsk->saddr, newsk->daddr, sizeof(*t1)+4, buff); |
buff | 733 | net/ipv4/tcp_output.c | newsk->prot->queue_xmit(newsk, ndev, buff, 0); |
buff | 757 | net/ipv4/tcp_output.c | struct sk_buff *buff; |
buff | 770 | net/ipv4/tcp_output.c | buff = sock_wmalloc(sk, MAX_ACK_SIZE, 1, GFP_ATOMIC); |
buff | 771 | net/ipv4/tcp_output.c | if (buff == NULL) |
buff | 792 | net/ipv4/tcp_output.c | buff->sk = sk; |
buff | 793 | net/ipv4/tcp_output.c | buff->localroute = sk->localroute; |
buff | 794 | net/ipv4/tcp_output.c | buff->csum = 0; |
buff | 800 | net/ipv4/tcp_output.c | tmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev, |
buff | 804 | net/ipv4/tcp_output.c | buff->free = 1; |
buff | 805 | net/ipv4/tcp_output.c | sock_wfree(sk, buff); |
buff | 808 | net/ipv4/tcp_output.c | t1 =(struct tcphdr *)skb_put(buff,sizeof(struct tcphdr)); |
buff | 846 | net/ipv4/tcp_output.c | tcp_send_check(t1, sk->saddr, daddr, sizeof(*t1), buff); |
buff | 849 | net/ipv4/tcp_output.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
buff | 860 | net/ipv4/tcp_output.c | struct sk_buff *buff,*skb; |
buff | 917 | net/ipv4/tcp_output.c | buff = sock_wmalloc(sk, win_size + th->doff * 4 + |
buff | 921 | net/ipv4/tcp_output.c | if ( buff == NULL ) |
buff | 929 | net/ipv4/tcp_output.c | buff->free = /*0*/1; |
buff | 931 | net/ipv4/tcp_output.c | buff->sk = sk; |
buff | 932 | net/ipv4/tcp_output.c | buff->localroute = sk->localroute; |
buff | 938 | net/ipv4/tcp_output.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
buff | 939 | net/ipv4/tcp_output.c | IPPROTO_TCP, sk->opt, buff->truesize, |
buff | 943 | net/ipv4/tcp_output.c | sock_wfree(sk, buff); |
buff | 951 | net/ipv4/tcp_output.c | buff->dev = dev; |
buff | 953 | net/ipv4/tcp_output.c | nth = (struct tcphdr *) skb_put(buff,sizeof(*th)); |
buff | 970 | net/ipv4/tcp_output.c | buff->csum = csum_partial_copy((void *)(th + 1), skb_put(buff,win_size), |
buff | 977 | net/ipv4/tcp_output.c | buff->end_seq = sk->sent_seq + win_size; |
buff | 978 | net/ipv4/tcp_output.c | sk->sent_seq = buff->end_seq; /* Hack */ |
buff | 987 | net/ipv4/tcp_output.c | nth->doff * 4 + win_size , buff); |
buff | 991 | net/ipv4/tcp_output.c | buff = sock_wmalloc(sk,MAX_ACK_SIZE,1, GFP_ATOMIC); |
buff | 992 | net/ipv4/tcp_output.c | if (buff == NULL) |
buff | 995 | net/ipv4/tcp_output.c | buff->free = 1; |
buff | 996 | net/ipv4/tcp_output.c | buff->sk = sk; |
buff | 997 | net/ipv4/tcp_output.c | buff->localroute = sk->localroute; |
buff | 998 | net/ipv4/tcp_output.c | buff->csum = 0; |
buff | 1004 | net/ipv4/tcp_output.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
buff | 1008 | net/ipv4/tcp_output.c | sock_wfree(sk, buff); |
buff | 1012 | net/ipv4/tcp_output.c | t1 = (struct tcphdr *)skb_put(buff,sizeof(struct tcphdr)); |
buff | 1024 | net/ipv4/tcp_output.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), buff); |
buff | 1032 | net/ipv4/tcp_output.c | sk->prot->queue_xmit(sk, dev, buff, 1); |
buff | 51 | net/ipv4/utils.c | static char buff[18]; |
buff | 55 | net/ipv4/utils.c | sprintf(buff, "%d.%d.%d.%d", |
buff | 57 | net/ipv4/utils.c | return(buff); |
buff | 78 | net/netrom/nr_dev.c | unsigned char *buff = skb_push(skb, NR_NETWORK_LEN + NR_TRANSPORT_LEN); |
buff | 80 | net/netrom/nr_dev.c | memcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len); |
buff | 81 | net/netrom/nr_dev.c | buff[6] &= ~LAPB_C; |
buff | 82 | net/netrom/nr_dev.c | buff[6] &= ~LAPB_E; |
buff | 83 | net/netrom/nr_dev.c | buff[6] |= SSSID_SPARE; |
buff | 84 | net/netrom/nr_dev.c | buff += AX25_ADDR_LEN; |
buff | 87 | net/netrom/nr_dev.c | memcpy(buff, daddr, dev->addr_len); |
buff | 88 | net/netrom/nr_dev.c | buff[6] &= ~LAPB_C; |
buff | 89 | net/netrom/nr_dev.c | buff[6] |= LAPB_E; |
buff | 90 | net/netrom/nr_dev.c | buff[6] |= SSSID_SPARE; |
buff | 91 | net/netrom/nr_dev.c | buff += AX25_ADDR_LEN; |
buff | 93 | net/netrom/nr_dev.c | *buff++ = nr_default.ttl; |
buff | 95 | net/netrom/nr_dev.c | *buff++ = NR_PROTO_IP; |
buff | 96 | net/netrom/nr_dev.c | *buff++ = NR_PROTO_IP; |
buff | 97 | net/netrom/nr_dev.c | *buff++ = 0; |
buff | 98 | net/netrom/nr_dev.c | *buff++ = 0; |
buff | 99 | net/netrom/nr_dev.c | *buff++ = NR_PROTOEXT; |
buff | 107 | net/netrom/nr_dev.c | static int nr_rebuild_header(void *buff, struct device *dev, |
buff | 111 | net/netrom/nr_dev.c | unsigned char *bp = (unsigned char *)buff; |
buff | 894 | net/socket.c | asmlinkage int sys_send(int fd, void * buff, int len, unsigned flags) |
buff | 909 | net/socket.c | err=verify_area(VERIFY_READ, buff, len); |
buff | 913 | net/socket.c | iov.iov_base=buff; |
buff | 928 | net/socket.c | asmlinkage int sys_sendto(int fd, void * buff, int len, unsigned flags, |
buff | 945 | net/socket.c | err=verify_area(VERIFY_READ,buff,len); |
buff | 952 | net/socket.c | iov.iov_base=buff; |