Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
ms.c File Reference
#include <linux/blkdev.h>
#include <linux/kthread.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include "debug.h"
#include "trace.h"
#include "rts51x.h"
#include "rts51x_transport.h"
#include "rts51x_scsi.h"
#include "rts51x_card.h"
#include "ms.h"

Go to the source code of this file.

Functions

int ms_transfer_data (struct rts51x_chip *chip, u8 trans_mode, u8 tpc, u16 sec_cnt, u8 cfg, int mode_2k, int use_sg, void *buf, int buf_len)
 
int ms_write_bytes (struct rts51x_chip *chip, u8 tpc, u8 cnt, u8 cfg, u8 *data, int data_len)
 
int ms_read_bytes (struct rts51x_chip *chip, u8 tpc, u8 cnt, u8 cfg, u8 *data, int data_len)
 
int ms_set_rw_reg_addr (struct rts51x_chip *chip, u8 read_start, u8 read_cnt, u8 write_start, u8 write_cnt)
 
int ms_switch_clock (struct rts51x_chip *chip)
 
int mg_set_tpc_para_sub (struct rts51x_chip *chip, int type, u8 mg_entry_num)
 
int reset_ms_card (struct rts51x_chip *chip)
 
void mspro_polling_format_status (struct rts51x_chip *chip)
 
void mspro_format_sense (struct rts51x_chip *chip, unsigned int lun)
 
int mspro_format (struct scsi_cmnd *srb, struct rts51x_chip *chip, int short_data_len, int quick_format)
 
int ms_delay_write (struct rts51x_chip *chip)
 
int ms_rw (struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 start_sector, u16 sector_cnt)
 
void ms_free_l2p_tbl (struct rts51x_chip *chip)
 
void ms_cleanup_work (struct rts51x_chip *chip)
 
int release_ms_card (struct rts51x_chip *chip)
 

Function Documentation

int mg_set_tpc_para_sub ( struct rts51x_chip chip,
int  type,
u8  mg_entry_num 
)

Definition at line 81 of file ms_mg.c.

void ms_cleanup_work ( struct rts51x_chip chip)

Definition at line 4113 of file ms.c.

int ms_delay_write ( struct rts51x_chip chip)

Definition at line 3806 of file ms.c.

void ms_free_l2p_tbl ( struct rts51x_chip chip)

Definition at line 4092 of file ms.c.

int ms_read_bytes ( struct rts51x_chip chip,
u8  tpc,
u8  cnt,
u8  cfg,
u8 data,
int  data_len 
)

Definition at line 269 of file ms.c.

int ms_rw ( struct scsi_cmnd srb,
struct rts51x_chip chip,
u32  start_sector,
u16  sector_cnt 
)

Definition at line 4076 of file ms.c.

int ms_set_rw_reg_addr ( struct rts51x_chip chip,
u8  read_start,
u8  read_cnt,
u8  write_start,
u8  write_cnt 
)

Definition at line 345 of file ms.c.

int ms_switch_clock ( struct rts51x_chip chip)

Definition at line 516 of file ms.c.

int ms_transfer_data ( struct rts51x_chip chip,
u8  trans_mode,
u8  tpc,
u16  sec_cnt,
u8  cfg,
int  mode_2k,
int  use_sg,
void buf,
int  buf_len 
)

Definition at line 118 of file ms.c.

int ms_write_bytes ( struct rts51x_chip chip,
u8  tpc,
u8  cnt,
u8  cfg,
u8 data,
int  data_len 
)

Definition at line 197 of file ms.c.

int mspro_format ( struct scsi_cmnd srb,
struct rts51x_chip chip,
int  short_data_len,
int  quick_format 
)

Definition at line 2973 of file ms.c.

void mspro_format_sense ( struct rts51x_chip chip,
unsigned int  lun 
)

Definition at line 2955 of file ms.c.

void mspro_polling_format_status ( struct rts51x_chip chip)

Definition at line 2939 of file ms.c.

int release_ms_card ( struct rts51x_chip chip)

Definition at line 4164 of file ms.c.

int reset_ms_card ( struct rts51x_chip chip)

Definition at line 2603 of file ms.c.