Home
last modified time | relevance | path

Searched refs:n_bits (Results 1 – 22 of 22) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/
Dtest_lpm_map.c32 size_t n_bits; member
38 size_t n_bits);
42 size_t n_bits) in tlpm_add() argument
47 n = (n_bits + 7) / 8; in tlpm_add()
50 node = tlpm_match(list, key, n_bits); in tlpm_add()
51 if (node && node->n_bits == n_bits) { in tlpm_add()
62 node->n_bits = n_bits; in tlpm_add()
82 size_t n_bits) in tlpm_match() argument
94 for (i = 0; i < n_bits && i < list->n_bits; ++i) { in tlpm_match()
100 if (i >= list->n_bits) { in tlpm_match()
[all …]
/linux-6.12.1/drivers/net/ppp/
Dbsd_comp.c140 unsigned char n_bits; /* current bits/code */ member
226 db->n_bits = BSD_INIT_BITS; in bsd_clear()
569 unsigned int n_bits; in bsd_compress() local
598 bitno -= n_bits; \ in bsd_compress()
624 n_bits = db->n_bits; in bsd_compress()
627 mxcode = MAXCODE (n_bits); in bsd_compress()
707 db->n_bits = ++n_bits; in bsd_compress()
708 mxcode = MAXCODE (n_bits); in bsd_compress()
778 db->n_bits++; in bsd_compress()
834 unsigned int n_bits; in bsd_decompress() local
[all …]
/linux-6.12.1/drivers/clk/ingenic/
Dx1830-cgu.c122 .n_bits = 6,
145 .n_bits = 6,
168 .n_bits = 6,
191 .n_bits = 6,
Dx1000-cgu.c178 const unsigned long n_max = GENMASK(pll_info->n_bits - 1, 0); in x1000_i2spll_calc_m_n_od()
227 .n_bits = 5,
250 .n_bits = 5,
370 .n_bits = 13,
Djz4760-cgu.c67 n = clamp_val(n, 2, 1 << pll_info->n_bits); in jz4760_cgu_calc_m_n_od()
102 .n_bits = 4,
127 .n_bits = 4,
Dcgu.h57 u8 n_shift, n_bits, n_offset; member
Djz4770-cgu.c112 .n_bits = 5,
136 .n_bits = 5,
Djz4740-cgu.c79 .n_bits = 5,
Djz4725b-cgu.c64 .n_bits = 5,
Djz4755-cgu.c61 .n_bits = 5,
Dcgu.c97 n = (ctl >> pll_info->n_shift) & GENMASK(pll_info->n_bits - 1, 0); in ingenic_pll_recalc_rate()
141 n = min_t(unsigned int, n, 1 << pll_info->n_bits); in ingenic_pll_calc_m_n_od()
225 ctl &= ~(GENMASK(pll_info->n_bits - 1, 0) << pll_info->n_shift); in ingenic_pll_set_rate()
Djz4780-cgu.c280 .n_bits = 6, \
/linux-6.12.1/net/wireless/
Dradiotap.c53 .n_bits = ARRAY_SIZE(rtap_namespace_sizes),
241 iterator->_arg_index >= iterator->current_namespace->n_bits) { in ieee80211_radiotap_iterator_next()
/linux-6.12.1/fs/sysv/
Dsuper.c308 u_char n_bits = size+8; in complete_read_super() local
309 int bsize = 1 << n_bits; in complete_read_super()
321 sbi->s_inodes_per_block_bits = n_bits-6; in complete_read_super()
325 sbi->s_ind_per_block_bits = n_bits-2; in complete_read_super()
/linux-6.12.1/lib/
Dtest_scanf.c272 u32 n_bits = hweight32(prandom_u32_state(&rnd_state)) % (max_bits + 1); in next_test_random() local
274 return prandom_u32_state(&rnd_state) & GENMASK(n_bits, 0); in next_test_random()
280 u32 n_bits = (hweight32(rand1) * 3) % 64; in next_test_random_ull() local
283 return val & GENMASK_ULL(n_bits, 0); in next_test_random_ull()
/linux-6.12.1/drivers/comedi/drivers/
Dni_mio_common.c4362 int n_bits; member
4452 int n_bits; in caldac_setup() local
4460 n_bits = caldacs[type].n_bits; in caldac_setup()
4465 if (caldacs[type].n_bits != n_bits) in caldac_setup()
4484 (1 << caldacs[type].n_bits) - 1; in caldac_setup()
4493 s->maxdata = (1 << caldacs[type].n_bits) - 1; in caldac_setup()
/linux-6.12.1/net/sched/
Dact_ct.c1270 unsigned int n_bits = sizeof_field(struct tcf_ct_params, labels) * 8; in tcf_ct_fill_params() local
1277 if (nf_connlabels_get(net, n_bits - 1)) { in tcf_ct_fill_params()
/linux-6.12.1/drivers/spi/
Dspi-imx.c1119 static void spi_imx_set_burst_len(struct spi_imx_data *spi_imx, int n_bits) in spi_imx_set_burst_len() argument
1125 ctrl |= ((n_bits - 1) << MX51_ECSPI_CTRL_BL_OFFSET); in spi_imx_set_burst_len()
/linux-6.12.1/net/openvswitch/
Dconntrack.c1381 unsigned int n_bits = sizeof(struct ovs_key_ct_labels) * BITS_PER_BYTE; in ovs_ct_copy_action() local
1410 if (nf_connlabels_get(net, n_bits - 1)) { in ovs_ct_copy_action()
/linux-6.12.1/drivers/tty/
Dn_gsm.c202 __le16 n_bits; member
628 params->n_bits = cpu_to_le16(FIELD_PREP(PN_N_FIELD_N1, dlci->mtu)); in gsm_encode_params()
1578 n1 = FIELD_GET(PN_N_FIELD_N1, get_unaligned_le16(&params->n_bits)); in gsm_process_negotiation()
/linux-6.12.1/net/ethtool/
Dioctl.c783 int i, idx = 0, n_bits = 0, ret, rc; in ethtool_get_sset_info() local
795 n_bits = hweight64(sset_mask); in ethtool_get_sset_info()
800 info_buf = kcalloc(n_bits, sizeof(u32), GFP_USER); in ethtool_get_sset_info()
/linux-6.12.1/include/net/
Dcfg80211.h6605 int n_bits; member