Lines Matching defs:mode
198 static inline char *sms_get_fw_name(int mode, int board_id)
201 return (fw && fw[mode]) ? fw[mode] : smsusb1_fw_lkup[mode];
220 sms_warn("failed to open \"%s\" mode %d, "
226 sms_warn("failed to open \"%s\" mode %d",
254 static void smsusb1_detectmode(void *context, int *mode)
259 *mode = DEVICE_MODE_NONE;
265 *mode = 1;
267 *mode = 4;
269 *mode = 0;
271 *mode = 2;
273 sms_info("%d \"%s\"", *mode, product_string);
276 static int smsusb1_setmode(void *context, int mode)
281 if (mode < DEVICE_MODE_DVBT || mode > DEVICE_MODE_DVBT_BDA) {
282 sms_err("invalid firmware id specified %d", mode);