}
/* point at the 1st tap */
- tap = jtag_NextEnabledTap(NULL);
+ tap = jtag_tap_next_enabled(NULL);
if( tap == NULL ){
LOG_ERROR("JTAG: No taps enabled?");
return ERROR_JTAG_INIT_FAILED;
tap->idcode);
#endif
}
- tap = jtag_NextEnabledTap(tap);
+ tap = jtag_tap_next_enabled(tap);
}
device_count++;
}
tap = NULL;
total_ir_length = 0;
for(;;){
- tap = jtag_NextEnabledTap(tap);
+ tap = jtag_tap_next_enabled(tap);
if( tap == NULL ){
break;
}
chain_pos = 0;
int val;
for(;;){
- tap = jtag_NextEnabledTap(tap);
+ tap = jtag_tap_next_enabled(tap);
if( tap == NULL ){
break;
}
LOG_DEBUG("Init JTAG chain");
- tap = jtag_NextEnabledTap(NULL);
+ tap = jtag_tap_next_enabled(NULL);
if( tap == NULL ){
LOG_ERROR("There are no enabled taps?");
return ERROR_JTAG_INIT_FAILED;
extern int jtag_tap_count_enabled(void);
extern int jtag_tap_count(void);
-static __inline__ jtag_tap_t* jtag_NextEnabledTap(jtag_tap_t* p)
+static __inline__ jtag_tap_t* jtag_tap_next_enabled(jtag_tap_t* p)
{
if (p == NULL)
{
/* loop over all enabled TAPs */
- for (jtag_tap_t * tap = jtag_NextEnabledTap(NULL); tap != NULL; tap = jtag_NextEnabledTap(tap))
+ for (jtag_tap_t * tap = jtag_tap_next_enabled(NULL); tap != NULL; tap = jtag_tap_next_enabled(tap))
{
/* search the input field list for fields for the current TAP */
field++;
}
- assert(field == out_fields + num_taps); /* paranoia: jtag_tap_count_enabled() and jtag_NextEnabledTap() not in sync */
+ assert(field == out_fields + num_taps); /* paranoia: jtag_tap_count_enabled() and jtag_tap_next_enabled() not in sync */
return ERROR_OK;
}
size_t bypass_devices = 0;
- for (jtag_tap_t * tap = jtag_NextEnabledTap(NULL); tap != NULL; tap = jtag_NextEnabledTap(tap))
+ for (jtag_tap_t * tap = jtag_tap_next_enabled(NULL); tap != NULL; tap = jtag_tap_next_enabled(tap))
{
if (tap->bypass)
bypass_devices++;
/* loop over all enabled TAPs */
- for (jtag_tap_t * tap = jtag_NextEnabledTap(NULL); tap != NULL; tap = jtag_NextEnabledTap(tap))
+ for (jtag_tap_t * tap = jtag_tap_next_enabled(NULL); tap != NULL; tap = jtag_tap_next_enabled(tap))
{
/* if TAP is not bypassed insert matching input fields */
size_t bypass_devices = 0;
- for (jtag_tap_t * tap = jtag_NextEnabledTap(NULL); tap != NULL; tap = jtag_NextEnabledTap(tap))
+ for (jtag_tap_t * tap = jtag_tap_next_enabled(NULL); tap != NULL; tap = jtag_tap_next_enabled(tap))
{
if (tap->bypass)
bypass_devices++;
/* loop over all enabled TAPs */
- for (jtag_tap_t * tap = jtag_NextEnabledTap(NULL); tap != NULL; tap = jtag_NextEnabledTap(tap))
+ for (jtag_tap_t * tap = jtag_tap_next_enabled(NULL); tap != NULL; tap = jtag_tap_next_enabled(tap))
{
/* if TAP is not bypassed insert matching input fields */
int j;
int scan_size = 0;
jtag_tap_t *tap, *nextTap;
- for(tap = jtag_NextEnabledTap(NULL); tap!= NULL; tap=nextTap)
+ for(tap = jtag_tap_next_enabled(NULL); tap!= NULL; tap=nextTap)
{
- nextTap=jtag_NextEnabledTap(tap);
+ nextTap=jtag_tap_next_enabled(tap);
tap_state_t end_state;
if (nextTap==NULL)
{
int j;
jtag_tap_t *tap, *nextTap;
- for(tap = jtag_NextEnabledTap(NULL); tap!= NULL; tap=nextTap)
+ for(tap = jtag_tap_next_enabled(NULL); tap!= NULL; tap=nextTap)
{
- nextTap=jtag_NextEnabledTap(tap);
+ nextTap=jtag_tap_next_enabled(tap);
int found=0;
tap_state_t end_state;
if (nextTap==NULL)
{
// static int const reg_addr=0x5;
tap_state_t end_state=jtag_get_end_state();
- if (jtag_NextEnabledTap(jtag_NextEnabledTap(NULL))==NULL)
+ if (jtag_tap_next_enabled(jtag_tap_next_enabled(NULL))==NULL)
{
/* better performance via code duplication */
if (little)