Home
last modified time | relevance | path

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

/drivers/staging/rts5139/
Drts51x_scsi.c806 u16 sec_cnt; in read_write() local
847 sec_cnt = ((u16) (srb->cmnd[7]) << 8) | srb->cmnd[8]; in read_write()
851 sec_cnt = srb->cmnd[4]; in read_write()
860 sec_cnt = ((u16) (srb->cmnd[9]) << 8) | srb->cmnd[10]; in read_write()
867 ((start_sec + sec_cnt) > chip->capacity[lun])) { in read_write()
872 if (sec_cnt == 0) { in read_write()
884 retval = card_rw(srb, chip, start_sec, sec_cnt); in read_write()
Dms.h259 u16 sec_cnt, u8 cfg, int mode_2k, int use_sg, void *buf,
Drts51x_card.c666 u16 sec_cnt) in card_rw() argument
677 DMA_TO_DEVICE) ? "Write" : "Read", sec_addr, sec_cnt); in card_rw()
681 retval = chip->rw_card[lun] (srb, chip, sec_addr, sec_cnt); in card_rw()
Dms.c119 u16 sec_cnt, u8 cfg, int mode_2k, int use_sg, void *buf, in ms_transfer_data() argument
149 (u8) (sec_cnt >> 8)); in ms_transfer_data()
151 (u8) sec_cnt); in ms_transfer_data()
163 trans_dma_enable(dir, chip, sec_cnt * 512, DMA_512); in ms_transfer_data()
2657 u16 sec_cnt, u8 cmd) argument
2663 data[1] = (u8) (sec_cnt >> 8);
2664 data[2] = (u8) sec_cnt;
3054 u8 page_cnt = end_page - start_page, page_addr, sec_cnt; local
3151 sec_cnt = chip->rsp_buf[0];
3153 (int)page_cnt, (int)sec_cnt);
[all …]
Drts51x_card.h755 u16 sec_cnt);
Drts51x_chip.h422 u32 sec_addr, u16 sec_cnt);
/drivers/staging/rts_pstor/
Drtsx_scsi.c687 u16 sec_cnt; in read_write() local
730 sec_cnt = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; in read_write()
734 sec_cnt = srb->cmnd[4]; in read_write()
739 sec_cnt = ((u16)(srb->cmnd[9]) << 8) | srb->cmnd[10]; in read_write()
750 ((start_sec + sec_cnt) > get_card_size(chip, lun))) { in read_write()
755 if (sec_cnt == 0) { in read_write()
785 retval = card_rw(srb, chip, start_sec, sec_cnt); in read_write()
2611 u16 sec_cnt; in led_shine() local
2614 sec_cnt = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; in led_shine()
2616 sec_cnt = srb->cmnd[4]; in led_shine()
[all …]
Dms.c105 static int ms_transfer_data(struct rtsx_chip *chip, u8 trans_mode, u8 tpc, u16 sec_cnt, in ms_transfer_data() argument
130 MS_SECTOR_CNT_H, 0xFF, (u8)(sec_cnt >> 8)); in ms_transfer_data()
131 rtsx_add_cmd(chip, WRITE_REG_CMD, MS_SECTOR_CNT_L, 0xFF, (u8)sec_cnt); in ms_transfer_data()
141 trans_dma_enable(dir, chip, sec_cnt * 512, DMA_512); in ms_transfer_data()
2504 static int mspro_set_rw_cmd(struct rtsx_chip *chip, u32 start_sec, u16 sec_cnt, u8 cmd) in mspro_set_rw_cmd() argument
2510 data[1] = (u8)(sec_cnt >> 8); in mspro_set_rw_cmd()
2511 data[2] = (u8)sec_cnt; in mspro_set_rw_cmd()
Drtsx_card.c1026 int card_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, u32 sec_addr, u16 sec_cnt) in card_rw() argument
1039 retval = chip->rw_card[lun](srb, chip, sec_addr, sec_cnt); in card_rw()
Drtsx_card.h1016 int card_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, u32 sec_addr, u16 sec_cnt);
Drtsx_chip.h347 …edef int (*card_rw_func)(struct scsi_cmnd *srb, struct rtsx_chip *chip, u32 sec_addr, u16 sec_cnt);