Home
last modified time | relevance | path

Searched refs:mlen (Results 1 – 25 of 34) 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/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/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/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))
H A Den_tc.c111 .mlen = 16,
116 .mlen = 16,
121 .mlen = ESW_TUN_OPTS_BITS + ESW_TUN_ID_BITS,
138 .mlen = 16,
194 int match_len = mlx5e_tc_attr_to_reg_mappings[type].mlen; in mlx5e_tc_match_to_reg_match()
241 int match_len = mlx5e_tc_attr_to_reg_mappings[type].mlen; in mlx5e_tc_match_to_reg_get_match()
268 int mlen = mlx5e_tc_attr_to_reg_mappings[type].mlen; in mlx5e_tc_match_to_reg_set_and_get_id() local
277 if (mlen == 32) in mlx5e_tc_match_to_reg_set_and_get_id()
278 mlen = 0; in mlx5e_tc_match_to_reg_set_and_get_id()
283 MLX5_SET(set_action_in, modact, length, mlen); in mlx5e_tc_match_to_reg_set_and_get_id()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dpost_meter.h10 .mlen = 8, \
/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/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/net/sunrpc/
H A Dsvcauth_unix.c182 char *mesg, int mlen) in ip_map_parse() argument
202 if (mesg[mlen-1] != '\n') in ip_map_parse()
204 mesg[mlen-1] = 0; in ip_map_parse()
211 len = qword_get(&mesg, buf, mlen); in ip_map_parse()
237 len = qword_get(&mesg, buf, mlen); in ip_map_parse()
491 char *mesg, int mlen) in unix_gid_parse() argument
503 if (mesg[mlen - 1] != '\n') in unix_gid_parse()
505 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/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/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/drivers/input/touchscreen/
H A Diqs5xx.c188 u16 mlen = sizeof(reg) + len; in iqs5xx_write_burst() local
203 ret = i2c_master_send(client, mbuf, mlen); in iqs5xx_write_burst()
204 if (ret == mlen) in iqs5xx_write_burst()
/linux/tools/perf/util/
H A Dstat-display.c599 unsigned mlen; in print_metric_only()
608 mlen = max_t(unsigned, strlen(unit), config->metric_only_len); in print_metric_only()
612 fprintf(out, "%*s%s", max_t(int, mlen - olen, 1), "", str); in print_metric_only()
602 unsigned mlen = config->metric_only_len; print_metric_only() local
/linux/fs/nfsd/
H A Dnfs4recover.c772 cld_pipe_downcall(struct file *filp, const char __user *src, size_t mlen) in cld_pipe_downcall() argument
783 if (mlen != nn->client_tracking_ops->msglen) { in cld_pipe_downcall()
784 dprintk("%s: got %zu bytes, expected %zu\n", __func__, mlen, in cld_pipe_downcall()
827 if (copy_from_user(&cup->cu_u.cu_msg_v2, src, mlen) != 0) in cld_pipe_downcall()
831 return mlen; in cld_pipe_downcall()
/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.c330 unsigned int mlen; in ct_sip_parse_request() local
334 mlen = string_len(ct, dptr, limit, NULL); in ct_sip_parse_request()
335 if (!mlen) in ct_sip_parse_request()
337 dptr += mlen; in ct_sip_parse_request()

12