/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | io.c | 653 get_dev_func_num(Prom_node *card_node, int *dev_no, int *func_no) in get_dev_func_num() argument 660 *dev_no = PCI_REG_TO_DEV(int_val); in get_dev_func_num() 663 *dev_no = -1; in get_dev_func_num() 850 get_dev_func_num(card_node, &card.dev_no, in display_psycho_pci() 858 D_PRINTF("device no [%d] - ", card.dev_no); in display_psycho_pci() 880 pci_bridge_dev_no = card.dev_no; in display_psycho_pci() 894 card.dev_no = pci_bridge_dev_no; in display_psycho_pci() 902 "[%s] slot [%s]", name, card.dev_no, in display_psycho_pci() 903 slot_name_arr[card.dev_no], in display_psycho_pci() 962 if (card->dev_no != -1) { in get_slot_number_str() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/cherrystone/common/ |
H A D | workfile.c | 563 pci_card->dev_no = (((*int_val) & 0xF800) >> 11); in fill_pci_card_list() 566 pci_card->dev_no = -1; in fill_pci_card_list() 572 if ((pci_card->dev_no < 1 || pci_card->dev_no > 2) && in fill_pci_card_list() 579 if ((pci_card->dev_no < 2 || pci_card->dev_no > 5) && in fill_pci_card_list() 609 pci_bridge_dev_no = pci_card->dev_no; in fill_pci_card_list() 623 if (pci_card->dev_no != -1) { in fill_pci_card_list() 641 slot_name_arr[pci_card->dev_no-2]; in fill_pci_card_list() 644 slot_name_arr[pci_card->dev_no-1]; in fill_pci_card_list()
|
H A D | cherrystone.c | 401 p->dev_no, p->func_no, p->status, p->name); in display_io_cards()
|
/illumos-gate/usr/src/cmd/pcitool/ |
H A D | pcitool.c | 136 static int get_config_header(int fd, uint8_t bus_no, uint8_t dev_no, 330 info_p->bus_no, info_p->dev_no, info_p->func_no); in print_probe_info_verbose() 381 info_p->bus_no, info_p->dev_no, info_p->func_no); in print_probe_info_nonverbose() 435 get_config_header(int fd, uint8_t bus_no, uint8_t dev_no, uint8_t func_no, in get_config_header() argument 446 cfg_prg.dev_no = dev_no; in get_config_header() 469 uint8_t dev_no = 0; in supports_ari() local 474 cfg_prg.dev_no = dev_no; in supports_ari() 622 prg_p->dev_no = (func >> 3) & 0x1f; in probe_dev() 705 prg_p->dev_no, prg_p->func_no, &config_hdr)) != in probe_dev() 841 prg.dev_no = dev; in do_probe() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/daktari/common/ |
H A D | workfile.c | 668 pci_card->dev_no = (((*int_val) & 0xF800) >> 11); in fill_pci_card_list() 671 pci_card->dev_no = -1; in fill_pci_card_list() 694 pci_bridge_dev_no = pci_card->dev_no; in fill_pci_card_list() 699 if ((pci_card->pci_bus == 'B') && (pci_card->dev_no == 1) && in fill_pci_card_list() 713 if (pci_card->dev_no != -1) { in fill_pci_card_list() 731 slot_name_arr[pci_card->dev_no-2]; in fill_pci_card_list() 734 slot_name_arr[pci_card->dev_no-1]; in fill_pci_card_list()
|
H A D | daktari.c | 554 log_printf("%-1d,%-1d ", p->dev_no, p->func_no); in display_io_cards()
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/littleneck/common/ |
H A D | workfile.c | 686 pci_card->dev_no = (((*int_val) & 0xF800) >> 11); in fill_pci_card_list() 689 pci_card->dev_no = -1; in fill_pci_card_list() 694 if ((pci_card->pci_bus == 'A') && (pci_card->dev_no != 1) && in fill_pci_card_list() 699 if ((pci_card->pci_bus == 'B') && (pci_card->dev_no > 4)) { in fill_pci_card_list() 723 pci_bridge_dev_no = pci_card->dev_no; in fill_pci_card_list() 737 if (pci_card->dev_no != -1) { in fill_pci_card_list() 749 slot_name_arr[pci_card->dev_no-1]; in fill_pci_card_list()
|
H A D | littleneck.c | 415 p->dev_no, p->func_no); in display_io_cards()
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/opl/common/ |
H A D | opl_picl.c | 65 int dev_no, int *actual, int *maximum, uint32_t *speed_max, 211 pci_card.dev_no = in opl_pci_callback() 221 err = get_lane_width(root_path, pci_card.slot, pci_card.dev_no, in opl_pci_callback() 327 pci_card.slot, pci_card.dev_no, pci_card.func_no); in opl_pci_callback() 582 prg.dev_no = dev; in read_long() 605 prg.dev_no = dev; in read_word() 628 prg.dev_no = dev; in read_byte()
|
/illumos-gate/usr/src/uts/sun4v/io/px/ |
H A D | px_tools_4v.c | 248 req.bdf = PCI_GETBDF(prg_p->bus_no, prg_p->dev_no, prg_p->func_no); in pxtool_pcicfg_access() 275 prg_p->bus_no, prg_p->dev_no, prg_p->func_no, in pxtool_pcicfg_access() 319 prg_p->bus_no, prg_p->dev_no, prg_p->func_no, in pxtool_pcicfg_access() 481 prg.bus_no, prg.dev_no, prg.func_no); in pxtool_bus_reg_ops()
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/serengeti/common/ |
H A D | serengeti.c | 340 card.dev_no = (((*int_val) & 0xF800) >> 11); in display_pci() 343 card.dev_no = -1; in display_pci() 383 pci_bridge_dev_no = card.dev_no; in display_pci() 387 pci_bridge_dev_no = card.dev_no; in display_pci() 413 if (card.dev_no != -1) { in display_pci() 433 card.dev_no); in display_pci() 436 slot_name_arr[card.dev_no - 1]; in display_pci() 461 card.dev_no, slot_name, in display_pci() 905 log_printf("%-1d,%-1d ", p->dev_no, p->func_no, 0); in display_io_max_bus_speed()
|
/illumos-gate/usr/src/lib/libprtdiag/inc/ |
H A D | display_sun4u.h | 79 int dev_no; /* device number */ member
|
H A D | libprtdiag.h | 114 void get_dev_func_num(Prom_node *card_node, int *dev_no, int *func_no);
|
/illumos-gate/usr/src/uts/sun4/io/px/ |
H A D | px_tools_var.h | 47 ((p_p)->dev_no << PCI_REG_DEV_SHIFT) + \
|
H A D | px_tools.c | 439 ((prg->dev_no & in pxtool_validate_barnum_bdf() 440 (PCI_REG_DEV_M >> PCI_REG_DEV_SHIFT)) != prg->dev_no) || in pxtool_validate_barnum_bdf() 654 prg.bus_no, prg.dev_no, prg.func_no); in pxtool_dev_reg_ops()
|
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pci_tools.c | 711 ((prg->dev_no & in pcitool_validate_barnum_bdf() 712 (PCI_REG_DEV_M >> PCI_REG_DEV_SHIFT)) != prg->dev_no) || in pcitool_validate_barnum_bdf() 861 prg.bus_no, prg.dev_no, prg.func_no); in pcitool_dev_reg_ops() 880 (prg.dev_no << PCI_REG_DEV_SHIFT) + in pcitool_dev_reg_ops() 891 prg.bus_no << PCI_REG_BUS_SHIFT, prg.dev_no << PCI_REG_DEV_SHIFT, in pcitool_dev_reg_ops()
|
/illumos-gate/usr/src/uts/i86pc/io/pci/ |
H A D | pci_tools.c | 618 req.bdf = PCI_GETBDF(prg->bus_no, prg->dev_no, prg->func_no); in pcitool_cfg_access() 671 (prg->dev_no << PCIEX_REG_DEV_SHIFT) | in pcitool_cfg_access() 974 prg.bus_no, prg.dev_no, prg.func_no); in pcitool_dev_reg_ops() 979 ((prg.dev_no & in pcitool_dev_reg_ops() 981 prg.dev_no) || in pcitool_dev_reg_ops()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | pci_tools.h | 224 uint8_t dev_no; /* pci dev - to kernel */ member
|
/illumos-gate/usr/src/cmd/pcieadm/ |
H A D | pcieadm.c | 417 pci_reg.dev_no = pck->pck_dev; in pcieadm_read_cfgspace_kernel()
|