Home
last modified time | relevance | path

Searched refs:IO_MASK (Results 1 – 15 of 15) sorted by relevance

/linux-2.4.37.9/drivers/media/radio/
Dradio-maestro.c38 #define IO_MASK 4 /* mask register offset from GPIO_DATA macro
120 omask = inw(io + IO_MASK); in radio_bits_get()
121 outw(~(STR_CLK | STR_WREN), io + IO_MASK); in radio_bits_get()
144 outw(omask, io + IO_MASK); in radio_bits_get()
152 omask = inw(io + IO_MASK); in radio_bits_set()
155 outw(~(STR_DATA | STR_CLK | STR_WREN), io + IO_MASK); in radio_bits_set()
170 outw(omask, io + IO_MASK); in radio_bits_set()
248 register __u16 omask = inw(io + IO_MASK); in radio_function()
249 outw(~STR_WREN, io + IO_MASK); in radio_function()
253 outw(omask, io + IO_MASK); in radio_function()
[all …]
/linux-2.4.37.9/include/asm-cris/
Dsv_addr_ag.h28 #define IO_MASK(reg, field) IO_MASK_ (reg##_, field##_) macro
121 IO_MASK( R_WAITSTATES , SRAM_WS )
122 IO_MASK( R_TEST , W32 )
129 IO_MASK( R_DRAM_TIMING, REF )
131 IO_MASK( R_EXT_DMA_0_STAT, TFR_COUNT ) >> IO_BITNR( R_EXT_DMA_0_STAT, TFR_COUNT )
133 IO_RD(R_EXT_DMA_0_STAT) & IO_MASK( R_EXT_DMA_0_STAT, S )
Dsvinto.h53 while( (*R_DMA_CH##n##_CMD & IO_MASK( R_DMA_CH0_CMD, cmd )) != \
/linux-2.4.37.9/arch/cris/drivers/
Dusb-host.c913 !(tmp_ep->command & IO_MASK(USB_EP_command, enable))) { in etrax_usb_do_intr_recover()
1105 while (*R_USB_EPT_DATA & IO_MASK(R_USB_EPT_DATA, hold)); in etrax_usb_free_epid()
1153 if ((IO_MASK(R_USB_EPT_DATA_ISO, valid) & data) && in etrax_usb_lookup_epid()
1166 if ((IO_MASK(R_USB_EPT_DATA, valid) & data) && in etrax_usb_lookup_epid()
1335 if (TxBulkEPList[epid].command & IO_MASK(USB_EP_command, enable)) { in etrax_usb_unlink_urb()
1337 TxBulkEPList[epid].command &= ~IO_MASK(USB_EP_command, enable); in etrax_usb_unlink_urb()
1349 if (TxCtrlEPList[epid].command & IO_MASK(USB_EP_command, enable)) { in etrax_usb_unlink_urb()
1351 TxCtrlEPList[epid].command &= ~IO_MASK(USB_EP_command, enable); in etrax_usb_unlink_urb()
1368 if (TxIsocEPList[epid].command & IO_MASK(USB_EP_command, enable)) { in etrax_usb_unlink_urb()
1370 TxIsocEPList[epid].command &= ~IO_MASK(USB_EP_command, enable); in etrax_usb_unlink_urb()
[all …]
Dide.c183 while(timeleft && (*R_ATA_STATUS_DATA & IO_MASK(R_ATA_STATUS_DATA, busy))) in OUT_BYTE()
201 IO_MASK(R_ATA_STATUS_DATA, tr_rdy))) in OUT_BYTE()
212 while(timeleft && (*R_ATA_STATUS_DATA & IO_MASK(R_ATA_STATUS_DATA, busy))) in IN_BYTE()
229 if ((reg & IO_MASK (R_ATA_CTRL_DATA, addr)) in IN_BYTE()
242 IO_MASK(R_ATA_STATUS_DATA, dav))) in IN_BYTE()
409 ~IO_MASK(R_GEN_CONFIG, dma2) & in init_e100_ide()
410 ~IO_MASK(R_GEN_CONFIG, dma3) & in init_e100_ide()
411 ~IO_MASK(R_GEN_CONFIG, ata)) | in init_e100_ide()
465 while(*R_ATA_STATUS_DATA & IO_MASK(R_ATA_STATUS_DATA, busy)); /* wait for busy flag*/ in init_e100_ide()
567 while((status = *R_ATA_STATUS_DATA) & IO_MASK(R_ATA_STATUS_DATA, busy)) { in e100_atapi_input_bytes()
[all …]
Dserial.c668 #define SER_RXD_MASK IO_MASK(R_SERIAL0_STATUS, rxd)
669 #define SER_DATA_AVAIL_MASK IO_MASK(R_SERIAL0_STATUS, data_avail)
670 #define SER_FRAMING_ERR_MASK IO_MASK(R_SERIAL0_STATUS, framing_err)
671 #define SER_PAR_ERR_MASK IO_MASK(R_SERIAL0_STATUS, par_err)
672 #define SER_OVERRUN_MASK IO_MASK(R_SERIAL0_STATUS, overrun)
698 | IO_MASK(R_IRQ_MASK1_RD, ser0_data) | IO_MASK(R_IRQ_MASK1_RD, ser0_ready)
701 | IO_MASK(R_IRQ_MASK1_RD, ser1_data) | IO_MASK(R_IRQ_MASK1_RD, ser1_ready)
704 | IO_MASK(R_IRQ_MASK1_RD, ser2_data) | IO_MASK(R_IRQ_MASK1_RD, ser2_ready)
707 | IO_MASK(R_IRQ_MASK1_RD, ser3_data) | IO_MASK(R_IRQ_MASK1_RD, ser3_ready)
1394 ~IO_MASK(R_TIMER_CTRL, timerdiv1) & in start_flush_timer()
[all …]
Di2c.c158 #define i2c_enable() *R_PORT_PB_I2C = (port_pb_i2c_shadow |= IO_MASK(R_PORT_PB_I2C, i2c_en))
159 #define i2c_disable() *R_PORT_PB_I2C = (port_pb_i2c_shadow &= ~IO_MASK(R_PORT_PB_I2C, i2c_en))
164 *R_PORT_PB_I2C = (port_pb_i2c_shadow &= ~IO_MASK(R_PORT_PB_I2C, i2c_oe_)); \
167 *R_PORT_PB_I2C = (port_pb_i2c_shadow |= IO_MASK(R_PORT_PB_I2C, i2c_oe_)); \
174 ~IO_MASK(R_PORT_PB_I2C, i2c_clk)) | IO_FIELD(R_PORT_PB_I2C, i2c_clk, (x))); \
179 ~IO_MASK(R_PORT_PB_I2C, i2c_d)) | IO_FIELD(R_PORT_PB_I2C, i2c_d, (x))); \
706 port_pb_dir_shadow &= ~IO_MASK(R_PORT_PB_DIR, dir0); in i2c_init()
707 port_pb_dir_shadow &= ~IO_MASK(R_PORT_PB_DIR, dir1); in i2c_init()
Dgpio.c494 genconfig_shadow &= ~IO_MASK(R_GEN_CONFIG,g0dir); in setget_input()
499 genconfig_shadow &= ~IO_MASK(R_GEN_CONFIG,g8_15dir); in setget_input()
504 genconfig_shadow &= ~IO_MASK(R_GEN_CONFIG,g16_23dir); in setget_input()
509 genconfig_shadow &= ~IO_MASK(R_GEN_CONFIG,g24dir); in setget_input()
545 genconfig_shadow |= IO_MASK(R_GEN_CONFIG,g0dir); in setget_output()
550 genconfig_shadow |= IO_MASK(R_GEN_CONFIG,g8_15dir); in setget_output()
555 genconfig_shadow |= IO_MASK(R_GEN_CONFIG,g16_23dir); in setget_output()
560 genconfig_shadow |= IO_MASK(R_GEN_CONFIG,g24dir); in setget_output()
Dds1302.c542 ~IO_MASK(R_GEN_CONFIG, ata)) | in ds1302_init()
549 ~IO_MASK(R_GEN_CONFIG, g0dir)) | in ds1302_init()
Dethernet.c1052 IO_MASK(R_NETWORK_MGM_CTRL, mdck) | in e100_send_mdio_bit()
1064 *R_NETWORK_MGM_CTRL = IO_MASK(R_NETWORK_MGM_CTRL, mdck); in e100_receive_mdio_bit()
Dsync_serial.c1124 switch(port->ctrl_data_shadow & IO_MASK(R_SYNC_SERIAL1_CTRL, wordsize)) in manual_interrupt()
/linux-2.4.37.9/arch/cris/kernel/
Ddebugport.c235 } while(!(readval & IO_MASK(R_SERIAL0_READ, data_avail))); in getDebugChar()
237 return (readval & IO_MASK(R_SERIAL0_READ, data_in)); in getDebugChar()
245 while(!(*DEBUG_READ & IO_MASK(R_SERIAL0_READ, tr_ready))) ; in putDebugChar()
Dfasttimer.c277 ~IO_MASK(R_TIMER_CTRL, timerdiv1) & in start_timer1()
278 ~IO_MASK(R_TIMER_CTRL, tm1) & in start_timer1()
279 ~IO_MASK(R_TIMER_CTRL, clksel1)) | in start_timer1()
290 (r_timer_ctrl_shadow & ~IO_MASK(R_TIMER_CTRL, tm1)) | in start_timer1()
439 (r_timer_ctrl_shadow & ~IO_MASK(R_TIMER_CTRL, tm1)) | in timer1_handler()
Dhead.S533 and.b IO_MASK (R_DMA_CH4_CMD, cmd),$r0
543 and.b IO_MASK (R_DMA_CH5_CMD, cmd),$r0
631 and.d (~(IO_MASK (R_GEN_CONFIG, dma9) \
632 | IO_MASK (R_GEN_CONFIG, dma8))) \
672 andq IO_MASK (R_DMA_CH8_CMD, cmd),$r0
677 andq IO_MASK (R_DMA_CH9_CMD, cmd),$r0
/linux-2.4.37.9/arch/cris/drivers/lpslave/
De100lpslavenet.c713 if(irqbits & IO_MASK(R_IRQ_MASK0_RD, par0_ecp_cmd)) { in ecp_interrupt()
962 while(!(*R_IRQ_READ2 & IO_MASK(R_IRQ_READ2, dma4_descr))); in boot_slave()