/kernel/linux/linux-6.6/drivers/phy/qualcomm/ |
H A D | phy-qcom-apq8064-sata.c | 88 int ret = 0; in qcom_apq8064_sata_phy_init() local 135 ret = poll_timeout(base + UNIPHY_PLL_STATUS, UNIPHY_PLL_LOCK); in qcom_apq8064_sata_phy_init() 136 if (ret) { in qcom_apq8064_sata_phy_init() 138 return ret; in qcom_apq8064_sata_phy_init() 142 ret = poll_timeout(base + SATA_PHY_TX_IMCAL_STAT, SATA_PHY_TX_CAL); in qcom_apq8064_sata_phy_init() 143 if (ret) { in qcom_apq8064_sata_phy_init() 145 return ret; in qcom_apq8064_sata_phy_init() 149 ret = poll_timeout(base + SATA_PHY_RX_IMCAL_STAT, SATA_PHY_RX_CAL); in qcom_apq8064_sata_phy_init() 150 if (ret) { in qcom_apq8064_sata_phy_init() 152 return ret; in qcom_apq8064_sata_phy_init() 206 int ret; qcom_apq8064_sata_phy_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/phy/hisilicon/ |
H A D | phy-histb-combphy.c | 110 int ret; in histb_combphy_init() local 112 ret = histb_combphy_set_mode(priv); in histb_combphy_init() 113 if (ret) in histb_combphy_init() 114 return ret; in histb_combphy_init() 121 ret = clk_prepare_enable(priv->ref_clk); in histb_combphy_init() 122 if (ret) in histb_combphy_init() 123 return ret; in histb_combphy_init() 200 int ret; in histb_combphy_probe() local 208 ret = PTR_ERR(priv->mmio); in histb_combphy_probe() 209 return ret; in histb_combphy_probe() [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A D | scompress.c | 103 int ret = 0; in crypto_scomp_init_tfm() local 107 ret = crypto_scomp_alloc_scratches(); in crypto_scomp_init_tfm() 110 return ret; in crypto_scomp_init_tfm() 121 int ret; in scomp_acomp_comp_decomp() local 139 ret = crypto_scomp_compress(scomp, scratch->src, req->slen, in scomp_acomp_comp_decomp() 142 ret = crypto_scomp_decompress(scomp, scratch->src, req->slen, in scomp_acomp_comp_decomp() 144 if (!ret) { in scomp_acomp_comp_decomp() 148 ret = -ENOMEM; in scomp_acomp_comp_decomp() 152 ret = -ENOSPC; in scomp_acomp_comp_decomp() 160 return ret; in scomp_acomp_comp_decomp() 282 int i, ret; crypto_register_scomps() local [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/mthca/ |
H A D | mthca_mad.c | 53 int ret; in mthca_update_rate() local 59 ret = ib_query_port(&dev->ib_dev, port_num, tprops); in mthca_update_rate() 60 if (ret) { in mthca_update_rate() 62 "ib_query_port failed (%d) forport %d\n", ret, in mthca_update_rate() 72 return ret; in mthca_update_rate() 171 int ret; in forward_trap() local 189 ret = ib_post_send_mad(send_buf, NULL); in forward_trap() 191 ret = -EINVAL; in forward_trap() 194 if (ret) in forward_trap() 287 int ret; in mthca_create_agents() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/ |
H A D | intel_gsc.c | 172 int ret; in gsc_init_one() local 214 ret = gsc_irq_init(intf->irq); in gsc_init_one() 215 if (ret < 0) { in gsc_init_one() 216 drm_err(&i915->drm, "gsc irq init failed %d\n", ret); in gsc_init_one() 253 ret = auxiliary_device_init(aux_dev); in gsc_init_one() 254 if (ret < 0) { in gsc_init_one() 255 drm_err(&i915->drm, "gsc aux init failed %d\n", ret); in gsc_init_one() 266 ret = auxiliary_device_add(aux_dev); in gsc_init_one() 267 if (ret < 0) { in gsc_init_one() 268 drm_err(&i915->drm, "gsc aux add failed %d\n", ret); in gsc_init_one() 286 int ret; gsc_irq_handler() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/mgag200/ |
H A D | mgag200_drv.c | 166 int ret; in mgag200_device_init() local 171 ret = drmm_mutex_init(dev, &mdev->rmmio_lock); in mgag200_device_init() 172 if (ret) in mgag200_device_init() 173 return ret; in mgag200_device_init() 219 int ret; in mgag200_pci_probe() local 221 ret = drm_aperture_remove_conflicting_pci_framebuffers(pdev, &mgag200_driver); in mgag200_pci_probe() 222 if (ret) in mgag200_pci_probe() 223 return ret; in mgag200_pci_probe() 225 ret = pcim_enable_device(pdev); in mgag200_pci_probe() 226 if (ret) in mgag200_pci_probe() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | object.c | 184 int ret; in nvkm_object_fini() local 189 ret = nvkm_object_fini(child, suspend); in nvkm_object_fini() 190 if (ret && suspend) in nvkm_object_fini() 196 ret = object->func->fini(object, suspend); in nvkm_object_fini() 197 if (ret) { in nvkm_object_fini() 198 nvif_error(object, "%s failed with %d\n", action, ret); in nvkm_object_fini() 218 return ret; in nvkm_object_fini() 226 int ret; in nvkm_object_init() local 231 ret = object->func->init(object); in nvkm_object_init() 232 if (ret) in nvkm_object_init() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/ |
H A D | sun8i_tcon_top.c | 104 int ret, index; in sun8i_tcon_top_register_gate() local 112 ret = of_property_read_string_index(dev->of_node, in sun8i_tcon_top_register_gate() 115 if (ret) in sun8i_tcon_top_register_gate() 116 return ERR_PTR(ret); in sun8i_tcon_top_register_gate() 132 int ret, i; in sun8i_tcon_top_bind() local 166 ret = reset_control_deassert(tcon_top->rst); in sun8i_tcon_top_bind() 167 if (ret) { in sun8i_tcon_top_bind() 169 return ret; in sun8i_tcon_top_bind() 172 ret = clk_prepare_enable(tcon_top->bus); in sun8i_tcon_top_bind() 173 if (ret) { in sun8i_tcon_top_bind() [all...] |
H A D | sun4i_hdmi_i2c.c | 151 int err, i, ret = num; in sun4i_hdmi_i2c_xfer() local 179 ret = err; in sun4i_hdmi_i2c_xfer() 185 return ret; in sun4i_hdmi_i2c_xfer() 290 int ret = 0; in sun4i_hdmi_i2c_create() local 292 ret = sun4i_ddc_create(hdmi, hdmi->ddc_parent_clk); in sun4i_hdmi_i2c_create() 293 if (ret) in sun4i_hdmi_i2c_create() 294 return ret; in sun4i_hdmi_i2c_create() 296 ret = sun4i_hdmi_init_regmap_fields(hdmi); in sun4i_hdmi_i2c_create() 297 if (ret) in sun4i_hdmi_i2c_create() 298 return ret; in sun4i_hdmi_i2c_create() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/vkms/ |
H A D | vkms_crtc.c | 19 bool ret, fence_cookie; in vkms_vblank_simulate() local 29 ret = drm_crtc_handle_vblank(crtc); in vkms_vblank_simulate() 30 if (!ret) in vkms_vblank_simulate() 52 ret = queue_work(output->composer_workq, &state->composer_work); in vkms_vblank_simulate() 53 if (!ret) in vkms_vblank_simulate() 184 int i = 0, ret; in vkms_crtc_atomic_check() local 189 ret = drm_atomic_add_affected_planes(crtc_state->state, crtc); in vkms_crtc_atomic_check() 190 if (ret < 0) in vkms_crtc_atomic_check() 191 return ret; in vkms_crtc_atomic_check() 282 int ret; in vkms_crtc_init() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/tiny/ |
H A D | mi0283qt.c | 58 int ret, idx; in mi0283qt_enable() local 65 ret = mipi_dbi_poweron_conditional_reset(dbidev); in mi0283qt_enable() 66 if (ret < 0) in mi0283qt_enable() 68 if (ret == 1) in mi0283qt_enable() 185 int ret; in mi0283qt_probe() local 213 ret = mipi_dbi_spi_init(spi, dbi, dc); in mi0283qt_probe() 214 if (ret) in mi0283qt_probe() 215 return ret; in mi0283qt_probe() 217 ret = mipi_dbi_dev_init(dbidev, &mi0283qt_pipe_funcs, &mi0283qt_mode, rotation); in mi0283qt_probe() 218 if (ret) in mi0283qt_probe() [all...] |
/kernel/linux/linux-6.6/drivers/iio/adc/ |
H A D | spear_adc.c | 194 int ret = 0; in spear_adc_write_raw() local 204 ret = -EINVAL; in spear_adc_write_raw() 212 return ret; in spear_adc_write_raw() 273 int ret = -ENODEV; in spear_adc_probe() local 306 ret = clk_prepare_enable(st->clk); in spear_adc_probe() 307 if (ret) { in spear_adc_probe() 309 return ret; in spear_adc_probe() 314 ret = irq; in spear_adc_probe() 318 ret = devm_request_irq(dev, irq, spear_adc_isr, 0, SPEAR_ADC_MOD_NAME, in spear_adc_probe() 320 if (ret < in spear_adc_probe() [all...] |
/kernel/linux/linux-6.6/drivers/input/keyboard/ |
H A D | mpr121_touchkey.c | 177 int i, t, vdd, ret; in mpr121_phys_init() local 182 ret = i2c_smbus_write_byte_data(client, t, TOUCH_THRESHOLD); in mpr121_phys_init() 183 if (ret < 0) in mpr121_phys_init() 185 ret = i2c_smbus_write_byte_data(client, t + 1, in mpr121_phys_init() 187 if (ret < 0) in mpr121_phys_init() 194 ret = i2c_smbus_write_byte_data(client, reg->addr, reg->val); in mpr121_phys_init() 195 if (ret < 0) in mpr121_phys_init() 209 ret = i2c_smbus_write_byte_data(client, AUTO_CONFIG_USL_ADDR, usl); in mpr121_phys_init() 210 ret |= i2c_smbus_write_byte_data(client, AUTO_CONFIG_LSL_ADDR, lsl); in mpr121_phys_init() 211 ret | in mpr121_phys_init() [all...] |
/kernel/linux/linux-6.6/drivers/input/touchscreen/ |
H A D | cy8ctma140.c | 114 int ret; in cy8ctma140_irq_thread() local 116 ret = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); in cy8ctma140_irq_thread() 117 if (ret != ARRAY_SIZE(msg)) { in cy8ctma140_irq_thread() 118 if (ret < 0) in cy8ctma140_irq_thread() 119 dev_err(ts->dev, "error reading message: %d\n", ret); in cy8ctma140_irq_thread() 147 int ret; in cy8ctma140_init() local 150 ret = i2c_master_send(ts->client, addr, 1); in cy8ctma140_init() 151 if (ret < 0) { in cy8ctma140_init() 153 return ret; in cy8ctma140_init() 155 ret in cy8ctma140_init() [all...] |
/kernel/linux/linux-6.6/drivers/input/ |
H A D | ff-core.c | 94 int ret = 0; in input_ff_upload() local 115 ret = compat_effect(ff, effect); in input_ff_upload() 116 if (ret) in input_ff_upload() 117 return ret; in input_ff_upload() 128 ret = -ENOSPC; in input_ff_upload() 138 ret = check_effect_access(ff, id, file); in input_ff_upload() 139 if (ret) in input_ff_upload() 145 ret = -EINVAL; in input_ff_upload() 150 ret = ff->upload(dev, effect, old); in input_ff_upload() 151 if (ret) in input_ff_upload() 211 int ret; input_ff_erase() local [all...] |
/kernel/linux/linux-6.6/drivers/iommu/ |
H A D | io-pgfault.c | 145 int ret; in iommu_queue_iopf() local 187 ret = -ENOMEM; in iommu_queue_iopf() 214 return ret; in iommu_queue_iopf() 232 int ret = 0; in iopf_queue_flush_dev() local 244 ret = -ENODEV; in iopf_queue_flush_dev() 247 return ret; in iopf_queue_flush_dev() 291 int ret = -EBUSY; in iopf_queue_add_device() local 311 ret = 0; in iopf_queue_add_device() 316 if (ret) in iopf_queue_add_device() 319 return ret; in iopf_queue_add_device() 334 int ret = -EINVAL; iopf_queue_remove_device() local [all...] |
/kernel/linux/linux-6.6/net/sched/ |
H A D | act_connmark.c | 110 int ret = 0, err; in tcf_connmark_init() local 116 ret = nla_parse_nested_deprecated(tb, TCA_CONNMARK_MAX, nla, in tcf_connmark_init() 118 if (ret < 0) in tcf_connmark_init() 119 return ret; in tcf_connmark_init() 130 ret = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_connmark_init() 131 if (!ret) { in tcf_connmark_init() 132 ret = tcf_idr_create_from_flags(tn, index, est, a, in tcf_connmark_init() 134 if (ret) { in tcf_connmark_init() 136 err = ret; in tcf_connmark_init() 145 ret in tcf_connmark_init() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | gup_longterm.c | 41 int ret; in get_fs_type() local 44 ret = fstatfs(fd, &fs); in get_fs_type() 45 } while (ret && errno == EINTR); in get_fs_type() 47 return ret ? 0 : fs.f_type; in get_fs_type() 96 int ret; in do_test() local 159 ret = ioctl(gup_fd, PIN_LONGTERM_TEST_START, &args); in do_test() 160 if (ret && errno == EINVAL) { in do_test() 163 } else if (ret && errno == EFAULT) { in do_test() 166 } else if (ret) { in do_test() 196 ret in do_test() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | psock_snd.c | 186 int ret; in do_send() local 198 ret = write(fd, buf, len); in do_send() 207 ret = sendto(fd, buf, len, 0, (void *)&laddr, sizeof(laddr)); in do_send() 210 if (ret == -1) in do_send() 212 if (ret != len) in do_send() 213 error(1, 0, "write: %u %u", ret, len); in do_send() 215 fprintf(stderr, "tx: %u\n", ret); in do_send() 276 int ret; in do_rx() local 278 ret = recv(fd, rbuf, sizeof(rbuf), 0); in do_rx() 279 if (ret in do_rx() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/x86/ |
H A D | entry_from_vm86.c | 138 long ret; in do_test() local 142 ret = vm86(VM86_ENTER, v86); in do_test() 144 if (ret == -1 && (errno == ENOSYS || errno == EPERM)) { in do_test() 150 if (VM86_TYPE(ret) == VM86_INTx) { in do_test() 152 int trapno = VM86_ARG(ret); in do_test() 163 } else if (VM86_TYPE(ret) == VM86_UNKNOWN) { in do_test() 165 } else if (VM86_TYPE(ret) == VM86_TRAP) { in do_test() 167 VM86_ARG(ret)); in do_test() 168 } else if (VM86_TYPE(ret) == VM86_SIGNAL) { in do_test() 170 } else if (VM86_TYPE(ret) in do_test() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/breakpoints/ |
H A D | breakpoint_test.c | 44 int ret; in set_breakpoint_addr() local 46 ret = ptrace(PTRACE_POKEUSER, child_pid, in set_breakpoint_addr() 48 if (ret) in set_breakpoint_addr() 56 int ret; in toggle_breakpoint() local 108 ret = ptrace(PTRACE_POKEUSER, child_pid, in toggle_breakpoint() 110 if (ret) { in toggle_breakpoint() 207 int ret; in trigger_tests() local 209 ret = ptrace(PTRACE_TRACEME, 0, NULL, 0); in trigger_tests() 210 if (ret) { in trigger_tests() 268 int ret; in check_success() local 390 int ret; main() local [all...] |
/kernel/linux/linux-6.6/sound/hda/ |
H A D | hdac_component.c | 187 int ret; in hdac_component_master_bind() local 192 ret = component_bind_all(dev, acomp); in hdac_component_master_bind() 193 if (ret < 0) in hdac_component_master_bind() 194 return ret; in hdac_component_master_bind() 197 ret = -EINVAL; in hdac_component_master_bind() 203 ret = -ENODEV; in hdac_component_master_bind() 208 ret = acomp->audio_ops->master_bind(dev, acomp); in hdac_component_master_bind() 209 if (ret < 0) in hdac_component_master_bind() 222 return ret; in hdac_component_master_bind() 291 int ret; in snd_hdac_acomp_init() local [all...] |
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A D | sti-sas.c | 106 int ret; in sti_sas_init_sas_registers() local 113 ret = snd_soc_component_update_bits(component, STIH407_AUDIO_GLUE_CTRL, in sti_sas_init_sas_registers() 116 if (!ret) in sti_sas_init_sas_registers() 118 ret = snd_soc_component_update_bits(component, STIH407_AUDIO_GLUE_CTRL, in sti_sas_init_sas_registers() 120 if (ret < 0) { in sti_sas_init_sas_registers() 122 return ret; in sti_sas_init_sas_registers() 127 ret = snd_soc_component_update_bits(component, STIH407_AUDIO_DAC_CTRL, in sti_sas_init_sas_registers() 131 if (!ret) in sti_sas_init_sas_registers() 132 ret = snd_soc_component_update_bits(component, STIH407_AUDIO_DAC_CTRL, in sti_sas_init_sas_registers() 135 if (!ret) in sti_sas_init_sas_registers() [all...] |
H A D | cs4341.c | 122 int ret; in cs4341_mute() local 124 ret = snd_soc_component_update_bits(component, CS4341_REG_VOLA, in cs4341_mute() 127 if (ret < 0) in cs4341_mute() 128 return ret; in cs4341_mute() 275 int ret; in cs4341_spi_probe() local 285 ret = spi_setup(spi); in cs4341_spi_probe() 286 if (ret) in cs4341_spi_probe() 287 return ret; in cs4341_spi_probe() 324 int ret = 0; in cs4341_init() local 327 ret in cs4341_init() [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | bootconfig.c | 295 int depth = 0, ret = 0, total = 0; in xbc_node_compose_key_after() local 314 ret = snprintf(buf, size, "%s%s", xbc_node_get_data(node), in xbc_node_compose_key_after() 316 if (ret < 0) in xbc_node_compose_key_after() 317 return ret; in xbc_node_compose_key_after() 318 if (ret > size) { in xbc_node_compose_key_after() 321 size -= ret; in xbc_node_compose_key_after() 322 buf += ret; in xbc_node_compose_key_after() 324 total += ret; in xbc_node_compose_key_after() 513 char *ret; in skip_comment() local 515 ret in skip_comment() 678 int ret; __xbc_parse_keys() local 697 int c, ret; xbc_parse_kv() local 748 int ret; xbc_parse_key() local 764 int ret; xbc_open_brace() local 776 int ret; xbc_close_brace() local 852 int ret = 0, c; xbc_parse_tree() local 935 int ret; xbc_init() local [all...] |