/freebsd/usr.sbin/bluetooth/btpand/ |
H A D | channel.c | 61 channel_t *chan; in channel_alloc() local 63 chan = malloc(sizeof(channel_t)); in channel_alloc() 64 if (chan == NULL) { in channel_alloc() 69 memset(chan, 0, sizeof(channel_t)); in channel_alloc() 70 STAILQ_INIT(&chan->pktlist); in channel_alloc() 71 chan->state = CHANNEL_CLOSED; in channel_alloc() 72 LIST_INSERT_HEAD(&channel_list, chan, next); in channel_alloc() 76 return chan; in channel_alloc() 80 channel_open(channel_t *chan, int fd) in channel_open() argument 84 assert(chan->refcnt == 0); in channel_open() [all …]
|
H A D | bnep.c | 114 len = bnep_recv_control(pkt->chan, pkt->ptr, pkt->len, false); in bnep_recv() 127 pkt->dst = pkt->chan->laddr; in bnep_recv() 128 pkt->src = pkt->chan->raddr; in bnep_recv() 139 pkt->dst = pkt->chan->laddr; in bnep_recv() 154 pkt->src = pkt->chan->raddr; in bnep_recv() 174 || pkt->chan->state != CHANNEL_OPEN) in bnep_recv() 199 len = bnep_recv_control(pkt->chan, pkt->ptr + 2, size, true); in bnep_recv_extension() 230 bnep_recv_control(channel_t *chan, uint8_t *ptr, size_t size, bool isext) in bnep_recv_control() argument 242 len = bnep_recv_control_command_not_understood(chan, ptr, size); in bnep_recv_control() 249 len = bnep_recv_setup_connection_req(chan, ptr, size); in bnep_recv_control() [all …]
|
H A D | tap.c | 56 channel_t *chan; in tap_init() local 107 chan = channel_alloc(); in tap_init() 108 if (chan == NULL) in tap_init() 111 chan->send = tap_send; in tap_init() 112 chan->recv = tap_recv; in tap_init() 113 chan->mru = ETHER_HDR_LEN + ETHER_MAX_LEN; in tap_init() 114 memcpy(chan->raddr, ifr.ifr_addr.sa_data, ETHER_ADDR_LEN); in tap_init() 115 memcpy(chan->laddr, ifr.ifr_addr.sa_data, ETHER_ADDR_LEN); in tap_init() 116 chan->state = CHANNEL_OPEN; in tap_init() 117 if (!channel_open(chan, fd)) in tap_init() [all …]
|
/freebsd/sys/dev/hyperv/vmbus/ |
H A D | vmbus_chan.c | 134 vmbus_chan_signal(const struct vmbus_channel *chan) in vmbus_chan_signal() argument 136 atomic_set_long(chan->ch_evtflag, chan->ch_evtflag_mask); in vmbus_chan_signal() 137 if (chan->ch_txflags & VMBUS_CHAN_TXF_HASMNF) in vmbus_chan_signal() 138 atomic_set_int(chan->ch_montrig, chan->ch_montrig_mask); in vmbus_chan_signal() 141 (vm_offset_t)chan->ch_monprm)); in vmbus_chan_signal() 145 vmbus_chan_signal_tx(struct vmbus_channel *chan) in vmbus_chan_signal_tx() argument 147 chan->ch_txbr.txbr_intrcnt ++; in vmbus_chan_signal_tx() 149 vmbus_chan_signal(chan); in vmbus_chan_signal_tx() 153 vmbus_chan_signal_rx(struct vmbus_channel * chan) vmbus_chan_signal_rx() argument 161 vmbus_chan_ins_prilist(struct vmbus_softc * sc,struct vmbus_channel * chan) vmbus_chan_ins_prilist() argument 172 vmbus_chan_rem_prilist(struct vmbus_softc * sc,struct vmbus_channel * chan) vmbus_chan_rem_prilist() argument 184 vmbus_chan_ins_sublist(struct vmbus_channel * prichan,struct vmbus_channel * chan) vmbus_chan_ins_sublist() argument 200 vmbus_chan_rem_sublist(struct vmbus_channel * prichan,struct vmbus_channel * chan) vmbus_chan_rem_sublist() argument 216 vmbus_chan_ins_list(struct vmbus_softc * sc,struct vmbus_channel * chan) vmbus_chan_ins_list() argument 227 vmbus_chan_rem_list(struct vmbus_softc * sc,struct vmbus_channel * chan) vmbus_chan_rem_list() argument 240 struct vmbus_channel *chan = arg1; vmbus_chan_sysctl_mnf() local 249 vmbus_chan_sysctl_create(struct vmbus_channel * chan) vmbus_chan_sysctl_create() argument 334 vmbus_chan_open(struct vmbus_channel * chan,int txbr_size,int rxbr_size,const void * udata,int udlen,vmbus_chan_callback_t cb,void * cbarg) vmbus_chan_open() argument 380 vmbus_chan_open_br(struct vmbus_channel * chan,const struct vmbus_chan_br * cbr,const void * udata,int udlen,vmbus_chan_callback_t cb,void * cbarg) vmbus_chan_open_br() argument 563 vmbus_chan_gpadl_connect(struct vmbus_channel * chan,bus_addr_t paddr,int size,uint32_t * gpadl0) vmbus_chan_gpadl_connect() argument 693 vmbus_chan_wait_revoke(const struct vmbus_channel * chan,bool can_sleep) vmbus_chan_wait_revoke() argument 716 vmbus_chan_gpadl_disconnect(struct vmbus_channel * chan,uint32_t gpadl) vmbus_chan_gpadl_disconnect() argument 766 vmbus_chan_detach(struct vmbus_channel * chan) vmbus_chan_detach() argument 794 struct vmbus_channel *chan = xchan; vmbus_chan_clrchmap_task() local 800 vmbus_chan_clear_chmap(struct vmbus_channel * chan) vmbus_chan_clear_chmap() argument 809 vmbus_chan_set_chmap(struct vmbus_channel * chan) vmbus_chan_set_chmap() argument 823 vmbus_chan_poll_cancel(struct vmbus_channel * chan) vmbus_chan_poll_cancel() argument 832 vmbus_chan_close_internal(struct vmbus_channel * chan) vmbus_chan_close_internal() argument 949 vmbus_chan_close_direct(struct vmbus_channel * chan) vmbus_chan_close_direct() argument 989 vmbus_chan_close(struct vmbus_channel * chan) vmbus_chan_close() argument 1027 vmbus_chan_intr_drain(struct vmbus_channel * chan) vmbus_chan_intr_drain() argument 1034 vmbus_chan_write_available(struct vmbus_channel * chan) vmbus_chan_write_available() argument 1040 vmbus_chan_write_signal(struct vmbus_channel * chan,int32_t min_signal_size) vmbus_chan_write_signal() argument 1058 vmbus_chan_set_pending_send_size(struct vmbus_channel * chan,uint32_t size) vmbus_chan_set_pending_send_size() argument 1066 vmbus_chan_iov_send(struct vmbus_channel * chan,const struct iovec iov[],int iovlen,vmbus_br_copy_callback_t cb,void * cbarg) vmbus_chan_iov_send() argument 1087 vmbus_chan_send(struct vmbus_channel * chan,uint16_t type,uint16_t flags,void * data,int dlen,uint64_t xactid) vmbus_chan_send() argument 1122 vmbus_chan_send_sglist(struct vmbus_channel * chan,struct vmbus_gpa sg[],int sglen,void * data,int dlen,uint64_t xactid) vmbus_chan_send_sglist() argument 1161 vmbus_chan_send_prplist(struct vmbus_channel * chan,struct vmbus_gpa_range * prp,int prp_cnt,void * data,int dlen,uint64_t xactid) vmbus_chan_send_prplist() argument 1202 vmbus_chan_recv(struct vmbus_channel * chan,void * data,int * dlen0,uint64_t * xactid) vmbus_chan_recv() argument 1248 vmbus_chan_recv_pkt(struct vmbus_channel * chan,struct vmbus_chanpkt_hdr * pkt,int * pktlen0) vmbus_chan_recv_pkt() argument 1294 vmbus_chan_read_available(struct vmbus_channel * chan) vmbus_chan_read_available() argument 1308 vmbus_chan_recv_peek(struct vmbus_channel * chan,void * data,int data_len,uint32_t advance) vmbus_chan_recv_peek() argument 1332 vmbus_chan_recv_idxadv(struct vmbus_channel * chan,uint32_t advance) vmbus_chan_recv_idxadv() argument 1355 vmbus_chan_recv_peek_call(struct vmbus_channel * chan,int data_len,uint32_t skip,vmbus_br_copy_callback_t cb,void * cbarg) vmbus_chan_recv_peek_call() argument 1368 struct vmbus_channel *chan = xchan; vmbus_chan_task() local 1404 struct vmbus_channel *chan = xchan; vmbus_chan_task_nobatch() local 1414 struct vmbus_channel *chan = xchan; vmbus_chan_poll_timeout() local 1424 struct vmbus_channel *chan = xchan; vmbus_chan_poll_task() local 1437 struct vmbus_channel *chan = arg->poll_chan; vmbus_chan_pollcfg_task() local 1484 vmbus_chan_poll_cancel_intq(struct vmbus_channel * chan) vmbus_chan_poll_cancel_intq() argument 1523 struct vmbus_channel *chan = xchan; vmbus_chan_polldis_task() local 1563 struct vmbus_channel *chan; vmbus_event_flags_proc() local 1610 vmbus_chan_update_evtflagcnt(struct vmbus_softc * sc,const struct vmbus_channel * chan) vmbus_chan_update_evtflagcnt() argument 1638 struct vmbus_channel *chan; vmbus_chan_alloc() local 1665 vmbus_chan_free(struct vmbus_channel * chan) vmbus_chan_free() argument 1796 vmbus_chan_cpu_set(struct vmbus_channel * chan,int cpu) vmbus_chan_cpu_set() argument 1817 vmbus_chan_cpu_rr(struct vmbus_channel * chan) vmbus_chan_cpu_rr() argument 1827 vmbus_chan_cpu_default(struct vmbus_channel * chan) vmbus_chan_cpu_default() argument 1842 struct vmbus_channel *chan; vmbus_chan_msgproc_choffer() local 1942 struct vmbus_channel *chan; vmbus_chan_msgproc_chrescind() local 2002 vmbus_chan_release(struct vmbus_channel * chan) vmbus_chan_release() argument 2038 struct vmbus_channel *chan = xchan; vmbus_prichan_detach_task() local 2056 struct vmbus_channel *chan = xchan; vmbus_subchan_detach_task() local 2102 struct vmbus_channel *chan; vmbus_chan_destroy_all() local 2128 struct vmbus_channel **ret, *chan; vmbus_subchan_get() local 2190 vmbus_chan_set_readbatch(struct vmbus_channel * chan,bool on) vmbus_chan_set_readbatch() argument 2199 vmbus_chan_id(const struct vmbus_channel * chan) vmbus_chan_id() argument 2205 vmbus_chan_subidx(const struct vmbus_channel * chan) vmbus_chan_subidx() argument 2211 vmbus_chan_is_primary(const struct vmbus_channel * chan) vmbus_chan_is_primary() argument 2220 vmbus_chan_is_hvs(const struct vmbus_channel * chan) vmbus_chan_is_hvs() argument 2226 vmbus_chan_is_hvs_conn_from_host(const struct vmbus_channel * chan) vmbus_chan_is_hvs_conn_from_host() argument 2237 vmbus_chan_guid_type(struct vmbus_channel * chan) vmbus_chan_guid_type() argument 2243 vmbus_chan_guid_inst(struct vmbus_channel * chan) vmbus_chan_guid_inst() argument 2262 vmbus_chan_tx_empty(const struct vmbus_channel * chan) vmbus_chan_tx_empty() argument 2269 vmbus_chan_rx_empty(const struct vmbus_channel * chan) vmbus_chan_rx_empty() argument 2276 vmbus_chan_printf(const struct vmbus_channel * chan,const char * fmt,...) vmbus_chan_printf() argument 2296 vmbus_chan_run_task(struct vmbus_channel * chan,struct task * task) vmbus_chan_run_task() argument 2304 vmbus_chan_mgmt_tq(const struct vmbus_channel * chan) vmbus_chan_mgmt_tq() argument 2311 vmbus_chan_is_revoked(const struct vmbus_channel * chan) vmbus_chan_is_revoked() argument 2320 vmbus_chan_set_orphan(struct vmbus_channel * chan,struct vmbus_xact_ctx * xact) vmbus_chan_set_orphan() argument 2329 vmbus_chan_unset_orphan(struct vmbus_channel * chan) vmbus_chan_unset_orphan() argument 2338 vmbus_chan_xact_wait(const struct vmbus_channel * chan,struct vmbus_xact * xact,size_t * resp_len,bool can_sleep) vmbus_chan_xact_wait() argument 2372 vmbus_chan_poll_enable(struct vmbus_channel * chan,u_int pollhz) vmbus_chan_poll_enable() argument 2389 vmbus_chan_poll_disable(struct vmbus_channel * chan) vmbus_chan_poll_disable() argument [all...] |
/freebsd/sys/x86/isa/ |
H A D | isa_dma.c | 64 static int isa_dmarangecheck(caddr_t va, u_int length, int chan); 84 isa_dma_init(int chan, u_int bouncebufsize, int flag) in isa_dma_init() argument 89 if (chan & ~VALID_DMA_MASK) in isa_dma_init() 96 if (isa_dmarangecheck(buf, bouncebufsize, chan) != 0) { in isa_dma_init() 104 1ul, chan & 4 ? 0x20000ul : 0x10000ul); in isa_dma_init() 119 if (dma_bouncebuf[chan] != NULL) { in isa_dma_init() 125 dma_bouncebufsize[chan] = bouncebufsize; in isa_dma_init() 126 dma_bouncebuf[chan] = buf; in isa_dma_init() 138 isa_dma_acquire(int chan) in isa_dma_acquire() argument 141 if (chan & ~VALID_DMA_MASK) in isa_dma_acquire() [all …]
|
/freebsd/sys/powerpc/powermac/ |
H A D | dbdma.c | 49 dbdma_phys_callback(void *chan, bus_dma_segment_t *segs, int nsegs, int error) in dbdma_phys_callback() argument 51 dbdma_channel_t *channel = (dbdma_channel_t *)(chan); in dbdma_phys_callback() 59 bus_dma_tag_t parent_dma, int slots, dbdma_channel_t **chan) in dbdma_allocate_channel() argument 64 channel = *chan = malloc(sizeof(struct dbdma_channel), M_DBDMA, in dbdma_allocate_channel() 92 dbdma_resize_channel(dbdma_channel_t *chan, int newslots) in dbdma_resize_channel() argument 98 chan->sc_nslots = newslots; in dbdma_resize_channel() 103 dbdma_free_channel(dbdma_channel_t *chan) in dbdma_free_channel() argument 106 dbdma_stop(chan); in dbdma_free_channel() 108 bus_dmamem_free(chan->sc_dmatag, chan->sc_slots, chan->sc_dmamap); in dbdma_free_channel() 109 bus_dma_tag_destroy(chan->sc_dmatag); in dbdma_free_channel() [all …]
|
/freebsd/lib/libcasper/libcasper/ |
H A D | libcasper.c | 69 cap_add_pd(cap_channel_t *chan, int pd) in cap_add_pd() argument 74 chan->cch_pd = pd; in cap_add_pd() 79 cap_channel_flags(const cap_channel_t *chan) in cap_channel_flags() argument 82 return (chan->cch_flags); in cap_channel_flags() 91 cap_channel_t *chan; in cap_init() local 107 chan = cap_wrap(sock[0], 0); in cap_init() 108 if (chan == NULL) { in cap_init() 115 ret = cap_add_pd(chan, pfd); in cap_init() 117 return (chan); in cap_init() 131 cap_channel_t *chan; in cap_wrap() local [all …]
|
H A D | libcasper.h | 75 int cap_channel_flags(const cap_channel_t *chan); 78 cap_channel_flags(const cap_channel_t *chan) 81 return (chan->cch_flags); 86 channel_nvlist_flags(const cap_channel_t *chan) in channel_nvlist_flags() argument 91 if ((cap_channel_flags(chan) & CASPER_NO_UNIQ) != 0) in channel_nvlist_flags() 106 cap_channel_t *chan; in cap_init() local 108 chan = (cap_channel_t *)malloc(sizeof(*chan)); in cap_init() 109 if (chan != NULL) { in cap_init() 110 chan->cch_fd = -1; in cap_init() 112 return (chan); in cap_init() [all …]
|
/freebsd/sys/dev/altera/msgdma/ |
H A D | msgdma.c | 129 msgdma_next_desc(struct msgdma_channel *chan, uint32_t curidx) in msgdma_next_desc() argument 132 return ((curidx + 1) % chan->descs_num); in msgdma_next_desc() 141 struct msgdma_channel *chan; in msgdma_intr() local 147 chan = &sc->channels[0]; in msgdma_intr() 148 xchan = chan->xchan; in msgdma_intr() 158 while (chan->idx_tail != chan->idx_head) { in msgdma_intr() 160 chan->idx_tail, chan->idx_head); in msgdma_intr() 161 bus_dmamap_sync(chan->dma_tag, chan->dma_map[chan->idx_tail], in msgdma_intr() 164 desc = chan->descs[chan->idx_tail]; in msgdma_intr() 174 chan->idx_tail = msgdma_next_desc(chan, chan->idx_tail); in msgdma_intr() [all …]
|
/freebsd/contrib/wpa/src/ap/ |
H A D | acs.c | 314 static void acs_clean_chan_surveys(struct hostapd_channel_data *chan) in acs_clean_chan_surveys() argument 318 if (dl_list_empty(&chan->survey_list)) in acs_clean_chan_surveys() 321 dl_list_for_each_safe(survey, tmp, &chan->survey_list, in acs_clean_chan_surveys() 332 struct hostapd_channel_data *chan; in acs_cleanup_mode() local 335 chan = &mode->channels[i]; in acs_cleanup_mode() 337 if (chan->flag & HOSTAPD_CHAN_SURVEY_LIST_INITIALIZED) in acs_cleanup_mode() 338 acs_clean_chan_surveys(chan); in acs_cleanup_mode() 340 dl_list_init(&chan->survey_list); in acs_cleanup_mode() 341 chan->flag |= HOSTAPD_CHAN_SURVEY_LIST_INITIALIZED; in acs_cleanup_mode() 342 chan->min_nf = 0; in acs_cleanup_mode() [all …]
|
H A D | dfs.c | 76 static int dfs_channel_available(struct hostapd_channel_data *chan, in dfs_channel_available() argument 83 if ((chan->flag & HOSTAPD_CHAN_RADAR) && in dfs_channel_available() 84 (chan->flag & HOSTAPD_CHAN_DFS_MASK) == in dfs_channel_available() 95 if (type == DFS_AVAILABLE && (chan->flag & HOSTAPD_CHAN_RADAR) && in dfs_channel_available() 96 ((chan->flag & HOSTAPD_CHAN_DFS_MASK) != in dfs_channel_available() 100 if (chan->flag & HOSTAPD_CHAN_DISABLED) in dfs_channel_available() 102 if ((chan->flag & HOSTAPD_CHAN_RADAR) && in dfs_channel_available() 103 ((chan->flag & HOSTAPD_CHAN_DFS_MASK) == in dfs_channel_available() 110 static int dfs_is_chan_allowed(struct hostapd_channel_data *chan, int n_chans) in dfs_is_chan_allowed() argument 150 if (chan->chan == allowed[i]) in dfs_is_chan_allowed() [all …]
|
/freebsd/sys/dev/xilinx/ |
H A D | axidma.c | 130 axidma_next_desc(struct axidma_channel *chan, uint32_t curidx) in axidma_next_desc() argument 133 return ((curidx + 1) % chan->descs_num); in axidma_next_desc() 138 struct axidma_channel *chan) in axidma_intr() argument 150 xchan = chan->xchan; in axidma_intr() 170 while (chan->idx_tail != chan->idx_head) { in axidma_intr() 171 desc = chan->descs[chan->idx_tail]; in axidma_intr() 180 chan->idx_tail = axidma_next_desc(chan, chan->idx_tail); in axidma_intr() 181 atomic_subtract_int(&chan->descs_used_count, 1); in axidma_intr() 187 xdma_callback(chan->xchan, &status); in axidma_intr() 194 struct axidma_channel *chan; in axidma_intr_rx() local [all …]
|
/freebsd/sys/dev/altera/softdma/ |
H A D | softdma.c | 140 softdma_next_desc(struct softdma_channel *chan, uint32_t curidx) in softdma_next_desc() argument 143 return ((curidx + 1) % chan->descs_num); in softdma_next_desc() 206 struct softdma_channel *chan; in softdma_intr() local 213 chan = &sc->channels[0]; in softdma_intr() 227 chan->run = 1; in softdma_intr() 228 wakeup(chan); in softdma_intr() 297 softdma_process_tx(struct softdma_channel *chan, struct softdma_desc *desc) in softdma_process_tx() argument 308 sc = chan->sc; in softdma_process_tx() 393 softdma_process_rx(struct softdma_channel *chan, struct softdma_desc *desc) in softdma_process_rx() argument 406 sc = chan->sc; in softdma_process_rx() [all …]
|
/freebsd/sys/dev/hyperv/include/ |
H A D | vmbus.h | 170 int vmbus_chan_open(struct vmbus_channel *chan, 173 int vmbus_chan_open_br(struct vmbus_channel *chan, 176 void vmbus_chan_close(struct vmbus_channel *chan); 177 int vmbus_chan_close_direct(struct vmbus_channel *chan); 178 void vmbus_chan_intr_drain(struct vmbus_channel *chan); 179 void vmbus_chan_run_task(struct vmbus_channel *chan, 181 void vmbus_chan_set_orphan(struct vmbus_channel *chan, 183 void vmbus_chan_unset_orphan(struct vmbus_channel *chan); 184 const void *vmbus_chan_xact_wait(const struct vmbus_channel *chan, 187 int vmbus_chan_gpadl_connect(struct vmbus_channel *chan, [all …]
|
/freebsd/sys/powerpc/include/ |
H A D | dbdma.h | 82 bus_dma_tag_t parent_dma, int slots, dbdma_channel_t **chan); 84 int dbdma_resize_channel(dbdma_channel_t *chan, int newslots); 85 int dbdma_free_channel(dbdma_channel_t *chan); 87 void dbdma_run(dbdma_channel_t *chan); 88 void dbdma_stop(dbdma_channel_t *chan); 89 void dbdma_reset(dbdma_channel_t *chan); 90 void dbdma_set_current_cmd(dbdma_channel_t *chan, int slot); 92 void dbdma_pause(dbdma_channel_t *chan); 93 void dbdma_wake(dbdma_channel_t *chan); 107 uint16_t dbdma_get_chan_status(dbdma_channel_t *chan); [all …]
|
/freebsd/sys/dev/virtio/p9fs/ |
H A D | virtio_p9fs.c | 111 vt9p_req_wait(struct vt9p_softc *chan, struct p9_req_t *req) in vt9p_req_wait() argument 116 if (msleep(req, VT9P_MTX(chan), 0, "chan lock", vt9p_ackmaxidle * hz)) { in vt9p_req_wait() 142 struct vt9p_softc *chan; in vt9p_request() local 147 chan = handle; in vt9p_request() 148 sg = chan->vt9p_sglist; in vt9p_request() 149 vq = chan->vt9p_vq; in vt9p_request() 154 VT9P_LOCK(chan); in vt9p_request() 161 VT9P_UNLOCK(chan); in vt9p_request() 169 VT9P_UNLOCK(chan); in vt9p_request() 181 cv_wait(&chan->submit_cv, VT9P_MTX(chan)); in vt9p_request() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ |
H A D | ah_eeprom_v1.c | 202 struct tpcMap *chan = &ee->ee_tpc[i]; in ath_hal_v1EepromAttach() local 205 chan->pcdac[0] = (athvals[loc] >> 10) & 0x3F; in ath_hal_v1EepromAttach() 206 chan->gainF[0] = (athvals[loc] >> 4) & 0x3F; in ath_hal_v1EepromAttach() 207 chan->pcdac[1] = ((athvals[loc] << 2) & 0x3C) in ath_hal_v1EepromAttach() 209 chan->gainF[1] = (athvals[loc+1] >> 8) & 0x3F; in ath_hal_v1EepromAttach() 210 chan->pcdac[2] = (athvals[loc+1] >> 2) & 0x3F; in ath_hal_v1EepromAttach() 211 chan->gainF[2] = ((athvals[loc+1] << 4) & 0x30) in ath_hal_v1EepromAttach() 213 chan->pcdac[3] = (athvals[loc+2] >> 6) & 0x3F; in ath_hal_v1EepromAttach() 214 chan->gainF[3] = athvals[loc+2] & 0x3F; in ath_hal_v1EepromAttach() 215 chan->pcdac[4] = (athvals[loc+3] >> 10) & 0x3F; in ath_hal_v1EepromAttach() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212_reset.c | 47 const struct ieee80211_channel *chan, uint16_t *rfXpdGain); 118 struct ieee80211_channel *chan, in ar5212Reset() argument 156 ichan = ath_hal_checkchannel(ah, chan); in ar5212Reset() 173 SAVE_CCK(ah, chan, isBmode); in ar5212Reset() 223 (chan->ic_freq != AH_PRIVATE(ah)->ah_curchan->ic_freq) && in ar5212Reset() 224 ((chan->ic_flags & IEEE80211_CHAN_ALLTURBO) == in ar5212Reset() 226 if (ar5212ChannelChange(ah, chan)) { in ar5212Reset() 260 if (!ar5212ChipReset(ah, chan)) { in ar5212Reset() 266 if (IEEE80211_IS_CHAN_2GHZ(chan)) { in ar5212Reset() 268 if (IEEE80211_IS_CHAN_108G(chan)) in ar5212Reset() [all …]
|
/freebsd/sys/dev/rtwn/rtl8812a/ |
H A D | r12a_chan.c | 117 uint8_t chan; in r12a_get_power_group() local 120 chan = rtwn_chan2centieee(c); in r12a_get_power_group() 122 if (chan <= 2) group = 0; in r12a_get_power_group() 123 else if (chan <= 5) group = 1; in r12a_get_power_group() 124 else if (chan <= 8) group = 2; in r12a_get_power_group() 125 else if (chan <= 11) group = 3; in r12a_get_power_group() 126 else if (chan <= 14) group = 4; in r12a_get_power_group() 128 KASSERT(0, ("wrong 2GHz channel %d!\n", chan)); in r12a_get_power_group() 132 if (chan < 36) in r12a_get_power_group() 135 if (chan <= 42) group = 0; in r12a_get_power_group() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5312/ |
H A D | ar5312_reset.c | 41 const struct ieee80211_channel *chan, uint16_t *rfXpdGain); 90 struct ieee80211_channel *chan, in ar5312Reset() argument 117 ichan = ath_hal_checkchannel(ah, chan); in ar5312Reset() 121 __func__, chan->ic_freq, chan->ic_flags); in ar5312Reset() 175 (chan->ic_freq != AH_PRIVATE(ah)->ah_curchan->ic_freq) && in ar5312Reset() 176 ((chan->ic_flags & IEEE80211_CHAN_ALLTURBO) == in ar5312Reset() 178 if (ar5212ChannelChange(ah, chan)) in ar5312Reset() 209 if (!ar5312ChipReset(ah, chan)) { in ar5312Reset() 215 if (IEEE80211_IS_CHAN_2GHZ(chan)) { in ar5312Reset() 217 modesIndex = IEEE80211_IS_CHAN_108G(chan) ? 5 : in ar5312Reset() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar5416_reset.c | 58 const struct ieee80211_channel *chan, int16_t *ratesArray, 62 static void ar5416Set11nRegs(struct ath_hal *ah, const struct ieee80211_channel *chan); 65 const struct ieee80211_channel *chan); 77 struct ieee80211_channel *chan, in ar5416Reset() argument 107 ichan = ath_hal_checkchannel(ah, chan); in ar5416Reset() 179 if (!ar5416ChipReset(ah, chan, resetType)) { in ar5416Reset() 192 AH5416(ah)->ah_writeIni(ah, chan); in ar5416Reset() 206 ar5416OverrideIni(ah, chan); in ar5416Reset() 209 ar5416Set11nRegs(ah, chan); in ar5416Reset() 242 if (!ah->ah_setTxPower(ah, chan, rfXpdGain)) { in ar5416Reset() [all …]
|
H A D | ar5416_cal.c | 40 static uint16_t ar5416GetDefaultNF(struct ath_hal *ah, const struct ieee80211_channel *chan); 64 ar5416IsCalSupp(struct ath_hal *ah, const struct ieee80211_channel *chan, in ar5416IsCalSupp() argument 72 return !IEEE80211_IS_CHAN_B(chan); in ar5416IsCalSupp() 81 if (IEEE80211_IS_CHAN_HT20(chan) && in ar5416IsCalSupp() 82 (IS_5GHZ_FAST_CLOCK_EN(ah, chan))) in ar5416IsCalSupp() 84 if (IEEE80211_IS_CHAN_5GHZ(chan)) in ar5416IsCalSupp() 86 if (IEEE80211_IS_CHAN_HT40(chan)) in ar5416IsCalSupp() 201 ar5416InitCalHardware(struct ath_hal *ah, const struct ieee80211_channel *chan) in ar5416InitCalHardware() argument 243 ar5416InitCal(struct ath_hal *ah, const struct ieee80211_channel *chan) in ar5416InitCal() argument 248 ichan = ath_hal_checkchannel(ah, chan); in ar5416InitCal() [all …]
|
/freebsd/sys/dev/xdma/controller/ |
H A D | pl330.c | 155 struct pl330_channel *chan; in pl330_intr() local 176 chan = &sc->channels[c]; in pl330_intr() 177 xchan = chan->xchan; in pl330_intr() 180 for (i = 0; i < chan->enqueued; i++) { in pl330_intr() 185 chan->capacity = PL330_MAXLOAD; in pl330_intr() 190 xdma_callback(chan->xchan, &status); in pl330_intr() 373 struct pl330_channel *chan; in pl330_channel_alloc() local 380 chan = &sc->channels[i]; in pl330_channel_alloc() 381 if (chan->used == 0) { in pl330_channel_alloc() 382 chan->xchan = xchan; in pl330_channel_alloc() [all …]
|
/freebsd/sys/dev/isp/ |
H A D | isp.c | 147 isp_change_fw_state(ispsoftc_t *isp, int chan, int state) in isp_change_fw_state() argument 149 fcparam *fcp = FCPARAM(isp, chan); in isp_change_fw_state() 154 "Chan %d Firmware state <%s->%s>", chan, in isp_change_fw_state() 867 int chan; in isp_init() local 873 for (chan = 0; chan < isp->isp_nchan; chan++) { in isp_init() 874 fcp = FCPARAM(isp, chan); in isp_init() 879 if (chan == isp->isp_nchan) { in isp_init() 880 isp_prt(isp, ISP_LOG_WARN1, "all %d channels with role 'none'", chan); in isp_init() 1238 isp_fc_enable_vp(ispsoftc_t * isp,int chan) isp_fc_enable_vp() argument 1282 isp_fc_disable_vp(ispsoftc_t * isp,int chan) isp_fc_disable_vp() argument 1319 isp_fc_change_role(ispsoftc_t * isp,int chan,int new_role) isp_fc_change_role() argument 1349 isp_clear_portdb(ispsoftc_t * isp,int chan) isp_clear_portdb() argument 1377 isp_mark_portdb(ispsoftc_t * isp,int chan) isp_mark_portdb() argument 1399 isp_plogx(ispsoftc_t * isp,int chan,uint16_t handle,uint32_t portid,int flags) isp_plogx() argument 1510 isp_getpdb(ispsoftc_t * isp,int chan,uint16_t id,isp_pdb_t * pdb) isp_getpdb() argument 1561 isp_gethandles(ispsoftc_t * isp,int chan,uint16_t * handles,int * num,int loop) isp_gethandles() argument 1601 isp_dump_chip_portdb(ispsoftc_t * isp,int chan) isp_dump_chip_portdb() argument 1620 isp_get_wwn(ispsoftc_t * isp,int chan,int nphdl,int nodename) isp_get_wwn() argument 1651 isp_fclink_test(ispsoftc_t * isp,int chan,int usdelay) isp_fclink_test() argument 1812 isp_pdb_sync(ispsoftc_t * isp,int chan) isp_pdb_sync() argument 1886 isp_pdb_add_update(ispsoftc_t * isp,int chan,isp_pdb_t * pdb) isp_pdb_add_update() argument 1956 isp_scan_loop(ispsoftc_t * isp,int chan) isp_scan_loop() argument 2032 isp_ct_passthru(ispsoftc_t * isp,int chan,uint32_t cmd_bcnt,uint32_t rsp_bcnt) isp_ct_passthru() argument 2093 isp_gid_pt(ispsoftc_t * isp,int chan) isp_gid_pt() argument 2130 isp_gff_id(ispsoftc_t * isp,int chan,uint32_t portid) isp_gff_id() argument 2187 isp_gft_id(ispsoftc_t * isp,int chan,uint32_t portid) isp_gft_id() argument 2240 isp_scan_fabric(ispsoftc_t * isp,int chan) isp_scan_fabric() argument 2478 isp_login_device(ispsoftc_t * isp,int chan,uint32_t portid,isp_pdb_t * p,uint16_t * ohp) isp_login_device() argument 2557 isp_register_fc4_type(ispsoftc_t * isp,int chan) isp_register_fc4_type() argument 2602 isp_register_fc4_features_24xx(ispsoftc_t * isp,int chan) isp_register_fc4_features_24xx() argument 2660 isp_register_port_name_24xx(ispsoftc_t * isp,int chan) isp_register_port_name_24xx() argument 2724 isp_register_node_name_24xx(ispsoftc_t * isp,int chan) isp_register_node_name_24xx() argument 2783 int i, chan, wrap; isp_next_handle() local 3002 int chan, tgt; isp_control() local 3511 uint16_t chan; isp_intr_async() local 3819 int chan, c; isp_handle_rpt_id_acq() local 3863 int chan = XS_CHANNEL(xs); isp_parse_status_24xx() local 4444 isp_fw_state(ispsoftc_t * isp,int chan) isp_fw_state() argument 4456 isp_setdfltfcparm(ispsoftc_t * isp,int chan) isp_setdfltfcparm() argument [all...] |
/freebsd/contrib/wpa/src/common/ |
H A D | ieee802_11_common.c | 1697 static int ieee80211_chan_to_freq_us(u8 op_class, u8 chan) in ieee80211_chan_to_freq_us() argument 1703 if (chan < 1 || chan > 11) in ieee80211_chan_to_freq_us() 1705 return 2407 + 5 * chan; in ieee80211_chan_to_freq_us() 1712 if (chan < 36 || chan > 64) in ieee80211_chan_to_freq_us() 1714 return 5000 + 5 * chan; in ieee80211_chan_to_freq_us() 1717 if (chan < 100 || chan > 144) in ieee80211_chan_to_freq_us() 1719 return 5000 + 5 * chan; in ieee80211_chan_to_freq_us() 1725 if (chan < 149 || chan > 161) in ieee80211_chan_to_freq_us() 1727 return 5000 + 5 * chan; in ieee80211_chan_to_freq_us() 1729 if (chan < 149 || chan > 165) in ieee80211_chan_to_freq_us() [all …]
|