Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/mmc/
H A Dbcm2835_sdhci.c122 u32 byte_shift = byte_num * 8; in bcm2835_sdhci_writeb() local
123 u32 mask = 0xff << byte_shift; in bcm2835_sdhci_writeb()
124 u32 newval = (oldval & ~mask) | (val << byte_shift); in bcm2835_sdhci_writeb()
150 u32 byte_shift = byte_num * 8; in bcm2835_sdhci_readb() local
151 u32 byte = (val >> byte_shift) & 0xff; in bcm2835_sdhci_readb()
/openbmc/linux/drivers/nvmem/
H A Dsunplus-ocotp.c81 unsigned int byte_shift; in sp_otp_read_real() local
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()
112 >> (8 * byte_shift)) & 0xff; in sp_otp_read_real()
/openbmc/linux/drivers/spi/
H A Dspi-meson-spicc.c220 unsigned int byte_shift = 0; in meson_spicc_pull_data() local
226 data |= (byte & 0xff) << byte_shift; in meson_spicc_pull_data()
227 byte_shift += 8; in meson_spicc_pull_data()
238 unsigned int byte_shift = 0; in meson_spicc_push_data() local
242 byte = (data >> byte_shift) & 0xff; in meson_spicc_push_data()
244 byte_shift += 8; in meson_spicc_push_data()
/openbmc/linux/drivers/mmc/host/
H A Dsdhci-iproc.c150 u32 byte_shift = REG_OFFSET_IN_BITS(reg); in sdhci_iproc_writeb() local
151 u32 mask = 0xff << byte_shift; in sdhci_iproc_writeb()
152 u32 newval = (oldval & ~mask) | (val << byte_shift); in sdhci_iproc_writeb()
/openbmc/linux/drivers/acpi/
H A Dbus.c815 int i, msk, byte_shift; in __acpi_match_device_cls() local
823 byte_shift = 8 * (3 - i); in __acpi_match_device_cls()
824 msk = (id->cls_msk >> byte_shift) & 0xFF; in __acpi_match_device_cls()
828 sprintf(buf, "%02x", (id->cls >> byte_shift) & msk); in __acpi_match_device_cls()
/openbmc/linux/scripts/mod/
H A Dfile2alias.c576 int i, byte_shift, cnt = 0; in do_acpi_entry() local
582 byte_shift = 8 * (3-i); in do_acpi_entry()
583 msk = (*cls_msk >> byte_shift) & 0xFF; in do_acpi_entry()
586 (*cls >> byte_shift) & 0xFF); in do_acpi_entry()