Lines Matching refs:ctrlmode
588 if (!(up->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) &&
965 u16 ctrlmode;
981 ctrlmode = 0;
982 if (up->can.ctrlmode & CAN_CTRLMODE_LOOPBACK)
983 ctrlmode |= UCAN_MODE_LOOPBACK;
984 if (up->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)
985 ctrlmode |= UCAN_MODE_SILENT;
986 if (up->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES)
987 ctrlmode |= UCAN_MODE_3_SAMPLES;
988 if (up->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT)
989 ctrlmode |= UCAN_MODE_ONE_SHOT;
994 ctrlmode |= UCAN_MODE_BERR_REPORT;
995 up->ctl_msg_buffer->cmd_start.mode = cpu_to_le16(ctrlmode);