Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 511) sorted by relevance

12345678910>>...21

/device/soc/chipsea/cst85/liteos_m/sdk/modules/common/src/
Dring_buffer.c42 ring_buffer->read = 0; in ring_buffer_init()
57 ring_buffer->read = 0; in ring_buffer_deinit()
70 ring_buffer->read = 0; in ring_buffer_reset()
132 unsigned int bytes_until_end = ring_buffer->size - ring_buffer->read; in ring_buffer_read()
136 memcpy((void *)buffer, (void *)&ring_buffer->storage[ring_buffer->read], length); in ring_buffer_read()
137 ring_buffer->read += length; in ring_buffer_read()
140 … memcpy((void *)buffer, (void *)&ring_buffer->storage[ring_buffer->read], bytes_until_end); in ring_buffer_read()
143 ring_buffer->read = length - bytes_until_end; in ring_buffer_read()
148 ring_buffer->read += length; in ring_buffer_read()
150 ring_buffer->read = length - bytes_until_end; in ring_buffer_read()
[all …]
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/include/
Dbcm_ring.h165 int read __ring_aligned; /* READ index in a circular ring */
182 static INLINE void bcm_ring_cons_done(bcm_ring_t *ring, int read);
208 ring->read = 0; in bcm_ring_init()
221 to->read = from->read; in bcm_ring_copy()
233 return (ring->read == ring->write); in bcm_ring_is_empty()
259 return (next_write == ring->read); in __bcm_ring_full()
339 static INLINE void bcm_ring_cons_done(bcm_ring_t *ring, int read) in bcm_ring_cons_done() argument
342 ring->read = read; in bcm_ring_cons_done()
361 *pend_read = (ring->read + 1) % ring_size; in bcm_ring_cons_pend()
363 rtn = ring->read; in bcm_ring_cons_pend()
[all …]
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/
Dbcm_ring.h167 int read __ring_aligned; /* READ index in a circular ring */
184 static INLINE void bcm_ring_cons_done(bcm_ring_t *ring, int read);
210 ring->read = 0; in bcm_ring_init()
224 to->read = from->read; in bcm_ring_copy()
237 return (ring->read == ring->write); in bcm_ring_is_empty()
265 return (next_write == ring->read); in __bcm_ring_full()
349 bcm_ring_cons_done(bcm_ring_t *ring, int read) in bcm_ring_cons_done() argument
352 ring->read = read; in bcm_ring_cons_done()
371 *pend_read = (ring->read + 1) % ring_size; in bcm_ring_cons_pend()
373 rtn = ring->read; in bcm_ring_cons_pend()
[all …]
/device/board/isoftstone/yangfan/kernel/src/driv/net/rockchip_wlan/rkwifi/bcmdhd/include/
Dbcm_ring.h138 int read __ring_aligned; /* READ index in a circular ring */
155 static INLINE void bcm_ring_cons_done(bcm_ring_t *ring, int read);
181 ring->read = 0; in bcm_ring_init()
195 to->read = from->read; in bcm_ring_copy()
208 return (ring->read == ring->write); in bcm_ring_is_empty()
236 return (next_write == ring->read); in __bcm_ring_full()
320 bcm_ring_cons_done(bcm_ring_t *ring, int read) in bcm_ring_cons_done() argument
323 ring->read = read; in bcm_ring_cons_done()
342 *pend_read = (ring->read + 1) % ring_size; in bcm_ring_cons_pend()
344 rtn = ring->read; in bcm_ring_cons_pend()
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/bcmdhd/include/
Dbcm_ring.h165 int read __ring_aligned; /* READ index in a circular ring */
183 static INLINE void bcm_ring_cons_done(bcm_ring_t *ring, int read);
210 ring->read = 0; in bcm_ring_init()
224 to->read = from->read; in bcm_ring_copy()
237 return (ring->read == ring->write); in bcm_ring_is_empty()
267 return (next_write == ring->read); in __bcm_ring_full()
356 bcm_ring_cons_done(bcm_ring_t *ring, int read) in bcm_ring_cons_done() argument
359 ring->read = read; in bcm_ring_cons_done()
379 *pend_read = (ring->read + 1) % ring_size; in bcm_ring_cons_pend()
381 rtn = ring->read; in bcm_ring_cons_pend()
[all …]
/device/soc/hpmicro/sdk/hpm_sdk/middleware/audio_codec/wav/hpm_decoder/
Dhpm_wav_decoder.c59 uint32_t read; in hpm_wav_decode() local
77 wav_ctrl->func.read_file(wav_ctrl->func.file, readlen, &buf[size - readlen], &read); in hpm_wav_decode()
83 buf_len = read; in hpm_wav_decode()
93 wav_ctrl->func.read_file(wav_ctrl->func.file, readlen, &buf[size - readlen], &read); in hpm_wav_decode()
101 buf_len = read << 1; in hpm_wav_decode()
113 wav_ctrl->func.read_file(wav_ctrl->func.file, readlen, &buf[size - readlen], &read); in hpm_wav_decode()
119 buf_len = (read << 2) / 3; in hpm_wav_decode()
129 wav_ctrl->func.read_file(wav_ctrl->func.file, readlen, &buf[size - readlen], &read); in hpm_wav_decode()
135 buf_len = (read << 3) / 3; in hpm_wav_decode()
147 wav_ctrl->func.read_file(wav_ctrl->func.file, readlen, &buf[size - readlen], &read); in hpm_wav_decode()
[all …]
/device/soc/amlogic/a311d/soc/arch/arm64/boot/dts/amlogic/
Dmeson-g12b-unionpi-tiger.dts267 key-permit = "read","write","del";
272 key-permit = "read","write","del";
278 key-permit = "read","write","del";
288 key-permit = "read","write","del";
294 key-permit = "read","write","del";
300 key-permit = "read","write","del";
305 key-permit = "read","write","del";
310 key-permit = "read","write","del";
315 key-permit = "read","write","del";
320 key-permit = "read","write","del";
[all …]
/device/soc/hisilicon/hi3861v100/sdk_liteos/tools/packet_tool/
Dpacket_tool.py110 data = subfile.read()
117 newdata = file.read(headLen - 6)
146 info = file.read(struct.calcsize('IHHI'))
150 info = file.read(struct.calcsize('32sIIIII'))
168 fileInfoList.append(file.read(imageSizeList[index]))
181 fileInfoList[index2] = subfile.read()
196 fileInfoList.append(subfile.read())
234 newdata = file.read(headLen - 6)
251 info = file.read(struct.calcsize('IHHI'))
255 info = file.read(struct.calcsize('32sIIIII'))
[all …]
/device/soc/esp/esp32/components/bt/host/bluedroid/btc/profile/std/gatt/
Dbtc_gatt_util.c182 p_dest->read.status = p_src->status; in set_read_value()
183 p_dest->read.conn_id = BTC_GATT_GET_CONN_ID(p_src->conn_id); in set_read_value()
185 p_dest->read.status = p_src->status; in set_read_value()
186 p_dest->read.handle = p_src->handle; in set_read_value()
191 p_dest->read.value_len = p_src->p_value->len; in set_read_value()
193 p_dest->read.value = p_src->p_value->p_value; in set_read_value()
197 p_dest->read.value_len = 0; in set_read_value()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/pq/
Ddrv_pq.h45 int read; member
52 int read; member
61 int read; member
95 void pq_set_enhance(struct color_enhanc *pq_enh, int read);
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/include/linux/amlogic/unifykey/
Dkey_manage.h25 void storage_ops_read(store_key_ops read);
28 void storage_ops_read(store_key_ops read) in storage_ops_read() argument
32 void storage_ops_write(store_key_ops read) in storage_ops_write() argument
/device/board/talkweb/niobe407/liteos_m/drivers/spi/src/
Dhal_spi.c26 uint8_t read, send = byte; in LL_SPI_Transmit() local
30 read = LL_SPI_ReceiveData8(SPIx); in LL_SPI_Transmit()
31 return read; in LL_SPI_Transmit()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/backend/gpu/
Dmali_kbase_l2_mmu_config.c52 struct l2_mmu_config_limit_region read; member
102 mmu_config &= ~(limit.read.mask | limit.write.mask); in kbase_set_mmu_quirks()
104 mmu_config |= (limit.read.value << limit.read.shift) | (limit.write.value << limit.write.shift); in kbase_set_mmu_quirks()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/backend/gpu/
Dmali_kbase_l2_mmu_config.c50 struct l2_mmu_config_limit_region read; member
115 mmu_config &= ~(limit.read.mask | limit.write.mask); in kbase_set_mmu_quirks()
117 mmu_config |= (limit.read.value << limit.read.shift) | in kbase_set_mmu_quirks()
/device/soc/hisilicon/hi3751v350/sdk_linux/source/msp/drv/hiproc/kernel/
Dhiproc.c188 entry_info->read = proc_read; in hiproc_create_proc_entry()
247 if (proc_wait.entry.read != HI_NULL) { in hiproc_wake_read_task()
263 proc_wait.entry.read = osal_kmalloc(0, show_buf->size, OSAL_GFP_KERNEL); in hiproc_wake_read_task()
264 if (proc_wait.entry.read) { in hiproc_wake_read_task()
265 … if (osal_copy_from_user(proc_wait.entry.read, (hi_void __user *)show_buf->buf, show_buf->size)) { in hiproc_wake_read_task()
266 osal_kfree(0, proc_wait.entry.read); in hiproc_wake_read_task()
267 proc_wait.entry.read = HI_NULL; in hiproc_wake_read_task()
340 if (proc_wait.entry.read != HI_NULL) { in proc_read()
341 osal_proc_print(seqfile, "%s", (hi_char *)proc_wait.entry.read); in proc_read()
342 osal_kfree(0, proc_wait.entry.read); in proc_read()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/hi_proc/kernel/
Dhiproc.c197 entry_info->read = proc_read; in hi_proc_ioctl()
244 if (proc_wait.entry.read != HI_NULL) { in hi_proc_ioctl()
262 proc_wait.entry.read = osal_kmalloc(show_buf->size, osal_gfp_kernel); in hi_proc_ioctl()
263 if (proc_wait.entry.read) { in hi_proc_ioctl()
264 … if (osal_copy_from_user(proc_wait.entry.read, (hi_void __user *)show_buf->buf, show_buf->size)) { in hi_proc_ioctl()
265 osal_kfree(proc_wait.entry.read); in hi_proc_ioctl()
266 proc_wait.entry.read = HI_NULL; in hi_proc_ioctl()
332 if (proc_wait.entry.read != HI_NULL) { in proc_read()
333 osal_seq_printf(entry, "%s", (hi_char *)proc_wait.entry.read); in proc_read()
334 osal_kfree(proc_wait.entry.read); in proc_read()
[all …]
/device/board/hisilicon/hispark_phoenix/peripherals/bluetooth/rtkbt/code/rtkcmd/
Drtkcmd.c153 ret = read(sock_fd, &event, 2); in Rtkbt_Getevent()
158 ret = read(sock_fd, &event_len, 2); in Rtkbt_Getevent()
163 ret = read(sock_fd, &offset, 2); in Rtkbt_Getevent()
168 ret = read(sock_fd, &layer_specific, 2); in Rtkbt_Getevent()
174 ret = read(sock_fd, recvbuf, event_len); in Rtkbt_Getevent()
/device/soc/amlogic/a311d/soc/amlogic/unifykey/
Dstorage_key.c81 unifykey_types.ops->read = uk_type->ops->read; in register_unifykey_types()
119 if (unlikely(!uk_type->ops->read)) { in _amlkey_init()
125 ret = uk_type->ops->read(storagekey_info.buffer, storagekey_info.size, &actual_size); in _amlkey_init()
315 if (!unifykey_types.ops->read) { in _amlkey_init_normal()
325 ret = unifykey_types.ops->read(normal_block, normal_blksz, &normal_flashsize); in _amlkey_init_normal()
494 .read = _amlkey_read,
503 .read = _amlkey_read_normal,
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/
Dmali_kernel_sysfs.c146 .read = group_enabled_read,
167 .read = hw_core_base_addr_read,
278 .read = profiling_counter_src_read,
411 .read = l2_l2x_counter_src0_read,
418 .read = l2_l2x_counter_src1_read,
473 .read = l2_l2x_counter_val0_read,
479 .read = l2_l2x_counter_val1_read,
523 .read = power_always_on_read,
586 .read = seq_read,
664 .read = profiling_record_read,
[all …]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/
Dmali_kernel_sysfs.c145 .read = group_enabled_read,
166 .read = hw_core_base_addr_read,
277 .read = profiling_counter_src_read,
412 .read = l2_l2x_counter_src0_read,
419 .read = l2_l2x_counter_src1_read,
474 .read = l2_l2x_counter_val0_read,
480 .read = l2_l2x_counter_val1_read,
524 .read = power_always_on_read,
589 .read = seq_read,
668 .read = profiling_record_read,
[all …]
/device/soc/rockchip/rk3588/kernel/drivers/gpu/drm/bridge/synopsys/
Ddw-hdmi-hdcp.c136 u8 val = hdcp->read(hdmi, reg) & ~mask; in hdcp_modb()
367 if (!(hdcp->read(hdmi, HDMI_HDCPREG_RMSTS) & 0x3f)) in dw_hdmi_hdcp_start()
375 if (hdcp->read(hdmi, HDMI_CONFIG1_ID) & HDMI_A_HDCP22_MASK) { in dw_hdmi_hdcp_start()
409 if (hdcp->read(hdmi, HDMI_MC_CLKDIS) & HDMI_MC_CLKDIS_HDCPCLK_MASK) { in dw_hdmi_hdcp_start()
466 value = hdcp->read(hdmi, HDMI_A_SRMCTRL); in dw_hdmi_hdcp_ksvsha1()
476 hdcp->read(hdmi, HDMI_A_SRM_BASE); in dw_hdmi_hdcp_ksvsha1()
477 bstaus0 = hdcp->read(hdmi, HDMI_A_SRM_BASE + 1); in dw_hdmi_hdcp_ksvsha1()
478 bstaus1 = hdcp->read(hdmi, HDMI_A_SRM_BASE + 2); in dw_hdmi_hdcp_ksvsha1()
510 hdcp->read(hdmi, HDMI_A_SRM_BASE + i + 1); in dw_hdmi_hdcp_ksvsha1()
513 hdcp->read(hdmi, HDMI_A_SRM_BASE + i + 1); in dw_hdmi_hdcp_ksvsha1()
[all …]
/device/soc/rockchip/common/vendor/drivers/gpu/drm/bridge/synopsys/
Ddw-hdmi-hdcp.c137 u8 val = hdcp->read(hdmi, reg) & ~mask; in hdcp_modb()
375 if (!(hdcp->read(hdmi, HDMI_HDCPREG_RMSTS) & 0x3f)) { in dw_hdmi_hdcp_start()
382 if (hdcp->read(hdmi, HDMI_CONFIG1_ID) & HDMI_A_HDCP22_MASK) { in dw_hdmi_hdcp_start()
407 if (hdcp->read(hdmi, HDMI_MC_CLKDIS) & HDMI_MC_CLKDIS_HDCPCLK_MASK) { in dw_hdmi_hdcp_start()
457 value = hdcp->read(hdmi, HDMI_A_SRMCTRL); in dw_hdmi_hdcp_ksvsha1()
467 hdcp->read(hdmi, HDMI_A_SRM_BASE); in dw_hdmi_hdcp_ksvsha1()
468 bstaus0 = hdcp->read(hdmi, HDMI_A_SRM_BASE + 1); in dw_hdmi_hdcp_ksvsha1()
469 bstaus1 = hdcp->read(hdmi, HDMI_A_SRM_BASE + 0x2); in dw_hdmi_hdcp_ksvsha1()
500 ksvlistbuf[(list * KSV_LEN) + i] = hdcp->read(hdmi, HDMI_A_SRM_BASE + i + 1); in dw_hdmi_hdcp_ksvsha1()
502 ksvlistbuf[i - HEADER] = hdcp->read(hdmi, HDMI_A_SRM_BASE + i + 1); in dw_hdmi_hdcp_ksvsha1()
[all …]
/device/board/isoftstone/yangfan/kernel/src/driv/gpu/bridge/
Ddw-hdmi-hdcp.c136 u8 val = hdcp->read(hdmi, reg) & ~mask; in hdcp_modb()
367 if (!(hdcp->read(hdmi, HDMI_HDCPREG_RMSTS) & 0x3f)) in dw_hdmi_hdcp_start()
375 if (hdcp->read(hdmi, HDMI_CONFIG1_ID) & HDMI_A_HDCP22_MASK) { in dw_hdmi_hdcp_start()
409 if (hdcp->read(hdmi, HDMI_MC_CLKDIS) & HDMI_MC_CLKDIS_HDCPCLK_MASK) { in dw_hdmi_hdcp_start()
466 value = hdcp->read(hdmi, HDMI_A_SRMCTRL); in dw_hdmi_hdcp_ksvsha1()
476 hdcp->read(hdmi, HDMI_A_SRM_BASE); in dw_hdmi_hdcp_ksvsha1()
477 bstaus0 = hdcp->read(hdmi, HDMI_A_SRM_BASE + 1); in dw_hdmi_hdcp_ksvsha1()
478 bstaus1 = hdcp->read(hdmi, HDMI_A_SRM_BASE + 2); in dw_hdmi_hdcp_ksvsha1()
510 hdcp->read(hdmi, HDMI_A_SRM_BASE + i + 1); in dw_hdmi_hdcp_ksvsha1()
513 hdcp->read(hdmi, HDMI_A_SRM_BASE + i + 1); in dw_hdmi_hdcp_ksvsha1()
[all …]
/device/board/isoftstone/yangfan/common/mqtt/mqttclient/src/mbed/
DMQTTSocket.h31 int common(unsigned char* buffer, int len, int timeout, bool read) in common() argument
44 if (read) in common()
67 int read(unsigned char* buffer, int len, int timeout) in read() function
/device/soc/hisilicon/hi3518ev300/hdf_config/mtd/
Dmtd_config.hcs49 if_type = 0x3; // spi if read quad
50 cmd = 0x6b; // spi cmd read quad
115 if_type = 0x2; // spi if read dual addr
116 cmd = 0xbb; // spi cmd read dual addr

12345678910>>...21