/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_netdev.c | 36 u64 encode = GENMASK_ULL(bit + width - 1, bit) & (value << bit); in __ifh_encode_bitfield() local 39 if (encode & 0xFF) in __ifh_encode_bitfield() 40 ifh_hdr[byte] |= (u8)((encode & 0xFF)); in __ifh_encode_bitfield() 42 if (encode & 0xFF00) in __ifh_encode_bitfield() 43 ifh_hdr[byte - 1] |= (u8)((encode & 0xFF00) >> 8); in __ifh_encode_bitfield() 45 if (encode & 0xFF0000) in __ifh_encode_bitfield() 46 ifh_hdr[byte - 2] |= (u8)((encode & 0xFF0000) >> 16); in __ifh_encode_bitfield() 48 if (encode & 0xFF000000) in __ifh_encode_bitfield() 49 ifh_hdr[byte - 3] |= (u8)((encode & 0xFF000000) >> 24); in __ifh_encode_bitfield() 51 if (encode in __ifh_encode_bitfield() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/tpm2/ |
H A D | tpm2_tests.py | 23 data = ('X' * 64).encode() 24 auth = ('A' * 15).encode() 33 data = ('X' * 64).encode() 34 auth = ('A' * 15).encode() 61 data = ('X' * 64).encode() 62 auth = ('A' * 20).encode() 68 auth[:-1] + 'B'.encode(), None) 77 data = ('X' * 64).encode() 78 auth = ('A' * 17).encode() 95 self.client.extend_pcr(1, ('X' * ds).encode()) [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/tpm2/ |
H A D | tpm2_tests.py | 23 data = ('X' * 64).encode() 24 auth = ('A' * 15).encode() 43 data = ('X' * 64).encode() 44 auth = ('A' * 15).encode() 71 data = ('X' * 64).encode() 72 auth = ('A' * 20).encode() 78 auth[:-1] + 'B'.encode(), None) 90 data = ('X' * 64).encode() 91 auth = ('A' * 17).encode() 108 self.client.extend_pcr(1, ('X' * ds).encode(), bank_al [all...] |
/device/soc/rockchip/rk3588/kernel/scripts/ |
H A D | mkbootimg | 68 BOOT_MAGIC = 'ANDROID!'.encode() 81 args.output.write(pack('1536s', args.cmdline.encode())) 86 BOOT_MAGIC = 'VNDRBOOT'.encode() 96 args.vendor_boot.write(pack('2048s', args.vendor_cmdline.encode())) 98 args.vendor_boot.write(pack('16s', args.board.encode())) # asciiz product name 109 BOOT_MAGIC = 'ANDROID!'.encode() 131 args.output.write(pack('16s', args.board.encode())) # asciiz product name 132 args.output.write(pack('512s', args.cmdline[:512].encode())) 147 args.output.write(pack('1024s', args.cmdline[512:].encode()))
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/ |
H A D | gen8_ppgtt.c | 289 vm->scratch[0]->encode, in __gen8_ppgtt_clear() 347 fill_px(pt, vm->scratch[lvl]->encode); in __gen8_ppgtt_alloc() 519 gen8_pte_t encode = pte_encode; in xehpsdv_ppgtt_insert_huge() local 532 encode |= GEN8_PDE_PS_2M; in xehpsdv_ppgtt_insert_huge() 550 if ((encode & GEN12_PPGTT_PTE_LM) && in xehpsdv_ppgtt_insert_huge() 564 encode |= GEN12_PTE_PS64; in xehpsdv_ppgtt_insert_huge() 578 encode | (iter->dma + i * in xehpsdv_ppgtt_insert_huge() 624 gen8_pte_t encode = pte_encode; in gen8_ppgtt_insert_huge() local 635 encode |= GEN8_PDE_PS_2M; in gen8_ppgtt_insert_huge() 658 vaddr[index++] = encode | ite in gen8_ppgtt_insert_huge() [all...] |
H A D | intel_ppgtt.c | 102 u64 (*encode)(const dma_addr_t, const enum i915_cache_level)) in __set_pd_entry() 109 write_dma_entry(px_base(pd), idx, encode(px_dma(to), I915_CACHE_LLC)); in __set_pd_entry() 119 write_dma_entry(px_base(pd), idx, scratch->encode); in clear_pd_entry()
|
H A D | gen6_ppgtt.c | 79 const gen6_pte_t scratch_pte = vm->scratch[0]->encode; in gen6_ppgtt_clear_range() 193 fill32_px(pt, vm->scratch[0]->encode); in gen6_alloc_va_range() 228 vm->scratch[0]->encode = in gen6_ppgtt_init_scratch() 244 fill32_px(vm->scratch[1], vm->scratch[0]->encode); in gen6_ppgtt_init_scratch()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
H A D | gen8_ppgtt.c | 242 vm->scratch[0]->encode, in __gen8_ppgtt_clear() 302 fill_px(pt, vm->scratch[lvl]->encode); in __gen8_ppgtt_alloc() 423 gen8_pte_t encode = pte_encode; in gen8_ppgtt_insert_huge() local 434 encode |= GEN8_PDE_PS_2M; in gen8_ppgtt_insert_huge() 457 vaddr[index++] = encode | iter->dma; in gen8_ppgtt_insert_huge() 514 encode = vma->vm->scratch[0]->encode; in gen8_ppgtt_insert_huge() 518 memset64(vaddr + i, encode, 15); in gen8_ppgtt_insert_huge() 578 vm->scratch[0]->encode = in gen8_init_scratch() 595 fill_px(obj, vm->scratch[i - 1]->encode); in gen8_init_scratch() [all...] |
H A D | intel_ppgtt.c | 99 u64 (*encode)(const dma_addr_t, const enum i915_cache_level)) in __set_pd_entry() 106 write_dma_entry(px_base(pd), idx, encode(px_dma(to), I915_CACHE_LLC)); in __set_pd_entry() 116 write_dma_entry(px_base(pd), idx, scratch->encode); in clear_pd_entry()
|
H A D | gen6_ppgtt.c | 84 const gen6_pte_t scratch_pte = vm->scratch[0]->encode; in gen6_ppgtt_clear_range() 202 fill32_px(pt, vm->scratch[0]->encode); in gen6_alloc_va_range() 237 vm->scratch[0]->encode = in gen6_ppgtt_init_scratch() 251 fill32_px(vm->scratch[1], vm->scratch[0]->encode); in gen6_ppgtt_init_scratch()
|
/test/xts/acts/graphic/acts_drawing_native/ |
H A D | DrawingNativeTextBlobTest.cpp | 141 for (OH_Drawing_TextEncoding encode : encodeArray) { in HWTEST_F() 143 if (encode == TEXT_ENCODING_UTF8) { in HWTEST_F() 145 } else if (encode == TEXT_ENCODING_UTF16) { in HWTEST_F() 147 } else if (encode == TEXT_ENCODING_UTF32) { in HWTEST_F() 149 } else if (encode == TEXT_ENCODING_GLYPH_ID) { in HWTEST_F() 152 OH_Drawing_TextBlob *textBlob = OH_Drawing_TextBlobCreateFromText(str, byteLength, font, encode); in HWTEST_F() 397 for (OH_Drawing_TextEncoding encode : encodeArray) { in HWTEST_F() 398 OH_Drawing_TextBlob *textBlob = OH_Drawing_TextBlobCreateFromString(str, font, encode); in HWTEST_F()
|
/kernel/linux/linux-5.10/drivers/net/slip/ |
H A D | slhc.c | 82 static unsigned char *encode(unsigned char *cp, unsigned short n); 182 encode(unsigned char *cp, unsigned short n) in encode() function 371 cp = encode(cp,deltaS); in slhc_compress() 381 cp = encode(cp,deltaS); in slhc_compress() 387 cp = encode(cp,deltaA); in slhc_compress() 393 cp = encode(cp,deltaS); in slhc_compress() 433 cp = encode(cp,deltaS); in slhc_compress()
|
/kernel/linux/linux-6.6/drivers/net/slip/ |
H A D | slhc.c | 82 static unsigned char *encode(unsigned char *cp, unsigned short n); 182 encode(unsigned char *cp, unsigned short n) in encode() function 371 cp = encode(cp,deltaS); in slhc_compress() 381 cp = encode(cp,deltaS); in slhc_compress() 387 cp = encode(cp,deltaA); in slhc_compress() 393 cp = encode(cp,deltaS); in slhc_compress() 433 cp = encode(cp,deltaS); in slhc_compress()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | nv.c | 211 static int nv_query_video_codecs(struct amdgpu_device *adev, bool encode, in nv_query_video_codecs() argument 223 if (encode) in nv_query_video_codecs() 228 if (encode) in nv_query_video_codecs() 235 if (encode) in nv_query_video_codecs() 240 if (encode) in nv_query_video_codecs() 249 if (encode) in nv_query_video_codecs() 256 if (encode) in nv_query_video_codecs() 262 if (encode) in nv_query_video_codecs() 269 if (encode) in nv_query_video_codecs()
|
H A D | amdgpu_virt.c | 914 struct amdgpu_video_codec_info *encode, uint32_t encode_array_size, in amdgpu_virt_update_sriov_video_codec() 922 if (encode) { in amdgpu_virt_update_sriov_video_codec() 924 encode[i].max_width = adev->virt.encode_max_dimension_pixels; in amdgpu_virt_update_sriov_video_codec() 925 encode[i].max_pixels_per_frame = adev->virt.encode_max_frame_pixels; in amdgpu_virt_update_sriov_video_codec() 926 if (encode[i].max_width > 0) in amdgpu_virt_update_sriov_video_codec() 927 encode[i].max_height = encode[i].max_pixels_per_frame / encode[i].max_width; in amdgpu_virt_update_sriov_video_codec() 929 encode[i].max_height = 0; in amdgpu_virt_update_sriov_video_codec() 913 amdgpu_virt_update_sriov_video_codec(struct amdgpu_device *adev, struct amdgpu_video_codec_info *encode, uint32_t encode_array_size, struct amdgpu_video_codec_info *decode, uint32_t decode_array_size) amdgpu_virt_update_sriov_video_codec() argument
|
H A D | soc21.c | 150 static int soc21_query_video_codecs(struct amdgpu_device *adev, bool encode, in soc21_query_video_codecs() argument 163 if (encode) in soc21_query_video_codecs() 168 if (encode) in soc21_query_video_codecs() 175 if (encode) in soc21_query_video_codecs() 180 if (encode) in soc21_query_video_codecs()
|
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/ |
H A D | venc_drv_base.h | 25 * (*encode)() - trigger encode 27 * @opt: [in] encode option 30 * @result: [out] encode result 32 int (*encode)(void *handle, enum venc_start_opt opt, member
|
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/encoder/ |
H A D | venc_drv_base.h | 25 * (*encode)() - trigger encode 27 * @opt: [in] encode option 30 * @result: [out] encode result 32 int (*encode)(void *handle, enum venc_start_opt opt, member
|
/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
H A D | uvc_video.c | 279 video->encode(req, video, buf); in uvcg_video_pump() 331 video->encode = uvc_video_encode_bulk; in uvcg_video_enable() 334 video->encode = uvc_video_encode_isoc; in uvcg_video_enable()
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/ |
H A D | dmlib.py | 474 remote_path_content = remote.encode(DEFAULT_ENCODING) 569 remote_path_content = remote.encode(DEFAULT_ENCODING) 571 remote_path_content = remote.encode("UTF-8") 644 path = path.encode(DEFAULT_ENCODING) 646 path = path.encode("UTF-8") 655 mode_content = mode_str.encode(DEFAULT_ENCODING) 900 req = req.encode("utf-8") 940 req = req.encode(DEFAULT_ENCODING) 1041 connect_key = connect_key.encode("utf-8")
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ingenic/ |
H A D | jz4780_bch.c | 63 struct ingenic_ecc_params *params, bool encode) in jz4780_bch_reset() 78 if (encode) in jz4780_bch_reset() 62 jz4780_bch_reset(struct ingenic_ecc *bch, struct ingenic_ecc_params *params, bool encode) jz4780_bch_reset() argument
|
/kernel/linux/linux-5.10/security/tomoyo/ |
H A D | realpath.c | 262 goto encode; in tomoyo_realpath_from_path() 285 encode: in tomoyo_realpath_from_path()
|
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/ingenic/ |
H A D | jz4780_bch.c | 63 struct ingenic_ecc_params *params, bool encode) in jz4780_bch_reset() 78 if (encode) in jz4780_bch_reset() 62 jz4780_bch_reset(struct ingenic_ecc *bch, struct ingenic_ecc_params *params, bool encode) jz4780_bch_reset() argument
|
/kernel/linux/linux-6.6/security/tomoyo/ |
H A D | realpath.c | 259 goto encode; in tomoyo_realpath_from_path() 280 encode: in tomoyo_realpath_from_path()
|
/test/testfwk/xdevice/src/xdevice/_core/report/ |
H A D | encrypt.py | 68 plain_text = str(content).encode(encoding='utf-8') 104 cipher_text = str(content).encode()
|