Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 3762) sorted by relevance

12345678910>>...151

/OK3568_Linux_fs/kernel/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_resource.c40 void vmw_resource_mob_attach(struct vmw_resource *res) in vmw_resource_mob_attach() argument
42 struct vmw_buffer_object *backup = res->backup; in vmw_resource_mob_attach()
45 dma_resv_assert_held(res->backup->base.base.resv); in vmw_resource_mob_attach()
46 res->used_prio = (res->res_dirty) ? res->func->dirty_prio : in vmw_resource_mob_attach()
47 res->func->prio; in vmw_resource_mob_attach()
54 new = (res->backup_offset < this->backup_offset) ? in vmw_resource_mob_attach()
58 rb_link_node(&res->mob_node, parent, new); in vmw_resource_mob_attach()
59 rb_insert_color(&res->mob_node, &backup->res_tree); in vmw_resource_mob_attach()
61 vmw_bo_prio_add(backup, res->used_prio); in vmw_resource_mob_attach()
68 void vmw_resource_mob_detach(struct vmw_resource *res) in vmw_resource_mob_detach() argument
[all …]
/OK3568_Linux_fs/u-boot/drivers/bios_emulator/x86emu/
H A Dprim_ops.c132 static void set_parity_flag(u32 res) in set_parity_flag() argument
134 CONDITIONAL_SET_FLAG(PARITY(res & 0xFF), F_PF); in set_parity_flag()
137 static void set_szp_flags_8(u8 res) in set_szp_flags_8() argument
139 CONDITIONAL_SET_FLAG(res & 0x80, F_SF); in set_szp_flags_8()
140 CONDITIONAL_SET_FLAG(res == 0, F_ZF); in set_szp_flags_8()
141 set_parity_flag(res); in set_szp_flags_8()
144 static void set_szp_flags_16(u16 res) in set_szp_flags_16() argument
146 CONDITIONAL_SET_FLAG(res & 0x8000, F_SF); in set_szp_flags_16()
147 CONDITIONAL_SET_FLAG(res == 0, F_ZF); in set_szp_flags_16()
148 set_parity_flag(res); in set_szp_flags_16()
[all …]
/OK3568_Linux_fs/external/xserver/hw/xfree86/x86emu/
H A Dprim_ops.c136 u16 res; in aaa_word() local
148 res = (u16) (d & 0xFF0F); in aaa_word()
150 CONDITIONAL_SET_FLAG(res == 0, F_ZF); in aaa_word()
151 CONDITIONAL_SET_FLAG(PARITY(res & 0xff), F_PF); in aaa_word()
152 return res; in aaa_word()
162 u16 res; in aas_word() local
174 res = (u16) (d & 0xFF0F); in aas_word()
176 CONDITIONAL_SET_FLAG(res == 0, F_ZF); in aas_word()
177 CONDITIONAL_SET_FLAG(PARITY(res & 0xff), F_PF); in aas_word()
178 return res; in aas_word()
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-armhf/include/opencv2/core/cuda/
H A Dsaturate_cast.hpp67 uint res = 0; in saturate_cast() local
69 asm("cvt.sat.u8.s8 %0, %1;" : "=r"(res) : "r"(vi)); in saturate_cast()
70 return res; in saturate_cast()
74 uint res = 0; in saturate_cast() local
75 asm("cvt.sat.u8.s16 %0, %1;" : "=r"(res) : "h"(v)); in saturate_cast()
76 return res; in saturate_cast()
80 uint res = 0; in saturate_cast() local
81 asm("cvt.sat.u8.u16 %0, %1;" : "=r"(res) : "h"(v)); in saturate_cast()
82 return res; in saturate_cast()
86 uint res = 0; in saturate_cast() local
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/OpenCV-android-sdk/sdk/native/jni/include/opencv2/core/cuda/
H A Dsaturate_cast.hpp67 uint res = 0; in saturate_cast() local
69 asm("cvt.sat.u8.s8 %0, %1;" : "=r"(res) : "r"(vi)); in saturate_cast()
70 return res; in saturate_cast()
74 uint res = 0; in saturate_cast() local
75 asm("cvt.sat.u8.s16 %0, %1;" : "=r"(res) : "h"(v)); in saturate_cast()
76 return res; in saturate_cast()
80 uint res = 0; in saturate_cast() local
81 asm("cvt.sat.u8.u16 %0, %1;" : "=r"(res) : "h"(v)); in saturate_cast()
82 return res; in saturate_cast()
86 uint res = 0; in saturate_cast() local
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-aarch64/include/opencv2/core/cuda/
H A Dsaturate_cast.hpp67 uint res = 0; in saturate_cast() local
69 asm("cvt.sat.u8.s8 %0, %1;" : "=r"(res) : "r"(vi)); in saturate_cast()
70 return res; in saturate_cast()
74 uint res = 0; in saturate_cast() local
75 asm("cvt.sat.u8.s16 %0, %1;" : "=r"(res) : "h"(v)); in saturate_cast()
76 return res; in saturate_cast()
80 uint res = 0; in saturate_cast() local
81 asm("cvt.sat.u8.u16 %0, %1;" : "=r"(res) : "h"(v)); in saturate_cast()
82 return res; in saturate_cast()
86 uint res = 0; in saturate_cast() local
[all …]
/OK3568_Linux_fs/kernel/drivers/pci/controller/dwc/
H A Dpcie-qcom.c188 union qcom_pcie_resources res; member
236 struct qcom_pcie_resources_2_1_0 *res = &pcie->res.v2_1_0; in qcom_pcie_get_resources_2_1_0() local
241 res->supplies[0].supply = "vdda"; in qcom_pcie_get_resources_2_1_0()
242 res->supplies[1].supply = "vdda_phy"; in qcom_pcie_get_resources_2_1_0()
243 res->supplies[2].supply = "vdda_refclk"; in qcom_pcie_get_resources_2_1_0()
244 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(res->supplies), in qcom_pcie_get_resources_2_1_0()
245 res->supplies); in qcom_pcie_get_resources_2_1_0()
249 res->clks[0].id = "iface"; in qcom_pcie_get_resources_2_1_0()
250 res->clks[1].id = "core"; in qcom_pcie_get_resources_2_1_0()
251 res->clks[2].id = "phy"; in qcom_pcie_get_resources_2_1_0()
[all …]
/OK3568_Linux_fs/kernel/fs/ocfs2/dlm/
H A Ddlmthread.c44 void __dlm_wait_on_lockres_flags(struct dlm_lock_resource *res, int flags) in __dlm_wait_on_lockres_flags() argument
48 assert_spin_locked(&res->spinlock); in __dlm_wait_on_lockres_flags()
50 add_wait_queue(&res->wq, &wait); in __dlm_wait_on_lockres_flags()
53 if (res->state & flags) { in __dlm_wait_on_lockres_flags()
54 spin_unlock(&res->spinlock); in __dlm_wait_on_lockres_flags()
56 spin_lock(&res->spinlock); in __dlm_wait_on_lockres_flags()
59 remove_wait_queue(&res->wq, &wait); in __dlm_wait_on_lockres_flags()
63 int __dlm_lockres_has_locks(struct dlm_lock_resource *res) in __dlm_lockres_has_locks() argument
65 if (list_empty(&res->granted) && in __dlm_lockres_has_locks()
66 list_empty(&res->converting) && in __dlm_lockres_has_locks()
[all …]
H A Ddlmmaster.c51 struct dlm_lock_resource *res,
78 struct dlm_lock_resource *res,
87 static int dlm_do_master_request(struct dlm_lock_resource *res,
92 struct dlm_lock_resource *res,
96 struct dlm_lock_resource *res,
100 struct dlm_lock_resource *res,
107 struct dlm_lock_resource *res);
109 struct dlm_lock_resource *res);
111 struct dlm_lock_resource *res,
114 struct dlm_lock_resource *res);
[all …]
/OK3568_Linux_fs/kernel/drivers/infiniband/core/
H A Drestrack.c28 dev->res = kcalloc(RDMA_RESTRACK_MAX, sizeof(*rt), GFP_KERNEL); in rdma_restrack_init()
29 if (!dev->res) in rdma_restrack_init()
32 rt = dev->res; in rdma_restrack_init()
61 struct rdma_restrack_root *rt = dev->res; in rdma_restrack_clean()
69 struct xarray *xa = &dev->res[i].xa; in rdma_restrack_clean()
113 struct rdma_restrack_root *rt = &dev->res[type]; in rdma_restrack_count()
126 static struct ib_device *res_to_dev(struct rdma_restrack_entry *res) in res_to_dev() argument
128 switch (res->type) { in res_to_dev()
130 return container_of(res, struct ib_pd, res)->device; in res_to_dev()
132 return container_of(res, struct ib_cq, res)->device; in res_to_dev()
[all …]
/OK3568_Linux_fs/kernel/tools/lib/
H A Dhweight.c20 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32()
21 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in __sw_hweight32()
22 res = (res + (res >> 4)) & 0x0F0F0F0F; in __sw_hweight32()
23 res = res + (res >> 8); in __sw_hweight32()
24 return (res + (res >> 16)) & 0x000000FF; in __sw_hweight32()
30 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16() local
31 res = (res & 0x3333) + ((res >> 2) & 0x3333); in __sw_hweight16()
32 res = (res + (res >> 4)) & 0x0F0F; in __sw_hweight16()
33 return (res + (res >> 8)) & 0x00FF; in __sw_hweight16()
38 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8() local
[all …]
/OK3568_Linux_fs/kernel/lib/
H A Dhweight.c21 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32()
22 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in __sw_hweight32()
23 res = (res + (res >> 4)) & 0x0F0F0F0F; in __sw_hweight32()
24 res = res + (res >> 8); in __sw_hweight32()
25 return (res + (res >> 16)) & 0x000000FF; in __sw_hweight32()
32 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16() local
33 res = (res & 0x3333) + ((res >> 2) & 0x3333); in __sw_hweight16()
34 res = (res + (res >> 4)) & 0x0F0F; in __sw_hweight16()
35 return (res + (res >> 8)) & 0x00FF; in __sw_hweight16()
41 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8() local
[all …]
/OK3568_Linux_fs/external/security/librkcrypto/test/
H A Dtest_multi.c31 RK_RES res; in test_nosupport_multi() local
36 res = test_cipher(1); in test_nosupport_multi()
37 if (res) { in test_nosupport_multi()
38 E_TRACE("test_cipher error[%x]\n", res); in test_nosupport_multi()
42 res = test_hash(1); in test_nosupport_multi()
43 if (res) { in test_nosupport_multi()
44 E_TRACE("test_hash error[%x]\n", res); in test_nosupport_multi()
48 res = test_hmac(1); in test_nosupport_multi()
49 if (res) { in test_nosupport_multi()
50 E_TRACE("test_hash error[%x]\n", res); in test_nosupport_multi()
[all …]
/OK3568_Linux_fs/external/security/librkcrypto/demo/
H A Ddemo_rsa.c125 RK_RES res = RK_CRYPTO_SUCCESS; in demo_rsa_pub_enc() local
135 res = rk_crypto_init(); in demo_rsa_pub_enc()
136 if (res) { in demo_rsa_pub_enc()
137 printf("rk_crypto_init error %08x\n", res); in demo_rsa_pub_enc()
138 return res; in demo_rsa_pub_enc()
144 res = RK_CRYPTO_ERR_OUT_OF_MEMORY; in demo_rsa_pub_enc()
151 res = RK_CRYPTO_ERR_OUT_OF_MEMORY; in demo_rsa_pub_enc()
160 res = rk_rsa_pub_encrypt(&pub_key, padding, plain, sizeof(plain), enc_buf, &out_len); in demo_rsa_pub_enc()
161 if (res) { in demo_rsa_pub_enc()
162 if (res != RK_CRYPTO_ERR_NOT_SUPPORTED) in demo_rsa_pub_enc()
[all …]
H A Ddemo_ae.c66 RK_RES res = RK_CRYPTO_ERR_GENERIC; in demo_ae() local
76 res = rk_crypto_init(); in demo_ae()
77 if (res) { in demo_ae()
78 printf("rk_crypto_init error! res: 0x%08x\n", res); in demo_ae()
79 return res; in demo_ae()
85 res = RK_CRYPTO_ERR_GENERIC; in demo_ae()
92 res = RK_CRYPTO_ERR_GENERIC; in demo_ae()
99 res = RK_CRYPTO_ERR_GENERIC; in demo_ae()
103 res = set_ae_config(&config, algo, mode, RK_OP_CIPHER_ENC, key_0, sizeof(key_0), iv, in demo_ae()
105 if (res) { in demo_ae()
[all …]
H A Ddemo_hash.c42 RK_RES res = RK_CRYPTO_ERR_GENERIC; in demo_hash() local
50 res = rk_crypto_init(); in demo_hash()
51 if (res) { in demo_hash()
52 printf("rk_crypto_init error! res: 0x%08x\n", res); in demo_hash()
53 return res; in demo_hash()
59 res = RK_CRYPTO_ERR_GENERIC; in demo_hash()
67 res = rk_hash_init(&hash_cfg, &hash_hdl); in demo_hash()
68 if (res) { in demo_hash()
69 printf("rk_hash_init error! res: 0x%08x\n", res); in demo_hash()
73 res = rk_hash_update(hash_hdl, in->dma_fd, in->size); in demo_hash()
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v1/ta/rk_public_api/
H A Drk_crypto_api.c35 TEE_Result res; in rk_gen_rsa_key() local
58 res = TEE_AllocateTransientObject(TEE_TYPE_RSA_KEYPAIR, key_len * 8, &obj); in rk_gen_rsa_key()
59 if (res != TEE_SUCCESS) { in rk_gen_rsa_key()
60 EMSG("TEE_AllocateTransientObject failed with code 0x%x", res); in rk_gen_rsa_key()
61 return res; in rk_gen_rsa_key()
64 res = TEE_GenerateKey(obj, key_len * 8, &attr, 1); in rk_gen_rsa_key()
65 if (res != TEE_SUCCESS) { in rk_gen_rsa_key()
66 EMSG("TEE_GenerateKey failed with code 0x%x", res); in rk_gen_rsa_key()
71 res = TEE_GetObjectBufferAttribute(obj, TEE_ATTR_RSA_MODULUS, rsa_key->n, in rk_gen_rsa_key()
73 if (res != TEE_SUCCESS) { in rk_gen_rsa_key()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/omap3isp/
H A Dispresizer.c117 __resizer_get_format(struct isp_res_device *res, struct v4l2_subdev_pad_config *cfg, in __resizer_get_format() argument
121 return v4l2_subdev_get_try_format(&res->subdev, cfg, pad); in __resizer_get_format()
123 return &res->formats[pad]; in __resizer_get_format()
133 __resizer_get_crop(struct isp_res_device *res, struct v4l2_subdev_pad_config *cfg, in __resizer_get_crop() argument
137 return v4l2_subdev_get_try_crop(&res->subdev, cfg, RESZ_PAD_SINK); in __resizer_get_crop()
139 return &res->crop.request; in __resizer_get_crop()
149 static void resizer_set_filters(struct isp_res_device *res, const u16 *h_coeff, in resizer_set_filters() argument
152 struct isp_device *isp = to_isp_device(res); in resizer_set_filters()
180 static void resizer_set_bilinear(struct isp_res_device *res, in resizer_set_bilinear() argument
183 struct isp_device *isp = to_isp_device(res); in resizer_set_bilinear()
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/rk_public_api/
H A Drk_crypto_api.c35 TEE_Result res; in rk_gen_rsa_key() local
58 res = TEE_AllocateTransientObject(TEE_TYPE_RSA_KEYPAIR, key_len * 8, &obj); in rk_gen_rsa_key()
59 if (res != TEE_SUCCESS) { in rk_gen_rsa_key()
60 EMSG("TEE_AllocateTransientObject failed with code 0x%x", res); in rk_gen_rsa_key()
61 return res; in rk_gen_rsa_key()
64 res = TEE_GenerateKey(obj, key_len * 8, &attr, 1); in rk_gen_rsa_key()
65 if (res != TEE_SUCCESS) { in rk_gen_rsa_key()
66 EMSG("TEE_GenerateKey failed with code 0x%x", res); in rk_gen_rsa_key()
71 res = TEE_GetObjectBufferAttribute(obj, TEE_ATTR_RSA_MODULUS, rsa_key->n, in rk_gen_rsa_key()
73 if (res != TEE_SUCCESS) { in rk_gen_rsa_key()
[all …]
/OK3568_Linux_fs/kernel/drivers/pnp/
H A Dmanager.c27 struct resource *res = pnp_get_resource(dev, type, bar); in pnp_find_resource() local
30 if (res) { in pnp_find_resource()
31 res->flags &= ~IORESOURCE_BITS; in pnp_find_resource()
32 res->flags |= rule & IORESOURCE_BITS; in pnp_find_resource()
35 return res; in pnp_find_resource()
40 struct resource *res, local_res; in pnp_assign_port() local
42 res = pnp_find_resource(dev, rule->flags, IORESOURCE_IO, idx); in pnp_assign_port()
43 if (res) { in pnp_assign_port()
45 "flags %#lx\n", idx, (unsigned long long) res->start, in pnp_assign_port()
46 (unsigned long long) res->end, res->flags); in pnp_assign_port()
[all …]
/OK3568_Linux_fs/u-boot/board/gdsys/common/
H A Dphy.c124 int res; in process_setupcmd() local
136 res = miiphy_read(bus, addr, reg, &orig_data); in process_setupcmd()
137 if (res) in process_setupcmd()
145 res = miiphy_write(bus, addr, reg, data); in process_setupcmd()
148 res = miiphy_read(bus, addr, reg, &orig_data); in process_setupcmd()
149 if (res) in process_setupcmd()
152 res = -1; in process_setupcmd()
154 orig_data, res ? "FAIL" : "PASS"); in process_setupcmd()
157 res = -1; in process_setupcmd()
159 while ((res != 0) && (get_timer(start) < timeout)) { in process_setupcmd()
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/rk_test/
H A Drktest_crypto.c12 TEE_Result res = TEE_SUCCESS; in handle_crypto_sha() local
33 res = rk_hash_begin(ctx, hash_algo); in handle_crypto_sha()
34 if (res) { in handle_crypto_sha()
35 EMSG("rk_hash_begin FAILED! return value: 0x%x", res); in handle_crypto_sha()
39 res = rk_hash_update(ctx, in_data, sizeof(in_data)); in handle_crypto_sha()
40 if (res) { in handle_crypto_sha()
41 EMSG("rk_hash_update FAILED! return value: 0x%x", res); in handle_crypto_sha()
45 res = rk_hash_finish(ctx, NULL, out_data, 0, &out_len); in handle_crypto_sha()
46 if (res) { in handle_crypto_sha()
47 EMSG("rk_hash_finish FAILED! return value: 0x%x", res); in handle_crypto_sha()
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v1/ta/rk_test/
H A Drktest_crypto.c13 TEE_Result res = TEE_SUCCESS; in handle_crypto_sha() local
34 res = rk_hash_begin(ctx, hash_algo); in handle_crypto_sha()
35 if (res) { in handle_crypto_sha()
36 EMSG("rk_hash_begin FAILED! return value: 0x%x", res); in handle_crypto_sha()
40 res = rk_hash_update(ctx, in_data, sizeof(in_data)); in handle_crypto_sha()
41 if (res) { in handle_crypto_sha()
42 EMSG("rk_hash_update FAILED! return value: 0x%x", res); in handle_crypto_sha()
46 res = rk_hash_finish(ctx, NULL, out_data, 0, &out_len); in handle_crypto_sha()
47 if (res) { in handle_crypto_sha()
48 EMSG("rk_hash_finish FAILED! return value: 0x%x", res); in handle_crypto_sha()
[all …]
/OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/os_test/
H A Dos_test.c74 TEE_Result res = TEE_ERROR_GENERIC; in get_binblock_property() local
79 res = TEE_GetPropertyAsBinaryBlock(h, NULL, *bbuf, &block_len); in get_binblock_property()
81 if (res == TEE_SUCCESS && !block_len) in get_binblock_property()
84 if (res != TEE_ERROR_SHORT_BUFFER) { in get_binblock_property()
86 (unsigned int)res); in get_binblock_property()
87 return res ? res : TEE_ERROR_GENERIC; in get_binblock_property()
94 res = TEE_GetPropertyAsBinaryBlock(h, NULL, *bbuf, &block_len); in get_binblock_property()
95 if (res != TEE_SUCCESS) in get_binblock_property()
97 nbuf, (unsigned int)res); in get_binblock_property()
101 return res; in get_binblock_property()
[all …]
/OK3568_Linux_fs/kernel/drivers/firmware/
H A Drockchip_sip.c42 struct arm_smccc_res res; in __invoke_sip_fn_smc() local
44 arm_smccc_smc(function_id, arg0, arg1, arg2, 0, 0, 0, 0, &res); in __invoke_sip_fn_smc()
45 return res; in __invoke_sip_fn_smc()
68 struct arm_smccc_res res; in sip_smc_set_suspend_mode() local
70 res = __invoke_sip_fn_smc(SIP_SUSPEND_MODE, ctrl, config1, config2); in sip_smc_set_suspend_mode()
71 return res.a0; in sip_smc_set_suspend_mode()
77 struct arm_smccc_res res; in sip_smc_get_suspend_info() local
79 res = __invoke_sip_fn_smc(SIP_SUSPEND_MODE, info, 0, 0); in sip_smc_get_suspend_info()
80 return res; in sip_smc_get_suspend_info()
86 struct arm_smccc_res res; in sip_smc_virtual_poweroff() local
[all …]

12345678910>>...151