Lines Matching defs:sp
473 * @sp: sp_device struct of the CCP
475 struct ccp_device *ccp_alloc_struct(struct sp_device *sp)
477 struct device *dev = sp->dev;
484 ccp->sp = sp;
485 ccp->axcache = sp->axcache;
500 snprintf(ccp->name, MAX_CCP_NAME_LEN, "ccp-%u", sp->ord);
501 snprintf(ccp->rngname, MAX_CCP_NAME_LEN, "ccp-%u-rng", sp->ord);
551 void ccp_dev_suspend(struct sp_device *sp)
553 struct ccp_device *ccp = sp->ccp_data;
577 void ccp_dev_resume(struct sp_device *sp)
579 struct ccp_device *ccp = sp->ccp_data;
600 int ccp_dev_init(struct sp_device *sp)
602 struct device *dev = sp->dev;
614 ccp = ccp_alloc_struct(sp);
617 sp->ccp_data = ccp;
624 ccp->vdata = (struct ccp_vdata *)sp->dev_vdata->ccp_vdata;
631 ccp->use_tasklet = sp->use_tasklet;
633 ccp->io_regs = sp->io_map + ccp->vdata->offset;
657 sp->ccp_data = NULL;
662 void ccp_dev_destroy(struct sp_device *sp)
664 struct ccp_device *ccp = sp->ccp_data;