Home
last modified time | relevance | path

Searched defs:sc (Results 1 – 25 of 1745) sorted by relevance

12345678910>>...70

/openbsd/src/sys/dev/ic/
Dathn.c181 athn_config_ht(struct athn_softc *sc) in athn_config_ht()
228 athn_attach(struct athn_softc *sc) in athn_attach()
398 athn_detach(struct athn_softc *sc) in athn_detach()
426 athn_radiotap_attach(struct athn_softc *sc) in athn_radiotap_attach()
442 athn_get_chanlist(struct athn_softc *sc) in athn_get_chanlist()
475 athn_rx_start(struct athn_softc *sc) in athn_rx_start()
529 athn_set_rxfilter(struct athn_softc *sc, uint32_t rfilt) in athn_set_rxfilter()
552 struct athn_softc *sc = xsc; in athn_intr() local
563 athn_get_chipid(struct athn_softc *sc) in athn_get_chipid()
582 athn_get_mac_name(struct athn_softc *sc) in athn_get_mac_name()
[all …]
Daac.c221 aac_attach(struct aac_softc *sc) in aac_attach()
292 struct aac_softc *sc = arg; in aac_create_thread() local
309 aac_startup(struct aac_softc *sc) in aac_startup()
395 struct aac_softc *sc = arg; in aac_intr() local
462 aac_startio(struct aac_softc *sc) in aac_startio()
518 struct aac_softc *sc = cm->cm_sc; in aac_map_command() local
549 struct aac_softc *sc = arg; in aac_command_thread() local
650 struct aac_softc *sc = (struct aac_softc *)context; in aac_complete() local
694 aac_bio_command(struct aac_softc *sc, struct aac_command **cmp) in aac_bio_command()
844 struct aac_softc *sc = cm->cm_sc; in aac_wait_command() local
[all …]
Dmfi.c194 struct mfi_softc *sc = cookie; in mfi_get_ccb() local
216 struct mfi_softc *sc = cookie; in mfi_put_ccb() local
248 mfi_init_ccb(struct mfi_softc *sc) in mfi_init_ccb()
309 mfi_read(struct mfi_softc *sc, bus_size_t r) in mfi_read()
322 mfi_write(struct mfi_softc *sc, bus_size_t r, uint32_t v) in mfi_write()
332 mfi_allocmem(struct mfi_softc *sc, size_t size) in mfi_allocmem()
380 mfi_freemem(struct mfi_softc *sc, struct mfi_mem *mm) in mfi_freemem()
392 mfi_transition_firmware(struct mfi_softc *sc) in mfi_transition_firmware()
452 mfi_initialize_firmware(struct mfi_softc *sc) in mfi_initialize_firmware()
498 mfi_empty_done(struct mfi_softc *sc, struct mfi_ccb *ccb) in mfi_empty_done()
[all …]
Dqlw.c127 #define qlw_dump_iocb(sc, h, fl) do { /* nothing */ } while (0) argument
128 #define qlw_dump_iocb_segs(sc, h, fl) do { /* nothing */ } while (0) argument
132 qlw_xs_bus(struct qlw_softc *sc, struct scsi_xfer *xs) in qlw_xs_bus()
148 qlw_swap16(struct qlw_softc *sc, u_int16_t value) in qlw_swap16()
157 qlw_swap32(struct qlw_softc *sc, u_int32_t value) in qlw_swap32()
166 qlw_queue_read(struct qlw_softc *sc, bus_size_t offset) in qlw_queue_read()
172 qlw_queue_write(struct qlw_softc *sc, bus_size_t offset, u_int16_t value) in qlw_queue_write()
182 qlw_attach(struct qlw_softc *sc) in qlw_attach()
434 qlw_detach(struct qlw_softc *sc, int flags) in qlw_detach()
440 qlw_config_bus(struct qlw_softc *sc, int bus) in qlw_config_bus()
[all …]
Ddwqe.c98 dwqe_have_tx_csum_offload(struct dwqe_softc *sc) in dwqe_have_tx_csum_offload()
104 dwqe_have_tx_vlan_offload(struct dwqe_softc *sc) in dwqe_have_tx_vlan_offload()
114 dwqe_set_vlan_rx_mode(struct dwqe_softc *sc) in dwqe_set_vlan_rx_mode()
127 dwqe_set_vlan_tx_mode(struct dwqe_softc *sc) in dwqe_set_vlan_tx_mode()
151 dwqe_attach(struct dwqe_softc *sc) in dwqe_attach()
292 dwqe_mii_attach(struct dwqe_softc *sc) in dwqe_mii_attach()
324 dwqe_read(struct dwqe_softc *sc, bus_addr_t addr) in dwqe_read()
330 dwqe_write(struct dwqe_softc *sc, bus_addr_t addr, uint32_t data) in dwqe_write()
336 dwqe_lladdr_read(struct dwqe_softc *sc, uint8_t *lladdr) in dwqe_lladdr_read()
356 dwqe_lladdr_write(struct dwqe_softc *sc) in dwqe_lladdr_write()
[all …]
Dqla.c177 qla_classify_port(struct qla_softc *sc, u_int32_t location, in qla_classify_port()
225 qla_get_loop_id(struct qla_softc *sc, int start) in qla_get_loop_id()
249 qla_get_port_db(struct qla_softc *sc, u_int16_t loopid, struct qla_dmamem *mem) in qla_get_port_db()
274 qla_add_loop_port(struct qla_softc *sc, struct qla_fc_port *port) in qla_add_loop_port()
327 qla_add_fabric_port(struct qla_softc *sc, struct qla_fc_port *port) in qla_add_fabric_port()
364 qla_add_logged_in_port(struct qla_softc *sc, int loopid, u_int32_t portid) in qla_add_logged_in_port()
425 qla_attach(struct qla_softc *sc) in qla_attach()
711 qla_detach(struct qla_softc *sc, int flags) in qla_detach()
717 qla_handle_resp(struct qla_softc *sc, u_int16_t id) in qla_handle_resp()
854 qla_handle_intr(struct qla_softc *sc, u_int16_t isr, u_int16_t info) in qla_handle_intr()
[all …]
Ddc.c195 #define DC_SETBIT(sc, reg, x) \ argument
198 #define DC_CLRBIT(sc, reg, x) \ argument
205 dc_delay(struct dc_softc *sc) in dc_delay()
214 dc_eeprom_width(struct dc_softc *sc) in dc_eeprom_width()
278 dc_eeprom_idle(struct dc_softc *sc) in dc_eeprom_idle()
309 dc_eeprom_putbyte(struct dc_softc *sc, int addr) in dc_eeprom_putbyte()
350 dc_eeprom_getword_pnic(struct dc_softc *sc, int addr, u_int16_t *dest) in dc_eeprom_getword_pnic()
373 dc_eeprom_getword_xircom(struct dc_softc *sc, int addr, u_int16_t *dest) in dc_eeprom_getword_xircom()
391 dc_eeprom_getword(struct dc_softc *sc, int addr, u_int16_t *dest) in dc_eeprom_getword()
437 dc_read_eeprom(struct dc_softc *sc, caddr_t dest, int off, int cnt, in dc_read_eeprom()
[all …]
Dti.c164 ti_eeprom_putbyte(struct ti_softc *sc, int byte) in ti_eeprom_putbyte()
208 ti_eeprom_getbyte(struct ti_softc *sc, int addr, u_int8_t *dest) in ti_eeprom_getbyte()
280 ti_read_eeprom(struct ti_softc *sc, caddr_t dest, int off, int cnt) in ti_read_eeprom()
300 ti_mem_read(struct ti_softc *sc, u_int32_t addr, u_int32_t len, void *buf) in ti_mem_read()
329 ti_mem_write(struct ti_softc *sc, u_int32_t addr, u_int32_t len, in ti_mem_write()
359 ti_mem_set(struct ti_softc *sc, u_int32_t addr, u_int32_t len) in ti_mem_set()
385 ti_loadfw(struct ti_softc *sc) in ti_loadfw()
444 ti_cmd(struct ti_softc *sc, struct ti_cmd_desc *cmd) in ti_cmd()
460 ti_cmd_ext(struct ti_softc *sc, struct ti_cmd_desc *cmd, caddr_t arg, in ti_cmd_ext()
482 ti_handle_events(struct ti_softc *sc) in ti_handle_events()
[all …]
Datw.c139 #define DPRINTF(sc, x) if ((sc)->sc_ic.ic_if.if_flags & IFF_DEBUG) printf x argument
140 #define DPRINTF2(sc, x) if ((sc)->sc_ic.ic_if.if_flags & IFF_DEBUG) ATW_DPRINTF2(x) argument
141 #define DPRINTF3(sc, x) if ((sc)->sc_ic.ic_if.if_flags & IFF_DEBUG) ATW_DPRINTF3(x) argument
160 #define DPRINTF(sc, x) /* nothing */ argument
161 #define DPRINTF2(sc, x) /* nothing */ argument
162 #define DPRINTF3(sc, x) /* nothing */ argument
318 atw_enable(struct atw_softc *sc) in atw_enable()
338 atw_disable(struct atw_softc *sc) in atw_disable()
349 atw_read_srom(struct atw_softc *sc) in atw_read_srom()
438 atw_print_regs(struct atw_softc *sc, const char *where) in atw_print_regs()
[all …]
Dxl.c189 struct xl_softc *sc = (struct xl_softc *)self; in xl_activate() local
219 xl_wait(struct xl_softc *sc) in xl_wait()
253 xl_mii_sync(struct xl_softc *sc) in xl_mii_sync()
274 xl_mii_send(struct xl_softc *sc, u_int32_t bits, int cnt) in xl_mii_send()
296 xl_mii_readreg(struct xl_softc *sc, struct xl_mii_frame *frame) in xl_mii_readreg()
381 xl_mii_writereg(struct xl_softc *sc, struct xl_mii_frame *frame) in xl_mii_writereg()
431 struct xl_softc *sc = (struct xl_softc *)self; in xl_miibus_readreg() local
449 struct xl_softc *sc = (struct xl_softc *)self; in xl_miibus_writereg() local
467 struct xl_softc *sc = (struct xl_softc *)self; in xl_miibus_statchg() local
485 xl_eeprom_wait(struct xl_softc *sc) in xl_eeprom_wait()
[all …]
Dbwfm.c61 #define DEVNAME(sc) ((sc)->sc_dev.dv_xname) argument
184 bwfm_attach(struct bwfm_softc *sc) in bwfm_attach()
235 struct bwfm_softc *sc = (struct bwfm_softc *)self; in bwfm_attachhook() local
246 bwfm_preinit(struct bwfm_softc *sc) in bwfm_preinit()
347 bwfm_cleanup(struct bwfm_softc *sc) in bwfm_cleanup()
354 bwfm_detach(struct bwfm_softc *sc, int flags) in bwfm_detach()
370 bwfm_activate(struct bwfm_softc *sc, int act) in bwfm_activate()
394 struct bwfm_softc *sc = ifp->if_softc; in bwfm_start() local
437 struct bwfm_softc *sc = ifp->if_softc; in bwfm_init() local
580 struct bwfm_softc *sc = ifp->if_softc; in bwfm_stop() local
[all …]
/openbsd/src/sys/dev/pci/
Denvy.c53 #define DEVNAME(sc) ((sc)->dev.dv_xname) argument
347 delta_init(struct envy_softc *sc) in delta_init()
367 delta_codec_write(struct envy_softc *sc, int dev, int addr, int data) in delta_codec_write()
430 ap192k_init(struct envy_softc *sc) in ap192k_init()
453 ap192k_codec_write(struct envy_softc *sc, int dev, int addr, int data) in ap192k_codec_write()
482 ap192k_set_rate(struct envy_softc *sc, int rate) in ap192k_set_rate()
509 ewx_codec_write(struct envy_softc *sc, int dev, int addr, int data) in ewx_codec_write()
556 revo51_init(struct envy_softc *sc) in revo51_init()
586 revo51_codec_write(struct envy_softc *sc, int dev, int addr, int data) in revo51_codec_write()
647 envy_ac97_init(struct envy_softc *sc) in envy_ac97_init()
[all …]
Dif_alc.c167 struct alc_softc *sc = (struct alc_softc *)dev; in alc_miibus_readreg() local
184 struct alc_softc *sc = (struct alc_softc *)dev; in alc_mii_readreg_813x() local
219 struct alc_softc *sc = (struct alc_softc *)dev; in alc_mii_readreg_816x() local
248 struct alc_softc *sc = (struct alc_softc *)dev; in alc_miibus_writereg() local
262 struct alc_softc *sc = (struct alc_softc *)dev; in alc_mii_writereg_813x() local
284 struct alc_softc *sc = (struct alc_softc *)dev; in alc_mii_writereg_816x() local
310 struct alc_softc *sc = (struct alc_softc *)dev; in alc_miibus_statchg() local
351 alc_miidbg_readreg(struct alc_softc *sc, int reg) in alc_miidbg_readreg()
361 alc_miidbg_writereg(struct alc_softc *sc, int reg, int val) in alc_miidbg_writereg()
370 alc_miiext_readreg(struct alc_softc *sc, int devaddr, int reg) in alc_miiext_readreg()
[all …]
Dif_de.c106 #define PCI_GETBUSDEVINFO(sc) do { \ argument
221 tulip_softc_t * const sc = arg; in tulip_timeout_callback() local
237 tulip_timeout(tulip_softc_t * const sc) in tulip_timeout()
246 tulip_txprobe(tulip_softc_t * const sc) in tulip_txprobe()
287 tulip_media_set(tulip_softc_t * const sc, tulip_media_t media) in tulip_media_set()
403 tulip_linkup(tulip_softc_t * const sc, tulip_media_t media) in tulip_linkup()
441 tulip_media_print(tulip_softc_t * const sc) in tulip_media_print()
461 tulip_media_link_monitor(tulip_softc_t * const sc) in tulip_media_link_monitor()
567 tulip_media_poll(tulip_softc_t * const sc, tulip_mediapoll_event_t event) in tulip_media_poll()
816 tulip_media_select(tulip_softc_t * const sc) in tulip_media_select()
[all …]
Dif_tl.c292 tl_dio_read8(struct tl_softc *sc, int reg) in tl_dio_read8()
299 tl_dio_read16(struct tl_softc *sc, int reg) in tl_dio_read16()
306 tl_dio_read32(struct tl_softc *sc, int reg) in tl_dio_read32()
313 tl_dio_write8(struct tl_softc *sc, int reg, int val) in tl_dio_write8()
320 tl_dio_write16(struct tl_softc *sc, int reg, int val) in tl_dio_write16()
327 tl_dio_write32(struct tl_softc *sc, int reg, int val) in tl_dio_write32()
334 tl_dio_setbit(struct tl_softc *sc, int reg, int bit) in tl_dio_setbit()
345 tl_dio_clrbit(struct tl_softc *sc, int reg, int bit) in tl_dio_clrbit()
356 tl_dio_setbit16(struct tl_softc *sc, int reg, int bit) in tl_dio_setbit16()
367 tl_dio_clrbit16(struct tl_softc *sc, int reg, int bit) in tl_dio_clrbit16()
[all …]
Dif_ixgb.c169 struct ixgb_softc *sc; in ixgb_attach() local
272 struct ixgb_softc *sc = ifp->if_softc; in ixgb_start() local
334 struct ixgb_softc *sc = ifp->if_softc; in ixgb_ioctl() local
405 struct ixgb_softc *sc = ifp->if_softc; in ixgb_watchdog() local
436 struct ixgb_softc *sc = arg; in ixgb_init() local
514 struct ixgb_softc *sc = arg; in ixgb_intr() local
569 struct ixgb_softc *sc = ifp->if_softc; in ixgb_media_status() local
605 struct ixgb_softc *sc = ifp->if_softc; in ixgb_media_change() local
624 ixgb_encap(struct ixgb_softc *sc, struct mbuf *m_head) in ixgb_encap()
713 ixgb_set_promisc(struct ixgb_softc *sc) in ixgb_set_promisc()
[all …]
Dif_rge.c167 struct rge_softc *sc = (struct rge_softc *)self; in rge_attach() local
325 struct rge_softc *sc = (struct rge_softc *)self; in rge_activate() local
341 struct rge_softc *sc = arg; in rge_intr() local
410 rge_tx_list_sync(struct rge_softc *sc, struct rge_queues *q, in rge_tx_list_sync()
421 struct rge_softc *sc = q->q_sc; in rge_encap() local
535 struct rge_softc *sc = ifp->if_softc; in rge_ioctl() local
584 struct rge_softc *sc = ifp->if_softc; in rge_start() local
641 struct rge_softc *sc = ifp->if_softc; in rge_watchdog() local
652 struct rge_softc *sc = ifp->if_softc; in rge_init() local
859 struct rge_softc *sc = ifp->if_softc; in rge_stop() local
[all …]
Dif_iwn.c331 struct iwn_softc *sc = (struct iwn_softc *)self; in iwn_attach() local
584 iwn4965_attach(struct iwn_softc *sc, pci_product_id_t pid) in iwn4965_attach()
624 iwn5000_attach(struct iwn_softc *sc, pci_product_id_t pid) in iwn5000_attach()
730 iwn_radiotap_attach(struct iwn_softc *sc) in iwn_radiotap_attach()
748 struct iwn_softc *sc = (struct iwn_softc *)self; in iwn_detach() local
780 struct iwn_softc *sc = (struct iwn_softc *)self; in iwn_activate() local
797 iwn_wakeup(struct iwn_softc *sc) in iwn_wakeup()
811 struct iwn_softc *sc = arg1; in iwn_init_task() local
826 iwn_nic_lock(struct iwn_softc *sc) in iwn_nic_lock()
845 iwn_nic_unlock(struct iwn_softc *sc) in iwn_nic_unlock()
[all …]
Dif_ste.c112 #define STE_SETBIT4(sc, reg, x) \ argument
115 #define STE_CLRBIT4(sc, reg, x) \ argument
118 #define STE_SETBIT2(sc, reg, x) \ argument
121 #define STE_CLRBIT2(sc, reg, x) \ argument
124 #define STE_SETBIT1(sc, reg, x) \ argument
127 #define STE_CLRBIT1(sc, reg, x) \ argument
152 ste_mii_sync(struct ste_softc *sc) in ste_mii_sync()
170 ste_mii_send(struct ste_softc *sc, u_int32_t bits, int cnt) in ste_mii_send()
193 ste_mii_readreg(struct ste_softc *sc, struct ste_mii_frame *frame) in ste_mii_readreg()
283 ste_mii_writereg(struct ste_softc *sc, struct ste_mii_frame *frame) in ste_mii_writereg()
[all …]
/openbsd/src/sys/dev/usb/
Dutvfu.c96 utvfu_set_regs(struct utvfu_softc *sc, const uint16_t regs[][2], int size) in utvfu_set_regs()
135 utvfu_configure_for_norm(struct utvfu_softc *sc, v4l2_std_id norm) in utvfu_configure_for_norm()
158 utvfu_select_input(struct utvfu_softc *sc, int input) in utvfu_select_input()
196 utvfu_select_norm(struct utvfu_softc *sc, v4l2_std_id norm) in utvfu_select_norm()
248 utvfu_setup_capture(struct utvfu_softc *sc) in utvfu_setup_capture()
387 utvfu_image_chunk(struct utvfu_softc *sc, u_char *chunk) in utvfu_image_chunk()
451 utvfu_start_capture(struct utvfu_softc *sc) in utvfu_start_capture()
483 struct utvfu_softc *sc = v; in utvfu_querycap() local
499 struct utvfu_softc *sc = v; in utvfu_enum_input() local
534 struct utvfu_softc *sc = v; in utvfu_enum_fsizes() local
[all …]
Dif_urtw.c96 #define urtw_read8_m(sc, val, data) do { \ argument
101 #define urtw_read8_idx_m(sc, val, data, idx) do { \ argument
106 #define urtw_write8_m(sc, val, data) do { \ argument
111 #define urtw_write8_idx_m(sc, val, data, idx) do { \ argument
116 #define urtw_read16_m(sc, val, data) do { \ argument
121 #define urtw_read16_idx_m(sc, val, data, idx) do { \ argument
126 #define urtw_write16_m(sc, val, data) do { \ argument
131 #define urtw_write16_idx_m(sc, val, data, idx) do { \ argument
136 #define urtw_read32_m(sc, val, data) do { \ argument
141 #define urtw_read32_idx_m(sc, val, data, idx) do { \ argument
[all …]
Dif_ure.c203 #define URE_SETBIT_1(sc, reg, index, x) \ argument
205 #define URE_SETBIT_2(sc, reg, index, x) \ argument
207 #define URE_SETBIT_4(sc, reg, index, x) \ argument
210 #define URE_CLRBIT_1(sc, reg, index, x) \ argument
212 #define URE_CLRBIT_2(sc, reg, index, x) \ argument
214 #define URE_CLRBIT_4(sc, reg, index, x) \ argument
218 ure_ctl(struct ure_softc *sc, uint8_t rw, uint16_t val, uint16_t index, in ure_ctl()
248 ure_read_mem(struct ure_softc *sc, uint16_t addr, uint16_t index, in ure_read_mem()
255 ure_write_mem(struct ure_softc *sc, uint16_t addr, uint16_t index, in ure_write_mem()
262 ure_read_1(struct ure_softc *sc, uint16_t reg, uint16_t index) in ure_read_1()
[all …]
/openbsd/src/sys/dev/isa/
Dess.c239 ess_printsc(struct ess_softc *sc) in ess_printsc()
264 ess_dump_mixer(struct ess_softc *sc) in ess_dump_mixer()
314 ess_config_addr(struct ess_softc *sc) in ess_config_addr()
407 ess_config_irq(struct ess_softc *sc) in ess_config_irq()
496 ess_config_drq(struct ess_softc *sc) in ess_config_drq()
559 ess_setup(struct ess_softc *sc) in ess_setup()
576 ess_identify(struct ess_softc *sc) in ess_identify()
735 ess_setup_sc(struct ess_softc *sc, int doinit) in ess_setup_sc()
756 essmatch(struct ess_softc *sc) in essmatch()
838 essattach(struct ess_softc *sc) in essattach()
[all …]
/openbsd/src/sys/arch/octeon/dev/
Dcn30xxgmx.c52 #define _GMX_RD8(sc, off) \ argument
54 #define _GMX_WR8(sc, off, v) \ argument
56 #define _GMX_PORT_RD8(sc, off) \ argument
58 #define _GMX_PORT_WR8(sc, off, v) \ argument
61 #define AGL_GMX_RD8(sc, reg) \ argument
64 #define AGL_GMX_WR8(sc, reg, val) \ argument
67 #define AGL_GMX_PORT_RD8(sc, reg) \ argument
70 #define AGL_GMX_PORT_WR8(sc, reg, val) \ argument
74 #define PCS_READ_8(sc, reg) \ argument
77 #define PCS_WRITE_8(sc, reg, val) \ argument
[all …]
/openbsd/src/sys/dev/sdmmc/
Dsdmmc.c103 struct sdmmc_softc *sc = (struct sdmmc_softc *)self; in sdmmc_attach() local
175 struct sdmmc_softc *sc = (struct sdmmc_softc *)self; in sdmmc_detach() local
192 struct sdmmc_softc *sc = (struct sdmmc_softc *)self; in sdmmc_activate() local
216 sdmmc_holds_root_device(struct sdmmc_softc *sc) in sdmmc_holds_root_device()
228 struct sdmmc_softc *sc = arg; in sdmmc_create_thread() local
239 struct sdmmc_softc *sc = arg; in sdmmc_task_thread() local
280 sdmmc_add_task(struct sdmmc_softc *sc, struct sdmmc_task *task) in sdmmc_add_task()
295 struct sdmmc_softc *sc = task->sc; in sdmmc_del_task() local
311 struct sdmmc_softc *sc = (struct sdmmc_softc *)self; in sdmmc_needs_discover() local
320 struct sdmmc_softc *sc = arg; in sdmmc_discover_task() local
[all …]

12345678910>>...70