Lines Matching refs:ccid

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 { struct
101 static inline void *ccid_priv(const struct ccid *ccid) in ccid_priv() argument
103 return (void *)ccid->ccid_priv; in ccid_priv()
111 struct ccid *ccid_new(const u8 id, struct sock *sk, bool rx);
115 struct ccid *ccid = dp->dccps_hc_rx_ccid; in ccid_get_current_rx_ccid() local
117 if (ccid == NULL || ccid->ccid_ops == NULL) in ccid_get_current_rx_ccid()
119 return ccid->ccid_ops->ccid_id; in ccid_get_current_rx_ccid()
124 struct ccid *ccid = dp->dccps_hc_tx_ccid; in ccid_get_current_tx_ccid() local
126 if (ccid == NULL || ccid->ccid_ops == NULL) in ccid_get_current_tx_ccid()
128 return ccid->ccid_ops->ccid_id; in ccid_get_current_tx_ccid()
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, in ccid_hc_tx_send_packet() argument
166 if (ccid->ccid_ops->ccid_hc_tx_send_packet != NULL) in ccid_hc_tx_send_packet()
167 return ccid->ccid_ops->ccid_hc_tx_send_packet(sk, skb); in ccid_hc_tx_send_packet()
171 static inline void ccid_hc_tx_packet_sent(struct ccid *ccid, struct sock *sk, in ccid_hc_tx_packet_sent() argument
174 if (ccid->ccid_ops->ccid_hc_tx_packet_sent != NULL) in ccid_hc_tx_packet_sent()
175 ccid->ccid_ops->ccid_hc_tx_packet_sent(sk, len); in ccid_hc_tx_packet_sent()
178 static inline void ccid_hc_rx_packet_recv(struct ccid *ccid, struct sock *sk, in ccid_hc_rx_packet_recv() argument
181 if (ccid->ccid_ops->ccid_hc_rx_packet_recv != NULL) in ccid_hc_rx_packet_recv()
182 ccid->ccid_ops->ccid_hc_rx_packet_recv(sk, skb); in ccid_hc_rx_packet_recv()
185 static inline void ccid_hc_tx_packet_recv(struct ccid *ccid, struct sock *sk, in ccid_hc_tx_packet_recv() argument
188 if (ccid->ccid_ops->ccid_hc_tx_packet_recv != NULL) in ccid_hc_tx_packet_recv()
189 ccid->ccid_ops->ccid_hc_tx_packet_recv(sk, skb); in ccid_hc_tx_packet_recv()
199 static inline int ccid_hc_tx_parse_options(struct ccid *ccid, struct sock *sk, in ccid_hc_tx_parse_options() argument
202 if (!ccid || !ccid->ccid_ops->ccid_hc_tx_parse_options) in ccid_hc_tx_parse_options()
204 return ccid->ccid_ops->ccid_hc_tx_parse_options(sk, pkt, opt, val, len); in ccid_hc_tx_parse_options()
211 static inline int ccid_hc_rx_parse_options(struct ccid *ccid, struct sock *sk, in ccid_hc_rx_parse_options() argument
214 if (!ccid || !ccid->ccid_ops->ccid_hc_rx_parse_options) in ccid_hc_rx_parse_options()
216 return ccid->ccid_ops->ccid_hc_rx_parse_options(sk, pkt, opt, val, len); in ccid_hc_rx_parse_options()
219 static inline int ccid_hc_rx_insert_options(struct ccid *ccid, struct sock *sk, in ccid_hc_rx_insert_options() argument
222 if (ccid->ccid_ops->ccid_hc_rx_insert_options != NULL) in ccid_hc_rx_insert_options()
223 return ccid->ccid_ops->ccid_hc_rx_insert_options(sk, skb); in ccid_hc_rx_insert_options()
227 static inline void ccid_hc_rx_get_info(struct ccid *ccid, struct sock *sk, in ccid_hc_rx_get_info() argument
230 if (ccid->ccid_ops->ccid_hc_rx_get_info != NULL) in ccid_hc_rx_get_info()
231 ccid->ccid_ops->ccid_hc_rx_get_info(sk, info); in ccid_hc_rx_get_info()
234 static inline void ccid_hc_tx_get_info(struct ccid *ccid, struct sock *sk, in ccid_hc_tx_get_info() argument
237 if (ccid->ccid_ops->ccid_hc_tx_get_info != NULL) in ccid_hc_tx_get_info()
238 ccid->ccid_ops->ccid_hc_tx_get_info(sk, info); in ccid_hc_tx_get_info()
241 static inline int ccid_hc_rx_getsockopt(struct ccid *ccid, struct sock *sk, in ccid_hc_rx_getsockopt() argument
246 if (ccid != NULL && ccid->ccid_ops->ccid_hc_rx_getsockopt != NULL) in ccid_hc_rx_getsockopt()
247 rc = ccid->ccid_ops->ccid_hc_rx_getsockopt(sk, optname, len, in ccid_hc_rx_getsockopt()
252 static inline int ccid_hc_tx_getsockopt(struct ccid *ccid, struct sock *sk, in ccid_hc_tx_getsockopt() argument
257 if (ccid != NULL && ccid->ccid_ops->ccid_hc_tx_getsockopt != NULL) in ccid_hc_tx_getsockopt()
258 rc = ccid->ccid_ops->ccid_hc_tx_getsockopt(sk, optname, len, in ccid_hc_tx_getsockopt()