Home
last modified time | relevance | path

Searched refs:ah (Results 1 – 25 of 130) sorted by relevance

123456

/illumos-gate/usr/src/uts/common/io/arn/
H A Darn_hw.c47 static boolean_t ath9k_hw_set_reset_reg(struct ath_hal *ah, uint32_t type);
48 static void ath9k_hw_set_regs(struct ath_hal *ah, struct ath9k_channel *chan,
50 static uint32_t ath9k_hw_ini_fixup(struct ath_hal *ah,
53 static void ath9k_hw_9280_spur_mitigate(struct ath_hal *ah,
55 static void ath9k_hw_spur_mitigate(struct ath_hal *ah,
61 ath9k_hw_mac_usec(struct ath_hal *ah, uint32_t clks) in ath9k_hw_mac_usec() argument
63 if (ah->ah_curchan != NULL) in ath9k_hw_mac_usec()
65 CLOCK_RATE[ath9k_hw_chan2wmode(ah, ah->ah_curchan)]); in ath9k_hw_mac_usec()
71 ath9k_hw_mac_to_usec(struct ath_hal *ah, uint32_t clks) in ath9k_hw_mac_to_usec() argument
73 struct ath9k_channel *chan = ah->ah_curchan; in ath9k_hw_mac_to_usec()
[all …]
H A Darn_ani.c28 ath9k_hw_get_ani_channel_idx(struct ath_hal *ah, struct ath9k_channel *chan) in ath9k_hw_get_ani_channel_idx() argument
30 struct ath_hal_5416 *ahp = AH5416(ah); in ath9k_hw_get_ani_channel_idx()
50 ath9k_hw_ani_control(struct ath_hal *ah, enum ath9k_ani_cmd cmd, int param) in ath9k_hw_ani_control() argument
52 struct ath_hal_5416 *ahp = AH5416(ah); in ath9k_hw_ani_control()
69 REG_RMW_FIELD(ah, AR_PHY_DESIRED_SZ, in ath9k_hw_ani_control()
72 REG_RMW_FIELD(ah, AR_PHY_AGC_CTL1, in ath9k_hw_ani_control()
75 REG_RMW_FIELD(ah, AR_PHY_AGC_CTL1, in ath9k_hw_ani_control()
78 REG_RMW_FIELD(ah, AR_PHY_FIND_SIG, in ath9k_hw_ani_control()
98 REG_RMW_FIELD(ah, AR_PHY_SFCORR_LOW, in ath9k_hw_ani_control()
101 REG_RMW_FIELD(ah, AR_PHY_SFCORR_LOW, in ath9k_hw_ani_control()
[all …]
H A Darn_calib.c40 ath9k_hw_nf_in_range(struct ath_hal *ah, signed short nf) in ath9k_hw_nf_in_range() argument
106 ath9k_hw_do_getnf(struct ath_hal *ah, in ath9k_hw_do_getnf() argument
111 if (AR_SREV_9280_10_OR_LATER(ah)) in ath9k_hw_do_getnf()
112 nf = MS(REG_READ(ah, AR_PHY_CCA), AR9280_PHY_MINCCA_PWR); in ath9k_hw_do_getnf()
114 nf = MS(REG_READ(ah, AR_PHY_CCA), AR_PHY_MINCCA_PWR); in ath9k_hw_do_getnf()
122 if (AR_SREV_9280_10_OR_LATER(ah)) in ath9k_hw_do_getnf()
123 nf = MS(REG_READ(ah, AR_PHY_CH1_CCA), in ath9k_hw_do_getnf()
126 nf = MS(REG_READ(ah, AR_PHY_CH1_CCA), in ath9k_hw_do_getnf()
135 if (!AR_SREV_9280(ah)) { in ath9k_hw_do_getnf()
136 nf = MS(REG_READ(ah, AR_PHY_CH2_CCA), in ath9k_hw_do_getnf()
[all …]
H A Darn_regd.c54 ath9k_regd_get_eepromRD(struct ath_hal *ah) in ath9k_regd_get_eepromRD() argument
56 return (ah->ah_currentRD & ~WORLDWIDE_ROAMING_FLAG); in ath9k_regd_get_eepromRD()
72 ath9k_regd_is_eeprom_valid(struct ath_hal *ah) in ath9k_regd_is_eeprom_valid() argument
74 uint16_t rd = ath9k_regd_get_eepromRD(ah); in ath9k_regd_is_eeprom_valid()
96 ath9k_regd_is_fcc_midband_supported(struct ath_hal *ah) in ath9k_regd_is_fcc_midband_supported() argument
100 regcap = ah->ah_caps.reg_cap; in ath9k_regd_is_fcc_midband_supported()
109 ath9k_regd_is_ccode_valid(struct ath_hal *ah, uint16_t cc) in ath9k_regd_is_ccode_valid() argument
119 rd = ath9k_regd_get_eepromRD(ah); in ath9k_regd_is_ccode_valid()
146 ath9k_regd_get_wmodes_nreg(struct ath_hal *ah, in ath9k_regd_get_wmodes_nreg() argument
152 bcopy(ah->ah_caps.wireless_modes, modes_allowed, in ath9k_regd_get_wmodes_nreg()
[all …]
H A Darn_mac.c31 ath9k_hw_set_txq_interrupts(struct ath_hal *ah, in ath9k_hw_set_txq_interrupts() argument
34 struct ath_hal_5416 *ahp = AH5416(ah); in ath9k_hw_set_txq_interrupts()
42 REG_WRITE(ah, AR_IMR_S0, in ath9k_hw_set_txq_interrupts()
45 REG_WRITE(ah, AR_IMR_S1, in ath9k_hw_set_txq_interrupts()
48 REG_RMW_FIELD(ah, AR_IMR_S2, in ath9k_hw_set_txq_interrupts()
53 ath9k_hw_dmaRegDump(struct ath_hal *ah) in ath9k_hw_dmaRegDump() argument
60 REG_WRITE(ah, AR_MACMISC, in ath9k_hw_dmaRegDump()
71 val[i] = REG_READ(ah, AR_DMADBG_0 + (i * sizeof (uint32_t))); in ath9k_hw_dmaRegDump()
120 REG_READ(ah, AR_OBS_BUS_1))); in ath9k_hw_dmaRegDump()
122 "AR_CR 0x%x \n", REG_READ(ah, AR_CR))); in ath9k_hw_dmaRegDump()
[all …]
H A Darn_ath9k.h839 enum wireless_mode ath9k_hw_chan2wmode(struct ath_hal *ah,
841 boolean_t ath9k_hw_wait(struct ath_hal *ah, uint32_t reg, uint32_t mask,
844 boolean_t ath9k_get_channel_edges(struct ath_hal *ah,
846 uint16_t ath9k_hw_computetxtime(struct ath_hal *ah,
850 uint32_t ath9k_hw_mhz2ieee(struct ath_hal *ah, uint32_t freq, uint32_t flags);
851 void ath9k_hw_get_channel_centers(struct ath_hal *ah,
858 void ath9k_hw_detach(struct ath_hal *ah);
861 void ath9k_hw_rfdetach(struct ath_hal *ah);
866 boolean_t ath9k_hw_reset(struct ath_hal *ah, struct ath9k_channel *chan,
874 boolean_t ath9k_hw_keyreset(struct ath_hal *ah, uint16_t entry);
[all …]
H A Darn_eeprom.c60 ath9k_hw_analog_shift_rmw(struct ath_hal *ah, in ath9k_hw_analog_shift_rmw() argument
66 regVal = REG_READ(ah, reg) & ~mask; in ath9k_hw_analog_shift_rmw()
69 REG_WRITE(ah, reg, regVal); in ath9k_hw_analog_shift_rmw()
71 if (ah->ah_config.analog_shiftreg) in ath9k_hw_analog_shift_rmw()
131 ath9k_hw_eeprom_read(struct ath_hal *ah, uint32_t off, uint16_t *data) in ath9k_hw_eeprom_read() argument
133 (void) REG_READ(ah, AR5416_EEPROM_OFFSET + (off << AR5416_EEPROM_S)); in ath9k_hw_eeprom_read()
135 if (!ath9k_hw_wait(ah, AR_EEPROM_STATUS_DATA, in ath9k_hw_eeprom_read()
141 *data = MS(REG_READ(ah, AR_EEPROM_STATUS_DATA), in ath9k_hw_eeprom_read()
149 ath9k_hw_flash_map(struct ath_hal *ah) in ath9k_hw_flash_map() argument
158 ath9k_hw_flash_read(struct ath_hal *ah, uint32_t off, uint16_t *data) in ath9k_hw_flash_read() argument
[all …]
H A Darn_phy.c29 ath9k_hw_write_regs(struct ath_hal *ah, uint32_t modesIndex, uint32_t freqIndex, in ath9k_hw_write_regs() argument
32 struct ath_hal_5416 *ahp = AH5416(ah); in ath9k_hw_write_regs()
39 ath9k_hw_set_channel(struct ath_hal *ah, struct ath9k_channel *chan) in ath9k_hw_set_channel() argument
48 ath9k_hw_get_channel_centers(ah, chan, &centers); in ath9k_hw_set_channel()
69 txctl = REG_READ(ah, AR_PHY_CCK_TX_CTRL); in ath9k_hw_set_channel()
72 REG_WRITE(ah, AR_PHY_CCK_TX_CTRL, in ath9k_hw_set_channel()
75 REG_WRITE(ah, AR_PHY_CCK_TX_CTRL, in ath9k_hw_set_channel()
86 if (AR_SREV_9100(ah) || AR_SREV_9160_10_OR_LATER(ah)) in ath9k_hw_set_channel()
102 REG_WRITE(ah, AR_PHY(0x37), reg32); in ath9k_hw_set_channel()
104 ah->ah_curchan = chan; in ath9k_hw_set_channel()
[all …]
H A Darn_main.c250 arn_iowrite32(struct ath_hal *ah, uint32_t reg_offset, uint32_t val) in arn_iowrite32() argument
252 struct arn_softc *sc = ah->ah_sc; in arn_iowrite32()
253 if (ah->ah_config.serialize_regmode == SER_REG_MODE_ON) { in arn_iowrite32()
265 arn_ioread32(struct ath_hal *ah, uint32_t reg_offset) in arn_ioread32() argument
268 struct arn_softc *sc = ah->ah_sc; in arn_ioread32()
269 if (ah->ah_config.serialize_regmode == SER_REG_MODE_ON) { in arn_ioread32()
560 struct ath_hal *ah = sc->sc_ah; in arn_update_txpow() local
564 (void) ath9k_hw_set_txpowerlimit(ah, sc->sc_config.txpowlimit); in arn_update_txpow()
566 (void) ath9k_hw_getcapability(ah, ATH9K_CAP_TXPOW, 1, &txpow); in arn_update_txpow()
678 struct ath_hal *ah = sc->sc_ah; in arn_setup_channels() local
[all …]
H A Darn_recv.c152 struct ath_hal *ah = sc->sc_ah; in arn_opmode_init() local
159 ath9k_hw_setrxfilter(ah, rfilt); in arn_opmode_init()
162 if (ah->ah_caps.hw_caps & ATH9K_HW_CAP_BSSIDMASK) in arn_opmode_init()
163 (void) ath9k_hw_setbssidmask(ah, sc->sc_bssidmask); in arn_opmode_init()
166 ath9k_hw_setopmode(ah); in arn_opmode_init()
169 (void) ath9k_hw_setmac(ah, sc->sc_myaddr); in arn_opmode_init()
175 ath9k_hw_setmcastfilter(ah, mfilt[0], mfilt[1]); in arn_opmode_init()
276 struct ath_hal *ah = sc->sc_ah; in arn_startrecv() local
300 ath9k_hw_putrxbuf(ah, bf->bf_daddr); in arn_startrecv()
301 ath9k_hw_rxena(ah); in arn_startrecv()
[all …]
/illumos-gate/usr/src/boot/libsa/
H A Darp.c74 struct ether_arp *ah; in arpwhohas() local
102 ah = &wbuf.data.arp; in arpwhohas()
103 ah->arp_hrd = htons(ARPHRD_ETHER); in arpwhohas()
104 ah->arp_pro = htons(ETHERTYPE_IP); in arpwhohas()
105 ah->arp_hln = sizeof (ah->arp_sha); /* hardware address length */ in arpwhohas()
106 ah->arp_pln = sizeof (ah->arp_spa); /* protocol address length */ in arpwhohas()
107 ah->arp_op = htons(ARPOP_REQUEST); in arpwhohas()
108 MACPY(d->myea, ah->arp_sha); in arpwhohas()
109 bcopy(&d->myip, ah->arp_spa, sizeof (ah->arp_spa)); in arpwhohas()
111 bcopy(&addr, ah->arp_tpa, sizeof (ah->arp_tpa)); in arpwhohas()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_ads.c646 smb_ads_handle_t *ah; in smb_ads_open_main() local
668 ah = (smb_ads_handle_t *)malloc(sizeof (smb_ads_handle_t)); in smb_ads_open_main()
669 if (ah == NULL) { in smb_ads_open_main()
674 (void) memset(ah, 0, sizeof (smb_ads_handle_t)); in smb_ads_open_main()
679 free(ah); in smb_ads_open_main()
687 free(ah); in smb_ads_open_main()
694 ah->ld = ld; in smb_ads_open_main()
695 ah->domain = strdup(domain); in smb_ads_open_main()
697 if (ah->domain == NULL) { in smb_ads_open_main()
698 smb_ads_close(ah); in smb_ads_open_main()
[all …]
/illumos-gate/usr/src/lib/libm/common/C/
H A Datan2.c410 double ah, al, t, xh, x, y, z; in atan2() local
432 ah = pio2; in atan2()
435 ah = -pio2; in atan2()
443 ah = mpi; in atan2()
447 ah = al = zero; in atan2()
456 ah += pio4; in atan2()
458 inexact = (int)ah; /* inexact if ah != 0 */ in atan2()
460 return ((sy)? -ah : ah); in atan2()
463 if ((int)ah == 0) in atan2()
464 ah = y / x; in atan2()
[all …]
/illumos-gate/usr/src/cmd/login/
H A Dlogin_audit.c61 adt_session_data_t *ah; in audit_success() local
67 if (adt_start_session(&ah, NULL, ADT_USE_PROC_DATA)) { in audit_success()
71 if (adt_set_user(ah, pwd->pw_uid, pwd->pw_gid, in audit_success()
74 (void) adt_end_session(ah); in audit_success()
77 event = adt_alloc_event(ah, event_id); in audit_success()
93 (void) adt_end_session(ah); in audit_success()
108 audit_logout(ah); /* fork to catch logout */ in audit_success()
112 (void) adt_end_session(ah); in audit_success()
119 audit_logout(adt_session_data_t *ah) in audit_logout() argument
126 if ((logout = adt_alloc_event(ah, ADT_logout)) == NULL) { in audit_logout()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/pf_key/
H A Dkmc-update.sh41 delete ah spi 0x2112 dst 127.0.0.1
42 delete ah spi 0x5150 dst 127.0.0.1
43 delete ah spi 0x6768 dst 127.0.0.1
44 add ah spi 0x2112 dst 127.0.0.1 authalg md5 authkey \
46 add ah spi 0x5150 dst 127.0.0.1 authalg md5 authkey \
48 add ah spi 0x6768 dst 127.0.0.1 authalg md5 authkey \
135 ipseckey delete ah spi 0x2112 dst 127.0.0.1
136 ipseckey delete ah spi 0x5150 dst 127.0.0.1
137 ipseckey delete ah spi 0x6768 dst 127.0.0.1
/illumos-gate/usr/src/uts/common/io/ath/
H A Dath_aux.c115 struct ath_hal *ah = asc->asc_ah; in ath_calcrxfilter() local
118 rfilt = (ATH_HAL_GETRXFILTER(ah) & HAL_RX_FILTER_PHYERR) in ath_calcrxfilter()
136 struct ath_hal *ah = asc->asc_ah; in ath_set_data_queue() local
160 qnum = ATH_HAL_SETUPTXQUEUE(ah, HAL_TX_QUEUE_DATA, &qi); in ath_set_data_queue()
250 struct ath_hal *ah = asc->asc_ah; in ath_mode_init() local
255 ATH_HAL_SETRXFILTER(ah, rfilt); in ath_mode_init()
256 ATH_HAL_SETOPMODE(ah); in ath_mode_init()
257 ATH_HAL_SETMCASTFILTER(ah, asc->asc_mcast_hash[0], in ath_mode_init()
301 struct ath_hal *ah = asc->asc_ah; in ath_getchannels() local
309 if (!ath_hal_init_channels(ah, chans, IEEE80211_CHAN_MAX, &nchan, in ath_getchannels()
[all …]
H A Dath_main.c532 struct ath_hal *ah = asc->asc_ah; in ath_rx_handler() local
564 status = ATH_HAL_RXPROCDESC(ah, ds, in ath_rx_handler()
643 ATH_HAL_RXMONITOR(ah, &hal_node_stats, &asc->asc_curchan); in ath_rx_handler()
674 struct ath_hal *ah = asc->asc_ah; in ath_tx_start() local
838 dur = ath_hal_computetxtime(ah, rt, IEEE80211_ACK_SIZE, in ath_tx_start()
865 ctsduration += ath_hal_computetxtime(ah, in ath_tx_start()
869 ctsduration += ath_hal_computetxtime(ah, in ath_tx_start()
872 ctsduration += ath_hal_computetxtime(ah, in ath_tx_start()
886 ATH_HAL_SETUPTXDESC(ah, ds, in ath_tx_start()
915 ATH_HAL_SETUPXTXDESC(ah, ds, in ath_tx_start()
[all …]
/illumos-gate/usr/src/lib/libnwam/common/
H A Dlibnwam_audit.c40 adt_session_data_t *ah; in nwam_record_audit_event() local
43 if (adt_start_session(&ah, NULL, 0) != 0) in nwam_record_audit_event()
46 if (adt_set_from_ucred(ah, ucr, ADT_NEW) != 0) { in nwam_record_audit_event()
47 (void) adt_end_session(ah); in nwam_record_audit_event()
51 if ((edata = adt_alloc_event(ah, eid)) == NULL) { in nwam_record_audit_event()
52 (void) adt_end_session(ah); in nwam_record_audit_event()
81 (void) adt_end_session(ah); in nwam_record_audit_event()
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsmb_autohome.c195 smb_autohome_t *ah = NULL; in smb_autohome_lookup() local
205 while ((ah = smb_autohome_getent(name)) != NULL) { in smb_autohome_lookup()
206 if (strcasecmp(ah->ah_name, name) == 0) in smb_autohome_lookup()
210 if (ah == NULL) { in smb_autohome_lookup()
213 while ((ah = smb_autohome_getent(name)) != NULL) { in smb_autohome_lookup()
214 if (strcasecmp(ah->ah_name, "*") == 0) { in smb_autohome_lookup()
215 ah->ah_name = (char *)name; in smb_autohome_lookup()
221 if (ah == NULL) { in smb_autohome_lookup()
224 while ((ah = smb_autohome_getent("+nsswitch")) != NULL) { in smb_autohome_lookup()
225 if (strcasecmp("+nsswitch", ah->ah_name) != 0) in smb_autohome_lookup()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_misc.c49 static void tavor_udav_sync(tavor_ahhdl_t ah, tavor_hw_udav_t *udav,
79 tavor_ahhdl_t ah; in tavor_ah_alloc() local
118 ah = (tavor_ahhdl_t)rsrc->tr_addr; in tavor_ah_alloc()
119 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*ah)) in tavor_ah_alloc()
196 ah->ah_udavrsrcp = udav; in tavor_ah_alloc()
197 ah->ah_rsrcp = rsrc; in tavor_ah_alloc()
198 ah->ah_pdhdl = pd; in tavor_ah_alloc()
199 ah->ah_mrhdl = mr; in tavor_ah_alloc()
200 ah->ah_save_guid = attr_p->av_dgid.gid_guid; in tavor_ah_alloc()
201 ah->ah_save_srate = attr_p->av_srate; in tavor_ah_alloc()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dstart_eltorito.S151 mov $0x42, %ah /* Extended Read */
181 mov %ah, %dl /* Save error code */
185 mov ABS(dapa+2), %ah /* Sector transfer count */
188 mov $1, %ah /* Drop transfer size to 1 */
193 shr $1, %ah /* Otherwise, try to reduce */
194 adc $0, %ah /* the max transfer size, but not */
196 mov %ah, ABS(MaxTransfer)
197 mov %ah, ABS(dapa+2)
224 mov $0x0E, %ah
260 mov $0x0E, %ah
/illumos-gate/usr/src/cmd/power/
H A Dsys-suspend.c136 pm_audit_event(adt_session_data_t *ah, au_event_t event_id, int status) in pm_audit_event() argument
141 if ((event = adt_alloc_event(ah, event_id)) == NULL) { in pm_audit_event()
275 adt_session_data_t *ah = NULL; /* audit session handle */ in pm_suspend() local
335 if (adt_start_session(&ah, NULL, ADT_USE_PROC_DATA) == 0) { in pm_suspend()
336 if ((event = adt_alloc_event(ah, event_id)) != NULL) { in pm_suspend()
381 if (ah != NULL) { in pm_suspend()
383 ((event = adt_alloc_event(ah, ADT_uadmin_thaw)) in pm_suspend()
400 pm_do_auth(ah); in pm_suspend()
403 (void) adt_end_session(ah); in pm_suspend()
807 pm_do_auth(adt_session_data_t *ah) in pm_do_auth() argument
[all …]
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_logon.c156 adt_session_data_t *ah = NULL; in smbd_logon_audit() local
187 if (adt_start_session(&ah, NULL, 0)) { in smbd_logon_audit()
192 if ((event = adt_alloc_event(ah, ADT_smbd_session)) == NULL) { in smbd_logon_audit()
209 adt_set_termid(ah, &termid); in smbd_logon_audit()
211 if (adt_set_user(ah, uid, gid, uid, gid, NULL, ADT_NEW)) { in smbd_logon_audit()
232 entry->sa_handle = ah; in smbd_logon_audit()
244 (void) adt_end_session(ah); in smbd_logon_audit()
306 adt_session_data_t *ah; in smbd_user_auth_logoff() local
323 ah = entry->sa_handle; in smbd_user_auth_logoff()
325 if ((event = adt_alloc_event(ah, ADT_smbd_logoff)) == NULL) { in smbd_user_auth_logoff()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ipsec.c106 ah_t *ah = (ah_t *)hdr; in interpret_ah() local
122 aligned_ah = ah; in interpret_ah()
139 auth_data = (uint8_t *)(ah + 1); in interpret_ah()
152 (void) sprintf(get_line((char *)&ah->ah_nexthdr - dlc_header, in interpret_ah()
155 (void) sprintf(get_line((char *)&ah->ah_length - dlc_header, 1), in interpret_ah()
157 (void) sprintf(get_line((char *)&ah->ah_reserved - dlc_header, in interpret_ah()
160 (void) sprintf(get_line((char *)&ah->ah_spi - dlc_header, 4), in interpret_ah()
162 (void) sprintf(get_line((char *)&ah->ah_replay - dlc_header, 4), in interpret_ah()
/illumos-gate/usr/src/uts/common/inet/
H A Dipsecah.h140 typedef struct ah { struct
149 #define AH_TOTAL_LEN(ah) (((ah)->ah_length << 2) + AH_BASELEN - \ argument
150 sizeof ((ah)->ah_replay))
162 #define AHOLD_TOTAL_LEN(ah) (((ah)->ah_length << 2) + AH_BASELEN) argument

123456