Searched refs:bins (Results 1 - 26 of 26) sorted by relevance

/linux-4.4.14/drivers/net/wireless/ath/ath9k/
H A Dcommon-spectral.h49 * [7:0]: all bins {max_magnitude[1:0], bitmap_weight[5:0]}
50 * [7:0]: all bins max_magnitude[9:2]
51 * [7:0]: all bins {max_index[5:0], max_magnitude[11:10]}
74 * [7:0]: lower bins {max_magnitude[1:0], bitmap_weight[5:0]}
75 * [7:0]: lower bins max_magnitude[9:2]
76 * [7:0]: lower bins {max_index[5:0], max_magnitude[11:10]}
77 * [7:0]: upper bins {max_magnitude[1:0], bitmap_weight[5:0]}
78 * [7:0]: upper bins max_magnitude[9:2]
79 * [7:0]: upper bins {max_index[5:0], max_magnitude[11:10]}
111 /* grabs the max magnitude from the all/upper/lower bins */ spectral_max_magnitude()
112 static inline u16 spectral_max_magnitude(u8 *bins) spectral_max_magnitude() argument
114 return (bins[0] & 0xc0) >> 6 | spectral_max_magnitude()
115 (bins[1] & 0xff) << 2 | spectral_max_magnitude()
116 (bins[2] & 0x03) << 10; spectral_max_magnitude()
119 /* return the max magnitude from the all/upper/lower bins */ spectral_max_index()
120 static inline u8 spectral_max_index(u8 *bins, int num_bins) spectral_max_index() argument
122 s8 m = (bins[2] & 0xfc) >> 2; spectral_max_index()
148 /* return the bitmap weight from the all/upper/lower bins */ spectral_bitmap_weight()
149 static inline u8 spectral_bitmap_weight(u8 *bins) spectral_bitmap_weight() argument
151 return bins[0] & 0x3f; spectral_bitmap_weight()
H A Ddfs.c63 static inline int fft_max_index(u8 *bins) fft_max_index() argument
65 return (bins[2] & 0xfc) >> 2; fft_max_index()
67 static inline int fft_max_magnitude(u8 *bins) fft_max_magnitude() argument
69 return (bins[0] & 0xc0) >> 6 | bins[1] << 2 | (bins[2] & 0x03) << 10; fft_max_magnitude()
71 static inline u8 fft_bitmap_weight(u8 *bins) fft_bitmap_weight() argument
73 return bins[0] & 0x3f; fft_bitmap_weight()
82 /* first check wether channels have 'strong' bins */ ath9k_get_max_index_ht40()
H A Dcommon-spectral.c69 * in case of a missing byte (so bins[0] will be outside ath_cmn_max_idx_verify_ht20_fft()
113 * in case of a missing byte (so bins[0] will be outside ath_cmn_max_idx_verify_ht20_40_fft()
351 * the expected bins ath_cmn_process_ht20_40_fft()
652 /* Mix the received bins to the /dev/random ath_cmn_process_fft()
663 /* Mix the received bins to the /dev/random ath_cmn_process_fft()
H A Dar9003_phy.h52 #define AR_PHY_SPUR_REG_ENABLE_MASK_PPM 0x20000 /* bins move with freq offset */
/linux-4.4.14/tools/testing/selftests/timers/
H A DMakefile15 bins = $(TEST_PROGS) $(TEST_PROGS_EXTENDED) macro
17 all: ${bins}
37 rm -f ${bins}
/linux-4.4.14/arch/arc/include/asm/
H A Dshmparam.h12 /* Handle upto 2 cache bins */
/linux-4.4.14/net/sched/
H A Dsch_sfb.c31 * SFB uses two B[l][n] : L x N arrays of bins (L levels, N bins per level)
37 #define SFB_NUMBUCKETS (1 << SFB_BUCKET_SHIFT) /* N bins per Level */
52 struct sfb_bucket bins[SFB_LEVELS][SFB_NUMBUCKETS]; member in struct:sfb_bins
71 u8 slot; /* current active bins (0 or 1) */
73 struct sfb_bins bins[2]; member in struct:sfb_sched_data
86 * Each queued skb might be hashed on one or two bins
128 struct sfb_bucket *b = &q->bins[slot].bins[0][0]; increment_one_qlen()
157 struct sfb_bucket *b = &q->bins[slot].bins[0][0]; decrement_one_qlen()
194 memset(&q->bins, 0, sizeof(q->bins)); sfb_zero_all_buckets()
204 const struct sfb_bucket *b = &q->bins[q->slot].bins[0][0]; sfb_compute_qlen()
222 q->bins[slot].perturbation = prandom_u32(); sfb_init_perturbation()
316 sfbhash = jhash_1word(salt, q->bins[slot].perturbation); sfb_enqueue()
318 sfbhash = skb_get_hash_perturb(skb, q->bins[slot].perturbation); sfb_enqueue()
328 struct sfb_bucket *b = &q->bins[slot].bins[i][hash]; sfb_enqueue()
354 q->bins[slot].perturbation); sfb_enqueue()
361 struct sfb_bucket *b = &q->bins[slot].bins[i][hash]; sfb_enqueue()
/linux-4.4.14/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_platform.c39 * dwmac1000_validate_mcast_bins - validates the number of Multicast filter bins
40 * @mcast_bins: Multicast filtering bins
42 * this function validates the number of Multicast filtering bins specified
44 * 64 bins, 128 bins, or 256 bins. "bins" refer to the division of CRC
45 * number space. 64 bins correspond to 6 bits of the CRC, 128 corresponds
169 /* Set default value for multicast hash bins */ stmmac_probe_config_dt()
191 of_property_read_u32(np, "snps,multicast-filter-bins", stmmac_probe_config_dt()
H A Ddwmac-generic.c42 /* Set default value for multicast hash bins */ dwmac_generic_probe()
H A Dstmmac_pci.c86 /* Set default value for multicast hash bins */ stmmac_default_data()
121 /* Set default value for multicast hash bins */ quark_default_data()
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
H A Dspectral.c43 /* peak index outside of bins */ get_max_exp()
68 u8 chain_idx, *bins; ath10k_spectral_process_fft() local
105 * show, the particular configuration of 80 MHz/64 bins does ath10k_spectral_process_fft()
139 bins = (u8 *)fftr; ath10k_spectral_process_fft()
140 bins += sizeof(*fftr); ath10k_spectral_process_fft()
148 bin_len, bins); ath10k_spectral_process_fft()
150 memcpy(fft_sample->data, bins, bin_len); ath10k_spectral_process_fft()
425 unsigned int len, bins, fft_size, bin_scale; read_file_spectral_bins() local
431 bins = 1 << (fft_size - bin_scale); read_file_spectral_bins()
435 len = sprintf(buf, "%d\n", bins); read_file_spectral_bins()
530 /* The buffer size covers whole channels in dual bands up to 128 bins. ath10k_spectral_create()
531 * Scan with bigger than 128 bins needs to be run on single band each. ath10k_spectral_create()
H A Dspectral.h26 * @fft_size: number of bins to be requested = 2^(fft_size - bin_scale)
H A Dwmi.h4897 /* number of bins in the FFT: 2^(fft_size - bin_scale) */
4916 * 1x- oversampled bins(in-band) per FFT + spectral scan summary
4919 * 2x- oversampled bins (all) per FFT + spectral scan summary
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/
H A Dqed_l2.c127 unsigned long bins[8]; member in struct:qed_sp_vport_update_params
341 memset(&p_ramrod->approx_mcast.bins, 0, qed_sp_update_mcast_bin()
342 sizeof(p_ramrod->approx_mcast.bins)); qed_sp_update_mcast_bin()
347 u32 *p_bins = (u32 *)p_params->bins; qed_sp_update_mcast_bin()
350 p_ramrod->approx_mcast.bins[i] = val; qed_sp_update_mcast_bin()
404 /* Update mcast bins for VFs, PF doesn't use this functionality */ qed_sp_vport_update()
1102 unsigned long bins[ETH_MULTICAST_MAC_BINS_IN_REGS]; qed_sp_eth_filter_mcast() local
1142 memset(&p_ramrod->approx_mcast.bins, 0, qed_sp_eth_filter_mcast()
1143 sizeof(p_ramrod->approx_mcast.bins)); qed_sp_eth_filter_mcast()
1144 memset(bins, 0, sizeof(unsigned long) * qed_sp_eth_filter_mcast()
1154 __set_bit(bit, bins); qed_sp_eth_filter_mcast()
1159 u32 *p_bins = (u32 *)bins; qed_sp_eth_filter_mcast()
1163 approx_mcast->bins[i] = cpu_to_le32(p_bins[i]); qed_sp_eth_filter_mcast()
H A Dqed_hsi.h2876 __le32 bins[ETH_MULTICAST_MAC_BINS_IN_REGS]; member in struct:vport_update_ramrod_mcast
/linux-4.4.14/include/uapi/linux/
H A Domap3isp.h178 /* Flags for number of bins */
184 /* Number of bins * 4 colors * 4-bytes word */
223 __u16 hist_bins; /* number of bins: 32, 64, 128, or 256 */
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dramgt215.c102 u8 median[8], bins[4] = {0, 0, 0, 0}, bin = 0, qty = 0; gt215_link_train_calc() local
125 bins[(median[i] & 0xf0) >> 4]++; gt215_link_train_calc()
131 if (bins[i] > qty) { gt215_link_train_calc()
133 qty = bins[i]; gt215_link_train_calc()
/linux-4.4.14/drivers/staging/lustre/lustre/include/
H A Dlustre_import.h64 unsigned int at_hist[AT_BINS]; /* timeout history bins */
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_sp.c2779 /* Get a bin and update a bins' vector */ bnx2x_mcast_set_one_rule_e2()
2787 /* If there were no more bins to clear bnx2x_mcast_set_one_rule_e2()
2822 * returns last handled bin index or -1 if all bins have been handled
2831 /* go through the registry and configure the bins from it */ bnx2x_mcast_handle_restore_cmd_e2()
2915 /* If we cleared all bins - we are done */ bnx2x_mcast_hdl_pending_del_e2()
3082 * the same bin and the actual number of bins set in the bnx2x_mcast_validate_e2()
3091 /* Here we assume that all new MACs will fall into new bins. bnx2x_mcast_validate_e2()
3141 * bnx2x_mcast_refresh_registry_e2 - recalculate the actual number of set bins
3146 * Recalculate the actual number of set bins in the registry using Brian
3147 * Kernighan's algorithm: it's execution complexity is as a number of set bins.
3212 * set bins after the last requested operation in order to properly bnx2x_mcast_setup_e2()
3219 * know in this scope what the actual state of bins configuration is bnx2x_mcast_setup_e2()
/linux-4.4.14/include/linux/ceph/
H A Drados.h91 * increases over time. b is the number of bins, and bmask is the
/linux-4.4.14/net/irda/
H A Dirqueue.c86 * lock only the individual bins, it will never be able to lock the
118 * data of the hashbin and not only the bins themselves.
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
H A Dimport.c1509 /* Bin into timeslices using AT_BINS bins.
1545 /* move bins over */ at_measured()
/linux-4.4.14/drivers/net/dsa/
H A Dbcm_sf2.c650 /* Read the 4 bins */ bcm_sf2_arl_read()
/linux-4.4.14/drivers/net/ethernet/dec/tulip/
H A Dde4x5.c774 u_int bins[DE4X5_PKT_STAT_SZ]; /* Private stats counters */ member in struct:pkt_stats
1866 lp->pktStats.bins[i]++; de4x5_local_stats()
1880 lp->pktStats.bins[0]++; /* Duplicates stats.rx_packets */ de4x5_local_stats()
1881 if (lp->pktStats.bins[0] == 0) { /* Reset counters */ de4x5_local_stats()
/linux-4.4.14/net/batman-adv/
H A Dnetwork-coding.c668 /* Loop hash table bins */ batadv_nc_process_nc_paths()
/linux-4.4.14/drivers/gpu/drm/i915/
H A Dintel_pm.c4332 /* Max/min bins are special */ gen6_set_rps_thresholds()

Completed in 1208 milliseconds