Home
last modified time | relevance | path

Searched refs:mlen (Results 1 – 25 of 31) sorted by relevance

12

/linux/scripts/
H A Dcleanfile62 my $mlen = 0;
69 $mlen = $pos if ($pos > $mlen);
76 $mlen = $pos if ($pos > $mlen);
77 return $mlen;
H A Dcleanpatch62 my $mlen = 0;
69 $mlen = $pos if ($pos > $mlen);
76 $mlen = $pos if ($pos > $mlen);
77 return $mlen;
/linux/lib/zstd/compress/
H A Dzstd_opt.c696 size_t mlen; in ZSTD_insertBtAndGetAllMatches() local
699 mlen = ZSTD_count(ip, match, iLimit); in ZSTD_insertBtAndGetAllMatches()
702 mlen = ZSTD_count_2segments(ip, match, iLimit, dictEnd, prefixStart); in ZSTD_insertBtAndGetAllMatches()
706 if (mlen >= mls /* == 3 > bestLength */) { in ZSTD_insertBtAndGetAllMatches()
708 (U32)mlen); in ZSTD_insertBtAndGetAllMatches()
709 bestLength = mlen; in ZSTD_insertBtAndGetAllMatches()
713 matches[0].len = (U32)mlen; in ZSTD_insertBtAndGetAllMatches()
715 if ( (mlen > sufficient_len) | in ZSTD_insertBtAndGetAllMatches()
716 (ip+mlen == iLimit) ) { /* best possible length */ in ZSTD_insertBtAndGetAllMatches()
1144 opt[0].mlen = 0; /* there are only literals so far */ in ZSTD_compressBlock_opt_generic()
[all …]
/linux/lib/
H A Ddigsig.c69 unsigned long mlen, mblen; in digsig_verify_rsa() local
117 mlen = DIV_ROUND_UP(mblen, 8); in digsig_verify_rsa()
119 if (mlen == 0) { in digsig_verify_rsa()
126 out1 = kzalloc(mlen, GFP_KERNEL); in digsig_verify_rsa()
145 if (mpi_get_nlimbs(res) * BYTES_PER_MPI_LIMB > mlen) { in digsig_verify_rsa()
156 len = mlen; in digsig_verify_rsa()
/linux/include/uapi/scsi/
H A Dscsi_netlink.h99 #define INIT_SCSI_NL_HDR(hdr, t, mtype, mlen) \ argument
105 (hdr)->msglen = mlen; \
/linux/fs/nfs/blocklayout/
H A Drpc_pipefs.c112 size_t mlen) in bl_pipe_downcall() argument
117 if (mlen != sizeof (struct bl_dev_msg)) in bl_pipe_downcall()
120 if (copy_from_user(&nn->bl_mount_reply, src, mlen) != 0) in bl_pipe_downcall()
125 return mlen; in bl_pipe_downcall()
/linux/drivers/w1/
H A Dw1_netlink.c446 u16 mlen = node->msg->len; in w1_process_cb() local
458 while (mlen && !err) { in w1_process_cb()
459 if (cmd->len + sizeof(struct w1_netlink_cmd) > mlen) { in w1_process_cb()
475 mlen -= len; in w1_process_cb()
502 u16 mlen = msg->len; in w1_list_count_cmds() local
505 while (mlen) { in w1_list_count_cmds()
506 if (cmd->len + sizeof(struct w1_netlink_cmd) > mlen) in w1_list_count_cmds()
518 mlen -= len; in w1_list_count_cmds()
/linux/lib/crypto/powerpc/
H A Dpoly1305.h13 asmlinkage void poly1305_p10le_4blocks(struct poly1305_block_state *state, const u8 *m, u32 mlen);
14 asmlinkage void poly1305_64s(struct poly1305_block_state *state, const u8 *m, u32 mlen, int highbit…
H A Dpoly1305-p10le_64.S49 # poly1305_p10le_4blocks( uint8_t *k, uint32_t mlen, uint8_t *m)
52 # r4 = mlen
522 # poly1305_p10le_4blocks( uint8_t *k, uint32_t mlen, uint8_t *m)
525 # r4 = mlen
/linux/net/sunrpc/
H A Dsvcauth_unix.c179 char *mesg, int mlen) in ip_map_parse() argument
199 if (mesg[mlen-1] != '\n') in ip_map_parse()
201 mesg[mlen-1] = 0; in ip_map_parse()
208 len = qword_get(&mesg, buf, mlen); in ip_map_parse()
234 len = qword_get(&mesg, buf, mlen); in ip_map_parse()
488 char *mesg, int mlen) in unix_gid_parse() argument
500 if (mesg[mlen - 1] != '\n') in unix_gid_parse()
502 mesg[mlen-1] = 0; in unix_gid_parse()
H A Drpc_pipe.c108 size_t mlen = min(msg->len - msg->copied, buflen); in rpc_pipe_generic_upcall() local
111 left = copy_to_user(dst, data, mlen); in rpc_pipe_generic_upcall()
112 if (left == mlen) { in rpc_pipe_generic_upcall()
117 mlen -= left; in rpc_pipe_generic_upcall()
118 msg->copied += mlen; in rpc_pipe_generic_upcall()
120 return mlen; in rpc_pipe_generic_upcall()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.h247 int mlen; /* bits to rewrite/match */ member
255 #define MLX5_REG_MAPPING_MBITS(reg_id) (mlx5e_tc_attr_to_reg_mappings[reg_id].mlen)
256 #define MLX5_REG_MAPPING_MASK(reg_id) (GENMASK(mlx5e_tc_attr_to_reg_mappings[reg_id].mlen - 1, 0))
/linux/net/sunrpc/auth_gss/
H A Dsvcauth_gss.c226 char *mesg, int mlen) in rsi_parse() argument
238 len = qword_get(&mesg, buf, mlen); in rsi_parse()
246 len = qword_get(&mesg, buf, mlen); in rsi_parse()
266 len = qword_get(&mesg, buf, mlen); in rsi_parse()
272 len = qword_get(&mesg, buf, mlen); in rsi_parse()
280 len = qword_get(&mesg, buf, mlen); in rsi_parse()
288 len = qword_get(&mesg, buf, mlen); in rsi_parse()
465 char *mesg, int mlen) in rsc_parse() argument
478 len = qword_get(&mesg, buf, mlen); in rsc_parse()
544 len = qword_get(&mesg, buf, mlen); in rsc_parse()
[all …]
H A Dauth_gss.c726 gss_pipe_downcall(struct file *filp, const char __user *src, size_t mlen) in gss_pipe_downcall() argument
737 if (mlen > MSG_BUF_MAXSIZE) in gss_pipe_downcall()
740 buf = kmalloc(mlen, GFP_KERNEL); in gss_pipe_downcall()
745 if (copy_from_user(buf, src, mlen)) in gss_pipe_downcall()
748 end = (const void *)((char *)buf + mlen); in gss_pipe_downcall()
784 err = mlen; in gss_pipe_downcall()
800 err = mlen; in gss_pipe_downcall()
/linux/drivers/scsi/
H A Dscsi_devinfo.c417 size_t vmax, mmax, mlen; in scsi_dev_info_list_find() local
467 mlen = strnlen(devinfo->model, sizeof(devinfo->model)); in scsi_dev_info_list_find()
468 if (mmax < mlen || memcmp(devinfo->model, mskip, mlen)) in scsi_dev_info_list_find()
/linux/net/tipc/
H A Dmsg.c222 int mlen, cpy, rem = dlen; in tipc_msg_append()
245 mlen = msg_size(hdr);
246 cpy = min_t(size_t, rem, mss - mlen);
247 if (cpy != copy_from_iter(skb->data + mlen, cpy, &m->msg_iter))
249 msg_set_size(hdr, mlen + cpy);
210 int mlen, cpy, rem = dlen; tipc_msg_append() local
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dpost_meter.h10 .mlen = 8, \
/linux/fs/nfs/
H A Dnfs4idmap.c652 idmap_pipe_downcall(struct file *filp, const char __user *src, size_t mlen) in idmap_pipe_downcall() argument
674 if (mlen != sizeof(im)) { in idmap_pipe_downcall()
679 if (copy_from_user(&im, src, mlen) != 0) { in idmap_pipe_downcall()
699 ret = mlen; in idmap_pipe_downcall()
/linux/drivers/net/can/usb/
H A Ducan.c1055 int mlen; in ucan_prepare_tx_urb() local
1081 mlen = UCAN_OUT_HDR_SIZE + in ucan_prepare_tx_urb()
1086 mlen = UCAN_OUT_HDR_SIZE + in ucan_prepare_tx_urb()
1090 m->len = cpu_to_le16(mlen); in ucan_prepare_tx_urb()
1098 m, mlen, ucan_write_bulk_callback, context); in ucan_prepare_tx_urb()
/linux/fs/nfsd/
H A Dexport.c89 static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen) in expkey_parse() argument
100 if (mesg[mlen - 1] != '\n') in expkey_parse()
102 mesg[mlen-1] = 0; in expkey_parse()
620 static int svc_export_parse(struct cache_detail *cd, char *mesg, int mlen) in svc_export_parse() argument
629 if (mesg[mlen-1] != '\n') in svc_export_parse()
631 mesg[mlen-1] = 0; in svc_export_parse()
/linux/drivers/net/wireless/ath/ar5523/
H A Dar5523.c1533 int mlen = min(len, AR5523_MAX_FWBLOCK_SIZE); in ar5523_load_firmware() local
1535 txblock->remain = cpu_to_be32(len - mlen); in ar5523_load_firmware()
1536 txblock->len = cpu_to_be32(mlen); in ar5523_load_firmware()
1549 memcpy(fwbuf, fw->data + offset, mlen); in ar5523_load_firmware()
1551 fwbuf, mlen, &foolen, in ar5523_load_firmware()
1569 len -= mlen; in ar5523_load_firmware()
1570 offset += mlen; in ar5523_load_firmware()
/linux/tools/perf/util/
H A Dstat-display.c602 unsigned mlen = config->metric_only_len; in print_metric_only() local
607 if (mlen < strlen(unit)) in print_metric_only()
608 mlen = strlen(unit) + 1; in print_metric_only()
611 mlen += strlen(color) + sizeof(PERF_COLOR_RESET) - 1; in print_metric_only()
614 fprintf(out, "%*s ", mlen, str); in print_metric_only()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_chains.c275 mlx5e_tc_attr_to_reg_mappings[mapped_obj_to_reg].mlen == 32 ? in create_chain_restore()
276 0 : mlx5e_tc_attr_to_reg_mappings[mapped_obj_to_reg].mlen); in create_chain_restore()
/linux/net/netfilter/
H A Dnf_conntrack_sip.c336 unsigned int mlen; in ct_sip_parse_request() local
340 mlen = string_len(ct, dptr, limit, NULL); in ct_sip_parse_request()
341 if (!mlen) in ct_sip_parse_request()
343 dptr += mlen; in ct_sip_parse_request()
/linux/net/sched/
H A Dact_ife.c693 u16 metaid, u16 mlen, void *mdata) in find_decode_metaid() argument
702 return e->ops->decode(skb, mdata, mlen); in find_decode_metaid()

12