Lines Matching refs:p_data
69 #define RFCOMM_PARSE_CTRL_FIELD(ea, cr, dlci, p_data) \ argument
71 ea = *p_data & RFCOMM_EA; \
72 cr = (*p_data & RFCOMM_CR_MASK) >> RFCOMM_SHIFT_CR; \
73 dlci = *p_data++ >> RFCOMM_SHIFT_DLCI; \
74 if (!ea) dlci += *p_data++ << RFCOMM_SHIFT_DLCI2; \
77 #define RFCOMM_FORMAT_CTRL_FIELD(p_data, ea, cr, dlci) \ argument
78 *p_data++ = ea | cr | (dlci << RFCOMM_SHIFT_DLCI)
80 #define RFCOMM_PARSE_TYPE_FIELD(type, pf, p_data) \ argument
82 type = *p_data & ~RFCOMM_PF_MASK; \
83 pf = (*p_data++ & RFCOMM_PF_MASK) >> RFCOMM_PF_OFFSET;\
86 #define RFCOMM_FORMAT_TYPE_FIELD(p_data, type, pf) \ argument
87 *p_data++ = (type | (pf << RFCOMM_PF_OFFSET)) \
89 type = *p_data & ~RFCOMM_PF_MASK; \
90 pf = (*p_data++ & RFCOMM_PF_MASK) >> RFCOMM_PF_OFFSET;\
93 #define RFCOMM_PARSE_LEN_FIELD(ea, length, p_data) \ argument
95 ea = (*p_data & RFCOMM_EA); \
96 length = (*p_data++ >> RFCOMM_SHIFT_LENGTH1); \
97 if (!ea) length += (*p_data++ << RFCOMM_SHIFT_LENGTH2); \