Home
last modified time | relevance | path

Searched refs:spd (Results 1 – 2 of 2) sorted by relevance

/net/smc/
Dsmc_rx.c137 static void smc_rx_spd_release(struct splice_pipe_desc *spd, in smc_rx_spd_release() argument
140 put_page(spd->pages[i]); in smc_rx_spd_release()
146 struct splice_pipe_desc spd; in smc_rx_splice() local
160 spd.nr_pages_max = 1; in smc_rx_splice()
161 spd.nr_pages = 1; in smc_rx_splice()
162 spd.pages = &smc->conn.rmb_desc->pages; in smc_rx_splice()
163 spd.partial = &partial; in smc_rx_splice()
164 spd.ops = &smc_pipe_ops; in smc_rx_splice()
165 spd.spd_release = smc_rx_spd_release; in smc_rx_splice()
167 bytes = splice_to_pipe(pipe, &spd); in smc_rx_splice()
/net/core/
Dskbuff.c2320 static void sock_spd_release(struct splice_pipe_desc *spd, unsigned int i) in sock_spd_release() argument
2322 put_page(spd->pages[i]); in sock_spd_release()
2344 static bool spd_can_coalesce(const struct splice_pipe_desc *spd, in spd_can_coalesce() argument
2348 return spd->nr_pages && in spd_can_coalesce()
2349 spd->pages[spd->nr_pages - 1] == page && in spd_can_coalesce()
2350 (spd->partial[spd->nr_pages - 1].offset + in spd_can_coalesce()
2351 spd->partial[spd->nr_pages - 1].len == offset); in spd_can_coalesce()
2357 static bool spd_fill_page(struct splice_pipe_desc *spd, in spd_fill_page() argument
2363 if (unlikely(spd->nr_pages == MAX_SKB_FRAGS)) in spd_fill_page()
2371 if (spd_can_coalesce(spd, page, offset)) { in spd_fill_page()
[all …]