Lines Matching refs:ctrl
687 static inline __u16 __get_reqseq(struct l2cap_chan *chan, __u32 ctrl) in __get_reqseq() argument
690 return (ctrl & L2CAP_EXT_CTRL_REQSEQ) >> in __get_reqseq()
693 return (ctrl & L2CAP_CTRL_REQSEQ) >> L2CAP_CTRL_REQSEQ_SHIFT; in __get_reqseq()
705 static inline __u16 __get_txseq(struct l2cap_chan *chan, __u32 ctrl) in __get_txseq() argument
708 return (ctrl & L2CAP_EXT_CTRL_TXSEQ) >> in __get_txseq()
711 return (ctrl & L2CAP_CTRL_TXSEQ) >> L2CAP_CTRL_TXSEQ_SHIFT; in __get_txseq()
723 static inline bool __is_sframe(struct l2cap_chan *chan, __u32 ctrl) in __is_sframe() argument
726 return ctrl & L2CAP_EXT_CTRL_FRAME_TYPE; in __is_sframe()
728 return ctrl & L2CAP_CTRL_FRAME_TYPE; in __is_sframe()
739 static inline __u8 __get_ctrl_sar(struct l2cap_chan *chan, __u32 ctrl) in __get_ctrl_sar() argument
742 return (ctrl & L2CAP_EXT_CTRL_SAR) >> L2CAP_EXT_CTRL_SAR_SHIFT; in __get_ctrl_sar()
744 return (ctrl & L2CAP_CTRL_SAR) >> L2CAP_CTRL_SAR_SHIFT; in __get_ctrl_sar()
755 static inline bool __is_sar_start(struct l2cap_chan *chan, __u32 ctrl) in __is_sar_start() argument
757 return __get_ctrl_sar(chan, ctrl) == L2CAP_SAR_START; in __is_sar_start()
768 static inline __u8 __get_ctrl_super(struct l2cap_chan *chan, __u32 ctrl) in __get_ctrl_super() argument
771 return (ctrl & L2CAP_EXT_CTRL_SUPERVISE) >> in __get_ctrl_super()
774 return (ctrl & L2CAP_CTRL_SUPERVISE) >> L2CAP_CTRL_SUPER_SHIFT; in __get_ctrl_super()
795 static inline bool __is_ctrl_final(struct l2cap_chan *chan, __u32 ctrl) in __is_ctrl_final() argument
798 return ctrl & L2CAP_EXT_CTRL_FINAL; in __is_ctrl_final()
800 return ctrl & L2CAP_CTRL_FINAL; in __is_ctrl_final()
811 static inline bool __is_ctrl_poll(struct l2cap_chan *chan, __u32 ctrl) in __is_ctrl_poll() argument
814 return ctrl & L2CAP_EXT_CTRL_POLL; in __is_ctrl_poll()
816 return ctrl & L2CAP_CTRL_POLL; in __is_ctrl_poll()