Home
last modified time | relevance | path

Searched refs:chan (Results 1 – 25 of 134) sorted by relevance

123456

/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dlogging.c86 if (chan == NULL || chan->type != log_file) { in log_open_stream()
150 (void) fchown(fd, chan->out.file.owner, chan->out.file.group); in log_open_stream()
160 if (chan == NULL || chan->type != log_file) { in log_close_stream()
186 if (chan == NULL || chan->type != log_file) { in log_get_stream()
195 if (chan == NULL || chan->type != log_file) { in log_get_filename()
589 return (chan); in log_new_syslog_channel()
616 chan->out.file.name = memget(chan->out.file.name_size); in log_new_file_channel()
634 return (chan); in log_new_file_channel()
661 return (chan); in log_new_null_channel()
676 if (chan == NULL || chan->references <= 0) { in log_dec_references()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_adm.c50 eib_chan_t *chan; in eib_adm_setup_qp() local
142 while ((ret = ibt_poll_cq(chan->ch_cq_hdl, chan->ch_wc, chan->ch_cq_sz, in eib_adm_comp_handler()
279 chan->ch_lwm_rwqes = chan->ch_max_rwqes >> 2; in eib_adm_setup_ud_channel()
280 chan->ch_rwqe_bktsz = chan->ch_max_rwqes; in eib_adm_setup_ud_channel()
390 if (chan == NULL) in eib_rb_adm_setup_cq()
410 if (chan->ch_wc && chan->ch_cq_sz) in eib_rb_adm_setup_cq()
411 kmem_free(chan->ch_wc, sizeof (ibt_wc_t) * chan->ch_cq_sz); in eib_rb_adm_setup_cq()
436 if (chan == NULL) in eib_rb_adm_setup_ud_channel()
457 cv_wait(&chan->ch_tx_cv, &chan->ch_tx_lock); in eib_rb_adm_setup_ud_channel()
466 cv_wait(&chan->ch_rx_cv, &chan->ch_rx_lock); in eib_rb_adm_setup_ud_channel()
[all …]
H A Deib_ctl.c119 while ((ret = ibt_poll_cq(chan->ch_cq_hdl, chan->ch_wc, chan->ch_cq_sz, in eib_ctl_comp_handler()
179 chan->ch_cq_sz = sz; in eib_ctl_setup_cq()
258 chan->ch_lwm_rwqes = chan->ch_max_rwqes >> 2; in eib_ctl_setup_ud_channel()
259 chan->ch_rwqe_bktsz = chan->ch_max_rwqes; in eib_ctl_setup_ud_channel()
371 if (chan == NULL) in eib_rb_ctl_setup_cq()
391 if (chan->ch_wc && chan->ch_cq_sz) in eib_rb_ctl_setup_cq()
392 kmem_free(chan->ch_wc, sizeof (ibt_wc_t) * chan->ch_cq_sz); in eib_rb_ctl_setup_cq()
418 if (chan == NULL) in eib_rb_ctl_setup_ud_channel()
439 cv_wait(&chan->ch_tx_cv, &chan->ch_tx_lock); in eib_rb_ctl_setup_ud_channel()
448 cv_wait(&chan->ch_rx_cv, &chan->ch_rx_lock); in eib_rb_ctl_setup_ud_channel()
[all …]
H A Deib_chan.c38 eib_chan_t *chan; in eib_chan_init() local
56 return (chan); in eib_chan_init()
62 if (chan) { in eib_chan_fini()
63 cv_destroy(&chan->ch_rx_cv); in eib_chan_fini()
93 room = chan->ch_max_rwqes - chan->ch_rx_posted; in eib_chan_post_rx()
94 limit = (room > chan->ch_rwqe_bktsz) ? chan->ch_rwqe_bktsz : room; in eib_chan_post_rx()
176 if (chan->ch_alloc_mp) { in eib_chan_post_recv()
193 if (chan->ch_rx_posted > (chan->ch_max_rwqes - 1)) { in eib_chan_post_recv()
196 chan->ch_rx_posted, chan->ch_max_rwqes); in eib_chan_post_recv()
202 rwqe->qe_chan = chan; in eib_chan_post_recv()
[all …]
H A Deib_data.c148 while ((ret = ibt_poll_cq(chan->ch_rcv_cq_hdl, chan->ch_rcv_wc, in eib_data_rx_comp_handler()
254 while ((ret = ibt_poll_cq(chan->ch_cq_hdl, chan->ch_wc, chan->ch_cq_sz, in eib_data_tx_comp_handler()
364 if ((chan->ch_tx_posted + 1) >= (chan->ch_max_swqes - 1)) { in eib_data_post_tx()
367 "max=0x%lx", chan->ch_tx_posted, chan->ch_max_swqes); in eib_data_post_tx()
749 chan->ch_lwm_rwqes = chan->ch_max_rwqes >> 2; in eib_data_setup_ud_channel()
750 chan->ch_rwqe_bktsz = (chan->ch_max_rwqes < EIB_DATA_RWQE_BKT) ? in eib_data_setup_ud_channel()
1402 if (chan->ch_rcv_wc && chan->ch_rcv_cq_sz) { in eib_rb_data_setup_cqs()
1409 if (chan->ch_wc && chan->ch_cq_sz) { in eib_rb_data_setup_cqs()
1410 kmem_free(chan->ch_wc, sizeof (ibt_wc_t) * chan->ch_cq_sz); in eib_rb_data_setup_cqs()
1466 cv_wait(&chan->ch_tx_cv, &chan->ch_tx_lock); in eib_rb_data_setup_ud_channel()
[all …]
H A Deib_ibt.c723 (void) eib_ibt_modify_chan_pkey(ss, chan, chan->ch_pkey); in eib_ibt_reset_partitions()
731 chan->ch_pkey); in eib_ibt_reset_partitions()
762 if ((chan) && (chan->ch_chan == ev_chan_hdl)) in eib_ibt_wakeup_sqd_waiters()
766 if ((chan) && (chan->ch_chan == ev_chan_hdl)) in eib_ibt_wakeup_sqd_waiters()
785 if (chan) { in eib_ibt_wakeup_sqd_waiters()
818 if ((chan->ch_pkey == new_pkey) && (chan->ch_pkey_ix == new_pkey_ix)) { in eib_ibt_chan_pkey()
856 cv_wait(&chan->ch_cep_cv, &chan->ch_cep_lock); in eib_ibt_chan_pkey()
915 ret = eib_ibt_chan_pkey(ss, chan, chan->ch_pkey, B_FALSE, &changed); in eib_ibt_has_chan_pkey_changed()
936 if ((chan) && (eib_ibt_has_chan_pkey_changed(ss, chan))) in eib_ibt_has_any_pkey_changed()
944 if ((chan) && (eib_ibt_has_chan_pkey_changed(ss, chan))) in eib_ibt_has_any_pkey_changed()
[all …]
H A Deib_vnic.c533 chan->ch_vhub_data = mcg; in eib_vnic_join_data_mcg()
808 eib_chan_t *chan = NULL; in eib_vnic_get_data_chan() local
817 return (chan); in eib_vnic_get_data_chan()
1621 chan->ch_vhub_table = mcg; in eib_vnic_attach_vhub_table()
1873 chan->ch_vhub_data = NULL; in eib_vnic_leave_all_data_mcgs()
1924 chan->ch_vhub_data = NULL; in eib_vnic_rejoin_data_mcgs()
2045 if (chan == NULL) in eib_rb_vnic_attach_vhub_table()
2049 chan_hdl = chan->ch_chan; in eib_rb_vnic_attach_vhub_table()
2050 mcg = chan->ch_vhub_table; in eib_rb_vnic_attach_vhub_table()
2091 if (chan == NULL) in eib_rb_vnic_attach_vhub_update()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/ibd/
H A Dibd_cm.c1727 ibd_rc_poll_rcq(chan, chan->rcq_hdl); in ibd_rc_rcq_handler()
1746 ibd_rc_poll_rcq(chan, chan->rcq_hdl); in ibd_rc_rcq_handler()
1974 kmem_free(chan->tx_wqes, chan->scq_size * in ibd_rc_fini_txlist()
2212 chan->ace, chan->state-> in ibd_rc_drain_scq()
2226 chan->chan_state, chan->ace, in ibd_rc_drain_scq()
2340 ibd_rc_drain_scq(chan, chan->scq_hdl); in ibd_rc_tx_recycle()
2356 ibd_rc_drain_scq(chan, chan->scq_hdl); in ibd_rc_tx_recycle()
2891 ibd_rc_drain_scq(chan, chan->scq_hdl); in ibd_rc_act_close()
2934 "chan=%p", chan->chan_state, chan); in ibd_rc_act_close()
2990 ibd_rc_poll_rcq(chan, chan->rcq_hdl); in ibd_rc_pas_close()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/iser/
H A Diser_ib.c362 iser_chan_t *chan; in iser_ib_alloc_channel_nopathlookup() local
373 if (chan == NULL) { in iser_ib_alloc_channel_nopathlookup()
384 return (chan); in iser_ib_alloc_channel_nopathlookup()
456 return (chan); in iser_ib_alloc_channel_pathlookup()
522 ibt_set_cq_handler(chan->ic_sendcq, iser_ib_sendcq_handler, chan); in iser_ib_alloc_rc_channel()
536 ibt_set_cq_handler(chan->ic_recvcq, iser_ib_recvcq_handler, chan); in iser_ib_alloc_rc_channel()
540 iser_ib_setup_chanargs(hca_port, chan->ic_sendcq, chan->ic_recvcq, in iser_ib_alloc_rc_channel()
558 (void) ibt_set_chan_private(chan->ic_chanhdl, chan); in iser_ib_alloc_rc_channel()
560 return (chan); in iser_ib_alloc_rc_channel()
724 iser_chan_t *chan; in iser_ib_post_recv_async() local
[all …]
H A Diser_cm.c128 iser_chan_t *chan; in iser_ib_handle_cm_req() local
156 if (chan == NULL) { in iser_ib_handle_cm_req()
168 chan->ic_localip = ipcm_info.dst_addr; in iser_ib_handle_cm_req()
173 chan->ic_rport = ipcm_info.src_port; in iser_ib_handle_cm_req()
182 iser_conn->ic_chan = chan; in iser_ib_handle_cm_req()
194 chan->ic_conn = iser_conn; in iser_ib_handle_cm_req()
304 iser_chan_t *chan; in iser_handle_cm_conn_closed() local
325 switch (chan->ic_conn->ic_stage) { in iser_handle_cm_conn_closed()
391 iser_chan_t *chan; in iser_handle_cm_event_failure() local
415 mutex_enter(&chan->ic_conn->ic_lock); in iser_handle_cm_event_failure()
[all …]
H A Diser_xfer.c51 ASSERT(chan != NULL); in iser_xfer_hello_msg()
104 if (chan->ic_sq_post_count > chan->ic_sq_max_post_count) in iser_xfer_hello_msg()
105 chan->ic_sq_max_post_count = chan->ic_sq_post_count; in iser_xfer_hello_msg()
121 "IP [%x to %x]", (void *)chan, chan->ic_localip.un.ip4addr, in iser_xfer_hello_msg()
137 ASSERT(chan != NULL); in iser_xfer_helloreply_msg()
188 if (chan->ic_sq_post_count > chan->ic_sq_max_post_count) in iser_xfer_helloreply_msg()
189 chan->ic_sq_max_post_count = chan->ic_sq_post_count; in iser_xfer_helloreply_msg()
205 "IP [%x to %x]", (void *)chan, chan->ic_localip.un.ip4addr, in iser_xfer_helloreply_msg()
239 ASSERT(chan != NULL); in iser_xfer_ctrlpdu()
378 if (chan->ic_sq_post_count > chan->ic_sq_max_post_count) in iser_xfer_ctrlpdu()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/ibtl/
H A Dibtl_qp.c465 ASSERT(chan->ch_qp.qp_type == IBT_RC_SRV); in ibtl_cm_chan_is_opening()
598 ibtl_cm_set_chan_private(chan, NULL); in ibtl_cm_chan_is_closed()
607 (IBTL_CHAN2CIHCA(chan), chan->ch_transport.rc.rc_qpn_hdl)) == in ibtl_cm_chan_is_closed()
610 ibtl_free_qp_async_check(&chan->ch_qp); in ibtl_cm_chan_is_closed()
636 chan->ch_transport.rc.rc_free_flags = 0; in ibtl_cm_chan_is_reused()
1175 ibt_unpause_sendq(ibt_channel_hdl_t chan) in ibt_unpause_sendq() argument
1226 chan, flags, request_sz, actual_sz); in ibt_resize_queues()
1411 if (chan->ch_qp.qp_type != IBT_RC_SRV) { in ibt_set_rdma_resource()
1414 chan->ch_qp.qp_type); in ibt_set_rdma_resource()
1460 if (chan->ch_qp.qp_type != IBT_RC_SRV) { in ibt_change_port()
[all …]
H A Dibtl_wr.c56 ibt_post_send(ibt_channel_hdl_t chan, ibt_send_wr_t *wr_list, uint_t size, in ibt_post_send() argument
60 chan, wr_list, size); in ibt_post_send()
62 return (IBTL_CHAN2CIHCAOPS_P(chan)->ibc_post_send(IBTL_CHAN2CIHCA(chan), in ibt_post_send()
63 chan->ch_qp.qp_ibc_qp_hdl, wr_list, size, posted)); in ibt_post_send()
81 ibt_post_recv(ibt_channel_hdl_t chan, ibt_recv_wr_t *wr_list, uint_t size, in ibt_post_recv() argument
85 chan, wr_list, size); in ibt_post_recv()
87 return (IBTL_CHAN2CIHCAOPS_P(chan)->ibc_post_recv(IBTL_CHAN2CIHCA(chan), in ibt_post_recv()
88 chan->ch_qp.qp_ibc_qp_hdl, wr_list, size, posted)); in ibt_post_recv()
H A Dibtl_cm.c57 chan, cm_private); in ibtl_cm_set_chan_private()
59 mutex_enter(&chan->ch_cm_mutex); in ibtl_cm_set_chan_private()
60 chan->ch_cm_private = cm_private; in ibtl_cm_set_chan_private()
62 cv_signal(&chan->ch_cm_cv); in ibtl_cm_set_chan_private()
63 mutex_exit(&chan->ch_cm_mutex); in ibtl_cm_set_chan_private()
85 mutex_enter(&chan->ch_cm_mutex); in ibtl_cm_get_chan_private()
91 mutex_exit(&chan->ch_cm_mutex); in ibtl_cm_get_chan_private()
99 mutex_exit(&chan->ch_cm_mutex); in ibtl_cm_release_chan_private()
108 cv_wait(&chan->ch_cm_cv, &chan->ch_cm_mutex); in ibtl_cm_wait_chan_private()
109 mutex_exit(&chan->ch_cm_mutex); in ibtl_cm_wait_chan_private()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dlog_sysevent.c989 chan->scd_ref_cnt = 1; in open_channel()
1013 while (chan != NULL) { in close_channel()
1017 prev_chan = chan; in close_channel()
1018 chan = chan->scd_next; in close_channel()
1022 if (chan == NULL) in close_channel()
1025 chan->scd_ref_cnt--; in close_channel()
1026 if (chan->scd_ref_cnt > 0) in close_channel()
1029 free_channel_registration(chan); in close_channel()
1186 remove_all_class(chan, sub_id); in remove_class()
1374 chan = get_channel(kchannel); in log_sysevent_register()
[all …]
/illumos-gate/usr/src/uts/common/sys/nxge/
H A Dnxge_sr_hw.h115 (chan * 0x20)) >> 1)
118 (chan * 0x20)) >> 1) + 1
121 (chan * 0x20)) >> 1)
124 (chan * 0x20)) >> 1) + 1
127 (chan * 0x20)) >> 1)
133 (chan * 0x20)) >> 1)
139 (chan * 0x20)) >> 1)
145 (chan * 0x20)) >> 1)
151 (chan * 0x20)) >> 1)
157 (chan * 0x20)) >> 1)
[all …]
H A Dnxge_n2_esr_hw.h76 (chan * 4))
78 (chan * 4))
80 (chan * 4) + 1)
82 (chan * 4) + 2)
84 (chan * 4) + 2)
86 (chan * 4) + 3)
88 (chan * 4))
90 (chan * 4))
92 (chan * 4) + 1)
94 (chan * 4) + 2)
[all …]
/illumos-gate/usr/src/uts/intel/io/vmm/io/
H A Dvatpit.c515 chan->vac_initial = src->initial; in vatpit_data_read()
516 chan->vac_reg_cr = in vatpit_data_read()
518 chan->vac_reg_ol = in vatpit_data_read()
521 chan->vac_mode = src->mode; in vatpit_data_read()
522 chan->vac_status = in vatpit_data_read()
530 chan->vac_time_target = in vatpit_data_read()
533 chan->vac_time_target = 0; in vatpit_data_read()
572 out->initial = chan->vac_initial; in vatpit_data_write()
573 out->reg_cr[0] = chan->vac_reg_cr; in vatpit_data_write()
578 out->mode = chan->vac_mode; in vatpit_data_write()
[all …]
/illumos-gate/usr/src/uts/common/io/arn/
H A Darn_calib.c187 switch (chan->chanmode) { in getNoiseFloorThresh()
204 chan->channelFlags)); in getNoiseFloorThresh()
318 if (!IS_CHAN_B(chan)) in ath9k_hw_iscal_supported()
323 if (!IS_CHAN_B(chan) && in ath9k_hw_iscal_supported()
324 !(IS_CHAN_2GHZ(chan) && IS_CHAN_HT20(chan))) in ath9k_hw_iscal_supported()
625 __func__, chan->channel, chan->channelFlags)); in ath9k_hw_reset_calvalid()
643 chan->channelFlags)); in ath9k_hw_reset_calvalid()
684 h = chan->nfCalHist; in ath9k_hw_loadnf()
750 h = chan->nfCalHist; in ath9k_hw_getnf()
795 __func__, chan->channel, chan->channelFlags)); in ath9k_hw_getchan_noise()
[all …]
H A Darn_eeprom.c623 (chan)), in ath9k_hw_get_4k_gain_boundaries_pdadcs()
791 (chan)), in ath9k_hw_get_def_gain_boundaries_pdadcs()
924 IS_CHAN_2GHZ(chan)); in ath9k_hw_get_legacy_target_powers()
926 IS_CHAN_2GHZ(chan)); in ath9k_hw_get_legacy_target_powers()
983 IS_CHAN_2GHZ(chan)); in ath9k_hw_get_target_powers()
985 IS_CHAN_2GHZ(chan)); in ath9k_hw_get_target_powers()
1058 if (IS_CHAN_2GHZ(chan)) { in ath9k_hw_set_def_power_cal_table()
1096 if (IS_CHAN_2GHZ(chan)) in ath9k_hw_set_def_power_cal_table()
1933 if (IS_CHAN_HT40(chan)) in ath9k_hw_def_set_txpower()
2063 if (IS_CHAN_HT40(chan)) in ath9k_hw_4k_set_txpower()
[all …]
H A Darn_hw.c75 if (chan && IS_CHAN_HT40(chan)) in ath9k_hw_mac_to_usec()
96 if (chan && IS_CHAN_HT40(chan)) in ath9k_hw_mac_to_clks()
1079 if (chan && IS_CHAN_5GHZ(chan)) in ath9k_hw_init_pll()
1087 if (chan && IS_CHAN_HALF_RATE(chan)) in ath9k_hw_init_pll()
1092 if (chan && IS_CHAN_5GHZ(chan)) { in ath9k_hw_init_pll()
1111 if (chan && IS_CHAN_HALF_RATE(chan)) in ath9k_hw_init_pll()
1116 if (chan && IS_CHAN_5GHZ(chan)) in ath9k_hw_init_pll()
1123 if (chan && IS_CHAN_HALF_RATE(chan)) in ath9k_hw_init_pll()
1128 if (chan && IS_CHAN_5GHZ(chan)) in ath9k_hw_init_pll()
1926 if (IS_CHAN_OFDM(chan) || IS_CHAN_HT(chan)) in ath9k_hw_channel_change()
[all …]
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211.c271 if (chan == 14) in ieee80211_ieee2mhz()
273 if (chan < 14) in ieee80211_ieee2mhz()
274 return (2412 + (chan - 1) * 5); in ieee80211_ieee2mhz()
280 if (chan == 14) in ieee80211_ieee2mhz()
282 if (chan < 14) /* 0-13 */ in ieee80211_ieee2mhz()
283 return (2412 + (chan - 1) * 5); in ieee80211_ieee2mhz()
284 if (chan < 27) /* 15-26 */ in ieee80211_ieee2mhz()
286 return (5000 + (chan * 5)); in ieee80211_ieee2mhz()
495 if (IEEE80211_IS_CHAN_HTA(chan)) in ieee80211_chan2mode()
503 else if (IEEE80211_IS_CHAN_T(chan)) in ieee80211_chan2mode()
[all …]
/illumos-gate/usr/src/common/mc/imc/
H A Dimc_dump.c121 imc_dump_channel(imc_channel_t *chan) in imc_dump_channel() argument
130 for (i = 0; i < chan->ich_ndimms; i++) { in imc_dump_channel()
132 imc_dimm_t *dimm = &chan->ich_dimms[i]; in imc_dump_channel()
151 for (i = 0; i < chan->ich_ndimms; i++) { in imc_dump_channel()
156 chan->ich_ntad_offsets); in imc_dump_channel()
158 for (i = 0; i < chan->ich_nrankileaves; i++) { in imc_dump_channel()
397 &chan->ich_ndimms) != 0 || in imc_restore_channel()
400 &chan->ich_ntad_offsets) != 0 || in imc_restore_channel()
403 &chan->ich_nrankileaves) != 0 || in imc_restore_channel()
409 imc_dimm_t *d = &chan->ich_dimms[i]; in imc_restore_channel()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dauth.c91 struct gss_channel_bindings_struct chan; in do_auth() local
95 chan.initiator_address.length = temp_buf.length; in do_auth()
96 chan.initiator_address.value = malloc(temp_buf.length); in do_auth()
97 memcpy(chan.initiator_address.value, temp_buf.value, in do_auth()
101 chan.acceptor_addrtype = GSS_C_AF_INET; /* OM_uint32 */ in do_auth()
102 chan.acceptor_address.length = temp_buf.length; in do_auth()
103 chan.acceptor_address.value = malloc(temp_buf.length); in do_auth()
104 memcpy(chan.acceptor_address.value, temp_buf.value, in do_auth()
107 chan.application_data.length = 0; in do_auth()
108 chan.application_data.value = 0; in do_auth()
[all …]
/illumos-gate/usr/src/cmd/audio/utilities/
H A Dhdr_misc.c215 char *chan; in audio_enc_to_str() local
227 chan = "(zero channels?)"; in audio_enc_to_str()
231 chan = "mono"; break; in audio_enc_to_str()
233 chan = "stereo"; break; in audio_enc_to_str()
235 chan = "quad"; break; in audio_enc_to_str()
237 chan = pbuf; in audio_enc_to_str()
276 (void) sprintf(str, "%s %s %s @ %s", chan, prec, enc, sbuf); in audio_enc_to_str()

123456