Lines Matching defs:pba_num
597 * @pba_num: stores the part number string from the EEPROM
602 s32 ixgbe_read_pba_string_generic(struct ixgbe_hw *hw, u8 *pba_num,
613 if (pba_num == NULL) {
645 pba_num[0] = (data >> 12) & 0xF;
646 pba_num[1] = (data >> 8) & 0xF;
647 pba_num[2] = (data >> 4) & 0xF;
648 pba_num[3] = data & 0xF;
649 pba_num[4] = (pba_ptr >> 12) & 0xF;
650 pba_num[5] = (pba_ptr >> 8) & 0xF;
651 pba_num[6] = '-';
652 pba_num[7] = 0;
653 pba_num[8] = (pba_ptr >> 4) & 0xF;
654 pba_num[9] = pba_ptr & 0xF;
657 pba_num[10] = '\0';
661 if (pba_num[offset] < 0xA)
662 pba_num[offset] += '0';
663 else if (pba_num[offset] < 0x10)
664 pba_num[offset] += 'A' - 0xA;
681 /* check if pba_num buffer is big enough */
697 pba_num[offset * 2] = (u8)(data >> 8);
698 pba_num[(offset * 2) + 1] = (u8)(data & 0xFF);
700 pba_num[offset * 2] = '\0';
708 * @pba_num: stores the part number from the EEPROM
712 s32 ixgbe_read_pba_num_generic(struct ixgbe_hw *hw, u32 *pba_num)
727 *pba_num = (u32)(data << 16);
734 *pba_num |= data;