Home
last modified time | relevance | path

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

/components/drivers/block/
A Dblk_dfs.c60 int bytes_per_sector, blk_pos, first_offs, rsize = 0; in blk_fops_read() local
66 first_offs = *pos % bytes_per_sector; in blk_fops_read()
77 if (count > bytes_per_sector - first_offs) in blk_fops_read()
79 rsize = bytes_per_sector - first_offs; in blk_fops_read()
85 rt_memcpy(buf, rbuf + first_offs, rsize); in blk_fops_read()
125 int bytes_per_sector, blk_pos, first_offs, wsize = 0; in blk_fops_write() local
131 first_offs = *pos % bytes_per_sector; in blk_fops_write()
136 if (first_offs != 0) in blk_fops_write()
138 if (count > bytes_per_sector - first_offs) in blk_fops_write()
140 wsize = bytes_per_sector - first_offs; in blk_fops_write()
[all …]

Completed in 5 milliseconds