Home
last modified time | relevance | path

Searched refs:ctl (Results 1 – 25 of 126) sorted by relevance

123456

/dflybsd-src/usr.sbin/dntpd/
H A Dlog.c39 static void vlogline(int level, int newline, const char *ctl, va_list va)
45 logerr(const char *ctl, ...) in logerr() argument
51 va_start(va, ctl); in logerr()
52 vlogline(0, 0, ctl, va); in logerr()
59 logerrstr(const char *ctl, ...) in logerrstr() argument
63 va_start(va, ctl); in logerrstr()
64 vlogline(0, 1, ctl, va); in logerrstr()
74 _logdebug(int level, const char *ctl, ...) in _logdebug() argument
79 va_start(va, ctl); in _logdebug()
80 vlogline(level, 0, ctl, va); in _logdebug()
[all …]
H A Ddefs.h63 #define logdebug(level, ctl, varargs...) \ argument
64 if (level <= debug_level) _logdebug(level, ctl, ##varargs);
65 #define logdebuginfo(info, level, ctl, varargs...) \ argument
66 if (level <= debug_level) _logdebuginfo(info, level, ctl, ##varargs);
96 void logerr(const char *ctl, ...) __printflike(1, 2);
97 void logerrstr(const char *ctl, ...) __printflike(1, 2);
98 void _logdebug(int level, const char *ctl, ...) __printflike(2, 3);
99 void _logdebuginfo(server_info_t info, int level, const char *ctl, ...)
/dflybsd-src/sys/dev/sound/pci/hda/
H A Dhdaa.h210 struct hdaa_audio_ctl *ctl; member
244 #define MINQDB(ctl) \ argument
245 ((0 - (ctl)->offset) * ((ctl)->size + 1))
247 #define MAXQDB(ctl) \ argument
248 (((ctl)->step - (ctl)->offset) * ((ctl)->size + 1))
250 #define RANGEQDB(ctl) \ argument
251 ((ctl)->step * ((ctl)->size + 1))
253 #define VAL2QDB(ctl, val) \ argument
254 (((ctl)->size + 1) * ((int)(val) - (ctl)->offset))
256 #define QDB2VAL(ctl, qdb) \ argument
[all …]
H A Dhdaa.c203 index == NULL || devinfo->ctl == NULL || in hdaa_audio_ctl_each()
207 return (&devinfo->ctl[(*index)++]); in hdaa_audio_ctl_each()
214 struct hdaa_audio_ctl *ctl; in hdaa_audio_ctl_amp_get() local
217 if (devinfo == NULL || devinfo->ctl == NULL) in hdaa_audio_ctl_amp_get()
221 while ((ctl = hdaa_audio_ctl_each(devinfo, &i)) != NULL) { in hdaa_audio_ctl_amp_get()
222 if (ctl->enable == 0) in hdaa_audio_ctl_amp_get()
224 if (ctl->widget->nid != nid) in hdaa_audio_ctl_amp_get()
226 if (dir && ctl->ndir != dir) in hdaa_audio_ctl_amp_get()
228 if (index >= 0 && ctl->ndir == HDAA_CTL_IN && in hdaa_audio_ctl_amp_get()
229 ctl->dir == ctl->ndir && ctl->index != index) in hdaa_audio_ctl_amp_get()
[all …]
H A Dhdac.c1440 uint32_t ctl; in sysctl_hdac_polling() local
1465 ctl = HDAC_READ_4(&sc->mem, HDAC_INTCTL); in sysctl_hdac_polling()
1466 ctl |= HDAC_INTCTL_GIE; in sysctl_hdac_polling()
1467 HDAC_WRITE_4(&sc->mem, HDAC_INTCTL, ctl); in sysctl_hdac_polling()
1469 ctl = HDAC_READ_4(&sc->mem, HDAC_INTCTL); in sysctl_hdac_polling()
1470 ctl &= ~HDAC_INTCTL_GIE; in sysctl_hdac_polling()
1471 HDAC_WRITE_4(&sc->mem, HDAC_INTCTL, ctl); in sysctl_hdac_polling()
1922 uint32_t ctl; in hdac_stream_start() local
1945 ctl = HDAC_READ_1(&sc->mem, off + HDAC_SDCTL2); in hdac_stream_start()
1947 ctl |= HDAC_SDCTL2_DIR; in hdac_stream_start()
[all …]
/dflybsd-src/bin/cpdup/
H A Dmisc.c8 logstd(const char *ctl, ...) in logstd() argument
12 va_start(va, ctl); in logstd()
13 vprintf(ctl, va); in logstd()
18 logerr(const char *ctl, ...) in logerr() argument
22 va_start(va, ctl); in logerr()
23 vfprintf(stderr, ctl, va); in logerr()
28 mprintf(const char *ctl, ...) in mprintf() argument
35 va_start(va, ctl); in mprintf()
36 if (vasprintf(&ptr, ctl, va) < 0) in mprintf()
164 fatal(const char *ctl, ...) in fatal() argument
[all …]
H A Dcpdup.h54 void logstd(const char *ctl, ...) __printflike(1, 2);
55 void logerr(const char *ctl, ...) __printflike(1, 2);
56 char *mprintf(const char *ctl, ...) __printflike(1, 2);
57 void fatal(const char *ctl, ...) __dead2 __printf0like(1, 2);
/dflybsd-src/lib/libc/db/test/hash.tests/
H A Dtverify.c56 HASHINFO ctl; in main() local
62 ctl.nelem = INITIAL; in main()
63 ctl.hash = NULL; in main()
64 ctl.bsize = 64; in main()
65 ctl.ffactor = 1; in main()
66 ctl.cachesize = 1024 * 1024; /* 1 MEG */ in main()
67 ctl.lorder = 0; in main()
68 if (!(dbp = dbopen( "hashtest", O_RDONLY, 0400, DB_HASH, &ctl))) { in main()
H A Dtread2.c56 HASHINFO ctl; in main() local
61 ctl.nelem = INITIAL; in main()
62 ctl.hash = NULL; in main()
63 ctl.bsize = 64; in main()
64 ctl.ffactor = 1; in main()
65 ctl.cachesize = atoi(*argv++); in main()
66 ctl.lorder = 0; in main()
67 if (!(dbp = dbopen( "hashtest", O_RDONLY, 0400, DB_HASH, &ctl))) { in main()
H A Dtdel.c53 HASHINFO ctl; in main() local
60 ctl.nelem = INITIAL; in main()
61 ctl.hash = NULL; in main()
62 ctl.bsize = atoi(*argv++); in main()
63 ctl.ffactor = atoi(*argv++); in main()
64 ctl.cachesize = 1024 * 1024; /* 1 MEG */ in main()
65 ctl.lorder = 0; in main()
67 if (!(dbp = dbopen( NULL, O_CREAT|O_RDWR, 0400, DB_HASH, &ctl))) { in main()
H A Dthash4.c55 HASHINFO ctl; in main() local
63 ctl.hash = NULL; in main()
64 ctl.bsize = atoi(*argv++); in main()
65 ctl.ffactor = atoi(*argv++); in main()
66 ctl.nelem = atoi(*argv++); in main()
67 ctl.cachesize = atoi(*argv++); in main()
68 ctl.lorder = 0; in main()
69 if (!(dbp = dbopen( NULL, O_CREAT|O_RDWR, 0400, DB_HASH, &ctl))) { in main()
H A Dtcreat3.c52 HASHINFO ctl; in main() local
59 ctl.hash = NULL; in main()
60 ctl.bsize = atoi(*argv++); in main()
61 ctl.ffactor = atoi(*argv++); in main()
62 ctl.nelem = atoi(*argv++); in main()
63 ctl.lorder = 0; in main()
65 O_CREAT|O_TRUNC|O_RDWR, 0600, DB_HASH, &ctl))){ in main()
/dflybsd-src/test/sysperf/
H A Dblib.c26 stop_timing(long long count, const char *ctl, ...) in stop_timing() argument
34 if (ctl == NULL) /* dummy call to pre-cache */ in stop_timing()
37 va_start(va, ctl); in stop_timing()
38 vfprintf(stderr, ctl, va); in stop_timing()
54 stop_timing2(long long count, long long us, const char *ctl, ...) in stop_timing2() argument
58 va_start(va, ctl); in stop_timing2()
59 vfprintf(stderr, ctl, va); in stop_timing2()
H A Dmemzero.c9 void test_using(const char *ctl, char *buf, int bytes, void (*zerof)(void *d, size_t bytes));
78 test_using(const char *ctl, char *buf, int bytes, void (*zerof)(void *d, size_t bytes)) in test_using() argument
97 stop_timing(loops, ctl); in test_using()
99 printf("%s %d %5.2f MBytes/sec\n", ctl, bytes, in test_using()
H A Dmemcpy.c9 void test_using(const char *ctl, char *buf, int bytes, void (*copyf)(const void *s1, void *d, size_…
79 test_using(const char *ctl, char *buf, int bytes, void (*copyf)(const void *s1, void *d, size_t byt… in test_using() argument
98 stop_timing(loops, ctl); in test_using()
100 printf("%s %d %5.2f MBytes/sec\n", ctl, bytes, in test_using()
/dflybsd-src/usr.sbin/bthcid/
H A Dclient.c83 int ctl; in init_control() local
94 ctl = socket(PF_LOCAL, SOCK_STREAM, 0); in init_control()
95 if (ctl < 0) in init_control()
102 if (bind(ctl, (struct sockaddr *)&un, sizeof(un)) < 0) { in init_control()
103 close(ctl); in init_control()
108 close(ctl); in init_control()
113 if (listen(ctl, 10) < 0) { in init_control()
114 close(ctl); in init_control()
119 EV_SET(&change, ctl, EVFILT_READ, EV_ADD, 0, 0, NULL); in init_control()
121 close(ctl); in init_control()
[all …]
/dflybsd-src/tools/tools/net80211/wesside/dics/
H A Ddics.c115 } ctl; in check_signal() local
121 memset(&ctl, 0, sizeof(ctl)); in check_signal()
126 msg.msg_control = &ctl; in check_signal()
127 msg.msg_controllen = sizeof(ctl); in check_signal()
138 if ( ctl.hdr.cmsg_level != IPPROTO_IP || in check_signal()
140 ctl.hdr.cmsg_type != IP_TTL in check_signal()
142 ctl.hdr.cmsg_type != IP_RECVTTL in check_signal()
147 ctl.hdr.cmsg_len, ctl.hdr.cmsg_level, ctl.hdr.cmsg_type); in check_signal()
155 *ttl = ctl.ttl; in check_signal()
/dflybsd-src/stand/boot/pc32/libi386/
H A Dvidconsole.c126 v86.ctl = 0; in vidc_biosputchar()
199 v86.ctl = 0; in get_pos()
213 v86.ctl = 0; in curs_move()
224 v86.ctl = 0; in curs_move()
245 v86.ctl = 0; in scroll_up()
259 v86.ctl = 0; in write_char()
281 v86.ctl = 0; in CD()
293 v86.ctl = 0; in CD()
500 v86.ctl = 0; in vidc_getchar()
514 v86.ctl = V86_FLAGS; in vidc_ischar()
H A Dbiosmem.c56 v86.ctl = V86_FLAGS; in bios_getmem()
86 v86.ctl = 0; in bios_getmem()
96 v86.ctl = V86_FLAGS; in bios_getmem()
109 v86.ctl = 0; in bios_getmem()
/dflybsd-src/usr.sbin/pciconf/
H A Dcap.c369 uint16_t ctl, flags, sta; in cap_express() local
410 ctl = read_config(fd, &p->pc_sel, ptr + PCIER_DEVCTRL, 2); in cap_express()
412 MAX_PAYLOAD((ctl & PCIEM_DEVCAP_MAX_PAYLOAD) >> 5), in cap_express()
416 if (ctl & PCIEM_DEVCTL_RELAX_ORDER) in cap_express()
418 if (ctl & PCIEM_DEVCTL_NOSNOOP) in cap_express()
420 if (ctl & PCIEM_DEVCTL_COR_ENABLE) in cap_express()
422 if (ctl & PCIEM_DEVCTL_NFER_ENABLE) in cap_express()
424 if (ctl & PCIEM_DEVCTL_FER_ENABLE) in cap_express()
426 if (ctl & PCIEM_DEVCTL_URR_ENABLE) in cap_express()
431 ctl = read_config(fd, &p->pc_sel, in cap_express()
[all …]
/dflybsd-src/sbin/rconfig/
H A Dsubs.c80 char **bufp, int *lenp, const char *ctl, ...) in udp_transact() argument
118 va_start(va, ctl); in udp_transact()
119 vsnprintf(buf, sizeof(buf), ctl, va); in udp_transact()
156 int *lenp, const char *ctl, ...) in tcp_transact() argument
199 if (ctl) { in tcp_transact()
200 va_start(va, ctl); in tcp_transact()
201 vfprintf(*pfo, ctl, va); in tcp_transact()
/dflybsd-src/lib/libdmsg/
H A Ddmsg.h54 #define dm_printf(level, ctl, ...) \ argument
56 fprintf(stderr, "libdmsg: " ctl, __VA_ARGS__)
57 #define dmx_printf(level, ctl, ...) \ argument
59 fprintf(stderr, ctl, __VA_ARGS__)
60 #define dmio_printf(iocom, level, ctl, ...) \ argument
62 fprintf(stderr, "libdmsg: " ctl, __VA_ARGS__)
407 void dmsg_iocom_label(dmsg_iocom_t *iocom, const char *ctl, ...);
461 void dmsg_printf(dmsg_iocom_t *iocom, const char *ctl, ...) __printflike(2, 3);
/dflybsd-src/usr.bin/dsynth/
H A Dsubs.c72 int do_errno, const char *ctl, ...) in _dfatal() argument
77 va_start(va, ctl); in _dfatal()
78 vfprintf(stderr, ctl, va); in _dfatal()
91 _ddprintf(int tab, const char *ctl, ...) in _ddprintf() argument
97 va_start(va, ctl); in _ddprintf()
98 vfprintf(stdout, ctl, va); in _ddprintf()
164 _dlog(int which, const char *ctl, ...) in _dlog() argument
177 va_start(va, ctl); in _dlog()
178 vasprintf(&buf, ctl, va); in _dlog()
368 askyn(const char *ctl, ...) in askyn() argument
[all …]
/dflybsd-src/contrib/libarchive/libarchive/
H A Darchive_write_set_format_iso9660.c2620 struct ctl_extr_rec *ctl) in extra_open_record() argument
2622 ctl->bp = bp; in extra_open_record()
2625 ctl->use_extr = 0; in extra_open_record()
2626 ctl->isoent = isoent; in extra_open_record()
2627 ctl->ce_ptr = NULL; in extra_open_record()
2628 ctl->cur_len = ctl->dr_len = dr_len; in extra_open_record()
2629 ctl->limit = DR_LIMIT; in extra_open_record()
2635 extra_close_record(struct ctl_extr_rec *ctl, int ce_size) in extra_close_record() argument
2640 extra_tell_used_size(ctl, ce_size); in extra_close_record()
2642 if (ctl->cur_len & 0x01) { in extra_close_record()
[all …]
/dflybsd-src/sys/dev/drm/include/linux/
H A Dpci.h167 u16 ctl; in pcie_get_readrq() local
174 ctl = pci_read_config(pdev->dev.bsddev, cap, 2); in pcie_get_readrq()
176 return 128 << ((ctl & PCIEM_DEVCTL_MAX_READRQ_MASK) >> 12); in pcie_get_readrq()
183 u16 ctl; in pcie_set_readrq() local
195 ctl = pci_read_config(pdev->dev.bsddev, cap, 2); in pcie_set_readrq()
196 ctl &= ~PCIEM_DEVCTL_MAX_READRQ_MASK; in pcie_set_readrq()
197 ctl |= ((ffs(rq) - 8) << 12); in pcie_set_readrq()
198 pci_write_config(pdev->dev.bsddev, cap, ctl, 2); in pcie_set_readrq()

123456