Home
last modified time | relevance | path

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

1234567891011

/freebsd-13.1/sys/net/route/
H A Dnhop.c100 ctl->ctl_rh = rh; in nhops_init_rib()
116 nhgrp_ctl_free(ctl); in destroy_ctl()
118 free(ctl, M_NHOP); in destroy_ctl()
131 destroy_ctl(ctl); in destroy_ctl_epoch()
155 NHOPS_WLOCK(ctl); in nhops_destroy_rib()
163 NHOPS_WUNLOCK(ctl); in nhops_destroy_rib()
265 NHOPS_WLOCK(ctl); in consider_resize()
273 NHOPS_WUNLOCK(ctl); in consider_resize()
293 NHOPS_WLOCK(ctl); in link_nhop()
339 NHOPS_WLOCK(ctl); in unlink_nhop()
[all …]
H A Dnhgrp.c140 NHOPS_RLOCK(ctl); in find_nhgrp()
148 NHOPS_RUNLOCK(ctl); in find_nhgrp()
159 NHOPS_WLOCK(ctl); in link_nhgrp()
165 NHOPS_WUNLOCK(ctl); in link_nhgrp()
175 NHOPS_WUNLOCK(ctl); in link_nhgrp()
188 NHOPS_WLOCK(ctl); in unlink_nhgrp()
194 NHOPS_WUNLOCK(ctl); in unlink_nhgrp()
203 NHOPS_WUNLOCK(ctl); in unlink_nhgrp()
241 NHOPS_WLOCK(ctl); in consider_resize()
249 NHOPS_WUNLOCK(ctl); in consider_resize()
[all …]
H A Dnhop_var.h65 #define NHOPS_WLOCK(ctl) rw_wlock(&(ctl)->ctl_lock) argument
66 #define NHOPS_RLOCK(ctl) rw_rlock(&(ctl)->ctl_lock) argument
67 #define NHOPS_WUNLOCK(ctl) rw_wunlock(&(ctl)->ctl_lock) argument
68 #define NHOPS_RUNLOCK(ctl) rw_runlock(&(ctl)->ctl_lock) argument
69 #define NHOPS_LOCK_INIT(ctl) rw_init(&(ctl)->ctl_lock, "nhop_ctl") argument
70 #define NHOPS_LOCK_DESTROY(ctl) rw_destroy(&(ctl)->ctl_lock) argument
71 #define NHOPS_WLOCK_ASSERT(ctl) rw_assert(&(ctl)->ctl_lock, RA_WLOCKED) argument
100 struct nhop_priv *find_nhop(struct nh_control *ctl,
102 int link_nhop(struct nh_control *ctl, struct nhop_priv *nh_priv);
103 struct nhop_priv *unlink_nhop(struct nh_control *ctl, struct nhop_priv *nh_priv);
H A Dnhgrp_ctl.c309 struct nh_control *ctl; in nhgrp_free() local
345 ctl = nhg_priv->nh_control; in nhgrp_free()
465 nhg_priv = find_nhgrp(ctl, key); in get_nhgrp()
487 if (link_nhgrp(ctl, key) == 0) { in get_nhgrp()
779 struct nh_control *ctl; in nhgrp_get_count() local
782 ctl = rh->nh_control; in nhgrp_get_count()
784 NHOPS_RLOCK(ctl); in nhgrp_get_count()
785 count = ctl->gr_head.items_count; in nhgrp_get_count()
786 NHOPS_RUNLOCK(ctl); in nhgrp_get_count()
813 NHOPS_RLOCK(ctl); in nhgrp_dump_sysctl()
[all …]
H A Dnhop_ctl.c650 struct nh_control *ctl; in nhop_free() local
809 ctl = rh->nh_control; in nhops_update_ifmtu()
811 NHOPS_WLOCK(ctl); in nhops_update_ifmtu()
822 NHOPS_WUNLOCK(ctl); in nhops_update_ifmtu()
951 ctl = rh->nh_control; in nhops_get_count()
953 NHOPS_RLOCK(ctl); in nhops_get_count()
955 NHOPS_RUNLOCK(ctl); in nhops_get_count()
967 ctl = rh->nh_control; in nhops_dump_sysctl()
969 NHOPS_RLOCK(ctl); in nhops_dump_sysctl()
977 NHOPS_RUNLOCK(ctl); in nhops_dump_sysctl()
[all …]
H A Dnhgrp_var.h66 bool nhgrp_ctl_alloc_default(struct nh_control *ctl, int malloc_flags);
67 struct nhgrp_priv *find_nhgrp(struct nh_control *ctl, const struct nhgrp_priv *key);
68 int link_nhgrp(struct nh_control *ctl, struct nhgrp_priv *grp_priv);
69 struct nhgrp_priv *unlink_nhgrp(struct nh_control *ctl, struct nhgrp_priv *key);
/freebsd-13.1/sbin/ipf/ipsend/
H A Ddlcommon.c44 struct strbuf ctl; in dlinforeq() local
49 ctl.maxlen = 0; in dlinforeq()
67 ctl.len = 0; in dlinfoack()
68 ctl.buf = bufp; in dlinfoack()
96 ctl.maxlen = 0; in dlattachreq()
122 ctl.maxlen = 0; in dlenabmultireq()
148 ctl.maxlen = 0; in dldisabmultireq()
346 ctl.len = 0; in dlokack()
373 ctl.len = 0; in dlerrorack()
400 ctl.len = 0; in dlbindack()
[all …]
/freebsd-13.1/sbin/veriexec/
H A Dveriexec.c67 unsigned long ctl; in main() local
88 ctl = VERIEXEC_STATE_ACTIVE; in main()
91 ctl = VERIEXEC_STATE_ENFORCE; in main()
102 exit((x & ctl) == 0); in main()
122 ctl = VERIEXEC_ACTIVE; in main()
125 ctl = (strstr(optarg, "off")) ? in main()
130 ctl = VERIEXEC_DEBUG_OFF; in main()
134 ctl = VERIEXEC_ENFORCE; in main()
140 ctl = VERIEXEC_LOCK; in main()
149 if (ioctl(dev_fd, ctl, &x)) { in main()
[all …]
/freebsd-13.1/sys/dev/sound/pci/hda/
H A Dhdaa.h211 struct hdaa_audio_ctl *ctl; member
246 #define MINQDB(ctl) \ argument
247 ((0 - (ctl)->offset) * ((ctl)->size + 1))
249 #define MAXQDB(ctl) \ argument
250 (((ctl)->step - (ctl)->offset) * ((ctl)->size + 1))
252 #define RANGEQDB(ctl) \ argument
253 ((ctl)->step * ((ctl)->size + 1))
255 #define VAL2QDB(ctl, val) \ argument
256 (((ctl)->size + 1) * ((int)(val) - (ctl)->offset))
258 #define QDB2VAL(ctl, qdb) \ argument
[all …]
H A Dhdaa.c230 ctl->dir == ctl->ndir && ctl->index != index) in hdaa_audio_ctl_amp_get()
398 if (ctl != NULL && ctl->mute) { in hdaa_hpredir_handler()
428 if (ctl != NULL && ctl->mute) { in hdaa_hpredir_handler()
2344 *left -= VAL2QDB(ctl, lval) - VAL2QDB(ctl, QDB2VAL(ctl, zleft)); in hdaa_audio_ctl_dev_set()
2345 *right -= VAL2QDB(ctl, rval) - VAL2QDB(ctl, QDB2VAL(ctl, zright)); in hdaa_audio_ctl_dev_set()
4329 if (ctl && ctl->enable) { in hdaa_audio_disable_unas()
4339 if (ctl && ctl->enable) { in hdaa_audio_disable_unas()
4364 if (ctl && ctl->enable) { in hdaa_audio_disable_unas()
4498 ctl->widget->connsenable[ctl->index] = 0; in hdaa_audio_disable_crossas()
5604 if (ctl->ndir == HDAA_CTL_IN && ctl->ndir == ctl->dir) in hdaa_dump_ctls()
[all …]
/freebsd-13.1/contrib/bearssl/src/rsa/
H A Drsa_i15_privexp.c251 uint32_t ctl; in br_rsa_i15_compute_privexp() local
262 ctl = GT(v1, v0); in br_rsa_i15_compute_privexp()
264 u0 -= (u1 - (r & -ctl)) & -sab; in br_rsa_i15_compute_privexp()
265 v0 -= (v1 - (e & -ctl)) & -sab; in br_rsa_i15_compute_privexp()
268 ctl = GT(v0, v1); in br_rsa_i15_compute_privexp()
270 u1 -= (u0 - (r & -ctl)) & -sba; in br_rsa_i15_compute_privexp()
271 v1 -= (v0 - (e & -ctl)) & -sba; in br_rsa_i15_compute_privexp()
277 ctl = v0 & 1; in br_rsa_i15_compute_privexp()
279 u0 ^= (u0 ^ ((u0 >> 1) + (hr & -ctl))) & -da; in br_rsa_i15_compute_privexp()
280 v0 ^= (v0 ^ ((v0 >> 1) + (he & -ctl))) & -da; in br_rsa_i15_compute_privexp()
[all …]
H A Drsa_i31_privexp.c251 uint32_t ctl; in br_rsa_i31_compute_privexp() local
262 ctl = GT(v1, v0); in br_rsa_i31_compute_privexp()
264 u0 -= (u1 - (r & -ctl)) & -sab; in br_rsa_i31_compute_privexp()
265 v0 -= (v1 - (e & -ctl)) & -sab; in br_rsa_i31_compute_privexp()
268 ctl = GT(v0, v1); in br_rsa_i31_compute_privexp()
270 u1 -= (u0 - (r & -ctl)) & -sba; in br_rsa_i31_compute_privexp()
271 v1 -= (v0 - (e & -ctl)) & -sba; in br_rsa_i31_compute_privexp()
277 ctl = v0 & 1; in br_rsa_i31_compute_privexp()
279 u0 ^= (u0 ^ ((u0 >> 1) + (hr & -ctl))) & -da; in br_rsa_i31_compute_privexp()
280 v0 ^= (v0 ^ ((v0 >> 1) + (he & -ctl))) & -da; in br_rsa_i31_compute_privexp()
[all …]
/freebsd-13.1/lib/libc/db/test/hash.tests/
H A Dtread2.c66 HASHINFO ctl; local
71 ctl.nelem = INITIAL;
72 ctl.hash = NULL;
73 ctl.bsize = 64;
74 ctl.ffactor = 1;
75 ctl.cachesize = atoi(*argv++);
76 ctl.lorder = 0;
77 if (!(dbp = dbopen( "hashtest", O_RDONLY, 0400, DB_HASH, &ctl))) {
H A Dtverify.c66 HASHINFO ctl; local
72 ctl.nelem = INITIAL;
73 ctl.hash = NULL;
74 ctl.bsize = 64;
75 ctl.ffactor = 1;
76 ctl.cachesize = 1024 * 1024; /* 1 MEG */
77 ctl.lorder = 0;
78 if (!(dbp = dbopen( "hashtest", O_RDONLY, 0400, DB_HASH, &ctl))) {
H A Dtdel.c63 HASHINFO ctl; local
70 ctl.nelem = INITIAL;
71 ctl.hash = NULL;
72 ctl.bsize = atoi(*argv++);
73 ctl.ffactor = atoi(*argv++);
74 ctl.cachesize = 1024 * 1024; /* 1 MEG */
75 ctl.lorder = 0;
77 if (!(dbp = dbopen( NULL, O_CREAT|O_RDWR, 0400, DB_HASH, &ctl))) {
H A Dtcreat3.c62 HASHINFO ctl; local
69 ctl.hash = NULL;
70 ctl.bsize = atoi(*argv++);
71 ctl.ffactor = atoi(*argv++);
72 ctl.nelem = atoi(*argv++);
73 ctl.lorder = 0;
75 O_CREAT|O_TRUNC|O_RDWR, 0600, DB_HASH, &ctl))){
H A Dthash4.c65 HASHINFO ctl; local
73 ctl.hash = NULL;
74 ctl.bsize = atoi(*argv++);
75 ctl.ffactor = atoi(*argv++);
76 ctl.nelem = atoi(*argv++);
77 ctl.cachesize = atoi(*argv++);
78 ctl.lorder = 0;
79 if (!(dbp = dbopen( NULL, O_CREAT|O_RDWR, 0400, DB_HASH, &ctl))) {
/freebsd-13.1/contrib/libpcap/
H A Dpcap-enet.c150 struct eniocb ctl; in initdevice() local
170 if (ioctl(if_fd, EIOCGETP, (char *)&ctl) == -1) { in initdevice()
178 ctl.en_rtout = 1 * ctl.en_hz; in initdevice()
179 ctl.en_tr_etherhead = 1; in initdevice()
180 ctl.en_tap_network = 1; in initdevice()
181 ctl.en_multi_packet = 1; in initdevice()
182 ctl.en_maxlen = BUFSPACE; in initdevice()
184 ctl.en_rtout = 64; /* randomly picked value for HZ */ in initdevice()
186 if (ioctl(if_fd, EIOCSETP, &ctl) == -1) { in initdevice()
202 maxwaiting = ctl.en_maxwaiting; in initdevice()
H A Dpcap-dlpi.c229 ctl.len = 0; in pcap_read_dlpi()
1138 ctl.maxlen = 0;
1139 ctl.len = len;
1140 ctl.buf = ptr;
1168 ctl.len = 0;
1169 ctl.buf = bufp;
1229 return (ctl.len);
1527 ctl.maxlen = 0;
1528 ctl.len = dlen;
1631 ctl.len = 0;
[all …]
/freebsd-13.1/sys/mips/atheros/ar531x/
H A Dar5315_spi.c159 uint32_t ctl, cnt, op, rdat, cs; in ar5315_spi_transfer() local
175 ctl = SPI_READ(sc, ARSPI_REG_CTL); in ar5315_spi_transfer()
176 } while (ctl & ARSPI_CTL_BUSY); in ar5315_spi_transfer()
189 ctl = SPI_READ(sc, ARSPI_REG_CTL); in ar5315_spi_transfer()
190 } while (ctl & ARSPI_CTL_BUSY); in ar5315_spi_transfer()
208 ctl |= (cnt << ARSPI_CTL_TXCNT_SHIFT); in ar5315_spi_transfer()
214 ctl |= (cnt << ARSPI_CTL_RXCNT_SHIFT); in ar5315_spi_transfer()
216 ctl |= ARSPI_CTL_START; in ar5315_spi_transfer()
218 SPI_WRITE(sc, ARSPI_REG_CTL, ctl); in ar5315_spi_transfer()
235 ctl = SPI_READ(sc, ARSPI_REG_CTL); in ar5315_spi_transfer()
[all …]
/freebsd-13.1/sys/x86/x86/
H A Dmca.c829 uint64_t ctl; in cmci_update() local
846 ctl |= new_threshold; in cmci_update()
1173 uint64_t ctl; in cmci_monitor() local
1192 if (ctl & MC_CTL2_CMCI_EN) in cmci_monitor()
1197 ctl &= ~MC_CTL2_THRESHOLD; in cmci_monitor()
1209 ctl |= 0x7fff; in cmci_monitor()
1216 ctl |= 1; in cmci_monitor()
1231 uint64_t ctl; in cmci_resume() local
1364 uint64_t ctl, mask; in _mca_init() local
1435 ctl &= ~(1UL << 10); in _mca_init()
[all …]
/freebsd-13.1/contrib/bearssl/src/int/
H A Di32_div32.c41 uint32_t w, ctl, hi2, lo2; in br_divrem() local
45 ctl = GE(w, d) | (hi >> k); in br_divrem()
48 hi = MUX(ctl, hi2, hi); in br_divrem()
49 lo = MUX(ctl, lo2, lo); in br_divrem()
50 q |= ctl << k; in br_divrem()
/freebsd-13.1/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()
/freebsd-13.1/sys/arm/ti/
H A Dti_pruss.c97 struct ctl struct
105 struct ctl ctl; argument
186 struct ctl* irqs; in ti_pruss_irq_open()
194 irqs->cnt = sc->tstamps.ctl.cnt; in ti_pruss_irq_open()
195 irqs->idx = sc->tstamps.ctl.idx; in ti_pruss_irq_open()
209 struct ctl* irqs; in ti_pruss_irq_poll()
229 struct ctl* priv; in ti_pruss_irq_read()
247 priv->cnt = irq->tstamps.ctl.cnt; in ti_pruss_irq_read()
248 priv->idx = irq->tstamps.ctl.idx; in ti_pruss_irq_read()
764 size_t wr = irq->tstamps.ctl.idx; in ti_pruss_intr()
[all …]
/freebsd-13.1/contrib/processor-trace/libipt/test/src/
H A Dptunit-config.c209 config.addr_filter.config.ctl.addr0_cfg = pt_addr_cfg_filter; in addr_filter_0()
241 config.addr_filter.config.ctl.addr1_cfg = pt_addr_cfg_filter; in addr_filter_1_3()
244 config.addr_filter.config.ctl.addr3_cfg = pt_addr_cfg_stop; in addr_filter_1_3()
305 config.addr_filter.config.ctl.addr1_cfg = pt_addr_cfg_filter; in addr_filter_ip_in()
308 config.addr_filter.config.ctl.addr3_cfg = pt_addr_cfg_filter; in addr_filter_ip_in()
367 config.addr_filter.config.ctl.addr1_cfg = pt_addr_cfg_stop; in addr_filter_stop_in()
370 config.addr_filter.config.ctl.addr3_cfg = pt_addr_cfg_stop; in addr_filter_stop_in()
401 config.addr_filter.config.ctl.addr1_cfg = pt_addr_cfg_stop; in addr_filter_stop_out()
404 config.addr_filter.config.ctl.addr3_cfg = pt_addr_cfg_stop; in addr_filter_stop_out()
432 config.addr_filter.config.ctl.addr3_cfg = pt_addr_cfg_stop; in addr_filter_ip_out_stop_in()
[all …]

1234567891011