Searched refs:shift (Results 1 - 23 of 23) sorted by relevance

/net/sunrpc/auth_gss/
H A Dgss_krb5_wrap.c187 /* shift data to make room for header. */
390 * We can shift data by up to LOCAL_BUF_LEN bytes in a pass. If we need
391 * to do more than that, we shift repeatedly. Kevin Coffman reports
401 static void rotate_buf_a_little(struct xdr_buf *buf, unsigned int shift) argument
407 BUG_ON(shift > LOCAL_BUF_LEN);
409 read_bytes_from_xdr_buf(buf, 0, head, shift);
410 for (i = 0; i + shift < buf->len; i += LOCAL_BUF_LEN) {
411 this_len = min(LOCAL_BUF_LEN, buf->len - (i + shift));
412 read_bytes_from_xdr_buf(buf, i+shift, tmp, this_len);
415 write_bytes_to_xdr_buf(buf, buf->len - shift, hea
418 _rotate_left(struct xdr_buf *buf, unsigned int shift) argument
431 rotate_left(u32 base, struct xdr_buf *buf, unsigned int shift) argument
[all...]
/net/netfilter/
H A Dnf_conntrack_sip.c59 const char *limit, int *shift)
71 const char *limit, int *shift)
102 const char *limit, int *shift)
121 const char *limit, int *shift)
123 int len = string_len(ct, dptr, limit, shift);
131 return len + digits_len(ct, dptr, limit, shift);
177 const char *limit, int *shift)
190 dptr += digits_len(ct, dptr, limit, shift);
197 const char *limit, int *shift)
200 int s = *shift;
58 string_len(const struct nf_conn *ct, const char *dptr, const char *limit, int *shift) argument
70 digits_len(const struct nf_conn *ct, const char *dptr, const char *limit, int *shift) argument
101 callid_len(const struct nf_conn *ct, const char *dptr, const char *limit, int *shift) argument
120 media_len(const struct nf_conn *ct, const char *dptr, const char *limit, int *shift) argument
176 epaddr_len(const struct nf_conn *ct, const char *dptr, const char *limit, int *shift) argument
196 skp_epaddr_len(const struct nf_conn *ct, const char *dptr, const char *limit, int *shift) argument
236 int shift = 0; local
366 int shift = 0; local
434 int shift = 0; local
665 sdp_addr_len(const struct nf_conn *ct, const char *dptr, const char *limit, int *shift) argument
727 int shift = 0; local
[all...]
H A Dnf_conntrack_h323_asn1.c208 unsigned int v, l, shift, bytes; local
222 for (bytes = l >> 3, shift = 24, v = 0; bytes;
223 bytes--, shift -= 8)
224 v |= (unsigned int)(*bs->cur++) << shift;
227 v |= (unsigned int)(*bs->cur) << shift;
/net/sched/
H A Dcls_tcindex.c45 u32 shift; /* shift ANDed key to the right */ member in struct:tcindex_data
86 int key = (skb->tc_index & p->mask) >> p->shift;
197 return p->hash > (p->mask >> p->shift);
250 cp->shift = p->shift;
282 cp->shift = nla_get_u32(tb[TCA_TCINDEX_SHIFT]);
305 if ((cp->mask >> cp->shift) < PERFECT_HASH_THRESHOLD)
306 cp->hash = (cp->mask >> cp->shift) + 1;
314 /* Note: this could be as restrictive as if (handle & ~(mask >> shift))
[all...]
H A Dem_meta.c50 * Additionally, type dependent modifiers such as shift operators
667 int shift = v->hdr.shift; local
669 if (shift && shift < dst->len)
670 dst->len -= shift;
718 if (v->hdr.shift)
719 dst->value >>= v->hdr.shift;
H A Dact_pedit.c137 offset += (*d & tkey->offmask) >> tkey->shift;
H A Dsch_qfq.c78 we can derive the shift corresponding to each group.
106 * is the shift for the corresponding (scaled) sigma_i.
174 unsigned int slot_shift; /* Slot shift. */
749 static inline u64 qfq_round_down(u64 ts, unsigned int shift) argument
751 return ts & ~((1ULL << shift) - 1);
874 * index is never higher than QFQ_MAX_SLOTS-2. This backward-shift may
878 * would have been even lower than they are after the backward shift,
881 * service is postponed because of the backward-shift would have
H A Dsch_generic.c967 * in fast path (a reciprocal divide is a multiply and a shift)
972 * We compute mult/shift to use instead :
973 * time_in_ns = (len * mult) >> shift;
986 r->shift++;
/net/mac80211/
H A Dutil.c112 int shift)
124 * shift may be 2 for 5 MHz channels or 1 for 10 MHz channels, and
150 dur *= 1 << shift;
186 int erp, shift = 0; local
195 shift = ieee80211_vif_get_shift(vif);
199 short_preamble, shift);
213 int erp, shift = 0, bitrate; local
229 shift = ieee80211_vif_get_shift(vif);
232 bitrate = DIV_ROUND_UP(rate->bitrate, 1 << shift);
236 erp, short_preamble, shift);
110 ieee80211_frame_duration(enum ieee80211_band band, size_t len, int rate, int erp, int short_preamble, int shift) argument
257 int erp, shift = 0, bitrate; local
1264 int shift; local
1525 int i, j, shift; local
2272 int shift = ieee80211_chandef_get_shift(chandef); local
2303 int rate, shift; local
2348 int rate, shift; local
2469 int shift = 0; local
[all...]
H A Drc80211_minstrel.c406 int shift = ieee80211_chandef_get_shift(chandef); local
409 DIV_ROUND_UP(rate->bitrate, 1 << shift), erp, 1,
410 shift);
412 DIV_ROUND_UP(rate->bitrate, 1 << shift), erp, 1,
413 shift);
468 int shift; local
480 shift = ieee80211_chandef_get_shift(chandef);
482 (1 << shift) * 5);
H A Dstatus.c276 int rtap_len, int shift)
307 *pos = DIV_ROUND_UP(rate, 5 * (1 << shift));
591 int shift = 0; local
626 shift = ieee80211_vif_get_shift(&sta->sdata->vif);
802 rtap_len, shift);
273 ieee80211_add_tx_radiotap_header(struct ieee80211_local *local, struct ieee80211_supported_band *sband, struct sk_buff *skb, int retry_count, int rtap_len, int shift) argument
H A Dibss.c55 int shift; local
94 shift = ieee80211_chandef_get_shift(chandef);
114 5 * (1 << shift));
157 5 * (1 << shift));
400 int shift; local
429 shift = ieee80211_vif_get_shift(&sdata->vif);
444 5 * (1 << shift));
H A Dieee80211_i.h919 int shift = 0; local
924 shift = ieee80211_chandef_get_shift(&chanctx_conf->def);
927 return shift;
1687 int shift);
H A Dmlme.c596 int i, count, rates_len, supp_rates_len, shift; local
615 shift = ieee80211_vif_get_shift(&sdata->vif);
722 5 * (1 << shift));
738 5 * (1 << shift));
2507 int shift, u32 rate_flags)
2515 if ((rate * 5 * (1 << shift)) > 110)
2538 brate = DIV_ROUND_UP(br->bitrate, (1 << shift) * 5);
4017 int shift; local
4027 shift = ieee80211_vif_get_shift(&sdata->vif);
4044 shift, rate_flag
2502 ieee80211_get_rates(struct ieee80211_supported_band *sband, u8 *supp_rates, unsigned int supp_rates_len, u32 *rates, u32 *basic_rates, bool *have_higher_than_11mbit, int *min_rate, int *min_rate_index, int shift, u32 rate_flags) argument
[all...]
H A Dtx.c45 int rate, mrate, erp, dur, i, shift = 0; local
57 shift = ieee80211_chandef_get_shift(&chanctx_conf->def);
141 rate = DIV_ROUND_UP(r->bitrate, 1 << shift);
168 rate = DIV_ROUND_UP(mrate, 1 << shift);
181 shift);
191 shift);
H A Dcfg.c420 int shift = ieee80211_vif_get_shift(&sta->sdata->vif); local
426 rinfo->legacy = DIV_ROUND_UP(brate, 1 << shift);
451 int shift = ieee80211_vif_get_shift(&sta->sdata->vif); local
457 rinfo->legacy = DIV_ROUND_UP(brate, 1 << shift);
H A Drx.c213 int shift = 0; local
216 shift = 1;
218 shift = 2;
219 *pos = DIV_ROUND_UP(rate->bitrate, 5 * (1 << shift));
/net/ipv4/
H A Dtcp_cubic.c163 u32 x, b, shift; local
190 shift = (a >> (b * 3));
192 x = ((u32)(((u32)v[shift] + 10) << b)) >> 6;
H A Dtcp_timer.c58 int shift = 0; local
63 shift++;
67 shift++;
69 if (tcp_check_oom(sk, shift)) {
H A Dtcp.c1970 * State processing on a close. This implements the state shift for
2027 bool tcp_check_oom(struct sock *sk, int shift) argument
2031 too_many_orphans = tcp_too_many_orphans(sk, shift);
/net/6lowpan/
H A Diphc.c510 static u8 lowpan_compress_addr_64(u8 **hc_ptr, u8 shift, argument
533 return rol8(val, shift);
/net/sunrpc/
H A Dxdr.c500 int shift = xdr->scratch.iov_len; local
503 if (shift == 0)
506 memcpy(xdr->scratch.iov_base, page, shift);
507 memmove(page, page + shift, (void *)xdr->p - page);
/net/core/
H A Dneighbour.c319 static struct neigh_hash_table *neigh_hash_alloc(unsigned int shift) argument
321 size_t size = (1 << shift) * sizeof(struct neighbour *);
340 ret->hash_shift = shift;

Completed in 291 milliseconds