Home
last modified time | relevance | path

Searched refs:token_rate (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/
Dmv643xx_eth.c1132 int token_rate; in tx_set_rate() local
1136 token_rate = ((rate / 1000) * 64) / (mp->t_clk / 1000); in tx_set_rate()
1137 if (token_rate > 1023) in tx_set_rate()
1138 token_rate = 1023; in tx_set_rate()
1150 wrlp(mp, TX_BW_RATE, token_rate); in tx_set_rate()
1155 wrlp(mp, TX_BW_RATE_MOVED, token_rate); in tx_set_rate()
1165 int token_rate; in txq_set_rate() local
1168 token_rate = ((rate / 1000) * 64) / (mp->t_clk / 1000); in txq_set_rate()
1169 if (token_rate > 1023) in txq_set_rate()
1170 token_rate = 1023; in txq_set_rate()
[all …]
/kernel/linux/linux-5.10/drivers/net/hyperv/
Dhyperv_net.h1586 u32 token_rate; member
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0036_linux_drivers_staging.patch29881 +int qman_ceetm_bps2tokenrate(u64 bps, struct qm_ceetm_rate *token_rate,
29919 + token_rate->whole = temp >> 13;
29920 + token_rate->fraction = temp & (((u64)1 << 13) - 1);
29925 +int qman_ceetm_tokenrate2bps(const struct qm_ceetm_rate *token_rate, u64 *bps,
29965 + temp *= ((token_rate->whole << 13) + token_rate->fraction);
30176 + const struct qm_ceetm_rate *token_rate,
30184 + lni->cr_token_rate.whole = token_rate->whole;
30185 + lni->cr_token_rate.fraction = token_rate->fraction;
30200 + config_opts.shaper_config.crtcr = cpu_to_be24((token_rate->whole << 13)
30201 + | (token_rate->fraction));
[all …]
/kernel/linux/linux-5.10/include/net/bluetooth/
Dhci.h1971 __u32 token_rate; member
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/
D0005_linux_include.patch7361 + * (ie. bits-per-second), compute the 'token_rate' fraction that best
7364 + * @token_rate: the output token rate computed with the given kbps.
7366 + * it is negative then 'token_rate' will round down to the highest value that
7367 + * does not exceed the desired rate, if it is positive then 'token_rate' will
7375 + struct qm_ceetm_rate *token_rate,
7379 + * qman_ceetm_tokenrate2bps - Given a 'token_rate', compute the
7381 + * @token_rate: the input desired token_rate fraction.
7387 +int qman_ceetm_tokenrate2bps(const struct qm_ceetm_rate *token_rate,
7617 + * @token_rate: the desired token rate for "set" fuction, or the token rate of
7628 + const struct qm_ceetm_rate *token_rate,
[all …]