zfcp_aux.c (597473720f4dc69749542bfcfed4a927a43d935e) zfcp_aux.c (7e418833e68948cb9ed15262889173b7db2960cb)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * zfcp device driver
4 *
5 * Module interface and handling of zfcp data structures.
6 *
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * zfcp device driver
4 *
5 * Module interface and handling of zfcp data structures.
6 *
7 * Copyright IBM Corp. 2002, 2017
7 * Copyright IBM Corp. 2002, 2018
8 */
9
10/*
11 * Driver authors:
12 * Martin Peschke (originator of the driver)
13 * Raimund Schroeder
14 * Aron Zeh
15 * Wolfgang Taphorn

--- 4 unchanged lines hidden (view full) ---

20 * Volker Sameske
21 * Ralph Wuerthner
22 * Michael Loehr
23 * Swen Schillig
24 * Christof Schmitt
25 * Martin Petermann
26 * Sven Schuetz
27 * Steffen Maier
8 */
9
10/*
11 * Driver authors:
12 * Martin Peschke (originator of the driver)
13 * Raimund Schroeder
14 * Aron Zeh
15 * Wolfgang Taphorn

--- 4 unchanged lines hidden (view full) ---

20 * Volker Sameske
21 * Ralph Wuerthner
22 * Michael Loehr
23 * Swen Schillig
24 * Christof Schmitt
25 * Martin Petermann
26 * Sven Schuetz
27 * Steffen Maier
28 * Benjamin Block
28 */
29
30#define KMSG_COMPONENT "zfcp"
31#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
32
33#include <linux/seq_file.h>
34#include <linux/slab.h>
35#include <linux/module.h>
36#include "zfcp_ext.h"
37#include "zfcp_fc.h"
38#include "zfcp_reqlist.h"
29 */
30
31#define KMSG_COMPONENT "zfcp"
32#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
33
34#include <linux/seq_file.h>
35#include <linux/slab.h>
36#include <linux/module.h>
37#include "zfcp_ext.h"
38#include "zfcp_fc.h"
39#include "zfcp_reqlist.h"
40#include "zfcp_diag.h"
39
40#define ZFCP_BUS_ID_SIZE 20
41
42MODULE_AUTHOR("IBM Deutschland Entwicklung GmbH - linux390@de.ibm.com");
43MODULE_DESCRIPTION("FCP HBA driver");
44MODULE_LICENSE("GPL");
45
46static char *init_device;

--- 304 unchanged lines hidden (view full) ---

351 INIT_WORK(&adapter->stat_work, _zfcp_status_read_scheduler);
352 INIT_DELAYED_WORK(&adapter->scan_work, zfcp_fc_scan_ports);
353 INIT_WORK(&adapter->ns_up_work, zfcp_fc_sym_name_update);
354
355 adapter->next_port_scan = jiffies;
356
357 adapter->erp_action.adapter = adapter;
358
41
42#define ZFCP_BUS_ID_SIZE 20
43
44MODULE_AUTHOR("IBM Deutschland Entwicklung GmbH - linux390@de.ibm.com");
45MODULE_DESCRIPTION("FCP HBA driver");
46MODULE_LICENSE("GPL");
47
48static char *init_device;

--- 304 unchanged lines hidden (view full) ---

353 INIT_WORK(&adapter->stat_work, _zfcp_status_read_scheduler);
354 INIT_DELAYED_WORK(&adapter->scan_work, zfcp_fc_scan_ports);
355 INIT_WORK(&adapter->ns_up_work, zfcp_fc_sym_name_update);
356
357 adapter->next_port_scan = jiffies;
358
359 adapter->erp_action.adapter = adapter;
360
361 if (zfcp_diag_adapter_setup(adapter))
362 goto failed;
363
359 if (zfcp_qdio_setup(adapter))
360 goto failed;
361
362 if (zfcp_allocate_low_mem_buffers(adapter))
363 goto failed;
364
365 adapter->req_list = zfcp_reqlist_alloc();
366 if (!adapter->req_list)

--- 77 unchanged lines hidden (view full) ---

444{
445 struct zfcp_adapter *adapter = container_of(ref, struct zfcp_adapter,
446 ref);
447 struct ccw_device *cdev = adapter->ccw_device;
448
449 dev_set_drvdata(&adapter->ccw_device->dev, NULL);
450 zfcp_fc_gs_destroy(adapter);
451 zfcp_free_low_mem_buffers(adapter);
364 if (zfcp_qdio_setup(adapter))
365 goto failed;
366
367 if (zfcp_allocate_low_mem_buffers(adapter))
368 goto failed;
369
370 adapter->req_list = zfcp_reqlist_alloc();
371 if (!adapter->req_list)

--- 77 unchanged lines hidden (view full) ---

449{
450 struct zfcp_adapter *adapter = container_of(ref, struct zfcp_adapter,
451 ref);
452 struct ccw_device *cdev = adapter->ccw_device;
453
454 dev_set_drvdata(&adapter->ccw_device->dev, NULL);
455 zfcp_fc_gs_destroy(adapter);
456 zfcp_free_low_mem_buffers(adapter);
457 zfcp_diag_adapter_free(adapter);
452 kfree(adapter->req_list);
453 kfree(adapter->fc_stats);
454 kfree(adapter->stats_reset_data);
455 kfree(adapter);
456 put_device(&cdev->dev);
457}
458
459static void zfcp_port_release(struct device *dev)

--- 80 unchanged lines hidden ---
458 kfree(adapter->req_list);
459 kfree(adapter->fc_stats);
460 kfree(adapter->stats_reset_data);
461 kfree(adapter);
462 put_device(&cdev->dev);
463}
464
465static void zfcp_port_release(struct device *dev)

--- 80 unchanged lines hidden ---