Searched refs:ch_id (Results 1 – 7 of 7) sorted by relevance
/freebsd/sys/contrib/dev/iwlwifi/ |
H A D | iwl-phy-db.c | 219 static int is_valid_channel(u16 ch_id) in is_valid_channel() argument 221 if (ch_id <= 14 || in is_valid_channel() 222 (36 <= ch_id && ch_id <= 64 && ch_id % 4 == 0) || in is_valid_channel() 223 (100 <= ch_id && ch_id <= 140 && ch_id % 4 == 0) || in is_valid_channel() 224 (145 <= ch_id && ch_id <= 165 && ch_id % 4 == 1)) in is_valid_channel() 229 static u8 ch_id_to_ch_index(u16 ch_id) in ch_id_to_ch_index() argument 231 if (WARN_ON(!is_valid_channel(ch_id))) in ch_id_to_ch_index() 234 if (ch_id <= 14) in ch_id_to_ch_index() 235 return ch_id - 1; in ch_id_to_ch_index() 236 if (ch_id <= 64) in ch_id_to_ch_index() [all …]
|
/freebsd/sys/dev/iwm/ |
H A D | if_iwm_phy_db.c | 342 is_valid_channel(uint16_t ch_id) in is_valid_channel() argument 344 if (ch_id <= 14 || in is_valid_channel() 345 (36 <= ch_id && ch_id <= 64 && ch_id % 4 == 0) || in is_valid_channel() 346 (100 <= ch_id && ch_id <= 140 && ch_id % 4 == 0) || in is_valid_channel() 347 (145 <= ch_id && ch_id <= 165 && ch_id % 4 == 1)) in is_valid_channel() 353 ch_id_to_ch_index(uint16_t ch_id) in ch_id_to_ch_index() argument 355 if (!is_valid_channel(ch_id)) in ch_id_to_ch_index() 358 if (ch_id <= 14) in ch_id_to_ch_index() 359 return ch_id - 1; in ch_id_to_ch_index() 360 if (ch_id <= 64) in ch_id_to_ch_index() [all …]
|
/freebsd/sys/dev/hyperv/vmbus/ |
H A D | vmbus_chan.c | 253 uint32_t ch_id; in vmbus_chan_sysctl_create() local 278 ch_id = chan->ch_id; in vmbus_chan_sysctl_create() 280 ch_id = chan->ch_prichan->ch_id; in vmbus_chan_sysctl_create() 281 snprintf(name, sizeof(name), "%d", ch_id); in vmbus_chan_sysctl_create() 309 "chanid", CTLFLAG_RD, &chan->ch_id, 0, "channel id"); in vmbus_chan_sysctl_create() 367 "leak %d bytes memory\n", chan->ch_id, in vmbus_chan_open() 392 "invalid udata len %d for chan%u\n", udlen, chan->ch_id); in vmbus_chan_open_br() 413 panic("double-open chan%u", chan->ch_id); in vmbus_chan_open_br() [all...] |
H A D | vmbus_chanvar.h | 100 uint32_t ch_id; /* channel id */ member
|
H A D | vmbus.c | 1021 chan->ch_id); in vmbus_add_child()
|
/freebsd/sys/contrib/dev/iwlwifi/mvm/ |
H A D | scan.c | 1534 u8 ch_id, u8 band, u8 *ch_bitmap, in iwl_mvm_scan_ch_add_n_aps_override() 1543 if (p2p_go_friendly_chs[i] == ch_id) { in iwl_mvm_scan_ch_add_n_aps_override() 1546 ch_idx = iwl_mvm_scan_ch_and_band_to_idx(ch_id, band); in iwl_mvm_scan_ch_add_n_aps_override() 1562 static u32 iwl_mvm_scan_ch_n_aps_flag(enum nl80211_iftype vif_type, u8 ch_id) in iwl_mvm_scan_ch_n_aps_flag() 1571 if (p2p_go_friendly_chs[i] == ch_id) { in iwl_mvm_scan_ch_n_aps_flag() 1581 if (social_chs[i] == ch_id) { in iwl_mvm_umac_scan_cfg_channels() 1522 iwl_mvm_scan_ch_add_n_aps_override(enum nl80211_iftype vif_type,u8 ch_id,u8 band,u8 * ch_bitmap,size_t bitmap_n_entries) iwl_mvm_scan_ch_add_n_aps_override() argument 1550 iwl_mvm_scan_ch_n_aps_flag(enum nl80211_iftype vif_type,u8 ch_id) iwl_mvm_scan_ch_n_aps_flag() argument
|
/freebsd/sys/dev/hyperv/storvsc/ |
H A D | hv_storvsc_drv_freebsd.c | 1027 uint32_t ch_id; in storvsc_sysctl() local 1029 ch_id = vmbus_chan_id(sc->hs_sel_chan[i]); in storvsc_sysctl() 1030 snprintf(name, sizeof(name), "%d", ch_id); in storvsc_sysctl()
|