Home
last modified time | relevance | path

Searched refs:ret (Results 7001 - 7025 of 53225) sorted by relevance

1...<<281282283284285286287288289290>>...2129

/kernel/linux/linux-5.10/drivers/regulator/
H A Dpwm-regulator.c87 int ret; in pwm_regulator_set_voltage_sel() local
93 ret = pwm_apply_state(drvdata->pwm, &pstate); in pwm_regulator_set_voltage_sel()
94 if (ret) { in pwm_regulator_set_voltage_sel()
95 dev_err(&rdev->dev, "Failed to configure PWM: %d\n", ret); in pwm_regulator_set_voltage_sel()
96 return ret; in pwm_regulator_set_voltage_sel()
194 int ret; in pwm_regulator_set_voltage() local
219 ret = pwm_apply_state(drvdata->pwm, &pstate); in pwm_regulator_set_voltage()
220 if (ret) { in pwm_regulator_set_voltage()
221 dev_err(&rdev->dev, "Failed to configure PWM: %d\n", ret); in pwm_regulator_set_voltage()
222 return ret; in pwm_regulator_set_voltage()
259 int ret; pwm_regulator_init_table() local
324 int ret; pwm_regulator_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_mdio.c48 int ret; in hclge_mdio_write() local
70 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_mdio_write()
71 if (ret) { in hclge_mdio_write()
74 ret); in hclge_mdio_write()
75 return ret; in hclge_mdio_write()
86 int ret; in hclge_mdio_read() local
107 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_mdio_read()
108 if (ret) { in hclge_mdio_read()
111 ret); in hclge_mdio_read()
112 return ret; in hclge_mdio_read()
130 int ret; hclge_mac_mdio_config() local
181 int ret; hclge_mac_adjust_link() local
206 int ret; hclge_mac_connect_phy() local
278 int ret; hclge_read_phy_reg() local
297 int ret; hclge_write_phy_reg() local
[all...]
/kernel/linux/linux-6.6/drivers/media/usb/em28xx/
H A Dem28xx-camera.c84 int ret, i; in em28xx_probe_sensor_micron() local
94 ret = i2c_smbus_read_word_data(client, 0x00); /* assumes LE */ in em28xx_probe_sensor_micron()
95 if (ret < 0) { in em28xx_probe_sensor_micron()
96 if (ret != -ENXIO) in em28xx_probe_sensor_micron()
99 client->addr << 1, ret); in em28xx_probe_sensor_micron()
102 id = swab16(ret); /* LE -> BE */ in em28xx_probe_sensor_micron()
104 ret = i2c_smbus_read_word_data(client, 0xff); in em28xx_probe_sensor_micron()
105 if (ret < 0) { in em28xx_probe_sensor_micron()
108 client->addr << 1, ret); in em28xx_probe_sensor_micron()
112 if (id != swab16(ret)) in em28xx_probe_sensor_micron()
169 int ret, i; em28xx_probe_sensor_omnivision() local
279 int ret; em28xx_detect_sensor() local
[all...]
/kernel/linux/linux-6.6/drivers/mfd/
H A Dintel_pmc_bxt.c173 int ret; in simplecmd_store() local
175 ret = sscanf(buf, "%d %d", &cmd, &subcmd); in simplecmd_store()
176 if (ret != 2) { in simplecmd_store()
181 ret = intel_scu_ipc_dev_simple_command(scu, cmd, subcmd); in simplecmd_store()
182 if (ret) in simplecmd_store()
183 return ret; in simplecmd_store()
209 int ret; in northpeak_store() local
211 ret = kstrtoul(buf, 0, &val); in northpeak_store()
212 if (ret) in northpeak_store()
213 return ret; in northpeak_store()
310 int ret; intel_pmc_get_resources() local
395 int ret; intel_pmc_create_devices() local
427 int ret; intel_pmc_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/mtd/spi-nor/
H A Dswp.c158 int ret, status_old, status_new; in spi_nor_sr_lock() local
166 ret = spi_nor_read_sr(nor, nor->bouncebuf); in spi_nor_sr_lock()
167 if (ret) in spi_nor_sr_lock()
168 return ret; in spi_nor_sr_lock()
248 int ret, status_old, status_new; in spi_nor_sr_unlock() local
256 ret = spi_nor_read_sr(nor, nor->bouncebuf); in spi_nor_sr_unlock()
257 if (ret) in spi_nor_sr_unlock()
258 return ret; in spi_nor_sr_unlock()
331 int ret; in spi_nor_sr_is_locked() local
333 ret in spi_nor_sr_is_locked()
354 int ret; spi_nor_lock() local
369 int ret; spi_nor_unlock() local
384 int ret; spi_nor_is_locked() local
410 int ret; spi_nor_try_unlock_all() local
[all...]
/kernel/linux/linux-6.6/fs/nfs/
H A Dsysfs.c43 int ret; in nfs_sysfs_init() local
49 ret = kobject_set_name(&nfs_kset->kobj, "nfs"); in nfs_sysfs_init()
50 if (ret) { in nfs_sysfs_init()
52 return ret; in nfs_sysfs_init()
59 ret = kset_register(nfs_kset); in nfs_sysfs_init()
60 if (ret) { in nfs_sysfs_init()
62 return ret; in nfs_sysfs_init()
79 ssize_t ret; in nfs_netns_identifier_show() local
82 ret = sysfs_emit(buf, "%s\n", rcu_dereference(c->identifier)); in nfs_netns_identifier_show()
84 return ret; in nfs_netns_identifier_show()
245 int ret, val; shutdown_store() local
281 int ret; nfs_sysfs_link_rpc_client() local
314 int ret; nfs_sysfs_add_server() local
334 int ret; nfs_sysfs_move_server_to_sb() local
345 int ret = -ENOMEM; nfs_sysfs_move_sb_to_server() local
[all...]
/kernel/linux/linux-6.6/drivers/spi/
H A Dspi-cs42l43.c44 int ret; in cs42l43_spi_tx() local
67 ret = regmap_read_poll_timeout(regmap, CS42L43_TRAN_STATUS1, in cs42l43_spi_tx()
70 if (ret) in cs42l43_spi_tx()
71 return ret; in cs42l43_spi_tx()
81 int ret; in cs42l43_spi_rx() local
86 ret = regmap_read_poll_timeout(regmap, CS42L43_TRAN_STATUS1, in cs42l43_spi_rx()
89 if (ret) in cs42l43_spi_rx()
90 return ret; in cs42l43_spi_rx()
95 ret = regmap_read(regmap, CS42L43_RX_DATA, &val); in cs42l43_spi_rx()
96 if (ret) in cs42l43_spi_rx()
117 int i, ret = -EINVAL; cs42l43_transfer_one() local
179 int ret; cs42l43_prepare_transfer_hardware() local
191 int ret; cs42l43_unprepare_transfer_hardware() local
210 int ret; cs42l43_spi_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/usb/host/
H A Dxhci-histb.c117 int ret; in xhci_histb_host_enable() local
119 ret = clk_prepare_enable(histb->bus_clk); in xhci_histb_host_enable()
120 if (ret) { in xhci_histb_host_enable()
122 return ret; in xhci_histb_host_enable()
125 ret = clk_prepare_enable(histb->utmi_clk); in xhci_histb_host_enable()
126 if (ret) { in xhci_histb_host_enable()
131 ret = clk_prepare_enable(histb->pipe_clk); in xhci_histb_host_enable()
132 if (ret) { in xhci_histb_host_enable()
137 ret = clk_prepare_enable(histb->suspend_clk); in xhci_histb_host_enable()
138 if (ret) { in xhci_histb_host_enable()
171 int ret; xhci_histb_setup() local
196 int ret = -ENODEV; xhci_histb_probe() local
339 int ret; xhci_histb_suspend() local
[all...]
/kernel/linux/linux-6.6/drivers/usb/typec/ucsi/
H A Ducsi_acpi.c52 int ret; in ucsi_acpi_read() local
54 ret = ucsi_acpi_dsm(ua, UCSI_DSM_FUNC_READ); in ucsi_acpi_read()
55 if (ret) in ucsi_acpi_read()
56 return ret; in ucsi_acpi_read()
79 int ret; in ucsi_acpi_sync_write() local
86 ret = ucsi_acpi_async_write(ucsi, offset, val, val_len); in ucsi_acpi_sync_write()
87 if (ret) in ucsi_acpi_sync_write()
91 ret = -ETIMEDOUT; in ucsi_acpi_sync_write()
99 return ret; in ucsi_acpi_sync_write()
112 int ret; in ucsi_zenbook_read() local
144 int ret; ucsi_dell_sync_write() local
206 int ret; ucsi_acpi_notify() local
230 int ret; ucsi_acpi_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/char/tpm/
H A Dtpm_tis_i2c.c113 int ret; in tpm_tis_i2c_retry_transfer_until_ack() local
121 ret = i2c_transfer(phy->i2c_client->adapter, msg, 1); in tpm_tis_i2c_retry_transfer_until_ack()
122 if (ret < 0) in tpm_tis_i2c_retry_transfer_until_ack()
127 } while (ret < 0 && i++ < TPM_RETRY); in tpm_tis_i2c_retry_transfer_until_ack()
129 return ret; in tpm_tis_i2c_retry_transfer_until_ack()
189 int ret; in tpm_tis_i2c_read_bytes() local
199 ret = tpm_tis_i2c_retry_transfer_until_ack(data, &msg); in tpm_tis_i2c_read_bytes()
200 if (ret < 0) in tpm_tis_i2c_read_bytes()
201 return ret; in tpm_tis_i2c_read_bytes()
209 ret in tpm_tis_i2c_read_bytes()
232 int ret; tpm_tis_i2c_write_bytes() local
297 int ret; tpm_tis_i2c_init_guard_time() local
335 int ret; tpm_tis_i2c_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/fsi/
H A Dfsi-master-i2cr.c77 int ret; in i2cr_transfer() local
88 ret = i2c_transfer(client->adapter, msgs, 2); in i2cr_transfer()
89 if (ret == 2) in i2cr_transfer()
92 trace_i2cr_i2c_error(client, command, ret); in i2cr_transfer()
94 if (ret < 0) in i2cr_transfer()
95 return ret; in i2cr_transfer()
103 int ret; in i2cr_check_status() local
105 ret = i2cr_transfer(client, I2CR_STATUS_CMD, &status); in i2cr_check_status()
106 if (ret) in i2cr_check_status()
107 return ret; in i2cr_check_status()
140 int ret; fsi_master_i2cr_read() local
163 int ret; fsi_master_i2cr_write() local
193 int ret; i2cr_read() local
262 int ret; i2cr_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/
H A Dmvmdio.c128 int ret; in orion_mdio_smi_read() local
130 ret = orion_mdio_wait_ready(&orion_mdio_smi_ops, bus); in orion_mdio_smi_read()
131 if (ret < 0) in orion_mdio_smi_read()
132 return ret; in orion_mdio_smi_read()
139 ret = orion_mdio_wait_ready(&orion_mdio_smi_ops, bus); in orion_mdio_smi_read()
140 if (ret < 0) in orion_mdio_smi_read()
141 return ret; in orion_mdio_smi_read()
156 int ret; in orion_mdio_smi_write() local
158 ret = orion_mdio_wait_ready(&orion_mdio_smi_ops, bus); in orion_mdio_smi_write()
159 if (ret < in orion_mdio_smi_write()
184 int ret; orion_mdio_xsmi_read_c45() local
213 int ret; orion_mdio_xsmi_write_c45() local
249 int i, ret; orion_mdio_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/nvmem/
H A Dqfprom.c142 int ret; in qfprom_disable_fuse_blowing() local
156 ret = regulator_set_voltage(priv->vcc, 0, INT_MAX); in qfprom_disable_fuse_blowing()
157 if (ret) in qfprom_disable_fuse_blowing()
160 ret = regulator_disable(priv->vcc); in qfprom_disable_fuse_blowing()
161 if (ret) in qfprom_disable_fuse_blowing()
164 ret = clk_set_rate(priv->secclk, old->clk_rate); in qfprom_disable_fuse_blowing()
165 if (ret) in qfprom_disable_fuse_blowing()
187 int ret; in qfprom_enable_fuse_blowing() local
190 ret = clk_prepare_enable(priv->secclk); in qfprom_enable_fuse_blowing()
191 if (ret) { in qfprom_enable_fuse_blowing()
264 int ret; qfprom_reg_write() local
370 int ret; qfprom_probe() local
[all...]
/kernel/linux/linux-6.6/crypto/
H A Drsa.c51 int ret = -ENOMEM; in _rsa_dec_crt() local
63 ret = mpi_powm(m_or_m1_or_h, c, key->dp, key->p); in _rsa_dec_crt()
64 if (ret) in _rsa_dec_crt()
68 ret = mpi_powm(m2, c, key->dq, key->q); in _rsa_dec_crt()
69 if (ret) in _rsa_dec_crt()
80 ret = 0; in _rsa_dec_crt()
85 return ret; in _rsa_dec_crt()
98 int ret = 0; in rsa_enc() local
105 ret = -EINVAL; in rsa_enc()
109 ret in rsa_enc()
137 int ret = 0; rsa_dec() local
241 int ret; rsa_set_pub_key() local
280 int ret; rsa_set_priv_key() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/pl111/
H A Dpl111_drv.c81 int ret; in pl111_modeset_init() local
84 ret = drmm_mode_config_init(dev); in pl111_modeset_init()
85 if (ret) in pl111_modeset_init()
86 return ret; in pl111_modeset_init()
102 ret = drm_of_find_panel_or_bridge(dev->dev->of_node, in pl111_modeset_init()
106 if (ret) { in pl111_modeset_init()
107 if (ret == -EPROBE_DEFER) { in pl111_modeset_init()
114 } else if (ret != -ENODEV) { in pl111_modeset_init()
117 "endpoint %d returns %d\n", i, ret); in pl111_modeset_init()
147 ret in pl111_modeset_init()
241 int ret; pl111_amba_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/iio/imu/bno055/
H A Dbno055_ser_core.c167 int ret; in bno055_ser_send_chunk() local
170 ret = serdev_device_write(priv->serdev, data, len, msecs_to_jiffies(25)); in bno055_ser_send_chunk()
171 if (ret < 0) in bno055_ser_send_chunk()
172 return ret; in bno055_ser_send_chunk()
174 if (ret < len) in bno055_ser_send_chunk()
190 int ret; in bno055_ser_do_send_cmd() local
192 ret = bno055_ser_send_chunk(priv, hdr, 2); in bno055_ser_do_send_cmd()
193 if (ret) in bno055_ser_do_send_cmd()
196 ret = bno055_ser_send_chunk(priv, hdr + 2, 2); in bno055_ser_do_send_cmd()
197 if (ret) in bno055_ser_do_send_cmd()
225 int ret = 0; bno055_ser_send_cmd() local
303 int ret; bno055_ser_read_reg() local
504 int ret; bno055_ser_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/iio/light/
H A Dcm3605.c76 int ret, res; in cm3605_get_lux() local
79 ret = iio_read_channel_processed(cm3605->aout, &res); in cm3605_get_lux()
80 if (ret < 0) in cm3605_get_lux()
81 return ret; in cm3605_get_lux()
111 int ret; in cm3605_read_raw() local
117 ret = cm3605_get_lux(cm3605); in cm3605_read_raw()
118 if (ret < 0) in cm3605_read_raw()
119 return ret; in cm3605_read_raw()
120 *val = ret; in cm3605_read_raw()
163 int ret; in cm3605_probe() local
298 int ret; cm3605_pm_resume() local
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_mr.c66 int ret; in pvrdma_get_dma_mr() local
85 ret = pvrdma_cmd_post(dev, &req, &rsp, PVRDMA_CMD_CREATE_MR_RESP); in pvrdma_get_dma_mr()
86 if (ret < 0) { in pvrdma_get_dma_mr()
88 "could not get DMA mem region, error: %d\n", ret); in pvrdma_get_dma_mr()
90 return ERR_PTR(ret); in pvrdma_get_dma_mr()
122 int ret, npages; in pvrdma_reg_user_mr() local
140 ret = -EINVAL; in pvrdma_reg_user_mr()
146 ret = -ENOMEM; in pvrdma_reg_user_mr()
154 ret = pvrdma_page_dir_init(dev, &mr->pdir, npages, false); in pvrdma_reg_user_mr()
155 if (ret) { in pvrdma_reg_user_mr()
214 int ret; pvrdma_alloc_mr() local
283 int ret; pvrdma_dereg_mr() local
318 int ret; pvrdma_map_mr_sg() local
[all...]
/kernel/linux/linux-6.6/net/ceph/
H A Dcrypto.c26 int ret; in set_secret() local
45 ret = -ENOMEM; in set_secret()
54 ret = PTR_ERR(key->tfm); in set_secret()
59 ret = crypto_sync_skcipher_setkey(key->tfm, key->key, key->len); in set_secret()
60 if (ret) in set_secret()
67 return ret; in set_secret()
91 int ret; in ceph_crypto_key_decode() local
98 ret = set_secret(key, *p); in ceph_crypto_key_decode()
101 return ret; in ceph_crypto_key_decode()
113 int ret; in ceph_crypto_key_unarmor() local
170 int ret; setup_sgtable() local
228 int ret; ceph_aes_crypt() local
302 int ret; ceph_key_preparse() local
[all...]
/kernel/linux/linux-6.6/net/netfilter/ipset/
H A Dip_set_hash_ipmark.c105 int ret; in hash_ipmark4_uadt() local
114 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip); in hash_ipmark4_uadt()
115 if (ret) in hash_ipmark4_uadt()
116 return ret; in hash_ipmark4_uadt()
118 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipmark4_uadt()
119 if (ret) in hash_ipmark4_uadt()
120 return ret; in hash_ipmark4_uadt()
129 ret = adtfn(set, &e, &ext, &ext, flags); in hash_ipmark4_uadt()
130 return ip_set_eexist(ret, flags) ? 0 : ret; in hash_ipmark4_uadt()
239 int ret; hash_ipmark6_uadt() local
[all...]
/third_party/ffmpeg/libavformat/
H A Dlxfdec.c90 int ret; in lxf_sync() local
92 if ((ret = avio_read(s->pb, buf, LXF_IDENT_LENGTH)) != LXF_IDENT_LENGTH) in lxf_sync()
93 return ret < 0 ? ret : AVERROR_EOF; in lxf_sync()
117 int track_size, samples, ret; in get_packet_header() local
124 if ((ret = lxf_sync(s, header)) < 0) in get_packet_header()
125 return ret; in get_packet_header()
127 ret = avio_read(pb, header + LXF_IDENT_LENGTH, 8); in get_packet_header()
128 if (ret != 8) in get_packet_header()
129 return ret < in get_packet_header()
236 int ret; lxf_read_header() local
300 int ret, ret2; lxf_read_packet() local
[all...]
/third_party/libunwind/libunwind/src/mips/
H A DGstep.c35 int ret; in mips_handle_signal_frame() local
92 if ((ret = dwarf_get(&c->dwarf, DWARF_LOC(sc_addr + LINUX_SC_PC_OFF, 0), in mips_handle_signal_frame()
94 return ret; in mips_handle_signal_frame()
96 if ((ret = dwarf_get(&c->dwarf, DWARF_LOC(sc_addr + LINUX_SC_R31_OFF, 0), in mips_handle_signal_frame()
98 return ret; in mips_handle_signal_frame()
99 if ((ret = dwarf_get(&c->dwarf, DWARF_LOC(sc_addr + LINUX_SC_R30_OFF, 0), in mips_handle_signal_frame()
101 return ret; in mips_handle_signal_frame()
128 int ret; in _step_n64() local
135 ret = dwarf_get (&c->dwarf, c->dwarf.loc[SP_REG], &current_sp_val); in _step_n64()
136 if (ret < in _step_n64()
207 int ret; unw_step() local
[all...]
/third_party/node/deps/openssl/openssl/crypto/asn1/
H A Da_object.c223 ASN1_OBJECT *ret = NULL; in d2i_ASN1_OBJECT() local
235 ret = ossl_c2i_ASN1_OBJECT(a, &p, len); in d2i_ASN1_OBJECT()
236 if (ret) in d2i_ASN1_OBJECT()
238 return ret; in d2i_ASN1_OBJECT()
247 ASN1_OBJECT *ret = NULL, tobj; in ossl_c2i_ASN1_OBJECT() local
279 ret = OBJ_nid2obj(i); in ossl_c2i_ASN1_OBJECT()
282 *a = ret; in ossl_c2i_ASN1_OBJECT()
285 return ret; in ossl_c2i_ASN1_OBJECT()
296 if ((ret = ASN1_OBJECT_new()) == NULL) in ossl_c2i_ASN1_OBJECT()
299 ret in ossl_c2i_ASN1_OBJECT()
345 ASN1_OBJECT *ret; ASN1_OBJECT_new() local
[all...]
/third_party/node/deps/openssl/openssl/crypto/ct/
H A Dct_log.c79 int ret = 0; in ct_v1_log_id_from_pkey() local
95 ret = EVP_Digest(pkey_der, pkey_der_len, log->log_id, &len, sha256, in ct_v1_log_id_from_pkey()
100 return ret; in ct_v1_log_id_from_pkey()
105 CTLOG_STORE *ret = OPENSSL_zalloc(sizeof(*ret)); in CTLOG_STORE_new_ex() local
107 if (ret == NULL) { in CTLOG_STORE_new_ex()
112 ret->libctx = libctx; in CTLOG_STORE_new_ex()
114 ret->propq = OPENSSL_strdup(propq); in CTLOG_STORE_new_ex()
115 if (ret->propq == NULL) { in CTLOG_STORE_new_ex()
121 ret in CTLOG_STORE_new_ex()
191 int ret = 0; ctlog_store_load_log() local
227 int ret = 0; CTLOG_STORE_load_file() local
270 CTLOG *ret = OPENSSL_zalloc(sizeof(*ret)); CTLOG_new_ex() local
[all...]
/third_party/openssl/crypto/asn1/
H A Da_object.c223 ASN1_OBJECT *ret = NULL; in d2i_ASN1_OBJECT() local
235 ret = ossl_c2i_ASN1_OBJECT(a, &p, len); in d2i_ASN1_OBJECT()
236 if (ret) in d2i_ASN1_OBJECT()
238 return ret; in d2i_ASN1_OBJECT()
247 ASN1_OBJECT *ret = NULL, tobj; in ossl_c2i_ASN1_OBJECT() local
279 ret = OBJ_nid2obj(i); in ossl_c2i_ASN1_OBJECT()
282 *a = ret; in ossl_c2i_ASN1_OBJECT()
285 return ret; in ossl_c2i_ASN1_OBJECT()
296 if ((ret = ASN1_OBJECT_new()) == NULL) in ossl_c2i_ASN1_OBJECT()
299 ret in ossl_c2i_ASN1_OBJECT()
345 ASN1_OBJECT *ret; ASN1_OBJECT_new() local
[all...]

Completed in 21 milliseconds

1...<<281282283284285286287288289290>>...2129