• Home
  • Raw
  • Download

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
95 master = kmalloc_array(ndevs, sizeof(*master), GFP_KERNEL); in agp_3_5_isochronous_node_enable()
117 agp_3_5_dev_list_sort(dev_list, ndevs); in agp_3_5_isochronous_node_enable()
180 for (cdev=0; cdev<ndevs; cdev++) { in agp_3_5_isochronous_node_enable()
207 for (cdev=0; cdev<ndevs; cdev++) { in agp_3_5_isochronous_node_enable()
221 master[ndevs-1].n += rem; in agp_3_5_isochronous_node_enable()
241 step = rq_async / ndevs; in agp_3_5_isochronous_node_enable()
242 rem_async = step + (rq_async % ndevs); in agp_3_5_isochronous_node_enable()
247 for (cdev=0; cdev<ndevs; cdev++) { in agp_3_5_isochronous_node_enable()
251 master[cdev].rq += (cdev == ndevs - 1) in agp_3_5_isochronous_node_enable()
284 struct agp_3_5_dev *dev_list, unsigned int ndevs) in agp_3_5_nonisochronous_node_enable() argument
295 mrq = trq / ndevs; in agp_3_5_nonisochronous_node_enable()
297 rem = mrq + (trq % ndevs); in agp_3_5_nonisochronous_node_enable()
299 for (pos=head->next; cdev<ndevs; cdev++, pos=pos->next) { in agp_3_5_nonisochronous_node_enable()
304 mcmd |= ((cdev == ndevs - 1) ? rem : mrq) << 24; in agp_3_5_nonisochronous_node_enable()
323 unsigned int ndevs = 0; in agp_3_5_enable() local
373 ndevs++; in agp_3_5_enable()
442 ret = agp_3_5_isochronous_node_enable(bridge, dev_list, ndevs); in agp_3_5_enable()
451 agp_3_5_nonisochronous_node_enable(bridge, dev_list, ndevs); in agp_3_5_enable()