Home
last modified time | relevance | path

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

/linux-6.6.21/fs/proc/
Dkcore.c314 loff_t *fpos = &iocb->ki_pos; in read_kcore_iter() local
338 if (buflen && *fpos < sizeof(struct elfhdr)) { in read_kcore_iter()
360 tsz = min_t(size_t, buflen, sizeof(struct elfhdr) - *fpos); in read_kcore_iter()
361 if (copy_to_iter((char *)&ehdr + *fpos, tsz, iter) != tsz) { in read_kcore_iter()
367 *fpos += tsz; in read_kcore_iter()
371 if (buflen && *fpos < phdrs_offset + phdrs_len) { in read_kcore_iter()
401 tsz = min_t(size_t, buflen, phdrs_offset + phdrs_len - *fpos); in read_kcore_iter()
402 if (copy_to_iter((char *)phdrs + *fpos - phdrs_offset, tsz, in read_kcore_iter()
411 *fpos += tsz; in read_kcore_iter()
415 if (buflen && *fpos < notes_offset + notes_len) { in read_kcore_iter()
[all …]
Dvmcore.c317 static ssize_t __read_vmcore(struct iov_iter *iter, loff_t *fpos) in __read_vmcore() argument
324 if (!iov_iter_count(iter) || *fpos >= vmcore_size) in __read_vmcore()
327 iov_iter_truncate(iter, vmcore_size - *fpos); in __read_vmcore()
330 if (*fpos < elfcorebuf_sz) { in __read_vmcore()
331 tsz = min(elfcorebuf_sz - (size_t)*fpos, iov_iter_count(iter)); in __read_vmcore()
332 if (copy_to_iter(elfcorebuf + *fpos, tsz, iter) < tsz) in __read_vmcore()
334 *fpos += tsz; in __read_vmcore()
343 if (*fpos < elfcorebuf_sz + elfnotes_sz) { in __read_vmcore()
357 if (*fpos < elfcorebuf_sz + vmcoredd_orig_sz) { in __read_vmcore()
359 (size_t)*fpos, iov_iter_count(iter)); in __read_vmcore()
[all …]
/linux-6.6.21/arch/mips/alchemy/common/
Ddma.c100 int au1000_dma_read_proc(char *buf, char **start, off_t fpos, in au1000_dma_read_proc() argument
113 if (fpos >= len) { in au1000_dma_read_proc()
118 *start = buf + fpos; in au1000_dma_read_proc()
119 len -= fpos; in au1000_dma_read_proc()
/linux-6.6.21/fs/
Dbinfmt_flat.c180 static int decompress_exec(struct linux_binprm *bprm, loff_t fpos, char *dst, in decompress_exec() argument
187 pr_debug("decompress_exec(offset=%llx,buf=%p,len=%lx)\n", fpos, dst, len); in decompress_exec()
201 ret = kernel_read(bprm->file, buf, LBUFSIZE, &fpos); in decompress_exec()
271 ret = kernel_read(bprm->file, buf, LBUFSIZE, &fpos); in decompress_exec()
414 loff_t fpos; in load_flat_file() local
565 fpos = ntohl(hdr->data_start); in load_flat_file()
568 result = decompress_exec(bprm, fpos, (char *)datapos, in load_flat_file()
573 result = read_code(bprm->file, datapos, fpos, in load_flat_file()
/linux-6.6.21/include/trace/events/
Dio_uring.h632 TP_PROTO(void *ctx, u64 fpos, u64 wanted, u64 got),
634 TP_ARGS(ctx, fpos, wanted, got),
638 __field(u64, fpos)
645 __entry->fpos = fpos;
651 __entry->ctx, __entry->fpos,
/linux-6.6.21/fs/adfs/
Ddir_f.c233 adfs_f_setpos(struct adfs_dir *dir, unsigned int fpos) in adfs_f_setpos() argument
235 if (fpos >= ADFS_NUM_DIR_ENTRIES) in adfs_f_setpos()
238 dir->pos = 5 + fpos * 26; in adfs_f_setpos()
Ddir_fplus.c159 adfs_fplus_setpos(struct adfs_dir *dir, unsigned int fpos) in adfs_fplus_setpos() argument
163 if (fpos <= le32_to_cpu(dir->bighead->bigdirentries)) { in adfs_fplus_setpos()
164 dir->pos = fpos; in adfs_fplus_setpos()
Dadfs.h129 int (*setpos)(struct adfs_dir *dir, unsigned int fpos);
/linux-6.6.21/net/rds/
Dtcp.c65 void *buffer, size_t *lenp, loff_t *fpos);
687 void *buffer, size_t *lenp, loff_t *fpos) in rds_tcp_skbuf_handler() argument
692 err = proc_dointvec_minmax(ctl, write, buffer, lenp, fpos); in rds_tcp_skbuf_handler()
/linux-6.6.21/fs/smb/client/
Dcifsfs.c1242 unsigned long long fpos, fend; in cifs_flush_folio() local
1252 fpos = folio_pos(folio); in cifs_flush_folio()
1253 fend = fpos + size - 1; in cifs_flush_folio()
1254 *_fstart = min_t(unsigned long long, *_fstart, fpos); in cifs_flush_folio()
1256 if ((first && pos == fpos) || (!first && pos == fend)) in cifs_flush_folio()
1259 rc = filemap_write_and_wait_range(inode->i_mapping, fpos, fend); in cifs_flush_folio()
Dfile.c2445 loff_t fpos = wdata->offset; in cifs_writev_requeue() local
2470 wdata2->offset = fpos; in cifs_writev_requeue()
2474 iov_iter_advance(&wdata2->iter, fpos - wdata->offset); in cifs_writev_requeue()
2483 cifs_undirty_folios(inode, fpos, cur_len); in cifs_writev_requeue()
2502 fpos += cur_len; in cifs_writev_requeue()
2507 fpos += cur_len; in cifs_writev_requeue()
2513 cifs_pages_write_failed(inode, fpos, rest_len); in cifs_writev_requeue()
3374 cifs_write_from_iter(loff_t fpos, size_t len, struct iov_iter *from, in cifs_write_from_iter() argument
3446 wdata->offset = (__u64)fpos; in cifs_write_from_iter()
3479 fpos += cur_len; in cifs_write_from_iter()
[all …]
/linux-6.6.21/drivers/sbus/char/
Dbbc_envctrl.c557 struct bbc_fan_control *fp, *fpos; in destroy_all_fans() local
559 list_for_each_entry_safe(fp, fpos, &bp->fans, bp_list) { in destroy_all_fans()
/linux-6.6.21/mm/
Dnommu.c978 loff_t fpos; in do_mmap_private() local
980 fpos = vma->vm_pgoff; in do_mmap_private()
981 fpos <<= PAGE_SHIFT; in do_mmap_private()
983 ret = kernel_read(vma->vm_file, base, len, &fpos); in do_mmap_private()
Dinternal.h903 struct folio *folio, loff_t fpos, size_t size);
Dfilemap.c2848 struct folio *folio, loff_t fpos, size_t size) in splice_folio_into_pipe() argument
2851 size_t spliced = 0, offset = offset_in_folio(folio, fpos); in splice_folio_into_pipe()
Dshmem.c2912 loff_t fpos, size_t size) in splice_zeropage_into_pipe() argument
2914 size_t offset = fpos & ~PAGE_MASK; in splice_zeropage_into_pipe()
/linux-6.6.21/arch/mips/include/asm/mach-au1x00/
Dau1000_dma.h125 extern int au1000_dma_read_proc(char *buf, char **start, off_t fpos,
/linux-6.6.21/fs/afs/
Ddir.c28 loff_t fpos, u64 ino, unsigned dtype);
30 loff_t fpos, u64 ino, unsigned dtype);
587 int nlen, loff_t fpos, u64 ino, unsigned dtype) in afs_lookup_one_filldir() argument
655 int nlen, loff_t fpos, u64 ino, unsigned dtype) in afs_lookup_filldir() argument
/linux-6.6.21/fs/erofs/
Dzdata.c1006 erofs_off_t fpos = offset + cur - map->m_la; in z_erofs_do_read_page() local
1008 len = min_t(unsigned int, map->m_llen - fpos, end - cur); in z_erofs_do_read_page()
1010 EROFS_I(inode)->z_fragmentoff + fpos); in z_erofs_do_read_page()
/linux-6.6.21/fs/ceph/
Ddir.c72 loff_t fpos = ((loff_t)high << 28) | (loff_t)off; in ceph_make_fpos() local
74 fpos |= HASH_ORDER; in ceph_make_fpos()
75 return fpos; in ceph_make_fpos()
/linux-6.6.21/kernel/trace/
Dtrace.c7297 size_t cnt, loff_t *fpos) in tracing_mark_write() argument
7374 size_t cnt, loff_t *fpos) in tracing_mark_raw_write() argument
7477 size_t cnt, loff_t *fpos) in tracing_clock_write() argument
7499 *fpos += cnt; in tracing_clock_write()
/linux-6.6.21/kernel/events/
Dcore.c10857 int fpos = token == IF_SRC_FILE ? 2 : 1; in perf_event_parse_addr_filter() local
10860 filename = match_strdup(&args[fpos]); in perf_event_parse_addr_filter()