Home
last modified time | relevance | path

Searched refs:ev (Results 1 – 25 of 26) sorted by relevance

12

/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_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_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_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 …]
/net/bluetooth/
Dhci_event.c1671 struct hci_ev_conn_complete *ev = (void *) skb->data; in hci_conn_complete_evt() local
1678 conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr); in hci_conn_complete_evt()
1680 if (ev->link_type != SCO_LINK) in hci_conn_complete_evt()
1683 conn = hci_conn_hash_lookup_ba(hdev, ESCO_LINK, &ev->bdaddr); in hci_conn_complete_evt()
1690 if (!ev->status) { in hci_conn_complete_evt()
1691 conn->handle = __le16_to_cpu(ev->handle); in hci_conn_complete_evt()
1698 !hci_find_link_key(hdev, &ev->bdaddr)) in hci_conn_complete_evt()
1716 cp.handle = ev->handle; in hci_conn_complete_evt()
1724 cp.handle = ev->handle; in hci_conn_complete_evt()
1732 mgmt_connect_failed(hdev, &ev->bdaddr, conn->type, in hci_conn_complete_evt()
[all …]
Dmgmt.c213 struct mgmt_ev_cmd_status *ev; in cmd_status() local
218 skb = alloc_skb(sizeof(*hdr) + sizeof(*ev), GFP_KERNEL); in cmd_status()
226 hdr->len = cpu_to_le16(sizeof(*ev)); in cmd_status()
228 ev = (void *) skb_put(skb, sizeof(*ev)); in cmd_status()
229 ev->status = status; in cmd_status()
230 ev->opcode = cpu_to_le16(cmd); in cmd_status()
244 struct mgmt_ev_cmd_complete *ev; in cmd_complete() local
249 skb = alloc_skb(sizeof(*hdr) + sizeof(*ev) + rp_len, GFP_KERNEL); in cmd_complete()
257 hdr->len = cpu_to_le16(sizeof(*ev) + rp_len); in cmd_complete()
259 ev = (void *) skb_put(skb, sizeof(*ev) + rp_len); in cmd_complete()
[all …]
Dhci_sock.c344 struct hci_ev_stack_internal *ev; in hci_si_event() local
347 skb = bt_skb_alloc(HCI_EVENT_HDR_SIZE + sizeof(*ev) + dlen, GFP_ATOMIC); in hci_si_event()
353 hdr->plen = sizeof(*ev) + dlen; in hci_si_event()
355 ev = (void *) skb_put(skb, sizeof(*ev) + dlen); in hci_si_event()
356 ev->type = type; in hci_si_event()
357 memcpy(ev->data, data, dlen); in hci_si_event()
370 struct hci_ev_si_device ev; in hci_sock_dev_event() local
386 ev.event = event; in hci_sock_dev_event()
387 ev.dev_id = hdev->id; in hci_sock_dev_event()
388 hci_si_event(NULL, HCI_EV_SI_DEVICE, sizeof(ev), &ev); in hci_sock_dev_event()
Dhci_core.c85 struct hci_ev_cmd_complete *ev; in hci_get_cmd_complete() local
118 if (skb->len < sizeof(*ev)) { in hci_get_cmd_complete()
123 ev = (void *) skb->data; in hci_get_cmd_complete()
124 skb_pull(skb, sizeof(*ev)); in hci_get_cmd_complete()
126 if (opcode == __le16_to_cpu(ev->opcode)) in hci_get_cmd_complete()
130 __le16_to_cpu(ev->opcode)); in hci_get_cmd_complete()
/net/mac80211/
Drc80211_pid_debugfs.c27 struct rc_pid_event *ev; in rate_control_pid_event() local
31 ev = &(buf->ring[buf->next_entry]); in rate_control_pid_event()
34 ev->timestamp = jiffies; in rate_control_pid_event()
35 ev->id = buf->ev_count++; in rate_control_pid_event()
36 ev->type = type; in rate_control_pid_event()
37 ev->data = *data; in rate_control_pid_event()
138 struct rc_pid_event *ev; in rate_control_pid_events_read() local
162 ev = &(events->ring[file_info->next_entry]); in rate_control_pid_events_read()
170 p = snprintf(pb, length, "%u %lu ", ev->id, ev->timestamp); in rate_control_pid_events_read()
171 switch (ev->type) { in rate_control_pid_events_read()
[all …]
/net/rfkill/
Dcore.c83 struct rfkill_event ev; member
194 static void rfkill_fill_event(struct rfkill_event *ev, struct rfkill *rfkill, in rfkill_fill_event() argument
199 ev->idx = rfkill->idx; in rfkill_fill_event()
200 ev->type = rfkill->type; in rfkill_fill_event()
201 ev->op = op; in rfkill_fill_event()
204 ev->hard = !!(rfkill->state & RFKILL_BLOCK_HW); in rfkill_fill_event()
205 ev->soft = !!(rfkill->state & (RFKILL_BLOCK_SW | in rfkill_fill_event()
213 struct rfkill_int_event *ev; in rfkill_send_events() local
216 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in rfkill_send_events()
217 if (!ev) in rfkill_send_events()
[all …]
/net/wireless/
Dsme.c543 struct cfg80211_event *ev; in cfg80211_connect_result() local
548 ev = kzalloc(sizeof(*ev) + req_ie_len + resp_ie_len, gfp); in cfg80211_connect_result()
549 if (!ev) in cfg80211_connect_result()
552 ev->type = EVENT_CONNECT_RESULT; in cfg80211_connect_result()
554 memcpy(ev->cr.bssid, bssid, ETH_ALEN); in cfg80211_connect_result()
556 ev->cr.req_ie = ((u8 *)ev) + sizeof(*ev); in cfg80211_connect_result()
557 ev->cr.req_ie_len = req_ie_len; in cfg80211_connect_result()
558 memcpy((void *)ev->cr.req_ie, req_ie, req_ie_len); in cfg80211_connect_result()
561 ev->cr.resp_ie = ((u8 *)ev) + sizeof(*ev) + req_ie_len; in cfg80211_connect_result()
562 ev->cr.resp_ie_len = resp_ie_len; in cfg80211_connect_result()
[all …]
Dutil.c734 struct cfg80211_event *ev; in cfg80211_process_wdev_events() local
740 ev = list_first_entry(&wdev->event_list, in cfg80211_process_wdev_events()
742 list_del(&ev->list); in cfg80211_process_wdev_events()
746 switch (ev->type) { in cfg80211_process_wdev_events()
748 if (!is_zero_ether_addr(ev->cr.bssid)) in cfg80211_process_wdev_events()
749 bssid = ev->cr.bssid; in cfg80211_process_wdev_events()
752 ev->cr.req_ie, ev->cr.req_ie_len, in cfg80211_process_wdev_events()
753 ev->cr.resp_ie, ev->cr.resp_ie_len, in cfg80211_process_wdev_events()
754 ev->cr.status, in cfg80211_process_wdev_events()
755 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
69 ev = kzalloc(sizeof(*ev), gfp); in cfg80211_ibss_joined()
70 if (!ev) in cfg80211_ibss_joined()
73 ev->type = EVENT_IBSS_JOINED; in cfg80211_ibss_joined()
74 memcpy(ev->cr.bssid, bssid, ETH_ALEN); in cfg80211_ibss_joined()
77 list_add_tail(&ev->list, &wdev->event_list); in cfg80211_ibss_joined()
/net/sctp/
Dsm_statefuns.c229 struct sctp_ulpevent *ev; in sctp_sf_do_4_C() local
254 ev = sctp_ulpevent_make_assoc_change(asoc, 0, SCTP_SHUTDOWN_COMP, in sctp_sf_do_4_C()
256 if (ev) in sctp_sf_do_4_C()
258 SCTP_ULPEVENT(ev)); in sctp_sf_do_4_C()
663 struct sctp_ulpevent *ev, *ai_ev = NULL; in sctp_sf_do_5_1D_ce() local
798 ev = sctp_ulpevent_make_assoc_change(new_asoc, 0, SCTP_COMM_UP, 0, in sctp_sf_do_5_1D_ce()
802 if (!ev) in sctp_sf_do_5_1D_ce()
837 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, SCTP_ULPEVENT(ev)); in sctp_sf_do_5_1D_ce()
847 sctp_ulpevent_free(ev); in sctp_sf_do_5_1D_ce()
884 struct sctp_ulpevent *ev; in sctp_sf_do_5_1E_ca() local
[all …]
Dchunk.c99 struct sctp_ulpevent *ev; in sctp_datamsg_destroy() local
131 ev = sctp_ulpevent_make_send_failed(asoc, chunk, sent, in sctp_datamsg_destroy()
133 if (ev) in sctp_datamsg_destroy()
134 sctp_ulpq_tail_event(&asoc->ulpq, ev); in sctp_datamsg_destroy()
Dsm_sideeffect.c894 struct sctp_ulpevent *ev; in sctp_cmd_process_operr() local
899 ev = sctp_ulpevent_make_remote_error(asoc, chunk, 0, in sctp_cmd_process_operr()
901 if (!ev) in sctp_cmd_process_operr()
904 sctp_ulpq_tail_event(&asoc->ulpq, ev); in sctp_cmd_process_operr()
981 struct sctp_ulpevent *ev; in sctp_cmd_assoc_change() local
983 ev = sctp_ulpevent_make_assoc_change(asoc, 0, state, 0, in sctp_cmd_assoc_change()
987 if (ev) in sctp_cmd_assoc_change()
988 sctp_ulpq_tail_event(&asoc->ulpq, ev); in sctp_cmd_assoc_change()
995 struct sctp_ulpevent *ev; in sctp_cmd_adaptation_ind() local
997 ev = sctp_ulpevent_make_adaptation_indication(asoc, GFP_ATOMIC); in sctp_cmd_adaptation_ind()
[all …]
Dulpqueue.c1127 struct sctp_ulpevent *ev = NULL; in sctp_ulpq_abort_pd() local
1136 ev = sctp_ulpevent_make_pdapi(ulpq->asoc, in sctp_ulpq_abort_pd()
1139 if (ev) in sctp_ulpq_abort_pd()
1140 __skb_queue_tail(&sk->sk_receive_queue, sctp_event2skb(ev)); in sctp_ulpq_abort_pd()
1143 if (sctp_ulpq_clear_pd(ulpq) || ev) in sctp_ulpq_abort_pd()
Dipv6.c96 static int sctp_inet6addr_event(struct notifier_block *this, unsigned long ev, in sctp_inet6addr_event() argument
105 switch (ev) { in sctp_inet6addr_event()
799 struct sctp_ulpevent *ev = sctp_skb2event(skb); in sctp_inet6_skb_msgname() local
800 sin6->sin6_scope_id = ev->iif; in sctp_inet6_skb_msgname()
/net/ceph/
Dosdmap.c506 u8 ev, cv; in __decode_pool() local
511 ev = ceph_decode_8(p); /* encoding version */ in __decode_pool()
513 if (ev < 5) { in __decode_pool()
514 pr_warning("got v %d < 5 cv %d of ceph_pg_pool\n", ev, cv); in __decode_pool()
518 pr_warning("got v %d cv %d > 7 of ceph_pg_pool\n", ev, cv); in __decode_pool()

12