/drivers/hid/ |
D | hid-picolcd_debugfs.c | 399 char *buff; in picolcd_debug_out_report() local 406 buff = kmalloc(BUFF_SZ, GFP_ATOMIC); in picolcd_debug_out_report() 407 if (!buff) in picolcd_debug_out_report() 412 kfree(buff); in picolcd_debug_out_report() 416 snprintf(buff, BUFF_SZ, "\nout report %d (size %d) = ", in picolcd_debug_out_report() 418 hid_debug_event(hdev, buff); in picolcd_debug_out_report() 421 dump_buff_as_hex(buff, BUFF_SZ, raw_data, raw_size); in picolcd_debug_out_report() 422 hid_debug_event(hdev, buff); in picolcd_debug_out_report() 427 snprintf(buff, BUFF_SZ, "out report %s (%d, size=%d)\n", in picolcd_debug_out_report() 429 hid_debug_event(hdev, buff); in picolcd_debug_out_report() [all …]
|
/drivers/rtc/ |
D | rtc-tps80031.c | 69 u8 buff[TPS80031_RTC_TIME_NUM_REGS]; in tps80031_rtc_read_time() local 73 TPS80031_SECONDS_REG, TPS80031_RTC_TIME_NUM_REGS, buff); in tps80031_rtc_read_time() 79 tm->tm_sec = bcd2bin(buff[0]); in tps80031_rtc_read_time() 80 tm->tm_min = bcd2bin(buff[1]); in tps80031_rtc_read_time() 81 tm->tm_hour = bcd2bin(buff[2]); in tps80031_rtc_read_time() 82 tm->tm_mday = bcd2bin(buff[3]); in tps80031_rtc_read_time() 83 tm->tm_mon = bcd2bin(buff[4]) - 1; in tps80031_rtc_read_time() 84 tm->tm_year = bcd2bin(buff[5]) + RTC_YEAR_OFFSET; in tps80031_rtc_read_time() 85 tm->tm_wday = bcd2bin(buff[6]); in tps80031_rtc_read_time() 91 u8 buff[7]; in tps80031_rtc_set_time() local [all …]
|
D | rtc-tps6586x.c | 75 u8 buff[6]; in tps6586x_rtc_read_time() local 79 ret = tps6586x_reads(tps_dev, RTC_COUNT4_DUMMYREAD, sizeof(buff), buff); in tps6586x_rtc_read_time() 85 for (i = 1; i < sizeof(buff); i++) { in tps6586x_rtc_read_time() 87 ticks |= buff[i]; in tps6586x_rtc_read_time() 102 u8 buff[5]; in tps6586x_rtc_set_time() local 113 buff[0] = (ticks >> 32) & 0xff; in tps6586x_rtc_set_time() 114 buff[1] = (ticks >> 24) & 0xff; in tps6586x_rtc_set_time() 115 buff[2] = (ticks >> 16) & 0xff; in tps6586x_rtc_set_time() 116 buff[3] = (ticks >> 8) & 0xff; in tps6586x_rtc_set_time() 117 buff[4] = ticks & 0xff; in tps6586x_rtc_set_time() [all …]
|
/drivers/gpu/drm/nouveau/dispnv04/ |
D | nvreg.h | 471 #define NV_PVIDEO_UVPLANE_BASE(buff) (0x00008800+(buff)*4) argument 472 #define NV_PVIDEO_UVPLANE_LIMIT(buff) (0x00008808+(buff)*4) argument 473 #define NV_PVIDEO_UVPLANE_OFFSET_BUFF(buff) (0x00008820+(buff)*4) argument 474 #define NV_PVIDEO_BASE(buff) (0x00008900+(buff)*4) argument 475 #define NV_PVIDEO_LIMIT(buff) (0x00008908+(buff)*4) argument 476 #define NV_PVIDEO_LUMINANCE(buff) (0x00008910+(buff)*4) argument 477 #define NV_PVIDEO_CHROMINANCE(buff) (0x00008918+(buff)*4) argument 478 #define NV_PVIDEO_OFFSET_BUFF(buff) (0x00008920+(buff)*4) argument 479 #define NV_PVIDEO_SIZE_IN(buff) (0x00008928+(buff)*4) argument 480 #define NV_PVIDEO_POINT_IN(buff) (0x00008930+(buff)*4) argument [all …]
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_ethtool.c | 213 static void fm10k_get_reg_q(struct fm10k_hw *hw, u32 *buff, int i) in fm10k_get_reg_q() argument 217 buff[idx++] = fm10k_read_reg(hw, FM10K_RDBAL(i)); in fm10k_get_reg_q() 218 buff[idx++] = fm10k_read_reg(hw, FM10K_RDBAH(i)); in fm10k_get_reg_q() 219 buff[idx++] = fm10k_read_reg(hw, FM10K_RDLEN(i)); in fm10k_get_reg_q() 220 buff[idx++] = fm10k_read_reg(hw, FM10K_TPH_RXCTRL(i)); in fm10k_get_reg_q() 221 buff[idx++] = fm10k_read_reg(hw, FM10K_RDH(i)); in fm10k_get_reg_q() 222 buff[idx++] = fm10k_read_reg(hw, FM10K_RDT(i)); in fm10k_get_reg_q() 223 buff[idx++] = fm10k_read_reg(hw, FM10K_RXQCTL(i)); in fm10k_get_reg_q() 224 buff[idx++] = fm10k_read_reg(hw, FM10K_RXDCTL(i)); in fm10k_get_reg_q() 225 buff[idx++] = fm10k_read_reg(hw, FM10K_RXINT(i)); in fm10k_get_reg_q() [all …]
|
/drivers/staging/bcm/ |
D | InterfaceDld.c | 11 char *buff = kmalloc(MAX_TRANSFER_CTRL_BYTE_USB, GFP_KERNEL); in InterfaceFileDownload() local 13 if (!buff) in InterfaceFileDownload() 19 len = vfs_read(flp, (void __force __user *)buff, in InterfaceFileDownload() 33 errno = InterfaceWRM(psIntfAdapter, on_chip_loc, buff, len); in InterfaceFileDownload() 39 kfree(buff); in InterfaceFileDownload() 46 char *buff, *buff_readback; in InterfaceFileReadbackFromChip() local 56 buff = kzalloc(MAX_TRANSFER_CTRL_BYTE_USB, GFP_DMA); in InterfaceFileReadbackFromChip() 58 if (!buff || !buff_readback) { in InterfaceFileReadbackFromChip() 59 kfree(buff); in InterfaceFileReadbackFromChip() 70 len = vfs_read(flp, (void __force __user *)buff, in InterfaceFileReadbackFromChip() [all …]
|
D | InterfaceMisc.c | 31 void *buff, in InterfaceRDM() argument 52 buff, in InterfaceRDM() 72 void *buff, in InterfaceWRM() argument 93 buff, in InterfaceWRM() 115 void *buff, in BcmRDM() argument 118 return InterfaceRDM((struct bcm_interface_adapter *)arg, addr, buff, in BcmRDM() 124 void *buff, in BcmWRM() argument 127 return InterfaceWRM((struct bcm_interface_adapter *)arg, addr, buff, in BcmWRM()
|
D | InterfaceMisc.h | 7 PVOID buff, 13 PVOID buff, 28 PVOID buff, 33 PVOID buff,
|
/drivers/scsi/device_handler/ |
D | scsi_dh_alua.c | 72 unsigned char *buff; member 97 if (h->buff && h->buff != h->inq) in realloc_buffer() 98 kfree(h->buff); in realloc_buffer() 100 h->buff = kmalloc(len, GFP_NOIO); in realloc_buffer() 101 if (!h->buff) { in realloc_buffer() 102 h->buff = h->inq; in realloc_buffer() 149 rq = get_alua_req(sdev, h->buff, h->bufflen, READ); in submit_vpd_inquiry() 187 rq = get_alua_req(sdev, h->buff, h->bufflen, READ); in submit_rtpg() 292 memset(h->buff, 0, stpg_len); in submit_stpg() 293 h->buff[4] = TPGS_STATE_OPTIMIZED & 0x0f; in submit_stpg() [all …]
|
/drivers/char/tpm/ |
D | tpm_acpi.c | 50 struct acpi_tcpa *buff; in read_log() local 64 (struct acpi_table_header **)&buff); in read_log() 72 switch(buff->platform_class) { in read_log() 74 len = buff->server.log_max_len; in read_log() 75 start = buff->server.log_start_addr; in read_log() 79 len = buff->client.log_max_len; in read_log() 80 start = buff->client.log_start_addr; in read_log()
|
/drivers/staging/rtl8712/ |
D | mlme_linux.c | 148 u8 *buff, *p, i; in r8712_report_sec_ie() local 151 buff = NULL; in r8712_report_sec_ie() 153 buff = kzalloc(IW_CUSTOM_MAX, GFP_ATOMIC); in r8712_report_sec_ie() 154 if (buff == NULL) 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()
|
/drivers/staging/rtl8188eu/os_dep/ |
D | mlme_linux.c | 103 u8 *buff, *p, i; in rtw_report_sec_ie() local 108 buff = NULL; in rtw_report_sec_ie() 112 buff = rtw_malloc(IW_CUSTOM_MAX); in rtw_report_sec_ie() 113 if (!buff) in rtw_report_sec_ie() 115 memset(buff, 0, IW_CUSTOM_MAX); in rtw_report_sec_ie() 116 p = buff; in rtw_report_sec_ie() 124 wrqu.data.length = p-buff; in rtw_report_sec_ie() 127 wireless_send_event(adapter->pnetdev, IWEVCUSTOM, &wrqu, buff); in rtw_report_sec_ie() 128 kfree(buff); in rtw_report_sec_ie()
|
/drivers/spi/ |
D | spi-tle62x0.c | 43 unsigned char *buff = st->tx_buff; in tle62x0_write() local 46 buff[0] = CMD_SET; in tle62x0_write() 49 buff[1] = gpio_state >> 8; in tle62x0_write() 50 buff[2] = gpio_state; in tle62x0_write() 52 buff[1] = gpio_state; in tle62x0_write() 55 dev_dbg(&st->us->dev, "buff %3ph\n", buff); 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()
|
/drivers/scsi/osd/ |
D | osd_initiator.c | 434 if (!seg->buff || !seg->alloc_size) in _osd_free_seg() 437 kfree(seg->buff); in _osd_free_seg() 438 seg->buff = NULL; in _osd_free_seg() 539 void *buff; in _osd_realloc_seg() local 544 buff = krealloc(seg->buff, max_bytes, or->alloc_flags); in _osd_realloc_seg() 545 if (!buff) { in _osd_realloc_seg() 551 memset(buff + seg->alloc_size, 0, max_bytes - seg->alloc_size); in _osd_realloc_seg() 552 seg->buff = buff; in _osd_realloc_seg() 837 const struct osd_obj_id *obj, u64 offset, void* buff, u64 len) in osd_req_write_kern() argument 840 struct bio *bio = bio_map_kern(req_q, buff, len, GFP_KERNEL); in osd_req_write_kern() [all …]
|
/drivers/scsi/ |
D | constants.c | 1477 char buff[80]; in scsi_decode_sense_extras() local 1485 memset(buff, 0, sizeof(buff)); in scsi_decode_sense_extras() 1486 blen = sizeof(buff) - 1; in scsi_decode_sense_extras() 1488 res += snprintf(buff + res, blen - res, in scsi_decode_sense_extras() 1493 res += snprintf(buff + res, blen - res, ", "); in scsi_decode_sense_extras() 1494 res += snprintf(buff + res, blen - res, "FMK"); in scsi_decode_sense_extras() 1499 res += snprintf(buff + res, blen - res, ", "); in scsi_decode_sense_extras() 1500 res += snprintf(buff + res, blen - res, "EOM"); in scsi_decode_sense_extras() 1505 res += snprintf(buff + res, blen - res, ", "); in scsi_decode_sense_extras() 1506 res += snprintf(buff + res, blen - res, "ILI"); in scsi_decode_sense_extras() [all …]
|
D | eata_pio.c | 515 static char buff[256]; in get_pio_board_data() local 519 memset(buff, 0, sizeof(buff)); in get_pio_board_data() 556 insw(base + HA_RDATA, &buff, 127); in get_pio_board_data() 559 return buff; in get_pio_board_data() 659 char *buff; in register_pio_HBA() local 673 …if ((buff = get_pio_board_data(base, gc->IRQ, gc->scsi_id[3], cplen = (cpu_to_be32(gc->cplen) + 1)… in register_pio_HBA() 711 strlcpy(SD(sh)->vendor, &buff[8], sizeof(SD(sh)->vendor)); in register_pio_HBA() 712 strlcpy(SD(sh)->name, &buff[16], sizeof(SD(sh)->name)); in register_pio_HBA() 713 SD(sh)->revision[0] = buff[32]; in register_pio_HBA() 714 SD(sh)->revision[1] = buff[33]; in register_pio_HBA() [all …]
|
/drivers/isdn/i4l/ |
D | isdn_audio.c | 197 isdn_audio_tlookup(const u_char *table, u_char *buff, unsigned long n) in isdn_audio_tlookup() argument 208 : "0"((long) table), "1"(n), "2"((long) buff), "3"((long) buff) in isdn_audio_tlookup() 212 *buff = table[*(unsigned char *)buff], buff++; in isdn_audio_tlookup() 217 isdn_audio_ulaw2alaw(unsigned char *buff, unsigned long len) in isdn_audio_ulaw2alaw() argument 219 isdn_audio_tlookup(isdn_audio_ulaw_to_alaw, buff, len); in isdn_audio_ulaw2alaw() 223 isdn_audio_alaw2ulaw(unsigned char *buff, unsigned long len) in isdn_audio_alaw2ulaw() argument 225 isdn_audio_tlookup(isdn_audio_alaw_to_ulaw, buff, len); in isdn_audio_alaw2ulaw()
|
/drivers/net/wan/ |
D | hd64570.c | 249 u32 buff; in sca_rx() local 260 buff = buffer_offset(port, rxin, 0); in sca_rx() 261 page = buff / winsize(card); in sca_rx() 262 buff = buff % winsize(card); in sca_rx() 263 maxlen = winsize(card) - buff; in sca_rx() 268 memcpy_fromio(skb->data, winbase(card) + buff, maxlen); in sca_rx() 272 memcpy_fromio(skb->data, winbase(card) + buff, len); in sca_rx() 625 u32 buff, len; in sca_xmit() local 640 buff = buffer_offset(port, port->txin, 1); in sca_xmit() 642 page = buff / winsize(card); in sca_xmit() [all …]
|
/drivers/misc/genwqe/ |
D | genwqe_driver.h | 63 u32 genwqe_crc32(u8 *buff, size_t len, u32 init); 66 const void *buff, unsigned int size) in genwqe_hexdump() argument 73 print_hex_dump_debug(prefix, DUMP_PREFIX_OFFSET, 16, 1, buff, in genwqe_hexdump()
|
/drivers/char/ |
D | bfin-otp.c | 39 static ssize_t bfin_otp_read(struct file *file, char __user *buff, size_t count, loff_t *pos) in bfin_otp_read() argument 65 if (copy_to_user(buff + bytes_done, &content, sizeof(content))) { in bfin_otp_read() 120 static ssize_t bfin_otp_write(struct file *filp, const char __user *buff, size_t count, loff_t *pos) in bfin_otp_write() argument 150 (flags & OTP_UPPER_HALF ? "upper" : "lower"), buff + bytes_done); in bfin_otp_write() 151 if (copy_from_user(&content, buff + bytes_done, sizeof(content))) { in bfin_otp_write()
|
/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c.h | 473 #define ATL1C_SET_BUFFER_STATE(buff, state) do { \ argument 474 ((buff)->flags) &= ~ATL1C_BUFFER_STATE_MASK; \ 475 ((buff)->flags) |= (state); \ 478 #define ATL1C_SET_PCIMAP_TYPE(buff, type, direction) do { \ argument 479 ((buff)->flags) &= ~ATL1C_PCIMAP_TYPE_MASK; \ 480 ((buff)->flags) |= (type); \ 481 ((buff)->flags) &= ~ATL1C_PCIMAP_DIRECTION_MASK; \ 482 ((buff)->flags) |= (direction); \
|
/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() 797 struct obj_buffer *buff = r->ptr; in mgt_response_to_str() local 799 "size=%u\naddr=0x%X\n", buff->size, in mgt_response_to_str() 800 buff->addr); in mgt_response_to_str() 887 unsigned char *buff = r->ptr; in mgt_response_to_str() local [all …]
|
/drivers/staging/ft1000/ft1000-pcmcia/ |
D | ft1000_hw.c | 1767 u16 buff[sizeof(struct pseudo_hdr) >> 1]; in ft1000_copy_down_pkt() member 1817 pseudo.blk.checksum = pseudo.buff[0]; in ft1000_copy_down_pkt() 1819 pseudo.blk.checksum ^= pseudo.buff[i]; in ft1000_copy_down_pkt() 1825 ft1000_write_reg(dev, FT1000_REG_UFIFO_BEG, pseudo.buff[0]); in ft1000_copy_down_pkt() 1827 pseudo.buff[0]); in ft1000_copy_down_pkt() 1830 ft1000_write_reg(dev, FT1000_REG_UFIFO_MID, pseudo.buff[1]); in ft1000_copy_down_pkt() 1832 pseudo.buff[1]); in ft1000_copy_down_pkt() 1833 ft1000_write_reg(dev, FT1000_REG_UFIFO_MID, pseudo.buff[2]); in ft1000_copy_down_pkt() 1835 pseudo.buff[2]); in ft1000_copy_down_pkt() 1836 ft1000_write_reg(dev, FT1000_REG_UFIFO_MID, pseudo.buff[3]); in ft1000_copy_down_pkt() [all …]
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_debugfs.c | 1629 u8 *buff; in i40e_dbg_command_write() local 1656 buff = kzalloc(buffer_len, GFP_KERNEL); in i40e_dbg_command_write() 1657 if (!buff) { in i40e_dbg_command_write() 1663 ret = i40e_asq_send_command(&pf->hw, desc, buff, in i40e_dbg_command_write() 1686 buff, buffer_len, true); in i40e_dbg_command_write() 1687 kfree(buff); in i40e_dbg_command_write() 1688 buff = NULL; in i40e_dbg_command_write() 1829 u8 *buff; in i40e_dbg_command_write() local 1830 buff = kzalloc(I40E_LLDPDU_SIZE, GFP_KERNEL); in i40e_dbg_command_write() 1831 if (!buff) in i40e_dbg_command_write() [all …]
|
/drivers/s390/char/ |
D | vmcp.c | 60 vmcp_read(struct file *file, char __user *buff, size_t count, loff_t *ppos) in vmcp_read() argument 74 ret = simple_read_from_buffer(buff, count, ppos, in vmcp_read() 83 vmcp_write(struct file *file, const char __user *buff, size_t count, in vmcp_write() argument 94 if (copy_from_user(cmd, buff, count)) { in vmcp_write()
|