Home
last modified time | relevance | path

Searched refs:chnl (Results 1 – 9 of 9) sorted by relevance

/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-scd.h52 static inline unsigned int SCD_QUEUE_WRPTR(unsigned int chnl) in SCD_QUEUE_WRPTR() argument
54 if (chnl < 20) in SCD_QUEUE_WRPTR()
55 return SCD_BASE + 0x18 + chnl * 4; in SCD_QUEUE_WRPTR()
56 WARN_ON_ONCE(chnl >= 32); in SCD_QUEUE_WRPTR()
57 return SCD_BASE + 0x284 + (chnl - 20) * 4; in SCD_QUEUE_WRPTR()
60 static inline unsigned int SCD_QUEUE_RDPTR(unsigned int chnl) in SCD_QUEUE_RDPTR() argument
62 if (chnl < 20) in SCD_QUEUE_RDPTR()
63 return SCD_BASE + 0x68 + chnl * 4; in SCD_QUEUE_RDPTR()
64 WARN_ON_ONCE(chnl >= 32); in SCD_QUEUE_RDPTR()
65 return SCD_BASE + 0x2B4 + chnl * 4; in SCD_QUEUE_RDPTR()
[all …]
H A Diwl-fh.h72 unsigned int chnl) in FH_MEM_CBBC_QUEUE() argument
75 WARN_ON_ONCE(chnl >= 64); in FH_MEM_CBBC_QUEUE()
76 return TFH_TFDQ_CBB_TABLE + 8 * chnl; in FH_MEM_CBBC_QUEUE()
78 if (chnl < 16) in FH_MEM_CBBC_QUEUE()
79 return FH_MEM_CBBC_0_15_LOWER_BOUND + 4 * chnl; in FH_MEM_CBBC_QUEUE()
80 if (chnl < 20) in FH_MEM_CBBC_QUEUE()
81 return FH_MEM_CBBC_16_19_LOWER_BOUND + 4 * (chnl - 16); in FH_MEM_CBBC_QUEUE()
82 WARN_ON_ONCE(chnl >= 32); in FH_MEM_CBBC_QUEUE()
83 return FH_MEM_CBBC_20_31_LOWER_BOUND + 4 * (chnl - 20); in FH_MEM_CBBC_QUEUE()
451 * FH_TCSR_CHNL_TX_CONFIG_REG(chnl) wit
[all...]
/freebsd/sys/dev/iwm/
H A Dif_iwmreg.h1402 static inline unsigned int IWM_SCD_QUEUE_WRPTR(unsigned int chnl) in IWM_SCD_QUEUE_WRPTR() argument
1404 if (chnl < 20) in IWM_SCD_QUEUE_WRPTR()
1405 return IWM_SCD_BASE + 0x18 + chnl * 4; in IWM_SCD_QUEUE_WRPTR()
1406 return IWM_SCD_BASE + 0x284 + (chnl - 20) * 4; in IWM_SCD_QUEUE_WRPTR()
1409 static inline unsigned int IWM_SCD_QUEUE_RDPTR(unsigned int chnl) in IWM_SCD_QUEUE_RDPTR() argument
1411 if (chnl < 20) in IWM_SCD_QUEUE_RDPTR()
1412 return IWM_SCD_BASE + 0x68 + chnl * 4; in IWM_SCD_QUEUE_RDPTR()
1413 return IWM_SCD_BASE + 0x2B4 + chnl * 4; in IWM_SCD_QUEUE_RDPTR()
1416 static inline unsigned int IWM_SCD_QUEUE_STATUS_BITS(unsigned int chnl) in IWM_SCD_QUEUE_STATUS_BITS() argument
1418 if (chnl < 2 in IWM_SCD_QUEUE_STATUS_BITS()
1490 IWM_FH_MEM_CBBC_QUEUE(unsigned int chnl) IWM_FH_MEM_CBBC_QUEUE() argument
[all...]
H A Dif_iwm.c1297 int chnl, qid; in iwm_stop_device() local
1325 for (chnl = 0; chnl < IWM_FH_TCSR_CHNL_NUM; chnl++) { in iwm_stop_device()
1327 IWM_FH_TCSR_CHNL_TX_CONFIG_REG(chnl), 0); in iwm_stop_device()
1328 mask |= IWM_FH_TSSR_TX_STATUS_REG_MSK_CHNL_IDLE(chnl); in iwm_stop_device()
1716 int error, chnl; in iwm_trans_pcie_fw_alive() local
1764 for (chnl = 0; chnl < IWM_FH_TCSR_CHNL_NUM; chnl++) { in iwm_trans_pcie_fw_alive()
1765 IWM_WRITE(sc, IWM_FH_TCSR_CHNL_TX_CONFIG_REG(chnl), in iwm_trans_pcie_fw_alive()
/freebsd/sys/dev/wpi/
H A Dif_wpi.c5244 uint8_t chnl; in wpi_hw_init() local
5316 for (chnl = 0; chnl < WPI_NDMACHNLS; chnl++) { in wpi_hw_init()
5317 WPI_WRITE(sc, WPI_FH_CBBC_CTRL(chnl), 0); in wpi_hw_init()
5318 WPI_WRITE(sc, WPI_FH_CBBC_BASE(chnl), 0); in wpi_hw_init()
5319 WPI_WRITE(sc, WPI_FH_TX_CONFIG(chnl), 0x80200008); in wpi_hw_init()
5360 uint8_t chnl, qid; in wpi_hw_stop() local
5384 for (chnl = 0; chnl < WPI_NDMACHNLS; chnl++) { in wpi_hw_stop()
5385 WPI_WRITE(sc, WPI_FH_TX_CONFIG(chnl), 0); in wpi_hw_stop()
5388 WPI_FH_TX_STATUS_IDLE(chnl)) in wpi_hw_stop()
/freebsd/sys/dev/iwn/
H A Dif_iwnreg.h322 #define IWN_FH_TX_STATUS_IDLE(chnl) (1 << ((chnl) + 16)) argument
H A Dif_iwn.c8737 int error, chnl, qid; in iwn_hw_init() local
8801 for (chnl = 0; chnl < sc->ndmachnls; chnl++) { in iwn_hw_init()
8802 IWN_WRITE(sc, IWN_FH_TX_CONFIG(chnl), in iwn_hw_init()
8849 int chnl, qid, ntries; in iwn_hw_stop() local
8869 for (chnl = 0; chnl < sc->ndmachnls; chnl++) { in iwn_hw_stop()
8870 IWN_WRITE(sc, IWN_FH_TX_CONFIG(chnl), 0); in iwn_hw_stop()
8873 IWN_FH_TX_STATUS_IDLE(chnl)) in iwn_hw_stop()
/freebsd/contrib/wpa/wpa_supplicant/
H A Dctrl_iface.c4659 struct hostapd_channel_data *chnl; in ctrl_iface_get_capability_channels() local
4687 chnl = wpa_s->hw.modes[j].channels; in ctrl_iface_get_capability_channels()
4689 if (chnl[i].flag & HOSTAPD_CHAN_DISABLED) in ctrl_iface_get_capability_channels()
4691 ret = os_snprintf(pos, end - pos, " %d", chnl[i].chan); in ctrl_iface_get_capability_channels()
4709 struct hostapd_channel_data *chnl; in ctrl_iface_get_capability_freq() local
4738 chnl = wpa_s->hw.modes[j].channels; in ctrl_iface_get_capability_freq()
4740 if (chnl[i].flag & HOSTAPD_CHAN_DISABLED) in ctrl_iface_get_capability_freq()
4743 chnl[i].chan, chnl[i].freq, in ctrl_iface_get_capability_freq()
4744 chnl[i].flag & HOSTAPD_CHAN_NO_IR ? in ctrl_iface_get_capability_freq()
4746 chnl[i].flag & HOSTAPD_CHAN_RADAR ? in ctrl_iface_get_capability_freq()
H A Dwpa_supplicant.c9508 struct hostapd_channel_data *chnl; in wpas_is_6ghz_supported() local
9513 chnl = wpa_s->hw.modes[i].channels; in wpas_is_6ghz_supported()
9516 (chnl[j].flag & HOSTAPD_CHAN_DISABLED)) in wpas_is_6ghz_supported()
9518 if (is_6ghz_freq(chnl[j].freq)) in wpas_is_6ghz_supported()