Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
mmc_ops.c File Reference
#include <linux/slab.h>
#include <linux/export.h>
#include <linux/types.h>
#include <linux/scatterlist.h>
#include <linux/mmc/host.h>
#include <linux/mmc/card.h>
#include <linux/mmc/mmc.h>
#include "core.h"
#include "mmc_ops.h"

Go to the source code of this file.

Functions

int mmc_select_card (struct mmc_card *card)
 
int mmc_deselect_cards (struct mmc_host *host)
 
int mmc_card_sleepawake (struct mmc_host *host, int sleep)
 
int mmc_go_idle (struct mmc_host *host)
 
int mmc_send_op_cond (struct mmc_host *host, u32 ocr, u32 *rocr)
 
int mmc_all_send_cid (struct mmc_host *host, u32 *cid)
 
int mmc_set_relative_addr (struct mmc_card *card)
 
int mmc_send_csd (struct mmc_card *card, u32 *csd)
 
int mmc_send_cid (struct mmc_host *host, u32 *cid)
 
int mmc_send_ext_csd (struct mmc_card *card, u8 *ext_csd)
 
int mmc_spi_read_ocr (struct mmc_host *host, int highcap, u32 *ocrp)
 
int mmc_spi_set_crc (struct mmc_host *host, int use_crc)
 
int __mmc_switch (struct mmc_card *card, u8 set, u8 index, u8 value, unsigned int timeout_ms, bool use_busy_signal)
 
 EXPORT_SYMBOL_GPL (__mmc_switch)
 
int mmc_switch (struct mmc_card *card, u8 set, u8 index, u8 value, unsigned int timeout_ms)
 
 EXPORT_SYMBOL_GPL (mmc_switch)
 
int mmc_send_status (struct mmc_card *card, u32 *status)
 
int mmc_bus_test (struct mmc_card *card, u8 bus_width)
 
int mmc_send_hpi_cmd (struct mmc_card *card, u32 *status)
 

Function Documentation

int __mmc_switch ( struct mmc_card card,
u8  set,
u8  index,
u8  value,
unsigned int  timeout_ms,
bool  use_busy_signal 
)

__mmc_switch - modify EXT_CSD register : the MMC card associated with the data transfer : cmd set values : EXT_CSD register index : value to program into EXT_CSD register : timeout (ms) for operation performed by register write, timeout of zero implies maximum possible timeout : use the busy signal as response type

Modifies the EXT_CSD register for selected card.

Definition at line 407 of file mmc_ops.c.

EXPORT_SYMBOL_GPL ( __mmc_switch  )
EXPORT_SYMBOL_GPL ( mmc_switch  )
int mmc_all_send_cid ( struct mmc_host host,
u32 cid 
)

Definition at line 171 of file mmc_ops.c.

int mmc_bus_test ( struct mmc_card card,
u8  bus_width 
)

Definition at line 574 of file mmc_ops.c.

int mmc_card_sleepawake ( struct mmc_host host,
int  sleep 
)

Definition at line 60 of file mmc_ops.c.

int mmc_deselect_cards ( struct mmc_host host)

Definition at line 55 of file mmc_ops.c.

int mmc_go_idle ( struct mmc_host host)

Definition at line 94 of file mmc_ops.c.

int mmc_select_card ( struct mmc_card card)

Definition at line 48 of file mmc_ops.c.

int mmc_send_cid ( struct mmc_host host,
u32 cid 
)

Definition at line 331 of file mmc_ops.c.

int mmc_send_csd ( struct mmc_card card,
u32 csd 
)

Definition at line 306 of file mmc_ops.c.

int mmc_send_ext_csd ( struct mmc_card card,
u8 ext_csd 
)

Definition at line 359 of file mmc_ops.c.

int mmc_send_hpi_cmd ( struct mmc_card card,
u32 status 
)

Definition at line 596 of file mmc_ops.c.

int mmc_send_op_cond ( struct mmc_host host,
u32  ocr,
u32 rocr 
)

Definition at line 131 of file mmc_ops.c.

int mmc_send_status ( struct mmc_card card,
u32 status 
)

Definition at line 472 of file mmc_ops.c.

int mmc_set_relative_addr ( struct mmc_card card)

Definition at line 192 of file mmc_ops.c.

int mmc_spi_read_ocr ( struct mmc_host host,
int  highcap,
u32 ocrp 
)

Definition at line 365 of file mmc_ops.c.

int mmc_spi_set_crc ( struct mmc_host host,
int  use_crc 
)

Definition at line 380 of file mmc_ops.c.

int mmc_switch ( struct mmc_card card,
u8  set,
u8  index,
u8  value,
unsigned int  timeout_ms 
)

Definition at line 465 of file mmc_ops.c.