/linux/fs/bcachefs/ |
H A D | journal.h | 194 journal_res_entry(struct journal *j, struct journal_res *res) in journal_res_entry() argument 196 return vstruct_idx(j->buf[res->idx].data, res->offset); in journal_res_entry() 224 bch2_journal_add_entry(struct journal *j, struct journal_res *res, in bch2_journal_add_entry() argument 228 struct jset_entry *entry = journal_res_entry(j, res); in bch2_journal_add_entry() 231 EBUG_ON(!res->ref); in bch2_journal_add_entry() 232 EBUG_ON(actual > res->u64s); in bch2_journal_add_entry() 234 res->offset += actual; in bch2_journal_add_entry() 235 res->u64s -= actual; in bch2_journal_add_entry() 296 struct journal_res *res) in bch2_journal_res_put() argument 326 journal_res_get_fast(struct journal * j,struct journal_res * res,unsigned flags) journal_res_get_fast() argument 369 bch2_journal_res_get(struct journal * j,struct journal_res * res,unsigned u64s,unsigned flags) bch2_journal_res_get() argument [all...] |
/linux/fs/hfs/ |
H A D | bfind.c | 61 int res; in __hfs_brec_find() local 65 res = -ENOENT; in __hfs_brec_find() 71 res = -EINVAL; in __hfs_brec_find() 78 res = 0; in __hfs_brec_find() 90 res = -EINVAL; in __hfs_brec_find() 102 return res; in __hfs_brec_find() 113 int height, res; in hfs_brec_find() local 123 res = 0; in hfs_brec_find() 128 res = PTR_ERR(bnode); in hfs_brec_find() 138 res = __hfs_brec_find(bnode, fd); in hfs_brec_find() [all …]
|
H A D | dir.c | 26 int res; in hfs_lookup() local 28 res = hfs_find_init(HFS_SB(dir->i_sb)->cat_tree, &fd); in hfs_lookup() 29 if (res) in hfs_lookup() 30 return ERR_PTR(res); in hfs_lookup() 32 res = hfs_brec_read(&fd, &rec, sizeof(rec)); in hfs_lookup() 33 if (res) { in hfs_lookup() 34 if (res != -ENOENT) in hfs_lookup() 35 inode = ERR_PTR(res); in hfs_lookup() 196 int res; in hfs_create() local 202 res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); in hfs_create() [all …]
|
/linux/drivers/hwmon/ |
H A D | acpi_power_meter.c | 148 int res; in set_avg_interval() local 153 res = kstrtoul(buf, 10, &temp); in set_avg_interval() 154 if (res) in set_avg_interval() 155 return res; in set_avg_interval() 221 int res; in set_cap() local 226 res = kstrtoul(buf, 10, &temp); in set_cap() 227 if (res) in set_cap() 228 return res; in set_cap() 295 int res; in set_trip() local 298 res = kstrtoul(buf, 10, &temp); in set_trip() [all …]
|
/linux/drivers/pnp/ |
H A D | quirks.c | 232 struct resource *res, *r; in quirk_system_pci_resources() local 256 (res = pnp_get_resource(dev, type, j)); j++) { in quirk_system_pci_resources() 257 if (res->start == 0 && res->end == 0) in quirk_system_pci_resources() 264 if (!resource_overlaps(res, r)) in quirk_system_pci_resources() 274 if (res->start <= r->start && res->end >= r->end) in quirk_system_pci_resources() 284 res, pci_name(pdev), i, r); in quirk_system_pci_resources() 285 res->flags |= IORESOURCE_DISABLED; in quirk_system_pci_resources() 299 struct resource *res; in quirk_amd_mmconfig_area() local 307 res = &pnp_res->res; in quirk_amd_mmconfig_area() 308 if (res->end < mmconfig->start || res->start > mmconfig->end || in quirk_amd_mmconfig_area() [all …]
|
/linux/arch/powerpc/platforms/powernv/ |
H A D | pci-sriov.c | 146 struct resource *res; in pnv_pci_ioda_fixup_iov_resources() local 159 res = &pdev->resource[i + PCI_IOV_RESOURCES]; in pnv_pci_ioda_fixup_iov_resources() 160 if (!res->flags || res->parent) in pnv_pci_ioda_fixup_iov_resources() 162 if (!pnv_pci_is_m64_flags(res->flags)) { in pnv_pci_ioda_fixup_iov_resources() 164 i, res); in pnv_pci_ioda_fixup_iov_resources() 190 i, res); in pnv_pci_ioda_fixup_iov_resources() 202 pci_dbg(pdev, " Fixing VF BAR%d: %pR to\n", i, res); in pnv_pci_ioda_fixup_iov_resources() 203 res->end = res->start + vf_bar_sz * mul - 1; in pnv_pci_ioda_fixup_iov_resources() 204 pci_dbg(pdev, " %pR\n", res); in pnv_pci_ioda_fixup_iov_resources() 207 i, res, mul); in pnv_pci_ioda_fixup_iov_resources() [all …]
|
/linux/drivers/xen/ |
H A D | unpopulated-alloc.c | 27 int __weak __init arch_xen_unpopulated_init(struct resource **res) in arch_xen_unpopulated_init() argument 29 *res = &iomem_resource; in arch_xen_unpopulated_init() 37 struct resource *res, *tmp_res = NULL; in fill_list() local 43 res = kzalloc(sizeof(*res), GFP_KERNEL); in fill_list() 44 if (!res) in fill_list() 47 res->name = "Xen scratch"; in fill_list() 48 res->flags = IORESOURCE_MEM | IORESOURCE_BUSY; in fill_list() 52 ret = allocate_resource(target_resource, res, in fill_list() 71 tmp_res->name = res->name; in fill_list() 72 tmp_res->start = res->start; in fill_list() [all …]
|
/linux/fs/hfsplus/ |
H A D | dir.c | 309 int res; in hfsplus_link() local 323 res = hfsplus_rename_cat(inode->i_ino, in hfsplus_link() 326 if (!res) in hfsplus_link() 328 if (res != -EEXIST) in hfsplus_link() 334 res = hfsplus_create_cat(cnid, src_dir, in hfsplus_link() 336 if (res) in hfsplus_link() 342 res = hfsplus_create_cat(cnid, dst_dir, &dst_dentry->d_name, inode); in hfsplus_link() 343 if (res) in hfsplus_link() 355 return res; in hfsplus_link() 365 int res; in hfsplus_unlink() local [all …]
|
H A D | xattr.c | 424 int res; in hfsplus_setxattr() local 432 res = __hfsplus_setxattr(inode, xattr_name, value, size, flags); in hfsplus_setxattr() 434 return res; in hfsplus_setxattr() 440 ssize_t res = 0; in hfsplus_getxattr_finder_info() local 450 res = hfs_find_init(HFSPLUS_SB(inode->i_sb)->cat_tree, &fd); in hfsplus_getxattr_finder_info() 451 if (res) { in hfsplus_getxattr_finder_info() 453 return res; in hfsplus_getxattr_finder_info() 455 res = hfsplus_find_cat(inode->i_sb, inode->i_ino, &fd); in hfsplus_getxattr_finder_info() 456 if (res) in hfsplus_getxattr_finder_info() 466 res = folder_rec_len; in hfsplus_getxattr_finder_info() [all …]
|
/linux/sound/soc/amd/raven/ |
H A D | pci-acp3x.c | 20 struct resource *res; member 178 adata->res = devm_kzalloc(&pci->dev, in snd_acp3x_probe() 181 if (!adata->res) { in snd_acp3x_probe() 186 adata->res[0].name = "acp3x_i2s_iomem"; in snd_acp3x_probe() 187 adata->res[0].flags = IORESOURCE_MEM; in snd_acp3x_probe() 188 adata->res[0].start = addr; in snd_acp3x_probe() 189 adata->res[0].end = addr + (ACP3x_REG_END - ACP3x_REG_START); in snd_acp3x_probe() 191 adata->res[1].name = "acp3x_i2s_sp"; in snd_acp3x_probe() 192 adata->res[1].flags = IORESOURCE_MEM; in snd_acp3x_probe() 193 adata->res[1].start = addr + ACP3x_I2STDM_REG_START; in snd_acp3x_probe() [all …]
|
/linux/drivers/net/ethernet/cisco/enic/ |
H A D | enic_clsf.c | 23 int res; in enic_addfltr_5t() local 45 res = vnic_dev_classifier(enic->vdev, CLSF_ADD, &rq, &data); in enic_addfltr_5t() 47 res = (res == 0) ? rq : res; in enic_addfltr_5t() 49 return res; in enic_addfltr_5t() 129 bool res; in enic_flow_may_expire() local 140 res = rps_may_expire_flow(enic->netdev, n->rq_id, in enic_flow_may_expire() 142 if (res) { in enic_flow_may_expire() 143 res = enic_delfltr(enic, n->fltr_id); in enic_flow_may_expire() 144 if (unlikely(res)) in enic_flow_may_expire() 178 int res, i; in enic_rx_flow_steer() local [all …]
|
/linux/fs/ext4/ |
H A D | crypto.c | 142 int res, res2, credits, retries = 0; in ext4_set_context() local 159 res = ext4_convert_inline_data(inode); in ext4_set_context() 160 if (res) in ext4_set_context() 161 return res; in ext4_set_context() 172 res = ext4_xattr_set_handle(handle, inode, in ext4_set_context() 176 if (!res) { in ext4_set_context() 186 return res; in ext4_set_context() 189 res = dquot_initialize(inode); in ext4_set_context() 190 if (res) in ext4_set_context() 191 return res; in ext4_set_context() [all …]
|
/linux/drivers/firmware/qcom/ |
H A D | qcom_scm-smc.c | 37 struct arm_smccc_res *res) in __scm_smc_do_quirk() argument 47 quirk.state.a6, smc->args[7], res, &quirk); in __scm_smc_do_quirk() 49 if (res->a0 == QCOM_SCM_INTERRUPTED) in __scm_smc_do_quirk() 50 a0 = res->a0; in __scm_smc_do_quirk() 52 } while (res->a0 == QCOM_SCM_INTERRUPTED); in __scm_smc_do_quirk() 92 struct arm_smccc_res *res) in __scm_smc_do_quirk_handle_waitq() argument 100 __scm_smc_do_quirk(smc, res); in __scm_smc_do_quirk_handle_waitq() 102 if (res->a0 == QCOM_SCM_WAITQ_SLEEP) { in __scm_smc_do_quirk_handle_waitq() 103 wq_ctx = res->a1; in __scm_smc_do_quirk_handle_waitq() 104 smc_call_ctx = res->a2; in __scm_smc_do_quirk_handle_waitq() [all …]
|
/linux/arch/mips/pci/ |
H A D | ops-sni.c | 43 int res; in pcimt_read() local 45 if ((res = set_config_address(bus->number, devfn, reg))) in pcimt_read() 46 return res; in pcimt_read() 66 int res; in pcimt_write() local 68 if ((res = set_config_address(bus->number, devfn, reg))) in pcimt_write() 69 return res; in pcimt_write() 103 int res; in pcit_read() local 113 if ((res = pcit_set_config_address(0, devfn, 0))) in pcit_read() 114 return res; in pcit_read() 120 if ((res = pcit_set_config_address(bus->number, devfn, reg))) in pcit_read() [all …]
|
/linux/arch/x86/pci/ |
H A D | mmconfig-shared.c | 39 if (cfg->res.parent) in pci_mmconfig_remove() 40 release_resource(&cfg->res); in pci_mmconfig_remove() 74 struct resource *res; in pci_mmconfig_alloc() local 88 res = &new->res; in pci_mmconfig_alloc() 89 res->start = addr + PCI_MMCFG_BUS_OFFSET(start); in pci_mmconfig_alloc() 90 res->end = addr + PCI_MMCFG_BUS_OFFSET(end + 1) - 1; in pci_mmconfig_alloc() 91 res->flags = IORESOURCE_MEM | IORESOURCE_BUSY; in pci_mmconfig_alloc() 94 res->name = new->name; in pci_mmconfig_alloc() 113 &new->res, (unsigne in pci_mmconfig_add() 378 check_mcfg_resource(struct acpi_resource * res,void * data) check_mcfg_resource() argument 445 is_efi_mmio(struct resource * res) is_efi_mmio() argument [all...] |
/linux/drivers/staging/media/omap4iss/ |
H A D | iss.h | 95 struct resource *res[OMAP4_ISS_MEM_LAST]; member 141 enum iss_subclk_resource res); 143 enum iss_subclk_resource res); 145 enum iss_isp_subclk_resource res); 147 enum iss_isp_subclk_resource res); 162 u32 iss_reg_read(struct iss_device *iss, enum iss_mem_resources res, in iss_reg_read() argument 165 return readl(iss->regs[res] + offset); in iss_reg_read() 176 void iss_reg_write(struct iss_device *iss, enum iss_mem_resources res, in iss_reg_write() argument 179 writel(value, iss->regs[res] + offset); in iss_reg_write() 190 void iss_reg_clr(struct iss_device *iss, enum iss_mem_resources res, in iss_reg_clr() argument [all …]
|
/linux/fs/ocfs2/dlm/ |
H A D | dlmcommon.h | 388 dlm_list_idx_to_ptr(struct dlm_lock_resource *res, enum dlm_lockres_list idx) in dlm_list_idx_to_ptr() argument 392 ret = &res->granted; in dlm_list_idx_to_ptr() 394 ret = &res->converting; in dlm_list_idx_to_ptr() 396 ret = &res->blocked; in dlm_list_idx_to_ptr() 778 __dlm_lockres_state_to_status(struct dlm_lock_resource *res) in __dlm_lockres_state_to_status() argument 782 assert_spin_locked(&res->spinlock); in __dlm_lockres_state_to_status() 784 if (res->state & (DLM_LOCK_RES_RECOVERING| in __dlm_lockres_state_to_status() 787 else if (res->state & DLM_LOCK_RES_MIGRATING) in __dlm_lockres_state_to_status() 789 else if (res->state & DLM_LOCK_RES_IN_PROGRESS) in __dlm_lockres_state_to_status() 816 struct dlm_lock_resource *res); [all …]
|
/linux/tools/testing/selftests/bpf/ |
H A D | bench.h | 57 void (*measure)(struct bench_res* res); 58 void (*report_progress)(int iter, struct bench_res* res, long delta_ns); 59 void (*report_final)(struct bench_res res[], int res_cnt); 70 void hits_drops_report_progress(int iter, struct bench_res *res, long delta_ns); 71 void hits_drops_report_final(struct bench_res res[], int res_cnt); 72 void false_hits_report_progress(int iter, struct bench_res *res, long delta_ns); 73 void false_hits_report_final(struct bench_res res[], int res_cnt); 74 void ops_report_progress(int iter, struct bench_res *res, long delta_ns); 75 void ops_report_final(struct bench_res res[], int res_cnt); 76 void local_storage_report_progress(int iter, struct bench_res *res, [all …]
|
/linux/fs/nfs/ |
H A D | nfs42xdr.c | 800 static int decode_allocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res) in decode_allocate() argument 806 struct nfs42_write_res *res) in decode_write_response() argument 818 status = decode_opaque_fixed(xdr, &res->stateid, in decode_write_response() 826 p = xdr_decode_hyper(p, &res->count); in decode_write_response() 827 res->verifier.committed = be32_to_cpup(p); in decode_write_response() 828 return decode_verifier(xdr, &res->verifier.verifier); in decode_write_response() 884 struct nfs42_copy_res *res) { in decode_copy_requirements() argument 891 res->consecutive = be32_to_cpup(p++); in decode_copy_requirements() 892 res->synchronous = be32_to_cpup(p++); in decode_copy_requirements() 896 static int decode_copy(struct xdr_stream *xdr, struct nfs42_copy_res *res) in decode_copy() argument [all …]
|
H A D | nfs42proc.c | 56 struct nfs42_falloc_res res = { in _nfs42_proc_fallocate() local 62 msg->rpc_resp = &res; in _nfs42_proc_fallocate() 75 res.falloc_fattr = nfs_alloc_fattr(); in _nfs42_proc_fallocate() 76 if (!res.falloc_fattr) in _nfs42_proc_fallocate() 80 &args.seq_args, &res.seq_res, 0); in _nfs42_proc_fallocate() 89 res.falloc_fattr); in _nfs42_proc_fallocate() 95 kfree(res.falloc_fattr); in _nfs42_proc_fallocate() 176 static int handle_async_copy(struct nfs42_copy_res *res, in handle_async_copy() argument 197 if (memcmp(&res->write_res.stateid, &iter->stateid, in handle_async_copy() 211 memcpy(©->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE); in handle_async_copy() [all …]
|
/linux/drivers/media/radio/ |
H A D | radio-tea5777.c | 176 int res; in radio_tea5777_set_freq() local 213 res = tea->ops->write_reg(tea, tea->write_reg); in radio_tea5777_set_freq() 214 if (res) in radio_tea5777_set_freq() 215 return res; in radio_tea5777_set_freq() 226 int res; in radio_tea5777_update_read_reg() local 232 res = radio_tea5777_set_freq(tea); in radio_tea5777_update_read_reg() 233 if (res) in radio_tea5777_update_read_reg() 234 return res; in radio_tea5777_update_read_reg() 242 res = tea->ops->read_reg(tea, &tea->read_reg); in radio_tea5777_update_read_reg() 243 if (res) in radio_tea5777_update_read_reg() [all …]
|
/linux/drivers/char/ |
H A D | ps3flash.c | 37 u64 res = ps3stor_read_write_sectors(dev, dev->bounce_lpar, in ps3flash_read_write_sectors() local 40 if (res) { in ps3flash_read_write_sectors() 42 __LINE__, write ? "write" : "read", res); in ps3flash_read_write_sectors() 51 int res; in ps3flash_writeback() local 56 res = ps3flash_read_write_sectors(dev, priv->tag, 1); in ps3flash_writeback() 57 if (res) in ps3flash_writeback() 58 return res; in ps3flash_writeback() 67 int res; in ps3flash_fetch() local 72 res = ps3flash_writeback(dev); in ps3flash_fetch() 73 if (res) in ps3flash_fetch() [all …]
|
/linux/drivers/staging/nvec/ |
H A D | nvec_power.c | 89 struct bat_response *res = data; in nvec_power_notifier() local 94 if (res->sub_type == 0) { in nvec_power_notifier() 95 if (power->on != res->plu) { in nvec_power_notifier() 96 power->on = res->plu; in nvec_power_notifier() 125 struct bat_response *res = data; in nvec_power_bat_notifier() local 131 switch (res->sub_type) { in nvec_power_bat_notifier() 133 if (res->plc[0] & 1) { in nvec_power_bat_notifier() 141 switch ((res->plc[0] >> 1) & 3) { in nvec_power_bat_notifier() 164 power->bat_cap = res->plc[1]; in nvec_power_bat_notifier() 169 power->bat_voltage_now = res->plu * 1000; in nvec_power_bat_notifier() [all …]
|
/linux/net/mac80211/ |
H A D | fils_aead.c | 75 int res; in aes_siv_encrypt() local 91 res = crypto_shash_setkey(tfm, key, key_len); in aes_siv_encrypt() 92 if (!res) in aes_siv_encrypt() 93 res = aes_s2v(tfm, num_elem, addr, len, v); in aes_siv_encrypt() 95 if (res) in aes_siv_encrypt() 96 return res; in aes_siv_encrypt() 122 res = crypto_skcipher_setkey(tfm2, key + key_len, key_len); in aes_siv_encrypt() 123 if (res) in aes_siv_encrypt() 128 res = -ENOMEM; in aes_siv_encrypt() 135 res = crypto_skcipher_encrypt(req); in aes_siv_encrypt() [all …]
|
/linux/arch/arm64/hyperv/ |
H A D | hv_core.c | 26 struct arm_smccc_res res; in hv_do_hypercall() local 34 input_address, output_address, &res); in hv_do_hypercall() 35 return res.a0; in hv_do_hypercall() 47 struct arm_smccc_res res; in hv_do_fast_hypercall8() local 52 arm_smccc_1_1_hvc(HV_FUNC_ID, control, input, &res); in hv_do_fast_hypercall8() 53 return res.a0; in hv_do_fast_hypercall8() 62 struct arm_smccc_res res; in hv_set_vpreg() local 73 &res); in hv_set_vpreg() 80 BUG_ON(!hv_result_success(res.a0)); in hv_set_vpreg() 94 struct arm_smccc_1_2_regs res; in hv_get_vpreg_128() local [all …]
|