/linux/drivers/acpi/acpica/ |
H A D | exstorob.c | 33 u32 length; in acpi_ex_store_buffer_to_buffer() local 47 length = source_desc->buffer.length; in acpi_ex_store_buffer_to_buffer() 50 * If target is a buffer of length zero or is a static buffer, in acpi_ex_store_buffer_to_buffer() 51 * allocate a new buffer of the proper length in acpi_ex_store_buffer_to_buffer() 53 if ((target_desc->buffer.length == 0) || in acpi_ex_store_buffer_to_buffer() 55 target_desc->buffer.pointer = ACPI_ALLOCATE(length); in acpi_ex_store_buffer_to_buffer() 60 target_desc->buffer.length = length; in acpi_ex_store_buffer_to_buffer() 65 if (length < in acpi_ex_store_buffer_to_buffer() 130 u32 length; acpi_ex_store_string_to_string() local [all...] |
H A D | utids.c | 40 u32 length; in acpi_ut_execute_HID() local 55 length = ACPI_EISAID_STRING_SIZE; in acpi_ut_execute_HID() 57 length = obj_desc->string.length + 1; in acpi_ut_execute_HID() 64 (acpi_size)length); in acpi_ut_execute_HID() 83 hid->length = length; in acpi_ut_execute_HID() 118 u32 length; in acpi_ut_execute_UID() local 133 length = ACPI_MAX64_DECIMAL_DIGITS + 1; in acpi_ut_execute_UID() 135 length in acpi_ut_execute_UID() 204 u32 length; acpi_ut_execute_CID() local 342 u32 length; acpi_ut_execute_CLS() local [all...] |
H A D | tbfadt.c | 37 u16 length; member 173 * for GPEs, the legacy length (byte_width) is used instead to in acpi_tb_init_generic_address() 278 u32 length; in acpi_tb_parse_fadt() local 295 length = fadt_desc->length; in acpi_tb_parse_fadt() 301 (void)acpi_ut_verify_checksum(table, length); in acpi_tb_parse_fadt() 305 acpi_tb_create_local_fadt(table, length); in acpi_tb_parse_fadt() 339 * length - Length of the table 350 void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length) in acpi_tb_create_local_fadt() argument 357 if (length > sizeo in acpi_tb_create_local_fadt() 440 u8 length; acpi_tb_convert_fadt() local [all...] |
H A D | utprint.c | 45 * DESCRIPTION: Calculate the length of a string with boundary. 52 u32 length = 0; in acpi_ut_bound_string_length() local 55 length++; in acpi_ut_bound_string_length() 60 return (length); in acpi_ut_bound_string_length() 331 s32 length; in vsnprintf() local 446 length = (s32)acpi_ut_bound_string_length(s, precision); in vsnprintf() 448 while (length < width--) { in vsnprintf() 456 for (i = 0; i < length; ++i) { in vsnprintf() 461 while (length < width--) { in vsnprintf() 571 int length; in snprintf() local 596 int length; sprintf() local 622 int length; vprintf() local 649 int length; printf() local 675 int length; vfprintf() local 703 int length; fprintf() local [all...] |
H A D | tbutils.c | 76 /* Compare original length and checksum to current values */ in acpi_tb_check_dsdt_header() 78 if (acpi_gbl_original_dsdt_header.length != acpi_gbl_DSDT->length || in acpi_tb_check_dsdt_header() 93 acpi_gbl_original_dsdt_header.length = acpi_gbl_DSDT->length; in acpi_tb_check_dsdt_header() 120 new_table = ACPI_ALLOCATE(table_desc->length); in acpi_tb_copy_dsdt() 122 ACPI_ERROR((AE_INFO, "Could not copy DSDT of length 0x%X", in acpi_tb_copy_dsdt() 123 table_desc->length)); in acpi_tb_copy_dsdt() 127 memcpy(new_table, table_desc->pointer, table_desc->length); in acpi_tb_copy_dsdt() 136 ACPI_INFO(("Forced DSDT copy: length in acpi_tb_copy_dsdt() 224 u32 length; acpi_tb_parse_root_table() local [all...] |
/linux/sound/usb/line6/ |
H A D | midibuf.c | 20 static const int length[] = { 3, 3, 3, 3, 2, 2, 3 }; in midibuf_message_length() local 22 message_length = length[(code >> 4) - 8]; in midibuf_message_length() 24 static const int length[] = { -1, 2, 2, 2, -1, -1, 1, 1, 1, -1, in midibuf_message_length() local 27 message_length = length[code & 0x0f]; in midibuf_message_length() 81 int length) in line6_midibuf_write() argument 87 if (midibuf_is_full(this) || (length <= 0)) in line6_midibuf_write() 91 if (data[length - 1] == 0xfe) { in line6_midibuf_write() 92 --length; in line6_midibuf_write() 98 if (length > bytes_free) in line6_midibuf_write() 99 length in line6_midibuf_write() 124 line6_midibuf_read(struct midi_buffer * this,unsigned char * data,int length,int read_type) line6_midibuf_read() argument 241 line6_midibuf_ignore(struct midi_buffer * this,int length) line6_midibuf_ignore() argument [all...] |
/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_ctrl.c | 23 unsigned int length, unsigned int offset, in nfp_net_tls_parse_crypto_ops() argument 30 if (length < 32) { in nfp_net_tls_parse_crypto_ops() 33 length, offset); in nfp_net_tls_parse_crypto_ops() 58 unsigned int length, offset; in nfp_net_tlv_caps_parse() local 61 length = FIELD_GET(NFP_NET_CFG_TLV_HEADER_LENGTH, hdr); in nfp_net_tlv_caps_parse() 67 if (length % NFP_NET_CFG_TLV_LENGTH_INC) { in nfp_net_tlv_caps_parse() 69 NFP_NET_CFG_TLV_LENGTH_INC, offset, length); in nfp_net_tlv_caps_parse() 72 if (data + length > end) { in nfp_net_tlv_caps_parse() 74 offset, length); in nfp_net_tlv_caps_parse() 85 if (!length) in nfp_net_tlv_caps_parse() [all...] |
/linux/rust/kernel/ |
H A D | uaccess.rs | 76 /// the read length and the next read will start from there. This helps prevent accidentally reading 148 length: usize, field 152 /// Constructs a user slice from a raw pointer and a length in bytes. 154 /// Constructing a [`UserSlice`] performs no checks on the provided address and length, it can 164 pub fn new(ptr: UserPtr, length: usize) -> Self { in new() 165 UserSlice { ptr, length } in new() 179 length: self.length, in reader() 187 length: self.length, in writer() 213 length: usize, global() field 403 length: usize, global() field [all...] |
/linux/drivers/video/fbdev/mmp/fb/ |
H A D | mmpfb.c | 25 if (var->bits_per_pixel == 16 && var->red.length == 8 && in var_to_pixfmt() 26 var->green.length == 4 && var->blue.length == 4) { in var_to_pixfmt() 36 if (var->bits_per_pixel == 12 && var->red.length == 8 && in var_to_pixfmt() 37 var->green.length == 2 && var->blue.length == 2) { in var_to_pixfmt() 47 if (var->bits_per_pixel == 16 && var->red.length == 16 && in var_to_pixfmt() 48 var->green.length == 16 && var->blue.length == 16) { in var_to_pixfmt() 60 if (var->bits_per_pixel == 16 && var->red.length < in var_to_pixfmt() [all...] |
/linux/security/selinux/ |
H A D | selinuxfs.c | 127 ssize_t length; in sel_read_enforce() local 129 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", in sel_read_enforce() 131 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce() 140 ssize_t length; in sel_write_enforce() local 155 length = -EINVAL; in sel_write_enforce() 163 length = avc_has_perm(current_sid(), SECINITSID_SECURITY, in sel_write_enforce() 166 if (length) in sel_write_enforce() 184 length = count; in sel_write_enforce() 187 return length; in sel_write_enforce() 203 ssize_t length; in sel_read_handle_unknown() local 276 ssize_t length; sel_write_disable() local 315 ssize_t length; sel_read_policyvers() local 346 ssize_t length; sel_read_mls() local 576 ssize_t length; sel_write_load() local 638 ssize_t length; sel_write_context() local 671 ssize_t length; sel_read_checkreqprot() local 682 ssize_t length; sel_write_checkreqprot() local 862 ssize_t length; sel_write_access() local 910 ssize_t length; sel_write_create() local 1010 ssize_t length; sel_write_relabel() local 1067 ssize_t length; sel_write_user() local 1135 ssize_t length; sel_write_member() local 1207 ssize_t length; sel_read_bool() local 1248 ssize_t length; sel_write_bool() local 1305 ssize_t length; sel_commit_bools_write() local 1418 ssize_t length; sel_read_avc_cache_threshold() local 1467 ssize_t length; sel_read_avc_hash_stats() local 1485 ssize_t length; sel_read_sidtab_hash_stats() local 1758 ssize_t length; sel_read_policycap() local [all...] |
/linux/include/linux/ |
H A D | relay.h | 185 size_t length); 191 * @length: number of bytes to write 202 size_t length) in relay_write() argument 209 if (unlikely(buf->offset + length > chan->subbuf_size)) in relay_write() 210 length = relay_switch_subbuf(buf, length); in relay_write() 211 memcpy(buf->data + buf->offset, data, length); in relay_write() 212 buf->offset += length; in relay_write() 220 * @length: number of bytes to write 230 size_t length) in __relay_write() argument 253 relay_reserve(struct rchan * chan,size_t length) relay_reserve() argument 280 subbuf_start_reserve(struct rchan_buf * buf,size_t length) subbuf_start_reserve() argument [all...] |
/linux/drivers/net/arcnet/ |
H A D | arc-rawmode.c | 40 struct archdr *pkthdr, int length) in rx() argument 47 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length); in rx() 49 if (length > MTU) in rx() 50 ofs = 512 - length; in rx() 52 ofs = 256 - length; in rx() 54 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx() 59 skb_put(skb, length + ARC_HDR_SIZE); in rx() 69 if (length > sizeof(pkt->soft)) in rx() 72 length in rx() 113 prepare_tx(struct net_device * dev,struct archdr * pkt,int length,int bufnum) prepare_tx() argument [all...] |
H A D | capmode.c | 43 struct archdr *pkthdr, int length) in rx() argument 51 arc_printk(D_DURING, dev, "it's a raw(cap) packet (length=%d)\n", in rx() 52 length); in rx() 54 if (length >= MinTU) in rx() 55 ofs = 512 - length; in rx() 57 ofs = 256 - length; in rx() 59 skb = alloc_skb(length + ARC_HDR_SIZE + sizeof(int), GFP_ATOMIC); in rx() 64 skb_put(skb, length + ARC_HDR_SIZE + sizeof(int)); in rx() 82 if (length > sizeof(pkt->soft)) in rx() 86 length in rx() 132 prepare_tx(struct net_device * dev,struct archdr * pkt,int length,int bufnum) prepare_tx() argument 190 int length = sizeof(struct arc_cap); ack_tx() local [all...] |
/linux/include/rdma/ |
H A D | rdmavt_mr.h | 21 size_t length; member 35 size_t length; member 70 u32 sge_length; /* length of the SGE */ 71 u32 length; /* remaining length of the segment */ member 102 static inline u32 rvt_get_sge_length(struct rvt_sge *sge, u32 length) in rvt_get_sge_length() argument 104 u32 len = sge->length; in rvt_get_sge_length() 106 if (len > length) in rvt_get_sge_length() 107 len = length; in rvt_get_sge_length() 114 static inline void rvt_update_sge(struct rvt_sge_state *ss, u32 length, in rvt_update_sge() argument 138 rvt_skip_sge(struct rvt_sge_state * ss,u32 length,bool release) rvt_skip_sge() argument [all...] |
/linux/drivers/video/fbdev/ |
H A D | 68328fb.c | 113 u_long length; in get_line_length() local 115 length = xres_virtual * bpp; in get_line_length() 116 length = (length + 31) & ~31; in get_line_length() 117 length >>= 3; in get_line_length() 118 return (length); in get_line_length() 190 var->red.length = 1; in mc68x328fb_check_var() 192 var->green.length = 1; in mc68x328fb_check_var() 194 var->blue.length = 1; in mc68x328fb_check_var() 196 var->transp.length in mc68x328fb_check_var() [all...] |
/linux/tools/testing/selftests/mm/ |
H A D | map_hugetlb.c | 24 static void write_bytes(char *addr, size_t length) in write_bytes() argument 28 for (i = 0; i < length; i++) in write_bytes() 32 static void read_bytes(char *addr, size_t length) in read_bytes() argument 37 for (i = 0; i < length; i++) in read_bytes() 48 size_t length = LENGTH; in main() local 53 /* munmap with fail if the length is not page aligned */ in main() 54 if (hugepage_size > length) in main() 55 length = hugepage_size; in main() 61 length = atol(argv[1]) << 20; in main() 72 ksft_print_msg("Mapping %lu Mbytes\n", (unsigned long)length >> 2 in main() [all...] |
H A D | hugepage-mremap.c | 101 size_t length = 0; in main() local 110 /* Read memory length as the first arg if valid, otherwise fallback to in main() 111 * the default length. in main() 114 length = (size_t)atoi(argv[1]); in main() 116 length = DEFAULT_LENGTH_MB; in main() 118 length = MB_TO_BYTES(length); in main() 125 void *haddr = mmap((void *)suggested_addr, length, PROTECTION, in main() 133 void *daddr = mmap((void *)suggested_addr, length, PROTECTION, in main() 141 mmap((void *)suggested_addr, length, PROTECTIO in main() [all...] |
/linux/drivers/infiniband/sw/rxe/ |
H A D | rxe_opcode.c | 123 .length = RXE_BTH_BYTES, 133 .length = RXE_BTH_BYTES, 143 .length = RXE_BTH_BYTES, 153 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES, 166 .length = RXE_BTH_BYTES, 177 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES, 189 .length = RXE_BTH_BYTES + RXE_RETH_BYTES, 201 .length = RXE_BTH_BYTES, 211 .length = RXE_BTH_BYTES, 222 .length [all...] |
H A D | rxe_mr.c | 27 int mr_check_range(struct rxe_mr *mr, u64 iova, size_t length) in mr_check_range() argument 36 iova + length > mr->ibmr.iova + mr->ibmr.length) { in mr_check_range() 37 rxe_dbg_mr(mr, "iova/length out of range\n"); in mr_check_range() 129 int rxe_mr_init_user(struct rxe_dev *rxe, u64 start, u64 length, in rxe_mr_init_user() argument 139 umem = ib_umem_get(&rxe->ib_dev, start, length, access); in rxe_mr_init_user() 246 unsigned int length, enum rxe_mr_copy_dir dir) in rxe_mr_copy_xarray() argument 254 while (length) { in rxe_mr_copy_xarray() 259 bytes = min_t(unsigned int, length, in rxe_mr_copy_xarray() 270 length in rxe_mr_copy_xarray() 278 rxe_mr_copy_dma(struct rxe_mr * mr,u64 dma_addr,void * addr,unsigned int length,enum rxe_mr_copy_dir dir) rxe_mr_copy_dma() argument 305 rxe_mr_copy(struct rxe_mr * mr,u64 iova,void * addr,unsigned int length,enum rxe_mr_copy_dir dir) rxe_mr_copy() argument 340 copy_data(struct rxe_pd * pd,int access,struct rxe_dma_info * dma,void * addr,int length,enum rxe_mr_copy_dir dir) copy_data() argument 427 rxe_mr_flush_pmem_iova(struct rxe_mr * mr,u64 iova,unsigned int length) rxe_mr_flush_pmem_iova() argument 461 rxe_flush_pmem_iova(struct rxe_mr * mr,u64 start,unsigned int length) rxe_flush_pmem_iova() argument 582 advance_dma_data(struct rxe_dma_info * dma,unsigned int length) advance_dma_data() argument [all...] |
/linux/fs/squashfs/ |
H A D | cache.c | 53 struct squashfs_cache *cache, u64 block, int length) in squashfs_cache_get() argument 110 entry->length = squashfs_read_data(sb, block, length, in squashfs_cache_get() 115 if (entry->length < 0) in squashfs_cache_get() 116 entry->error = entry->length; in squashfs_cache_get() 293 * Copy up to length bytes from cache entry to buffer starting at offset bytes 294 * into the cache entry. If there's not length bytes then copy the number of 298 int offset, int length) in squashfs_copy_data() argument 300 int remaining = length; in squashfs_copy_data() 302 if (length in squashfs_copy_data() 336 squashfs_read_metadata(struct super_block * sb,void * buffer,u64 * block,int * offset,int length) squashfs_read_metadata() argument 384 squashfs_get_fragment(struct super_block * sb,u64 start_block,int length) squashfs_get_fragment() argument 399 squashfs_get_datablock(struct super_block * sb,u64 start_block,int length) squashfs_get_datablock() argument 410 squashfs_read_table(struct super_block * sb,u64 block,int length) squashfs_read_table() argument [all...] |
H A D | block.c | 80 struct address_space *cache_mapping, u64 index, int length, in squashfs_bio_read_cached() argument 107 * Compare these to the original required index and length to in squashfs_bio_read_cached() 114 else if (idx == page_count - 1 && index + length != read_end) in squashfs_bio_read_cached() 216 static int squashfs_bio_read(struct super_block *sb, u64 index, int length, in squashfs_bio_read() argument 223 const u64 read_end = round_up(index + length, msblk->devblksize); in squashfs_bio_read() 263 length, read_start, read_end, in squashfs_bio_read() 284 * filesystem), otherwise the length is obtained from the first two bytes of 285 * the metadata block. A bit in the length field indicates if the block 290 int squashfs_read_data(struct super_block *sb, u64 index, int length, in squashfs_read_data() argument 299 if (length) { in squashfs_read_data() [all...] |
/linux/fs/verity/ |
H A D | read_metadata.c | 18 void __user *buf, u64 offset, int length) in fsverity_read_merkle_tree() argument 27 end_offset = min(offset + length, vi->tree_params.tree_size); in fsverity_read_merkle_tree() 82 static int fsverity_read_buffer(void __user *dst, u64 offset, int length, in fsverity_read_buffer() argument 90 length = min_t(size_t, length, src_length); in fsverity_read_buffer() 92 if (copy_to_user(dst, src, length)) in fsverity_read_buffer() 95 return length; in fsverity_read_buffer() 99 void __user *buf, u64 offset, int length) in fsverity_read_descriptor() argument 113 res = fsverity_read_buffer(buf, offset, length, desc, desc_size); in fsverity_read_descriptor() 120 void __user *buf, u64 offset, int length) in fsverity_read_signature() argument 157 int length; fsverity_ioctl_read_metadata() local [all...] |
/linux/arch/arm/mach-omap2/ |
H A D | io.c | 69 .length = L3_24XX_SIZE, 75 .length = L4_24XX_SIZE, 85 .length = DSP_MEM_2420_SIZE, 91 .length = DSP_IPI_2420_SIZE, 97 .length = DSP_MMU_2420_SIZE, 109 .length = L4_WK_243X_SIZE, 115 .length = OMAP243X_GPMC_SIZE, 121 .length = OMAP243X_SDRC_SIZE, 127 .length = OMAP243X_SMS_SIZE, 139 .length [all...] |
/linux/drivers/gpu/drm/amd/display/dc/hdcp/ |
H A D | hdcp_msg.c | 161 i2c_payloads[1].length = message_info->length; in hdmi_14_process_transaction() 165 buff = kzalloc(message_info->length + 1, GFP_KERNEL); in hdmi_14_process_transaction() 171 memmove(&buff[1], message_info->data, message_info->length); in hdmi_14_process_transaction() 172 i2c_payloads[0].length = message_info->length + 1; in hdmi_14_process_transaction() 231 uint32_t length, in dpcd_access_helper() argument 243 if (length % HDCP14_KSV_SIZE) { in dpcd_access_helper() 246 length, in dpcd_access_helper() 249 if (length > HDCP14_MAX_KSV_FIFO_SIZ in dpcd_access_helper() [all...] |
/linux/drivers/acpi/x86/ |
H A D | apple.c | 43 if (!props->buffer.length) in acpi_extract_apple_properties() 49 props->buffer.length, props->buffer.pointer); in acpi_extract_apple_properties() 67 /* newsize = key length + value length of each tuple */ in acpi_extract_apple_properties() 79 newsize += key->string.length + 1; in acpi_extract_apple_properties() 81 newsize += val->buffer.length; in acpi_extract_apple_properties() 83 newsize += val->string.length + 1; in acpi_extract_apple_properties() 117 newprops[k].string.length = key->string.length; in acpi_extract_apple_properties() 119 memcpy(free_space, key->string.pointer, key->string.length); in acpi_extract_apple_properties() [all...] |