hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/mips/include/asm/octeon/cvmx-pow.h
....@@ -1283,7 +1283,7 @@
12831283 *
12841284 * Returns WQE pointer
12851285 */
1286
-static inline cvmx_wqe_t *cvmx_pow_get_current_wqp(void)
1286
+static inline struct cvmx_wqe *cvmx_pow_get_current_wqp(void)
12871287 {
12881288 cvmx_pow_load_addr_t load_addr;
12891289 cvmx_pow_tag_load_resp_t load_resp;
....@@ -1296,7 +1296,7 @@
12961296 load_addr.sstatus.get_cur = 1;
12971297 load_addr.sstatus.get_wqp = 1;
12981298 load_resp.u64 = cvmx_read_csr(load_addr.u64);
1299
- return (cvmx_wqe_t *) cvmx_phys_to_ptr(load_resp.s_sstatus4.wqp);
1299
+ return (struct cvmx_wqe *) cvmx_phys_to_ptr(load_resp.s_sstatus4.wqp);
13001300 }
13011301
13021302 #ifndef CVMX_MF_CHORD
....@@ -1345,10 +1345,10 @@
13451345 * @wait: When set, call stalls until work becomes avaiable, or times out.
13461346 * If not set, returns immediately.
13471347 *
1348
- * Returns Returns the WQE pointer from POW. Returns NULL if no work
1348
+ * Returns: the WQE pointer from POW. Returns NULL if no work
13491349 * was available.
13501350 */
1351
-static inline cvmx_wqe_t *cvmx_pow_work_request_sync_nocheck(cvmx_pow_wait_t
1351
+static inline struct cvmx_wqe *cvmx_pow_work_request_sync_nocheck(cvmx_pow_wait_t
13521352 wait)
13531353 {
13541354 cvmx_pow_load_addr_t ptr;
....@@ -1368,7 +1368,7 @@
13681368 if (result.s_work.no_work)
13691369 return NULL;
13701370 else
1371
- return (cvmx_wqe_t *) cvmx_phys_to_ptr(result.s_work.addr);
1371
+ return (struct cvmx_wqe *) cvmx_phys_to_ptr(result.s_work.addr);
13721372 }
13731373
13741374 /**
....@@ -1379,10 +1379,10 @@
13791379 * @wait: When set, call stalls until work becomes avaiable, or times out.
13801380 * If not set, returns immediately.
13811381 *
1382
- * Returns Returns the WQE pointer from POW. Returns NULL if no work
1382
+ * Returns: the WQE pointer from POW. Returns NULL if no work
13831383 * was available.
13841384 */
1385
-static inline cvmx_wqe_t *cvmx_pow_work_request_sync(cvmx_pow_wait_t wait)
1385
+static inline struct cvmx_wqe *cvmx_pow_work_request_sync(cvmx_pow_wait_t wait)
13861386 {
13871387 if (CVMX_ENABLE_POW_CHECKS)
13881388 __cvmx_pow_warn_if_pending_switch(__func__);
....@@ -1398,7 +1398,7 @@
13981398 * This function waits for any previous tag switch to complete before
13991399 * requesting the null_rd.
14001400 *
1401
- * Returns Returns the POW state of type cvmx_pow_tag_type_t.
1401
+ * Returns: the POW state of type cvmx_pow_tag_type_t.
14021402 */
14031403 static inline enum cvmx_pow_tag_type cvmx_pow_work_request_null_rd(void)
14041404 {
....@@ -1482,10 +1482,10 @@
14821482 * @scr_addr: Scratch memory address to get result from Byte address,
14831483 * must be 8 byte aligned.
14841484 *
1485
- * Returns Returns the WQE from the scratch register, or NULL if no
1485
+ * Returns: the WQE from the scratch register, or NULL if no
14861486 * work was available.
14871487 */
1488
-static inline cvmx_wqe_t *cvmx_pow_work_response_async(int scr_addr)
1488
+static inline struct cvmx_wqe *cvmx_pow_work_response_async(int scr_addr)
14891489 {
14901490 cvmx_pow_tag_load_resp_t result;
14911491
....@@ -1495,7 +1495,7 @@
14951495 if (result.s_work.no_work)
14961496 return NULL;
14971497 else
1498
- return (cvmx_wqe_t *) cvmx_phys_to_ptr(result.s_work.addr);
1498
+ return (struct cvmx_wqe *) cvmx_phys_to_ptr(result.s_work.addr);
14991499 }
15001500
15011501 /**
....@@ -1508,7 +1508,7 @@
15081508 * Returns 0 if pointer is valid
15091509 * 1 if invalid (no work was returned)
15101510 */
1511
-static inline uint64_t cvmx_pow_work_invalid(cvmx_wqe_t *wqe_ptr)
1511
+static inline uint64_t cvmx_pow_work_invalid(struct cvmx_wqe *wqe_ptr)
15121512 {
15131513 return wqe_ptr == NULL;
15141514 }
....@@ -1638,7 +1638,7 @@
16381638 * @tag_type: type of tag
16391639 * @group: group value for the work queue entry.
16401640 */
1641
-static inline void cvmx_pow_tag_sw_full_nocheck(cvmx_wqe_t *wqp, uint32_t tag,
1641
+static inline void cvmx_pow_tag_sw_full_nocheck(struct cvmx_wqe *wqp, uint32_t tag,
16421642 enum cvmx_pow_tag_type tag_type,
16431643 uint64_t group)
16441644 {
....@@ -1712,7 +1712,7 @@
17121712 * @tag_type: type of tag
17131713 * @group: group value for the work queue entry.
17141714 */
1715
-static inline void cvmx_pow_tag_sw_full(cvmx_wqe_t *wqp, uint32_t tag,
1715
+static inline void cvmx_pow_tag_sw_full(struct cvmx_wqe *wqp, uint32_t tag,
17161716 enum cvmx_pow_tag_type tag_type,
17171717 uint64_t group)
17181718 {
....@@ -1803,7 +1803,7 @@
18031803 * @qos: Input queue to add to.
18041804 * @grp: group value for the work queue entry.
18051805 */
1806
-static inline void cvmx_pow_work_submit(cvmx_wqe_t *wqp, uint32_t tag,
1806
+static inline void cvmx_pow_work_submit(struct cvmx_wqe *wqp, uint32_t tag,
18071807 enum cvmx_pow_tag_type tag_type,
18081808 uint64_t qos, uint64_t grp)
18091809 {