Lines Matching refs:msg
347 static inline __le16 wil_rx_status_get_length(void *msg) in wil_rx_status_get_length() argument
349 return ((struct wil_rx_status_compressed *)msg)->length; in wil_rx_status_get_length()
352 static inline u8 wil_rx_status_get_mcs(void *msg) in wil_rx_status_get_mcs() argument
354 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d1, in wil_rx_status_get_mcs()
358 static inline u8 wil_rx_status_get_cb_mode(void *msg) in wil_rx_status_get_cb_mode() argument
360 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d1, in wil_rx_status_get_cb_mode()
364 static inline u16 wil_rx_status_get_flow_id(void *msg) in wil_rx_status_get_flow_id() argument
366 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_flow_id()
370 static inline u8 wil_rx_status_get_mcast(void *msg) in wil_rx_status_get_mcast() argument
372 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_mcast()
386 static inline u8 wil_rx_status_get_cid(void *msg) in wil_rx_status_get_cid() argument
388 u16 val = wil_rx_status_get_flow_id(msg); in wil_rx_status_get_cid()
400 static inline u8 wil_rx_status_get_tid(void *msg) in wil_rx_status_get_tid() argument
402 u16 val = wil_rx_status_get_flow_id(msg); in wil_rx_status_get_tid()
413 static inline int wil_rx_status_get_eop(void *msg) /* EoP = End of Packet */ in wil_rx_status_get_eop() argument
415 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_eop()
425 static inline __le16 wil_rx_status_get_buff_id(void *msg) in wil_rx_status_get_buff_id() argument
427 return ((struct wil_rx_status_compressed *)msg)->buff_id; in wil_rx_status_get_buff_id()
430 static inline u8 wil_rx_status_get_data_offset(void *msg) in wil_rx_status_get_data_offset() argument
432 u8 val = WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d1, in wil_rx_status_get_data_offset()
443 void *msg) in wil_rx_status_get_frame_type() argument
448 return WIL_GET_BITS(((struct wil_rx_status_extended *)msg)->ext.d1, in wil_rx_status_get_frame_type()
452 static inline int wil_rx_status_get_fc1(struct wil6210_priv *wil, void *msg) in wil_rx_status_get_fc1() argument
457 return WIL_GET_BITS(((struct wil_rx_status_extended *)msg)->ext.d1, in wil_rx_status_get_fc1()
461 static inline __le16 wil_rx_status_get_seq(struct wil6210_priv *wil, void *msg) in wil_rx_status_get_seq() argument
466 return ((struct wil_rx_status_extended *)msg)->ext.seq_num; in wil_rx_status_get_seq()
469 static inline u8 wil_rx_status_get_retry(void *msg) in wil_rx_status_get_retry() argument
475 static inline int wil_rx_status_get_mid(void *msg) in wil_rx_status_get_mid() argument
477 if (!(((struct wil_rx_status_compressed *)msg)->d0 & in wil_rx_status_get_mid()
481 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_mid()
485 static inline int wil_rx_status_get_error(void *msg) in wil_rx_status_get_error() argument
487 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_error()
491 static inline int wil_rx_status_get_l2_rx_status(void *msg) in wil_rx_status_get_l2_rx_status() argument
493 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_l2_rx_status()
497 static inline int wil_rx_status_get_l3_rx_status(void *msg) in wil_rx_status_get_l3_rx_status() argument
499 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_l3_rx_status()
503 static inline int wil_rx_status_get_l4_rx_status(void *msg) in wil_rx_status_get_l4_rx_status() argument
505 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_l4_rx_status()
523 static inline int wil_rx_status_get_checksum(void *msg, in wil_rx_status_get_checksum() argument
526 int l3_rx_status = wil_rx_status_get_l3_rx_status(msg); in wil_rx_status_get_checksum()
527 int l4_rx_status = wil_rx_status_get_l4_rx_status(msg); in wil_rx_status_get_checksum()
548 static inline int wil_rx_status_get_security(void *msg) in wil_rx_status_get_security() argument
550 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_security()
554 static inline u8 wil_rx_status_get_key_id(void *msg) in wil_rx_status_get_key_id() argument
556 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d1, in wil_rx_status_get_key_id()
560 static inline u8 wil_tx_status_get_mcs(struct wil_ring_tx_status *msg) in wil_tx_status_get_mcs() argument
562 return WIL_GET_BITS(msg->d2, 0, 4); in wil_tx_status_get_mcs()