• Home
  • Raw
  • Download

Lines Matching refs:tpnt

5836 	struct osst_tape   * tpnt;  in osst_probe()  local
5877 tpnt = kzalloc(sizeof(struct osst_tape), GFP_ATOMIC); in osst_probe()
5878 if (!tpnt) { in osst_probe()
5892 kfree(tpnt); in osst_probe()
5895 os_scsi_tapes[dev_num] = tpnt; in osst_probe()
5896 tpnt->buffer = buffer; in osst_probe()
5897 tpnt->device = SDp; in osst_probe()
5898 drive->private_data = &tpnt->driver; in osst_probe()
5900 tpnt->driver = &osst_template; in osst_probe()
5901 tpnt->drive = drive; in osst_probe()
5902 tpnt->in_use = 0; in osst_probe()
5903 tpnt->capacity = 0xfffff; in osst_probe()
5904 tpnt->dirty = 0; in osst_probe()
5905 tpnt->drv_buffer = 1; /* Try buffering if no mode sense */ in osst_probe()
5906 tpnt->restr_dma = (SDp->host)->unchecked_isa_dma; in osst_probe()
5907 tpnt->density = 0; in osst_probe()
5908 tpnt->do_auto_lock = OSST_AUTO_LOCK; in osst_probe()
5909 tpnt->can_bsr = OSST_IN_FILE_POS; in osst_probe()
5910 tpnt->can_partitions = 0; in osst_probe()
5911 tpnt->two_fm = OSST_TWO_FM; in osst_probe()
5912 tpnt->fast_mteom = OSST_FAST_MTEOM; in osst_probe()
5913 tpnt->scsi2_logical = OSST_SCSI2LOGICAL; /* FIXME */ in osst_probe()
5914 tpnt->write_threshold = osst_write_threshold; in osst_probe()
5915 tpnt->default_drvbuffer = 0xff; /* No forced buffering */ in osst_probe()
5916 tpnt->partition = 0; in osst_probe()
5917 tpnt->new_partition = 0; in osst_probe()
5918 tpnt->nbr_partitions = 0; in osst_probe()
5919 tpnt->min_block = 512; in osst_probe()
5920 tpnt->max_block = OS_DATA_SIZE; in osst_probe()
5921 tpnt->timeout = OSST_TIMEOUT; in osst_probe()
5922 tpnt->long_timeout = OSST_LONG_TIMEOUT; in osst_probe()
5926 tpnt->os_fw_rev = osst_parse_firmware_rev (SDp->rev); in osst_probe()
5927 tpnt->omit_blklims = 1; in osst_probe()
5929 tpnt->poll = (strncmp(SDp->model, "DI-", 3) == 0) || in osst_probe()
5930 (strncmp(SDp->model, "FW-", 3) == 0) || OSST_FW_NEED_POLL(tpnt->os_fw_rev,SDp); in osst_probe()
5931 tpnt->frame_in_buffer = 0; in osst_probe()
5932 tpnt->header_ok = 0; in osst_probe()
5933 tpnt->linux_media = 0; in osst_probe()
5934 tpnt->header_cache = NULL; in osst_probe()
5937 STm = &(tpnt->modes[i]); in osst_probe()
5950 STps = &(tpnt->ps[i]); in osst_probe()
5959 tpnt->current_mode = 0; in osst_probe()
5960 tpnt->modes[0].defined = 1; in osst_probe()
5961 tpnt->modes[2].defined = 1; in osst_probe()
5962 tpnt->density_changed = tpnt->compression_changed = tpnt->blksize_changed = 0; in osst_probe()
5964 mutex_init(&tpnt->lock); in osst_probe()
5972 err = osst_sysfs_add(MKDEV(OSST_MAJOR, dev_num), dev, tpnt, tape_name(tpnt)); in osst_probe()
5977 snprintf(name, 8, "%s%s", "n", tape_name(tpnt)); in osst_probe()
5978 err = osst_sysfs_add(MKDEV(OSST_MAJOR, dev_num + 128), dev, tpnt, name); in osst_probe()
5985 SDp->model, tape_name(tpnt)); in osst_probe()
6001 struct osst_tape * tpnt; in osst_remove() local
6009 if((tpnt = os_scsi_tapes[i]) && (tpnt->device == SDp)) { in osst_remove()
6012 tpnt->device = NULL; in osst_remove()
6013 put_disk(tpnt->drive); in osst_remove()
6017 vfree(tpnt->header_cache); in osst_remove()
6018 if (tpnt->buffer) { in osst_remove()
6019 normalize_buffer(tpnt->buffer); in osst_remove()
6020 kfree(tpnt->buffer); in osst_remove()
6022 kfree(tpnt); in osst_remove()