Home
last modified time | relevance | path

Searched refs:buff (Results 1 – 25 of 190) sorted by relevance

12345678

/linux-2.6.39/arch/x86/lib/
Dcsum-partial_64.c34 static unsigned do_csum(const unsigned char *buff, unsigned len) in do_csum() argument
41 odd = 1 & (unsigned long) buff; in do_csum()
43 result = *buff << 8; in do_csum()
45 buff++; in do_csum()
49 if (2 & (unsigned long) buff) { in do_csum()
50 result += *(unsigned short *)buff; in do_csum()
53 buff += 2; in do_csum()
59 if (4 & (unsigned long) buff) { in do_csum()
60 result += *(unsigned int *) buff; in do_csum()
63 buff += 4; in do_csum()
[all …]
/linux-2.6.39/net/batman-adv/
Dbat_sysfs.c46 char *buff, size_t count) \
50 return __store_bool_attr(buff, count, _post_func, attr, \
56 char *buff) \
59 return sprintf(buff, "%s\n", \
73 char *buff, size_t count) \
77 return __store_uint_attr(buff, count, _min, _max, _post_func, \
83 char *buff) \
86 return sprintf(buff, "%i\n", atomic_read(&bat_priv->_name)); \
97 static int store_bool_attr(char *buff, size_t count, in store_bool_attr() argument
103 if (buff[count - 1] == '\n') in store_bool_attr()
[all …]
Dgateway_common.c78 static bool parse_gw_bandwidth(struct net_device *net_dev, char *buff, in parse_gw_bandwidth() argument
84 slash_ptr = strchr(buff, '/'); in parse_gw_bandwidth()
88 if (strlen(buff) > 4) { in parse_gw_bandwidth()
89 tmp_ptr = buff + strlen(buff) - 4; in parse_gw_bandwidth()
99 ret = strict_strtoul(buff, 10, down); in parse_gw_bandwidth()
103 buff); in parse_gw_bandwidth()
138 ssize_t gw_bandwidth_set(struct net_device *net_dev, char *buff, size_t count) in gw_bandwidth_set() argument
144 ret = parse_gw_bandwidth(net_dev, buff, &up, &down); in gw_bandwidth_set()
/linux-2.6.39/arch/frv/kernel/
Dsysctl.c54 char buff[8]; in procctl_frv_cachemode() local
61 if (len <= 1 || len > sizeof(buff) - 1) in procctl_frv_cachemode()
64 if (copy_from_user(buff, buffer, len) != 0) in procctl_frv_cachemode()
67 if (buff[len - 1] == '\n') in procctl_frv_cachemode()
68 buff[len - 1] = '\0'; in procctl_frv_cachemode()
70 buff[len] = '\0'; in procctl_frv_cachemode()
72 if (strcmp(buff, frv_cache_wback) == 0) { in procctl_frv_cachemode()
78 if (strcmp(buff, frv_cache_wthru) == 0) { in procctl_frv_cachemode()
96 memcpy(buff, frv_cache_wthru, sizeof(frv_cache_wthru) - 1); in procctl_frv_cachemode()
97 buff[sizeof(frv_cache_wthru) - 1] = '\n'; in procctl_frv_cachemode()
[all …]
/linux-2.6.39/arch/cris/arch-v10/lib/
Dold_checksum.c52 const u16 *buff = p; in csum_partial() local
60 if((int)buff & 0x3) in csum_partial()
61 printk("unaligned buff %p\n", buff); in csum_partial()
65 while (buff < marker) { in csum_partial()
66 sum += *buff++; in csum_partial()
67 sum += *buff++; in csum_partial()
68 sum += *buff++; in csum_partial()
69 sum += *buff++; in csum_partial()
70 sum += *buff++; in csum_partial()
71 sum += *buff++; in csum_partial()
[all …]
/linux-2.6.39/arch/tile/lib/
Dchecksum.c32 __wsum do_csum(const unsigned char *buff, int len) in do_csum() argument
39 odd = 1 & (unsigned long) buff; in do_csum()
41 result = (*buff << 8); in do_csum()
43 buff++; in do_csum()
47 if (2 & (unsigned long) buff) { in do_csum()
48 result += *(const unsigned short *)buff; in do_csum()
51 buff += 2; in do_csum()
56 if (4 & (unsigned long) buff) { in do_csum()
57 unsigned int w = *(const unsigned int *)buff; in do_csum()
61 buff += 4; in do_csum()
[all …]
/linux-2.6.39/arch/parisc/lib/
Dchecksum.c41 static inline unsigned int do_csum(const unsigned char * buff, int len) in do_csum() argument
48 odd = 1 & (unsigned long) buff; in do_csum()
50 result = be16_to_cpu(*buff); in do_csum()
52 buff++; in do_csum()
56 if (2 & (unsigned long) buff) { in do_csum()
57 result += *(unsigned short *) buff; in do_csum()
60 buff += 2; in do_csum()
66 r1 = *(unsigned int *)(buff + 0); in do_csum()
67 r2 = *(unsigned int *)(buff + 4); in do_csum()
68 r3 = *(unsigned int *)(buff + 8); in do_csum()
[all …]
/linux-2.6.39/arch/alpha/lib/
Dchecksum.c81 static inline unsigned long do_csum(const unsigned char * buff, int len) in do_csum() argument
88 odd = 1 & (unsigned long) buff; in do_csum()
90 result = *buff << 8; in do_csum()
92 buff++; in do_csum()
96 if (2 & (unsigned long) buff) { in do_csum()
97 result += *(unsigned short *) buff; in do_csum()
100 buff += 2; in do_csum()
104 if (4 & (unsigned long) buff) { in do_csum()
105 result += *(unsigned int *) buff; in do_csum()
108 buff += 4; in do_csum()
[all …]
/linux-2.6.39/arch/ia64/lib/
Dcsum_partial_copy.c34 unsigned long do_csum_c(const unsigned char * buff, int len, unsigned int psum) in do_csum_c() argument
41 odd = 1 & (unsigned long) buff; in do_csum_c()
43 result = *buff << 8; in do_csum_c()
45 buff++; in do_csum_c()
49 if (2 & (unsigned long) buff) { in do_csum_c()
50 result += *(unsigned short *) buff; in do_csum_c()
53 buff += 2; in do_csum_c()
57 if (4 & (unsigned long) buff) { in do_csum_c()
58 result += *(unsigned int *) buff; in do_csum_c()
61 buff += 4; in do_csum_c()
[all …]
/linux-2.6.39/drivers/gpu/drm/nouveau/
Dnvreg.h469 #define NV_PVIDEO_UVPLANE_BASE(buff) (0x00008800+(buff)*4) argument
470 #define NV_PVIDEO_UVPLANE_LIMIT(buff) (0x00008808+(buff)*4) argument
471 #define NV_PVIDEO_UVPLANE_OFFSET_BUFF(buff) (0x00008820+(buff)*4) argument
472 #define NV_PVIDEO_BASE(buff) (0x00008900+(buff)*4) argument
473 #define NV_PVIDEO_LIMIT(buff) (0x00008908+(buff)*4) argument
474 #define NV_PVIDEO_LUMINANCE(buff) (0x00008910+(buff)*4) argument
475 #define NV_PVIDEO_CHROMINANCE(buff) (0x00008918+(buff)*4) argument
476 #define NV_PVIDEO_OFFSET_BUFF(buff) (0x00008920+(buff)*4) argument
477 #define NV_PVIDEO_SIZE_IN(buff) (0x00008928+(buff)*4) argument
478 #define NV_PVIDEO_POINT_IN(buff) (0x00008930+(buff)*4) argument
[all …]
/linux-2.6.39/arch/h8300/lib/
Dchecksum.c46 static unsigned long do_csum(const unsigned char * buff, int len) in do_csum() argument
53 odd = 1 & (unsigned long) buff; in do_csum()
55 result = *buff; in do_csum()
57 buff++; in do_csum()
61 if (2 & (unsigned long) buff) { in do_csum()
62 result += *(unsigned short *) buff; in do_csum()
65 buff += 2; in do_csum()
71 unsigned long w = *(unsigned long *) buff; in do_csum()
73 buff += 4; in do_csum()
82 result += *(unsigned short *) buff; in do_csum()
[all …]
/linux-2.6.39/arch/frv/lib/
Dchecksum.c46 static unsigned long do_csum(const unsigned char * buff, int len) in do_csum() argument
53 odd = 1 & (unsigned long) buff; in do_csum()
55 result = *buff; in do_csum()
57 buff++; in do_csum()
61 if (2 & (unsigned long) buff) { in do_csum()
62 result += *(unsigned short *) buff; in do_csum()
65 buff += 2; in do_csum()
71 unsigned long w = *(unsigned long *) buff; in do_csum()
73 buff += 4; in do_csum()
82 result += *(unsigned short *) buff; in do_csum()
[all …]
/linux-2.6.39/lib/
Dchecksum.c50 static unsigned int do_csum(const unsigned char *buff, int len) in do_csum() argument
57 odd = 1 & (unsigned long) buff; in do_csum()
60 result += (*buff << 8); in do_csum()
62 result = *buff; in do_csum()
65 buff++; in do_csum()
69 if (2 & (unsigned long) buff) { in do_csum()
70 result += *(unsigned short *) buff; in do_csum()
73 buff += 2; in do_csum()
79 unsigned int w = *(unsigned int *) buff; in do_csum()
81 buff += 4; in do_csum()
[all …]
/linux-2.6.39/arch/m68k/lib/
Dchecksum_no.c46 static unsigned long do_csum(const unsigned char * buff, int len) in do_csum() argument
53 odd = 1 & (unsigned long) buff; in do_csum()
55 result = *buff; in do_csum()
57 buff++; in do_csum()
61 if (2 & (unsigned long) buff) { in do_csum()
62 result += *(unsigned short *) buff; in do_csum()
65 buff += 2; in do_csum()
71 unsigned long w = *(unsigned long *) buff; in do_csum()
73 buff += 4; in do_csum()
82 result += *(unsigned short *) buff; in do_csum()
[all …]
/linux-2.6.39/net/ax25/
Dax25_ip.c54 unsigned char *buff; in ax25_hard_header() local
61 buff = skb_push(skb, AX25_HEADER_LEN); in ax25_hard_header()
62 *buff++ = 0x00; /* KISS DATA */ in ax25_hard_header()
65 memcpy(buff, daddr, dev->addr_len); /* Address specified */ in ax25_hard_header()
67 buff[6] &= ~AX25_CBIT; in ax25_hard_header()
68 buff[6] &= ~AX25_EBIT; in ax25_hard_header()
69 buff[6] |= AX25_SSSID_SPARE; in ax25_hard_header()
70 buff += AX25_ADDR_LEN; in ax25_hard_header()
73 memcpy(buff, saddr, dev->addr_len); in ax25_hard_header()
75 memcpy(buff, dev->dev_addr, dev->addr_len); in ax25_hard_header()
[all …]
/linux-2.6.39/drivers/hid/
Dhid-picolcd.c1856 char *buff; in picolcd_debug_out_report() local
1863 buff = kmalloc(BUFF_SZ, GFP_ATOMIC); in picolcd_debug_out_report()
1864 if (!buff) in picolcd_debug_out_report()
1867 snprintf(buff, BUFF_SZ, "\nout report %d (size %d) = ", in picolcd_debug_out_report()
1869 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
1871 kfree(buff); in picolcd_debug_out_report()
1877 dump_buff_as_hex(buff, BUFF_SZ, raw_data, raw_size); in picolcd_debug_out_report()
1878 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
1884 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report()
1886 hid_debug_event(hdev, buff); in picolcd_debug_out_report()
[all …]
/linux-2.6.39/net/netrom/
Dnr_dev.c103 unsigned char *buff = skb_push(skb, NR_NETWORK_LEN + NR_TRANSPORT_LEN); in nr_header() local
105 memcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len); in nr_header()
106 buff[6] &= ~AX25_CBIT; in nr_header()
107 buff[6] &= ~AX25_EBIT; in nr_header()
108 buff[6] |= AX25_SSSID_SPARE; in nr_header()
109 buff += AX25_ADDR_LEN; in nr_header()
112 memcpy(buff, daddr, dev->addr_len); in nr_header()
113 buff[6] &= ~AX25_CBIT; in nr_header()
114 buff[6] |= AX25_EBIT; in nr_header()
115 buff[6] |= AX25_SSSID_SPARE; in nr_header()
[all …]
/linux-2.6.39/arch/arm/mach-s3c64xx/
Ddma.c266 static void s3c64xx_dma_freebuff(struct s3c64xx_dma_buff *buff) in s3c64xx_dma_freebuff() argument
268 dma_pool_free(dma_pool, buff->lli, buff->lli_dma); in s3c64xx_dma_freebuff()
269 kfree(buff); in s3c64xx_dma_freebuff()
274 struct s3c64xx_dma_buff *buff, *next; in s3c64xx_dma_flush() local
287 for (buff = chan->curr; buff != NULL; buff = next) { in s3c64xx_dma_flush()
288 next = buff->next; in s3c64xx_dma_flush()
289 pr_debug("%s: buff %p (next %p)\n", __func__, buff, buff->next); in s3c64xx_dma_flush()
291 s3c64xx_dma_bufffdone(chan, buff, S3C2410_RES_ABORT); in s3c64xx_dma_flush()
292 s3c64xx_dma_freebuff(buff); in s3c64xx_dma_flush()
339 struct s3c64xx_dma_buff *buff; in s3c2410_dma_enqueue() local
[all …]
/linux-2.6.39/drivers/staging/bcm/
DInterfaceDld.c14 char *buff=kmalloc(MAX_TRANSFER_CTRL_BYTE_USB, GFP_KERNEL); in InterfaceFileDownload() local
16 if(!buff) in InterfaceFileDownload()
23 len=vfs_read(flp, (void __force __user *)buff, MAX_TRANSFER_CTRL_BYTE_USB, &pos); in InterfaceFileDownload()
40 errno = InterfaceWRM(psIntfAdapter, on_chip_loc, buff, len) ; in InterfaceFileDownload()
50 kfree(buff); in InterfaceFileDownload()
58 char *buff, *buff_readback; in InterfaceFileReadbackFromChip() local
67 buff=kmalloc(MAX_TRANSFER_CTRL_BYTE_USB, GFP_DMA); in InterfaceFileReadbackFromChip()
69 if(!buff || !buff_readback) in InterfaceFileReadbackFromChip()
71 kfree(buff); in InterfaceFileReadbackFromChip()
80 memset(buff, 0, MAX_TRANSFER_CTRL_BYTE_USB); in InterfaceFileReadbackFromChip()
[all …]
/linux-2.6.39/drivers/scsi/device_handler/
Dscsi_dh_alua.c63 unsigned char *buff; member
87 if (h->buff && h->buff != h->inq) in realloc_buffer()
88 kfree(h->buff); in realloc_buffer()
90 h->buff = kmalloc(len, GFP_NOIO); in realloc_buffer()
91 if (!h->buff) { in realloc_buffer()
92 h->buff = h->inq; in realloc_buffer()
176 rq = get_alua_req(sdev, h->buff, h->bufflen, READ); in submit_vpd_inquiry()
213 rq = get_alua_req(sdev, h->buff, h->bufflen, READ); in submit_rtpg()
313 memset(h->buff, 0, stpg_len); in submit_stpg()
314 h->buff[4] = TPGS_STATE_OPTIMIZED & 0x0f; in submit_stpg()
[all …]
/linux-2.6.39/drivers/staging/rtl8712/
Dmlme_linux.c147 u8 *buff, *p, i; in r8712_report_sec_ie() local
150 buff = NULL; in r8712_report_sec_ie()
152 buff = _malloc(IW_CUSTOM_MAX); in r8712_report_sec_ie()
153 if (buff == NULL) in r8712_report_sec_ie()
155 memset(buff, 0, IW_CUSTOM_MAX); in r8712_report_sec_ie()
156 p = buff; in r8712_report_sec_ie()
164 wrqu.data.length = p-buff; in r8712_report_sec_ie()
167 wireless_send_event(adapter->pnetdev, IWEVCUSTOM, &wrqu, buff); in r8712_report_sec_ie()
168 kfree(buff); in r8712_report_sec_ie()
/linux-2.6.39/drivers/char/
Di8k.c317 unsigned char buff[16]; in i8k_ioctl_unlocked() local
329 memset(buff, 0, 16); in i8k_ioctl_unlocked()
330 strlcpy(buff, i8k_get_dmi_data(DMI_PRODUCT_SERIAL), sizeof(buff)); in i8k_ioctl_unlocked()
386 if (copy_to_user(argp, buff, 16)) in i8k_ioctl_unlocked()
523 char buff[4]; in i8k_probe() local
559 buff[0] = (version >> 16) & 0xff; in i8k_probe()
560 buff[1] = (version >> 8) & 0xff; in i8k_probe()
561 buff[2] = (version) & 0xff; in i8k_probe()
562 buff[3] = '\0'; in i8k_probe()
567 strlcpy(bios_version, buff, sizeof(bios_version)); in i8k_probe()
[all …]
/linux-2.6.39/fs/squashfs/
Dlzo_wrapper.c40 static void *lzo_init(struct squashfs_sb_info *msblk, void *buff, int len) in lzo_init() argument
82 void *buff = stream->input; in lzo_uncompress() local
94 memcpy(buff, bh[i]->b_data + offset, avail); in lzo_uncompress()
95 buff += avail; in lzo_uncompress()
107 for (i = 0, buff = stream->output; bytes && i < pages; i++) { in lzo_uncompress()
109 memcpy(buffer[i], buff, avail); in lzo_uncompress()
110 buff += avail; in lzo_uncompress()
/linux-2.6.39/drivers/spi/
Dtle62x0.c42 unsigned char *buff = st->tx_buff; in tle62x0_write() local
45 buff[0] = CMD_SET; in tle62x0_write()
48 buff[1] = gpio_state >> 8; in tle62x0_write()
49 buff[2] = gpio_state; in tle62x0_write()
51 buff[1] = gpio_state; in tle62x0_write()
55 buff[0], buff[1], buff[2]); in tle62x0_write()
57 return spi_write(st->us, buff, (st->nr_gpio == 16) ? 3 : 2); in tle62x0_write()
104 unsigned char *buff = st->rx_buff; in tle62x0_status_show() local
119 fault |= ((unsigned long)buff[ptr]); in tle62x0_status_show()
121 dev_dbg(dev, "byte %d is %02x\n", ptr, buff[ptr]); in tle62x0_status_show()
/linux-2.6.39/net/rose/
Drose_dev.c43 unsigned char *buff = skb_push(skb, ROSE_MIN_LEN + 2); in rose_header() local
45 *buff++ = ROSE_GFI | ROSE_Q_BIT; in rose_header()
46 *buff++ = 0x00; in rose_header()
47 *buff++ = ROSE_DATA; in rose_header()
48 *buff++ = 0x7F; in rose_header()
49 *buff++ = AX25_P_IP; in rose_header()

12345678