Home
last modified time | relevance | path

Searched refs:ctlr_dev (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/drivers/scsi/fcoe/
Dfcoe_sysfs.c453 struct fcoe_ctlr_device *ctlr_dev = dev_to_ctlr(dev); in store_ctlr_r_a_tov() local
454 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in store_ctlr_r_a_tov()
456 if (ctlr_dev->enabled == FCOE_CTLR_ENABLED) in store_ctlr_r_a_tov()
458 if (ctlr_dev->enabled == FCOE_CTLR_DISABLED) in store_ctlr_r_a_tov()
467 struct fcoe_ctlr_device *ctlr_dev = dev_to_ctlr(dev); in show_ctlr_r_a_tov() local
468 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in show_ctlr_r_a_tov()
480 struct fcoe_ctlr_device *ctlr_dev = dev_to_ctlr(dev); in store_ctlr_e_d_tov() local
481 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in store_ctlr_e_d_tov()
483 if (ctlr_dev->enabled == FCOE_CTLR_ENABLED) in store_ctlr_e_d_tov()
485 if (ctlr_dev->enabled == FCOE_CTLR_DISABLED) in store_ctlr_e_d_tov()
[all …]
Dfcoe.c128 static void fcoe_ctlr_mode(struct fcoe_ctlr_device *ctlr_dev);
395 struct fcoe_ctlr_device *ctlr_dev; in fcoe_interface_create() local
409 ctlr_dev = fcoe_ctlr_device_add(&netdev->dev, &fcoe_sysfs_templ, in fcoe_interface_create()
411 if (!ctlr_dev) { in fcoe_interface_create()
417 ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_interface_create()
418 ctlr->cdev = ctlr_dev; in fcoe_interface_create()
434 fcoe_ctlr_device_delete(ctlr_dev); in fcoe_interface_create()
2051 static void fcoe_ctlr_mode(struct fcoe_ctlr_device *ctlr_dev) in fcoe_ctlr_mode() argument
2053 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_ctlr_mode()
2056 if (ctlr_dev->mode == FIP_CONN_TYPE_VN2VN && in fcoe_ctlr_mode()
[all …]
Dfcoe_ctlr.c175 struct fcoe_ctlr_device *ctlr_dev; in fcoe_sysfs_fcf_add() local
203 ctlr_dev = fcoe_ctlr_to_ctlr_dev(fip); in fcoe_sysfs_fcf_add()
204 if (ctlr_dev) { in fcoe_sysfs_fcf_add()
205 mutex_lock(&ctlr_dev->lock); in fcoe_sysfs_fcf_add()
206 fcf_dev = fcoe_fcf_device_add(ctlr_dev, temp); in fcoe_sysfs_fcf_add()
209 mutex_unlock(&ctlr_dev->lock); in fcoe_sysfs_fcf_add()
227 mutex_unlock(&ctlr_dev->lock); in fcoe_sysfs_fcf_add()
3241 struct fcoe_ctlr_device *ctlr_dev = fcoe_fcf_dev_to_ctlr_dev(fcf_dev); in fcoe_fcf_get_selected() local
3242 struct fcoe_ctlr *fip = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_fcf_get_selected()
3246 mutex_lock(&ctlr_dev->lock); in fcoe_fcf_get_selected()
[all …]
Dfcoe_transport.c229 void fcoe_ctlr_get_lesb(struct fcoe_ctlr_device *ctlr_dev) in fcoe_ctlr_get_lesb() argument
231 struct fcoe_ctlr *fip = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_ctlr_get_lesb()
235 fc_lesb = (struct fc_els_lesb *)(&ctlr_dev->lesb); in fcoe_ctlr_get_lesb()
/Linux-v4.19/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c139 struct fcoe_ctlr_device *ctlr_dev = in bnx2fc_fcf_get_vlan_id() local
141 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in bnx2fc_fcf_get_vlan_id()
1318 struct fcoe_ctlr_device *ctlr_dev; in bnx2fc_interface_release() local
1327 ctlr_dev = fcoe_ctlr_to_ctlr_dev(ctlr); in bnx2fc_interface_release()
1334 fcoe_ctlr_device_delete(ctlr_dev); in bnx2fc_interface_release()
1450 struct fcoe_ctlr_device *ctlr_dev; in bnx2fc_interface_create() local
1457 ctlr_dev = fcoe_ctlr_device_add(&netdev->dev, &bnx2fc_fcoe_sysfs_templ, in bnx2fc_interface_create()
1459 if (!ctlr_dev) { in bnx2fc_interface_create()
1463 ctlr = fcoe_ctlr_device_priv(ctlr_dev); in bnx2fc_interface_create()
1464 ctlr->cdev = ctlr_dev; in bnx2fc_interface_create()
[all …]
/Linux-v4.19/include/scsi/
Dlibfcoe.h275 void fcoe_ctlr_get_lesb(struct fcoe_ctlr_device *ctlr_dev);