Lines Matching refs:pba_num
411 s32 e1000_read_pba_string_generic(struct e1000_hw *hw, u8 *pba_num, in e1000_read_pba_string_generic() argument
420 if (pba_num == NULL) { in e1000_read_pba_string_generic()
451 pba_num[0] = (nvm_data >> 12) & 0xF; in e1000_read_pba_string_generic()
452 pba_num[1] = (nvm_data >> 8) & 0xF; in e1000_read_pba_string_generic()
453 pba_num[2] = (nvm_data >> 4) & 0xF; in e1000_read_pba_string_generic()
454 pba_num[3] = nvm_data & 0xF; in e1000_read_pba_string_generic()
455 pba_num[4] = (pba_ptr >> 12) & 0xF; in e1000_read_pba_string_generic()
456 pba_num[5] = (pba_ptr >> 8) & 0xF; in e1000_read_pba_string_generic()
457 pba_num[6] = '-'; in e1000_read_pba_string_generic()
458 pba_num[7] = 0; in e1000_read_pba_string_generic()
459 pba_num[8] = (pba_ptr >> 4) & 0xF; in e1000_read_pba_string_generic()
460 pba_num[9] = pba_ptr & 0xF; in e1000_read_pba_string_generic()
463 pba_num[10] = '\0'; in e1000_read_pba_string_generic()
467 if (pba_num[offset] < 0xA) in e1000_read_pba_string_generic()
468 pba_num[offset] += '0'; in e1000_read_pba_string_generic()
469 else if (pba_num[offset] < 0x10) in e1000_read_pba_string_generic()
470 pba_num[offset] += 'A' - 0xA; in e1000_read_pba_string_generic()
502 pba_num[offset * 2] = (u8)(nvm_data >> 8); in e1000_read_pba_string_generic()
503 pba_num[(offset * 2) + 1] = (u8)(nvm_data & 0xFF); in e1000_read_pba_string_generic()
505 pba_num[offset * 2] = '\0'; in e1000_read_pba_string_generic()