|
Linux Kernel
3.7.1
|
#include <linux/miscdevice.h>#include <linux/seq_file.h>#include <linux/slab.h>#include <linux/module.h>#include "zfcp_ext.h"#include "zfcp_fc.h"#include "zfcp_reqlist.h"Go to the source code of this file.
Macros | |
| #define | KMSG_COMPONENT "zfcp" |
| #define | pr_fmt(fmt) KMSG_COMPONENT ": " fmt |
| #define | ZFCP_BUS_ID_SIZE 20 |
Functions | |
| MODULE_AUTHOR ("IBM Deutschland Entwicklung GmbH - [email protected]") | |
| MODULE_DESCRIPTION ("FCP HBA driver") | |
| MODULE_LICENSE ("GPL") | |
| module_param_named (device, init_device, charp, 0400) | |
| MODULE_PARM_DESC (device,"specify initial device") | |
| module_init (zfcp_module_init) | |
| module_exit (zfcp_module_exit) | |
| struct zfcp_port * | zfcp_get_port_by_wwpn (struct zfcp_adapter *adapter, u64 wwpn) |
| int | zfcp_status_read_refill (struct zfcp_adapter *adapter) |
| struct zfcp_adapter * | zfcp_adapter_enqueue (struct ccw_device *ccw_device) |
| void | zfcp_adapter_unregister (struct zfcp_adapter *adapter) |
| void | zfcp_adapter_release (struct kref *ref) |
| void | zfcp_device_unregister (struct device *dev, const struct attribute_group *grp) |
| struct zfcp_port * | zfcp_port_enqueue (struct zfcp_adapter *adapter, u64 wwpn, u32 status, u32 d_id) |
| void | zfcp_sg_free_table (struct scatterlist *sg, int count) |
| int | zfcp_sg_setup_table (struct scatterlist *sg, int count) |
| #define KMSG_COMPONENT "zfcp" |
Definition at line 28 of file zfcp_aux.c.
| #define pr_fmt | ( | fmt | ) | KMSG_COMPONENT ": " fmt |
Definition at line 29 of file zfcp_aux.c.
| #define ZFCP_BUS_ID_SIZE 20 |
Definition at line 39 of file zfcp_aux.c.
| MODULE_AUTHOR | ( | "IBM Deutschland Entwicklung GmbH - [email protected]" | ) |
| MODULE_DESCRIPTION | ( | "FCP HBA driver" | ) |
| module_exit | ( | zfcp_module_exit | ) |
| module_init | ( | zfcp_module_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| module_param_named | ( | device | , |
| init_device | , | ||
| charp | , | ||
| 0400 | |||
| ) |
|
read |
zfcp_adapter_enqueue - enqueue a new adapter to the list : pointer to the struct cc_device
Returns: struct zfcp_adapter* Enqueues an adapter at the end of the adapter list in the driver data. All adapter internal structures are set up. Proc-fs entries are also created.
Definition at line 346 of file zfcp_aux.c.
zfcp_adapter_release - remove the adapter from the resource list pointer to struct kref locks: adapter list write lock is assumed to be held by caller
Definition at line 451 of file zfcp_aux.c.
| void zfcp_adapter_unregister | ( | struct zfcp_adapter * | adapter | ) |
Definition at line 426 of file zfcp_aux.c.
zfcp_device_unregister - remove port, unit from system : reference to device which is to be removed : related reference to attribute group
Helper function to unregister port, unit from system
Definition at line 474 of file zfcp_aux.c.
|
read |
zfcp_get_port_by_wwpn - find port in port list of adapter by wwpn : pointer to adapter to search for port : wwpn to search for
Returns: pointer to zfcp_port or NULL
Definition at line 193 of file zfcp_aux.c.
|
read |
zfcp_port_enqueue - enqueue port to port list of adapter : adapter where remote port is added : WWPN of the remote port to be enqueued : initial status for the port : destination id of the remote port to be enqueued Returns: pointer to enqueued port on success, ERR_PTR on error
All port internal structures are set up and the sysfs entry is generated. d_id is used to enqueue ports with a well known address like the Directory Service for nameserver lookup.
Definition at line 501 of file zfcp_aux.c.
| void zfcp_sg_free_table | ( | struct scatterlist * | sg, |
| int | count | ||
| ) |
zfcp_sg_free_table - free memory used by scatterlists : pointer to scatterlist : number of scatterlist which are to be free'ed the scatterlist are expected to reference pages always
Definition at line 571 of file zfcp_aux.c.
| int zfcp_sg_setup_table | ( | struct scatterlist * | sg, |
| int | count | ||
| ) |
zfcp_sg_setup_table - init scatterlist and allocate, assign buffers : pointer to struct scatterlist : number of scatterlists which should be assigned with buffers of size page
Returns: 0 on success, -ENOMEM otherwise
Definition at line 590 of file zfcp_aux.c.
| int zfcp_status_read_refill | ( | struct zfcp_adapter * | adapter | ) |
zfcp_status_read_refill - refill the long running status_read_requests : ptr to struct zfcp_adapter for which the buffers should be refilled
Returns: 0 on success, 1 otherwise
if there are 16 or more status_read requests missing an adapter_reopen is triggered
Definition at line 285 of file zfcp_aux.c.
1.8.2