Lines Matching defs:ped
1225 * @ped: pedit MAC action to be installed
1227 * Attempts to install @ped in HW and populates its id with an index of this
1233 struct efx_tc_mac_pedit_action *ped)
1241 sizeof(ped->h_addr));
1242 memcpy(MCDI_PTR(inbuf, MAE_MAC_ADDR_ALLOC_IN_MAC_ADDR), ped->h_addr,
1243 sizeof(ped->h_addr));
1250 ped->fw_id = MCDI_DWORD(outbuf, MAE_MAC_ADDR_ALLOC_OUT_MAC_ID);
1257 * @ped: pedit MAC action that needs to be freed
1259 * Frees @ped in HW, check that firmware did not free a different one and clears
1263 struct efx_tc_mac_pedit_action *ped)
1270 MCDI_SET_DWORD(inbuf, MAE_MAC_ADDR_FREE_IN_MAC_ID, ped->fw_id);
1279 if (WARN_ON(MCDI_DWORD(outbuf, MAE_MAC_ADDR_FREE_OUT_FREED_MAC_ID) != ped->fw_id))
1281 /* We're probably about to free @ped, but let's just make sure its
1284 ped->fw_id = MC_CMD_MAE_MAC_ADDR_ALLOC_OUT_MAC_ID_NULL;