Searched refs:fd (Results 1 – 8 of 8) sorted by relevance
| /drivers/block/ |
| A D | host_dev.c | 26 int ret, fd; in host_sb_attach_file() local 33 if (plat->fd) in host_sb_attach_file() 41 fd = os_open(filename, OS_O_RDWR); in host_sb_attach_file() 42 if (fd == -1) { in host_sb_attach_file() 46 if (fd == -1) { in host_sb_attach_file() 58 size = os_filesize(fd); in host_sb_attach_file() 70 plat->fd = fd; in host_sb_attach_file() 76 os_close(fd); in host_sb_attach_file() 86 if (!plat->fd) in host_sb_detach_file() 98 os_close(plat->fd); in host_sb_detach_file() [all …]
|
| A D | sandbox.c | 28 if (os_lseek(plat->fd, start * desc->blksz, OS_SEEK_SET) < 0) { in host_block_read() 32 ssize_t len = os_read(plat->fd, buffer, blkcnt * desc->blksz); in host_block_read() 47 if (os_lseek(plat->fd, start * desc->blksz, OS_SEEK_SET) < 0) { in host_block_write() 51 ssize_t len = os_write(plat->fd, buffer, blkcnt * desc->blksz); in host_block_write()
|
| /drivers/scsi/ |
| A D | sandbox_scsi.c | 33 int fd; member 49 } else if (ret == SCSI_EMUL_DO_READ && priv->fd != -1) { in sandbox_scsi_exec() 53 os_lseek(priv->fd, info->seek_block * info->block_size, in sandbox_scsi_exec() 55 bytes_read = os_read(priv->fd, req->pdata, info->buff_used); in sandbox_scsi_exec() 107 priv->fd = os_open(priv->pathname, OS_O_RDONLY); in sandbox_scsi_probe() 108 if (priv->fd != -1) { in sandbox_scsi_probe() 114 priv->fd = -1; in sandbox_scsi_probe() 116 log_debug("filename: %s, fd %d\n", priv->pathname, priv->fd); in sandbox_scsi_probe()
|
| /drivers/usb/emul/ |
| A D | sandbox_flash.c | 52 int fd; member 196 priv->fd != -1) { in handle_ufi_command() 197 offset = os_lseek(priv->fd, info->seek_block * info->block_size, in handle_ufi_command() 246 if (priv->fd != -1) { in sandbox_flash_bulk() 249 bytes_written = os_write(priv->fd, buff, len); in sandbox_flash_bulk() 277 if (priv->fd == -1) in sandbox_flash_bulk() 280 bytes_read = os_read(priv->fd, buff, len); in sandbox_flash_bulk() 344 priv->fd = os_open(plat->pathname, OS_O_RDWR); in sandbox_flash_probe() 345 if (priv->fd != -1) { in sandbox_flash_probe()
|
| /drivers/net/ldpaa_eth/ |
| A D | ldpaa_eth.c | 128 const struct dpaa_fd *fd) in ldpaa_eth_rx() argument 140 fd_addr = ldpaa_fd_get_addr(fd); in ldpaa_eth_rx() 141 fd_offset = ldpaa_fd_get_offset(fd); in ldpaa_eth_rx() 142 fd_length = ldpaa_fd_get_len(fd); in ldpaa_eth_rx() 188 const struct dpaa_fd *fd; in ldpaa_eth_pull_dequeue_rx() local 227 fd = ldpaa_dq_fd(dq); in ldpaa_eth_pull_dequeue_rx() 230 ldpaa_eth_rx(priv, fd); in ldpaa_eth_pull_dequeue_rx() 246 struct dpaa_fd fd; in ldpaa_eth_tx() local 256 memset(&fd, 0, sizeof(fd)); in ldpaa_eth_tx() 281 ldpaa_fd_set_len(&fd, len); in ldpaa_eth_tx() [all …]
|
| /drivers/mtd/spi/ |
| A D | sandbox.c | 95 int fd; member 173 sbsf->fd = os_open(pdata->filename, 02); in sandbox_sf_probe() 174 if (sbsf->fd == -1) { in sandbox_sf_probe() 195 os_close(sbsf->fd); in sandbox_sf_remove() 306 ret = os_write(sbsf->fd, sandbox_sf_0xff, todo); in sandbox_erase_part() 377 if (os_lseek(sbsf->fd, sbsf->off, OS_SEEK_SET) < 0) { in sandbox_sf_xfer() 406 ret = os_read(sbsf->fd, tx + pos, cnt); in sandbox_sf_xfer() 445 ret = os_write(sbsf->fd, rx + pos, cnt); in sandbox_sf_xfer()
|
| /drivers/mtd/nand/raw/ |
| A D | sand_nand.c | 86 int column, page_addr, fd, fd_page_addr; member 132 if (os_lseek(chip->fd, (off_t)chip->page_addr * chip->chunksize, in sand_nand_seek() 174 if (os_read(chip->fd, chip->tmp, chip->chunksize) != in sand_nand_read() 252 if (os_write(chip->fd, chip->tmp, chip->chunksize) != in sand_nand_command() 464 os_close(chip->fd); in sand_nand_remove() 582 chip->fd = os_mktemp(filename, expected_size); in sand_nand_probe() 583 if (chip->fd < 0) { in sand_nand_probe() 586 ret = chip->fd; in sand_nand_probe() 645 os_close(chip->fd); in sand_nand_probe()
|
| /drivers/net/fsl-mc/dpio/ |
| A D | qbman_portal.c | 237 const struct qbman_fd *fd) in qbman_swp_enqueue() argument 248 word_copy(&p[8], fd, sizeof(*fd) >> 2); in qbman_swp_enqueue()
|
Completed in 60 milliseconds