Home
last modified time | relevance | path

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

1234567891011

/openbmc/linux/crypto/
H A Dtcrypt.h72 { .blen = 16, .plen = 16, },
73 { .blen = 64, .plen = 16, },
74 { .blen = 64, .plen = 64, },
75 { .blen = 256, .plen = 16, },
76 { .blen = 256, .plen = 64, },
96 { .blen = 0, .plen = 0, }
100 { .blen = 96, .plen = 16, },
101 { .blen = 96, .plen = 32, },
102 { .blen = 96, .plen = 96, },
103 { .blen = 288, .plen = 16, },
[all …]
H A Dtestmgr.h15628 .plen = 0,
15643 .plen = 0,
17260 .plen = 8,
17572 .plen = 8,
21904 .plen = 4,
22364 .plen = 0,
22376 .plen = 0,
22439 .plen = 0,
22500 .plen = 0,
23063 .plen = 4,
[all …]
H A Daf_alg.c744 used -= plen; in af_alg_pull_tsgl()
995 ssize_t plen; in af_alg_sendmsg() local
1049 if (plen < 0) { in af_alg_sendmsg()
1050 err = plen; in af_alg_sendmsg()
1056 len -= plen; in af_alg_sendmsg()
1058 copied += plen; in af_alg_sendmsg()
1059 size -= plen; in af_alg_sendmsg()
1078 msg, plen); in af_alg_sendmsg()
1086 len -= plen; in af_alg_sendmsg()
1088 copied += plen; in af_alg_sendmsg()
[all …]
/openbmc/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.c36 if (r->dst.plen || r->src.plen || r->dscp) in fib6_rule_matchall()
291 if (rt->rt6i_dst.plen <= rule->suppress_prefixlen) in fib6_rule_suppress()
313 if (r->dst.plen && in fib6_rule_match()
322 if (r->src.plen) { in fib6_rule_match()
325 r->src.plen)) in fib6_rule_match()
382 rule6->src.plen = frh->src_len; in fib6_rule_configure()
383 rule6->dst.plen = frh->dst_len; in fib6_rule_configure()
435 frh->dst_len = rule6->dst.plen; in fib6_rule_fill()
436 frh->src_len = rule6->src.plen; in fib6_rule_fill()
439 if ((rule6->dst.plen && in fib6_rule_fill()
[all …]
/openbmc/linux/lib/crypto/
H A Daesgcm.c555 int plen; member
565 .plen = sizeof(ptext1),
575 .plen = sizeof(ptext2),
585 .plen = sizeof(ptext3),
599 .plen = sizeof(ptext1),
610 .plen = sizeof(ptext6),
620 .plen = sizeof(ptext1),
632 .plen = sizeof(ptext9),
644 .plen = sizeof(ptext10),
659 .plen = sizeof(ptext11),
[all …]
/openbmc/linux/tools/testing/selftests/net/
H A Dtest_vxlan_mdb.sh1080 local plen=32
1100 local plen=32
1221 local plen=32
1241 local plen=32
1362 local plen=32
1382 local plen=32
1484 local plen=32
1503 local plen=32
1603 local plen=32
1622 local plen=32
[all …]
/openbmc/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()
/openbmc/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()
/openbmc/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
/openbmc/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 …]
/openbmc/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()
/openbmc/linux/fs/smb/client/
H A Dreparse.c28 u16 len, plen; in smb2_create_reparse_symlink() local
49 len = sizeof(*buf) + plen * 2; in smb2_create_reparse_symlink()
58 buf->SubstituteNameOffset = cpu_to_le16(plen); in smb2_create_reparse_symlink()
60 memcpy(&buf->PathBuffer[plen], path, plen); in smb2_create_reparse_symlink()
62 buf->PrintNameLength = cpu_to_le16(plen); in smb2_create_reparse_symlink()
63 memcpy(buf->PathBuffer, path, plen); in smb2_create_reparse_symlink()
349 u32 plen, bool unicode, in parse_reparse_symlink() argument
360 if (offs + 20 > plen || offs + len + 20 > plen) { in parse_reparse_symlink()
378 u32 plen, struct cifs_sb_info *cifs_sb, in parse_reparse_point() argument
391 plen, unicode, cifs_sb, data); in parse_reparse_point()
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-crypto-akcipher.c683 size_t plen; member
799 .plen = 128,
820 .plen = 64,
844 .plen = 256,
865 .plen = 128,
901 g_assert(qcrypto_akcipher_encrypt(pub_key, data->plaintext, data->plen, in test_akcipher()
913 data->plen, in test_akcipher()
914 &error_abort) == data->plen); in test_akcipher()
915 g_assert(!memcmp(plaintext, data->plaintext, data->plen)); in test_akcipher()
/openbmc/linux/net/bluetooth/
H A Dhci_request.c217 int len = HCI_COMMAND_HDR_SIZE + plen; in hci_prepare_cmd()
227 hdr->plen = plen; in hci_prepare_cmd()
229 if (plen) in hci_prepare_cmd()
230 skb_put_data(skb, param, plen); in hci_prepare_cmd()
255 skb = hci_prepare_cmd(hdev, opcode, plen, param); in hci_req_add_ev()
275 hci_req_add_ev(req, opcode, plen, param, 0); in hci_req_add()
569 u32 plen; in hci_req_start_scan() local
578 plen = sizeof(*ext_param_cp); in hci_req_start_scan()
588 plen += sizeof(*phy_params); in hci_req_start_scan()
600 plen += sizeof(*phy_params); in hci_req_start_scan()
[all …]
/openbmc/u-boot/common/
H A Dcli_readline.c23 static char *delete_char (char *buffer, char *p, int *colp, int *np, int plen) in delete_char() argument
31 while (*colp > plen) { in delete_char()
556 int plen = 0; /* prompt length */ in cli_readline_into_buffer() local
562 plen = strlen(prompt); in cli_readline_into_buffer()
565 col = plen; in cli_readline_into_buffer()
598 while (col > plen) { in cli_readline_into_buffer()
607 p = delete_char(p_buf, p, &col, &n, plen); in cli_readline_into_buffer()
609 p = delete_char(p_buf, p, &col, &n, plen); in cli_readline_into_buffer()
614 p = delete_char(p_buf, p, &col, &n, plen); in cli_readline_into_buffer()
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/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()
414 plen += tlen; in fc_disc_gpn_ft_parse()
416 if (plen == sizeof(*np)) in fc_disc_gpn_ft_parse()
427 while (plen >= sizeof(*np)) { in fc_disc_gpn_ft_parse()
[all …]
/openbmc/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()
/openbmc/linux/include/net/bluetooth/
H A Dhci_sync.h27 struct sk_buff *__hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen,
29 struct sk_buff *hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen,
31 struct sk_buff *__hci_cmd_sync_ev(struct hci_dev *hdev, u16 opcode, u32 plen,
33 struct sk_buff *__hci_cmd_sync_sk(struct hci_dev *hdev, u16 opcode, u32 plen,
36 int __hci_cmd_sync_status(struct hci_dev *hdev, u16 opcode, u32 plen,
38 int __hci_cmd_sync_status_sk(struct hci_dev *hdev, u16 opcode, u32 plen,
/openbmc/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 …]
/openbmc/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()
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()
1185 if (!plen) in keyctl_instantiate_key_common()
1189 if (plen > 1024 * 1024 - 1) in keyctl_instantiate_key_common()
1251 size_t plen, in keyctl_instantiate_key() argument
[all …]
/openbmc/linux/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_crypt_wep.c136 u32 klen, plen; in prism2_wep_decrypt() local
160 plen = skb->len - hdr_len - 8; in prism2_wep_decrypt()
164 arc4_crypt(&wep->rx_ctx_arc4, pos, pos, plen + 4); in prism2_wep_decrypt()
166 crc = ~crc32_le(~0, pos, plen); in prism2_wep_decrypt()
171 if (memcmp(icv, pos + plen, 4) != 0) { in prism2_wep_decrypt()

1234567891011