Lines Matching refs:smap
91 u_char smap[4];
95 &((struct ata_intel_data *)((ctlr)->chipset_data))->smap[(ch)->unit * 2]
362 u_char *smap;
382 smap = ATA_INTEL_SMAP(ctlr, ch);
389 smap[0] = (map & 0x01) ^ ch->unit;
390 smap[1] = 0;
393 smap[0] = (map & 0x01) ? 1 : 0;
394 smap[1] = (map & 0x01) ? 0 : 1;
397 smap[0] = (map & 0x01) ? 1 : 0;
398 smap[1] = (map & 0x01) ? 0 : 1;
403 smap[0] = (ch->unit == 0) ? 0 : 1;
404 smap[1] = 0;
409 smap[0] = (ch->unit == 0) ? 0 : 1;
410 smap[1] = (ch->unit == 0) ? 2 : 3;
413 smap[0] = 0;
414 smap[1] = 2;
417 smap[0] = 1;
418 smap[1] = 3;
458 u_char *smap;
466 smap = ATA_INTEL_SMAP(ctlr, ch);
467 mask = 1 << smap[0];
469 mask |= (1 << smap[1]);
497 devs = (pcs & (1 << smap[0])) ? ATA_ATA_MASTER : 0;
499 devs |= (pcs & (1 << smap[1])) ?
651 u_char *smap;
658 smap = ATA_INTEL_SMAP(ctlr, ch);
659 offset = 0x100 + smap[port] * 0x80;
683 u_char *smap;
688 smap = ATA_INTEL_SMAP(ctlr, ch);
705 0x50 + smap[port] * 0x10 + reg * 4, 4);
748 u_char *smap;
755 smap = ATA_INTEL_SMAP(ctlr, ch);
756 offset = 0x100 + smap[port] * 0x80;
780 u_char *smap;
785 smap = ATA_INTEL_SMAP(ctlr, ch);
802 0x50 + smap[port] * 0x10 + reg * 4, 4);