Home
last modified time | relevance | path

Searched refs:ctrl (Results 1 – 25 of 27) sorted by relevance

12

/net/bluetooth/cmtp/
Dcapi.c186 struct capi_ctr *ctrl = &session->ctrl; in cmtp_recv_interopmsg() local
240 if (!info && ctrl) { in cmtp_recv_interopmsg()
241 memcpy(&ctrl->profile, in cmtp_recv_interopmsg()
245 capi_ctr_ready(ctrl); in cmtp_recv_interopmsg()
254 if (!info && ctrl) { in cmtp_recv_interopmsg()
258 memset(ctrl->manu, 0, CAPI_MANUFACTURER_LEN); in cmtp_recv_interopmsg()
259 strncpy(ctrl->manu, in cmtp_recv_interopmsg()
269 if (!info && ctrl) { in cmtp_recv_interopmsg()
270 ctrl->version.majorversion = CAPIMSG_U32(skb->data, CAPI_MSG_BASELEN + 16); in cmtp_recv_interopmsg()
271 ctrl->version.minorversion = CAPIMSG_U32(skb->data, CAPI_MSG_BASELEN + 20); in cmtp_recv_interopmsg()
[all …]
Dcmtp.h91 struct capi_ctr ctrl; member
/net/bluetooth/
Damp.c17 void amp_ctrl_get(struct amp_ctrl *ctrl) in amp_ctrl_get() argument
19 BT_DBG("ctrl %p orig refcnt %d", ctrl, in amp_ctrl_get()
20 kref_read(&ctrl->kref)); in amp_ctrl_get()
22 kref_get(&ctrl->kref); in amp_ctrl_get()
27 struct amp_ctrl *ctrl = container_of(kref, struct amp_ctrl, kref); in amp_ctrl_destroy() local
29 BT_DBG("ctrl %p", ctrl); in amp_ctrl_destroy()
31 kfree(ctrl->assoc); in amp_ctrl_destroy()
32 kfree(ctrl); in amp_ctrl_destroy()
35 int amp_ctrl_put(struct amp_ctrl *ctrl) in amp_ctrl_put() argument
37 BT_DBG("ctrl %p orig refcnt %d", ctrl, in amp_ctrl_put()
[all …]
Da2mp.c337 struct amp_ctrl *ctrl; in a2mp_getinfo_rsp() local
347 ctrl = amp_ctrl_add(mgr, rsp->id); in a2mp_getinfo_rsp()
348 if (!ctrl) in a2mp_getinfo_rsp()
408 struct amp_ctrl *ctrl; in a2mp_getampassoc_rsp() local
424 ctrl = amp_ctrl_lookup(mgr, rsp->id); in a2mp_getampassoc_rsp()
425 if (ctrl) { in a2mp_getampassoc_rsp()
430 amp_ctrl_put(ctrl); in a2mp_getampassoc_rsp()
434 ctrl->assoc = assoc; in a2mp_getampassoc_rsp()
435 ctrl->assoc_len = assoc_len; in a2mp_getampassoc_rsp()
436 ctrl->assoc_rem_len = assoc_len; in a2mp_getampassoc_rsp()
[all …]
Damp.h20 int amp_ctrl_put(struct amp_ctrl *ctrl);
21 void amp_ctrl_get(struct amp_ctrl *ctrl);
/net/caif/
Dcfctrl.c22 static int handle_loop(struct cfctrl *ctrl, in handle_loop() argument
27 static int handle_loop(struct cfctrl *ctrl,
31 static void cfctrl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
63 struct cfctrl *ctrl = container_obj(layer); in cfctrl_remove() local
65 spin_lock_bh(&ctrl->info_list_lock); in cfctrl_remove()
66 list_for_each_entry_safe(p, tmp, &ctrl->list, list) { in cfctrl_remove()
70 spin_unlock_bh(&ctrl->info_list_lock); in cfctrl_remove()
129 static void cfctrl_insert_req(struct cfctrl *ctrl, in cfctrl_insert_req() argument
132 spin_lock_bh(&ctrl->info_list_lock); in cfctrl_insert_req()
133 atomic_inc(&ctrl->req_seq_no); in cfctrl_insert_req()
[all …]
Dcfsrvl.c28 static void cfservl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfservl_ctrlcmd() argument
36 switch (ctrl) { in cfservl_ctrlcmd()
39 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfservl_ctrlcmd()
44 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfservl_ctrlcmd()
84 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfservl_ctrlcmd()
87 pr_warn("Unexpected ctrl in cfsrvl (%d)\n", ctrl); in cfservl_ctrlcmd()
89 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfservl_ctrlcmd()
95 static int cfservl_modemcmd(struct cflayer *layr, enum caif_modemcmd ctrl) in cfservl_modemcmd() argument
106 switch (ctrl) { in cfservl_modemcmd()
Dcfcnfg.c57 struct cflayer *ctrl; member
86 this->ctrl = cfctrl_create(); in cfcnfg_create()
87 if (!this->ctrl) in cfcnfg_create()
90 resp = cfctrl_get_respfuncs(this->ctrl); in cfcnfg_create()
102 cfmuxl_set_uplayer(this->mux, this->ctrl, 0); in cfcnfg_create()
103 layer_set_dn(this->ctrl, this->mux); in cfcnfg_create()
104 layer_set_up(this->ctrl, this); in cfcnfg_create()
112 kfree(this->ctrl); in cfcnfg_create()
124 cfctrl_remove(cfg->ctrl); in cfcnfg_remove()
185 cfctrl_cancel_req(cfg->ctrl, adap_layer); in caif_disconnect_client()
[all …]
Dcfmuxl.c44 static void cfmuxl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
246 static void cfmuxl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfmuxl_ctrlcmd() argument
257 if ((ctrl == _CAIF_CTRLCMD_PHYIF_DOWN_IND || in cfmuxl_ctrlcmd()
258 ctrl == CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND) && in cfmuxl_ctrlcmd()
263 layer->ctrlcmd(layer, ctrl, phyid); in cfmuxl_ctrlcmd()
Dcfserl.c31 static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
184 static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfserl_ctrlcmd() argument
187 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfserl_ctrlcmd()
Dcffrml.c30 static void cffrml_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
169 static void cffrml_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cffrml_ctrlcmd() argument
173 layr->up->ctrlcmd(layr->up, ctrl, layr->id); in cffrml_ctrlcmd()
Dcaif_usb.c77 static void cfusbl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfusbl_ctrlcmd() argument
81 layr->up->ctrlcmd(layr->up, ctrl, layr->id); in cfusbl_ctrlcmd()
/net/iucv/
Diucv.c288 struct iucv_cmd_control ctrl; member
332 return ccode == 1 ? parm->ctrl.iprcode : ccode; in iucv_call_b2f0()
709 memcpy(parm->ctrl.ipuser, userdata, sizeof(parm->ctrl.ipuser)); in iucv_sever_pathid()
710 parm->ctrl.ippathid = pathid; in iucv_sever_pathid()
878 parm->ctrl.ippathid = path->pathid; in iucv_path_accept()
879 parm->ctrl.ipmsglim = path->msglim; in iucv_path_accept()
881 memcpy(parm->ctrl.ipuser, userdata, sizeof(parm->ctrl.ipuser)); in iucv_path_accept()
882 parm->ctrl.ipflags1 = path->flags; in iucv_path_accept()
887 path->msglim = parm->ctrl.ipmsglim; in iucv_path_accept()
888 path->flags = parm->ctrl.ipflags1; in iucv_path_accept()
[all …]
/net/bluetooth/bnep/
Dbnep.h75 __u8 ctrl; member
82 __u8 ctrl; member
89 __u8 ctrl; member
Dcore.c79 static int bnep_send_rsp(struct bnep_session *s, u8 ctrl, u16 resp) in bnep_send_rsp() argument
83 rsp.ctrl = ctrl; in bnep_send_rsp()
Dnetdev.c72 r->ctrl = BNEP_FILTER_MULTI_ADDR_SET; in bnep_net_set_mc_list()
/net/bluetooth/rfcomm/
Dcore.c809 BT_DBG("%p cmd %u", s, cmd->ctrl); in rfcomm_send_cmd()
821 cmd.ctrl = __ctrl(RFCOMM_SABM, 1); in rfcomm_send_sabm()
835 cmd.ctrl = __ctrl(RFCOMM_UA, 1); in rfcomm_send_ua()
849 cmd.ctrl = __ctrl(RFCOMM_DISC, 1); in rfcomm_send_disc()
869 cmd->ctrl = __ctrl(RFCOMM_DISC, 1); in rfcomm_queue_disc()
885 cmd.ctrl = __ctrl(RFCOMM_DM, 1); in rfcomm_send_dm()
902 hdr->ctrl = __ctrl(RFCOMM_UIH, 0); in rfcomm_send_nsc()
928 hdr->ctrl = __ctrl(RFCOMM_UIH, 0); in rfcomm_send_pn()
976 hdr->ctrl = __ctrl(RFCOMM_UIH, 0); in rfcomm_send_rpn()
1008 hdr->ctrl = __ctrl(RFCOMM_UIH, 0); in rfcomm_send_rls()
[all …]
/net/llc/
Dllc_pdu.c225 u8 *ctrl; in llc_pdu_init_as_frmr_rsp() local
233 ctrl = (u8 *)&prev_pdu->ctrl_1; in llc_pdu_init_as_frmr_rsp()
234 FRMR_INFO_SET_REJ_CNTRL(frmr_info,ctrl); in llc_pdu_init_as_frmr_rsp()
/net/bluetooth/hidp/
Dcore.c919 struct bt_sock *ctrl, *intr; in hidp_session_new() local
921 ctrl = bt_sk(ctrl_sock->sk); in hidp_session_new()
944 session->ctrl_mtu = min_t(uint, l2cap_pi(ctrl)->chan->omtu, in hidp_session_new()
945 l2cap_pi(ctrl)->chan->imtu); in hidp_session_new()
1316 struct bt_sock *ctrl, *intr; in hidp_verify_sockets() local
1329 ctrl = bt_sk(ctrl_sock->sk); in hidp_verify_sockets()
1332 if (ctrl->sk.sk_state != BT_CONNECTED || in hidp_verify_sockets()
/net/atm/
Dclip.c55 struct atmarp_ctrl *ctrl; in to_atmarpd() local
64 ctrl = skb_put(skb, sizeof(struct atmarp_ctrl)); in to_atmarpd()
65 ctrl->type = type; in to_atmarpd()
66 ctrl->itf_num = itf; in to_atmarpd()
67 ctrl->ip = ip; in to_atmarpd()
/net/bridge/netfilter/
Debt_802_3.c27 __be16 type = hdr->llc.ui.ctrl & IS_UI ? hdr->llc.ui.type : hdr->llc.ni.type; in ebt_802_3_mt()
Debt_stp.c23 u8 ctrl; member
/net/tls/
Dtls_sw.c1608 u8 ctrl = *control; in process_rx_list() local
1614 if (!ctrl && skb) { in process_rx_list()
1616 ctrl = tlm->control; in process_rx_list()
1624 if (ctrl != tlm->control) in process_rx_list()
1642 if (ctrl != tlm->control) in process_rx_list()
1650 sizeof(ctrl), &ctrl); in process_rx_list()
1652 if (ctrl != TLS_RECORD_TYPE_DATA) { in process_rx_list()
1698 *control = ctrl; in process_rx_list()
/net/802/
Dfddi.c63 fddi->hdr.llc_snap.ctrl = FDDI_UI_CMD; in fddi_header()
Dhippi.c72 hip->snap.ctrl = HIPPI_UI_CMD; in hippi_header()

12