/Linux-v6.1/sound/usb/line6/ |
D | midibuf.c | 19 static const int length[] = { 3, 3, 3, 3, 2, 2, 3 }; in midibuf_message_length() local 21 message_length = length[(code >> 4) - 8]; in midibuf_message_length() 28 static const int length[] = { -1, 2, -1, 2, -1, -1, 1, 1, 1, 1, in midibuf_message_length() local 31 message_length = length[code & 0x0f]; in midibuf_message_length() 85 int length) in line6_midibuf_write() argument 91 if (midibuf_is_full(this) || (length <= 0)) in line6_midibuf_write() 95 if (data[length - 1] == 0xfe) { in line6_midibuf_write() 96 --length; in line6_midibuf_write() 102 if (length > bytes_free) in line6_midibuf_write() 103 length = bytes_free; in line6_midibuf_write() [all …]
|
/Linux-v6.1/drivers/video/fbdev/mmp/fb/ |
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 <= 5 && in var_to_pixfmt() 61 var->green.length <= 6 && var->blue.length <= 5) { in var_to_pixfmt() 62 if (var->transp.length == 0) { in var_to_pixfmt() 73 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in var_to_pixfmt() [all …]
|
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/ |
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-v6.1/security/selinux/ |
D | selinuxfs.c | 130 ssize_t length; in sel_read_enforce() local 132 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", in sel_read_enforce() 134 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce() 145 ssize_t length; in sel_write_enforce() local 159 length = -EINVAL; in sel_write_enforce() 167 length = avc_has_perm(&selinux_state, in sel_write_enforce() 171 if (length) in sel_write_enforce() 189 length = count; in sel_write_enforce() 192 return length; in sel_write_enforce() 210 ssize_t length; in sel_read_handle_unknown() local [all …]
|
/Linux-v6.1/drivers/acpi/acpica/ |
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 <= target_desc->buffer.length) { in acpi_ex_store_buffer_to_buffer() 70 target_desc->buffer.length); in acpi_ex_store_buffer_to_buffer() 71 memcpy(target_desc->buffer.pointer, buffer, length); in acpi_ex_store_buffer_to_buffer() [all …]
|
D | acpredef.h | 19 * ACPI_PTYPE1_FIXED: Fixed-length length, 1 or 2 object types: 25 * ACPI_PTYPE1_VAR: Variable-length length. Zero-length package is allowed: 32 * 2) PTYPE2 packages contain a Variable-length number of subpackages. Each 35 * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types. Zero-length 44 * Zero-length parent package is allowed: 55 * ACPI_PTYPE2_FIXED: Each subpackage is of Fixed-length. Zero-length 59 * ACPI_PTYPE2_MIN: Each subpackage has a Variable-length but minimum length. 60 * Zero-length parent package is allowed: 63 * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length 66 * ACPI_PTYPE2_FIX_VAR: Each subpackage consists of some fixed-length elements [all …]
|
/Linux-v6.1/Documentation/arm64/ |
D | sme.rst | 21 * PSTATE.SM, PSTATE.ZA, the streaming mode vector length, the ZA 72 SME defines a second vector length similar to the SVE vector length which is 104 length, the state of the PR_SME_VL_INHERIT flag, and the deferred vector 105 length (if any), is preserved across all syscalls, subject to the specific 118 the thread's vector length (in za_context.vl). 150 * The vector length cannot be changed via signal return. If za_context.vl in 151 the signal frame does not match the current vector length, the signal return 159 length: 163 Sets the vector length of the calling thread and related flags, where 166 vl is the desired vector length, where sve_vl_valid(vl) must be true. [all …]
|
D | sve.rst | 25 * SVE registers Z0..Z31, P0..P15 and FFR and the current vector length VL, are 65 separate SME vector length and the same Z/V registers. See sme.rst 89 2. Vector length terminology 92 The size of an SVE vector (Z) register is referred to as the "vector length". 94 To avoid confusion about the units used to express vector length, the kernel 97 * Vector length (VL) = size of a Z-register in bytes 125 length, the state of the PR_SVE_VL_INHERIT flag, and the deferred vector 126 length (if any), is preserved across all syscalls, subject to the specific 145 if set indicates that the thread is in streaming mode and the vector length 147 length. [all …]
|
/Linux-v6.1/fs/squashfs/ |
D | block.c | 79 static int squashfs_bio_read(struct super_block *sb, u64 index, int length, in squashfs_bio_read() argument 85 const u64 read_end = round_up(index + length, msblk->devblksize); in squashfs_bio_read() 132 * Read and decompress a metadata block or datablock. Length is non-zero 134 * filesystem), otherwise the length is obtained from the first two bytes of 135 * the metadata block. A bit in the length field indicates if the block 140 int squashfs_read_data(struct super_block *sb, u64 index, int length, in squashfs_read_data() argument 149 if (length) { in squashfs_read_data() 153 compressed = SQUASHFS_COMPRESSED_BLOCK(length); in squashfs_read_data() 154 length = SQUASHFS_COMPRESSED_SIZE_BLOCK(length); in squashfs_read_data() 156 index, compressed ? "" : "un", length, output->length); in squashfs_read_data() [all …]
|
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() 289 * Copy up to length bytes from cache entry to buffer starting at offset bytes 290 * into the cache entry. If there's not length bytes then copy the number of 294 int offset, int length) in squashfs_copy_data() argument 296 int remaining = length; in squashfs_copy_data() 298 if (length == 0) in squashfs_copy_data() 301 return min(length, entry->length - offset); in squashfs_copy_data() [all …]
|
/Linux-v6.1/drivers/net/fjes/ |
D | fjes_trace.h | 54 __field(int, length) 62 __entry->length = res_buf->info.length; 71 TP_printk("res_buf=[length=%d, code=%d, es_zones=%s, es_status=%s]", 72 __entry->length, __entry->code, 98 __field(int, length) 110 __entry->length = req_buf->share_buffer.length; 119 …TP_printk("req_buf=[length=%d, epid=%d], TX=[phy=0x%016llx, size=%zu], RX=[phy=0x%016llx, size=%zu… 120 __entry->length, __entry->epid, __entry->tx, __entry->tx_size, 128 __field(int, length) 133 __entry->length = res_buf->share_buffer.length; [all …]
|
/Linux-v6.1/drivers/infiniband/sw/rxe/ |
D | rxe_opcode.c | 111 .length = RXE_BTH_BYTES, 121 .length = RXE_BTH_BYTES, 131 .length = RXE_BTH_BYTES, 141 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES, 154 .length = RXE_BTH_BYTES, 165 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES, 177 .length = RXE_BTH_BYTES + RXE_RETH_BYTES, 189 .length = RXE_BTH_BYTES, 199 .length = RXE_BTH_BYTES, 210 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES, [all …]
|
D | rxe_mr.c | 25 int mr_check_range(struct rxe_mr *mr, u64 iova, size_t length) in mr_check_range() argument 35 if (iova < mr->ibmr.iova || length > mr->ibmr.length || in mr_check_range() 36 iova > mr->ibmr.iova + mr->ibmr.length - length) in mr_check_range() 115 int rxe_mr_init_user(struct rxe_dev *rxe, u64 start, u64 length, u64 iova, in rxe_mr_init_user() argument 127 umem = ib_umem_get(&rxe->ib_dev, start, length, access); in rxe_mr_init_user() 151 if (length > 0) { in rxe_mr_init_user() 222 u64 length; in lookup_iova() local 233 length = mr->map[map_index]->buf[buf_index].size; in lookup_iova() 235 while (offset >= length) { in lookup_iova() 236 offset -= length; in lookup_iova() [all …]
|
/Linux-v6.1/include/linux/ |
D | bcm963xx_tag.h | 7 #define TAGVER_LEN 4 /* Length of Tag Version */ 8 #define TAGLAYOUT_LEN 4 /* Length of FlashLayoutVer */ 9 #define SIG1_LEN 20 /* Company Signature 1 Length */ 10 #define SIG2_LEN 14 /* Company Signature 2 Length */ 11 #define BOARDID_LEN 16 /* Length of BoardId */ 12 #define ENDIANFLAG_LEN 2 /* Endian Flag Length */ 13 #define CHIPID_LEN 6 /* Chip Id Length */ 14 #define IMAGE_LEN 10 /* Length of Length Field */ 15 #define ADDRESS_LEN 12 /* Length of Address field */ 16 #define IMAGE_SEQUENCE_LEN 4 /* Image sequence Length */ [all …]
|
/Linux-v6.1/include/rdma/ |
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 119 sge->vaddr += length; in rvt_update_sge() [all …]
|
/Linux-v6.1/drivers/video/fbdev/ |
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 = 0; in mc68x328fb_check_var() 200 var->red.length = 8; in mc68x328fb_check_var() [all …]
|
/Linux-v6.1/drivers/net/arcnet/ |
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 - sizeof(pkt->soft)); in rx() 113 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in prepare_tx() argument [all …]
|
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 - sizeof(pkt->soft)); in rx() [all …]
|
D | rfc1051.c | 41 struct archdr *pkthdr, int length); 44 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, 122 struct archdr *pkthdr, int length) in rx() argument 129 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length); in rx() 131 if (length >= MinTU) in rx() 132 ofs = 512 - length; in rx() 134 ofs = 256 - length; in rx() 136 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx() 141 skb_put(skb, length + ARC_HDR_SIZE); in rx() 148 if (length > sizeof(pkt->soft)) in rx() [all …]
|
/Linux-v6.1/fs/verity/ |
D | read_metadata.c | 17 void __user *buf, u64 offset, int length) in fsverity_read_merkle_tree() argument 26 end_offset = min(offset + length, vi->tree_params.tree_size); in fsverity_read_merkle_tree() 81 static int fsverity_read_buffer(void __user *dst, u64 offset, int length, in fsverity_read_buffer() argument 89 length = min_t(size_t, length, src_length); in fsverity_read_buffer() 91 if (copy_to_user(dst, src, length)) in fsverity_read_buffer() 94 return length; in fsverity_read_buffer() 98 void __user *buf, u64 offset, int length) in fsverity_read_descriptor() argument 112 res = fsverity_read_buffer(buf, offset, length, desc, desc_size); in fsverity_read_descriptor() 119 void __user *buf, u64 offset, int length) in fsverity_read_signature() argument 137 res = fsverity_read_buffer(buf, offset, length, desc->signature, in fsverity_read_signature() [all …]
|
/Linux-v6.1/tools/testing/selftests/vm/ |
D | hugepage-mremap.c | 110 size_t length = 0; in main() local 117 /* Read memory length as the first arg if valid, otherwise fallback to in main() 118 * the default length. in main() 121 length = argc > 2 ? (size_t)atoi(argv[1]) : 0UL; in main() 123 length = length > 0 ? length : DEFAULT_LENGTH_MB; in main() 124 length = MB_TO_BYTES(length); in main() 138 void *haddr = mmap((void *)suggested_addr, length, PROTECTION, in main() 148 void *daddr = mmap((void *)suggested_addr, length, PROTECTION, in main() 158 mmap((void *)suggested_addr, length, PROTECTION, FLAGS, -1, 0); in main() 165 register_region_with_uffd(haddr, length); in main() [all …]
|
/Linux-v6.1/drivers/staging/r8188eu/include/ |
D | wlan_bssdef.h | 29 u32 Length; /* Length of structure */ member 40 u32 Length; /* Length of structure */ member 63 u8 Length; member 68 * Length is the 4 bytes multiples of the sume of 74 * Except the IELength, all other fields are fixed length. 125 u32 Length; member 138 u32 Length; /* Length of this structure */ member 140 u32 KeyLength; /* length of key in bytes */ 147 u32 Length; /* Length */ member 153 u32 Length; /* Length of this structure */ member [all …]
|
/Linux-v6.1/drivers/net/wireless/ath/ath10k/ |
D | bmi.c | 71 ath10k_warn(ar, "invalid get_target_info response length (%d)\n", in ath10k_bmi_get_target_info() 118 /* Step 1b: Read the version length */ in ath10k_bmi_get_target_info_sdio() 130 /* Step 2: Check the target info length */ in ath10k_bmi_get_target_info_sdio() 154 u32 address, void *buffer, u32 length) in ath10k_bmi_read_memory() argument 162 ath10k_dbg(ar, ATH10K_DBG_BMI, "bmi read address 0x%x length %d\n", in ath10k_bmi_read_memory() 163 address, length); in ath10k_bmi_read_memory() 170 while (length) { in ath10k_bmi_read_memory() 171 rxlen = min_t(u32, length, BMI_MAX_DATA_SIZE); in ath10k_bmi_read_memory() 188 length -= rxlen; in ath10k_bmi_read_memory() 259 u32 address, const void *buffer, u32 length) in ath10k_bmi_write_memory() argument [all …]
|
/Linux-v6.1/include/uapi/linux/ |
D | virtio_crypto.h | 89 /* length of key */ 126 /* hash result length */ 154 /* hash result length */ 156 /* length of authenticated key */ 172 /* length of key */ 174 /* hash result length */ 176 /* length of the additional authenticated data (AAD) in bytes */ 257 /* length of the additional authenticated data (AAD) in bytes */ 348 * Byte Length of valid IV/Counter 351 * SNOW3G in UEA2 mode, this is the length of the IV (which [all …]
|
/Linux-v6.1/drivers/net/ethernet/cisco/enic/ |
D | vnic_vic.c | 25 vp->length = htonl(sizeof(vp->num_tlvs)); in vic_provinfo_alloc() 35 int vic_provinfo_add_tlv(struct vic_provinfo *vp, u16 type, u16 length, in vic_provinfo_add_tlv() argument 43 if (ntohl(vp->length) + offsetof(struct vic_provinfo_tlv, value) + in vic_provinfo_add_tlv() 44 length > VIC_PROVINFO_MAX_TLV_DATA) in vic_provinfo_add_tlv() 48 ntohl(vp->length) - sizeof(vp->num_tlvs)); in vic_provinfo_add_tlv() 51 tlv->length = htons(length); in vic_provinfo_add_tlv() 52 memcpy(tlv->value, value, length); in vic_provinfo_add_tlv() 55 vp->length = htonl(ntohl(vp->length) + in vic_provinfo_add_tlv() 56 offsetof(struct vic_provinfo_tlv, value) + length); in vic_provinfo_add_tlv() 63 return vp ? ntohl(vp->length) + sizeof(*vp) - sizeof(vp->num_tlvs) : 0; in vic_provinfo_size()
|