/kernel/linux/linux-6.6/drivers/usb/typec/ |
H A D | wusb3801.c | 194 int ret; in wusb3801_port_type_set() local 196 ret = regmap_update_bits(wusb3801->regmap, WUSB3801_REG_CTRL0, in wusb3801_port_type_set() 199 if (ret) in wusb3801_port_type_set() 200 return ret; in wusb3801_port_type_set() 225 int ret; in wusb3801_hw_update() local 227 ret = regmap_read(wusb3801->regmap, WUSB3801_REG_STAT, &status); in wusb3801_hw_update() 228 if (ret) { in wusb3801_hw_update() 229 dev_warn(dev, "Failed to read port status: %d\n", ret); in wusb3801_hw_update() 238 ret = regulator_enable(wusb3801->vbus_supply); in wusb3801_hw_update() 239 if (ret) in wusb3801_hw_update() 328 int ret; wusb3801_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/bus/ |
H A D | imx-weim.c | 141 int i, ret; in weim_timing_setup() local 157 ret = of_property_read_u32_array(np, "fsl,weim-cs-timing", in weim_timing_setup() 159 if (ret) in weim_timing_setup() 160 return ret; in weim_timing_setup() 173 ret = of_property_read_u32_index(np, "reg", in weim_timing_setup() 175 if (ret) in weim_timing_setup() 208 int ret = 0, have_child = 0; in weim_parse_dt() local 215 ret = imx_weim_gpr_setup(pdev); in weim_parse_dt() 216 if (ret) in weim_parse_dt() 217 return ret; in weim_parse_dt() 269 int ret; weim_probe() local 310 int ret = NOTIFY_OK; of_weim_notify() local [all...] |
/kernel/linux/linux-6.6/drivers/clk/qcom/ |
H A D | common.c | 138 int ret; in _qcom_cc_register_board_clk() local 157 ret = devm_clk_hw_register(dev, &fixed->hw); in _qcom_cc_register_board_clk() 158 if (ret) in _qcom_cc_register_board_clk() 159 return ret; in _qcom_cc_register_board_clk() 177 ret = devm_clk_hw_register(dev, &factor->hw); in _qcom_cc_register_board_clk() 178 if (ret) in _qcom_cc_register_board_clk() 179 return ret; in _qcom_cc_register_board_clk() 240 int i, ret; in qcom_cc_really_probe() local 262 ret = devm_reset_controller_register(dev, &reset->rcdev); in qcom_cc_really_probe() 263 if (ret) in qcom_cc_really_probe() [all...] |
/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | qcom-cpufreq-nvmem.c | 137 int ret; in qcom_cpufreq_kryo_name_version() local 140 ret = qcom_smem_get_soc_id(&msm_id); in qcom_cpufreq_kryo_name_version() 141 if (ret) in qcom_cpufreq_kryo_name_version() 142 return ret; in qcom_cpufreq_kryo_name_version() 174 int ret = 0; in qcom_cpufreq_krait_name_version() local 192 ret = -ENODEV; in qcom_cpufreq_krait_name_version() 203 return ret; in qcom_cpufreq_krait_name_version() 230 int ret; in qcom_cpufreq_probe() local 240 ret = of_device_is_compatible(np, "operating-points-v2-kryo-cpu"); in qcom_cpufreq_probe() 241 if (!ret) { in qcom_cpufreq_probe() 380 int ret; qcom_cpufreq_init() local [all...] |
/kernel/linux/linux-6.6/drivers/clocksource/ |
H A D | timer-rockchip.c | 132 int ret = -EINVAL, irq; in rk_timer_probe() local 148 ret = PTR_ERR(pclk); in rk_timer_probe() 153 ret = clk_prepare_enable(pclk); in rk_timer_probe() 154 if (ret) { in rk_timer_probe() 162 ret = PTR_ERR(timer_clk); in rk_timer_probe() 167 ret = clk_prepare_enable(timer_clk); in rk_timer_probe() 168 if (ret) { in rk_timer_probe() 178 ret = -EINVAL; in rk_timer_probe() 195 return ret; in rk_timer_probe() 208 int ret in rk_clkevt_init() local 255 int ret = -EINVAL; rk_clksrc_init() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt7921/ |
H A D | usb.c | 33 int ret; in mt7921u_mcu_send_message() local 35 ret = mt76_connac2_mcu_fill_message(mdev, skb, cmd, seq); in mt7921u_mcu_send_message() 36 if (ret) in mt7921u_mcu_send_message() 37 return ret; in mt7921u_mcu_send_message() 50 ret = mt76u_bulk_msg(&dev->mt76, skb->data, skb->len, NULL, in mt7921u_mcu_send_message() 54 return ret; in mt7921u_mcu_send_message() 66 int ret; in mt7921u_mcu_init() local 71 ret = mt7921_run_firmware(dev); in mt7921u_mcu_init() 72 if (ret) in mt7921u_mcu_init() 73 return ret; in mt7921u_mcu_init() 185 int ret; mt7921u_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ti/wl18xx/ |
H A D | scan.c | 32 int ret; in wl18xx_scan_send() local 36 ret = -ENOMEM; in wl18xx_scan_send() 47 ret = -EINVAL; in wl18xx_scan_send() 72 ret = -ENOMEM; in wl18xx_scan_send() 100 ret = wl12xx_cmd_build_probe_req(wl, wlvif, in wl18xx_scan_send() 109 if (ret < 0) { in wl18xx_scan_send() 117 ret = wl12xx_cmd_build_probe_req(wl, wlvif, in wl18xx_scan_send() 126 if (ret < 0) { in wl18xx_scan_send() 134 ret = wl1271_cmd_send(wl, CMD_SCAN, cmd, sizeof(*cmd), 0); in wl18xx_scan_send() 135 if (ret < in wl18xx_scan_send() 163 int ret; wl18xx_scan_sched_scan_config() local 300 int ret; __wl18xx_scan_stop() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/ |
H A D | nouveau_debugfs.c | 54 int ret; in nouveau_debugfs_strap_peek() local 56 ret = pm_runtime_get_sync(drm->dev->dev); in nouveau_debugfs_strap_peek() 57 if (ret < 0 && ret != -EACCES) { in nouveau_debugfs_strap_peek() 59 return ret; in nouveau_debugfs_strap_peek() 78 int ret, i; in nouveau_debugfs_pstate_get() local 84 ret = nvif_mthd(ctrl, NVIF_CONTROL_PSTATE_INFO, &info, sizeof(info)); in nouveau_debugfs_pstate_get() 85 if (ret) in nouveau_debugfs_pstate_get() 86 return ret; in nouveau_debugfs_pstate_get() 96 ret in nouveau_debugfs_pstate_get() 150 long value, ret; nouveau_debugfs_pstate_set() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/v3d/ |
H A D | v3d_drv.c | 208 int ret; in v3d_platform_drm_probe() local 221 ret = map_regs(v3d, &v3d->hub_regs, "hub"); in v3d_platform_drm_probe() 222 if (ret) in v3d_platform_drm_probe() 223 return ret; in v3d_platform_drm_probe() 225 ret = map_regs(v3d, &v3d->core_regs[0], "core0"); in v3d_platform_drm_probe() 226 if (ret) in v3d_platform_drm_probe() 227 return ret; in v3d_platform_drm_probe() 231 ret = dma_set_mask_and_coherent(dev, mask); in v3d_platform_drm_probe() 232 if (ret) in v3d_platform_drm_probe() 233 return ret; in v3d_platform_drm_probe() [all...] |
/kernel/linux/linux-6.6/drivers/hwmon/pmbus/ |
H A D | max16601.c | 77 int ret; in max16601_read_word() local 87 ret = i2c_smbus_write_byte_data(client, REG_PHASE_ID, in max16601_read_word() 89 if (ret) in max16601_read_word() 90 return ret; in max16601_read_word() 91 ret = i2c_smbus_read_block_data(client, in max16601_read_word() 94 if (ret < 0) in max16601_read_word() 95 return ret; in max16601_read_word() 96 if (ret < 6) in max16601_read_word() 124 ret = i2c_smbus_read_word_data(data->vsa, in max16601_read_word() 126 if (ret < in max16601_read_word() 279 int ret; max16601_get_id() local 310 int ret, chip_id; max16601_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/iio/dac/ |
H A D | ad5449.c | 90 int ret; in ad5449_write() local 94 ret = spi_write(st->spi, st->data, 2); in ad5449_write() 97 return ret; in ad5449_write() 104 int ret; in ad5449_read() local 121 ret = spi_sync_transfer(st->spi, t, ARRAY_SIZE(t)); in ad5449_read() 122 if (ret < 0) in ad5449_read() 129 return ret; in ad5449_read() 138 int ret; in ad5449_read_raw() local 143 ret = ad5449_read(indio_dev, in ad5449_read_raw() 145 if (ret) in ad5449_read_raw() 174 int ret; ad5449_write_raw() local 276 int ret; ad5449_spi_probe() local [all...] |
H A D | ti-dac7311.c | 124 int ret; in ti_dac_write_powerdown() local 126 ret = kstrtobool(buf, &powerdown); in ti_dac_write_powerdown() 127 if (ret) in ti_dac_write_powerdown() 128 return ret; in ti_dac_write_powerdown() 133 ret = ti_dac_cmd(ti_dac, power, 0); in ti_dac_write_powerdown() 134 if (!ret) in ti_dac_write_powerdown() 138 return ret ? ret : len; in ti_dac_write_powerdown() 171 int ret; in ti_dac_read_raw() local 179 ret in ti_dac_read_raw() 197 int ret; ti_dac_write_raw() local 242 int ret; ti_dac_probe() local [all...] |
/kernel/linux/linux-6.6/tools/testing/radix-tree/ |
H A D | tag_check.c | 17 int ret; in __simple_checks() local 25 ret = item_tag_get(tree, index, tag); in __simple_checks() 26 assert(ret != 0); in __simple_checks() 27 ret = tag_tagged_items(tree, first, ~0UL, 10, tag, !tag); in __simple_checks() 28 assert(ret == 1); in __simple_checks() 29 ret = item_tag_get(tree, index, !tag); in __simple_checks() 30 assert(ret != 0); in __simple_checks() 31 ret = item_delete(tree, index); in __simple_checks() 32 assert(ret != 0); in __simple_checks() 34 ret in __simple_checks() 313 int ret; single_check() local [all...] |
/kernel/liteos_m/components/net/lwip-2.1/porting/src/ |
H A D | sys_arch.c | 60 UINT32 ret;
in sys_thread_new() local 75 ret = LOS_TaskCreate(&taskID, &task);
in sys_thread_new() 76 if (ret != LOS_OK) {
in sys_thread_new() 77 LWIP_DEBUGF(SYS_DEBUG, ("sys_thread_new: LOS_TaskCreate error %u\n", ret));
in sys_thread_new() 152 UINT32 ret = LOS_QueueCreate(qName, (UINT16)size, (UINT32 *)mbox, 0, sizeof(void *));
in sys_mbox_new() local 153 switch (ret) {
in sys_mbox_new() 162 LWIP_DEBUGF(SYS_DEBUG, ("%s: LOS_QueueCreate error %u\n", __FUNCTION__, ret));
in sys_mbox_new() 174 UINT32 ret = LOS_QueueWrite(*mbox, msg, sizeof(char *), LOS_WAIT_FOREVER);
in sys_mbox_post() local 175 if (ret != LOS_OK) {
in sys_mbox_post() 176 LWIP_DEBUGF(SYS_DEBUG, ("%s: LOS_QueueWrite error %u\n", __FUNCTION__, ret));
in sys_mbox_post() 188 UINT32 ret = LOS_QueueWrite(*mbox, msg, sizeof(char *), 0); sys_mbox_trypost() local 217 UINT32 ret = LOS_QueueRead(*mbox, msg ? msg : &ignore, sizeof(void *), tick ? (UINT32)tick : LOS_WAIT_FOREVER); sys_arch_mbox_fetch() local 239 UINT32 ret = LOS_QueueRead(*mbox, msg ? msg : &ignore, sizeof(void *), 0); sys_arch_mbox_tryfetch() local 295 UINT32 ret = LOS_SemCreate(count, (UINT32 *)(sem)); sys_sem_new() local 320 UINT32 ret = LOS_SemPend(*sem, tick ? (UINT32)tick : LOS_WAIT_FOREVER); // timeoutMs 0 means wait forever sys_arch_sem_wait() local 370 UINT32 ret = LOS_MuxCreate((UINT32 *)mutex); sys_mutex_new() local [all...] |
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A D | adau1781.c | 387 int ret; in adau1781_component_probe() local 389 ret = adau17x1_add_widgets(component); in adau1781_component_probe() 390 if (ret) in adau1781_component_probe() 391 return ret; in adau1781_component_probe() 394 ret = adau1781_set_input_mode(adau, ADAU1781_LEFT_PGA, in adau1781_component_probe() 396 if (ret) in adau1781_component_probe() 397 return ret; in adau1781_component_probe() 398 ret = adau1781_set_input_mode(adau, ADAU1781_RIGHT_PGA, in adau1781_component_probe() 400 if (ret) in adau1781_component_probe() 401 return ret; in adau1781_component_probe() 483 int ret; adau1781_probe() local [all...] |
/kernel/linux/linux-6.6/sound/soc/atmel/ |
H A D | tse850-pcm5142.c | 160 int ret; in tse850_get_ana() local 162 ret = regulator_get_voltage(tse850->ana); in tse850_get_ana() 163 if (ret < 0) in tse850_get_ana() 164 return ret; in tse850_get_ana() 175 if (ret < 11000000) in tse850_get_ana() 176 ret = 11000000; in tse850_get_ana() 177 else if (ret > 20000000) in tse850_get_ana() 178 ret = 20000000; in tse850_get_ana() 179 ret -= 11000000; in tse850_get_ana() 180 ret in tse850_get_ana() 195 int ret; tse850_put_ana() local 359 int ret; tse850_probe() local [all...] |
/kernel/linux/linux-6.6/sound/soc/xilinx/ |
H A D | xlnx_spdif.c | 172 int ret = 0; in xlnx_spdif_trigger() local 183 ret = rx_stream_detect(dai); in xlnx_spdif_trigger() 192 ret = -EINVAL; in xlnx_spdif_trigger() 195 return ret; in xlnx_spdif_trigger() 240 int ret; in xlnx_spdif_probe() local 253 ret = PTR_ERR(ctx->axi_clk); in xlnx_spdif_probe() 254 dev_err(dev, "failed to get s_axi_aclk(%d)\n", ret); in xlnx_spdif_probe() 255 return ret; in xlnx_spdif_probe() 257 ret = clk_prepare_enable(ctx->axi_clk); in xlnx_spdif_probe() 258 if (ret) { in xlnx_spdif_probe() [all...] |
/kernel/linux/linux-6.6/sound/soc/sof/intel/ |
H A D | hda-codec.c | 57 int ret; in hda_codec_load_module() local 59 ret = snd_hdac_device_register(&codec->core); in hda_codec_load_module() 60 if (ret) { in hda_codec_load_module() 63 return ret; in hda_codec_load_module() 66 ret = request_codec_module(codec); in hda_codec_load_module() 67 if (ret <= 0) { in hda_codec_load_module() 69 ret = request_codec_module(codec); in hda_codec_load_module() 72 return ret; in hda_codec_load_module() 148 int ret, retry = 0; in hda_codec_probe() local 167 ret in hda_codec_probe() 210 int i, ret; hda_codec_probe_bus() local 411 int ret; hda_codec_i915_init() local [all...] |
/kernel/linux/linux-6.6/net/netfilter/ipset/ |
H A D | ip_set_hash_ip.c | 108 int ret = 0; in hash_ip4_uadt() local 116 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); in hash_ip4_uadt() 117 if (ret) in hash_ip4_uadt() 118 return ret; in hash_ip4_uadt() 120 ret = ip_set_get_extensions(set, tb, &ext); in hash_ip4_uadt() 121 if (ret) in hash_ip4_uadt() 122 return ret; in hash_ip4_uadt() 134 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ip4_uadt() 135 if (ret) in hash_ip4_uadt() 136 return ret; in hash_ip4_uadt() 241 int ret; hash_ip6_uadt() local [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/text/ |
H A D | text_overlay_test.cpp | 25 auto ret = nodeAPI->setAttribute(text, NODE_OVERLAY, &valueItem); in TestTextOverlay001() local 26 ASSERT_EQ(ret, SUCCESS); in TestTextOverlay001() 36 auto ret = nodeAPI->setAttribute(text, NODE_OVERLAY, &valueItem); in TestTextOverlay002() local 38 ASSERT_EQ(ret, SUCCESS); in TestTextOverlay002() 49 auto ret = nodeAPI->setAttribute(text, NODE_OVERLAY, &valueItem); in TestTextOverlay003() local 54 ASSERT_EQ(ret, SUCCESS); in TestTextOverlay003() 64 auto ret = nodeAPI->setAttribute(text, NODE_OVERLAY, &valueItem); in TestTextOverlay004() local 67 ASSERT_EQ(ret, SUCCESS); in TestTextOverlay004() 77 auto ret = nodeAPI->setAttribute(text, NODE_OVERLAY, &valueItem); in TestTextOverlay005() local 80 ASSERT_EQ(ret, SUCCES in TestTextOverlay005() 90 auto ret = nodeAPI->setAttribute(text, NODE_OVERLAY, &valueItem); TestTextOverlay006() local 103 auto ret = nodeAPI->setAttribute(text, NODE_OVERLAY, &valueItem); TestTextOverlay007() local 116 auto ret = nodeAPI->setAttribute(text, NODE_OVERLAY, &valueItem); TestTextOverlay008() local 129 auto ret = nodeAPI->setAttribute(text, NODE_OVERLAY, &valueItem); TestTextOverlay009() local 142 auto ret = nodeAPI->setAttribute(text, NODE_OVERLAY, &valueItem); TestTextOverlay010() local 155 auto ret = nodeAPI->setAttribute(text, NODE_OVERLAY, &valueItem); TestTextOverlay011() local 169 auto ret = nodeAPI->setAttribute(text, NODE_OVERLAY, &valueItem); TestTextOverlay012() local 185 auto ret = nodeAPI->setAttribute(text, NODE_OVERLAY, &valueItem); TestTextOverlay013() local [all...] |
/third_party/mbedtls/programs/x509/ |
H A D | cert_req.c | 114 int ret; in write_certificate_request() local 120 if ((ret = mbedtls_x509write_csr_pem(req, output_buf, 4096, f_rng, p_rng)) < 0) { in write_certificate_request() 121 return ret; in write_certificate_request() 142 int ret = 1; in main() local 277 if ((ret = mbedtls_x509_string_to_names(&ext_san_dirname, in main() 279 mbedtls_strerror(ret, buf, sizeof(buf)); in main() 283 (unsigned int) -ret, buf); in main() 391 ret = mbedtls_x509write_csr_set_key_usage(&req, opt.key_usage); in main() 393 if (ret != 0) { in main() 394 mbedtls_printf(" failed\n ! mbedtls_x509write_csr_set_key_usage returned %d", ret); in main() [all...] |
/third_party/mesa3d/src/freedreno/drm/virtio/ |
H A D | virtio_bo.c | 36 int ret; in bo_allocate() local 38 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_VIRTGPU_MAP, &req); in bo_allocate() 39 if (ret) { in bo_allocate() 41 return ret; in bo_allocate() 54 int ret = bo_allocate(virtio_bo); in virtio_bo_offset() local 55 if (ret) in virtio_bo_offset() 56 return ret; in virtio_bo_offset() 67 int ret; in virtio_bo_cpu_prep_guest() local 70 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_VIRTGPU_WAIT, &args); in virtio_bo_cpu_prep_guest() 71 if (ret in virtio_bo_cpu_prep_guest() 80 int ret; virtio_bo_cpu_prep() local 289 int ret; bo_from_handle() local 340 int ret; virtio_bo_new() local [all...] |
/third_party/node/deps/v8/third_party/zlib/contrib/minizip/ |
H A D | ioapi.c | 134 uLong ret; in fread_file_func() local 135 ret = (uLong)fread(buf, 1, (size_t)size, (FILE *)stream); in fread_file_func() 136 return ret; in fread_file_func() 141 uLong ret; in fwrite_file_func() local 142 ret = (uLong)fwrite(buf, 1, (size_t)size, (FILE *)stream); in fwrite_file_func() 143 return ret; in fwrite_file_func() 148 long ret; in ftell_file_func() local 149 ret = ftell((FILE *)stream); in ftell_file_func() 150 return ret; in ftell_file_func() 156 ZPOS64_T ret; in ftell64_file_func() local 164 long ret; fseek_file_func() local 187 long ret; fseek64_file_func() local 212 int ret; fclose_file_func() local 219 int ret; ferror_file_func() local [all...] |
/third_party/node/deps/openssl/openssl/crypto/bio/ |
H A D | bio_sock.c | 49 int ret = 0; in BIO_get_host_ip() local 65 ret = BIO_ADDR_rawaddress(BIO_ADDRINFO_address(res), ip, &l); in BIO_get_host_ip() 72 return ret; in BIO_get_host_ip() 78 int ret = 0; in BIO_get_port() local 93 ret = 1; in BIO_get_port() 100 return ret; in BIO_get_port() 253 int ret = -1; in BIO_accept() local 255 ret = BIO_accept_ex(sock, &res, 0); in BIO_accept() 256 if (ret == (int)INVALID_SOCKET) { in BIO_accept() 257 if (BIO_sock_should_retry(ret)) { in BIO_accept() 295 int ret = 0; BIO_set_tcp_ndelay() local 314 int ret = -1; BIO_socket_nbio() local 365 int ret = 0; BIO_sock_info() local [all...] |
/third_party/node/deps/openssl/openssl/providers/implementations/kdfs/ |
H A D | krb5kdf.c | 330 int klen, ret; in cipher_init() local 332 ret = EVP_EncryptInit_ex(ctx, cipher, engine, key, NULL); in cipher_init() 333 if (!ret) in cipher_init() 338 ret = EVP_CIPHER_CTX_set_key_length(ctx, key_len); in cipher_init() 339 if (ret <= 0) { in cipher_init() 340 ret = 0; in cipher_init() 347 ret = EVP_CIPHER_CTX_set_padding(ctx, 0); in cipher_init() 348 if (!ret) in cipher_init() 352 return ret; in cipher_init() 369 int ret; in KRB5KDF() local [all...] |