Searched refs:ev (Results 1 - 200 of 266) sorted by relevance

12

/linux-4.1.27/include/sound/
H A Dasequencer.h30 #define snd_seq_event_bounce_ext_data(ev) ((void*)((char *)(ev)->data.ext.ptr + sizeof(struct snd_seq_event_bounce)))
36 #define snd_seq_ev_is_result_type(ev) ((ev)->type < 5)
38 #define snd_seq_ev_is_channel_type(ev) ((ev)->type >= 5 && (ev)->type < 20)
40 #define snd_seq_ev_is_note_type(ev) ((ev)->type >= 5 && (ev)->type < 10)
42 #define snd_seq_ev_is_control_type(ev) ((ev)->type >= 10 && (ev)->type < 20)
44 #define snd_seq_ev_is_queue_type(ev) ((ev)->type >= 30 && (ev)->type < 40)
46 #define snd_seq_ev_is_message_type(ev) ((ev)->type >= 60 && (ev)->type < 69)
48 #define snd_seq_ev_is_sample_type(ev) ((ev)->type >= 70 && (ev)->type < 79)
50 #define snd_seq_ev_is_user_type(ev) ((ev)->type >= 90 && (ev)->type < 99)
52 #define snd_seq_ev_is_fixed_type(ev) ((ev)->type < 100)
54 #define snd_seq_ev_is_variable_type(ev) ((ev)->type >= 130 && (ev)->type < 140)
56 #define snd_seq_ev_is_reserved(ev) ((ev)->type >= 150)
59 #define snd_seq_ev_is_direct(ev) ((ev)->queue == SNDRV_SEQ_QUEUE_DIRECT)
65 #define snd_seq_ev_is_prior(ev) (((ev)->flags & SNDRV_SEQ_PRIORITY_MASK) == SNDRV_SEQ_PRIORITY_HIGH)
68 #define snd_seq_ev_length_type(ev) ((ev)->flags & SNDRV_SEQ_EVENT_LENGTH_MASK)
69 #define snd_seq_ev_is_fixed(ev) (snd_seq_ev_length_type(ev) == SNDRV_SEQ_EVENT_LENGTH_FIXED)
70 #define snd_seq_ev_is_variable(ev) (snd_seq_ev_length_type(ev) == SNDRV_SEQ_EVENT_LENGTH_VARIABLE)
71 #define snd_seq_ev_is_varusr(ev) (snd_seq_ev_length_type(ev) == SNDRV_SEQ_EVENT_LENGTH_VARUSR)
74 #define snd_seq_ev_timestamp_type(ev) ((ev)->flags & SNDRV_SEQ_TIME_STAMP_MASK)
75 #define snd_seq_ev_is_tick(ev) (snd_seq_ev_timestamp_type(ev) == SNDRV_SEQ_TIME_STAMP_TICK)
76 #define snd_seq_ev_is_real(ev) (snd_seq_ev_timestamp_type(ev) == SNDRV_SEQ_TIME_STAMP_REAL)
79 #define snd_seq_ev_timemode_type(ev) ((ev)->flags & SNDRV_SEQ_TIME_MODE_MASK)
80 #define snd_seq_ev_is_abstime(ev) (snd_seq_ev_timemode_type(ev) == SNDRV_SEQ_TIME_MODE_ABS)
81 #define snd_seq_ev_is_reltime(ev) (snd_seq_ev_timemode_type(ev) == SNDRV_SEQ_TIME_MODE_REL)
H A Dseq_midi_event.h48 struct snd_seq_event *ev);
49 int snd_midi_event_encode_byte(struct snd_midi_event *dev, int c, struct snd_seq_event *ev);
52 struct snd_seq_event *ev);
H A Dseq_kernel.h65 int (*event_input)(struct snd_seq_event *ev, int direct, void *private_data, int atomic, int hop);
75 int snd_seq_kernel_client_enqueue(int client, struct snd_seq_event *ev, int atomic, int hop);
76 int snd_seq_kernel_client_dispatch(int client, struct snd_seq_event *ev, int atomic, int hop);
/linux-4.1.27/drivers/connector/
H A Dcn_proc.c70 struct proc_event *ev; proc_fork_connector() local
78 ev = (struct proc_event *)msg->data; proc_fork_connector()
79 memset(&ev->event_data, 0, sizeof(ev->event_data)); proc_fork_connector()
80 get_seq(&msg->seq, &ev->cpu); proc_fork_connector()
81 ev->timestamp_ns = ktime_get_ns(); proc_fork_connector()
82 ev->what = PROC_EVENT_FORK; proc_fork_connector()
85 ev->event_data.fork.parent_pid = parent->pid; proc_fork_connector()
86 ev->event_data.fork.parent_tgid = parent->tgid; proc_fork_connector()
88 ev->event_data.fork.child_pid = task->pid; proc_fork_connector()
89 ev->event_data.fork.child_tgid = task->tgid; proc_fork_connector()
93 msg->len = sizeof(*ev); proc_fork_connector()
102 struct proc_event *ev; proc_exec_connector() local
109 ev = (struct proc_event *)msg->data; proc_exec_connector()
110 memset(&ev->event_data, 0, sizeof(ev->event_data)); proc_exec_connector()
111 get_seq(&msg->seq, &ev->cpu); proc_exec_connector()
112 ev->timestamp_ns = ktime_get_ns(); proc_exec_connector()
113 ev->what = PROC_EVENT_EXEC; proc_exec_connector()
114 ev->event_data.exec.process_pid = task->pid; proc_exec_connector()
115 ev->event_data.exec.process_tgid = task->tgid; proc_exec_connector()
119 msg->len = sizeof(*ev); proc_exec_connector()
127 struct proc_event *ev; proc_id_connector() local
135 ev = (struct proc_event *)msg->data; proc_id_connector()
136 memset(&ev->event_data, 0, sizeof(ev->event_data)); proc_id_connector()
137 ev->what = which_id; proc_id_connector()
138 ev->event_data.id.process_pid = task->pid; proc_id_connector()
139 ev->event_data.id.process_tgid = task->tgid; proc_id_connector()
143 ev->event_data.id.r.ruid = from_kuid_munged(&init_user_ns, cred->uid); proc_id_connector()
144 ev->event_data.id.e.euid = from_kuid_munged(&init_user_ns, cred->euid); proc_id_connector()
146 ev->event_data.id.r.rgid = from_kgid_munged(&init_user_ns, cred->gid); proc_id_connector()
147 ev->event_data.id.e.egid = from_kgid_munged(&init_user_ns, cred->egid); proc_id_connector()
153 get_seq(&msg->seq, &ev->cpu); proc_id_connector()
154 ev->timestamp_ns = ktime_get_ns(); proc_id_connector()
158 msg->len = sizeof(*ev); proc_id_connector()
166 struct proc_event *ev; proc_sid_connector() local
173 ev = (struct proc_event *)msg->data; proc_sid_connector()
174 memset(&ev->event_data, 0, sizeof(ev->event_data)); proc_sid_connector()
175 get_seq(&msg->seq, &ev->cpu); proc_sid_connector()
176 ev->timestamp_ns = ktime_get_ns(); proc_sid_connector()
177 ev->what = PROC_EVENT_SID; proc_sid_connector()
178 ev->event_data.sid.process_pid = task->pid; proc_sid_connector()
179 ev->event_data.sid.process_tgid = task->tgid; proc_sid_connector()
183 msg->len = sizeof(*ev); proc_sid_connector()
191 struct proc_event *ev; proc_ptrace_connector() local
198 ev = (struct proc_event *)msg->data; proc_ptrace_connector()
199 memset(&ev->event_data, 0, sizeof(ev->event_data)); proc_ptrace_connector()
200 get_seq(&msg->seq, &ev->cpu); proc_ptrace_connector()
201 ev->timestamp_ns = ktime_get_ns(); proc_ptrace_connector()
202 ev->what = PROC_EVENT_PTRACE; proc_ptrace_connector()
203 ev->event_data.ptrace.process_pid = task->pid; proc_ptrace_connector()
204 ev->event_data.ptrace.process_tgid = task->tgid; proc_ptrace_connector()
206 ev->event_data.ptrace.tracer_pid = current->pid; proc_ptrace_connector()
207 ev->event_data.ptrace.tracer_tgid = current->tgid; proc_ptrace_connector()
209 ev->event_data.ptrace.tracer_pid = 0; proc_ptrace_connector()
210 ev->event_data.ptrace.tracer_tgid = 0; proc_ptrace_connector()
216 msg->len = sizeof(*ev); proc_ptrace_connector()
224 struct proc_event *ev; proc_comm_connector() local
231 ev = (struct proc_event *)msg->data; proc_comm_connector()
232 memset(&ev->event_data, 0, sizeof(ev->event_data)); proc_comm_connector()
233 get_seq(&msg->seq, &ev->cpu); proc_comm_connector()
234 ev->timestamp_ns = ktime_get_ns(); proc_comm_connector()
235 ev->what = PROC_EVENT_COMM; proc_comm_connector()
236 ev->event_data.comm.process_pid = task->pid; proc_comm_connector()
237 ev->event_data.comm.process_tgid = task->tgid; proc_comm_connector()
238 get_task_comm(ev->event_data.comm.comm, task); proc_comm_connector()
242 msg->len = sizeof(*ev); proc_comm_connector()
250 struct proc_event *ev; proc_coredump_connector() local
257 ev = (struct proc_event *)msg->data; proc_coredump_connector()
258 memset(&ev->event_data, 0, sizeof(ev->event_data)); proc_coredump_connector()
259 get_seq(&msg->seq, &ev->cpu); proc_coredump_connector()
260 ev->timestamp_ns = ktime_get_ns(); proc_coredump_connector()
261 ev->what = PROC_EVENT_COREDUMP; proc_coredump_connector()
262 ev->event_data.coredump.process_pid = task->pid; proc_coredump_connector()
263 ev->event_data.coredump.process_tgid = task->tgid; proc_coredump_connector()
267 msg->len = sizeof(*ev); proc_coredump_connector()
275 struct proc_event *ev; proc_exit_connector() local
282 ev = (struct proc_event *)msg->data; proc_exit_connector()
283 memset(&ev->event_data, 0, sizeof(ev->event_data)); proc_exit_connector()
284 get_seq(&msg->seq, &ev->cpu); proc_exit_connector()
285 ev->timestamp_ns = ktime_get_ns(); proc_exit_connector()
286 ev->what = PROC_EVENT_EXIT; proc_exit_connector()
287 ev->event_data.exit.process_pid = task->pid; proc_exit_connector()
288 ev->event_data.exit.process_tgid = task->tgid; proc_exit_connector()
289 ev->event_data.exit.exit_code = task->exit_code; proc_exit_connector()
290 ev->event_data.exit.exit_signal = task->exit_signal; proc_exit_connector()
294 msg->len = sizeof(*ev); proc_exit_connector()
310 struct proc_event *ev; cn_proc_ack() local
317 ev = (struct proc_event *)msg->data; cn_proc_ack()
318 memset(&ev->event_data, 0, sizeof(ev->event_data)); cn_proc_ack()
320 ev->timestamp_ns = ktime_get_ns(); cn_proc_ack()
321 ev->cpu = -1; cn_proc_ack()
322 ev->what = PROC_EVENT_NONE; cn_proc_ack()
323 ev->event_data.ack.err = err; cn_proc_ack()
326 msg->len = sizeof(*ev); cn_proc_ack()
/linux-4.1.27/net/llc/
H A Dllc_s_ev.c25 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_sap_ev_activation_req() local
27 return ev->type == LLC_SAP_EV_TYPE_SIMPLE && llc_sap_ev_activation_req()
28 ev->prim_type == LLC_SAP_EV_ACTIVATION_REQ ? 0 : 1; llc_sap_ev_activation_req()
33 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_sap_ev_rx_ui() local
36 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_CMD(pdu) && llc_sap_ev_rx_ui()
43 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_sap_ev_unitdata_req() local
45 return ev->type == LLC_SAP_EV_TYPE_PRIM && llc_sap_ev_unitdata_req()
46 ev->prim == LLC_DATAUNIT_PRIM && llc_sap_ev_unitdata_req()
47 ev->prim_type == LLC_PRIM_TYPE_REQ ? 0 : 1; llc_sap_ev_unitdata_req()
53 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_sap_ev_xid_req() local
55 return ev->type == LLC_SAP_EV_TYPE_PRIM && llc_sap_ev_xid_req()
56 ev->prim == LLC_XID_PRIM && llc_sap_ev_xid_req()
57 ev->prim_type == LLC_PRIM_TYPE_REQ ? 0 : 1; llc_sap_ev_xid_req()
62 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_sap_ev_rx_xid_c() local
65 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_CMD(pdu) && llc_sap_ev_rx_xid_c()
72 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_sap_ev_rx_xid_r() local
75 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_RSP(pdu) && llc_sap_ev_rx_xid_r()
82 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_sap_ev_test_req() local
84 return ev->type == LLC_SAP_EV_TYPE_PRIM && llc_sap_ev_test_req()
85 ev->prim == LLC_TEST_PRIM && llc_sap_ev_test_req()
86 ev->prim_type == LLC_PRIM_TYPE_REQ ? 0 : 1; llc_sap_ev_test_req()
91 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_sap_ev_rx_test_c() local
94 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_CMD(pdu) && llc_sap_ev_rx_test_c()
101 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_sap_ev_rx_test_r() local
104 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_RSP(pdu) && llc_sap_ev_rx_test_r()
111 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_sap_ev_deactivation_req() local
113 return ev->type == LLC_SAP_EV_TYPE_SIMPLE && llc_sap_ev_deactivation_req()
114 ev->prim_type == LLC_SAP_EV_DEACTIVATION_REQ ? 0 : 1; llc_sap_ev_deactivation_req()
H A Dllc_c_st.c46 .ev = llc_conn_ev_disc_req,
63 .ev = llc_conn_ev_rst_req,
83 .ev = llc_conn_ev_rx_sabme_cmd_pbit_set_x,
99 .ev = llc_conn_ev_rx_disc_cmd_pbit_set_x,
118 .ev = llc_conn_ev_rx_frmr_rsp_fbit_set_x,
133 .ev = llc_conn_ev_rx_dm_rsp_fbit_set_x,
149 .ev = llc_conn_ev_rx_zzz_cmd_pbit_set_x_inval_nr,
165 .ev = llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns,
181 .ev = llc_conn_ev_rx_zzz_rsp_fbit_set_x_inval_nr,
197 .ev = llc_conn_ev_rx_i_rsp_fbit_set_x_inval_ns,
213 .ev = llc_conn_ev_rx_bad_pdu,
229 .ev = llc_conn_ev_rx_ua_rsp_fbit_set_x,
251 .ev = llc_conn_ev_rx_xxx_rsp_fbit_set_1,
274 .ev = llc_conn_ev_p_tmr_exp,
296 .ev = llc_conn_ev_ack_tmr_exp,
318 .ev = llc_conn_ev_rej_tmr_exp,
340 .ev = llc_conn_ev_busy_tmr_exp,
363 .ev = llc_conn_ev_conn_req,
382 .ev = llc_conn_ev_rx_sabme_cmd_pbit_set_x,
396 .ev = llc_conn_ev_rx_disc_cmd_pbit_set_x,
410 .ev = llc_conn_ev_rx_xxx_cmd_pbit_set_1,
423 .ev = llc_conn_ev_rx_any_frame,
457 .ev = llc_conn_ev_rx_sabme_cmd_pbit_set_x,
481 .ev = llc_conn_ev_rx_ua_rsp_fbit_set_x,
502 .ev = llc_conn_ev_ack_tmr_exp,
523 .ev = llc_conn_ev_rx_disc_cmd_pbit_set_x,
543 .ev = llc_conn_ev_rx_dm_rsp_fbit_set_x,
564 .ev = llc_conn_ev_ack_tmr_exp,
585 .ev = llc_conn_ev_ack_tmr_exp,
626 .ev = llc_conn_ev_data_req,
647 .ev = llc_conn_ev_data_req,
664 .ev = llc_conn_ev_data_req,
684 .ev = llc_conn_ev_local_busy_detected,
704 .ev = llc_conn_ev_local_busy_detected,
727 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns,
750 .ev = llc_conn_ev_rx_i_rsp_fbit_set_0_unexpd_ns,
773 .ev = llc_conn_ev_rx_i_rsp_fbit_set_1_unexpd_ns,
794 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns,
815 .ev = llc_conn_ev_rx_i_rsp_fbit_set_0_unexpd_ns,
831 .ev = llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns,
854 .ev = llc_conn_ev_rx_i_rsp_fbit_set_x,
867 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0,
888 .ev = llc_conn_ev_rx_i_rsp_fbit_set_0,
909 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0,
926 .ev = llc_conn_ev_rx_i_cmd_pbit_set_1,
941 .ev = llc_conn_ev_rx_rr_cmd_pbit_set_0,
956 .ev = llc_conn_ev_rx_rr_rsp_fbit_set_0,
977 .ev = llc_conn_ev_rx_rr_rsp_fbit_set_1,
994 .ev = llc_conn_ev_rx_rr_cmd_pbit_set_1,
1009 .ev = llc_conn_ev_rx_rnr_cmd_pbit_set_0,
1024 .ev = llc_conn_ev_rx_rnr_rsp_fbit_set_0,
1044 .ev = llc_conn_ev_rx_rnr_rsp_fbit_set_1,
1061 .ev = llc_conn_ev_rx_rnr_cmd_pbit_set_1,
1084 .ev = llc_conn_ev_rx_rej_cmd_pbit_set_0,
1107 .ev = llc_conn_ev_rx_rej_rsp_fbit_set_x,
1129 .ev = llc_conn_ev_rx_rej_cmd_pbit_set_0,
1151 .ev = llc_conn_ev_rx_rej_rsp_fbit_set_0,
1168 .ev = llc_conn_ev_rx_rej_cmd_pbit_set_1,
1187 .ev = llc_conn_ev_init_p_f_cycle,
1209 .ev = llc_conn_ev_p_tmr_exp,
1232 .ev = llc_conn_ev_ack_tmr_exp,
1255 .ev = llc_conn_ev_busy_tmr_exp,
1274 .ev = llc_conn_ev_tx_buffer_full,
1358 .ev = llc_conn_ev_data_req,
1378 .ev = llc_conn_ev_data_req,
1395 .ev = llc_conn_ev_data_req,
1415 .ev = llc_conn_ev_local_busy_cleared,
1435 .ev = llc_conn_ev_local_busy_cleared,
1454 .ev = llc_conn_ev_local_busy_cleared,
1473 .ev = llc_conn_ev_local_busy_cleared,
1492 .ev = llc_conn_ev_local_busy_cleared,
1511 .ev = llc_conn_ev_local_busy_cleared,
1533 .ev = llc_conn_ev_rx_i_rsp_fbit_set_x_unexpd_ns,
1555 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns,
1575 .ev = llc_conn_ev_rx_i_rsp_fbit_set_0_unexpd_ns,
1595 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns,
1610 .ev = llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns,
1628 .ev = llc_conn_ev_rx_i_cmd_pbit_set_1,
1653 .ev = llc_conn_ev_rx_i_rsp_fbit_set_x,
1678 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0,
1701 .ev = llc_conn_ev_rx_i_rsp_fbit_set_0,
1724 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0,
1739 .ev = llc_conn_ev_rx_rr_cmd_pbit_set_0,
1754 .ev = llc_conn_ev_rx_rr_rsp_fbit_set_0,
1774 .ev = llc_conn_ev_rx_rr_rsp_fbit_set_1,
1789 .ev = llc_conn_ev_rx_rr_cmd_pbit_set_1,
1804 .ev = llc_conn_ev_rx_rnr_cmd_pbit_set_0,
1819 .ev = llc_conn_ev_rx_rnr_rsp_fbit_set_0,
1839 .ev = llc_conn_ev_rx_rnr_rsp_fbit_set_1,
1854 .ev = llc_conn_ev_rx_rnr_cmd_pbit_set_1,
1876 .ev = llc_conn_ev_rx_rej_cmd_pbit_set_0,
1898 .ev = llc_conn_ev_rx_rej_rsp_fbit_set_x,
1919 .ev = llc_conn_ev_rx_rej_cmd_pbit_set_0,
1940 .ev = llc_conn_ev_rx_rej_rsp_fbit_set_0,
1957 .ev = llc_conn_ev_rx_rej_cmd_pbit_set_1,
1976 .ev = llc_conn_ev_init_p_f_cycle,
1997 .ev = llc_conn_ev_p_tmr_exp,
2019 .ev = llc_conn_ev_ack_tmr_exp,
2041 .ev = llc_conn_ev_busy_tmr_exp,
2064 .ev = llc_conn_ev_rej_tmr_exp,
2083 .ev = llc_conn_ev_rej_tmr_exp,
2170 .ev = llc_conn_ev_data_req,
2189 .ev = llc_conn_ev_data_req,
2206 .ev = llc_conn_ev_data_req,
2226 .ev = llc_conn_ev_local_busy_detected,
2245 .ev = llc_conn_ev_local_busy_detected,
2260 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns,
2275 .ev = llc_conn_ev_rx_i_rsp_fbit_set_0_unexpd_ns,
2295 .ev = llc_conn_ev_rx_i_rsp_fbit_set_1_unexpd_ns,
2309 .ev = llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns,
2334 .ev = llc_conn_ev_rx_i_rsp_fbit_set_x,
2358 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0,
2380 .ev = llc_conn_ev_rx_i_rsp_fbit_set_0,
2402 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0,
2419 .ev = llc_conn_ev_rx_i_cmd_pbit_set_1,
2434 .ev = llc_conn_ev_rx_rr_cmd_pbit_set_0,
2449 .ev = llc_conn_ev_rx_rr_rsp_fbit_set_0,
2469 .ev = llc_conn_ev_rx_rr_rsp_fbit_set_1,
2484 .ev = llc_conn_ev_rx_rr_cmd_pbit_set_1,
2499 .ev = llc_conn_ev_rx_rnr_cmd_pbit_set_0,
2514 .ev = llc_conn_ev_rx_rnr_rsp_fbit_set_0,
2534 .ev = llc_conn_ev_rx_rnr_rsp_fbit_set_1,
2549 .ev = llc_conn_ev_rx_rnr_cmd_pbit_set_1,
2571 .ev = llc_conn_ev_rx_rej_cmd_pbit_set_0,
2593 .ev = llc_conn_ev_rx_rej_rsp_fbit_set_x,
2614 .ev = llc_conn_ev_rx_rej_cmd_pbit_set_0,
2635 .ev = llc_conn_ev_rx_rej_rsp_fbit_set_0,
2651 .ev = llc_conn_ev_rx_rej_cmd_pbit_set_1,
2670 .ev = llc_conn_ev_init_p_f_cycle,
2692 .ev = llc_conn_ev_rej_tmr_exp,
2714 .ev = llc_conn_ev_p_tmr_exp,
2737 .ev = llc_conn_ev_ack_tmr_exp,
2760 .ev = llc_conn_ev_busy_tmr_exp,
2838 .ev = llc_conn_ev_data_req,
2852 .ev = llc_conn_ev_local_busy_detected,
2871 .ev = llc_conn_ev_rx_i_rsp_fbit_set_1_unexpd_ns,
2887 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns,
2903 .ev = llc_conn_ev_rx_i_rsp_fbit_set_0_unexpd_ns,
2920 .ev = llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns,
2939 .ev = llc_conn_ev_rx_i_rsp_fbit_set_1,
2956 .ev = llc_conn_ev_rx_i_rsp_fbit_set_0,
2973 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0,
2990 .ev = llc_conn_ev_rx_i_cmd_pbit_set_1,
3007 .ev = llc_conn_ev_rx_rr_rsp_fbit_set_1,
3024 .ev = llc_conn_ev_rx_rej_rsp_fbit_set_1,
3039 .ev = llc_conn_ev_rx_rr_cmd_pbit_set_0,
3054 .ev = llc_conn_ev_rx_rr_rsp_fbit_set_0,
3069 .ev = llc_conn_ev_rx_rej_cmd_pbit_set_0,
3084 .ev = llc_conn_ev_rx_rej_rsp_fbit_set_0,
3100 .ev = llc_conn_ev_rx_rr_cmd_pbit_set_1,
3116 .ev = llc_conn_ev_rx_rej_cmd_pbit_set_1,
3132 .ev = llc_conn_ev_rx_rnr_rsp_fbit_set_1,
3147 .ev = llc_conn_ev_rx_rnr_cmd_pbit_set_0,
3162 .ev = llc_conn_ev_rx_rnr_rsp_fbit_set_0,
3178 .ev = llc_conn_ev_rx_rnr_cmd_pbit_set_1,
3198 .ev = llc_conn_ev_p_tmr_exp,
3267 .ev = llc_conn_ev_data_req,
3286 .ev = llc_conn_ev_local_busy_cleared,
3304 .ev = llc_conn_ev_local_busy_cleared,
3322 .ev = llc_conn_ev_local_busy_cleared,
3341 .ev = llc_conn_ev_rx_i_rsp_fbit_set_1_unexpd_ns,
3357 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns,
3373 .ev = llc_conn_ev_rx_i_rsp_fbit_set_0_unexpd_ns,
3389 .ev = llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns,
3410 .ev = llc_conn_ev_rx_i_rsp_fbit_set_1,
3428 .ev = llc_conn_ev_rx_i_rsp_fbit_set_0,
3446 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0,
3464 .ev = llc_conn_ev_rx_i_cmd_pbit_set_1,
3481 .ev = llc_conn_ev_rx_rr_rsp_fbit_set_1,
3498 .ev = llc_conn_ev_rx_rej_rsp_fbit_set_1,
3513 .ev = llc_conn_ev_rx_rr_cmd_pbit_set_0,
3528 .ev = llc_conn_ev_rx_rr_rsp_fbit_set_0,
3543 .ev = llc_conn_ev_rx_rej_cmd_pbit_set_0,
3558 .ev = llc_conn_ev_rx_rej_rsp_fbit_set_0,
3574 .ev = llc_conn_ev_rx_rr_cmd_pbit_set_1,
3590 .ev = llc_conn_ev_rx_rej_cmd_pbit_set_1,
3606 .ev = llc_conn_ev_rx_rnr_rsp_fbit_set_1,
3621 .ev = llc_conn_ev_rx_rnr_cmd_pbit_set_0,
3636 .ev = llc_conn_ev_rx_rnr_rsp_fbit_set_0,
3652 .ev = llc_conn_ev_rx_rnr_cmd_pbit_set_1,
3672 .ev = llc_conn_ev_p_tmr_exp,
3743 .ev = llc_conn_ev_data_req,
3757 .ev = llc_conn_ev_local_busy_detected,
3771 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns,
3785 .ev = llc_conn_ev_rx_i_rsp_fbit_set_0_unexpd_ns,
3800 .ev = llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns,
3820 .ev = llc_conn_ev_rx_i_rsp_fbit_set_1,
3838 .ev = llc_conn_ev_rx_i_rsp_fbit_set_0,
3856 .ev = llc_conn_ev_rx_i_cmd_pbit_set_0,
3874 .ev = llc_conn_ev_rx_i_cmd_pbit_set_1,
3891 .ev = llc_conn_ev_rx_rr_rsp_fbit_set_1,
3908 .ev = llc_conn_ev_rx_rej_rsp_fbit_set_1,
3925 .ev = llc_conn_ev_rx_i_rsp_fbit_set_1_unexpd_ns,
3940 .ev = llc_conn_ev_rx_rr_cmd_pbit_set_0,
3955 .ev = llc_conn_ev_rx_rr_rsp_fbit_set_0,
3970 .ev = llc_conn_ev_rx_rej_cmd_pbit_set_0,
3985 .ev = llc_conn_ev_rx_rej_rsp_fbit_set_0,
4001 .ev = llc_conn_ev_rx_rr_cmd_pbit_set_1,
4017 .ev = llc_conn_ev_rx_rej_cmd_pbit_set_1,
4033 .ev = llc_conn_ev_rx_rnr_rsp_fbit_set_1,
4048 .ev = llc_conn_ev_rx_rnr_cmd_pbit_set_0,
4063 .ev = llc_conn_ev_rx_rnr_rsp_fbit_set_0,
4079 .ev = llc_conn_ev_rx_rnr_cmd_pbit_set_1,
4099 .ev = llc_conn_ev_p_tmr_exp,
4175 .ev = llc_conn_ev_rx_sabme_cmd_pbit_set_x,
4198 .ev = llc_conn_ev_rx_sabme_cmd_pbit_set_x,
4222 .ev = llc_conn_ev_rx_ua_rsp_fbit_set_x,
4245 .ev = llc_conn_ev_rx_ua_rsp_fbit_set_x,
4258 .ev = llc_conn_ev_rx_disc_cmd_pbit_set_x,
4281 .ev = llc_conn_ev_rx_dm_rsp_fbit_set_x,
4303 .ev = llc_conn_ev_rx_dm_rsp_fbit_set_x,
4322 .ev = llc_conn_ev_data_req,
4342 .ev = llc_conn_ev_ack_tmr_exp,
4363 .ev = llc_conn_ev_ack_tmr_exp,
4383 .ev = llc_conn_ev_ack_tmr_exp,
4423 .ev = llc_conn_ev_rx_sabme_cmd_pbit_set_x,
4451 .ev = llc_conn_ev_rx_ua_rsp_fbit_set_x,
4479 .ev = llc_conn_ev_rx_ua_rsp_fbit_set_x,
4499 .ev = llc_conn_ev_ack_tmr_exp,
4522 .ev = llc_conn_ev_rx_disc_cmd_pbit_set_x,
4545 .ev = llc_conn_ev_rx_disc_cmd_pbit_set_x,
4568 .ev = llc_conn_ev_rx_dm_rsp_fbit_set_x,
4590 .ev = llc_conn_ev_rx_dm_rsp_fbit_set_x,
4606 .ev = llc_conn_ev_data_req,
4627 .ev = llc_conn_ev_ack_tmr_exp,
4648 .ev = llc_conn_ev_ack_tmr_exp,
4669 .ev = llc_conn_ev_ack_tmr_exp,
4714 .ev = llc_conn_ev_rx_sabme_cmd_pbit_set_x,
4730 .ev = llc_conn_ev_rx_disc_cmd_pbit_set_x,
4745 .ev = llc_conn_ev_rx_dm_rsp_fbit_set_x,
4761 .ev = llc_conn_ev_rx_frmr_rsp_fbit_set_x,
4774 .ev = llc_conn_ev_rx_xxx_cmd_pbit_set_x,
4782 .ev = llc_conn_ev_rx_xxx_rsp_fbit_set_x,
4802 .ev = llc_conn_ev_ack_tmr_exp,
4824 .ev = llc_conn_ev_ack_tmr_exp,
4840 .ev = llc_conn_ev_data_req,
4877 .ev = llc_conn_ev_disc_req,
H A Dllc_s_st.c38 .ev = llc_sap_ev_activation_req,
56 .ev = llc_sap_ev_rx_ui,
68 .ev = llc_sap_ev_unitdata_req,
80 .ev = llc_sap_ev_xid_req,
92 .ev = llc_sap_ev_rx_xid_c,
104 .ev = llc_sap_ev_rx_xid_r,
116 .ev = llc_sap_ev_test_req,
128 .ev = llc_sap_ev_rx_test_c,
140 .ev = llc_sap_ev_rx_test_r,
154 .ev = llc_sap_ev_deactivation_req,
H A Dllc_if.c44 struct llc_conn_state_ev *ev; llc_build_and_send_pkt() local
56 ev = llc_conn_ev(skb); llc_build_and_send_pkt()
57 ev->type = LLC_CONN_EV_TYPE_PRIM; llc_build_and_send_pkt()
58 ev->prim = LLC_DATA_PRIM; llc_build_and_send_pkt()
59 ev->prim_type = LLC_PRIM_TYPE_REQ; llc_build_and_send_pkt()
103 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_establish_connection() local
105 ev->type = LLC_CONN_EV_TYPE_PRIM; llc_establish_connection()
106 ev->prim = LLC_CONN_PRIM; llc_establish_connection()
107 ev->prim_type = LLC_PRIM_TYPE_REQ; llc_establish_connection()
128 struct llc_conn_state_ev *ev; llc_send_disc() local
145 ev = llc_conn_ev(skb); llc_send_disc()
146 ev->type = LLC_CONN_EV_TYPE_PRIM; llc_send_disc()
147 ev->prim = LLC_DISC_PRIM; llc_send_disc()
148 ev->prim_type = LLC_PRIM_TYPE_REQ; llc_send_disc()
H A Dllc_sap.c93 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_sap_rtn_pdu() local
98 ev->prim = LLC_TEST_PRIM; break; llc_sap_rtn_pdu()
100 ev->prim = LLC_XID_PRIM; break; llc_sap_rtn_pdu()
102 ev->prim = LLC_DATAUNIT_PRIM; break; llc_sap_rtn_pdu()
104 ev->ind_cfm_flag = LLC_IND; llc_sap_rtn_pdu()
127 for (next_trans = curr_state->transitions; next_trans[i]->ev; i++) llc_find_sap_trans()
128 if (!next_trans[i]->ev(sap, skb)) { llc_find_sap_trans()
203 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_sap_state_process() local
211 ev->ind_cfm_flag = 0; llc_sap_state_process()
213 if (ev->ind_cfm_flag == LLC_IND) { llc_sap_state_process()
217 llc_save_primitive(skb->sk, skb, ev->prim); llc_sap_state_process()
240 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_build_and_send_test_pkt() local
242 ev->saddr.lsap = sap->laddr.lsap; llc_build_and_send_test_pkt()
243 ev->daddr.lsap = dsap; llc_build_and_send_test_pkt()
244 memcpy(ev->saddr.mac, skb->dev->dev_addr, IFHWADDRLEN); llc_build_and_send_test_pkt()
245 memcpy(ev->daddr.mac, dmac, IFHWADDRLEN); llc_build_and_send_test_pkt()
247 ev->type = LLC_SAP_EV_TYPE_PRIM; llc_build_and_send_test_pkt()
248 ev->prim = LLC_TEST_PRIM; llc_build_and_send_test_pkt()
249 ev->prim_type = LLC_PRIM_TYPE_REQ; llc_build_and_send_test_pkt()
266 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_build_and_send_xid_pkt() local
268 ev->saddr.lsap = sap->laddr.lsap; llc_build_and_send_xid_pkt()
269 ev->daddr.lsap = dsap; llc_build_and_send_xid_pkt()
270 memcpy(ev->saddr.mac, skb->dev->dev_addr, IFHWADDRLEN); llc_build_and_send_xid_pkt()
271 memcpy(ev->daddr.mac, dmac, IFHWADDRLEN); llc_build_and_send_xid_pkt()
273 ev->type = LLC_SAP_EV_TYPE_PRIM; llc_build_and_send_xid_pkt()
274 ev->prim = LLC_XID_PRIM; llc_build_and_send_xid_pkt()
275 ev->prim_type = LLC_PRIM_TYPE_REQ; llc_build_and_send_xid_pkt()
289 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_sap_rcv() local
291 ev->type = LLC_SAP_EV_TYPE_PDU; llc_sap_rcv()
292 ev->reason = 0; llc_sap_rcv()
H A Dllc_c_ev.c101 const struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_conn_req() local
103 return ev->prim == LLC_CONN_PRIM && llc_conn_ev_conn_req()
104 ev->prim_type == LLC_PRIM_TYPE_REQ ? 0 : 1; llc_conn_ev_conn_req()
109 const struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_data_req() local
111 return ev->prim == LLC_DATA_PRIM && llc_conn_ev_data_req()
112 ev->prim_type == LLC_PRIM_TYPE_REQ ? 0 : 1; llc_conn_ev_data_req()
117 const struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_disc_req() local
119 return ev->prim == LLC_DISC_PRIM && llc_conn_ev_disc_req()
120 ev->prim_type == LLC_PRIM_TYPE_REQ ? 0 : 1; llc_conn_ev_disc_req()
125 const struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_rst_req() local
127 return ev->prim == LLC_RESET_PRIM && llc_conn_ev_rst_req()
128 ev->prim_type == LLC_PRIM_TYPE_REQ ? 0 : 1; llc_conn_ev_rst_req()
133 const struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_local_busy_detected() local
135 return ev->type == LLC_CONN_EV_TYPE_SIMPLE && llc_conn_ev_local_busy_detected()
136 ev->prim_type == LLC_CONN_EV_LOCAL_BUSY_DETECTED ? 0 : 1; llc_conn_ev_local_busy_detected()
141 const struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_local_busy_cleared() local
143 return ev->type == LLC_CONN_EV_TYPE_SIMPLE && llc_conn_ev_local_busy_cleared()
144 ev->prim_type == LLC_CONN_EV_LOCAL_BUSY_CLEARED ? 0 : 1; llc_conn_ev_local_busy_cleared()
545 const struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_p_tmr_exp() local
547 return ev->type != LLC_CONN_EV_TYPE_P_TMR; llc_conn_ev_p_tmr_exp()
552 const struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_ack_tmr_exp() local
554 return ev->type != LLC_CONN_EV_TYPE_ACK_TMR; llc_conn_ev_ack_tmr_exp()
559 const struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_rej_tmr_exp() local
561 return ev->type != LLC_CONN_EV_TYPE_REJ_TMR; llc_conn_ev_rej_tmr_exp()
566 const struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_busy_tmr_exp() local
568 return ev->type != LLC_CONN_EV_TYPE_BUSY_TMR; llc_conn_ev_busy_tmr_exp()
578 const struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_tx_buffer_full() local
580 return ev->type == LLC_CONN_EV_TYPE_SIMPLE && llc_conn_ev_tx_buffer_full()
581 ev->prim_type == LLC_CONN_EV_TX_BUFF_FULL ? 0 : 1; llc_conn_ev_tx_buffer_full()
695 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_qlfy_set_status_conn() local
697 ev->status = LLC_STATUS_CONN; llc_conn_ev_qlfy_set_status_conn()
703 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_qlfy_set_status_disc() local
705 ev->status = LLC_STATUS_DISC; llc_conn_ev_qlfy_set_status_disc()
711 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_qlfy_set_status_failed() local
713 ev->status = LLC_STATUS_FAILED; llc_conn_ev_qlfy_set_status_failed()
720 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_qlfy_set_status_remote_busy() local
722 ev->status = LLC_STATUS_REMOTE_BUSY; llc_conn_ev_qlfy_set_status_remote_busy()
728 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_qlfy_set_status_refuse() local
730 ev->status = LLC_STATUS_REFUSE; llc_conn_ev_qlfy_set_status_refuse()
736 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_qlfy_set_status_conflict() local
738 ev->status = LLC_STATUS_CONFLICT; llc_conn_ev_qlfy_set_status_conflict()
744 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ev_qlfy_set_status_rst_done() local
746 ev->status = LLC_STATUS_RESET_DONE; llc_conn_ev_qlfy_set_status_rst_done()
H A Dllc_s_ac.c54 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_sap_action_send_ui() local
57 llc_pdu_header_init(skb, LLC_PDU_TYPE_U, ev->saddr.lsap, llc_sap_action_send_ui()
58 ev->daddr.lsap, LLC_PDU_CMD); llc_sap_action_send_ui()
60 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); llc_sap_action_send_ui()
77 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_sap_action_send_xid_c() local
80 llc_pdu_header_init(skb, LLC_PDU_TYPE_U, ev->saddr.lsap, llc_sap_action_send_xid_c()
81 ev->daddr.lsap, LLC_PDU_CMD); llc_sap_action_send_xid_c()
83 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); llc_sap_action_send_xid_c()
131 struct llc_sap_state_ev *ev = llc_sap_ev(skb); llc_sap_action_send_test_c() local
134 llc_pdu_header_init(skb, LLC_PDU_TYPE_U, ev->saddr.lsap, llc_sap_action_send_test_c()
135 ev->daddr.lsap, LLC_PDU_CMD); llc_sap_action_send_test_c()
137 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); llc_sap_action_send_test_c()
H A Dllc_c_ac.c34 static int llc_conn_ac_data_confirm(struct sock *sk, struct sk_buff *ev);
63 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ac_conn_ind() local
65 ev->ind_prim = LLC_CONN_PRIM; llc_conn_ac_conn_ind()
71 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ac_conn_confirm() local
73 ev->cfm_prim = LLC_CONN_PRIM; llc_conn_ac_conn_confirm()
79 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ac_data_confirm() local
81 ev->cfm_prim = LLC_DATA_PRIM; llc_conn_ac_data_confirm()
93 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ac_disc_ind() local
97 if (ev->type == LLC_CONN_EV_TYPE_PDU) { llc_conn_ac_disc_ind()
108 } else if (ev->type == LLC_CONN_EV_TYPE_ACK_TMR) llc_conn_ac_disc_ind()
113 ev->reason = reason; llc_conn_ac_disc_ind()
114 ev->ind_prim = LLC_DISC_PRIM; llc_conn_ac_disc_ind()
121 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ac_disc_confirm() local
123 ev->reason = ev->status; llc_conn_ac_disc_confirm()
124 ev->cfm_prim = LLC_DISC_PRIM; llc_conn_ac_disc_confirm()
132 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ac_rst_ind() local
136 switch (ev->type) { llc_conn_ac_rst_ind()
161 ev->reason = reason; llc_conn_ac_rst_ind()
162 ev->ind_prim = LLC_RESET_PRIM; llc_conn_ac_rst_ind()
169 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_ac_rst_confirm() local
171 ev->reason = 0; llc_conn_ac_rst_confirm()
172 ev->cfm_prim = LLC_RESET_PRIM; llc_conn_ac_rst_confirm()
1328 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_tmr_common_cb() local
1331 ev->type = type; llc_conn_tmr_common_cb()
H A Dllc_conn.c37 struct sk_buff *ev);
63 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_state_process() local
71 ev->ind_prim = ev->cfm_prim = 0; llc_conn_state_process()
81 if (unlikely(!ev->ind_prim && !ev->cfm_prim)) { llc_conn_state_process()
88 if (unlikely(ev->ind_prim && ev->cfm_prim)) /* Paranoia */ llc_conn_state_process()
91 switch (ev->ind_prim) { llc_conn_state_process()
136 if (ev->ind_prim) { llc_conn_state_process()
138 __func__, ev->ind_prim); llc_conn_state_process()
145 switch (ev->cfm_prim) { llc_conn_state_process()
155 if (ev->status) { llc_conn_state_process()
182 if (ev->cfm_prim) { llc_conn_state_process()
184 __func__, ev->cfm_prim); llc_conn_state_process()
214 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_rtn_pdu() local
216 ev->ind_prim = LLC_DATA_PRIM; llc_conn_rtn_pdu()
410 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_qualify_conn_ev() local
419 llc_find_offset(llc->state - 1, ev->type); llc_qualify_conn_ev()
420 (*next_trans)->ev; next_trans++) { llc_qualify_conn_ev()
421 if (!((*next_trans)->ev)(sk, skb)) { llc_qualify_conn_ev()
649 (*next_trans)->ev; next_trans++) llc_find_next_offset()
758 struct llc_conn_state_ev *ev = llc_conn_ev(skb); llc_conn_rcv() local
760 ev->type = LLC_CONN_EV_TYPE_PDU; llc_conn_rcv()
761 ev->reason = 0; llc_conn_rcv()
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
H A Devents.c54 void request_out_callback(lnet_event_t *ev) request_out_callback() argument
56 struct ptlrpc_cb_id *cbid = ev->md.user_ptr; request_out_callback()
59 LASSERT(ev->type == LNET_EVENT_SEND || request_out_callback()
60 ev->type == LNET_EVENT_UNLINK); request_out_callback()
61 LASSERT(ev->unlinked); request_out_callback()
63 DEBUG_REQ(D_NET, req, "type %d, status %d", ev->type, ev->status); request_out_callback()
68 if (ev->unlinked) request_out_callback()
71 if (ev->type == LNET_EVENT_UNLINK || ev->status != 0) { request_out_callback()
87 void reply_in_callback(lnet_event_t *ev) reply_in_callback() argument
89 struct ptlrpc_cb_id *cbid = ev->md.user_ptr; reply_in_callback()
92 DEBUG_REQ(D_NET, req, "type %d, status %d", ev->type, ev->status); reply_in_callback()
94 LASSERT(ev->type == LNET_EVENT_PUT || ev->type == LNET_EVENT_UNLINK); reply_in_callback()
95 LASSERT(ev->md.start == req->rq_repbuf); reply_in_callback()
96 LASSERT(ev->offset + ev->mlength <= req->rq_repbuf_len); reply_in_callback()
99 LASSERT((ev->md.options & LNET_MD_MANAGE_REMOTE) != 0); reply_in_callback()
105 if (ev->unlinked) reply_in_callback()
108 if (ev->status) reply_in_callback()
111 if (ev->type == LNET_EVENT_UNLINK) { reply_in_callback()
112 LASSERT(ev->unlinked); reply_in_callback()
117 if (ev->mlength < ev->rlength) { reply_in_callback()
119 req->rq_replen, ev->rlength, ev->offset); reply_in_callback()
123 req->rq_nob_received = ev->rlength + ev->offset; reply_in_callback()
127 if ((ev->offset == 0) && reply_in_callback()
132 ev->mlength, ev->offset, reply_in_callback()
133 req->rq_replen, req->rq_replied, ev->unlinked); reply_in_callback()
141 req->rq_reply_off = ev->offset; reply_in_callback()
142 req->rq_nob_received = ev->mlength; reply_in_callback()
151 req->rq_reply_off = ev->offset; reply_in_callback()
152 req->rq_nob_received = ev->mlength; reply_in_callback()
158 ev->mlength, ev->offset, req->rq_replen); reply_in_callback()
173 void client_bulk_callback(lnet_event_t *ev) client_bulk_callback() argument
175 struct ptlrpc_cb_id *cbid = ev->md.user_ptr; client_bulk_callback()
180 ev->type == LNET_EVENT_PUT) || client_bulk_callback()
182 ev->type == LNET_EVENT_GET) || client_bulk_callback()
183 ev->type == LNET_EVENT_UNLINK); client_bulk_callback()
184 LASSERT(ev->unlinked); client_bulk_callback()
187 ev->status = -EIO; client_bulk_callback()
191 ev->status = -EIO; client_bulk_callback()
193 CDEBUG((ev->status == 0) ? D_NET : D_ERROR, client_bulk_callback()
195 ev->type, ev->status, desc); client_bulk_callback()
202 if (ev->type != LNET_EVENT_UNLINK && ev->status == 0) { client_bulk_callback()
203 desc->bd_nob_transferred += ev->mlength; client_bulk_callback()
204 desc->bd_sender = ev->sender; client_bulk_callback()
212 if (ev->status != 0) client_bulk_callback()
282 void request_in_callback(lnet_event_t *ev) request_in_callback() argument
284 struct ptlrpc_cb_id *cbid = ev->md.user_ptr; request_in_callback()
290 LASSERT(ev->type == LNET_EVENT_PUT || request_in_callback()
291 ev->type == LNET_EVENT_UNLINK); request_in_callback()
292 LASSERT((char *)ev->md.start >= rqbd->rqbd_buffer); request_in_callback()
293 LASSERT((char *)ev->md.start + ev->offset + ev->mlength <= request_in_callback()
296 CDEBUG((ev->status == 0) ? D_NET : D_ERROR, request_in_callback()
298 ev->type, ev->status, service->srv_name); request_in_callback()
300 if (ev->unlinked) { request_in_callback()
309 LASSERT(ev->type == LNET_EVENT_PUT); request_in_callback()
310 if (ev->status != 0) { request_in_callback()
318 libcfs_id2str(ev->initiator)); request_in_callback()
326 req->rq_xid = ev->match_bits; request_in_callback()
327 req->rq_reqbuf = ev->md.start + ev->offset; request_in_callback()
328 if (ev->type == LNET_EVENT_PUT && ev->status == 0) request_in_callback()
329 req->rq_reqdata_len = ev->mlength; request_in_callback()
331 req->rq_peer = ev->initiator; request_in_callback()
332 req->rq_self = ev->target.nid; request_in_callback()
339 if (ev->type == LNET_EVENT_PUT) request_in_callback()
341 req, req->rq_xid, ev->mlength); request_in_callback()
349 if (ev->unlinked) { request_in_callback()
357 ev->type != LNET_EVENT_UNLINK && request_in_callback()
381 void reply_out_callback(lnet_event_t *ev) reply_out_callback() argument
383 struct ptlrpc_cb_id *cbid = ev->md.user_ptr; reply_out_callback()
387 LASSERT(ev->type == LNET_EVENT_SEND || reply_out_callback()
388 ev->type == LNET_EVENT_ACK || reply_out_callback()
389 ev->type == LNET_EVENT_UNLINK); reply_out_callback()
394 LASSERT(ev->unlinked); reply_out_callback()
401 if (ev->unlinked) { reply_out_callback()
419 static void ptlrpc_master_callback(lnet_event_t *ev) ptlrpc_master_callback() argument
421 struct ptlrpc_cb_id *cbid = ev->md.user_ptr; ptlrpc_master_callback()
422 void (*callback)(lnet_event_t *ev) = cbid->cbid_fn; ptlrpc_master_callback()
432 callback(ev); ptlrpc_master_callback()
/linux-4.1.27/sound/core/seq/
H A Dseq_midi_event.c46 static void note_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
47 static void one_param_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
48 static void pitchbend_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
49 static void two_param_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
50 static void one_param_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
51 static void songpos_event(struct snd_midi_event *dev, struct snd_seq_event *ev);
52 static void note_decode(struct snd_seq_event *ev, unsigned char *buf);
53 static void one_param_decode(struct snd_seq_event *ev, unsigned char *buf);
54 static void pitchbend_decode(struct snd_seq_event *ev, unsigned char *buf);
55 static void two_param_decode(struct snd_seq_event *ev, unsigned char *buf);
56 static void songpos_decode(struct snd_seq_event *ev, unsigned char *buf);
64 void (*encode)(struct snd_midi_event *dev, struct snd_seq_event *ev);
65 void (*decode)(struct snd_seq_event *ev, unsigned char *buf);
97 struct snd_seq_event *ev);
99 struct snd_seq_event *ev);
104 struct snd_seq_event *ev);
217 struct snd_seq_event *ev) snd_midi_event_encode()
222 ev->type = SNDRV_SEQ_EVENT_NONE; snd_midi_event_encode()
225 rc = snd_midi_event_encode_byte(dev, *buf++, ev); snd_midi_event_encode()
243 struct snd_seq_event *ev) snd_midi_event_encode_byte()
252 ev->type = status_event[ST_SPECIAL + c - 0xf0].event; snd_midi_event_encode_byte()
253 ev->flags &= ~SNDRV_SEQ_EVENT_LENGTH_MASK; snd_midi_event_encode_byte()
254 ev->flags |= SNDRV_SEQ_EVENT_LENGTH_FIXED; snd_midi_event_encode_byte()
255 return ev->type != SNDRV_SEQ_EVENT_NONE; snd_midi_event_encode_byte()
283 ev->type = status_event[dev->type].event; snd_midi_event_encode_byte()
284 ev->flags &= ~SNDRV_SEQ_EVENT_LENGTH_MASK; snd_midi_event_encode_byte()
285 ev->flags |= SNDRV_SEQ_EVENT_LENGTH_FIXED; snd_midi_event_encode_byte()
287 status_event[dev->type].encode(dev, ev); snd_midi_event_encode_byte()
294 ev->flags &= ~SNDRV_SEQ_EVENT_LENGTH_MASK; snd_midi_event_encode_byte()
295 ev->flags |= SNDRV_SEQ_EVENT_LENGTH_VARIABLE; snd_midi_event_encode_byte()
296 ev->type = SNDRV_SEQ_EVENT_SYSEX; snd_midi_event_encode_byte()
297 ev->data.ext.len = dev->read; snd_midi_event_encode_byte()
298 ev->data.ext.ptr = dev->buf; snd_midi_event_encode_byte()
312 static void note_event(struct snd_midi_event *dev, struct snd_seq_event *ev) note_event() argument
314 ev->data.note.channel = dev->buf[0] & 0x0f; note_event()
315 ev->data.note.note = dev->buf[1]; note_event()
316 ev->data.note.velocity = dev->buf[2]; note_event()
320 static void one_param_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev) one_param_ctrl_event() argument
322 ev->data.control.channel = dev->buf[0] & 0x0f; one_param_ctrl_event()
323 ev->data.control.value = dev->buf[1]; one_param_ctrl_event()
327 static void pitchbend_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev) pitchbend_ctrl_event() argument
329 ev->data.control.channel = dev->buf[0] & 0x0f; pitchbend_ctrl_event()
330 ev->data.control.value = (int)dev->buf[2] * 128 + (int)dev->buf[1] - 8192; pitchbend_ctrl_event()
334 static void two_param_ctrl_event(struct snd_midi_event *dev, struct snd_seq_event *ev) two_param_ctrl_event() argument
336 ev->data.control.channel = dev->buf[0] & 0x0f; two_param_ctrl_event()
337 ev->data.control.param = dev->buf[1]; two_param_ctrl_event()
338 ev->data.control.value = dev->buf[2]; two_param_ctrl_event()
342 static void one_param_event(struct snd_midi_event *dev, struct snd_seq_event *ev) one_param_event() argument
344 ev->data.control.value = dev->buf[1]; one_param_event()
348 static void songpos_event(struct snd_midi_event *dev, struct snd_seq_event *ev) songpos_event() argument
350 ev->data.control.value = (int)dev->buf[2] * 128 + (int)dev->buf[1]; songpos_event()
358 struct snd_seq_event *ev) snd_midi_event_decode()
362 if (ev->type == SNDRV_SEQ_EVENT_NONE) snd_midi_event_decode()
366 if (ev->type == status_event[type].event) snd_midi_event_decode()
370 if (ev->type == extra_event[type].event) snd_midi_event_decode()
371 return extra_event[type].decode(dev, buf, count, ev); snd_midi_event_decode()
380 cmd = 0x80 | (type << 4) | (ev->data.note.channel & 0x0f); snd_midi_event_decode()
385 return snd_seq_expand_var_event(ev, count, buf, 1, 0); snd_midi_event_decode()
397 status_event[type].decode(ev, xbuf + 1); snd_midi_event_decode()
402 status_event[type].decode(ev, xbuf + 0); snd_midi_event_decode()
414 static void note_decode(struct snd_seq_event *ev, unsigned char *buf) note_decode() argument
416 buf[0] = ev->data.note.note & 0x7f; note_decode()
417 buf[1] = ev->data.note.velocity & 0x7f; note_decode()
421 static void one_param_decode(struct snd_seq_event *ev, unsigned char *buf) one_param_decode() argument
423 buf[0] = ev->data.control.value & 0x7f; one_param_decode()
427 static void pitchbend_decode(struct snd_seq_event *ev, unsigned char *buf) pitchbend_decode() argument
429 int value = ev->data.control.value + 8192; pitchbend_decode()
435 static void two_param_decode(struct snd_seq_event *ev, unsigned char *buf) two_param_decode() argument
437 buf[0] = ev->data.control.param & 0x7f; two_param_decode()
438 buf[1] = ev->data.control.value & 0x7f; two_param_decode()
442 static void songpos_decode(struct snd_seq_event *ev, unsigned char *buf) songpos_decode() argument
444 buf[0] = ev->data.control.value & 0x7f; songpos_decode()
445 buf[1] = (ev->data.control.value >> 7) & 0x7f; songpos_decode()
450 int count, struct snd_seq_event *ev) extra_decode_ctrl14()
455 cmd = MIDI_CMD_CONTROL|(ev->data.control.channel & 0x0f); extra_decode_ctrl14()
456 if (ev->data.control.param < 0x20) { extra_decode_ctrl14()
466 buf[idx++] = ev->data.control.param; extra_decode_ctrl14()
467 buf[idx++] = (ev->data.control.value >> 7) & 0x7f; extra_decode_ctrl14()
470 buf[idx++] = ev->data.control.param + 0x20; extra_decode_ctrl14()
471 buf[idx++] = ev->data.control.value & 0x7f; extra_decode_ctrl14()
480 buf[idx++] = ev->data.control.param & 0x7f; extra_decode_ctrl14()
481 buf[idx++] = ev->data.control.value & 0x7f; extra_decode_ctrl14()
488 int count, struct snd_seq_event *ev) extra_decode_xrpn()
507 cmd = MIDI_CMD_CONTROL|(ev->data.control.channel & 0x0f); extra_decode_xrpn()
508 bytes[0] = (ev->data.control.param & 0x3f80) >> 7; extra_decode_xrpn()
509 bytes[1] = ev->data.control.param & 0x007f; extra_decode_xrpn()
510 bytes[2] = (ev->data.control.value & 0x3f80) >> 7; extra_decode_xrpn()
511 bytes[3] = ev->data.control.value & 0x007f; extra_decode_xrpn()
517 cbytes = ev->type == SNDRV_SEQ_EVENT_NONREGPARAM ? cbytes_nrpn : cbytes_rpn; extra_decode_xrpn()
216 snd_midi_event_encode(struct snd_midi_event *dev, unsigned char *buf, long count, struct snd_seq_event *ev) snd_midi_event_encode() argument
242 snd_midi_event_encode_byte(struct snd_midi_event *dev, int c, struct snd_seq_event *ev) snd_midi_event_encode_byte() argument
357 snd_midi_event_decode(struct snd_midi_event *dev, unsigned char *buf, long count, struct snd_seq_event *ev) snd_midi_event_decode() argument
449 extra_decode_ctrl14(struct snd_midi_event *dev, unsigned char *buf, int count, struct snd_seq_event *ev) extra_decode_ctrl14() argument
487 extra_decode_xrpn(struct snd_midi_event *dev, unsigned char *buf, int count, struct snd_seq_event *ev) extra_decode_xrpn() argument
H A Dseq_system.c70 static int setheader(struct snd_seq_event * ev, int client, int port) setheader() argument
75 memset(ev, 0, sizeof(struct snd_seq_event)); setheader()
77 ev->flags &= ~SNDRV_SEQ_EVENT_LENGTH_MASK; setheader()
78 ev->flags |= SNDRV_SEQ_EVENT_LENGTH_FIXED; setheader()
80 ev->source.client = sysclient; setheader()
81 ev->source.port = announce_port; setheader()
82 ev->dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; setheader()
85 /*ev->data.addr.queue = SNDRV_SEQ_ADDRESS_UNKNOWN;*/ setheader()
86 ev->data.addr.client = client; setheader()
87 ev->data.addr.port = port; setheader()
96 struct snd_seq_event ev; snd_seq_system_broadcast() local
98 if (setheader(&ev, client, port) < 0) snd_seq_system_broadcast()
100 ev.type = type; snd_seq_system_broadcast()
101 snd_seq_kernel_client_dispatch(sysclient, &ev, 0, 0); snd_seq_system_broadcast()
105 int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev) snd_seq_system_notify() argument
107 ev->flags = SNDRV_SEQ_EVENT_LENGTH_FIXED; snd_seq_system_notify()
108 ev->source.client = sysclient; snd_seq_system_notify()
109 ev->source.port = announce_port; snd_seq_system_notify()
110 ev->dest.client = client; snd_seq_system_notify()
111 ev->dest.port = port; snd_seq_system_notify()
112 return snd_seq_kernel_client_dispatch(sysclient, ev, 0, 0); snd_seq_system_notify()
116 static int event_input_timer(struct snd_seq_event * ev, int direct, void *private_data, int atomic, int hop) event_input_timer() argument
118 return snd_seq_control_queue(ev, atomic, hop); event_input_timer()
H A Dseq_midi_emul.c84 struct snd_seq_event *ev, snd_midi_process_event()
91 if (ev == NULL || chanset == NULL) { snd_midi_process_event()
92 pr_debug("ALSA: seq_midi_emul: ev or chanbase NULL (snd_midi_process_event)\n"); snd_midi_process_event()
98 if (snd_seq_ev_is_channel_type(ev)) { snd_midi_process_event()
99 dest_channel = ev->data.note.channel; snd_midi_process_event()
111 if (ev->type == SNDRV_SEQ_EVENT_NOTE) snd_midi_process_event()
116 if (ev->type == SNDRV_SEQ_EVENT_NOTEON && ev->data.note.velocity == 0) snd_midi_process_event()
117 ev->type = SNDRV_SEQ_EVENT_NOTEOFF; snd_midi_process_event()
120 if (ev->type == SNDRV_SEQ_EVENT_NOTEON || snd_midi_process_event()
121 ev->type == SNDRV_SEQ_EVENT_NOTEOFF || snd_midi_process_event()
122 ev->type == SNDRV_SEQ_EVENT_KEYPRESS) { snd_midi_process_event()
123 if (ev->data.note.note >= 128) snd_midi_process_event()
127 switch (ev->type) { snd_midi_process_event()
129 if (chan->note[ev->data.note.note] & SNDRV_MIDI_NOTE_ON) { snd_midi_process_event()
131 ops->note_off(drv, ev->data.note.note, 0, chan); snd_midi_process_event()
133 chan->note[ev->data.note.note] = SNDRV_MIDI_NOTE_ON; snd_midi_process_event()
135 ops->note_on(drv, ev->data.note.note, ev->data.note.velocity, chan); snd_midi_process_event()
138 if (! (chan->note[ev->data.note.note] & SNDRV_MIDI_NOTE_ON)) snd_midi_process_event()
141 note_off(ops, drv, chan, ev->data.note.note, ev->data.note.velocity); snd_midi_process_event()
145 ops->key_press(drv, ev->data.note.note, ev->data.note.velocity, chan); snd_midi_process_event()
149 ev->data.control.param, ev->data.control.value); snd_midi_process_event()
152 chan->midi_program = ev->data.control.value; snd_midi_process_event()
155 chan->midi_pitchbend = ev->data.control.value; snd_midi_process_event()
160 chan->midi_pressure = ev->data.control.value; snd_midi_process_event()
166 if (ev->data.control.param < 32) { snd_midi_process_event()
168 chan->control[ev->data.control.param + 32] = snd_midi_process_event()
169 ev->data.control.value & 0x7f; snd_midi_process_event()
171 ev->data.control.param, snd_midi_process_event()
172 ((ev->data.control.value>>7) & 0x7f)); snd_midi_process_event()
175 ev->data.control.param, snd_midi_process_event()
176 ev->data.control.value); snd_midi_process_event()
182 = (ev->data.control.value >> 7) & 0x7f; snd_midi_process_event()
184 = ev->data.control.value & 0x7f; snd_midi_process_event()
186 = (ev->data.control.param >> 7) & 0x7f; snd_midi_process_event()
188 = ev->data.control.param & 0x7f; snd_midi_process_event()
195 = (ev->data.control.value >> 7) & 0x7f; snd_midi_process_event()
197 = ev->data.control.value & 0x7f; snd_midi_process_event()
199 = (ev->data.control.param >> 7) & 0x7f; snd_midi_process_event()
201 = ev->data.control.param & 0x7f; snd_midi_process_event()
205 if ((ev->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) == SNDRV_SEQ_EVENT_LENGTH_VARIABLE) { snd_midi_process_event()
208 len = snd_seq_expand_var_event(ev, sizeof(sysexbuf), sysexbuf, 1, 0); snd_midi_process_event()
235 /*pr_debug("ALSA: seq_midi_emul: Unimplemented event %d\n", ev->type);*/ snd_midi_process_event()
83 snd_midi_process_event(struct snd_midi_op *ops, struct snd_seq_event *ev, struct snd_midi_channel_set *chanset) snd_midi_process_event() argument
H A Dseq_virmidi.c59 struct snd_seq_event *ev) snd_virmidi_init_event()
61 memset(ev, 0, sizeof(*ev)); snd_virmidi_init_event()
62 ev->source.port = vmidi->port; snd_virmidi_init_event()
65 ev->dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; snd_virmidi_init_event()
69 ev->dest.client = vmidi->client; snd_virmidi_init_event()
70 ev->dest.port = vmidi->port; snd_virmidi_init_event()
73 ev->type = SNDRV_SEQ_EVENT_NONE; snd_virmidi_init_event()
80 struct snd_seq_event *ev) snd_virmidi_dev_receive_event()
90 if (ev->type == SNDRV_SEQ_EVENT_SYSEX) { snd_virmidi_dev_receive_event()
91 if ((ev->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) != SNDRV_SEQ_EVENT_LENGTH_VARIABLE) snd_virmidi_dev_receive_event()
93 snd_seq_dump_var_event(ev, (snd_seq_dump_func_t)snd_rawmidi_receive, vmidi->substream); snd_virmidi_dev_receive_event()
95 len = snd_midi_event_decode(vmidi->parser, msg, sizeof(msg), ev); snd_virmidi_dev_receive_event()
113 int snd_virmidi_receive(struct snd_rawmidi *rmidi, struct snd_seq_event *ev)
118 return snd_virmidi_dev_receive_event(rdev, ev);
125 static int snd_virmidi_event_input(struct snd_seq_event *ev, int direct, snd_virmidi_event_input() argument
133 return snd_virmidi_dev_receive_event(rdev, ev); snd_virmidi_event_input()
58 snd_virmidi_init_event(struct snd_virmidi *vmidi, struct snd_seq_event *ev) snd_virmidi_init_event() argument
79 snd_virmidi_dev_receive_event(struct snd_virmidi_dev *rdev, struct snd_seq_event *ev) snd_virmidi_dev_receive_event() argument
H A Dseq_prioq.c344 struct snd_seq_event *ev) prioq_remove_match()
349 if (ev->dest.client != info->dest.client || prioq_remove_match()
350 ev->dest.port != info->dest.port) prioq_remove_match()
354 if (! snd_seq_ev_is_channel_type(ev)) prioq_remove_match()
357 if (ev->data.note.channel != info->channel) prioq_remove_match()
362 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); prioq_remove_match()
364 res = snd_seq_compare_real_time(&ev->time.time, &info->time.time); prioq_remove_match()
370 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); prioq_remove_match()
372 res = snd_seq_compare_real_time(&ev->time.time, &info->time.time); prioq_remove_match()
377 if (ev->type != info->type) prioq_remove_match()
382 switch (ev->type) { prioq_remove_match()
391 if (info->tag != ev->tag) prioq_remove_match()
343 prioq_remove_match(struct snd_seq_remove_events *info, struct snd_seq_event *ev) prioq_remove_match() argument
H A Dseq_midi.c79 struct snd_seq_event ev; snd_midi_input_event() local
89 memset(&ev, 0, sizeof(ev)); snd_midi_input_event()
98 count = snd_midi_event_encode(msynth->parser, pbuf, res, &ev); snd_midi_input_event()
103 if (ev.type != SNDRV_SEQ_EVENT_NONE) { snd_midi_input_event()
104 ev.source.port = msynth->seq_port; snd_midi_input_event()
105 ev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; snd_midi_input_event()
106 snd_seq_kernel_client_dispatch(msynth->seq_client, &ev, 1, 0); snd_midi_input_event()
108 memset(&ev, 0, sizeof(ev)); snd_midi_input_event()
132 static int event_process_midi(struct snd_seq_event *ev, int direct, event_process_midi() argument
145 if (ev->type == SNDRV_SEQ_EVENT_SYSEX) { /* special case, to save space */ event_process_midi()
146 if ((ev->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) != SNDRV_SEQ_EVENT_LENGTH_VARIABLE) { event_process_midi()
148 pr_debug("ALSA: seq_midi: invalid sysex event flags = 0x%x\n", ev->flags); event_process_midi()
151 snd_seq_dump_var_event(ev, (snd_seq_dump_func_t)dump_midi, substream); event_process_midi()
156 len = snd_midi_event_decode(msynth->parser, msg, sizeof(msg), ev); event_process_midi()
H A Dseq_queue.c656 static void queue_broadcast_event(struct snd_seq_queue *q, struct snd_seq_event *ev, queue_broadcast_event() argument
661 sev = *ev; queue_broadcast_event()
680 struct snd_seq_event *ev, snd_seq_queue_process_event()
683 switch (ev->type) { snd_seq_queue_process_event()
685 snd_seq_prioq_leave(q->tickq, ev->source.client, 1); snd_seq_queue_process_event()
686 snd_seq_prioq_leave(q->timeq, ev->source.client, 1); snd_seq_queue_process_event()
688 queue_broadcast_event(q, ev, atomic, hop); snd_seq_queue_process_event()
693 queue_broadcast_event(q, ev, atomic, hop); snd_seq_queue_process_event()
698 queue_broadcast_event(q, ev, atomic, hop); snd_seq_queue_process_event()
702 snd_seq_timer_set_tempo(q->timer, ev->data.queue.param.value); snd_seq_queue_process_event()
703 queue_broadcast_event(q, ev, atomic, hop); snd_seq_queue_process_event()
707 if (snd_seq_timer_set_position_tick(q->timer, ev->data.queue.param.time.tick) == 0) { snd_seq_queue_process_event()
708 queue_broadcast_event(q, ev, atomic, hop); snd_seq_queue_process_event()
713 if (snd_seq_timer_set_position_time(q->timer, ev->data.queue.param.time.time) == 0) { snd_seq_queue_process_event()
714 queue_broadcast_event(q, ev, atomic, hop); snd_seq_queue_process_event()
719 ev->data.queue.param.skew.value, snd_seq_queue_process_event()
720 ev->data.queue.param.skew.base) == 0) { snd_seq_queue_process_event()
721 queue_broadcast_event(q, ev, atomic, hop); snd_seq_queue_process_event()
732 int snd_seq_control_queue(struct snd_seq_event *ev, int atomic, int hop) snd_seq_control_queue() argument
736 if (snd_BUG_ON(!ev)) snd_seq_control_queue()
738 q = queueptr(ev->data.queue.queue); snd_seq_control_queue()
743 if (! queue_access_lock(q, ev->source.client)) { snd_seq_control_queue()
748 snd_seq_queue_process_event(q, ev, atomic, hop); snd_seq_control_queue()
679 snd_seq_queue_process_event(struct snd_seq_queue *q, struct snd_seq_event *ev, int atomic, int hop) snd_seq_queue_process_event() argument
H A Dseq_clientmgr.h94 int snd_seq_kernel_client_enqueue(int client, struct snd_seq_event *ev, int atomic, int hop);
95 int snd_seq_kernel_client_enqueue_blocking(int client, struct snd_seq_event * ev,
H A Dseq_clientmgr.c865 struct snd_seq_event tmpev, *ev; snd_seq_dispatch_event() local
877 ev = &cell->event; snd_seq_dispatch_event()
878 ev->type = SNDRV_SEQ_EVENT_NOTEOFF; snd_seq_dispatch_event()
879 ev->flags |= SNDRV_SEQ_PRIORITY_HIGH; snd_seq_dispatch_event()
882 switch (ev->flags & SNDRV_SEQ_TIME_STAMP_MASK) { snd_seq_dispatch_event()
884 ev->time.tick += ev->data.note.duration; snd_seq_dispatch_event()
888 ev->time.time.tv_nsec += 1000000 * (ev->data.note.duration % 1000); snd_seq_dispatch_event()
889 ev->time.time.tv_sec += ev->data.note.duration / 1000 + snd_seq_dispatch_event()
890 ev->time.time.tv_nsec / 1000000000; snd_seq_dispatch_event()
891 ev->time.time.tv_nsec %= 1000000000; snd_seq_dispatch_event()
894 ev->data.note.velocity = ev->data.note.off_velocity; snd_seq_dispatch_event()
977 static int check_event_type_and_length(struct snd_seq_event *ev) check_event_type_and_length() argument
979 switch (snd_seq_ev_length_type(ev)) { check_event_type_and_length()
981 if (snd_seq_ev_is_variable_type(ev)) check_event_type_and_length()
985 if (! snd_seq_ev_is_variable_type(ev) || check_event_type_and_length()
986 (ev->data.ext.len & ~SNDRV_SEQ_EXT_MASK) >= SNDRV_SEQ_MAX_EVENT_LEN) check_event_type_and_length()
990 if (! snd_seq_ev_is_direct(ev)) check_event_type_and_length()
2313 static int kernel_client_enqueue(int client, struct snd_seq_event *ev, kernel_client_enqueue() argument
2320 if (snd_BUG_ON(!ev)) kernel_client_enqueue()
2323 if (ev->type == SNDRV_SEQ_EVENT_NONE) kernel_client_enqueue()
2325 if (ev->type == SNDRV_SEQ_EVENT_KERNEL_ERROR) kernel_client_enqueue()
2329 ev->source.client = client; kernel_client_enqueue()
2331 if (check_event_type_and_length(ev)) kernel_client_enqueue()
2341 result = snd_seq_client_enqueue_event(cptr, ev, file, blocking, atomic, hop); kernel_client_enqueue()
2352 int snd_seq_kernel_client_enqueue(int client, struct snd_seq_event * ev, snd_seq_kernel_client_enqueue() argument
2355 return kernel_client_enqueue(client, ev, NULL, 0, atomic, hop); snd_seq_kernel_client_enqueue()
2365 int snd_seq_kernel_client_enqueue_blocking(int client, struct snd_seq_event * ev, snd_seq_kernel_client_enqueue_blocking() argument
2369 return kernel_client_enqueue(client, ev, file, 1, atomic, hop); snd_seq_kernel_client_enqueue_blocking()
2381 int snd_seq_kernel_client_dispatch(int client, struct snd_seq_event * ev, snd_seq_kernel_client_dispatch() argument
2387 if (snd_BUG_ON(!ev)) snd_seq_kernel_client_dispatch()
2391 ev->queue = SNDRV_SEQ_QUEUE_DIRECT; snd_seq_kernel_client_dispatch()
2392 ev->source.client = client; snd_seq_kernel_client_dispatch()
2394 if (check_event_type_and_length(ev)) snd_seq_kernel_client_dispatch()
2404 result = snd_seq_deliver_event(cptr, ev, atomic, hop); snd_seq_kernel_client_dispatch()
H A Dseq_dummy.c88 dummy_input(struct snd_seq_event *ev, int direct, void *private_data, dummy_input() argument
95 if (ev->source.client == SNDRV_SEQ_CLIENT_SYSTEM || dummy_input()
96 ev->type == SNDRV_SEQ_EVENT_KERNEL_ERROR) dummy_input()
98 tmpev = *ev; dummy_input()
H A Dseq_system.h37 int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev);
H A Dseq_ports.h72 int (*event_input)(struct snd_seq_event *ev, int direct, void *private_data,
H A Dseq_queue.h113 int snd_seq_control_queue(struct snd_seq_event *ev, int atomic, int hop);
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
H A DMakefile5 iw_cxgb4-y := device.o cm.o provider.o mem.o cq.o qp.o resource.o ev.o id_table.o
/linux-4.1.27/sound/core/seq/oss/
H A Dseq_oss_event.c34 static int extended_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
35 static int chn_voice_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev);
36 static int chn_common_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev);
37 static int timing_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev);
38 static int local_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev);
39 static int old_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
40 static int note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
41 static int note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
42 static int set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev);
43 static int set_control_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int val, struct snd_seq_event *ev);
44 static int set_echo_event(struct seq_oss_devinfo *dp, union evrec *rec, struct snd_seq_event *ev);
54 snd_seq_oss_process_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev) snd_seq_oss_process_event() argument
58 return extended_event(dp, q, ev); snd_seq_oss_process_event()
61 return chn_voice_event(dp, q, ev); snd_seq_oss_process_event()
64 return chn_common_event(dp, q, ev); snd_seq_oss_process_event()
67 return timing_event(dp, q, ev); snd_seq_oss_process_event()
70 return local_event(dp, q, ev); snd_seq_oss_process_event()
73 return snd_seq_oss_synth_sysex(dp, q->x.dev, q->x.buf, ev); snd_seq_oss_process_event()
84 return snd_seq_oss_midi_putc(dp, q->s.dev, q->s.parm1, ev); snd_seq_oss_process_event()
90 return set_echo_event(dp, q, ev); snd_seq_oss_process_event()
95 return snd_seq_oss_synth_raw_event(dp, q->c[1], q->c, ev); snd_seq_oss_process_event()
100 return old_event(dp, q, ev); snd_seq_oss_process_event()
107 old_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev) old_event() argument
111 return note_off_event(dp, 0, q->n.chn, q->n.note, q->n.vel, ev); old_event()
114 return note_on_event(dp, 0, q->n.chn, q->n.note, q->n.vel, ev); old_event()
122 q->n.chn, 0, q->n.note, ev); old_event()
133 extended_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev) extended_event() argument
139 return note_off_event(dp, q->e.dev, q->e.chn, q->e.p1, q->e.p2, ev); extended_event()
142 return note_on_event(dp, q->e.dev, q->e.chn, q->e.p1, q->e.p2, ev); extended_event()
146 q->e.chn, 0, q->e.p1, ev); extended_event()
150 q->e.chn, 0, q->e.p1, ev); extended_event()
157 q->e.chn, CTL_PAN, val, ev); extended_event()
166 q->e.chn, 0, val, ev); extended_event()
171 q->e.chn, 0, val*128/100, ev); extended_event()
175 q->e.chn, q->e.p1, val, ev); extended_event()
179 return snd_seq_oss_synth_raw_event(dp, q->e.dev, q->c, ev); extended_event()
187 chn_voice_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev) chn_voice_event() argument
193 return note_on_event(dp, q->v.dev, q->v.chn, q->v.note, q->v.parm, ev); chn_voice_event()
196 return note_off_event(dp, q->v.dev, q->v.chn, q->v.note, q->v.parm, ev); chn_voice_event()
200 q->v.chn, q->v.note, q->v.parm, ev); chn_voice_event()
208 chn_common_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev) chn_common_event() argument
215 q->l.chn, 0, q->l.p1, ev); chn_common_event()
219 q->l.chn, q->l.p1, q->l.val, ev); chn_common_event()
224 q->l.chn, 0, q->l.val - 8192, ev); chn_common_event()
228 q->l.chn, 0, q->l.val, ev); chn_common_event()
235 timing_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev) timing_event() argument
240 return set_echo_event(dp, q, ev); timing_event()
246 return set_echo_event(dp, &tmp, ev); timing_event()
270 local_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev) local_event() argument
286 note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev) note_on_event() argument
298 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); note_on_event()
315 return set_note_event(dp, dev, type, ch, info->ch[ch].note, vel, ev); note_on_event()
321 set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, info->ch[ch].note, 0, ev); note_on_event()
326 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); note_on_event()
331 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); note_on_event()
335 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_KEYPRESS, ch, note - 128, vel, ev); note_on_event()
337 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); note_on_event()
346 note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev) note_off_event() argument
358 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); note_off_event()
365 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, note, vel, ev); note_off_event()
372 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, note, vel, ev); note_off_event()
382 set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev) set_note_event() argument
387 ev->type = type; set_note_event()
388 snd_seq_oss_synth_addr(dp, dev, ev); set_note_event()
389 ev->data.note.channel = ch; set_note_event()
390 ev->data.note.note = note; set_note_event()
391 ev->data.note.velocity = vel; set_note_event()
400 set_control_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int val, struct snd_seq_event *ev) set_control_event() argument
405 ev->type = type; set_control_event()
406 snd_seq_oss_synth_addr(dp, dev, ev); set_control_event()
407 ev->data.control.channel = ch; set_control_event()
408 ev->data.control.param = param; set_control_event()
409 ev->data.control.value = val; set_control_event()
418 set_echo_event(struct seq_oss_devinfo *dp, union evrec *rec, struct snd_seq_event *ev) set_echo_event() argument
420 ev->type = SNDRV_SEQ_EVENT_ECHO; set_echo_event()
422 snd_seq_oss_fill_addr(dp, ev, dp->addr.client, dp->addr.port); set_echo_event()
423 memcpy(&ev->data, rec, LONG_EVENT_SIZE); set_echo_event()
432 snd_seq_oss_event_input(struct snd_seq_event *ev, int direct, void *private_data, snd_seq_oss_event_input() argument
438 if (ev->type != SNDRV_SEQ_EVENT_ECHO) snd_seq_oss_event_input()
439 return snd_seq_oss_midi_input(ev, direct, private_data); snd_seq_oss_event_input()
441 if (ev->source.client != dp->cseq) snd_seq_oss_event_input()
444 rec = (union evrec*)&ev->data; snd_seq_oss_event_input()
H A Dseq_oss_timer.c86 snd_seq_oss_process_timer_event(struct seq_oss_timer *rec, union evrec *ev) snd_seq_oss_process_timer_event() argument
88 abstime_t parm = ev->t.time; snd_seq_oss_process_timer_event()
90 if (ev->t.code == EV_TIMING) { snd_seq_oss_process_timer_event()
91 switch (ev->t.cmd) { snd_seq_oss_process_timer_event()
110 } else if (ev->s.code == SEQ_WAIT) { snd_seq_oss_process_timer_event()
112 parm = (ev->echo >> 8) & 0xffffff; snd_seq_oss_process_timer_event()
142 struct snd_seq_event ev; send_timer_event() local
144 memset(&ev, 0, sizeof(ev)); send_timer_event()
145 ev.type = type; send_timer_event()
146 ev.source.client = dp->cseq; send_timer_event()
147 ev.source.port = 0; send_timer_event()
148 ev.dest.client = SNDRV_SEQ_CLIENT_SYSTEM; send_timer_event()
149 ev.dest.port = SNDRV_SEQ_PORT_SYSTEM_TIMER; send_timer_event()
150 ev.queue = dp->queue; send_timer_event()
151 ev.data.queue.queue = dp->queue; send_timer_event()
152 ev.data.queue.param.value = value; send_timer_event()
153 return snd_seq_kernel_client_dispatch(dp->cseq, &ev, 1, 0); send_timer_event()
H A Dseq_oss_midi.c68 static int send_synth_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, int dev);
69 static int send_midi_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, struct seq_oss_midi *mdev);
465 struct snd_seq_event ev; snd_seq_oss_midi_reset() local
468 memset(&ev, 0, sizeof(ev)); snd_seq_oss_midi_reset()
469 ev.dest.client = mdev->client; snd_seq_oss_midi_reset()
470 ev.dest.port = mdev->port; snd_seq_oss_midi_reset()
471 ev.queue = dp->queue; snd_seq_oss_midi_reset()
472 ev.source.port = dp->port; snd_seq_oss_midi_reset()
474 ev.type = SNDRV_SEQ_EVENT_SENSING; snd_seq_oss_midi_reset()
475 snd_seq_oss_dispatch(dp, &ev, 0, 0); snd_seq_oss_midi_reset()
478 ev.type = SNDRV_SEQ_EVENT_CONTROLLER; snd_seq_oss_midi_reset()
479 ev.data.control.channel = c; snd_seq_oss_midi_reset()
480 ev.data.control.param = MIDI_CTL_ALL_NOTES_OFF; snd_seq_oss_midi_reset()
481 snd_seq_oss_dispatch(dp, &ev, 0, 0); snd_seq_oss_midi_reset()
483 ev.data.control.param = snd_seq_oss_midi_reset()
485 snd_seq_oss_dispatch(dp, &ev, 0, 0); snd_seq_oss_midi_reset()
486 ev.type = SNDRV_SEQ_EVENT_PITCHBEND; snd_seq_oss_midi_reset()
487 ev.data.control.value = 0; snd_seq_oss_midi_reset()
488 snd_seq_oss_dispatch(dp, &ev, 0, 0); snd_seq_oss_midi_reset()
517 snd_seq_oss_midi_input(struct snd_seq_event *ev, int direct, void *private_data) snd_seq_oss_midi_input() argument
525 if ((mdev = find_slot(ev->source.client, ev->source.port)) == NULL) snd_seq_oss_midi_input()
533 rc = send_synth_event(dp, ev, mdev->seq_device); snd_seq_oss_midi_input()
535 rc = send_midi_event(dp, ev, mdev); snd_seq_oss_midi_input()
545 send_synth_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, int dev) send_synth_event() argument
551 switch (ev->type) { send_synth_event()
572 switch (ev->type) { send_synth_event()
577 ossev.v.note = ev->data.note.note; send_synth_event()
578 ossev.v.parm = ev->data.note.velocity; send_synth_event()
579 ossev.v.chn = ev->data.note.channel; send_synth_event()
585 ossev.l.p1 = ev->data.control.param; send_synth_event()
586 ossev.l.val = ev->data.control.value; send_synth_event()
587 ossev.l.chn = ev->data.control.channel; send_synth_event()
591 ossev.l.val = ev->data.control.value + 8192; send_synth_event()
592 ossev.l.chn = ev->data.control.channel; send_synth_event()
596 snd_seq_oss_readq_put_timestamp(dp->readq, ev->time.tick, dp->seq_mode); send_synth_event()
606 send_midi_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, struct seq_oss_midi *mdev) send_midi_event() argument
611 snd_seq_oss_readq_put_timestamp(dp->readq, ev->time.tick, dp->seq_mode); send_midi_event()
614 if (ev->type == SNDRV_SEQ_EVENT_SYSEX) { send_midi_event()
615 if ((ev->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) == SNDRV_SEQ_EVENT_LENGTH_VARIABLE) send_midi_event()
617 ev->data.ext.ptr, ev->data.ext.len); send_midi_event()
619 len = snd_midi_event_decode(mdev->coder, msg, sizeof(msg), ev); send_midi_event()
634 snd_seq_oss_midi_putc(struct seq_oss_devinfo *dp, int dev, unsigned char c, struct snd_seq_event *ev) snd_seq_oss_midi_putc() argument
640 if (snd_midi_event_encode_byte(mdev->coder, c, ev) > 0) { snd_seq_oss_midi_putc()
641 snd_seq_oss_fill_addr(dp, ev, mdev->client, mdev->port); snd_seq_oss_midi_putc()
H A Dseq_oss_writeq.c104 struct snd_seq_event ev; snd_seq_oss_writeq_sync() local
108 memset(&ev, 0, sizeof(ev)); snd_seq_oss_writeq_sync()
109 ev.flags = 0; snd_seq_oss_writeq_sync()
110 ev.type = SNDRV_SEQ_EVENT_ECHO; snd_seq_oss_writeq_sync()
111 ev.time.tick = time; snd_seq_oss_writeq_sync()
113 snd_seq_oss_fill_addr(dp, &ev, dp->addr.client, dp->addr.port); snd_seq_oss_writeq_sync()
114 rec = (union evrec *)&ev.data; snd_seq_oss_writeq_sync()
118 snd_seq_kernel_client_enqueue_blocking(dp->cseq, &ev, NULL, 0, 0); snd_seq_oss_writeq_sync()
H A Dseq_oss_event.h104 #define ev_is_long(ev) ((ev)->s.code >= 128)
105 #define ev_length(ev) ((ev)->s.code >= 128 ? LONG_EVENT_SIZE : SHORT_EVENT_SIZE)
107 int snd_seq_oss_process_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
109 int snd_seq_oss_event_input(struct snd_seq_event *ev, int direct, void *private_data, int atomic, int hop);
H A Dseq_oss_synth.h42 struct snd_seq_event *ev);
43 int snd_seq_oss_synth_addr(struct seq_oss_devinfo *dp, int dev, struct snd_seq_event *ev);
47 unsigned char *data, struct snd_seq_event *ev);
H A Dseq_oss_device.h148 snd_seq_oss_dispatch(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, int atomic, int hop) snd_seq_oss_dispatch() argument
150 return snd_seq_kernel_client_dispatch(dp->cseq, ev, atomic, hop); snd_seq_oss_dispatch()
162 snd_seq_oss_fill_addr(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, snd_seq_oss_fill_addr() argument
165 ev->queue = dp->queue; snd_seq_oss_fill_addr()
166 ev->source = dp->addr; snd_seq_oss_fill_addr()
167 ev->dest.client = dest_client; snd_seq_oss_fill_addr()
168 ev->dest.port = dest_port; snd_seq_oss_fill_addr()
H A Dseq_oss_synth.c437 struct snd_seq_event ev; snd_seq_oss_synth_reset() local
438 memset(&ev, 0, sizeof(ev)); snd_seq_oss_synth_reset()
439 snd_seq_oss_fill_addr(dp, &ev, info->arg.addr.client, snd_seq_oss_synth_reset()
441 ev.type = SNDRV_SEQ_EVENT_RESET; snd_seq_oss_synth_reset()
442 snd_seq_oss_dispatch(dp, &ev, 0, 0); snd_seq_oss_synth_reset()
497 snd_seq_oss_synth_sysex(struct seq_oss_devinfo *dp, int dev, unsigned char *buf, struct snd_seq_event *ev) snd_seq_oss_synth_sysex() argument
538 ev->flags = SNDRV_SEQ_EVENT_LENGTH_VARIABLE; snd_seq_oss_synth_sysex()
539 if (snd_seq_oss_synth_addr(dp, dev, ev)) snd_seq_oss_synth_sysex()
541 ev->data.ext.len = sysex->len; snd_seq_oss_synth_sysex()
542 ev->data.ext.ptr = sysex->buf; snd_seq_oss_synth_sysex()
554 snd_seq_oss_synth_addr(struct seq_oss_devinfo *dp, int dev, struct snd_seq_event *ev) snd_seq_oss_synth_addr() argument
558 snd_seq_oss_fill_addr(dp, ev, dp->synths[dev].arg.addr.client, snd_seq_oss_synth_addr()
590 snd_seq_oss_synth_raw_event(struct seq_oss_devinfo *dp, int dev, unsigned char *data, struct snd_seq_event *ev) snd_seq_oss_synth_raw_event() argument
594 ev->type = SNDRV_SEQ_EVENT_OSS; snd_seq_oss_synth_raw_event()
595 memcpy(ev->data.raw8.d, data, 8); snd_seq_oss_synth_raw_event()
596 return snd_seq_oss_synth_addr(dp, dev, ev); snd_seq_oss_synth_raw_event()
H A Dseq_oss_midi.h42 struct snd_seq_event *ev);
43 int snd_seq_oss_midi_input(struct snd_seq_event *ev, int direct, void *private);
H A Dseq_oss_init.c53 static int receive_announce(struct snd_seq_event *ev, int direct, void *private, int atomic, int hop);
136 receive_announce(struct snd_seq_event *ev, int direct, void *private, int atomic, int hop) receive_announce() argument
143 switch (ev->type) { receive_announce()
146 if (ev->data.addr.client == system_client) receive_announce()
149 pinfo.addr = ev->data.addr; receive_announce()
155 if (ev->data.addr.client == system_client) receive_announce()
157 snd_seq_oss_midi_check_exit_port(ev->data.addr.client, receive_announce()
158 ev->data.addr.port); receive_announce()
H A Dseq_oss_ioctl.c59 unsigned char ev[8]; snd_seq_oss_oob_user() local
62 if (copy_from_user(ev, arg, 8)) snd_seq_oss_oob_user()
67 if (! snd_seq_oss_process_event(dp, (union evrec *)ev, &tmpev)) { snd_seq_oss_oob_user()
H A Dseq_oss_readq.c126 snd_seq_oss_readq_put_event(struct seq_oss_readq *q, union evrec *ev) snd_seq_oss_readq_put_event() argument
136 memcpy(&q->q[q->tail], ev, sizeof(*ev)); snd_seq_oss_readq_put_event()
H A Dseq_oss_readq.h47 int snd_seq_oss_readq_put_event(struct seq_oss_readq *readq, union evrec *ev);
/linux-4.1.27/drivers/media/rc/
H A Dir-jvc-decoder.c46 static int ir_jvc_decode(struct rc_dev *dev, struct ir_raw_event ev) ir_jvc_decode() argument
53 if (!is_timing_event(ev)) { ir_jvc_decode()
54 if (ev.reset) ir_jvc_decode()
59 if (!geq_margin(ev.duration, JVC_UNIT, JVC_UNIT / 2)) ir_jvc_decode()
63 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); ir_jvc_decode()
69 if (!ev.pulse) ir_jvc_decode()
72 if (!eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) ir_jvc_decode()
82 if (ev.pulse) ir_jvc_decode()
85 if (!eq_margin(ev.duration, JVC_HEADER_SPACE, JVC_UNIT / 2)) ir_jvc_decode()
92 if (!ev.pulse) ir_jvc_decode()
95 if (!eq_margin(ev.duration, JVC_BIT_PULSE, JVC_UNIT / 2)) ir_jvc_decode()
102 if (ev.pulse) ir_jvc_decode()
106 if (eq_margin(ev.duration, JVC_BIT_1_SPACE, JVC_UNIT / 2)) { ir_jvc_decode()
108 decrease_duration(&ev, JVC_BIT_1_SPACE); ir_jvc_decode()
109 } else if (eq_margin(ev.duration, JVC_BIT_0_SPACE, JVC_UNIT / 2)) ir_jvc_decode()
110 decrease_duration(&ev, JVC_BIT_0_SPACE); ir_jvc_decode()
122 if (!ev.pulse) ir_jvc_decode()
125 if (!eq_margin(ev.duration, JVC_TRAILER_PULSE, JVC_UNIT / 2)) ir_jvc_decode()
132 if (ev.pulse) ir_jvc_decode()
135 if (!geq_margin(ev.duration, JVC_TRAILER_SPACE, JVC_UNIT / 2)) ir_jvc_decode()
159 if (!ev.pulse) ir_jvc_decode()
162 if (eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) ir_jvc_decode()
171 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); ir_jvc_decode()
H A Dir-nec-decoder.c48 static int ir_nec_decode(struct rc_dev *dev, struct ir_raw_event ev) ir_nec_decode() argument
58 if (!is_timing_event(ev)) { ir_nec_decode()
59 if (ev.reset) ir_nec_decode()
65 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); ir_nec_decode()
70 if (!ev.pulse) ir_nec_decode()
73 if (eq_margin(ev.duration, NEC_HEADER_PULSE, NEC_UNIT * 2)) { ir_nec_decode()
76 } else if (eq_margin(ev.duration, NECX_HEADER_PULSE, NEC_UNIT / 2)) ir_nec_decode()
86 if (ev.pulse) ir_nec_decode()
89 if (eq_margin(ev.duration, NEC_HEADER_SPACE, NEC_UNIT)) { ir_nec_decode()
92 } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) { ir_nec_decode()
106 if (!ev.pulse) ir_nec_decode()
109 if (!eq_margin(ev.duration, NEC_BIT_PULSE, NEC_UNIT / 2)) ir_nec_decode()
116 if (ev.pulse) ir_nec_decode()
120 geq_margin(ev.duration, ir_nec_decode()
131 if (eq_margin(ev.duration, NEC_BIT_1_SPACE, NEC_UNIT / 2)) ir_nec_decode()
133 else if (!eq_margin(ev.duration, NEC_BIT_0_SPACE, NEC_UNIT / 2)) ir_nec_decode()
145 if (!ev.pulse) ir_nec_decode()
148 if (!eq_margin(ev.duration, NEC_TRAILER_PULSE, NEC_UNIT / 2)) ir_nec_decode()
155 if (ev.pulse) ir_nec_decode()
158 if (!geq_margin(ev.duration, NEC_TRAILER_SPACE, NEC_UNIT / 2)) ir_nec_decode()
198 data->count, data->state, TO_US(ev.duration), TO_STR(ev.pulse)); ir_nec_decode()
H A Dir-rc5-decoder.c45 * @ev: the struct ir_raw_event descriptor of the pulse/space
49 static int ir_rc5_decode(struct rc_dev *dev, struct ir_raw_event ev) ir_rc5_decode() argument
59 if (!is_timing_event(ev)) { ir_rc5_decode()
60 if (ev.reset) ir_rc5_decode()
65 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) ir_rc5_decode()
70 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); ir_rc5_decode()
72 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) ir_rc5_decode()
78 if (!ev.pulse) ir_rc5_decode()
83 decrease_duration(&ev, RC5_BIT_START); ir_rc5_decode()
87 if (!ev.pulse && geq_margin(ev.duration, RC5_TRAILER, RC5_UNIT / 2)) { ir_rc5_decode()
92 if (!eq_margin(ev.duration, RC5_BIT_START, RC5_UNIT / 2)) ir_rc5_decode()
96 if (!ev.pulse) ir_rc5_decode()
103 if (!is_transition(&ev, &dev->raw->prev_ev)) ir_rc5_decode()
111 decrease_duration(&ev, RC5_BIT_END); ir_rc5_decode()
115 if (!ev.pulse && geq_margin(ev.duration, RC5X_SPACE, RC5_UNIT / 2)) { ir_rc5_decode()
117 decrease_duration(&ev, RC5X_SPACE); ir_rc5_decode()
124 if (ev.pulse) ir_rc5_decode()
182 data->state, data->count, TO_US(ev.duration), TO_STR(ev.pulse)); ir_rc5_decode()
H A Dir-sharp-decoder.c46 static int ir_sharp_decode(struct rc_dev *dev, struct ir_raw_event ev) ir_sharp_decode() argument
54 if (!is_timing_event(ev)) { ir_sharp_decode()
55 if (ev.reset) ir_sharp_decode()
61 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); ir_sharp_decode()
66 if (!ev.pulse) ir_sharp_decode()
69 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, ir_sharp_decode()
74 data->pulse_len = ev.duration; ir_sharp_decode()
79 if (!ev.pulse) ir_sharp_decode()
82 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, ir_sharp_decode()
86 data->pulse_len = ev.duration; ir_sharp_decode()
91 if (ev.pulse) ir_sharp_decode()
95 if (eq_margin(data->pulse_len + ev.duration, SHARP_BIT_1_PERIOD, ir_sharp_decode()
98 else if (!eq_margin(data->pulse_len + ev.duration, ir_sharp_decode()
112 if (!ev.pulse) ir_sharp_decode()
115 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, ir_sharp_decode()
130 if (ev.pulse) ir_sharp_decode()
133 if (!eq_margin(ev.duration, SHARP_ECHO_SPACE, ir_sharp_decode()
142 if (ev.pulse) ir_sharp_decode()
145 if (!geq_margin(ev.duration, SHARP_TRAILER_SPACE, ir_sharp_decode()
171 data->count, data->state, TO_US(ev.duration), ir_sharp_decode()
172 TO_STR(ev.pulse)); ir_sharp_decode()
H A Dir-sony-decoder.c38 * @ev: the struct ir_raw_event descriptor of the pulse/space
42 static int ir_sony_decode(struct rc_dev *dev, struct ir_raw_event ev) ir_sony_decode() argument
53 if (!is_timing_event(ev)) { ir_sony_decode()
54 if (ev.reset) ir_sony_decode()
59 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) ir_sony_decode()
63 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); ir_sony_decode()
68 if (!ev.pulse) ir_sony_decode()
71 if (!eq_margin(ev.duration, SONY_HEADER_PULSE, SONY_UNIT / 2)) ir_sony_decode()
79 if (ev.pulse) ir_sony_decode()
82 if (!eq_margin(ev.duration, SONY_HEADER_SPACE, SONY_UNIT / 2)) ir_sony_decode()
89 if (!ev.pulse) ir_sony_decode()
93 if (eq_margin(ev.duration, SONY_BIT_1_PULSE, SONY_UNIT / 2)) ir_sony_decode()
95 else if (!eq_margin(ev.duration, SONY_BIT_0_PULSE, SONY_UNIT / 2)) ir_sony_decode()
103 if (ev.pulse) ir_sony_decode()
106 if (!geq_margin(ev.duration, SONY_BIT_SPACE, SONY_UNIT / 2)) ir_sony_decode()
109 decrease_duration(&ev, SONY_BIT_SPACE); ir_sony_decode()
111 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) { ir_sony_decode()
120 if (ev.pulse) ir_sony_decode()
123 if (!geq_margin(ev.duration, SONY_TRAILER_SPACE, SONY_UNIT / 2)) ir_sony_decode()
171 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); ir_sony_decode()
H A Dir-sanyo-decoder.c55 static int ir_sanyo_decode(struct rc_dev *dev, struct ir_raw_event ev) ir_sanyo_decode() argument
64 if (!is_timing_event(ev)) { ir_sanyo_decode()
65 if (ev.reset) { ir_sanyo_decode()
73 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); ir_sanyo_decode()
78 if (!ev.pulse) ir_sanyo_decode()
81 if (eq_margin(ev.duration, SANYO_HEADER_PULSE, SANYO_UNIT / 2)) { ir_sanyo_decode()
90 if (ev.pulse) ir_sanyo_decode()
93 if (eq_margin(ev.duration, SANYO_HEADER_SPACE, SANYO_UNIT / 2)) { ir_sanyo_decode()
101 if (!ev.pulse) ir_sanyo_decode()
104 if (!eq_margin(ev.duration, SANYO_BIT_PULSE, SANYO_UNIT / 2)) ir_sanyo_decode()
111 if (ev.pulse) ir_sanyo_decode()
114 if (!data->count && geq_margin(ev.duration, SANYO_REPEAT_SPACE, SANYO_UNIT / 2)) { ir_sanyo_decode()
126 if (eq_margin(ev.duration, SANYO_BIT_1_SPACE, SANYO_UNIT / 2)) ir_sanyo_decode()
128 else if (!eq_margin(ev.duration, SANYO_BIT_0_SPACE, SANYO_UNIT / 2)) ir_sanyo_decode()
140 if (!ev.pulse) ir_sanyo_decode()
143 if (!eq_margin(ev.duration, SANYO_TRAILER_PULSE, SANYO_UNIT / 2)) ir_sanyo_decode()
150 if (ev.pulse) ir_sanyo_decode()
153 if (!geq_margin(ev.duration, SANYO_TRAILER_SPACE, SANYO_UNIT / 2)) ir_sanyo_decode()
176 data->count, data->state, TO_US(ev.duration), TO_STR(ev.pulse)); ir_sanyo_decode()
H A Dir-xmp-decoder.c42 static int ir_xmp_decode(struct rc_dev *dev, struct ir_raw_event ev) ir_xmp_decode() argument
49 if (!is_timing_event(ev)) { ir_xmp_decode()
50 if (ev.reset) ir_xmp_decode()
56 data->state, data->count, TO_US(ev.duration), TO_STR(ev.pulse)); ir_xmp_decode()
61 if (!ev.pulse) ir_xmp_decode()
64 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) { ir_xmp_decode()
72 if (!ev.pulse) ir_xmp_decode()
75 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) ir_xmp_decode()
81 if (ev.pulse) ir_xmp_decode()
84 if (geq_margin(ev.duration, XMP_TRAILER_SPACE, XMP_NIBBLE_PREFIX)) { ir_xmp_decode()
92 data->count, ev.duration); ir_xmp_decode()
156 } else if (geq_margin(ev.duration, XMP_HALFFRAME_SPACE, XMP_NIBBLE_PREFIX)) { ir_xmp_decode()
160 data->count, ev.duration); ir_xmp_decode()
171 data->count, ev.duration); ir_xmp_decode()
176 } else if (geq_margin(ev.duration, XMP_NIBBLE_PREFIX, XMP_UNIT)) { ir_xmp_decode()
180 data->count, ev.duration); ir_xmp_decode()
184 data->durations[data->count] = ev.duration; ir_xmp_decode()
196 data->count, data->state, TO_US(ev.duration), TO_STR(ev.pulse)); ir_xmp_decode()
H A Dir-rc6-decoder.c82 * @ev: the struct ir_raw_event descriptor of the pulse/space
86 static int ir_rc6_decode(struct rc_dev *dev, struct ir_raw_event ev) ir_rc6_decode() argument
98 if (!is_timing_event(ev)) { ir_rc6_decode()
99 if (ev.reset) ir_rc6_decode()
104 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) ir_rc6_decode()
109 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); ir_rc6_decode()
111 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) ir_rc6_decode()
117 if (!ev.pulse) ir_rc6_decode()
123 if (!eq_margin(ev.duration, RC6_PREFIX_PULSE, RC6_UNIT)) ir_rc6_decode()
131 if (ev.pulse) ir_rc6_decode()
134 if (!eq_margin(ev.duration, RC6_PREFIX_SPACE, RC6_UNIT / 2)) ir_rc6_decode()
142 if (!eq_margin(ev.duration, RC6_BIT_START, RC6_UNIT / 2)) ir_rc6_decode()
146 if (ev.pulse) ir_rc6_decode()
153 if (!is_transition(&ev, &dev->raw->prev_ev)) ir_rc6_decode()
161 decrease_duration(&ev, RC6_BIT_END); ir_rc6_decode()
165 if (!eq_margin(ev.duration, RC6_TOGGLE_START, RC6_UNIT / 2)) ir_rc6_decode()
168 data->toggle = ev.pulse; ir_rc6_decode()
173 if (!is_transition(&ev, &dev->raw->prev_ev) || ir_rc6_decode()
174 !geq_margin(ev.duration, RC6_TOGGLE_END, RC6_UNIT / 2)) ir_rc6_decode()
183 decrease_duration(&ev, RC6_TOGGLE_END); ir_rc6_decode()
201 if (eq_margin(ev.duration, RC6_BIT_START, RC6_UNIT / 2)) { ir_rc6_decode()
205 if (ev.pulse) ir_rc6_decode()
210 } else if (RC6_MODE_6A == rc6_mode(data) && !ev.pulse && ir_rc6_decode()
211 geq_margin(ev.duration, RC6_SUFFIX_SPACE, RC6_UNIT / 2)) { ir_rc6_decode()
218 if (!is_transition(&ev, &dev->raw->prev_ev)) ir_rc6_decode()
226 decrease_duration(&ev, RC6_BIT_END); ir_rc6_decode()
230 if (ev.pulse) ir_rc6_decode()
289 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); ir_rc6_decode()
H A Drc-ir-raw.c36 struct ir_raw_event ev; ir_raw_event_thread() local
46 if (retval < sizeof(ev)) { ir_raw_event_thread()
57 retval = kfifo_out(&raw->kfifo, &ev, sizeof(ev)); ir_raw_event_thread()
62 handler->decode(raw->dev, ev); ir_raw_event_thread()
63 raw->prev_ev = ev; ir_raw_event_thread()
73 * @ev: the struct ir_raw_event descriptor of the pulse/space
80 int ir_raw_event_store(struct rc_dev *dev, struct ir_raw_event *ev) ir_raw_event_store() argument
86 TO_US(ev->duration), TO_STR(ev->pulse)); ir_raw_event_store()
88 if (kfifo_in(&dev->raw->kfifo, ev, sizeof(*ev)) != sizeof(*ev)) ir_raw_event_store()
110 DEFINE_IR_RAW_EVENT(ev); ir_raw_event_store_edge()
128 ev.duration = delta; ir_raw_event_store_edge()
133 ev.pulse = false; ir_raw_event_store_edge()
134 rc = ir_raw_event_store(dev, &ev); ir_raw_event_store_edge()
136 ev.pulse = true; ir_raw_event_store_edge()
137 rc = ir_raw_event_store(dev, &ev); ir_raw_event_store_edge()
159 int ir_raw_event_store_with_filter(struct rc_dev *dev, struct ir_raw_event *ev) ir_raw_event_store_with_filter() argument
165 if (dev->idle && !ev->pulse) ir_raw_event_store_with_filter()
171 dev->raw->this_ev = *ev; ir_raw_event_store_with_filter()
172 else if (ev->pulse == dev->raw->this_ev.pulse) ir_raw_event_store_with_filter()
173 dev->raw->this_ev.duration += ev->duration; ir_raw_event_store_with_filter()
176 dev->raw->this_ev = *ev; ir_raw_event_store_with_filter()
180 if (!ev->pulse && dev->timeout && ir_raw_event_store_with_filter()
H A Dir-mce_kbd-decoder.c209 * @ev: the struct ir_raw_event descriptor of the pulse/space
213 static int ir_mce_kbd_decode(struct rc_dev *dev, struct ir_raw_event ev) ir_mce_kbd_decode() argument
222 if (!is_timing_event(ev)) { ir_mce_kbd_decode()
223 if (ev.reset) ir_mce_kbd_decode()
228 if (!geq_margin(ev.duration, MCIR2_UNIT, MCIR2_UNIT / 2)) ir_mce_kbd_decode()
233 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); ir_mce_kbd_decode()
235 if (!geq_margin(ev.duration, MCIR2_UNIT, MCIR2_UNIT / 2)) ir_mce_kbd_decode()
241 if (!ev.pulse) ir_mce_kbd_decode()
247 if (!eq_margin(ev.duration, MCIR2_PREFIX_PULSE, MCIR2_UNIT)) ir_mce_kbd_decode()
256 if (geq_margin(ev.duration, MCIR2_MAX_LEN, MCIR2_UNIT / 2)) ir_mce_kbd_decode()
260 if (ev.pulse) ir_mce_kbd_decode()
267 if (!is_transition(&ev, &dev->raw->prev_ev)) ir_mce_kbd_decode()
270 decrease_duration(&ev, MCIR2_BIT_END); ir_mce_kbd_decode()
295 if (geq_margin(ev.duration, MCIR2_MAX_LEN, MCIR2_UNIT / 2)) ir_mce_kbd_decode()
299 if (ev.pulse) ir_mce_kbd_decode()
306 if (!is_transition(&ev, &dev->raw->prev_ev)) ir_mce_kbd_decode()
314 decrease_duration(&ev, MCIR2_BIT_END); ir_mce_kbd_decode()
318 if (ev.pulse) ir_mce_kbd_decode()
351 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); ir_mce_kbd_decode()
H A Dir-lirc-codec.c33 static int ir_lirc_decode(struct rc_dev *dev, struct ir_raw_event ev) ir_lirc_decode() argument
45 if (ev.reset) { ir_lirc_decode()
55 } else if (ev.carrier_report) { ir_lirc_decode()
56 sample = LIRC_FREQUENCY(ev.carrier); ir_lirc_decode()
60 } else if (ev.timeout) { ir_lirc_decode()
67 lirc->gap_duration = ev.duration; ir_lirc_decode()
72 sample = LIRC_TIMEOUT(ev.duration / 1000); ir_lirc_decode()
95 sample = ev.pulse ? LIRC_PULSE(ev.duration / 1000) : ir_lirc_decode()
96 LIRC_SPACE(ev.duration / 1000); ir_lirc_decode()
98 TO_US(ev.duration), TO_STR(ev.pulse)); ir_lirc_decode()
H A Dst_rc.c69 DEFINE_IR_RAW_EVENT(ev); st_rc_send_lirc_timeout()
70 ev.timeout = true; st_rc_send_lirc_timeout()
71 ir_raw_event_store(rdev, &ev); st_rc_send_lirc_timeout()
102 DEFINE_IR_RAW_EVENT(ev); st_rc_rx_interrupt()
136 ev.duration = US_TO_NS(mark); st_rc_rx_interrupt()
137 ev.pulse = true; st_rc_rx_interrupt()
138 ir_raw_event_store(dev->rdev, &ev); st_rc_rx_interrupt()
141 ev.duration = US_TO_NS(symbol); st_rc_rx_interrupt()
142 ev.pulse = false; st_rc_rx_interrupt()
143 ir_raw_event_store(dev->rdev, &ev); st_rc_rx_interrupt()
H A Dir-hix5hd2.c160 DEFINE_IR_RAW_EVENT(ev); hix5hd2_ir_rx_interrupt()
169 ev.duration = US_TO_NS(data_l); hix5hd2_ir_rx_interrupt()
170 ev.pulse = true; hix5hd2_ir_rx_interrupt()
171 ir_raw_event_store(priv->rdev, &ev); hix5hd2_ir_rx_interrupt()
174 ev.duration = US_TO_NS(data_h); hix5hd2_ir_rx_interrupt()
175 ev.pulse = false; hix5hd2_ir_rx_interrupt()
176 ir_raw_event_store(priv->rdev, &ev); hix5hd2_ir_rx_interrupt()
H A Drc-core-priv.h136 static inline void decrease_duration(struct ir_raw_event *ev, unsigned duration) decrease_duration() argument
138 if (duration > ev->duration) decrease_duration()
139 ev->duration = 0; decrease_duration()
141 ev->duration -= duration; decrease_duration()
145 static inline bool is_timing_event(struct ir_raw_event ev) is_timing_event() argument
147 return !ev.carrier_report && !ev.reset; is_timing_event()
H A Dene_ir.c334 DEFINE_IR_RAW_EVENT(ev); ene_rx_sense_carrier()
356 ev.carrier_report = true; ene_rx_sense_carrier()
357 ev.carrier = carrier; ene_rx_sense_carrier()
358 ev.duty_cycle = duty_cycle; ene_rx_sense_carrier()
359 ir_raw_event_store(dev->rdev, &ev); ene_rx_sense_carrier()
741 DEFINE_IR_RAW_EVENT(ev); ene_isr()
816 ev.duration = US_TO_NS(hw_sample); ene_isr()
817 ev.pulse = pulse; ene_isr()
818 ir_raw_event_store_with_filter(dev->rdev, &ev); ene_isr()
H A Dite-cir.c183 DEFINE_IR_RAW_EVENT(ev); ite_decode_bytes()
193 ev.pulse = true; ite_decode_bytes()
194 ev.duration = ite_decode_bytes()
196 ir_raw_event_store_with_filter(dev->rdev, &ev); ite_decode_bytes()
201 ev.pulse = false; ite_decode_bytes()
202 ev.duration = ITE_BITS_TO_NS(next_zero - next_one, sample_period); ite_decode_bytes()
203 ir_raw_event_store_with_filter(dev->rdev, &ev); ite_decode_bytes()
210 ev.pulse = true; ite_decode_bytes()
211 ev.duration = ite_decode_bytes()
215 (dev->rdev, &ev); ite_decode_bytes()
/linux-4.1.27/samples/uhid/
H A Duhid-example.c158 static int uhid_write(int fd, const struct uhid_event *ev) uhid_write() argument
162 ret = write(fd, ev, sizeof(*ev)); uhid_write()
166 } else if (ret != sizeof(*ev)) { uhid_write()
168 ret, sizeof(ev)); uhid_write()
177 struct uhid_event ev; create() local
179 memset(&ev, 0, sizeof(ev)); create()
180 ev.type = UHID_CREATE; create()
181 strcpy((char*)ev.u.create.name, "test-uhid-device"); create()
182 ev.u.create.rd_data = rdesc; create()
183 ev.u.create.rd_size = sizeof(rdesc); create()
184 ev.u.create.bus = BUS_USB; create()
185 ev.u.create.vendor = 0x15d9; create()
186 ev.u.create.product = 0x0a37; create()
187 ev.u.create.version = 0; create()
188 ev.u.create.country = 0; create()
190 return uhid_write(fd, &ev); create()
195 struct uhid_event ev; destroy() local
197 memset(&ev, 0, sizeof(ev)); destroy()
198 ev.type = UHID_DESTROY; destroy()
200 uhid_write(fd, &ev); destroy()
207 static void handle_output(struct uhid_event *ev) handle_output() argument
210 if (ev->u.output.rtype != UHID_OUTPUT_REPORT) handle_output()
213 if (ev->u.output.size != 2) handle_output()
216 if (ev->u.output.data[0] != 0x2) handle_output()
221 ev->u.output.data[1]); handle_output()
226 struct uhid_event ev; event() local
229 memset(&ev, 0, sizeof(ev)); event()
230 ret = read(fd, &ev, sizeof(ev)); event()
237 } else if (ret != sizeof(ev)) { event()
239 ret, sizeof(ev)); event()
243 switch (ev.type) { event()
258 handle_output(&ev); event()
264 fprintf(stderr, "Invalid event from uhid-dev: %u\n", ev.type); event()
279 struct uhid_event ev; send_event() local
281 memset(&ev, 0, sizeof(ev)); send_event()
282 ev.type = UHID_INPUT; send_event()
283 ev.u.input.size = 5; send_event()
285 ev.u.input.data[0] = 0x1; send_event()
287 ev.u.input.data[1] |= 0x1; send_event()
289 ev.u.input.data[1] |= 0x2; send_event()
291 ev.u.input.data[1] |= 0x4; send_event()
293 ev.u.input.data[2] = abs_hor; send_event()
294 ev.u.input.data[3] = abs_ver; send_event()
295 ev.u.input.data[4] = wheel; send_event()
297 return uhid_write(fd, &ev); send_event()
/linux-4.1.27/drivers/hid/
H A Duhid.c58 static void uhid_queue(struct uhid_device *uhid, struct uhid_event *ev) uhid_queue() argument
65 uhid->outq[uhid->head] = ev; uhid_queue()
70 kfree(ev); uhid_queue()
77 struct uhid_event *ev; uhid_queue_event() local
79 ev = kzalloc(sizeof(*ev), GFP_KERNEL); uhid_queue_event()
80 if (!ev) uhid_queue_event()
83 ev->type = event; uhid_queue_event()
86 uhid_queue(uhid, ev); uhid_queue_event()
95 struct uhid_event *ev; uhid_hid_start() local
98 ev = kzalloc(sizeof(*ev), GFP_KERNEL); uhid_hid_start()
99 if (!ev) uhid_hid_start()
102 ev->type = UHID_START; uhid_hid_start()
105 ev->u.start.dev_flags |= UHID_DEV_NUMBERED_FEATURE_REPORTS; uhid_hid_start()
107 ev->u.start.dev_flags |= UHID_DEV_NUMBERED_OUTPUT_REPORTS; uhid_hid_start()
109 ev->u.start.dev_flags |= UHID_DEV_NUMBERED_INPUT_REPORTS; uhid_hid_start()
112 uhid_queue(uhid, ev); uhid_hid_start()
149 struct uhid_event *ev, __uhid_report_queue_and_wait()
157 uhid->report_type = ev->type + 1; __uhid_report_queue_and_wait()
159 uhid_queue(uhid, ev); __uhid_report_queue_and_wait()
178 const struct uhid_event *ev) uhid_report_wake_up()
185 if (uhid->report_type != ev->type || uhid->report_id != id) uhid_report_wake_up()
190 memcpy(&uhid->report_buf, ev, sizeof(*ev)); uhid_report_wake_up()
203 struct uhid_event *ev; uhid_hid_get_report() local
209 ev = kzalloc(sizeof(*ev), GFP_KERNEL); uhid_hid_get_report()
210 if (!ev) uhid_hid_get_report()
213 ev->type = UHID_GET_REPORT; uhid_hid_get_report()
214 ev->u.get_report.rnum = rnum; uhid_hid_get_report()
215 ev->u.get_report.rtype = rtype; uhid_hid_get_report()
219 kfree(ev); uhid_hid_get_report()
223 /* this _always_ takes ownership of @ev */ uhid_hid_get_report()
224 ret = __uhid_report_queue_and_wait(uhid, ev, &ev->u.get_report.id); uhid_hid_get_report()
245 struct uhid_event *ev; uhid_hid_set_report() local
251 ev = kzalloc(sizeof(*ev), GFP_KERNEL); uhid_hid_set_report()
252 if (!ev) uhid_hid_set_report()
255 ev->type = UHID_SET_REPORT; uhid_hid_set_report()
256 ev->u.set_report.rnum = rnum; uhid_hid_set_report()
257 ev->u.set_report.rtype = rtype; uhid_hid_set_report()
258 ev->u.set_report.size = count; uhid_hid_set_report()
259 memcpy(ev->u.set_report.data, buf, count); uhid_hid_set_report()
263 kfree(ev); uhid_hid_set_report()
267 /* this _always_ takes ownership of @ev */ uhid_hid_set_report()
268 ret = __uhid_report_queue_and_wait(uhid, ev, &ev->u.set_report.id); uhid_hid_set_report()
318 struct uhid_event *ev; uhid_hid_output_raw() local
334 ev = kzalloc(sizeof(*ev), GFP_KERNEL); uhid_hid_output_raw()
335 if (!ev) uhid_hid_output_raw()
338 ev->type = UHID_OUTPUT; uhid_hid_output_raw()
339 ev->u.output.size = count; uhid_hid_output_raw()
340 ev->u.output.rtype = rtype; uhid_hid_output_raw()
341 memcpy(ev->u.output.data, buf, count); uhid_hid_output_raw()
344 uhid_queue(uhid, ev); uhid_hid_output_raw()
455 const struct uhid_event *ev) uhid_dev_create2()
465 rd_size = ev->u.create2.rd_size; uhid_dev_create2()
469 rd_data = kmemdup(ev->u.create2.rd_data, rd_size, GFP_KERNEL); uhid_dev_create2()
482 len = min(sizeof(hid->name), sizeof(ev->u.create2.name)) - 1; uhid_dev_create2()
483 strncpy(hid->name, ev->u.create2.name, len); uhid_dev_create2()
484 len = min(sizeof(hid->phys), sizeof(ev->u.create2.phys)) - 1; uhid_dev_create2()
485 strncpy(hid->phys, ev->u.create2.phys, len); uhid_dev_create2()
486 len = min(sizeof(hid->uniq), sizeof(ev->u.create2.uniq)) - 1; uhid_dev_create2()
487 strncpy(hid->uniq, ev->u.create2.uniq, len); uhid_dev_create2()
490 hid->bus = ev->u.create2.bus; uhid_dev_create2()
491 hid->vendor = ev->u.create2.vendor; uhid_dev_create2()
492 hid->product = ev->u.create2.product; uhid_dev_create2()
493 hid->version = ev->u.create2.version; uhid_dev_create2()
494 hid->country = ev->u.create2.country; uhid_dev_create2()
521 struct uhid_event *ev) uhid_dev_create()
525 orig = ev->u.create; uhid_dev_create()
529 if (copy_from_user(&ev->u.create2.rd_data, orig.rd_data, orig.rd_size)) uhid_dev_create()
532 memcpy(ev->u.create2.name, orig.name, sizeof(orig.name)); uhid_dev_create()
533 memcpy(ev->u.create2.phys, orig.phys, sizeof(orig.phys)); uhid_dev_create()
534 memcpy(ev->u.create2.uniq, orig.uniq, sizeof(orig.uniq)); uhid_dev_create()
535 ev->u.create2.rd_size = orig.rd_size; uhid_dev_create()
536 ev->u.create2.bus = orig.bus; uhid_dev_create()
537 ev->u.create2.vendor = orig.vendor; uhid_dev_create()
538 ev->u.create2.product = orig.product; uhid_dev_create()
539 ev->u.create2.version = orig.version; uhid_dev_create()
540 ev->u.create2.country = orig.country; uhid_dev_create()
542 return uhid_dev_create2(uhid, ev); uhid_dev_create()
559 static int uhid_dev_input(struct uhid_device *uhid, struct uhid_event *ev) uhid_dev_input() argument
564 hid_input_report(uhid->hid, HID_INPUT_REPORT, ev->u.input.data, uhid_dev_input()
565 min_t(size_t, ev->u.input.size, UHID_DATA_MAX), 0); uhid_dev_input()
570 static int uhid_dev_input2(struct uhid_device *uhid, struct uhid_event *ev) uhid_dev_input2() argument
575 hid_input_report(uhid->hid, HID_INPUT_REPORT, ev->u.input2.data, uhid_dev_input2()
576 min_t(size_t, ev->u.input2.size, UHID_DATA_MAX), 0); uhid_dev_input2()
582 struct uhid_event *ev) uhid_dev_get_report_reply()
587 uhid_report_wake_up(uhid, ev->u.get_report_reply.id, ev); uhid_dev_get_report_reply()
592 struct uhid_event *ev) uhid_dev_set_report_reply()
597 uhid_report_wake_up(uhid, ev->u.set_report_reply.id, ev); uhid_dev_set_report_reply()
148 __uhid_report_queue_and_wait(struct uhid_device *uhid, struct uhid_event *ev, __u32 *report_id) __uhid_report_queue_and_wait() argument
177 uhid_report_wake_up(struct uhid_device *uhid, u32 id, const struct uhid_event *ev) uhid_report_wake_up() argument
454 uhid_dev_create2(struct uhid_device *uhid, const struct uhid_event *ev) uhid_dev_create2() argument
520 uhid_dev_create(struct uhid_device *uhid, struct uhid_event *ev) uhid_dev_create() argument
581 uhid_dev_get_report_reply(struct uhid_device *uhid, struct uhid_event *ev) uhid_dev_get_report_reply() argument
591 uhid_dev_set_report_reply(struct uhid_device *uhid, struct uhid_event *ev) uhid_dev_set_report_reply() argument
/linux-4.1.27/include/linux/ceph/
H A Dpagelist.h52 __le64 ev = cpu_to_le64(v); ceph_pagelist_encode_64() local
53 return ceph_pagelist_append(pl, &ev, sizeof(ev)); ceph_pagelist_encode_64()
57 __le32 ev = cpu_to_le32(v); ceph_pagelist_encode_32() local
58 return ceph_pagelist_append(pl, &ev, sizeof(ev)); ceph_pagelist_encode_32()
62 __le16 ev = cpu_to_le16(v); ceph_pagelist_encode_16() local
63 return ceph_pagelist_append(pl, &ev, sizeof(ev)); ceph_pagelist_encode_16()
/linux-4.1.27/drivers/s390/net/
H A Dsmsgiucv_app.c60 static void smsg_app_event_free(struct smsg_app_event *ev) smsg_app_event_free() argument
62 kfree(ev->buf); smsg_app_event_free()
63 kfree(ev); smsg_app_event_free()
69 struct smsg_app_event *ev; smsg_app_event_alloc() local
71 ev = kzalloc(sizeof(*ev), GFP_ATOMIC); smsg_app_event_alloc()
72 if (!ev) smsg_app_event_alloc()
75 ev->buf = kzalloc(ENV_SENDER_LEN + ENV_PREFIX_LEN + smsg_app_event_alloc()
77 if (!ev->buf) { smsg_app_event_alloc()
78 kfree(ev); smsg_app_event_alloc()
83 ev->envp[0] = ev->buf; smsg_app_event_alloc()
84 ev->envp[1] = ev->envp[0] + ENV_SENDER_LEN; smsg_app_event_alloc()
85 ev->envp[2] = ev->envp[1] + ENV_PREFIX_LEN; smsg_app_event_alloc()
86 ev->envp[3] = NULL; smsg_app_event_alloc()
89 snprintf(ev->envp[0], ENV_SENDER_LEN, ENV_SENDER_STR "%s", from); smsg_app_event_alloc()
90 snprintf(ev->envp[1], ENV_PREFIX_LEN, ENV_PREFIX_STR "%s", SMSG_PREFIX); smsg_app_event_alloc()
91 snprintf(ev->envp[2], ENV_TEXT_LEN(msg), ENV_TEXT_STR "%s", msg); smsg_app_event_alloc()
93 return ev; smsg_app_event_alloc()
H A Dnetiucv.c534 struct iucv_event ev; netiucv_callback_rx() local
536 ev.conn = conn; netiucv_callback_rx()
537 ev.data = msg; netiucv_callback_rx()
538 fsm_event(conn->fsm, CONN_EVENT_RX, &ev); netiucv_callback_rx()
545 struct iucv_event ev; netiucv_callback_txdone() local
547 ev.conn = conn; netiucv_callback_txdone()
548 ev.data = msg; netiucv_callback_txdone()
549 fsm_event(conn->fsm, CONN_EVENT_TXDONE, &ev); netiucv_callback_txdone()
563 struct iucv_event ev; netiucv_callback_connreq() local
579 ev.conn = conn; netiucv_callback_connreq()
580 ev.data = path; netiucv_callback_connreq()
581 fsm_event(conn->fsm, CONN_EVENT_CONN_REQ, &ev); netiucv_callback_connreq()
687 struct iucv_event *ev = arg; conn_action_rx() local
688 struct iucv_connection *conn = ev->conn; conn_action_rx()
689 struct iucv_message *msg = ev->data; conn_action_rx()
723 struct iucv_event *ev = arg; conn_action_txdone() local
724 struct iucv_connection *conn = ev->conn; conn_action_txdone()
725 struct iucv_message *msg = ev->data; conn_action_txdone()
814 struct iucv_event *ev = arg; conn_action_connaccept() local
815 struct iucv_connection *conn = ev->conn; conn_action_connaccept()
816 struct iucv_path *path = ev->data; conn_action_connaccept()
838 struct iucv_event *ev = arg; conn_action_connreject() local
839 struct iucv_path *path = ev->data; conn_action_connreject()
971 struct iucv_event *ev = arg; conn_action_stop() local
972 struct iucv_connection *conn = ev->conn; conn_action_stop()
1070 struct iucv_event ev; dev_action_stop() local
1074 ev.conn = privptr->conn; dev_action_stop()
1077 fsm_event(privptr->conn->fsm, CONN_EVENT_STOP, &ev); dev_action_stop()
H A Dfsm.c59 "fsm(%s): init_fsm: Bad template l=%d st(%ld/%ld) ev(%ld/%ld)\n", init_fsm()
/linux-4.1.27/arch/x86/kernel/cpu/
H A Dperf_event_amd_iommu.c24 #define _GET_BANK(ev) ((u8)(ev->hw.extra_reg.reg >> 8))
25 #define _GET_CNTR(ev) ((u8)(ev->hw.extra_reg.reg))
28 #define _GET_CSOURCE(ev) ((ev->hw.config & 0xFFULL))
29 #define _GET_DEVID(ev) ((ev->hw.config >> 8) & 0xFFFFULL)
30 #define _GET_PASID(ev) ((ev->hw.config >> 24) & 0xFFFFULL)
31 #define _GET_DOMID(ev) ((ev->hw.config >> 40) & 0xFFFFULL)
32 #define _GET_DEVID_MASK(ev) ((ev->hw.extra_reg.config) & 0xFFFFULL)
33 #define _GET_PASID_MASK(ev) ((ev->hw.extra_reg.config >> 16) & 0xFFFFULL)
34 #define _GET_DOMID_MASK(ev) ((ev->hw.extra_reg.config >> 32) & 0xFFFFULL)
250 static void perf_iommu_enable_event(struct perf_event *ev) perf_iommu_enable_event() argument
252 u8 csource = _GET_CSOURCE(ev); perf_iommu_enable_event()
253 u16 devid = _GET_DEVID(ev); perf_iommu_enable_event()
258 _GET_BANK(ev), _GET_CNTR(ev) , perf_iommu_enable_event()
261 reg = 0ULL | devid | (_GET_DEVID_MASK(ev) << 32); perf_iommu_enable_event()
265 _GET_BANK(ev), _GET_CNTR(ev) , perf_iommu_enable_event()
268 reg = 0ULL | _GET_PASID(ev) | (_GET_PASID_MASK(ev) << 32); perf_iommu_enable_event()
272 _GET_BANK(ev), _GET_CNTR(ev) , perf_iommu_enable_event()
275 reg = 0ULL | _GET_DOMID(ev) | (_GET_DOMID_MASK(ev) << 32); perf_iommu_enable_event()
279 _GET_BANK(ev), _GET_CNTR(ev) , perf_iommu_enable_event()
/linux-4.1.27/drivers/isdn/gigaset/
H A DMakefile1 gigaset-y := common.o interface.o proc.o ev-layer.o asyncdata.o
H A Dev-layer.c1103 struct event_t *ev) do_action()
1205 at_state = get_free_channel(cs, ev->parameter); do_action()
1315 if (ev->parameter > 0 && ev->parameter <= 65535) { do_action()
1316 cs->bcs[channel].at_state.cid = ev->parameter; do_action()
1368 if (!ev->ptr) { do_action()
1373 s = ev->ptr; do_action()
1423 __func__, ev->type, at_state->ConState); do_action()
1427 __func__, ev->type, at_state->ConState); do_action()
1431 ev->parameter, at_state->ConState); do_action()
1437 if (!ev->ptr) { do_action()
1442 start_dial(at_state, ev->ptr, ev->parameter); do_action()
1465 cs->cmd_result = ev->parameter ? do_lock(cs) : do_unlock(cs); do_action()
1470 if (ev->parameter != 0) do_action()
1475 memcpy(ev->arg, cs->fwver, sizeof cs->fwver); do_action()
1486 if (ev->parameter != cs->cidmode) { do_action()
1487 cs->cidmode = ev->parameter; do_action()
1488 if (ev->parameter) { do_action()
1528 static void process_event(struct cardstate *cs, struct event_t *ev) process_event() argument
1541 if (ev->cid >= 0) { process_event()
1542 at_state = at_state_from_cid(cs, ev->cid); process_event()
1545 ev->type, ev->cid); process_event()
1551 at_state = ev->at_state; process_event()
1560 at_state->ConState, ev->type); process_event()
1568 if (ev->type == EV_TIMEOUT) { process_event()
1569 if (ev->parameter != at_state->timer_index process_event()
1571 ev->type = RSP_NONE; /* old timeout */ process_event()
1584 if (ev->type >= RSP_VAR && ev->type < RSP_VAR + VAR_NUM) { process_event()
1585 index = ev->type - RSP_VAR; process_event()
1586 at_state->int_var[index] = ev->parameter; process_event()
1587 } else if (ev->type >= RSP_STR && ev->type < RSP_STR + STR_NUM) { process_event()
1588 index = ev->type - RSP_STR; process_event()
1590 at_state->str_var[index] = ev->ptr; process_event()
1591 ev->ptr = NULL; /* prevent process_events() from process_event()
1595 if (ev->type == EV_TIMEOUT || ev->type == RSP_STRING) process_event()
1606 __func__, ev->type, at_state->ConState); process_event()
1609 if ((rcode == RSP_ANY || rcode == ev->type) process_event()
1613 && (rep->parameter < 0 || rep->parameter == ev->parameter)) process_event()
1624 &genresp, &resp_code, ev); process_event()
1849 struct event_t *ev; process_events() local
1876 ev = cs->events + head; process_events()
1879 process_event(cs, ev); process_events()
1881 kfree(ev->ptr); process_events()
1882 ev->ptr = NULL; process_events()
1099 do_action(int action, struct cardstate *cs, struct bc_state *bcs, struct at_state_t **p_at_state, char **pp_command, int *p_genresp, int *p_resp_code, struct event_t *ev) do_action() argument
H A Dgigaset.h568 /* Called from ev-layer.c/interface.c for sending AT commands to the
577 /* Called from ev-layer.c after setting up connection
581 /* Called from ev-layer.c after hanging up
612 /* Called from ev-layer.c to process a block of data
635 /* Called from ev-layer.c to process a block of data
646 /* Called from ev-layer.c to process a block of data
680 /* Called from common.c/ev-layer.c to indicate events relevant to the LL */
690 * Functions implemented in ev-layer.c
/linux-4.1.27/drivers/net/fddi/skfp/
H A Dqueue.c75 struct event_queue *ev ; /* pointer into queue */ ev_dispatcher() local
78 ev = smc->q.ev_get ; ev_dispatcher()
79 PRINTF("dispatch get %x put %x\n",ev,smc->q.ev_put) ; ev_dispatcher()
80 while (ev != smc->q.ev_put) { ev_dispatcher()
81 PRINTF("dispatch class %d event %d\n",ev->class,ev->event) ; ev_dispatcher()
82 switch(class = ev->class) { ev_dispatcher()
84 ecm(smc,(int)ev->event) ; ev_dispatcher()
87 cfm(smc,(int)ev->event) ; ev_dispatcher()
90 rmt(smc,(int)ev->event) ; ev_dispatcher()
93 smt_event(smc,(int)ev->event) ; ev_dispatcher()
97 timer_test_event(smc,(int)ev->event) ; ev_dispatcher()
105 pcm(smc,class - EVENT_PCMA,(int)ev->event) ; ev_dispatcher()
112 if (++ev == &smc->q.ev_queue[MAX_EVENT]) ev_dispatcher()
113 ev = smc->q.ev_queue ; ev_dispatcher()
116 smc->q.ev_get = ev; ev_dispatcher()
/linux-4.1.27/net/bluetooth/
H A Dmgmt_util.c64 struct mgmt_ev_cmd_status *ev; mgmt_cmd_status() local
69 skb = alloc_skb(sizeof(*hdr) + sizeof(*ev), GFP_KERNEL); mgmt_cmd_status()
77 hdr->len = cpu_to_le16(sizeof(*ev)); mgmt_cmd_status()
79 ev = (void *) skb_put(skb, sizeof(*ev)); mgmt_cmd_status()
80 ev->status = status; mgmt_cmd_status()
81 ev->opcode = cpu_to_le16(cmd); mgmt_cmd_status()
95 struct mgmt_ev_cmd_complete *ev; mgmt_cmd_complete() local
100 skb = alloc_skb(sizeof(*hdr) + sizeof(*ev) + rp_len, GFP_KERNEL); mgmt_cmd_complete()
108 hdr->len = cpu_to_le16(sizeof(*ev) + rp_len); mgmt_cmd_complete()
110 ev = (void *) skb_put(skb, sizeof(*ev) + rp_len); mgmt_cmd_complete()
111 ev->opcode = cpu_to_le16(cmd); mgmt_cmd_complete()
112 ev->status = status; mgmt_cmd_complete()
115 memcpy(ev->data, rp, rp_len); mgmt_cmd_complete()
H A Dhci_event.c2218 struct hci_ev_conn_complete *ev = (void *) skb->data; hci_conn_complete_evt() local
2225 conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr); hci_conn_complete_evt()
2227 if (ev->link_type != SCO_LINK) hci_conn_complete_evt()
2230 conn = hci_conn_hash_lookup_ba(hdev, ESCO_LINK, &ev->bdaddr); hci_conn_complete_evt()
2237 if (!ev->status) { hci_conn_complete_evt()
2238 conn->handle = __le16_to_cpu(ev->handle); hci_conn_complete_evt()
2245 !hci_find_link_key(hdev, &ev->bdaddr)) hci_conn_complete_evt()
2264 cp.handle = ev->handle; hci_conn_complete_evt()
2274 cp.handle = ev->handle; hci_conn_complete_evt()
2283 conn->dst_type, ev->status); hci_conn_complete_evt()
2287 hci_sco_setup(conn, ev->status); hci_conn_complete_evt()
2289 if (ev->status) { hci_conn_complete_evt()
2290 hci_connect_cfm(conn, ev->status); hci_conn_complete_evt()
2292 } else if (ev->link_type != ACL_LINK) hci_conn_complete_evt()
2293 hci_connect_cfm(conn, ev->status); hci_conn_complete_evt()
2312 struct hci_ev_conn_request *ev = (void *) skb->data; hci_conn_request_evt() local
2318 BT_DBG("%s bdaddr %pMR type 0x%x", hdev->name, &ev->bdaddr, hci_conn_request_evt()
2319 ev->link_type); hci_conn_request_evt()
2321 mask |= hci_proto_connect_ind(hdev, &ev->bdaddr, ev->link_type, hci_conn_request_evt()
2325 hci_reject_conn(hdev, &ev->bdaddr); hci_conn_request_evt()
2329 if (hci_bdaddr_list_lookup(&hdev->blacklist, &ev->bdaddr, hci_conn_request_evt()
2331 hci_reject_conn(hdev, &ev->bdaddr); hci_conn_request_evt()
2341 !hci_bdaddr_list_lookup(&hdev->whitelist, &ev->bdaddr, hci_conn_request_evt()
2343 hci_reject_conn(hdev, &ev->bdaddr); hci_conn_request_evt()
2351 ie = hci_inquiry_cache_lookup(hdev, &ev->bdaddr); hci_conn_request_evt()
2353 memcpy(ie->data.dev_class, ev->dev_class, 3); hci_conn_request_evt()
2355 conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, hci_conn_request_evt()
2356 &ev->bdaddr); hci_conn_request_evt()
2358 conn = hci_conn_add(hdev, ev->link_type, &ev->bdaddr, hci_conn_request_evt()
2367 memcpy(conn->dev_class, ev->dev_class, 3); hci_conn_request_evt()
2371 if (ev->link_type == ACL_LINK || hci_conn_request_evt()
2376 bacpy(&cp.bdaddr, &ev->bdaddr); hci_conn_request_evt()
2388 bacpy(&cp.bdaddr, &ev->bdaddr); hci_conn_request_evt()
2423 struct hci_ev_disconn_complete *ev = (void *) skb->data; hci_disconn_complete_evt() local
2424 u8 reason = hci_to_mgmt_reason(ev->reason); hci_disconn_complete_evt()
2430 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_disconn_complete_evt()
2434 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); hci_disconn_complete_evt()
2438 if (ev->status) { hci_disconn_complete_evt()
2440 conn->dst_type, ev->status); hci_disconn_complete_evt()
2461 if (ev->reason != HCI_ERROR_CONNECTION_TIMEOUT) hci_disconn_complete_evt()
2479 hci_disconn_cfm(conn, ev->reason); hci_disconn_complete_evt()
2501 struct hci_ev_auth_complete *ev = (void *) skb->data; hci_auth_complete_evt() local
2504 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_auth_complete_evt()
2508 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); hci_auth_complete_evt()
2512 if (!ev->status) { hci_auth_complete_evt()
2521 mgmt_auth_failed(conn, ev->status); hci_auth_complete_evt()
2528 if (!ev->status && hci_conn_ssp_enabled(conn)) { hci_auth_complete_evt()
2530 cp.handle = ev->handle; hci_auth_complete_evt()
2536 hci_connect_cfm(conn, ev->status); hci_auth_complete_evt()
2540 hci_auth_cfm(conn, ev->status); hci_auth_complete_evt()
2548 if (!ev->status) { hci_auth_complete_evt()
2550 cp.handle = ev->handle; hci_auth_complete_evt()
2556 hci_encrypt_cfm(conn, ev->status, 0x00); hci_auth_complete_evt()
2566 struct hci_ev_remote_name *ev = (void *) skb->data; hci_remote_name_evt() local
2575 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); hci_remote_name_evt()
2580 if (ev->status == 0) hci_remote_name_evt()
2581 hci_check_pending_name(hdev, conn, &ev->bdaddr, ev->name, hci_remote_name_evt()
2582 strnlen(ev->name, HCI_MAX_NAME_LENGTH)); hci_remote_name_evt()
2584 hci_check_pending_name(hdev, conn, &ev->bdaddr, NULL, 0); hci_remote_name_evt()
2608 struct hci_ev_encrypt_change *ev = (void *) skb->data; hci_encrypt_change_evt() local
2611 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_encrypt_change_evt()
2615 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); hci_encrypt_change_evt()
2619 if (!ev->status) { hci_encrypt_change_evt()
2620 if (ev->encrypt) { hci_encrypt_change_evt()
2630 if ((conn->type == ACL_LINK && ev->encrypt == 0x02) || hci_encrypt_change_evt()
2642 if (ev->status && conn->type == LE_LINK) hci_encrypt_change_evt()
2647 if (ev->status && conn->state == BT_CONNECTED) { hci_encrypt_change_evt()
2654 if (!ev->status) hci_encrypt_change_evt()
2669 hci_connect_cfm(conn, ev->status); hci_encrypt_change_evt()
2672 hci_encrypt_cfm(conn, ev->status, ev->encrypt); hci_encrypt_change_evt()
2681 struct hci_ev_change_link_key_complete *ev = (void *) skb->data; hci_change_link_key_complete_evt() local
2684 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_change_link_key_complete_evt()
2688 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); hci_change_link_key_complete_evt()
2690 if (!ev->status) hci_change_link_key_complete_evt()
2695 hci_key_change_cfm(conn, ev->status); hci_change_link_key_complete_evt()
2704 struct hci_ev_remote_features *ev = (void *) skb->data; hci_remote_features_evt() local
2707 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_remote_features_evt()
2711 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); hci_remote_features_evt()
2715 if (!ev->status) hci_remote_features_evt()
2716 memcpy(conn->features[0], ev->features, 8); hci_remote_features_evt()
2721 if (!ev->status && lmp_ext_feat_capable(hdev) && hci_remote_features_evt()
2724 cp.handle = ev->handle; hci_remote_features_evt()
2731 if (!ev->status && !test_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) { hci_remote_features_evt()
2742 hci_connect_cfm(conn, ev->status); hci_remote_features_evt()
2755 struct hci_ev_cmd_complete *ev = (void *) skb->data; hci_cmd_complete_evt() local
2757 *opcode = __le16_to_cpu(ev->opcode); hci_cmd_complete_evt()
2758 *status = skb->data[sizeof(*ev)]; hci_cmd_complete_evt()
2760 skb_pull(skb, sizeof(*ev)); hci_cmd_complete_evt()
3047 if (ev->ncmd && !test_bit(HCI_RESET, &hdev->flags)) hci_cmd_complete_evt()
3062 struct hci_ev_cmd_status *ev = (void *) skb->data; hci_cmd_status_evt() local
3064 skb_pull(skb, sizeof(*ev)); hci_cmd_status_evt()
3066 *opcode = __le16_to_cpu(ev->opcode); hci_cmd_status_evt()
3067 *status = ev->status; hci_cmd_status_evt()
3071 hci_cs_inquiry(hdev, ev->status); hci_cmd_status_evt()
3075 hci_cs_create_conn(hdev, ev->status); hci_cmd_status_evt()
3079 hci_cs_disconnect(hdev, ev->status); hci_cmd_status_evt()
3083 hci_cs_add_sco(hdev, ev->status); hci_cmd_status_evt()
3087 hci_cs_auth_requested(hdev, ev->status); hci_cmd_status_evt()
3091 hci_cs_set_conn_encrypt(hdev, ev->status); hci_cmd_status_evt()
3095 hci_cs_remote_name_req(hdev, ev->status); hci_cmd_status_evt()
3099 hci_cs_read_remote_features(hdev, ev->status); hci_cmd_status_evt()
3103 hci_cs_read_remote_ext_features(hdev, ev->status); hci_cmd_status_evt()
3107 hci_cs_setup_sync_conn(hdev, ev->status); hci_cmd_status_evt()
3111 hci_cs_create_phylink(hdev, ev->status); hci_cmd_status_evt()
3115 hci_cs_accept_phylink(hdev, ev->status); hci_cmd_status_evt()
3119 hci_cs_sniff_mode(hdev, ev->status); hci_cmd_status_evt()
3123 hci_cs_exit_sniff_mode(hdev, ev->status); hci_cmd_status_evt()
3127 hci_cs_switch_role(hdev, ev->status); hci_cmd_status_evt()
3131 hci_cs_le_create_conn(hdev, ev->status); hci_cmd_status_evt()
3135 hci_cs_le_read_remote_features(hdev, ev->status); hci_cmd_status_evt()
3139 hci_cs_le_start_enc(hdev, ev->status); hci_cmd_status_evt()
3150 if (ev->ncmd && !test_bit(HCI_RESET, &hdev->flags)) hci_cmd_status_evt()
3159 if (ev->status || hci_cmd_status_evt()
3161 hci_req_cmd_complete(hdev, *opcode, ev->status, req_complete, hci_cmd_status_evt()
3170 struct hci_ev_hardware_error *ev = (void *) skb->data; hci_hardware_error_evt() local
3172 hdev->hw_error_code = ev->code; hci_hardware_error_evt()
3179 struct hci_ev_role_change *ev = (void *) skb->data; hci_role_change_evt() local
3182 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_role_change_evt()
3186 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); hci_role_change_evt()
3188 if (!ev->status) hci_role_change_evt()
3189 conn->role = ev->role; hci_role_change_evt()
3193 hci_role_switch_cfm(conn, ev->status, ev->role); hci_role_change_evt()
3201 struct hci_ev_num_comp_pkts *ev = (void *) skb->data; hci_num_comp_pkts_evt() local
3209 if (skb->len < sizeof(*ev) || skb->len < sizeof(*ev) + hci_num_comp_pkts_evt()
3210 ev->num_hndl * sizeof(struct hci_comp_pkts_info)) { hci_num_comp_pkts_evt()
3215 BT_DBG("%s num_hndl %d", hdev->name, ev->num_hndl); hci_num_comp_pkts_evt()
3217 for (i = 0; i < ev->num_hndl; i++) { hci_num_comp_pkts_evt()
3218 struct hci_comp_pkts_info *info = &ev->handles[i]; hci_num_comp_pkts_evt()
3288 struct hci_ev_num_comp_blocks *ev = (void *) skb->data; hci_num_comp_blocks_evt() local
3296 if (skb->len < sizeof(*ev) || skb->len < sizeof(*ev) + hci_num_comp_blocks_evt()
3297 ev->num_hndl * sizeof(struct hci_comp_blocks_info)) { hci_num_comp_blocks_evt()
3302 BT_DBG("%s num_blocks %d num_hndl %d", hdev->name, ev->num_blocks, hci_num_comp_blocks_evt()
3303 ev->num_hndl); hci_num_comp_blocks_evt()
3305 for (i = 0; i < ev->num_hndl; i++) { hci_num_comp_blocks_evt()
3306 struct hci_comp_blocks_info *info = &ev->handles[i]; hci_num_comp_blocks_evt()
3338 struct hci_ev_mode_change *ev = (void *) skb->data; hci_mode_change_evt() local
3341 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_mode_change_evt()
3345 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); hci_mode_change_evt()
3347 conn->mode = ev->mode; hci_mode_change_evt()
3358 hci_sco_setup(conn, ev->status); hci_mode_change_evt()
3366 struct hci_ev_pin_code_req *ev = (void *) skb->data; hci_pin_code_request_evt() local
3373 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); hci_pin_code_request_evt()
3386 sizeof(ev->bdaddr), &ev->bdaddr); hci_pin_code_request_evt()
3395 mgmt_pin_code_request(hdev, &ev->bdaddr, secure); hci_pin_code_request_evt()
3436 struct hci_ev_link_key_req *ev = (void *) skb->data; hci_link_key_request_evt() local
3448 key = hci_find_link_key(hdev, &ev->bdaddr); hci_link_key_request_evt()
3451 &ev->bdaddr); hci_link_key_request_evt()
3456 &ev->bdaddr); hci_link_key_request_evt()
3458 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); hci_link_key_request_evt()
3480 bacpy(&cp.bdaddr, &ev->bdaddr); hci_link_key_request_evt()
3490 hci_send_cmd(hdev, HCI_OP_LINK_KEY_NEG_REPLY, 6, &ev->bdaddr); hci_link_key_request_evt()
3496 struct hci_ev_link_key_notify *ev = (void *) skb->data; hci_link_key_notify_evt() local
3506 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); hci_link_key_notify_evt()
3515 conn_set_key(conn, ev->key_type, conn->pin_length); hci_link_key_notify_evt()
3520 key = hci_add_link_key(hdev, conn, &ev->bdaddr, ev->link_key, hci_link_key_notify_evt()
3521 ev->key_type, pin_len, &persistent); hci_link_key_notify_evt()
3528 if (ev->key_type == HCI_LK_CHANGED_COMBINATION) hci_link_key_notify_evt()
3556 struct hci_ev_clock_offset *ev = (void *) skb->data; hci_clock_offset_evt() local
3559 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_clock_offset_evt()
3563 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); hci_clock_offset_evt()
3564 if (conn && !ev->status) { hci_clock_offset_evt()
3569 ie->data.clock_offset = ev->clock_offset; hci_clock_offset_evt()
3579 struct hci_ev_pkt_type_change *ev = (void *) skb->data; hci_pkt_type_change_evt() local
3582 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_pkt_type_change_evt()
3586 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); hci_pkt_type_change_evt()
3587 if (conn && !ev->status) hci_pkt_type_change_evt()
3588 conn->pkt_type = __le16_to_cpu(ev->pkt_type); hci_pkt_type_change_evt()
3595 struct hci_ev_pscan_rep_mode *ev = (void *) skb->data; hci_pscan_rep_mode_evt() local
3602 ie = hci_inquiry_cache_lookup(hdev, &ev->bdaddr); hci_pscan_rep_mode_evt()
3604 ie->data.pscan_rep_mode = ev->pscan_rep_mode; hci_pscan_rep_mode_evt()
3678 struct hci_ev_remote_ext_features *ev = (void *) skb->data; hci_remote_ext_features_evt() local
3685 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); hci_remote_ext_features_evt()
3689 if (ev->page < HCI_MAX_PAGES) hci_remote_ext_features_evt()
3690 memcpy(conn->features[ev->page], ev->features, 8); hci_remote_ext_features_evt()
3692 if (!ev->status && ev->page == 0x01) { hci_remote_ext_features_evt()
3697 ie->data.ssp_mode = (ev->features[0] & LMP_HOST_SSP); hci_remote_ext_features_evt()
3699 if (ev->features[0] & LMP_HOST_SSP) { hci_remote_ext_features_evt()
3713 if (ev->features[0] & LMP_HOST_SC) hci_remote_ext_features_evt()
3720 if (!ev->status && !test_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) { hci_remote_ext_features_evt()
3731 hci_connect_cfm(conn, ev->status); hci_remote_ext_features_evt()
3742 struct hci_ev_sync_conn_complete *ev = (void *) skb->data; hci_sync_conn_complete_evt() local
3745 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_sync_conn_complete_evt()
3749 conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr); hci_sync_conn_complete_evt()
3751 if (ev->link_type == ESCO_LINK) hci_sync_conn_complete_evt()
3754 conn = hci_conn_hash_lookup_ba(hdev, ESCO_LINK, &ev->bdaddr); hci_sync_conn_complete_evt()
3761 switch (ev->status) { hci_sync_conn_complete_evt()
3763 conn->handle = __le16_to_cpu(ev->handle); hci_sync_conn_complete_evt()
3790 hci_connect_cfm(conn, ev->status); hci_sync_conn_complete_evt()
3791 if (ev->status) hci_sync_conn_complete_evt()
3868 struct hci_ev_key_refresh_complete *ev = (void *) skb->data; hci_key_refresh_complete_evt() local
3871 BT_DBG("%s status 0x%2.2x handle 0x%4.4x", hdev->name, ev->status, hci_key_refresh_complete_evt()
3872 __le16_to_cpu(ev->handle)); hci_key_refresh_complete_evt()
3876 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); hci_key_refresh_complete_evt()
3886 if (!ev->status) hci_key_refresh_complete_evt()
3891 if (ev->status && conn->state == BT_CONNECTED) { hci_key_refresh_complete_evt()
3898 if (!ev->status) hci_key_refresh_complete_evt()
3901 hci_connect_cfm(conn, ev->status); hci_key_refresh_complete_evt()
3904 hci_auth_cfm(conn, ev->status); hci_key_refresh_complete_evt()
3977 struct hci_ev_io_capa_request *ev = (void *) skb->data; hci_io_capa_request_evt() local
3984 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); hci_io_capa_request_evt()
4001 bacpy(&cp.bdaddr, &ev->bdaddr); hci_io_capa_request_evt()
4033 bacpy(&cp.bdaddr, &ev->bdaddr); hci_io_capa_request_evt()
4046 struct hci_ev_io_capa_reply *ev = (void *) skb->data; hci_io_capa_reply_evt() local
4053 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); hci_io_capa_reply_evt()
4057 conn->remote_cap = ev->capability; hci_io_capa_reply_evt()
4058 conn->remote_auth = ev->authentication; hci_io_capa_reply_evt()
4067 struct hci_ev_user_confirm_req *ev = (void *) skb->data; hci_user_confirm_request_evt() local
4078 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); hci_user_confirm_request_evt()
4094 sizeof(ev->bdaddr), &ev->bdaddr); hci_user_confirm_request_evt()
4127 sizeof(ev->bdaddr), &ev->bdaddr); hci_user_confirm_request_evt()
4132 mgmt_user_confirm_request(hdev, &ev->bdaddr, ACL_LINK, 0, hci_user_confirm_request_evt()
4133 le32_to_cpu(ev->passkey), confirm_hint); hci_user_confirm_request_evt()
4142 struct hci_ev_user_passkey_req *ev = (void *) skb->data; hci_user_passkey_request_evt() local
4147 mgmt_user_passkey_request(hdev, &ev->bdaddr, ACL_LINK, 0); hci_user_passkey_request_evt()
4153 struct hci_ev_user_passkey_notify *ev = (void *) skb->data; hci_user_passkey_notify_evt() local
4158 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); hci_user_passkey_notify_evt()
4162 conn->passkey_notify = __le32_to_cpu(ev->passkey); hci_user_passkey_notify_evt()
4173 struct hci_ev_keypress_notify *ev = (void *) skb->data; hci_keypress_notify_evt() local
4178 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); hci_keypress_notify_evt()
4182 switch (ev->type) { hci_keypress_notify_evt()
4212 struct hci_ev_simple_pair_complete *ev = (void *) skb->data; hci_simple_pair_complete_evt() local
4219 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); hci_simple_pair_complete_evt()
4231 if (!test_bit(HCI_CONN_AUTH_PEND, &conn->flags) && ev->status) hci_simple_pair_complete_evt()
4232 mgmt_auth_failed(conn, ev->status); hci_simple_pair_complete_evt()
4243 struct hci_ev_remote_host_features *ev = (void *) skb->data; hci_remote_host_features_evt() local
4251 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &ev->bdaddr); hci_remote_host_features_evt()
4253 memcpy(conn->features[1], ev->features, 8); hci_remote_host_features_evt()
4255 ie = hci_inquiry_cache_lookup(hdev, &ev->bdaddr); hci_remote_host_features_evt()
4257 ie->data.ssp_mode = (ev->features[0] & LMP_HOST_SSP); hci_remote_host_features_evt()
4265 struct hci_ev_remote_oob_data_request *ev = (void *) skb->data; hci_remote_oob_data_request_evt() local
4275 data = hci_find_remote_oob_data(hdev, &ev->bdaddr, BDADDR_BREDR); hci_remote_oob_data_request_evt()
4279 bacpy(&cp.bdaddr, &ev->bdaddr); hci_remote_oob_data_request_evt()
4288 bacpy(&cp.bdaddr, &ev->bdaddr); hci_remote_oob_data_request_evt()
4304 bacpy(&cp.bdaddr, &ev->bdaddr); hci_remote_oob_data_request_evt()
4319 struct hci_ev_phy_link_complete *ev = (void *) skb->data; hci_phy_link_complete_evt() local
4322 BT_DBG("%s handle 0x%2.2x status 0x%2.2x", hdev->name, ev->phy_handle, hci_phy_link_complete_evt()
4323 ev->status); hci_phy_link_complete_evt()
4327 hcon = hci_conn_hash_lookup_handle(hdev, ev->phy_handle); hci_phy_link_complete_evt()
4333 if (ev->status) { hci_phy_link_complete_evt()
4358 struct hci_ev_logical_link_complete *ev = (void *) skb->data; hci_loglink_complete_evt() local
4364 hdev->name, le16_to_cpu(ev->handle), ev->phy_handle, hci_loglink_complete_evt()
4365 ev->status); hci_loglink_complete_evt()
4367 hcon = hci_conn_hash_lookup_handle(hdev, ev->phy_handle); hci_loglink_complete_evt()
4376 hchan->handle = le16_to_cpu(ev->handle); hci_loglink_complete_evt()
4397 struct hci_ev_disconn_logical_link_complete *ev = (void *) skb->data; hci_disconn_loglink_complete_evt() local
4401 le16_to_cpu(ev->handle), ev->status); hci_disconn_loglink_complete_evt()
4403 if (ev->status) hci_disconn_loglink_complete_evt()
4408 hchan = hci_chan_lookup_handle(hdev, le16_to_cpu(ev->handle)); hci_disconn_loglink_complete_evt()
4412 amp_destroy_logical_link(hchan, ev->reason); hci_disconn_loglink_complete_evt()
4421 struct hci_ev_disconn_phy_link_complete *ev = (void *) skb->data; hci_disconn_phylink_complete_evt() local
4424 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_disconn_phylink_complete_evt()
4426 if (ev->status) hci_disconn_phylink_complete_evt()
4431 hcon = hci_conn_hash_lookup_handle(hdev, ev->phy_handle); hci_disconn_phylink_complete_evt()
4442 struct hci_ev_le_conn_complete *ev = (void *) skb->data; hci_le_conn_complete_evt() local
4448 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_le_conn_complete_evt()
4459 conn = hci_conn_add(hdev, LE_LINK, &ev->bdaddr, ev->role); hci_le_conn_complete_evt()
4465 conn->dst_type = ev->bdaddr_type; hci_le_conn_complete_evt()
4476 conn->resp_addr_type = ev->bdaddr_type; hci_le_conn_complete_evt()
4477 bacpy(&conn->resp_addr, &ev->bdaddr); hci_le_conn_complete_evt()
4501 conn->init_addr_type = ev->bdaddr_type; hci_le_conn_complete_evt()
4502 bacpy(&conn->init_addr, &ev->bdaddr); hci_le_conn_complete_evt()
4528 if (ev->status) { hci_le_conn_complete_evt()
4529 hci_le_conn_failed(conn, ev->status); hci_le_conn_complete_evt()
4548 conn->handle = __le16_to_cpu(ev->handle); hci_le_conn_complete_evt()
4551 conn->le_conn_interval = le16_to_cpu(ev->interval); hci_le_conn_complete_evt()
4552 conn->le_conn_latency = le16_to_cpu(ev->latency); hci_le_conn_complete_evt()
4553 conn->le_supv_timeout = le16_to_cpu(ev->supervision_timeout); hci_le_conn_complete_evt()
4558 if (!ev->status) { hci_le_conn_complete_evt()
4580 hci_connect_cfm(conn, ev->status); hci_le_conn_complete_evt()
4583 hci_connect_cfm(conn, ev->status); hci_le_conn_complete_evt()
4605 struct hci_ev_le_conn_update_complete *ev = (void *) skb->data; hci_le_conn_update_complete_evt() local
4608 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_le_conn_update_complete_evt()
4610 if (ev->status) hci_le_conn_update_complete_evt()
4615 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); hci_le_conn_update_complete_evt()
4617 conn->le_conn_interval = le16_to_cpu(ev->interval); hci_le_conn_update_complete_evt()
4618 conn->le_conn_latency = le16_to_cpu(ev->latency); hci_le_conn_update_complete_evt()
4619 conn->le_supv_timeout = le16_to_cpu(ev->supervision_timeout); hci_le_conn_update_complete_evt()
4872 struct hci_ev_le_advertising_info *ev = ptr; hci_le_adv_report_evt() local
4875 rssi = ev->data[ev->length]; hci_le_adv_report_evt()
4876 process_adv_report(hdev, ev->evt_type, &ev->bdaddr, hci_le_adv_report_evt()
4877 ev->bdaddr_type, NULL, 0, rssi, hci_le_adv_report_evt()
4878 ev->data, ev->length); hci_le_adv_report_evt()
4880 ptr += sizeof(*ev) + ev->length + 1; hci_le_adv_report_evt()
4889 struct hci_ev_le_remote_feat_complete *ev = (void *)skb->data; hci_le_remote_feat_complete_evt() local
4892 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); hci_le_remote_feat_complete_evt()
4896 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); hci_le_remote_feat_complete_evt()
4898 if (!ev->status) hci_le_remote_feat_complete_evt()
4899 memcpy(conn->features[0], ev->features, 8); hci_le_remote_feat_complete_evt()
4914 !conn->out && ev->status == 0x1a) hci_le_remote_feat_complete_evt()
4917 status = ev->status; hci_le_remote_feat_complete_evt()
4930 struct hci_ev_le_ltk_req *ev = (void *) skb->data; hci_le_ltk_request_evt() local
4936 BT_DBG("%s handle 0x%4.4x", hdev->name, __le16_to_cpu(ev->handle)); hci_le_ltk_request_evt()
4940 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle)); hci_le_ltk_request_evt()
4950 if (ev->ediv || ev->rand) hci_le_ltk_request_evt()
4954 if (ev->ediv != ltk->ediv || ev->rand != ltk->rand) hci_le_ltk_request_evt()
4986 neg.handle = ev->handle; hci_le_ltk_request_evt()
5006 struct hci_ev_le_remote_conn_param_req *ev = (void *) skb->data; hci_le_remote_conn_param_req_evt() local
5011 handle = le16_to_cpu(ev->handle); hci_le_remote_conn_param_req_evt()
5012 min = le16_to_cpu(ev->interval_min); hci_le_remote_conn_param_req_evt()
5013 max = le16_to_cpu(ev->interval_max); hci_le_remote_conn_param_req_evt()
5014 latency = le16_to_cpu(ev->latency); hci_le_remote_conn_param_req_evt()
5015 timeout = le16_to_cpu(ev->timeout); hci_le_remote_conn_param_req_evt()
5050 cp.handle = ev->handle; hci_le_remote_conn_param_req_evt()
5051 cp.interval_min = ev->interval_min; hci_le_remote_conn_param_req_evt()
5052 cp.interval_max = ev->interval_max; hci_le_remote_conn_param_req_evt()
5053 cp.latency = ev->latency; hci_le_remote_conn_param_req_evt()
5054 cp.timeout = ev->timeout; hci_le_remote_conn_param_req_evt()
5070 struct hci_ev_le_direct_adv_info *ev = ptr; hci_le_direct_adv_report_evt() local
5072 process_adv_report(hdev, ev->evt_type, &ev->bdaddr, hci_le_direct_adv_report_evt()
5073 ev->bdaddr_type, &ev->direct_addr, hci_le_direct_adv_report_evt()
5074 ev->direct_addr_type, ev->rssi, NULL, 0); hci_le_direct_adv_report_evt()
5076 ptr += sizeof(*ev); hci_le_direct_adv_report_evt()
5124 struct hci_ev_channel_selected *ev = (void *) skb->data; hci_chan_selected_evt() local
5127 BT_DBG("%s handle 0x%2.2x", hdev->name, ev->phy_handle); hci_chan_selected_evt()
5129 skb_pull(skb, sizeof(*ev)); hci_chan_selected_evt()
5131 hcon = hci_conn_hash_lookup_handle(hdev, ev->phy_handle); hci_chan_selected_evt()
5141 struct hci_ev_cmd_complete *ev; hci_get_cmd_complete() local
5166 if (skb->len < sizeof(*ev)) { hci_get_cmd_complete()
5171 ev = (void *) skb->data; hci_get_cmd_complete()
5172 skb_pull(skb, sizeof(*ev)); hci_get_cmd_complete()
5174 if (opcode != __le16_to_cpu(ev->opcode)) { hci_get_cmd_complete()
5176 __le16_to_cpu(ev->opcode)); hci_get_cmd_complete()
H A Dmgmt.c1445 struct mgmt_ev_advertising_added ev; advertising_added() local
1447 ev.instance = instance; advertising_added()
1449 mgmt_event(MGMT_EV_ADVERTISING_ADDED, hdev, &ev, sizeof(ev), sk); advertising_added()
1455 struct mgmt_ev_advertising_removed ev; advertising_removed() local
1457 ev.instance = instance; advertising_removed()
1459 mgmt_event(MGMT_EV_ADVERTISING_REMOVED, hdev, &ev, sizeof(ev), sk); advertising_removed()
1615 __le32 ev = cpu_to_le32(get_current_settings(hdev)); new_settings() local
1617 return mgmt_generic_event(MGMT_EV_NEW_SETTINGS, hdev, &ev, new_settings()
1618 sizeof(ev), skip); new_settings()
2905 struct mgmt_ev_device_unpaired ev; device_unpaired() local
2907 bacpy(&ev.addr.bdaddr, bdaddr); device_unpaired()
2908 ev.addr.type = addr_type; device_unpaired()
2910 return mgmt_event(MGMT_EV_DEVICE_UNPAIRED, hdev, &ev, sizeof(ev), device_unpaired()
5988 struct mgmt_ev_device_added ev; device_added() local
5990 bacpy(&ev.addr.bdaddr, bdaddr); device_added()
5991 ev.addr.type = type; device_added()
5992 ev.action = action; device_added()
5994 mgmt_event(MGMT_EV_DEVICE_ADDED, hdev, &ev, sizeof(ev), sk); device_added()
6112 struct mgmt_ev_device_removed ev; device_removed() local
6114 bacpy(&ev.addr.bdaddr, bdaddr); device_removed()
6115 ev.addr.type = type; device_removed()
6117 mgmt_event(MGMT_EV_DEVICE_REMOVED, hdev, &ev, sizeof(ev), sk); device_removed()
7243 struct mgmt_ev_ext_index ev; mgmt_index_added() local
7253 ev.type = 0x01; mgmt_index_added()
7257 ev.type = 0x00; mgmt_index_added()
7261 ev.type = 0x02; mgmt_index_added()
7267 ev.bus = hdev->bus; mgmt_index_added()
7269 mgmt_index_event(MGMT_EV_EXT_INDEX_ADDED, hdev, &ev, sizeof(ev), mgmt_index_added()
7275 struct mgmt_ev_ext_index ev; mgmt_index_removed() local
7288 ev.type = 0x01; mgmt_index_removed()
7292 ev.type = 0x00; mgmt_index_removed()
7296 ev.type = 0x02; mgmt_index_removed()
7302 ev.bus = hdev->bus; mgmt_index_removed()
7304 mgmt_index_event(MGMT_EV_EXT_INDEX_REMOVED, hdev, &ev, sizeof(ev), mgmt_index_removed()
7542 struct mgmt_ev_new_link_key ev; mgmt_new_link_key() local
7544 memset(&ev, 0, sizeof(ev)); mgmt_new_link_key()
7546 ev.store_hint = persistent; mgmt_new_link_key()
7547 bacpy(&ev.key.addr.bdaddr, &key->bdaddr); mgmt_new_link_key()
7548 ev.key.addr.type = BDADDR_BREDR; mgmt_new_link_key()
7549 ev.key.type = key->type; mgmt_new_link_key()
7550 memcpy(ev.key.val, key->val, HCI_LINK_KEY_SIZE); mgmt_new_link_key()
7551 ev.key.pin_len = key->pin_len; mgmt_new_link_key()
7553 mgmt_event(MGMT_EV_NEW_LINK_KEY, hdev, &ev, sizeof(ev), NULL); mgmt_new_link_key()
7577 struct mgmt_ev_new_long_term_key ev; mgmt_new_ltk() local
7579 memset(&ev, 0, sizeof(ev)); mgmt_new_ltk()
7594 ev.store_hint = 0x00; mgmt_new_ltk()
7596 ev.store_hint = persistent; mgmt_new_ltk()
7598 bacpy(&ev.key.addr.bdaddr, &key->bdaddr); mgmt_new_ltk()
7599 ev.key.addr.type = link_to_bdaddr(LE_LINK, key->bdaddr_type); mgmt_new_ltk()
7600 ev.key.type = mgmt_ltk_type(key); mgmt_new_ltk()
7601 ev.key.enc_size = key->enc_size; mgmt_new_ltk()
7602 ev.key.ediv = key->ediv; mgmt_new_ltk()
7603 ev.key.rand = key->rand; mgmt_new_ltk()
7606 ev.key.master = 1; mgmt_new_ltk()
7608 memcpy(ev.key.val, key->val, sizeof(key->val)); mgmt_new_ltk()
7610 mgmt_event(MGMT_EV_NEW_LONG_TERM_KEY, hdev, &ev, sizeof(ev), NULL); mgmt_new_ltk()
7615 struct mgmt_ev_new_irk ev; mgmt_new_irk() local
7617 memset(&ev, 0, sizeof(ev)); mgmt_new_irk()
7631 ev.store_hint = 0x01; mgmt_new_irk()
7633 ev.store_hint = 0x00; mgmt_new_irk()
7635 bacpy(&ev.rpa, &irk->rpa); mgmt_new_irk()
7636 bacpy(&ev.irk.addr.bdaddr, &irk->bdaddr); mgmt_new_irk()
7637 ev.irk.addr.type = link_to_bdaddr(LE_LINK, irk->addr_type); mgmt_new_irk()
7638 memcpy(ev.irk.val, irk->val, sizeof(irk->val)); mgmt_new_irk()
7640 mgmt_event(MGMT_EV_NEW_IRK, hdev, &ev, sizeof(ev), NULL); mgmt_new_irk()
7646 struct mgmt_ev_new_csrk ev; mgmt_new_csrk() local
7648 memset(&ev, 0, sizeof(ev)); mgmt_new_csrk()
7661 ev.store_hint = 0x00; mgmt_new_csrk()
7663 ev.store_hint = persistent; mgmt_new_csrk()
7665 bacpy(&ev.key.addr.bdaddr, &csrk->bdaddr); mgmt_new_csrk()
7666 ev.key.addr.type = link_to_bdaddr(LE_LINK, csrk->bdaddr_type); mgmt_new_csrk()
7667 ev.key.type = csrk->type; mgmt_new_csrk()
7668 memcpy(ev.key.val, csrk->val, sizeof(csrk->val)); mgmt_new_csrk()
7670 mgmt_event(MGMT_EV_NEW_CSRK, hdev, &ev, sizeof(ev), NULL); mgmt_new_csrk()
7677 struct mgmt_ev_new_conn_param ev; mgmt_new_conn_param() local
7682 memset(&ev, 0, sizeof(ev)); mgmt_new_conn_param()
7683 bacpy(&ev.addr.bdaddr, bdaddr); mgmt_new_conn_param()
7684 ev.addr.type = link_to_bdaddr(LE_LINK, bdaddr_type); mgmt_new_conn_param()
7685 ev.store_hint = store_hint; mgmt_new_conn_param()
7686 ev.min_interval = cpu_to_le16(min_interval); mgmt_new_conn_param()
7687 ev.max_interval = cpu_to_le16(max_interval); mgmt_new_conn_param()
7688 ev.latency = cpu_to_le16(latency); mgmt_new_conn_param()
7689 ev.timeout = cpu_to_le16(timeout); mgmt_new_conn_param()
7691 mgmt_event(MGMT_EV_NEW_CONN_PARAM, hdev, &ev, sizeof(ev), NULL); mgmt_new_conn_param()
7698 struct mgmt_ev_device_connected *ev = (void *) buf; mgmt_device_connected() local
7701 bacpy(&ev->addr.bdaddr, &conn->dst); mgmt_device_connected()
7702 ev->addr.type = link_to_bdaddr(conn->type, conn->dst_type); mgmt_device_connected()
7704 ev->flags = __cpu_to_le32(flags); mgmt_device_connected()
7711 memcpy(&ev->eir[eir_len], mgmt_device_connected()
7716 eir_len = eir_append_data(ev->eir, 0, EIR_NAME_COMPLETE, mgmt_device_connected()
7720 eir_len = eir_append_data(ev->eir, eir_len, mgmt_device_connected()
7725 ev->eir_len = cpu_to_le16(eir_len); mgmt_device_connected()
7728 sizeof(*ev) + eir_len, NULL); mgmt_device_connected()
7774 struct mgmt_ev_device_disconnected ev; mgmt_device_disconnected() local
7793 bacpy(&ev.addr.bdaddr, bdaddr); mgmt_device_disconnected()
7794 ev.addr.type = link_to_bdaddr(link_type, addr_type); mgmt_device_disconnected()
7795 ev.reason = reason; mgmt_device_disconnected()
7797 mgmt_event(MGMT_EV_DEVICE_DISCONNECTED, hdev, &ev, sizeof(ev), sk); mgmt_device_disconnected()
7835 struct mgmt_ev_connect_failed ev; mgmt_connect_failed() local
7845 bacpy(&ev.addr.bdaddr, bdaddr); mgmt_connect_failed()
7846 ev.addr.type = link_to_bdaddr(link_type, addr_type); mgmt_connect_failed()
7847 ev.status = mgmt_status(status); mgmt_connect_failed()
7849 mgmt_event(MGMT_EV_CONNECT_FAILED, hdev, &ev, sizeof(ev), NULL); mgmt_connect_failed()
7854 struct mgmt_ev_pin_code_request ev; mgmt_pin_code_request() local
7856 bacpy(&ev.addr.bdaddr, bdaddr); mgmt_pin_code_request()
7857 ev.addr.type = BDADDR_BREDR; mgmt_pin_code_request()
7858 ev.secure = secure; mgmt_pin_code_request()
7860 mgmt_event(MGMT_EV_PIN_CODE_REQUEST, hdev, &ev, sizeof(ev), NULL); mgmt_pin_code_request()
7893 struct mgmt_ev_user_confirm_request ev; mgmt_user_confirm_request() local
7897 bacpy(&ev.addr.bdaddr, bdaddr); mgmt_user_confirm_request()
7898 ev.addr.type = link_to_bdaddr(link_type, addr_type); mgmt_user_confirm_request()
7899 ev.confirm_hint = confirm_hint; mgmt_user_confirm_request()
7900 ev.value = cpu_to_le32(value); mgmt_user_confirm_request()
7902 return mgmt_event(MGMT_EV_USER_CONFIRM_REQUEST, hdev, &ev, sizeof(ev), mgmt_user_confirm_request()
7909 struct mgmt_ev_user_passkey_request ev; mgmt_user_passkey_request() local
7913 bacpy(&ev.addr.bdaddr, bdaddr); mgmt_user_passkey_request()
7914 ev.addr.type = link_to_bdaddr(link_type, addr_type); mgmt_user_passkey_request()
7916 return mgmt_event(MGMT_EV_USER_PASSKEY_REQUEST, hdev, &ev, sizeof(ev), mgmt_user_passkey_request()
7970 struct mgmt_ev_passkey_notify ev; mgmt_user_passkey_notify() local
7974 bacpy(&ev.addr.bdaddr, bdaddr); mgmt_user_passkey_notify()
7975 ev.addr.type = link_to_bdaddr(link_type, addr_type); mgmt_user_passkey_notify()
7976 ev.passkey = __cpu_to_le32(passkey); mgmt_user_passkey_notify()
7977 ev.entered = entered; mgmt_user_passkey_notify()
7979 return mgmt_event(MGMT_EV_PASSKEY_NOTIFY, hdev, &ev, sizeof(ev), NULL); mgmt_user_passkey_notify()
7984 struct mgmt_ev_auth_failed ev; mgmt_auth_failed() local
7988 bacpy(&ev.addr.bdaddr, &conn->dst); mgmt_auth_failed()
7989 ev.addr.type = link_to_bdaddr(conn->type, conn->dst_type); mgmt_auth_failed()
7990 ev.status = status; mgmt_auth_failed()
7994 mgmt_event(MGMT_EV_AUTH_FAILED, conn->hdev, &ev, sizeof(ev), mgmt_auth_failed()
8127 struct mgmt_cp_set_local_name ev; mgmt_set_local_name_complete() local
8133 memset(&ev, 0, sizeof(ev)); mgmt_set_local_name_complete()
8134 memcpy(ev.name, name, HCI_MAX_NAME_LENGTH); mgmt_set_local_name_complete()
8135 memcpy(ev.short_name, hdev->short_name, HCI_MAX_SHORT_NAME_LENGTH); mgmt_set_local_name_complete()
8148 mgmt_generic_event(MGMT_EV_LOCAL_NAME_CHANGED, hdev, &ev, sizeof(ev), mgmt_set_local_name_complete()
8284 struct mgmt_ev_device_found *ev = (void *)buf; mgmt_device_found() local
8308 if (sizeof(*ev) + eir_len + scan_rsp_len + 5 > sizeof(buf)) mgmt_device_found()
8325 bacpy(&ev->addr.bdaddr, bdaddr); mgmt_device_found()
8326 ev->addr.type = link_to_bdaddr(link_type, addr_type); mgmt_device_found()
8327 ev->rssi = rssi; mgmt_device_found()
8328 ev->flags = cpu_to_le32(flags); mgmt_device_found()
8332 memcpy(ev->eir, eir, eir_len); mgmt_device_found()
8334 if (dev_class && !eir_has_data_type(ev->eir, eir_len, EIR_CLASS_OF_DEV)) mgmt_device_found()
8335 eir_len = eir_append_data(ev->eir, eir_len, EIR_CLASS_OF_DEV, mgmt_device_found()
8340 memcpy(ev->eir + eir_len, scan_rsp, scan_rsp_len); mgmt_device_found()
8342 ev->eir_len = cpu_to_le16(eir_len + scan_rsp_len); mgmt_device_found()
8343 ev_size = sizeof(*ev) + eir_len + scan_rsp_len; mgmt_device_found()
8345 mgmt_event(MGMT_EV_DEVICE_FOUND, hdev, ev, ev_size, NULL); mgmt_device_found()
8351 struct mgmt_ev_device_found *ev; mgmt_remote_name() local
8352 char buf[sizeof(*ev) + HCI_MAX_NAME_LENGTH + 2]; mgmt_remote_name()
8355 ev = (struct mgmt_ev_device_found *) buf; mgmt_remote_name()
8359 bacpy(&ev->addr.bdaddr, bdaddr); mgmt_remote_name()
8360 ev->addr.type = link_to_bdaddr(link_type, addr_type); mgmt_remote_name()
8361 ev->rssi = rssi; mgmt_remote_name()
8363 eir_len = eir_append_data(ev->eir, 0, EIR_NAME_COMPLETE, name, mgmt_remote_name()
8366 ev->eir_len = cpu_to_le16(eir_len); mgmt_remote_name()
8368 mgmt_event(MGMT_EV_DEVICE_FOUND, hdev, ev, sizeof(*ev) + eir_len, NULL); mgmt_remote_name()
8373 struct mgmt_ev_discovering ev; mgmt_discovering() local
8377 memset(&ev, 0, sizeof(ev)); mgmt_discovering()
8378 ev.type = hdev->discovery.type; mgmt_discovering()
8379 ev.discovering = discovering; mgmt_discovering()
8381 mgmt_event(MGMT_EV_DISCOVERING, hdev, &ev, sizeof(ev), NULL); mgmt_discovering()
H A Dhci_sock.c370 struct hci_ev_stack_internal *ev; hci_si_event() local
373 skb = bt_skb_alloc(HCI_EVENT_HDR_SIZE + sizeof(*ev) + dlen, GFP_ATOMIC); hci_si_event()
379 hdr->plen = sizeof(*ev) + dlen; hci_si_event()
381 ev = (void *) skb_put(skb, sizeof(*ev) + dlen); hci_si_event()
382 ev->type = type; hci_si_event()
383 memcpy(ev->data, data, dlen); hci_si_event()
395 struct hci_ev_si_device ev; hci_sock_dev_event() local
412 ev.event = event; hci_sock_dev_event()
413 ev.dev_id = hdev->id; hci_sock_dev_event()
414 hci_si_event(NULL, HCI_EV_SI_DEVICE, sizeof(ev), &ev); hci_sock_dev_event()
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/
H A Dlib-msg.c46 lnet_build_unlink_event(lnet_libmd_t *md, lnet_event_t *ev) lnet_build_unlink_event() argument
48 memset(ev, 0, sizeof(*ev)); lnet_build_unlink_event()
50 ev->status = 0; lnet_build_unlink_event()
51 ev->unlinked = 1; lnet_build_unlink_event()
52 ev->type = LNET_EVENT_UNLINK; lnet_build_unlink_event()
53 lnet_md_deconstruct(md, &ev->md); lnet_build_unlink_event()
54 lnet_md2handle(&ev->md_handle, md); lnet_build_unlink_event()
64 lnet_event_t *ev = &msg->msg_ev; lnet_build_msg_event() local
68 ev->type = ev_type; lnet_build_msg_event()
72 ev->target.nid = le64_to_cpu(hdr->dest_nid); lnet_build_msg_event()
73 ev->target.pid = le32_to_cpu(hdr->dest_pid); lnet_build_msg_event()
74 ev->initiator.nid = LNET_NID_ANY; lnet_build_msg_event()
75 ev->initiator.pid = the_lnet.ln_pid; lnet_build_msg_event()
76 ev->sender = LNET_NID_ANY; lnet_build_msg_event()
80 ev->target.pid = hdr->dest_pid; lnet_build_msg_event()
81 ev->target.nid = hdr->dest_nid; lnet_build_msg_event()
82 ev->initiator.pid = hdr->src_pid; lnet_build_msg_event()
83 ev->initiator.nid = hdr->src_nid; lnet_build_msg_event()
84 ev->rlength = hdr->payload_length; lnet_build_msg_event()
85 ev->sender = msg->msg_from; lnet_build_msg_event()
86 ev->mlength = msg->msg_wanted; lnet_build_msg_event()
87 ev->offset = msg->msg_offset; lnet_build_msg_event()
95 ev->pt_index = hdr->msg.put.ptl_index; lnet_build_msg_event()
96 ev->match_bits = hdr->msg.put.match_bits; lnet_build_msg_event()
97 ev->hdr_data = hdr->msg.put.hdr_data; lnet_build_msg_event()
101 ev->pt_index = hdr->msg.get.ptl_index; lnet_build_msg_event()
102 ev->match_bits = hdr->msg.get.match_bits; lnet_build_msg_event()
103 ev->hdr_data = 0; lnet_build_msg_event()
107 ev->match_bits = hdr->msg.ack.match_bits; lnet_build_msg_event()
108 ev->mlength = hdr->msg.ack.mlength; lnet_build_msg_event()
116 ev->pt_index = le32_to_cpu(hdr->msg.put.ptl_index); lnet_build_msg_event()
117 ev->match_bits = le64_to_cpu(hdr->msg.put.match_bits); lnet_build_msg_event()
118 ev->offset = le32_to_cpu(hdr->msg.put.offset); lnet_build_msg_event()
119 ev->mlength = lnet_build_msg_event()
120 ev->rlength = le32_to_cpu(hdr->payload_length); lnet_build_msg_event()
121 ev->hdr_data = le64_to_cpu(hdr->msg.put.hdr_data); lnet_build_msg_event()
125 ev->pt_index = le32_to_cpu(hdr->msg.get.ptl_index); lnet_build_msg_event()
126 ev->match_bits = le64_to_cpu(hdr->msg.get.match_bits); lnet_build_msg_event()
127 ev->mlength = lnet_build_msg_event()
128 ev->rlength = le32_to_cpu(hdr->msg.get.sink_length); lnet_build_msg_event()
129 ev->offset = le32_to_cpu(hdr->msg.get.src_offset); lnet_build_msg_event()
130 ev->hdr_data = 0; lnet_build_msg_event()
173 lnet_event_t *ev = &msg->msg_ev; lnet_msg_decommit_tx() local
180 switch (ev->type) { lnet_msg_decommit_tx()
184 LASSERT(ev->type == 0); lnet_msg_decommit_tx()
223 lnet_event_t *ev = &msg->msg_ev; lnet_msg_decommit_rx() local
232 switch (ev->type) { lnet_msg_decommit_rx()
234 LASSERT(ev->type == 0); lnet_msg_decommit_rx()
265 if (ev->type == LNET_EVENT_PUT || ev->type == LNET_EVENT_REPLY) lnet_msg_decommit_rx()
H A Dlib-eq.c209 lnet_eq_enqueue_event(lnet_eq_t *eq, lnet_event_t *ev) lnet_eq_enqueue_event() argument
216 eq->eq_callback(ev); lnet_eq_enqueue_event()
221 ev->sequence = eq->eq_enq_seq++; lnet_eq_enqueue_event()
224 index = ev->sequence & (eq->eq_size - 1); lnet_eq_enqueue_event()
226 eq->eq_events[index] = *ev; lnet_eq_enqueue_event()
229 eq->eq_callback(ev); lnet_eq_enqueue_event()
238 lnet_eq_dequeue_event(lnet_eq_t *eq, lnet_event_t *ev) lnet_eq_dequeue_event() argument
249 *ev = *new_event; lnet_eq_dequeue_event()
260 CDEBUG(D_NET, "Event Queue Overflow: eq seq %lu ev seq %lu\n", lnet_eq_dequeue_event()
H A Dlib-me.c233 lnet_event_t ev; LNetMEUnlink() local
252 lnet_build_unlink_event(md, &ev); LNetMEUnlink()
253 lnet_eq_enqueue_event(md->md_eq, &ev); LNetMEUnlink()
H A Dlib-md.c424 lnet_event_t ev; LNetMDUnlink() local
445 lnet_build_unlink_event(md, &ev); LNetMDUnlink()
446 lnet_eq_enqueue_event(md->md_eq, &ev); LNetMDUnlink()
/linux-4.1.27/drivers/thunderbolt/
H A Dtb.c218 struct tb_hotplug_event *ev = container_of(work, typeof(*ev), work); tb_handle_hotplug() local
219 struct tb *tb = ev->tb; tb_handle_hotplug()
226 sw = get_switch_at_route(tb->root_switch, ev->route); tb_handle_hotplug()
230 ev->route, ev->port, ev->unplug); tb_handle_hotplug()
233 if (ev->port > sw->config.max_port_number) { tb_handle_hotplug()
236 ev->route, ev->port, ev->unplug); tb_handle_hotplug()
239 port = &sw->ports[ev->port]; tb_handle_hotplug()
243 ev->route, ev->port, ev->unplug); tb_handle_hotplug()
246 if (ev->unplug) { tb_handle_hotplug()
276 kfree(ev); tb_handle_hotplug()
288 struct tb_hotplug_event *ev = kmalloc(sizeof(*ev), GFP_KERNEL); tb_schedule_hotplug_handler() local
289 if (!ev) tb_schedule_hotplug_handler()
291 INIT_WORK(&ev->work, tb_handle_hotplug); tb_schedule_hotplug_handler()
292 ev->tb = tb; tb_schedule_hotplug_handler()
293 ev->route = route; tb_schedule_hotplug_handler()
294 ev->port = port; tb_schedule_hotplug_handler()
295 ev->unplug = unplug; tb_schedule_hotplug_handler()
296 queue_work(tb->wq, &ev->work); tb_schedule_hotplug_handler()
/linux-4.1.27/drivers/net/wireless/iwlwifi/
H A Diwl-devtrace-ucode.h36 TP_PROTO(const struct device *dev, u32 time, u32 data, u32 ev),
37 TP_ARGS(dev, time, data, ev),
43 __field(u32, ev)
49 __entry->ev = ev;
52 __get_str(dev), __entry->time, __entry->data, __entry->ev)
H A Diwl-devtrace-iwlwifi.h178 TP_PROTO(const struct device *dev, u32 time, u32 data, u32 ev),
179 TP_ARGS(dev, time, data, ev),
185 __field(u32, ev)
191 __entry->ev = ev;
194 __get_str(dev), __entry->time, __entry->data, __entry->ev)
/linux-4.1.27/drivers/staging/rtl8723au/os_dep/
H A Drecv_linux.c31 struct iw_michaelmicfailure ev; rtw_handle_tkip_mic_err23a() local
59 memset(&ev, 0x00, sizeof(ev)); rtw_handle_tkip_mic_err23a()
61 ev.flags |= IW_MICFAILURE_GROUP; rtw_handle_tkip_mic_err23a()
63 ev.flags |= IW_MICFAILURE_PAIRWISE; rtw_handle_tkip_mic_err23a()
65 ev.src_addr.sa_family = ARPHRD_ETHER; rtw_handle_tkip_mic_err23a()
66 ether_addr_copy(ev.src_addr.sa_data, &pmlmepriv->assoc_bssid[0]); rtw_handle_tkip_mic_err23a()
69 wrqu.data.length = sizeof(ev); rtw_handle_tkip_mic_err23a()
/linux-4.1.27/drivers/usb/host/
H A Dxhci-trace.h119 TP_PROTO(void *trb_va, struct xhci_generic_trb *ev),
120 TP_ARGS(trb_va, ev),
130 __entry->dma = ((u64)le32_to_cpu(ev->field[1])) << 32 |
131 le32_to_cpu(ev->field[0]);
132 __entry->status = le32_to_cpu(ev->field[2]);
133 __entry->flags = le32_to_cpu(ev->field[3]);
144 TP_PROTO(void *trb_va, struct xhci_generic_trb *ev),
145 TP_ARGS(trb_va, ev)
/linux-4.1.27/drivers/md/persistent-data/
H A Ddm-space-map-disk.c91 enum allocation_event ev; sm_disk_set_count() local
94 r = sm_ll_insert(&smd->ll, b, count, &ev); sm_disk_set_count()
96 switch (ev) { sm_disk_set_count()
129 enum allocation_event ev; sm_disk_inc_block() local
132 r = sm_ll_inc(&smd->ll, b, &ev); sm_disk_inc_block()
133 if (!r && (ev == SM_ALLOC)) sm_disk_inc_block()
145 enum allocation_event ev; sm_disk_dec_block() local
148 return sm_ll_dec(&smd->ll, b, &ev); sm_disk_dec_block()
154 enum allocation_event ev; sm_disk_new_block() local
163 r = sm_ll_inc(&smd->ll, *b, &ev); sm_disk_new_block()
165 BUG_ON(ev != SM_ALLOC); sm_disk_new_block()
H A Ddm-space-map-metadata.c187 enum allocation_event ev; commit_bop() local
191 r = sm_ll_inc(&smm->ll, op->block, &ev); commit_bop()
195 r = sm_ll_dec(&smm->ll, op->block, &ev); commit_bop()
385 enum allocation_event ev; sm_metadata_set_count() local
394 r = sm_ll_insert(&smm->ll, b, count, &ev); sm_metadata_set_count()
403 enum allocation_event ev; sm_metadata_inc_block() local
410 r = sm_ll_inc(&smm->ll, b, &ev); sm_metadata_inc_block()
420 enum allocation_event ev; sm_metadata_dec_block() local
427 r = sm_ll_dec(&smm->ll, b, &ev); sm_metadata_dec_block()
437 enum allocation_event ev; sm_metadata_new_block_() local
450 r = sm_ll_inc(&smm->ll, *b, &ev); sm_metadata_new_block_()
686 enum allocation_event ev; sm_metadata_extend() local
709 r = sm_ll_inc(&smm->ll, i, &ev); sm_metadata_extend()
757 enum allocation_event ev; dm_sm_metadata_create() local
785 r = sm_ll_inc(&smm->ll, i, &ev); dm_sm_metadata_create()
H A Ddm-space-map-common.h112 int sm_ll_insert(struct ll_disk *ll, dm_block_t b, uint32_t ref_count, enum allocation_event *ev);
113 int sm_ll_inc(struct ll_disk *ll, dm_block_t b, enum allocation_event *ev);
114 int sm_ll_dec(struct ll_disk *ll, dm_block_t b, enum allocation_event *ev);
H A Ddm-space-map-common.c389 void *context, enum allocation_event *ev) sm_ll_mutate()
462 *ev = SM_ALLOC; sm_ll_mutate()
469 *ev = SM_FREE; sm_ll_mutate()
485 uint32_t ref_count, enum allocation_event *ev) sm_ll_insert()
487 return sm_ll_mutate(ll, b, set_ref_count, &ref_count, ev); sm_ll_insert()
496 int sm_ll_inc(struct ll_disk *ll, dm_block_t b, enum allocation_event *ev) sm_ll_inc() argument
498 return sm_ll_mutate(ll, b, inc_ref_count, NULL, ev); sm_ll_inc()
512 int sm_ll_dec(struct ll_disk *ll, dm_block_t b, enum allocation_event *ev) sm_ll_dec() argument
514 return sm_ll_mutate(ll, b, dec_ref_count, NULL, ev); sm_ll_dec()
387 sm_ll_mutate(struct ll_disk *ll, dm_block_t b, int (*mutator)(void *context, uint32_t old, uint32_t *new), void *context, enum allocation_event *ev) sm_ll_mutate() argument
484 sm_ll_insert(struct ll_disk *ll, dm_block_t b, uint32_t ref_count, enum allocation_event *ev) sm_ll_insert() argument
/linux-4.1.27/drivers/scsi/
H A Dscsi_transport_iscsi.c2351 struct iscsi_uevent *ev; iscsi_recv_pdu() local
2354 int len = nlmsg_total_size(sizeof(*ev) + sizeof(struct iscsi_hdr) + iscsi_recv_pdu()
2370 ev = nlmsg_data(nlh); iscsi_recv_pdu()
2371 memset(ev, 0, sizeof(*ev)); iscsi_recv_pdu()
2372 ev->transport_handle = iscsi_handle(conn->transport); iscsi_recv_pdu()
2373 ev->type = ISCSI_KEVENT_RECV_PDU; iscsi_recv_pdu()
2374 ev->r.recv_req.cid = conn->cid; iscsi_recv_pdu()
2375 ev->r.recv_req.sid = iscsi_conn_get_sid(conn); iscsi_recv_pdu()
2376 pdu = (char*)ev + sizeof(*ev); iscsi_recv_pdu()
2390 struct iscsi_uevent *ev; iscsi_offload_mesg() local
2391 int len = nlmsg_total_size(sizeof(*ev) + data_size); iscsi_offload_mesg()
2400 ev = nlmsg_data(nlh); iscsi_offload_mesg()
2401 memset(ev, 0, sizeof(*ev)); iscsi_offload_mesg()
2402 ev->type = type; iscsi_offload_mesg()
2403 ev->transport_handle = iscsi_handle(transport); iscsi_offload_mesg()
2406 ev->r.req_path.host_no = shost->host_no; iscsi_offload_mesg()
2409 ev->r.notify_if_down.host_no = shost->host_no; iscsi_offload_mesg()
2413 memcpy((char *)ev + sizeof(*ev), data, data_size); iscsi_offload_mesg()
2423 struct iscsi_uevent *ev; iscsi_conn_error_event() local
2425 int len = nlmsg_total_size(sizeof(*ev)); iscsi_conn_error_event()
2439 ev = nlmsg_data(nlh); iscsi_conn_error_event()
2440 ev->transport_handle = iscsi_handle(conn->transport); iscsi_conn_error_event()
2441 ev->type = ISCSI_KEVENT_CONN_ERROR; iscsi_conn_error_event()
2442 ev->r.connerror.error = error; iscsi_conn_error_event()
2443 ev->r.connerror.cid = conn->cid; iscsi_conn_error_event()
2444 ev->r.connerror.sid = iscsi_conn_get_sid(conn); iscsi_conn_error_event()
2458 struct iscsi_uevent *ev; iscsi_conn_login_event() local
2460 int len = nlmsg_total_size(sizeof(*ev)); iscsi_conn_login_event()
2474 ev = nlmsg_data(nlh); iscsi_conn_login_event()
2475 ev->transport_handle = iscsi_handle(conn->transport); iscsi_conn_login_event()
2476 ev->type = ISCSI_KEVENT_CONN_LOGIN_STATE; iscsi_conn_login_event()
2477 ev->r.conn_login.state = state; iscsi_conn_login_event()
2478 ev->r.conn_login.cid = conn->cid; iscsi_conn_login_event()
2479 ev->r.conn_login.sid = iscsi_conn_get_sid(conn); iscsi_conn_login_event()
2493 struct iscsi_uevent *ev; iscsi_post_host_event() local
2494 int len = nlmsg_total_size(sizeof(*ev) + data_size); iscsi_post_host_event()
2504 ev = nlmsg_data(nlh); iscsi_post_host_event()
2505 ev->transport_handle = iscsi_handle(transport); iscsi_post_host_event()
2506 ev->type = ISCSI_KEVENT_HOST_EVENT; iscsi_post_host_event()
2507 ev->r.host_event.host_no = host_no; iscsi_post_host_event()
2508 ev->r.host_event.code = code; iscsi_post_host_event()
2509 ev->r.host_event.data_size = data_size; iscsi_post_host_event()
2512 memcpy((char *)ev + sizeof(*ev), data, data_size); iscsi_post_host_event()
2524 struct iscsi_uevent *ev; iscsi_ping_comp_event() local
2525 int len = nlmsg_total_size(sizeof(*ev) + data_size); iscsi_ping_comp_event()
2534 ev = nlmsg_data(nlh); iscsi_ping_comp_event()
2535 ev->transport_handle = iscsi_handle(transport); iscsi_ping_comp_event()
2536 ev->type = ISCSI_KEVENT_PING_COMP; iscsi_ping_comp_event()
2537 ev->r.ping_comp.host_no = host_no; iscsi_ping_comp_event()
2538 ev->r.ping_comp.status = status; iscsi_ping_comp_event()
2539 ev->r.ping_comp.pid = pid; iscsi_ping_comp_event()
2540 ev->r.ping_comp.data_size = data_size; iscsi_ping_comp_event()
2541 memcpy((char *)ev + sizeof(*ev), data, data_size); iscsi_ping_comp_event()
2572 struct iscsi_uevent *ev = nlmsg_data(nlh); iscsi_if_get_stats() local
2579 int len = nlmsg_total_size(sizeof(*ev) + iscsi_if_get_stats()
2589 conn = iscsi_conn_lookup(ev->u.get_stats.sid, ev->u.get_stats.cid); iscsi_if_get_stats()
2610 ev->u.get_stats.cid; iscsi_if_get_stats()
2612 ev->u.get_stats.sid; iscsi_if_get_stats()
2644 struct iscsi_uevent *ev; iscsi_session_event() local
2647 int rc, len = nlmsg_total_size(sizeof(*ev)); iscsi_session_event()
2663 ev = nlmsg_data(nlh); iscsi_session_event()
2664 ev->transport_handle = iscsi_handle(session->transport); iscsi_session_event()
2666 ev->type = event; iscsi_session_event()
2669 ev->r.d_session.host_no = shost->host_no; iscsi_session_event()
2670 ev->r.d_session.sid = session->sid; iscsi_session_event()
2673 ev->r.c_session_ret.host_no = shost->host_no; iscsi_session_event()
2674 ev->r.c_session_ret.sid = session->sid; iscsi_session_event()
2677 ev->r.unbind_session.host_no = shost->host_no; iscsi_session_event()
2678 ev->r.unbind_session.sid = session->sid; iscsi_session_event()
2706 struct iscsi_uevent *ev, pid_t pid, iscsi_if_create_session()
2721 ev->r.c_session_ret.host_no = shost->host_no; iscsi_if_create_session()
2722 ev->r.c_session_ret.sid = session->sid; iscsi_if_create_session()
2729 iscsi_if_create_conn(struct iscsi_transport *transport, struct iscsi_uevent *ev) iscsi_if_create_conn() argument
2734 session = iscsi_session_lookup(ev->u.c_conn.sid); iscsi_if_create_conn()
2737 ev->u.c_conn.sid); iscsi_if_create_conn()
2741 conn = transport->create_conn(session, ev->u.c_conn.cid); iscsi_if_create_conn()
2748 ev->r.c_conn_ret.sid = session->sid; iscsi_if_create_conn()
2749 ev->r.c_conn_ret.cid = conn->cid; iscsi_if_create_conn()
2756 iscsi_if_destroy_conn(struct iscsi_transport *transport, struct iscsi_uevent *ev) iscsi_if_destroy_conn() argument
2760 conn = iscsi_conn_lookup(ev->u.d_conn.sid, ev->u.d_conn.cid); iscsi_if_destroy_conn()
2772 iscsi_set_param(struct iscsi_transport *transport, struct iscsi_uevent *ev) iscsi_set_param() argument
2774 char *data = (char*)ev + sizeof(*ev); iscsi_set_param()
2779 session = iscsi_session_lookup(ev->u.set_param.sid); iscsi_set_param()
2780 conn = iscsi_conn_lookup(ev->u.set_param.sid, ev->u.set_param.cid); iscsi_set_param()
2784 switch (ev->u.set_param.param) { iscsi_set_param()
2790 err = transport->set_param(conn, ev->u.set_param.param, iscsi_set_param()
2791 data, ev->u.set_param.len); iscsi_set_param()
2798 struct iscsi_uevent *ev, int msg_type) iscsi_if_ep_connect()
2809 shost = scsi_host_lookup(ev->u.ep_connect_through_host.host_no); iscsi_if_ep_connect()
2813 ev->u.ep_connect_through_host.host_no); iscsi_if_ep_connect()
2816 non_blocking = ev->u.ep_connect_through_host.non_blocking; iscsi_if_ep_connect()
2818 non_blocking = ev->u.ep_connect.non_blocking; iscsi_if_ep_connect()
2820 dst_addr = (struct sockaddr *)((char*)ev + sizeof(*ev)); iscsi_if_ep_connect()
2827 ev->r.ep_connect_ret.handle = ep->id; iscsi_if_ep_connect()
2859 struct iscsi_uevent *ev, int msg_type) iscsi_if_transport_ep()
2867 rc = iscsi_if_ep_connect(transport, ev, msg_type); iscsi_if_transport_ep()
2873 ep = iscsi_lookup_endpoint(ev->u.ep_poll.ep_handle); iscsi_if_transport_ep()
2877 ev->r.retcode = transport->ep_poll(ep, iscsi_if_transport_ep()
2878 ev->u.ep_poll.timeout_ms); iscsi_if_transport_ep()
2882 ev->u.ep_disconnect.ep_handle); iscsi_if_transport_ep()
2890 struct iscsi_uevent *ev) iscsi_tgt_dscvr()
2899 shost = scsi_host_lookup(ev->u.tgt_dscvr.host_no); iscsi_tgt_dscvr()
2902 ev->u.tgt_dscvr.host_no); iscsi_tgt_dscvr()
2907 dst_addr = (struct sockaddr *)((char*)ev + sizeof(*ev)); iscsi_tgt_dscvr()
2908 err = transport->tgt_dscvr(shost, ev->u.tgt_dscvr.type, iscsi_tgt_dscvr()
2909 ev->u.tgt_dscvr.enable, dst_addr); iscsi_tgt_dscvr()
2916 struct iscsi_uevent *ev) iscsi_set_host_param()
2918 char *data = (char*)ev + sizeof(*ev); iscsi_set_host_param()
2925 shost = scsi_host_lookup(ev->u.set_host_param.host_no); iscsi_set_host_param()
2928 ev->u.set_host_param.host_no); iscsi_set_host_param()
2932 err = transport->set_host_param(shost, ev->u.set_host_param.param, iscsi_set_host_param()
2933 data, ev->u.set_host_param.len); iscsi_set_host_param()
2939 iscsi_set_path(struct iscsi_transport *transport, struct iscsi_uevent *ev) iscsi_set_path() argument
2948 shost = scsi_host_lookup(ev->u.set_path.host_no); iscsi_set_path()
2951 ev->u.set_path.host_no); iscsi_set_path()
2955 params = (struct iscsi_path *)((char *)ev + sizeof(*ev)); iscsi_set_path()
2964 struct iscsi_uevent *ev, uint32_t len) iscsi_set_iface_params()
2966 char *data = (char *)ev + sizeof(*ev); iscsi_set_iface_params()
2973 shost = scsi_host_lookup(ev->u.set_iface_params.host_no); iscsi_set_iface_params()
2976 ev->u.set_iface_params.host_no); iscsi_set_iface_params()
2986 iscsi_send_ping(struct iscsi_transport *transport, struct iscsi_uevent *ev) iscsi_send_ping() argument
2995 shost = scsi_host_lookup(ev->u.iscsi_ping.host_no); iscsi_send_ping()
2998 ev->u.iscsi_ping.host_no); iscsi_send_ping()
3002 dst_addr = (struct sockaddr *)((char *)ev + sizeof(*ev)); iscsi_send_ping()
3003 err = transport->send_ping(shost, ev->u.iscsi_ping.iface_num, iscsi_send_ping()
3004 ev->u.iscsi_ping.iface_type, iscsi_send_ping()
3005 ev->u.iscsi_ping.payload_size, iscsi_send_ping()
3006 ev->u.iscsi_ping.pid, iscsi_send_ping()
3015 struct iscsi_uevent *ev = nlmsg_data(nlh); iscsi_get_chap() local
3033 chap_buf_size = (ev->u.get_chap.num_entries * sizeof(*chap_rec)); iscsi_get_chap()
3034 len = nlmsg_total_size(sizeof(*ev) + chap_buf_size); iscsi_get_chap()
3036 shost = scsi_host_lookup(ev->u.get_chap.host_no); iscsi_get_chap()
3039 __func__, ev->u.get_chap.host_no); iscsi_get_chap()
3059 evchap->u.get_chap.host_no = ev->u.get_chap.host_no; iscsi_get_chap()
3060 evchap->u.get_chap.chap_tbl_idx = ev->u.get_chap.chap_tbl_idx; iscsi_get_chap()
3061 evchap->u.get_chap.num_entries = ev->u.get_chap.num_entries; iscsi_get_chap()
3065 err = transport->get_chap(shost, ev->u.get_chap.chap_tbl_idx, iscsi_get_chap()
3068 actual_size = nlmsg_total_size(sizeof(*ev) + chap_buf_size); iscsi_get_chap()
3082 struct iscsi_uevent *ev, uint32_t len) iscsi_set_chap()
3084 char *data = (char *)ev + sizeof(*ev); iscsi_set_chap()
3091 shost = scsi_host_lookup(ev->u.set_path.host_no); iscsi_set_chap()
3094 __func__, ev->u.set_path.host_no); iscsi_set_chap()
3104 struct iscsi_uevent *ev) iscsi_delete_chap()
3112 shost = scsi_host_lookup(ev->u.delete_chap.host_no); iscsi_delete_chap()
3115 __func__, ev->u.delete_chap.host_no); iscsi_delete_chap()
3119 err = transport->delete_chap(shost, ev->u.delete_chap.chap_tbl_idx); iscsi_delete_chap()
3149 struct iscsi_uevent *ev, uint32_t len) iscsi_set_flashnode_param()
3151 char *data = (char *)ev + sizeof(*ev); iscsi_set_flashnode_param()
3164 shost = scsi_host_lookup(ev->u.set_flashnode.host_no); iscsi_set_flashnode_param()
3167 __func__, ev->u.set_flashnode.host_no); iscsi_set_flashnode_param()
3172 idx = ev->u.set_flashnode.flashnode_idx; iscsi_set_flashnode_param()
3176 __func__, idx, ev->u.set_flashnode.host_no); iscsi_set_flashnode_param()
3202 struct iscsi_uevent *ev, uint32_t len) iscsi_new_flashnode()
3204 char *data = (char *)ev + sizeof(*ev); iscsi_new_flashnode()
3214 shost = scsi_host_lookup(ev->u.new_flashnode.host_no); iscsi_new_flashnode()
3217 __func__, ev->u.new_flashnode.host_no); iscsi_new_flashnode()
3225 ev->r.new_flashnode_ret.flashnode_idx = index; iscsi_new_flashnode()
3237 struct iscsi_uevent *ev) iscsi_del_flashnode()
3249 shost = scsi_host_lookup(ev->u.del_flashnode.host_no); iscsi_del_flashnode()
3252 __func__, ev->u.del_flashnode.host_no); iscsi_del_flashnode()
3257 idx = ev->u.del_flashnode.flashnode_idx; iscsi_del_flashnode()
3261 __func__, idx, ev->u.del_flashnode.host_no); iscsi_del_flashnode()
3277 struct iscsi_uevent *ev) iscsi_login_flashnode()
3291 shost = scsi_host_lookup(ev->u.login_flashnode.host_no); iscsi_login_flashnode()
3294 __func__, ev->u.login_flashnode.host_no); iscsi_login_flashnode()
3299 idx = ev->u.login_flashnode.flashnode_idx; iscsi_login_flashnode()
3303 __func__, idx, ev->u.login_flashnode.host_no); iscsi_login_flashnode()
3329 struct iscsi_uevent *ev) iscsi_logout_flashnode()
3343 shost = scsi_host_lookup(ev->u.logout_flashnode.host_no); iscsi_logout_flashnode()
3346 __func__, ev->u.logout_flashnode.host_no); iscsi_logout_flashnode()
3351 idx = ev->u.logout_flashnode.flashnode_idx; iscsi_logout_flashnode()
3355 __func__, idx, ev->u.logout_flashnode.host_no); iscsi_logout_flashnode()
3382 struct iscsi_uevent *ev) iscsi_logout_flashnode_sid()
3393 shost = scsi_host_lookup(ev->u.logout_flashnode_sid.host_no); iscsi_logout_flashnode_sid()
3396 __func__, ev->u.logout_flashnode.host_no); iscsi_logout_flashnode_sid()
3401 session = iscsi_session_lookup(ev->u.logout_flashnode_sid.sid); iscsi_logout_flashnode_sid()
3404 __func__, ev->u.logout_flashnode_sid.sid); iscsi_logout_flashnode_sid()
3421 struct iscsi_uevent *ev = nlmsg_data(nlh); iscsi_get_host_stats() local
3439 len = nlmsg_total_size(sizeof(*ev) + host_stats_size); iscsi_get_host_stats()
3441 shost = scsi_host_lookup(ev->u.get_host_stats.host_no); iscsi_get_host_stats()
3444 __func__, ev->u.get_host_stats.host_no); iscsi_get_host_stats()
3465 ev->u.get_host_stats.host_no; iscsi_get_host_stats()
3475 actual_size = nlmsg_total_size(sizeof(*ev) + host_stats_size); iscsi_get_host_stats()
3493 struct iscsi_uevent *ev = nlmsg_data(nlh); iscsi_if_recv_msg() local
3505 priv = iscsi_if_transport_lookup(iscsi_ptr(ev->transport_handle)); iscsi_if_recv_msg()
3515 err = iscsi_if_create_session(priv, ep, ev, iscsi_if_recv_msg()
3517 ev->u.c_session.initial_cmdsn, iscsi_if_recv_msg()
3518 ev->u.c_session.cmds_max, iscsi_if_recv_msg()
3519 ev->u.c_session.queue_depth); iscsi_if_recv_msg()
3522 ep = iscsi_lookup_endpoint(ev->u.c_bound_session.ep_handle); iscsi_if_recv_msg()
3528 err = iscsi_if_create_session(priv, ep, ev, iscsi_if_recv_msg()
3530 ev->u.c_bound_session.initial_cmdsn, iscsi_if_recv_msg()
3531 ev->u.c_bound_session.cmds_max, iscsi_if_recv_msg()
3532 ev->u.c_bound_session.queue_depth); iscsi_if_recv_msg()
3535 session = iscsi_session_lookup(ev->u.d_session.sid); iscsi_if_recv_msg()
3542 session = iscsi_session_lookup(ev->u.d_session.sid); iscsi_if_recv_msg()
3550 err = iscsi_if_create_conn(transport, ev); iscsi_if_recv_msg()
3553 err = iscsi_if_destroy_conn(transport, ev); iscsi_if_recv_msg()
3556 session = iscsi_session_lookup(ev->u.b_conn.sid); iscsi_if_recv_msg()
3557 conn = iscsi_conn_lookup(ev->u.b_conn.sid, ev->u.b_conn.cid); iscsi_if_recv_msg()
3567 ev->r.retcode = transport->bind_conn(session, conn, iscsi_if_recv_msg()
3568 ev->u.b_conn.transport_eph, iscsi_if_recv_msg()
3569 ev->u.b_conn.is_leading); iscsi_if_recv_msg()
3570 if (ev->r.retcode || !transport->ep_connect) iscsi_if_recv_msg()
3573 ep = iscsi_lookup_endpoint(ev->u.b_conn.transport_eph); iscsi_if_recv_msg()
3586 err = iscsi_set_param(transport, ev); iscsi_if_recv_msg()
3589 conn = iscsi_conn_lookup(ev->u.start_conn.sid, ev->u.start_conn.cid); iscsi_if_recv_msg()
3591 ev->r.retcode = transport->start_conn(conn); iscsi_if_recv_msg()
3596 conn = iscsi_conn_lookup(ev->u.stop_conn.sid, ev->u.stop_conn.cid); iscsi_if_recv_msg()
3598 transport->stop_conn(conn, ev->u.stop_conn.flag); iscsi_if_recv_msg()
3603 conn = iscsi_conn_lookup(ev->u.send_pdu.sid, ev->u.send_pdu.cid); iscsi_if_recv_msg()
3605 ev->r.retcode = transport->send_pdu(conn, iscsi_if_recv_msg()
3606 (struct iscsi_hdr*)((char*)ev + sizeof(*ev)), iscsi_if_recv_msg()
3607 (char*)ev + sizeof(*ev) + ev->u.send_pdu.hdr_size, iscsi_if_recv_msg()
3608 ev->u.send_pdu.data_size); iscsi_if_recv_msg()
3619 err = iscsi_if_transport_ep(transport, ev, nlh->nlmsg_type); iscsi_if_recv_msg()
3622 err = iscsi_tgt_dscvr(transport, ev); iscsi_if_recv_msg()
3625 err = iscsi_set_host_param(transport, ev); iscsi_if_recv_msg()
3628 err = iscsi_set_path(transport, ev); iscsi_if_recv_msg()
3631 err = iscsi_set_iface_params(transport, ev, iscsi_if_recv_msg()
3632 nlmsg_attrlen(nlh, sizeof(*ev))); iscsi_if_recv_msg()
3635 err = iscsi_send_ping(transport, ev); iscsi_if_recv_msg()
3641 err = iscsi_delete_chap(transport, ev); iscsi_if_recv_msg()
3644 err = iscsi_set_flashnode_param(transport, ev, iscsi_if_recv_msg()
3646 sizeof(*ev))); iscsi_if_recv_msg()
3649 err = iscsi_new_flashnode(transport, ev, iscsi_if_recv_msg()
3650 nlmsg_attrlen(nlh, sizeof(*ev))); iscsi_if_recv_msg()
3653 err = iscsi_del_flashnode(transport, ev); iscsi_if_recv_msg()
3656 err = iscsi_login_flashnode(transport, ev); iscsi_if_recv_msg()
3659 err = iscsi_logout_flashnode(transport, ev); iscsi_if_recv_msg()
3662 err = iscsi_logout_flashnode_sid(transport, ev); iscsi_if_recv_msg()
3665 err = iscsi_set_chap(transport, ev, iscsi_if_recv_msg()
3666 nlmsg_attrlen(nlh, sizeof(*ev))); iscsi_if_recv_msg()
3692 struct iscsi_uevent *ev; iscsi_if_rx() local
3701 ev = nlmsg_data(nlh); iscsi_if_rx()
3708 ev->type = ISCSI_KEVENT_IF_ERROR; iscsi_if_rx()
3709 ev->iferror = err; iscsi_if_rx()
3718 if (ev->type == ISCSI_UEVENT_GET_STATS && !err) iscsi_if_rx()
3720 if (ev->type == ISCSI_UEVENT_GET_CHAP && !err) iscsi_if_rx()
3723 nlh->nlmsg_type, 0, 0, ev, sizeof(*ev)); iscsi_if_rx()
2705 iscsi_if_create_session(struct iscsi_internal *priv, struct iscsi_endpoint *ep, struct iscsi_uevent *ev, pid_t pid, uint32_t initial_cmdsn, uint16_t cmds_max, uint16_t queue_depth) iscsi_if_create_session() argument
2797 iscsi_if_ep_connect(struct iscsi_transport *transport, struct iscsi_uevent *ev, int msg_type) iscsi_if_ep_connect() argument
2858 iscsi_if_transport_ep(struct iscsi_transport *transport, struct iscsi_uevent *ev, int msg_type) iscsi_if_transport_ep() argument
2889 iscsi_tgt_dscvr(struct iscsi_transport *transport, struct iscsi_uevent *ev) iscsi_tgt_dscvr() argument
2915 iscsi_set_host_param(struct iscsi_transport *transport, struct iscsi_uevent *ev) iscsi_set_host_param() argument
2963 iscsi_set_iface_params(struct iscsi_transport *transport, struct iscsi_uevent *ev, uint32_t len) iscsi_set_iface_params() argument
3081 iscsi_set_chap(struct iscsi_transport *transport, struct iscsi_uevent *ev, uint32_t len) iscsi_set_chap() argument
3103 iscsi_delete_chap(struct iscsi_transport *transport, struct iscsi_uevent *ev) iscsi_delete_chap() argument
3148 iscsi_set_flashnode_param(struct iscsi_transport *transport, struct iscsi_uevent *ev, uint32_t len) iscsi_set_flashnode_param() argument
3201 iscsi_new_flashnode(struct iscsi_transport *transport, struct iscsi_uevent *ev, uint32_t len) iscsi_new_flashnode() argument
3236 iscsi_del_flashnode(struct iscsi_transport *transport, struct iscsi_uevent *ev) iscsi_del_flashnode() argument
3276 iscsi_login_flashnode(struct iscsi_transport *transport, struct iscsi_uevent *ev) iscsi_login_flashnode() argument
3328 iscsi_logout_flashnode(struct iscsi_transport *transport, struct iscsi_uevent *ev) iscsi_logout_flashnode() argument
3381 iscsi_logout_flashnode_sid(struct iscsi_transport *transport, struct iscsi_uevent *ev) iscsi_logout_flashnode_sid() argument
/linux-4.1.27/block/
H A Dgenhd.c39 static void disk_check_events(struct disk_events *ev,
1422 struct disk_events *ev = disk->ev; disk_events_poll_jiffies() local
1430 if (ev->poll_msecs >= 0) disk_events_poll_jiffies()
1431 intv_msecs = ev->poll_msecs; disk_events_poll_jiffies()
1455 struct disk_events *ev = disk->ev; disk_block_events() local
1459 if (!ev) disk_block_events()
1466 mutex_lock(&ev->block_mutex); disk_block_events()
1468 spin_lock_irqsave(&ev->lock, flags); disk_block_events()
1469 cancel = !ev->block++; disk_block_events()
1470 spin_unlock_irqrestore(&ev->lock, flags); disk_block_events()
1473 cancel_delayed_work_sync(&disk->ev->dwork); disk_block_events()
1475 mutex_unlock(&ev->block_mutex); disk_block_events()
1480 struct disk_events *ev = disk->ev; __disk_unblock_events() local
1484 spin_lock_irqsave(&ev->lock, flags); __disk_unblock_events()
1486 if (WARN_ON_ONCE(ev->block <= 0)) __disk_unblock_events()
1489 if (--ev->block) __disk_unblock_events()
1497 set_timer_slack(&ev->dwork.timer, intv / 4); __disk_unblock_events()
1500 &ev->dwork, 0); __disk_unblock_events()
1503 &ev->dwork, intv); __disk_unblock_events()
1505 spin_unlock_irqrestore(&ev->lock, flags); __disk_unblock_events()
1520 if (disk->ev) disk_unblock_events()
1531 * doesn't clear the events from @disk->ev.
1538 struct disk_events *ev = disk->ev; disk_flush_events() local
1540 if (!ev) disk_flush_events()
1543 spin_lock_irq(&ev->lock); disk_flush_events()
1544 ev->clearing |= mask; disk_flush_events()
1545 if (!ev->block) disk_flush_events()
1547 &ev->dwork, 0); disk_flush_events()
1548 spin_unlock_irq(&ev->lock); disk_flush_events()
1565 struct disk_events *ev = disk->ev; disk_clear_events() local
1569 if (!ev) { disk_clear_events()
1580 * store the union of mask and ev->clearing on the stack so that the disk_clear_events()
1581 * race with disk_flush_events does not cause ambiguity (ev->clearing disk_clear_events()
1584 spin_lock_irq(&ev->lock); disk_clear_events()
1585 clearing |= ev->clearing; disk_clear_events()
1586 ev->clearing = 0; disk_clear_events()
1587 spin_unlock_irq(&ev->lock); disk_clear_events()
1589 disk_check_events(ev, &clearing); disk_clear_events()
1591 * if ev->clearing is not 0, the disk_flush_events got called in the disk_clear_events()
1594 __disk_unblock_events(disk, ev->clearing ? true : false); disk_clear_events()
1597 spin_lock_irq(&ev->lock); disk_clear_events()
1598 pending = ev->pending & mask; disk_clear_events()
1599 ev->pending &= ~mask; disk_clear_events()
1600 spin_unlock_irq(&ev->lock); disk_clear_events()
1613 struct disk_events *ev = container_of(dwork, struct disk_events, dwork); disk_events_workfn() local
1615 disk_check_events(ev, &ev->clearing); disk_events_workfn()
1618 static void disk_check_events(struct disk_events *ev, disk_check_events() argument
1621 struct gendisk *disk = ev->disk; disk_check_events()
1632 spin_lock_irq(&ev->lock); disk_check_events()
1634 events &= ~ev->pending; disk_check_events()
1635 ev->pending |= events; disk_check_events()
1639 if (!ev->block && intv) disk_check_events()
1641 &ev->dwork, intv); disk_check_events()
1643 spin_unlock_irq(&ev->lock); disk_check_events()
1705 return sprintf(buf, "%ld\n", disk->ev->poll_msecs); disk_events_poll_msecs_show()
1722 disk->ev->poll_msecs = intv; disk_events_poll_msecs_store()
1750 struct disk_events *ev; disk_events_set_dfl_poll_msecs() local
1759 list_for_each_entry(ev, &disk_events, node) disk_events_set_dfl_poll_msecs()
1760 disk_flush_events(ev->disk, 0); disk_events_set_dfl_poll_msecs()
1783 struct disk_events *ev; disk_alloc_events() local
1788 ev = kzalloc(sizeof(*ev), GFP_KERNEL); disk_alloc_events()
1789 if (!ev) { disk_alloc_events()
1794 INIT_LIST_HEAD(&ev->node); disk_alloc_events()
1795 ev->disk = disk; disk_alloc_events()
1796 spin_lock_init(&ev->lock); disk_alloc_events()
1797 mutex_init(&ev->block_mutex); disk_alloc_events()
1798 ev->block = 1; disk_alloc_events()
1799 ev->poll_msecs = -1; disk_alloc_events()
1800 INIT_DELAYED_WORK(&ev->dwork, disk_events_workfn); disk_alloc_events()
1802 disk->ev = ev; disk_alloc_events()
1807 if (!disk->ev) disk_add_events()
1816 list_add_tail(&disk->ev->node, &disk_events); disk_add_events()
1828 if (!disk->ev) disk_del_events()
1834 list_del_init(&disk->ev->node); disk_del_events()
1843 WARN_ON_ONCE(disk->ev && disk->ev->block != 1); disk_release_events()
1844 kfree(disk->ev); disk_release_events()
/linux-4.1.27/drivers/scsi/libsas/
H A Dsas_phy.c35 struct asd_sas_event *ev = to_asd_sas_event(work); sas_phye_loss_of_signal() local
36 struct asd_sas_phy *phy = ev->phy; sas_phye_loss_of_signal()
45 struct asd_sas_event *ev = to_asd_sas_event(work); sas_phye_oob_done() local
46 struct asd_sas_phy *phy = ev->phy; sas_phye_oob_done()
54 struct asd_sas_event *ev = to_asd_sas_event(work); sas_phye_oob_error() local
55 struct asd_sas_phy *phy = ev->phy; sas_phye_oob_error()
85 struct asd_sas_event *ev = to_asd_sas_event(work); sas_phye_spinup_hold() local
86 struct asd_sas_phy *phy = ev->phy; sas_phye_spinup_hold()
99 struct asd_sas_event *ev = to_asd_sas_event(work); sas_phye_resume_timeout() local
100 struct asd_sas_phy *phy = ev->phy; sas_phye_resume_timeout()
H A Dsas_port.c261 struct asd_sas_event *ev = to_asd_sas_event(work); sas_porte_bytes_dmaed() local
262 struct asd_sas_phy *phy = ev->phy; sas_porte_bytes_dmaed()
271 struct asd_sas_event *ev = to_asd_sas_event(work); sas_porte_broadcast_rcvd() local
272 struct asd_sas_phy *phy = ev->phy; sas_porte_broadcast_rcvd()
288 struct asd_sas_event *ev = to_asd_sas_event(work); sas_porte_link_reset_err() local
289 struct asd_sas_phy *phy = ev->phy; sas_porte_link_reset_err()
298 struct asd_sas_event *ev = to_asd_sas_event(work); sas_porte_timer_event() local
299 struct asd_sas_phy *phy = ev->phy; sas_porte_timer_event()
308 struct asd_sas_event *ev = to_asd_sas_event(work); sas_porte_hard_reset() local
309 struct asd_sas_phy *phy = ev->phy; sas_porte_hard_reset()
H A Dsas_discover.c218 struct sas_discovery_event *ev = to_sas_discovery_event(work); sas_probe_devices() local
219 struct asd_sas_port *port = ev->port; sas_probe_devices()
247 struct sas_discovery_event *ev = to_sas_discovery_event(work); sas_suspend_devices() local
248 struct asd_sas_port *port = ev->port; sas_suspend_devices()
276 struct sas_discovery_event *ev = to_sas_discovery_event(work); sas_resume_devices() local
277 struct asd_sas_port *port = ev->port; sas_resume_devices()
359 struct sas_discovery_event *ev = to_sas_discovery_event(work); sas_destruct_devices() local
360 struct asd_sas_port *port = ev->port; sas_destruct_devices()
443 struct sas_discovery_event *ev = to_sas_discovery_event(work); sas_discover_domain() local
444 struct asd_sas_port *port = ev->port; sas_discover_domain()
500 struct sas_discovery_event *ev = to_sas_discovery_event(work); sas_revalidate_domain() local
501 struct asd_sas_port *port = ev->port; sas_revalidate_domain()
553 int sas_discover_event(struct asd_sas_port *port, enum discover_event ev) sas_discover_event() argument
561 BUG_ON(ev >= DISC_NUM_EVENTS); sas_discover_event()
563 sas_chain_event(ev, &disc->pending, &disc->disc_work[ev].work, port->ha); sas_discover_event()
H A Dsas_event.c108 const int ev = DISCE_REVALIDATE_DOMAIN; sas_enable_revalidation() local
111 if (!test_and_clear_bit(ev, &d->pending)) sas_enable_revalidation()
114 sas_queue_event(ev, &d->pending, &d->disc_work[ev].work, ha); sas_enable_revalidation()
/linux-4.1.27/arch/s390/appldata/
H A Dappldata_mem.c82 unsigned long ev[NR_VM_EVENT_ITEMS]; appldata_get_mem_data() local
88 all_vm_events(ev); appldata_get_mem_data()
89 mem_data->pgpgin = ev[PGPGIN] >> 1; appldata_get_mem_data()
90 mem_data->pgpgout = ev[PGPGOUT] >> 1; appldata_get_mem_data()
91 mem_data->pswpin = ev[PSWPIN]; appldata_get_mem_data()
92 mem_data->pswpout = ev[PSWPOUT]; appldata_get_mem_data()
93 mem_data->pgalloc = ev[PGALLOC_NORMAL]; appldata_get_mem_data()
94 mem_data->pgalloc += ev[PGALLOC_DMA]; appldata_get_mem_data()
95 mem_data->pgfault = ev[PGFAULT]; appldata_get_mem_data()
96 mem_data->pgmajfault = ev[PGMAJFAULT]; appldata_get_mem_data()
/linux-4.1.27/drivers/staging/lustre/lnet/selftest/
H A Drpc.c358 lnet_handle_md_t *mdh, srpc_event_t *ev) srpc_post_passive_rdma()
373 md.user_ptr = ev; srpc_post_passive_rdma()
398 lnet_handle_md_t *mdh, srpc_event_t *ev) srpc_post_active_rdma()
403 md.user_ptr = ev; srpc_post_active_rdma()
449 int len, lnet_handle_md_t *mdh, srpc_event_t *ev) srpc_post_active_rqtbuf()
453 LNET_NID_ANY, mdh, ev); srpc_post_active_rqtbuf()
458 lnet_handle_md_t *mdh, srpc_event_t *ev) srpc_post_passive_rqtbuf()
467 LNET_MD_OP_PUT, any, mdh, ev); srpc_post_passive_rqtbuf()
683 CNETERR("Active RPC %p on shutdown: sv %s, peer %s, wi %s scheduled %d running %d, ev fired %d type %d status %d lnet %d\n", srpc_finish_service()
794 srpc_event_t *ev = &rpc->crpc_reqstev; srpc_send_request() local
797 ev->ev_fired = 0; srpc_send_request()
798 ev->ev_data = rpc; srpc_send_request()
799 ev->ev_type = SRPC_REQUEST_SENT; srpc_send_request()
803 &rpc->crpc_reqstmdh, ev); srpc_send_request()
806 ev->ev_fired = 1; /* no more event expected */ srpc_send_request()
814 srpc_event_t *ev = &rpc->crpc_replyev; srpc_prepare_reply() local
818 ev->ev_fired = 0; srpc_prepare_reply()
819 ev->ev_data = rpc; srpc_prepare_reply()
820 ev->ev_type = SRPC_REPLY_RCVD; srpc_prepare_reply()
827 &rpc->crpc_replymdh, ev); srpc_prepare_reply()
830 ev->ev_fired = 1; /* no more event expected */ srpc_prepare_reply()
839 srpc_event_t *ev = &rpc->crpc_bulkev; srpc_prepare_bulk() local
852 ev->ev_fired = 0; srpc_prepare_bulk()
853 ev->ev_data = rpc; srpc_prepare_bulk()
854 ev->ev_type = SRPC_BULK_REQ_RCVD; srpc_prepare_bulk()
860 rpc->crpc_dest, &bk->bk_mdh, ev); srpc_prepare_bulk()
863 ev->ev_fired = 1; /* no more event expected */ srpc_prepare_bulk()
871 srpc_event_t *ev = &rpc->srpc_ev; srpc_do_bulk() local
882 ev->ev_fired = 0; srpc_do_bulk()
883 ev->ev_data = rpc; srpc_do_bulk()
884 ev->ev_type = bk->bk_sink ? SRPC_BULK_GET_RPLD : SRPC_BULK_PUT_SENT; srpc_do_bulk()
889 &bk->bk_mdh, ev); srpc_do_bulk()
891 ev->ev_fired = 1; /* no more event expected */ srpc_do_bulk()
965 srpc_event_t *ev = &rpc->srpc_ev; srpc_handle_rpc() local
979 if (ev->ev_fired) { /* no more event, OK to finish */ srpc_handle_rpc()
1028 LASSERT(ev->ev_fired); srpc_handle_rpc()
1029 ev->ev_status = rc; srpc_handle_rpc()
1033 LASSERT(rpc->srpc_bulk == NULL || ev->ev_fired); srpc_handle_rpc()
1036 rc = ev->ev_status; srpc_handle_rpc()
1055 if (!ev->ev_fired) { srpc_handle_rpc()
1059 ev->ev_status, ev->ev_type, ev->ev_lnet); srpc_handle_rpc()
1060 LASSERT(ev->ev_fired); srpc_handle_rpc()
1064 srpc_server_rpc_done(rpc, ev->ev_status); srpc_handle_rpc()
1362 srpc_event_t *ev = &rpc->srpc_ev; srpc_send_reply() local
1385 ev->ev_fired = 0; srpc_send_reply()
1386 ev->ev_data = rpc; srpc_send_reply()
1387 ev->ev_type = SRPC_REPLY_SENT; srpc_send_reply()
1396 &rpc->srpc_replymdh, ev); srpc_send_reply()
1398 ev->ev_fired = 1; /* no more event expected */ srpc_send_reply()
1404 srpc_lnet_ev_handler(lnet_event_t *ev) srpc_lnet_ev_handler() argument
1407 srpc_event_t *rpcev = ev->md.user_ptr; srpc_lnet_ev_handler()
1417 if (ev->status != 0) { srpc_lnet_ev_handler()
1423 rpcev->ev_lnet = ev->type; srpc_lnet_ev_handler()
1431 if (ev->status == 0 && ev->type != LNET_EVENT_UNLINK) { srpc_lnet_ev_handler()
1455 rpcev->ev_status = (ev->type == LNET_EVENT_UNLINK) ? srpc_lnet_ev_handler()
1456 -EINTR : ev->status; srpc_lnet_ev_handler()
1470 LASSERT(ev->unlinked); srpc_lnet_ev_handler()
1471 LASSERT(ev->type == LNET_EVENT_PUT || srpc_lnet_ev_handler()
1472 ev->type == LNET_EVENT_UNLINK); srpc_lnet_ev_handler()
1473 LASSERT(ev->type != LNET_EVENT_UNLINK || srpc_lnet_ev_handler()
1476 buffer = container_of(ev->md.start, srpc_buffer_t, buf_msg); srpc_lnet_ev_handler()
1477 buffer->buf_peer = ev->initiator; srpc_lnet_ev_handler()
1478 buffer->buf_self = ev->target.nid; srpc_lnet_ev_handler()
1509 if (ev->status != 0 || ev->mlength != sizeof(*msg) || srpc_lnet_ev_handler()
1515 sv->sv_name, libcfs_id2str(ev->initiator), srpc_lnet_ev_handler()
1516 ev->status, ev->mlength, srpc_lnet_ev_handler()
1548 LASSERT(ev->type == LNET_EVENT_SEND || srpc_lnet_ev_handler()
1549 ev->type == LNET_EVENT_REPLY || srpc_lnet_ev_handler()
1550 ev->type == LNET_EVENT_UNLINK); srpc_lnet_ev_handler()
1552 if (!ev->unlinked) srpc_lnet_ev_handler()
1556 if (ev->status == 0 && ev->type != LNET_EVENT_UNLINK) { srpc_lnet_ev_handler()
1560 srpc_data.rpc_counters.bulk_get += ev->mlength; srpc_lnet_ev_handler()
1562 srpc_data.rpc_counters.bulk_put += ev->mlength; srpc_lnet_ev_handler()
1575 rpcev->ev_status = (ev->type == LNET_EVENT_UNLINK) ? srpc_lnet_ev_handler()
1576 -EINTR : ev->status; srpc_lnet_ev_handler()
356 srpc_post_passive_rdma(int portal, int local, __u64 matchbits, void *buf, int len, int options, lnet_process_id_t peer, lnet_handle_md_t *mdh, srpc_event_t *ev) srpc_post_passive_rdma() argument
396 srpc_post_active_rdma(int portal, __u64 matchbits, void *buf, int len, int options, lnet_process_id_t peer, lnet_nid_t self, lnet_handle_md_t *mdh, srpc_event_t *ev) srpc_post_active_rdma() argument
448 srpc_post_active_rqtbuf(lnet_process_id_t peer, int service, void *buf, int len, lnet_handle_md_t *mdh, srpc_event_t *ev) srpc_post_active_rqtbuf() argument
457 srpc_post_passive_rqtbuf(int service, int local, void *buf, int len, lnet_handle_md_t *mdh, srpc_event_t *ev) srpc_post_passive_rqtbuf() argument
/linux-4.1.27/drivers/staging/rtl8712/
H A Drecv_linux.c90 struct iw_michaelmicfailure ev; r8712_handle_tkip_mic_err() local
93 memset(&ev, 0x00, sizeof(ev)); r8712_handle_tkip_mic_err()
95 ev.flags |= IW_MICFAILURE_GROUP; r8712_handle_tkip_mic_err()
97 ev.flags |= IW_MICFAILURE_PAIRWISE; r8712_handle_tkip_mic_err()
98 ev.src_addr.sa_family = ARPHRD_ETHER; r8712_handle_tkip_mic_err()
99 ether_addr_copy(ev.src_addr.sa_data, &pmlmepriv->assoc_bssid[0]); r8712_handle_tkip_mic_err()
101 wrqu.data.length = sizeof(ev); r8712_handle_tkip_mic_err()
103 (char *)&ev); r8712_handle_tkip_mic_err()
/linux-4.1.27/drivers/staging/rtl8188eu/os_dep/
H A Drecv_linux.c57 struct iw_michaelmicfailure ev; rtw_handle_tkip_mic_err() local
76 memset(&ev, 0x00, sizeof(ev)); rtw_handle_tkip_mic_err()
78 ev.flags |= IW_MICFAILURE_GROUP; rtw_handle_tkip_mic_err()
80 ev.flags |= IW_MICFAILURE_PAIRWISE; rtw_handle_tkip_mic_err()
82 ev.src_addr.sa_family = ARPHRD_ETHER; rtw_handle_tkip_mic_err()
83 memcpy(ev.src_addr.sa_data, &pmlmepriv->assoc_bssid[0], ETH_ALEN); rtw_handle_tkip_mic_err()
85 wrqu.data.length = sizeof(ev); rtw_handle_tkip_mic_err()
87 &wrqu, (char *)&ev); rtw_handle_tkip_mic_err()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
H A Dtxrx.c175 struct htt_peer_map_event *ev) ath10k_peer_map_event()
181 peer = ath10k_peer_find(ar, ev->vdev_id, ev->addr); ath10k_peer_map_event()
187 peer->vdev_id = ev->vdev_id; ath10k_peer_map_event()
188 ether_addr_copy(peer->addr, ev->addr); ath10k_peer_map_event()
194 ev->vdev_id, ev->addr, ev->peer_id); ath10k_peer_map_event()
196 set_bit(ev->peer_id, peer->peer_ids); ath10k_peer_map_event()
202 struct htt_peer_unmap_event *ev) ath10k_peer_unmap_event()
208 peer = ath10k_peer_find_by_id(ar, ev->peer_id); ath10k_peer_unmap_event()
211 ev->peer_id); ath10k_peer_unmap_event()
216 peer->vdev_id, peer->addr, ev->peer_id); ath10k_peer_unmap_event()
218 clear_bit(ev->peer_id, peer->peer_ids); ath10k_peer_unmap_event()
174 ath10k_peer_map_event(struct ath10k_htt *htt, struct htt_peer_map_event *ev) ath10k_peer_map_event() argument
201 ath10k_peer_unmap_event(struct ath10k_htt *htt, struct htt_peer_unmap_event *ev) ath10k_peer_unmap_event() argument
H A Dwmi-tlv.c170 const struct wmi_tlv_bcn_tx_status_ev *ev; ath10k_wmi_tlv_event_bcn_tx_status() local
181 ev = tb[WMI_TLV_TAG_STRUCT_OFFLOAD_BCN_TX_STATUS_EVENT]; ath10k_wmi_tlv_event_bcn_tx_status()
182 if (!ev) { ath10k_wmi_tlv_event_bcn_tx_status()
187 tx_status = __le32_to_cpu(ev->tx_status); ath10k_wmi_tlv_event_bcn_tx_status()
188 vdev_id = __le32_to_cpu(ev->vdev_id); ath10k_wmi_tlv_event_bcn_tx_status()
212 const struct wmi_tlv_diag_data_ev *ev; ath10k_wmi_tlv_event_diag_data() local
224 ev = tb[WMI_TLV_TAG_STRUCT_DIAG_DATA_CONTAINER_EVENT]; ath10k_wmi_tlv_event_diag_data()
226 if (!ev || !data) { ath10k_wmi_tlv_event_diag_data()
231 num_items = __le32_to_cpu(ev->num_items); ath10k_wmi_tlv_event_diag_data()
433 const struct wmi_scan_event *ev; ath10k_wmi_tlv_op_pull_scan_ev() local
443 ev = tb[WMI_TLV_TAG_STRUCT_SCAN_EVENT]; ath10k_wmi_tlv_op_pull_scan_ev()
444 if (!ev) { ath10k_wmi_tlv_op_pull_scan_ev()
449 arg->event_type = ev->event_type; ath10k_wmi_tlv_op_pull_scan_ev()
450 arg->reason = ev->reason; ath10k_wmi_tlv_op_pull_scan_ev()
451 arg->channel_freq = ev->channel_freq; ath10k_wmi_tlv_op_pull_scan_ev()
452 arg->scan_req_id = ev->scan_req_id; ath10k_wmi_tlv_op_pull_scan_ev()
453 arg->scan_id = ev->scan_id; ath10k_wmi_tlv_op_pull_scan_ev()
454 arg->vdev_id = ev->vdev_id; ath10k_wmi_tlv_op_pull_scan_ev()
465 const struct wmi_tlv_mgmt_rx_ev *ev; ath10k_wmi_tlv_op_pull_mgmt_rx_ev() local
477 ev = tb[WMI_TLV_TAG_STRUCT_MGMT_RX_HDR]; ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
480 if (!ev || !frame) { ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
485 arg->channel = ev->channel; ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
486 arg->buf_len = ev->buf_len; ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
487 arg->status = ev->status; ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
488 arg->snr = ev->snr; ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
489 arg->phy_mode = ev->phy_mode; ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
490 arg->rate = ev->rate; ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
514 const struct wmi_chan_info_event *ev; ath10k_wmi_tlv_op_pull_ch_info_ev() local
524 ev = tb[WMI_TLV_TAG_STRUCT_CHAN_INFO_EVENT]; ath10k_wmi_tlv_op_pull_ch_info_ev()
525 if (!ev) { ath10k_wmi_tlv_op_pull_ch_info_ev()
530 arg->err_code = ev->err_code; ath10k_wmi_tlv_op_pull_ch_info_ev()
531 arg->freq = ev->freq; ath10k_wmi_tlv_op_pull_ch_info_ev()
532 arg->cmd_flags = ev->cmd_flags; ath10k_wmi_tlv_op_pull_ch_info_ev()
533 arg->noise_floor = ev->noise_floor; ath10k_wmi_tlv_op_pull_ch_info_ev()
534 arg->rx_clear_count = ev->rx_clear_count; ath10k_wmi_tlv_op_pull_ch_info_ev()
535 arg->cycle_count = ev->cycle_count; ath10k_wmi_tlv_op_pull_ch_info_ev()
546 const struct wmi_vdev_start_response_event *ev; ath10k_wmi_tlv_op_pull_vdev_start_ev() local
556 ev = tb[WMI_TLV_TAG_STRUCT_VDEV_START_RESPONSE_EVENT]; ath10k_wmi_tlv_op_pull_vdev_start_ev()
557 if (!ev) { ath10k_wmi_tlv_op_pull_vdev_start_ev()
562 skb_pull(skb, sizeof(*ev)); ath10k_wmi_tlv_op_pull_vdev_start_ev()
563 arg->vdev_id = ev->vdev_id; ath10k_wmi_tlv_op_pull_vdev_start_ev()
564 arg->req_id = ev->req_id; ath10k_wmi_tlv_op_pull_vdev_start_ev()
565 arg->resp_type = ev->resp_type; ath10k_wmi_tlv_op_pull_vdev_start_ev()
566 arg->status = ev->status; ath10k_wmi_tlv_op_pull_vdev_start_ev()
577 const struct wmi_peer_sta_kickout_event *ev; ath10k_wmi_tlv_op_pull_peer_kick_ev() local
587 ev = tb[WMI_TLV_TAG_STRUCT_PEER_STA_KICKOUT_EVENT]; ath10k_wmi_tlv_op_pull_peer_kick_ev()
588 if (!ev) { ath10k_wmi_tlv_op_pull_peer_kick_ev()
593 arg->mac_addr = ev->peer_macaddr.addr; ath10k_wmi_tlv_op_pull_peer_kick_ev()
600 const struct wmi_host_swba_event *ev; member in struct:wmi_tlv_swba_parse
646 swba->ev = ptr; ath10k_wmi_tlv_swba_parse()
687 if (!swba.ev) ath10k_wmi_tlv_op_pull_swba_ev()
690 arg->vdev_map = swba.ev->vdev_map; ath10k_wmi_tlv_op_pull_swba_ev()
708 const struct wmi_tlv_phyerr_ev *ev; ath10k_wmi_tlv_op_pull_phyerr_ev() local
719 ev = tb[WMI_TLV_TAG_STRUCT_COMB_PHYERR_RX_HDR]; ath10k_wmi_tlv_op_pull_phyerr_ev()
722 if (!ev || !phyerrs) { ath10k_wmi_tlv_op_pull_phyerr_ev()
727 arg->num_phyerrs = ev->num_phyerrs; ath10k_wmi_tlv_op_pull_phyerr_ev()
728 arg->tsf_l32 = ev->tsf_l32; ath10k_wmi_tlv_op_pull_phyerr_ev()
729 arg->tsf_u32 = ev->tsf_u32; ath10k_wmi_tlv_op_pull_phyerr_ev()
730 arg->buf_len = ev->buf_len; ath10k_wmi_tlv_op_pull_phyerr_ev()
774 const struct wmi_tlv_svc_rdy_ev *ev; ath10k_wmi_tlv_op_pull_svc_rdy_ev() local
786 ev = tb[WMI_TLV_TAG_STRUCT_SERVICE_READY_EVENT]; ath10k_wmi_tlv_op_pull_svc_rdy_ev()
791 if (!ev || !reg || !svc_bmap || !mem_reqs) { ath10k_wmi_tlv_op_pull_svc_rdy_ev()
801 __le32_to_cpu(ev->abi.abi_ver0), WMI_TLV_ABI_VER0, ath10k_wmi_tlv_op_pull_svc_rdy_ev()
802 __le32_to_cpu(ev->abi.abi_ver_ns0), WMI_TLV_ABI_VER_NS0, ath10k_wmi_tlv_op_pull_svc_rdy_ev()
803 __le32_to_cpu(ev->abi.abi_ver_ns1), WMI_TLV_ABI_VER_NS1, ath10k_wmi_tlv_op_pull_svc_rdy_ev()
804 __le32_to_cpu(ev->abi.abi_ver_ns2), WMI_TLV_ABI_VER_NS2, ath10k_wmi_tlv_op_pull_svc_rdy_ev()
805 __le32_to_cpu(ev->abi.abi_ver_ns3), WMI_TLV_ABI_VER_NS3); ath10k_wmi_tlv_op_pull_svc_rdy_ev()
807 if (__le32_to_cpu(ev->abi.abi_ver0) != WMI_TLV_ABI_VER0 || ath10k_wmi_tlv_op_pull_svc_rdy_ev()
808 __le32_to_cpu(ev->abi.abi_ver_ns0) != WMI_TLV_ABI_VER_NS0 || ath10k_wmi_tlv_op_pull_svc_rdy_ev()
809 __le32_to_cpu(ev->abi.abi_ver_ns1) != WMI_TLV_ABI_VER_NS1 || ath10k_wmi_tlv_op_pull_svc_rdy_ev()
810 __le32_to_cpu(ev->abi.abi_ver_ns2) != WMI_TLV_ABI_VER_NS2 || ath10k_wmi_tlv_op_pull_svc_rdy_ev()
811 __le32_to_cpu(ev->abi.abi_ver_ns3) != WMI_TLV_ABI_VER_NS3) { ath10k_wmi_tlv_op_pull_svc_rdy_ev()
816 arg->min_tx_power = ev->hw_min_tx_power; ath10k_wmi_tlv_op_pull_svc_rdy_ev()
817 arg->max_tx_power = ev->hw_max_tx_power; ath10k_wmi_tlv_op_pull_svc_rdy_ev()
818 arg->ht_cap = ev->ht_cap_info; ath10k_wmi_tlv_op_pull_svc_rdy_ev()
819 arg->vht_cap = ev->vht_cap_info; ath10k_wmi_tlv_op_pull_svc_rdy_ev()
820 arg->sw_ver0 = ev->abi.abi_ver0; ath10k_wmi_tlv_op_pull_svc_rdy_ev()
821 arg->sw_ver1 = ev->abi.abi_ver1; ath10k_wmi_tlv_op_pull_svc_rdy_ev()
822 arg->fw_build = ev->fw_build_vers; ath10k_wmi_tlv_op_pull_svc_rdy_ev()
823 arg->phy_capab = ev->phy_capability; ath10k_wmi_tlv_op_pull_svc_rdy_ev()
824 arg->num_rf_chains = ev->num_rf_chains; ath10k_wmi_tlv_op_pull_svc_rdy_ev()
826 arg->num_mem_reqs = ev->num_mem_reqs; ath10k_wmi_tlv_op_pull_svc_rdy_ev()
847 const struct wmi_tlv_rdy_ev *ev; ath10k_wmi_tlv_op_pull_rdy_ev() local
857 ev = tb[WMI_TLV_TAG_STRUCT_READY_EVENT]; ath10k_wmi_tlv_op_pull_rdy_ev()
858 if (!ev) { ath10k_wmi_tlv_op_pull_rdy_ev()
863 arg->sw_version = ev->abi.abi_ver0; ath10k_wmi_tlv_op_pull_rdy_ev()
864 arg->abi_version = ev->abi.abi_ver1; ath10k_wmi_tlv_op_pull_rdy_ev()
865 arg->status = ev->status; ath10k_wmi_tlv_op_pull_rdy_ev()
866 arg->mac_addr = ev->mac_addr.addr; ath10k_wmi_tlv_op_pull_rdy_ev()
913 const struct wmi_tlv_stats_ev *ev; ath10k_wmi_tlv_op_pull_fw_stats() local
931 ev = tb[WMI_TLV_TAG_STRUCT_STATS_EVENT]; ath10k_wmi_tlv_op_pull_fw_stats()
934 if (!ev || !data) { ath10k_wmi_tlv_op_pull_fw_stats()
940 num_pdev_stats = __le32_to_cpu(ev->num_pdev_stats); ath10k_wmi_tlv_op_pull_fw_stats()
941 num_vdev_stats = __le32_to_cpu(ev->num_vdev_stats); ath10k_wmi_tlv_op_pull_fw_stats()
942 num_peer_stats = __le32_to_cpu(ev->num_peer_stats); ath10k_wmi_tlv_op_pull_fw_stats()
943 num_bcnflt_stats = __le32_to_cpu(ev->num_bcnflt_stats); ath10k_wmi_tlv_op_pull_fw_stats()
944 num_chan_stats = __le32_to_cpu(ev->num_chan_stats); ath10k_wmi_tlv_op_pull_fw_stats()
H A Dtxrx.h34 struct htt_peer_map_event *ev);
36 struct htt_peer_unmap_event *ev);
H A Dwmi.c1251 struct wmi_scan_event *ev = (void *)skb->data; ath10k_wmi_op_pull_scan_ev() local
1253 if (skb->len < sizeof(*ev)) ath10k_wmi_op_pull_scan_ev()
1256 skb_pull(skb, sizeof(*ev)); ath10k_wmi_op_pull_scan_ev()
1257 arg->event_type = ev->event_type; ath10k_wmi_op_pull_scan_ev()
1258 arg->reason = ev->reason; ath10k_wmi_op_pull_scan_ev()
1259 arg->channel_freq = ev->channel_freq; ath10k_wmi_op_pull_scan_ev()
1260 arg->scan_req_id = ev->scan_req_id; ath10k_wmi_op_pull_scan_ev()
1261 arg->scan_id = ev->scan_id; ath10k_wmi_op_pull_scan_ev()
1262 arg->vdev_id = ev->vdev_id; ath10k_wmi_op_pull_scan_ev()
1624 struct wmi_chan_info_event *ev = (void *)skb->data; ath10k_wmi_op_pull_ch_info_ev() local
1626 if (skb->len < sizeof(*ev)) ath10k_wmi_op_pull_ch_info_ev()
1629 skb_pull(skb, sizeof(*ev)); ath10k_wmi_op_pull_ch_info_ev()
1630 arg->err_code = ev->err_code; ath10k_wmi_op_pull_ch_info_ev()
1631 arg->freq = ev->freq; ath10k_wmi_op_pull_ch_info_ev()
1632 arg->cmd_flags = ev->cmd_flags; ath10k_wmi_op_pull_ch_info_ev()
1633 arg->noise_floor = ev->noise_floor; ath10k_wmi_op_pull_ch_info_ev()
1634 arg->rx_clear_count = ev->rx_clear_count; ath10k_wmi_op_pull_ch_info_ev()
1635 arg->cycle_count = ev->cycle_count; ath10k_wmi_op_pull_ch_info_ev()
1804 const struct wmi_stats_event *ev = (void *)skb->data; ath10k_wmi_main_op_pull_fw_stats() local
1808 if (!skb_pull(skb, sizeof(*ev))) ath10k_wmi_main_op_pull_fw_stats()
1811 num_pdev_stats = __le32_to_cpu(ev->num_pdev_stats); ath10k_wmi_main_op_pull_fw_stats()
1812 num_vdev_stats = __le32_to_cpu(ev->num_vdev_stats); ath10k_wmi_main_op_pull_fw_stats()
1813 num_peer_stats = __le32_to_cpu(ev->num_peer_stats); ath10k_wmi_main_op_pull_fw_stats()
1859 const struct wmi_stats_event *ev = (void *)skb->data; ath10k_wmi_10x_op_pull_fw_stats() local
1863 if (!skb_pull(skb, sizeof(*ev))) ath10k_wmi_10x_op_pull_fw_stats()
1866 num_pdev_stats = __le32_to_cpu(ev->num_pdev_stats); ath10k_wmi_10x_op_pull_fw_stats()
1867 num_vdev_stats = __le32_to_cpu(ev->num_vdev_stats); ath10k_wmi_10x_op_pull_fw_stats()
1868 num_peer_stats = __le32_to_cpu(ev->num_peer_stats); ath10k_wmi_10x_op_pull_fw_stats()
1918 const struct wmi_10_2_stats_event *ev = (void *)skb->data; ath10k_wmi_10_2_op_pull_fw_stats() local
1925 if (!skb_pull(skb, sizeof(*ev))) ath10k_wmi_10_2_op_pull_fw_stats()
1928 num_pdev_stats = __le32_to_cpu(ev->num_pdev_stats); ath10k_wmi_10_2_op_pull_fw_stats()
1929 num_pdev_ext_stats = __le32_to_cpu(ev->num_pdev_ext_stats); ath10k_wmi_10_2_op_pull_fw_stats()
1930 num_vdev_stats = __le32_to_cpu(ev->num_vdev_stats); ath10k_wmi_10_2_op_pull_fw_stats()
1931 num_peer_stats = __le32_to_cpu(ev->num_peer_stats); ath10k_wmi_10_2_op_pull_fw_stats()
1997 const struct wmi_10_2_stats_event *ev = (void *)skb->data; ath10k_wmi_10_2_4_op_pull_fw_stats() local
2004 if (!skb_pull(skb, sizeof(*ev))) ath10k_wmi_10_2_4_op_pull_fw_stats()
2007 num_pdev_stats = __le32_to_cpu(ev->num_pdev_stats); ath10k_wmi_10_2_4_op_pull_fw_stats()
2008 num_pdev_ext_stats = __le32_to_cpu(ev->num_pdev_ext_stats); ath10k_wmi_10_2_4_op_pull_fw_stats()
2009 num_vdev_stats = __le32_to_cpu(ev->num_vdev_stats); ath10k_wmi_10_2_4_op_pull_fw_stats()
2010 num_peer_stats = __le32_to_cpu(ev->num_peer_stats); ath10k_wmi_10_2_4_op_pull_fw_stats()
2082 struct wmi_vdev_start_response_event *ev = (void *)skb->data; ath10k_wmi_op_pull_vdev_start_ev() local
2084 if (skb->len < sizeof(*ev)) ath10k_wmi_op_pull_vdev_start_ev()
2087 skb_pull(skb, sizeof(*ev)); ath10k_wmi_op_pull_vdev_start_ev()
2088 arg->vdev_id = ev->vdev_id; ath10k_wmi_op_pull_vdev_start_ev()
2089 arg->req_id = ev->req_id; ath10k_wmi_op_pull_vdev_start_ev()
2090 arg->resp_type = ev->resp_type; ath10k_wmi_op_pull_vdev_start_ev()
2091 arg->status = ev->status; ath10k_wmi_op_pull_vdev_start_ev()
2125 struct wmi_peer_sta_kickout_event *ev = (void *)skb->data; ath10k_wmi_op_pull_peer_kick_ev() local
2127 if (skb->len < sizeof(*ev)) ath10k_wmi_op_pull_peer_kick_ev()
2130 skb_pull(skb, sizeof(*ev)); ath10k_wmi_op_pull_peer_kick_ev()
2131 arg->mac_addr = ev->peer_macaddr.addr; ath10k_wmi_op_pull_peer_kick_ev()
2387 struct wmi_host_swba_event *ev = (void *)skb->data; ath10k_wmi_op_pull_swba_ev() local
2391 if (skb->len < sizeof(*ev)) ath10k_wmi_op_pull_swba_ev()
2394 skb_pull(skb, sizeof(*ev)); ath10k_wmi_op_pull_swba_ev()
2395 arg->vdev_map = ev->vdev_map; ath10k_wmi_op_pull_swba_ev()
2397 for (i = 0, map = __le32_to_cpu(ev->vdev_map); map; map >>= 1) { ath10k_wmi_op_pull_swba_ev()
2407 arg->tim_info[i] = &ev->bcn_info[i].tim_info; ath10k_wmi_op_pull_swba_ev()
2408 arg->noa_info[i] = &ev->bcn_info[i].p2p_noa_info; ath10k_wmi_op_pull_swba_ev()
2791 struct wmi_phyerr_event *ev = (void *)skb->data; ath10k_wmi_op_pull_phyerr_ev() local
2793 if (skb->len < sizeof(*ev)) ath10k_wmi_op_pull_phyerr_ev()
2796 arg->num_phyerrs = ev->num_phyerrs; ath10k_wmi_op_pull_phyerr_ev()
2797 arg->tsf_l32 = ev->tsf_l32; ath10k_wmi_op_pull_phyerr_ev()
2798 arg->tsf_u32 = ev->tsf_u32; ath10k_wmi_op_pull_phyerr_ev()
2799 arg->buf_len = __cpu_to_le32(skb->len - sizeof(*ev)); ath10k_wmi_op_pull_phyerr_ev()
2800 arg->phyerrs = ev->phyerrs; ath10k_wmi_op_pull_phyerr_ev()
3040 struct wmi_service_ready_event *ev; ath10k_wmi_main_op_pull_svc_rdy_ev() local
3043 if (skb->len < sizeof(*ev)) ath10k_wmi_main_op_pull_svc_rdy_ev()
3046 ev = (void *)skb->data; ath10k_wmi_main_op_pull_svc_rdy_ev()
3047 skb_pull(skb, sizeof(*ev)); ath10k_wmi_main_op_pull_svc_rdy_ev()
3048 arg->min_tx_power = ev->hw_min_tx_power; ath10k_wmi_main_op_pull_svc_rdy_ev()
3049 arg->max_tx_power = ev->hw_max_tx_power; ath10k_wmi_main_op_pull_svc_rdy_ev()
3050 arg->ht_cap = ev->ht_cap_info; ath10k_wmi_main_op_pull_svc_rdy_ev()
3051 arg->vht_cap = ev->vht_cap_info; ath10k_wmi_main_op_pull_svc_rdy_ev()
3052 arg->sw_ver0 = ev->sw_version; ath10k_wmi_main_op_pull_svc_rdy_ev()
3053 arg->sw_ver1 = ev->sw_version_1; ath10k_wmi_main_op_pull_svc_rdy_ev()
3054 arg->phy_capab = ev->phy_capability; ath10k_wmi_main_op_pull_svc_rdy_ev()
3055 arg->num_rf_chains = ev->num_rf_chains; ath10k_wmi_main_op_pull_svc_rdy_ev()
3056 arg->eeprom_rd = ev->hal_reg_capabilities.eeprom_rd; ath10k_wmi_main_op_pull_svc_rdy_ev()
3057 arg->num_mem_reqs = ev->num_mem_reqs; ath10k_wmi_main_op_pull_svc_rdy_ev()
3058 arg->service_map = ev->wmi_service_bitmap; ath10k_wmi_main_op_pull_svc_rdy_ev()
3059 arg->service_map_len = sizeof(ev->wmi_service_bitmap); ath10k_wmi_main_op_pull_svc_rdy_ev()
3064 arg->mem_reqs[i] = &ev->mem_reqs[i]; ath10k_wmi_main_op_pull_svc_rdy_ev()
3077 struct wmi_10x_service_ready_event *ev; ath10k_wmi_10x_op_pull_svc_rdy_ev() local
3080 if (skb->len < sizeof(*ev)) ath10k_wmi_10x_op_pull_svc_rdy_ev()
3083 ev = (void *)skb->data; ath10k_wmi_10x_op_pull_svc_rdy_ev()
3084 skb_pull(skb, sizeof(*ev)); ath10k_wmi_10x_op_pull_svc_rdy_ev()
3085 arg->min_tx_power = ev->hw_min_tx_power; ath10k_wmi_10x_op_pull_svc_rdy_ev()
3086 arg->max_tx_power = ev->hw_max_tx_power; ath10k_wmi_10x_op_pull_svc_rdy_ev()
3087 arg->ht_cap = ev->ht_cap_info; ath10k_wmi_10x_op_pull_svc_rdy_ev()
3088 arg->vht_cap = ev->vht_cap_info; ath10k_wmi_10x_op_pull_svc_rdy_ev()
3089 arg->sw_ver0 = ev->sw_version; ath10k_wmi_10x_op_pull_svc_rdy_ev()
3090 arg->phy_capab = ev->phy_capability; ath10k_wmi_10x_op_pull_svc_rdy_ev()
3091 arg->num_rf_chains = ev->num_rf_chains; ath10k_wmi_10x_op_pull_svc_rdy_ev()
3092 arg->eeprom_rd = ev->hal_reg_capabilities.eeprom_rd; ath10k_wmi_10x_op_pull_svc_rdy_ev()
3093 arg->num_mem_reqs = ev->num_mem_reqs; ath10k_wmi_10x_op_pull_svc_rdy_ev()
3094 arg->service_map = ev->wmi_service_bitmap; ath10k_wmi_10x_op_pull_svc_rdy_ev()
3095 arg->service_map_len = sizeof(ev->wmi_service_bitmap); ath10k_wmi_10x_op_pull_svc_rdy_ev()
3100 arg->mem_reqs[i] = &ev->mem_reqs[i]; ath10k_wmi_10x_op_pull_svc_rdy_ev()
3221 struct wmi_ready_event *ev = (void *)skb->data; ath10k_wmi_op_pull_rdy_ev() local
3223 if (skb->len < sizeof(*ev)) ath10k_wmi_op_pull_rdy_ev()
3226 skb_pull(skb, sizeof(*ev)); ath10k_wmi_op_pull_rdy_ev()
3227 arg->sw_version = ev->sw_version; ath10k_wmi_op_pull_rdy_ev()
3228 arg->abi_version = ev->abi_version; ath10k_wmi_op_pull_rdy_ev()
3229 arg->status = ev->status; ath10k_wmi_op_pull_rdy_ev()
3230 arg->mac_addr = ev->mac_addr.addr; ath10k_wmi_op_pull_rdy_ev()
3260 const struct wmi_pdev_temperature_event *ev; ath10k_wmi_event_temperature() local
3262 ev = (struct wmi_pdev_temperature_event *)skb->data; ath10k_wmi_event_temperature()
3263 if (WARN_ON(skb->len < sizeof(*ev))) ath10k_wmi_event_temperature()
3266 ath10k_thermal_event_temperature(ar, __le32_to_cpu(ev->temperature)); ath10k_wmi_event_temperature()
H A Dhtt_rx.c460 struct htt_rx_in_ord_ind *ev, ath10k_htt_rx_pop_paddr_list()
464 struct htt_rx_in_ord_msdu_desc *msdu_desc = ev->msdu_descs; ath10k_htt_rx_pop_paddr_list()
473 msdu_count = __le16_to_cpu(ev->msdu_count); ath10k_htt_rx_pop_paddr_list()
474 is_offload = !!(ev->info & HTT_RX_IN_ORD_IND_INFO_OFFLOAD_MASK); ath10k_htt_rx_pop_paddr_list()
1625 struct htt_rx_addba *ev = &resp->rx_addba; ath10k_htt_rx_addba() local
1630 info0 = __le16_to_cpu(ev->info0); ath10k_htt_rx_addba()
1636 tid, peer_id, ev->window_size); ath10k_htt_rx_addba()
1657 peer->addr, tid, ev->window_size); ath10k_htt_rx_addba()
1665 struct htt_rx_delba *ev = &resp->rx_delba; ath10k_htt_rx_delba() local
1670 info0 = __le16_to_cpu(ev->info0); ath10k_htt_rx_delba()
1916 struct htt_peer_map_event ev = { ath10k_htt_t2h_msg_handler() local
1920 memcpy(ev.addr, resp->peer_map.addr, sizeof(ev.addr)); ath10k_htt_t2h_msg_handler()
1921 ath10k_peer_map_event(htt, &ev); ath10k_htt_t2h_msg_handler()
1925 struct htt_peer_unmap_event ev = { ath10k_htt_t2h_msg_handler() local
1928 ath10k_peer_unmap_event(htt, &ev); ath10k_htt_t2h_msg_handler()
1962 struct htt_security_indication *ev = &resp->security_indication; ath10k_htt_t2h_msg_handler() local
1966 __le16_to_cpu(ev->peer_id), ath10k_htt_t2h_msg_handler()
1967 !!(ev->flags & HTT_SECURITY_IS_UNICAST), ath10k_htt_t2h_msg_handler()
1968 MS(ev->flags, HTT_SECURITY_TYPE)); ath10k_htt_t2h_msg_handler()
459 ath10k_htt_rx_pop_paddr_list(struct ath10k_htt *htt, struct htt_rx_in_ord_ind *ev, struct sk_buff_head *list) ath10k_htt_rx_pop_paddr_list() argument
/linux-4.1.27/net/rfkill/
H A Dcore.c81 struct rfkill_event ev; member in struct:rfkill_int_event
192 static void rfkill_fill_event(struct rfkill_event *ev, struct rfkill *rfkill, rfkill_fill_event() argument
197 ev->idx = rfkill->idx; rfkill_fill_event()
198 ev->type = rfkill->type; rfkill_fill_event()
199 ev->op = op; rfkill_fill_event()
202 ev->hard = !!(rfkill->state & RFKILL_BLOCK_HW); rfkill_fill_event()
203 ev->soft = !!(rfkill->state & (RFKILL_BLOCK_SW | rfkill_fill_event()
211 struct rfkill_int_event *ev; rfkill_send_events() local
214 ev = kzalloc(sizeof(*ev), GFP_KERNEL); rfkill_send_events()
215 if (!ev) rfkill_send_events()
217 rfkill_fill_event(&ev->ev, rfkill, op); rfkill_send_events()
219 list_add_tail(&ev->list, &data->events); rfkill_send_events()
1027 struct rfkill_int_event *ev, *tmp; rfkill_fop_open() local
1045 ev = kzalloc(sizeof(*ev), GFP_KERNEL); rfkill_fop_open()
1046 if (!ev) rfkill_fop_open()
1048 rfkill_fill_event(&ev->ev, rfkill, RFKILL_OP_ADD); rfkill_fop_open()
1049 list_add_tail(&ev->list, &data->events); rfkill_fop_open()
1063 list_for_each_entry_safe(ev, tmp, &data->events, list) rfkill_fop_open()
1064 kfree(ev); rfkill_fop_open()
1088 struct rfkill_int_event *ev; rfkill_fop_read() local
1111 ev = list_first_entry(&data->events, struct rfkill_int_event, rfkill_fop_read()
1114 sz = min_t(unsigned long, sizeof(ev->ev), count); rfkill_fop_read()
1116 if (copy_to_user(buf, &ev->ev, sz)) rfkill_fop_read()
1119 list_del(&ev->list); rfkill_fop_read()
1120 kfree(ev); rfkill_fop_read()
1130 struct rfkill_event ev; rfkill_fop_write() local
1137 * Copy as much data as we can accept into our 'ev' buffer, rfkill_fop_write()
1141 count = min(count, sizeof(ev)); rfkill_fop_write()
1142 if (copy_from_user(&ev, buf, count)) rfkill_fop_write()
1145 if (ev.op != RFKILL_OP_CHANGE && ev.op != RFKILL_OP_CHANGE_ALL) rfkill_fop_write()
1148 if (ev.type >= NUM_RFKILL_TYPES) rfkill_fop_write()
1153 if (ev.op == RFKILL_OP_CHANGE_ALL) { rfkill_fop_write()
1154 if (ev.type == RFKILL_TYPE_ALL) { rfkill_fop_write()
1157 rfkill_global_states[i].cur = ev.soft; rfkill_fop_write()
1159 rfkill_global_states[ev.type].cur = ev.soft; rfkill_fop_write()
1164 if (rfkill->idx != ev.idx && ev.op != RFKILL_OP_CHANGE_ALL) rfkill_fop_write()
1167 if (rfkill->type != ev.type && ev.type != RFKILL_TYPE_ALL) rfkill_fop_write()
1170 rfkill_set_block(rfkill, ev.soft); rfkill_fop_write()
1180 struct rfkill_int_event *ev, *tmp; rfkill_fop_release() local
1187 list_for_each_entry_safe(ev, tmp, &data->events, list) rfkill_fop_release()
1188 kfree(ev); rfkill_fop_release()
/linux-4.1.27/drivers/usb/common/
H A Dled.c25 void usb_led_activity(enum usb_led_event ev) usb_led_activity() argument
29 switch (ev) { usb_led_activity()
/linux-4.1.27/net/wireless/
H A Dsme.c751 struct cfg80211_event *ev; cfg80211_connect_result() local
754 ev = kzalloc(sizeof(*ev) + req_ie_len + resp_ie_len, gfp); cfg80211_connect_result()
755 if (!ev) cfg80211_connect_result()
758 ev->type = EVENT_CONNECT_RESULT; cfg80211_connect_result()
760 memcpy(ev->cr.bssid, bssid, ETH_ALEN); cfg80211_connect_result()
762 ev->cr.req_ie = ((u8 *)ev) + sizeof(*ev); cfg80211_connect_result()
763 ev->cr.req_ie_len = req_ie_len; cfg80211_connect_result()
764 memcpy((void *)ev->cr.req_ie, req_ie, req_ie_len); cfg80211_connect_result()
767 ev->cr.resp_ie = ((u8 *)ev) + sizeof(*ev) + req_ie_len; cfg80211_connect_result()
768 ev->cr.resp_ie_len = resp_ie_len; cfg80211_connect_result()
769 memcpy((void *)ev->cr.resp_ie, resp_ie, resp_ie_len); cfg80211_connect_result()
771 ev->cr.status = status; cfg80211_connect_result()
774 list_add_tail(&ev->list, &wdev->event_list); cfg80211_connect_result()
866 struct cfg80211_event *ev; cfg80211_roamed_bss() local
872 ev = kzalloc(sizeof(*ev) + req_ie_len + resp_ie_len, gfp); cfg80211_roamed_bss()
873 if (!ev) { cfg80211_roamed_bss()
878 ev->type = EVENT_ROAMED; cfg80211_roamed_bss()
879 ev->rm.req_ie = ((u8 *)ev) + sizeof(*ev); cfg80211_roamed_bss()
880 ev->rm.req_ie_len = req_ie_len; cfg80211_roamed_bss()
881 memcpy((void *)ev->rm.req_ie, req_ie, req_ie_len); cfg80211_roamed_bss()
882 ev->rm.resp_ie = ((u8 *)ev) + sizeof(*ev) + req_ie_len; cfg80211_roamed_bss()
883 ev->rm.resp_ie_len = resp_ie_len; cfg80211_roamed_bss()
884 memcpy((void *)ev->rm.resp_ie, resp_ie, resp_ie_len); cfg80211_roamed_bss()
885 ev->rm.bss = bss; cfg80211_roamed_bss()
888 list_add_tail(&ev->list, &wdev->event_list); cfg80211_roamed_bss()
945 struct cfg80211_event *ev; cfg80211_disconnected() local
948 ev = kzalloc(sizeof(*ev) + ie_len, gfp); cfg80211_disconnected()
949 if (!ev) cfg80211_disconnected()
952 ev->type = EVENT_DISCONNECTED; cfg80211_disconnected()
953 ev->dc.ie = ((u8 *)ev) + sizeof(*ev); cfg80211_disconnected()
954 ev->dc.ie_len = ie_len; cfg80211_disconnected()
955 memcpy((void *)ev->dc.ie, ie, ie_len); cfg80211_disconnected()
956 ev->dc.reason = reason; cfg80211_disconnected()
959 list_add_tail(&ev->list, &wdev->event_list); cfg80211_disconnected()
H A Dibss.c62 struct cfg80211_event *ev; cfg80211_ibss_joined() local
70 ev = kzalloc(sizeof(*ev), gfp); cfg80211_ibss_joined()
71 if (!ev) cfg80211_ibss_joined()
74 ev->type = EVENT_IBSS_JOINED; cfg80211_ibss_joined()
75 memcpy(ev->ij.bssid, bssid, ETH_ALEN); cfg80211_ibss_joined()
76 ev->ij.channel = channel; cfg80211_ibss_joined()
79 list_add_tail(&ev->list, &wdev->event_list); cfg80211_ibss_joined()
H A Dutil.c858 struct cfg80211_event *ev; cfg80211_process_wdev_events() local
864 ev = list_first_entry(&wdev->event_list, cfg80211_process_wdev_events()
866 list_del(&ev->list); cfg80211_process_wdev_events()
870 switch (ev->type) { cfg80211_process_wdev_events()
872 if (!is_zero_ether_addr(ev->cr.bssid)) cfg80211_process_wdev_events()
873 bssid = ev->cr.bssid; cfg80211_process_wdev_events()
876 ev->cr.req_ie, ev->cr.req_ie_len, cfg80211_process_wdev_events()
877 ev->cr.resp_ie, ev->cr.resp_ie_len, cfg80211_process_wdev_events()
878 ev->cr.status, cfg80211_process_wdev_events()
879 ev->cr.status == WLAN_STATUS_SUCCESS, cfg80211_process_wdev_events()
883 __cfg80211_roamed(wdev, ev->rm.bss, ev->rm.req_ie, cfg80211_process_wdev_events()
884 ev->rm.req_ie_len, ev->rm.resp_ie, cfg80211_process_wdev_events()
885 ev->rm.resp_ie_len); cfg80211_process_wdev_events()
889 ev->dc.ie, ev->dc.ie_len, cfg80211_process_wdev_events()
890 ev->dc.reason, true); cfg80211_process_wdev_events()
893 __cfg80211_ibss_joined(wdev->netdev, ev->ij.bssid, cfg80211_process_wdev_events()
894 ev->ij.channel); cfg80211_process_wdev_events()
902 kfree(ev); cfg80211_process_wdev_events()
H A Dlib80211_crypt_tkip.c592 struct iw_michaelmicfailure ev; lib80211_michael_mic_failure() local
595 memset(&ev, 0, sizeof(ev)); lib80211_michael_mic_failure()
596 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; lib80211_michael_mic_failure()
598 ev.flags |= IW_MICFAILURE_GROUP; lib80211_michael_mic_failure()
600 ev.flags |= IW_MICFAILURE_PAIRWISE; lib80211_michael_mic_failure()
601 ev.src_addr.sa_family = ARPHRD_ETHER; lib80211_michael_mic_failure()
602 memcpy(ev.src_addr.sa_data, hdr->addr2, ETH_ALEN); lib80211_michael_mic_failure()
604 wrqu.data.length = sizeof(ev); lib80211_michael_mic_failure()
605 wireless_send_event(dev, IWEVMICHAELMICFAILURE, &wrqu, (char *)&ev); lib80211_michael_mic_failure()
H A Dcore.c948 struct cfg80211_event *ev; cfg80211_stop_iface() local
953 ev = kzalloc(sizeof(*ev), gfp); cfg80211_stop_iface()
954 if (!ev) cfg80211_stop_iface()
957 ev->type = EVENT_STOPPED; cfg80211_stop_iface()
960 list_add_tail(&ev->list, &wdev->event_list); cfg80211_stop_iface()
/linux-4.1.27/drivers/media/v4l2-core/
H A Dv4l2-event.c110 static void __v4l2_event_queue_fh(struct v4l2_fh *fh, const struct v4l2_event *ev, __v4l2_event_queue_fh() argument
118 sev = v4l2_event_subscribed(fh, ev->type, ev->id); __v4l2_event_queue_fh()
143 sev->ops->replace(&kev->event, ev); __v4l2_event_queue_fh()
155 kev->event.type = ev->type; __v4l2_event_queue_fh()
157 kev->event.u = ev->u; __v4l2_event_queue_fh()
158 kev->event.id = ev->id; __v4l2_event_queue_fh()
169 void v4l2_event_queue(struct video_device *vdev, const struct v4l2_event *ev) v4l2_event_queue() argument
180 __v4l2_event_queue_fh(fh, ev, &timestamp); v4l2_event_queue()
186 void v4l2_event_queue_fh(struct v4l2_fh *fh, const struct v4l2_event *ev) v4l2_event_queue_fh() argument
194 __v4l2_event_queue_fh(fh, ev, &timestamp); v4l2_event_queue_fh()
H A Dv4l2-ctrls.c1201 static void fill_event(struct v4l2_event *ev, struct v4l2_ctrl *ctrl, u32 changes) fill_event() argument
1203 memset(ev->reserved, 0, sizeof(ev->reserved)); fill_event()
1204 ev->type = V4L2_EVENT_CTRL; fill_event()
1205 ev->id = ctrl->id; fill_event()
1206 ev->u.ctrl.changes = changes; fill_event()
1207 ev->u.ctrl.type = ctrl->type; fill_event()
1208 ev->u.ctrl.flags = ctrl->flags; fill_event()
1210 ev->u.ctrl.value64 = 0; fill_event()
1212 ev->u.ctrl.value64 = *ctrl->p_cur.p_s64; fill_event()
1213 ev->u.ctrl.minimum = ctrl->minimum; fill_event()
1214 ev->u.ctrl.maximum = ctrl->maximum; fill_event()
1217 ev->u.ctrl.step = 1; fill_event()
1219 ev->u.ctrl.step = ctrl->step; fill_event()
1220 ev->u.ctrl.default_value = ctrl->default_value; fill_event()
1225 struct v4l2_event ev; send_event() local
1230 fill_event(&ev, ctrl, changes); send_event()
1235 v4l2_event_queue_fh(sev->fh, &ev); send_event()
3375 struct v4l2_event ev; v4l2_ctrl_add_event() local
3380 fill_event(&ev, ctrl, changes); v4l2_ctrl_add_event()
3384 v4l2_event_queue_fh(sev->fh, &ev); v4l2_ctrl_add_event()
/linux-4.1.27/arch/powerpc/perf/
H A Dmpc7450-pmu.c272 u32 ev, pmc, thresh; mpc7450_compute_mmcr() local
291 ev = event[event_index[class][i]]; mpc7450_compute_mmcr()
293 pmc = (ev >> PM_PMC_SH) & PM_PMC_MSK; mpc7450_compute_mmcr()
305 tuse = mpc7450_threshold_use(ev); mpc7450_compute_mmcr()
307 thresh = (ev >> PM_THRESH_SH) & PM_THRESH_MSK; mpc7450_compute_mmcr()
309 if (tuse == 2 && (ev & PM_THRMULT_MSKS)) mpc7450_compute_mmcr()
312 ev &= pmcsel_mask[pmc - 1]; mpc7450_compute_mmcr()
313 ev <<= pmcsel_shift[pmc - 1]; mpc7450_compute_mmcr()
315 mmcr0 |= ev; mpc7450_compute_mmcr()
317 mmcr1 |= ev; mpc7450_compute_mmcr()
H A Dcore-fsl-emb.c462 int ev; hw_perf_cache_event() local
477 ev = (*ppmu->cache_events)[type][op][result]; hw_perf_cache_event()
478 if (ev == 0) hw_perf_cache_event()
480 if (ev == -1) hw_perf_cache_event()
482 *eventp = ev; hw_perf_cache_event()
488 u64 ev; fsl_emb_pmu_event_init() local
503 ev = event->attr.config; fsl_emb_pmu_event_init()
504 if (ev >= ppmu->n_generic || ppmu->generic_events[ev] == 0) fsl_emb_pmu_event_init()
506 ev = ppmu->generic_events[ev]; fsl_emb_pmu_event_init()
510 err = hw_perf_cache_event(event->attr.config, &ev); fsl_emb_pmu_event_init()
516 ev = event->attr.config; fsl_emb_pmu_event_init()
523 event->hw.config = ppmu->xlate_event(ev); fsl_emb_pmu_event_init()
554 (u32)((ev << 16) & PMLCA_EVENT_MASK); fsl_emb_pmu_event_init()
H A Dpower6-pmu.c183 unsigned int pmc, ev, b, u, s, psel; p6_compute_mmcr() local
198 ev = event[i]; p6_compute_mmcr()
199 pmc = (ev >> PM_PMC_SH) & PM_PMC_MSK; p6_compute_mmcr()
212 psel = ev & PM_PMCSEL_MSK; p6_compute_mmcr()
213 if (ev & PM_BUSEVENT_MSK) { p6_compute_mmcr()
215 b = (ev >> PM_BYTE_SH) & PM_BYTE_MSK; p6_compute_mmcr()
216 u = (ev >> PM_UNIT_SH) & PM_UNIT_MSK; p6_compute_mmcr()
224 s = (ev >> PM_SUBUNIT_SH) & PM_SUBUNIT_MSK; p6_compute_mmcr()
240 if (ev & PM_LLA) { p6_compute_mmcr()
242 if (ev & PM_LLAV) p6_compute_mmcr()
H A Dhv-24x7.c154 static char *event_name(struct hv_24x7_event_data *ev, int *len) event_name() argument
156 *len = be16_to_cpu(ev->event_name_len) - 2; event_name()
157 return (char *)ev->remainder; event_name()
160 static char *event_desc(struct hv_24x7_event_data *ev, int *len) event_desc() argument
162 unsigned nl = be16_to_cpu(ev->event_name_len); event_desc()
163 __be16 *desc_len = (__be16 *)(ev->remainder + nl - 2); event_desc()
166 return (char *)ev->remainder + nl; event_desc()
169 static char *event_long_desc(struct hv_24x7_event_data *ev, int *len) event_long_desc() argument
171 unsigned nl = be16_to_cpu(ev->event_name_len); event_long_desc()
172 __be16 *desc_len_ = (__be16 *)(ev->remainder + nl - 2); event_long_desc()
174 __be16 *long_desc_len = (__be16 *)(ev->remainder + nl + desc_len - 2); event_long_desc()
177 return (char *)ev->remainder + nl + desc_len; event_long_desc()
180 static bool event_fixed_portion_is_within(struct hv_24x7_event_data *ev, event_fixed_portion_is_within() argument
183 void *start = ev; event_fixed_portion_is_within()
196 static void *event_end(struct hv_24x7_event_data *ev, void *end) event_end() argument
198 void *start = ev; event_end()
201 unsigned nl = be16_to_cpu(ev->event_name_len); event_end()
214 dl_ = (__be16 *)(ev->remainder + nl - 2); event_end()
229 ldl_ = (__be16 *)(ev->remainder + nl + dl - 2); event_end()
H A Dcore-book3s.c1647 static int can_go_on_limited_pmc(struct perf_event *event, u64 ev, can_go_on_limited_pmc() argument
1659 if (ppmu->limited_pmc_event(ev)) can_go_on_limited_pmc()
1670 n = ppmu->get_alternatives(ev, flags, alt); can_go_on_limited_pmc()
1680 static u64 normal_pmc_alternative(u64 ev, unsigned long flags) normal_pmc_alternative() argument
1686 n = ppmu->get_alternatives(ev, flags, alt); normal_pmc_alternative()
1716 int ev; hw_perf_cache_event() local
1731 ev = (*ppmu->cache_events)[type][op][result]; hw_perf_cache_event()
1732 if (ev == 0) hw_perf_cache_event()
1734 if (ev == -1) hw_perf_cache_event()
1736 *eventp = ev; hw_perf_cache_event()
1742 u64 ev; power_pmu_event_init() local
1762 ev = event->attr.config; power_pmu_event_init()
1763 if (ev >= ppmu->n_generic || ppmu->generic_events[ev] == 0) power_pmu_event_init()
1765 ev = ppmu->generic_events[ev]; power_pmu_event_init()
1768 err = hw_perf_cache_event(event->attr.config, &ev); power_pmu_event_init()
1773 ev = event->attr.config; power_pmu_event_init()
1779 event->hw.config_base = ev; power_pmu_event_init()
1805 if (can_go_on_limited_pmc(event, ev, flags)) { power_pmu_event_init()
1807 } else if (ppmu->limited_pmc_event(ev)) { power_pmu_event_init()
1813 ev = normal_pmc_alternative(ev, flags); power_pmu_event_init()
1814 if (!ev) power_pmu_event_init()
1836 events[n] = ev; power_pmu_event_init()
/linux-4.1.27/sound/synth/emux/
H A Demux_oss.c41 static int snd_emux_event_oss_input(struct snd_seq_event *ev, int direct,
302 snd_emux_event_oss_input(struct snd_seq_event *ev, int direct, void *private_data, snd_emux_event_oss_input() argument
315 if (ev->type != SNDRV_SEQ_EVENT_OSS) snd_emux_event_oss_input()
316 return snd_emux_event_input(ev, direct, private_data, atomic, hop); snd_emux_event_oss_input()
318 data = ev->data.raw8.d; snd_emux_event_oss_input()
500 struct snd_seq_event ev; fake_event() local
501 memset(&ev, 0, sizeof(ev)); fake_event()
502 ev.type = SNDRV_SEQ_EVENT_CONTROLLER; fake_event()
503 ev.data.control.channel = ch; fake_event()
504 ev.data.control.param = param; fake_event()
505 ev.data.control.value = val; fake_event()
506 snd_emux_event_input(&ev, 0, port, atomic, hop); fake_event()
H A Demux_seq.c252 snd_emux_event_input(struct snd_seq_event *ev, int direct, void *private_data, snd_emux_event_input() argument
258 if (snd_BUG_ON(!port || !ev)) snd_emux_event_input()
261 snd_midi_process_event(&emux_ops, ev, &port->chset); snd_emux_event_input()
H A Demux_voice.h37 int snd_emux_event_input(struct snd_seq_event *ev, int direct, void *private,
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
H A Dwmi.c506 struct wmi_remain_on_chnl_event *ev; ath6kl_wmi_remain_on_chnl_event_rx() local
513 if (len < sizeof(*ev)) ath6kl_wmi_remain_on_chnl_event_rx()
516 ev = (struct wmi_remain_on_chnl_event *) datap; ath6kl_wmi_remain_on_chnl_event_rx()
517 freq = le32_to_cpu(ev->freq); ath6kl_wmi_remain_on_chnl_event_rx()
518 dur = le32_to_cpu(ev->duration); ath6kl_wmi_remain_on_chnl_event_rx()
539 struct wmi_cancel_remain_on_chnl_event *ev; ath6kl_wmi_cancel_remain_on_chnl_event_rx() local
546 if (len < sizeof(*ev)) ath6kl_wmi_cancel_remain_on_chnl_event_rx()
549 ev = (struct wmi_cancel_remain_on_chnl_event *) datap; ath6kl_wmi_cancel_remain_on_chnl_event_rx()
550 freq = le32_to_cpu(ev->freq); ath6kl_wmi_cancel_remain_on_chnl_event_rx()
551 dur = le32_to_cpu(ev->duration); ath6kl_wmi_cancel_remain_on_chnl_event_rx()
554 freq, dur, ev->status); ath6kl_wmi_cancel_remain_on_chnl_event_rx()
576 struct wmi_tx_status_event *ev; ath6kl_wmi_tx_status_event_rx() local
579 if (len < sizeof(*ev)) ath6kl_wmi_tx_status_event_rx()
582 ev = (struct wmi_tx_status_event *) datap; ath6kl_wmi_tx_status_event_rx()
583 id = le32_to_cpu(ev->id); ath6kl_wmi_tx_status_event_rx()
585 id, ev->ack_status); ath6kl_wmi_tx_status_event_rx()
590 !!ev->ack_status, GFP_ATOMIC); ath6kl_wmi_tx_status_event_rx()
602 struct wmi_p2p_rx_probe_req_event *ev; ath6kl_wmi_rx_probe_req_event_rx() local
606 if (len < sizeof(*ev)) ath6kl_wmi_rx_probe_req_event_rx()
609 ev = (struct wmi_p2p_rx_probe_req_event *) datap; ath6kl_wmi_rx_probe_req_event_rx()
610 freq = le32_to_cpu(ev->freq); ath6kl_wmi_rx_probe_req_event_rx()
611 dlen = le16_to_cpu(ev->len); ath6kl_wmi_rx_probe_req_event_rx()
612 if (datap + len < ev->data + dlen) { ath6kl_wmi_rx_probe_req_event_rx()
622 cfg80211_rx_mgmt(&vif->wdev, freq, 0, ev->data, dlen, 0); ath6kl_wmi_rx_probe_req_event_rx()
629 struct wmi_p2p_capabilities_event *ev; ath6kl_wmi_p2p_capabilities_event_rx() local
632 if (len < sizeof(*ev)) ath6kl_wmi_p2p_capabilities_event_rx()
635 ev = (struct wmi_p2p_capabilities_event *) datap; ath6kl_wmi_p2p_capabilities_event_rx()
636 dlen = le16_to_cpu(ev->len); ath6kl_wmi_p2p_capabilities_event_rx()
645 struct wmi_rx_action_event *ev; ath6kl_wmi_rx_action_event_rx() local
649 if (len < sizeof(*ev)) ath6kl_wmi_rx_action_event_rx()
652 ev = (struct wmi_rx_action_event *) datap; ath6kl_wmi_rx_action_event_rx()
653 freq = le32_to_cpu(ev->freq); ath6kl_wmi_rx_action_event_rx()
654 dlen = le16_to_cpu(ev->len); ath6kl_wmi_rx_action_event_rx()
655 if (datap + len < ev->data + dlen) { ath6kl_wmi_rx_action_event_rx()
661 cfg80211_rx_mgmt(&vif->wdev, freq, 0, ev->data, dlen, 0); ath6kl_wmi_rx_action_event_rx()
668 struct wmi_p2p_info_event *ev; ath6kl_wmi_p2p_info_event_rx() local
672 if (len < sizeof(*ev)) ath6kl_wmi_p2p_info_event_rx()
675 ev = (struct wmi_p2p_info_event *) datap; ath6kl_wmi_p2p_info_event_rx()
676 flags = le32_to_cpu(ev->info_req_flags); ath6kl_wmi_p2p_info_event_rx()
677 dlen = le16_to_cpu(ev->len); ath6kl_wmi_p2p_info_event_rx()
684 cap = (struct wmi_p2p_capabilities *) ev->data; ath6kl_wmi_p2p_info_event_rx()
693 mac = (struct wmi_p2p_macaddr *) ev->data; ath6kl_wmi_p2p_info_event_rx()
702 mod = (struct wmi_p2p_hmodel *) ev->data; ath6kl_wmi_p2p_info_event_rx()
743 struct wmi_ready_event_2 *ev = (struct wmi_ready_event_2 *) datap; ath6kl_wmi_ready_event_rx() local
748 ath6kl_ready_event(wmi->parent_dev, ev->mac_addr, ath6kl_wmi_ready_event_rx()
749 le32_to_cpu(ev->sw_version), ath6kl_wmi_ready_event_rx()
750 le32_to_cpu(ev->abi_version), ev->phy_cap); ath6kl_wmi_ready_event_rx()
859 struct wmi_connect_event *ev; ath6kl_wmi_connect_event_rx() local
865 ev = (struct wmi_connect_event *) datap; ath6kl_wmi_connect_event_rx()
870 if (memcmp(dev->dev_addr, ev->u.ap_bss.bssid, ETH_ALEN) == 0) { ath6kl_wmi_connect_event_rx()
873 __func__, le16_to_cpu(ev->u.ap_bss.ch), ath6kl_wmi_connect_event_rx()
874 ev->u.ap_bss.bssid); ath6kl_wmi_connect_event_rx()
876 vif, le16_to_cpu(ev->u.ap_bss.ch)); ath6kl_wmi_connect_event_rx()
880 __func__, ev->u.ap_sta.aid, ath6kl_wmi_connect_event_rx()
881 ev->u.ap_sta.mac_addr, ath6kl_wmi_connect_event_rx()
882 ev->u.ap_sta.auth, ath6kl_wmi_connect_event_rx()
883 ev->u.ap_sta.keymgmt, ath6kl_wmi_connect_event_rx()
884 le16_to_cpu(ev->u.ap_sta.cipher), ath6kl_wmi_connect_event_rx()
885 ev->u.ap_sta.apsd_info); ath6kl_wmi_connect_event_rx()
888 vif, ev->u.ap_sta.aid, ev->u.ap_sta.mac_addr, ath6kl_wmi_connect_event_rx()
889 ev->u.ap_sta.keymgmt, ath6kl_wmi_connect_event_rx()
890 le16_to_cpu(ev->u.ap_sta.cipher), ath6kl_wmi_connect_event_rx()
891 ev->u.ap_sta.auth, ev->assoc_req_len, ath6kl_wmi_connect_event_rx()
892 ev->assoc_info + ev->beacon_ie_len, ath6kl_wmi_connect_event_rx()
893 ev->u.ap_sta.apsd_info); ath6kl_wmi_connect_event_rx()
902 le16_to_cpu(ev->u.sta.ch), ev->u.sta.bssid, ath6kl_wmi_connect_event_rx()
903 le16_to_cpu(ev->u.sta.listen_intvl), ath6kl_wmi_connect_event_rx()
904 le16_to_cpu(ev->u.sta.beacon_intvl), ath6kl_wmi_connect_event_rx()
905 le32_to_cpu(ev->u.sta.nw_type)); ath6kl_wmi_connect_event_rx()
908 pie = ev->assoc_info + ev->beacon_ie_len + ath6kl_wmi_connect_event_rx()
909 ev->assoc_req_len + (sizeof(u16) * 3); /* capinfo, status, aid */ ath6kl_wmi_connect_event_rx()
912 peie = ev->assoc_info + ev->beacon_ie_len + ev->assoc_req_len + ath6kl_wmi_connect_event_rx()
913 ev->assoc_resp_len; ath6kl_wmi_connect_event_rx()
934 ath6kl_connect_event(vif, le16_to_cpu(ev->u.sta.ch), ath6kl_wmi_connect_event_rx()
935 ev->u.sta.bssid, ath6kl_wmi_connect_event_rx()
936 le16_to_cpu(ev->u.sta.listen_intvl), ath6kl_wmi_connect_event_rx()
937 le16_to_cpu(ev->u.sta.beacon_intvl), ath6kl_wmi_connect_event_rx()
938 le32_to_cpu(ev->u.sta.nw_type), ath6kl_wmi_connect_event_rx()
939 ev->beacon_ie_len, ev->assoc_req_len, ath6kl_wmi_connect_event_rx()
940 ev->assoc_resp_len, ev->assoc_info); ath6kl_wmi_connect_event_rx()
989 struct ath6kl_wmi_regdomain *ev; ath6kl_wmi_regdomain_event() local
995 ev = (struct ath6kl_wmi_regdomain *) datap; ath6kl_wmi_regdomain_event()
996 reg_code = le32_to_cpu(ev->reg_code); ath6kl_wmi_regdomain_event()
1025 struct wmi_disconnect_event *ev; ath6kl_wmi_disconnect_event_rx() local
1031 ev = (struct wmi_disconnect_event *) datap; ath6kl_wmi_disconnect_event_rx()
1035 le16_to_cpu(ev->proto_reason_status), ev->bssid, ath6kl_wmi_disconnect_event_rx()
1036 ev->disconn_reason, ev->assoc_resp_len); ath6kl_wmi_disconnect_event_rx()
1040 ath6kl_disconnect_event(vif, ev->disconn_reason, ath6kl_wmi_disconnect_event_rx()
1041 ev->bssid, ev->assoc_resp_len, ev->assoc_info, ath6kl_wmi_disconnect_event_rx()
1042 le16_to_cpu(ev->proto_reason_status)); ath6kl_wmi_disconnect_event_rx()
1049 struct wmi_peer_node_event *ev; ath6kl_wmi_peer_node_event_rx() local
1054 ev = (struct wmi_peer_node_event *) datap; ath6kl_wmi_peer_node_event_rx()
1056 if (ev->event_code == PEER_NODE_JOIN_EVENT) ath6kl_wmi_peer_node_event_rx()
1058 ev->peer_mac_addr); ath6kl_wmi_peer_node_event_rx()
1059 else if (ev->event_code == PEER_NODE_LEAVE_EVENT) ath6kl_wmi_peer_node_event_rx()
1061 ev->peer_mac_addr); ath6kl_wmi_peer_node_event_rx()
1069 struct wmi_tkip_micerr_event *ev; ath6kl_wmi_tkip_micerr_event_rx() local
1074 ev = (struct wmi_tkip_micerr_event *) datap; ath6kl_wmi_tkip_micerr_event_rx()
1076 ath6kl_tkip_micerr_event(vif, ev->key_id, ev->is_mcast); ath6kl_wmi_tkip_micerr_event_rx()
1175 struct wmi_pstream_timeout_event *ev; ath6kl_wmi_pstream_timeout_event_rx() local
1180 ev = (struct wmi_pstream_timeout_event *) datap; ath6kl_wmi_pstream_timeout_event_rx()
1189 wmi->stream_exist_for_ac[ev->traffic_class] = 0; ath6kl_wmi_pstream_timeout_event_rx()
1190 wmi->fat_pipe_exist &= ~(1 << ev->traffic_class); ath6kl_wmi_pstream_timeout_event_rx()
1194 ath6kl_indicate_tx_activity(wmi->parent_dev, ev->traffic_class, false); ath6kl_wmi_pstream_timeout_event_rx()
1281 struct wmi_scan_complete_event *ev; ath6kl_wmi_scan_complete_rx() local
1283 ev = (struct wmi_scan_complete_event *) datap; ath6kl_wmi_scan_complete_rx()
1285 ath6kl_scan_complete_evt(vif, a_sle32_to_cpu(ev->status)); ath6kl_wmi_scan_complete_rx()
1294 struct wmi_neighbor_report_event *ev; ath6kl_wmi_neighbor_report_event_rx() local
1297 if (len < sizeof(*ev)) ath6kl_wmi_neighbor_report_event_rx()
1299 ev = (struct wmi_neighbor_report_event *) datap; ath6kl_wmi_neighbor_report_event_rx()
1300 if (sizeof(*ev) + ev->num_neighbors * sizeof(struct wmi_neighbor_info) ath6kl_wmi_neighbor_report_event_rx()
1304 ev->num_neighbors, len); ath6kl_wmi_neighbor_report_event_rx()
1307 for (i = 0; i < ev->num_neighbors; i++) { ath6kl_wmi_neighbor_report_event_rx()
1309 i + 1, ev->num_neighbors, ev->neighbor[i].bssid, ath6kl_wmi_neighbor_report_event_rx()
1310 ev->neighbor[i].bss_flags); ath6kl_wmi_neighbor_report_event_rx()
1312 ev->neighbor[i].bssid, ath6kl_wmi_neighbor_report_event_rx()
1313 !!(ev->neighbor[i].bss_flags & ath6kl_wmi_neighbor_report_event_rx()
1331 struct wmi_cmd_error_event *ev; ath6kl_wmi_error_event_rx() local
1332 ev = (struct wmi_cmd_error_event *) datap; ath6kl_wmi_error_event_rx()
1334 switch (ev->err_code) { ath6kl_wmi_error_event_rx()
1347 ev->cmd_id, type); ath6kl_wmi_error_event_rx()
1581 struct wmi_txe_notify_event *ev; ath6kl_wmi_txe_notify_event_rx() local
1584 if (len < sizeof(*ev)) ath6kl_wmi_txe_notify_event_rx()
1590 ev = (struct wmi_txe_notify_event *) datap; ath6kl_wmi_txe_notify_event_rx()
1591 rate = le32_to_cpu(ev->rate); ath6kl_wmi_txe_notify_event_rx()
1592 pkts = le32_to_cpu(ev->pkts); ath6kl_wmi_txe_notify_event_rx()
1750 struct wmi_aplist_event *ev = (struct wmi_aplist_event *) datap; ath6kl_wmi_aplist_event_rx() local
1755 ev->ap_list_ver != APLIST_VER1) ath6kl_wmi_aplist_event_rx()
1759 ap_info_v1 = (struct wmi_ap_info_v1 *) ev->ap_list; ath6kl_wmi_aplist_event_rx()
1762 "number of APs in aplist event: %d\n", ev->num_ap); ath6kl_wmi_aplist_event_rx()
1765 (ev->num_ap - 1) * ap_info_entry_size)) ath6kl_wmi_aplist_event_rx()
1769 for (index = 0; index < ev->num_ap; index++) { ath6kl_wmi_aplist_event_rx()
3480 struct wmi_pspoll_event *ev; ath6kl_wmi_pspoll_event_rx() local
3485 ev = (struct wmi_pspoll_event *) datap; ath6kl_wmi_pspoll_event_rx()
3487 ath6kl_pspoll_event(vif, le16_to_cpu(ev->aid)); ath6kl_wmi_pspoll_event_rx()
/linux-4.1.27/drivers/media/common/siano/
H A Dsmsir.c44 DEFINE_IR_RAW_EVENT(ev); sms_ir_event()
46 ev.duration = abs(samples[i]) * 1000; /* Convert to ns */ sms_ir_event()
47 ev.pulse = (samples[i] > 0) ? false : true; sms_ir_event()
49 ir_raw_event_store(coredev->ir.dev, &ev); sms_ir_event()
/linux-4.1.27/include/net/
H A Dllc_s_st.h20 llc_sap_ev_t ev; member in struct:llc_sap_state_trans
H A Dllc_c_st.h36 llc_conn_ev_t ev; member in struct:llc_conn_state_trans
H A Dllc_s_ev.h18 /* Types of events (possible values in 'ev->type') */
/linux-4.1.27/mm/
H A Dvmpressure.c142 struct vmpressure_event *ev; vmpressure_event() local
150 list_for_each_entry(ev, &vmpr->events, node) { vmpressure_event()
151 if (level >= ev->level) { vmpressure_event()
152 eventfd_signal(ev->efd, 1); vmpressure_event()
300 struct vmpressure_event *ev; vmpressure_register_event() local
311 ev = kzalloc(sizeof(*ev), GFP_KERNEL); vmpressure_register_event()
312 if (!ev) vmpressure_register_event()
315 ev->efd = eventfd; vmpressure_register_event()
316 ev->level = level; vmpressure_register_event()
319 list_add(&ev->node, &vmpr->events); vmpressure_register_event()
340 struct vmpressure_event *ev; vmpressure_unregister_event() local
343 list_for_each_entry(ev, &vmpr->events, node) { vmpressure_unregister_event()
344 if (ev->efd != eventfd) vmpressure_unregister_event()
346 list_del(&ev->node); vmpressure_unregister_event()
347 kfree(ev); vmpressure_unregister_event()
/linux-4.1.27/drivers/infiniband/hw/qib/
H A Dqib_intr.c72 static void signal_ib_event(struct qib_pportdata *ppd, enum ib_event_type ev) signal_ib_event() argument
79 event.event = ev; signal_ib_event()
89 enum ib_event_type ev = 0; qib_handle_e_ibstatuschanged() local
123 ev = IB_EVENT_PORT_ERR; qib_handle_e_ibstatuschanged()
153 ev = IB_EVENT_PORT_ACTIVE; qib_handle_e_ibstatuschanged()
158 ev = IB_EVENT_PORT_ERR; qib_handle_e_ibstatuschanged()
169 if (ev) qib_handle_e_ibstatuschanged()
170 signal_ib_event(ppd, ev); qib_handle_e_ibstatuschanged()
H A Dqib_ruc.c208 struct ib_event ev; qib_get_rwqe() local
212 ev.device = qp->ibqp.device; qib_get_rwqe()
213 ev.element.srq = qp->ibqp.srq; qib_get_rwqe()
214 ev.event = IB_EVENT_SRQ_LIMIT_REACHED; qib_get_rwqe()
215 handler(&ev, srq->ibsrq.srq_context); qib_get_rwqe()
231 struct ib_event ev; qib_migrate_qp() local
238 ev.device = qp->ibqp.device; qib_migrate_qp()
239 ev.element.qp = &qp->ibqp; qib_migrate_qp()
240 ev.event = IB_EVENT_PATH_MIG; qib_migrate_qp()
241 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); qib_migrate_qp()
625 struct ib_event ev; qib_ruc_loopback() local
627 ev.device = sqp->ibqp.device; qib_ruc_loopback()
628 ev.element.qp = &sqp->ibqp; qib_ruc_loopback()
629 ev.event = IB_EVENT_QP_LAST_WQE_REACHED; qib_ruc_loopback()
630 sqp->ibqp.event_handler(&ev, sqp->ibqp.qp_context); qib_ruc_loopback()
H A Dqib_cq.c74 struct ib_event ev; qib_cq_enter() local
76 ev.device = cq->ibcq.device; qib_cq_enter()
77 ev.element.cq = &cq->ibcq; qib_cq_enter()
78 ev.event = IB_EVENT_CQ_ERR; qib_cq_enter()
79 cq->ibcq.event_handler(&ev, cq->ibcq.cq_context); qib_cq_enter()
H A Dqib_uc.c334 struct ib_event ev; qib_uc_rcv() local
336 ev.device = qp->ibqp.device; qib_uc_rcv()
337 ev.element.qp = &qp->ibqp; qib_uc_rcv()
338 ev.event = IB_EVENT_COMM_EST; qib_uc_rcv()
339 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); qib_uc_rcv()
H A Dqib_qp.c575 struct ib_event ev; qib_modify_qp() local
832 ev.device = qp->ibqp.device; qib_modify_qp()
833 ev.element.qp = &qp->ibqp; qib_modify_qp()
834 ev.event = IB_EVENT_QP_LAST_WQE_REACHED; qib_modify_qp()
835 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); qib_modify_qp()
838 ev.device = qp->ibqp.device; qib_modify_qp()
839 ev.element.qp = &qp->ibqp; qib_modify_qp()
840 ev.event = IB_EVENT_PATH_MIG; qib_modify_qp()
841 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); qib_modify_qp()
H A Dqib_rc.c1829 struct ib_event ev; qib_rc_error() local
1831 ev.device = qp->ibqp.device; qib_rc_error()
1832 ev.element.qp = &qp->ibqp; qib_rc_error()
1833 ev.event = IB_EVENT_QP_LAST_WQE_REACHED; qib_rc_error()
1834 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); qib_rc_error()
1952 struct ib_event ev; qib_rc_rcv() local
1954 ev.device = qp->ibqp.device; qib_rc_rcv()
1955 ev.element.qp = &qp->ibqp; qib_rc_rcv()
1956 ev.event = IB_EVENT_COMM_EST; qib_rc_rcv()
1957 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); qib_rc_rcv()
/linux-4.1.27/include/media/
H A Drc-core.h237 static inline void init_ir_raw_event(struct ir_raw_event *ev) init_ir_raw_event() argument
239 memset(ev, 0, sizeof(*ev)); init_ir_raw_event()
248 int ir_raw_event_store(struct rc_dev *dev, struct ir_raw_event *ev);
251 struct ir_raw_event *ev);
256 DEFINE_IR_RAW_EVENT(ev); ir_raw_event_reset()
257 ev.reset = true; ir_raw_event_reset()
259 ir_raw_event_store(dev, &ev); ir_raw_event_reset()
H A Dv4l2-event.h124 void v4l2_event_queue(struct video_device *vdev, const struct v4l2_event *ev);
125 void v4l2_event_queue_fh(struct v4l2_fh *fh, const struct v4l2_event *ev);
/linux-4.1.27/drivers/usb/gadget/function/
H A Df_fs.c210 req->zero = len < le16_to_cpu(ffs->ev.setup.wLength); __ffs_ep0_queue_wait()
212 spin_unlock_irq(&ffs->ev.waitq.lock); __ffs_ep0_queue_wait()
243 if (ffs->ev.can_stall) { __ffs_ep0_stall()
328 spin_lock_irq(&ffs->ev.waitq.lock); ffs_ep0_write()
343 if (!(ffs->ev.setup.bRequestType & USB_DIR_IN)) { ffs_ep0_write()
344 spin_unlock_irq(&ffs->ev.waitq.lock); ffs_ep0_write()
350 len = min(len, (size_t)le16_to_cpu(ffs->ev.setup.wLength)); ffs_ep0_write()
352 spin_unlock_irq(&ffs->ev.waitq.lock); ffs_ep0_write()
360 spin_lock_irq(&ffs->ev.waitq.lock); ffs_ep0_write()
378 spin_unlock_irq(&ffs->ev.waitq.lock); ffs_ep0_write()
395 /* Called with ffs->ev.waitq.lock and ffs->mutex held, both released on exit. */ __ffs_ep0_read_events()
400 * n cannot be bigger than ffs->ev.count, which cannot be bigger than __ffs_ep0_read_events()
401 * size of ffs->ev.types array (which is four) so that's how much space __ffs_ep0_read_events()
404 struct usb_functionfs_event events[ARRAY_SIZE(ffs->ev.types)]; __ffs_ep0_read_events()
411 events[i].type = ffs->ev.types[i]; __ffs_ep0_read_events()
413 events[i].u.setup = ffs->ev.setup; __ffs_ep0_read_events()
418 ffs->ev.count -= n; __ffs_ep0_read_events()
419 if (ffs->ev.count) __ffs_ep0_read_events()
420 memmove(ffs->ev.types, ffs->ev.types + n, __ffs_ep0_read_events()
421 ffs->ev.count * sizeof *ffs->ev.types); __ffs_ep0_read_events()
423 spin_unlock_irq(&ffs->ev.waitq.lock); __ffs_ep0_read_events()
458 spin_lock_irq(&ffs->ev.waitq.lock); ffs_ep0_read()
472 if ((file->f_flags & O_NONBLOCK) && !ffs->ev.count) { ffs_ep0_read()
477 if (wait_event_interruptible_exclusive_locked_irq(ffs->ev.waitq, ffs_ep0_read()
478 ffs->ev.count)) { ffs_ep0_read()
484 min(n, (size_t)ffs->ev.count)); ffs_ep0_read()
487 if (ffs->ev.setup.bRequestType & USB_DIR_IN) { ffs_ep0_read()
488 spin_unlock_irq(&ffs->ev.waitq.lock); ffs_ep0_read()
493 len = min(len, (size_t)le16_to_cpu(ffs->ev.setup.wLength)); ffs_ep0_read()
495 spin_unlock_irq(&ffs->ev.waitq.lock); ffs_ep0_read()
505 spin_lock_irq(&ffs->ev.waitq.lock); ffs_ep0_read()
525 spin_unlock_irq(&ffs->ev.waitq.lock); ffs_ep0_read()
584 poll_wait(file, &ffs->ev.waitq, wait); ffs_ep0_poll()
599 if (ffs->ev.count) ffs_ep0_poll()
1406 BUG_ON(waitqueue_active(&ffs->ev.waitq) || ffs_data_put()
1453 init_waitqueue_head(&ffs->ev.waitq); ffs_data_new()
1457 ffs->ev.can_stall = 1; ffs_data_new()
1502 ffs->ev.count = 0; ffs_data_reset()
2391 * evens on ffs->ev.types queue. This is important because the queue __ffs_event_add()
2422 u8 *ev = ffs->ev.types, *out = ev; __ffs_event_add() local
2423 unsigned n = ffs->ev.count; __ffs_event_add()
2424 for (; n; --n, ++ev) __ffs_event_add()
2425 if ((*ev == rem_type1 || *ev == rem_type2) == neg) __ffs_event_add()
2426 *out++ = *ev; __ffs_event_add()
2428 pr_vdebug("purging event %d\n", *ev); __ffs_event_add()
2429 ffs->ev.count = out - ffs->ev.types; __ffs_event_add()
2433 ffs->ev.types[ffs->ev.count++] = type; __ffs_event_add()
2434 wake_up_locked(&ffs->ev.waitq); __ffs_event_add()
2443 spin_lock_irqsave(&ffs->ev.waitq.lock, flags); ffs_event_add()
2445 spin_unlock_irqrestore(&ffs->ev.waitq.lock, flags); ffs_event_add()
3007 spin_lock_irqsave(&ffs->ev.waitq.lock, flags); ffs_func_setup()
3008 ffs->ev.setup = *creq; ffs_func_setup()
3009 ffs->ev.setup.wIndex = cpu_to_le16(ret); ffs_func_setup()
3011 spin_unlock_irqrestore(&ffs->ev.waitq.lock, flags); ffs_func_setup()
H A Du_fs.h189 * + FFS_NO_SETUP -> FFS_SETUP_PENDING -- P: ev.waitq.lock
191 * + FFS_SETUP_PENDING -> FFS_NO_SETUP -- P: ev.waitq.lock
193 * + FFS_SETUP_PENDING -> FFS_SETUP_CANCELLED -- P: ev.waitq.lock
210 } ev; /* the whole structure, P: ev.waitq.lock */ member in struct:ffs_data
/linux-4.1.27/arch/s390/kernel/
H A Dperf_cpum_cf.c328 u64 ev; __hw_perf_event_init() local
337 ev = attr->config; __hw_perf_event_init()
341 ev = attr->config; __hw_perf_event_init()
344 if (ev >= ARRAY_SIZE(cpumf_generic_events_user)) __hw_perf_event_init()
346 ev = cpumf_generic_events_user[ev]; __hw_perf_event_init()
354 if (ev >= ARRAY_SIZE(cpumf_generic_events_basic)) __hw_perf_event_init()
356 ev = cpumf_generic_events_basic[ev]; __hw_perf_event_init()
364 if (ev == -1) __hw_perf_event_init()
367 if (ev >= PERF_CPUM_CF_MAX_CTR) __hw_perf_event_init()
375 hwc->config = ev; __hw_perf_event_init()
376 hwc->config_base = get_counter_set(ev); __hw_perf_event_init()
/linux-4.1.27/drivers/media/usb/dvb-usb/
H A Dtechnisat-usb2.c599 struct ir_raw_event ev; technisat_usb2_get_ir() local
642 ev.pulse = 0; technisat_usb2_get_ir()
644 ev.pulse = !ev.pulse; technisat_usb2_get_ir()
645 ev.duration = (*b * FIRMWARE_CLOCK_DIVISOR * FIRMWARE_CLOCK_TICK) / 1000; technisat_usb2_get_ir()
646 ir_raw_event_store(d->rc_dev, &ev); technisat_usb2_get_ir()
650 ev.pulse = 0; technisat_usb2_get_ir()
651 ev.duration = 888888*2; technisat_usb2_get_ir()
652 ir_raw_event_store(d->rc_dev, &ev); technisat_usb2_get_ir()
/linux-4.1.27/drivers/isdn/pcbit/
H A Dedss1.c145 unsigned short ev; member in struct:isdn_event_desc
167 char *strisdnevent(ushort ev) strisdnevent() argument
171 for (entry = isdn_event_table; entry->ev; entry++) strisdnevent()
172 if (entry->ev == ev) strisdnevent()
H A Dedss1.h97 char *strisdnevent(ushort ev);
H A Dpcbit.h175 unsigned short i, unsigned short ev, unsigned short f);
/linux-4.1.27/arch/sh/kernel/
H A Dperf_event.c97 int ev; hw_perf_cache_event() local
112 ev = (*sh_pmu->cache_events)[type][op][result]; hw_perf_cache_event()
113 if (ev == 0) hw_perf_cache_event()
115 if (ev == -1) hw_perf_cache_event()
117 *evp = ev; hw_perf_cache_event()
/linux-4.1.27/drivers/net/ethernet/toshiba/
H A Dps3_gelic_wireless.c576 char *ev, gelic_wl_translate_scan()
593 ev = iwe_stream_add_event(info, ev, stop, &iwe, IW_EV_ADDR_LEN); gelic_wl_translate_scan()
599 ev = iwe_stream_add_point(info, ev, stop, &iwe, scan->essid); gelic_wl_translate_scan()
606 ev = iwe_stream_add_event(info, ev, stop, &iwe, IW_EV_FREQ_LEN); gelic_wl_translate_scan()
612 tmp = ev + iwe_stream_lcp_len(info); gelic_wl_translate_scan()
625 tmp = iwe_stream_add_value(info, ev, tmp, stop, &iwe, gelic_wl_translate_scan()
630 tmp = iwe_stream_add_value(info, ev, tmp, stop, &iwe, gelic_wl_translate_scan()
634 if (iwe_stream_lcp_len(info) < (tmp - ev)) gelic_wl_translate_scan()
635 ev = tmp; gelic_wl_translate_scan()
644 ev = iwe_stream_add_point(info, ev, stop, &iwe, scan->essid); gelic_wl_translate_scan()
654 ev = iwe_stream_add_event(info, ev, stop, &iwe, IW_EV_UINT_LEN); gelic_wl_translate_scan()
664 ev = iwe_stream_add_event(info, ev, stop, &iwe, IW_EV_QUAL_LEN); gelic_wl_translate_scan()
674 ev = iwe_stream_add_point(info, ev, stop, &iwe, buf); gelic_wl_translate_scan()
689 ev = iwe_stream_add_point(info, ev, stop, &iwe, buf); gelic_wl_translate_scan()
697 ev = iwe_stream_add_point(info, ev, stop, &iwe, buf); gelic_wl_translate_scan()
702 return ev; gelic_wl_translate_scan()
712 char *ev = extra; gelic_wl_get_scan() local
713 char *stop = ev + wrqu->data.length; gelic_wl_get_scan()
739 ev = gelic_wl_translate_scan(netdev, info, gelic_wl_get_scan()
740 ev, stop, gelic_wl_get_scan()
745 if (stop - ev <= IW_EV_ADDR_LEN) { gelic_wl_get_scan()
751 wrqu->data.length = ev - extra; gelic_wl_get_scan()
574 gelic_wl_translate_scan(struct net_device *netdev, struct iw_request_info *info, char *ev, char *stop, struct gelic_wl_scan_info *network) gelic_wl_translate_scan() argument
/linux-4.1.27/tools/perf/util/
H A Dheader.c2570 union perf_event *ev; perf_event__synthesize_attr() local
2579 ev = malloc(size); perf_event__synthesize_attr()
2581 if (ev == NULL) perf_event__synthesize_attr()
2584 ev->attr.attr = *attr; perf_event__synthesize_attr()
2585 memcpy(ev->attr.id, id, ids * sizeof(u64)); perf_event__synthesize_attr()
2587 ev->attr.header.type = PERF_RECORD_HEADER_ATTR; perf_event__synthesize_attr()
2588 ev->attr.header.size = (u16)size; perf_event__synthesize_attr()
2590 if (ev->attr.header.size == size) perf_event__synthesize_attr()
2591 err = process(tool, ev, NULL, NULL); perf_event__synthesize_attr()
2595 free(ev); perf_event__synthesize_attr()
2663 union perf_event ev; perf_event__synthesize_tracing_data() local
2683 memset(&ev, 0, sizeof(ev)); perf_event__synthesize_tracing_data()
2685 ev.tracing_data.header.type = PERF_RECORD_HEADER_TRACING_DATA; perf_event__synthesize_tracing_data()
2689 ev.tracing_data.header.size = sizeof(ev.tracing_data); perf_event__synthesize_tracing_data()
2690 ev.tracing_data.size = aligned_size; perf_event__synthesize_tracing_data()
2692 process(tool, &ev, NULL, NULL); perf_event__synthesize_tracing_data()
2750 union perf_event ev; perf_event__synthesize_build_id() local
2757 memset(&ev, 0, sizeof(ev)); perf_event__synthesize_build_id()
2761 memcpy(&ev.build_id.build_id, pos->build_id, sizeof(pos->build_id)); perf_event__synthesize_build_id()
2762 ev.build_id.header.type = PERF_RECORD_HEADER_BUILD_ID; perf_event__synthesize_build_id()
2763 ev.build_id.header.misc = misc; perf_event__synthesize_build_id()
2764 ev.build_id.pid = machine->pid; perf_event__synthesize_build_id()
2765 ev.build_id.header.size = sizeof(ev.build_id) + len; perf_event__synthesize_build_id()
2766 memcpy(&ev.build_id.filename, pos->long_name, pos->long_name_len); perf_event__synthesize_build_id()
2768 err = process(tool, &ev, NULL, machine); perf_event__synthesize_build_id()
H A Dsession.c1755 union perf_event *ev; perf_event__synthesize_id_index() local
1770 ev = zalloc(sz); perf_event__synthesize_id_index()
1771 if (!ev) perf_event__synthesize_id_index()
1774 ev->id_index.header.type = PERF_RECORD_ID_INDEX; perf_event__synthesize_id_index()
1775 ev->id_index.header.size = sz; perf_event__synthesize_id_index()
1776 ev->id_index.nr = n; perf_event__synthesize_id_index()
1786 err = process(tool, ev, NULL, machine); evlist__for_each()
1793 e = &ev->id_index.entries[i++]; evlist__for_each()
1799 free(ev); evlist__for_each()
1810 ev->id_index.header.size = sz;
1811 ev->id_index.nr = nr;
1813 err = process(tool, ev, NULL, machine);
1815 free(ev);
/linux-4.1.27/arch/x86/oprofile/
H A Dop_model_p4.c512 struct p4_event_binding *ev = NULL; pmc_setup_one_p4_counter() local
528 ev = &(p4_events[counter_config[ctr].event - 1]); pmc_setup_one_p4_counter()
531 if (ev->bindings[i].virt_counter & counter_bit) { pmc_setup_one_p4_counter()
534 rdmsr(ev->bindings[i].escr_address, escr, high); pmc_setup_one_p4_counter()
543 ESCR_SET_EVENT_SELECT(escr, ev->event_select); pmc_setup_one_p4_counter()
545 wrmsr(ev->bindings[i].escr_address, escr, high); pmc_setup_one_p4_counter()
552 CCCR_SET_ESCR_SELECT(cccr, ev->escr_select); pmc_setup_one_p4_counter()
/linux-4.1.27/drivers/staging/rtl8192e/
H A Drtllib_crypt_tkip.c591 struct iw_michaelmicfailure ev; rtllib_michael_mic_failure() local
594 memset(&ev, 0, sizeof(ev)); rtllib_michael_mic_failure()
595 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; rtllib_michael_mic_failure()
597 ev.flags |= IW_MICFAILURE_GROUP; rtllib_michael_mic_failure()
599 ev.flags |= IW_MICFAILURE_PAIRWISE; rtllib_michael_mic_failure()
600 ev.src_addr.sa_family = ARPHRD_ETHER; rtllib_michael_mic_failure()
601 memcpy(ev.src_addr.sa_data, hdr->addr2, ETH_ALEN); rtllib_michael_mic_failure()
603 wrqu.data.length = sizeof(ev); rtllib_michael_mic_failure()
604 wireless_send_event(dev, IWEVMICHAELMICFAILURE, &wrqu, (char *) &ev); rtllib_michael_mic_failure()
H A Drtllib_wx.c264 char *ev = extra; rtllib_wx_get_scan() local
265 char *stop = ev + wrqu->data.length; rtllib_wx_get_scan()
275 if ((stop - ev) < 200) { rtllib_wx_get_scan()
281 ev = rtl819x_translate_scan(ieee, ev, stop, network, rtllib_wx_get_scan()
293 wrqu->data.length = ev - extra; rtllib_wx_get_scan()
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_crypt_tkip.c592 struct iw_michaelmicfailure ev; ieee80211_michael_mic_failure() local
595 memset(&ev, 0, sizeof(ev)); ieee80211_michael_mic_failure()
596 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; ieee80211_michael_mic_failure()
598 ev.flags |= IW_MICFAILURE_GROUP; ieee80211_michael_mic_failure()
600 ev.flags |= IW_MICFAILURE_PAIRWISE; ieee80211_michael_mic_failure()
601 ev.src_addr.sa_family = ARPHRD_ETHER; ieee80211_michael_mic_failure()
602 memcpy(ev.src_addr.sa_data, hdr->addr2, ETH_ALEN); ieee80211_michael_mic_failure()
604 wrqu.data.length = sizeof(ev); ieee80211_michael_mic_failure()
605 wireless_send_event(dev, IWEVMICHAELMICFAILURE, &wrqu, (char *) &ev); ieee80211_michael_mic_failure()
H A Dieee80211_wx.c249 char *ev = extra; ieee80211_wx_get_scan() local
250 // char *stop = ev + IW_SCAN_MAX_DATA; ieee80211_wx_get_scan()
251 char *stop = ev + wrqu->data.length;//IW_SCAN_MAX_DATA; ieee80211_wx_get_scan()
252 //char *stop = ev + IW_SCAN_MAX_DATA; ieee80211_wx_get_scan()
261 if((stop-ev)<200) ieee80211_wx_get_scan()
268 ev = rtl819x_translate_scan(ieee, ev, stop, network, info); ieee80211_wx_get_scan()
281 wrqu->data.length = ev - extra; ieee80211_wx_get_scan()
/linux-4.1.27/drivers/infiniband/hw/ipath/
H A Dipath_ruc.c232 struct ib_event ev; ipath_get_rwqe() local
236 ev.device = qp->ibqp.device; ipath_get_rwqe()
237 ev.element.srq = qp->ibqp.srq; ipath_get_rwqe()
238 ev.event = IB_EVENT_SRQ_LIMIT_REACHED; ipath_get_rwqe()
239 handler(&ev, srq->ibsrq.srq_context); ipath_get_rwqe()
499 struct ib_event ev; ipath_ruc_loopback() local
501 ev.device = sqp->ibqp.device; ipath_ruc_loopback()
502 ev.element.qp = &sqp->ibqp; ipath_ruc_loopback()
503 ev.event = IB_EVENT_QP_LAST_WQE_REACHED; ipath_ruc_loopback()
504 sqp->ibqp.event_handler(&ev, sqp->ibqp.qp_context); ipath_ruc_loopback()
H A Dipath_cq.c71 struct ib_event ev; ipath_cq_enter() local
73 ev.device = cq->ibcq.device; ipath_cq_enter()
74 ev.element.cq = &cq->ibcq; ipath_cq_enter()
75 ev.event = IB_EVENT_CQ_ERR; ipath_cq_enter()
76 cq->ibcq.event_handler(&ev, cq->ibcq.cq_context); ipath_cq_enter()
H A Dipath_ud.c165 struct ib_event ev; ipath_ud_loopback() local
169 ev.device = qp->ibqp.device; ipath_ud_loopback()
170 ev.element.srq = qp->ibqp.srq; ipath_ud_loopback()
171 ev.event = IB_EVENT_SRQ_LIMIT_REACHED; ipath_ud_loopback()
172 handler(&ev, srq->ibsrq.srq_context); ipath_ud_loopback()
H A Dipath_qp.c603 struct ib_event ev; ipath_modify_qp() local
605 ev.device = qp->ibqp.device; ipath_modify_qp()
606 ev.element.qp = &qp->ibqp; ipath_modify_qp()
607 ev.event = IB_EVENT_QP_LAST_WQE_REACHED; ipath_modify_qp()
608 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); ipath_modify_qp()
/linux-4.1.27/include/scsi/
H A Dlibsas.h247 struct sas_discovery_event *ev = container_of(work, typeof(*ev), work.work); to_sas_discovery_event() local
249 return ev; to_sas_discovery_event()
307 struct asd_sas_event *ev = container_of(work, typeof(*ev), work.work); to_asd_sas_event() local
309 return ev; to_asd_sas_event()
372 struct sas_ha_event *ev = container_of(work, typeof(*ev), work.work); to_sas_ha_event() local
374 return ev; to_sas_ha_event()
706 int sas_discover_event(struct asd_sas_port *, enum discover_event ev);
/linux-4.1.27/drivers/watchdog/
H A Deurotechwdt.c76 static char *ev = "int"; variable
104 module_param(ev, charp, 0);
105 MODULE_PARM_DESC(ev, "Eurotech WDT event type (default is `int')");
144 !strcmp("int", ev) ? WDT_EVENT_INT : WDT_EVENT_REBOOT); eurwdt_activate_timer()
458 io, irq, (!strcmp("int", ev) ? "int" : "reboot")); eurwdt_init()
/linux-4.1.27/arch/blackfin/kernel/
H A Dperf_event.c239 int ev; hw_perf_cache_event() local
251 ev = cache_events[type][op][result]; hw_perf_cache_event()
252 if (ev == 0) hw_perf_cache_event()
254 if (ev == -1) hw_perf_cache_event()
256 *evp = ev; hw_perf_cache_event()
/linux-4.1.27/net/ipv4/
H A Dtcp_dctcp.c242 static void dctcp_update_ack_reserved(struct sock *sk, enum tcp_ca_event ev) dctcp_update_ack_reserved() argument
246 switch (ev) { dctcp_update_ack_reserved()
261 static void dctcp_cwnd_event(struct sock *sk, enum tcp_ca_event ev) dctcp_cwnd_event() argument
263 switch (ev) { dctcp_cwnd_event()
272 dctcp_update_ack_reserved(sk, ev); dctcp_cwnd_event()
/linux-4.1.27/drivers/input/
H A Devdev.c71 struct input_event *ev; __evdev_flush_queue() local
82 ev = &client->buffer[i]; __evdev_flush_queue()
83 is_report = ev->type == EV_SYN && ev->code == SYN_REPORT; __evdev_flush_queue()
85 if (ev->type == type) { __evdev_flush_queue()
93 client->buffer[head].time = ev->time; __evdev_flush_queue()
94 client->buffer[head].type = ev->type; __evdev_flush_queue()
95 client->buffer[head].code = ev->code; __evdev_flush_queue()
96 client->buffer[head].value = ev->value; __evdev_flush_queue()
113 struct input_event ev; __evdev_queue_syn_dropped() local
122 ev.time = ktime_to_timeval(time); __evdev_queue_syn_dropped()
123 ev.type = EV_SYN; __evdev_queue_syn_dropped()
124 ev.code = SYN_DROPPED; __evdev_queue_syn_dropped()
125 ev.value = 0; __evdev_queue_syn_dropped()
127 client->buffer[client->head++] = ev; __evdev_queue_syn_dropped()
/linux-4.1.27/drivers/media/usb/uvc/
H A Duvc_ctrl.c1196 struct v4l2_event *ev, uvc_ctrl_fill_event()
1205 memset(ev->reserved, 0, sizeof(ev->reserved)); uvc_ctrl_fill_event()
1206 ev->type = V4L2_EVENT_CTRL; uvc_ctrl_fill_event()
1207 ev->id = v4l2_ctrl.id; uvc_ctrl_fill_event()
1208 ev->u.ctrl.value = value; uvc_ctrl_fill_event()
1209 ev->u.ctrl.changes = changes; uvc_ctrl_fill_event()
1210 ev->u.ctrl.type = v4l2_ctrl.type; uvc_ctrl_fill_event()
1211 ev->u.ctrl.flags = v4l2_ctrl.flags; uvc_ctrl_fill_event()
1212 ev->u.ctrl.minimum = v4l2_ctrl.minimum; uvc_ctrl_fill_event()
1213 ev->u.ctrl.maximum = v4l2_ctrl.maximum; uvc_ctrl_fill_event()
1214 ev->u.ctrl.step = v4l2_ctrl.step; uvc_ctrl_fill_event()
1215 ev->u.ctrl.default_value = v4l2_ctrl.default_value; uvc_ctrl_fill_event()
1223 struct v4l2_event ev; uvc_ctrl_send_event() local
1228 uvc_ctrl_fill_event(handle->chain, &ev, ctrl, mapping, value, changes); uvc_ctrl_send_event()
1234 v4l2_event_queue_fh(sev->fh, &ev); uvc_ctrl_send_event()
1324 struct v4l2_event ev; uvc_ctrl_add_event() local
1331 uvc_ctrl_fill_event(handle->chain, &ev, ctrl, mapping, val, uvc_ctrl_add_event()
1336 v4l2_event_queue_fh(sev->fh, &ev); uvc_ctrl_add_event()
1195 uvc_ctrl_fill_event(struct uvc_video_chain *chain, struct v4l2_event *ev, struct uvc_control *ctrl, struct uvc_control_mapping *mapping, s32 value, u32 changes) uvc_ctrl_fill_event() argument
/linux-4.1.27/drivers/dma/
H A Dpl330.c371 int ev; member in struct:pl330_thread
745 static inline u32 _emit_SEV(unsigned dry_run, u8 buf[], u8 ev) _emit_SEV() argument
752 ev &= 0x1f; _emit_SEV()
753 ev <<= 3; _emit_SEV()
754 buf[1] = ev; _emit_SEV()
756 PL330_DBGCMD_DUMP(SZ_DMASEV, "\tDMASEV %u\n", ev >> 3); _emit_SEV()
812 static inline u32 _emit_WFE(unsigned dry_run, u8 buf[], u8 ev, _emit_WFE() argument
820 ev &= 0x1f; _emit_WFE()
821 ev <<= 3; _emit_WFE()
822 buf[1] = ev; _emit_WFE()
828 ev >> 3, invalidate ? ", I" : ""); _emit_WFE()
1019 writel(readl(regs + INTEN) & ~(1 << thrd->ev), regs + INTEN); _stop()
1073 writel(readl(regs + INTEN) | (1 << thrd->ev), regs + INTEN); _trigger()
1331 off += _emit_SEV(dry_run, &buf[off], thrd->ev); _setup_req()
1534 int id, ev, ret = 0; pl330_update() local
1573 for (ev = 0; ev < pl330->pcfg.num_events; ev++) { pl330_update()
1574 if (val & (1 << ev)) { /* Event occurred */ pl330_update()
1580 if (inten & (1 << ev)) pl330_update()
1581 writel(1 << ev, regs + INTCLR); pl330_update()
1585 id = pl330->events[ev]; pl330_update()
1632 int ev; _alloc_event() local
1634 for (ev = 0; ev < pl330->pcfg.num_events; ev++) _alloc_event()
1635 if (pl330->events[ev] == -1) { _alloc_event()
1636 pl330->events[ev] = thrd->id; _alloc_event()
1637 return ev; _alloc_event()
1668 thrd->ev = _alloc_event(thrd); pl330_request_channel()
1669 if (thrd->ev >= 0) { pl330_request_channel()
1687 static inline void _free_event(struct pl330_thread *thrd, int ev) _free_event() argument
1692 if (ev >= 0 && ev < pl330->pcfg.num_events _free_event()
1693 && pl330->events[ev] == thrd->id) _free_event()
1694 pl330->events[ev] = -1; _free_event()
1713 _free_event(thrd, thrd->ev); pl330_release_channel()
/linux-4.1.27/drivers/media/pci/cx88/
H A Dcx88-input.c532 struct ir_raw_event ev; cx88_ir_irq() local
547 init_ir_raw_event(&ev); cx88_ir_irq()
549 ev.pulse = samples & 0x80000000 ? false : true; cx88_ir_irq()
550 bits = min(todo, 32U - fls(ev.pulse ? samples : ~samples)); cx88_ir_irq()
551 ev.duration = (bits * (NSEC_PER_SEC / 1000)) / ir_samplerate; cx88_ir_irq()
552 ir_raw_event_store_with_filter(ir->dev, &ev); cx88_ir_irq()
/linux-4.1.27/drivers/staging/lustre/lustre/lov/
H A Dlov_obd.c116 enum obd_notify_event ev);
118 enum obd_notify_event ev, void *data);
355 enum obd_notify_event ev) lov_set_osc_active()
362 lov, uuid->uuid, ev); lov_set_osc_active()
373 if (ev == OBD_NOTIFY_ACTIVATE && tgt->ltd_exp == NULL && lov_set_osc_active()
395 if (ev == OBD_NOTIFY_DEACTIVATE || ev == OBD_NOTIFY_ACTIVATE) { lov_set_osc_active()
396 activate = (ev == OBD_NOTIFY_ACTIVATE) ? 1 : 0; lov_set_osc_active()
407 } else if (ev == OBD_NOTIFY_INACTIVE || ev == OBD_NOTIFY_ACTIVE) { lov_set_osc_active()
408 active = (ev == OBD_NOTIFY_ACTIVE) ? 1 : 0; lov_set_osc_active()
428 CERROR("Unknown event(%d) for uuid %s", ev, uuid->uuid); lov_set_osc_active()
437 enum obd_notify_event ev, void *data) lov_notify()
448 if (ev == OBD_NOTIFY_ACTIVE || ev == OBD_NOTIFY_INACTIVE || lov_notify()
449 ev == OBD_NOTIFY_ACTIVATE || ev == OBD_NOTIFY_DEACTIVATE) { lov_notify()
466 rc = lov_set_osc_active(obd, uuid, ev); lov_notify()
469 CERROR("event(%d) of %s failed: %d\n", ev, lov_notify()
479 rc = obd_notify_observer(obd, watched, ev, data); lov_notify()
487 is_sync = (ev == OBD_NOTIFY_SYNC) || lov_notify()
488 (ev == OBD_NOTIFY_SYNC_NONBLOCK); lov_notify()
501 ev, data); lov_notify()
354 lov_set_osc_active(struct obd_device *obd, struct obd_uuid *uuid, enum obd_notify_event ev) lov_set_osc_active() argument
436 lov_notify(struct obd_device *obd, struct obd_device *watched, enum obd_notify_event ev, void *data) lov_notify() argument
/linux-4.1.27/drivers/isdn/hisax/
H A Dfsm.c36 printk(KERN_ERR "FsmNew Error line %d st(%ld/%ld) ev(%ld/%ld)\n", FsmNew()
57 printk(KERN_ERR "FsmEvent Error st(%ld/%ld) ev(%d/%ld)\n", FsmEvent()
/linux-4.1.27/drivers/isdn/mISDN/
H A Dfsm.c42 "mISDN_FsmNew Error: %d st(%ld/%ld) ev(%ld/%ld)\n", mISDN_FsmNew()
66 "mISDN_FsmEvent Error st(%ld/%ld) ev(%d/%ld)\n", mISDN_FsmEvent()
/linux-4.1.27/include/net/sctp/
H A Dulpevent.h63 static inline struct sk_buff *sctp_event2skb(const struct sctp_ulpevent *ev) sctp_event2skb() argument
65 return container_of((void *)ev, struct sk_buff, cb); sctp_event2skb()
H A Dulpqueue.h61 int sctp_ulpq_tail_event(struct sctp_ulpq *, struct sctp_ulpevent *ev);
/linux-4.1.27/include/uapi/linux/
H A Dpps.h84 #define PPS_OFFSETASSERT 0x10 /* apply compensation for assert ev. */
85 #define PPS_OFFSETCLEAR 0x20 /* apply compensation for clear ev. */
H A Duhid.h174 * that type and can be accessed via ev->u.XYZ accordingly.
/linux-4.1.27/sound/drivers/opl4/
H A Dopl4_seq.c111 static int snd_opl4_seq_event_input(struct snd_seq_event *ev, int direct, snd_opl4_seq_event_input() argument
116 snd_midi_process_event(&opl4_ops, ev, opl4->chset); snd_opl4_seq_event_input()
/linux-4.1.27/include/linux/
H A DmISDNhw.h82 #define schedule_event(s, ev) do { \
83 test_and_set_bit(ev, &((s)->Flags)); \
/linux-4.1.27/drivers/iio/
H A Dindustrialio-event.c58 struct iio_event_data ev; iio_push_event() local
64 ev.id = ev_code; iio_push_event()
65 ev.timestamp = timestamp; iio_push_event()
67 copied = kfifo_put(&ev_int->det_events, ev); iio_push_event()
/linux-4.1.27/drivers/pps/
H A Dpps.c147 unsigned int ev; pps_cdev_ioctl() local
155 ev = pps->last_ev; pps_cdev_ioctl()
160 ev != pps->last_ev); pps_cdev_ioctl()
173 ev != pps->last_ev, pps_cdev_ioctl()
/linux-4.1.27/net/sctp/
H A Dchunk.c92 struct sctp_ulpevent *ev; sctp_datamsg_destroy() local
124 ev = sctp_ulpevent_make_send_failed(asoc, chunk, sent, sctp_datamsg_destroy()
126 if (ev) sctp_datamsg_destroy()
127 sctp_ulpq_tail_event(&asoc->ulpq, ev); sctp_datamsg_destroy()
H A Dsm_sideeffect.c893 struct sctp_ulpevent *ev; sctp_cmd_process_operr() local
898 ev = sctp_ulpevent_make_remote_error(asoc, chunk, 0, sctp_cmd_process_operr()
900 if (!ev) sctp_cmd_process_operr()
903 sctp_ulpq_tail_event(&asoc->ulpq, ev); sctp_cmd_process_operr()
980 struct sctp_ulpevent *ev; sctp_cmd_assoc_change() local
982 ev = sctp_ulpevent_make_assoc_change(asoc, 0, state, 0, sctp_cmd_assoc_change()
986 if (ev) sctp_cmd_assoc_change()
987 sctp_ulpq_tail_event(&asoc->ulpq, ev); sctp_cmd_assoc_change()
994 struct sctp_ulpevent *ev; sctp_cmd_adaptation_ind() local
996 ev = sctp_ulpevent_make_adaptation_indication(asoc, GFP_ATOMIC); sctp_cmd_adaptation_ind()
998 if (ev) sctp_cmd_adaptation_ind()
999 sctp_ulpq_tail_event(&asoc->ulpq, ev); sctp_cmd_adaptation_ind()
H A Dsm_statefuns.c225 struct sctp_ulpevent *ev; sctp_sf_do_4_C() local
250 ev = sctp_ulpevent_make_assoc_change(asoc, 0, SCTP_SHUTDOWN_COMP, sctp_sf_do_4_C()
252 if (ev) sctp_sf_do_4_C()
254 SCTP_ULPEVENT(ev)); sctp_sf_do_4_C()
659 struct sctp_ulpevent *ev, *ai_ev = NULL; sctp_sf_do_5_1D_ce() local
796 ev = sctp_ulpevent_make_assoc_change(new_asoc, 0, SCTP_COMM_UP, 0, sctp_sf_do_5_1D_ce()
800 if (!ev) sctp_sf_do_5_1D_ce()
835 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, SCTP_ULPEVENT(ev)); sctp_sf_do_5_1D_ce()
845 sctp_ulpevent_free(ev); sctp_sf_do_5_1D_ce()
882 struct sctp_ulpevent *ev; sctp_sf_do_5_1E_ca() local
923 ev = sctp_ulpevent_make_assoc_change(asoc, 0, SCTP_COMM_UP, sctp_sf_do_5_1E_ca()
928 if (!ev) sctp_sf_do_5_1E_ca()
931 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, SCTP_ULPEVENT(ev)); sctp_sf_do_5_1E_ca()
939 ev = sctp_ulpevent_make_adaptation_indication(asoc, GFP_ATOMIC); sctp_sf_do_5_1E_ca()
940 if (!ev) sctp_sf_do_5_1E_ca()
944 SCTP_ULPEVENT(ev)); sctp_sf_do_5_1E_ca()
1706 struct sctp_ulpevent *ev; sctp_sf_do_dupcook_a() local
1771 ev = sctp_ulpevent_make_assoc_change(asoc, 0, SCTP_RESTART, 0, sctp_sf_do_dupcook_a()
1775 if (!ev) sctp_sf_do_dupcook_a()
1780 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, SCTP_ULPEVENT(ev)); sctp_sf_do_dupcook_a()
1913 struct sctp_ulpevent *ev = NULL, *ai_ev = NULL; sctp_sf_do_dupcook_d() local
1940 ev = sctp_ulpevent_make_assoc_change(asoc, 0, sctp_sf_do_dupcook_d()
1945 if (!ev) sctp_sf_do_dupcook_d()
1968 if (ev) sctp_sf_do_dupcook_d()
1970 SCTP_ULPEVENT(ev)); sctp_sf_do_dupcook_d()
1980 if (ev) sctp_sf_do_dupcook_d()
1981 sctp_ulpevent_free(ev); sctp_sf_do_dupcook_d()
2634 struct sctp_ulpevent *ev; sctp_sf_do_9_2_shutdown() local
2670 ev = sctp_ulpevent_make_shutdown_event(asoc, 0, GFP_ATOMIC); sctp_sf_do_9_2_shutdown()
2671 if (!ev) { sctp_sf_do_9_2_shutdown()
2675 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, SCTP_ULPEVENT(ev)); sctp_sf_do_9_2_shutdown()
3331 struct sctp_ulpevent *ev; sctp_sf_do_9_2_final() local
3345 ev = sctp_ulpevent_make_assoc_change(asoc, 0, SCTP_SHUTDOWN_COMP, sctp_sf_do_9_2_final()
3347 if (!ev) sctp_sf_do_9_2_final()
3358 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, SCTP_ULPEVENT(ev)); sctp_sf_do_9_2_final()
3380 sctp_ulpevent_free(ev); sctp_sf_do_9_2_final()
4121 struct sctp_ulpevent *ev; sctp_sf_eat_auth() local
4123 ev = sctp_ulpevent_make_authkey(asoc, ntohs(auth_hdr->shkey_id), sctp_sf_eat_auth()
4126 if (!ev) sctp_sf_eat_auth()
4130 SCTP_ULPEVENT(ev)); sctp_sf_eat_auth()
H A Dulpqueue.c1126 struct sctp_ulpevent *ev = NULL; sctp_ulpq_abort_pd() local
1135 ev = sctp_ulpevent_make_pdapi(ulpq->asoc, sctp_ulpq_abort_pd()
1138 if (ev) sctp_ulpq_abort_pd()
1139 __skb_queue_tail(&sk->sk_receive_queue, sctp_event2skb(ev)); sctp_ulpq_abort_pd()
1142 if (sctp_ulpq_clear_pd(ulpq) || ev) sctp_ulpq_abort_pd()
/linux-4.1.27/sound/drivers/opl3/
H A Dopl3_oss.c57 static int snd_opl3_oss_event_input(struct snd_seq_event *ev, int direct, snd_opl3_oss_event_input() argument
62 if (ev->type != SNDRV_SEQ_EVENT_OSS) snd_opl3_oss_event_input()
63 snd_midi_process_event(&opl3_ops, ev, opl3->oss_chset); snd_opl3_oss_event_input()
H A Dopl3_seq.c155 static int snd_opl3_synth_event_input(struct snd_seq_event * ev, int direct, snd_opl3_synth_event_input() argument
160 snd_midi_process_event(&opl3_ops, ev, opl3->chset); snd_opl3_synth_event_input()
/linux-4.1.27/drivers/misc/vmw_vmci/
H A Dvmci_context.c249 struct vmci_event_ctx ev; ctx_fire_notification() local
251 ev.msg.hdr.dst = vmci_handle_arr_get_entry(subscriber_array, i); ctx_fire_notification()
252 ev.msg.hdr.src = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID, ctx_fire_notification()
254 ev.msg.hdr.payload_size = sizeof(ev) - sizeof(ev.msg.hdr); ctx_fire_notification()
255 ev.msg.event_data.event = VMCI_EVENT_CTX_REMOVED; ctx_fire_notification()
256 ev.payload.context_id = context_id; ctx_fire_notification()
259 &ev.msg.hdr, false); ctx_fire_notification()
262 ev.msg.event_data.event, ctx_fire_notification()
263 ev.msg.hdr.dst.context); ctx_fire_notification()
H A Dvmci_queue_pair.c942 struct vmci_event_qp ev; qp_notify_peer_local() local
944 ev.msg.hdr.dst = vmci_make_handle(context_id, VMCI_EVENT_HANDLER); qp_notify_peer_local()
945 ev.msg.hdr.src = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID, qp_notify_peer_local()
947 ev.msg.hdr.payload_size = sizeof(ev) - sizeof(ev.msg.hdr); qp_notify_peer_local()
948 ev.msg.event_data.event = qp_notify_peer_local()
950 ev.payload.peer_id = context_id; qp_notify_peer_local()
951 ev.payload.handle = handle; qp_notify_peer_local()
953 return vmci_event_dispatch(&ev.msg.hdr); qp_notify_peer_local()
1541 struct vmci_event_qp ev; qp_notify_peer() local
1555 ev.msg.hdr.dst = vmci_make_handle(peer_id, VMCI_EVENT_HANDLER); qp_notify_peer()
1556 ev.msg.hdr.src = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID, qp_notify_peer()
1558 ev.msg.hdr.payload_size = sizeof(ev) - sizeof(ev.msg.hdr); qp_notify_peer()
1559 ev.msg.event_data.event = attach ? qp_notify_peer()
1561 ev.payload.handle = handle; qp_notify_peer()
1562 ev.payload.peer_id = my_id; qp_notify_peer()
1565 &ev.msg.hdr, false); qp_notify_peer()
/linux-4.1.27/drivers/net/wireless/hostap/
H A Dhostap_hw.c2483 u16 ev; hostap_bap_tasklet() local
2494 ev = HFA384X_INW(HFA384X_EVSTAT_OFF); hostap_bap_tasklet()
2495 if (ev == 0xffff || !(ev & HFA384X_BAP0_EVENTS)) hostap_bap_tasklet()
2497 if (ev & HFA384X_EV_RX) hostap_bap_tasklet()
2499 if (ev & HFA384X_EV_INFO) hostap_bap_tasklet()
2501 if (ev & HFA384X_EV_TX) hostap_bap_tasklet()
2503 if (ev & HFA384X_EV_TXEXC) hostap_bap_tasklet()
2615 u16 ev; prism2_interrupt() local
2645 ev = HFA384X_INW(HFA384X_EVSTAT_OFF); prism2_interrupt()
2646 if (ev == 0xffff) { prism2_interrupt()
2650 printk(KERN_DEBUG "%s: prism2_interrupt: ev=0xffff\n", prism2_interrupt()
2655 ev &= HFA384X_INW(HFA384X_INTEN_OFF); prism2_interrupt()
2656 if (ev == 0) prism2_interrupt()
2659 if (ev & HFA384X_EV_CMD) { prism2_interrupt()
2669 ev = HFA384X_INW(HFA384X_EVSTAT_OFF); prism2_interrupt()
2670 if (ev & HFA384X_EV_CMD) prism2_interrupt()
2672 if ((ev & HFA384X_EVENT_MASK) == 0) prism2_interrupt()
2674 if (local->dev_enabled && (ev & ~HFA384X_EV_TICK) && prism2_interrupt()
2679 dev->name, ev, prism2_interrupt()
2687 HFA384X_OUTW(ev, HFA384X_EVACK_OFF); prism2_interrupt()
2691 if (ev & HFA384X_EV_TICK) { prism2_interrupt()
2696 if (ev & HFA384X_EV_ALLOC) { prism2_interrupt()
2704 if (ev & HFA384X_BAP0_EVENTS) { prism2_interrupt()
2710 if (ev & HFA384X_EV_WTERR) { prism2_interrupt()
2716 if (ev & HFA384X_EV_INFDROP) { prism2_interrupt()
/linux-4.1.27/drivers/net/wireless/ipw2x00/
H A Dlibipw_wx.c272 char *ev = extra; libipw_wx_get_scan() local
273 char *stop = ev + wrqu->data.length; libipw_wx_get_scan()
282 if (stop - ev < SCAN_ITEM_SIZE) { libipw_wx_get_scan()
289 ev = libipw_translate_scan(ieee, ev, stop, network, libipw_wx_get_scan()
302 wrqu->data.length = ev - extra; libipw_wx_get_scan()
/linux-4.1.27/drivers/net/ethernet/sfc/
H A Dmcdi_mon.c106 void efx_mcdi_sensor_event(struct efx_nic *efx, efx_qword_t *ev) efx_mcdi_sensor_event() argument
112 type = EFX_QWORD_FIELD(*ev, MCDI_EVENT_SENSOREVT_MONITOR); efx_mcdi_sensor_event()
113 state = EFX_QWORD_FIELD(*ev, MCDI_EVENT_SENSOREVT_STATE); efx_mcdi_sensor_event()
114 value = EFX_QWORD_FIELD(*ev, MCDI_EVENT_SENSOREVT_VALUE); efx_mcdi_sensor_event()
H A Dmcdi_port.c838 void efx_mcdi_process_link_change(struct efx_nic *efx, efx_qword_t *ev) efx_mcdi_process_link_change() argument
842 speed = EFX_QWORD_FIELD(*ev, MCDI_EVENT_LINKCHANGE_SPEED); efx_mcdi_process_link_change()
846 flags = EFX_QWORD_FIELD(*ev, MCDI_EVENT_LINKCHANGE_LINK_FLAGS); efx_mcdi_process_link_change()
847 fcntl = EFX_QWORD_FIELD(*ev, MCDI_EVENT_LINKCHANGE_FCNTL); efx_mcdi_process_link_change()
848 lpa = EFX_QWORD_FIELD(*ev, MCDI_EVENT_LINKCHANGE_LP_CAP); efx_mcdi_process_link_change()
H A Dmcdi.h172 void efx_mcdi_sensor_event(struct efx_nic *efx, efx_qword_t *ev);
332 void efx_mcdi_process_link_change(struct efx_nic *efx, efx_qword_t *ev);
/linux-4.1.27/sound/core/
H A Dcontrol.c159 struct snd_kctl_event *ev; snd_ctl_notify() local
171 list_for_each_entry(ev, &ctl->events, list) { snd_ctl_notify()
172 if (ev->id.numid == id->numid) { snd_ctl_notify()
173 ev->mask |= mask; snd_ctl_notify()
177 ev = kzalloc(sizeof(*ev), GFP_ATOMIC); snd_ctl_notify()
178 if (ev) { snd_ctl_notify()
179 ev->id = *id; snd_ctl_notify()
180 ev->mask = mask; snd_ctl_notify()
181 list_add_tail(&ev->list, &ctl->events); snd_ctl_notify()
1542 struct snd_ctl_event ev; snd_ctl_read() local
1563 ev.type = SNDRV_CTL_EVENT_ELEM; snd_ctl_read()
1564 ev.data.elem.mask = kev->mask; snd_ctl_read()
1565 ev.data.elem.id = kev->id; snd_ctl_read()
1569 if (copy_to_user(buffer, &ev, sizeof(struct snd_ctl_event))) { snd_ctl_read()
/linux-4.1.27/net/ceph/
H A Dosdmap.c541 u8 ev, cv; decode_pool() local
546 ev = ceph_decode_8(p); /* encoding version */ decode_pool()
548 if (ev < 5) { decode_pool()
549 pr_warn("got v %d < 5 cv %d of ceph_pg_pool\n", ev, cv); decode_pool()
553 pr_warn("got v %d cv %d > 9 of ceph_pg_pool\n", ev, cv); decode_pool()
589 if (ev >= 7) decode_pool()
592 if (ev >= 8) decode_pool()
595 if (ev >= 9) { decode_pool()
/linux-4.1.27/sound/pci/hda/
H A Dhda_bind.c48 static void hda_codec_unsol_event(struct hdac_device *dev, unsigned int ev) hda_codec_unsol_event() argument
53 codec->patch_ops.unsol_event(codec, ev); hda_codec_unsol_event()
/linux-4.1.27/tools/usb/ffs-aio-example/simple/device_app/
H A Daio_simple.c315 printf("ev=in; ret=%lu\n", e[i].res); main()
318 printf("ev=out; ret=%lu\n", e[i].res); main()
/linux-4.1.27/drivers/input/misc/
H A Duinput.c441 struct input_event ev; uinput_inject_events() local
454 if (input_event_from_user(buffer + bytes, &ev)) uinput_inject_events()
457 input_event(udev->dev, ev.type, ev.code, ev.value); uinput_inject_events()
/linux-4.1.27/arch/metag/kernel/perf/
H A Dperf_event.c517 int ev; _hw_perf_cache_event() local
532 ev = (*metag_pmu->cache_events)[type][op][result]; _hw_perf_cache_event()
533 if (ev == 0) _hw_perf_cache_event()
535 if (ev == -1) _hw_perf_cache_event()
537 *evp = ev; _hw_perf_cache_event()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
H A Dmain.c335 u32 ev, time, data; /* event log data */ iwl_print_cont_event_trace() local
364 ev = iwl_read32(priv->trans, HBUS_TARG_MEM_RDAT); iwl_print_cont_event_trace()
368 priv->trans->dev, 0, time, ev); iwl_print_cont_event_trace()
372 priv->trans->dev, time, data, ev); iwl_print_cont_event_trace()
1603 u32 ev, time, data; /* event log data */ iwl_print_event_log() local
1637 ev = iwl_read32(trans, HBUS_TARG_MEM_RDAT); iwl_print_event_log()
1640 /* data, ev */ iwl_print_event_log()
1644 time, ev); iwl_print_event_log()
1647 time, ev); iwl_print_event_log()
1649 time, ev); iwl_print_event_log()
1656 time, data, ev); iwl_print_event_log()
1659 time, data, ev); iwl_print_event_log()
1661 data, ev); iwl_print_event_log()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
H A Dchannel.c198 static const char *chanctx_event_string(enum ath_chanctx_event ev) chanctx_event_string() argument
200 switch (ev) { chanctx_event_string()
475 enum ath_chanctx_event ev) ath_chanctx_event()
492 chanctx_event_string(ev), ath_chanctx_event()
495 switch (ev) { ath_chanctx_event()
757 enum ath_chanctx_event ev) ath_chanctx_beacon_sent_ev()
760 ath_chanctx_event(sc, NULL, ev); ath_chanctx_beacon_sent_ev()
764 enum ath_chanctx_event ev) ath_chanctx_beacon_recv_ev()
766 ath_chanctx_event(sc, NULL, ev); ath_chanctx_beacon_recv_ev()
474 ath_chanctx_event(struct ath_softc *sc, struct ieee80211_vif *vif, enum ath_chanctx_event ev) ath_chanctx_event() argument
756 ath_chanctx_beacon_sent_ev(struct ath_softc *sc, enum ath_chanctx_event ev) ath_chanctx_beacon_sent_ev() argument
763 ath_chanctx_beacon_recv_ev(struct ath_softc *sc, enum ath_chanctx_event ev) ath_chanctx_beacon_recv_ev() argument
H A Dath9k.h466 enum ath_chanctx_event ev);
468 enum ath_chanctx_event ev);
470 enum ath_chanctx_event ev);
496 enum ath_chanctx_event ev) ath_chanctx_beacon_recv_ev()
500 enum ath_chanctx_event ev) ath_chanctx_beacon_sent_ev()
505 enum ath_chanctx_event ev) ath_chanctx_event()
495 ath_chanctx_beacon_recv_ev(struct ath_softc *sc, enum ath_chanctx_event ev) ath_chanctx_beacon_recv_ev() argument
499 ath_chanctx_beacon_sent_ev(struct ath_softc *sc, enum ath_chanctx_event ev) ath_chanctx_beacon_sent_ev() argument
503 ath_chanctx_event(struct ath_softc *sc, struct ieee80211_vif *vif, enum ath_chanctx_event ev) ath_chanctx_event() argument
/linux-4.1.27/drivers/iio/proximity/
H A Dsx9500.c348 u64 ev; sx9500_irq_thread_handler() local
359 ev = IIO_UNMOD_EVENT_CODE(IIO_PROXIMITY, sx9500_irq_thread_handler()
363 iio_push_event(indio_dev, ev, iio_get_time_ns()); sx9500_irq_thread_handler()
/linux-4.1.27/drivers/media/platform/vivid/
H A Dvivid-vid-common.c524 struct v4l2_event ev = { vivid_send_source_change() local
531 ev.id = i; vivid_send_source_change()
534 v4l2_event_queue(&dev->vid_cap_dev, &ev); vivid_send_source_change()
536 v4l2_event_queue(&dev->vbi_cap_dev, &ev); vivid_send_source_change()
/linux-4.1.27/drivers/media/pci/ivtv/
H A Divtv-ioctl.c1739 struct video_event *ev = arg; ivtv_decoder_ioctls() local
1745 memset(ev, 0, sizeof(*ev)); ivtv_decoder_ioctls()
1750 ev->type = VIDEO_EVENT_DECODER_STOPPED; ivtv_decoder_ioctls()
1752 ev->type = VIDEO_EVENT_VSYNC; ivtv_decoder_ioctls()
1753 ev->u.vsync_field = test_bit(IVTV_F_I_EV_VSYNC_FIELD, &itv->i_flags) ? ivtv_decoder_ioctls()
1758 ev->u.vsync_field = VIDEO_VSYNC_FIELD_PROGRESSIVE; ivtv_decoder_ioctls()
1761 if (ev->type) ivtv_decoder_ioctls()
/linux-4.1.27/include/uapi/linux/raid/
H A Dmd_p.h205 __u64 ev = sb->events_hi; md_event() local
206 return (ev<<32)| sb->events_lo; md_event()
/linux-4.1.27/drivers/staging/nvec/
H A Dnvec.c350 * ev: points to event command string
361 static void nvec_event_mask(char *ev, u32 mask) nvec_event_mask() argument
363 ev[3] = mask >> 16 & 0xff; nvec_event_mask()
364 ev[4] = mask >> 24 & 0xff; nvec_event_mask()
365 ev[5] = mask >> 0 & 0xff; nvec_event_mask()
366 ev[6] = mask >> 8 & 0xff; nvec_event_mask()
/linux-4.1.27/arch/alpha/kernel/
H A Dperf_event.c608 int ev; __hw_perf_event_init() local
617 ev = alpha_pmu->event_map[attr->config]; __hw_perf_event_init()
623 ev = attr->config; __hw_perf_event_init()
628 if (ev < 0) { __hw_perf_event_init()
629 return ev; __hw_perf_event_init()
647 hwc->event_base = ev; __hw_perf_event_init()
/linux-4.1.27/scripts/kconfig/
H A Dqconf.cc663 void ConfigList::keyPressEvent(QKeyEvent* ev) keyPressEvent() argument
670 if (ev->key() == Qt::Key_Escape && mode != fullMode && mode != listMode) { keyPressEvent()
672 ev->accept(); keyPressEvent()
677 Parent::keyPressEvent(ev); keyPressEvent()
682 switch (ev->key()) { keyPressEvent()
711 Parent::keyPressEvent(ev); keyPressEvent()
714 ev->accept(); keyPressEvent()
/linux-4.1.27/drivers/scsi/megaraid/
H A Dmegaraid_sas_base.c2623 struct megasas_aen_event *ev; megasas_service_aen() local
2624 ev = kzalloc(sizeof(*ev), GFP_ATOMIC); megasas_service_aen()
2625 if (!ev) { megasas_service_aen()
2628 ev->instance = instance; megasas_service_aen()
2629 instance->ev = ev; megasas_service_aen()
2630 INIT_DELAYED_WORK(&ev->hotplug_work, megasas_service_aen()
2632 schedule_delayed_work(&ev->hotplug_work, 0); megasas_service_aen()
5229 instance->ev = NULL; megasas_probe_one()
5575 if (instance->ev != NULL) { megasas_suspend()
5576 struct megasas_aen_event *ev = instance->ev; megasas_suspend() local
5577 cancel_delayed_work_sync(&ev->hotplug_work); megasas_suspend()
5578 instance->ev = NULL; megasas_suspend()
5806 if (instance->ev != NULL) { megasas_detach_one()
5807 struct megasas_aen_event *ev = instance->ev; megasas_detach_one() local
5808 cancel_delayed_work_sync(&ev->hotplug_work); megasas_detach_one()
5809 instance->ev = NULL; megasas_detach_one()
6545 struct megasas_aen_event *ev = megasas_aen_polling() local
6547 struct megasas_instance *instance = ev->instance; megasas_aen_polling()
6559 kfree(ev); megasas_aen_polling()
6579 instance->ev = NULL; megasas_aen_polling()
6715 kfree(ev); megasas_aen_polling()
6776 kfree(ev); megasas_aen_polling()
6794 kfree(ev); megasas_aen_polling()

Completed in 9321 milliseconds

12