Lines Matching defs:rnumber
112 static int pciide_pre26_rnumber_map(dev_info_t *mydip, int rnumber);
295 int rnumber;
329 switch (rnumber = *(int *)arg) {
332 rnumber += (2 * controller);
335 rnumber = 4;
338 PDBG(("pciide_ctlops invalid rnumber\n"));
347 old_rnumber = rnumber;
350 PDBG(("pciide rnumber old %d new %d\n",
352 rnumber = new_rnumber;
358 rnumber++;
364 return (ddi_ctlops(dip, dip, ctlop, &rnumber, result));
374 rc = ddi_ctlops(dip, dip, ctlop, &rnumber, &tmp);
545 int rnumber = mp->map_obj.rnumber;
561 switch (rnumber) {
564 mp->map_obj.rnumber += (controller * 2);
570 mp->map_obj.rnumber = 4;
588 old_rnumber = mp->map_obj.rnumber;
590 PDBG(("pciide rnumber old %d new %d\n",
592 mp->map_obj.rnumber = new_rnumber;
598 mp->map_obj.rnumber++;
927 pciide_pre26_rnumber_map(dev_info_t *mydip, int rnumber)
939 return (pciide_map_rnumber(rnumber, pri_native, sec_native));
995 pciide_map_rnumber(int rnumber, int pri_native, int sec_native)
1001 rnumber += pciide_transform[pri_native][sec_native][rnumber];
1002 return (rnumber);