Searched defs:cookie (Results 1 - 25 of 28) sorted by relevance

12

/net/core/
H A Duser_dma.c56 dma_cookie_t cookie = 0; local
62 cookie = dma_memcpy_to_iovec(chan, to, pinned_list,
64 if (cookie < 0)
87 cookie = dma_memcpy_pg_to_iovec(chan, to, pinned_list, page,
89 if (cookie < 0)
109 cookie = dma_skb_copy_datagram_iovec(chan, frag_iter,
113 if (cookie < 0)
125 skb->dma_cookie = cookie;
126 return cookie;
H A Dsock_diag.c16 int sock_diag_check_cookie(void *sk, __u32 *cookie) argument
18 if ((cookie[0] != INET_DIAG_NOCOOKIE ||
19 cookie[1] != INET_DIAG_NOCOOKIE) &&
20 ((u32)(unsigned long)sk != cookie[0] ||
21 (u32)((((unsigned long)sk) >> 31) >> 1) != cookie[1]))
28 void sock_diag_save_cookie(void *sk, __u32 *cookie) argument
30 cookie[0] = (u32)(unsigned long)sk;
31 cookie[1] = (u32)(((unsigned long)sk >> 31) >> 1);
H A Dneighbour.c2338 void neigh_for_each(struct neigh_table *tbl, void (*cb)(struct neighbour *, void *), void *cookie) argument
2353 cb(n, cookie);
H A Dsock.c481 struct dst_entry *__sk_dst_check(struct sock *sk, u32 cookie) argument
485 if (dst && dst->obsolete && dst->ops->check(dst, cookie) == NULL) {
496 struct dst_entry *sk_dst_check(struct sock *sk, u32 cookie) argument
500 if (dst && dst->obsolete && dst->ops->check(dst, cookie) == NULL) {
/net/ipv4/
H A Dsyncookies.c117 * The count value used to generate the cookie must be within
121 static __u32 check_tcp_syn_cookie(__u32 cookie, __be32 saddr, __be32 daddr, argument
127 /* Strip away the layers from the cookie */
128 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq;
131 diff = (count - (cookie >> COOKIEBITS)) & ((__u32) - 1 >> COOKIEBITS);
135 return (cookie -
161 * rounded down to the value encoded in the cookie.
195 static inline int cookie_check(struct sk_buff *skb, __u32 cookie) argument
200 __u32 mssind = check_tcp_syn_cookie(cookie, iph->saddr, iph->daddr,
274 __u32 cookie local
[all...]
H A Dtcp_metrics.c29 struct tcp_fastopen_cookie cookie; member in struct:tcp_fastopen_metrics
129 tm->tcpm_fastopen.cookie.len = 0;
642 struct tcp_fastopen_cookie *cookie,
657 *cookie = tfom->cookie;
666 struct tcp_fastopen_cookie *cookie, bool syn_lost)
677 if (cookie->len > 0)
678 tfom->cookie = *cookie;
791 if (tfom->cookie
641 tcp_fastopen_cache_get(struct sock *sk, u16 *mss, struct tcp_fastopen_cookie *cookie, int *syn_loss, unsigned long *last_syn_loss) argument
665 tcp_fastopen_cache_set(struct sock *sk, u16 mss, struct tcp_fastopen_cookie *cookie, bool syn_lost) argument
[all...]
H A Droute.c133 static struct dst_entry *ipv4_dst_check(struct dst_entry *dst, u32 cookie);
1072 static struct dst_entry *ipv4_dst_check(struct dst_entry *dst, u32 cookie) argument
2124 static struct dst_entry *ipv4_blackhole_dst_check(struct dst_entry *dst, u32 cookie) argument
/net/ipv6/
H A Dinet6_connection_sock.c192 struct dst_entry *__inet6_csk_dst_check(struct sock *sk, u32 cookie) argument
194 return __sk_dst_check(sk, cookie);
H A Dsyncookies.c97 static __u32 check_tcp_syn_cookie(__u32 cookie, const struct in6_addr *saddr, argument
104 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq;
106 diff = (count - (cookie >> COOKIEBITS)) & ((__u32) -1 >> COOKIEBITS);
110 return (cookie -
137 static inline int cookie_check(const struct sk_buff *skb, __u32 cookie) argument
142 __u32 mssind = check_tcp_syn_cookie(cookie, &iph->saddr, &iph->daddr,
158 __u32 cookie = ntohl(th->ack_seq) - 1; local
170 (mss = cookie_check(skb, cookie)) == 0) {
177 /* check for timestamp cookie support */
227 treq->snt_isn = cookie;
[all...]
H A Droute.c70 static struct dst_entry *ip6_dst_check(struct dst_entry *dst, u32 cookie);
1028 static struct dst_entry *ip6_dst_check(struct dst_entry *dst, u32 cookie) argument
1041 if (rt->rt6i_node && (rt->rt6i_node->fn_sernum == cookie))
/net/mac80211/
H A Dstatus.c342 u64 cookie = (unsigned long)skb; local
369 cookie, acked, GFP_ATOMIC);
371 cfg80211_mgmt_tx_status(&sdata->wdev, cookie, skb->data,
H A Dcfg.c267 void *cookie,
268 void (*callback)(void *cookie,
350 callback(cookie, &params);
2451 unsigned int duration, u64 *cookie,
2613 * cookie is either the roc cookie (for normal roc)
2619 roc->cookie = local->roc_cookie_counter;
2621 if (WARN_ON(roc->cookie == 0)) {
2622 roc->cookie = 1;
2625 *cookie
265 ieee80211_get_key(struct wiphy *wiphy, struct net_device *dev, u8 key_idx, bool pairwise, const u8 *mac_addr, void *cookie, void (*callback)(void *cookie, struct key_params *params)) argument
2448 ieee80211_start_roc_work(struct ieee80211_local *local, struct ieee80211_sub_if_data *sdata, struct ieee80211_channel *channel, unsigned int duration, u64 *cookie, struct sk_buff *txskb, enum ieee80211_roc_type type) argument
2633 ieee80211_remain_on_channel(struct wiphy *wiphy, struct wireless_dev *wdev, struct ieee80211_channel *chan, unsigned int duration, u64 *cookie) argument
2652 ieee80211_cancel_roc(struct ieee80211_local *local, u64 cookie, bool mgmt_tx) argument
2728 ieee80211_cancel_remain_on_channel(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie) argument
2769 ieee80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, struct ieee80211_channel *chan, bool offchan, unsigned int wait, const u8 *buf, size_t len, bool no_cck, bool dont_wait_for_ack, u64 *cookie) argument
2890 ieee80211_mgmt_tx_cancel_wait(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie) argument
3294 ieee80211_probe_client(struct wiphy *wiphy, struct net_device *dev, const u8 *peer, u64 *cookie) argument
[all...]
/net/netfilter/ipvs/
H A Dip_vs_xmit.c358 u32 cookie; local
377 cookie = rt->rt6i_node ? rt->rt6i_node->fn_sernum : 0;
378 __ip_vs_dst_set(dest, dest_dst, &rt->dst, cookie);
/net/rds/
H A Drdma.c182 rds_rdma_cookie_t cookie; local
282 * a 64bit cookie containing <R_Key, offset> and pass that
284 cookie = rds_rdma_make_cookie(mr->r_key, args->vec.addr & ~PAGE_MASK);
286 *cookie_ret = cookie;
288 if (args->cookie_addr && put_user(cookie, (u64 __user *)(unsigned long) args->cookie_addr)) {
369 /* Special case - a null cookie means flush all unused MRs */
370 if (args.cookie == 0) {
382 mr = rds_mr_tree_walk(&rs->rs_rdma_keys, rds_rdma_cookie_key(args.cookie), NULL);
630 /* The cookie contains the R_Key of the remote memory region, and
637 op->op_rkey = rds_rdma_cookie_key(args->cookie);
[all...]
H A Drds.h237 static inline u32 rds_rdma_cookie_key(rds_rdma_cookie_t cookie) argument
239 return cookie;
242 static inline u32 rds_rdma_cookie_offset(rds_rdma_cookie_t cookie) argument
244 return cookie >> 32;
307 /* cookie to send to remote, in rds header */
/net/l2tp/
H A Dl2tp_core.h74 u8 cookie[8]; /* optional cookie */ member in struct:l2tp_session_cfg
76 u8 peer_cookie[8]; /* peer's cookie */
93 u8 cookie[8]; member in struct:l2tp_session
/net/sctp/
H A Dassociola.c432 /* Free peer's cached cookie. */
433 kfree(asoc->peer.cookie);
1553 /* Build the association's bind address list from the cookie. */
1555 struct sctp_cookie *cookie,
1558 int var_size2 = ntohs(cookie->peer_init->chunk_hdr.length);
1559 int var_size3 = cookie->raw_addr_list_len;
1560 __u8 *raw = (__u8 *)cookie->peer_init + var_size2;
1554 sctp_assoc_set_bind_addr_from_cookie(struct sctp_association *asoc, struct sctp_cookie *cookie, gfp_t gfp) argument
H A Dsm_make_chunk.c370 sctp_cookie_param_t *cookie; local
392 /* FIXME: We really ought to build the cookie right
395 cookie = sctp_pack_cookie(asoc->ep, asoc, chunk, &cookie_len,
397 if (!cookie)
465 sctp_addto_chunk(retval, cookie_len, cookie);
501 kfree(cookie);
535 * This field must contain the exact cookie received in the
538 * An implementation SHOULD make the cookie as small as possible
545 void *cookie; local
548 cookie
1589 struct sctp_signed_cookie *cookie; local
1677 struct sctp_signed_cookie *cookie; local
2285 char *cookie; local
[all...]
H A Dsm_statefuns.c483 * the T1-cookie timer, and enter the COOKIE-ECHOED state.
595 * COOKIE-WAIT state. "A" shall then ... start the T1-cookie
716 /* FIXME: Several errors are possible. A bad cookie should
758 /* SCTP-AUTH: auth_chunk pointer is only set when the cookie-echo
761 * the information in the cookie and now it's much easier to
863 * COOKIE-ECHOED state to the ESTABLISHED state, stopping the T1-cookie
898 * counter in stale cookie situations when a transition back
908 * stopping the T1-cookie timer.
1336 * outbound streams) into the INIT ACK and cookie.
1469 * outbound streams) into the INIT ACK and cookie
6065 struct sctp_signed_cookie *cookie; local
[all...]
/net/sunrpc/
H A Dxprt.c654 * @cookie: 'connection cookie'
656 * This attempts to break the connection if and only if 'cookie' matches
657 * the current transport 'connection cookie'. It ensures that we don't
662 void xprt_conditional_disconnect(struct rpc_xprt *xprt, unsigned int cookie) argument
666 if (cookie != xprt->connect_cookie)
/net/wireless/
H A Dmlme.c678 bool no_cck, bool dont_wait_for_ack, u64 *cookie)
773 cookie);
674 cfg80211_mlme_mgmt_tx(struct cfg80211_registered_device *rdev, struct wireless_dev *wdev, struct ieee80211_channel *chan, bool offchan, unsigned int wait, const u8 *buf, size_t len, bool no_cck, bool dont_wait_for_ack, u64 *cookie) argument
H A Drdev-ops.h88 u8 key_index, bool pairwise, const u8 *mac_addr, void *cookie,
89 void (*callback)(void *cookie, struct key_params*))
94 mac_addr, cookie, callback);
603 unsigned int duration, u64 *cookie)
608 duration, cookie);
609 trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie);
615 struct wireless_dev *wdev, u64 cookie)
618 trace_rdev_cancel_remain_on_channel(&rdev->wiphy, wdev, cookie);
619 ret = rdev->ops->cancel_remain_on_channel(&rdev->wiphy, wdev, cookie);
628 bool no_cck, bool dont_wait_for_ack, u64 *cookie)
87 rdev_get_key(struct cfg80211_registered_device *rdev, struct net_device *netdev, u8 key_index, bool pairwise, const u8 *mac_addr, void *cookie, void (*callback)(void *cookie, struct key_params*)) argument
600 rdev_remain_on_channel(struct cfg80211_registered_device *rdev, struct wireless_dev *wdev, struct ieee80211_channel *chan, unsigned int duration, u64 *cookie) argument
614 rdev_cancel_remain_on_channel(struct cfg80211_registered_device *rdev, struct wireless_dev *wdev, u64 cookie) argument
624 rdev_mgmt_tx(struct cfg80211_registered_device *rdev, struct wireless_dev *wdev, struct ieee80211_channel *chan, bool offchan, unsigned int wait, const u8 *buf, size_t len, bool no_cck, bool dont_wait_for_ack, u64 *cookie) argument
641 rdev_mgmt_tx_cancel_wait(struct cfg80211_registered_device *rdev, struct wireless_dev *wdev, u64 cookie) argument
797 rdev_probe_client(struct cfg80211_registered_device *rdev, struct net_device *dev, const u8 *peer, u64 *cookie) argument
[all...]
/net/ceph/
H A Dosd_client.c576 u64 cookie, u64 version, int flag)
582 op->watch.cookie = cookie;
672 dst->watch.cookie = cpu_to_le64(src->watch.cookie);
1850 if (new->cookie < event->cookie)
1852 else if (new->cookie > event->cookie)
1863 u64 cookie)
574 osd_req_op_watch_init(struct ceph_osd_request *osd_req, unsigned int which, u16 opcode, u64 cookie, u64 version, int flag) argument
1862 __find_event(struct ceph_osd_client *osdc, u64 cookie) argument
1963 u64 cookie, ver, notify_id; local
[all...]
/net/decnet/
H A Ddn_route.c308 static struct dst_entry *dn_dst_check(struct dst_entry *dst, __u32 cookie) argument
/net/xfrm/
H A Dxfrm_policy.c2484 static struct dst_entry *xfrm_dst_check(struct dst_entry *dst, u32 cookie) argument

Completed in 314 milliseconds

12