~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to include/crypto/scatterwalk.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
{
37
37
        sg_set_page(&sg1[num - 1], (void *)sg2, 0, 0);
38
38
        sg1[num - 1].page_link &= ~0x02;
 
39
        sg1[num - 1].page_link |= 0x01;
39
40
}
40
41
 
41
42
static inline struct scatterlist *scatterwalk_sg_next(struct scatterlist *sg)
43
44
        if (sg_is_last(sg))
44
45
                return NULL;
45
46
 
46
 
        return (++sg)->length ? sg : (void *)sg_page(sg);
 
47
        return (++sg)->length ? sg : sg_chain_ptr(sg);
47
48
}
48
49
 
49
50
static inline void scatterwalk_crypto_chain(struct scatterlist *head,