Lines Matching refs:index
24 int index;
27 for (index = start; length < number; index++, length++)
28 ate[index] = value;
32 * find_free_ate: Find the first free ate index starting from the given
33 * index for the desired consecutive count.
39 int index;
42 for (index = start; index < ate_resource->num_ate;) {
43 if (!ate[index]) {
47 start_free = index; /* Found start free ate */
53 index = i + 1;
60 index++; /* Try next ate */
113 * Return the start index on success, -1 on failure.
160 void pcibr_ate_free(struct pcibus_info *pcibus_info, int index)
169 ate = *pcibr_ate_addr(pcibus_info, index);
170 count = pcibus_info->pbi_int_ate_resource.ate[index];
171 ate_write(pcibus_info, index, count, (ate & ~PCI32_ATE_V));
175 free_ate_resource(&pcibus_info->pbi_int_ate_resource, index);