/kernel/liteos_a/syscall/ |
H A D | syscall_pub.h | 140 #define CHECK_ARRAY_FIELD_ASPACE(ptr, arr, arrlen, field, len, ...) \
142 if (ptr != NULL && ptr->arr != NULL) { \
144 CHECK_ASPACE(ptr->arr[i].field, ptr->arr[i].len, ##__VA_ARGS__); \
166 /* backup the arr to ptr##arr */
167 #define DUP_ARRAY_FIELD_FROM_USER_(ext, ptr, arr, arrlen, field, len, ...) \
168 __typeof(*ptr##_NONCONST) ptr##arr##cpy = ptr##cpybak, ptr##arr##cpybak = ptr##cpybak; \
169 __typeof(ptr##_NONCONST) ptr##arr [all...] |
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | bpf_helpers.h | 204 #define ___bpf_fill0(arr, p, x) do {} while (0) 205 #define ___bpf_fill1(arr, p, x) arr[p] = x 206 #define ___bpf_fill2(arr, p, x, args...) arr[p] = x; ___bpf_fill1(arr, p + 1, args) 207 #define ___bpf_fill3(arr, p, x, args...) arr[p] = x; ___bpf_fill2(arr, p + 1, args) 208 #define ___bpf_fill4(arr, [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | tailcall_bpf2bpf3.c | 17 volatile char arr[64] = {}; in subprog_tail2() local 24 __sink(arr[sizeof(arr) - 1]); in subprog_tail2() 32 volatile char arr[64] = {}; in subprog_tail() local 36 __sink(arr[sizeof(arr) - 1]); in subprog_tail() 44 volatile char arr[128] = {}; in classifier_0() local 46 __sink(arr[sizeof(arr) - 1]); in classifier_0() 54 volatile char arr[12 in classifier_1() local 64 volatile char arr[128] = {}; entry() local [all...] |
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | scsi_debug.c | 1155 static int fill_from_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fill_from_dev_buffer() argument 1167 arr, arr_len); in fill_from_dev_buffer() 1178 static int p_fill_from_dev_buffer(struct scsi_cmnd *scp, const void *arr, in p_fill_from_dev_buffer() argument 1191 arr, arr_len, skip); in p_fill_from_dev_buffer() 1201 * 'arr' or -1 if error. 1203 static int fetch_to_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fetch_to_dev_buffer() argument 1211 return scsi_sg_copy_to_buffer(scp, arr, arr_len); in fetch_to_dev_buffer() 1223 /* Device identification VPD page. Returns number of bytes placed in arr */ 1224 static int inquiry_vpd_83(unsigned char *arr, int port_group_id, in inquiry_vpd_83() argument 1234 arr[ in inquiry_vpd_83() 1318 inquiry_vpd_84(unsigned char *arr) inquiry_vpd_84() argument 1325 inquiry_vpd_85(unsigned char *arr) inquiry_vpd_85() argument 1360 inquiry_vpd_88(unsigned char *arr, int target_dev_id) inquiry_vpd_88() argument 1447 inquiry_vpd_89(unsigned char *arr) inquiry_vpd_89() argument 1462 inquiry_vpd_b0(unsigned char *arr) inquiry_vpd_b0() argument 1507 inquiry_vpd_b1(struct sdebug_dev_info *devip, unsigned char *arr) inquiry_vpd_b1() argument 1521 inquiry_vpd_b2(unsigned char *arr) inquiry_vpd_b2() argument 1540 inquiry_vpd_b6(struct sdebug_dev_info *devip, unsigned char *arr) inquiry_vpd_b6() argument 1571 unsigned char *arr; resp_inquiry() local 1740 unsigned char arr[SCSI_SENSE_BUFFERSIZE]; /* assume >= 18 bytes */ resp_requests() local 1848 unsigned char arr[SDEBUG_READCAP_ARR_SZ]; resp_readcap() local 1868 unsigned char arr[SDEBUG_READCAP16_ARR_SZ]; resp_readcap16() local 1914 unsigned char *arr; resp_report_tgtpgs() local 1997 u8 *arr; resp_rsup_opcodes() local 2143 u8 arr[16]; resp_rsup_tmfs() local 2336 unsigned char arr[SDEBUG_MAX_MSENSE_SZ]; resp_mode_sense() local 2499 unsigned char arr[SDEBUG_MAX_MSELECT_SZ]; resp_mode_select() local 2576 resp_temp_l_pg(unsigned char *arr) resp_temp_l_pg() argument 2586 resp_ie_l_pg(unsigned char *arr) resp_ie_l_pg() argument 2599 resp_env_rep_l_spg(unsigned char *arr) resp_env_rep_l_spg() argument 2618 unsigned char arr[SDEBUG_MAX_LSENSE_SZ]; resp_log_sense() local 3063 comp_write_worker(struct sdeb_store_info *sip, u64 lba, u32 num, const u8 *arr, bool compare_only) comp_write_worker() argument 4045 u8 *arr; resp_comp_write() local 4172 u8 arr[SDEBUG_GET_LBA_STATUS_LEN]; resp_get_lba_status() local 4300 u8 arr[RL_BUCKET_ELEMS * sizeof(struct scsi_lun)]; resp_report_luns() local 4393 u8 *arr; resp_verify() local 4472 u8 *arr = NULL, *desc; resp_report_zones() local 5870 char arr[16]; scsi_debug_write_info() local [all...] |
H A D | constants.c | 28 const struct value_name_pair *arr; member 264 const struct value_name_pair *arr = NULL; in scsi_opcode_sa_name() local 274 for (sa_name_ptr = sa_names_arr; sa_name_ptr->arr; ++sa_name_ptr) { in scsi_opcode_sa_name() 276 arr = sa_name_ptr->arr; in scsi_opcode_sa_name() 281 if (!arr) in scsi_opcode_sa_name() 284 for (k = 0; k < arr_sz; ++k, ++arr) { in scsi_opcode_sa_name() 285 if (service_action == arr->value) in scsi_opcode_sa_name() 289 *sa_name = arr->name; in scsi_opcode_sa_name() 435 const struct value_name_pair *arr in scsi_mlreturn_string() local [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | scsi_debug.c | 1150 static int fill_from_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fill_from_dev_buffer() argument 1162 arr, arr_len); in fill_from_dev_buffer() 1173 static int p_fill_from_dev_buffer(struct scsi_cmnd *scp, const void *arr, in p_fill_from_dev_buffer() argument 1186 arr, arr_len, skip); in p_fill_from_dev_buffer() 1196 * 'arr' or -1 if error. 1198 static int fetch_to_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fetch_to_dev_buffer() argument 1206 return scsi_sg_copy_to_buffer(scp, arr, arr_len); in fetch_to_dev_buffer() 1218 /* Device identification VPD page. Returns number of bytes placed in arr */ 1219 static int inquiry_vpd_83(unsigned char *arr, int port_group_id, in inquiry_vpd_83() argument 1229 arr[ in inquiry_vpd_83() 1313 inquiry_vpd_84(unsigned char *arr) inquiry_vpd_84() argument 1320 inquiry_vpd_85(unsigned char *arr) inquiry_vpd_85() argument 1355 inquiry_vpd_88(unsigned char *arr, int target_dev_id) inquiry_vpd_88() argument 1442 inquiry_vpd_89(unsigned char *arr) inquiry_vpd_89() argument 1457 inquiry_vpd_b0(unsigned char *arr) inquiry_vpd_b0() argument 1504 inquiry_vpd_b1(struct sdebug_dev_info *devip, unsigned char *arr) inquiry_vpd_b1() argument 1518 inquiry_vpd_b2(unsigned char *arr) inquiry_vpd_b2() argument 1537 inquiry_vpd_b6(struct sdebug_dev_info *devip, unsigned char *arr) inquiry_vpd_b6() argument 1562 unsigned char *arr; resp_inquiry() local 1731 unsigned char arr[SCSI_SENSE_BUFFERSIZE]; /* assume >= 18 bytes */ resp_requests() local 1839 unsigned char arr[SDEBUG_READCAP_ARR_SZ]; resp_readcap() local 1859 unsigned char arr[SDEBUG_READCAP16_ARR_SZ]; resp_readcap16() local 1905 unsigned char *arr; resp_report_tgtpgs() local 1988 u8 *arr; resp_rsup_opcodes() local 2134 u8 arr[16]; resp_rsup_tmfs() local 2327 unsigned char arr[SDEBUG_MAX_MSENSE_SZ]; resp_mode_sense() local 2490 unsigned char arr[SDEBUG_MAX_MSELECT_SZ]; resp_mode_select() local 2567 resp_temp_l_pg(unsigned char *arr) resp_temp_l_pg() argument 2577 resp_ie_l_pg(unsigned char *arr) resp_ie_l_pg() argument 2597 unsigned char arr[SDEBUG_MAX_LSENSE_SZ]; resp_log_sense() local 2990 comp_write_worker(struct sdeb_store_info *sip, u64 lba, u32 num, const u8 *arr, bool compare_only) comp_write_worker() argument 3892 u8 *arr; resp_comp_write() local 4021 u8 arr[SDEBUG_GET_LBA_STATUS_LEN]; resp_get_lba_status() local 4150 u8 arr[RL_BUCKET_ELEMS * sizeof(struct scsi_lun)]; resp_report_luns() local 4243 u8 *arr; resp_verify() local 4323 u8 *arr = NULL, *desc; resp_report_zones() local 5765 char arr[16]; scsi_debug_write_info() local [all...] |
H A D | constants.c | 28 const struct value_name_pair *arr; member 264 const struct value_name_pair *arr = NULL; in scsi_opcode_sa_name() local 274 for (sa_name_ptr = sa_names_arr; sa_name_ptr->arr; ++sa_name_ptr) { in scsi_opcode_sa_name() 276 arr = sa_name_ptr->arr; in scsi_opcode_sa_name() 281 if (!arr) in scsi_opcode_sa_name() 284 for (k = 0; k < arr_sz; ++k, ++arr) { in scsi_opcode_sa_name() 285 if (service_action == arr->value) in scsi_opcode_sa_name() 289 *sa_name = arr->name; in scsi_opcode_sa_name() 450 const struct value_name_pair *arr in scsi_mlreturn_string() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-trans.c | 239 const struct iwl_hcmd_arr *arr; in iwl_get_cmd_string() local 246 !trans->command_groups[grp].arr) in iwl_get_cmd_string() 249 arr = &trans->command_groups[grp]; in iwl_get_cmd_string() 250 ret = bsearch(&cmd, arr->arr, arr->size, size, iwl_hcmd_names_cmp); in iwl_get_cmd_string() 260 const struct iwl_hcmd_arr *arr; in iwl_cmd_groups_verify_sorted() local 263 arr = &trans->command_groups[i]; in iwl_cmd_groups_verify_sorted() 264 if (!arr->arr) in iwl_cmd_groups_verify_sorted() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-trans.c | 220 const struct iwl_hcmd_arr *arr; in iwl_get_cmd_string() local 227 !trans->command_groups[grp].arr) in iwl_get_cmd_string() 230 arr = &trans->command_groups[grp]; in iwl_get_cmd_string() 231 ret = bsearch(&cmd, arr->arr, arr->size, size, iwl_hcmd_names_cmp); in iwl_get_cmd_string() 241 const struct iwl_hcmd_arr *arr; in iwl_cmd_groups_verify_sorted() local 244 arr = &trans->command_groups[i]; in iwl_cmd_groups_verify_sorted() 245 if (!arr->arr) in iwl_cmd_groups_verify_sorted() [all...] |
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/mtrr/ |
H A D | cyrix.c | 17 unsigned char arr, ccr3, rcr, shift; in cyrix_get_arr() local 20 arr = CX86_ARR_BASE + (reg << 1) + reg; /* avoid multiplication by 3 */ in cyrix_get_arr() 26 ((unsigned char *)base)[3] = getCx86(arr); in cyrix_get_arr() 27 ((unsigned char *)base)[2] = getCx86(arr + 1); in cyrix_get_arr() 28 ((unsigned char *)base)[1] = getCx86(arr + 2); in cyrix_get_arr() 182 unsigned char arr, arr_type, arr_size; in cyrix_set_arr() local 184 arr = CX86_ARR_BASE + (reg << 1) + reg; /* avoid multiplication by 3 */ in cyrix_set_arr() 229 setCx86(arr + 0, ((unsigned char *)&base)[3]); in cyrix_set_arr() 230 setCx86(arr + 1, ((unsigned char *)&base)[2]); in cyrix_set_arr() 231 setCx86(arr in cyrix_set_arr() [all...] |
/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | bpf_tracing.h | 416 #define ___bpf_fill0(arr, p, x) do {} while (0) 417 #define ___bpf_fill1(arr, p, x) arr[p] = x 418 #define ___bpf_fill2(arr, p, x, args...) arr[p] = x; ___bpf_fill1(arr, p + 1, args) 419 #define ___bpf_fill3(arr, p, x, args...) arr[p] = x; ___bpf_fill2(arr, p + 1, args) 420 #define ___bpf_fill4(arr, [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/mtrr/ |
H A D | cyrix.c | 17 unsigned char arr, ccr3, rcr, shift; in cyrix_get_arr() local 20 arr = CX86_ARR_BASE + (reg << 1) + reg; /* avoid multiplication by 3 */ in cyrix_get_arr() 26 ((unsigned char *)base)[3] = getCx86(arr); in cyrix_get_arr() 27 ((unsigned char *)base)[2] = getCx86(arr + 1); in cyrix_get_arr() 28 ((unsigned char *)base)[1] = getCx86(arr + 2); in cyrix_get_arr() 182 unsigned char arr, arr_type, arr_size; in cyrix_set_arr() local 184 arr = CX86_ARR_BASE + (reg << 1) + reg; /* avoid multiplication by 3 */ in cyrix_set_arr() 229 setCx86(arr + 0, ((unsigned char *)&base)[3]); in cyrix_set_arr() 230 setCx86(arr + 1, ((unsigned char *)&base)[2]); in cyrix_set_arr() 231 setCx86(arr in cyrix_set_arr() [all...] |
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | sysfile.c | 95 struct inode **arr = NULL; in ocfs2_get_system_file_inode() local 99 arr = &(osb->global_system_inodes[type]); in ocfs2_get_system_file_inode() 101 arr = get_local_system_inode(osb, type, slot); in ocfs2_get_system_file_inode() 104 if (arr && ((inode = *arr) != NULL)) { in ocfs2_get_system_file_inode() 117 if (arr && inode) { in ocfs2_get_system_file_inode() 118 *arr = igrab(inode); in ocfs2_get_system_file_inode() 119 BUG_ON(!*arr); in ocfs2_get_system_file_inode()
|
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | sysfile.c | 93 struct inode **arr = NULL; in ocfs2_get_system_file_inode() local 97 arr = &(osb->global_system_inodes[type]); in ocfs2_get_system_file_inode() 99 arr = get_local_system_inode(osb, type, slot); in ocfs2_get_system_file_inode() 102 if (arr && ((inode = *arr) != NULL)) { in ocfs2_get_system_file_inode() 115 if (arr && inode) { in ocfs2_get_system_file_inode() 116 *arr = igrab(inode); in ocfs2_get_system_file_inode() 117 BUG_ON(!*arr); in ocfs2_get_system_file_inode()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | tailcall_bpf2bpf3.c | 16 volatile char arr[64] = {}; in subprog_tail2() local 29 volatile char arr[64] = {}; in subprog_tail() local 39 volatile char arr[128] = {}; in bpf_func_0() local 47 volatile char arr[128] = {}; in bpf_func_1() local 55 volatile char arr[128] = {}; in entry() local
|
/kernel/linux/linux-5.10/fs/ubifs/ |
H A D | lprops.c | 63 val2 = get_heap_comp_val(heap->arr[ppos], cat); in move_up_lpt_heap() 67 heap->arr[ppos]->hpos = hpos; in move_up_lpt_heap() 68 heap->arr[hpos] = heap->arr[ppos]; in move_up_lpt_heap() 69 heap->arr[ppos] = lprops; in move_up_lpt_heap() 97 val2 = get_heap_comp_val(heap->arr[ppos], cat); in adjust_lpt_heap() 101 heap->arr[ppos]->hpos = hpos; in adjust_lpt_heap() 102 heap->arr[hpos] = heap->arr[ppos]; in adjust_lpt_heap() 103 heap->arr[ppo in adjust_lpt_heap() [all...] |
/kernel/linux/linux-6.6/fs/ubifs/ |
H A D | lprops.c | 63 val2 = get_heap_comp_val(heap->arr[ppos], cat); in move_up_lpt_heap() 67 heap->arr[ppos]->hpos = hpos; in move_up_lpt_heap() 68 heap->arr[hpos] = heap->arr[ppos]; in move_up_lpt_heap() 69 heap->arr[ppos] = lprops; in move_up_lpt_heap() 97 val2 = get_heap_comp_val(heap->arr[ppos], cat); in adjust_lpt_heap() 101 heap->arr[ppos]->hpos = hpos; in adjust_lpt_heap() 102 heap->arr[hpos] = heap->arr[ppos]; in adjust_lpt_heap() 103 heap->arr[ppo in adjust_lpt_heap() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/ |
H A D | i915_random.c | 45 void i915_prandom_shuffle(void *arr, size_t elsz, size_t count, in i915_prandom_shuffle() argument 64 memcpy(stack, arr + count * elsz, elsz); in i915_prandom_shuffle() 65 memcpy(arr + count * elsz, arr + swp * elsz, elsz); in i915_prandom_shuffle() 66 memcpy(arr + swp * elsz, stack, elsz); in i915_prandom_shuffle()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/selftests/ |
H A D | i915_random.c | 45 void i915_prandom_shuffle(void *arr, size_t elsz, size_t count, in i915_prandom_shuffle() argument 64 memcpy(stack, arr + count * elsz, elsz); in i915_prandom_shuffle() 65 memcpy(arr + count * elsz, arr + swp * elsz, elsz); in i915_prandom_shuffle() 66 memcpy(arr + swp * elsz, stack, elsz); in i915_prandom_shuffle()
|
/kernel/linux/linux-6.6/lib/ |
H A D | test_ubsan.c | 40 volatile int arr[4]; in test_ubsan_out_of_bounds() local 46 arr[j] = i; in test_ubsan_out_of_bounds() 49 arr[k] = i; in test_ubsan_out_of_bounds() 84 volatile char arr[5] __aligned(4) = {1, 2, 3, 4, 5}; in test_ubsan_misaligned_access() 88 ptr = (int *)(arr + 1); in test_ubsan_misaligned_access()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/ehea/ |
H A D | ehea_main.c | 142 struct ehea_fw_handle_entry *arr = NULL; in ehea_update_firmware_handles() local 172 arr = kcalloc(num_fw_handles, sizeof(*arr), GFP_KERNEL); in ehea_update_firmware_handles() 173 if (!arr) in ehea_update_firmware_handles() 192 arr[i].adh = adapter->handle; in ehea_update_firmware_handles() 193 arr[i++].fwh = pr->qp->fw_handle; in ehea_update_firmware_handles() 194 arr[i].adh = adapter->handle; in ehea_update_firmware_handles() 195 arr[i++].fwh = pr->send_cq->fw_handle; in ehea_update_firmware_handles() 196 arr[i].adh = adapter->handle; in ehea_update_firmware_handles() 197 arr[ in ehea_update_firmware_handles() 231 struct ehea_bcmc_reg_entry *arr = NULL; ehea_update_bcmc_registrations() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/ibm/ehea/ |
H A D | ehea_main.c | 146 struct ehea_fw_handle_entry *arr = NULL; in ehea_update_firmware_handles() local 176 arr = kcalloc(num_fw_handles, sizeof(*arr), GFP_KERNEL); in ehea_update_firmware_handles() 177 if (!arr) in ehea_update_firmware_handles() 196 arr[i].adh = adapter->handle; in ehea_update_firmware_handles() 197 arr[i++].fwh = pr->qp->fw_handle; in ehea_update_firmware_handles() 198 arr[i].adh = adapter->handle; in ehea_update_firmware_handles() 199 arr[i++].fwh = pr->send_cq->fw_handle; in ehea_update_firmware_handles() 200 arr[i].adh = adapter->handle; in ehea_update_firmware_handles() 201 arr[ in ehea_update_firmware_handles() 235 struct ehea_bcmc_reg_entry *arr = NULL; ehea_update_bcmc_registrations() local [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | params.c | 446 const struct kparam_array *arr = kp->arr; in param_array_set() local 449 return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, in param_array_set() 450 arr->elemsize, arr->ops->set, kp->level, in param_array_set() 451 arr->num ?: &temp_num); in param_array_set() 457 const struct kparam_array *arr = kp->arr; in param_array_get() local 460 for (i = off = 0; i < (arr in param_array_get() 478 const struct kparam_array *arr = arg; param_array_free() local [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | params.c | 465 const struct kparam_array *arr = kp->arr; in param_array_set() local 468 return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, in param_array_set() 469 arr->elemsize, arr->ops->set, kp->level, in param_array_set() 470 arr->num ?: &temp_num); in param_array_set() 476 const struct kparam_array *arr = kp->arr; in param_array_get() local 479 for (i = off = 0; i < (arr in param_array_get() 497 const struct kparam_array *arr = arg; param_array_free() local [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | test_ubsan.c | 56 volatile int arr[4]; in test_ubsan_out_of_bounds() local 58 arr[j] = i; in test_ubsan_out_of_bounds() 85 volatile char arr[5] __aligned(4) = {1, 2, 3, 4, 5}; in test_ubsan_misaligned_access() 88 ptr = (int *)(arr + 1); in test_ubsan_misaligned_access()
|