Lines Matching refs:bit_mask

264 	u32 bit_mask;  in get_exception_flag()  local
268 bit_mask = TGEC_IMASK_MDIO_SCAN_EVENT; in get_exception_flag()
271 bit_mask = TGEC_IMASK_MDIO_CMD_CMPL; in get_exception_flag()
274 bit_mask = TGEC_IMASK_REM_FAULT; in get_exception_flag()
277 bit_mask = TGEC_IMASK_LOC_FAULT; in get_exception_flag()
280 bit_mask = TGEC_IMASK_TX_ECC_ER; in get_exception_flag()
283 bit_mask = TGEC_IMASK_TX_FIFO_UNFL; in get_exception_flag()
286 bit_mask = TGEC_IMASK_TX_FIFO_OVFL; in get_exception_flag()
289 bit_mask = TGEC_IMASK_TX_ER; in get_exception_flag()
292 bit_mask = TGEC_IMASK_RX_FIFO_OVFL; in get_exception_flag()
295 bit_mask = TGEC_IMASK_RX_ECC_ER; in get_exception_flag()
298 bit_mask = TGEC_IMASK_RX_JAB_FRM; in get_exception_flag()
301 bit_mask = TGEC_IMASK_RX_OVRSZ_FRM; in get_exception_flag()
304 bit_mask = TGEC_IMASK_RX_RUNT_FRM; in get_exception_flag()
307 bit_mask = TGEC_IMASK_RX_FRAG_FRM; in get_exception_flag()
310 bit_mask = TGEC_IMASK_RX_LEN_ER; in get_exception_flag()
313 bit_mask = TGEC_IMASK_RX_CRC_ER; in get_exception_flag()
316 bit_mask = TGEC_IMASK_RX_ALIGN_ER; in get_exception_flag()
319 bit_mask = 0; in get_exception_flag()
323 return bit_mask; in get_exception_flag()
615 u32 bit_mask = 0; in tgec_set_exception() local
620 bit_mask = get_exception_flag(exception); in tgec_set_exception()
621 if (bit_mask) { in tgec_set_exception()
623 tgec->exceptions |= bit_mask; in tgec_set_exception()
625 tgec->exceptions &= ~bit_mask; in tgec_set_exception()
631 iowrite32be(ioread32be(&regs->imask) | bit_mask, &regs->imask); in tgec_set_exception()
633 iowrite32be(ioread32be(&regs->imask) & ~bit_mask, &regs->imask); in tgec_set_exception()