/kernel/linux/linux-5.10/lib/ |
H A D | btree.c | 135 static void dec_key(struct btree_geo *geo, unsigned long *key) in dec_key() argument 140 for (i = geo->keylen - 1; i >= 0; i--) { in dec_key() 148 static unsigned long *bkey(struct btree_geo *geo, unsigned long *node, int n) in bkey() argument 150 return &node[n * geo->keylen]; in bkey() 153 static void *bval(struct btree_geo *geo, unsigned long *node, int n) in bval() argument 155 return (void *)node[geo->no_longs + n]; in bval() 158 static void setkey(struct btree_geo *geo, unsigned long *node, int n, in setkey() argument 161 longcpy(bkey(geo, node, n), key, geo->keylen); in setkey() 164 static void setval(struct btree_geo *geo, unsigne argument 170 clearpair(struct btree_geo *geo, unsigned long *node, int n) clearpair() argument 207 btree_last(struct btree_head *head, struct btree_geo *geo, unsigned long *key) btree_last() argument 224 keycmp(struct btree_geo *geo, unsigned long *node, int pos, unsigned long *key) keycmp() argument 230 keyzero(struct btree_geo *geo, unsigned long *key) keyzero() argument 241 btree_lookup(struct btree_head *head, struct btree_geo *geo, unsigned long *key) btree_lookup() argument 271 btree_update(struct btree_head *head, struct btree_geo *geo, unsigned long *key, void *val) btree_update() argument 311 btree_get_prev(struct btree_head *head, struct btree_geo *geo, unsigned long *__key) btree_get_prev() argument 363 getpos(struct btree_geo *geo, unsigned long *node, unsigned long *key) getpos() argument 375 getfill(struct btree_geo *geo, unsigned long *node, int start) getfill() argument 388 find_level(struct btree_head *head, struct btree_geo *geo, unsigned long *key, int level) find_level() argument 413 btree_grow(struct btree_head *head, struct btree_geo *geo, gfp_t gfp) btree_grow() argument 432 btree_shrink(struct btree_head *head, struct btree_geo *geo) btree_shrink() argument 448 btree_insert_level(struct btree_head *head, struct btree_geo *geo, unsigned long *key, void *val, int level, gfp_t gfp) btree_insert_level() argument 510 btree_insert(struct btree_head *head, struct btree_geo *geo, unsigned long *key, void *val, gfp_t gfp) btree_insert() argument 520 merge(struct btree_head *head, struct btree_geo *geo, int level, unsigned long *left, int lfill, unsigned long *right, int rfill, unsigned long *parent, int lpos) merge() argument 540 rebalance(struct btree_head *head, struct btree_geo *geo, unsigned long *key, int level, unsigned long *child, int fill) rebalance() argument 591 btree_remove_level(struct btree_head *head, struct btree_geo *geo, unsigned long *key, int level) btree_remove_level() argument 629 btree_remove(struct btree_head *head, struct btree_geo *geo, unsigned long *key) btree_remove() argument 639 btree_merge(struct btree_head *target, struct btree_head *victim, struct btree_geo *geo, gfp_t gfp) btree_merge() argument 676 __btree_for_each(struct btree_head *head, struct btree_geo *geo, unsigned long *node, unsigned long opaque, void (*func)(void *elem, unsigned long opaque, unsigned long *key, size_t index, void *func2), void *func2, int reap, int height, size_t count) __btree_for_each() argument 746 btree_visitor(struct btree_head *head, struct btree_geo *geo, unsigned long opaque, void (*func)(void *elem, unsigned long opaque, unsigned long *key, size_t index, void *func2), void *func2) btree_visitor() argument 764 btree_grim_visitor(struct btree_head *head, struct btree_geo *geo, unsigned long opaque, void (*func)(void *elem, unsigned long opaque, unsigned long *key, size_t index, void *func2), void *func2) btree_grim_visitor() argument [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | btree.c | 135 static void dec_key(struct btree_geo *geo, unsigned long *key) in dec_key() argument 140 for (i = geo->keylen - 1; i >= 0; i--) { in dec_key() 148 static unsigned long *bkey(struct btree_geo *geo, unsigned long *node, int n) in bkey() argument 150 return &node[n * geo->keylen]; in bkey() 153 static void *bval(struct btree_geo *geo, unsigned long *node, int n) in bval() argument 155 return (void *)node[geo->no_longs + n]; in bval() 158 static void setkey(struct btree_geo *geo, unsigned long *node, int n, in setkey() argument 161 longcpy(bkey(geo, node, n), key, geo->keylen); in setkey() 164 static void setval(struct btree_geo *geo, unsigne argument 170 clearpair(struct btree_geo *geo, unsigned long *node, int n) clearpair() argument 207 btree_last(struct btree_head *head, struct btree_geo *geo, unsigned long *key) btree_last() argument 224 keycmp(struct btree_geo *geo, unsigned long *node, int pos, unsigned long *key) keycmp() argument 230 keyzero(struct btree_geo *geo, unsigned long *key) keyzero() argument 241 btree_lookup_node(struct btree_head *head, struct btree_geo *geo, unsigned long *key) btree_lookup_node() argument 263 btree_lookup(struct btree_head *head, struct btree_geo *geo, unsigned long *key) btree_lookup() argument 280 btree_update(struct btree_head *head, struct btree_geo *geo, unsigned long *key, void *val) btree_update() argument 307 btree_get_prev(struct btree_head *head, struct btree_geo *geo, unsigned long *__key) btree_get_prev() argument 359 getpos(struct btree_geo *geo, unsigned long *node, unsigned long *key) getpos() argument 371 getfill(struct btree_geo *geo, unsigned long *node, int start) getfill() argument 384 find_level(struct btree_head *head, struct btree_geo *geo, unsigned long *key, int level) find_level() argument 409 btree_grow(struct btree_head *head, struct btree_geo *geo, gfp_t gfp) btree_grow() argument 428 btree_shrink(struct btree_head *head, struct btree_geo *geo) btree_shrink() argument 444 btree_insert_level(struct btree_head *head, struct btree_geo *geo, unsigned long *key, void *val, int level, gfp_t gfp) btree_insert_level() argument 506 btree_insert(struct btree_head *head, struct btree_geo *geo, unsigned long *key, void *val, gfp_t gfp) btree_insert() argument 516 merge(struct btree_head *head, struct btree_geo *geo, int level, unsigned long *left, int lfill, unsigned long *right, int rfill, unsigned long *parent, int lpos) merge() argument 536 rebalance(struct btree_head *head, struct btree_geo *geo, unsigned long *key, int level, unsigned long *child, int fill) rebalance() argument 587 btree_remove_level(struct btree_head *head, struct btree_geo *geo, unsigned long *key, int level) btree_remove_level() argument 625 btree_remove(struct btree_head *head, struct btree_geo *geo, unsigned long *key) btree_remove() argument 635 btree_merge(struct btree_head *target, struct btree_head *victim, struct btree_geo *geo, gfp_t gfp) btree_merge() argument 672 __btree_for_each(struct btree_head *head, struct btree_geo *geo, unsigned long *node, unsigned long opaque, void (*func)(void *elem, unsigned long opaque, unsigned long *key, size_t index, void *func2), void *func2, int reap, int height, size_t count) __btree_for_each() argument 742 btree_visitor(struct btree_head *head, struct btree_geo *geo, unsigned long opaque, void (*func)(void *elem, unsigned long opaque, unsigned long *key, size_t index, void *func2), void *func2) btree_visitor() argument 760 btree_grim_visitor(struct btree_head *head, struct btree_geo *geo, unsigned long opaque, void (*func)(void *elem, unsigned long opaque, unsigned long *key, size_t index, void *func2), void *func2) btree_grim_visitor() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/intel/ipw2x00/ |
H A D | libipw_geo.c | 37 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_is_valid_channel() 41 for (i = 0; i < ieee->geo.bg_channels; i++) in libipw_is_valid_channel() 45 if ((ieee->geo.bg[i].channel == channel) && in libipw_is_valid_channel() 46 !(ieee->geo.bg[i].flags & LIBIPW_CH_INVALID) && in libipw_is_valid_channel() 48 !(ieee->geo.bg[i].flags & LIBIPW_CH_B_ONLY))) in libipw_is_valid_channel() 52 for (i = 0; i < ieee->geo.a_channels; i++) in libipw_is_valid_channel() 53 if ((ieee->geo.a[i].channel == channel) && in libipw_is_valid_channel() 54 !(ieee->geo.a[i].flags & LIBIPW_CH_INVALID)) in libipw_is_valid_channel() 66 if (ieee->geo in libipw_channel_to_index() 121 libipw_set_geo(struct libipw_device *ieee, const struct libipw_geo *geo) libipw_set_geo() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/intel/ipw2x00/ |
H A D | libipw_geo.c | 37 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_is_valid_channel() 41 for (i = 0; i < ieee->geo.bg_channels; i++) in libipw_is_valid_channel() 45 if ((ieee->geo.bg[i].channel == channel) && in libipw_is_valid_channel() 46 !(ieee->geo.bg[i].flags & LIBIPW_CH_INVALID) && in libipw_is_valid_channel() 48 !(ieee->geo.bg[i].flags & LIBIPW_CH_B_ONLY))) in libipw_is_valid_channel() 52 for (i = 0; i < ieee->geo.a_channels; i++) in libipw_is_valid_channel() 53 if ((ieee->geo.a[i].channel == channel) && in libipw_is_valid_channel() 54 !(ieee->geo.a[i].flags & LIBIPW_CH_INVALID)) in libipw_is_valid_channel() 66 if (ieee->geo in libipw_channel_to_index() 121 libipw_set_geo(struct libipw_device *ieee, const struct libipw_geo *geo) libipw_set_geo() argument [all...] |
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/gpmi-nand/ |
H A D | gpmi-nand.c | 198 struct bch_geometry *geo = &this->bch_geometry; in gpmi_dump_info() local 227 geo->gf_len, in gpmi_dump_info() 228 geo->ecc_strength, in gpmi_dump_info() 229 geo->page_size, in gpmi_dump_info() 230 geo->metadata_size, in gpmi_dump_info() 231 geo->ecc0_chunk_size, in gpmi_dump_info() 232 geo->eccn_chunk_size, in gpmi_dump_info() 233 geo->ecc_chunk_count, in gpmi_dump_info() 234 geo->payload_size, in gpmi_dump_info() 235 geo in gpmi_dump_info() 244 struct bch_geometry *geo = &this->bch_geometry; gpmi_check_ecc() local 271 struct bch_geometry *geo = &this->bch_geometry; bbm_in_data_chunk() local 310 struct bch_geometry *geo = &this->bch_geometry; set_geometry_by_ecc_info() local 438 struct bch_geometry *geo = &this->bch_geometry; get_ecc_strength() local 451 struct bch_geometry *geo = &this->bch_geometry; set_geometry_for_large_oob() local 579 struct bch_geometry *geo = &this->bch_geometry; legacy_set_geometry() local 1094 struct bch_geometry *geo = &this->bch_geometry; gpmi_ooblayout_ecc() local 1110 struct bch_geometry *geo = &this->bch_geometry; gpmi_ooblayout_free() local 1310 struct bch_geometry *geo = &this->bch_geometry; gpmi_free_dma_buffer() local 1326 struct bch_geometry *geo = &this->bch_geometry; gpmi_alloc_dma_buffer() local 1505 struct bch_geometry *geo = &this->bch_geometry; gpmi_bch_layout_std() local 1530 struct bch_geometry *geo = &this->bch_geometry; gpmi_ecc_read_page() local 1571 struct bch_geometry *geo = &this->bch_geometry; gpmi_ecc_read_subpage() local [all...] |
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_dir2.h | 125 xfs_dir2_byte_to_db(struct xfs_da_geometry *geo, xfs_dir2_off_t by) in xfs_dir2_byte_to_db() argument 127 return (xfs_dir2_db_t)(by >> geo->blklog); in xfs_dir2_byte_to_db() 134 xfs_dir2_dataptr_to_db(struct xfs_da_geometry *geo, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_db() argument 136 return xfs_dir2_byte_to_db(geo, xfs_dir2_dataptr_to_byte(dp)); in xfs_dir2_dataptr_to_db() 143 xfs_dir2_byte_to_off(struct xfs_da_geometry *geo, xfs_dir2_off_t by) in xfs_dir2_byte_to_off() argument 145 return (xfs_dir2_data_aoff_t)(by & (geo->blksize - 1)); in xfs_dir2_byte_to_off() 152 xfs_dir2_dataptr_to_off(struct xfs_da_geometry *geo, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_off() argument 154 return xfs_dir2_byte_to_off(geo, xfs_dir2_dataptr_to_byte(dp)); in xfs_dir2_dataptr_to_off() 161 xfs_dir2_db_off_to_byte(struct xfs_da_geometry *geo, xfs_dir2_db_t db, in xfs_dir2_db_off_to_byte() argument 164 return ((xfs_dir2_off_t)db << geo in xfs_dir2_db_off_to_byte() 171 xfs_dir2_db_to_da(struct xfs_da_geometry *geo, xfs_dir2_db_t db) xfs_dir2_db_to_da() argument 180 xfs_dir2_byte_to_da(struct xfs_da_geometry *geo, xfs_dir2_off_t by) xfs_dir2_byte_to_da() argument 189 xfs_dir2_db_off_to_dataptr(struct xfs_da_geometry *geo, xfs_dir2_db_t db, xfs_dir2_data_aoff_t o) xfs_dir2_db_off_to_dataptr() argument 199 xfs_dir2_da_to_db(struct xfs_da_geometry *geo, xfs_dablk_t da) xfs_dir2_da_to_db() argument 208 xfs_dir2_da_to_byte(struct xfs_da_geometry *geo, xfs_dablk_t da) xfs_dir2_da_to_byte() argument 217 xfs_dir2_block_tail_p(struct xfs_da_geometry *geo, struct xfs_dir2_data_hdr *hdr) xfs_dir2_block_tail_p() argument 224 xfs_dir2_leaf_tail_p(struct xfs_da_geometry *geo, struct xfs_dir2_leaf *lp) xfs_dir2_leaf_tail_p() argument [all...] |
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_dir2.h | 125 xfs_dir2_byte_to_db(struct xfs_da_geometry *geo, xfs_dir2_off_t by) in xfs_dir2_byte_to_db() argument 127 return (xfs_dir2_db_t)(by >> geo->blklog); in xfs_dir2_byte_to_db() 134 xfs_dir2_dataptr_to_db(struct xfs_da_geometry *geo, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_db() argument 136 return xfs_dir2_byte_to_db(geo, xfs_dir2_dataptr_to_byte(dp)); in xfs_dir2_dataptr_to_db() 143 xfs_dir2_byte_to_off(struct xfs_da_geometry *geo, xfs_dir2_off_t by) in xfs_dir2_byte_to_off() argument 145 return (xfs_dir2_data_aoff_t)(by & (geo->blksize - 1)); in xfs_dir2_byte_to_off() 152 xfs_dir2_dataptr_to_off(struct xfs_da_geometry *geo, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_off() argument 154 return xfs_dir2_byte_to_off(geo, xfs_dir2_dataptr_to_byte(dp)); in xfs_dir2_dataptr_to_off() 161 xfs_dir2_db_off_to_byte(struct xfs_da_geometry *geo, xfs_dir2_db_t db, in xfs_dir2_db_off_to_byte() argument 164 return ((xfs_dir2_off_t)db << geo in xfs_dir2_db_off_to_byte() 171 xfs_dir2_db_to_da(struct xfs_da_geometry *geo, xfs_dir2_db_t db) xfs_dir2_db_to_da() argument 180 xfs_dir2_byte_to_da(struct xfs_da_geometry *geo, xfs_dir2_off_t by) xfs_dir2_byte_to_da() argument 189 xfs_dir2_db_off_to_dataptr(struct xfs_da_geometry *geo, xfs_dir2_db_t db, xfs_dir2_data_aoff_t o) xfs_dir2_db_off_to_dataptr() argument 199 xfs_dir2_da_to_db(struct xfs_da_geometry *geo, xfs_dablk_t da) xfs_dir2_da_to_db() argument 208 xfs_dir2_da_to_byte(struct xfs_da_geometry *geo, xfs_dablk_t da) xfs_dir2_da_to_byte() argument 217 xfs_dir2_block_tail_p(struct xfs_da_geometry *geo, struct xfs_dir2_data_hdr *hdr) xfs_dir2_block_tail_p() argument 224 xfs_dir2_leaf_tail_p(struct xfs_da_geometry *geo, struct xfs_dir2_leaf *lp) xfs_dir2_leaf_tail_p() argument [all...] |
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_dir2_readdir.c | 58 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_sf_getdents() local 69 if (xfs_dir2_dataptr_to_db(geo, ctx->pos) > geo->datablk) in xfs_dir2_sf_getdents() 77 dot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents() 78 geo->data_entry_offset); in xfs_dir2_sf_getdents() 79 dotdot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents() 80 geo in xfs_dir2_sf_getdents() 148 struct xfs_da_geometry *geo = args->geo; xfs_dir2_block_getdents() local 249 struct xfs_da_geometry *geo = args->geo; xfs_dir2_leaf_readbuf() local 356 struct xfs_da_geometry *geo = args->geo; xfs_dir2_leaf_getdents() local [all...] |
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_dir2_readdir.c | 58 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_sf_getdents() local 69 if (xfs_dir2_dataptr_to_db(geo, ctx->pos) > geo->datablk) in xfs_dir2_sf_getdents() 77 dot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents() 78 geo->data_entry_offset); in xfs_dir2_sf_getdents() 79 dotdot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents() 80 geo in xfs_dir2_sf_getdents() 149 struct xfs_da_geometry *geo = args->geo; xfs_dir2_block_getdents() local 250 struct xfs_da_geometry *geo = args->geo; xfs_dir2_leaf_readbuf() local 356 struct xfs_da_geometry *geo = args->geo; xfs_dir2_leaf_getdents() local [all...] |
/kernel/linux/linux-5.10/drivers/nvme/host/ |
H A D | lightnvm.c | 286 struct nvm_geo *geo) in nvme_nvm_setup_12() 302 geo->major_ver_id = id->ver_id; in nvme_nvm_setup_12() 303 geo->minor_ver_id = 2; in nvme_nvm_setup_12() 306 geo->version = NVM_OCSSD_SPEC_12; in nvme_nvm_setup_12() 308 geo->num_ch = src->num_ch; in nvme_nvm_setup_12() 309 geo->num_lun = src->num_lun; in nvme_nvm_setup_12() 310 geo->all_luns = geo->num_ch * geo->num_lun; in nvme_nvm_setup_12() 312 geo in nvme_nvm_setup_12() 285 nvme_nvm_setup_12(struct nvme_nvm_id12 *id, struct nvm_geo *geo) nvme_nvm_setup_12() argument 394 nvme_nvm_setup_20(struct nvme_nvm_id20 *id, struct nvm_geo *geo) nvme_nvm_setup_20() argument 479 struct nvm_geo *geo = &nvmdev->geo; nvme_nvm_get_bb_tbl() local 559 struct nvm_geo *geo = &ndev->geo; nvme_nvm_get_chk_meta() local 673 struct nvm_geo *geo = &dev->geo; nvme_nvm_submit_io() local 952 struct nvm_geo *geo; nvme_nvm_register() local 989 struct nvm_geo *geo = &ndev->geo; nvm_dev_attr_show() local 1036 struct nvm_geo *geo = &ndev->geo; nvm_dev_attr_show_12() local 1099 struct nvm_geo *geo = &ndev->geo; nvm_dev_attr_show_20() local [all...] |
/kernel/linux/linux-5.10/drivers/lightnvm/ |
H A D | pblk-init.c | 185 struct nvm_geo *geo = &dev->geo; in pblk_rwb_init() local 189 threshold = geo->mw_cunits * geo->all_luns; in pblk_rwb_init() 190 pgs_in_buffer = (max(geo->mw_cunits, geo->ws_opt) + geo->ws_opt) in pblk_rwb_init() 191 * geo->all_luns; in pblk_rwb_init() 198 return pblk_rb_init(&pblk->rwb, buffer_size, threshold, geo->csecs); in pblk_rwb_init() 201 static int pblk_set_addrf_12(struct pblk *pblk, struct nvm_geo *geo, in pblk_set_addrf_12() argument 244 pblk_set_addrf_20(struct nvm_geo *geo, struct nvm_addrf *adst, struct pblk_addrf *udst) pblk_set_addrf_20() argument 277 struct nvm_geo *geo = &dev->geo; pblk_set_addrf() local 379 struct nvm_geo *geo = &dev->geo; pblk_core_init() local 594 struct nvm_geo *geo = &dev->geo; pblk_luns_init() local 630 struct nvm_geo *geo = &dev->geo; calc_emeta_len() local 658 struct nvm_geo *geo = &dev->geo; pblk_set_provision() local 713 struct nvm_geo *geo = &dev->geo; pblk_setup_line_meta_chk() local 824 struct nvm_geo *geo = &dev->geo; pblk_line_mg_init() local 941 struct nvm_geo *geo = &dev->geo; pblk_line_meta_init() local 1152 struct nvm_geo *geo = &dev->geo; pblk_init() local [all...] |
H A D | core.c | 115 int lunid = (ch * dev->geo.num_lun) + lun; in nvm_remove_tgt_dev() 142 int num_ch = num_lun / dev->geo.num_lun; in nvm_create_tgt_dev() 143 int num_ch_mod = num_lun % dev->geo.num_lun; in nvm_create_tgt_dev() 144 int bch = lun_begin / dev->geo.num_lun; in nvm_create_tgt_dev() 145 int blun = lun_begin % dev->geo.num_lun; in nvm_create_tgt_dev() 165 prev_num_lun = (luns_left > dev->geo.num_lun) ? in nvm_create_tgt_dev() 166 dev->geo.num_lun : luns_left; in nvm_create_tgt_dev() 172 int luns_in_chnl = (luns_left > dev->geo.num_lun) ? in nvm_create_tgt_dev() 173 dev->geo.num_lun : luns_left; in nvm_create_tgt_dev() 208 memcpy(&tgt_dev->geo, in nvm_create_tgt_dev() 261 nvm_config_check_luns(struct nvm_geo *geo, int lun_begin, int lun_end) nvm_config_check_luns() argument 276 struct nvm_geo *geo = &dev->geo; __nvm_config_simple() local 675 struct nvm_geo *geo = &tgt_dev->geo; nvm_set_rqd_ppalist() local 716 nvm_set_flags(struct nvm_geo *geo, struct nvm_rq *rqd) nvm_set_flags() argument 862 struct nvm_geo *geo = &dev->geo; nvm_bb_chunk_scan() local 959 struct nvm_geo *geo = &dev->geo; nvm_bb_to_chunk() local 999 struct nvm_geo *geo = &dev->geo; nvm_get_bb_meta() local 1095 struct nvm_geo *geo = &dev->geo; nvm_core_init() local 1134 struct nvm_geo *geo = &dev->geo; nvm_init() local [all...] |
/kernel/linux/linux-5.10/block/partitions/ |
H A D | ibm.c | 31 static sector_t cchh2blk(struct vtoc_cchh *ptr, struct hd_geometry *geo) in cchh2blk() argument 41 return cyl * geo->heads * geo->sectors + in cchh2blk() 42 head * geo->sectors; in cchh2blk() 49 static sector_t cchhb2blk(struct vtoc_cchhb *ptr, struct hd_geometry *geo) in cchhb2blk() argument 59 return cyl * geo->heads * geo->sectors + in cchhb2blk() 60 head * geo->sectors + in cchhb2blk() 66 struct hd_geometry *geo, in find_label() 134 struct hd_geometry *geo, in find_vol1_partitions() 64 find_label(struct parsed_partitions *state, dasd_information2_t *info, struct hd_geometry *geo, int blocksize, sector_t *labelsect, char name[], char type[], union label_t *label) find_label() argument 133 find_vol1_partitions(struct parsed_partitions *state, struct hd_geometry *geo, int blocksize, char name[], union label_t *label) find_vol1_partitions() argument 195 find_lnx1_partitions(struct parsed_partitions *state, struct hd_geometry *geo, int blocksize, char name[], union label_t *label, sector_t labelsect, loff_t i_size, dasd_information2_t *info) find_lnx1_partitions() argument 242 find_cms1_partitions(struct parsed_partitions *state, struct hd_geometry *geo, int blocksize, char name[], union label_t *label, sector_t labelsect) find_cms1_partitions() argument 298 struct hd_geometry *geo; ibm_partition() local [all...] |
/kernel/linux/linux-6.6/block/partitions/ |
H A D | ibm.c | 31 static sector_t cchh2blk(struct vtoc_cchh *ptr, struct hd_geometry *geo) in cchh2blk() argument 41 return cyl * geo->heads * geo->sectors + in cchh2blk() 42 head * geo->sectors; in cchh2blk() 49 static sector_t cchhb2blk(struct vtoc_cchhb *ptr, struct hd_geometry *geo) in cchhb2blk() argument 59 return cyl * geo->heads * geo->sectors + in cchhb2blk() 60 head * geo->sectors + in cchhb2blk() 66 struct hd_geometry *geo, in find_label() 134 struct hd_geometry *geo, in find_vol1_partitions() 64 find_label(struct parsed_partitions *state, dasd_information2_t *info, struct hd_geometry *geo, int blocksize, sector_t *labelsect, char name[], char type[], union label_t *label) find_label() argument 133 find_vol1_partitions(struct parsed_partitions *state, struct hd_geometry *geo, int blocksize, char name[], union label_t *label) find_vol1_partitions() argument 195 find_lnx1_partitions(struct parsed_partitions *state, struct hd_geometry *geo, int blocksize, char name[], union label_t *label, sector_t labelsect, sector_t nr_sectors, dasd_information2_t *info) find_lnx1_partitions() argument 242 find_cms1_partitions(struct parsed_partitions *state, struct hd_geometry *geo, int blocksize, char name[], union label_t *label, sector_t labelsect) find_cms1_partitions() argument 299 struct hd_geometry *geo; ibm_partition() local [all...] |
/kernel/linux/linux-6.6/fs/xfs/scrub/ |
H A D | readdir.c | 37 struct xfs_da_geometry *geo = mp->m_dir_geo; in xchk_dir_walk_sf() local 51 dapos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xchk_dir_walk_sf() 52 geo->data_entry_offset); in xchk_dir_walk_sf() 59 dapos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xchk_dir_walk_sf() 60 geo->data_entry_offset + in xchk_dir_walk_sf() 73 dapos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xchk_dir_walk_sf() 99 struct xfs_da_geometry *geo in xchk_dir_walk_block() local 145 xchk_read_leaf_dir_buf( struct xfs_trans *tp, struct xfs_inode *dp, struct xfs_da_geometry *geo, xfs_dir2_off_t *curoff, struct xfs_buf **bpp) xchk_read_leaf_dir_buf() argument 192 struct xfs_da_geometry *geo = mp->m_dir_geo; xchk_dir_walk_leaf() local [all...] |
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/gpmi-nand/ |
H A D | gpmi-nand.c | 198 struct bch_geometry *geo = &this->bch_geometry; in gpmi_dump_info() local 226 geo->gf_len, in gpmi_dump_info() 227 geo->ecc_strength, in gpmi_dump_info() 228 geo->page_size, in gpmi_dump_info() 229 geo->metadata_size, in gpmi_dump_info() 230 geo->ecc_chunk_size, in gpmi_dump_info() 231 geo->ecc_chunk_count, in gpmi_dump_info() 232 geo->payload_size, in gpmi_dump_info() 233 geo->auxiliary_size, in gpmi_dump_info() 234 geo in gpmi_dump_info() 241 struct bch_geometry *geo = &this->bch_geometry; gpmi_check_ecc() local 262 struct bch_geometry *geo = &this->bch_geometry; set_geometry_by_ecc_info() local 389 struct bch_geometry *geo = &this->bch_geometry; get_ecc_strength() local 402 struct bch_geometry *geo = &this->bch_geometry; legacy_set_geometry() local 885 struct bch_geometry *geo = &this->bch_geometry; gpmi_ooblayout_ecc() local 901 struct bch_geometry *geo = &this->bch_geometry; gpmi_ooblayout_free() local 1106 struct bch_geometry *geo = &this->bch_geometry; gpmi_free_dma_buffer() local 1122 struct bch_geometry *geo = &this->bch_geometry; gpmi_alloc_dma_buffer() local 1301 struct bch_geometry *geo = &this->bch_geometry; gpmi_bch_layout_std() local 1325 struct bch_geometry *geo = &this->bch_geometry; gpmi_ecc_read_page() local 1366 struct bch_geometry *geo = &this->bch_geometry; gpmi_ecc_read_subpage() local [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/bt8xx/ |
H A D | bttv-risc.c | 326 bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo, in bttv_calc_geo_old() argument 346 geo->hscale = ((totalwidth*4096UL)/xsf-4096); in bttv_calc_geo_old() 347 geo->hdelay = tvnorm->hdelayx1; in bttv_calc_geo_old() 348 geo->hdelay = (geo->hdelay*width)/swidth; in bttv_calc_geo_old() 349 geo->hdelay &= 0x3fe; in bttv_calc_geo_old() 351 geo->vscale = (0x10000UL-sr) & 0x1fff; in bttv_calc_geo_old() 352 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | in bttv_calc_geo_old() 354 geo in bttv_calc_geo_old() 370 bttv_calc_geo(struct bttv * btv, struct bttv_geometry * geo, unsigned int width, unsigned int height, int both_fields, const struct bttv_tvnorm * tvnorm, const struct v4l2_rect * crop) bttv_calc_geo() argument 426 bttv_apply_geo(struct bttv *btv, struct bttv_geometry *geo, int odd) bttv_apply_geo() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/bt8xx/ |
H A D | bttv-risc.c | 237 bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo, in bttv_calc_geo_old() argument 257 geo->hscale = ((totalwidth*4096UL)/xsf-4096); in bttv_calc_geo_old() 258 geo->hdelay = tvnorm->hdelayx1; in bttv_calc_geo_old() 259 geo->hdelay = (geo->hdelay*width)/swidth; in bttv_calc_geo_old() 260 geo->hdelay &= 0x3fe; in bttv_calc_geo_old() 262 geo->vscale = (0x10000UL-sr) & 0x1fff; in bttv_calc_geo_old() 263 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | in bttv_calc_geo_old() 265 geo in bttv_calc_geo_old() 281 bttv_calc_geo(struct bttv * btv, struct bttv_geometry * geo, unsigned int width, unsigned int height, int both_fields, const struct bttv_tvnorm * tvnorm, const struct v4l2_rect * crop) bttv_calc_geo() argument 337 bttv_apply_geo(struct bttv *btv, struct bttv_geometry *geo, int odd) bttv_apply_geo() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/ |
H A D | sh_vou.c | 506 static void vou_adjust_input(struct sh_vou_geometry *geo, v4l2_std_id std) in vou_adjust_input() argument 518 v4l_bound_align_image(&geo->in_width, in vou_adjust_input() 520 &geo->in_height, in vou_adjust_input() 526 unsigned int found = geo->output.width * vou_scale_h_den[i] / in vou_adjust_input() 533 err = abs(found - geo->in_width); in vou_adjust_input() 543 geo->in_width = best; in vou_adjust_input() 544 geo->scale_idx_h = idx; in vou_adjust_input() 551 unsigned int found = geo->output.height * vou_scale_v_den[i] / in vou_adjust_input() 558 err = abs(found - geo->in_height); in vou_adjust_input() 568 geo in vou_adjust_input() 576 vou_adjust_output(struct sh_vou_geometry *geo, v4l2_std_id std) vou_adjust_output() argument 691 struct sh_vou_geometry geo; sh_vou_set_fmt_vid_out() local 933 struct sh_vou_geometry geo; sh_vou_s_selection() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/renesas/ |
H A D | sh_vou.c | 506 static void vou_adjust_input(struct sh_vou_geometry *geo, v4l2_std_id std) in vou_adjust_input() argument 518 v4l_bound_align_image(&geo->in_width, in vou_adjust_input() 520 &geo->in_height, in vou_adjust_input() 526 unsigned int found = geo->output.width * vou_scale_h_den[i] / in vou_adjust_input() 533 err = abs(found - geo->in_width); in vou_adjust_input() 543 geo->in_width = best; in vou_adjust_input() 544 geo->scale_idx_h = idx; in vou_adjust_input() 551 unsigned int found = geo->output.height * vou_scale_v_den[i] / in vou_adjust_input() 558 err = abs(found - geo->in_height); in vou_adjust_input() 568 geo in vou_adjust_input() 576 vou_adjust_output(struct sh_vou_geometry *geo, v4l2_std_id std) vou_adjust_output() argument 691 struct sh_vou_geometry geo; sh_vou_set_fmt_vid_out() local 933 struct sh_vou_geometry geo; sh_vou_s_selection() local [all...] |
/kernel/linux/linux-6.6/drivers/md/ |
H A D | raid10.c | 109 int size = offsetof(struct r10bio, devs[conf->geo.raid_disks]); in r10bio_pool_alloc() 263 for (i = 0; i < conf->geo.raid_disks; i++) { in put_all_bios() 358 for (slot = 0; slot < conf->geo.raid_disks; slot++) { in find_bio_disk() 587 static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio) in __raid10_find_phys() argument 597 last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; in __raid10_find_phys() 598 last_far_set_start *= geo->far_set_size; in __raid10_find_phys() 600 last_far_set_size = geo->far_set_size; in __raid10_find_phys() 601 last_far_set_size += (geo->raid_disks % geo in __raid10_find_phys() 652 struct geom *geo = &conf->geo; raid10_find_phys() local 671 struct geom *geo = &conf->geo; raid10_find_virt() local 743 struct geom *geo = &conf->geo; read_balance() local 1653 struct geom *geo = &conf->geo; raid10_handle_discard() local 3980 setup_geo(struct geom *geo, struct mddev *mddev, enum geo_type new) setup_geo() argument 4054 struct geom geo; setup_conf() local 4464 struct geom geo; raid10_check_reshape() local 4747 last_dev_address(sector_t s, struct geom *geo) last_dev_address() argument 4762 first_dev_address(sector_t s, struct geom *geo) first_dev_address() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | lightnvm.h | 402 struct nvm_geo geo; member 419 struct nvm_geo geo; member 443 struct nvm_geo *geo = &dev->geo; in generic_to_dev_addr() local 446 if (geo->version == NVM_OCSSD_SPEC_12) { in generic_to_dev_addr() 447 struct nvm_addrf_12 *ppaf = (struct nvm_addrf_12 *)&geo->addrf; in generic_to_dev_addr() 456 struct nvm_addrf *lbaf = &geo->addrf; in generic_to_dev_addr() 470 struct nvm_geo *geo = &dev->geo; in dev_to_generic_addr() local 475 if (geo in dev_to_generic_addr() 499 struct nvm_geo *geo = &dev->geo; dev_to_chunk_addr() local 528 struct nvm_geo *geo = &dev->geo; nvm_ppa32_to_ppa64() local 573 struct nvm_geo *geo = &dev->geo; nvm_ppa64_to_ppa32() local 600 struct nvm_geo *geo = &dev->geo; nvm_next_ppa_in_chk() local [all...] |
H A D | btree.h | 24 * Each key here is an array of unsigned longs, geo->no_longs in total. The 25 * number of keys and values (N) is geo->no_pairs. 95 * @geo: the btree geometry 100 void *btree_lookup(struct btree_head *head, struct btree_geo *geo, 107 * @geo: the btree geometry 115 int __must_check btree_insert(struct btree_head *head, struct btree_geo *geo, 121 * @geo: the btree geometry 128 int btree_update(struct btree_head *head, struct btree_geo *geo, 134 * @geo: the btree geometry 140 void *btree_remove(struct btree_head *head, struct btree_geo *geo, [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | btree.h | 24 * Each key here is an array of unsigned longs, geo->no_longs in total. The 25 * number of keys and values (N) is geo->no_pairs. 95 * @geo: the btree geometry 100 void *btree_lookup(struct btree_head *head, struct btree_geo *geo, 107 * @geo: the btree geometry 115 int __must_check btree_insert(struct btree_head *head, struct btree_geo *geo, 121 * @geo: the btree geometry 128 int btree_update(struct btree_head *head, struct btree_geo *geo, 134 * @geo: the btree geometry 140 void *btree_remove(struct btree_head *head, struct btree_geo *geo, [all...] |
/kernel/linux/linux-5.10/drivers/md/ |
H A D | raid10.c | 561 static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio) in __raid10_find_phys() argument 571 last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; in __raid10_find_phys() 572 last_far_set_start *= geo->far_set_size; in __raid10_find_phys() 574 last_far_set_size = geo->far_set_size; in __raid10_find_phys() 575 last_far_set_size += (geo->raid_disks % geo->far_set_size); in __raid10_find_phys() 578 chunk = r10bio->sector >> geo->chunk_shift; in __raid10_find_phys() 579 sector = r10bio->sector & geo->chunk_mask; in __raid10_find_phys() 581 chunk *= geo in __raid10_find_phys() 626 struct geom *geo = &conf->geo; raid10_find_phys() local 645 struct geom *geo = &conf->geo; raid10_find_virt() local 717 struct geom *geo = &conf->geo; read_balance() local 3577 setup_geo(struct geom *geo, struct mddev *mddev, enum geo_type new) setup_geo() argument 3651 struct geom geo; setup_conf() local 4076 struct geom geo; raid10_check_reshape() local 4359 last_dev_address(sector_t s, struct geom *geo) last_dev_address() argument 4374 first_dev_address(sector_t s, struct geom *geo) first_dev_address() argument [all...] |