Home
last modified time | relevance | path

Searched refs:part (Results 1 – 25 of 1108) sorted by relevance

12345678910>>...45

/linux/drivers/mtd/
A Drfd_ftl.c159 part->total_blocks = (u32)part->mbd.mtd->size / part->block_size; in scan_header()
175 part->cylinders = (part->data_sectors_per_block * in scan_header()
178 part->sector_count = part->cylinders * SECTORS_PER_TRACK; in scan_header()
202 rc = mtd_read(part->mbd.mtd, i * part->block_size, in scan_header()
484 jiffies % part->total_blocks : part->current_block; in find_free_block()
525 rc = mtd_read(part->mbd.mtd, part->blocks[block].offset, in find_writable_block()
612 !part->blocks[part->current_block].free_sectors) { in do_writesect()
619 block = &part->blocks[part->current_block]; in do_writesect()
756 if (!part) in rfd_ftl_add_mtd()
772 part->mbd.size = part->sector_count; in rfd_ftl_add_mtd()
[all …]
A Dftl.c202 part->DataUnits = le16_to_cpu(part->header.NumEraseUnits) - in build_maps()
210 part->XferInfo = in build_maps()
296 part->FreeTotal++; in build_maps()
682 part->EUNInfo[i].Offset >> part->header.EraseUnitSize, in dump_lists()
683 part->EUNInfo[i].Free, part->EUNInfo[i].Deleted); in dump_lists()
695 stop = (part->bam_index == 0xffff) ? 0 : part->bam_index; in find_free()
904 part->EUNInfo[part->bam_index].Free--; in ftl_write()
905 part->FreeTotal--; in ftl_write()
908 part->EUNInfo[part->bam_index].Deleted++; in ftl_write()
909 offset = (part->EUNInfo[part->bam_index].Offset + in ftl_write()
[all …]
A Dmtdpart.c61 child->part.flags = parent->flags & ~part->mask_flags; in allocate_partition()
62 child->part.flags |= part->add_flags; in allocate_partition()
64 child->part.size = part->size; in allocate_partition()
86 child->part.offset = part->offset; in allocate_partition()
110 part->name, parent_size - child->part.offset, in allocate_partition()
117 child->part.size = parent_size - child->part.offset; in allocate_partition()
120 child->part.offset, child->part.offset + child->part.size, in allocate_partition()
136 child->part.size = parent_size - child->part.offset; in allocate_partition()
138 part->name, parent->name, child->part.size); in allocate_partition()
144 u64 end = child->part.offset + child->part.size; in allocate_partition()
[all …]
/linux/drivers/misc/sgi-xp/
A Dxpc_main.c178 struct xpc_partition *part = from_timer(part, t, disengage_timer); in xpc_timeout_partition_disengage() local
483 kfree(part->channels); in xpc_setup_ch_structures()
484 part->channels = NULL; in xpc_setup_ch_structures()
506 wait_event(part->teardown_wq, (atomic_read(&part->references) == 0)); in xpc_teardown_ch_structures()
514 kfree(part->channels); in xpc_teardown_ch_structures()
515 part->channels = NULL; in xpc_teardown_ch_structures()
569 xpc_part_deref(part); in xpc_activating()
756 xpc_part_deref(part); in xpc_kthread_start()
828 xpc_part_deref(part); in xpc_create_kthreads()
893 xpc_part_deref(part); in xpc_disconnect_wait()
[all …]
A Dxpc_partition.c268 short partid = XPC_PARTID(part); in __xpc_partition_disengaged()
272 if (part->disengage_timeout) { in __xpc_partition_disengaged()
290 part->disengage_timeout = 0; in __xpc_partition_disengaged()
299 xpc_wakeup_channel_mgr(part); in __xpc_partition_disengaged()
333 ret = part->reason; in xpc_mark_partition_active()
379 part->disengage_timer.expires = part->disengage_timeout; in xpc_deactivate_partition()
383 XPC_PARTID(part), reason); in xpc_deactivate_partition()
397 XPC_PARTID(part)); in xpc_mark_partition_inactive()
402 part->remote_rp_pa = 0; in xpc_mark_partition_inactive()
532 struct xpc_partition *part; in xpc_initiate_partid_to_nasids() local
[all …]
A Dxpc_uv.c376 struct xpc_partition *part; in xpc_process_activate_IRQ_rcvd_uv() local
408 XPC_DEACTIVATE_PARTITION(part, part->sn.uv.reason); in xpc_process_activate_IRQ_rcvd_uv()
627 struct xpc_partition *part; in xpc_handle_activate_IRQ_uv() local
649 xpc_part_deref(part); in xpc_handle_activate_IRQ_uv()
945 msg.reason = part->reason; in xpc_request_partition_deactivation_uv()
1064 return part->reason; in xpc_make_first_contact_uv()
1077 chctl = part->chctl; in xpc_get_chctl_all_flags_uv()
1079 part->chctl.all_flags = 0; in xpc_get_chctl_all_flags_uv()
1483 struct xpc_partition *part; in xpc_handle_notify_IRQ_uv() local
1495 if (xpc_part_ref(part)) { in xpc_handle_notify_IRQ_uv()
[all …]
A Dxpc_channel.c624 XPC_PARTID(part), reason); in xpc_partition_going_down()
626 if (!xpc_part_ref(part)) { in xpc_partition_going_down()
647 xpc_part_deref(part); in xpc_partition_going_down()
665 if (xpc_part_ref(part)) { in xpc_initiate_connect()
671 xpc_part_deref(part); in xpc_initiate_connect()
720 if (xpc_part_ref(part)) { in xpc_initiate_disconnect()
736 xpc_part_deref(part); in xpc_initiate_disconnect()
885 if (xpc_part_ref(part)) { in xpc_initiate_send()
888 xpc_part_deref(part); in xpc_initiate_send()
937 if (xpc_part_ref(part)) { in xpc_initiate_send_notify()
[all …]
/linux/drivers/acpi/acpica/
A Dutmath.c100 operand_ovl.part.hi = operand_ovl.part.lo; in acpi_ut_short_shift_left()
137 operand_ovl.part.lo = operand_ovl.part.hi; in acpi_ut_short_shift_right()
351 quotient.part.lo, remainder.part.lo); in acpi_ut_divide()
377 normalized_divisor.part.lo, quotient.part.lo, in acpi_ut_divide()
384 partial1 = quotient.part.lo * divisor.part.hi; in acpi_ut_divide()
388 remainder.part.hi = partial3.part.lo; in acpi_ut_divide()
389 remainder.part.lo = partial2.part.lo; in acpi_ut_divide()
392 if (partial3.part.lo >= dividend.part.hi) { in acpi_ut_divide()
393 if (partial3.part.lo == dividend.part.hi) { in acpi_ut_divide()
394 if (partial2.part.lo > dividend.part.lo) { in acpi_ut_divide()
[all …]
/linux/include/linux/
A Dpart_stat.h31 #define part_stat_get(part, field) \ argument
34 #define part_stat_read(part, field) \ argument
62 if ((part)->bd_partno) \
66 #define part_stat_dec(part, field) \ argument
67 part_stat_add(part, field, -1)
68 #define part_stat_inc(part, field) \ argument
69 part_stat_add(part, field, 1)
71 part_stat_add(part, field, -subnd)
74 local_dec(&(part_stat_get(part, field)))
76 local_inc(&(part_stat_get(part, field)))
[all …]
/linux/drivers/net/ethernet/sfc/
A Dmtd.c37 part->name, part->dev_type_name, rc); in efx_mtd_sync()
51 list_del(&part->node); in efx_mtd_remove_partition()
57 struct efx_mtd_partition *part; in efx_mtd_add() local
64 part->mtd.writesize = 1; in efx_mtd_add()
69 part->mtd.owner = THIS_MODULE; in efx_mtd_add()
70 part->mtd.priv = efx; in efx_mtd_add()
71 part->mtd.name = part->name; in efx_mtd_add()
75 part->mtd._sync = efx_mtd_sync; in efx_mtd_add()
77 efx->type->mtd_rename(part); in efx_mtd_add()
118 struct efx_mtd_partition *part; in efx_mtd_rename() local
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum1_kvdl.c82 min_part = part; in mlxsw_sp1_kvdl_alloc_size_part()
98 return part; in mlxsw_sp1_kvdl_index_part()
158 if (IS_ERR(part)) in mlxsw_sp1_kvdl_alloc()
172 if (IS_ERR(part)) in mlxsw_sp1_kvdl_free()
187 if (IS_ERR(part)) in mlxsw_sp1_kvdl_alloc_size_query()
203 part->info.end_index = part->info.start_index + size - 1; in mlxsw_sp1_kvdl_part_update()
229 part = kzalloc(sizeof(*part) + usage_size, GFP_KERNEL); in mlxsw_sp1_kvdl_part_init()
230 if (!part) in mlxsw_sp1_kvdl_part_init()
233 memcpy(&part->info, info, sizeof(part->info)); in mlxsw_sp1_kvdl_part_init()
237 return part; in mlxsw_sp1_kvdl_part_init()
[all …]
A Dspectrum2_kvdl.c66 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()
79 if (test_bit(bit + i, part->usage)) { in mlxsw_sp2_kvdl_part_find_zero_bits()
102 __set_bit(bit + i, part->usage); in mlxsw_sp2_kvdl_part_alloc()
142 __clear_bit(bit + i, part->usage); in mlxsw_sp2_kvdl_part_free()
184 struct mlxsw_sp2_kvdl_part *part; in mlxsw_sp2_kvdl_part_init() local
206 part = kzalloc(sizeof(*part) + usage_size, GFP_KERNEL); in mlxsw_sp2_kvdl_part_init()
207 if (!part) in mlxsw_sp2_kvdl_part_init()
209 part->info = info; in mlxsw_sp2_kvdl_part_init()
213 return part; in mlxsw_sp2_kvdl_part_init()
[all …]
/linux/drivers/net/ethernet/sfc/falcon/
A Dmtd.c37 part->name, part->dev_type_name, rc); in ef4_mtd_sync()
51 list_del(&part->node); in ef4_mtd_remove_partition()
57 struct ef4_mtd_partition *part; in ef4_mtd_add() local
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()
68 part->mtd.name = part->name; in ef4_mtd_add()
72 part->mtd._sync = ef4_mtd_sync; in ef4_mtd_add()
74 efx->type->mtd_rename(part); in ef4_mtd_add()
115 struct ef4_mtd_partition *part; in ef4_mtd_rename() local
[all …]
/linux/drivers/irqchip/
A Dirq-partition-percpu.c122 for_each_set_bit(hwirq, part->bitmap, part->nr_parts) { in partition_handle_irq()
123 if (partition_check_cpu(part, cpu, hwirq)) in partition_handle_irq()
127 if (unlikely(hwirq == part->nr_parts)) in partition_handle_irq()
130 generic_handle_domain_irq(part->domain, hwirq); in partition_handle_irq()
142 struct partition_desc *part; in partition_domain_alloc() local
149 part = domain->host_data; in partition_domain_alloc()
151 set_bit(hwirq, part->bitmap); in partition_domain_alloc()
153 partition_handle_irq, part); in partition_domain_alloc()
176 struct partition_affinity *part = NULL; in partition_translate_id() local
181 part = &desc->parts[i]; in partition_translate_id()
[all …]
/linux/fs/orangefs/
A Ddir.c138 part = od->part; in parse_readdir()
139 while (part) { in parse_readdir()
142 part = part->next; in parse_readdir()
151 if (!od->part) in parse_readdir()
250 part = od->part; in orangefs_dir_fill()
253 part = part->next; in orangefs_dir_fill()
261 while (part && part->len) { in orangefs_dir_fill()
276 part = part->next; in orangefs_dir_fill()
291 struct orangefs_dir_part *part = od->part; in orangefs_dir_llseek() local
388 struct orangefs_dir_part *part = od->part; in orangefs_dir_release() local
[all …]
/linux/arch/arm/mach-omap2/
A Dcminst44xx.c106 v = _clkctrl_idlest(part, inst, clkctrl_offs); in _is_module_ready()
115 BUG_ON(part >= OMAP4_MAX_PRCM_PARTITIONS || in omap4_cminst_read_inst_reg()
116 part == OMAP4430_INVALID_PRCM_PARTITION || in omap4_cminst_read_inst_reg()
117 !_cm_bases[part].va); in omap4_cminst_read_inst_reg()
124 BUG_ON(part >= OMAP4_MAX_PRCM_PARTITIONS || in omap4_cminst_write_inst_reg()
125 part == OMAP4430_INVALID_PRCM_PARTITION || in omap4_cminst_write_inst_reg()
126 !_cm_bases[part].va); in omap4_cminst_write_inst_reg()
136 v = omap4_cminst_read_inst_reg(part, inst, idx); in omap4_cminst_rmw_inst_reg_bits()
139 omap4_cminst_write_inst_reg(v, part, inst, idx); in omap4_cminst_rmw_inst_reg_bits()
159 v = omap4_cminst_read_inst_reg(part, inst, idx); in omap4_cminst_read_inst_reg_bits()
[all …]
A Dprminst44xx.c58 u32 omap4_prminst_read_inst_reg(u8 part, s16 inst, u16 idx) in omap4_prminst_read_inst_reg() argument
60 BUG_ON(part >= OMAP4_MAX_PRCM_PARTITIONS || in omap4_prminst_read_inst_reg()
61 part == OMAP4430_INVALID_PRCM_PARTITION || in omap4_prminst_read_inst_reg()
62 !_prm_bases[part].va); in omap4_prminst_read_inst_reg()
63 return readl_relaxed(_prm_bases[part].va + inst + idx); in omap4_prminst_read_inst_reg()
69 BUG_ON(part >= OMAP4_MAX_PRCM_PARTITIONS || in omap4_prminst_write_inst_reg()
70 part == OMAP4430_INVALID_PRCM_PARTITION || in omap4_prminst_write_inst_reg()
71 !_prm_bases[part].va); in omap4_prminst_write_inst_reg()
72 writel_relaxed(val, _prm_bases[part].va + inst + idx); in omap4_prminst_write_inst_reg()
81 v = omap4_prminst_read_inst_reg(part, inst, idx); in omap4_prminst_rmw_inst_reg_bits()
[all …]
A Dcm.h56 int (*wait_module_ready)(u8 part, s16 prcm_mod, u16 idlest_reg,
58 int (*wait_module_idle)(u8 part, s16 prcm_mod, u16 idlest_reg,
60 void (*module_enable)(u8 mode, u8 part, u16 inst, u16 clkctrl_offs);
61 void (*module_disable)(u8 part, u16 inst, u16 clkctrl_offs);
62 u32 (*xlate_clkctrl)(u8 part, u16 inst, u16 clkctrl_offs);
67 int omap_cm_wait_module_ready(u8 part, s16 prcm_mod, u16 idlest_reg,
69 int omap_cm_wait_module_idle(u8 part, s16 prcm_mod, u16 idlest_reg,
71 int omap_cm_module_enable(u8 mode, u8 part, u16 inst, u16 clkctrl_offs);
72 int omap_cm_module_disable(u8 part, u16 inst, u16 clkctrl_offs);
73 u32 omap_cm_xlate_clkctrl(u8 part, u16 inst, u16 clkctrl_offs);
/linux/arch/powerpc/kernel/
A Dnvram_64.c293 part->req_size, part->min_size); in nvram_init_os_partition()
297 part->name); in nvram_init_os_partition()
301 part->req_size, part->min_size); in nvram_init_os_partition()
311 part->index = p; in nvram_init_os_partition()
482 part->index = p; in nvram_pstore_read()
483 part->size = size; in nvram_pstore_read()
491 if (nvram_read_partition(part, buff, part->size, &err_type, &id_no)) { in nvram_pstore_read()
531 return part->size; in nvram_pstore_read()
798 part->header.checksum = nvram_checksum(&part->header); in nvram_remove_partition()
822 kfree(part); in nvram_remove_partition()
[all …]
/linux/block/partitions/
A Dmac.c41 struct mac_partition *part; in mac_partition() local
59 if (partoffset + sizeof(*part) > datasize) in mac_partition()
66 blocks_in_map = be32_to_cpu(part->map_count); in mac_partition()
89 if (!strncasecmp(part->type, "Linux_RAID", 10)) in mac_partition()
99 mac_fix_string(part->processor, 16); in mac_partition()
100 mac_fix_string(part->name, 32); in mac_partition()
101 mac_fix_string(part->type, 32); in mac_partition()
113 l = strlen(part->name); in mac_partition()
114 if (strcmp(part->name, "/") == 0) in mac_partition()
117 if (strncasecmp(part->name + i, "root", in mac_partition()
[all …]
A Dcore.c273 if (part->bd_meta_info && part->bd_meta_info->volname[0]) in part_uevent()
289 fsync_bdev(part); in delete_partition()
292 xa_erase(&part->bd_disk->part_tbl, part->bd_partno); in delete_partition()
437 struct block_device *part; in partition_overlaps() local
444 start < part->bd_start_sect + bdev_nr_sectors(part) && in partition_overlaps()
487 if (!part) in bdev_del_partition()
491 if (part->bd_openers) in bdev_del_partition()
494 delete_partition(part); in bdev_del_partition()
509 if (!part) in bdev_resize_partition()
552 delete_partition(part); in blk_drop_partitions()
[all …]
/linux/drivers/net/wireless/ti/wlcore/
A Dio.c69 if ((addr >= part->mem.start) && in wlcore_translate_addr()
70 (addr < part->mem.start + part->mem.size)) in wlcore_translate_addr()
71 return addr - part->mem.start; in wlcore_translate_addr()
73 (addr < part->reg.start + part->reg.size)) in wlcore_translate_addr()
74 return addr - part->reg.start + part->mem.size; in wlcore_translate_addr()
76 (addr < part->mem2.start + part->mem2.size)) in wlcore_translate_addr()
77 return addr - part->mem2.start + part->mem.size + in wlcore_translate_addr()
78 part->reg.size; in wlcore_translate_addr()
80 (addr < part->mem3.start + part->mem3.size)) in wlcore_translate_addr()
81 return addr - part->mem3.start + part->mem.size + in wlcore_translate_addr()
[all …]
/linux/drivers/mtd/parsers/
A Dcmdlinepart.c353 for (part = partitions; part; part = part->next) { in parse_cmdline_partitions()
358 if (!part) in parse_cmdline_partitions()
372 part->mtd_id); in parse_cmdline_partitions()
375 offset += part->parts[i].size; in parse_cmdline_partitions()
377 if (part->parts[i].size == 0) { in parse_cmdline_partitions()
379 part->mtd_id); in parse_cmdline_partitions()
380 part->num_parts--; in parse_cmdline_partitions()
381 memmove(&part->parts[i], &part->parts[i + 1], in parse_cmdline_partitions()
382 sizeof(*part->parts) * (part->num_parts - i)); in parse_cmdline_partitions()
387 *pparts = kmemdup(part->parts, sizeof(*part->parts) * part->num_parts, in parse_cmdline_partitions()
[all …]
/linux/drivers/misc/
A Dsram.c33 mutex_lock(&part->lock); in sram_read()
35 mutex_unlock(&part->lock); in sram_read()
48 mutex_lock(&part->lock); in sram_write()
50 mutex_unlock(&part->lock); in sram_write()
62 if (IS_ERR(part->pool)) in sram_add_pool()
65 ret = gen_pool_add_virt(part->pool, (unsigned long)part->base, start, in sram_add_pool()
99 mutex_init(&part->lock); in sram_add_partition()
114 part->base = virt_base; in sram_add_partition()
155 if (part->battr.size) in sram_free_partitions()
158 if (part->pool && in sram_free_partitions()
[all …]
A Dsram-exec.c31 struct sram_partition *part) in sram_check_protect_exec() argument
33 unsigned long base = (unsigned long)part->base; in sram_check_protect_exec()
45 int sram_add_protect_exec(struct sram_partition *part) in sram_add_protect_exec() argument
48 list_add_tail(&part->list, &exec_pool_list); in sram_add_protect_exec()
84 struct sram_partition *part = NULL, *p; in sram_exec_copy() local
93 part = p; in sram_exec_copy()
97 if (!part) in sram_exec_copy()
103 base = (unsigned long)part->base; in sram_exec_copy()
106 mutex_lock(&part->lock); in sram_exec_copy()
124 mutex_unlock(&part->lock); in sram_exec_copy()
[all …]

Completed in 47 milliseconds

12345678910>>...45