/linux-master/drivers/s390/scsi/ |
H A D | zfcp_reqlist.h | 43 struct zfcp_reqlist *rl; local 45 rl = kzalloc(sizeof(struct zfcp_reqlist), GFP_KERNEL); 46 if (!rl) 49 spin_lock_init(&rl->lock); 52 INIT_LIST_HEAD(&rl->buckets[i]); 54 return rl; 59 * @rl: pointer to reqlist 63 static inline int zfcp_reqlist_isempty(struct zfcp_reqlist *rl) argument 68 if (!list_empty(&rl->buckets[i])) 75 * @rl 77 zfcp_reqlist_free(struct zfcp_reqlist *rl) argument 86 _zfcp_reqlist_find(struct zfcp_reqlist *rl, u64 req_id) argument 107 zfcp_reqlist_find(struct zfcp_reqlist *rl, u64 req_id) argument 132 zfcp_reqlist_find_rm(struct zfcp_reqlist *rl, u64 req_id) argument 156 zfcp_reqlist_add(struct zfcp_reqlist *rl, struct zfcp_fsf_req *req) argument 174 zfcp_reqlist_move(struct zfcp_reqlist *rl, struct list_head *list) argument 200 zfcp_reqlist_apply_for_all(struct zfcp_reqlist *rl, void (*f)(struct zfcp_fsf_req *, void *), void *data) argument [all...] |
/linux-master/tools/testing/selftests/kvm/ |
H A D | kvm_create_max_vcpus.c | 49 struct rlimit rl; local 58 TEST_ASSERT(!getrlimit(RLIMIT_NOFILE, &rl), "getrlimit() failed!"); 60 if (rl.rlim_cur < nr_fds_wanted) { 61 rl.rlim_cur = nr_fds_wanted; 62 if (rl.rlim_max < nr_fds_wanted) { 63 int old_rlim_max = rl.rlim_max; 64 rl.rlim_max = nr_fds_wanted; 66 int r = setrlimit(RLIMIT_NOFILE, &rl); 71 TEST_ASSERT(!setrlimit(RLIMIT_NOFILE, &rl), "setrlimit() failed!");
|
/linux-master/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) \ 48 .timeout = (rl), \ 54 #define DEFINE_STATIC_KEY_DEFERRED_FALSE(name, rl) \ 57 .timeout = (rl), \ 73 #define DEFINE_STATIC_KEY_DEFERRED_TRUE(name, rl) \ 75 #define DEFINE_STATIC_KEY_DEFERRED_FALSE(name, rl) \ 91 unsigned long rl) 90 jump_label_rate_limit(struct static_key_deferred *key, unsigned long rl) argument
|
H A D | math64.h | 208 } rl, rm, rn, rh, a0, b0; local 214 rl.ll = mul_u32_u32(a0.l.low, b0.l.low); 224 rl.l.high = c = (u64)rl.l.high + rm.l.low + rn.l.low; 229 * The 128-bit result of the multiplication is in rl.ll and rh.ll, 233 return rl.ll; 235 return (rl.ll >> shift) | (rh.ll << (64 - shift)); 272 } u, rl, rh; local 275 rl.ll = mul_u32_u32(u.l.low, mul); 276 rh.ll = mul_u32_u32(u.l.high, mul) + rl [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/ |
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);
|
H A D | qos.c | 457 void mlx5e_mqprio_rl_free(struct mlx5e_mqprio_rl *rl) argument 459 kvfree(rl); 462 int mlx5e_mqprio_rl_init(struct mlx5e_mqprio_rl *rl, struct mlx5_core_dev *mdev, u8 num_tc, argument 475 rl->mdev = mdev; 476 rl->num_tc = num_tc; 477 rl->leaves_id = kvcalloc(num_tc, sizeof(*rl->leaves_id), GFP_KERNEL); 478 if (!rl->leaves_id) 481 err = mlx5_qos_create_root_node(mdev, &rl->root_id); 485 qos_dbg(mdev, "Root created, id %#x\n", rl 510 mlx5e_mqprio_rl_cleanup(struct mlx5e_mqprio_rl *rl) argument 520 mlx5e_mqprio_rl_get_node_hw_id(struct mlx5e_mqprio_rl *rl, int tc, u32 *hw_id) argument [all...] |
/linux-master/crypto/ |
H A D | vmac.c | 104 #define ADD128(rh, rl, ih, il) \ 107 (rl) += (_il); \ 108 if ((rl) < (_il)) \ 115 #define PMUL64(rh, rl, i1, i2) /* Assumes m doesn't overflow */ \ 120 rl = MUL32(_i1, _i2); \ 121 ADD128(rh, rl, (m >> 32), (m << 32)); \ 124 #define MUL64(rh, rl, i1, i2) \ 130 rl = MUL32(_i1, _i2); \ 131 ADD128(rh, rl, (m1 >> 32), (m1 << 32)); \ 132 ADD128(rh, rl, (m 361 u64 rh, rl, t, z = 0; local 408 u64 rh, rl; local 546 u64 rh, rl; local [all...] |
H A D | crypto_user_stat.c | 69 struct crypto_stat_larval rl; local 71 memset(&rl, 0, sizeof(rl)); 72 strscpy(rl.type, "larval", sizeof(rl.type)); 73 if (nla_put(skb, CRYPTOCFGA_STAT_LARVAL, sizeof(rl), &rl))
|
H A D | crypto_user_base.c | 118 struct crypto_report_larval rl; local 120 memset(&rl, 0, sizeof(rl)); 121 strscpy(rl.type, "larval", sizeof(rl.type)); 122 if (nla_put(skb, CRYPTOCFGA_REPORT_LARVAL, sizeof(rl), &rl))
|
/linux-master/arch/arm/mm/ |
H A D | proc-v7-3level.S | 57 #define rl r3 define 60 #define rl r2 define 73 tst rl, #L_PTE_VALID 76 bicne rl, #L_PTE_VALID 82 orrne rl, #PTE_AP2 83 biceq rl, #PTE_AP2
|
/linux-master/fs/dlm/ |
H A D | rcom.c | 419 struct rcom_lock *rl) 421 memset(rl, 0, sizeof(*rl)); 423 rl->rl_ownpid = cpu_to_le32(lkb->lkb_ownpid); 424 rl->rl_lkid = cpu_to_le32(lkb->lkb_id); 425 rl->rl_exflags = cpu_to_le32(lkb->lkb_exflags); 426 rl->rl_flags = cpu_to_le32(dlm_dflags_val(lkb)); 427 rl->rl_lvbseq = cpu_to_le32(lkb->lkb_lvbseq); 428 rl->rl_rqmode = lkb->lkb_rqmode; 429 rl 418 pack_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb, struct rcom_lock *rl) argument 453 struct rcom_lock *rl; local 478 struct rcom_lock *rl; local [all...] |
/linux-master/drivers/slimbus/ |
H A D | slimbus.h | 114 * @rl: Header field. remaining length. 128 u8 rl; member in struct:slim_msg_txn 140 #define DEFINE_SLIM_LDEST_TXN(name, mc, rl, la, msg) \ 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) \ 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) \ 149 struct slim_msg_txn name = { rl, 0, mc, SLIM_MSG_DEST_ENUMADDR, 0,\
|
H A D | sched.c | 97 txn.rl = 4; 105 txn.rl = 3;
|
H A D | messaging.c | 152 unsigned long ms = txn->rl + HZ; 261 txn->rl += msg->num_bytes; 268 txn->rl++;
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | rl.c | 316 struct mlx5_rate_limit *rl) 320 MLX5_SET(set_pp_rate_limit_context, rl_raw, rate_limit, rl->rate); 322 rl->max_burst_sz); 324 rl->typical_pkt_sz); 333 void mlx5_rl_remove_rate(struct mlx5_core_dev *dev, struct mlx5_rate_limit *rl) argument 340 if (rl->rate == 0) 343 MLX5_SET(set_pp_rate_limit_context, rl_raw, rate_limit, rl->rate); 345 rl->max_burst_sz); 347 rl->typical_pkt_sz); 355 rl 315 mlx5_rl_add_rate(struct mlx5_core_dev *dev, u16 *index, struct mlx5_rate_limit *rl) argument [all...] |
/linux-master/arch/arm/vfp/ |
H A D | vfp.h | 73 u64 rh, rma, rmb, rl; local 77 rl = (u64)nl * ml; 90 rl += rma; 91 rh += (rl < rma); 93 *resl = rl; 105 u64 rh, rl; local 106 mul64to128(&rh, &rl, n, m); 107 return rh | (rl != 0);
|
/linux-master/arch/riscv/net/ |
H A D | bpf_jit.h | 279 static inline u32 rv_amo_insn(u8 funct5, u8 aq, u8 rl, u8 rs2, u8 rs1, argument 282 u8 funct7 = (funct5 << 2) | (aq << 1) | rl; 562 static inline u32 rv_amoadd_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) argument 564 return rv_amo_insn(0, aq, rl, rs2, rs1, 2, rd, 0x2f); 567 static inline u32 rv_amoand_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) argument 569 return rv_amo_insn(0xc, aq, rl, rs2, rs1, 2, rd, 0x2f); 572 static inline u32 rv_amoor_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) argument 574 return rv_amo_insn(0x8, aq, rl, rs2, rs1, 2, rd, 0x2f); 577 static inline u32 rv_amoxor_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) argument 579 return rv_amo_insn(0x4, aq, rl, rs 582 rv_amoswap_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) argument 587 rv_lr_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) argument 592 rv_sc_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) argument 859 rv_amoadd_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) argument 864 rv_amoand_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) argument 869 rv_amoor_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) argument 874 rv_amoxor_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) argument 879 rv_amoswap_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) argument 884 rv_lr_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) argument 889 rv_sc_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) argument [all...] |
/linux-master/sound/usb/usx2y/ |
H A D | usbus428ctldefs.h | 68 rl; member in struct:usx2y_volume
|
/linux-master/block/ |
H A D | blk-cgroup.h | 506 #define blk_queue_for_each_rl(rl, q) \ 507 for ((rl) = &(q)->root_rl; (rl); (rl) = NULL)
|
/linux-master/tools/perf/bench/ |
H A D | epoll-wait.c | 434 struct rlimit rl, prevrl; local 478 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; 480 (uint64_t)prevrl.rlim_max, (uint64_t)rl.rlim_max); 481 if (setrlimit(RLIMIT_NOFILE, &rl) < 0)
|
H A D | epoll-ctl.c | 319 struct rlimit rl, prevrl; local 358 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; 360 (uint64_t)prevrl.rlim_max, (uint64_t)rl.rlim_max); 361 if (setrlimit(RLIMIT_NOFILE, &rl) < 0)
|
/linux-master/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_rl.c | 1085 struct adf_rl *rl; local 1100 rl = kzalloc(sizeof(*rl), GFP_KERNEL); 1101 if (!rl) { 1106 mutex_init(&rl->rl_lock); 1107 rl->device_data = &accel_dev->hw_device->rl_data; 1108 rl->accel_dev = accel_dev; 1109 accel_dev->rate_limiting = rl;
|
/linux-master/sound/soc/codecs/ |
H A D | rt1305.c | 993 unsigned int rh, rl, rhl, r0ohm; local 1058 regmap_read(rt1305->regmap, RT1305_PR_BASE + 0x56, &rl); 1059 rhl = (rh << 16) | rl; 1062 pr_debug("Left_rhl = 0x%x rh=0x%x rl=0x%x\n", rhl, rh, rl); 1075 regmap_read(rt1305->regmap, RT1305_PR_BASE + 0x56, &rl); 1076 rhl = (rh << 16) | rl; 1079 pr_debug("Right_rhl = 0x%x rh=0x%x rl=0x%x\n", rhl, rh, rl);
|
/linux-master/fs/qnx4/ |
H A D | inode.c | 161 int rd, rl; local 168 rl = le32_to_cpu(s->RootDir.di_first_xtnt.xtnt_size); 169 for (j = 0; j < rl; j++) {
|
/linux-master/fs/ocfs2/ |
H A D | refcounttree.c | 1241 struct ocfs2_refcount_list *rl = &rb->rf_records; local 1242 struct ocfs2_refcount_rec *rec = &rl->rl_recs[index]; 1257 if (index != le16_to_cpu(rl->rl_used) - 1) { 1259 (le16_to_cpu(rl->rl_used) - index - 1) * 1261 memset(&rl->rl_recs[le16_to_cpu(rl->rl_used) - 1], 1265 le16_add_cpu(&rl->rl_used, -1); 1411 static int ocfs2_find_refcount_split_pos(struct ocfs2_refcount_list *rl, argument 1414 int num_used = le16_to_cpu(rl->rl_used); 1420 &rl 1454 struct ocfs2_refcount_list *rl = &rb->rf_records; local [all...] |