Lines Matching defs:index
31 * @index: doorbell index
34 * requested doorbell index (CIK).
36 u32 amdgpu_mm_rdoorbell(struct amdgpu_device *adev, u32 index)
41 if (index < adev->doorbell.num_kernel_doorbells)
42 return readl(adev->doorbell.cpu_addr + index);
44 DRM_ERROR("reading beyond doorbell aperture: 0x%08x!\n", index);
52 * @index: doorbell index
56 * requested doorbell index (CIK).
58 void amdgpu_mm_wdoorbell(struct amdgpu_device *adev, u32 index, u32 v)
63 if (index < adev->doorbell.num_kernel_doorbells)
64 writel(v, adev->doorbell.cpu_addr + index);
66 DRM_ERROR("writing beyond doorbell aperture: 0x%08x!\n", index);
73 * @index: doorbell index
76 * requested doorbell index (VEGA10+).
78 u64 amdgpu_mm_rdoorbell64(struct amdgpu_device *adev, u32 index)
83 if (index < adev->doorbell.num_kernel_doorbells)
84 return atomic64_read((atomic64_t *)(adev->doorbell.cpu_addr + index));
86 DRM_ERROR("reading beyond doorbell aperture: 0x%08x!\n", index);
94 * @index: doorbell index
98 * requested doorbell index (VEGA10+).
100 void amdgpu_mm_wdoorbell64(struct amdgpu_device *adev, u32 index, u64 v)
105 if (index < adev->doorbell.num_kernel_doorbells)
106 atomic64_set((atomic64_t *)(adev->doorbell.cpu_addr + index), v);
108 DRM_ERROR("writing beyond doorbell aperture: 0x%08x!\n", index);
116 * @doorbell_index: doorbell relative index in this doorbell object
119 * returns doorbell's absolute index in BAR
130 /* doorbell index is 32 bit but doorbell's size can be 32 bit