Lines Matching refs:startpos
1049 loff_t startpos; in tmpfs_read() local
1072 startpos = filep->f_pos; in tmpfs_read()
1074 endpos = startpos + buflen; in tmpfs_read()
1079 nread = endpos - startpos; in tmpfs_read()
1084 if (LOS_CopyFromKernel(buffer, buflen, &tfo->tfo_data[startpos], nread) != 0) in tmpfs_read()
1109 loff_t startpos; in tmpfs_readpage() local
1132 startpos = off; in tmpfs_readpage()
1134 endpos = startpos + PAGE_SIZE; in tmpfs_readpage()
1139 nread = endpos - startpos; in tmpfs_readpage()
1144 if (LOS_CopyFromKernel(buffer, PAGE_SIZE, &tfo->tfo_data[startpos], nread) != 0) in tmpfs_readpage()
1250 loff_t startpos; in tmpfs_write() local
1275 startpos = filep->f_pos; in tmpfs_write()
1277 endpos = startpos + buflen; in tmpfs_write()
1279 if (startpos < 0) in tmpfs_write()
1290 data = (char *)malloc(startpos + alloc); in tmpfs_write()
1298 ret = memcpy_s(data, startpos + alloc, tfo->tfo_data, tfo->tfo_size); in tmpfs_write()
1307 if (startpos > tfo->tfo_size) in tmpfs_write()
1309 …(void)memset_s(data + tfo->tfo_size, startpos + alloc - tfo->tfo_size, 0, startpos - tfo->tfo_size… in tmpfs_write()
1313 tfo->tfo_size = startpos + alloc; in tmpfs_write()
1317 if (LOS_CopyToKernel(&tfo->tfo_data[startpos], nwritten, buffer, nwritten) != 0) in tmpfs_write()