Searched refs:fpos (Results 1 - 22 of 22) sorted by relevance

/linux-master/fs/proc/
H A Dkcore.c314 loff_t *fpos = &iocb->ki_pos; local
338 if (buflen && *fpos < sizeof(struct elfhdr)) {
360 tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos);
361 if (copy_to_iter((char *)&ehdr + *fpos, tsz, iter) != tsz) {
367 *fpos += tsz;
371 if (buflen && *fpos < phdrs_offset + phdrs_len) {
401 tsz = min_t(size_t, buflen, phdrs_offset + phdrs_len - *fpos);
402 if (copy_to_iter((char *)phdrs + *fpos - phdrs_offset, tsz,
411 *fpos += tsz;
415 if (buflen && *fpos < notes_offse
[all...]
H A Dvmcore.c317 static ssize_t __read_vmcore(struct iov_iter *iter, loff_t *fpos) argument
324 if (!iov_iter_count(iter) || *fpos >= vmcore_size)
327 iov_iter_truncate(iter, vmcore_size - *fpos);
330 if (*fpos < elfcorebuf_sz) {
331 tsz = min(elfcorebuf_sz - (size_t)*fpos, iov_iter_count(iter));
332 if (copy_to_iter(elfcorebuf + *fpos, tsz, iter) < tsz)
334 *fpos += tsz;
343 if (*fpos < elfcorebuf_sz + elfnotes_sz) {
357 if (*fpos < elfcorebuf_sz + vmcoredd_orig_sz) {
359 (size_t)*fpos, iov_iter_coun
[all...]
/linux-master/arch/mips/alchemy/common/
H A Ddma.c100 int au1000_dma_read_proc(char *buf, char **start, off_t fpos, argument
113 if (fpos >= len) {
118 *start = buf + fpos;
119 len -= fpos;
/linux-master/fs/adfs/
H A Ddir_f.c233 adfs_f_setpos(struct adfs_dir *dir, unsigned int fpos) argument
235 if (fpos >= ADFS_NUM_DIR_ENTRIES)
238 dir->pos = 5 + fpos * 26;
H A Ddir_fplus.c159 adfs_fplus_setpos(struct adfs_dir *dir, unsigned int fpos) argument
163 if (fpos <= le32_to_cpu(dir->bighead->bigdirentries)) {
164 dir->pos = fpos;
H A Dadfs.h129 int (*setpos)(struct adfs_dir *dir, unsigned int fpos);
/linux-master/include/trace/events/
H A Dio_uring.h628 TP_PROTO(void *ctx, u64 fpos, u64 wanted, u64 got),
630 TP_ARGS(ctx, fpos, wanted, got),
634 __field(u64, fpos)
641 __entry->fpos = fpos;
646 TP_printk("ring %p, fpos %lld, wanted %lld, got %lld",
647 __entry->ctx, __entry->fpos,
/linux-master/fs/
H A Dbinfmt_flat.c180 static int decompress_exec(struct linux_binprm *bprm, loff_t fpos, char *dst, argument
187 pr_debug("decompress_exec(offset=%llx,buf=%p,len=%lx)\n", fpos, dst, len);
201 ret = kernel_read(bprm->file, buf, LBUFSIZE, &fpos);
271 ret = kernel_read(bprm->file, buf, LBUFSIZE, &fpos);
414 loff_t fpos; local
565 fpos = ntohl(hdr->data_start);
568 result = decompress_exec(bprm, fpos, (char *)datapos,
573 result = read_code(bprm->file, datapos, fpos,
/linux-master/net/rds/
H A Dtcp.c65 void *buffer, size_t *lenp, loff_t *fpos);
687 void *buffer, size_t *lenp, loff_t *fpos)
692 err = proc_dointvec_minmax(ctl, write, buffer, lenp, fpos);
686 rds_tcp_skbuf_handler(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *fpos) argument
/linux-master/drivers/sbus/char/
H A Dbbc_envctrl.c557 struct bbc_fan_control *fp, *fpos; local
559 list_for_each_entry_safe(fp, fpos, &bp->fans, bp_list) {
/linux-master/arch/mips/include/asm/mach-au1x00/
H A Dau1000_dma.h125 extern int au1000_dma_read_proc(char *buf, char **start, off_t fpos,
/linux-master/fs/smb/client/
H A Dcifsfs.c1246 unsigned long long fpos, fend; local
1256 fpos = folio_pos(folio);
1257 fend = fpos + size - 1;
1258 *_fstart = min_t(unsigned long long, *_fstart, fpos);
1260 if ((first && pos == fpos) || (!first && pos == fend))
1263 rc = filemap_write_and_wait_range(inode->i_mapping, fpos, fend);
H A Dfile.c2541 loff_t fpos = wdata->offset; local
2566 wdata2->offset = fpos;
2570 iov_iter_advance(&wdata2->iter, fpos - wdata->offset);
2579 cifs_undirty_folios(inode, fpos, cur_len);
2598 fpos += cur_len;
2603 fpos += cur_len;
2609 cifs_pages_write_failed(inode, fpos, rest_len);
3507 cifs_write_from_iter(loff_t fpos, size_t len, struct iov_iter *from, argument
3579 wdata->offset = (__u64)fpos;
3612 fpos
4046 cifs_send_async_read(loff_t fpos, size_t len, struct cifsFileInfo *open_file, struct cifs_sb_info *cifs_sb, struct list_head *rdata_list, struct cifs_aio_ctx *ctx) argument
[all...]
/linux-master/mm/
H A Dnommu.c976 loff_t fpos; local
978 fpos = vma->vm_pgoff;
979 fpos <<= PAGE_SHIFT;
981 ret = kernel_read(vma->vm_file, base, len, &fpos);
H A Dinternal.h1060 struct folio *folio, loff_t fpos, size_t size);
H A Dfilemap.c2790 struct folio *folio, loff_t fpos, size_t size)
2793 size_t spliced = 0, offset = offset_in_folio(folio, fpos);
2789 splice_folio_into_pipe(struct pipe_inode_info *pipe, struct folio *folio, loff_t fpos, size_t size) argument
H A Dshmem.c2950 loff_t fpos, size_t size)
2952 size_t offset = fpos & ~PAGE_MASK;
2949 splice_zeropage_into_pipe(struct pipe_inode_info *pipe, loff_t fpos, size_t size) argument
/linux-master/fs/erofs/
H A Dzdata.c990 erofs_off_t fpos = offset + cur - map->m_la; local
992 len = min_t(unsigned int, map->m_llen - fpos, end - cur);
994 cur + len, EROFS_I(inode)->z_fragmentoff + fpos);
/linux-master/fs/afs/
H A Ddir.c28 loff_t fpos, u64 ino, unsigned dtype);
30 loff_t fpos, u64 ino, unsigned dtype);
577 int nlen, loff_t fpos, u64 ino, unsigned dtype)
645 int nlen, loff_t fpos, u64 ino, unsigned dtype)
576 afs_lookup_one_filldir(struct dir_context *ctx, const char *name, int nlen, loff_t fpos, u64 ino, unsigned dtype) argument
644 afs_lookup_filldir(struct dir_context *ctx, const char *name, int nlen, loff_t fpos, u64 ino, unsigned dtype) argument
/linux-master/fs/ceph/
H A Ddir.c72 loff_t fpos = ((loff_t)high << 28) | (loff_t)off; local
74 fpos |= HASH_ORDER;
75 return fpos;
/linux-master/kernel/trace/
H A Dtrace.c6886 size_t cnt, loff_t *fpos)
6980 size_t cnt, loff_t *fpos)
7082 size_t cnt, loff_t *fpos)
7104 *fpos += cnt;
6885 tracing_mark_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *fpos) argument
6979 tracing_mark_raw_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *fpos) argument
7081 tracing_clock_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *fpos) argument
/linux-master/kernel/events/
H A Dcore.c10873 int fpos = token == IF_SRC_FILE ? 2 : 1; local
10876 filename = match_strdup(&args[fpos]);

Completed in 330 milliseconds