diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-ixp4xx/include/mach/qmgr.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/arch/arm/mach-ixp4xx/include/mach/qmgr.h b/arch/arm/mach-ixp4xx/include/mach/qmgr.h index 32077e11f17a..9e7cad2d54cb 100644 --- a/arch/arm/mach-ixp4xx/include/mach/qmgr.h +++ b/arch/arm/mach-ixp4xx/include/mach/qmgr.h | |||
@@ -138,12 +138,12 @@ static inline int qmgr_stat_empty(unsigned int queue) | |||
138 | } | 138 | } |
139 | 139 | ||
140 | /** | 140 | /** |
141 | * qmgr_stat_empty() - checks if a hardware queue is nearly empty | 141 | * qmgr_stat_below_low_watermark() - checks if a queue is below low watermark |
142 | * @queue: queue number | 142 | * @queue: queue number |
143 | * | 143 | * |
144 | * Returns non-zero value if the queue is nearly or completely empty. | 144 | * Returns non-zero value if the queue is below low watermark. |
145 | */ | 145 | */ |
146 | static inline int qmgr_stat_nearly_empty(unsigned int queue) | 146 | static inline int qmgr_stat_below_low_watermark(unsigned int queue) |
147 | { | 147 | { |
148 | extern struct qmgr_regs __iomem *qmgr_regs; | 148 | extern struct qmgr_regs __iomem *qmgr_regs; |
149 | if (queue >= HALF_QUEUES) | 149 | if (queue >= HALF_QUEUES) |
@@ -153,19 +153,19 @@ static inline int qmgr_stat_nearly_empty(unsigned int queue) | |||
153 | } | 153 | } |
154 | 154 | ||
155 | /** | 155 | /** |
156 | * qmgr_stat_empty() - checks if a hardware queue is nearly full | 156 | * qmgr_stat_above_high_watermark() - checks if a queue is above high watermark |
157 | * @queue: queue number | 157 | * @queue: queue number |
158 | * | 158 | * |
159 | * Returns non-zero value if the queue is nearly or completely full. | 159 | * Returns non-zero value if the queue is above high watermark |
160 | */ | 160 | */ |
161 | static inline int qmgr_stat_nearly_full(unsigned int queue) | 161 | static inline int qmgr_stat_above_high_watermark(unsigned int queue) |
162 | { | 162 | { |
163 | BUG_ON(queue >= HALF_QUEUES); | 163 | BUG_ON(queue >= HALF_QUEUES); |
164 | return __qmgr_get_stat1(queue) & QUEUE_STAT1_NEARLY_FULL; | 164 | return __qmgr_get_stat1(queue) & QUEUE_STAT1_NEARLY_FULL; |
165 | } | 165 | } |
166 | 166 | ||
167 | /** | 167 | /** |
168 | * qmgr_stat_empty() - checks if a hardware queue is full | 168 | * qmgr_stat_full() - checks if a hardware queue is full |
169 | * @queue: queue number | 169 | * @queue: queue number |
170 | * | 170 | * |
171 | * Returns non-zero value if the queue is full. | 171 | * Returns non-zero value if the queue is full. |
@@ -180,10 +180,10 @@ static inline int qmgr_stat_full(unsigned int queue) | |||
180 | } | 180 | } |
181 | 181 | ||
182 | /** | 182 | /** |
183 | * qmgr_stat_empty() - checks if a hardware queue experienced underflow | 183 | * qmgr_stat_underflow() - checks if a hardware queue experienced underflow |
184 | * @queue: queue number | 184 | * @queue: queue number |
185 | * | 185 | * |
186 | * Returns non-zero value if empty. | 186 | * Returns non-zero value if the queue experienced underflow. |
187 | */ | 187 | */ |
188 | static inline int qmgr_stat_underflow(unsigned int queue) | 188 | static inline int qmgr_stat_underflow(unsigned int queue) |
189 | { | 189 | { |
@@ -191,10 +191,10 @@ static inline int qmgr_stat_underflow(unsigned int queue) | |||
191 | } | 191 | } |
192 | 192 | ||
193 | /** | 193 | /** |
194 | * qmgr_stat_empty() - checks if a hardware queue experienced overflow | 194 | * qmgr_stat_overflow() - checks if a hardware queue experienced overflow |
195 | * @queue: queue number | 195 | * @queue: queue number |
196 | * | 196 | * |
197 | * Returns non-zero value if empty. | 197 | * Returns non-zero value if the queue experienced overflow. |
198 | */ | 198 | */ |
199 | static inline int qmgr_stat_overflow(unsigned int queue) | 199 | static inline int qmgr_stat_overflow(unsigned int queue) |
200 | { | 200 | { |