Searched refs:atd (Results 1 - 11 of 11) sorted by relevance

/freebsd-10-stable/tools/tools/ath/athspectral/
H A Dathspectral.c46 struct ath_diag atd; member in struct:spectralhandler
63 strncpy(spectral->atd.ad_name, devid, sizeof (spectral->atd.ad_name));
66 spectral->atd.ad_id = HAL_DIAG_REVS;
67 spectral->atd.ad_out_data = (caddr_t) &revs;
68 spectral->atd.ad_out_size = sizeof(revs);
69 if (ioctl(spectral->s, SIOCGATHDIAG, &spectral->atd) < 0) {
70 warn("%s", spectral->atd.ad_name);
113 spectral->atd.ad_id = SPECTRAL_CONTROL_SET_PARAMS | ATH_DIAG_IN;
114 spectral->atd
[all...]
/freebsd-10-stable/tools/tools/ath/athpow/
H A Dathpow.c77 struct ath_diag atd; local
101 strncpy(atd.ad_name, ifname, sizeof (atd.ad_name));
103 atd.ad_id = HAL_DIAG_REVS;
104 atd.ad_out_data = (caddr_t) &revs;
105 atd.ad_out_size = sizeof(revs);
106 if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
107 err(1, atd.ad_name);
112 atd.ad_id = HAL_DIAG_TXRATES;
113 atd
[all...]
/freebsd-10-stable/tools/tools/ath/athpoke/
H A Dathpoke.c53 static uint32_t regread(int s, struct ath_diag *atd, uint32_t r);
54 static void regwrite(int s, struct ath_diag *atd, uint32_t r, uint32_t v);
67 struct ath_diag atd; local
88 strncpy(atd.ad_name, ifname, sizeof (atd.ad_name));
90 atd.ad_id = HAL_DIAG_REVS;
91 atd.ad_out_data = (caddr_t) &state.revs;
92 atd.ad_out_size = sizeof(state.revs);
93 if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
94 err(1, atd
123 regread(int s, struct ath_diag *atd, uint32_t r) argument
142 regwrite(int s, struct ath_diag *atd, uint32_t r, uint32_t v) argument
[all...]
/freebsd-10-stable/tools/tools/ath/ath_prom_read/
H A Dath_prom_read.c43 struct ath_diag atd; variable in typeref:struct:ath_diag
119 strncpy(atd.ad_name, ifname, sizeof (atd.ad_name));
122 atd.ad_id = HAL_DIAG_EEPROM;
123 atd.ad_out_data = (caddr_t) eep;
124 atd.ad_out_size = sizeof(eep);
125 if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
126 err(1, "ioctl: %s", atd.ad_name);
/freebsd-10-stable/tools/tools/ath/athradar/
H A Dathradar.c46 struct ath_diag atd; member in struct:radarhandler
63 strncpy(radar->atd.ad_name, devid, sizeof (radar->atd.ad_name));
66 radar->atd.ad_id = HAL_DIAG_REVS;
67 radar->atd.ad_out_data = (caddr_t) &revs;
68 radar->atd.ad_out_size = sizeof(revs);
69 if (ioctl(radar->s, SIOCGATHDIAG, &radar->atd) < 0) {
70 warn(radar->atd.ad_name);
155 radar->atd.ad_id = DFS_SET_THRESH | ATH_DIAG_IN;
156 radar->atd
[all...]
/freebsd-10-stable/tools/tools/ath/athkey/
H A Dathkey.c132 struct ath_diag atd; local
172 strncpy(atd.ad_name, ifname, sizeof (atd.ad_name));
173 atd.ad_id = op | ATH_DIAG_IN | ATH_DIAG_DYN;
174 atd.ad_out_data = NULL;
175 atd.ad_out_size = 0;
178 atd.ad_in_data = (caddr_t) &keyix;
179 atd.ad_in_size = sizeof(u_int16_t);
180 if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
181 err(1, "ioctl: %s", atd
[all...]
/freebsd-10-stable/tools/tools/ath/athsurvey/
H A Dathsurvey.c57 struct ath_diag atd; local
59 memset(&atd, '\0', sizeof(atd));
61 atd.ad_id = HAL_DIAG_CHANSURVEY | ATH_DIAG_OUT;
62 atd.ad_in_size = 0;
63 atd.ad_in_data = NULL;
64 atd.ad_out_size = sizeof(HAL_CHANNEL_SURVEY);
65 atd.ad_out_data = (caddr_t) hs;
66 strncpy(atd.ad_name, ifname, sizeof(atd
[all...]
/freebsd-10-stable/tools/tools/ath/athprom/
H A Dathprom.c52 struct ath_diag atd; variable in typeref:struct:ath_diag
126 strncpy(atd.ad_name, ifname, sizeof (atd.ad_name));
158 atd.ad_id = HAL_DIAG_EEPROM;
159 atd.ad_out_data = (caddr_t) &eep;
160 atd.ad_out_size = sizeof(eep);
161 if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
162 err(1, "ioctl: %s", atd.ad_name);
183 atd.ad_id = HAL_DIAG_EEREAD | ATH_DIAG_IN | ATH_DIAG_DYN;
184 atd
[all...]
/freebsd-10-stable/tools/tools/ath/athregs/
H A Ddumpregs.c61 static int ath_hal_setupregs(struct ath_diag *atd, int what);
92 struct ath_diag atd; local
147 strncpy(atd.ad_name, ifname, sizeof (atd.ad_name));
154 atd.ad_id = HAL_DIAG_REVS;
155 atd.ad_out_data = (caddr_t) &state.revs;
156 atd.ad_out_size = sizeof(state.revs);
157 if (ioctl(s, SIOCGATHDIAG, &atd) < 0)
158 err(1, atd.ad_name);
160 if (ath_hal_setupregs(&atd, wha
382 ath_hal_setupregs(struct ath_diag *atd, int what) argument
[all...]
/freebsd-10-stable/tools/tools/ath/athstats/
H A Dathstats.c473 struct ath_diag atd; member in struct:athstatfoo_p
485 strncpy(wf->atd.ad_name, ifname, sizeof (wf->atd.ad_name));
507 wf->atd.ad_id = 5;
508 wf->atd.ad_out_data = (caddr_t) &stats->ani_state;
509 wf->atd.ad_out_size = sizeof(stats->ani_state);
510 if (ioctl(wf->s, SIOCGATHDIAG, &wf->atd) < 0) {
511 warn("ioctl: %s", wf->atd.ad_name);
514 wf->atd.ad_id = 8;
515 wf->atd
[all...]
/freebsd-10-stable/tools/tools/ath/athaggrstats/
H A Dathaggrstats.c154 struct ath_diag atd; member in struct:athaggrstatfoo_p

Completed in 74 milliseconds