Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
chsc.c File Reference
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/device.h>
#include <asm/cio.h>
#include <asm/chpid.h>
#include <asm/chsc.h>
#include <asm/crw.h>
#include "css.h"
#include "cio.h"
#include "cio_debug.h"
#include "ioasm.h"
#include "chp.h"
#include "chsc.h"

Go to the source code of this file.

Data Structures

struct  chsc_ssd_area
struct  chsc_sei_area
struct  chp_config_data


#define KMSG_COMPONENT   "cio"
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt


int chsc_error_from_response (int response)
 EXPORT_SYMBOL_GPL (chsc_error_from_response)
struct chsc_ssd_area __attribute__ ((packed))
int chsc_get_ssd_info (struct subchannel_id schid, struct chsc_ssd_info *ssd)
void chsc_chp_offline (struct chp_id chpid)
void chsc_chp_online (struct chp_id chpid)
int chsc_chp_vary (struct chp_id chpid, int on)
int __chsc_do_secm (struct channel_subsystem *css, int enable)
int chsc_secm (struct channel_subsystem *css, int enable)
int chsc_determine_channel_path_desc (struct chp_id chpid, int fmt, int rfmt, int c, int m, void *page)
 EXPORT_SYMBOL_GPL (chsc_determine_channel_path_desc)
int chsc_determine_base_channel_path_desc (struct chp_id chpid, struct channel_path_desc *desc)
int chsc_determine_fmt1_channel_path_desc (struct chp_id chpid, struct channel_path_desc_fmt1 *desc)
int chsc_get_channel_measurement_chars (struct channel_path *chp)
int __init chsc_init (void)
void __init chsc_init_cleanup (void)
int chsc_enable_facility (int operation_code)
int __init chsc_determine_css_characteristics (void)
 EXPORT_SYMBOL_GPL (css_general_characteristics)
 EXPORT_SYMBOL_GPL (css_chsc_characteristics)
int chsc_sstpc (void *page, unsigned int op, u16 ctrl)
int chsc_sstpi (void *page, void *result, size_t size)
int chsc_siosl (struct subchannel_id schid)
 EXPORT_SYMBOL_GPL (chsc_siosl)
int chsc_scm_info (struct chsc_scm_info *scm_area, u64 token)
 EXPORT_SYMBOL_GPL (chsc_scm_info)


struct chsc_header request
u16 __pad0__
u16 ssid
u16 __pad1__
u16 f_sch
u16 __pad2__
u16 l_sch
u32 __pad3__
struct chsc_header response
u32 __pad4__
u8 sch_valid
u8 dev_valid
u8 st
u8 zeroes
u8 unit_addr
u16 devno
u8 path_mask
u8 fla_valid_mask
u16 sch
u8 chpid [8]
u16 fla [8]
u32 reserved1
u32 reserved2
u32 reserved3
u32 reserved4
u8 flags
u8 vf
u8 rs
u8 cc
u16 rsid
u32 reserved5
u32 reserved6
u8 ccdf [4096-16-24]
struct chp_config_data __attribute__
struct css_general_char css_general_characteristics
struct css_chsc_char css_chsc_characteristics

Macro Definition Documentation

#define KMSG_COMPONENT   "cio"

Definition at line 10 of file chsc.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 11 of file chsc.c.

Function Documentation

struct chsc_ssd_area __attribute__ ( (packed)  )

Definition at line 171 of file esd_usb2.c.

int __chsc_do_secm ( struct channel_subsystem css,
int  enable 

Definition at line 606 of file chsc.c.

void chsc_chp_offline ( struct chp_id  chpid)

Definition at line 162 of file chsc.c.

void chsc_chp_online ( struct chp_id  chpid)

Definition at line 483 of file chsc.c.

int chsc_chp_vary ( struct chp_id  chpid,
int  on 

chsc_chp_vary - propagate channel-path vary operation to subchannels : channl-path ID : non-zero for vary online, zero for vary offline

Definition at line 550 of file chsc.c.

int chsc_determine_base_channel_path_desc ( struct chp_id  chpid,
struct channel_path_desc desc 

Definition at line 729 of file chsc.c.

int chsc_determine_channel_path_desc ( struct chp_id  chpid,
int  fmt,
int  rfmt,
int  c,
int  m,
void page 

Definition at line 694 of file chsc.c.

int __init chsc_determine_css_characteristics ( void  )

Definition at line 936 of file chsc.c.

int chsc_determine_fmt1_channel_path_desc ( struct chp_id  chpid,
struct channel_path_desc_fmt1 desc 

Definition at line 749 of file chsc.c.

int chsc_enable_facility ( int  operation_code)

Definition at line 885 of file chsc.c.

int chsc_error_from_response ( int  response)

chsc_error_from_response() - convert a chsc response to an error : chsc response code

Returns an appropriate Linux error code for .

Definition at line 40 of file chsc.c.

int chsc_get_channel_measurement_chars ( struct channel_path chp)

Definition at line 785 of file chsc.c.

int chsc_get_ssd_info ( struct subchannel_id  schid,
struct chsc_ssd_info ssd 

Definition at line 90 of file chsc.c.

int __init chsc_init ( void  )

Definition at line 858 of file chsc.c.

void __init chsc_init_cleanup ( void  )

Definition at line 878 of file chsc.c.

int chsc_scm_info ( struct chsc_scm_info scm_area,
u64  token 

chsc_scm_info() - store SCM information (SSI) : request and response block for SSI : continuation token

Returns 0 on success.

Definition at line 1080 of file chsc.c.

int chsc_secm ( struct channel_subsystem css,
int  enable 

Definition at line 662 of file chsc.c.

int chsc_siosl ( struct subchannel_id  schid)

Definition at line 1027 of file chsc.c.

int chsc_sstpc ( void page,
unsigned int  op,
u16  ctrl 

Definition at line 979 of file chsc.c.

int chsc_sstpi ( void page,
void result,
size_t  size 

Definition at line 1006 of file chsc.c.

EXPORT_SYMBOL_GPL ( chsc_error_from_response  )
EXPORT_SYMBOL_GPL ( chsc_determine_channel_path_desc  )
EXPORT_SYMBOL_GPL ( css_general_characteristics  )
EXPORT_SYMBOL_GPL ( css_chsc_characteristics  )
EXPORT_SYMBOL_GPL ( chsc_siosl  )
EXPORT_SYMBOL_GPL ( chsc_scm_info  )

Variable Documentation

u16 __pad0__

Definition at line 90 of file chsc.c.

u16 __pad1__

Definition at line 92 of file chsc.c.

u16 __pad2__

Definition at line 94 of file chsc.c.

u32 __pad3__

Definition at line 96 of file chsc.c.

u32 __pad4__

Definition at line 98 of file chsc.c.

u8 cc

Definition at line 290 of file chsc.c.

u8 ccdf[4096-16-24]

Definition at line 295 of file chsc.c.

u8 chpid

Definition at line 108 of file chsc.c.

struct css_chsc_char css_chsc_characteristics

Definition at line 933 of file chsc.c.

struct css_general_char css_general_characteristics

Definition at line 932 of file chsc.c.

u8 dev_valid

Definition at line 100 of file chsc.c.

u16 devno

Definition at line 104 of file chsc.c.

u16 f_sch

Definition at line 93 of file chsc.c.

u16 fla

Definition at line 109 of file chsc.c.

u8 fla_valid_mask

Definition at line 106 of file chsc.c.

u8 flags

Definition at line 287 of file chsc.c.

u16 l_sch

Definition at line 95 of file chsc.c.

u8 path_mask

Definition at line 105 of file chsc.c.

Definition at line 89 of file chsc.c.

u32 reserved1

Definition at line 282 of file chsc.c.

u32 reserved2

Definition at line 283 of file chsc.c.

u32 reserved3

Definition at line 284 of file chsc.c.

u32 reserved4

Definition at line 286 of file chsc.c.

u32 reserved5

Definition at line 293 of file chsc.c.

u32 reserved6

Definition at line 294 of file chsc.c.

Definition at line 97 of file chsc.c.

u8 rs

Definition at line 289 of file chsc.c.

u16 rsid

Definition at line 292 of file chsc.c.

u16 sch

Definition at line 107 of file chsc.c.

u8 sch_valid

Definition at line 99 of file chsc.c.

u16 ssid

Definition at line 91 of file chsc.c.

enum { ... } st

Definition at line 101 of file chsc.c.

u8 unit_addr

Definition at line 103 of file chsc.c.

u8 vf

Definition at line 288 of file chsc.c.

u8 zeroes

Definition at line 102 of file chsc.c.