/drivers/scsi/ |
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() 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() 1219 static int inquiry_vpd_83(unsigned char *arr, int port_group_id, in inquiry_vpd_83() argument 1229 arr[0] = 0x2; /* ASCII */ in inquiry_vpd_83() 1230 arr[1] = 0x1; in inquiry_vpd_83() 1231 arr[2] = 0x0; in inquiry_vpd_83() [all …]
|
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 = scsi_mlreturn_arr; in scsi_mlreturn_string() local 453 for (k = 0; k < ARRAY_SIZE(scsi_mlreturn_arr); ++k, ++arr) { in scsi_mlreturn_string() [all …]
|
/drivers/net/wireless/intel/iwlwifi/ |
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() 266 for (j = 0; j < arr->size - 1; j++) in iwl_cmd_groups_verify_sorted() 267 if (arr->arr[j].cmd_id > arr->arr[j + 1].cmd_id) in iwl_cmd_groups_verify_sorted()
|
/drivers/net/ethernet/ibm/ehea/ |
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[i++].fwh = pr->recv_cq->fw_handle; in ehea_update_firmware_handles() 198 arr[i].adh = adapter->handle; in ehea_update_firmware_handles() [all …]
|
D | ehea.h | 332 struct sk_buff **arr; /* skb array for queue */ member 404 struct ehea_fw_handle_entry *arr; member 417 struct ehea_bcmc_reg_entry *arr; member
|
/drivers/gpu/drm/i915/selftests/ |
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()
|
/drivers/dma/dw/ |
D | of.c | 53 u32 tmp, arr[DW_DMA_MAX_NR_MASTERS], mb[DW_DMA_MAX_NR_CHANNELS]; in dw_dma_parse_dt() local 88 if (!of_property_read_u32_array(np, "data-width", arr, nr_masters)) { in dw_dma_parse_dt() 90 pdata->data_width[tmp] = arr[tmp]; in dw_dma_parse_dt() 91 } else if (!of_property_read_u32_array(np, "data_width", arr, nr_masters)) { in dw_dma_parse_dt() 93 pdata->data_width[tmp] = BIT(arr[tmp] & 0x07); in dw_dma_parse_dt()
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_dcbx.c | 159 qed_dcbx_app_update[i].name, p_data->arr[id].update, in qed_dcbx_dp_protocol() 160 p_data->arr[id].enable, p_data->arr[id].priority, in qed_dcbx_dp_protocol() 161 p_data->arr[id].tc, p_hwfn->hw_info.num_active_tc); in qed_dcbx_dp_protocol() 173 p_data->arr[type].enable = enable; in qed_dcbx_set_params() 174 p_data->arr[type].priority = prio; in qed_dcbx_set_params() 175 p_data->arr[type].tc = tc; in qed_dcbx_set_params() 177 p_data->arr[type].update = UPDATE_DCB; in qed_dcbx_set_params() 179 p_data->arr[type].update = DONT_UPDATE_DCB_DSCP; in qed_dcbx_set_params() 182 p_data->arr[type].dont_add_vlan0 = true; in qed_dcbx_set_params() 301 p_data->arr[DCBX_PROTOCOL_ETH].tc = p_hwfn->ufp_info.tc; in qed_dcbx_process_tlv() [all …]
|
/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_nffw.c | 130 nffw_res_fwinfos(struct nfp_nffw_info_data *fwinf, struct nffw_fwinfo **arr) in nffw_res_fwinfos() argument 142 *arr = &fwinf->info.v1.fwinfo[0]; in nffw_res_fwinfos() 145 *arr = &fwinf->info.v2.fwinfo[0]; in nffw_res_fwinfos() 148 *arr = NULL; in nffw_res_fwinfos()
|
/drivers/net/wireless/quantenna/qtnfmac/ |
D | qlink_util.h | 20 u16 tlv_id, const u8 arr[], in qtnf_cmd_skb_put_tlv_arr() argument 28 memcpy(hdr->val, arr, arr_len); in qtnf_cmd_skb_put_tlv_arr() 50 bool qtnf_utils_is_bit_set(const u8 *arr, unsigned int bit,
|
D | qlink_util.c | 158 bool qtnf_utils_is_bit_set(const u8 *arr, unsigned int bit, in qtnf_utils_is_bit_set() argument 167 return arr[idx] & mask; in qtnf_utils_is_bit_set()
|
/drivers/acpi/ |
D | pci_mcfg.c | 267 struct mcfg_entry *e, *arr; in pci_mcfg_parse() local 278 arr = kcalloc(n, sizeof(*arr), GFP_KERNEL); in pci_mcfg_parse() 279 if (!arr) in pci_mcfg_parse() 282 for (i = 0, e = arr; i < n; i++, mptr++, e++) { in pci_mcfg_parse()
|
/drivers/video/fbdev/matrox/ |
D | g450_pll.c | 497 unsigned int* arr; in matroxfb_g450_setclk() local 499 arr = kmalloc(sizeof(*arr) * MNP_TABLE_SIZE * 2, GFP_KERNEL); in matroxfb_g450_setclk() 500 if (arr) { in matroxfb_g450_setclk() 503 r = __g450_setclk(minfo, fout, pll, arr, arr + MNP_TABLE_SIZE); in matroxfb_g450_setclk() 504 kfree(arr); in matroxfb_g450_setclk()
|
/drivers/counter/ |
D | stm32-timer-cnt.c | 27 u32 arr; member 172 u32 arr; in stm32_count_ceiling_read() local 174 regmap_read(priv->regmap, TIM_ARR, &arr); in stm32_count_ceiling_read() 176 return snprintf(buf, PAGE_SIZE, "%u\n", arr); in stm32_count_ceiling_read() 398 regmap_read(priv->regmap, TIM_ARR, &priv->bak.arr); in stm32_timer_cnt_suspend() 424 regmap_write(priv->regmap, TIM_ARR, priv->bak.arr); in stm32_timer_cnt_resume()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_trap.h | 28 const struct mlxsw_sp_trap_group_item **arr, 31 const struct mlxsw_sp_trap_item **arr,
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | initvals_phy.h | 262 #define BBP_TABLE(arr) { arr, ARRAY_SIZE(arr), } argument
|
/drivers/iio/trigger/ |
D | stm32-timer-trigger.c | 82 u32 arr; member 241 u32 psc, arr, cr1; in stm32_tt_read_frequency() local 246 regmap_read(priv->regmap, TIM_ARR, &arr); in stm32_tt_read_frequency() 251 do_div(freq, arr + 1); in stm32_tt_read_frequency() 664 u32 arr; in stm32_count_get_preset() local 666 regmap_read(priv->regmap, TIM_ARR, &arr); in stm32_count_get_preset() 668 return snprintf(buf, PAGE_SIZE, "%u\n", arr); in stm32_count_get_preset() 840 regmap_read(priv->regmap, TIM_ARR, &priv->bak.arr); in stm32_timer_trigger_suspend() 868 regmap_write(priv->regmap, TIM_ARR, priv->bak.arr); in stm32_timer_trigger_resume()
|
/drivers/gpu/drm/i915/display/ |
D | intel_global_state.c | 105 struct __intel_global_objs_state *arr; in intel_atomic_get_global_obj_state() local 116 arr = krealloc(state->global_objs, size, GFP_KERNEL); in intel_atomic_get_global_obj_state() 117 if (!arr) in intel_atomic_get_global_obj_state() 120 state->global_objs = arr; in intel_atomic_get_global_obj_state()
|
/drivers/media/pci/intel/ipu3/ |
D | ipu3-cio2.c | 1882 } arr[2] = { in arrange() local 1890 while (CHUNK_SIZE(&arr[0]) && CHUNK_SIZE(&arr[1])) { in arrange() 1897 size0 = min(CHUNK_SIZE(&arr[0]), CHUNK_SIZE(&arr[1])); in arrange() 1901 u8 *d = ptr + elem_size * (arr[1].begin + i); in arrange() 1902 u8 *s = ptr + elem_size * (arr[0].begin + i); in arrange() 1909 if (CHUNK_SIZE(&arr[0]) > CHUNK_SIZE(&arr[1])) { in arrange() 1911 arr[0].begin += size0; in arrange() 1917 arr[0].begin = arr[1].begin; in arrange() 1918 arr[0].end = arr[1].begin + size0 - 1; in arrange() 1919 arr[1].begin += size0; in arrange()
|
/drivers/infiniband/hw/hfi1/ |
D | user_sdma.h | 97 static inline int ahg_header_set(u32 *arr, int idx, size_t array_size, in ahg_header_set() argument 102 arr[idx++] = sdma_build_ahg_descriptor(value, dw, bit, width); in ahg_header_set()
|
/drivers/mfd/ |
D | stm32-timers.c | 161 u32 arr; in stm32_timers_get_arr_size() local 164 regmap_read(ddata->regmap, TIM_ARR, &arr); in stm32_timers_get_arr_size() 172 regmap_write(ddata->regmap, TIM_ARR, arr); in stm32_timers_get_arr_size()
|
/drivers/infiniband/hw/i40iw/ |
D | i40iw_verbs.c | 1325 static bool i40iw_check_mem_contiguous(u64 *arr, u32 npages, u32 pg_size) in i40iw_check_mem_contiguous() argument 1330 if ((*arr + (pg_size * pg_idx)) != arr[pg_idx]) in i40iw_check_mem_contiguous() 1345 u64 *arr = NULL; in i40iw_check_mr_contiguous() local 1351 arr = (u64 *)palloc->level1.addr; in i40iw_check_mr_contiguous() 1352 ret = i40iw_check_mem_contiguous(arr, palloc->total_cnt, pg_size); in i40iw_check_mr_contiguous() 1359 arr = (u64 *)leaf->addr; in i40iw_check_mr_contiguous() 1360 if ((*start_addr + (i * pg_size * PBLE_PER_PAGE)) != *arr) in i40iw_check_mr_contiguous() 1362 ret = i40iw_check_mem_contiguous(arr, leaf->cnt, pg_size); in i40iw_check_mr_contiguous() 1427 u64 *arr = iwmr->pgaddrmem; in i40iw_handle_q_mem() local 1447 arr = (u64 *)palloc->level1.addr; in i40iw_handle_q_mem() [all …]
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | manager-sysfs.c | 380 s16 *arr; in manager_cpr_coef_store() local 391 arr = (s16[]){ coefs.rr, coefs.rg, coefs.rb, in manager_cpr_coef_store() 396 if (arr[i] < -512 || arr[i] > 511) in manager_cpr_coef_store()
|
/drivers/xen/xenbus/ |
D | xenbus_probe.c | 83 match_device(const struct xenbus_device_id *arr, struct xenbus_device *dev) in match_device() argument 85 for (; *arr->devicetype != '\0'; arr++) { in match_device() 86 if (!strcmp(arr->devicetype, dev->devicetype)) in match_device() 87 return arr; in match_device()
|
/drivers/crypto/ |
D | n2_core.c | 679 } arr[N2_CHUNK_ARR_LEN]; member 815 in_place = (cp->dest_paddr == cp->arr[0].src_paddr); in __n2_crypt_chunk() 817 ent->control = control_word_base(cp->arr[0].src_len, in __n2_crypt_chunk() 822 ent->src_addr = cp->arr[0].src_paddr; in __n2_crypt_chunk() 833 ent->control = cp->arr[i].src_len - 1; in __n2_crypt_chunk() 834 ent->src_addr = cp->arr[i].src_paddr; in __n2_crypt_chunk() 907 chunk->arr[chunk->arr_len].src_paddr = src_paddr; in n2_compute_chunks() 908 chunk->arr[chunk->arr_len].src_len = this_len; in n2_compute_chunks() 1037 iv_paddr = (tmp->arr[tmp->arr_len-1].src_paddr + in n2_do_chaining() 1038 tmp->arr[tmp->arr_len-1].src_len - in n2_do_chaining() [all …]
|