/net/bluetooth/ |
D | mgmt_util.c | 60 int mgmt_cmd_status(struct sock *sk, u16 index, u16 cmd, u8 status) in mgmt_cmd_status() argument 67 BT_DBG("sock %p, index %u, cmd %u, status %u", sk, index, cmd, status); in mgmt_cmd_status() 81 ev->opcode = cpu_to_le16(cmd); in mgmt_cmd_status() 90 int mgmt_cmd_complete(struct sock *sk, u16 index, u16 cmd, u8 status, in mgmt_cmd_complete() argument 111 ev->opcode = cpu_to_le16(cmd); in mgmt_cmd_complete() 127 struct mgmt_pending_cmd *cmd; in mgmt_pending_find() local 129 list_for_each_entry(cmd, &hdev->mgmt_pending, list) { in mgmt_pending_find() 130 if (hci_sock_get_channel(cmd->sk) != channel) in mgmt_pending_find() 132 if (cmd->opcode == opcode) in mgmt_pending_find() 133 return cmd; in mgmt_pending_find() [all …]
|
D | mgmt.c | 940 struct mgmt_pending_cmd *cmd; in get_adv_discov_flags() local 945 cmd = pending_find(MGMT_OP_SET_DISCOVERABLE, hdev); in get_adv_discov_flags() 946 if (cmd) { in get_adv_discov_flags() 947 struct mgmt_mode *cp = cmd->param; in get_adv_discov_flags() 964 struct mgmt_pending_cmd *cmd; in get_connectable() local 969 cmd = pending_find(MGMT_OP_SET_CONNECTABLE, hdev); in get_connectable() 970 if (cmd) { in get_connectable() 971 struct mgmt_mode *cp = cmd->param; in get_connectable() 1661 struct mgmt_pending_cmd *cmd; in set_powered() local 1694 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 | 117 struct digital_cmd *cmd; in digital_wq_cmd_complete() local 124 cmd = list_first_entry_or_null(&ddev->cmd_queue, struct digital_cmd, in digital_wq_cmd_complete() 126 if (!cmd) { in digital_wq_cmd_complete() 131 list_del(&cmd->queue); in digital_wq_cmd_complete() 135 if (!IS_ERR(cmd->resp)) in digital_wq_cmd_complete() 137 cmd->resp->data, cmd->resp->len, false); in digital_wq_cmd_complete() 139 cmd->cmd_cb(ddev, cmd->cb_context, cmd->resp); in digital_wq_cmd_complete() 141 kfree(cmd->mdaa_params); in digital_wq_cmd_complete() 142 kfree(cmd); in digital_wq_cmd_complete() 150 struct digital_cmd *cmd = arg; in digital_send_cmd_complete() local [all …]
|
/net/core/ |
D | dev_ioctl.c | 122 static int dev_ifsioc_locked(struct net *net, struct ifreq *ifr, unsigned int cmd) in dev_ifsioc_locked() argument 130 switch (cmd) { in dev_ifsioc_locked() 242 static int dev_ifsioc(struct net *net, struct ifreq *ifr, unsigned int cmd) in dev_ifsioc() argument 253 switch (cmd) { in dev_ifsioc() 320 if ((cmd >= SIOCDEVPRIVATE && in dev_ifsioc() 321 cmd <= SIOCDEVPRIVATE + 15) || in dev_ifsioc() 322 cmd == SIOCBONDENSLAVE || in dev_ifsioc() 323 cmd == SIOCBONDRELEASE || in dev_ifsioc() 324 cmd == SIOCBONDSETHWADDR || in dev_ifsioc() 325 cmd == SIOCBONDSLAVEINFOQUERY || in dev_ifsioc() [all …]
|
D | ethtool.c | 118 struct ethtool_gfeatures cmd = { in ethtool_get_features() local 119 .cmd = ETHTOOL_GFEATURES, in ethtool_get_features() 145 if (copy_to_user(useraddr, &cmd, sizeof(cmd))) in ethtool_get_features() 147 useraddr += sizeof(cmd); in ethtool_get_features() 156 struct ethtool_sfeatures cmd; in ethtool_set_features() local 161 if (copy_from_user(&cmd, useraddr, sizeof(cmd))) in ethtool_set_features() 163 useraddr += sizeof(cmd); in ethtool_set_features() 165 if (cmd.size != ETHTOOL_DEV_FEATURE_WORDS) in ethtool_set_features() 267 .cmd = ethcmd, in ethtool_get_one_feature() 355 int __ethtool_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) in __ethtool_get_settings() argument [all …]
|
/net/wireless/ |
D | wext-core.c | 451 unsigned int cmd, in wireless_send_event() argument 480 if (WARN_ON(cmd == SIOCGIWSCAN && extra)) in wireless_send_event() 484 if (cmd <= SIOCIWLAST) { in wireless_send_event() 485 cmd_index = IW_IOCTL_IDX(cmd); in wireless_send_event() 489 cmd_index = IW_EVENT_IDX(cmd); in wireless_send_event() 503 cmd); in wireless_send_event() 512 cmd, wrqu->data.length); in wireless_send_event() 517 cmd, wrqu->data.length); in wireless_send_event() 576 event->cmd = cmd; in wireless_send_event() 610 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 | 47 struct nci_core_conn_create_cmd *cmd; member 168 struct nci_core_reset_cmd cmd; in nci_reset_req() local 170 cmd.reset_type = NCI_RESET_TYPE_RESET_CONFIG; in nci_reset_req() 171 nci_send_cmd(ndev, NCI_OP_CORE_RESET_CMD, 1, &cmd); in nci_reset_req() 181 struct nci_rf_disc_map_cmd cmd; in nci_init_complete_req() local 182 struct disc_map_config *cfg = cmd.mapping_configs; in nci_init_complete_req() 183 __u8 *num = &cmd.num_mapping_configs; in nci_init_complete_req() 212 (1 + ((*num) * sizeof(struct disc_map_config))), &cmd); in nci_init_complete_req() 224 struct nci_core_set_config_cmd cmd; in nci_set_config_req() local 228 cmd.num_params = 1; in nci_set_config_req() [all …]
|
/net/tipc/ |
D | netlink.c | 72 .cmd = TIPC_NL_BEARER_DISABLE, 77 .cmd = TIPC_NL_BEARER_ENABLE, 82 .cmd = TIPC_NL_BEARER_GET, 88 .cmd = TIPC_NL_BEARER_SET, 93 .cmd = TIPC_NL_SOCK_GET, 98 .cmd = TIPC_NL_PUBL_GET, 103 .cmd = TIPC_NL_LINK_GET, 109 .cmd = TIPC_NL_LINK_SET, 114 .cmd = TIPC_NL_LINK_RESET_STATS, 119 .cmd = TIPC_NL_MEDIA_GET, [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 203 len = (*cmd->dumpit)(buf, &cb); in __tipc_nl_compat_dumpit() 212 err = (*cmd->format)(msg, attrs); in __tipc_nl_compat_dumpit() 250 static int tipc_nl_compat_dumpit(struct tipc_nl_compat_cmd_dump *cmd, in tipc_nl_compat_dumpit() argument 268 if (cmd->header) { in tipc_nl_compat_dumpit() 269 err = (*cmd->header)(msg); in tipc_nl_compat_dumpit() 293 err = __tipc_nl_compat_dumpit(cmd, msg, arg); in tipc_nl_compat_dumpit() 303 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 | 40 struct hci_msg *cmd; in nfc_hci_hcp_message_tx() local 45 cmd = kzalloc(sizeof(struct hci_msg), GFP_KERNEL); in nfc_hci_hcp_message_tx() 46 if (cmd == NULL) in nfc_hci_hcp_message_tx() 49 INIT_LIST_HEAD(&cmd->msg_l); in nfc_hci_hcp_message_tx() 50 skb_queue_head_init(&cmd->msg_frags); in nfc_hci_hcp_message_tx() 51 cmd->wait_response = (type == NFC_HCI_HCP_COMMAND) ? true : false; in nfc_hci_hcp_message_tx() 52 cmd->cb = cb; in nfc_hci_hcp_message_tx() 53 cmd->cb_context = cb_context; in nfc_hci_hcp_message_tx() 54 cmd->completion_delay = completion_delay; in nfc_hci_hcp_message_tx() 102 skb_queue_tail(&cmd->msg_frags, skb); in nfc_hci_hcp_message_tx() [all …]
|
D | command.c | 31 static int nfc_hci_execute_cmd_async(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd, in nfc_hci_execute_cmd_async() argument 36 cmd, param_len); in nfc_hci_execute_cmd_async() 41 return nfc_hci_hcp_message_tx(hdev, pipe, NFC_HCI_HCP_COMMAND, cmd, in nfc_hci_execute_cmd_async() 67 static int nfc_hci_execute_cmd(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd, in nfc_hci_execute_cmd() argument 78 cmd, param_len); in nfc_hci_execute_cmd() 84 NFC_HCI_HCP_COMMAND, cmd, in nfc_hci_execute_cmd() 124 int nfc_hci_send_cmd(struct nfc_hci_dev *hdev, u8 gate, u8 cmd, in nfc_hci_send_cmd() argument 135 return nfc_hci_execute_cmd(hdev, pipe, cmd, param, param_len, skb); in nfc_hci_send_cmd() 139 int nfc_hci_send_cmd_async(struct nfc_hci_dev *hdev, u8 gate, u8 cmd, in nfc_hci_send_cmd_async() argument 151 return nfc_hci_execute_cmd_async(hdev, pipe, cmd, param, param_len, in nfc_hci_send_cmd_async()
|
/net/sctp/ |
D | sm_sideeffect.c | 1232 sctp_cmd_t *cmd; in sctp_cmd_interpreter() local 1252 while (NULL != (cmd = sctp_next_cmd(commands))) { in sctp_cmd_interpreter() 1253 switch (cmd->verb) { in sctp_cmd_interpreter() 1266 asoc = cmd->obj.asoc; in sctp_cmd_interpreter() 1273 sctp_assoc_update(asoc, cmd->obj.asoc); in sctp_cmd_interpreter() 1292 sctp_cmd_new_state(commands, asoc, cmd->obj.state); in sctp_cmd_interpreter() 1298 cmd->obj.u32, NULL); in sctp_cmd_interpreter() 1303 sctp_tsnmap_skip(&asoc->peer.tsn_map, cmd->obj.u32); in sctp_cmd_interpreter() 1306 sctp_ulpq_reasm_flushtsn(&asoc->ulpq, cmd->obj.u32); in sctp_cmd_interpreter() 1313 sctp_cmd_process_fwdtsn(&asoc->ulpq, cmd->obj.chunk); in sctp_cmd_interpreter() [all …]
|
/net/atm/ |
D | ioctl.c | 50 static int do_vcc_ioctl(struct socket *sock, unsigned int cmd, in do_vcc_ioctl() argument 60 switch (cmd) { in do_vcc_ioctl() 169 error = ic->ioctl(sock, cmd, arg); in do_vcc_ioctl() 180 error = atm_dev_ioctl(cmd, argp, compat); in do_vcc_ioctl() 186 int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in vcc_ioctl() argument 188 return do_vcc_ioctl(sock, cmd, arg, 0); in vcc_ioctl() 222 unsigned int cmd; member 245 static int do_atm_iobuf(struct socket *sock, unsigned int cmd, in do_atm_iobuf() argument 265 err = do_vcc_ioctl(sock, cmd, (unsigned long) iobuf, 0); in do_atm_iobuf() 276 static int do_atmif_sioc(struct socket *sock, unsigned int cmd, in do_atmif_sioc() argument [all …]
|
D | resources.c | 195 int atm_dev_ioctl(unsigned int cmd, void __user *arg, int compat) in atm_dev_ioctl() argument 209 switch (cmd) { in atm_dev_ioctl() 287 switch (cmd) { in atm_dev_ioctl() 337 error = fetch_stats(dev, buf, cmd == ATM_GETSTATZ); in atm_dev_ioctl() 378 if (cmd == ATM_ADDADDR || cmd == ATM_ADDLECSADDR) in atm_dev_ioctl() 380 (cmd == ATM_ADDADDR ? in atm_dev_ioctl() 384 (cmd == ATM_DELADDR ? in atm_dev_ioctl() 391 (cmd == ATM_GETADDR ? in atm_dev_ioctl() 425 size = dev->ops->compat_ioctl(dev, cmd, buf); in atm_dev_ioctl() 432 size = dev->ops->ioctl(dev, cmd, buf); in atm_dev_ioctl()
|
/net/netfilter/ |
D | nf_conntrack_ftp.c | 154 struct nf_conntrack_man *cmd, char term, in try_rfc959() argument 164 cmd->u3.ip = htonl((array[0] << 24) | (array[1] << 16) | in try_rfc959() 166 cmd->u.tcp.port = htons((array[4] << 8) | array[5]); in try_rfc959() 181 struct nf_conntrack_man *cmd, char term, in try_rfc1123() argument 194 return try_rfc959(data + i, dlen - i, cmd, 0, offset); in try_rfc1123() 224 static int try_eprt(const char *data, size_t dlen, struct nf_conntrack_man *cmd, in try_eprt() argument 242 if ((cmd->l3num == PF_INET && data[1] != '1') || in try_eprt() 243 (cmd->l3num == PF_INET6 && data[1] != '2')) { in try_eprt() 256 cmd->u3.ip = htonl((array[0] << 24) | (array[1] << 16) in try_eprt() 261 (struct in6_addr *)cmd->u3.ip6, delim); in try_eprt() [all …]
|
/net/caif/ |
D | cfdgml.c | 43 u8 cmd = -1; in cfdgml_receive() local 50 if (cfpkt_extr_head(pkt, &cmd, 1) < 0) { in cfdgml_receive() 56 if ((cmd & DGM_CMD_BIT) == 0) { in cfdgml_receive() 66 switch (cmd) { in cfdgml_receive() 77 pr_info("Unknown datagram control %d (0x%x)\n", cmd, cmd); in cfdgml_receive()
|
D | cfveil.c | 41 u8 cmd; in cfvei_receive() local 48 if (cfpkt_extr_head(pkt, &cmd, 1) < 0) { in cfvei_receive() 53 switch (cmd) { in cfvei_receive() 69 pr_warn("Unknown VEI control packet %d (0x%x)!\n", cmd, cmd); in cfvei_receive()
|
D | cfutill.c | 42 u8 cmd = -1; in cfutill_receive() local 48 if (cfpkt_extr_head(pkt, &cmd, 1) < 0) { in cfutill_receive() 54 switch (cmd) { in cfutill_receive() 73 pr_warn("Unknown service control %d (0x%x)\n", cmd, cmd); in cfutill_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 364 cmd = cmdrsp & CFCTRL_CMD_MASK; in cfctrl_recv() 365 if (cmd != CFCTRL_CMD_LINK_ERR in cfctrl_recv() 368 if (handle_loop(cfctrl, cmd, pkt) != 0) in cfctrl_recv() 372 switch (cmd) { in cfctrl_recv() [all …]
|
/net/ |
D | socket.c | 124 static long sock_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 127 unsigned int cmd, unsigned long arg); 847 static int (*br_ioctl_hook) (struct net *, unsigned int cmd, void __user *arg); 880 unsigned int cmd, unsigned long arg) in sock_do_ioctl() argument 885 err = sock->ops->ioctl(sock, cmd, arg); in sock_do_ioctl() 892 err = dev_ioctl(net, cmd, argp); in sock_do_ioctl() 902 static long sock_ioctl(struct file *file, unsigned cmd, unsigned long arg) in sock_ioctl() argument 913 if (cmd >= SIOCDEVPRIVATE && cmd <= (SIOCDEVPRIVATE + 15)) { in sock_ioctl() 914 err = dev_ioctl(net, cmd, argp); in sock_ioctl() 917 if (cmd >= SIOCIWFIRST && cmd <= SIOCIWLAST) { in sock_ioctl() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_ctl.c | 2255 #define CMDID(cmd) (cmd - IP_VS_BASE_CTL) argument 2324 do_ip_vs_set_ctl(struct sock *sk, int cmd, void __user *user, unsigned int len) in do_ip_vs_set_ctl() argument 2340 if (cmd < IP_VS_BASE_CTL || cmd > IP_VS_SO_SET_MAX) in do_ip_vs_set_ctl() 2342 if (len != set_arglen[CMDID(cmd)]) { in do_ip_vs_set_ctl() 2344 len, set_arglen[CMDID(cmd)]); in do_ip_vs_set_ctl() 2355 if (cmd == IP_VS_SO_SET_STARTDAEMON || in do_ip_vs_set_ctl() 2356 cmd == IP_VS_SO_SET_STOPDAEMON) { in do_ip_vs_set_ctl() 2359 if (cmd == IP_VS_SO_SET_STARTDAEMON) { in do_ip_vs_set_ctl() 2378 if (cmd == IP_VS_SO_SET_FLUSH) { in do_ip_vs_set_ctl() 2382 } else if (cmd == IP_VS_SO_SET_TIMEOUT) { in do_ip_vs_set_ctl() [all …]
|
/net/netlink/ |
D | genetlink.c | 127 static const struct genl_ops *genl_get_cmd(u8 cmd, struct genl_family *family) in genl_get_cmd() argument 132 if (family->ops[i].cmd == cmd) in genl_get_cmd() 339 if (ops[i].cmd == ops[j].cmd) in genl_validate_ops() 497 struct genl_family *family, int flags, u8 cmd) in genlmsg_put() argument 508 hdr->cmd = cmd; in genlmsg_put() 575 ops = genl_get_cmd(hdr->cmd, family); in genl_family_rcv_msg() 703 u32 flags, struct sk_buff *skb, u8 cmd) in ctrl_fill_info() argument 707 hdr = genlmsg_put(skb, portid, seq, &genl_ctrl, flags, cmd); in ctrl_fill_info() 742 if (nla_put_u32(skb, CTRL_ATTR_OP_ID, ops->cmd) || in ctrl_fill_info() 792 struct sk_buff *skb, u8 cmd) in ctrl_fill_mcgrp_info() argument [all …]
|
/net/bridge/ |
D | br_ioctl.c | 113 static int old_dev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) in old_dev_ioctl() argument 350 int br_ioctl_deviceless_stub(struct net *net, unsigned int cmd, void __user *uarg) in br_ioctl_deviceless_stub() argument 352 switch (cmd) { in br_ioctl_deviceless_stub() 369 if (cmd == SIOCBRADDBR) in br_ioctl_deviceless_stub() 378 int br_dev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) in br_dev_ioctl() argument 382 switch (cmd) { in br_dev_ioctl() 384 return old_dev_ioctl(dev, rq, cmd); in br_dev_ioctl() 388 return add_del_if(br, rq->ifr_ifindex, cmd == SIOCBRADDIF); in br_dev_ioctl() 392 br_debug(br, "Bridge does not support ioctl 0x%x\n", cmd); in br_dev_ioctl()
|