Home
last modified time | relevance | path

Searched refs:backend_update (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/staging/greybus/Documentation/firmware/
H A Dfirmware.c33 static struct fw_mgmt_ioc_backend_fw_update backend_update; variable
132 strncpy((char *)&backend_update.firmware_tag, firmware_tag, in update_backend_firmware()
136 backend_update.status = 0; in update_backend_firmware()
138 ret = ioctl(fd, FW_MGMT_IOC_INTF_BACKEND_FW_UPDATE, &backend_update); in update_backend_firmware()
144 if (backend_update.status == GB_FW_U_BACKEND_FW_STATUS_RETRY) { in update_backend_firmware()
145 printf("Retrying firmware update: %d\n", backend_update.status); in update_backend_firmware()
149 if (backend_update.status != GB_FW_U_BACKEND_FW_STATUS_SUCCESS) { in update_backend_firmware()
151 backend_update.status); in update_backend_firmware()
154 firmware_tag, backend_update.status); in update_backend_firmware()
/openbmc/linux/drivers/staging/greybus/
H A Dfw-management.c413 struct fw_mgmt_ioc_backend_fw_update backend_update; in fw_mgmt_ioctl() local
471 if (copy_from_user(&backend_update, buf, in fw_mgmt_ioctl()
472 sizeof(backend_update))) in fw_mgmt_ioctl()
476 backend_update.firmware_tag); in fw_mgmt_ioctl()
486 backend_update.status = fw_mgmt->backend_fw_status; in fw_mgmt_ioctl()
488 if (copy_to_user(buf, &backend_update, sizeof(backend_update))) in fw_mgmt_ioctl()