Lines Matching refs:ccid

5  *  net/dccp/ccid.h
56 int (*ccid_hc_rx_init)(struct ccid *ccid, struct sock *sk);
57 int (*ccid_hc_tx_init)(struct ccid *ccid, struct sock *sk);
96 struct ccid {
101 static inline void *ccid_priv(const struct ccid *ccid)
103 return (void *)ccid->ccid_priv;
111 struct ccid *ccid_new(const u8 id, struct sock *sk, bool rx);
115 struct ccid *ccid = dp->dccps_hc_rx_ccid;
117 if (ccid == NULL || ccid->ccid_ops == NULL)
119 return ccid->ccid_ops->ccid_id;
124 struct ccid *ccid = dp->dccps_hc_tx_ccid;
126 if (ccid == NULL || ccid->ccid_ops == NULL)
128 return ccid->ccid_ops->ccid_id;
131 void ccid_hc_rx_delete(struct ccid *ccid, struct sock *sk);
132 void ccid_hc_tx_delete(struct ccid *ccid, struct sock *sk);
163 static inline int ccid_hc_tx_send_packet(struct ccid *ccid, struct sock *sk,
166 if (ccid->ccid_ops->ccid_hc_tx_send_packet != NULL)
167 return ccid->ccid_ops->ccid_hc_tx_send_packet(sk, skb);
171 static inline void ccid_hc_tx_packet_sent(struct ccid *ccid, struct sock *sk,
174 if (ccid->ccid_ops->ccid_hc_tx_packet_sent != NULL)
175 ccid->ccid_ops->ccid_hc_tx_packet_sent(sk, len);
178 static inline void ccid_hc_rx_packet_recv(struct ccid *ccid, struct sock *sk,
181 if (ccid->ccid_ops->ccid_hc_rx_packet_recv != NULL)
182 ccid->ccid_ops->ccid_hc_rx_packet_recv(sk, skb);
185 static inline void ccid_hc_tx_packet_recv(struct ccid *ccid, struct sock *sk,
188 if (ccid->ccid_ops->ccid_hc_tx_packet_recv != NULL)
189 ccid->ccid_ops->ccid_hc_tx_packet_recv(sk, skb);
199 static inline int ccid_hc_tx_parse_options(struct ccid *ccid, struct sock *sk,
202 if (!ccid || !ccid->ccid_ops->ccid_hc_tx_parse_options)
204 return ccid->ccid_ops->ccid_hc_tx_parse_options(sk, pkt, opt, val, len);
211 static inline int ccid_hc_rx_parse_options(struct ccid *ccid, struct sock *sk,
214 if (!ccid || !ccid->ccid_ops->ccid_hc_rx_parse_options)
216 return ccid->ccid_ops->ccid_hc_rx_parse_options(sk, pkt, opt, val, len);
219 static inline int ccid_hc_rx_insert_options(struct ccid *ccid, struct sock *sk,
222 if (ccid->ccid_ops->ccid_hc_rx_insert_options != NULL)
223 return ccid->ccid_ops->ccid_hc_rx_insert_options(sk, skb);
227 static inline void ccid_hc_rx_get_info(struct ccid *ccid, struct sock *sk,
230 if (ccid->ccid_ops->ccid_hc_rx_get_info != NULL)
231 ccid->ccid_ops->ccid_hc_rx_get_info(sk, info);
234 static inline void ccid_hc_tx_get_info(struct ccid *ccid, struct sock *sk,
237 if (ccid->ccid_ops->ccid_hc_tx_get_info != NULL)
238 ccid->ccid_ops->ccid_hc_tx_get_info(sk, info);
241 static inline int ccid_hc_rx_getsockopt(struct ccid *ccid, struct sock *sk,
246 if (ccid != NULL && ccid->ccid_ops->ccid_hc_rx_getsockopt != NULL)
247 rc = ccid->ccid_ops->ccid_hc_rx_getsockopt(sk, optname, len,
252 static inline int ccid_hc_tx_getsockopt(struct ccid *ccid, struct sock *sk,
257 if (ccid != NULL && ccid->ccid_ops->ccid_hc_tx_getsockopt != NULL)
258 rc = ccid->ccid_ops->ccid_hc_tx_getsockopt(sk, optname, len,