Home
last modified time | relevance | path

Searched full:length (Results 1 – 25 of 7172) sorted by relevance

12345678910>>...287

/kernel/linux/linux-5.10/sound/usb/line6/
Dmidibuf.c19 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 …]
/kernel/linux/linux-4.19/sound/usb/line6/
Dmidibuf.c23 static const int length[] = { 3, 3, 3, 3, 2, 2, 3 }; in midibuf_message_length() local
25 message_length = length[(code >> 4) - 8]; in midibuf_message_length()
32 static const int length[] = { -1, 2, -1, 2, -1, -1, 1, 1, 1, 1, in midibuf_message_length() local
35 message_length = length[code & 0x0f]; in midibuf_message_length()
89 int length) in line6_midibuf_write() argument
95 if (midibuf_is_full(this) || (length <= 0)) in line6_midibuf_write()
99 if (data[length - 1] == 0xfe) { in line6_midibuf_write()
100 --length; in line6_midibuf_write()
106 if (length > bytes_free) in line6_midibuf_write()
107 length = bytes_free; in line6_midibuf_write()
[all …]
/kernel/linux/linux-4.19/fs/squashfs/
Dblock.c43 * Read the metadata block length, this is stored in the first two
47 u64 *cur_index, int *offset, int *length) in get_block_length() argument
57 *length = (unsigned char) bh->b_data[*offset]; in get_block_length()
62 *length |= (unsigned char) bh->b_data[0] << 8; in get_block_length()
65 *length = (unsigned char) bh->b_data[*offset] | in get_block_length()
83 * Read and decompress a metadata block or datablock. Length is non-zero
85 * filesystem), otherwise the length is obtained from the first two bytes of
86 * the metadata block. A bit in the length field indicates if the block
91 int squashfs_read_data(struct super_block *sb, u64 index, int length, in squashfs_read_data() argument
100 bh = kcalloc(((output->length + msblk->devblksize - 1) in squashfs_read_data()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_net_ctrl.c23 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 …]
/kernel/linux/linux-4.19/security/selinux/
Dselinuxfs.c127 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()
142 ssize_t length; in sel_write_enforce() local
156 length = -EINVAL; in sel_write_enforce()
164 length = avc_has_perm(&selinux_state, in sel_write_enforce()
168 if (length) in sel_write_enforce()
185 length = count; in sel_write_enforce()
188 return length; in sel_write_enforce()
206 ssize_t length; in sel_read_handle_unknown() local
[all …]
/kernel/linux/linux-4.19/drivers/video/fbdev/mmp/fb/
Dmmpfb.c38 if (var->bits_per_pixel == 16 && var->red.length == 8 && in var_to_pixfmt()
39 var->green.length == 4 && var->blue.length == 4) { in var_to_pixfmt()
49 if (var->bits_per_pixel == 12 && var->red.length == 8 && in var_to_pixfmt()
50 var->green.length == 2 && var->blue.length == 2) { in var_to_pixfmt()
60 if (var->bits_per_pixel == 16 && var->red.length == 16 && in var_to_pixfmt()
61 var->green.length == 16 && var->blue.length == 16) { in var_to_pixfmt()
73 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in var_to_pixfmt()
74 var->green.length <= 6 && var->blue.length <= 5) { in var_to_pixfmt()
75 if (var->transp.length == 0) { in var_to_pixfmt()
86 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in var_to_pixfmt()
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/mmp/fb/
Dmmpfb.c25 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 …]
/kernel/linux/linux-4.19/drivers/acpi/acpica/
Dexstorob.c33 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 …]
Dexfield.c29 * access_length - The access length of the region field
31 * RETURN: Decoded access length
33 * DESCRIPTION: This routine returns the length of the generic_serial_bus
41 u32 length; in acpi_ex_get_serial_access_length() local
46 length = 0; in acpi_ex_get_serial_access_length()
52 length = 1; in acpi_ex_get_serial_access_length()
58 length = 2; in acpi_ex_get_serial_access_length()
65 length = access_length; in acpi_ex_get_serial_access_length()
72 length = ACPI_GSBUS_BUFFER_SIZE - 2; in acpi_ex_get_serial_access_length()
76 return (length); in acpi_ex_get_serial_access_length()
[all …]
/kernel/linux/linux-5.10/drivers/acpi/acpica/
Dexstorob.c33 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 …]
/kernel/linux/linux-5.10/security/selinux/
Dselinuxfs.c129 ssize_t length; in sel_read_enforce() local
131 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", in sel_read_enforce()
133 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce()
144 ssize_t length; in sel_write_enforce() local
158 length = -EINVAL; in sel_write_enforce()
166 length = avc_has_perm(&selinux_state, in sel_write_enforce()
170 if (length) in sel_write_enforce()
186 length = count; in sel_write_enforce()
189 return length; in sel_write_enforce()
207 ssize_t length; in sel_read_handle_unknown() local
[all …]
/kernel/linux/linux-5.10/fs/squashfs/
Dblock.c76 static int squashfs_bio_read(struct super_block *sb, u64 index, int length, in squashfs_bio_read() argument
82 const u64 read_end = round_up(index + length, msblk->devblksize); in squashfs_bio_read()
134 * Read and decompress a metadata block or datablock. Length is non-zero
136 * filesystem), otherwise the length is obtained from the first two bytes of
137 * the metadata block. A bit in the length field indicates if the block
142 int squashfs_read_data(struct super_block *sb, u64 index, int length, in squashfs_read_data() argument
151 if (length) { in squashfs_read_data()
155 compressed = SQUASHFS_COMPRESSED_BLOCK(length); in squashfs_read_data()
156 length = SQUASHFS_COMPRESSED_SIZE_BLOCK(length); in squashfs_read_data()
158 index, compressed ? "" : "un", length, output->length); in squashfs_read_data()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_mr.c27 int mem_check_range(struct rxe_mem *mem, u64 iova, size_t length) in mem_check_range() argument
36 length > mem->length || in mem_check_range()
37 iova > mem->iova + mem->length - length) in mem_check_range()
127 u64 length, u64 iova, int access, struct ib_udata *udata, in rxe_mem_init_user() argument
138 umem = ib_umem_get(pd->ibpd.device, start, length, access); in rxe_mem_init_user()
163 if (length > 0) { in rxe_mem_init_user()
192 mem->length = length; in rxe_mem_init_user()
240 u64 length; in lookup_iova() local
251 length = mem->map[map_index]->buf[buf_index].size; in lookup_iova()
253 while (offset >= length) { in lookup_iova()
[all …]
Drxe_opcode.c106 .length = RXE_BTH_BYTES,
116 .length = RXE_BTH_BYTES,
126 .length = RXE_BTH_BYTES,
136 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
149 .length = RXE_BTH_BYTES,
160 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
172 .length = RXE_BTH_BYTES + RXE_RETH_BYTES,
184 .length = RXE_BTH_BYTES,
194 .length = RXE_BTH_BYTES,
205 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
[all …]
/kernel/linux/linux-4.19/drivers/platform/chrome/
Dcros_ec_lpc_reg.c29 static u8 lpc_read_bytes(unsigned int offset, unsigned int length, u8 *dest) in lpc_read_bytes() argument
34 for (i = 0; i < length; ++i) { in lpc_read_bytes()
43 static u8 lpc_write_bytes(unsigned int offset, unsigned int length, u8 *msg) in lpc_write_bytes() argument
48 for (i = 0; i < length; ++i) { in lpc_write_bytes()
59 u8 cros_ec_lpc_read_bytes(unsigned int offset, unsigned int length, u8 *dest) in cros_ec_lpc_read_bytes() argument
61 if (length == 0) in cros_ec_lpc_read_bytes()
67 if (WARN_ON(offset + length - 1 > MEC_EMI_RANGE_END)) in cros_ec_lpc_read_bytes()
70 return cros_ec_lpc_io_bytes_mec(MEC_IO_READ, offset, length, in cros_ec_lpc_read_bytes()
74 if (WARN_ON(offset + length > MEC_EMI_RANGE_START && in cros_ec_lpc_read_bytes()
78 return lpc_read_bytes(offset, length, dest); in cros_ec_lpc_read_bytes()
[all …]
/kernel/linux/linux-5.10/drivers/net/fjes/
Dfjes_trace.h54 __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 …]
/kernel/linux/linux-4.19/include/linux/
Dbcm963xx_tag.h7 #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 …]
/kernel/linux/linux-5.10/include/linux/
Dbcm963xx_tag.h7 #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 …]
/kernel/linux/linux-4.19/drivers/infiniband/sw/rxe/
Drxe_opcode.c133 .length = RXE_BTH_BYTES,
143 .length = RXE_BTH_BYTES,
153 .length = RXE_BTH_BYTES,
163 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
176 .length = RXE_BTH_BYTES,
187 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
199 .length = RXE_BTH_BYTES + RXE_RETH_BYTES,
211 .length = RXE_BTH_BYTES,
221 .length = RXE_BTH_BYTES,
232 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
[all …]
Drxe_mr.c54 int mem_check_range(struct rxe_mem *mem, u64 iova, size_t length) in mem_check_range() argument
63 length > mem->length || in mem_check_range()
64 iova > mem->iova + mem->length - length) in mem_check_range()
162 u64 length, u64 iova, int access, struct ib_udata *udata, in rxe_mem_init_user() argument
174 umem = ib_umem_get(pd->ibpd.uobject->context, start, length, access, 0); in rxe_mem_init_user()
199 if (length > 0) { in rxe_mem_init_user()
227 mem->length = length; in rxe_mem_init_user()
275 u64 length; in lookup_iova() local
286 length = mem->map[map_index]->buf[buf_index].size; in lookup_iova()
288 while (offset >= length) { in lookup_iova()
[all …]
/kernel/linux/linux-4.19/drivers/net/fjes/
Dfjes_trace.h69 __field(int, length)
77 __entry->length = res_buf->info.length;
86 TP_printk("res_buf=[length=%d, code=%d, es_zones=%s, es_status=%s]",
87 __entry->length, __entry->code,
113 __field(int, length)
125 __entry->length = req_buf->share_buffer.length;
134 …TP_printk("req_buf=[length=%d, epid=%d], TX=[phy=0x%016llx, size=%zu], RX=[phy=0x%016llx, size=%zu…
135 __entry->length, __entry->epid, __entry->tx, __entry->tx_size,
143 __field(int, length)
148 __entry->length = res_buf->share_buffer.length;
[all …]
/kernel/linux/linux-5.10/include/rdma/
Drdmavt_mr.h21 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 …]
/kernel/linux/linux-5.10/drivers/video/fbdev/
D68328fb.c116 u_long length; in get_line_length() local
118 length = xres_virtual * bpp; in get_line_length()
119 length = (length + 31) & ~31; in get_line_length()
120 length >>= 3; in get_line_length()
121 return (length); in get_line_length()
193 var->red.length = 1; in mc68x328fb_check_var()
195 var->green.length = 1; in mc68x328fb_check_var()
197 var->blue.length = 1; in mc68x328fb_check_var()
199 var->transp.length = 0; in mc68x328fb_check_var()
203 var->red.length = 8; in mc68x328fb_check_var()
[all …]
/kernel/linux/linux-5.10/drivers/net/arcnet/
Darc-rawmode.c40 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 …]
/kernel/linux/linux-4.19/drivers/net/arcnet/
Darc-rawmode.c40 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 …]

12345678910>>...287