Lines Matching refs:barno

340 	enum pci_barno barno;  in epf_ntb_config_sspad_bar_clear()  local
342 barno = ntb->epf_ntb_bar[BAR_CONFIG]; in epf_ntb_config_sspad_bar_clear()
343 epf_bar = &ntb->epf->bar[barno]; in epf_ntb_config_sspad_bar_clear()
361 enum pci_barno barno; in epf_ntb_config_sspad_bar_set() local
369 barno = ntb->epf_ntb_bar[BAR_CONFIG]; in epf_ntb_config_sspad_bar_set()
370 epf_bar = &ntb->epf->bar[barno]; in epf_ntb_config_sspad_bar_set()
387 enum pci_barno barno; in epf_ntb_config_spad_bar_free() local
389 barno = ntb->epf_ntb_bar[BAR_CONFIG]; in epf_ntb_config_spad_bar_free()
390 pci_epf_free_space(ntb->epf, ntb->reg, barno, 0); in epf_ntb_config_spad_bar_free()
405 enum pci_barno barno; in epf_ntb_config_spad_bar_alloc() local
417 barno = ntb->epf_ntb_bar[BAR_CONFIG]; in epf_ntb_config_spad_bar_alloc()
418 size = epc_features->bar_fixed_size[barno]; in epf_ntb_config_spad_bar_alloc()
442 base = pci_epf_alloc_space(epf, size, barno, align, 0); in epf_ntb_config_spad_bar_alloc()
524 enum pci_barno barno; in epf_ntb_db_bar_init() local
540 barno = ntb->epf_ntb_bar[BAR_DB]; in epf_ntb_db_bar_init()
542 mw_addr = pci_epf_alloc_space(ntb->epf, size, barno, align, 0); in epf_ntb_db_bar_init()
550 epf_bar = &ntb->epf->bar[barno]; in epf_ntb_db_bar_init()
560 pci_epf_free_space(ntb->epf, mw_addr, barno, 0); in epf_ntb_db_bar_init()
573 enum pci_barno barno; in epf_ntb_db_bar_clear() local
575 barno = ntb->epf_ntb_bar[BAR_DB]; in epf_ntb_db_bar_clear()
576 pci_epf_free_space(ntb->epf, ntb->epf_db, barno, 0); in epf_ntb_db_bar_clear()
580 &ntb->epf->bar[barno]); in epf_ntb_db_bar_clear()
593 enum pci_barno barno; in epf_ntb_mw_bar_init() local
598 barno = ntb->epf_ntb_bar[BAR_MW0 + i]; in epf_ntb_mw_bar_init()
600 ntb->epf->bar[barno].barno = barno; in epf_ntb_mw_bar_init()
601 ntb->epf->bar[barno].size = size; in epf_ntb_mw_bar_init()
602 ntb->epf->bar[barno].addr = NULL; in epf_ntb_mw_bar_init()
603 ntb->epf->bar[barno].phys_addr = 0; in epf_ntb_mw_bar_init()
604 ntb->epf->bar[barno].flags |= upper_32_bits(size) ? in epf_ntb_mw_bar_init()
611 &ntb->epf->bar[barno]); in epf_ntb_mw_bar_init()
634 &ntb->epf->bar[barno]); in epf_ntb_mw_bar_init()
646 enum pci_barno barno; in epf_ntb_mw_bar_clear() local
650 barno = ntb->epf_ntb_bar[BAR_MW0 + i]; in epf_ntb_mw_bar_clear()
654 &ntb->epf->bar[barno]); in epf_ntb_mw_bar_clear()
683 enum pci_barno barno; in epf_ntb_init_epc_bar() local
689 barno = BAR_0; in epf_ntb_init_epc_bar()
695 for (bar = BAR_CONFIG; bar <= BAR_MW0; bar++, barno++) { in epf_ntb_init_epc_bar()
696 barno = pci_epc_get_next_free_bar(epc_features, barno); in epf_ntb_init_epc_bar()
697 if (barno < 0) { in epf_ntb_init_epc_bar()
699 return barno; in epf_ntb_init_epc_bar()
701 ntb->epf_ntb_bar[bar] = barno; in epf_ntb_init_epc_bar()
705 for (bar = BAR_MW1, i = 1; i < num_mws; bar++, barno++, i++) { in epf_ntb_init_epc_bar()
706 barno = pci_epc_get_next_free_bar(epc_features, barno); in epf_ntb_init_epc_bar()
707 if (barno < 0) { in epf_ntb_init_epc_bar()
711 ntb->epf_ntb_bar[bar] = barno; in epf_ntb_init_epc_bar()
1055 enum pci_barno barno; in vntb_epf_mw_set_trans() local
1060 barno = ntb->epf_ntb_bar[BAR_MW0 + idx]; in vntb_epf_mw_set_trans()
1061 epf_bar = &ntb->epf->bar[barno]; in vntb_epf_mw_set_trans()
1063 epf_bar->barno = barno; in vntb_epf_mw_set_trans()