Lines Matching refs:bus
75 static uint32_t read_long(int fd, int bus, int dev, int func,
77 static uint8_t read_byte(int fd, int bus, int dev, int func, int offset,
79 static uint16_t read_word(int fd, int bus, int dev, int func, int offset,
189 * Get bus#, dev# and func# for this card from 'reg' property.
228 * Set bus_type to PCI_UNKN so that bus frequency,
229 * bus type and lane width will print as "--" or UNKN.
572 read_long(int fd, int bus, int dev, int func, int offset, int *ret)
581 prg.bus_no = bus;
588 log_printf("%d.%d.%d offset 0x%x\n", bus, dev, func, offset);
595 read_word(int fd, int bus, int dev, int func, int offset, int *ret)
604 prg.bus_no = bus;
611 log_printf("%d.%d.%d offset 0x%x\n", bus, dev, func, offset);
618 read_byte(int fd, int bus, int dev, int func, int offset, int *ret)
627 prg.bus_no = bus;
634 log_printf("%d.%d.%d offset 0x%x\n", bus, dev, func, offset);
643 (char *device_path, int bus, int dev, int func, int *actual,
673 cap_ptr = read_byte(fd, bus, dev, func, PCI_CONF_CAP_PTR, &ret);
679 cap_reg = read_word(fd, bus, dev, func, cap_ptr, &ret);
690 link_cap = read_long(fd, bus, dev, func, cap_ptr +
696 link_status = read_word(fd, bus, dev, func,
713 (fd, bus, dev, func, PCI_CONF_HEADER, &ret);
723 sec_status = read_word(fd, bus, dev, func,
751 pcix_status = read_long(fd, bus, dev, func,
771 cap_reg = read_word(fd, bus, dev, func, cap_ptr, &ret);