Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 25 of 47) sorted by relevance

12

/fs/coda/
A Dpsdev.c92 size_t nbytes, loff_t *off) in coda_psdev_write() argument
117 count = nbytes; in coda_psdev_write()
120 if ( nbytes > size ) { in coda_psdev_write()
123 nbytes = size; in coda_psdev_write()
142 count = nbytes; in coda_psdev_write()
166 if (req->uc_outSize < nbytes) { in coda_psdev_write()
180 req->uc_outSize = nbytes; in coda_psdev_write()
182 count = nbytes; in coda_psdev_write()
212 if (nbytes == 0) in coda_psdev_read()
245 if (nbytes < req->uc_inSize) { in coda_psdev_read()
[all …]
A Dupcall.c856 size_t nbytes) in coda_downcall() argument
868 if (nbytes < sizeof(struct coda_purgeuser_out)) in coda_downcall()
873 if (nbytes < sizeof(struct coda_zapdir_out)) in coda_downcall()
878 if (nbytes < sizeof(struct coda_zapfile_out)) in coda_downcall()
883 if (nbytes < sizeof(struct coda_purgefid_out)) in coda_downcall()
888 if (nbytes < sizeof(struct coda_replace_out)) in coda_downcall()
/fs/
A Dsync.c225 int sync_file_range(struct file *file, loff_t offset, loff_t nbytes, in sync_file_range() argument
237 endbyte = offset + nbytes; in sync_file_range()
259 nbytes = 0; in sync_file_range()
263 if (nbytes == 0) in sync_file_range()
352 int ksys_sync_file_range(int fd, loff_t offset, loff_t nbytes, in ksys_sync_file_range() argument
360 return sync_file_range(fd_file(f), offset, nbytes, flags); in ksys_sync_file_range()
366 return ksys_sync_file_range(fd, offset, nbytes, flags); in SYSCALL_DEFINE4()
371 compat_arg_u64_dual(nbytes), unsigned int, flags) in COMPAT_SYSCALL_DEFINE6() argument
374 compat_arg_u64_glue(nbytes), flags); in COMPAT_SYSCALL_DEFINE6()
381 loff_t, offset, loff_t, nbytes) in SYSCALL_DEFINE4() argument
[all …]
A Dbinfmt_misc.c700 bm_entry_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in bm_entry_read() argument
712 res = simple_read_from_buffer(buf, nbytes, ppos, page, strlen(page)); in bm_entry_read()
856 bm_status_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in bm_status_read() argument
863 return simple_read_from_buffer(buf, nbytes, ppos, s, strlen(s)); in bm_status_read()
/fs/resctrl/
A Dctrlmondata.c304 char *buf, size_t nbytes, loff_t off) in rdtgroup_schemata_write() argument
313 if (nbytes == 0 || buf[nbytes - 1] != '\n') in rdtgroup_schemata_write()
315 buf[nbytes - 1] = '\0'; in rdtgroup_schemata_write()
381 return ret ?: nbytes; in rdtgroup_schemata_write()
458 char *buf, size_t nbytes, loff_t off) in rdtgroup_mba_mbps_event_write() argument
464 if (nbytes == 0 || buf[nbytes - 1] != '\n') in rdtgroup_mba_mbps_event_write()
466 buf[nbytes - 1] = '\0'; in rdtgroup_mba_mbps_event_write()
494 return ret ?: nbytes; in rdtgroup_mba_mbps_event_write()
A Dinternal.h269 char *buf, size_t nbytes, loff_t off);
312 char *buf, size_t nbytes, loff_t off);
318 char *buf, size_t nbytes, loff_t off);
A Drdtgroup.c579 return ret ?: nbytes; in rdtgroup_cpus_write()
816 return ret ?: nbytes; in rdtgroup_tasks_write()
1230 return nbytes; in max_threshold_occ_write()
1427 if (nbytes == 0 || buf[nbytes - 1] != '\n') in rdtgroup_mode_write()
1429 buf[nbytes - 1] = '\0'; in rdtgroup_mode_write()
1485 return ret ?: nbytes; in rdtgroup_mode_write()
1762 if (nbytes == 0 || buf[nbytes - 1] != '\n') in mbm_total_bytes_config_write()
1770 buf[nbytes - 1] = '\0'; in mbm_total_bytes_config_write()
1777 return ret ?: nbytes; in mbm_total_bytes_config_write()
1788 if (nbytes == 0 || buf[nbytes - 1] != '\n') in mbm_local_bytes_config_write()
[all …]
/fs/fuse/
A Dreaddir.c126 static int parse_dirfile(char *buf, size_t nbytes, struct file *file, in parse_dirfile() argument
129 while (nbytes >= FUSE_NAME_OFFSET) { in parse_dirfile()
134 if (reclen > nbytes) in parse_dirfile()
143 nbytes -= reclen; in parse_dirfile()
289 static int parse_dirplusfile(char *buf, size_t nbytes, struct file *file, in parse_dirplusfile() argument
299 while (nbytes >= FUSE_NAME_OFFSET_DIRENTPLUS) { in parse_dirplusfile()
306 if (reclen > nbytes) in parse_dirplusfile()
324 nbytes -= reclen; in parse_dirplusfile()
402 unsigned int nbytes = size - offset; in fuse_parse_cache() local
405 if (nbytes < FUSE_NAME_OFFSET || !dirent->namelen) in fuse_parse_cache()
[all …]
A Ddev.c293 unsigned nbytes = 0; in fuse_len_args() local
297 nbytes += args[i].size; in fuse_len_args()
299 return nbytes; in fuse_len_args()
1172 nbytes -= count; in fuse_copy_folios()
1247 if (nbytes < reqsize) in fuse_read_interrupt()
1282 size_t nbytes) in fuse_read_single_forget() argument
1299 if (nbytes < ih.len) in fuse_read_single_forget()
1328 if (nbytes < ih.len) { in fuse_read_batch_forget()
1364 size_t nbytes) in fuse_read_forget() argument
2111 if (reqsize < nbytes || (reqsize > nbytes && !args->out_argvar)) in fuse_copy_out_args()
[all …]
A Dfile.c1536 *nbytesp - nbytes, in fuse_get_user_pages()
1542 nbytes += ret; in fuse_get_user_pages()
1576 *nbytesp = nbytes; in fuse_get_user_pages()
1634 size_t nbytes = min(count, nmax); in fuse_direct_io() local
1638 if (err && !nbytes) in fuse_direct_io()
1645 nres = fuse_send_write(ia, pos, nbytes, owner); in fuse_direct_io()
1647 nres = fuse_send_read(ia, pos, nbytes, owner); in fuse_direct_io()
1656 iov_iter_revert(iter, nbytes); in fuse_direct_io()
1660 WARN_ON(nres > nbytes); in fuse_direct_io()
1665 if (nres != nbytes) { in fuse_direct_io()
[all …]
/fs/xfs/
A Dxfs_inode_item.c244 int *nbytes) in xfs_inode_item_data_fork_size() argument
254 *nbytes += xfs_inode_data_fork_size(ip); in xfs_inode_item_data_fork_size()
262 *nbytes += ip->i_df.if_broot_bytes; in xfs_inode_item_data_fork_size()
269 *nbytes += xlog_calc_iovec_len(ip->i_df.if_bytes); in xfs_inode_item_data_fork_size()
286 int *nbytes) in xfs_inode_item_attr_fork_size() argument
296 *nbytes += xfs_inode_attr_fork_size(ip); in xfs_inode_item_attr_fork_size()
303 *nbytes += ip->i_af.if_broot_bytes; in xfs_inode_item_attr_fork_size()
331 int *nbytes) in xfs_inode_item_size() argument
337 *nbytes += sizeof(struct xfs_inode_log_format) + in xfs_inode_item_size()
340 xfs_inode_item_data_fork_size(iip, nvecs, nbytes); in xfs_inode_item_size()
[all …]
A Dxfs_buf_item.c129 int *nbytes) in xfs_buf_item_size_segment() argument
139 *nbytes += xfs_buf_log_format_size(blfp); in xfs_buf_item_size_segment()
146 *nbytes += nbits * XFS_BLF_CHUNK; in xfs_buf_item_size_segment()
202 int *nbytes) in xfs_buf_item_size() argument
221 *nbytes += xfs_buf_log_format_size(&bip->bli_formats[i]); in xfs_buf_item_size()
260 *nbytes = round_up(bytes, 512); in xfs_buf_item_size()
A Dxfs_attr_item.c162 int *nbytes) in xfs_attri_item_size() argument
168 *nbytes += sizeof(struct xfs_attri_log_format) + in xfs_attri_item_size()
173 *nbytes += xlog_calc_iovec_len(nv->new_name.iov_len); in xfs_attri_item_size()
178 *nbytes += xlog_calc_iovec_len(nv->value.iov_len); in xfs_attri_item_size()
183 *nbytes += xlog_calc_iovec_len(nv->new_value.iov_len); in xfs_attri_item_size()
312 int *nbytes) in xfs_attrd_item_size() argument
315 *nbytes += sizeof(struct xfs_attrd_log_format); in xfs_attrd_item_size()
A Dxfs_log_priv.h708 unsigned int nbytes) in xlog_item_space() argument
710 nbytes += niovecs * (sizeof(uint64_t) + sizeof(struct xlog_op_header)); in xlog_item_space()
711 return round_up(nbytes, sizeof(uint64_t)); in xlog_item_space()
A Dxfs_exchmaps_item.c72 int *nbytes) in xfs_xmi_item_size() argument
75 *nbytes += sizeof(struct xfs_xmi_log_format); in xfs_xmi_item_size()
155 int *nbytes) in xfs_xmd_item_size() argument
158 *nbytes += sizeof(struct xfs_xmd_log_format); in xfs_xmd_item_size()
A Dxfs_icreate_item.c39 int *nbytes) in xfs_icreate_item_size() argument
42 *nbytes += sizeof(struct xfs_icreate_log); in xfs_icreate_item_size()
A Dxfs_dquot_item.c34 int *nbytes) in xfs_qm_dquot_logitem_size() argument
37 *nbytes += sizeof(struct xfs_dq_logformat) + in xfs_qm_dquot_logitem_size()
A Dxfs_bmap_item.c72 int *nbytes) in xfs_bui_item_size() argument
77 *nbytes += xfs_bui_log_format_sizeof(buip->bui_format.bui_nextents); in xfs_bui_item_size()
170 int *nbytes) in xfs_bud_item_size() argument
173 *nbytes += sizeof(struct xfs_bud_log_format); in xfs_bud_item_size()
A Dxfs_refcount_item.c73 int *nbytes) in xfs_cui_item_size() argument
78 *nbytes += xfs_cui_log_format_sizeof(cuip->cui_format.cui_nextents); in xfs_cui_item_size()
181 int *nbytes) in xfs_cud_item_size() argument
184 *nbytes += sizeof(struct xfs_cud_log_format); in xfs_cud_item_size()
A Dxfs_log_cil.c277 int nbytes = 0; in xlog_cil_alloc_shadow_bufs() local
286 lip->li_ops->iop_size(lip, &niovecs, &nbytes); in xlog_cil_alloc_shadow_bufs()
296 nbytes = 0; in xlog_cil_alloc_shadow_bufs()
312 nbytes = xlog_item_space(niovecs, nbytes); in xlog_cil_alloc_shadow_bufs()
319 alloc_size = nbytes + xlog_cil_iovec_space(niovecs); in xlog_cil_alloc_shadow_bufs()
/fs/jfs/
A Dxattr.c211 s32 nbytes, nb; in ea_write() local
245 nbytes = size; in ea_write()
251 nb = min(PSIZE, nbytes); in ea_write()
284 nbytes -= nb; in ea_write()
360 int nbytes, nb; in ea_read() local
368 nbytes = sizeDXD(&ji->ea); in ea_read()
369 if (!nbytes) { in ea_read()
391 nb = min(PSIZE, nbytes); in ea_read()
403 nbytes -= nb; in ea_read()
A Djfs_logmgr.c356 int nbytes; /* number of bytes to move */ in lmWriteRecord() local
423 nbytes = min(freespace, srclen); in lmWriteRecord()
425 memcpy(dst, src, nbytes); in lmWriteRecord()
426 dstoffset += nbytes; in lmWriteRecord()
439 srclen -= nbytes; in lmWriteRecord()
440 src += nbytes; in lmWriteRecord()
471 nbytes = min(freespace, srclen); in lmWriteRecord()
473 memcpy(dst, src, nbytes); in lmWriteRecord()
475 dstoffset += nbytes; in lmWriteRecord()
476 srclen -= nbytes; in lmWriteRecord()
[all …]
/fs/smb/server/
A Dsmb2pdu.c6818 err = nbytes; in smb2_read()
6822 if ((nbytes == 0 && length != 0) || nbytes < mincount) { in smb2_read()
6840 nbytes = 0; in smb2_read()
6960 ssize_t nbytes; in smb2_write_rdma_channel() local
6980 return nbytes; in smb2_write_rdma_channel()
6996 ssize_t nbytes; in smb2_write() local
7825 int nbytes = 0; in fsctl_query_iface_info_ioctl() local
7928 return nbytes; in fsctl_query_iface_info_ioctl()
8047 return nbytes; in fsctl_pipe_transceive()
8222 nbytes = ret; in smb2_ioctl()
[all …]
/fs/ceph/
A Dcrypto.h92 #define CEPH_BASE64_CHARS(nbytes) DIV_ROUND_UP((nbytes) * 4, 3) argument
/fs/nfs/
A Dnfs3xdr.c536 u32 nbytes; in encode_sattr3() local
545 nbytes = 6 * 4; in encode_sattr3()
547 nbytes += 4; in encode_sattr3()
549 nbytes += 4; in encode_sattr3()
551 nbytes += 4; in encode_sattr3()
553 nbytes += 8; in encode_sattr3()
555 nbytes += 8; in encode_sattr3()
557 nbytes += 8; in encode_sattr3()
558 p = xdr_reserve_space(xdr, nbytes); in encode_sattr3()

Completed in 91 milliseconds

12