Lines Matching refs:sk_msg

43 struct sk_msg {  struct
86 struct sk_msg *cork;
112 int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len,
114 int sk_msg_clone(struct sock *sk, struct sk_msg *dst, struct sk_msg *src,
116 void sk_msg_trim(struct sock *sk, struct sk_msg *msg, int len);
117 int sk_msg_free(struct sock *sk, struct sk_msg *msg);
118 int sk_msg_free_nocharge(struct sock *sk, struct sk_msg *msg);
119 void sk_msg_free_partial(struct sock *sk, struct sk_msg *msg, u32 bytes);
120 void sk_msg_free_partial_nocharge(struct sock *sk, struct sk_msg *msg,
123 void sk_msg_return(struct sock *sk, struct sk_msg *msg, int bytes);
124 void sk_msg_return_zero(struct sock *sk, struct sk_msg *msg, int bytes);
127 struct sk_msg *msg, u32 bytes);
129 struct sk_msg *msg, u32 bytes);
134 static inline void sk_msg_check_to_free(struct sk_msg *msg, u32 i, u32 bytes) in sk_msg_check_to_free()
175 static inline void sk_msg_init(struct sk_msg *msg) in sk_msg_init()
182 static inline void sk_msg_xfer(struct sk_msg *dst, struct sk_msg *src, in sk_msg_xfer()
193 static inline void sk_msg_xfer_full(struct sk_msg *dst, struct sk_msg *src) in sk_msg_xfer_full()
199 static inline bool sk_msg_full(const struct sk_msg *msg) in sk_msg_full()
204 static inline u32 sk_msg_elem_used(const struct sk_msg *msg) in sk_msg_elem_used()
209 static inline struct scatterlist *sk_msg_elem(struct sk_msg *msg, int which) in sk_msg_elem()
214 static inline struct scatterlist sk_msg_elem_cpy(struct sk_msg *msg, int which) in sk_msg_elem_cpy()
219 static inline struct page *sk_msg_page(struct sk_msg *msg, int which) in sk_msg_page()
224 static inline bool sk_msg_to_ingress(const struct sk_msg *msg) in sk_msg_to_ingress()
229 static inline void sk_msg_compute_data_pointers(struct sk_msg *msg) in sk_msg_compute_data_pointers()
242 static inline void sk_msg_page_add(struct sk_msg *msg, struct page *page, in sk_msg_page_add()
257 static inline void sk_msg_sg_copy(struct sk_msg *msg, u32 i, bool copy_state) in sk_msg_sg_copy()
270 static inline void sk_msg_sg_copy_set(struct sk_msg *msg, u32 start) in sk_msg_sg_copy_set()
275 static inline void sk_msg_sg_copy_clear(struct sk_msg *msg, u32 start) in sk_msg_sg_copy_clear()
311 struct sk_msg *msg) in sk_psock_queue_msg()
323 static inline struct sk_msg *sk_psock_dequeue_msg(struct sk_psock *psock) in sk_psock_dequeue_msg()
325 struct sk_msg *msg; in sk_psock_dequeue_msg()
328 msg = list_first_entry_or_null(&psock->ingress_msg, struct sk_msg, list); in sk_psock_dequeue_msg()
335 static inline struct sk_msg *sk_psock_peek_msg(struct sk_psock *psock) in sk_psock_peek_msg()
337 struct sk_msg *msg; in sk_psock_peek_msg()
340 msg = list_first_entry_or_null(&psock->ingress_msg, struct sk_msg, list); in sk_psock_peek_msg()
345 static inline struct sk_msg *sk_psock_next_msg(struct sk_psock *psock, in sk_psock_next_msg()
346 struct sk_msg *msg) in sk_psock_next_msg()
348 struct sk_msg *ret; in sk_psock_next_msg()
364 static inline void kfree_sk_msg(struct sk_msg *msg) in kfree_sk_msg()
405 struct sk_msg *msg);