Home
last modified time | relevance | path

Searched full:part (Results 1 – 25 of 5502) sorted by relevance

12345678910>>...221

/openbmc/linux/drivers/mtd/
H A Drfd_ftl.c93 static int build_block_map(struct partition *part, int block_no) in build_block_map() argument
95 struct block *block = &part->blocks[block_no]; in build_block_map()
98 block->offset = part->block_size * block_no; in build_block_map()
100 if (le16_to_cpu(part->header_cache[0]) != RFD_MAGIC) { in build_block_map()
107 for (i=0; i<part->data_sectors_per_block; i++) { in build_block_map()
110 entry = le16_to_cpu(part->header_cache[HEADER_MAP_OFFSET + i]); in build_block_map()
123 if (entry >= part->sector_count) { in build_block_map()
127 part->mbd.mtd->name, block_no, i, entry); in build_block_map()
131 if (part->sector_map[entry] != -1) { in build_block_map()
134 part->mbd.mtd->name, entry); in build_block_map()
[all …]
H A Dftl.c151 static int scan_header(partition_t *part) in scan_header() argument
157 part->header.FormattedSize = 0; in scan_header()
158 max_offset = (0x100000<part->mbd.mtd->size)?0x100000:part->mbd.mtd->size; in scan_header()
162 offset += part->mbd.mtd->erasesize ? : 0x2000) { in scan_header()
164 err = mtd_read(part->mbd.mtd, offset, sizeof(header), &ret, in scan_header()
183 if ((1 << header.EraseUnitSize) != part->mbd.mtd->erasesize) { in scan_header()
185 1 << header.EraseUnitSize,part->mbd.mtd->erasesize); in scan_header()
188 part->header = header; in scan_header()
192 static int build_maps(partition_t *part) in build_maps() argument
202 part->DataUnits = le16_to_cpu(part->header.NumEraseUnits) - in build_maps()
[all …]
H A Dmtdpart.c37 WARN_ON(!list_empty(&mtd->part.node)); in release_mtd_partition()
42 const struct mtd_partition *part, in allocate_partition() argument
49 parent->part.size : parent->size; in allocate_partition()
57 name = kstrdup(part->name, GFP_KERNEL); in allocate_partition()
68 child->part.flags = parent->flags & ~part->mask_flags; in allocate_partition()
69 child->part.flags |= part->add_flags; in allocate_partition()
70 child->flags = child->part.flags; in allocate_partition()
71 child->part.size = part->size; in allocate_partition()
91 child->dev.of_node = part->of_node; in allocate_partition()
93 child->part.offset = part->offset; in allocate_partition()
[all …]
/openbmc/openbmc/poky/scripts/lib/wic/plugins/imager/
H A Ddirect.py73 for part in self.parts:
74 if not self.ks.bootloader.source and part.mountpoint == "/boot":
75 self.ks.bootloader.source = part.source
118 for part in self.parts:
119 if not part.realnum or not part.mountpoint \
120 … or part.mountpoint == "/" or not (part.mountpoint.startswith('/') or part.mountpoint == "swap"):
123 if part.use_uuid:
124 if part.fsuuid:
126 if len(part.fsuuid) == 10:
128 (part.fsuuid[2:6], part.fsuuid[6:])
[all …]
/openbmc/linux/include/linux/
H A Dpart_stat.h20 * {disk|part|all}_stat_{add|sub|inc|dec}() modify the stat counters and should
28 #define part_stat_get_cpu(part, field, cpu) \ argument
29 (per_cpu_ptr((part)->bd_stats, (cpu))->field)
31 #define part_stat_get(part, field) \ argument
32 part_stat_get_cpu(part, field, smp_processor_id())
34 #define part_stat_read(part, field) \ argument
36 typeof((part)->bd_stats->field) res = 0; \
39 res += per_cpu_ptr((part)->bd_stats, _cpu)->field; \
43 static inline void part_stat_set_all(struct block_device *part, int value) in part_stat_set_all() argument
48 memset(per_cpu_ptr(part->bd_stats, i), value, in part_stat_set_all()
[all …]
/openbmc/openbmc/meta-arm/meta-arm-bsp/wic/
H A Dcorstone1000-flash-firmware.wks.in10 part --source empty --size 3k --offset 17k --part-name="reserved_1" --uuid B1F2FC8C-A7A3-4485-87CB-…
12 part --source empty --size 4k --align 4 --offset 20k --part-name="FWU-Metadata" --uuid 3FDFFEE1-322…
13 part --source empty --size 4k --align 4 --offset 24k --part-name="Bkup-FWU-Metadata" --uuid B306831…
15 part --source empty --size 4k --align 4 --offset 28k --part-name="private_metadata_replica_2" --uui…
16 part --source empty --size 4k --align 4 --offset 32k --part-name="private_metadata_replica_2" --uui…
19 part --source rawcopy --size 144k --sourceparams="file=bl2_signed.bin" --offset 36k --align 4 --par…
22 part --source rawcopy --size 320k --sourceparams="file=tfm_s_signed.bin" --align 4 --part-name="tfm…
25 part --source rawcopy --size 2 --sourceparams="file=signed_fip-corstone1000.bin" --align 4 --part-n…
28 part --source rawcopy --size 12 --sourceparams="file=Image.gz-initramfs-${MACHINE}.bin" --align 4 -…
32 part --source empty --size 144k --offset 16392k --align 4 --part-name="bl2_secondary" --uuid 3F0C49…
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum1_kvdl.c74 struct mlxsw_sp1_kvdl_part *part, *min_part = NULL; in mlxsw_sp1_kvdl_alloc_size_part() local
78 part = kvdl->parts[i]; in mlxsw_sp1_kvdl_alloc_size_part()
79 if (alloc_size <= part->info.alloc_size && in mlxsw_sp1_kvdl_alloc_size_part()
81 part->info.alloc_size <= min_part->info.alloc_size)) in mlxsw_sp1_kvdl_alloc_size_part()
82 min_part = part; in mlxsw_sp1_kvdl_alloc_size_part()
91 struct mlxsw_sp1_kvdl_part *part; in mlxsw_sp1_kvdl_index_part() local
95 part = kvdl->parts[i]; in mlxsw_sp1_kvdl_index_part()
96 if (kvdl_index >= part->info.start_index && in mlxsw_sp1_kvdl_index_part()
97 kvdl_index <= part->info.end_index) in mlxsw_sp1_kvdl_index_part()
98 return part; in mlxsw_sp1_kvdl_index_part()
[all …]
H A Dspectrum2_kvdl.c56 static int mlxsw_sp2_kvdl_part_find_zero_bits(struct mlxsw_sp2_kvdl_part *part, in mlxsw_sp2_kvdl_part_find_zero_bits() argument
65 start_bit = part->last_allocated_bit + 1; in mlxsw_sp2_kvdl_part_find_zero_bits()
66 if (start_bit == part->usage_bit_count) in mlxsw_sp2_kvdl_part_find_zero_bits()
70 bit = find_next_zero_bit(part->usage, part->usage_bit_count, bit); in mlxsw_sp2_kvdl_part_find_zero_bits()
71 if (!wrap && bit + bit_count >= part->usage_bit_count) { in mlxsw_sp2_kvdl_part_find_zero_bits()
79 if (test_bit(bit + i, part->usage)) { in mlxsw_sp2_kvdl_part_find_zero_bits()
88 static int mlxsw_sp2_kvdl_part_alloc(struct mlxsw_sp2_kvdl_part *part, in mlxsw_sp2_kvdl_part_alloc() argument
97 bit_count = DIV_ROUND_UP(size, part->indexes_per_usage_bit); in mlxsw_sp2_kvdl_part_alloc()
98 err = mlxsw_sp2_kvdl_part_find_zero_bits(part, bit_count, &bit); in mlxsw_sp2_kvdl_part_alloc()
102 __set_bit(bit + i, part->usage); in mlxsw_sp2_kvdl_part_alloc()
[all …]
/openbmc/phosphor-mboxd/vpnor/test/
H A Dtoc_flags.cpp18 struct pnor_partition part; in main() local
25 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
26 assert((part.data.user.data[0]) == PARTITION_ECC_PROTECTED); in main()
27 assert(!(part.data.user.data[1] & DATA_MASK)); in main()
30 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
31 assert(!(part.data.user.data[0])); in main()
32 assert((part.data.user.data[1] & DATA_MASK) == PARTITION_PRESERVED); in main()
35 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
36 assert(!(part.data.user.data[0])); in main()
37 assert((part.data.user.data[1] & DATA_MASK) == PARTITION_READONLY); in main()
[all …]
/openbmc/hiomapd/vpnor/test/
H A Dtoc_flags.cpp20 struct pnor_partition part; in main() local
27 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
28 assert((part.data.user.data[0]) == PARTITION_ECC_PROTECTED); in main()
29 assert(!(part.data.user.data[1] & DATA_MASK)); in main()
32 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
33 assert(!(part.data.user.data[0])); in main()
34 assert((part.data.user.data[1] & DATA_MASK) == PARTITION_PRESERVED); in main()
37 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
38 assert(!(part.data.user.data[0])); in main()
39 assert((part.data.user.data[1] & DATA_MASK) == PARTITION_READONLY); in main()
[all …]
/openbmc/linux/drivers/irqchip/
H A Dirq-partition-percpu.c25 static bool partition_check_cpu(struct partition_desc *part, in partition_check_cpu() argument
28 return cpumask_test_cpu(cpu, &part->parts[hwirq].mask); in partition_check_cpu()
33 struct partition_desc *part = irq_data_get_irq_chip_data(d); in partition_irq_mask() local
34 struct irq_chip *chip = irq_desc_get_chip(part->chained_desc); in partition_irq_mask()
35 struct irq_data *data = irq_desc_get_irq_data(part->chained_desc); in partition_irq_mask()
37 if (partition_check_cpu(part, smp_processor_id(), d->hwirq) && in partition_irq_mask()
44 struct partition_desc *part = irq_data_get_irq_chip_data(d); in partition_irq_unmask() local
45 struct irq_chip *chip = irq_desc_get_chip(part->chained_desc); in partition_irq_unmask()
46 struct irq_data *data = irq_desc_get_irq_data(part->chained_desc); in partition_irq_unmask()
48 if (partition_check_cpu(part, smp_processor_id(), d->hwirq) && in partition_irq_unmask()
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Dmtd.c30 struct efx_mtd_partition *part = to_efx_mtd_partition(mtd); in efx_mtd_sync() local
37 part->name, part->dev_type_name, rc); in efx_mtd_sync()
40 static void efx_siena_mtd_remove_partition(struct efx_mtd_partition *part) in efx_siena_mtd_remove_partition() argument
45 rc = mtd_device_unregister(&part->mtd); in efx_siena_mtd_remove_partition()
51 list_del(&part->node); in efx_siena_mtd_remove_partition()
57 struct efx_mtd_partition *part; in efx_siena_mtd_add() local
61 part = (struct efx_mtd_partition *)((char *)parts + in efx_siena_mtd_add()
64 part->mtd.writesize = 1; in efx_siena_mtd_add()
66 if (!(part->mtd.flags & MTD_NO_ERASE)) in efx_siena_mtd_add()
67 part->mtd.flags |= MTD_WRITEABLE; in efx_siena_mtd_add()
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dmtd.c30 struct efx_mtd_partition *part = to_efx_mtd_partition(mtd); in efx_mtd_sync() local
37 part->name, part->dev_type_name, rc); in efx_mtd_sync()
40 static void efx_mtd_remove_partition(struct efx_mtd_partition *part) in efx_mtd_remove_partition() argument
45 rc = mtd_device_unregister(&part->mtd); in efx_mtd_remove_partition()
51 list_del(&part->node); in efx_mtd_remove_partition()
57 struct efx_mtd_partition *part; in efx_mtd_add() local
61 part = (struct efx_mtd_partition *)((char *)parts + in efx_mtd_add()
64 part->mtd.writesize = 1; in efx_mtd_add()
66 if (!(part->mtd.flags & MTD_NO_ERASE)) in efx_mtd_add()
67 part->mtd.flags |= MTD_WRITEABLE; in efx_mtd_add()
[all …]
/openbmc/linux/drivers/misc/sgi-xp/
H A Dxpc_main.c16 * partition This part detects the presence/absence of other
20 * channel This part manages the channels and sends/receives
68 .init_name = "", /* set to "part" at xpc_init() time */
169 struct xpc_partition *part = from_timer(part, t, disengage_timer); in xpc_timeout_partition_disengage() local
171 DBUG_ON(time_is_after_jiffies(part->disengage_timeout)); in xpc_timeout_partition_disengage()
173 xpc_partition_disengaged_from_timer(part); in xpc_timeout_partition_disengage()
175 DBUG_ON(part->disengage_timeout != 0); in xpc_timeout_partition_disengage()
176 DBUG_ON(xpc_arch_ops.partition_engaged(XPC_PARTID(part))); in xpc_timeout_partition_disengage()
218 struct xpc_partition *part; in xpc_check_remote_hb() local
230 part = &xpc_partitions[partid]; in xpc_check_remote_hb()
[all …]
H A Dxpc_partition.c13 * This is the part of XPC that detects the presence/absence of
265 static int __xpc_partition_disengaged(struct xpc_partition *part, in __xpc_partition_disengaged() argument
268 short partid = XPC_PARTID(part); in __xpc_partition_disengaged()
272 if (part->disengage_timeout) { in __xpc_partition_disengaged()
274 if (time_is_after_jiffies(part->disengage_timeout)) { in __xpc_partition_disengaged()
290 part->disengage_timeout = 0; in __xpc_partition_disengaged()
294 del_timer_sync(&part->disengage_timer); in __xpc_partition_disengaged()
296 DBUG_ON(part->act_state != XPC_P_AS_DEACTIVATING && in __xpc_partition_disengaged()
297 part->act_state != XPC_P_AS_INACTIVE); in __xpc_partition_disengaged()
298 if (part->act_state != XPC_P_AS_INACTIVE) in __xpc_partition_disengaged()
[all …]
/openbmc/linux/fs/orangefs/
H A Ddir.c17 struct orangefs_dir_part *part; member
40 * part and is stored in a linked list in case more than one part is
43 * The position pointer (ctx->pos) encodes the part and offset on which
44 * to begin reading at. Bits above PART_SHIFT encode the part and bits
51 * part list. Data is parsed from the current position as it is needed.
57 * Part zero is synthesized to contains `.' and `..'. Part one is the
58 * first part of the part list.
134 struct orangefs_dir_part *part, *new; in parse_readdir() local
138 part = od->part; in parse_readdir()
139 while (part) { in parse_readdir()
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/falcon/
H A Dmtd.c30 struct ef4_mtd_partition *part = to_ef4_mtd_partition(mtd); in ef4_mtd_sync() local
37 part->name, part->dev_type_name, rc); in ef4_mtd_sync()
40 static void ef4_mtd_remove_partition(struct ef4_mtd_partition *part) in ef4_mtd_remove_partition() argument
45 rc = mtd_device_unregister(&part->mtd); in ef4_mtd_remove_partition()
51 list_del(&part->node); in ef4_mtd_remove_partition()
57 struct ef4_mtd_partition *part; in ef4_mtd_add() local
61 part = (struct ef4_mtd_partition *)((char *)parts + in ef4_mtd_add()
64 part->mtd.writesize = 1; in ef4_mtd_add()
66 part->mtd.owner = THIS_MODULE; in ef4_mtd_add()
67 part->mtd.priv = efx; in ef4_mtd_add()
[all …]
/openbmc/linux/arch/arm/mach-omap2/
H A Dcminst44xx.c45 * 0x2 idle: Module is in Idle mode (only OCP part). It is functional if
74 static u32 omap4_cminst_read_inst_reg(u8 part, u16 inst, u16 idx);
78 * @part: PRCM partition ID that the CM_CLKCTRL register exists in
85 static u32 _clkctrl_idlest(u8 part, u16 inst, u16 clkctrl_offs) in _clkctrl_idlest() argument
87 u32 v = omap4_cminst_read_inst_reg(part, inst, clkctrl_offs); in _clkctrl_idlest()
95 * @part: PRCM partition ID that the CM_CLKCTRL register exists in
102 static bool _is_module_ready(u8 part, u16 inst, u16 clkctrl_offs) in _is_module_ready() argument
106 v = _clkctrl_idlest(part, inst, clkctrl_offs); in _is_module_ready()
113 static u32 omap4_cminst_read_inst_reg(u8 part, u16 inst, u16 idx) in omap4_cminst_read_inst_reg() argument
115 BUG_ON(part >= OMAP4_MAX_PRCM_PARTITIONS || in omap4_cminst_read_inst_reg()
[all …]
/openbmc/u-boot/drivers/fastboot/
H A Dfb_nand.c19 struct part_info *part; member
34 struct part_info **part, in fb_nand_lookup() argument
48 ret = find_dev_and_part(partname, &dev, &pnum, part); in fb_nand_lookup()
67 static int _fb_nand_erase(struct mtd_info *mtd, struct part_info *part) in _fb_nand_erase() argument
73 opts.offset = part->offset; in _fb_nand_erase()
74 opts.length = part->size; in _fb_nand_erase()
78 part->offset, part->offset + part->size); in _fb_nand_erase()
85 part->size, part->name); in _fb_nand_erase()
90 static int _fb_nand_write(struct mtd_info *mtd, struct part_info *part, in _fb_nand_write() argument
101 part->size - (offset - part->offset), in _fb_nand_write()
[all …]
/openbmc/linux/drivers/acpi/acpica/
H A Dutmath.c23 struct uint64_struct part; member
62 ACPI_MUL_64_BY_32(0, multiplicand_ovl.part.hi, multiplier, in acpi_ut_short_multiply()
63 product.part.hi, carry32); in acpi_ut_short_multiply()
65 ACPI_MUL_64_BY_32(0, multiplicand_ovl.part.lo, multiplier, in acpi_ut_short_multiply()
66 product.part.lo, carry32); in acpi_ut_short_multiply()
68 product.part.hi += carry32; in acpi_ut_short_multiply()
100 operand_ovl.part.hi = operand_ovl.part.lo; in acpi_ut_short_shift_left()
101 operand_ovl.part.lo = 0; in acpi_ut_short_shift_left()
104 ACPI_SHIFT_LEFT_64_BY_32(operand_ovl.part.hi, in acpi_ut_short_shift_left()
105 operand_ovl.part.lo, count); in acpi_ut_short_shift_left()
[all …]
/openbmc/linux/block/partitions/
H A Dmac.c16 extern void note_bootable_part(dev_t dev, int part, int goodness);
41 struct mac_partition *part; in mac_partition() local
59 if (partoffset + sizeof(*part) > datasize) in mac_partition()
61 part = (struct mac_partition *) (data + partoffset); in mac_partition()
62 if (be16_to_cpu(part->signature) != MAC_PARTITION_MAGIC) { in mac_partition()
66 blocks_in_map = be32_to_cpu(part->map_count); in mac_partition()
82 part = (struct mac_partition *) (data + pos%512); in mac_partition()
83 if (be16_to_cpu(part->signature) != MAC_PARTITION_MAGIC) in mac_partition()
86 be32_to_cpu(part->start_block) * (secsize/512), in mac_partition()
87 be32_to_cpu(part->block_count) * (secsize/512)); in mac_partition()
[all …]
/openbmc/linux/drivers/char/ipmi/
H A Dssif_bmc.c90 /* Flag to identify a Multi-part Read Transaction */
95 /* Block Number of a Multi-part Read Transaction */
101 /* Buffer for SSIF Transaction part*/
338 static void calculate_response_part_pec(struct ssif_part_buffer *part) in calculate_response_part_pec() argument
340 u8 addr = part->address; in calculate_response_part_pec()
343 part->pec = i2c_smbus_pec(0, &addr, 1); in calculate_response_part_pec()
345 part->pec = i2c_smbus_pec(part->pec, &part->smbus_cmd, 1); in calculate_response_part_pec()
348 part->pec = i2c_smbus_pec(part->pec, &addr, 1); in calculate_response_part_pec()
349 part->pec = i2c_smbus_pec(part->pec, &part->length, 1); in calculate_response_part_pec()
350 if (part->length) in calculate_response_part_pec()
[all …]
/openbmc/openbmc/poky/scripts/lib/wic/plugins/source/
H A Drootfs.py74 def do_prepare_partition(cls, part, source_params, cr, cr_workdir, argument
82 if part.rootfs_dir is None:
88 if part.rootfs_dir in krootfs_dir:
89 rootfs_dir = krootfs_dir[part.rootfs_dir]
90 elif part.rootfs_dir:
91 rootfs_dir = part.rootfs_dir
94 "it is not a valid path, exiting" % part.rootfs_dir)
96 part.rootfs_dir = cls.__get_rootfs_dir(rootfs_dir)
97 part.has_fstab = os.path.exists(os.path.join(part.rootfs_dir, "etc/fstab"))
98 pseudo_dir = os.path.join(part.rootfs_dir, "../pseudo")
[all …]
/openbmc/openbmc/poky/scripts/lib/wic/
H A Dksparser.py148 part = subparsers.add_parser('part')
149 part.add_argument('mountpoint', nargs='?')
150 part.add_argument('--active', action='store_true')
151 part.add_argument('--align', type=int)
152 part.add_argument('--offset', type=sizetype("K", True))
153 part.add_argument('--exclude-path', nargs='+')
154 part.add_argument('--include-path', nargs='+', action='append')
155 part.add_argument('--change-directory')
156 part.add_argument("--extra-space", type=sizetype("M"))
157 part.add_argument('--fsoptions', dest='fsopts')
[all …]
/openbmc/hiomapd/vpnor/
H A Dtable.cpp97 pnor_partition& part = table.partitions[numParts]; in preparePartitions() local
105 // partition00=part,0x00000000,0x00002000,00,READWRITE in preparePartitions()
115 parseTocLine(line, blockSize, part); in preparePartitions()
122 if (part.data.id == prev.data.id) in preparePartitions()
127 prev.data.name, prev.data.base, part.data.name, in preparePartitions()
128 part.data.base, part.data.id); in preparePartitions()
131 if (part.data.base < prev_end) in preparePartitions()
134 err << "Partition '" << part.data.name << "' start block 0x" in preparePartitions()
135 << std::hex << part.data.base << "is less than the end " in preparePartitions()
142 file = rwDir / part.data.name; in preparePartitions()
[all …]

12345678910>>...221