Lines Matching refs:master
82 struct isoch_data *master, target;
95 if ((master = kmalloc(ndevs * sizeof(*master), GFP_KERNEL)) == NULL) {
143 master[cdev].maxbw = (mnistat >> 16) & 0xff;
144 master[cdev].n = (mnistat >> 8) & 0xff;
145 master[cdev].y = (mnistat >> 6) & 0x3;
146 master[cdev].dev = cur;
148 tot_bw += master[cdev].maxbw;
149 y_max = max(y_max, master[cdev].y);
180 /* Calculate the minimum ISOCH_N needed by each master */
182 master[cdev].y = target.y;
183 master[cdev].n = master[cdev].maxbw / (master[cdev].y + 1);
185 tot_n += master[cdev].n;
204 * Calculate the minimum isochronous RQ depth needed by each master.
216 master[cdev].rq = master[cdev].n;
217 if (master[cdev].y > 0x1)
218 master[cdev].rq *= (1 << (master[cdev].y - 1));
220 tot_rq += master[cdev].rq;
222 master[ndevs-1].n += rem;
240 /* Calculate asynchronous RQ capability in the target (per master) as
249 cur = master[cdev].dev;
254 master[cdev].rq += (cdev == ndevs - 1)
264 mnicmd |= master[cdev].n << 8;
265 mnicmd |= master[cdev].y << 6;
266 mcmd |= master[cdev].rq << 24;
273 kfree(master);