desc_status
enum desc_status status;
u32 tail, head, len, desc_status;
desc_status = desc_read(xe, g2h, status);
if (desc_status) {
if (desc_status & GUC_CTB_STATUS_DISABLED) {
desc_status &= ~GUC_CTB_STATUS_DISABLED;
if (desc_status) {
xe_gt_err(gt, "CT read: non-zero status: %u\n", desc_status);
desc_write(xe, g2h, status, desc_status | GUC_CTB_STATUS_OVERFLOW);
desc_write(xe, g2h, status, desc_status | GUC_CTB_STATUS_OVERFLOW);
u32 desc_status = desc_read(xe, h2g, status);
desc_write(xe, h2g, status, desc_status | GUC_CTB_STATUS_OVERFLOW);
u32 desc_status;
desc_status = desc_read(xe, h2g, status);
if (desc_status) {
xe_gt_err(gt, "CT write: non-zero status: %u\n", desc_status);
desc_write(xe, h2g, status, desc_status | GUC_CTB_STATUS_MISMATCH);
desc_write(xe, h2g, status, desc_status | GUC_CTB_STATUS_OVERFLOW);
desc_write(xe, h2g, status, desc_status | GUC_CTB_STATUS_OVERFLOW);
iommu->qi->desc_status[index]);
iommu->qi->desc_status[index]);
kfree(iommu->qi->desc_status);
while (qi->desc_status[qi->free_tail] == QI_FREE && qi->free_tail != qi->free_head) {
if (qi->desc_status[wait_index] == QI_ABORT)
if (qi->desc_status[head] == QI_IN_USE)
qi->desc_status[head] = QI_ABORT;
if (qi->desc_status[wait_index] == QI_ABORT)
qi->desc_status[(index + i) % QI_LENGTH] = QI_IN_USE;
qi->desc_status[wait_index] = QI_IN_USE;
wait_desc.qw1 = virt_to_phys(&qi->desc_status[wait_index]);
while (READ_ONCE(qi->desc_status[wait_index]) != QI_DONE) {
qi->desc_status[(index + i) % QI_LENGTH] = QI_FREE;
qi->desc_status = kzalloc_objs(int, QI_LENGTH, GFP_ATOMIC);
if (!qi->desc_status) {
int *desc_status; /* desc status */
if (desc_status & CDMA_CS_UNCE)
if (desc_status & CDMA_CS_ERR) {
if (FIELD_GET(CDMA_CS_MAXERR, desc_status))
u32 desc_status)
if (desc_status & CDMA_CS_ERP)
u32 desc_status;
while ((desc_status = le32_to_cpu(np->rx_done_q[np->rx_done].status)) != 0) {
printk(KERN_DEBUG " netdev_rx() status of %d was %#8.8x.\n", np->rx_done, desc_status);
if (!(desc_status & RxOK)) {
printk(KERN_DEBUG " netdev_rx() Rx error was %#8.8x.\n", desc_status);
if (desc_status & RxFIFOErr)
pkt_len = desc_status; /* Implicitly Truncate */
entry = (desc_status >> 16) & 0x7ff;
retcode, np->rx_done, desc_status);
struct xdp_buff *xdp, u32 desc_status)
skb->ip_summed = mvneta_rx_csum(pp, desc_status);
u32 desc_status, frame_sz;
desc_status = rx_status;
skb = mvneta_swbm_build_skb(pp, rxq->page_pool, &xdp_buf, desc_status);
s32 desc_status = le32_to_cpu(np->rx_head_desc->cmd_status);
while (desc_status < 0) { /* e.g. & DescOwn */
entry, desc_status);
pkt_len = (desc_status & DescSizeMask) - 4;
if ((desc_status&(DescMore|DescPktOK|DescRxLong)) != DescPktOK){
if (desc_status & DescMore) {
np->cur_rx, desc_status);
if (desc_status & (DescRxAbort|DescRxOver))
if (desc_status & (DescRxLong|DescRxRunt))
if (desc_status & (DescRxInvalid|DescRxAlign))
if (desc_status & DescRxCRC)
desc_status = le32_to_cpu(np->rx_head_desc->cmd_status);
u32 desc_status = le32_to_cpu(desc->status_n_length);
u16 data_size = desc_status; /* Implicit truncate */
if (desc_status & DescOwn)
if ( ! (desc_status & DescEndPacket)) {
dev->name, hmp->cur_rx, data_size, desc_status);
u16 desc_status;
desc_status = le32_to_cpu(desc->result_status) >> 16;
if ( ! (desc_status & RX_EOP)) {
desc_status, data_size);
} __packed desc_status;
desc->desc_status.opts2 = 0;
u32 opts2 = le32_to_cpu(desc->desc_status.opts2);
u32 opts2 = le32_to_cpu(desc->desc_status.opts2);
status = le32_to_cpu(desc->desc_status.opts1);
if (desc_status & MSC_MC)
if (desc_status & (MSC_CRC | MSC_RFE | MSC_RTSF | MSC_RTLF |
if (desc_status & MSC_CRC)
if (desc_status & MSC_RFE)
if (desc_status & (MSC_RTLF | MSC_RTSF))
if (desc_status & MSC_CEEF)
u8 desc_status;
desc_status = desc->msc;
if (desc_status & MSC_MC)
if (desc_status & (MSC_CRC | MSC_RFE | MSC_RTSF | MSC_RTLF | MSC_CEEF)) {
if (desc_status & MSC_CRC)
if (desc_status & MSC_RFE)
if (desc_status & (MSC_RTLF | MSC_RTSF))
if (desc_status & MSC_CEEF)
u8 desc_status;
desc_status = desc->msc;
u32 desc_status;
desc_status = le32_to_cpu(rxdesc->status);
entry, desc_status, pkt_len);
if (!(desc_status & RDFEND))
desc_status >>= 16;
if (desc_status & (RD_RFS1 | RD_RFS2 | RD_RFS3 | RD_RFS4 |
if (desc_status & RD_RFS1)
if (desc_status & RD_RFS2)
if (desc_status & RD_RFS3)
if (desc_status & RD_RFS4)
if (desc_status & RD_RFS6)
if (desc_status & RD_RFS10)
if (desc_status & RD_RFS8)
static void smsc9420_rx_count_stats(struct net_device *dev, u32 desc_status)
if (unlikely(desc_status & RDES0_ERROR_SUMMARY_)) {
if (desc_status & RDES0_DESCRIPTOR_ERROR_)
else if (desc_status & (RDES0_FRAME_TOO_LONG_ |
else if (desc_status & RDES0_CRC_ERROR_)
if (unlikely(desc_status & RDES0_LENGTH_ERROR_))
if (unlikely(!((desc_status & RDES0_LAST_DESCRIPTOR_) &&
(desc_status & RDES0_FIRST_DESCRIPTOR_))))
if (desc_status & RDES0_MULTICAST_FRAME_)
u32 desc_status = le32_to_cpu(desc->rx_status);
int data_size = desc_status >> 16;
if (desc_status & DescOwn)
desc_status);
if ((desc_status & (RxWholePkt | RxErr)) != RxWholePkt) {
if ((desc_status & RxWholePkt) != RxWholePkt) {
desc_status);
} else if (desc_status & RxErr) {
desc_status);
if (desc_status & 0x0030)
if (desc_status & 0x0048)
if (desc_status & 0x0004)
if (desc_status & 0x0002) {
status = desc_status(info->rbufs[end]);