/Linux-v4.19/tools/perf/ui/tui/ |
D | util.c | 77 int max_len = 60, nr_lines = 0; in ui_browser__input_window() local 88 if (max_len < len) in ui_browser__input_window() 89 max_len = len; in ui_browser__input_window() 98 max_len += 2; in ui_browser__input_window() 101 x = SLtt_Screen_Cols / 2 - max_len / 2; in ui_browser__input_window() 104 SLsmg_draw_box(y, x++, nr_lines, max_len); in ui_browser__input_window() 111 max_len -= 2; in ui_browser__input_window() 113 nr_lines, max_len, 1); in ui_browser__input_window() 118 SLsmg_write_nstring((char *)" ", max_len); in ui_browser__input_window() 120 SLsmg_draw_box(y++, x + 1, 3, max_len - 2); in ui_browser__input_window() [all …]
|
/Linux-v4.19/drivers/firmware/google/ |
D | vpd_decode.c | 22 static int vpd_decode_len(const s32 max_len, const u8 *in, in vpd_decode_len() argument 33 if (i >= max_len) in vpd_decode_len() 47 int vpd_decode_string(const s32 max_len, const u8 *input_buf, s32 *consumed, in vpd_decode_string() argument 59 if (*consumed >= max_len) in vpd_decode_string() 70 res = vpd_decode_len(max_len - *consumed, &input_buf[*consumed], in vpd_decode_string() 72 if (res != VPD_OK || *consumed + decoded_len >= max_len) in vpd_decode_string() 80 res = vpd_decode_len(max_len - *consumed, &input_buf[*consumed], in vpd_decode_string() 82 if (res != VPD_OK || *consumed + decoded_len > max_len) in vpd_decode_string()
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_get_stack_rawtp.c | 60 int max_len, max_buildid_len, usize, ksize, total_size; in bpf_prog1() local 69 max_len = MAX_STACK_RAWTP * sizeof(__u64); in bpf_prog1() 73 max_len, 0); in bpf_prog1() 74 data->user_stack_size = bpf_get_stack(ctx, data->user_stack, max_len, in bpf_prog1() 86 usize = bpf_get_stack(ctx, raw_data, max_len, BPF_F_USER_STACK); in bpf_prog1() 90 ksize = bpf_get_stack(ctx, raw_data + usize, max_len - usize, 0); in bpf_prog1() 95 if (total_size > 0 && total_size <= max_len) in bpf_prog1()
|
D | test_stacktrace_map.c | 54 __u32 max_len = PERF_MAX_STACK_DEPTH * sizeof(__u64); in oncpu() local 68 bpf_get_stack(ctx, stack_p, max_len, 0); in oncpu()
|
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()
|
/Linux-v4.19/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-v4.19/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-v4.19/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-v4.19/fs/exportfs/ |
D | expfs.c | 357 int *max_len, struct inode *parent) in export_encode_fh() argument 359 int len = *max_len; in export_encode_fh() 363 *max_len = 4; in export_encode_fh() 366 *max_len = 2; in export_encode_fh() 379 *max_len = len; in export_encode_fh() 384 int *max_len, struct inode *parent) in exportfs_encode_inode_fh() argument 389 return nop->encode_fh(inode, fid->raw, max_len, parent); in exportfs_encode_inode_fh() 391 return export_encode_fh(inode, fid, max_len, parent); in exportfs_encode_inode_fh() 395 int exportfs_encode_fh(struct dentry *dentry, struct fid *fid, int *max_len, in exportfs_encode_fh() argument 411 error = exportfs_encode_inode_fh(inode, fid, max_len, parent); in exportfs_encode_fh()
|
/Linux-v4.19/fs/ceph/ |
D | export.c | 25 static int ceph_encode_fh(struct inode *inode, u32 *rawfh, int *max_len, in ceph_encode_fh() argument 38 if (parent_inode && (*max_len < connected_handle_length)) { in ceph_encode_fh() 39 *max_len = connected_handle_length; in ceph_encode_fh() 41 } else if (*max_len < handle_length) { in ceph_encode_fh() 42 *max_len = handle_length; in ceph_encode_fh() 51 *max_len = connected_handle_length; in ceph_encode_fh() 56 *max_len = handle_length; in ceph_encode_fh()
|
/Linux-v4.19/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-v4.19/net/x25/ |
D | x25_out.c | 61 int max_len = x25_pacsize_to_bytes(x25->facilities.pacsize_out); in x25_output() local 63 if (skb->len - header_len > max_len) { in x25_output() 72 skbn = sock_alloc_send_skb(sk, frontlen + max_len, in x25_output() 88 len = max_len > skb->len ? skb->len : max_len; in x25_output()
|
/Linux-v4.19/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-v4.19/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-v4.19/fs/ocfs2/ |
D | export.c | 180 static int ocfs2_encode_fh(struct inode *inode, u32 *fh_in, int *max_len, in ocfs2_encode_fh() argument 183 int len = *max_len; in ocfs2_encode_fh() 197 *max_len = 6; in ocfs2_encode_fh() 201 *max_len = 3; in ocfs2_encode_fh() 231 *max_len = len; in ocfs2_encode_fh()
|
/Linux-v4.19/include/linux/ |
D | fscrypt.h | 216 unsigned int max_len, in fscrypt_prepare_symlink() argument 220 return __fscrypt_prepare_symlink(dir, len, max_len, disk_link); in fscrypt_prepare_symlink() 224 if (disk_link->len > max_len) in fscrypt_prepare_symlink()
|
D | exportfs.h | 194 int (*encode_fh)(struct inode *inode, __u32 *fh, int *max_len, 214 int *max_len, struct inode *parent); 216 int *max_len, int connectable);
|
/Linux-v4.19/fs/xfs/ |
D | xfs_export.c | 47 int *max_len, in xfs_fs_encode_fh() argument 80 if (*max_len < len) { in xfs_fs_encode_fh() 81 *max_len = len; in xfs_fs_encode_fh() 84 *max_len = len; in xfs_fs_encode_fh()
|
/Linux-v4.19/drivers/net/wireless/ath/carl9170/ |
D | fw.c | 53 const struct carl9170fw_desc_head *head, unsigned int max_len) in carl9170_fw_verify_descs() argument 59 if (max_len < sizeof(*pos)) in carl9170_fw_verify_descs() 62 max_len = min_t(unsigned int, CARL9170FW_DESC_MAX_LENGTH, max_len); in carl9170_fw_verify_descs() 66 end_addr = pos_addr + max_len; in carl9170_fw_verify_descs() 77 if (pos_length > max_len) in carl9170_fw_verify_descs() 90 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-v4.19/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-v4.19/drivers/dma/ |
D | bcm2835-dma.c | 190 size_t max_len) in bcm2835_dma_frames_for_length() argument 192 return DIV_ROUND_UP(len, max_len); in bcm2835_dma_frames_for_length() 236 size_t max_len = bcm2835_dma_max_frame_length(chan); in bcm2835_dma_create_cb_set_length() local 239 control_block->length = min_t(u32, len, max_len); in bcm2835_dma_create_cb_set_length() 399 size_t len, max_len; in bcm2835_dma_fill_cb_chain_with_sg() local 404 max_len = bcm2835_dma_max_frame_length(c); in bcm2835_dma_fill_cb_chain_with_sg() 413 cb->cb->length = min(len, max_len); in bcm2835_dma_fill_cb_chain_with_sg() 628 size_t max_len = bcm2835_dma_max_frame_length(c); in bcm2835_dma_prep_dma_memcpy() local 636 frames = bcm2835_dma_frames_for_length(len, max_len); in bcm2835_dma_prep_dma_memcpy() 710 size_t max_len = bcm2835_dma_max_frame_length(c); in bcm2835_dma_prep_dma_cyclic() local [all …]
|
/Linux-v4.19/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()
|
/Linux-v4.19/tools/testing/selftests/net/ |
D | udpgso_bench_tx.c | 250 int max_len, hdrlen; in parse_opts() local 319 max_len = ETH_MAX_MTU - hdrlen; in parse_opts() 321 if (cfg_payload_len > max_len) in parse_opts() 323 cfg_payload_len, max_len); in parse_opts()
|
/Linux-v4.19/sound/usb/6fire/ |
D | firmware.c | 55 u8 max_len; /* maximum record length in whole ihex */ member 151 record->max_len = 0; in usb6fire_fw_ihex_init() 155 record->max_len = max(record->len, record->max_len); in usb6fire_fw_ihex_init()
|