Lines Matching refs:ndevs
35 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
64 struct agp_3_5_dev *dev_list, unsigned int ndevs) in agp_3_5_isochronous_node_enable() argument
95 if ((master = kmalloc(ndevs * sizeof(*master), GFP_KERNEL)) == NULL) { in agp_3_5_isochronous_node_enable()
116 agp_3_5_dev_list_sort(dev_list, ndevs); in agp_3_5_isochronous_node_enable()
181 for (cdev=0; cdev<ndevs; cdev++) { in agp_3_5_isochronous_node_enable()
208 for (cdev=0; cdev<ndevs; cdev++) { in agp_3_5_isochronous_node_enable()
222 master[ndevs-1].n += rem; in agp_3_5_isochronous_node_enable()
242 step = rq_async / ndevs; in agp_3_5_isochronous_node_enable()
243 rem_async = step + (rq_async % ndevs); in agp_3_5_isochronous_node_enable()
248 for (cdev=0; cdev<ndevs; cdev++) { in agp_3_5_isochronous_node_enable()
254 master[cdev].rq += (cdev == ndevs - 1) in agp_3_5_isochronous_node_enable()
287 struct agp_3_5_dev *dev_list, unsigned int ndevs) in agp_3_5_nonisochronous_node_enable() argument
298 mrq = trq / ndevs; in agp_3_5_nonisochronous_node_enable()
300 rem = mrq + (trq % ndevs); in agp_3_5_nonisochronous_node_enable()
302 for (pos=head->next; cdev<ndevs; cdev++, pos=pos->next) { in agp_3_5_nonisochronous_node_enable()
307 mcmd |= ((cdev == ndevs - 1) ? rem : mrq) << 24; in agp_3_5_nonisochronous_node_enable()
326 unsigned int ndevs = 0; in agp_3_5_enable() local
378 ndevs++; in agp_3_5_enable()
447 ret = agp_3_5_isochronous_node_enable(bridge, dev_list, ndevs); in agp_3_5_enable()
456 agp_3_5_nonisochronous_node_enable(bridge, dev_list, ndevs); in agp_3_5_enable()