Home
last modified time | relevance | path

Searched refs:rl (Results 1 – 25 of 60) sorted by relevance

123

/linux/drivers/s390/scsi/
A Dzfcp_reqlist.h43 struct zfcp_reqlist *rl; in zfcp_reqlist_alloc() local
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()
68 if (!list_empty(&rl->buckets[i])) in zfcp_reqlist_isempty()
80 BUG_ON(!zfcp_reqlist_isempty(rl)); in zfcp_reqlist_free()
82 kfree(rl); in zfcp_reqlist_free()
112 spin_lock_irqsave(&rl->lock, flags); in zfcp_reqlist_find()
137 spin_lock_irqsave(&rl->lock, flags); in zfcp_reqlist_find_rm()
[all …]
/linux/crypto/
A Dvmac.c107 (rl) += (_il); \
152 rh = rl = 0; \
178 rh = rl = 0; \
361 u64 rh, rl, t, z = 0; in l3hash() local
392 rl += t; in l3hash()
393 rl += (0 - (rl < t)) & 257; in l3hash()
394 rl += (0 - (rl > p64-1)) & 257; in l3hash()
395 return rl; in l3hash()
408 u64 rh, rl; in vhash_blocks() local
546 u64 rh, rl; in vhash_final() local
[all …]
A Dcrypto_user.c117 struct crypto_report_larval rl; in crypto_report_one() local
119 memset(&rl, 0, sizeof(rl)); in crypto_report_one()
120 strscpy(rl.type, "larval", sizeof(rl.type)); in crypto_report_one()
121 if (nla_put(skb, CRYPTOCFGA_REPORT_LARVAL, sizeof(rl), &rl)) in crypto_report_one()
A Dcamellia_generic.c319 #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/testing/selftests/kvm/
A Dkvm_create_max_vcpus.c47 struct rlimit rl; in main() local
56 TEST_ASSERT(!getrlimit(RLIMIT_NOFILE, &rl), "getrlimit() failed!"); in main()
58 if (rl.rlim_cur < nr_fds_wanted) { in main()
59 rl.rlim_cur = nr_fds_wanted; in main()
60 if (rl.rlim_max < nr_fds_wanted) { in main()
61 int old_rlim_max = rl.rlim_max; in main()
62 rl.rlim_max = nr_fds_wanted; in main()
64 int r = setrlimit(RLIMIT_NOFILE, &rl); in main()
69 TEST_ASSERT(!setrlimit(RLIMIT_NOFILE, &rl), "setrlimit() failed!"); in main()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dqos.c468 kvfree(rl); in mlx5e_mqprio_rl_free()
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()
501 &rl->leaves_id[tc]); in mlx5e_mqprio_rl_init()
515 kvfree(rl->leaves_id); in mlx5e_mqprio_rl_init()
524 mlx5_qos_destroy_node(rl->mdev, rl->leaves_id[tc]); in mlx5e_mqprio_rl_cleanup()
525 mlx5_qos_destroy_node(rl->mdev, rl->root_id); in mlx5e_mqprio_rl_cleanup()
526 kvfree(rl->leaves_id); in mlx5e_mqprio_rl_cleanup()
[all …]
A Dqos.h46 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/
A Djump_label_ratelimit.h41 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
A Dmath64.h204 } rl, rm, rn, rh, a0, b0; in mul_u64_u64_shr() local
210 rl.ll = mul_u32_u32(a0.l.low, b0.l.low); in mul_u64_u64_shr()
220 rl.l.high = c = (u64)rl.l.high + rm.l.low + rn.l.low; in mul_u64_u64_shr()
229 return rl.ll; in mul_u64_u64_shr()
268 } u, rl, rh; in mul_u64_u32_div() local
271 rl.ll = mul_u32_u32(u.l.low, mul); in mul_u64_u32_div()
272 rh.ll = mul_u32_u32(u.l.high, mul) + rl.l.high; in mul_u64_u32_div()
275 rl.l.high = do_div(rh.ll, divisor); in mul_u64_u32_div()
278 do_div(rl.ll, divisor); in mul_u64_u32_div()
280 rl.l.high = rh.l.low; in mul_u64_u32_div()
[all …]
/linux/fs/dlm/
A Drcom.c418 struct rcom_lock *rl) in pack_rcom_lock() argument
420 memset(rl, 0, sizeof(*rl)); 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()
433 rl->rl_asts |= DLM_CB_BAST; in pack_rcom_lock()
435 rl->rl_asts |= DLM_CB_CAST; in pack_rcom_lock()
452 struct rcom_lock *rl; in dlm_send_rcom_lock() local
464 pack_rcom_lock(r, lkb, rl); in dlm_send_rcom_lock()
477 struct rcom_lock *rl; in receive_rcom_lock() local
492 rl->rl_remid = rl_remid; in receive_rcom_lock()
[all …]
/linux/arch/arm/mm/
A Dproc-v7-3level.S57 #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/
A Drl.c316 struct mlx5_rate_limit *rl) in mlx5_rl_add_rate() argument
320 MLX5_SET(set_pp_rate_limit_context, rl_raw, rate_limit, rl->rate); in mlx5_rl_add_rate()
322 rl->max_burst_sz); in mlx5_rl_add_rate()
324 rl->typical_pkt_sz); in mlx5_rl_add_rate()
333 void mlx5_rl_remove_rate(struct mlx5_core_dev *dev, struct mlx5_rate_limit *rl) in mlx5_rl_remove_rate() argument
340 if (rl->rate == 0) in mlx5_rl_remove_rate()
343 MLX5_SET(set_pp_rate_limit_context, rl_raw, rate_limit, rl->rate); in mlx5_rl_remove_rate()
345 rl->max_burst_sz); in mlx5_rl_remove_rate()
347 rl->typical_pkt_sz); in mlx5_rl_remove_rate()
355 rl->rate, rl->max_burst_sz, rl->typical_pkt_sz); in mlx5_rl_remove_rate()
/linux/drivers/slimbus/
A Dslimbus.h128 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,\
A Dsched.c97 txn.rl = 4; in slim_ctrl_clk_pause()
105 txn.rl = 3; in slim_ctrl_clk_pause()
A Dmessaging.c153 unsigned long ms = txn->rl + HZ; in slim_do_transfer()
262 txn->rl += msg->num_bytes; in slim_xfer_msg()
269 txn->rl++; in slim_xfer_msg()
A Dqcom-ngd-ctrl.c809 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/arm/vfp/
A Dvfp.h73 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/arch/riscv/net/
A Dbpf_jit.h289 u8 funct7 = (funct5 << 2) | (aq << 1) | rl; in rv_amo_insn()
571 return rv_amo_insn(0, aq, rl, rs2, rs1, 2, rd, 0x2f); in rv_amoadd_w()
576 return rv_amo_insn(0xc, aq, rl, rs2, rs1, 2, rd, 0x2f); in rv_amoand_w()
581 return rv_amo_insn(0x8, aq, rl, rs2, rs1, 2, rd, 0x2f); in rv_amoor_w()
586 return rv_amo_insn(0x4, aq, rl, rs2, rs1, 2, rd, 0x2f); in rv_amoxor_w()
591 return rv_amo_insn(0x1, aq, rl, rs2, rs1, 2, rd, 0x2f); in rv_amoswap_w()
596 return rv_amo_insn(0x2, aq, rl, rs2, rs1, 2, rd, 0x2f); in rv_lr_w()
601 return rv_amo_insn(0x3, aq, rl, rs2, rs1, 2, rd, 0x2f); in rv_sc_w()
879 return rv_amo_insn(0, aq, rl, rs2, rs1, 3, rd, 0x2f); in rv_amoadd_d()
884 return rv_amo_insn(0xc, aq, rl, rs2, rs1, 3, rd, 0x2f); in rv_amoand_d()
[all …]
/linux/tools/perf/bench/
A Depoll-ctl.c319 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()
A Depoll-wait.c434 struct rlimit rl, prevrl; in bench_epoll_wait() local
478 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_wait()
480 (uint64_t)prevrl.rlim_max, (uint64_t)rl.rlim_max); in bench_epoll_wait()
481 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) in bench_epoll_wait()
/linux/block/
A Dblk-cgroup.h494 #define blk_queue_for_each_rl(rl, q) \ argument
495 for ((rl) = &(q)->root_rl; (rl); (rl) = NULL)
/linux/drivers/crypto/intel/qat/qat_common/
A Dadf_rl.c1085 struct adf_rl *rl; in adf_rl_init() local
1100 rl = kzalloc(sizeof(*rl), GFP_KERNEL); in adf_rl_init()
1101 if (!rl) { in adf_rl_init()
1106 mutex_init(&rl->rl_lock); in adf_rl_init()
1107 rl->device_data = &accel_dev->hw_device->rl_data; in adf_rl_init()
1108 rl->accel_dev = accel_dev; in adf_rl_init()
1109 init_rwsem(&rl->user_input.lock); in adf_rl_init()
1110 accel_dev->rate_limiting = rl; in adf_rl_init()
/linux/sound/soc/codecs/
A Drt1305.c993 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/
A Drefcounttree.c1262 memset(&rl->rl_recs[le16_to_cpu(rl->rl_used) - 1], in ocfs2_change_refcount_rec()
1266 le16_add_cpu(&rl->rl_used, -1); in ocfs2_change_refcount_rec()
1408 int num_used = le16_to_cpu(rl->rl_used); in ocfs2_find_refcount_split_pos()
1414 &rl->rl_recs[middle - delta - 1], in ocfs2_find_refcount_split_pos()
1415 &rl->rl_recs[middle - delta])) { in ocfs2_find_refcount_split_pos()
1426 &rl->rl_recs[middle + delta], in ocfs2_find_refcount_split_pos()
1455 le16_to_cpu(rl->rl_count), le16_to_cpu(rl->rl_used)); in ocfs2_divide_leaf_refcount_block()
1469 sort(&rl->rl_recs, le16_to_cpu(rl->rl_used), in ocfs2_divide_leaf_refcount_block()
1487 memset(&rl->rl_recs[split_index], 0, in ocfs2_divide_leaf_refcount_block()
1491 le16_add_cpu(&rl->rl_used, -num_moved); in ocfs2_divide_leaf_refcount_block()
[all …]
/linux/fs/qnx4/
A Dinode.c161 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()

Completed in 44 milliseconds

123