/drivers/infiniband/hw/ipath/ |
H A D | ipath_diag.c | 332 u32 *tmpbuf = NULL; local 435 tmpbuf = vmalloc(plen); 436 if (!tmpbuf) { 443 if (copy_from_user(tmpbuf, 476 __iowrite32_copy(piobuf + 2, tmpbuf, clen - 1); 478 __raw_writel(tmpbuf[clen - 1], piobuf + clen + 1); 480 __iowrite32_copy(piobuf + 2, tmpbuf, clen); 487 vfree(tmpbuf);
|
/drivers/isdn/hardware/eicon/ |
H A D | divasproc.c | 62 char tmpbuf[80]; local 68 divas_get_version(tmpbuf); 69 if (copy_to_user(buf + len, &tmpbuf, strlen(tmpbuf))) 71 len += strlen(tmpbuf); 77 sprintf(tmpbuf, 83 if ((strlen(tmpbuf) + len) > count) 86 (buf + len, &tmpbuf, 87 strlen(tmpbuf))) return -EFAULT; 88 len += strlen(tmpbuf); [all...] |
/drivers/media/radio/si470x/ |
H A D | radio-si470x-i2c.c | 272 unsigned char tmpbuf[3]; local 324 put_unaligned_le16(rds, &tmpbuf); 325 tmpbuf[2] = blocknum; /* offset name */ 326 tmpbuf[2] |= blocknum << 3; /* received offset */ 328 tmpbuf[2] |= 0x80; /* uncorrectable errors */ 330 tmpbuf[2] |= 0x40; /* corrected error(s) */ 333 memcpy(&radio->buffer[radio->wr_index], &tmpbuf, 3);
|
H A D | radio-si470x-usb.c | 403 unsigned char tmpbuf[3]; local 463 put_unaligned_le16(rds, &tmpbuf); 464 tmpbuf[2] = blocknum; /* offset name */ 465 tmpbuf[2] |= blocknum << 3; /* received offset */ 467 tmpbuf[2] |= 0x80; /* uncorrectable errors */ 469 tmpbuf[2] |= 0x40; /* corrected error(s) */ 472 memcpy(&radio->buffer[radio->wr_index], &tmpbuf, 3);
|
/drivers/oprofile/ |
H A D | oprofilefs.c | 55 char tmpbuf[TMPBUFSIZE]; local 56 size_t maxlen = snprintf(tmpbuf, TMPBUFSIZE, "%lu\n", val); 59 return simple_read_from_buffer(buf, count, offset, tmpbuf, maxlen); 72 char tmpbuf[TMPBUFSIZE]; local 81 memset(tmpbuf, 0x0, TMPBUFSIZE); 83 if (copy_from_user(tmpbuf, buf, count)) 87 *val = simple_strtoul(tmpbuf, NULL, 0);
|
/drivers/pnp/pnpbios/ |
H A D | proc.c | 93 char *tmpbuf; local 106 tmpbuf = kzalloc(escd.escd_size, GFP_KERNEL); 107 if (!tmpbuf) 110 if (pnp_bios_read_escd(tmpbuf, escd.nv_storage_base)) { 111 kfree(tmpbuf); 116 (unsigned char)(tmpbuf[0]) + (unsigned char)(tmpbuf[1]) * 256; 122 kfree(tmpbuf); 126 seq_write(m, tmpbuf, escd_size); 127 kfree(tmpbuf); [all...] |
/drivers/infiniband/hw/qib/ |
H A D | qib_diag.c | 548 u32 *tmpbuf = NULL; local 599 tmpbuf = vmalloc(plen); 600 if (!tmpbuf) { 607 if (copy_from_user(tmpbuf, 638 qib_pio_copy(piobuf + 2, tmpbuf, clen - 1); 640 __raw_writel(tmpbuf[clen - 1], piobuf + clen + 1); 642 qib_pio_copy(piobuf + 2, tmpbuf, clen); 663 vfree(tmpbuf);
|
/drivers/target/iscsi/ |
H A D | iscsi_target_nego.c | 748 char *tmpbuf, *start = NULL, *end = NULL, *key, *value; local 774 tmpbuf = kzalloc(payload_length + 1, GFP_KERNEL); 775 if (!tmpbuf) { 776 pr_err("Unable to allocate memory for tmpbuf.\n"); 780 memcpy(tmpbuf, login->req_buf, payload_length); 781 tmpbuf[payload_length] = '\0'; 782 start = tmpbuf; 959 kfree(tmpbuf);
|
H A D | iscsi_target_parameters.c | 1495 char tmpbuf[10]; local 1496 memset(tmpbuf, 0, 10); 1497 sprintf(tmpbuf, "%u", MaxBurstLength); 1498 if (iscsi_update_param_value(param, tmpbuf)) 1548 char *tmpbuf, *start = NULL, *end = NULL; local 1550 tmpbuf = kzalloc(length + 1, GFP_KERNEL); 1551 if (!tmpbuf) { 1552 pr_err("Unable to allocate memory for tmpbuf.\n"); 1556 memcpy(tmpbuf, textbuf, length); 1557 tmpbuf[lengt [all...] |
/drivers/bluetooth/ |
H A D | btmrvl_sdio.c | 822 void *tmpbuf = NULL; local 833 tmpbuf = kzalloc(tmpbufsz, GFP_KERNEL); 834 if (!tmpbuf) 836 buf = (u8 *) ALIGN_ADDR(tmpbuf, BTSDIO_DMA_ALIGN); 864 kfree(tmpbuf);
|
/drivers/media/video/gspca/ |
H A D | pac7311.c | 602 unsigned char tmpbuf[4]; local 607 tmpbuf[0] = lines >> 8; 608 tmpbuf[1] = lines & 0xff; 609 tmpbuf[2] = samples_per_line >> 8; 610 tmpbuf[3] = samples_per_line & 0xff; 613 tmpbuf, sizeof(tmpbuf));
|
H A D | t613.c | 575 u8 *tmpbuf; local 577 tmpbuf = kmemdup(buffer, len, GFP_KERNEL); 578 if (!tmpbuf) { 587 tmpbuf, len, 500); 588 kfree(tmpbuf); 598 u8 *p, *tmpbuf; local 601 p = tmpbuf = gspca_dev->usb_buf; 603 p = tmpbuf = kmalloc(len * 2, GFP_KERNEL); 604 if (!tmpbuf) { 619 tmpbuf, le [all...] |
/drivers/media/video/ |
H A D | saa6588.c | 259 unsigned char tmpbuf[6]; local 265 if (6 != i2c_master_recv(client, &tmpbuf[0], 6)) { 271 s->sync = tmpbuf[0] & 0x10; 274 blocknum = tmpbuf[0] >> 5; 299 tmp = tmpbuf[2]; 300 tmpbuf[2] = tmpbuf[0]; 301 tmpbuf[0] = tmp; 314 if ((tmpbuf[2] & 0x03) == 0x03) 316 else if ((tmpbuf[ [all...] |
H A D | c-qcam.c | 384 char tmpbuf[BUFSZ]; local 431 t = qcam_read_bytes(qcam, tmpbuf, s); 437 if (__copy_to_user(buf + outptr, tmpbuf, sz)) 461 l = qcam_read_bytes(qcam, tmpbuf, 3); 463 } while (l && (tmpbuf[0] == 0x7e || tmpbuf[1] == 0x7e || tmpbuf[2] == 0x7e)); 465 if (tmpbuf[0] != 0xe || tmpbuf[1] != 0x0 || tmpbuf[ [all...] |
H A D | zr364xx.c | 507 const char *tmpbuf; local 518 tmpbuf = (const char *)cam->buffer.frame[last_frame].lpvbits; 522 memcpy(vbuf, tmpbuf, buf->vb.size);
|
H A D | s2255drv.c | 634 const char *tmpbuf; local 644 tmpbuf = 649 planar422p_to_yuv_packed((const unsigned char *)tmpbuf, 655 memcpy(vbuf, tmpbuf, buf->vb.width * buf->vb.height); 660 memcpy(vbuf, tmpbuf, buf->vb.size); 663 memcpy(vbuf, tmpbuf,
|
/drivers/isdn/hisax/ |
H A D | callc.c | 1417 static char tmpbuf[256]; variable 1422 char *t = tmpbuf; 1427 HiSax_putstatus(chanp->cs, "Ch", "%d CAPIMSG %s", chanp->chan, tmpbuf);
|
H A D | config.c | 660 static u_char tmpbuf[HISAX_STATUS_BUFSIZE]; variable 678 p = tmpbuf; 685 len = p - tmpbuf; 686 p = tmpbuf; 713 sprintf(tmpbuf, "kstack %s %lx use %ld\n", current->comm, 715 len = strlen(tmpbuf); 716 for (p = tmpbuf, i = len; i > 0; i--, p++) {
|
/drivers/usb/gadget/ |
H A D | atmel_usba_udc.c | 91 char tmpbuf[38]; local 98 len = snprintf(tmpbuf, sizeof(tmpbuf), 108 len = min(len, sizeof(tmpbuf)); 115 remaining = __copy_to_user(buf, tmpbuf, len);
|
H A D | fsl_qe_udc.h | 347 u8 *tmpbuf; member in struct:qe_udc
|
/drivers/media/radio/wl128x/ |
H A D | fmdrv_common.c | 718 u8 *rds_data, meta_data, tmpbuf[3]; local 799 tmpbuf[2] = blk_idx; /* Offset name */ 800 tmpbuf[2] |= blk_idx << 3; /* Received offset */ 803 tmpbuf[0] = rds_data[0]; 804 tmpbuf[1] = rds_data[1]; 806 memcpy(&rds->buff[rds->wr_idx], &tmpbuf, FM_RDS_BLK_SIZE);
|
/drivers/net/ethernet/freescale/ |
H A D | gianfar.c | 3160 char tmpbuf[ETH_ALEN]; local 3169 tmpbuf[ETH_ALEN - 1 - idx] = addr[idx]; 3171 gfar_write(macptr, *((u32 *) (tmpbuf))); 3173 tempval = *((u32 *) (tmpbuf + 4));
|
/drivers/net/wireless/bcmdhd/ |
H A D | dhd_cdc.c | 2233 uint8* tmpbuf; local 2238 tmpbuf = (uint8*)PKTDATA(dhd->osh, pktbuf); 2241 type = tmpbuf[processed]; 2248 len = tmpbuf[processed + 1]; 2249 value = &tmpbuf[processed + 2];
|
/drivers/net/wireless/brcm80211/brcmfmac/ |
H A D | usb.c | 832 char *tmpbuf; local 838 tmpbuf = kmalloc(buflen, GFP_ATOMIC); 839 if (!tmpbuf) 854 (void *) tmpbuf, size, 860 kfree(tmpbuf); 865 memcpy(buffer, tmpbuf, buflen); 866 kfree(tmpbuf);
|
/drivers/net/wireless/hostap/ |
H A D | hostap_ap.c | 1241 char *tmpbuf; local 1250 tmpbuf = kmalloc(WLAN_AUTH_CHALLENGE_LEN, GFP_ATOMIC); 1251 if (tmpbuf == NULL) { 1260 kfree(tmpbuf); 1269 kfree(tmpbuf); 1274 tmpbuf, WLAN_AUTH_CHALLENGE_LEN); 1277 return tmpbuf;
|