/net/mac802154/ |
D | mac_cmd.c | 39 struct ieee802154_llsec_params params; in mac802154_mlme_start_req() local 50 params.pan_id = addr->pan_id; in mac802154_mlme_start_req() 53 params.hwaddr = ieee802154_devaddr_from_raw(dev->dev_addr); in mac802154_mlme_start_req() 56 params.coord_hwaddr = params.hwaddr; in mac802154_mlme_start_req() 59 params.coord_shortaddr = addr->short_addr; in mac802154_mlme_start_req() 62 return mac802154_set_params(dev, ¶ms, changed); in mac802154_mlme_start_req() 66 const struct ieee802154_mac_params *params) in mac802154_set_mac_params() argument 76 wpan_dev->wpan_phy->transmit_power = params->transmit_power; in mac802154_set_mac_params() 77 wpan_dev->wpan_phy->cca = params->cca; in mac802154_set_mac_params() 78 wpan_dev->wpan_phy->cca_ed_level = params->cca_ed_level; in mac802154_set_mac_params() [all …]
|
D | llsec.c | 37 memset(&sec->params.default_key_source, 0xFF, IEEE802154_ADDR_LEN); in mac802154_llsec_init() 80 struct ieee802154_llsec_params *params) in mac802154_llsec_get_params() argument 83 *params = sec->params; in mac802154_llsec_get_params() 90 const struct ieee802154_llsec_params *params, in mac802154_llsec_set_params() argument 96 sec->params.enabled = params->enabled; in mac802154_llsec_set_params() 98 sec->params.frame_counter = params->frame_counter; in mac802154_llsec_set_params() 100 sec->params.out_level = params->out_level; in mac802154_llsec_set_params() 102 sec->params.out_key = params->out_key; in mac802154_llsec_set_params() 104 sec->params.default_key_source = params->default_key_source; in mac802154_llsec_set_params() 106 sec->params.pan_id = params->pan_id; in mac802154_llsec_set_params() [all …]
|
D | iface.c | 41 struct ieee802154_llsec_params params; in mac802154_wpan_update_llsec() local 44 params.pan_id = wpan_dev->pan_id; in mac802154_wpan_update_llsec() 47 params.hwaddr = wpan_dev->extended_addr; in mac802154_wpan_update_llsec() 50 rc = ops->llsec->set_params(dev, ¶ms, changed); in mac802154_wpan_update_llsec() 342 struct ieee802154_llsec_params params; in mac802154_set_header_security() local 345 mac802154_llsec_get_params(&sdata->sec, ¶ms); in mac802154_set_header_security() 347 if (!params.enabled && cb->secen_override && cb->secen) in mac802154_set_header_security() 349 if (!params.enabled || in mac802154_set_header_security() 351 !params.out_level) in mac802154_set_header_security() 356 level = cb->seclevel_override ? cb->seclevel : params.out_level; in mac802154_set_header_security() [all …]
|
/net/sched/ |
D | sch_pie.c | 73 struct pie_params params; member 79 static void pie_params_init(struct pie_params *params) in pie_params_init() argument 81 params->alpha = 2; in pie_params_init() 82 params->beta = 20; in pie_params_init() 83 params->tupdate = usecs_to_jiffies(30 * USEC_PER_MSEC); /* 30 ms */ in pie_params_init() 84 params->limit = 1000; /* default of 1000 packets */ in pie_params_init() 85 params->target = PSCHED_NS2TICKS(20 * NSEC_PER_MSEC); /* 20 ms */ in pie_params_init() 86 params->ecn = false; in pie_params_init() 87 params->bytemode = false; in pie_params_init() 112 if ((q->vars.qdelay < q->params.target / 2) in drop_early() [all …]
|
D | act_tunnel_key.c | 33 struct tcf_tunnel_key_params *params; in tunnel_key_act() local 38 params = rcu_dereference(t->params); in tunnel_key_act() 42 action = params->action; in tunnel_key_act() 44 switch (params->tcft_action) { in tunnel_key_act() 50 skb_dst_set(skb, dst_clone(¶ms->tcft_enc_metadata->dst)); in tunnel_key_act() 54 params->tcft_action); in tunnel_key_act() 171 params_old = rtnl_dereference(t->params); in tunnel_key_init() 177 rcu_assign_pointer(t->params, params_new); in tunnel_key_init() 196 struct tcf_tunnel_key_params *params; in tunnel_key_release() local 198 params = rcu_dereference_protected(t->params, 1); in tunnel_key_release() [all …]
|
D | sch_codel.c | 59 struct codel_params params; member 94 skb = codel_dequeue(sch, &sch->qstats.backlog, &q->params, &q->vars, in codel_qdisc_dequeue() 152 q->params.target = ((u64)target * NSEC_PER_USEC) >> CODEL_SHIFT; in codel_change() 158 q->params.ce_threshold = (val * NSEC_PER_USEC) >> CODEL_SHIFT; in codel_change() 164 q->params.interval = ((u64)interval * NSEC_PER_USEC) >> CODEL_SHIFT; in codel_change() 171 q->params.ecn = !!nla_get_u32(tb[TCA_CODEL_ECN]); in codel_change() 193 codel_params_init(&q->params); in codel_init() 196 q->params.mtu = psched_mtu(qdisc_dev(sch)); in codel_init() 223 codel_time_to_us(q->params.target)) || in codel_dump() 227 codel_time_to_us(q->params.interval)) || in codel_dump() [all …]
|
/net/mac80211/ |
D | cfg.c | 30 struct vif_params *params) in ieee80211_add_iface() argument 37 err = ieee80211_if_add(local, name, name_assign_type, &wdev, type, params); in ieee80211_add_iface() 59 struct vif_params *params) in ieee80211_change_iface() argument 69 params && params->use_4addr == 0) { in ieee80211_change_iface() 73 params && params->use_4addr >= 0) { in ieee80211_change_iface() 74 sdata->u.mgd.use_4addr = params->use_4addr; in ieee80211_change_iface() 86 params->vht_mumimo_groups, WLAN_MEMBERSHIP_LEN); in ieee80211_change_iface() 88 params->vht_mumimo_groups + WLAN_MEMBERSHIP_LEN, in ieee80211_change_iface() 95 params->macaddr); in ieee80211_change_iface() 314 struct key_params *params) in ieee80211_add_key() argument [all …]
|
D | ibss.c | 787 struct cfg80211_csa_settings params; in ieee80211_ibss_process_chanswitch() local 810 memset(¶ms, 0, sizeof(params)); in ieee80211_ibss_process_chanswitch() 827 params.count = csa_ie.count; in ieee80211_ibss_process_chanswitch() 828 params.chandef = csa_ie.chandef; in ieee80211_ibss_process_chanswitch() 840 cfg80211_chandef_create(¶ms.chandef, params.chandef.chan, in ieee80211_ibss_process_chanswitch() 845 if (params.chandef.width != ifibss->chandef.width) { in ieee80211_ibss_process_chanswitch() 849 params.chandef.chan->center_freq, in ieee80211_ibss_process_chanswitch() 850 params.chandef.width, in ieee80211_ibss_process_chanswitch() 851 params.chandef.center_freq1, in ieee80211_ibss_process_chanswitch() 852 params.chandef.center_freq2); in ieee80211_ibss_process_chanswitch() [all …]
|
D | driver-ops.c | 163 const struct ieee80211_tx_queue_params *params) in drv_conf_tx() argument 172 if (WARN_ONCE(params->cw_min == 0 || in drv_conf_tx() 173 params->cw_min > params->cw_max, in drv_conf_tx() 175 sdata->name, params->cw_min, params->cw_max)) in drv_conf_tx() 178 trace_drv_conf_tx(local, sdata, ac, params); in drv_conf_tx() 181 ac, params); in drv_conf_tx() 302 struct ieee80211_ampdu_params *params) in drv_ampdu_action() argument 312 trace_drv_ampdu_action(local, sdata, params); in drv_ampdu_action() 315 ret = local->ops->ampdu_action(&local->hw, &sdata->vif, params); in drv_ampdu_action()
|
D | offchannel.c | 779 struct cfg80211_mgmt_tx_params *params, u64 *cookie) in ieee80211_mgmt_tx() argument 785 const struct ieee80211_mgmt *mgmt = (void *)params->buf; in ieee80211_mgmt_tx() 791 if (params->dont_wait_for_ack) in ieee80211_mgmt_tx() 797 if (params->no_cck) in ieee80211_mgmt_tx() 834 (params->offchan && params->wait && in ieee80211_mgmt_tx() 852 if (need_offchan && !params->chan) in ieee80211_mgmt_tx() 865 need_offchan = params->chan && in ieee80211_mgmt_tx() 866 (params->chan != in ieee80211_mgmt_tx() 868 } else if (!params->chan) { in ieee80211_mgmt_tx() 878 if (need_offchan && !params->offchan) { in ieee80211_mgmt_tx() [all …]
|
/net/wireless/ |
D | sme.c | 30 struct cfg80211_connect_params params; member 73 if (wdev->conn->params.channel) in cfg80211_conn_scan() 84 if (wdev->conn->params.channel) { in cfg80211_conn_scan() 85 enum nl80211_band band = wdev->conn->params.channel->band; in cfg80211_conn_scan() 93 request->channels[0] = wdev->conn->params.channel; in cfg80211_conn_scan() 119 memcpy(request->ssids[0].ssid, wdev->conn->params.ssid, in cfg80211_conn_scan() 120 wdev->conn->params.ssid_len); in cfg80211_conn_scan() 121 request->ssids[0].ssid_len = wdev->conn->params.ssid_len; in cfg80211_conn_scan() 146 struct cfg80211_connect_params *params; in cfg80211_conn_do_work() local 155 params = &wdev->conn->params; in cfg80211_conn_do_work() [all …]
|
D | trace.h | 616 struct station_parameters *params), 617 TP_ARGS(wiphy, netdev, mac, params), 638 params->supported_rates_len) 639 __dynamic_array(u8, ext_capab, params->ext_capab_len) 641 params->supported_channels_len) 643 params->supported_oper_classes_len) 649 __entry->sta_flags_mask = params->sta_flags_mask; 650 __entry->sta_flags_set = params->sta_flags_set; 651 __entry->sta_modify_mask = params->sta_modify_mask; 652 __entry->listen_interval = params->listen_interval; [all …]
|
D | wext-compat.c | 400 int idx, struct key_params *params) in __cfg80211_set_encryption() argument 419 wdev->wext.keys->params[i].key = in __cfg80211_set_encryption() 427 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC) { in __cfg80211_set_encryption() 470 wdev->wext.keys->params[idx].key_len = 0; in __cfg80211_set_encryption() 471 wdev->wext.keys->params[idx].cipher = 0; in __cfg80211_set_encryption() 488 if (cfg80211_validate_key_settings(rdev, params, idx, pairwise, addr)) in __cfg80211_set_encryption() 493 err = rdev_add_key(rdev, dev, idx, pairwise, addr, params); in __cfg80211_set_encryption() 494 else if (params->cipher != WLAN_CIPHER_SUITE_WEP40 && in __cfg80211_set_encryption() 495 params->cipher != WLAN_CIPHER_SUITE_WEP104) in __cfg80211_set_encryption() 505 if (!addr && (params->cipher == WLAN_CIPHER_SUITE_WEP40 || in __cfg80211_set_encryption() [all …]
|
D | ibss.c | 88 struct cfg80211_ibss_params *params, in __cfg80211_join_ibss() argument 99 if (!params->basic_rates) { in __cfg80211_join_ibss() 106 rdev->wiphy.bands[params->chandef.chan->band]; in __cfg80211_join_ibss() 108 u32 flag = params->chandef.chan->band == NL80211_BAND_5GHZ ? in __cfg80211_join_ibss() 114 params->basic_rates |= BIT(j); in __cfg80211_join_ibss() 125 wdev->ibss_fixed = params->channel_fixed; in __cfg80211_join_ibss() 126 wdev->ibss_dfs_possible = params->userspace_handles_dfs; in __cfg80211_join_ibss() 127 wdev->chandef = params->chandef; in __cfg80211_join_ibss() 129 wdev->wext.ibss.chandef = params->chandef; in __cfg80211_join_ibss() 131 err = rdev_join_ibss(rdev, dev, params); in __cfg80211_join_ibss() [all …]
|
D | nl80211.c | 929 result->params[parse.idx].cipher = parse.p.cipher; in nl80211_parse_connkeys() 930 result->params[parse.idx].key_len = parse.p.key_len; in nl80211_parse_connkeys() 931 result->params[parse.idx].key = result->data[parse.idx]; in nl80211_parse_connkeys() 2725 struct vif_params params; in nl80211_set_interface() local 2732 memset(¶ms, 0, sizeof(params)); in nl80211_set_interface() 2763 params.use_4addr = !!nla_get_u8(info->attrs[NL80211_ATTR_4ADDR]); in nl80211_set_interface() 2765 err = nl80211_valid_4addr(rdev, dev, params.use_4addr, ntype); in nl80211_set_interface() 2769 params.use_4addr = -1; in nl80211_set_interface() 2799 memcpy(params.vht_mumimo_groups, mumimo_groups, in nl80211_set_interface() 2810 nla_memcpy(params.macaddr, in nl80211_set_interface() [all …]
|
D | rdev-ops.h | 40 struct vif_params *params) in rdev_add_virtual_intf() argument 45 type, flags, params); in rdev_add_virtual_intf() 64 u32 *flags, struct vif_params *params) in rdev_change_virtual_intf() argument 69 params); in rdev_change_virtual_intf() 77 struct key_params *params) in rdev_add_key() argument 82 mac_addr, params); in rdev_add_key() 172 struct station_parameters *params) in rdev_add_station() argument 175 trace_rdev_add_station(&rdev->wiphy, dev, mac, params); in rdev_add_station() 176 ret = rdev->ops->add_station(&rdev->wiphy, dev, mac, params); in rdev_add_station() 183 struct station_del_parameters *params) in rdev_del_station() argument [all …]
|
D | util.c | 218 struct key_params *params, int key_idx, in cfg80211_validate_key_settings() argument 230 switch (params->cipher) { in cfg80211_validate_key_settings() 263 switch (params->cipher) { in cfg80211_validate_key_settings() 265 if (params->key_len != WLAN_KEY_LEN_WEP40) in cfg80211_validate_key_settings() 269 if (params->key_len != WLAN_KEY_LEN_TKIP) in cfg80211_validate_key_settings() 273 if (params->key_len != WLAN_KEY_LEN_CCMP) in cfg80211_validate_key_settings() 277 if (params->key_len != WLAN_KEY_LEN_CCMP_256) in cfg80211_validate_key_settings() 281 if (params->key_len != WLAN_KEY_LEN_GCMP) in cfg80211_validate_key_settings() 285 if (params->key_len != WLAN_KEY_LEN_GCMP_256) in cfg80211_validate_key_settings() 289 if (params->key_len != WLAN_KEY_LEN_WEP104) in cfg80211_validate_key_settings() [all …]
|
/net/bluetooth/ |
D | hci_conn.c | 65 struct hci_conn_params *params; in hci_connect_le_scan_cleanup() local 81 params = hci_pend_le_action_lookup(&hdev->pend_le_conns, bdaddr, in hci_connect_le_scan_cleanup() 83 if (!params || !params->explicit_connect) in hci_connect_le_scan_cleanup() 91 params->explicit_connect = false; in hci_connect_le_scan_cleanup() 93 list_del_init(¶ms->action); in hci_connect_le_scan_cleanup() 95 switch (params->auto_connect) { in hci_connect_le_scan_cleanup() 102 list_add(¶ms->action, &hdev->pend_le_conns); in hci_connect_le_scan_cleanup() 105 list_add(¶ms->action, &hdev->pend_le_reports); in hci_connect_le_scan_cleanup() 325 struct hci_conn_params *params; in hci_le_conn_update() local 330 params = hci_conn_params_lookup(hdev, &conn->dst, conn->dst_type); in hci_le_conn_update() [all …]
|
/net/sctp/ |
D | socket.c | 2406 static int sctp_apply_peer_addr_params(struct sctp_paddrparams *params, in sctp_apply_peer_addr_params() argument 2416 if (params->spp_flags & SPP_HB_DEMAND && trans) { in sctp_apply_peer_addr_params() 2428 if (params->spp_flags & SPP_HB_ENABLE) { in sctp_apply_peer_addr_params() 2434 if (params->spp_flags & SPP_HB_TIME_IS_ZERO) in sctp_apply_peer_addr_params() 2435 params->spp_hbinterval = 0; in sctp_apply_peer_addr_params() 2437 if (params->spp_hbinterval || in sctp_apply_peer_addr_params() 2438 (params->spp_flags & SPP_HB_TIME_IS_ZERO)) { in sctp_apply_peer_addr_params() 2441 msecs_to_jiffies(params->spp_hbinterval); in sctp_apply_peer_addr_params() 2444 msecs_to_jiffies(params->spp_hbinterval); in sctp_apply_peer_addr_params() 2446 sp->hbinterval = params->spp_hbinterval; in sctp_apply_peer_addr_params() [all …]
|
/net/ieee802154/ |
D | nl-mac.c | 117 struct ieee802154_mac_params params; in ieee802154_nl_fill_iface() local 120 ops->get_mac_params(dev, ¶ms); in ieee802154_nl_fill_iface() 124 params.transmit_power / 100) || in ieee802154_nl_fill_iface() 125 nla_put_u8(msg, IEEE802154_ATTR_LBT_ENABLED, params.lbt) || in ieee802154_nl_fill_iface() 127 params.cca.mode) || in ieee802154_nl_fill_iface() 129 params.cca_ed_level / 100) || in ieee802154_nl_fill_iface() 131 params.csma_retries) || in ieee802154_nl_fill_iface() 133 params.min_be) || in ieee802154_nl_fill_iface() 135 params.max_be) || in ieee802154_nl_fill_iface() 137 params.frame_retries)) in ieee802154_nl_fill_iface() [all …]
|
/net/rxrpc/ |
D | output.c | 80 mtu = call->conn->params.peer->if_mtu; in rxrpc_fill_out_ack() 81 mtu -= call->conn->params.peer->hdrsize; in rxrpc_fill_out_ack() 183 ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, 2, len); in rxrpc_send_ack_packet() 255 ret = kernel_sendmsg(conn->params.local->socket, in rxrpc_send_abort_packet() 334 down_read(&conn->params.local->defrag_sem); in rxrpc_send_data_packet() 341 ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, 2, len); in rxrpc_send_data_packet() 343 up_read(&conn->params.local->defrag_sem); in rxrpc_send_data_packet() 367 down_write(&conn->params.local->defrag_sem); in rxrpc_send_data_packet() 369 switch (conn->params.local->srx.transport.family) { in rxrpc_send_data_packet() 372 ret = kernel_setsockopt(conn->params.local->socket, in rxrpc_send_data_packet() [all …]
|
D | rxkad.c | 61 _enter("{%d},{%x}", conn->debug_id, key_serial(conn->params.key)); in rxkad_init_connection_security() 63 token = conn->params.key->payload.data[0]; in rxkad_init_connection_security() 77 switch (conn->params.security_level) { in rxkad_init_connection_security() 115 if (!conn->params.key) in rxkad_prime_packet_security() 122 token = conn->params.key->payload.data[0]; in rxkad_prime_packet_security() 213 token = call->conn->params.key->payload.data[0]; in rxkad_secure_packet_encrypt() 264 call->debug_id, key_serial(call->conn->params.key), in rxkad_secure_packet() 270 ret = key_validate(call->conn->params.key); in rxkad_secure_packet() 296 switch (call->conn->params.security_level) { in rxkad_secure_packet() 444 token = call->conn->params.key->payload.data[0]; in rxkad_verify_packet_2() [all …]
|
D | conn_event.c | 62 msg.msg_name = &conn->params.peer->srx.transport; in rxrpc_conn_retransmit_call() 63 msg.msg_namelen = conn->params.peer->srx.transport_len; in rxrpc_conn_retransmit_call() 87 mtu = conn->params.peer->if_mtu; in rxrpc_conn_retransmit_call() 88 mtu -= conn->params.peer->hdrsize; in rxrpc_conn_retransmit_call() 129 kernel_sendmsg(conn->params.local->socket, &msg, &iov, 1, len); in rxrpc_conn_retransmit_call() 196 msg.msg_name = &conn->params.peer->srx.transport; in rxrpc_abort_connection() 197 msg.msg_namelen = conn->params.peer->srx.transport_len; in rxrpc_abort_connection() 211 whdr.serviceId = htons(conn->params.service_id); in rxrpc_abort_connection() 226 ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, 2, len); in rxrpc_abort_connection() 347 if (!conn->params.key) { in rxrpc_secure_connection()
|
/net/nfc/ |
D | digital_core.c | 165 struct digital_tg_mdaa_params *params; in digital_wq_cmd() local 204 params = cmd->mdaa_params; in digital_wq_cmd() 206 rc = ddev->ops->tg_listen_mdaa(ddev, params, cmd->timeout, in digital_wq_cmd() 237 struct sk_buff *skb, struct digital_tg_mdaa_params *params, in digital_send_cmd() argument 250 cmd->mdaa_params = params; in digital_send_cmd() 288 struct digital_tg_mdaa_params *params; in digital_tg_listen_mdaa() local 290 params = kzalloc(sizeof(struct digital_tg_mdaa_params), GFP_KERNEL); in digital_tg_listen_mdaa() 291 if (!params) in digital_tg_listen_mdaa() 294 params->sens_res = DIGITAL_SENS_RES_NFC_DEP; in digital_tg_listen_mdaa() 295 get_random_bytes(params->nfcid1, sizeof(params->nfcid1)); in digital_tg_listen_mdaa() [all …]
|
/net/dccp/ |
D | qpolicy.c | 76 __be32 params; member 83 .params = 0, 89 .params = DCCP_SCM_PRIORITY, 136 return (qpol_table[dccp_sk(sk)->dccps_qpolicy].params & param) == param; in dccp_qpolicy_param_ok()
|