Lines Matching refs:ndevs

36 static void agp_3_5_dev_list_sort(struct agp_3_5_dev *list, unsigned int ndevs)  in agp_3_5_dev_list_sort()  argument
65 struct agp_3_5_dev *dev_list, unsigned int ndevs) in agp_3_5_isochronous_node_enable() argument
96 master = kmalloc_array(ndevs, sizeof(*master), GFP_KERNEL); in agp_3_5_isochronous_node_enable()
118 agp_3_5_dev_list_sort(dev_list, ndevs); in agp_3_5_isochronous_node_enable()
183 for (cdev=0; cdev<ndevs; cdev++) { in agp_3_5_isochronous_node_enable()
210 for (cdev=0; cdev<ndevs; cdev++) { in agp_3_5_isochronous_node_enable()
224 master[ndevs-1].n += rem; in agp_3_5_isochronous_node_enable()
244 step = rq_async / ndevs; in agp_3_5_isochronous_node_enable()
245 rem_async = step + (rq_async % ndevs); in agp_3_5_isochronous_node_enable()
250 for (cdev=0; cdev<ndevs; cdev++) { in agp_3_5_isochronous_node_enable()
256 master[cdev].rq += (cdev == ndevs - 1) in agp_3_5_isochronous_node_enable()
289 struct agp_3_5_dev *dev_list, unsigned int ndevs) in agp_3_5_nonisochronous_node_enable() argument
300 mrq = trq / ndevs; in agp_3_5_nonisochronous_node_enable()
302 rem = mrq + (trq % ndevs); in agp_3_5_nonisochronous_node_enable()
304 for (pos=head->next; cdev<ndevs; cdev++, pos=pos->next) { in agp_3_5_nonisochronous_node_enable()
309 mcmd |= ((cdev == ndevs - 1) ? rem : mrq) << 24; in agp_3_5_nonisochronous_node_enable()
328 unsigned int ndevs = 0; in agp_3_5_enable() local
380 ndevs++; in agp_3_5_enable()
449 ret = agp_3_5_isochronous_node_enable(bridge, dev_list, ndevs); in agp_3_5_enable()
458 agp_3_5_nonisochronous_node_enable(bridge, dev_list, ndevs); in agp_3_5_enable()