Lines Matching full:i

17 	u32 i, j;  in spl2sw_rx_descs_flush()  local
19 for (i = 0; i < RX_DESC_QUEUE_NUM; i++) { in spl2sw_rx_descs_flush()
20 rx_desc = comm->rx_desc[i]; in spl2sw_rx_descs_flush()
21 rx_skbinfo = comm->rx_skb_info[i]; in spl2sw_rx_descs_flush()
22 for (j = 0; j < comm->rx_desc_num[i]; j++) { in spl2sw_rx_descs_flush()
24 rx_desc[j].cmd2 = (j == comm->rx_desc_num[i] - 1) ? in spl2sw_rx_descs_flush()
35 u32 i; in spl2sw_tx_descs_clean() local
40 for (i = 0; i < TX_DESC_NUM; i++) { in spl2sw_tx_descs_clean()
41 comm->tx_desc[i].cmd1 = 0; in spl2sw_tx_descs_clean()
43 comm->tx_desc[i].cmd2 = 0; in spl2sw_tx_descs_clean()
44 comm->tx_desc[i].addr1 = 0; in spl2sw_tx_descs_clean()
45 comm->tx_desc[i].addr2 = 0; in spl2sw_tx_descs_clean()
47 if (comm->tx_temp_skb_info[i].mapping) { in spl2sw_tx_descs_clean()
48 dma_unmap_single(&comm->pdev->dev, comm->tx_temp_skb_info[i].mapping, in spl2sw_tx_descs_clean()
49 comm->tx_temp_skb_info[i].skb->len, DMA_TO_DEVICE); in spl2sw_tx_descs_clean()
50 comm->tx_temp_skb_info[i].mapping = 0; in spl2sw_tx_descs_clean()
53 if (comm->tx_temp_skb_info[i].skb) { in spl2sw_tx_descs_clean()
54 dev_kfree_skb_any(comm->tx_temp_skb_info[i].skb); in spl2sw_tx_descs_clean()
55 comm->tx_temp_skb_info[i].skb = NULL; in spl2sw_tx_descs_clean()
64 u32 i, j; in spl2sw_rx_descs_clean() local
66 for (i = 0; i < RX_DESC_QUEUE_NUM; i++) { in spl2sw_rx_descs_clean()
67 if (!comm->rx_skb_info[i]) in spl2sw_rx_descs_clean()
70 rx_desc = comm->rx_desc[i]; in spl2sw_rx_descs_clean()
71 rx_skbinfo = comm->rx_skb_info[i]; in spl2sw_rx_descs_clean()
72 for (j = 0; j < comm->rx_desc_num[i]; j++) { in spl2sw_rx_descs_clean()
88 comm->rx_skb_info[i] = NULL; in spl2sw_rx_descs_clean()
100 u32 i; in spl2sw_descs_free() local
104 for (i = 0; i < RX_DESC_QUEUE_NUM; i++) in spl2sw_descs_free()
105 comm->rx_desc[i] = NULL; in spl2sw_descs_free()
129 u32 i, j; in spl2sw_rx_descs_init() local
131 for (i = 0; i < RX_DESC_QUEUE_NUM; i++) { in spl2sw_rx_descs_init()
132 comm->rx_skb_info[i] = kcalloc(comm->rx_desc_num[i], sizeof(*rx_skbinfo), in spl2sw_rx_descs_init()
134 if (!comm->rx_skb_info[i]) in spl2sw_rx_descs_init()
137 rx_skbinfo = comm->rx_skb_info[i]; in spl2sw_rx_descs_init()
138 rx_desc = comm->rx_desc[i]; in spl2sw_rx_descs_init()
139 for (j = 0; j < comm->rx_desc_num[i]; j++) { in spl2sw_rx_descs_init()
154 rx_desc[j].cmd2 = (j == comm->rx_desc_num[i] - 1) ? in spl2sw_rx_descs_init()
172 u32 i; in spl2sw_descs_alloc() local
176 for (i = 0; i < RX_DESC_QUEUE_NUM; i++) in spl2sw_descs_alloc()
177 desc_size += comm->rx_desc_num[i] * sizeof(struct spl2sw_mac_desc); in spl2sw_descs_alloc()
191 for (i = 1; i < RX_DESC_QUEUE_NUM; i++) in spl2sw_descs_alloc()
192 comm->rx_desc[i] = comm->rx_desc[i - 1] + comm->rx_desc_num[i - 1]; in spl2sw_descs_alloc()
199 u32 i, ret; in spl2sw_descs_init() local
205 for (i = 0; i < RX_DESC_QUEUE_NUM; i++) { in spl2sw_descs_init()
206 comm->rx_desc[i] = NULL; in spl2sw_descs_init()
207 comm->rx_skb_info[i] = NULL; in spl2sw_descs_init()
208 comm->rx_pos[i] = 0; in spl2sw_descs_init()
217 for (i = 0; i < TX_DESC_NUM; i++) in spl2sw_descs_init()
218 comm->tx_temp_skb_info[i].skb = NULL; in spl2sw_descs_init()