Home
last modified time | relevance | path

Searched refs:plen (Results 1 – 25 of 186) sorted by relevance

12345678

/linux/crypto/
H A Dtcrypt.h27 unsigned int plen; /* per-update length */ member
72 { .blen = 16, .plen = 16, },
73 { .blen = 64, .plen = 16, },
74 { .blen = 64, .plen = 64, },
75 { .blen = 256, .plen = 16, },
76 { .blen = 256, .plen = 64, },
77 { .blen = 256, .plen = 256, },
78 { .blen = 1024, .plen = 16, },
79 { .blen = 1024, .plen = 256, },
80 { .blen = 1024, .plen = 1024, },
[all …]
H A Daf_alg.c717 size_t plen = min_t(size_t, used, sg[i].length); in af_alg_pull_tsgl() local
728 if (dst_offset >= plen) { in af_alg_pull_tsgl()
730 dst_offset -= plen; in af_alg_pull_tsgl()
735 plen - dst_offset, in af_alg_pull_tsgl()
742 sg[i].length -= plen; in af_alg_pull_tsgl()
743 sg[i].offset += plen; in af_alg_pull_tsgl()
745 used -= plen; in af_alg_pull_tsgl()
746 ctx->used -= plen; in af_alg_pull_tsgl()
996 ssize_t plen; in af_alg_sendmsg() local
1048 plen = extract_iter_to_sg(&msg->msg_iter, len, &sgtable, in af_alg_sendmsg()
[all …]
/linux/net/ipv6/
H A Drpl.c60 unsigned char plen; in ipv6_rpl_srh_calc_cmpri() local
63 for (plen = 0; plen < sizeof(*daddr); plen++) { in ipv6_rpl_srh_calc_cmpri()
65 if (daddr->s6_addr[plen] != in ipv6_rpl_srh_calc_cmpri()
66 inhdr->rpl_segaddr[i].s6_addr[plen]) in ipv6_rpl_srh_calc_cmpri()
67 return plen; in ipv6_rpl_srh_calc_cmpri()
77 unsigned int plen; in ipv6_rpl_srh_calc_cmpre() local
79 for (plen = 0; plen < sizeof(*daddr); plen++) { in ipv6_rpl_srh_calc_cmpre()
80 if (daddr->s6_addr[plen] != last_segment->s6_addr[plen]) in ipv6_rpl_srh_calc_cmpre()
81 return plen; in ipv6_rpl_srh_calc_cmpre()
H A Dfib6_rules.c37 if (r->dst.plen || r->src.plen || r->dscp) in fib6_rule_matchall()
143 r->src.plen && !(flags & RT6_LOOKUP_F_HAS_SADDR)) { in fib6_rule_saddr()
150 if (!ipv6_prefix_equal(&saddr, &r->src.addr, r->src.plen)) in fib6_rule_saddr()
292 if (rt->rt6i_dst.plen <= rule->suppress_prefixlen) in fib6_rule_suppress()
314 if (r->dst.plen && in fib6_rule_match()
315 !ipv6_prefix_equal(&fl6->daddr, &r->dst.addr, r->dst.plen)) in fib6_rule_match()
323 if (r->src.plen) { in fib6_rule_match()
326 r->src.plen)) in fib6_rule_match()
400 rule6->src.plen = frh->src_len; in fib6_rule_configure()
401 rule6->dst.plen = frh->dst_len; in fib6_rule_configure()
[all …]
/linux/lib/crypto/
H A Daesgcm.c568 int plen; member
578 .plen = sizeof(ptext1),
588 .plen = sizeof(ptext2),
598 .plen = sizeof(ptext3),
612 .plen = sizeof(ptext1),
623 .plen = sizeof(ptext6),
633 .plen = sizeof(ptext1),
645 .plen = sizeof(ptext9),
657 .plen = sizeof(ptext10),
672 .plen = sizeof(ptext11),
[all …]
/linux/tools/testing/selftests/net/
H A Dtest_vxlan_mdb.sh1177 local plen=$1; shift
1191 run_cmd "ip -n $ns2 address replace $vtep1_ip/$plen dev lo"
1192 run_cmd "ip -n $ns2 address replace $vtep2_ip/$plen dev lo"
1273 local plen=32
1283 encap_params_common $ns1 $ns2 $vtep1_ip $vtep2_ip $plen $enc_ethtype \
1293 local plen=32
1303 encap_params_common $ns1 $ns2 $vtep1_ip $vtep2_ip $plen $enc_ethtype \
1313 local plen=128
1323 encap_params_common $ns1 $ns2 $vtep1_ip $vtep2_ip $plen $enc_ethtype \
1333 local plen=128
[all …]
/linux/arch/x86/platform/olpc/
H A Dolpc_dt.c72 int plen; in olpc_dt_getproperty() local
74 plen = olpc_dt_getproplen(node, prop); in olpc_dt_getproperty()
75 if (plen > bufsize || plen < 1) { in olpc_dt_getproperty()
78 const void *args[] = { (void *)node, prop, buf, (void *)plen }; in olpc_dt_getproperty()
79 void *res[] = { &plen }; in olpc_dt_getproperty()
87 return plen; in olpc_dt_getproperty()
222 int plen, len; in olpc_dt_compatible_match() local
224 plen = olpc_dt_getproperty(node, "compatible", buf, sizeof(buf)); in olpc_dt_compatible_match()
225 if (plen <= 0) in olpc_dt_compatible_match()
229 for (p = buf; p < buf + plen; p += strlen(p) + 1) { in olpc_dt_compatible_match()
/linux/drivers/bluetooth/
H A Dhci_ag6xx.c29 __le32 plen; member
121 static int intel_mem_write(struct hci_dev *hdev, u32 addr, u32 plen, in intel_mem_write() argument
127 while (plen > 0) { in intel_mem_write()
129 u8 cmd_param[253], fragment_len = (plen > 247) ? 247 : plen; in intel_mem_write()
143 plen -= fragment_len; in intel_mem_write()
255 u32 addr, plen; in ag6xx_setup() local
264 plen = le32_to_cpu(pbn->plen); in ag6xx_setup()
266 if (fw->data + fw->size <= pbn->data + plen) { in ag6xx_setup()
267 bt_dev_info(hdev, "Invalid patch len (%d)", plen); in ag6xx_setup()
274 err = intel_mem_write(hdev, addr, plen, pbn->data); in ag6xx_setup()
[all …]
/linux/crypto/asymmetric_keys/
H A Dx509_loader.c13 size_t plen; in x509_load_certificate_list() local
26 plen = (p[2] << 8) | p[3]; in x509_load_certificate_list()
27 plen += 4; in x509_load_certificate_list()
28 if (plen > end - p) in x509_load_certificate_list()
35 plen, in x509_load_certificate_list()
49 p += plen; in x509_load_certificate_list()
/linux/include/net/
H A Desp.h15 static inline void esp_output_fill_trailer(u8 *tail, int tfclen, int plen, __u8 proto) in esp_output_fill_trailer() argument
24 for (i = 0; i < plen - 2; i++) in esp_output_fill_trailer()
27 tail[plen - 2] = plen - 2; in esp_output_fill_trailer()
28 tail[plen - 1] = proto; in esp_output_fill_trailer()
36 int plen; member
/linux/drivers/infiniband/hw/hfi1/
H A Dvnic_sdma.c34 u16 plen; member
76 if (tx->plen) in build_vnic_ulp_payload()
78 tx->pad + HFI1_VNIC_MAX_PAD - tx->plen, in build_vnic_ulp_payload()
79 tx->plen); in build_vnic_ulp_payload()
95 hdrbytes + tx->skb->len + tx->plen, in build_vnic_tx_desc()
121 static inline void hfi1_vnic_update_pad(unsigned char *pad, u8 plen) in hfi1_vnic_update_pad() argument
123 pad[HFI1_VNIC_MAX_PAD - 1] = plen - OPA_VNIC_ICRC_TAIL_LEN; in hfi1_vnic_update_pad()
128 struct sk_buff *skb, u64 pbc, u8 plen) in hfi1_vnic_send_dma() argument
149 hfi1_vnic_update_pad(tx->pad, plen); in hfi1_vnic_send_dma()
150 tx->plen = plen; in hfi1_vnic_send_dma()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_rxtx.c53 u8 plen; in mlx5e_ipsec_remove_trailer() local
56 ret = skb_copy_bits(skb, skb->len - alen - 2, &plen, 1); in mlx5e_ipsec_remove_trailer()
60 trailer_len = alen + plen + 2; in mlx5e_ipsec_remove_trailer()
192 esp_output_fill_trailer((u8 *)inlseg->data, 0, ipsec_st->plen, ipsec_st->xo->proto); in mlx5e_ipsec_handle_tx_wqe()
201 unsigned int blksize, clen, alen, plen; in mlx5e_ipsec_set_state() local
211 plen = max_t(u32, clen - skb->len, 4); in mlx5e_ipsec_set_state()
212 tailen = plen + alen; in mlx5e_ipsec_set_state()
213 ipsec_st->plen = plen; in mlx5e_ipsec_set_state()
/linux/include/net/bluetooth/
H A Dhci_sync.h41 struct sk_buff *hci_cmd_sync_alloc(struct hci_dev *hdev, u16 opcode, u32 plen,
48 struct sk_buff *__hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen,
50 struct sk_buff *hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen,
52 struct sk_buff *__hci_cmd_sync_ev(struct hci_dev *hdev, u16 opcode, u32 plen,
54 struct sk_buff *__hci_cmd_sync_sk(struct hci_dev *hdev, u16 opcode, u32 plen,
57 int __hci_cmd_sync_status(struct hci_dev *hdev, u16 opcode, u32 plen,
59 int __hci_cmd_sync_status_sk(struct hci_dev *hdev, u16 opcode, u32 plen,
62 int hci_cmd_sync_status(struct hci_dev *hdev, u16 opcode, u32 plen,
/linux/drivers/scsi/libfc/
H A Dfc_disc.c381 size_t plen; in fc_disc_gpn_ft_parse() local
394 plen = len; in fc_disc_gpn_ft_parse()
400 plen = sizeof(*np) - tlen; in fc_disc_gpn_ft_parse()
401 WARN_ON(plen <= 0); in fc_disc_gpn_ft_parse()
402 WARN_ON(plen >= sizeof(*np)); in fc_disc_gpn_ft_parse()
403 if (plen > len) in fc_disc_gpn_ft_parse()
404 plen = len; in fc_disc_gpn_ft_parse()
406 memcpy((char *)np + tlen, bp, plen); in fc_disc_gpn_ft_parse()
414 plen += tlen; in fc_disc_gpn_ft_parse()
415 disc->buf_len = (unsigned char) plen; in fc_disc_gpn_ft_parse()
[all …]
/linux/net/xfrm/
H A Dxfrm_ipcomp.c41 const int plen = skb->len; in ipcomp_decompress() local
46 int err = crypto_comp_decompress(tfm, start, plen, scratch, &dlen); in ipcomp_decompress()
52 if (dlen < (plen + sizeof(struct ip_comp_hdr))) in ipcomp_decompress()
55 len = dlen - plen; in ipcomp_decompress()
61 len += plen; in ipcomp_decompress()
125 const int plen = skb->len; in ipcomp_compress() local
135 err = crypto_comp_compress(tfm, start, plen, scratch, &dlen); in ipcomp_compress()
139 if ((dlen + sizeof(struct ip_comp_hdr)) >= plen) { in ipcomp_compress()
/linux/drivers/nfc/nfcmrvl/
H A Di2c.c39 nci_hdr.plen + NCI_CTRL_HDR_SIZE, GFP_KERNEL); in nfcmrvl_i2c_read()
46 if (nci_hdr.plen) { in nfcmrvl_i2c_read()
49 skb_put(*skb, nci_hdr.plen), in nfcmrvl_i2c_read()
50 nci_hdr.plen); in nfcmrvl_i2c_read()
52 if (ret != nci_hdr.plen) { in nfcmrvl_i2c_read()
55 ret, nci_hdr.plen); in nfcmrvl_i2c_read()
/linux/drivers/mtd/parsers/
H A Dofpart_core.c213 int i, plen, nr_parts; in parse_ofoldpart_partitions() local
224 part = of_get_property(dp, "partitions", &plen); in parse_ofoldpart_partitions()
230 nr_parts = plen / sizeof(part[0]); in parse_ofoldpart_partitions()
236 names = of_get_property(dp, "partition-names", &plen); in parse_ofoldpart_partitions()
245 if (names && (plen > 0)) { in parse_ofoldpart_partitions()
249 plen -= len; in parse_ofoldpart_partitions()
/linux/net/netfilter/
H A Dnf_conntrack_ftp.c66 size_t plen; member
75 .plen = sizeof("PORT") - 1,
83 .plen = sizeof("EPRT") - 1,
93 .plen = sizeof("227 ") - 1,
99 .plen = sizeof("229 ") - 1,
287 const char *pattern, size_t plen, in find_pattern() argument
296 size_t i = plen; in find_pattern()
300 if (dlen <= plen) { in find_pattern()
307 if (strncasecmp(data, pattern, plen) != 0) in find_pattern()
314 for (i = plen; data[i] != skip; i++) in find_pattern()
[all …]
/linux/tools/testing/selftests/net/netfilter/
H A Dconntrack_reverse_clash.c66 socklen_t plen; in main() local
91 socklen_t plen = sizeof(peer); in main() local
99 if (recvfrom(s2, buf, LEN, 0, (struct sockaddr *)&peer, &plen) < 0) in main()
108 if (recvfrom(s1, buf, LEN, 0, (struct sockaddr *)&peer, &plen) < 0) in main()
/linux/security/keys/
H A Dkeyctl.c77 size_t, plen, in SYSCALL_DEFINE5() argument
86 if (plen > 1024 * 1024 - 1) in SYSCALL_DEFINE5()
114 if (plen) { in SYSCALL_DEFINE5()
116 payload = kvmalloc(plen, GFP_KERNEL); in SYSCALL_DEFINE5()
121 if (copy_from_user(payload, _payload, plen) != 0) in SYSCALL_DEFINE5()
135 payload, plen, KEY_PERM_UNDEF, in SYSCALL_DEFINE5()
147 kvfree_sensitive(payload, plen); in SYSCALL_DEFINE5()
327 size_t plen) in keyctl_update_key() argument
334 if (plen > PAGE_SIZE) in keyctl_update_key()
339 if (plen) { in keyctl_update_key()
[all …]
/linux/fs/iomap/
H A Dbuffered-io.c242 size_t plen = min_t(loff_t, folio_size(folio) - poff, length); in iomap_adjust_read_range() local
243 size_t orig_plen = plen; in iomap_adjust_read_range()
245 unsigned last = (poff + plen - 1) >> block_bits; in iomap_adjust_read_range()
261 plen -= block_size; in iomap_adjust_read_range()
268 plen -= (last - i + 1) * block_size; in iomap_adjust_read_range()
284 plen -= (last - end) * block_size; in iomap_adjust_read_range()
288 *lenp = plen; in iomap_adjust_read_range()
378 size_t poff, plen; in iomap_readpage_iter() local
386 iomap_adjust_read_range(iter->inode, folio, &pos, length, &poff, &plen); in iomap_readpage_iter()
387 if (plen == 0) in iomap_readpage_iter()
[all …]
/linux/net/6lowpan/
H A Diphc.c218 ipv6_addr_prefix(&addr_pfx, addr, table[i].plen); in lowpan_iphc_ctx_get_by_addr()
223 if (table[i].plen < 64) in lowpan_iphc_ctx_get_by_addr()
226 addr_plen = table[i].plen; in lowpan_iphc_ctx_get_by_addr()
236 if (table[i].plen > ret->plen) in lowpan_iphc_ctx_get_by_addr()
265 addr_mcast.s6_addr[3] = table[i].plen; in lowpan_iphc_ctx_get_by_mcast_addr()
268 table[i].plen); in lowpan_iphc_ctx_get_by_mcast_addr()
384 ipv6_addr_prefix_copy(ipaddr, &ctx->pfx, ctx->plen); in lowpan_iphc_uncompress_ctx_addr()
391 ipv6_addr_prefix_copy(ipaddr, &ctx->pfx, ctx->plen); in lowpan_iphc_uncompress_ctx_addr()
404 ipv6_addr_prefix_copy(ipaddr, &ctx->pfx, ctx->plen); in lowpan_iphc_uncompress_ctx_addr()
494 ipaddr->s6_addr[3] = ctx->plen; in lowpan_uncompress_multicast_ctx_daddr()
[all …]
/linux/drivers/nfc/nxp-nci/
H A Di2c.c159 *skb = alloc_skb(NCI_CTRL_HDR_SIZE + header.plen, GFP_KERNEL); in nxp_nci_i2c_nci_read()
167 if (!header.plen) in nxp_nci_i2c_nci_read()
170 r = i2c_master_recv(client, skb_put(*skb, header.plen), header.plen); in nxp_nci_i2c_nci_read()
173 } else if (r != header.plen) { in nxp_nci_i2c_nci_read()
176 r, header.plen); in nxp_nci_i2c_nci_read()
/linux/drivers/staging/media/av7110/
H A Dav7110_ipack.c194 p->plen[0] = buf[c]; in av7110_ipack_instant_repack()
196 p->plen[1] = buf[c]; in av7110_ipack_instant_repack()
199 p->plength = (p->plen[0] << 8) | p->plen[1]; in av7110_ipack_instant_repack()
201 p->plen[0] = buf[c]; in av7110_ipack_instant_repack()
207 p->plen[1] = buf[c]; in av7110_ipack_instant_repack()
210 p->plength = (p->plen[0] << 8) | p->plen[1]; in av7110_ipack_instant_repack()
/linux/arch/sparc/prom/
H A Dtree_32.c112 int plen, ret; in prom_getproperty() local
115 plen = prom_getproplen(node, prop); in prom_getproperty()
116 if((plen > bufsize) || (plen == 0) || (plen == -1)) in prom_getproperty()

12345678