Home
last modified time | relevance | path

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

12345678910>>...12

/linux-6.12.1/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,
369 static inline int gpiod_get_array_value(unsigned int array_size, in gpiod_get_array_value() argument
383 static inline int gpiod_set_array_value(unsigned int array_size, in gpiod_set_array_value() argument
[all …]
/linux-6.12.1/tools/arch/x86/tools/
Dgen-insn-attr-x86.awk120 function array_size(arr, i,c) { function
179 if (array_size(table) != 0) {
184 if (array_size(lptable1) != 0) {
189 if (array_size(lptable2) != 0) {
194 if (array_size(lptable3) != 0) {
201 if (array_size(table) != 0) {
208 if (array_size(lptable1) != 0) {
215 if (array_size(lptable2) != 0) {
222 if (array_size(lptable3) != 0) {
/linux-6.12.1/arch/x86/tools/
Dgen-insn-attr-x86.awk120 function array_size(arr, i,c) { function
179 if (array_size(table) != 0) {
184 if (array_size(lptable1) != 0) {
189 if (array_size(lptable2) != 0) {
194 if (array_size(lptable3) != 0) {
201 if (array_size(table) != 0) {
208 if (array_size(lptable1) != 0) {
215 if (array_size(lptable2) != 0) {
222 if (array_size(lptable3) != 0) {
/linux-6.12.1/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)
/linux-6.12.1/include/linux/sunrpc/
Dxdr.h602 const __u32 *array, size_t array_size) in xdr_stream_encode_uint32_array() argument
604 ssize_t ret = (array_size+1) * sizeof(__u32); in xdr_stream_encode_uint32_array()
609 *p++ = cpu_to_be32(array_size); in xdr_stream_encode_uint32_array()
610 for (; array_size > 0; p++, array++, array_size--) in xdr_stream_encode_uint32_array()
774 __u32 *array, size_t array_size) in xdr_stream_decode_uint32_array() argument
789 if (len <= array_size) { in xdr_stream_decode_uint32_array()
790 if (len < array_size) in xdr_stream_decode_uint32_array()
791 memset(array+len, 0, (array_size-len)*sizeof(*array)); in xdr_stream_decode_uint32_array()
792 array_size = len; in xdr_stream_decode_uint32_array()
796 for (; array_size > 0; p++, array++, array_size--) in xdr_stream_decode_uint32_array()
/linux-6.12.1/drivers/accel/habanalabs/common/
Dsecurity.c49 const u32 pb_blocks[], int array_size) in hl_get_pb_block() argument
54 for (i = 0 ; i < array_size ; i++) { in hl_get_pb_block()
105 int array_size) in hl_unsecure_register() argument
111 array_size); in hl_unsecure_register()
135 int array_size) in hl_unsecure_register_range() argument
142 array_size); in hl_unsecure_register_range()
226 const u32 pb_blocks[], u32 block_offset, int array_size) in hl_ack_pb_security_violations() argument
231 for (i = 0 ; i < array_size ; i++) { in hl_ack_pb_security_violations()
255 int array_size) in hl_config_glbl_sec() argument
263 for (i = 0 ; i < array_size ; i++) { in hl_config_glbl_sec()
[all …]
/linux-6.12.1/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);
/linux-6.12.1/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()
/linux-6.12.1/drivers/xen/
Dpvcalls-front.c496 RING_IDX array_size = XEN_FLEX_RING_SIZE(PVCALLS_RING_ORDER); in __write_ring() local
507 size = pvcalls_queued(prod, cons, array_size); in __write_ring()
508 if (size > array_size) in __write_ring()
510 if (size == array_size) in __write_ring()
512 if (len > array_size - size) in __write_ring()
513 len = array_size - size; in __write_ring()
515 masked_prod = pvcalls_mask(prod, array_size); in __write_ring()
516 masked_cons = pvcalls_mask(cons, array_size); in __write_ring()
521 if (len > array_size - masked_prod) { in __write_ring()
523 array_size - masked_prod, msg_iter); in __write_ring()
[all …]
Dpvcalls-back.c97 RING_IDX cons, prod, size, wanted, array_size, masked_prod, masked_cons; in pvcalls_conn_back_read() local
104 array_size = XEN_FLEX_RING_SIZE(map->ring_order); in pvcalls_conn_back_read()
114 size = pvcalls_queued(prod, cons, array_size); in pvcalls_conn_back_read()
115 if (size >= array_size) in pvcalls_conn_back_read()
125 wanted = array_size - size; in pvcalls_conn_back_read()
126 masked_prod = pvcalls_mask(prod, array_size); in pvcalls_conn_back_read()
127 masked_cons = pvcalls_mask(cons, array_size); in pvcalls_conn_back_read()
136 vec[0].iov_len = array_size - masked_prod; in pvcalls_conn_back_read()
174 RING_IDX cons, prod, size, array_size; in pvcalls_conn_back_write() local
184 array_size = XEN_FLEX_RING_SIZE(map->ring_order); in pvcalls_conn_back_write()
[all …]
/linux-6.12.1/fs/dlm/
Dmember.c64 int array_size) in log_slots() argument
74 for (i = 0; i < array_size; i++) { in log_slots()
166 int array_size, max_slots, i; in dlm_slots_assign() local
213 array_size = max + need; in dlm_slots_assign()
214 array = kcalloc(array_size, sizeof(*array), GFP_NOFS); in dlm_slots_assign()
226 if (memb->slot > array_size) { in dlm_slots_assign()
243 for (i = 0; i < array_size; i++) { in dlm_slots_assign()
267 log_slots(ls, gen, num, NULL, array, array_size); in dlm_slots_assign()
281 *slots_size = array_size; in dlm_slots_assign()
/linux-6.12.1/include/linux/
Dlinkmode.h52 static inline void linkmode_set_bit_array(const int *array, int array_size, in linkmode_set_bit_array() argument
57 for (i = 0; i < array_size; i++) in linkmode_set_bit_array()
/linux-6.12.1/drivers/gpio/
Dgpiolib.c3055 unsigned int array_size, in gpiod_get_array_value_complex() argument
3068 array_size <= array_info->size && in gpiod_get_array_value_complex()
3079 if (!raw && !bitmap_empty(array_info->invert_mask, array_size)) in gpiod_get_array_value_complex()
3081 array_info->invert_mask, array_size); in gpiod_get_array_value_complex()
3083 i = find_first_zero_bit(array_info->get_mask, array_size); in gpiod_get_array_value_complex()
3084 if (i == array_size) in gpiod_get_array_value_complex()
3090 while (i < array_size) { in gpiod_get_array_value_complex()
3133 array_size, i); in gpiod_get_array_value_complex()
3134 } while ((i < array_size) && in gpiod_get_array_value_complex()
3236 int gpiod_get_raw_array_value(unsigned int array_size, in gpiod_get_raw_array_value() argument
[all …]
/linux-6.12.1/include/linux/usb/
Dfunc_utils.h28 size_t size = array_size(n, sizeof(type)); \
41 size_t groupname##_##name##__sz = array_size(n, sizeof(type)); \
/linux-6.12.1/security/apparmor/
Dpolicy_unpack_test.c145 u16 array_size = 0; in policy_unpack_test_unpack_array_with_null_name() local
149 KUNIT_EXPECT_TRUE(test, aa_unpack_array(puf->e, NULL, &array_size)); in policy_unpack_test_unpack_array_with_null_name()
150 KUNIT_EXPECT_EQ(test, array_size, (u16)TEST_ARRAY_SIZE); in policy_unpack_test_unpack_array_with_null_name()
159 u16 array_size = 0; in policy_unpack_test_unpack_array_with_name() local
163 KUNIT_EXPECT_TRUE(test, aa_unpack_array(puf->e, name, &array_size)); 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 KUNIT_EXPECT_FALSE(test, aa_unpack_array(puf->e, name, &array_size)); in policy_unpack_test_unpack_array_out_of_bounds()
/linux-6.12.1/drivers/hwspinlock/
Dqcom_hwspinlock.c207 size_t array_size; in qcom_hwspinlock_probe() local
219 array_size = QCOM_MUTEX_NUM_LOCKS * sizeof(struct hwspinlock); in qcom_hwspinlock_probe()
220 bank = devm_kzalloc(&pdev->dev, sizeof(*bank) + array_size, GFP_KERNEL); in qcom_hwspinlock_probe()
/linux-6.12.1/drivers/media/platform/qcom/camss/
Dcamss-csiphy-3ph-1-0.c504 int i, l, array_size; in csiphy_gen2_config_lanes() local
510 array_size = ARRAY_SIZE(lane_regs_sdm845[0]); in csiphy_gen2_config_lanes()
514 array_size = ARRAY_SIZE(lane_regs_sm8250[0]); in csiphy_gen2_config_lanes()
518 array_size = ARRAY_SIZE(lane_regs_sc8280xp[0]); in csiphy_gen2_config_lanes()
526 for (i = 0; i < array_size; i++, r++) { in csiphy_gen2_config_lanes()
/linux-6.12.1/scripts/gcc-plugins/
Dlatent_entropy_plugin.c206 tree elt_type, array_size, elt_size; in handle_latent_entropy_attribute() local
212 array_size = TYPE_SIZE_UNIT(type); in handle_latent_entropy_attribute()
214 if (TREE_CODE(elt_type) != INTEGER_TYPE || !array_size in handle_latent_entropy_attribute()
215 || TREE_CODE(array_size) != INTEGER_CST) { in handle_latent_entropy_attribute()
222 array_size_int = TREE_INT_CST_LOW(array_size); in handle_latent_entropy_attribute()
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Dimu_v12_0.c253 const u32 array_size) in program_imu_rlc_ram_old() argument
259 for (i = 0; i < array_size; ++i) { in program_imu_rlc_ram_old()
338 const u32 array_size) in program_imu_rlc_ram() argument
343 if (array_size % 3) in program_imu_rlc_ram()
346 for (i = 0; i < array_size; i += 3) { in program_imu_rlc_ram()
/linux-6.12.1/drivers/gpu/drm/sti/
Dsti_compositor.c71 unsigned int array_size = compo->data.nb_subdev; in sti_compositor_bind() local
76 for (i = 0; i < array_size; i++) { in sti_compositor_bind()
100 for (i = 0; i < array_size; i++) { in sti_compositor_bind()
/linux-6.12.1/drivers/gpu/drm/vmwgfx/
Dvmwgfx_surface.c1189 if (has_sm5_context(dev_priv) && metadata->array_size > 0) { in vmw_gb_surface_create()
1193 } else if (has_sm4_1_context(dev_priv) && metadata->array_size > 0) { in vmw_gb_surface_create()
1197 } else if (metadata->array_size > 0) { in vmw_gb_surface_create()
1217 if (has_sm5_context(dev_priv) && metadata->array_size > 0) { in vmw_gb_surface_create()
1231 cmd4->body.arraySize = metadata->array_size; in vmw_gb_surface_create()
1233 } else if (has_sm4_1_context(dev_priv) && metadata->array_size > 0) { in vmw_gb_surface_create()
1247 cmd3->body.arraySize = metadata->array_size; in vmw_gb_surface_create()
1248 } else if (metadata->array_size > 0) { in vmw_gb_surface_create()
1260 cmd2->body.arraySize = metadata->array_size; in vmw_gb_surface_create()
1555 if (req->base.array_size > 0 && !has_sm4_context(dev_priv)) { in vmw_gb_surface_define_internal()
[all …]
/linux-6.12.1/drivers/infiniband/hw/hfi1/
Duser_sdma.h58 static inline int ahg_header_set(u32 *arr, int idx, size_t array_size, in ahg_header_set() argument
61 if ((size_t)idx >= array_size) in ahg_header_set()
/linux-6.12.1/net/netfilter/
Dnf_conntrack_ftp.c119 int array_size, char sep, char term) in try_number() argument
123 memset(array, 0, sizeof(array[0])*array_size); in try_number()
126 for (i = 0, len = 0; len < dlen && i < array_size; len++, data++) { in try_number()
136 if ((*data == term || !term) && i == array_size - 1) in try_number()
145 array_size, sep); in try_number()

12345678910>>...12