| /linux/drivers/s390/scsi/ |
| H A D | zfcp_reqlist.h | 43 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 D | runlist.c | 74 static inline struct runlist_element *ntfs_rl_realloc_gfp(struct runlist_element *rl, in ntfs_rl_realloc_gfp() argument 84 return rl; in ntfs_rl_realloc_gfp() 86 if (check_mul_overflow(new_size, sizeof(*rl), &new_bytes)) in ntfs_rl_realloc_gfp() 93 if (likely(rl != NULL)) { in ntfs_rl_realloc_gfp() 96 if (check_mul_overflow(old_size, sizeof(*rl), &old_bytes)) { in ntfs_rl_realloc_gfp() 102 memcpy(new_rl, rl, old_bytes); in ntfs_rl_realloc_gfp() 103 kvfree(rl); in ntfs_rl_realloc_gfp() 108 struct runlist_element *ntfs_rl_realloc(struct runlist_element *rl, in ntfs_rl_realloc() argument 111 return ntfs_rl_realloc_gfp(rl, old_size, new_size, GFP_NOFS); in ntfs_rl_realloc() 135 static inline struct runlist_element *ntfs_rl_realloc_nofail(struct runlist_element *rl, in ntfs_rl_realloc_nofail() argument [all …]
|
| H A D | lcnalloc.c | 37 const struct runlist_element *rl) in ntfs_cluster_free_from_rl_nolock() argument 44 if (!rl) in ntfs_cluster_free_from_rl_nolock() 50 for (; rl->length; rl++) { in ntfs_cluster_free_from_rl_nolock() 53 if (rl->lcn < 0) in ntfs_cluster_free_from_rl_nolock() 55 err = ntfs_bitmap_clear_run(lcnbmp_vi, rl->lcn, rl->length); in ntfs_cluster_free_from_rl_nolock() 57 nr_freed += rl->length; in ntfs_cluster_free_from_rl_nolock() 195 struct runlist_element *rl = NULL; in ntfs_cluster_alloc() local 383 if ((rlpos + 2) * sizeof(*rl) > rlsize) { in ntfs_cluster_alloc() 387 if (!rl) in ntfs_cluster_alloc() 396 memcpy(rl2, rl, rlsize); in ntfs_cluster_alloc() [all …]
|
| H A D | attrib.c | 93 struct runlist_element *rl; in ntfs_map_runlist_nolock() local 195 rl = ntfs_mapping_pairs_decompress(ni->vol, a, &ni->runlist, &new_rl_count); in ntfs_map_runlist_nolock() 196 if (IS_ERR(rl)) in ntfs_map_runlist_nolock() 197 err = PTR_ERR(rl); in ntfs_map_runlist_nolock() 199 ni->runlist.rl = rl; in ntfs_map_runlist_nolock() 310 if (likely(ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn) <= in ntfs_map_runlist() 319 struct runlist_element *rl = ni->runlist.rl; in ntfs_attr_vcn_to_rl() local 323 if (!rl) { in ntfs_attr_vcn_to_rl() 327 rl = ni->runlist.rl; in ntfs_attr_vcn_to_rl() 332 while (rl->length && rl[1].vcn <= vcn) in ntfs_attr_vcn_to_rl() [all …]
|
| H A D | logfile.c | 646 struct runlist_element *rl; in ntfs_empty_logfile() local 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[1].vcn) in ntfs_empty_logfile() 685 rl++; in ntfs_empty_logfile() 708 lcn = rl->lcn; in ntfs_empty_logfile() 710 vcn = rl->vcn; in ntfs_empty_logfile() 718 if (unlikely(!rl->length || lcn < LCN_HOLE)) in ntfs_empty_logfile() 724 len = rl->length; in ntfs_empty_logfile() [all …]
|
| H A D | mft.c | 1185 struct runlist_element *rl, *rl2 = NULL; in ntfs_mft_bitmap_extend_allocation_nolock() local 1211 rl = ntfs_attr_find_vcn_nolock(mftbmp_ni, in ntfs_mft_bitmap_extend_allocation_nolock() 1213 if (IS_ERR(rl) || unlikely(!rl->length || rl->lcn < 0)) { in ntfs_mft_bitmap_extend_allocation_nolock() 1217 if (!IS_ERR(rl)) in ntfs_mft_bitmap_extend_allocation_nolock() 1220 ret = PTR_ERR(rl); in ntfs_mft_bitmap_extend_allocation_nolock() 1223 lcn = rl->lcn + rl->length; in ntfs_mft_bitmap_extend_allocation_nolock() 1253 rl->length++; in ntfs_mft_bitmap_extend_allocation_nolock() 1254 rl[1].vcn++; in ntfs_mft_bitmap_extend_allocation_nolock() 1263 rl2 = ntfs_cluster_alloc(vol, rl[1].vcn, 1, lcn, DATA_ZONE, in ntfs_mft_bitmap_extend_allocation_nolock() 1271 rl = ntfs_runlists_merge(&mftbmp_ni->runlist, rl2, 0, &new_rl_count); in ntfs_mft_bitmap_extend_allocation_nolock() [all …]
|
| H A D | compress.c | 472 struct runlist_element *rl; in ntfs_read_compressed_block() local 599 rl = NULL; in ntfs_read_compressed_block() 604 if (!rl) { in ntfs_read_compressed_block() 607 rl = ni->runlist.rl; in ntfs_read_compressed_block() 609 if (likely(rl != NULL)) { in ntfs_read_compressed_block() 611 while (rl->length && rl[1].vcn <= vcn) in ntfs_read_compressed_block() 612 rl++; in ntfs_read_compressed_block() 613 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_read_compressed_block() 661 if (rl) in ntfs_read_compressed_block() 1332 struct runlist_element *rlc, *rl; in ntfs_write_cb() local [all …]
|
| H A D | wof.c | 154 struct runlist_element *rl; in ntfs_bdev_read_from_rl() local 170 if (!runlist->rl) { in ntfs_bdev_read_from_rl() 175 rl = __ntfs_attr_find_vcn_nolock(runlist, vcn); in ntfs_bdev_read_from_rl() 176 if (IS_ERR(rl)) { in ntfs_bdev_read_from_rl() 177 err = PTR_ERR(rl); in ntfs_bdev_read_from_rl() 186 if (rl->length <= 0 || vcn < rl->vcn) { in ntfs_bdev_read_from_rl() 191 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_bdev_read_from_rl() 197 if (check_add_overflow(rl->vcn, rl->length, &rl_end) || in ntfs_bdev_read_from_rl() 235 rl++; in ntfs_bdev_read_from_rl() 236 vcn = rl->vcn; in ntfs_bdev_read_from_rl()
|
| H A D | inode.c | 347 err = ntfs_cluster_free_from_rl(ni->vol, ni->runlist.rl); in ntfs_non_resident_dealloc_clusters() 356 struct runlist_element *rl; in ntfs_non_resident_dealloc_clusters() local 359 rl = ntfs_mapping_pairs_decompress(ni->vol, actx->attr, NULL, in ntfs_non_resident_dealloc_clusters() 361 if (IS_ERR(rl)) { in ntfs_non_resident_dealloc_clusters() 362 err = PTR_ERR(rl); in ntfs_non_resident_dealloc_clusters() 368 err = ntfs_cluster_free_from_rl(ni->vol, rl); in ntfs_non_resident_dealloc_clusters() 372 kvfree(rl); in ntfs_non_resident_dealloc_clusters() 1760 struct runlist_element *rl, u8 *al_start, const s64 size, in load_attribute_list_mount() argument 1771 if (!vol || !rl || !al || size <= 0 || initialized_size < 0 || in load_attribute_list_mount() 1781 while (rl->length) { in load_attribute_list_mount() [all …]
|
| H A D | file.c | 82 struct runlist_element *rl; in ntfs_trim_prealloc() local 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()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | qos.c | 466 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 D | qos.h | 46 void mlx5e_mqprio_rl_free(struct mlx5e_mqprio_rl *rl); 47 int mlx5e_mqprio_rl_init(struct mlx5e_mqprio_rl *rl, struct mlx5_core_dev *mdev, u8 num_tc, 49 void mlx5e_mqprio_rl_cleanup(struct mlx5e_mqprio_rl *rl); 50 int mlx5e_mqprio_rl_get_node_hw_id(struct mlx5e_mqprio_rl *rl, int tc, u32 *hw_id);
|
| /linux/include/linux/ |
| H A D | jump_label_ratelimit.h | 41 jump_label_rate_limit(struct static_key_deferred *key, unsigned long rl); 45 #define DEFINE_STATIC_KEY_DEFERRED_TRUE(name, rl) \ 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
|
| /linux/fs/dlm/ |
| H A D | rcom.c | 418 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 D | proc-v7-3level.S | 57 #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 D | rl.c | 377 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()
|
| /linux/drivers/slimbus/ |
| H A D | slimbus.h | 128 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 D | sched.c | 97 txn.rl = 4; in slim_ctrl_clk_pause() 105 txn.rl = 3; in slim_ctrl_clk_pause()
|
| /linux/arch/riscv/net/ |
| H A D | bpf_jit.h | 277 static inline u32 rv_amo_insn(u8 funct5, u8 aq, u8 rl, u8 rs2, u8 rs1, in rv_amo_insn() argument 280 u8 funct7 = (funct5 << 2) | (aq << 1) | rl; in rv_amo_insn() 560 static inline u32 rv_amoadd_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoadd_w() argument 562 return rv_amo_insn(0, aq, rl, rs2, rs1, 2, rd, 0x2f); in rv_amoadd_w() 565 static inline u32 rv_amoand_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoand_w() argument 567 return rv_amo_insn(0xc, aq, rl, rs2, rs1, 2, rd, 0x2f); in rv_amoand_w() 570 static inline u32 rv_amoor_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoor_w() argument 572 return rv_amo_insn(0x8, aq, rl, rs2, rs1, 2, rd, 0x2f); in rv_amoor_w() 575 static inline u32 rv_amoxor_w(u8 rd, u8 rs2, u8 rs1, u8 aq, u8 rl) in rv_amoxor_w() argument 577 return rv_amo_insn(0x4, aq, rl, rs2, rs1, 2, rd, 0x2f); in rv_amoxor_w() [all …]
|
| /linux/arch/arm/vfp/ |
| H A D | vfp.h | 73 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 D | epoll-ctl.c | 319 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 D | adf_rl.c | 1053 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/block/ |
| H A D | blk-cgroup.h | 520 #define blk_queue_for_each_rl(rl, q) \ argument 521 for ((rl) = &(q)->root_rl; (rl); (rl) = NULL)
|
| /linux/drivers/net/wireless/realtek/rtw89/ |
| H A D | fw.c | 6064 struct rtw89_btc_wl_rlink *rl; in rtw89_fw_h2c_cxdrv_role() local 6103 rl = &r->rlink[i][RTW89_MAC_0]; in rtw89_fw_h2c_cxdrv_role() 6104 RTW89_SET_FWCMD_CXROLE_ACT_CONNECTED(cmd, rl->connected, i, offset); in rtw89_fw_h2c_cxdrv_role() 6105 RTW89_SET_FWCMD_CXROLE_ACT_PID(cmd, rl->pid, i, offset); in rtw89_fw_h2c_cxdrv_role() 6106 RTW89_SET_FWCMD_CXROLE_ACT_PHY(cmd, rl->phy, i, offset); in rtw89_fw_h2c_cxdrv_role() 6107 RTW89_SET_FWCMD_CXROLE_ACT_NOA(cmd, rl->noa, i, offset); in rtw89_fw_h2c_cxdrv_role() 6108 RTW89_SET_FWCMD_CXROLE_ACT_BAND(cmd, rl->rf_band, i, offset); in rtw89_fw_h2c_cxdrv_role() 6109 RTW89_SET_FWCMD_CXROLE_ACT_CLIENT_PS(cmd, rl->client_ps, i, offset); in rtw89_fw_h2c_cxdrv_role() 6110 RTW89_SET_FWCMD_CXROLE_ACT_BW(cmd, rl->bw, i, offset); in rtw89_fw_h2c_cxdrv_role() 6111 RTW89_SET_FWCMD_CXROLE_ACT_ROLE(cmd, rl->role, i, offset); in rtw89_fw_h2c_cxdrv_role() [all …]
|
| /linux/sound/usb/usx2y/ |
| H A D | usbus428ctldefs.h | 68 rl; member
|