FreeBSD kernel pms device code
lxencrypt.h File Reference
Include dependency graph for lxencrypt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ag_encrypt_ioerr_s
 

Macros

#define __LXENCRYPT_H__
 
#define IOERR_QUEUE_DEPTH_MAX   1024
 

Typedefs

typedef struct ag_encrypt_ioerr_s ag_encrypt_ioerr_t
 

Enumerations

enum  {
  E_SUCCESS = 0 , E_DEK_INDEX , E_DEK_TABLE , E_KEK_INDEX ,
  E_CHANNEL_INDEX , E_DEVICE_INDEX , E_LUN_INDEX , E_LBA_RANGE ,
  E_MEMPOOL_ALLOC , E_FLAGS , E_ENCRYPTION_DISABLED , E_BAD_CIPHER_MODE ,
  E_NO_TARGET_MAP , E_NO_LBA_MAP , E_NOT_FOUND
}
 

Functions

int agtiapi_SetupEncryption (struct agtiapi_softc *pCard)
 
int agtiapi_SetupEncryptionPools (struct agtiapi_softc *pCard)
 
void agtiapi_CleanupEncryption (struct agtiapi_softc *pCard)
 
void agtiapi_CleanupEncryptionPools (struct agtiapi_softc *pCard)
 
int agtiapi_SetupEncryptedIO (struct agtiapi_softc *pCard, ccb_t *pccb, unsigned long long block)
 
void agtiapi_CleanupEncryptedIO (struct agtiapi_softc *pCard, ccb_t *pccb)
 
void agtiapi_HandleEncryptedIOFailure (ag_device_t *pDev, ccb_t *pccb)
 

Variables

enum { ... }  encrypt_error_e
 
struct agtiapi_softcpCard
 

Macro Definition Documentation

◆ __LXENCRYPT_H__

#define __LXENCRYPT_H__

Definition at line 54 of file lxencrypt.h.

◆ IOERR_QUEUE_DEPTH_MAX

#define IOERR_QUEUE_DEPTH_MAX   1024

Definition at line 56 of file lxencrypt.h.

Typedef Documentation

◆ ag_encrypt_ioerr_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
E_SUCCESS 
E_DEK_INDEX 
E_DEK_TABLE 
E_KEK_INDEX 
E_CHANNEL_INDEX 
E_DEVICE_INDEX 
E_LUN_INDEX 
E_LBA_RANGE 
E_MEMPOOL_ALLOC 
E_FLAGS 
E_ENCRYPTION_DISABLED 
E_BAD_CIPHER_MODE 
E_NO_TARGET_MAP 
E_NO_LBA_MAP 
E_NOT_FOUND 

Definition at line 58 of file lxencrypt.h.

Function Documentation

◆ agtiapi_CleanupEncryptedIO()

void agtiapi_CleanupEncryptedIO ( struct agtiapi_softc pCard,
ccb_t pccb 
)

Referenced by agtiapi_FreeCCB().

Here is the caller graph for this function:

◆ agtiapi_CleanupEncryption()

void agtiapi_CleanupEncryption ( struct agtiapi_softc pCard)

◆ agtiapi_CleanupEncryptionPools()

void agtiapi_CleanupEncryptionPools ( struct agtiapi_softc pCard)

◆ agtiapi_HandleEncryptedIOFailure()

void agtiapi_HandleEncryptedIOFailure ( ag_device_t pDev,
ccb_t pccb 
)

Definition at line 4218 of file agtiapi.c.

References AGTIAPI_PRINTK.

Referenced by agtiapi_CheckError().

Here is the caller graph for this function:

◆ agtiapi_SetupEncryptedIO()

int agtiapi_SetupEncryptedIO ( struct agtiapi_softc pCard,
ccb_t pccb,
unsigned long long  block 
)

Referenced by agtiapi_PrepareSGListCB().

Here is the caller graph for this function:

◆ agtiapi_SetupEncryption()

int agtiapi_SetupEncryption ( struct agtiapi_softc pCard)

Referenced by agtiapi_attach().

Here is the caller graph for this function:

◆ agtiapi_SetupEncryptionPools()

int agtiapi_SetupEncryptionPools ( struct agtiapi_softc pCard)

Variable Documentation

◆ 

enum { ... } encrypt_error_e

◆ pCard