Lines Matching +full:libiscsi +full:- +full:dev

3  * Copyright (c) 2004 - 2013 Broadcom Corporation
12 * Maintained by: QLogic-Storage-Upstream@qlogic.com
18 * bnx2i_dev_to_hba - maps dev pointer to adapter struct
19 * @dev: device pointer
23 static inline struct bnx2i_hba *bnx2i_dev_to_hba(struct device *dev) in bnx2i_dev_to_hba() argument
25 struct Scsi_Host *shost = class_to_shost(dev); in bnx2i_dev_to_hba()
31 * bnx2i_show_sq_info - return(s currently configured send queue (SQ) size
32 * @dev: device pointer
39 static ssize_t bnx2i_show_sq_info(struct device *dev, in bnx2i_show_sq_info() argument
42 struct bnx2i_hba *hba = bnx2i_dev_to_hba(dev); in bnx2i_show_sq_info()
44 return sprintf(buf, "0x%x\n", hba->max_sqes); in bnx2i_show_sq_info()
49 * bnx2i_set_sq_info - update send queue (SQ) size parameter
50 * @dev: device pointer
57 * because of how libiscsi preallocates tasks.
59 static ssize_t bnx2i_set_sq_info(struct device *dev, in bnx2i_set_sq_info() argument
63 struct bnx2i_hba *hba = bnx2i_dev_to_hba(dev); in bnx2i_set_sq_info()
67 if (hba->ofld_conns_active) in bnx2i_set_sq_info()
70 if (test_bit(BNX2I_NX2_DEV_57710, &hba->cnic_dev_type)) in bnx2i_set_sq_info()
78 hba->max_sqes = val; in bnx2i_set_sq_info()
90 * bnx2i_show_ccell_info - returns command cell (HQ) size
91 * @dev: device pointer
95 * returns per-connection TCP history queue size parameter
97 static ssize_t bnx2i_show_ccell_info(struct device *dev, in bnx2i_show_ccell_info() argument
100 struct bnx2i_hba *hba = bnx2i_dev_to_hba(dev); in bnx2i_show_ccell_info()
102 return sprintf(buf, "0x%x\n", hba->num_ccell); in bnx2i_show_ccell_info()
107 * bnx2i_set_ccell_info - set command cell (HQ) size
108 * @dev: device pointer
113 * updates per-connection TCP history queue size parameter
115 static ssize_t bnx2i_set_ccell_info(struct device *dev, in bnx2i_set_ccell_info() argument
120 struct bnx2i_hba *hba = bnx2i_dev_to_hba(dev); in bnx2i_set_ccell_info()
122 if (hba->ofld_conns_active) in bnx2i_set_ccell_info()
128 hba->num_ccell = val; in bnx2i_set_ccell_info()