/freebsd-11-stable/contrib/wpa/wpa_supplicant/ |
H A D | p2p_supplicant.c | 3335 static void wpas_p2p_add_chan(struct p2p_reg_class *reg, u8 chan) argument 3337 reg->channel[reg->channels] = chan; 3343 struct p2p_channels *chan, 3356 chan->reg_class[cla].reg_class = 81; 3357 chan->reg_class[cla].channels = 0; 3360 wpas_p2p_add_chan(&chan->reg_class[cla], i + 1); 3362 if (chan->reg_class[cla].channels) 3369 chan->reg_class[cla].reg_class = 115; 3370 chan->reg_class[cla].channels = 0; 3372 wpas_p2p_add_chan(&chan 3342 wpas_p2p_default_channels(struct wpa_supplicant *wpa_s, struct p2p_channels *chan, struct p2p_channels *cli_chan) argument 3404 has_channel(struct wpa_global *global, struct hostapd_hw_modes *mode, u8 chan, int *flags) argument 3593 wpas_p2p_setup_channels(struct wpa_supplicant *wpa_s, struct p2p_channels *chan, struct p2p_channels *cli_chan) argument 6165 u8 chan; local 6192 u8 chan; local 7764 struct p2p_channels chan, cli_chan; local 9068 u8 curr_chan, cand, chan; local 9164 u8 chan, opclass; local 9364 u8 chan; local [all...] |
H A D | rrm.c | 469 static int wpas_add_channel(u8 op_class, u8 chan, u8 num_primary_channels, argument 475 u8 primary_chan = chan - (2 * num_primary_channels - 2) + i * 4; 487 chan); 524 u8 chan = channels ? channels[i] : op->min_chan + i * op->inc; local 525 enum chan_allowed res = verify_channel(mode, chan, op->bw); 530 if (wpas_add_channel(op->op_class, chan, num_primary_channels, 633 u8 op_class, u8 chan, int active, 660 switch (chan) { 670 freqs = wpas_add_channels(op, mode, active, &chan, 1); 689 u8 *op_class, u8 *chan, u 632 wpas_beacon_request_freqs(struct wpa_supplicant *wpa_s, u8 op_class, u8 chan, int active, const u8 *subelems, size_t len) argument 688 wpas_get_op_chan_phy(int freq, const u8 *ies, size_t ies_len, u8 *op_class, u8 *chan, u8 *phy_type) argument [all...] |
H A D | wnm_sta.c | 514 static int wnm_nei_get_chan(struct wpa_supplicant *wpa_s, u8 op_class, u8 chan) argument 527 freq = ieee80211_chan_to_freq(country, op_class, chan); 534 if (chan >= 1 && chan <= 13) 535 freq = 2407 + chan * 5; 536 else if (chan == 14) 538 else if (chan >= 36 && chan <= 169) 539 freq = 5000 + chan * 5; 870 u32 bss_info, u8 op_class, u8 chan, u 869 wnm_add_nei_rep(struct wpabuf **buf, const u8 *bssid, u32 bss_info, u8 op_class, u8 chan, u8 phy_type, u8 pref) argument 906 u8 op_class, chan; local 1231 struct hostapd_channel_data *chan; local [all...] |
H A D | wpa_supplicant.c | 2227 if (pri_chan->chan == channel) 2238 freq->channel = pri_chan->chan; 2259 if (sec_chan->chan == channel + ht40 * 4) 2289 res = check_40mhz_5g(mode, scan_res, pri_chan->chan, 2290 sec_chan->chan); 2301 freq->freq = hw_get_freq(mode, sec_chan->chan); 2303 freq->channel = sec_chan->chan; 2352 struct hostapd_channel_data *chan; local 2354 chan = hw_get_channel_chan(mode, i, NULL); 2355 if (!chan) 2374 struct hostapd_channel_data *chan; local [all...] |
H A D | wpa_supplicant_i.h | 1141 u8 chan; member in struct:wpa_supplicant::wpa_mbo_non_pref_channel
|
H A D | wps_supplicant.c | 2392 u16 chan = WPA_GET_BE16(attr->ap_channel); local 2395 if (chan >= 1 && chan <= 13) 2396 freq = 2407 + 5 * chan; 2397 else if (chan == 14) 2399 else if (chan >= 30) 2400 freq = 5000 + 5 * chan; 2404 chan, freq); 2669 u16 chan = WPA_GET_BE16(attr.ap_channel); local 2671 wpa_printf(MSG_DEBUG, "WPS: AP Channel: %d", chan); [all...] |
/freebsd-11-stable/sbin/ifconfig/ |
H A D | ifieee80211.c | 309 mapfreq(struct ieee80211_channel *chan, int freq, int flags) argument 321 *chan = *c; 329 mapchan(struct ieee80211_channel *chan, int ieee, int flags) argument 341 *chan = *c; 544 struct ieee80211_channel chan; local 545 mapfreq(&chan, freq, flags); 546 return chan.ic_ieee; 710 struct ieee80211_channel chan; local 716 mapfreq(&chan, freq, 0); 718 mapchan(&chan, fre 727 getchannel(int s, struct ieee80211_channel *chan, const char *val) argument 756 struct ieee80211_channel chan; local [all...] |
/freebsd-11-stable/sys/cam/ |
H A D | cam_periph.h | 221 #define cam_periph_sleep(periph, chan, priority, wmesg, timo) \ 222 xpt_path_sleep((periph)->path, (chan), (priority), (wmesg), (timo))
|
H A D | cam_xpt.h | 128 #define xpt_path_sleep(path, chan, priority, wmesg, timo) \ 129 msleep((chan), xpt_path_mtx(path), (priority), (wmesg), (timo))
|
/freebsd-11-stable/sys/dev/an/ |
H A D | if_an.c | 1628 an_seek(struct an_softc *sc, int id, int off, int chan) argument 1633 switch (chan) { 1643 if_printf(sc->an_ifp, "invalid data path: %x\n", chan);
|
/freebsd-11-stable/sys/dev/ath/ath_hal/ |
H A D | ah_internal.h | 408 HAL_CHANNEL_INTERNAL ah_channels[AH_MAXCHAN]; /* private chan state */ 687 const struct ieee80211_channel *chan, u_int twiceGain); 1006 const HAL_CHANNEL_INTERNAL *ichan, const struct ieee80211_channel *chan) 1010 if (! chan) { 1011 ath_hal_printf(ah, "%s: called with chan=NULL!\n", __func__); 1014 return (chan->ic_maxpower); 1022 const struct ieee80211_channel *chan) 1025 if (! chan) 1028 return (chan->ic_maxantgain); 1005 ath_hal_get_twice_max_regpower(struct ath_hal_private *ahp, const HAL_CHANNEL_INTERNAL *ichan, const struct ieee80211_channel *chan) argument 1021 ath_hal_getantennaallowed(struct ath_hal *ah, const struct ieee80211_channel *chan) argument
|
/freebsd-11-stable/sys/dev/bwn/ |
H A D | if_bwn.c | 1796 int chan, error; local 1805 chan = ieee80211_chan2ieee(ic, ic->ic_curchan); 1806 if (chan != phy->chan) 1807 bwn_switch_channel(mac, chan); 3522 mac->mac_phy.chan = mac->mac_phy.get_default_chan(mac); 4339 bwn_switch_channel(struct bwn_mac *mac, int chan) argument 4347 if (chan == 0xffff) 4348 chan = phy->get_default_chan(mac); 4350 channelcookie = chan; 4621 bwn_switch_band(struct bwn_softc *sc, struct ieee80211_channel *chan) argument [all...] |
H A D | if_bwnvar.h | 488 unsigned int chan; member in struct:bwn_phy 523 uint8_t chan[BWN_MAX_CHAN_PER_BAND]; member in struct:bwn_chan_band 765 uint8_t chan; member in struct:bwn_txhdr 1097 bwn_get_chan_centre_freq(struct bwn_mac *mac, struct ieee80211_channel *chan) argument 1101 return chan->ic_freq;
|
/freebsd-11-stable/sys/dev/ctau/ |
H A D | if_ct.c | 76 #define CT_DEBUG(d,s) ({if (d->chan->debug) {\ 78 #define CT_DEBUG2(d,s) ({if (d->chan->debug>1) {\ 111 ct_chan_t *chan; member in struct:_drv_t 218 if (d->chan->mode != M_G703) 222 ct_g703_timer (d->chan); 234 bdrv_t *bd = ((drv_t *)b->chan->sys)->bd; 268 for (i = 0; i < NCHAN && b->chan[i].type; i++) { 269 drv_t *d = b->chan[i].sys; 677 for (c = b->chan; c < b->chan [all...] |
/freebsd-11-stable/sys/dev/cx/ |
H A D | if_cx.c | 80 #define CX_DEBUG(d,s) ({if (d->chan->debug) {\ 82 #define CX_DEBUG2(d,s) ({if (d->chan->debug>1) {\ 131 cx_chan_t *chan; member in struct:_drv_t 356 for (i = 0; i < NCHAN && b->chan[i].type; i++) { 357 drv_t *d = b->chan[i].sys; 777 for (c=b->chan; c<b->chan+NCHAN; ++c) { 785 d->chan = c; 890 for (c = b->chan; c < b->chan [all...] |
/freebsd-11-stable/sys/dev/cxgbe/common/ |
H A D | t4_hw.c | 8646 int chan = G_FW_PORT_CMD_PORTID(be32_to_cpu(p->op_to_portid)); local 8652 if (pi->tx_chan == chan) 9299 int chan; local 9307 /* MODQ_REQ_MAP defaults to setting queues 0-3 to chan 0-3 */ 9308 for (chan = 0; chan < MAX_NCHAN; chan++) 9309 tpp->tx_modq[chan] = chan;
|
H A D | t4_msg.h | 2645 __u8 chan; member in struct:cpl_set_le_rpl
|
/freebsd-11-stable/sys/dev/hyperv/netvsc/ |
H A D | if_hn.c | 2841 struct vmbus_channel *chan, const void *data __unused, int dlen __unused) 2847 KASSERT(txr->hn_chan == chan, 2848 ("channel mismatch, on chan%u, should be chan%u", 2849 vmbus_chan_id(chan), vmbus_chan_id(txr->hn_chan))); 4412 hn_chan_polling(struct vmbus_channel *chan, u_int pollhz) argument 4415 vmbus_chan_poll_disable(chan); 4417 vmbus_chan_poll_enable(chan, pollhz); 6158 hn_chan_attach(struct hn_softc *sc, struct vmbus_channel *chan) argument 6165 idx = vmbus_chan_subidx(chan); 2840 hn_txpkt_done(struct hn_nvs_sendctx *sndc, struct hn_softc *sc, struct vmbus_channel *chan, const void *data __unused, int dlen __unused) argument 6222 hn_chan_detach(struct hn_softc *sc, struct vmbus_channel *chan) argument 6664 hn_chan_drain(struct hn_softc *sc, struct vmbus_channel *chan) argument 7279 hn_nvs_handle_comp(struct hn_softc *sc, struct vmbus_channel *chan, const struct vmbus_chanpkt_hdr *pkt) argument 7295 hn_nvs_handle_rxbuf(struct hn_rx_ring *rxr, struct vmbus_channel *chan, const struct vmbus_chanpkt_hdr *pkthdr) argument 7357 hn_nvs_ack_rxbuf(struct hn_rx_ring *rxr, struct vmbus_channel *chan, uint64_t tid) argument 7391 hn_chan_callback(struct vmbus_channel *chan, void *xrxr) argument [all...] |
/freebsd-11-stable/sys/dev/hyperv/storvsc/ |
H A D | hv_storvsc_drv_freebsd.c | 334 static void hv_storvsc_on_channel_callback(struct vmbus_channel *chan, void *xsc); 570 support_multichannel ? ", multi-chan capable" : "");
|
/freebsd-11-stable/sys/dev/if_ndis/ |
H A D | if_ndis.c | 527 return (IEEE80211_CHAN_B); /* Default to 11B chan */ 2444 int chan, chanflag; local 2446 chan = ieee80211_chan2ieee(ic, ic->ic_bsschan); 2449 if (chan != ieee80211_mhz2ieee(config.nc_dsconfig / 1000, 0)) { 3318 sp.chan = sp.bchan = ieee80211_mhz2ieee(freq, chanflag); 3337 DPRINTF(("scan: bssid %s chan %dMHz (%d/%d) rssi %d\n",
|
/freebsd-11-stable/sys/dev/ipw/ |
H A D | if_ipw.c | 1098 ipw_setcurchan(struct ipw_softc *sc, struct ieee80211_channel *chan) argument 1102 ic->ic_curchan = chan; 2146 ipw_setchannel(struct ipw_softc *sc, struct ieee80211_channel *chan) argument 2152 data = htole32(ieee80211_chan2ieee(ic, chan)); 2156 ipw_setcurchan(sc, chan);
|
/freebsd-11-stable/sys/dev/isp/ |
H A D | isp.c | 147 isp_change_fw_state(ispsoftc_t *isp, int chan, int state) argument 149 fcparam *fcp = FCPARAM(isp, chan); 154 "Chan %d Firmware state <%s->%s>", chan, 1521 isp_scsi_channel_init(ispsoftc_t *isp, int chan) argument 1527 sdp = SDPARAM(isp, chan); 1533 mbs.param[1] = (chan << 7) | sdp->isp_initiator_id; 1539 chan, sdp->isp_initiator_id); 1576 mbs.param[1] = (chan << 15) | (tgt << 8); 1586 chan, tgt, mbs.param[2], mbs.param[3] >> 8, mbs.param[3] & 0xff); 1591 mbs.param[1] = (tgt << 8) | (chan << 1 1968 int chan; local 2333 isp_fc_enable_vp(ispsoftc_t *isp, int chan) argument 2402 isp_fc_disable_vp(ispsoftc_t *isp, int chan) argument 2464 isp_fc_change_role(ispsoftc_t *isp, int chan, int new_role) argument 2494 isp_clear_portdb(ispsoftc_t *isp, int chan) argument 2522 isp_mark_portdb(ispsoftc_t *isp, int chan) argument 2544 isp_plogx(ispsoftc_t *isp, int chan, uint16_t handle, uint32_t portid, int flags) argument 2759 isp_getpdb(ispsoftc_t *isp, int chan, uint16_t id, isp_pdb_t *pdb) argument 2821 isp_gethandles(ispsoftc_t *isp, int chan, uint16_t *handles, int *num, int loop) argument 2888 isp_dump_chip_portdb(ispsoftc_t *isp, int chan) argument 2912 isp_get_wwn(ispsoftc_t *isp, int chan, int nphdl, int nodename) argument 2965 isp_fclink_test(ispsoftc_t *isp, int chan, int usdelay) argument 3153 isp_pdb_sync(ispsoftc_t *isp, int chan) argument 3227 isp_pdb_add_update(ispsoftc_t *isp, int chan, isp_pdb_t *pdb) argument 3299 isp_fix_portids(ispsoftc_t *isp, int chan) argument 3339 isp_scan_loop(ispsoftc_t *isp, int chan) argument 3438 isp_ct_sns(ispsoftc_t *isp, int chan, uint32_t cmd_bcnt, uint32_t rsp_bcnt) argument 3469 isp_ct_passthru(ispsoftc_t *isp, int chan, uint32_t cmd_bcnt, uint32_t rsp_bcnt) argument 3558 isp_gid_pt(ispsoftc_t *isp, int chan) argument 3619 isp_gff_id(ispsoftc_t *isp, int chan, uint32_t portid) argument 3679 isp_gft_id(ispsoftc_t *isp, int chan, uint32_t portid) argument 3753 isp_scan_fabric(ispsoftc_t *isp, int chan) argument 3993 isp_login_device(ispsoftc_t *isp, int chan, uint32_t portid, isp_pdb_t *p, uint16_t *ohp) argument 4078 isp_send_change_request(ispsoftc_t *isp, int chan) argument 4096 isp_register_fc4_type(ispsoftc_t *isp, int chan) argument 4164 isp_register_fc4_features_24xx(ispsoftc_t *isp, int chan) argument 4222 isp_register_port_name_24xx(ispsoftc_t *isp, int chan) argument 4286 isp_register_node_name_24xx(ispsoftc_t *isp, int chan) argument 4345 int i, chan, wrap; local 4695 int chan, tgt; local 5440 uint16_t chan = 0; local 5605 uint16_t chan; local 5952 int chan, c; local 6113 int chan; local 6362 int chan = XS_CHANNEL(xs); local 7201 isp_fw_state(ispsoftc_t *isp, int chan) argument 7216 isp_spi_update(ispsoftc_t *isp, int chan) argument 7467 isp_setdfltfcparm(ispsoftc_t *isp, int chan) argument [all...] |
H A D | isp_freebsd.c | 54 static void isp_loop_changed(ispsoftc_t *isp, int chan); 76 int chan = arg2; local 79 value = FCPARAM(isp, chan)->role; 89 old = FCPARAM(isp, chan)->role; 101 error = isp_control(isp, ISPCTL_CHANGE_ROLE, chan, value); 107 isp_attach_chan(ispsoftc_t *isp, struct cam_devq *devq, int chan) argument 123 if (xpt_bus_register(sim, isp->isp_dev, chan) != CAM_SUCCESS) { 147 struct isp_spi *spi = ISP_SPI_PC(isp, chan); 162 fcparam *fcp = FCPARAM(isp, chan); 163 struct isp_fc *fc = ISP_FC_PC(isp, chan); 252 isp_detach_chan(ispsoftc_t *isp, int chan) argument 284 int chan; local 331 int chan; local 349 isp_freeze_loopdown(ispsoftc_t *isp, int chan) argument 369 isp_unfreeze_loopdown(ispsoftc_t *isp, int chan) argument 389 int nr, chan, retval = ENOTTY; local 504 int chan = hba->fc_channel; local 857 isp_get_atpd(ispsoftc_t *isp, int chan, uint32_t tag) argument 875 isp_find_atpd(ispsoftc_t *isp, int chan, uint32_t tag) argument 889 isp_put_atpd(ispsoftc_t *isp, int chan, atio_private_data_t *atp) argument 903 isp_dump_atpd(ispsoftc_t *isp, int chan) argument 918 isp_get_ntpd(ispsoftc_t *isp, int chan) argument 931 isp_find_ntpd(ispsoftc_t *isp, int chan, uint32_t tag_id, uint32_t seq_id) argument 945 isp_put_ntpd(ispsoftc_t *isp, int chan, inot_private_data_t *ntp) argument 1781 uint16_t chan, nphdl = NIL_HANDLE; local 2444 isp_target_mark_aborted_early(ispsoftc_t *isp, int chan, tstate_t *tptr, uint32_t tag_id) argument 2594 isp_make_here(ispsoftc_t *isp, fcportdb_t *fcp, int chan, int tgt) argument 2617 isp_make_gone(ispsoftc_t *isp, fcportdb_t *fcp, int chan, int tgt) argument 2650 int chan = fc - isp->isp_osinfo.pc.fc; local 2707 isp_loop_changed(ispsoftc_t *isp, int chan) argument 2722 isp_loop_up(ispsoftc_t *isp, int chan) argument 2733 isp_loop_dead(ispsoftc_t *isp, int chan) argument 2815 int chan = fc - isp->isp_osinfo.pc.fc; local 4013 isp_default_wwn(ispsoftc_t * isp, int chan, int isactive, int iswwnn) argument 4165 isp_fc_scratch_acquire(ispsoftc_t *isp, int chan) argument 4231 isp_fcp_reset_crn(ispsoftc_t *isp, int chan, uint32_t tgt, int tgt_set) argument 4256 uint32_t chan, tgt; local [all...] |
H A D | isp_pci.c | 478 isp_get_specific_options(device_t dev, int chan, ispsoftc_t *isp) argument 484 if (chan == 0) 487 snprintf(prefix, sizeof(prefix), "chan%d.", chan); 492 ISP_FC_PC(isp, chan)->default_id = 109 - chan; 495 ISP_SPI_PC(isp, chan)->iid = OF_getscsinitid(dev); 497 ISP_SPI_PC(isp, chan)->iid = 7; 502 ISP_FC_PC(isp, chan)->default_id = tval - chan; [all...] |
H A D | ispmbox.h | 915 #define ISP_FCTAPE_ENABLED(isp, chan) \ 916 (IS_24XX(isp)? (FCPARAM(isp, chan)->isp_xfwoptions & ICB2400_OPT2_FCTAPE) != 0 : (FCPARAM(isp, chan)->isp_xfwoptions & ICBXOPT_FCTAPE) != 0) 1213 #define ICB2400_VPINFO_PORT_OFF(chan) \ 1215 sizeof (isp_icb_2400_vpinfo_t) + ((chan) * ICB2400_VPOPT_WRITE_SIZE))
|