Home
last modified time | relevance | path

Searched refs:param (Results 1 – 25 of 47) sorted by relevance

12

/net/nfc/nci/
Dcore.c223 const struct nci_set_config_param *param = opt; in nci_set_config_req() local
226 BUG_ON(param->len > NCI_MAX_PARAM_LEN); in nci_set_config_req()
229 cmd.param.id = param->id; in nci_set_config_req()
230 cmd.param.len = param->len; in nci_set_config_req()
231 memcpy(cmd.param.val, param->val, param->len); in nci_set_config_req()
233 nci_send_cmd(ndev, NCI_OP_CORE_SET_CONFIG_CMD, (3 + param->len), &cmd); in nci_set_config_req()
243 const struct nci_rf_discover_param *param = opt; in nci_rf_discover_req() local
249 (param->im_protocols & NFC_PROTO_JEWEL_MASK || in nci_rf_discover_req()
250 param->im_protocols & NFC_PROTO_MIFARE_MASK || in nci_rf_discover_req()
251 param->im_protocols & NFC_PROTO_ISO14443_MASK || in nci_rf_discover_req()
[all …]
Dhci.c207 const u8 *param, size_t param_len) in nci_hci_send_event() argument
216 param, param_len); in nci_hci_send_event()
221 const u8 *param, size_t param_len, in nci_hci_send_cmd() argument
240 data.data = param; in nci_hci_send_cmd()
557 const u8 *param, size_t param_len) in nci_hci_set_param() argument
580 memcpy(tmp + 1, param, param_len); in nci_hci_set_param()
/net/caif/
Dcfctrl.c123 return param_eq(&r1->param, &r2->param); in cfctrl_req_eq()
200 struct cfctrl_link_param *param, in cfctrl_linkup_request() argument
229 cfpkt_addbdy(pkt, (param->chtype << 4) | param->linktype); in cfctrl_linkup_request()
230 cfpkt_addbdy(pkt, (param->priority << 3) | param->phyid); in cfctrl_linkup_request()
231 cfpkt_addbdy(pkt, param->endpoint & 0x03); in cfctrl_linkup_request()
233 switch (param->linktype) { in cfctrl_linkup_request()
237 cfpkt_addbdy(pkt, (u8) param->u.video.connid); in cfctrl_linkup_request()
242 tmp32 = cpu_to_le32(param->u.datagram.connid); in cfctrl_linkup_request()
249 tmp32 = cpu_to_le32(param->u.rfm.connid); in cfctrl_linkup_request()
252 cfpkt_add_body(pkt, param->u.rfm.volume, in cfctrl_linkup_request()
[all …]
Dcfcnfg.c281 l->u.utility.paramlen = s->param.size; in caif_connect_req_to_link_param()
285 memcpy(l->u.utility.params, s->param.data, in caif_connect_req_to_link_param()
307 struct cfctrl_link_param param; in caif_connect_client() local
311 err = caif_connect_req_to_link_param(cfg, conn_req, &param); in caif_connect_client()
315 phy = cfcnfg_get_phyinfo_rcu(cfg, param.phyid); in caif_connect_client()
341 caif_assert(param.phyid == phy->id); in caif_connect_client()
343 param.phyid); in caif_connect_client()
345 param.phyid); in caif_connect_client()
349 *proto_head = protohead[param.linktype] + phy->head_room; in caif_connect_client()
354 cfctrl_enum_req(cfg->ctrl, param.phyid); in caif_connect_client()
[all …]
/net/sctp/
Dsm_make_chunk.c64 union sctp_params param,
1102 struct sctp_paramhdr *param) in sctp_make_violation_paramlen() argument
1106 sizeof(*param); in sctp_make_violation_paramlen()
1114 sizeof(error) + sizeof(*param)); in sctp_make_violation_paramlen()
1116 sctp_addto_param(retval, sizeof(*param), param); in sctp_make_violation_paramlen()
1969 struct sctp_paramhdr *param, in sctp_process_inv_paramlength() argument
1980 *errp = sctp_make_violation_paramlen(asoc, chunk, param); in sctp_process_inv_paramlength()
1990 union sctp_params param, in sctp_process_hn_param() argument
1994 __u16 len = ntohs(param.p->length); in sctp_process_hn_param()
2005 param.v, len, 0); in sctp_process_hn_param()
[all …]
Dstream.c488 union sctp_params param; in sctp_chunk_lookup_strreset_param() local
494 sctp_walk_params(param, hdr, params) { in sctp_chunk_lookup_strreset_param()
499 struct sctp_strreset_tsnreq *req = param.v; in sctp_chunk_lookup_strreset_param()
503 return param.v; in sctp_chunk_lookup_strreset_param()
518 union sctp_params param, in sctp_process_strreset_outreq() argument
521 struct sctp_strreset_outreq *outreq = param.v; in sctp_process_strreset_outreq()
554 nums = (ntohs(param.p->length) - sizeof(*outreq)) / sizeof(__u16); in sctp_process_strreset_outreq()
607 union sctp_params param, in sctp_process_strreset_inreq() argument
610 struct sctp_strreset_inreq *inreq = param.v; in sctp_process_strreset_inreq()
640 nums = (ntohs(param.p->length) - sizeof(*inreq)) / sizeof(__u16); in sctp_process_strreset_inreq()
[all …]
Dbind_addr.c267 struct sctp_paramhdr *param; in sctp_raw_to_bind_addrs() local
275 param = (struct sctp_paramhdr *)raw_addr_list; in sctp_raw_to_bind_addrs()
278 af = sctp_get_af_specific(param_type2af(param->type)); in sctp_raw_to_bind_addrs()
294 len = ntohs(param->length); in sctp_raw_to_bind_addrs()
Dauth.c638 static int __sctp_auth_cid(enum sctp_cid chunk, struct sctp_chunks_param *param) in __sctp_auth_cid() argument
644 if (!param || param->param_hdr.length == 0) in __sctp_auth_cid()
647 len = ntohs(param->param_hdr.length) - sizeof(struct sctp_paramhdr); in __sctp_auth_cid()
656 switch (param->chunks[i]) { in __sctp_auth_cid()
664 if (param->chunks[i] == chunk) in __sctp_auth_cid()
Dsocket.c1393 struct sctp_getaddrs_old param; in sctp_getsockopt_connectx3() local
1407 param.assoc_id = param32.assoc_id; in sctp_getsockopt_connectx3()
1408 param.addr_num = param32.addr_num; in sctp_getsockopt_connectx3()
1409 param.addrs = compat_ptr(param32.addrs); in sctp_getsockopt_connectx3()
1413 if (len < sizeof(param)) in sctp_getsockopt_connectx3()
1415 if (copy_from_user(&param, optval, sizeof(param))) in sctp_getsockopt_connectx3()
1419 kaddrs = memdup_user(param.addrs, param.addr_num); in sctp_getsockopt_connectx3()
1423 err = __sctp_setsockopt_connectx(sk, kaddrs, param.addr_num, &assoc_id); in sctp_getsockopt_connectx3()
4267 static int sctp_assoc_ulpevent_type_set(struct sctp_event *param, in sctp_assoc_ulpevent_type_set() argument
4272 sctp_ulpevent_type_set(&asoc->subscribe, param->se_type, param->se_on); in sctp_assoc_ulpevent_type_set()
[all …]
Dipv6.c582 union sctp_addr_param *param, in sctp_v6_from_addr_param() argument
585 if (ntohs(param->v6.param_hdr.length) < sizeof(struct sctp_ipv6addr_param)) in sctp_v6_from_addr_param()
591 addr->v6.sin6_addr = param->v6.addr; in sctp_v6_from_addr_param()
601 union sctp_addr_param *param) in sctp_v6_to_addr_param() argument
605 param->v6.param_hdr.type = SCTP_PARAM_IPV6_ADDRESS; in sctp_v6_to_addr_param()
606 param->v6.param_hdr.length = htons(length); in sctp_v6_to_addr_param()
607 param->v6.addr = addr->v6.sin6_addr; in sctp_v6_to_addr_param()
/net/nfc/hci/
Dcommand.c20 const u8 *param, size_t param_len, in nfc_hci_execute_cmd_async() argument
30 param, param_len, cb, cb_context, MAX_FWI); in nfc_hci_execute_cmd_async()
56 const u8 *param, size_t param_len, in nfc_hci_execute_cmd() argument
73 param, param_len, in nfc_hci_execute_cmd()
92 const u8 *param, size_t param_len) in nfc_hci_send_event() argument
103 param, param_len, NULL, NULL, 0); in nfc_hci_send_event()
113 const u8 *param, size_t param_len, struct sk_buff **skb) in nfc_hci_send_cmd() argument
123 return nfc_hci_execute_cmd(hdev, pipe, cmd, param, param_len, skb); in nfc_hci_send_cmd()
128 const u8 *param, size_t param_len, 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()
[all …]
/net/dccp/
Dqpolicy.c130 bool dccp_qpolicy_param_ok(struct sock *sk, __be32 param) in dccp_qpolicy_param_ok() argument
133 if (!param || (param & (param - 1))) in dccp_qpolicy_param_ok()
135 return (qpol_table[dccp_sk(sk)->dccps_qpolicy].params & param) == param; in dccp_qpolicy_param_ok()
/net/sched/
Dact_gate.c37 struct tcf_gate_params *param = &gact->param; in gate_get_start_time() local
41 base = ns_to_ktime(param->tcfg_basetime); in gate_get_start_time()
49 cycle = param->tcfg_cycletime; in gate_get_start_time()
72 struct tcf_gate_params *p = &gact->param; in gate_timer_func()
280 if (basetime == gact->param.tcfg_basetime && in gate_setup_timer()
282 clockid == gact->param.tcfg_clockid) in gate_setup_timer()
289 gact->param.tcfg_basetime = basetime; in gate_setup_timer()
290 gact->param.tcfg_clockid = clockid; in gate_setup_timer()
383 INIT_LIST_HEAD(&gact->param.entries); in tcf_gate_init()
390 p = &gact->param; in tcf_gate_init()
[all …]
/net/ceph/
Dceph_common.c442 int ceph_parse_param(struct fs_parameter *param, struct ceph_options *opt, in ceph_parse_param() argument
449 token = __fs_parse(&log, ceph_parameters, param, &result); in ceph_parse_param()
450 dout("%s fs_parse '%s' token %d\n", __func__, param->key, token); in ceph_parse_param()
456 err = ceph_parse_ips(param->string, in ceph_parse_param()
457 param->string + param->size, in ceph_parse_param()
468 err = parse_fsid(param->string, &opt->fsid); in ceph_parse_param()
477 opt->name = param->string; in ceph_parse_param()
478 param->string = NULL; in ceph_parse_param()
487 err = ceph_crypto_key_unarmor(opt->key, param->string); in ceph_parse_param()
500 return get_secret(opt->key, param->string, &log); in ceph_parse_param()
[all …]
/net/bluetooth/hidp/
Dcore.c450 unsigned char param) in hidp_process_handshake() argument
452 BT_DBG("session %p param 0x%02x", session, param); in hidp_process_handshake()
455 switch (param) { in hidp_process_handshake()
493 unsigned char param) in hidp_process_hid_control() argument
495 BT_DBG("session %p param 0x%02x", session, param); in hidp_process_hid_control()
497 if (param == HIDP_CTRL_VIRTUAL_CABLE_UNPLUG) { in hidp_process_hid_control()
508 unsigned char param) in hidp_process_data() argument
511 BT_DBG("session %p skb %p len %u param 0x%02x", session, skb, skb->len, param); in hidp_process_data()
513 switch (param) { in hidp_process_data()
536 param == session->waiting_report_type) { in hidp_process_data()
[all …]
/net/ipv6/
Dseg6_local.c1603 struct seg6_action_param *param; in __destroy_attrs() local
1619 param = &seg6_action_params[i]; in __destroy_attrs()
1621 if (param->destroy) in __destroy_attrs()
1622 param->destroy(slwt); in __destroy_attrs()
1641 struct seg6_action_param *param; in parse_nla_optional_attrs() local
1651 param = &seg6_action_params[i]; in parse_nla_optional_attrs()
1653 err = param->parse(attrs, slwt); in parse_nla_optional_attrs()
1708 struct seg6_action_param *param; in parse_nla_action() local
1748 param = &seg6_action_params[i]; in parse_nla_action()
1750 err = param->parse(attrs, slwt); in parse_nla_action()
[all …]
/net/core/
Ddevlink.c4355 static int devlink_param_generic_verify(const struct devlink_param *param) in devlink_param_generic_verify() argument
4358 if (param->id > DEVLINK_PARAM_GENERIC_ID_MAX) in devlink_param_generic_verify()
4360 if (strcmp(param->name, devlink_param_generic[param->id].name)) in devlink_param_generic_verify()
4363 WARN_ON(param->type != devlink_param_generic[param->id].type); in devlink_param_generic_verify()
4368 static int devlink_param_driver_verify(const struct devlink_param *param) in devlink_param_driver_verify() argument
4372 if (param->id <= DEVLINK_PARAM_GENERIC_ID_MAX) in devlink_param_driver_verify()
4376 if (!strcmp(param->name, devlink_param_generic[i].name)) in devlink_param_driver_verify()
4389 if (!strcmp(param_item->param->name, param_name)) in devlink_param_find_by_name()
4400 if (param_item->param->id == param_id) in devlink_param_find_by_id()
4406 devlink_param_cmode_is_supported(const struct devlink_param *param, in devlink_param_cmode_is_supported() argument
[all …]
/net/netfilter/ipvs/
Dip_vs_sync.c842 static void ip_vs_proc_conn(struct netns_ipvs *ipvs, struct ip_vs_conn_param *param, in ip_vs_proc_conn() argument
853 cp = ip_vs_conn_in_get(param); in ip_vs_proc_conn()
866 kfree(param->pe_data); in ip_vs_proc_conn()
871 cp = ip_vs_ct_in_get(param); in ip_vs_proc_conn()
876 kfree(param->pe_data); in ip_vs_proc_conn()
909 param->vaddr, param->vport, protocol, in ip_vs_proc_conn()
912 cp = ip_vs_conn_new(param, type, daddr, dport, flags, dest, in ip_vs_proc_conn()
916 kfree(param->pe_data); in ip_vs_proc_conn()
921 kfree(param->pe_data); in ip_vs_proc_conn()
966 struct ip_vs_conn_param param; in ip_vs_process_message_v0() local
[all …]
Dip_vs_core.c262 struct ip_vs_conn_param param; in ip_vs_sched_persist() local
333 vaddr, vport, &param) < 0) { in ip_vs_sched_persist()
340 ct = ip_vs_ct_in_get(&param); in ip_vs_sched_persist()
359 kfree(param.pe_data); in ip_vs_sched_persist()
371 ct = ip_vs_conn_new(&param, dest->af, &dest->addr, dport, in ip_vs_sched_persist()
374 kfree(param.pe_data); in ip_vs_sched_persist()
383 kfree(param.pe_data); in ip_vs_sched_persist()
398 src_port, dst_addr, dst_port, &param); in ip_vs_sched_persist()
400 cp = ip_vs_conn_new(&param, dest->af, &dest->addr, dport, flags, dest, in ip_vs_sched_persist()
1136 struct ip_vs_conn_param param; in ip_vs_new_conn_out() local
[all …]
/net/sunrpc/xprtrdma/
Dsvc_rdma_transport.c162 struct rdma_conn_param *param) in svc_rdma_parse_connect_private() argument
164 const struct rpcrdma_connect_private *pmsg = param->private_data; in svc_rdma_parse_connect_private()
192 struct rdma_conn_param *param) in handle_connect_req() argument
205 svc_rdma_parse_connect_private(newxprt, param); in handle_connect_req()
208 newxprt->sc_ord = param->initiator_depth; in handle_connect_req()
254 handle_connect_req(cma_id, &event->param.conn); in svc_rdma_listen_handler()
/net/bluetooth/
Dhci_request.h44 const void *param);
46 const void *param, u8 event);
60 const void *param);
Dmgmt_util.c243 cmd->param = kmemdup(data, len, GFP_KERNEL); in mgmt_pending_add()
244 if (!cmd->param) { in mgmt_pending_add()
262 kfree(cmd->param); in mgmt_pending_free()
/net/rds/
Dib_cm.c84 dp = event->param.conn.private_data; in rds_ib_cm_connect_complete()
86 if (event->param.conn.private_data_len >= in rds_ib_cm_connect_complete()
98 } else if (event->param.conn.private_data_len >= in rds_ib_cm_connect_complete()
695 const union rds_ib_conn_priv *dp = event->param.conn.private_data; in rds_ib_protocol_compatible()
712 if (!event->param.conn.private_data_len) { in rds_ib_protocol_compatible()
731 if (event->param.conn.private_data_len < data_len || major == 0) in rds_ib_protocol_compatible()
809 dp = event->param.conn.private_data; in rds_ib_cm_handle_connect()
913 event->param.conn.responder_resources, in rds_ib_cm_handle_connect()
914 event->param.conn.initiator_depth, isv6); in rds_ib_cm_handle_connect()
/net/ax25/
Dax25_ds_subr.c124 static void ax25_kiss_cmd(ax25_dev *ax25_dev, unsigned char cmd, unsigned char param) in ax25_kiss_cmd() argument
139 *p++ = param; in ax25_kiss_cmd()
/net/nfc/
Ddigital.h53 int digital_in_configure_hw(struct nfc_digital_dev *ddev, int type, int param);
87 int digital_tg_configure_hw(struct nfc_digital_dev *ddev, int type, int param);

12