Home
last modified time | relevance | path

Searched refs:ev (Results 1 – 25 of 28) 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()
205 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_state_process() local
207 ev->ind_cfm_flag = 0; in llc_sap_state_process()
210 if (ev->ind_cfm_flag == LLC_IND && skb->sk->sk_state != TCP_LISTEN) { in llc_sap_state_process()
[all …]
Dllc_if.c46 struct llc_conn_state_ev *ev; in llc_build_and_send_pkt() local
58 ev = llc_conn_ev(skb); in llc_build_and_send_pkt()
59 ev->type = LLC_CONN_EV_TYPE_PRIM; in llc_build_and_send_pkt()
60 ev->prim = LLC_DATA_PRIM; in llc_build_and_send_pkt()
61 ev->prim_type = LLC_PRIM_TYPE_REQ; in llc_build_and_send_pkt()
107 struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_establish_connection() local
109 ev->type = LLC_CONN_EV_TYPE_PRIM; in llc_establish_connection()
110 ev->prim = LLC_CONN_PRIM; in llc_establish_connection()
111 ev->prim_type = LLC_PRIM_TYPE_REQ; in llc_establish_connection()
132 struct llc_conn_state_ev *ev; in llc_send_disc() local
[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_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()
79 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_action_send_xid_c() local
82 llc_pdu_header_init(skb, LLC_PDU_TYPE_U_XID, ev->saddr.lsap, in llc_sap_action_send_xid_c()
83 ev->daddr.lsap, LLC_PDU_CMD); in llc_sap_action_send_xid_c()
85 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); in llc_sap_action_send_xid_c()
135 struct llc_sap_state_ev *ev = llc_sap_ev(skb); in llc_sap_action_send_test_c() local
138 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_conn.c37 struct sk_buff *ev);
65 struct llc_conn_state_ev *ev = llc_conn_ev(skb); in llc_conn_state_process() local
67 ev->ind_prim = ev->cfm_prim = 0; in llc_conn_state_process()
77 switch (ev->ind_prim) { in llc_conn_state_process()
122 if (ev->ind_prim) in llc_conn_state_process()
124 __func__, ev->ind_prim); in llc_conn_state_process()
129 switch (ev->cfm_prim) { in llc_conn_state_process()
139 if (ev->status) { in llc_conn_state_process()
166 if (ev->cfm_prim) in llc_conn_state_process()
168 __func__, ev->cfm_prim); 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.c2147 struct hci_ev_conn_complete *ev = (void *) skb->data; in hci_conn_complete_evt() local
2154 conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr); in hci_conn_complete_evt()
2156 if (ev->link_type != SCO_LINK) in hci_conn_complete_evt()
2159 conn = hci_conn_hash_lookup_ba(hdev, ESCO_LINK, &ev->bdaddr); in hci_conn_complete_evt()
2166 if (!ev->status) { in hci_conn_complete_evt()
2167 conn->handle = __le16_to_cpu(ev->handle); in hci_conn_complete_evt()
2174 !hci_find_link_key(hdev, &ev->bdaddr)) in hci_conn_complete_evt()
2193 cp.handle = ev->handle; in hci_conn_complete_evt()
2203 cp.handle = ev->handle; in hci_conn_complete_evt()
2212 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.c1469 struct mgmt_ev_advertising_added ev; in advertising_added() local
1471 ev.instance = instance; in advertising_added()
1473 mgmt_event(MGMT_EV_ADVERTISING_ADDED, hdev, &ev, sizeof(ev), sk); in advertising_added()
1479 struct mgmt_ev_advertising_removed ev; in advertising_removed() local
1481 ev.instance = instance; in advertising_removed()
1483 mgmt_event(MGMT_EV_ADVERTISING_REMOVED, hdev, &ev, sizeof(ev), sk); in advertising_removed()
1725 __le32 ev = cpu_to_le32(get_current_settings(hdev)); in new_settings() local
1727 return mgmt_generic_event(MGMT_EV_NEW_SETTINGS, hdev, &ev, in new_settings()
1728 sizeof(ev), skip); in new_settings()
3022 struct mgmt_ev_device_unpaired ev; in device_unpaired() local
[all …]
Dhci_sock.c443 struct hci_ev_stack_internal *ev; in hci_si_event() local
446 skb = bt_skb_alloc(HCI_EVENT_HDR_SIZE + sizeof(*ev) + dlen, GFP_ATOMIC); in hci_si_event()
452 hdr->plen = sizeof(*ev) + dlen; in hci_si_event()
454 ev = (void *) skb_put(skb, sizeof(*ev) + dlen); in hci_si_event()
455 ev->type = type; in hci_si_event()
456 memcpy(ev->data, data, dlen); in hci_si_event()
483 struct hci_ev_si_device ev; in hci_sock_dev_event() local
486 ev.event = event; in hci_sock_dev_event()
487 ev.dev_id = hdev->id; in hci_sock_dev_event()
488 hci_si_event(NULL, HCI_EV_SI_DEVICE, sizeof(ev), &ev); in hci_sock_dev_event()
/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 …]
/net/wireless/
Dsme.c765 struct cfg80211_event *ev; in cfg80211_connect_result() local
768 ev = kzalloc(sizeof(*ev) + req_ie_len + resp_ie_len, gfp); in cfg80211_connect_result()
769 if (!ev) in cfg80211_connect_result()
772 ev->type = EVENT_CONNECT_RESULT; in cfg80211_connect_result()
774 memcpy(ev->cr.bssid, bssid, ETH_ALEN); in cfg80211_connect_result()
776 ev->cr.req_ie = ((u8 *)ev) + sizeof(*ev); in cfg80211_connect_result()
777 ev->cr.req_ie_len = req_ie_len; in cfg80211_connect_result()
778 memcpy((void *)ev->cr.req_ie, req_ie, req_ie_len); in cfg80211_connect_result()
781 ev->cr.resp_ie = ((u8 *)ev) + sizeof(*ev) + req_ie_len; in cfg80211_connect_result()
782 ev->cr.resp_ie_len = resp_ie_len; in cfg80211_connect_result()
[all …]
Dutil.c867 struct cfg80211_event *ev; in cfg80211_process_wdev_events() local
873 ev = list_first_entry(&wdev->event_list, in cfg80211_process_wdev_events()
875 list_del(&ev->list); in cfg80211_process_wdev_events()
879 switch (ev->type) { in cfg80211_process_wdev_events()
881 if (!is_zero_ether_addr(ev->cr.bssid)) in cfg80211_process_wdev_events()
882 bssid = ev->cr.bssid; in cfg80211_process_wdev_events()
885 ev->cr.req_ie, ev->cr.req_ie_len, in cfg80211_process_wdev_events()
886 ev->cr.resp_ie, ev->cr.resp_ie_len, in cfg80211_process_wdev_events()
887 ev->cr.status, in cfg80211_process_wdev_events()
888 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.c966 struct cfg80211_event *ev; in cfg80211_stop_iface() local
971 ev = kzalloc(sizeof(*ev), gfp); in cfg80211_stop_iface()
972 if (!ev) in cfg80211_stop_iface()
975 ev->type = EVENT_STOPPED; in cfg80211_stop_iface()
978 list_add_tail(&ev->list, &wdev->event_list); in cfg80211_stop_iface()
/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.c233 struct sctp_ulpevent *ev; in sctp_sf_do_4_C() local
258 ev = sctp_ulpevent_make_assoc_change(asoc, 0, SCTP_SHUTDOWN_COMP, in sctp_sf_do_4_C()
260 if (ev) in sctp_sf_do_4_C()
262 SCTP_ULPEVENT(ev)); in sctp_sf_do_4_C()
699 struct sctp_ulpevent *ev, *ai_ev = NULL; in sctp_sf_do_5_1D_ce() local
809 ev = sctp_ulpevent_make_assoc_change(new_asoc, 0, SCTP_COMM_UP, 0, in sctp_sf_do_5_1D_ce()
813 if (!ev) in sctp_sf_do_5_1D_ce()
848 sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP, SCTP_ULPEVENT(ev)); in sctp_sf_do_5_1D_ce()
858 sctp_ulpevent_free(ev); in sctp_sf_do_5_1D_ce()
895 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()
/net/ipv4/
Dtcp_dctcp.c228 static void dctcp_cwnd_event(struct sock *sk, enum tcp_ca_event ev) in dctcp_cwnd_event() argument
230 switch (ev) { in dctcp_cwnd_event()
/net/ceph/
Dosdmap.c542 u8 ev, cv; in decode_pool() local
547 ev = ceph_decode_8(p); /* encoding version */ in decode_pool()
549 if (ev < 5) { in decode_pool()
550 pr_warn("got v %d < 5 cv %d of ceph_pg_pool\n", ev, cv); in decode_pool()
554 pr_warn("got v %d cv %d > 9 of ceph_pg_pool\n", ev, cv); in decode_pool()
590 if (ev >= 7) in decode_pool()
593 if (ev >= 8) in decode_pool()
596 if (ev >= 9) { in decode_pool()

12