Lines Matching full:chunk
34 * pcl_init - Initialize a parsed chunk list
35 * @pcl: parsed chunk list to initialize
44 * pcl_is_empty - Return true if parsed chunk list is empty
45 * @pcl: parsed chunk list
54 * pcl_first_chunk - Return first chunk in a parsed chunk list
55 * @pcl: parsed chunk list
57 * Returns the first chunk in the list, or NULL if the list is empty.
69 * pcl_next_chunk - Return next chunk in a parsed chunk list
70 * @pcl: a parsed chunk list
71 * @chunk: chunk in @pcl
73 * Returns the next chunk in the list, or NULL if @chunk is already last.
76 pcl_next_chunk(const struct svc_rdma_pcl *pcl, struct svc_rdma_chunk *chunk) in pcl_next_chunk() argument
78 if (list_is_last(&chunk->ch_list, &pcl->cl_chunks)) in pcl_next_chunk()
80 return list_next_entry(chunk, ch_list); in pcl_next_chunk()
84 * pcl_for_each_chunk - Iterate over chunks in a parsed chunk list
86 * @pcl: a parsed chunk list
94 * pcl_for_each_segment - Iterate over segments in a parsed chunk
96 * @chunk: a parsed chunk
98 #define pcl_for_each_segment(pos, chunk) \ argument
99 for (pos = &(chunk)->ch_segments[0]; \
100 pos <= &(chunk)->ch_segments[(chunk)->ch_segcount - 1]; \
104 * pcl_chunk_end_offset - Return offset of byte range following @chunk
105 * @chunk: chunk in @pcl
107 * Returns starting offset of the region just after @chunk
110 pcl_chunk_end_offset(const struct svc_rdma_chunk *chunk) in pcl_chunk_end_offset() argument
112 return xdr_align_size(chunk->ch_position + chunk->ch_payload_length); in pcl_chunk_end_offset()