Lines Matching refs:tlv
1182 struct qed_drv_tlv_hdr tlv; in qed_mfw_update_tlvs() local
1196 memset(&tlv, 0, sizeof(tlv)); in qed_mfw_update_tlvs()
1198 offset += sizeof(tlv) + sizeof(u32) * tlv.tlv_length) { in qed_mfw_update_tlvs()
1200 tlv.tlv_type = TLV_TYPE(p_tlv); in qed_mfw_update_tlvs()
1201 tlv.tlv_length = TLV_LENGTH(p_tlv); in qed_mfw_update_tlvs()
1202 tlv.tlv_flags = TLV_FLAGS(p_tlv); in qed_mfw_update_tlvs()
1205 "Type %d length = %d flags = 0x%x\n", tlv.tlv_type, in qed_mfw_update_tlvs()
1206 tlv.tlv_length, tlv.tlv_flags); in qed_mfw_update_tlvs()
1209 len = qed_mfw_get_gen_tlv_value(&tlv, in qed_mfw_update_tlvs()
1213 len = qed_mfw_get_eth_tlv_value(&tlv, in qed_mfw_update_tlvs()
1217 len = qed_mfw_get_fcoe_tlv_value(&tlv, in qed_mfw_update_tlvs()
1221 len = qed_mfw_get_iscsi_tlv_value(&tlv, in qed_mfw_update_tlvs()
1226 WARN(len > 4 * tlv.tlv_length, in qed_mfw_update_tlvs()
1228 len, 4 * tlv.tlv_length); in qed_mfw_update_tlvs()
1229 len = min_t(int, len, 4 * tlv.tlv_length); in qed_mfw_update_tlvs()
1230 tlv.tlv_flags |= QED_DRV_TLV_FLAGS_CHANGED; in qed_mfw_update_tlvs()
1231 TLV_FLAGS(p_tlv) = tlv.tlv_flags; in qed_mfw_update_tlvs()
1232 memcpy(p_mfw_buf + offset + sizeof(tlv), in qed_mfw_update_tlvs()
1246 struct qed_drv_tlv_hdr tlv; in qed_mfw_process_tlv_req() local
1283 offset += sizeof(tlv) + sizeof(u32) * tlv.tlv_length) { in qed_mfw_process_tlv_req()
1285 tlv.tlv_type = TLV_TYPE(p_temp); in qed_mfw_process_tlv_req()
1286 tlv.tlv_length = TLV_LENGTH(p_temp); in qed_mfw_process_tlv_req()
1287 if (qed_mfw_get_tlv_group(tlv.tlv_type, &tlv_group)) in qed_mfw_process_tlv_req()
1289 "Un recognized TLV %d\n", tlv.tlv_type); in qed_mfw_process_tlv_req()