• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/

Lines Matching defs:ulp_type

415 int cnic_register_driver(int ulp_type, struct cnic_ulp_ops *ulp_ops)
419 if (ulp_type < 0 || ulp_type >= MAX_CNIC_ULP_TYPE) {
420 pr_err("%s: Bad type %d\n", __func__, ulp_type);
424 if (cnic_ulp_tbl[ulp_type]) {
426 __func__, ulp_type);
435 clear_bit(ULP_F_INIT, &cp->ulp_flags[ulp_type]);
440 rcu_assign_pointer(cnic_ulp_tbl[ulp_type], ulp_ops);
449 if (!test_and_set_bit(ULP_F_INIT, &cp->ulp_flags[ulp_type]))
458 int cnic_unregister_driver(int ulp_type)
464 if (ulp_type < 0 || ulp_type >= MAX_CNIC_ULP_TYPE) {
465 pr_err("%s: Bad type %d\n", __func__, ulp_type);
469 ulp_ops = cnic_ulp_tbl[ulp_type];
472 __func__, ulp_type);
479 if (rcu_dereference(cp->ulp_ops[ulp_type])) {
481 __func__, ulp_type);
488 if (ulp_type == CNIC_ULP_ISCSI)
491 rcu_assign_pointer(cnic_ulp_tbl[ulp_type], NULL);
512 static int cnic_register_device(struct cnic_dev *dev, int ulp_type,
518 if (ulp_type < 0 || ulp_type >= MAX_CNIC_ULP_TYPE) {
519 pr_err("%s: Bad type %d\n", __func__, ulp_type);
523 if (cnic_ulp_tbl[ulp_type] == NULL) {
525 __func__, ulp_type);
529 if (rcu_dereference(cp->ulp_ops[ulp_type])) {
531 __func__, ulp_type);
536 clear_bit(ULP_F_START, &cp->ulp_flags[ulp_type]);
537 cp->ulp_handle[ulp_type] = ulp_ctx;
538 ulp_ops = cnic_ulp_tbl[ulp_type];
539 rcu_assign_pointer(cp->ulp_ops[ulp_type], ulp_ops);
543 if (!test_and_set_bit(ULP_F_START, &cp->ulp_flags[ulp_type]))
544 ulp_ops->cnic_start(cp->ulp_handle[ulp_type]);
553 static int cnic_unregister_device(struct cnic_dev *dev, int ulp_type)
558 if (ulp_type < 0 || ulp_type >= MAX_CNIC_ULP_TYPE) {
559 pr_err("%s: Bad type %d\n", __func__, ulp_type);
563 if (rcu_dereference(cp->ulp_ops[ulp_type])) {
564 rcu_assign_pointer(cp->ulp_ops[ulp_type], NULL);
568 __func__, ulp_type);
576 while (test_bit(ULP_F_CALL_PENDING, &cp->ulp_flags[ulp_type]) &&
581 if (test_bit(ULP_F_CALL_PENDING, &cp->ulp_flags[ulp_type]))
1230 static void cnic_reply_bnx2x_kcqes(struct cnic_dev *dev, int ulp_type,
1237 ulp_ops = rcu_dereference(cp->ulp_ops[ulp_type]);
1239 ulp_ops->indicate_kcqes(cp->ulp_handle[ulp_type],
2072 int ulp_type;
2091 ulp_type = CNIC_ULP_RDMA;
2093 ulp_type = CNIC_ULP_ISCSI;
2095 ulp_type = CNIC_ULP_L4;
2105 ulp_ops = rcu_dereference(cp->ulp_ops[ulp_type]);
2107 ulp_ops->indicate_kcqes(cp->ulp_handle[ulp_type],
2722 static int cnic_cm_create(struct cnic_dev *dev, int ulp_type, u32 cid,
2741 csk1->ulp_type = ulp_type;
2846 int ulp_type)
3028 int ulp_type = csk->ulp_type;
3031 ulp_ops = rcu_dereference(cp->ulp_ops[ulp_type]);