/device/soc/asrmicro/asr582x/liteos_m/sdk/adapter/hals/utils/file/src/ |
D | hal_file.c | 32 int32_t retval = 0; in HalFileOpen() local 40 retval = HalFileRead(0, temp, 128); in HalFileOpen() 41 if (retval < 0) { in HalFileOpen() 55 int32_t retval = 0; in HalFileRead() local 57 retval = duet_flash_kv_get(duet_kv_key, (void *)buf, (int32_t *)&templen); in HalFileRead() 58 if (retval == KV_ERR_INVALID_PARAM || len <= 1) { in HalFileRead() 62 if (retval == KV_OK) { in HalFileRead() 71 int32_t retval = 0; in HalFileWrite() local 74 retval = duet_flash_kv_set(duet_kv_key, (void *)buf, buflen, 1); in HalFileWrite() 75 if (retval == KV_ERR_INVALID_PARAM) { in HalFileWrite() [all …]
|
/device/soc/amlogic/a311d/soc/amlogic/unifykey/ |
D | storage_key.c | 164 u32 retval; in _amlkey_exsit() local 171 ret = secure_storage_query((u8 *)name, &retval); in _amlkey_exsit() 174 retval = 0; in _amlkey_exsit() 177 return retval; in _amlkey_exsit() 183 u32 retval; in _amlkey_get_attr() local 190 ret = secure_storage_status((u8 *)name, &retval); in _amlkey_get_attr() 193 retval = 0; in _amlkey_get_attr() 196 return retval; in _amlkey_get_attr() 201 unsigned int retval; in _amlkey_size() local 205 retval = 0; in _amlkey_size() [all …]
|
D | security_key.h | 45 unsigned long secure_storage_query(u8 *name, u32 *retval); 46 unsigned long secure_storage_tell(u8 *name, u32 *retval); 47 unsigned long secure_storage_status(u8 *name, u32 *retval);
|
D | security_key.c | 147 unsigned long secure_storage_query(u8 *key_name, u32 *retval) in secure_storage_query() argument 173 *retval = *output; in secure_storage_query() 180 unsigned long secure_storage_tell(u8 *keyname, u32 *retval) in secure_storage_tell() argument 206 *retval = *output; in secure_storage_tell() 213 unsigned long secure_storage_status(u8 *keyname, u32 *retval) in secure_storage_status() argument 239 *retval = *output; in secure_storage_status()
|
/device/qemu/riscv32_virt/liteos_m/board/driver/video/ |
D | fb_init.c | 37 uint retval; in fb_init() local 43 retval = FbMemInit(); in fb_init() 44 if (retval != LOS_OK) { in fb_init() 45 PRINT_ERR("fb_init FbMemInit failed error %d\n", retval); in fb_init() 49 retval = KeyCacheInit(); in fb_init() 50 if (retval != LOS_OK) { in fb_init() 51 PRINT_ERR("fb_init KeyCacheInit failed error %d\n", retval); in fb_init()
|
D | fb_mem.c | 40 int retval = LOS_MuxCreate(&g_vnodeMux); in FbMemInit() local 41 if (retval != LOS_OK) { in FbMemInit() 42 PRINT_ERR("Create mutex for fbmem fail, status: %d", retval); in FbMemInit() 43 return retval; in FbMemInit()
|
/device/soc/rockchip/common/sdk_linux/drivers/spi/ |
D | spidev.c | 330 int retval = 0; in spidev_ioctl() local 365 retval = put_user(spi->mode & SPI_MODE_MASK, (__u8 __user *)arg); in spidev_ioctl() 368 retval = put_user(spi->mode & SPI_MODE_MASK, (__u32 __user *)arg); in spidev_ioctl() 371 retval = put_user((spi->mode & SPI_LSB_FIRST) ? 1 : 0, (__u8 __user *)arg); in spidev_ioctl() 374 retval = put_user(spi->bits_per_word, (__u8 __user *)arg); in spidev_ioctl() 377 retval = put_user(spidev->speed_hz, (__u32 __user *)arg); in spidev_ioctl() 384 retval = get_user(tmp, (u8 __user *)arg); in spidev_ioctl() 386 retval = get_user(tmp, (u32 __user *)arg); in spidev_ioctl() 388 if (retval == 0) { in spidev_ioctl() 393 retval = -EINVAL; in spidev_ioctl() [all …]
|
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/bridge/analogix/ |
D | analogix_dp_core.c | 319 int lane, lane_count, retval; in analogix_dp_link_start() local 337 retval = drm_dp_dpcd_write(&dp->aux, DP_LINK_BW_SET, buf, 0x2); in analogix_dp_link_start() 338 if (retval < 0) { in analogix_dp_link_start() 339 return retval; in analogix_dp_link_start() 345 retval = drm_dp_dpcd_write(&dp->aux, DP_DOWNSPREAD_CTRL, buf, 0x2); in analogix_dp_link_start() 346 if (retval < 0) { in analogix_dp_link_start() 347 return retval; in analogix_dp_link_start() 351 retval = analogix_dp_set_enhanced_mode(dp); in analogix_dp_link_start() 352 if (retval < 0) { in analogix_dp_link_start() 354 return retval; in analogix_dp_link_start() [all …]
|
/device/board/hisilicon/hispark_phoenix/peripherals/bluetooth/rtkbt/code/libbt-vendor/src/ |
D | bt_vendor_rtk.c | 407 int retval = -1; in init() local 415 return retval; in init() 452 retval = memcpy_s(vnd_local_bd_addr, BD_ADDR_LEN, local_bdaddr, BD_ADDR_LEN); in init() 461 return retval; in init() 467 int retval = 0; in op() local 504 retval = 1; in op() 514 retval = 0; in op() 524 retval = 1; in op() 533 retval = 0; in op() 545 retval = 1; in op() [all …]
|
/device/board/unionman/unionpi_tiger/hardware/bt/src/ |
D | bt_vendor_rtk.c | 379 int retval = -1; in init() local 388 return retval; in init() 423 retval = memcpy_s(vnd_local_bd_addr, BD_ADDR_LEN, local_bdaddr, BD_ADDR_LEN); in init() 434 return retval; in init() 440 int retval = 0; in op() local 467 retval = 1; in op() 476 retval = 0; in op() 483 retval = 1; in op() 491 retval = 0; in op() 500 retval = 1; in op() [all …]
|
/device/board/kaihong/khdvk_3566b/kernel/bluetooth/src/ |
D | bt_vendor_brcm.c | 144 int retval = 0; in op() local 167 retval = 1; in op() 187 retval = hw_lpm_enable(BT_VND_LPM_ENABLE); in op() 191 retval = hw_lpm_enable(BT_VND_LPM_DISABLE); in op() 205 return retval; in op()
|
/device/board/osware/imx8mm/drivers/bluetooth/source/src/ |
D | bt_vendor_brcm.c | 144 int retval = 0; in op() local 165 retval = 1; in op() 185 retval = hw_lpm_enable(BT_VND_LPM_ENABLE); in op() 189 retval = hw_lpm_enable(BT_VND_LPM_DISABLE); in op() 203 return retval; in op()
|
/device/soc/rockchip/common/sdk_linux/drivers/video/backlight/ |
D | pwm_bl.c | 173 u64 retval; in cie1931() local 184 retval = DIV_ROUND_CLOSEST(lightness * 0xa, 0x2349); in cie1931() 186 retval = (lightness + (0x10 * PWM_LUMINANCE_SCALE)) / 0x74; in cie1931() 187 retval *= retval * retval; in cie1931() 188 retval += 1ULL << (0x2 * PWM_LUMINANCE_SHIFT - 1); in cie1931() 189 retval >>= 0x2 * PWM_LUMINANCE_SHIFT; in cie1931() 192 return retval; in cie1931() 203 u64 retval; in pwm_backlight_brightness_default() local 219 retval = cie1931((i * PWM_LUMINANCE_SCALE) / data->max_brightness) * period; in pwm_backlight_brightness_default() 220 retval = DIV_ROUND_CLOSEST_ULL(retval, PWM_LUMINANCE_SCALE); in pwm_backlight_brightness_default() [all …]
|
/device/soc/rockchip/common/sdk_linux/kernel/cgroup/ |
D | cpuset.c | 1545 int retval; in update_cpumask() local 1562 retval = cpulist_parse(buf, trialcs->cpus_requested); in update_cpumask() 1563 if (retval < 0) { in update_cpumask() 1564 return retval; in update_cpumask() 1579 retval = validate_change(cs, trialcs); in update_cpumask() 1580 if (retval < 0) { in update_cpumask() 1581 return retval; in update_cpumask() 1840 int retval; in update_nodemask() local 1847 retval = -EACCES; in update_nodemask() 1860 retval = nodelist_parse(buf, trialcs->mems_allowed); in update_nodemask() [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/bluetooth/ |
D | bcm_btlpm.c | 490 int retval; in bluesleep_start() local 512 retval = request_irq(bsi->host_wake_irq, bluesleep_hostwake_isr, in bluesleep_start() 515 if (retval < 0) { in bluesleep_start() 528 return retval; in bluesleep_start() 891 int retval; in bluesleep_init() local 896 retval = platform_driver_probe(&bluesleep_driver, bluesleep_probe); in bluesleep_init() 897 if (retval) in bluesleep_init() 898 return retval; in bluesleep_init() 920 retval = -ENOMEM; in bluesleep_init() 930 retval = -ENOMEM; in bluesleep_init() [all …]
|
D | rtl_btlpm.c | 333 int retval; in bluesleep_start() local 353 retval = request_irq(bsi->host_wake_irq, bluesleep_hostwake_isr, in bluesleep_start() 356 if (retval < 0) { in bluesleep_start() 369 return retval; in bluesleep_start() 586 int retval; in bluesleep_init() local 591 retval = platform_driver_probe(&bluesleep_driver, bluesleep_probe); in bluesleep_init() 592 if (retval) in bluesleep_init() 593 return retval; in bluesleep_init() 610 retval = -ENOMEM; in bluesleep_init() 631 return retval; in bluesleep_init()
|
D | xradio_btlpm.c | 314 int retval; in bluesleep_start() local 330 retval = request_irq(bsi->host_wake_irq, bluesleep_hostwake_isr, in bluesleep_start() 334 if (retval < 0) { in bluesleep_start() 347 return retval; in bluesleep_start() 828 int retval; in btsleep_init() local 833 retval = platform_driver_probe(&bluesleep_driver, bluesleep_probe); in btsleep_init() 834 if (retval) in btsleep_init() 858 retval = -ENOMEM; in btsleep_init() 867 retval = -ENOMEM; in btsleep_init() 873 retval = -ENOMEM; in btsleep_init() [all …]
|
/device/soc/amlogic/a311d/soc/include/linux/amlogic/unifykey/ |
D | security_key.h | 34 int32_t secure_storage_query(uint8_t *keyname, uint32_t *retval); 35 int32_t secure_storage_tell(uint8_t *keyname, uint32_t *retval); 36 int32_t secure_storage_status(uint8_t *keyname, uint32_t *retval);
|
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/include/linux/amlogic/unifykey/ |
D | security_key.h | 36 int32_t secure_storage_query(uint8_t *keyname, uint32_t *retval); 37 int32_t secure_storage_tell(uint8_t *keyname, uint32_t *retval); 38 int32_t secure_storage_status(uint8_t *keyname, uint32_t *retval);
|
/device/soc/rockchip/common/sdk_linux/kernel/sched/ |
D | core.c | 5515 long nice, retval; in SYSCALL_DEFINE1() local 5530 retval = security_task_setnice(current, nice); in SYSCALL_DEFINE1() 5531 if (retval) { in SYSCALL_DEFINE1() 5532 return retval; in SYSCALL_DEFINE1() 5675 int retval, oldprio, newprio, queued, running; in __sched_setscheduler() local 5776 retval = security_task_setscheduler(p); in __sched_setscheduler() 5777 if (retval) { in __sched_setscheduler() 5778 return retval; in __sched_setscheduler() 5784 retval = uclamp_validate(p, attr); in __sched_setscheduler() 5785 if (retval) { in __sched_setscheduler() [all …]
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/ |
D | mali_profiling_internal.c | 195 u32 retval = 0; in _mali_internal_profiling_get_count() local 199 retval = _mali_osk_atomic_read(&profile_insert_index); in _mali_internal_profiling_get_count() 200 if (retval > profile_mask) retval = profile_mask; in _mali_internal_profiling_get_count() 204 return retval; in _mali_internal_profiling_get_count()
|
D | mali_osk_low_level_mem.c | 88 u32 retval = 0; in _mali_osk_mem_write_safe() local 113 retval += size_copied; in _mali_osk_mem_write_safe() 123 return retval; in _mali_osk_mem_write_safe()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/ |
D | mali_profiling_internal.c | 197 u32 retval = 0; in _mali_internal_profiling_get_count() local 201 retval = mali_osk_atomic_read(&profile_insert_index); in _mali_internal_profiling_get_count() 202 if (retval > profile_mask) { in _mali_internal_profiling_get_count() 203 retval = profile_mask; in _mali_internal_profiling_get_count() 208 return retval; in _mali_internal_profiling_get_count()
|
D | mali_osk_low_level_mem.c | 89 u32 retval = 0; in _mali_osk_mem_write_safe() local 114 retval += size_copied; in _mali_osk_mem_write_safe() 124 return retval; in _mali_osk_mem_write_safe()
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/usb/sunxi_usb/udc/ |
D | sunxi_udc.c | 2638 int retval = -EINVAL; in sunxi_udc_dequeue() local 2651 return retval; in sunxi_udc_dequeue() 2676 retval = 0; in sunxi_udc_dequeue() 2681 if (retval == 0) { in sunxi_udc_dequeue() 2700 return retval; in sunxi_udc_dequeue() 3445 int retval = 0; in sunxi_usb_device_enable() local 3460 retval = sunxi_get_udc_resource(pdev, &g_sunxi_udc_io); in sunxi_usb_device_enable() 3461 if (retval != 0) { in sunxi_usb_device_enable() 3466 retval = sunxi_udc_io_init(usbd_port_no, &g_sunxi_udc_io); in sunxi_usb_device_enable() 3467 if (retval != 0) { in sunxi_usb_device_enable() [all …]
|