Commit 87263e5b authored by Michal Kazior's avatar Michal Kazior Committed by Kalle Valo

ath10k: rename hif_ce_pipe_info to ath10k_pci_pipe

The new naming makes more sense.
Signed-off-by: default avatarMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 6702bad4
...@@ -48,9 +48,9 @@ static int ath10k_pci_diag_read_access(struct ath10k *ar, u32 address, ...@@ -48,9 +48,9 @@ static int ath10k_pci_diag_read_access(struct ath10k *ar, u32 address,
static void ath10k_pci_process_ce(struct ath10k *ar); static void ath10k_pci_process_ce(struct ath10k *ar);
static int ath10k_pci_post_rx(struct ath10k *ar); static int ath10k_pci_post_rx(struct ath10k *ar);
static int ath10k_pci_post_rx_pipe(struct hif_ce_pipe_info *pipe_info, static int ath10k_pci_post_rx_pipe(struct ath10k_pci_pipe *pipe_info,
int num); int num);
static void ath10k_pci_rx_pipe_cleanup(struct hif_ce_pipe_info *pipe_info); static void ath10k_pci_rx_pipe_cleanup(struct ath10k_pci_pipe *pipe_info);
static void ath10k_pci_stop_ce(struct ath10k *ar); static void ath10k_pci_stop_ce(struct ath10k *ar);
static void ath10k_pci_device_reset(struct ath10k *ar); static void ath10k_pci_device_reset(struct ath10k *ar);
static int ath10k_pci_reset_target(struct ath10k *ar); static int ath10k_pci_reset_target(struct ath10k *ar);
...@@ -491,7 +491,7 @@ void ath10k_do_pci_sleep(struct ath10k *ar) ...@@ -491,7 +491,7 @@ void ath10k_do_pci_sleep(struct ath10k *ar)
* FIXME: Handle OOM properly. * FIXME: Handle OOM properly.
*/ */
static inline static inline
struct ath10k_pci_compl *get_free_compl(struct hif_ce_pipe_info *pipe_info) struct ath10k_pci_compl *get_free_compl(struct ath10k_pci_pipe *pipe_info)
{ {
struct ath10k_pci_compl *compl = NULL; struct ath10k_pci_compl *compl = NULL;
...@@ -517,7 +517,7 @@ static void ath10k_pci_ce_send_done(struct ce_state *ce_state, ...@@ -517,7 +517,7 @@ static void ath10k_pci_ce_send_done(struct ce_state *ce_state,
{ {
struct ath10k *ar = ce_state->ar; struct ath10k *ar = ce_state->ar;
struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); struct ath10k_pci *ar_pci = ath10k_pci_priv(ar);
struct hif_ce_pipe_info *pipe_info = &ar_pci->pipe_info[ce_state->id]; struct ath10k_pci_pipe *pipe_info = &ar_pci->pipe_info[ce_state->id];
struct ath10k_pci_compl *compl; struct ath10k_pci_compl *compl;
bool process = false; bool process = false;
...@@ -579,7 +579,7 @@ static void ath10k_pci_ce_recv_data(struct ce_state *ce_state, ...@@ -579,7 +579,7 @@ static void ath10k_pci_ce_recv_data(struct ce_state *ce_state,
{ {
struct ath10k *ar = ce_state->ar; struct ath10k *ar = ce_state->ar;
struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); struct ath10k_pci *ar_pci = ath10k_pci_priv(ar);
struct hif_ce_pipe_info *pipe_info = &ar_pci->pipe_info[ce_state->id]; struct ath10k_pci_pipe *pipe_info = &ar_pci->pipe_info[ce_state->id];
struct ath10k_pci_compl *compl; struct ath10k_pci_compl *compl;
struct sk_buff *skb; struct sk_buff *skb;
...@@ -623,7 +623,7 @@ static int ath10k_pci_hif_send_head(struct ath10k *ar, u8 pipe_id, ...@@ -623,7 +623,7 @@ static int ath10k_pci_hif_send_head(struct ath10k *ar, u8 pipe_id,
{ {
struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(nbuf); struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(nbuf);
struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); struct ath10k_pci *ar_pci = ath10k_pci_priv(ar);
struct hif_ce_pipe_info *pipe_info = &(ar_pci->pipe_info[pipe_id]); struct ath10k_pci_pipe *pipe_info = &(ar_pci->pipe_info[pipe_id]);
struct ce_state *ce_hdl = pipe_info->ce_hdl; struct ce_state *ce_hdl = pipe_info->ce_hdl;
struct ce_sendlist sendlist; struct ce_sendlist sendlist;
unsigned int len; unsigned int len;
...@@ -668,7 +668,7 @@ static int ath10k_pci_hif_send_head(struct ath10k *ar, u8 pipe_id, ...@@ -668,7 +668,7 @@ static int ath10k_pci_hif_send_head(struct ath10k *ar, u8 pipe_id,
static u16 ath10k_pci_hif_get_free_queue_number(struct ath10k *ar, u8 pipe) static u16 ath10k_pci_hif_get_free_queue_number(struct ath10k *ar, u8 pipe)
{ {
struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); struct ath10k_pci *ar_pci = ath10k_pci_priv(ar);
struct hif_ce_pipe_info *pipe_info = &(ar_pci->pipe_info[pipe]); struct ath10k_pci_pipe *pipe_info = &(ar_pci->pipe_info[pipe]);
int ret; int ret;
spin_lock_bh(&pipe_info->pipe_lock); spin_lock_bh(&pipe_info->pipe_lock);
...@@ -764,7 +764,7 @@ static int ath10k_pci_start_ce(struct ath10k *ar) ...@@ -764,7 +764,7 @@ static int ath10k_pci_start_ce(struct ath10k *ar)
struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); struct ath10k_pci *ar_pci = ath10k_pci_priv(ar);
struct ce_state *ce_diag = ar_pci->ce_diag; struct ce_state *ce_diag = ar_pci->ce_diag;
const struct ce_attr *attr; const struct ce_attr *attr;
struct hif_ce_pipe_info *pipe_info; struct ath10k_pci_pipe *pipe_info;
struct ath10k_pci_compl *compl; struct ath10k_pci_compl *compl;
int i, pipe_num, completions, disable_interrupts; int i, pipe_num, completions, disable_interrupts;
...@@ -847,7 +847,7 @@ static void ath10k_pci_cleanup_ce(struct ath10k *ar) ...@@ -847,7 +847,7 @@ static void ath10k_pci_cleanup_ce(struct ath10k *ar)
{ {
struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); struct ath10k_pci *ar_pci = ath10k_pci_priv(ar);
struct ath10k_pci_compl *compl, *tmp; struct ath10k_pci_compl *compl, *tmp;
struct hif_ce_pipe_info *pipe_info; struct ath10k_pci_pipe *pipe_info;
struct sk_buff *netbuf; struct sk_buff *netbuf;
int pipe_num; int pipe_num;
...@@ -1044,7 +1044,7 @@ static void ath10k_pci_hif_get_default_pipe(struct ath10k *ar, ...@@ -1044,7 +1044,7 @@ static void ath10k_pci_hif_get_default_pipe(struct ath10k *ar,
&dl_is_polled); &dl_is_polled);
} }
static int ath10k_pci_post_rx_pipe(struct hif_ce_pipe_info *pipe_info, static int ath10k_pci_post_rx_pipe(struct ath10k_pci_pipe *pipe_info,
int num) int num)
{ {
struct ath10k *ar = pipe_info->hif_ce_state; struct ath10k *ar = pipe_info->hif_ce_state;
...@@ -1104,7 +1104,7 @@ static int ath10k_pci_post_rx_pipe(struct hif_ce_pipe_info *pipe_info, ...@@ -1104,7 +1104,7 @@ static int ath10k_pci_post_rx_pipe(struct hif_ce_pipe_info *pipe_info,
static int ath10k_pci_post_rx(struct ath10k *ar) static int ath10k_pci_post_rx(struct ath10k *ar)
{ {
struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); struct ath10k_pci *ar_pci = ath10k_pci_priv(ar);
struct hif_ce_pipe_info *pipe_info; struct ath10k_pci_pipe *pipe_info;
const struct ce_attr *attr; const struct ce_attr *attr;
int pipe_num, ret = 0; int pipe_num, ret = 0;
...@@ -1154,7 +1154,7 @@ static int ath10k_pci_hif_start(struct ath10k *ar) ...@@ -1154,7 +1154,7 @@ static int ath10k_pci_hif_start(struct ath10k *ar)
return 0; return 0;
} }
static void ath10k_pci_rx_pipe_cleanup(struct hif_ce_pipe_info *pipe_info) static void ath10k_pci_rx_pipe_cleanup(struct ath10k_pci_pipe *pipe_info)
{ {
struct ath10k *ar; struct ath10k *ar;
struct ath10k_pci *ar_pci; struct ath10k_pci *ar_pci;
...@@ -1186,7 +1186,7 @@ static void ath10k_pci_rx_pipe_cleanup(struct hif_ce_pipe_info *pipe_info) ...@@ -1186,7 +1186,7 @@ static void ath10k_pci_rx_pipe_cleanup(struct hif_ce_pipe_info *pipe_info)
} }
} }
static void ath10k_pci_tx_pipe_cleanup(struct hif_ce_pipe_info *pipe_info) static void ath10k_pci_tx_pipe_cleanup(struct ath10k_pci_pipe *pipe_info)
{ {
struct ath10k *ar; struct ath10k *ar;
struct ath10k_pci *ar_pci; struct ath10k_pci *ar_pci;
...@@ -1239,7 +1239,7 @@ static void ath10k_pci_buffer_cleanup(struct ath10k *ar) ...@@ -1239,7 +1239,7 @@ static void ath10k_pci_buffer_cleanup(struct ath10k *ar)
int pipe_num; int pipe_num;
for (pipe_num = 0; pipe_num < ar_pci->ce_count; pipe_num++) { for (pipe_num = 0; pipe_num < ar_pci->ce_count; pipe_num++) {
struct hif_ce_pipe_info *pipe_info; struct ath10k_pci_pipe *pipe_info;
pipe_info = &ar_pci->pipe_info[pipe_num]; pipe_info = &ar_pci->pipe_info[pipe_num];
ath10k_pci_rx_pipe_cleanup(pipe_info); ath10k_pci_rx_pipe_cleanup(pipe_info);
...@@ -1250,7 +1250,7 @@ static void ath10k_pci_buffer_cleanup(struct ath10k *ar) ...@@ -1250,7 +1250,7 @@ static void ath10k_pci_buffer_cleanup(struct ath10k *ar)
static void ath10k_pci_ce_deinit(struct ath10k *ar) static void ath10k_pci_ce_deinit(struct ath10k *ar)
{ {
struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); struct ath10k_pci *ar_pci = ath10k_pci_priv(ar);
struct hif_ce_pipe_info *pipe_info; struct ath10k_pci_pipe *pipe_info;
int pipe_num; int pipe_num;
for (pipe_num = 0; pipe_num < ar_pci->ce_count; pipe_num++) { for (pipe_num = 0; pipe_num < ar_pci->ce_count; pipe_num++) {
...@@ -1686,7 +1686,7 @@ static int ath10k_pci_init_config(struct ath10k *ar) ...@@ -1686,7 +1686,7 @@ static int ath10k_pci_init_config(struct ath10k *ar)
static int ath10k_pci_ce_init(struct ath10k *ar) static int ath10k_pci_ce_init(struct ath10k *ar)
{ {
struct ath10k_pci *ar_pci = ath10k_pci_priv(ar); struct ath10k_pci *ar_pci = ath10k_pci_priv(ar);
struct hif_ce_pipe_info *pipe_info; struct ath10k_pci_pipe *pipe_info;
const struct ce_attr *attr; const struct ce_attr *attr;
int pipe_num; int pipe_num;
...@@ -1902,7 +1902,7 @@ static const struct ath10k_hif_ops ath10k_pci_hif_ops = { ...@@ -1902,7 +1902,7 @@ static const struct ath10k_hif_ops ath10k_pci_hif_ops = {
static void ath10k_pci_ce_tasklet(unsigned long ptr) static void ath10k_pci_ce_tasklet(unsigned long ptr)
{ {
struct hif_ce_pipe_info *pipe = (struct hif_ce_pipe_info *)ptr; struct ath10k_pci_pipe *pipe = (struct ath10k_pci_pipe *)ptr;
struct ath10k_pci *ar_pci = pipe->ar_pci; struct ath10k_pci *ar_pci = pipe->ar_pci;
ath10k_ce_per_engine_service(ar_pci->ar, pipe->pipe_num); ath10k_ce_per_engine_service(ar_pci->ar, pipe->pipe_num);
......
...@@ -53,7 +53,7 @@ struct ath10k_pci_compl { ...@@ -53,7 +53,7 @@ struct ath10k_pci_compl {
struct list_head list; struct list_head list;
enum ath10k_pci_compl_state state; enum ath10k_pci_compl_state state;
struct ce_state *ce_state; struct ce_state *ce_state;
struct hif_ce_pipe_info *pipe_info; struct ath10k_pci_pipe *pipe_info;
void *transfer_context; void *transfer_context;
unsigned int nbytes; unsigned int nbytes;
unsigned int transfer_id; unsigned int transfer_id;
...@@ -160,7 +160,7 @@ enum ath10k_pci_features { ...@@ -160,7 +160,7 @@ enum ath10k_pci_features {
}; };
/* Per-pipe state. */ /* Per-pipe state. */
struct hif_ce_pipe_info { struct ath10k_pci_pipe {
/* Handle of underlying Copy Engine */ /* Handle of underlying Copy Engine */
struct ce_state *ce_hdl; struct ce_state *ce_hdl;
...@@ -219,7 +219,7 @@ struct ath10k_pci { ...@@ -219,7 +219,7 @@ struct ath10k_pci {
bool compl_processing; bool compl_processing;
struct hif_ce_pipe_info pipe_info[CE_COUNT_MAX]; struct ath10k_pci_pipe pipe_info[CE_COUNT_MAX];
struct ath10k_hif_cb msg_callbacks_current; struct ath10k_hif_cb msg_callbacks_current;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment