Searched refs:ctl (Results 1 - 25 of 115) sorted by relevance

12345

/openbsd-current/sys/arch/sparc64/dev/
H A Dvrng.c82 struct rng_ctl ctl[4]; local
100 bzero(ctl, sizeof(ctl));
102 ctl[0].rng_ctl1 = 1;
103 ctl[0].rng_vcoctl_sel = 0;
104 ctl[0].rng_wait_cnt = 0x3e;
106 ctl[1].rng_ctl2 = 1;
107 ctl[1].rng_vcoctl_sel = 1;
108 ctl[1].rng_wait_cnt = 0x3e;
110 ctl[
[all...]
/openbsd-current/sys/arch/octeon/dev/
H A Doctuctl.c123 octuctl_clock_setup(struct octuctl_softc *sc, uint64_t ctl) argument
133 ctl |= UCTL_CLK_RST_CTL_P_POR;
134 ctl &= ~(UCTL_CLK_RST_CTL_HRST |
140 bus_space_write_8(sc->sc_iot, sc->sc_ioh, UCTL_CLK_RST_CTL, ctl);
143 ctl &= ~((3 << UCTL_CLK_RST_CTL_P_REFCLK_DIV_SHIFT) |
145 bus_space_write_8(sc->sc_iot, sc->sc_ioh, UCTL_CLK_RST_CTL, ctl);
157 ctl &= ~(0xf << UCTL_CLK_RST_CTL_H_DIV_SHIFT);
158 ctl |= (div << UCTL_CLK_RST_CTL_H_DIV_SHIFT);
159 bus_space_write_8(sc->sc_iot, sc->sc_ioh, UCTL_CLK_RST_CTL, ctl);
162 ctl
203 uint64_t ctl; local
[all...]
/openbsd-current/lib/libpcap/
H A Dllc.h49 } ctl; member in struct:llc
52 #define llcui ctl.snap.snap_ui
53 #define llcpi ctl.snap.snap_pi
54 #define orgcode ctl.snap_ether.snap_orgcode
55 #define ethertype ctl.snap_ether.snap_ethertype
56 #define llcis ctl.is_ctl
57 #define llcu ctl.u_ctl
/openbsd-current/usr.sbin/tcpdump/
H A Dllc.h51 } ctl; member in struct:llc
54 #define llcui ctl.snap.snap_ui
55 #define llcpi ctl.snap.snap_pi
56 #define orgcode ctl.snap_ether.snap_orgcode
57 #define ethertype ctl.snap_ether.snap_ethertype
58 #define llcis ctl.is_ctl
59 #define llcu ctl.u_ctl
/openbsd-current/gnu/usr.bin/perl/hints/
H A Dunicosmk.sh13 *:/opt/ctl/bin:*) ;;
15 '') test -x /opt/ctl/bin/cc && cc=/opt/ctl/bin/cc ;;
/openbsd-current/sys/arch/armv7/xilinx/
H A Dzqclock.c181 uint32_t ctl, div, freq; local
189 ctl = zynq_slcr_read(sc->sc_rm, clock->clk_ctl_reg);
191 div = SLCR_CLK_CTRL_DIVISOR(ctl);
193 div *= SLCR_CLK_CTRL_DIVISOR1(ctl);
195 freq = zqclock_get_pll_frequency(sc, ctl);
218 uint32_t ctl, div, div1, maxdiv1, si; local
275 ctl = zynq_slcr_read(sc->sc_rm, clock->clk_ctl_reg);
277 ctl &= ~SLCR_CLK_CTRL_SRCSEL_MASK;
278 ctl |= srcsels[best_si];
279 ctl
300 uint32_t ctl; local
[all...]
/openbsd-current/usr.sbin/lpd/
H A Dcontrol.c56 } ctl; variable in typeref:struct:__anon9
130 ctl.fd = fd;
136 if (listen(ctl.fd, CONTROL_BACKLOG) == -1)
139 ctl.pause = 0;
148 event_del(&ctl.evt);
153 evtimer_set(&ctl.evt, control_accept, NULL);
154 evtimer_add(&ctl.evt, &tv);
155 ctl.pause = 1;
161 if (ctl.pause) {
162 evtimer_del(&ctl
[all...]
/openbsd-current/sys/arch/alpha/pci/
H A Dmcpcia.c155 u_int32_t ctl; local
185 ctl = REGVAL(MCPCIA_PCI_REV(ccp));
187 mcp->mcpcia_dev.dv_xname, HORSE_REV(ctl),
188 (SADDLE_TYPE(ctl) & 1) ? "right" : "left", SADDLE_REV(ctl),
189 CAP_REV(ctl));
262 u_int32_t ctl; local
298 ctl = REGVAL(MCPCIA_WHOAMI(ccp));
299 mcbus_primary.mcbus_cpu_mid = MCBUS_CPU_MID(ctl);
300 if ((MCBUS_CPU_INFO(ctl)
320 volatile u_int32_t ctl; local
[all...]
/openbsd-current/sys/arch/luna88k/dev/
H A Dif_le.c162 * accessible 4bit-wise by ctl register operation. The register is
173 volatile struct { uint32_t ctl; } *ds1220; member in struct:__anon8454
199 ds1220->ctl = (loc) << 16;
200 u = 0xf0 & (ds1220->ctl >> 12);
201 ds1220->ctl = (loc + 1) << 16;
202 l = 0x0f & (ds1220->ctl >> 16);
205 ds1220->ctl = (loc + 2) << 16;
206 u = 0xf0 & (ds1220->ctl >> 12);
207 ds1220->ctl = (loc + 3) << 16;
208 l = 0x0f & (ds1220->ctl >> 1
[all...]
/openbsd-current/usr.sbin/syslogc/
H A Dsyslogc.c77 struct sockaddr_un ctl; local
137 memset(&ctl, '\0', sizeof(ctl));
138 strlcpy(ctl.sun_path, ctlsock_path, sizeof(ctl.sun_path));
139 ctl.sun_family = AF_UNIX;
143 if (connect(ctlsock, (struct sockaddr *)&ctl, sizeof(ctl)) == -1)
144 err(1, "connect: %s", ctl.sun_path);
/openbsd-current/sys/dev/isa/
H A Dgscsio.c297 u_int8_t st, ctl; local
310 ctl = ACB_READ(GSCSIO_ACB_CTL1);
311 ctl |= GSCSIO_ACB_CTL1_STOP;
312 ACB_WRITE(GSCSIO_ACB_CTL1, ctl);
342 u_int8_t ctl; local
344 ctl = ACB_READ(GSCSIO_ACB_CTL1);
345 ctl |= GSCSIO_ACB_CTL1_START;
346 ACB_WRITE(GSCSIO_ACB_CTL1, ctl);
356 u_int8_t ctl; local
358 ctl
370 u_int8_t ctl; local
396 u_int8_t ctl; local
421 u_int8_t ctl; local
[all...]
/openbsd-current/usr.sbin/sasyncd/
H A Dnet_ctl.c81 struct ctlmsg *ctl = (struct ctlmsg *)msg; local
86 if (msglen < sizeof *ctl) {
93 switch (ntohl(ctl->type)) {
108 nstate = (enum RUNSTATE)ntohl(ctl->data);
116 switch (ntohl(ctl->data)) {
134 ctype = (enum CTLTYPE)ntohl(ctl->data);
142 nstate = (enum RUNSTATE)ntohl(ctl->data2);
150 ntohl(ctl->type), p->name);
197 /* After a CARP tracker state change, send an state ctl msg to all peers. */
/openbsd-current/usr.bin/talk/
H A DMakefile6 SRCS= ctl.c ctl_transact.c display.c get_addrs.c get_names.c \
/openbsd-current/usr.bin/sndiod/
H A Ddev.h116 struct ctl { struct
117 struct ctl *next;
285 extern struct ctl *ctl_list;
354 struct ctl *ctl_new(int, void *, void *,
357 void ctl_log(struct ctl *);
358 int ctl_setval(struct ctl *c, int val);
359 int ctl_match(struct ctl *, int, void *, void *);
360 struct ctl *ctl_find(int, void *, void *);
361 void ctl_update(struct ctl *);
366 int ctlslot_visible(struct ctlslot *, struct ctl *);
[all...]
H A Ddev_sioctl.c82 struct ctl *c;
136 struct ctl *c, **pc;
160 struct ctl *c;
187 struct ctl *c;
191 * for each dirty ctl, call sioctl_setval() and dev_unref(). As
/openbsd-current/gnu/usr.bin/gcc/gcc/f/
H A Dsts.c108 ffests_printf (ffests s, const char *ctl, ...)
113 va_start (ap, ctl);
114 if (vasprintf (&string, ctl, ap) == 0)
107 ffests_printf(ffests s, const char *ctl, ...) argument
H A Dsts.h63 void ffests_printf (ffests s, const char *ctl, ...) ATTRIBUTE_PRINTF_2;
/openbsd-current/sys/arch/luna88k/stand/boot/
H A Dif_le.c233 volatile struct { uint32_t ctl; } *ds1220; member in struct:__anon27
259 ds1220->ctl = (loc) << 16;
260 u = 0xf0 & (ds1220->ctl >> 12);
261 ds1220->ctl = (loc + 1) << 16;
262 l = 0x0f & (ds1220->ctl >> 16);
265 ds1220->ctl = (loc + 2) << 16;
266 u = 0xf0 & (ds1220->ctl >> 12);
267 ds1220->ctl = (loc + 3) << 16;
268 l = 0x0f & (ds1220->ctl >> 16);
/openbsd-current/usr.sbin/vmctl/
H A Dmain.c102 ctl_usage(struct ctl_command *ctl) argument
107 ctl->name, ctl->usage);
142 struct ctl_command *ctl = NULL; local
152 if (ctl != NULL) {
157 ctl = &ctl_commands[i];
161 if (ctl == NULL) {
166 res.action = ctl->action;
167 res.ctl = ctl;
[all...]
/openbsd-current/usr.sbin/bgpctl/
H A Dbgpctl.c1222 struct ctl_show_rib ctl; local
1236 memset(&ctl, 0, sizeof(ctl));
1237 ctl.prefix = mr->prefix;
1238 ctl.prefixlen = mr->prefixlen;
1240 ctl.age = now - mre->originated;
1241 ctl.true_nexthop = mre->nexthop;
1242 ctl.exit_nexthop = mre->nexthop;
1243 ctl.origin = mre->origin;
1244 ctl
1307 struct ctl_show_rib ctl; local
[all...]
/openbsd-current/sys/dev/pci/
H A Denvy.c763 ak4358_dac_get(struct envy_softc *sc, struct mixer_ctrl *ctl, int idx) argument
768 ctl->un.value.num_channels = 1;
769 ctl->un.value.level[0] = 2 * val;
773 ak4358_dac_set(struct envy_softc *sc, struct mixer_ctrl *ctl, int idx) argument
777 if (ctl->un.value.num_channels != 1)
779 val = ctl->un.value.level[0] / 2;
846 ak4524_dac_get(struct envy_softc *sc, struct mixer_ctrl *ctl, int idx) argument
854 ctl->un.value.num_channels = 1;
855 ctl->un.value.level[0] = 2 * val;
859 ctl
864 ak4524_dac_set(struct envy_softc *sc, struct mixer_ctrl *ctl, int idx) argument
907 ak4524_adc_get(struct envy_softc *sc, struct mixer_ctrl *ctl, int idx) argument
917 ak4524_adc_set(struct envy_softc *sc, struct mixer_ctrl *ctl, int idx) argument
968 ak5365_adc_get(struct envy_softc *sc, struct mixer_ctrl *ctl, int idx) argument
983 ak5365_adc_set(struct envy_softc *sc, struct mixer_ctrl *ctl, int idx) argument
1991 int st, err, ctl; local
2341 envy_get_port(void *self, struct mixer_ctrl *ctl) argument
2385 envy_set_port(void *self, struct mixer_ctrl *ctl) argument
[all...]
H A Dichiic.c244 u_int8_t ctl, st; local
299 ctl = ICH_SMB_HC_CMD_BYTE;
301 ctl = ICH_SMB_HC_CMD_BDATA;
303 ctl = ICH_SMB_HC_CMD_WDATA;
308 ctl |= ICH_SMB_HC_INTREN;
311 ctl |= ICH_SMB_HC_START;
312 bus_space_write_1(sc->sc_iot, sc->sc_ioh, ICH_SMB_HC, ctl);
/openbsd-current/sys/dev/usb/
H A Dif_bwfm_usb.c793 struct bwfm_proto_bcdc_ctl *ctl = arg; local
806 USETW(req.wLength, ctl->len);
808 error = usbd_do_request(sc->sc_udev, &req, ctl->buf);
810 printf("%s: could not write ctl packet: %s\n",
812 free(ctl->buf, M_TEMP, ctl->len);
813 free(ctl, M_TEMP, sizeof(*ctl));
819 free(ctl->buf, M_TEMP, ctl
[all...]
/openbsd-current/sys/arch/i386/i386/
H A Dpowernow-k7.c153 uint64_t status, ctl; local
178 ctl = rdmsr(MSR_AMDK7_FIDVID_CTL) & PN7_CTR_FIDCHRATIO;
180 ctl |= PN7_CTR_FID(fid);
181 ctl |= PN7_CTR_VID(vid);
182 ctl |= PN7_CTR_SGTC(cstate->sgtc);
188 wrmsr(MSR_AMDK7_FIDVID_CTL, ctl | PN7_CTR_FIDC);
190 wrmsr(MSR_AMDK7_FIDVID_CTL, ctl | PN7_CTR_VIDC);
192 wrmsr(MSR_AMDK7_FIDVID_CTL, ctl | PN7_CTR_VIDC);
194 wrmsr(MSR_AMDK7_FIDVID_CTL, ctl | PN7_CTR_FIDC);
/openbsd-current/sys/dev/pci/drm/
H A Ddrm_irq.c166 struct drm_control *ctl = data; local
182 switch (ctl->func) {
188 ctl->irq != irq)

Completed in 275 milliseconds

12345