| /linux/drivers/s390/scsi/ |
| H A D | zfcp_reqlist.h | 43 struct zfcp_reqlist *rl; in zfcp_reqlist_alloc() local 45 rl = kzalloc_obj(struct zfcp_reqlist); in zfcp_reqlist_alloc() 46 if (!rl) in zfcp_reqlist_alloc() 49 spin_lock_init(&rl->lock); in zfcp_reqlist_alloc() 52 INIT_LIST_HEAD(&rl->buckets[i]); in zfcp_reqlist_alloc() 54 return rl; in zfcp_reqlist_alloc() 63 static inline int zfcp_reqlist_isempty(struct zfcp_reqlist *rl) in zfcp_reqlist_isempty() argument 68 if (!list_empty(&rl->buckets[i])) in zfcp_reqlist_isempty() 77 static inline void zfcp_reqlist_free(struct zfcp_reqlist *rl) in zfcp_reqlist_free() argument 80 BUG_ON(!zfcp_reqlist_isempty(rl)); in zfcp_reqlist_free() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | qos.c | 466 void mlx5e_mqprio_rl_free(struct mlx5e_mqprio_rl *rl) in mlx5e_mqprio_rl_free() argument 468 kvfree(rl); in mlx5e_mqprio_rl_free() 471 int mlx5e_mqprio_rl_init(struct mlx5e_mqprio_rl *rl, struct mlx5_core_dev *mdev, u8 num_tc, in mlx5e_mqprio_rl_init() argument 484 rl->mdev = mdev; in mlx5e_mqprio_rl_init() 485 rl->num_tc = num_tc; in mlx5e_mqprio_rl_init() 486 rl->leaves_id = kvcalloc(num_tc, sizeof(*rl->leaves_id), GFP_KERNEL); in mlx5e_mqprio_rl_init() 487 if (!rl->leaves_id) in mlx5e_mqprio_rl_init() 490 err = mlx5_qos_create_root_node(mdev, &rl->root_id); in mlx5e_mqprio_rl_init() 494 qos_dbg(mdev, "Root created, id %#x\n", rl->root_id); in mlx5e_mqprio_rl_init() 500 err = mlx5_qos_create_leaf_node(mdev, rl->root_id, 0, max_average_bw, in mlx5e_mqprio_rl_init() [all …]
|
| H A D | qos.h | 46 void mlx5e_mqprio_rl_free(struct mlx5e_mqprio_rl *rl); 47 int mlx5e_mqprio_rl_init(struct mlx5e_mqprio_rl *rl, struct mlx5_core_dev *mdev, u8 num_tc, 49 void mlx5e_mqprio_rl_cleanup(struct mlx5e_mqprio_rl *rl); 50 int mlx5e_mqprio_rl_get_node_hw_id(struct mlx5e_mqprio_rl *rl, int tc, u32 *hw_id);
|
| /linux/include/linux/ |
| H A D | jump_label_ratelimit.h | 41 jump_label_rate_limit(struct static_key_deferred *key, unsigned long rl); 45 #define DEFINE_STATIC_KEY_DEFERRED_TRUE(name, rl) \ argument 48 .timeout = (rl), \ 54 #define DEFINE_STATIC_KEY_DEFERRED_FALSE(name, rl) \ argument 57 .timeout = (rl), \ 73 #define DEFINE_STATIC_KEY_DEFERRED_TRUE(name, rl) \ argument 75 #define DEFINE_STATIC_KEY_DEFERRED_FALSE(name, rl) \ argument 91 unsigned long rl) in jump_label_rate_limit() argument
|
| H A D | blk-mq.h | 251 static inline int rq_list_empty(const struct rq_list *rl) in rq_list_empty() argument 253 return rl->head == NULL; in rq_list_empty() 256 static inline void rq_list_init(struct rq_list *rl) in rq_list_init() argument 258 rl->head = NULL; in rq_list_init() 259 rl->tail = NULL; in rq_list_init() 262 static inline void rq_list_add_tail(struct rq_list *rl, struct request *rq) in rq_list_add_tail() argument 265 if (rl->tail) in rq_list_add_tail() 266 rl->tail->rq_next = rq; in rq_list_add_tail() 268 rl->head = rq; in rq_list_add_tail() 269 rl->tail = rq; in rq_list_add_tail() [all …]
|
| H A D | math64.h | 215 } rl, rm, rn, rh, a0, b0; in mul_u64_u64_shr() local 221 rl.ll = mul_u32_u32(a0.l.low, b0.l.low); in mul_u64_u64_shr() 231 rl.l.high = c = (u64)rl.l.high + rm.l.low + rn.l.low; in mul_u64_u64_shr() 240 return rl.ll; in mul_u64_u64_shr() 242 return (rl.ll >> shift) | (rh.ll << (64 - shift)); in mul_u64_u64_shr() 279 } u, rl, rh; in mul_u64_u32_div() local 282 rl.ll = mul_u32_u32(u.l.low, mul); in mul_u64_u32_div() 283 rh.ll = mul_u32_u32(u.l.high, mul) + rl.l.high; in mul_u64_u32_div() 286 rl.l.high = do_div(rh.ll, divisor); in mul_u64_u32_div() 289 do_div(rl.ll, divisor); in mul_u64_u32_div() [all …]
|
| /linux/fs/dlm/ |
| H A D | rcom.c | 418 struct rcom_lock *rl) in pack_rcom_lock() argument 420 memset(rl, 0, sizeof(*rl)); in pack_rcom_lock() 422 rl->rl_ownpid = cpu_to_le32(lkb->lkb_ownpid); in pack_rcom_lock() 423 rl->rl_lkid = cpu_to_le32(lkb->lkb_id); in pack_rcom_lock() 424 rl->rl_exflags = cpu_to_le32(lkb->lkb_exflags); in pack_rcom_lock() 425 rl->rl_flags = cpu_to_le32(dlm_dflags_val(lkb)); in pack_rcom_lock() 426 rl->rl_lvbseq = cpu_to_le32(lkb->lkb_lvbseq); in pack_rcom_lock() 427 rl->rl_rqmode = lkb->lkb_rqmode; in pack_rcom_lock() 428 rl->rl_grmode = lkb->lkb_grmode; in pack_rcom_lock() 429 rl->rl_status = lkb->lkb_status; in pack_rcom_lock() [all …]
|
| /linux/arch/arm/mm/ |
| H A D | proc-v7-3level.S | 57 #define rl r3 macro 60 #define rl r2 macro 73 tst rl, #L_PTE_VALID 76 bicne rl, #L_PTE_VALID 82 orrne rl, #PTE_AP2 83 biceq rl, #PTE_AP2
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | rl.c | 377 struct mlx5_rate_limit *rl) in mlx5_rl_add_rate() argument 381 MLX5_SET(set_pp_rate_limit_context, rl_raw, rate_limit, rl->rate); in mlx5_rl_add_rate() 383 rl->max_burst_sz); in mlx5_rl_add_rate() 385 rl->typical_pkt_sz); in mlx5_rl_add_rate() 394 void mlx5_rl_remove_rate(struct mlx5_core_dev *dev, struct mlx5_rate_limit *rl) in mlx5_rl_remove_rate() argument 401 if (rl->rate == 0) in mlx5_rl_remove_rate() 404 MLX5_SET(set_pp_rate_limit_context, rl_raw, rate_limit, rl->rate); in mlx5_rl_remove_rate() 406 rl->max_burst_sz); in mlx5_rl_remove_rate() 408 rl->typical_pkt_sz); in mlx5_rl_remove_rate() 416 rl->rate, rl->max_burst_sz, rl->typical_pkt_sz); in mlx5_rl_remove_rate()
|
| H A D | en_main.c | 1924 struct mlx5_rate_limit rl = {0}; in mlx5e_close_txqsq() local 1931 rl.rate = sq->rate_limit; in mlx5e_close_txqsq() 1932 mlx5_rl_remove_rate(mdev, &rl); in mlx5e_close_txqsq() 2434 struct mlx5_rate_limit rl = {0}; in mlx5e_set_sq_maxrate() local 2443 rl.rate = sq->rate_limit; in mlx5e_set_sq_maxrate() 2445 mlx5_rl_remove_rate(mdev, &rl); in mlx5e_set_sq_maxrate() 2451 rl.rate = rate; in mlx5e_set_sq_maxrate() 2452 err = mlx5_rl_add_rate(mdev, &rl_index, &rl); in mlx5e_set_sq_maxrate() 2470 mlx5_rl_remove_rate(mdev, &rl); in mlx5e_set_sq_maxrate() 3733 struct mlx5e_mqprio_rl *rl) in mlx5e_mqprio_rl_update_params() argument [all …]
|
| /linux/drivers/slimbus/ |
| H A D | slimbus.h | 128 u8 rl; member 140 #define DEFINE_SLIM_LDEST_TXN(name, mc, rl, la, msg) \ argument 141 struct slim_msg_txn name = { rl, 0, mc, SLIM_MSG_DEST_LOGICALADDR, 0,\ 144 #define DEFINE_SLIM_BCAST_TXN(name, mc, rl, la, msg) \ argument 145 struct slim_msg_txn name = { rl, 0, mc, SLIM_MSG_DEST_BROADCAST, 0,\ 148 #define DEFINE_SLIM_EDEST_TXN(name, mc, rl, la, msg) \ argument 149 struct slim_msg_txn name = { rl, 0, mc, SLIM_MSG_DEST_ENUMADDR, 0,\
|
| H A D | sched.c | 97 txn.rl = 4; in slim_ctrl_clk_pause() 105 txn.rl = 3; in slim_ctrl_clk_pause()
|
| H A D | messaging.c | 152 unsigned long ms = txn->rl + HZ; in slim_do_transfer() 261 txn->rl += msg->num_bytes; in slim_xfer_msg() 268 txn->rl++; in slim_xfer_msg()
|
| H A D | qcom-ngd-ctrl.c | 809 txn->rl > SLIM_MSGQ_BUF_LEN) { in qcom_slim_ngd_xfer_msg() 814 pbuf = qcom_slim_ngd_tx_msg_get(ctrl, txn->rl, &tx_sent); in qcom_slim_ngd_xfer_msg() 859 txn->rl = txn->msg->num_bytes + 4; in qcom_slim_ngd_xfer_msg() 863 txn->rl--; in qcom_slim_ngd_xfer_msg() 867 *pbuf = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, txn->mc, 0, in qcom_slim_ngd_xfer_msg() 871 *pbuf = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, txn->mc, 1, in qcom_slim_ngd_xfer_msg() 888 ret = qcom_slim_ngd_tx_msg_post(ctrl, pbuf, txn->rl); in qcom_slim_ngd_xfer_msg() 1058 txn.rl = txn.msg->num_bytes + 4; in qcom_slim_ngd_enable_stream() 1070 txn.rl = txn.msg->num_bytes + 4; in qcom_slim_ngd_enable_stream() 1105 txn.rl = 11; in qcom_slim_ngd_get_laddr() [all …]
|
| /linux/arch/riscv/net/ |
| H A D | bpf_jit.h | 282 static inline u32 rv_amo_insn(u8 funct5, u8 aq, u8 rl, u8 rs2, u8 rs1, in rv_amo_insn() argument 285 u8 funct7 = (funct5 << 2) | (aq << 1) | rl; in rv_amo_insn() 565 static inline u32 rv_amoadd_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoadd_w() argument 567 return rv_amo_insn(0, aq, rl, rs2, rs1, 2, rd, 0x2f); in rv_amoadd_w() 570 static inline u32 rv_amoand_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoand_w() argument 572 return rv_amo_insn(0xc, aq, rl, rs2, rs1, 2, rd, 0x2f); in rv_amoand_w() 575 static inline u32 rv_amoor_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoor_w() argument 577 return rv_amo_insn(0x8, aq, rl, rs2, rs1, 2, rd, 0x2f); in rv_amoor_w() 580 static inline u32 rv_amoxor_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoxor_w() argument 582 return rv_amo_insn(0x4, aq, rl, rs2, rs1, 2, rd, 0x2f); in rv_amoxor_w() [all …]
|
| /linux/arch/arm/vfp/ |
| H A D | vfp.h | 73 u64 rh, rma, rmb, rl; in mul64to128() local 77 rl = (u64)nl * ml; in mul64to128() 90 rl += rma; in mul64to128() 91 rh += (rl < rma); in mul64to128() 93 *resl = rl; in mul64to128() 105 u64 rh, rl; in vfp_hi64multiply64() local 106 mul64to128(&rh, &rl, n, m); in vfp_hi64multiply64() 107 return rh | (rl != 0); in vfp_hi64multiply64()
|
| /linux/crypto/ |
| H A D | crypto_user.c | 106 struct crypto_report_larval rl; in crypto_report_one() local 108 memset(&rl, 0, sizeof(rl)); in crypto_report_one() 109 strscpy(rl.type, "larval", sizeof(rl.type)); in crypto_report_one() 110 if (nla_put(skb, CRYPTOCFGA_REPORT_LARVAL, sizeof(rl), &rl)) in crypto_report_one()
|
| H A D | camellia_generic.c | 319 #define ROLDQ(ll, lr, rl, rr, w0, w1, bits) ({ \ argument 322 lr = (lr << bits) + (rl >> (32 - bits)); \ 323 rl = (rl << bits) + (rr >> (32 - bits)); \ 327 #define ROLDQo32(ll, lr, rl, rr, w0, w1, bits) ({ \ argument 330 ll = (lr << (bits - 32)) + (rl >> (64 - bits)); \ 331 lr = (rl << (bits - 32)) + (rr >> (64 - bits)); \ 332 rl = (rr << (bits - 32)) + (w0 >> (64 - bits)); \ 811 #define CAMELLIA_FLS(ll, lr, rl, rr, kll, klr, krl, krr, t0, t1, t2, t3) ({ \ argument 816 rl ^= t2; \ 820 t3 &= rl; \
|
| /linux/tools/perf/bench/ |
| H A D | epoll-ctl.c | 319 struct rlimit rl, prevrl; in bench_epoll_ctl() local 358 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_ctl() 360 (uint64_t)prevrl.rlim_max, (uint64_t)rl.rlim_max); in bench_epoll_ctl() 361 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) in bench_epoll_ctl()
|
| H A D | epoll-wait.c | 439 struct rlimit rl, prevrl; in bench_epoll_wait() local 483 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_wait() 485 (uint64_t)prevrl.rlim_max, (uint64_t)rl.rlim_max); in bench_epoll_wait() 486 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) in bench_epoll_wait()
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | adf_rl.c | 1053 struct adf_rl *rl; in adf_rl_init() local 1068 rl = kzalloc_obj(*rl); in adf_rl_init() 1069 if (!rl) { in adf_rl_init() 1074 mutex_init(&rl->rl_lock); in adf_rl_init() 1075 rl->device_data = &accel_dev->hw_device->rl_data; in adf_rl_init() 1076 rl->accel_dev = accel_dev; in adf_rl_init() 1077 init_rwsem(&rl->user_input.lock); in adf_rl_init() 1078 accel_dev->rate_limiting = rl; in adf_rl_init()
|
| /linux/block/ |
| H A D | blk-cgroup.h | 498 #define blk_queue_for_each_rl(rl, q) \ argument 499 for ((rl) = &(q)->root_rl; (rl); (rl) = NULL)
|
| /linux/sound/soc/codecs/ |
| H A D | rt1305.c | 993 unsigned int rh, rl, rhl, r0ohm; in rt1305_calibrate() local 1058 regmap_read(rt1305->regmap, RT1305_PR_BASE + 0x56, &rl); in rt1305_calibrate() 1059 rhl = (rh << 16) | rl; in rt1305_calibrate() 1062 pr_debug("Left_rhl = 0x%x rh=0x%x rl=0x%x\n", rhl, rh, rl); in rt1305_calibrate() 1075 regmap_read(rt1305->regmap, RT1305_PR_BASE + 0x56, &rl); in rt1305_calibrate() 1076 rhl = (rh << 16) | rl; in rt1305_calibrate() 1079 pr_debug("Right_rhl = 0x%x rh=0x%x rl=0x%x\n", rhl, rh, rl); in rt1305_calibrate()
|
| /linux/fs/ocfs2/ |
| H A D | refcounttree.c | 1243 struct ocfs2_refcount_list *rl = &rb->rf_records; in ocfs2_change_refcount_rec() local 1244 struct ocfs2_refcount_rec *rec = &rl->rl_recs[index]; in ocfs2_change_refcount_rec() 1259 if (index != le16_to_cpu(rl->rl_used) - 1) { in ocfs2_change_refcount_rec() 1261 (le16_to_cpu(rl->rl_used) - index - 1) * in ocfs2_change_refcount_rec() 1263 memset(&rl->rl_recs[le16_to_cpu(rl->rl_used) - 1], in ocfs2_change_refcount_rec() 1267 le16_add_cpu(&rl->rl_used, -1); in ocfs2_change_refcount_rec() 1406 static int ocfs2_find_refcount_split_pos(struct ocfs2_refcount_list *rl, in ocfs2_find_refcount_split_pos() argument 1409 int num_used = le16_to_cpu(rl->rl_used); in ocfs2_find_refcount_split_pos() 1415 &rl->rl_recs[middle - delta - 1], in ocfs2_find_refcount_split_pos() 1416 &rl->rl_recs[middle - delta])) { in ocfs2_find_refcount_split_pos() [all …]
|
| /linux/fs/qnx4/ |
| H A D | inode.c | 161 int rd, rl; in qnx4_checkroot() local 168 rl = le32_to_cpu(s->RootDir.di_first_xtnt.xtnt_size); in qnx4_checkroot() 169 for (j = 0; j < rl; j++) { in qnx4_checkroot()
|