Home
last modified time | relevance | path

Searched refs:arr (Results 1 – 25 of 26) 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 == NULL) in cfs_percpt_alloc()
[all …]
/drivers/scsi/
Dscsi_debug.c550 static int fill_from_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fill_from_dev_buffer() argument
562 arr, arr_len); in fill_from_dev_buffer()
569 static int fetch_to_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fetch_to_dev_buffer() argument
577 return scsi_sg_copy_to_buffer(scp, arr, arr_len); in fetch_to_dev_buffer()
586 static int inquiry_evpd_83(unsigned char * arr, int port_group_id, in inquiry_evpd_83() argument
596 arr[0] = 0x2; /* ASCII */ in inquiry_evpd_83()
597 arr[1] = 0x1; in inquiry_evpd_83()
598 arr[2] = 0x0; in inquiry_evpd_83()
599 memcpy(&arr[4], inq_vendor_id, 8); in inquiry_evpd_83()
600 memcpy(&arr[12], inq_product_id, 16); in inquiry_evpd_83()
[all …]
Dconstants.c247 static const char * get_sa_name(const struct value_name_pair * arr, in get_sa_name() argument
252 for (k = 0; k < arr_sz; ++k, ++arr) { in get_sa_name()
253 if (service_action == arr->value) in get_sa_name()
256 return (k < arr_sz) ? arr->name : NULL; in get_sa_name()
/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/dma/dw/
Dplatform.c104 u32 tmp, arr[4]; in dw_dma_parse_dt() local
137 if (!of_property_read_u32_array(np, "data_width", arr, in dw_dma_parse_dt()
140 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.c388 if (!access_ok(VERIFY_WRITE, m.arr, m.num * sizeof(*m.arr))) in privcmd_ioctl_mmap_batch()
406 ret = gather_array(&pagelist, m.num, sizeof(xen_pfn_t), m.arr); in privcmd_ioctl_mmap_batch()
482 state.user_mfn = (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.c57 struct mmc_test_pages *arr; member
305 __free_pages(mem->arr[mem->cnt].page, in mmc_test_free_mem()
306 mem->arr[mem->cnt].order); in mmc_test_free_mem()
307 kfree(mem->arr); in mmc_test_free_mem()
344 mem->arr = kzalloc(sizeof(struct mmc_test_pages) * max_segs, in mmc_test_alloc_mem()
346 if (!mem->arr) in mmc_test_alloc_mem()
367 mem->arr[mem->cnt].page = page; in mmc_test_alloc_mem()
368 mem->arr[mem->cnt].order = order; in mmc_test_alloc_mem()
408 unsigned long len = PAGE_SIZE << mem->arr[i].order; in mmc_test_map_sg()
422 sg_set_page(sg, mem->arr[i].page, len, 0); in mmc_test_map_sg()
[all …]
/drivers/misc/vmw_vmci/
Dvmci_context.c1011 struct vmci_handle_arr *arr = context->doorbell_array; in vmci_ctx_dbell_destroy_all() local
1012 handle = vmci_handle_arr_remove_tail(arr); in vmci_ctx_dbell_destroy_all()
1015 struct vmci_handle_arr *arr = context->pending_doorbell_array; in vmci_ctx_dbell_destroy_all() local
1016 handle = vmci_handle_arr_remove_tail(arr); in vmci_ctx_dbell_destroy_all()
/drivers/scsi/aacraid/
Daachba.c2242 char *arr = (char *)&inq_data; in aac_scsi_cmd() local
2245 arr[0] = (scmd_id(scsicmd) == host->this_id) ? in aac_scsi_cmd()
2249 arr[3] = 2; in aac_scsi_cmd()
2250 arr[4] = 0x0; in aac_scsi_cmd()
2251 arr[5] = 0x80; in aac_scsi_cmd()
2252 arr[1] = scsicmd->cmnd[2]; in aac_scsi_cmd()
2259 arr[3] = setinqserial(dev, &arr[4], in aac_scsi_cmd()
2261 arr[1] = scsicmd->cmnd[2]; in aac_scsi_cmd()
/drivers/staging/android/
Dlowmemorykiller.c287 .arr = &__param_arr_adj, S_IRUGO | S_IWUSR);
/drivers/net/bonding/
Dbond_main.c3684 new_arr = kzalloc(offsetof(struct bond_up_slave, arr[bond->slave_cnt]), in bond_update_slave_arr()
3722 new_arr->arr[new_arr->count++] = slave; in bond_update_slave_arr()
3743 if (skipslave == old_arr->arr[idx]) { in bond_update_slave_arr()
3744 old_arr->arr[idx] = in bond_update_slave_arr()
3745 old_arr->arr[old_arr->count-1]; in bond_update_slave_arr()
3768 slave = slaves->arr[bond_xmit_hash(bond, skb) % count]; in bond_3ad_xor_xmit()
4048 struct bond_up_slave *arr; in bond_uninit() local
4057 arr = rtnl_dereference(bond->slave_arr); in bond_uninit()
4058 if (arr) { in bond_uninit()
4060 kfree_rcu(arr, rcu); in bond_uninit()
Dbonding.h185 struct slave *arr[0]; member
Dbond_alb.c1354 tx_slave = slaves->arr[hash_index % in bond_tlb_xmit()
/drivers/media/v4l2-core/
Dv4l2-ctrls.c572 #define __v4l2_qmenu_int_len(arr, len) ({ *(len) = ARRAY_SIZE(arr); arr; }) argument
Dv4l2-ioctl.c166 #define prt_names(a, arr) (((unsigned)(a)) < ARRAY_SIZE(arr) ? arr[a] : "unknown") argument
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c12928 #define BNX2X_ALLOC_AND_SET(arr, lbl, func) \ argument
12930 u32 len = be32_to_cpu(fw_hdr->arr.len); \
12931 bp->arr = kmalloc(len, GFP_KERNEL); \
12932 if (!bp->arr) \
12934 func(bp->firmware->data + be32_to_cpu(fw_hdr->arr.offset), \
12935 (u8 *)bp->arr, len); \
/drivers/tty/serial/8250/
D8250_core.c3787 &param_array_ops, .arr = &__param_arr_probe_rsa, in s8250_options()

12