Lines Matching +full:rx +full:- +full:watermark
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); \
593 u32 dbq_watermark; /* Current watermark set in HW registers */
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()
757 * transfer length. Detected on RX first and only packets for
758 * write. Detected on RX request for read. This is an RX
766 * request. This is an RX Detected Error.
772 * buffer that was fetched from the RQ/SRQ. This is an RX
780 * MTU size. This is an RX Detected Error.
787 * an RX Detected Error.
793 * by the RX engine for RDMA write or by the TX engine for RDMA
794 * read (detected while servicing IRRQ). This is an RX Detected
801 * which the request arrived. This is an RX Detected Error.
807 * needed for the operation. This is an RX Detected Error.
813 * MR/MW. This is an RX Detected Error.
819 * by the RX engine for RDMA write or by the TX engine for RDMA
844 * requests than the negotiated maximum. This is an RX Detected
851 * an RX Detected Error.
857 * RX Detected Error.
866 * invalidate error is not reported. This is an RX Detected
872 * memory. This is an RX Detected Error.
877 * found SRQ it uses in error. This is an RX Detected Error.
892 * is an RX Detected Error.
902 * This is an RX Detected Error.
915 * the RX side (or CAGR), but has the priority of a Completion
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()
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()
1023 * to program the high watermark. This means user can configure maximum 36% only(4095/11264).
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()