bootrom 547 drivers/nfc/nfcmrvl/fw_dnld.c &fw_dnld->header->bootrom.config); bootrom 66 drivers/nfc/nfcmrvl/fw_dnld.h struct nfcmrvl_fw_binary_config bootrom; bootrom 43 drivers/staging/greybus/bootrom.c static void free_firmware(struct gb_bootrom *bootrom) bootrom 45 drivers/staging/greybus/bootrom.c if (!bootrom->fw) bootrom 48 drivers/staging/greybus/bootrom.c release_firmware(bootrom->fw); bootrom 49 drivers/staging/greybus/bootrom.c bootrom->fw = NULL; bootrom 55 drivers/staging/greybus/bootrom.c struct gb_bootrom *bootrom = container_of(dwork, bootrom 57 drivers/staging/greybus/bootrom.c struct device *dev = &bootrom->connection->bundle->dev; bootrom 60 drivers/staging/greybus/bootrom.c switch (bootrom->next_request) { bootrom 75 drivers/staging/greybus/bootrom.c dev_err(dev, "Invalid next-request: %u", bootrom->next_request); bootrom 81 drivers/staging/greybus/bootrom.c mutex_lock(&bootrom->mutex); bootrom 82 drivers/staging/greybus/bootrom.c free_firmware(bootrom); bootrom 83 drivers/staging/greybus/bootrom.c mutex_unlock(&bootrom->mutex); bootrom 88 drivers/staging/greybus/bootrom.c static void gb_bootrom_set_timeout(struct gb_bootrom *bootrom, bootrom 92 drivers/staging/greybus/bootrom.c bootrom->next_request = next; bootrom 93 drivers/staging/greybus/bootrom.c schedule_delayed_work(&bootrom->dwork, msecs_to_jiffies(timeout)); bootrom 96 drivers/staging/greybus/bootrom.c static void gb_bootrom_cancel_timeout(struct gb_bootrom *bootrom) bootrom 98 drivers/staging/greybus/bootrom.c cancel_delayed_work_sync(&bootrom->dwork); bootrom 111 drivers/staging/greybus/bootrom.c static void bootrom_es2_fixup_vid_pid(struct gb_bootrom *bootrom) bootrom 114 drivers/staging/greybus/bootrom.c struct gb_connection *connection = bootrom->connection; bootrom 144 drivers/staging/greybus/bootrom.c static int find_firmware(struct gb_bootrom *bootrom, u8 stage) bootrom 146 drivers/staging/greybus/bootrom.c struct gb_connection *connection = bootrom->connection; bootrom 152 drivers/staging/greybus/bootrom.c free_firmware(bootrom); bootrom 178 drivers/staging/greybus/bootrom.c rc = request_firmware(&bootrom->fw, firmware_name, bootrom 190 drivers/staging/greybus/bootrom.c struct gb_bootrom *bootrom = gb_connection_get_data(op->connection); bootrom 198 drivers/staging/greybus/bootrom.c gb_bootrom_cancel_timeout(bootrom); bootrom 208 drivers/staging/greybus/bootrom.c mutex_lock(&bootrom->mutex); bootrom 210 drivers/staging/greybus/bootrom.c ret = find_firmware(bootrom, size_request->stage); bootrom 217 drivers/staging/greybus/bootrom.c free_firmware(bootrom); bootrom 223 drivers/staging/greybus/bootrom.c size_response->size = cpu_to_le32(bootrom->fw->size); bootrom 229 drivers/staging/greybus/bootrom.c mutex_unlock(&bootrom->mutex); bootrom 234 drivers/staging/greybus/bootrom.c gb_bootrom_set_timeout(bootrom, NEXT_REQ_GET_FIRMWARE, bootrom 243 drivers/staging/greybus/bootrom.c struct gb_bootrom *bootrom = gb_connection_get_data(op->connection); bootrom 253 drivers/staging/greybus/bootrom.c gb_bootrom_cancel_timeout(bootrom); bootrom 263 drivers/staging/greybus/bootrom.c mutex_lock(&bootrom->mutex); bootrom 265 drivers/staging/greybus/bootrom.c fw = bootrom->fw; bootrom 297 drivers/staging/greybus/bootrom.c mutex_unlock(&bootrom->mutex); bootrom 306 drivers/staging/greybus/bootrom.c gb_bootrom_set_timeout(bootrom, next_request, NEXT_REQ_TIMEOUT_MS); bootrom 314 drivers/staging/greybus/bootrom.c struct gb_bootrom *bootrom = gb_connection_get_data(connection); bootrom 321 drivers/staging/greybus/bootrom.c gb_bootrom_cancel_timeout(bootrom); bootrom 351 drivers/staging/greybus/bootrom.c gb_bootrom_set_timeout(bootrom, NEXT_REQ_MODE_SWITCH, bootrom 375 drivers/staging/greybus/bootrom.c static int gb_bootrom_get_version(struct gb_bootrom *bootrom) bootrom 377 drivers/staging/greybus/bootrom.c struct gb_bundle *bundle = bootrom->connection->bundle; bootrom 385 drivers/staging/greybus/bootrom.c ret = gb_operation_sync(bootrom->connection, bootrom 403 drivers/staging/greybus/bootrom.c bootrom->protocol_major = response.major; bootrom 404 drivers/staging/greybus/bootrom.c bootrom->protocol_minor = response.minor; bootrom 417 drivers/staging/greybus/bootrom.c struct gb_bootrom *bootrom; bootrom 427 drivers/staging/greybus/bootrom.c bootrom = kzalloc(sizeof(*bootrom), GFP_KERNEL); bootrom 428 drivers/staging/greybus/bootrom.c if (!bootrom) bootrom 439 drivers/staging/greybus/bootrom.c gb_connection_set_data(connection, bootrom); bootrom 441 drivers/staging/greybus/bootrom.c bootrom->connection = connection; bootrom 443 drivers/staging/greybus/bootrom.c mutex_init(&bootrom->mutex); bootrom 444 drivers/staging/greybus/bootrom.c INIT_DELAYED_WORK(&bootrom->dwork, gb_bootrom_timedout); bootrom 445 drivers/staging/greybus/bootrom.c greybus_set_drvdata(bundle, bootrom); bootrom 451 drivers/staging/greybus/bootrom.c ret = gb_bootrom_get_version(bootrom); bootrom 455 drivers/staging/greybus/bootrom.c bootrom_es2_fixup_vid_pid(bootrom); bootrom 462 drivers/staging/greybus/bootrom.c gb_bootrom_set_timeout(bootrom, NEXT_REQ_FIRMWARE_SIZE, bootrom 479 drivers/staging/greybus/bootrom.c gb_bootrom_cancel_timeout(bootrom); bootrom 485 drivers/staging/greybus/bootrom.c kfree(bootrom); bootrom 492 drivers/staging/greybus/bootrom.c struct gb_bootrom *bootrom = greybus_get_drvdata(bundle); bootrom 496 drivers/staging/greybus/bootrom.c gb_connection_disable(bootrom->connection); bootrom 499 drivers/staging/greybus/bootrom.c gb_bootrom_cancel_timeout(bootrom); bootrom 507 drivers/staging/greybus/bootrom.c free_firmware(bootrom); bootrom 509 drivers/staging/greybus/bootrom.c gb_connection_destroy(bootrom->connection); bootrom 510 drivers/staging/greybus/bootrom.c kfree(bootrom);