Lines Matching refs:si
89 int enetc_send_cmd(struct enetc_si *si, struct enetc_cbd *cbd) in enetc_send_cmd() argument
91 struct enetc_cbdr *ring = &si->cbd_ring; in enetc_send_cmd()
131 int enetc_clear_mac_flt_entry(struct enetc_si *si, int index) in enetc_clear_mac_flt_entry() argument
141 return enetc_send_cmd(si, &cbd); in enetc_clear_mac_flt_entry()
144 int enetc_set_mac_flt_entry(struct enetc_si *si, int index, in enetc_set_mac_flt_entry() argument
166 return enetc_send_cmd(si, &cbd); in enetc_set_mac_flt_entry()
170 int enetc_set_fs_entry(struct enetc_si *si, struct enetc_cmd_rfse *rfse, in enetc_set_fs_entry() argument
173 struct enetc_cbdr *ring = &si->cbd_ring; in enetc_set_fs_entry()
185 tmp = enetc_cbd_alloc_data_mem(si, &cbd, sizeof(*rfse), in enetc_set_fs_entry()
192 err = enetc_send_cmd(si, &cbd); in enetc_set_fs_entry()
196 enetc_cbd_free_data_mem(si, sizeof(*rfse), tmp, &dma); in enetc_set_fs_entry()
201 static int enetc_cmd_rss_table(struct enetc_si *si, u32 *table, int count, in enetc_cmd_rss_table() argument
204 struct enetc_cbdr *ring = &si->cbd_ring; in enetc_cmd_rss_table()
214 tmp = enetc_cbd_alloc_data_mem(si, &cbd, count, in enetc_cmd_rss_table()
227 err = enetc_send_cmd(si, &cbd); in enetc_cmd_rss_table()
235 enetc_cbd_free_data_mem(si, count, tmp, &dma); in enetc_cmd_rss_table()
241 int enetc_get_rss_table(struct enetc_si *si, u32 *table, int count) in enetc_get_rss_table() argument
243 return enetc_cmd_rss_table(si, table, count, true); in enetc_get_rss_table()
247 int enetc_set_rss_table(struct enetc_si *si, const u32 *table, int count) in enetc_set_rss_table() argument
249 return enetc_cmd_rss_table(si, (u32 *)table, count, false); in enetc_set_rss_table()