Lines Matching +full:data +full:- +full:shift
1 // SPDX-License-Identifier: GPL-2.0-or-later
15 u8 shift = index & 2; in pla_read_word() local
19 if (shift) in pla_read_word()
20 byen <<= shift; in pla_read_word()
30 ret >>= (shift * 8); in pla_read_word()
37 static int pla_write_word(struct usbnet *dev, u16 index, u32 data) in pla_write_word() argument
41 u8 shift = index & 2; in pla_write_word() local
45 data &= mask; in pla_write_word()
47 if (shift) { in pla_write_word()
48 byen <<= shift; in pla_write_word()
49 mask <<= (shift * 8); in pla_write_word()
50 data <<= (shift * 8); in pla_write_word()
61 data |= __le32_to_cpu(tmp) & ~mask; in pla_write_word()
62 tmp = __cpu_to_le32(data); in pla_write_word()
106 dev->mii.dev = dev->net; in r8153_bind()
107 dev->mii.mdio_read = r8153_ecm_mdio_read; in r8153_bind()
108 dev->mii.mdio_write = r8153_ecm_mdio_write; in r8153_bind()
109 dev->mii.reg_num_mask = 0x1f; in r8153_bind()
110 dev->mii.supports_gmii = 1; in r8153_bind()
132 /* Lenovo Powered USB-C Travel Hub (4X90S92381, based on Realtek RTL8153) */
148 return -ENODEV; in rtl8153_ecm_probe()