Home
last modified time | relevance | path

Searched refs:section (Results 1 – 25 of 135) sorted by relevance

123456

/drivers/mtd/nand/spi/
Dgigadevice.c58 static int gd5fxgq4xa_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgq4xa_ooblayout_ecc() argument
61 if (section > 3) in gd5fxgq4xa_ooblayout_ecc()
64 region->offset = (16 * section) + 8; in gd5fxgq4xa_ooblayout_ecc()
70 static int gd5fxgq4xa_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgq4xa_ooblayout_free() argument
73 if (section > 3) in gd5fxgq4xa_ooblayout_free()
76 if (section) { in gd5fxgq4xa_ooblayout_free()
77 region->offset = 16 * section; in gd5fxgq4xa_ooblayout_free()
116 static int gd5fxgqx_variant2_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgqx_variant2_ooblayout_ecc() argument
119 if (section) in gd5fxgqx_variant2_ooblayout_ecc()
128 static int gd5fxgqx_variant2_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgqx_variant2_ooblayout_free() argument
[all …]
Dmicron.c60 static int micron_8_ooblayout_ecc(struct mtd_info *mtd, int section, in micron_8_ooblayout_ecc() argument
63 if (section) in micron_8_ooblayout_ecc()
72 static int micron_8_ooblayout_free(struct mtd_info *mtd, int section, in micron_8_ooblayout_free() argument
75 if (section) in micron_8_ooblayout_free()
90 static int micron_4_ooblayout_ecc(struct mtd_info *mtd, int section, in micron_4_ooblayout_ecc() argument
95 if (section >= spinand->base.memorg.pagesize / in micron_4_ooblayout_ecc()
99 region->offset = (section * 16) + 8; in micron_4_ooblayout_ecc()
105 static int micron_4_ooblayout_free(struct mtd_info *mtd, int section, in micron_4_ooblayout_free() argument
110 if (section >= spinand->base.memorg.pagesize / in micron_4_ooblayout_free()
114 if (section) { in micron_4_ooblayout_free()
[all …]
Dparagon.c41 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()
Dwinbond.c34 static int w25m02gv_ooblayout_ecc(struct mtd_info *mtd, int section, in w25m02gv_ooblayout_ecc() argument
37 if (section > 3) in w25m02gv_ooblayout_ecc()
40 region->offset = (16 * section) + 8; in w25m02gv_ooblayout_ecc()
46 static int w25m02gv_ooblayout_free(struct mtd_info *mtd, int section, in w25m02gv_ooblayout_free() argument
49 if (section > 3) in w25m02gv_ooblayout_free()
52 region->offset = (16 * section) + 2; in w25m02gv_ooblayout_free()
Dtoshiba.c41 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()
Dmacronix.c29 static int mx35lfxge4ab_ooblayout_ecc(struct mtd_info *mtd, int section, in mx35lfxge4ab_ooblayout_ecc() argument
35 static int mx35lfxge4ab_ooblayout_free(struct mtd_info *mtd, int section, in mx35lfxge4ab_ooblayout_free() argument
38 if (section) in mx35lfxge4ab_ooblayout_free()
/drivers/net/wireless/intel/iwlwifi/mvm/
Dnvm.c34 static int iwl_nvm_write_chunk(struct iwl_mvm *mvm, u16 section, in iwl_nvm_write_chunk() argument
40 .type = cpu_to_le16(section), in iwl_nvm_write_chunk()
65 section, le16_to_cpu(nvm_resp->status)); in iwl_nvm_write_chunk()
73 static int iwl_nvm_read_chunk(struct iwl_mvm *mvm, u16 section, in iwl_nvm_read_chunk() argument
79 .type = cpu_to_le16(section), in iwl_nvm_read_chunk()
146 static int iwl_nvm_write_section(struct iwl_mvm *mvm, u16 section, in iwl_nvm_write_section() argument
159 ret = iwl_nvm_write_chunk(mvm, section, offset, in iwl_nvm_write_section()
180 static int iwl_nvm_read_section(struct iwl_mvm *mvm, u16 section, in iwl_nvm_read_section() argument
200 ret = iwl_nvm_read_chunk(mvm, section, offset, length, data); in iwl_nvm_read_section()
204 section, offset, length); in iwl_nvm_read_section()
[all …]
/drivers/mtd/nand/
Decc.c157 static int nand_ooblayout_ecc_sp(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_sp() argument
163 if (section > 1) in nand_ooblayout_ecc_sp()
166 if (!section) { in nand_ooblayout_ecc_sp()
183 static int nand_ooblayout_free_sp(struct mtd_info *mtd, int section, in nand_ooblayout_free_sp() argument
186 if (section > 1) in nand_ooblayout_free_sp()
190 if (section) in nand_ooblayout_free_sp()
197 if (!section) in nand_ooblayout_free_sp()
217 static int nand_ooblayout_ecc_lp(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_lp() argument
223 if (section || !total_ecc_bytes) in nand_ooblayout_ecc_lp()
232 static int nand_ooblayout_free_lp(struct mtd_info *mtd, int section, in nand_ooblayout_free_lp() argument
[all …]
/drivers/mtd/nand/raw/
Dsm_common.c12 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()
Dnand_micron.c101 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()
Dfsmc_nand.c167 static int fsmc_ecc1_ooblayout_ecc(struct mtd_info *mtd, int section, in fsmc_ecc1_ooblayout_ecc() argument
172 if (section >= chip->ecc.steps) in fsmc_ecc1_ooblayout_ecc()
175 oobregion->offset = (section * 16) + 2; in fsmc_ecc1_ooblayout_ecc()
181 static int fsmc_ecc1_ooblayout_free(struct mtd_info *mtd, int section, in fsmc_ecc1_ooblayout_free() argument
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()
210 static int fsmc_ecc4_ooblayout_ecc(struct mtd_info *mtd, int section, in fsmc_ecc4_ooblayout_ecc() argument
215 if (section >= chip->ecc.steps) in fsmc_ecc4_ooblayout_ecc()
220 if (!section && mtd->writesize <= 512) in fsmc_ecc4_ooblayout_ecc()
[all …]
Dmxc_nand.c1003 static int mxc_v1_ooblayout_ecc(struct mtd_info *mtd, int section, in mxc_v1_ooblayout_ecc() argument
1008 if (section >= nand_chip->ecc.steps) in mxc_v1_ooblayout_ecc()
1011 oobregion->offset = (section * 16) + 6; in mxc_v1_ooblayout_ecc()
1017 static int mxc_v1_ooblayout_free(struct mtd_info *mtd, int section, in mxc_v1_ooblayout_free() argument
1022 if (section > nand_chip->ecc.steps) in mxc_v1_ooblayout_free()
1025 if (!section) { in mxc_v1_ooblayout_free()
1034 oobregion->offset = ((section - 1) * 16) + MXC_V1_ECCBYTES + 6; in mxc_v1_ooblayout_free()
1035 if (section < nand_chip->ecc.steps) in mxc_v1_ooblayout_free()
1036 oobregion->length = (section * 16) + 6 - in mxc_v1_ooblayout_free()
1050 static int mxc_v2_ooblayout_ecc(struct mtd_info *mtd, int section, in mxc_v2_ooblayout_ecc() argument
[all …]
Dsh_flctl.c32 static int flctl_4secc_ooblayout_sp_ecc(struct mtd_info *mtd, int section, in flctl_4secc_ooblayout_sp_ecc() argument
37 if (section) in flctl_4secc_ooblayout_sp_ecc()
46 static int flctl_4secc_ooblayout_sp_free(struct mtd_info *mtd, int section, in flctl_4secc_ooblayout_sp_free() argument
49 if (section) in flctl_4secc_ooblayout_sp_free()
63 static int flctl_4secc_ooblayout_lp_ecc(struct mtd_info *mtd, int section, in flctl_4secc_ooblayout_lp_ecc() argument
68 if (section >= chip->ecc.steps) in flctl_4secc_ooblayout_lp_ecc()
71 oobregion->offset = (section * 16) + 6; in flctl_4secc_ooblayout_lp_ecc()
77 static int flctl_4secc_ooblayout_lp_free(struct mtd_info *mtd, int section, in flctl_4secc_ooblayout_lp_free() argument
82 if (section >= chip->ecc.steps) in flctl_4secc_ooblayout_lp_free()
85 oobregion->offset = section * 16; in flctl_4secc_ooblayout_lp_free()
[all …]
Ddavinci_nand.c380 static int hwecc4_ooblayout_small_ecc(struct mtd_info *mtd, int section, in hwecc4_ooblayout_small_ecc() argument
383 if (section > 2) in hwecc4_ooblayout_small_ecc()
386 if (!section) { in hwecc4_ooblayout_small_ecc()
389 } else if (section == 1) { in hwecc4_ooblayout_small_ecc()
400 static int hwecc4_ooblayout_small_free(struct mtd_info *mtd, int section, in hwecc4_ooblayout_small_free() argument
403 if (section > 1) in hwecc4_ooblayout_small_free()
406 if (!section) { in hwecc4_ooblayout_small_free()
Dfsl_elbc_nand.c68 static int fsl_elbc_ooblayout_ecc(struct mtd_info *mtd, int section, in fsl_elbc_ooblayout_ecc() argument
74 if (section >= chip->ecc.steps) in fsl_elbc_ooblayout_ecc()
77 oobregion->offset = (16 * section) + 6; in fsl_elbc_ooblayout_ecc()
86 static int fsl_elbc_ooblayout_free(struct mtd_info *mtd, int section, in fsl_elbc_ooblayout_free() argument
92 if (section > chip->ecc.steps) in fsl_elbc_ooblayout_free()
95 if (!section) { in fsl_elbc_ooblayout_free()
101 oobregion->offset = (16 * section) - in fsl_elbc_ooblayout_free()
103 if (section < chip->ecc.steps) in fsl_elbc_ooblayout_free()
/drivers/gpu/drm/
Ddrm_displayid.c89 if (!iter->section) in displayid_iter_block()
92 block = (const struct displayid_block *)&iter->section[iter->idx]; in displayid_iter_block()
109 if (iter->section) { in __displayid_iter_next()
113 iter->section = NULL; in __displayid_iter_next()
127 iter->section = drm_find_displayid_extension(iter->edid, in __displayid_iter_next()
131 if (!iter->section) { in __displayid_iter_next()
/drivers/crypto/qat/qat_common/
Dadf_ctl_drv.c108 const char *section, in adf_add_key_value_data() argument
115 if (adf_cfg_add_key_value_param(accel_dev, section, in adf_add_key_value_data()
123 if (adf_cfg_add_key_value_param(accel_dev, section, in adf_add_key_value_data()
139 struct adf_user_cfg_section section, *section_head; in adf_copy_key_value_data() local
144 if (copy_from_user(&section, (void __user *)section_head, in adf_copy_key_value_data()
151 if (adf_cfg_section_add(accel_dev, section.name)) { in adf_copy_key_value_data()
157 params_head = section.params; in adf_copy_key_value_data()
166 if (adf_add_key_value_data(accel_dev, section.name, in adf_copy_key_value_data()
172 section_head = section.next; in adf_copy_key_value_data()
Dadf_cfg.c223 struct adf_cfg_section *section = adf_cfg_sec_find(accel_dev, in adf_cfg_add_key_value_param() local
225 if (!section) in adf_cfg_add_key_value_param()
250 adf_cfg_keyval_add(key_val, section); in adf_cfg_add_key_value_param()
289 const char *section, const char *name, in adf_cfg_get_param_value() argument
296 ret = adf_cfg_key_val_get(accel_dev, section, name, value); in adf_cfg_get_param_value()
Dadf_transport.c217 int adf_create_ring(struct adf_accel_dev *accel_dev, const char *section, in adf_create_ring() argument
246 if (adf_cfg_get_param_value(accel_dev, section, ring_name, val)) { in adf_create_ring()
248 section, ring_name); in adf_create_ring()
354 const char *section, const char *format, in adf_get_cfg_int() argument
362 if (adf_cfg_get_param_value(accel_dev, section, key_buf, val_buf)) in adf_get_cfg_int()
371 const char *section, in adf_get_coalesc_timer() argument
374 if (adf_get_cfg_int(bank->accel_dev, section, in adf_get_coalesc_timer()
/drivers/net/ethernet/intel/i40e/
Di40e_ddp.c133 sec->section.type = SECTION_TYPE_INFO; in i40e_add_pinfo()
134 sec->section.offset = sizeof(struct i40e_profile_section_header); in i40e_add_pinfo()
135 sec->section.size = sizeof(struct i40e_profile_info); in i40e_add_pinfo()
137 sec->section.offset); in i40e_add_pinfo()
173 sec->section.type = SECTION_TYPE_INFO; in i40e_del_pinfo()
174 sec->section.offset = sizeof(struct i40e_profile_section_header); in i40e_del_pinfo()
175 sec->section.size = sizeof(struct i40e_profile_info); in i40e_del_pinfo()
177 sec->section.offset); in i40e_del_pinfo()
/drivers/firmware/efi/libstub/
DMakefile86 STUBCOPY_FLAGS-y += --remove-section=.note.gnu.property
94 STUBCOPY_FLAGS-$(CONFIG_X86) += --rename-section .bss=.bss.efistub,load,alloc
103 STUBCOPY_FLAGS-$(CONFIG_ARM) += --rename-section .data=.data.efistub \
104 --rename-section .bss=.bss.efistub,load,alloc
/drivers/mtd/nand/raw/ingenic/
Dingenic_nand_drv.c72 static int qi_lb60_ooblayout_ecc(struct mtd_info *mtd, int section, in qi_lb60_ooblayout_ecc() argument
78 if (section || !ecc->total) in qi_lb60_ooblayout_ecc()
87 static int qi_lb60_ooblayout_free(struct mtd_info *mtd, int section, in qi_lb60_ooblayout_free() argument
93 if (section) in qi_lb60_ooblayout_free()
107 static int jz4725b_ooblayout_ecc(struct mtd_info *mtd, int section, in jz4725b_ooblayout_ecc() argument
113 if (section || !ecc->total) in jz4725b_ooblayout_ecc()
122 static int jz4725b_ooblayout_free(struct mtd_info *mtd, int section, in jz4725b_ooblayout_free() argument
128 if (section) in jz4725b_ooblayout_free()
/drivers/mtd/
Dmtdcore.c1649 int mtd_ooblayout_ecc(struct mtd_info *mtd, int section, in mtd_ooblayout_ecc() argument
1656 if (!master || section < 0) in mtd_ooblayout_ecc()
1662 return master->ooblayout->ecc(master, section, oobecc); in mtd_ooblayout_ecc()
1683 int mtd_ooblayout_free(struct mtd_info *mtd, int section, in mtd_ooblayout_free() argument
1690 if (!master || section < 0) in mtd_ooblayout_free()
1696 return master->ooblayout->free(master, section, oobfree); in mtd_ooblayout_free()
1720 int section, in mtd_ooblayout_find_region() argument
1723 int pos = 0, ret, section = 0; in mtd_ooblayout_find_region() local
1728 ret = iter(mtd, section, oobregion); in mtd_ooblayout_find_region()
1736 section++; in mtd_ooblayout_find_region()
[all …]
/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dsmu7_smumgr.c508 static void execute_pwr_dfy_table(struct pp_hwmgr *hwmgr, const PWR_DFY_Section *section) in execute_pwr_dfy_table() argument
512 cgs_write_register(hwmgr->device, mmCP_DFY_CNTL, section->dfy_cntl); in execute_pwr_dfy_table()
513 cgs_write_register(hwmgr->device, mmCP_DFY_ADDR_HI, section->dfy_addr_hi); in execute_pwr_dfy_table()
514 cgs_write_register(hwmgr->device, mmCP_DFY_ADDR_LO, section->dfy_addr_lo); in execute_pwr_dfy_table()
515 for (i = 0; i < section->dfy_size; i++) in execute_pwr_dfy_table()
516 cgs_write_register(hwmgr->device, mmCP_DFY_DATA_0, section->dfy_data[i]); in execute_pwr_dfy_table()
/drivers/md/
Ddm-integrity.c721 static void access_journal_check(struct dm_integrity_c *ic, unsigned section, unsigned offset, in access_journal_check() argument
727 if (unlikely(section >= ic->journal_sections) || in access_journal_check()
730 function, section, offset, ic->journal_sections, limit); in access_journal_check()
736 static void page_list_location(struct dm_integrity_c *ic, unsigned section, unsigned offset, in page_list_location() argument
741 access_journal_check(ic, section, offset, false, "page_list_location"); in page_list_location()
743 sector = section * ic->journal_section_sectors + offset; in page_list_location()
750 unsigned section, unsigned offset, unsigned *n_sectors) in access_page_list() argument
755 page_list_location(ic, section, offset, &pl_index, &pl_offset); in access_page_list()
765 static struct journal_sector *access_journal(struct dm_integrity_c *ic, unsigned section, unsigned … in access_journal() argument
767 return access_page_list(ic, ic->journal, section, offset, NULL); in access_journal()
[all …]

123456