• Home
  • Raw
  • Download

Lines Matching refs:hdr

77 static inline int wlp_tx_hdr_delivery_id_type(const struct wlp_tx_hdr *hdr)  in wlp_tx_hdr_delivery_id_type()  argument
79 return hdr->mac_params & 0x0f; in wlp_tx_hdr_delivery_id_type()
82 static inline int wlp_tx_hdr_ack_policy(const struct wlp_tx_hdr *hdr) in wlp_tx_hdr_ack_policy() argument
84 return (hdr->mac_params >> 4) & 0x07; in wlp_tx_hdr_ack_policy()
87 static inline int wlp_tx_hdr_rts_cts(const struct wlp_tx_hdr *hdr) in wlp_tx_hdr_rts_cts() argument
89 return (hdr->mac_params >> 7) & 0x01; in wlp_tx_hdr_rts_cts()
92 static inline void wlp_tx_hdr_set_delivery_id_type(struct wlp_tx_hdr *hdr, int id) in wlp_tx_hdr_set_delivery_id_type() argument
94 hdr->mac_params = (hdr->mac_params & ~0x0f) | id; in wlp_tx_hdr_set_delivery_id_type()
97 static inline void wlp_tx_hdr_set_ack_policy(struct wlp_tx_hdr *hdr, in wlp_tx_hdr_set_ack_policy() argument
100 hdr->mac_params = (hdr->mac_params & ~0x70) | (policy << 4); in wlp_tx_hdr_set_ack_policy()
103 static inline void wlp_tx_hdr_set_rts_cts(struct wlp_tx_hdr *hdr, int rts_cts) in wlp_tx_hdr_set_rts_cts() argument
105 hdr->mac_params = (hdr->mac_params & ~0x80) | (rts_cts << 7); in wlp_tx_hdr_set_rts_cts()
108 static inline enum uwb_phy_rate wlp_tx_hdr_phy_rate(const struct wlp_tx_hdr *hdr) in wlp_tx_hdr_phy_rate() argument
110 return hdr->phy_params & 0x0f; in wlp_tx_hdr_phy_rate()
113 static inline int wlp_tx_hdr_tx_power(const struct wlp_tx_hdr *hdr) in wlp_tx_hdr_tx_power() argument
115 return (hdr->phy_params >> 4) & 0x0f; in wlp_tx_hdr_tx_power()
118 static inline void wlp_tx_hdr_set_phy_rate(struct wlp_tx_hdr *hdr, enum uwb_phy_rate rate) in wlp_tx_hdr_set_phy_rate() argument
120 hdr->phy_params = (hdr->phy_params & ~0x0f) | rate; in wlp_tx_hdr_set_phy_rate()
123 static inline void wlp_tx_hdr_set_tx_power(struct wlp_tx_hdr *hdr, int pwr) in wlp_tx_hdr_set_tx_power() argument
125 hdr->phy_params = (hdr->phy_params & ~0xf0) | (pwr << 4); in wlp_tx_hdr_set_tx_power()