Home
last modified time | relevance | path

Searched refs:sc_flags (Results 1 – 25 of 247) sorted by relevance

12345678910

/openbsd-src/sys/dev/hid/
H A Dhidms.c86 ms->sc_flags |= HIDMS_TIP; in hidms_stylus_hid_parse()
93 ms->sc_flags |= HIDMS_BARREL; in hidms_stylus_hid_parse()
101 ms->sc_flags |= HIDMS_SEC_BARREL; in hidms_stylus_hid_parse()
121 ms->sc_flags |= HIDMS_ABSX; in hidms_stylus_hid_parse()
128 ms->sc_flags |= HIDMS_ABSY; in hidms_stylus_hid_parse()
135 ms->sc_flags |= HIDMS_Z; in hidms_stylus_hid_parse()
142 ms->sc_flags |= HIDMS_W; in hidms_stylus_hid_parse()
181 ms->sc_flags = 0; in hidms_wacom_setup()
258 ms->sc_flags = quirks; in hidms_setup()
270 ms->sc_flags |= HIDMS_ABSX; in hidms_setup()
[all …]
/openbsd-src/sys/net/
H A Dppp_tty.c267 if (sc->sc_flags & SC_TIMEOUT) { in pppasyncrelinq()
269 sc->sc_flags &= ~SC_TIMEOUT; in pppasyncrelinq()
665 if (!idle && (sc->sc_flags & SC_TIMEOUT) == 0) { in pppasyncstart()
667 sc->sc_flags |= SC_TIMEOUT; in pppasyncstart()
742 sc->sc_flags &= ~SC_TIMEOUT; in ppp_timeout()
811 if (sc->sc_flags & SC_DEBUG) in pppinput()
839 sc->sc_flags |= SC_RCV_B7_1; in pppinput()
841 sc->sc_flags |= SC_RCV_B7_0; in pppinput()
843 sc->sc_flags |= SC_RCV_ODDP; in pppinput()
845 sc->sc_flags | in pppinput()
[all...]
H A Dif_ppp.c280 sc->sc_flags = 0; in pppalloc()
379 *(u_int *)data = sc->sc_flags; in pppioctl()
387 if (sc->sc_flags & SC_CCP_OPEN && !(flags & SC_CCP_OPEN)) in pppioctl()
391 sc->sc_flags = (sc->sc_flags & ~SC_MASK) | flags; in pppioctl()
451 if (sc->sc_flags & SC_DEBUG) in pppioctl()
458 sc->sc_flags &= ~SC_COMP_RUN; in pppioctl()
469 if (sc->sc_flags & SC_DEBUG) { in pppioctl()
477 sc->sc_flags &= ~SC_DECOMP_RUN; in pppioctl()
482 if (sc->sc_flags & SC_DEBUG) { in pppioctl()
738 if (sc->sc_flags & SC_LOG_OUTPKT) { in pppoutput()
[all …]
H A Dif_tun.c89 unsigned int sc_flags; /* misc flags */ member
277 sc->sc_flags |= TUN_LAYER2; in tun_create()
290 sc->sc_flags |= TUN_INITED|TUN_STAYUP; in tun_create()
310 if (ISSET(sc->sc_flags, TUN_DEAD)) in tun_clone_destroy()
312 SET(sc->sc_flags, TUN_DEAD); in tun_clone_destroy()
342 if (ISSET(sc->sc_flags, TUN_LAYER2)) in tun_clone_destroy()
428 if (ISSET(sc->sc_flags, TUN_DEAD)) { in tun_dev_open()
433 if (ISSET(sc->sc_flags, TUN_INITED)) in tun_dev_open()
456 CLR(sc->sc_flags, stayup); in tun_dev_open()
511 CLR(sc->sc_flags, TUN_ASYN in tun_dev_close()
[all...]
/openbsd-src/sys/dev/tc/
H A Dasc_tc.c189 asc->asc.sc_flags &= ~(ASC_DMAACTIVE|ASC_MAPLOADED);
200 if ((asc->asc.sc_flags & ASC_ISPULLUP) == 0 &&
211 if (asc->asc.sc_flags & ASC_ISPULLUP)
215 asc->asc.sc_flags &= ~(ASC_DMAACTIVE|ASC_MAPLOADED);
234 asc->asc.sc_flags = (datain) ? ASC_ISPULLUP : 0;
251 if ((asc->asc.sc_flags & ASC_ISPULLUP) == 0)
255 if (asc->asc.sc_flags & ASC_ISPULLUP)
261 asc->asc.sc_flags |= ASC_MAPLOADED|ASC_DMAACTIVE;
274 if (asc->asc.sc_flags & ASC_ISPULLUP)
280 asc->asc.sc_flags |= ASC_DMAACTIVE;
[all …]
H A Dasc_tcds.c223 if (asc->asc.sc_flags & ASC_MAPLOADED)
225 asc->asc.sc_flags &= ~(ASC_DMAACTIVE|ASC_MAPLOADED);
254 asc->asc.sc_flags = (ispullup) ? ASC_ISPULLUP : 0;
287 asc->asc.sc_flags |= ASC_MAPLOADED;
298 asc->asc.sc_flags |= ASC_DMAACTIVE;
341 if ((asc->asc.sc_flags & ASC_DMAACTIVE) == 0)
346 asc->asc.sc_flags &= ~ASC_DMAACTIVE;
358 if ((asc->asc.sc_flags & ASC_ISPULLUP) == 0 &&
382 (asc->asc.sc_flags & ASC_ISPULLUP)
389 if (asc->asc.sc_flags & ASC_ISPULLUP) {
[all …]
/openbsd-src/sys/arch/loongson/dev/
H A Dapm.c70 int sc_flags; member
168 if (sc->sc_flags & SCFLAG_OWRITE) { in apmopen()
172 sc->sc_flags |= SCFLAG_OWRITE; in apmopen()
179 sc->sc_flags |= SCFLAG_OREAD; in apmopen()
203 sc->sc_flags &= ~SCFLAG_OWRITE; in apmclose()
206 sc->sc_flags &= ~SCFLAG_OREAD; in apmclose()
257 sc->sc_flags &= ~SCFLAG_PRINT; in apmioctl()
260 sc->sc_flags &= ~SCFLAG_PRINT; in apmioctl()
261 sc->sc_flags |= SCFLAG_NOPRINT; in apmioctl()
264 sc->sc_flags &= ~SCFLAG_PRINT; in apmioctl()
[all …]
/openbsd-src/sys/arch/arm64/dev/
H A Dapm.c72 int sc_flags; member
169 if (sc->sc_flags & SCFLAG_OWRITE) { in apmopen()
173 sc->sc_flags |= SCFLAG_OWRITE; in apmopen()
180 sc->sc_flags |= SCFLAG_OREAD; in apmopen()
204 sc->sc_flags &= ~SCFLAG_OWRITE; in apmclose()
207 sc->sc_flags &= ~SCFLAG_OREAD; in apmclose()
255 sc->sc_flags &= ~SCFLAG_PRINT; in apmioctl()
258 sc->sc_flags &= ~SCFLAG_PRINT; in apmioctl()
259 sc->sc_flags |= SCFLAG_NOPRINT; in apmioctl()
262 sc->sc_flags in apmioctl()
[all...]
/openbsd-src/sys/arch/macppc/dev/
H A Dapm.c65 int sc_flags; member
160 if (sc->sc_flags & SCFLAG_OWRITE) { in apmopen()
164 sc->sc_flags |= SCFLAG_OWRITE; in apmopen()
171 sc->sc_flags |= SCFLAG_OREAD; in apmopen()
195 sc->sc_flags &= ~SCFLAG_OWRITE; in apmclose()
198 sc->sc_flags &= ~SCFLAG_OREAD; in apmclose()
236 sc->sc_flags &= ~SCFLAG_PRINT; in apmioctl()
239 sc->sc_flags &= ~SCFLAG_PRINT; in apmioctl()
240 sc->sc_flags |= SCFLAG_NOPRINT; in apmioctl()
243 sc->sc_flags &= ~SCFLAG_PRINT; in apmioctl()
[all …]
H A Dkiic.c201 sc->sc_flags |= I2C_ERROR; in kiic_intr()
206 if (sc->sc_flags & I2C_READING) { in kiic_intr()
219 if (sc->sc_flags & I2C_READING) { in kiic_intr()
232 sc->sc_flags |= I2C_ERROR; in kiic_intr()
250 sc->sc_flags &= ~I2C_BUSY; in kiic_intr()
261 while (sc->sc_flags & I2C_BUSY) { in kiic_poll()
277 int rw = (sc->sc_flags & I2C_READING) ? 1 : 0; in kiic_start()
284 sc->sc_flags |= I2C_BUSY; in kiic_start()
300 if (sc->sc_flags & I2C_ERROR) { in kiic_start()
312 sc->sc_flags = I2C_READING; in kiic_read()
[all …]
/openbsd-src/sys/dev/sdmmc/
H A Dsdmmc.c133 sc->sc_flags = saa->flags; in sdmmc_attach()
167 SET(sc->sc_flags, SMF_CONFIG_PENDING); in sdmmc_attach()
199 if (ISSET(sc->sc_flags, SMF_CARD_PRESENT) && in sdmmc_activate()
259 if (ISSET(sc->sc_flags, SMF_CARD_PRESENT)) { in sdmmc_task_thread()
270 CLR(sc->sc_flags, SMF_CARD_PRESENT); in sdmmc_task_thread()
323 if (!ISSET(sc->sc_flags, SMF_CARD_PRESENT)) { in sdmmc_discover_task()
324 SET(sc->sc_flags, SMF_CARD_PRESENT); in sdmmc_discover_task()
328 if (ISSET(sc->sc_flags, SMF_CARD_PRESENT)) { in sdmmc_discover_task()
329 CLR(sc->sc_flags, SMF_CARD_PRESENT); in sdmmc_discover_task()
336 if (ISSET(sc->sc_flags, SMF_CONFIG_PENDIN in sdmmc_discover_task()
[all...]
H A Dsdmmc_mem.c117 CLR(sc->sc_flags, SMF_UHS_MODE); in sdmmc_mem_enable()
118 SET(sc->sc_flags, SMF_SD_MODE|SMF_MEM_MODE); in sdmmc_mem_enable()
131 if (ISSET(sc->sc_flags, SMF_SD_MODE) && in sdmmc_mem_enable()
132 !ISSET(sc->sc_flags, SMF_IO_MODE)) { in sdmmc_mem_enable()
134 CLR(sc->sc_flags, SMF_SD_MODE); in sdmmc_mem_enable()
137 if (!ISSET(sc->sc_flags, SMF_SD_MODE)) { in sdmmc_mem_enable()
143 CLR(sc->sc_flags, SMF_MEM_MODE); in sdmmc_mem_enable()
161 if (ISSET(sc->sc_flags, SMF_SD_MODE)) { in sdmmc_mem_enable()
176 if (ISSET(sc->sc_flags, SMF_SD_MODE) && ISSET(new_ocr, MMC_OCR_S18A)) { in sdmmc_mem_enable()
199 SET(sc->sc_flags, SMF_UHS_MODE); in sdmmc_mem_enable()
[all …]
/openbsd-src/sys/dev/
H A Dvnd.c87 int sc_flags; /* flags */ member
103 #define VNDRW(v) ((v)->sc_flags & VNF_READONLY ? FREAD : FREAD|FWRITE)
190 if ((flags & FWRITE) && (sc->sc_flags & VNF_READONLY)) { in vndopen()
195 if ((sc->sc_flags & VNF_INITED) && in vndopen()
196 (sc->sc_flags & VNF_HAVELABEL) == 0 && in vndopen()
198 sc->sc_flags |= VNF_HAVELABEL; in vndopen()
204 (sc->sc_flags & VNF_HAVELABEL) != 0); in vndopen()
262 sc->sc_flags &= ~VNF_HAVELABEL; in vndclose()
287 if ((sc->sc_flags & VNF_HAVELABEL) == 0) { in vndstrategy()
426 if (sc->sc_flags & VNF_INITED) in vndioctl()
[all …]
/openbsd-src/sys/arch/sparc64/dev/
H A Dauxio.c99 sc->sc_flags = AUXIO_LEDONLY|AUXIO_EBUS; in auxio_ebus_attach()
101 sc->sc_flags = AUXIO_EBUS; in auxio_ebus_attach()
158 sc->sc_flags = AUXIO_LEDONLY|AUXIO_SBUS; in auxio_sbus_attach()
186 if (sc->sc_flags & AUXIO_EBUS) in auxio_led_blink()
196 if (sc->sc_flags & AUXIO_EBUS) in auxio_led_blink()
219 if (sc->sc_flags & AUXIO_EBUS) in auxio_fd_control()
226 if (sc->sc_flags & AUXIO_EBUS) in auxio_fd_control()
H A Dsab.c96 int sc_flags; member
313 if (sc->sc_flags & SABTTYF_CONS_IN) in sabtty_activate()
419 if (sc->sc_flags & (SABTTYF_CONS_IN | SABTTYF_CONS_OUT)) { in sabtty_attach()
423 switch (sc->sc_flags & (SABTTYF_CONS_IN | SABTTYF_CONS_OUT)) { in sabtty_attach()
436 if (sc->sc_flags & SABTTYF_CONS_OUT) { in sabtty_attach()
447 if (sc->sc_flags & SABTTYF_CONS_IN) { in sabtty_attach()
454 if (sc->sc_flags & SABTTYF_CONS_OUT) { in sabtty_attach()
493 sc->sc_flags |= SABTTYF_RINGOVERFLOW; in sabtty_intr()
508 sc->sc_flags |= SABTTYF_RINGOVERFLOW; in sabtty_intr()
521 sc->sc_flags |= SABTTYF_CDCHG; in sabtty_intr()
[all …]
H A Dfd.c192 int sc_flags; member
261 int sc_flags; member
353 fdc->sc_flags |= FDC_NOEJECT; in fdcattach_sbus()
409 fdc->sc_flags |= FDC_EBUS; in fdcattach_ebus()
412 fdc->sc_flags |= FDC_NOEJECT; in fdcattach_ebus()
504 fdc->sc_flags |= FDC_EIS | FDC_NEEDMOTORWAIT; in fdcattach()
531 if (fdc->sc_flags & FDC_NOEJECT) in fdcattach()
834 if ((fd = fdc->sc_fd[n]) && (fd->sc_flags & FD_MOTOR)) in fd_set_motor()
847 fd->sc_flags &= ~(FD_MOTOR | FD_MOTOR_WAIT); in fd_motor_off()
860 fd->sc_flags &= ~FD_MOTOR_WAIT; in fd_motor_on()
[all …]
/openbsd-src/usr.sbin/smtpd/
H A Dsmtp.c94 env->sc_flags |= SMTPD_SMTP_PAUSED; in smtp_imsg()
99 env->sc_flags &= ~SMTPD_SMTP_PAUSED; in smtp_imsg()
243 if (!(env->sc_flags & SMTPD_SMTP_PAUSED)) in smtp_setup_events()
258 if (env->sc_flags & (SMTPD_SMTP_DISABLED|SMTPD_SMTP_PAUSED)) in smtp_pause()
270 if (env->sc_flags & (SMTPD_SMTP_DISABLED|SMTPD_SMTP_PAUSED)) in smtp_resume()
288 if (env->sc_flags & SMTPD_SMTP_PAUSED) in smtp_enqueue()
315 if (env->sc_flags & SMTPD_SMTP_PAUSED) in smtp_accept()
351 env->sc_flags |= SMTPD_SMTP_DISABLED; in smtp_accept()
372 if (env->sc_flags & SMTPD_SMTP_DISABLED) { in smtp_collect()
375 env->sc_flags &= ~SMTPD_SMTP_DISABLED; in smtp_collect()
H A Dcontrol.c439 if (env->sc_flags & SMTPD_SMTP_PAUSED) { in control_dispatch_ext()
556 if (env->sc_flags & SMTPD_MDA_PAUSED) { in control_dispatch_ext()
561 env->sc_flags |= SMTPD_MDA_PAUSED; in control_dispatch_ext()
570 if (env->sc_flags & SMTPD_MTA_PAUSED) { in control_dispatch_ext()
575 env->sc_flags |= SMTPD_MTA_PAUSED; in control_dispatch_ext()
584 if (env->sc_flags & SMTPD_SMTP_PAUSED) { in control_dispatch_ext()
589 env->sc_flags |= SMTPD_SMTP_PAUSED; in control_dispatch_ext()
606 if (!(env->sc_flags & SMTPD_MDA_PAUSED)) { in control_dispatch_ext()
611 env->sc_flags &= ~SMTPD_MDA_PAUSED; in control_dispatch_ext()
620 if (!(env->sc_flags in control_dispatch_ext()
[all...]
/openbsd-src/sys/dev/sbus/
H A Dbpp.c88 int sc_flags; member
268 sc->sc_flags = 0; in bppclose()
284 while ((sc->sc_flags & BPP_LOCKED) != 0) { in bppwrite()
290 sc->sc_flags |= BPP_WANT; in bppwrite()
298 sc->sc_flags |= BPP_LOCKED; in bppwrite()
358 sc->sc_flags &= ~BPP_LOCKED; in bppwrite()
359 if ((sc->sc_flags & BPP_WANT) != 0) { in bppwrite()
360 sc->sc_flags &= ~BPP_WANT; in bppwrite()
402 if ((sc->sc_flags & BPP_LOCKED) != 0) in bppintr()
404 else if ((sc->sc_flags & BPP_WANT) != 0) { in bppintr()
[all …]
/openbsd-src/sys/dev/pci/
H A Dif_nfe.c217 sc->sc_flags = 0; in nfe_attach()
224 sc->sc_flags |= NFE_JUMBO_SUP | NFE_HW_CSUM; in nfe_attach()
228 sc->sc_flags |= NFE_40BIT_ADDR | NFE_PWR_MGMT; in nfe_attach()
242 sc->sc_flags |= NFE_40BIT_ADDR | NFE_CORRECT_MACADDR | in nfe_attach()
249 sc->sc_flags |= NFE_40BIT_ADDR | NFE_HW_CSUM | in nfe_attach()
257 sc->sc_flags |= NFE_JUMBO_SUP | NFE_40BIT_ADDR | NFE_HW_CSUM | in nfe_attach()
264 sc->sc_flags |= NFE_JUMBO_SUP | NFE_40BIT_ADDR | NFE_HW_CSUM; in nfe_attach()
270 sc->sc_flags |= NFE_JUMBO_SUP | NFE_40BIT_ADDR | in nfe_attach()
275 sc->sc_flags |= NFE_JUMBO_SUP | NFE_40BIT_ADDR | NFE_HW_CSUM | in nfe_attach()
280 if (sc->sc_flags in nfe_attach()
[all...]
H A Dahci_pci.c212 sc->sc_flags |= AHCI_F_NO_NCQ; in ahci_vt8251_attach()
245 sc->sc_flags |= AHCI_F_IPMS_PROBE; in ahci_ati_sb600_attach()
255 sc->sc_flags |= AHCI_F_IPMS_PROBE; in ahci_ati_sb700_attach()
265 sc->sc_flags |= AHCI_F_IPMS_PROBE; in ahci_amd_hudson2_attach()
273 sc->sc_flags |= AHCI_F_NO_PMP; in ahci_intel_attach()
288 sc->sc_flags |= AHCI_F_NO_MSI; in ahci_samsung_attach()
301 sc->sc_flags |= AHCI_F_NO_MSI; in ahci_storx_attach()
350 if (sc->sc_flags & AHCI_F_NO_MSI) in ahci_pci_attach()
/openbsd-src/sys/dev/acpi/
H A Dacpi_apm.c60 if (sc->sc_flags & SCFLAG_OWRITE) { in acpiopen()
64 sc->sc_flags |= SCFLAG_OWRITE; in acpiopen()
71 sc->sc_flags |= SCFLAG_OREAD; in acpiopen()
94 sc->sc_flags &= ~SCFLAG_OWRITE; in acpiclose()
97 sc->sc_flags &= ~SCFLAG_OREAD; in acpiclose()
/openbsd-src/sys/dev/ic/
H A Dlemac.c158 sc->sc_flags &= ~LEMAC_LINKUP; in lemac_tne_intr()
161 sc->sc_flags |= LEMAC_LINKUP; in lemac_tne_intr()
321 sc->sc_flags |= LEMAC_LINKUP; in lemac_rne_intr()
477 sc->sc_flags |= LEMAC_ALLMULTI; in lemac_multicast_filter()
488 sc->sc_flags &= ~LEMAC_ALLMULTI; in lemac_multicast_filter()
503 sc->sc_flags &= ~LEMAC_LINKUP; in lemac_reset()
537 sc->sc_flags |= LEMAC_2K_MODE; in lemac_reset()
540 sc->sc_flags |= LEMAC_WAS_64K_MODE; in lemac_reset()
544 sc->sc_flags |= LEMAC_WAS_32K_MODE; in lemac_reset()
547 sc->sc_flags |= LEMAC_PIO_MODE; in lemac_reset()
[all …]
H A Dlpt.c169 sc->sc_flags = (sc->sc_flags & LPT_POLLED) | flags; in lptopen()
170 if ((sc->sc_flags & (LPT_POLLED|LPT_NOINTR)) == LPT_POLLED) in lptopen()
223 if ((sc->sc_flags & LPT_NOINTR) == 0) in lptopen()
277 if ((sc->sc_flags & LPT_NOINTR) == 0) in lptclose()
296 if (sc->sc_flags & LPT_NOINTR) { in lptpushbytes()
403 (sc->sc_flags & LPT_NOINTR)) in lptintr()
445 if ((sc->sc_flags & LPT_NOPRIME) == 0) { in lpt_activate()
/openbsd-src/sys/dev/usb/
H A Duvisor.c135 u_int16_t sc_flags; member
242 sc->sc_flags = uvisor_lookup(uaa->vendor, uaa->product)->uv_flags; in uvisor_attach()
245 if ((sc->sc_flags & (VISOR | PALM4)) == 0) { in uvisor_attach()
272 if (sc->sc_flags & VISOR) { in uvisor_attach()
385 if (sc->sc_flags & PALM4) { in uvisor_init()
400 sc->sc_flags = CLIE4; in uvisor_init()
407 if (sc->sc_flags & VISOR) { in uvisor_init()
420 if (sc->sc_flags & NOFRE) in uvisor_init()

12345678910