/kernel/linux/linux-5.10/drivers/phy/marvell/ |
H A D | phy-mvebu-a3700-utmi.c | 91 int ret = 0; in mvebu_a3700_utmi_phy_power_on() local 128 ret = readl_poll_timeout(utmi->regs + USB2_PHY_CAL_CTRL, reg, in mvebu_a3700_utmi_phy_power_on() 131 if (ret) { in mvebu_a3700_utmi_phy_power_on() 133 return ret; in mvebu_a3700_utmi_phy_power_on() 137 ret = readl_poll_timeout(utmi->regs + USB2_PHY_CAL_CTRL, reg, in mvebu_a3700_utmi_phy_power_on() 140 if (ret) { in mvebu_a3700_utmi_phy_power_on() 142 return ret; in mvebu_a3700_utmi_phy_power_on() 146 ret = readl_poll_timeout(utmi->regs + USB2_RX_CHAN_CTRL1, reg, in mvebu_a3700_utmi_phy_power_on() 149 if (ret) { in mvebu_a3700_utmi_phy_power_on() 151 return ret; in mvebu_a3700_utmi_phy_power_on() [all...] |
/kernel/linux/linux-5.10/drivers/phy/ti/ |
H A D | phy-da8xx-usb.c | 33 int ret; in da8xx_usb11_phy_power_on() local 35 ret = clk_prepare_enable(d_phy->usb11_clk); in da8xx_usb11_phy_power_on() 36 if (ret) in da8xx_usb11_phy_power_on() 37 return ret; in da8xx_usb11_phy_power_on() 65 int ret; in da8xx_usb20_phy_power_on() local 67 ret = clk_prepare_enable(d_phy->usb20_clk); in da8xx_usb20_phy_power_on() 68 if (ret) in da8xx_usb20_phy_power_on() 69 return ret; in da8xx_usb20_phy_power_on() 196 int ret; in da8xx_usb_phy_probe() local 198 ret in da8xx_usb_phy_probe() [all...] |
/kernel/linux/linux-5.10/drivers/thermal/intel/ |
H A D | intel_bxt_pmic_thermal.c | 162 int i, j, ret; in pmic_thermal_irq_handler() local 178 if (regmap_read(regmap, reg, &ret)) in pmic_thermal_irq_handler() 181 reg_val = (u8)ret; in pmic_thermal_irq_handler() 182 irq_stat = ((u8)ret & mask); in pmic_thermal_irq_handler() 192 if (regmap_read(regmap, evt_stat_reg, &ret)) in pmic_thermal_irq_handler() 212 int ret, irq, virq, i, j, pmic_irq_count; in pmic_thermal_probe() local 244 ret = devm_request_threaded_irq(&pdev->dev, virq, in pmic_thermal_probe() 248 if (ret) { in pmic_thermal_probe() 249 dev_err(dev, "request irq(%d) failed: %d\n", virq, ret); in pmic_thermal_probe() 250 return ret; in pmic_thermal_probe() [all...] |
/kernel/linux/linux-5.10/drivers/tty/serial/8250/ |
H A D | 8250_lpc18xx.c | 106 int irq, ret; in lpc18xx_serial_probe() local 141 ret = clk_prepare_enable(data->clk_reg); in lpc18xx_serial_probe() 142 if (ret) { in lpc18xx_serial_probe() 144 return ret; in lpc18xx_serial_probe() 147 ret = clk_prepare_enable(data->clk_uart); in lpc18xx_serial_probe() 148 if (ret) { in lpc18xx_serial_probe() 153 ret = of_alias_get_id(pdev->dev.of_node, "serial"); in lpc18xx_serial_probe() 154 if (ret >= 0) in lpc18xx_serial_probe() 155 uart.port.line = ret; in lpc18xx_serial_probe() 177 ret in lpc18xx_serial_probe() [all...] |
/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | ehci-omap.c | 93 int ret; in ehci_hcd_omap_probe() local 131 ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(32)); in ehci_hcd_omap_probe() 132 if (ret) in ehci_hcd_omap_probe() 133 return ret; in ehci_hcd_omap_probe() 135 ret = -ENODEV; in ehci_hcd_omap_probe() 160 ret = PTR_ERR(phy); in ehci_hcd_omap_probe() 161 if (ret == -ENODEV) { /* no PHY */ in ehci_hcd_omap_probe() 166 if (ret != -EPROBE_DEFER) in ehci_hcd_omap_probe() 168 i, ret); in ehci_hcd_omap_probe() 196 ret in ehci_hcd_omap_probe() [all...] |
/kernel/linux/linux-5.10/samples/configfs/ |
H A D | configfs_sample.c | 65 int ret; in childless_storeme_store() local 67 ret = kstrtoint(page, 10, &childless->storeme); in childless_storeme_store() 68 if (ret) in childless_storeme_store() 69 return ret; in childless_storeme_store() 142 int ret; in simple_child_storeme_store() local 144 ret = kstrtoint(page, 10, &simple_child->storeme); in simple_child_storeme_store() 145 if (ret) in simple_child_storeme_store() 146 return ret; in simple_child_storeme_store() 335 int ret, i; in configfs_example_init() local 342 ret in configfs_example_init() [all...] |
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/ |
H A D | gss_krb5_keys.c | 151 u32 ret = EINVAL; in krb5_derive_key() local 168 ret = ENOMEM; in krb5_derive_key() 219 ret = (*(gk5e->mk_key))(gk5e, &inblock, outkey); in krb5_derive_key() 220 if (ret) { in krb5_derive_key() 222 __func__, ret, gk5e->encrypt_name); in krb5_derive_key() 228 ret = 0; in krb5_derive_key() 239 return ret; in krb5_derive_key() 263 u32 ret = EINVAL; in gss_krb5_des3_make_key() local 290 ret = 0; in gss_krb5_des3_make_key() 292 return ret; in gss_krb5_des3_make_key() 302 u32 ret = EINVAL; gss_krb5_aes_make_key() local [all...] |
/kernel/linux/linux-5.10/sound/soc/intel/boards/ |
H A D | ehl_rt5660.c | 114 int ret; in rt5660_hw_params() local 116 ret = snd_soc_dai_set_sysclk(codec_dai, in rt5660_hw_params() 120 if (ret < 0) { in rt5660_hw_params() 121 dev_err(rtd->dev, "snd_soc_dai_set_sysclk err = %d\n", ret); in rt5660_hw_params() 122 return ret; in rt5660_hw_params() 125 ret = snd_soc_dai_set_pll(codec_dai, 0, in rt5660_hw_params() 129 if (ret < 0) in rt5660_hw_params() 130 dev_err(codec_dai->dev, "can't set codec pll: %d\n", ret); in rt5660_hw_params() 132 return ret; in rt5660_hw_params() 283 int ret; in snd_ehl_rt5660_probe() local [all...] |
H A D | broadwell.c | 71 int ret = 0; in broadwell_rt286_codec_init() local 72 ret = snd_soc_card_jack_new(rtd->card, "Headset", in broadwell_rt286_codec_init() 75 if (ret) in broadwell_rt286_codec_init() 76 return ret; in broadwell_rt286_codec_init() 105 int ret; in broadwell_rt286_hw_params() local 107 ret = snd_soc_dai_set_sysclk(codec_dai, RT286_SCLK_S_PLL, 24000000, in broadwell_rt286_hw_params() 110 if (ret < 0) { in broadwell_rt286_hw_params() 112 return ret; in broadwell_rt286_hw_params() 115 return ret; in broadwell_rt286_hw_params() 295 int ret; in broadwell_audio_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/watchdog/ |
H A D | zx2967_wdt.c | 166 int ret; in zx2967_wdt_reset_sysctrl() local 171 ret = of_parse_phandle_with_fixed_args(dev->of_node, in zx2967_wdt_reset_sysctrl() 173 if (ret) in zx2967_wdt_reset_sysctrl() 199 int ret; in zx2967_wdt_probe() local 227 ret = clk_prepare_enable(wdt->clock); in zx2967_wdt_probe() 228 if (ret < 0) { in zx2967_wdt_probe() 230 return ret; in zx2967_wdt_probe() 232 ret = devm_add_action_or_reset(dev, zx2967_clk_disable_unprepare, in zx2967_wdt_probe() 234 if (ret) in zx2967_wdt_probe() 235 return ret; in zx2967_wdt_probe() [all...] |
H A D | imgpdc_wdt.c | 187 int ret, val; in pdc_wdt_probe() local 211 ret = clk_prepare_enable(pdc_wdt->sys_clk); in pdc_wdt_probe() 212 if (ret) { in pdc_wdt_probe() 214 return ret; in pdc_wdt_probe() 216 ret = devm_add_action_or_reset(dev, pdc_clk_disable_unprepare, in pdc_wdt_probe() 218 if (ret) in pdc_wdt_probe() 219 return ret; in pdc_wdt_probe() 221 ret = clk_prepare_enable(pdc_wdt->wdt_clk); in pdc_wdt_probe() 222 if (ret) { in pdc_wdt_probe() 224 return ret; in pdc_wdt_probe() [all...] |
/kernel/linux/linux-5.10/mm/ |
H A D | vmpressure.c | 163 bool ret = false; in vmpressure_event() local 174 ret = true; in vmpressure_event() 178 return ret; in vmpressure_event() 371 int ret = 0; in vmpressure_register_event() local 379 ret = match_string(vmpressure_str_levels, VMPRESSURE_NUM_LEVELS, token); in vmpressure_register_event() 380 if (ret < 0) in vmpressure_register_event() 382 level = ret; in vmpressure_register_event() 387 ret = match_string(vmpressure_str_modes, VMPRESSURE_NUM_MODES, token); in vmpressure_register_event() 388 if (ret < 0) in vmpressure_register_event() 390 mode = ret; in vmpressure_register_event() [all...] |
/kernel/linux/linux-5.10/kernel/trace/ |
H A D | trace_printk.c | 202 int ret; in __trace_bprintk() local 212 ret = trace_vbprintk(ip, fmt, ap); in __trace_bprintk() 214 return ret; in __trace_bprintk() 232 int ret; in __trace_printk() local 239 ret = trace_vprintk(ip, fmt, ap); in __trace_printk() 241 return ret; in __trace_printk() 352 int ret; in ftrace_formats_open() local 354 ret = security_locked_down(LOCKDOWN_TRACEFS); in ftrace_formats_open() 355 if (ret) in ftrace_formats_open() 356 return ret; in ftrace_formats_open() 370 int ret; init_trace_printk_function_export() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/pm/ |
H A D | gf100.c | 194 int ret; in gf100_pm_new_() local 199 ret = nvkm_pm_ctor(&gf100_pm_, device, index, pm); in gf100_pm_new_() 200 if (ret) in gf100_pm_new_() 201 return ret; in gf100_pm_new_() 204 ret = nvkm_perfdom_new(pm, "hub", 0, 0x1b0000, 0, 0x200, in gf100_pm_new_() 206 if (ret) in gf100_pm_new_() 207 return ret; in gf100_pm_new_() 214 ret = nvkm_perfdom_new(pm, "gpc", mask, 0x180000, in gf100_pm_new_() 216 if (ret) in gf100_pm_new_() 217 return ret; in gf100_pm_new_() [all...] |
/kernel/linux/linux-5.10/drivers/memory/ |
H A D | ti-emif-pm.c | 67 int ret; in ti_emif_alloc_sram() local 92 ret = -ENODEV; in ti_emif_alloc_sram() 101 ret = -ENOMEM; in ti_emif_alloc_sram() 146 return ret; in ti_emif_alloc_sram() 277 int ret; in ti_emif_probe() local 297 ret = PTR_ERR(emif_data->pm_data.ti_emif_base_addr_virt); in ti_emif_probe() 298 return ret; in ti_emif_probe() 305 ret = ti_emif_alloc_sram(dev, emif_data); in ti_emif_probe() 306 if (ret) in ti_emif_probe() 307 return ret; in ti_emif_probe() [all...] |
/kernel/linux/linux-5.10/drivers/media/rc/ |
H A D | ir-rc5-decoder.c | 212 int ret; in ir_rc5_encode() local 226 ret = ir_raw_gen_manchester(&e, max, &ir_rc5_timings, in ir_rc5_encode() 228 if (ret < 0) in ir_rc5_encode() 229 return ret; in ir_rc5_encode() 242 ret = ir_raw_gen_manchester(&e, max, &ir_rc5x_timings[0], in ir_rc5_encode() 245 if (ret < 0) in ir_rc5_encode() 246 return ret; in ir_rc5_encode() 247 ret = ir_raw_gen_manchester(&e, max - (e - events), in ir_rc5_encode() 251 if (ret < 0) in ir_rc5_encode() 252 return ret; in ir_rc5_encode() [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-coh901331.c | 165 int ret; in coh901331_probe() local 184 ret = PTR_ERR(rtap->clk); in coh901331_probe() 186 return ret; in coh901331_probe() 197 ret = clk_prepare_enable(rtap->clk); in coh901331_probe() 198 if (ret) { in coh901331_probe() 200 return ret; in coh901331_probe() 206 ret = rtc_register_device(rtap->rtc); in coh901331_probe() 207 if (ret) in coh901331_probe() 214 return ret; in coh901331_probe() 241 int ret; in coh901331_resume() local [all...] |
H A D | rtc-xgene.c | 139 int ret; in xgene_rtc_probe() local 158 ret = devm_request_irq(&pdev->dev, irq, xgene_rtc_interrupt, 0, in xgene_rtc_probe() 160 if (ret) { in xgene_rtc_probe() 162 return ret; in xgene_rtc_probe() 170 ret = clk_prepare_enable(pdata->clk); in xgene_rtc_probe() 171 if (ret) in xgene_rtc_probe() 172 return ret; in xgene_rtc_probe() 177 ret = device_init_wakeup(&pdev->dev, 1); in xgene_rtc_probe() 178 if (ret) { in xgene_rtc_probe() 180 return ret; in xgene_rtc_probe() [all...] |
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
H A D | usb.c | 51 int ret; in hcd_stop() local 53 ret = gb_operation_sync(dev->connection, GB_USB_TYPE_HCD_STOP, in hcd_stop() 55 if (ret) in hcd_stop() 56 dev_err(&dev->gbphy_dev->dev, "HCD stop failed '%d'\n", ret); in hcd_stop() 63 int ret; in hcd_start() local 65 ret = gb_operation_sync(dev->connection, GB_USB_TYPE_HCD_START, in hcd_start() 67 if (ret) { in hcd_start() 68 dev_err(&dev->gbphy_dev->dev, "HCD start failed '%d'\n", ret); in hcd_start() 69 return ret; in hcd_start() 106 int ret; in hub_control() local [all...] |
H A D | vibrator.c | 32 int ret; in turn_off() local 34 ret = gb_operation_sync(vib->connection, GB_VIBRATOR_TYPE_OFF, in turn_off() 39 return ret; in turn_off() 45 int ret; in turn_on() local 47 ret = gb_pm_runtime_get_sync(bundle); in turn_on() 48 if (ret) in turn_on() 49 return ret; in turn_on() 55 ret = gb_operation_sync(vib->connection, GB_VIBRATOR_TYPE_ON, in turn_on() 57 if (ret) { in turn_on() 59 return ret; in turn_on() 191 int ret; gb_vibrator_disconnect() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
H A D | comedi_parport.c | 91 int ret; in parport_data_reg_insn_config() local 93 ret = comedi_dio_insn_config(dev, s, insn, data, 0xff); in parport_data_reg_insn_config() 94 if (ret) in parport_data_reg_insn_config() 95 return ret; in parport_data_reg_insn_config() 228 int ret; in parport_attach() local 230 ret = comedi_request_region(dev, it->options[0], 0x03); in parport_attach() 231 if (ret) in parport_attach() 232 return ret; in parport_attach() 235 ret = request_irq(it->options[1], parport_interrupt, 0, in parport_attach() 237 if (ret in parport_attach() [all...] |
H A D | dt2814.c | 74 int ret; in dt2814_ai_insn_read() local 81 ret = comedi_timeout(dev, s, insn, dt2814_ai_eoc, 0); in dt2814_ai_insn_read() 82 if (ret) in dt2814_ai_insn_read() 83 return ret; in dt2814_ai_insn_read() 231 int ret; in dt2814_attach() local 234 ret = comedi_request_region(dev, it->options[0], 0x2); in dt2814_attach() 235 if (ret) in dt2814_attach() 236 return ret; in dt2814_attach() 248 ret = request_irq(it->options[1], dt2814_interrupt, 0, in dt2814_attach() 250 if (ret in dt2814_attach() [all...] |
/kernel/linux/linux-5.10/drivers/spi/ |
H A D | spi-xcomm.c | 113 int ret; in spi_xcomm_txrx_bufs() local 119 ret = i2c_master_send(spi_xcomm->i2c, spi_xcomm->buf, t->len + 1); in spi_xcomm_txrx_bufs() 120 if (ret < 0) in spi_xcomm_txrx_bufs() 121 return ret; in spi_xcomm_txrx_bufs() 122 else if (ret != t->len + 1) in spi_xcomm_txrx_bufs() 125 ret = i2c_master_recv(spi_xcomm->i2c, t->rx_buf, t->len); in spi_xcomm_txrx_bufs() 126 if (ret < 0) in spi_xcomm_txrx_bufs() 127 return ret; in spi_xcomm_txrx_bufs() 128 else if (ret != t->len) in spi_xcomm_txrx_bufs() 210 int ret; in spi_xcomm_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/media/rc/ |
H A D | ir-rc5-decoder.c | 212 int ret; in ir_rc5_encode() local 226 ret = ir_raw_gen_manchester(&e, max, &ir_rc5_timings, in ir_rc5_encode() 228 if (ret < 0) in ir_rc5_encode() 229 return ret; in ir_rc5_encode() 242 ret = ir_raw_gen_manchester(&e, max, &ir_rc5x_timings[0], in ir_rc5_encode() 245 if (ret < 0) in ir_rc5_encode() 246 return ret; in ir_rc5_encode() 247 ret = ir_raw_gen_manchester(&e, max - (e - events), in ir_rc5_encode() 251 if (ret < 0) in ir_rc5_encode() 252 return ret; in ir_rc5_encode() [all...] |
/kernel/linux/linux-6.6/drivers/memory/ |
H A D | ti-emif-pm.c | 67 int ret; in ti_emif_alloc_sram() local 92 ret = -ENODEV; in ti_emif_alloc_sram() 101 ret = -ENOMEM; in ti_emif_alloc_sram() 146 return ret; in ti_emif_alloc_sram() 277 int ret; in ti_emif_probe() local 292 ret = PTR_ERR(emif_data->pm_data.ti_emif_base_addr_virt); in ti_emif_probe() 293 return ret; in ti_emif_probe() 300 ret = ti_emif_alloc_sram(dev, emif_data); in ti_emif_probe() 301 if (ret) in ti_emif_probe() 302 return ret; in ti_emif_probe() [all...] |