Lines Matching refs:pba_num
491 s32 ixgbe_read_pba_string_generic(struct ixgbe_hw *hw, u8 *pba_num, in ixgbe_read_pba_string_generic() argument
500 if (pba_num == NULL) { in ixgbe_read_pba_string_generic()
532 pba_num[0] = (data >> 12) & 0xF; in ixgbe_read_pba_string_generic()
533 pba_num[1] = (data >> 8) & 0xF; in ixgbe_read_pba_string_generic()
534 pba_num[2] = (data >> 4) & 0xF; in ixgbe_read_pba_string_generic()
535 pba_num[3] = data & 0xF; in ixgbe_read_pba_string_generic()
536 pba_num[4] = (pba_ptr >> 12) & 0xF; in ixgbe_read_pba_string_generic()
537 pba_num[5] = (pba_ptr >> 8) & 0xF; in ixgbe_read_pba_string_generic()
538 pba_num[6] = '-'; in ixgbe_read_pba_string_generic()
539 pba_num[7] = 0; in ixgbe_read_pba_string_generic()
540 pba_num[8] = (pba_ptr >> 4) & 0xF; in ixgbe_read_pba_string_generic()
541 pba_num[9] = pba_ptr & 0xF; in ixgbe_read_pba_string_generic()
544 pba_num[10] = '\0'; in ixgbe_read_pba_string_generic()
548 if (pba_num[offset] < 0xA) in ixgbe_read_pba_string_generic()
549 pba_num[offset] += '0'; in ixgbe_read_pba_string_generic()
550 else if (pba_num[offset] < 0x10) in ixgbe_read_pba_string_generic()
551 pba_num[offset] += 'A' - 0xA; in ixgbe_read_pba_string_generic()
584 pba_num[offset * 2] = (u8)(data >> 8); in ixgbe_read_pba_string_generic()
585 pba_num[(offset * 2) + 1] = (u8)(data & 0xFF); in ixgbe_read_pba_string_generic()
587 pba_num[offset * 2] = '\0'; in ixgbe_read_pba_string_generic()