Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
chp.h File Reference
#include <linux/types.h>
#include <linux/device.h>
#include <linux/mutex.h>
#include <asm/chpid.h>
#include "chsc.h"
#include "css.h"

Go to the source code of this file.

Data Structures

struct  chp_link
 
struct  channel_path
 

Macros

#define S390_CHP_H   S390_CHP_H
 
#define CHP_STATUS_STANDBY   0
 
#define CHP_STATUS_CONFIGURED   1
 
#define CHP_STATUS_RESERVED   2
 
#define CHP_STATUS_NOT_RECOGNIZED   3
 
#define CHP_ONLINE   0
 
#define CHP_OFFLINE   1
 
#define CHP_VARY_ON   2
 
#define CHP_VARY_OFF   3
 

Functions

int chp_get_status (struct chp_id chpid)
 
u8 chp_get_sch_opm (struct subchannel *sch)
 
int chp_is_registered (struct chp_id chpid)
 
voidchp_get_chp_desc (struct chp_id chpid)
 
void chp_remove_cmg_attr (struct channel_path *chp)
 
int chp_add_cmg_attr (struct channel_path *chp)
 
int chp_new (struct chp_id chpid)
 
void chp_cfg_schedule (struct chp_id chpid, int configure)
 
void chp_cfg_cancel_deconfigure (struct chp_id chpid)
 
int chp_info_get_status (struct chp_id chpid)
 
int chp_ssd_get_mask (struct chsc_ssd_info *, struct chp_link *)
 

Macro Definition Documentation

#define CHP_OFFLINE   1

Definition at line 22 of file chp.h.

#define CHP_ONLINE   0

Definition at line 21 of file chp.h.

#define CHP_STATUS_CONFIGURED   1

Definition at line 17 of file chp.h.

#define CHP_STATUS_NOT_RECOGNIZED   3

Definition at line 19 of file chp.h.

#define CHP_STATUS_RESERVED   2

Definition at line 18 of file chp.h.

#define CHP_STATUS_STANDBY   0

Definition at line 16 of file chp.h.

#define CHP_VARY_OFF   3

Definition at line 24 of file chp.h.

#define CHP_VARY_ON   2

Definition at line 23 of file chp.h.

#define S390_CHP_H   S390_CHP_H

Definition at line 7 of file chp.h.

Function Documentation

int chp_add_cmg_attr ( struct channel_path chp)

Definition at line 218 of file chp.c.

void chp_cfg_cancel_deconfigure ( struct chp_id  chpid)

chp_cfg_cancel_deconfigure - cancel chpid deconfiguration request - channel-path ID

Cancel an active channel-path deconfiguration request if it has not yet been performed.

Definition at line 694 of file chp.c.

void chp_cfg_schedule ( struct chp_id  chpid,
int  configure 
)

chp_cfg_schedule - schedule chpid configuration request - channel-path ID - Non-zero for configure, zero for deconfigure

Schedule a channel-path configuration/deconfiguration request.

Definition at line 676 of file chp.c.

void* chp_get_chp_desc ( struct chp_id  chpid)

chp_get_chp_desc - return newly allocated channel-path description : channel-path ID

On success return a newly allocated copy of the channel-path description data associated with the given channel-path ID. Return NULL on error.

Definition at line 456 of file chp.c.

u8 chp_get_sch_opm ( struct subchannel sch)

chp_get_sch_opm - return opm for subchannel : subchannel

Calculate and return the operational path mask (opm) based on the chpids used by the subchannel and the status of the associated channel-paths.

Definition at line 77 of file chp.c.

int chp_get_status ( struct chp_id  chpid)

Definition at line 65 of file chp.c.

int chp_info_get_status ( struct chp_id  chpid)

chp_info_get_status - retrieve configure status of a channel-path : channel-path ID

On success, return 0 for standby, 1 for configured, 2 for reserved, 3 for not recognized. Return negative error code on error.

Definition at line 581 of file chp.c.

int chp_is_registered ( struct chp_id  chpid)

chp_is_registered - check if a channel-path is registered : channel-path ID

Return non-zero if a channel-path with the given chpid is registered, zero otherwise.

Definition at line 102 of file chp.c.

int chp_new ( struct chp_id  chpid)

chp_new - register a new channel-path - channel-path ID

Create and register data structure representing new channel-path. Return zero on success, non-zero otherwise.

Definition at line 386 of file chp.c.

void chp_remove_cmg_attr ( struct channel_path chp)

Definition at line 212 of file chp.c.

int chp_ssd_get_mask ( struct chsc_ssd_info ,
struct chp_link  
)

Definition at line 524 of file chp.c.