Searched refs:length (Results 1 - 25 of 3995) sorted by last modified time

1234567891011>>

/linux-master/fs/nfsd/
H A Dnfs4callback.c120 u32 length = fh->fh_size; local
123 BUG_ON(length > NFS4_FHSIZE);
124 p = xdr_reserve_space(xdr, 4 + length);
125 xdr_encode_opaque(p, &fh->fh_raw, length);
287 u32 length; local
295 length = be32_to_cpup(p++);
296 p = xdr_inline_decode(xdr, length + 4);
299 p += XDR_QUADLEN(length);
/linux-master/fs/btrfs/
H A Dscrub.c106 * Represent one contiguous range with a length of BTRFS_STRIPE_LEN.
454 "%s at logical %llu on dev %s, physical %llu, root %llu, inode %llu, offset %llu, length %u, links %u (path: %s)",
563 u64 length; local
572 length = physical - sctx->write_pointer;
575 sctx->write_pointer, length);
1014 stripe->bg->length);
1549 ASSERT(logical_start >= bg->start && logical_end <= bg->start + bg->length);
1657 stripe->bg->length - stripe->logical) >>
1729 stripe->bg->length - stripe->logical) >>
1767 stripe->bg->length);
1882 queue_scrub_stripe(struct scrub_ctx *sctx, struct btrfs_block_group *bg, struct btrfs_device *dev, int mirror_num, u64 logical, u32 length, u64 physical, u64 *found_logical_ret) argument
1940 u64 length = btrfs_stripe_nr_to_offset(data_stripes); local
[all...]
H A Dinode.c209 "checksum error at logical %llu mirror %u root %llu inode %llu offset %llu length %u links %u (path: %s)",
4720 * @len - the length to zero, 0 to zero the entire range respective to the
6803 * @len: length of range starting at @start
7101 * @len: The length to write, will be updated to the nocow writeable
7104 * @orig_len: (optional) Return the original on-disk length of the file extent
7496 loff_t length, unsigned int flags, struct iomap *iomap,
7507 u64 len = length;
7508 const u64 data_alloc_len = length;
7522 if (!write && (flags & IOMAP_NOWAIT) && length > PAGE_SIZE)
7561 start + length
7495 btrfs_dio_iomap_begin(struct inode *inode, loff_t start, loff_t length, unsigned int flags, struct iomap *iomap, struct iomap *srcmap) argument
7742 btrfs_dio_iomap_end(struct inode *inode, loff_t pos, loff_t length, ssize_t written, unsigned int flags, struct iomap *iomap) argument
8010 btrfs_invalidate_folio(struct folio *folio, size_t offset, size_t length) argument
[all...]
/linux-master/drivers/hid/intel-ish-hid/ipc/
H A Dipc.c228 * Read header of 32bit length
241 * @buffer_length: length of message buffer
273 unsigned long length; local
304 length = ipc_link->length - sizeof(uint32_t);
329 for (i = 0, reg_addr = IPC_REG_HOST2ISH_MSG; i < length >> 2; i++,
333 rem = length & 0x3;
337 memcpy(&reg, &r_buf[length >> 2], rem);
371 * @length: Length of message
383 unsigned char *msg, int length)
381 write_ipc_to_queue(struct ishtp_device *dev, void (*ipc_send_compl)(void *), void *ipc_send_compl_prm, unsigned char *msg, int length) argument
882 ish_ipc_get_header(struct ishtp_device *dev, int length, int busy) argument
[all...]
/linux-master/drivers/hid/i2c-hid/
H A Di2c-hid-core.c213 size_t length = 0; local
216 buf[length++] = report_type << 4 | report_id;
217 buf[length++] = opcode;
219 buf[length++] = report_type << 4 | 0x0F;
220 buf[length++] = opcode;
221 buf[length++] = report_id;
224 return length;
231 size_t length = 0; local
239 length += sizeof(__le16);
241 length
288 size_t length = sizeof(__le16); /* reserve space to store size */ local
316 size_t length = 0; local
367 size_t length; local
424 size_t length = 0; local
[all...]
/linux-master/drivers/hid/
H A Dhid-nintendo.c510 u8 data[]; /* length depends on the subcommand */
1869 const size_t length = ARRAY_SIZE(joycon_rumble_frequencies); local
1874 for (i = 1; i < length - 1; i++) {
1885 const size_t length = ARRAY_SIZE(joycon_rumble_amplitudes); local
1890 for (i = 1; i < length - 1; i++) {
/linux-master/tools/testing/selftests/kvm/x86_64/
H A Dpmu_counters_test.c290 uint8_t length, uint8_t unavailable_mask)
303 length);
567 "New architectural event(s) detected; please update this test (length = %u, mask = %x)",
587 * vector length.
596 * weird things if the guest length is greater than the
597 * host length). Explicitly test a mask of '0' and all
289 test_arch_events(uint8_t pmu_version, uint64_t perf_capabilities, uint8_t length, uint8_t unavailable_mask) argument
/linux-master/net/sunrpc/xprtrdma/
H A Dsvc_rdma_sendto.c241 ctxt->sc_sges[i].length);
244 ctxt->sc_sges[i].length,
352 send_wr->sg_list[0].length,
398 * On success, returns length in bytes of the Reply XDR buffer
416 * On success, returns length in bytes of the Reply XDR buffer
426 u32 length; local
433 length = min_t(u32, *remaining, segment->rs_length);
434 *remaining -= length;
435 xdr_encode_rdma_segment(p, segment->rs_handle, length,
437 trace_svcrdma_encode_wseg(sctxt, segno, segment->rs_handle, length,
529 svc_rdma_encode_reply_chunk(struct svc_rdma_recv_ctxt *rctxt, struct svc_rdma_send_ctxt *sctxt, unsigned int length) argument
1083 svc_rdma_result_payload(struct svc_rqst *rqstp, unsigned int offset, unsigned int length) argument
[all...]
H A Dsvc_rdma_rw.c547 * @length: number of bytes to write
558 unsigned long length)
563 length);
821 * @remaining: length of region to copy
830 * %-EINVAL: offset or length was incorrect
887 unsigned int start, length; local
892 length = chunk->ch_position;
893 ret = svc_rdma_copy_inline_range(rqstp, head, start, length);
906 start += length;
907 length
555 svc_rdma_pages_write(struct svc_rdma_write_info *info, const struct xdr_buf *xdr, unsigned int offset, unsigned long length) argument
958 svc_rdma_read_chunk_range(struct svc_rqst *rqstp, struct svc_rdma_recv_ctxt *head, const struct svc_rdma_chunk *chunk, unsigned int offset, unsigned int length) argument
1009 unsigned int start, length; local
[all...]
/linux-master/include/linux/sunrpc/
H A Dsvc_rdma.h307 unsigned int length);
/linux-master/fs/smb/server/
H A Dvfs.c857 * Return: xattr list length on success, otherwise error
896 * Return: read xattr value length on success, otherwise error
930 * @flags: destination buffer length
1003 int ksmbd_vfs_fqar_lseek(struct ksmbd_file *fp, loff_t start, loff_t length, argument
1022 if (length > maxbytes || (maxbytes - length) < start)
1023 length = maxbytes - start;
1025 if (start + length > inode->i_size)
1026 length = inode->i_size - start;
1029 end = start + length;
[all...]
H A Dsmb2pdu.c959 pr_err("Invalid SMB2_SIGNING_CAPABILITIES context length\n");
2309 * @buf_len: set info command buffer length
4458 * @reqOutputBufferLength: max buffer length expected in command response
4459 * @rsp: query info response buffer contains output buffer length
6512 pr_info("RDMA r/w request %#x: token %#x, length %#x\n",
6515 le32_to_cpu(desc[i].length));
6530 size_t length)
6534 err = ksmbd_conn_rdma_write(work->conn, data_buf, length,
6541 return length;
6557 size_t length, mincoun local
6528 smb2_read_rdma_channel(struct ksmbd_work *work, struct smb2_read_req *req, void *data_buf, size_t length) argument
6728 size_t length; local
6781 smb2_write_rdma_channel(struct ksmbd_work *work, struct smb2_write_req *req, struct ksmbd_file *fp, loff_t offset, size_t length, bool sync) argument
6823 size_t length; local
7801 loff_t start, length; local
8185 loff_t src_off, dst_off, length, cloned; local
[all...]
/linux-master/fs/smb/common/
H A Dsmb2pdu.h193 __u8 ErrorData[]; /* variable length */
218 * (instead of a length, as it is in the chained header).
243 __le32 Length; /* length of compressed playload including field below if present */
320 __u8 TicketInfo[]; /* variable length buf - remoted identity data */
342 __u8 Buffer[]; /* variable length */
632 __u8 Buffer[]; /* variable length GSS security buffer */
653 __u8 Buffer[]; /* variable length GSS security buffer */
670 __u8 Buffer[]; /* variable length GSS security buffer */
740 /* SMB2 read request without RFC1001 length at the beginning */
1642 __le64 length; member in struct:file_allocated_range_buffer
[all...]
/linux-master/fs/smb/client/
H A Dsmb2pdu.c617 * Context Data length must be rounded to multiple of 8 for some servers
700 /* In case length corrupted don't want to overrun smb buffer */
701 cifs_server_dbg(VFS, "Bad frame length assembling neg contexts\n");
1031 * 2) Initialize SMB2 command specific fields in fixed length area of SMB
1033 * 4) Decode SMB2 command specific fields in the fixed length area
1034 * 5) Decode variable length data area (if any for this SMB2 command type)
1238 * We just found a server which sets blob length to zero expecting raw.
1439 * a fixed length beginning part, an optional
1440 * SPNEGO blob (which can be zero length), and a
3480 /* We check for obvious errors in the output buffer length an
6062 SMB2_lock(const unsigned int xid, struct cifs_tcon *tcon, const __u64 persist_fid, const __u64 volatile_fid, const __u32 pid, const __u64 length, const __u64 offset, const __u32 lock_flags, const bool wait) argument
[all...]
H A Dsmb2ops.c990 cifs_dbg(FYI, "EA entry goes beyond length of list\n");
1486 cifs_tcon_dbg(VFS, "Invalid refcopy resume key length\n");
2042 cifs_dbg(FYI, "Non-zero response length in duplicate extents\n");
2864 __u64 length, __u32 type, int lock, int unlock, bool wait)
2870 current->tgid, length, offset, type, wait);
3314 io_parms.length = len;
3315 if (io_parms.length > SMB2_MAX_BUFFER_SIZE)
3316 io_parms.length = SMB2_MAX_BUFFER_SIZE;
3319 iov[1].iov_len = io_parms.length;
3344 in_data.length
2863 smb2_mand_lock(const unsigned int xid, struct cifsFileInfo *cfile, __u64 offset, __u64 length, __u32 type, int lock, int unlock, bool wait) argument
4495 int length; local
4824 int ret, length; local
[all...]
H A Dconnect.c704 int length = 0; local
707 for (total_read = 0; msg_data_left(smb_msg); total_read += length) {
719 length = smbd_recv(server->smbd_conn, smb_msg);
721 length = sock_recvmsg(server->ssocket, smb_msg, 0);
736 if (length == -ERESTARTSYS ||
737 length == -EAGAIN ||
738 length == -EINTR) {
745 length = 0;
749 if (length <= 0) {
750 cifs_dbg(FYI, "Received no data or error: %d\n", length);
963 int length; local
1056 int length; local
1157 int i, num_mids, length; local
2932 rfc1002mangle(char *target, char *source, unsigned int length) argument
3703 int length; local
[all...]
H A Dcifsproto.h33 unsigned int /* length */);
162 extern int decode_negTokenInit(unsigned char *security_blob, int length,
169 const struct cifs_tcon *, int /* length of
272 __u64 length, __u8 type, __u16 flags,
H A Dcifsglob.h77 /* maximum length of ip addr as a string (including ipv6 and sctp) */
305 * Data length from read response message
306 * When in_remaining is true, the returned data length is in
309 * Otherwise, the returned data length is in message field DataLength.
956 * including the RFC1001 length.
1366 __u64 length; member in struct:cifsLockInfo
1467 unsigned int length; member in struct:cifs_io_parms
/linux-master/drivers/usb/typec/ucsi/
H A Ducsi.c178 u8 length; local
187 length = ret;
199 ret = length;
474 * Some type-C device will return zero length data beyond last
475 * alternate modes. We should not return if length is zero.
1611 ret = 0; /* ucsi_send_command() returns length on success */
/linux-master/drivers/usb/host/
H A Dxhci-trace.h260 __field(int, length)
275 __entry->length = urb->transfer_buffer_length;
282 TP_printk("ep%d%s-%s: urb %p pipe %u slot %d length %d/%d sgs %d/%d stream %d flags %08x",
290 __entry->actual, __entry->length, __entry->num_mapped_sgs,
577 __field(unsigned int, length)
584 __entry->length = req->length;
587 TP_printk("%s: req %p length %u/%u ==> %d",
590 __entry->length, __entry->status
H A Dxhci-ring.c836 xhci_warn(xhci, "WARN Wrong bounce buffer read length: %zu != %d\n",
857 /* Do one last check of the actual transfer length.
859 * length, urb->actual_length will be a very big number (since it's
863 xhci_warn(xhci, "URB req %u and actual %u transfer length mismatch\n",
2388 requested = frame->length;
2487 /* calc actual length */
2537 /* stopped on ep trb with invalid length, exclude it */
2564 xhci_warn(xhci, "bad transfer trb length %d in event trb\n",
3396 len = urb->iso_frame_desc[i].length;
3404 dev_err(&urb->dev->dev, "%s - ep %#x - Miscalculated tx length, "
[all...]
/linux-master/drivers/usb/gadget/udc/
H A Dfsl_udc_core.c188 req->req.actual, req->req.length);
574 * the USB variable length packet protocol where N is
769 * @length: return actually data length of the dTD
773 static struct ep_td_struct *fsl_build_dtd(struct fsl_req *req, unsigned *length, argument
780 *length = min(req->req.length - req->req.actual,
801 req->req.actual += *length;
805 if (*length == 0 || (*length
1319 ch9setaddress(struct fsl_udc *udc, u16 value, u16 index, u16 length) argument
1333 ch9getstatus(struct fsl_udc *udc, u8 request_type, u16 value, u16 index, u16 length) argument
[all...]
/linux-master/drivers/usb/gadget/function/
H A Df_ncm.c441 unsigned dgram_item_len; /* index or length */
558 req->length = sizeof *event;
569 req->length = NCM_STATUS_BYTECOUNT;
655 if (req->status || req->actual != req->length) {
746 req->length = w_length;
749 value = req->length;
843 req->length = value;
1250 * Each entry is a dgram index and a dgram length.
1255 INFO(port->func.config->cdev, "Bad NDP length: %#X\n",
1287 "Bad dgram length
[all...]
H A Df_fs.c234 size_t length; member in struct:ffs_buffer
236 char storage[] __counted_by(length);
323 req->length = len;
911 ret = copy_to_iter(buf->data, buf->length, iter);
912 if (buf->length == ret) {
920 buf->length -= ret;
952 buf->length = data_len;
1104 req->length = data_len;
1155 req->length = data_len;
1599 if (req->length > dmabu
2476 u8 length; local
2819 u8 length; local
3102 size_t length = strnlen(data, len); local
3401 u8 length = 0; local
[all...]
/linux-master/drivers/usb/dwc3/
H A Dep0.c396 dwc->ep0_usb_req.request.length = sizeof(*response_pkt);
763 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket;
867 u32 length; local
892 length = trb->size & DWC3_TRB_SIZE_MASK;
893 transferred = ur->length - length;
896 if ((IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) &&
897 ur->length && ur->zero) || dwc->ep0_bounced) {
910 if ((epnum & 1) && ur->actual < ur->length)
989 if (req->request.length
[all...]

Completed in 491 milliseconds

1234567891011>>