Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 14 of 14) sorted by relevance

/hal_altera-3.6.0-3.5.0-3.4.0/altera_hal/HAL/inc/sys/
Dalt_flash.h64 void alt_flash_close_dev(alt_flash_fd* fd );
74 alt_flash_fd* fd, alt_u32 sectors_to_lock) in alt_lock_flash() argument
76 return fd->lock( fd, sectors_to_lock); in alt_lock_flash()
91 alt_flash_fd* fd, in alt_write_flash() argument
96 return fd->write( fd, offset, src_addr, length ); in alt_write_flash()
107 alt_flash_fd* fd, int offset, in alt_read_flash() argument
110 return fd->read( fd, offset, dest_addr, length ); in alt_read_flash()
120 alt_flash_fd* fd, flash_region** info, in alt_get_flash_info() argument
123 return fd->get_info( fd, info, number_of_regions); in alt_get_flash_info()
133 alt_flash_fd* fd, int offset, int length) in alt_erase_flash_block() argument
[all …]
Dalt_dev.h78 int (*open) (alt_fd* fd, const char* name, int flags, int mode);
79 int (*close) (alt_fd* fd);
80 int (*read) (alt_fd* fd, char* ptr, int len);
81 int (*write) (alt_fd* fd, const char* ptr, int len);
82 int (*lseek) (alt_fd* fd, int ptr, int dir);
83 int (*fstat) (alt_fd* fd, struct stat* buf);
84 int (*ioctl) (alt_fd* fd, int req, void* arg);
Dioctl.h56 extern int ioctl (int fd, int req, void* arg);
Dalt_flash_dev.h56 static ALT_INLINE int alt_flash_device_register( alt_flash_fd* fd) in alt_flash_device_register() argument
60 return alt_dev_llist_insert ((alt_dev_llist*) fd, &alt_flash_dev_list); in alt_flash_device_register()
Dtermios.h171 # define tcdrain(fd) _ioctl (fd, _TCSBRK, 1) argument
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_avalon_uart/HAL/src/
Daltera_avalon_uart_fd.c48 altera_avalon_uart_read_fd(alt_fd* fd, char* buffer, int space) in altera_avalon_uart_read_fd() argument
50 altera_avalon_uart_dev* dev = (altera_avalon_uart_dev*) fd->dev; in altera_avalon_uart_read_fd()
53 fd->fd_flags); in altera_avalon_uart_read_fd()
57 altera_avalon_uart_write_fd(alt_fd* fd, const char* buffer, int space) in altera_avalon_uart_write_fd() argument
59 altera_avalon_uart_dev* dev = (altera_avalon_uart_dev*) fd->dev; in altera_avalon_uart_write_fd()
62 fd->fd_flags); in altera_avalon_uart_write_fd()
81 altera_avalon_uart_ioctl_fd(alt_fd* fd, int req, void* arg) in altera_avalon_uart_ioctl_fd() argument
83 altera_avalon_uart_dev* dev = (altera_avalon_uart_dev*) fd->dev; in altera_avalon_uart_ioctl_fd()
91 altera_avalon_uart_close_fd(alt_fd* fd) in altera_avalon_uart_close_fd() argument
93 altera_avalon_uart_dev* dev = (altera_avalon_uart_dev*) fd->dev; in altera_avalon_uart_close_fd()
[all …]
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_avalon_jtag_uart/HAL/src/
Daltera_avalon_jtag_uart_fd.c49 altera_avalon_jtag_uart_read_fd(alt_fd* fd, char* buffer, int space) in altera_avalon_jtag_uart_read_fd() argument
51 altera_avalon_jtag_uart_dev* dev = (altera_avalon_jtag_uart_dev*) fd->dev; in altera_avalon_jtag_uart_read_fd()
54 fd->fd_flags); in altera_avalon_jtag_uart_read_fd()
58 altera_avalon_jtag_uart_write_fd(alt_fd* fd, const char* buffer, int space) in altera_avalon_jtag_uart_write_fd() argument
60 altera_avalon_jtag_uart_dev* dev = (altera_avalon_jtag_uart_dev*) fd->dev; in altera_avalon_jtag_uart_write_fd()
63 fd->fd_flags); in altera_avalon_jtag_uart_write_fd()
69 altera_avalon_jtag_uart_close_fd(alt_fd* fd) in altera_avalon_jtag_uart_close_fd() argument
71 altera_avalon_jtag_uart_dev* dev = (altera_avalon_jtag_uart_dev*) fd->dev; in altera_avalon_jtag_uart_close_fd()
73 return altera_avalon_jtag_uart_close(&dev->state, fd->fd_flags); in altera_avalon_jtag_uart_close_fd()
77 altera_avalon_jtag_uart_ioctl_fd(alt_fd* fd, int req, void* arg) in altera_avalon_jtag_uart_ioctl_fd() argument
[all …]
/hal_altera-3.6.0-3.5.0-3.4.0/altera_hal/HAL/inc/priv/
Dalt_file.h92 extern void alt_release_fd (int fd);
102 extern int alt_fd_lock (alt_fd* fd);
109 extern int alt_fd_unlock (alt_fd* fd);
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_avalon_jtag_uart/HAL/inc/
Daltera_avalon_jtag_uart_fd.h42 extern int altera_avalon_jtag_uart_read_fd (alt_fd* fd, char* ptr, int len);
43 extern int altera_avalon_jtag_uart_write_fd (alt_fd* fd, const char* ptr,
86 extern int altera_avalon_jtag_uart_close_fd(alt_fd* fd);
87 extern int altera_avalon_jtag_uart_ioctl_fd (alt_fd* fd, int req, void* arg);
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_avalon_uart/HAL/inc/
Daltera_avalon_uart_fd.h42 extern int altera_avalon_uart_read_fd (alt_fd* fd, char* ptr, int len);
43 extern int altera_avalon_uart_write_fd (alt_fd* fd, const char* ptr,
85 extern int altera_avalon_uart_ioctl_fd (alt_fd* fd, int req, void* arg);
86 extern int altera_avalon_uart_close_fd(alt_fd* fd);
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_generic_qspi_controller2/HAL/inc/
Daltera_generic_quad_spi_controller2.h103 int alt_qspi_controller2_get_info(alt_flash_fd *fd, flash_region **info, int *number_of_regions);
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_epcq_controller/HAL/inc/
Daltera_epcq_controller.h97 int alt_epcq_controller_get_info(alt_flash_fd *fd, flash_region **info, int *number_of_regions);
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_generic_qspi_controller2/HAL/src/
Daltera_generic_quad_spi_controller2.c202 alt_flash_fd *fd, /** flash device descriptor */ in alt_qspi_controller2_get_info() argument
218 if(NULL == fd || NULL == info || NULL == number_of_regions) in alt_qspi_controller2_get_info()
228 flash = (alt_flash_dev*)fd; in alt_qspi_controller2_get_info()
/hal_altera-3.6.0-3.5.0-3.4.0/drivers/altera_epcq_controller/HAL/src/
Daltera_epcq_controller.c136 alt_flash_fd *fd, /** flash device descriptor */ in alt_epcq_controller_get_info() argument
144 if(NULL == fd || NULL == info || NULL == number_of_regions) in alt_epcq_controller_get_info()
149 flash = (alt_flash_dev*)fd; in alt_epcq_controller_get_info()