Home
last modified time | relevance | path

Searched refs:bus_write_1 (Results 1 – 25 of 103) sorted by relevance

12345

/freebsd-12.1/sys/dev/mse/
H A Dmse_isa.c292 bus_write_1(port, MSE_PORTD, MSE_SETUP); in mse_enablelogi()
303 bus_write_1(port, MSE_PORTC, MSE_DISINTR); in mse_disablelogi()
326 bus_write_1(port, MSE_PORTC, MSE_INTREN); in mse_getlogi()
355 bus_write_1(port, MSE_PORTA, MSE_INPORT_MODE); in mse_enableati()
366 bus_write_1(port, MSE_PORTA, MSE_INPORT_MODE); in mse_disableati()
367 bus_write_1(port, MSE_PORTB, 0); in mse_disableati()
378 bus_write_1(port, MSE_PORTA, MSE_INPORT_MODE); in mse_getati()
379 bus_write_1(port, MSE_PORTB, MSE_INPORT_HOLD); in mse_getati()
382 bus_write_1(port, MSE_PORTA, MSE_INPORT_DX); in mse_getati()
385 bus_write_1(port, MSE_PORTA, MSE_INPORT_DY); in mse_getati()
[all …]
/freebsd-12.1/sys/dev/ncv/
H A Dncr53c500.c217 bus_write_1(res, cr0_cmd, CMD_NOP); in ncvhw_check()
261 bus_write_1(res, cr0_cmd, CMD_NOP); in ncvhw_reset()
262 bus_write_1(res, cr0_cmd, CMD_NOP); in ncvhw_reset()
279 bus_write_1(res, cr0_period, 0); in ncvhw_init()
280 bus_write_1(res, cr0_offs, 0); in ncvhw_init()
285 bus_write_1(res, cr0_tchsb, 0); in ncvhw_init()
288 bus_write_1(res, cr1_fstat, 0x0); in ncvhw_init()
289 bus_write_1(res, cr1_pflag, 0x0); in ncvhw_init()
410 bus_write_1(res, cr0_cmd, cmd);
664 bus_write_1(res, cr1_fstat, 0);
[all …]
/freebsd-12.1/sys/dev/ichsmb/
H A Dichsmb.c184 bus_write_1(sc->io_res, ICH_HST_CNT, in ichsmb_quick()
210 bus_write_1(sc->io_res, ICH_HST_CNT, in ichsmb_sendb()
231 bus_write_1(sc->io_res, ICH_HST_CNT, in ichsmb_recvb()
256 bus_write_1(sc->io_res, ICH_HST_CNT, in ichsmb_writeb()
281 bus_write_1(sc->io_res, ICH_HST_CNT, in ichsmb_writew()
303 bus_write_1(sc->io_res, ICH_HST_CNT, in ichsmb_readb()
326 bus_write_1(sc->io_res, ICH_HST_CNT, in ichsmb_readw()
532 bus_write_1(sc->io_res, in ichsmb_device_intr()
567 bus_write_1(sc->io_res, in ichsmb_device_intr()
591 bus_write_1(sc->io_res, in ichsmb_device_intr()
[all …]
/freebsd-12.1/sys/dev/stg/
H A Dtmc18c30.c239 bus_write_1(sc->port_res, tmc_ictl, 0);
241 bus_write_1(sc->port_res, tmc_fctl,
246 bus_write_1(sc->port_res, tmc_ssctl, 0);
286 bus_write_1(sc->port_res, tmc_ictl, 0);
287 bus_write_1(sc->port_res, tmc_fctl, 0);
509 bus_write_1(sc->port_res, tmc_fctl,
522 bus_write_1(sc->port_res, tmc_ictl,
622 bus_write_1(sc->port_res, tmc_ictl,
809 bus_write_1(sc->port_res, tmc_fctl,
961 bus_write_1(sc->port_res, tmc_fctl,
[all …]
/freebsd-12.1/sys/dev/intpm/
H A Dintpm.c128 bus_write_1(res, 0, reg); /* Index */ in amd_pmio_read()
412 bus_write_1(sc->io_res, PIIX4_SMBSLVCNT, 0); in intsmb_free()
415 bus_write_1(sc->io_res, PIIX4_SMBHSTSTS, in intsmb_free()
434 bus_write_1(sc->io_res, PIIX4_SMBHSTCNT, in intsmb_intr()
460 bus_write_1(sc->io_res, PIIX4_SMBSLVSTS, in intsmb_slvintr()
478 bus_write_1(sc->io_res, PIIX4_SMBSLVCNT, in intsmb_alrintr()
500 bus_write_1(sc->io_res, PIIX4_SMBSLVCNT, in intsmb_alrintr()
520 bus_write_1(sc->io_res, PIIX4_SMBHSTCNT, tmp); in intsmb_start()
608 bus_write_1(sc->io_res, PIIX4_SMBSLVCNT, in intsmb_stop()
723 bus_write_1(sc->io_res, PIIX4_SMBHSTCMD, cmd); in intsmb_writeb()
[all …]
/freebsd-12.1/sys/dev/puc/
H A Dpucdata.c1478 bus_write_1(bar->b_res, REG_SPR, 0); in puc_config_quatech()
1482 bus_write_1(bar->b_res, REG_LCR, 0); in puc_config_quatech()
1569 bus_write_1(bar->b_res, 0x250, 0x89); in puc_config_syba()
1570 bus_write_1(bar->b_res, 0x3f0, 0x87); in puc_config_syba()
1571 bus_write_1(bar->b_res, 0x3f0, 0x87); in puc_config_syba()
1575 bus_write_1(bar->b_res, efir, 0x09); in puc_config_syba()
1579 bus_write_1(bar->b_res, efir, 0x16); in puc_config_syba()
1581 bus_write_1(bar->b_res, efir, 0x16); in puc_config_syba()
1583 bus_write_1(bar->b_res, efir, 0x16); in puc_config_syba()
1586 bus_write_1(bar->b_res, efir, 0x23); in puc_config_syba()
[all …]
/freebsd-12.1/sys/dev/iir/
H A Diir_pci.c241 bus_write_1(gdt->sc_dpmem, GDT_EDOOR_EN, in iir_pci_attach()
243 bus_write_1(gdt->sc_dpmem, GDT_MPR_EDOOR, 0xff); in iir_pci_attach()
244 bus_write_1(gdt->sc_dpmem, GDT_MPR_IC + GDT_S_STATUS, 0); in iir_pci_attach()
250 bus_write_1(gdt->sc_dpmem, GDT_MPR_LDOOR, 1); in iir_pci_attach()
281 bus_write_1(gdt->sc_dpmem, GDT_MPR_LDOOR, 1); in iir_pci_attach()
361 bus_write_1(gdt->sc_dpmem, GDT_MPR_EDOOR, 0xff); in gdt_pci_enable_intr()
362 bus_write_1(gdt->sc_dpmem, GDT_EDOOR_EN, in gdt_pci_enable_intr()
409 bus_write_1(gdt->sc_dpmem, GDT_MPR_EDOOR, 0xff); in gdt_mpr_intr()
434 bus_write_1(gdt->sc_dpmem, GDT_MPR_SEMA1, 0); in gdt_mpr_intr()
442 bus_write_1(gdt->sc_dpmem, GDT_MPR_LDOOR, 1); in gdt_mpr_release_event()
[all …]
/freebsd-12.1/sys/dev/ata/chipsets/
H A Data-fsl.c159 bus_write_1(ctrl->r_res1, 0x00, 3); in imx_ata_ch_attach()
160 bus_write_1(ctrl->r_res1, 0x01, 3); in imx_ata_ch_attach()
161 bus_write_1(ctrl->r_res1, 0x02, (25 + 15) / 15); in imx_ata_ch_attach()
162 bus_write_1(ctrl->r_res1, 0x03, (70 + 15) / 15); in imx_ata_ch_attach()
165 bus_write_1(ctrl->r_res1, 0x04, (70 + 15) / 15); in imx_ata_ch_attach()
166 bus_write_1(ctrl->r_res1, 0x05, (50 + 15) / 15 + 2); in imx_ata_ch_attach()
167 bus_write_1(ctrl->r_res1, 0x06, 1); in imx_ata_ch_attach()
168 bus_write_1(ctrl->r_res1, 0x07, (10 + 15) / 15); in imx_ata_ch_attach()
171 bus_write_1(ctrl->r_res1, 0x08, (10 + 15) / 15); in imx_ata_ch_attach()
/freebsd-12.1/sys/dev/ppc/
H A Dppcreg.h165 #define w_dtr(ppc, byte) (bus_write_1((ppc)->res_ioport, PPC_SPP_DTR, byte))
166 #define w_str(ppc, byte) (bus_write_1((ppc)->res_ioport, PPC_SPP_STR, byte))
167 #define w_ctr(ppc, byte) (bus_write_1((ppc)->res_ioport, PPC_SPP_CTR, byte))
169 #define w_epp_A(ppc, byte) (bus_write_1((ppc)->res_ioport, PPC_EPP_ADDR, byte))
170 #define w_epp_D(ppc, byte) (bus_write_1((ppc)->res_ioport, PPC_EPP_DATA, byte))
171 #define w_ecr(ppc, byte) (bus_write_1((ppc)->res_ioport, PPC_ECP_ECR, byte))
172 #define w_fifo(ppc, byte) (bus_write_1((ppc)->res_ioport, PPC_ECP_D_FIFO, byte))
/freebsd-12.1/sys/dev/mlx/
H A Dmlxreg.h83 #define MLX_V3_PUT_MAILBOX(sc, idx, val) bus_write_1(sc->mlx_mem, MLX_V3_MAILBOX + idx, val)
87 #define MLX_V3_PUT_IDBR(sc, val) bus_write_1(sc->mlx_mem, MLX_V3_IDBR, val)
89 #define MLX_V3_PUT_ODBR(sc, val) bus_write_1(sc->mlx_mem, MLX_V3_ODBR, val)
90 #define MLX_V3_PUT_IER(sc, val) bus_write_1(sc->mlx_mem, MLX_V3_IER, val)
92 #define MLX_V3_PUT_FWERROR(sc, val) bus_write_1(sc->mlx_mem, MLX_V3_FWERROR, val)
120 #define MLX_V4_PUT_MAILBOX(sc, idx, val) bus_write_1(sc->mlx_mem, MLX_V4_MAILBOX + idx, val)
129 #define MLX_V4_PUT_FWERROR(sc, val) bus_write_1(sc->mlx_mem, MLX_V4_FWERROR, val)
169 #define MLX_V5_PUT_IDBR(sc, val) bus_write_1(sc->mlx_mem, MLX_V5_IDBR, val)
171 #define MLX_V5_PUT_ODBR(sc, val) bus_write_1(sc->mlx_mem, MLX_V5_ODBR, val)
172 #define MLX_V5_PUT_IER(sc, val) bus_write_1(sc->mlx_mem, MLX_V5_IER, val)
[all …]
/freebsd-12.1/sys/dev/glxiic/
H A Dglxiic.c516 bus_write_1(sc->smb_res, GLXIIC_SMB_CTRL1, in glxiic_stop_locked()
529 bus_write_1(sc->smb_res, GLXIIC_SMB_STS, in glxiic_stop_locked()
751 bus_write_1(sc->smb_res, GLXIIC_SMB_CTRL1, in glxiic_state_master_addr_callback()
780 bus_write_1(sc->smb_res, GLXIIC_SMB_STS, in glxiic_state_master_tx_callback()
822 bus_write_1(sc->smb_res, GLXIIC_SMB_STS, in glxiic_state_master_rx_callback()
842 bus_write_1(sc->smb_res, GLXIIC_SMB_CTRL1, in glxiic_state_master_rx_callback()
880 bus_write_1(sc->smb_res, GLXIIC_SMB_CTRL1, in glxiic_state_master_stop_callback()
982 bus_write_1(sc->smb_res, GLXIIC_SMB_CTRL1, in glxiic_transfer()
1065 bus_write_1(sc->smb_res, GLXIIC_SMB_ADDR, in glxiic_smb_enable()
1068 bus_write_1(sc->smb_res, GLXIIC_SMB_ADDR, 0); in glxiic_smb_enable()
[all …]
/freebsd-12.1/sys/dev/nsp/
H A Dnsp.c188 bus_write_1(res, nsp_idxr, ofs); in nsp_cr_read_1()
196 bus_write_1(res, nsp_idxr, ofs); in nsp_cr_write_1()
197 bus_write_1(res, nsp_datar, va); in nsp_cr_write_1()
264 bus_write_1(sc->port_res, nsp_irqcr, IRQSR_MASK);
297 bus_write_1(sc->port_res, nsp_irqcr, IRQSR_MASK);
764 (void) bus_write_1(sc->port_res, nsp_fifodr, 0);
943 bus_write_1(sc->port_res,
987 bus_write_1(sc->port_res, nsp_irqcr,
1063 bus_write_1(sc->port_res, nsp_irqcr,
1370 bus_write_1(sc->port_res, nsp_irqcr, 0);
[all …]
/freebsd-12.1/sys/sparc64/ebus/
H A Depic.c84 bus_write_1((sc)->sc_res[EPIC_FW_LED], EPIC_FW_LED_ADDR, (off));\
96 bus_write_1((sc)->sc_res[EPIC_FW_LED], EPIC_FW_LED_ADDR, (off));\
100 bus_write_1((sc)->sc_res[EPIC_FW_LED], EPIC_FW_LED_WRITE_MASK, \
105 bus_write_1((sc)->sc_res[EPIC_FW_LED], EPIC_FW_LED_DATA, (val));\
/freebsd-12.1/sys/powerpc/powermac/
H A Dmacgpio.c302 bus_write_1(sc->sc_gpios,dinfo->gpio_num,val); in macgpio_activate_resource()
326 bus_write_1(sc->sc_gpios,dinfo->gpio_num,val); in macgpio_deactivate_resource()
359 bus_write_1(sc->sc_gpios,dinfo->gpio_num,val); in macgpio_write()
400 bus_write_1(sc->sc_gpios, GPIO_BASE + i, sc->sc_saved_gpios[i]); in macgpio_resume()
402 bus_write_1(sc->sc_gpios, GPIO_EXTINT_BASE + i, sc->sc_saved_extint_gpios[i]); in macgpio_resume()
H A Dmacio.c676 bus_write_1(sc->sc_memr, KEYLARGO_GPIO_BASE + 0x0f, 5); in macio_enable_wireless()
678 bus_write_1(sc->sc_memr, KEYLARGO_GPIO_BASE + 0x0f, 4); in macio_enable_wireless()
686 bus_write_1(sc->sc_memr, KEYLARGO_EXTINT_GPIO_REG_BASE + 0x0b, 0); in macio_enable_wireless()
687 bus_write_1(sc->sc_memr, KEYLARGO_EXTINT_GPIO_REG_BASE + 0x0a, 0x28); in macio_enable_wireless()
688 bus_write_1(sc->sc_memr, KEYLARGO_EXTINT_GPIO_REG_BASE + 0x0d, 0x28); in macio_enable_wireless()
689 bus_write_1(sc->sc_memr, KEYLARGO_GPIO_BASE + 0x0d, 0x28); in macio_enable_wireless()
690 bus_write_1(sc->sc_memr, KEYLARGO_GPIO_BASE + 0x0e, 0x28); in macio_enable_wireless()
/freebsd-12.1/sys/dev/pcf/
H A Dpcfvar.h103 bus_write_1(sc->res_ioport, 0, data); in pcf_set_S0()
111 bus_write_1(sc->res_ioport, 1, data); in pcf_set_S1()
/freebsd-12.1/sys/dev/nctgpio/
H A Dnctgpio.c153 bus_write_1(sc->portres, 0, reg); in write_cfg_reg_1()
155 bus_write_1(sc->portres, 1, value); in write_cfg_reg_1()
165 bus_write_1(sc->portres, 0, reg); in read_cfg_reg_1()
192 bus_write_1(sc->portres, 0, NCT_EXTFUNC_ENTER); in ext_cfg_enter()
194 bus_write_1(sc->portres, 0, NCT_EXTFUNC_ENTER); in ext_cfg_enter()
206 bus_write_1(sc->portres, 0, NCT_EXTFUNC_EXIT); in ext_cfg_exit()
/freebsd-12.1/sys/dev/asmc/
H A Dasmcvar.h62 bus_write_1(sc->sc_ioport, 0x00, val)
70 bus_write_1(sc->sc_ioport, 0x04, val)
/freebsd-12.1/sys/dev/nand/
H A Dnfc_rb.c235 bus_write_1(sc->sc_mem, RB_NAND_DATA, command); in rb_nand_send_command()
251 bus_write_1(sc->sc_mem, RB_NAND_DATA, addr); in rb_nand_send_address()
297 bus_write_1(sc->sc_mem, RB_NAND_DATA, b[i]); in rb_nand_write_buf()
/freebsd-12.1/sys/powerpc/pseries/
H A Dxics.c266 bus_write_1(sc->mem[i], 4, 0xff); in xicp_attach()
267 bus_write_1(sc->mem[i], 12, 0xff); in xicp_attach()
392 bus_write_1(regs, 12, 0xff); in xicp_dispatch()
496 bus_write_1(xicp_mem_for_cpu(cpu), 12, XICP_PRIORITY); in xicp_ipi()
/freebsd-12.1/sys/dev/le/
H A Dif_le_lebuffer.c165 bus_write_1(lesc->sc_bres, off, *from); in le_lebuffer_copytodesc()
196 bus_write_1(lesc->sc_bres, off + 1, *from); in le_lebuffer_copytobuf()
220 bus_write_1(lesc->sc_bres, off + 1, 0); in le_lebuffer_zerobuf()
/freebsd-12.1/sys/dev/an/
H A Dif_anreg.h54 #define CSR_WRITE_1(sc, reg, val) bus_write_1(sc->port_res, reg, val)
65 #define CSR_MEM_WRITE_1(sc, reg, val) bus_write_1(sc->mem_res, reg, val)
79 bus_write_1(sc->mem_aux_res, reg, val)
/freebsd-12.1/sys/dev/ipmi/
H A Dipmivars.h208 bus_write_1((sc)->ipmi_io_res[0], (sc)->ipmi_io_spacing * (x), value)
214 bus_write_1((sc)->ipmi_io_res[(x)], 0, value)
/freebsd-12.1/sys/arm/altera/socfpga/
H A Dsocfpga_common.h38 #define WRITE1(_sc, _reg, _val) bus_write_1((_sc)->res[0], _reg, _val)
/freebsd-12.1/sys/dev/hdmi/
H A Ddwc_hdmi.h57 bus_write_1(sc->sc_mem_res, off << sc->sc_reg_shift, val); in WR1()

12345