Home
last modified time | relevance | path

Searched refs:max_len (Results 1 – 25 of 257) sorted by relevance

1234567891011

/openbmc/linux/tools/perf/ui/tui/
H A Dutil.c79 int max_len = 60, nr_lines = 0; in ui_browser__input_window() local
90 if (max_len < len) in ui_browser__input_window()
91 max_len = len; in ui_browser__input_window()
100 max_len += 2; in ui_browser__input_window()
113 max_len -= 2; in ui_browser__input_window()
115 nr_lines, max_len, 1); in ui_browser__input_window()
181 if (max_len < len) in __ui__info_window()
182 max_len = len; in __ui__info_window()
189 max_len += 2; in __ui__info_window()
205 max_len -= 2; in __ui__info_window()
[all …]
/openbmc/linux/drivers/firmware/google/
H A Dvpd_decode.c12 static int vpd_decode_len(const u32 max_len, const u8 *in, in vpd_decode_len() argument
23 if (i >= max_len) in vpd_decode_len()
36 static int vpd_decode_entry(const u32 max_len, const u8 *input_buf, in vpd_decode_entry() argument
42 if (vpd_decode_len(max_len - consumed, &input_buf[consumed], in vpd_decode_entry()
45 if (max_len - consumed < decoded_len) in vpd_decode_entry()
52 if (max_len - consumed < *entry_len) in vpd_decode_entry()
60 int vpd_decode_string(const u32 max_len, const u8 *input_buf, u32 *consumed, in vpd_decode_string() argument
70 if (*consumed >= max_len) in vpd_decode_string()
80 if (vpd_decode_entry(max_len, input_buf, consumed, &key, in vpd_decode_string()
84 if (vpd_decode_entry(max_len, input_buf, consumed, &value, in vpd_decode_string()
/openbmc/linux/fs/ntfs3/
H A Dlznt.c32 size_t max_len; member
39 size_t max_len) in get_match_len() argument
63 if (ctx->max_len > 3) in longest_match_std()
71 if (ctx->max_len > 3) in longest_match_std()
91 size_t max_len; in longest_match_best() local
97 max_len = 0; in longest_match_best()
102 max_len = len; in longest_match_best()
107 return max_len >= 3 ? max_len : 0; in longest_match_best()
164 size_t max_len; in compress_chunk() local
172 if (!max_len) { in compress_chunk()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_get_stack_rawtp.c60 int max_len, max_buildid_len, total_size; in bpf_prog1() local
70 max_len = MAX_STACK_RAWTP * sizeof(__u64); in bpf_prog1()
74 max_len, 0); in bpf_prog1()
75 data->user_stack_size = bpf_get_stack(ctx, data->user_stack, max_len, in bpf_prog1()
87 usize = bpf_get_stack(ctx, raw_data, max_len, BPF_F_USER_STACK); in bpf_prog1()
91 ksize = bpf_get_stack(ctx, raw_data + usize, max_len - usize, 0); in bpf_prog1()
96 if (total_size > 0 && total_size <= max_len) in bpf_prog1()
/openbmc/qemu/hw/ide/
H A Datapi.c693 int max_len = buf[4]; in cmd_request_sense() local
711 int max_len = buf[4]; in cmd_inquiry() local
816 int max_len; in cmd_get_configuration() local
826 max_len = lduw_be_p(buf + 7); in cmd_get_configuration()
840 memset(buf, 0, max_len); in cmd_get_configuration()
863 int max_len; in cmd_mode_sense() local
865 max_len = lduw_be_p(buf + 7); in cmd_mode_sense()
1114 int max_len; in cmd_read_toc_pma_atip() local
1117 max_len = lduw_be_p(buf + 7); in cmd_read_toc_pma_atip()
1192 int max_len; in cmd_read_dvd_structure() local
[all …]
/openbmc/qemu/hw/nvram/
H A Dchrp_nvram.c29 int max_len) in chrp_nvram_set_var() argument
35 if (max_len < len) { in chrp_nvram_set_var()
48 int chrp_nvram_create_system_partition(uint8_t *data, int min_len, int max_len) in chrp_nvram_create_system_partition() argument
54 if (max_len < sizeof(*part_header)) { in chrp_nvram_create_system_partition()
64 end = chrp_nvram_set_var(data, end, prom_envs[i], max_len - end); in chrp_nvram_create_system_partition()
/openbmc/qemu/bsd-user/
H A Duaccess.c46 int max_len, len; in target_strlen() local
50 max_len = TARGET_PAGE_SIZE - (guest_addr & ~TARGET_PAGE_MASK); in target_strlen()
51 ptr = lock_user(VERIFY_READ, guest_addr, max_len, 1); in target_strlen()
54 len = qemu_strnlen((const char *)ptr, max_len); in target_strlen()
61 if (len != max_len) in target_strlen()
/openbmc/linux/fs/nfs/
H A Dexport.c35 nfs_encode_fh(struct inode *inode, __u32 *p, int *max_len, struct inode *parent) in nfs_encode_fh() argument
43 __func__, *max_len, inode, parent); in nfs_encode_fh()
45 if (*max_len < len) { in nfs_encode_fh()
47 __func__, *max_len, len); in nfs_encode_fh()
48 *max_len = len; in nfs_encode_fh()
57 *max_len = len; in nfs_encode_fh()
59 __func__, NFS_FILEID(inode), inode->i_mode, *max_len); in nfs_encode_fh()
60 return *max_len; in nfs_encode_fh()
/openbmc/linux/drivers/staging/rtl8723bs/hal/
H A Dhal_sdio.c83 u32 deviceId, max_len; in rtw_hal_get_sdio_tx_max_length() local
89 max_len = pHalData->sdio_tx_max_len[HI_QUEUE_IDX]; in rtw_hal_get_sdio_tx_max_length()
93 max_len = pHalData->sdio_tx_max_len[MID_QUEUE_IDX]; in rtw_hal_get_sdio_tx_max_length()
97 max_len = pHalData->sdio_tx_max_len[LOW_QUEUE_IDX]; in rtw_hal_get_sdio_tx_max_length()
101 max_len = pHalData->sdio_tx_max_len[MID_QUEUE_IDX]; in rtw_hal_get_sdio_tx_max_length()
105 return max_len; in rtw_hal_get_sdio_tx_max_length()
/openbmc/linux/kernel/
H A Dsysctl-test.c316 size_t max_len = 32, len = max_len; in sysctl_test_api_dointvec_write_single_less_int_min() local
318 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); in sysctl_test_api_dointvec_write_single_less_int_min()
328 (size_t)snprintf(buffer, max_len, "-%lu", in sysctl_test_api_dointvec_write_single_less_int_min()
330 max_len); in sysctl_test_api_dointvec_write_single_less_int_min()
334 KUNIT_EXPECT_EQ(test, max_len, len); in sysctl_test_api_dointvec_write_single_less_int_min()
354 size_t max_len = 32, len = max_len; in sysctl_test_api_dointvec_write_single_greater_int_max() local
356 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); in sysctl_test_api_dointvec_write_single_greater_int_max()
361 KUNIT_ASSERT_LT(test, (size_t)snprintf(buffer, max_len, "%lu", in sysctl_test_api_dointvec_write_single_greater_int_max()
363 max_len); in sysctl_test_api_dointvec_write_single_greater_int_max()
366 KUNIT_ASSERT_EQ(test, max_len, len); in sysctl_test_api_dointvec_write_single_greater_int_max()
/openbmc/qemu/linux-user/
H A Duaccess.c94 size_t max_len, len; in target_strlen() local
98 max_len = TARGET_PAGE_SIZE - (guest_addr & ~TARGET_PAGE_MASK); in target_strlen()
99 ptr = lock_user(VERIFY_READ, guest_addr, max_len, 1); in target_strlen()
102 len = qemu_strnlen((const char *)ptr, max_len); in target_strlen()
109 if (len != max_len) { in target_strlen()
/openbmc/linux/include/linux/
H A Dexportfs.h202 int (*encode_fh)(struct inode *inode, __u32 *fh, int *max_len,
231 int *max_len, struct inode *parent,
234 int *max_len, int flags);
237 int *max_len) in exportfs_encode_fid() argument
239 return exportfs_encode_inode_fh(inode, fid, max_len, NULL, in exportfs_encode_fid()
/openbmc/linux/drivers/crypto/qce/
H A Ddma.c51 unsigned int max_len) in qce_sgtable_add() argument
65 while (new_sgl && sg && max_len) { in qce_sgtable_add()
66 new_len = new_sgl->length > max_len ? max_len : new_sgl->length; in qce_sgtable_add()
71 max_len -= new_len; in qce_sgtable_add()
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Dmad.c1601 max_len); in __subn_set_opa_portinfo()
1619 max_len); in __subn_set_opa_portinfo()
1726 max_len); in __subn_set_opa_pkeytable()
1834 max_len); in __subn_set_opa_sl_to_sc()
1878 max_len); in __subn_set_opa_sc_to_sl()
1942 max_len); in __subn_set_opa_sc_to_vlt()
2089 max_len); in __subn_set_opa_psi()
2189 max_len); in __subn_set_opa_bct()
2272 max_len); in __subn_set_opa_vl_arb()
3985 max_len); in __subn_set_opa_cc_table()
[all …]
/openbmc/linux/fs/isofs/
H A Dexport.c113 int *max_len, in isofs_export_encode_fh() argument
117 int len = *max_len; in isofs_export_encode_fh()
128 *max_len = 5; in isofs_export_encode_fh()
131 *max_len = 3; in isofs_export_encode_fh()
149 *max_len = len; in isofs_export_encode_fh()
/openbmc/u-boot/fs/btrfs/
H A Dsubvolume.c11 static int get_subvol_name(u64 subvolid, char *name, int max_len) in get_subvol_name() argument
20 ptr = name + max_len - 1; in get_subvol_name()
56 if (ptr == name + max_len - 1) { in get_subvol_name()
60 memmove(name, ptr, name + max_len - ptr); in get_subvol_name()
/openbmc/linux/fs/exportfs/
H A Dexpfs.c358 int *max_len, struct inode *parent) in export_encode_fh() argument
360 int len = *max_len; in export_encode_fh()
364 *max_len = 4; in export_encode_fh()
367 *max_len = 2; in export_encode_fh()
380 *max_len = len; in export_encode_fh()
395 int *max_len, struct inode *parent, int flags) in exportfs_encode_inode_fh() argument
407 return nop->encode_fh(inode, fid->raw, max_len, parent); in exportfs_encode_inode_fh()
409 return export_encode_fh(inode, fid, max_len, parent); in exportfs_encode_inode_fh()
422 int exportfs_encode_fh(struct dentry *dentry, struct fid *fid, int *max_len, in exportfs_encode_fh() argument
438 error = exportfs_encode_inode_fh(inode, fid, max_len, parent, flags); in exportfs_encode_fh()
/openbmc/linux/net/x25/
H A Dx25_out.c56 int max_len = x25_pacsize_to_bytes(x25->facilities.pacsize_out); in x25_output() local
58 if (skb->len - header_len > max_len) { in x25_output()
67 skbn = sock_alloc_send_skb(sk, frontlen + max_len, in x25_output()
83 len = max_len > skb->len ? skb->len : max_len; in x25_output()
/openbmc/linux/drivers/video/fbdev/core/
H A Dfbcon.h113 __u32 max_len; in mono_col() local
114 max_len = max(info->var.green.length, info->var.red.length); in mono_col()
115 max_len = max(info->var.blue.length, max_len); in mono_col()
116 return (~(0xfff << max_len)) & 0xff; in mono_col()
/openbmc/linux/fs/ceph/
H A Dexport.c46 if (*max_len < snap_handle_length) { in ceph_encode_snapfh()
47 *max_len = snap_handle_length; in ceph_encode_snapfh()
79 *max_len = snap_handle_length; in ceph_encode_snapfh()
86 static int ceph_encode_fh(struct inode *inode, u32 *rawfh, int *max_len, in ceph_encode_fh() argument
96 return ceph_encode_snapfh(inode, rawfh, max_len, parent_inode); in ceph_encode_fh()
98 if (parent_inode && (*max_len < connected_handle_length)) { in ceph_encode_fh()
99 *max_len = connected_handle_length; in ceph_encode_fh()
101 } else if (*max_len < handle_length) { in ceph_encode_fh()
102 *max_len = handle_length; in ceph_encode_fh()
112 *max_len = connected_handle_length; in ceph_encode_fh()
[all …]
/openbmc/linux/arch/m68k/amiga/
H A Dpcmcia.c41 int pcmcia_copy_tuple(unsigned char tuple_id, void *tuple, int max_len) in pcmcia_copy_tuple() argument
54 len = (len > max_len)?max_len:len; in pcmcia_copy_tuple()
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/
H A Dpnvm.h21 u8 *pnvm_name, size_t max_len) in iwl_pnvm_get_fs_name() argument
25 snprintf(pnvm_name, max_len, "%s.pnvm", in iwl_pnvm_get_fs_name()
/openbmc/linux/fs/ocfs2/
H A Dexport.c192 static int ocfs2_encode_fh(struct inode *inode, u32 *fh_in, int *max_len, in ocfs2_encode_fh() argument
195 int len = *max_len; in ocfs2_encode_fh()
209 *max_len = 6; in ocfs2_encode_fh()
213 *max_len = 3; in ocfs2_encode_fh()
243 *max_len = len; in ocfs2_encode_fh()
/openbmc/linux/fs/xfs/
H A Dxfs_export.c44 int *max_len, in xfs_fs_encode_fh() argument
77 if (*max_len < len) { in xfs_fs_encode_fh()
78 *max_len = len; in xfs_fs_encode_fh()
81 *max_len = len; in xfs_fs_encode_fh()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/
H A Dccm_mbox.c49 unsigned int max_len; member
62 nfp_ccm_mbox_msg_init(struct sk_buff *skb, unsigned int exp_reply, int max_len) in nfp_ccm_mbox_msg_init() argument
68 cb->max_len = max_len; in nfp_ccm_mbox_msg_init()
77 return cb->max_len; in nfp_ccm_mbox_maxlen()
291 if (length > cb->max_len) { in nfp_ccm_mbox_copy_out()
293 hdr.type, cb->max_len, length); in nfp_ccm_mbox_copy_out()
470 unsigned int max_len; in nfp_ccm_mbox_msg_prepare() local
503 max_len = max(max_reply_size, round_up(skb->len, 4)); in nfp_ccm_mbox_msg_prepare()
504 if (max_len > mbox_max) { in nfp_ccm_mbox_msg_prepare()
511 nfp_ccm_mbox_msg_init(skb, reply_size, max_len); in nfp_ccm_mbox_msg_prepare()

1234567891011