Home
last modified time | relevance | path

Searched refs:bit (Results 1 – 25 of 38) sorted by relevance

12

/components/utilities/libadt/bitmap/
A Dbitmap.h25 bitmap[bit / RT_BITMAP_BITS_MIN] |= (1UL << (bit & (RT_BITMAP_BITS_MIN - 1))); in rt_bitmap_set_bit()
30 return !!(bitmap[bit / RT_BITMAP_BITS_MIN] & (1UL << (bit & (RT_BITMAP_BITS_MIN - 1)))); in rt_bitmap_test_bit()
35 bitmap[bit / RT_BITMAP_BITS_MIN] &= ~(1UL << (bit & (RT_BITMAP_BITS_MIN - 1))); in rt_bitmap_clear_bit()
40 rt_size_t bit; in rt_bitmap_next_set_bit() local
42 for (bit = start; bit < limit && !rt_bitmap_test_bit(bitmap, bit); ++bit) in rt_bitmap_next_set_bit()
46 return bit; in rt_bitmap_next_set_bit()
51 rt_size_t bit; in rt_bitmap_next_clear_bit() local
53 for (bit = start; bit < limit && rt_bitmap_test_bit(bitmap, bit); ++bit) in rt_bitmap_next_clear_bit()
57 return bit; in rt_bitmap_next_clear_bit()
63 (bit) = rt_bitmap_next_##state##_bit((bitmap), (bit + 1), (limit)))
[all …]
/components/drivers/spi/
A Ddev_spi_bit_ops.c71 rt_uint8_t bit = 0; in spi_xfer_4line_data8() local
83 if (bit) MOSI_H(ops); in spi_xfer_4line_data8()
101 rx_data |= bit; in spi_xfer_4line_data8()
105 rx_data &= ~bit; in spi_xfer_4line_data8()
146 rt_uint16_t bit = 0; in spi_xfer_4line_data16() local
158 if (bit) MOSI_H(ops); in spi_xfer_4line_data16()
176 rx_data |= bit; in spi_xfer_4line_data16()
180 rx_data &= ~bit; in spi_xfer_4line_data16()
232 rt_uint8_t bit = 0; in spi_xfer_3line_data8() local
282 rx_data |= bit; in spi_xfer_3line_data8()
[all …]
/components/libc/compilers/common/
A Dcstring.c61 int bit; in ffs() local
66 for (bit = 1; !(i & 1); ++bit) in ffs()
68 return bit; in ffs()
73 int bit; in ffsl() local
78 for (bit = 1; !(i & 1); ++bit) in ffsl()
80 return bit; in ffsl()
85 int bit; in ffsll() local
90 for (bit = 1; !(i & 1); ++bit) in ffsll()
92 return bit; in ffsll()
/components/drivers/pci/endpoint/
A Dmem.c92 rt_size_t bit, next_bit, end_bit, max_bits; in bitmap_region_alloc() local
97 rt_bitmap_for_each_clear_bit(mem->map, bit, max_bits) in bitmap_region_alloc()
99 end_bit = bit + size; in bitmap_region_alloc()
101 for (next_bit = bit + 1; next_bit < end_bit; ++next_bit) in bitmap_region_alloc()
105 bit = next_bit; in bitmap_region_alloc()
112 while (next_bit --> bit) in bitmap_region_alloc()
117 return mem->cpu_addr + bit * mem->page_size; in bitmap_region_alloc()
128 rt_size_t bit = (cpu_addr - mem->cpu_addr) / mem->page_size, end_bit; in bitmap_region_free() local
131 end_bit = bit + size; in bitmap_region_free()
133 for (; bit < end_bit; ++bit) in bitmap_region_free()
[all …]
/components/drivers/include/drivers/
A Ddev_mmcsd_core.h188 rt_uint32_t bit = 32; in __rt_fls() local
195 bit -= 16; in __rt_fls()
200 bit -= 8; in __rt_fls()
205 bit -= 4; in __rt_fls()
210 bit -= 2; in __rt_fls()
214 bit -= 1; in __rt_fls()
217 return bit; in __rt_fls()
/components/lwp/
A Dlwp_shm.c115 uint32_t bit = 0; in _lwp_shmget() local
141 bit = rt_page_bits(size); in _lwp_shmget()
142 page_addr = rt_pages_alloc_ext(bit, PAGE_ANY_AVAILABLE); /* virtual address */ in _lwp_shmget()
151 p->size = (1UL << (bit + ARCH_PAGE_SHIFT)); in _lwp_shmget()
183 rt_pages_free(page_addr, bit); in _lwp_shmget()
234 uint32_t bit = 0; in _lwp_shmrm() local
246 bit = rt_page_bits(p->size); in _lwp_shmrm()
247 rt_pages_free((void *)p->addr, bit); in _lwp_shmrm()
/components/drivers/dma/
A Ddma_pool.c269 rt_size_t bit, next_bit, end_bit, max_bits; in dma_pool_alloc() local
274 rt_bitmap_for_each_clear_bit(pool->map, bit, max_bits) in dma_pool_alloc()
276 end_bit = bit + size; in dma_pool_alloc()
278 for (next_bit = bit + 1; next_bit < end_bit; ++next_bit) in dma_pool_alloc()
282 bit = next_bit; in dma_pool_alloc()
289 while (next_bit --> bit) in dma_pool_alloc()
294 return pool->start + bit * ARCH_PAGE_SIZE; in dma_pool_alloc()
304 rt_size_t bit = (offset - pool->start) / ARCH_PAGE_SIZE, end_bit; in dma_pool_free() local
307 end_bit = bit + size; in dma_pool_free()
309 for (; bit < end_bit; ++bit) in dma_pool_free()
[all …]
/components/drivers/virtio/
A Dvirtio_input.c44 rt_uint32_t bit; in virtio_input_cfg_bits() local
88 for (bit = 0; bit < bitcount; ++bit) in virtio_input_cfg_bits()
90 if (virtio_bits[bit / 8] & (1 << (bit % 8))) in virtio_input_cfg_bits()
92 _set_bit(bit, bits); in virtio_input_cfg_bits()
/components/drivers/pci/host/dw/
A Dpcie-dw_host.c20 rt_uint32_t res, bit, ctrl; in dw_pcie_irq_ack() local
26 bit = hwirq % MAX_MSI_IRQS_PER_CTRL; in dw_pcie_irq_ack()
28 dw_pcie_writel_dbi(pci, PCIE_MSI_INTR0_STATUS + res, RT_BIT(bit)); in dw_pcie_irq_ack()
35 rt_uint32_t res, bit, ctrl; in dw_pcie_irq_mask() local
45 bit = hwirq % MAX_MSI_IRQS_PER_CTRL; in dw_pcie_irq_mask()
47 port->irq_mask[ctrl] |= RT_BIT(bit); in dw_pcie_irq_mask()
57 rt_uint32_t res, bit, ctrl; in dw_pcie_irq_unmask() local
67 bit = hwirq % MAX_MSI_IRQS_PER_CTRL; in dw_pcie_irq_unmask()
69 port->irq_mask[ctrl] &= ~RT_BIT(bit); in dw_pcie_irq_unmask()
/components/net/lwip/lwip-2.0.3/src/netif/ppp/
A Dauth.c1047 int bit; in auth_peer_success() local
1056 bit = CHAP_PEER; in auth_peer_success()
1059 bit |= CHAP_MD5_PEER; in auth_peer_success()
1063 bit |= CHAP_MS_PEER; in auth_peer_success()
1076 bit = PAP_PEER; in auth_peer_success()
1081 bit = EAP_PEER; in auth_peer_success()
1137 int bit; in auth_withpeer_success() local
1143 bit = CHAP_WITHPEER; in auth_withpeer_success()
1164 bit = PAP_WITHPEER; in auth_withpeer_success()
1170 bit = EAP_WITHPEER; in auth_withpeer_success()
[all …]
A Dpppos.c142 int bit; in ppp_get_fcs() local
144 for (bit = 8; bit-- > 0; ) { in ppp_get_fcs()
/components/net/lwip/lwip-2.1.2/src/netif/ppp/
A Dauth.c1047 int bit; in auth_peer_success() local
1056 bit = CHAP_PEER; in auth_peer_success()
1059 bit |= CHAP_MD5_PEER; in auth_peer_success()
1063 bit |= CHAP_MS_PEER; in auth_peer_success()
1076 bit = PAP_PEER; in auth_peer_success()
1081 bit = EAP_PEER; in auth_peer_success()
1137 int bit; in auth_withpeer_success() local
1143 bit = CHAP_WITHPEER; in auth_withpeer_success()
1164 bit = PAP_WITHPEER; in auth_withpeer_success()
1170 bit = EAP_WITHPEER; in auth_withpeer_success()
[all …]
A Dpppos.c142 int bit; in ppp_get_fcs() local
144 for (bit = 8; bit-- > 0; ) { in ppp_get_fcs()
/components/drivers/sdio/
A Ddev_mmcsd_core.c528 int bit; in mmcsd_select_voltage() local
533 bit = __rt_ffs(ocr); in mmcsd_select_voltage()
534 if (bit) in mmcsd_select_voltage()
536 bit -= 1; in mmcsd_select_voltage()
538 ocr &= 3 << bit; in mmcsd_select_voltage()
540 host->io_cfg.vdd = bit; in mmcsd_select_voltage()
554 int bit = __rt_fls(host->valid_ocr) - 1; in mmcsd_power_up() local
556 host->io_cfg.vdd = bit; in mmcsd_power_up()
/components/drivers/usb/cherryusb/port/rp2040/
A Dusb_hc_rp2040.c647 uint32_t bit = 1u; in rp2040_handle_buffer_status() local
648 if (remaining_buffers & bit) { in rp2040_handle_buffer_status()
649 remaining_buffers &= ~bit; in rp2040_handle_buffer_status()
650 usb_hw_clear->buf_status = bit; in rp2040_handle_buffer_status()
707 bit = 1 << (i * 2 + j); in rp2040_handle_buffer_status()
708 if (remaining_buffers & bit) { in rp2040_handle_buffer_status()
709 remaining_buffers &= ~bit; in rp2040_handle_buffer_status()
710 usb_hw_clear->buf_status = bit; in rp2040_handle_buffer_status()
A Dusb_dc_rp2040.c478 uint32_t bit = 1u; in usb_handle_buff_status() local
480 if (remaining_buffers & bit) { in usb_handle_buff_status()
482 usb_hw_clear->buf_status = bit; in usb_handle_buff_status()
485 remaining_buffers &= ~bit; in usb_handle_buff_status()
487 bit <<= 1u; in usb_handle_buff_status()
/components/drivers/i2c/
A Ddev_i2c_bit_ops.c135 rt_uint8_t bit; in i2c_writeb() local
142 bit = (data >> i) & 1; in i2c_writeb()
143 SET_SDA(ops, bit); in i2c_writeb()
/components/net/lwip/lwip-2.0.3/src/apps/httpd/makefsdata/
A Dreadme.txt4 There is also a plain C console application doing the same and extended a bit.
/components/net/lwip/lwip-2.1.2/src/apps/http/makefsdata/
A Dreadme.txt4 There is also a plain C console application doing the same and extended a bit.
/components/drivers/pci/
A DKconfig21 bool "PCI System 64bit"
/components/drivers/pic/
A DKconfig50 Recommended to be based on the bit length (full bits) of maximum usage.
/components/mm/
A Dmm_page.c438 int bit = sizeof(rt_size_t) * 8 - rt_hw_clz(size) - 1; in rt_page_bits() local
440 if ((size ^ (1UL << bit)) != 0) in rt_page_bits()
442 bit++; in rt_page_bits()
444 bit -= ARCH_PAGE_SHIFT; in rt_page_bits()
445 if (bit < 0) in rt_page_bits()
447 bit = 0; in rt_page_bits()
449 return bit; in rt_page_bits()
/components/net/lwip/lwip-1.4.1/src/netif/
A DFILES29 the source code has been reordered a bit.
/components/drivers/ofw/
A Dbase.c1790 #define OFW_PROP_READ_UXX_ARRAY_INDEX(bit) \ argument
1791 int rt_ofw_prop_read_u##bit##_array_index( \
1793 int index, int nr, rt_uint##bit##_t *out_values) \
1799 const fdt##bit##_t *elm; \
1809 *out_values++ = fdt##bit##_to_cpu(*elm++); \
/components/drivers/hwcrypto/
A DKconfig15 int "Key max bit length"

Completed in 39 milliseconds

12