Home
last modified time | relevance | path

Searched refs:FT_SECTOR_SIZE (Results 1 – 11 of 11) sorted by relevance

/linux-2.4.37.9/drivers/char/ftape/lowlevel/
Dftape-ecc.c470 end = data + nblocks * (FT_SECTOR_SIZE / sizeof(long)); in set_parity()
510 data += FT_SECTOR_SIZE / sizeof(long); in set_parity()
676 dp = &data[l * FT_SECTOR_SIZE]; in correct_block()
720 parity_bytes = &mseg->data[(mseg->blocks - 3) * FT_SECTOR_SIZE]; in ftape_ecc_set_segment_parity()
721 for (i = 0; i < FT_SECTOR_SIZE; i += sizeof(long)) { in ftape_ecc_set_segment_parity()
724 FT_SECTOR_SIZE / sizeof(long)); in ftape_ecc_set_segment_parity()
753 for (col = 0; col < FT_SECTOR_SIZE; col += sizeof(long)) { in ftape_ecc_correct_data()
760 if (col >= FT_SECTOR_SIZE) { in ftape_ecc_correct_data()
840 while ((col += sizeof(long)) < FT_SECTOR_SIZE) { in ftape_ecc_correct_data()
847 } while (col < FT_SECTOR_SIZE); in ftape_ecc_correct_data()
Dftape-read.c109 mseg.blocks = buff->bytes / FT_SECTOR_SIZE; in correct_and_copy_fraction()
131 if((start+size) > ((mseg.blocks - 3) * FT_SECTOR_SIZE)) { in correct_and_copy_fraction()
132 size = (mseg.blocks - 3) * FT_SECTOR_SIZE - start; in correct_and_copy_fraction()
352 memset(address, '\0', (FT_SECTORS_PER_SEGMENT - 3) * FT_SECTOR_SIZE); in ftape_read_header_segment()
397 for (i=256; i < 29 * FT_SECTOR_SIZE; i++) { in ftape_decode_header_segment()
Dftape-write.c81 memcpy(mseg.data, source, (mseg.blocks - 3) * FT_SECTOR_SIZE); in copy_and_gen_ecc()
86 result = (mseg.blocks - 3) * FT_SECTOR_SIZE; in copy_and_gen_ecc()
Dfdc-isr.c201 buff->ptr += FT_SECTOR_SIZE; in skip_bad_sector()
363 (FT_SECTOR_SIZE - 1)) / in determine_progress()
364 FT_SECTOR_SIZE); in determine_progress()
373 FT_SECTOR_SIZE); in determine_progress()
Dftape-rw.c141 buff->ptr = buff->address + buff->data_offset * FT_SECTOR_SIZE; in setup_segment()
Dfdc-io.c1017 FT_SECTOR_SIZE * buff->sector_count); in fdc_setup_read_write()
/linux-2.4.37.9/include/linux/
Dftape.h46 #define FT_SECTOR_SIZE 1024 macro
49 #define FT_SEGMENT_SIZE ((FT_SECTORS_PER_SEGMENT - FT_ECC_SECTORS) * FT_SECTOR_SIZE)
50 #define FT_BUFF_SIZE (FT_SECTORS_PER_SEGMENT * FT_SECTOR_SIZE)
Dftape-header-segment.h107 #define FT_FSL_SIZE (2 * FT_SECTOR_SIZE - FT_HEADER_END)
/linux-2.4.37.9/drivers/char/ftape/zftape/
Dzftape-rw.c73 count_ones(ftape_get_bad_sector_entry(segment))*FT_SECTOR_SIZE; in zft_get_seg_sz()
Dzftape-ctl.c494 if ((*new_size & (FT_SECTOR_SIZE-1)) != 0) { in mt_setblk()
497 *new_size, FT_SECTOR_SIZE); in mt_setblk()
Dzftape-vtbl.c470 + (sector-1) * FT_SECTOR_SIZE); in zft_fake_volume_headers()