Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
ap_bus.c File Reference
#include <linux/kernel_stat.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/interrupt.h>
#include <linux/workqueue.h>
#include <linux/slab.h>
#include <linux/notifier.h>
#include <linux/kthread.h>
#include <linux/mutex.h>
#include <asm/reset.h>
#include <asm/airq.h>
#include <linux/atomic.h>
#include <asm/isc.h>
#include <linux/hrtimer.h>
#include <linux/ktime.h>
#include <asm/facility.h>
#include "ap_bus.h"

Go to the source code of this file.

Macros

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

Functions

 MODULE_AUTHOR ("IBM Corporation")
 
 MODULE_DESCRIPTION ("Adjunct Processor Bus driver, ""Copyright IBM Corp. 2006, 2012")
 
 MODULE_LICENSE ("GPL")
 
 module_param_named (domain, ap_domain_index, int, 0000)
 
 MODULE_PARM_DESC (domain,"domain index for ap devices")
 
 EXPORT_SYMBOL (ap_domain_index)
 
 module_param_named (poll_thread, ap_thread_flag, int, 0000)
 
 MODULE_PARM_DESC (poll_thread,"Turn on/off poll thread, default is 0 (off).")
 
int ap_send (ap_qid_t qid, unsigned long long psmid, void *msg, size_t length)
 
 EXPORT_SYMBOL (ap_send)
 
int ap_recv (ap_qid_t qid, unsigned long long *psmid, void *msg, size_t length)
 
 EXPORT_SYMBOL (ap_recv)
 
void ap_flush_queue (struct ap_device *ap_dev)
 
 EXPORT_SYMBOL (ap_flush_queue)
 
int ap_driver_register (struct ap_driver *ap_drv, struct module *owner, char *name)
 
 EXPORT_SYMBOL (ap_driver_register)
 
void ap_driver_unregister (struct ap_driver *ap_drv)
 
 EXPORT_SYMBOL (ap_driver_unregister)
 
void ap_bus_force_rescan (void)
 
 EXPORT_SYMBOL (ap_bus_force_rescan)
 
void ap_queue_message (struct ap_device *ap_dev, struct ap_message *ap_msg)
 
 EXPORT_SYMBOL (ap_queue_message)
 
void ap_cancel_message (struct ap_device *ap_dev, struct ap_message *ap_msg)
 
 EXPORT_SYMBOL (ap_cancel_message)
 
int __init ap_module_init (void)
 
void ap_module_exit (void)
 
 module_init (ap_module_init)
 
 module_exit (ap_module_exit)
 

Variables

int ap_domain_index = -1
 

Macro Definition Documentation

#define KMSG_COMPONENT   "ap"

Definition at line 26 of file ap_bus.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 27 of file ap_bus.c.

Function Documentation

void ap_bus_force_rescan ( void  )

Definition at line 955 of file ap_bus.c.

void ap_cancel_message ( struct ap_device ap_dev,
struct ap_message ap_msg 
)

ap_cancel_message(): Cancel a crypto request. : The AP device that has the message queued : The message that is to be removed

Cancel a crypto request. This is done by removing the request from the device pending or request queue. Note that the request stays on the AP queue. When it finishes the message reply will be discarded because the psmid can't be found.

Definition at line 1644 of file ap_bus.c.

int ap_driver_register ( struct ap_driver ap_drv,
struct module owner,
char name 
)

Definition at line 935 of file ap_bus.c.

void ap_driver_unregister ( struct ap_driver ap_drv)

Definition at line 949 of file ap_bus.c.

void ap_flush_queue ( struct ap_device ap_dev)

Definition at line 909 of file ap_bus.c.

void ap_module_exit ( void  )

ap_modules_exit(): The module termination code

Terminates the module.

Definition at line 1978 of file ap_bus.c.

int __init ap_module_init ( void  )

ap_module_init(): The module initialization code.

Initializes the module.

Definition at line 1866 of file ap_bus.c.

void ap_queue_message ( struct ap_device ap_dev,
struct ap_message ap_msg 
)

Definition at line 1605 of file ap_bus.c.

int ap_recv ( ap_qid_t  qid,
unsigned long long psmid,
void msg,
size_t  length 
)

Definition at line 482 of file ap_bus.c.

int ap_send ( ap_qid_t  qid,
unsigned long long  psmid,
void msg,
size_t  length 
)

Definition at line 422 of file ap_bus.c.

EXPORT_SYMBOL ( ap_domain_index  )
EXPORT_SYMBOL ( ap_send  )
EXPORT_SYMBOL ( ap_recv  )
EXPORT_SYMBOL ( ap_flush_queue  )
EXPORT_SYMBOL ( ap_driver_register  )
EXPORT_SYMBOL ( ap_driver_unregister  )
EXPORT_SYMBOL ( ap_bus_force_rescan  )
EXPORT_SYMBOL ( ap_queue_message  )
EXPORT_SYMBOL ( ap_cancel_message  )
MODULE_AUTHOR ( "IBM Corporation"  )
MODULE_DESCRIPTION ( "Adjunct Processor Bus  driver,
""Copyright IBM Corp.  2006,
2012"   
)
module_exit ( ap_module_exit  )
module_init ( ap_module_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( domain  ,
ap_domain_index  ,
int  ,
0000   
)
module_param_named ( poll_thread  ,
ap_thread_flag  ,
int  ,
0000   
)
MODULE_PARM_DESC ( domain  ,
"domain index for ap devices  
)
MODULE_PARM_DESC ( poll_thread  ,
"Turn on/off poll  thread,
default is 0(off)."   
)

Variable Documentation

int ap_domain_index = -1

Definition at line 78 of file ap_bus.c.