Home
last modified time | relevance | path

Searched refs:mmwrite (Results 1 – 13 of 13) sorted by relevance

/Linux-v4.19/drivers/media/pci/mantis/
Dmantis_hif.c101 mmwrite(hif_addr, MANTIS_GPIF_BRADDR); in mantis_hif_read_mem()
102 mmwrite(count, MANTIS_GPIF_BRBYTES); in mantis_hif_read_mem()
104 mmwrite(hif_addr | MANTIS_GPIF_HIFRDWRN, MANTIS_GPIF_ADDR); in mantis_hif_read_mem()
131 mmwrite(slot->slave_cfg, MANTIS_GPIF_CFGSLA); /* Slot0 alone for now */ in mantis_hif_write_mem()
132 mmwrite(hif_addr, MANTIS_GPIF_ADDR); in mantis_hif_write_mem()
133 mmwrite(data, MANTIS_GPIF_DOUT); in mantis_hif_write_mem()
158 mmwrite(hif_addr, MANTIS_GPIF_BRADDR); in mantis_hif_read_iom()
159 mmwrite(1, MANTIS_GPIF_BRBYTES); in mantis_hif_read_iom()
161 mmwrite(hif_addr | MANTIS_GPIF_HIFRDWRN, MANTIS_GPIF_ADDR); in mantis_hif_read_iom()
189 mmwrite(hif_addr, MANTIS_GPIF_ADDR); in mantis_hif_write_iom()
[all …]
Dmantis_pcmcia.c51 mmwrite(0xda000000, MANTIS_CARD_RESET); in mantis_event_cam_plugin()
55 mmwrite(gpif_irqcfg, MANTIS_GPIF_IRQCFG); in mantis_event_cam_plugin()
75 mmwrite(0x00da0000, MANTIS_CARD_RESET); in mantis_event_cam_unplug()
79 mmwrite(gpif_irqcfg, MANTIS_GPIF_IRQCFG); in mantis_event_cam_unplug()
98 mmwrite(card_stat | MANTIS_MASK_PLUGOUT, MANTIS_GPIF_IRQCFG); in mantis_pcmcia_init()
105 mmwrite(card_stat | MANTIS_MASK_PLUGIN, MANTIS_GPIF_IRQCFG); in mantis_pcmcia_init()
119mmwrite(mmread(MANTIS_GPIF_STATUS) & (~MANTIS_CARD_PLUGOUT | ~MANTIS_CARD_PLUGIN), MANTIS_GPIF_STA… in mantis_pcmcia_exit()
Dmantis_uart.c126 mmwrite((mmread(MANTIS_UART_CTL) | (params->parity & 0x3)), MANTIS_UART_CTL); in mantis_uart_setup()
150 mmwrite(reg, MANTIS_UART_BAUD); in mantis_uart_setup()
170 mmwrite(mmread(MANTIS_UART_CTL) & 0xffef, MANTIS_UART_CTL); in mantis_uart_init()
175 mmwrite((mmread(MANTIS_UART_BAUD) | (config->bytes << 8)), MANTIS_UART_BAUD); in mantis_uart_init()
178 mmwrite((mmread(MANTIS_UART_CTL) | MANTIS_UART_RXFLUSH), MANTIS_UART_CTL); in mantis_uart_init()
181 mmwrite(mmread(MANTIS_UART_CTL) | MANTIS_UART_RXINT, MANTIS_UART_CTL); in mantis_uart_init()
195 mmwrite(mmread(MANTIS_UART_CTL) & 0xffef, MANTIS_UART_CTL); in mantis_uart_exit()
Dmantis_ioc.c91 mmwrite(mantis->gpio_status, MANTIS_GPIF_ADDR); in mantis_gpio_set_bits()
92 mmwrite(0x00, MANTIS_GPIF_DOUT); in mantis_gpio_set_bits()
105 mmwrite(reg, MANTIS_CONTROL); in mantis_stream_control()
107 mmwrite(reg, MANTIS_CONTROL); in mantis_stream_control()
113 mmwrite(reg, MANTIS_CONTROL); in mantis_stream_control()
115 mmwrite(reg, MANTIS_CONTROL); in mantis_stream_control()
Dmantis_dma.c141 mmwrite(0, MANTIS_DMA_CTL); in mantis_dma_init()
186 mmwrite(mantis->risc_dma, MANTIS_RISC_START); in mantis_dma_start()
187 mmwrite(mmread(MANTIS_GPIF_ADDR) | MANTIS_GPIF_HIFRDWRN, MANTIS_GPIF_ADDR); in mantis_dma_start()
189 mmwrite(0, MANTIS_DMA_CTL); in mantis_dma_start()
194 mmwrite(MANTIS_FIFO_EN | MANTIS_DCAP_EN in mantis_dma_start()
203 mmwrite((mmread(MANTIS_GPIF_ADDR) & (~(MANTIS_GPIF_HIFRDWRN))), MANTIS_GPIF_ADDR); in mantis_dma_stop()
205 mmwrite((mmread(MANTIS_DMA_CTL) & ~(MANTIS_FIFO_EN | in mantis_dma_stop()
209 mmwrite(mmread(MANTIS_INT_STAT), MANTIS_INT_STAT); in mantis_dma_stop()
Dmantis_core.c188 mmwrite(mantis->gpio_status, MANTIS_GPIF_ADDR); in gpio_set_bits()
189 mmwrite(0x00, MANTIS_GPIF_DOUT); in gpio_set_bits()
203 mmwrite(reg, 0x28); in mantis_set_direction()
205 mmwrite(reg, 0x28); in mantis_set_direction()
208 mmwrite(reg, 0x28); in mantis_set_direction()
210 mmwrite(reg, 0x28); in mantis_set_direction()
Dmantis_i2c.c54 mmwrite(MANTIS_INT_I2CDONE, MANTIS_INT_STAT); in mantis_i2c_read()
55 mmwrite(rxd, MANTIS_I2CDATA_CTL); in mantis_i2c_read()
102 mmwrite(MANTIS_INT_I2CDONE, MANTIS_INT_STAT); in mantis_i2c_write()
103 mmwrite(txd, MANTIS_I2CDATA_CTL); in mantis_i2c_write()
158 mmwrite(txd, MANTIS_I2CDATA_CTL); in mantis_i2c_xfer()
246 mmwrite(intstat, MANTIS_INT_STAT); in mantis_i2c_init()
Dmantis_common.h60 #define mmwrite(dat, addr) mwrite((dat), (mantis->mmio + (addr))) macro
191 mmwrite(mmread(MANTIS_INT_MASK) & ~mask, MANTIS_INT_MASK); in mantis_mask_ints()
200 mmwrite(mmread(MANTIS_INT_MASK) | mask, MANTIS_INT_MASK); in mantis_unmask_ints()
Dmantis_evm.c51 mmwrite(0xdada0000, MANTIS_CARD_RESET); in mantis_hifevm_work()
60 mmwrite(0xdada0000, MANTIS_CARD_RESET); in mantis_hifevm_work()
Dhopper_cards.c93 mmwrite(rst_stat, MANTIS_GPIF_STATUS); in hopper_irq_handler()
110 mmwrite(mmread(MANTIS_INT_MASK) & ~MANTIS_INT_IRQ1, in hopper_irq_handler()
139 mmwrite(stat, MANTIS_INT_STAT); in hopper_irq_handler()
Dmantis_cards.c103 mmwrite(rst_stat, MANTIS_GPIF_STATUS); in mantis_irq_handler()
120 mmwrite(mmread(MANTIS_INT_MASK) & ~MANTIS_INT_IRQ1, in mantis_irq_handler()
149 mmwrite(stat, MANTIS_INT_STAT); in mantis_irq_handler()
Dmantis_ca.c99 mmwrite(0xda, MANTIS_PCMCIA_RESET); /* Leading edge assert */ in mantis_ca_slot_reset()
101 mmwrite(0x00, MANTIS_PCMCIA_RESET); /* Trailing edge deassert */ in mantis_ca_slot_reset()
Dmantis_vp1034.c69 mmwrite(0x00, MANTIS_GPIF_DOUT); in vp1034_set_voltage()