Lines Matching refs:fbd
69 struct fbnic_dev *fbd = devlink_priv(devlink); in fbnic_devlink_info_get() local
72 err = fbnic_version_running_put(req, &fbd->fw_cap.running.mgmt, in fbnic_devlink_info_get()
77 err = fbnic_version_running_put(req, &fbd->fw_cap.running.bootloader, in fbnic_devlink_info_get()
82 err = fbnic_version_stored_put(req, &fbd->fw_cap.stored.mgmt, in fbnic_devlink_info_get()
87 err = fbnic_version_stored_put(req, &fbd->fw_cap.stored.bootloader, in fbnic_devlink_info_get()
92 err = fbnic_version_stored_put(req, &fbd->fw_cap.stored.undi, in fbnic_devlink_info_get()
97 if (fbd->dsn) { in fbnic_devlink_info_get()
101 put_unaligned_be64(fbd->dsn, dsn); in fbnic_devlink_info_get()
120 struct fbnic_dev *fbd; in fbnic_pldm_match_record() local
128 fbd = pci_get_drvdata(pdev); in fbnic_pldm_match_record()
129 devlink = priv_to_devlink(fbd); in fbnic_pldm_match_record()
148 if (anti_rollback_ver < fbd->fw_cap.anti_rollback_version) { in fbnic_pldm_match_record()
153 anti_rollback_ver, fbd->fw_cap.anti_rollback_version); in fbnic_pldm_match_record()
164 fbnic_flash_start(struct fbnic_dev *fbd, struct pldmfw_component *component) in fbnic_flash_start() argument
173 err = fbnic_fw_xmit_fw_start_upgrade(fbd, cmpl, in fbnic_flash_start()
185 fbnic_mbx_clear_cmpl(fbd, cmpl); in fbnic_flash_start()
201 struct fbnic_dev *fbd; in fbnic_flash_component() local
209 fbd = pci_get_drvdata(pdev); in fbnic_flash_component()
210 devlink = priv_to_devlink(fbd); in fbnic_flash_component()
243 err = fbnic_mbx_set_cmpl(fbd, cmpl); in fbnic_flash_component()
249 err = fbnic_flash_start(fbd, component); in fbnic_flash_component()
288 err = fbnic_fw_xmit_fw_write_chunk(fbd, data, offset, length, in fbnic_flash_component()
295 fbnic_fw_xmit_fw_write_chunk(fbd, NULL, 0, 0, err); in fbnic_flash_component()
303 fbnic_mbx_clear_cmpl(fbd, cmpl); in fbnic_flash_component()
320 struct fbnic_dev *fbd = devlink_priv(devlink); in fbnic_devlink_flash_update() local
322 struct device *dev = fbd->dev; in fbnic_devlink_flash_update()
372 void fbnic_devlink_free(struct fbnic_dev *fbd) in fbnic_devlink_free() argument
374 struct devlink *devlink = priv_to_devlink(fbd); in fbnic_devlink_free()
383 struct fbnic_dev *fbd; in fbnic_devlink_alloc() local
390 fbd = devlink_priv(devlink); in fbnic_devlink_alloc()
391 pci_set_drvdata(pdev, fbd); in fbnic_devlink_alloc()
392 fbd->dev = &pdev->dev; in fbnic_devlink_alloc()
395 fbd->uc_addr0 = iomap_table[0]; in fbnic_devlink_alloc()
396 fbd->uc_addr4 = iomap_table[4]; in fbnic_devlink_alloc()
398 fbd->dsn = pci_get_dsn(pdev); in fbnic_devlink_alloc()
399 fbd->mps = pcie_get_mps(pdev); in fbnic_devlink_alloc()
400 fbd->readrq = pcie_get_readrq(pdev); in fbnic_devlink_alloc()
402 fbd->mac_addr_boundary = FBNIC_RPC_TCAM_MACDA_DEFAULT_BOUNDARY; in fbnic_devlink_alloc()
404 return fbd; in fbnic_devlink_alloc()
407 void fbnic_devlink_register(struct fbnic_dev *fbd) in fbnic_devlink_register() argument
409 struct devlink *devlink = priv_to_devlink(fbd); in fbnic_devlink_register()
414 void fbnic_devlink_unregister(struct fbnic_dev *fbd) in fbnic_devlink_unregister() argument
416 struct devlink *devlink = priv_to_devlink(fbd); in fbnic_devlink_unregister()