/kernel/linux/linux-6.6/drivers/mtd/ |
H A D | rfd_ftl.c | 93 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 in build_block_map() 151 scan_header(struct partition *part) scan_header() argument 242 struct partition *part = container_of(dev, struct partition, mbd); rfd_ftl_readsect() local 268 erase_block(struct partition *part, int block) erase_block() argument 319 move_block_contents(struct partition *part, int block_no, u_long *old_sector) move_block_contents() argument 407 reclaim_block(struct partition *part, u_long *old_sector) reclaim_block() argument 479 find_free_block(struct partition *part) find_free_block() argument 503 find_writable_block(struct partition *part, u_long *old_sector) find_writable_block() argument 545 mark_sector_deleted(struct partition *part, u_long old_addr) mark_sector_deleted() argument 582 find_free_sector(const struct partition *part, const struct block *block) find_free_sector() argument 603 struct partition *part = container_of(dev, struct partition, mbd); do_writesect() local 669 struct partition *part = container_of(dev, struct partition, mbd); rfd_ftl_writesect() local 711 struct partition *part = container_of(dev, struct partition, mbd); rfd_ftl_discardsect() local 738 struct partition *part = container_of(dev, struct partition, mbd); rfd_ftl_getgeo() local 749 struct partition *part; rfd_ftl_add_mtd() local 795 struct partition *part = container_of(dev, struct partition, mbd); rfd_ftl_remove_dev() local [all...] |
H A D | ftl.c | 151 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 328 erase_xfer(partition_t *part, uint16_t xfernum) erase_xfer() argument 370 prepare_xfer(partition_t *part, int i) prepare_xfer() argument 428 copy_erase_unit(partition_t *part, uint16_t srcunit, uint16_t xferunit) copy_erase_unit() argument 568 reclaim_block(partition_t *part) reclaim_block() argument 675 dump_lists(partition_t *part) dump_lists() argument 687 find_free(partition_t *part) find_free() argument 748 ftl_read(partition_t *part, caddr_t buffer, u_long sector, u_long nblocks) ftl_read() argument 794 set_bam_entry(partition_t *part, uint32_t log_addr, uint32_t virt_addr) set_bam_entry() argument 862 ftl_write(partition_t *part, caddr_t buffer, u_long sector, u_long nblocks) ftl_write() argument 944 partition_t *part = container_of(dev, struct partition_t, mbd); ftl_getgeo() local 972 partition_t *part = container_of(dev, struct partition_t, mbd); ftl_discardsect() local 994 ftl_freepart(partition_t *part) ftl_freepart() argument [all...] |
H A D | mtdpart.c | 37 WARN_ON(!list_empty(&mtd->part.node)); in release_mtd_partition() 42 const struct mtd_partition *part, in allocate_partition() 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 in allocate_partition() 41 allocate_partition(struct mtd_info *parent, const struct mtd_partition *part, int partno, uint64_t cur_offset) allocate_partition() argument 251 struct mtd_partition part; mtd_add_partition() local [all...] |
/kernel/linux/linux-5.10/drivers/mtd/ |
H A D | ftl.c | 151 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 328 erase_xfer(partition_t *part, uint16_t xfernum) erase_xfer() argument 370 prepare_xfer(partition_t *part, int i) prepare_xfer() argument 428 copy_erase_unit(partition_t *part, uint16_t srcunit, uint16_t xferunit) copy_erase_unit() argument 568 reclaim_block(partition_t *part) reclaim_block() argument 675 dump_lists(partition_t *part) dump_lists() argument 687 find_free(partition_t *part) find_free() argument 748 ftl_read(partition_t *part, caddr_t buffer, u_long sector, u_long nblocks) ftl_read() argument 794 set_bam_entry(partition_t *part, uint32_t log_addr, uint32_t virt_addr) set_bam_entry() argument 862 ftl_write(partition_t *part, caddr_t buffer, u_long sector, u_long nblocks) ftl_write() argument 944 partition_t *part = (void *)dev; ftl_getgeo() local 972 partition_t *part = (void *)dev; ftl_discardsect() local 994 ftl_freepart(partition_t *part) ftl_freepart() argument [all...] |
H A D | rfd_ftl.c | 93 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 in build_block_map() 151 scan_header(struct partition *part) scan_header() argument 245 struct partition *part = (struct partition*)dev; rfd_ftl_readsect() local 271 erase_block(struct partition *part, int block) erase_block() argument 322 move_block_contents(struct partition *part, int block_no, u_long *old_sector) move_block_contents() argument 410 reclaim_block(struct partition *part, u_long *old_sector) reclaim_block() argument 482 find_free_block(struct partition *part) find_free_block() argument 506 find_writable_block(struct partition *part, u_long *old_sector) find_writable_block() argument 548 mark_sector_deleted(struct partition *part, u_long old_addr) mark_sector_deleted() argument 585 find_free_sector(const struct partition *part, const struct block *block) find_free_sector() argument 606 struct partition *part = (struct partition*)dev; do_writesect() local 672 struct partition *part = (struct partition*)dev; rfd_ftl_writesect() local 713 struct partition *part = (struct partition*)dev; rfd_ftl_getgeo() local 724 struct partition *part; rfd_ftl_add_mtd() local 769 struct partition *part = (struct partition*)dev; rfd_ftl_remove_dev() local [all...] |
H A D | mtdpart.c | 35 const struct mtd_partition *part, in allocate_partition() 42 parent->part.size : parent->size; in allocate_partition() 50 name = kstrdup(part->name, GFP_KERNEL); in allocate_partition() 61 child->part.flags = parent->flags & ~part->mask_flags; in allocate_partition() 62 child->part.flags |= part->add_flags; in allocate_partition() 63 child->flags = child->part.flags; in allocate_partition() 64 child->part.size = part in allocate_partition() 34 allocate_partition(struct mtd_info *parent, const struct mtd_partition *part, int partno, uint64_t cur_offset) allocate_partition() argument 245 struct mtd_partition part; mtd_add_partition() local [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | part_stat.h | 20 * {disk|part|all}_stat_{add|sub|inc|dec}() modify the stat counters and should 28 #define part_stat_get_cpu(part, field, cpu) \ 29 (per_cpu_ptr((part)->bd_stats, (cpu))->field) 31 #define part_stat_get(part, field) \ 32 part_stat_get_cpu(part, field, smp_processor_id()) 34 #define part_stat_read(part, field) \ 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 in part_stat_set_all() [all...] |
/kernel/linux/linux-5.10/drivers/acpi/acpica/ |
H A D | utmath.c | 23 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 in acpi_ut_short_shift_left() [all...] |
/kernel/linux/linux-6.6/drivers/acpi/acpica/ |
H A D | utmath.c | 23 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 in acpi_ut_short_shift_left() [all...] |
/kernel/linux/linux-5.10/drivers/misc/sgi-xp/ |
H A D | xpc_main.c | 16 * 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 */ 178 struct xpc_partition *part = from_timer(part, t, disengage_timer); in xpc_timeout_partition_disengage() local 180 DBUG_ON(time_is_after_jiffies(part->disengage_timeout)); in xpc_timeout_partition_disengage() 182 (void)xpc_partition_disengaged(part); in xpc_timeout_partition_disengage() 184 DBUG_ON(part->disengage_timeout != 0); in xpc_timeout_partition_disengage() 185 DBUG_ON(xpc_arch_ops.partition_engaged(XPC_PARTID(part))); in xpc_timeout_partition_disengage() 227 struct xpc_partition *part; in xpc_check_remote_hb() local 340 xpc_channel_mgr(struct xpc_partition *part) xpc_channel_mgr() argument 401 xpc_setup_ch_structures(struct xpc_partition *part) xpc_setup_ch_structures() argument 493 xpc_teardown_ch_structures(struct xpc_partition *part) xpc_teardown_ch_structures() argument 535 struct xpc_partition *part = &xpc_partitions[partid]; xpc_activating() local 585 xpc_activate_partition(struct xpc_partition *part) xpc_activate_partition() argument 649 xpc_kthread_waitmsgs(struct xpc_partition *part, struct xpc_channel *ch) xpc_kthread_waitmsgs() argument 686 struct xpc_partition *part = &xpc_partitions[partid]; xpc_kthread_start() local 778 struct xpc_partition *part = &xpc_partitions[ch->partid]; xpc_create_kthreads() local 852 struct xpc_partition *part; xpc_disconnect_wait() local 901 struct xpc_partition *part; xpc_setup_partitions() local 952 struct xpc_partition *part; xpc_do_exit() local 1087 struct xpc_partition *part; xpc_die_deactivate() local [all...] |
H A D | xpc_partition.c | 13 * This is the part of XPC that detects the presence/absence of 266 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_singleshot_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 in xpc_partition_disengaged() 310 xpc_mark_partition_active(struct xpc_partition *part) xpc_mark_partition_active() argument 334 xpc_deactivate_partition(const int line, struct xpc_partition *part, enum xp_retval reason) xpc_deactivate_partition() argument 382 xpc_mark_partition_inactive(struct xpc_partition *part) xpc_mark_partition_inactive() argument 522 struct xpc_partition *part; xpc_initiate_partid_to_nasids() local [all...] |
/kernel/linux/linux-6.6/drivers/misc/sgi-xp/ |
H A D | xpc_main.c | 16 * 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 331 xpc_channel_mgr(struct xpc_partition *part) xpc_channel_mgr() argument 392 xpc_setup_ch_structures(struct xpc_partition *part) xpc_setup_ch_structures() argument 484 xpc_teardown_ch_structures(struct xpc_partition *part) xpc_teardown_ch_structures() argument 526 struct xpc_partition *part = &xpc_partitions[partid]; xpc_activating() local 576 xpc_activate_partition(struct xpc_partition *part) xpc_activate_partition() argument 640 xpc_kthread_waitmsgs(struct xpc_partition *part, struct xpc_channel *ch) xpc_kthread_waitmsgs() argument 677 struct xpc_partition *part = &xpc_partitions[partid]; xpc_kthread_start() local 769 struct xpc_partition *part = &xpc_partitions[ch->partid]; xpc_create_kthreads() local 843 struct xpc_partition *part; xpc_disconnect_wait() local 892 struct xpc_partition *part; xpc_setup_partitions() local 943 struct xpc_partition *part; xpc_do_exit() local 1080 struct xpc_partition *part; xpc_die_deactivate() local [all...] |
H A D | xpc_partition.c | 13 * 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 in __xpc_partition_disengaged() 306 xpc_partition_disengaged(struct xpc_partition *part) xpc_partition_disengaged() argument 311 xpc_partition_disengaged_from_timer(struct xpc_partition *part) xpc_partition_disengaged_from_timer() argument 320 xpc_mark_partition_active(struct xpc_partition *part) xpc_mark_partition_active() argument 344 xpc_deactivate_partition(const int line, struct xpc_partition *part, enum xp_retval reason) xpc_deactivate_partition() argument 392 xpc_mark_partition_inactive(struct xpc_partition *part) xpc_mark_partition_inactive() argument 532 struct xpc_partition *part; xpc_initiate_partid_to_nasids() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
H A D | mtd.c | 30 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 in efx_mtd_add() 100 struct efx_mtd_partition *parts, *part, *next; efx_mtd_remove() local 118 struct efx_mtd_partition *part; efx_mtd_rename() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/ |
H A D | mtd.c | 30 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 in efx_mtd_add() 100 struct efx_mtd_partition *parts, *part, *next; efx_mtd_remove() local 118 struct efx_mtd_partition *part; efx_mtd_rename() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/ |
H A D | mtd.c | 30 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 in efx_siena_mtd_add() 100 struct efx_mtd_partition *parts, *part, *next; efx_siena_mtd_remove() local 118 struct efx_mtd_partition *part; efx_siena_mtd_rename() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/ |
H A D | mtd.c | 30 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 in ef4_mtd_add() 97 struct ef4_mtd_partition *parts, *part, *next; ef4_mtd_remove() local 115 struct ef4_mtd_partition *part; ef4_mtd_rename() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/falcon/ |
H A D | mtd.c | 30 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 in ef4_mtd_add() 97 struct ef4_mtd_partition *parts, *part, *next; ef4_mtd_remove() local 115 struct ef4_mtd_partition *part; ef4_mtd_rename() local [all...] |
/kernel/linux/linux-5.10/fs/orangefs/ |
H A D | dir.c | 17 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. 58 * first part of the part list. 134 struct orangefs_dir_part *part, *new; in parse_readdir() local 138 part in parse_readdir() 189 fill_from_part(struct orangefs_dir_part *part, struct dir_context *ctx) fill_from_part() argument 245 struct orangefs_dir_part *part; orangefs_dir_fill() local 291 struct orangefs_dir_part *part = od->part; orangefs_dir_llseek() local 388 struct orangefs_dir_part *part = od->part; orangefs_dir_release() local [all...] |
/kernel/linux/linux-6.6/fs/orangefs/ |
H A D | dir.c | 17 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. 58 * first part of the part list. 134 struct orangefs_dir_part *part, *new; in parse_readdir() local 138 part in parse_readdir() 189 fill_from_part(struct orangefs_dir_part *part, struct dir_context *ctx) fill_from_part() argument 245 struct orangefs_dir_part *part; orangefs_dir_fill() local 291 struct orangefs_dir_part *part = od->part; orangefs_dir_llseek() local 388 struct orangefs_dir_part *part = od->part; orangefs_dir_release() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum1_kvdl.c | 74 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() 118 mlxsw_sp1_kvdl_part_alloc(struct mlxsw_sp1_kvdl_part *part, u32 *p_kvdl_index) mlxsw_sp1_kvdl_part_alloc() argument 136 mlxsw_sp1_kvdl_part_free(struct mlxsw_sp1_kvdl_part *part, u32 kvdl_index) mlxsw_sp1_kvdl_part_free() argument 152 struct mlxsw_sp1_kvdl_part *part; mlxsw_sp1_kvdl_alloc() local 169 struct mlxsw_sp1_kvdl_part *part; mlxsw_sp1_kvdl_free() local 184 struct mlxsw_sp1_kvdl_part *part; mlxsw_sp1_kvdl_alloc_size_query() local 195 mlxsw_sp1_kvdl_part_update(struct mlxsw_sp1_kvdl_part *part, struct mlxsw_sp1_kvdl_part *part_prev, unsigned int size) mlxsw_sp1_kvdl_part_update() argument 213 struct mlxsw_sp1_kvdl_part *part; mlxsw_sp1_kvdl_part_init() local 240 mlxsw_sp1_kvdl_part_fini(struct mlxsw_sp1_kvdl_part *part) mlxsw_sp1_kvdl_part_fini() argument 278 mlxsw_sp1_kvdl_part_occ(struct mlxsw_sp1_kvdl_part *part) mlxsw_sp1_kvdl_part_occ() argument 309 struct mlxsw_sp1_kvdl_part *part; mlxsw_sp1_kvdl_single_occ_get() local 318 struct mlxsw_sp1_kvdl_part *part; mlxsw_sp1_kvdl_chunks_occ_get() local 327 struct mlxsw_sp1_kvdl_part *part; mlxsw_sp1_kvdl_large_chunks_occ_get() local [all...] |
H A D | spectrum2_kvdl.c | 55 static int mlxsw_sp2_kvdl_part_find_zero_bits(struct mlxsw_sp2_kvdl_part *part, in mlxsw_sp2_kvdl_part_find_zero_bits() argument 64 start_bit = part->last_allocated_bit + 1; in mlxsw_sp2_kvdl_part_find_zero_bits() 65 if (start_bit == part->usage_bit_count) in mlxsw_sp2_kvdl_part_find_zero_bits() 69 bit = find_next_zero_bit(part->usage, part->usage_bit_count, bit); in mlxsw_sp2_kvdl_part_find_zero_bits() 70 if (!wrap && bit + bit_count >= part->usage_bit_count) { in mlxsw_sp2_kvdl_part_find_zero_bits() 78 if (test_bit(bit + i, part->usage)) { in mlxsw_sp2_kvdl_part_find_zero_bits() 87 static int mlxsw_sp2_kvdl_part_alloc(struct mlxsw_sp2_kvdl_part *part, in mlxsw_sp2_kvdl_part_alloc() argument 96 bit_count = DIV_ROUND_UP(size, part->indexes_per_usage_bit); in mlxsw_sp2_kvdl_part_alloc() 97 err = mlxsw_sp2_kvdl_part_find_zero_bits(part, bit_coun in mlxsw_sp2_kvdl_part_alloc() 123 mlxsw_sp2_kvdl_part_free(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp2_kvdl_part *part, unsigned int size, u32 kvdl_index) mlxsw_sp2_kvdl_part_free() argument 151 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; mlxsw_sp2_kvdl_alloc() local 163 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; mlxsw_sp2_kvdl_free() local 183 struct mlxsw_sp2_kvdl_part *part; mlxsw_sp2_kvdl_part_init() local 215 mlxsw_sp2_kvdl_part_fini(struct mlxsw_sp2_kvdl_part *part) mlxsw_sp2_kvdl_part_fini() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum1_kvdl.c | 74 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() 118 mlxsw_sp1_kvdl_part_alloc(struct mlxsw_sp1_kvdl_part *part, u32 *p_kvdl_index) mlxsw_sp1_kvdl_part_alloc() argument 136 mlxsw_sp1_kvdl_part_free(struct mlxsw_sp1_kvdl_part *part, u32 kvdl_index) mlxsw_sp1_kvdl_part_free() argument 152 struct mlxsw_sp1_kvdl_part *part; mlxsw_sp1_kvdl_alloc() local 169 struct mlxsw_sp1_kvdl_part *part; mlxsw_sp1_kvdl_free() local 184 struct mlxsw_sp1_kvdl_part *part; mlxsw_sp1_kvdl_alloc_size_query() local 195 mlxsw_sp1_kvdl_part_update(struct mlxsw_sp1_kvdl_part *part, struct mlxsw_sp1_kvdl_part *part_prev, unsigned int size) mlxsw_sp1_kvdl_part_update() argument 213 struct mlxsw_sp1_kvdl_part *part; mlxsw_sp1_kvdl_part_init() local 239 mlxsw_sp1_kvdl_part_fini(struct mlxsw_sp1_kvdl_part *part) mlxsw_sp1_kvdl_part_fini() argument 277 mlxsw_sp1_kvdl_part_occ(struct mlxsw_sp1_kvdl_part *part) mlxsw_sp1_kvdl_part_occ() argument 308 struct mlxsw_sp1_kvdl_part *part; mlxsw_sp1_kvdl_single_occ_get() local 317 struct mlxsw_sp1_kvdl_part *part; mlxsw_sp1_kvdl_chunks_occ_get() local 326 struct mlxsw_sp1_kvdl_part *part; mlxsw_sp1_kvdl_large_chunks_occ_get() local [all...] |
H A D | spectrum2_kvdl.c | 56 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_coun in mlxsw_sp2_kvdl_part_alloc() 124 mlxsw_sp2_kvdl_part_free(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp2_kvdl_part *part, unsigned int size, u32 kvdl_index) mlxsw_sp2_kvdl_part_free() argument 152 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; mlxsw_sp2_kvdl_alloc() local 164 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; mlxsw_sp2_kvdl_free() local 184 struct mlxsw_sp2_kvdl_part *part; mlxsw_sp2_kvdl_part_init() local 216 mlxsw_sp2_kvdl_part_fini(struct mlxsw_sp2_kvdl_part *part) mlxsw_sp2_kvdl_part_fini() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | part_stat.h | 19 * {disk|part|all}_stat_{add|sub|inc|dec}() modify the stat counters and should 27 #define part_stat_get_cpu(part, field, cpu) \ 28 (per_cpu_ptr((part)->dkstats, (cpu))->field) 30 #define part_stat_get(part, field) \ 31 part_stat_get_cpu(part, field, smp_processor_id()) 33 #define part_stat_read(part, field) \ 35 typeof((part)->dkstats->field) res = 0; \ 38 res += per_cpu_ptr((part)->dkstats, _cpu)->field; \ 42 static inline void part_stat_set_all(struct hd_struct *part, int value) in part_stat_set_all() argument 47 memset(per_cpu_ptr(part in part_stat_set_all() [all...] |