Lines Matching refs:req

69 	efx_mcdi_req_t req;  in efx_wol_filter_clear()  local
78 req.emr_cmd = MC_CMD_WOL_FILTER_RESET; in efx_wol_filter_clear()
79 req.emr_in_buf = payload; in efx_wol_filter_clear()
80 req.emr_in_length = MC_CMD_WOL_FILTER_RESET_IN_LEN; in efx_wol_filter_clear()
81 req.emr_out_buf = payload; in efx_wol_filter_clear()
82 req.emr_out_length = MC_CMD_WOL_FILTER_RESET_OUT_LEN; in efx_wol_filter_clear()
84 MCDI_IN_SET_DWORD(req, WOL_FILTER_RESET_IN_MASK, in efx_wol_filter_clear()
88 efx_mcdi_execute(enp, &req); in efx_wol_filter_clear()
90 if (req.emr_rc != 0) { in efx_wol_filter_clear()
91 rc = req.emr_rc; in efx_wol_filter_clear()
110 efx_mcdi_req_t req; in efx_wol_filter_add() local
120 req.emr_cmd = MC_CMD_WOL_FILTER_SET; in efx_wol_filter_add()
121 req.emr_in_buf = payload; in efx_wol_filter_add()
122 req.emr_in_length = MC_CMD_WOL_FILTER_SET_IN_LEN; in efx_wol_filter_add()
123 req.emr_out_buf = payload; in efx_wol_filter_add()
124 req.emr_out_length = MC_CMD_WOL_FILTER_SET_OUT_LEN; in efx_wol_filter_add()
128 MCDI_IN_SET_DWORD(req, WOL_FILTER_SET_IN_FILTER_MODE, in efx_wol_filter_add()
130 MCDI_IN_SET_DWORD(req, WOL_FILTER_SET_IN_WOL_TYPE, in efx_wol_filter_add()
133 MCDI_IN2(req, uint8_t, WOL_FILTER_SET_IN_MAGIC_MAC), in efx_wol_filter_add()
142 MCDI_IN_SET_DWORD(req, WOL_FILTER_SET_IN_FILTER_MODE, in efx_wol_filter_add()
144 MCDI_IN_SET_DWORD(req, WOL_FILTER_SET_IN_WOL_TYPE, in efx_wol_filter_add()
152 dwordp = MCDI_IN2(req, efx_dword_t, in efx_wol_filter_add()
173 (void) memcpy(MCDI_IN2(req, uint8_t, in efx_wol_filter_add()
180 MCDI_IN_SET_DWORD(req, WOL_FILTER_SET_IN_BITMAP_LEN, in efx_wol_filter_add()
186 MCDI_IN_SET_DWORD(req, WOL_FILTER_SET_IN_FILTER_MODE, in efx_wol_filter_add()
188 MCDI_IN_SET_DWORD(req, WOL_FILTER_SET_IN_WOL_TYPE, in efx_wol_filter_add()
194 MCDI_IN_SET_BYTE(req, WOL_FILTER_SET_IN_LINK_MASK, in efx_wol_filter_add()
202 efx_mcdi_execute(enp, &req); in efx_wol_filter_add()
204 if (req.emr_rc != 0) { in efx_wol_filter_add()
205 rc = req.emr_rc; in efx_wol_filter_add()
209 if (req.emr_out_length_used < MC_CMD_WOL_FILTER_SET_OUT_LEN) { in efx_wol_filter_add()
214 *filter_idp = MCDI_OUT_DWORD(req, WOL_FILTER_SET_OUT_FILTER_ID); in efx_wol_filter_add()
231 efx_mcdi_req_t req; in efx_wol_filter_remove() local
240 req.emr_cmd = MC_CMD_WOL_FILTER_REMOVE; in efx_wol_filter_remove()
241 req.emr_in_buf = payload; in efx_wol_filter_remove()
242 req.emr_in_length = MC_CMD_WOL_FILTER_REMOVE_IN_LEN; in efx_wol_filter_remove()
243 req.emr_out_buf = payload; in efx_wol_filter_remove()
244 req.emr_out_length = MC_CMD_WOL_FILTER_REMOVE_OUT_LEN; in efx_wol_filter_remove()
246 MCDI_IN_SET_DWORD(req, WOL_FILTER_REMOVE_IN_FILTER_ID, filter_id); in efx_wol_filter_remove()
248 efx_mcdi_execute(enp, &req); in efx_wol_filter_remove()
250 if (req.emr_rc != 0) { in efx_wol_filter_remove()
251 rc = req.emr_rc; in efx_wol_filter_remove()
271 efx_mcdi_req_t req; in efx_lightsout_offload_add() local
281 req.emr_cmd = MC_CMD_ADD_LIGHTSOUT_OFFLOAD; in efx_lightsout_offload_add()
282 req.emr_in_buf = payload; in efx_lightsout_offload_add()
283 req.emr_in_length = sizeof (type); in efx_lightsout_offload_add()
284 req.emr_out_buf = payload; in efx_lightsout_offload_add()
285 req.emr_out_length = MC_CMD_ADD_LIGHTSOUT_OFFLOAD_OUT_LEN; in efx_lightsout_offload_add()
289 req.emr_in_length = MC_CMD_ADD_LIGHTSOUT_OFFLOAD_IN_ARP_LEN; in efx_lightsout_offload_add()
291 MCDI_IN_SET_DWORD(req, ADD_LIGHTSOUT_OFFLOAD_IN_PROTOCOL, in efx_lightsout_offload_add()
293 EFX_MAC_ADDR_COPY(MCDI_IN2(req, uint8_t, in efx_lightsout_offload_add()
296 MCDI_IN_SET_DWORD(req, ADD_LIGHTSOUT_OFFLOAD_IN_ARP_IP, in efx_lightsout_offload_add()
300 req.emr_in_length = MC_CMD_ADD_LIGHTSOUT_OFFLOAD_IN_NS_LEN; in efx_lightsout_offload_add()
302 MCDI_IN_SET_DWORD(req, ADD_LIGHTSOUT_OFFLOAD_IN_PROTOCOL, in efx_lightsout_offload_add()
304 EFX_MAC_ADDR_COPY(MCDI_IN2(req, uint8_t, in efx_lightsout_offload_add()
307 (void) memcpy(MCDI_IN2(req, uint8_t, in efx_lightsout_offload_add()
311 (void) memcpy(MCDI_IN2(req, uint8_t, in efx_lightsout_offload_add()
320 efx_mcdi_execute(enp, &req); in efx_lightsout_offload_add()
322 if (req.emr_rc != 0) { in efx_lightsout_offload_add()
323 rc = req.emr_rc; in efx_lightsout_offload_add()
327 if (req.emr_out_length_used < MC_CMD_ADD_LIGHTSOUT_OFFLOAD_OUT_LEN) { in efx_lightsout_offload_add()
332 *filter_idp = MCDI_OUT_DWORD(req, ADD_LIGHTSOUT_OFFLOAD_OUT_FILTER_ID); in efx_lightsout_offload_add()
353 efx_mcdi_req_t req; in efx_lightsout_offload_remove() local
362 req.emr_cmd = MC_CMD_REMOVE_LIGHTSOUT_OFFLOAD; in efx_lightsout_offload_remove()
363 req.emr_in_buf = payload; in efx_lightsout_offload_remove()
364 req.emr_in_length = MC_CMD_REMOVE_LIGHTSOUT_OFFLOAD_IN_LEN; in efx_lightsout_offload_remove()
365 req.emr_out_buf = payload; in efx_lightsout_offload_remove()
366 req.emr_out_length = MC_CMD_REMOVE_LIGHTSOUT_OFFLOAD_OUT_LEN; in efx_lightsout_offload_remove()
370 MCDI_IN_SET_DWORD(req, REMOVE_LIGHTSOUT_OFFLOAD_IN_PROTOCOL, in efx_lightsout_offload_remove()
374 MCDI_IN_SET_DWORD(req, REMOVE_LIGHTSOUT_OFFLOAD_IN_PROTOCOL, in efx_lightsout_offload_remove()
382 MCDI_IN_SET_DWORD(req, REMOVE_LIGHTSOUT_OFFLOAD_IN_FILTER_ID, in efx_lightsout_offload_remove()
385 efx_mcdi_execute(enp, &req); in efx_lightsout_offload_remove()
387 if (req.emr_rc != 0) { in efx_lightsout_offload_remove()
388 rc = req.emr_rc; in efx_lightsout_offload_remove()