Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
queue.h File Reference

Go to the source code of this file.

Data Structures

struct  mmc_blk_request
 
struct  mmc_queue_req
 
struct  mmc_queue
 

Functions

int mmc_init_queue (struct mmc_queue *, struct mmc_card *, spinlock_t *, const char *)
 
void mmc_cleanup_queue (struct mmc_queue *)
 
void mmc_queue_suspend (struct mmc_queue *)
 
void mmc_queue_resume (struct mmc_queue *)
 
unsigned int mmc_queue_map_sg (struct mmc_queue *, struct mmc_queue_req *)
 
void mmc_queue_bounce_pre (struct mmc_queue_req *)
 
void mmc_queue_bounce_post (struct mmc_queue_req *)
 

Function Documentation

void mmc_cleanup_queue ( struct mmc_queue )

Definition at line 293 of file queue.c.

int mmc_init_queue ( struct mmc_queue mq,
struct mmc_card card,
spinlock_t lock,
const char subname 
)

mmc_init_queue - initialise a queue structure. : mmc queue : mmc card to attach this queue : queue lock : partition subname

Initialise a MMC card request queue.

Definition at line 161 of file queue.c.

void mmc_queue_bounce_post ( struct mmc_queue_req )

Definition at line 426 of file queue.c.

void mmc_queue_bounce_pre ( struct mmc_queue_req )

Definition at line 410 of file queue.c.

unsigned int mmc_queue_map_sg ( struct mmc_queue ,
struct mmc_queue_req  
)

Definition at line 381 of file queue.c.

void mmc_queue_resume ( struct mmc_queue mq)

mmc_queue_resume - resume a previously suspended MMC request queue : MMC queue to resume

Definition at line 362 of file queue.c.

void mmc_queue_suspend ( struct mmc_queue mq)

mmc_queue_suspend - suspend a MMC request queue : MMC queue to suspend

Stop the block request queue, and wait for our thread to complete any outstanding requests. This ensures that we won't suspend while a request is being processed.

Definition at line 342 of file queue.c.