On 10 March 2016 at 17:42, Robert Jarzmik wrote:
>>
>>
>> Ah, sorry that's a mistake. It should check as below:
>> static inline bool sg_is_contiguous(struct scatterlist *sga, struct
>> scatterlist *sgb)
>> {
>> return (unsigned int)sg_virt(sga) + sga->length ==
Baolin Wang writes:
> Hi Robert,
>
> On 4 March 2016 at 03:15, Robert Jarzmik wrote:
>> Baolin Wang writes:
>>> +static inline bool sg_is_contiguous(struct scatterlist *sga,
>>> + struct
Hi Robert,
On 4 March 2016 at 03:15, Robert Jarzmik wrote:
> Baolin Wang writes:
>
>> @@ -212,6 +212,37 @@ static inline void sg_unmark_end(struct scatterlist *sg)
>> }
>>
>> /**
>> + * sg_is_contiguous - Check if the scatterlists are contiguous
Baolin Wang writes:
> @@ -212,6 +212,37 @@ static inline void sg_unmark_end(struct scatterlist *sg)
> }
>
> /**
> + * sg_is_contiguous - Check if the scatterlists are contiguous
> + * @sga: SG entry
> + * @sgb: SG entry
> + *
> + * Description:
> + * If the sga
In crypto engine framework, one request can combine other requests'
scatterlists into its sg table to improve engine efficency with
handling bulk block. Thus we need some helper functions to manage
dynamic scattertables.
This patch introduces 'sg_is_contiguous()' function to check if two