Lines Matching refs:outbuf

18 	MCDI_DECLARE_BUF(outbuf, MC_CMD_MAE_MPORT_ALLOC_ALIAS_OUT_LEN);  in efx_mae_allocate_mport()
33 outbuf, sizeof(outbuf), &outlen); in efx_mae_allocate_mport()
36 if (outlen < sizeof(outbuf)) in efx_mae_allocate_mport()
38 *id = MCDI_DWORD(outbuf, MAE_MPORT_ALLOC_ALIAS_OUT_MPORT_ID); in efx_mae_allocate_mport()
39 *label = MCDI_DWORD(outbuf, MAE_MPORT_ALLOC_ALIAS_OUT_LABEL); in efx_mae_allocate_mport()
99 MCDI_DECLARE_BUF(outbuf, MC_CMD_MAE_MPORT_LOOKUP_OUT_LEN); in efx_mae_lookup_mport()
106 outbuf, sizeof(outbuf), &outlen); in efx_mae_lookup_mport()
109 if (outlen < sizeof(outbuf)) in efx_mae_lookup_mport()
111 *id = MCDI_DWORD(outbuf, MAE_MPORT_LOOKUP_OUT_MPORT_ID); in efx_mae_lookup_mport()
117 MCDI_DECLARE_BUF(outbuf, MC_CMD_MAE_GET_CAPS_OUT_LEN); in efx_mae_get_basic_caps()
123 rc = efx_mcdi_rpc(efx, MC_CMD_MAE_GET_CAPS, NULL, 0, outbuf, in efx_mae_get_basic_caps()
124 sizeof(outbuf), &outlen); in efx_mae_get_basic_caps()
127 if (outlen < sizeof(outbuf)) in efx_mae_get_basic_caps()
129 caps->match_field_count = MCDI_DWORD(outbuf, MAE_GET_CAPS_OUT_MATCH_FIELD_COUNT); in efx_mae_get_basic_caps()
130 caps->action_prios = MCDI_DWORD(outbuf, MAE_GET_CAPS_OUT_ACTION_PRIOS); in efx_mae_get_basic_caps()
137 MCDI_DECLARE_BUF(outbuf, MC_CMD_MAE_GET_AR_CAPS_OUT_LEN(MAE_NUM_FIELDS)); in efx_mae_get_rule_fields()
145 rc = efx_mcdi_rpc(efx, cmd, NULL, 0, outbuf, sizeof(outbuf), &outlen); in efx_mae_get_rule_fields()
148 count = MCDI_DWORD(outbuf, MAE_GET_AR_CAPS_OUT_COUNT); in efx_mae_get_rule_fields()
150 caps = _MCDI_DWORD(outbuf, MAE_GET_AR_CAPS_OUT_FIELD_FLAGS); in efx_mae_get_rule_fields()
155 if (i * sizeof(*outbuf) + MC_CMD_MAE_GET_AR_CAPS_OUT_FIELD_FLAGS_OFST < outlen) in efx_mae_get_rule_fields()
283 MCDI_DECLARE_BUF(outbuf, MC_CMD_MAE_ACTION_SET_ALLOC_OUT_LEN); in efx_mae_alloc_action_set()
303 outbuf, sizeof(outbuf), &outlen); in efx_mae_alloc_action_set()
306 if (outlen < sizeof(outbuf)) in efx_mae_alloc_action_set()
308 act->fw_id = MCDI_DWORD(outbuf, MAE_ACTION_SET_ALLOC_OUT_AS_ID); in efx_mae_alloc_action_set()
321 MCDI_DECLARE_BUF(outbuf, MC_CMD_MAE_ACTION_SET_FREE_OUT_LEN(1)); in efx_mae_free_action_set()
328 outbuf, sizeof(outbuf), &outlen); in efx_mae_free_action_set()
331 if (outlen < sizeof(outbuf)) in efx_mae_free_action_set()
337 if (WARN_ON(MCDI_DWORD(outbuf, MAE_ACTION_SET_FREE_OUT_FREED_AS_ID) != fw_id)) in efx_mae_free_action_set()
345 MCDI_DECLARE_BUF(outbuf, MC_CMD_MAE_ACTION_SET_LIST_ALLOC_OUT_LEN); in efx_mae_alloc_action_set_list()
377 outbuf, sizeof(outbuf), &outlen); in efx_mae_alloc_action_set_list()
380 if (outlen < sizeof(outbuf)) { in efx_mae_alloc_action_set_list()
384 acts->fw_id = MCDI_DWORD(outbuf, MAE_ACTION_SET_LIST_ALLOC_OUT_ASL_ID); in efx_mae_alloc_action_set_list()
400 MCDI_DECLARE_BUF(outbuf, MC_CMD_MAE_ACTION_SET_LIST_FREE_OUT_LEN(1)); in efx_mae_free_action_set_list()
412 sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_mae_free_action_set_list()
415 if (outlen < sizeof(outbuf)) in efx_mae_free_action_set_list()
421 if (WARN_ON(MCDI_DWORD(outbuf, MAE_ACTION_SET_LIST_FREE_OUT_FREED_ASL_ID) != acts->fw_id)) in efx_mae_free_action_set_list()
454 MCDI_DECLARE_BUF(outbuf, MC_CMD_MAE_ACTION_RULE_INSERT_OUT_LEN); in efx_mae_insert_rule()
481 outbuf, sizeof(outbuf), &outlen); in efx_mae_insert_rule()
484 if (outlen < sizeof(outbuf)) in efx_mae_insert_rule()
486 *id = MCDI_DWORD(outbuf, MAE_ACTION_RULE_INSERT_OUT_AR_ID); in efx_mae_insert_rule()
492 MCDI_DECLARE_BUF(outbuf, MC_CMD_MAE_ACTION_RULE_DELETE_OUT_LEN(1)); in efx_mae_delete_rule()
499 outbuf, sizeof(outbuf), &outlen); in efx_mae_delete_rule()
502 if (outlen < sizeof(outbuf)) in efx_mae_delete_rule()
508 if (WARN_ON(MCDI_DWORD(outbuf, MAE_ACTION_RULE_DELETE_OUT_DELETED_AR_ID) != id)) in efx_mae_delete_rule()