Home
last modified time | relevance | path

Searched refs:mace (Results 1 – 17 of 17) sorted by relevance

/linux-6.6.21/arch/mips/pci/
Dops-mace.c43 u32 control = mace->pci.control; in mace_pci_read_config()
46 mace->pci.control = control & ~MACEPCI_CONTROL_MAR_INT; in mace_pci_read_config()
47 mace->pci.config_addr = mkaddr(bus, devfn, reg); in mace_pci_read_config()
50 *val = mace->pci.config_data.b[(reg & 3) ^ 3]; in mace_pci_read_config()
53 *val = mace->pci.config_data.w[((reg >> 1) & 1) ^ 1]; in mace_pci_read_config()
56 *val = mace->pci.config_data.l; in mace_pci_read_config()
60 mace->pci.error &= ~MACEPCI_ERROR_MASTER_ABORT; in mace_pci_read_config()
61 mace->pci.control = control; in mace_pci_read_config()
79 mace->pci.config_addr = mkaddr(bus, devfn, reg); in mace_pci_write_config()
82 mace->pci.config_data.b[(reg & 3) ^ 3] = val; in mace_pci_write_config()
[all …]
Dpci-ip32.c28 unsigned int flags = mace->pci.error; in macepci_error()
29 unsigned int addr = mace->pci.error_addr; in macepci_error()
79 mace->pci.error = flags; in macepci_error()
129 mace->pci.error_addr = 0; in mace_init()
130 mace->pci.error = 0; in mace_init()
131 mace->pci.control = 0xff008500; in mace_init()
133 printk("MACE PCI rev %d\n", mace->pci.rev); in mace_init()
DMakefile34 obj-$(CONFIG_SGI_IP32) += fixup-ip32.o ops-mace.o pci-ip32.o
/linux-6.6.21/drivers/net/ethernet/apple/
Dmacmace.c57 volatile struct mace *mace; member
119 volatile struct mace *mace = mp->mace; in mace_rxdma_reset() local
120 u8 maccc = mace->maccc; in mace_rxdma_reset()
122 mace->maccc = maccc & ~ENRCV; in mace_rxdma_reset()
132 mace->maccc = maccc; in mace_rxdma_reset()
146 volatile struct mace *mace = mp->mace; in mace_txdma_reset() local
151 maccc = mace->maccc; in mace_txdma_reset()
152 mace->maccc = maccc & ~ENXMT; in mace_txdma_reset()
158 mace->maccc = maccc; in mace_txdma_reset()
214 mp->mace = MACE_BASE; in mace_probe()
[all …]
Dmace.c45 volatile struct mace __iomem *mace; member
110 struct device_node *mace = macio_get_of_node(mdev); in mace_probe() local
119 mace); in mace_probe()
123 addr = of_get_property(mace, "mac-address", NULL); in mace_probe()
125 addr = of_get_property(mace, "local-mac-address", NULL); in mace_probe()
128 mace); in mace_probe()
160 mp->mace = ioremap(dev->base_addr, 0x1000); in mace_probe()
161 if (mp->mace == NULL) { in mace_probe()
173 mp->chipid = (in_8(&mp->mace->chipid_hi) << 8) | in mace_probe()
174 in_8(&mp->mace->chipid_lo); in mace_probe()
[all …]
DMakefile6 obj-$(CONFIG_MACE) += mace.o
Dmace.h11 struct mace { struct
DKconfig30 will be called mace.
/linux-6.6.21/drivers/net/ethernet/sgi/
Dmeth.c109 mace->eth.mac_addr = macaddr; in load_eaddr()
116 while ((___rval = mace->eth.phy_data) & MDIO_BUSY) { \
124 mace->eth.phy_regs = (priv->phy_addr << 5) | (phyreg & 0x1f); in mdio_read()
126 mace->eth.phy_trans_go = 1; in mdio_read()
195 mace->eth.mac_ctrl = priv->mac_ctrl; in meth_check_link()
204 mace->eth.mac_ctrl = priv->mac_ctrl; in meth_check_link()
218 mace->eth.tx_ring_base = priv->tx_ring_dma; in meth_init_tx_ring()
239 mace->eth.rx_fifo = priv->rx_ring_dmas[i]; in meth_init_rx_ring()
276 mace->eth.mac_ctrl = SGI_MAC_RESET; in meth_reset()
278 mace->eth.mac_ctrl = 0; in meth_reset()
[all …]
/linux-6.6.21/arch/mips/sgi-ip32/
Dip32-irq.c39 mace->perif.ctrl.misc; in flush_mace_bus()
176 mace->pci.control = macepci_mask; in enable_macepci_irq()
187 mace->pci.control = macepci_mask; in disable_macepci_irq()
257 mace->perif.ctrl.imask = maceisa_mask; in enable_maceisa_irq()
274 mace->perif.ctrl.imask = maceisa_mask; in disable_maceisa_irq()
283 mace_int = mace->perif.ctrl.istat; in mask_and_ack_maceisa_irq()
285 mace->perif.ctrl.istat = mace_int; in mask_and_ack_maceisa_irq()
339 printk("MACE ISA intr mask: %08lx\n", mace->perif.ctrl.imask); in ip32_unknown_interrupt()
340 printk("MACE ISA intr status: %08lx\n", mace->perif.ctrl.istat); in ip32_unknown_interrupt()
341 printk("MACE PCI control register: %08x\n", mace->pci.control); in ip32_unknown_interrupt()
[all …]
Dip32-reset.c78 unsigned long led = mace->perif.ctrl.misc ^ MACEISA_LED_RED; in blink_timeout()
79 mace->perif.ctrl.misc = led; in blink_timeout()
122 led = mace->perif.ctrl.misc | MACEISA_LED_GREEN; in panic_event()
123 mace->perif.ctrl.misc = led; in panic_event()
138 unsigned long led = mace->perif.ctrl.misc; in ip32_reboot_setup()
141 mace->perif.ctrl.misc = led; in ip32_reboot_setup()
Dcrime.c22 struct sgi_mace __iomem *mace; variable
24 EXPORT_SYMBOL_GPL(mace);
33 mace = ioremap(MACE_BASE, sizeof(struct sgi_mace)); in crime_init()
/linux-6.6.21/sound/mips/
Dsgio2audio.c110 CODEC_CONTROL_READ, &mace->perif.audio.codec_control); in read_ad1843_reg()
112 val = readq(&mace->perif.audio.codec_control); /* flush bus */ in read_ad1843_reg()
115 val = readq(&mace->perif.audio.codec_read); in read_ad1843_reg()
134 &mace->perif.audio.codec_control); in write_ad1843_reg()
136 val = readq(&mace->perif.audio.codec_control); /* flush bus */ in write_ad1843_reg()
359 src_pos = readq(&mace->perif.audio.chan[ch].read_ptr); in snd_sgio2audio_dma_pull_frag()
382 writeq(src_pos, &mace->perif.audio.chan[ch].read_ptr); /* in bytes */ in snd_sgio2audio_dma_pull_frag()
407 dst_pos = readq(&mace->perif.audio.chan[ch].write_ptr); in snd_sgio2audio_dma_push_frag()
432 writeq(dst_pos, &mace->perif.audio.chan[ch].write_ptr); /* in bytes */ in snd_sgio2audio_dma_push_frag()
446 writeq(CHANNEL_CONTROL_RESET, &mace->perif.audio.chan[ch].control); in snd_sgio2audio_dma_start()
[all …]
/linux-6.6.21/drivers/parport/
Dparport_ip32.c495 &mace->perif.ctrl.parport.context_a : in parport_ip32_dma_setup_context()
496 &mace->perif.ctrl.parport.context_b; in parport_ip32_dma_setup_context()
581 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_start()
601 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_start()
610 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_start()
647 ctrl = readq(&mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_stop()
649 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_stop()
652 ctx_a = readq(&mace->perif.ctrl.parport.context_a); in parport_ip32_dma_stop()
653 ctx_b = readq(&mace->perif.ctrl.parport.context_b); in parport_ip32_dma_stop()
654 ctrl = readq(&mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_stop()
[all …]
/linux-6.6.21/drivers/input/misc/
Dsgi_btns.c32 status = readq(&mace->perif.audio.control); in button_status()
33 writeq(status & ~(3U << 23), &mace->perif.audio.control); in button_status()
/linux-6.6.21/drivers/input/serio/
Dmaceps2.c181 port_data[0].port = &mace->perif.ps2.keyb; in maceps2_init()
183 port_data[1].port = &mace->perif.ps2.mouse; in maceps2_init()
/linux-6.6.21/arch/mips/include/asm/ip32/
Dmace.h363 extern struct sgi_mace __iomem *mace;