Symbol: ac
bin/ed/main.c
113
main(int ac, char *av[])
bin/ed/main.c
117
volatile int argc = ac;
common/lib/libc/md/md5c.c
150
#define FF(a, b, c, d, x, s, ac) { \
common/lib/libc/md/md5c.c
151
(a) += F ((b), (c), (d)) + (x) + (UINT4)(ac); \
common/lib/libc/md/md5c.c
156
#define GG(a, b, c, d, x, s, ac) { \
common/lib/libc/md/md5c.c
157
(a) += G ((b), (c), (d)) + (x) + (UINT4)(ac); \
common/lib/libc/md/md5c.c
162
#define HH(a, b, c, d, x, s, ac) { \
common/lib/libc/md/md5c.c
163
(a) += H ((b), (c), (d)) + (x) + (UINT4)(ac); \
common/lib/libc/md/md5c.c
168
#define II(a, b, c, d, x, s, ac) { \
common/lib/libc/md/md5c.c
169
(a) += I ((b), (c), (d)) + (x) + (UINT4)(ac); \
crypto/dist/ipsec-tools/src/racoon/eaytest.c
1019
main(ac, av)
crypto/dist/ipsec-tools/src/racoon/eaytest.c
1020
int ac;
crypto/dist/ipsec-tools/src/racoon/eaytest.c
1034
ac--;
crypto/dist/ipsec-tools/src/racoon/eaytest.c
1038
if ((ac == 0) || (strcmp(*av, func[i].name) == 0)) {
crypto/dist/ipsec-tools/src/racoon/eaytest.c
1039
if ((func[i].func)(ac, av) != 0) {
crypto/dist/ipsec-tools/src/racoon/eaytest.c
1043
if (ac)
crypto/dist/ipsec-tools/src/racoon/eaytest.c
1047
if (ac && i == len)
crypto/dist/ipsec-tools/src/racoon/eaytest.c
112
rsatest(ac, av)
crypto/dist/ipsec-tools/src/racoon/eaytest.c
113
int ac;
crypto/dist/ipsec-tools/src/racoon/eaytest.c
220
certtest(ac, av)
crypto/dist/ipsec-tools/src/racoon/eaytest.c
221
int ac;
crypto/dist/ipsec-tools/src/racoon/eaytest.c
340
if (ac > 1) {
crypto/dist/ipsec-tools/src/racoon/eaytest.c
649
ciphertest(ac, av)
crypto/dist/ipsec-tools/src/racoon/eaytest.c
650
int ac;
crypto/dist/ipsec-tools/src/racoon/eaytest.c
730
hmactest(ac, av)
crypto/dist/ipsec-tools/src/racoon/eaytest.c
731
int ac;
crypto/dist/ipsec-tools/src/racoon/eaytest.c
840
sha1test(ac, av)
crypto/dist/ipsec-tools/src/racoon/eaytest.c
841
int ac;
crypto/dist/ipsec-tools/src/racoon/eaytest.c
877
md5test(ac, av)
crypto/dist/ipsec-tools/src/racoon/eaytest.c
878
int ac;
crypto/dist/ipsec-tools/src/racoon/eaytest.c
914
dhtest(ac, av)
crypto/dist/ipsec-tools/src/racoon/eaytest.c
915
int ac;
crypto/dist/ipsec-tools/src/racoon/eaytest.c
987
bntest(ac, av)
crypto/dist/ipsec-tools/src/racoon/eaytest.c
988
int ac;
crypto/dist/ipsec-tools/src/racoon/getcertsbyname.c
375
main(ac, av)
crypto/dist/ipsec-tools/src/racoon/getcertsbyname.c
376
int ac;
crypto/dist/ipsec-tools/src/racoon/getcertsbyname.c
382
if (ac < 2) {
crypto/dist/ipsec-tools/src/racoon/main.c
165
parse(int ac, char **av)
crypto/dist/ipsec-tools/src/racoon/main.c
178
while ((c = getopt(ac, av, "dLFp:P:f:l:vVZBC"
crypto/dist/ipsec-tools/src/racoon/main.c
253
ac -= optind;
crypto/dist/ipsec-tools/src/racoon/main.c
256
if (ac != 0) {
crypto/dist/ipsec-tools/src/racoon/main.c
263
main(int ac, char **av)
crypto/dist/ipsec-tools/src/racoon/main.c
266
parse(ac, av);
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
252
main(int ac, char **av)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
273
while ((c = getopt(ac, av, "lds:")) != -1) {
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
293
ac -= optind;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
296
combuf = get_combuf(ac, (const char **)(intptr_t)av);
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
333
get_combuf(int ac, const char **av)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
337
if (ac == 0) {
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
354
ac--;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
356
return (cp->func)(ac, av);
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
380
f_reload(int ac __unused, const char **av __unused)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
387
f_getevt(int ac, const char **av __unused)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
390
if (ac >= 1)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
398
f_getsched(int ac __unused, const char **av __unused)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
404
f_getsa(int ac, const char **av)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
409
if (ac != 1)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
419
f_getsacert(int ac, const char **av)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
423
idx = get_index(ac, av);
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
439
f_flushsa(int ac, const char **av)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
444
if (ac != 1)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
454
f_deletesa(int ac, const char **av)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
460
if (ac < 1)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
468
ac--;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
471
idx = get_index(ac, av);
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
477
idx = get_index(ac, av);
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
500
f_deleteallsadst(int ac, const char **av)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
505
idx = get_proto_and_index(ac, av, &proto);
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
523
f_exchangesa(int ac, const char **av)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
535
if (ac < 1)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
540
if (ac < 2)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
551
ac -= 2;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
554
if (ac >= 2 && strcmp(av[0], "-n") == 0) {
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
558
ac -= 2;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
561
if (ac >= 1 && strcmp(av[0], "-w") == 0) {
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
564
ac--;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
567
idx = get_proto_and_index(ac, av, &proto);
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
623
f_vpnc(int ac, const char **av)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
634
if (ac < 1)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
641
if (ac < 2)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
647
ac -= 2;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
651
if (ac < 1)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
653
if (ac > 1)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
685
f_vpnd(int ac, const char **av)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
693
if (ac < 1)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
695
if (ac > 1)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
710
f_logoutusr(int ac, const char **av)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
717
if (ac < 1)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
735
get_proto_and_index(int ac, const char **av, uint16_t *proto)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
740
if (ac < 1)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
748
ac--;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
753
idx = get_index(ac, av);
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
783
get_index(int ac, const char **av)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
787
if (ac != 3 && ac != 4) {
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
797
ac--;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
799
return get_comindexes(family, ac, av);
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
816
get_comindexes(int family, int ac, const char **av)
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
825
if (ac != 2 && ac != 3) {
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
844
ac--;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
864
ac--;
crypto/dist/ipsec-tools/src/racoon/racoonctl.c
865
if(ac){
distrib/utils/more/command.c
173
if ((!quit_at_eof || short_file) && hit_eof && curr_ac + 1 >= ac)
distrib/utils/more/command.c
185
curr_ac + 1, ac);
distrib/utils/more/command.c
609
if (ac <= 0) {
distrib/utils/more/command.c
613
for (width = indx = 0; indx < ac;) {
distrib/utils/more/extern.h
159
extern int ac;
distrib/utils/more/main.c
163
if (curr_ac >= ac)
distrib/utils/more/main.c
200
if (curr_ac + n >= ac) {
distrib/utils/more/main.c
273
ac = argc;
distrib/utils/more/main.c
286
if (ac < 1) {
distrib/utils/more/main.c
294
} while (++curr_ac < ac);
distrib/utils/more/main.c
306
if (ac < 1)
distrib/utils/more/main.c
316
} while (file < 0 && ++curr_ac < ac);
distrib/utils/more/main.c
70
int ac;
distrib/utils/more/main.c
93
if (curr_ac >= ac) {
games/fortune/fortune/fortune.c
191
main(int ac, char *av[])
games/fortune/fortune/fortune.c
197
getargs(ac, av);
games/fortune/strfile/strfile.c
153
main(int ac, char **av)
games/fortune/strfile/strfile.c
168
getargs(ac, av); /* evalute arguments */
games/fortune/unstr/unstr.c
88
main(int ac __unused, char **av)
games/hack/def.objects.h
203
#define ARMOR(name,prob,delay,ac,can) { name, NULL, NULL, 1, 0,\
games/hack/def.objects.h
204
ARMOR_SYM, prob, delay, 8, ac, can, 0 }
games/hack/def.permonst.h
69
schar mlevel,mmove,ac,damn,damd;
games/hack/hack.do.c
413
tmp = -1 + u.ulevel + mon->data->ac + abon();
games/hack/hack.do.c
441
tmp = -1 + u.ulevel + mon->data->ac + abon();
games/hack/hack.fight.c
389
tmp = u.uluck + u.ulevel + mdat->ac + abon();
games/hack/hack.fight.c
90
tmp = pd->ac + pa->mlevel;
games/hack/hack.mon.c
832
if (mdat->ac < 3)
games/hack/hack.mon.c
833
tmp += 2 * (7 - mdat->ac);
games/hack/hack.pri.c
788
mtmp->data->ac, (mtmp->data->damn + 1) * (mtmp->data->damd + 1));
games/hack/hack.shk.c
845
int tmp, ac;
games/hack/hack.shk.c
877
ac = ARM_BONUS(obj);
games/hack/hack.shk.c
878
if (ac <= -10) /* probably impossible */
games/hack/hack.shk.c
879
ac = -9;
games/hack/hack.shk.c
880
tmp = 100 + ac * ac * rnd(10 + ac);
games/hack/hack.zap.c
563
if (rnd(20) < 18 + mon->data->ac) {
games/hack/hack.zap.c
96
if (u.uswallow || rnd(20) < 10 + mtmp->data->ac) {
games/hunt/hunt/hunt.c
132
main(int ac, char **av)
games/hunt/hunt/hunt.c
141
while ((c = getopt(ac, av, "Sbcfh:l:mn:op:qst:w:")) != -1) {
games/hunt/hunt/hunt.c
220
if (optind + 1 < ac)
games/hunt/hunt/hunt.c
222
else if (optind + 1 == ac)
games/hunt/hunt/hunt.c
223
contacthost = av[ac - 1];
games/hunt/hunt/hunt.c
225
if (optind < ac)
games/hunt/huntd/driver.c
203
main(int ac, char **av)
games/hunt/huntd/driver.c
215
while ((c = getopt(ac, av, "sp:")) != -1) {
games/hunt/huntd/driver.c
236
if (optind < ac)
games/larn/scores.c
694
logg.ac = c[AC];
games/larn/scores.c
75
short ac; /* armor class of player */
games/larn/scores.c
789
lprintf(" Experience Level: %ld, AC: %ld, HP: %ld/%ld, Elapsed Time: %ld minutes\n", (long) (logg.lev), (long) (logg.ac), (long) (logg.hp), (long) (logg.hpmax), (long) (logg.elapsedtime));
games/mille/mille.c
55
main(int ac, char *av[])
games/mille/mille.c
68
switch (ac) {
games/monop/monop.c
226
main(int ac, char *av[])
games/monop/monop.c
235
if (ac > 1) {
lib/libc/nameser/ns_name.c
755
int ac, bc;
lib/libc/nameser/ns_name.c
757
while (ac = *a, bc = *b, ac != 0 && bc != 0) {
lib/libc/nameser/ns_name.c
758
if ((ac & NS_CMPRSFLGS) != 0 || (bc & NS_CMPRSFLGS) != 0) {
lib/libc/nameser/ns_name.c
762
if (a + ac >= ae || b + bc >= be) {
lib/libc/nameser/ns_name.c
766
if (ac != bc || strncasecmp((const char *) ++a,
lib/libc/nameser/ns_name.c
768
(size_t)ac) != 0)
lib/libc/nameser/ns_name.c
770
a += ac, b += bc;
lib/libc/nameser/ns_name.c
772
return (ac == 0 && bc == 0);
lib/libc/net/gethnamaddr.c
148
char ac;
lib/libc/net/getnetnamadr.c
101
char ac;
lib/libcurses/EXAMPLES/ex1.c
253
sprintf( nostr, "Orig:%x", al[ ac ]);
lib/libcurses/EXAMPLES/ex1.c
255
ac = ( ac + 1 ) % 16;
lib/libcurses/EXAMPLES/ex1.c
256
bcc.attributes = al[ ac ];
lib/libcurses/EXAMPLES/ex1.c
259
sprintf( nostr, "New:%x", al[ ac ]);
lib/libcurses/EXAMPLES/ex1.c
58
int i, j, c, n = 0, ac = 0;
lib/libcurses/PSD.doc/life.c
49
main(ac, av)
lib/libcurses/PSD.doc/life.c
50
int ac;
lib/libcurses/PSD.doc/life.c
53
evalargs(ac, av); /* evaluate arguments */
lib/libedit/TEST/tc1.c
176
int ac, cc, co;
lib/libedit/TEST/tc1.c
200
ac = cc = co = 0;
lib/libedit/TEST/tc1.c
201
ncontinuation = tok_line(tok, li, &ac, &av, &cc, &co);
lib/libedit/TEST/tc1.c
209
ncontinuation, ac, cc, co);
lib/libedit/TEST/tc1.c
234
for (i = 0; i < ac; i++) {
lib/libedit/TEST/tc1.c
247
switch (ac) {
lib/libedit/TEST/tc1.c
275
} else if (el_parse(el, ac, av) == -1) {
lib/libedit/TEST/wtc1.c
158
int ac, cc, co, rc;
lib/libedit/TEST/wtc1.c
181
ac = cc = co = 0;
lib/libedit/TEST/wtc1.c
182
ncontinuation = tok_wline(tok, li, &ac, &av, &cc, &co);
lib/libedit/TEST/wtc1.c
191
ncontinuation, ac, cc, co);
lib/libedit/TEST/wtc1.c
201
for (i = 0; i < ac; ++i) {
lib/libedit/TEST/wtc1.c
212
switch(ac) {
lib/libedit/TEST/wtc1.c
242
} else if (el_wparse(el, ac, av) == -1) {
lib/libpam/modules/pam_ksu/pam_ksu.c
108
int ac __unused, const char *av[] __unused)
lib/libresolv/support.c
105
u_int32_t ac;
lib/libresolv/support.c
112
for (ac = 0; size > 1; size -= 2, kp += 2)
lib/libresolv/support.c
113
ac += ((*kp) << 8) + *(kp + 1);
lib/libresolv/support.c
116
ac += ((*kp) << 8);
lib/libresolv/support.c
117
ac += (ac >> 16) & 0xffff;
lib/libresolv/support.c
119
return (ac & 0xffff);
lib/libutil/parsedate.y
1332
main(int ac, char *av[])
libexec/fingerd/fingerd.c
100
av[ac++] = __UNCONST("-s");
libexec/fingerd/fingerd.c
103
av[ac++] = __UNCONST("-h");
libexec/fingerd/fingerd.c
106
av[ac++] = __UNCONST("-m");
libexec/fingerd/fingerd.c
109
av[ac++] = __UNCONST("-p");
libexec/fingerd/fingerd.c
112
av[ac++] = __UNCONST("-g");
libexec/fingerd/fingerd.c
115
av[ac++] = __UNCONST("-8");
libexec/fingerd/fingerd.c
121
if (ac >= ENTRIES)
libexec/fingerd/fingerd.c
151
if (ac >= ENTRIES)
libexec/fingerd/fingerd.c
153
av[ac++] = __UNCONST("--");
libexec/fingerd/fingerd.c
155
for (lp = line, ap = &av[ac]; ac < ENTRIES;) {
libexec/fingerd/fingerd.c
178
ac++;
libexec/fingerd/fingerd.c
67
int ch, ac = 2;
regress/lib/libc/divrem/divremtest.c
81
int main(int ac, char **av)
regress/lib/libc/divrem/divremtest.c
89
enable_time_output = ac <= 1;
sbin/fsdb/fsdb.c
424
#define GETINUM(ac,inum) inum = strtoull(argv[ac], &cp, 0); \
sbin/fsdb/fsdb.c
425
if (inum < UFS_ROOTINO || inum >= maxino || cp == argv[ac] || *cp != '\0' ) { \
sbin/ifconfig/ieee80211.c
960
const struct ieee80211_wme_acparams *ac =
sbin/ifconfig/ieee80211.c
965
, MS(ac->acp_aci_aifsn, WME_PARAM_ACM) ? "acm " : ""
sbin/ifconfig/ieee80211.c
966
, MS(ac->acp_aci_aifsn, WME_PARAM_AIFSN)
sbin/ifconfig/ieee80211.c
967
, MS(ac->acp_logcwminmax, WME_PARAM_LOGCWMIN)
sbin/ifconfig/ieee80211.c
968
, MS(ac->acp_logcwminmax, WME_PARAM_LOGCWMAX)
sbin/ifconfig/ieee80211.c
969
, LE_READ_2(&ac->acp_txop)
sys/altq/altq_var.h
68
#define ACC_LOCK_INIT(ac) mtx_init(&(ac)->acc_mtx, "classifier", MTX_DEF)
sys/altq/altq_var.h
69
#define ACC_LOCK_DESTROY(ac) mtx_destroy(&(ac)->acc_mtx)
sys/altq/altq_var.h
70
#define ACC_LOCK(ac) mtx_lock(&(ac)->acc_mtx)
sys/altq/altq_var.h
71
#define ACC_UNLOCK(ac) mtx_unlock(&(ac)->acc_mtx)
sys/altq/altq_var.h
73
#define ACC_LOCK_INIT(ac)
sys/altq/altq_var.h
74
#define ACC_LOCK_DESTROY(ac)
sys/altq/altq_var.h
75
#define ACC_LOCK(ac)
sys/altq/altq_var.h
76
#define ACC_UNLOCK(ac)
sys/arch/amiga/dev/toccata.c
603
struct ad1848_softc *ac;
sys/arch/amiga/dev/toccata.c
606
ac = addr;
sys/arch/amiga/dev/toccata.c
607
return ad1848_mixer_set_port(ac, csmapping,
sys/arch/amiga/dev/toccata.c
608
ac->mode == 2 ? nummap : nummap - 2, cp);
sys/arch/amiga/dev/toccata.c
614
struct ad1848_softc *ac;
sys/arch/amiga/dev/toccata.c
617
ac = addr;
sys/arch/amiga/dev/toccata.c
618
return ad1848_mixer_get_port(ac, csmapping,
sys/arch/amiga/dev/toccata.c
619
ac->mode == 2 ? nummap : nummap - 2, cp);
sys/arch/evbppc/sam460ex/sam460ex_fdt.c
117
uint32_t ac, sc;
sys/arch/evbppc/sam460ex/sam460ex_fdt.c
139
ac = 2;
sys/arch/evbppc/sam460ex/sam460ex_fdt.c
141
of_getprop_uint32(root, "#address-cells", &ac);
sys/arch/evbppc/sam460ex/sam460ex_fdt.c
144
if (node >= 0 && ac > 0 && sc > 0 && ac + sc <= 4) {
sys/arch/evbppc/sam460ex/sam460ex_fdt.c
147
if (of_getprop_uint32_array(node, "reg", reg, ac + sc) == 0)
sys/arch/evbppc/sam460ex/sam460ex_fdt.c
148
info->fi_memsize = reg[ac + sc - 1];
sys/arch/hpcmips/vr/vrdmaau.c
110
vrdmaau_set_aiuout(vrdmaau_chipset_tag_t ac, void *addr)
sys/arch/hpcmips/vr/vrdmaau.c
112
struct vrdmaau_softc *sc = ac->ac_sc;
sys/arch/hpcmips/vr/vrdmaau.c
127
vrdmaau_set_fir(vrdmaau_chipset_tag_t ac, void *addr)
sys/arch/hpcmips/vr/vrdmaau.c
129
struct vrdmaau_softc *sc = ac->ac_sc;
sys/arch/hpcmips/vr/vrdmaau.c
93
vrdmaau_set_aiuin(vrdmaau_chipset_tag_t ac, void *addr)
sys/arch/hpcmips/vr/vrdmaau.c
95
struct vrdmaau_softc *sc = ac->ac_sc;
sys/arch/hppa/stand/common/exec_hppa.c
54
size_t ac = BOOTARG_LEN;
sys/arch/hppa/stand/common/exec_hppa.c
57
makebootargs(av, &ac);
sys/arch/hppa/stand/common/exec_hppa.c
81
BOOTARG_APIVER, ac, av);
sys/arch/i386/pnpbios/ym_pnpbios.c
138
ac->sc_iot = sc->sc_iot;
sys/arch/i386/pnpbios/ym_pnpbios.c
140
AD1848_NPORT, &ac->sc_ioh)) {
sys/arch/i386/pnpbios/ym_pnpbios.c
144
ac->mode = 2;
sys/arch/i386/pnpbios/ym_pnpbios.c
145
ac->MCE_bit = MODE_CHANGE_ENABLE;
sys/arch/i386/pnpbios/ym_pnpbios.c
84
struct ad1848_softc *ac = &sc->sc_ad1848.sc_ad1848;
sys/arch/i386/pnpbios/ym_pnpbios.c
87
ac->sc_dev = self;
sys/arch/ia64/stand/common/interp_parse.c
118
PARSE_FAIL(insert(&ac, buf));
sys/arch/ia64/stand/common/interp_parse.c
167
PARSE_FAIL(insert(&ac, buf));
sys/arch/ia64/stand/common/interp_parse.c
169
args[ac] = NULL;
sys/arch/ia64/stand/common/interp_parse.c
170
*argc = ac;
sys/arch/ia64/stand/common/interp_parse.c
171
*argv = (char **)alloc((sizeof(char *) * ac + 1));
sys/arch/ia64/stand/common/interp_parse.c
172
memcpy(*argv, args, sizeof(char *) * ac + 1);
sys/arch/ia64/stand/common/interp_parse.c
85
int ac;
sys/arch/ia64/stand/common/interp_parse.c
91
ac = *argc = 0;
sys/arch/mips/atheros/ar_conf.c
175
for (const struct atheros_chip *ac = chips;
sys/arch/mips/atheros/ar_conf.c
176
ac < chips + __arraycount(chips);
sys/arch/mips/atheros/ar_conf.c
177
ac++) {
sys/arch/mips/atheros/ar_conf.c
178
const struct atheros_platformsw * const apsw = ac->ac_platformsw;
sys/arch/mips/atheros/ar_conf.c
179
if (cid != ac->ac_cid || pid != ac->ac_pid)
sys/arch/mips/atheros/ar_conf.c
186
if ((chipid & ac->ac_chipmask) == ac->ac_chipid) {
sys/arch/mips/atheros/ar_conf.c
188
my_chip = ac;
sys/arch/prep/isa/paud_isa.c
209
struct ad1848_softc *ac;
sys/arch/prep/isa/paud_isa.c
211
ac = addr;
sys/arch/prep/isa/paud_isa.c
212
return ad1848_mixer_set_port(ac, mappings, nummap, cp);
sys/arch/prep/isa/paud_isa.c
218
struct ad1848_softc *ac;
sys/arch/prep/isa/paud_isa.c
220
ac = addr;
sys/arch/prep/isa/paud_isa.c
221
return ad1848_mixer_get_port(ac, mappings, nummap, cp);
sys/dev/acpi/acpi_tz.c
331
if (sc->sc_zone.ac[i] == ATZ_TMP_INVALID)
sys/dev/acpi/acpi_tz.c
334
if (sc->sc_zone.ac[i] <= tmp)
sys/dev/acpi/acpi_tz.c
491
if (acpitz_get_integer(dv, buf, &sc->sc_zone.ac[i]))
sys/dev/acpi/acpi_tz.c
514
i, acpitz_celcius_string(sc->sc_zone.ac[i]));
sys/dev/acpi/acpi_tz.c
585
acpitz_sane_temp(&sc->sc_zone.ac[i]);
sys/dev/acpi/acpi_tz.c
86
uint32_t ac[ATZ_NLEVELS];
sys/dev/acpi/ym_acpi.c
185
ac->sc_iot = sc->sc_iot;
sys/dev/acpi/ym_acpi.c
187
AD1848_NPORT, &ac->sc_ioh)) {
sys/dev/acpi/ym_acpi.c
195
ac->mode = 2;
sys/dev/acpi/ym_acpi.c
196
ac->MCE_bit = MODE_CHANGE_ENABLE;
sys/dev/acpi/ym_acpi.c
91
struct ad1848_softc *ac = &sc->sc_ad1848.sc_ad1848;
sys/dev/acpi/ym_acpi.c
94
ac->sc_dev = self;
sys/dev/hpc/fontconv.c
108
fc_rcons(int ac, char* av[])
sys/dev/hpc/fontconv.c
15
void fc_rcons(int ac, char* av[]);
sys/dev/hpc/fontconv.c
16
void fc_rasops(int ac, char* av[]);
sys/dev/hpc/fontconv.c
19
main(int ac, char* av[])
sys/dev/hpc/fontconv.c
31
fc_rasops(ac, av);
sys/dev/hpc/fontconv.c
36
fc_rasops(int ac, char* av[])
sys/dev/hpc/hpccmap_gen.c
43
void main(int ac, char *av[]);
sys/dev/hpc/hpccmap_gen.c
51
main(int ac, char *av[])
sys/dev/ic/aac.c
1128
struct aac_ccb *ac;
sys/dev/ic/aac.c
1144
ac = (struct aac_ccb *)(sc->sc_ccbs +
sys/dev/ic/aac.c
1147
SIMPLEQ_INSERT_TAIL(&sc->sc_ccb_complete, ac, ac_chain);
sys/dev/ic/aac.c
1154
while ((ac = SIMPLEQ_FIRST(&sc->sc_ccb_complete)) != NULL) {
sys/dev/ic/aac.c
1156
ac->ac_flags |= AAC_CCB_COMPLETED;
sys/dev/ic/aac.c
1158
if (ac->ac_intr != NULL)
sys/dev/ic/aac.c
1159
(*ac->ac_intr)(ac);
sys/dev/ic/aac.c
1161
wakeup(ac);
sys/dev/ic/aac.c
1288
struct aac_ccb *ac;
sys/dev/ic/aac.c
1294
ac = SIMPLEQ_FIRST(&sc->sc_ccb_free);
sys/dev/ic/aac.c
1295
if (ac == NULL) {
sys/dev/ic/aac.c
1300
ac = SIMPLEQ_FIRST(&sc->sc_ccb_free);
sys/dev/ic/aac.c
1303
if (ac == NULL)
sys/dev/ic/aac.c
1309
ac->ac_flags = flags;
sys/dev/ic/aac.c
1310
return (ac);
sys/dev/ic/aac.c
1314
aac_ccb_free(struct aac_softc *sc, struct aac_ccb *ac)
sys/dev/ic/aac.c
1318
AAC_DPRINTF(AAC_D_QUEUE, ("aac_ccb_free(%p, %p) ", sc, ac));
sys/dev/ic/aac.c
1320
ac->ac_flags = 0;
sys/dev/ic/aac.c
1321
ac->ac_intr = NULL;
sys/dev/ic/aac.c
1322
ac->ac_fib->Header.XferState = htole32(AAC_FIBSTATE_EMPTY);
sys/dev/ic/aac.c
1323
ac->ac_fib->Header.StructType = AAC_FIBTYPE_TFIB;
sys/dev/ic/aac.c
1324
ac->ac_fib->Header.Flags = 0;
sys/dev/ic/aac.c
1325
ac->ac_fib->Header.SenderSize = htole16(sc->sc_max_fib_size);
sys/dev/ic/aac.c
1333
ac->ac_fib->Header.SenderFibAddress =
sys/dev/ic/aac.c
1334
htole32(((u_int32_t) (ac - sc->sc_ccbs)) << 2);
sys/dev/ic/aac.c
1335
ac->ac_fib->Header.ReceiverFibAddress = htole32(ac->ac_fibphys);
sys/dev/ic/aac.c
1339
SIMPLEQ_INSERT_HEAD(&sc->sc_ccb_free, ac, ac_chain);
sys/dev/ic/aac.c
1344
aac_ccb_map(struct aac_softc *sc, struct aac_ccb *ac)
sys/dev/ic/aac.c
1348
AAC_DPRINTF(AAC_D_QUEUE, ("aac_ccb_map(%p, %p) ", sc, ac));
sys/dev/ic/aac.c
1351
if ((ac->ac_flags & AAC_CCB_MAPPED) != 0)
sys/dev/ic/aac.c
1355
error = bus_dmamap_load(sc->sc_dmat, ac->ac_dmamap_xfer, ac->ac_data,
sys/dev/ic/aac.c
1356
ac->ac_datalen, NULL, BUS_DMA_NOWAIT | BUS_DMA_STREAMING |
sys/dev/ic/aac.c
1357
((ac->ac_flags & AAC_CCB_DATA_IN) ? BUS_DMA_READ : BUS_DMA_WRITE));
sys/dev/ic/aac.c
1367
bus_dmamap_sync(sc->sc_dmat, ac->ac_dmamap_xfer, 0, ac->ac_datalen,
sys/dev/ic/aac.c
1368
(ac->ac_flags & AAC_CCB_DATA_IN) ? BUS_DMASYNC_PREREAD :
sys/dev/ic/aac.c
1372
ac->ac_flags |= AAC_CCB_MAPPED;
sys/dev/ic/aac.c
1378
aac_ccb_unmap(struct aac_softc *sc, struct aac_ccb *ac)
sys/dev/ic/aac.c
1381
AAC_DPRINTF(AAC_D_QUEUE, ("aac_ccb_unmap(%p, %p) ", sc, ac));
sys/dev/ic/aac.c
1384
if ((ac->ac_flags & AAC_CCB_MAPPED) == 0)
sys/dev/ic/aac.c
1388
bus_dmamap_sync(sc->sc_dmat, ac->ac_dmamap_xfer, 0, ac->ac_datalen,
sys/dev/ic/aac.c
1389
(ac->ac_flags & AAC_CCB_DATA_IN) ? BUS_DMASYNC_POSTREAD :
sys/dev/ic/aac.c
1391
bus_dmamap_unload(sc->sc_dmat, ac->ac_dmamap_xfer);
sys/dev/ic/aac.c
1394
ac->ac_flags &= ~AAC_CCB_MAPPED;
sys/dev/ic/aac.c
1399
aac_ccb_enqueue(struct aac_softc *sc, struct aac_ccb *ac)
sys/dev/ic/aac.c
1403
AAC_DPRINTF(AAC_D_QUEUE, ("aac_ccb_enqueue(%p, %p) ", sc, ac));
sys/dev/ic/aac.c
1407
if (ac != NULL)
sys/dev/ic/aac.c
1408
SIMPLEQ_INSERT_TAIL(&sc->sc_ccb_queue, ac, ac_chain);
sys/dev/ic/aac.c
1410
while ((ac = SIMPLEQ_FIRST(&sc->sc_ccb_queue)) != NULL) {
sys/dev/ic/aac.c
1411
if (aac_ccb_submit(sc, ac))
sys/dev/ic/aac.c
1420
aac_ccb_submit(struct aac_softc *sc, struct aac_ccb *ac)
sys/dev/ic/aac.c
1425
AAC_DPRINTF(AAC_D_QUEUE, ("aac_ccb_submit(%p, %p) ", sc, ac));
sys/dev/ic/aac.c
1427
acidx = (u_int32_t) (ac - sc->sc_ccbs);
sys/dev/ic/aac.c
1429
ac->ac_fib->Header.SenderFibAddress = htole32(acidx << 2);
sys/dev/ic/aac.c
1430
ac->ac_fib->Header.ReceiverFibAddress = htole32(ac->ac_fibphys);
sys/dev/ic/aac.c
1433
ac->ac_fib->Header.SenderData = acidx | 0x80000000;
sys/dev/ic/aac.c
1435
fm = ac->ac_fibmap;
sys/dev/ic/aac.c
1437
(char *)ac->ac_fib - (char *)fm->fm_fibs, sc->sc_max_fib_size,
sys/dev/ic/aac.c
1443
while (AAC_SEND_COMMAND(sc, ac) != 0) {
sys/dev/ic/aac.c
1452
return (aac_enqueue_fib(sc, AAC_ADAP_NORM_CMD_QUEUE, ac));
sys/dev/ic/aac.c
1457
aac_ccb_poll(struct aac_softc *sc, struct aac_ccb *ac, int timo)
sys/dev/ic/aac.c
1461
AAC_DPRINTF(AAC_D_QUEUE, ("aac_ccb_poll(%p, %p, %d) ", sc, ac, timo));
sys/dev/ic/aac.c
1465
if ((rv = aac_ccb_submit(sc, ac)) != 0) {
sys/dev/ic/aac.c
1475
if ((ac->ac_flags & AAC_CCB_COMPLETED) != 0)
sys/dev/ic/aac.c
1493
aac_enqueue_fib(struct aac_softc *sc, int queue, struct aac_ccb *ac)
sys/dev/ic/aac.c
1497
fib_size = le16toh(ac->ac_fib->Header.Size);
sys/dev/ic/aac.c
1498
fib_addr = le32toh(ac->ac_fib->Header.ReceiverFibAddress);
sys/dev/ic/aac.c
1545
struct aac_ccb *ac;
sys/dev/ic/aac.c
1583
ac = sc->sc_ccbs + (idx >> 2);
sys/dev/ic/aac.c
1584
*fib_addr = ac->ac_fib;
sys/dev/ic/aac.c
1586
fm = ac->ac_fibmap;
sys/dev/ic/aac.c
1588
(char *)ac->ac_fib - (char *)fm->fm_fibs,
sys/dev/ic/aac.c
1591
ac->ac_fib->Header.XferState |=
sys/dev/ic/aac.c
1593
*((u_int32_t*)(ac->ac_fib->data)) =
sys/dev/ic/aac.c
224
struct aac_ccb *ac;
sys/dev/ic/aac.c
277
ac = fm->fm_ccbs + i;
sys/dev/ic/aac.c
281
BUS_DMA_NOWAIT | BUS_DMA_ALLOCNOW, &ac->ac_dmamap_xfer);
sys/dev/ic/aac.c
284
ac = fm->fm_ccbs + i;
sys/dev/ic/aac.c
286
ac->ac_dmamap_xfer);
sys/dev/ic/aac.c
294
ac->ac_fibmap = fm;
sys/dev/ic/aac.c
295
ac->ac_fib = (struct aac_fib *)
sys/dev/ic/aac.c
297
ac->ac_fibphys = fibpa + i * sc->sc_max_fib_size;
sys/dev/ic/aac.c
298
aac_ccb_free(sc, ac);
sys/dev/ic/aac.c
921
struct aac_ccb *ac;
sys/dev/ic/aac.c
956
ac = sc->sc_ccbs + (index >> 2);
sys/dev/ic/aac.c
957
fib = ac->ac_fib;
sys/dev/ic/aac.c
958
fm = ac->ac_fibmap;
sys/dev/ic/aac.c
970
ac->ac_flags |= AAC_CCB_COMPLETED;
sys/dev/ic/aac.c
972
if (ac->ac_intr != NULL)
sys/dev/ic/aac.c
973
(*ac->ac_intr)(ac);
sys/dev/ic/aac.c
975
wakeup(ac);
sys/dev/ic/ad1848.c
652
ad1848_mixer_get_port(struct ad1848_softc *ac, const struct ad1848_devmap *map,
sys/dev/ic/ad1848.c
679
error = ad1848_get_device_gain(ac, dev, &vol);
sys/dev/ic/ad1848.c
688
cp->un.ord = ac->mute[dev] ? 1 : 0;
sys/dev/ic/ad1848.c
695
error = ad1848_get_rec_gain(ac, &vol);
sys/dev/ic/ad1848.c
704
error = ad1848_get_mic_gain(ac, &vol);
sys/dev/ic/ad1848.c
712
cp->un.ord = ad1848_get_rec_port(ac);
sys/dev/ic/ad1848.c
725
ad1848_mixer_set_port(struct ad1848_softc *ac, const struct ad1848_devmap *map,
sys/dev/ic/ad1848.c
753
error = ad1848_set_channel_gain(ac, dev, &vol);
sys/dev/ic/ad1848.c
759
ac->mute[dev] = (cp->un.ord ? MUTE_ALL : 0);
sys/dev/ic/ad1848.c
760
ad1848_mute_channel(ac, dev, ac->mute[dev]);
sys/dev/ic/ad1848.c
768
error = ad1848_set_rec_gain(ac, &vol);
sys/dev/ic/ad1848.c
775
error = ad1848_set_mic_gain(ac, &vol);
sys/dev/ic/ad1848.c
781
error = ad1848_set_rec_port(ac, cp->un.ord);
sys/dev/ic/ath.c
3398
ath_tx_setup(struct ath_softc *sc, int ac, int haltype)
sys/dev/ic/ath.c
3403
if (ac >= N(sc->sc_ac2q)) {
sys/dev/ic/ath.c
3405
ac, N(sc->sc_ac2q));
sys/dev/ic/ath.c
3410
sc->sc_ac2q[ac] = txq;
sys/dev/ic/ath.c
3421
ath_txq_update(struct ath_softc *sc, int ac)
sys/dev/ic/ath.c
3426
struct ath_txq *txq = sc->sc_ac2q[ac];
sys/dev/ic/ath.c
3427
struct wmeParams *wmep = &ic->ic_wme.wme_chanParams.cap_wmeParams[ac];
sys/dev/ic/ath.c
3440
ieee80211_wme_acnames[ac]);
sys/dev/ic/athn.c
2571
const struct ieee80211_edca_ac_params *ac;
sys/dev/ic/athn.c
2575
ac = &ic->ic_edca_ac[aci];
sys/dev/ic/athn.c
2579
SM(AR_D_LCL_IFS_CWMIN, ATHN_EXP2(ac->ac_ecwmin)) |
sys/dev/ic/athn.c
2580
SM(AR_D_LCL_IFS_CWMAX, ATHN_EXP2(ac->ac_ecwmax)) |
sys/dev/ic/athn.c
2581
SM(AR_D_LCL_IFS_AIFS, ac->ac_aifsn));
sys/dev/ic/athn.c
2582
if (ac->ac_txoplimit != 0) {
sys/dev/ic/athn.c
2585
IEEE80211_TXOP_TO_US(ac->ac_txoplimit)) |
sys/dev/ic/cs4231.c
404
struct ad1848_softc *ac;
sys/dev/ic/cs4231.c
407
ac = addr;
sys/dev/ic/cs4231.c
408
return ad1848_mixer_set_port(ac, csmapping, nummap, cp);
sys/dev/ic/cs4231.c
414
struct ad1848_softc *ac;
sys/dev/ic/cs4231.c
417
ac = addr;
sys/dev/ic/cs4231.c
418
return ad1848_mixer_get_port(ac, csmapping, nummap, cp);
sys/dev/ic/ld_aac.c
110
struct aac_ccb *ac;
sys/dev/ic/ld_aac.c
123
ac = aac_ccb_alloc(aac, (dowrite ? AAC_CCB_DATA_OUT : AAC_CCB_DATA_IN));
sys/dev/ic/ld_aac.c
124
if (ac == NULL)
sys/dev/ic/ld_aac.c
126
ac->ac_data = data;
sys/dev/ic/ld_aac.c
127
ac->ac_datalen = datasize;
sys/dev/ic/ld_aac.c
129
if ((rv = aac_ccb_map(aac, ac)) != 0) {
sys/dev/ic/ld_aac.c
130
aac_ccb_free(aac, ac);
sys/dev/ic/ld_aac.c
137
fib = ac->ac_fib;
sys/dev/ic/ld_aac.c
160
xfer = ac->ac_dmamap_xfer;
sys/dev/ic/ld_aac.c
203
xfer = ac->ac_dmamap_xfer;
sys/dev/ic/ld_aac.c
250
xfer = ac->ac_dmamap_xfer;
sys/dev/ic/ld_aac.c
279
rv = aac_ccb_poll(aac, ac, 30000);
sys/dev/ic/ld_aac.c
280
aac_ccb_unmap(aac, ac);
sys/dev/ic/ld_aac.c
281
aac_ccb_free(aac, ac);
sys/dev/ic/ld_aac.c
287
&ac->ac_fib->data[0];
sys/dev/ic/ld_aac.c
291
&ac->ac_fib->data[0];
sys/dev/ic/ld_aac.c
304
ac->ac_device = sc->sc_ld.sc_dv;
sys/dev/ic/ld_aac.c
305
ac->ac_context = bp;
sys/dev/ic/ld_aac.c
306
ac->ac_intr = ld_aac_intr;
sys/dev/ic/ld_aac.c
307
aac_ccb_enqueue(aac, ac);
sys/dev/ic/ld_aac.c
323
ld_aac_intr(struct aac_ccb *ac)
sys/dev/ic/ld_aac.c
332
bp = ac->ac_context;
sys/dev/ic/ld_aac.c
333
sc = device_private(ac->ac_device);
sys/dev/ic/ld_aac.c
334
aac = device_private(device_parent(ac->ac_device));
sys/dev/ic/ld_aac.c
337
brr = (struct aac_blockread_response *)&ac->ac_fib->data[0];
sys/dev/ic/ld_aac.c
340
bwr = (struct aac_blockwrite_response *)&ac->ac_fib->data[0];
sys/dev/ic/ld_aac.c
344
aac_ccb_unmap(aac, ac);
sys/dev/ic/ld_aac.c
345
aac_ccb_free(aac, ac);
sys/dev/ic/rt2661.c
1429
const bus_dma_segment_t *segs, int nsegs, int ac)
sys/dev/ic/rt2661.c
1442
RT2661_QID(ac) |
sys/dev/ic/rt2661.c
1452
desc->qid = ac;
sys/dev/ic/rt2661.c
1609
struct ieee80211_node *ni, int ac)
sys/dev/ic/rt2661.c
1612
struct rt2661_tx_ring *txq = &sc->txq[ac];
sys/dev/ic/rt2661.c
1704
data->map->dm_segs, data->map->dm_nsegs, ac);
sys/dev/ic/rt2661.c
1788
data->map->dm_segs, data->map->dm_nsegs, ac);
sys/dev/isa/gus.c
1136
struct ad1848_isa_softc *ac;
sys/dev/isa/gus.c
1138
ac = addr;
sys/dev/isa/gus.c
1139
return gusopen(ac->sc_ad1848.parent, flags);
sys/dev/isa/gus.c
1200
struct ad1848_isa_softc *ac;
sys/dev/isa/gus.c
1202
ac = addr;
sys/dev/isa/gus.c
1203
return gus_dma_output(ac->sc_ad1848.parent, tbuf, size, intr, arg);
sys/dev/isa/gus.c
1338
struct ad1848_isa_softc *ac;
sys/dev/isa/gus.c
1341
ac = addr;
sys/dev/isa/gus.c
1342
sc = ac->sc_ad1848.parent;
sys/dev/isa/gus.c
1344
ac->mute[AD1848_AUX1_CHANNEL] = MUTE_ALL;
sys/dev/isa/gus.c
1345
ad1848_mute_channel(ac, MUTE_ALL); /* turn off DAC output */
sys/dev/isa/gus.c
1347
ad1848_close(&ac->sc_ad1848);
sys/dev/isa/gus.c
2275
struct ad1848_isa_softc *ac;
sys/dev/isa/gus.c
2279
ac = addr;
sys/dev/isa/gus.c
2280
sc = ac->sc_ad1848.parent;
sys/dev/isa/gus.c
2281
error = ad1848_set_format(ac, setmode, p, r, pfil, rfil);
sys/dev/isa/gus.c
2326
struct ad1848_isa_softc *ac;
sys/dev/isa/gus.c
2329
ac = addr;
sys/dev/isa/gus.c
2330
sc = ac->sc_ad1848.parent;
sys/dev/isa/gus.c
2395
struct ad1848_isa_softc *ac;
sys/dev/isa/gus.c
2399
ac = addr;
sys/dev/isa/gus.c
2400
sc = ac->sc_ad1848.parent;
sys/dev/isa/gus.c
2401
error = ad1848_commit_settings(ac);
sys/dev/isa/gus.c
3204
struct ad1848_isa_softc *ac;
sys/dev/isa/gus.c
3209
ac = addr;
sys/dev/isa/gus.c
3210
sc = ac->sc_ad1848.parent;
sys/dev/isa/gus.c
3211
error = ad1848_mixer_get_port(&ac->sc_ad1848, gusmapping, nummap, cp);
sys/dev/isa/gus.c
3412
struct ad1848_isa_softc *ac;
sys/dev/isa/gus.c
3417
ac = addr;
sys/dev/isa/gus.c
3418
sc = ac->sc_ad1848.parent;
sys/dev/isa/gus.c
3419
error = ad1848_mixer_set_port(&ac->sc_ad1848, gusmapping, nummap, cp);
sys/dev/isa/gus.c
3625
struct ad1848_isa_softc *ac;
sys/dev/isa/gus.c
3627
ac = addr;
sys/dev/isa/gus.c
3628
return gus_get_props(ac->sc_ad1848.parent);
sys/dev/isa/wss.c
115
struct ad1848_softc *ac;
sys/dev/isa/wss.c
120
ac = &sc->sc_ad1848.sc_ad1848;
sys/dev/isa/wss.c
122
ad1848_init_locks(ac, IPL_AUDIO);
sys/dev/isa/wss.c
155
ac->parent = sc;
sys/dev/isa/wss.c
157
audio_attach_mi(&wss_hw_if, &sc->sc_ad1848, ac->sc_dev);
sys/dev/isa/wss.c
164
(void)config_found(ac->sc_dev, &arg, audioprint,
sys/dev/isa/wss.c
212
struct ad1848_softc *ac;
sys/dev/isa/wss.c
214
ac = addr;
sys/dev/isa/wss.c
215
return ad1848_mixer_set_port(ac, mappings, nummap, cp);
sys/dev/isa/wss.c
221
struct ad1848_softc *ac;
sys/dev/isa/wss.c
223
ac = addr;
sys/dev/isa/wss.c
224
return ad1848_mixer_get_port(ac, mappings, nummap, cp);
sys/dev/isa/wss.c
448
struct ad1848_softc *ac;
sys/dev/isa/wss.c
452
ac = (struct ad1848_softc *)&sc->sc_ad1848;
sys/dev/isa/wss.c
457
joy = device_cfdata(ac->sc_dev)->cf_flags & 2 ? MC1_JOYDISABLE : 0;
sys/dev/isa/wss.c
465
strncmp(ac->chip_name, "CS4248", 6) == 0 ||
sys/dev/isa/wss.c
466
strncmp(ac->chip_name, "CS4231", 6) == 0 ? 0x02 : 0;
sys/dev/isa/wss_isa.c
127
struct ad1848_softc *ac;
sys/dev/isa/wss_isa.c
130
ac = &sc->sc_ad1848.sc_ad1848;
sys/dev/isa/wss_isa.c
149
ac->sc_iot = sc->sc_iot;
sys/dev/isa/wss_isa.c
190
if (ac->mode <= 1)
sys/dev/isa/wss_isa.c
193
ac->mode > 1 && ndrq > 1 &&
sys/dev/isa/wss_isa.c
235
struct ad1848_softc *ac;
sys/dev/isa/wss_isa.c
239
ac = &sc->sc_ad1848.sc_ad1848;
sys/dev/isa/wss_isa.c
240
ac->sc_dev = self;
sys/dev/isa/ym.c
1080
struct ad1848_softc *ac;
sys/dev/isa/ym.c
1084
ac = &sc->sc_ad1848.sc_ad1848;
sys/dev/isa/ym.c
1086
sc->sc_codec_scan[i] = ad_read(ac, i);
sys/dev/isa/ym.c
1092
struct ad1848_softc *ac;
sys/dev/isa/ym.c
1096
ac = &sc->sc_ad1848.sc_ad1848;
sys/dev/isa/ym.c
1103
t < 100000 && ADREAD(ac, AD1848_IADDR) & SP_IN_INIT; t++)
sys/dev/isa/ym.c
1110
ad_write(ac, i, sc->sc_codec_scan[i]);
sys/dev/isa/ym.c
1197
struct ad1848_softc *ac;
sys/dev/isa/ym.c
1201
ac = &sc->sc_ad1848.sc_ad1848;
sys/dev/isa/ym.c
1203
KASSERT(mutex_owned(&ac->sc_intr_lock));
sys/dev/isa/ym.c
1209
if (ac->mute[AD1848_MONITOR_CHANNEL] == 0)
sys/dev/isa/ym.c
200
struct ad1848_softc *ac;
sys/dev/isa/ym.c
204
ac = &sc->sc_ad1848.sc_ad1848;
sys/dev/isa/ym.c
207
ad1848_init_locks(ac, IPL_AUDIO);
sys/dev/isa/ym.c
214
ac->chip_name = YM_IS_SA3(sc) ? "OPL3-SA3" : "OPL3-SA2";
sys/dev/isa/ym.c
225
ac->parent = sc;
sys/dev/isa/ym.c
233
ad1848_set_channel_gain(ac, AD1848_DAC_CHANNEL, &vol_dac);
sys/dev/isa/ym.c
234
ad1848_set_channel_gain(ac, AD1848_AUX2_CHANNEL, &vol_opl3);
sys/dev/isa/ym.c
243
ad1848_mute_channel(ac, AD1848_AUX1_CHANNEL, MUTE_ALL); /* CD */
sys/dev/isa/ym.c
244
ad1848_mute_channel(ac, AD1848_LINE_CHANNEL, MUTE_ALL); /* line */
sys/dev/isa/ym.c
245
ac->mute[AD1848_AUX1_CHANNEL] = MUTE_ALL;
sys/dev/isa/ym.c
246
ac->mute[AD1848_LINE_CHANNEL] = MUTE_ALL;
sys/dev/isa/ym.c
254
sc->sc_audiodev = audio_attach_mi(&ym_hw_if, ac, ac->sc_dev);
sys/dev/isa/ym.c
261
(void)config_found(ac->sc_dev, &arg, audioprint,
sys/dev/isa/ym.c
271
sc->sc_mpudev = config_found(ac->sc_dev, &arg, audioprint,
sys/dev/isa/ym.c
297
if (!pmf_device_register(ac->sc_dev, ym_suspend, ym_resume)) {
sys/dev/isa/ym.c
298
aprint_error_dev(ac->sc_dev,
sys/dev/isa/ym.c
403
struct ad1848_softc *ac;
sys/dev/isa/ym.c
406
ac = &sc->sc_ad1848.sc_ad1848;
sys/dev/isa/ym.c
407
strlcpy(retp->name, ac->chip_name, sizeof(retp->name));
sys/dev/isa/ym.c
561
struct ad1848_softc *ac;
sys/dev/isa/ym.c
567
ac = addr;
sys/dev/isa/ym.c
568
sc = ac->parent;
sys/dev/isa/ym.c
579
mutex_spin_enter(&ac->sc_intr_lock);
sys/dev/isa/ym.c
671
if ((ac->open_mode & (FREAD | FWRITE)) == FREAD)
sys/dev/isa/ym.c
678
error = ad1848_mixer_set_port(ac, mappings, NUMMAP, cp);
sys/dev/isa/ym.c
701
mutex_spin_exit(&ac->sc_intr_lock);
sys/dev/isa/ym.c
709
struct ad1848_softc *ac;
sys/dev/isa/ym.c
713
ac = addr;
sys/dev/isa/ym.c
714
sc = ac->parent;
sys/dev/isa/ym.c
726
mutex_spin_enter(&ac->sc_intr_lock);
sys/dev/isa/ym.c
736
mutex_spin_exit(&ac->sc_intr_lock);
sys/dev/isa/ym.c
780
error = ad1848_mixer_get_port(ac, mappings, NUMMAP, cp);
sys/dev/isa/ym.c
815
struct ad1848_softc *ac;
sys/dev/isa/ym.c
818
ac = addr;
sys/dev/isa/ym.c
819
sc = ac->parent;
sys/dev/isapnp/wss_isapnp.c
145
ac->sc_iot = sc->sc_iot;
sys/dev/isapnp/wss_isapnp.c
146
ac->sc_ioh = sc->sc_ioh;
sys/dev/isapnp/wss_isapnp.c
164
ac->mode = 2;
sys/dev/isapnp/wss_isapnp.c
90
struct ad1848_softc *ac;
sys/dev/isapnp/wss_isapnp.c
95
ac = &sc->sc_ad1848.sc_ad1848;
sys/dev/isapnp/wss_isapnp.c
96
ac->sc_dev = self;
sys/dev/isapnp/ym_isapnp.c
106
struct ad1848_softc *ac;
sys/dev/isapnp/ym_isapnp.c
110
ac = &sc->sc_ad1848.sc_ad1848;
sys/dev/isapnp/ym_isapnp.c
111
ac->sc_dev = self;
sys/dev/isapnp/ym_isapnp.c
135
ac->sc_iot = sc->sc_iot;
sys/dev/isapnp/ym_isapnp.c
137
&ac->sc_ioh)) {
sys/dev/isapnp/ym_isapnp.c
141
ac->mode = 2;
sys/dev/isapnp/ym_isapnp.c
142
ac->MCE_bit = MODE_CHANGE_ENABLE;
sys/dev/marvell/gtidmacreg.h
200
#define GTIDMAC_CXAPR_WINACC(w, ac) ((ac) << ((w) << 1))
sys/dev/marvell/gtidmacreg.h
217
#define MVXORE_XEXWCR_WINACC(w, ac) ((ac) << (((w) << 1) + 16))
sys/dev/marvell/if_mvgbe.c
637
uint32_t en, ac, size;
sys/dev/marvell/if_mvgbe.c
644
ac = 0;
sys/dev/marvell/if_mvgbe.c
670
ac |= MVGBE_EPAP_EPAR(window, MVGBE_EPAP_AC_FA);
sys/dev/marvell/if_mvgbe.c
674
MVGBE_WRITE(sc, MVGBE_EPAP, ac);
sys/dev/marvell/if_mvxpe.c
789
uint32_t en, ac, size;
sys/dev/marvell/if_mvxpe.c
796
ac = 0;
sys/dev/marvell/if_mvxpe.c
825
ac |= MVXPE_EPAP_EPAR(window, MVXPE_EPAP_AC_FA);
sys/dev/marvell/if_mvxpe.c
829
MVXPE_WRITE(sc, MVXPE_EPAP, ac);
sys/dev/marvell/if_mvxpereg.h
310
#define MVXPE_EPAP_EPAR(win, ac) ((ac) << ((win) * 2))
sys/dev/marvell/mvgbereg.h
308
#define MVGBE_EPAP_EPAR(win, ac) ((ac) << ((win) * 2))
sys/dev/pci/aac_pci.c
860
aac_rx_send_command(struct aac_softc *sc, struct aac_ccb *ac)
sys/dev/pci/aac_pci.c
870
aac_enqueue_busy(ac);
sys/dev/pci/aac_pci.c
874
htole32((u_int32_t)(ac->ac_fibphys & 0xffffffffUL)));
sys/dev/pci/aac_pci.c
878
htole32((u_int32_t)((u_int64_t)ac->ac_fibphys >> 32)));
sys/dev/pci/aac_pci.c
883
AAC_SETREG4(sc, device, ac->ac_fib->Header.Size);
sys/dev/pci/aac_pci.c
889
aac_rkt_send_command(struct aac_softc *sc, struct aac_ccb *ac)
sys/dev/pci/aac_pci.c
899
aac_enqueue_busy(ac);
sys/dev/pci/aac_pci.c
903
htole32((u_int32_t)(ac->ac_fibphys & 0xffffffffUL)));
sys/dev/pci/aac_pci.c
907
htole32((u_int32_t)((u_int64_t)ac->ac_fibphys >> 32)));
sys/dev/pci/aac_pci.c
912
AAC_SETREG4(sc, device, ac->ac_fib->Header.Size);
sys/dev/pci/amr.c
1027
struct amr_ccb *ac;
sys/dev/pci/amr.c
1031
if (amr_ccb_alloc(amr, &ac) != 0)
sys/dev/pci/amr.c
1035
mb = (u_int8_t *)&ac->ac_cmd;
sys/dev/pci/amr.c
1040
rv = amr_ccb_map(amr, ac, sbuf, AMR_ENQUIRY_BUFSIZE, AC_XFER_IN);
sys/dev/pci/amr.c
1042
rv = amr_ccb_poll(amr, ac, 2000);
sys/dev/pci/amr.c
1043
amr_ccb_unmap(amr, ac);
sys/dev/pci/amr.c
1045
amr_ccb_free(amr, ac);
sys/dev/pci/amr.c
1071
amr_ccb_free(struct amr_softc *amr, struct amr_ccb *ac)
sys/dev/pci/amr.c
1073
memset(&ac->ac_cmd, 0, sizeof(ac->ac_cmd));
sys/dev/pci/amr.c
1074
ac->ac_cmd.mb_ident = ac->ac_ident + 1;
sys/dev/pci/amr.c
1075
ac->ac_cmd.mb_busy = 1;
sys/dev/pci/amr.c
1076
ac->ac_handler = NULL;
sys/dev/pci/amr.c
1077
ac->ac_flags = 0;
sys/dev/pci/amr.c
1080
SLIST_INSERT_HEAD(&amr->amr_ccb_freelist, ac, ac_chain.slist);
sys/dev/pci/amr.c
1090
amr_ccb_enqueue(struct amr_softc *amr, struct amr_ccb *ac)
sys/dev/pci/amr.c
1092
if (ac != NULL) {
sys/dev/pci/amr.c
1094
SIMPLEQ_INSERT_TAIL(&amr->amr_ccb_queue, ac, ac_chain.simpleq);
sys/dev/pci/amr.c
1100
if ((ac = SIMPLEQ_FIRST(&amr->amr_ccb_queue)) != NULL) {
sys/dev/pci/amr.c
1101
if ((*amr->amr_submit)(amr, ac) != 0) {
sys/dev/pci/amr.c
1107
TAILQ_INSERT_TAIL(&amr->amr_ccb_active, ac,
sys/dev/pci/amr.c
1119
amr_ccb_map(struct amr_softc *amr, struct amr_ccb *ac, void *data, int size,
sys/dev/pci/amr.c
1128
xfer = ac->ac_xfer_map;
sys/dev/pci/amr.c
1135
mb = &ac->ac_cmd;
sys/dev/pci/amr.c
1136
ac->ac_xfer_size = size;
sys/dev/pci/amr.c
1137
ac->ac_flags |= (tflag & (AC_XFER_OUT | AC_XFER_IN));
sys/dev/pci/amr.c
1138
sgloff = AMR_SGL_SIZE * ac->ac_ident;
sys/dev/pci/amr.c
1150
ac->ac_flags |= AC_NOSGL;
sys/dev/pci/amr.c
1162
bus_dmamap_sync(amr->amr_dmat, xfer, 0, ac->ac_xfer_size, dmaflag);
sys/dev/pci/amr.c
1164
if ((ac->ac_flags & AC_NOSGL) == 0)
sys/dev/pci/amr.c
1175
amr_ccb_unmap(struct amr_softc *amr, struct amr_ccb *ac)
sys/dev/pci/amr.c
1179
if (ac->ac_flags & AC_XFER_IN)
sys/dev/pci/amr.c
1181
if (ac->ac_flags & AC_XFER_OUT)
sys/dev/pci/amr.c
1184
if ((ac->ac_flags & AC_NOSGL) == 0)
sys/dev/pci/amr.c
1186
AMR_SGL_SIZE * ac->ac_ident, AMR_SGL_SIZE,
sys/dev/pci/amr.c
1188
bus_dmamap_sync(amr->amr_dmat, ac->ac_xfer_map, 0, ac->ac_xfer_size,
sys/dev/pci/amr.c
1190
bus_dmamap_unload(amr->amr_dmat, ac->ac_xfer_map);
sys/dev/pci/amr.c
1198
amr_ccb_poll(struct amr_softc *amr, struct amr_ccb *ac, int timo)
sys/dev/pci/amr.c
1203
if ((rv = (*amr->amr_submit)(amr, ac)) != 0) {
sys/dev/pci/amr.c
1207
TAILQ_INSERT_TAIL(&amr->amr_ccb_active, ac, ac_chain.tailq);
sys/dev/pci/amr.c
1212
if ((ac->ac_flags & AC_COMPLETE) != 0)
sys/dev/pci/amr.c
1221
return ((i == 0 || ac->ac_status != 0) ? EIO : 0);
sys/dev/pci/amr.c
1229
amr_ccb_wait(struct amr_softc *amr, struct amr_ccb *ac)
sys/dev/pci/amr.c
1231
amr_ccb_enqueue(amr, ac);
sys/dev/pci/amr.c
1232
mutex_enter(&ac->ac_mutex);
sys/dev/pci/amr.c
1233
cv_wait(&ac->ac_cv, &ac->ac_mutex);
sys/dev/pci/amr.c
1234
mutex_exit(&ac->ac_mutex);
sys/dev/pci/amr.c
1236
return (ac->ac_status != 0 ? EIO : 0);
sys/dev/pci/amr.c
1268
amr_quartz_submit(struct amr_softc *amr, struct amr_ccb *ac)
sys/dev/pci/amr.c
1306
memcpy(&amr->amr_mbox->mb_cmd, &ac->ac_cmd, sizeof(ac->ac_cmd));
sys/dev/pci/amr.c
1310
ac->ac_start_time = time_uptime;
sys/dev/pci/amr.c
1311
ac->ac_flags |= AC_ACTIVE;
sys/dev/pci/amr.c
1322
amr_std_submit(struct amr_softc *amr, struct amr_ccb *ac)
sys/dev/pci/amr.c
1342
memcpy(&amr->amr_mbox->mb_cmd, &ac->ac_cmd, sizeof(ac->ac_cmd));
sys/dev/pci/amr.c
1347
ac->ac_start_time = time_uptime;
sys/dev/pci/amr.c
1348
ac->ac_flags |= AC_ACTIVE;
sys/dev/pci/amr.c
1425
amr_ccb_dump(struct amr_softc *amr, struct amr_ccb *ac)
sys/dev/pci/amr.c
1431
printf("%08x ", ((u_int32_t *)&ac->ac_cmd)[i]);
sys/dev/pci/amr.c
1480
struct amr_ccb *ac;
sys/dev/pci/amr.c
1531
while (amr_ccb_alloc(amr, &ac) != 0) {
sys/dev/pci/amr.c
1539
mbi = (struct amr_mailbox_ioctl *)&ac->ac_cmd;
sys/dev/pci/amr.c
1545
error = amr_ccb_map(amr, ac, dp, (int)au_length,
sys/dev/pci/amr.c
1548
error = amr_ccb_wait(amr, ac);
sys/dev/pci/amr.c
1549
amr_ccb_unmap(amr, ac);
sys/dev/pci/amr.c
1554
amr_ccb_free(amr, ac);
sys/dev/pci/amr.c
282
struct amr_ccb *ac;
sys/dev/pci/amr.c
415
ac = malloc(sizeof(*ac) * AMR_MAX_CMDS, M_DEVBUF, M_WAITOK | M_ZERO);
sys/dev/pci/amr.c
416
amr->amr_ccbs = ac;
sys/dev/pci/amr.c
426
for (i = 0; i < AMR_MAX_CMDS; i++, ac++) {
sys/dev/pci/amr.c
429
BUS_DMA_NOWAIT | BUS_DMA_ALLOCNOW, &ac->ac_xfer_map);
sys/dev/pci/amr.c
433
ac->ac_ident = i;
sys/dev/pci/amr.c
434
cv_init(&ac->ac_cv, "amr1ccb");
sys/dev/pci/amr.c
435
mutex_init(&ac->ac_mutex, MUTEX_DEFAULT, IPL_NONE);
sys/dev/pci/amr.c
436
amr_ccb_free(amr, ac);
sys/dev/pci/amr.c
546
struct amr_ccb *ac;
sys/dev/pci/amr.c
563
SLIST_FOREACH(ac, &amr->amr_ccb_freelist, ac_chain.slist) {
sys/dev/pci/amr.c
564
bus_dmamap_destroy(amr->amr_dmat, ac->ac_xfer_map);
sys/dev/pci/amr.c
785
struct amr_ccb *ac;
sys/dev/pci/amr.c
792
if ((rv = amr_ccb_alloc(amr, &ac)) == 0) {
sys/dev/pci/amr.c
793
ac->ac_cmd.mb_command = AMR_CMD_FLUSH;
sys/dev/pci/amr.c
794
rv = amr_ccb_poll(amr, ac, 30000);
sys/dev/pci/amr.c
795
amr_ccb_free(amr, ac);
sys/dev/pci/amr.c
810
struct amr_ccb *ac;
sys/dev/pci/amr.c
823
ac = amr->amr_ccbs + idx;
sys/dev/pci/amr.c
831
if ((ac->ac_flags & AC_ACTIVE) == 0) {
sys/dev/pci/amr.c
833
device_xname(amr->amr_dv), ac->ac_flags);
sys/dev/pci/amr.c
837
ac->ac_status = mbox.mb_status;
sys/dev/pci/amr.c
838
ac->ac_flags = (ac->ac_flags & ~AC_ACTIVE) |
sys/dev/pci/amr.c
840
TAILQ_REMOVE(&amr->amr_ccb_active, ac, ac_chain.tailq);
sys/dev/pci/amr.c
842
if ((ac->ac_flags & AC_MOAN) != 0)
sys/dev/pci/amr.c
844
device_xname(amr->amr_dv), ac->ac_ident);
sys/dev/pci/amr.c
848
if (ac->ac_handler != NULL) {
sys/dev/pci/amr.c
849
(*ac->ac_handler)(ac);
sys/dev/pci/amr.c
851
mutex_enter(&ac->ac_mutex);
sys/dev/pci/amr.c
852
cv_signal(&ac->ac_cv);
sys/dev/pci/amr.c
853
mutex_exit(&ac->ac_mutex);
sys/dev/pci/amr.c
875
struct amr_ccb *ac;
sys/dev/pci/amr.c
896
ac = TAILQ_FIRST(&amr->amr_ccb_active);
sys/dev/pci/amr.c
897
while (ac != NULL) {
sys/dev/pci/amr.c
898
if (ac->ac_start_time + AMR_TIMEOUT > time_uptime)
sys/dev/pci/amr.c
900
if ((ac->ac_flags & AC_MOAN) == 0) {
sys/dev/pci/amr.c
902
device_xname(amr->amr_dv), ac->ac_ident);
sys/dev/pci/amr.c
903
amr_ccb_dump(amr, ac);
sys/dev/pci/amr.c
904
ac->ac_flags |= AC_MOAN;
sys/dev/pci/amr.c
906
ac = TAILQ_NEXT(ac, ac_chain.tailq);
sys/dev/pci/amr.c
916
struct amr_ccb *ac;
sys/dev/pci/amr.c
941
ac = TAILQ_FIRST(&amr->amr_ccb_active);
sys/dev/pci/amr.c
942
while (ac != NULL) {
sys/dev/pci/amr.c
943
if (ac->ac_start_time + AMR_TIMEOUT > time_uptime)
sys/dev/pci/amr.c
945
if ((ac->ac_flags & AC_MOAN) == 0) {
sys/dev/pci/amr.c
947
device_xname(amr->amr_dv), ac->ac_ident);
sys/dev/pci/amr.c
948
amr_ccb_dump(amr, ac);
sys/dev/pci/amr.c
949
ac->ac_flags |= AC_MOAN;
sys/dev/pci/amr.c
951
ac = TAILQ_NEXT(ac, ac_chain.tailq);
sys/dev/pci/amr.c
955
if ((rv = amr_ccb_alloc(amr, &ac)) != 0) {
sys/dev/pci/amr.c
961
ac->ac_cmd.mb_command = AMR_CMD_ENQUIRY;
sys/dev/pci/amr.c
963
rv = amr_ccb_map(amr, ac, amr->amr_enqbuf,
sys/dev/pci/amr.c
968
amr_ccb_free(amr, ac);
sys/dev/pci/amr.c
972
rv = amr_ccb_wait(amr, ac);
sys/dev/pci/amr.c
973
amr_ccb_unmap(amr, ac);
sys/dev/pci/amr.c
976
"enquiry failed (st=%d)\n", ac->ac_status);
sys/dev/pci/amr.c
979
amr_ccb_free(amr, ac);
sys/dev/pci/if_bwfm_pci.c
1670
int i, found, ac;
sys/dev/pci/if_bwfm_pci.c
1674
ac = (eh->ether_type != htons(ETHERTYPE_PAE)) ?
sys/dev/pci/if_bwfm_pci.c
1677
prio = ac;
sys/dev/pci/if_bwfm_pci.c
1733
int i, found, ac;
sys/dev/pci/if_bwfm_pci.c
1741
ac = (eh->ether_type != htons(ETHERTYPE_PAE)) ?
sys/dev/pci/if_bwfm_pci.c
1744
prio = ac;
sys/dev/pci/if_bwfm_pci.c
1924
int flowid, ret, ac;
sys/dev/pci/if_bwfm_pci.c
1956
ac = (eh->ether_type != htons(ETHERTYPE_PAE)) ?
sys/dev/pci/if_bwfm_pci.c
1963
tx->flags |= ac << BWFM_MSGBUF_PKT_FLAGS_PRIO_SHIFT;
sys/dev/pci/if_iwi.c
1000
wme[0].acm[ac] = wmep->wmep_acm;
sys/dev/pci/if_iwi.c
1003
wmep = &iwi_wme_cck_params[ac];
sys/dev/pci/if_iwi.c
1004
wme[1].aifsn[ac] = wmep->wmep_aifsn;
sys/dev/pci/if_iwi.c
1005
wme[1].cwmin[ac] = IWI_EXP2(wmep->wmep_logcwmin);
sys/dev/pci/if_iwi.c
1006
wme[1].cwmax[ac] = IWI_EXP2(wmep->wmep_logcwmax);
sys/dev/pci/if_iwi.c
1007
wme[1].burst[ac] = IWI_USEC(wmep->wmep_txopLimit);
sys/dev/pci/if_iwi.c
1008
wme[1].acm[ac] = wmep->wmep_acm;
sys/dev/pci/if_iwi.c
1011
wmep = &iwi_wme_ofdm_params[ac];
sys/dev/pci/if_iwi.c
1012
wme[2].aifsn[ac] = wmep->wmep_aifsn;
sys/dev/pci/if_iwi.c
1013
wme[2].cwmin[ac] = IWI_EXP2(wmep->wmep_logcwmin);
sys/dev/pci/if_iwi.c
1014
wme[2].cwmax[ac] = IWI_EXP2(wmep->wmep_logcwmax);
sys/dev/pci/if_iwi.c
1015
wme[2].burst[ac] = IWI_USEC(wmep->wmep_txopLimit);
sys/dev/pci/if_iwi.c
1016
wme[2].acm[ac] = wmep->wmep_acm;
sys/dev/pci/if_iwi.c
1598
int ac)
sys/dev/pci/if_iwi.c
1606
struct iwi_tx_ring *txq = &sc->txq[ac];
sys/dev/pci/if_iwi.c
1617
noack = cap->cap_wmeParams[ac].wmep_noackPolicy;
sys/dev/pci/if_iwi.c
1754
ac, txq->cur, le16toh(desc->len), le32toh(desc->nseg)));
sys/dev/pci/if_iwi.c
1772
int ac;
sys/dev/pci/if_iwi.c
1803
ac = (eh->ether_type != htons(ETHERTYPE_PAE)) ?
sys/dev/pci/if_iwi.c
1806
if (sc->txq[ac].queued > sc->txq[ac].count - 8) {
sys/dev/pci/if_iwi.c
1824
if (iwi_tx_start(ifp, m0, ni, ac) != 0) {
sys/dev/pci/if_iwi.c
984
int ac;
sys/dev/pci/if_iwi.c
993
for (ac = 0; ac < WME_NUM_AC; ac++) {
sys/dev/pci/if_iwi.c
995
wmep = &ic->ic_wme.wme_chanParams.cap_wmeParams[ac];
sys/dev/pci/if_iwi.c
996
wme[0].aifsn[ac] = wmep->wmep_aifsn;
sys/dev/pci/if_iwi.c
997
wme[0].cwmin[ac] = IWI_EXP2(wmep->wmep_logcwmin);
sys/dev/pci/if_iwi.c
998
wme[0].cwmax[ac] = IWI_EXP2(wmep->wmep_logcwmax);
sys/dev/pci/if_iwi.c
999
wme[0].burst[ac] = IWI_USEC(wmep->wmep_txopLimit);
sys/dev/pci/if_iwm.c
4890
iwm_tx(struct iwm_softc *sc, struct mbuf *m, struct ieee80211_node *ni, int ac)
sys/dev/pci/if_iwm.c
4940
qid = IWM_DQA_MIN_MGMT_QUEUE + ac;
sys/dev/pci/if_iwm.c
4942
qid = ac;
sys/dev/pci/if_iwm.c
4960
ac = ieee80211_up_to_ac(ic, qostid);
sys/dev/pci/if_iwm.c
5001
tap->wt_hwqueue = ac;
sys/dev/pci/if_iwm.c
5434
int ac;
sys/dev/pci/if_iwm.c
5435
for (ac = 0; ac < WME_NUM_AC; ac++) {
sys/dev/pci/if_iwm.c
5436
int qid = ac;
sys/dev/pci/if_iwm.c
6272
cmd->ac[txf].cw_min = htole16(IWM_EXP2(wmep->wmep_logcwmin));
sys/dev/pci/if_iwm.c
6273
cmd->ac[txf].cw_max = htole16(IWM_EXP2(wmep->wmep_logcwmax));
sys/dev/pci/if_iwm.c
6274
cmd->ac[txf].aifsn = wmep->wmep_aifsn;
sys/dev/pci/if_iwm.c
6275
cmd->ac[txf].fifos_mask = (1 << txf);
sys/dev/pci/if_iwm.c
6276
cmd->ac[txf].edca_txop = htole16(wmep->wmep_txopLimit * 32);
sys/dev/pci/if_iwm.c
7603
int err, i, ac, qid, s;
sys/dev/pci/if_iwm.c
7756
for (ac = 0; ac < WME_NUM_AC; ac++) {
sys/dev/pci/if_iwm.c
7758
qid = ac + IWM_DQA_MIN_MGMT_QUEUE;
sys/dev/pci/if_iwm.c
7760
qid = ac;
sys/dev/pci/if_iwm.c
7762
iwm_ac_to_tx_fifo[ac], 0, IWM_TID_NON_QOS, 0);
sys/dev/pci/if_iwm.c
7766
ac, err);
sys/dev/pci/if_iwm.c
7860
int ac;
sys/dev/pci/if_iwm.c
7877
ac = WME_AC_BE;
sys/dev/pci/if_iwm.c
7911
ac = (eh->ether_type != htons(ETHERTYPE_PAE)) ?
sys/dev/pci/if_iwm.c
7925
if (iwm_tx(sc, m, ni, ac) != 0) {
sys/dev/pci/if_iwmreg.h
3926
struct iwm_ac_qos ac[IWM_AC_NUM+1];
sys/dev/pci/if_iwn.c
2980
iwn_tx(struct iwn_softc *sc, struct mbuf *m, struct ieee80211_node *ni, int ac)
sys/dev/pci/if_iwn.c
3019
noack = cap->cap_wmeParams[ac].wmep_noackPolicy;
sys/dev/pci/if_iwn.c
3024
ring = &sc->txq[ac];
sys/dev/pci/if_iwn.c
3064
tap->wt_hwqueue = ac;
sys/dev/pci/if_iwn.c
3278
int ac;
sys/dev/pci/if_iwn.c
3297
ac = 0;
sys/dev/pci/if_iwn.c
3328
ac = (eh->ether_type != htons(ETHERTYPE_PAE)) ?
sys/dev/pci/if_iwn.c
3345
if (iwn_tx(sc, m, ni, ac) != 0) {
sys/dev/pci/if_iwn.c
5136
int ac;
sys/dev/pci/if_iwn.c
5142
for (ac = 0; ac < WME_NUM_AC; ac++) {
sys/dev/pci/if_iwn.c
5143
wmep = &ic->ic_wme.wme_chanParams.cap_wmeParams[ac];
sys/dev/pci/if_iwn.c
5144
cmd.ac[ac].aifsn = wmep->wmep_aifsn;
sys/dev/pci/if_iwn.c
5145
cmd.ac[ac].cwmin = IWN_EXP2(wmep->wmep_logcwmin);
sys/dev/pci/if_iwn.c
5146
cmd.ac[ac].cwmax = IWN_EXP2(wmep->wmep_logcwmax);
sys/dev/pci/if_iwn.c
5147
cmd.ac[ac].txoplimit = IWN_USEC(wmep->wmep_txopLimit);
sys/dev/pci/if_iwn.c
5150
"txop=%d\n", ac, cmd.ac[ac].aifsn,
sys/dev/pci/if_iwn.c
5151
cmd.ac[ac].cwmin,
sys/dev/pci/if_iwn.c
5152
cmd.ac[ac].cwmax, cmd.ac[ac].txoplimit));
sys/dev/pci/if_iwnreg.h
549
} __packed ac[WME_NUM_AC];
sys/dev/pci/if_ste.c
1194
uint32_t ac;
sys/dev/pci/if_ste.c
1197
ac = bus_space_read_4(sc->sc_st, sc->sc_sh, STE_AsicCtrl);
sys/dev/pci/if_ste.c
1199
bus_space_write_4(sc->sc_st, sc->sc_sh, STE_AsicCtrl, ac | rstbits);
sys/dev/pci/if_stge.c
1464
uint32_t ac;
sys/dev/pci/if_stge.c
1467
ac = CSR_READ_4(sc, STGE_AsicCtrl);
sys/dev/pci/if_stge.c
1475
ac | AC_GlobalReset | AC_RxReset | AC_TxReset |
sys/dev/pci/if_wpi.c
1899
int ac)
sys/dev/pci/if_wpi.c
1902
struct wpi_tx_ring *ring = &sc->txq[ac];
sys/dev/pci/if_wpi.c
1920
noack = cap->cap_wmeParams[ac].wmep_noackPolicy;
sys/dev/pci/if_wpi.c
1957
tap->wt_hwqueue = ac;
sys/dev/pci/if_wpi.c
2107
int ac;
sys/dev/pci/if_wpi.c
213
int ac, error;
sys/dev/pci/if_wpi.c
2162
ac = (eh->ether_type != htons(ETHERTYPE_PAE)) ?
sys/dev/pci/if_wpi.c
2165
if (sc->txq[ac].queued > sc->txq[ac].count - 8) {
sys/dev/pci/if_wpi.c
2179
if (wpi_tx_data(sc, m0, ni, ac) != 0) {
sys/dev/pci/if_wpi.c
2426
int ac;
sys/dev/pci/if_wpi.c
2433
for (ac = 0; ac < WME_NUM_AC; ac++) {
sys/dev/pci/if_wpi.c
2434
wmep = &ic->ic_wme.wme_chanParams.cap_wmeParams[ac];
sys/dev/pci/if_wpi.c
2435
wme.ac[ac].aifsn = wmep->wmep_aifsn;
sys/dev/pci/if_wpi.c
2436
wme.ac[ac].cwmin = WPI_EXP2(wmep->wmep_logcwmin);
sys/dev/pci/if_wpi.c
2437
wme.ac[ac].cwmax = WPI_EXP2(wmep->wmep_logcwmax);
sys/dev/pci/if_wpi.c
2438
wme.ac[ac].txop = WPI_USEC(wmep->wmep_txopLimit);
sys/dev/pci/if_wpi.c
2441
"txop=%d\n", ac, wme.ac[ac].aifsn, wme.ac[ac].cwmin,
sys/dev/pci/if_wpi.c
2442
wme.ac[ac].cwmax, wme.ac[ac].txop));
sys/dev/pci/if_wpi.c
316
for (ac = 0; ac < 4; ac++) {
sys/dev/pci/if_wpi.c
317
error = wpi_alloc_tx_ring(sc, &sc->txq[ac], WPI_TX_RING_COUNT,
sys/dev/pci/if_wpi.c
318
ac);
sys/dev/pci/if_wpi.c
321
"could not allocate Tx ring %d\n", ac);
sys/dev/pci/if_wpi.c
3315
int ac;
sys/dev/pci/if_wpi.c
3339
for (ac = 0; ac < 4; ac++)
sys/dev/pci/if_wpi.c
3340
wpi_reset_tx_ring(sc, &sc->txq[ac]);
sys/dev/pci/if_wpi.c
421
fail3: while (--ac >= 0)
sys/dev/pci/if_wpi.c
422
wpi_free_tx_ring(sc, &sc->txq[ac]);
sys/dev/pci/if_wpi.c
440
int ac;
sys/dev/pci/if_wpi.c
450
for (ac = 0; ac < 4; ac++)
sys/dev/pci/if_wpi.c
451
wpi_free_tx_ring(sc, &sc->txq[ac]);
sys/dev/pci/if_wpireg.h
329
} __packed ac[WME_NUM_AC];
sys/dev/pci/ld_amr.c
123
struct amr_ccb *ac;
sys/dev/pci/ld_amr.c
130
if ((rv = amr_ccb_alloc(amr, &ac)) != 0)
sys/dev/pci/ld_amr.c
133
mb = &ac->ac_cmd;
sys/dev/pci/ld_amr.c
139
rv = amr_ccb_map(amr, ac, data, datasize,
sys/dev/pci/ld_amr.c
142
amr_ccb_free(amr, ac);
sys/dev/pci/ld_amr.c
151
rv = amr_ccb_poll(amr, ac, 30000);
sys/dev/pci/ld_amr.c
152
amr_ccb_unmap(amr, ac);
sys/dev/pci/ld_amr.c
153
amr_ccb_free(amr, ac);
sys/dev/pci/ld_amr.c
155
ac->ac_handler = ld_amr_handler;
sys/dev/pci/ld_amr.c
156
ac->ac_context = bp;
sys/dev/pci/ld_amr.c
157
ac->ac_dv = sc->sc_ld.sc_dv;
sys/dev/pci/ld_amr.c
158
amr_ccb_enqueue(amr, ac);
sys/dev/pci/ld_amr.c
173
ld_amr_handler(struct amr_ccb *ac)
sys/dev/pci/ld_amr.c
179
bp = ac->ac_context;
sys/dev/pci/ld_amr.c
180
sc = device_private(ac->ac_dv);
sys/dev/pci/ld_amr.c
183
if (ac->ac_status != AMR_STATUS_SUCCESS) {
sys/dev/pci/ld_amr.c
185
ac->ac_status);
sys/dev/pci/ld_amr.c
192
amr_ccb_unmap(amr, ac);
sys/dev/pci/ld_amr.c
193
amr_ccb_free(amr, ac);
sys/dev/raidframe/rf_disks.c
368
RF_AutoConfig_t *ac;
sys/dev/raidframe/rf_disks.c
389
ac = auto_config;
sys/dev/raidframe/rf_disks.c
390
while(ac!=NULL) {
sys/dev/raidframe/rf_disks.c
392
mod_counter = ac->clabel->mod_counter;
sys/dev/raidframe/rf_disks.c
395
if (ac->clabel->mod_counter > mod_counter) {
sys/dev/raidframe/rf_disks.c
396
mod_counter = ac->clabel->mod_counter;
sys/dev/raidframe/rf_disks.c
399
ac->flag = 0; /* clear the general purpose flag */
sys/dev/raidframe/rf_disks.c
400
ac = ac->next;
sys/dev/raidframe/rf_disks.c
413
ac = auto_config;
sys/dev/raidframe/rf_disks.c
414
while(ac!=NULL) {
sys/dev/raidframe/rf_disks.c
415
if (ac->clabel==NULL) {
sys/dev/raidframe/rf_disks.c
419
if ((ac->clabel->column == c) &&
sys/dev/raidframe/rf_disks.c
420
(ac->clabel->mod_counter == mod_counter)) {
sys/dev/raidframe/rf_disks.c
424
ac->flag = 1;
sys/dev/raidframe/rf_disks.c
427
ac->devname,c);
sys/dev/raidframe/rf_disks.c
432
ac=ac->next;
sys/dev/raidframe/rf_disks.c
435
if (ac==NULL) {
sys/dev/raidframe/rf_disks.c
443
ac = auto_config;
sys/dev/raidframe/rf_disks.c
444
while(ac!=NULL) {
sys/dev/raidframe/rf_disks.c
445
if (ac->clabel==NULL) {
sys/dev/raidframe/rf_disks.c
449
if (ac->clabel->column == c) {
sys/dev/raidframe/rf_disks.c
453
ac->flag = 1;
sys/dev/raidframe/rf_disks.c
456
ac->devname,c);
sys/dev/raidframe/rf_disks.c
461
ac=ac->next;
sys/dev/raidframe/rf_disks.c
467
if (ac!=NULL) {
sys/dev/raidframe/rf_disks.c
469
diskPtr->blockSize = ac->clabel->blockSize;
sys/dev/raidframe/rf_disks.c
471
rf_component_label_numblocks(ac->clabel);
sys/dev/raidframe/rf_disks.c
474
raidPtr->raid_cinfo[c].ci_vp = ac->vp;
sys/dev/raidframe/rf_disks.c
475
raidPtr->raid_cinfo[c].ci_dev = ac->dev;
sys/dev/raidframe/rf_disks.c
478
ac->clabel, sizeof(*ac->clabel));
sys/dev/raidframe/rf_disks.c
480
"/dev/%s", ac->devname);
sys/dev/raidframe/rf_disks.c
486
diskPtr->dev = ac->dev;
sys/dev/raidframe/rf_disks.c
509
raidPtr->serial_number = ac->clabel->serial_number;
sys/dev/raidframe/rf_disks.c
512
if (ac->clabel->mod_counter != mod_counter) {
sys/dev/raidframe/rf_disks.c
522
if (ac->clabel->clean != RF_RAID_CLEAN) {
sys/dev/raidframe/rf_disks.c
545
ac = auto_config;
sys/dev/raidframe/rf_disks.c
546
while(ac!=NULL) {
sys/dev/raidframe/rf_disks.c
547
if (ac->flag == 0) {
sys/dev/raidframe/rf_disks.c
548
vn_lock(ac->vp, LK_EXCLUSIVE | LK_RETRY);
sys/dev/raidframe/rf_disks.c
549
VOP_CLOSE(ac->vp, FREAD | FWRITE, NOCRED);
sys/dev/raidframe/rf_disks.c
550
vput(ac->vp);
sys/dev/raidframe/rf_disks.c
551
ac->vp = NULL;
sys/dev/raidframe/rf_disks.c
554
ac->devname);
sys/dev/raidframe/rf_disks.c
557
ac = ac->next;
sys/dev/raidframe/rf_driver.c
298
rf_Configure(RF_Raid_t *raidPtr, RF_Config_t *cfgPtr, RF_AutoConfig_t *ac)
sys/dev/raidframe/rf_driver.c
371
if (ac!=NULL) {
sys/dev/raidframe/rf_driver.c
375
rf_AutoConfigureDisks(raidPtr, cfgPtr, ac);
sys/dev/raidframe/rf_netbsd.h
126
struct RF_AutoConfig_s *ac; /* all of the autoconfig structures for
sys/dev/raidframe/rf_netbsdkintf.c
2916
RF_AutoConfig_t *ac;
sys/dev/raidframe/rf_netbsdkintf.c
2930
ac = malloc(sizeof(RF_AutoConfig_t), M_RAIDFRAME,
sys/dev/raidframe/rf_netbsdkintf.c
2932
strlcpy(ac->devname, cname, sizeof(ac->devname));
sys/dev/raidframe/rf_netbsdkintf.c
2933
ac->dev = dev;
sys/dev/raidframe/rf_netbsdkintf.c
2934
ac->vp = vp;
sys/dev/raidframe/rf_netbsdkintf.c
2935
ac->clabel = clabel;
sys/dev/raidframe/rf_netbsdkintf.c
2936
ac->next = ac_list;
sys/dev/raidframe/rf_netbsdkintf.c
2937
ac_list = ac;
sys/dev/raidframe/rf_netbsdkintf.c
3277
RF_AutoConfig_t *ac;
sys/dev/raidframe/rf_netbsdkintf.c
3287
ac = ac_list;
sys/dev/raidframe/rf_netbsdkintf.c
3288
while(ac!=NULL) {
sys/dev/raidframe/rf_netbsdkintf.c
3291
ac_next = ac->next;
sys/dev/raidframe/rf_netbsdkintf.c
3298
config_sets->ac = ac;
sys/dev/raidframe/rf_netbsdkintf.c
3301
ac->next = NULL;
sys/dev/raidframe/rf_netbsdkintf.c
3306
if (rf_does_it_fit(cset, ac)) {
sys/dev/raidframe/rf_netbsdkintf.c
3308
ac->next = cset->ac;
sys/dev/raidframe/rf_netbsdkintf.c
3309
cset->ac = ac;
sys/dev/raidframe/rf_netbsdkintf.c
3318
cset->ac = ac;
sys/dev/raidframe/rf_netbsdkintf.c
3319
ac->next = NULL;
sys/dev/raidframe/rf_netbsdkintf.c
3325
ac = ac_next;
sys/dev/raidframe/rf_netbsdkintf.c
3333
rf_does_it_fit(RF_ConfigSet_t *cset, RF_AutoConfig_t *ac)
sys/dev/raidframe/rf_netbsdkintf.c
3362
clabel1 = cset->ac->clabel;
sys/dev/raidframe/rf_netbsdkintf.c
3363
clabel2 = ac->clabel;
sys/dev/raidframe/rf_netbsdkintf.c
3393
RF_AutoConfig_t *ac;
sys/dev/raidframe/rf_netbsdkintf.c
3408
num_cols = cset->ac->clabel->num_columns;
sys/dev/raidframe/rf_netbsdkintf.c
3409
parity_type = cset->ac->clabel->parityConfig;
sys/dev/raidframe/rf_netbsdkintf.c
3417
ac = cset->ac;
sys/dev/raidframe/rf_netbsdkintf.c
3418
while(ac!=NULL) {
sys/dev/raidframe/rf_netbsdkintf.c
3420
mod_counter = ac->clabel->mod_counter;
sys/dev/raidframe/rf_netbsdkintf.c
3423
if (ac->clabel->mod_counter > mod_counter) {
sys/dev/raidframe/rf_netbsdkintf.c
3424
mod_counter = ac->clabel->mod_counter;
sys/dev/raidframe/rf_netbsdkintf.c
3427
ac = ac->next;
sys/dev/raidframe/rf_netbsdkintf.c
3431
auto_config = cset->ac;
sys/dev/raidframe/rf_netbsdkintf.c
3435
ac = auto_config;
sys/dev/raidframe/rf_netbsdkintf.c
3436
while(ac!=NULL) {
sys/dev/raidframe/rf_netbsdkintf.c
3437
if ((ac->clabel->column == c) &&
sys/dev/raidframe/rf_netbsdkintf.c
3438
(ac->clabel->mod_counter == mod_counter)) {
sys/dev/raidframe/rf_netbsdkintf.c
3442
ac->devname,c);
sys/dev/raidframe/rf_netbsdkintf.c
3446
ac=ac->next;
sys/dev/raidframe/rf_netbsdkintf.c
3448
if (ac==NULL) {
sys/dev/raidframe/rf_netbsdkintf.c
3479
clabel = cset->ac->clabel;
sys/dev/raidframe/rf_netbsdkintf.c
3494
rf_create_configuration(RF_AutoConfig_t *ac, RF_Config_t *config,
sys/dev/raidframe/rf_netbsdkintf.c
3500
clabel = ac->clabel;
sys/dev/raidframe/rf_netbsdkintf.c
3514
while(ac!=NULL) {
sys/dev/raidframe/rf_netbsdkintf.c
3517
strcpy(config->devnames[0][ac->clabel->column],
sys/dev/raidframe/rf_netbsdkintf.c
3518
ac->devname);
sys/dev/raidframe/rf_netbsdkintf.c
3519
ac = ac->next;
sys/dev/raidframe/rf_netbsdkintf.c
3585
RF_AutoConfig_t *ac;
sys/dev/raidframe/rf_netbsdkintf.c
3587
ac = cset->ac;
sys/dev/raidframe/rf_netbsdkintf.c
3588
while(ac!=NULL) {
sys/dev/raidframe/rf_netbsdkintf.c
3590
if (ac->vp) {
sys/dev/raidframe/rf_netbsdkintf.c
3591
vn_lock(ac->vp, LK_EXCLUSIVE | LK_RETRY);
sys/dev/raidframe/rf_netbsdkintf.c
3592
VOP_CLOSE(ac->vp, FREAD | FWRITE, NOCRED);
sys/dev/raidframe/rf_netbsdkintf.c
3593
vput(ac->vp);
sys/dev/raidframe/rf_netbsdkintf.c
3594
ac->vp = NULL;
sys/dev/raidframe/rf_netbsdkintf.c
3596
ac = ac->next;
sys/dev/raidframe/rf_netbsdkintf.c
3604
RF_AutoConfig_t *ac;
sys/dev/raidframe/rf_netbsdkintf.c
3607
ac = cset->ac;
sys/dev/raidframe/rf_netbsdkintf.c
3608
while(ac!=NULL) {
sys/dev/raidframe/rf_netbsdkintf.c
3609
next_ac = ac->next;
sys/dev/raidframe/rf_netbsdkintf.c
3611
free(ac->clabel, M_RAIDFRAME);
sys/dev/raidframe/rf_netbsdkintf.c
3613
free(ac, M_RAIDFRAME);
sys/dev/raidframe/rf_netbsdkintf.c
3615
ac = next_ac;
sys/dev/raidframe/rf_netbsdkintf.c
3677
raidID = cset->ac->clabel->last_unit;
sys/dev/raidframe/rf_netbsdkintf.c
3695
rf_create_configuration(cset->ac, config, raidPtr);
sys/dev/raidframe/rf_netbsdkintf.c
3698
if (rf_Configure(raidPtr, config, cset->ac) == 0) {
sys/dev/raidframe/rf_netbsdkintf.c
3703
switch (cset->ac->clabel->root_partition) {
sys/dev/raidframe/rf_netbsdkintf.c
3711
cset->rootable = cset->ac->clabel->root_partition;
sys/dev/raidframe/rf_netbsdkintf.c
496
cset->ac->clabel->autoconfigure == 1) {
sys/dev/raidframe/rf_netbsdkintf.c
677
cset->ac->clabel->autoconfigure == 1) {
sys/dev/raidframe/rf_reconstruct.c
368
int ac;
sys/dev/raidframe/rf_reconstruct.c
432
ac = raidPtr->Disks[col].auto_configured;
sys/dev/raidframe/rf_reconstruct.c
434
rf_close_component(raidPtr, vp, ac);
sys/dev/usb/if_bwfm_usb.c
785
int error, ac;
sys/dev/usb/if_bwfm_usb.c
798
ac = (eh->ether_type != htons(ETHERTYPE_PAE)) ?
sys/dev/usb/if_bwfm_usb.c
809
hdr->priority = ac;
sys/dev/usb/if_urtwn.c
2276
int ac, aifs, slottime;
sys/dev/usb/if_urtwn.c
2285
for (ac = 0; ac < WME_NUM_AC; ac++) {
sys/dev/usb/if_urtwn.c
2286
wmep = &ic->ic_wme.wme_chanParams.cap_wmeParams[ac];
sys/dev/usb/if_urtwn.c
2289
urtwn_write_4(sc, ac2reg[ac],
sys/dist/pf/net/pf_table.c
2092
struct pf_anchor *ac = rs->anchor;
sys/dist/pf/net/pf_table.c
2096
if (ac != NULL)
sys/dist/pf/net/pf_table.c
2097
strlcpy(tbl.pfrt_anchor, ac->path, sizeof(tbl.pfrt_anchor));
sys/dist/pf/net/pf_table.c
2103
if (ac != NULL) {
sys/fs/hfs/libhfs.c
2329
unichar_t ac, bc; /* current character from a, b */
sys/fs/hfs/libhfs.c
2355
ac = a->name.unicode[apos];
sys/fs/hfs/libhfs.c
2356
lc = hfs_gcft[hbyte(ac)];
sys/fs/hfs/libhfs.c
2358
lc = ac;
sys/fs/hfs/libhfs.c
2360
lc = hfs_gcft[lc + lbyte(ac)];
sys/fs/hfs/libhfs.c
2362
ac = lc;
sys/fs/hfs/libhfs.c
2376
if (ac != bc || (ac == 0 && bc == 0))
sys/fs/hfs/libhfs.c
2377
return ac - bc;
sys/kern/subr_blist.c
1042
main(int ac, char **av)
sys/kern/subr_blist.c
1048
for (i = 1; i < ac; ++i) {
sys/net/if_arcsubr.c
115
struct arccom *ac;
sys/net/if_arcsubr.c
127
ac = (struct arccom *)ifp;
sys/net/if_arcsubr.c
256
++ac->ac_seqid; /* make the seqid unique */
sys/net/if_arcsubr.c
277
ah->arc_seqid = ac->ac_seqid;
sys/net/if_arcsubr.c
304
ah->arc_seqid2 = ac->ac_seqid;
sys/net/if_arcsubr.c
311
ah->arc_seqid = ac->ac_seqid;
sys/net/if_arcsubr.c
344
struct arccom *ac;
sys/net/if_arcsubr.c
351
ac = (struct arccom *)ifp;
sys/net/if_arcsubr.c
384
af = &ac->ac_fragtab[src];
sys/net/if_arcsubr.c
592
struct arccom *ac;
sys/net/if_arcsubr.c
607
ac = (struct arccom *)ifp;
sys/net/if_arcsubr.c
608
ac->ac_seqid = (time_second) & 0xFFFF; /* try to make seqid unique */
sys/net80211/ieee80211_ioctl.c
1271
int ac;
sys/net80211/ieee80211_ioctl.c
1276
ac = (ireq->i_len & IEEE80211_WMEPARAM_VAL);
sys/net80211/ieee80211_ioctl.c
1277
if (ac >= WME_NUM_AC)
sys/net80211/ieee80211_ioctl.c
1278
ac = WME_AC_BE;
sys/net80211/ieee80211_ioctl.c
1280
wmep = &wme->wme_wmeBssChanParams.cap_wmeParams[ac];
sys/net80211/ieee80211_ioctl.c
1282
wmep = &wme->wme_wmeChanParams.cap_wmeParams[ac];
sys/net80211/ieee80211_ioctl.c
1297
wmep = &wme->wme_wmeBssChanParams.cap_wmeParams[ac];
sys/net80211/ieee80211_ioctl.c
1301
wmep = &wme->wme_wmeChanParams.cap_wmeParams[ac];
sys/net80211/ieee80211_ioctl.c
1956
int isbss, ac;
sys/net80211/ieee80211_ioctl.c
1962
ac = (ireq->i_len & IEEE80211_WMEPARAM_VAL);
sys/net80211/ieee80211_ioctl.c
1963
if (ac >= WME_NUM_AC)
sys/net80211/ieee80211_ioctl.c
1964
ac = WME_AC_BE;
sys/net80211/ieee80211_ioctl.c
1966
chanp = &wme->wme_bssChanParams.cap_wmeParams[ac];
sys/net80211/ieee80211_ioctl.c
1967
wmep = &wme->wme_wmeBssChanParams.cap_wmeParams[ac];
sys/net80211/ieee80211_ioctl.c
1969
chanp = &wme->wme_chanParams.cap_wmeParams[ac];
sys/net80211/ieee80211_ioctl.c
1970
wmep = &wme->wme_wmeChanParams.cap_wmeParams[ac];
sys/net80211/ieee80211_netbsd.h
180
#define M_WME_SETAC(m, ac) \
sys/net80211/ieee80211_netbsd.h
182
((ac) << M_WME_AC_SHIFT))
sys/net80211/ieee80211_output.c
1302
const struct wmeParams *ac =
sys/net80211/ieee80211_output.c
1305
SM(ac->wmep_acm, WME_PARAM_ACM) |
sys/net80211/ieee80211_output.c
1306
SM(ac->wmep_aifsn, WME_PARAM_AIFSN);
sys/net80211/ieee80211_output.c
1307
*frm++ = SM(ac->wmep_logcwmax, WME_PARAM_LOGCWMAX) |
sys/net80211/ieee80211_output.c
1308
SM(ac->wmep_logcwmin, WME_PARAM_LOGCWMIN);
sys/net80211/ieee80211_output.c
1309
ADDSHORT(frm, ac->wmep_txopLimit);
sys/net80211/ieee80211_output.c
291
int v_wme_ac, d_wme_ac, ac;
sys/net80211/ieee80211_output.c
297
ac = WME_AC_BE;
sys/net80211/ieee80211_output.c
375
ac = v_wme_ac;
sys/net80211/ieee80211_output.c
377
ac = d_wme_ac;
sys/net80211/ieee80211_output.c
389
while (ac != WME_AC_BK &&
sys/net80211/ieee80211_output.c
390
ic->ic_wme.wme_wmeBssChanParams.cap_wmeParams[ac].wmep_acm)
sys/net80211/ieee80211_output.c
391
ac = acmap[ac];
sys/net80211/ieee80211_output.c
394
M_WME_SETAC(m, ac);
sys/net80211/ieee80211_output.c
657
int ac, tid;
sys/net80211/ieee80211_output.c
659
ac = M_WME_GETAC(m);
sys/net80211/ieee80211_output.c
661
tid = WME_AC_TO_TID(ac);
sys/net80211/ieee80211_output.c
663
if (ic->ic_wme.wme_wmeChanParams.cap_wmeParams[ac].wmep_noackPolicy)
usr.bin/bdes/bdes.c
186
main(int ac, char *av[])
usr.bin/bdes/bdes.c
199
argc = ac;
usr.bin/bdes/bdes.c
200
ac = 1;
usr.bin/bthset/bthset.c
147
main(int ac, char *av[])
usr.bin/bthset/bthset.c
162
while ((ch = getopt(ac, av, "hc:m:p:s:v")) != EOF) {
usr.bin/btkey/btkey.c
133
ac -= optind;
usr.bin/btkey/btkey.c
147
|| ac > 0)
usr.bin/btkey/btkey.c
53
main(int ac, char *av[])
usr.bin/btkey/btkey.c
64
while ((ch = getopt(ac, av, "a:cCd:k:lLrRwW")) != EOF) {
usr.bin/btpin/btpin.c
51
main(int ac, char *av[])
usr.bin/btpin/btpin.c
68
while ((ch = getopt(ac, av, "a:d:l:Pp:rs:")) != -1) {
usr.bin/deroff/deroff.c
265
main(int ac, char **av)
usr.bin/deroff/deroff.c
283
while ((ch = getopt(ac, av, "ikpwm:")) != -1) {
usr.bin/deroff/deroff.c
328
argc = ac - optind;
usr.bin/gzip/gzip.c
529
char *s, **nargv, **ac;
usr.bin/gzip/gzip.c
549
ac = *argv;
usr.bin/gzip/gzip.c
560
nargv[i++] = *(ac++);
usr.bin/gzip/gzip.c
584
while (*ac)
usr.bin/gzip/gzip.c
585
nargv[i++] = *(ac++);
usr.bin/m4/eval.c
130
int ac;
usr.bin/m4/eval.c
148
ac = argc;
usr.bin/m4/eval.c
317
dochangequote(argv, ac);
usr.bin/m4/eval.c
777
dochangequote(const char *argv[], int ac)
usr.bin/m4/eval.c
779
if (ac == 2) {
usr.bin/m4/eval.c
784
if (ac > 3) {
usr.bin/make/var.c
3314
size_t ac = words.len;
usr.bin/make/var.c
3318
Buf_AddInt(&buf, (int)ac);
usr.bin/mklocale/yacc.y
263
main(int ac, char *av[])
usr.bin/mklocale/yacc.y
272
while ((x = getopt(ac, av, "do:t:")) != EOF) {
usr.bin/mklocale/yacc.y
290
switch (ac - optind) {
usr.bin/qsubst/qsubst.c
502
main(int ac, char **av)
usr.bin/qsubst/qsubst.c
507
if (ac < 3) {
usr.bin/qsubst/qsubst.c
553
(access(av[ac - 1], R_OK | W_OK) < 0) &&
usr.bin/qsubst/qsubst.c
554
(access(av[ac - 2], R_OK | W_OK) < 0)) {
usr.bin/qsubst/qsubst.c
560
ac -= 2;
usr.bin/qsubst/qsubst.c
574
for (ac--, av++; ac; ac--, av++) {
usr.bin/qsubst/qsubst.c
609
if (++skip >= ac) {
usr.bin/rs/rs.c
396
getargs(int ac, char *av[])
usr.bin/rs/rs.c
400
if (ac == 1) {
usr.bin/rs/rs.c
403
while (--ac && **++av == '-')
usr.bin/rs/rs.c
495
switch (ac) {
usr.bin/shlock/shlock.c
365
main(int ac, char **av)
usr.bin/shlock/shlock.c
375
for(x = 1; x < ac; x++) {
usr.bin/shlock/shlock.c
388
if (++x >= ac) {
usr.bin/shlock/shlock.c
399
if (++x >= ac) {
usr.bin/unzip/unzip.c
431
ac(archive_read_data_skip(a));
usr.bin/unzip/unzip.c
530
ac(len);
usr.bin/unzip/unzip.c
714
ac(archive_read_data_skip(a));
usr.bin/unzip/unzip.c
722
ac(archive_read_data_skip(a));
usr.bin/unzip/unzip.c
729
ac(archive_read_data_skip(a));
usr.bin/unzip/unzip.c
736
ac(archive_read_data_skip(a));
usr.bin/unzip/unzip.c
775
ac(archive_read_data_skip(a));
usr.bin/unzip/unzip.c
782
ac(archive_read_data_skip(a));
usr.bin/unzip/unzip.c
789
ac(archive_read_data_skip(a));
usr.bin/unzip/unzip.c
831
ac(archive_read_data_skip(a));
usr.bin/unzip/unzip.c
858
ac(archive_read_data_skip(a));
usr.bin/unzip/unzip.c
906
ac(archive_read_support_format_zip(a));
usr.bin/unzip/unzip.c
913
ac(archive_read_open_filename(a, fn, 8192));
usr.bin/unzip/unzip.c
933
ac(ret);
usr.bin/unzip/unzip.c
958
ac(archive_read_free(a));
usr.sbin/ac/ac.c
101
static int ac(FILE *);
usr.sbin/ac/ac.c
325
ac(fp);
usr.sbin/bta2dpd/bta2dpd/bta2dpd.c
266
main(int ac, char *av[])
usr.sbin/bta2dpd/bta2dpd/bta2dpd.c
283
while ((ch = getopt(ac, av, "A:a:B:b:Dd:e:f:IKnM:m:p:r:tV:v")) !=
usr.sbin/bta2dpd/bta2dpd/bta2dpd.c
457
ac -= optind;
usr.sbin/bta2dpd/bta2dpd/bta2dpd.c
459
numfiles = ac;
usr.sbin/btconfig/btconfig.c
207
main(int ac, char *av[])
usr.sbin/btconfig/btconfig.c
212
while ((ch = getopt(ac, av, "hlsvz")) != -1) {
usr.sbin/btconfig/btconfig.c
236
ac -= optind;
usr.sbin/btconfig/btconfig.c
245
if (ac == 0) {
usr.sbin/btconfig/btconfig.c
257
av++, ac--;
usr.sbin/btconfig/btconfig.c
262
if (ac == 0)
usr.sbin/btconfig/btconfig.c
265
while (ac > 0) {
usr.sbin/btconfig/btconfig.c
284
if (--ac < 1) badarg(p->name);
usr.sbin/btconfig/btconfig.c
290
if (--ac < 1) badarg(p->name);
usr.sbin/btconfig/btconfig.c
296
if (--ac < 1) badarg(p->name);
usr.sbin/btconfig/btconfig.c
302
if (--ac < 1) badarg(p->name);
usr.sbin/btconfig/btconfig.c
313
av++, ac--;
usr.sbin/grfconfig/grfconfig.c
106
ac -= optind;
usr.sbin/grfconfig/grfconfig.c
110
if (ac < 1)
usr.sbin/grfconfig/grfconfig.c
114
if (ac >= 2)
usr.sbin/grfconfig/grfconfig.c
75
main(int ac, char **av)
usr.sbin/grfconfig/grfconfig.c
93
while ((c = getopt(ac, av, "rt")) != -1) {
usr.sbin/sa/main.c
300
struct acct ac;
usr.sbin/sa/main.c
320
if (fread(&ac, sizeof(struct acct), 1, fp) != 1) {
usr.sbin/sa/main.c
333
for (i = 0; i < sizeof(ac.ac_comm) && ac.ac_comm[i] != '\0';
usr.sbin/sa/main.c
335
char c = ac.ac_comm[i];
usr.sbin/sa/main.c
343
if (ac.ac_flag & AFORK)
usr.sbin/sa/main.c
346
ci.ci_etime = decode_comp_t(ac.ac_etime);
usr.sbin/sa/main.c
347
ci.ci_utime = decode_comp_t(ac.ac_utime);
usr.sbin/sa/main.c
348
ci.ci_stime = decode_comp_t(ac.ac_stime);
usr.sbin/sa/main.c
349
ci.ci_uid = ac.ac_uid;
usr.sbin/sa/main.c
350
ci.ci_mem = ac.ac_mem;
usr.sbin/sa/main.c
351
ci.ci_io = decode_comp_t(ac.ac_io) / AHZ;
usr.sbin/srtconfig/srtconfig.c
281
int main(int ac, char **av)
usr.sbin/srtconfig/srtconfig.c
283
handleargs(ac,av);
usr.sbin/srtconfig/srtconfig.c
42
static void handleargs(int ac, char **av)
usr.sbin/srtconfig/srtconfig.c
45
if (ac == 2)
usr.sbin/srtconfig/srtconfig.c
48
else if ((ac == 3) && !strcmp(av[2],"debug"))
usr.sbin/srtconfig/srtconfig.c
51
else if ((ac == 3) && !strcmp(av[2],"flags"))
usr.sbin/srtconfig/srtconfig.c
54
else if (ac == 3)
usr.sbin/srtconfig/srtconfig.c
58
else if ((ac == 4) && !strcmp(av[2],"del"))
usr.sbin/srtconfig/srtconfig.c
62
else if ((ac == 4) && !strcmp(av[2],"flags"))
usr.sbin/srtconfig/srtconfig.c
66
else if ((ac == 7) && !strcmp(av[2],"add"))
usr.sbin/srtconfig/srtconfig.c
73
else if ((ac == 8) && !strcmp(av[2],"set"))
usr.sbin/sunlabel/sunlabel.c
1313
main(int ac, char **av)
usr.sbin/sunlabel/sunlabel.c
1315
handleargs(ac, av);
usr.sbin/sunlabel/sunlabel.c
321
handleargs(int ac, char **av)
usr.sbin/sunlabel/sunlabel.c
325
while ((c = getopt(ac, av, "mnqs")) != -1) {
usr.sbin/sunlabel/sunlabel.c
344
ac -= optind;
usr.sbin/sunlabel/sunlabel.c
346
if (ac != 1)