Lines Matching refs:bit_mask
290 u32 bit_mask; in get_exception_flag() local
294 bit_mask = TGEC_IMASK_MDIO_SCAN_EVENT; in get_exception_flag()
297 bit_mask = TGEC_IMASK_MDIO_CMD_CMPL; in get_exception_flag()
300 bit_mask = TGEC_IMASK_REM_FAULT; in get_exception_flag()
303 bit_mask = TGEC_IMASK_LOC_FAULT; in get_exception_flag()
306 bit_mask = TGEC_IMASK_TX_ECC_ER; in get_exception_flag()
309 bit_mask = TGEC_IMASK_TX_FIFO_UNFL; in get_exception_flag()
312 bit_mask = TGEC_IMASK_TX_FIFO_OVFL; in get_exception_flag()
315 bit_mask = TGEC_IMASK_TX_ER; in get_exception_flag()
318 bit_mask = TGEC_IMASK_RX_FIFO_OVFL; in get_exception_flag()
321 bit_mask = TGEC_IMASK_RX_ECC_ER; in get_exception_flag()
324 bit_mask = TGEC_IMASK_RX_JAB_FRM; in get_exception_flag()
327 bit_mask = TGEC_IMASK_RX_OVRSZ_FRM; in get_exception_flag()
330 bit_mask = TGEC_IMASK_RX_RUNT_FRM; in get_exception_flag()
333 bit_mask = TGEC_IMASK_RX_FRAG_FRM; in get_exception_flag()
336 bit_mask = TGEC_IMASK_RX_LEN_ER; in get_exception_flag()
339 bit_mask = TGEC_IMASK_RX_CRC_ER; in get_exception_flag()
342 bit_mask = TGEC_IMASK_RX_ALIGN_ER; in get_exception_flag()
345 bit_mask = 0; in get_exception_flag()
349 return bit_mask; in get_exception_flag()
661 u32 bit_mask = 0; in tgec_set_exception() local
666 bit_mask = get_exception_flag(exception); in tgec_set_exception()
667 if (bit_mask) { in tgec_set_exception()
669 tgec->exceptions |= bit_mask; in tgec_set_exception()
671 tgec->exceptions &= ~bit_mask; in tgec_set_exception()
677 iowrite32be(ioread32be(®s->imask) | bit_mask, ®s->imask); in tgec_set_exception()
679 iowrite32be(ioread32be(®s->imask) & ~bit_mask, ®s->imask); in tgec_set_exception()