Home
last modified time | relevance | path

Searched full:buffer (Results 1 – 25 of 659) sorted by relevance

12345678910>>...27

/nrf52832-nimble/rt-thread/components/dfs/filesystems/uffs/src/inc/uffs/
H A Duffs_buf.h51 #define CLONE_BUF_MARK 0xffff //!< set uffs_BufSt::ref_count to this for a 'cloned' buffer
54 #define UFFS_BUF_EMPTY 0 //!< buffer is empty
55 #define UFFS_BUF_VALID 1 //!< buffer is holding valid data
56 #define UFFS_BUF_DIRTY 2 //!< buffer data is modified
61 /** uffs page buffer */
63 struct uffs_BufSt *next; //!< link to next buffer
64 struct uffs_BufSt *prev; //!< link to previous buffer
65 struct uffs_BufSt *next_dirty; //!< link to next dirty buffer
66 struct uffs_BufSt *prev_dirty; //!< link to previous dirty buffer
73 u16 ref_count; //!< reference counter, or #CLONE_BUF_MARK for a cloned buffer
[all …]
/nrf52832-nimble/rt-thread/examples/libc/
H A Dex2.c11 /* Circular buffer of integers. */
14 int buffer[BUFFER_SIZE]; /* the actual data */ member
15 pthread_mutex_t lock; /* mutex ensuring exclusive access to buffer */
17 pthread_cond_t notempty; /* signaled when buffer is not empty */
18 pthread_cond_t notfull; /* signaled when buffer is not full */
21 /* Initialize a buffer */
32 /* Store an integer in the buffer */
36 /* Wait until buffer is not full */ in put()
42 b->buffer[b->writepos] = data; in put()
45 /* Signal that the buffer is now not empty */ in put()
[all …]
H A Dex5.c11 /* Circular buffer of integers. */
14 int buffer[BUFFER_SIZE]; /* the actual data */ member
20 /* Initialize a buffer */
30 /* Store an integer in the buffer */
34 /* Wait until buffer is not full */ in put()
37 b->buffer[b->writepos] = data; in put()
40 /* Signal that the buffer contains one more element for reading */ in put()
44 /* Read and remove an integer from the buffer */
49 /* Wait until buffer is not empty */ in get()
52 data = b->buffer[b->readpos]; in get()
[all …]
/nrf52832-nimble/packages/NimBLE-latest/ext/tinycrypt/include/tinycrypt/
H A Dcbc_mode.h63 * Hence tc_cbc_mode_encrypt assumes the ciphertext buffer is always
64 * 16 bytes larger than the plaintext buffer.
85 * CBC encrypts inlen bytes of the in buffer into the out buffer
99 * - out buffer is large enough to hold the ciphertext + iv
100 * - out buffer is a contiguous buffer
101 * - in holds the plaintext and is a contiguous buffer
102 * - inlen gives the number of bytes in the in buffer
103 * @param out IN/OUT -- buffer to receive the ciphertext
104 * @param outlen IN -- length of ciphertext buffer in bytes
106 * @param inlen IN -- length of plaintext buffer in bytes
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/netif/
H A Dlowpan6.c214 u8_t * buffer; in lowpan6_frag() local
231 buffer = (u8_t*)p_frag->payload; in lowpan6_frag()
234 buffer[ieee_header_len++] = 0x01; /* data packet, no ack required. */ in lowpan6_frag()
236 buffer[ieee_header_len++] = 0x21; /* data packet, ack required. */ in lowpan6_frag()
238 buffer[ieee_header_len] = (0x00 << 4); /* 2003 frame version */ in lowpan6_frag()
239buffer[ieee_header_len] |= (dst->addr_len == 2) ? (0x02 << 2) : (0x03 << 2); /* destination addres… in lowpan6_frag()
240buffer[ieee_header_len] |= (src->addr_len == 2) ? (0x02 << 6) : (0x03 << 6); /* source addressing … in lowpan6_frag()
242 buffer[ieee_header_len++] = frame_seq_num++; in lowpan6_frag()
244 buffer[ieee_header_len++] = ieee_802154_pan_id & 0xff; /* pan id */ in lowpan6_frag()
245 buffer[ieee_header_len++] = (ieee_802154_pan_id >> 8) & 0xff; /* pan id */ in lowpan6_frag()
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/netif/
H A Dlowpan6_common.c136 u8_t *buffer, *inptr; in lowpan6_compress_headers() local
150 buffer = outbuf; in lowpan6_compress_headers()
154 /* input buffer too short */ in lowpan6_compress_headers()
158 /* output buffer too short for worst case */ in lowpan6_compress_headers()
171 buffer[0] = 0x60; in lowpan6_compress_headers()
172 buffer[1] = 0; in lowpan6_compress_headers()
177 buffer[2] = 0; in lowpan6_compress_headers()
182 buffer[1] |= 0x40; in lowpan6_compress_headers()
183 buffer[2] |= (i & 0x0f) << 4; in lowpan6_compress_headers()
189 buffer[1] |= 0x04; in lowpan6_compress_headers()
[all …]
/nrf52832-nimble/rt-thread/components/drivers/src/
H A Dringblk_buf.c16 * ring block buffer object initialization
18 * @param rbb ring block buffer object
19 * @param buf buffer
20 * @param buf_size buffer size
24 * @note When your application need align access, please make the buffer address is aligned.
48 * ring block buffer object create
50 * @param buf_size buffer size
53 * @return != NULL: ring block buffer object
90 * ring block buffer object destroy
92 * @param rbb ring block buffer object
[all …]
/nrf52832-nimble/rt-thread/components/drivers/usb/usbhost/class/
H A Dumouse.c46 *(rt_uint32_t*)hid->buffer, in rt_usbh_hid_mouse_callback()
47 *(rt_uint32_t*)(&hid->buffer[4]))); in rt_usbh_hid_mouse_callback()
49 if(hid->buffer[1]!=0) in rt_usbh_hid_mouse_callback()
51 if(hid->buffer[1]>127) in rt_usbh_hid_mouse_callback()
53 xoffset=(256-hid->buffer[1])*MOUSE_SCALING; in rt_usbh_hid_mouse_callback()
65 xoffset=(hid->buffer[1])*MOUSE_SCALING; in rt_usbh_hid_mouse_callback()
76 if(hid->buffer[2]!=0) in rt_usbh_hid_mouse_callback()
79 if(hid->buffer[2]>127) in rt_usbh_hid_mouse_callback()
81 yoffset=(256-hid->buffer[2])*MOUSE_SCALING; in rt_usbh_hid_mouse_callback()
93 yoffset=hid->buffer[2]*MOUSE_SCALING; in rt_usbh_hid_mouse_callback()
[all …]
H A Dhid.c57 * @buffer the data buffer to save usb report descriptor.
58 * @param nbytes the size of buffer
63 rt_uint8_t id, rt_uint8_t *buffer, rt_size_t size) in rt_usbh_hid_get_report() argument
82 if(rt_usb_hcd_control_xfer(device->hcd, device, &setup, buffer, size, in rt_usbh_hid_get_report()
91 * @buffer the data buffer to save usb report descriptor.
92 * @param nbytes the size of buffer
96 rt_err_t rt_usbh_hid_set_report(struct uintf* intf, rt_uint8_t *buffer, rt_size_t size) in rt_usbh_hid_set_report() argument
115 if(rt_usb_hcd_control_xfer(device->hcd, device, &setup, buffer, size, in rt_usbh_hid_set_report()
157 * @buffer the data buffer to save usb report descriptor.
158 * @param nbytes the size of buffer
[all …]
H A Dmass.c26 * @param max_lun the buffer to save max_lun.
91 * @param max_lun the buffer to save max_lun.
96 ustorage_cbw_t cmd, rt_uint8_t* buffer, int timeout) in rt_usb_bulk_only_xfer() argument
129 size = rt_usb_hcd_pipe_xfer(pipe->inst->hcd, pipe, (void*)buffer, in rt_usb_bulk_only_xfer()
185 * @param max_lun the buffer to save max_lun.
281 * @param buffer the data buffer to save read data
287 rt_err_t rt_usbh_storage_read10(struct uhintf* intf, rt_uint8_t *buffer, in rt_usbh_storage_read10() argument
320 return rt_usb_bulk_only_xfer(intf, &cmd, buffer, timeout); in rt_usbh_storage_read10()
327 * @param buffer the data buffer to save write data
333 rt_err_t rt_usbh_storage_write10(struct uhintf* intf, rt_uint8_t *buffer, in rt_usbh_storage_write10() argument
[all …]
/nrf52832-nimble/rt-thread/libcpu/arm/armv6/
H A Dmmu.h104 …(SECT_AP_RW|PGD_DOMAIN(0)|PGD_TYPE_SECT) /* Read/Write/executable without cache and write buffer */
105 …WX_FAULT (SECT_AP_RW|PGD_DOMAIN(1)|PGD_TYPE_SECT) /* Read/Write without cache and write buffer */
109 …SECT_AP_RW|PGD_DOMAIN(0)|PGD_TYPE_SECT|PGD_SECT_XN) /* Read/Write without cache and write buffer */
110 …SECT_AP_RW|PGD_DOMAIN(1)|PGD_TYPE_SECT|PGD_SECT_XN) /* Read/Write without cache and write buffer */
115 … (SECT_AP_RO|PGD_DOMAIN(0)|PGD_TYPE_SECT) /* Read Only/executable without cache and write buffer */
116 …ROX_FAULT (SECT_AP_RO|PGD_DOMAIN(1)|PGD_TYPE_SECT) /* Read Only without cache and write buffer */
120 …(SECT_AP_RO|PGD_DOMAIN(0)|PGD_TYPE_SECT|PGD_SECT_XN) /* Read Only without cache and write buffer */
121 …(SECT_AP_RO|PGD_DOMAIN(1)|PGD_TYPE_SECT|PGD_SECT_XN) /* Read Only without cache and write buffer */
138 …_RWX_NCNB (PAGE_AP_RW|PTE_TYPE_SMALL) /* Read/Write/executable without cache and write buffer */
139 #define PAGE_RWX_FAULT (PAGE_AP_RW|PTE_TYPE_SMALL) /* Read/Write without cache and write buffer */
[all …]
H A Dmmu.c148 void mmu_clean_invalidated_dcache(rt_uint32_t buffer, rt_uint32_t size) in mmu_clean_invalidated_dcache() argument
152 ptr = buffer & ~(CACHE_LINE_SIZE - 1); in mmu_clean_invalidated_dcache()
154 while(ptr < buffer + size) in mmu_clean_invalidated_dcache()
164 void mmu_clean_dcache(rt_uint32_t buffer, rt_uint32_t size) in mmu_clean_dcache() argument
168 ptr = buffer & ~(CACHE_LINE_SIZE - 1); in mmu_clean_dcache()
170 while (ptr < buffer + size) in mmu_clean_dcache()
180 void mmu_invalidate_dcache(rt_uint32_t buffer, rt_uint32_t size) in mmu_invalidate_dcache() argument
184 ptr = buffer & ~(CACHE_LINE_SIZE - 1); in mmu_invalidate_dcache()
186 while (ptr < buffer + size) in mmu_invalidate_dcache()
367 void mmu_clean_invalidated_dcache(rt_uint32_t buffer, rt_uint32_t size) in mmu_clean_invalidated_dcache() argument
[all …]
/nrf52832-nimble/rt-thread/components/dfs/filesystems/uffs/src/uffs/
H A Duffs_buf.c65 "------------- page buffer inspect ---------" TENDSTR); in uffs_BufInspect()
83 * in UFFS, each device has one buffer pool
85 * \param[in] buf_max maximum buffer number, normally use #MAX_PAGE_BUFFERS
86 * \param[in] dirty_buf_max maximum dirty buffer allowed,
87 * if the dirty buffer over this number,
176 "fail to flush buffer(slot %d)", slot); in uffs_BufFlushAll()
184 * \brief release all page buffer, this function should be called
196 //now release all buffer in uffs_BufReleaseAll()
211 "can't release buf, fail to flush buffer"); in uffs_BufReleaseAll()
434 * find a buffer in the pool
[all …]
H A Duffs_pool.c75 * \param[in] buf_size size of a single buffer
89 "buffer size not aligned to pointer size") || in uffs_PoolInit()
145 * \brief Get a buffer from the memory pool.
147 * \return Returns a pointer to the buffer or NULL if none is available.
164 * \brief Get a buffer from the memory pool.
168 * \return Returns a pointer to the buffer or NULL if none is available.
187 * \brief Puts a buffer back to the memory pool.
189 * \param[in] p buffer to put back
209 * \brief Puts a buffer back to the memory pool.
213 * \param[in] p buffer to put back
[all …]
/nrf52832-nimble/packages/NimBLE-latest/ext/tinycrypt/src/
H A Dcbc_mode.c42 uint8_t buffer[TC_AES_BLOCK_SIZE]; in tc_cbc_mode_encrypt() local
57 /* copy iv to the buffer */ in tc_cbc_mode_encrypt()
58 (void)_copy(buffer, TC_AES_BLOCK_SIZE, iv, TC_AES_BLOCK_SIZE); in tc_cbc_mode_encrypt()
59 /* copy iv to the output buffer */ in tc_cbc_mode_encrypt()
64 buffer[m++] ^= *in++; in tc_cbc_mode_encrypt()
66 (void)tc_aes_encrypt(buffer, buffer, sched); in tc_cbc_mode_encrypt()
68 buffer, TC_AES_BLOCK_SIZE); in tc_cbc_mode_encrypt()
82 uint8_t buffer[TC_AES_BLOCK_SIZE]; in tc_cbc_mode_decrypt() local
106 (void)tc_aes_decrypt(buffer, in, sched); in tc_cbc_mode_decrypt()
110 *out++ = buffer[m++] ^ *p++; in tc_cbc_mode_decrypt()
/nrf52832-nimble/rt-thread/libcpu/arm/arm926/
H A Dmmu.c137 void mmu_clean_invalidated_dcache(rt_uint32_t buffer, rt_uint32_t size) in mmu_clean_invalidated_dcache() argument
141 ptr = buffer & ~(CACHE_LINE_SIZE - 1); in mmu_clean_invalidated_dcache()
143 while(ptr < buffer + size) in mmu_clean_invalidated_dcache()
150 void mmu_clean_dcache(rt_uint32_t buffer, rt_uint32_t size) in mmu_clean_dcache() argument
154 ptr = buffer & ~(CACHE_LINE_SIZE - 1); in mmu_clean_dcache()
156 while (ptr < buffer + size) in mmu_clean_dcache()
163 void mmu_invalidate_dcache(rt_uint32_t buffer, rt_uint32_t size) in mmu_invalidate_dcache() argument
167 ptr = buffer & ~(CACHE_LINE_SIZE - 1); in mmu_invalidate_dcache()
169 while (ptr < buffer + size) in mmu_invalidate_dcache()
327 void mmu_clean_invalidated_dcache(rt_uint32_t buffer, rt_uint32_t size) in mmu_clean_invalidated_dcache() argument
[all …]
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/include/host/
H A Dble_hs_mbuf.h24 * @brief Bluetooth Host chained memory buffer (mbuf)
25 * @defgroup bt_host_mbuf Bluetooth Host chained memory buffer (mbuf)
50 * buffer.
52 * @param buf The flat buffer to copy from.
53 * @param len The length of the flat buffer.
60 * Copies the contents of an mbuf into the specified flat buffer. If the flat
61 * buffer is too small to contain the mbuf's contents, it is filled to capacity
65 * @param flat The destination flat buffer.
66 * @param max_len The size of the flat buffer.
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/apps/snmp/
H A Dsnmp_mib2_system.c68 static u8_t *syscontact_wr = NULL; /* if writable, points to the same buffer as s…
69 static u16_t *syscontact_wr_len = NULL; /* if writable, points to the same buffer as s…
76 static u8_t *sysname_wr = NULL; /* if writable, points to the same buffer as s…
77 static u16_t *sysname_wr_len = NULL; /* if writable, points to the same buffer as s…
84 static u8_t *syslocation_wr = NULL; /* if writable, points to the same buffer as …
85 static u16_t *syslocation_wr_len = NULL; /* if writable, points to the same buffer as …
111 * @param bufsize size of the buffer in bytes.
112 * (this is required because the buffer can be overwritten by snmp-set)
113 * if ocstrlen is NULL buffer needs space for terminating 0 byte.
114 * otherwise complete buffer is used for string.
[all …]
/nrf52832-nimble/rt-thread/components/net/uip/uip/
H A Dpsock.h88 * The structure that holds the state of a buffer.
90 * This structure holds the state of a uIP buffer. The structure has
113 char *bufptr; /* Pointer to the buffer used for buffering
120 input buffer. */
121 unsigned int bufsize; /* The size of the input buffer. */
126 void psock_init(struct psock *psock, char *buffer, unsigned int buffersize);
131 * protosocket is used. The initialization also specifies the input buffer
137 * \param buffer (char *) A pointer to the input buffer for the
140 * \param buffersize (unsigned int) The size of the input buffer.
144 #define PSOCK_INIT(psock, buffer, buffersize) \ argument
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/apps/snmp/
H A Dsnmp_mib2_system.c68 static u8_t* syscontact_wr = NULL; /* if writable, points to the same buffer as s…
69 static u16_t* syscontact_wr_len = NULL; /* if writable, points to the same buffer as s…
76 static u8_t* sysname_wr = NULL; /* if writable, points to the same buffer as s…
77 static u16_t* sysname_wr_len = NULL; /* if writable, points to the same buffer as s…
84 static u8_t* syslocation_wr = NULL; /* if writable, points to the same buffer as …
85 static u16_t* syslocation_wr_len = NULL; /* if writable, points to the same buffer as …
111 * @param bufsize size of the buffer in bytes.
112 * (this is required because the buffer can be overwritten by snmp-set)
113 * if ocstrlen is NULL buffer needs space for terminating 0 byte.
114 * otherwise complete buffer is used for string.
[all …]
/nrf52832-nimble/rt-thread/examples/file/
H A Dreadwrite.c13 static char test_data[120], buffer[120]; variable
74 length = read(fd, buffer, sizeof(buffer)); in readwrite()
75 if (length != sizeof(buffer)) in readwrite()
85 if (test_data[index] != buffer[index]) in readwrite()
94 length = read(fd, buffer, sizeof(buffer)); in readwrite()
95 if (length != sizeof(buffer)) in readwrite()
105 if (test_data[index] != buffer[index]) in readwrite()
/nrf52832-nimble/nordic/nrfx/drivers/include/
H A Dnrfx_pdm.h67 bool buffer_requested; ///< Buffer request flag.
68 int16_t * buffer_released; ///< Pointer to the released buffer. Can be NULL.
109 * This event handler is called on a buffer request, an error or when a buffer
181 * @brief Function for supplying the sample buffer.
183 * Call this function after every buffer request event.
185 * @param[in] buffer Pointer to the receive buffer. Cannot be NULL.
186 * @param[in] buffer_length Length of the receive buffer in 16-bit words.
188 * @retval NRFX_SUCCESS If the buffer was applied successfully.
189 …* @retval NRFX_ERROR_BUSY If the buffer was already supplied or the peripheral is current…
193 nrfx_err_t nrfx_pdm_buffer_set(int16_t * buffer, uint16_t buffer_length);
/nrf52832-nimble/rt-thread/libcpu/xilinx/microblaze/
H A Dserial.c109 /* reset rx buffer */ in rt_serial_init()
147 static rt_size_t rt_serial_read (rt_device_t dev, rt_off_t pos, void* buffer, rt_size_t size) in rt_serial_read() argument
153 /* point to buffer */ in rt_serial_read()
154 ptr = (rt_uint8_t*) buffer; in rt_serial_read()
175 /* no data in rx buffer */ in rt_serial_read()
188 return (rt_uint32_t)ptr - (rt_uint32_t)buffer; in rt_serial_read()
200 /* Wait for Full Rx Buffer */ in rt_serial_read()
209 return (rt_size_t)ptr - (rt_size_t)buffer; in rt_serial_read()
215 static rt_size_t rt_serial_write (rt_device_t dev, rt_off_t pos, const void* buffer, rt_size_t size) in rt_serial_write() argument
221 ptr = (rt_uint8_t*) buffer; in rt_serial_write()
[all …]
/nrf52832-nimble/rt-thread/components/drivers/usb/usbdevice/class/
H A Dmstorage.c201 data->ep_in->request.buffer = (rt_uint8_t*)&data->csw_response; in _send_status()
259 buf = data->ep_in->buffer; in _inquiry_cmd()
269 data->ep_in->request.buffer = buf; in _inquiry_cmd()
298 buf = (struct request_sense_data *)data->ep_in->buffer; in _request_sense()
312 data->ep_in->request.buffer = (rt_uint8_t*)data->ep_in->buffer; in _request_sense()
341 buf = data->ep_in->buffer; in _mode_sense_6()
348 data->ep_in->request.buffer = buf; in _mode_sense_6()
378 buf = data->ep_in->buffer; in _read_capacities()
393 data->ep_in->request.buffer = buf; in _read_capacities()
424 buf = data->ep_in->buffer; in _read_capacity()
[all …]
/nrf52832-nimble/rt-thread/libcpu/arm/dm36x/
H A Dmmu.c148 void mmu_clean_invalidated_dcache(rt_uint32_t buffer, rt_uint32_t size) in mmu_clean_invalidated_dcache() argument
152 ptr = buffer & ~(CACHE_LINE_SIZE - 1); in mmu_clean_invalidated_dcache()
154 while(ptr < buffer + size) in mmu_clean_invalidated_dcache()
164 void mmu_clean_dcache(rt_uint32_t buffer, rt_uint32_t size) in mmu_clean_dcache() argument
168 ptr = buffer & ~(CACHE_LINE_SIZE - 1); in mmu_clean_dcache()
170 while (ptr < buffer + size) in mmu_clean_dcache()
180 void mmu_invalidate_dcache(rt_uint32_t buffer, rt_uint32_t size) in mmu_invalidate_dcache() argument
184 ptr = buffer & ~(CACHE_LINE_SIZE - 1); in mmu_invalidate_dcache()
186 while (ptr < buffer + size) in mmu_invalidate_dcache()
367 void mmu_clean_invalidated_dcache(rt_uint32_t buffer, rt_uint32_t size) in mmu_clean_invalidated_dcache() argument
[all …]

12345678910>>...27