Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
sgbuf2.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/cb710.h>

Go to the source code of this file.

Functions

uint32_t cb710_sg_dwiter_read_next_block (struct sg_mapping_iter *miter)
 
 EXPORT_SYMBOL_GPL (cb710_sg_dwiter_read_next_block)
 
void cb710_sg_dwiter_write_next_block (struct sg_mapping_iter *miter, uint32_t data)
 
 EXPORT_SYMBOL_GPL (cb710_sg_dwiter_write_next_block)
 

Function Documentation

uint32_t cb710_sg_dwiter_read_next_block ( struct sg_mapping_iter miter)

cb710_sg_dwiter_read_next_block() - get next 32-bit word from sg buffer : sg mapping iterator used for reading

Description: Returns 32-bit word starting at byte pointed to by @ handling any alignment issues. Bytes past the buffer's end are not accessed (read) but are returned as zeroes. @ is advanced by 4 bytes or to the end of buffer whichever is closer.

Context: Same requirements as in sg_miter_next().

Returns: 32-bit word just read.

Definition at line 93 of file sgbuf2.c.

void cb710_sg_dwiter_write_next_block ( struct sg_mapping_iter miter,
uint32_t  data 
)

cb710_sg_dwiter_write_next_block() - write next 32-bit word to sg buffer : sg mapping iterator used for writing

Description: Writes 32-bit word starting at byte pointed to by @ handling any alignment issues. Bytes which would be written past the buffer's end are silently discarded. @ is advanced by 4 bytes or to the end of buffer whichever is closer.

Context: Same requirements as in sg_miter_next().

Definition at line 133 of file sgbuf2.c.

EXPORT_SYMBOL_GPL ( cb710_sg_dwiter_read_next_block  )
EXPORT_SYMBOL_GPL ( cb710_sg_dwiter_write_next_block  )