Home
last modified time | relevance | path

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

12345678910>>...12

/freebsd-14.2/sys/net/route/
H A Dnhop.c104 ctl->ctl_rh = rh; in nhops_init_rib()
106 FIB_CTL_LOG(LOG_DEBUG2, ctl, "nhops init: ctl %p rh %p", ctl, rh); in nhops_init_rib()
121 free(ctl, M_NHOP); in destroy_ctl()
134 destroy_ctl(ctl); in destroy_ctl_epoch()
158 NHOPS_WLOCK(ctl); in nhops_destroy_rib()
166 NHOPS_WUNLOCK(ctl); in nhops_destroy_rib()
262 NHOPS_WLOCK(ctl); in consider_resize()
290 NHOPS_WLOCK(ctl); in link_nhop()
338 NHOPS_WLOCK(ctl); in unlink_nhop()
349 idx, ctl->ctl_rh->rib_fibnum, ctl->ctl_rh->rib_family); in unlink_nhop()
[all …]
H A Dnhgrp.c143 NHOPS_RLOCK(ctl); in find_nhgrp()
151 NHOPS_RUNLOCK(ctl); in find_nhgrp()
162 NHOPS_WLOCK(ctl); in link_nhgrp()
168 NHOPS_WUNLOCK(ctl); in link_nhgrp()
178 NHOPS_WUNLOCK(ctl); in link_nhgrp()
196 NHOPS_WLOCK(ctl); in unlink_nhgrp()
202 NHOPS_WUNLOCK(ctl); in unlink_nhgrp()
211 NHOPS_WUNLOCK(ctl); in unlink_nhgrp()
257 NHOPS_WLOCK(ctl); in consider_resize()
265 NHOPS_WUNLOCK(ctl); in consider_resize()
[all …]
H A Dnhop_var.h63 #define NHOPS_WLOCK(ctl) rw_wlock(&(ctl)->ctl_lock) argument
64 #define NHOPS_RLOCK(ctl) rw_rlock(&(ctl)->ctl_lock) argument
65 #define NHOPS_WUNLOCK(ctl) rw_wunlock(&(ctl)->ctl_lock) argument
66 #define NHOPS_RUNLOCK(ctl) rw_runlock(&(ctl)->ctl_lock) argument
67 #define NHOPS_LOCK_INIT(ctl) rw_init(&(ctl)->ctl_lock, "nhop_ctl") argument
68 #define NHOPS_LOCK_DESTROY(ctl) rw_destroy(&(ctl)->ctl_lock) argument
69 #define NHOPS_WLOCK_ASSERT(ctl) rw_assert(&(ctl)->ctl_lock, RA_WLOCKED) argument
103 struct nhop_priv *find_nhop(struct nh_control *ctl,
105 int link_nhop(struct nh_control *ctl, struct nhop_priv *nh_priv);
106 struct nhop_priv *unlink_nhop(struct nh_control *ctl, struct nhop_priv *nh_priv);
H A Dnhgrp_ctl.c339 struct nh_control *ctl; in nhgrp_free() local
467 struct nh_control *ctl; in nhgrp_alloc() local
474 ctl = rh->nh_control; in nhgrp_alloc()
508 nhg_priv->nh_control = ctl; in nhgrp_alloc()
571 nhg = nhgrp_alloc(ctl->ctl_rh->rib_fibnum, ctl->ctl_rh->rib_family, in get_nhgrp()
927 struct nh_control *ctl; in nhgrp_get_count() local
930 ctl = rh->nh_control; in nhgrp_get_count()
932 NHOPS_RLOCK(ctl); in nhgrp_get_count()
934 NHOPS_RUNLOCK(ctl); in nhgrp_get_count()
961 NHOPS_RLOCK(ctl); in nhgrp_dump_sysctl()
[all …]
H A Dnhop_ctl.c519 NHOPS_WLOCK(ctl); in finalize_nhop()
521 NHOPS_WUNLOCK(ctl); in finalize_nhop()
1061 ctl = rh->nh_control; in nhops_update_ifmtu()
1063 NHOPS_WLOCK(ctl); in nhops_update_ifmtu()
1074 NHOPS_WUNLOCK(ctl); in nhops_update_ifmtu()
1086 NHOPS_RLOCK(ctl); in nhops_iter_start()
1124 NHOPS_RUNLOCK(ctl); in nhops_iter_stop()
1266 NHOPS_RLOCK(ctl); in nhops_get_count()
1268 NHOPS_RUNLOCK(ctl); in nhops_get_count()
1282 NHOPS_RLOCK(ctl); in nhops_dump_sysctl()
[all …]
/freebsd-14.2/sys/netlink/
H A Dnetlink_module.c76 free(ctl, M_NETLINK); in free_nl_ctl()
82 struct nl_control *ctl; in vnet_nl_ctl_init() local
97 curvnet, ctl); in vnet_nl_ctl_init()
100 free_nl_ctl(ctl); in vnet_nl_ctl_init()
101 ctl = tmp; in vnet_nl_ctl_init()
106 return (ctl); in vnet_nl_ctl_init()
112 struct nl_control *ctl; in vnet_nl_ctl_destroy() local
119 if (ctl != NULL) { in vnet_nl_ctl_destroy()
125 if (ctl != NULL) in vnet_nl_ctl_destroy()
126 free_nl_ctl(ctl); in vnet_nl_ctl_destroy()
[all …]
H A Dnetlink_domain.c215 NLCTL_RLOCK(ctl); in nl_send_group()
242 NLCTL_RUNLOCK(ctl); in nl_send_group()
321 if (ctl == NULL) in nl_pru_attach()
353 NLCTL_WLOCK(ctl); in nl_pru_attach()
356 NLCTL_WUNLOCK(ctl); in nl_pru_attach()
386 NLCTL_WLOCK(ctl); in nl_pru_bind()
390 NLCTL_WUNLOCK(ctl); in nl_pru_bind()
407 NLCTL_WLOCK(ctl); in nl_assign_port()
412 NLCTL_WUNLOCK(ctl); in nl_assign_port()
434 NLCTL_RLOCK(ctl); in nl_autobind_port()
[all …]
/freebsd-14.2/sbin/ipf/ipsend/
H A Ddlcommon.c43 struct strbuf ctl; in dlinforeq() local
48 ctl.maxlen = 0; in dlinforeq()
66 ctl.len = 0; in dlinfoack()
67 ctl.buf = bufp; in dlinfoack()
95 ctl.maxlen = 0; in dlattachreq()
121 ctl.maxlen = 0; in dlenabmultireq()
147 ctl.maxlen = 0; in dldisabmultireq()
345 ctl.len = 0; in dlokack()
372 ctl.len = 0; in dlerrorack()
399 ctl.len = 0; in dlbindack()
[all …]
/freebsd-14.2/sys/netlink/route/
H A Dnexthop.c173 UN_RLOCK(ctl); in nl_find_nhop()
177 UN_RLOCK(ctl); in nl_find_nhop()
194 UN_RUNLOCK(ctl); in nl_find_nhop()
215 UN_WLOCK(ctl); in nl_find_nhop()
243 UN_WUNLOCK(ctl); in nl_find_nhop()
260 UN_RLOCK(ctl); in nl_find_base_unhop()
362 UN_RLOCK(ctl); in find_spare_uidx()
512 UN_WLOCK(ctl); in delete_unhop()
591 UN_WLOCK(ctl); in consider_resize()
647 UN_WLOCK(ctl); in vnet_destroy_unhops()
[all …]
/freebsd-14.2/sys/dev/sound/pci/hda/
H A Dhdaa.h209 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.c228 ctl->dir == ctl->ndir && ctl->index != index) in hdaa_audio_ctl_amp_get()
397 if (ctl != NULL && ctl->mute) { in hdaa_hpredir_handler()
427 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()
4326 if (ctl && ctl->enable) { in hdaa_audio_disable_unas()
4336 if (ctl && ctl->enable) { in hdaa_audio_disable_unas()
4361 if (ctl && ctl->enable) { in hdaa_audio_disable_unas()
4495 ctl->widget->connsenable[ctl->index] = 0; in hdaa_audio_disable_crossas()
5598 if (ctl->ndir == HDAA_CTL_IN && ctl->ndir == ctl->dir) in hdaa_dump_ctls()
[all …]
/freebsd-14.2/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-14.2/lib/libc/db/test/hash.tests/
H A Dtread2.c63 HASHINFO ctl; local
68 ctl.nelem = INITIAL;
69 ctl.hash = NULL;
70 ctl.bsize = 64;
71 ctl.ffactor = 1;
72 ctl.cachesize = atoi(*argv++);
73 ctl.lorder = 0;
74 if (!(dbp = dbopen( "hashtest", O_RDONLY, 0400, DB_HASH, &ctl))) {
H A Dtverify.c63 HASHINFO ctl; local
69 ctl.nelem = INITIAL;
70 ctl.hash = NULL;
71 ctl.bsize = 64;
72 ctl.ffactor = 1;
73 ctl.cachesize = 1024 * 1024; /* 1 MEG */
74 ctl.lorder = 0;
75 if (!(dbp = dbopen( "hashtest", O_RDONLY, 0400, DB_HASH, &ctl))) {
H A Dtdel.c60 HASHINFO ctl; local
67 ctl.nelem = INITIAL;
68 ctl.hash = NULL;
69 ctl.bsize = atoi(*argv++);
70 ctl.ffactor = atoi(*argv++);
71 ctl.cachesize = 1024 * 1024; /* 1 MEG */
72 ctl.lorder = 0;
74 if (!(dbp = dbopen( NULL, O_CREAT|O_RDWR, 0400, DB_HASH, &ctl))) {
H A Dtcreat3.c59 HASHINFO ctl; local
66 ctl.hash = NULL;
67 ctl.bsize = atoi(*argv++);
68 ctl.ffactor = atoi(*argv++);
69 ctl.nelem = atoi(*argv++);
70 ctl.lorder = 0;
72 O_CREAT|O_TRUNC|O_RDWR, 0600, DB_HASH, &ctl))){
H A Dthash4.c62 HASHINFO ctl; local
70 ctl.hash = NULL;
71 ctl.bsize = atoi(*argv++);
72 ctl.ffactor = atoi(*argv++);
73 ctl.nelem = atoi(*argv++);
74 ctl.cachesize = atoi(*argv++);
75 ctl.lorder = 0;
76 if (!(dbp = dbopen( NULL, O_CREAT|O_RDWR, 0400, DB_HASH, &ctl))) {
/freebsd-14.2/lib/libmixer/
H A Dmixer.c218 mix_ctl_t *ctl, *cp; in mixer_add_ctl() local
228 ctl->id = id; in mixer_add_ctl()
230 (void)strlcpy(ctl->name, name, sizeof(ctl->name)); in mixer_add_ctl()
231 ctl->mod = mod; in mixer_add_ctl()
232 ctl->print = print; in mixer_add_ctl()
253 if (ctl == NULL) in mixer_add_ctl_s()
256 return (mixer_add_ctl(ctl->parent_dev, ctl->id, ctl->name, in mixer_add_ctl_s()
257 ctl->mod, ctl->print)); in mixer_add_ctl_s()
268 if (ctl == NULL) { in mixer_remove_ctl()
272 p = ctl->parent_dev; in mixer_remove_ctl()
[all …]
/freebsd-14.2/contrib/libpcap/
H A Dpcap-enet.c148 struct eniocb ctl; in initdevice() local
168 if (ioctl(if_fd, EIOCGETP, (char *)&ctl) == -1) { in initdevice()
176 ctl.en_rtout = 1 * ctl.en_hz; in initdevice()
177 ctl.en_tr_etherhead = 1; in initdevice()
178 ctl.en_tap_network = 1; in initdevice()
179 ctl.en_multi_packet = 1; in initdevice()
180 ctl.en_maxlen = BUFSPACE; in initdevice()
182 ctl.en_rtout = 64; /* randomly picked value for HZ */ in initdevice()
184 if (ioctl(if_fd, EIOCSETP, &ctl) == -1) { in initdevice()
200 maxwaiting = ctl.en_maxwaiting; in initdevice()
H A Dpcap-dlpi.c221 ctl.len = 0; in pcap_read_dlpi()
1163 ctl.maxlen = 0;
1164 ctl.len = len;
1165 ctl.buf = ptr;
1193 ctl.len = 0;
1194 ctl.buf = bufp;
1257 return (ctl.len);
1555 ctl.maxlen = 0;
1556 ctl.len = dlen;
1659 ctl.len = 0;
[all …]
/freebsd-14.2/sys/x86/x86/
H A Dmca.c836 uint64_t ctl; in cmci_update() local
853 ctl |= new_threshold; in cmci_update()
1176 uint64_t ctl; in cmci_monitor() local
1195 if (ctl & MC_CTL2_CMCI_EN) in cmci_monitor()
1200 ctl &= ~MC_CTL2_THRESHOLD; in cmci_monitor()
1212 ctl |= 0x7fff; in cmci_monitor()
1219 ctl |= 1; in cmci_monitor()
1234 uint64_t ctl; in cmci_resume() local
1367 uint64_t ctl, mask; in _mca_init() local
1438 ctl &= ~(1UL << 10); in _mca_init()
[all …]
/freebsd-14.2/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-14.2/tools/tools/net80211/wesside/dics/
H A Ddics.c113 } ctl; in check_signal() local
119 memset(&ctl, 0, sizeof(ctl)); in check_signal()
124 msg.msg_control = &ctl; in check_signal()
125 msg.msg_controllen = sizeof(ctl); in check_signal()
136 if ( ctl.hdr.cmsg_level != IPPROTO_IP || in check_signal()
138 ctl.hdr.cmsg_type != IP_TTL in check_signal()
140 ctl.hdr.cmsg_type != IP_RECVTTL in check_signal()
145 ctl.hdr.cmsg_len, ctl.hdr.cmsg_level, ctl.hdr.cmsg_type); in check_signal()
153 *ttl = ctl.ttl; in check_signal()
/freebsd-14.2/stand/i386/libi386/
H A Dtextvidc.c123 v86.ctl = 0; in vidc_biosputchar()
201 v86.ctl = 0; in get_pos()
217 v86.ctl = 0; in curs_move()
228 v86.ctl = 0; in curs_move()
249 v86.ctl = 0; in scroll_up()
263 v86.ctl = 0; in write_char()
285 v86.ctl = 0; in CD()
297 v86.ctl = 0; in CD()
511 v86.ctl = 0; in vidc_getchar()
525 v86.ctl = V86_FLAGS; in vidc_ischar()

12345678910>>...12