Lines Matching refs:canrflg
142 u8 canrflg;
164 canrflg = in_8(®s->canrflg);
165 priv->shadow_statflg = canrflg & MSCAN_STAT_MSK;
166 priv->can.state = state_map[max(MSCAN_STATE_RX(canrflg),
167 MSCAN_STATE_TX(canrflg))];
292 static enum can_state check_set_state(struct net_device *dev, u8 canrflg)
297 if (canrflg & MSCAN_CSCIF && old_state <= CAN_STATE_BUS_OFF) {
298 state = state_map[max(MSCAN_STATE_RX(canrflg),
299 MSCAN_STATE_TX(canrflg))];
339 out_8(®s->canrflg, MSCAN_RXF);
343 u8 canrflg)
350 dev_dbg(dev->dev.parent, "error interrupt (canrflg=%#x)\n", canrflg);
353 if (canrflg & MSCAN_OVRIF) {
362 old_state = check_set_state(dev, canrflg);
370 (canrflg & MSCAN_RSTAT_MSK))
373 (canrflg & MSCAN_TSTAT_MSK))
400 priv->shadow_statflg = canrflg & MSCAN_STAT_MSK;
402 out_8(®s->canrflg, MSCAN_ERR_IF);
415 u8 canrflg;
418 canrflg = in_8(®s->canrflg);
419 if (!(canrflg & (MSCAN_RXF | MSCAN_ERR_IF)))
427 out_8(®s->canrflg, canrflg);
431 if (canrflg & MSCAN_RXF)
433 else if (canrflg & MSCAN_ERR_IF)
434 mscan_get_err_frame(dev, frame, canrflg);
442 if (!(in_8(®s->canrflg) & (MSCAN_RXF | MSCAN_ERR_IF))) {
458 u8 cantier, cantflg, canrflg;
498 canrflg = in_8(®s->canrflg);
499 if ((canrflg & ~MSCAN_STAT_MSK) &&
501 if (canrflg & ~MSCAN_STAT_MSK) {