• Home
  • Raw
  • Download

Lines Matching refs:pc

39 					    struct ide_atapi_pc *pc,  in ide_floppy_get_format_capacities()  argument
53 ide_floppy_create_read_capacity_cmd(pc); in ide_floppy_get_format_capacities()
55 if (ide_queue_pc_tail(drive, floppy->disk, pc, pc_buf, pc->req_xfer)) { in ide_floppy_get_format_capacities()
99 static void ide_floppy_create_format_unit_cmd(struct ide_atapi_pc *pc, in ide_floppy_create_format_unit_cmd() argument
103 ide_init_pc(pc); in ide_floppy_create_format_unit_cmd()
104 pc->c[0] = GPCMD_FORMAT_UNIT; in ide_floppy_create_format_unit_cmd()
105 pc->c[1] = 0x17; in ide_floppy_create_format_unit_cmd()
117 pc->req_xfer = 12; in ide_floppy_create_format_unit_cmd()
118 pc->flags |= PC_FLAG_WRITING; in ide_floppy_create_format_unit_cmd()
121 static int ide_floppy_get_sfrp_bit(ide_drive_t *drive, struct ide_atapi_pc *pc) in ide_floppy_get_sfrp_bit() argument
128 ide_floppy_create_mode_sense_cmd(pc, IDEFLOPPY_CAPABILITIES_PAGE); in ide_floppy_get_sfrp_bit()
129 pc->flags |= PC_FLAG_SUPPRESS_ERROR; in ide_floppy_get_sfrp_bit()
131 if (ide_queue_pc_tail(drive, floppy->disk, pc, buf, pc->req_xfer)) in ide_floppy_get_sfrp_bit()
140 static int ide_floppy_format_unit(ide_drive_t *drive, struct ide_atapi_pc *pc, in ide_floppy_format_unit() argument
177 ide_floppy_get_sfrp_bit(drive, pc); in ide_floppy_format_unit()
178 ide_floppy_create_format_unit_cmd(pc, buf, blocks, length, flags); in ide_floppy_format_unit()
180 if (ide_queue_pc_tail(drive, floppy->disk, pc, buf, pc->req_xfer)) in ide_floppy_format_unit()
200 struct ide_atapi_pc *pc, in ide_floppy_get_format_progress() argument
208 ide_create_request_sense_cmd(drive, pc); in ide_floppy_get_format_progress()
209 if (ide_queue_pc_tail(drive, floppy->disk, pc, sense_buf, in ide_floppy_get_format_progress()
210 pc->req_xfer)) in ide_floppy_get_format_progress()
237 static int ide_floppy_lockdoor(ide_drive_t *drive, struct ide_atapi_pc *pc, in ide_floppy_lockdoor() argument
255 static int ide_floppy_format_ioctl(ide_drive_t *drive, struct ide_atapi_pc *pc, in ide_floppy_format_ioctl() argument
263 return ide_floppy_get_format_capacities(drive, pc, argp); in ide_floppy_format_ioctl()
267 return ide_floppy_format_unit(drive, pc, (int __user *)argp); in ide_floppy_format_ioctl()
269 return ide_floppy_get_format_progress(drive, pc, argp); in ide_floppy_format_ioctl()
278 struct ide_atapi_pc pc; in ide_floppy_ioctl() local
284 err = ide_floppy_lockdoor(drive, &pc, arg, cmd); in ide_floppy_ioctl()
288 err = ide_floppy_format_ioctl(drive, &pc, mode, cmd, argp); in ide_floppy_ioctl()
311 struct ide_atapi_pc pc; in ide_floppy_compat_ioctl() local
317 err = ide_floppy_lockdoor(drive, &pc, arg, cmd); in ide_floppy_compat_ioctl()
321 err = ide_floppy_format_ioctl(drive, &pc, mode, cmd, argp); in ide_floppy_compat_ioctl()