Home
last modified time | relevance | path

Searched refs:sect (Results 1 – 25 of 30) sorted by relevance

12

/drivers/ide/
Dide.c242 u8 sect; member
273 ide_disks_chs[i].sect = s; in ide_set_disk_chs()
318 drive->sect = drive->bios_sect = ide_disks_chs[i].sect; in ide_dev_apply_params()
322 drive->cyl, drive->head, drive->sect); in ide_dev_apply_params()
Dide-disk.c134 unsigned int sect, head, cyl, track; in __ide_do_rw_disk() local
136 track = (int)block / drive->sect; in __ide_do_rw_disk()
137 sect = (int)block % drive->sect + 1; in __ide_do_rw_disk()
141 pr_debug("%s: CHS=%u/%u/%u\n", drive->name, cyl, head, sect); in __ide_do_rw_disk()
144 tf->lbal = sect; in __ide_do_rw_disk()
371 drive->capacity64 = drive->cyl * drive->head * drive->sect; in ide_disk_get_capacity()
Dide-probe.c58 id[ATA_ID_CUR_SECTORS] = id[ATA_ID_SECTORS] = drive->sect; in generic_id()
66 if (!drive->cyl || !drive->head || !drive->sect) { in ide_disk_init_chs()
69 drive->sect = drive->bios_sect = id[ATA_ID_SECTORS]; in ide_disk_init_chs()
76 drive->sect = id[ATA_ID_CUR_SECTORS]; in ide_disk_init_chs()
83 drive->sect = id[ATA_ID_SECTORS]; in ide_disk_init_chs()
505 drive->head, drive->sect); in probe_for_drive()
Dide-io.c167 tf->nsect = drive->sect; in ide_tf_set_specify_cmd()
168 tf->lbal = drive->sect; in ide_tf_set_specify_cmd()
177 tf->nsect = drive->sect; in ide_tf_set_restore_cmd()
/drivers/block/
Dfloppy.c2080 if (floppy_type[drive_params[drive].autodetect[probed_format]].sect) { in next_valid_format()
2145 unsigned char track, head, sect, size; in setup_format_params() member
2158 raw_cmd->cmd[F_SECT_PER_TRACK] = _floppy->sect << 2 >> raw_cmd->cmd[F_SIZECODE]; in setup_format_params()
2187 here[count].sect = 0; in setup_format_params()
2192 here[n].sect = count; in setup_format_params()
2194 if (here[n].sect) { /* sector busy, find next free sector */ in setup_format_params()
2198 while (here[n].sect) in setup_format_params()
2205 here[count].sect += FD_SECTBASE(_floppy) - 1; in setup_format_params()
2236 (_floppy->sect << 2) % (1 << FD_SIZECODE(_floppy)) || in do_format()
2295 if (block > _floppy->sect) in request_done()
[all …]
Damiflop.c828 unsigned char sect; member
862 hdr.magic, hdr.track, hdr.sect, hdr.ord, in amiga_read()
879 raw = decode ((ulong *)(unit[drive].trackbuf + hdr.sect*512), in amiga_read()
881 csum = checksum((ulong *)(unit[drive].trackbuf + hdr.sect*512), 512); in amiga_read()
885 hdr.magic, hdr.track, hdr.sect, hdr.ord, scnt, in amiga_read()
888 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[0], in amiga_read()
889 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[1], in amiga_read()
890 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[2], in amiga_read()
891 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[3]); in amiga_read()
943 hdr.sect = cnt; in putsec()
[all …]
Dataflop.c744 int sect, nsect; in do_format() local
782 for( sect = 0; sect < nsect; ++sect ) { in do_format()
788 *p++ = (nsect + sect - desc->sect_offset) % nsect + 1; in do_format()
1612 getprm.sect = dtp->spt; in fd_locked_ioctl()
1647 drive, setprm.size, setprm.sect, setprm.stretch); in fd_locked_ioctl()
1674 && dtp->spt == setprm.sect in fd_locked_ioctl()
1707 dtp->spt = setprm.sect; in fd_locked_ioctl()
1708 if (setprm.sect > 14) in fd_locked_ioctl()
Dswim.c601 fs->secpercyl = g->head * g->sect; in setup_medium()
602 fs->secpertrack = g->sect; in setup_medium()
725 geo->sectors = g->sect; in floppy_getgeo()
/drivers/net/ethernet/alacritech/
Dslicoss.c1120 u32 sect; in slic_load_firmware() local
1173 for (sect = 0; sect < numsects; sect++) { in slic_load_firmware()
1174 unsigned int ssize = sectsize[sect] >> 3; in slic_load_firmware()
1176 base = sectstart[sect]; in slic_load_firmware()
1192 for (sect = 0; sect < numsects; sect++) { in slic_load_firmware()
1193 unsigned int ssize = sectsize[sect] >> 3; in slic_load_firmware()
1196 base = sectstart[sect]; in slic_load_firmware()
/drivers/md/
Draid1.c260 sector_t sect = r1_bio->sector; in put_buf() local
271 lower_barrier(conf, sect); in put_buf()
1975 sector_t sect = r1_bio->sector; in fix_sync_read_error() local
2007 if (sync_page_io(rdev, sect, s<<9, in fix_sync_read_error()
2034 if (!rdev_set_badblocks(rdev, sect, s, 0)) in fix_sync_read_error()
2047 sect += s; in fix_sync_read_error()
2061 if (r1_sync_page_io(rdev, sect, s, in fix_sync_read_error()
2076 if (r1_sync_page_io(rdev, sect, s, in fix_sync_read_error()
2082 sect += s; in fix_sync_read_error()
2231 sector_t sect, int sectors) in fix_read_error() argument
[all …]
Draid10.c2156 sector_t sect = 0; in fix_recovery_read_error() local
2173 addr = r10_bio->devs[0].addr + sect, in fix_recovery_read_error()
2181 addr = r10_bio->devs[1].addr + sect; in fix_recovery_read_error()
2205 addr = r10_bio->devs[1].addr + sect; in fix_recovery_read_error()
2222 sect += s; in fix_recovery_read_error()
2338 int sect = 0; /* Offset from r10_bio->sector */ in fix_read_error() local
2389 is_badblock(rdev, r10_bio->devs[sl].addr + sect, s, in fix_read_error()
2395 sect, in fix_read_error()
2421 + sect, in fix_read_error()
2450 sect, in fix_read_error()
[all …]
Draid5-cache.c196 sector_t sect) in r5c_tree_index() argument
198 sector_div(sect, conf->chunk_sectors); in r5c_tree_index()
199 return sect; in r5c_tree_index()
862 static void r5l_append_flush_payload(struct r5l_log *log, sector_t sect) in r5l_append_flush_payload() argument
892 payload->flush_stripes[0] = cpu_to_le64(sect); in r5l_append_flush_payload()
1944 r5c_recovery_lookup_stripe(struct list_head *list, sector_t sect) in r5c_recovery_lookup_stripe() argument
1949 if (sh->sector == sect) in r5c_recovery_lookup_stripe()
2945 bool r5c_big_stripe_cached(struct r5conf *conf, sector_t sect) in r5c_big_stripe_cached() argument
2955 tree_index = r5c_tree_index(conf, sect); in r5c_big_stripe_cached()
Draid5-log.h34 extern bool r5c_big_stripe_cached(struct r5conf *conf, sector_t sect);
/drivers/gpu/drm/amd/amdgpu/
Dgfx_v6_0.c2022 const struct cs_section_def *sect = NULL; in gfx_v6_0_cp_gfx_start() local
2057 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v6_0_cp_gfx_start()
2058 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v6_0_cp_gfx_start()
2059 if (sect->id == SECT_CONTEXT) { in gfx_v6_0_cp_gfx_start()
2844 const struct cs_section_def *sect = NULL; in gfx_v6_0_get_csb_size() local
2855 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v6_0_get_csb_size()
2856 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v6_0_get_csb_size()
2857 if (sect->id == SECT_CONTEXT) in gfx_v6_0_get_csb_size()
2877 const struct cs_section_def *sect = NULL; in gfx_v6_0_get_csb_buffer() local
2891 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v6_0_get_csb_buffer()
[all …]
Dgfx_v7_0.c2522 const struct cs_section_def *sect = NULL; in gfx_v7_0_cp_gfx_start() local
2553 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v7_0_cp_gfx_start()
2554 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v7_0_cp_gfx_start()
2555 if (sect->id == SECT_CONTEXT) { in gfx_v7_0_cp_gfx_start()
3947 const struct cs_section_def *sect = NULL; in gfx_v7_0_get_csb_size() local
3958 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v7_0_get_csb_size()
3959 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v7_0_get_csb_size()
3960 if (sect->id == SECT_CONTEXT) in gfx_v7_0_get_csb_size()
3980 const struct cs_section_def *sect = NULL; in gfx_v7_0_get_csb_buffer() local
3995 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v7_0_get_csb_buffer()
[all …]
Dgfx_v9_0.c1687 const struct cs_section_def *sect = NULL; in gfx_v9_0_get_csb_size() local
1695 for (sect = gfx9_cs_data; sect->section != NULL; ++sect) { in gfx_v9_0_get_csb_size()
1696 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v9_0_get_csb_size()
1697 if (sect->id == SECT_CONTEXT) in gfx_v9_0_get_csb_size()
1716 const struct cs_section_def *sect = NULL; in gfx_v9_0_get_csb_buffer() local
1731 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v9_0_get_csb_buffer()
1732 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v9_0_get_csb_buffer()
1733 if (sect->id == SECT_CONTEXT) { in gfx_v9_0_get_csb_buffer()
3202 const struct cs_section_def *sect = NULL; in gfx_v9_0_cp_gfx_start() local
3225 for (sect = gfx9_cs_data; sect->section != NULL; ++sect) { in gfx_v9_0_cp_gfx_start()
[all …]
Dgfx_v8_0.c1247 const struct cs_section_def *sect = NULL; in gfx_v8_0_get_csb_buffer() local
1262 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v8_0_get_csb_buffer()
1263 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v8_0_get_csb_buffer()
1264 if (sect->id == SECT_CONTEXT) { in gfx_v8_0_get_csb_buffer()
4147 const struct cs_section_def *sect = NULL; in gfx_v8_0_get_csb_size() local
4155 for (sect = vi_cs_data; sect->section != NULL; ++sect) { in gfx_v8_0_get_csb_size()
4156 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v8_0_get_csb_size()
4157 if (sect->id == SECT_CONTEXT) in gfx_v8_0_get_csb_size()
4176 const struct cs_section_def *sect = NULL; in gfx_v8_0_cp_gfx_start() local
4201 for (sect = vi_cs_data; sect->section != NULL; ++sect) { in gfx_v8_0_cp_gfx_start()
[all …]
/drivers/ata/
Dlibata-scsi.c1454 u32 sect, head, cyl, track; in ata_scsi_verify_xlat() local
1463 sect = (u32)block % dev->sectors + 1; in ata_scsi_verify_xlat()
1466 (u32)block, track, cyl, head, sect); in ata_scsi_verify_xlat()
1472 if ((cyl >> 16) || (head >> 4) || (sect >> 8) || (!sect)) in ata_scsi_verify_xlat()
1477 tf->lbal = sect; in ata_scsi_verify_xlat()
3441 u16 sect, fp = (u16)-1; in ata_scsi_zbc_in_xlat() local
3472 sect = n_block / 512; in ata_scsi_zbc_in_xlat()
3481 tf->feature = sect & 0xff; in ata_scsi_zbc_in_xlat()
3482 tf->hob_feature = (sect >> 8) & 0xff; in ata_scsi_zbc_in_xlat()
3489 tf->hob_nsect = (sect >> 8) & 0xff; in ata_scsi_zbc_in_xlat()
[all …]
Dlibata-core.c635 u32 cyl, head, sect; in ata_tf_read_block() local
639 sect = tf->lbal; in ata_tf_read_block()
641 if (!sect) { in ata_tf_read_block()
647 block = (cyl * dev->heads + head) * dev->sectors + sect - 1; in ata_tf_read_block()
748 u32 sect, head, cyl, track; in ata_build_rw_tf() local
761 sect = (u32)block % dev->sectors + 1; in ata_build_rw_tf()
764 (u32)block, track, cyl, head, sect); in ata_build_rw_tf()
770 if ((cyl >> 16) || (head >> 4) || (sect >> 8) || (!sect)) in ata_build_rw_tf()
774 tf->lbal = sect; in ata_build_rw_tf()
/drivers/mtd/chips/
Dcfi_cmdset_0002.c2800 struct ppb_lock *sect; in cfi_ppb_unlock() local
2820 sect = kcalloc(max_sectors, sizeof(struct ppb_lock), GFP_KERNEL); in cfi_ppb_unlock()
2821 if (!sect) in cfi_ppb_unlock()
2844 sect[sectors].chip = &cfi->chips[chipnum]; in cfi_ppb_unlock()
2845 sect[sectors].adr = adr; in cfi_ppb_unlock()
2846 sect[sectors].locked = do_ppb_xxlock( in cfi_ppb_unlock()
2872 kfree(sect); in cfi_ppb_unlock()
2881 kfree(sect); in cfi_ppb_unlock()
2890 if (sect[i].locked) in cfi_ppb_unlock()
2891 do_ppb_xxlock(map, sect[i].chip, sect[i].adr, 0, in cfi_ppb_unlock()
[all …]
/drivers/net/ethernet/intel/ice/
Dice_flex_pipe.c92 static u32 ice_sect_id(enum ice_block blk, enum ice_sect sect) in ice_sect_id() argument
94 return ice_sect_lkup[blk][sect]; in ice_sect_id()
245 state->sect = ((u8 *)state->buf) + in ice_pkg_enum_section()
248 return state->sect; in ice_pkg_enum_section()
301 entry = state->handler(state->sect_type, state->sect, state->entry_idx, in ice_pkg_enum_entry()
309 entry = state->handler(state->sect_type, state->sect, in ice_pkg_enum_entry()
2715 void *sect; in ice_fill_tbl() local
2728 sect = ice_pkg_enum_section(hw->seg, &state, sid); in ice_fill_tbl()
2730 while (sect) { in ice_fill_tbl()
2737 xlt1 = (struct ice_xlt1_section *)sect; in ice_fill_tbl()
[all …]
Dice_flex_type.h289 void *sect; member
/drivers/nvme/target/
Dnvmet.h604 static inline __le64 nvmet_sect_to_lba(struct nvmet_ns *ns, sector_t sect) in nvmet_sect_to_lba() argument
606 return cpu_to_le64(sect >> (ns->blksize_shift - SECTOR_SHIFT)); in nvmet_sect_to_lba()
/drivers/mtd/
Dftl.c945 u_long sect; in ftl_getgeo() local
948 sect = le32_to_cpu(part->header.FormattedSize)/SECTOR_SIZE; in ftl_getgeo()
952 geo->cylinders = sect >> 3; in ftl_getgeo()
/drivers/block/null_blk/
Dzoned.c11 static inline unsigned int null_zone_no(struct nullb_device *dev, sector_t sect) in null_zone_no() argument
13 return sect >> ilog2(dev->zone_size_sects); in null_zone_no()

12