/linux-master/sound/hda/ |
H A D | intel-nhlt.c | 42 if (nhlt->header.length <= sizeof(struct acpi_table_header)) { 48 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length)) { 132 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length); 153 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length); 228 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length); 340 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length); 366 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length);
|
/linux-master/drivers/infiniband/sw/rxe/ |
H A D | rxe_verbs.c | 671 unsigned long length = 0; local 687 length = 0; 689 length += ibwr->sg_list[i].length; 691 if (length > (1UL << 31)) { 692 rxe_err_qp(qp, "message length too long\n"); 697 if (length != 8) { 698 rxe_err_qp(qp, "atomic length != 8\n"); 711 if (length > sq->max_inline) { 712 rxe_err_qp(qp, "inline length to 820 init_send_wqe(struct rxe_qp *qp, const struct ib_send_wr *ibwr, unsigned int mask, unsigned int length, struct rxe_send_wqe *wqe) argument 864 unsigned int length; local 952 unsigned long length; local 1251 rxe_reg_user_mr(struct ib_pd *ibpd, u64 start, u64 length, u64 iova, int access, struct ib_udata *udata) argument 1299 rxe_rereg_user_mr(struct ib_mr *ibmr, int flags, u64 start, u64 length, u64 iova, int access, struct ib_pd *ibpd, struct ib_udata *udata) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvif/ |
H A D | object.c | 187 u64 *handle, u64 *length) 203 *length = args->map.length; 228 u64 handle, length; local 229 int ret = nvif_object_map_handle(object, argv, argc, &handle, &length); 234 length); 236 object->map.size = length; 186 nvif_object_map_handle(struct nvif_object *object, void *argv, u32 argc, u64 *handle, u64 *length) argument
|
/linux-master/drivers/media/usb/ttusb-dec/ |
H A D | ttusb_dec.c | 158 int length; member in struct:urb_frame 460 static void ttusb_dec_process_pva(struct ttusb_dec *dec, u8 *pva, int length) argument 462 if (length < 8) { 467 if (length > 8 + MAX_PVA_LENGTH) { 480 dec->video_filter->feed->cb.ts(pva, length, NULL, 0, 509 length - 12 - prebytes); 510 dec->v_pes_length = 14 + length - 12 - prebytes; 515 memcpy(&dec->v_pes[9], &pva[8], length - 8); 516 dec->v_pes_length = 9 + length - 8; 541 dec->audio_filter->feed->cb.ts(pva, length, NUL 557 ttusb_dec_process_filter(struct ttusb_dec *dec, u8 *packet, int length) argument 633 swap_bytes(u8 *b, int length) argument 640 ttusb_dec_process_urb_frame(struct ttusb_dec *dec, u8 *b, int length) argument 804 int length; local [all...] |
/linux-master/drivers/staging/rtl8723bs/core/ |
H A D | rtw_security.c | 43 signed int curfragnum, length; local 72 length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; 74 crc.f0 = cpu_to_le32(~crc32_le(~0, payload, length)); 77 arc4_crypt(ctx, payload, payload, length); 78 arc4_crypt(ctx, payload + length, crc.f1, 4); 81 length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len; 82 crc.f0 = cpu_to_le32(~crc32_le(~0, payload, length)); 84 arc4_crypt(ctx, payload, payload, length); 85 arc4_crypt(ctx, payload + length, crc.f1, 4); 98 signed int length; local 469 signed int curfragnum, length; local 541 signed int length; local 1037 signed int curfragnum, length; local 1296 signed int length; local [all...] |
/linux-master/drivers/i2c/busses/ |
H A D | i2c-mlxbf.c | 383 u32 length; /* Buffer length in bytes. */ member in struct:mlxbf_i2c_smbus_operation 632 const u8 *data, u8 length, u32 addr, 638 aligned_length = round_up(length, 4); 658 u8 *data, u8 length, u32 addr, 674 for (offset = 0; offset < (length & ~mask); offset += sizeof(u32)) { 682 if (!(length & mask)) 690 for (byte = 0; byte < (length & mask); byte++) { 793 write_len += operation->length; 794 if (data_idx + operation->length > 631 mlxbf_i2c_smbus_write_data(struct mlxbf_i2c_priv *priv, const u8 *data, u8 length, u32 addr, bool is_master) argument 657 mlxbf_i2c_smbus_read_data(struct mlxbf_i2c_priv *priv, u8 *data, u8 length, u32 addr, bool is_master) argument 1020 u32 length; local [all...] |
/linux-master/tools/testing/selftests/iommu/ |
H A D | iommufd.c | 128 TEST_LENGTH(iommu_ioas_unmap, IOMMU_IOAS_UNMAP, length); 358 /* Check data_type by passing zero-length array */ 680 .length = PAGE_SIZE * 100 }, 700 size_t length = PAGE_SIZE * (i + 1); local 703 test_ioctl_ioas_map(buffer, length, &iovas[i]); 705 test_ioctl_ioas_map((void *)(1UL << 31), length, 708 EXPECT_EQ(0, iovas[i] % (1UL << (ffs(length) - 1))); 718 size_t length = PAGE_SIZE * (i + 1); local 720 test_ioctl_ioas_map(buffer, length, &iovas[i]); 721 EXPECT_EQ(0, iovas[i] % (1UL << (ffs(length) 747 size_t length = PAGE_SIZE * (i + 1); local 1238 unsigned int length; local 1510 size_t length = end - start; local 1551 size_t length = end - start; local [all...] |
/linux-master/drivers/net/wireless/intel/ipw2x00/ |
H A D | libipw_wx.c | 68 iwe.u.data.length = min(network->ssid_len, (u8) 32); 104 iwe.u.data.length = 0; 190 iwe.u.data.length = p - custom; 191 if (iwe.u.data.length) 199 iwe.u.data.length = network->wpa_ie_len; 208 iwe.u.data.length = network->rsn_ie_len; 219 iwe.u.data.length = p - custom; 220 if (iwe.u.data.length) 241 iwe.u.data.length = p - custom; 259 char *stop = ev + wrqu->data.length; [all...] |
/linux-master/drivers/thunderbolt/ |
H A D | ctl.c | 215 u32 length) 225 if (WARN(length != addr.length, "wrong space (expected %x, got %x\n)", 226 length, addr.length)) 279 * Invalid cfg_space/offset/length combination in 928 * @length: Number of dwords to read 935 u32 offset, u32 length, int timeout_msec) 944 .length = length, 213 check_config_address(struct tb_cfg_address addr, enum tb_cfg_space space, u32 offset, u32 length) argument 933 tb_cfg_read_raw(struct tb_ctl *ctl, void *buffer, u64 route, u32 port, enum tb_cfg_space space, u32 offset, u32 length, int timeout_msec) argument 1004 tb_cfg_write_raw(struct tb_ctl *ctl, const void *buffer, u64 route, u32 port, enum tb_cfg_space space, u32 offset, u32 length, int timeout_msec) argument 1085 tb_cfg_read(struct tb_ctl *ctl, void *buffer, u64 route, u32 port, enum tb_cfg_space space, u32 offset, u32 length) argument 1111 tb_cfg_write(struct tb_ctl *ctl, const void *buffer, u64 route, u32 port, enum tb_cfg_space space, u32 offset, u32 length) argument [all...] |
/linux-master/net/sunrpc/auth_gss/ |
H A D | gss_krb5_crypto.c | 60 * @conflen: string length to write, in octets 66 * pad minimum plaintext length to at least a single cipher block. 92 * @length: length of input and output buffers, in bytes 108 int length) 115 if (length % crypto_sync_skcipher_blocksize(tfm) != 0) 127 memcpy(out, in, length); 128 sg_init_one(sg, out, length); 132 skcipher_request_set_crypt(req, sg, sg, length, local_iv); 147 * @length 103 krb5_encrypt( struct crypto_sync_skcipher *tfm, void * iv, void * in, void * out, int length) argument 158 krb5_decrypt( struct crypto_sync_skcipher *tfm, void * iv, void * in, void * out, int length) argument [all...] |
/linux-master/drivers/video/fbdev/ |
H A D | offb.c | 106 u32 cr = red >> (16 - info->var.red.length); 107 u32 cg = green >> (16 - info->var.green.length); 108 u32 cb = blue >> (16 - info->var.blue.length); 117 if (info->var.transp.length > 0) { 118 u32 mask = (1 << info->var.transp.length) - 1; 451 var->red.length = 8; 453 var->green.length = 8; 455 var->blue.length = 8; 457 var->transp.length = 0; 462 var->red.length [all...] |
H A D | imxfb.c | 240 .red = {.offset = 16, .length = 8,}, 241 .green = {.offset = 8, .length = 8,}, 242 .blue = {.offset = 0, .length = 8,}, 243 .transp = {.offset = 0, .length = 0,}, 247 .red = {.offset = 11, .length = 5,}, 248 .green = {.offset = 5, .length = 6,}, 249 .blue = {.offset = 0, .length = 5,}, 250 .transp = {.offset = 0, .length = 0,}, 254 .red = {.offset = 8, .length = 4,}, 255 .green = {.offset = 4, .length [all...] |
H A D | asiliantfb.c | 249 var->red.length = var->blue.length = var->green.length = 8; 253 var->green.length = 6; 256 var->green.length = 5; 263 var->red.length = var->blue.length = 5; 266 var->red.length = var->green.length = var->blue.length [all...] |
H A D | macfb.c | 597 macfb_defined.red.length = macfb_defined.bits_per_pixel; 598 macfb_defined.green.length = macfb_defined.bits_per_pixel; 599 macfb_defined.blue.length = macfb_defined.bits_per_pixel; 606 macfb_defined.red.length = macfb_defined.bits_per_pixel; 607 macfb_defined.green.length = macfb_defined.bits_per_pixel; 608 macfb_defined.blue.length = macfb_defined.bits_per_pixel; 614 macfb_defined.transp.length = 1; 616 macfb_defined.red.length = 5; 618 macfb_defined.green.length = 5; 620 macfb_defined.blue.length [all...] |
/linux-master/fs/iomap/ |
H A D | buffered-io.c | 26 typedef int (*iomap_punch_t)(struct inode *inode, loff_t offset, loff_t length); 235 loff_t *pos, loff_t length, size_t *offp, size_t *lenp) 243 size_t plen = min_t(loff_t, folio_size(folio) - poff, length); 249 * per-block uptodate status and adjust the offset and length if needed 280 if (orig_pos <= isize && orig_pos + length > isize) { 321 iomap_finish_folio_read(fi.folio, fi.offset, fi.length, error); 351 if (WARN_ON_ONCE(size > iomap->length)) 376 loff_t length = iomap_length(iter) - offset; local 388 iomap_adjust_read_range(iter->inode, folio, &pos, length, &poff, &plen); 411 unsigned int nr_vecs = DIV_ROUND_UP(length, PAGE_SIZ 234 iomap_adjust_read_range(struct inode *inode, struct folio *folio, loff_t *pos, loff_t length, size_t *offp, size_t *lenp) argument 486 loff_t length = iomap_length(iter); local 900 loff_t length = iomap_length(iter); local 1281 iomap_file_buffered_write_punch_delalloc(struct inode *inode, struct iomap *iomap, loff_t pos, loff_t length, ssize_t written, iomap_punch_t punch) argument 1321 loff_t length = iomap_length(iter); local 1387 loff_t length = iomap_length(iter); local 1464 loff_t length = iomap_length(iter); local [all...] |
/linux-master/drivers/gpu/drm/i915/ |
H A D | i915_cmd_parser.c | 84 * opcode ranges have standard command length encodings. So for commands that 86 * implemented via a per-engine length decoding vfunc. 89 * length encoding for their opcode range, primarily amongst the MI_* commands. 106 * CMD_DESC_FIXED: The command has a fixed length if this is set, 107 * a length mask if not set 109 * standard length encoding for the opcode range in 133 * The command's length. The command is either fixed length (i.e. does 134 * not include a length field) or has a length fiel 142 } length; member in struct:drm_i915_cmd_descriptor 1157 copy_batch(struct drm_i915_gem_object *dst_obj, struct drm_i915_gem_object *src_obj, unsigned long offset, unsigned long length, bool *needs_clflush_after) argument 1242 check_cmd(const struct intel_engine_cs *engine, const struct drm_i915_cmd_descriptor *desc, const u32 *cmd, u32 length) argument 1345 check_bbstart(u32 *cmd, u32 offset, u32 length, u32 batch_length, u64 batch_addr, u64 shadow_addr, const unsigned long *jump_whitelist) argument 1484 u32 length; local [all...] |
/linux-master/drivers/acpi/acpica/ |
H A D | dbtest.c | 254 * For the supported types, get the actual bit length or 255 * byte length. Map the type to one of Integer/String/Buffer. 269 byte_length = obj_desc->string.length; 275 byte_length = obj_desc->buffer.length; 294 * The returned object will be a Buffer if the field length 375 * bit_length - Actual length of the object. Used for 376 * support of arbitrary length field_unit 398 acpi_os_printf(" Invalid length for an Integer: %u", 479 * bit_length - Actual length of the object. 504 acpi_os_printf(" Ignoring zero length buffe [all...] |
H A D | tbdata.c | 57 * Check for a table match on the entire table length, 60 is_identical = (u8)((table_desc->length != table_length || 97 table_desc->length = table->length; 121 * table_length - Where table length is returned 142 acpi_os_map_memory(table_desc->address, table_desc->length); 165 *table_length = table_desc->length; 215 * DESCRIPTION: This function validates the table header to obtain the length 232 /* Get the length of the full table from the header */ 318 &table_desc->length, [all...] |
H A D | nsdump.c | 246 obj_desc->processor.length, 285 obj_desc->buffer.length); 289 if (obj_desc->buffer.length > 0) { 292 (i < obj_desc->buffer.length 307 acpi_os_printf("Len %.2X ", obj_desc->string.length); 322 obj_desc->region.length); 440 /* Name is a Method and its AML offset/length are set */ 456 obj_desc->string.length); 462 obj_desc->buffer.length); 548 bytes_to_dump = obj_desc->string.length; [all...] |
/linux-master/drivers/nfc/st21nfca/ |
H A D | dep.c | 61 u8 length; member in struct:st21nfca_atr_req 73 u8 length; member in struct:st21nfca_atr_res 86 u8 length; member in struct:st21nfca_psl_req 95 u8 length; member in struct:st21nfca_psl_res 102 u8 length; member in struct:st21nfca_dep_req_res 149 gb_len = atr_req->length - sizeof(struct st21nfca_atr_req); 150 skb = alloc_skb(atr_req->length + 1, GFP_KERNEL); 159 atr_res->length = atr_req->length + 1; 207 if (atr_req->length < sizeo [all...] |
/linux-master/include/net/sctp/ |
H A D | sctp.h | 423 * the chunk length to indicate when to stop. Make sure 427 _sctp_walk_params((pos), (chunk), ntohs((chunk)->chunk_hdr.length)) 431 (pos.v + offsetof(struct sctp_paramhdr, length) + sizeof(pos.p->length) <=\ 433 pos.v <= (void *)chunk + end - ntohs(pos.p->length) &&\ 434 ntohs(pos.p->length) >= sizeof(struct sctp_paramhdr);\ 435 pos.v += SCTP_PAD4(ntohs(pos.p->length))) 438 _sctp_walk_errors((err), (chunk_hdr), ntohs((chunk_hdr)->length)) 443 ((void *)err + offsetof(struct sctp_errhdr, length) + sizeof(err->length) < [all...] |
/linux-master/drivers/firewire/ |
H A D | core-card.c | 46 int length; local 49 length = (be32_to_cpu(block[0]) >> 16) & 0xff; 50 crc = crc_itu_t(0, (u8 *)&block[1], length * 4); 53 return length; 94 int i, j, k, length; local 128 j += desc->length; 131 /* Update root directory length. */ 136 for (k = 0; k < desc->length; k++) 138 i += desc->length; 142 * assumes that CRC length an [all...] |
/linux-master/drivers/hid/intel-ish-hid/ipc/ |
H A D | ipc.c | 228 * 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(®, &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 883 ish_ipc_get_header(struct ishtp_device *dev, int length, int busy) argument [all...] |
/linux-master/lib/ |
H A D | decompress_bunzip2.c | 235 unsigned char length[MAX_SYMBOLS], temp[MAX_HUFCODE_BITS+1]; local 243 test inside the loop simpler: symbol length 0 268 * final symbol length */ 269 length[i] = t+1; 272 minLen = maxLen = length[0]; 275 if (length[i] > maxLen) 276 maxLen = length[i]; 277 else if (length[i] < minLen) 278 minLen = length[i]; 282 * length[] [all...] |
/linux-master/net/atm/ |
H A D | proc.c | 320 int length; local 329 length = -EINVAL; 331 length = dev->ops->proc_read(dev, pos, (char *)page); 332 if (length > count) 333 length = -EINVAL; 335 if (length >= 0) { 336 if (copy_to_user(buf, (char *)page, length)) 337 length = -EFAULT; 341 return length;
|