arr 3338 arch/x86/events/intel/core.c struct perf_guest_switch_msr *arr = cpuc->guest_switch_msrs; arr 3340 arch/x86/events/intel/core.c arr[0].msr = MSR_CORE_PERF_GLOBAL_CTRL; arr 3341 arch/x86/events/intel/core.c arr[0].host = x86_pmu.intel_ctrl & ~cpuc->intel_ctrl_guest_mask; arr 3342 arch/x86/events/intel/core.c arr[0].guest = x86_pmu.intel_ctrl & ~cpuc->intel_ctrl_host_mask; arr 3344 arch/x86/events/intel/core.c arr[0].guest &= ~cpuc->pebs_enabled; arr 3346 arch/x86/events/intel/core.c arr[0].guest &= ~(cpuc->pebs_enabled & PEBS_COUNTER_MASK); arr 3358 arch/x86/events/intel/core.c arr[1].msr = MSR_IA32_PEBS_ENABLE; arr 3359 arch/x86/events/intel/core.c arr[1].host = cpuc->pebs_enabled; arr 3360 arch/x86/events/intel/core.c arr[1].guest = 0; arr 3364 arch/x86/events/intel/core.c return arr; arr 3370 arch/x86/events/intel/core.c struct perf_guest_switch_msr *arr = cpuc->guest_switch_msrs; arr 3376 arch/x86/events/intel/core.c arr[idx].msr = x86_pmu_config_addr(idx); arr 3377 arch/x86/events/intel/core.c arr[idx].host = arr[idx].guest = 0; arr 3382 arch/x86/events/intel/core.c arr[idx].host = arr[idx].guest = arr 3386 arch/x86/events/intel/core.c arr[idx].host &= ~ARCH_PERFMON_EVENTSEL_ENABLE; arr 3388 arch/x86/events/intel/core.c arr[idx].guest &= ~ARCH_PERFMON_EVENTSEL_ENABLE; arr 3392 arch/x86/events/intel/core.c return arr; arr 17 arch/x86/kernel/cpu/mtrr/cyrix.c unsigned char arr, ccr3, rcr, shift; arr 20 arch/x86/kernel/cpu/mtrr/cyrix.c arr = CX86_ARR_BASE + (reg << 1) + reg; /* avoid multiplication by 3 */ arr 26 arch/x86/kernel/cpu/mtrr/cyrix.c ((unsigned char *)base)[3] = getCx86(arr); arr 27 arch/x86/kernel/cpu/mtrr/cyrix.c ((unsigned char *)base)[2] = getCx86(arr + 1); arr 28 arch/x86/kernel/cpu/mtrr/cyrix.c ((unsigned char *)base)[1] = getCx86(arr + 2); arr 182 arch/x86/kernel/cpu/mtrr/cyrix.c unsigned char arr, arr_type, arr_size; arr 184 arch/x86/kernel/cpu/mtrr/cyrix.c arr = CX86_ARR_BASE + (reg << 1) + reg; /* avoid multiplication by 3 */ arr 229 arch/x86/kernel/cpu/mtrr/cyrix.c setCx86(arr + 0, ((unsigned char *)&base)[3]); arr 230 arch/x86/kernel/cpu/mtrr/cyrix.c setCx86(arr + 1, ((unsigned char *)&base)[2]); arr 231 arch/x86/kernel/cpu/mtrr/cyrix.c setCx86(arr + 2, (((unsigned char *)&base)[1]) | arr_size); arr 244 drivers/acpi/pci_mcfg.c struct mcfg_entry *e, *arr; arr 255 drivers/acpi/pci_mcfg.c arr = kcalloc(n, sizeof(*arr), GFP_KERNEL); arr 256 drivers/acpi/pci_mcfg.c if (!arr) arr 259 drivers/acpi/pci_mcfg.c for (i = 0, e = arr; i < n; i++, mptr++, e++) { arr 166 drivers/counter/stm32-timer-cnt.c u32 arr; arr 168 drivers/counter/stm32-timer-cnt.c regmap_read(priv->regmap, TIM_ARR, &arr); arr 170 drivers/counter/stm32-timer-cnt.c return snprintf(buf, PAGE_SIZE, "%u\n", arr); arr 682 drivers/crypto/n2_core.c } arr[N2_CHUNK_ARR_LEN]; arr 848 drivers/crypto/n2_core.c in_place = (cp->dest_paddr == cp->arr[0].src_paddr); arr 850 drivers/crypto/n2_core.c ent->control = control_word_base(cp->arr[0].src_len, arr 855 drivers/crypto/n2_core.c ent->src_addr = cp->arr[0].src_paddr; arr 866 drivers/crypto/n2_core.c ent->control = cp->arr[i].src_len - 1; arr 867 drivers/crypto/n2_core.c ent->src_addr = cp->arr[i].src_paddr; arr 941 drivers/crypto/n2_core.c chunk->arr[chunk->arr_len].src_paddr = src_paddr; arr 942 drivers/crypto/n2_core.c chunk->arr[chunk->arr_len].src_len = this_len; arr 1072 drivers/crypto/n2_core.c iv_paddr = (tmp->arr[tmp->arr_len-1].src_paddr + arr 1073 drivers/crypto/n2_core.c tmp->arr[tmp->arr_len-1].src_len - arr 1079 drivers/crypto/n2_core.c pa = (c->arr[c->arr_len-1].src_paddr + arr 1080 drivers/crypto/n2_core.c c->arr[c->arr_len-1].src_len - arr 50 drivers/dma/dw/of.c u32 tmp, arr[DW_DMA_MAX_NR_MASTERS], mb[DW_DMA_MAX_NR_CHANNELS]; arr 85 drivers/dma/dw/of.c if (!of_property_read_u32_array(np, "data-width", arr, nr_masters)) { arr 87 drivers/dma/dw/of.c pdata->data_width[tmp] = arr[tmp]; arr 88 drivers/dma/dw/of.c } else if (!of_property_read_u32_array(np, "data_width", arr, nr_masters)) { arr 90 drivers/dma/dw/of.c pdata->data_width[tmp] = BIT(arr[tmp] & 0x07); arr 229 drivers/gpu/drm/bridge/sil-sii8620.c #define sii8620_write(ctx, addr, arr...) \ arr 231 drivers/gpu/drm/bridge/sil-sii8620.c u8 d[] = { arr }; \ arr 771 drivers/gpu/drm/drm_atomic.c struct __drm_private_objs_state *arr; arr 784 drivers/gpu/drm/drm_atomic.c arr = krealloc(state->private_objs, size, GFP_KERNEL); arr 785 drivers/gpu/drm/drm_atomic.c if (!arr) arr 788 drivers/gpu/drm/drm_atomic.c state->private_objs = arr; arr 113 drivers/gpu/drm/i915/i915_utils.h __check_struct_size(size_t base, size_t arr, size_t count, size_t *size) arr 117 drivers/gpu/drm/i915/i915_utils.h if (check_mul_overflow(count, arr, &sz)) arr 44 drivers/gpu/drm/i915/selftests/i915_random.c void i915_prandom_shuffle(void *arr, size_t elsz, size_t count, arr 63 drivers/gpu/drm/i915/selftests/i915_random.c memcpy(stack, arr + count * elsz, elsz); arr 64 drivers/gpu/drm/i915/selftests/i915_random.c memcpy(arr + count * elsz, arr + swp * elsz, elsz); arr 65 drivers/gpu/drm/i915/selftests/i915_random.c memcpy(arr + swp * elsz, stack, elsz); arr 58 drivers/gpu/drm/i915/selftests/i915_random.h void i915_prandom_shuffle(void *arr, size_t elsz, size_t count, arr 4128 drivers/gpu/drm/omapdrm/dss/dispc.c #define COLOR_ARRAY(arr...) (const u32[]) { arr, 0 } arr 222 drivers/iio/trigger/stm32-timer-trigger.c u32 psc, arr, cr1; arr 227 drivers/iio/trigger/stm32-timer-trigger.c regmap_read(priv->regmap, TIM_ARR, &arr); arr 232 drivers/iio/trigger/stm32-timer-trigger.c do_div(freq, arr + 1); arr 624 drivers/iio/trigger/stm32-timer-trigger.c u32 arr; arr 626 drivers/iio/trigger/stm32-timer-trigger.c regmap_read(priv->regmap, TIM_ARR, &arr); arr 628 drivers/iio/trigger/stm32-timer-trigger.c return snprintf(buf, PAGE_SIZE, "%u\n", arr); arr 489 drivers/infiniband/hw/hfi1/trace.c u32 *arr, int len) arr 495 drivers/infiniband/hw/hfi1/trace.c trace_seq_printf(p, "%s%#x", i == 0 ? "" : " ", arr[i]); arr 657 drivers/infiniband/hw/hfi1/trace_tx.h #define __print_u32_hex(arr, len) print_u32_array(p, arr, len) arr 95 drivers/infiniband/hw/hfi1/user_sdma.h static inline int ahg_header_set(u32 *arr, int idx, size_t array_size, arr 100 drivers/infiniband/hw/hfi1/user_sdma.h arr[idx++] = sdma_build_ahg_descriptor(value, dw, bit, width); arr 1340 drivers/infiniband/hw/i40iw/i40iw_verbs.c static bool i40iw_check_mem_contiguous(u64 *arr, u32 npages, u32 pg_size) arr 1345 drivers/infiniband/hw/i40iw/i40iw_verbs.c if ((*arr + (pg_size * pg_idx)) != arr[pg_idx]) arr 1360 drivers/infiniband/hw/i40iw/i40iw_verbs.c u64 *arr = NULL; arr 1366 drivers/infiniband/hw/i40iw/i40iw_verbs.c arr = (u64 *)palloc->level1.addr; arr 1367 drivers/infiniband/hw/i40iw/i40iw_verbs.c ret = i40iw_check_mem_contiguous(arr, palloc->total_cnt, pg_size); arr 1374 drivers/infiniband/hw/i40iw/i40iw_verbs.c arr = (u64 *)leaf->addr; arr 1375 drivers/infiniband/hw/i40iw/i40iw_verbs.c if ((*start_addr + (i * pg_size * PBLE_PER_PAGE)) != *arr) arr 1377 drivers/infiniband/hw/i40iw/i40iw_verbs.c ret = i40iw_check_mem_contiguous(arr, leaf->cnt, pg_size); arr 1442 drivers/infiniband/hw/i40iw/i40iw_verbs.c u64 *arr = iwmr->pgaddrmem; arr 1462 drivers/infiniband/hw/i40iw/i40iw_verbs.c arr = (u64 *)palloc->level1.addr; arr 1466 drivers/infiniband/hw/i40iw/i40iw_verbs.c qpmr->shadow = (dma_addr_t)arr[total]; arr 1469 drivers/infiniband/hw/i40iw/i40iw_verbs.c ret = i40iw_check_mem_contiguous(arr, req->sq_pages, pg_size); arr 1471 drivers/infiniband/hw/i40iw/i40iw_verbs.c ret = i40iw_check_mem_contiguous(&arr[req->sq_pages], req->rq_pages, pg_size); arr 1479 drivers/infiniband/hw/i40iw/i40iw_verbs.c hmc_p->addr = arr[0]; arr 1481 drivers/infiniband/hw/i40iw/i40iw_verbs.c hmc_p->addr = arr[req->sq_pages]; arr 1485 drivers/infiniband/hw/i40iw/i40iw_verbs.c cqmr->shadow = (dma_addr_t)arr[total]; arr 1488 drivers/infiniband/hw/i40iw/i40iw_verbs.c ret = i40iw_check_mem_contiguous(arr, req->cq_pages, pg_size); arr 1493 drivers/infiniband/hw/i40iw/i40iw_verbs.c hmc_p->addr = arr[0]; arr 1913 drivers/media/pci/intel/ipu3/ipu3-cio2.c } arr[2] = { arr 1921 drivers/media/pci/intel/ipu3/ipu3-cio2.c while (CHUNK_SIZE(&arr[0]) && CHUNK_SIZE(&arr[1])) { arr 1928 drivers/media/pci/intel/ipu3/ipu3-cio2.c size0 = min(CHUNK_SIZE(&arr[0]), CHUNK_SIZE(&arr[1])); arr 1932 drivers/media/pci/intel/ipu3/ipu3-cio2.c u8 *d = ptr + elem_size * (arr[1].begin + i); arr 1933 drivers/media/pci/intel/ipu3/ipu3-cio2.c u8 *s = ptr + elem_size * (arr[0].begin + i); arr 1940 drivers/media/pci/intel/ipu3/ipu3-cio2.c if (CHUNK_SIZE(&arr[0]) > CHUNK_SIZE(&arr[1])) { arr 1942 drivers/media/pci/intel/ipu3/ipu3-cio2.c arr[0].begin += size0; arr 1948 drivers/media/pci/intel/ipu3/ipu3-cio2.c arr[0].begin = arr[1].begin; arr 1949 drivers/media/pci/intel/ipu3/ipu3-cio2.c arr[0].end = arr[1].begin + size0 - 1; arr 1950 drivers/media/pci/intel/ipu3/ipu3-cio2.c arr[1].begin += size0; arr 697 drivers/media/v4l2-core/v4l2-ctrls.c #define __v4l2_qmenu_int_len(arr, len) ({ *(len) = ARRAY_SIZE(arr); arr; }) arr 204 drivers/media/v4l2-core/v4l2-ioctl.c #define prt_names(a, arr) (((unsigned)(a)) < ARRAY_SIZE(arr) ? arr[a] : "unknown") arr 83 drivers/misc/habanalabs/habanalabs_ioctl.c void *arr; arr 88 drivers/misc/habanalabs/habanalabs_ioctl.c arr = hdev->asic_funcs->get_events_stat(hdev, aggregate, &size); arr 90 drivers/misc/habanalabs/habanalabs_ioctl.c return copy_to_user(out, arr, min(max_size, size)) ? -EFAULT : 0; arr 1015 drivers/misc/vmw_vmci/vmci_context.c struct vmci_handle_arr *arr = context->doorbell_array; arr 1016 drivers/misc/vmw_vmci/vmci_context.c handle = vmci_handle_arr_remove_tail(arr); arr 1019 drivers/misc/vmw_vmci/vmci_context.c struct vmci_handle_arr *arr = context->pending_doorbell_array; arr 1020 drivers/misc/vmw_vmci/vmci_context.c handle = vmci_handle_arr_remove_tail(arr); arr 59 drivers/mmc/core/mmc_test.c struct mmc_test_pages *arr; arr 321 drivers/mmc/core/mmc_test.c __free_pages(mem->arr[mem->cnt].page, arr 322 drivers/mmc/core/mmc_test.c mem->arr[mem->cnt].order); arr 323 drivers/mmc/core/mmc_test.c kfree(mem->arr); arr 360 drivers/mmc/core/mmc_test.c mem->arr = kcalloc(max_segs, sizeof(*mem->arr), GFP_KERNEL); arr 361 drivers/mmc/core/mmc_test.c if (!mem->arr) arr 382 drivers/mmc/core/mmc_test.c mem->arr[mem->cnt].page = page; arr 383 drivers/mmc/core/mmc_test.c mem->arr[mem->cnt].order = order; arr 423 drivers/mmc/core/mmc_test.c unsigned long len = PAGE_SIZE << mem->arr[i].order; arr 437 drivers/mmc/core/mmc_test.c sg_set_page(sg, mem->arr[i].page, len, 0); arr 474 drivers/mmc/core/mmc_test.c base = page_address(mem->arr[--i].page); arr 475 drivers/mmc/core/mmc_test.c cnt = 1 << mem->arr[i].order; arr 1366 drivers/net/bonding/bond_alb.c tx_slave = slaves->arr[hash_index % arr 1500 drivers/net/bonding/bond_alb.c tx_slave = slaves->arr[bond_xmit_hash(bond, skb) % arr 4020 drivers/net/bonding/bond_main.c new_arr = kzalloc(offsetof(struct bond_up_slave, arr[bond->slave_cnt]), arr 4061 drivers/net/bonding/bond_main.c new_arr->arr[new_arr->count++] = slave; arr 4082 drivers/net/bonding/bond_main.c if (skipslave == old_arr->arr[idx]) { arr 4083 drivers/net/bonding/bond_main.c old_arr->arr[idx] = arr 4084 drivers/net/bonding/bond_main.c old_arr->arr[old_arr->count-1]; arr 4108 drivers/net/bonding/bond_main.c slave = slaves->arr[bond_xmit_hash(bond, skb) % count]; arr 4388 drivers/net/bonding/bond_main.c struct bond_up_slave *arr; arr 4397 drivers/net/bonding/bond_main.c arr = rtnl_dereference(bond->slave_arr); arr 4398 drivers/net/bonding/bond_main.c if (arr) { arr 4400 drivers/net/bonding/bond_main.c kfree_rcu(arr, rcu); arr 13523 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c #define BNX2X_ALLOC_AND_SET(arr, lbl, func) \ arr 13525 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c u32 len = be32_to_cpu(fw_hdr->arr.len); \ arr 13526 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->arr = kmalloc(len, GFP_KERNEL); \ arr 13527 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c if (!bp->arr) \ arr 13529 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c func(bp->firmware->data + be32_to_cpu(fw_hdr->arr.offset), \ arr 13530 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c (u8 *)bp->arr, len); \ arr 449 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c #define ARRAY_LEN(arr) ((int)((int)sizeof(arr) / (int)sizeof(arr[0]))) arr 332 drivers/net/ethernet/ibm/ehea/ehea.h struct sk_buff **arr; /* skb array for queue */ arr 404 drivers/net/ethernet/ibm/ehea/ehea.h struct ehea_fw_handle_entry *arr; arr 417 drivers/net/ethernet/ibm/ehea/ehea.h struct ehea_bcmc_reg_entry *arr; arr 142 drivers/net/ethernet/ibm/ehea/ehea_main.c struct ehea_fw_handle_entry *arr = NULL; arr 172 drivers/net/ethernet/ibm/ehea/ehea_main.c arr = kcalloc(num_fw_handles, sizeof(*arr), GFP_KERNEL); arr 173 drivers/net/ethernet/ibm/ehea/ehea_main.c if (!arr) arr 192 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].adh = adapter->handle; arr 193 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i++].fwh = pr->qp->fw_handle; arr 194 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].adh = adapter->handle; arr 195 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i++].fwh = pr->send_cq->fw_handle; arr 196 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].adh = adapter->handle; arr 197 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i++].fwh = pr->recv_cq->fw_handle; arr 198 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].adh = adapter->handle; arr 199 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i++].fwh = pr->eq->fw_handle; arr 200 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].adh = adapter->handle; arr 201 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i++].fwh = pr->send_mr.handle; arr 202 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].adh = adapter->handle; arr 203 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i++].fwh = pr->recv_mr.handle; arr 205 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].adh = adapter->handle; arr 206 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i++].fwh = port->qp_eq->fw_handle; arr 210 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].adh = adapter->handle; arr 211 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i++].fwh = adapter->neq->fw_handle; arr 214 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].adh = adapter->handle; arr 215 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i++].fwh = adapter->mr.handle; arr 221 drivers/net/ethernet/ibm/ehea/ehea_main.c kfree(ehea_fw_handles.arr); arr 222 drivers/net/ethernet/ibm/ehea/ehea_main.c ehea_fw_handles.arr = arr; arr 231 drivers/net/ethernet/ibm/ehea/ehea_main.c struct ehea_bcmc_reg_entry *arr = NULL; arr 255 drivers/net/ethernet/ibm/ehea/ehea_main.c arr = kcalloc(num_registrations, sizeof(*arr), GFP_ATOMIC); arr 256 drivers/net/ethernet/ibm/ehea/ehea_main.c if (!arr) arr 271 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].adh = adapter->handle; arr 272 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].port_id = port->logical_port_id; arr 273 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].reg_type = EHEA_BCMC_BROADCAST | arr 275 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i++].macaddr = port->mac_addr; arr 277 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].adh = adapter->handle; arr 278 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].port_id = port->logical_port_id; arr 279 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].reg_type = EHEA_BCMC_BROADCAST | arr 281 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i++].macaddr = port->mac_addr; arr 289 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].adh = adapter->handle; arr 290 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].port_id = port->logical_port_id; arr 291 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].reg_type = EHEA_BCMC_MULTICAST | arr 294 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].reg_type |= EHEA_BCMC_SCOPE_ALL; arr 295 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i++].macaddr = mc_entry->macaddr; arr 297 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].adh = adapter->handle; arr 298 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].port_id = port->logical_port_id; arr 299 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].reg_type = EHEA_BCMC_MULTICAST | arr 302 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i].reg_type |= EHEA_BCMC_SCOPE_ALL; arr 303 drivers/net/ethernet/ibm/ehea/ehea_main.c arr[i++].macaddr = mc_entry->macaddr; arr 310 drivers/net/ethernet/ibm/ehea/ehea_main.c kfree(ehea_bcmc_regs.arr); arr 311 drivers/net/ethernet/ibm/ehea/ehea_main.c ehea_bcmc_regs.arr = arr; arr 381 drivers/net/ethernet/ibm/ehea/ehea_main.c struct sk_buff **skb_arr_rq1 = pr->rq1_skba.arr; arr 420 drivers/net/ethernet/ibm/ehea/ehea_main.c struct sk_buff **skb_arr_rq1 = pr->rq1_skba.arr; arr 444 drivers/net/ethernet/ibm/ehea/ehea_main.c struct sk_buff **skb_arr = q_skba->arr; arr 628 drivers/net/ethernet/ibm/ehea/ehea_main.c skb = get_skb_by_index(pr->rq2_skba.arr, pr->rq2_skba.len, cqe); arr 632 drivers/net/ethernet/ibm/ehea/ehea_main.c skb = get_skb_by_index(pr->rq3_skba.arr, pr->rq3_skba.len, cqe); arr 657 drivers/net/ethernet/ibm/ehea/ehea_main.c struct sk_buff **skb_arr_rq1 = pr->rq1_skba.arr; arr 658 drivers/net/ethernet/ibm/ehea/ehea_main.c struct sk_buff **skb_arr_rq2 = pr->rq2_skba.arr; arr 659 drivers/net/ethernet/ibm/ehea/ehea_main.c struct sk_buff **skb_arr_rq3 = pr->rq3_skba.arr; arr 843 drivers/net/ethernet/ibm/ehea/ehea_main.c skb = pr->sq_skba.arr[index]; arr 845 drivers/net/ethernet/ibm/ehea/ehea_main.c pr->sq_skba.arr[index] = NULL; arr 1425 drivers/net/ethernet/ibm/ehea/ehea_main.c q_skba->arr = vzalloc(arr_size); arr 1426 drivers/net/ethernet/ibm/ehea/ehea_main.c if (!q_skba->arr) arr 1553 drivers/net/ethernet/ibm/ehea/ehea_main.c vfree(pr->sq_skba.arr); arr 1554 drivers/net/ethernet/ibm/ehea/ehea_main.c vfree(pr->rq1_skba.arr); arr 1555 drivers/net/ethernet/ibm/ehea/ehea_main.c vfree(pr->rq2_skba.arr); arr 1556 drivers/net/ethernet/ibm/ehea/ehea_main.c vfree(pr->rq3_skba.arr); arr 1580 drivers/net/ethernet/ibm/ehea/ehea_main.c dev_kfree_skb(pr->rq1_skba.arr[i]); arr 1583 drivers/net/ethernet/ibm/ehea/ehea_main.c dev_kfree_skb(pr->rq2_skba.arr[i]); arr 1586 drivers/net/ethernet/ibm/ehea/ehea_main.c dev_kfree_skb(pr->rq3_skba.arr[i]); arr 1589 drivers/net/ethernet/ibm/ehea/ehea_main.c dev_kfree_skb(pr->sq_skba.arr[i]); arr 1591 drivers/net/ethernet/ibm/ehea/ehea_main.c vfree(pr->rq1_skba.arr); arr 1592 drivers/net/ethernet/ibm/ehea/ehea_main.c vfree(pr->rq2_skba.arr); arr 1593 drivers/net/ethernet/ibm/ehea/ehea_main.c vfree(pr->rq3_skba.arr); arr 1594 drivers/net/ethernet/ibm/ehea/ehea_main.c vfree(pr->sq_skba.arr); arr 2054 drivers/net/ethernet/ibm/ehea/ehea_main.c pr->sq_skba.arr[pr->sq_skba.index] = skb; arr 2579 drivers/net/ethernet/ibm/ehea/ehea_main.c struct sk_buff **skba_rq2 = pr->rq2_skba.arr; arr 2580 drivers/net/ethernet/ibm/ehea/ehea_main.c struct sk_buff **skba_rq3 = pr->rq3_skba.arr; arr 3288 drivers/net/ethernet/ibm/ehea/ehea_main.c if (ehea_fw_handles.arr) arr 3290 drivers/net/ethernet/ibm/ehea/ehea_main.c ehea_h_free_resource(ehea_fw_handles.arr[i].adh, arr 3291 drivers/net/ethernet/ibm/ehea/ehea_main.c ehea_fw_handles.arr[i].fwh, arr 3294 drivers/net/ethernet/ibm/ehea/ehea_main.c if (ehea_bcmc_regs.arr) arr 3296 drivers/net/ethernet/ibm/ehea/ehea_main.c ehea_h_reg_dereg_bcmc(ehea_bcmc_regs.arr[i].adh, arr 3297 drivers/net/ethernet/ibm/ehea/ehea_main.c ehea_bcmc_regs.arr[i].port_id, arr 3298 drivers/net/ethernet/ibm/ehea/ehea_main.c ehea_bcmc_regs.arr[i].reg_type, arr 3299 drivers/net/ethernet/ibm/ehea/ehea_main.c ehea_bcmc_regs.arr[i].macaddr, arr 3572 drivers/net/ethernet/ibm/ehea/ehea_main.c kfree(ehea_fw_handles.arr); arr 3573 drivers/net/ethernet/ibm/ehea/ehea_main.c kfree(ehea_bcmc_regs.arr); arr 623 drivers/net/ethernet/mellanox/mlx5/core/en.h struct mlx5e_rq_frag_info arr[MLX5E_MAX_RX_FRAGS]; arr 82 drivers/net/ethernet/mellanox/mlx5/core/en/port.c const u32 **arr, u32 *size, arr 89 drivers/net/ethernet/mellanox/mlx5/core/en/port.c *arr = ext ? mlx5e_ext_link_speed : mlx5e_link_speed; arr 200 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c struct ptys2ethtool_config **arr, arr 205 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c *arr = ext ? ptys2ext_ethtool_table : ptys2legacy_ethtool_table; arr 322 drivers/net/ethernet/mellanox/mlx5/core/en_main.c struct mlx5e_rq_frag_info *frag_info = &rq->wqe.info.arr[0]; arr 589 drivers/net/ethernet/mellanox/mlx5/core/en_main.c u32 frag_size = rq->wqe.info.arr[f].frag_size | arr 2093 drivers/net/ethernet/mellanox/mlx5/core/en_main.c info->arr[0].frag_size = byte_count; arr 2094 drivers/net/ethernet/mellanox/mlx5/core/en_main.c info->arr[0].frag_stride = frag_stride; arr 2111 drivers/net/ethernet/mellanox/mlx5/core/en_main.c info->arr[i].frag_size = frag_size; arr 2112 drivers/net/ethernet/mellanox/mlx5/core/en_main.c info->arr[i].frag_stride = roundup_pow_of_two(frag_size); arr 1097 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c struct mlx5e_rq_frag_info *frag_info = &rq->wqe.info.arr[0]; arr 130 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c nffw_res_fwinfos(struct nfp_nffw_info_data *fwinf, struct nffw_fwinfo **arr) arr 142 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c *arr = &fwinf->info.v1.fwinfo[0]; arr 145 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c *arr = &fwinf->info.v2.fwinfo[0]; arr 148 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c *arr = NULL; arr 185 drivers/net/ethernet/qlogic/qed/qed_dcbx.c qed_dcbx_app_update[i].name, p_data->arr[id].update, arr 186 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_data->arr[id].enable, p_data->arr[id].priority, arr 187 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_data->arr[id].tc, p_hwfn->hw_info.num_active_tc); arr 199 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_data->arr[type].enable = enable; arr 200 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_data->arr[type].priority = prio; arr 201 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_data->arr[type].tc = tc; arr 203 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_data->arr[type].update = UPDATE_DCB; arr 205 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_data->arr[type].update = DONT_UPDATE_DCB_DSCP; arr 208 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_data->arr[type].dont_add_vlan0 = true; arr 327 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_data->arr[DCBX_PROTOCOL_ETH].tc = p_hwfn->ufp_info.tc; arr 335 drivers/net/ethernet/qlogic/qed/qed_dcbx.c tc = p_data->arr[DCBX_PROTOCOL_ETH].tc; arr 336 drivers/net/ethernet/qlogic/qed/qed_dcbx.c priority = p_data->arr[DCBX_PROTOCOL_ETH].priority; arr 338 drivers/net/ethernet/qlogic/qed/qed_dcbx.c if (p_data->arr[type].update) arr 452 drivers/net/ethernet/qlogic/qed/qed_dcbx.c if (p_results->arr[DCBX_PROTOCOL_ROCE].update && arr 453 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_results->arr[DCBX_PROTOCOL_ROCE].enable) arr 454 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_prio->roce = p_results->arr[DCBX_PROTOCOL_ROCE].priority; arr 456 drivers/net/ethernet/qlogic/qed/qed_dcbx.c if (p_results->arr[DCBX_PROTOCOL_ROCE_V2].update && arr 457 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_results->arr[DCBX_PROTOCOL_ROCE_V2].enable) { arr 458 drivers/net/ethernet/qlogic/qed/qed_dcbx.c val = p_results->arr[DCBX_PROTOCOL_ROCE_V2].priority; arr 462 drivers/net/ethernet/qlogic/qed/qed_dcbx.c if (p_results->arr[DCBX_PROTOCOL_ISCSI].update && arr 463 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_results->arr[DCBX_PROTOCOL_ISCSI].enable) arr 464 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_prio->iscsi = p_results->arr[DCBX_PROTOCOL_ISCSI].priority; arr 466 drivers/net/ethernet/qlogic/qed/qed_dcbx.c if (p_results->arr[DCBX_PROTOCOL_FCOE].update && arr 467 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_results->arr[DCBX_PROTOCOL_FCOE].enable) arr 468 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_prio->fcoe = p_results->arr[DCBX_PROTOCOL_FCOE].priority; arr 470 drivers/net/ethernet/qlogic/qed/qed_dcbx.c if (p_results->arr[DCBX_PROTOCOL_ETH].update && arr 471 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_results->arr[DCBX_PROTOCOL_ETH].enable) arr 472 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_prio->eth = p_results->arr[DCBX_PROTOCOL_ETH].priority; arr 932 drivers/net/ethernet/qlogic/qed/qed_dcbx.c val = (0x1 << p_data->arr[DCBX_PROTOCOL_ROCE].tc) | arr 933 drivers/net/ethernet/qlogic/qed/qed_dcbx.c (0x1 << p_data->arr[DCBX_PROTOCOL_ROCE_V2].tc); arr 963 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_data->dcb_enable_flag = p_src->arr[type].enable; arr 964 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_data->dcb_priority = p_src->arr[type].priority; arr 965 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_data->dcb_tc = p_src->arr[type].tc; arr 966 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_data->dcb_dont_add_vlan0 = p_src->arr[type].dont_add_vlan0; arr 976 drivers/net/ethernet/qlogic/qed/qed_dcbx.c update_flag = p_src->arr[DCBX_PROTOCOL_FCOE].update; arr 979 drivers/net/ethernet/qlogic/qed/qed_dcbx.c update_flag = p_src->arr[DCBX_PROTOCOL_ROCE].update; arr 982 drivers/net/ethernet/qlogic/qed/qed_dcbx.c update_flag = p_src->arr[DCBX_PROTOCOL_ROCE_V2].update; arr 985 drivers/net/ethernet/qlogic/qed/qed_dcbx.c update_flag = p_src->arr[DCBX_PROTOCOL_ISCSI].update; arr 987 drivers/net/ethernet/qlogic/qed/qed_dcbx.c update_flag = p_src->arr[DCBX_PROTOCOL_ETH].update; arr 80 drivers/net/ethernet/qlogic/qed/qed_dcbx.h struct qed_dcbx_app_data arr[DCBX_MAX_PROTOCOL_TYPE]; arr 345 drivers/net/ethernet/qlogic/qed/qed_debug.c #define ARR_REG_WR(dev, ptt, addr, arr, arr_size) \ arr 348 drivers/net/ethernet/qlogic/qed/qed_debug.c qed_wr(dev, ptt, addr, (arr)[i]); \ arr 351 drivers/net/ethernet/qlogic/qed/qed_debug.c #define ARR_REG_RD(dev, ptt, addr, arr, arr_size) \ arr 354 drivers/net/ethernet/qlogic/qed/qed_debug.c (arr)[i] = qed_rd(dev, ptt, addr); \ arr 9391 drivers/net/ethernet/sun/niu.c u8 *arr; arr 9394 drivers/net/ethernet/sun/niu.c arr = (rx ? p->rxchan_per_port : p->txchan_per_port); arr 9399 drivers/net/ethernet/sun/niu.c arr[i]); arr 169 drivers/net/wireless/intel/iwlwifi/iwl-trans.c const struct iwl_hcmd_arr *arr; arr 176 drivers/net/wireless/intel/iwlwifi/iwl-trans.c !trans->command_groups[grp].arr) arr 179 drivers/net/wireless/intel/iwlwifi/iwl-trans.c arr = &trans->command_groups[grp]; arr 180 drivers/net/wireless/intel/iwlwifi/iwl-trans.c ret = bsearch(&cmd, arr->arr, arr->size, size, iwl_hcmd_names_cmp); arr 190 drivers/net/wireless/intel/iwlwifi/iwl-trans.c const struct iwl_hcmd_arr *arr; arr 193 drivers/net/wireless/intel/iwlwifi/iwl-trans.c arr = &trans->command_groups[i]; arr 194 drivers/net/wireless/intel/iwlwifi/iwl-trans.c if (!arr->arr) arr 196 drivers/net/wireless/intel/iwlwifi/iwl-trans.c for (j = 0; j < arr->size - 1; j++) arr 197 drivers/net/wireless/intel/iwlwifi/iwl-trans.c if (arr->arr[j].cmd_id > arr->arr[j + 1].cmd_id) arr 382 drivers/net/wireless/intel/iwlwifi/iwl-trans.h const struct iwl_hcmd_names *arr; arr 387 drivers/net/wireless/intel/iwlwifi/iwl-trans.h { .arr = x, .size = ARRAY_SIZE(x) } arr 262 drivers/net/wireless/mediatek/mt7601u/initvals_phy.h #define BBP_TABLE(arr) { arr, ARRAY_SIZE(arr), } arr 156 drivers/net/wireless/quantenna/qtnfmac/qlink_util.c bool qtnf_utils_is_bit_set(const u8 *arr, unsigned int bit, arr 165 drivers/net/wireless/quantenna/qtnfmac/qlink_util.c return arr[idx] & mask; arr 20 drivers/net/wireless/quantenna/qtnfmac/qlink_util.h u16 tlv_id, const u8 arr[], arr 27 drivers/net/wireless/quantenna/qtnfmac/qlink_util.h memcpy(hdr->val, arr, arr_len); arr 78 drivers/net/wireless/quantenna/qtnfmac/qlink_util.h bool qtnf_utils_is_bit_set(const u8 *arr, unsigned int bit, arr 348 drivers/pwm/pwm-stm32.c u32 psc, arr; arr 351 drivers/pwm/pwm-stm32.c regmap_read(priv->regmap, TIM_ARR, &arr); arr 353 drivers/pwm/pwm-stm32.c if ((psc != prescaler) || (arr != prd - 1)) arr 2965 drivers/scsi/aacraid/aachba.c char *arr = (char *)&inq_data; arr 2968 drivers/scsi/aacraid/aachba.c arr[0] = (scmd_id(scsicmd) == host->this_id) ? arr 2972 drivers/scsi/aacraid/aachba.c arr[3] = 3; arr 2973 drivers/scsi/aacraid/aachba.c arr[4] = 0x0; arr 2974 drivers/scsi/aacraid/aachba.c arr[5] = 0x80; arr 2975 drivers/scsi/aacraid/aachba.c arr[6] = 0x83; arr 2976 drivers/scsi/aacraid/aachba.c arr[1] = scsicmd->cmnd[2]; arr 2984 drivers/scsi/aacraid/aachba.c arr[3] = setinqserial(dev, &arr[4], arr 2986 drivers/scsi/aacraid/aachba.c arr[1] = scsicmd->cmnd[2]; arr 28 drivers/scsi/constants.c const struct value_name_pair *arr; arr 264 drivers/scsi/constants.c const struct value_name_pair *arr = NULL; arr 274 drivers/scsi/constants.c for (sa_name_ptr = sa_names_arr; sa_name_ptr->arr; ++sa_name_ptr) { arr 276 drivers/scsi/constants.c arr = sa_name_ptr->arr; arr 281 drivers/scsi/constants.c if (!arr) arr 284 drivers/scsi/constants.c for (k = 0; k < arr_sz; ++k, ++arr) { arr 285 drivers/scsi/constants.c if (service_action == arr->value) arr 289 drivers/scsi/constants.c *sa_name = arr->name; arr 450 drivers/scsi/constants.c const struct value_name_pair *arr = scsi_mlreturn_arr; arr 453 drivers/scsi/constants.c for (k = 0; k < ARRAY_SIZE(scsi_mlreturn_arr); ++k, ++arr) { arr 454 drivers/scsi/constants.c if (result == arr->value) arr 455 drivers/scsi/constants.c return arr->name; arr 1002 drivers/scsi/scsi_debug.c static int fill_from_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, arr 1014 drivers/scsi/scsi_debug.c arr, arr_len); arr 1025 drivers/scsi/scsi_debug.c static int p_fill_from_dev_buffer(struct scsi_cmnd *scp, const void *arr, arr 1038 drivers/scsi/scsi_debug.c arr, arr_len, skip); arr 1050 drivers/scsi/scsi_debug.c static int fetch_to_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, arr 1058 drivers/scsi/scsi_debug.c return scsi_sg_copy_to_buffer(scp, arr, arr_len); arr 1071 drivers/scsi/scsi_debug.c static int inquiry_vpd_83(unsigned char *arr, int port_group_id, arr 1081 drivers/scsi/scsi_debug.c arr[0] = 0x2; /* ASCII */ arr 1082 drivers/scsi/scsi_debug.c arr[1] = 0x1; arr 1083 drivers/scsi/scsi_debug.c arr[2] = 0x0; arr 1084 drivers/scsi/scsi_debug.c memcpy(&arr[4], sdebug_inq_vendor_id, 8); arr 1085 drivers/scsi/scsi_debug.c memcpy(&arr[12], sdebug_inq_product_id, 16); arr 1086 drivers/scsi/scsi_debug.c memcpy(&arr[28], dev_id_str, dev_id_str_len); arr 1088 drivers/scsi/scsi_debug.c arr[3] = num; arr 1093 drivers/scsi/scsi_debug.c arr[num++] = 0x1; /* binary (not necessarily sas) */ arr 1094 drivers/scsi/scsi_debug.c arr[num++] = 0xa; /* PIV=0, lu, naa */ arr 1095 drivers/scsi/scsi_debug.c arr[num++] = 0x0; arr 1096 drivers/scsi/scsi_debug.c arr[num++] = 0x12; arr 1097 drivers/scsi/scsi_debug.c arr[num++] = 0x10; /* uuid type=1, locally assigned */ arr 1098 drivers/scsi/scsi_debug.c arr[num++] = 0x0; arr 1099 drivers/scsi/scsi_debug.c memcpy(arr + num, lu_name, 16); arr 1103 drivers/scsi/scsi_debug.c arr[num++] = 0x1; /* binary (not necessarily sas) */ arr 1104 drivers/scsi/scsi_debug.c arr[num++] = 0x3; /* PIV=0, lu, naa */ arr 1105 drivers/scsi/scsi_debug.c arr[num++] = 0x0; arr 1106 drivers/scsi/scsi_debug.c arr[num++] = 0x8; arr 1107 drivers/scsi/scsi_debug.c put_unaligned_be64(naa3_comp_b + dev_id_num, arr + num); arr 1111 drivers/scsi/scsi_debug.c arr[num++] = 0x61; /* proto=sas, binary */ arr 1112 drivers/scsi/scsi_debug.c arr[num++] = 0x94; /* PIV=1, target port, rel port */ arr 1113 drivers/scsi/scsi_debug.c arr[num++] = 0x0; /* reserved */ arr 1114 drivers/scsi/scsi_debug.c arr[num++] = 0x4; /* length */ arr 1115 drivers/scsi/scsi_debug.c arr[num++] = 0x0; /* reserved */ arr 1116 drivers/scsi/scsi_debug.c arr[num++] = 0x0; /* reserved */ arr 1117 drivers/scsi/scsi_debug.c arr[num++] = 0x0; arr 1118 drivers/scsi/scsi_debug.c arr[num++] = 0x1; /* relative port A */ arr 1121 drivers/scsi/scsi_debug.c arr[num++] = 0x61; /* proto=sas, binary */ arr 1122 drivers/scsi/scsi_debug.c arr[num++] = 0x93; /* piv=1, target port, naa */ arr 1123 drivers/scsi/scsi_debug.c arr[num++] = 0x0; arr 1124 drivers/scsi/scsi_debug.c arr[num++] = 0x8; arr 1125 drivers/scsi/scsi_debug.c put_unaligned_be64(naa3_comp_a + port_a, arr + num); arr 1128 drivers/scsi/scsi_debug.c arr[num++] = 0x61; /* proto=sas, binary */ arr 1129 drivers/scsi/scsi_debug.c arr[num++] = 0x95; /* piv=1, target port group id */ arr 1130 drivers/scsi/scsi_debug.c arr[num++] = 0x0; arr 1131 drivers/scsi/scsi_debug.c arr[num++] = 0x4; arr 1132 drivers/scsi/scsi_debug.c arr[num++] = 0; arr 1133 drivers/scsi/scsi_debug.c arr[num++] = 0; arr 1134 drivers/scsi/scsi_debug.c put_unaligned_be16(port_group_id, arr + num); arr 1137 drivers/scsi/scsi_debug.c arr[num++] = 0x61; /* proto=sas, binary */ arr 1138 drivers/scsi/scsi_debug.c arr[num++] = 0xa3; /* piv=1, target device, naa */ arr 1139 drivers/scsi/scsi_debug.c arr[num++] = 0x0; arr 1140 drivers/scsi/scsi_debug.c arr[num++] = 0x8; arr 1141 drivers/scsi/scsi_debug.c put_unaligned_be64(naa3_comp_a + target_dev_id, arr + num); arr 1144 drivers/scsi/scsi_debug.c arr[num++] = 0x63; /* proto=sas, UTF-8 */ arr 1145 drivers/scsi/scsi_debug.c arr[num++] = 0xa8; /* piv=1, target device, SCSI name string */ arr 1146 drivers/scsi/scsi_debug.c arr[num++] = 0x0; arr 1147 drivers/scsi/scsi_debug.c arr[num++] = 24; arr 1148 drivers/scsi/scsi_debug.c memcpy(arr + num, "naa.32222220", 12); arr 1151 drivers/scsi/scsi_debug.c memcpy(arr + num, b, 8); arr 1153 drivers/scsi/scsi_debug.c memset(arr + num, 0, 4); arr 1165 drivers/scsi/scsi_debug.c static int inquiry_vpd_84(unsigned char *arr) arr 1167 drivers/scsi/scsi_debug.c memcpy(arr, vpd84_data, sizeof(vpd84_data)); arr 1172 drivers/scsi/scsi_debug.c static int inquiry_vpd_85(unsigned char *arr) arr 1179 drivers/scsi/scsi_debug.c arr[num++] = 0x1; /* lu, storage config */ arr 1180 drivers/scsi/scsi_debug.c arr[num++] = 0x0; /* reserved */ arr 1181 drivers/scsi/scsi_debug.c arr[num++] = 0x0; arr 1186 drivers/scsi/scsi_debug.c arr[num++] = plen; /* length, null termianted, padded */ arr 1187 drivers/scsi/scsi_debug.c memcpy(arr + num, na1, olen); arr 1188 drivers/scsi/scsi_debug.c memset(arr + num + olen, 0, plen - olen); arr 1191 drivers/scsi/scsi_debug.c arr[num++] = 0x4; /* lu, logging */ arr 1192 drivers/scsi/scsi_debug.c arr[num++] = 0x0; /* reserved */ arr 1193 drivers/scsi/scsi_debug.c arr[num++] = 0x0; arr 1198 drivers/scsi/scsi_debug.c arr[num++] = plen; /* length, null terminated, padded */ arr 1199 drivers/scsi/scsi_debug.c memcpy(arr + num, na2, olen); arr 1200 drivers/scsi/scsi_debug.c memset(arr + num + olen, 0, plen - olen); arr 1207 drivers/scsi/scsi_debug.c static int inquiry_vpd_88(unsigned char *arr, int target_dev_id) arr 1214 drivers/scsi/scsi_debug.c arr[num++] = 0x0; /* reserved */ arr 1215 drivers/scsi/scsi_debug.c arr[num++] = 0x0; /* reserved */ arr 1216 drivers/scsi/scsi_debug.c arr[num++] = 0x0; arr 1217 drivers/scsi/scsi_debug.c arr[num++] = 0x1; /* relative port 1 (primary) */ arr 1218 drivers/scsi/scsi_debug.c memset(arr + num, 0, 6); arr 1220 drivers/scsi/scsi_debug.c arr[num++] = 0x0; arr 1221 drivers/scsi/scsi_debug.c arr[num++] = 12; /* length tp descriptor */ arr 1223 drivers/scsi/scsi_debug.c arr[num++] = 0x61; /* proto=sas, binary */ arr 1224 drivers/scsi/scsi_debug.c arr[num++] = 0x93; /* PIV=1, target port, NAA */ arr 1225 drivers/scsi/scsi_debug.c arr[num++] = 0x0; /* reserved */ arr 1226 drivers/scsi/scsi_debug.c arr[num++] = 0x8; /* length */ arr 1227 drivers/scsi/scsi_debug.c put_unaligned_be64(naa3_comp_a + port_a, arr + num); arr 1229 drivers/scsi/scsi_debug.c arr[num++] = 0x0; /* reserved */ arr 1230 drivers/scsi/scsi_debug.c arr[num++] = 0x0; /* reserved */ arr 1231 drivers/scsi/scsi_debug.c arr[num++] = 0x0; arr 1232 drivers/scsi/scsi_debug.c arr[num++] = 0x2; /* relative port 2 (secondary) */ arr 1233 drivers/scsi/scsi_debug.c memset(arr + num, 0, 6); arr 1235 drivers/scsi/scsi_debug.c arr[num++] = 0x0; arr 1236 drivers/scsi/scsi_debug.c arr[num++] = 12; /* length tp descriptor */ arr 1238 drivers/scsi/scsi_debug.c arr[num++] = 0x61; /* proto=sas, binary */ arr 1239 drivers/scsi/scsi_debug.c arr[num++] = 0x93; /* PIV=1, target port, NAA */ arr 1240 drivers/scsi/scsi_debug.c arr[num++] = 0x0; /* reserved */ arr 1241 drivers/scsi/scsi_debug.c arr[num++] = 0x8; /* length */ arr 1242 drivers/scsi/scsi_debug.c put_unaligned_be64(naa3_comp_a + port_b, arr + num); arr 1294 drivers/scsi/scsi_debug.c static int inquiry_vpd_89(unsigned char *arr) arr 1296 drivers/scsi/scsi_debug.c memcpy(arr, vpd89_data, sizeof(vpd89_data)); arr 1309 drivers/scsi/scsi_debug.c static int inquiry_vpd_b0(unsigned char *arr) arr 1313 drivers/scsi/scsi_debug.c memcpy(arr, vpdb0_data, sizeof(vpdb0_data)); arr 1321 drivers/scsi/scsi_debug.c put_unaligned_be16(gran, arr + 2); arr 1325 drivers/scsi/scsi_debug.c put_unaligned_be32(sdebug_store_sectors, arr + 4); arr 1328 drivers/scsi/scsi_debug.c put_unaligned_be32(sdebug_opt_blks, &arr[8]); arr 1332 drivers/scsi/scsi_debug.c put_unaligned_be32(sdebug_unmap_max_blocks, &arr[16]); arr 1335 drivers/scsi/scsi_debug.c put_unaligned_be32(sdebug_unmap_max_desc, &arr[20]); arr 1340 drivers/scsi/scsi_debug.c put_unaligned_be32(sdebug_unmap_alignment, &arr[28]); arr 1341 drivers/scsi/scsi_debug.c arr[28] |= 0x80; /* UGAVALID */ arr 1345 drivers/scsi/scsi_debug.c put_unaligned_be32(sdebug_unmap_granularity, &arr[24]); arr 1348 drivers/scsi/scsi_debug.c put_unaligned_be64(sdebug_write_same_length, &arr[32]); arr 1356 drivers/scsi/scsi_debug.c static int inquiry_vpd_b1(unsigned char *arr) arr 1358 drivers/scsi/scsi_debug.c memset(arr, 0, 0x3c); arr 1359 drivers/scsi/scsi_debug.c arr[0] = 0; arr 1360 drivers/scsi/scsi_debug.c arr[1] = 1; /* non rotating medium (e.g. solid state) */ arr 1361 drivers/scsi/scsi_debug.c arr[2] = 0; arr 1362 drivers/scsi/scsi_debug.c arr[3] = 5; /* less than 1.8" */ arr 1368 drivers/scsi/scsi_debug.c static int inquiry_vpd_b2(unsigned char *arr) arr 1370 drivers/scsi/scsi_debug.c memset(arr, 0, 0x4); arr 1371 drivers/scsi/scsi_debug.c arr[0] = 0; /* threshold exponent */ arr 1373 drivers/scsi/scsi_debug.c arr[1] = 1 << 7; arr 1375 drivers/scsi/scsi_debug.c arr[1] |= 1 << 6; arr 1377 drivers/scsi/scsi_debug.c arr[1] |= 1 << 5; arr 1379 drivers/scsi/scsi_debug.c arr[1] |= (sdebug_lbprz & 0x7) << 2; /* sbc4r07 and later */ arr 1392 drivers/scsi/scsi_debug.c unsigned char *arr; arr 1398 drivers/scsi/scsi_debug.c arr = kzalloc(SDEBUG_MAX_INQ_ARR_SZ, GFP_ATOMIC); arr 1399 drivers/scsi/scsi_debug.c if (! arr) arr 1409 drivers/scsi/scsi_debug.c arr[0] = pq_pdt; arr 1412 drivers/scsi/scsi_debug.c kfree(arr); arr 1429 drivers/scsi/scsi_debug.c arr[1] = cmd[2]; /*sanity */ arr 1431 drivers/scsi/scsi_debug.c arr[n++] = 0x0; /* this page */ arr 1432 drivers/scsi/scsi_debug.c arr[n++] = 0x80; /* unit serial number */ arr 1433 drivers/scsi/scsi_debug.c arr[n++] = 0x83; /* device identification */ arr 1434 drivers/scsi/scsi_debug.c arr[n++] = 0x84; /* software interface ident. */ arr 1435 drivers/scsi/scsi_debug.c arr[n++] = 0x85; /* management network addresses */ arr 1436 drivers/scsi/scsi_debug.c arr[n++] = 0x86; /* extended inquiry */ arr 1437 drivers/scsi/scsi_debug.c arr[n++] = 0x87; /* mode page policy */ arr 1438 drivers/scsi/scsi_debug.c arr[n++] = 0x88; /* SCSI ports */ arr 1440 drivers/scsi/scsi_debug.c arr[n++] = 0x89; /* ATA information */ arr 1441 drivers/scsi/scsi_debug.c arr[n++] = 0xb0; /* Block limits */ arr 1442 drivers/scsi/scsi_debug.c arr[n++] = 0xb1; /* Block characteristics */ arr 1443 drivers/scsi/scsi_debug.c arr[n++] = 0xb2; /* Logical Block Prov */ arr 1445 drivers/scsi/scsi_debug.c arr[3] = n - 4; /* number of supported VPD pages */ arr 1447 drivers/scsi/scsi_debug.c arr[1] = cmd[2]; /*sanity */ arr 1448 drivers/scsi/scsi_debug.c arr[3] = len; arr 1449 drivers/scsi/scsi_debug.c memcpy(&arr[4], lu_id_str, len); arr 1451 drivers/scsi/scsi_debug.c arr[1] = cmd[2]; /*sanity */ arr 1452 drivers/scsi/scsi_debug.c arr[3] = inquiry_vpd_83(&arr[4], port_group_id, arr 1457 drivers/scsi/scsi_debug.c arr[1] = cmd[2]; /*sanity */ arr 1458 drivers/scsi/scsi_debug.c arr[3] = inquiry_vpd_84(&arr[4]); arr 1460 drivers/scsi/scsi_debug.c arr[1] = cmd[2]; /*sanity */ arr 1461 drivers/scsi/scsi_debug.c arr[3] = inquiry_vpd_85(&arr[4]); arr 1463 drivers/scsi/scsi_debug.c arr[1] = cmd[2]; /*sanity */ arr 1464 drivers/scsi/scsi_debug.c arr[3] = 0x3c; /* number of following entries */ arr 1466 drivers/scsi/scsi_debug.c arr[4] = 0x4; /* SPT: GRD_CHK:1 */ arr 1468 drivers/scsi/scsi_debug.c arr[4] = 0x5; /* SPT: GRD_CHK:1, REF_CHK:1 */ arr 1470 drivers/scsi/scsi_debug.c arr[4] = 0x0; /* no protection stuff */ arr 1471 drivers/scsi/scsi_debug.c arr[5] = 0x7; /* head of q, ordered + simple q's */ arr 1473 drivers/scsi/scsi_debug.c arr[1] = cmd[2]; /*sanity */ arr 1474 drivers/scsi/scsi_debug.c arr[3] = 0x8; /* number of following entries */ arr 1475 drivers/scsi/scsi_debug.c arr[4] = 0x2; /* disconnect-reconnect mp */ arr 1476 drivers/scsi/scsi_debug.c arr[6] = 0x80; /* mlus, shared */ arr 1477 drivers/scsi/scsi_debug.c arr[8] = 0x18; /* protocol specific lu */ arr 1478 drivers/scsi/scsi_debug.c arr[10] = 0x82; /* mlus, per initiator port */ arr 1480 drivers/scsi/scsi_debug.c arr[1] = cmd[2]; /*sanity */ arr 1481 drivers/scsi/scsi_debug.c arr[3] = inquiry_vpd_88(&arr[4], target_dev_id); arr 1483 drivers/scsi/scsi_debug.c arr[1] = cmd[2]; /*sanity */ arr 1484 drivers/scsi/scsi_debug.c n = inquiry_vpd_89(&arr[4]); arr 1485 drivers/scsi/scsi_debug.c put_unaligned_be16(n, arr + 2); arr 1487 drivers/scsi/scsi_debug.c arr[1] = cmd[2]; /*sanity */ arr 1488 drivers/scsi/scsi_debug.c arr[3] = inquiry_vpd_b0(&arr[4]); arr 1490 drivers/scsi/scsi_debug.c arr[1] = cmd[2]; /*sanity */ arr 1491 drivers/scsi/scsi_debug.c arr[3] = inquiry_vpd_b1(&arr[4]); arr 1493 drivers/scsi/scsi_debug.c arr[1] = cmd[2]; /*sanity */ arr 1494 drivers/scsi/scsi_debug.c arr[3] = inquiry_vpd_b2(&arr[4]); arr 1497 drivers/scsi/scsi_debug.c kfree(arr); arr 1500 drivers/scsi/scsi_debug.c len = min(get_unaligned_be16(arr + 2) + 4, alloc_len); arr 1501 drivers/scsi/scsi_debug.c ret = fill_from_dev_buffer(scp, arr, arr 1503 drivers/scsi/scsi_debug.c kfree(arr); arr 1507 drivers/scsi/scsi_debug.c arr[1] = sdebug_removable ? 0x80 : 0; /* Removable disk */ arr 1508 drivers/scsi/scsi_debug.c arr[2] = sdebug_scsi_level; arr 1509 drivers/scsi/scsi_debug.c arr[3] = 2; /* response_data_format==2 */ arr 1510 drivers/scsi/scsi_debug.c arr[4] = SDEBUG_LONG_INQ_SZ - 5; arr 1511 drivers/scsi/scsi_debug.c arr[5] = (int)have_dif_prot; /* PROTECT bit */ arr 1513 drivers/scsi/scsi_debug.c arr[5] |= 0x10; /* claim: implicit TPGS */ arr 1514 drivers/scsi/scsi_debug.c arr[6] = 0x10; /* claim: MultiP */ arr 1516 drivers/scsi/scsi_debug.c arr[7] = 0xa; /* claim: LINKED + CMDQUE */ arr 1517 drivers/scsi/scsi_debug.c memcpy(&arr[8], sdebug_inq_vendor_id, 8); arr 1518 drivers/scsi/scsi_debug.c memcpy(&arr[16], sdebug_inq_product_id, 16); arr 1519 drivers/scsi/scsi_debug.c memcpy(&arr[32], sdebug_inq_product_rev, 4); arr 1521 drivers/scsi/scsi_debug.c memcpy(&arr[36], sdebug_version_date, 8); arr 1523 drivers/scsi/scsi_debug.c put_unaligned_be16(0xc0, arr + 58); /* SAM-6 no version claimed */ arr 1524 drivers/scsi/scsi_debug.c put_unaligned_be16(0x5c0, arr + 60); /* SPC-5 no version claimed */ arr 1527 drivers/scsi/scsi_debug.c put_unaligned_be16(0x600, arr + n); arr 1530 drivers/scsi/scsi_debug.c put_unaligned_be16(0x525, arr + n); arr 1533 drivers/scsi/scsi_debug.c put_unaligned_be16(0x2100, arr + n); /* SPL-4 no version claimed */ arr 1534 drivers/scsi/scsi_debug.c ret = fill_from_dev_buffer(scp, arr, arr 1536 drivers/scsi/scsi_debug.c kfree(arr); arr 1548 drivers/scsi/scsi_debug.c unsigned char arr[SCSI_SENSE_BUFFERSIZE]; arr 1552 drivers/scsi/scsi_debug.c memset(arr, 0, sizeof(arr)); arr 1557 drivers/scsi/scsi_debug.c arr[0] = 0x72; arr 1558 drivers/scsi/scsi_debug.c arr[1] = 0x0; /* NO_SENSE in sense_key */ arr 1559 drivers/scsi/scsi_debug.c arr[2] = THRESHOLD_EXCEEDED; arr 1560 drivers/scsi/scsi_debug.c arr[3] = 0xff; /* TEST set and MRIE==6 */ arr 1563 drivers/scsi/scsi_debug.c arr[0] = 0x70; arr 1564 drivers/scsi/scsi_debug.c arr[2] = 0x0; /* NO_SENSE in sense_key */ arr 1565 drivers/scsi/scsi_debug.c arr[7] = 0xa; /* 18 byte sense buffer */ arr 1566 drivers/scsi/scsi_debug.c arr[12] = THRESHOLD_EXCEEDED; arr 1567 drivers/scsi/scsi_debug.c arr[13] = 0xff; /* TEST set and MRIE==6 */ arr 1570 drivers/scsi/scsi_debug.c memcpy(arr, sbuff, SCSI_SENSE_BUFFERSIZE); arr 1571 drivers/scsi/scsi_debug.c if (arr[0] >= 0x70 && dsense == sdebug_dsense) arr 1573 drivers/scsi/scsi_debug.c else if (arr[0] <= 0x70) { arr 1575 drivers/scsi/scsi_debug.c memset(arr, 0, 8); arr 1576 drivers/scsi/scsi_debug.c arr[0] = 0x72; arr 1579 drivers/scsi/scsi_debug.c memset(arr, 0, 18); arr 1580 drivers/scsi/scsi_debug.c arr[0] = 0x70; arr 1581 drivers/scsi/scsi_debug.c arr[7] = 0xa; arr 1584 drivers/scsi/scsi_debug.c memset(arr, 0, 8); arr 1585 drivers/scsi/scsi_debug.c arr[0] = 0x72; arr 1586 drivers/scsi/scsi_debug.c arr[1] = sbuff[2]; /* sense key */ arr 1587 drivers/scsi/scsi_debug.c arr[2] = sbuff[12]; /* asc */ arr 1588 drivers/scsi/scsi_debug.c arr[3] = sbuff[13]; /* ascq */ arr 1591 drivers/scsi/scsi_debug.c memset(arr, 0, 18); arr 1592 drivers/scsi/scsi_debug.c arr[0] = 0x70; arr 1593 drivers/scsi/scsi_debug.c arr[2] = sbuff[1]; arr 1594 drivers/scsi/scsi_debug.c arr[7] = 0xa; arr 1595 drivers/scsi/scsi_debug.c arr[12] = sbuff[1]; arr 1596 drivers/scsi/scsi_debug.c arr[13] = sbuff[3]; arr 1601 drivers/scsi/scsi_debug.c return fill_from_dev_buffer(scp, arr, len); arr 1640 drivers/scsi/scsi_debug.c unsigned char arr[SDEBUG_READCAP_ARR_SZ]; arr 1645 drivers/scsi/scsi_debug.c memset(arr, 0, SDEBUG_READCAP_ARR_SZ); arr 1648 drivers/scsi/scsi_debug.c put_unaligned_be32(capac, arr + 0); arr 1650 drivers/scsi/scsi_debug.c put_unaligned_be32(0xffffffff, arr + 0); arr 1651 drivers/scsi/scsi_debug.c put_unaligned_be16(sdebug_sector_size, arr + 6); arr 1652 drivers/scsi/scsi_debug.c return fill_from_dev_buffer(scp, arr, SDEBUG_READCAP_ARR_SZ); arr 1660 drivers/scsi/scsi_debug.c unsigned char arr[SDEBUG_READCAP16_ARR_SZ]; arr 1666 drivers/scsi/scsi_debug.c memset(arr, 0, SDEBUG_READCAP16_ARR_SZ); arr 1667 drivers/scsi/scsi_debug.c put_unaligned_be64((u64)(sdebug_capacity - 1), arr + 0); arr 1668 drivers/scsi/scsi_debug.c put_unaligned_be32(sdebug_sector_size, arr + 8); arr 1669 drivers/scsi/scsi_debug.c arr[13] = sdebug_physblk_exp & 0xf; arr 1670 drivers/scsi/scsi_debug.c arr[14] = (sdebug_lowest_aligned >> 8) & 0x3f; arr 1673 drivers/scsi/scsi_debug.c arr[14] |= 0x80; /* LBPME */ arr 1679 drivers/scsi/scsi_debug.c arr[14] |= 0x40; arr 1682 drivers/scsi/scsi_debug.c arr[15] = sdebug_lowest_aligned & 0xff; arr 1685 drivers/scsi/scsi_debug.c arr[12] = (sdebug_dif - 1) << 1; /* P_TYPE */ arr 1686 drivers/scsi/scsi_debug.c arr[12] |= 1; /* PROT_EN */ arr 1689 drivers/scsi/scsi_debug.c return fill_from_dev_buffer(scp, arr, arr 1699 drivers/scsi/scsi_debug.c unsigned char *arr; arr 1705 drivers/scsi/scsi_debug.c arr = kzalloc(SDEBUG_MAX_TGTPGS_ARR_SZ, GFP_ATOMIC); arr 1706 drivers/scsi/scsi_debug.c if (! arr) arr 1726 drivers/scsi/scsi_debug.c arr[n++] = host_no % 3; /* Asymm access state */ arr 1727 drivers/scsi/scsi_debug.c arr[n++] = 0x0F; /* claim: all states are supported */ arr 1729 drivers/scsi/scsi_debug.c arr[n++] = 0x0; /* Active/Optimized path */ arr 1730 drivers/scsi/scsi_debug.c arr[n++] = 0x01; /* only support active/optimized paths */ arr 1732 drivers/scsi/scsi_debug.c put_unaligned_be16(port_group_a, arr + n); arr 1734 drivers/scsi/scsi_debug.c arr[n++] = 0; /* Reserved */ arr 1735 drivers/scsi/scsi_debug.c arr[n++] = 0; /* Status code */ arr 1736 drivers/scsi/scsi_debug.c arr[n++] = 0; /* Vendor unique */ arr 1737 drivers/scsi/scsi_debug.c arr[n++] = 0x1; /* One port per group */ arr 1738 drivers/scsi/scsi_debug.c arr[n++] = 0; /* Reserved */ arr 1739 drivers/scsi/scsi_debug.c arr[n++] = 0; /* Reserved */ arr 1740 drivers/scsi/scsi_debug.c put_unaligned_be16(port_a, arr + n); arr 1742 drivers/scsi/scsi_debug.c arr[n++] = 3; /* Port unavailable */ arr 1743 drivers/scsi/scsi_debug.c arr[n++] = 0x08; /* claim: only unavailalbe paths are supported */ arr 1744 drivers/scsi/scsi_debug.c put_unaligned_be16(port_group_b, arr + n); arr 1746 drivers/scsi/scsi_debug.c arr[n++] = 0; /* Reserved */ arr 1747 drivers/scsi/scsi_debug.c arr[n++] = 0; /* Status code */ arr 1748 drivers/scsi/scsi_debug.c arr[n++] = 0; /* Vendor unique */ arr 1749 drivers/scsi/scsi_debug.c arr[n++] = 0x1; /* One port per group */ arr 1750 drivers/scsi/scsi_debug.c arr[n++] = 0; /* Reserved */ arr 1751 drivers/scsi/scsi_debug.c arr[n++] = 0; /* Reserved */ arr 1752 drivers/scsi/scsi_debug.c put_unaligned_be16(port_b, arr + n); arr 1756 drivers/scsi/scsi_debug.c put_unaligned_be32(rlen, arr + 0); arr 1765 drivers/scsi/scsi_debug.c ret = fill_from_dev_buffer(scp, arr, arr 1767 drivers/scsi/scsi_debug.c kfree(arr); arr 1781 drivers/scsi/scsi_debug.c u8 *arr; arr 1797 drivers/scsi/scsi_debug.c arr = kzalloc((a_len < 256) ? 320 : a_len + 64, GFP_ATOMIC); arr 1798 drivers/scsi/scsi_debug.c if (NULL == arr) { arr 1813 drivers/scsi/scsi_debug.c put_unaligned_be32(count * bump, arr); arr 1819 drivers/scsi/scsi_debug.c arr[offset] = oip->opcode; arr 1820 drivers/scsi/scsi_debug.c put_unaligned_be16(oip->sa, arr + offset + 2); arr 1822 drivers/scsi/scsi_debug.c arr[offset + 5] |= 0x2; arr 1824 drivers/scsi/scsi_debug.c arr[offset + 5] |= 0x1; arr 1825 drivers/scsi/scsi_debug.c put_unaligned_be16(oip->len_mask[0], arr + offset + 6); arr 1827 drivers/scsi/scsi_debug.c put_unaligned_be16(0xa, arr + offset + 8); arr 1833 drivers/scsi/scsi_debug.c arr[offset] = oip->opcode; arr 1834 drivers/scsi/scsi_debug.c put_unaligned_be16(oip->sa, arr + offset + 2); arr 1836 drivers/scsi/scsi_debug.c arr[offset + 5] |= 0x2; arr 1838 drivers/scsi/scsi_debug.c arr[offset + 5] |= 0x1; arr 1840 drivers/scsi/scsi_debug.c arr + offset + 6); arr 1843 drivers/scsi/scsi_debug.c arr + offset + 8); arr 1862 drivers/scsi/scsi_debug.c kfree(arr); arr 1869 drivers/scsi/scsi_debug.c kfree(arr); /* point at requested sa */ arr 1895 drivers/scsi/scsi_debug.c put_unaligned_be16(u, arr + 2); arr 1896 drivers/scsi/scsi_debug.c arr[4] = oip->opcode; arr 1898 drivers/scsi/scsi_debug.c arr[4 + k] = (k < 16) ? arr 1904 drivers/scsi/scsi_debug.c arr[1] = (rctd ? 0x80 : 0) | supp; arr 1906 drivers/scsi/scsi_debug.c put_unaligned_be16(0xa, arr + offset); arr 1912 drivers/scsi/scsi_debug.c kfree(arr); arr 1917 drivers/scsi/scsi_debug.c errsts = fill_from_dev_buffer(scp, arr, len); arr 1918 drivers/scsi/scsi_debug.c kfree(arr); arr 1927 drivers/scsi/scsi_debug.c u8 arr[16]; arr 1930 drivers/scsi/scsi_debug.c memset(arr, 0, sizeof(arr)); arr 1937 drivers/scsi/scsi_debug.c arr[0] = 0xc8; /* ATS | ATSS | LURS */ arr 1938 drivers/scsi/scsi_debug.c arr[1] = 0x1; /* ITNRS */ arr 1940 drivers/scsi/scsi_debug.c arr[3] = 0xc; arr 1946 drivers/scsi/scsi_debug.c return fill_from_dev_buffer(scp, arr, len); arr 2119 drivers/scsi/scsi_debug.c unsigned char arr[SDEBUG_MAX_MSENSE_SZ]; arr 2135 drivers/scsi/scsi_debug.c memset(arr, 0, SDEBUG_MAX_MSENSE_SZ); arr 2150 drivers/scsi/scsi_debug.c arr[2] = dev_spec; arr 2151 drivers/scsi/scsi_debug.c arr[3] = bd_len; arr 2154 drivers/scsi/scsi_debug.c arr[3] = dev_spec; arr 2156 drivers/scsi/scsi_debug.c arr[4] = 0x1; /* set LONGLBA bit */ arr 2157 drivers/scsi/scsi_debug.c arr[7] = bd_len; /* assume 255 or less */ arr 2160 drivers/scsi/scsi_debug.c ap = arr + offset; arr 2171 drivers/scsi/scsi_debug.c ap = arr + offset; arr 2176 drivers/scsi/scsi_debug.c ap = arr + offset; arr 2265 drivers/scsi/scsi_debug.c arr[0] = offset - 1; arr 2267 drivers/scsi/scsi_debug.c put_unaligned_be16((offset - 2), arr + 0); arr 2268 drivers/scsi/scsi_debug.c return fill_from_dev_buffer(scp, arr, min(alloc_len, offset)); arr 2278 drivers/scsi/scsi_debug.c unsigned char arr[SDEBUG_MAX_MSELECT_SZ]; arr 2282 drivers/scsi/scsi_debug.c memset(arr, 0, sizeof(arr)); arr 2290 drivers/scsi/scsi_debug.c res = fetch_to_dev_buffer(scp, arr, param_len); arr 2297 drivers/scsi/scsi_debug.c md_len = mselect6 ? (arr[0] + 1) : (get_unaligned_be16(arr + 0) + 2); arr 2298 drivers/scsi/scsi_debug.c bd_len = mselect6 ? arr[3] : get_unaligned_be16(arr + 6); arr 2304 drivers/scsi/scsi_debug.c mpage = arr[off] & 0x3f; arr 2305 drivers/scsi/scsi_debug.c ps = !!(arr[off] & 0x80); arr 2310 drivers/scsi/scsi_debug.c spf = !!(arr[off] & 0x40); arr 2311 drivers/scsi/scsi_debug.c pg_len = spf ? (get_unaligned_be16(arr + off + 2) + 4) : arr 2312 drivers/scsi/scsi_debug.c (arr[off + 1] + 2); arr 2320 drivers/scsi/scsi_debug.c if (caching_pg[1] == arr[off + 1]) { arr 2321 drivers/scsi/scsi_debug.c memcpy(caching_pg + 2, arr + off + 2, arr 2327 drivers/scsi/scsi_debug.c if (ctrl_m_pg[1] == arr[off + 1]) { arr 2328 drivers/scsi/scsi_debug.c memcpy(ctrl_m_pg + 2, arr + off + 2, arr 2339 drivers/scsi/scsi_debug.c if (iec_m_pg[1] == arr[off + 1]) { arr 2340 drivers/scsi/scsi_debug.c memcpy(iec_m_pg + 2, arr + off + 2, arr 2355 drivers/scsi/scsi_debug.c static int resp_temp_l_pg(unsigned char *arr) arr 2361 drivers/scsi/scsi_debug.c memcpy(arr, temp_l_pg, sizeof(temp_l_pg)); arr 2365 drivers/scsi/scsi_debug.c static int resp_ie_l_pg(unsigned char *arr) arr 2370 drivers/scsi/scsi_debug.c memcpy(arr, ie_l_pg, sizeof(ie_l_pg)); arr 2372 drivers/scsi/scsi_debug.c arr[4] = THRESHOLD_EXCEEDED; arr 2373 drivers/scsi/scsi_debug.c arr[5] = 0xff; arr 2384 drivers/scsi/scsi_debug.c unsigned char arr[SDEBUG_MAX_LSENSE_SZ]; arr 2387 drivers/scsi/scsi_debug.c memset(arr, 0, sizeof(arr)); arr 2397 drivers/scsi/scsi_debug.c arr[0] = pcode; arr 2402 drivers/scsi/scsi_debug.c arr[n++] = 0x0; /* this page */ arr 2403 drivers/scsi/scsi_debug.c arr[n++] = 0xd; /* Temperature */ arr 2404 drivers/scsi/scsi_debug.c arr[n++] = 0x2f; /* Informational exceptions */ arr 2405 drivers/scsi/scsi_debug.c arr[3] = n - 4; arr 2408 drivers/scsi/scsi_debug.c arr[3] = resp_temp_l_pg(arr + 4); arr 2411 drivers/scsi/scsi_debug.c arr[3] = resp_ie_l_pg(arr + 4); arr 2418 drivers/scsi/scsi_debug.c arr[0] |= 0x40; arr 2419 drivers/scsi/scsi_debug.c arr[1] = subpcode; arr 2423 drivers/scsi/scsi_debug.c arr[n++] = 0x0; arr 2424 drivers/scsi/scsi_debug.c arr[n++] = 0x0; /* 0,0 page */ arr 2425 drivers/scsi/scsi_debug.c arr[n++] = 0x0; arr 2426 drivers/scsi/scsi_debug.c arr[n++] = 0xff; /* this page */ arr 2427 drivers/scsi/scsi_debug.c arr[n++] = 0xd; arr 2428 drivers/scsi/scsi_debug.c arr[n++] = 0x0; /* Temperature */ arr 2429 drivers/scsi/scsi_debug.c arr[n++] = 0x2f; arr 2430 drivers/scsi/scsi_debug.c arr[n++] = 0x0; /* Informational exceptions */ arr 2431 drivers/scsi/scsi_debug.c arr[3] = n - 4; arr 2435 drivers/scsi/scsi_debug.c arr[n++] = 0xd; arr 2436 drivers/scsi/scsi_debug.c arr[n++] = 0x0; /* Temperature */ arr 2437 drivers/scsi/scsi_debug.c arr[3] = n - 4; arr 2441 drivers/scsi/scsi_debug.c arr[n++] = 0x2f; arr 2442 drivers/scsi/scsi_debug.c arr[n++] = 0x0; /* Informational exceptions */ arr 2443 drivers/scsi/scsi_debug.c arr[3] = n - 4; arr 2453 drivers/scsi/scsi_debug.c len = min(get_unaligned_be16(arr + 2) + 4, alloc_len); arr 2454 drivers/scsi/scsi_debug.c return fill_from_dev_buffer(scp, arr, arr 2522 drivers/scsi/scsi_debug.c static bool comp_write_worker(u64 lba, u32 num, const u8 *arr) arr 2533 drivers/scsi/scsi_debug.c res = !memcmp(fake_storep + (block * lb_size), arr, arr 2538 drivers/scsi/scsi_debug.c res = memcmp(fake_storep, arr + ((num - rest) * lb_size), arr 2542 drivers/scsi/scsi_debug.c arr += num * lb_size; arr 2543 drivers/scsi/scsi_debug.c memcpy(fake_storep + (block * lb_size), arr, (num - rest) * lb_size); arr 2545 drivers/scsi/scsi_debug.c memcpy(fake_storep, arr + ((num - rest) * lb_size), arr 3402 drivers/scsi/scsi_debug.c u8 *arr; arr 3430 drivers/scsi/scsi_debug.c arr = kcalloc(lb_size, dnum, GFP_ATOMIC); arr 3431 drivers/scsi/scsi_debug.c if (NULL == arr) { arr 3442 drivers/scsi/scsi_debug.c fake_storep = arr; arr 3452 drivers/scsi/scsi_debug.c if (!comp_write_worker(lba, num, arr)) { arr 3461 drivers/scsi/scsi_debug.c kfree(arr); arr 3535 drivers/scsi/scsi_debug.c u8 arr[SDEBUG_GET_LBA_STATUS_LEN]; arr 3560 drivers/scsi/scsi_debug.c memset(arr, 0, SDEBUG_GET_LBA_STATUS_LEN); arr 3561 drivers/scsi/scsi_debug.c put_unaligned_be32(20, arr); /* Parameter Data Length */ arr 3562 drivers/scsi/scsi_debug.c put_unaligned_be64(lba, arr + 8); /* LBA */ arr 3563 drivers/scsi/scsi_debug.c put_unaligned_be32(num, arr + 16); /* Number of blocks */ arr 3564 drivers/scsi/scsi_debug.c arr[20] = !mapped; /* prov_stat=0: mapped; 1: dealloc */ arr 3566 drivers/scsi/scsi_debug.c return fill_from_dev_buffer(scp, arr, SDEBUG_GET_LBA_STATUS_LEN); arr 3613 drivers/scsi/scsi_debug.c u8 arr[RL_BUCKET_ELEMS * sizeof(struct scsi_lun)]; arr 3667 drivers/scsi/scsi_debug.c memset(arr, 0, sizeof(arr)); arr 3668 drivers/scsi/scsi_debug.c lun_p = (struct scsi_lun *)&arr[0]; arr 3670 drivers/scsi/scsi_debug.c put_unaligned_be32(rlen, &arr[0]); arr 3682 drivers/scsi/scsi_debug.c res = p_fill_from_dev_buffer(scp, arr, n, off_rsp); arr 3692 drivers/scsi/scsi_debug.c res = p_fill_from_dev_buffer(scp, arr, j * sz_lun, off_rsp); arr 4553 drivers/scsi/scsi_debug.c char arr[16]; arr 4559 drivers/scsi/scsi_debug.c memcpy(arr, buffer, minLen); arr 4560 drivers/scsi/scsi_debug.c arr[minLen] = '\0'; arr 4561 drivers/scsi/scsi_debug.c if (1 != sscanf(arr, "%d", &opts)) arr 1267 drivers/tty/serial/8250/8250_core.c ¶m_array_ops, .arr = &__param_arr_probe_rsa, arr 519 drivers/video/fbdev/matrox/g450_pll.c unsigned int* arr; arr 521 drivers/video/fbdev/matrox/g450_pll.c arr = kmalloc(sizeof(*arr) * MNP_TABLE_SIZE * 2, GFP_KERNEL); arr 522 drivers/video/fbdev/matrox/g450_pll.c if (arr) { arr 525 drivers/video/fbdev/matrox/g450_pll.c r = __g450_setclk(minfo, fout, pll, arr, arr + MNP_TABLE_SIZE); arr 526 drivers/video/fbdev/matrox/g450_pll.c kfree(arr); arr 380 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c s16 *arr; arr 391 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c arr = (s16[]){ coefs.rr, coefs.rg, coefs.rb, arr 396 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c if (arr[i] < -512 || arr[i] > 511) arr 463 drivers/xen/privcmd.c if (!access_ok(m.arr, m.num * sizeof(*m.arr))) arr 485 drivers/xen/privcmd.c ret = gather_array(&pagelist, m.num, sizeof(xen_pfn_t), m.arr); arr 562 drivers/xen/privcmd.c state.user_gfn = (xen_pfn_t *)m.arr; arr 83 drivers/xen/xenbus/xenbus_probe.c match_device(const struct xenbus_device_id *arr, struct xenbus_device *dev) arr 85 drivers/xen/xenbus/xenbus_probe.c for (; *arr->devicetype != '\0'; arr++) { arr 86 drivers/xen/xenbus/xenbus_probe.c if (!strcmp(arr->devicetype, dev->devicetype)) arr 87 drivers/xen/xenbus/xenbus_probe.c return arr; arr 2231 fs/buffer.c struct buffer_head *bh, *head, *arr[MAX_BUF_PER_PAGE]; arr 2273 fs/buffer.c arr[nr++] = bh; arr 2292 fs/buffer.c bh = arr[i]; arr 2303 fs/buffer.c bh = arr[i]; arr 171 fs/ext4/move_extent.c struct buffer_head *bh, *head, *arr[MAX_BUF_PER_PAGE]; arr 209 fs/ext4/move_extent.c arr[nr++] = bh; arr 216 fs/ext4/move_extent.c bh = arr[i]; arr 177 fs/ntfs/aops.c struct buffer_head *bh, *head, *arr[MAX_BUF_PER_PAGE]; arr 236 fs/ntfs/aops.c arr[nr++] = bh; arr 269 fs/ntfs/aops.c arr[nr++] = bh; arr 339 fs/ntfs/aops.c tbh = arr[i]; arr 346 fs/ntfs/aops.c tbh = arr[i]; arr 95 fs/ocfs2/sysfile.c struct inode **arr = NULL; arr 99 fs/ocfs2/sysfile.c arr = &(osb->global_system_inodes[type]); arr 101 fs/ocfs2/sysfile.c arr = get_local_system_inode(osb, type, slot); arr 104 fs/ocfs2/sysfile.c if (arr && ((inode = *arr) != NULL)) { arr 117 fs/ocfs2/sysfile.c if (arr && inode) { arr 118 fs/ocfs2/sysfile.c *arr = igrab(inode); arr 119 fs/ocfs2/sysfile.c BUG_ON(!*arr); arr 21 fs/orangefs/orangefs-debug.h #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) arr 894 fs/ubifs/debug.c struct ubifs_lprops *lprops = heap->arr[i]; arr 136 fs/ubifs/find.c lprops = heap->arr[i]; arr 276 fs/ubifs/find.c idx_lp = idx_heap->arr[0]; arr 293 fs/ubifs/find.c lp = heap->arr[0]; arr 422 fs/ubifs/find.c lprops = heap->arr[i]; arr 753 fs/ubifs/find.c memcpy(c->dirty_idx.arr, c->lpt_heap[LPROPS_DIRTY_IDX - 1].arr, arr 756 fs/ubifs/find.c sort(c->dirty_idx.arr, c->dirty_idx.cnt, sizeof(void *), arr 761 fs/ubifs/find.c c->dirty_idx.arr[c->dirty_idx.cnt - 1]->lnum, arr 762 fs/ubifs/find.c c->dirty_idx.arr[c->dirty_idx.cnt - 1]->dirty, arr 763 fs/ubifs/find.c c->dirty_idx.arr[c->dirty_idx.cnt - 1]->free); arr 766 fs/ubifs/find.c c->dirty_idx.arr[i] = (void *)(size_t)c->dirty_idx.arr[i]->lnum; arr 827 fs/ubifs/find.c lprops = heap->arr[i]; arr 914 fs/ubifs/find.c lnum = (size_t)c->dirty_idx.arr[--c->dirty_idx.cnt]; arr 63 fs/ubifs/lprops.c val2 = get_heap_comp_val(heap->arr[ppos], cat); arr 67 fs/ubifs/lprops.c heap->arr[ppos]->hpos = hpos; arr 68 fs/ubifs/lprops.c heap->arr[hpos] = heap->arr[ppos]; arr 69 fs/ubifs/lprops.c heap->arr[ppos] = lprops; arr 97 fs/ubifs/lprops.c val2 = get_heap_comp_val(heap->arr[ppos], cat); arr 101 fs/ubifs/lprops.c heap->arr[ppos]->hpos = hpos; arr 102 fs/ubifs/lprops.c heap->arr[hpos] = heap->arr[ppos]; arr 103 fs/ubifs/lprops.c heap->arr[ppos] = lprops; arr 109 fs/ubifs/lprops.c val2 = get_heap_comp_val(heap->arr[ppos], cat); arr 123 fs/ubifs/lprops.c val2 = get_heap_comp_val(heap->arr[cpos], cat); arr 127 fs/ubifs/lprops.c val3 = get_heap_comp_val(heap->arr[cpos + 1], arr 132 fs/ubifs/lprops.c heap->arr[cpos]->hpos = hpos; arr 133 fs/ubifs/lprops.c heap->arr[hpos] = heap->arr[cpos]; arr 134 fs/ubifs/lprops.c heap->arr[cpos] = lprops; arr 143 fs/ubifs/lprops.c val3 = get_heap_comp_val(heap->arr[cpos], cat); arr 146 fs/ubifs/lprops.c heap->arr[cpos]->hpos = hpos; arr 147 fs/ubifs/lprops.c heap->arr[hpos] = heap->arr[cpos]; arr 148 fs/ubifs/lprops.c heap->arr[cpos] = lprops; arr 183 fs/ubifs/lprops.c val2 = get_heap_comp_val(heap->arr[cpos], cat); arr 187 fs/ubifs/lprops.c lp = heap->arr[cpos]; arr 192 fs/ubifs/lprops.c heap->arr[cpos] = lprops; arr 201 fs/ubifs/lprops.c heap->arr[lprops->hpos] = lprops; arr 222 fs/ubifs/lprops.c ubifs_assert(c, heap->arr[hpos] == lprops); arr 225 fs/ubifs/lprops.c heap->arr[hpos] = heap->arr[heap->cnt]; arr 226 fs/ubifs/lprops.c heap->arr[hpos]->hpos = hpos; arr 227 fs/ubifs/lprops.c adjust_lpt_heap(c, heap, heap->arr[hpos], hpos, cat); arr 250 fs/ubifs/lprops.c heap->arr[hpos] = new_lprops; arr 765 fs/ubifs/lprops.c lprops = heap->arr[0]; arr 931 fs/ubifs/lprops.c lprops = heap->arr[i]; arr 959 fs/ubifs/lprops.c struct ubifs_lprops *lprops = heap->arr[i]; arr 984 fs/ubifs/lprops.c lp = heap->arr[j]; arr 1073 fs/ubifs/lprops.c if ((lp->hpos != -1 && heap->arr[lp->hpos]->lnum != lnum) || arr 1074 fs/ubifs/lprops.c lp != heap->arr[lp->hpos]) { arr 1791 fs/ubifs/lpt.c c->lpt_heap[i].arr = kmalloc_array(LPT_HEAP_SZ, arr 1794 fs/ubifs/lpt.c if (!c->lpt_heap[i].arr) arr 1800 fs/ubifs/lpt.c c->dirty_idx.arr = kmalloc_array(LPT_HEAP_SZ, sizeof(void *), arr 1802 fs/ubifs/lpt.c if (!c->dirty_idx.arr) arr 2329 fs/ubifs/lpt.c heap->arr[lprops->hpos] == lprops) arr 793 fs/ubifs/lpt_commit.c c->lsave[cnt++] = heap->arr[i]->lnum; arr 799 fs/ubifs/lpt_commit.c c->lsave[cnt++] = heap->arr[i]->lnum; arr 805 fs/ubifs/lpt_commit.c c->lsave[cnt++] = heap->arr[i]->lnum; arr 1444 fs/ubifs/lpt_commit.c kfree(c->lpt_heap[i].arr); arr 1445 fs/ubifs/lpt_commit.c kfree(c->dirty_idx.arr); arr 1988 fs/ubifs/lpt_commit.c c->lsave[prandom_u32() % c->lsave_cnt] = heap->arr[i]->lnum; arr 1991 fs/ubifs/lpt_commit.c c->lsave[prandom_u32() % c->lsave_cnt] = heap->arr[i]->lnum; arr 1994 fs/ubifs/lpt_commit.c c->lsave[prandom_u32() % c->lsave_cnt] = heap->arr[i]->lnum; arr 625 fs/ubifs/ubifs.h struct ubifs_lprops **arr; arr 47 include/linux/kernel.h #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) arr 588 include/linux/module.h bool each_symbol_section(bool (*fn)(const struct symsearch *arr, arr 79 include/linux/moduleparam.h const struct kparam_array *arr; arr 443 include/linux/moduleparam.h .arr = &__param_arr_##name, \ arr 502 include/linux/moduleparam.h .arr = &__param_arr_##name, \ arr 1151 include/linux/regmap.h #define REGMAP_IRQ_MAIN_REG_OFFSET(arr) \ arr 1152 include/linux/regmap.h { .num_regs = ARRAY_SIZE((arr)), .offset = &(arr)[0] } arr 186 include/net/bonding.h struct slave *arr[0]; arr 772 include/rdma/uverbs_ioctl.h struct ib_uobject ***arr) arr 778 include/rdma/uverbs_ioctl.h *arr = NULL; arr 782 include/rdma/uverbs_ioctl.h *arr = attr->objs_arr_attr.uobjects; arr 165 include/uapi/linux/soundcard.h unsigned char arr[8]; arr 66 include/uapi/xen/privcmd.h xen_pfn_t __user *arr; /* array of mfns - or'd with arr 77 include/uapi/xen/privcmd.h const xen_pfn_t __user *arr; /* array of mfns */ arr 403 kernel/module.c static bool each_symbol_in_section(const struct symsearch *arr, arr 414 kernel/module.c if (fn(&arr[j], owner, data)) arr 422 kernel/module.c bool each_symbol_section(bool (*fn)(const struct symsearch *arr, arr 428 kernel/module.c static const struct symsearch arr[] = { arr 449 kernel/module.c if (each_symbol_in_section(arr, ARRAY_SIZE(arr), NULL, fn, data)) arr 454 kernel/module.c struct symsearch arr[] = { arr 479 kernel/module.c if (each_symbol_in_section(arr, ARRAY_SIZE(arr), mod, fn, data)) arr 2270 kernel/module.c } arr[] = { arr 2280 kernel/module.c for (i = 0; i < ARRAY_SIZE(arr); i++) { arr 2281 kernel/module.c for (s = arr[i].sym; s < arr[i].sym + arr[i].num; s++) { arr 445 kernel/params.c const struct kparam_array *arr = kp->arr; arr 448 kernel/params.c return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, arr 449 kernel/params.c arr->elemsize, arr->ops->set, kp->level, arr 450 kernel/params.c arr->num ?: &temp_num); arr 456 kernel/params.c const struct kparam_array *arr = kp->arr; arr 459 kernel/params.c for (i = off = 0; i < (arr->num ? *arr->num : arr->max); i++) { arr 463 kernel/params.c p.arg = arr->elem + arr->elemsize * i; arr 465 kernel/params.c ret = arr->ops->get(buffer + off, &p); arr 477 kernel/params.c const struct kparam_array *arr = arg; arr 479 kernel/params.c if (arr->ops->free) arr 480 kernel/params.c for (i = 0; i < (arr->num ? *arr->num : arr->max); i++) arr 481 kernel/params.c arr->ops->free(arr->elem + arr->elemsize * i); arr 70 lib/test_bitmap.c const u32 *arr, unsigned int len) __used; arr 74 lib/test_bitmap.c const u32 *arr, unsigned int len) arr 83 lib/test_bitmap.c if (memcmp(exp_arr, arr, len*sizeof(*arr))) { arr 88 lib/test_bitmap.c 32, 4, arr, len*sizeof(*arr), false); arr 347 lib/test_bitmap.c u32 arr[sizeof(exp) / 4]; arr 350 lib/test_bitmap.c memset(arr, 0xa5, sizeof(arr)); arr 353 lib/test_bitmap.c bitmap_to_arr32(arr, exp, nbits); arr 354 lib/test_bitmap.c bitmap_from_arr32(bmap2, arr, nbits); arr 365 lib/test_bitmap.c expect_eq_uint(arr[DIV_ROUND_UP(nbits, 32)], arr 614 lib/test_kasan.c int arr[9]; arr 621 lib/test_kasan.c memset(arr, 0, sizeof(arr)); arr 622 lib/test_kasan.c memcmp(ptr, arr, size+1); arr 56 lib/test_ubsan.c volatile int arr[4]; arr 58 lib/test_ubsan.c arr[j] = i; arr 85 lib/test_ubsan.c volatile char arr[5] __aligned(4) = {1, 2, 3, 4, 5}; arr 88 lib/test_ubsan.c ptr = (int *)(arr + 1); arr 365 lib/test_vmalloc.c static void shuffle_array(int *arr, int n) arr 377 lib/test_vmalloc.c x = arr[i]; arr 378 lib/test_vmalloc.c arr[i] = arr[j]; arr 379 lib/test_vmalloc.c arr[j] = x; arr 2935 mm/memcontrol.c struct memcg_cache_array *arr; arr 2957 mm/memcontrol.c arr = rcu_dereference(cachep->memcg_params.memcg_caches); arr 2964 mm/memcontrol.c memcg_cachep = READ_ONCE(arr->entries[kmemcg_id]); arr 149 mm/slab_common.c struct memcg_cache_array *arr; arr 169 mm/slab_common.c arr = kvzalloc(sizeof(struct memcg_cache_array) + arr 172 mm/slab_common.c if (!arr) arr 175 mm/slab_common.c RCU_INIT_POINTER(s->memcg_params.memcg_caches, arr); arr 645 mm/slab_common.c struct memcg_cache_array *arr; arr 663 mm/slab_common.c arr = rcu_dereference_protected(root_cache->memcg_params.memcg_caches, arr 671 mm/slab_common.c if (arr->entries[idx]) arr 701 mm/slab_common.c arr->entries[idx] = s; arr 796 mm/slab_common.c struct memcg_cache_array *arr; arr 807 mm/slab_common.c arr = rcu_dereference_protected(s->memcg_params.memcg_caches, arr 809 mm/slab_common.c c = arr->entries[idx]; arr 814 mm/slab_common.c arr->entries[idx] = NULL; arr 836 mm/slab_common.c struct memcg_cache_array *arr; arr 847 mm/slab_common.c arr = rcu_dereference_protected(s->memcg_params.memcg_caches, arr 850 mm/slab_common.c c = arr->entries[i]; arr 867 mm/slab_common.c arr->entries[i] = NULL; arr 1061 net/dccp/feat.c static int dccp_feat_reconcile(dccp_feat_val *fv, u8 *arr, u8 len, arr 1066 net/dccp/feat.c if (!fv->sp.vec || !arr) { arr 1072 net/dccp/feat.c rc = dccp_feat_preflist_match(fv->sp.vec, fv->sp.len, arr, len); arr 1074 net/dccp/feat.c rc = dccp_feat_preflist_match(arr, len, fv->sp.vec, fv->sp.len); arr 1355 net/packet/af_packet.c po = pkt_sk(f->arr[idx]); arr 1367 net/packet/af_packet.c po_next = pkt_sk(f->arr[i]); arr 1462 net/packet/af_packet.c po = pkt_sk(f->arr[idx]); arr 1476 net/packet/af_packet.c f->arr[f->num_members] = sk; arr 1491 net/packet/af_packet.c if (f->arr[i] == sk) arr 1495 net/packet/af_packet.c f->arr[i] = f->arr[f->num_members - 1]; arr 93 net/packet/internal.h struct sock *arr[PACKET_FANOUT_MAX]; arr 406 scripts/genksyms/genksyms.c #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) arr 28 scripts/kallsyms.c #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) arr 15 scripts/kconfig/preprocess.c #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) arr 716 scripts/mod/file2alias.c kernel_ulong_t *arr, unsigned int min, unsigned int max) arr 721 scripts/mod/file2alias.c arr[i] = TO_NATIVE(arr[i]); arr 723 scripts/mod/file2alias.c if (arr[i / BITS_PER_LONG] & (1L << (i%BITS_PER_LONG))) arr 133 tools/bpf/bpftool/btf.c const struct btf_array *arr = (const void *)(t + 1); arr 136 tools/bpf/bpftool/btf.c jsonw_uint_field(w, "type_id", arr->type); arr 137 tools/bpf/bpftool/btf.c jsonw_uint_field(w, "index_type_id", arr->index_type); arr 138 tools/bpf/bpftool/btf.c jsonw_uint_field(w, "nr_elems", arr->nelems); arr 141 tools/bpf/bpftool/btf.c arr->type, arr->index_type, arr->nelems); arr 55 tools/bpf/bpftool/btf_dumper.c struct btf_array *arr = (struct btf_array *)(t + 1); arr 60 tools/bpf/bpftool/btf_dumper.c elem_size = btf__resolve_size(d->btf, arr->type); arr 65 tools/bpf/bpftool/btf_dumper.c for (i = 0; i < arr->nelems; i++) { arr 66 tools/bpf/bpftool/btf_dumper.c ret = btf_dumper_do_type(d, arr->type, 0, arr 17 tools/gpio/gpio-utils.h #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) arr 18 tools/iio/iio_utils.h #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) arr 107 tools/include/linux/kernel.h #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) arr 103 tools/lib/traceevent/plugins/plugin_xen.c #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) arr 183 tools/perf/util/arm-spe.c static void arm_spe_print_info(__u64 *arr) arr 188 tools/perf/util/arm-spe.c fprintf(stdout, arm_spe_info_fmts[ARM_SPE_PMU_TYPE], arr[ARM_SPE_PMU_TYPE]); arr 837 tools/perf/util/intel-bts.c static void intel_bts_print_info(__u64 *arr, int start, int finish) arr 845 tools/perf/util/intel-bts.c fprintf(stdout, intel_bts_info_fmts[i], arr[i]); arr 3048 tools/perf/util/intel-pt.c static void intel_pt_print_info(__u64 *arr, int start, int finish) arr 3056 tools/perf/util/intel-pt.c fprintf(stdout, intel_pt_info_fmts[i], arr[i]); arr 6 tools/testing/selftests/cgroup/cgroup_util.h #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) arr 29 tools/testing/selftests/ir/ir_loopback.c #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) arr 28 tools/testing/selftests/net/reuseport_bpf.c #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) arr 34 tools/testing/selftests/net/socket.c #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) arr 38 tools/testing/selftests/net/tcp_fastopen_backup_key.c #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) arr 21 tools/testing/selftests/networking/timestamping/rxtimestamp.c #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) arr 14 tools/testing/selftests/rseq/basic_percpu_ops_test.c #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) arr 32 tools/testing/selftests/rseq/rseq.c #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) arr 12 tools/testing/selftests/vm/va_128TBswitch.c #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) arr 30 tools/usb/usbip/libsrc/usbip_device_driver.c #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))