Lines Matching refs:ndx
472 size_t ndx;
473 for (ndx = 0; ndx < ETH_MAC_SIZE * 4; ndx++) {
474 if (ndx % 2 == 1) {
475 if (str[ndx] != 0) {
482 if (str[ndx] >= '0' && str[ndx] <= '9') {
483 value = str[ndx] - '0';
484 } else if (str[ndx] >= 'A' && str[ndx] <= 'F') {
485 value = (str[ndx] - 'A') + 0xa;
490 if (ndx % 4 == 0) {
491 ctx->mac_addr[ndx/4] = value << 4;
493 ctx->mac_addr[ndx/4] |= value;