Searched refs:length (Results 626 - 650 of 4014) sorted by relevance

<<21222324252627282930>>

/linux-master/fs/btrfs/tests/
H A Dfree-space-tree-tests.c17 u64 length; member in struct:free_space_extent
52 end = cache->start + cache->length;
66 offset - extent_start != extents[i].length)
77 end - extent_start != extents[i].length)
92 key.offset != extents[i].length)
157 {cache->start, cache->length},
175 cache->length);
192 {cache->start + alignment, cache->length - alignment},
215 {cache->start, cache->length - alignment},
220 cache->start + cache->length
[all...]
/linux-master/drivers/acpi/acpica/
H A Ddbcmds.c514 return_buffer.length = ACPI_DEBUG_BUFFER_SIZE;
539 node->object->buffer.length,
582 acpi_os_printf("**** Buffer length mismatch in converted "
602 /* Check for descriptor length match */
669 new_aml.length = ACPI_ALLOCATE_LOCAL_BUFFER;
670 return_buffer.length = ACPI_ALLOCATE_LOCAL_BUFFER;
671 resource_buffer.length = ACPI_ALLOCATE_LOCAL_BUFFER;
706 length, new_aml.pointer,
707 (acpi_rsdesc_size)new_aml.length);
790 return_buffer.length
[all...]
H A Dpsargs.c34 * RETURN: Decoded package length. On completion, the AML pointer points
35 * past the length byte or bytes.
37 * DESCRIPTION: Decode and return a package length field.
38 * Note: Largest package length is 28 bits, from ACPI specification
54 * used to encode the package length, either 0,1,2, or 3
63 * Final bit positions for the package length bytes:
89 * DESCRIPTION: Get next package length and return a pointer past the end of
90 * the package. Consumes the package length field
365 u32 length; local
378 length
[all...]
/linux-master/drivers/platform/surface/
H A Dsurface_aggregator_cdev.c98 size_t n = struct_size(&event, data, in->length);
105 event.length = in->length;
120 kfifo_in(&client->buffer, &in->data[0], in->length);
279 spec.length = rqst.payload.length;
288 rsp.capacity = rqst.response.length;
289 rsp.length = 0;
293 if (spec.length) {
300 * Note: spec.length i
[all...]
/linux-master/drivers/video/fbdev/core/
H A Dfb_logo.c67 redmask = mask[info->var.red.length < 8 ? info->var.red.length : 8];
68 greenmask = mask[info->var.green.length < 8 ? info->var.green.length : 8];
69 bluemask = mask[info->var.blue.length < 8 ? info->var.blue.length : 8];
70 redshift = info->var.red.offset - (8 - info->var.red.length);
71 greenshift = info->var.green.offset - (8 - info->var.green.length);
72 blueshift = info->var.blue.offset - (8 - info->var.blue.length);
120 fg = ~((u8) (0xfff << info->var.green.length));
[all...]
/linux-master/drivers/virtio/
H A Dvirtio_pci_modern_dev.c12 * @minlen: minimal length of the capability
16 * @len: the length that is actually mapped
28 u32 offset, length; local
36 pci_read_config_dword(dev, off + offsetof(struct virtio_pci_cap, length),
37 &length);
46 if (length <= start) {
49 length, start);
53 if (length - start < minlen) {
56 length, minlen);
60 length
[all...]
/linux-master/net/sunrpc/auth_gss/
H A Dgss_rpc_xdr.c65 u32 length; local
72 length = be32_to_cpup(p);
73 p = xdr_inline_decode(xdr, length);
81 if (length > buf->len)
85 buf->data = kmemdup(p, length, GFP_KERNEL);
89 memcpy(buf->data, p, length);
91 buf->len = length;
171 u32 length; local
181 length = be32_to_cpup(p);
183 if (length > (
264 u32 length; local
[all...]
/linux-master/drivers/iio/
H A Dindustrialio-buffer.c658 return sysfs_emit(buf, "%d\n", buffer->length);
674 if (val == buffer->length)
686 if (buffer->length && buffer->length < buffer->watermark)
687 buffer->watermark = buffer->length;
727 int length, i, largest = 0; local
732 length = iio_storage_bytes_for_si(indio_dev, i);
733 bytes = ALIGN(bytes, length);
734 bytes += length;
735 largest = max(largest, length);
958 unsigned int length; member in struct:iio_demux_table
972 iio_buffer_add_demux(struct iio_buffer *buffer, struct iio_demux_table **p, unsigned int in_loc, unsigned int out_loc, unsigned int length) argument
996 int ret, in_ind = -1, out_ind, length; local
[all...]
/linux-master/drivers/acpi/
H A Dutils.c50 if (!format || !format->pointer || (format->length < 1)) {
60 format_count = (format->length / sizeof(char)) - 1;
103 (element->string.length * sizeof(char)) +
109 sizeof(u8 *) + element->buffer.length;
142 if (buffer->length == ACPI_ALLOCATE_BUFFER) {
146 buffer->length = size_required;
148 if (buffer->length < size_required) {
149 buffer->length = size_required;
151 } else if (buffer->length != size_required ||
201 element->string.length);
[all...]
H A Dpptt.c33 if (pptt_ref + sizeof(struct acpi_subtable_header) > table_hdr->length)
38 if (entry->length == 0)
41 if (pptt_ref + entry->length > table_hdr->length)
228 table_end = (unsigned long)table_hdr + table_hdr->length;
239 if (entry->length == 0)
242 entry->length);
270 table_end = (unsigned long)table_hdr + table_hdr->length;
279 if (entry->length == 0) {
280 pr_warn("Invalid zero length subtabl
[all...]
/linux-master/net/sunrpc/xprtrdma/
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/lib/
H A Dscatterlist.c58 * needed to satisfy the supplied length
60 * @len: The total required length
64 * the supplied length, taking into account chaining as well
80 total += sg->length;
137 * @buflen: IO length
477 sgt_append->prv->offset + sgt_append->prv->length) / PAGE_SIZE;
483 prv_len = sgt_append->prv->length;
487 if (sgt_append->prv->length + PAGE_SIZE > max_segment)
489 sgt_append->prv->length += PAGE_SIZE;
530 * Adjust entry length t
611 sgl_alloc_order(unsigned long long length, unsigned int order, bool chainable, gfp_t gfp, unsigned int *nent_p) argument
665 sgl_alloc(unsigned long long length, gfp_t gfp, unsigned int *nent_p) argument
[all...]
/linux-master/drivers/usb/gadget/legacy/
H A Draw_gadget.c62 enum usb_raw_event_type type, size_t length, const void *data)
72 event = kmalloc(sizeof(*event) + length, GFP_ATOMIC);
78 event->length = length;
79 if (event->length)
80 memcpy(&event->data[0], data, length);
234 enum usb_raw_event_type type, size_t length, const void *data)
239 ret = raw_event_queue_add(&dev->queue, type, length, data);
372 * with the status stage for 0-length transfers.
619 uint32_t length; local
61 raw_event_queue_add(struct raw_event_queue *queue, enum usb_raw_event_type type, size_t length, const void *data) argument
233 raw_queue_event(struct raw_dev *dev, enum usb_raw_event_type type, size_t length, const void *data) argument
776 unsigned int length; local
1162 unsigned int length; local
[all...]
/linux-master/fs/
H A Dopen.c40 loff_t length, unsigned int time_attrs, struct file *filp)
46 if (length < 0)
49 newattrs.ia_size = length;
70 long vfs_truncate(const struct path *path, loff_t length) argument
111 error = do_truncate(idmap, path->dentry, length, 0, NULL);
122 long do_sys_truncate(const char __user *pathname, loff_t length) argument
128 if (length < 0) /* sorry, but loff_t says... */
134 error = vfs_truncate(&path, length);
144 SYSCALL_DEFINE2(truncate, const char __user *, path, long, length)
146 return do_sys_truncate(path, length);
39 do_truncate(struct mnt_idmap *idmap, struct dentry *dentry, loff_t length, unsigned int time_attrs, struct file *filp) argument
156 do_ftruncate(struct file *file, loff_t length, int small) argument
188 do_sys_ftruncate(unsigned int fd, loff_t length, int small) argument
[all...]
/linux-master/drivers/media/firewire/
H A Dfiredtv-fw.c104 int length, err, i = ctx->current_packet; local
108 length = be32_to_cpup(h) >> 16;
109 if (unlikely(length > MAX_PACKET_SIZE)) {
110 dev_err(fdtv->device, "length = %d\n", length);
111 length = MAX_PACKET_SIZE;
116 p_end = p + length;
197 unsigned long long offset, void *payload, size_t length,
205 if (length < 2 || (((u8 *)payload)[0] & 0xf0) != 0)
228 avc_recv(fdtv, payload, length);
195 handle_fcp(struct fw_card *card, struct fw_request *request, int tcode, int destination, int source, int generation, unsigned long long offset, void *payload, size_t length, void *callback_data) argument
[all...]
/linux-master/drivers/infiniband/hw/qib/
H A Dqib_qp.c66 .length = sizeof(struct ib_rdma_wr),
71 .length = sizeof(struct ib_rdma_wr),
77 .length = sizeof(struct ib_atomic_wr),
83 .length = sizeof(struct ib_atomic_wr),
89 .length = sizeof(struct ib_rdma_wr),
94 .length = sizeof(struct ib_send_wr),
100 .length = sizeof(struct ib_send_wr),
393 if (wqe->length > 0x80000000U)
395 if (wqe->length > qp->pmtu)
402 if (wqe->length > (
[all...]
/linux-master/sound/pcmcia/vx/
H A Dvxp_ops.c348 * @count: data length to transfer in bytes
362 int length = pipe->buffer_bytes - offset; local
363 count -= length;
364 length >>= 1; /* in 16bit words */
366 for (; length > 0; length--) {
387 * @count: data length to transfer in bytes
389 * the read length must be aligned to 6 bytes, as well as write.
404 int length = pipe->buffer_bytes - offset; local
405 count -= length;
[all...]
/linux-master/drivers/usb/serial/
H A Dcyberjack.c201 int length; local
204 length = (wrexpected > port->bulk_out_size) ?
207 memcpy(port->write_urb->transfer_buffer, priv->wrbuf, length);
208 priv->wrsent = length;
211 port->write_urb->transfer_buffer_length = length;
371 int length, blksize, result; local
375 length = ((priv->wrfilled - priv->wrsent) > port->bulk_out_size) ?
379 priv->wrbuf + priv->wrsent, length);
380 priv->wrsent += length;
383 port->write_urb->transfer_buffer_length = length;
[all...]
/linux-master/drivers/net/ethernet/mediatek/
H A Dmtk_wed_mcu.c48 int length = sizeof(struct mtk_wed_mcu_hdr) + data_len; local
51 skb = alloc_skb(length, GFP_KERNEL);
55 memset(skb->head, 0, length);
144 hdr->length = cpu_to_le16(skb->len);
273 u32 length; local
277 length = le32_to_cpu(fw_region->len);
278 if (first_region_ptr < ptr + length)
288 if (region->size < length)
295 memcpy_toio(region->addr, ptr, length);
305 ptr += length;
[all...]
/linux-master/drivers/platform/x86/hp/hp-bioscfg/
H A Dpasswdobj-attributes.c65 int length; local
68 length = strlen(buf);
69 if (buf[length - 1] == '\n')
70 length--;
72 if (length > MAX_PASSWD_SIZE)
75 if (password_data->min_password_length > length ||
76 password_data->max_password_length < length)
248 password_obj[elem].string.length,
312 password_obj[elem + reqs].string.length,
357 password_obj[elem + pos_values].string.length,
[all...]
/linux-master/fs/erofs/
H A Ddata.c231 erofs_off_t startoff, length; local
236 length = erofs_pos(sb, dif->blocks);
239 map->m_pa < startoff + length) {
254 static int erofs_iomap_begin(struct inode *inode, loff_t offset, loff_t length, argument
263 map.m_llen = length;
282 iomap->length = map.m_llen;
289 if (!iomap->length)
290 iomap->length = length;
314 static int erofs_iomap_end(struct inode *inode, loff_t pos, loff_t length, argument
[all...]
/linux-master/drivers/platform/x86/amd/pmf/
H A Dtee-if.c257 if (header->sign != POLICY_SIGN_COOKIE || !header->length) {
262 if (dev->policy_sz < header->length + 512)
265 /* Update the actual length */
266 dev->policy_sz = header->length + 512;
293 size_t length, loff_t *pos)
300 if (length > POLICY_BUF_MAX_SZ || length == 0)
303 /* re-alloc to the new buffer length of the policy binary */
304 new_policy_buf = kzalloc(length, GFP_KERNEL);
308 if (copy_from_user(new_policy_buf, buf, length)) {
292 amd_pmf_get_pb_data(struct file *filp, const char __user *buf, size_t length, loff_t *pos) argument
[all...]
H A Dacpi.c33 apmf_if_args[1].buffer.length = param->length;
66 if (info->buffer.length < 2) {
73 if (info->buffer.length < size) {
75 info->buffer.length, size);
139 if (info->buffer.length < size) {
141 info->buffer.length, size);
202 params.length = sizeof(args);
253 params.length = sizeof(args);
274 params.length
[all...]
/linux-master/drivers/usb/fotg210/
H A Dfotg210-udc.c271 /* set transfer length and direction */
343 u32 length; local
348 length = req->req.length;
351 length = ioread32(ep->fotg210->reg +
353 if (length > req->req.length - req->req.actual)
354 length = req->req.length - req->req.actual;
358 if (req->req.length
574 u32 length = 8; local
[all...]
/linux-master/fs/xfs/
H A Dxfs_iomap.c69 * length.
128 iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount);
156 iomap->length = XFS_FSB_TO_B(ip->i_mount, end_fsb - offset_fsb);
469 * length, then use the current offset as the basis. This ensures that
785 loff_t length,
794 xfs_fileoff_t end_fsb = xfs_iomap_end_fsb(mp, offset, length);
811 if (offset + length > i_size_read(inode))
837 length = XFS_FSB_TO_B(mp, end_fsb) - offset;
864 ((offset | length) & mp->m_blockmask))
870 trace_xfs_iomap_found(ip, offset, length, XFS_DATA_FOR
782 xfs_direct_write_iomap_begin( struct inode *inode, loff_t offset, loff_t length, unsigned flags, struct iomap *iomap, struct iomap *srcmap) argument
929 xfs_dax_write_iomap_end( struct inode *inode, loff_t pos, loff_t length, ssize_t written, unsigned flags, struct iomap *iomap) argument
1192 xfs_buffered_write_delalloc_punch( struct inode *inode, loff_t offset, loff_t length) argument
1202 xfs_buffered_write_iomap_end( struct inode *inode, loff_t offset, loff_t length, ssize_t written, unsigned flags, struct iomap *iomap) argument
1239 xfs_read_iomap_begin( struct inode *inode, loff_t offset, loff_t length, unsigned flags, struct iomap *iomap, struct iomap *srcmap) argument
1284 xfs_seek_iomap_begin( struct inode *inode, loff_t offset, loff_t length, unsigned flags, struct iomap *iomap, struct iomap *srcmap) argument
1372 xfs_xattr_iomap_begin( struct inode *inode, loff_t offset, loff_t length, unsigned flags, struct iomap *iomap, struct iomap *srcmap) argument
[all...]

Completed in 254 milliseconds

<<21222324252627282930>>