Home
last modified time | relevance | path

Searched refs:ulp_type (Results 1 – 3 of 3) sorted by relevance

/linux-3.4.99/drivers/net/ethernet/broadcom/
Dcnic_if.h140 int ulp_type; member
237 int ulp_type; member
279 int (*register_device)(struct cnic_dev *dev, int ulp_type,
281 int (*unregister_device)(struct cnic_dev *dev, int ulp_type);
293 struct cnic_dev *(*cm_select_dev)(struct sockaddr_in *, int ulp_type);
343 extern int cnic_register_driver(int ulp_type, struct cnic_ulp_ops *ulp_ops);
345 extern int cnic_unregister_driver(int ulp_type);
Dcnic.c254 static void cnic_ulp_ctl(struct cnic_dev *dev, int ulp_type, bool reg) in cnic_ulp_ctl() argument
265 info.data.ulp_type = ulp_type; in cnic_ulp_ctl()
456 int cnic_register_driver(int ulp_type, struct cnic_ulp_ops *ulp_ops) in cnic_register_driver() argument
460 if (ulp_type < 0 || ulp_type >= MAX_CNIC_ULP_TYPE) { in cnic_register_driver()
461 pr_err("%s: Bad type %d\n", __func__, ulp_type); in cnic_register_driver()
465 if (cnic_ulp_tbl_prot(ulp_type)) { in cnic_register_driver()
467 __func__, ulp_type); in cnic_register_driver()
476 clear_bit(ULP_F_INIT, &cp->ulp_flags[ulp_type]); in cnic_register_driver()
481 rcu_assign_pointer(cnic_ulp_tbl[ulp_type], ulp_ops); in cnic_register_driver()
489 if (!test_and_set_bit(ULP_F_INIT, &cp->ulp_flags[ulp_type])) in cnic_register_driver()
[all …]
/linux-3.4.99/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c12091 int ulp_type = ctl->data.ulp_type; in bnx2x_drv_ctl() local
12098 if (ulp_type == CNIC_ULP_ISCSI) in bnx2x_drv_ctl()
12100 else if (ulp_type == CNIC_ULP_FCOE) in bnx2x_drv_ctl()
12107 int ulp_type = ctl->data.ulp_type; in bnx2x_drv_ctl() local
12114 if (ulp_type == CNIC_ULP_ISCSI) in bnx2x_drv_ctl()
12116 else if (ulp_type == CNIC_ULP_FCOE) in bnx2x_drv_ctl()