Home
last modified time | relevance | path

Searched refs:tmp_dev (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.4/drivers/crypto/virtio/
Dvirtio_crypto_mgr.c187 struct virtio_crypto *vcrypto_dev = NULL, *tmp_dev; in virtcrypto_get_dev_node() local
192 list_for_each_entry(tmp_dev, virtcrypto_devmgr_get_head(), list) { in virtcrypto_get_dev_node()
194 if ((node == dev_to_node(&tmp_dev->vdev->dev) || in virtcrypto_get_dev_node()
195 dev_to_node(&tmp_dev->vdev->dev) < 0) && in virtcrypto_get_dev_node()
196 virtcrypto_dev_started(tmp_dev) && in virtcrypto_get_dev_node()
197 virtcrypto_algo_is_supported(tmp_dev, service, algo)) { in virtcrypto_get_dev_node()
198 ctr = atomic_read(&tmp_dev->ref_count); in virtcrypto_get_dev_node()
200 vcrypto_dev = tmp_dev; in virtcrypto_get_dev_node()
210 list_for_each_entry(tmp_dev, in virtcrypto_get_dev_node()
212 if (virtcrypto_dev_started(tmp_dev) && in virtcrypto_get_dev_node()
[all …]
/Linux-v5.4/drivers/crypto/qat/qat_common/
Dqat_crypto.c97 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()
[all …]
/Linux-v5.4/drivers/md/
Dmd-linear.c243 struct dev_info *tmp_dev; in linear_make_request() local
252 tmp_dev = which_dev(mddev, bio_sector); in linear_make_request()
253 start_sector = tmp_dev->end_sector - tmp_dev->rdev->sectors; in linear_make_request()
254 end_sector = tmp_dev->end_sector; in linear_make_request()
255 data_offset = tmp_dev->rdev->data_offset; in linear_make_request()
261 if (unlikely(is_mddev_broken(tmp_dev->rdev, "linear"))) { in linear_make_request()
275 bio_set_dev(bio, tmp_dev->rdev->bdev); in linear_make_request()
298 bdevname(tmp_dev->rdev->bdev, b), in linear_make_request()
299 (unsigned long long)tmp_dev->rdev->sectors, in linear_make_request()
Draid0.c571 struct md_rdev *tmp_dev; in raid0_make_request() local
612 tmp_dev = map_sector(mddev, zone, orig_sector, &sector); in raid0_make_request()
615 tmp_dev = map_sector(mddev, zone, sector, &sector); in raid0_make_request()
623 if (unlikely(is_mddev_broken(tmp_dev, "raid0"))) { in raid0_make_request()
628 bio_set_dev(bio, tmp_dev->bdev); in raid0_make_request()
630 tmp_dev->data_offset; in raid0_make_request()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Ddev.c315 struct mlx5_core_dev *tmp_dev; in mlx5_get_next_phys_dev() local
324 tmp_dev = container_of(priv, struct mlx5_core_dev, priv); in mlx5_get_next_phys_dev()
325 if (!mlx5_core_is_pf(tmp_dev)) in mlx5_get_next_phys_dev()
328 if ((dev != tmp_dev) && (mlx5_gen_pci_id(tmp_dev) == pci_id)) { in mlx5_get_next_phys_dev()
329 res = tmp_dev; in mlx5_get_next_phys_dev()
Dlag.c562 struct mlx5_core_dev *tmp_dev; in mlx5_lag_add() local
570 tmp_dev = mlx5_get_next_phys_dev(dev); in mlx5_lag_add()
571 if (tmp_dev) in mlx5_lag_add()
572 ldev = tmp_dev->priv.lag; in mlx5_lag_add()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/lib/
Ddevcom.c80 struct mlx5_core_dev *tmp_dev = NULL; in mlx5_devcom_register_device() local
85 tmp_dev = iter->devs[i]; in mlx5_devcom_register_device()
93 sguid1 = mlx5_query_nic_system_image_guid(tmp_dev); in mlx5_devcom_register_device()
/Linux-v5.4/drivers/pcmcia/
Dds.c217 struct device *tmp_dev; in pcmcia_get_dev() local
218 tmp_dev = get_device(&p_dev->dev); in pcmcia_get_dev()
219 if (!tmp_dev) in pcmcia_get_dev()
221 return to_pcmcia_dev(tmp_dev); in pcmcia_get_dev()
487 struct pcmcia_device *p_dev, *tmp_dev; in pcmcia_device_add() local
536 list_for_each_entry(tmp_dev, &s->devices_list, socket_device_list) in pcmcia_device_add()
537 if (p_dev->func == tmp_dev->func) { in pcmcia_device_add()
538 p_dev->function_config = tmp_dev->function_config; in pcmcia_device_add()
539 p_dev->irq = tmp_dev->irq; in pcmcia_device_add()
/Linux-v5.4/drivers/iommu/
Ddmar.c106 struct device *tmp_dev; in dmar_free_dev_scope() local
109 for_each_active_dev_scope(*devices, *cnt, i, tmp_dev) in dmar_free_dev_scope()
110 put_device(tmp_dev); in dmar_free_dev_scope()
/Linux-v5.4/drivers/net/usb/
Dhso.c2870 struct hso_device *tmp_dev = NULL; in hso_probe() local
2910 tmp_dev = hso_dev; in hso_probe()
2931 if (tmp_dev) in hso_probe()
2932 hso_dev = tmp_dev; in hso_probe()
/Linux-v5.4/drivers/target/
Dtarget_core_user.c2699 struct tcmu_dev *udev, *tmp_dev; in check_timedout_devices() local
2705 list_for_each_entry_safe(udev, tmp_dev, &devs, timedout_entry) { in check_timedout_devices()