Home
last modified time | relevance | path

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

12345

/openbmc/linux/fs/ntfs/
H A Drunlist.c60 static inline runlist_element *ntfs_rl_realloc(runlist_element *rl, in ntfs_rl_realloc() argument
65 old_size = PAGE_ALIGN(old_size * sizeof(*rl)); in ntfs_rl_realloc()
66 new_size = PAGE_ALIGN(new_size * sizeof(*rl)); in ntfs_rl_realloc()
68 return rl; in ntfs_rl_realloc()
74 if (likely(rl != NULL)) { in ntfs_rl_realloc()
77 memcpy(new_rl, rl, old_size); in ntfs_rl_realloc()
78 ntfs_free(rl); in ntfs_rl_realloc()
106 static inline runlist_element *ntfs_rl_realloc_nofail(runlist_element *rl, in ntfs_rl_realloc_nofail() argument
111 old_size = PAGE_ALIGN(old_size * sizeof(*rl)); in ntfs_rl_realloc_nofail()
112 new_size = PAGE_ALIGN(new_size * sizeof(*rl)); in ntfs_rl_realloc_nofail()
[all …]
H A Dlcnalloc.c37 const runlist_element *rl) in ntfs_cluster_free_from_rl_nolock() argument
43 if (!rl) in ntfs_cluster_free_from_rl_nolock()
45 for (; rl->length; rl++) { in ntfs_cluster_free_from_rl_nolock()
48 if (rl->lcn < 0) in ntfs_cluster_free_from_rl_nolock()
50 err = ntfs_bitmap_clear_run(lcnbmp_vi, rl->lcn, rl->length); in ntfs_cluster_free_from_rl_nolock()
142 runlist_element *rl = NULL; in ntfs_cluster_alloc() local
320 if ((rlpos + 2) * sizeof(*rl) > rlsize) { in ntfs_cluster_alloc()
324 if (!rl) in ntfs_cluster_alloc()
336 memcpy(rl2, rl, rlsize); in ntfs_cluster_alloc()
337 ntfs_free(rl); in ntfs_cluster_alloc()
[all …]
H A Ddebug.c120 void ntfs_debug_dump_runlist(const runlist_element *rl) in ntfs_debug_dump_runlist() argument
129 if (!rl) { in ntfs_debug_dump_runlist()
135 LCN lcn = (rl + i)->lcn; in ntfs_debug_dump_runlist()
143 (long long)(rl + i)->vcn, lcn_str[index], in ntfs_debug_dump_runlist()
144 (long long)(rl + i)->length, in ntfs_debug_dump_runlist()
145 (rl + i)->length ? "" : in ntfs_debug_dump_runlist()
149 (long long)(rl + i)->vcn, in ntfs_debug_dump_runlist()
150 (long long)(rl + i)->lcn, in ntfs_debug_dump_runlist()
151 (long long)(rl + i)->length, in ntfs_debug_dump_runlist()
152 (rl + i)->length ? "" : in ntfs_debug_dump_runlist()
[all …]
H A Drunlist.h41 runlist_element *rl; member
45 static inline void ntfs_init_runlist(runlist *rl) in ntfs_init_runlist() argument
47 rl->rl = NULL; in ntfs_init_runlist()
48 init_rwsem(&rl->lock); in ntfs_init_runlist()
65 extern LCN ntfs_rl_vcn_to_lcn(const runlist_element *rl, const VCN vcn);
69 extern runlist_element *ntfs_rl_find_vcn_nolock(runlist_element *rl,
73 const runlist_element *rl, const VCN first_vcn,
77 const int dst_len, const runlist_element *rl,
H A Dattrib.c77 runlist_element *rl; in ntfs_map_runlist_nolock() local
173 rl = ntfs_mapping_pairs_decompress(ni->vol, a, ni->runlist.rl); in ntfs_map_runlist_nolock()
174 if (IS_ERR(rl)) in ntfs_map_runlist_nolock()
175 err = PTR_ERR(rl); in ntfs_map_runlist_nolock()
177 ni->runlist.rl = rl; in ntfs_map_runlist_nolock()
290 if (likely(ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn) <= in ntfs_map_runlist()
340 if (!ni->runlist.rl) { in ntfs_attr_vcn_to_lcn_nolock()
350 lcn = ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn); in ntfs_attr_vcn_to_lcn_nolock()
364 if (unlikely(ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn) != in ntfs_attr_vcn_to_lcn_nolock()
454 runlist_element *rl; in ntfs_attr_find_vcn_nolock() local
[all …]
H A Dlogfile.c718 runlist_element *rl; in ntfs_empty_logfile() local
745 rl = log_ni->runlist.rl; in ntfs_empty_logfile()
746 if (unlikely(!rl || vcn < rl->vcn || !rl->length)) { in ntfs_empty_logfile()
754 rl = log_ni->runlist.rl; in ntfs_empty_logfile()
755 BUG_ON(!rl || vcn < rl->vcn || !rl->length); in ntfs_empty_logfile()
758 while (rl->length && vcn >= rl[1].vcn) in ntfs_empty_logfile()
759 rl++; in ntfs_empty_logfile()
769 lcn = rl->lcn; in ntfs_empty_logfile()
771 vcn = rl->vcn; in ntfs_empty_logfile()
775 if (unlikely(!rl->length || lcn < LCN_HOLE)) in ntfs_empty_logfile()
[all …]
H A Dmft.c463 runlist_element *rl; in ntfs_sync_mft_mirror() local
511 rl = NULL; in ntfs_sync_mft_mirror()
535 if (!rl) { in ntfs_sync_mft_mirror()
538 rl = NTFS_I(vol->mftmirr_ino)->runlist.rl; in ntfs_sync_mft_mirror()
543 BUG_ON(!rl); in ntfs_sync_mft_mirror()
546 while (rl->length && rl[1].vcn <= vcn) in ntfs_sync_mft_mirror()
547 rl++; in ntfs_sync_mft_mirror()
548 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_sync_mft_mirror()
573 if (unlikely(rl)) in ntfs_sync_mft_mirror()
669 runlist_element *rl; in write_mft_record_nolock() local
[all …]
H A Daops.c173 runlist_element *rl; in ntfs_read_block() local
186 BUG_ON(!ni->runlist.rl && !ni->mft_no && !NInoAttr(ni)); in ntfs_read_block()
225 rl = NULL; in ntfs_read_block()
246 if (!rl) { in ntfs_read_block()
249 rl = ni->runlist.rl; in ntfs_read_block()
251 if (likely(rl != NULL)) { in ntfs_read_block()
253 while (rl->length && rl[1].vcn <= vcn) in ntfs_read_block()
254 rl++; in ntfs_read_block()
255 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_read_block()
286 rl = NULL; in ntfs_read_block()
[all …]
/openbmc/linux/drivers/s390/scsi/
H A Dzfcp_reqlist.h43 struct zfcp_reqlist *rl; in zfcp_reqlist_alloc() local
45 rl = kzalloc(sizeof(struct zfcp_reqlist), GFP_KERNEL); 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 …]
/openbmc/u-boot/drivers/bios_emulator/x86emu/
H A Dops2.c169 int mod, rl, rh; in x86emuOp2_set_byte() local
245 FETCH_DECODE_MODRM(mod, rh, rl); in x86emuOp2_set_byte()
247 destoffset = decode_rmXX_address(mod, rl); in x86emuOp2_set_byte()
251 destreg = DECODE_RM_BYTE_REGISTER(rl); in x86emuOp2_set_byte()
293 int mod, rl, rh; in x86emuOp2_bt_R() local
299 FETCH_DECODE_MODRM(mod, rh, rl); in x86emuOp2_bt_R()
301 srcoffset = decode_rmXX_address(mod, rl); in x86emuOp2_bt_R()
329 srcreg = DECODE_RM_LONG_REGISTER(rl); in x86emuOp2_bt_R()
338 srcreg = DECODE_RM_WORD_REGISTER(rl); in x86emuOp2_bt_R()
356 int mod, rl, rh; in x86emuOp2_shld_IMM() local
[all …]
H A Dops.c206 int mod, rl, rh; in x86emuOp_genop_byte_RM_R() local
216 FETCH_DECODE_MODRM(mod, rh, rl); in x86emuOp_genop_byte_RM_R()
218 { destoffset = decode_rmXX_address(mod,rl); in x86emuOp_genop_byte_RM_R()
229 destreg = DECODE_RM_BYTE_REGISTER(rl); in x86emuOp_genop_byte_RM_R()
246 int mod, rl, rh; in x86emuOp_genop_word_RM_R() local
254 FETCH_DECODE_MODRM(mod, rh, rl); in x86emuOp_genop_word_RM_R()
257 destoffset = decode_rmXX_address(mod,rl); in x86emuOp_genop_word_RM_R()
285 destreg = DECODE_RM_LONG_REGISTER(rl); in x86emuOp_genop_word_RM_R()
294 destreg = DECODE_RM_WORD_REGISTER(rl); in x86emuOp_genop_word_RM_R()
312 int mod, rl, rh; in x86emuOp_genop_byte_R_RM() local
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/
H A D0006-Use-uintmax_t-for-handling-rlim_t.patch61 @@ -307,13 +307,13 @@ int rlimit_format(const struct rlimit *rl, char **ret) {
62 if (rl->rlim_cur >= RLIM_INFINITY && rl->rlim_max >= RLIM_INFINITY)
64 else if (rl->rlim_cur >= RLIM_INFINITY)
65 - r = asprintf(&s, "infinity:" RLIM_FMT, rl->rlim_max);
66 + r = asprintf(&s, "infinity:" RLIM_FMT, (uintmax_t)rl->rlim_max);
67 else if (rl->rlim_max >= RLIM_INFINITY)
68 - r = asprintf(&s, RLIM_FMT ":infinity", rl->rlim_cur);
69 + r = asprintf(&s, RLIM_FMT ":infinity", (uintmax_t)rl->rlim_cur);
70 else if (rl->rlim_cur == rl->rlim_max)
71 - r = asprintf(&s, RLIM_FMT, rl->rlim_cur);
[all …]
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/
H A D0007-Use-uintmax_t-for-handling-rlim_t.patch61 @@ -310,13 +310,13 @@ int rlimit_format(const struct rlimit *rl, char **ret) {
62 if (rl->rlim_cur >= RLIM_INFINITY && rl->rlim_max >= RLIM_INFINITY)
64 else if (rl->rlim_cur >= RLIM_INFINITY)
65 - r = asprintf(&s, "infinity:" RLIM_FMT, rl->rlim_max);
66 + r = asprintf(&s, "infinity:" RLIM_FMT, (uintmax_t)rl->rlim_max);
67 else if (rl->rlim_max >= RLIM_INFINITY)
68 - r = asprintf(&s, RLIM_FMT ":infinity", rl->rlim_cur);
69 + r = asprintf(&s, RLIM_FMT ":infinity", (uintmax_t)rl->rlim_cur);
70 else if (rl->rlim_cur == rl->rlim_max)
71 - r = asprintf(&s, RLIM_FMT, rl->rlim_cur);
[all …]
/openbmc/linux/crypto/
H A Dvmac.c104 #define ADD128(rh, rl, ih, il) \ argument
107 (rl) += (_il); \
108 if ((rl) < (_il)) \
115 #define PMUL64(rh, rl, i1, i2) /* Assumes m doesn't overflow */ \ argument
120 rl = MUL32(_i1, _i2); \
121 ADD128(rh, rl, (m >> 32), (m << 32)); \
124 #define MUL64(rh, rl, i1, i2) \ argument
130 rl = MUL32(_i1, _i2); \
131 ADD128(rh, rl, (m1 >> 32), (m1 << 32)); \
132 ADD128(rh, rl, (m2 >> 32), (m2 << 32)); \
[all …]
H A Dcrypto_user_stat.c69 struct crypto_stat_larval rl; in crypto_reportstat_one() local
71 memset(&rl, 0, sizeof(rl)); in crypto_reportstat_one()
72 strscpy(rl.type, "larval", sizeof(rl.type)); in crypto_reportstat_one()
73 if (nla_put(skb, CRYPTOCFGA_STAT_LARVAL, sizeof(rl), &rl)) in crypto_reportstat_one()
/openbmc/qemu/tests/unit/
H A Dtest-mul64.c15 uint64_t rh, rl; member
43 uint64_t rl, rh; in test_u() local
44 mulu64(&rl, &rh, test_u_data[i].a, test_u_data[i].b); in test_u()
45 g_assert_cmpuint(rl, ==, test_u_data[i].rl); in test_u()
55 uint64_t rl, rh; in test_s() local
56 muls64(&rl, &rh, test_s_data[i].a, test_s_data[i].b); in test_s()
57 g_assert_cmpuint(rl, ==, test_s_data[i].rl); in test_s()
/openbmc/linux/tools/testing/selftests/kvm/
H A Dkvm_create_max_vcpus.c49 struct rlimit rl; in main() local
58 TEST_ASSERT(!getrlimit(RLIMIT_NOFILE, &rl), "getrlimit() failed!"); in main()
60 if (rl.rlim_cur < nr_fds_wanted) { in main()
61 rl.rlim_cur = nr_fds_wanted; in main()
62 if (rl.rlim_max < nr_fds_wanted) { in main()
63 int old_rlim_max = rl.rlim_max; in main()
64 rl.rlim_max = nr_fds_wanted; in main()
66 int r = setrlimit(RLIMIT_NOFILE, &rl); in main()
71 TEST_ASSERT(!setrlimit(RLIMIT_NOFILE, &rl), "setrlimit() failed!"); in main()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dqos.c454 void mlx5e_mqprio_rl_free(struct mlx5e_mqprio_rl *rl) in mlx5e_mqprio_rl_free() argument
456 kvfree(rl); in mlx5e_mqprio_rl_free()
459 int mlx5e_mqprio_rl_init(struct mlx5e_mqprio_rl *rl, struct mlx5_core_dev *mdev, u8 num_tc, in mlx5e_mqprio_rl_init() argument
472 rl->mdev = mdev; in mlx5e_mqprio_rl_init()
473 rl->num_tc = num_tc; in mlx5e_mqprio_rl_init()
474 rl->leaves_id = kvcalloc(num_tc, sizeof(*rl->leaves_id), GFP_KERNEL); in mlx5e_mqprio_rl_init()
475 if (!rl->leaves_id) in mlx5e_mqprio_rl_init()
478 err = mlx5_qos_create_root_node(mdev, &rl->root_id); in mlx5e_mqprio_rl_init()
482 qos_dbg(mdev, "Root created, id %#x\n", rl->root_id); in mlx5e_mqprio_rl_init()
488 err = mlx5_qos_create_leaf_node(mdev, rl->root_id, 0, max_average_bw, in mlx5e_mqprio_rl_init()
[all …]
/openbmc/linux/include/linux/
H 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
H A Dmath64.h208 } rl, rm, rn, rh, a0, b0; in mul_u64_u64_shr() local
214 rl.ll = mul_u32_u32(a0.l.low, b0.l.low); in mul_u64_u64_shr()
224 rl.l.high = c = (u64)rl.l.high + rm.l.low + rn.l.low; in mul_u64_u64_shr()
233 return rl.ll; in mul_u64_u64_shr()
235 return (rl.ll >> shift) | (rh.ll << (64 - shift)); in mul_u64_u64_shr()
272 } u, rl, rh; in mul_u64_u32_div() local
275 rl.ll = mul_u32_u32(u.l.low, mul); in mul_u64_u32_div()
276 rh.ll = mul_u32_u32(u.l.high, mul) + rl.l.high; in mul_u64_u32_div()
279 rl.l.high = do_div(rh.ll, divisor); in mul_u64_u32_div()
282 do_div(rl.ll, divisor); in mul_u64_u32_div()
[all …]
/openbmc/u-boot/include/linux/
H A Dmath64.h194 } rl, rm, rn, rh, a0, b0; in mul_u64_u64_shr() local
200 rl.ll = mul_u32_u32(a0.l.low, b0.l.low); in mul_u64_u64_shr()
210 rl.l.high = c = (u64)rl.l.high + rm.l.low + rn.l.low; in mul_u64_u64_shr()
219 return rl.ll; in mul_u64_u64_shr()
221 return (rl.ll >> shift) | (rh.ll << (64 - shift)); in mul_u64_u64_shr()
240 } u, rl, rh; in mul_u64_u32_div() local
243 rl.ll = mul_u32_u32(u.l.low, mul); in mul_u64_u32_div()
244 rh.ll = mul_u32_u32(u.l.high, mul) + rl.l.high; in mul_u64_u32_div()
247 rl.l.high = do_div(rh.ll, divisor); in mul_u64_u32_div()
250 do_div(rl.ll, divisor); in mul_u64_u32_div()
[all …]
/openbmc/qemu/target/riscv/
H A Dm128_helper.c49 target_ulong rl, rh; in HELPER() local
53 rl = ul; in HELPER()
57 rl = int128_getlo(r); in HELPER()
62 return rl; in HELPER()
94 target_ulong rh, rl; in HELPER() local
98 rl = ul; in HELPER()
102 rl = int128_getlo(r); in HELPER()
107 return rl; in HELPER()
/openbmc/linux/fs/dlm/
H A Drcom.c419 struct rcom_lock *rl) in pack_rcom_lock() argument
421 memset(rl, 0, sizeof(*rl)); in pack_rcom_lock()
423 rl->rl_ownpid = cpu_to_le32(lkb->lkb_ownpid); in pack_rcom_lock()
424 rl->rl_lkid = cpu_to_le32(lkb->lkb_id); in pack_rcom_lock()
425 rl->rl_exflags = cpu_to_le32(lkb->lkb_exflags); in pack_rcom_lock()
426 rl->rl_flags = cpu_to_le32(dlm_dflags_val(lkb)); in pack_rcom_lock()
427 rl->rl_lvbseq = cpu_to_le32(lkb->lkb_lvbseq); in pack_rcom_lock()
428 rl->rl_rqmode = lkb->lkb_rqmode; in pack_rcom_lock()
429 rl->rl_grmode = lkb->lkb_grmode; in pack_rcom_lock()
430 rl->rl_status = lkb->lkb_status; in pack_rcom_lock()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H 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()
/openbmc/linux/arch/arm/mm/
H 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

12345