new_drvdata 266 drivers/crypto/ccree/cc_driver.c struct cc_drvdata *new_drvdata; new_drvdata 276 drivers/crypto/ccree/cc_driver.c new_drvdata = devm_kzalloc(dev, sizeof(*new_drvdata), GFP_KERNEL); new_drvdata 277 drivers/crypto/ccree/cc_driver.c if (!new_drvdata) new_drvdata 285 drivers/crypto/ccree/cc_driver.c new_drvdata->hw_rev_name = hw_rev->name; new_drvdata 286 drivers/crypto/ccree/cc_driver.c new_drvdata->hw_rev = hw_rev->rev; new_drvdata 287 drivers/crypto/ccree/cc_driver.c new_drvdata->std_bodies = hw_rev->std_bodies; new_drvdata 290 drivers/crypto/ccree/cc_driver.c new_drvdata->axim_mon_offset = CC_REG(AXIM_MON_COMP); new_drvdata 291 drivers/crypto/ccree/cc_driver.c new_drvdata->sig_offset = CC_REG(HOST_SIGNATURE_712); new_drvdata 292 drivers/crypto/ccree/cc_driver.c new_drvdata->ver_offset = CC_REG(HOST_VERSION_712); new_drvdata 294 drivers/crypto/ccree/cc_driver.c new_drvdata->axim_mon_offset = CC_REG(AXIM_MON_COMP8); new_drvdata 295 drivers/crypto/ccree/cc_driver.c new_drvdata->sig_offset = CC_REG(HOST_SIGNATURE_630); new_drvdata 296 drivers/crypto/ccree/cc_driver.c new_drvdata->ver_offset = CC_REG(HOST_VERSION_630); new_drvdata 299 drivers/crypto/ccree/cc_driver.c new_drvdata->comp_mask = CC_COMP_IRQ_MASK; new_drvdata 301 drivers/crypto/ccree/cc_driver.c platform_set_drvdata(plat_dev, new_drvdata); new_drvdata 302 drivers/crypto/ccree/cc_driver.c new_drvdata->plat_dev = plat_dev; new_drvdata 320 drivers/crypto/ccree/cc_driver.c new_drvdata->clk = clk; new_drvdata 322 drivers/crypto/ccree/cc_driver.c new_drvdata->coherent = of_dma_is_coherent(np); new_drvdata 328 drivers/crypto/ccree/cc_driver.c new_drvdata->cc_base = devm_ioremap_resource(dev, req_mem_cc_regs); new_drvdata 329 drivers/crypto/ccree/cc_driver.c if (IS_ERR(new_drvdata->cc_base)) { new_drvdata 331 drivers/crypto/ccree/cc_driver.c return PTR_ERR(new_drvdata->cc_base); new_drvdata 337 drivers/crypto/ccree/cc_driver.c &req_mem_cc_regs->start, new_drvdata->cc_base); new_drvdata 340 drivers/crypto/ccree/cc_driver.c new_drvdata->irq = platform_get_irq(plat_dev, 0); new_drvdata 341 drivers/crypto/ccree/cc_driver.c if (new_drvdata->irq < 0) new_drvdata 342 drivers/crypto/ccree/cc_driver.c return new_drvdata->irq; new_drvdata 344 drivers/crypto/ccree/cc_driver.c init_completion(&new_drvdata->hw_queue_avail); new_drvdata 364 drivers/crypto/ccree/cc_driver.c rc = cc_clk_on(new_drvdata); new_drvdata 370 drivers/crypto/ccree/cc_driver.c new_drvdata->sec_disabled = cc_sec_disable; new_drvdata 373 drivers/crypto/ccree/cc_driver.c if (!cc_wait_for_reset_completion(new_drvdata)) { new_drvdata 379 drivers/crypto/ccree/cc_driver.c val = cc_ioread(new_drvdata, new_drvdata->sig_offset); new_drvdata 387 drivers/crypto/ccree/cc_driver.c hw_rev_pidr = cc_ioread(new_drvdata, new_drvdata->ver_offset); new_drvdata 390 drivers/crypto/ccree/cc_driver.c val = cc_read_idr(new_drvdata, pidr_0124_offsets); new_drvdata 399 drivers/crypto/ccree/cc_driver.c val = cc_read_idr(new_drvdata, cidr_0123_offsets); new_drvdata 409 drivers/crypto/ccree/cc_driver.c val = cc_ioread(new_drvdata, CC_REG(HOST_REMOVE_INPUT_PINS)); new_drvdata 415 drivers/crypto/ccree/cc_driver.c if (new_drvdata->std_bodies & CC_STD_NIST) { new_drvdata 417 drivers/crypto/ccree/cc_driver.c new_drvdata->std_bodies = CC_STD_OSCCA; new_drvdata 427 drivers/crypto/ccree/cc_driver.c val = cc_ioread(new_drvdata, CC_REG(SECURITY_DISABLED)); new_drvdata 429 drivers/crypto/ccree/cc_driver.c new_drvdata->sec_disabled |= !!val; new_drvdata 431 drivers/crypto/ccree/cc_driver.c if (!new_drvdata->sec_disabled) { new_drvdata 432 drivers/crypto/ccree/cc_driver.c new_drvdata->comp_mask |= CC_CPP_SM4_ABORT_MASK; new_drvdata 433 drivers/crypto/ccree/cc_driver.c if (new_drvdata->std_bodies & CC_STD_NIST) new_drvdata 434 drivers/crypto/ccree/cc_driver.c new_drvdata->comp_mask |= CC_CPP_AES_ABORT_MASK; new_drvdata 438 drivers/crypto/ccree/cc_driver.c if (new_drvdata->sec_disabled) new_drvdata 445 drivers/crypto/ccree/cc_driver.c rc = devm_request_irq(dev, new_drvdata->irq, cc_isr, new_drvdata 446 drivers/crypto/ccree/cc_driver.c IRQF_SHARED, "ccree", new_drvdata); new_drvdata 449 drivers/crypto/ccree/cc_driver.c new_drvdata->irq); new_drvdata 452 drivers/crypto/ccree/cc_driver.c dev_dbg(dev, "Registered to IRQ: %d\n", new_drvdata->irq); new_drvdata 454 drivers/crypto/ccree/cc_driver.c rc = init_cc_regs(new_drvdata, true); new_drvdata 460 drivers/crypto/ccree/cc_driver.c rc = cc_debugfs_init(new_drvdata); new_drvdata 466 drivers/crypto/ccree/cc_driver.c rc = cc_fips_init(new_drvdata); new_drvdata 471 drivers/crypto/ccree/cc_driver.c rc = cc_sram_mgr_init(new_drvdata); new_drvdata 477 drivers/crypto/ccree/cc_driver.c new_drvdata->mlli_sram_addr = new_drvdata 478 drivers/crypto/ccree/cc_driver.c cc_sram_alloc(new_drvdata, MAX_MLLI_BUFF_SIZE); new_drvdata 479 drivers/crypto/ccree/cc_driver.c if (new_drvdata->mlli_sram_addr == NULL_SRAM_ADDR) { new_drvdata 485 drivers/crypto/ccree/cc_driver.c rc = cc_req_mgr_init(new_drvdata); new_drvdata 491 drivers/crypto/ccree/cc_driver.c rc = cc_buffer_mgr_init(new_drvdata); new_drvdata 497 drivers/crypto/ccree/cc_driver.c rc = cc_pm_init(new_drvdata); new_drvdata 504 drivers/crypto/ccree/cc_driver.c rc = cc_cipher_alloc(new_drvdata); new_drvdata 511 drivers/crypto/ccree/cc_driver.c rc = cc_hash_alloc(new_drvdata); new_drvdata 517 drivers/crypto/ccree/cc_driver.c rc = cc_aead_alloc(new_drvdata); new_drvdata 524 drivers/crypto/ccree/cc_driver.c cc_pm_go(new_drvdata); new_drvdata 530 drivers/crypto/ccree/cc_driver.c cc_set_ree_fips_status(new_drvdata, true); new_drvdata 535 drivers/crypto/ccree/cc_driver.c cc_hash_free(new_drvdata); new_drvdata 537 drivers/crypto/ccree/cc_driver.c cc_cipher_free(new_drvdata); new_drvdata 539 drivers/crypto/ccree/cc_driver.c cc_buffer_mgr_fini(new_drvdata); new_drvdata 541 drivers/crypto/ccree/cc_driver.c cc_req_mgr_fini(new_drvdata); new_drvdata 543 drivers/crypto/ccree/cc_driver.c cc_sram_mgr_fini(new_drvdata); new_drvdata 545 drivers/crypto/ccree/cc_driver.c cc_fips_fini(new_drvdata); new_drvdata 547 drivers/crypto/ccree/cc_driver.c cc_debugfs_fini(new_drvdata); new_drvdata 549 drivers/crypto/ccree/cc_driver.c fini_cc_regs(new_drvdata); new_drvdata 551 drivers/crypto/ccree/cc_driver.c cc_clk_off(new_drvdata);