/linux-master/drivers/acpi/acpica/ |
H A D | dsopcode.c | 134 "Attempt to CreateField of length zero")); 194 /* Entire field must fit within the current length of the buffer */ 196 if ((bit_offset + bit_count) > (8 * (u32)buffer_desc->buffer.length)) { 199 "Field [%4.4s] at bit offset/length %u/%u " 203 8 * (u32)buffer_desc->buffer.length)); 245 /* Now the address and length are valid for this buffer_field */ 279 * This is where we evaluate the address and length fields of the 288 /* Evaluate/create the address and length operands */ 347 * DESCRIPTION: Get region address and length 366 * This is where we evaluate the address and length field 575 u32 length; local [all...] |
H A D | exconcat.c | 220 string.length + 222 string.length)); 242 length + 244 buffer.length)); 255 operand0->buffer.length); 256 memcpy(buffer + operand0->buffer.length, 258 local_operand1->buffer.length); 356 * Note2: zero-length buffers are allowed; treated like one end_tag 359 /* Get the length of the first resource template */ 368 /* Get the length o [all...] |
H A D | utresrc.c | 73 * Resource types, used to validate the resource length field. 74 * The length of fixed-length types must match exactly, variable 75 * lengths must meet the minimum required length, etc. 149 u32 length; local 165 /* Walk the byte list, abort on any invalid descriptor type or length */ 176 * length may be bogus also. 181 /* Get the length of this descriptor */ 183 length = acpi_ut_get_descriptor_length(aml); 189 user_function(aml, length, offse [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | tcp_mmap.c | 19 * (4096 : page size on x86, 12: TCP TS option length) 105 void hash_zone(void *zone, unsigned int length) argument 109 while (length >= 8*sizeof(long)) { 120 length -= 8*sizeof(long); 122 while (length >= 1) { 125 length--; 224 zc.length = min(chunk_size, FILE_SZ - total); 231 if (zc.length) { 232 assert(zc.length <= chunk_size); 234 EVP_DigestUpdate(ctx, addr, zc.length); [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/link/protocols/ |
H A D | link_ddc.c | 104 .length = DDC_MIN(payload_size, len - pos), 294 payload->length; 296 payload->length - retrieved : DEFAULT_AUX_MAX_DATA_SIZE; 302 current_payload.length = payload_length; 312 } while (retrieved < payload->length && ret == true); 356 payload.length = write_size; 368 payload.length = read_size; 463 bool link_configure_fixed_vs_pe_retimer(struct ddc_service *ddc, const uint8_t *data, uint32_t length) argument 469 .length = length, 481 link_query_fixed_vs_pe_retimer(struct ddc_service *ddc, uint8_t *data, uint32_t length) argument [all...] |
/linux-master/drivers/crypto/intel/qat/qat_common/ |
H A D | qat_bl.c | 100 if (!sg->length) 103 if (left >= sg->length) { 104 left -= sg->length; 108 sg->length - left, 110 bufl->buffers[y].len = sg->length; 156 if (!sg->length) 159 if (left >= sg->length) { 160 left -= sg->length; 164 sg->length - left, 168 buffers[y].len = sg->length; [all...] |
/linux-master/fs/xfs/ |
H A D | xfs_extent_busy.c | 39 new->length = len; 54 ASSERT(new->bno + new->length <= busyp->bno); 57 ASSERT(bno >= busyp->bno + busyp->length); 125 if (bno < busyp->bno + busyp->length) 129 /* bno matches busyp, length determines exact match */ 130 match = (busyp->length == len) ? 1 : -1; 144 * number or length. 161 xfs_agblock_t bend = bbno + busyp->length; 238 * so set the length to zero to mark it invalid. 245 busyp->length [all...] |
/linux-master/drivers/media/test-drivers/vidtv/ |
H A D | vidtv_psi.c | 144 pr_warn_ratelimited("section length: %d > %d, old len was %d\n", 294 desc->length = sizeof_field(struct vidtv_psi_desc_service, service_type) 343 desc->length = sizeof_field(struct vidtv_psi_desc_registration, format_id) 369 desc->length = network_name_len; 391 u16 length = 0; local 414 length += sizeof(struct vidtv_psi_desc_service_list_entry) - 426 desc->length = length; 450 desc->length = ISO_LANGUAGE_CODE_LEN + 537 curr = kmemdup(desc, sizeof(*desc) + desc->length, GFP_KERNE 611 u32 length = 0; local 805 u16 length = 0; local 827 u16 length = 0; local 862 u16 length = 0; local 1572 u16 length = 0; local 1807 u16 length = 0; local [all...] |
/linux-master/drivers/mtd/devices/ |
H A D | pmc551.c | 657 int length = 0; local 701 if ((length = fixup_pmc551(PCI_Device)) <= 0) { 711 length = msize; 713 "size 0x%x\n", length); 715 msize = length; 730 if (asize > length) { 732 "fit %dM\n", length >> 20); 733 priv->asize = asize = length; 734 } else if (asize == 0 || asize == length) { 736 "size %dM\n", length >> 2 [all...] |
/linux-master/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00debug.c | 147 rt2x00_dbg(rt2x00dev, "txrx dump queue length exceeded\n"); 243 size_t length, 261 status = min_t(size_t, skb->len, length); 299 size_t length, 325 queue->count, queue->limit, queue->length, 334 size = min(size, length); 358 size_t length, 387 size = min(size, length); 412 size_t length, \ 438 return simple_read_from_buffer(buf, length, offse 241 rt2x00debug_read_queue_dump(struct file *file, char __user *buf, size_t length, loff_t *offset) argument 297 rt2x00debug_read_queue_stats(struct file *file, char __user *buf, size_t length, loff_t *offset) argument 356 rt2x00debug_read_crypto_stats(struct file *file, char __user *buf, size_t length, loff_t *offset) argument 501 rt2x00debug_read_dev_flags(struct file *file, char __user *buf, size_t length, loff_t *offset) argument 526 rt2x00debug_read_cap_flags(struct file *file, char __user *buf, size_t length, loff_t *offset) argument 551 rt2x00debug_write_restart_hw(struct file *file, const char __user *buf, size_t length, loff_t *offset) argument [all...] |
/linux-master/arch/x86/crypto/ |
H A D | aegis128-aesni-glue.c | 29 void *state, unsigned int length, const void *data); 32 void *state, unsigned int length, const void *src, void *dst); 35 void *state, unsigned int length, const void *src, void *dst); 38 void *state, unsigned int length, const void *src, void *dst); 41 void *state, unsigned int length, const void *src, void *dst); 63 void (*crypt_blocks)(void *state, unsigned int length, const void *src, 65 void (*crypt_tail)(void *state, unsigned int length, const void *src,
|
/linux-master/sound/firewire/fireworks/ |
H A D | fireworks_hwdep.c | 25 unsigned int length, till_end, type; local 53 length = be32_to_cpu(t->length) * sizeof(__be32); 56 if (remained < length) 60 while (length > 0) { 63 till_end = min_t(unsigned int, length, till_end); 76 length -= till_end; 85 * last position for each task is different depending on the length of 89 * sequence of responses depending on variation of buffer length.
|
/linux-master/security/keys/ |
H A D | big_key.c | 26 size_t length; member in struct:big_key_payload 75 payload->length = datalen; 171 if (key_is_positive(key) && payload->length > BIG_KEY_FILE_THRESHOLD) 182 if (payload->length > BIG_KEY_FILE_THRESHOLD) { 219 payload->length, 220 payload->length > BIG_KEY_FILE_THRESHOLD ? "file" : "buff"); 230 size_t datalen = payload->length;
|
/linux-master/arch/arm/mach-footbridge/ |
H A D | dma-isa.c | 64 unsigned long address, length; local 94 dma->buf.length = dma->count; 101 length = dma->buf.length - 1; 108 length >>= 1; 116 outb(length, isa_dma_port[chan][ISA_DMA_COUNT]); 117 outb(length >> 8, isa_dma_port[chan][ISA_DMA_COUNT]);
|
/linux-master/lib/zstd/common/ |
H A D | zstd_internal.h | 201 * Custom version of ZSTD_memcpy(), can over read/write up to WILDCOPY_OVERLENGTH bytes (if length==0) 208 void ZSTD_wildcopy(void* dst, const void* src, ptrdiff_t length, ZSTD_overlap_e const ovtype) argument 213 BYTE* const oend = op + length; 222 /* Separate out the first COPY16() call because the copy length is 235 if (16 >= length) return; 249 size_t const length = MIN(dstCapacity, srcSize); local 250 if (length > 0) { 251 ZSTD_memcpy(dst, src, length); 253 return length; 305 U32 longLengthPos; /* Index of the sequence to apply long length modificatio [all...] |
/linux-master/include/linux/ |
H A D | hdmi.h | 68 unsigned char length; member in struct:hdmi_any_infoframe 172 unsigned char length; member in struct:hdmi_avi_infoframe 196 unsigned char length; member in struct:hdmi_drm_infoframe 246 unsigned char length; member in struct:hdmi_spd_infoframe 322 unsigned char length; member in struct:hdmi_audio_infoframe 362 unsigned char length; member in struct:hdmi_vendor_infoframe 407 unsigned char length; member in struct:hdmi_vendor_any_infoframe::__anon3378
|
/linux-master/drivers/usb/gadget/ |
H A D | config.c | 27 * Copies descriptors into the buffer, returning the length or a 63 * @length: Length of buffer. If this is not big enough to hold the 67 * for that configuration. It returns the buffer length or a negative 68 * status code. The config.wTotalLength field is set to match the length 79 unsigned length, 87 if (length < USB_DT_CONFIG_SIZE || !desc) 93 length - USB_DT_CONFIG_SIZE, desc); 217 unsigned length = 0; local 220 length = sizeof(struct usb_otg20_descriptor); 222 length 76 usb_gadget_config_buf( const struct usb_config_descriptor *config, void *buf, unsigned length, const struct usb_descriptor_header **desc ) argument [all...] |
/linux-master/drivers/infiniband/hw/mlx5/ |
H A D | umr.c | 480 static void mlx5r_umr_free_xlt(void *xlt, size_t length) argument 487 free_pages((unsigned long)xlt, get_order(length)); 495 dma_unmap_single(ddev, sg->addr, sg->length, DMA_TO_DEVICE); 496 mlx5r_umr_free_xlt(xlt, sg->length); 513 sg->length = nents * ent_size; 514 dma = dma_map_single(ddev, xlt, sg->length, DMA_TO_DEVICE); 517 mlx5r_umr_free_xlt(xlt, sg->length); 537 cpu_to_be16(mlx5r_umr_get_xlt_octo(sg->length)); 548 MLX5_SET64(mkc, mkey_seg, len, mr->ibmr.length); 558 data_seg->byte_count = cpu_to_be32(sg->length); [all...] |
/linux-master/fs/smb/server/ |
H A D | asn1.c | 30 ksmbd_decode_negTokenInit(unsigned char *security_blob, int length, argument 34 security_blob, length); 38 ksmbd_decode_negTokenTarg(unsigned char *security_blob, int length, argument 42 security_blob, length); 60 int length) 64 char hdr_len = compute_asn_hdr_len_bytes(length); 65 int len = length + 2 + hdr_len; 59 encode_asn_tag(char *buf, unsigned int *ofs, char tag, char seq, int length) argument
|
/linux-master/drivers/iommu/ |
H A D | of_iommu.c | 173 phys_addr_t start, size_t length) 175 phys_addr_t end = start + length - 1; 249 size_t length; local 254 maps = of_translate_dma_region(np, maps, &iova, &length); 255 if (length == 0) { 259 type = iommu_resv_region_get_type(dev, &phys, iova, length); 261 region = iommu_alloc_resv_region(iova, length, prot, type, 171 iommu_resv_region_get_type(struct device *dev, struct resource *phys, phys_addr_t start, size_t length) argument
|
/linux-master/drivers/usb/serial/ |
H A D | safe_serial.c | 46 * with the length set and the CRC set to zero. The CRC is then OR'd into 189 unsigned char length = urb->actual_length; local 193 if (!length) 199 if (length < 2) { 204 fcs = fcs_compute10(data, length, CRC10_INITFCS); 210 actual_length = data[length - 2] >> 2; 211 if (actual_length > (length - 2)) { 213 __func__, actual_length, length); 217 length = actual_length; 219 tty_insert_flip_string(&port->port, data, length); [all...] |
/linux-master/drivers/char/tpm/ |
H A D | xen-tpmfront.c | 157 shr->length = count; 181 size_t length = shr->length; local 196 if (offset + length > PAGE_SIZE) 197 length = PAGE_SIZE - offset; 199 if (length > count) 200 length = count; 202 memcpy(buf, offset + (u8 *)shr, length); 204 return length;
|
/linux-master/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_i2c_sw.c | 254 uint32_t length, 262 while (i < length) { 276 uint32_t length, 284 while (i < length) { 286 i < length - 1)) 413 req->address, req->length, req->data); 418 req->address, req->length, req->data); 455 request.length = payload->length; 249 i2c_write_sw( struct dc_context *ctx, struct ddc *ddc_handle, uint16_t clock_delay_div_4, uint8_t address, uint32_t length, const uint8_t *data) argument 271 i2c_read_sw( struct dc_context *ctx, struct ddc *ddc_handle, uint16_t clock_delay_div_4, uint8_t address, uint32_t length, uint8_t *data) argument
|
/linux-master/drivers/acpi/ |
H A D | processor_core.c | 75 if ((entry->length < 16) || (lsapic->uid != acpi_id)) 169 madt_end = entry + madt->header.length; 196 entry += header->length; 228 if (!buffer.length || !buffer.pointer) 233 obj->buffer.length < sizeof(struct acpi_subtable_header)) { 348 madt_end = entry + madt->header.length; 358 entry += hdr->length; 375 if (!buffer.length || !buffer.pointer) 380 obj->buffer.length < sizeof(struct acpi_subtable_header))
|
/linux-master/drivers/misc/mei/ |
H A D | bus.c | 29 * @length: buffer length 35 ssize_t __mei_cl_send(struct mei_cl *cl, const u8 *buf, size_t length, u8 vtag, argument 38 return __mei_cl_send_timeout(cl, buf, length, vtag, mode, MAX_SCHEDULE_TIMEOUT); 46 * @length: buffer length 55 ssize_t __mei_cl_send_timeout(struct mei_cl *cl, const u8 *buf, size_t length, u8 vtag, argument 92 if (length > mei_cl_mtu(cl)) { 114 cb = mei_cl_alloc_cb(cl, length, MEI_FOP_WRITE, NULL); 123 memcpy(cb->buf.data, buf, length); 154 __mei_cl_recv(struct mei_cl *cl, u8 *buf, size_t length, u8 *vtag, unsigned int mode, unsigned long timeout) argument 272 mei_cldev_send_vtag(struct mei_cl_device *cldev, const u8 *buf, size_t length, u8 vtag) argument 295 mei_cldev_send_vtag_timeout(struct mei_cl_device *cldev, const u8 *buf, size_t length, u8 vtag, unsigned long timeout) argument 317 mei_cldev_recv_vtag(struct mei_cl_device *cldev, u8 *buf, size_t length, u8 *vtag) argument 339 mei_cldev_recv_nonblock_vtag(struct mei_cl_device *cldev, u8 *buf, size_t length, u8 *vtag) argument 360 mei_cldev_recv_timeout(struct mei_cl_device *cldev, u8 *buf, size_t length, unsigned long timeout) argument 381 mei_cldev_recv_vtag_timeout(struct mei_cl_device *cldev, u8 *buf, size_t length, u8 *vtag, unsigned long timeout) argument 401 mei_cldev_send(struct mei_cl_device *cldev, const u8 *buf, size_t length) argument 419 mei_cldev_send_timeout(struct mei_cl_device *cldev, const u8 *buf, size_t length, unsigned long timeout) argument 435 mei_cldev_recv(struct mei_cl_device *cldev, u8 *buf, size_t length) argument 451 mei_cldev_recv_nonblock(struct mei_cl_device *cldev, u8 *buf, size_t length) argument [all...] |