/drivers/scsi/device_handler/ |
D | scsi_dh_alua.c | 59 unsigned char *buff; member 77 if (h->buff && h->buff != h->inq) in realloc_buffer() 78 kfree(h->buff); in realloc_buffer() 80 h->buff = kmalloc(len, GFP_NOIO); in realloc_buffer() 81 if (!h->buff) { in realloc_buffer() 82 h->buff = h->inq; in realloc_buffer() 166 rq = get_alua_req(sdev, h->buff, h->bufflen, READ); in submit_vpd_inquiry() 203 rq = get_alua_req(sdev, h->buff, h->bufflen, READ); in submit_rtpg() 248 memset(h->buff, 0, stpg_len); in submit_stpg() 249 h->buff[4] = TPGS_STATE_OPTIMIZED & 0x0f; in submit_stpg() [all …]
|
/drivers/char/ |
D | i8k.c | 315 unsigned char buff[16]; in i8k_ioctl() local 327 memset(buff, 0, 16); in i8k_ioctl() 328 strlcpy(buff, i8k_get_dmi_data(DMI_PRODUCT_SERIAL), sizeof(buff)); in i8k_ioctl() 384 if (copy_to_user(argp, buff, 16)) in i8k_ioctl() 510 char buff[4]; in i8k_probe() local 546 buff[0] = (version >> 16) & 0xff; in i8k_probe() 547 buff[1] = (version >> 8) & 0xff; in i8k_probe() 548 buff[2] = (version) & 0xff; in i8k_probe() 549 buff[3] = '\0'; in i8k_probe() 554 strlcpy(bios_version, buff, sizeof(bios_version)); in i8k_probe() [all …]
|
D | bfin-otp.c | 71 static ssize_t bfin_otp_read(struct file *file, char __user *buff, size_t count, loff_t *pos) in bfin_otp_read() argument 95 if (copy_to_user(buff + bytes_done, &content, sizeof(content))) { in bfin_otp_read() 116 static ssize_t bfin_otp_write(struct file *filp, const char __user *buff, size_t count, loff_t *pos) in bfin_otp_write() argument
|
/drivers/spi/ |
D | tle62x0.c | 41 unsigned char *buff = st->tx_buff; in tle62x0_write() local 44 buff[0] = CMD_SET; in tle62x0_write() 47 buff[1] = gpio_state >> 8; in tle62x0_write() 48 buff[2] = gpio_state; in tle62x0_write() 50 buff[1] = gpio_state; in tle62x0_write() 54 buff[0], buff[1], buff[2]); in tle62x0_write() 56 return spi_write(st->us, buff, (st->nr_gpio == 16) ? 3 : 2); in tle62x0_write() 103 unsigned char *buff = st->rx_buff; in tle62x0_status_show() local 118 fault |= ((unsigned long)buff[ptr]); in tle62x0_status_show() 120 dev_dbg(dev, "byte %d is %02x\n", ptr, buff[ptr]); in tle62x0_status_show()
|
/drivers/scsi/ |
D | constants.c | 1279 char buff[80]; in scsi_decode_sense_extras() local 1287 memset(buff, 0, sizeof(buff)); in scsi_decode_sense_extras() 1288 blen = sizeof(buff) - 1; in scsi_decode_sense_extras() 1290 res += snprintf(buff + res, blen - res, in scsi_decode_sense_extras() 1295 res += snprintf(buff + res, blen - res, ", "); in scsi_decode_sense_extras() 1296 res += snprintf(buff + res, blen - res, "FMK"); in scsi_decode_sense_extras() 1301 res += snprintf(buff + res, blen - res, ", "); in scsi_decode_sense_extras() 1302 res += snprintf(buff + res, blen - res, "EOM"); in scsi_decode_sense_extras() 1307 res += snprintf(buff + res, blen - res, ", "); in scsi_decode_sense_extras() 1308 res += snprintf(buff + res, blen - res, "ILI"); in scsi_decode_sense_extras() [all …]
|
D | eata_pio.c | 553 static char buff[256]; in get_pio_board_data() local 557 memset(buff, 0, sizeof(buff)); in get_pio_board_data() 594 insw(base + HA_RDATA, &buff, 127); in get_pio_board_data() 597 return buff; in get_pio_board_data() 697 char *buff; in register_pio_HBA() local 711 …if ((buff = get_pio_board_data(base, gc->IRQ, gc->scsi_id[3], cplen = (cpu_to_be32(gc->cplen) + 1)… in register_pio_HBA() 749 strlcpy(SD(sh)->vendor, &buff[8], sizeof(SD(sh)->vendor)); in register_pio_HBA() 750 strlcpy(SD(sh)->name, &buff[16], sizeof(SD(sh)->name)); in register_pio_HBA() 751 SD(sh)->revision[0] = buff[32]; in register_pio_HBA() 752 SD(sh)->revision[1] = buff[33]; in register_pio_HBA() [all …]
|
D | 3w-xxxx.c | 1671 char buff[8]; in tw_scsiop_read_capacity_complete() local 1676 memset(buff, 0, sizeof(buff)); in tw_scsiop_read_capacity_complete() 1693 buff[0] = (capacity >> 24); in tw_scsiop_read_capacity_complete() 1694 buff[1] = (capacity >> 16) & 0xff; in tw_scsiop_read_capacity_complete() 1695 buff[2] = (capacity >> 8) & 0xff; in tw_scsiop_read_capacity_complete() 1696 buff[3] = capacity & 0xff; in tw_scsiop_read_capacity_complete() 1699 buff[4] = (TW_BLOCK_SIZE >> 24); in tw_scsiop_read_capacity_complete() 1700 buff[5] = (TW_BLOCK_SIZE >> 16) & 0xff; in tw_scsiop_read_capacity_complete() 1701 buff[6] = (TW_BLOCK_SIZE >> 8) & 0xff; in tw_scsiop_read_capacity_complete() 1702 buff[7] = TW_BLOCK_SIZE & 0xff; in tw_scsiop_read_capacity_complete() [all …]
|
/drivers/isdn/i4l/ |
D | isdn_audio.c | 196 isdn_audio_tlookup(const u_char *table, u_char *buff, unsigned long n) in isdn_audio_tlookup() argument 207 : "0"((long) table), "1"(n), "2"((long) buff), "3"((long) buff) in isdn_audio_tlookup() 211 *buff = table[*(unsigned char *)buff], buff++; in isdn_audio_tlookup() 216 isdn_audio_ulaw2alaw(unsigned char *buff, unsigned long len) in isdn_audio_ulaw2alaw() argument 218 isdn_audio_tlookup(isdn_audio_ulaw_to_alaw, buff, len); in isdn_audio_ulaw2alaw() 222 isdn_audio_alaw2ulaw(unsigned char *buff, unsigned long len) in isdn_audio_alaw2ulaw() argument 224 isdn_audio_tlookup(isdn_audio_alaw_to_ulaw, buff, len); in isdn_audio_alaw2ulaw()
|
/drivers/net/wan/ |
D | hd64570.c | 252 u32 buff; in sca_rx() local 263 buff = buffer_offset(port, rxin, 0); in sca_rx() 264 page = buff / winsize(card); in sca_rx() 265 buff = buff % winsize(card); in sca_rx() 266 maxlen = winsize(card) - buff; in sca_rx() 271 memcpy_fromio(skb->data, winbase(card) + buff, maxlen); in sca_rx() 275 memcpy_fromio(skb->data, winbase(card) + buff, len); in sca_rx() 627 u32 buff, len; in sca_xmit() local 642 buff = buffer_offset(port, port->txin, 1); in sca_xmit() 644 page = buff / winsize(card); in sca_xmit() [all …]
|
D | ixp4xx_hss.c | 963 buffer_t *buff; in init_hdlc_queues() local 966 if (!(buff = netdev_alloc_skb(port->netdev, RX_SIZE))) in init_hdlc_queues() 968 data = buff->data; in init_hdlc_queues() 970 if (!(buff = kmalloc(RX_SIZE, GFP_KERNEL))) in init_hdlc_queues() 972 data = buff; in init_hdlc_queues() 978 free_buffer(buff); in init_hdlc_queues() 981 port->rx_buff_tab[i] = buff; in init_hdlc_queues() 994 buffer_t *buff = port->rx_buff_tab[i]; in destroy_hdlc_queues() local 995 if (buff) { in destroy_hdlc_queues() 999 free_buffer(buff); in destroy_hdlc_queues() [all …]
|
D | hd64572.c | 211 u32 buff; in sca_rx() local 220 buff = buffer_offset(port, rxin, 0); in sca_rx() 221 memcpy_fromio(skb->data, card->rambase + buff, len); in sca_rx() 569 u32 buff, len; in sca_xmit() local 582 buff = buffer_offset(port, port->txin, 1); in sca_xmit() 584 memcpy_toio(card->rambase + buff, skb->data, len); in sca_xmit()
|
/drivers/staging/usbip/ |
D | usbip_common.c | 65 static void usbip_dump_buffer(char *buff, int bufflen) in usbip_dump_buffer() argument 73 printk("%02x ", (unsigned char) buff[i]); in usbip_dump_buffer() 86 printk("%02x ", (unsigned char) buff[i]); in usbip_dump_buffer() 868 void *buff; in usbip_alloc_iso_desc_pdu() local 874 buff = kzalloc(size, GFP_KERNEL); in usbip_alloc_iso_desc_pdu() 875 if (!buff) in usbip_alloc_iso_desc_pdu() 879 iso = buff + (i * sizeof(*iso)); in usbip_alloc_iso_desc_pdu() 887 return buff; in usbip_alloc_iso_desc_pdu() 894 void *buff; in usbip_recv_iso() local 911 buff = kzalloc(size, GFP_KERNEL); in usbip_recv_iso() [all …]
|
/drivers/net/wireless/prism54/ |
D | oid_mgt.c | 285 struct obj_buffer *buff = data; in mgt_le_to_cpu() local 286 buff->size = le32_to_cpu(buff->size); in mgt_le_to_cpu() 287 buff->addr = le32_to_cpu(buff->addr); in mgt_le_to_cpu() 354 struct obj_buffer *buff = data; in mgt_cpu_to_le() local 355 buff->size = cpu_to_le32(buff->size); in mgt_cpu_to_le() 356 buff->addr = cpu_to_le32(buff->addr); in mgt_cpu_to_le() 800 struct obj_buffer *buff = r->ptr; in mgt_response_to_str() local 802 "size=%u\naddr=0x%X\n", buff->size, in mgt_response_to_str() 803 buff->addr); in mgt_response_to_str() 890 unsigned char *buff = r->ptr; in mgt_response_to_str() local [all …]
|
/drivers/char/tpm/ |
D | tpm_bios.c | 362 struct acpi_tcpa *buff; in read_log() local 376 (struct acpi_table_header **)&buff); in read_log() 384 switch(buff->platform_class) { in read_log() 386 len = buff->server.log_max_len; in read_log() 387 start = buff->server.log_start_addr; in read_log() 391 len = buff->client.log_max_len; in read_log() 392 start = buff->client.log_start_addr; in read_log()
|
/drivers/serial/ |
D | samsung.h | 100 char buff[256]; in dbg() local 103 vsprintf(buff, fmt, va); in dbg() 106 printascii(buff); in dbg()
|
/drivers/s390/char/ |
D | vmcp.c | 64 vmcp_read(struct file *file, char __user *buff, size_t count, loff_t *ppos) in vmcp_read() argument 78 ret = simple_read_from_buffer(buff, count, ppos, in vmcp_read() 87 vmcp_write(struct file *file, const char __user *buff, size_t count, in vmcp_write() argument 98 if (copy_from_user(cmd, buff, count)) { in vmcp_write()
|
/drivers/misc/ibmasm/ |
D | ibmasmfs.c | 554 char *buff; in remote_settings_file_write() local 564 buff = kzalloc (count + 1, GFP_KERNEL); in remote_settings_file_write() 565 if (!buff) in remote_settings_file_write() 569 if (copy_from_user(buff, ubuff, count)) { in remote_settings_file_write() 570 kfree(buff); in remote_settings_file_write() 574 value = simple_strtoul(buff, NULL, 10); in remote_settings_file_write() 576 kfree(buff); in remote_settings_file_write()
|
/drivers/usb/host/ |
D | fhci-tds.c | 131 u8 *buff = cq_get(ep->dummy_packets_Q); in fhci_ep0_free() local 133 kfree(buff); in fhci_ep0_free() 188 u8 *buff; in fhci_create_ep() local 196 buff = kmalloc(1028 * sizeof(*buff), GFP_KERNEL); in fhci_create_ep() 197 if (!buff) { in fhci_create_ep() 203 cq_put(ep->dummy_packets_Q, buff); in fhci_create_ep()
|
/drivers/block/ |
D | cciss.c | 181 static int sendcmd(__u8 cmd, int ctlr, void *buff, size_t size, 184 static int sendcmd_withirq(__u8 cmd, int ctlr, void *buff, size_t size, 943 char *buff = NULL; in cciss_ioctl() local 967 buff = kmalloc(iocommand.buf_size, GFP_KERNEL); in cciss_ioctl() 968 if (buff == NULL) in cciss_ioctl() 974 (buff, iocommand.buf, iocommand.buf_size)) { in cciss_ioctl() 975 kfree(buff); in cciss_ioctl() 979 memset(buff, 0, iocommand.buf_size); in cciss_ioctl() 982 kfree(buff); in cciss_ioctl() 1006 temp64.val = pci_map_single(host->pdev, buff, in cciss_ioctl() [all …]
|
/drivers/net/arm/ |
D | ixp4xx_eth.c | 879 buffer_t *buff; /* skb or kmalloc()ated memory */ in init_queues() local 882 if (!(buff = netdev_alloc_skb(port->netdev, RX_BUFF_SIZE))) in init_queues() 884 data = buff->data; in init_queues() 886 if (!(buff = kmalloc(RX_BUFF_SIZE, GFP_KERNEL))) in init_queues() 888 data = buff; in init_queues() 894 free_buffer(buff); in init_queues() 898 port->rx_buff_tab[i] = buff; in init_queues() 911 buffer_t *buff = port->rx_buff_tab[i]; in destroy_queues() local 912 if (buff) { in destroy_queues() 916 free_buffer(buff); in destroy_queues() [all …]
|
/drivers/input/misc/ |
D | keychord.c | 61 __u16 buff[BUFFER_SIZE]; member 116 kdev->buff[kdev->head] = keychord->id; in keychord_event() 212 id = kdev->buff[kdev->tail]; in keychord_read()
|
D | uinput.c | 46 udev->buff[udev->head].type = type; in uinput_dev_event() 47 udev->buff[udev->head].code = code; in uinput_dev_event() 48 udev->buff[udev->head].value = value; in uinput_dev_event() 49 do_gettimeofday(&udev->buff[udev->head].time); in uinput_dev_event() 424 if (input_event_to_user(buffer + retval, &udev->buff[udev->tail])) { in uinput_read()
|
/drivers/video/via/ |
D | via_i2c.c | 117 int viafb_i2c_readbytes(u8 slave_addr, u8 index, u8 *buff, int buff_len) in viafb_i2c_readbytes() argument 127 msgs[0].buf = mm1; msgs[1].buf = buff; in viafb_i2c_readbytes()
|
/drivers/media/dvb/dvb-usb/ |
D | m920x.c | 336 u8 read[4], *buff; in m920x_firmware_download() local 339 buff = kmalloc(65536, GFP_KERNEL); in m920x_firmware_download() 362 memcpy(buff, fw->data + i, size); in m920x_firmware_download() 367 value, index, buff, size, 20); in m920x_firmware_download() 391 kfree(buff); in m920x_firmware_download()
|
/drivers/media/video/sn9c102/ |
D | sn9c102_core.c | 150 void* buff = NULL; in sn9c102_request_buffers() local 161 if ((buff = vmalloc_32_user(cam->nbuffers * in sn9c102_request_buffers() 168 cam->frame[i].bufmem = buff + i*PAGE_ALIGN(imagesize); in sn9c102_request_buffers() 244 u8* buff = cam->control_buffer; in sn9c102_write_regs() local 257 *buff = valreg[i][0]; in sn9c102_write_regs() 260 0x41, index, 0, buff, 1, in sn9c102_write_regs() 265 "index 0x%02X, error %d)", *buff, index, res); in sn9c102_write_regs() 269 cam->reg[index] = *buff; in sn9c102_write_regs() 279 u8* buff = cam->control_buffer; in sn9c102_write_reg() local 285 *buff = value; in sn9c102_write_reg() [all …]
|