Home
last modified time | relevance | path

Searched refs:local_buf (Results 1 – 3 of 3) sorted by relevance

/drivers/s390/block/
Ddcssblk.c567 char *local_buf; in dcssblk_add_store() local
581 local_buf = kmalloc(count + 1, GFP_KERNEL); in dcssblk_add_store()
582 if (local_buf == NULL) { in dcssblk_add_store()
596 local_buf[j-i] = toupper(buf[j]); in dcssblk_add_store()
598 local_buf[j-i] = '\0'; in dcssblk_add_store()
604 rc = dcssblk_load_segment(local_buf, &seg_info); in dcssblk_add_store()
617 strcpy(dev_info->segment_name, local_buf); in dcssblk_add_store()
634 strlcpy(local_buf, buf, i + 1); in dcssblk_add_store()
663 "sectors\n", local_buf, seg_byte_size, seg_byte_size >> 9); in dcssblk_add_store()
673 if (dcssblk_get_segment_by_name(local_buf)) { in dcssblk_add_store()
[all …]
/drivers/usb/gadget/udc/
Dmax3420_udc.c278 u8 local_buf[MAX3420_EP_MAX_PACKET + 1] = {}; in spi_rd_buf() local
284 local_buf[0] = MAX3420_SPI_CMD_RD(reg); in spi_rd_buf()
285 transfer.tx_buf = &local_buf[0]; in spi_rd_buf()
286 transfer.rx_buf = &local_buf[0]; in spi_rd_buf()
292 memcpy(buf, &local_buf[1], len); in spi_rd_buf()
300 u8 local_buf[MAX3420_EP_MAX_PACKET + 1] = {}; in spi_wr_buf() local
306 local_buf[0] = MAX3420_SPI_CMD_WR(reg); in spi_wr_buf()
307 memcpy(&local_buf[1], buf, len); in spi_wr_buf()
309 transfer.tx_buf = local_buf; in spi_wr_buf()
/drivers/spi/
Dspi.c4009 u8 *local_buf; in spi_write_then_read() local
4017 local_buf = kmalloc(max((unsigned)SPI_BUFSIZ, n_tx + n_rx), in spi_write_then_read()
4019 if (!local_buf) in spi_write_then_read()
4022 local_buf = buf; in spi_write_then_read()
4036 memcpy(local_buf, txbuf, n_tx); in spi_write_then_read()
4037 x[0].tx_buf = local_buf; in spi_write_then_read()
4038 x[1].rx_buf = local_buf + n_tx; in spi_write_then_read()
4048 kfree(local_buf); in spi_write_then_read()