Home
last modified time | relevance | path

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

12

/net/sunrpc/auth_gss/
Dgss_krb5_wrap.c399 static void rotate_buf_a_little(struct xdr_buf *buf, unsigned int shift) in rotate_buf_a_little() argument
405 BUG_ON(shift > LOCAL_BUF_LEN); in rotate_buf_a_little()
407 read_bytes_from_xdr_buf(buf, 0, head, shift); in rotate_buf_a_little()
408 for (i = 0; i + shift < buf->len; i += LOCAL_BUF_LEN) { in rotate_buf_a_little()
409 this_len = min(LOCAL_BUF_LEN, buf->len - (i + shift)); in rotate_buf_a_little()
410 read_bytes_from_xdr_buf(buf, i+shift, tmp, this_len); in rotate_buf_a_little()
413 write_bytes_to_xdr_buf(buf, buf->len - shift, head, shift); in rotate_buf_a_little()
416 static void _rotate_left(struct xdr_buf *buf, unsigned int shift) in _rotate_left() argument
421 shift %= buf->len; in _rotate_left()
422 while (shifted < shift) { in _rotate_left()
[all …]
/net/netfilter/
Dnf_conntrack_sip.c67 const char *limit, int *shift) in string_len() argument
79 const char *limit, int *shift) in digits_len() argument
111 const char *limit, int *shift) in callid_len() argument
130 const char *limit, int *shift) in media_len() argument
132 int len = string_len(ct, dptr, limit, shift); in media_len()
140 return len + digits_len(ct, dptr, limit, shift); in media_len()
186 const char *limit, int *shift) in epaddr_len() argument
199 dptr += digits_len(ct, dptr, limit, shift); in epaddr_len()
206 const char *limit, int *shift) in skp_epaddr_len() argument
209 int s = *shift; in skp_epaddr_len()
[all …]
Dnf_conntrack_h323_asn1.c215 unsigned int v, l, shift, bytes; in get_bitmap() local
229 for (bytes = l >> 3, shift = 24, v = 0; bytes; in get_bitmap()
230 bytes--, shift -= 8) in get_bitmap()
231 v |= (unsigned int)(*bs->cur++) << shift; in get_bitmap()
234 v |= (unsigned int)(*bs->cur) << shift; in get_bitmap()
/net/rxrpc/
Dproc.c257 unsigned int shift = 32 - HASH_BITS(rxnet->peer_hash); in rxrpc_peer_seq_start() local
265 n = *_pos & ((1U << shift) - 1); in rxrpc_peer_seq_start()
266 bucket = *_pos >> shift; in rxrpc_peer_seq_start()
284 *_pos = (bucket << shift) | n; in rxrpc_peer_seq_start()
292 unsigned int shift = 32 - HASH_BITS(rxnet->peer_hash); in rxrpc_peer_seq_next() local
298 bucket = *_pos >> shift; in rxrpc_peer_seq_next()
307 *_pos = (bucket << shift) | n; in rxrpc_peer_seq_next()
/net/mac80211/
Drc80211_minstrel.c442 int shift = ieee80211_chandef_get_shift(chandef); in calc_rate_durations() local
445 DIV_ROUND_UP(rate->bitrate, 1 << shift), erp, 1, in calc_rate_durations()
446 shift); in calc_rate_durations()
448 DIV_ROUND_UP(rate->bitrate, 1 << shift), erp, 1, in calc_rate_durations()
449 shift); in calc_rate_durations()
504 int shift; in minstrel_rate_init() local
516 shift = ieee80211_chandef_get_shift(chandef); in minstrel_rate_init()
518 (1 << shift) * 5); in minstrel_rate_init()
Dutil.c62 int shift) in ieee80211_frame_duration() argument
100 dur *= 1 << shift; in ieee80211_frame_duration()
136 int erp, shift = 0; in ieee80211_generic_frame_duration() local
145 shift = ieee80211_vif_get_shift(vif); in ieee80211_generic_frame_duration()
149 short_preamble, shift); in ieee80211_generic_frame_duration()
163 int erp, shift = 0, bitrate; in ieee80211_rts_duration() local
179 shift = ieee80211_vif_get_shift(vif); in ieee80211_rts_duration()
182 bitrate = DIV_ROUND_UP(rate->bitrate, 1 << shift); in ieee80211_rts_duration()
186 erp, short_preamble, shift); in ieee80211_rts_duration()
189 erp, short_preamble, shift); in ieee80211_rts_duration()
[all …]
Dstatus.c304 int rtap_len, int shift, in ieee80211_add_tx_radiotap_header() argument
346 *pos = DIV_ROUND_UP(legacy_rate, 5 * (1 << shift)); in ieee80211_add_tx_radiotap_header()
807 int retry_count, int shift, bool send_to_cooked, in ieee80211_tx_monitor() argument
824 rtap_len, shift, status); in ieee80211_tx_monitor()
878 int shift = 0; in __ieee80211_tx_status() local
888 shift = ieee80211_vif_get_shift(&sta->sdata->vif); in __ieee80211_tx_status()
1065 ieee80211_tx_monitor(local, skb, sband, retry_count, shift, in __ieee80211_tx_status()
Drc80211_minstrel_ht.h35 u8 shift; member
Drc80211_minstrel_ht.c62 .shift = _s, \
99 .shift = _s, \
157 .shift = _s, \
361 minstrel_mcs_groups[group].shift; in minstrel_ht_get_tp_avg()
538 return duration << group->shift; in minstrel_get_duration()
588 if ((group->duration[i] << group->shift) > max_dur) in minstrel_ht_find_probe_rates()
1122 duration <<= g->shift; in minstrel_ht_get_max_amsdu_len()
Drc80211_minstrel_ht_debugfs.c96 duration <<= mg->shift; in minstrel_ht_stats_dump()
241 duration <<= mg->shift; in minstrel_ht_stats_csv_dump()
Dibss.c54 int shift; in ieee80211_ibss_build_presp() local
95 shift = ieee80211_chandef_get_shift(chandef); in ieee80211_ibss_build_presp()
115 5 * (1 << shift)); in ieee80211_ibss_build_presp()
159 5 * (1 << shift)); in ieee80211_ibss_build_presp()
411 int shift; in ieee80211_sta_join_ibss() local
446 shift = ieee80211_vif_get_shift(&sdata->vif); in ieee80211_sta_join_ibss()
461 5 * (1 << shift)); in ieee80211_sta_join_ibss()
Dieee80211_i.h1037 int shift = 0; in ieee80211_vif_get_shift() local
1042 shift = ieee80211_chandef_get_shift(&chanctx_conf->def); in ieee80211_vif_get_shift()
1045 return shift; in ieee80211_vif_get_shift()
1772 int retry_count, int shift, bool send_to_cooked,
1933 int shift);
Dsta_info.c2075 unsigned int shift; in sta_stats_decode_rate() local
2082 shift = 2; in sta_stats_decode_rate()
2084 shift = 1; in sta_stats_decode_rate()
2086 shift = 0; in sta_stats_decode_rate()
2087 rinfo->legacy = DIV_ROUND_UP(brate, 1 << shift); in sta_stats_decode_rate()
Dtx.c55 int rate, mrate, erp, dur, i, shift = 0; in ieee80211_duration() local
71 shift = ieee80211_chandef_get_shift(&chanctx_conf->def); in ieee80211_duration()
151 rate = DIV_ROUND_UP(r->bitrate, 1 << shift); in ieee80211_duration()
179 rate = DIV_ROUND_UP(mrate, 1 << shift); in ieee80211_duration()
192 shift); in ieee80211_duration()
202 shift); in ieee80211_duration()
4637 int shift; in ieee80211_beacon_get_tim() local
4657 shift = ieee80211_vif_get_shift(vif); in ieee80211_beacon_get_tim()
4662 ieee80211_tx_monitor(hw_to_local(hw), copy, sband, 1, shift, false, in ieee80211_beacon_get_tim()
Dmlme.c647 int i, count, rates_len, supp_rates_len, shift; in ieee80211_send_assoc() local
665 shift = ieee80211_vif_get_shift(&sdata->vif); in ieee80211_send_assoc()
771 5 * (1 << shift)); in ieee80211_send_assoc()
787 5 * (1 << shift)); in ieee80211_send_assoc()
3117 int shift) in ieee80211_get_rates() argument
3125 if ((rate * 5 * (1 << shift)) > 110) in ieee80211_get_rates()
3146 brate = DIV_ROUND_UP(br->bitrate, (1 << shift) * 5); in ieee80211_get_rates()
4960 int shift = ieee80211_vif_get_shift(&sdata->vif); in ieee80211_prep_connection() local
4967 shift); in ieee80211_prep_connection()
/net/sched/
Dcls_tcindex.c48 u32 shift; /* shift ANDed key to the right */ member
88 int key = (skb->tc_index & p->mask) >> p->shift; in tcindex_classify()
239 return p->hash > (p->mask >> p->shift); in valid_perfect_hash()
330 cp->shift = p->shift; in tcindex_set_parms()
360 cp->shift = nla_get_u32(tb[TCA_TCINDEX_SHIFT]); in tcindex_set_parms()
383 if ((cp->mask >> cp->shift) < PERFECT_HASH_THRESHOLD) in tcindex_set_parms()
384 cp->hash = (cp->mask >> cp->shift) + 1; in tcindex_set_parms()
614 nla_put_u32(skb, TCA_TCINDEX_SHIFT, p->shift) || in tcindex_dump()
Dem_meta.c711 int shift = v->hdr.shift; in meta_var_apply_extras() local
713 if (shift && shift < dst->len) in meta_var_apply_extras()
714 dst->len -= shift; in meta_var_apply_extras()
762 if (v->hdr.shift) in meta_int_apply_extras()
763 dst->value >>= v->hdr.shift; in meta_int_apply_extras()
Dact_pedit.c361 offset += (*d & tkey->offmask) >> tkey->shift; in tcf_pedit_act()
Dsch_qfq.c723 static inline u64 qfq_round_down(u64 ts, unsigned int shift) in qfq_round_down() argument
725 return ts & ~((1ULL << shift) - 1); in qfq_round_down()
/net/netfilter/ipvs/
Dip_vs_mh.c348 int mw, shift; in ip_vs_mh_shift_weight() local
369 shift = fls(mw) - IP_VS_MH_TAB_BITS; in ip_vs_mh_shift_weight()
370 return (shift >= 0) ? shift : 0; in ip_vs_mh_shift_weight()
/net/ipv4/
Dtcp_cubic.c180 u32 x, b, shift; in cubic_root() local
207 shift = (a >> (b * 3)); in cubic_root()
209 x = ((u32)(((u32)v[shift] + 10) << b)) >> 6; in cubic_root()
Dtcp_timer.c87 int shift = 0; in tcp_out_of_resources() local
92 shift++; in tcp_out_of_resources()
96 shift++; in tcp_out_of_resources()
98 if (tcp_check_oom(sk, shift)) { in tcp_out_of_resources()
Dfib_trie.c380 unsigned int shift = pos + bits; in tnode_new() local
385 BUG_ON(!bits || (shift > KEYLENGTH)); in tnode_new()
400 tn->key = (shift < KEYLENGTH) ? (key >> shift) << shift : 0; in tnode_new()
/net/sunrpc/
Dxdr.c564 int shift = xdr->scratch.iov_len; in xdr_commit_encode() local
567 if (shift == 0) in xdr_commit_encode()
570 memcpy(xdr->scratch.iov_base, page, shift); in xdr_commit_encode()
571 memmove(page, page + shift, (void *)xdr->p - page); in xdr_commit_encode()
/net/netlink/
Daf_netlink.c1769 int pos, idx, shift; in netlink_getsockopt() local
1778 shift = (pos % sizeof(unsigned long)) * 8; in netlink_getsockopt()
1779 if (put_user((u32)(nlk->groups[idx] >> shift), in netlink_getsockopt()

12