|
@@ -143,19 +143,19 @@ struct CE_attr;
|
|
|
* nbytes - number of bytes to send
|
|
|
* transfer_id - arbitrary ID; reflected to destination
|
|
|
* flags - CE_SEND_FLAG_* values
|
|
|
- * Returns 0 on success; otherwise an error status.
|
|
|
+ * Returns QDF_STATUS.
|
|
|
*
|
|
|
* Note: If no flags are specified, use CE's default data swap mode.
|
|
|
*
|
|
|
* Implementation note: pushes 1 buffer to Source ring
|
|
|
*/
|
|
|
-int ce_send(struct CE_handle *copyeng,
|
|
|
- void *per_transfer_send_context,
|
|
|
- qdf_dma_addr_t buffer,
|
|
|
- unsigned int nbytes,
|
|
|
- unsigned int transfer_id,
|
|
|
- unsigned int flags,
|
|
|
- unsigned int user_flags);
|
|
|
+QDF_STATUS ce_send(struct CE_handle *copyeng,
|
|
|
+ void *per_transfer_send_context,
|
|
|
+ qdf_dma_addr_t buffer,
|
|
|
+ unsigned int nbytes,
|
|
|
+ unsigned int transfer_id,
|
|
|
+ unsigned int flags,
|
|
|
+ unsigned int user_flags);
|
|
|
|
|
|
#ifdef WLAN_FEATURE_FASTPATH
|
|
|
int ce_send_fast(struct CE_handle *copyeng, qdf_nbuf_t msdu,
|
|
@@ -194,28 +194,39 @@ unsigned int ce_sendlist_sizeof(void);
|
|
|
/* Initialize a sendlist */
|
|
|
void ce_sendlist_init(struct ce_sendlist *sendlist);
|
|
|
|
|
|
-/* Append a simple buffer (address/length) to a sendlist. */
|
|
|
-int ce_sendlist_buf_add(struct ce_sendlist *sendlist,
|
|
|
- qdf_dma_addr_t buffer,
|
|
|
- unsigned int nbytes,
|
|
|
- /* OR-ed with internal flags */
|
|
|
- uint32_t flags,
|
|
|
- uint32_t user_flags);
|
|
|
+/**
|
|
|
+ * ce_sendlist_buf_add() - Append a simple buffer (address/length) to a sendlist
|
|
|
+ * @sendlist: Sendlist
|
|
|
+ * @buffer: buffer
|
|
|
+ * @nbytes: numer of bytes to append
|
|
|
+ * @flags: flags
|
|
|
+ * @user_flags: user flags
|
|
|
+ *
|
|
|
+ * Return: QDF_STATUS
|
|
|
+ */
|
|
|
+QDF_STATUS ce_sendlist_buf_add(struct ce_sendlist *sendlist,
|
|
|
+ qdf_dma_addr_t buffer,
|
|
|
+ unsigned int nbytes,
|
|
|
+ /* OR-ed with internal flags */
|
|
|
+ uint32_t flags,
|
|
|
+ uint32_t user_flags);
|
|
|
|
|
|
/*
|
|
|
- * Queue a "sendlist" of buffers to be sent using gather to a single
|
|
|
- * anonymous destination buffer
|
|
|
- * copyeng - which copy engine to use
|
|
|
- * sendlist - list of simple buffers to send using gather
|
|
|
- * transfer_id - arbitrary ID; reflected to destination
|
|
|
- * Returns 0 on success; otherwise an error status.
|
|
|
+ * ce_sendlist_send() - Queue a "sendlist" of buffers to be sent using gather to
|
|
|
+ * a single anonymous destination buffer
|
|
|
+ * @copyeng: which copy engine to use
|
|
|
+ * @per_transfer_send_context: Per transfer send context
|
|
|
+ * @sendlist: list of simple buffers to send using gather
|
|
|
+ * @transfer_id: arbitrary ID; reflected to destination
|
|
|
*
|
|
|
* Implementation note: Pushes multiple buffers with Gather to Source ring.
|
|
|
+ *
|
|
|
+ * Return: QDF_STATUS
|
|
|
*/
|
|
|
-int ce_sendlist_send(struct CE_handle *copyeng,
|
|
|
- void *per_transfer_send_context,
|
|
|
- struct ce_sendlist *sendlist,
|
|
|
- unsigned int transfer_id);
|
|
|
+QDF_STATUS ce_sendlist_send(struct CE_handle *copyeng,
|
|
|
+ void *per_transfer_send_context,
|
|
|
+ struct ce_sendlist *sendlist,
|
|
|
+ unsigned int transfer_id);
|
|
|
|
|
|
/*==================Recv=====================================================*/
|
|
|
|
|
@@ -499,16 +510,17 @@ struct ce_ops {
|
|
|
int (*ce_ring_setup)(struct hif_softc *scn, uint8_t ring_type,
|
|
|
uint32_t ce_id, struct CE_ring_state *ring,
|
|
|
struct CE_attr *attr);
|
|
|
- int (*ce_send_nolock)(struct CE_handle *copyeng,
|
|
|
- void *per_transfer_context,
|
|
|
- qdf_dma_addr_t buffer,
|
|
|
- uint32_t nbytes,
|
|
|
- uint32_t transfer_id,
|
|
|
- uint32_t flags,
|
|
|
- uint32_t user_flags);
|
|
|
- int (*ce_sendlist_send)(struct CE_handle *copyeng,
|
|
|
- void *per_transfer_context,
|
|
|
- struct ce_sendlist *sendlist, unsigned int transfer_id);
|
|
|
+ QDF_STATUS (*ce_send_nolock)(struct CE_handle *copyeng,
|
|
|
+ void *per_transfer_context,
|
|
|
+ qdf_dma_addr_t buffer,
|
|
|
+ uint32_t nbytes,
|
|
|
+ uint32_t transfer_id,
|
|
|
+ uint32_t flags,
|
|
|
+ uint32_t user_flags);
|
|
|
+ QDF_STATUS (*ce_sendlist_send)(struct CE_handle *copyeng,
|
|
|
+ void *per_transfer_context,
|
|
|
+ struct ce_sendlist *sendlist,
|
|
|
+ unsigned int transfer_id);
|
|
|
QDF_STATUS (*ce_revoke_recv_next)(struct CE_handle *copyeng,
|
|
|
void **per_CE_contextp,
|
|
|
void **per_transfer_contextp,
|