/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/ |
D | SysCalls.c | 58 struct __filedes *filp; in ValidateFD() local 62 filp = &gMD->fdarray[fd]; in ValidateFD() 65 retval = (BOOLEAN)((filp->f_iflags != 0) && // TRUE if OPEN in ValidateFD() 66 FILE_IS_USABLE(filp)); // and Usable (not Larval or Closing) in ValidateFD() 528 struct __filedes *filp; in lseek() local 534 filp = &gMD->fdarray[fd]; in lseek() 536 CurPos = filp->f_ops->fo_lseek( filp, offset, how); in lseek() 538 filp->f_offset = CurPos; in lseek() 665 struct __filedes *filp; in open() local 692 filp = &gMD->fdarray[fd]; in open() [all …]
|
/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/InteractiveIO/ |
D | IIO.c | 66 struct __filedes *filp, in IIO_Read() argument 78 This = filp->devdata; in IIO_Read() 82 NumRead = IIO_CanonRead(filp); in IIO_Read() 85 NumRead = IIO_NonCanonRead(filp); in IIO_Read() 88 if(filp->f_iflags & _S_IWTTY) { in IIO_Read() 143 struct __filedes *filp, in IIO_Write() argument 163 OutMode = IIO_GetOutputSize(filp->MyFD, &MaxColumn, &MaxRow); in IIO_Write() 165 This = filp->devdata; in IIO_Write() 167 if(filp->MyFD == STDERR_FILENO) { in IIO_Write() 181 (void)IIO_GetCursorPosition(filp->MyFD, &This->InitialXY.Column, &This->InitialXY.Row); in IIO_Write() [all …]
|
D | IIOutilities.c | 41 struct __filedes **filp in IIO_GetDeviceProto() argument 53 if(filp != NULL) { in IIO_GetDeviceProto() 54 *filp = pfil; in IIO_GetDeviceProto() 72 struct __filedes *filp, in IIO_GetInChar() argument 85 This = filp->devdata; in IIO_GetInChar() 101 NumRead = filp->f_ops->fo_read(filp, &filp->f_offset, sizeof(wchar_t), &InChar); in IIO_GetInChar() 167 struct __filedes *filp, in IIO_SetCursorPosition() argument 178 This = filp->devdata; in IIO_SetCursorPosition() 179 Proto = (EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *)IIO_GetDeviceProto(filp->MyFD, NULL); in IIO_SetCursorPosition() 181 if(((filp->f_iflags & _S_ITTY) != 0) && // file is a TTY in IIO_SetCursorPosition() [all …]
|
D | TerminalFunctions.c | 149 struct __filedes *filp; in tcgetattr() local 154 filp = &gMD->fdarray[fd]; in tcgetattr() 156 if((filp->f_iflags & _S_ITTY) != 0) { in tcgetattr() 158 IIO = (cIIO *)filp->devdata; in tcgetattr() 207 struct __filedes *filp; in tcsetattr() local 212 filp = &gMD->fdarray[fd]; in tcsetattr() 214 if((filp->f_iflags & _S_ITTY) != 0) { in tcsetattr() 216 IIO = (cIIO *)filp->devdata; in tcsetattr()
|
D | IIOecho.c | 50 struct __filedes *filp, in IIO_EchoOne() argument 65 This = filp->devdata; in IIO_EchoOne() 90 (void)IIO_WriteOne(filp, OutBuf, CHAR_BACKSPACE); in IIO_EchoOne() 94 (void)IIO_WriteOne(filp, OutBuf, L' '); in IIO_EchoOne() 97 (void)IIO_WriteOne(filp, OutBuf, CHAR_BACKSPACE); in IIO_EchoOne() 116 (void)IIO_WriteOne(filp, OutBuf, L' '); in IIO_EchoOne() 131 NumEcho = IIO_WriteOne(filp, OutBuf, InCh); in IIO_EchoOne()
|
D | NonCanonRead.c | 34 struct __filedes *filp in IIO_NonCanonRead() argument 48 This = filp->devdata; in IIO_NonCanonRead() 74 NumRead = filp->f_ops->fo_read(filp, &filp->f_offset, sizeof(wchar_t), &InChar); in IIO_NonCanonRead()
|
D | IIOutilities.h | 35 struct __filedes **filp // Optional - filp == NULL if unused 50 struct __filedes *filp, 84 struct __filedes *filp,
|
D | CanonRead.c | 37 struct __filedes *filp in IIO_CanonRead() argument 58 This = filp->devdata; in IIO_CanonRead() 89 InChar = IIO_GetInChar(filp, FirstRead); in IIO_CanonRead()
|
D | IIOwrite.c | 52 IIO_WriteOne(struct __filedes *filp, cFIFO *OBuf, wchar_t InCh) in IIO_WriteOne() argument 69 This = filp->devdata; in IIO_WriteOne()
|
/device/linaro/bootloader/edk2/StdLibPrivateInternalFiles/Include/ |
D | kfile.h | 110 int (EFIAPI *fo_close) (struct __filedes *filp); 112 ssize_t (EFIAPI *fo_read) (struct __filedes *filp, off_t *Offset, size_t Len, void *Buf); 113 …ssize_t (EFIAPI *fo_write) (struct __filedes *filp, off_t *Offset, size_t Len, const void *Buf); 116 int (EFIAPI *fo_fcntl) (struct __filedes *filp, UINT32 Cmd, void *p3, void *p4); 117 short (EFIAPI *fo_poll) (struct __filedes *filp, short Events); 118 int (EFIAPI *fo_flush) (struct __filedes *filp); 121 int (EFIAPI *fo_stat) (struct __filedes *filp, struct stat *StatBuf, void *Buf); 122 int (EFIAPI *fo_ioctl) (struct __filedes *filp, ULONGN Cmd, va_list argp); 123 int (EFIAPI *fo_delete) (struct __filedes *filp); 124 int (EFIAPI *fo_rmdir) (struct __filedes *filp); [all …]
|
/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/Devices/Console/ |
D | daConsole.c | 124 struct __filedes *filp, in da_ConSeek() argument 133 Stream = BASE_CR(filp->f_ops, ConInstance, Abstraction); in da_ConSeek() 175 IN struct __filedes *filp, in da_ConWrite() argument 188 Stream = BASE_CR(filp->f_ops, ConInstance, Abstraction); in da_ConWrite() 241 IN OUT struct __filedes *filp, in da_ConRawRead() argument 252 Self = (cIIO *)filp->devdata; in da_ConRawRead() 253 Stream = BASE_CR(filp->f_ops, ConInstance, Abstraction); in da_ConRawRead() 317 IN OUT struct __filedes *filp, in da_ConRead() argument 337 Stream = BASE_CR(filp->f_ops, ConInstance, Abstraction); in da_ConRead() 339 BlockingMode = (BOOLEAN)((filp->Oflags & O_NONBLOCK) == 0); in da_ConRead() [all …]
|
/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/Devices/UefiShell/ |
D | daShell.c | 72 struct __filedes *filp in da_ShellDelete() argument 77 Status = ShellDeleteFile( (SHELL_FILE_HANDLE *)&filp->devdata); in da_ShellDelete() 98 struct __filedes *filp, in da_ShellSeek() argument 107 FileHandle = (SHELL_FILE_HANDLE)filp->devdata; in da_ShellSeek() 213 IN OUT struct __filedes *filp, in da_ShellRead() argument 224 BufSize = (ssize_t)da_ShellSeek(filp, *offset, SEEK_SET); in da_ShellRead() 226 filp->f_offset = BufSize; in da_ShellRead() 231 FileHandle = (SHELL_FILE_HANDLE)filp->devdata; in da_ShellRead() 245 filp->f_offset += BufSize; // Advance to where we want to read next. in da_ShellRead() 264 IN struct __filedes *filp, in da_ShellWrite() argument [all …]
|
/device/linaro/bootloader/edk2/StdLibPrivateInternalFiles/Include/Device/ |
D | IIO.h | 30 typedef ssize_t (EFIAPI *cIIO_Read) (struct __filedes *filp, size_t BufferSize, VOID *Buffer); 32 typedef ssize_t (EFIAPI *cIIO_Write) (struct __filedes *filp, const char *buf, ssize_t n); 34 typedef ssize_t (EFIAPI *cIIO_Echo) (struct __filedes *filp, wchar_t EChar, BOOLEAN EchoIsOK); 75 ssize_t IIO_CanonRead (struct __filedes *filp); 76 ssize_t IIO_NonCanonRead (struct __filedes *filp); 77 ssize_t IIO_WriteOne (struct __filedes *filp, cFIFO *Buf, wchar_t InCh); 78 ssize_t IIO_EchoOne (struct __filedes *filp, wchar_t InCh, BOOLEAN EchoIsOK);
|
D | Console.h | 45 IN struct __filedes *filp,
|
/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/Devices/Utility/ |
D | DevGenisis.c | 35 int EFIAPI fnullop_fcntl (struct __filedes *filp, UINT32 Cmd, void *p3, void *p4) in fnullop_fcntl() argument 38 short EFIAPI fnullop_poll (struct __filedes *filp, short Events) in fnullop_poll() argument 43 int EFIAPI fnullop_flush (struct __filedes *filp) in fnullop_flush() argument 46 int EFIAPI fbadop_stat (struct __filedes *filp, struct stat *StatBuf, void *Buf) in fbadop_stat() argument 52 int EFIAPI fbadop_ioctl (struct __filedes *filp, ULONGN Cmd, va_list argp) in fbadop_ioctl() argument 58 int EFIAPI fbadop_delete (struct __filedes *filp) in fbadop_delete() argument 76 int EFIAPI fbadop_rmdir (struct __filedes *filp) in fbadop_rmdir() argument
|