/kernel/linux/linux-5.10/tools/lib/traceevent/plugins/ |
D | plugin_scsi.c | 160 sector_t lba = 0, txlen = 0; in scsi_trace_rw6() local 162 lba |= ((cdb[1] & 0x1F) << 16); in scsi_trace_rw6() 163 lba |= (cdb[2] << 8); in scsi_trace_rw6() 164 lba |= cdb[3]; in scsi_trace_rw6() 168 (unsigned long long)lba, (unsigned long long)txlen); in scsi_trace_rw6() 177 sector_t lba = 0, txlen = 0; in scsi_trace_rw10() local 179 lba |= (cdb[2] << 24); in scsi_trace_rw10() 180 lba |= (cdb[3] << 16); in scsi_trace_rw10() 181 lba |= (cdb[4] << 8); in scsi_trace_rw10() 182 lba |= cdb[5]; in scsi_trace_rw10() [all …]
|
/kernel/linux/linux-5.10/drivers/lightnvm/ |
D | pblk-read.c | 29 sector_t lba, struct ppa_addr ppa) in pblk_read_from_cache() argument 37 return pblk_rb_copy_to_bio(&pblk->rwb, bio, lba, ppa); in pblk_read_from_cache() 56 sector_t lba = blba + i; in pblk_read_ppalist_rq() local 61 meta->lba = addr_empty; in pblk_read_ppalist_rq() 68 if (!pblk_read_from_cache(pblk, bio, lba, in pblk_read_ppalist_rq() 89 meta->lba = cpu_to_le64(lba); in pblk_read_ppalist_rq() 121 u64 lba = le64_to_cpu(meta->lba); in pblk_read_check_seq() local 123 if (lba == ADDR_EMPTY) in pblk_read_check_seq() 126 if (lba != blba + i) { in pblk_read_check_seq() 133 lba, (u64)blba + i); in pblk_read_check_seq() [all …]
|
D | pblk-cache.c | 25 sector_t lba = pblk_get_lba(bio); in pblk_write_to_cache() local 62 w_ctx.lba = lba + i; in pblk_write_to_cache() 115 w_ctx.lba = gc_rq->lba_list[i]; in pblk_write_gc_to_cache()
|
D | pblk-rb.c | 181 w_ctx->lba = ADDR_EMPTY; in clean_wctx() 259 pblk_update_map_dev(pblk, w_ctx->lba, w_ctx->ppa, in __pblk_rb_update_l2p() 333 entry->w_ctx.lba = w_ctx.lba; in __pblk_rb_write_entry() 353 pblk_update_map_cache(pblk, w_ctx.lba, entry->cacheline); in pblk_rb_write_entry_user() 377 if (!pblk_update_map_gc(pblk, w_ctx.lba, entry->cacheline, line, paddr)) in pblk_rb_write_entry_gc() 378 entry->w_ctx.lba = ADDR_EMPTY; in pblk_rb_write_entry_gc() 644 int pblk_rb_copy_to_bio(struct pblk_rb *rb, struct bio *bio, sector_t lba, in pblk_rb_copy_to_bio() argument 667 l2p_ppa = pblk_trans_map_get(pblk, lba); in pblk_rb_copy_to_bio() 671 if (!pblk_ppa_comp(l2p_ppa, ppa) || w_ctx->lba != lba || in pblk_rb_copy_to_bio()
|
D | pblk-map.c | 79 meta->lba = cpu_to_le64(w_ctx->lba); in pblk_map_page_data() 80 lba_list[paddr] = cpu_to_le64(w_ctx->lba); in pblk_map_page_data() 87 meta->lba = addr_empty; in pblk_map_page_data()
|
/kernel/linux/linux-5.10/drivers/usb/storage/ |
D | sddr55.c | 188 unsigned int lba, in sddr55_read_data() argument 220 if (lba >= info->max_log_blks) in sddr55_read_data() 223 pba = info->lba_to_pba[lba]; in sddr55_read_data() 232 pages, pba, lba, page); in sddr55_read_data() 294 lba++; in sddr55_read_data() 307 unsigned int lba, in sddr55_write_data() argument 347 if (lba >= info->max_log_blks) in sddr55_write_data() 350 pba = info->lba_to_pba[lba]; in sddr55_write_data() 363 pages, pba, lba, page); in sddr55_write_data() 375 pba = (lba / 1000) * 1024; in sddr55_write_data() [all …]
|
D | sddr09.c | 738 unsigned int lba, maxlba, pba; in sddr09_read_data() local 745 lba = address >> info->blockshift; in sddr09_read_data() 748 if (lba >= maxlba) in sddr09_read_data() 774 if (lba >= maxlba) { in sddr09_read_data() 776 lba, maxlba); in sddr09_read_data() 782 pba = info->lba_to_pba[lba]; in sddr09_read_data() 787 pages, lba, page); in sddr09_read_data() 800 pages, pba, lba, page); in sddr09_read_data() 816 lba++; in sddr09_read_data() 825 sddr09_find_unused_pba(struct sddr09_card_info *info, unsigned int lba) { in sddr09_find_unused_pba() argument [all …]
|
D | alauda.c | 801 static int alauda_write_lba(struct us_data *us, u16 lba, in alauda_write_lba() argument 813 unsigned int lba_offset = lba % uzonesize; in alauda_write_lba() 815 unsigned int zone = lba / uzonesize; in alauda_write_lba() 889 MEDIA_INFO(us).pba_to_lba[zone][new_pba_offset] = lba; in alauda_write_lba() 891 usb_stor_dbg(us, "Remapped LBA %d to PBA %d\n", lba, new_pba); in alauda_write_lba() 911 u16 lba, max_lba; in alauda_read_data() local 935 lba = address >> blockshift; in alauda_read_data() 944 unsigned int zone = lba / uzonesize; /* integer division */ in alauda_read_data() 945 unsigned int lba_offset = lba - (zone * uzonesize); in alauda_read_data() 951 if (lba >= max_lba) { in alauda_read_data() [all …]
|
D | isd200.c | 1227 unsigned long lba; in isd200_scsi_to_ata() local 1310 lba = be32_to_cpu(*(__be32 *)&srb->cmnd[2]); in isd200_scsi_to_ata() 1314 sectnum = (unsigned char)(lba); in isd200_scsi_to_ata() 1315 cylinder = (unsigned short)(lba>>8); in isd200_scsi_to_ata() 1316 head = ATA_ADDRESS_DEVHEAD_LBA_MODE | (unsigned char)(lba>>24 & 0x0F); in isd200_scsi_to_ata() 1318 sectnum = (u8)((lba % id[ATA_ID_SECTORS]) + 1); in isd200_scsi_to_ata() 1319 cylinder = (u16)(lba / (id[ATA_ID_SECTORS] * in isd200_scsi_to_ata() 1321 head = (u8)((lba / id[ATA_ID_SECTORS]) % in isd200_scsi_to_ata() 1342 lba = be32_to_cpu(*(__be32 *)&srb->cmnd[2]); in isd200_scsi_to_ata() 1346 sectnum = (unsigned char)(lba); in isd200_scsi_to_ata() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | scsi_trace.c | 21 u32 lba, txlen; in scsi_trace_rw6() local 23 lba = get_unaligned_be24(&cdb[1]) & 0x1fffff; in scsi_trace_rw6() 30 trace_seq_printf(p, "lba=%u txlen=%u", lba, txlen); in scsi_trace_rw6() 40 u32 lba, txlen; in scsi_trace_rw10() local 42 lba = get_unaligned_be32(&cdb[2]); in scsi_trace_rw10() 45 trace_seq_printf(p, "lba=%u txlen=%u protect=%u", lba, txlen, in scsi_trace_rw10() 60 u32 lba, txlen; in scsi_trace_rw12() local 62 lba = get_unaligned_be32(&cdb[2]); in scsi_trace_rw12() 65 trace_seq_printf(p, "lba=%u txlen=%u protect=%u", lba, txlen, in scsi_trace_rw12() 76 u64 lba; in scsi_trace_rw16() local [all …]
|
D | sr_ioctl.c | 102 tocentry->cdte_addr.lba = (((((buffer[8] << 8) + buffer[9]) << 8) in sr_read_tocentry() 377 ms_info->addr.lba = cd->ms_offset; in sr_get_last_session() 472 static int sr_read_cd(Scsi_CD *cd, unsigned char *dest, int lba, int format, int blksize) in sr_read_cd() argument 478 lba, format, blksize); in sr_read_cd() 484 cgc.cmd[2] = (unsigned char) (lba >> 24) & 0xff; in sr_read_cd() 485 cgc.cmd[3] = (unsigned char) (lba >> 16) & 0xff; in sr_read_cd() 486 cgc.cmd[4] = (unsigned char) (lba >> 8) & 0xff; in sr_read_cd() 487 cgc.cmd[5] = (unsigned char) lba & 0xff; in sr_read_cd() 514 static int sr_read_sector(Scsi_CD *cd, int lba, int blksize, unsigned char *dest) in sr_read_sector() argument 521 rc = sr_read_cd(cd, dest, lba, 0, blksize); in sr_read_sector() [all …]
|
D | scsi_debug.c | 872 unsigned long long lba) in lba2fake_store() argument 876 lba = do_div(lba, sdebug_store_sectors); in lba2fake_store() 881 return lsip->storep + lba * sdebug_sector_size; in lba2fake_store() 2677 unsigned long long lba) in zbc_zone() argument 2679 return &devip->zstate[lba >> devip->zsize_shift]; in zbc_zone() 2775 unsigned long long lba, unsigned int num) in zbc_inc_wp() argument 2777 struct sdeb_zone_state *zsp = zbc_zone(devip, lba); in zbc_inc_wp() 2791 if (lba != zsp->z_wp) in zbc_inc_wp() 2794 end = lba + num; in zbc_inc_wp() 2796 n = zend - lba; in zbc_inc_wp() [all …]
|
D | sd.c | 878 u64 lba = sectors_to_logical(sdp, blk_rq_pos(rq)); in sd_setup_unmap_cmnd() local 898 put_unaligned_be64(lba, &buf[8]); in sd_setup_unmap_cmnd() 914 u64 lba = sectors_to_logical(sdp, blk_rq_pos(rq)); in sd_setup_write_same16_cmnd() local 930 put_unaligned_be64(lba, &cmd->cmnd[2]); in sd_setup_write_same16_cmnd() 946 u64 lba = sectors_to_logical(sdp, blk_rq_pos(rq)); in sd_setup_write_same10_cmnd() local 962 put_unaligned_be32(lba, &cmd->cmnd[2]); in sd_setup_write_same10_cmnd() 977 u64 lba = sectors_to_logical(sdp, blk_rq_pos(rq)); in sd_setup_write_zeroes_cmnd() local 994 if (sdkp->ws16 || lba > 0xffffffff || nr_blocks > 0xffff) in sd_setup_write_zeroes_cmnd() 1075 u64 lba = sectors_to_logical(sdp, blk_rq_pos(rq)); in sd_setup_write_same_cmnd() local 1087 if (sdkp->ws16 || lba > 0xffffffff || nr_blocks > 0xffff) { in sd_setup_write_same_cmnd() [all …]
|
/kernel/linux/linux-5.10/drivers/mtd/ |
D | sm_ftl.c | 129 static int sm_get_lba(uint8_t *lba) in sm_get_lba() argument 132 if ((lba[0] & 0xF8) != 0x10) in sm_get_lba() 136 if (hweight16(*(uint16_t *)lba) & 1) in sm_get_lba() 139 return (lba[1] >> 1) | ((lba[0] & 0x07) << 7); in sm_get_lba() 154 int lba; in sm_read_lba() local 166 lba = sm_get_lba(oob->lba_copy1); in sm_read_lba() 168 if (lba == -2) in sm_read_lba() 169 lba = sm_get_lba(oob->lba_copy2); in sm_read_lba() 171 return lba; in sm_read_lba() 174 static void sm_write_lba(struct sm_oob *oob, uint16_t lba) in sm_write_lba() argument [all …]
|
/kernel/linux/linux-5.10/drivers/memstick/core/ |
D | ms_block.c | 133 static int msb_get_zone_from_lba(int lba) in msb_get_zone_from_lba() argument 135 if (lba < 494) in msb_get_zone_from_lba() 137 return ((lba - 494) / 496) + 1; in msb_get_zone_from_lba() 997 u16 pba, u32 lba, struct scatterlist *sg, int offset) in msb_write_block() argument 1011 if (pba >= msb->block_count || lba >= msb->logical_block_count) { in msb_write_block() 1017 if (msb_get_zone_from_lba(lba) != msb_get_zone_from_pba(pba)) { in msb_write_block() 1039 msb->regs.extra_data.logical_address = cpu_to_be16(lba); in msb_write_block() 1111 static int msb_update_block(struct msb_data *msb, u16 lba, in msb_update_block() argument 1117 pba = msb->lba_to_pba_table[lba]; in msb_update_block() 1118 dbg_verbose("start of a block update at lba %d, pba %d", lba, pba); in msb_update_block() [all …]
|
/kernel/linux/linux-5.10/block/partitions/ |
D | aix.c | 95 static size_t read_lba(struct parsed_partitions *state, u64 lba, u8 *buffer, in read_lba() argument 100 if (!buffer || lba + count / 512 > last_lba(state->bdev)) in read_lba() 106 unsigned char *data = read_part_sector(state, lba++, §); in read_lba() 129 static struct pvd *alloc_pvd(struct parsed_partitions *state, u32 lba) in alloc_pvd() argument 138 if (read_lba(state, lba, (u8 *) p, count) < count) { in alloc_pvd() 154 static struct lvname *alloc_lvn(struct parsed_partitions *state, u32 lba) in alloc_lvn() argument 163 if (read_lba(state, lba, (u8 *) p, count) < count) { in alloc_lvn()
|
D | efi.c | 238 u64 lba, u8 *buffer, size_t count) in read_lba() argument 242 sector_t n = lba * (bdev_logical_block_size(bdev) / 512); in read_lba() 244 if (!buffer || lba > last_lba(bdev)) in read_lba() 309 u64 lba) in alloc_read_gpt_header() argument 318 if (read_lba(state, lba, (u8 *) gpt, ssz) < ssz) { in alloc_read_gpt_header() 337 static int is_gpt_valid(struct parsed_partitions *state, u64 lba, in is_gpt_valid() argument 345 if (!(*gpt = alloc_read_gpt_header(state, lba))) in is_gpt_valid() 388 if (le64_to_cpu((*gpt)->my_lba) != lba) { in is_gpt_valid() 391 (unsigned long long)lba); in is_gpt_valid()
|
/kernel/linux/linux-5.10/include/linux/ |
D | cdrom.h | 306 static inline void lba_to_msf(int lba, u8 *m, u8 *s, u8 *f) in lba_to_msf() argument 308 lba += CD_MSF_OFFSET; in lba_to_msf() 309 lba &= 0xffffff; /* negative lbas use only 24 bits */ in lba_to_msf() 310 *m = lba / (CD_SECS * CD_FRAMES); in lba_to_msf() 311 lba %= (CD_SECS * CD_FRAMES); in lba_to_msf() 312 *s = lba / CD_FRAMES; in lba_to_msf() 313 *f = lba % CD_FRAMES; in lba_to_msf()
|
/kernel/linux/linux-5.10/drivers/nvdimm/ |
D | blk.c | 64 struct bio_integrity_payload *bip, u64 lba, int rw) in nd_blk_rw_integrity() argument 74 ns_offset = lba * internal_lbasize + sector_size; in nd_blk_rw_integrity() 110 struct bio_integrity_payload *bip, u64 lba, int rw) in nd_blk_rw_integrity() argument 125 u64 lba; in nsblk_do_bvec() local 140 lba = div_u64(sector << SECTOR_SHIFT, sector_size); in nsblk_do_bvec() 141 ns_offset = lba * internal_lbasize; in nsblk_do_bvec() 153 err = nd_blk_rw_integrity(nsblk, bip, lba, rw); in nsblk_do_bvec()
|
D | btt.c | 94 static int __btt_map_write(struct arena_info *arena, u32 lba, __le32 mapping, in __btt_map_write() argument 97 u64 ns_off = arena->mapoff + (lba * MAP_ENT_SIZE); in __btt_map_write() 99 if (unlikely(lba >= arena->external_nlba)) in __btt_map_write() 102 __func__, lba, arena->external_nlba); in __btt_map_write() 106 static int btt_map_write(struct arena_info *arena, u32 lba, u32 mapping, in btt_map_write() argument 147 return __btt_map_write(arena, lba, mapping_le, rwb_flags); in btt_map_write() 150 static int btt_map_read(struct arena_info *arena, u32 lba, u32 *mapping, in btt_map_read() argument 156 u64 ns_off = arena->mapoff + (lba * MAP_ENT_SIZE); in btt_map_read() 158 if (unlikely(lba >= arena->external_nlba)) in btt_map_read() 161 __func__, lba, arena->external_nlba); in btt_map_read() [all …]
|
/kernel/linux/linux-5.10/drivers/cdrom/ |
D | cdrom.c | 1556 addr->lba = (int) addr->msf.frame + in sanitize_format() 1559 int lba = addr->lba; in sanitize_format() local 1560 addr->msf.frame = lba % 75; in sanitize_format() 1561 lba /= 75; in sanitize_format() 1562 lba += 2; in sanitize_format() 1563 addr->msf.second = lba % 60; in sanitize_format() 1564 addr->msf.minute = lba / 60; in sanitize_format() 1682 cgc.cmd[5] = ai->lstk.lba; in dvd_do_auth() 1683 cgc.cmd[4] = ai->lstk.lba >> 8; in dvd_do_auth() 1684 cgc.cmd[3] = ai->lstk.lba >> 16; in dvd_do_auth() [all …]
|
/kernel/linux/linux-5.10/fs/udf/ |
D | lowlevel.c | 41 ms_info.xa_flag ? "yes" : "no", ms_info.addr.lba); in udf_get_last_session() 43 return ms_info.addr.lba; in udf_get_last_session()
|
/kernel/linux/linux-5.10/drivers/char/agp/ |
D | parisc-agp.c | 372 struct parisc_device **lba = data; in find_quicksilver() local 376 *lba = padev; in find_quicksilver() 387 struct parisc_device *sba = NULL, *lba = NULL; in parisc_agp_init() local 401 device_for_each_child(&sba->dev, &lba, find_quicksilver); in parisc_agp_init() 403 if (!lba) { in parisc_agp_init() 408 lbadev = parisc_get_drvdata(lba); in parisc_agp_init()
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | ufs.h | 217 u32 doorbell, int transfer_len, u32 intr, u64 lba, 220 TP_ARGS(dev_name, str, tag, doorbell, transfer_len, intr, lba, opcode), 229 __field(u64, lba) 240 __entry->lba = lba; 248 __entry->intr, __entry->lba, (u32)__entry->opcode
|
/kernel/linux/linux-5.10/drivers/scsi/qedi/ |
D | qedi_debugfs.c | 194 seq_printf(s, "0x%02x%02x%02x%02x:", io_log->lba[0], in qedi_io_trace_show() 195 io_log->lba[1], io_log->lba[2], io_log->lba[3]); in qedi_io_trace_show()
|