| /OK3568_Linux_fs/external/security/librkcrypto/src/ |
| H A D | rkcrypto_rsa_helper.c | 446 uint32_t *hlen, uint32_t *hash_algo) in get_hash_algo_from_padding() argument 454 *hlen = SHA1_HASH_SIZE; in get_hash_algo_from_padding() 460 *hlen = SHA224_HASH_SIZE; in get_hash_algo_from_padding() 466 *hlen = SHA256_HASH_SIZE; in get_hash_algo_from_padding() 472 *hlen = SHA384_HASH_SIZE; in get_hash_algo_from_padding() 478 *hlen = SHA512_HASH_SIZE; in get_hash_algo_from_padding() 483 *hlen = 0; in get_hash_algo_from_padding() 603 uint32_t hlen; in rsa_padding_add_oaep_type() local 611 res = get_hash_algo_from_padding(padding, &hlen, &hash_algo); in rsa_padding_add_oaep_type() 616 if (in_len + 2 * hlen + 2 < in_len || olen < in_len + 2 * hlen + 2) { in rsa_padding_add_oaep_type() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/macintosh/ |
| H A D | windfarm_pid.c | 37 int i, hlen = st->param.history_len; in wf_pid_run() local 44 for (i = 0; i < hlen; i++) { in wf_pid_run() 51 st->index = (st->index + 1) % hlen; in wf_pid_run() 57 for (i = 0, integ = 0; i < hlen; i++) in wf_pid_run() 58 integ += st->errors[(st->index + hlen - i) % hlen]; in wf_pid_run() 63 st->errors[(st->index + hlen - 1) % hlen]; in wf_pid_run() 92 int i, hlen = st->param.history_len; in wf_cpu_pid_run() local 99 for (i = 0; i < hlen; i++) { in wf_cpu_pid_run() 107 st->index = (st->index + 1) % hlen; in wf_cpu_pid_run() 115 for (i = 0, integ = 0; i < hlen; i++) in wf_cpu_pid_run() [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-support/curl/curl/ |
| H A D | CVE-2022-30115.patch | 27 + size_t hlen; 41 + hlen = strlen(duphost); 42 + if(duphost[hlen - 1] == '.') 44 + duphost[--hlen] = 0; 58 size_t hlen = strlen(hostname); 62 + if((hlen > MAX_HSTS_HOSTLEN) || !hlen) 64 + memcpy(buffer, hostname, hlen); 65 + if(hostname[hlen-1] == '.') 67 + --hlen; 68 + buffer[hlen] = 0;
|
| H A D | CVE-2022-42916.patch | 31 + size_t hlen; 35 + hlen = strlen(hostname); 36 + hostname[hlen - 1] = 0; 88 - size_t hlen; 92 - hlen = strlen(hostname); 93 - hostname[hlen - 1] = 0;
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/ |
| H A D | bcmip.h | 203 uint16 len = 0, hlen; in ipv6_exthdr_len() local 210 hlen = 8U; in ipv6_exthdr_len() 212 hlen = (uint16)((eh->hdrlen + 2U) << 2U); in ipv6_exthdr_len() 214 hlen = (uint16)IPV6_EXTHDR_LEN(eh); in ipv6_exthdr_len() 216 len += hlen; in ipv6_exthdr_len() 228 uint16 len = 0, hlen; in ipv6_exthdr_len_check() local 241 hlen = 8U; in ipv6_exthdr_len_check() 243 hlen = (uint16)((eh->hdrlen + 2U) << 2U); in ipv6_exthdr_len_check() 245 hlen = (uint16)IPV6_EXTHDR_LEN(eh); in ipv6_exthdr_len_check() 249 if (plen < len + hlen) { in ipv6_exthdr_len_check() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/include/ |
| H A D | bcmip.h | 203 uint16 len = 0, hlen; in ipv6_exthdr_len() local 210 hlen = 8U; in ipv6_exthdr_len() 212 hlen = (uint16)((eh->hdrlen + 2U) << 2U); in ipv6_exthdr_len() 214 hlen = (uint16)IPV6_EXTHDR_LEN(eh); in ipv6_exthdr_len() 216 len += hlen; in ipv6_exthdr_len() 228 uint16 len = 0, hlen; in ipv6_exthdr_len_check() local 241 hlen = 8U; in ipv6_exthdr_len_check() 243 hlen = (uint16)((eh->hdrlen + 2U) << 2U); in ipv6_exthdr_len_check() 245 hlen = (uint16)IPV6_EXTHDR_LEN(eh); in ipv6_exthdr_len_check() 249 if (plen < len + hlen) { in ipv6_exthdr_len_check() [all …]
|
| /OK3568_Linux_fs/kernel/net/core/ |
| H A D | flow_dissector.c | 116 void *data, int hlen) in __skb_flow_get_ports() argument 122 hlen = skb_headlen(skb); in __skb_flow_get_ports() 129 sizeof(_ports), data, hlen, &_ports); in __skb_flow_get_ports() 163 void *data, int thoff, int hlen) in skb_flow_get_icmp_tci() argument 167 ih = __skb_header_pointer(skb, thoff, sizeof(_ih), data, hlen, &_ih); in skb_flow_get_icmp_tci() 190 void *data, int thoff, int hlen) in __skb_flow_dissect_icmp() argument 201 skb_flow_get_icmp_tci(skb, key_icmp, data, thoff, hlen); in __skb_flow_dissect_icmp() 406 void *target_container, void *data, int nhoff, int hlen, in __skb_flow_dissect_mpls() argument 421 hlen, &_hdr); in __skb_flow_dissect_mpls() 464 void *target_container, void *data, int nhoff, int hlen) in __skb_flow_dissect_arp() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/bluetooth/ |
| H A D | h4_recv.h | 13 u8 hlen; /* Header length */ member 22 .hlen = HCI_ACL_HDR_SIZE, \ 29 .hlen = HCI_SCO_HDR_SIZE, \ 36 .hlen = HCI_EVENT_HDR_SIZE, \ 66 hci_skb_expect(skb) = (&pkts[i])->hlen; in h4_recv_buf() 98 if (skb->len == (&pkts[i])->hlen) { in h4_recv_buf()
|
| H A D | hci_uart.h | 118 u8 hlen; /* Header length */ member 127 .hlen = HCI_ACL_HDR_SIZE, \ 134 .hlen = HCI_SCO_HDR_SIZE, \ 141 .hlen = HCI_EVENT_HDR_SIZE, \ 148 .hlen = HCI_ISO_HDR_SIZE, \
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/google/gve/ |
| H A D | gve_tx.c | 294 int hlen; in gve_skb_fifo_bytes_required() local 296 hlen = skb_is_gso(skb) ? skb_checksum_start_offset(skb) + in gve_skb_fifo_bytes_required() 300 hlen); in gve_skb_fifo_bytes_required() 302 align_hdr_pad = L1_CACHE_ALIGN(hlen) - hlen; in gve_skb_fifo_bytes_required() 360 u16 hlen, u64 addr) in gve_tx_fill_pkt_desc() argument 378 pkt_desc->pkt.seg_len = cpu_to_be16(hlen); in gve_tx_fill_pkt_desc() 414 int pad_bytes, hlen, hdr_nfrags, payload_nfrags, l4_hdr_offset; in gve_tx_add_skb() local 433 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : in gve_tx_add_skb() 440 pad_bytes = gve_tx_fifo_pad_alloc_one_frag(&tx->tx_fifo, hlen); in gve_tx_add_skb() 441 hdr_nfrags = gve_tx_alloc_fifo(&tx->tx_fifo, hlen + pad_bytes, in gve_tx_add_skb() [all …]
|
| /OK3568_Linux_fs/kernel/net/ipv6/ |
| H A D | netfilter.c | 125 unsigned int mtu, hlen; in br_ip6_fragment() local 132 hlen = err; in br_ip6_fragment() 141 if (mtu < hlen + sizeof(struct frag_hdr) + 8) in br_ip6_fragment() 143 mtu -= hlen + sizeof(struct frag_hdr); in br_ip6_fragment() 158 if (first_len - hlen > mtu || in br_ip6_fragment() 167 skb_headroom(frag2) < (hlen + hroom + sizeof(struct frag_hdr))) in br_ip6_fragment() 175 err = ip6_fraglist_init(skb, hlen, prevhdr, nexthdr, frag_id, in br_ip6_fragment() 207 ip6_frag_init(skb, hlen, mtu, skb->dev->needed_tailroom, in br_ip6_fragment()
|
| H A D | ip6_output.c | 668 int ip6_fraglist_init(struct sk_buff *skb, unsigned int hlen, u8 *prevhdr, in ip6_fraglist_init() argument 677 iter->tmp_hdr = kmemdup(skb_network_header(skb), hlen, GFP_ATOMIC); in ip6_fraglist_init() 685 iter->hlen = hlen; in ip6_fraglist_init() 689 __skb_pull(skb, hlen); in ip6_fraglist_init() 691 __skb_push(skb, hlen); in ip6_fraglist_init() 693 memcpy(skb_network_header(skb), iter->tmp_hdr, hlen); in ip6_fraglist_init() 713 unsigned int hlen = iter->hlen; in ip6_fraglist_prepare() local 719 __skb_push(frag, hlen); in ip6_fraglist_prepare() 721 memcpy(skb_network_header(frag), iter->tmp_hdr, hlen); in ip6_fraglist_prepare() 722 iter->offset += skb->len - hlen - sizeof(struct frag_hdr); in ip6_fraglist_prepare() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/matrox/ |
| H A D | matroxfb_g450.c | 241 u_int32_t hlen; in computeRegs() local 288 hlen = hvis + hfp + hsl + hbp; in computeRegs() 289 over = hlen & 0x0F; in computeRegs() 291 dprintk(KERN_DEBUG "WL: vis=%u, hf=%u, hs=%u, hb=%u, total=%u\n", hvis, hfp, hsl, hbp, hlen); in computeRegs() 295 hlen -= over; in computeRegs() 299 hlen += 4; in computeRegs() 302 hlen += 16; in computeRegs() 314 …ntk(KERN_DEBUG "PG: vis=%04X, hf=%02X, hs=%02X, hb=%02X, total=%04X\n", hvis, hfp, hsl, hbp, hlen); in computeRegs() 319 hlen = hlen >> 1; in computeRegs() 321 dprintk(KERN_DEBUG "hlen=%u hvis=%u\n", hlen, hvis); in computeRegs() [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/mbedtls/ |
| H A D | ecdsa.h | 374 const unsigned char *hash, size_t hlen, 420 const unsigned char *hash, size_t hlen, 477 const unsigned char *hash, size_t hlen, 512 const unsigned char *hash, size_t hlen, 547 const unsigned char *hash, size_t hlen,
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/mbedtls/ |
| H A D | ecdsa.h | 374 const unsigned char *hash, size_t hlen, 420 const unsigned char *hash, size_t hlen, 477 const unsigned char *hash, size_t hlen, 512 const unsigned char *hash, size_t hlen, 547 const unsigned char *hash, size_t hlen,
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/mbedtls/ |
| H A D | ecdsa.h | 374 const unsigned char *hash, size_t hlen, 420 const unsigned char *hash, size_t hlen, 477 const unsigned char *hash, size_t hlen, 512 const unsigned char *hash, size_t hlen, 547 const unsigned char *hash, size_t hlen,
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/mbedtls/ |
| H A D | ecdsa.h | 374 const unsigned char *hash, size_t hlen, 420 const unsigned char *hash, size_t hlen, 477 const unsigned char *hash, size_t hlen, 512 const unsigned char *hash, size_t hlen, 547 const unsigned char *hash, size_t hlen,
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/include/ |
| H A D | bcmip.h | 140 uint8 hlen; /* Hardware address length (Eth = 6) */ member 223 uint16 len = 0, hlen; in ipv6_exthdr_len() local 230 hlen = 8; in ipv6_exthdr_len() 232 hlen = (eh->hdrlen + 2) << 2; in ipv6_exthdr_len() 234 hlen = IPV6_EXTHDR_LEN(eh); in ipv6_exthdr_len() 236 len += hlen; in ipv6_exthdr_len()
|
| /OK3568_Linux_fs/kernel/tools/lib/bpf/ |
| H A D | nlattr.c | 167 int hlen, alen; in libbpf_nla_dump_errormsg() local 174 hlen = sizeof(*err); in libbpf_nla_dump_errormsg() 178 hlen += nlmsg_len(&err->msg); in libbpf_nla_dump_errormsg() 180 attr = (struct nlattr *) ((void *) err + hlen); in libbpf_nla_dump_errormsg() 181 alen = nlh->nlmsg_len - hlen; in libbpf_nla_dump_errormsg()
|
| /OK3568_Linux_fs/kernel/net/ipv4/ |
| H A D | gre_offload.c | 122 unsigned int hlen, grehlen; in gre_gro_receive() local 134 hlen = off + sizeof(*greh); in gre_gro_receive() 136 if (skb_gro_header_hard(skb, hlen)) { in gre_gro_receive() 137 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive() 174 hlen = off + grehlen; in gre_gro_receive() 175 if (skb_gro_header_hard(skb, hlen)) { in gre_gro_receive() 176 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive()
|
| H A D | tcp_offload.c | 190 unsigned int hlen; in tcp_gro_receive() local 196 hlen = off + sizeof(*th); in tcp_gro_receive() 198 if (skb_gro_header_hard(skb, hlen)) { in tcp_gro_receive() 199 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive() 208 hlen = off + thlen; in tcp_gro_receive() 209 if (skb_gro_header_hard(skb, hlen)) { in tcp_gro_receive() 210 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| H A D | vpstate.c | 54 h->hlen = nvbios_rd08(b, h->offset + 0x1); in nvbios_vpstate_parse() 61 if (h->hlen > 0x10) in nvbios_vpstate_parse() 65 if (h->hlen > 0x11) in nvbios_vpstate_parse() 84 offset = h->offset + h->hlen + idx * (h->elen + (h->slen * h->scount)); in nvbios_vpstate_entry()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/infineon/include/ |
| H A D | bcmip.h | 210 uint16 len = 0, hlen; in ipv6_exthdr_len() local 217 hlen = 8; in ipv6_exthdr_len() 219 hlen = (eh->hdrlen + 2) << 2; in ipv6_exthdr_len() 221 hlen = IPV6_EXTHDR_LEN(eh); in ipv6_exthdr_len() 223 len += hlen; in ipv6_exthdr_len()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/include/ |
| H A D | bcmip.h | 210 uint16 len = 0, hlen; in ipv6_exthdr_len() local 217 hlen = 8; in ipv6_exthdr_len() 219 hlen = (eh->hdrlen + 2) << 2; in ipv6_exthdr_len() 221 hlen = IPV6_EXTHDR_LEN(eh); in ipv6_exthdr_len() 223 len += hlen; in ipv6_exthdr_len()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/ |
| H A D | bcmip.h | 210 uint16 len = 0, hlen; in ipv6_exthdr_len() local 217 hlen = 8; in ipv6_exthdr_len() 219 hlen = (eh->hdrlen + 2) << 2; in ipv6_exthdr_len() 221 hlen = IPV6_EXTHDR_LEN(eh); in ipv6_exthdr_len() 223 len += hlen; in ipv6_exthdr_len()
|