Lines Matching refs:affd
296 static void default_calc_sets(struct irq_affinity *affd, unsigned int affvecs)
298 affd->nr_sets = 1;
299 affd->set_size[0] = affvecs;
303 create_affinity_masks(unsigned int nvecs, struct irq_affinity *affd)
308 if (nvecs > affd->pre_vectors + affd->post_vectors)
309 affvecs = nvecs - affd->pre_vectors - affd->post_vectors;
311 if (!affd->calc_sets)
312 affd->calc_sets = default_calc_sets;
314 affd->calc_sets(affd, affvecs);
324 for (curvec = 0; curvec < affd->pre_vectors; curvec++)
327 for (i = 0, usedvecs = 0; i < affd->nr_sets; i++) {
328 unsigned int this_vecs = affd->set_size[i];
347 curvec = affd->pre_vectors + affvecs;
349 curvec = affd->pre_vectors + usedvecs;