Lines Matching refs:cpu_to_le16
254 return (fc & cpu_to_le16(IEEE80211_FCTL_TODS)) != 0; in ieee80211_has_tods()
263 return (fc & cpu_to_le16(IEEE80211_FCTL_FROMDS)) != 0; in ieee80211_has_fromds()
272 __le16 tmp = cpu_to_le16(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS); in ieee80211_has_a4()
282 return (fc & cpu_to_le16(IEEE80211_FCTL_MOREFRAGS)) != 0; in ieee80211_has_morefrags()
291 return (fc & cpu_to_le16(IEEE80211_FCTL_RETRY)) != 0; in ieee80211_has_retry()
300 return (fc & cpu_to_le16(IEEE80211_FCTL_PM)) != 0; in ieee80211_has_pm()
309 return (fc & cpu_to_le16(IEEE80211_FCTL_MOREDATA)) != 0; in ieee80211_has_moredata()
318 return (fc & cpu_to_le16(IEEE80211_FCTL_PROTECTED)) != 0; in ieee80211_has_protected()
327 return (fc & cpu_to_le16(IEEE80211_FCTL_ORDER)) != 0; in ieee80211_has_order()
336 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE)) == in ieee80211_is_mgmt()
337 cpu_to_le16(IEEE80211_FTYPE_MGMT); in ieee80211_is_mgmt()
346 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE)) == in ieee80211_is_ctl()
347 cpu_to_le16(IEEE80211_FTYPE_CTL); in ieee80211_is_ctl()
356 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE)) == in ieee80211_is_data()
357 cpu_to_le16(IEEE80211_FTYPE_DATA); in ieee80211_is_data()
370 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_STYPE_QOS_DATA)) == in ieee80211_is_data_qos()
371 cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_QOS_DATA); in ieee80211_is_data_qos()
384 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | 0x40)) == in ieee80211_is_data_present()
385 cpu_to_le16(IEEE80211_FTYPE_DATA); in ieee80211_is_data_present()
394 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_assoc_req()
395 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_ASSOC_REQ); in ieee80211_is_assoc_req()
404 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_assoc_resp()
405 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_ASSOC_RESP); in ieee80211_is_assoc_resp()
414 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_reassoc_req()
415 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_REASSOC_REQ); in ieee80211_is_reassoc_req()
424 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_reassoc_resp()
425 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_REASSOC_RESP); in ieee80211_is_reassoc_resp()
434 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_probe_req()
435 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_PROBE_REQ); in ieee80211_is_probe_req()
444 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_probe_resp()
445 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_PROBE_RESP); in ieee80211_is_probe_resp()
454 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_beacon()
455 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_BEACON); in ieee80211_is_beacon()
464 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_atim()
465 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_ATIM); in ieee80211_is_atim()
474 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_disassoc()
475 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_DISASSOC); in ieee80211_is_disassoc()
484 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_auth()
485 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_AUTH); in ieee80211_is_auth()
494 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_deauth()
495 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_DEAUTH); in ieee80211_is_deauth()
504 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_action()
505 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_ACTION); in ieee80211_is_action()
514 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_back_req()
515 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_BACK_REQ); in ieee80211_is_back_req()
524 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_back()
525 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_BACK); in ieee80211_is_back()
534 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_pspoll()
535 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_PSPOLL); in ieee80211_is_pspoll()
544 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_rts()
545 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_RTS); in ieee80211_is_rts()
554 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_cts()
555 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_CTS); in ieee80211_is_cts()
564 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_ack()
565 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_ACK); in ieee80211_is_ack()
574 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_cfend()
575 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_CFEND); in ieee80211_is_cfend()
584 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_cfendack()
585 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_CFENDACK); in ieee80211_is_cfendack()
594 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_nullfunc()
595 cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_NULLFUNC); in ieee80211_is_nullfunc()
604 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == in ieee80211_is_qos_nullfunc()
605 cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_QOS_NULLFUNC); in ieee80211_is_qos_nullfunc()
628 return (seq_ctrl & cpu_to_le16(IEEE80211_SCTL_FRAG)) == 0; in ieee80211_is_first_frag()