/linux/crypto/ |
A D | tcrypt.h | 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, }, 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 …]
|
A D | testmgr.h | 14729 .plen = 8, 15041 .plen = 8, 19373 .plen = 4, 19833 .plen = 0, 19845 .plen = 0, 19908 .plen = 0, 19969 .plen = 0, 20532 .plen = 4, 20886 .plen = 0, 20899 .plen = 1, [all …]
|
A D | af_alg.c | 426 len -= plen; in af_alg_make_sg() 622 dst_offset -= plen; in af_alg_pull_tsgl() 637 used -= plen; in af_alg_pull_tsgl() 638 ctx->used -= plen; in af_alg_pull_tsgl() 888 size_t plen; in af_alg_sendmsg() local 945 msg, plen); in af_alg_sendmsg() 952 sg[i].length = plen; in af_alg_sendmsg() 953 len -= plen; in af_alg_sendmsg() 954 ctx->used += plen; in af_alg_sendmsg() 955 copied += plen; in af_alg_sendmsg() [all …]
|
/linux/net/ipv6/ |
A D | rpl.c | 66 unsigned char plen; in ipv6_rpl_srh_calc_cmpri() local 69 for (plen = 0; plen < sizeof(*daddr); plen++) { in ipv6_rpl_srh_calc_cmpri() 71 if (daddr->s6_addr[plen] != in ipv6_rpl_srh_calc_cmpri() 72 inhdr->rpl_segaddr[i].s6_addr[plen]) in ipv6_rpl_srh_calc_cmpri() 73 return plen; in ipv6_rpl_srh_calc_cmpri() 83 unsigned int plen; in ipv6_rpl_srh_calc_cmpre() local 85 for (plen = 0; plen < sizeof(*daddr); plen++) { in ipv6_rpl_srh_calc_cmpre() 86 if (daddr->s6_addr[plen] != last_segment->s6_addr[plen]) in ipv6_rpl_srh_calc_cmpre() 87 return plen; in ipv6_rpl_srh_calc_cmpre()
|
A D | fib6_rules.c | 35 if (r->dst.plen || r->src.plen || r->tclass) in fib6_rule_matchall() 286 if (rt->rt6i_dst.plen <= rule->suppress_prefixlen) in fib6_rule_suppress() 308 if (r->dst.plen && in fib6_rule_match() 317 if (r->src.plen) { in fib6_rule_match() 320 r->src.plen)) in fib6_rule_match() 374 rule6->src.plen = frh->src_len; in fib6_rule_configure() 375 rule6->dst.plen = frh->dst_len; in fib6_rule_configure() 428 frh->dst_len = rule6->dst.plen; in fib6_rule_fill() 429 frh->src_len = rule6->src.plen; in fib6_rule_fill() 432 if ((rule6->dst.plen && in fib6_rule_fill() [all …]
|
/linux/arch/x86/platform/olpc/ |
A D | olpc_dt.c | 72 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/ |
A D | hci_ag6xx.c | 29 __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/certs/ |
A D | common.c | 13 size_t plen; in load_certificate_list() local 26 plen = (p[2] << 8) | p[3]; in load_certificate_list() 27 plen += 4; in load_certificate_list() 28 if (plen > end - p) in load_certificate_list() 35 plen, in load_certificate_list() 49 p += plen; in load_certificate_list()
|
/linux/include/net/ |
A D | esp.h | 14 static inline void esp_output_fill_trailer(u8 *tail, int tfclen, int plen, __u8 proto) in esp_output_fill_trailer() argument 23 for (i = 0; i < plen - 2; i++) in esp_output_fill_trailer() 26 tail[plen - 2] = plen - 2; in esp_output_fill_trailer() 27 tail[plen - 1] = proto; in esp_output_fill_trailer() 35 int plen; member
|
/linux/drivers/infiniband/hw/hfi1/ |
A D | vnic_sdma.c | 34 u16 plen; member 75 if (tx->plen) in build_vnic_ulp_payload() 77 tx->pad + HFI1_VNIC_MAX_PAD - tx->plen, in build_vnic_ulp_payload() 78 tx->plen); in build_vnic_ulp_payload() 94 hdrbytes + tx->skb->len + tx->plen, in build_vnic_tx_desc() 120 static inline void hfi1_vnic_update_pad(unsigned char *pad, u8 plen) in hfi1_vnic_update_pad() argument 122 pad[HFI1_VNIC_MAX_PAD - 1] = plen - OPA_VNIC_ICRC_TAIL_LEN; in hfi1_vnic_update_pad() 127 struct sk_buff *skb, u64 pbc, u8 plen) in hfi1_vnic_send_dma() argument 148 hfi1_vnic_update_pad(tx->pad, plen); in hfi1_vnic_send_dma() 149 tx->plen = plen; in hfi1_vnic_send_dma()
|
/linux/fs/iomap/ |
A D | buffered-io.c | 114 plen -= block_size; in iomap_adjust_read_range() 121 plen -= (last - i + 1) * block_size; in iomap_adjust_read_range() 137 plen -= (last - end) * block_size; in iomap_adjust_read_range() 141 *lenp = plen; in iomap_adjust_read_range() 265 unsigned poff, plen; in iomap_readpage_iter() local 274 if (plen == 0) in iomap_readpage_iter() 278 zero_user(page, poff, plen); in iomap_readpage_iter() 290 bio_add_page(ctx->bio, page, plen, poff) != plen) { in iomap_readpage_iter() 323 return pos - orig_pos + plen; in iomap_readpage_iter() 567 if (plen == 0) in __iomap_write_begin() [all …]
|
/linux/drivers/scsi/libfc/ |
A D | fc_disc.c | 384 size_t plen; in fc_disc_gpn_ft_parse() local 397 plen = len; in fc_disc_gpn_ft_parse() 403 plen = sizeof(*np) - tlen; in fc_disc_gpn_ft_parse() 404 WARN_ON(plen <= 0); in fc_disc_gpn_ft_parse() 405 WARN_ON(plen >= sizeof(*np)); in fc_disc_gpn_ft_parse() 406 if (plen > len) in fc_disc_gpn_ft_parse() 407 plen = len; in fc_disc_gpn_ft_parse() 417 plen += tlen; in fc_disc_gpn_ft_parse() 419 if (plen == sizeof(*np)) in fc_disc_gpn_ft_parse() 430 while (plen >= sizeof(*np)) { in fc_disc_gpn_ft_parse() [all …]
|
/linux/net/xfrm/ |
A D | xfrm_ipcomp.c | 41 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() 128 const int plen = skb->len; in ipcomp_compress() local 138 err = crypto_comp_compress(tfm, start, plen, scratch, &dlen); in ipcomp_compress() 142 if ((dlen + sizeof(struct ip_comp_hdr)) >= plen) { in ipcomp_compress()
|
/linux/drivers/mtd/parsers/ |
A D | ofpart_core.c | 194 int i, plen, nr_parts; in parse_ofoldpart_partitions() local 205 part = of_get_property(dp, "partitions", &plen); in parse_ofoldpart_partitions() 211 nr_parts = plen / sizeof(part[0]); in parse_ofoldpart_partitions() 217 names = of_get_property(dp, "partition-names", &plen); in parse_ofoldpart_partitions() 226 if (names && (plen > 0)) { in parse_ofoldpart_partitions() 230 plen -= len; in parse_ofoldpart_partitions()
|
/linux/net/netfilter/ |
A D | nf_conntrack_ftp.c | 70 size_t plen; member 79 .plen = sizeof("PORT") - 1, 87 .plen = sizeof("EPRT") - 1, 97 .plen = sizeof("227 ") - 1, 103 .plen = sizeof("229 ") - 1, 291 const char *pattern, size_t plen, in find_pattern() argument 300 size_t i = plen; in find_pattern() 304 if (dlen <= plen) { in find_pattern() 311 if (strncasecmp(data, pattern, plen) != 0) in find_pattern() 318 for (i = plen; data[i] != skip; i++) in find_pattern() [all …]
|
/linux/security/keys/ |
A D | keyctl.c | 77 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() 1180 if (!plen) in keyctl_instantiate_key_common() 1184 if (plen > 1024 * 1024 - 1) in keyctl_instantiate_key_common() 1246 size_t plen, in keyctl_instantiate_key() argument [all …]
|
/linux/drivers/nfc/nfcmrvl/ |
A D | i2c.c | 39 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/net/6lowpan/ |
A D | iphc.c | 218 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() 494 ipaddr->s6_addr[3] = ctx->plen; in lowpan_uncompress_multicast_ctx_daddr() 808 ipv6_addr_prefix_copy(&tmp, &ctx->pfx, ctx->plen); in lowpan_iphc_compress_ctx_802154_lladdr() 818 ipv6_addr_prefix_copy(&tmp, &ctx->pfx, ctx->plen); in lowpan_iphc_compress_ctx_802154_lladdr() 876 ipv6_addr_prefix_copy(&tmp, &ctx->pfx, ctx->plen); in lowpan_compress_ctx_addr() [all …]
|
/linux/drivers/staging/rtl8192u/ieee80211/ |
A D | ieee80211_crypt_wep.c | 136 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()
|
/linux/drivers/staging/rtl8192e/ |
A D | rtllib_crypt_wep.c | 134 u32 klen, plen; in prism2_wep_decrypt() local 159 plen = skb->len - hdr_len - 8; in prism2_wep_decrypt() 163 arc4_crypt(&wep->rx_ctx_arc4, pos, pos, plen + 4); in prism2_wep_decrypt() 165 crc = ~crc32_le(~0, pos, plen); in prism2_wep_decrypt() 170 if (memcmp(icv, pos + plen, 4) != 0) { in prism2_wep_decrypt()
|
/linux/net/wireless/ |
A D | lib80211_crypt_wep.c | 154 u32 crc, klen, plen; in lib80211_wep_decrypt() local 175 plen = skb->len - hdr_len - 8; in lib80211_wep_decrypt() 178 arc4_crypt(&wep->rx_ctx, pos, pos, plen + 4); in lib80211_wep_decrypt() 180 crc = ~crc32_le(~0, pos, plen); in lib80211_wep_decrypt() 185 if (memcmp(icv, pos + plen, 4) != 0) { in lib80211_wep_decrypt()
|
/linux/drivers/staging/media/av7110/ |
A D | av7110_ipack.c | 201 p->plen[0] = buf[c]; in av7110_ipack_instant_repack() 203 p->plen[1] = buf[c]; in av7110_ipack_instant_repack() 206 p->plength = (p->plen[0] << 8) | p->plen[1]; in av7110_ipack_instant_repack() 208 p->plen[0] = buf[c]; in av7110_ipack_instant_repack() 214 p->plen[1] = buf[c]; in av7110_ipack_instant_repack() 217 p->plength = (p->plen[0] << 8) | p->plen[1]; in av7110_ipack_instant_repack()
|
/linux/arch/sparc/prom/ |
A D | tree_32.c | 112 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()
|
A D | tree_64.c | 121 int plen; in prom_getproperty() local 123 plen = prom_getproplen(node, prop); in prom_getproperty() 124 if ((plen > bufsize) || (plen == 0) || (plen == -1)) in prom_getproperty()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
A D | ipsec_rxtx.c | 115 u8 plen; in mlx5e_ipsec_remove_trailer() local 118 ret = skb_copy_bits(skb, skb->len - alen - 2, &plen, 1); in mlx5e_ipsec_remove_trailer() 122 trailer_len = alen + plen + 2; in mlx5e_ipsec_remove_trailer() 277 esp_output_fill_trailer((u8 *)inlseg->data, 0, ipsec_st->plen, ipsec_st->xo->proto); in mlx5e_ipsec_handle_tx_wqe() 286 unsigned int blksize, clen, alen, plen; in mlx5e_ipsec_set_state() local 297 plen = max_t(u32, clen - skb->len, 4); in mlx5e_ipsec_set_state() 298 tailen = plen + alen; in mlx5e_ipsec_set_state() 299 ipsec_st->plen = plen; in mlx5e_ipsec_set_state()
|