Home
last modified time | relevance | path

Searched refs:bytes (Results 1 - 25 of 71) sorted by relevance

123

/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/
H A Dbcmendian.h39 /* Reverse the bytes in a 16-bit value */
44 /* Reverse the bytes in a 32-bit value */
56 /* Reverse the bytes in a 64-bit value */
192 #define htol16_ua_store(val, bytes) ({ \
194 uint8 *_bytes = (uint8 *)(bytes); \
199 #define htol32_ua_store(val, bytes) ({ \
201 uint8 *_bytes = (uint8 *)(bytes); \
208 #define htol64_ua_store(val, bytes) ({ \
210 uint8 *_bytes = (uint8 *)(bytes); \
218 #define hton16_ua_store(val, bytes) ({ \
309 htol16_ua_store(uint16 val, uint8 *bytes) htol16_ua_store() argument
319 htol32_ua_store(uint32 val, uint8 *bytes) htol32_ua_store() argument
331 htol64_ua_store(uint64 val, uint8 *bytes) htol64_ua_store() argument
344 hton16_ua_store(uint16 val, uint8 *bytes) hton16_ua_store() argument
354 hton32_ua_store(uint32 val, uint8 *bytes) hton32_ua_store() argument
366 ltoh16_ua(const void *bytes) ltoh16_ua() argument
375 ltoh32_ua(const void *bytes) ltoh32_ua() argument
384 ltoh64_ua(const void *bytes) ltoh64_ua() argument
393 ntoh16_ua(const void *bytes) ntoh16_ua() argument
402 ntoh32_ua(const void *bytes) ntoh32_ua() argument
411 ntoh64_ua(const void *bytes) ntoh64_ua() argument
[all...]
H A Dlinux_pkt.h106 #define PKTPUSH(osh, skb, bytes) \
109 skb_push((struct sk_buff*)(skb), (bytes)); \
111 #define PKTPULL(osh, skb, bytes) \
114 skb_pull((struct sk_buff*)(skb), (bytes)); \
/device/soc/rockchip/common/sdk_linux/drivers/nvmem/
H A Drockchip-efuse.c141 static int rockchip_rk1808_efuse_read(void *context, unsigned int offset, void *val, size_t bytes) in rockchip_rk1808_efuse_read() argument
158 addr_end = roundup(offset + bytes, RK1808_NBYTES) / RK1808_NBYTES; in rockchip_rk1808_efuse_read()
185 memcpy(val, buf + addr_offset, bytes); in rockchip_rk1808_efuse_read()
198 static int rockchip_rk3128_efuse_read(void *context, unsigned int offset, void *val, size_t bytes) in rockchip_rk3128_efuse_read() argument
212 while (bytes--) { in rockchip_rk3128_efuse_read()
233 static int rockchip_rk3288_efuse_read(void *context, unsigned int offset, void *val, size_t bytes) in rockchip_rk3288_efuse_read() argument
247 while (bytes--) { in rockchip_rk3288_efuse_read()
268 static int rockchip_rk3288_efuse_secure_read(void *context, unsigned int offset, void *val, size_t bytes) in rockchip_rk3288_efuse_secure_read() argument
283 while (bytes--) { in rockchip_rk3288_efuse_secure_read()
306 static int rockchip_rk3328_efuse_read(void *context, unsigned int offset, void *val, size_t bytes) in rockchip_rk3328_efuse_read() argument
358 rockchip_rk3368_efuse_read(void *context, unsigned int offset, void *val, size_t bytes) rockchip_rk3368_efuse_read() argument
396 rockchip_rk3399_efuse_read(void *context, unsigned int offset, void *val, size_t bytes) rockchip_rk3399_efuse_read() argument
[all...]
H A Dcore.c50 int bytes; member
69 static int nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, void *val, size_t bytes) in nvmem_reg_read() argument
72 return nvmem->reg_read(nvmem->priv, offset, val, bytes); in nvmem_reg_read()
78 static int nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, void *val, size_t bytes) in nvmem_reg_write() argument
84 ret = nvmem->reg_write(nvmem->priv, offset, val, bytes); in nvmem_reg_write()
379 cell->bytes = info->bytes; in nvmem_cell_info_to_nvmem_cell_nodup()
386 cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset, BITS_PER_BYTE); in nvmem_cell_info_to_nvmem_cell_nodup()
573 cell->bytes = be32_to_cpup(addr); in nvmem_add_cells_from_of()
583 cell->bytes in nvmem_add_cells_from_of()
1559 nvmem_device_read(struct nvmem_device *nvmem, unsigned int offset, size_t bytes, void *buf) nvmem_device_read() argument
1583 nvmem_device_write(struct nvmem_device *nvmem, unsigned int offset, size_t bytes, void *buf) nvmem_device_write() argument
[all...]
H A Drockchip-otp.c140 static int rockchip_otp_read(void *context, unsigned int offset, void *val, size_t bytes) in rockchip_otp_read() argument
166 while (bytes--) { in rockchip_otp_read()
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/paho.mqtt.c/include/mqtt/
H A DSocketBuffer.h46 char fixed_header[5]; /**< header plus up to 4 length bytes */
59 size_t bytes; member
73 char* SocketBuffer_getQueuedData(int socket, size_t bytes, size_t* actual_len);
80 void SocketBuffer_pendingWrite(int socket, SSL* ssl, int count, iobuf* iovecs, int* frees, size_t total, size_t bytes);
82 void SocketBuffer_pendingWrite(int socket, int count, iobuf* iovecs, int* frees, size_t total, size_t bytes);
H A DSSLSocket.h46 char *SSLSocket_getdata(SSL* ssl, int socket, size_t bytes, size_t* actual_len);
H A DWebSocket.h65 char *WebSocket_getdata(networkHandles *net, size_t bytes, size_t* actual_len);
/device/qemu/drivers/virtio/
H A Dvirtrng.c207 static int VirtrngRead(char *buffer, size_t bytes) in VirtrngRead() argument
212 if (LOS_IsUserAddressRange((VADDR_T)buffer, bytes)) { in VirtrngRead()
213 newbuf = OsalMemAlloc(bytes); in VirtrngRead()
218 } else if ((VADDR_T)buffer + bytes < (VADDR_T)buffer) { in VirtrngRead()
219 HDF_LOGE("[%s]invalid argument: buffer=%p, size=%#x\n", __func__, buffer, bytes); in VirtrngRead()
223 len = VirtrngIO(newbuf, bytes); in VirtrngRead()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/tl/
H A Dmali_kbase_tl_serialize.h34 * kbasep_serialize_bytes - serialize bytes to the message buffer
36 * Serialize bytes as is using memcpy()
40 * @bytes: Bytes to serialize
41 * @len: Length of bytes array
45 static inline size_t kbasep_serialize_bytes(char *buffer, size_t pos, const void *bytes, size_t len) in kbasep_serialize_bytes() argument
48 KBASE_DEBUG_ASSERT(bytes); in kbasep_serialize_bytes()
50 memcpy(&buffer[pos], bytes, len); in kbasep_serialize_bytes()
58 * String is serialized as 4 bytes for string size,
64 * @max_write_size: Number of bytes that can be stored in buffer
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/tl/
H A Dmali_kbase_tl_serialize.h33 * kbasep_serialize_bytes - serialize bytes to the message buffer
35 * Serialize bytes as is using memcpy()
39 * @bytes: Bytes to serialize
40 * @len: Length of bytes array
47 const void *bytes, in kbasep_serialize_bytes()
51 KBASE_DEBUG_ASSERT(bytes); in kbasep_serialize_bytes()
53 memcpy(&buffer[pos], bytes, len); in kbasep_serialize_bytes()
61 * String is serialized as 4 bytes for string size,
67 * @max_write_size: Number of bytes that can be stored in buffer
44 kbasep_serialize_bytes( char *buffer, size_t pos, const void *bytes, size_t len) kbasep_serialize_bytes() argument
/device/qemu/riscv32_virt/liteos_m/board/driver/cfiflash/
H A Dcfiflash_fs_hal.c40 unsigned int bytes = CfiFlashSec2Bytes(nSectors); in DisckRead() local
44 return CfiFlashRead(pdrv, p, byteOffset, bytes); in DisckRead()
49 unsigned int bytes = CfiFlashSec2Bytes(nSectors); in DiskWrite() local
53 return CfiFlashWrite(pdrv, p, byteOffset, bytes); in DiskWrite()
H A Dcfiflash.c75 static inline unsigned B2W(unsigned bytes) in B2W() argument
77 return bytes >> BYTE_WORD_SHIFT; in B2W()
123 /* all in word(4 bytes) measure */
/test/xts/acts/kernel_lite/utils/
H A Dlibfs.cpp108 size_t bytes; in CopyFile() local
109 while ((bytes = fread(buffer, 1, sizeof(buffer), srcFp)) > 0) { in CopyFile()
110 if (fwrite(buffer, 1, bytes, dstFp) != bytes) { in CopyFile()
/test/xts/hats/kernel/posix_interface/interface_gn/utils/
H A Dlibfs.cpp111 size_t bytes; in CopyFile() local
112 while ((bytes = fread(buffer, 1, sizeof(buffer), srcFp)) > 0) { in CopyFile()
113 if (fwrite(buffer, 1, bytes, dstFp) != bytes) { in CopyFile()
/test/xts/acts/kernel_lite/ipc_posix/signal/
H A DSignalTestUtils.cpp182 size_t bytes = fread(buffer, 1, bufLen, fp); in CheckSigString() local
183 buffer[bytes] = 0; in CheckSigString()
184 LOGD("%d bytes read from logfile:%s", bytes, buffer); in CheckSigString()
188 if (bytes != (expectLen + 1)) { in CheckSigString()
189 LOG("bytes number read from stderr file error, expect:%d, actual:%d", in CheckSigString()
190 expectLen + 1, bytes); in CheckSigString()
/device/soc/hisilicon/hi3861v100/sdk_liteos/tools/efuse_tool/
H A Defuse_cfg_gen.py30 def print_bytes(bytes):
32 c = bytes.hex()
35 c = bytes.encode('hex')
/device/soc/rockchip/rk3588/kernel/include/linux/usb/
H A Dhcd.h652 * Ceiling [nano/micro]seconds (typical) for that many bytes at high speed
657 #define HS_NSECS(bytes) (((55 * 8 * 2083) \
658 + (2083UL * (3 + BitTime(bytes))))/1000 \
660 #define HS_NSECS_ISO(bytes) (((38 * 8 * 2083) \
661 + (2083UL * (3 + BitTime(bytes))))/1000 \
663 #define HS_USECS(bytes) NS_TO_US(HS_NSECS(bytes))
664 #define HS_USECS_ISO(bytes) NS_TO_US(HS_NSECS_ISO(bytes))
/device/soc/hisilicon/common/platform/spi/
H A Dspi_hi35xx.c363 uint8_t bytes = Pl022ToByteWidth(pl022->bitsPerWord); in Pl022WriteFifo() local
365 for (value = 0; count >= bytes; count -= bytes) { in Pl022WriteFifo()
367 value = (bytes == 1) ? *tx : *((uint16_t *)tx); in Pl022WriteFifo()
368 tx += bytes; in Pl022WriteFifo()
377 uint8_t bytes = Pl022ToByteWidth(pl022->bitsPerWord); in Pl022ReadFifo() local
379 for (value = 0; count >= bytes; count -= bytes) { in Pl022ReadFifo()
384 if (bytes == 1) { in Pl022ReadFifo()
389 rx += bytes; in Pl022ReadFifo()
400 uint8_t bytes = Pl022ToByteWidth(pl022->bitsPerWord); Pl022TxRx() local
[all...]
/test/testfwk/xdevice/src/xdevice/_core/report/
H A Dencrypt.py67 if not isinstance(plain_text, bytes):
79 bytes(Variables.report_vars.pub_key_string, "utf-8")
103 if not isinstance(cipher_text, bytes):
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/
H A Ddmlib_lite.py153 data = telnet.read_until(bytes(command, encoding="utf8"),
161 expect_result = [bytes(CPP_TEST_STANDARD_SIGN, encoding="utf8"),
162 bytes(CPP_SYS_STANDARD_SIGN, encoding="utf8"),
163 bytes(CPP_TEST_END_SIGN, encoding="utf8"),
164 bytes(CPP_TEST_STOP_SIGN, encoding="utf8")]
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dfcntlndk.cpp64 int bytes = PARAM_0; in Splice() local
68 bytes = splice(PARAM_0, &off, PARAM_2, &off, len, PARAM_0); in Splice()
73 bytes = splice(PARAM_0, nullptr, pipe1[PARAM_1], nullptr, len, flags); in Splice()
75 bytes = splice(PARAM_UNNORMAL, nullptr, PARAM_UNNORMAL, nullptr, PARAM_UNNORMAL, PARAM_UNNORMAL); in Splice()
78 napi_create_int32(env, bytes, &result); in Splice()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/
H A Dosal_string.c128 void *osal_memchr_inv(const void *start, int c, int bytes) in osal_memchr_inv() argument
130 return memchr_inv(start, c, bytes); in osal_memchr_inv()
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
H A Ddbus_usb.c549 DBUSTRACE(("%s: Request to %s %d bytes at address 0x%08x\n", __FUNCTION__, in dbus_usb_doiovar()
726 state.bytes = ltoh32(state.bytes); in dbus_usb_rdl_dwnld_state()
789 /* Wait until the usb device reports it received all the bytes we sent */ in dbus_usb_dl_writeimage()
838 state.bytes = ltoh32(state.bytes); in dbus_usb_dl_writeimage()
1027 state.bytes = ltoh32(state.bytes); in dbus_usb_dlrun()
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/scripts/
H A Dmake_upg_user_info.py43 info.chip_product = bytes(chip_name, encoding='utf8')#如不需要填充芯片产品字段,屏蔽此行

Completed in 17 milliseconds

123