Home
last modified time | relevance | path

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

12345678

/freebsd/sys/dev/usb/controller/
H A Datmegadci.c150 if (sc->sc_flags.clocks_off && in atmegadci_clocks_on()
151 sc->sc_flags.port_powered) { in atmegadci_clocks_on()
162 sc->sc_flags.clocks_off = 0; in atmegadci_clocks_on()
171 if (!sc->sc_flags.clocks_off) { in atmegadci_clocks_off()
185 sc->sc_flags.clocks_off = 1; in atmegadci_clocks_off()
194 if (!sc->sc_flags.d_pulled_up && in atmegadci_pull_up()
195 sc->sc_flags.port_powered) { in atmegadci_pull_up()
196 sc->sc_flags.d_pulled_up = 1; in atmegadci_pull_up()
206 if (sc->sc_flags.d_pulled_up) { in atmegadci_pull_down()
207 sc->sc_flags.d_pulled_up = 0; in atmegadci_pull_down()
[all …]
H A Davr32dci.c198 if (sc->sc_flags.clocks_off && in avr32dci_clocks_on()
199 sc->sc_flags.port_powered) { in avr32dci_clocks_on()
207 sc->sc_flags.clocks_off = 0; in avr32dci_clocks_on()
214 if (!sc->sc_flags.clocks_off) { in avr32dci_clocks_off()
222 sc->sc_flags.clocks_off = 1; in avr32dci_clocks_off()
231 if (!sc->sc_flags.d_pulled_up && in avr32dci_pull_up()
232 sc->sc_flags.port_powered) { in avr32dci_pull_up()
233 sc->sc_flags.d_pulled_up = 1; in avr32dci_pull_up()
243 if (sc->sc_flags.d_pulled_up) { in avr32dci_pull_down()
244 sc->sc_flags.d_pulled_up = 0; in avr32dci_pull_down()
[all …]
H A Ddwc_otg.c490 if (sc->sc_flags.status_high_speed) in dwc_otg_update_host_frame_interval()
504 if (sc->sc_flags.clocks_off && in dwc_otg_clocks_on()
505 sc->sc_flags.port_powered) { in dwc_otg_clocks_on()
510 sc->sc_flags.clocks_off = 0; in dwc_otg_clocks_on()
517 if (!sc->sc_flags.clocks_off) { in dwc_otg_clocks_off()
522 sc->sc_flags.clocks_off = 1; in dwc_otg_clocks_off()
533 if (!sc->sc_flags.d_pulled_up && in dwc_otg_pull_up()
534 sc->sc_flags.port_powered) { in dwc_otg_pull_up()
535 sc->sc_flags.d_pulled_up = 1; in dwc_otg_pull_up()
550 if (sc->sc_flags in dwc_otg_pull_down()
[all...]
H A Duss820dci.c200 if (!sc->sc_flags.d_pulled_up && in uss820dci_pull_up()
201 sc->sc_flags.port_powered) { in uss820dci_pull_up()
202 sc->sc_flags.d_pulled_up = 1; in uss820dci_pull_up()
219 if (sc->sc_flags.d_pulled_up) { in uss820dci_pull_down()
220 sc->sc_flags.d_pulled_up = 0; in uss820dci_pull_down()
233 if (!(sc->sc_flags.status_suspend)) { in uss820dci_wakeup_peer()
796 sc->sc_flags.status_bus_reset = 1; in uss820dci_interrupt()
797 sc->sc_flags.status_suspend = 0; in uss820dci_interrupt()
798 sc->sc_flags.change_suspend = 0; in uss820dci_interrupt()
799 sc->sc_flags.change_connect = 1; in uss820dci_interrupt()
[all …]
H A Dmusb_otg.c262 if (sc->sc_flags.clocks_off && in musbotg_clocks_on()
263 sc->sc_flags.port_powered) { in musbotg_clocks_on()
269 sc->sc_flags.clocks_off = 0; in musbotg_clocks_on()
278 if (!sc->sc_flags.clocks_off) { in musbotg_clocks_off()
286 sc->sc_flags.clocks_off = 1; in musbotg_clocks_off()
309 if (!sc->sc_flags.d_pulled_up && in musbotg_pull_up()
310 sc->sc_flags.port_powered) { in musbotg_pull_up()
311 sc->sc_flags.d_pulled_up = 1; in musbotg_pull_up()
321 if (sc->sc_flags.d_pulled_up) { in musbotg_pull_down()
322 sc->sc_flags.d_pulled_up = 0; in musbotg_pull_down()
[all …]
/freebsd/sys/dev/usb/input/
H A Dums.c114 uint32_t sc_flags; member
270 if (sc->sc_info[0].sc_flags & UMS_FLAG_SBU) { in ums_intr_callback()
278 if ((info->sc_flags & UMS_FLAG_W_AXIS) && in ums_intr_callback()
282 if ((info->sc_flags & UMS_FLAG_X_AXIS) && in ums_intr_callback()
286 if ((info->sc_flags & UMS_FLAG_Y_AXIS) && in ums_intr_callback()
290 if ((info->sc_flags & UMS_FLAG_Z_AXIS) && in ums_intr_callback()
294 if (info->sc_flags & UMS_FLAG_REVZ) in ums_intr_callback()
299 if ((info->sc_flags & UMS_FLAG_T_AXIS) && in ums_intr_callback()
362 if ((sc->sc_info[0].sc_flags & UMS_FLAG_SBU) && in ums_intr_callback()
471 info->sc_flags |= UMS_FLAG_X_AXIS; in ums_hid_parse()
[all …]
H A Dukbd.c170 uint32_t sc_flags; /* flags */ member
465 KASSERT((sc->sc_flags & UKBD_FLAG_POLLING) != 0, in ukbd_do_poll()
515 (sc->sc_flags & UKBD_FLAG_POLLING) != 0, in ukbd_get_key()
519 (sc->sc_flags & UKBD_FLAG_GONE) == 0) { in ukbd_get_key()
525 if (sc->sc_flags & UKBD_FLAG_POLLING) in ukbd_get_key()
629 if ((sc->sc_flags & UKBD_FLAG_POLLING) != 0) in ukbd_event_keyinput()
744 if ((sc->sc_flags & UKBD_FLAG_APPLE_EJECT) && in ukbd_intr_callback()
749 if ((sc->sc_flags & UKBD_FLAG_APPLE_FN) && in ukbd_intr_callback()
783 if (sc->sc_flags & UKBD_FLAG_APPLE_SWAP) in ukbd_intr_callback()
795 if (sc->sc_flags & UKBD_FLAG_APPLE_SWAP) in ukbd_intr_callback()
[all …]
/freebsd/sys/geom/eli/
H A Dg_eli_ctl.c236 sc->sc_flags |= G_ELI_FLAG_RW_DETACH; in g_eli_ctl_detach()
502 if (sc->sc_flags & G_ELI_FLAG_RO) { in g_eli_ctl_configure()
508 if (*boot && (sc->sc_flags & G_ELI_FLAG_BOOT)) { in g_eli_ctl_configure()
512 } else if (*noboot && !(sc->sc_flags & G_ELI_FLAG_BOOT)) { in g_eli_ctl_configure()
518 if (*notrim && (sc->sc_flags & G_ELI_FLAG_NODELETE)) { in g_eli_ctl_configure()
522 } else if (*trim && !(sc->sc_flags & G_ELI_FLAG_NODELETE)) { in g_eli_ctl_configure()
528 if (*geliboot && (sc->sc_flags & G_ELI_FLAG_GELIBOOT)) { in g_eli_ctl_configure()
532 } else if (*nogeliboot && !(sc->sc_flags & G_ELI_FLAG_GELIBOOT)) { in g_eli_ctl_configure()
538 if (*displaypass && (sc->sc_flags & G_ELI_FLAG_GELIDISPLAYPASS)) { in g_eli_ctl_configure()
543 !(sc->sc_flags & G_ELI_FLAG_GELIDISPLAYPASS)) { in g_eli_ctl_configure()
[all …]
H A Dg_eli.c392 if ((sc->sc_flags & G_ELI_FLAG_AUTORESIZE) == 0) { in g_eli_resize()
400 if ((sc->sc_flags & G_ELI_FLAG_ONETIME) == 0) { in g_eli_resize()
486 if (!(sc->sc_flags & G_ELI_FLAG_NODELETE)) in g_eli_start()
502 if (!(sc->sc_flags & G_ELI_FLAG_AUTH)) { in g_eli_start()
548 if ((sc->sc_flags & G_ELI_FLAG_FIRST_KEY) != 0) { in g_eli_newsession()
556 if (sc->sc_flags & G_ELI_FLAG_AUTH) { in g_eli_newsession()
593 if ((sc->sc_flags & G_ELI_FLAG_FIRST_KEY) != 0) { in g_eli_newsession()
637 if (!(sc->sc_flags & G_ELI_FLAG_SUSPEND)) in g_eli_takefirst()
689 if (sc->sc_flags & G_ELI_FLAG_DESTROY) { in g_eli_worker()
700 while (sc->sc_flags & G_ELI_FLAG_SUSPEND) { in g_eli_worker()
[all …]
H A Dg_eli_key_cache.c82 if ((sc->sc_flags & G_ELI_FLAG_ENC_IVKEY) != 0) in g_eli_key_fill()
185 if ((sc->sc_flags & G_ELI_FLAG_AUTH) == 0) in g_eli_key_init()
195 if ((sc->sc_flags & G_ELI_FLAG_SINGLE_KEY) != 0) { in g_eli_key_init()
202 if ((sc->sc_flags & G_ELI_FLAG_AUTH) != 0) { in g_eli_key_init()
237 if ((sc->sc_flags & G_ELI_FLAG_SINGLE_KEY) != 0) { in g_eli_key_destroy()
257 if ((sc->sc_flags & G_ELI_FLAG_SINGLE_KEY) != 0) { in g_eli_key_resize()
263 if ((sc->sc_flags & G_ELI_FLAG_AUTH) != 0) { in g_eli_key_resize()
307 if ((sc->sc_flags & G_ELI_FLAG_SINGLE_KEY) != 0) in g_eli_key_hold()
365 if ((sc->sc_flags & G_ELI_FLAG_SINGLE_KEY) != 0) in g_eli_key_drop()
/freebsd/sys/powerpc/powermac/
H A Dkiic.c108 u_int sc_flags; member
308 sc->sc_flags |= I2C_SELECTED; in kiic_intr()
310 if (sc->sc_flags & I2C_READING) { in kiic_intr()
323 if (sc->sc_flags & I2C_READING) { in kiic_intr()
344 sc->sc_flags &= ~I2C_SELECTED; in kiic_intr()
366 if (sc->sc_flags & I2C_BUSY) in kiic_transfer()
369 if (sc->sc_flags & I2C_BUSY) { in kiic_transfer()
374 sc->sc_flags = I2C_BUSY; in kiic_transfer()
395 sc->sc_flags = I2C_BUSY; in kiic_transfer()
401 sc->sc_flags |= I2C_READING; in kiic_transfer()
[all …]
/freebsd/sys/dev/hid/
H A Dhkbd.c167 uint32_t sc_flags; /* flags */ member
412 KASSERT((sc->sc_flags & HKBD_FLAG_POLLING) != 0, in hkbd_do_poll()
464 (sc->sc_flags & HKBD_FLAG_POLLING) != 0, in hkbd_get_key()
467 if (sc->sc_flags & HKBD_FLAG_POLLING) in hkbd_get_key()
563 if ((sc->sc_flags & HKBD_FLAG_POLLING) != 0) in hkbd_event_keyinput()
679 if ((sc->sc_flags & HKBD_FLAG_APPLE_EJECT) && in hkbd_intr_callback()
684 if ((sc->sc_flags & HKBD_FLAG_APPLE_FN) && in hkbd_intr_callback()
713 if (sc->sc_flags & HKBD_FLAG_APPLE_SWAP) in hkbd_intr_callback()
726 if (sc->sc_flags & HKBD_FLAG_APPLE_SWAP) in hkbd_intr_callback()
777 sc->sc_flags &= ~HKBD_FLAG_HID_MASK; in hkbd_parse_hid()
[all …]
/freebsd/sys/geom/raid3/
H A Dg_raid3_ctl.c57 if ((sc->sc_flags & G_RAID3_DEVICE_FLAG_DESTROY) != 0) in g_raid3_find_device()
196 if ((sc->sc_flags & G_RAID3_DEVICE_FLAG_NOAUTOSYNC) != 0) { in g_raid3_ctl_configure()
198 sc->sc_flags &= ~G_RAID3_DEVICE_FLAG_NOAUTOSYNC; in g_raid3_ctl_configure()
203 sc->sc_flags |= G_RAID3_DEVICE_FLAG_NOAUTOSYNC; in g_raid3_ctl_configure()
205 if ((sc->sc_flags & G_RAID3_DEVICE_FLAG_NOFAILSYNC) != 0) { in g_raid3_ctl_configure()
207 sc->sc_flags &= ~G_RAID3_DEVICE_FLAG_NOFAILSYNC; in g_raid3_ctl_configure()
210 sc->sc_flags |= G_RAID3_DEVICE_FLAG_NOFAILSYNC; in g_raid3_ctl_configure()
214 if ((sc->sc_flags & G_RAID3_DEVICE_FLAG_VERIFY) != 0) { in g_raid3_ctl_configure()
216 sc->sc_flags &= ~G_RAID3_DEVICE_FLAG_VERIFY; in g_raid3_ctl_configure()
219 sc->sc_flags |= G_RAID3_DEVICE_FLAG_VERIFY; in g_raid3_ctl_configure()
[all …]
/freebsd/sys/dev/hyperv/input/
H A Dhv_kbd.c180 sc->sc_flags |= HVKBD_FLAG_POLLING; in hvkbd_poll()
182 sc->sc_flags &= ~HVKBD_FLAG_POLLING; in hvkbd_poll()
240 if (!(sc->sc_flags & HVKBD_FLAG_COMPOSE) && sc->sc_composed_char != 0) in hvkbd_check_char_locked()
242 if (sc->sc_flags & HVKBD_FLAG_POLLING) in hvkbd_check_char_locked()
280 if (!(sc->sc_flags & HVKBD_FLAG_COMPOSE) && sc->sc_composed_char > 0) { in hvkbd_read_char_locked()
357 if (sc->sc_flags & HVKBD_FLAG_COMPOSE) { in hvkbd_read_char_locked()
358 sc->sc_flags &= ~HVKBD_FLAG_COMPOSE; in hvkbd_read_char_locked()
364 if (!(sc->sc_flags & HVKBD_FLAG_COMPOSE)) { in hvkbd_read_char_locked()
365 sc->sc_flags |= HVKBD_FLAG_COMPOSE; in hvkbd_read_char_locked()
472 if (sc->sc_flags & ALTS) in hvkbd_read_char_locked()
[all …]
/freebsd/sys/dev/usb/net/
H A Dif_ure.c454 sc->sc_flags &= ~URE_FLAG_LINK; in ure_miibus_statchg()
460 sc->sc_flags |= URE_FLAG_LINK; in ure_miibus_statchg()
464 if ((sc->sc_flags & URE_FLAG_8152) != 0) in ure_miibus_statchg()
466 sc->sc_flags |= URE_FLAG_LINK; in ure_miibus_statchg()
475 if ((sc->sc_flags & URE_FLAG_LINK) == 0) in ure_miibus_statchg()
515 sc->sc_flags = USB_GET_DRIVER_INFO(uaa); in ure_attach()
521 if (sc->sc_flags & (URE_FLAG_8153 | URE_FLAG_8153B)) in ure_attach()
523 else if (sc->sc_flags & (URE_FLAG_8156 | URE_FLAG_8156B)) in ure_attach()
766 if ((sc->sc_flags & URE_FLAG_LINK) == 0) { in ure_bulk_write_callback()
885 sc->sc_flags = URE_FLAG_8152; in ure_read_chipver()
[all …]
H A Dif_axe.c386 sc->sc_flags &= ~AXE_FLAG_LINK; in axe_miibus_statchg()
392 sc->sc_flags |= AXE_FLAG_LINK; in axe_miibus_statchg()
395 if ((sc->sc_flags & AXE_FLAG_178) == 0) in axe_miibus_statchg()
397 sc->sc_flags |= AXE_FLAG_LINK; in axe_miibus_statchg()
405 if ((sc->sc_flags & AXE_FLAG_LINK) == 0) in axe_miibus_statchg()
422 if ((sc->sc_flags & AXE_FLAG_178) != 0) in axe_miibus_statchg()
803 if (sc->sc_flags & AXE_FLAG_178) in axe_reset()
805 else if (sc->sc_flags & AXE_FLAG_772) in axe_reset()
807 else if (sc->sc_flags & AXE_FLAG_772A) in axe_reset()
809 else if (sc->sc_flags & AXE_FLAG_772B) in axe_reset()
[all …]
/freebsd/sys/geom/
H A Dgeom_ccd.c158 int sc_flags; /* flags */ member
246 if (cs->sc_flags & CCDF_LINUX) { in ccdinit()
249 if (cs->sc_flags & CCDF_MIRROR && cs->sc_ndisks != 2) in ccdinit()
253 if (cs->sc_flags & CCDF_NO_OFFSET) in ccdinit()
303 if (cs->sc_flags & CCDF_UNIFORM) { in ccdinit()
311 if (cs->sc_flags & CCDF_MIRROR) { in ccdinit()
497 if (cs->sc_flags & CCDF_MIRROR) { in g_ccd_start()
606 if (cs->sc_flags & CCDF_MIRROR) { in ccdbuffer()
657 if (cs->sc_flags & CCDF_MIRROR) { in ccdbuffer()
795 sc->sc_flags |= CCDF_NO_OFFSET; in g_ccd_create()
[all …]
/freebsd/sys/arm/broadcom/bcm2835/
H A Dbcm2835_bsc.c438 sc->sc_flags |= BCM_I2C_READ; in bcm_bsc_fill_tx_fifo()
456 if ((sc->sc_flags & BCM_I2C_BUSY) == 0) { in bcm_bsc_intr()
465 if ((sc->sc_flags & BCM_I2C_READ) && (status & BCM_BSC_STATUS_RXD)) in bcm_bsc_intr()
470 sc->sc_flags |= BCM_I2C_DONE; in bcm_bsc_intr()
472 sc->sc_flags |= BCM_I2C_ERROR; in bcm_bsc_intr()
476 } else if (!(sc->sc_flags & BCM_I2C_READ)) { in bcm_bsc_intr()
503 while (sc->sc_flags & BCM_I2C_BUSY) in bcm_bsc_transfer()
507 sc->sc_flags = BCM_I2C_BUSY; in bcm_bsc_transfer()
589 sc->sc_flags |= BCM_I2C_READ; in bcm_bsc_transfer()
592 sc->sc_flags &= ~BCM_I2C_READ; in bcm_bsc_transfer()
[all …]
/freebsd/sys/dev/le/
H A Dlancevar.h110 int sc_flags; member
131 #define LE_HTOLE16(v) (((sc)->sc_flags & LE_BSWAP) ? htole16(v) : (v))
132 #define LE_HTOLE32(v) (((sc)->sc_flags & LE_BSWAP) ? htole32(v) : (v))
133 #define LE_LE16TOH(v) (((sc)->sc_flags & LE_BSWAP) ? le16toh(v) : (v))
134 #define LE_LE32TOH(v) (((sc)->sc_flags & LE_BSWAP) ? le32toh(v) : (v))
H A Dlance.c483 if (sc->sc_flags & LE_CARRIER) in lance_mediastatus()
505 if (!(sc->sc_flags & LE_PROMISC)) { in lance_ioctl()
506 sc->sc_flags |= LE_PROMISC; in lance_ioctl()
509 } else if (sc->sc_flags & LE_PROMISC) { in lance_ioctl()
510 sc->sc_flags &= ~LE_PROMISC; in lance_ioctl()
515 !(sc->sc_flags & LE_ALLMULTI)) { in lance_ioctl()
516 sc->sc_flags |= LE_ALLMULTI; in lance_ioctl()
519 (sc->sc_flags & LE_ALLMULTI)) { in lance_ioctl()
520 sc->sc_flags &= ~LE_ALLMULTI; in lance_ioctl()
541 sc->sc_flags |= LE_DEBUG; in lance_ioctl()
[all …]
/freebsd/sys/dev/usb/storage/
H A Durio.c103 uint8_t sc_flags; member
271 if (sc->sc_flags & URIO_FLAG_WRITE_STALL) { in urio_write_callback()
286 sc->sc_flags |= URIO_FLAG_WRITE_STALL; in urio_write_callback()
301 sc->sc_flags &= ~URIO_FLAG_WRITE_STALL; in urio_write_clear_stall_callback()
322 if (sc->sc_flags & URIO_FLAG_READ_STALL) { in urio_read_callback()
335 sc->sc_flags |= URIO_FLAG_READ_STALL; in urio_read_callback()
350 sc->sc_flags &= ~URIO_FLAG_READ_STALL; in urio_read_clear_stall_callback()
397 sc->sc_flags |= URIO_FLAG_READ_STALL; in urio_open()
408 sc->sc_flags |= URIO_FLAG_WRITE_STALL; in urio_open()
/freebsd/sys/netinet/
H A Dtcp_syncache.c512 sc->sc_flags &= ~SCF_ECN_MASK; in syncache_timer()
748 if ((sc->sc_flags & SCF_UNREACH) == 0 || sc->sc_rxmits < 3 + 1) { in syncache_unreach()
749 sc->sc_flags |= SCF_UNREACH; in syncache_unreach()
938 if (sc->sc_flags & SCF_NOOPT) in syncache_socket()
941 if (sc->sc_flags & SCF_WINSCALE) { in syncache_socket()
946 if (sc->sc_flags & SCF_TIMESTAMP) { in syncache_socket()
953 if (sc->sc_flags & SCF_SIGNATURE) in syncache_socket()
956 if (sc->sc_flags & SCF_SACK) in syncache_socket()
1196 if (sc->sc_flags & SCF_SIGNATURE) { in syncache_expand()
1232 if (sc->sc_flags & SCF_TIMESTAMP && to->to_flags & TOF_TS && in syncache_expand()
[all …]
/freebsd/sys/dev/flash/
H A Dmx25l.c91 unsigned int sc_flags; member
258 if (sc->sc_flags & FL_ERASE_4K) in mx25l_erase_cmd()
260 else if (sc->sc_flags & FL_ERASE_32K) in mx25l_erase_cmd()
265 if (sc->sc_flags & FL_ENABLE_4B_ADDR) { in mx25l_erase_cmd()
293 if (sc->sc_flags & FL_ENABLE_4B_ADDR) { in mx25l_write()
321 if (sc->sc_flags & FL_ENABLE_4B_ADDR) { in mx25l_write()
381 if (sc->sc_flags & FL_ENABLE_4B_ADDR) { in mx25l_read()
494 sc->sc_flags = ident->flags; in mx25l_attach()
496 if (sc->sc_flags & FL_ERASE_4K) in mx25l_attach()
498 else if (sc->sc_flags & FL_ERASE_32K) in mx25l_attach()
[all …]
/freebsd/sys/dev/rtwn/
H A Dif_rtwn_calib.c57 if (!(sc->sc_flags & RTWN_TEMP_MEASURED)) { in rtwn_temp_calib()
62 sc->sc_flags |= RTWN_TEMP_MEASURED; in rtwn_temp_calib()
65 sc->sc_flags &= ~RTWN_TEMP_MEASURED; in rtwn_temp_calib()
/freebsd/sys/dev/iwm/
H A Dif_iwm_time_event.c168 sc->sc_flags &= ~IWM_FLAG_TE_ACTIVE; in iwm_te_clear_data()
354 if (sc->sc_flags & IWM_FLAG_TE_ACTIVE) in iwm_protect_session()
378 sc->sc_flags |= IWM_FLAG_TE_ACTIVE; in iwm_protect_session()
396 sc->sc_flags |= IWM_FLAG_TE_ACTIVE; in iwm_protect_session()
414 if ((sc->sc_flags & IWM_FLAG_TE_ACTIVE) == 0) in iwm_stop_session_protection()

12345678