Lines Matching refs:pos
23 #define BVAL(buf,pos) (((const __u8 *)(buf))[pos]) argument
24 #define PVAL(buf,pos) ((unsigned)BVAL(buf,pos)) argument
25 #define BSET(buf,pos,val) (((__u8 *)(buf))[pos] = (val)) argument
28 WVAL_LH(const __u8 * buf, int pos) in WVAL_LH() argument
30 return PVAL(buf, pos) | PVAL(buf, pos + 1) << 8; in WVAL_LH()
33 DVAL_LH(const __u8 * buf, int pos) in DVAL_LH() argument
35 return WVAL_LH(buf, pos) | WVAL_LH(buf, pos + 2) << 16; in DVAL_LH()
38 WSET_LH(__u8 * buf, int pos, __u16 val) in WSET_LH() argument
40 BSET(buf, pos, val & 0xff); in WSET_LH()
41 BSET(buf, pos + 1, val >> 8); in WSET_LH()
44 DSET_LH(__u8 * buf, int pos, __u32 val) in DSET_LH() argument
46 WSET_LH(buf, pos, val & 0xffff); in DSET_LH()
47 WSET_LH(buf, pos + 2, val >> 16); in DSET_LH()