Home
last modified time | relevance | path

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

/components/drivers/include/drivers/core/
A Ddm.h70 int rt_dm_dev_get_address_array(rt_device_t dev, int nr, rt_uint64_t *out_regs);
83 int index, int nr, rt_uint8_t *out_values);
85 int index, int nr, rt_uint16_t *out_values);
87 int index, int nr, rt_uint32_t *out_values);
89 int index, int nr, rt_uint64_t *out_values);
91 int index, int nr, const char **out_strings);
103 return nr > 0 ? RT_EOK : (rt_err_t)nr; in rt_dm_dev_prop_read_u8_index()
111 return nr > 0 ? RT_EOK : (rt_err_t)nr; in rt_dm_dev_prop_read_u16_index()
119 return nr > 0 ? RT_EOK : (rt_err_t)nr; in rt_dm_dev_prop_read_u32_index()
127 return nr > 0 ? RT_EOK : (rt_err_t)nr; in rt_dm_dev_prop_read_u64_index()
[all …]
/components/dfs/dfs_v2/filesystems/procfs/
A Dproc_partitions.c32 int nr; /* input: max nr, can't be 0 */ member
36 static void list_find_init(list_get_next_t *p, rt_uint8_t type, rt_list_t **array, int nr) in list_find_init() argument
47 p->nr = nr; in list_find_init()
58 int nr; in list_get_next() local
62 if (!arg->nr || !arg->type) in list_get_next()
94 nr = 0; in list_get_next()
105 nr++; in list_get_next()
107 if (nr == arg->nr) in list_get_next()
114 arg->nr_out = nr; in list_get_next()
A Dproc_devices.c40 int nr; /* input: max nr, can't be 0 */ member
44 static void list_find_init(list_get_next_t *p, rt_uint8_t type, rt_list_t **array, int nr) in list_find_init() argument
55 p->nr = nr; in list_find_init()
66 int nr; in list_get_next() local
70 if (!arg->nr || !arg->type) in list_get_next()
102 nr = 0; in list_get_next()
113 nr++; in list_get_next()
115 if (nr == arg->nr) in list_get_next()
122 arg->nr_out = nr; in list_get_next()
/components/drivers/virtio/
A Dvirtio_input.h94 #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) argument
95 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) argument
100 #define BITS_TO_BYTES(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(char)) argument
101 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(long)) argument
A Dvirtio_input.c19 static void _set_bit(rt_uint32_t nr, volatile rt_ubase_t *addr) in _set_bit() argument
21 rt_ubase_t mask = BIT_MASK(nr); in _set_bit()
22 rt_ubase_t *p = ((rt_ubase_t *)addr) + BIT_WORD(nr); in _set_bit()
/components/drivers/include/drivers/
A Dofw.h231 int index, int nr, rt_uint8_t *out_values);
233 int index, int nr, rt_uint16_t *out_values);
235 int index, int nr, rt_uint32_t *out_values);
237 int index, int nr, rt_uint64_t *out_values);
239 int index, int nr, const char **out_strings);
250 int nr = rt_ofw_prop_read_u8_array_index(np, propname, index, 1, out_value); in rt_ofw_prop_read_u8_index() local
252 return nr > 0 ? RT_EOK : (rt_err_t)nr; in rt_ofw_prop_read_u8_index()
260 return nr > 0 ? RT_EOK : (rt_err_t)nr; in rt_ofw_prop_read_u16_index()
268 return nr > 0 ? RT_EOK : (rt_err_t)nr; in rt_ofw_prop_read_u32_index()
276 return nr > 0 ? RT_EOK : (rt_err_t)nr; in rt_ofw_prop_read_u64_index()
[all …]
A Dmisc.h48 #define RT_BIT_MASK(nr) (1UL << ((nr) % RT_BITS_PER_LONG)) argument
49 #define RT_BIT_WORD(nr) ((nr) / RT_BITS_PER_LONG) argument
53 #define RT_BITS_TO_BYTES(nr) RT_DIV_ROUND_UP(nr, RT_BITS_PER_TYPE(char)) argument
54 #define RT_BITS_TO_LONGS(nr) RT_DIV_ROUND_UP(nr, RT_BITS_PER_TYPE(long)) argument
A Dofw_io.h26 int rt_ofw_get_address_array(struct rt_ofw_node *np, int nr, rt_uint64_t *out_regs);
/components/drivers/core/
A Ddm.c358 return ofw_api_call(get_address_array, dev->ofw_node, nr, out_regs); in rt_dm_dev_get_address_array()
480 int index, int nr, rt_uint8_t *out_values) in rt_dm_dev_prop_read_u8_array_index() argument
488 index, nr, out_value); in rt_dm_dev_prop_read_u8_array_index()
496 int index, int nr, rt_uint16_t *out_values) in rt_dm_dev_prop_read_u16_array_index() argument
504 index, nr, out_values); in rt_dm_dev_prop_read_u16_array_index()
512 int index, int nr, rt_uint32_t *out_values) in rt_dm_dev_prop_read_u32_array_index() argument
520 index, nr, out_values); in rt_dm_dev_prop_read_u32_array_index()
528 int index, int nr, rt_uint64_t *out_values) in rt_dm_dev_prop_read_u64_array_index() argument
536 index, nr, out_values); in rt_dm_dev_prop_read_u64_array_index()
544 int index, int nr, const char **out_strings) in rt_dm_dev_prop_read_string_array_index() argument
[all …]
/components/drivers/ofw/
A Dio.c211 int rt_ofw_get_address_array(struct rt_ofw_node *np, int nr, rt_uint64_t *out_regs) in rt_ofw_get_address_array() argument
215 if (np && nr > 0 && out_regs) in rt_ofw_get_address_array()
225 if (nr > max_nr) in rt_ofw_get_address_array()
227 nr = max_nr; in rt_ofw_get_address_array()
230 count = nr; in rt_ofw_get_address_array()
232 while (nr --> 0) in rt_ofw_get_address_array()
312 ranges->nr = groups; in ofw_bus_ranges()
384 for (int i = 0; i < ranges->nr; ++i) in rt_ofw_translate_address()
453 for (int i = 0; i < ranges->nr; ++i) in rt_ofw_reverse_address()
A Dbase.c738 int nr; in rt_ofw_get_child_count() local
744 nr = 0; in rt_ofw_get_child_count()
748 ++nr; in rt_ofw_get_child_count()
753 nr = -RT_EINVAL; in rt_ofw_get_child_count()
756 return nr; in rt_ofw_get_child_count()
761 int nr; in rt_ofw_get_available_child_count() local
767 nr = 0; in rt_ofw_get_available_child_count()
771 ++nr; in rt_ofw_get_available_child_count()
779 return nr; in rt_ofw_get_available_child_count()
1806 res = nr > max_nr ? max_nr : nr; \
[all …]
A Dofw_internal.h52 rt_size_t nr; member
/components/lwp/vdso/
A Dvdso_config.h22 #define BIT_MASK(nr) ((1) << (nr)) argument
/components/drivers/pic/
A Dpic-gic-common.c151 void gic_common_cpu_config(void *base, int nr, void (*sync_access)(void *), void *data) in gic_common_cpu_config() argument
156 for (i = 0; i < nr; i += 32) in gic_common_cpu_config()
163 for (i = 0; i < nr; i += 4) in gic_common_cpu_config()
A Dpic-gic-common.h48 void gic_common_cpu_config(void *base, int nr, void (*sync_access)(void *), void *data);
/components/dfs/dfs_v1/src/
A Ddfs.c185 int nr; in fd_slot_expand() local
202 nr = ((fd + 4) & ~3); in fd_slot_expand()
205 if (nr > DFS_FD_MAX) in fd_slot_expand()
207 nr = DFS_FD_MAX; in fd_slot_expand()
211 fds = (struct dfs_file **)rt_realloc(fdt->fds, nr * sizeof(struct dfs_file *)); in fd_slot_expand()
218 for (index = fdt->maxfd; index < nr; index++) in fd_slot_expand()
225 fdt->maxfd = nr; in fd_slot_expand()
/components/utilities/libadt/bitmap/
A Dbitmap.h20 #define RT_BITMAP_BIT_LEN(nr) (nr * RT_BITMAP_BITS_MIN) argument
/components/finsh/
A Dcmd.c73 int nr; /* input: max nr, can't be 0 */ member
77 static void list_find_init(list_get_next_t *p, rt_uint8_t type, rt_list_t **array, int nr) in list_find_init() argument
88 p->nr = nr; in list_find_init()
99 int nr; in list_get_next() local
103 if (!arg->nr || !arg->type) in list_get_next()
135 nr = 0; in list_get_next()
146 nr++; in list_get_next()
148 if (nr == arg->nr) in list_get_next()
155 arg->nr_out = nr; in list_get_next()
/components/dfs/dfs_v2/src/
A Ddfs.c59 int nr; in _fdt_slot_expand() local
72 nr = ((fd + 4) & ~3); in _fdt_slot_expand()
73 if (nr > DFS_FD_MAX) in _fdt_slot_expand()
75 nr = DFS_FD_MAX; in _fdt_slot_expand()
77 fds = (struct dfs_file **)rt_realloc(fdt->fds, nr * sizeof(struct dfs_file *)); in _fdt_slot_expand()
84 for (index = fdt->maxfd; index < nr; index++) in _fdt_slot_expand()
89 fdt->maxfd = nr; in _fdt_slot_expand()
/components/net/lwip/lwip-2.1.2/src/netif/ppp/
A Dpppol2tp.c81 …pol2tp_dispatch_control_packet(pppol2tp_pcb *l2tp, u16_t port, struct pbuf *p, u16_t ns, u16_t nr);
88 static err_t pppol2tp_send_zlb(pppol2tp_pcb *l2tp, u16_t ns, u16_t nr);
347 u16_t hflags, hlen, len=0, tunnel_id=0, session_id=0, ns=0, nr=0, offset=0; in pppol2tp_input() local
400 hlen += sizeof(ns) + sizeof(nr); in pppol2tp_input()
419 GETSHORT(nr, inp); in pppol2tp_input()
443 len, tunnel_id, session_id, ns, nr)); in pppol2tp_input()
447 pppol2tp_dispatch_control_packet(l2tp, port, p, ns, nr); in pppol2tp_input()
511 pppol2tp_send_zlb(l2tp, nr, ns+1); in pppol2tp_dispatch_control_packet()
516 l2tp->peer_nr = nr; in pppol2tp_dispatch_control_packet()
1053 static err_t pppol2tp_send_zlb(pppol2tp_pcb *l2tp, u16_t ns, u16_t nr) { in pppol2tp_send_zlb() argument
[all …]
/components/net/lwip/lwip-2.0.3/src/netif/ppp/
A Dpppol2tp.c81 …pol2tp_dispatch_control_packet(pppol2tp_pcb *l2tp, u16_t port, struct pbuf *p, u16_t ns, u16_t nr);
347 u16_t hflags, hlen, len=0, tunnel_id=0, session_id=0, ns=0, nr=0, offset=0; in pppol2tp_input() local
400 hlen += sizeof(ns) + sizeof(nr); in pppol2tp_input()
419 GETSHORT(nr, inp); in pppol2tp_input()
443 len, tunnel_id, session_id, ns, nr)); in pppol2tp_input()
447 pppol2tp_dispatch_control_packet(l2tp, port, p, ns, nr); in pppol2tp_input()
486 …ol2tp_dispatch_control_packet(pppol2tp_pcb *l2tp, u16_t port, struct pbuf *p, u16_t ns, u16_t nr) { in pppol2tp_dispatch_control_packet() argument
496 l2tp->peer_nr = nr; in pppol2tp_dispatch_control_packet()
/components/drivers/pci/
A Dprobe.c680 rt_size_t nr = 0; in rt_pci_scan_slot() local
685 return nr; in rt_pci_scan_slot()
690 return nr; in rt_pci_scan_slot()
699 ++nr; in rt_pci_scan_slot()
712 return nr; in rt_pci_scan_slot()
/components/legacy/fdt/src/
A Ddtb_base.c549 int nr = 0, res = 0; in dtb_node_irq_count() local
569 nr = res / (intsize * 4); in dtb_node_irq_count()
573 return nr; in dtb_node_irq_count()
/components/drivers/sdio/sdhci/include/
A Dsdhci.h267 #define BIT(nr) ((1) << (nr)) argument
/components/mm/
A Dmm_page.c965 #define PGNR2SIZE(nr) ((nr)*ARCH_PAGE_SIZE / 1024) argument

Completed in 45 milliseconds