| /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 = bytes_free; in line6_midibuf_write() [all …]
|
| /linux/tools/testing/selftests/mm/ |
| H A D | hugetlb-mmap.c | 22 #define LENGTH (256UL*1024*1024) 30 static void write_bytes(char *addr, size_t length) 34 for (i = 0; i < length; i++) in write_bytes() 38 static bool verify_bytes(char *addr, size_t length) 43 for (i = 0; i < length; i++) in verify_bytes() 52 static void test_mmap(size_t length, int mmap_flags, int fd, 58 addr = mmap(NULL, length, PROTECTION, mmap_flags, fd, 0); in test_mmap() 64 write_bytes(addr, length); in test_mmap() 65 if (!verify_bytes(addr, length)) in test_mmap() 68 /* munmap() length o in test_mmap() 23 #define LENGTH global() macro 31 write_bytes(char * addr,size_t length) write_bytes() argument 39 verify_bytes(char * addr,size_t length) verify_bytes() argument 53 test_mmap(size_t length,int mmap_flags,int fd,const char * test_name) test_mmap() argument 76 test_anon_mmap(size_t length,int shift) test_anon_mmap() argument 87 test_file_mmap(size_t length,int shift) test_file_mmap() argument 107 size_t length = LENGTH; main() local [all...] |
| H A D | map_hugetlb.c | |
| /linux/security/selinux/ |
| H A D | selinuxfs.c | 124 ssize_t length; in sel_read_enforce() local 126 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", in sel_read_enforce() 128 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce() 137 ssize_t length; in sel_write_enforce() local 152 length = -EINVAL; in sel_write_enforce() 160 length = avc_has_perm(current_sid(), SECINITSID_SECURITY, in sel_write_enforce() 163 if (length) in sel_write_enforce() 181 length = count; in sel_write_enforce() 184 return length; in sel_write_enforce() 200 ssize_t length; in sel_read_handle_unknown() local 290 ssize_t length; sel_read_policyvers() local 321 ssize_t length; sel_read_mls() local 544 ssize_t length; sel_write_load() local 604 ssize_t length; sel_write_context() local 637 ssize_t length; sel_read_checkreqprot() local 795 ssize_t length; sel_write_access() local 843 ssize_t length; sel_write_create() local 943 ssize_t length; sel_write_relabel() local 1010 ssize_t length; sel_write_member() local 1102 ssize_t length; sel_read_bool() local 1135 ssize_t length; sel_write_bool() local 1192 ssize_t length; sel_commit_bools_write() local 1299 ssize_t length; sel_read_avc_cache_threshold() local 1348 ssize_t length; sel_read_avc_hash_stats() local 1366 ssize_t length; sel_read_sidtab_hash_stats() local 1624 ssize_t length; sel_read_policycap() local [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/Documentation/arch/arm64/ |
| H A D | sme.rst | 21 * PSTATE.SM, PSTATE.ZA, the streaming mode vector length, the ZA and (when 78 SME defines a second vector length similar to the SVE vector length which 100 length, the state of the PR_SME_VL_INHERIT flag, and the deferred vector 101 length (if any), is preserved across all syscalls, subject to the specific 117 the thread's vector length (in za_context.vl). 157 * The vector length cannot be changed via signal return. If za_context.vl in 158 the signal frame does not match the current vector length, the signal return 169 length: 173 Sets the vector length of the calling thread and related flags, where 176 vl is the desired vector length, where sve_vl_valid(vl) must be true. [all …]
|
| /linux/drivers/net/fjes/ |
| H A 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/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 = RXE_BTH_BYTES + RXE_IMMDT_BYTES, [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 length > mr->ibmr.length || in mr_check_range() 37 iova - mr->ibmr.iova > mr->ibmr.length - length) { in mr_check_range() 38 rxe_dbg_mr(mr, "iova/length out of range\n"); in mr_check_range() 193 int rxe_mr_init_user(struct rxe_dev *rxe, u64 start, u64 length, in rxe_mr_init_user() argument 201 umem = ib_umem_get_va(&rxe->ib_dev, start, length, access); in rxe_mr_init_user() 327 unsigned int length, enum rxe_mr_copy_dir dir) in rxe_mr_copy_xarray() argument 332 while (length) { in rxe_mr_copy_xarray() 359 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 386 rxe_mr_copy(struct rxe_mr * mr,u64 iova,void * addr,unsigned int length,enum rxe_mr_copy_dir dir) rxe_mr_copy() argument 421 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 508 rxe_mr_flush_pmem_iova(struct rxe_mr * mr,u64 iova,unsigned int length) rxe_mr_flush_pmem_iova() argument 540 rxe_flush_pmem_iova(struct rxe_mr * mr,u64 start,unsigned int length) rxe_flush_pmem_iova() argument 669 advance_dma_data(struct rxe_dma_info * dma,unsigned int length) advance_dma_data() argument [all...] |
| H A D | rxe_odp.c | 70 mr->umem->length, in rxe_odp_init_pages() 79 int rxe_odp_mr_init_user(struct rxe_dev *rxe, u64 start, u64 length, in rxe_odp_mr_init_user() argument 90 /* Implicit ODP (start=0, length=U64_MAX) is not implemented. */ in rxe_odp_mr_init_user() 91 if (!start && length == U64_MAX) in rxe_odp_mr_init_user() 94 umem_odp = ib_umem_odp_get(&rxe->ib_dev, start, length, access_flags, in rxe_odp_mr_init_user() 106 mr->ibmr.length = length; in rxe_odp_mr_init_user() 123 int length, bool write) in rxe_check_pagefault() argument 136 while (addr < iova + length) { in rxe_check_pagefault() 164 static int rxe_odp_map_range_and_lock(struct rxe_mr *mr, u64 iova, int length, u3 in rxe_odp_map_range_and_lock() 159 rxe_odp_map_range_and_lock(struct rxe_mr * mr,u64 iova,int length,u32 flags) rxe_odp_map_range_and_lock() argument 192 __rxe_odp_mr_copy(struct rxe_mr * mr,u64 iova,void * addr,int length,enum rxe_mr_copy_dir dir) __rxe_odp_mr_copy() argument 227 rxe_odp_mr_copy(struct rxe_mr * mr,u64 iova,void * addr,int length,enum rxe_mr_copy_dir dir) rxe_odp_mr_copy() argument 333 rxe_odp_flush_pmem_iova(struct rxe_mr * mr,u64 iova,unsigned int length) rxe_odp_flush_pmem_iova() argument 420 size_t length; global() member [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 = 0; in mc68x328fb_check_var() 200 var->red.length = 8; in mc68x328fb_check_var() [all …]
|
| /linux/include/linux/ |
| H A 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 …]
|
| 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 235 if (unlikely(buf->offset + length > buf->chan->subbuf_size)) in __relay_write() [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 119 sge->vaddr += length; in rvt_update_sge() [all …]
|
| /linux/fs/squashfs/ |
| 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() 282 * Read and decompress a metadata block or datablock. Length is non-zero 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 [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 - sizeof(pkt->soft)); in rx() 113 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in 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 - sizeof(pkt->soft)); in rx() [all …]
|
| H A D | rfc1051.c | 41 struct archdr *pkthdr, int length); 44 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, 123 struct archdr *pkthdr, int length) in rx() argument 130 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length); in rx() 132 if (length >= MinTU) in rx() 133 ofs = 512 - length; in rx() 135 ofs = 256 - length; in rx() 137 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx() 142 skb_put(skb, length + ARC_HDR_SIZE); in rx() 149 if (length > sizeof(pkt->soft)) in rx() [all …]
|
| /linux/Documentation/driver-api/cxl/platform/example-configurations/ |
| H A D | flexible.rst | 25 Length : 0020 30 Register length : 0000000000010000 34 Length : 0020 39 Register length : 0000000000010000 43 Length : 002C 58 Length : 002C 72 Length : 002C 86 Length : 002C 100 Length : 002C 114 Length : 002C [all …]
|
| /linux/fs/ntfs/ |
| H A D | runlist.c | 162 if ((dst->vcn + dst->length) != src->vcn) in ntfs_are_rl_mergeable() 166 ((dst->lcn + dst->length) == src->lcn)) in ntfs_are_rl_mergeable() 192 dst->length += src->length; in __ntfs_rl_merge() 222 s64 right_length = 0; /* Length of the run merged at the right. */ in ntfs_rl_append() 242 right_length = dst[loc + 1].length; in ntfs_rl_append() 252 dst[marker - 1].length += right_length; in ntfs_rl_append() 255 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn; in ntfs_rl_append() 257 /* We may have changed the length of the file, so fix the end marker */ in ntfs_rl_append() 259 dst[marker].vcn = dst[marker - 1].vcn + dst[marker - 1].length; 1204 s64 delta, length = rl->length; ntfs_get_size_for_mapping_pairs() local 1242 s64 length = rl->length; ntfs_get_size_for_mapping_pairs() local 1415 s64 delta, length = rl->length; ntfs_mapping_pairs_build() local 1466 s64 length = rl->length; ntfs_mapping_pairs_build() local [all...] |
| /linux/fs/exfat/ |
| H A D | iomap.c | 41 static int __exfat_iomap_begin(struct inode *inode, loff_t offset, loff_t length, in __exfat_iomap_begin() argument 59 iomap->length = length; in __exfat_iomap_begin() 63 /* Clamp length if the requested range goes beyond i_size */ in __exfat_iomap_begin() 64 if (offset + length > i_size_read(inode)) in __exfat_iomap_begin() 65 length = round_up(i_size_read(inode), in __exfat_iomap_begin() 70 offset + length) - exfat_bytes_to_cluster(sbi, offset); in __exfat_iomap_begin() 95 iomap->length = min_t(loff_t, length, cluster_length - cluster_offset); in __exfat_iomap_begin() 103 else if (iomap->offset + iomap->length > in __exfat_iomap_begin() 142 exfat_iomap_begin(struct inode * inode,loff_t offset,loff_t length,unsigned int flags,struct iomap * iomap,struct iomap * srcmap) exfat_iomap_begin() argument 148 exfat_write_iomap_begin(struct inode * inode,loff_t offset,loff_t length,unsigned int flags,struct iomap * iomap,struct iomap * srcmap) exfat_write_iomap_begin() argument 166 exfat_write_iomap_end(struct inode * inode,loff_t pos,loff_t length,ssize_t written,unsigned int flags,struct iomap * iomap) exfat_write_iomap_end() argument [all...] |
| /linux/drivers/nvdimm/ |
| H A D | badrange.c | 27 struct badrange_entry *bre, u64 addr, u64 length) in append_badrange_entry() argument 31 bre->length = length; in append_badrange_entry() 36 u64 addr, u64 length, gfp_t flags) in alloc_and_append_badrange_entry() argument 44 append_badrange_entry(badrange, bre, addr, length); in alloc_and_append_badrange_entry() 48 static int add_badrange(struct badrange *badrange, u64 addr, u64 length) in add_badrange() argument 59 append_badrange_entry(badrange, bre_new, addr, length); in add_badrange() 70 /* If length has changed, update this list entry */ in add_badrange() 71 if (bre->length != length) in add_badrange() 72 bre->length = length; in add_badrange() 78 * If not a duplicate or a simple length update, add the entry as is, in add_badrange() [all …]
|
| /linux/drivers/nvme/host/ |
| H A D | fc.h | 110 "Bad CR_ASSOC Length", 111 "Bad CR_ASSOC Rqst Length", 113 "Bad CR_ASSOC Cmd Length", 117 "Bad CR_CONN Length", 118 "Bad CR_CONN Rqst Length", 120 "Bad Association ID Length", 123 "Bad Connection ID Length", 126 "Bad CR_CONN Cmd Length", 127 "Bad DISCONN Length", 128 "Bad DISCONN Rqst Length", [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() 120 free_space += key->string.length + 1; in acpi_extract_apple_properties() 126 newprops[v].string.length = val->string.length; in acpi_extract_apple_properties() [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 = L3_34XX_SIZE, [all …]
|