Home
last modified time | relevance | path

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

/net/ceph/
Dauth.c23 static int ceph_auth_init_protocol(struct ceph_auth_client *ac, int protocol) in ceph_auth_init_protocol() argument
27 return ceph_auth_none_init(ac); in ceph_auth_init_protocol()
29 return ceph_x_init(ac); in ceph_auth_init_protocol()
40 struct ceph_auth_client *ac; in ceph_auth_init() local
46 ac = kzalloc(sizeof(*ac), GFP_NOFS); in ceph_auth_init()
47 if (!ac) in ceph_auth_init()
50 mutex_init(&ac->mutex); in ceph_auth_init()
51 ac->negotiating = true; in ceph_auth_init()
53 ac->name = name; in ceph_auth_init()
55 ac->name = CEPH_AUTH_NAME_DEFAULT; in ceph_auth_init()
[all …]
Dauth_none.c14 static void reset(struct ceph_auth_client *ac) in reset() argument
16 struct ceph_auth_none_info *xi = ac->private; in reset()
22 static void destroy(struct ceph_auth_client *ac) in destroy() argument
24 kfree(ac->private); in destroy()
25 ac->private = NULL; in destroy()
28 static int is_authenticated(struct ceph_auth_client *ac) in is_authenticated() argument
30 struct ceph_auth_none_info *xi = ac->private; in is_authenticated()
35 static int should_authenticate(struct ceph_auth_client *ac) in should_authenticate() argument
37 struct ceph_auth_none_info *xi = ac->private; in should_authenticate()
42 static int build_request(struct ceph_auth_client *ac, void *buf, void *end) in build_request() argument
[all …]
Dauth_x.c18 static void ceph_x_validate_tickets(struct ceph_auth_client *ac, int *pneed);
20 static int ceph_x_is_authenticated(struct ceph_auth_client *ac) in ceph_x_is_authenticated() argument
22 struct ceph_x_info *xi = ac->private; in ceph_x_is_authenticated()
25 ceph_x_validate_tickets(ac, &need); in ceph_x_is_authenticated()
27 ac->want_keys, need, xi->have_keys); in ceph_x_is_authenticated()
28 return (ac->want_keys & xi->have_keys) == ac->want_keys; in ceph_x_is_authenticated()
31 static int ceph_x_should_authenticate(struct ceph_auth_client *ac) in ceph_x_should_authenticate() argument
33 struct ceph_x_info *xi = ac->private; in ceph_x_should_authenticate()
36 ceph_x_validate_tickets(ac, &need); in ceph_x_should_authenticate()
38 ac->want_keys, need, xi->have_keys); in ceph_x_should_authenticate()
[all …]
Dauth_none.h26 int ceph_auth_none_init(struct ceph_auth_client *ac);
Dauth_x.h49 int ceph_x_init(struct ceph_auth_client *ac);
Dosd_client.c1055 struct ceph_auth_client *ac = osd->o_osdc->client->monc.auth; in put_osd() local
1058 ceph_auth_destroy_authorizer(ac, osd->o_auth.authorizer); in put_osd()
2936 struct ceph_auth_client *ac = osdc->client->monc.auth; in get_authorizer() local
2940 ceph_auth_destroy_authorizer(ac, auth->authorizer); in get_authorizer()
2944 int ret = ceph_auth_create_authorizer(ac, CEPH_ENTITY_TYPE_OSD, in get_authorizer()
2949 int ret = ceph_auth_update_authorizer(ac, CEPH_ENTITY_TYPE_OSD, in get_authorizer()
2954 *proto = ac->protocol; in get_authorizer()
2964 struct ceph_auth_client *ac = osdc->client->monc.auth; in verify_authorizer_reply() local
2966 return ceph_auth_verify_authorizer_reply(ac, o->o_auth.authorizer, len); in verify_authorizer_reply()
2973 struct ceph_auth_client *ac = osdc->client->monc.auth; in invalidate_authorizer() local
[all …]
/net/mac80211/
Dsta_info.c88 int ac, i; in __cleanup_single_sta() local
118 atomic_sub(n, &sdata->txqs_len[txqi->txq.ac]); in __cleanup_single_sta()
122 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __cleanup_single_sta()
123 local->total_ps_buffered -= skb_queue_len(&sta->ps_tx_buf[ac]); in __cleanup_single_sta()
124 ieee80211_purge_tx_queue(&local->hw, &sta->ps_tx_buf[ac]); in __cleanup_single_sta()
125 ieee80211_purge_tx_queue(&local->hw, &sta->tx_filtered[ac]); in __cleanup_single_sta()
652 static unsigned long ieee80211_tids_for_ac(int ac) in ieee80211_tids_for_ac() argument
655 switch (ac) { in ieee80211_tids_for_ac()
676 int ac; in __sta_info_recalc_tim() local
712 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __sta_info_recalc_tim()
[all …]
Dmesh_ps.c452 int ac; in mps_frame_deliver() local
460 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in mps_frame_deliver()
462 skb = skb_dequeue(&sta->tx_filtered[ac]); in mps_frame_deliver()
465 &sta->ps_tx_buf[ac]); in mps_frame_deliver()
475 if (!skb_queue_empty(&sta->tx_filtered[ac]) || in mps_frame_deliver()
476 !skb_queue_empty(&sta->ps_tx_buf[ac])) in mps_frame_deliver()
577 int ac, buffer_local = 0; in ieee80211_mps_frame_release() local
594 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in ieee80211_mps_frame_release()
595 buffer_local += skb_queue_len(&sta->ps_tx_buf[ac]) + in ieee80211_mps_frame_release()
596 skb_queue_len(&sta->tx_filtered[ac]); in ieee80211_mps_frame_release()
Dmlme.c1719 int ac; in __ieee80211_sta_handle_tspec_ac_params() local
1724 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __ieee80211_sta_handle_tspec_ac_params()
1725 struct ieee80211_sta_tx_tspec *tx_tspec = &ifmgd->tx_tspec[ac]; in __ieee80211_sta_handle_tspec_ac_params()
1743 if (drv_conf_tx(local, sdata, ac, &sdata->tx_conf[ac])) in __ieee80211_sta_handle_tspec_ac_params()
1746 ac); in __ieee80211_sta_handle_tspec_ac_params()
1758 for (non_acm_ac = ac + 1; in __ieee80211_sta_handle_tspec_ac_params()
1768 if (drv_conf_tx(local, sdata, ac, in __ieee80211_sta_handle_tspec_ac_params()
1772 ac); in __ieee80211_sta_handle_tspec_ac_params()
1810 int count, ac; in ieee80211_sta_wmm_params() local
1847 ac = IEEE80211_AC_BK; in ieee80211_sta_wmm_params()
[all …]
Dwme.c93 int ac = ieee802_1d_to_ac[skb->priority]; in ieee80211_downgrade_queue() local
95 if (ifmgd->tx_tspec[ac].admitted_time && in ieee80211_downgrade_queue()
96 skb->priority == ifmgd->tx_tspec[ac].up) in ieee80211_downgrade_queue()
97 return ac; in ieee80211_downgrade_queue()
Ddebugfs_sta.c88 int ac; in sta_num_ps_buf_frames_read() local
90 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in sta_num_ps_buf_frames_read()
91 p += scnprintf(p, sizeof(buf)+buf-p, "AC%d: %d\n", ac, in sta_num_ps_buf_frames_read()
92 skb_queue_len(&sta->ps_tx_buf[ac]) + in sta_num_ps_buf_frames_read()
93 skb_queue_len(&sta->tx_filtered[ac])); in sta_num_ps_buf_frames_read()
Dutil.c251 int ac; in ieee80211_propagate_queue_wake() local
260 for (ac = 0; ac < n_acs; ac++) { in ieee80211_propagate_queue_wake()
261 int ac_queue = sdata->vif.hw_queue[ac]; in ieee80211_propagate_queue_wake()
264 (atomic_read(&sdata->txqs_len[ac]) > in ieee80211_propagate_queue_wake()
272 netif_wake_subqueue(sdata->dev, ac); in ieee80211_propagate_queue_wake()
357 int ac; in __ieee80211_stop_queue() local
362 for (ac = 0; ac < n_acs; ac++) { in __ieee80211_stop_queue()
363 if (sdata->vif.hw_queue[ac] == queue || in __ieee80211_stop_queue()
365 netif_stop_subqueue(sdata->dev, ac); in __ieee80211_stop_queue()
520 int ac; in ieee80211_get_vif_queues() local
[all …]
Dtx.c378 int ac; in purge_old_ps_buffers() local
380 for (ac = IEEE80211_AC_BK; ac >= IEEE80211_AC_VO; ac--) { in purge_old_ps_buffers()
381 skb = skb_dequeue(&sta->ps_tx_buf[ac]); in purge_old_ps_buffers()
382 total += skb_queue_len(&sta->ps_tx_buf[ac]); in purge_old_ps_buffers()
490 int ac = skb_get_queue_mapping(tx->skb); in ieee80211_tx_h_unicast_ps_buf() local
499 sta->sta.addr, sta->sta.aid, ac); in ieee80211_tx_h_unicast_ps_buf()
517 if (skb_queue_len(&sta->ps_tx_buf[ac]) >= STA_MAX_TX_BUFFER) { in ieee80211_tx_h_unicast_ps_buf()
518 struct sk_buff *old = skb_dequeue(&sta->ps_tx_buf[ac]); in ieee80211_tx_h_unicast_ps_buf()
521 sta->sta.addr, ac); in ieee80211_tx_h_unicast_ps_buf()
530 skb_queue_tail(&sta->ps_tx_buf[ac], tx->skb); in ieee80211_tx_h_unicast_ps_buf()
[all …]
Ddriver-ops.c165 struct ieee80211_sub_if_data *sdata, u16 ac, in drv_conf_tx() argument
186 trace_drv_conf_tx(local, sdata, ac, params); in drv_conf_tx()
189 ac, params); in drv_conf_tx()
Dstatus.c52 int ac; in ieee80211_handle_filtered_frame() local
93 ac = ieee802_1d_to_ac[tid & 7]; in ieee80211_handle_filtered_frame()
95 ac = IEEE80211_AC_BE; in ieee80211_handle_filtered_frame()
141 skb_queue_len(&sta->tx_filtered[ac]) < STA_MAX_TX_BUFFER) { in ieee80211_handle_filtered_frame()
142 skb_queue_tail(&sta->tx_filtered[ac], skb); in ieee80211_handle_filtered_frame()
162 skb_queue_len(&sta->tx_filtered[ac]), in ieee80211_handle_filtered_frame()
Dtrace.h912 u16 ac, const struct ieee80211_tx_queue_params *params),
914 TP_ARGS(local, sdata, ac, params),
919 __field(u16, ac)
930 __entry->ac = ac;
940 LOCAL_PR_ARG, VIF_PR_ARG, __entry->ac
2361 __field(u8, ac)
2371 __entry->ac = txq->txq.ac;
2377 LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG, __entry->ac, __entry->tid
Diface.c724 int ac; in ieee80211_do_open() local
733 for (ac = 0; ac < n_acs; ac++) { in ieee80211_do_open()
734 int ac_queue = sdata->vif.hw_queue[ac]; in ieee80211_do_open()
738 netif_start_subqueue(dev, ac); in ieee80211_do_open()
984 atomic_set(&sdata->txqs_len[txqi->txq.ac], 0); in ieee80211_do_stop()
Dcfg.c1882 sdata->tx_conf[params->ac] = p; in ieee80211_set_txq_params()
1883 if (drv_conf_tx(local, sdata, params->ac, &p)) { in ieee80211_set_txq_params()
1886 params->ac); in ieee80211_set_txq_params()
3696 int ac = ieee802_1d_to_ac[up]; in ieee80211_add_tx_ts() local
3704 if (ifmgd->tx_tspec[ac].admitted_time) in ieee80211_add_tx_ts()
3708 ifmgd->tx_tspec[ac].admitted_time = 32 * admitted_time; in ieee80211_add_tx_ts()
3709 ifmgd->tx_tspec[ac].tsid = tsid; in ieee80211_add_tx_ts()
3710 ifmgd->tx_tspec[ac].up = up; in ieee80211_add_tx_ts()
3722 int ac; in ieee80211_del_tx_ts() local
3724 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in ieee80211_del_tx_ts()
[all …]
Dtdls.c232 static enum ieee80211_ac_numbers ieee80211_ac_from_wmm(int ac) in ieee80211_ac_from_wmm() argument
234 switch (ac) { in ieee80211_ac_from_wmm()
292 wmm->ac[i].aci_aifsn = ieee80211_wmm_aci_aifsn(txq->aifs, in ieee80211_tdls_add_wmm_param_ie()
294 wmm->ac[i].cw = ieee80211_wmm_ecw(txq->cw_min, txq->cw_max); in ieee80211_tdls_add_wmm_param_ie()
295 wmm->ac[i].txop_limit = cpu_to_le16(txq->txop); in ieee80211_tdls_add_wmm_param_ie()
Drx.c1306 int tid, ac; in ieee80211_rx_h_uapsd_and_pspoll() local
1350 ac = ieee802_1d_to_ac[tid & 7]; in ieee80211_rx_h_uapsd_and_pspoll()
1359 if (!(rx->sta->sta.uapsd_queues & BIT(ac))) in ieee80211_rx_h_uapsd_and_pspoll()
2370 u16 ac, q, hdrlen; in ieee80211_rx_h_mesh_fwding() local
2439 ac = ieee80211_select_queue_80211(sdata, skb, hdr); in ieee80211_rx_h_mesh_fwding()
2440 q = sdata->vif.hw_queue[ac]; in ieee80211_rx_h_mesh_fwding()
DKconfig37 bool "Minstrel 802.11ac support" if EXPERT
Ddriver-ops.h562 struct ieee80211_sub_if_data *sdata, u16 ac,
/net/ipv6/
Danycast.c216 static void aca_put(struct ifacaddr6 *ac) in aca_put() argument
218 if (atomic_dec_and_test(&ac->aca_refcnt)) { in aca_put()
219 in6_dev_put(ac->aca_idev); in aca_put()
220 dst_release(&ac->aca_rt->dst); in aca_put()
221 kfree(ac); in aca_put()
/net/wireless/
Dtrace.h1015 __field(enum nl80211_ac, ac)
1024 __entry->ac = params->ac;
1031 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ac, __entry->txop,
Dnl80211.c1921 u8 ac; in parse_txq_params() local
1928 ac = nla_get_u8(tb[NL80211_TXQ_ATTR_AC]); in parse_txq_params()
1934 if (ac >= NL80211_NUM_ACS) in parse_txq_params()
1936 txq_params->ac = array_index_nospec(ac, NL80211_NUM_ACS); in parse_txq_params()