Lines Matching refs:ccid
4 * net/dccp/ccid.h
59 int (*ccid_hc_rx_init)(struct ccid *ccid, struct sock *sk);
60 int (*ccid_hc_tx_init)(struct ccid *ccid, struct sock *sk);
103 struct ccid {
108 static inline void *ccid_priv(const struct ccid *ccid)
110 return (void *)ccid->ccid_priv;
118 extern struct ccid *ccid_new(const u8 id, struct sock *sk, bool rx);
122 struct ccid *ccid = dp->dccps_hc_rx_ccid;
124 if (ccid == NULL || ccid->ccid_ops == NULL)
126 return ccid->ccid_ops->ccid_id;
131 struct ccid *ccid = dp->dccps_hc_tx_ccid;
133 if (ccid == NULL || ccid->ccid_ops == NULL)
135 return ccid->ccid_ops->ccid_id;
138 extern void ccid_hc_rx_delete(struct ccid *ccid, struct sock *sk);
139 extern void ccid_hc_tx_delete(struct ccid *ccid, struct sock *sk);
141 static inline int ccid_hc_tx_send_packet(struct ccid *ccid, struct sock *sk,
145 if (ccid->ccid_ops->ccid_hc_tx_send_packet != NULL)
146 rc = ccid->ccid_ops->ccid_hc_tx_send_packet(sk, skb);
150 static inline void ccid_hc_tx_packet_sent(struct ccid *ccid, struct sock *sk,
153 if (ccid->ccid_ops->ccid_hc_tx_packet_sent != NULL)
154 ccid->ccid_ops->ccid_hc_tx_packet_sent(sk, more, len);
157 static inline void ccid_hc_rx_packet_recv(struct ccid *ccid, struct sock *sk,
160 if (ccid->ccid_ops->ccid_hc_rx_packet_recv != NULL)
161 ccid->ccid_ops->ccid_hc_rx_packet_recv(sk, skb);
164 static inline void ccid_hc_tx_packet_recv(struct ccid *ccid, struct sock *sk,
167 if (ccid->ccid_ops->ccid_hc_tx_packet_recv != NULL)
168 ccid->ccid_ops->ccid_hc_tx_packet_recv(sk, skb);
171 static inline int ccid_hc_tx_parse_options(struct ccid *ccid, struct sock *sk,
177 if (ccid->ccid_ops->ccid_hc_tx_parse_options != NULL)
178 rc = ccid->ccid_ops->ccid_hc_tx_parse_options(sk, option, len, idx,
183 static inline int ccid_hc_rx_parse_options(struct ccid *ccid, struct sock *sk,
189 if (ccid->ccid_ops->ccid_hc_rx_parse_options != NULL)
190 rc = ccid->ccid_ops->ccid_hc_rx_parse_options(sk, option, len, idx, value);
194 static inline int ccid_hc_rx_insert_options(struct ccid *ccid, struct sock *sk,
197 if (ccid->ccid_ops->ccid_hc_rx_insert_options != NULL)
198 return ccid->ccid_ops->ccid_hc_rx_insert_options(sk, skb);
202 static inline void ccid_hc_rx_get_info(struct ccid *ccid, struct sock *sk,
205 if (ccid->ccid_ops->ccid_hc_rx_get_info != NULL)
206 ccid->ccid_ops->ccid_hc_rx_get_info(sk, info);
209 static inline void ccid_hc_tx_get_info(struct ccid *ccid, struct sock *sk,
212 if (ccid->ccid_ops->ccid_hc_tx_get_info != NULL)
213 ccid->ccid_ops->ccid_hc_tx_get_info(sk, info);
216 static inline int ccid_hc_rx_getsockopt(struct ccid *ccid, struct sock *sk,
221 if (ccid->ccid_ops->ccid_hc_rx_getsockopt != NULL)
222 rc = ccid->ccid_ops->ccid_hc_rx_getsockopt(sk, optname, len,
227 static inline int ccid_hc_tx_getsockopt(struct ccid *ccid, struct sock *sk,
232 if (ccid->ccid_ops->ccid_hc_tx_getsockopt != NULL)
233 rc = ccid->ccid_ops->ccid_hc_tx_getsockopt(sk, optname, len,