Lines Matching full:j
17 u32 i, j; in spl2sw_rx_descs_flush() local
22 for (j = 0; j < comm->rx_desc_num[i]; j++) { in spl2sw_rx_descs_flush()
23 rx_desc[j].addr1 = rx_skbinfo[j].mapping; in spl2sw_rx_descs_flush()
24 rx_desc[j].cmd2 = (j == comm->rx_desc_num[i] - 1) ? in spl2sw_rx_descs_flush()
28 rx_desc[j].cmd1 = RXD_OWN; in spl2sw_rx_descs_flush()
64 u32 i, j; in spl2sw_rx_descs_clean() local
72 for (j = 0; j < comm->rx_desc_num[i]; j++) { in spl2sw_rx_descs_clean()
73 rx_desc[j].cmd1 = 0; in spl2sw_rx_descs_clean()
75 rx_desc[j].cmd2 = 0; in spl2sw_rx_descs_clean()
76 rx_desc[j].addr1 = 0; in spl2sw_rx_descs_clean()
78 if (rx_skbinfo[j].skb) { in spl2sw_rx_descs_clean()
79 dma_unmap_single(&comm->pdev->dev, rx_skbinfo[j].mapping, in spl2sw_rx_descs_clean()
81 dev_kfree_skb_any(rx_skbinfo[j].skb); in spl2sw_rx_descs_clean()
82 rx_skbinfo[j].skb = NULL; in spl2sw_rx_descs_clean()
83 rx_skbinfo[j].mapping = 0; in spl2sw_rx_descs_clean()
129 u32 i, j; in spl2sw_rx_descs_init() local
139 for (j = 0; j < comm->rx_desc_num[i]; j++) { in spl2sw_rx_descs_init()
144 rx_skbinfo[j].skb = skb; in spl2sw_rx_descs_init()
151 rx_skbinfo[j].mapping = mapping; in spl2sw_rx_descs_init()
152 rx_desc[j].addr1 = mapping; in spl2sw_rx_descs_init()
153 rx_desc[j].addr2 = 0; in spl2sw_rx_descs_init()
154 rx_desc[j].cmd2 = (j == comm->rx_desc_num[i] - 1) ? in spl2sw_rx_descs_init()
158 rx_desc[j].cmd1 = RXD_OWN; in spl2sw_rx_descs_init()