Lines Matching refs:msg
349 static inline __le16 wil_rx_status_get_length(void *msg) in wil_rx_status_get_length() argument
351 return ((struct wil_rx_status_compressed *)msg)->length; in wil_rx_status_get_length()
354 static inline u8 wil_rx_status_get_mcs(void *msg) in wil_rx_status_get_mcs() argument
356 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d1, in wil_rx_status_get_mcs()
360 static inline u8 wil_rx_status_get_cb_mode(void *msg) in wil_rx_status_get_cb_mode() argument
362 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d1, in wil_rx_status_get_cb_mode()
366 static inline u16 wil_rx_status_get_flow_id(void *msg) in wil_rx_status_get_flow_id() argument
368 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_flow_id()
372 static inline u8 wil_rx_status_get_mcast(void *msg) in wil_rx_status_get_mcast() argument
374 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_mcast()
388 static inline u8 wil_rx_status_get_cid(void *msg) in wil_rx_status_get_cid() argument
390 u16 val = wil_rx_status_get_flow_id(msg); in wil_rx_status_get_cid()
402 static inline u8 wil_rx_status_get_tid(void *msg) in wil_rx_status_get_tid() argument
404 u16 val = wil_rx_status_get_flow_id(msg); in wil_rx_status_get_tid()
415 static inline int wil_rx_status_get_eop(void *msg) /* EoP = End of Packet */ in wil_rx_status_get_eop() argument
417 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_eop()
427 static inline __le16 wil_rx_status_get_buff_id(void *msg) in wil_rx_status_get_buff_id() argument
429 return ((struct wil_rx_status_compressed *)msg)->buff_id; in wil_rx_status_get_buff_id()
432 static inline u8 wil_rx_status_get_data_offset(void *msg) in wil_rx_status_get_data_offset() argument
434 u8 val = WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d1, in wil_rx_status_get_data_offset()
445 void *msg) in wil_rx_status_get_frame_type() argument
450 return WIL_GET_BITS(((struct wil_rx_status_extended *)msg)->ext.d1, in wil_rx_status_get_frame_type()
454 static inline int wil_rx_status_get_fc1(struct wil6210_priv *wil, void *msg) in wil_rx_status_get_fc1() argument
459 return WIL_GET_BITS(((struct wil_rx_status_extended *)msg)->ext.d1, in wil_rx_status_get_fc1()
463 static inline __le16 wil_rx_status_get_seq(struct wil6210_priv *wil, void *msg) in wil_rx_status_get_seq() argument
468 return ((struct wil_rx_status_extended *)msg)->ext.seq_num; in wil_rx_status_get_seq()
471 static inline u8 wil_rx_status_get_retry(void *msg) in wil_rx_status_get_retry() argument
477 static inline int wil_rx_status_get_mid(void *msg) in wil_rx_status_get_mid() argument
479 if (!(((struct wil_rx_status_compressed *)msg)->d0 & in wil_rx_status_get_mid()
483 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_mid()
487 static inline int wil_rx_status_get_error(void *msg) in wil_rx_status_get_error() argument
489 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_error()
493 static inline int wil_rx_status_get_l2_rx_status(void *msg) in wil_rx_status_get_l2_rx_status() argument
495 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_l2_rx_status()
499 static inline int wil_rx_status_get_l3_rx_status(void *msg) in wil_rx_status_get_l3_rx_status() argument
501 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_l3_rx_status()
505 static inline int wil_rx_status_get_l4_rx_status(void *msg) in wil_rx_status_get_l4_rx_status() argument
507 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_l4_rx_status()
525 static inline int wil_rx_status_get_checksum(void *msg, in wil_rx_status_get_checksum() argument
528 int l3_rx_status = wil_rx_status_get_l3_rx_status(msg); in wil_rx_status_get_checksum()
529 int l4_rx_status = wil_rx_status_get_l4_rx_status(msg); in wil_rx_status_get_checksum()
550 static inline int wil_rx_status_get_security(void *msg) in wil_rx_status_get_security() argument
552 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, in wil_rx_status_get_security()
556 static inline u8 wil_rx_status_get_key_id(void *msg) in wil_rx_status_get_key_id() argument
558 return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d1, in wil_rx_status_get_key_id()
562 static inline u8 wil_tx_status_get_mcs(struct wil_ring_tx_status *msg) in wil_tx_status_get_mcs() argument
564 return WIL_GET_BITS(msg->d2, 0, 4); in wil_tx_status_get_mcs()