Lines Matching refs:atr
113 unsigned char atr[MAX_ATR];
338 if (dev->atr[0] == 0x3f)
344 ch = dev->atr[1];
351 dev->ta1 = dev->atr[2];
366 ch = dev->atr[ix];
379 ix, dev->atr[1] & 15, any_t1);
380 if (ix + 1 + (dev->atr[1] & 0x0f) + any_t1 != dev->atr_len) {
391 dev->atr_csum ^= dev->atr[i];
407 char atr[12];
414 .atr = { 0x3b, 0xb3, 0x11, 0x00, 0x00, 0x41, 0x01 },
419 .atr = {0x3b, 0x76, 0x13, 0x00, 0x00, 0x80, 0x62, 0x07,
446 if (!memcmp(dev->atr, card_fixups[i].atr,
665 * atr once a card is inserted. another side-effect of retrieving the
666 * atr is that the card will be powered on, so there is no need to
811 dev->atr[i] = inb(REG_BUF_DATA(iobase));
818 /* atr is present (which doesnt mean it's valid) */
820 if (dev->atr[0] == 0x03)
821 str_invert_revert(dev->atr, dev->atr_len);
823 if (atrc == 0) { /* atr invalid */
1092 * wait for atr to become valid.
1095 * atr-queue. if *then* the monitor detects atr valid, it will wake up
1096 * any process on the atr-queue, *but* since we have been interrupted,
1111 if (test_bit(IS_ATR_VALID, &dev->flags) == 0) { /* invalid atr */
1504 if (copy_to_user(atreq->atr, dev->atr,