Home
last modified time | relevance | path

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

12

/drivers/staging/lustre/lustre/libcfs/
Dlibcfs_mem.c51 struct cfs_var_array *arr; in cfs_percpt_free() local
54 arr = container_of(vars, struct cfs_var_array, va_ptrs[0]); in cfs_percpt_free()
56 for (i = 0; i < arr->va_count; i++) { in cfs_percpt_free()
57 if (arr->va_ptrs[i] != NULL) in cfs_percpt_free()
58 LIBCFS_FREE(arr->va_ptrs[i], arr->va_size); in cfs_percpt_free()
61 LIBCFS_FREE(arr, offsetof(struct cfs_var_array, in cfs_percpt_free()
62 va_ptrs[arr->va_count])); in cfs_percpt_free()
80 struct cfs_var_array *arr; in cfs_percpt_alloc() local
86 LIBCFS_ALLOC(arr, offsetof(struct cfs_var_array, va_ptrs[count])); in cfs_percpt_alloc()
87 if (!arr) in cfs_percpt_alloc()
[all …]
/drivers/scsi/
Dscsi_debug.c905 static int fill_from_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fill_from_dev_buffer() argument
917 arr, arr_len); in fill_from_dev_buffer()
924 static int fetch_to_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fetch_to_dev_buffer() argument
932 return scsi_sg_copy_to_buffer(scp, arr, arr_len); in fetch_to_dev_buffer()
941 static int inquiry_evpd_83(unsigned char * arr, int port_group_id, in inquiry_evpd_83() argument
951 arr[0] = 0x2; /* ASCII */ in inquiry_evpd_83()
952 arr[1] = 0x1; in inquiry_evpd_83()
953 arr[2] = 0x0; in inquiry_evpd_83()
954 memcpy(&arr[4], inq_vendor_id, 8); in inquiry_evpd_83()
955 memcpy(&arr[12], inq_product_id, 16); in inquiry_evpd_83()
[all …]
Dconstants.c27 const struct value_name_pair *arr; member
263 const struct value_name_pair *arr = NULL; in scsi_opcode_sa_name() local
273 for (sa_name_ptr = sa_names_arr; sa_name_ptr->arr; ++sa_name_ptr) { in scsi_opcode_sa_name()
275 arr = sa_name_ptr->arr; in scsi_opcode_sa_name()
280 if (!arr) in scsi_opcode_sa_name()
283 for (k = 0; k < arr_sz; ++k, ++arr) { in scsi_opcode_sa_name()
284 if (service_action == arr->value) in scsi_opcode_sa_name()
288 *sa_name = arr->name; in scsi_opcode_sa_name()
1266 const struct value_name_pair *arr = scsi_mlreturn_arr; in scsi_mlreturn_string() local
1269 for (k = 0; k < ARRAY_SIZE(scsi_mlreturn_arr); ++k, ++arr) { in scsi_mlreturn_string()
[all …]
/drivers/fmc/
Dfmc-sdb.c33 struct sdb_array *arr, *sub; in __fmc_scan_sdb_tree() local
48 arr = kzalloc(sizeof(*arr), GFP_KERNEL); in __fmc_scan_sdb_tree()
49 if (!arr) in __fmc_scan_sdb_tree()
51 arr->record = kzalloc(sizeof(arr->record[0]) * n, GFP_KERNEL); in __fmc_scan_sdb_tree()
52 arr->subtree = kzalloc(sizeof(arr->subtree[0]) * n, GFP_KERNEL); in __fmc_scan_sdb_tree()
53 if (!arr->record || !arr->subtree) { in __fmc_scan_sdb_tree()
54 kfree(arr->record); in __fmc_scan_sdb_tree()
55 kfree(arr->subtree); in __fmc_scan_sdb_tree()
56 kfree(arr); in __fmc_scan_sdb_tree()
60 arr->len = n; in __fmc_scan_sdb_tree()
[all …]
/drivers/net/ethernet/ibm/ehea/
Dehea_main.c156 struct ehea_fw_handle_entry *arr = NULL; in ehea_update_firmware_handles() local
186 arr = kcalloc(num_fw_handles, sizeof(*arr), GFP_KERNEL); in ehea_update_firmware_handles()
187 if (!arr) in ehea_update_firmware_handles()
206 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
207 arr[i++].fwh = pr->qp->fw_handle; in ehea_update_firmware_handles()
208 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
209 arr[i++].fwh = pr->send_cq->fw_handle; in ehea_update_firmware_handles()
210 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
211 arr[i++].fwh = pr->recv_cq->fw_handle; in ehea_update_firmware_handles()
212 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
[all …]
Dehea.h346 struct sk_buff **arr; /* skb array for queue */ member
418 struct ehea_fw_handle_entry *arr; member
431 struct ehea_bcmc_reg_entry *arr; member
/drivers/staging/lustre/lustre/obdclass/
Dllog_swab.c205 struct llog_agent_req_rec *arr = in lustre_swab_llog_rec() local
208 __swab32s(&arr->arr_hai.hai_len); in lustre_swab_llog_rec()
209 __swab32s(&arr->arr_hai.hai_action); in lustre_swab_llog_rec()
210 lustre_swab_lu_fid(&arr->arr_hai.hai_fid); in lustre_swab_llog_rec()
211 lustre_swab_lu_fid(&arr->arr_hai.hai_dfid); in lustre_swab_llog_rec()
212 __swab64s(&arr->arr_hai.hai_cookie); in lustre_swab_llog_rec()
213 __swab64s(&arr->arr_hai.hai_extent.offset); in lustre_swab_llog_rec()
214 __swab64s(&arr->arr_hai.hai_extent.length); in lustre_swab_llog_rec()
215 __swab64s(&arr->arr_hai.hai_gid); in lustre_swab_llog_rec()
/drivers/video/fbdev/matrox/
Dg450_pll.c519 unsigned int* arr; in matroxfb_g450_setclk() local
521 arr = kmalloc(sizeof(*arr) * MNP_TABLE_SIZE * 2, GFP_KERNEL); in matroxfb_g450_setclk()
522 if (arr) { in matroxfb_g450_setclk()
525 r = __g450_setclk(minfo, fout, pll, arr, arr + MNP_TABLE_SIZE); in matroxfb_g450_setclk()
526 kfree(arr); in matroxfb_g450_setclk()
/drivers/staging/rdma/hfi1/
Dtrace.c186 u32 *arr, int len) in print_u32_array() argument
192 trace_seq_printf(p, "%s%#x", i == 0 ? "" : " ", arr[i]); in print_u32_array()
199 u64 *arr, int len) in print_u64_array() argument
205 trace_seq_printf(p, "%s0x%016llx", i == 0 ? "" : " ", arr[i]); in print_u64_array()
Duser_sdma.c133 #define AHG_HEADER_SET(arr, idx, dw, bit, width, value) \ argument
135 if ((idx) < ARRAY_SIZE((arr))) \
136 (arr)[(idx++)] = sdma_build_ahg_descriptor( \
Dtrace.h1187 #define __print_u32_hex(arr, len) print_u32_array(p, arr, len) argument
/drivers/net/wireless/mediatek/mt7601u/
Dinitvals_phy.h270 #define BBP_TABLE(arr) { arr, ARRAY_SIZE(arr), } argument
/drivers/dma/dw/
Dplatform.c112 u32 tmp, arr[DW_DMA_MAX_NR_MASTERS]; in dw_dma_parse_dt() local
145 if (!of_property_read_u32_array(np, "data_width", arr, in dw_dma_parse_dt()
148 pdata->data_width[tmp] = arr[tmp]; in dw_dma_parse_dt()
/drivers/staging/gdm72xx/
Dusb_boot.c67 static void array_le32_to_cpu(u32 *arr, int num) in array_le32_to_cpu() argument
71 for (i = 0; i < num; i++, arr++) in array_le32_to_cpu()
72 le32_to_cpus(arr); in array_le32_to_cpu()
/drivers/xen/xenbus/
Dxenbus_probe.c84 match_device(const struct xenbus_device_id *arr, struct xenbus_device *dev) in match_device() argument
86 for (; *arr->devicetype != '\0'; arr++) { in match_device()
87 if (!strcmp(arr->devicetype, dev->devicetype)) in match_device()
88 return arr; in match_device()
/drivers/video/fbdev/omap2/dss/
Dmanager-sysfs.c397 s16 *arr; in manager_cpr_coef_store() local
408 arr = (s16[]){ coefs.rr, coefs.rg, coefs.rb, in manager_cpr_coef_store()
413 if (arr[i] < -512 || arr[i] > 511) in manager_cpr_coef_store()
/drivers/xen/
Dprivcmd.c435 if (!access_ok(VERIFY_WRITE, m.arr, m.num * sizeof(*m.arr))) in privcmd_ioctl_mmap_batch()
453 ret = gather_array(&pagelist, m.num, sizeof(xen_pfn_t), m.arr); in privcmd_ioctl_mmap_batch()
530 state.user_gfn = (xen_pfn_t *)m.arr; in privcmd_ioctl_mmap_batch()
/drivers/crypto/
Dn2_core.c668 } arr[N2_CHUNK_ARR_LEN]; member
841 in_place = (cp->dest_paddr == cp->arr[0].src_paddr); in __n2_crypt_chunk()
843 ent->control = control_word_base(cp->arr[0].src_len, in __n2_crypt_chunk()
848 ent->src_addr = cp->arr[0].src_paddr; in __n2_crypt_chunk()
859 ent->control = cp->arr[i].src_len - 1; in __n2_crypt_chunk()
860 ent->src_addr = cp->arr[i].src_paddr; in __n2_crypt_chunk()
934 chunk->arr[chunk->arr_len].src_paddr = src_paddr; in n2_compute_chunks()
935 chunk->arr[chunk->arr_len].src_len = this_len; in n2_compute_chunks()
1065 iv_paddr = (tmp->arr[tmp->arr_len-1].src_paddr + in n2_do_chaining()
1066 tmp->arr[tmp->arr_len-1].src_len - in n2_do_chaining()
[all …]
/drivers/mmc/card/
Dmmc_test.c59 struct mmc_test_pages *arr; member
301 __free_pages(mem->arr[mem->cnt].page, in mmc_test_free_mem()
302 mem->arr[mem->cnt].order); in mmc_test_free_mem()
303 kfree(mem->arr); in mmc_test_free_mem()
340 mem->arr = kzalloc(sizeof(struct mmc_test_pages) * max_segs, in mmc_test_alloc_mem()
342 if (!mem->arr) in mmc_test_alloc_mem()
363 mem->arr[mem->cnt].page = page; in mmc_test_alloc_mem()
364 mem->arr[mem->cnt].order = order; in mmc_test_alloc_mem()
404 unsigned long len = PAGE_SIZE << mem->arr[i].order; in mmc_test_map_sg()
418 sg_set_page(sg, mem->arr[i].page, len, 0); in mmc_test_map_sg()
[all …]
/drivers/misc/vmw_vmci/
Dvmci_context.c1022 struct vmci_handle_arr *arr = context->doorbell_array; in vmci_ctx_dbell_destroy_all() local
1023 handle = vmci_handle_arr_remove_tail(arr); in vmci_ctx_dbell_destroy_all()
1026 struct vmci_handle_arr *arr = context->pending_doorbell_array; in vmci_ctx_dbell_destroy_all() local
1027 handle = vmci_handle_arr_remove_tail(arr); in vmci_ctx_dbell_destroy_all()
/drivers/scsi/aacraid/
Daachba.c2426 char *arr = (char *)&inq_data; in aac_scsi_cmd() local
2429 arr[0] = (scmd_id(scsicmd) == host->this_id) ? in aac_scsi_cmd()
2433 arr[3] = 3; in aac_scsi_cmd()
2434 arr[4] = 0x0; in aac_scsi_cmd()
2435 arr[5] = 0x80; in aac_scsi_cmd()
2436 arr[6] = 0x83; in aac_scsi_cmd()
2437 arr[1] = scsicmd->cmnd[2]; in aac_scsi_cmd()
2444 arr[3] = setinqserial(dev, &arr[4], in aac_scsi_cmd()
2446 arr[1] = scsicmd->cmnd[2]; in aac_scsi_cmd()
/drivers/net/bonding/
Dbond_main.c3864 new_arr = kzalloc(offsetof(struct bond_up_slave, arr[bond->slave_cnt]), in bond_update_slave_arr()
3901 new_arr->arr[new_arr->count++] = slave; in bond_update_slave_arr()
3922 if (skipslave == old_arr->arr[idx]) { in bond_update_slave_arr()
3923 old_arr->arr[idx] = in bond_update_slave_arr()
3924 old_arr->arr[old_arr->count-1]; in bond_update_slave_arr()
3947 slave = slaves->arr[bond_xmit_hash(bond, skb) % count]; in bond_3ad_xor_xmit()
4248 struct bond_up_slave *arr; in bond_uninit() local
4257 arr = rtnl_dereference(bond->slave_arr); in bond_uninit()
4258 if (arr) { in bond_uninit()
4260 kfree_rcu(arr, rcu); in bond_uninit()
/drivers/staging/android/
Dlowmemorykiller.c443 .arr = &__param_arr_adj,
/drivers/media/v4l2-core/
Dv4l2-ctrls.c572 #define __v4l2_qmenu_int_len(arr, len) ({ *(len) = ARRAY_SIZE(arr); arr; }) argument
Dv4l2-ioctl.c167 #define prt_names(a, arr) (((unsigned)(a)) < ARRAY_SIZE(arr) ? arr[a] : "unknown") argument

12