Home
last modified time | relevance | path

Searched refs:ev (Results 1 – 200 of 254) sorted by relevance

12

/linux-4.1.27/include/sound/
Dasequencer.h30 #define snd_seq_event_bounce_ext_data(ev) ((void*)((char *)(ev)->data.ext.ptr + sizeof(struct snd_s… argument
36 #define snd_seq_ev_is_result_type(ev) ((ev)->type < 5) argument
38 #define snd_seq_ev_is_channel_type(ev) ((ev)->type >= 5 && (ev)->type < 20) argument
40 #define snd_seq_ev_is_note_type(ev) ((ev)->type >= 5 && (ev)->type < 10) argument
42 #define snd_seq_ev_is_control_type(ev) ((ev)->type >= 10 && (ev)->type < 20) argument
44 #define snd_seq_ev_is_queue_type(ev) ((ev)->type >= 30 && (ev)->type < 40) argument
46 #define snd_seq_ev_is_message_type(ev) ((ev)->type >= 60 && (ev)->type < 69) argument
48 #define snd_seq_ev_is_sample_type(ev) ((ev)->type >= 70 && (ev)->type < 79) argument
50 #define snd_seq_ev_is_user_type(ev) ((ev)->type >= 90 && (ev)->type < 99) argument
52 #define snd_seq_ev_is_fixed_type(ev) ((ev)->type < 100) argument
[all …]
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);
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);
Dseq_midi_emul.h191 void snd_midi_process_event(struct snd_midi_op *ops, struct snd_seq_event *ev,
/linux-4.1.27/drivers/connector/
Dcn_proc.c70 struct proc_event *ev; in proc_fork_connector() local
78 ev = (struct proc_event *)msg->data; in proc_fork_connector()
79 memset(&ev->event_data, 0, sizeof(ev->event_data)); in proc_fork_connector()
80 get_seq(&msg->seq, &ev->cpu); in proc_fork_connector()
81 ev->timestamp_ns = ktime_get_ns(); in proc_fork_connector()
82 ev->what = PROC_EVENT_FORK; in proc_fork_connector()
85 ev->event_data.fork.parent_pid = parent->pid; in proc_fork_connector()
86 ev->event_data.fork.parent_tgid = parent->tgid; in proc_fork_connector()
88 ev->event_data.fork.child_pid = task->pid; in proc_fork_connector()
89 ev->event_data.fork.child_tgid = task->tgid; in proc_fork_connector()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Devents.c54 void request_out_callback(lnet_event_t *ev) in request_out_callback() argument
56 struct ptlrpc_cb_id *cbid = ev->md.user_ptr; in request_out_callback()
59 LASSERT(ev->type == LNET_EVENT_SEND || in request_out_callback()
60 ev->type == LNET_EVENT_UNLINK); in request_out_callback()
61 LASSERT(ev->unlinked); in request_out_callback()
63 DEBUG_REQ(D_NET, req, "type %d, status %d", ev->type, ev->status); in request_out_callback()
68 if (ev->unlinked) in request_out_callback()
71 if (ev->type == LNET_EVENT_UNLINK || ev->status != 0) { in request_out_callback()
87 void reply_in_callback(lnet_event_t *ev) in reply_in_callback() argument
89 struct ptlrpc_cb_id *cbid = ev->md.user_ptr; in reply_in_callback()
[all …]
/linux-4.1.27/samples/uhid/
Duhid-example.c158 static int uhid_write(int fd, const struct uhid_event *ev) in uhid_write() argument
162 ret = write(fd, ev, sizeof(*ev)); in uhid_write()
166 } else if (ret != sizeof(*ev)) { in uhid_write()
168 ret, sizeof(ev)); in uhid_write()
177 struct uhid_event ev; in create() local
179 memset(&ev, 0, sizeof(ev)); in create()
180 ev.type = UHID_CREATE; in create()
181 strcpy((char*)ev.u.create.name, "test-uhid-device"); in create()
182 ev.u.create.rd_data = rdesc; in create()
183 ev.u.create.rd_size = sizeof(rdesc); in create()
[all …]
/linux-4.1.27/sound/core/seq/
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);
[all …]
Dseq_system.c70 static int setheader(struct snd_seq_event * ev, int client, int port) in setheader() argument
75 memset(ev, 0, sizeof(struct snd_seq_event)); in setheader()
77 ev->flags &= ~SNDRV_SEQ_EVENT_LENGTH_MASK; in setheader()
78 ev->flags |= SNDRV_SEQ_EVENT_LENGTH_FIXED; in setheader()
80 ev->source.client = sysclient; in setheader()
81 ev->source.port = announce_port; in setheader()
82 ev->dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in setheader()
86 ev->data.addr.client = client; in setheader()
87 ev->data.addr.port = port; in setheader()
96 struct snd_seq_event ev; in snd_seq_system_broadcast() local
[all …]
Dseq_midi_emul.c84 struct snd_seq_event *ev, in snd_midi_process_event() argument
91 if (ev == NULL || chanset == NULL) { in snd_midi_process_event()
98 if (snd_seq_ev_is_channel_type(ev)) { in snd_midi_process_event()
99 dest_channel = ev->data.note.channel; in snd_midi_process_event()
111 if (ev->type == SNDRV_SEQ_EVENT_NOTE) in snd_midi_process_event()
116 if (ev->type == SNDRV_SEQ_EVENT_NOTEON && ev->data.note.velocity == 0) in snd_midi_process_event()
117 ev->type = SNDRV_SEQ_EVENT_NOTEOFF; in snd_midi_process_event()
120 if (ev->type == SNDRV_SEQ_EVENT_NOTEON || in snd_midi_process_event()
121 ev->type == SNDRV_SEQ_EVENT_NOTEOFF || in snd_midi_process_event()
122 ev->type == SNDRV_SEQ_EVENT_KEYPRESS) { in snd_midi_process_event()
[all …]
Dseq_queue.c656 static void queue_broadcast_event(struct snd_seq_queue *q, struct snd_seq_event *ev, in queue_broadcast_event() argument
661 sev = *ev; in queue_broadcast_event()
680 struct snd_seq_event *ev, in snd_seq_queue_process_event() argument
683 switch (ev->type) { in snd_seq_queue_process_event()
685 snd_seq_prioq_leave(q->tickq, ev->source.client, 1); in snd_seq_queue_process_event()
686 snd_seq_prioq_leave(q->timeq, ev->source.client, 1); in snd_seq_queue_process_event()
688 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event()
693 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event()
698 queue_broadcast_event(q, ev, atomic, hop); in snd_seq_queue_process_event()
702 snd_seq_timer_set_tempo(q->timer, ev->data.queue.param.value); in snd_seq_queue_process_event()
[all …]
Dseq_virmidi.c59 struct snd_seq_event *ev) in snd_virmidi_init_event() argument
61 memset(ev, 0, sizeof(*ev)); in snd_virmidi_init_event()
62 ev->source.port = vmidi->port; in snd_virmidi_init_event()
65 ev->dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in snd_virmidi_init_event()
69 ev->dest.client = vmidi->client; in snd_virmidi_init_event()
70 ev->dest.port = vmidi->port; in snd_virmidi_init_event()
73 ev->type = SNDRV_SEQ_EVENT_NONE; in snd_virmidi_init_event()
80 struct snd_seq_event *ev) in snd_virmidi_dev_receive_event() argument
90 if (ev->type == SNDRV_SEQ_EVENT_SYSEX) { in snd_virmidi_dev_receive_event()
91 if ((ev->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) != SNDRV_SEQ_EVENT_LENGTH_VARIABLE) in snd_virmidi_dev_receive_event()
[all …]
Dseq_prioq.c344 struct snd_seq_event *ev) in prioq_remove_match() argument
349 if (ev->dest.client != info->dest.client || in prioq_remove_match()
350 ev->dest.port != info->dest.port) in prioq_remove_match()
354 if (! snd_seq_ev_is_channel_type(ev)) in prioq_remove_match()
357 if (ev->data.note.channel != info->channel) in prioq_remove_match()
362 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
364 res = snd_seq_compare_real_time(&ev->time.time, &info->time.time); in prioq_remove_match()
370 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
372 res = snd_seq_compare_real_time(&ev->time.time, &info->time.time); in prioq_remove_match()
377 if (ev->type != info->type) in prioq_remove_match()
[all …]
Dseq_midi.c79 struct snd_seq_event ev; in snd_midi_input_event() local
89 memset(&ev, 0, sizeof(ev)); in snd_midi_input_event()
98 count = snd_midi_event_encode(msynth->parser, pbuf, res, &ev); in snd_midi_input_event()
103 if (ev.type != SNDRV_SEQ_EVENT_NONE) { in snd_midi_input_event()
104 ev.source.port = msynth->seq_port; in snd_midi_input_event()
105 ev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in snd_midi_input_event()
106 snd_seq_kernel_client_dispatch(msynth->seq_client, &ev, 1, 0); in snd_midi_input_event()
108 memset(&ev, 0, sizeof(ev)); in snd_midi_input_event()
132 static int event_process_midi(struct snd_seq_event *ev, int direct, in event_process_midi() argument
145 if (ev->type == SNDRV_SEQ_EVENT_SYSEX) { /* special case, to save space */ in event_process_midi()
[all …]
Dseq_dummy.c88 dummy_input(struct snd_seq_event *ev, int direct, void *private_data, in dummy_input() argument
95 if (ev->source.client == SNDRV_SEQ_CLIENT_SYSTEM || in dummy_input()
96 ev->type == SNDRV_SEQ_EVENT_KERNEL_ERROR) in dummy_input()
98 tmpev = *ev; in dummy_input()
Dseq_clientmgr.c865 struct snd_seq_event tmpev, *ev; in snd_seq_dispatch_event() local
877 ev = &cell->event; in snd_seq_dispatch_event()
878 ev->type = SNDRV_SEQ_EVENT_NOTEOFF; in snd_seq_dispatch_event()
879 ev->flags |= SNDRV_SEQ_PRIORITY_HIGH; in snd_seq_dispatch_event()
882 switch (ev->flags & SNDRV_SEQ_TIME_STAMP_MASK) { in snd_seq_dispatch_event()
884 ev->time.tick += ev->data.note.duration; in snd_seq_dispatch_event()
888 ev->time.time.tv_nsec += 1000000 * (ev->data.note.duration % 1000); in snd_seq_dispatch_event()
889 ev->time.time.tv_sec += ev->data.note.duration / 1000 + in snd_seq_dispatch_event()
890 ev->time.time.tv_nsec / 1000000000; in snd_seq_dispatch_event()
891 ev->time.time.tv_nsec %= 1000000000; in snd_seq_dispatch_event()
[all …]
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,
Dseq_system.h37 int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev);
Dseq_ports.h72 int (*event_input)(struct snd_seq_event *ev, int direct, void *private_data,
Dseq_queue.h113 int snd_seq_control_queue(struct snd_seq_event *ev, int atomic, int hop);
/linux-4.1.27/sound/core/seq/oss/
Dseq_oss_event.c34 static int extended_event(struct seq_oss_devinfo *dp, union evrec *q, struct snd_seq_event *ev);
35 … int chn_voice_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev);
36 …int chn_common_event(struct seq_oss_devinfo *dp, union evrec *event_rec, struct snd_seq_event *ev);
37 …tic 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 …on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
41 …ff_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
42 …truct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev);
43 …ruct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int val, struct snd_seq_event *ev);
[all …]
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_mid…
465 struct snd_seq_event ev; in snd_seq_oss_midi_reset() local
468 memset(&ev, 0, sizeof(ev)); in snd_seq_oss_midi_reset()
469 ev.dest.client = mdev->client; in snd_seq_oss_midi_reset()
470 ev.dest.port = mdev->port; in snd_seq_oss_midi_reset()
471 ev.queue = dp->queue; in snd_seq_oss_midi_reset()
472 ev.source.port = dp->port; in snd_seq_oss_midi_reset()
474 ev.type = SNDRV_SEQ_EVENT_SENSING; in snd_seq_oss_midi_reset()
475 snd_seq_oss_dispatch(dp, &ev, 0, 0); in snd_seq_oss_midi_reset()
[all …]
Dseq_oss_timer.c86 snd_seq_oss_process_timer_event(struct seq_oss_timer *rec, union evrec *ev) in snd_seq_oss_process_timer_event() argument
88 abstime_t parm = ev->t.time; in snd_seq_oss_process_timer_event()
90 if (ev->t.code == EV_TIMING) { in snd_seq_oss_process_timer_event()
91 switch (ev->t.cmd) { in snd_seq_oss_process_timer_event()
110 } else if (ev->s.code == SEQ_WAIT) { in snd_seq_oss_process_timer_event()
112 parm = (ev->echo >> 8) & 0xffffff; in snd_seq_oss_process_timer_event()
142 struct snd_seq_event ev; in send_timer_event() local
144 memset(&ev, 0, sizeof(ev)); in send_timer_event()
145 ev.type = type; in send_timer_event()
146 ev.source.client = dp->cseq; in send_timer_event()
[all …]
Dseq_oss_writeq.c104 struct snd_seq_event ev; in snd_seq_oss_writeq_sync() local
108 memset(&ev, 0, sizeof(ev)); in snd_seq_oss_writeq_sync()
109 ev.flags = 0; in snd_seq_oss_writeq_sync()
110 ev.type = SNDRV_SEQ_EVENT_ECHO; in snd_seq_oss_writeq_sync()
111 ev.time.tick = time; in snd_seq_oss_writeq_sync()
113 snd_seq_oss_fill_addr(dp, &ev, dp->addr.client, dp->addr.port); in snd_seq_oss_writeq_sync()
114 rec = (union evrec *)&ev.data; in snd_seq_oss_writeq_sync()
118 snd_seq_kernel_client_enqueue_blocking(dp->cseq, &ev, NULL, 0, 0); in snd_seq_oss_writeq_sync()
Dseq_oss_event.h104 #define ev_is_long(ev) ((ev)->s.code >= 128) argument
105 #define ev_length(ev) ((ev)->s.code >= 128 ? LONG_EVENT_SIZE : SHORT_EVENT_SIZE) argument
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, i…
Dseq_oss_device.h148 snd_seq_oss_dispatch(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, int atomic, int hop) in snd_seq_oss_dispatch() argument
150 return snd_seq_kernel_client_dispatch(dp->cseq, ev, atomic, hop); in snd_seq_oss_dispatch()
162 snd_seq_oss_fill_addr(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, in snd_seq_oss_fill_addr() argument
165 ev->queue = dp->queue; in snd_seq_oss_fill_addr()
166 ev->source = dp->addr; in snd_seq_oss_fill_addr()
167 ev->dest.client = dest_client; in snd_seq_oss_fill_addr()
168 ev->dest.port = dest_port; in snd_seq_oss_fill_addr()
Dseq_oss_synth.c437 struct snd_seq_event ev; in snd_seq_oss_synth_reset() local
438 memset(&ev, 0, sizeof(ev)); in snd_seq_oss_synth_reset()
439 snd_seq_oss_fill_addr(dp, &ev, info->arg.addr.client, in snd_seq_oss_synth_reset()
441 ev.type = SNDRV_SEQ_EVENT_RESET; in snd_seq_oss_synth_reset()
442 snd_seq_oss_dispatch(dp, &ev, 0, 0); in snd_seq_oss_synth_reset()
497 …_oss_synth_sysex(struct seq_oss_devinfo *dp, int dev, unsigned char *buf, struct snd_seq_event *ev) in snd_seq_oss_synth_sysex() argument
538 ev->flags = SNDRV_SEQ_EVENT_LENGTH_VARIABLE; in snd_seq_oss_synth_sysex()
539 if (snd_seq_oss_synth_addr(dp, dev, ev)) in snd_seq_oss_synth_sysex()
541 ev->data.ext.len = sysex->len; in snd_seq_oss_synth_sysex()
542 ev->data.ext.ptr = sysex->buf; in snd_seq_oss_synth_sysex()
[all …]
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);
Dseq_oss_init.c53 static int receive_announce(struct snd_seq_event *ev, int direct, void *private, int atomic, int ho…
136 receive_announce(struct snd_seq_event *ev, int direct, void *private, int atomic, int hop) in receive_announce() argument
143 switch (ev->type) { in receive_announce()
146 if (ev->data.addr.client == system_client) in receive_announce()
149 pinfo.addr = ev->data.addr; in receive_announce()
155 if (ev->data.addr.client == system_client) in receive_announce()
157 snd_seq_oss_midi_check_exit_port(ev->data.addr.client, in receive_announce()
158 ev->data.addr.port); in receive_announce()
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);
Dseq_oss_readq.c126 snd_seq_oss_readq_put_event(struct seq_oss_readq *q, union evrec *ev) in snd_seq_oss_readq_put_event() argument
136 memcpy(&q->q[q->tail], ev, sizeof(*ev)); in snd_seq_oss_readq_put_event()
Dseq_oss_ioctl.c59 unsigned char ev[8]; in snd_seq_oss_oob_user() local
62 if (copy_from_user(ev, arg, 8)) in snd_seq_oss_oob_user()
67 if (! snd_seq_oss_process_event(dp, (union evrec *)ev, &tmpev)) { in snd_seq_oss_oob_user()
Dseq_oss_readq.h47 int snd_seq_oss_readq_put_event(struct seq_oss_readq *readq, union evrec *ev);
/linux-4.1.27/net/llc/
Dllc_s_ev.c25 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_ev_activation_req() local
27 return ev->type == LLC_SAP_EV_TYPE_SIMPLE && in llc_sap_ev_activation_req()
28 ev->prim_type == LLC_SAP_EV_ACTIVATION_REQ ? 0 : 1; in llc_sap_ev_activation_req()
33 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_ev_rx_ui() local
36 return ev->type == LLC_SAP_EV_TYPE_PDU && LLC_PDU_IS_CMD(pdu) && in llc_sap_ev_rx_ui()
43 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_ev_unitdata_req() local
45 return ev->type == LLC_SAP_EV_TYPE_PRIM && in llc_sap_ev_unitdata_req()
46 ev->prim == LLC_DATAUNIT_PRIM && in llc_sap_ev_unitdata_req()
47 ev->prim_type == LLC_PRIM_TYPE_REQ ? 0 : 1; in llc_sap_ev_unitdata_req()
53 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_ev_xid_req() local
[all …]
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,
[all …]
Dllc_sap.c93 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_rtn_pdu() local
98 ev->prim = LLC_TEST_PRIM; break; in llc_sap_rtn_pdu()
100 ev->prim = LLC_XID_PRIM; break; in llc_sap_rtn_pdu()
102 ev->prim = LLC_DATAUNIT_PRIM; break; in llc_sap_rtn_pdu()
104 ev->ind_cfm_flag = LLC_IND; in llc_sap_rtn_pdu()
127 for (next_trans = curr_state->transitions; next_trans[i]->ev; i++) in llc_find_sap_trans()
128 if (!next_trans[i]->ev(sap, skb)) { in llc_find_sap_trans()
203 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_state_process() local
211 ev->ind_cfm_flag = 0; in llc_sap_state_process()
213 if (ev->ind_cfm_flag == LLC_IND) { in llc_sap_state_process()
[all …]
Dllc_if.c44 struct llc_conn_state_ev *ev; in llc_build_and_send_pkt() local
56 ev = llc_conn_ev(skb); in llc_build_and_send_pkt()
57 ev->type = LLC_CONN_EV_TYPE_PRIM; in llc_build_and_send_pkt()
58 ev->prim = LLC_DATA_PRIM; in llc_build_and_send_pkt()
59 ev->prim_type = LLC_PRIM_TYPE_REQ; in llc_build_and_send_pkt()
103 struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_establish_connection() local
105 ev->type = LLC_CONN_EV_TYPE_PRIM; in llc_establish_connection()
106 ev->prim = LLC_CONN_PRIM; in llc_establish_connection()
107 ev->prim_type = LLC_PRIM_TYPE_REQ; in llc_establish_connection()
128 struct llc_conn_state_ev *ev; in llc_send_disc() local
[all …]
Dllc_s_ac.c54 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_action_send_ui() local
57 llc_pdu_header_init(skb, LLC_PDU_TYPE_U, ev->saddr.lsap, in llc_sap_action_send_ui()
58 ev->daddr.lsap, LLC_PDU_CMD); in llc_sap_action_send_ui()
60 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); in llc_sap_action_send_ui()
77 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_action_send_xid_c() local
80 llc_pdu_header_init(skb, LLC_PDU_TYPE_U, ev->saddr.lsap, in llc_sap_action_send_xid_c()
81 ev->daddr.lsap, LLC_PDU_CMD); in llc_sap_action_send_xid_c()
83 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); in llc_sap_action_send_xid_c()
131 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_action_send_test_c() local
134 llc_pdu_header_init(skb, LLC_PDU_TYPE_U, ev->saddr.lsap, in llc_sap_action_send_test_c()
[all …]
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,
Dllc_c_ev.c101 const struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_conn_ev_conn_req() local
103 return ev->prim == LLC_CONN_PRIM && in llc_conn_ev_conn_req()
104 ev->prim_type == LLC_PRIM_TYPE_REQ ? 0 : 1; in llc_conn_ev_conn_req()
109 const struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_conn_ev_data_req() local
111 return ev->prim == LLC_DATA_PRIM && in llc_conn_ev_data_req()
112 ev->prim_type == LLC_PRIM_TYPE_REQ ? 0 : 1; in llc_conn_ev_data_req()
117 const struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_conn_ev_disc_req() local
119 return ev->prim == LLC_DISC_PRIM && in llc_conn_ev_disc_req()
120 ev->prim_type == LLC_PRIM_TYPE_REQ ? 0 : 1; in llc_conn_ev_disc_req()
125 const struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_conn_ev_rst_req() local
[all …]
Dllc_conn.c37 struct sk_buff *ev);
63 struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_conn_state_process() local
71 ev->ind_prim = ev->cfm_prim = 0; in llc_conn_state_process()
81 if (unlikely(!ev->ind_prim && !ev->cfm_prim)) { in llc_conn_state_process()
88 if (unlikely(ev->ind_prim && ev->cfm_prim)) /* Paranoia */ in llc_conn_state_process()
91 switch (ev->ind_prim) { in llc_conn_state_process()
136 if (ev->ind_prim) { in llc_conn_state_process()
138 __func__, ev->ind_prim); in llc_conn_state_process()
145 switch (ev->cfm_prim) { in llc_conn_state_process()
155 if (ev->status) { in llc_conn_state_process()
[all …]
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); in llc_conn_ac_conn_ind() local
65 ev->ind_prim = LLC_CONN_PRIM; in llc_conn_ac_conn_ind()
71 struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_conn_ac_conn_confirm() local
73 ev->cfm_prim = LLC_CONN_PRIM; in llc_conn_ac_conn_confirm()
79 struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_conn_ac_data_confirm() local
81 ev->cfm_prim = LLC_DATA_PRIM; in llc_conn_ac_data_confirm()
93 struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_conn_ac_disc_ind() local
97 if (ev->type == LLC_CONN_EV_TYPE_PDU) { in llc_conn_ac_disc_ind()
108 } else if (ev->type == LLC_CONN_EV_TYPE_ACK_TMR) in llc_conn_ac_disc_ind()
[all …]
/linux-4.1.27/drivers/hid/
Duhid.c58 static void uhid_queue(struct uhid_device *uhid, struct uhid_event *ev) in uhid_queue() argument
65 uhid->outq[uhid->head] = ev; in uhid_queue()
70 kfree(ev); in uhid_queue()
77 struct uhid_event *ev; in uhid_queue_event() local
79 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in uhid_queue_event()
80 if (!ev) in uhid_queue_event()
83 ev->type = event; in uhid_queue_event()
86 uhid_queue(uhid, ev); in uhid_queue_event()
95 struct uhid_event *ev; in uhid_hid_start() local
98 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in uhid_hid_start()
[all …]
/linux-4.1.27/drivers/media/rc/
Dir-jvc-decoder.c46 static int ir_jvc_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_jvc_decode() argument
53 if (!is_timing_event(ev)) { in ir_jvc_decode()
54 if (ev.reset) in ir_jvc_decode()
59 if (!geq_margin(ev.duration, JVC_UNIT, JVC_UNIT / 2)) in ir_jvc_decode()
63 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_jvc_decode()
69 if (!ev.pulse) in ir_jvc_decode()
72 if (!eq_margin(ev.duration, JVC_HEADER_PULSE, JVC_UNIT / 2)) in ir_jvc_decode()
82 if (ev.pulse) in ir_jvc_decode()
85 if (!eq_margin(ev.duration, JVC_HEADER_SPACE, JVC_UNIT / 2)) in ir_jvc_decode()
92 if (!ev.pulse) in ir_jvc_decode()
[all …]
Dir-sharp-decoder.c46 static int ir_sharp_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_sharp_decode() argument
54 if (!is_timing_event(ev)) { in ir_sharp_decode()
55 if (ev.reset) in ir_sharp_decode()
61 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sharp_decode()
66 if (!ev.pulse) in ir_sharp_decode()
69 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
74 data->pulse_len = ev.duration; in ir_sharp_decode()
79 if (!ev.pulse) in ir_sharp_decode()
82 if (!eq_margin(ev.duration, SHARP_BIT_PULSE, in ir_sharp_decode()
86 data->pulse_len = ev.duration; in ir_sharp_decode()
[all …]
Dir-rc6-decoder.c86 static int ir_rc6_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_rc6_decode() argument
98 if (!is_timing_event(ev)) { in ir_rc6_decode()
99 if (ev.reset) in ir_rc6_decode()
104 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
109 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_rc6_decode()
111 if (!geq_margin(ev.duration, RC6_UNIT, RC6_UNIT / 2)) in ir_rc6_decode()
117 if (!ev.pulse) in ir_rc6_decode()
123 if (!eq_margin(ev.duration, RC6_PREFIX_PULSE, RC6_UNIT)) in ir_rc6_decode()
131 if (ev.pulse) in ir_rc6_decode()
134 if (!eq_margin(ev.duration, RC6_PREFIX_SPACE, RC6_UNIT / 2)) in ir_rc6_decode()
[all …]
Dir-sanyo-decoder.c55 static int ir_sanyo_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_sanyo_decode() argument
64 if (!is_timing_event(ev)) { in ir_sanyo_decode()
65 if (ev.reset) { in ir_sanyo_decode()
73 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sanyo_decode()
78 if (!ev.pulse) in ir_sanyo_decode()
81 if (eq_margin(ev.duration, SANYO_HEADER_PULSE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
90 if (ev.pulse) in ir_sanyo_decode()
93 if (eq_margin(ev.duration, SANYO_HEADER_SPACE, SANYO_UNIT / 2)) { in ir_sanyo_decode()
101 if (!ev.pulse) in ir_sanyo_decode()
104 if (!eq_margin(ev.duration, SANYO_BIT_PULSE, SANYO_UNIT / 2)) in ir_sanyo_decode()
[all …]
Dir-nec-decoder.c48 static int ir_nec_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_nec_decode() argument
58 if (!is_timing_event(ev)) { in ir_nec_decode()
59 if (ev.reset) in ir_nec_decode()
65 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_nec_decode()
70 if (!ev.pulse) in ir_nec_decode()
73 if (eq_margin(ev.duration, NEC_HEADER_PULSE, NEC_UNIT * 2)) { in ir_nec_decode()
76 } else if (eq_margin(ev.duration, NECX_HEADER_PULSE, NEC_UNIT / 2)) in ir_nec_decode()
86 if (ev.pulse) in ir_nec_decode()
89 if (eq_margin(ev.duration, NEC_HEADER_SPACE, NEC_UNIT)) { in ir_nec_decode()
92 } else if (eq_margin(ev.duration, NEC_REPEAT_SPACE, NEC_UNIT / 2)) { in ir_nec_decode()
[all …]
Dir-sony-decoder.c42 static int ir_sony_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_sony_decode() argument
53 if (!is_timing_event(ev)) { in ir_sony_decode()
54 if (ev.reset) in ir_sony_decode()
59 if (!geq_margin(ev.duration, SONY_UNIT, SONY_UNIT / 2)) in ir_sony_decode()
63 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_sony_decode()
68 if (!ev.pulse) in ir_sony_decode()
71 if (!eq_margin(ev.duration, SONY_HEADER_PULSE, SONY_UNIT / 2)) in ir_sony_decode()
79 if (ev.pulse) in ir_sony_decode()
82 if (!eq_margin(ev.duration, SONY_HEADER_SPACE, SONY_UNIT / 2)) in ir_sony_decode()
89 if (!ev.pulse) in ir_sony_decode()
[all …]
Dir-rc5-decoder.c49 static int ir_rc5_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_rc5_decode() argument
59 if (!is_timing_event(ev)) { in ir_rc5_decode()
60 if (ev.reset) in ir_rc5_decode()
65 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) in ir_rc5_decode()
70 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_rc5_decode()
72 if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) in ir_rc5_decode()
78 if (!ev.pulse) in ir_rc5_decode()
83 decrease_duration(&ev, RC5_BIT_START); in ir_rc5_decode()
87 if (!ev.pulse && geq_margin(ev.duration, RC5_TRAILER, RC5_UNIT / 2)) { in ir_rc5_decode()
92 if (!eq_margin(ev.duration, RC5_BIT_START, RC5_UNIT / 2)) in ir_rc5_decode()
[all …]
Dir-xmp-decoder.c42 static int ir_xmp_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_xmp_decode() argument
49 if (!is_timing_event(ev)) { in ir_xmp_decode()
50 if (ev.reset) in ir_xmp_decode()
56 data->state, data->count, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_xmp_decode()
61 if (!ev.pulse) in ir_xmp_decode()
64 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) { in ir_xmp_decode()
72 if (!ev.pulse) in ir_xmp_decode()
75 if (eq_margin(ev.duration, XMP_LEADER, XMP_UNIT / 2)) in ir_xmp_decode()
81 if (ev.pulse) in ir_xmp_decode()
84 if (geq_margin(ev.duration, XMP_TRAILER_SPACE, XMP_NIBBLE_PREFIX)) { in ir_xmp_decode()
[all …]
Drc-ir-raw.c36 struct ir_raw_event ev; in ir_raw_event_thread() local
46 if (retval < sizeof(ev)) { in ir_raw_event_thread()
57 retval = kfifo_out(&raw->kfifo, &ev, sizeof(ev)); in ir_raw_event_thread()
62 handler->decode(raw->dev, ev); in ir_raw_event_thread()
63 raw->prev_ev = ev; in ir_raw_event_thread()
80 int ir_raw_event_store(struct rc_dev *dev, struct ir_raw_event *ev) in ir_raw_event_store() argument
86 TO_US(ev->duration), TO_STR(ev->pulse)); in ir_raw_event_store()
88 if (kfifo_in(&dev->raw->kfifo, ev, sizeof(*ev)) != sizeof(*ev)) in ir_raw_event_store()
110 DEFINE_IR_RAW_EVENT(ev); in ir_raw_event_store_edge()
128 ev.duration = delta; in ir_raw_event_store_edge()
[all …]
Dir-mce_kbd-decoder.c213 static int ir_mce_kbd_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_mce_kbd_decode() argument
222 if (!is_timing_event(ev)) { in ir_mce_kbd_decode()
223 if (ev.reset) in ir_mce_kbd_decode()
228 if (!geq_margin(ev.duration, MCIR2_UNIT, MCIR2_UNIT / 2)) in ir_mce_kbd_decode()
233 data->state, TO_US(ev.duration), TO_STR(ev.pulse)); in ir_mce_kbd_decode()
235 if (!geq_margin(ev.duration, MCIR2_UNIT, MCIR2_UNIT / 2)) in ir_mce_kbd_decode()
241 if (!ev.pulse) in ir_mce_kbd_decode()
247 if (!eq_margin(ev.duration, MCIR2_PREFIX_PULSE, MCIR2_UNIT)) in ir_mce_kbd_decode()
256 if (geq_margin(ev.duration, MCIR2_MAX_LEN, MCIR2_UNIT / 2)) in ir_mce_kbd_decode()
260 if (ev.pulse) in ir_mce_kbd_decode()
[all …]
Drc-core-priv.h136 static inline void decrease_duration(struct ir_raw_event *ev, unsigned duration) in decrease_duration() argument
138 if (duration > ev->duration) in decrease_duration()
139 ev->duration = 0; in decrease_duration()
141 ev->duration -= duration; in decrease_duration()
145 static inline bool is_timing_event(struct ir_raw_event ev) in is_timing_event() argument
147 return !ev.carrier_report && !ev.reset; in is_timing_event()
Dir-lirc-codec.c33 static int ir_lirc_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_lirc_decode() argument
45 if (ev.reset) { in ir_lirc_decode()
55 } else if (ev.carrier_report) { in ir_lirc_decode()
56 sample = LIRC_FREQUENCY(ev.carrier); in ir_lirc_decode()
60 } else if (ev.timeout) { in ir_lirc_decode()
67 lirc->gap_duration = ev.duration; in ir_lirc_decode()
72 sample = LIRC_TIMEOUT(ev.duration / 1000); in ir_lirc_decode()
95 sample = ev.pulse ? LIRC_PULSE(ev.duration / 1000) : in ir_lirc_decode()
96 LIRC_SPACE(ev.duration / 1000); in ir_lirc_decode()
98 TO_US(ev.duration), TO_STR(ev.pulse)); in ir_lirc_decode()
Dst_rc.c69 DEFINE_IR_RAW_EVENT(ev); in st_rc_send_lirc_timeout()
70 ev.timeout = true; in st_rc_send_lirc_timeout()
71 ir_raw_event_store(rdev, &ev); in st_rc_send_lirc_timeout()
102 DEFINE_IR_RAW_EVENT(ev); in st_rc_rx_interrupt()
136 ev.duration = US_TO_NS(mark); in st_rc_rx_interrupt()
137 ev.pulse = true; in st_rc_rx_interrupt()
138 ir_raw_event_store(dev->rdev, &ev); in st_rc_rx_interrupt()
141 ev.duration = US_TO_NS(symbol); in st_rc_rx_interrupt()
142 ev.pulse = false; in st_rc_rx_interrupt()
143 ir_raw_event_store(dev->rdev, &ev); in st_rc_rx_interrupt()
Dir-hix5hd2.c160 DEFINE_IR_RAW_EVENT(ev); in hix5hd2_ir_rx_interrupt()
169 ev.duration = US_TO_NS(data_l); in hix5hd2_ir_rx_interrupt()
170 ev.pulse = true; in hix5hd2_ir_rx_interrupt()
171 ir_raw_event_store(priv->rdev, &ev); in hix5hd2_ir_rx_interrupt()
174 ev.duration = US_TO_NS(data_h); in hix5hd2_ir_rx_interrupt()
175 ev.pulse = false; in hix5hd2_ir_rx_interrupt()
176 ir_raw_event_store(priv->rdev, &ev); in hix5hd2_ir_rx_interrupt()
Dene_ir.c334 DEFINE_IR_RAW_EVENT(ev); in ene_rx_sense_carrier()
356 ev.carrier_report = true; in ene_rx_sense_carrier()
357 ev.carrier = carrier; in ene_rx_sense_carrier()
358 ev.duty_cycle = duty_cycle; in ene_rx_sense_carrier()
359 ir_raw_event_store(dev->rdev, &ev); in ene_rx_sense_carrier()
741 DEFINE_IR_RAW_EVENT(ev); in ene_isr()
816 ev.duration = US_TO_NS(hw_sample); in ene_isr()
817 ev.pulse = pulse; in ene_isr()
818 ir_raw_event_store_with_filter(dev->rdev, &ev); in ene_isr()
Dite-cir.c183 DEFINE_IR_RAW_EVENT(ev); in ite_decode_bytes()
193 ev.pulse = true; in ite_decode_bytes()
194 ev.duration = in ite_decode_bytes()
196 ir_raw_event_store_with_filter(dev->rdev, &ev); in ite_decode_bytes()
201 ev.pulse = false; in ite_decode_bytes()
202 ev.duration = ITE_BITS_TO_NS(next_zero - next_one, sample_period); in ite_decode_bytes()
203 ir_raw_event_store_with_filter(dev->rdev, &ev); in ite_decode_bytes()
210 ev.pulse = true; in ite_decode_bytes()
211 ev.duration = in ite_decode_bytes()
215 (dev->rdev, &ev); in ite_decode_bytes()
Dwinbond-cir.c345 DEFINE_IR_RAW_EVENT(ev); in wbcir_carrier_report()
347 ev.carrier_report = 1; in wbcir_carrier_report()
348 ev.carrier = DIV_ROUND_CLOSEST(counter * 1000000u, in wbcir_carrier_report()
351 ir_raw_event_store(data->dev, &ev); in wbcir_carrier_report()
/linux-4.1.27/drivers/s390/net/
Dsmsgiucv_app.c60 static void smsg_app_event_free(struct smsg_app_event *ev) in smsg_app_event_free() argument
62 kfree(ev->buf); in smsg_app_event_free()
63 kfree(ev); in smsg_app_event_free()
69 struct smsg_app_event *ev; in smsg_app_event_alloc() local
71 ev = kzalloc(sizeof(*ev), GFP_ATOMIC); in smsg_app_event_alloc()
72 if (!ev) in smsg_app_event_alloc()
75 ev->buf = kzalloc(ENV_SENDER_LEN + ENV_PREFIX_LEN + in smsg_app_event_alloc()
77 if (!ev->buf) { in smsg_app_event_alloc()
78 kfree(ev); in smsg_app_event_alloc()
83 ev->envp[0] = ev->buf; in smsg_app_event_alloc()
[all …]
Dnetiucv.c534 struct iucv_event ev; in netiucv_callback_rx() local
536 ev.conn = conn; in netiucv_callback_rx()
537 ev.data = msg; in netiucv_callback_rx()
538 fsm_event(conn->fsm, CONN_EVENT_RX, &ev); in netiucv_callback_rx()
545 struct iucv_event ev; in netiucv_callback_txdone() local
547 ev.conn = conn; in netiucv_callback_txdone()
548 ev.data = msg; in netiucv_callback_txdone()
549 fsm_event(conn->fsm, CONN_EVENT_TXDONE, &ev); in netiucv_callback_txdone()
563 struct iucv_event ev; in netiucv_callback_connreq() local
579 ev.conn = conn; in netiucv_callback_connreq()
[all …]
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/
Dlib-msg.c46 lnet_build_unlink_event(lnet_libmd_t *md, lnet_event_t *ev) in lnet_build_unlink_event() argument
48 memset(ev, 0, sizeof(*ev)); in lnet_build_unlink_event()
50 ev->status = 0; in lnet_build_unlink_event()
51 ev->unlinked = 1; in lnet_build_unlink_event()
52 ev->type = LNET_EVENT_UNLINK; in lnet_build_unlink_event()
53 lnet_md_deconstruct(md, &ev->md); in lnet_build_unlink_event()
54 lnet_md2handle(&ev->md_handle, md); in lnet_build_unlink_event()
64 lnet_event_t *ev = &msg->msg_ev; in lnet_build_msg_event() local
68 ev->type = ev_type; in lnet_build_msg_event()
72 ev->target.nid = le64_to_cpu(hdr->dest_nid); in lnet_build_msg_event()
[all …]
Dlib-eq.c209 lnet_eq_enqueue_event(lnet_eq_t *eq, lnet_event_t *ev) in lnet_eq_enqueue_event() argument
216 eq->eq_callback(ev); in lnet_eq_enqueue_event()
221 ev->sequence = eq->eq_enq_seq++; in lnet_eq_enqueue_event()
224 index = ev->sequence & (eq->eq_size - 1); in lnet_eq_enqueue_event()
226 eq->eq_events[index] = *ev; in lnet_eq_enqueue_event()
229 eq->eq_callback(ev); in lnet_eq_enqueue_event()
238 lnet_eq_dequeue_event(lnet_eq_t *eq, lnet_event_t *ev) in lnet_eq_dequeue_event() argument
249 *ev = *new_event; in lnet_eq_dequeue_event()
Dlib-me.c233 lnet_event_t ev; in LNetMEUnlink() local
252 lnet_build_unlink_event(md, &ev); in LNetMEUnlink()
253 lnet_eq_enqueue_event(md->md_eq, &ev); in LNetMEUnlink()
Dlib-md.c424 lnet_event_t ev; in LNetMDUnlink() local
445 lnet_build_unlink_event(md, &ev); in LNetMDUnlink()
446 lnet_eq_enqueue_event(md->md_eq, &ev); in LNetMDUnlink()
/linux-4.1.27/net/bluetooth/
Dhci_event.c2218 struct hci_ev_conn_complete *ev = (void *) skb->data; in hci_conn_complete_evt() local
2225 conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr); in hci_conn_complete_evt()
2227 if (ev->link_type != SCO_LINK) in hci_conn_complete_evt()
2230 conn = hci_conn_hash_lookup_ba(hdev, ESCO_LINK, &ev->bdaddr); in hci_conn_complete_evt()
2237 if (!ev->status) { in hci_conn_complete_evt()
2238 conn->handle = __le16_to_cpu(ev->handle); in hci_conn_complete_evt()
2245 !hci_find_link_key(hdev, &ev->bdaddr)) in hci_conn_complete_evt()
2264 cp.handle = ev->handle; in hci_conn_complete_evt()
2274 cp.handle = ev->handle; in hci_conn_complete_evt()
2283 conn->dst_type, ev->status); in hci_conn_complete_evt()
[all …]
Dmgmt_util.c64 struct mgmt_ev_cmd_status *ev; in mgmt_cmd_status() local
69 skb = alloc_skb(sizeof(*hdr) + sizeof(*ev), GFP_KERNEL); in mgmt_cmd_status()
77 hdr->len = cpu_to_le16(sizeof(*ev)); in mgmt_cmd_status()
79 ev = (void *) skb_put(skb, sizeof(*ev)); in mgmt_cmd_status()
80 ev->status = status; in mgmt_cmd_status()
81 ev->opcode = cpu_to_le16(cmd); in mgmt_cmd_status()
95 struct mgmt_ev_cmd_complete *ev; in mgmt_cmd_complete() local
100 skb = alloc_skb(sizeof(*hdr) + sizeof(*ev) + rp_len, GFP_KERNEL); in mgmt_cmd_complete()
108 hdr->len = cpu_to_le16(sizeof(*ev) + rp_len); in mgmt_cmd_complete()
110 ev = (void *) skb_put(skb, sizeof(*ev) + rp_len); in mgmt_cmd_complete()
[all …]
Dmgmt.c1445 struct mgmt_ev_advertising_added ev; in advertising_added() local
1447 ev.instance = instance; in advertising_added()
1449 mgmt_event(MGMT_EV_ADVERTISING_ADDED, hdev, &ev, sizeof(ev), sk); in advertising_added()
1455 struct mgmt_ev_advertising_removed ev; in advertising_removed() local
1457 ev.instance = instance; in advertising_removed()
1459 mgmt_event(MGMT_EV_ADVERTISING_REMOVED, hdev, &ev, sizeof(ev), sk); in advertising_removed()
1615 __le32 ev = cpu_to_le32(get_current_settings(hdev)); in new_settings() local
1617 return mgmt_generic_event(MGMT_EV_NEW_SETTINGS, hdev, &ev, in new_settings()
1618 sizeof(ev), skip); in new_settings()
2905 struct mgmt_ev_device_unpaired ev; in device_unpaired() local
[all …]
Dhci_sock.c370 struct hci_ev_stack_internal *ev; in hci_si_event() local
373 skb = bt_skb_alloc(HCI_EVENT_HDR_SIZE + sizeof(*ev) + dlen, GFP_ATOMIC); in hci_si_event()
379 hdr->plen = sizeof(*ev) + dlen; in hci_si_event()
381 ev = (void *) skb_put(skb, sizeof(*ev) + dlen); in hci_si_event()
382 ev->type = type; in hci_si_event()
383 memcpy(ev->data, data, dlen); in hci_si_event()
395 struct hci_ev_si_device ev; in hci_sock_dev_event() local
412 ev.event = event; in hci_sock_dev_event()
413 ev.dev_id = hdev->id; in hci_sock_dev_event()
414 hci_si_event(NULL, HCI_EV_SI_DEVICE, sizeof(ev), &ev); in hci_sock_dev_event()
/linux-4.1.27/drivers/net/fddi/skfp/
Dqueue.c75 struct event_queue *ev ; /* pointer into queue */ in ev_dispatcher() local
78 ev = smc->q.ev_get ; in ev_dispatcher()
79 PRINTF("dispatch get %x put %x\n",ev,smc->q.ev_put) ; in ev_dispatcher()
80 while (ev != smc->q.ev_put) { in ev_dispatcher()
81 PRINTF("dispatch class %d event %d\n",ev->class,ev->event) ; in ev_dispatcher()
82 switch(class = ev->class) { in ev_dispatcher()
84 ecm(smc,(int)ev->event) ; in ev_dispatcher()
87 cfm(smc,(int)ev->event) ; in ev_dispatcher()
90 rmt(smc,(int)ev->event) ; in ev_dispatcher()
93 smt_event(smc,(int)ev->event) ; in ev_dispatcher()
[all …]
/linux-4.1.27/arch/x86/kernel/cpu/
Dperf_event_amd_iommu.c24 #define _GET_BANK(ev) ((u8)(ev->hw.extra_reg.reg >> 8)) argument
25 #define _GET_CNTR(ev) ((u8)(ev->hw.extra_reg.reg)) argument
28 #define _GET_CSOURCE(ev) ((ev->hw.config & 0xFFULL)) argument
29 #define _GET_DEVID(ev) ((ev->hw.config >> 8) & 0xFFFFULL) argument
30 #define _GET_PASID(ev) ((ev->hw.config >> 24) & 0xFFFFULL) argument
31 #define _GET_DOMID(ev) ((ev->hw.config >> 40) & 0xFFFFULL) argument
32 #define _GET_DEVID_MASK(ev) ((ev->hw.extra_reg.config) & 0xFFFFULL) argument
33 #define _GET_PASID_MASK(ev) ((ev->hw.extra_reg.config >> 16) & 0xFFFFULL) argument
34 #define _GET_DOMID_MASK(ev) ((ev->hw.extra_reg.config >> 32) & 0xFFFFULL) argument
250 static void perf_iommu_enable_event(struct perf_event *ev) in perf_iommu_enable_event() argument
[all …]
/linux-4.1.27/drivers/scsi/
Dscsi_transport_iscsi.c2351 struct iscsi_uevent *ev; in iscsi_recv_pdu() local
2354 int len = nlmsg_total_size(sizeof(*ev) + sizeof(struct iscsi_hdr) + in iscsi_recv_pdu()
2370 ev = nlmsg_data(nlh); in iscsi_recv_pdu()
2371 memset(ev, 0, sizeof(*ev)); in iscsi_recv_pdu()
2372 ev->transport_handle = iscsi_handle(conn->transport); in iscsi_recv_pdu()
2373 ev->type = ISCSI_KEVENT_RECV_PDU; in iscsi_recv_pdu()
2374 ev->r.recv_req.cid = conn->cid; in iscsi_recv_pdu()
2375 ev->r.recv_req.sid = iscsi_conn_get_sid(conn); in iscsi_recv_pdu()
2376 pdu = (char*)ev + sizeof(*ev); in iscsi_recv_pdu()
2390 struct iscsi_uevent *ev; in iscsi_offload_mesg() local
[all …]
/linux-4.1.27/mm/
Dvmpressure.c142 struct vmpressure_event *ev; in vmpressure_event() local
150 list_for_each_entry(ev, &vmpr->events, node) { in vmpressure_event()
151 if (level >= ev->level) { in vmpressure_event()
152 eventfd_signal(ev->efd, 1); in vmpressure_event()
300 struct vmpressure_event *ev; in vmpressure_register_event() local
311 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in vmpressure_register_event()
312 if (!ev) in vmpressure_register_event()
315 ev->efd = eventfd; in vmpressure_register_event()
316 ev->level = level; in vmpressure_register_event()
319 list_add(&ev->node, &vmpr->events); in vmpressure_register_event()
[all …]
/linux-4.1.27/drivers/thunderbolt/
Dtb.c218 struct tb_hotplug_event *ev = container_of(work, typeof(*ev), work); in tb_handle_hotplug() local
219 struct tb *tb = ev->tb; in tb_handle_hotplug()
226 sw = get_switch_at_route(tb->root_switch, ev->route); in tb_handle_hotplug()
230 ev->route, ev->port, ev->unplug); in tb_handle_hotplug()
233 if (ev->port > sw->config.max_port_number) { in tb_handle_hotplug()
236 ev->route, ev->port, ev->unplug); in tb_handle_hotplug()
239 port = &sw->ports[ev->port]; in tb_handle_hotplug()
243 ev->route, ev->port, ev->unplug); in tb_handle_hotplug()
246 if (ev->unplug) { in tb_handle_hotplug()
276 kfree(ev); in tb_handle_hotplug()
[all …]
/linux-4.1.27/block/
Dgenhd.c39 static void disk_check_events(struct disk_events *ev,
1422 struct disk_events *ev = disk->ev; in disk_events_poll_jiffies() local
1430 if (ev->poll_msecs >= 0) in disk_events_poll_jiffies()
1431 intv_msecs = ev->poll_msecs; in disk_events_poll_jiffies()
1455 struct disk_events *ev = disk->ev; in disk_block_events() local
1459 if (!ev) in disk_block_events()
1466 mutex_lock(&ev->block_mutex); in disk_block_events()
1468 spin_lock_irqsave(&ev->lock, flags); in disk_block_events()
1469 cancel = !ev->block++; in disk_block_events()
1470 spin_unlock_irqrestore(&ev->lock, flags); in disk_block_events()
[all …]
/linux-4.1.27/drivers/staging/lustre/lnet/selftest/
Drpc.c358 lnet_handle_md_t *mdh, srpc_event_t *ev) in srpc_post_passive_rdma() argument
373 md.user_ptr = ev; in srpc_post_passive_rdma()
398 lnet_handle_md_t *mdh, srpc_event_t *ev) in srpc_post_active_rdma() argument
403 md.user_ptr = ev; in srpc_post_active_rdma()
449 int len, lnet_handle_md_t *mdh, srpc_event_t *ev) in srpc_post_active_rqtbuf() argument
453 LNET_NID_ANY, mdh, ev); in srpc_post_active_rqtbuf()
458 lnet_handle_md_t *mdh, srpc_event_t *ev) in srpc_post_passive_rqtbuf() argument
467 LNET_MD_OP_PUT, any, mdh, ev); in srpc_post_passive_rqtbuf()
794 srpc_event_t *ev = &rpc->crpc_reqstev; in srpc_send_request() local
797 ev->ev_fired = 0; in srpc_send_request()
[all …]
/linux-4.1.27/arch/arm64/crypto/
Dsha1-ce-core.S37 .macro add_only, op, ev, rc, s0, dg1
38 .ifc \ev, ev
55 .macro add_update, op, ev, rc, s0, s1, s2, s3, dg1
57 add_only \op, \ev, \rc, \s1, \dg1
99 add_update c, ev, k0, 8, 9, 10, 11, dgb
101 add_update c, ev, k0, 10, 11, 8, 9
103 add_update c, ev, k1, 8, 9, 10, 11
106 add_update p, ev, k1, 10, 11, 8, 9
108 add_update p, ev, k1, 8, 9, 10, 11
111 add_update m, ev, k2, 10, 11, 8, 9
[all …]
Dsha2-ce-core.S32 .macro add_only, ev, rc, s0
34 .ifeq \ev
47 .macro add_update, ev, rc, s0, s1, s2, s3
49 add_only \ev, \rc, \s1
/linux-4.1.27/include/linux/ceph/
Dpagelist.h52 __le64 ev = cpu_to_le64(v); in ceph_pagelist_encode_64() local
53 return ceph_pagelist_append(pl, &ev, sizeof(ev)); in ceph_pagelist_encode_64()
57 __le32 ev = cpu_to_le32(v); in ceph_pagelist_encode_32() local
58 return ceph_pagelist_append(pl, &ev, sizeof(ev)); in ceph_pagelist_encode_32()
62 __le16 ev = cpu_to_le16(v); in ceph_pagelist_encode_16() local
63 return ceph_pagelist_append(pl, &ev, sizeof(ev)); in ceph_pagelist_encode_16()
/linux-4.1.27/net/rfkill/
Dcore.c81 struct rfkill_event ev; member
192 static void rfkill_fill_event(struct rfkill_event *ev, struct rfkill *rfkill, in rfkill_fill_event() argument
197 ev->idx = rfkill->idx; in rfkill_fill_event()
198 ev->type = rfkill->type; in rfkill_fill_event()
199 ev->op = op; in rfkill_fill_event()
202 ev->hard = !!(rfkill->state & RFKILL_BLOCK_HW); in rfkill_fill_event()
203 ev->soft = !!(rfkill->state & (RFKILL_BLOCK_SW | in rfkill_fill_event()
211 struct rfkill_int_event *ev; in rfkill_send_events() local
214 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in rfkill_send_events()
215 if (!ev) in rfkill_send_events()
[all …]
/linux-4.1.27/arch/s390/appldata/
Dappldata_mem.c82 unsigned long ev[NR_VM_EVENT_ITEMS]; in appldata_get_mem_data() local
88 all_vm_events(ev); in appldata_get_mem_data()
89 mem_data->pgpgin = ev[PGPGIN] >> 1; in appldata_get_mem_data()
90 mem_data->pgpgout = ev[PGPGOUT] >> 1; in appldata_get_mem_data()
91 mem_data->pswpin = ev[PSWPIN]; in appldata_get_mem_data()
92 mem_data->pswpout = ev[PSWPOUT]; in appldata_get_mem_data()
93 mem_data->pgalloc = ev[PGALLOC_NORMAL]; in appldata_get_mem_data()
94 mem_data->pgalloc += ev[PGALLOC_DMA]; in appldata_get_mem_data()
95 mem_data->pgfault = ev[PGFAULT]; in appldata_get_mem_data()
96 mem_data->pgmajfault = ev[PGMAJFAULT]; in appldata_get_mem_data()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dtxrx.c175 struct htt_peer_map_event *ev) in ath10k_peer_map_event() argument
181 peer = ath10k_peer_find(ar, ev->vdev_id, ev->addr); in ath10k_peer_map_event()
187 peer->vdev_id = ev->vdev_id; in ath10k_peer_map_event()
188 ether_addr_copy(peer->addr, ev->addr); in ath10k_peer_map_event()
194 ev->vdev_id, ev->addr, ev->peer_id); in ath10k_peer_map_event()
196 set_bit(ev->peer_id, peer->peer_ids); in ath10k_peer_map_event()
202 struct htt_peer_unmap_event *ev) in ath10k_peer_unmap_event() argument
208 peer = ath10k_peer_find_by_id(ar, ev->peer_id); in ath10k_peer_unmap_event()
211 ev->peer_id); in ath10k_peer_unmap_event()
216 peer->vdev_id, peer->addr, ev->peer_id); in ath10k_peer_unmap_event()
[all …]
Dwmi-tlv.c170 const struct wmi_tlv_bcn_tx_status_ev *ev; in ath10k_wmi_tlv_event_bcn_tx_status() local
181 ev = tb[WMI_TLV_TAG_STRUCT_OFFLOAD_BCN_TX_STATUS_EVENT]; in ath10k_wmi_tlv_event_bcn_tx_status()
182 if (!ev) { in ath10k_wmi_tlv_event_bcn_tx_status()
187 tx_status = __le32_to_cpu(ev->tx_status); in ath10k_wmi_tlv_event_bcn_tx_status()
188 vdev_id = __le32_to_cpu(ev->vdev_id); in ath10k_wmi_tlv_event_bcn_tx_status()
212 const struct wmi_tlv_diag_data_ev *ev; in ath10k_wmi_tlv_event_diag_data() local
224 ev = tb[WMI_TLV_TAG_STRUCT_DIAG_DATA_CONTAINER_EVENT]; in ath10k_wmi_tlv_event_diag_data()
226 if (!ev || !data) { in ath10k_wmi_tlv_event_diag_data()
231 num_items = __le32_to_cpu(ev->num_items); in ath10k_wmi_tlv_event_diag_data()
433 const struct wmi_scan_event *ev; in ath10k_wmi_tlv_op_pull_scan_ev() local
[all …]
Dwmi.c1251 struct wmi_scan_event *ev = (void *)skb->data; in ath10k_wmi_op_pull_scan_ev() local
1253 if (skb->len < sizeof(*ev)) in ath10k_wmi_op_pull_scan_ev()
1256 skb_pull(skb, sizeof(*ev)); in ath10k_wmi_op_pull_scan_ev()
1257 arg->event_type = ev->event_type; in ath10k_wmi_op_pull_scan_ev()
1258 arg->reason = ev->reason; in ath10k_wmi_op_pull_scan_ev()
1259 arg->channel_freq = ev->channel_freq; in ath10k_wmi_op_pull_scan_ev()
1260 arg->scan_req_id = ev->scan_req_id; in ath10k_wmi_op_pull_scan_ev()
1261 arg->scan_id = ev->scan_id; in ath10k_wmi_op_pull_scan_ev()
1262 arg->vdev_id = ev->vdev_id; in ath10k_wmi_op_pull_scan_ev()
1624 struct wmi_chan_info_event *ev = (void *)skb->data; in ath10k_wmi_op_pull_ch_info_ev() local
[all …]
Dtxrx.h34 struct htt_peer_map_event *ev);
36 struct htt_peer_unmap_event *ev);
Dhtt_rx.c460 struct htt_rx_in_ord_ind *ev, in ath10k_htt_rx_pop_paddr_list() argument
464 struct htt_rx_in_ord_msdu_desc *msdu_desc = ev->msdu_descs; in ath10k_htt_rx_pop_paddr_list()
473 msdu_count = __le16_to_cpu(ev->msdu_count); in ath10k_htt_rx_pop_paddr_list()
474 is_offload = !!(ev->info & HTT_RX_IN_ORD_IND_INFO_OFFLOAD_MASK); in ath10k_htt_rx_pop_paddr_list()
1625 struct htt_rx_addba *ev = &resp->rx_addba; in ath10k_htt_rx_addba() local
1630 info0 = __le16_to_cpu(ev->info0); in ath10k_htt_rx_addba()
1636 tid, peer_id, ev->window_size); in ath10k_htt_rx_addba()
1657 peer->addr, tid, ev->window_size); in ath10k_htt_rx_addba()
1665 struct htt_rx_delba *ev = &resp->rx_delba; in ath10k_htt_rx_delba() local
1670 info0 = __le16_to_cpu(ev->info0); in ath10k_htt_rx_delba()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dwmi.c506 struct wmi_remain_on_chnl_event *ev; in ath6kl_wmi_remain_on_chnl_event_rx() local
513 if (len < sizeof(*ev)) in ath6kl_wmi_remain_on_chnl_event_rx()
516 ev = (struct wmi_remain_on_chnl_event *) datap; in ath6kl_wmi_remain_on_chnl_event_rx()
517 freq = le32_to_cpu(ev->freq); in ath6kl_wmi_remain_on_chnl_event_rx()
518 dur = le32_to_cpu(ev->duration); in ath6kl_wmi_remain_on_chnl_event_rx()
539 struct wmi_cancel_remain_on_chnl_event *ev; in ath6kl_wmi_cancel_remain_on_chnl_event_rx() local
546 if (len < sizeof(*ev)) in ath6kl_wmi_cancel_remain_on_chnl_event_rx()
549 ev = (struct wmi_cancel_remain_on_chnl_event *) datap; in ath6kl_wmi_cancel_remain_on_chnl_event_rx()
550 freq = le32_to_cpu(ev->freq); in ath6kl_wmi_cancel_remain_on_chnl_event_rx()
551 dur = le32_to_cpu(ev->duration); in ath6kl_wmi_cancel_remain_on_chnl_event_rx()
[all …]
/linux-4.1.27/net/wireless/
Dsme.c751 struct cfg80211_event *ev; in cfg80211_connect_result() local
754 ev = kzalloc(sizeof(*ev) + req_ie_len + resp_ie_len, gfp); in cfg80211_connect_result()
755 if (!ev) in cfg80211_connect_result()
758 ev->type = EVENT_CONNECT_RESULT; in cfg80211_connect_result()
760 memcpy(ev->cr.bssid, bssid, ETH_ALEN); in cfg80211_connect_result()
762 ev->cr.req_ie = ((u8 *)ev) + sizeof(*ev); in cfg80211_connect_result()
763 ev->cr.req_ie_len = req_ie_len; in cfg80211_connect_result()
764 memcpy((void *)ev->cr.req_ie, req_ie, req_ie_len); in cfg80211_connect_result()
767 ev->cr.resp_ie = ((u8 *)ev) + sizeof(*ev) + req_ie_len; in cfg80211_connect_result()
768 ev->cr.resp_ie_len = resp_ie_len; in cfg80211_connect_result()
[all …]
Dutil.c858 struct cfg80211_event *ev; in cfg80211_process_wdev_events() local
864 ev = list_first_entry(&wdev->event_list, in cfg80211_process_wdev_events()
866 list_del(&ev->list); in cfg80211_process_wdev_events()
870 switch (ev->type) { in cfg80211_process_wdev_events()
872 if (!is_zero_ether_addr(ev->cr.bssid)) in cfg80211_process_wdev_events()
873 bssid = ev->cr.bssid; in cfg80211_process_wdev_events()
876 ev->cr.req_ie, ev->cr.req_ie_len, in cfg80211_process_wdev_events()
877 ev->cr.resp_ie, ev->cr.resp_ie_len, in cfg80211_process_wdev_events()
878 ev->cr.status, in cfg80211_process_wdev_events()
879 ev->cr.status == WLAN_STATUS_SUCCESS, in cfg80211_process_wdev_events()
[all …]
Dlib80211_crypt_tkip.c592 struct iw_michaelmicfailure ev; in lib80211_michael_mic_failure() local
595 memset(&ev, 0, sizeof(ev)); in lib80211_michael_mic_failure()
596 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; in lib80211_michael_mic_failure()
598 ev.flags |= IW_MICFAILURE_GROUP; in lib80211_michael_mic_failure()
600 ev.flags |= IW_MICFAILURE_PAIRWISE; in lib80211_michael_mic_failure()
601 ev.src_addr.sa_family = ARPHRD_ETHER; in lib80211_michael_mic_failure()
602 memcpy(ev.src_addr.sa_data, hdr->addr2, ETH_ALEN); in lib80211_michael_mic_failure()
604 wrqu.data.length = sizeof(ev); in lib80211_michael_mic_failure()
605 wireless_send_event(dev, IWEVMICHAELMICFAILURE, &wrqu, (char *)&ev); in lib80211_michael_mic_failure()
Dibss.c62 struct cfg80211_event *ev; in cfg80211_ibss_joined() local
70 ev = kzalloc(sizeof(*ev), gfp); in cfg80211_ibss_joined()
71 if (!ev) in cfg80211_ibss_joined()
74 ev->type = EVENT_IBSS_JOINED; in cfg80211_ibss_joined()
75 memcpy(ev->ij.bssid, bssid, ETH_ALEN); in cfg80211_ibss_joined()
76 ev->ij.channel = channel; in cfg80211_ibss_joined()
79 list_add_tail(&ev->list, &wdev->event_list); in cfg80211_ibss_joined()
Dcore.c948 struct cfg80211_event *ev; in cfg80211_stop_iface() local
953 ev = kzalloc(sizeof(*ev), gfp); in cfg80211_stop_iface()
954 if (!ev) in cfg80211_stop_iface()
957 ev->type = EVENT_STOPPED; in cfg80211_stop_iface()
960 list_add_tail(&ev->list, &wdev->event_list); in cfg80211_stop_iface()
/linux-4.1.27/drivers/staging/rtl8712/
Drecv_linux.c90 struct iw_michaelmicfailure ev; in r8712_handle_tkip_mic_err() local
93 memset(&ev, 0x00, sizeof(ev)); in r8712_handle_tkip_mic_err()
95 ev.flags |= IW_MICFAILURE_GROUP; in r8712_handle_tkip_mic_err()
97 ev.flags |= IW_MICFAILURE_PAIRWISE; in r8712_handle_tkip_mic_err()
98 ev.src_addr.sa_family = ARPHRD_ETHER; in r8712_handle_tkip_mic_err()
99 ether_addr_copy(ev.src_addr.sa_data, &pmlmepriv->assoc_bssid[0]); in r8712_handle_tkip_mic_err()
101 wrqu.data.length = sizeof(ev); in r8712_handle_tkip_mic_err()
103 (char *)&ev); in r8712_handle_tkip_mic_err()
/linux-4.1.27/drivers/scsi/libsas/
Dsas_phy.c35 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phye_loss_of_signal() local
36 struct asd_sas_phy *phy = ev->phy; in sas_phye_loss_of_signal()
45 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phye_oob_done() local
46 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_done()
54 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phye_oob_error() local
55 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_error()
85 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phye_spinup_hold() local
86 struct asd_sas_phy *phy = ev->phy; in sas_phye_spinup_hold()
99 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_phye_resume_timeout() local
100 struct asd_sas_phy *phy = ev->phy; in sas_phye_resume_timeout()
Dsas_discover.c218 struct sas_discovery_event *ev = to_sas_discovery_event(work); in sas_probe_devices() local
219 struct asd_sas_port *port = ev->port; in sas_probe_devices()
247 struct sas_discovery_event *ev = to_sas_discovery_event(work); in sas_suspend_devices() local
248 struct asd_sas_port *port = ev->port; in sas_suspend_devices()
276 struct sas_discovery_event *ev = to_sas_discovery_event(work); in sas_resume_devices() local
277 struct asd_sas_port *port = ev->port; in sas_resume_devices()
359 struct sas_discovery_event *ev = to_sas_discovery_event(work); in sas_destruct_devices() local
360 struct asd_sas_port *port = ev->port; in sas_destruct_devices()
443 struct sas_discovery_event *ev = to_sas_discovery_event(work); in sas_discover_domain() local
444 struct asd_sas_port *port = ev->port; in sas_discover_domain()
[all …]
Dsas_port.c261 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_porte_bytes_dmaed() local
262 struct asd_sas_phy *phy = ev->phy; in sas_porte_bytes_dmaed()
271 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_porte_broadcast_rcvd() local
272 struct asd_sas_phy *phy = ev->phy; in sas_porte_broadcast_rcvd()
288 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_porte_link_reset_err() local
289 struct asd_sas_phy *phy = ev->phy; in sas_porte_link_reset_err()
298 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_porte_timer_event() local
299 struct asd_sas_phy *phy = ev->phy; in sas_porte_timer_event()
308 struct asd_sas_event *ev = to_asd_sas_event(work); in sas_porte_hard_reset() local
309 struct asd_sas_phy *phy = ev->phy; in sas_porte_hard_reset()
Dsas_event.c108 const int ev = DISCE_REVALIDATE_DOMAIN; in sas_enable_revalidation() local
111 if (!test_and_clear_bit(ev, &d->pending)) in sas_enable_revalidation()
114 sas_queue_event(ev, &d->pending, &d->disc_work[ev].work, ha); in sas_enable_revalidation()
/linux-4.1.27/arch/arm/crypto/
Dsha2-ce-core.S34 .macro add_only, ev, s0
37 vld1.32 {k\ev}, [rk, :128]!
39 sha256h.32 dg0, dg1, tb\ev
40 sha256h2.32 dg1, dg2, tb\ev
42 vadd.u32 ta\ev, q\s0, k\ev
46 .macro add_update, ev, s0, s1, s2, s3
48 add_only \ev, \s1
Dsha1-ce-core.S38 .macro add_only, op, ev, rc, s0, dg1
40 vadd.u32 tb\ev, q\s0, \rc
42 sha1h.32 dg1b\ev, dg0
44 sha1\op\().32 dg0, dg1a\ev, ta\ev
46 sha1\op\().32 dg0, \dg1, ta\ev
50 .macro add_update, op, ev, rc, s0, s1, s2, s3, dg1
52 add_only \op, \ev, \rc, \s1, \dg1
/linux-4.1.27/drivers/net/wireless/iwlwifi/
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)
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/
Drecv_linux.c31 struct iw_michaelmicfailure ev; in rtw_handle_tkip_mic_err23a() local
59 memset(&ev, 0x00, sizeof(ev)); in rtw_handle_tkip_mic_err23a()
61 ev.flags |= IW_MICFAILURE_GROUP; in rtw_handle_tkip_mic_err23a()
63 ev.flags |= IW_MICFAILURE_PAIRWISE; in rtw_handle_tkip_mic_err23a()
65 ev.src_addr.sa_family = ARPHRD_ETHER; in rtw_handle_tkip_mic_err23a()
66 ether_addr_copy(ev.src_addr.sa_data, &pmlmepriv->assoc_bssid[0]); in rtw_handle_tkip_mic_err23a()
69 wrqu.data.length = sizeof(ev); in rtw_handle_tkip_mic_err23a()
/linux-4.1.27/drivers/staging/rtl8188eu/os_dep/
Drecv_linux.c57 struct iw_michaelmicfailure ev; in rtw_handle_tkip_mic_err() local
76 memset(&ev, 0x00, sizeof(ev)); in rtw_handle_tkip_mic_err()
78 ev.flags |= IW_MICFAILURE_GROUP; in rtw_handle_tkip_mic_err()
80 ev.flags |= IW_MICFAILURE_PAIRWISE; in rtw_handle_tkip_mic_err()
82 ev.src_addr.sa_family = ARPHRD_ETHER; in rtw_handle_tkip_mic_err()
83 memcpy(ev.src_addr.sa_data, &pmlmepriv->assoc_bssid[0], ETH_ALEN); in rtw_handle_tkip_mic_err()
85 wrqu.data.length = sizeof(ev); in rtw_handle_tkip_mic_err()
87 &wrqu, (char *)&ev); in rtw_handle_tkip_mic_err()
/linux-4.1.27/drivers/usb/host/
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/
Ddm-space-map-disk.c91 enum allocation_event ev; in sm_disk_set_count() local
94 r = sm_ll_insert(&smd->ll, b, count, &ev); in sm_disk_set_count()
96 switch (ev) { in sm_disk_set_count()
129 enum allocation_event ev; in sm_disk_inc_block() local
132 r = sm_ll_inc(&smd->ll, b, &ev); in sm_disk_inc_block()
133 if (!r && (ev == SM_ALLOC)) in sm_disk_inc_block()
145 enum allocation_event ev; in sm_disk_dec_block() local
148 return sm_ll_dec(&smd->ll, b, &ev); in sm_disk_dec_block()
154 enum allocation_event ev; in sm_disk_new_block() local
163 r = sm_ll_inc(&smd->ll, *b, &ev); in sm_disk_new_block()
[all …]
Ddm-space-map-metadata.c187 enum allocation_event ev; in commit_bop() local
191 r = sm_ll_inc(&smm->ll, op->block, &ev); in commit_bop()
195 r = sm_ll_dec(&smm->ll, op->block, &ev); in commit_bop()
385 enum allocation_event ev; in sm_metadata_set_count() local
394 r = sm_ll_insert(&smm->ll, b, count, &ev); in sm_metadata_set_count()
403 enum allocation_event ev; in sm_metadata_inc_block() local
410 r = sm_ll_inc(&smm->ll, b, &ev); in sm_metadata_inc_block()
420 enum allocation_event ev; in sm_metadata_dec_block() local
427 r = sm_ll_dec(&smm->ll, b, &ev); in sm_metadata_dec_block()
437 enum allocation_event ev; in sm_metadata_new_block_() local
[all …]
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);
Ddm-space-map-common.c389 void *context, enum allocation_event *ev) in sm_ll_mutate() argument
462 *ev = SM_ALLOC; in sm_ll_mutate()
469 *ev = SM_FREE; in sm_ll_mutate()
485 uint32_t ref_count, enum allocation_event *ev) in sm_ll_insert() argument
487 return sm_ll_mutate(ll, b, set_ref_count, &ref_count, ev); in sm_ll_insert()
496 int sm_ll_inc(struct ll_disk *ll, dm_block_t b, enum allocation_event *ev) in sm_ll_inc() argument
498 return sm_ll_mutate(ll, b, inc_ref_count, NULL, ev); in sm_ll_inc()
512 int sm_ll_dec(struct ll_disk *ll, dm_block_t b, enum allocation_event *ev) in sm_ll_dec() argument
514 return sm_ll_mutate(ll, b, dec_ref_count, NULL, ev); in sm_ll_dec()
/linux-4.1.27/include/media/
Drc-core.h237 static inline void init_ir_raw_event(struct ir_raw_event *ev) in init_ir_raw_event() argument
239 memset(ev, 0, sizeof(*ev)); in 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); in ir_raw_event_reset()
257 ev.reset = true; in ir_raw_event_reset()
259 ir_raw_event_store(dev, &ev); in ir_raw_event_reset()
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/arch/powerpc/perf/
Dmpc7450-pmu.c272 u32 ev, pmc, thresh; in mpc7450_compute_mmcr() local
291 ev = event[event_index[class][i]]; in mpc7450_compute_mmcr()
293 pmc = (ev >> PM_PMC_SH) & PM_PMC_MSK; in mpc7450_compute_mmcr()
305 tuse = mpc7450_threshold_use(ev); in mpc7450_compute_mmcr()
307 thresh = (ev >> PM_THRESH_SH) & PM_THRESH_MSK; in mpc7450_compute_mmcr()
309 if (tuse == 2 && (ev & PM_THRMULT_MSKS)) in mpc7450_compute_mmcr()
312 ev &= pmcsel_mask[pmc - 1]; in mpc7450_compute_mmcr()
313 ev <<= pmcsel_shift[pmc - 1]; in mpc7450_compute_mmcr()
315 mmcr0 |= ev; in mpc7450_compute_mmcr()
317 mmcr1 |= ev; in mpc7450_compute_mmcr()
Dcore-fsl-emb.c462 int ev; in hw_perf_cache_event() local
477 ev = (*ppmu->cache_events)[type][op][result]; in hw_perf_cache_event()
478 if (ev == 0) in hw_perf_cache_event()
480 if (ev == -1) in hw_perf_cache_event()
482 *eventp = ev; in hw_perf_cache_event()
488 u64 ev; in fsl_emb_pmu_event_init() local
503 ev = event->attr.config; in fsl_emb_pmu_event_init()
504 if (ev >= ppmu->n_generic || ppmu->generic_events[ev] == 0) in fsl_emb_pmu_event_init()
506 ev = ppmu->generic_events[ev]; in fsl_emb_pmu_event_init()
510 err = hw_perf_cache_event(event->attr.config, &ev); in fsl_emb_pmu_event_init()
[all …]
Dpower6-pmu.c183 unsigned int pmc, ev, b, u, s, psel; in p6_compute_mmcr() local
198 ev = event[i]; in p6_compute_mmcr()
199 pmc = (ev >> PM_PMC_SH) & PM_PMC_MSK; in p6_compute_mmcr()
212 psel = ev & PM_PMCSEL_MSK; in p6_compute_mmcr()
213 if (ev & PM_BUSEVENT_MSK) { in p6_compute_mmcr()
215 b = (ev >> PM_BYTE_SH) & PM_BYTE_MSK; in p6_compute_mmcr()
216 u = (ev >> PM_UNIT_SH) & PM_UNIT_MSK; in p6_compute_mmcr()
224 s = (ev >> PM_SUBUNIT_SH) & PM_SUBUNIT_MSK; in p6_compute_mmcr()
240 if (ev & PM_LLA) { in p6_compute_mmcr()
242 if (ev & PM_LLAV) in p6_compute_mmcr()
Dhv-24x7.c154 static char *event_name(struct hv_24x7_event_data *ev, int *len) in event_name() argument
156 *len = be16_to_cpu(ev->event_name_len) - 2; in event_name()
157 return (char *)ev->remainder; in event_name()
160 static char *event_desc(struct hv_24x7_event_data *ev, int *len) in event_desc() argument
162 unsigned nl = be16_to_cpu(ev->event_name_len); in event_desc()
163 __be16 *desc_len = (__be16 *)(ev->remainder + nl - 2); in event_desc()
166 return (char *)ev->remainder + nl; in event_desc()
169 static char *event_long_desc(struct hv_24x7_event_data *ev, int *len) in event_long_desc() argument
171 unsigned nl = be16_to_cpu(ev->event_name_len); in event_long_desc()
172 __be16 *desc_len_ = (__be16 *)(ev->remainder + nl - 2); in event_long_desc()
[all …]
Dcore-book3s.c1647 static int can_go_on_limited_pmc(struct perf_event *event, u64 ev, in can_go_on_limited_pmc() argument
1659 if (ppmu->limited_pmc_event(ev)) in can_go_on_limited_pmc()
1670 n = ppmu->get_alternatives(ev, flags, alt); in can_go_on_limited_pmc()
1680 static u64 normal_pmc_alternative(u64 ev, unsigned long flags) in normal_pmc_alternative() argument
1686 n = ppmu->get_alternatives(ev, flags, alt); in normal_pmc_alternative()
1716 int ev; in hw_perf_cache_event() local
1731 ev = (*ppmu->cache_events)[type][op][result]; in hw_perf_cache_event()
1732 if (ev == 0) in hw_perf_cache_event()
1734 if (ev == -1) in hw_perf_cache_event()
1736 *eventp = ev; in hw_perf_cache_event()
[all …]
/linux-4.1.27/drivers/isdn/gigaset/
Dev-layer.c1103 struct event_t *ev) in do_action() argument
1205 at_state = get_free_channel(cs, ev->parameter); in do_action()
1315 if (ev->parameter > 0 && ev->parameter <= 65535) { in do_action()
1316 cs->bcs[channel].at_state.cid = ev->parameter; in do_action()
1368 if (!ev->ptr) { in do_action()
1373 s = ev->ptr; in do_action()
1423 __func__, ev->type, at_state->ConState); in do_action()
1427 __func__, ev->type, at_state->ConState); in do_action()
1431 ev->parameter, at_state->ConState); in do_action()
1437 if (!ev->ptr) { in do_action()
[all …]
DMakefile1 gigaset-y := common.o interface.o proc.o ev-layer.o asyncdata.o
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_intr.c72 static void signal_ib_event(struct qib_pportdata *ppd, enum ib_event_type ev) in signal_ib_event() argument
79 event.event = ev; in signal_ib_event()
89 enum ib_event_type ev = 0; in qib_handle_e_ibstatuschanged() local
123 ev = IB_EVENT_PORT_ERR; in qib_handle_e_ibstatuschanged()
153 ev = IB_EVENT_PORT_ACTIVE; in qib_handle_e_ibstatuschanged()
158 ev = IB_EVENT_PORT_ERR; in qib_handle_e_ibstatuschanged()
169 if (ev) in qib_handle_e_ibstatuschanged()
170 signal_ib_event(ppd, ev); in qib_handle_e_ibstatuschanged()
Dqib_ruc.c208 struct ib_event ev; in qib_get_rwqe() local
212 ev.device = qp->ibqp.device; in qib_get_rwqe()
213 ev.element.srq = qp->ibqp.srq; in qib_get_rwqe()
214 ev.event = IB_EVENT_SRQ_LIMIT_REACHED; in qib_get_rwqe()
215 handler(&ev, srq->ibsrq.srq_context); in qib_get_rwqe()
231 struct ib_event ev; in qib_migrate_qp() local
238 ev.device = qp->ibqp.device; in qib_migrate_qp()
239 ev.element.qp = &qp->ibqp; in qib_migrate_qp()
240 ev.event = IB_EVENT_PATH_MIG; in qib_migrate_qp()
241 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in qib_migrate_qp()
[all …]
Dqib_cq.c74 struct ib_event ev; in qib_cq_enter() local
76 ev.device = cq->ibcq.device; in qib_cq_enter()
77 ev.element.cq = &cq->ibcq; in qib_cq_enter()
78 ev.event = IB_EVENT_CQ_ERR; in qib_cq_enter()
79 cq->ibcq.event_handler(&ev, cq->ibcq.cq_context); in qib_cq_enter()
Dqib_uc.c334 struct ib_event ev; in qib_uc_rcv() local
336 ev.device = qp->ibqp.device; in qib_uc_rcv()
337 ev.element.qp = &qp->ibqp; in qib_uc_rcv()
338 ev.event = IB_EVENT_COMM_EST; in qib_uc_rcv()
339 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in qib_uc_rcv()
Dqib_qp.c575 struct ib_event ev; in qib_modify_qp() local
832 ev.device = qp->ibqp.device; in qib_modify_qp()
833 ev.element.qp = &qp->ibqp; in qib_modify_qp()
834 ev.event = IB_EVENT_QP_LAST_WQE_REACHED; in qib_modify_qp()
835 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in qib_modify_qp()
838 ev.device = qp->ibqp.device; in qib_modify_qp()
839 ev.element.qp = &qp->ibqp; in qib_modify_qp()
840 ev.event = IB_EVENT_PATH_MIG; in qib_modify_qp()
841 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in qib_modify_qp()
Dqib_rc.c1829 struct ib_event ev; in qib_rc_error() local
1831 ev.device = qp->ibqp.device; in qib_rc_error()
1832 ev.element.qp = &qp->ibqp; in qib_rc_error()
1833 ev.event = IB_EVENT_QP_LAST_WQE_REACHED; in qib_rc_error()
1834 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in qib_rc_error()
1952 struct ib_event ev; in qib_rc_rcv() local
1954 ev.device = qp->ibqp.device; in qib_rc_rcv()
1955 ev.element.qp = &qp->ibqp; in qib_rc_rcv()
1956 ev.event = IB_EVENT_COMM_EST; in qib_rc_rcv()
1957 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in qib_rc_rcv()
/linux-4.1.27/sound/synth/emux/
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, in snd_emux_event_oss_input() argument
315 if (ev->type != SNDRV_SEQ_EVENT_OSS) in snd_emux_event_oss_input()
316 return snd_emux_event_input(ev, direct, private_data, atomic, hop); in snd_emux_event_oss_input()
318 data = ev->data.raw8.d; in snd_emux_event_oss_input()
500 struct snd_seq_event ev; in fake_event() local
501 memset(&ev, 0, sizeof(ev)); in fake_event()
502 ev.type = SNDRV_SEQ_EVENT_CONTROLLER; in fake_event()
503 ev.data.control.channel = ch; in fake_event()
504 ev.data.control.param = param; in fake_event()
[all …]
Demux_seq.c252 snd_emux_event_input(struct snd_seq_event *ev, int direct, void *private_data, in snd_emux_event_input() argument
258 if (snd_BUG_ON(!port || !ev)) in snd_emux_event_input()
261 snd_midi_process_event(&emux_ops, ev, &port->chset); in snd_emux_event_input()
Demux_voice.h37 int snd_emux_event_input(struct snd_seq_event *ev, int direct, void *private,
/linux-4.1.27/drivers/media/v4l2-core/
Dv4l2-event.c110 static void __v4l2_event_queue_fh(struct v4l2_fh *fh, const struct v4l2_event *ev, in __v4l2_event_queue_fh() argument
118 sev = v4l2_event_subscribed(fh, ev->type, ev->id); in __v4l2_event_queue_fh()
143 sev->ops->replace(&kev->event, ev); in __v4l2_event_queue_fh()
155 kev->event.type = ev->type; in __v4l2_event_queue_fh()
157 kev->event.u = ev->u; in __v4l2_event_queue_fh()
158 kev->event.id = ev->id; in __v4l2_event_queue_fh()
169 void v4l2_event_queue(struct video_device *vdev, const struct v4l2_event *ev) in v4l2_event_queue() argument
180 __v4l2_event_queue_fh(fh, ev, &timestamp); in v4l2_event_queue()
186 void v4l2_event_queue_fh(struct v4l2_fh *fh, const struct v4l2_event *ev) in v4l2_event_queue_fh() argument
194 __v4l2_event_queue_fh(fh, ev, &timestamp); in v4l2_event_queue_fh()
Dv4l2-ctrls.c1201 static void fill_event(struct v4l2_event *ev, struct v4l2_ctrl *ctrl, u32 changes) in fill_event() argument
1203 memset(ev->reserved, 0, sizeof(ev->reserved)); in fill_event()
1204 ev->type = V4L2_EVENT_CTRL; in fill_event()
1205 ev->id = ctrl->id; in fill_event()
1206 ev->u.ctrl.changes = changes; in fill_event()
1207 ev->u.ctrl.type = ctrl->type; in fill_event()
1208 ev->u.ctrl.flags = ctrl->flags; in fill_event()
1210 ev->u.ctrl.value64 = 0; in fill_event()
1212 ev->u.ctrl.value64 = *ctrl->p_cur.p_s64; in fill_event()
1213 ev->u.ctrl.minimum = ctrl->minimum; in fill_event()
[all …]
/linux-4.1.27/arch/s390/kernel/
Dperf_cpum_cf.c328 u64 ev; in __hw_perf_event_init() local
337 ev = attr->config; in __hw_perf_event_init()
341 ev = attr->config; in __hw_perf_event_init()
344 if (ev >= ARRAY_SIZE(cpumf_generic_events_user)) in __hw_perf_event_init()
346 ev = cpumf_generic_events_user[ev]; in __hw_perf_event_init()
354 if (ev >= ARRAY_SIZE(cpumf_generic_events_basic)) in __hw_perf_event_init()
356 ev = cpumf_generic_events_basic[ev]; in __hw_perf_event_init()
364 if (ev == -1) in __hw_perf_event_init()
367 if (ev >= PERF_CPUM_CF_MAX_CTR) in __hw_perf_event_init()
375 hwc->config = ev; in __hw_perf_event_init()
[all …]
/linux-4.1.27/drivers/media/common/siano/
Dsmsir.c44 DEFINE_IR_RAW_EVENT(ev); in sms_ir_event()
46 ev.duration = abs(samples[i]) * 1000; /* Convert to ns */ in sms_ir_event()
47 ev.pulse = (samples[i] > 0) ? false : true; in sms_ir_event()
49 ir_raw_event_store(coredev->ir.dev, &ev); in sms_ir_event()
/linux-4.1.27/drivers/usb/gadget/function/
Df_fs.c210 req->zero = len < le16_to_cpu(ffs->ev.setup.wLength); in __ffs_ep0_queue_wait()
212 spin_unlock_irq(&ffs->ev.waitq.lock); in __ffs_ep0_queue_wait()
243 if (ffs->ev.can_stall) { in __ffs_ep0_stall()
328 spin_lock_irq(&ffs->ev.waitq.lock); in ffs_ep0_write()
343 if (!(ffs->ev.setup.bRequestType & USB_DIR_IN)) { in ffs_ep0_write()
344 spin_unlock_irq(&ffs->ev.waitq.lock); in ffs_ep0_write()
350 len = min(len, (size_t)le16_to_cpu(ffs->ev.setup.wLength)); in ffs_ep0_write()
352 spin_unlock_irq(&ffs->ev.waitq.lock); in ffs_ep0_write()
360 spin_lock_irq(&ffs->ev.waitq.lock); in ffs_ep0_write()
378 spin_unlock_irq(&ffs->ev.waitq.lock); in ffs_ep0_write()
[all …]
Du_fs.h210 } ev; /* the whole structure, P: ev.waitq.lock */ member
/linux-4.1.27/drivers/isdn/pcbit/
Dedss1.c145 unsigned short ev; member
167 char *strisdnevent(ushort ev) in strisdnevent() argument
171 for (entry = isdn_event_table; entry->ev; entry++) in strisdnevent()
172 if (entry->ev == ev) in strisdnevent()
Dedss1.h97 char *strisdnevent(ushort ev);
Dpcbit.h175 unsigned short i, unsigned short ev, unsigned short f);
/linux-4.1.27/include/scsi/
Dlibsas.h247 struct sas_discovery_event *ev = container_of(work, typeof(*ev), work.work); in to_sas_discovery_event() local
249 return ev; in to_sas_discovery_event()
307 struct asd_sas_event *ev = container_of(work, typeof(*ev), work.work); in to_asd_sas_event() local
309 return ev; in to_asd_sas_event()
372 struct sas_ha_event *ev = container_of(work, typeof(*ev), work.work); in to_sas_ha_event() local
374 return ev; in to_sas_ha_event()
706 int sas_discover_event(struct asd_sas_port *, enum discover_event ev);
/linux-4.1.27/drivers/watchdog/
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); in eurwdt_activate_timer()
458 io, irq, (!strcmp("int", ev) ? "int" : "reboot")); in eurwdt_init()
/linux-4.1.27/drivers/dma/
Dpl330.c371 int ev; member
745 static inline u32 _emit_SEV(unsigned dry_run, u8 buf[], u8 ev) in _emit_SEV() argument
752 ev &= 0x1f; in _emit_SEV()
753 ev <<= 3; in _emit_SEV()
754 buf[1] = ev; in _emit_SEV()
756 PL330_DBGCMD_DUMP(SZ_DMASEV, "\tDMASEV %u\n", ev >> 3); in _emit_SEV()
812 static inline u32 _emit_WFE(unsigned dry_run, u8 buf[], u8 ev, in _emit_WFE() argument
820 ev &= 0x1f; in _emit_WFE()
821 ev <<= 3; in _emit_WFE()
822 buf[1] = ev; in _emit_WFE()
[all …]
/linux-4.1.27/drivers/usb/common/
Dled.c25 void usb_led_activity(enum usb_led_event ev) in usb_led_activity() argument
29 switch (ev) { in usb_led_activity()
/linux-4.1.27/net/ipv4/
Dtcp_dctcp.c242 static void dctcp_update_ack_reserved(struct sock *sk, enum tcp_ca_event ev) in dctcp_update_ack_reserved() argument
246 switch (ev) { in dctcp_update_ack_reserved()
261 static void dctcp_cwnd_event(struct sock *sk, enum tcp_ca_event ev) in dctcp_cwnd_event() argument
263 switch (ev) { in dctcp_cwnd_event()
272 dctcp_update_ack_reserved(sk, ev); in dctcp_cwnd_event()
/linux-4.1.27/arch/sh/kernel/
Dperf_event.c97 int ev; in hw_perf_cache_event() local
112 ev = (*sh_pmu->cache_events)[type][op][result]; in hw_perf_cache_event()
113 if (ev == 0) in hw_perf_cache_event()
115 if (ev == -1) in hw_perf_cache_event()
117 *evp = ev; in hw_perf_cache_event()
/linux-4.1.27/drivers/media/usb/dvb-usb/
Dtechnisat-usb2.c599 struct ir_raw_event ev; in technisat_usb2_get_ir() local
642 ev.pulse = 0; in technisat_usb2_get_ir()
644 ev.pulse = !ev.pulse; in technisat_usb2_get_ir()
645 ev.duration = (*b * FIRMWARE_CLOCK_DIVISOR * FIRMWARE_CLOCK_TICK) / 1000; in technisat_usb2_get_ir()
646 ir_raw_event_store(d->rc_dev, &ev); in technisat_usb2_get_ir()
650 ev.pulse = 0; in technisat_usb2_get_ir()
651 ev.duration = 888888*2; in technisat_usb2_get_ir()
652 ir_raw_event_store(d->rc_dev, &ev); in technisat_usb2_get_ir()
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_tkip.c592 struct iw_michaelmicfailure ev; in ieee80211_michael_mic_failure() local
595 memset(&ev, 0, sizeof(ev)); in ieee80211_michael_mic_failure()
596 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; in ieee80211_michael_mic_failure()
598 ev.flags |= IW_MICFAILURE_GROUP; in ieee80211_michael_mic_failure()
600 ev.flags |= IW_MICFAILURE_PAIRWISE; in ieee80211_michael_mic_failure()
601 ev.src_addr.sa_family = ARPHRD_ETHER; in ieee80211_michael_mic_failure()
602 memcpy(ev.src_addr.sa_data, hdr->addr2, ETH_ALEN); in ieee80211_michael_mic_failure()
604 wrqu.data.length = sizeof(ev); in ieee80211_michael_mic_failure()
605 wireless_send_event(dev, IWEVMICHAELMICFAILURE, &wrqu, (char *) &ev); in ieee80211_michael_mic_failure()
Dieee80211_wx.c249 char *ev = extra; in ieee80211_wx_get_scan() local
251 char *stop = ev + wrqu->data.length;//IW_SCAN_MAX_DATA; in ieee80211_wx_get_scan()
261 if((stop-ev)<200) in ieee80211_wx_get_scan()
268 ev = rtl819x_translate_scan(ieee, ev, stop, network, info); in ieee80211_wx_get_scan()
281 wrqu->data.length = ev - extra; in ieee80211_wx_get_scan()
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_ruc.c232 struct ib_event ev; in ipath_get_rwqe() local
236 ev.device = qp->ibqp.device; in ipath_get_rwqe()
237 ev.element.srq = qp->ibqp.srq; in ipath_get_rwqe()
238 ev.event = IB_EVENT_SRQ_LIMIT_REACHED; in ipath_get_rwqe()
239 handler(&ev, srq->ibsrq.srq_context); in ipath_get_rwqe()
499 struct ib_event ev; in ipath_ruc_loopback() local
501 ev.device = sqp->ibqp.device; in ipath_ruc_loopback()
502 ev.element.qp = &sqp->ibqp; in ipath_ruc_loopback()
503 ev.event = IB_EVENT_QP_LAST_WQE_REACHED; in ipath_ruc_loopback()
504 sqp->ibqp.event_handler(&ev, sqp->ibqp.qp_context); in ipath_ruc_loopback()
Dipath_cq.c71 struct ib_event ev; in ipath_cq_enter() local
73 ev.device = cq->ibcq.device; in ipath_cq_enter()
74 ev.element.cq = &cq->ibcq; in ipath_cq_enter()
75 ev.event = IB_EVENT_CQ_ERR; in ipath_cq_enter()
76 cq->ibcq.event_handler(&ev, cq->ibcq.cq_context); in ipath_cq_enter()
Dipath_ud.c165 struct ib_event ev; in ipath_ud_loopback() local
169 ev.device = qp->ibqp.device; in ipath_ud_loopback()
170 ev.element.srq = qp->ibqp.srq; in ipath_ud_loopback()
171 ev.event = IB_EVENT_SRQ_LIMIT_REACHED; in ipath_ud_loopback()
172 handler(&ev, srq->ibsrq.srq_context); in ipath_ud_loopback()
Dipath_qp.c603 struct ib_event ev; in ipath_modify_qp() local
605 ev.device = qp->ibqp.device; in ipath_modify_qp()
606 ev.element.qp = &qp->ibqp; in ipath_modify_qp()
607 ev.event = IB_EVENT_QP_LAST_WQE_REACHED; in ipath_modify_qp()
608 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in ipath_modify_qp()
/linux-4.1.27/drivers/staging/rtl8192e/
Drtllib_crypt_tkip.c591 struct iw_michaelmicfailure ev; in rtllib_michael_mic_failure() local
594 memset(&ev, 0, sizeof(ev)); in rtllib_michael_mic_failure()
595 ev.flags = keyidx & IW_MICFAILURE_KEY_ID; in rtllib_michael_mic_failure()
597 ev.flags |= IW_MICFAILURE_GROUP; in rtllib_michael_mic_failure()
599 ev.flags |= IW_MICFAILURE_PAIRWISE; in rtllib_michael_mic_failure()
600 ev.src_addr.sa_family = ARPHRD_ETHER; in rtllib_michael_mic_failure()
601 memcpy(ev.src_addr.sa_data, hdr->addr2, ETH_ALEN); in rtllib_michael_mic_failure()
603 wrqu.data.length = sizeof(ev); in rtllib_michael_mic_failure()
604 wireless_send_event(dev, IWEVMICHAELMICFAILURE, &wrqu, (char *) &ev); in rtllib_michael_mic_failure()
Drtllib_wx.c264 char *ev = extra; in rtllib_wx_get_scan() local
265 char *stop = ev + wrqu->data.length; in rtllib_wx_get_scan()
275 if ((stop - ev) < 200) { in rtllib_wx_get_scan()
281 ev = rtl819x_translate_scan(ieee, ev, stop, network, in rtllib_wx_get_scan()
293 wrqu->data.length = ev - extra; in rtllib_wx_get_scan()
/linux-4.1.27/drivers/net/ethernet/toshiba/
Dps3_gelic_wireless.c576 char *ev, in gelic_wl_translate_scan() argument
593 ev = iwe_stream_add_event(info, ev, stop, &iwe, IW_EV_ADDR_LEN); in gelic_wl_translate_scan()
599 ev = iwe_stream_add_point(info, ev, stop, &iwe, scan->essid); in gelic_wl_translate_scan()
606 ev = iwe_stream_add_event(info, ev, stop, &iwe, IW_EV_FREQ_LEN); in gelic_wl_translate_scan()
612 tmp = ev + iwe_stream_lcp_len(info); in gelic_wl_translate_scan()
625 tmp = iwe_stream_add_value(info, ev, tmp, stop, &iwe, in gelic_wl_translate_scan()
630 tmp = iwe_stream_add_value(info, ev, tmp, stop, &iwe, in gelic_wl_translate_scan()
634 if (iwe_stream_lcp_len(info) < (tmp - ev)) in gelic_wl_translate_scan()
635 ev = tmp; in gelic_wl_translate_scan()
644 ev = iwe_stream_add_point(info, ev, stop, &iwe, scan->essid); in gelic_wl_translate_scan()
[all …]
/linux-4.1.27/drivers/input/
Devdev.c71 struct input_event *ev; in __evdev_flush_queue() local
82 ev = &client->buffer[i]; in __evdev_flush_queue()
83 is_report = ev->type == EV_SYN && ev->code == SYN_REPORT; in __evdev_flush_queue()
85 if (ev->type == type) { in __evdev_flush_queue()
93 client->buffer[head].time = ev->time; in __evdev_flush_queue()
94 client->buffer[head].type = ev->type; in __evdev_flush_queue()
95 client->buffer[head].code = ev->code; in __evdev_flush_queue()
96 client->buffer[head].value = ev->value; in __evdev_flush_queue()
113 struct input_event ev; in __evdev_queue_syn_dropped() local
122 ev.time = ktime_to_timeval(time); in __evdev_queue_syn_dropped()
[all …]
/linux-4.1.27/drivers/misc/vmw_vmci/
Dvmci_context.c249 struct vmci_event_ctx ev; in ctx_fire_notification() local
251 ev.msg.hdr.dst = vmci_handle_arr_get_entry(subscriber_array, i); in ctx_fire_notification()
252 ev.msg.hdr.src = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID, in ctx_fire_notification()
254 ev.msg.hdr.payload_size = sizeof(ev) - sizeof(ev.msg.hdr); in ctx_fire_notification()
255 ev.msg.event_data.event = VMCI_EVENT_CTX_REMOVED; in ctx_fire_notification()
256 ev.payload.context_id = context_id; in ctx_fire_notification()
259 &ev.msg.hdr, false); in ctx_fire_notification()
262 ev.msg.event_data.event, in ctx_fire_notification()
263 ev.msg.hdr.dst.context); in ctx_fire_notification()
Dvmci_queue_pair.c942 struct vmci_event_qp ev; in qp_notify_peer_local() local
944 ev.msg.hdr.dst = vmci_make_handle(context_id, VMCI_EVENT_HANDLER); in qp_notify_peer_local()
945 ev.msg.hdr.src = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID, in qp_notify_peer_local()
947 ev.msg.hdr.payload_size = sizeof(ev) - sizeof(ev.msg.hdr); in qp_notify_peer_local()
948 ev.msg.event_data.event = in qp_notify_peer_local()
950 ev.payload.peer_id = context_id; in qp_notify_peer_local()
951 ev.payload.handle = handle; in qp_notify_peer_local()
953 return vmci_event_dispatch(&ev.msg.hdr); in qp_notify_peer_local()
1541 struct vmci_event_qp ev; in qp_notify_peer() local
1555 ev.msg.hdr.dst = vmci_make_handle(peer_id, VMCI_EVENT_HANDLER); in qp_notify_peer()
[all …]
/linux-4.1.27/tools/perf/util/
Dheader.c2570 union perf_event *ev; in perf_event__synthesize_attr() local
2579 ev = malloc(size); in perf_event__synthesize_attr()
2581 if (ev == NULL) in perf_event__synthesize_attr()
2584 ev->attr.attr = *attr; in perf_event__synthesize_attr()
2585 memcpy(ev->attr.id, id, ids * sizeof(u64)); in perf_event__synthesize_attr()
2587 ev->attr.header.type = PERF_RECORD_HEADER_ATTR; in perf_event__synthesize_attr()
2588 ev->attr.header.size = (u16)size; in perf_event__synthesize_attr()
2590 if (ev->attr.header.size == size) in perf_event__synthesize_attr()
2591 err = process(tool, ev, NULL, NULL); in perf_event__synthesize_attr()
2595 free(ev); in perf_event__synthesize_attr()
[all …]
Dsession.c1755 union perf_event *ev; in perf_event__synthesize_id_index() local
1770 ev = zalloc(sz); in perf_event__synthesize_id_index()
1771 if (!ev) in perf_event__synthesize_id_index()
1774 ev->id_index.header.type = PERF_RECORD_ID_INDEX; in perf_event__synthesize_id_index()
1775 ev->id_index.header.size = sz; in perf_event__synthesize_id_index()
1776 ev->id_index.nr = n; in perf_event__synthesize_id_index()
1786 err = process(tool, ev, NULL, machine); in perf_event__synthesize_id_index()
1793 e = &ev->id_index.entries[i++]; in perf_event__synthesize_id_index()
1799 free(ev); in perf_event__synthesize_id_index()
1810 ev->id_index.header.size = sz; in perf_event__synthesize_id_index()
[all …]
/linux-4.1.27/arch/x86/oprofile/
Dop_model_p4.c512 struct p4_event_binding *ev = NULL; in pmc_setup_one_p4_counter() local
528 ev = &(p4_events[counter_config[ctr].event - 1]); in pmc_setup_one_p4_counter()
531 if (ev->bindings[i].virt_counter & counter_bit) { in pmc_setup_one_p4_counter()
534 rdmsr(ev->bindings[i].escr_address, escr, high); in pmc_setup_one_p4_counter()
543 ESCR_SET_EVENT_SELECT(escr, ev->event_select); in pmc_setup_one_p4_counter()
545 wrmsr(ev->bindings[i].escr_address, escr, high); in pmc_setup_one_p4_counter()
552 CCCR_SET_ESCR_SELECT(cccr, ev->escr_select); in pmc_setup_one_p4_counter()
/linux-4.1.27/net/sctp/
Dchunk.c92 struct sctp_ulpevent *ev; in sctp_datamsg_destroy() local
124 ev = sctp_ulpevent_make_send_failed(asoc, chunk, sent, in sctp_datamsg_destroy()
126 if (ev) in sctp_datamsg_destroy()
127 sctp_ulpq_tail_event(&asoc->ulpq, ev); in sctp_datamsg_destroy()
Dsm_statefuns.c225 struct sctp_ulpevent *ev; in sctp_sf_do_4_C() local
250 ev = sctp_ulpevent_make_assoc_change(asoc, 0, SCTP_SHUTDOWN_COMP, in sctp_sf_do_4_C()
252 if (ev) in sctp_sf_do_4_C()
254 SCTP_ULPEVENT(ev)); in sctp_sf_do_4_C()
659 struct sctp_ulpevent *ev, *ai_ev = NULL; in sctp_sf_do_5_1D_ce() local
796 ev = sctp_ulpevent_make_assoc_change(new_asoc, 0, SCTP_COMM_UP, 0, in sctp_sf_do_5_1D_ce()
800 if (!ev) in sctp_sf_do_5_1D_ce()
835 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, SCTP_ULPEVENT(ev)); in sctp_sf_do_5_1D_ce()
845 sctp_ulpevent_free(ev); in sctp_sf_do_5_1D_ce()
882 struct sctp_ulpevent *ev; in sctp_sf_do_5_1E_ca() local
[all …]
Dsm_sideeffect.c893 struct sctp_ulpevent *ev; in sctp_cmd_process_operr() local
898 ev = sctp_ulpevent_make_remote_error(asoc, chunk, 0, in sctp_cmd_process_operr()
900 if (!ev) in sctp_cmd_process_operr()
903 sctp_ulpq_tail_event(&asoc->ulpq, ev); in sctp_cmd_process_operr()
980 struct sctp_ulpevent *ev; in sctp_cmd_assoc_change() local
982 ev = sctp_ulpevent_make_assoc_change(asoc, 0, state, 0, in sctp_cmd_assoc_change()
986 if (ev) in sctp_cmd_assoc_change()
987 sctp_ulpq_tail_event(&asoc->ulpq, ev); in sctp_cmd_assoc_change()
994 struct sctp_ulpevent *ev; in sctp_cmd_adaptation_ind() local
996 ev = sctp_ulpevent_make_adaptation_indication(asoc, GFP_ATOMIC); in sctp_cmd_adaptation_ind()
[all …]
Dulpqueue.c1126 struct sctp_ulpevent *ev = NULL; in sctp_ulpq_abort_pd() local
1135 ev = sctp_ulpevent_make_pdapi(ulpq->asoc, in sctp_ulpq_abort_pd()
1138 if (ev) in sctp_ulpq_abort_pd()
1139 __skb_queue_tail(&sk->sk_receive_queue, sctp_event2skb(ev)); in sctp_ulpq_abort_pd()
1142 if (sctp_ulpq_clear_pd(ulpq) || ev) in sctp_ulpq_abort_pd()
/linux-4.1.27/arch/blackfin/kernel/
Dperf_event.c239 int ev; in hw_perf_cache_event() local
251 ev = cache_events[type][op][result]; in hw_perf_cache_event()
252 if (ev == 0) in hw_perf_cache_event()
254 if (ev == -1) in hw_perf_cache_event()
256 *evp = ev; in hw_perf_cache_event()
/linux-4.1.27/drivers/media/pci/cx88/
Dcx88-input.c532 struct ir_raw_event ev; in cx88_ir_irq() local
547 init_ir_raw_event(&ev); in cx88_ir_irq()
549 ev.pulse = samples & 0x80000000 ? false : true; in cx88_ir_irq()
550 bits = min(todo, 32U - fls(ev.pulse ? samples : ~samples)); in cx88_ir_irq()
551 ev.duration = (bits * (NSEC_PER_SEC / 1000)) / ir_samplerate; in cx88_ir_irq()
552 ir_raw_event_store_with_filter(ir->dev, &ev); in cx88_ir_irq()
/linux-4.1.27/drivers/staging/lustre/lustre/lov/
Dlov_obd.c116 enum obd_notify_event ev);
118 enum obd_notify_event ev, void *data);
355 enum obd_notify_event ev) in lov_set_osc_active() argument
362 lov, uuid->uuid, ev); in lov_set_osc_active()
373 if (ev == OBD_NOTIFY_ACTIVATE && tgt->ltd_exp == NULL && in lov_set_osc_active()
395 if (ev == OBD_NOTIFY_DEACTIVATE || ev == OBD_NOTIFY_ACTIVATE) { in lov_set_osc_active()
396 activate = (ev == OBD_NOTIFY_ACTIVATE) ? 1 : 0; in lov_set_osc_active()
407 } else if (ev == OBD_NOTIFY_INACTIVE || ev == OBD_NOTIFY_ACTIVE) { in lov_set_osc_active()
408 active = (ev == OBD_NOTIFY_ACTIVE) ? 1 : 0; in lov_set_osc_active()
428 CERROR("Unknown event(%d) for uuid %s", ev, uuid->uuid); in lov_set_osc_active()
[all …]
/linux-4.1.27/drivers/pps/
Dpps.c147 unsigned int ev; in pps_cdev_ioctl() local
155 ev = pps->last_ev; in pps_cdev_ioctl()
160 ev != pps->last_ev); in pps_cdev_ioctl()
173 ev != pps->last_ev, in pps_cdev_ioctl()
/linux-4.1.27/drivers/media/usb/uvc/
Duvc_ctrl.c1196 struct v4l2_event *ev, in uvc_ctrl_fill_event() argument
1205 memset(ev->reserved, 0, sizeof(ev->reserved)); in uvc_ctrl_fill_event()
1206 ev->type = V4L2_EVENT_CTRL; in uvc_ctrl_fill_event()
1207 ev->id = v4l2_ctrl.id; in uvc_ctrl_fill_event()
1208 ev->u.ctrl.value = value; in uvc_ctrl_fill_event()
1209 ev->u.ctrl.changes = changes; in uvc_ctrl_fill_event()
1210 ev->u.ctrl.type = v4l2_ctrl.type; in uvc_ctrl_fill_event()
1211 ev->u.ctrl.flags = v4l2_ctrl.flags; in uvc_ctrl_fill_event()
1212 ev->u.ctrl.minimum = v4l2_ctrl.minimum; in uvc_ctrl_fill_event()
1213 ev->u.ctrl.maximum = v4l2_ctrl.maximum; in uvc_ctrl_fill_event()
[all …]
/linux-4.1.27/include/net/sctp/
Dulpevent.h63 static inline struct sk_buff *sctp_event2skb(const struct sctp_ulpevent *ev) in sctp_event2skb() argument
65 return container_of((void *)ev, struct sk_buff, cb); in sctp_event2skb()
Dulpqueue.h61 int sctp_ulpq_tail_event(struct sctp_ulpq *, struct sctp_ulpevent *ev);
/linux-4.1.27/sound/drivers/opl3/
Dopl3_oss.c57 static int snd_opl3_oss_event_input(struct snd_seq_event *ev, int direct, in snd_opl3_oss_event_input() argument
62 if (ev->type != SNDRV_SEQ_EVENT_OSS) in snd_opl3_oss_event_input()
63 snd_midi_process_event(&opl3_ops, ev, opl3->oss_chset); in snd_opl3_oss_event_input()
Dopl3_seq.c155 static int snd_opl3_synth_event_input(struct snd_seq_event * ev, int direct, in snd_opl3_synth_event_input() argument
160 snd_midi_process_event(&opl3_ops, ev, opl3->chset); in snd_opl3_synth_event_input()
/linux-4.1.27/arch/alpha/kernel/
Dperf_event.c608 int ev; in __hw_perf_event_init() local
617 ev = alpha_pmu->event_map[attr->config]; in __hw_perf_event_init()
623 ev = attr->config; in __hw_perf_event_init()
628 if (ev < 0) { in __hw_perf_event_init()
629 return ev; in __hw_perf_event_init()
647 hwc->event_base = ev; in __hw_perf_event_init()
/linux-4.1.27/include/linux/
DmISDNhw.h82 #define schedule_event(s, ev) do { \ argument
83 test_and_set_bit(ev, &((s)->Flags)); \
/linux-4.1.27/drivers/net/wireless/hostap/
Dhostap_hw.c2483 u16 ev; in hostap_bap_tasklet() local
2494 ev = HFA384X_INW(HFA384X_EVSTAT_OFF); in hostap_bap_tasklet()
2495 if (ev == 0xffff || !(ev & HFA384X_BAP0_EVENTS)) in hostap_bap_tasklet()
2497 if (ev & HFA384X_EV_RX) in hostap_bap_tasklet()
2499 if (ev & HFA384X_EV_INFO) in hostap_bap_tasklet()
2501 if (ev & HFA384X_EV_TX) in hostap_bap_tasklet()
2503 if (ev & HFA384X_EV_TXEXC) in hostap_bap_tasklet()
2615 u16 ev; in prism2_interrupt() local
2645 ev = HFA384X_INW(HFA384X_EVSTAT_OFF); in prism2_interrupt()
2646 if (ev == 0xffff) { in prism2_interrupt()
[all …]
/linux-4.1.27/include/net/
Dllc_s_st.h20 llc_sap_ev_t ev; member
Dllc_c_st.h36 llc_conn_ev_t ev; member
/linux-4.1.27/sound/core/
Dcontrol.c159 struct snd_kctl_event *ev; in snd_ctl_notify() local
171 list_for_each_entry(ev, &ctl->events, list) { in snd_ctl_notify()
172 if (ev->id.numid == id->numid) { in snd_ctl_notify()
173 ev->mask |= mask; in snd_ctl_notify()
177 ev = kzalloc(sizeof(*ev), GFP_ATOMIC); in snd_ctl_notify()
178 if (ev) { in snd_ctl_notify()
179 ev->id = *id; in snd_ctl_notify()
180 ev->mask = mask; in snd_ctl_notify()
181 list_add_tail(&ev->list, &ctl->events); in snd_ctl_notify()
1542 struct snd_ctl_event ev; in snd_ctl_read() local
[all …]
/linux-4.1.27/sound/drivers/opl4/
Dopl4_seq.c111 static int snd_opl4_seq_event_input(struct snd_seq_event *ev, int direct, in snd_opl4_seq_event_input() argument
116 snd_midi_process_event(&opl4_ops, ev, opl4->chset); in snd_opl4_seq_event_input()
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
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/scripts/dtc/
Dupdate-dtc-source.sh28 set -ev
/linux-4.1.27/include/uapi/linux/raid/
Dmd_p.h205 __u64 ev = sb->events_hi; in md_event() local
206 return (ev<<32)| sb->events_lo; in md_event()
/linux-4.1.27/drivers/iio/
Dindustrialio-event.c58 struct iio_event_data ev; in iio_push_event() local
64 ev.id = ev_code; in iio_push_event()
65 ev.timestamp = timestamp; in iio_push_event()
67 copied = kfifo_put(&ev_int->det_events, ev); in iio_push_event()
/linux-4.1.27/arch/metag/kernel/perf/
Dperf_event.c517 int ev; in _hw_perf_cache_event() local
532 ev = (*metag_pmu->cache_events)[type][op][result]; in _hw_perf_cache_event()
533 if (ev == 0) in _hw_perf_cache_event()
535 if (ev == -1) in _hw_perf_cache_event()
537 *evp = ev; in _hw_perf_cache_event()
/linux-4.1.27/drivers/net/ethernet/sfc/
Dmcdi_mon.c106 void efx_mcdi_sensor_event(struct efx_nic *efx, efx_qword_t *ev) in efx_mcdi_sensor_event() argument
112 type = EFX_QWORD_FIELD(*ev, MCDI_EVENT_SENSOREVT_MONITOR); in efx_mcdi_sensor_event()
113 state = EFX_QWORD_FIELD(*ev, MCDI_EVENT_SENSOREVT_STATE); in efx_mcdi_sensor_event()
114 value = EFX_QWORD_FIELD(*ev, MCDI_EVENT_SENSOREVT_VALUE); in efx_mcdi_sensor_event()
Dmcdi_port.c838 void efx_mcdi_process_link_change(struct efx_nic *efx, efx_qword_t *ev) in efx_mcdi_process_link_change() argument
842 speed = EFX_QWORD_FIELD(*ev, MCDI_EVENT_LINKCHANGE_SPEED); in efx_mcdi_process_link_change()
846 flags = EFX_QWORD_FIELD(*ev, MCDI_EVENT_LINKCHANGE_LINK_FLAGS); in efx_mcdi_process_link_change()
847 fcntl = EFX_QWORD_FIELD(*ev, MCDI_EVENT_LINKCHANGE_FCNTL); in efx_mcdi_process_link_change()
848 lpa = EFX_QWORD_FIELD(*ev, MCDI_EVENT_LINKCHANGE_LP_CAP); in efx_mcdi_process_link_change()
Dptp.c1651 void efx_ptp_event(struct efx_nic *efx, efx_qword_t *ev) in efx_ptp_event() argument
1654 int code = EFX_QWORD_FIELD(*ev, MCDI_EVENT_CODE); in efx_ptp_event()
1674 ptp->evt_frags[ptp->evt_frag_idx++] = *ev; in efx_ptp_event()
1675 if (!MCDI_EVENT_FIELD(*ev, CONT)) { in efx_ptp_event()
1700 void efx_time_sync_event(struct efx_channel *channel, efx_qword_t *ev) in efx_time_sync_event() argument
1702 channel->sync_timestamp_major = MCDI_EVENT_FIELD(*ev, PTP_TIME_MAJOR); in efx_time_sync_event()
1704 MCDI_EVENT_FIELD(*ev, PTP_TIME_MINOR_26_19) << 19; in efx_time_sync_event()
/linux-4.1.27/drivers/net/wireless/ipw2x00/
Dlibipw_wx.c272 char *ev = extra; in libipw_wx_get_scan() local
273 char *stop = ev + wrqu->data.length; in libipw_wx_get_scan()
282 if (stop - ev < SCAN_ITEM_SIZE) { in libipw_wx_get_scan()
289 ev = libipw_translate_scan(ieee, ev, stop, network, in libipw_wx_get_scan()
302 wrqu->data.length = ev - extra; in libipw_wx_get_scan()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
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) in ath_chanctx_beacon_recv_ev() argument
500 enum ath_chanctx_event ev) in ath_chanctx_beacon_sent_ev() argument
505 enum ath_chanctx_event ev) in ath_chanctx_event() argument
Dchannel.c198 static const char *chanctx_event_string(enum ath_chanctx_event ev) in chanctx_event_string() argument
200 switch (ev) { in chanctx_event_string()
475 enum ath_chanctx_event ev) in ath_chanctx_event() argument
492 chanctx_event_string(ev), in ath_chanctx_event()
495 switch (ev) { in ath_chanctx_event()
757 enum ath_chanctx_event ev) in ath_chanctx_beacon_sent_ev() argument
760 ath_chanctx_event(sc, NULL, ev); in ath_chanctx_beacon_sent_ev()
764 enum ath_chanctx_event ev) in ath_chanctx_beacon_recv_ev() argument
766 ath_chanctx_event(sc, NULL, ev); in ath_chanctx_beacon_recv_ev()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
Dmain.c335 u32 ev, time, data; /* event log data */ in iwl_print_cont_event_trace() local
364 ev = iwl_read32(priv->trans, HBUS_TARG_MEM_RDAT); in iwl_print_cont_event_trace()
368 priv->trans->dev, 0, time, ev); in iwl_print_cont_event_trace()
372 priv->trans->dev, time, data, ev); in iwl_print_cont_event_trace()
1603 u32 ev, time, data; /* event log data */ in iwl_print_event_log() local
1637 ev = iwl_read32(trans, HBUS_TARG_MEM_RDAT); in iwl_print_event_log()
1644 time, ev); in iwl_print_event_log()
1647 time, ev); in iwl_print_event_log()
1649 time, ev); in iwl_print_event_log()
1656 time, data, ev); in iwl_print_event_log()
[all …]
/linux-4.1.27/drivers/staging/nvec/
Dnvec.c361 static void nvec_event_mask(char *ev, u32 mask) in nvec_event_mask() argument
363 ev[3] = mask >> 16 & 0xff; in nvec_event_mask()
364 ev[4] = mask >> 24 & 0xff; in nvec_event_mask()
365 ev[5] = mask >> 0 & 0xff; in nvec_event_mask()
366 ev[6] = mask >> 8 & 0xff; in nvec_event_mask()
/linux-4.1.27/sound/pci/hda/
Dhda_bind.c48 static void hda_codec_unsol_event(struct hdac_device *dev, unsigned int ev) in hda_codec_unsol_event() argument
53 codec->patch_ops.unsol_event(codec, ev); in hda_codec_unsol_event()
/linux-4.1.27/drivers/input/misc/
Duinput.c441 struct input_event ev; in uinput_inject_events() local
454 if (input_event_from_user(buffer + bytes, &ev)) in uinput_inject_events()
457 input_event(udev->dev, ev.type, ev.code, ev.value); in uinput_inject_events()
/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-vid-common.c524 struct v4l2_event ev = { in vivid_send_source_change() local
531 ev.id = i; in vivid_send_source_change()
534 v4l2_event_queue(&dev->vid_cap_dev, &ev); in vivid_send_source_change()
536 v4l2_event_queue(&dev->vbi_cap_dev, &ev); in vivid_send_source_change()
/linux-4.1.27/drivers/scsi/megaraid/
Dmegaraid_sas_base.c2623 struct megasas_aen_event *ev; in megasas_service_aen() local
2624 ev = kzalloc(sizeof(*ev), GFP_ATOMIC); in megasas_service_aen()
2625 if (!ev) { in megasas_service_aen()
2628 ev->instance = instance; in megasas_service_aen()
2629 instance->ev = ev; in megasas_service_aen()
2630 INIT_DELAYED_WORK(&ev->hotplug_work, in megasas_service_aen()
2632 schedule_delayed_work(&ev->hotplug_work, 0); in megasas_service_aen()
5229 instance->ev = NULL; in megasas_probe_one()
5575 if (instance->ev != NULL) { in megasas_suspend()
5576 struct megasas_aen_event *ev = instance->ev; in megasas_suspend() local
[all …]
/linux-4.1.27/include/uapi/linux/
Dsoundcard.h1229 #define _TIMER_EVENT(ev, parm) {_SEQ_NEEDBUF(8);\ argument
1231 _seqbuf[_seqbufptr+1] = (ev); \
1251 #define _LOCAL_EVENT(ev, parm) {_SEQ_NEEDBUF(8);\ argument
1253 _seqbuf[_seqbufptr+1] = (ev); \
/linux-4.1.27/net/ceph/
Dosdmap.c541 u8 ev, cv; in decode_pool() local
546 ev = ceph_decode_8(p); /* encoding version */ in decode_pool()
548 if (ev < 5) { in decode_pool()
549 pr_warn("got v %d < 5 cv %d of ceph_pg_pool\n", ev, cv); in decode_pool()
553 pr_warn("got v %d cv %d > 9 of ceph_pg_pool\n", ev, cv); in decode_pool()
589 if (ev >= 7) in decode_pool()
592 if (ev >= 8) in decode_pool()
595 if (ev >= 9) { in decode_pool()
/linux-4.1.27/drivers/iio/proximity/
Dsx9500.c348 u64 ev; in sx9500_irq_thread_handler() local
359 ev = IIO_UNMOD_EVENT_CODE(IIO_PROXIMITY, in sx9500_irq_thread_handler()
363 iio_push_event(indio_dev, ev, iio_get_time_ns()); in sx9500_irq_thread_handler()
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dlustre_net.h393 void (*cbid_fn)(lnet_event_t *ev); /* specific callback fn */
2283 extern void request_out_callback(lnet_event_t *ev);
2284 extern void reply_in_callback(lnet_event_t *ev);
2285 extern void client_bulk_callback(lnet_event_t *ev);
2286 extern void request_in_callback(lnet_event_t *ev);
2287 extern void reply_out_callback(lnet_event_t *ev);
/linux-4.1.27/scripts/kconfig/
Dqconf.cc663 void ConfigList::keyPressEvent(QKeyEvent* ev) in keyPressEvent() argument
670 if (ev->key() == Qt::Key_Escape && mode != fullMode && mode != listMode) { in keyPressEvent()
672 ev->accept(); in keyPressEvent()
677 Parent::keyPressEvent(ev); in keyPressEvent()
682 switch (ev->key()) { in keyPressEvent()
711 Parent::keyPressEvent(ev); in keyPressEvent()
714 ev->accept(); in keyPressEvent()

12