Loading drivers/usb/dwc3/dbm.c +2 −2 Original line number Diff line number Diff line /* * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. * Copyright (c) 2012-2015, 2017 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -129,7 +129,7 @@ static inline void msm_dbm_write_ep_reg_field(struct dbm *dbm, enum dbm_reg reg, int ep, const u32 mask, u32 val) { u32 shift = find_first_bit((void *)&mask, 32); u32 shift = __ffs(mask); u32 offset = dbm->reg_table[reg].offset + (dbm->reg_table[reg].ep_mult * ep); u32 tmp = ioread32(dbm->base + offset); Loading drivers/usb/dwc3/dwc3-msm.c +2 −2 Original line number Diff line number Diff line Loading @@ -319,7 +319,7 @@ static inline u32 dwc3_msm_read_reg_field(void __iomem *base, u32 offset, const u32 mask) { u32 shift = ffs(mask); u32 shift = __ffs(mask); u32 val = ioread32(base + offset); val &= mask; /* clear other bits */ Loading Loading @@ -353,7 +353,7 @@ static inline void dwc3_msm_write_reg(void __iomem *base, u32 offset, u32 val) static inline void dwc3_msm_write_reg_field(void __iomem *base, u32 offset, const u32 mask, u32 val) { u32 shift = find_first_bit((void *)&mask, 32); u32 shift = __ffs(mask); u32 tmp = ioread32(base + offset); tmp &= ~mask; /* clear written bits */ Loading Loading
drivers/usb/dwc3/dbm.c +2 −2 Original line number Diff line number Diff line /* * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. * Copyright (c) 2012-2015, 2017 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -129,7 +129,7 @@ static inline void msm_dbm_write_ep_reg_field(struct dbm *dbm, enum dbm_reg reg, int ep, const u32 mask, u32 val) { u32 shift = find_first_bit((void *)&mask, 32); u32 shift = __ffs(mask); u32 offset = dbm->reg_table[reg].offset + (dbm->reg_table[reg].ep_mult * ep); u32 tmp = ioread32(dbm->base + offset); Loading
drivers/usb/dwc3/dwc3-msm.c +2 −2 Original line number Diff line number Diff line Loading @@ -319,7 +319,7 @@ static inline u32 dwc3_msm_read_reg_field(void __iomem *base, u32 offset, const u32 mask) { u32 shift = ffs(mask); u32 shift = __ffs(mask); u32 val = ioread32(base + offset); val &= mask; /* clear other bits */ Loading Loading @@ -353,7 +353,7 @@ static inline void dwc3_msm_write_reg(void __iomem *base, u32 offset, u32 val) static inline void dwc3_msm_write_reg_field(void __iomem *base, u32 offset, const u32 mask, u32 val) { u32 shift = find_first_bit((void *)&mask, 32); u32 shift = __ffs(mask); u32 tmp = ioread32(base + offset); tmp &= ~mask; /* clear written bits */ Loading