Home
last modified time | relevance | path

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

12

/linux/drivers/s390/scsi/
H A Dzfcp_reqlist.h43 struct zfcp_reqlist *rl; in zfcp_reqlist_alloc() local
45 rl = kzalloc_obj(struct zfcp_reqlist); in zfcp_reqlist_alloc()
46 if (!rl) in zfcp_reqlist_alloc()
49 spin_lock_init(&rl->lock); in zfcp_reqlist_alloc()
52 INIT_LIST_HEAD(&rl->buckets[i]); in zfcp_reqlist_alloc()
54 return rl; in zfcp_reqlist_alloc()
63 static inline int zfcp_reqlist_isempty(struct zfcp_reqlist *rl) in zfcp_reqlist_isempty() argument
68 if (!list_empty(&rl->buckets[i])) in zfcp_reqlist_isempty()
77 static inline void zfcp_reqlist_free(struct zfcp_reqlist *rl) in zfcp_reqlist_free() argument
80 BUG_ON(!zfcp_reqlist_isempty(rl)); in zfcp_reqlist_free()
[all …]
/linux/fs/ntfs/
H A Drunlist.c58 * @rl: original runlist
59 * @old_size: number of runlist elements in the original runlist @rl
66 * It is up to the caller to serialize access to the runlist @rl.
74 struct runlist_element *ntfs_rl_realloc(struct runlist_element *rl, in ntfs_rl_realloc() argument
79 old_size = old_size * sizeof(*rl); in ntfs_rl_realloc()
80 new_size = new_size * sizeof(*rl); in ntfs_rl_realloc()
82 return rl; in ntfs_rl_realloc()
88 if (likely(rl != NULL)) { in ntfs_rl_realloc()
91 memcpy(new_rl, rl, old_size); in ntfs_rl_realloc()
92 kvfree(rl); in ntfs_rl_realloc()
118 ntfs_rl_realloc_nofail(struct runlist_element * rl,int old_size,int new_size) ntfs_rl_realloc_nofail() argument
529 struct runlist_element *drl = d_runlist->rl, *rl; ntfs_runlists_merge() local
738 struct runlist_element *rl, *new_rl; /* The output runlist. */ ntfs_mapping_pairs_decompress() local
999 ntfs_rl_vcn_to_lcn(const struct runlist_element * rl,const s64 vcn) ntfs_rl_vcn_to_lcn() argument
1045 ntfs_rl_find_vcn_nolock(struct runlist_element * rl,const s64 vcn) ntfs_rl_find_vcn_nolock() argument
1117 ntfs_get_size_for_mapping_pairs(const struct ntfs_volume * vol,const struct runlist_element * rl,const s64 first_vcn,const s64 last_vcn,int max_mp_size) ntfs_get_size_for_mapping_pairs() argument
1321 ntfs_mapping_pairs_build(const struct ntfs_volume * vol,s8 * dst,const int dst_len,const struct runlist_element * rl,const s64 first_vcn,const s64 last_vcn,s64 * const stop_vcn,struct runlist_element ** stop_rl,unsigned int * de_cluster_count) ntfs_mapping_pairs_build() argument
1504 struct runlist_element *rl; ntfs_rl_truncate_nolock() local
1609 ntfs_rl_sparse(struct runlist_element * rl) ntfs_rl_sparse() argument
1634 ntfs_rl_get_compressed_size(struct ntfs_volume * vol,struct runlist_element * rl) ntfs_rl_get_compressed_size() argument
1765 struct runlist_element *rl, *rl_3rd; ntfs_rl_insert_range() local
[all...]
H A Dattrib.c93 struct runlist_element *rl; in ntfs_map_runlist_nolock()
192 rl = ntfs_mapping_pairs_decompress(ni->vol, a, &ni->runlist, &new_rl_count); in ntfs_map_runlist_nolock()
193 if (IS_ERR(rl)) in ntfs_map_runlist_nolock()
194 err = PTR_ERR(rl); in ntfs_map_runlist_nolock()
196 ni->runlist.rl = rl; in ntfs_map_runlist_nolock()
307 if (likely(ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn) <= in ntfs_map_runlist()
316 struct runlist_element *rl = ni->runlist.rl; in ntfs_attr_vcn_to_rl()
320 if (!rl) { in ntfs_attr_vcn_to_rl()
92 struct runlist_element *rl; ntfs_map_runlist_nolock() local
315 struct runlist_element *rl = ni->runlist.rl; ntfs_attr_vcn_to_rl() local
527 struct runlist_element *rl; ntfs_attr_find_vcn_nolock() local
1773 struct runlist_element *rl; ntfs_attr_make_non_resident() local
3130 struct runlist_element *rl; ntfs_attr_map_whole_runlist() local
4191 struct runlist_element *rl, *rln; ntfs_non_resident_attr_expand() local
4828 struct runlist_element *rl, *rlc; ntfs_attr_map_cluster() local
5156 struct runlist_element *hole_rl, *rl; ntfs_non_resident_attr_insert_range() local
5234 struct runlist_element *punch_rl, *rl; ntfs_non_resident_attr_collapse_range() local
5329 struct runlist_element *punch_rl, *rl; ntfs_non_resident_attr_punch_hole() local
5392 struct runlist_element *rl; ntfs_attr_fallocate() local
[all...]
H A Diomap.c192 struct runlist_element *rl;
201 rl = ntfs_attr_vcn_to_rl(ni, vcn, &lcn); in ntfs_read_iomap_begin_non_resident() local
202 if (IS_ERR(rl)) { in ntfs_read_iomap_begin_non_resident()
204 return PTR_ERR(rl); in ntfs_read_iomap_begin_non_resident()
234 rl_length = ntfs_cluster_to_bytes(vol, rl->length - (vcn - rl->vcn)); in ntfs_read_iomap_begin_non_resident()
236 if (rl_length == 0 && rl->lcn > LCN_DELALLOC) { in ntfs_read_iomap_begin_non_resident()
239 rl->vcn, rl->length, rl in ntfs_read_iomap_begin_non_resident()
315 struct runlist_element *rl; ntfs_iomap_valid() local
392 struct runlist_element *rl, *rlc; ntfs_write_simple_iomap_begin_non_resident() local
[all...]
H A Dlogfile.c646 struct runlist_element *rl; in ntfs_empty_logfile()
673 rl = log_ni->runlist.rl; in ntfs_empty_logfile()
674 if (unlikely(!rl || vcn < rl->vcn || !rl->length)) { in ntfs_empty_logfile()
681 rl = log_ni->runlist.rl; in ntfs_empty_logfile()
684 while (rl->length && vcn >= rl[ in ntfs_empty_logfile()
647 struct runlist_element *rl; ntfs_empty_logfile() local
[all...]
H A Dmft.c1060 struct runlist_element *rl, *rl2 = NULL; in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock()
1086 rl = ntfs_attr_find_vcn_nolock(mftbmp_ni, in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock()
1088 if (IS_ERR(rl) || unlikely(!rl->length || rl->lcn < 0)) { in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock()
1092 if (!IS_ERR(rl)) in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock()
1095 ret = PTR_ERR(rl); in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock()
1098 lcn = rl->lcn + rl->length; in ntfs_mft_bitmap_find_and_alloc_free_rec_nolock()
1128 rl in ntfs_mft_attr_extend()
1168 struct runlist_element *rl, *rl2 = NULL; ntfs_mft_bitmap_extend_allocation_nolock() local
1601 struct runlist_element *rl, *rl2; ntfs_mft_data_extend_allocation_nolock() local
2748 struct runlist_element *rl = NULL; ntfs_write_mft_block() local
[all...]
H A Dcompress.c472 struct runlist_element *rl; in ntfs_read_compressed_block() local
600 rl = NULL; in ntfs_read_compressed_block()
605 if (!rl) { in ntfs_read_compressed_block()
608 rl = ni->runlist.rl; in ntfs_read_compressed_block()
610 if (likely(rl != NULL)) { in ntfs_read_compressed_block()
612 while (rl->length && rl[1].vcn <= vcn) in ntfs_read_compressed_block()
613 rl++; in ntfs_read_compressed_block()
614 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_read_compressed_block()
663 if (rl) in ntfs_read_compressed_block()
1291 struct runlist_element *rlc, *rl; in ntfs_write_cb() local
[all …]
H A Dinode.c340 err = ntfs_cluster_free_from_rl(ni->vol, ni->runlist.rl); in ntfs_non_resident_dealloc_clusters()
349 struct runlist_element *rl; in ntfs_non_resident_dealloc_clusters() local
352 rl = ntfs_mapping_pairs_decompress(ni->vol, actx->attr, NULL, in ntfs_non_resident_dealloc_clusters()
354 if (IS_ERR(rl)) { in ntfs_non_resident_dealloc_clusters()
355 err = PTR_ERR(rl); in ntfs_non_resident_dealloc_clusters()
361 err = ntfs_cluster_free_from_rl(ni->vol, rl); in ntfs_non_resident_dealloc_clusters()
365 kvfree(rl); in ntfs_non_resident_dealloc_clusters()
1714 * @rl: runlist of the attribute list in load_attribute_list_mount() argument
1719 * Walk the runlist @rl and load all clusters from it copying them into in load_attribute_list_mount()
1728 struct runlist_element *rl, u in load_attribute_list_mount()
1952 struct runlist_element *rl; ntfs_read_inode_mount() local
2660 struct runlist_element *rl; ntfs_get_block_mft_record() local
3658 struct runlist_element *rl; __ntfs_inode_non_resident_attr_pwrite() local
[all...]
H A Dfile.c82 struct runlist_element *rl; in ntfs_trim_prealloc()
99 rl = ni->runlist.rl; in ntfs_trim_prealloc()
101 while (rc >= 0 && rl[rc].lcn == LCN_HOLE && vcn_ds <= rl[rc].vcn) { in ntfs_trim_prealloc()
102 vcn_tr = rl[rc].vcn; in ntfs_trim_prealloc()
109 kvfree(ni->runlist.rl); in ntfs_trim_prealloc()
110 ni->runlist.rl = NULL; in ntfs_trim_prealloc()
81 struct runlist_element *rl; ntfs_trim_prealloc() local
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dqos.c466 void mlx5e_mqprio_rl_free(struct mlx5e_mqprio_rl *rl) in mlx5e_mqprio_rl_free() argument
468 kvfree(rl); in mlx5e_mqprio_rl_free()
471 int mlx5e_mqprio_rl_init(struct mlx5e_mqprio_rl *rl, struct mlx5_core_dev *mdev, u8 num_tc, in mlx5e_mqprio_rl_init() argument
484 rl->mdev = mdev; in mlx5e_mqprio_rl_init()
485 rl->num_tc = num_tc; in mlx5e_mqprio_rl_init()
486 rl->leaves_id = kvcalloc(num_tc, sizeof(*rl->leaves_id), GFP_KERNEL); in mlx5e_mqprio_rl_init()
487 if (!rl->leaves_id) in mlx5e_mqprio_rl_init()
490 err = mlx5_qos_create_root_node(mdev, &rl->root_id); in mlx5e_mqprio_rl_init()
494 qos_dbg(mdev, "Root created, id %#x\n", rl->root_id); in mlx5e_mqprio_rl_init()
500 err = mlx5_qos_create_leaf_node(mdev, rl->root_id, 0, max_average_bw, in mlx5e_mqprio_rl_init()
[all …]
H A 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/
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.h215 } rl, rm, rn, rh, a0, b0; in mul_u64_u64_shr() local
221 rl.ll = mul_u32_u32(a0.l.low, b0.l.low); in mul_u64_u64_shr()
231 rl.l.high = c = (u64)rl.l.high + rm.l.low + rn.l.low; in mul_u64_u64_shr()
240 return rl.ll; in mul_u64_u64_shr()
242 return (rl.ll >> shift) | (rh.ll << (64 - shift)); in mul_u64_u64_shr()
279 } u, rl, rh; in mul_u64_u32_div() local
282 rl.ll = mul_u32_u32(u.l.low, mul); in mul_u64_u32_div()
283 rh.ll = mul_u32_u32(u.l.high, mul) + rl.l.high; in mul_u64_u32_div()
286 rl.l.high = do_div(rh.ll, divisor); in mul_u64_u32_div()
289 do_div(rl.ll, divisor); in mul_u64_u32_div()
[all …]
/linux/fs/dlm/
H A Drcom.c418 struct rcom_lock *rl) in pack_rcom_lock() argument
420 memset(rl, 0, sizeof(*rl)); in pack_rcom_lock()
422 rl->rl_ownpid = cpu_to_le32(lkb->lkb_ownpid); in pack_rcom_lock()
423 rl->rl_lkid = cpu_to_le32(lkb->lkb_id); in pack_rcom_lock()
424 rl->rl_exflags = cpu_to_le32(lkb->lkb_exflags); in pack_rcom_lock()
425 rl->rl_flags = cpu_to_le32(dlm_dflags_val(lkb)); in pack_rcom_lock()
426 rl->rl_lvbseq = cpu_to_le32(lkb->lkb_lvbseq); in pack_rcom_lock()
427 rl->rl_rqmode = lkb->lkb_rqmode; in pack_rcom_lock()
428 rl->rl_grmode = lkb->lkb_grmode; in pack_rcom_lock()
429 rl->rl_status = lkb->lkb_status; in pack_rcom_lock()
[all …]
/linux/arch/arm/mm/
H A 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/
H A Drl.c377 struct mlx5_rate_limit *rl) in mlx5_rl_add_rate() argument
381 MLX5_SET(set_pp_rate_limit_context, rl_raw, rate_limit, rl->rate); in mlx5_rl_add_rate()
383 rl->max_burst_sz); in mlx5_rl_add_rate()
385 rl->typical_pkt_sz); in mlx5_rl_add_rate()
394 void mlx5_rl_remove_rate(struct mlx5_core_dev *dev, struct mlx5_rate_limit *rl) in mlx5_rl_remove_rate() argument
401 if (rl->rate == 0) in mlx5_rl_remove_rate()
404 MLX5_SET(set_pp_rate_limit_context, rl_raw, rate_limit, rl->rate); in mlx5_rl_remove_rate()
406 rl->max_burst_sz); in mlx5_rl_remove_rate()
408 rl->typical_pkt_sz); in mlx5_rl_remove_rate()
416 rl->rate, rl->max_burst_sz, rl->typical_pkt_sz); in mlx5_rl_remove_rate()
H A Den_main.c1982 struct mlx5_rate_limit rl = {0}; in mlx5e_close_txqsq() local
1989 rl.rate = sq->rate_limit; in mlx5e_close_txqsq()
1990 mlx5_rl_remove_rate(mdev, &rl); in mlx5e_close_txqsq()
2492 struct mlx5_rate_limit rl = {0}; in mlx5e_set_sq_maxrate() local
2501 rl.rate = sq->rate_limit; in mlx5e_set_sq_maxrate()
2502 /* remove current rl index to free space to next ones */ in mlx5e_set_sq_maxrate()
2503 mlx5_rl_remove_rate(mdev, &rl); in mlx5e_set_sq_maxrate()
2509 rl.rate = rate; in mlx5e_set_sq_maxrate()
2510 err = mlx5_rl_add_rate(mdev, &rl_index, &rl); in mlx5e_set_sq_maxrate()
2528 mlx5_rl_remove_rate(mdev, &rl); in mlx5e_set_sq_maxrate()
3796 mlx5e_mqprio_rl_update_params(struct mlx5e_params * params,struct mlx5e_mqprio_rl * rl) mlx5e_mqprio_rl_update_params() argument
3811 mlx5e_params_mqprio_channel_set(struct mlx5e_params * params,struct tc_mqprio_qopt_offload * mqprio,struct mlx5e_mqprio_rl * rl) mlx5e_params_mqprio_channel_set() argument
3925 struct mlx5e_mqprio_rl *rl; mlx5e_mqprio_rl_create() local
3948 struct mlx5e_mqprio_rl *rl; mlx5e_setup_tc_mqprio_channel() local
6126 struct mlx5e_mqprio_rl *rl; mlx5e_set_mqprio_rl() local
[all...]
/linux/drivers/slimbus/
H 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,\
H A Dsched.c97 txn.rl = 4; in slim_ctrl_clk_pause()
105 txn.rl = 3; in slim_ctrl_clk_pause()
H 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 in qcom_slim_ngd_get_laddr()
[all...]
/linux/arch/arm/vfp/
H 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/tools/perf/bench/
H 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()
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_rl.c1053 struct adf_rl *rl; in adf_rl_init() local
1068 rl = kzalloc_obj(*rl); in adf_rl_init()
1069 if (!rl) { in adf_rl_init()
1074 mutex_init(&rl->rl_lock); in adf_rl_init()
1075 rl->device_data = &accel_dev->hw_device->rl_data; in adf_rl_init()
1076 rl->accel_dev = accel_dev; in adf_rl_init()
1077 init_rwsem(&rl->user_input.lock); in adf_rl_init()
1078 accel_dev->rate_limiting = rl; in adf_rl_init()
/linux/sound/usb/usx2y/
H A Dusbus428ctldefs.h68 rl; member
/linux/tools/perf/util/
H A Dprint-events.c212 static struct rb_node *mep_new(struct rblist *rl __maybe_unused, const void *entry) in mep_new()
223 static void mep_delete(struct rblist *rl __maybe_unused, in mep_delete()

12