Lines Matching full:component
59 * ixgbe_check_component_response - Report firmware response to a component
61 * @response: indicates whether this component can be updated
65 * Check whether firmware indicates if this component can be updated. Report
66 * a suitable error message over the netlink extended ACK if the component
69 * Return: 0 if the component can be updated, or -ECANCELED if the
70 * firmware indicates the component cannot be updated.
99 "Component comparison stamp is identical to running image"); in ixgbe_check_component_response()
103 "Component comparison stamp is lower than running image"); in ixgbe_check_component_response()
107 "Component comparison stamp is invalid"); in ixgbe_check_component_response()
111 "Component table conflict occurred"); in ixgbe_check_component_response()
114 NL_SET_ERR_MSG_MOD(extack, "Component pre-requisites not met"); in ixgbe_check_component_response()
117 NL_SET_ERR_MSG_MOD(extack, "Component not supported"); in ixgbe_check_component_response()
120 NL_SET_ERR_MSG_MOD(extack, "Component cannot be downgraded"); in ixgbe_check_component_response()
123 NL_SET_ERR_MSG_MOD(extack, "Incomplete component image"); in ixgbe_check_component_response()
127 "Component version is identical to running image"); in ixgbe_check_component_response()
131 "Component version is lower than the running image"); in ixgbe_check_component_response()
143 * ixgbe_send_component_table - Send PLDM component table to firmware
145 * @component: the component to process
146 * @transfer_flag: relative transfer order of this component
148 * Read relevant data from the component and forward it to the device
158 struct pldmfw_component *component, in ixgbe_send_component_table() argument
172 switch (component->identifier) { in ixgbe_send_component_table()
179 "Unable to update due to unknown firmware component"); in ixgbe_send_component_table()
183 length = struct_size(comp_tbl, cvs, component->version_len); in ixgbe_send_component_table()
188 comp_tbl->comp_class = cpu_to_le16(component->classification); in ixgbe_send_component_table()
189 comp_tbl->comp_id = cpu_to_le16(component->identifier); in ixgbe_send_component_table()
191 comp_tbl->comp_cmp_stamp = cpu_to_le32(component->comparison_stamp); in ixgbe_send_component_table()
192 comp_tbl->cvs_type = component->version_type; in ixgbe_send_component_table()
193 comp_tbl->cvs_len = component->version_len; in ixgbe_send_component_table()
195 memcpy(comp_tbl->cvs, component->version_string, in ixgbe_send_component_table()
196 component->version_len); in ixgbe_send_component_table()
206 "Failed to transfer component table to firmware"); in ixgbe_send_component_table()
254 * @component: the name of the component being updated
268 const char *component, const u8 *image, in ixgbe_write_nvm_module() argument
279 component, 0, length); in ixgbe_write_nvm_module()
303 component, offset, length); in ixgbe_write_nvm_module()
308 component, length, length); in ixgbe_write_nvm_module()
311 component, length, length); in ixgbe_write_nvm_module()
327 * @component: name of the component being updated
338 const char *component, in ixgbe_erase_nvm_module() argument
345 devlink_flash_update_timeout_notify(devlink, "Erasing", component, in ixgbe_erase_nvm_module()
351 component, 0, 0); in ixgbe_erase_nvm_module()
354 component, 0, 0); in ixgbe_erase_nvm_module()
399 * ixgbe_flash_component - Flash a component of the NVM
401 * @component: the component table to program
403 * Program the flash contents for a given component. First, determine the
405 * the contents of the component to the NVM.
412 struct pldmfw_component *component) in ixgbe_flash_component() argument
424 switch (component->identifier) { in ixgbe_flash_component()
445 /* Mark this component for activating at the end. */ in ixgbe_flash_component()
453 component->component_data, in ixgbe_flash_component()
454 component->component_size, extack); in ixgbe_flash_component()
502 * ixgbe_get_pending_updates - Check if the component has a pending update
548 * ixgbe_cancel_pending_update - Cancel any pending update for a component
550 * @component: if not NULL, the name of the component being updated
553 * Cancel any pending update for the specified component. If component is
559 const char *component, in ixgbe_cancel_pending_update() argument
571 /* If the flash_update request is for a specific component, ignore all in ixgbe_cancel_pending_update()
574 if (component) { in ixgbe_cancel_pending_update()
575 if (strcmp(component, "fw.mgmt") == 0) in ixgbe_cancel_pending_update()
577 else if (strcmp(component, "fw.undi") == 0) in ixgbe_cancel_pending_update()
579 else if (strcmp(component, "fw.netlist") == 0) in ixgbe_cancel_pending_update()
594 component, 0, 0); in ixgbe_cancel_pending_update()
620 * Extract the device record Package Data and Component Tables and send them