Home
last modified time | relevance | path

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

12

/Linux-v5.4/lib/zstd/
Dzstd_opt.h206 opt[pos].mlen = mlen_; \
441 U32 u, mlen, best_mlen, best_off, litLength; in ZSTD_compressBlock_opt_generic() local
453 mlen = (U32)ZSTD_count(ip + minMatch, ip + minMatch - repCur, iend) + minMatch; in ZSTD_compressBlock_opt_generic()
454 if (mlen > sufficient_len || mlen >= ZSTD_OPT_NUM) { in ZSTD_compressBlock_opt_generic()
455 best_mlen = mlen; in ZSTD_compressBlock_opt_generic()
463 price = ZSTD_getPrice(seqStorePtr, litlen, anchor, best_off, mlen - MINMATCH, ultra); in ZSTD_compressBlock_opt_generic()
464 if (mlen > last_pos || price < opt[mlen].price) in ZSTD_compressBlock_opt_generic()
465 SET_PRICE(mlen, mlen, i, litlen, price); /* note : macro modifies last_pos */ in ZSTD_compressBlock_opt_generic()
466 mlen--; in ZSTD_compressBlock_opt_generic()
467 } while (mlen >= minMatch); in ZSTD_compressBlock_opt_generic()
[all …]
Dzstd_internal.h167 U32 mlen; member
/Linux-v5.4/scripts/
Dcleanfile62 my $mlen = 0;
69 $mlen = $pos if ($pos > $mlen);
76 $mlen = $pos if ($pos > $mlen);
77 return $mlen;
Dcleanpatch62 my $mlen = 0;
69 $mlen = $pos if ($pos > $mlen);
76 $mlen = $pos if ($pos > $mlen);
77 return $mlen;
/Linux-v5.4/lib/
Ddigsig.c73 unsigned long mlen, mblen; in digsig_verify_rsa() local
121 mlen = DIV_ROUND_UP(mblen, 8); in digsig_verify_rsa()
123 if (mlen == 0) { in digsig_verify_rsa()
130 out1 = kzalloc(mlen, GFP_KERNEL); in digsig_verify_rsa()
149 if (mpi_get_nlimbs(res) * BYTES_PER_MPI_LIMB > mlen) { in digsig_verify_rsa()
160 len = mlen; in digsig_verify_rsa()
Dbch.c194 unsigned int i, mlen; in encode_bch() local
217 mlen = (len < (4-m)) ? len : 4-m; in encode_bch()
218 encode_bch_unaligned(bch, data, mlen, bch->ecc_buf); in encode_bch()
219 data += mlen; in encode_bch()
220 len -= mlen; in encode_bch()
225 mlen = len/4; in encode_bch()
226 data += 4*mlen; in encode_bch()
227 len -= 4*mlen; in encode_bch()
241 while (mlen--) { in encode_bch()
/Linux-v5.4/drivers/staging/gdm724x/
Dnetlink_k.c33 u32 mlen; in netlink_rcv_cb() local
57 mlen = ND_NLMSG_R_LEN(nlh); in netlink_rcv_cb()
61 rcv_cb(dev, nlh->nlmsg_type, msg, mlen); in netlink_rcv_cb()
/Linux-v5.4/include/uapi/scsi/
Dscsi_netlink.h99 #define INIT_SCSI_NL_HDR(hdr, t, mtype, mlen) \ argument
105 (hdr)->msglen = mlen; \
/Linux-v5.4/fs/nfs/blocklayout/
Drpc_pipefs.c113 size_t mlen) in bl_pipe_downcall() argument
118 if (mlen != sizeof (struct bl_dev_msg)) in bl_pipe_downcall()
121 if (copy_from_user(&nn->bl_mount_reply, src, mlen) != 0) in bl_pipe_downcall()
126 return mlen; in bl_pipe_downcall()
/Linux-v5.4/drivers/w1/
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-v5.4/drivers/isdn/mISDN/
Dl1oip_core.c450 int m, mlen; in l1oip_socket_parse() local
552 mlen = *buf++; in l1oip_socket_parse()
554 if (mlen == 0) in l1oip_socket_parse()
555 mlen = 256; in l1oip_socket_parse()
556 if (len < mlen + 3) { in l1oip_socket_parse()
559 __func__, mlen, len_start-len - 1, len_start); in l1oip_socket_parse()
562 if (len == mlen + 3) { in l1oip_socket_parse()
566 __func__, mlen, len_start-len + 1); in l1oip_socket_parse()
570 mlen = len - 2; /* single frame, subtract timebase */ in l1oip_socket_parse()
595 l1oip_socket_recv(hc, remotecodec, channel, timebase, buf, mlen); in l1oip_socket_parse()
[all …]
/Linux-v5.4/net/sunrpc/
Dsvcauth_unix.c172 char *mesg, int mlen) in ip_map_parse() argument
192 if (mesg[mlen-1] != '\n') in ip_map_parse()
194 mesg[mlen-1] = 0; in ip_map_parse()
201 len = qword_get(&mesg, buf, mlen); in ip_map_parse()
227 len = qword_get(&mesg, buf, mlen); in ip_map_parse()
485 char *mesg, int mlen) in unix_gid_parse() argument
497 if (mesg[mlen - 1] != '\n') in unix_gid_parse()
499 mesg[mlen-1] = 0; in unix_gid_parse()
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-v5.4/lib/lz4/
Dlz4_decompress.c377 size_t const mlen = min(length, (size_t)(oend - op)); in LZ4_decompress_generic() local
378 const BYTE * const matchEnd = match + mlen; in LZ4_decompress_generic()
379 BYTE * const copyEnd = op + mlen; in LZ4_decompress_generic()
386 memcpy(op, match, mlen); in LZ4_decompress_generic()
/Linux-v5.4/drivers/net/ethernet/amd/
Dni65.h108 volatile unsigned short mlen; member
Dni65.c839 rmdp->mlen = 0; in ni65_lance_reinit()
1061 printk(KERN_ERR "%s: recv, packet too long: %d\n",dev->name,rmdp->mlen & 0x0fff); in ni65_recv_intr()
1080 else if( (len = (rmdp->mlen & 0x0fff) - 4) >= 60) in ni65_recv_intr()
1125 rmdp->mlen = 0; in ni65_recv_intr()
/Linux-v5.4/net/sunrpc/auth_gss/
Dsvcauth_gss.c196 char *mesg, int mlen) in rsi_parse() argument
208 len = qword_get(&mesg, buf, mlen); in rsi_parse()
216 len = qword_get(&mesg, buf, mlen); in rsi_parse()
236 len = qword_get(&mesg, buf, mlen); in rsi_parse()
242 len = qword_get(&mesg, buf, mlen); in rsi_parse()
250 len = qword_get(&mesg, buf, mlen); in rsi_parse()
258 len = qword_get(&mesg, buf, mlen); in rsi_parse()
429 char *mesg, int mlen) in rsc_parse() argument
442 len = qword_get(&mesg, buf, mlen); in rsc_parse()
508 len = qword_get(&mesg, buf, mlen); in rsc_parse()
[all …]
Dauth_gss.c716 gss_pipe_downcall(struct file *filp, const char __user *src, size_t mlen) in gss_pipe_downcall() argument
727 if (mlen > MSG_BUF_MAXSIZE) in gss_pipe_downcall()
730 buf = kmalloc(mlen, GFP_NOFS); in gss_pipe_downcall()
735 if (copy_from_user(buf, src, mlen)) in gss_pipe_downcall()
738 end = (const void *)((char *)buf + mlen); in gss_pipe_downcall()
774 err = mlen; in gss_pipe_downcall()
790 err = mlen; in gss_pipe_downcall()
/Linux-v5.4/drivers/scsi/
Dscsi_devinfo.c416 size_t vmax, mmax, mlen; in scsi_dev_info_list_find() local
466 mlen = strnlen(devinfo->model, sizeof(devinfo->model)); in scsi_dev_info_list_find()
467 if (mmax < mlen || memcmp(devinfo->model, mskip, mlen)) in scsi_dev_info_list_find()
/Linux-v5.4/fs/nfs/
Dnfs4idmap.c666 idmap_pipe_downcall(struct file *filp, const char __user *src, size_t mlen) in idmap_pipe_downcall() argument
686 if (mlen != sizeof(im)) { in idmap_pipe_downcall()
691 if (copy_from_user(&im, src, mlen) != 0) { in idmap_pipe_downcall()
712 ret = mlen; in idmap_pipe_downcall()
/Linux-v5.4/fs/nfsd/
Dexport.c72 static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen) in expkey_parse() argument
84 if (mesg[mlen - 1] != '\n') in expkey_parse()
86 mesg[mlen-1] = 0; in expkey_parse()
524 static int svc_export_parse(struct cache_detail *cd, char *mesg, int mlen) in svc_export_parse() argument
534 if (mesg[mlen-1] != '\n') in svc_export_parse()
536 mesg[mlen-1] = 0; in svc_export_parse()
/Linux-v5.4/tools/perf/util/
Dstat-display.c255 unsigned mlen = config->metric_only_len; in print_metric_only() local
260 if (mlen < strlen(unit)) in print_metric_only()
261 mlen = strlen(unit) + 1; in print_metric_only()
264 mlen += strlen(color) + sizeof(PERF_COLOR_RESET) - 1; in print_metric_only()
267 fprintf(out, "%*s ", mlen, str); in print_metric_only()
/Linux-v5.4/drivers/net/can/usb/
Ducan.c1052 int mlen; in ucan_prepare_tx_urb() local
1078 mlen = UCAN_OUT_HDR_SIZE + in ucan_prepare_tx_urb()
1083 mlen = UCAN_OUT_HDR_SIZE + in ucan_prepare_tx_urb()
1087 m->len = cpu_to_le16(mlen); in ucan_prepare_tx_urb()
1097 m, mlen, ucan_write_bulk_callback, context); in ucan_prepare_tx_urb()
/Linux-v5.4/drivers/net/wireless/ath/ar5523/
Dar5523.c1517 int mlen = min(len, AR5523_MAX_FWBLOCK_SIZE); in ar5523_load_firmware() local
1519 txblock->remain = cpu_to_be32(len - mlen); in ar5523_load_firmware()
1520 txblock->len = cpu_to_be32(mlen); in ar5523_load_firmware()
1533 memcpy(fwbuf, fw->data + offset, mlen); in ar5523_load_firmware()
1535 fwbuf, mlen, &foolen, in ar5523_load_firmware()
1553 len -= mlen; in ar5523_load_firmware()
1554 offset += mlen; in ar5523_load_firmware()
/Linux-v5.4/drivers/isdn/capi/
Dcapi.c686 u16 mlen; in capi_write() local
702 mlen = CAPIMSG_LEN(skb->data); in capi_write()
705 (size_t)(mlen + CAPIMSG_DATALEN(skb->data)) != count) { in capi_write()
710 if (mlen != count) { in capi_write()

12