Lines Matching refs:fw_event
1603 esas2r_free_fw_event(struct esas2r_fw_event_work *fw_event) in esas2r_free_fw_event() argument
1606 struct esas2r_adapter *a = fw_event->a; in esas2r_free_fw_event()
1609 list_del(&fw_event->list); in esas2r_free_fw_event()
1610 kfree(fw_event); in esas2r_free_fw_event()
1707 static void esas2r_send_ae_event(struct esas2r_fw_event_work *fw_event) in esas2r_send_ae_event() argument
1709 struct esas2r_vda_ae *ae = (struct esas2r_vda_ae *)fw_event->data; in esas2r_send_ae_event()
1789 struct esas2r_fw_event_work *fw_event = in esas2r_firmware_event_work() local
1792 struct esas2r_adapter *a = fw_event->a; in esas2r_firmware_event_work()
1794 u16 target_id = *(u16 *)&fw_event->data[0]; in esas2r_firmware_event_work()
1799 switch (fw_event->type) { in esas2r_firmware_event_work()
1817 esas2r_send_ae_event(fw_event); in esas2r_firmware_event_work()
1822 esas2r_free_fw_event(fw_event); in esas2r_firmware_event_work()
1830 struct esas2r_fw_event_work *fw_event; in esas2r_queue_fw_event() local
1833 fw_event = kzalloc(sizeof(struct esas2r_fw_event_work), GFP_ATOMIC); in esas2r_queue_fw_event()
1834 if (!fw_event) { in esas2r_queue_fw_event()
1842 (struct esas2r_vda_ae *)fw_event->data; in esas2r_queue_fw_event()
1849 memcpy(fw_event->data, data, data_sz); in esas2r_queue_fw_event()
1852 fw_event->type = type; in esas2r_queue_fw_event()
1853 fw_event->a = a; in esas2r_queue_fw_event()
1856 list_add_tail(&fw_event->list, &a->fw_event_list); in esas2r_queue_fw_event()
1857 INIT_DELAYED_WORK(&fw_event->work, esas2r_firmware_event_work); in esas2r_queue_fw_event()
1859 smp_processor_id(), a->fw_event_q, &fw_event->work, in esas2r_queue_fw_event()