Home
last modified time | relevance | path

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

/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_avalon_sgdma/HAL/src/
Daltera_avalon_sgdma.c83 alt_sgdma_dev *dev, in alt_avalon_sgdma_do_async_transfer() argument
89 if( (IORD_ALTERA_AVALON_SGDMA_STATUS(dev->base) & in alt_avalon_sgdma_do_async_transfer()
95 IOWR_ALTERA_AVALON_SGDMA_CONTROL(dev->base, in alt_avalon_sgdma_do_async_transfer()
96 (IORD_ALTERA_AVALON_SGDMA_CONTROL(dev->base) & in alt_avalon_sgdma_do_async_transfer()
103 IOWR_ALTERA_AVALON_SGDMA_STATUS(dev->base, 0xFF); in alt_avalon_sgdma_do_async_transfer()
106 IOWR_ALTERA_AVALON_SGDMA_NEXT_DESC_POINTER(dev->base, (alt_u32) desc); in alt_avalon_sgdma_do_async_transfer()
117 if(dev->callback) { in alt_avalon_sgdma_do_async_transfer()
118 control = IORD_ALTERA_AVALON_SGDMA_CONTROL(dev->base); in alt_avalon_sgdma_do_async_transfer()
120 control |= (dev->chain_control | in alt_avalon_sgdma_do_async_transfer()
124 IOWR_ALTERA_AVALON_SGDMA_CONTROL(dev->base, control); in alt_avalon_sgdma_do_async_transfer()
[all …]
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_msgdma/HAL/src/
Daltera_msgdma.c58 alt_msgdma_dev *dev,
65 alt_msgdma_dev *dev,
77 alt_msgdma_dev *dev,
81 alt_msgdma_dev *dev,
178 alt_msgdma_dev *dev = (alt_msgdma_dev *) context; in alt_msgdma_irq() local
184 if (dev->prefetcher_enable) in alt_msgdma_irq()
187 IORD_ALT_MSGDMA_PREFETCHER_CONTROL(dev->prefetcher_base) in alt_msgdma_irq()
190 IOWR_ALT_MSGDMA_PREFETCHER_CONTROL(dev->prefetcher_base, in alt_msgdma_irq()
194 IOWR_ALT_MSGDMA_PREFETCHER_STATUS(dev->prefetcher_base, in alt_msgdma_irq()
199 temporary_control = IORD_ALTERA_MSGDMA_CSR_CONTROL(dev->csr_base) in alt_msgdma_irq()
[all …]
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_avalon_uart/HAL/src/
Daltera_avalon_uart_fd.c50 altera_avalon_uart_dev* dev = (altera_avalon_uart_dev*) fd->dev; in altera_avalon_uart_read_fd() local
52 return altera_avalon_uart_read(&dev->state, buffer, space, in altera_avalon_uart_read_fd()
59 altera_avalon_uart_dev* dev = (altera_avalon_uart_dev*) fd->dev; in altera_avalon_uart_write_fd() local
61 return altera_avalon_uart_write(&dev->state, buffer, space, in altera_avalon_uart_write_fd()
83 altera_avalon_uart_dev* dev = (altera_avalon_uart_dev*) fd->dev; in altera_avalon_uart_ioctl_fd() local
85 return altera_avalon_uart_ioctl(&dev->state, req, arg); in altera_avalon_uart_ioctl_fd()
93 altera_avalon_uart_dev* dev = (altera_avalon_uart_dev*) fd->dev; in altera_avalon_uart_close_fd() local
95 return altera_avalon_uart_close(&dev->state, fd->fd_flags); in altera_avalon_uart_close_fd()
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_avalon_jtag_uart/HAL/src/
Daltera_avalon_jtag_uart_fd.c51 altera_avalon_jtag_uart_dev* dev = (altera_avalon_jtag_uart_dev*) fd->dev; in altera_avalon_jtag_uart_read_fd() local
53 return altera_avalon_jtag_uart_read(&dev->state, buffer, space, in altera_avalon_jtag_uart_read_fd()
60 altera_avalon_jtag_uart_dev* dev = (altera_avalon_jtag_uart_dev*) fd->dev; in altera_avalon_jtag_uart_write_fd() local
62 return altera_avalon_jtag_uart_write(&dev->state, buffer, space, in altera_avalon_jtag_uart_write_fd()
71 altera_avalon_jtag_uart_dev* dev = (altera_avalon_jtag_uart_dev*) fd->dev; in altera_avalon_jtag_uart_close_fd() local
73 return altera_avalon_jtag_uart_close(&dev->state, fd->fd_flags); in altera_avalon_jtag_uart_close_fd()
79 altera_avalon_jtag_uart_dev* dev = (altera_avalon_jtag_uart_dev*) fd->dev; in altera_avalon_jtag_uart_ioctl_fd() local
81 return altera_avalon_jtag_uart_ioctl(&dev->state, req, arg); in altera_avalon_jtag_uart_ioctl_fd()
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_avalon_sgdma/HAL/inc/
Daltera_avalon_sgdma.h77 alt_sgdma_dev *dev,
81 alt_sgdma_dev *dev,
141 alt_sgdma_dev *dev,
146 void alt_avalon_sgdma_start(alt_sgdma_dev *dev);
148 void alt_avalon_sgdma_stop(alt_sgdma_dev *dev);
154 void alt_avalon_sgdma_enable_desc_poll(alt_sgdma_dev *dev, alt_u32 frequency);
156 void alt_avalon_sgdma_disable_desc_poll(alt_sgdma_dev *dev);
184 void alt_avalon_sgdma_init (alt_sgdma_dev *dev, alt_u32 ic_id, alt_u32 irq);
192 #define ALTERA_AVALON_SGDMA_INSTANCE(name, dev) \ argument
193 static alt_sgdma_dev dev = \
[all …]
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_msgdma/HAL/inc/
Daltera_msgdma.h220 alt_msgdma_dev *dev,
226 alt_msgdma_dev *dev,
230 alt_msgdma_dev *dev,
234 alt_msgdma_dev *dev,
242 alt_msgdma_dev *dev,
249 alt_msgdma_dev *dev,
256 alt_msgdma_dev *dev,
266 alt_msgdma_dev *dev,
276 alt_msgdma_dev *dev,
289 alt_msgdma_dev *dev,
[all …]
/hal_altera-3.6.0-3.5.0-3.4.0/altera_hal/HAL/inc/sys/
Dalt_dev.h66 alt_dev* dev; member
100 extern int alt_fs_reg (alt_dev* dev);
102 static ALT_INLINE int alt_dev_reg (alt_dev* dev) in alt_dev_reg() argument
106 return alt_dev_llist_insert ((alt_dev_llist*) dev, &alt_dev_list); in alt_dev_reg()
Dalt_log_printf.h239 void alt_log_jtag_uart_startup_info(altera_avalon_jtag_uart_state* dev, int base);
240 void alt_log_jtag_uart_print_control_reg(altera_avalon_jtag_uart_state* dev, \
242 void alt_log_jtag_uart_isr_proc(int base, altera_avalon_jtag_uart_state* dev);
293 #define ALT_LOG_JTAG_UART_ALARM_REGISTER(dev, base) \ argument
297 dev);} \
299 alt_log_jtag_uart_startup_info(dev, base);} \
304 #define ALT_LOG_JTAG_UART_ISR_FUNCTION(base, dev) \ argument
305 do { alt_log_jtag_uart_isr_proc(base, dev); } while (0)
309 #define ALT_LOG_JTAG_UART_ALARM_REGISTER(dev, base) argument
310 #define ALT_LOG_JTAG_UART_ISR_FUNCTION(base, dev) argument
[all …]
Dalt_dma_dev.h172 static ALT_INLINE int alt_dma_txchan_reg (alt_dma_txchan_dev* dev) in alt_dma_txchan_reg() argument
176 return alt_dev_llist_insert((alt_dev_llist*) dev, &alt_dma_txchan_list); in alt_dma_txchan_reg()
183 static ALT_INLINE int alt_dma_rxchan_reg (alt_dma_rxchan_dev* dev) in alt_dma_rxchan_reg() argument
187 return alt_dev_llist_insert((alt_dev_llist*) dev, &alt_dma_rxchan_list); in alt_dma_rxchan_reg()
Dalt_dma.h147 extern alt_dma_rxchan alt_dma_rxchan_open (const char* dev);
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_avalon_sysid/HAL/inc/
Daltera_avalon_sysid.h47 #define ALTERA_AVALON_SYSID_INSTANCE(name, dev) extern int alt_no_storage argument
48 #define ALTERA_AVALON_SYSID_INIT(name, dev) while (0) argument
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_generic_qspi_controller2/HAL/inc/
Daltera_generic_quad_spi_controller2.h50 alt_flash_dev dev; member
72 .dev = { \
117 extern alt_32 altera_qspi_controller2_init(alt_qspi_controller2_dev *dev);
123 #define ALTERA_GENERIC_QUAD_SPI_CONTROLLER2_INIT(name, dev) \ argument
124 altera_qspi_controller2_init(&dev);
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_epcq_controller/HAL/inc/
Daltera_epcq_controller.h46 alt_flash_dev dev; member
65 .dev = { \
111 extern alt_32 altera_epcq_controller_init(alt_epcq_controller_dev *dev);
116 #define ALTERA_EPCQ_CONTROLLER_INIT(name, dev) \ argument
117 altera_epcq_controller_init(&dev);
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_avalon_jtag_uart/HAL/inc/
Daltera_avalon_jtag_uart.h185 #define ALTERA_AVALON_JTAG_UART_INSTANCE(name, dev) \ argument
186 ALTERA_AVALON_JTAG_UART_DEV_INSTANCE(name, dev)
187 #define ALTERA_AVALON_JTAG_UART_INIT(name, dev) \ argument
188 ALTERA_AVALON_JTAG_UART_DEV_INIT(name, dev)
Daltera_avalon_jtag_uart_fd.h53 alt_dev dev; member
82 #define ALTERA_AVALON_JTAG_UART_DEV_INIT(name, d) alt_dev_reg (&d.dev)
114 alt_dev_reg(&d.dev); \
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_avalon_timer/HAL/inc/
Daltera_avalon_timer.h87 #define ALTERA_AVALON_TIMER_INSTANCE(name, dev) extern int alt_no_storage argument
146 #define ALTERA_AVALON_TIMER_INIT(name, dev) \ argument
151 ALT_LINK_ERROR ("Error: Interrupt not connected for " #dev ". " \
176 #dev ". " \
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_avalon_i2c/HAL/src/
Daltera_avalon_i2c.c99 ALT_AVALON_I2C_DEV_t *dev = (ALT_AVALON_I2C_DEV_t *) context; in alt_avalon_i2c_irq() local
103 alt_avalon_i2c_int_disable(dev,ALT_AVALON_I2C_ISR_ALLINTS_MSK); in alt_avalon_i2c_irq()
106 alt_avalon_i2c_int_clear(dev,ALT_AVALON_I2C_ISR_ALL_CLEARABLE_INTS_MSK); in alt_avalon_i2c_irq()
114 if(dev->callback) in alt_avalon_i2c_irq()
117 dev->callback(dev); in alt_avalon_i2c_irq()
126 ALT_AVALON_I2C_DEV_t *dev, in alt_avalon_i2c_register_callback() argument
131 dev->callback = callback; in alt_avalon_i2c_register_callback()
132 dev->callback_context = context; in alt_avalon_i2c_register_callback()
133 dev->control = control; in alt_avalon_i2c_register_callback()
141 void alt_avalon_i2c_init (ALT_AVALON_I2C_DEV_t *dev) in alt_avalon_i2c_init() argument
[all …]
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_avalon_uart/HAL/inc/
Daltera_avalon_uart_fd.h52 alt_dev dev; member
81 #define ALTERA_AVALON_UART_DEV_INIT(name, d) alt_dev_reg (&d.dev)
132 alt_dev_reg(&d.dev); \
Daltera_avalon_uart.h306 #define ALTERA_AVALON_UART_INSTANCE(name, dev) \ argument
307 ALTERA_AVALON_UART_DEV_INSTANCE(name, dev)
308 #define ALTERA_AVALON_UART_INIT(name, dev) \ argument
309 ALTERA_AVALON_UART_DEV_INIT(name, dev)
/hal_altera-3.6.0-3.5.0-3.4.0/altera_hal/HAL/inc/priv/
Dalt_dev_llist.h69 extern int alt_dev_llist_insert (alt_dev_llist* dev, alt_llist* list);
Dalt_file.h86 extern int alt_get_fd (alt_dev* dev);
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_generic_qspi_controller2/HAL/src/
Daltera_generic_quad_spi_controller2.c1238 flash->dev.number_of_regions = 0; in altera_qspi_controller2_init()
1262 flash->dev.number_of_regions = 1; in altera_qspi_controller2_init()
1264 flash->dev.region_info[0].offset = 0; in altera_qspi_controller2_init()
1266 flash->dev.region_info[0].region_size = size_in_bytes; in altera_qspi_controller2_init()
1268 flash->dev.region_info[0].number_of_blocks = number_of_sectors; in altera_qspi_controller2_init()
1270 flash->dev.region_info[0].block_size = flash->sector_size; in altera_qspi_controller2_init()
1288 alt_flash_device_register(&(flash->dev)); in altera_qspi_controller2_init()
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_epcq_controller/HAL/src/
Daltera_epcq_controller.c654 flash->dev.number_of_regions = 0; in altera_epcq_controller_init()
666 flash->dev.number_of_regions = 1; in altera_epcq_controller_init()
667 flash->dev.region_info[0].offset = 0; in altera_epcq_controller_init()
668 flash->dev.region_info[0].region_size = size_in_bytes; in altera_epcq_controller_init()
669 flash->dev.region_info[0].number_of_blocks = number_of_sectors; in altera_epcq_controller_init()
670 flash->dev.region_info[0].block_size = flash->sector_size; in altera_epcq_controller_init()
679 alt_flash_device_register(&(flash->dev)); in altera_epcq_controller_init()
/hal_altera-3.6.0-3.5.0-3.4.0/altera_hal/HAL/src/
Daltera_common.c71 int alt_dev_llist_insert (alt_dev_llist* dev, alt_llist* list) in alt_dev_llist_insert() argument
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_avalon_i2c/HAL/inc/
Daltera_avalon_i2c.h184 #define ALTERA_AVALON_I2C_INSTANCE(name, dev) \ argument
185 static ALT_AVALON_I2C_DEV_t dev = \
221 #define ALTERA_AVALON_I2C_INIT(name, dev) alt_avalon_i2c_init(&dev); argument