Lines Matching refs:cpp

79 	snprintf(name, sizeof(name), format, nfp_cppcore_pcie_unit(pf->cpp));  in nfp_pf_rtsym_read_optional()
85 nfp_err(pf->cpp, "Unable to read symbol %s\n", name); in nfp_pf_rtsym_read_optional()
99 nfp_cppcore_pcie_unit(pf->cpp)); in nfp_pf_map_rtsym()
119 err = nfp_rtsym_readl(pf->cpp, pf->mbox, NFP_MBOX_CMD, &val); in nfp_mbox_cmd()
121 nfp_warn(pf->cpp, "failed to issue command (%u): %u, err: %d\n", in nfp_mbox_cmd()
127 n = nfp_rtsym_write(pf->cpp, pf->mbox, NFP_MBOX_DATA, in_data, in nfp_mbox_cmd()
132 err = nfp_rtsym_writeq(pf->cpp, pf->mbox, NFP_MBOX_DATA_LEN, in_length); in nfp_mbox_cmd()
137 err = nfp_rtsym_readl(pf->cpp, pf->mbox, NFP_MBOX_DATA_LEN, &val); in nfp_mbox_cmd()
142 err = nfp_rtsym_writeq(pf->cpp, pf->mbox, NFP_MBOX_CMD, cmd); in nfp_mbox_cmd()
149 err = nfp_rtsym_readl(pf->cpp, pf->mbox, NFP_MBOX_CMD, &val); in nfp_mbox_cmd()
162 err = nfp_rtsym_readl(pf->cpp, pf->mbox, NFP_MBOX_DATA_LEN, &val); in nfp_mbox_cmd()
167 n = nfp_rtsym_read(pf->cpp, pf->mbox, NFP_MBOX_DATA, in nfp_mbox_cmd()
173 err = nfp_rtsym_readl(pf->cpp, pf->mbox, NFP_MBOX_RET, &val); in nfp_mbox_cmd()
205 nfp_err(pf->cpp, "NFP board initialization timeout\n"); in nfp_pf_board_state_wait()
209 nfp_info(pf->cpp, "waiting for board initialization\n"); in nfp_pf_board_state_wait()
215 pf->hwinfo = nfp_hwinfo_read(pf->cpp); in nfp_pf_board_state_wait()
232 nfp_warn(pf->cpp, "Warning: VF limit read failed: %d\n", err); in nfp_pcie_sriov_read_nfd_limit()
238 nfp_warn(pf->cpp, "Failed to set VF count in sysfs: %d\n", err); in nfp_pcie_sriov_read_nfd_limit()
250 nfp_info(pf->cpp, "Firmware limits number of VFs to %u\n", in nfp_pcie_sriov_enable()
336 nsp = nfp_nsp_open(pf->cpp); in nfp_flash_update_common()
364 nfp_info(pf->cpp, " %s: %s\n", in nfp_net_fw_request()
390 nfp_info(pf->cpp, "Looking for firmware file in order of priority:\n"); in nfp_net_fw_find()
393 interface = nfp_cpp_interface(pf->cpp); in nfp_net_fw_find()
394 nfp_cpp_serial(pf->cpp, &serial); in nfp_net_fw_find()
496 interface = nfp_cpp_interface(pf->cpp); in nfp_fw_load()
593 pf->eth_tbl = __nfp_eth_read_ports(pf->cpp, nsp); in nfp_nsp_init_ports()
609 pf->eth_tbl = __nfp_eth_read_ports(pf->cpp, nsp); in nfp_nsp_init_ports()
617 err = nfp_resource_wait(pf->cpp, NFP_RESOURCE_NSP, 30); in nfp_nsp_init()
621 nsp = nfp_nsp_open(pf->cpp); in nfp_nsp_init()
660 nsp = nfp_nsp_open(pf->cpp); in nfp_fw_unload()
662 nfp_err(pf->cpp, "Reset failed, can't open NSP\n"); in nfp_fw_unload()
680 pf_id = nfp_cppcore_pcie_unit(pf->cpp); in nfp_pf_find_rtsyms()
686 nfp_err(pf->cpp, "PF mailbox symbol too small: %llu < %d\n", in nfp_pf_find_rtsyms()
706 snprintf(name, sizeof(name), "_pf%u_net_app_cap", nfp_cppcore_pcie_unit(pf->cpp)); in nfp_net_pf_get_app_cap()
711 nfp_err(pf->cpp, "Unable to read symbol %s\n", name); in nfp_net_pf_get_app_cap()
726 nsp = nfp_nsp_open(pf->cpp); in nfp_pf_cfg_hwinfo()
743 nfp_warn(pf->cpp, "HWinfo(sp_indiff=%d) set failed: %d\n", sp_indiff, err); in nfp_pf_cfg_hwinfo()
749 pf->eth_tbl = __nfp_eth_read_ports(pf->cpp, nsp); in nfp_pf_cfg_hwinfo()
806 pf->cpp = nfp_cpp_from_nfp6000_pcie(pdev, dev_info); in nfp_pci_probe()
807 if (IS_ERR(pf->cpp)) { in nfp_pci_probe()
808 err = PTR_ERR(pf->cpp); in nfp_pci_probe()
812 err = nfp_resource_table_init(pf->cpp); in nfp_pci_probe()
816 pf->hwinfo = nfp_hwinfo_read(pf->cpp); in nfp_pci_probe()
833 pf->mip = nfp_mip_open(pf->cpp); in nfp_pci_probe()
834 pf->rtbl = __nfp_rtsym_table_read(pf->cpp, pf->mip); in nfp_pci_probe()
841 pf->dumpspec = nfp_net_dump_load_dumpspec(pf->cpp, pf->rtbl); in nfp_pci_probe()
883 nfp_cpp_free(pf->cpp); in nfp_pci_probe()
920 nfp_cpp_free(pf->cpp); in __nfp_pci_shutdown()