Lines Matching +full:hdr +full:- +full:engine

2  * Copyright (c) 2015-2024, Broadcom. All rights reserved.  The term
99 * min_not_zero - return the minimum that is _not_ zero, unless both are zero
165 ((rdev)->chip_ctx->hwrm_cmd_max_timeout * 1000)
184 #define BNXT_RE_MSIX_FROM_MOD_PARAM -1
390 spin_lock(&(_rdev)->res_list[_type].lock); \
391 list_add_tail(&(_res)->dbr_list, \
392 &(_rdev)->res_list[_type].head); \
393 spin_unlock(&(_rdev)->res_list[_type].lock); \
398 spin_lock(&(_rdev)->res_list[_type].lock); \
399 list_del(&(_res)->dbr_list); \
400 spin_unlock(&(_rdev)->res_list[_type].lock); \
405 mutex_lock(&(_uctx)->cq_lock); \
406 list_add_tail(&(_cq)->cq_list, &(_uctx)->cq_list); \
407 mutex_unlock(&(_uctx)->cq_lock); \
412 mutex_lock(&(_uctx)->cq_lock); \
413 list_del(&(_cq)->cq_list); \
414 mutex_unlock(&(_uctx)->cq_lock); \
607 unsigned char *dev_addr; /* For netdev->dev_addr */
693 #define BNXT_RE_IS_PORT0(rdev) (!(rdev->en_dev->pdev->devfn & 1))
698 #define BNXT_RE_ACTIVE_MAP_PORT1 0x1 /*port-1 active */
699 #define BNXT_RE_ACTIVE_MAP_PORT2 0x2 /*port-2 active */
704 #define rdev_to_dev(rdev) ((rdev) ? (&(rdev)->ibdev.dev) : NULL)
710 (test_bit(BNXT_RE_FLAG_IBDEV_REGISTERED, &rdev->flags)))
735 atomic_inc(&rdev->ref_count); in bnxt_re_hold()
737 "Hold ref_count = 0x%x", atomic_read(&rdev->ref_count)); in bnxt_re_hold()
742 atomic_dec(&rdev->ref_count); in bnxt_re_put()
744 "Put ref_count = 0x%x", atomic_read(&rdev->ref_count)); in bnxt_re_put()
793 * by the RX engine for RDMA write or by the TX engine for RDMA
819 * by the RX engine for RDMA write or by the TX engine for RDMA
949 if (if_getdrvflags(rdev->netdev) & IFF_DRV_RUNNING && in bnxt_re_get_link_state()
950 if_getlinkstate(rdev->netdev) == LINK_STATE_UP) in bnxt_re_get_link_state()
962 return rdev->cc_param.enable; in is_cc_enabled()
966 struct input *hdr, u16 opcd, in bnxt_re_init_hwrm_hdr() argument
969 hdr->req_type = cpu_to_le16(opcd); in bnxt_re_init_hwrm_hdr()
970 hdr->cmpl_ring = cpu_to_le16(crid); in bnxt_re_init_hwrm_hdr()
971 hdr->target_id = cpu_to_le16(trid); in bnxt_re_init_hwrm_hdr()
978 fw_msg->msg = msg; in bnxt_re_fill_fw_msg()
979 fw_msg->msg_len = msg_len; in bnxt_re_fill_fw_msg()
980 fw_msg->resp = resp; in bnxt_re_fill_fw_msg()
981 fw_msg->resp_max_len = resp_max_len; in bnxt_re_fill_fw_msg()
982 fw_msg->timeout = timeout; in bnxt_re_fill_fw_msg()
987 return rdev->tc_rec[0].serv_type_enabled; in is_qport_service_type_supported()
1056 return (atomic_read(&rdev->stats.rsors.mr_count) + in bnxt_re_get_total_mr_mw_count()
1057 atomic_read(&rdev->stats.rsors.mw_count)); in bnxt_re_get_total_mr_mw_count()
1062 rdev->qplib_res.pacing_data->pacing_th = rdev->pacing_algo_th; in bnxt_re_set_def_pacing_threshold()
1063 rdev->qplib_res.pacing_data->alarm_th = in bnxt_re_set_def_pacing_threshold()
1064 rdev->pacing_algo_th * BNXT_RE_PACING_ALARM_TH_MULTIPLE(rdev->chip_ctx); in bnxt_re_set_def_pacing_threshold()
1069 rdev->qplib_res.pacing_data->do_pacing = rdev->dbr_def_do_pacing; in bnxt_re_set_def_do_pacing()
1074 rdev->qplib_res.pacing_data->dev_err_state = in bnxt_re_set_pacing_dev_state()
1075 test_bit(BNXT_RE_FLAG_ERR_DEVICE_DETACHED, &rdev->flags); in bnxt_re_set_pacing_dev_state()