Searched refs:max_len (Results 1 - 25 of 219) sorted by relevance

123456789

/linux-master/drivers/net/wireless/intel/iwlwifi/fw/
H A Dpnvm.h21 u8 *pnvm_name, size_t max_len)
25 snprintf(pnvm_name, max_len, "%s.pnvm",
20 iwl_pnvm_get_fs_name(struct iwl_trans *trans, u8 *pnvm_name, size_t max_len) argument
/linux-master/drivers/firmware/google/
H A Dvpd_decode.c12 static int vpd_decode_len(const u32 max_len, const u8 *in, argument
23 if (i >= max_len)
36 static int vpd_decode_entry(const u32 max_len, const u8 *input_buf, argument
42 if (vpd_decode_len(max_len - consumed, &input_buf[consumed],
45 if (max_len - consumed < decoded_len)
52 if (max_len - consumed < *entry_len)
60 int vpd_decode_string(const u32 max_len, const u8 *input_buf, u32 *consumed, argument
70 if (*consumed >= max_len)
80 if (vpd_decode_entry(max_len, input_buf, consumed, &key,
84 if (vpd_decode_entry(max_len, input_bu
[all...]
H A Dvpd_decode.h47 int vpd_decode_string(const u32 max_len, const u8 *input_buf, u32 *consumed,
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_get_stack_rawtp.c33 * usize = bpf_get_stack(ctx, raw_data, max_len, BPF_F_USER_STACK);
36 * ksize = bpf_get_stack(ctx, raw_data + usize, max_len - usize, 0);
40 * with size "max_len - usize" may be out of bound.
41 * The maximum "raw_data + usize" is "raw_data + max_len"
42 * and the maximum "max_len - usize" is "max_len", verifier
44 * "raw_data[0...max_len * 2 - 1]" and hence reject the program.
60 int max_len, max_buildid_len, total_size; local
70 max_len = MAX_STACK_RAWTP * sizeof(__u64);
74 max_len,
[all...]
H A Dstacktrace_map_skip.c38 __u32 max_len = TEST_STACK_DEPTH * sizeof(__u64); local
55 bpf_get_stack(ctx, stack_p, max_len, TEST_STACK_DEPTH);
H A Dtest_stacktrace_build_id.c45 __u32 max_len = sizeof(struct bpf_stack_build_id) local
60 bpf_get_stack(args, stack_p, max_len,
H A Dtest_stacktrace_map.c56 __u32 max_len = PERF_MAX_STACK_DEPTH * sizeof(__u64); local
70 bpf_get_stack(ctx, stack_p, max_len, 0);
/linux-master/tools/perf/ui/tui/
H A Dutil.c79 int max_len = 60, nr_lines = 0; local
90 if (max_len < len)
91 max_len = len;
100 max_len += 2;
103 x = SLtt_Screen_Cols / 2 - max_len / 2;
106 SLsmg_draw_box(y, x++, nr_lines, max_len);
113 max_len -= 2;
115 nr_lines, max_len, 1);
120 SLsmg_write_nstring(" ", max_len);
122 SLsmg_draw_box(y++, x + 1, 3, max_len
170 int max_len = 0, nr_lines = 0; local
[all...]
/linux-master/fs/ntfs3/
H A Dlznt.c32 size_t max_len; member in struct:lznt
39 size_t max_len)
43 while (ptr + len < end && ptr[len] == prev[len] && ++len < max_len)
63 if (ctx->max_len > 3)
65 hash[0] + 3, ctx->max_len - 3);
71 if (ctx->max_len > 3)
73 hash[1] + 3, ctx->max_len - 3);
91 size_t max_len; local
94 if (ctx->unc >= src || !ctx->max_len)
97 max_len
38 get_match_len(const u8 *ptr, const u8 *end, const u8 *prev, size_t max_len) argument
164 size_t max_len; local
[all...]
/linux-master/drivers/staging/rtl8723bs/hal/
H A Dhal_sdio.c83 u32 deviceId, max_len; local
89 max_len = pHalData->sdio_tx_max_len[HI_QUEUE_IDX];
93 max_len = pHalData->sdio_tx_max_len[MID_QUEUE_IDX];
97 max_len = pHalData->sdio_tx_max_len[LOW_QUEUE_IDX];
101 max_len = pHalData->sdio_tx_max_len[MID_QUEUE_IDX];
105 return max_len;
/linux-master/fs/nfs/
H A Dexport.c35 nfs_encode_fh(struct inode *inode, __u32 *p, int *max_len, struct inode *parent) argument
43 __func__, *max_len, inode, parent);
45 if (*max_len < len) {
47 __func__, *max_len, len);
48 *max_len = len;
57 *max_len = len;
59 __func__, NFS_FILEID(inode), inode->i_mode, *max_len);
60 return *max_len;
/linux-master/drivers/crypto/qce/
H A Ddma.c51 unsigned int max_len)
65 while (new_sgl && sg && max_len) {
66 new_len = new_sgl->length > max_len ? max_len : new_sgl->length;
71 max_len -= new_len;
50 qce_sgtable_add(struct sg_table *sgt, struct scatterlist *new_sgl, unsigned int max_len) argument
H A Ddma.h46 unsigned int max_len);
/linux-master/include/linux/
H A Dexportfs.h176 * @max_len bytes) information that can be used by @decode_fh to recover the
183 * greater than @max_len*4 bytes). On error @max_len contains the minimum
223 int (*encode_fh)(struct inode *inode, __u32 *fh, int *max_len,
266 int *max_len, struct inode *parent,
269 int *max_len, int flags);
299 int *max_len)
301 return exportfs_encode_inode_fh(inode, fid, max_len, NULL,
317 int generic_encode_ino32_fh(struct inode *inode, __u32 *fh, int *max_len,
298 exportfs_encode_fid(struct inode *inode, struct fid *fid, int *max_len) argument
/linux-master/kernel/
H A Dsysctl-test.c316 size_t max_len = 32, len = max_len; local
318 char *buffer = kunit_kzalloc(test, max_len, GFP_USER);
328 (size_t)snprintf(buffer, max_len, "-%lu",
330 max_len);
334 KUNIT_EXPECT_EQ(test, max_len, len);
354 size_t max_len = 32, len = max_len; local
356 char *buffer = kunit_kzalloc(test, max_len, GFP_USER);
361 KUNIT_ASSERT_LT(test, (size_t)snprintf(buffer, max_len, "
[all...]
/linux-master/arch/m68k/amiga/
H A Dpcmcia.c40 int pcmcia_copy_tuple(unsigned char tuple_id, void *tuple, int max_len) argument
53 len = (len > max_len)?max_len:len;
/linux-master/drivers/firmware/arm_scmi/
H A Dmsg.c100 * @max_len: maximum SCMI payload size to fetch
104 size_t max_len, struct scmi_xfer *xfer)
106 xfer->rx.len = min_t(size_t, max_len,
103 msg_fetch_notification(struct scmi_msg_payld *msg, size_t len, size_t max_len, struct scmi_xfer *xfer) argument
/linux-master/include/linux/platform_data/x86/
H A Dsimatic-ipc.h43 static inline u32 simatic_ipc_get_station_id(u8 *data, int max_len) argument
54 while ((u8 *)data_entry < data + max_len) {
/linux-master/fs/isofs/
H A Dexport.c113 int *max_len,
117 int len = *max_len;
122 * WARNING: max_len is 5 for NFSv2. Because of this
128 *max_len = 5;
131 *max_len = 3;
149 *max_len = len;
111 isofs_export_encode_fh(struct inode *inode, __u32 *fh32, int *max_len, struct inode *parent) argument
/linux-master/drivers/net/dsa/sja1105/
H A Dsja1105_devlink.c43 size_t max_len, len; local
46 max_len = sja1105_static_config_get_max_size(priv);
48 *data = kcalloc(max_len, sizeof(u8), GFP_KERNEL);
/linux-master/drivers/media/tuners/
H A Dxc2028.h36 int max_len; member in struct:xc2028_ctrl
/linux-master/fs/xfs/
H A Dxfs_export.c44 int *max_len,
77 if (*max_len < len) {
78 *max_len = len;
81 *max_len = len;
41 xfs_fs_encode_fh( struct inode *inode, __u32 *fh, int *max_len, struct inode *parent) argument
/linux-master/fs/exportfs/
H A Dexpfs.c351 * @max_len: maximum length to store there (in 4 byte units)
357 int *max_len)
359 if (*max_len < FILEID_INO64_GEN_LEN) {
360 *max_len = FILEID_INO64_GEN_LEN;
366 *max_len = FILEID_INO64_GEN_LEN;
375 * @max_len: maximum length to store there
382 int *max_len, struct inode *parent, int flags)
390 return exportfs_encode_ino64_fid(inode, fid, max_len);
392 return nop->encode_fh(inode, fid->raw, max_len, parent);
400 * @max_len
356 exportfs_encode_ino64_fid(struct inode *inode, struct fid *fid, int *max_len) argument
381 exportfs_encode_inode_fh(struct inode *inode, struct fid *fid, int *max_len, struct inode *parent, int flags) argument
405 exportfs_encode_fh(struct dentry *dentry, struct fid *fid, int *max_len, int flags) argument
[all...]
/linux-master/fs/ocfs2/
H A Dexport.c192 static int ocfs2_encode_fh(struct inode *inode, u32 *fh_in, int *max_len, argument
195 int len = *max_len;
209 *max_len = 6;
213 *max_len = 3;
243 *max_len = len;
/linux-master/net/x25/
H A Dx25_out.c56 int max_len = x25_pacsize_to_bytes(x25->facilities.pacsize_out); local
58 if (skb->len - header_len > max_len) {
67 skbn = sock_alloc_send_skb(sk, frontlen + max_len,
83 len = max_len > skb->len ? skb->len : max_len;

Completed in 468 milliseconds

123456789