Lines Matching refs:ctrlmode
592 if (!(up->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) && in ucan_rx_can_msg()
967 u16 ctrlmode; in ucan_open() local
983 ctrlmode = 0; in ucan_open()
984 if (up->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in ucan_open()
985 ctrlmode |= UCAN_MODE_LOOPBACK; in ucan_open()
986 if (up->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in ucan_open()
987 ctrlmode |= UCAN_MODE_SILENT; in ucan_open()
988 if (up->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in ucan_open()
989 ctrlmode |= UCAN_MODE_3_SAMPLES; in ucan_open()
990 if (up->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT) in ucan_open()
991 ctrlmode |= UCAN_MODE_ONE_SHOT; in ucan_open()
996 ctrlmode |= UCAN_MODE_BERR_REPORT; in ucan_open()
997 up->ctl_msg_buffer->cmd_start.mode = cpu_to_le16(ctrlmode); in ucan_open()