Lines Matching refs:master
83 struct isoch_data *master, target;
95 master = kmalloc_array(ndevs, sizeof(*master), GFP_KERNEL);
96 if (master == NULL) {
142 master[cdev].maxbw = (mnistat >> 16) & 0xff;
143 master[cdev].n = (mnistat >> 8) & 0xff;
144 master[cdev].y = (mnistat >> 6) & 0x3;
145 master[cdev].dev = cur;
147 tot_bw += master[cdev].maxbw;
148 y_max = max(y_max, master[cdev].y);
179 /* Calculate the minimum ISOCH_N needed by each master */
181 master[cdev].y = target.y;
182 master[cdev].n = master[cdev].maxbw / (master[cdev].y + 1);
184 tot_n += master[cdev].n;
203 * Calculate the minimum isochronous RQ depth needed by each master.
215 master[cdev].rq = master[cdev].n;
216 if (master[cdev].y > 0x1)
217 master[cdev].rq *= (1 << (master[cdev].y - 1));
219 tot_rq += master[cdev].rq;
221 master[ndevs-1].n += rem;
239 /* Calculate asynchronous RQ capability in the target (per master) as
248 cur = master[cdev].dev;
251 master[cdev].rq += (cdev == ndevs - 1)
261 mnicmd |= master[cdev].n << 8;
262 mnicmd |= master[cdev].y << 6;
263 mcmd |= master[cdev].rq << 24;
270 kfree(master);