arch/arm/vfp/vfp.h
105
u64 rh, rl;
arch/arm/vfp/vfp.h
106
mul64to128(&rh, &rl, n, m);
arch/arm/vfp/vfp.h
107
return rh | (rl != 0);
arch/arm/vfp/vfp.h
73
u64 rh, rma, rmb, rl;
arch/arm/vfp/vfp.h
77
rl = (u64)nl * ml;
arch/arm/vfp/vfp.h
90
rl += rma;
arch/arm/vfp/vfp.h
91
rh += (rl < rma);
arch/arm/vfp/vfp.h
93
*resl = rl;
arch/arm64/include/asm/atomic_ll_sc.h
323
[rl] "=&r" (r.low), [rh] "=&r" (r.high), \
arch/mips/include/asm/octeon/cvmx-pciercx-defs.h
197
__BITFIELD_FIELD(uint32_t rl:1,
arch/riscv/include/asm/bitops.h
313
__op_bit_ord(and, __NOT, nr, addr, .rl);
arch/riscv/net/bpf_jit.h
276
static inline u32 rv_amo_insn(u8 funct5, u8 aq, u8 rl, u8 rs2, u8 rs1,
arch/riscv/net/bpf_jit.h
279
u8 funct7 = (funct5 << 2) | (aq << 1) | rl;
arch/riscv/net/bpf_jit.h
559
static inline u32 rv_amoadd_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl)
arch/riscv/net/bpf_jit.h
561
return rv_amo_insn(0, aq, rl, rs2, rs1, 2, rd, 0x2f);
arch/riscv/net/bpf_jit.h
564
static inline u32 rv_amoand_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl)
arch/riscv/net/bpf_jit.h
566
return rv_amo_insn(0xc, aq, rl, rs2, rs1, 2, rd, 0x2f);
arch/riscv/net/bpf_jit.h
569
static inline u32 rv_amoor_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl)
arch/riscv/net/bpf_jit.h
571
return rv_amo_insn(0x8, aq, rl, rs2, rs1, 2, rd, 0x2f);
arch/riscv/net/bpf_jit.h
574
static inline u32 rv_amoxor_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl)
arch/riscv/net/bpf_jit.h
576
return rv_amo_insn(0x4, aq, rl, rs2, rs1, 2, rd, 0x2f);
arch/riscv/net/bpf_jit.h
579
static inline u32 rv_amoswap_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl)
arch/riscv/net/bpf_jit.h
581
return rv_amo_insn(0x1, aq, rl, rs2, rs1, 2, rd, 0x2f);
arch/riscv/net/bpf_jit.h
584
static inline u32 rv_lr_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl)
arch/riscv/net/bpf_jit.h
586
return rv_amo_insn(0x2, aq, rl, rs2, rs1, 2, rd, 0x2f);
arch/riscv/net/bpf_jit.h
589
static inline u32 rv_sc_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl)
arch/riscv/net/bpf_jit.h
591
return rv_amo_insn(0x3, aq, rl, rs2, rs1, 2, rd, 0x2f);
arch/riscv/net/bpf_jit.h
751
static inline u32 rvzacas_amocas_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl)
arch/riscv/net/bpf_jit.h
753
return rv_amo_insn(0x5, aq, rl, rs2, rs1, 2, rd, 0x2f);
arch/riscv/net/bpf_jit.h
756
static inline u32 rvzacas_amocas_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl)
arch/riscv/net/bpf_jit.h
758
return rv_amo_insn(0x5, aq, rl, rs2, rs1, 3, rd, 0x2f);
arch/riscv/net/bpf_jit.h
893
static inline u32 rv_amoadd_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl)
arch/riscv/net/bpf_jit.h
895
return rv_amo_insn(0, aq, rl, rs2, rs1, 3, rd, 0x2f);
arch/riscv/net/bpf_jit.h
898
static inline u32 rv_amoand_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl)
arch/riscv/net/bpf_jit.h
900
return rv_amo_insn(0xc, aq, rl, rs2, rs1, 3, rd, 0x2f);
arch/riscv/net/bpf_jit.h
903
static inline u32 rv_amoor_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl)
arch/riscv/net/bpf_jit.h
905
return rv_amo_insn(0x8, aq, rl, rs2, rs1, 3, rd, 0x2f);
arch/riscv/net/bpf_jit.h
908
static inline u32 rv_amoxor_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl)
arch/riscv/net/bpf_jit.h
910
return rv_amo_insn(0x4, aq, rl, rs2, rs1, 3, rd, 0x2f);
arch/riscv/net/bpf_jit.h
913
static inline u32 rv_amoswap_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl)
arch/riscv/net/bpf_jit.h
915
return rv_amo_insn(0x1, aq, rl, rs2, rs1, 3, rd, 0x2f);
arch/riscv/net/bpf_jit.h
918
static inline u32 rv_lr_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl)
arch/riscv/net/bpf_jit.h
920
return rv_amo_insn(0x2, aq, rl, rs2, rs1, 3, rd, 0x2f);
arch/riscv/net/bpf_jit.h
923
static inline u32 rv_sc_d(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl)
arch/riscv/net/bpf_jit.h
925
return rv_amo_insn(0x3, aq, rl, rs2, rs1, 3, rd, 0x2f);
arch/s390/kvm/guestdbg.c
471
s32 rl = *((s32 *) (opcode + 1));
arch/s390/kvm/guestdbg.c
474
*addr += (u64)(s64) rl * 2;
block/blk-cgroup.h
503
#define blk_queue_for_each_rl(rl, q) \
block/blk-cgroup.h
504
for ((rl) = &(q)->root_rl; (rl); (rl) = NULL)
block/sed-opal.c
1472
bool rl, bool wl)
block/sed-opal.c
1494
add_token_u8(&err, dev, rl);
crypto/camellia_generic.c
319
#define ROLDQ(ll, lr, rl, rr, w0, w1, bits) ({ \
crypto/camellia_generic.c
322
lr = (lr << bits) + (rl >> (32 - bits)); \
crypto/camellia_generic.c
323
rl = (rl << bits) + (rr >> (32 - bits)); \
crypto/camellia_generic.c
327
#define ROLDQo32(ll, lr, rl, rr, w0, w1, bits) ({ \
crypto/camellia_generic.c
330
ll = (lr << (bits - 32)) + (rl >> (64 - bits)); \
crypto/camellia_generic.c
331
lr = (rl << (bits - 32)) + (rr >> (64 - bits)); \
crypto/camellia_generic.c
332
rl = (rr << (bits - 32)) + (w0 >> (64 - bits)); \
crypto/camellia_generic.c
811
#define CAMELLIA_FLS(ll, lr, rl, rr, kll, klr, krl, krr, t0, t1, t2, t3) ({ \
crypto/camellia_generic.c
816
rl ^= t2; \
crypto/camellia_generic.c
820
t3 &= rl; \
crypto/crypto_user.c
104
struct crypto_report_larval rl = {
crypto/crypto_user.c
108
if (nla_put(skb, CRYPTOCFGA_REPORT_LARVAL, sizeof(rl), &rl))
drivers/block/drbd/drbd_main.c
1089
unsigned long rl;
drivers/block/drbd/drbd_main.c
1122
rl = tmp - c->bit_offset;
drivers/block/drbd/drbd_main.c
1125
if (rl == 0) {
drivers/block/drbd/drbd_main.c
1138
if (rl == 0) {
drivers/block/drbd/drbd_main.c
1144
bits = vli_encode_bits(&bs, rl);
drivers/block/drbd/drbd_main.c
1153
plain_bits += rl;
drivers/block/drbd/drbd_receiver.c
4513
u64 rl;
drivers/block/drbd/drbd_receiver.c
4527
for (have = bits; have > 0; s += rl, toggle = !toggle) {
drivers/block/drbd/drbd_receiver.c
4528
bits = vli_decode_bits(&rl, look_ahead);
drivers/block/drbd/drbd_receiver.c
4533
e = s + rl -1;
drivers/crypto/intel/qat/qat_common/adf_rl.c
1053
struct adf_rl *rl;
drivers/crypto/intel/qat/qat_common/adf_rl.c
1068
rl = kzalloc_obj(*rl);
drivers/crypto/intel/qat/qat_common/adf_rl.c
1069
if (!rl) {
drivers/crypto/intel/qat/qat_common/adf_rl.c
1074
mutex_init(&rl->rl_lock);
drivers/crypto/intel/qat/qat_common/adf_rl.c
1075
rl->device_data = &accel_dev->hw_device->rl_data;
drivers/crypto/intel/qat/qat_common/adf_rl.c
1076
rl->accel_dev = accel_dev;
drivers/crypto/intel/qat/qat_common/adf_rl.c
1077
init_rwsem(&rl->user_input.lock);
drivers/crypto/intel/qat/qat_common/adf_rl.c
1078
accel_dev->rate_limiting = rl;
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
1176
if (!is_psp_fw_valid(psp->rl))
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
1181
ret = psp_copy_fw(psp, psp->rl.start_addr, psp->rl.size_bytes);
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
1190
cmd->cmd.cmd_load_ip_fw.fw_size = psp->rl.size_bytes;
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
3987
psp->rl.fw_version = le32_to_cpu(desc->fw_version);
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
3988
psp->rl.feature_version = le32_to_cpu(desc->fw_version);
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
3989
psp->rl.size_bytes = le32_to_cpu(desc->size_bytes);
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
3990
psp->rl.start_addr = ucode_start_addr;
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
4141
adev->psp.rl.size_bytes = le32_to_cpu(sos_hdr_v1_3->rl.size_bytes);
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
4142
adev->psp.rl.start_addr = ucode_array_start_addr +
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
4143
le32_to_cpu(sos_hdr_v1_3->rl.offset_bytes);
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
406
struct psp_bin_desc rl;
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
106
struct psp_fw_legacy_bin_desc rl;
drivers/hwmon/asc7621.c
799
#define PREAD(name, n, pri, rm, rl, m, s, r) \
drivers/hwmon/asc7621.c
801
.priority = pri, .msb[0] = rm, .lsb[0] = rl, .mask[0] = m, \
drivers/hwmon/asc7621.c
804
#define PWRITE(name, n, pri, rm, rl, m, s, r) \
drivers/hwmon/asc7621.c
806
.priority = pri, .msb[0] = rm, .lsb[0] = rl, .mask[0] = m, \
drivers/hwmon/asc7621.c
813
#define PWRITEM(name, n, pri, rm, rl, m, s, r) \
drivers/hwmon/asc7621.c
815
.priority = pri, .msb = rm, .lsb = rl, .mask = m, .shift = s,}
drivers/infiniband/hw/mlx5/mlx5_ib.h
542
struct mlx5_rate_limit rl;
drivers/infiniband/hw/mlx5/qp.c
2754
if (qp->rl.rate) {
drivers/infiniband/hw/mlx5/qp.c
2755
mlx5_rl_remove_rate(dev->mdev, &qp->rl);
drivers/infiniband/hw/mlx5/qp.c
2756
memset(&qp->rl, 0, sizeof(qp->rl));
drivers/infiniband/hw/mlx5/qp.c
3930
ctx->rl_old = qp->rl;
drivers/infiniband/hw/mlx5/qp.c
3971
qp->rl = ctx->rl_desired;
drivers/infiniband/hw/mlx5/qp.c
3975
if (qp->rl.rate)
drivers/infiniband/hw/mlx5/qp.c
3976
mlx5_rl_remove_rate(dev, &qp->rl);
drivers/infiniband/hw/mlx5/qp.c
3977
memset(&qp->rl, 0, sizeof(qp->rl));
drivers/infiniband/hw/mlx5/qp.c
4024
mlx5_rl_remove_rate(dev, &ibqp->rl);
drivers/infiniband/hw/mlx5/qp.c
4025
memset(&ibqp->rl, 0, sizeof(ibqp->rl));
drivers/infiniband/hw/mlx5/qp.c
4490
if (!mlx5_rl_are_equal(&rl_ctx.rl_desired, &qp->rl)) {
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
1439
u32 rl;
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
1454
rl = hns3_rl_round_down(cmd->rx_coalesce_usecs_high);
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
1455
if (rl != cmd->rx_coalesce_usecs_high) {
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
1458
cmd->rx_coalesce_usecs_high, rl);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2871
struct virtchnl2_rss_lut *rl __free(kfree) = NULL;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2885
buf_size = struct_size(rl, lut, rss_data->rss_lut_size);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2886
rl = kzalloc(buf_size, GFP_KERNEL);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2887
if (!rl)
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2890
rl->vport_id = cpu_to_le32(vport_id);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2893
xn_params.send_buf.iov_base = rl;
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2904
rl->lut_entries = cpu_to_le16(rss_data->rss_lut_size);
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2906
rl->lut[i] = rxhash_ena ?
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
466
void mlx5e_mqprio_rl_free(struct mlx5e_mqprio_rl *rl)
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
468
kvfree(rl);
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
471
int mlx5e_mqprio_rl_init(struct mlx5e_mqprio_rl *rl, struct mlx5_core_dev *mdev, u8 num_tc,
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
484
rl->mdev = mdev;
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
485
rl->num_tc = num_tc;
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
486
rl->leaves_id = kvcalloc(num_tc, sizeof(*rl->leaves_id), GFP_KERNEL);
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
487
if (!rl->leaves_id)
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
490
err = mlx5_qos_create_root_node(mdev, &rl->root_id);
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
494
qos_dbg(mdev, "Root created, id %#x\n", rl->root_id);
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
500
err = mlx5_qos_create_leaf_node(mdev, rl->root_id, 0, max_average_bw,
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
501
&rl->leaves_id[tc]);
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
506
tc, rl->leaves_id[tc], max_average_bw);
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
512
mlx5_qos_destroy_node(mdev, rl->leaves_id[tc]);
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
513
mlx5_qos_destroy_node(mdev, rl->root_id);
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
515
kvfree(rl->leaves_id);
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
519
void mlx5e_mqprio_rl_cleanup(struct mlx5e_mqprio_rl *rl)
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
523
for (tc = 0; tc < rl->num_tc; tc++)
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
524
mlx5_qos_destroy_node(rl->mdev, rl->leaves_id[tc]);
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
525
mlx5_qos_destroy_node(rl->mdev, rl->root_id);
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
526
kvfree(rl->leaves_id);
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
529
int mlx5e_mqprio_rl_get_node_hw_id(struct mlx5e_mqprio_rl *rl, int tc, u32 *hw_id)
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
531
if (tc >= rl->num_tc)
drivers/net/ethernet/mellanox/mlx5/core/en/qos.c
534
*hw_id = rl->leaves_id[tc];
drivers/net/ethernet/mellanox/mlx5/core/en/qos.h
46
void mlx5e_mqprio_rl_free(struct mlx5e_mqprio_rl *rl);
drivers/net/ethernet/mellanox/mlx5/core/en/qos.h
47
int mlx5e_mqprio_rl_init(struct mlx5e_mqprio_rl *rl, struct mlx5_core_dev *mdev, u8 num_tc,
drivers/net/ethernet/mellanox/mlx5/core/en/qos.h
49
void mlx5e_mqprio_rl_cleanup(struct mlx5e_mqprio_rl *rl);
drivers/net/ethernet/mellanox/mlx5/core/en/qos.h
50
int mlx5e_mqprio_rl_get_node_hw_id(struct mlx5e_mqprio_rl *rl, int tc, u32 *hw_id);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
1982
struct mlx5_rate_limit rl = {0};
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
1989
rl.rate = sq->rate_limit;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
1990
mlx5_rl_remove_rate(mdev, &rl);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
2492
struct mlx5_rate_limit rl = {0};
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
2501
rl.rate = sq->rate_limit;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
2503
mlx5_rl_remove_rate(mdev, &rl);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
2509
rl.rate = rate;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
2510
err = mlx5_rl_add_rate(mdev, &rl_index, &rl);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
2528
mlx5_rl_remove_rate(mdev, &rl);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3793
struct mlx5e_mqprio_rl *rl)
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3800
if (rl)
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3801
mlx5e_mqprio_rl_get_node_hw_id(rl, tc, &hw_id);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3808
struct mlx5e_mqprio_rl *rl)
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3818
mlx5e_mqprio_rl_update_params(params, rl);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3922
struct mlx5e_mqprio_rl *rl;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3928
rl = mlx5e_mqprio_rl_alloc();
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3929
if (!rl)
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3932
err = mlx5e_mqprio_rl_init(rl, mdev, num_tc, max_rate);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3934
mlx5e_mqprio_rl_free(rl);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3938
return rl;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3945
struct mlx5e_mqprio_rl *rl;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3952
rl = mlx5e_mqprio_rl_create(priv->mdev, mqprio->qopt.num_tc, mqprio->max_rate);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3953
if (IS_ERR(rl))
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3954
return PTR_ERR(rl);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3957
mlx5e_params_mqprio_channel_set(&new_params, mqprio, rl);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3962
if (rl) {
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3963
mlx5e_mqprio_rl_cleanup(rl);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3964
mlx5e_mqprio_rl_free(rl);
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3973
priv->mqprio_rl = rl;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
6169
struct mlx5e_mqprio_rl *rl;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
6175
rl = mlx5e_mqprio_rl_create(priv->mdev, params->mqprio.num_tc,
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
6177
if (IS_ERR(rl))
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
6178
rl = NULL;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
6179
priv->mqprio_rl = rl;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
6180
mlx5e_mqprio_rl_update_params(params, rl);
drivers/net/ethernet/mellanox/mlx5/core/rl.c
377
struct mlx5_rate_limit *rl)
drivers/net/ethernet/mellanox/mlx5/core/rl.c
381
MLX5_SET(set_pp_rate_limit_context, rl_raw, rate_limit, rl->rate);
drivers/net/ethernet/mellanox/mlx5/core/rl.c
383
rl->max_burst_sz);
drivers/net/ethernet/mellanox/mlx5/core/rl.c
385
rl->typical_pkt_sz);
drivers/net/ethernet/mellanox/mlx5/core/rl.c
394
void mlx5_rl_remove_rate(struct mlx5_core_dev *dev, struct mlx5_rate_limit *rl)
drivers/net/ethernet/mellanox/mlx5/core/rl.c
401
if (rl->rate == 0)
drivers/net/ethernet/mellanox/mlx5/core/rl.c
404
MLX5_SET(set_pp_rate_limit_context, rl_raw, rate_limit, rl->rate);
drivers/net/ethernet/mellanox/mlx5/core/rl.c
406
rl->max_burst_sz);
drivers/net/ethernet/mellanox/mlx5/core/rl.c
408
rl->typical_pkt_sz);
drivers/net/ethernet/mellanox/mlx5/core/rl.c
416
rl->rate, rl->max_burst_sz, rl->typical_pkt_sz);
drivers/net/ethernet/microchip/enc28j60.c
292
int rl, rh;
drivers/net/ethernet/microchip/enc28j60.c
295
rl = spi_read_op(priv, ENC28J60_READ_CTRL_REG, address);
drivers/net/ethernet/microchip/enc28j60.c
298
return (rh << 8) | rl;
drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c
194
#define PQ_INFO_ELEMENT(vp, pf, tc, port, rl_valid, rl) \
drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c
196
((rl_valid ? 1 : 0) << 22) | (((rl) & 255) << 24) | \
drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c
197
(((rl) >> 8) << 9))
drivers/nvme/host/trace.c
109
u16 rl = get_unaligned_le16(cdw10 + 12);
drivers/nvme/host/trace.c
113
slba, mndw, rl, atype);
drivers/nvme/target/trace.c
42
u16 rl = get_unaligned_le16(cdw10 + 12);
drivers/nvme/target/trace.c
46
slba, mndw, rl, atype);
drivers/s390/scsi/zfcp_reqlist.h
107
zfcp_reqlist_find(struct zfcp_reqlist *rl, u64 req_id)
drivers/s390/scsi/zfcp_reqlist.h
112
spin_lock_irqsave(&rl->lock, flags);
drivers/s390/scsi/zfcp_reqlist.h
113
req = _zfcp_reqlist_find(rl, req_id);
drivers/s390/scsi/zfcp_reqlist.h
114
spin_unlock_irqrestore(&rl->lock, flags);
drivers/s390/scsi/zfcp_reqlist.h
132
zfcp_reqlist_find_rm(struct zfcp_reqlist *rl, u64 req_id)
drivers/s390/scsi/zfcp_reqlist.h
137
spin_lock_irqsave(&rl->lock, flags);
drivers/s390/scsi/zfcp_reqlist.h
138
req = _zfcp_reqlist_find(rl, req_id);
drivers/s390/scsi/zfcp_reqlist.h
141
spin_unlock_irqrestore(&rl->lock, flags);
drivers/s390/scsi/zfcp_reqlist.h
156
static inline void zfcp_reqlist_add(struct zfcp_reqlist *rl,
drivers/s390/scsi/zfcp_reqlist.h
164
spin_lock_irqsave(&rl->lock, flags);
drivers/s390/scsi/zfcp_reqlist.h
165
list_add_tail(&req->list, &rl->buckets[i]);
drivers/s390/scsi/zfcp_reqlist.h
166
spin_unlock_irqrestore(&rl->lock, flags);
drivers/s390/scsi/zfcp_reqlist.h
174
static inline void zfcp_reqlist_move(struct zfcp_reqlist *rl,
drivers/s390/scsi/zfcp_reqlist.h
180
spin_lock_irqsave(&rl->lock, flags);
drivers/s390/scsi/zfcp_reqlist.h
182
list_splice_init(&rl->buckets[i], list);
drivers/s390/scsi/zfcp_reqlist.h
183
spin_unlock_irqrestore(&rl->lock, flags);
drivers/s390/scsi/zfcp_reqlist.h
200
zfcp_reqlist_apply_for_all(struct zfcp_reqlist *rl,
drivers/s390/scsi/zfcp_reqlist.h
207
spin_lock_irqsave(&rl->lock, flags);
drivers/s390/scsi/zfcp_reqlist.h
209
list_for_each_entry(req, &rl->buckets[i], list)
drivers/s390/scsi/zfcp_reqlist.h
211
spin_unlock_irqrestore(&rl->lock, flags);
drivers/s390/scsi/zfcp_reqlist.h
43
struct zfcp_reqlist *rl;
drivers/s390/scsi/zfcp_reqlist.h
45
rl = kzalloc_obj(struct zfcp_reqlist);
drivers/s390/scsi/zfcp_reqlist.h
46
if (!rl)
drivers/s390/scsi/zfcp_reqlist.h
49
spin_lock_init(&rl->lock);
drivers/s390/scsi/zfcp_reqlist.h
52
INIT_LIST_HEAD(&rl->buckets[i]);
drivers/s390/scsi/zfcp_reqlist.h
54
return rl;
drivers/s390/scsi/zfcp_reqlist.h
63
static inline int zfcp_reqlist_isempty(struct zfcp_reqlist *rl)
drivers/s390/scsi/zfcp_reqlist.h
68
if (!list_empty(&rl->buckets[i]))
drivers/s390/scsi/zfcp_reqlist.h
77
static inline void zfcp_reqlist_free(struct zfcp_reqlist *rl)
drivers/s390/scsi/zfcp_reqlist.h
80
BUG_ON(!zfcp_reqlist_isempty(rl));
drivers/s390/scsi/zfcp_reqlist.h
82
kfree(rl);
drivers/s390/scsi/zfcp_reqlist.h
86
_zfcp_reqlist_find(struct zfcp_reqlist *rl, u64 req_id)
drivers/s390/scsi/zfcp_reqlist.h
92
list_for_each_entry(req, &rl->buckets[i], list)
drivers/slimbus/messaging.c
152
unsigned long ms = txn->rl + HZ;
drivers/slimbus/messaging.c
261
txn->rl += msg->num_bytes;
drivers/slimbus/messaging.c
268
txn->rl++;
drivers/slimbus/qcom-ngd-ctrl.c
1058
txn.rl = txn.msg->num_bytes + 4;
drivers/slimbus/qcom-ngd-ctrl.c
1070
txn.rl = txn.msg->num_bytes + 4;
drivers/slimbus/qcom-ngd-ctrl.c
1105
txn.rl = 11;
drivers/slimbus/qcom-ngd-ctrl.c
1270
txn.rl = 8;
drivers/slimbus/qcom-ngd-ctrl.c
809
txn->rl > SLIM_MSGQ_BUF_LEN) {
drivers/slimbus/qcom-ngd-ctrl.c
814
pbuf = qcom_slim_ngd_tx_msg_get(ctrl, txn->rl, &tx_sent);
drivers/slimbus/qcom-ngd-ctrl.c
859
txn->rl = txn->msg->num_bytes + 4;
drivers/slimbus/qcom-ngd-ctrl.c
863
txn->rl--;
drivers/slimbus/qcom-ngd-ctrl.c
867
*pbuf = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, txn->mc, 0,
drivers/slimbus/qcom-ngd-ctrl.c
871
*pbuf = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, txn->mc, 1,
drivers/slimbus/qcom-ngd-ctrl.c
888
ret = qcom_slim_ngd_tx_msg_post(ctrl, pbuf, txn->rl);
drivers/slimbus/sched.c
105
txn.rl = 3;
drivers/slimbus/sched.c
97
txn.rl = 4;
drivers/slimbus/slimbus.h
128
u8 rl;
drivers/slimbus/slimbus.h
140
#define DEFINE_SLIM_LDEST_TXN(name, mc, rl, la, msg) \
drivers/slimbus/slimbus.h
141
struct slim_msg_txn name = { rl, 0, mc, SLIM_MSG_DEST_LOGICALADDR, 0,\
drivers/slimbus/slimbus.h
144
#define DEFINE_SLIM_BCAST_TXN(name, mc, rl, la, msg) \
drivers/slimbus/slimbus.h
145
struct slim_msg_txn name = { rl, 0, mc, SLIM_MSG_DEST_BROADCAST, 0,\
drivers/slimbus/slimbus.h
148
#define DEFINE_SLIM_EDEST_TXN(name, mc, rl, la, msg) \
drivers/slimbus/slimbus.h
149
struct slim_msg_txn name = { rl, 0, mc, SLIM_MSG_DEST_ENUMADDR, 0,\
drivers/usb/isp1760/isp1760-hcd.c
822
u32 rl = RL_COUNTER;
drivers/usb/isp1760/isp1760-hcd.c
863
rl = 0;
drivers/usb/isp1760/isp1760-hcd.c
874
ptd->dw2 |= TO_DW2_RL(rl);
drivers/video/fbdev/metronomefb.c
276
unsigned char rl;
drivers/video/fbdev/metronomefb.c
289
rl = mem[wfm_idx++];
drivers/video/fbdev/metronomefb.c
290
for (i = 0; i <= rl; i++)
fs/binfmt_flat.c
341
static void old_reloc(unsigned long rl)
fs/binfmt_flat.c
348
r.value = rl;
fs/dlm/lock.c
5530
struct rcom_lock *rl = (struct rcom_lock *) rc->rc_buf;
fs/dlm/lock.c
5533
lkb->lkb_ownpid = le32_to_cpu(rl->rl_ownpid);
fs/dlm/lock.c
5534
lkb->lkb_remid = le32_to_cpu(rl->rl_lkid);
fs/dlm/lock.c
5535
lkb->lkb_exflags = le32_to_cpu(rl->rl_exflags);
fs/dlm/lock.c
5536
dlm_set_dflags_val(lkb, le32_to_cpu(rl->rl_flags));
fs/dlm/lock.c
5538
lkb->lkb_lvbseq = le32_to_cpu(rl->rl_lvbseq);
fs/dlm/lock.c
5539
lkb->lkb_rqmode = rl->rl_rqmode;
fs/dlm/lock.c
5540
lkb->lkb_grmode = rl->rl_grmode;
fs/dlm/lock.c
5543
lkb->lkb_bastfn = (rl->rl_asts & DLM_CB_BAST) ? &fake_bastfn : NULL;
fs/dlm/lock.c
5544
lkb->lkb_astfn = (rl->rl_asts & DLM_CB_CAST) ? &fake_astfn : NULL;
fs/dlm/lock.c
5554
memcpy(lkb->lkb_lvbptr, rl->rl_lvb, lvblen);
fs/dlm/lock.c
5561
if (rl->rl_status == DLM_LKSTS_CONVERT && middle_conversion(lkb)) {
fs/dlm/lock.c
5582
struct rcom_lock *rl = (struct rcom_lock *) rc->rc_buf;
fs/dlm/lock.c
5590
*rl_remid = rl->rl_remid;
fs/dlm/lock.c
5592
if (rl->rl_parent_lkid) {
fs/dlm/lock.c
5597
remid = le32_to_cpu(rl->rl_lkid);
fs/dlm/lock.c
5607
error = find_rsb(ls, rl->rl_name, le16_to_cpu(rl->rl_namelen),
fs/dlm/lock.c
5638
add_lkb(r, lkb, rl->rl_status);
fs/dlm/lock.c
5666
struct rcom_lock *rl = (struct rcom_lock *) rc->rc_buf;
fs/dlm/lock.c
5672
lkid = le32_to_cpu(rl->rl_lkid);
fs/dlm/lock.c
5673
remid = le32_to_cpu(rl->rl_remid);
fs/dlm/lock.c
5674
result = le32_to_cpu(rl->rl_result);
fs/dlm/rcom.c
418
struct rcom_lock *rl)
fs/dlm/rcom.c
420
memset(rl, 0, sizeof(*rl));
fs/dlm/rcom.c
422
rl->rl_ownpid = cpu_to_le32(lkb->lkb_ownpid);
fs/dlm/rcom.c
423
rl->rl_lkid = cpu_to_le32(lkb->lkb_id);
fs/dlm/rcom.c
424
rl->rl_exflags = cpu_to_le32(lkb->lkb_exflags);
fs/dlm/rcom.c
425
rl->rl_flags = cpu_to_le32(dlm_dflags_val(lkb));
fs/dlm/rcom.c
426
rl->rl_lvbseq = cpu_to_le32(lkb->lkb_lvbseq);
fs/dlm/rcom.c
427
rl->rl_rqmode = lkb->lkb_rqmode;
fs/dlm/rcom.c
428
rl->rl_grmode = lkb->lkb_grmode;
fs/dlm/rcom.c
429
rl->rl_status = lkb->lkb_status;
fs/dlm/rcom.c
430
rl->rl_wait_type = cpu_to_le16(lkb->lkb_wait_type);
fs/dlm/rcom.c
433
rl->rl_asts |= DLM_CB_BAST;
fs/dlm/rcom.c
435
rl->rl_asts |= DLM_CB_CAST;
fs/dlm/rcom.c
437
rl->rl_namelen = cpu_to_le16(r->res_length);
fs/dlm/rcom.c
438
memcpy(rl->rl_name, r->res_name, r->res_length);
fs/dlm/rcom.c
444
memcpy(rl->rl_lvb, lkb->lkb_lvbptr, r->res_ls->ls_lvblen);
fs/dlm/rcom.c
452
struct rcom_lock *rl;
fs/dlm/rcom.c
463
rl = (struct rcom_lock *) rc->rc_buf;
fs/dlm/rcom.c
464
pack_rcom_lock(r, lkb, rl);
fs/dlm/rcom.c
477
struct rcom_lock *rl;
fs/dlm/rcom.c
490
rl = (struct rcom_lock *)rc->rc_buf;
fs/dlm/rcom.c
492
rl->rl_remid = rl_remid;
fs/dlm/rcom.c
493
rl->rl_result = rl_result;
fs/ntfs/attrib.c
1921
struct runlist_element *rl;
fs/ntfs/attrib.c
195
rl = ntfs_mapping_pairs_decompress(ni->vol, a, &ni->runlist, &new_rl_count);
fs/ntfs/attrib.c
196
if (IS_ERR(rl))
fs/ntfs/attrib.c
197
err = PTR_ERR(rl);
fs/ntfs/attrib.c
199
ni->runlist.rl = rl;
fs/ntfs/attrib.c
2000
rl = ntfs_cluster_alloc(vol, 0,
fs/ntfs/attrib.c
2003
if (IS_ERR(rl)) {
fs/ntfs/attrib.c
2004
err = PTR_ERR(rl);
fs/ntfs/attrib.c
2011
rl = NULL;
fs/ntfs/attrib.c
2017
mp_size = ntfs_get_size_for_mapping_pairs(vol, rl, 0, -1, -1);
fs/ntfs/attrib.c
2097
arec_size - mp_ofs, rl, 0, -1, NULL, NULL, NULL);
fs/ntfs/attrib.c
2105
ni->runlist.rl = rl;
fs/ntfs/attrib.c
2106
if (rl) {
fs/ntfs/attrib.c
2107
for (ni->runlist.count = 1; rl->length != 0; rl++)
fs/ntfs/attrib.c
2208
if (rl) {
fs/ntfs/attrib.c
2209
if (ntfs_cluster_free_from_rl(vol, rl) < 0) {
fs/ntfs/attrib.c
2214
kvfree(rl);
fs/ntfs/attrib.c
2224
ni->runlist.rl = NULL;
fs/ntfs/attrib.c
2997
ni->runlist.rl = NULL;
fs/ntfs/attrib.c
310
if (likely(ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn) <=
fs/ntfs/attrib.c
319
struct runlist_element *rl = ni->runlist.rl;
fs/ntfs/attrib.c
3228
if (NInoNonResident(ni) && ni->runlist.rl)
fs/ntfs/attrib.c
3229
kvfree(ni->runlist.rl);
fs/ntfs/attrib.c
323
if (!rl) {
fs/ntfs/attrib.c
3260
if (NInoFullyMapped(ni) && ni->runlist.rl)
fs/ntfs/attrib.c
327
rl = ni->runlist.rl;
fs/ntfs/attrib.c
3278
struct runlist_element *rl;
fs/ntfs/attrib.c
3281
if (ntfs_rl_vcn_to_lcn(ni->runlist.rl, next_vcn) == LCN_RL_NOT_MAPPED)
fs/ntfs/attrib.c
3293
rl = ntfs_mapping_pairs_decompress(ni->vol, a, &ni->runlist,
fs/ntfs/attrib.c
3295
if (IS_ERR(rl)) {
fs/ntfs/attrib.c
3296
err = PTR_ERR(rl);
fs/ntfs/attrib.c
3299
ni->runlist.rl = rl;
fs/ntfs/attrib.c
332
while (rl->length && rl[1].vcn <= vcn)
fs/ntfs/attrib.c
333
rl++;
fs/ntfs/attrib.c
334
*lcn = ntfs_rl_vcn_to_lcn(rl, vcn);
fs/ntfs/attrib.c
339
rl = ni->runlist.rl;
fs/ntfs/attrib.c
344
return rl;
fs/ntfs/attrib.c
3564
sparse = ntfs_rl_sparse(ni->runlist.rl);
fs/ntfs/attrib.c
3645
new_compr_size = ntfs_rl_get_compressed_size(ni->vol, ni->runlist.rl);
fs/ntfs/attrib.c
3698
if (!ni || !ni->runlist.rl)
fs/ntfs/attrib.c
3724
start_rl = ni->runlist.rl;
fs/ntfs/attrib.c
3750
first_lcn = ntfs_rl_vcn_to_lcn(ni->runlist.rl, stop_vcn);
fs/ntfs/attrib.c
387
if (!ni->runlist.rl) {
fs/ntfs/attrib.c
397
lcn = ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn);
fs/ntfs/attrib.c
411
if (unlikely(ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn) !=
fs/ntfs/attrib.c
4140
kvfree(ni->runlist.rl);
fs/ntfs/attrib.c
4141
ni->runlist.rl = NULL;
fs/ntfs/attrib.c
4247
kvfree(ni->runlist.rl);
fs/ntfs/attrib.c
4248
ni->runlist.rl = NULL;
fs/ntfs/attrib.c
4339
struct runlist_element *rl, *rln;
fs/ntfs/attrib.c
4407
while (ni->runlist.rl[last].length)
fs/ntfs/attrib.c
4410
rl = ntfs_rl_realloc(ni->runlist.rl, last + 1,
fs/ntfs/attrib.c
4412
if (IS_ERR(rl)) {
fs/ntfs/attrib.c
4419
rl[last].vcn = ntfs_bytes_to_cluster(vol,
fs/ntfs/attrib.c
4421
rl[last].length = ni->itype.compressed.block_clusters -
fs/ntfs/attrib.c
4422
(rl[last].vcn &
fs/ntfs/attrib.c
4424
rl[last].lcn = LCN_HOLE;
fs/ntfs/attrib.c
4429
rl[last].vcn = first_free_vcn;
fs/ntfs/attrib.c
4430
rl[last].lcn = LCN_ENOENT;
fs/ntfs/attrib.c
4431
rl[last].length = 0;
fs/ntfs/attrib.c
4433
ni->runlist.rl = rl;
fs/ntfs/attrib.c
4436
rl = kmalloc(sizeof(struct runlist_element) * 2, GFP_NOFS);
fs/ntfs/attrib.c
4437
if (!rl) {
fs/ntfs/attrib.c
4442
rl[0].vcn = ntfs_bytes_to_cluster(vol, ni->allocated_size);
fs/ntfs/attrib.c
4443
rl[0].lcn = LCN_HOLE;
fs/ntfs/attrib.c
4444
rl[0].length = first_free_vcn -
fs/ntfs/attrib.c
4446
rl[1].vcn = first_free_vcn;
fs/ntfs/attrib.c
4447
rl[1].lcn = LCN_ENOENT;
fs/ntfs/attrib.c
4448
rl[1].length = 0;
fs/ntfs/attrib.c
4459
if (ni->runlist.rl->length) {
fs/ntfs/attrib.c
4461
for (rl = ni->runlist.rl; (rl + 1)->length; rl++)
fs/ntfs/attrib.c
4467
while (rl->lcn < 0 && rl != ni->runlist.rl)
fs/ntfs/attrib.c
4468
rl--;
fs/ntfs/attrib.c
4472
if (rl->lcn >= 0)
fs/ntfs/attrib.c
4473
lcn_seek_from = rl->lcn + rl->length;
fs/ntfs/attrib.c
4476
rl = ntfs_cluster_alloc(vol,
fs/ntfs/attrib.c
4481
if (IS_ERR(rl)) {
fs/ntfs/attrib.c
4485
return PTR_ERR(rl);
fs/ntfs/attrib.c
449
if (runlist->count - 1 > rh && runlist->rl[rh].vcn <= vcn) {
fs/ntfs/attrib.c
4491
rln = ntfs_runlists_merge(&ni->runlist, rl, 0, &new_rl_count);
fs/ntfs/attrib.c
4495
ntfs_cluster_free_from_rl(vol, rl);
fs/ntfs/attrib.c
4496
kvfree(rl);
fs/ntfs/attrib.c
4499
ni->runlist.rl = rln;
fs/ntfs/attrib.c
450
if (vcn < runlist->rl[rh].vcn + runlist->rl[rh].length)
fs/ntfs/attrib.c
451
return &runlist->rl[rh];
fs/ntfs/attrib.c
4560
kvfree(ni->runlist.rl);
fs/ntfs/attrib.c
4561
ni->runlist.rl = NULL;
fs/ntfs/attrib.c
457
run = &runlist->rl[0];
fs/ntfs/attrib.c
468
run = &runlist->rl[runlist->count - 2];
fs/ntfs/attrib.c
480
run = &runlist->rl[idx];
fs/ntfs/attrib.c
4979
struct runlist_element *rl, *rlc;
fs/ntfs/attrib.c
5007
rl = ntfs_attr_find_vcn_nolock(ni, vcn, ctx);
fs/ntfs/attrib.c
5008
if (IS_ERR(rl)) {
fs/ntfs/attrib.c
5010
err = PTR_ERR(rl);
fs/ntfs/attrib.c
5014
lcn = ntfs_rl_vcn_to_lcn(rl, vcn);
fs/ntfs/attrib.c
5015
clu_count = min(max_clu_count, rl->length - (vcn - rl->vcn));
fs/ntfs/attrib.c
5034
rlc = rl;
fs/ntfs/attrib.c
5054
rlc = rl;
fs/ntfs/attrib.c
5077
rl = ntfs_runlists_merge(&ni->runlist, rlc, 0, &new_rl_count);
fs/ntfs/attrib.c
5078
if (IS_ERR(rl)) {
fs/ntfs/attrib.c
5080
err = PTR_ERR(rl);
fs/ntfs/attrib.c
5086
ni->runlist.rl = rl;
fs/ntfs/attrib.c
5307
struct runlist_element *hole_rl, *rl;
fs/ntfs/attrib.c
531
struct runlist_element *rl;
fs/ntfs/attrib.c
5335
rl = ntfs_rl_find_vcn_nolock(ni->runlist.rl, start_vcn);
fs/ntfs/attrib.c
5336
if (!rl) {
fs/ntfs/attrib.c
5342
rl = ntfs_rl_insert_range(ni->runlist.rl, (int)ni->runlist.count,
fs/ntfs/attrib.c
5344
if (IS_ERR(rl)) {
fs/ntfs/attrib.c
5347
return PTR_ERR(rl);
fs/ntfs/attrib.c
5349
ni->runlist.rl = rl;
fs/ntfs/attrib.c
537
if (!ni->runlist.rl) {
fs/ntfs/attrib.c
5386
struct runlist_element *punch_rl, *rl;
fs/ntfs/attrib.c
5408
for (rl = ni->runlist.rl, dst_cnt = 0; rl && rl->length; rl++)
fs/ntfs/attrib.c
5410
rl = ntfs_rl_find_vcn_nolock(ni->runlist.rl, start_vcn);
fs/ntfs/attrib.c
5411
if (!rl) {
fs/ntfs/attrib.c
5416
rl = ntfs_rl_collapse_range(ni->runlist.rl, dst_cnt + 1,
fs/ntfs/attrib.c
5418
if (IS_ERR(rl)) {
fs/ntfs/attrib.c
5420
return PTR_ERR(rl);
fs/ntfs/attrib.c
5422
ni->runlist.rl = rl;
fs/ntfs/attrib.c
547
rl = ni->runlist.rl;
fs/ntfs/attrib.c
548
if (likely(rl && vcn >= rl[0].vcn)) {
fs/ntfs/attrib.c
5481
struct runlist_element *punch_rl, *rl;
fs/ntfs/attrib.c
549
rl = __ntfs_attr_find_vcn_nolock(&ni->runlist, vcn);
fs/ntfs/attrib.c
550
if (IS_ERR(rl))
fs/ntfs/attrib.c
5502
for (rl = ni->runlist.rl, dst_cnt = 0; rl && rl->length; rl++)
fs/ntfs/attrib.c
5504
rl = ntfs_rl_find_vcn_nolock(ni->runlist.rl, start_vcn);
fs/ntfs/attrib.c
5505
if (!rl) {
fs/ntfs/attrib.c
551
err = PTR_ERR(rl);
fs/ntfs/attrib.c
5510
rl = ntfs_rl_punch_hole(ni->runlist.rl, dst_cnt + 1,
fs/ntfs/attrib.c
5512
if (IS_ERR(rl)) {
fs/ntfs/attrib.c
5514
return PTR_ERR(rl);
fs/ntfs/attrib.c
5516
ni->runlist.rl = rl;
fs/ntfs/attrib.c
552
else if (rl->lcn >= LCN_HOLE)
fs/ntfs/attrib.c
553
return rl;
fs/ntfs/attrib.c
554
else if (rl->lcn <= LCN_ENOENT)
fs/ntfs/attrib.c
5545
struct runlist_element *rl;
fs/ntfs/attrib.c
5622
rl = ntfs_attr_find_vcn_nolock(ni, vcn, NULL);
fs/ntfs/attrib.c
5623
if (IS_ERR(rl)) {
fs/ntfs/attrib.c
5625
err = PTR_ERR(rl);
fs/ntfs/attrib.c
5628
rl_lcn = rl->lcn;
fs/ntfs/attrib.c
5629
rl_length = rl->length;
fs/ntfs/attrib.c
5630
rl_vcn = rl->vcn;
fs/ntfs/attrib.c
93
struct runlist_element *rl;
fs/ntfs/compress.c
1291
struct runlist_element *rlc, *rl;
fs/ntfs/compress.c
1394
rl = ntfs_runlists_merge(&ni->runlist, rlc, 0, &new_rl_count);
fs/ntfs/compress.c
1395
if (IS_ERR(rl)) {
fs/ntfs/compress.c
1398
err = PTR_ERR(rl);
fs/ntfs/compress.c
1406
ni->runlist.rl = rl;
fs/ntfs/compress.c
472
struct runlist_element *rl;
fs/ntfs/compress.c
600
rl = NULL;
fs/ntfs/compress.c
605
if (!rl) {
fs/ntfs/compress.c
608
rl = ni->runlist.rl;
fs/ntfs/compress.c
610
if (likely(rl != NULL)) {
fs/ntfs/compress.c
612
while (rl->length && rl[1].vcn <= vcn)
fs/ntfs/compress.c
613
rl++;
fs/ntfs/compress.c
614
lcn = ntfs_rl_vcn_to_lcn(rl, vcn);
fs/ntfs/compress.c
663
if (rl)
fs/ntfs/debug.c
131
void ntfs_debug_dump_runlist(const struct runlist_element *rl)
fs/ntfs/debug.c
141
if (!rl) {
fs/ntfs/debug.c
147
s64 lcn = (rl + i)->lcn;
fs/ntfs/debug.c
155
(long long)(rl + i)->vcn, lcn_str[index],
fs/ntfs/debug.c
156
(long long)(rl + i)->length,
fs/ntfs/debug.c
157
(rl + i)->length ? "" :
fs/ntfs/debug.c
161
(long long)(rl + i)->vcn,
fs/ntfs/debug.c
162
(long long)(rl + i)->lcn,
fs/ntfs/debug.c
163
(long long)(rl + i)->length,
fs/ntfs/debug.c
164
(rl + i)->length ? "" :
fs/ntfs/debug.c
166
if (!(rl + i)->length)
fs/ntfs/debug.h
33
void ntfs_debug_dump_runlist(const struct runlist_element *rl);
fs/ntfs/debug.h
43
#define ntfs_debug_dump_runlist(rl) \
fs/ntfs/debug.h
46
(void)rl; \
fs/ntfs/ea.c
643
mp_size = ntfs_get_size_for_mapping_pairs(ni->vol, ni->runlist.rl, 0, -1, -1);
fs/ntfs/file.c
101
while (rc >= 0 && rl[rc].lcn == LCN_HOLE && vcn_ds <= rl[rc].vcn) {
fs/ntfs/file.c
102
vcn_tr = rl[rc].vcn;
fs/ntfs/file.c
109
kvfree(ni->runlist.rl);
fs/ntfs/file.c
110
ni->runlist.rl = NULL;
fs/ntfs/file.c
82
struct runlist_element *rl;
fs/ntfs/file.c
99
rl = ni->runlist.rl;
fs/ntfs/inode.c
1737
struct runlist_element *rl, u8 *al_start, const s64 size,
fs/ntfs/inode.c
1748
if (!vol || !rl || !al || size <= 0 || initialized_size < 0 ||
fs/ntfs/inode.c
1758
while (rl->length) {
fs/ntfs/inode.c
1759
lcn = ntfs_rl_vcn_to_lcn(rl, rl->vcn);
fs/ntfs/inode.c
1761
(unsigned long long)rl->vcn,
fs/ntfs/inode.c
1770
rl_byte_len = ntfs_cluster_to_bytes(vol, rl->length);
fs/ntfs/inode.c
1789
rl++;
fs/ntfs/inode.c
1975
struct runlist_element *rl;
fs/ntfs/inode.c
1985
rl = ntfs_mapping_pairs_decompress(vol, a, NULL, &new_rl_count);
fs/ntfs/inode.c
1986
if (IS_ERR(rl)) {
fs/ntfs/inode.c
1987
err = PTR_ERR(rl);
fs/ntfs/inode.c
1994
err = load_attribute_list_mount(vol, rl, ni->attr_list, ni->attr_list_size,
fs/ntfs/inode.c
1996
kvfree(rl);
fs/ntfs/inode.c
2090
ni->runlist.rl = nrl;
fs/ntfs/inode.c
2213
if (NInoNonResident(ni) && ni->runlist.rl) {
fs/ntfs/inode.c
2214
kvfree(ni->runlist.rl);
fs/ntfs/inode.c
2215
ni->runlist.rl = NULL;
fs/ntfs/inode.c
2688
struct runlist_element *rl;
fs/ntfs/inode.c
2696
rl = mft_ni->runlist.rl;
fs/ntfs/inode.c
2697
if (!rl) {
fs/ntfs/inode.c
2703
while (rl->length && rl[1].vcn <= vcn)
fs/ntfs/inode.c
2704
rl++;
fs/ntfs/inode.c
2705
ni->mft_lcn[0] = ntfs_rl_vcn_to_lcn(rl, vcn);
fs/ntfs/inode.c
2709
(rl->length - (vcn - rl->vcn)) <= 1) {
fs/ntfs/inode.c
2710
rl++;
fs/ntfs/inode.c
2711
ni->mft_lcn[1] = ntfs_rl_vcn_to_lcn(rl, vcn + 1);
fs/ntfs/inode.c
340
err = ntfs_cluster_free_from_rl(ni->vol, ni->runlist.rl);
fs/ntfs/inode.c
349
struct runlist_element *rl;
fs/ntfs/inode.c
352
rl = ntfs_mapping_pairs_decompress(ni->vol, actx->attr, NULL,
fs/ntfs/inode.c
354
if (IS_ERR(rl)) {
fs/ntfs/inode.c
355
err = PTR_ERR(rl);
fs/ntfs/inode.c
361
err = ntfs_cluster_free_from_rl(ni->vol, rl);
fs/ntfs/inode.c
365
kvfree(rl);
fs/ntfs/inode.c
3686
struct runlist_element *rl;
fs/ntfs/inode.c
3693
rl = ntfs_attr_vcn_to_rl(ni, vcn, &lcn);
fs/ntfs/inode.c
3694
if (IS_ERR(rl)) {
fs/ntfs/inode.c
3695
ret = PTR_ERR(rl);
fs/ntfs/inode.c
3700
rl_length = rl->length - (vcn - rl->vcn);
fs/ntfs/iomap.c
192
struct runlist_element *rl;
fs/ntfs/iomap.c
201
rl = ntfs_attr_vcn_to_rl(ni, vcn, &lcn);
fs/ntfs/iomap.c
202
if (IS_ERR(rl)) {
fs/ntfs/iomap.c
204
return PTR_ERR(rl);
fs/ntfs/iomap.c
234
rl_length = ntfs_cluster_to_bytes(vol, rl->length - (vcn - rl->vcn));
fs/ntfs/iomap.c
236
if (rl_length == 0 && rl->lcn > LCN_DELALLOC) {
fs/ntfs/iomap.c
239
rl->vcn, rl->length, rl->lcn);
fs/ntfs/iomap.c
293
struct runlist_element *rl;
fs/ntfs/iomap.c
302
rl = __ntfs_attr_find_vcn_nolock(&ni->runlist, vcn);
fs/ntfs/iomap.c
303
if (IS_ERR(rl)) {
fs/ntfs/iomap.c
307
lcn = ntfs_rl_vcn_to_lcn(rl, vcn);
fs/ntfs/iomap.c
369
struct runlist_element *rl, *rlc;
fs/ntfs/iomap.c
380
rl = ni->runlist.rl;
fs/ntfs/iomap.c
381
if (!rl) {
fs/ntfs/iomap.c
389
rl = ni->runlist.rl;
fs/ntfs/iomap.c
396
rl = __ntfs_attr_find_vcn_nolock(&ni->runlist, vcn);
fs/ntfs/iomap.c
397
if (IS_ERR(rl)) {
fs/ntfs/iomap.c
402
lcn = ntfs_rl_vcn_to_lcn(rl, vcn);
fs/ntfs/iomap.c
407
rl = ni->runlist.rl;
fs/ntfs/iomap.c
412
max_clu_count = min(max_clu_count, rl->length - (vcn - rl->vcn));
fs/ntfs/iomap.c
416
rl->vcn, rl->length);
fs/ntfs/iomap.c
459
rl = ntfs_runlists_merge(&ni->runlist, rlc, 0,
fs/ntfs/iomap.c
461
if (IS_ERR(rl)) {
fs/ntfs/iomap.c
466
return PTR_ERR(rl);
fs/ntfs/iomap.c
469
ni->runlist.rl = rl;
fs/ntfs/lcnalloc.c
1000
start_sector = ALIGN(NTFS_CLU_TO_B(vol, rl->lcn + rl_off),
fs/ntfs/lcnalloc.c
1003
rl->lcn + rl_off + to_discard),
fs/ntfs/lcnalloc.c
1015
++rl;
fs/ntfs/lcnalloc.c
195
struct runlist_element *rl = NULL;
fs/ntfs/lcnalloc.c
37
const struct runlist_element *rl)
fs/ntfs/lcnalloc.c
378
if ((rlpos + 2) * sizeof(*rl) > rlsize) {
fs/ntfs/lcnalloc.c
382
if (!rl)
fs/ntfs/lcnalloc.c
391
memcpy(rl2, rl, rlsize);
fs/ntfs/lcnalloc.c
392
kvfree(rl);
fs/ntfs/lcnalloc.c
393
rl = rl2;
fs/ntfs/lcnalloc.c
416
rl[rlpos - 1].lcn,
fs/ntfs/lcnalloc.c
417
rl[rlpos - 1].length);
fs/ntfs/lcnalloc.c
418
rl[rlpos - 1].length = ++prev_run_len;
fs/ntfs/lcnalloc.c
420
rl[rlpos - 1].lcn,
fs/ntfs/lcnalloc.c
421
rl[rlpos - 1].length,
fs/ntfs/lcnalloc.c
426
rl[rlpos - 1].lcn, rl[rlpos - 1].length);
fs/ntfs/lcnalloc.c
427
rl[rlpos].vcn = rl[rlpos - 1].vcn +
fs/ntfs/lcnalloc.c
431
rl[rlpos].vcn = start_vcn;
fs/ntfs/lcnalloc.c
433
rl[rlpos].lcn = prev_lcn = lcn + bmp_pos;
fs/ntfs/lcnalloc.c
434
rl[rlpos].length = prev_run_len = 1;
fs/ntfs/lcnalloc.c
44
if (!rl)
fs/ntfs/lcnalloc.c
50
for (; rl->length; rl++) {
fs/ntfs/lcnalloc.c
53
if (rl->lcn < 0)
fs/ntfs/lcnalloc.c
55
err = ntfs_bitmap_clear_run(lcnbmp_vi, rl->lcn, rl->length);
fs/ntfs/lcnalloc.c
576
tc = rl[rlpos - 1].lcn +
fs/ntfs/lcnalloc.c
577
rl[rlpos - 1].length;
fs/ntfs/lcnalloc.c
59
nr_freed += rl->length;
fs/ntfs/lcnalloc.c
612
tc = rl[rlpos - 1].lcn +
fs/ntfs/lcnalloc.c
613
rl[rlpos - 1].length;
fs/ntfs/lcnalloc.c
646
tc = rl[rlpos - 1].lcn +
fs/ntfs/lcnalloc.c
647
rl[rlpos - 1].length;
fs/ntfs/lcnalloc.c
719
if (likely(rl)) {
fs/ntfs/lcnalloc.c
720
rl[rlpos].vcn = rl[rlpos - 1].vcn + rl[rlpos - 1].length;
fs/ntfs/lcnalloc.c
721
rl[rlpos].lcn = is_extension ? LCN_ENOENT : LCN_RL_NOT_MAPPED;
fs/ntfs/lcnalloc.c
722
rl[rlpos].length = 0;
fs/ntfs/lcnalloc.c
735
if (!rl) {
fs/ntfs/lcnalloc.c
740
ntfs_release_dirty_clusters(vol, rl->length);
fs/ntfs/lcnalloc.c
748
if (rl) {
fs/ntfs/lcnalloc.c
753
rl[0].lcn, count - clusters);
fs/ntfs/lcnalloc.c
756
err2 = ntfs_cluster_free_from_rl_nolock(vol, rl);
fs/ntfs/lcnalloc.c
764
kvfree(rl);
fs/ntfs/lcnalloc.c
774
return err < 0 ? ERR_PTR(err) : rl;
fs/ntfs/lcnalloc.c
843
struct runlist_element *rl;
fs/ntfs/lcnalloc.c
872
rl = ntfs_attr_find_vcn_nolock(ni, start_vcn, ctx);
fs/ntfs/lcnalloc.c
873
if (IS_ERR(rl)) {
fs/ntfs/lcnalloc.c
874
err = PTR_ERR(rl);
fs/ntfs/lcnalloc.c
889
if (unlikely(rl->lcn < LCN_HOLE)) {
fs/ntfs/lcnalloc.c
896
delta = start_vcn - rl->vcn;
fs/ntfs/lcnalloc.c
899
to_free = rl->length - delta;
fs/ntfs/lcnalloc.c
903
if (likely(rl->lcn >= 0)) {
fs/ntfs/lcnalloc.c
905
err = ntfs_bitmap_set_bits_in_run(lcnbmp_vi, rl->lcn + delta,
fs/ntfs/lcnalloc.c
918
++rl;
fs/ntfs/lcnalloc.c
928
for (; rl->length && count != 0; ++rl) {
fs/ntfs/lcnalloc.c
929
if (unlikely(rl->lcn < LCN_HOLE)) {
fs/ntfs/lcnalloc.c
933
vcn = rl->vcn;
fs/ntfs/lcnalloc.c
934
rl = ntfs_attr_find_vcn_nolock(ni, vcn, ctx);
fs/ntfs/lcnalloc.c
935
if (IS_ERR(rl)) {
fs/ntfs/lcnalloc.c
936
err = PTR_ERR(rl);
fs/ntfs/lcnalloc.c
942
if (unlikely(rl->lcn < LCN_HOLE)) {
fs/ntfs/lcnalloc.c
946
rl->lcn);
fs/ntfs/lcnalloc.c
952
to_free = rl->length;
fs/ntfs/lcnalloc.c
956
if (likely(rl->lcn >= 0)) {
fs/ntfs/lcnalloc.c
958
err = ntfs_bitmap_set_bits_in_run(lcnbmp_vi, rl->lcn,
fs/ntfs/lcnalloc.c
987
rl = ntfs_attr_find_vcn_nolock(ni, start_vcn, ctx);
fs/ntfs/lcnalloc.c
988
if (IS_ERR(rl))
fs/ntfs/lcnalloc.c
990
rl_off = start_vcn - rl->vcn;
fs/ntfs/lcnalloc.c
991
while (rl->length && total_discarded < total_freed) {
fs/ntfs/lcnalloc.c
992
s64 to_discard = rl->length - rl_off;
fs/ntfs/lcnalloc.c
996
if (rl->lcn >= 0) {
fs/ntfs/lcnalloc.h
102
const struct runlist_element *rl);
fs/ntfs/lcnalloc.h
121
const struct runlist_element *rl)
fs/ntfs/lcnalloc.h
128
ret = ntfs_cluster_free_from_rl_nolock(vol, rl);
fs/ntfs/logfile.c
646
struct runlist_element *rl;
fs/ntfs/logfile.c
673
rl = log_ni->runlist.rl;
fs/ntfs/logfile.c
674
if (unlikely(!rl || vcn < rl->vcn || !rl->length)) {
fs/ntfs/logfile.c
681
rl = log_ni->runlist.rl;
fs/ntfs/logfile.c
684
while (rl->length && vcn >= rl[1].vcn)
fs/ntfs/logfile.c
685
rl++;
fs/ntfs/logfile.c
708
lcn = rl->lcn;
fs/ntfs/logfile.c
710
vcn = rl->vcn;
fs/ntfs/logfile.c
718
if (unlikely(!rl->length || lcn < LCN_HOLE))
fs/ntfs/logfile.c
724
len = rl->length;
fs/ntfs/logfile.c
725
if (rl[1].vcn > end_vcn)
fs/ntfs/logfile.c
726
len = end_vcn - rl->vcn;
fs/ntfs/logfile.c
756
} while ((++rl)->vcn < end_vcn);
fs/ntfs/mft.c
1060
struct runlist_element *rl, *rl2 = NULL;
fs/ntfs/mft.c
1086
rl = ntfs_attr_find_vcn_nolock(mftbmp_ni,
fs/ntfs/mft.c
1088
if (IS_ERR(rl) || unlikely(!rl->length || rl->lcn < 0)) {
fs/ntfs/mft.c
1092
if (!IS_ERR(rl))
fs/ntfs/mft.c
1095
ret = PTR_ERR(rl);
fs/ntfs/mft.c
1098
lcn = rl->lcn + rl->length;
fs/ntfs/mft.c
1128
rl->length++;
fs/ntfs/mft.c
1129
rl[1].vcn++;
fs/ntfs/mft.c
1138
rl2 = ntfs_cluster_alloc(vol, rl[1].vcn, 1, lcn, DATA_ZONE,
fs/ntfs/mft.c
1146
rl = ntfs_runlists_merge(&mftbmp_ni->runlist, rl2, 0, &new_rl_count);
fs/ntfs/mft.c
1147
if (IS_ERR(rl)) {
fs/ntfs/mft.c
1156
return PTR_ERR(rl);
fs/ntfs/mft.c
1158
mftbmp_ni->runlist.rl = rl;
fs/ntfs/mft.c
1163
for (; rl[1].length; rl++)
fs/ntfs/mft.c
1183
mftbmp_ni->name_len, CASE_SENSITIVE, rl[1].vcn, NULL,
fs/ntfs/mft.c
1195
for (rl2 = rl; rl2 > mftbmp_ni->runlist.rl; rl2--) {
fs/ntfs/mft.c
1234
a->data.non_resident.highest_vcn = cpu_to_le64(rl[1].vcn - 1);
fs/ntfs/mft.c
1274
mftbmp_ni->name_len, CASE_SENSITIVE, rl[1].vcn, NULL,
fs/ntfs/mft.c
1292
a->data.non_resident.highest_vcn = cpu_to_le64(rl[1].vcn - 2);
fs/ntfs/mft.c
1296
rl->length--;
fs/ntfs/mft.c
1297
rl[1].vcn--;
fs/ntfs/mft.c
1299
lcn = rl->lcn;
fs/ntfs/mft.c
1301
rl->lcn = rl[1].lcn;
fs/ntfs/mft.c
1302
rl->length = 0;
fs/ntfs/mft.c
1493
struct runlist_element *rl, *rl2;
fs/ntfs/mft.c
1513
rl = ntfs_attr_find_vcn_nolock(mft_ni,
fs/ntfs/mft.c
1515
if (IS_ERR(rl) || unlikely(!rl->length || rl->lcn < 0)) {
fs/ntfs/mft.c
1519
if (!IS_ERR(rl))
fs/ntfs/mft.c
1522
ret = PTR_ERR(rl);
fs/ntfs/mft.c
1525
lcn = rl->lcn + rl->length;
fs/ntfs/mft.c
1552
old_last_vcn = rl[1].vcn;
fs/ntfs/mft.c
1583
rl = ntfs_runlists_merge(&mft_ni->runlist, rl2, 0, &new_rl_count);
fs/ntfs/mft.c
1584
if (IS_ERR(rl)) {
fs/ntfs/mft.c
1593
return PTR_ERR(rl);
fs/ntfs/mft.c
1595
mft_ni->runlist.rl = rl;
fs/ntfs/mft.c
1599
for (; rl[1].length; rl++)
fs/ntfs/mft.c
1618
CASE_SENSITIVE, rl[1].vcn, NULL, 0, ctx);
fs/ntfs/mft.c
1630
for (rl2 = rl; rl2 > mft_ni->runlist.rl; rl2--) {
fs/ntfs/mft.c
1671
a->data.non_resident.highest_vcn = cpu_to_le64(rl[1].vcn - 1);
fs/ntfs/mft.c
1711
CASE_SENSITIVE, rl[1].vcn, NULL, 0, ctx)) {
fs/ntfs/mft.c
2704
struct runlist_element *rl;
fs/ntfs/mft.c
2707
rl = ntfs_attr_vcn_to_rl(ni, vcn_off, &lcn);
fs/ntfs/mft.c
2708
if (!IS_ERR(rl))
fs/ntfs/mft.c
2709
rl_len = rl->length - (vcn_off - rl->vcn);
fs/ntfs/mft.c
2711
if (IS_ERR(rl) || lcn < 0) {
fs/ntfs/runlist.c
1003
s64 ntfs_rl_vcn_to_lcn(const struct runlist_element *rl, const s64 vcn)
fs/ntfs/runlist.c
1012
if (unlikely(!rl))
fs/ntfs/runlist.c
1016
if (unlikely(vcn < rl[0].vcn))
fs/ntfs/runlist.c
1019
for (i = 0; likely(rl[i].length); i++) {
fs/ntfs/runlist.c
1020
if (vcn < rl[i+1].vcn) {
fs/ntfs/runlist.c
1021
if (likely(rl[i].lcn >= 0))
fs/ntfs/runlist.c
1022
return rl[i].lcn + (vcn - rl[i].vcn);
fs/ntfs/runlist.c
1023
return rl[i].lcn;
fs/ntfs/runlist.c
1030
if (likely(rl[i].lcn < 0))
fs/ntfs/runlist.c
1031
return rl[i].lcn;
fs/ntfs/runlist.c
1049
struct runlist_element *ntfs_rl_find_vcn_nolock(struct runlist_element *rl, const s64 vcn)
fs/ntfs/runlist.c
1051
if (unlikely(!rl || vcn < rl[0].vcn))
fs/ntfs/runlist.c
1053
while (likely(rl->length)) {
fs/ntfs/runlist.c
1054
if (unlikely(vcn < rl[1].vcn)) {
fs/ntfs/runlist.c
1055
if (likely(rl->lcn >= LCN_HOLE))
fs/ntfs/runlist.c
1056
return rl;
fs/ntfs/runlist.c
1059
rl++;
fs/ntfs/runlist.c
1061
if (likely(rl->lcn == LCN_ENOENT))
fs/ntfs/runlist.c
1062
return rl;
fs/ntfs/runlist.c
1121
const struct runlist_element *rl, const s64 first_vcn,
fs/ntfs/runlist.c
1134
if (!rl) {
fs/ntfs/runlist.c
1142
while (rl->length && first_vcn >= rl[1].vcn)
fs/ntfs/runlist.c
1143
rl++;
fs/ntfs/runlist.c
1144
if (unlikely((!rl->length && first_vcn > rl->vcn) ||
fs/ntfs/runlist.c
1145
first_vcn < rl->vcn))
fs/ntfs/runlist.c
1151
if (first_vcn > rl->vcn) {
fs/ntfs/runlist.c
1152
s64 delta, length = rl->length;
fs/ntfs/runlist.c
1155
if (unlikely(length < 0 || rl->lcn < LCN_HOLE))
fs/ntfs/runlist.c
1161
if (unlikely(last_vcn >= 0 && rl[1].vcn > last_vcn)) {
fs/ntfs/runlist.c
1164
if (unlikely(rl[1].vcn > s1))
fs/ntfs/runlist.c
1165
length = s1 - rl->vcn;
fs/ntfs/runlist.c
1168
delta = first_vcn - rl->vcn;
fs/ntfs/runlist.c
1178
if (likely(rl->lcn >= 0 || vol->major_ver < 3)) {
fs/ntfs/runlist.c
1179
prev_lcn = rl->lcn;
fs/ntfs/runlist.c
118
static inline struct runlist_element *ntfs_rl_realloc_nofail(struct runlist_element *rl,
fs/ntfs/runlist.c
1180
if (likely(rl->lcn >= 0))
fs/ntfs/runlist.c
1186
rl++;
fs/ntfs/runlist.c
1189
for (; rl->length && !the_end; rl++) {
fs/ntfs/runlist.c
1190
s64 length = rl->length;
fs/ntfs/runlist.c
1192
if (unlikely(length < 0 || rl->lcn < LCN_HOLE))
fs/ntfs/runlist.c
1198
if (unlikely(last_vcn >= 0 && rl[1].vcn > last_vcn)) {
fs/ntfs/runlist.c
1201
if (unlikely(rl[1].vcn > s1))
fs/ntfs/runlist.c
1202
length = s1 - rl->vcn;
fs/ntfs/runlist.c
1214
if (likely(rl->lcn >= 0 || vol->major_ver < 3)) {
fs/ntfs/runlist.c
1216
rls += ntfs_get_nr_significant_bytes(rl->lcn -
fs/ntfs/runlist.c
1218
prev_lcn = rl->lcn;
fs/ntfs/runlist.c
1226
if (rl->lcn == LCN_RL_NOT_MAPPED)
fs/ntfs/runlist.c
123
old_size = old_size * sizeof(*rl);
fs/ntfs/runlist.c
124
new_size = new_size * sizeof(*rl);
fs/ntfs/runlist.c
126
return rl;
fs/ntfs/runlist.c
129
if (likely(rl != NULL)) {
fs/ntfs/runlist.c
132
memcpy(new_rl, rl, old_size);
fs/ntfs/runlist.c
1325
const int dst_len, const struct runlist_element *rl,
fs/ntfs/runlist.c
133
kvfree(rl);
fs/ntfs/runlist.c
1341
if (!rl) {
fs/ntfs/runlist.c
1350
while (rl->length && first_vcn >= rl[1].vcn)
fs/ntfs/runlist.c
1351
rl++;
fs/ntfs/runlist.c
1352
if (unlikely((!rl->length && first_vcn > rl->vcn) ||
fs/ntfs/runlist.c
1353
first_vcn < rl->vcn))
fs/ntfs/runlist.c
1362
if (first_vcn > rl->vcn) {
fs/ntfs/runlist.c
1363
s64 delta, length = rl->length;
fs/ntfs/runlist.c
1366
if (unlikely(length < 0 || rl->lcn < LCN_HOLE))
fs/ntfs/runlist.c
1372
if (unlikely(last_vcn >= 0 && rl[1].vcn > last_vcn)) {
fs/ntfs/runlist.c
1375
if (unlikely(rl[1].vcn > s1))
fs/ntfs/runlist.c
1376
length = s1 - rl->vcn;
fs/ntfs/runlist.c
1379
delta = first_vcn - rl->vcn;
fs/ntfs/runlist.c
1391
if (likely(rl->lcn >= 0 || vol->major_ver < 3)) {
fs/ntfs/runlist.c
1392
prev_lcn = rl->lcn;
fs/ntfs/runlist.c
1393
if (likely(rl->lcn >= 0))
fs/ntfs/runlist.c
1410
rl++;
fs/ntfs/runlist.c
1413
for (; rl->length && !the_end; rl++) {
fs/ntfs/runlist.c
1414
s64 length = rl->length;
fs/ntfs/runlist.c
1416
if (unlikely(length < 0 || rl->lcn < LCN_HOLE))
fs/ntfs/runlist.c
1422
if (unlikely(last_vcn >= 0 && rl[1].vcn > last_vcn)) {
fs/ntfs/runlist.c
1425
if (unlikely(rl[1].vcn > s1))
fs/ntfs/runlist.c
1426
length = s1 - rl->vcn;
fs/ntfs/runlist.c
1440
if (likely(rl->lcn >= 0 || vol->major_ver < 3)) {
fs/ntfs/runlist.c
1443
len_len, dst_max, rl->lcn - prev_lcn);
fs/ntfs/runlist.c
1446
prev_lcn = rl->lcn;
fs/ntfs/runlist.c
1448
if (rl->lcn == LCN_DELALLOC)
fs/ntfs/runlist.c
1449
de_cnt += rl->length;
fs/ntfs/runlist.c
1467
*stop_vcn = rl->vcn;
fs/ntfs/runlist.c
1469
*stop_rl = (struct runlist_element *)rl;
fs/ntfs/runlist.c
1474
if (rl->lcn == LCN_RL_NOT_MAPPED)
fs/ntfs/runlist.c
1508
struct runlist_element *rl;
fs/ntfs/runlist.c
1516
rl = runlist->rl;
fs/ntfs/runlist.c
1517
if (new_length < rl->vcn)
fs/ntfs/runlist.c
1521
while (likely(rl->length && new_length >= rl[1].vcn))
fs/ntfs/runlist.c
1522
rl++;
fs/ntfs/runlist.c
1527
if (rl->length) {
fs/ntfs/runlist.c
1533
trl = rl + 1;
fs/ntfs/runlist.c
1536
old_size = trl - runlist->rl + 1;
fs/ntfs/runlist.c
1538
rl->length = new_length - rl->vcn;
fs/ntfs/runlist.c
1544
if (rl->length) {
fs/ntfs/runlist.c
1545
rl++;
fs/ntfs/runlist.c
1546
if (!rl->length)
fs/ntfs/runlist.c
1548
rl->vcn = new_length;
fs/ntfs/runlist.c
1549
rl->length = 0;
fs/ntfs/runlist.c
1551
rl->lcn = LCN_ENOENT;
fs/ntfs/runlist.c
1552
runlist->count = rl - runlist->rl + 1;
fs/ntfs/runlist.c
1555
int new_size = rl - runlist->rl + 1;
fs/ntfs/runlist.c
1557
rl = ntfs_rl_realloc(runlist->rl, old_size, new_size);
fs/ntfs/runlist.c
1558
if (IS_ERR(rl))
fs/ntfs/runlist.c
1562
runlist->rl = rl;
fs/ntfs/runlist.c
1564
} else if (likely(/* !rl->length && */ new_length > rl->vcn)) {
fs/ntfs/runlist.c
1571
if ((rl > runlist->rl) && ((rl - 1)->lcn == LCN_HOLE))
fs/ntfs/runlist.c
1572
(rl - 1)->length = new_length - (rl - 1)->vcn;
fs/ntfs/runlist.c
1575
old_size = rl - runlist->rl + 1;
fs/ntfs/runlist.c
1577
rl = ntfs_rl_realloc(runlist->rl, old_size,
fs/ntfs/runlist.c
1579
if (IS_ERR(rl)) {
fs/ntfs/runlist.c
1581
return PTR_ERR(rl);
fs/ntfs/runlist.c
1583
runlist->rl = rl;
fs/ntfs/runlist.c
1588
rl += old_size - 1;
fs/ntfs/runlist.c
1590
rl->lcn = LCN_HOLE;
fs/ntfs/runlist.c
1591
rl->length = new_length - rl->vcn;
fs/ntfs/runlist.c
1593
rl++;
fs/ntfs/runlist.c
1594
rl->length = 0;
fs/ntfs/runlist.c
1597
rl->vcn = new_length;
fs/ntfs/runlist.c
1598
rl->lcn = LCN_ENOENT;
fs/ntfs/runlist.c
1601
rl->lcn = LCN_ENOENT;
fs/ntfs/runlist.c
1613
int ntfs_rl_sparse(struct runlist_element *rl)
fs/ntfs/runlist.c
1617
if (!rl)
fs/ntfs/runlist.c
1620
for (rlc = rl; rlc->length; rlc++)
fs/ntfs/runlist.c
1638
s64 ntfs_rl_get_compressed_size(struct ntfs_volume *vol, struct runlist_element *rl)
fs/ntfs/runlist.c
1643
if (!rl)
fs/ntfs/runlist.c
1646
for (rlc = rl; rlc->length; rlc++) {
fs/ntfs/runlist.c
1769
struct runlist_element *rl, *rl_3rd;
fs/ntfs/runlist.c
1780
rl = &new_rl[new_1st_cnt + new_2nd_cnt];
fs/ntfs/runlist.c
1783
rl = &new_rl[new_1st_cnt + new_2nd_cnt - 1];
fs/ntfs/runlist.c
1786
rl_3rd->vcn = rl->vcn + rl->length;
fs/ntfs/runlist.c
1789
rl = rl_3rd;
fs/ntfs/runlist.c
529
struct runlist_element *drl = d_runlist->rl, *rl;
fs/ntfs/runlist.c
591
rl = __ntfs_attr_find_vcn_nolock(d_runlist, srl[sstart].vcn);
fs/ntfs/runlist.c
592
if (IS_ERR(rl))
fs/ntfs/runlist.c
595
di = (int)(rl - d_runlist->rl);
fs/ntfs/runlist.c
738
struct runlist_element *rl, *new_rl; /* The output runlist. */
fs/ntfs/runlist.c
74
struct runlist_element *ntfs_rl_realloc(struct runlist_element *rl,
fs/ntfs/runlist.c
774
rl = kvzalloc(rlsize = PAGE_SIZE, GFP_NOFS);
fs/ntfs/runlist.c
775
if (unlikely(!rl))
fs/ntfs/runlist.c
779
rl->vcn = 0;
fs/ntfs/runlist.c
780
rl->lcn = LCN_RL_NOT_MAPPED;
fs/ntfs/runlist.c
781
rl->length = vcn;
fs/ntfs/runlist.c
79
old_size = old_size * sizeof(*rl);
fs/ntfs/runlist.c
790
if (((rlpos + 3) * sizeof(*rl)) > rlsize) {
fs/ntfs/runlist.c
795
kvfree(rl);
fs/ntfs/runlist.c
798
memcpy(rl2, rl, rlsize);
fs/ntfs/runlist.c
799
kvfree(rl);
fs/ntfs/runlist.c
80
new_size = new_size * sizeof(*rl);
fs/ntfs/runlist.c
800
rl = rl2;
fs/ntfs/runlist.c
804
rl[rlpos].vcn = vcn;
fs/ntfs/runlist.c
82
return rl;
fs/ntfs/runlist.c
834
rl[rlpos].length = deltaxcn;
fs/ntfs/runlist.c
852
rl[rlpos].lcn = LCN_HOLE;
fs/ntfs/runlist.c
88
if (likely(rl != NULL)) {
fs/ntfs/runlist.c
890
if ((lcn != -1) && !rl[rlpos].length) {
fs/ntfs/runlist.c
898
rl[rlpos].lcn = lcn;
fs/ntfs/runlist.c
901
if (rl[rlpos].length)
fs/ntfs/runlist.c
91
memcpy(new_rl, rl, old_size);
fs/ntfs/runlist.c
92
kvfree(rl);
fs/ntfs/runlist.c
939
rl[rlpos].vcn = vcn;
fs/ntfs/runlist.c
940
vcn += rl[rlpos].length = max_cluster -
fs/ntfs/runlist.c
942
rl[rlpos].lcn = LCN_RL_NOT_MAPPED;
fs/ntfs/runlist.c
951
rl[rlpos].lcn = LCN_ENOENT;
fs/ntfs/runlist.c
953
rl[rlpos].lcn = LCN_RL_NOT_MAPPED;
fs/ntfs/runlist.c
956
rl[rlpos].vcn = vcn;
fs/ntfs/runlist.c
957
rl[rlpos].length = (s64)0;
fs/ntfs/runlist.c
959
if (!old_runlist || !old_runlist->rl) {
fs/ntfs/runlist.c
962
ntfs_debug_dump_runlist(rl);
fs/ntfs/runlist.c
963
return rl;
fs/ntfs/runlist.c
966
new_rl = ntfs_runlists_merge(old_runlist, rl, rlpos + 1, new_rl_count);
fs/ntfs/runlist.c
969
kvfree(rl);
fs/ntfs/runlist.c
975
kvfree(rl);
fs/ntfs/runlist.h
44
struct runlist_element *rl;
fs/ntfs/runlist.h
50
static inline void ntfs_init_runlist(struct runlist *rl)
fs/ntfs/runlist.h
52
rl->rl = NULL;
fs/ntfs/runlist.h
53
init_rwsem(&rl->lock);
fs/ntfs/runlist.h
54
rl->count = 0;
fs/ntfs/runlist.h
55
rl->rl_hint = -1;
fs/ntfs/runlist.h
74
s64 ntfs_rl_vcn_to_lcn(const struct runlist_element *rl, const s64 vcn);
fs/ntfs/runlist.h
75
struct runlist_element *ntfs_rl_find_vcn_nolock(struct runlist_element *rl, const s64 vcn);
fs/ntfs/runlist.h
77
const struct runlist_element *rl, const s64 first_vcn,
fs/ntfs/runlist.h
80
const int dst_len, const struct runlist_element *rl,
fs/ntfs/runlist.h
85
int ntfs_rl_sparse(struct runlist_element *rl);
fs/ntfs/runlist.h
86
s64 ntfs_rl_get_compressed_size(struct ntfs_volume *vol, struct runlist_element *rl);
fs/ntfs/runlist.h
95
struct runlist_element *ntfs_rl_realloc(struct runlist_element *rl, int old_size,
fs/ntfs/super.c
1067
rl = mirr_ni->runlist.rl;
fs/ntfs/super.c
1071
if (rl2[i].vcn != rl[i].vcn || rl2[i].lcn != rl[i].lcn ||
fs/ntfs/super.c
1072
rl2[i].length != rl[i].length) {
fs/ntfs/super.c
963
struct runlist_element *rl, rl2[2];
fs/ocfs2/refcounttree.c
1242
struct ocfs2_refcount_list *rl = &rb->rf_records;
fs/ocfs2/refcounttree.c
1243
struct ocfs2_refcount_rec *rec = &rl->rl_recs[index];
fs/ocfs2/refcounttree.c
1258
if (index != le16_to_cpu(rl->rl_used) - 1) {
fs/ocfs2/refcounttree.c
1260
(le16_to_cpu(rl->rl_used) - index - 1) *
fs/ocfs2/refcounttree.c
1262
memset(&rl->rl_recs[le16_to_cpu(rl->rl_used) - 1],
fs/ocfs2/refcounttree.c
1266
le16_add_cpu(&rl->rl_used, -1);
fs/ocfs2/refcounttree.c
1405
static int ocfs2_find_refcount_split_pos(struct ocfs2_refcount_list *rl,
fs/ocfs2/refcounttree.c
1408
int num_used = le16_to_cpu(rl->rl_used);
fs/ocfs2/refcounttree.c
1414
&rl->rl_recs[middle - delta - 1],
fs/ocfs2/refcounttree.c
1415
&rl->rl_recs[middle - delta])) {
fs/ocfs2/refcounttree.c
1426
&rl->rl_recs[middle + delta],
fs/ocfs2/refcounttree.c
1427
&rl->rl_recs[middle + delta + 1])) {
fs/ocfs2/refcounttree.c
1436
*split_pos = ocfs2_get_ref_rec_low_cpos(&rl->rl_recs[*split_index]);
fs/ocfs2/refcounttree.c
1448
struct ocfs2_refcount_list *rl = &rb->rf_records;
fs/ocfs2/refcounttree.c
1455
le16_to_cpu(rl->rl_count), le16_to_cpu(rl->rl_used));
fs/ocfs2/refcounttree.c
1469
sort(&rl->rl_recs, le16_to_cpu(rl->rl_used),
fs/ocfs2/refcounttree.c
1473
ret = ocfs2_find_refcount_split_pos(rl, &cpos, &split_index);
fs/ocfs2/refcounttree.c
1482
num_moved = le16_to_cpu(rl->rl_used) - split_index;
fs/ocfs2/refcounttree.c
1483
memcpy(new_rl->rl_recs, &rl->rl_recs[split_index],
fs/ocfs2/refcounttree.c
1487
memset(&rl->rl_recs[split_index], 0,
fs/ocfs2/refcounttree.c
1491
le16_add_cpu(&rl->rl_used, -num_moved);
fs/ocfs2/refcounttree.c
1494
sort(&rl->rl_recs, le16_to_cpu(rl->rl_used),
fs/qnx4/inode.c
161
int rd, rl;
fs/qnx4/inode.c
168
rl = le32_to_cpu(s->RootDir.di_first_xtnt.xtnt_size);
fs/qnx4/inode.c
169
for (j = 0; j < rl; j++) {
include/linux/blk-mq.h
251
static inline int rq_list_empty(const struct rq_list *rl)
include/linux/blk-mq.h
253
return rl->head == NULL;
include/linux/blk-mq.h
256
static inline void rq_list_init(struct rq_list *rl)
include/linux/blk-mq.h
258
rl->head = NULL;
include/linux/blk-mq.h
259
rl->tail = NULL;
include/linux/blk-mq.h
265
if (rl->tail)
include/linux/blk-mq.h
266
rl->tail->rq_next = rq;
include/linux/blk-mq.h
268
rl->head = rq;
include/linux/blk-mq.h
269
rl->tail = rq;
include/linux/blk-mq.h
274
rq->rq_next = rl->head;
include/linux/blk-mq.h
275
rl->head = rq;
include/linux/blk-mq.h
276
if (!rl->tail)
include/linux/blk-mq.h
277
rl->tail = rq;
include/linux/blk-mq.h
280
static inline struct request *rq_list_pop(struct rq_list *rl)
include/linux/blk-mq.h
282
struct request *rq = rl->head;
include/linux/blk-mq.h
285
rl->head = rl->head->rq_next;
include/linux/blk-mq.h
286
if (!rl->head)
include/linux/blk-mq.h
287
rl->tail = NULL;
include/linux/blk-mq.h
294
static inline struct request *rq_list_peek(struct rq_list *rl)
include/linux/blk-mq.h
296
return rl->head;
include/linux/blk-mq.h
300
for (pos = rq_list_peek((rl)); (pos); pos = pos->rq_next)
include/linux/blk-mq.h
302
#define rq_list_for_each_safe(rl, pos, nxt) \
include/linux/blk-mq.h
303
for (pos = rq_list_peek((rl)), nxt = pos->rq_next; \
include/linux/jump_label_ratelimit.h
41
jump_label_rate_limit(struct static_key_deferred *key, unsigned long rl);
include/linux/jump_label_ratelimit.h
45
#define DEFINE_STATIC_KEY_DEFERRED_TRUE(name, rl) \
include/linux/jump_label_ratelimit.h
48
.timeout = (rl), \
include/linux/jump_label_ratelimit.h
54
#define DEFINE_STATIC_KEY_DEFERRED_FALSE(name, rl) \
include/linux/jump_label_ratelimit.h
57
.timeout = (rl), \
include/linux/jump_label_ratelimit.h
73
#define DEFINE_STATIC_KEY_DEFERRED_TRUE(name, rl) \
include/linux/jump_label_ratelimit.h
75
#define DEFINE_STATIC_KEY_DEFERRED_FALSE(name, rl) \
include/linux/jump_label_ratelimit.h
91
unsigned long rl)
include/linux/math64.h
215
} rl, rm, rn, rh, a0, b0;
include/linux/math64.h
221
rl.ll = mul_u32_u32(a0.l.low, b0.l.low);
include/linux/math64.h
231
rl.l.high = c = (u64)rl.l.high + rm.l.low + rn.l.low;
include/linux/math64.h
240
return rl.ll;
include/linux/math64.h
242
return (rl.ll >> shift) | (rh.ll << (64 - shift));
include/linux/math64.h
279
} u, rl, rh;
include/linux/math64.h
282
rl.ll = mul_u32_u32(u.l.low, mul);
include/linux/math64.h
283
rh.ll = mul_u32_u32(u.l.high, mul) + rl.l.high;
include/linux/math64.h
286
rl.l.high = do_div(rh.ll, divisor);
include/linux/math64.h
289
do_div(rl.ll, divisor);
include/linux/math64.h
291
rl.l.high = rh.l.low;
include/linux/math64.h
292
return rl.ll;
include/linux/mlx5/driver.h
1096
struct mlx5_rate_limit *rl);
include/linux/mlx5/driver.h
1097
void mlx5_rl_remove_rate(struct mlx5_core_dev *dev, struct mlx5_rate_limit *rl);
include/math-emu/op-2.h
147
#define __FP_FRAC_ADD_2(rh, rl, xh, xl, yh, yl) \
include/math-emu/op-2.h
148
(rh = xh + yh + ((rl = xl + yl) < xl))
include/math-emu/op-2.h
151
#define __FP_FRAC_SUB_2(rh, rl, xh, xl, yh, yl) \
include/math-emu/op-2.h
152
(rh = xh - yh - ((rl = xl - yl) > xl))
io_uring/io_uring.c
2088
unsigned int cq_entries, struct io_rings_layout *rl)
io_uring/io_uring.c
2103
rl->sq_array_offset = SIZE_MAX;
io_uring/io_uring.c
2109
rl->sq_size = array_size(sqe_size, sq_entries);
io_uring/io_uring.c
2110
if (rl->sq_size == SIZE_MAX)
io_uring/io_uring.c
2128
rl->sq_array_offset = off;
io_uring/io_uring.c
2136
rl->rings_size = off;
io_uring/io_uring.c
2730
struct io_rings_layout *rl = &config->layout;
io_uring/io_uring.c
2740
rd.size = PAGE_ALIGN(rl->rings_size);
io_uring/io_uring.c
2751
ctx->sq_array = (u32 *)((char *)rings + rl->sq_array_offset);
io_uring/io_uring.c
2754
rd.size = PAGE_ALIGN(rl->sq_size);
io_uring/register.c
505
struct io_rings_layout *rl = &config.layout;
io_uring/register.c
527
rd.size = PAGE_ALIGN(rl->rings_size);
io_uring/register.c
557
rd.size = PAGE_ALIGN(rl->sq_size);
io_uring/register.c
595
n_sq_array = (u32 *)((char *)n.rings + rl->sq_array_offset);
kernel/jump_label.c
367
unsigned long rl)
kernel/jump_label.c
370
key->timeout = rl;
sound/soc/codecs/rt1305.c
1058
regmap_read(rt1305->regmap, RT1305_PR_BASE + 0x56, &rl);
sound/soc/codecs/rt1305.c
1059
rhl = (rh << 16) | rl;
sound/soc/codecs/rt1305.c
1062
pr_debug("Left_rhl = 0x%x rh=0x%x rl=0x%x\n", rhl, rh, rl);
sound/soc/codecs/rt1305.c
1075
regmap_read(rt1305->regmap, RT1305_PR_BASE + 0x56, &rl);
sound/soc/codecs/rt1305.c
1076
rhl = (rh << 16) | rl;
sound/soc/codecs/rt1305.c
1079
pr_debug("Right_rhl = 0x%x rh=0x%x rl=0x%x\n", rhl, rh, rl);
sound/soc/codecs/rt1305.c
993
unsigned int rh, rl, rhl, r0ohm;
sound/usb/usx2y/usbus428ctldefs.h
68
rl;
tools/perf/bench/epoll-ctl.c
319
struct rlimit rl, prevrl;
tools/perf/bench/epoll-ctl.c
358
rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50;
tools/perf/bench/epoll-ctl.c
360
(uint64_t)prevrl.rlim_max, (uint64_t)rl.rlim_max);
tools/perf/bench/epoll-ctl.c
361
if (setrlimit(RLIMIT_NOFILE, &rl) < 0)
tools/perf/bench/epoll-wait.c
439
struct rlimit rl, prevrl;
tools/perf/bench/epoll-wait.c
483
rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50;
tools/perf/bench/epoll-wait.c
485
(uint64_t)prevrl.rlim_max, (uint64_t)rl.rlim_max);
tools/perf/bench/epoll-wait.c
486
if (setrlimit(RLIMIT_NOFILE, &rl) < 0)
tools/perf/util/print-events.c
212
static struct rb_node *mep_new(struct rblist *rl __maybe_unused, const void *entry)
tools/perf/util/print-events.c
223
static void mep_delete(struct rblist *rl __maybe_unused,
tools/testing/selftests/kvm/lib/kvm_util.c
446
struct rlimit rl;
tools/testing/selftests/kvm/lib/kvm_util.c
452
TEST_ASSERT(!getrlimit(RLIMIT_NOFILE, &rl), "getrlimit() failed!");
tools/testing/selftests/kvm/lib/kvm_util.c
454
if (rl.rlim_cur < nr_fds_wanted) {
tools/testing/selftests/kvm/lib/kvm_util.c
455
rl.rlim_cur = nr_fds_wanted;
tools/testing/selftests/kvm/lib/kvm_util.c
456
if (rl.rlim_max < nr_fds_wanted) {
tools/testing/selftests/kvm/lib/kvm_util.c
457
int old_rlim_max = rl.rlim_max;
tools/testing/selftests/kvm/lib/kvm_util.c
459
rl.rlim_max = nr_fds_wanted;
tools/testing/selftests/kvm/lib/kvm_util.c
460
__TEST_REQUIRE(setrlimit(RLIMIT_NOFILE, &rl) >= 0,
tools/testing/selftests/kvm/lib/kvm_util.c
464
TEST_ASSERT(!setrlimit(RLIMIT_NOFILE, &rl), "setrlimit() failed!");
tools/testing/selftests/landlock/fs_test.c
4747
struct rlimit rl = {
tools/testing/selftests/landlock/fs_test.c
4752
ASSERT_EQ(0, setrlimit(RLIMIT_CORE, &rl));