Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/pci/
Dp2pdma.c644 int dev_cnt = 0; in pci_p2pmem_find_many() local
661 if (distance == closest_distance && dev_cnt >= max_devs) in pci_p2pmem_find_many()
665 for (i = 0; i < dev_cnt; i++) in pci_p2pmem_find_many()
668 dev_cnt = 0; in pci_p2pmem_find_many()
672 closest_pdevs[dev_cnt++] = pci_dev_get(pdev); in pci_p2pmem_find_many()
675 if (dev_cnt) in pci_p2pmem_find_many()
676 pdev = pci_dev_get(closest_pdevs[prandom_u32_max(dev_cnt)]); in pci_p2pmem_find_many()
678 for (i = 0; i < dev_cnt; i++) in pci_p2pmem_find_many()
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_dp_hdcp.c483 ssize_t get_receiver_id_list_rx_info(struct intel_digital_port *dig_port, u32 *dev_cnt, u8 *byte) in get_receiver_id_list_rx_info() argument
494 *dev_cnt = (HDCP_2_2_DEV_COUNT_HI(rx_info[0]) << 4 | in get_receiver_id_list_rx_info()
497 if (*dev_cnt > HDCP_2_2_MAX_DEVICE_COUNT) in get_receiver_id_list_rx_info()
498 *dev_cnt = HDCP_2_2_MAX_DEVICE_COUNT; in get_receiver_id_list_rx_info()
516 u32 dev_cnt; in intel_dp_hdcp2_read_msg() local
533 ret = get_receiver_id_list_rx_info(dig_port, &dev_cnt, byte); in intel_dp_hdcp2_read_msg()
540 (dev_cnt * HDCP_2_2_RECEIVER_ID_LEN); in intel_dp_hdcp2_read_msg()
/linux-6.1.9/drivers/infiniband/hw/usnic/
Dusnic_uiom.h62 int dev_cnt; member
Dusnic_uiom.c491 pd->dev_cnt++; in usnic_uiom_attach_dev_to_pd()
524 pd->dev_cnt--; in usnic_uiom_detach_dev_from_pd()
537 devs = kcalloc(pd->dev_cnt + 1, sizeof(*devs), GFP_ATOMIC); in usnic_uiom_get_dev_list()
/linux-6.1.9/drivers/hid/
Dhid-sensor-hub.c610 int dev_cnt; in sensor_hub_probe() local
641 dev_cnt = sensor_hub_get_physical_device_count(hdev); in sensor_hub_probe()
642 if (dev_cnt > HID_MAX_PHY_DEVICES) { in sensor_hub_probe()
648 dev_cnt, in sensor_hub_probe()
/linux-6.1.9/drivers/iommu/amd/
Damd_iommu_types.h554 unsigned dev_cnt; /* devices assigned to this domain */ member
Diommu.c1649 domain->dev_cnt += 1; in do_attach()
1689 domain->dev_cnt -= 1; in do_detach()
2116 if (domain->dev_cnt > 0) in amd_iommu_domain_free()
2119 BUG_ON(domain->dev_cnt != 0); in amd_iommu_domain_free()
2513 if (pdom->dev_cnt > 0 || pdom->flags & PD_IOMMUV2_MASK) in amd_iommu_domain_enable_v2()
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_common.c5751 u32 dev_cnt; in i40e_validate_profile() local
5760 dev_cnt = profile->device_table_count; in i40e_validate_profile()
5761 for (i = 0; i < dev_cnt; i++) { in i40e_validate_profile()
5767 if (dev_cnt && i == dev_cnt) { in i40e_validate_profile()