Home
last modified time | relevance | path

Searched refs:buf_offset (Results 1 – 5 of 5) sorted by relevance

/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dvf610_nfc.c155 uint buf_offset; member
358 nfc->buf_offset = max(column, 0); in vf610_nfc_command()
365 nfc->buf_offset = 0; in vf610_nfc_command()
424 nfc->buf_offset = 0; in vf610_nfc_command()
449 uint c = nfc->buf_offset; in vf610_nfc_read_buf()
457 nfc->buf_offset += len; in vf610_nfc_read_buf()
465 uint c = nfc->buf_offset; in vf610_nfc_write_buf()
472 nfc->buf_offset += l; in vf610_nfc_write_buf()
480 uint c = nfc->buf_offset; in vf610_nfc_read_byte()
492 c = nfc->buf_offset ^ 0x3; in vf610_nfc_read_byte()
[all …]
H A Dmxs_nand.c378 uint32_t buf_offset = geo->block_mark_byte_offset; in mxs_nand_swap_block_mark() local
389 src = data_buf[buf_offset] >> bit_offset; in mxs_nand_swap_block_mark()
390 src |= data_buf[buf_offset + 1] << (8 - bit_offset); in mxs_nand_swap_block_mark()
396 data_buf[buf_offset] &= ~(0xff << bit_offset); in mxs_nand_swap_block_mark()
397 data_buf[buf_offset + 1] &= 0xff << bit_offset; in mxs_nand_swap_block_mark()
399 data_buf[buf_offset] |= dst << bit_offset; in mxs_nand_swap_block_mark()
400 data_buf[buf_offset + 1] |= dst >> (8 - bit_offset); in mxs_nand_swap_block_mark()
/openbmc/phosphor-mboxd/
H A Dmboxd_flash.c273 uint32_t buf_offset = 0; in write_flash() local
285 rc = write(context->fds[MTD_FD].fd, buf + buf_offset, count); in write_flash()
292 set_flash_bytemap(context, offset + buf_offset, rc, in write_flash()
295 buf_offset += rc; in write_flash()
/openbmc/hiomapd/mtd/
H A Dbackend.c306 uint32_t buf_offset = 0; in mtd_write() local
319 rc = write(priv->fd, buf + buf_offset, count); in mtd_write()
326 mtd_set_bytemap(backend, offset + buf_offset, rc, FLASH_DIRTY); in mtd_write()
328 buf_offset += rc; in mtd_write()
/openbmc/hiomapd/file/
H A Dbackend.c205 uint32_t buf_offset = 0; in file_write() local
218 rc = write(priv->fd, buf + buf_offset, count); in file_write()
225 buf_offset += rc; in file_write()