Lines Matching refs:cid
886 int cid = MINOR(inode->i_rdev); in mem_open() local
890 if (cid < PCILYNX_MINOR_AUX_START) { in mem_open()
893 } else if (cid < PCILYNX_MINOR_ROM_START) { in mem_open()
894 cid -= PCILYNX_MINOR_AUX_START; in mem_open()
895 if (cid >= num_of_cards || !cards[cid].aux_port) in mem_open()
898 } else if (cid < PCILYNX_MINOR_RAM_START) { in mem_open()
899 cid -= PCILYNX_MINOR_ROM_START; in mem_open()
900 if (cid >= num_of_cards || !cards[cid].local_rom) in mem_open()
906 cid -= PCILYNX_MINOR_RAM_START; in mem_open()
907 if (cid >= num_of_cards || !cards[cid].local_ram) in mem_open()
916 md->lynx = &cards[cid]; in mem_open()
917 md->cid = cid; in mem_open()
928 atomic_read(&cards[cid].aux_intr_seen)); in mem_open()
947 int cid = md->cid; in aux_poll() local
954 poll_wait(file, &cards[cid].aux_intr_wait, pt); in aux_poll()
957 != atomic_read(&cards[cid].aux_intr_seen)) { in aux_poll()