Home
last modified time | relevance | path

Searched refs:PTR_ERR (Results 1 – 25 of 3960) sorted by relevance

12345678910>>...159

/openbmc/linux/drivers/gpu/drm/i915/gem/selftests/
H A Di915_gem_dmabuf.c25 return PTR_ERR(obj); in igt_dmabuf_export()
32 return PTR_ERR(dmabuf); in igt_dmabuf_export()
49 return PTR_ERR(obj); in igt_dmabuf_import_self()
55 err = PTR_ERR(dmabuf); in igt_dmabuf_import_self()
63 err = PTR_ERR(import); in igt_dmabuf_import_self()
109 PTR_ERR(obj)); in igt_dmabuf_import_same_driver_lmem()
110 err = PTR_ERR(obj); in igt_dmabuf_import_same_driver_lmem()
165 err = PTR_ERR(ctx); in verify_access()
179 err = PTR_ERR(vma); in verify_access()
235 err = PTR_ERR(obj); in igt_dmabuf_import_same_driver()
[all …]
H A Di915_gem_context.c57 return PTR_ERR(file); in live_nop_switch()
68 err = PTR_ERR(ctx[n]); in live_nop_switch()
84 err = PTR_ERR(this); in live_nop_switch()
313 err = PTR_ERR(ctx); in live_parallel_switch()
342 err = PTR_ERR(ctx); in live_parallel_switch()
352 err = PTR_ERR(ce); in live_parallel_switch()
453 return PTR_ERR(vma); in gpu_fill()
993 err = PTR_ERR(rq); in emit_rpcs_query()
1066 ret = PTR_ERR(rq); in __sseu_prepare()
1558 err = PTR_ERR(rq); in write_to_scratch()
[all …]
/openbmc/linux/drivers/pci/controller/
H A Dpcie-rockchip.c41 return PTR_ERR(rockchip->reg_base); in rockchip_pcie_parse_dt()
53 return PTR_ERR(rockchip->apb_base); in rockchip_pcie_parse_dt()
76 return PTR_ERR(rockchip->core_rst); in rockchip_pcie_parse_dt()
83 return PTR_ERR(rockchip->mgmt_rst); in rockchip_pcie_parse_dt()
98 return PTR_ERR(rockchip->pipe_rst); in rockchip_pcie_parse_dt()
105 return PTR_ERR(rockchip->pm_rst); in rockchip_pcie_parse_dt()
112 return PTR_ERR(rockchip->pclk_rst); in rockchip_pcie_parse_dt()
330 if (PTR_ERR(phy) == -EPROBE_DEFER) in rockchip_pcie_get_phys()
331 return PTR_ERR(phy); in rockchip_pcie_get_phys()
346 i, PTR_ERR(phy)); in rockchip_pcie_get_phys()
[all …]
/openbmc/linux/arch/m68k/amiga/
H A Dplatform.c147 return PTR_ERR(pdev); in amiga_init_devices()
156 return PTR_ERR(pdev); in amiga_init_devices()
165 return PTR_ERR(pdev); in amiga_init_devices()
172 return PTR_ERR(pdev); in amiga_init_devices()
180 return PTR_ERR(pdev); in amiga_init_devices()
188 return PTR_ERR(pdev); in amiga_init_devices()
199 return PTR_ERR(pdev); in amiga_init_devices()
212 return PTR_ERR(pdev); in amiga_init_devices()
219 return PTR_ERR(pdev); in amiga_init_devices()
226 return PTR_ERR(pdev); in amiga_init_devices()
[all …]
/openbmc/linux/arch/s390/hypfs/
H A Dhypfs_vm_fs.c25 return PTR_ERR(rc); \
44 return PTR_ERR(guest_dir); in hypfs_vm_create_guest()
50 return PTR_ERR(cpus_dir); in hypfs_vm_create_guest()
67 return PTR_ERR(mem_dir); in hypfs_vm_create_guest()
76 return PTR_ERR(samples_dir); in hypfs_vm_create_guest()
95 return PTR_ERR(data); in hypfs_vm_create_files()
100 rc = PTR_ERR(dir); in hypfs_vm_create_files()
105 rc = PTR_ERR(file); in hypfs_vm_create_files()
112 rc = PTR_ERR(dir); in hypfs_vm_create_files()
117 rc = PTR_ERR(file); in hypfs_vm_create_files()
[all …]
/openbmc/linux/scripts/coccinelle/tests/
H A Dodd_ptr_err.cocci2 /// PTR_ERR should access the value just tested by IS_ERR
24 PTR_ERR@p(x)
36 PTR_ERR@p(\(e1 ? e2 : x\|e1 ? x : e2\))
38 PTR_ERR@p(x)
52 PTR_ERR(x)
54 PTR_ERR@p(
74 PTR_ERR(x)
76 PTR_ERR@j1@p(
92 * PTR_ERR@j1@p(
105 msg = "inconsistent IS_ERR and PTR_ERR"
[all …]
/openbmc/linux/drivers/misc/
H A Dhisi_hikey_usb.c159 PTR_ERR(hisi_hikey_usb->otg_switch)); in hisi_hikey_usb_of_role_switch()
160 return PTR_ERR(hisi_hikey_usb->otg_switch); in hisi_hikey_usb_of_role_switch()
167 PTR_ERR(hisi_hikey_usb->typec_vbus)); in hisi_hikey_usb_of_role_switch()
168 return PTR_ERR(hisi_hikey_usb->typec_vbus); in hisi_hikey_usb_of_role_switch()
176 PTR_ERR(hisi_hikey_usb->reset)); in hisi_hikey_usb_of_role_switch()
177 return PTR_ERR(hisi_hikey_usb->reset); in hisi_hikey_usb_of_role_switch()
185 PTR_ERR(hisi_hikey_usb->dev_role_sw)); in hisi_hikey_usb_of_role_switch()
201 PTR_ERR(hisi_hikey_usb->hub_role_sw)); in hisi_hikey_usb_of_role_switch()
226 return PTR_ERR(hisi_hikey_usb->regulator); in hisi_hikey_usb_probe()
229 PTR_ERR(hisi_hikey_usb->regulator)); in hisi_hikey_usb_probe()
[all …]
/openbmc/linux/drivers/net/wireless/ath/ath10k/
H A Dwmi-ops.h475 return PTR_ERR(skb); in ath10k_wmi_mgmt_tx_send()
497 return PTR_ERR(skb); in ath10k_wmi_mgmt_tx()
526 return PTR_ERR(skb); in ath10k_wmi_pdev_set_regdomain()
542 return PTR_ERR(skb); in ath10k_wmi_pdev_set_base_macaddr()
558 return PTR_ERR(skb); in ath10k_wmi_pdev_suspend_target()
573 return PTR_ERR(skb); in ath10k_wmi_pdev_resume_target()
588 return PTR_ERR(skb); in ath10k_wmi_pdev_set_param()
603 return PTR_ERR(skb); in ath10k_wmi_cmd_init()
619 return PTR_ERR(skb); in ath10k_wmi_start_scan()
634 return PTR_ERR(skb); in ath10k_wmi_stop_scan()
[all …]
/openbmc/linux/drivers/gpu/drm/sun4i/
H A Dsun4i_hdmi_i2c.c204 return PTR_ERR(hdmi->field_ddc_en); in sun4i_hdmi_init_regmap_fields()
210 return PTR_ERR(hdmi->field_ddc_start); in sun4i_hdmi_init_regmap_fields()
216 return PTR_ERR(hdmi->field_ddc_reset); in sun4i_hdmi_init_regmap_fields()
222 return PTR_ERR(hdmi->field_ddc_addr_reg); in sun4i_hdmi_init_regmap_fields()
228 return PTR_ERR(hdmi->field_ddc_slave_addr); in sun4i_hdmi_init_regmap_fields()
234 return PTR_ERR(hdmi->field_ddc_int_mask); in sun4i_hdmi_init_regmap_fields()
240 return PTR_ERR(hdmi->field_ddc_int_status); in sun4i_hdmi_init_regmap_fields()
246 return PTR_ERR(hdmi->field_ddc_fifo_clear); in sun4i_hdmi_init_regmap_fields()
270 return PTR_ERR(hdmi->field_ddc_cmd); in sun4i_hdmi_init_regmap_fields()
276 return PTR_ERR(hdmi->field_ddc_sda_en); in sun4i_hdmi_init_regmap_fields()
[all …]
/openbmc/linux/drivers/ata/
H A Dahci_mtk.c53 if (PTR_ERR(plat->axi_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets()
54 return PTR_ERR(plat->axi_rst); in mtk_ahci_platform_resets()
57 if (PTR_ERR(plat->sw_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets()
58 return PTR_ERR(plat->sw_rst); in mtk_ahci_platform_resets()
61 if (PTR_ERR(plat->reg_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets()
62 return PTR_ERR(plat->reg_rst); in mtk_ahci_platform_resets()
115 return PTR_ERR(plat->mode); in mtk_ahci_parse_property()
138 return PTR_ERR(hpriv); in mtk_ahci_probe()
/openbmc/linux/drivers/hv/
H A Dhv_debugfs.c68 return PTR_ERR(buffer_file); in hv_debug_delay_files()
76 return PTR_ERR(message_file); in hv_debug_delay_files()
95 return PTR_ERR(test_state); in hv_debug_set_test_state()
121 return PTR_ERR(dev_root); in hv_debug_add_dev_dir()
130 return PTR_ERR(delay); in hv_debug_add_dev_dir()
137 return PTR_ERR(hv_debug_root); in hv_debug_add_dev_dir()
175 return PTR_ERR(hv_debug_root); in hv_debug_init()
/openbmc/linux/security/keys/
H A Dkeyctl.c142 ret = PTR_ERR(key_ref); in SYSCALL_DEFINE5()
217 ret = PTR_ERR(ktype); in SYSCALL_DEFINE4()
226 ret = PTR_ERR(key); in SYSCALL_DEFINE4()
267 ret = PTR_ERR(key_ref); in keyctl_get_keyring_ID()
298 ret = PTR_ERR(name); in keyctl_join_session_keyring()
353 ret = PTR_ERR(key_ref); in keyctl_update_key()
387 ret = PTR_ERR(key_ref); in keyctl_revoke_key()
430 ret = PTR_ERR(key_ref); in keyctl_invalidate_key()
528 ret = PTR_ERR(key_ref); in keyctl_keyring_link()
616 ret = PTR_ERR(to_ref); in keyctl_keyring_move()
[all …]
/openbmc/linux/drivers/phy/
H A Dphy-pistachio-usb.c149 PTR_ERR(p_phy->cr_top)); in pistachio_usb_phy_probe()
150 return PTR_ERR(p_phy->cr_top); in pistachio_usb_phy_probe()
156 PTR_ERR(p_phy->phy_clk)); in pistachio_usb_phy_probe()
157 return PTR_ERR(p_phy->phy_clk); in pistachio_usb_phy_probe()
170 PTR_ERR(phy)); in pistachio_usb_phy_probe()
171 return PTR_ERR(phy); in pistachio_usb_phy_probe()
179 PTR_ERR(provider)); in pistachio_usb_phy_probe()
180 return PTR_ERR(provider); in pistachio_usb_phy_probe()
/openbmc/linux/drivers/clk/
H A Dclk-ast2600.c521 return PTR_ERR(hw); in aspeed_g6_clk_probe()
532 return PTR_ERR(hw); in aspeed_g6_clk_probe()
539 return PTR_ERR(hw); in aspeed_g6_clk_probe()
547 return PTR_ERR(hw); in aspeed_g6_clk_probe()
553 return PTR_ERR(hw); in aspeed_g6_clk_probe()
562 return PTR_ERR(hw); in aspeed_g6_clk_probe()
570 return PTR_ERR(hw); in aspeed_g6_clk_probe()
576 return PTR_ERR(hw); in aspeed_g6_clk_probe()
582 return PTR_ERR(hw); in aspeed_g6_clk_probe()
590 return PTR_ERR(hw); in aspeed_g6_clk_probe()
[all …]
H A Dclk-conf.c43 if (PTR_ERR(pclk) != -EPROBE_DEFER) in __set_clk_parents()
46 return PTR_ERR(pclk); in __set_clk_parents()
61 if (PTR_ERR(clk) != -EPROBE_DEFER) in __set_clk_parents()
64 rc = PTR_ERR(clk); in __set_clk_parents()
109 if (PTR_ERR(clk) != -EPROBE_DEFER) in __set_clk_rates()
112 return PTR_ERR(clk); in __set_clk_rates()
/openbmc/u-boot/drivers/firmware/
H A Dti_sci.c242 ret = PTR_ERR(xfer); in ti_sci_cmd_get_revision()
308 ret = PTR_ERR(xfer); in cmd_set_board_config_using_msg()
428 ret = PTR_ERR(xfer); in ti_sci_set_device_state()
484 ret = PTR_ERR(xfer); in ti_sci_get_device_state()
740 ret = PTR_ERR(xfer); in ti_sci_cmd_set_device_resets()
810 ret = PTR_ERR(xfer); in ti_sci_set_clock_state()
868 ret = PTR_ERR(xfer); in ti_sci_cmd_get_clock_state()
1084 ret = PTR_ERR(xfer); in ti_sci_cmd_clk_set_parent()
1137 ret = PTR_ERR(xfer); in ti_sci_cmd_clk_get_parent()
1192 ret = PTR_ERR(xfer); in ti_sci_cmd_clk_get_num_parents()
[all …]
/openbmc/linux/drivers/acpi/
H A Dacpi_configfs.c82 return PTR_ERR(h); in acpi_table_aml_read()
104 return PTR_ERR(h); in acpi_table_signature_show()
114 return PTR_ERR(h); in acpi_table_length_show()
124 return PTR_ERR(h); in acpi_table_revision_show()
134 return PTR_ERR(h); in acpi_table_oem_id_show()
144 return PTR_ERR(h); in acpi_table_oem_table_id_show()
154 return PTR_ERR(h); in acpi_table_oem_revision_show()
165 return PTR_ERR(h); in acpi_table_asl_compiler_id_show()
176 return PTR_ERR(h); in acpi_table_asl_compiler_revision_show()
270 return PTR_ERR(acpi_table_group); in acpi_configfs_init()
/openbmc/linux/fs/ntfs/
H A Dbitmap.c65 "%li), aborting.", PTR_ERR(page)); in __ntfs_bitmap_set_bits_in_run()
66 return PTR_ERR(page); in __ntfs_bitmap_set_bits_in_run()
158 return PTR_ERR(page); in __ntfs_bitmap_set_bits_in_run()
167 "%li), aborting.", PTR_ERR(page)); in __ntfs_bitmap_set_bits_in_run()
173 "Unmount and run chkdsk.", PTR_ERR(page), pos); in __ntfs_bitmap_set_bits_in_run()
176 return PTR_ERR(page); in __ntfs_bitmap_set_bits_in_run()
/openbmc/linux/drivers/net/ethernet/arc/
H A Demac_rockchip.c131 PTR_ERR(priv->grf)); in emac_rockchip_probe()
132 err = PTR_ERR(priv->grf); in emac_rockchip_probe()
142 PTR_ERR(priv->emac.clk)); in emac_rockchip_probe()
143 err = PTR_ERR(priv->emac.clk); in emac_rockchip_probe()
150 PTR_ERR(priv->refclk)); in emac_rockchip_probe()
151 err = PTR_ERR(priv->refclk); in emac_rockchip_probe()
164 if (PTR_ERR(priv->regulator) == -EPROBE_DEFER) { in emac_rockchip_probe()
206 PTR_ERR(priv->macclk)); in emac_rockchip_probe()
207 err = PTR_ERR(priv->macclk); in emac_rockchip_probe()
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_execlists.c129 err = PTR_ERR(ce); in live_sanitycheck()
135 err = PTR_ERR(rq); in live_sanitycheck()
203 err = PTR_ERR(tmp); in live_unlite_restore()
385 err = PTR_ERR(rq); in live_unlite_ring()
433 err = PTR_ERR(rq); in live_unlite_ring()
504 err = PTR_ERR(ce); in live_pin_rewind()
537 err = PTR_ERR(rq); in live_pin_rewind()
605 err = PTR_ERR(ce); in live_hold_reset()
613 err = PTR_ERR(rq); in live_hold_reset()
826 return PTR_ERR(cs); in emit_semaphore_chain()
[all …]
H A Dselftest_lrc.c88 return PTR_ERR(rq); in emit_semaphore_signal()
93 return PTR_ERR(cs); in emit_semaphore_signal()
116 return PTR_ERR(rq); in context_flush()
432 err = PTR_ERR(rq); in __live_lrc_state()
438 err = PTR_ERR(cs); in __live_lrc_state()
472 err = PTR_ERR(cs); in __live_lrc_state()
638 err = PTR_ERR(rq); in __live_lrc_gpr()
670 err = PTR_ERR(cs); in __live_lrc_gpr()
752 err = PTR_ERR(cs); in create_timestamp()
1415 err = PTR_ERR(B); in __lrc_isolation()
[all …]
/openbmc/linux/drivers/phy/allwinner/
H A Dphy-sun9i-usb.c130 return PTR_ERR(phy->clk); in sun9i_usb_phy_probe()
136 return PTR_ERR(phy->hsic_clk); in sun9i_usb_phy_probe()
142 return PTR_ERR(phy->reset); in sun9i_usb_phy_probe()
148 return PTR_ERR(phy->clk); in sun9i_usb_phy_probe()
154 return PTR_ERR(phy->reset); in sun9i_usb_phy_probe()
160 return PTR_ERR(phy->pmu); in sun9i_usb_phy_probe()
165 return PTR_ERR(phy->phy); in sun9i_usb_phy_probe()
/openbmc/linux/drivers/input/mouse/
H A Dgpio_mouse.c90 return PTR_ERR(gmouse->up); in gpio_mouse_probe()
93 return PTR_ERR(gmouse->down); in gpio_mouse_probe()
96 return PTR_ERR(gmouse->left); in gpio_mouse_probe()
99 return PTR_ERR(gmouse->right); in gpio_mouse_probe()
103 return PTR_ERR(gmouse->bleft); in gpio_mouse_probe()
107 return PTR_ERR(gmouse->bmiddle); in gpio_mouse_probe()
111 return PTR_ERR(gmouse->bright); in gpio_mouse_probe()
/openbmc/linux/drivers/bluetooth/
H A Dbtbcm.c154 err = PTR_ERR(skb); in btbcm_set_bdaddr()
172 err = PTR_ERR(skb); in btbcm_read_pcm_int_params()
200 err = PTR_ERR(skb); in btbcm_write_pcm_int_params()
222 err = PTR_ERR(skb); in btbcm_patchram()
257 err = PTR_ERR(skb); in btbcm_patchram()
300 PTR_ERR(skb)); in btbcm_read_local_name()
321 PTR_ERR(skb)); in btbcm_read_local_version()
341 PTR_ERR(skb)); in btbcm_read_verbose_config()
361 PTR_ERR(skb)); in btbcm_read_controller_features()
381 PTR_ERR(skb)); in btbcm_read_usb_product()
[all …]
/openbmc/linux/drivers/phy/socionext/
H A Dphy-uniphier-usb3hs.c109 return PTR_ERR(cell); in uniphier_u3hsphy_get_nvparam()
113 return PTR_ERR(buf); in uniphier_u3hsphy_get_nvparam()
342 return PTR_ERR(priv->base); in uniphier_u3hsphy_probe()
347 return PTR_ERR(priv->clk); in uniphier_u3hsphy_probe()
351 return PTR_ERR(priv->clk_ext); in uniphier_u3hsphy_probe()
355 return PTR_ERR(priv->rst); in uniphier_u3hsphy_probe()
360 return PTR_ERR(priv->clk_parent_gio); in uniphier_u3hsphy_probe()
370 return PTR_ERR(priv->clk_parent); in uniphier_u3hsphy_probe()
374 return PTR_ERR(priv->rst_parent); in uniphier_u3hsphy_probe()
379 return PTR_ERR(priv->vbus); in uniphier_u3hsphy_probe()
[all …]

12345678910>>...159