Lines Matching refs:atr
108 unsigned char atr[MAX_ATR];
332 if (dev->atr[0] == 0x3f)
338 ch = dev->atr[1];
345 dev->ta1 = dev->atr[2];
360 ch = dev->atr[ix];
373 ix, dev->atr[1] & 15, any_t1);
374 if (ix + 1 + (dev->atr[1] & 0x0f) + any_t1 != dev->atr_len) {
385 dev->atr_csum ^= dev->atr[i];
401 char atr[12];
408 .atr = { 0x3b, 0xb3, 0x11, 0x00, 0x00, 0x41, 0x01 },
413 .atr = {0x3b, 0x76, 0x13, 0x00, 0x00, 0x80, 0x62, 0x07,
440 if (!memcmp(dev->atr, card_fixups[i].atr,
660 * atr once a card is inserted. another side-effect of retrieving the
661 * atr is that the card will be powered on, so there is no need to
808 dev->atr[i] = inb(REG_BUF_DATA(iobase));
815 /* atr is present (which doesn't mean it's valid) */
817 if (dev->atr[0] == 0x03)
818 str_invert_revert(dev->atr, dev->atr_len);
820 if (atrc == 0) { /* atr invalid */
1090 * wait for atr to become valid.
1093 * atr-queue. if *then* the monitor detects atr valid, it will wake up
1094 * any process on the atr-queue, *but* since we have been interrupted,
1109 if (test_bit(IS_ATR_VALID, &dev->flags) == 0) { /* invalid atr */
1495 if (copy_to_user(atreq->atr, dev->atr,