Lines Matching refs:smap
91 u_char smap[4];
95 &((struct ata_intel_data *)((ctlr)->chipset_data))->smap[(ch)->unit * 2]
386 u_char *smap;
406 smap = ATA_INTEL_SMAP(ctlr, ch);
413 smap[0] = (map & 0x01) ^ ch->unit;
414 smap[1] = 0;
417 smap[0] = (map & 0x01) ? 1 : 0;
418 smap[1] = (map & 0x01) ? 0 : 1;
421 smap[0] = (map & 0x01) ? 1 : 0;
422 smap[1] = (map & 0x01) ? 0 : 1;
427 smap[0] = (ch->unit == 0) ? 0 : 1;
428 smap[1] = 0;
433 smap[0] = (ch->unit == 0) ? 0 : 1;
434 smap[1] = (ch->unit == 0) ? 2 : 3;
437 smap[0] = 0;
438 smap[1] = 2;
441 smap[0] = 1;
442 smap[1] = 3;
482 u_char *smap;
490 smap = ATA_INTEL_SMAP(ctlr, ch);
491 mask = 1 << smap[0];
493 mask |= (1 << smap[1]);
521 devs = (pcs & (1 << smap[0])) ? ATA_ATA_MASTER : 0;
523 devs |= (pcs & (1 << smap[1])) ?
675 u_char *smap;
682 smap = ATA_INTEL_SMAP(ctlr, ch);
683 offset = 0x100 + smap[port] * 0x80;
707 u_char *smap;
712 smap = ATA_INTEL_SMAP(ctlr, ch);
729 0x50 + smap[port] * 0x10 + reg * 4, 4);
772 u_char *smap;
779 smap = ATA_INTEL_SMAP(ctlr, ch);
780 offset = 0x100 + smap[port] * 0x80;
804 u_char *smap;
809 smap = ATA_INTEL_SMAP(ctlr, ch);
826 0x50 + smap[port] * 0x10 + reg * 4, 4);