Home
last modified time | relevance | path

Searched refs:sc_ops (Results 1 – 25 of 54) sorted by relevance

123

/netbsd-src/sys/dev/hpc/apm/
H A Dapmdev.c308 error = (*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, APM_DEV_ALLDEVS, in apm_suspend()
336 error = (*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, APM_DEV_ALLDEVS, in apm_standby()
408 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
411 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
414 (*sc->sc_ops->aa_enable)(sc->sc_cookie, 1); in apm_event_handle()
431 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
434 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
437 (*sc->sc_ops->aa_enable)(sc->sc_cookie, 1); in apm_event_handle()
446 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
461 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
[all …]
/netbsd-src/sys/dev/apm/
H A Dapm.c298 error = (*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, APM_DEV_ALLDEVS, in apm_suspend()
325 error = (*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, APM_DEV_ALLDEVS, in apm_standby()
397 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
400 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
403 (*sc->sc_ops->aa_enable)(sc->sc_cookie, 1); in apm_event_handle()
420 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
423 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
426 (*sc->sc_ops->aa_enable)(sc->sc_cookie, 1); in apm_event_handle()
435 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
450 (void)(*sc->sc_ops->aa_set_powstate)(sc->sc_cookie, in apm_event_handle()
[all …]
/netbsd-src/sys/dev/ic/
H A Dawivar.h121 #define awi_read_1(sc, off) ((sc)->sc_chip.sc_ops->read_1)(&sc->sc_chip, off)
122 #define awi_read_2(sc, off) ((sc)->sc_chip.sc_ops->read_2)(&sc->sc_chip, off)
123 #define awi_read_4(sc, off) ((sc)->sc_chip.sc_ops->read_4)(&sc->sc_chip, off)
125 ((sc)->sc_chip.sc_ops->read_bytes)(&sc->sc_chip, off, ptr, len)
128 ((sc)->sc_chip.sc_ops->write_1)(&sc->sc_chip, off, val)
130 ((sc)->sc_chip.sc_ops->write_2)(&sc->sc_chip, off, val)
132 ((sc)->sc_chip.sc_ops->write_4)(&sc->sc_chip, off, val)
134 ((sc)->sc_chip.sc_ops->write_bytes)(&sc->sc_chip, off, ptr, len)
H A Drs5c313.c48 #define rtc_begin(sc) ((*sc->sc_ops->rs5c313_op_begin)(sc))
49 #define rtc_ce(sc, onoff) ((*sc->sc_ops->rs5c313_op_ce)(sc, onoff))
50 #define rtc_clk(sc, onoff) ((*sc->sc_ops->rs5c313_op_clk)(sc, onoff))
51 #define rtc_dir(sc, output) ((*sc->sc_ops->rs5c313_op_dir)(sc, output))
52 #define rtc_di(sc) ((*sc->sc_ops->rs5c313_op_read)(sc))
53 #define rtc_do(sc, bit) ((*sc->sc_ops->rs5c313_op_write)(sc, bit))
H A Darn9280.c89 sc->sc_ops.setup = ar9280_setup; in ar9280_attach()
90 sc->sc_ops.swap_rom = ar5416_swap_rom; in ar9280_attach()
91 sc->sc_ops.init_from_rom = ar9280_init_from_rom; in ar9280_attach()
92 sc->sc_ops.set_txpower = ar5416_set_txpower; in ar9280_attach()
93 sc->sc_ops.set_synth = ar9280_set_synth; in ar9280_attach()
94 sc->sc_ops.spur_mitigate = ar9280_spur_mitigate; in ar9280_attach()
95 sc->sc_ops.get_spur_chans = ar5416_get_spur_chans; in ar9280_attach()
96 sc->sc_ops.olpc_init = ar9280_olpc_init; in ar9280_attach()
97 sc->sc_ops.olpc_temp_compensation = ar9280_olpc_temp_compensation; in ar9280_attach()
477 spurchans = sc->sc_ops.get_spur_chans(sc, IEEE80211_IS_CHAN_2GHZ(c)); in ar9280_spur_mitigate()
H A Darn9287.c102 sc->sc_ops.setup = ar9287_setup; in ar9287_attach()
103 sc->sc_ops.swap_rom = ar9287_swap_rom; in ar9287_attach()
104 sc->sc_ops.init_from_rom = ar9287_init_from_rom; in ar9287_attach()
105 sc->sc_ops.set_txpower = ar9287_set_txpower; in ar9287_attach()
106 sc->sc_ops.set_synth = ar9280_set_synth; in ar9287_attach()
107 sc->sc_ops.spur_mitigate = ar9280_spur_mitigate; in ar9287_attach()
108 sc->sc_ops.get_spur_chans = ar9287_get_spur_chans; in ar9287_attach()
109 sc->sc_ops.olpc_init = ar9287_olpc_init; in ar9287_attach()
110 sc->sc_ops.olpc_temp_compensation = ar9287_olpc_temp_compensation; in ar9287_attach()
H A Darn5416.c102 sc->sc_ops.setup = ar5416_setup; in ar5416_attach()
103 sc->sc_ops.swap_rom = ar5416_swap_rom; in ar5416_attach()
104 sc->sc_ops.init_from_rom = ar5416_init_from_rom; in ar5416_attach()
105 sc->sc_ops.set_txpower = ar5416_set_txpower; in ar5416_attach()
106 sc->sc_ops.set_synth = ar5416_set_synth; in ar5416_attach()
107 sc->sc_ops.spur_mitigate = ar5416_spur_mitigate; in ar5416_attach()
108 sc->sc_ops.get_spur_chans = ar5416_get_spur_chans; in ar5416_attach()
684 spurchans = sc->sc_ops.get_spur_chans(sc, IEEE80211_IS_CHAN_2GHZ(c)); in ar5416_spur_mitigate()
H A Dathn.c200 error = sc->sc_ops.dma_alloc(sc); in athn_attach()
395 sc->sc_ops.dma_free(sc); in athn_detach()
473 sc->sc_ops.rx_enable(sc); in athn_rx_start()
559 if (!sc->sc_ops.intr_status(sc)) in athn_intr()
587 sc->sc_ops.intr(sc); in athn_softintr()
913 struct athn_ops *ops = &sc->sc_ops; in athn_set_chan()
1161 struct athn_ops *ops = &sc->sc_ops; in athn_led_init()
1171 struct athn_ops *ops = &sc->sc_ops; in athn_set_led()
1181 struct athn_ops *ops = &sc->sc_ops; in athn_btcoex_init()
1220 struct athn_ops *ops = &sc->sc_ops; in athn_btcoex_enable()
[all …]
H A Darn9380.c105 sc->sc_ops.setup = ar9380_setup; in ar9380_attach()
106 sc->sc_ops.get_rom_template = ar9380_get_rom_template; in ar9380_attach()
107 sc->sc_ops.swap_rom = ar9380_swap_rom; in ar9380_attach()
108 sc->sc_ops.init_from_rom = ar9380_init_from_rom; in ar9380_attach()
109 sc->sc_ops.set_txpower = ar9380_set_txpower; in ar9380_attach()
110 sc->sc_ops.set_synth = ar9380_set_synth; in ar9380_attach()
111 sc->sc_ops.spur_mitigate = ar9380_spur_mitigate; in ar9380_attach()
112 sc->sc_ops.get_paprd_masks = ar9380_get_paprd_masks; in ar9380_attach()
H A Darn9285.c105 sc->sc_ops.setup = ar9285_setup; in ar9285_attach()
106 sc->sc_ops.swap_rom = ar9285_swap_rom; in ar9285_attach()
107 sc->sc_ops.init_from_rom = ar9285_init_from_rom; in ar9285_attach()
108 sc->sc_ops.set_txpower = ar9285_set_txpower; in ar9285_attach()
109 sc->sc_ops.set_synth = ar9280_set_synth; in ar9285_attach()
110 sc->sc_ops.spur_mitigate = ar9280_spur_mitigate; in ar9285_attach()
111 sc->sc_ops.get_spur_chans = ar9285_get_spur_chans; in ar9285_attach()
H A Drs5c313var.h43 struct rs5c313_ops *sc_ops; member
/netbsd-src/sys/arch/emips/ebus/
H A Dflash_ebus.c221 const struct flash_ops *sc_ops; member
532 sc->sc_ops->write_uint8(sc,sc->sc_page0,CMD_READ_ID); in ProductIdEnter()
539 sc->sc_ops->write_uint8(sc,sc->sc_page0,CMD_READ_ARRAY); in ProductIdExit()
548 sc->sc_ops->write_uint8(sc,sc->sc_page0,CMD_READ_STATUS); in ReadStatusRegister()
549 sc->sc_ops->read_uint8(sc,sc->sc_page0,&Status); in ReadStatusRegister()
550 sc->sc_ops->write_uint8(sc,sc->sc_page0,CMD_READ_ARRAY); in ReadStatusRegister()
558 sc->sc_ops->write_uint8(sc,sc->sc_page0,CMD_CLEAR_STATUS); in ClearStatusRegister()
640 sc->sc_ops->read_uint16(sc,Offset,&Data16); in single_program_word()
651 sc->sc_ops->write_uint8(sc,sc->sc_page0,CMD_WRITE_WORD); in single_program_word()
652 sc->sc_ops->write_uint16(sc,Offset,Value); in single_program_word()
[all …]
/netbsd-src/sys/arch/hp300/dev/
H A Dhpib.c141 sc->sc_ops = ha->ha_ops; in hpibbusattach()
242 (*sc->sc_ops->hpib_reset)(sc); in hpibreset()
298 return (*sc->sc_ops->hpib_send)(sc, slave, sec, addr, cnt); in hpibsend()
306 return (*sc->sc_ops->hpib_recv)(sc, slave, sec, addr, cnt); in hpibrecv()
314 return (*sc->sc_ops->hpib_ppoll)(sc) & (0x80 >> slave); in hpibpptest()
331 (*sc->sc_ops->hpib_ppwatch)(sc); in hpibawait()
341 ppoll = sc->sc_ops->hpib_ppoll; in hpibswait()
381 (*sc->sc_ops->hpib_go)(sc, slave, sec, vbuf, count, rw, timo); in hpibgo()
389 (*sc->sc_ops->hpib_done)(sc); in hpibdone()
397 return (sc->sc_ops->hpib_intr)(arg); in hpibintr()
/netbsd-src/sys/dev/adb/
H A Dadb_bus.c55 struct adb_bus_accessops *sc_ops; member
88 sc->sc_ops = ops; in nadb_attach()
89 sc->sc_ops->set_handler(sc->sc_ops->cookie, nadb_handler, sc); in nadb_attach()
163 aaa.ops = sc->sc_ops; in nadb_init()
181 sc->sc_ops->autopoll(sc->sc_ops->cookie, devmask); in nadb_init()
251 sc->sc_ops->send(sc->sc_ops->cookie, 0, command, len, data); in nadb_send_sync()
H A Dadb_kbd.c77 struct adb_bus_accessops *sc_ops; member
201 sc->sc_ops = aaa->ops; in adbkbd_attach()
257 sc->sc_ops->send(sc->sc_ops->cookie, sc->sc_poll, cmd, 0, NULL); in adbkbd_attach()
356 sc->sc_ops->send(sc->sc_ops->cookie, sc->sc_poll, cmd, 2, buffer); in adbkbd_attach()
361 sc->sc_ops->send(sc->sc_ops->cookie, sc->sc_poll, cmd, 0, NULL); in adbkbd_attach()
370 sc->sc_ops->send(sc->sc_ops->cookie, sc->sc_poll, cmd, 0, NULL); in adbkbd_attach()
494 sc->sc_ops->poll(sc->sc_ops->cookie); in adbkbd_wait()
645 sc->sc_ops->send(sc->sc_ops->cookie, sc->sc_poll, cmd, 2, in adbkbd_set_leds()
660 sc->sc_ops->send(sc->sc_ops->cookie, sc->sc_poll, cmd, 0, NULL); in adbkbd_initleds()
727 sc->sc_ops->poll(sc->sc_ops->cookie); in adbkbd_cngetc()
H A Dadb_ktm.c61 struct adb_bus_accessops *sc_ops; member
124 sc->sc_ops = aaa->ops; in ktm_attach()
383 sc->sc_ops->poll(sc->sc_ops->cookie); in ktm_wait()
404 sc->sc_ops->send(sc->sc_ops->cookie, sc->sc_poll, cmd, len, msg); in ktm_send_sync()
H A Dadb_ms.c70 struct adb_bus_accessops *sc_ops; member
161 sc->sc_ops = aaa->ops; in adbms_attach()
840 sc->sc_ops->poll(sc->sc_ops->cookie); in adbms_wait()
861 sc->sc_ops->send(sc->sc_ops->cookie, sc->sc_poll, cmd, len, msg); in adbms_send_sync()
H A Dadb_bt.c70 struct adb_bus_accessops *sc_ops; member
102 sc->sc_ops = aaa->ops; in adbbt_attach()
/netbsd-src/sys/arch/hpcmips/vr/
H A Dflashvar.h52 } *sc_ops; member
64 #define flash_block_erase(sc, off) (sc)->sc_ops->fo_erase((sc), (off))
65 #define flash_block_write(sc, off) (sc)->sc_ops->fo_write((sc), (off))
/netbsd-src/sys/dev/wsfb/
H A Dgenfb.c79 struct genfb_ops sc_ops; member
342 memcpy(&scp->sc_ops, ops, sizeof(struct genfb_ops)); in genfb_attach()
504 if (scp->sc_ops.genfb_ioctl) { in genfb_ioctl()
505 error = scp->sc_ops.genfb_ioctl(sc, vs, in genfb_ioctl()
584 if (scp->sc_ops.genfb_ioctl) in genfb_ioctl()
585 ret = scp->sc_ops.genfb_ioctl(sc, vs, cmd, data, flag, l); in genfb_ioctl()
614 if (scp->sc_ops.genfb_mmap) in genfb_mmap()
615 return scp->sc_ops.genfb_mmap(sc, vs, offset, prot); in genfb_mmap()
963 if (sc && sc->sc_private && sc->sc_private->sc_ops.genfb_borrow) in genfb_borrow()
964 return sc->sc_private->sc_ops.genfb_borrow(sc, addr, hdlp); in genfb_borrow()
[all …]
/netbsd-src/sys/dev/pci/
H A Dvirtio.c77 sc->sc_ops->set_status(sc, status); in virtio_set_status()
110 n = sc->sc_ops->read_queue_size(sc, vq->vq_index); in virtio_reinit_start()
119 sc->sc_ops->setup_queue(sc, vq->vq_index, in virtio_reinit_start()
123 r = sc->sc_ops->setup_interrupts(sc, 1); in virtio_reinit_start()
150 sc->sc_ops->neg_features(sc, guest_features); in virtio_negotiate_features()
773 vq->vq_num = sc->sc_ops->read_queue_size(sc, index); in virtio_init_vq()
896 sc->sc_ops->setup_queue(sc, vq->vq_index, 0); in virtio_alloc_vq()
932 sc->sc_ops->setup_queue(sc, vq->vq_index, 0); in virtio_free_vq()
1252 sc->sc_ops->kick(sc, vq->vq_index); in virtio_enqueue_commit()
1257 sc->sc_ops in virtio_enqueue_commit()
[all...]
H A Dif_athn_pci.c144 sc->sc_ops.read = athn_pci_read; in athn_pci_attach()
145 sc->sc_ops.write = athn_pci_write; in athn_pci_attach()
146 sc->sc_ops.write_barrier = athn_pci_write_barrier; in athn_pci_attach()
/netbsd-src/sys/arch/usermode/dev/
H A Dvncfb.c89 struct vncfb_fbops sc_ops; member
291 struct vncfb_fbops *ops = &sc->sc_ops; in vncfb_init_screen()
331 struct vncfb_fbops *ops = &sc->sc_ops; in vncfb_putchar()
350 struct vncfb_fbops *ops = &sc->sc_ops; in vncfb_copycols()
375 struct vncfb_fbops *ops = &sc->sc_ops; in vncfb_erasecols()
395 struct vncfb_fbops *ops = &sc->sc_ops; in vncfb_copyrows()
424 struct vncfb_fbops *ops = &sc->sc_ops; in vncfb_eraserows()
444 struct vncfb_fbops *ops = &sc->sc_ops; in vncfb_cursor()
/netbsd-src/sys/arch/sandpoint/sandpoint/
H A Dsatmgr.c80 struct satops *sc_ops; member
229 sc->sc_ops = ops; in satmgr_attach()
347 if (sc->sc_ops->reboot != NULL) in satmgr_reboot()
348 (*sc->sc_ops->reboot)(sc); /* REBOOT */ in satmgr_reboot()
352 if (sc->sc_ops->pwroff != NULL) in satmgr_reboot()
353 (*sc->sc_ops->pwroff)(sc); /* HALT or POWERDOWN */ in satmgr_reboot()
734 (*sc->sc_ops->dispatch)(sc, *ptr); in swintr()
/netbsd-src/sys/dev/cardbus/
H A Dif_athn_cardbus.c151 sc->sc_ops.read = athn_cardbus_read; in athn_cardbus_attach()
152 sc->sc_ops.write = athn_cardbus_write; in athn_cardbus_attach()
153 sc->sc_ops.write_barrier = athn_cardbus_write_barrier; in athn_cardbus_attach()

123