Lines Matching refs:wcn_ch

168 static int wcn36xx_dxe_init_descs(struct wcn36xx *wcn, struct wcn36xx_dxe_ch *wcn_ch)  in wcn36xx_dxe_init_descs()  argument
177 size = wcn_ch->desc_num * sizeof(struct wcn36xx_dxe_desc); in wcn36xx_dxe_init_descs()
178 wcn_ch->cpu_addr = dma_alloc_coherent(dev, size, &wcn_ch->dma_addr, in wcn36xx_dxe_init_descs()
180 if (!wcn_ch->cpu_addr) in wcn36xx_dxe_init_descs()
183 cur_dxe = (struct wcn36xx_dxe_desc *)wcn_ch->cpu_addr; in wcn36xx_dxe_init_descs()
184 cur_ctl = wcn_ch->head_blk_ctl; in wcn36xx_dxe_init_descs()
186 for (i = 0; i < wcn_ch->desc_num; i++) { in wcn36xx_dxe_init_descs()
188 cur_ctl->desc_phy_addr = wcn_ch->dma_addr + in wcn36xx_dxe_init_descs()
191 switch (wcn_ch->ch_type) { in wcn36xx_dxe_init_descs()
211 } else if ((0 < i) && (i < wcn_ch->desc_num - 1)) { in wcn36xx_dxe_init_descs()
214 } else if (i == (wcn_ch->desc_num - 1)) { in wcn36xx_dxe_init_descs()
218 wcn_ch->head_blk_ctl->desc_phy_addr; in wcn36xx_dxe_init_descs()
228 static void wcn36xx_dxe_deinit_descs(struct device *dev, struct wcn36xx_dxe_ch *wcn_ch) in wcn36xx_dxe_deinit_descs() argument
232 size = wcn_ch->desc_num * sizeof(struct wcn36xx_dxe_desc); in wcn36xx_dxe_deinit_descs()
233 dma_free_coherent(dev, size,wcn_ch->cpu_addr, wcn_ch->dma_addr); in wcn36xx_dxe_deinit_descs()
260 static int wcn36xx_dxe_enable_ch_int(struct wcn36xx *wcn, u16 wcn_ch) in wcn36xx_dxe_enable_ch_int() argument
268 reg_data |= wcn_ch; in wcn36xx_dxe_enable_ch_int()
276 static void wcn36xx_dxe_disable_ch_int(struct wcn36xx *wcn, u16 wcn_ch) in wcn36xx_dxe_disable_ch_int() argument
284 reg_data &= ~wcn_ch; in wcn36xx_dxe_disable_ch_int()
317 struct wcn36xx_dxe_ch *wcn_ch) in wcn36xx_dxe_ch_alloc_skb() argument
322 cur_ctl = wcn_ch->head_blk_ctl; in wcn36xx_dxe_ch_alloc_skb()
324 for (i = 0; i < wcn_ch->desc_num; i++) { in wcn36xx_dxe_ch_alloc_skb()
333 struct wcn36xx_dxe_ch *wcn_ch) in wcn36xx_dxe_ch_free_skbs() argument
335 struct wcn36xx_dxe_ctl *cur = wcn_ch->head_blk_ctl; in wcn36xx_dxe_ch_free_skbs()
338 for (i = 0; i < wcn_ch->desc_num; i++) { in wcn36xx_dxe_ch_free_skbs()