Lines Matching refs:se_devices
61 static struct cpt_device_table se_devices = { variable
73 count = atomic_read(&se_devices.count); in get_se_device()
79 if (se_devices.desc[0].pf_type == OTX_CPT_SE) { in get_se_device()
88 *pdev = se_devices.desc[*cpu_num].dev; in get_se_device()
90 pr_err("Unknown PF type %d\n", se_devices.desc[0].pf_type); in get_se_device()
1657 count = atomic_read(&se_devices.count); in otx_cpt_crypto_init()
1663 se_devices.desc[count].pf_type = pf_type; in otx_cpt_crypto_init()
1664 se_devices.desc[count].num_queues = num_queues; in otx_cpt_crypto_init()
1665 se_devices.desc[count++].dev = pdev; in otx_cpt_crypto_init()
1666 atomic_inc(&se_devices.count); in otx_cpt_crypto_init()
1668 if (atomic_read(&se_devices.count) == num_devices && in otx_cpt_crypto_init()
1679 sort(se_devices.desc, count, sizeof(struct cpt_device_desc), in otx_cpt_crypto_init()
1716 dev_tbl = (engine_type == OTX_CPT_AE_TYPES) ? &ae_devices : &se_devices; in otx_cpt_crypto_exit()
1732 if (atomic_dec_and_test(&se_devices.count) && in otx_cpt_crypto_exit()