Home
last modified time | relevance | path

Searched refs:OTP_WORD_SIZE (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/nvmem/
H A Dsunplus-ocotp.c27 #define OTP_WORD_SIZE sizeof(u32) macro
28 #define OTP_BIT_ADDR_OF_BANK (8 * OTP_WORD_SIZE * OTP_WORDS_PER_BANK)
30 #define QAC628_OTP_SIZE (QAC628_OTP_NUM_BANKS * OTP_WORDS_PER_BANK * OTP_WORD_SIZE)
85 addr_data = addr % (OTP_WORD_SIZE * OTP_WORDS_PER_BANK); in sp_otp_read_real()
86 addr_data = addr_data / OTP_WORD_SIZE; in sp_otp_read_real()
88 byte_shift = addr % (OTP_WORD_SIZE * OTP_WORDS_PER_BANK); in sp_otp_read_real()
89 byte_shift = byte_shift % OTP_WORD_SIZE; in sp_otp_read_real()
91 addr = addr / (OTP_WORD_SIZE * OTP_WORDS_PER_BANK); in sp_otp_read_real()
111 *value = (readl(otp->base[HB_GPIO] + ADDRESS_8_DATA + addr_data * OTP_WORD_SIZE) in sp_otp_read_real()
206 (int)OTP_WORD_SIZE, (int)QAC628_OTP_SIZE); in sp_ocotp_probe()