Lines Matching refs:st
463 unsigned char st[7]; in sb1000_reset() local
480 if ((status = card_send_command(ioaddr, name, Command0, st))) in sb1000_reset()
482 if (st[3] != 0xf0) in sb1000_reset()
493 unsigned char st[7]; in sb1000_check_CRC() local
497 if ((status = card_send_command(ioaddr, name, Command0, st))) in sb1000_check_CRC()
499 if (st[1] != st[3] || st[2] != st[4]) in sb1000_check_CRC()
501 crc = st[1] << 8 | st[2]; in sb1000_check_CRC()
510 unsigned char st[7]; in sb1000_start_get_set_command() local
512 return card_send_command(ioaddr, name, Command0, st); in sb1000_start_get_set_command()
521 unsigned char st[7]; in sb1000_end_get_set_command() local
524 if ((status = card_send_command(ioaddr, name, Command0, st))) in sb1000_end_get_set_command()
526 return card_send_command(ioaddr, name, Command1, st); in sb1000_end_get_set_command()
535 unsigned char st[7]; in sb1000_activate() local
539 if ((status = card_send_command(ioaddr, name, Command0, st))) in sb1000_activate()
541 if ((status = card_send_command(ioaddr, name, Command1, st))) in sb1000_activate()
543 if (st[3] != 0xf1) { in sb1000_activate()
559 unsigned char st[7]; in sb1000_get_firmware_version() local
564 if ((status = card_send_command(ioaddr, name, Command0, st))) in sb1000_get_firmware_version()
566 if (st[0] != 0xa3) in sb1000_get_firmware_version()
568 version[0] = st[1]; in sb1000_get_firmware_version()
569 version[1] = st[2]; in sb1000_get_firmware_version()
582 unsigned char st[7]; in sb1000_get_frequency() local
588 if ((status = card_send_command(ioaddr, name, Command0, st))) in sb1000_get_frequency()
590 *frequency = ((st[1] << 8 | st[2]) << 8 | st[3]) << 8 | st[4]; in sb1000_get_frequency()
598 unsigned char st[7]; in sb1000_set_frequency() local
621 return card_send_command(ioaddr, name, Command0, st); in sb1000_set_frequency()
633 unsigned char st[7]; in sb1000_get_PIDs() local
640 if ((status = card_send_command(ioaddr, name, Command0, st))) in sb1000_get_PIDs()
642 PID[0] = st[1] << 8 | st[2]; in sb1000_get_PIDs()
644 if ((status = card_send_command(ioaddr, name, Command1, st))) in sb1000_get_PIDs()
646 PID[1] = st[1] << 8 | st[2]; in sb1000_get_PIDs()
648 if ((status = card_send_command(ioaddr, name, Command2, st))) in sb1000_get_PIDs()
650 PID[2] = st[1] << 8 | st[2]; in sb1000_get_PIDs()
652 if ((status = card_send_command(ioaddr, name, Command3, st))) in sb1000_get_PIDs()
654 PID[3] = st[1] << 8 | st[2]; in sb1000_get_PIDs()
665 unsigned char st[7]; in sb1000_set_PIDs() local
681 if ((status = card_send_command(ioaddr, name, Command0, st))) in sb1000_set_PIDs()
688 if ((status = card_send_command(ioaddr, name, Command1, st))) in sb1000_set_PIDs()
695 if ((status = card_send_command(ioaddr, name, Command2, st))) in sb1000_set_PIDs()
702 if ((status = card_send_command(ioaddr, name, Command3, st))) in sb1000_set_PIDs()
705 if ((status = card_send_command(ioaddr, name, Command4, st))) in sb1000_set_PIDs()
712 sb1000_print_status_buffer(const char* name, unsigned char st[], in sb1000_print_status_buffer() argument
717 printk(KERN_DEBUG "%s: status: %02x %02x\n", name, st[0], st[1]); in sb1000_print_status_buffer()
746 unsigned char st[2], buffer[FRAMESIZE], session_id, frame_id; in sb1000_rx() local
766 insw(ioaddr, (unsigned short*) st, 1); in sb1000_rx()
768 printk("cm0: received: %02x %02x\n", st[0], st[1]); in sb1000_rx()
776 if (st[0] == session_id) { in sb1000_rx()
777 if (st[1] == frame_id || (!frame_id && (st[1] & 0xf0) == 0x30)) { in sb1000_rx()
779 } else if ((st[1] & 0xf0) == 0x30 && (st[0] & 0x40)) { in sb1000_rx()
784 } else if (st[0] == (session_id | 0x40)) { in sb1000_rx()
785 if ((st[1] & 0xf0) == 0x30) { in sb1000_rx()
799 "expecting %02x %02x\n", dev->name, st[0], st[1], in sb1000_rx()
807 lp->rx_frame_id[ns] = 0x30 | ((st[1] + 1) & 0x0f); in sb1000_rx()
809 if (st[0] & 0x40) { in sb1000_rx()
886 dev->name, st[0], st[1]); in sb1000_rx()
890 sb1000_print_status_buffer(dev->name, st, buffer, FrameSize); in sb1000_rx()
909 unsigned char st[5]; in sb1000_error_dpc() local
922 sb1000_read_status(ioaddr, st); in sb1000_error_dpc()
923 if (st[1] & 0x10) in sb1000_error_dpc()
1096 unsigned char st; in sb1000_interrupt() local
1109 st = inb(ioaddr[1] + 6); in sb1000_interrupt()
1110 if (!(st & 0x08 && st & 0x20)) { in sb1000_interrupt()
1117 st = inb(ioaddr[0] + 7); in sb1000_interrupt()
1124 if (st & 0x01) { in sb1000_interrupt()