Lines Matching defs:ae
703 static void esas2r_lun_event(struct esas2r_adapter *a, union atto_vda_ae *ae,
713 esas2r_trace("ae->lu.dwevent: %x", ae->lu.dwevent);
714 esas2r_trace("ae->lu.bystate: %x", ae->lu.bystate);
720 if (ae->lu.dwevent & VDAAE_LU_LOST) {
723 switch (ae->lu.bystate) {
739 memcpy(&t->lu_event, &ae->lu, cplen);
751 union atto_vda_ae *ae =
771 last = ae;
774 while (ae < last) {
777 esas2r_trace("ae: %p", ae);
778 esas2r_trace("ae->hdr: %p", &(ae->hdr));
780 length = ae->hdr.bylength;
782 if (length > (u32)((u8 *)last - (u8 *)ae)
787 ae, length);
789 esas2r_hdebug("ae->hdr.length (0x%x) invalid", length);
795 esas2r_nuxi_ae_data(ae);
797 esas2r_queue_fw_event(a, fw_event_vda_ae, ae,
800 switch (ae->hdr.bytype) {
803 if (ae->raid.dwflags & (VDAAE_GROUP_STATE
809 ae->raid.acname,
810 ae->raid.byrebuild_state,
811 ae->raid.bygroup_state);
819 ae->lu.dwevent,
820 ae->lu.id.tgtlun.wtarget_id,
821 ae->lu.id.tgtlun.bylun,
822 ae->lu.bystate);
824 target = ae->lu.id.tgtlun.wtarget_id;
827 esas2r_lun_event(a, ae, target, length);
844 ae = (union atto_vda_ae *)((u8 *)ae + length);
855 struct atto_vda_ae_hdr ae;
858 ae.bytype = VDAAE_HDR_TYPE_PWRMGT;
860 ae.bytype = VDAAE_HDR_TYPE_RESET;
862 ae.byversion = VDAAE_HDR_VER_0;
863 ae.byflags = 0;
864 ae.bylength = (u8)sizeof(struct atto_vda_ae_hdr);
872 esas2r_queue_fw_event(a, fw_event_vda_ae, &ae,