Home
last modified time | relevance | path

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

123456

/titanic_41/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()
606 struct ath_hal *ah = sc->sc_ah; in arn_update_txpow() local
610 (void) ath9k_hw_set_txpowerlimit(ah, sc->sc_config.txpowlimit); in arn_update_txpow()
612 (void) ath9k_hw_getcapability(ah, ATH9K_CAP_TXPOW, 1, &txpow); in arn_update_txpow()
724 struct ath_hal *ah = sc->sc_ah; in arn_setup_channels() local
[all …]
H A Darn_beacon.c41 struct ath_hal *ah = sc->sc_ah; in arn_beaconq_config() local
44 (void) ath9k_hw_get_txq_props(ah, sc->sc_beaconq, &qi); in arn_beaconq_config()
57 if (!ath9k_hw_set_txq_props(ah, sc->sc_beaconq, &qi)) { in arn_beaconq_config()
62 (void) ath9k_hw_resettxqueue(ah, sc->sc_beaconq); in arn_beaconq_config()
80 struct ath_hal *ah = sc->sc_ah; in arn_beacon_setup() local
95 (ah->ah_caps.hw_caps & ATH9K_HW_CAP_VEOL)) { in arn_beacon_setup()
122 ath9k_hw_set11n_txdesc(ah, ds, in arn_beacon_setup()
131 (void) ath9k_hw_filltxdesc(ah, ds, in arn_beacon_setup()
142 ath9k_hw_set11n_ratescenario(ah, ds, ds, 0, in arn_beacon_setup()
160 struct ath_hal *ah = sc->sc_ah; in arn_beacon_start_adhoc() 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 …]
/titanic_41/usr/src/cmd/ssh/sshd/
H A Dbsmaudit.c70 adt_session_data_t *ah = NULL; in audit_sshd_chauthtok() local
75 if (adt_start_session(&ah, NULL, 0) != 0) { in audit_sshd_chauthtok()
79 if (adt_set_user(ah, uid, gid, uid, gid, NULL, ADT_NEW) != 0) { in audit_sshd_chauthtok()
85 if ((event = adt_alloc_event(ah, ADT_passwd)) == NULL) { in audit_sshd_chauthtok()
105 (void) adt_end_session(ah); in audit_sshd_chauthtok()
110 (void) adt_end_session(ah); in audit_sshd_chauthtok()
117 audit_sshd_login(adt_session_data_t **ah, pid_t pid) in audit_sshd_login() argument
124 if (ah == NULL) { in audit_sshd_login()
130 if (adt_start_session(ah, NULL, 0) != 0) { in audit_sshd_login()
142 if (adt_set_from_ucred(*ah, ucred, ADT_NEW)) { in audit_sshd_login()
[all …]
/titanic_41/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 …]
/titanic_41/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_ads.c1122 smb_ads_handle_t *ah; in smb_ads_open_main() local
1139 ah = (smb_ads_handle_t *)malloc(sizeof (smb_ads_handle_t)); in smb_ads_open_main()
1140 if (ah == NULL) { in smb_ads_open_main()
1145 (void) memset(ah, 0, sizeof (smb_ads_handle_t)); in smb_ads_open_main()
1149 free(ah); in smb_ads_open_main()
1157 free(ah); in smb_ads_open_main()
1164 ah->ld = ld; in smb_ads_open_main()
1165 ah->domain = strdup(domain); in smb_ads_open_main()
1167 if (ah->domain == NULL) { in smb_ads_open_main()
1168 smb_ads_close(ah); in smb_ads_open_main()
[all …]
/titanic_41/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 …]
/titanic_41/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 …]
/titanic_41/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()
/titanic_41/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_logon.c85 adt_session_data_t *ah; in smbd_user_auth_logon() local
116 if (adt_start_session(&ah, NULL, 0)) { in smbd_user_auth_logon()
122 if ((event = adt_alloc_event(ah, ADT_smbd_session)) == NULL) { in smbd_user_auth_logon()
125 (void) adt_end_session(ah); in smbd_user_auth_logon()
141 adt_set_termid(ah, &termid); in smbd_user_auth_logon()
143 if (adt_set_user(ah, uid, gid, uid, gid, NULL, ADT_NEW)) { in smbd_user_auth_logon()
146 (void) adt_end_session(ah); in smbd_user_auth_logon()
163 (void) adt_end_session(ah); in smbd_user_auth_logon()
168 entry->sa_handle = ah; in smbd_user_auth_logon()
215 adt_session_data_t *ah; in smbd_user_auth_logoff() local
[all …]
/titanic_41/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsmb_autohome.c191 smb_autohome_t *ah = NULL; in smb_autohome_lookup() local
201 while ((ah = smb_autohome_getent(name)) != NULL) { in smb_autohome_lookup()
202 if (strcasecmp(ah->ah_name, name) == 0) in smb_autohome_lookup()
206 if (ah == NULL) { in smb_autohome_lookup()
209 while ((ah = smb_autohome_getent(name)) != NULL) { in smb_autohome_lookup()
210 if (strcasecmp(ah->ah_name, "*") == 0) { in smb_autohome_lookup()
211 ah->ah_name = (char *)name; in smb_autohome_lookup()
217 if (ah == NULL) { in smb_autohome_lookup()
220 while ((ah = smb_autohome_getent("+nsswitch")) != NULL) { in smb_autohome_lookup()
221 if (strcasecmp("+nsswitch", ah->ah_name) != 0) in smb_autohome_lookup()
[all …]
/titanic_41/usr/src/common/net/wanboot/crypt/
H A Daes_test.c67 void *ah; in aestest() local
78 if (aes_init(&ah) != 0) { in aestest()
89 aes_key(ah, key, td[i].keysize); in aestest()
96 aes_encrypt(ah, work); in aestest()
102 aes_decrypt(ah, work); in aestest()
112 aes_fini(ah); in aestest()
/titanic_41/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
/titanic_41/usr/src/uts/common/inet/
H A Dipsecah.h124 typedef struct ah { struct
133 #define AH_TOTAL_LEN(ah) (((ah)->ah_length << 2) + AH_BASELEN - \ argument
134 sizeof ((ah)->ah_replay))
146 #define AHOLD_TOTAL_LEN(ah) (((ah)->ah_length << 2) + AH_BASELEN) argument
/titanic_41/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()
/titanic_41/usr/src/psm/stand/bootblks/ufs/i386/
H A Dmboot.S164 mov ah, 2 /* get shift state */
191 mov ah, 0 /* reset disk */
197 mov ah, 0x41 /* chkext function */
231 mov ah, 0x42 /* "read LBA" */
238 mov ah, 0 /* reset disk */
253 mov ah, 0x8
285 inc ah /* ah = 1-rel sector */
292 or cl, ah /* cl{7:6} = cyl bits, cl{5:0} = sect */
304 mov ah, 0 /* reset disk */
360 mov ah, 0 /* get key */

123456