Home
last modified time | relevance | path

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

12345678

/freebsd-14.2/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.c504 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()
535 sc->sc_flags.d_pulled_up = 1; in dwc_otg_pull_up()
550 if (sc->sc_flags.d_pulled_up) { in dwc_otg_pull_down()
551 sc->sc_flags.d_pulled_up = 0; in dwc_otg_pull_down()
4090 sc->sc_flags.status_vbus = 0; in dwc_otg_uninit()
[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()
1378 sc->sc_flags.status_vbus = 1; in uss820dci_init()
1430 sc->sc_flags.mcsr_feat = 1; in uss820dci_init()
1536 sc->sc_flags.port_powered = 0; in uss820dci_uninit()
1537 sc->sc_flags.status_vbus = 0; in uss820dci_uninit()
2098 sc->sc_flags.port_enabled = 0; in uss820dci_roothub_exec()
[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-14.2/sys/dev/usb/input/
H A Dums.c115 uint32_t sc_flags; member
295 if (info->sc_flags & UMS_FLAG_REVZ) in ums_intr_callback()
472 info->sc_flags |= UMS_FLAG_X_AXIS; in ums_hid_parse()
478 info->sc_flags |= UMS_FLAG_Y_AXIS; in ums_hid_parse()
489 info->sc_flags |= UMS_FLAG_Z_AXIS; in ums_hid_parse()
506 info->sc_flags |= UMS_FLAG_Z_AXIS; in ums_hid_parse()
522 info->sc_flags |= UMS_FLAG_T_AXIS; in ums_hid_parse()
528 info->sc_flags |= UMS_FLAG_T_AXIS; in ums_hid_parse()
556 if (info->sc_flags == 0) in ums_hid_parse()
670 info->sc_flags |= UMS_FLAG_REVZ; in ums_attach()
[all …]
H A Dukbd.c169 uint32_t sc_flags; /* flags */ member
476 if (sc->sc_flags & UKBD_FLAG_POLLING) in ukbd_get_key()
810 sc->sc_flags &= ~UKBD_FLAG_SET_LEDS; in ukbd_set_leds_callback()
989 sc->sc_flags &= ~UKBD_FLAG_HID_MASK; in ukbd_parse_hid()
1013 sc->sc_flags |= UKBD_FLAG_APPLE_FN; in ukbd_parse_hid()
1053 sc->sc_flags |= UKBD_FLAG_NUMLOCK; in ukbd_parse_hid()
1233 sc->sc_flags |= UKBD_FLAG_ATTACHED; in ukbd_attach()
1274 sc->sc_flags |= UKBD_FLAG_GONE; in ukbd_detach()
1964 sc->sc_flags |= UKBD_FLAG_POLLING; in ukbd_poll()
1967 sc->sc_flags &= ~UKBD_FLAG_POLLING; in ukbd_poll()
[all …]
/freebsd-14.2/sys/geom/eli/
H A Dg_eli_ctl.c237 sc->sc_flags |= G_ELI_FLAG_RW_DETACH; in g_eli_ctl_detach()
503 if (sc->sc_flags & G_ELI_FLAG_RO) { in g_eli_ctl_configure()
582 sc->sc_flags |= G_ELI_FLAG_BOOT; in g_eli_ctl_configure()
585 sc->sc_flags &= ~G_ELI_FLAG_BOOT; in g_eli_ctl_configure()
590 sc->sc_flags |= G_ELI_FLAG_NODELETE; in g_eli_ctl_configure()
598 sc->sc_flags |= G_ELI_FLAG_GELIBOOT; in g_eli_ctl_configure()
668 if (sc->sc_flags & G_ELI_FLAG_RO) { in g_eli_ctl_setkey()
775 if (sc->sc_flags & G_ELI_FLAG_RO) { in g_eli_ctl_delkey()
883 sc->sc_flags |= G_ELI_FLAG_SUSPEND; in g_eli_suspend_one()
1041 sc->sc_flags &= ~G_ELI_FLAG_SUSPEND; in g_eli_ctl_resume()
[all …]
H A Dg_eli.c557 if (sc->sc_flags & G_ELI_FLAG_AUTH) { in g_eli_newsession()
742 if (sc->sc_flags & G_ELI_FLAG_AUTH) { in g_eli_worker()
754 if (sc->sc_flags & G_ELI_FLAG_AUTH) in g_eli_worker()
851 if (sc->sc_flags & G_ELI_FLAG_RO) { in g_eli_access()
856 sc->sc_flags |= G_ELI_FLAG_WOPEN; in g_eli_access()
1163 if (sc->sc_flags & G_ELI_FLAG_AUTH) in g_eli_create()
1172 sc->sc_flags |= G_ELI_FLAG_DESTROY; in g_eli_create()
1225 sc->sc_flags |= G_ELI_FLAG_DESTROY; in g_eli_destroy()
1520 if (sc->sc_flags == 0) in g_eli_dumpconf()
1526 if (sc->sc_flags & (flag)) { \ in g_eli_dumpconf()
[all …]
H A Dg_eli_key_cache.c83 if ((sc->sc_flags & G_ELI_FLAG_ENC_IVKEY) != 0) in g_eli_key_fill()
186 if ((sc->sc_flags & G_ELI_FLAG_AUTH) == 0) in g_eli_key_init()
196 if ((sc->sc_flags & G_ELI_FLAG_SINGLE_KEY) != 0) { in g_eli_key_init()
203 if ((sc->sc_flags & G_ELI_FLAG_AUTH) != 0) { in g_eli_key_init()
238 if ((sc->sc_flags & G_ELI_FLAG_SINGLE_KEY) != 0) { in g_eli_key_destroy()
258 if ((sc->sc_flags & G_ELI_FLAG_SINGLE_KEY) != 0) { in g_eli_key_resize()
264 if ((sc->sc_flags & G_ELI_FLAG_AUTH) != 0) { in g_eli_key_resize()
308 if ((sc->sc_flags & G_ELI_FLAG_SINGLE_KEY) != 0) in g_eli_key_hold()
366 if ((sc->sc_flags & G_ELI_FLAG_SINGLE_KEY) != 0) in g_eli_key_drop()
/freebsd-14.2/sys/powerpc/powermac/
H A Dkiic.c108 u_int sc_flags; member
307 sc->sc_flags |= I2C_SELECTED; in kiic_intr()
309 if (sc->sc_flags & I2C_READING) { in kiic_intr()
343 sc->sc_flags &= ~I2C_SELECTED; in kiic_intr()
365 if (sc->sc_flags & I2C_BUSY) in kiic_transfer()
368 if (sc->sc_flags & I2C_BUSY) { in kiic_transfer()
373 sc->sc_flags = I2C_BUSY; in kiic_transfer()
394 sc->sc_flags = I2C_BUSY; in kiic_transfer()
400 sc->sc_flags |= I2C_READING; in kiic_transfer()
419 sc->sc_flags = 0; in kiic_transfer()
[all …]
/freebsd-14.2/sys/dev/hid/
H A Dhkbd.c165 uint32_t sc_flags; /* flags */ member
465 if (sc->sc_flags & HKBD_FLAG_POLLING) in hkbd_get_key()
775 sc->sc_flags &= ~HKBD_FLAG_HID_MASK; in hkbd_parse_hid()
799 sc->sc_flags |= HKBD_FLAG_APPLE_FN; in hkbd_parse_hid()
835 sc->sc_flags |= HKBD_FLAG_NUMLOCK; in hkbd_parse_hid()
845 sc->sc_flags |= HKBD_FLAG_CAPSLOCK; in hkbd_parse_hid()
985 if (sc->sc_flags & HKBD_FLAG_NUMLOCK) in hkbd_attach()
998 sc->sc_flags |= HKBD_FLAG_ATTACHED; in hkbd_attach()
1027 sc->sc_flags |= HKBD_FLAG_GONE; in hkbd_detach()
1744 sc->sc_flags |= HKBD_FLAG_POLLING; in hkbd_poll()
[all …]
/freebsd-14.2/sys/geom/raid3/
H A Dg_raid3_ctl.c58 if ((sc->sc_flags & G_RAID3_DEVICE_FLAG_DESTROY) != 0) in g_raid3_find_device()
199 sc->sc_flags &= ~G_RAID3_DEVICE_FLAG_NOAUTOSYNC; in g_raid3_ctl_configure()
204 sc->sc_flags |= G_RAID3_DEVICE_FLAG_NOAUTOSYNC; in g_raid3_ctl_configure()
208 sc->sc_flags &= ~G_RAID3_DEVICE_FLAG_NOFAILSYNC; in g_raid3_ctl_configure()
211 sc->sc_flags |= G_RAID3_DEVICE_FLAG_NOFAILSYNC; in g_raid3_ctl_configure()
215 if ((sc->sc_flags & G_RAID3_DEVICE_FLAG_VERIFY) != 0) { in g_raid3_ctl_configure()
217 sc->sc_flags &= ~G_RAID3_DEVICE_FLAG_VERIFY; in g_raid3_ctl_configure()
220 sc->sc_flags |= G_RAID3_DEVICE_FLAG_VERIFY; in g_raid3_ctl_configure()
224 sc->sc_flags &= ~G_RAID3_DEVICE_FLAG_ROUND_ROBIN; in g_raid3_ctl_configure()
227 sc->sc_flags |= G_RAID3_DEVICE_FLAG_ROUND_ROBIN; in g_raid3_ctl_configure()
[all …]
/freebsd-14.2/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()
242 if (sc->sc_flags & HVKBD_FLAG_POLLING) in hvkbd_check_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()
476 if (sc->sc_flags & CTLS) in hvkbd_read_char_locked()
486 if (sc->sc_flags & HVKBD_FLAG_COMPOSE) { in hvkbd_read_char_locked()
[all …]
/freebsd-14.2/sys/dev/usb/net/
H A Dif_ure.c455 sc->sc_flags &= ~URE_FLAG_LINK; in ure_miibus_statchg()
880 sc->sc_flags = URE_FLAG_8152; in ure_read_chipver()
884 sc->sc_flags = URE_FLAG_8152; in ure_read_chipver()
888 sc->sc_flags = URE_FLAG_8153; in ure_read_chipver()
892 sc->sc_flags = URE_FLAG_8153; in ure_read_chipver()
896 sc->sc_flags = URE_FLAG_8153; in ure_read_chipver()
900 sc->sc_flags = URE_FLAG_8153; in ure_read_chipver()
903 sc->sc_flags = URE_FLAG_8153B; in ure_read_chipver()
907 sc->sc_flags = URE_FLAG_8153B; in ure_read_chipver()
911 sc->sc_flags = URE_FLAG_8156; in ure_read_chipver()
[all …]
H A Dif_axe.c387 sc->sc_flags &= ~AXE_FLAG_LINK; in axe_miibus_statchg()
393 sc->sc_flags |= AXE_FLAG_LINK; in axe_miibus_statchg()
398 sc->sc_flags |= AXE_FLAG_LINK; in axe_miibus_statchg()
804 if (sc->sc_flags & AXE_FLAG_178) in axe_reset()
806 else if (sc->sc_flags & AXE_FLAG_772) in axe_reset()
836 if (sc->sc_flags & AXE_FLAG_178) { in axe_attach_post()
881 if (sc->sc_flags & AXE_FLAG_772B) { in axe_attach_post_sub()
1359 sc->sc_flags |= AXE_FLAG_STD_FRAME; in axe_init()
1366 if (sc->sc_flags & AXE_FLAG_772B) { in axe_init()
1376 if (sc->sc_flags & AXE_FLAG_772B) { in axe_init()
[all …]
/freebsd-14.2/sys/geom/
H A Dgeom_ccd.c161 int sc_flags; /* flags */ member
249 if (cs->sc_flags & CCDF_LINUX) { in ccdinit()
306 if (cs->sc_flags & CCDF_UNIFORM) { in ccdinit()
314 if (cs->sc_flags & CCDF_MIRROR) { in ccdinit()
798 sc->sc_flags |= CCDF_NO_OFFSET; in g_ccd_create()
800 sc->sc_flags |= CCDF_LINUX; in g_ccd_create()
803 sc->sc_flags |= CCDF_UNIFORM; in g_ccd_create()
805 sc->sc_flags |= CCDF_MIRROR; in g_ccd_create()
809 sc->sc_flags &= ~(CCDF_MIRROR); in g_ccd_create()
812 if ((sc->sc_flags & CCDF_MIRROR) && !(sc->sc_flags & CCDF_UNIFORM)) { in g_ccd_create()
[all …]
/freebsd-14.2/sys/arm/broadcom/bcm2835/
H A Dbcm2835_bsc.c439 sc->sc_flags |= BCM_I2C_READ; in bcm_bsc_fill_tx_fifo()
457 if ((sc->sc_flags & BCM_I2C_BUSY) == 0) { in bcm_bsc_intr()
471 sc->sc_flags |= BCM_I2C_DONE; in bcm_bsc_intr()
473 sc->sc_flags |= BCM_I2C_ERROR; in bcm_bsc_intr()
477 } else if (!(sc->sc_flags & BCM_I2C_READ)) { in bcm_bsc_intr()
504 while (sc->sc_flags & BCM_I2C_BUSY) in bcm_bsc_transfer()
508 sc->sc_flags = BCM_I2C_BUSY; in bcm_bsc_transfer()
590 sc->sc_flags |= BCM_I2C_READ; in bcm_bsc_transfer()
593 sc->sc_flags &= ~BCM_I2C_READ; in bcm_bsc_transfer()
626 sc->sc_flags &= ~BCM_I2C_READ; in bcm_bsc_transfer()
[all …]
/freebsd-14.2/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.c485 if (sc->sc_flags & LE_CARRIER) in lance_mediastatus()
507 if (!(sc->sc_flags & LE_PROMISC)) { in lance_ioctl()
508 sc->sc_flags |= LE_PROMISC; in lance_ioctl()
511 } else if (sc->sc_flags & LE_PROMISC) { in lance_ioctl()
512 sc->sc_flags &= ~LE_PROMISC; in lance_ioctl()
517 !(sc->sc_flags & LE_ALLMULTI)) { in lance_ioctl()
518 sc->sc_flags |= LE_ALLMULTI; in lance_ioctl()
521 (sc->sc_flags & LE_ALLMULTI)) { in lance_ioctl()
522 sc->sc_flags &= ~LE_ALLMULTI; in lance_ioctl()
543 sc->sc_flags |= LE_DEBUG; in lance_ioctl()
[all …]
/freebsd-14.2/sys/dev/usb/storage/
H A Durio.c104 uint8_t sc_flags; member
272 if (sc->sc_flags & URIO_FLAG_WRITE_STALL) { in urio_write_callback()
287 sc->sc_flags |= URIO_FLAG_WRITE_STALL; in urio_write_callback()
302 sc->sc_flags &= ~URIO_FLAG_WRITE_STALL; in urio_write_clear_stall_callback()
323 if (sc->sc_flags & URIO_FLAG_READ_STALL) { in urio_read_callback()
336 sc->sc_flags |= URIO_FLAG_READ_STALL; in urio_read_callback()
351 sc->sc_flags &= ~URIO_FLAG_READ_STALL; in urio_read_clear_stall_callback()
398 sc->sc_flags |= URIO_FLAG_READ_STALL; in urio_open()
409 sc->sc_flags |= URIO_FLAG_WRITE_STALL; in urio_open()
/freebsd-14.2/sys/netinet/
H A Dtcp_syncache.c775 sc->sc_flags |= SCF_UNREACH; in syncache_unreach()
941 if (sc->sc_flags & SCF_NOOPT) in syncache_socket()
959 if (sc->sc_flags & SCF_SACK) in syncache_socket()
1653 sc->sc_flags = 0; in syncache_add()
1717 sc->sc_flags |= SCF_SACK; in syncache_add()
1721 sc->sc_flags |= SCF_NOOPT; in syncache_add()
1932 if (sc->sc_flags & SCF_SACK) in syncache_respond()
2240 if (sc->sc_flags & SCF_SACK) in syncookie_generate()
2298 sc->sc_flags = 0; in syncookie_lookup()
2340 sc->sc_flags |= SCF_SACK; in syncookie_lookup()
[all …]
/freebsd-14.2/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-14.2/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-14.2/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