Searched refs:buf (Results 1 – 3 of 3) sorted by relevance
| /libpciaccess/src/ |
| H A D | common_bridge.c | 59 uint8_t buf[0x40]; in read_bridge_info() local 84 info->primary_bus = buf[0x18]; in read_bridge_info() 85 info->secondary_bus = buf[0x19]; in read_bridge_info() 86 info->subordinate_bus = buf[0x1a]; in read_bridge_info() 89 info->io_type = buf[0x1c] & 0x0f; in read_bridge_info() 91 + (((uint32_t) buf[0x30]) << 16) in read_bridge_info() 96 + (((uint32_t) buf[0x32]) << 16) in read_bridge_info() 99 info->mem_type = buf[0x20] & 0x0f; in read_bridge_info() 142 info->primary_bus = buf[0x18]; in read_bridge_info() 143 info->card_bus = buf[0x19]; in read_bridge_info() [all …]
|
| H A D | common_vgaarb.c | 139 ret = read(pci_sys->vgaarb_fd, buf, BUFSIZE); in pci_device_vgaarb_init() 178 vgaarb_write(int fd, char *buf, int len) in vgaarb_write() argument 183 buf[len] = '\0'; in vgaarb_write() 185 ret = write(fd, buf, len); in vgaarb_write() 242 ret = vgaarb_write(pci_sys->vgaarb_fd, buf, len); in pci_device_vgaarb_set_target() 246 ret = read(pci_sys->vgaarb_fd, buf, BUFSIZE); in pci_device_vgaarb_set_target() 271 ret = vgaarb_write(pci_sys->vgaarb_fd, buf, len); in pci_device_vgaarb_decodes() 275 ret = read(pci_sys->vgaarb_fd, buf, BUFSIZE); in pci_device_vgaarb_decodes() 290 char buf[BUFSIZE]; in pci_device_vgaarb_lock() local 308 char buf[BUFSIZE]; in pci_device_vgaarb_trylock() local [all …]
|
| H A D | common_device_name.c | 206 char buf[128]; in populate_vendor() local 225 while( pci_id_file_gets( buf, sizeof( buf ), f ) != NULL ) { in populate_vendor() 235 if ( buf[ num_tabs ] != '\t' ) { in populate_vendor() 240 if ( !isxdigit( buf[ num_tabs + 0 ] ) in populate_vendor() 241 || !isxdigit( buf[ num_tabs + 1 ] ) in populate_vendor() 242 || !isxdigit( buf[ num_tabs + 2 ] ) in populate_vendor() 243 || !isxdigit( buf[ num_tabs + 3 ] ) ) { in populate_vendor() 247 new_line = strchr( buf, '\n' ); in populate_vendor() 252 length = strlen( buf ); in populate_vendor() 253 (void) memset( buf + length, 0, sizeof( buf ) - length ); in populate_vendor() [all …]
|