Skip to content

Commit 859a33f

Browse files
author
Josuah Demangeon
committed
use same prefix everywhere
Some functions, possibly imported from the original driver, did not have the uhc_dwc2_ prefix, so add it o all
1 parent 2eff11d commit 859a33f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/usb/uhc/uhc_dwc2.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ static inline uint16_t calc_packet_count(const uint16_t size, const uint8_t mps)
865865
}
866866
}
867867

868-
static inline bool _buffer_is_done(struct uhc_dwc2_chan *chan)
868+
static inline bool uhc_dwc2_buffer_is_done(struct uhc_dwc2_chan *chan)
869869
{
870870
/* Only control transfers need to be continued */
871871
if (chan->type != UHC_DWC2_XFER_TYPE_CTRL) {
@@ -875,7 +875,7 @@ static inline bool _buffer_is_done(struct uhc_dwc2_chan *chan)
875875
return (chan->cur_stg == 2);
876876
}
877877

878-
static inline void _buffer_fill_ctrl(struct uhc_dwc2_chan *chan, struct uhc_transfer *const xfer)
878+
static inline void uhc_dwc2_buffer_fill_ctrl(struct uhc_dwc2_chan *chan, struct uhc_transfer *const xfer)
879879
{
880880
/* Get information about the control transfer by analyzing the setup packet */
881881
const struct usb_setup_packet *setup_pkt = (const struct usb_setup_packet *)xfer->setup_pkt;
@@ -909,7 +909,7 @@ static inline enum uhc_dwc2_ctrl_stage cal_next_pid(enum uhc_dwc2_ctrl_stage pid
909909
}
910910
}
911911

912-
static void IRAM_ATTR _buffer_exec_proceed(const struct device *dev, struct uhc_dwc2_chan *chan)
912+
static void uhc_dwc2_buffer_exec_proceed(const struct device *dev, struct uhc_dwc2_chan *chan)
913913
{
914914
const struct uhc_dwc2_config *const config = dev->config;
915915
struct usb_dwc2_reg *const dwc2 = config->base;
@@ -1010,8 +1010,8 @@ static void uhc_dwc2_handle_chan_intr(const struct device *dev, struct uhc_dwc2_
10101010
/* No event, nothing to do */
10111011
break;
10121012
case DWC2_CHAN_EVENT_CPLT:
1013-
if (!_buffer_is_done(chan)) {
1014-
_buffer_exec_proceed(dev, chan);
1013+
if (!uhc_dwc2_buffer_is_done(chan)) {
1014+
uhc_dwc2_buffer_exec_proceed(dev, chan);
10151015
break;
10161016
}
10171017
chan->last_event = chan_event;
@@ -1039,7 +1039,7 @@ static void uhc_dwc2_handle_chan_intr(const struct device *dev, struct uhc_dwc2_
10391039
}
10401040
}
10411041

1042-
static IRAM_ATTR void _buffer_exec(const struct device *dev, struct uhc_dwc2_chan *chan)
1042+
static void uhc_dwc2_buffer_exec(const struct device *dev, struct uhc_dwc2_chan *chan)
10431043
{
10441044
const struct uhc_dwc2_config *const config = dev->config;
10451045
struct usb_dwc2_reg *const dwc2 = config->base;
@@ -1584,8 +1584,8 @@ static inline int uhc_dwc2_submit_ctrl_xfer(const struct device *dev, struct uhc
15841584

15851585
key = irq_lock();
15861586

1587-
_buffer_fill_ctrl(chan, xfer);
1588-
_buffer_exec(dev, chan);
1587+
uhc_dwc2_buffer_fill_ctrl(chan, xfer);
1588+
uhc_dwc2_buffer_exec(dev, chan);
15891589

15901590
irq_unlock(key);
15911591

0 commit comments

Comments
 (0)