Home
last modified time | relevance | path

Searched refs:dev_cnt (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/drivers/pci/
Dp2pdma.c616 int dev_cnt = 0; in pci_p2pmem_find_many() local
633 if (distance == closest_distance && dev_cnt >= max_devs) in pci_p2pmem_find_many()
637 for (i = 0; i < dev_cnt; i++) in pci_p2pmem_find_many()
640 dev_cnt = 0; in pci_p2pmem_find_many()
644 closest_pdevs[dev_cnt++] = pci_dev_get(pdev); in pci_p2pmem_find_many()
647 if (dev_cnt) in pci_p2pmem_find_many()
648 pdev = pci_dev_get(closest_pdevs[prandom_u32_max(dev_cnt)]); in pci_p2pmem_find_many()
650 for (i = 0; i < dev_cnt; i++) in pci_p2pmem_find_many()
/Linux-v5.4/drivers/infiniband/hw/usnic/
Dusnic_uiom.h62 int dev_cnt; member
Dusnic_uiom.c495 pd->dev_cnt++; in usnic_uiom_attach_dev_to_pd()
528 pd->dev_cnt--; in usnic_uiom_detach_dev_from_pd()
541 devs = kcalloc(pd->dev_cnt + 1, sizeof(*devs), GFP_ATOMIC); in usnic_uiom_get_dev_list()
/Linux-v5.4/drivers/hid/
Dhid-sensor-hub.c605 int dev_cnt; in sensor_hub_probe() local
637 dev_cnt = sensor_hub_get_physical_device_count(hdev); in sensor_hub_probe()
638 if (dev_cnt > HID_MAX_PHY_DEVICES) { in sensor_hub_probe()
644 dev_cnt, in sensor_hub_probe()
/Linux-v5.4/drivers/iommu/
Damd_iommu_types.h478 unsigned dev_cnt; /* devices assigned to this domain */ member
Damd_iommu.c2051 domain->dev_cnt += 1; in do_attach()
2088 domain->dev_cnt -= 1; in do_detach()
3019 if (domain->dev_cnt > 0) in amd_iommu_domain_free()
3022 BUG_ON(domain->dev_cnt != 0); in amd_iommu_domain_free()
3375 if (domain->dev_cnt > 0 || domain->flags & PD_IOMMUV2_MASK) in amd_iommu_domain_enable_v2()
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_common.c5608 u32 dev_cnt; in i40e_validate_profile() local
5617 dev_cnt = profile->device_table_count; in i40e_validate_profile()
5618 for (i = 0; i < dev_cnt; i++) { in i40e_validate_profile()
5624 if (dev_cnt && i == dev_cnt) { in i40e_validate_profile()
/Linux-v5.4/drivers/gpu/drm/i915/display/
Dintel_dp.c6021 u32 dev_cnt; in get_receiver_id_list_size() local
6030 dev_cnt = (HDCP_2_2_DEV_COUNT_HI(rx_info[0]) << 4 | in get_receiver_id_list_size()
6033 if (dev_cnt > HDCP_2_2_MAX_DEVICE_COUNT) in get_receiver_id_list_size()
6034 dev_cnt = HDCP_2_2_MAX_DEVICE_COUNT; in get_receiver_id_list_size()
6038 (dev_cnt * HDCP_2_2_RECEIVER_ID_LEN); in get_receiver_id_list_size()