Lines Matching refs:cbd
91 int enetc_send_cmd(struct enetc_si *si, struct enetc_cbd *cbd) in enetc_send_cmd() argument
108 *dest_cbd = *cbd; in enetc_send_cmd()
126 *cbd = *dest_cbd; in enetc_send_cmd()
136 struct enetc_cbd cbd; in enetc_clear_mac_flt_entry() local
138 memset(&cbd, 0, sizeof(cbd)); in enetc_clear_mac_flt_entry()
140 cbd.cls = 1; in enetc_clear_mac_flt_entry()
141 cbd.status_flags = ENETC_CBD_FLAGS_SF; in enetc_clear_mac_flt_entry()
142 cbd.index = cpu_to_le16(index); in enetc_clear_mac_flt_entry()
144 return enetc_send_cmd(si, &cbd); in enetc_clear_mac_flt_entry()
151 struct enetc_cbd cbd; in enetc_set_mac_flt_entry() local
155 memset(&cbd, 0, sizeof(cbd)); in enetc_set_mac_flt_entry()
158 cbd.cls = 1; in enetc_set_mac_flt_entry()
159 cbd.status_flags = ENETC_CBD_FLAGS_SF; in enetc_set_mac_flt_entry()
160 cbd.index = cpu_to_le16(index); in enetc_set_mac_flt_entry()
161 cbd.opt[3] = cpu_to_le32(si_map); in enetc_set_mac_flt_entry()
163 cbd.opt[0] = cpu_to_le32(BIT(31)); in enetc_set_mac_flt_entry()
167 cbd.addr[0] = cpu_to_le32(upper); in enetc_set_mac_flt_entry()
168 cbd.addr[1] = cpu_to_le32(lower); in enetc_set_mac_flt_entry()
170 return enetc_send_cmd(si, &cbd); in enetc_set_mac_flt_entry()
179 struct enetc_cbd cbd = {.cmd = 0}; in enetc_set_fs_entry() local
185 cbd.cmd = 0; in enetc_set_fs_entry()
186 cbd.cls = 4; in enetc_set_fs_entry()
187 cbd.index = cpu_to_le16(index); in enetc_set_fs_entry()
188 cbd.opt[3] = cpu_to_le32(0); /* SI */ in enetc_set_fs_entry()
190 tmp = enetc_cbd_alloc_data_mem(si, &cbd, sizeof(*rfse), in enetc_set_fs_entry()
197 err = enetc_send_cmd(si, &cbd); in enetc_set_fs_entry()
211 struct enetc_cbd cbd = {.cmd = 0}; in enetc_cmd_rss_table() local
220 tmp = enetc_cbd_alloc_data_mem(si, &cbd, count, in enetc_cmd_rss_table()
230 cbd.cmd = read ? 2 : 1; in enetc_cmd_rss_table()
231 cbd.cls = 3; in enetc_cmd_rss_table()
233 err = enetc_send_cmd(si, &cbd); in enetc_cmd_rss_table()