Lines Matching refs:length
169 u16 length = 8; /* sizeof(Mode Parameter Header) = 8 Bytes */ in ide_floppy_create_mode_sense_cmd() local
178 length += 12; in ide_floppy_create_mode_sense_cmd()
181 length += 32; in ide_floppy_create_mode_sense_cmd()
186 put_unaligned(cpu_to_be16(length), (u16 *) &pc->c[7]); in ide_floppy_create_mode_sense_cmd()
187 pc->req_xfer = length; in ide_floppy_create_mode_sense_cmd()
379 int i, rc = 1, blocks, length; in ide_floppy_get_capacity() local
402 length = be16_to_cpup((__be16 *)&pc_buf[desc_start + 6]); in ide_floppy_get_capacity()
406 i, blocks * length / 1024, in ide_floppy_get_capacity()
407 blocks, length); in ide_floppy_get_capacity()
429 drive->name, blocks * length / 1024, in ide_floppy_get_capacity()
430 blocks, length); in ide_floppy_get_capacity()
433 if (!length || length % 512) { in ide_floppy_get_capacity()
435 " not supported\n", drive->name, length); in ide_floppy_get_capacity()
438 floppy->block_size = length; in ide_floppy_get_capacity()
439 floppy->bs_factor = length / 512; in ide_floppy_get_capacity()