Lines Matching defs:slot
263 static int ilo_ccb_setup(struct ilo_hwinfo *hw, struct ccb_data *data, int slot)
317 driver_ccb->channel = slot;
318 ilo_ccb->channel = slot;
320 driver_ccb->ccb_u5.db_base = hw->db_vaddr + (slot << L2_DB_SIZE);
326 static void ilo_ccb_open(struct ilo_hwinfo *hw, struct ccb_data *data, int slot)
333 (hw->ram_vaddr + (slot * ILOHW_CCB_SZ));
425 int slot;
431 for (slot = 0; slot < max_ccb; slot++) {
432 if (!hw->ccb_alloc[slot])
434 set_channel_reset(&hw->ccb_alloc[slot]->driver_ccb);
537 int slot;
542 slot = iminor(ip) % max_ccb;
547 if (hw->ccb_alloc[slot]->ccb_cnt == 1) {
552 hw->ccb_alloc[slot] = NULL;
559 hw->ccb_alloc[slot]->ccb_cnt--;
568 int slot, error;
573 slot = iminor(ip) % max_ccb;
584 if (hw->ccb_alloc[slot] == NULL) {
586 error = ilo_ccb_setup(hw, data, slot);
599 ilo_ccb_open(hw, data, slot);
600 hw->ccb_alloc[slot] = data;
608 hw->ccb_alloc[slot] = NULL;
619 if (fp->f_flags & O_EXCL || hw->ccb_alloc[slot]->ccb_excl) {
627 hw->ccb_alloc[slot]->ccb_cnt++;
635 fp->private_data = hw->ccb_alloc[slot];