| /drivers/gpu/drm/amd/amdgpu/ |
| A D | amdgpu_cper.c | 147 struct cper_sec_crashdump_fatal *section; in amdgpu_cper_entry_fill_fatal_section() local 159 section->body.data = reg_data; in amdgpu_cper_entry_fill_fatal_section() 174 struct cper_sec_nonstd_err *section; in amdgpu_cper_entry_fill_runtime_section() local 188 section->hdr.valid_bits.err_info_cnt = 1; in amdgpu_cper_entry_fill_runtime_section() 189 section->hdr.valid_bits.err_context_cnt = 1; in amdgpu_cper_entry_fill_runtime_section() 191 section->info.error_type = RUNTIME; in amdgpu_cper_entry_fill_runtime_section() 194 section->ctx.reg_arr_size = sizeof(section->ctx.reg_dump); in amdgpu_cper_entry_fill_runtime_section() 208 struct cper_sec_nonstd_err *section; in amdgpu_cper_entry_fill_bad_page_threshold_section() local 218 section->hdr.valid_bits.err_info_cnt = 1; in amdgpu_cper_entry_fill_bad_page_threshold_section() 221 section->info.error_type = RUNTIME; in amdgpu_cper_entry_fill_bad_page_threshold_section() [all …]
|
| /drivers/mtd/nand/spi/ |
| A D | winbond.c | 93 if (section > 3) in w25m02gv_ooblayout_ecc() 96 region->offset = (16 * section) + 8; in w25m02gv_ooblayout_ecc() 105 if (section > 3) in w25m02gv_ooblayout_free() 108 region->offset = (16 * section) + 2; in w25m02gv_ooblayout_free() 136 if (section > 3) in w25n01kv_ooblayout_ecc() 148 if (section > 3) in w25n02kv_ooblayout_ecc() 160 if (section > 3) in w25n02kv_ooblayout_free() 182 if (section > 7) in w35n01jw_ooblayout_ecc() 194 if (section > 7) in w35n01jw_ooblayout_free() 197 region->offset = 16 * section; in w35n01jw_ooblayout_free() [all …]
|
| A D | ato.c | 30 static int ato25d1ga_ooblayout_ecc(struct mtd_info *mtd, int section, in ato25d1ga_ooblayout_ecc() argument 33 if (section > 3) in ato25d1ga_ooblayout_ecc() 36 region->offset = (16 * section) + 8; in ato25d1ga_ooblayout_ecc() 41 static int ato25d1ga_ooblayout_free(struct mtd_info *mtd, int section, in ato25d1ga_ooblayout_free() argument 44 if (section > 3) in ato25d1ga_ooblayout_free() 47 if (section) { in ato25d1ga_ooblayout_free() 48 region->offset = (16 * section); in ato25d1ga_ooblayout_free()
|
| A D | gigadevice.c | 66 static int gd5fxgq4xa_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgq4xa_ooblayout_ecc() argument 69 if (section > 3) in gd5fxgq4xa_ooblayout_ecc() 72 region->offset = (16 * section) + 8; in gd5fxgq4xa_ooblayout_ecc() 78 static int gd5fxgq4xa_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgq4xa_ooblayout_free() argument 81 if (section > 3) in gd5fxgq4xa_ooblayout_free() 84 if (section) { in gd5fxgq4xa_ooblayout_free() 85 region->offset = 16 * section; in gd5fxgq4xa_ooblayout_free() 127 if (section) in gd5fxgqx_variant2_ooblayout_ecc() 139 if (section) in gd5fxgqx_variant2_ooblayout_free() 158 if (section) in gd5fxgq4xc_ooblayout_256_ecc() [all …]
|
| A D | paragon.c | 41 static int pn26g0xa_ooblayout_ecc(struct mtd_info *mtd, int section, in pn26g0xa_ooblayout_ecc() argument 44 if (section > 3) in pn26g0xa_ooblayout_ecc() 47 region->offset = 6 + (15 * section); /* 4 BBM + 2 user bytes */ in pn26g0xa_ooblayout_ecc() 53 static int pn26g0xa_ooblayout_free(struct mtd_info *mtd, int section, in pn26g0xa_ooblayout_free() argument 56 if (section > 4) in pn26g0xa_ooblayout_free() 59 if (section == 4) { in pn26g0xa_ooblayout_free() 63 region->offset = 4 + (15 * section); in pn26g0xa_ooblayout_free()
|
| A D | xtx.c | 41 static int xt26g0xa_ooblayout_ecc(struct mtd_info *mtd, int section, in xt26g0xa_ooblayout_ecc() argument 44 if (section) in xt26g0xa_ooblayout_ecc() 53 static int xt26g0xa_ooblayout_free(struct mtd_info *mtd, int section, in xt26g0xa_ooblayout_free() argument 56 if (section) in xt26g0xa_ooblayout_free() 94 static int xt26xxxd_ooblayout_ecc(struct mtd_info *mtd, int section, in xt26xxxd_ooblayout_ecc() argument 97 if (section) in xt26xxxd_ooblayout_ecc() 106 static int xt26xxxd_ooblayout_free(struct mtd_info *mtd, int section, in xt26xxxd_ooblayout_free() argument 109 if (section) in xt26xxxd_ooblayout_free()
|
| A D | micron.c | 66 static int micron_8_ooblayout_ecc(struct mtd_info *mtd, int section, in micron_8_ooblayout_ecc() argument 69 if (section) in micron_8_ooblayout_ecc() 78 static int micron_8_ooblayout_free(struct mtd_info *mtd, int section, in micron_8_ooblayout_free() argument 81 if (section) in micron_8_ooblayout_free() 96 static int micron_4_ooblayout_ecc(struct mtd_info *mtd, int section, in micron_4_ooblayout_ecc() argument 101 if (section >= spinand->base.memorg.pagesize / in micron_4_ooblayout_ecc() 105 region->offset = (section * 16) + 8; in micron_4_ooblayout_ecc() 111 static int micron_4_ooblayout_free(struct mtd_info *mtd, int section, in micron_4_ooblayout_free() argument 116 if (section >= spinand->base.memorg.pagesize / in micron_4_ooblayout_free() 120 if (section) { in micron_4_ooblayout_free() [all …]
|
| A D | esmt.c | 70 static int f50l1g41lb_ooblayout_ecc(struct mtd_info *mtd, int section, in f50l1g41lb_ooblayout_ecc() argument 75 if (section >= ESMT_OOB_SECTION_COUNT) in f50l1g41lb_ooblayout_ecc() 78 region->offset = section * ESMT_OOB_SECTION_SIZE(nand) + in f50l1g41lb_ooblayout_ecc() 85 static int f50l1g41lb_ooblayout_free(struct mtd_info *mtd, int section, in f50l1g41lb_ooblayout_free() argument 90 if (section >= ESMT_OOB_SECTION_COUNT) in f50l1g41lb_ooblayout_free() 97 region->offset = section * ESMT_OOB_SECTION_SIZE(nand) + 2; in f50l1g41lb_ooblayout_free()
|
| A D | foresee.c | 28 static int f35sqa002g_ooblayout_ecc(struct mtd_info *mtd, int section, in f35sqa002g_ooblayout_ecc() argument 34 static int f35sqa002g_ooblayout_free(struct mtd_info *mtd, int section, in f35sqa002g_ooblayout_free() argument 37 if (section) in f35sqa002g_ooblayout_free()
|
| A D | alliancememory.c | 47 static int am_ooblayout_ecc(struct mtd_info *mtd, int section, in am_ooblayout_ecc() argument 62 static int am_ooblayout_free(struct mtd_info *mtd, int section, in am_ooblayout_free() argument 67 if (section) in am_ooblayout_free()
|
| A D | skyhigh.c | 35 static int skyhigh_spinand_ooblayout_ecc(struct mtd_info *mtd, int section, in skyhigh_spinand_ooblayout_ecc() argument 42 static int skyhigh_spinand_ooblayout_free(struct mtd_info *mtd, int section, in skyhigh_spinand_ooblayout_free() argument 45 if (section) in skyhigh_spinand_ooblayout_free()
|
| A D | toshiba.c | 41 static int tx58cxgxsxraix_ooblayout_ecc(struct mtd_info *mtd, int section, in tx58cxgxsxraix_ooblayout_ecc() argument 44 if (section > 0) in tx58cxgxsxraix_ooblayout_ecc() 53 static int tx58cxgxsxraix_ooblayout_free(struct mtd_info *mtd, int section, in tx58cxgxsxraix_ooblayout_free() argument 56 if (section > 0) in tx58cxgxsxraix_ooblayout_free()
|
| /drivers/gpu/drm/panthor/ |
| A D | panthor_fw.c | 404 if (!section->data.size && in panthor_fw_init_section_mem() 412 memcpy(section->mem->kmap, section->data.buf, section->data.size); in panthor_fw_init_section_mem() 414 memset(section->mem->kmap + section->data.size, 0, in panthor_fw_init_section_mem() 415 panthor_kernel_bo_size(section->mem) - section->data.size); in panthor_fw_init_section_mem() 550 section = drmm_kzalloc(&ptdev->base, sizeof(*section), GFP_KERNEL); in panthor_fw_load_section_entry() 551 if (!section) in panthor_fw_load_section_entry() 555 section->flags = hdr.flags; in panthor_fw_load_section_entry() 558 if (section->data.size > 0) { in panthor_fw_load_section_entry() 565 section->data.buf = data; in panthor_fw_load_section_entry() 576 section->name = name; in panthor_fw_load_section_entry() [all …]
|
| /drivers/net/wireless/intel/iwlwifi/mvm/ |
| A D | nvm.c | 39 .type = cpu_to_le16(section), in iwl_nvm_write_chunk() 64 section, le16_to_cpu(nvm_resp->status)); in iwl_nvm_write_chunk() 78 .type = cpu_to_le16(section), in iwl_nvm_read_chunk() 158 ret = iwl_nvm_write_chunk(mvm, section, offset, in iwl_nvm_write_section() 203 section, offset, length); in iwl_nvm_read_section() 212 "NVM section %d read completed\n", section); in iwl_nvm_read_section() 308 int ret, section; in iwl_nvm_init() local 323 for (section = 0; section < NVM_MAX_NUM_SECTIONS; section++) { in iwl_nvm_init() 342 mvm->nvm_sections[section].data = temp; in iwl_nvm_init() 343 mvm->nvm_sections[section].length = ret; in iwl_nvm_init() [all …]
|
| /drivers/mtd/nand/raw/ |
| A D | sm_common.c | 12 static int oob_sm_ooblayout_ecc(struct mtd_info *mtd, int section, in oob_sm_ooblayout_ecc() argument 15 if (section > 1) in oob_sm_ooblayout_ecc() 19 oobregion->offset = ((section + 1) * 8) - 3; in oob_sm_ooblayout_ecc() 24 static int oob_sm_ooblayout_free(struct mtd_info *mtd, int section, in oob_sm_ooblayout_free() argument 27 switch (section) { in oob_sm_ooblayout_free() 61 static int oob_sm_small_ooblayout_ecc(struct mtd_info *mtd, int section, in oob_sm_small_ooblayout_ecc() argument 64 if (section) in oob_sm_small_ooblayout_ecc() 73 static int oob_sm_small_ooblayout_free(struct mtd_info *mtd, int section, in oob_sm_small_ooblayout_free() argument 76 switch (section) { in oob_sm_small_ooblayout_free()
|
| A D | nand_micron.c | 101 int section, in micron_nand_on_die_4_ooblayout_ecc() argument 104 if (section >= 4) in micron_nand_on_die_4_ooblayout_ecc() 107 oobregion->offset = (section * 16) + 8; in micron_nand_on_die_4_ooblayout_ecc() 114 int section, in micron_nand_on_die_4_ooblayout_free() argument 117 if (section >= 4) in micron_nand_on_die_4_ooblayout_free() 120 oobregion->offset = (section * 16) + 2; in micron_nand_on_die_4_ooblayout_free() 132 int section, in micron_nand_on_die_8_ooblayout_ecc() argument 137 if (section) in micron_nand_on_die_8_ooblayout_ecc() 147 int section, in micron_nand_on_die_8_ooblayout_free() argument 152 if (section) in micron_nand_on_die_8_ooblayout_free()
|
| A D | davinci_nand.c | 449 static int hwecc4_ooblayout_small_ecc(struct mtd_info *mtd, int section, in hwecc4_ooblayout_small_ecc() argument 452 if (section > 2) in hwecc4_ooblayout_small_ecc() 455 if (!section) { in hwecc4_ooblayout_small_ecc() 458 } else if (section == 1) { in hwecc4_ooblayout_small_ecc() 472 if (section > 1) in hwecc4_ooblayout_small_free() 475 if (!section) { in hwecc4_ooblayout_small_free() 491 static int hwecc4_ooblayout_large_ecc(struct mtd_info *mtd, int section, in hwecc4_ooblayout_large_ecc() argument 498 if (section >= nregions) in hwecc4_ooblayout_large_ecc() 501 oobregion->offset = (section * 16) + 6; in hwecc4_ooblayout_large_ecc() 515 if (section >= (nregions - 1)) in hwecc4_ooblayout_large_free() [all …]
|
| A D | fsmc_nand.c | 172 if (section >= chip->ecc.steps) in fsmc_ecc1_ooblayout_ecc() 175 oobregion->offset = (section * 16) + 2; in fsmc_ecc1_ooblayout_ecc() 186 if (section >= chip->ecc.steps) in fsmc_ecc1_ooblayout_free() 189 oobregion->offset = (section * 16) + 8; in fsmc_ecc1_ooblayout_free() 191 if (section < chip->ecc.steps - 1) in fsmc_ecc1_ooblayout_free() 215 if (section >= chip->ecc.steps) in fsmc_ecc4_ooblayout_ecc() 220 if (!section && mtd->writesize <= 512) in fsmc_ecc4_ooblayout_ecc() 223 oobregion->offset = (section * 16) + 2; in fsmc_ecc4_ooblayout_ecc() 233 if (section >= chip->ecc.steps) in fsmc_ecc4_ooblayout_free() 236 oobregion->offset = (section * 16) + 15; in fsmc_ecc4_ooblayout_free() [all …]
|
| /drivers/gpu/drm/ |
| A D | drm_displayid.c | 88 if (!iter->section) in displayid_iter_block() 91 block = (const struct displayid_block *)&iter->section[iter->idx]; in displayid_iter_block() 108 if (iter->section) { in __displayid_iter_next() 112 iter->section = NULL; in __displayid_iter_next() 127 bool base_section = !iter->section; in __displayid_iter_next() 129 iter->section = drm_find_displayid_extension(iter->drm_edid, in __displayid_iter_next() 133 if (!iter->section) { in __displayid_iter_next() 142 base = displayid_get_header(iter->section, iter->length, in __displayid_iter_next()
|
| /drivers/mtd/nand/ |
| A D | ecc.c | 163 static int nand_ooblayout_ecc_sp(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_sp() argument 169 if (section > 1) in nand_ooblayout_ecc_sp() 172 if (!section) { in nand_ooblayout_ecc_sp() 192 if (section > 1) in nand_ooblayout_free_sp() 196 if (section) in nand_ooblayout_free_sp() 203 if (!section) in nand_ooblayout_free_sp() 229 if (section || !total_ecc_bytes) in nand_ooblayout_ecc_lp() 244 if (section) in nand_ooblayout_free_lp() 274 if (section) in nand_ooblayout_ecc_lp_hamming() 302 if (section < 0 || section > 1) in nand_ooblayout_free_lp_hamming() [all …]
|
| /drivers/crypto/intel/qat/qat_common/ |
| A D | adf_ctl_drv.c | 115 const char *section, in adf_add_key_value_data() argument 122 if (adf_cfg_add_key_value_param(accel_dev, section, in adf_add_key_value_data() 130 if (adf_cfg_add_key_value_param(accel_dev, section, in adf_add_key_value_data() 146 struct adf_user_cfg_section section, *section_head; in adf_copy_key_value_data() local 152 if (copy_from_user(§ion, (void __user *)section_head, in adf_copy_key_value_data() 159 if (adf_cfg_section_add(accel_dev, section.name)) { in adf_copy_key_value_data() 165 params_head = section.params; in adf_copy_key_value_data() 174 if (adf_add_key_value_data(accel_dev, section.name, in adf_copy_key_value_data() 180 section_head = section.next; in adf_copy_key_value_data()
|
| A D | adf_cfg.c | 285 struct adf_cfg_section *section = adf_cfg_sec_find(accel_dev, in adf_cfg_add_key_value_param() local 289 if (!section) in adf_cfg_add_key_value_param() 325 adf_cfg_keyval_remove(key, section); in adf_cfg_add_key_value_param() 332 adf_cfg_keyval_add(key_val, section); in adf_cfg_add_key_value_param() 373 const char *section, const char *name, in adf_cfg_get_param_value() argument 380 ret = adf_cfg_key_val_get(accel_dev, section, name, value); in adf_cfg_get_param_value()
|
| /drivers/net/ethernet/intel/i40e/ |
| A D | i40e_ddp.c | 151 sec->section.type = SECTION_TYPE_INFO; in i40e_add_pinfo() 152 sec->section.offset = sizeof(struct i40e_profile_section_header); in i40e_add_pinfo() 153 sec->section.size = sizeof(struct i40e_profile_info); in i40e_add_pinfo() 155 sec->section.offset); in i40e_add_pinfo() 191 sec->section.type = SECTION_TYPE_INFO; in i40e_del_pinfo() 192 sec->section.offset = sizeof(struct i40e_profile_section_header); in i40e_del_pinfo() 193 sec->section.size = sizeof(struct i40e_profile_info); in i40e_del_pinfo() 195 sec->section.offset); in i40e_del_pinfo()
|
| /drivers/net/ethernet/intel/ice/ |
| A D | ice_ddp.c | 479 marker_ptype = section; in ice_marker_ptype_tcam_handler() 546 void *section, u32 index, u32 *offset) in ice_label_enum_handler() argument 550 if (!section) in ice_label_enum_handler() 559 labels = section; in ice_label_enum_handler() 611 if (!section) in ice_boost_tcam_handler() 623 boost = section; in ice_boost_tcam_handler() 1044 void **section) in ice_pkg_buf_alloc_single_section() argument 1048 if (!section) in ice_pkg_buf_alloc_single_section() 1059 if (!*section) in ice_pkg_buf_alloc_single_section() 2386 const struct ice_buf_hdr *section; in ice_cfg_tx_topo() local [all …]
|
| /drivers/mtd/nand/raw/ingenic/ |
| A D | ingenic_nand_drv.c | 71 static int qi_lb60_ooblayout_ecc(struct mtd_info *mtd, int section, in qi_lb60_ooblayout_ecc() argument 77 if (section || !ecc->total) in qi_lb60_ooblayout_ecc() 86 static int qi_lb60_ooblayout_free(struct mtd_info *mtd, int section, in qi_lb60_ooblayout_free() argument 92 if (section) in qi_lb60_ooblayout_free() 106 static int jz4725b_ooblayout_ecc(struct mtd_info *mtd, int section, in jz4725b_ooblayout_ecc() argument 112 if (section || !ecc->total) in jz4725b_ooblayout_ecc() 121 static int jz4725b_ooblayout_free(struct mtd_info *mtd, int section, in jz4725b_ooblayout_free() argument 127 if (section) in jz4725b_ooblayout_free()
|