Lines Matching refs:switches
494 static int set_var(struct switches_l *switches, int nr, in set_var() argument
499 if(match_token(switches[i].name)) { in set_var()
501 if(switches[i].type == T_UINT) in set_var()
502 * ((unsigned int *)((long)switches[i].address+base_address)) = in set_var()
504 else if(switches[i].type == T_UINT8) in set_var()
505 * ((uint8_t *)((long)switches[i].address+base_address)) = in set_var()
507 else if(switches[i].type == T_UINT16) in set_var()
508 * ((uint16_t *)((long)switches[i].address+base_address)) = in set_var()
510 else if(switches[i].type == T_INT) in set_var()
511 * ((int *)((long)switches[i].address+base_address)) = in set_var()
513 else if (switches[i].type == T_STRING) in set_var()
514 * ((char**)((long)switches[i].address+base_address))= in set_var()