Lines Matching +full:rx +full:- +full:fifo +full:- +full:depth
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)
176 u32 depth;
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);
737 "Hold ref_count = 0x%x", atomic_read(&rdev->ref_count));
742 atomic_dec(&rdev->ref_count);
744 "Put ref_count = 0x%x", atomic_read(&rdev->ref_count));
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 &&
950 if_getlinkstate(rdev->netdev) == LINK_STATE_UP)
962 return rdev->cc_param.enable;
969 hdr->req_type = cpu_to_le16(opcd);
970 hdr->cmpl_ring = cpu_to_le16(crid);
971 hdr->target_id = cpu_to_le16(trid);
978 fw_msg->msg = msg;
979 fw_msg->msg_len = msg_len;
980 fw_msg->resp = resp;
981 fw_msg->resp_max_len = resp_max_len;
982 fw_msg->timeout = timeout;
987 return rdev->tc_rec[0].serv_type_enabled;
1013 #define BNXT_RE_PACING_EN_INT_THRESHOLD 50 /* Entries in DB FIFO */
1014 #define BNXT_RE_PACING_ALGO_THRESHOLD 250 /* Entries in DB FIFO */
1015 /* Percentage of DB FIFO depth */
1021 * Maximum Percentage of configurable DB FIFO depth.
1022 * The Doorbell FIFO depth is 0x2c00. But the DBR_REG_DB_THROTTLING register has only 12 bits
1056 return (atomic_read(&rdev->stats.rsors.mr_count) +
1057 atomic_read(&rdev->stats.rsors.mw_count));
1062 rdev->qplib_res.pacing_data->pacing_th = rdev->pacing_algo_th;
1063 rdev->qplib_res.pacing_data->alarm_th =
1064 rdev->pacing_algo_th * BNXT_RE_PACING_ALARM_TH_MULTIPLE(rdev->chip_ctx);
1069 rdev->qplib_res.pacing_data->do_pacing = rdev->dbr_def_do_pacing;
1074 rdev->qplib_res.pacing_data->dev_err_state =
1075 test_bit(BNXT_RE_FLAG_ERR_DEVICE_DETACHED, &rdev->flags);