/device/soc/rockchip/common/sdk_linux/kernel/cgroup/ |
D | cpuset.c | 204 static inline struct cpuset *parent_cs(struct cpuset *cs) in parent_cs() argument 206 return css_cs(cs->css.parent); in parent_cs() 222 static inline bool is_cpuset_online(struct cpuset *cs) in is_cpuset_online() argument 224 return test_bit(CS_ONLINE, &cs->flags) && !css_is_dying(&cs->css); in is_cpuset_online() 227 static inline int is_cpu_exclusive(const struct cpuset *cs) in is_cpu_exclusive() argument 229 return test_bit(CS_CPU_EXCLUSIVE, &cs->flags); in is_cpu_exclusive() 232 static inline int is_mem_exclusive(const struct cpuset *cs) in is_mem_exclusive() argument 234 return test_bit(CS_MEM_EXCLUSIVE, &cs->flags); in is_mem_exclusive() 237 static inline int is_mem_hardwall(const struct cpuset *cs) in is_mem_hardwall() argument 239 return test_bit(CS_MEM_HARDWALL, &cs->flags); in is_mem_hardwall() [all …]
|
/device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/ |
D | hal_phyif.c | 51 .cs = 0, 95 uint8_t cs; in hal_phyif_reg_read() local 98 cs = SPIPHY_REG_CS(reg); in hal_phyif_reg_read() 103 if (cs != phy_cs) { in hal_phyif_reg_read() 104 hal_spiphy_activate_cs(cs); in hal_phyif_reg_read() 105 phy_cs = cs; in hal_phyif_reg_read() 117 uint8_t cs; in hal_phyif_reg_write() local 120 cs = SPIPHY_REG_CS(reg); in hal_phyif_reg_write() 125 if (cs != phy_cs) { in hal_phyif_reg_write() 126 hal_spiphy_activate_cs(cs); in hal_phyif_reg_write() [all …]
|
D | hal_spi.h | 52 uint8_t cs; member 82 void hal_ispi_rom_activate_cs(uint32_t cs); 106 int hal_ispi_close(uint32_t cs); 108 void hal_ispi_activate_cs(uint32_t cs); 130 int hal_spi_close(uint32_t cs); 132 int hal_spi_activate_cs(uint32_t cs); 164 int hal_spilcd_close(uint32_t cs); 166 int hal_spilcd_activate_cs(uint32_t cs); 200 int hal_spiphy_close(uint32_t cs); 202 void hal_spiphy_activate_cs(uint32_t cs); [all …]
|
D | hal_spi.c | 185 static int hal_spi_activate_cs_id(enum HAL_SPI_ID_T id, uint32_t cs); 301 SPI_ASSERT(cfg->cs < HAL_SPI_CS_QTY, "SPI cs bad: %d", cfg->cs); in hal_spi_init_ctrl() 329 SPI_SLAVE_ID(cfg->cs) | in hal_spi_init_ctrl() 470 spi_cs_map[id] |= (1 << cfg->cs); in hal_spi_open_id() 485 static int POSSIBLY_UNUSED hal_spi_close_id(enum HAL_SPI_ID_T id, uint32_t cs) in hal_spi_close_id() argument 491 if (spi_cs_map[id] & (1 << cs)) { in hal_spi_close_id() 492 spi_cs_map[id] &= ~(1 << cs); in hal_spi_close_id() 516 static void POSSIBLY_UNUSED ISPI_API_LOC hal_spi_set_cs_id(enum HAL_SPI_ID_T id, uint32_t cs) in hal_spi_set_cs_id() argument 518 spi[id]->SSPCR1 = SET_BITFIELD(spi[id]->SSPCR1, SPI_SLAVE_ID, cs); in hal_spi_set_cs_id() 656 void hal_ispi_rom_activate_cs(uint32_t cs) in hal_ispi_rom_activate_cs() argument [all …]
|
D | hal_phyif.h | 24 int hal_phyif_open(uint32_t cs); 26 int hal_phyif_close(uint32_t cs);
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/secure/ |
D | load_crypto.c | 28 hi_u32 cs = (uintptr_t)content ^ content_len ^ 0x0 ^ content_len; in loader_clear_content() local 29 (hi_void)memset_s(content, content_len, 0x0, content_len, cs); in loader_clear_content() 53 hi_u32 cs = (uintptr_t)salt_e ^ (hi_u32)sizeof(salt_e) ^ 0x0 ^ ROOT_SALT_LENGTH; in crypto_load_salt() local 54 (hi_void) memset_s(salt_e, sizeof(salt_e), 0x0, ROOT_SALT_LENGTH, cs); in crypto_load_salt() 97 hi_u32 cs; in crypto_prepare() local 109 …cs = (uintptr_t)rootkey_iv ^ sizeof(rootkey_iv) ^ ((uintptr_t)save_content->root_salt) ^ ROOT_SALT… in crypto_prepare() 110 ret = memcpy_s(rootkey_iv, sizeof(rootkey_iv), save_content->root_salt, ROOT_SALT_LENGTH, cs); in crypto_prepare() 133 hi_u32 cs; in crypto_decrypt_hash() local 141 cs = (uintptr_t)(content_tmp) ^ content_size ^ (uintptr_t)(key_content) ^ content_size; in crypto_decrypt_hash() 142 ret = (hi_u32)memcpy_s(content_tmp, content_size, key_content, content_size, cs); in crypto_decrypt_hash() [all …]
|
/device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/best2003/ |
D | hal_analogif_best2003.c | 70 .cs = 0, 113 uint8_t cs; in hal_analogif_reg_read() local 115 cs = ISPI_REG_CS(reg); in hal_analogif_reg_read() 119 if (cs != ana_cs) { in hal_analogif_reg_read() 120 hal_ispi_activate_cs(cs); in hal_analogif_reg_read() 121 ana_cs = cs; in hal_analogif_reg_read() 133 uint8_t cs; in hal_analogif_reg_write() local 135 cs = ISPI_REG_CS(reg); in hal_analogif_reg_write() 139 if (cs != ana_cs) { in hal_analogif_reg_write() 140 hal_ispi_activate_cs(cs); in hal_analogif_reg_write() [all …]
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/ |
D | crypto.c | 98 hi_u32 cs = (uintptr_t)content ^ content_len ^ 0x0 ^ content_len; in crypto_clear_content() local 99 (hi_void)memset_s(content, content_len, 0x0, content_len, cs); in crypto_clear_content() 107 hi_u32 cs = (uintptr_t)salt_e ^ (hi_u32)sizeof(salt_e) ^ 0x0 ^ ROOT_SALT_LENGTH; in crypto_load_salt() local 108 (hi_void) memset_s(salt_e, sizeof(salt_e), 0x0, ROOT_SALT_LENGTH, cs); in crypto_load_salt() 147 hi_u32 cs; in crypto_prepare() local 159 …cs = (uintptr_t)rootkey_iv ^ sizeof(rootkey_iv) ^ ((uintptr_t)save_content->root_salt) ^ ROOT_SALT… in crypto_prepare() 160 ret = memcpy_s(rootkey_iv, sizeof(rootkey_iv), save_content->root_salt, ROOT_SALT_LENGTH, cs); in crypto_prepare() 214 …hi_u32 cs = (uintptr_t)(aes_ctrl.iv) ^ (hi_u32)sizeof(aes_ctrl.iv) ^ (uintptr_t)(key_content->iv_n… in crypto_encrypt_hash() local 216 … ret = (hi_u32)memcpy_s(aes_ctrl.iv, sizeof(aes_ctrl.iv), key_content->iv_nv, IV_BYTE_LENGTH, cs); in crypto_encrypt_hash() 237 cs = (uintptr_t)key_content_ptr ^ encrypt_size ^ (uintptr_t)data_tmp_ptr ^ encrypt_size; in crypto_encrypt_hash() [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/bcmdhd/include/ |
D | sbchipc.h | 2214 #define CST43239_CHIPMODE_SDIOD(cs) ((cs) & (1 << 15)) /**< SDIO || gSPI */ argument 2215 #define CST43239_CHIPMODE_USB20D(cs) (~(cs) & (1 << 15)) /**< USB || USBDA */ argument 2216 #define CST43239_CHIPMODE_SDIO(cs) (((cs) & (1 << 0)) == 0) /**< SDIO */ argument 2217 #define CST43239_CHIPMODE_GSPI(cs) (((cs) & (1 << 0)) == (1 << 0)) /**< gSPI */ argument 2257 #define CST4324_CHIPMODE_SDIOD(cs) ((~(cs)) & (1 << 2)) /**< SDIO || gSPI */ argument 2258 #define CST4324_CHIPMODE_USB20D(cs) (((cs) & CST4324_CHIPMODE_MASK) == 0x6) /**< USB || USBDA… argument 2466 #define CST4330_CHIPMODE_SDIOD(cs) (((cs) & 0x7) < 6) /**< SDIO || gSPI */ argument 2467 #define CST4330_CHIPMODE_USB20D(cs) (((cs) & 0x7) >= 6) /**< USB || USBDA */ argument 2468 #define CST4330_CHIPMODE_SDIO(cs) (((cs) & 0x4) == 0) /**< SDIO */ argument 2469 #define CST4330_CHIPMODE_GSPI(cs) (((cs) & 0x6) == 4) /**< gSPI */ argument [all …]
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/upg/ |
D | boot_upg_check_secure.c | 95 hi_u32 cs = (uintptr_t)content ^ content_len ^ 0x0 ^ content_len; in upg_clear_content() local 96 (hi_void)memset_s(content, content_len, 0x0, content_len, cs); in upg_clear_content() 121 hi_u32 cs = (uintptr_t)key_n ^ key_len ^ (uintptr_t)g_boot_ecc_key ^ ECC_256_LEN; in boot_upg_secure_get_key_part1() local 122 ret = memcpy_s(key_n, key_len, g_boot_ecc_key, ECC_256_LEN, cs); in boot_upg_secure_get_key_part1() 127 hi_u32 cs = (uintptr_t)key_n ^ key_len ^ (uintptr_t)g_boot_rsa_key ^ RSA_2048_LEN; in boot_upg_secure_get_key_part1() local 128 ret = memcpy_s(key_n, key_len, g_boot_rsa_key, RSA_2048_LEN, cs); in boot_upg_secure_get_key_part1() 142 … hi_u32 cs = (uintptr_t)key_e ^ key_len ^ (uintptr_t)(g_boot_ecc_key + ECC_256_LEN) ^ ECC_256_LEN; in boot_upg_secure_get_key_part2() local 143 ret = memcpy_s(key_e, key_len, g_boot_ecc_key + ECC_256_LEN, ECC_256_LEN, cs); in boot_upg_secure_get_key_part2() 211 hi_u32 cs; in boot_upg_set_key() local 214 … cs = (uintptr_t)key2 ^ ECC_256_LEN ^ (uintptr_t)((hi_u8 *)upg_head + key2_offset) ^ ECC_256_LEN; in boot_upg_set_key() [all …]
|
D | boot_upg_tool.c | 65 hi_u32 cs; in kernel_comprss_flash_hash() local 82 cs = (uintptr_t)(g_compress_dst_addr + offset) ^ cy_size ^ (uintptr_t)buffer ^ cy_size; in kernel_comprss_flash_hash() 83 …void) memcpy_s((hi_void *)(uintptr_t)(g_compress_dst_addr + offset), cy_size, buffer, cy_size, cs); in kernel_comprss_flash_hash() 95 cs = (uintptr_t)(g_compress_dst_addr + offset) ^ size ^ (uintptr_t)buffer ^ size; in kernel_comprss_flash_hash() 96 … (hi_void) memcpy_s((hi_void *)(uintptr_t)(g_compress_dst_addr + offset), size, buffer, size, cs); in kernel_comprss_flash_hash() 156 hi_u32 cs; in boot_upg_hash_more_content() local 172 … cs = (uintptr_t)block ^ HI_BLOCK_SIZE ^ (uintptr_t)(param->flash_addr[i] + offset) ^ this_size; in boot_upg_hash_more_content() 173 … = (hi_u32)memcpy_s(block, HI_BLOCK_SIZE, (hi_u8 *)(param->flash_addr[i] + offset), this_size, cs); in boot_upg_hash_more_content() 232 hi_u32 cs; in boot_upg_lzma_secure_verify_code() local 242 cs = (uintptr_t)key_e ^ HI_BLOCK_SIZE ^ 0 ^ HI_BLOCK_SIZE; in boot_upg_lzma_secure_verify_code() [all …]
|
D | boot_upg_start_up.c | 26 hi_u32 cs = (uintptr_t)cfg ^ sizeof(hi_nv_ftm_startup_cfg) ^ 0 ^ sizeof(hi_nv_ftm_startup_cfg); in boot_upg_set_default_cfg() local 27 if (memset_s(cfg, sizeof(hi_nv_ftm_startup_cfg), 0, sizeof(hi_nv_ftm_startup_cfg), cs) != EOK) { in boot_upg_set_default_cfg() 64 hi_u32 cs; in boot_upg_load_cfg_from_nv() local 76 …cs = (uintptr_t)cfg ^ sizeof(hi_nv_ftm_startup_cfg) ^ ((uintptr_t)&nv_cfg) ^ sizeof(hi_nv_ftm_star… in boot_upg_load_cfg_from_nv() 77 …(memcpy_s(cfg, sizeof(hi_nv_ftm_startup_cfg), &nv_cfg, sizeof(hi_nv_ftm_startup_cfg), cs) != EOK) { in boot_upg_load_cfg_from_nv()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/ |
D | osal_string.c | 26 int osal_strcmp(const char *cs, const char *ct) in osal_strcmp() argument 28 return strcmp(cs, ct); in osal_strcmp() 31 int osal_strncmp(const char *cs, const char *ct, int count) in osal_strncmp() argument 33 return strncmp(cs, ct, count); in osal_strncmp() 93 char *osal_strpbrk(const char *cs, const char *ct) in osal_strpbrk() argument 95 return strpbrk(cs, ct); in osal_strpbrk() 118 int osal_memcmp(const void *cs, const void *ct, int count) in osal_memcmp() argument 120 return memcmp(cs, ct, count); in osal_memcmp()
|
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/include/ |
D | sbchipc.h | 2344 #define CST4360_RSRC_INIT_MODE(cs) \ argument 2345 ((cs & CST4360_RSRC_INIT_MODE_MASK) >> CST4360_RSRC_INIT_MODE_SHIFT) 2349 #define CST4360_RSRC_INIT_MODE(cs) \ argument 2350 ((cs & CST4360_RSRC_INIT_MODE_MASK) >> CST4360_RSRC_INIT_MODE_SHIFT) 2550 #define CST4349_CHIPMODE_SDIOD(cs) (((cs) & (1 << 6)) != 0) /* SDIO */ argument 2551 #define CST4349_CHIPMODE_PCIE(cs) (((cs) & (1 << 7)) != 0) /* PCIE */ argument 2555 #define CST4373_CHIPMODE_USB20D(cs) (((cs) & (1 << 8)) != 0) /* USB */ argument 2556 #define CST4373_CHIPMODE_SDIOD(cs) (((cs) & (1 << 7)) != 0) /* SDIO */ argument 2557 #define CST4373_CHIPMODE_PCIE(cs) (((cs) & (1 << 6)) != 0) /* PCIE */ argument 2831 #define CST4364_CHIPMODE_SDIOD(cs) (((cs) & (1 << 6)) != 0) /* SDIO */ argument [all …]
|
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/ |
D | sbchipc.h | 2326 #define CST4360_RSRC_INIT_MODE(cs) ((cs & CST4360_RSRC_INIT_MODE_MASK) >> \ argument 2331 #define CST4360_RSRC_INIT_MODE(cs) ((cs & CST4360_RSRC_INIT_MODE_MASK) >> \ argument 2527 #define CST4349_CHIPMODE_SDIOD(cs) (((cs) & (1 << 6)) != 0) /* SDIO */ argument 2528 #define CST4349_CHIPMODE_PCIE(cs) (((cs) & (1 << 7)) != 0) /* PCIE */ argument 2532 #define CST4373_CHIPMODE_USB20D(cs) (((cs) & (1 << 8)) != 0) /* USB */ argument 2533 #define CST4373_CHIPMODE_SDIOD(cs) (((cs) & (1 << 7)) != 0) /* SDIO */ argument 2534 #define CST4373_CHIPMODE_PCIE(cs) (((cs) & (1 << 6)) != 0) /* PCIE */ argument 2807 #define CST4364_CHIPMODE_SDIOD(cs) (((cs) & (1 << 6)) != 0) /* SDIO */ argument 2808 #define CST4364_CHIPMODE_PCIE(cs) (((cs) & (1 << 7)) != 0) /* PCIE */ argument 2918 #define CST4347_CHIPMODE_SDIOD(cs) (((cs) & (1 << 6)) != 0) /* SDIO */ argument [all …]
|
/device/board/isoftstone/yangfan/kernel/src/driv/gpu/rockchip/ |
D | rockchip_drm_display_pattern.c | 114 unsigned int cs = yuv->chroma_stride; in fill_smpte_yuv_planar() local 146 u_mem[x * cs / xsub] = colors_top[x * 7 / width].u; in fill_smpte_yuv_planar() 147 v_mem[x * cs / xsub] = colors_top[x * 7 / width].v; in fill_smpte_yuv_planar() 149 u_mem += stride * cs / xsub; in fill_smpte_yuv_planar() 150 v_mem += stride * cs / xsub; in fill_smpte_yuv_planar() 155 u_mem[x * cs / xsub] = colors_middle[x * 7 / width].u; in fill_smpte_yuv_planar() 156 v_mem[x * cs / xsub] = colors_middle[x * 7 / width].v; in fill_smpte_yuv_planar() 158 u_mem += stride * cs / xsub; in fill_smpte_yuv_planar() 159 v_mem += stride * cs / xsub; in fill_smpte_yuv_planar() 164 u_mem[x * cs / xsub] = in fill_smpte_yuv_planar() [all …]
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/common/ |
D | cmd_loop.c | 249 hi_u32 cs = (uintptr_t)efuse_data ^ KERNEL_VER_LEN ^ 0 ^ KERNEL_VER_LEN; in get_efuse_code_ver() local 250 (hi_void) memset_s(efuse_data, KERNEL_VER_LEN, 0, KERNEL_VER_LEN, cs); in get_efuse_code_ver() 355 hi_u32 cs = (uintptr_t)g_upg_efuse_data_boot_ver ^ BOOT_VER_LEN ^ 0 ^ BOOT_VER_LEN; in set_efuse_boot_kernel_ver() local 356 (hi_void) memset_s(g_upg_efuse_data_boot_ver, BOOT_VER_LEN, 0, BOOT_VER_LEN, cs); in set_efuse_boot_kernel_ver() 364 hi_u32 cs = (uintptr_t)g_upg_efuse_data_kernel_ver ^ KERNEL_VER_LEN ^ 0 ^ KERNEL_VER_LEN; in set_efuse_boot_kernel_ver() local 365 (hi_void) memset_s(g_upg_efuse_data_kernel_ver, KERNEL_VER_LEN, 0, KERNEL_VER_LEN, cs); in set_efuse_boot_kernel_ver() 653 hi_u32 cs = 0 ^ (uintptr_t)(hi_u8 *)&(ctx->packet) ^ (head->packet_size - CHECKSUM_SIZE); in loader_ack() local 654 …>packet.check_sum = crc16_ccitt(0, (hi_u8 *)&(ctx->packet), head->packet_size - CHECKSUM_SIZE, cs); in loader_ack() 665 hi_u32 cs; in loader_read_frame() local 670 … cs = (uintptr_t)packet ^ (hi_u32)sizeof(packet_data_info) ^ 0 ^ (hi_u32)sizeof(packet_data_info); in loader_read_frame() [all …]
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/drivers/flash/ |
D | hi_loaderboot_flash.c | 75 …hi_u32 cs = (uintptr_t)flash_info ^ sizeof(flash_vlt_sfc_info) ^ (uintptr_t)info ^ sizeof(flash_vl… in sfc_config_set_experience() local 76 …if (memcpy_s(flash_info, sizeof(flash_vlt_sfc_info), info, sizeof(flash_vlt_sfc_info), cs) != EOK)… in sfc_config_set_experience() 359 hi_u32 cs; in flash_init_cfg() local 363 cs = ((uintptr_t)&spif_ctrl->opt_read) ^ sizeof(spi_flash_operation) ^ in flash_init_cfg() 366 sizeof(spi_flash_operation), cs) != EOK) { in flash_init_cfg() 370 cs = ((uintptr_t)&spif_ctrl->opt_read) ^ sizeof(spi_flash_operation) ^ in flash_init_cfg() 373 sizeof(spi_flash_operation), cs) != EOK) { in flash_init_cfg() 378 cs = ((uintptr_t)&spif_ctrl->opt_read) ^ sizeof(spi_flash_operation) ^ in flash_init_cfg() 381 sizeof(spi_flash_operation), cs) != EOK) { in flash_init_cfg()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/common/nvm/ |
D | hi_nvm.c | 144 hi_u32 ret, cs; in nv_init_index() local 154 cs = (uintptr_t)(nv_ctrl->index) ^ index_size ^ (uintptr_t)p_index ^ index_size; in nv_init_index() 155 ret = (hi_u32)memcpy_s(nv_ctrl->index, index_size, p_index, index_size, cs); in nv_init_index() 206 hi_u32 cs = (uintptr_t)back ^ block_size ^ (uintptr_t)data ^ block_size; in nv_init_common() local 207 if (memcpy_s(back, block_size, data, block_size, cs) != EOK) { in nv_init_common() 319 hi_u32 ret, crc, cs; in nv_common_write() local 346 cs = (uintptr_t)(nv_file + nv_index->nv_offset) ^ item_len ^ (uintptr_t)data ^ item_len; in nv_common_write() 347 if (memcpy_s(nv_file + nv_index->nv_offset, item_len, data, item_len, cs) != EOK) { in nv_common_write() 350 …cs = (uintptr_t)(nv_file + nv_index->nv_offset + item_len) ^ sizeof(crc) ^ ((uintptr_t)&crc) ^ siz… in nv_common_write() 351 …if (memcpy_s(nv_file + nv_index->nv_offset + item_len, sizeof(crc), &crc, sizeof(crc), cs) != EOK)… in nv_common_write()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/common/nvm/ |
D | hi_nvm.c | 145 hi_u32 ret, cs; in nv_init_index() local 155 cs = (uintptr_t)(nv_ctrl->index) ^ index_size ^ (uintptr_t)p_index ^ index_size; in nv_init_index() 156 ret = (hi_u32)memcpy_s(nv_ctrl->index, index_size, p_index, index_size, cs); in nv_init_index() 207 hi_u32 cs = (uintptr_t)back ^ block_size ^ (uintptr_t)data ^ block_size; in nv_init_common() local 208 if (memcpy_s(back, block_size, data, block_size, cs) != EOK) { in nv_init_common() 322 hi_u32 ret, crc, cs; in nv_common_write() local 349 cs = (uintptr_t)(nv_file + nv_index->nv_offset) ^ item_len ^ (uintptr_t)data ^ item_len; in nv_common_write() 350 if (memcpy_s(nv_file + nv_index->nv_offset, item_len, data, item_len, cs) != EOK) { in nv_common_write() 353 …cs = (uintptr_t)(nv_file + nv_index->nv_offset + item_len) ^ sizeof(crc) ^ ((uintptr_t)&crc) ^ siz… in nv_common_write() 354 …if (memcpy_s(nv_file + nv_index->nv_offset + item_len, sizeof(crc), &crc, sizeof(crc), cs) != EOK)… in nv_common_write()
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/de/ |
D | disp_capture.c | 469 enum disp_csc_type cs = DISP_CSC_TYPE_RGB; in disp_capture_commit() local 493 cs = dispdev->get_input_csc(dispdev); in disp_capture_commit() 495 if ((DISP_CSC_TYPE_RGB != cs) && in disp_capture_commit() 508 if ((DISP_CSC_TYPE_YUV444 == cs) || (DISP_CSC_TYPE_YUV422 == cs) || in disp_capture_commit() 509 (DISP_CSC_TYPE_YUV420 == cs)) { in disp_capture_commit() 556 if (DISP_CSC_TYPE_RGB == cs) in disp_capture_commit() 558 else if (DISP_CSC_TYPE_YUV444 == cs) in disp_capture_commit() 560 else if (DISP_CSC_TYPE_YUV422 == cs) in disp_capture_commit() 657 enum disp_csc_type cs = DISP_CSC_TYPE_RGB; in disp_capture_commit2() local 735 cs = dispdev->get_input_csc(dispdev); in disp_capture_commit2() [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/de/lowlevel_v3x/ |
D | de_hal.c | 486 enum disp_color_space cs[CHN_NUM] = {0}; in de_al_lyr_apply() enum 514 cs[data1->config.channel] = in de_al_lyr_apply() 524 if ((cs[data1->config.channel] == DISP_UNDEF) || in de_al_lyr_apply() 525 (cs[data1->config.channel] == DISP_RESERVED)) { in de_al_lyr_apply() 527 cs[data1->config.channel] = DISP_BT709; in de_al_lyr_apply() 530 cs[data1->config.channel] = DISP_BT601; in de_al_lyr_apply() 531 } else if ((cs[data1->config.channel] == DISP_UNDEF_F) || in de_al_lyr_apply() 532 (cs[data1->config.channel] == DISP_RESERVED_F)) { in de_al_lyr_apply() 534 cs[data1->config.channel] = DISP_BT709_F; in de_al_lyr_apply() 537 cs[data1->config.channel] = DISP_BT601_F; in de_al_lyr_apply() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/app_drivers/src/ |
D | app_spi.c | 153 (s_spi_env[id].pin_cfg.cs.enable == APP_SPI_PIN_ENABLE)) { in SPI_SMART_CS_LOW() 154 app_io_write_pin(s_spi_env[id].pin_cfg.cs.type, in SPI_SMART_CS_LOW() 155 s_spi_env[id].pin_cfg.cs.pin, in SPI_SMART_CS_LOW() 163 (s_spi_env[id].pin_cfg.cs.enable == APP_SPI_PIN_ENABLE)) { in SPI_SMART_CS_HIGH() 164 app_io_write_pin(s_spi_env[id].pin_cfg.cs.type, in SPI_SMART_CS_HIGH() 165 s_spi_env[id].pin_cfg.cs.pin, in SPI_SMART_CS_HIGH() 277 if (pin_cfg.cs.enable == APP_SPI_PIN_ENABLE) { in spi_gpio_config() 279 io_init.pull = pin_cfg.cs.pull; in spi_gpio_config() 281 io_init.pin = pin_cfg.cs.pin; in spi_gpio_config() 282 io_init.mux = pin_cfg.cs.mux; in spi_gpio_config() [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/vin/utility/ |
D | cfg_op.c | 629 int cfg_get_one_subkey(struct cfg_section *cs, char *main, char *sub, in cfg_get_one_subkey() argument 634 for (i = 0; i < cs->mainkey_cnt; i++) { in cfg_get_one_subkey() 635 if (strcmp(cs->mainkey_name[i], main) != 0) in cfg_get_one_subkey() 637 for (j = 0; j < cs->mainkey[i]->subkey_cnt; j++) { in cfg_get_one_subkey() 638 if (strcmp(cs->mainkey[i]->subkey_name[j], sub) == 0) { in cfg_get_one_subkey() 639 ret = cs->mainkey[i]->subkey[j].type; in cfg_get_one_subkey() 640 memcpy(subkey, &cs->mainkey[i]->subkey[j], in cfg_get_one_subkey() 642 subkey = &cs->mainkey[i]->subkey[j]; in cfg_get_one_subkey()
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/drivers_ext/gr551x/ |
D | gr551x_spi_flash.c | 329 spim_params.pin_cfg.cs.type = p_flash_init->flash_io.spi_cs.gpio; in FLASH_SPIM_ID_init() 330 spim_params.pin_cfg.cs.pin = p_flash_init->flash_io.spi_cs.pin; in FLASH_SPIM_ID_init() 331 spim_params.pin_cfg.cs.mux = p_flash_init->flash_io.spi_cs.mux; in FLASH_SPIM_ID_init() 332 spim_params.pin_cfg.cs.pull = APP_IO_NOPULL; in FLASH_SPIM_ID_init() 333 spim_params.pin_cfg.cs.enable = APP_SPI_PIN_ENABLE; in FLASH_SPIM_ID_init() 368 qspi_params->pin_cfg.cs.type = p_flash_init->flash_io.spi_cs.gpio; in FLASH_SPIM_ID0_ID1_init() 369 qspi_params->pin_cfg.cs.pin = p_flash_init->flash_io.spi_cs.pin; in FLASH_SPIM_ID0_ID1_init() 370 qspi_params->pin_cfg.cs.mux = p_flash_init->flash_io.spi_cs.mux; in FLASH_SPIM_ID0_ID1_init() 371 qspi_params->pin_cfg.cs.pull = APP_IO_NOPULL; in FLASH_SPIM_ID0_ID1_init() 372 qspi_params->pin_cfg.cs.enable = APP_SPI_PIN_ENABLE; in FLASH_SPIM_ID0_ID1_init()
|