Home
last modified time | relevance | path

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

1234567891011

/kernel/linux/linux-5.10/include/linux/gpio/
Dconsumer.h118 int gpiod_get_array_value(unsigned int array_size,
123 int gpiod_set_array_value(unsigned int array_size,
128 int gpiod_get_raw_array_value(unsigned int array_size,
133 int gpiod_set_raw_array_value(unsigned int array_size,
140 int gpiod_get_array_value_cansleep(unsigned int array_size,
145 int gpiod_set_array_value_cansleep(unsigned int array_size,
150 int gpiod_get_raw_array_value_cansleep(unsigned int array_size,
155 int gpiod_set_raw_array_value_cansleep(unsigned int array_size,
364 static inline int gpiod_get_array_value(unsigned int array_size, in gpiod_get_array_value() argument
378 static inline int gpiod_set_array_value(unsigned int array_size, in gpiod_set_array_value() argument
[all …]
/kernel/linux/linux-5.10/arch/x86/tools/
Dgen-insn-attr-x86.awk115 function array_size(arr, i,c) { function
174 if (array_size(table) != 0) {
179 if (array_size(lptable1) != 0) {
184 if (array_size(lptable2) != 0) {
189 if (array_size(lptable3) != 0) {
196 if (array_size(table) != 0) {
203 if (array_size(lptable1) != 0) {
210 if (array_size(lptable2) != 0) {
217 if (array_size(lptable3) != 0) {
/kernel/linux/linux-5.10/tools/arch/x86/tools/
Dgen-insn-attr-x86.awk115 function array_size(arr, i,c) { function
174 if (array_size(table) != 0) {
179 if (array_size(lptable1) != 0) {
184 if (array_size(lptable2) != 0) {
189 if (array_size(lptable3) != 0) {
196 if (array_size(table) != 0) {
203 if (array_size(lptable1) != 0) {
210 if (array_size(lptable2) != 0) {
217 if (array_size(lptable3) != 0) {
/kernel/linux/linux-5.10/include/linux/sunrpc/
Dxdr.h468 const __u32 *array, size_t array_size) in xdr_stream_encode_uint32_array() argument
470 ssize_t ret = (array_size+1) * sizeof(__u32); in xdr_stream_encode_uint32_array()
475 *p++ = cpu_to_be32(array_size); in xdr_stream_encode_uint32_array()
476 for (; array_size > 0; p++, array++, array_size--) in xdr_stream_encode_uint32_array()
598 __u32 *array, size_t array_size) in xdr_stream_decode_uint32_array() argument
611 if (len <= array_size) { in xdr_stream_decode_uint32_array()
612 if (len < array_size) in xdr_stream_decode_uint32_array()
613 memset(array+len, 0, (array_size-len)*sizeof(*array)); in xdr_stream_decode_uint32_array()
614 array_size = len; in xdr_stream_decode_uint32_array()
618 for (; array_size > 0; p++, array++, array_size--) in xdr_stream_decode_uint32_array()
/kernel/linux/linux-5.10/scripts/coccinelle/misc/
Darray_size_dup.cocci3 /// Check for array_size(), array3_size(), struct_size() duplicates.
5 /// 1. An opencoded expression is used before array_size() to compute the same size
6 /// 2. An opencoded expression is used after array_size() to compute the same size
23 array_size(E1, E2)
36 * array_size(E1, E2)@p2
43 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line)
51 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line)
62 * array_size(E1, E2)@p1
72 msg = "WARNING: array_size is already used (line %s) to compute the same size" % (p1[0].line)
80 msg = "WARNING: array_size is already used (line %s) to compute the same size" % (p1[0].line)
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dcommon_baco.c84 const u32 array_size) in baco_program_registers() argument
88 for (i = 0; i < array_size; i++) { in baco_program_registers()
103 const u32 array_size) in soc15_baco_program_registers() argument
108 for (i = 0; i < array_size; i++) { in soc15_baco_program_registers()
Dcommon_baco.h59 const u32 array_size);
62 const u32 array_size);
/kernel/linux/linux-5.10/drivers/media/test-drivers/vidtv/
Dvidtv_tuner.c186 u32 array_size = 0; in vidtv_tuner_get_signal_strength() local
201 array_size = ARRAY_SIZE(vidtv_tuner_t_cnr_2_qual); in vidtv_tuner_get_signal_strength()
206 array_size = ARRAY_SIZE(vidtv_tuner_s_cnr_2_qual); in vidtv_tuner_get_signal_strength()
211 array_size = ARRAY_SIZE(vidtv_tuner_s2_cnr_2_qual); in vidtv_tuner_get_signal_strength()
216 array_size = ARRAY_SIZE(vidtv_tuner_c_cnr_2_qual); in vidtv_tuner_get_signal_strength()
227 for (i = 0; i < array_size; i++) { in vidtv_tuner_get_signal_strength()
Dvidtv_demod.c82 u32 array_size = 0; in vidtv_match_cnr_s() local
91 array_size = ARRAY_SIZE(vidtv_demod_t_cnr_2_qual); in vidtv_match_cnr_s()
96 array_size = ARRAY_SIZE(vidtv_demod_s_cnr_2_qual); in vidtv_match_cnr_s()
101 array_size = ARRAY_SIZE(vidtv_demod_s2_cnr_2_qual); in vidtv_match_cnr_s()
106 array_size = ARRAY_SIZE(vidtv_demod_c_cnr_2_qual); in vidtv_match_cnr_s()
117 for (i = 0; i < array_size; i++) in vidtv_match_cnr_s()
/kernel/linux/linux-5.10/kernel/bpf/
Dreuseport_array.c156 u64 array_size; in reuseport_array_alloc() local
161 array_size = sizeof(*array); in reuseport_array_alloc()
162 array_size += (u64)attr->max_entries * sizeof(struct sock *); in reuseport_array_alloc()
164 err = bpf_map_charge_init(&mem, array_size); in reuseport_array_alloc()
169 array = bpf_map_area_alloc(array_size, numa_node); in reuseport_array_alloc()
Dringbuf.c71 size_t array_size; in bpf_ringbuf_area_alloc() local
91 array_size = (nr_meta_pages + 2 * nr_data_pages) * sizeof(*pages); in bpf_ringbuf_area_alloc()
92 if (array_size > PAGE_SIZE) in bpf_ringbuf_area_alloc()
93 pages = vmalloc_node(array_size, numa_node); in bpf_ringbuf_area_alloc()
95 pages = kmalloc_node(array_size, flags, numa_node); in bpf_ringbuf_area_alloc()
/kernel/linux/linux-5.10/drivers/hwspinlock/
Dstm32_hwspinlock.c61 size_t array_size; in stm32_hwspinlock_probe() local
68 array_size = STM32_MUTEX_NUM_LOCKS * sizeof(struct hwspinlock); in stm32_hwspinlock_probe()
69 hw = devm_kzalloc(&pdev->dev, sizeof(*hw) + array_size, GFP_KERNEL); in stm32_hwspinlock_probe()
Dqcom_hwspinlock.c134 size_t array_size; in qcom_hwspinlock_probe() local
146 array_size = QCOM_MUTEX_NUM_LOCKS * sizeof(struct hwspinlock); in qcom_hwspinlock_probe()
147 bank = devm_kzalloc(&pdev->dev, sizeof(*bank) + array_size, GFP_KERNEL); in qcom_hwspinlock_probe()
/kernel/linux/linux-5.10/fs/dlm/
Dmember.c63 int array_size) in log_slots() argument
73 for (i = 0; i < array_size; i++) { in log_slots()
170 int array_size, max_slots, i; in dlm_slots_assign() local
217 array_size = max + need; in dlm_slots_assign()
218 array = kcalloc(array_size, sizeof(*array), GFP_NOFS); in dlm_slots_assign()
230 if (memb->slot > array_size) { in dlm_slots_assign()
247 for (i = 0; i < array_size; i++) { in dlm_slots_assign()
271 log_slots(ls, gen, num, NULL, array, array_size); in dlm_slots_assign()
285 *slots_size = array_size; in dlm_slots_assign()
/kernel/linux/linux-5.10/drivers/xen/
Dpvcalls-front.c487 RING_IDX array_size = XEN_FLEX_RING_SIZE(PVCALLS_RING_ORDER); in __write_ring() local
498 size = pvcalls_queued(prod, cons, array_size); in __write_ring()
499 if (size > array_size) in __write_ring()
501 if (size == array_size) in __write_ring()
503 if (len > array_size - size) in __write_ring()
504 len = array_size - size; in __write_ring()
506 masked_prod = pvcalls_mask(prod, array_size); in __write_ring()
507 masked_cons = pvcalls_mask(cons, array_size); in __write_ring()
512 if (len > array_size - masked_prod) { in __write_ring()
514 array_size - masked_prod, msg_iter); in __write_ring()
[all …]
Dpvcalls-back.c96 RING_IDX cons, prod, size, wanted, array_size, masked_prod, masked_cons; in pvcalls_conn_back_read() local
103 array_size = XEN_FLEX_RING_SIZE(map->ring_order); in pvcalls_conn_back_read()
113 size = pvcalls_queued(prod, cons, array_size); in pvcalls_conn_back_read()
114 if (size >= array_size) in pvcalls_conn_back_read()
124 wanted = array_size - size; in pvcalls_conn_back_read()
125 masked_prod = pvcalls_mask(prod, array_size); in pvcalls_conn_back_read()
126 masked_cons = pvcalls_mask(cons, array_size); in pvcalls_conn_back_read()
135 vec[0].iov_len = array_size - masked_prod; in pvcalls_conn_back_read()
173 RING_IDX cons, prod, size, array_size; in pvcalls_conn_back_write() local
181 array_size = XEN_FLEX_RING_SIZE(map->ring_order); in pvcalls_conn_back_write()
[all …]
/kernel/linux/linux-5.10/mm/
Dswap_cgroup.c170 unsigned long array_size; in swap_cgroup_swapon() local
175 array_size = length * sizeof(void *); in swap_cgroup_swapon()
177 array = vzalloc(array_size); in swap_cgroup_swapon()
/kernel/linux/linux-5.10/include/linux/
Dlinkmode.h46 static inline void linkmode_set_bit_array(const int *array, int array_size, in linkmode_set_bit_array() argument
51 for (i = 0; i < array_size; i++) in linkmode_set_bit_array()
/kernel/linux/linux-5.10/security/apparmor/
Dpolicy_unpack_test.c143 u16 array_size; in policy_unpack_test_unpack_array_with_null_name() local
147 array_size = unpack_array(puf->e, NULL); in policy_unpack_test_unpack_array_with_null_name()
149 KUNIT_EXPECT_EQ(test, array_size, (u16)TEST_ARRAY_SIZE); in policy_unpack_test_unpack_array_with_null_name()
158 u16 array_size; in policy_unpack_test_unpack_array_with_name() local
162 array_size = unpack_array(puf->e, name); in policy_unpack_test_unpack_array_with_name()
164 KUNIT_EXPECT_EQ(test, array_size, (u16)TEST_ARRAY_SIZE); in policy_unpack_test_unpack_array_with_name()
173 u16 array_size; in policy_unpack_test_unpack_array_out_of_bounds() local
178 array_size = unpack_array(puf->e, name); in policy_unpack_test_unpack_array_out_of_bounds()
180 KUNIT_EXPECT_EQ(test, array_size, (u16)0); in policy_unpack_test_unpack_array_out_of_bounds()
/kernel/linux/linux-5.10/drivers/usb/gadget/
Du_f.h28 size_t size = array_size(n, sizeof(type)); \
41 size_t groupname##_##name##__sz = array_size(n, sizeof(type)); \
/kernel/linux/linux-5.10/drivers/gpio/
Dgpiolib.c2657 unsigned int array_size, in gpiod_get_array_value_complex() argument
2670 array_size <= array_info->size && in gpiod_get_array_value_complex()
2681 if (!raw && !bitmap_empty(array_info->invert_mask, array_size)) in gpiod_get_array_value_complex()
2683 array_info->invert_mask, array_size); in gpiod_get_array_value_complex()
2685 i = find_first_zero_bit(array_info->get_mask, array_size); in gpiod_get_array_value_complex()
2686 if (i == array_size) in gpiod_get_array_value_complex()
2692 while (i < array_size) { in gpiod_get_array_value_complex()
2725 array_size, i); in gpiod_get_array_value_complex()
2726 } while ((i < array_size) && in gpiod_get_array_value_complex()
2820 int gpiod_get_raw_array_value(unsigned int array_size, in gpiod_get_raw_array_value() argument
[all …]
/kernel/linux/linux-5.10/scripts/gcc-plugins/
Dlatent_entropy_plugin.c208 tree elt_type, array_size, elt_size; in handle_latent_entropy_attribute() local
214 array_size = TYPE_SIZE_UNIT(type); in handle_latent_entropy_attribute()
216 if (TREE_CODE(elt_type) != INTEGER_TYPE || !array_size in handle_latent_entropy_attribute()
217 || TREE_CODE(array_size) != INTEGER_CST) { in handle_latent_entropy_attribute()
224 array_size_int = TREE_INT_CST_LOW(array_size); in handle_latent_entropy_attribute()
/kernel/linux/linux-5.10/drivers/gpu/drm/sti/
Dsti_compositor.c70 unsigned int array_size = compo->data.nb_subdev; in sti_compositor_bind() local
75 for (i = 0; i < array_size; i++) { in sti_compositor_bind()
99 for (i = 0; i < array_size; i++) { in sti_compositor_bind()
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_surface.c1105 if (has_sm5_context(dev_priv) && metadata->array_size > 0) { in vmw_gb_surface_create()
1109 } else if (has_sm4_1_context(dev_priv) && metadata->array_size > 0) { in vmw_gb_surface_create()
1113 } else if (metadata->array_size > 0) { in vmw_gb_surface_create()
1133 if (has_sm5_context(dev_priv) && metadata->array_size > 0) { in vmw_gb_surface_create()
1147 cmd4->body.arraySize = metadata->array_size; in vmw_gb_surface_create()
1149 } else if (has_sm4_1_context(dev_priv) && metadata->array_size > 0) { in vmw_gb_surface_create()
1163 cmd3->body.arraySize = metadata->array_size; in vmw_gb_surface_create()
1164 } else if (metadata->array_size > 0) { in vmw_gb_surface_create()
1176 cmd2->body.arraySize = metadata->array_size; in vmw_gb_surface_create()
1472 if (req->base.array_size > 0 && !has_sm4_context(dev_priv)) { in vmw_gb_surface_define_internal()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dnf_conntrack_ftp.c123 int array_size, char sep, char term) in try_number() argument
127 memset(array, 0, sizeof(array[0])*array_size); in try_number()
130 for (i = 0, len = 0; len < dlen && i < array_size; len++, data++) { in try_number()
140 if ((*data == term || !term) && i == array_size - 1) in try_number()
149 array_size, sep); in try_number()

1234567891011