bd_status
static void pre_parse_finished_bd(struct bd_status *status, void *resp)
static void pre_parse_finished_bd3(struct bd_status *status, void *resp)
struct bd_status *status)
struct bd_status status;
struct bd_status status;
u32 bd_status,
if (likely(!(bd_status & ENETC_RXBD_LSTATUS(ENETC_RXBD_ERR_MASK))))
while (!(bd_status & ENETC_RXBD_LSTATUS_F)) {
bd_status = le32_to_cpu((*rxbd)->r.lstatus);
u32 bd_status, union enetc_rx_bd **rxbd,
while (!(bd_status & ENETC_RXBD_LSTATUS_F)) {
bd_status = le32_to_cpu((*rxbd)->r.lstatus);
if (bd_status & ENETC_RXBD_LSTATUS_F) {
u32 bd_status;
bd_status = le32_to_cpu(rxbd->r.lstatus);
if (!bd_status)
if (enetc_check_bd_errors_and_consume(rx_ring, bd_status,
skb = enetc_build_skb(rx_ring, bd_status, &rxbd, &i,
if (bd_status & ENETC_RXBD_FLAG_VLAN)
static void enetc_build_xdp_buff(struct enetc_bdr *rx_ring, u32 bd_status,
while (!(bd_status & ENETC_RXBD_LSTATUS_F)) {
bd_status = le32_to_cpu((*rxbd)->r.lstatus);
if (bd_status & ENETC_RXBD_LSTATUS_F) {
u32 bd_status;
bd_status = le32_to_cpu(rxbd->r.lstatus);
if (!bd_status)
if (enetc_check_bd_errors_and_consume(rx_ring, bd_status,
enetc_build_xdp_buff(rx_ring, bd_status, &rxbd, &i,
if (bd_status & ENETC_RXBD_FLAG_VLAN)
u32 bd_status;
bd_status = in_be32((u32 __iomem *)bd);
} while (!(bd_status & R_W));
u32 bd_status;
bd_status = in_be32((u32 __iomem *)bd);
bd_status = (bd_status & T_W) | T_R | T_I | T_L | skb->len;
out_be32((u32 __iomem *)bd, bd_status);
if (!(bd_status & T_W))
u32 bd_status;
bd_status = in_be32((u32 __iomem *)bd);
while (!((bd_status & (R_E)) || (--rx_work_limit < 0))) {
length = (u16) ((bd_status & BD_LENGTH_MASK) - 4);
(!(bd_status & (R_F | R_L))) ||
(bd_status & R_ERRORS_FATAL)) {
if (bd_status & R_W)
bd_status = in_be32((u32 __iomem *)bd);
u32 bd_status;
bd_status = in_be32((u32 __iomem *)bd);
while ((bd_status & T_R) == 0) {
if (!(bd_status & T_W))
bd_status = in_be32((u32 __iomem *)bd);
bd_status = T_I_S | T_TC_S;
bd_status = T_I_S | T_TC_S | T_W_S;
priv->tx_bd_base[i].status = cpu_to_be16(bd_status);
bd_status = R_E_S | R_I_S;
bd_status = R_E_S | R_I_S | R_W_S;
priv->rx_bd_base[i].status = cpu_to_be16(bd_status);
bd_status = T_I_S | T_TC_S;
bd_status = T_I_S | T_TC_S | T_W_S;
priv->tx_bd_base[i].status = cpu_to_be16(bd_status);
u16 bd_status;
bd_status = be16_to_cpu(bd->status);
bd_status = (bd_status & T_W_S) | T_R_S | T_I_S | T_L_S | T_TC_S;
bd->status = cpu_to_be16(bd_status);
if (!(bd_status & T_W_S))
u16 bd_status;
bd_status = be16_to_cpu(bd->status);
while ((bd_status & T_R_S) == 0) {
if (bd_status & T_UN_S) { /* Underrun */
if (bd_status & T_CT_S) { /* Carrier lost */
if (!(bd_status & T_W_S))
bd_status = be16_to_cpu(bd->status);
u16 bd_status;
bd_status = be16_to_cpu(bd->status);
while (!((bd_status & (R_E_S)) || (--rx_work_limit < 0))) {
if (bd_status & (RX_BD_ERRORS)) {
if (bd_status & R_CD_S)
if (bd_status & R_OV_S)
if (bd_status & R_CR_S)
if (bd_status & R_AB_S)
if (bd_status & R_NO_S)
if (bd_status & R_LG_S)
bd->status = cpu_to_be16((bd_status & R_W_S) | R_E_S | R_I_S);
if (bd_status & R_W_S) {
bd_status = be16_to_cpu(bd->status);
u16 bd_status;
u16 bd_status;
bd_status = R_E_S | R_I_S;
bd_status = R_E_S | R_I_S | R_W_S;
priv->rx_bd_base[i].status = cpu_to_be16(bd_status);
struct bd_status status;
bd->bd_status = 0;
u32 bd_status; /* reserved */