Lines Matching refs:tmp_dev
97 struct adf_accel_dev *accel_dev = NULL, *tmp_dev; in qat_crypto_get_instance_node() local
101 list_for_each_entry(tmp_dev, adf_devmgr_get_head(), list) { in qat_crypto_get_instance_node()
104 if ((node == dev_to_node(&GET_DEV(tmp_dev)) || in qat_crypto_get_instance_node()
105 dev_to_node(&GET_DEV(tmp_dev)) < 0) && in qat_crypto_get_instance_node()
106 adf_dev_started(tmp_dev) && in qat_crypto_get_instance_node()
107 !list_empty(&tmp_dev->crypto_list)) { in qat_crypto_get_instance_node()
108 ctr = atomic_read(&tmp_dev->ref_count); in qat_crypto_get_instance_node()
110 accel_dev = tmp_dev; in qat_crypto_get_instance_node()
119 list_for_each_entry(tmp_dev, adf_devmgr_get_head(), list) { in qat_crypto_get_instance_node()
120 if (adf_dev_started(tmp_dev) && in qat_crypto_get_instance_node()
121 !list_empty(&tmp_dev->crypto_list)) { in qat_crypto_get_instance_node()
122 accel_dev = tmp_dev; in qat_crypto_get_instance_node()