/net/ncsi/ |
D | ncsi-cmd.c | 64 struct ncsi_cmd_pkt *cmd; in ncsi_cmd_handler_default() local 66 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_default() 67 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_default() 75 struct ncsi_cmd_sp_pkt *cmd; in ncsi_cmd_handler_sp() local 77 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_sp() 78 cmd->hw_arbitration = nca->bytes[0]; in ncsi_cmd_handler_sp() 79 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_sp() 87 struct ncsi_cmd_dc_pkt *cmd; in ncsi_cmd_handler_dc() local 89 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_dc() 90 cmd->ald = nca->bytes[0]; in ncsi_cmd_handler_dc() [all …]
|
D | ncsi-rsp.c | 265 struct ncsi_cmd_ae_pkt *cmd; in ncsi_rsp_handler_ae() local 284 cmd = (struct ncsi_cmd_ae_pkt *)skb_network_header(nr->cmd); in ncsi_rsp_handler_ae() 286 ncm->data[0] = cmd->mc_id; in ncsi_rsp_handler_ae() 287 ncm->data[1] = ntohl(cmd->mode); in ncsi_rsp_handler_ae() 294 struct ncsi_cmd_sl_pkt *cmd; in ncsi_rsp_handler_sl() local 307 cmd = (struct ncsi_cmd_sl_pkt *)skb_network_header(nr->cmd); in ncsi_rsp_handler_sl() 309 ncm->data[0] = ntohl(cmd->mode); in ncsi_rsp_handler_sl() 310 ncm->data[1] = ntohl(cmd->oem_mode); in ncsi_rsp_handler_sl() 348 struct ncsi_cmd_svf_pkt *cmd; in ncsi_rsp_handler_svf() local 363 cmd = (struct ncsi_cmd_svf_pkt *)skb_network_header(nr->cmd); in ncsi_rsp_handler_svf() [all …]
|
D | ncsi-pkt.h | 38 struct ncsi_cmd_pkt_hdr cmd; /* Command header */ member 51 struct ncsi_cmd_pkt_hdr cmd; /* Command header */ member 60 struct ncsi_cmd_pkt_hdr cmd; /* Command header */ member 69 struct ncsi_cmd_pkt_hdr cmd; /* Command header */ member 77 struct ncsi_cmd_pkt_hdr cmd; /* Command header */ member 87 struct ncsi_cmd_pkt_hdr cmd; /* Command header */ member 96 struct ncsi_cmd_pkt_hdr cmd; /* Command header */ member 108 struct ncsi_cmd_pkt_hdr cmd; /* Command header */ member 117 struct ncsi_cmd_pkt_hdr cmd; /* Command header */ member 127 struct ncsi_cmd_pkt_hdr cmd; /* Command header */ member [all …]
|
/net/bluetooth/ |
D | mgmt_util.c | 93 int mgmt_cmd_status(struct sock *sk, u16 index, u16 cmd, u8 status) in mgmt_cmd_status() argument 100 BT_DBG("sock %p, index %u, cmd %u, status %u", sk, index, cmd, status); in mgmt_cmd_status() 114 ev->opcode = cpu_to_le16(cmd); in mgmt_cmd_status() 136 int mgmt_cmd_complete(struct sock *sk, u16 index, u16 cmd, u8 status, in mgmt_cmd_complete() argument 157 ev->opcode = cpu_to_le16(cmd); in mgmt_cmd_complete() 187 struct mgmt_pending_cmd *cmd; in mgmt_pending_find() local 189 list_for_each_entry(cmd, &hdev->mgmt_pending, list) { in mgmt_pending_find() 190 if (hci_sock_get_channel(cmd->sk) != channel) in mgmt_pending_find() 192 if (cmd->opcode == opcode) in mgmt_pending_find() 193 return cmd; in mgmt_pending_find() [all …]
|
D | mgmt.c | 865 struct mgmt_pending_cmd *cmd; in mgmt_get_adv_discov_flags() local 870 cmd = pending_find(MGMT_OP_SET_DISCOVERABLE, hdev); in mgmt_get_adv_discov_flags() 871 if (cmd) { in mgmt_get_adv_discov_flags() 872 struct mgmt_mode *cp = cmd->param; in mgmt_get_adv_discov_flags() 889 struct mgmt_pending_cmd *cmd; in mgmt_get_connectable() local 894 cmd = pending_find(MGMT_OP_SET_CONNECTABLE, hdev); in mgmt_get_connectable() 895 if (cmd) { in mgmt_get_connectable() 896 struct mgmt_mode *cp = cmd->param; in mgmt_get_connectable() 1159 struct mgmt_pending_cmd *cmd; in set_powered() local 1181 cmd = mgmt_pending_add(sk, MGMT_OP_SET_POWERED, hdev, data, len); in set_powered() [all …]
|
D | mgmt_util.h | 31 int (*cmd_complete)(struct mgmt_pending_cmd *cmd, u8 status); 36 int mgmt_cmd_status(struct sock *sk, u16 index, u16 cmd, u8 status); 37 int mgmt_cmd_complete(struct sock *sk, u16 index, u16 cmd, u8 status, 47 void (*cb)(struct mgmt_pending_cmd *cmd, void *data), 52 void mgmt_pending_free(struct mgmt_pending_cmd *cmd); 53 void mgmt_pending_remove(struct mgmt_pending_cmd *cmd);
|
/net/nfc/ |
D | digital_core.c | 112 struct digital_cmd *cmd; in digital_wq_cmd_complete() local 119 cmd = list_first_entry_or_null(&ddev->cmd_queue, struct digital_cmd, in digital_wq_cmd_complete() 121 if (!cmd) { in digital_wq_cmd_complete() 126 list_del(&cmd->queue); in digital_wq_cmd_complete() 130 if (!IS_ERR(cmd->resp)) in digital_wq_cmd_complete() 132 cmd->resp->data, cmd->resp->len, false); in digital_wq_cmd_complete() 134 cmd->cmd_cb(ddev, cmd->cb_context, cmd->resp); in digital_wq_cmd_complete() 136 kfree(cmd->mdaa_params); in digital_wq_cmd_complete() 137 kfree(cmd); in digital_wq_cmd_complete() 145 struct digital_cmd *cmd = arg; in digital_send_cmd_complete() local [all …]
|
/net/core/ |
D | dev_ioctl.c | 103 static int dev_ifsioc_locked(struct net *net, struct ifreq *ifr, unsigned int cmd) in dev_ifsioc_locked() argument 111 switch (cmd) { in dev_ifsioc_locked() 224 static int dev_ifsioc(struct net *net, struct ifreq *ifr, unsigned int cmd) in dev_ifsioc() argument 235 switch (cmd) { in dev_ifsioc() 303 if ((cmd >= SIOCDEVPRIVATE && in dev_ifsioc() 304 cmd <= SIOCDEVPRIVATE + 15) || in dev_ifsioc() 305 cmd == SIOCBONDENSLAVE || in dev_ifsioc() 306 cmd == SIOCBONDRELEASE || in dev_ifsioc() 307 cmd == SIOCBONDSETHWADDR || in dev_ifsioc() 308 cmd == SIOCBONDSLAVEINFOQUERY || in dev_ifsioc() [all …]
|
/net/wireless/ |
D | wext-core.c | 452 unsigned int cmd, in wireless_send_event() argument 481 if (WARN_ON(cmd == SIOCGIWSCAN && extra)) in wireless_send_event() 485 if (cmd <= SIOCIWLAST) { in wireless_send_event() 486 cmd_index = IW_IOCTL_IDX(cmd); in wireless_send_event() 490 cmd_index = IW_EVENT_IDX(cmd); in wireless_send_event() 504 cmd); in wireless_send_event() 513 cmd, wrqu->data.length); in wireless_send_event() 518 cmd, wrqu->data.length); in wireless_send_event() 577 event->cmd = cmd; in wireless_send_event() 611 compat_event->cmd = cmd; in wireless_send_event() [all …]
|
D | wext-priv.c | 93 static int get_priv_descr_and_size(struct net_device *dev, unsigned int cmd, in get_priv_descr_and_size() argument 101 if (cmd == dev->wireless_handlers->private_args[i].cmd) { in get_priv_descr_and_size() 109 if (IW_IS_SET(cmd)) { in get_priv_descr_and_size() 137 static int ioctl_private_iw_point(struct iw_point *iwp, unsigned int cmd, in ioctl_private_iw_point() argument 146 if (IW_IS_SET(cmd)) { in ioctl_private_iw_point() 160 if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_private_iw_point() 171 if (!err && IW_IS_GET(cmd)) { in ioctl_private_iw_point() 188 unsigned int cmd, struct iw_request_info *info, in ioctl_private_call() argument 194 extra_size = get_priv_descr_and_size(dev, cmd, &descr); in ioctl_private_call() 201 ret = ioctl_private_iw_point(&iwr->u.data, cmd, descr, in ioctl_private_call() [all …]
|
/net/nfc/nci/ |
D | core.c | 35 struct nci_core_conn_create_cmd *cmd; member 160 struct nci_core_reset_cmd cmd; in nci_reset_req() local 162 cmd.reset_type = NCI_RESET_TYPE_RESET_CONFIG; in nci_reset_req() 163 nci_send_cmd(ndev, NCI_OP_CORE_RESET_CMD, 1, &cmd); in nci_reset_req() 173 struct nci_rf_disc_map_cmd cmd; in nci_init_complete_req() local 174 struct disc_map_config *cfg = cmd.mapping_configs; in nci_init_complete_req() 175 __u8 *num = &cmd.num_mapping_configs; in nci_init_complete_req() 204 (1 + ((*num) * sizeof(struct disc_map_config))), &cmd); in nci_init_complete_req() 216 struct nci_core_set_config_cmd cmd; in nci_set_config_req() local 220 cmd.num_params = 1; in nci_set_config_req() [all …]
|
/net/tipc/ |
D | netlink.c | 145 .cmd = TIPC_NL_BEARER_DISABLE, 150 .cmd = TIPC_NL_BEARER_ENABLE, 155 .cmd = TIPC_NL_BEARER_GET, 161 .cmd = TIPC_NL_BEARER_ADD, 166 .cmd = TIPC_NL_BEARER_SET, 171 .cmd = TIPC_NL_SOCK_GET, 178 .cmd = TIPC_NL_PUBL_GET, 183 .cmd = TIPC_NL_LINK_GET, 189 .cmd = TIPC_NL_LINK_SET, 194 .cmd = TIPC_NL_LINK_RESET_STATS, [all …]
|
D | netlink_compat.c | 54 u16 cmd; member 73 int (*transcode)(struct tipc_nl_compat_cmd_doit *cmd, 180 static int __tipc_nl_compat_dumpit(struct tipc_nl_compat_cmd_dump *cmd, in __tipc_nl_compat_dumpit() argument 207 len = (*cmd->dumpit)(buf, &cb); in __tipc_nl_compat_dumpit() 216 err = (*cmd->format)(msg, attrs); in __tipc_nl_compat_dumpit() 255 static int tipc_nl_compat_dumpit(struct tipc_nl_compat_cmd_dump *cmd, in tipc_nl_compat_dumpit() argument 272 if (cmd->header) { in tipc_nl_compat_dumpit() 273 err = (*cmd->header)(msg); in tipc_nl_compat_dumpit() 288 err = __tipc_nl_compat_dumpit(cmd, msg, arg); in tipc_nl_compat_dumpit() 298 static int __tipc_nl_compat_doit(struct tipc_nl_compat_cmd_doit *cmd, in __tipc_nl_compat_doit() argument [all …]
|
/net/nfc/hci/ |
D | hcp.c | 28 struct hci_msg *cmd; in nfc_hci_hcp_message_tx() local 33 cmd = kzalloc(sizeof(struct hci_msg), GFP_KERNEL); in nfc_hci_hcp_message_tx() 34 if (cmd == NULL) in nfc_hci_hcp_message_tx() 37 INIT_LIST_HEAD(&cmd->msg_l); in nfc_hci_hcp_message_tx() 38 skb_queue_head_init(&cmd->msg_frags); in nfc_hci_hcp_message_tx() 39 cmd->wait_response = (type == NFC_HCI_HCP_COMMAND) ? true : false; in nfc_hci_hcp_message_tx() 40 cmd->cb = cb; in nfc_hci_hcp_message_tx() 41 cmd->cb_context = cb_context; in nfc_hci_hcp_message_tx() 42 cmd->completion_delay = completion_delay; in nfc_hci_hcp_message_tx() 90 skb_queue_tail(&cmd->msg_frags, skb); in nfc_hci_hcp_message_tx() [all …]
|
D | command.c | 19 static int nfc_hci_execute_cmd_async(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd, in nfc_hci_execute_cmd_async() argument 24 cmd, param_len); in nfc_hci_execute_cmd_async() 29 return nfc_hci_hcp_message_tx(hdev, pipe, NFC_HCI_HCP_COMMAND, cmd, in nfc_hci_execute_cmd_async() 55 static int nfc_hci_execute_cmd(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd, in nfc_hci_execute_cmd() argument 66 cmd, param_len); in nfc_hci_execute_cmd() 72 NFC_HCI_HCP_COMMAND, cmd, in nfc_hci_execute_cmd() 112 int nfc_hci_send_cmd(struct nfc_hci_dev *hdev, u8 gate, u8 cmd, in nfc_hci_send_cmd() argument 123 return nfc_hci_execute_cmd(hdev, pipe, cmd, param, param_len, skb); in nfc_hci_send_cmd() 127 int nfc_hci_send_cmd_async(struct nfc_hci_dev *hdev, u8 gate, u8 cmd, in nfc_hci_send_cmd_async() argument 139 return nfc_hci_execute_cmd_async(hdev, pipe, cmd, param, param_len, in nfc_hci_send_cmd_async()
|
/net/netfilter/ |
D | nf_conntrack_ftp.c | 155 struct nf_conntrack_man *cmd, char term, in try_rfc959() argument 165 cmd->u3.ip = htonl((array[0] << 24) | (array[1] << 16) | in try_rfc959() 167 cmd->u.tcp.port = htons((array[4] << 8) | array[5]); in try_rfc959() 182 struct nf_conntrack_man *cmd, char term, in try_rfc1123() argument 195 return try_rfc959(data + i, dlen - i, cmd, 0, offset); in try_rfc1123() 225 static int try_eprt(const char *data, size_t dlen, struct nf_conntrack_man *cmd, in try_eprt() argument 243 if ((cmd->l3num == PF_INET && data[1] != '1') || in try_eprt() 244 (cmd->l3num == PF_INET6 && data[1] != '2')) { in try_eprt() 257 cmd->u3.ip = htonl((array[0] << 24) | (array[1] << 16) in try_eprt() 262 (struct in6_addr *)cmd->u3.ip6, delim); in try_eprt() [all …]
|
D | nf_tables_offload.c | 211 enum flow_block_command cmd) in nft_block_setup() argument 215 switch (cmd) { in nft_block_setup() 232 enum flow_block_command cmd) in nft_block_offload_cmd() argument 240 bo.command = cmd; in nft_block_offload_cmd() 249 return nft_block_setup(chain, &bo, cmd); in nft_block_offload_cmd() 256 enum flow_block_command cmd) in nft_indr_block_ing_cmd() argument 266 bo.command = cmd; in nft_indr_block_ing_cmd() 273 nft_block_setup(chain, &bo, cmd); in nft_indr_block_ing_cmd() 278 enum flow_block_command cmd) in nft_indr_block_offload_cmd() argument 285 bo.command = cmd; in nft_indr_block_offload_cmd() [all …]
|
/net/atm/ |
D | ioctl.c | 51 static int do_vcc_ioctl(struct socket *sock, unsigned int cmd, in do_vcc_ioctl() argument 61 switch (cmd) { in do_vcc_ioctl() 154 error = ic->ioctl(sock, cmd, arg); in do_vcc_ioctl() 165 error = atm_dev_ioctl(cmd, argp, compat); in do_vcc_ioctl() 171 int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in vcc_ioctl() argument 173 return do_vcc_ioctl(sock, cmd, arg, 0); in vcc_ioctl() 207 unsigned int cmd; member 230 static int do_atm_iobuf(struct socket *sock, unsigned int cmd, in do_atm_iobuf() argument 250 err = do_vcc_ioctl(sock, cmd, (unsigned long) iobuf, 0); in do_atm_iobuf() 261 static int do_atmif_sioc(struct socket *sock, unsigned int cmd, in do_atmif_sioc() argument [all …]
|
D | resources.c | 196 int atm_dev_ioctl(unsigned int cmd, void __user *arg, int compat) in atm_dev_ioctl() argument 206 switch (cmd) { in atm_dev_ioctl() 284 switch (cmd) { in atm_dev_ioctl() 334 error = fetch_stats(dev, buf, cmd == ATM_GETSTATZ); in atm_dev_ioctl() 375 if (cmd == ATM_ADDADDR || cmd == ATM_ADDLECSADDR) in atm_dev_ioctl() 377 (cmd == ATM_ADDADDR ? in atm_dev_ioctl() 381 (cmd == ATM_DELADDR ? in atm_dev_ioctl() 388 (cmd == ATM_GETADDR ? in atm_dev_ioctl() 422 size = dev->ops->compat_ioctl(dev, cmd, buf); in atm_dev_ioctl() 429 size = dev->ops->ioctl(dev, cmd, buf); in atm_dev_ioctl()
|
/net/sctp/ |
D | sm_sideeffect.c | 1269 struct sctp_cmd *cmd; in sctp_cmd_interpreter() local 1284 while (NULL != (cmd = sctp_next_cmd(commands))) { in sctp_cmd_interpreter() 1285 switch (cmd->verb) { in sctp_cmd_interpreter() 1298 asoc = cmd->obj.asoc; in sctp_cmd_interpreter() 1304 sctp_cmd_assoc_update(commands, asoc, cmd->obj.asoc); in sctp_cmd_interpreter() 1323 sctp_cmd_new_state(commands, asoc, cmd->obj.state); in sctp_cmd_interpreter() 1329 cmd->obj.u32, NULL); in sctp_cmd_interpreter() 1333 asoc->stream.si->report_ftsn(&asoc->ulpq, cmd->obj.u32); in sctp_cmd_interpreter() 1338 cmd->obj.chunk); in sctp_cmd_interpreter() 1347 force = cmd->obj.i32; in sctp_cmd_interpreter() [all …]
|
/net/bluetooth/bnep/ |
D | sock.c | 52 static int do_bnep_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) in do_bnep_sock_ioctl() argument 62 BT_DBG("cmd %x arg %p", cmd, argp); in do_bnep_sock_ioctl() 64 switch (cmd) { in do_bnep_sock_ioctl() 136 static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in bnep_sock_ioctl() argument 138 return do_bnep_sock_ioctl(sock, cmd, (void __user *)arg); in bnep_sock_ioctl() 142 static int bnep_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in bnep_sock_compat_ioctl() argument 145 if (cmd == BNEPGETCONNLIST) { in bnep_sock_compat_ioctl() 167 return do_bnep_sock_ioctl(sock, cmd, argp); in bnep_sock_compat_ioctl()
|
/net/bluetooth/cmtp/ |
D | sock.c | 66 static int do_cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) in do_cmtp_sock_ioctl() argument 75 BT_DBG("cmd %x arg %p", cmd, argp); in do_cmtp_sock_ioctl() 77 switch (cmd) { in do_cmtp_sock_ioctl() 139 static int cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in cmtp_sock_ioctl() argument 141 return do_cmtp_sock_ioctl(sock, cmd, (void __user *)arg); in cmtp_sock_ioctl() 145 static int cmtp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in cmtp_sock_compat_ioctl() argument 148 if (cmd == CMTPGETCONNLIST) { in cmtp_sock_compat_ioctl() 170 return do_cmtp_sock_ioctl(sock, cmd, argp); in cmtp_sock_compat_ioctl()
|
/net/caif/ |
D | cfdgml.c | 42 u8 cmd = -1; in cfdgml_receive() local 49 if (cfpkt_extr_head(pkt, &cmd, 1) < 0) { in cfdgml_receive() 55 if ((cmd & DGM_CMD_BIT) == 0) { in cfdgml_receive() 65 switch (cmd) { in cfdgml_receive() 76 pr_info("Unknown datagram control %d (0x%x)\n", cmd, cmd); in cfdgml_receive()
|
D | cfctrl.c | 23 int cmd, struct cfpkt *pkt){ in handle_loop() argument 28 int cmd, struct cfpkt *pkt); 120 if (r1->cmd != r2->cmd) in cfctrl_req_eq() 122 if (r1->cmd == CFCTRL_CMD_LINK_SETUP) in cfctrl_req_eq() 278 req->cmd = CFCTRL_CMD_LINK_SETUP; in cfctrl_linkup_request() 353 u8 cmd; in cfctrl_recv() local 363 cmd = cmdrsp & CFCTRL_CMD_MASK; in cfctrl_recv() 364 if (cmd != CFCTRL_CMD_LINK_ERR in cfctrl_recv() 367 if (handle_loop(cfctrl, cmd, pkt) != 0) in cfctrl_recv() 371 switch (cmd) { in cfctrl_recv() [all …]
|
/net/bluetooth/hidp/ |
D | sock.c | 49 static int do_hidp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) in do_hidp_sock_ioctl() argument 59 BT_DBG("cmd %x arg %p", cmd, argp); in do_hidp_sock_ioctl() 61 switch (cmd) { in do_hidp_sock_ioctl() 125 static int hidp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in hidp_sock_ioctl() argument 127 return do_hidp_sock_ioctl(sock, cmd, (void __user *)arg); in hidp_sock_ioctl() 147 static int hidp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in hidp_sock_compat_ioctl() argument 152 if (cmd == HIDPGETCONNLIST) { in hidp_sock_compat_ioctl() 171 } else if (cmd == HIDPCONNADD) { in hidp_sock_compat_ioctl() 218 return hidp_sock_ioctl(sock, cmd, arg); in hidp_sock_compat_ioctl()
|