Home
last modified time | relevance | path

Searched full:ctl (Results 1 – 25 of 539) sorted by relevance

12345678910>>...22

/freebsd/sys/net/route/
H A Dnhop.c78 struct nh_control *ctl; in nhops_init_rib() local
83 ctl = malloc(sizeof(struct nh_control), M_NHOP, M_WAITOK | M_ZERO); in nhops_init_rib()
92 CHT_SLIST_INIT(&ctl->nh_head, ptr, num_buckets); in nhops_init_rib()
99 bitmask_init(&ctl->nh_idx_head, ptr, num_items); in nhops_init_rib()
101 NHOPS_LOCK_INIT(ctl); in nhops_init_rib()
103 rh->nh_control = ctl; in nhops_init_rib()
104 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()
112 destroy_ctl(struct nh_control *ctl) in destroy_ctl() argument
115 NHOPS_LOCK_DESTROY(ctl); in destroy_ctl()
[all …]
H A Dnhgrp.c87 static void consider_resize(struct nh_control *ctl, uint32_t new_gr_buckets,
138 find_nhgrp(struct nh_control *ctl, const struct nhgrp_priv *key) in find_nhgrp() argument
142 NHOPS_RLOCK(ctl); in find_nhgrp()
143 CHT_SLIST_FIND_BYOBJ(&ctl->gr_head, mpath, key, priv_ret); in find_nhgrp()
150 NHOPS_RUNLOCK(ctl); in find_nhgrp()
156 link_nhgrp(struct nh_control *ctl, struct nhgrp_priv *grp_priv) in link_nhgrp() argument
161 NHOPS_WLOCK(ctl); in link_nhgrp()
163 new_num_buckets = CHT_SLIST_GET_RESIZE_BUCKETS(&ctl->gr_head); in link_nhgrp()
164 new_num_items = bitmask_get_resize_items(&ctl->nh_idx_head); in link_nhgrp()
166 if (bitmask_alloc_idx(&ctl->nh_idx_head, &idx) != 0) { in link_nhgrp()
[all …]
H A Dnhop_var.h58 struct rwlock ctl_lock; /* overall ctl lock */
60 struct epoch_context ctl_epoch_ctx; /* epoch ctl helper */
63 #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,
[all …]
H A Dnhgrp_ctl.c80 static struct nhgrp_priv *get_nhgrp(struct nh_control *ctl,
338 struct nh_control *ctl; in nhgrp_free() local
374 ctl = nhg_priv->nh_control; in nhgrp_free()
375 if (unlink_nhgrp(ctl, nhg_priv) == NULL) { in nhgrp_free()
466 struct nh_control *ctl; in nhgrp_alloc() local
473 ctl = rh->nh_control; in nhgrp_alloc()
480 if (ctl->gr_head.hash_size == 0) { in nhgrp_alloc()
482 if (nhgrp_ctl_alloc_default(ctl, M_NOWAIT) == 0) { in nhgrp_alloc()
492 if (wn[i].nh->nh_priv->nh_control != ctl) { in nhgrp_alloc()
507 nhg_priv->nh_control = ctl; in nhgrp_alloc()
[all …]
/freebsd/sys/cam/ctl/
H A Dctl_frontend.h33 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_frontend.h#2 $
44 #include <cam/ctl/ctl_ioctl.h>
84 MODULE_DEPEND(name, ctl, 1, 1, 1); \
96 * (Front End Target Driver) and the CTL layer. Here is a description of
99 * port_type: This field tells CTL what kind of front end it is
101 * The first is to let CTL know whether the frontend
102 * in question is inside the main CTL module (i.e.
105 * CTL ioctl front end should continue to use the
107 * the main CTL module. The second is to let CTL
115 * transactions that the FETD can handle. The CTL
[all …]
H A Dctl_backend.h33 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_backend.h#2 $
36 * CTL backend driver definitions
44 #include <cam/ctl/ctl_ioctl.h>
79 MODULE_DEPEND(name, ctl, 1, 1, 1); \
94 * passsed back so that it can tell which LUN CTL is referencing.
100 * this should be 512. In theory CTL should be able to handle other block
115 * req_lun_id is the requested LUN ID. CTL only pays attention to this
134 * completed and CTL has deleted the resources for that LUN. When the CTL
138 * contains the backend methods to be called by CTL
[all...]
H A DREADME.ctl.txt2 CTL - CAM Target Layer Description
12 Configuring and Running CTL
21 CTL is a disk, processor and cdrom device emulation subsystem originally
26 (who acquired Copan's assets in 2010) and Spectra Logic in 2010, CTL is
28 that Spectra would work to get CTL into the FreeBSD tree.
52 Configuring and Running CTL:
55 - Add 'device ctl' to your kernel configuration file or load the module.
70 - You should now see the CTL disk LUN through camcontrol devlist:
76 This is visible through the CTL CAM SIM. This allows using CTL without
81 target mode enabled, you should now also be able to see the CTL LUNs via
[all …]
H A Dctl_backend.c32 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_backend.c#3 $
35 * CTL backend driver registration routines
53 #include <cam/ctl/ctl_io.h>
54 #include <cam/ctl/ctl.h>
55 #include <cam/ctl/ctl_frontend.h>
56 #include <cam/ctl/ctl_backend.h>
57 #include <cam/ctl/ctl_ioctl.h>
58 #include <cam/ctl/ctl_ha.h>
59 #include <cam/ctl/ctl_private.h>
60 #include <cam/ctl/ctl_debug.h>
/freebsd/sbin/ipf/ipsend/
H A Ddlcommon.c43 struct strbuf ctl; in dlinforeq() local
48 ctl.maxlen = 0; in dlinforeq()
49 ctl.len = sizeof (info_req); in dlinforeq()
50 ctl.buf = (char *) &info_req; in dlinforeq()
54 if (putmsg(fd, &ctl, (struct strbuf*) NULL, flags) < 0) in dlinforeq()
62 struct strbuf ctl; in dlinfoack() local
65 ctl.maxlen = MAXDLBUF; in dlinfoack()
66 ctl.len = 0; in dlinfoack()
67 ctl.buf = bufp; in dlinfoack()
69 strgetmsg(fd, &ctl, (struct strbuf*)NULL, &flags, "dlinfoack"); in dlinfoack()
[all …]
/freebsd/sys/netlink/
H A Dnetlink_module.c72 free_nl_ctl(struct nl_control *ctl) in free_nl_ctl() argument
74 rm_destroy(&ctl->ctl_lock); in free_nl_ctl()
75 free(ctl, M_NETLINK); in free_nl_ctl()
81 struct nl_control *ctl; in vnet_nl_ctl_init() local
83 ctl = malloc(sizeof(struct nl_control), M_NETLINK, M_WAITOK | M_ZERO); in vnet_nl_ctl_init()
84 rm_init(&ctl->ctl_lock, "netlink lock"); in vnet_nl_ctl_init()
85 CK_LIST_INIT(&ctl->ctl_port_head); in vnet_nl_ctl_init()
86 CK_LIST_INIT(&ctl->ctl_pcb_head); in vnet_nl_ctl_init()
93 atomic_store_ptr(&V_nl_ctl, ctl); in vnet_nl_ctl_init()
94 CK_LIST_INSERT_HEAD(&vnets_head, ctl, ctl_next); in vnet_nl_ctl_init()
[all …]
H A Dnetlink_domain.c215 struct nl_control *ctl = atomic_load_ptr(&V_nl_ctl); in nl_send_group() local
216 if (__predict_false(ctl == NULL)) { in nl_send_group()
225 NLCTL_RLOCK(ctl); in nl_send_group()
227 CK_LIST_FOREACH(nlp, &ctl->ctl_pcb_head, nl_next) { in nl_send_group()
253 NLCTL_RUNLOCK(ctl); in nl_send_group()
333 struct nl_control *ctl = atomic_load_ptr(&V_nl_ctl); in nl_pru_attach() local
334 if (ctl == NULL) in nl_pru_attach()
335 ctl = vnet_nl_ctl_init(); in nl_pru_attach()
366 NLCTL_WLOCK(ctl); in nl_pru_attach()
367 /* XXX: check ctl is still alive */ in nl_pru_attach()
[all …]
/freebsd/crypto/openssh/regress/
H A Dforwarding.sh14 CTL=${SSH_REGRESS_TMP}/ctl-sock
28 rm -f $CTL
29 ${SSH} -S $CTL -N -M -F $OBJ/ssh_config -f $fwd somehost
37 ${SSH} -F $OBJ/ssh_config -S $CTL -O exit somehost 2>/dev/null
71 rm -f $CTL
72 ${SSH} -S $CTL -N -M -f -F $OBJ/ssh_config -L ${base}01:127.0.0.1:$PORT \
82 ${SSH} -F $OBJ/ssh_config -S $CTL -O exit somehost 2>/dev/null
85 rm -f $CTL
86 ${SSH} -S $CTL -N -M -f -F $OBJ/ssh_config -R ${base}01:127.0.0.1:$PORT \
96 ${SSH} -F $OBJ/ssh_config -S $CTL -O exit somehost 2>/dev/null
[all …]
H A Dmultiplex.sh5 CTL=${SSH_REGRESS_TMP}/ctl-sock
19 ${SSH} -F $OBJ/ssh_config -S $CTL -Ocheck otherhost \
32 ${SSH} -Nn2 -MS$CTL -F $OBJ/ssh_config -oSendEnv="_XXX_TEST" somehost \
43 _XXX_TEST=blah ${SSH} -F $OBJ/ssh_config -oSendEnv="_XXX_TEST" -S$CTL otherhost sh << 'EOF'
52 ${SSH} -F $OBJ/ssh_config -oSetEnv="_XXX_TEST=foo" -S$CTL otherhost sh << 'EOF'
63 ${SSH} -F $OBJ/ssh_config -S$CTL otherhost cat ${DATA} > ${COPY}
69 ${SSH} -F $OBJ/ssh_config -S $CTL otherhost cat ${DATA} > ${COPY}
70 test -f ${COPY} || fail "ssh -S ctl: failed copy ${DATA}"
71 cmp ${DATA} ${COPY} || fail "ssh -S ctl: corrupted copy of ${DATA}"
76 ${SFTP} -S ${SSH} -F $OBJ/ssh_config -oControlPath=$CTL otherhost >>$TEST_REGRESS_LOGFILE 2>&1
[all …]
H A Dconnection-timeout.sh9 CTL=$OBJ/ctl-sock
13 test -S $CTL || return 1
15 -oControlPath=$CTL somehost >/dev/null 2>&1 ; then
24 -oControlMaster=yes -oControlPath=$CTL somehost
31 test -S $CTL || return
34 -oControlPath=$CTL >/dev/null somehost >/dev/null ; then
39 test -S $CTL || break
43 if test -S $CTL ; then
67 ${REAL_SSH} -qoControlPath=$CTL -oControlMaster=no -Fnone somehost \
H A Ddynamic-forward.sh13 CTL=${SSH_REGRESS_TMP}/ctl-sock
28 -oControlMaster=yes -oControlPath=$CTL somehost
32 -oControlPath=$CTL somehost >/dev/null 2>&1 ; then
38 test -S $CTL || return
40 -oControlPath=$CTL >/dev/null somehost >/dev/null ; then
45 test -S $CTL || break
49 if test -S $CTL ; then
/freebsd/sbin/ipf/ipf/
H A Dipf.413 ioctl(fd, SIOCADDFR, struct frentry **)
14 ioctl(fd, SIOCDELFR, struct frentry **)
15 ioctl(fd, SIOCIPFFL, int *)
21 ioctl(fd, SIOCADAFR, struct frentry **) (same as SIOCADDFR)
22 ioctl(fd, SIOCRMAFR, struct frentry **) (same as SIOCDELFR)
23 ioctl(fd, SIOCADIFR, struct frentry **)
24 ioctl(fd, SIOCRMIFR, struct frentry **)
25 ioctl(fd, SIOCINAFR, struct frentry **)
26 ioctl(fd, SIOCINIFR, struct frentry **)
27 ioctl(fd, SIOCSETFF, u_int *)
[all …]
/freebsd/sys/netlink/route/
H A Dnexthop.c89 struct epoch_context un_epoch_ctx; /* epoch ctl helper */
116 static void consider_resize(struct unhop_ctl *ctl, uint32_t new_size);
156 struct unhop_ctl *ctl = atomic_load_ptr(&V_un_ctl); in nl_find_nhop() local
159 if (__predict_false(ctl == NULL)) in nl_find_nhop()
173 UN_RLOCK(ctl); in nl_find_nhop()
174 CHT_SLIST_FIND_BYOBJ(&ctl->un_head, unhop, &key, unhop); in nl_find_nhop()
177 UN_RLOCK(ctl); in nl_find_nhop()
187 CHT_SLIST_FIND_BYOBJ(&ctl->un_head, unhop, &key, unhop); in nl_find_nhop()
189 UN_RUNLOCK(ctl); in nl_find_nhop()
194 UN_RUNLOCK(ctl); in nl_find_nhop()
[all …]
/freebsd/contrib/jemalloc/src/
H A Dctl.c6 #include "jemalloc/internal/ctl.h"
265 #define CTL(c) 0, NULL, c##_ctl macro
274 {NAME("enabled"), CTL(thread_tcache_enabled)},
275 {NAME("flush"), CTL(thread_tcache_flush)}
279 {NAME("name"), CTL(thread_prof_name)},
280 {NAME("active"), CTL(thread_prof_active)}
284 {NAME("arena"), CTL(thread_arena)},
285 {NAME("allocated"), CTL(thread_allocated)},
286 {NAME("allocatedp"), CTL(thread_allocatedp)},
287 {NAME("deallocated"), CTL(thread_deallocated)},
[all …]
/freebsd/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 …]
/freebsd/share/man/man4/
H A Dcfiscsi.437 .Cd "device ctl"
57 .Xr ctl 4
67 .It Va kern.cam.ctl.iscsi.debug
72 .It Va kern.cam.ctl.iscsi.maxtags
76 .It Va kern.cam.ctl.iscsi.ping_timeout
85 .Xr ctl 4 ,
87 .Xr ctl.conf 5 ,
95 .Xr ctl 4
98 .Xr ctl 4
H A Dctl.429 .Nm ctl
36 .Cd "device ctl"
132 .It Va kern.cam.ctl.debug
133 Bit mask of enabled CTL log levels:
143 .It Va kern.cam.ctl.ha_id
146 .It Va kern.cam.ctl.ha_mode
163 .It Va kern.cam.ctl.ha_peer
166 .It Va kern.cam.ctl.ha_link
176 .It Va kern.cam.ctl.ha_role
197 .It Va kern.cam.ctl.max_luns
[all …]
/freebsd/lib/libmixer/
H A Dmixer.c218 mix_ctl_t *ctl, *cp; in mixer_add_ctl() local
225 if ((ctl = calloc(1, sizeof(mix_ctl_t))) == NULL) in mixer_add_ctl()
227 ctl->parent_dev = parent_dev; in mixer_add_ctl()
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()
233 dp = ctl->parent_dev; in mixer_add_ctl()
241 TAILQ_INSERT_TAIL(&dp->ctls, ctl, ctls); in mixer_add_ctl()
251 mixer_add_ctl_s(mix_ctl_t *ctl) in mixer_add_ctl_s() argument
[all …]
/freebsd/lib/libc/db/test/hash.tests/
H A Dtread2.c54 HASHINFO ctl; local
59 ctl.nelem = INITIAL;
60 ctl.hash = NULL;
61 ctl.bsize = 64;
62 ctl.ffactor = 1;
63 ctl.cachesize = atoi(*argv++);
64 ctl.lorder = 0;
65 if (!(dbp = dbopen( "hashtest", O_RDONLY, 0400, DB_HASH, &ctl))) {
/freebsd/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()
/freebsd/sys/contrib/device-tree/Bindings/mmc/
H A Darasan,sdhci.txt17 For this device it is strongly suggested to include arasan,soc-ctl-syscon.
27 For this device it is strongly suggested to include arasan,soc-ctl-syscon.
29 For this device it is strongly suggested to include arasan,soc-ctl-syscon.
31 For this device it is strongly suggested to include arasan,soc-ctl-syscon.
33 For this device it is strongly suggested to include arasan,soc-ctl-syscon.
35 For this device it is strongly suggested to include arasan,soc-ctl-syscon.
49 - arasan,soc-ctl-syscon: A phandle to a syscon device (see ../mfd/syscon.txt)
95 arasan,soc-ctl-syscon = <&grf>;
140 arasan,soc-ctl-syscon = <&sysconf>;
155 arasan,soc-ctl-syscon = <&sysconf>;
[all …]

12345678910>>...22