Home
last modified time | relevance | path

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

12

/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/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/hw/ide/
H A Datapi.c640 unsigned int max_len, used_len; in cmd_get_event_status_notification() local
645 max_len = be16_to_cpu(gesn_cdb->len); in cmd_get_event_status_notification()
688 ide_atapi_cmd_reply(s, used_len, max_len); in cmd_get_event_status_notification()
693 int max_len = buf[4]; in cmd_request_sense() local
705 ide_atapi_cmd_reply(s, 18, max_len); in cmd_request_sense()
711 int max_len = buf[4]; in cmd_inquiry() local
741 if (idx + 24 > max_len) { in cmd_inquiry()
756 if (idx + 72 > max_len) { in cmd_inquiry()
772 if (s->wwn && (idx + 12 <= max_len)) { in cmd_inquiry()
809 ide_atapi_cmd_reply(s, idx, max_len); in cmd_inquiry()
[all …]
/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/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()
H A Ddir-item.c12 u16 max_len = BTRFS_NAME_LEN; in verify_dir_item() local
21 max_len = 255; /* XATTR_NAME_MAX */ in verify_dir_item()
24 if (item->name_len > max_len || end > total) { in verify_dir_item()
/openbmc/ipmitool/src/plugins/serial/
H A Dserial_basic.c123 size_t max_len; member
501 if (ctx->msg_len >= ctx->max_len) { in serial_bm_parse_buffer()
527 if (ctx->msg_len >= ctx->max_len) { in serial_bm_parse_buffer()
554 parse_ctx.max_len = msg_len; in serial_bm_recv_msg()
607 const struct ipmi_rq * req, uint8_t * msg, size_t max_len, in serial_bm_build_msg() argument
628 if(req->msg.data_len + 7 + bridging_level * 8 > max_len) { in serial_bm_build_msg()
751 uint8_t * msg, size_t max_len) in serial_bm_wait_response() argument
757 while ((msg_len = serial_bm_recv_msg(intf, read_ctx, msg, max_len)) > 0) { in serial_bm_wait_response()
823 uint8_t * msg, size_t max_len) in serial_bm_get_message() argument
H A Dserial_terminal.c467 const struct ipmi_rq * req, uint8_t * msg, size_t max_len, in serial_term_build_msg() argument
488 if(req->msg.data_len + 3 + bridging_level * 8 > max_len) { in serial_term_build_msg()
664 uint8_t * msg, size_t max_len) in serial_term_wait_response() argument
672 msg_len = recv_response(intf, msg, max_len); in serial_term_wait_response()
719 uint8_t * msg, size_t max_len) in serial_term_get_message() argument
/openbmc/qemu/net/
H A Dqueue.c124 size_t max_len = 0; in qemu_net_queue_append_iov() local
131 max_len += iov[i].iov_len; in qemu_net_queue_append_iov()
134 packet = g_malloc(sizeof(NetPacket) + max_len); in qemu_net_queue_append_iov()
/openbmc/qemu/include/hw/nvram/
H A Dchrp_nvram.h54 int chrp_nvram_create_system_partition(uint8_t *data, int min_len, int max_len);
/openbmc/qemu/hw/usb/
H A Dhcd-uhci.c686 int len = 0, max_len; in uhci_complete_td() local
689 max_len = ((td->token >> 21) + 1) & 0x7ff; in uhci_complete_td()
716 if ((td->ctrl & TD_CTRL_SPD) && len < max_len) { in uhci_complete_td()
734 int ret, max_len; in uhci_handle_td() local
843 max_len = ((td->token >> 21) + 1) & 0x7ff; in uhci_handle_td()
847 if (max_len <= sizeof(async->static_buf)) { in uhci_handle_td()
850 async->buf = g_malloc(max_len); in uhci_handle_td()
852 usb_packet_addbuf(&async->packet, async->buf, max_len); in uhci_handle_td()
857 pci_dma_read(&s->dev, td->buffer, async->buf, max_len); in uhci_handle_td()
860 async->packet.actual_length = max_len; in uhci_handle_td()
/openbmc/u-boot/drivers/usb/musb-new/
H A Dmusb_dma.h92 size_t max_len; member
/openbmc/u-boot/fs/ubifs/
H A Dlog.c355 int err, i, max_len, len; in ubifs_log_start_commit() local
361 max_len = UBIFS_CS_NODE_SZ + c->jhead_cnt * UBIFS_REF_NODE_SZ; in ubifs_log_start_commit()
362 max_len = ALIGN(max_len, c->min_io_size); in ubifs_log_start_commit()
363 buf = cs = kmalloc(max_len, GFP_NOFS); in ubifs_log_start_commit()
H A Dtnc_misc.c332 if (c->ranges[type].max_len == 0) { in read_znode()
341 zbr->len > c->ranges[type].max_len) { in read_znode()
346 c->ranges[type].max_len); in read_znode()
/openbmc/libcper/tests/
H A Dmeson.build51 '-max_len=131072',
/openbmc/u-boot/drivers/mmc/
H A Domap_hsmmc.c625 u32 length = 0, max_len = 0; in omap_hsmmc_execute_tuning() local
679 if (length > max_len) { in omap_hsmmc_execute_tuning()
681 max_len = length; in omap_hsmmc_execute_tuning()
688 if (!max_len) { in omap_hsmmc_execute_tuning()
703 phase_delay = min(max_window + 4 * max_len - 24, in omap_hsmmc_execute_tuning()
705 DIV_ROUND_UP(13 * max_len, 16) * 4); in omap_hsmmc_execute_tuning()
707 phase_delay = max_window + DIV_ROUND_UP(9 * max_len, 16) * 4; in omap_hsmmc_execute_tuning()
709 phase_delay = max_window + DIV_ROUND_UP(8 * max_len, 16) * 4; in omap_hsmmc_execute_tuning()
711 phase_delay = max_window + DIV_ROUND_UP(7 * max_len, 16) * 4; in omap_hsmmc_execute_tuning()
713 phase_delay = max_window + DIV_ROUND_UP(5 * max_len, 16) * 4; in omap_hsmmc_execute_tuning()
[all …]
/openbmc/u-boot/drivers/mtd/
H A Dmtd_uboot.c55 unsigned int max_len) in mtd_search_alternate_name() argument
83 if (dev_id_len + 1 > max_len) in mtd_search_alternate_name()
/openbmc/qemu/target/riscv/
H A Dtranslate.c993 int max_len = get_olen(ctx); in gen_shift_imm_fn() local
995 if (a->shamt >= max_len) { in gen_shift_imm_fn()
1002 if (max_len < 128) { in gen_shift_imm_fn()
1040 int max_len = get_olen(ctx); in gen_shift_imm_tl() local
1042 if (a->shamt >= max_len) { in gen_shift_imm_tl()
1062 int max_len = get_olen(ctx); in gen_shift() local
1064 tcg_gen_andi_tl(ext2, src2, max_len - 1); in gen_shift()
1069 if (max_len < 128) { in gen_shift()
/openbmc/qemu/bsd-user/freebsd/
H A Dos-syscall.c122 abi_ulong total_len, max_len; in lock_iovec() local
148 max_len = 0x7fffffff & MIN(TARGET_PAGE_MASK, PAGE_MASK); in lock_iovec()
181 if (len > max_len - total_len) { in lock_iovec()
182 len = max_len - total_len; in lock_iovec()
/openbmc/qemu/util/
H A Dqsp.c704 size_t max_len = 0; in pr_report() local
715 if (len > max_len) { in pr_report()
716 max_len = len; in pr_report()
720 callsite_len = MAX(max_len, strlen("Call site")); in pr_report()
/openbmc/qemu/include/qemu/
H A Dcutils.h119 int qemu_strnlen(const char *s, int max_len);
/openbmc/qemu/hw/virtio/
H A Dvirtio-crypto.c475 size_t max_len; in virtio_crypto_free_request() local
479 max_len = op_info->iv_len + in virtio_crypto_free_request()
486 memset(op_info, 0, sizeof(*op_info) + max_len); in virtio_crypto_free_request()
612 uint64_t max_len, curr_size = 0; in virtio_crypto_sym_op_helper() local
642 max_len = (uint64_t)iv_len + aad_len + src_len + dst_len + hash_result_len; in virtio_crypto_sym_op_helper()
643 if (unlikely(max_len > vcrypto->conf.max_size)) { in virtio_crypto_sym_op_helper()
648 op_info = g_malloc0(sizeof(CryptoDevBackendSymOpInfo) + max_len); in virtio_crypto_sym_op_helper()
/openbmc/u-boot/net/
H A Dnet.c1567 int net_parse_bootfile(struct in_addr *ipaddr, char *filename, int max_len) in net_parse_bootfile() argument
1578 strncpy(filename, colon + 1, max_len); in net_parse_bootfile()
1580 strncpy(filename, net_boot_file_name, max_len); in net_parse_bootfile()
1582 filename[max_len - 1] = '\0'; in net_parse_bootfile()
/openbmc/openbmc/poky/meta/recipes-devtools/gcc/gcc/
H A D0017-Search-target-sysroot-gcc-version-specific-dirs-with.patch61 len = paths->max_len + extra_space + 1;
/openbmc/qemu/include/hw/
H A Dloader.h263 size_t max_len, hwaddr addr,

12