Home
last modified time | relevance | path

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

/net/smc/
Dsmc_rx.c145 static void smc_rx_spd_release(struct splice_pipe_desc *spd, in smc_rx_spd_release() argument
148 put_page(spd->pages[i]); in smc_rx_spd_release()
154 struct splice_pipe_desc spd; in smc_rx_splice() local
168 spd.nr_pages_max = 1; in smc_rx_splice()
169 spd.nr_pages = 1; in smc_rx_splice()
170 spd.pages = &smc->conn.rmb_desc->pages; in smc_rx_splice()
171 spd.partial = &partial; in smc_rx_splice()
172 spd.ops = &smc_pipe_ops; in smc_rx_splice()
173 spd.spd_release = smc_rx_spd_release; in smc_rx_splice()
175 bytes = splice_to_pipe(pipe, &spd); in smc_rx_splice()
/net/core/
Dskbuff.c2298 static void sock_spd_release(struct splice_pipe_desc *spd, unsigned int i) in sock_spd_release() argument
2300 put_page(spd->pages[i]); in sock_spd_release()
2322 static bool spd_can_coalesce(const struct splice_pipe_desc *spd, in spd_can_coalesce() argument
2326 return spd->nr_pages && in spd_can_coalesce()
2327 spd->pages[spd->nr_pages - 1] == page && in spd_can_coalesce()
2328 (spd->partial[spd->nr_pages - 1].offset + in spd_can_coalesce()
2329 spd->partial[spd->nr_pages - 1].len == offset); in spd_can_coalesce()
2335 static bool spd_fill_page(struct splice_pipe_desc *spd, in spd_fill_page() argument
2341 if (unlikely(spd->nr_pages == MAX_SKB_FRAGS)) in spd_fill_page()
2349 if (spd_can_coalesce(spd, page, offset)) { in spd_fill_page()
[all …]