Lines Matching full:rx_desc
16 struct spl2sw_mac_desc *rx_desc; in spl2sw_rx_descs_flush() local
20 rx_desc = comm->rx_desc[i]; 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()
63 struct spl2sw_mac_desc *rx_desc; in spl2sw_rx_descs_clean() local
70 rx_desc = comm->rx_desc[i]; 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()
105 comm->rx_desc[i] = NULL; in spl2sw_descs_free()
126 struct spl2sw_mac_desc *rx_desc; in spl2sw_rx_descs_init() local
138 rx_desc = comm->rx_desc[i]; 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()
190 comm->rx_desc[0] = &comm->tx_desc[TX_DESC_NUM + MAC_GUARD_DESC_NUM]; in spl2sw_descs_alloc()
192 comm->rx_desc[i] = comm->rx_desc[i - 1] + comm->rx_desc_num[i - 1]; in spl2sw_descs_alloc()
206 comm->rx_desc[i] = NULL; in spl2sw_descs_init()