| .. | .. |
|---|
| 1283 | 1283 | * |
|---|
| 1284 | 1284 | * Returns WQE pointer |
|---|
| 1285 | 1285 | */ |
|---|
| 1286 | | -static inline cvmx_wqe_t *cvmx_pow_get_current_wqp(void) |
|---|
| 1286 | +static inline struct cvmx_wqe *cvmx_pow_get_current_wqp(void) |
|---|
| 1287 | 1287 | { |
|---|
| 1288 | 1288 | cvmx_pow_load_addr_t load_addr; |
|---|
| 1289 | 1289 | cvmx_pow_tag_load_resp_t load_resp; |
|---|
| .. | .. |
|---|
| 1296 | 1296 | load_addr.sstatus.get_cur = 1; |
|---|
| 1297 | 1297 | load_addr.sstatus.get_wqp = 1; |
|---|
| 1298 | 1298 | 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); |
|---|
| 1300 | 1300 | } |
|---|
| 1301 | 1301 | |
|---|
| 1302 | 1302 | #ifndef CVMX_MF_CHORD |
|---|
| .. | .. |
|---|
| 1345 | 1345 | * @wait: When set, call stalls until work becomes avaiable, or times out. |
|---|
| 1346 | 1346 | * If not set, returns immediately. |
|---|
| 1347 | 1347 | * |
|---|
| 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 |
|---|
| 1349 | 1349 | * was available. |
|---|
| 1350 | 1350 | */ |
|---|
| 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 |
|---|
| 1352 | 1352 | wait) |
|---|
| 1353 | 1353 | { |
|---|
| 1354 | 1354 | cvmx_pow_load_addr_t ptr; |
|---|
| .. | .. |
|---|
| 1368 | 1368 | if (result.s_work.no_work) |
|---|
| 1369 | 1369 | return NULL; |
|---|
| 1370 | 1370 | 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); |
|---|
| 1372 | 1372 | } |
|---|
| 1373 | 1373 | |
|---|
| 1374 | 1374 | /** |
|---|
| .. | .. |
|---|
| 1379 | 1379 | * @wait: When set, call stalls until work becomes avaiable, or times out. |
|---|
| 1380 | 1380 | * If not set, returns immediately. |
|---|
| 1381 | 1381 | * |
|---|
| 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 |
|---|
| 1383 | 1383 | * was available. |
|---|
| 1384 | 1384 | */ |
|---|
| 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) |
|---|
| 1386 | 1386 | { |
|---|
| 1387 | 1387 | if (CVMX_ENABLE_POW_CHECKS) |
|---|
| 1388 | 1388 | __cvmx_pow_warn_if_pending_switch(__func__); |
|---|
| .. | .. |
|---|
| 1398 | 1398 | * This function waits for any previous tag switch to complete before |
|---|
| 1399 | 1399 | * requesting the null_rd. |
|---|
| 1400 | 1400 | * |
|---|
| 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. |
|---|
| 1402 | 1402 | */ |
|---|
| 1403 | 1403 | static inline enum cvmx_pow_tag_type cvmx_pow_work_request_null_rd(void) |
|---|
| 1404 | 1404 | { |
|---|
| .. | .. |
|---|
| 1482 | 1482 | * @scr_addr: Scratch memory address to get result from Byte address, |
|---|
| 1483 | 1483 | * must be 8 byte aligned. |
|---|
| 1484 | 1484 | * |
|---|
| 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 |
|---|
| 1486 | 1486 | * work was available. |
|---|
| 1487 | 1487 | */ |
|---|
| 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) |
|---|
| 1489 | 1489 | { |
|---|
| 1490 | 1490 | cvmx_pow_tag_load_resp_t result; |
|---|
| 1491 | 1491 | |
|---|
| .. | .. |
|---|
| 1495 | 1495 | if (result.s_work.no_work) |
|---|
| 1496 | 1496 | return NULL; |
|---|
| 1497 | 1497 | 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); |
|---|
| 1499 | 1499 | } |
|---|
| 1500 | 1500 | |
|---|
| 1501 | 1501 | /** |
|---|
| .. | .. |
|---|
| 1508 | 1508 | * Returns 0 if pointer is valid |
|---|
| 1509 | 1509 | * 1 if invalid (no work was returned) |
|---|
| 1510 | 1510 | */ |
|---|
| 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) |
|---|
| 1512 | 1512 | { |
|---|
| 1513 | 1513 | return wqe_ptr == NULL; |
|---|
| 1514 | 1514 | } |
|---|
| .. | .. |
|---|
| 1638 | 1638 | * @tag_type: type of tag |
|---|
| 1639 | 1639 | * @group: group value for the work queue entry. |
|---|
| 1640 | 1640 | */ |
|---|
| 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, |
|---|
| 1642 | 1642 | enum cvmx_pow_tag_type tag_type, |
|---|
| 1643 | 1643 | uint64_t group) |
|---|
| 1644 | 1644 | { |
|---|
| .. | .. |
|---|
| 1712 | 1712 | * @tag_type: type of tag |
|---|
| 1713 | 1713 | * @group: group value for the work queue entry. |
|---|
| 1714 | 1714 | */ |
|---|
| 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, |
|---|
| 1716 | 1716 | enum cvmx_pow_tag_type tag_type, |
|---|
| 1717 | 1717 | uint64_t group) |
|---|
| 1718 | 1718 | { |
|---|
| .. | .. |
|---|
| 1803 | 1803 | * @qos: Input queue to add to. |
|---|
| 1804 | 1804 | * @grp: group value for the work queue entry. |
|---|
| 1805 | 1805 | */ |
|---|
| 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, |
|---|
| 1807 | 1807 | enum cvmx_pow_tag_type tag_type, |
|---|
| 1808 | 1808 | uint64_t qos, uint64_t grp) |
|---|
| 1809 | 1809 | { |
|---|