Home
last modified time | relevance | path

Searched refs:ERR_PTR (Results 1 – 25 of 3080) sorted by relevance

12345678910>>...124

/openbmc/linux/lib/
H A Dasn1_encoder.c34 return ERR_PTR(-EINVAL); in asn1_encode_integer()
41 return ERR_PTR(-EINVAL); in asn1_encode_integer()
75 return ERR_PTR(-EINVAL); in asn1_encode_integer()
149 return ERR_PTR(-EINVAL); in asn1_encode_oid()
152 return ERR_PTR(-EINVAL); in asn1_encode_oid()
160 return ERR_PTR(-EINVAL); in asn1_encode_oid()
170 return ERR_PTR(ret); in asn1_encode_oid()
277 return ERR_PTR(-EINVAL); in asn1_encode_tag()
281 return ERR_PTR(-EINVAL); in asn1_encode_tag()
297 return ERR_PTR(-EINVAL); in asn1_encode_tag()
[all …]
/openbmc/linux/fs/smb/client/
H A Dunc.c27 return ERR_PTR(-EINVAL); in extract_hostname()
31 return ERR_PTR(-EINVAL); in extract_hostname()
36 return ERR_PTR(-EINVAL); in extract_hostname()
41 return ERR_PTR(-ENOMEM); in extract_hostname()
60 return ERR_PTR(-EINVAL); in extract_sharename()
66 return ERR_PTR(-ENOMEM); in extract_sharename()
/openbmc/linux/drivers/clk/qcom/
H A Dkrait-cc.c98 return ERR_PTR(-ENOMEM); in krait_add_div()
108 return ERR_PTR(-ENOMEM); in krait_add_div()
113 clk = ERR_PTR(-ENOMEM); in krait_add_div()
122 clk = ERR_PTR(ret); in krait_add_div()
164 return ERR_PTR(-ENOMEM); in krait_add_sec_mux()
184 return ERR_PTR(-ENOMEM); in krait_add_sec_mux()
189 clk = ERR_PTR(-ENOMEM); in krait_add_sec_mux()
200 clk = ERR_PTR(ret); in krait_add_sec_mux()
208 clk = ERR_PTR(ret); in krait_add_sec_mux()
245 return ERR_PTR(-ENOMEM); in krait_add_pri_mux()
[all …]
/openbmc/linux/drivers/tee/
H A Dtee_shm.c86 return ERR_PTR(-EINVAL); in shm_alloc_helper()
90 ret = ERR_PTR(-EINVAL); in shm_alloc_helper()
96 ret = ERR_PTR(-ENOMEM); in shm_alloc_helper()
114 ret = ERR_PTR(rc); in shm_alloc_helper()
151 return ERR_PTR(id); in tee_shm_alloc_user_buf()
228 return ERR_PTR(-EINVAL); in register_shm_helper()
232 ret = ERR_PTR(-ENOTSUPP); in register_shm_helper()
240 ret = ERR_PTR(-ENOMEM); in register_shm_helper()
255 ret = ERR_PTR(-ENOMEM); in register_shm_helper()
269 ret = ERR_PTR(rc); in register_shm_helper()
[all …]
/openbmc/linux/drivers/gpu/drm/tiny/
H A Dsimpledrm.c73 return ERR_PTR(-EINVAL); in simplefb_get_validated_format()
80 return ERR_PTR(-EINVAL); in simplefb_get_validated_format()
89 return ERR_PTR(-EINVAL); in simplefb_get_validated_format()
184 return ERR_PTR(ret); in simplefb_get_format_of()
201 return ERR_PTR(-ENOMEM); in simplefb_get_memory_of()
205 return ERR_PTR(err); in simplefb_get_memory_of()
652 return ERR_PTR(ret); in simpledrm_device_create()
655 return ERR_PTR(ret); in simpledrm_device_create()
660 return ERR_PTR(width); in simpledrm_device_create()
663 return ERR_PTR(height); in simpledrm_device_create()
[all …]
/openbmc/linux/drivers/usb/typec/
H A Dmux.c59 return dev ? to_typec_switch_dev(dev) : ERR_PTR(-EPROBE_DEFER); in typec_switch_match()
81 return ERR_PTR(-ENOMEM); in fwnode_typec_switch_get()
116 return ERR_PTR(err); in fwnode_typec_switch_get()
172 return ERR_PTR(-EINVAL); in typec_switch_register()
176 return ERR_PTR(-ENOMEM); in typec_switch_register()
189 return ERR_PTR(ret); in typec_switch_register()
196 return ERR_PTR(ret); in typec_switch_register()
284 return dev ? to_typec_mux_dev(dev) : ERR_PTR(-EPROBE_DEFER); in typec_mux_match()
306 return ERR_PTR(-ENOMEM); in fwnode_typec_mux_get()
341 return ERR_PTR(err); in fwnode_typec_mux_get()
[all …]
/openbmc/linux/drivers/md/
H A Ddm-init.c125 return ERR_PTR(-EINVAL); in dm_parse_table_entry()
132 return ERR_PTR(-ENOMEM); in dm_parse_table_entry()
137 return ERR_PTR(-EINVAL); in dm_parse_table_entry()
140 return ERR_PTR(-EINVAL); in dm_parse_table_entry()
145 return ERR_PTR(-EINVAL); in dm_parse_table_entry()
151 return ERR_PTR(-ENOMEM); in dm_parse_table_entry()
204 return ERR_PTR(-EINVAL); in dm_parse_device_entry()
217 return ERR_PTR(-EINVAL); in dm_parse_device_entry()
225 return ERR_PTR(-EINVAL); in dm_parse_device_entry()
228 return ERR_PTR(-EINVAL); in dm_parse_device_entry()
/openbmc/linux/fs/ext2/
H A Dacl.c29 return ERR_PTR(-EINVAL); in ext2_acl_from_disk()
32 return ERR_PTR(-EINVAL); in ext2_acl_from_disk()
36 return ERR_PTR(-EINVAL); in ext2_acl_from_disk()
41 return ERR_PTR(-ENOMEM); in ext2_acl_from_disk()
85 return ERR_PTR(-EINVAL); in ext2_acl_from_disk()
102 return ERR_PTR(-ENOMEM); in ext2_acl_to_disk()
137 return ERR_PTR(-EINVAL); in ext2_acl_to_disk()
152 return ERR_PTR(-ECHILD); in ext2_get_acl()
168 return ERR_PTR(-ENOMEM); in ext2_get_acl()
176 acl = ERR_PTR(retval); in ext2_get_acl()
/openbmc/u-boot/drivers/core/
H A Dsyscon-uclass.c31 return ERR_PTR(-ENOEXEC); in syscon_get_regmap()
71 return ERR_PTR(err); in syscon_regmap_lookup_by_phandle()
77 return ERR_PTR(-ENODEV); in syscon_regmap_lookup_by_phandle()
111 return ERR_PTR(ret); in syscon_get_regmap_by_driver_data()
162 return ERR_PTR(-EINVAL); in syscon_node_to_regmap()
173 return ERR_PTR(ret); in syscon_node_to_regmap()
177 return ERR_PTR(ret); in syscon_node_to_regmap()
/openbmc/linux/include/linux/mfd/
H A Dsyscon.h36 return ERR_PTR(-ENOTSUPP); in device_node_to_regmap()
41 return ERR_PTR(-ENOTSUPP); in syscon_node_to_regmap()
46 return ERR_PTR(-ENOTSUPP); in syscon_regmap_lookup_by_compatible()
53 return ERR_PTR(-ENOTSUPP); in syscon_regmap_lookup_by_phandle()
62 return ERR_PTR(-ENOTSUPP); in syscon_regmap_lookup_by_phandle_args()
/openbmc/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_region.c54 return ERR_PTR(-EINVAL); in __i915_gem_object_create_region()
57 return ERR_PTR(-ENODEV); in __i915_gem_object_create_region()
77 return ERR_PTR(-E2BIG); in __i915_gem_object_create_region()
81 return ERR_PTR(-ENOMEM); in __i915_gem_object_create_region()
103 return ERR_PTR(err); in __i915_gem_object_create_region()
126 return ERR_PTR(-EINVAL); in i915_gem_object_create_region_at()
129 return ERR_PTR(-EINVAL); in i915_gem_object_create_region_at()
134 return ERR_PTR(-ENOSPC); in i915_gem_object_create_region_at()
/openbmc/linux/fs/fuse/
H A Dacl.c24 return ERR_PTR(-ECHILD); in __fuse_get_acl()
27 return ERR_PTR(-EIO); in __fuse_get_acl()
37 return ERR_PTR(-EOPNOTSUPP); in __fuse_get_acl()
41 return ERR_PTR(-ENOMEM); in __fuse_get_acl()
49 acl = ERR_PTR(-E2BIG); in __fuse_get_acl()
51 acl = ERR_PTR(size); in __fuse_get_acl()
75 return ERR_PTR(-EOPNOTSUPP); in fuse_get_acl()
/openbmc/linux/drivers/gpu/drm/i915/gt/uc/
H A Dselftest_guc.c39 return ERR_PTR(ret); in nop_user_request()
101 gt_err(gt, "Last request failed to complete: %pe\n", ERR_PTR(ret)); in intel_guc_scrub_ctbs()
118 gt_err(gt, "GT failed to idle: %pe\n", ERR_PTR(ret)); in intel_guc_scrub_ctbs()
177 guc_err(guc, "Failed to create spinner: %pe\n", ERR_PTR(ret)); in intel_guc_steal_guc_ids()
189 guc_err(guc, "Failed to add Spinner request: %pe\n", ERR_PTR(ret)); in intel_guc_steal_guc_ids()
209 last ? "" : "first ", context_index, ERR_PTR(ret)); in intel_guc_steal_guc_ids()
223 guc_err(guc, "Spin request failed to complete: %pe\n", ERR_PTR(ret)); in intel_guc_steal_guc_ids()
235 guc_err(guc, "Last request failed to complete: %pe\n", ERR_PTR(ret)); in intel_guc_steal_guc_ids()
251 guc_err(guc, "Request with stolen guc_id failed to complete: %pe\n", ERR_PTR(ret)); in intel_guc_steal_guc_ids()
258 guc_err(guc, "GT failed to idle: %pe\n", ERR_PTR(ret)); in intel_guc_steal_guc_ids()
/openbmc/linux/fs/ext4/
H A Dacl.c27 return ERR_PTR(-EINVAL); in ext4_acl_from_disk()
30 return ERR_PTR(-EINVAL); in ext4_acl_from_disk()
34 return ERR_PTR(-EINVAL); in ext4_acl_from_disk()
39 return ERR_PTR(-ENOMEM); in ext4_acl_from_disk()
84 return ERR_PTR(-EINVAL); in ext4_acl_from_disk()
101 return ERR_PTR(-ENOMEM); in ext4_acl_to_disk()
136 return ERR_PTR(-EINVAL); in ext4_acl_to_disk()
153 return ERR_PTR(-ECHILD); in ext4_get_acl()
169 return ERR_PTR(-ENOMEM); in ext4_get_acl()
177 acl = ERR_PTR(retval); in ext4_get_acl()
/openbmc/linux/drivers/mux/
H A Dcore.c99 return ERR_PTR(-EINVAL); in mux_chip_alloc()
105 return ERR_PTR(-ENOMEM); in mux_chip_alloc()
120 return ERR_PTR(err); in mux_chip_alloc()
243 return ERR_PTR(-ENOMEM); in devm_mux_chip_alloc()
549 return ERR_PTR(index); in mux_get()
564 return ERR_PTR(ret); in mux_get()
570 return ERR_PTR(-EPROBE_DEFER); in mux_get()
579 return ERR_PTR(-EINVAL); in mux_get()
595 return ERR_PTR(-EINVAL); in mux_get()
606 return ERR_PTR(-EINVAL); in mux_get()
[all …]
/openbmc/linux/fs/reiserfs/
H A Dxattr_acl.c77 return ERR_PTR(-EINVAL); in reiserfs_posix_acl_from_disk()
80 return ERR_PTR(-EINVAL); in reiserfs_posix_acl_from_disk()
84 return ERR_PTR(-EINVAL); in reiserfs_posix_acl_from_disk()
89 return ERR_PTR(-ENOMEM); in reiserfs_posix_acl_from_disk()
132 return ERR_PTR(-EINVAL); in reiserfs_posix_acl_from_disk()
150 return ERR_PTR(-ENOMEM); in reiserfs_posix_acl_to_disk()
185 return ERR_PTR(-EINVAL); in reiserfs_posix_acl_to_disk()
202 return ERR_PTR(-ECHILD); in reiserfs_get_acl()
219 return ERR_PTR(size); in reiserfs_get_acl()
224 return ERR_PTR(-ENOMEM); in reiserfs_get_acl()
[all …]
/openbmc/linux/drivers/bluetooth/
H A Dh4_recv.h63 return ERR_PTR(-ENOMEM); in h4_recv_buf()
72 return ERR_PTR(-EILSEQ); in h4_recv_buf()
95 return ERR_PTR(-EILSEQ); in h4_recv_buf()
113 return ERR_PTR(-EMSGSIZE); in h4_recv_buf()
124 return ERR_PTR(-EMSGSIZE); in h4_recv_buf()
130 return ERR_PTR(-EILSEQ); in h4_recv_buf()
/openbmc/linux/fs/jffs2/
H A Dacl.c67 return ERR_PTR(-EINVAL); in jffs2_acl_from_medium()
71 return ERR_PTR(-EINVAL); in jffs2_acl_from_medium()
77 return ERR_PTR(-EINVAL); in jffs2_acl_from_medium()
83 return ERR_PTR(-ENOMEM); in jffs2_acl_from_medium()
125 return ERR_PTR(-EINVAL); in jffs2_acl_from_medium()
139 return ERR_PTR(-ENOMEM); in jffs2_acl_to_medium()
173 return ERR_PTR(-EINVAL); in jffs2_acl_to_medium()
183 return ERR_PTR(-ECHILD); in jffs2_get_acl()
199 return ERR_PTR(-ENOMEM); in jffs2_get_acl()
207 acl = ERR_PTR(rc); in jffs2_get_acl()
/openbmc/linux/fs/overlayfs/
H A Dexport.c315 return ERR_PTR(-EIO); in ovl_obtain_alias()
319 return ERR_PTR(-ENOMEM); in ovl_obtain_alias()
354 dentry = ERR_PTR(-ENOMEM); in ovl_obtain_alias()
441 this = ERR_PTR(err); in ovl_lookup_real_one()
507 this = ERR_PTR(-EIO); in ovl_lookup_real_inode()
522 struct dentry *ancestor = ERR_PTR(-EIO); in ovl_lookup_real_ancestor()
551 ancestor = ERR_PTR(-EXDEV); in ovl_lookup_real_ancestor()
666 return ERR_PTR(err); in ovl_lookup_real()
690 return ERR_PTR(-ENOENT); in ovl_get_dentry()
707 return ERR_PTR(-EACCES); in ovl_upper_fh_to_d()
[all …]
/openbmc/linux/crypto/
H A Dapi.c112 return ERR_PTR(-ENOMEM); in crypto_larval_alloc()
215 alg = ERR_PTR(-EINTR); in crypto_larval_wait()
217 alg = ERR_PTR(-ETIMEDOUT); in crypto_larval_wait()
219 alg = ERR_PTR(-ENOENT); in crypto_larval_wait()
224 alg = ERR_PTR(-EAGAIN); in crypto_larval_wait()
226 alg = ERR_PTR(-EAGAIN); in crypto_larval_wait()
228 alg = ERR_PTR(-EAGAIN); in crypto_larval_wait()
256 alg = ERR_PTR(-ENOENT); in crypto_alg_lookup()
263 alg = ERR_PTR(-ELIBBAD); in crypto_alg_lookup()
277 return ERR_PTR(-ENOENT); in crypto_larval_lookup()
[all …]
/openbmc/linux/drivers/crypto/hisilicon/
H A Dsgl.c66 return ERR_PTR(-EINVAL); in hisi_acc_create_sgl_pool()
84 return ERR_PTR(-EINVAL); in hisi_acc_create_sgl_pool()
88 return ERR_PTR(-ENOMEM); in hisi_acc_create_sgl_pool()
129 return ERR_PTR(-ENOMEM); in hisi_acc_create_sgl_pool()
165 return ERR_PTR(-EINVAL); in acc_get_sgl()
232 return ERR_PTR(-EINVAL); in hisi_acc_sg_buf_map_to_hw_sgl()
239 return ERR_PTR(-EINVAL); in hisi_acc_sg_buf_map_to_hw_sgl()
244 return ERR_PTR(-EINVAL); in hisi_acc_sg_buf_map_to_hw_sgl()
251 return ERR_PTR(-ENOMEM); in hisi_acc_sg_buf_map_to_hw_sgl()
/openbmc/linux/drivers/phy/
H A Dphy-core.c130 return pl ? pl->phy : ERR_PTR(-ENODEV); in phy_find()
149 return ERR_PTR(-EPROBE_DEFER); in of_phy_provider_lookup()
579 return ERR_PTR(-ENODEV); in _of_phy_get()
583 phy = ERR_PTR(-ENODEV); in _of_phy_get()
590 phy = ERR_PTR(-EPROBE_DEFER); in _of_phy_get()
596 phy = ERR_PTR(-ENODEV); in _of_phy_get()
635 return ERR_PTR(-EPROBE_DEFER); in of_phy_get()
725 return ERR_PTR(-ENODEV); in of_phy_simple_xlate()
755 return ERR_PTR(-EINVAL); in phy_get()
763 return ERR_PTR(-EPROBE_DEFER); in phy_get()
[all …]
/openbmc/linux/arch/s390/kernel/
H A Dkexec_elf.c82 return ERR_PTR(-EINVAL); in s390_elf_load()
85 return ERR_PTR(-EINVAL); in s390_elf_load()
90 return ERR_PTR(-EINVAL); in s390_elf_load()
96 return ERR_PTR(-EINVAL); in s390_elf_load()
99 return ERR_PTR(-EINVAL); in s390_elf_load()
105 return ERR_PTR(-EINVAL); in s390_elf_load()
/openbmc/linux/scripts/coccinelle/api/
H A Derr_cast.cocci3 /// Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
12 // Keywords: ERR_PTR, PTR_ERR, ERR_CAST
26 * ERR_PTR(PTR_ERR(x))
32 - ERR_PTR(PTR_ERR(x))
40 ERR_PTR@p(PTR_ERR(x))
/openbmc/linux/fs/ocfs2/
H A Dexport.c46 result = ERR_PTR(-ESTALE); in ocfs2_get_dentry()
100 result = ERR_PTR(status); in ocfs2_get_dentry()
116 result = ERR_PTR(-ESTALE); in ocfs2_get_dentry()
143 parent = ERR_PTR(status); in ocfs2_get_parent()
151 parent = ERR_PTR(status); in ocfs2_get_parent()
157 parent = ERR_PTR(-ENOENT); in ocfs2_get_parent()
167 parent = ERR_PTR(status); in ocfs2_get_parent()
174 parent = ERR_PTR(status); in ocfs2_get_parent()

12345678910>>...124