Searched refs:length (Results 701 - 725 of 4017) sorted by relevance

<<21222324252627282930>>

/linux-master/drivers/mmc/host/
H A Drenesas_sdhi_sys_dmac.c169 if (sg_tmp->length & align) {
175 if ((!aligned && (host->sg_len > 1 || sg->length > PAGE_SIZE ||
181 if (sg->length < TMIO_MMC_MIN_DMA_LEN)
186 sg_init_one(&host->bounce_sg, host->bounce_buf, sg->length);
241 if (sg_tmp->length & align) {
247 if ((!aligned && (host->sg_len > 1 || sg->length > PAGE_SIZE ||
253 if (sg->length < TMIO_MMC_MIN_DMA_LEN)
260 sg_init_one(&host->bounce_sg, host->bounce_buf, sg->length);
261 memcpy(host->bounce_buf, sg_vaddr + sg->offset, host->bounce_sg.length);
/linux-master/drivers/video/fbdev/geode/
H A Dgx1fb_core.c110 var->red.offset = 11; var->red.length = 5;
111 var->green.offset = 5; var->green.length = 6;
112 var->blue.offset = 0; var->blue.length = 5;
113 var->transp.offset = 0; var->transp.length = 0;
115 var->red.offset = 0; var->red.length = 8;
116 var->green.offset = 0; var->green.length = 8;
117 var->blue.offset = 0; var->blue.length = 8;
118 var->transp.offset = 0; var->transp.length = 0;
150 chan >>= 16 - bf->length;
/linux-master/drivers/s390/char/
H A Dsclp_tty.c355 * returns length of resulting string
398 /* return length of reformatted string. */
408 count = sv->length - sizeof(*sv);
423 end = (void *) sv + sv->length;
424 for (sv = sv + 1; (void *) sv < end; sv = (void *) sv + sv->length)
434 end = (void *) v + v->length;
436 (void *) sv < end; sv = (void *) sv + sv->length)
446 end = (void *) v + v->length;
447 for (v = v + 1; (void *) v < end; v = (void *) v + v->length)
455 v = sclp_find_gds_vector(v + 1, (void *) v + v->length, GDS_ID_CPMS
[all...]
H A Dsclp_sdias.c45 min_t(unsigned long, sizeof(sdias_evbuf), evbuf->length));
117 sccb->hdr.length = sizeof(*sccb);
118 sccb->evbuf.hdr.length = sizeof(struct sdias_evbuf);
177 sccb->hdr.length = sizeof(*sccb);
178 sccb->evbuf.hdr.length = sizeof(struct sdias_evbuf);
H A Dsclp_ftp.c62 evbuf->length < SCLP_DIAG_FTP_EVBUF_LEN)
77 sclp_ftp_length = diag->mdd.ftp.length;
103 sccb->hdr.length = SCLP_DIAG_FTP_EVBUF_LEN +
106 sccb->evbuf.hdr.length = SCLP_DIAG_FTP_EVBUF_LEN;
117 sccb->evbuf.mdd.ftp.length = ftp->len;
/linux-master/drivers/gpu/drm/
H A Ddrm_fb_helper.c815 red >>= 16 - info->var.red.length;
816 green >>= 16 - info->var.green.length;
817 blue >>= 16 - info->var.blue.length;
821 if (info->var.transp.length > 0) {
822 u32 mask = (1 << info->var.transp.length) - 1;
1115 var_1->red.length == var_2->red.length &&
1118 var_1->green.length == var_2->green.length &&
1121 var_1->blue.length
[all...]
/linux-master/drivers/iommu/iommufd/
H A Dioas.c213 if (cmd->iova >= ULONG_MAX || cmd->length >= ULONG_MAX)
223 u64_to_user_ptr(cmd->user_va), cmd->length,
252 if (cmd->length >= ULONG_MAX || cmd->src_iova >= ULONG_MAX ||
259 rc = iopt_get_pages(&src_ioas->iopt, cmd->src_iova, cmd->length,
274 rc = iopt_map_pages(&dst_ioas->iopt, &pages_list, cmd->length, &iova,
299 if (cmd->iova == 0 && cmd->length == U64_MAX) {
304 if (cmd->iova >= ULONG_MAX || cmd->length >= ULONG_MAX) {
308 rc = iopt_unmap_iova(&ioas->iopt, cmd->iova, cmd->length,
314 cmd->length = unmapped;
/linux-master/drivers/media/usb/stk1160/
H A Dstk1160-video.c140 if (offset > buf->length) {
144 if (lencopy > buf->length - offset) {
145 lencopy = buf->length - offset;
160 (unsigned long)buf->mem + buf->length) {
185 if (offset > buf->length) {
189 if (lencopy > buf->length - offset) {
190 lencopy = buf->length - offset;
204 (unsigned long)buf->mem + buf->length) {
243 /* Get packet actual length and pointer to data */
257 * but not always 8-byte long so we don't check packet length
[all...]
/linux-master/drivers/iio/buffer/
H A Dindustrialio-buffer-dma.c71 * for the transfer length it might choose to use less than the full size. In
298 queue->buffer.length, 2);
667 * @buffer: Buffer to set the length for
668 * @length: The new buffer length
673 int iio_dma_buffer_set_length(struct iio_buffer *buffer, unsigned int length) argument
676 if (length < 2)
677 length = 2;
678 buffer->length = length;
[all...]
/linux-master/drivers/gpu/drm/nouveau/nvkm/core/
H A Dgpuobj.c192 gpuobj->size = gpuobj->node->length;
262 u32 length)
266 for (i = 0; i < length; i += 4)
272 u32 length)
276 for (i = 0; i < length; i += 4)
261 nvkm_gpuobj_memcpy_to(struct nvkm_gpuobj *dst, u32 dstoffset, void *src, u32 length) argument
271 nvkm_gpuobj_memcpy_from(void *dst, struct nvkm_gpuobj *src, u32 srcoffset, u32 length) argument
/linux-master/drivers/usb/misc/
H A Demi26.c30 const unsigned char *data, int length,
39 const unsigned char *data, int length,
43 unsigned char *buffer = kmemdup(data, length, GFP_KERNEL);
46 dev_err(&dev->dev, "kmalloc(%d) failed.\n", length);
49 /* Note: usb_control_msg returns negative value on error or length of the
51 result = usb_control_msg (dev, usb_sndctrlpipe(dev, 0), request, 0x40, address, 0, buffer, length, 300);
38 emi26_writememory(struct usb_device *dev, int address, const unsigned char *data, int length, __u8 request) argument
H A Demi62.c39 const unsigned char *data, int length,
48 const unsigned char *data, int length,
52 unsigned char *buffer = kmemdup(data, length, GFP_KERNEL);
55 dev_err(&dev->dev, "kmalloc(%d) failed.\n", length);
58 /* Note: usb_control_msg returns negative value on error or length of the
60 result = usb_control_msg (dev, usb_sndctrlpipe(dev, 0), request, 0x40, address, 0, buffer, length, 300);
47 emi62_writememory(struct usb_device *dev, int address, const unsigned char *data, int length, __u8 request) argument
/linux-master/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00queue.h274 * @length: Length of the entire frame.
276 * @length_high: PLCP length high word.
277 * @length_low: PLCP length low word.
296 u16 length; member in struct:txentry_desc
435 * @length: Number of frames in queue.
465 unsigned short length; member in struct:data_queue
593 return queue->length == 0;
602 return queue->length == queue->limit;
611 return queue->limit - queue->length;
/linux-master/fs/ntfs3/lib/
H A Ddecompress_common.h223 * symbol and codeword length. The low 11 bits are the
224 * symbol, and the high 5 bits are the codeword length.
245 * The length and offset must be already validated --- that is, (dst - offset)
246 * can't underrun the output buffer, and (dst + length) can't overrun the output
247 * buffer. Also, the length cannot be 0.
252 * Returns dst + length.
254 static forceinline u8 *lz_copy(u8 *dst, u32 length, u32 offset, const u8 *bufend, argument
266 * Also note that we might copy more than the length of the match. For
267 * example, if a word is 8 bytes and the match is of length 5, then
273 u8 * const end = dst + length;
[all...]
/linux-master/drivers/usb/gadget/function/
H A Dstorage_common.h39 /* const u8 * */ buf, /* unsigned */ length) \
41 if (length < 512) { \
42 DBG(fsg, "%s, length %u:\n", label, length); \
44 16, 1, buf, length, 0); \
53 /* const u8 * */ buf, /* unsigned */ length) do { } while (0)
130 /* Default size of buffer length. */
151 * So we will record the intended request length here.
/linux-master/drivers/acpi/
H A Dsbshc.c106 u8 address, u8 command, u8 *data, u8 length)
126 smb_hc_write(hc, ACPI_SMB_BLOCK_COUNT, length);
127 for (i = 0; i < length; ++i)
171 u8 command, u8 *data, u8 length)
173 return acpi_smbus_transaction(hc, protocol, address, command, data, length);
105 acpi_smbus_transaction(struct acpi_smb_hc *hc, u8 protocol, u8 address, u8 command, u8 *data, u8 length) argument
170 acpi_smbus_write(struct acpi_smb_hc *hc, u8 protocol, u8 address, u8 command, u8 *data, u8 length) argument
/linux-master/drivers/acpi/acpica/
H A Dutxface.c403 * length - Length
416 acpi_size length, u8 warn)
427 (u32)length, warn);
440 * length - Length of the in_buffer
452 acpi_size length, struct acpi_pld_info **return_buffer)
461 || (length < ACPI_PLD_REV1_BUFFER_SIZE)) {
511 if (length >= ACPI_PLD_REV2_BUFFER_SIZE) {
414 acpi_check_address_range(acpi_adr_space_type space_id, acpi_physical_address address, acpi_size length, u8 warn) argument
/linux-master/include/acpi/
H A Dactbl.h70 u32 length; /* Length of table in bytes, including this header */ member in struct:acpi_table_header
111 u32 length; /* Table length in bytes, including header (ACPI 2.0+) */ member in struct:acpi_table_rsdp
130 u32 length; member in struct:acpi_rsdp_extension
164 u32 length; /* Length of structure, in bytes */ member in struct:acpi_table_facs
338 u32 length; /* Length fixed at 32 bits (fixed in table header) */ member in struct:acpi_table_desc
381 * at the FADT length because the version number essentially tells
383 * match the expected length. In other words, the length of the
/linux-master/fs/nfs/
H A Dnfs2xdr.c384 const char *name, u32 length)
388 WARN_ON_ONCE(length > NFS2_MAXNAMLEN);
389 p = xdr_reserve_space(xdr, 4 + length);
390 xdr_encode_opaque(p, name, length);
394 const char **name, u32 *length)
409 *length = count;
421 static void encode_path(struct xdr_stream *xdr, struct page **pages, u32 length) argument
426 *p = cpu_to_be32(length);
427 xdr_write_pages(xdr, pages, 0, length);
432 u32 length, recv local
383 encode_filename(struct xdr_stream *xdr, const char *name, u32 length) argument
393 decode_filename_inline(struct xdr_stream *xdr, const char **name, u32 *length) argument
494 encode_diropargs(struct xdr_stream *xdr, const struct nfs_fh *fh, const char *name, u32 length) argument
[all...]
/linux-master/drivers/rtc/
H A Drtc-ds2404.c101 int length, u8 *out)
107 while (length--)
112 int length, u8 *out)
122 for (i = 0; i < length; i++)
132 for (i = 0; i < length; i++) {
100 ds2404_read_memory(struct ds2404 *chip, u16 offset, int length, u8 *out) argument
111 ds2404_write_memory(struct ds2404 *chip, u16 offset, int length, u8 *out) argument
/linux-master/drivers/mtd/nand/spi/
H A Dmicron.c67 region->length = mtd->oobsize / 2;
80 region->length = (mtd->oobsize / 2) - 2;
100 region->length = 8;
116 region->length = 8;
120 region->length = 6;
/linux-master/drivers/soc/qcom/
H A Dsmd-rpm.c39 * @length: length of the payload
43 __le32 length; member in struct:qcom_rpm_header
52 * @data_len: length of the payload following this header
65 * @length: the size of this message, including the message header
73 __le32 length; member in struct:qcom_rpm_message
121 pkt->hdr.length = cpu_to_le32(sizeof(struct qcom_rpm_request) + count);
154 size_t hdr_length = le32_to_cpu(hdr->length);
171 msg_length = le32_to_cpu(msg->length);
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dbase.c121 nvbios_extend(struct nvkm_bios *bios, u32 length) argument
123 if (bios->size < length) {
125 if (!(bios->data = kmalloc(length, GFP_KERNEL))) {
130 bios->size = length;
195 if (!bit_entry(bios, 'i', &bit_i) && bit_i.length >= 4) {
/linux-master/drivers/virt/acrn/
H A Dioeventfd.c23 * @length: Length of I/O range
32 int length; member in struct:hsm_ioeventfd
107 p->length = args->len;
130 p->addr, p->addr + p->length - 1);
163 p->addr, p->addr + p->length - 1);
181 if (p->type == type && p->addr == addr && p->length >= len &&
/linux-master/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-debug.h138 le32_to_cpu(trb->length),
162 u32 length, u32 buffer)
180 "type: '%s', Buffer: %08x, length: %ld, burst len: %ld, "
183 buffer, TRB_LEN(length),
184 TRB_FIELD_TO_BURST(length),
194 buffer, length, flags);
161 cdns2_decode_trb(char *str, size_t size, u32 flags, u32 length, u32 buffer) argument

Completed in 566 milliseconds

<<21222324252627282930>>