/Linux-v5.10/tools/perf/ui/tui/ |
D | util.c | 79 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() 103 x = SLtt_Screen_Cols / 2 - max_len / 2; in ui_browser__input_window() 106 SLsmg_draw_box(y, x++, nr_lines, max_len); 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() 120 SLsmg_write_nstring((char *)" ", max_len); in ui_browser__input_window() 122 SLsmg_draw_box(y++, x + 1, 3, max_len - 2); in ui_browser__input_window() [all …]
|
/Linux-v5.10/drivers/firmware/google/ |
D | vpd_decode.c | 12 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()
|
/Linux-v5.10/tools/testing/selftests/bpf/progs/ |
D | test_get_stack_rawtp.c | 60 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()
|
D | test_stacktrace_build_id.c | 53 __u32 max_len = sizeof(struct bpf_stack_build_id) in oncpu() local 68 bpf_get_stack(args, stack_p, max_len, in oncpu()
|
D | test_stacktrace_map.c | 56 __u32 max_len = PERF_MAX_STACK_DEPTH * sizeof(__u64); in oncpu() local 70 bpf_get_stack(ctx, stack_p, max_len, 0); in oncpu()
|
/Linux-v5.10/kernel/ |
D | sysctl-test.c | 319 size_t max_len = 32, len = max_len; in sysctl_test_api_dointvec_write_single_less_int_min() local 321 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); in sysctl_test_api_dointvec_write_single_less_int_min() 331 (size_t)snprintf(buffer, max_len, "-%lu", in sysctl_test_api_dointvec_write_single_less_int_min() 333 max_len); in sysctl_test_api_dointvec_write_single_less_int_min() 337 KUNIT_EXPECT_EQ(test, max_len, len); in sysctl_test_api_dointvec_write_single_less_int_min() 357 size_t max_len = 32, len = max_len; in sysctl_test_api_dointvec_write_single_greater_int_max() local 359 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); in sysctl_test_api_dointvec_write_single_greater_int_max() 364 KUNIT_ASSERT_LT(test, (size_t)snprintf(buffer, max_len, "%lu", in sysctl_test_api_dointvec_write_single_greater_int_max() 366 max_len); in sysctl_test_api_dointvec_write_single_greater_int_max() 369 KUNIT_ASSERT_EQ(test, max_len, len); in sysctl_test_api_dointvec_write_single_greater_int_max()
|
/Linux-v5.10/drivers/staging/rtl8723bs/hal/ |
D | hal_sdio.c | 84 u32 deviceId, max_len; in rtw_hal_get_sdio_tx_max_length() local 90 max_len = pHalData->sdio_tx_max_len[HI_QUEUE_IDX]; in rtw_hal_get_sdio_tx_max_length() 94 max_len = pHalData->sdio_tx_max_len[MID_QUEUE_IDX]; in rtw_hal_get_sdio_tx_max_length() 98 max_len = pHalData->sdio_tx_max_len[LOW_QUEUE_IDX]; in rtw_hal_get_sdio_tx_max_length() 102 max_len = pHalData->sdio_tx_max_len[MID_QUEUE_IDX]; in rtw_hal_get_sdio_tx_max_length() 106 return max_len; in rtw_hal_get_sdio_tx_max_length()
|
/Linux-v5.10/fs/nfs/ |
D | export.c | 35 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 || IS_AUTOMOUNT(inode)) { 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()
|
/Linux-v5.10/drivers/infiniband/hw/hfi1/ |
D | mad.c | 584 u8 port, u32 *resp_len, u32 max_len) in __subn_get_opa_nodedesc() argument 588 if (am || smp_length_check(sizeof(*nd), max_len)) { in __subn_get_opa_nodedesc() 605 u32 *resp_len, u32 max_len) in __subn_get_opa_nodeinfo() argument 615 smp_length_check(sizeof(*ni), max_len) || in __subn_get_opa_nodeinfo() 798 u32 *resp_len, u32 max_len) in __subn_get_opa_portinfo() argument 814 if (num_ports != 1 || smp_length_check(sizeof(*pi), max_len)) { in __subn_get_opa_portinfo() 1023 u32 *resp_len, u32 max_len) in __subn_get_opa_pkeytable() argument 1046 if (smp_length_check(size, max_len)) { in __subn_get_opa_pkeytable() 1353 u32 *resp_len, u32 max_len, int local_mad) in __subn_set_opa_portinfo() argument 1375 smp_length_check(sizeof(*pi), max_len)) { in __subn_set_opa_portinfo() [all …]
|
/Linux-v5.10/drivers/crypto/qce/ |
D | dma.c | 51 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()
|
/Linux-v5.10/fs/isofs/ |
D | export.c | 113 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()
|
/Linux-v5.10/fs/exportfs/ |
D | expfs.c | 359 int *max_len, struct inode *parent) in export_encode_fh() argument 361 int len = *max_len; in export_encode_fh() 365 *max_len = 4; in export_encode_fh() 368 *max_len = 2; in export_encode_fh() 381 *max_len = len; in export_encode_fh() 386 int *max_len, struct inode *parent) in exportfs_encode_inode_fh() argument 391 return nop->encode_fh(inode, fid->raw, max_len, parent); in exportfs_encode_inode_fh() 393 return export_encode_fh(inode, fid, max_len, parent); in exportfs_encode_inode_fh() 397 int exportfs_encode_fh(struct dentry *dentry, struct fid *fid, int *max_len, in exportfs_encode_fh() argument 413 error = exportfs_encode_inode_fh(inode, fid, max_len, parent); in exportfs_encode_fh()
|
/Linux-v5.10/net/x25/ |
D | x25_out.c | 56 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()
|
/Linux-v5.10/fs/ceph/ |
D | export.c | 35 static int ceph_encode_snapfh(struct inode *inode, u32 *rawfh, int *max_len, in ceph_encode_snapfh() argument 45 if (*max_len < snap_handle_length) { in ceph_encode_snapfh() 46 *max_len = snap_handle_length; in ceph_encode_snapfh() 78 *max_len = snap_handle_length; in ceph_encode_snapfh() 85 static int ceph_encode_fh(struct inode *inode, u32 *rawfh, int *max_len, in ceph_encode_fh() argument 95 return ceph_encode_snapfh(inode, rawfh, max_len, parent_inode); in ceph_encode_fh() 97 if (parent_inode && (*max_len < connected_handle_length)) { in ceph_encode_fh() 98 *max_len = connected_handle_length; in ceph_encode_fh() 100 } else if (*max_len < handle_length) { in ceph_encode_fh() 101 *max_len = handle_length; in ceph_encode_fh() [all …]
|
/Linux-v5.10/drivers/video/fbdev/core/ |
D | fbcon.h | 113 __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()
|
/Linux-v5.10/arch/m68k/amiga/ |
D | pcmcia.c | 41 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()
|
/Linux-v5.10/fs/ocfs2/ |
D | export.c | 194 static int ocfs2_encode_fh(struct inode *inode, u32 *fh_in, int *max_len, in ocfs2_encode_fh() argument 197 int len = *max_len; in ocfs2_encode_fh() 211 *max_len = 6; in ocfs2_encode_fh() 215 *max_len = 3; in ocfs2_encode_fh() 245 *max_len = len; in ocfs2_encode_fh()
|
/Linux-v5.10/fs/xfs/ |
D | xfs_export.c | 44 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()
|
/Linux-v5.10/drivers/net/ethernet/netronome/nfp/ |
D | ccm_mbox.c | 49 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()
|
/Linux-v5.10/include/linux/ |
D | exportfs.h | 199 int (*encode_fh)(struct inode *inode, __u32 *fh, int *max_len, 219 int *max_len, struct inode *parent); 221 int *max_len, int connectable);
|
/Linux-v5.10/drivers/net/wireless/ath/carl9170/ |
D | fw.c | 40 const struct carl9170fw_desc_head *head, unsigned int max_len) in carl9170_fw_verify_descs() argument 46 if (max_len < sizeof(*pos)) in carl9170_fw_verify_descs() 49 max_len = min_t(unsigned int, CARL9170FW_DESC_MAX_LENGTH, max_len); in carl9170_fw_verify_descs() 53 end_addr = pos_addr + max_len; in carl9170_fw_verify_descs() 64 if (pos_length > max_len) in carl9170_fw_verify_descs() 77 max_len -= pos_length; in carl9170_fw_verify_descs()
|
D | debug.c | 491 int i, max_len, err; \ 493 max_len = ARRAY_SIZE(name##_regs) * 80; \ 494 buf = vmalloc(max_len); \ 507 ADD(buf, *ret, max_len, "%22s = %" f "[+%" f "]\n", \ 521 int i, max_len, err; \ 523 max_len = ARRAY_SIZE(name##_regs) * 80; \ 524 buf = vmalloc(max_len); \ 535 ADD(buf, *ret, max_len, "%22s = %" f "\n", \ 547 int err = 0, i, n = 0, max_len = 32, res; in carl9170_debugfs_hw_ioread32_write() local 553 if (count > max_len) in carl9170_debugfs_hw_ioread32_write() [all …]
|
/Linux-v5.10/fs/btrfs/ |
D | export.c | 17 static int btrfs_encode_fh(struct inode *inode, u32 *fh, int *max_len, in btrfs_encode_fh() argument 21 int len = *max_len; in btrfs_encode_fh() 25 *max_len = BTRFS_FID_SIZE_CONNECTABLE; in btrfs_encode_fh() 28 *max_len = BTRFS_FID_SIZE_NON_CONNECTABLE; in btrfs_encode_fh() 56 *max_len = len; in btrfs_encode_fh()
|
/Linux-v5.10/drivers/dma/ |
D | bcm2835-dma.c | 183 size_t max_len) in bcm2835_dma_frames_for_length() argument 185 return DIV_ROUND_UP(len, max_len); in bcm2835_dma_frames_for_length() 229 size_t max_len = bcm2835_dma_max_frame_length(chan); in bcm2835_dma_create_cb_set_length() local 232 control_block->length = min_t(u32, len, max_len); in bcm2835_dma_create_cb_set_length() 391 size_t len, max_len; in bcm2835_dma_fill_cb_chain_with_sg() local 396 max_len = bcm2835_dma_max_frame_length(c); in bcm2835_dma_fill_cb_chain_with_sg() 405 cb->cb->length = min(len, max_len); in bcm2835_dma_fill_cb_chain_with_sg() 620 size_t max_len = bcm2835_dma_max_frame_length(c); in bcm2835_dma_prep_dma_memcpy() local 628 frames = bcm2835_dma_frames_for_length(len, max_len); in bcm2835_dma_prep_dma_memcpy() 703 size_t max_len = bcm2835_dma_max_frame_length(c); in bcm2835_dma_prep_dma_cyclic() local [all …]
|
/Linux-v5.10/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_ethtool.c | 355 int i, max_len, first_word, last_word; in ixgb_get_eeprom() local 365 max_len = ixgb_get_eeprom_len(netdev); in ixgb_get_eeprom() 372 if ((eeprom->offset + eeprom->len) > max_len) in ixgb_get_eeprom() 373 eeprom->len = (max_len - eeprom->offset); in ixgb_get_eeprom() 403 int max_len, first_word, last_word; in ixgb_set_eeprom() local 412 max_len = ixgb_get_eeprom_len(netdev); in ixgb_set_eeprom() 417 if ((eeprom->offset + eeprom->len) > max_len) in ixgb_set_eeprom() 418 eeprom->len = (max_len - eeprom->offset); in ixgb_set_eeprom() 422 eeprom_buff = kmalloc(max_len, GFP_KERNEL); in ixgb_set_eeprom()
|