Lines Matching defs:slot
265 static int ilo_ccb_setup(struct ilo_hwinfo *hw, struct ccb_data *data, int slot)
319 driver_ccb->channel = slot;
320 ilo_ccb->channel = slot;
322 driver_ccb->ccb_u5.db_base = hw->db_vaddr + (slot << L2_DB_SIZE);
328 static void ilo_ccb_open(struct ilo_hwinfo *hw, struct ccb_data *data, int slot)
335 (hw->ram_vaddr + (slot * ILOHW_CCB_SZ));
421 int slot;
427 for (slot = 0; slot < max_ccb; slot++) {
428 if (!hw->ccb_alloc[slot])
430 set_channel_reset(&hw->ccb_alloc[slot]->driver_ccb);
533 int slot;
538 slot = iminor(ip) % max_ccb;
543 if (hw->ccb_alloc[slot]->ccb_cnt == 1) {
548 hw->ccb_alloc[slot] = NULL;
555 hw->ccb_alloc[slot]->ccb_cnt--;
564 int slot, error;
569 slot = iminor(ip) % max_ccb;
580 if (hw->ccb_alloc[slot] == NULL) {
582 error = ilo_ccb_setup(hw, data, slot);
595 ilo_ccb_open(hw, data, slot);
596 hw->ccb_alloc[slot] = data;
604 hw->ccb_alloc[slot] = NULL;
615 if (fp->f_flags & O_EXCL || hw->ccb_alloc[slot]->ccb_excl) {
623 hw->ccb_alloc[slot]->ccb_cnt++;
631 fp->private_data = hw->ccb_alloc[slot];