/drivers/usb/storage/ |
D | sddr55.c | 154 unsigned int lba, in sddr55_read_data() argument 186 if (lba >= info->max_log_blks) in sddr55_read_data() 189 pba = info->lba_to_pba[lba]; in sddr55_read_data() 199 pages, pba, lba, page); in sddr55_read_data() 261 lba++; in sddr55_read_data() 274 unsigned int lba, in sddr55_write_data() argument 314 if (lba >= info->max_log_blks) in sddr55_write_data() 317 pba = info->lba_to_pba[lba]; in sddr55_write_data() 331 pages, pba, lba, page); in sddr55_write_data() 343 pba = (lba / 1000) * 1024; in sddr55_write_data() [all …]
|
D | sddr09.c | 706 unsigned int lba, maxlba, pba; in sddr09_read_data() local 713 lba = address >> info->blockshift; in sddr09_read_data() 716 if (lba >= maxlba) in sddr09_read_data() 744 if (lba >= maxlba) { in sddr09_read_data() 746 "maximum %u\n", lba, maxlba); in sddr09_read_data() 752 pba = info->lba_to_pba[lba]; in sddr09_read_data() 757 pages, lba, page); in sddr09_read_data() 769 pages, pba, lba, page); in sddr09_read_data() 785 lba++; in sddr09_read_data() 794 sddr09_find_unused_pba(struct sddr09_card_info *info, unsigned int lba) { in sddr09_find_unused_pba() argument [all …]
|
D | alauda.c | 693 static int alauda_write_lba(struct us_data *us, u16 lba, in alauda_write_lba() argument 705 unsigned int lba_offset = lba % uzonesize; in alauda_write_lba() 707 unsigned int zone = lba / uzonesize; in alauda_write_lba() 777 MEDIA_INFO(us).pba_to_lba[zone][new_pba_offset] = lba; in alauda_write_lba() 780 lba, new_pba); in alauda_write_lba() 800 u16 lba, max_lba; in alauda_read_data() local 826 lba = address >> blockshift; in alauda_read_data() 835 unsigned int zone = lba / uzonesize; /* integer division */ in alauda_read_data() 836 unsigned int lba_offset = lba - (zone * uzonesize); in alauda_read_data() 842 if (lba >= max_lba) { in alauda_read_data() [all …]
|
D | isd200.c | 1261 unsigned long lba; in isd200_scsi_to_ata() local 1345 lba = be32_to_cpu(*(__be32 *)&srb->cmnd[2]); in isd200_scsi_to_ata() 1349 sectnum = (unsigned char)(lba); in isd200_scsi_to_ata() 1350 cylinder = (unsigned short)(lba>>8); in isd200_scsi_to_ata() 1351 head = ATA_ADDRESS_DEVHEAD_LBA_MODE | (unsigned char)(lba>>24 & 0x0F); in isd200_scsi_to_ata() 1353 sectnum = (unsigned char)((lba % id->sectors) + 1); in isd200_scsi_to_ata() 1354 cylinder = (unsigned short)(lba / (id->sectors * in isd200_scsi_to_ata() 1356 head = (unsigned char)((lba / id->sectors) % in isd200_scsi_to_ata() 1377 lba = be32_to_cpu(*(__be32 *)&srb->cmnd[2]); in isd200_scsi_to_ata() 1381 sectnum = (unsigned char)(lba); in isd200_scsi_to_ata() [all …]
|
/drivers/scsi/ |
D | sr_ioctl.c | 100 tocentry->cdte_addr.lba = (((((buffer[8] << 8) + buffer[9]) << 8) in sr_read_tocentry() 378 ms_info->addr.lba = cd->ms_offset; in sr_get_last_session() 473 static int sr_read_cd(Scsi_CD *cd, unsigned char *dest, int lba, int format, int blksize) in sr_read_cd() argument 479 cd->cdi.name, lba, format, blksize); in sr_read_cd() 485 cgc.cmd[2] = (unsigned char) (lba >> 24) & 0xff; in sr_read_cd() 486 cgc.cmd[3] = (unsigned char) (lba >> 16) & 0xff; in sr_read_cd() 487 cgc.cmd[4] = (unsigned char) (lba >> 8) & 0xff; in sr_read_cd() 488 cgc.cmd[5] = (unsigned char) lba & 0xff; in sr_read_cd() 515 static int sr_read_sector(Scsi_CD *cd, int lba, int blksize, unsigned char *dest) in sr_read_sector() argument 522 rc = sr_read_cd(cd, dest, lba, 0, blksize); in sr_read_sector() [all …]
|
D | scsi_debug.c | 271 unsigned long long *lba, unsigned int *num) in get_data_transfer_info() argument 276 *lba = (u64)cmd[9] | (u64)cmd[8] << 8 | in get_data_transfer_info() 286 *lba = (u32)cmd[5] | (u32)cmd[4] << 8 | (u32)cmd[3] << 16 | in get_data_transfer_info() 295 *lba = (u32)cmd[5] | (u32)cmd[4] << 8 | (u32)cmd[3] << 16 | in get_data_transfer_info() 302 *lba = (u32)cmd[3] | (u32)cmd[2] << 8 | in get_data_transfer_info() 1503 unsigned long long lba, unsigned int num) in check_device_access_params() argument 1505 if (lba + num > sdebug_capacity) { in check_device_access_params() 1519 unsigned long long lba, unsigned int num, int write) in do_device_access() argument 1527 block = do_div(lba, sdebug_store_sectors); in do_device_access() 1539 static int resp_read(struct scsi_cmnd *SCpnt, unsigned long long lba, in resp_read() argument [all …]
|
D | 3w-xxxx.c | 1714 u32 lba = 0x0, num_sectors = 0x0; in tw_scsiop_read_write() local 1754 lba = ((u32)srb->cmnd[1] << 16) | ((u32)srb->cmnd[2] << 8) | (u32)srb->cmnd[3]; in tw_scsiop_read_write() 1757 …lba = ((u32)srb->cmnd[2] << 24) | ((u32)srb->cmnd[3] << 16) | ((u32)srb->cmnd[4] << 8) | (u32)srb-… in tw_scsiop_read_write() 1766 …dprintk(KERN_NOTICE "3w-xxxx: tw_scsiop_read_write(): lba = 0x%x num_sectors = 0x%x\n", lba, num_s… in tw_scsiop_read_write() 1767 command_packet->byte8.io.lba = lba; in tw_scsiop_read_write()
|
D | 3w-xxxx.h | 311 u32 lba; member
|
D | hptiop.h | 177 __le64 lba; member
|
/drivers/cdrom/ |
D | cdrom.c | 1493 addr->lba = (int) addr->msf.frame + in sanitize_format() 1496 int lba = addr->lba; in sanitize_format() local 1497 addr->msf.frame = lba % 75; in sanitize_format() 1498 lba /= 75; in sanitize_format() 1499 lba += 2; in sanitize_format() 1500 addr->msf.second = lba % 60; in sanitize_format() 1501 addr->msf.minute = lba / 60; in sanitize_format() 1619 cgc.cmd[5] = ai->lstk.lba; in dvd_do_auth() 1620 cgc.cmd[4] = ai->lstk.lba >> 8; in dvd_do_auth() 1621 cgc.cmd[3] = ai->lstk.lba >> 16; in dvd_do_auth() [all …]
|
/drivers/scsi/aacraid/ |
D | aachba.c | 904 static int aac_bounds_32(struct aac_dev * dev, struct scsi_cmnd * cmd, u64 lba) in aac_bounds_32() argument 906 if (lba & 0xffffffff00000000LL) { in aac_bounds_32() 923 static int aac_bounds_64(struct aac_dev * dev, struct scsi_cmnd * cmd, u64 lba) in aac_bounds_64() argument 930 static int aac_read_raw_io(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count) in aac_read_raw_io() argument 936 readcmd->block[0] = cpu_to_le32((u32)(lba&0xffffffff)); in aac_read_raw_io() 937 readcmd->block[1] = cpu_to_le32((u32)((lba&0xffffffff00000000LL)>>32)); in aac_read_raw_io() 959 static int aac_read_block64(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count) in aac_read_block64() argument 968 readcmd->block = cpu_to_le32((u32)(lba&0xffffffff)); in aac_read_block64() 990 static int aac_read_block(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count) in aac_read_block() argument 998 readcmd->block = cpu_to_le32((u32)(lba&0xffffffff)); in aac_read_block() [all …]
|
D | aacraid.h | 468 int (*adapter_bounds)(struct aac_dev * dev, struct scsi_cmnd * cmd, u64 lba); 469 int (*adapter_read)(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count); 470 int (*adapter_write)(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count, int fua); 1063 #define aac_adapter_bounds(dev,cmd,lba) \ argument 1064 dev->a_ops.adapter_bounds(dev,cmd,lba) 1066 #define aac_adapter_read(fib,cmd,lba,count) \ argument 1067 ((fib)->dev)->a_ops.adapter_read(fib,cmd,lba,count) 1069 #define aac_adapter_write(fib,cmd,lba,count,fua) \ argument 1070 ((fib)->dev)->a_ops.adapter_write(fib,cmd,lba,count,fua)
|
/drivers/char/agp/ |
D | parisc-agp.c | 365 struct parisc_device **lba = data; in find_quicksilver() local 369 *lba = padev; in find_quicksilver() 380 struct parisc_device *sba = NULL, *lba = NULL; in parisc_agp_init() local 394 device_for_each_child(&sba->dev, &lba, find_quicksilver); in parisc_agp_init() 396 if (!lba) { in parisc_agp_init() 401 lbadev = parisc_get_drvdata(lba); in parisc_agp_init()
|
/drivers/ide/ |
D | ide-cd_ioctl.c | 257 ms_info->addr.lba = toc->last_session_lba; in ide_cdrom_get_last_session() 362 lba_start = first_toc->addr.lba; in ide_cd_fake_play_trkind() 363 lba_end = last_toc->addr.lba; in ide_cd_fake_play_trkind() 409 lba_to_msf(toce->addr.lba, in ide_cd_read_tocentry() 414 tocentry->cdte_addr.lba = toce->addr.lba; in ide_cd_read_tocentry()
|
D | ide-disk.c | 339 int lba; in ide_disk_get_capacity() local 343 lba = 1; in ide_disk_get_capacity() 347 lba = 1; in ide_disk_get_capacity() 351 lba = 0; in ide_disk_get_capacity() 355 if (lba) { in ide_disk_get_capacity()
|
D | ide-cd.h | 64 unsigned lba; member
|
/drivers/ata/ |
D | libata-scsi.c | 1411 u64 lba = 0; in scsi_6_lba_len() local 1416 lba |= ((u64)(cdb[1] & 0x1f)) << 16; in scsi_6_lba_len() 1417 lba |= ((u64)cdb[2]) << 8; in scsi_6_lba_len() 1418 lba |= ((u64)cdb[3]); in scsi_6_lba_len() 1422 *plba = lba; in scsi_6_lba_len() 1438 u64 lba = 0; in scsi_10_lba_len() local 1443 lba |= ((u64)cdb[2]) << 24; in scsi_10_lba_len() 1444 lba |= ((u64)cdb[3]) << 16; in scsi_10_lba_len() 1445 lba |= ((u64)cdb[4]) << 8; in scsi_10_lba_len() 1446 lba |= ((u64)cdb[5]); in scsi_10_lba_len() [all …]
|
/drivers/block/aoe/ |
D | aoecmd.c | 92 put_lba(struct aoe_atahdr *ah, sector_t lba) in put_lba() argument 94 ah->lba0 = lba; in put_lba() 95 ah->lba1 = lba >>= 8; in put_lba() 96 ah->lba2 = lba >>= 8; in put_lba() 97 ah->lba3 = lba >>= 8; in put_lba() 98 ah->lba4 = lba >>= 8; in put_lba() 99 ah->lba5 = lba >>= 8; in put_lba() 247 f->lba = buf->sector; in aoecmd_ata_rw() 369 put_lba(ah, f->lba); in resend() 835 f->lba += n >> 9; in aoecmd_ata_rsp()
|
D | aoe.h | 120 sector_t lba; member
|
/drivers/usb/gadget/ |
D | f_mass_storage.c | 766 u32 lba; in do_read() local 778 lba = (fsg->cmnd[1] << 16) | get_be16(&fsg->cmnd[2]); in do_read() 780 lba = get_be32(&fsg->cmnd[2]); in do_read() 790 if (lba >= curlun->num_sectors) { in do_read() 794 file_offset = ((loff_t) lba) << 9; in do_read() 892 u32 lba; in do_write() local 911 lba = (fsg->cmnd[1] << 16) | get_be16(&fsg->cmnd[2]); in do_write() 913 lba = get_be32(&fsg->cmnd[2]); in do_write() 926 if (lba >= curlun->num_sectors) { in do_write() 933 file_offset = usb_offset = ((loff_t) lba) << 9; in do_write() [all …]
|
D | file_storage.c | 1574 u32 lba; in do_read() local 1586 lba = (fsg->cmnd[1] << 16) | get_be16(&fsg->cmnd[2]); in do_read() 1588 lba = get_be32(&fsg->cmnd[2]); in do_read() 1598 if (lba >= curlun->num_sectors) { in do_read() 1602 file_offset = ((loff_t) lba) << 9; in do_read() 1700 u32 lba; in do_write() local 1719 lba = (fsg->cmnd[1] << 16) | get_be16(&fsg->cmnd[2]); in do_write() 1721 lba = get_be32(&fsg->cmnd[2]); in do_write() 1734 if (lba >= curlun->num_sectors) { in do_write() 1741 file_offset = usb_offset = ((loff_t) lba) << 9; in do_write() [all …]
|
/drivers/scsi/megaraid/ |
D | mbox_defs.h | 166 uint32_t lba; member 204 u32 lba; member
|
D | megaraid_sas.h | 971 u64 lba; member 1012 u64 lba; member 1017 u64 lba; member
|
/drivers/parisc/ |
D | sba_iommu.c | 1218 struct parisc_device *lba = to_parisc_device(dev); in setup_ibase_imask_callback() local 1220 int rope_num = (lba->hpa.start >> 13) & 0xf; in setup_ibase_imask_callback() 1222 lba_set_iregs(lba, ibd->ioc->ibase, ibd->ioc->imask); in setup_ibase_imask_callback() 1244 struct parisc_device *lba = to_parisc_device(dev); in sba_ioc_find_quicksilver() local 1246 if (IS_QUICKSILVER(lba)) in sba_ioc_find_quicksilver()
|
D | lba_pci.c | 915 #define PIOP_TO_GMMIO(lba, addr) \ argument 916 ((lba)->iop_base + (((addr)&0xFFFC)<<10) + ((addr)&3)) 1577 void lba_set_iregs(struct parisc_device *lba, u32 ibase, u32 imask) in lba_set_iregs() argument 1579 void __iomem * base_addr = ioremap_nocache(lba->hpa.start, 4096); in lba_set_iregs()
|