|
| int32_t | ocs_new_ramdisc (ocs_t *ocs, ocs_ramdisc_t *ramdisc, uint32_t block_size, uint32_t blocks_per_segment, uint64_t block_count) |
| | Create a new ramdisc instance (LUN). More...
|
| |
| int32_t | ocs_del_ramdisc (ocs_t *ocs, ocs_ramdisc_t *ramdisc) |
| | Delete a ramdisc instance. More...
|
| |
| int32_t | ocs_ramdisc_sgl (ocs_t *ocs, ocs_ramdisc_t *ramdisc, ocs_ramdisc_sgl_t *sgl, uint32_t max_sgl, uint32_t max_sge_size, uint32_t lba, uint32_t *block_count, uint32_t req_flags, uint8_t dump_buffer) |
| | Build an SGL list for blocks in a ramdisc. More...
|
| |
| int32_t | ocs_format_ramdisc (ocs_t *ocs, ocs_ramdisc_t *ramdisc, uint32_t block_size, uint8_t p_type, uint8_t prot_en, uint8_t dif_separate) |
| | Reformat an existing ramdisc, possibly the changing block size and/or protection. More...
|
| |
| void | ocs_set_ramdisc_blocksize (ocs_t *ocs, ocs_ramdisc_t *ramdisc, uint32_t block_size) |
| | Set the ramdisc block size. More...
|
| |
| uint32_t | ocs_get_ramdisc_blocksize (ocs_t *ocs, ocs_ramdisc_t *ramdisc) |
| | Get the ramdisc block size. More...
|
| |
| uint8_t * | ocs_ramdisc_lba_address (ocs_ramdisc_t *ramdisc, uint64_t lba) |
| | Return the address of a ramdisc logical block. More...
|
| |
| dif_t * | ocs_ramdisc_dif_address (ocs_ramdisc_t *ramdisc, uint64_t lba) |
| | Return the address of the DIF block if protection is enabled. More...
|
| |
| void | dif_pool_init (ocs_t *ocs, ocs_list_t *head) |
| | initialize the DIF memory pool More...
|
| |
| void | dif_pool_free (ocs_t *ocs, ocs_list_t *head) |
| | Free the DIF memory pool. More...
|
| |
| static int32_t | dif_pool_new (ocs_t *ocs, ocs_list_t *head) |
| | Allocate a new dif_pool_t entry. More...
|
| |
| int32_t | dif_pool_alloc (ocs_t *ocs, ocs_list_t *head, uint32_t size, ocs_difdma_t *difdma) |
| | Allocate memory for the DIF memory pool. More...
|
| |
| void | ocs_ddump_ramdisc (ocs_textbuf_t *textbuf, ocs_ramdisc_t *ramdisc) |
| |