Home
last modified time | relevance | path

Searched refs:pad (Results 1 – 25 of 38) sorted by relevance

12

/net/ncsi/
A Dncsi-pkt.h40 unsigned char pad[26]; member
46 unsigned char pad[22]; member
55 unsigned char pad[22]; member
64 unsigned char pad[22]; member
72 unsigned char pad[22]; member
82 unsigned char pad[18]; member
91 unsigned char pad[18]; member
103 unsigned char pad[18]; member
112 unsigned char pad[22]; member
122 unsigned char pad[18]; member
[all …]
/net/ipv6/
A Dcalipso.c725 u32 len, pad; in calipso_genopt() local
731 pad = padding[start & 3]; in calipso_genopt()
743 buf + start + pad + len, in calipso_genopt()
750 calipso_pad_write(buf, start, pad); in calipso_genopt()
751 calipso = buf + start + pad; in calipso_genopt()
761 return pad + len; in calipso_genopt()
942 buf_len += pad; in calipso_opt_insert()
992 pad = (end - start) & 7; in calipso_opt_del()
1322 int len_delta, new_end, pad, payload; in calipso_skbuff_setattr() local
1344 len_delta = new_end - (int)end + pad; in calipso_skbuff_setattr()
[all …]
A Drpl.c40 outhdr->pad = 0; in ipv6_rpl_srh_decompress()
103 outhdr->pad = 8 - (seglen & 0x7); in ipv6_rpl_srh_compress()
105 outhdr->pad = 0; in ipv6_rpl_srh_compress()
A Dioam6_iptunnel.c30 u8 pad[2]; /* 2-octet padding for 4n-alignment */ member
222 tuninfo->pad[0] = IPV6_TLV_PADN; in ioam6_build_state()
A Dndisc.c147 int data_len, int pad) in __ndisc_fill_addr_option() argument
149 int space = __ndisc_opt_addr_space(data_len, pad); in __ndisc_fill_addr_option()
155 memset(opt + 2, 0, pad); in __ndisc_fill_addr_option()
156 opt += pad; in __ndisc_fill_addr_option()
157 space -= pad; in __ndisc_fill_addr_option()
/net/mac80211/
A Dfils_aead.c16 static void gf_mulx(u8 *pad) in gf_mulx() argument
18 u64 a = get_unaligned_be64(pad); in gf_mulx()
19 u64 b = get_unaligned_be64(pad + 8); in gf_mulx()
21 put_unaligned_be64((a << 1) | (b >> 63), pad); in gf_mulx()
22 put_unaligned_be64((b << 1) ^ ((a >> 63) ? 0x87 : 0), pad + 8); in gf_mulx()
/net/wireless/
A Dradiotap.c217 int pad, align, size, subns; in ieee80211_radiotap_iterator_next() local
271 pad = ((unsigned long)iterator->_arg - in ieee80211_radiotap_iterator_next()
274 if (pad) in ieee80211_radiotap_iterator_next()
275 iterator->_arg += align - pad; in ieee80211_radiotap_iterator_next()
/net/ipv4/
A Dtcp_sigpool.c15 void __rcu *pad; member
82 old_scratch = rcu_replace_pointer(per_cpu(sigpool_scratch.pad, cpu), in sigpool_reserve_scratch()
103 kfree(rcu_replace_pointer(per_cpu(sigpool_scratch.pad, cpu), in sigpool_scratch_free()
288 c->scratch = rcu_dereference_bh(*this_cpu_ptr(&sigpool_scratch.pad)); in tcp_sigpool_start()
A Draw_diag.c242 BUILD_BUG_ON(__offset_mismatch(pad, sdiag_raw_protocol)); in __check_inet_diag_req_raw()
/net/rxrpc/
A Drxkad.c265 size_t pad; in rxkad_secure_packet_auth() local
274 pad = txb->pkt_len; in rxkad_secure_packet_auth()
275 pad = RXKAD_ALIGN - pad; in rxkad_secure_packet_auth()
276 pad &= RXKAD_ALIGN - 1; in rxkad_secure_packet_auth()
277 if (pad) { in rxkad_secure_packet_auth()
278 memset(txb->data + txb->offset, 0, pad); in rxkad_secure_packet_auth()
279 txb->pkt_len += pad; in rxkad_secure_packet_auth()
307 size_t content, pad; in rxkad_secure_packet_encrypt() local
320 pad = txb->pkt_len - content; in rxkad_secure_packet_encrypt()
321 if (pad) in rxkad_secure_packet_encrypt()
[all …]
A Dprotocol.h82 uint8_t pad; member
A Drxgk.c763 size_t pad = xdr_round_up(len) - len; in rxgk_pad_out() local
766 if (!pad) in rxgk_pad_out()
769 ret = skb_store_bits(response, offset, &zero, pad); in rxgk_pad_out()
772 return pad; in rxgk_pad_out()
/net/ethtool/
A Dpause.c120 const u16 pad = ETHTOOL_A_PAUSE_STAT_PAD; in pause_put_stats() local
131 ETHTOOL_A_PAUSE_STAT_TX_FRAMES, pad) || in pause_put_stats()
133 ETHTOOL_A_PAUSE_STAT_RX_FRAMES, pad)) in pause_put_stats()
/net/netfilter/
A Dnft_compat.c187 int pad; in target_compat_from_user() local
190 pad = XT_ALIGN(t->targetsize) - t->targetsize; in target_compat_from_user()
191 if (pad > 0) in target_compat_from_user()
192 memset(out + t->targetsize, 0, pad); in target_compat_from_user()
487 int pad; in match_compat_from_user() local
490 pad = XT_ALIGN(m->matchsize) - m->matchsize; in match_compat_from_user()
491 if (pad > 0) in match_compat_from_user()
492 memset(out + m->matchsize, 0, pad); in match_compat_from_user()
/net/sctp/
A Doutput.c220 struct sctp_chunk *pad; in sctp_packet_bundle_pad() local
229 pad = sctp_make_pad(t->asoc, t->pl.probe_size - overhead); in sctp_packet_bundle_pad()
230 if (!pad) in sctp_packet_bundle_pad()
233 list_add_tail(&pad->list, &pkt->chunk_list); in sctp_packet_bundle_pad()
234 pkt->size += SCTP_PAD4(ntohs(pad->chunk_hdr->length)); in sctp_packet_bundle_pad()
/net/tipc/
A Dmsg.c488 u32 msz, bsz, offset, pad; in tipc_msg_bundle() local
493 pad = offset - bsz; in tipc_msg_bundle()
495 if (unlikely(skb_tailroom(bskb) < (pad + msz))) in tipc_msg_bundle()
500 skb_put(bskb, pad + msz); in tipc_msg_bundle()
/net/netfilter/ipvs/
A Dip_vs_sync.c638 unsigned int len, pe_name_len, pad; in ip_vs_sync_conn() local
687 pad = 0; in ip_vs_sync_conn()
691 pad = (4 - (size_t) buff->head) & 3; in ip_vs_sync_conn()
693 if (buff->head + len + pad > buff->end || m->reserved) { in ip_vs_sync_conn()
697 pad = 0; in ip_vs_sync_conn()
713 buff->head += pad + len; in ip_vs_sync_conn()
714 m->size = htons(ntohs(m->size) + pad + len); in ip_vs_sync_conn()
716 while (pad--) in ip_vs_sync_conn()
/net/tls/
A Dtls_sw.c1669 int pad, err; in tls_decrypt_sw() local
1689 pad = tls_padding_length(prot, darg->skb, darg); in tls_decrypt_sw()
1690 if (pad < 0) { in tls_decrypt_sw()
1693 return pad; in tls_decrypt_sw()
1697 rxm->full_len -= pad; in tls_decrypt_sw()
1709 int pad, err; in tls_decrypt_device() local
1718 pad = tls_padding_length(prot, tls_strp_msg(ctx), darg); in tls_decrypt_device()
1719 if (pad < 0) in tls_decrypt_device()
1720 return pad; in tls_decrypt_device()
1729 rxm->full_len -= pad; in tls_decrypt_device()
/net/core/
A Dselftests.c156 void *pad = skb_put(skb, pad_len); in net_test_get_skb() local
158 memset(pad, 0, pad_len); in net_test_get_skb()
/net/sched/
A Dem_text.c117 conf.pad = 0; in em_text_dump()
/net/sunrpc/xprtrdma/
A Drpc_rdma.c1040 rpcrdma_inline_fixup(struct rpc_rqst *rqst, char *srcp, int copy_len, int pad) in rpcrdma_inline_fixup() argument
1098 if (pad) in rpcrdma_inline_fixup()
1099 srcp -= pad; in rpcrdma_inline_fixup()
1105 if (copy_len || pad) { in rpcrdma_inline_fixup()
/net/sunrpc/auth_gss/
A Dsvcauth_gss.c1853 u32 offset, pad, maj_stat; in svcauth_gss_wrap_priv() local
1910 pad = xdr_pad_size(buf->len - offset - XDR_UNIT); in svcauth_gss_wrap_priv()
1912 memset(p, 0, pad); in svcauth_gss_wrap_priv()
1913 tail->iov_len += pad; in svcauth_gss_wrap_priv()
1914 buf->len += pad; in svcauth_gss_wrap_priv()
A Dauth_gss.c1842 u32 pad, offset, maj_stat; in gss_wrap_req_priv() local
1900 pad = xdr_pad_size(snd_buf->len - offset); in gss_wrap_req_priv()
1901 memset(p, 0, pad); in gss_wrap_req_priv()
1902 iov->iov_len += pad; in gss_wrap_req_priv()
1903 snd_buf->len += pad; in gss_wrap_req_priv()
/net/bridge/netfilter/
A Debtables.c1964 int off, pad = 0; in compat_mtw_from_user() local
2018 pad = XT_ALIGN(size_kern) - size_kern; in compat_mtw_from_user()
2020 if (pad > 0 && dst) { in compat_mtw_from_user()
2021 if (WARN_ON(state->buf_kern_len <= pad)) in compat_mtw_from_user()
2023 if (WARN_ON(state->buf_kern_offset - (match_size + off) + size_kern > state->buf_kern_len - pad)) in compat_mtw_from_user()
2025 memset(dst + size_kern, 0, pad); in compat_mtw_from_user()
/net/atm/
A Dbr2684.c57 static const unsigned char pad[] = { PAD_BRIDGED }; variable
494 if (memcmp(skb->data, pad, BR2684_PAD_LEN) != 0) in br2684_push()

Completed in 71 milliseconds

12