]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
dm: part: Rename some partition functions
authorSimon Glass <sjg@chromium.org>
Mon, 29 Feb 2016 22:25:48 +0000 (15:25 -0700)
committerSimon Glass <sjg@chromium.org>
Mon, 14 Mar 2016 21:34:50 +0000 (15:34 -0600)
Rename three partition functions so that they start with part_. This makes
it clear what they relate to.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Stephen Warren <swarren@nvidia.com>
25 files changed:
board/cm5200/fwupdate.c
cmd/ide.c
cmd/mmc.c
cmd/part.c
cmd/read.c
cmd/sata.c
cmd/scsi.c
cmd/usb.c
common/fb_mmc.c
common/spl/spl_ext.c
common/spl/spl_mmc.c
common/usb_storage.c
disk/part.c
disk/part_amiga.c
disk/part_dos.c
disk/part_efi.c
disk/part_iso.c
disk/part_mac.c
drivers/block/pata_bfin.c
drivers/block/sandbox.c
drivers/block/systemace.c
drivers/dfu/dfu_mmc.c
drivers/mmc/mmc.c
fs/fat/fat.c
include/part.h

index d5064c118533d045c8a6cfd2c7e4c2c9a93013f2..2ed90de9d529d41c01bafec0c6ec92407eb97729 100644 (file)
@@ -117,7 +117,7 @@ static int load_rescue_image(ulong addr)
 
        /* Detect partition */
        for (partno = -1, i = 0; i < 6; i++) {
-               if (get_partition_info(stor_dev, i, &info) == 0) {
+               if (part_get_info(stor_dev, i, &info) == 0) {
                        if (fat_register_device(stor_dev, i) == 0) {
                                /* Check if rescue image is present */
                                FW_DEBUG("Looking for firmware directory '%s'"
index 06202c5fc6e6884a0eca71e8d34cf9bcfea0feb5..01b91b5fbdb7d0beda8f4e591b3edc9a2c0b1889 100644 (file)
--- a/cmd/ide.c
+++ b/cmd/ide.c
@@ -137,7 +137,7 @@ int do_ide(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
                                        ++ok;
                                        if (dev)
                                                putc('\n');
-                                       print_part(&ide_dev_desc[dev]);
+                                       part_print(&ide_dev_desc[dev]);
                                }
                        }
                        if (!ok) {
@@ -171,7 +171,7 @@ int do_ide(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
                        int dev = (int) simple_strtoul(argv[2], NULL, 10);
 
                        if (ide_dev_desc[dev].part_type != PART_TYPE_UNKNOWN) {
-                               print_part(&ide_dev_desc[dev]);
+                               part_print(&ide_dev_desc[dev]);
                        } else {
                                printf("\nIDE device %d not available\n",
                                       dev);
@@ -435,7 +435,7 @@ void ide_init(void)
 
                if ((ide_dev_desc[i].lba > 0) && (ide_dev_desc[i].blksz > 0)) {
                        /* initialize partition type */
-                       init_part(&ide_dev_desc[i]);
+                       part_init(&ide_dev_desc[i]);
                        if (curr_device < 0)
                                curr_device = i;
                }
index ab59e7fadf729949c7169273e1352542a2e93c6c..fb4382e9fff0b62b995624e54120e8f39756a955 100644 (file)
--- a/cmd/mmc.c
+++ b/cmd/mmc.c
@@ -433,7 +433,7 @@ static int do_mmc_part(cmd_tbl_t *cmdtp, int flag,
 
        mmc_dev = mmc_get_dev(curr_device);
        if (mmc_dev != NULL && mmc_dev->type != DEV_TYPE_UNKNOWN) {
-               print_part(mmc_dev);
+               part_print(mmc_dev);
                return CMD_RET_SUCCESS;
        }
 
index 415b38a5227684c3a6b2d7185a61681970061b1e..414031e6f3e06a391d4c053ea6eefe7b72e0da75 100644 (file)
@@ -92,7 +92,7 @@ static int do_part_list(int argc, char * const argv[])
 
                for (p = 1; p < 128; p++) {
                        char t[5];
-                       int r = get_partition_info(desc, p, &info);
+                       int r = part_get_info(desc, p, &info);
 
                        if (r != 0)
                                continue;
@@ -107,7 +107,7 @@ static int do_part_list(int argc, char * const argv[])
                return 0;
        }
 
-       print_part(desc);
+       part_print(desc);
 
        return 0;
 }
@@ -132,7 +132,7 @@ static int do_part_start(int argc, char * const argv[])
        if (ret < 0)
                return 1;
 
-       err = get_partition_info(desc, part, &info);
+       err = part_get_info(desc, part, &info);
        if (err)
                return 1;
 
@@ -166,7 +166,7 @@ static int do_part_size(int argc, char * const argv[])
        if (ret < 0)
                return 1;
 
-       err = get_partition_info(desc, part, &info);
+       err = part_get_info(desc, part, &info);
        if (err)
                return 1;
 
index 12ac165986778cdb46710d2dfab46ecb84eb9511..f8d766a7139a8858eb39937a0d4021d0b7a04c85 100644 (file)
@@ -50,7 +50,7 @@ int do_read(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        cnt = simple_strtoul(argv[5], NULL, 16);
 
        if (part != 0) {
-               if (get_partition_info(dev_desc, part, &part_info)) {
+               if (part_get_info(dev_desc, part, &part_info)) {
                        printf("Cannot find partition %d\n", part);
                        return 1;
                }
index a1faf2d67301cab7bc21b1c805e9cae50a8fb7f2..8b1f19ce4744e9dc9d4dbeb510957d1131582fd0 100644 (file)
@@ -52,7 +52,7 @@ int __sata_initialize(void)
                        rc = scan_sata(i);
                        if (!rc && (sata_dev_desc[i].lba > 0) &&
                                (sata_dev_desc[i].blksz > 0))
-                               init_part(&sata_dev_desc[i]);
+                               part_init(&sata_dev_desc[i]);
                }
        }
        sata_curr_device = 0;
@@ -131,7 +131,7 @@ static int do_sata(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                                        ++ok;
                                        if (dev)
                                                putc ('\n');
-                                       print_part(&sata_dev_desc[dev]);
+                                       part_print(&sata_dev_desc[dev]);
                                }
                        }
                        if (!ok) {
@@ -164,7 +164,7 @@ static int do_sata(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                        int dev = (int)simple_strtoul(argv[2], NULL, 10);
 
                        if (sata_dev_desc[dev].part_type != PART_TYPE_UNKNOWN) {
-                               print_part(&sata_dev_desc[dev]);
+                               part_print(&sata_dev_desc[dev]);
                        } else {
                                printf("\nSATA device %d not available\n", dev);
                                rc = 1;
index dff811bb9617ac5f730c0e879098427ff7d05e81..de0651c41945bd8e4de366fd0cfc29967385ec45 100644 (file)
@@ -156,7 +156,7 @@ void scsi_scan(int mode)
                        scsi_dev_desc[scsi_max_devs].log2blksz =
                                LOG2(scsi_dev_desc[scsi_max_devs].blksz);
                        scsi_dev_desc[scsi_max_devs].type=perq;
-                       init_part(&scsi_dev_desc[scsi_max_devs]);
+                       part_init(&scsi_dev_desc[scsi_max_devs]);
 removable:
                        if(mode==1) {
                                printf ("  Device %d: ", scsi_max_devs);
@@ -301,7 +301,7 @@ int do_scsi (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                                                if (dev)
                                                        printf("\n");
                                                debug ("print_part of %x\n",dev);
-                                                       print_part(&scsi_dev_desc[dev]);
+                                               part_print(&scsi_dev_desc[dev]);
                                        }
                                }
                                if (!ok)
@@ -329,7 +329,7 @@ int do_scsi (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                        if (strncmp(argv[1],"part",4) == 0) {
                                int dev = (int)simple_strtoul(argv[2], NULL, 10);
                                if(scsi_dev_desc[dev].type != DEV_TYPE_UNKNOWN) {
-                                       print_part(&scsi_dev_desc[dev]);
+                                       part_print(&scsi_dev_desc[dev]);
                                }
                                else {
                                        printf ("\nSCSI device %d not available\n", dev);
index 5f3b06a6c6bcbab3cefeed69701242d92223b07e..53fd6adb00fccaf4129bf0b8b018cb21ca1d6ffb 100644 (file)
--- a/cmd/usb.c
+++ b/cmd/usb.c
@@ -727,7 +727,7 @@ static int do_usb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                                        if (devno)
                                                printf("\n");
                                        debug("print_part of %x\n", devno);
-                                       print_part(stor_dev);
+                                       part_print(stor_dev);
                                }
                        }
                } else {
@@ -737,7 +737,7 @@ static int do_usb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                            stor_dev->type != DEV_TYPE_UNKNOWN) {
                                ok++;
                                debug("print_part of %x\n", devno);
-                               print_part(stor_dev);
+                               part_print(stor_dev);
                        }
                }
                if (!ok) {
index 4324f5805c8e277a4d017139d62f66d403cc673c..d5c91351a7206b33b6be62e42e59b95bac19a9fa 100644 (file)
@@ -25,12 +25,12 @@ struct fb_mmc_sparse {
        struct blk_desc *dev_desc;
 };
 
-static int get_partition_info_efi_by_name_or_alias(struct blk_desc *dev_desc,
+static int part_get_info_efi_by_name_or_alias(struct blk_desc *dev_desc,
                const char *name, disk_partition_t *info)
 {
        int ret;
 
-       ret = get_partition_info_efi_by_name(dev_desc, name, info);
+       ret = part_get_info_efi_by_name(dev_desc, name, info);
        if (ret) {
                /* strlen("fastboot_partition_alias_") + 32(part_name) + 1 */
                char env_alias_name[25 + 32 + 1];
@@ -41,7 +41,7 @@ static int get_partition_info_efi_by_name_or_alias(struct blk_desc *dev_desc,
                strncat(env_alias_name, name, 32);
                aliased_part_name = getenv(env_alias_name);
                if (aliased_part_name != NULL)
-                       ret = get_partition_info_efi_by_name(dev_desc,
+                       ret = part_get_info_efi_by_name(dev_desc,
                                        aliased_part_name, info);
        }
        return ret;
@@ -131,7 +131,7 @@ void fb_mmc_flash_write(const char *cmd, unsigned int session_id,
                printf("........ success\n");
                fastboot_okay(response_str, "");
                return;
-       } else if (get_partition_info_efi_by_name_or_alias(dev_desc, cmd, &info)) {
+       } else if (part_get_info_efi_by_name_or_alias(dev_desc, cmd, &info)) {
                error("cannot find partition: '%s'\n", cmd);
                fastboot_fail(response_str, "cannot find partition");
                return;
@@ -186,7 +186,7 @@ void fb_mmc_erase(const char *cmd, char *response)
                return;
        }
 
-       ret = get_partition_info_efi_by_name_or_alias(dev_desc, cmd, &info);
+       ret = part_get_info_efi_by_name_or_alias(dev_desc, cmd, &info);
        if (ret) {
                error("cannot find partition: '%s'", cmd);
                fastboot_fail(response_str, "cannot find partition");
index d29d2293c2c1b7c0a8d3a0bcedd09ed8cbe950ee..b77dbf4d0ca11b8235629e8d6d4b85dfaaaf1a1a 100644 (file)
@@ -22,8 +22,7 @@ int spl_load_image_ext(struct blk_desc *block_dev,
        header = (struct image_header *)(CONFIG_SYS_TEXT_BASE -
                                                sizeof(struct image_header));
 
-       if (get_partition_info(block_dev,
-                              partition, &part_info)) {
+       if (part_get_info(block_dev, partition, &part_info)) {
                printf("spl: no partition table found\n");
                return -1;
        }
@@ -71,8 +70,7 @@ int spl_load_image_ext_os(struct blk_desc *block_dev, int partition)
        disk_partition_t part_info = {};
        __maybe_unused char *file;
 
-       if (get_partition_info(block_dev,
-                              partition, &part_info)) {
+       if (part_get_info(block_dev, partition, &part_info)) {
                printf("spl: no partition table found\n");
                return -1;
        }
index c27a2502511cd9c92b093672af48a6a24c2d757e..5204f5258f0492e4f97e8f793f3fbf2ec9ff0be8 100644 (file)
@@ -122,7 +122,7 @@ static int mmc_load_image_raw_partition(struct mmc *mmc, int partition)
        disk_partition_t info;
        int err;
 
-       err = get_partition_info(&mmc->block_dev, partition, &info);
+       err = part_get_info(&mmc->block_dev, partition, &info);
        if (err) {
 #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
                puts("spl: partition error\n");
index ca5aeea5e397b482618e9b5dcc1d21cb3d76aa03..e105a95d691d0f60a204002ee408a4745870055b 100644 (file)
@@ -1374,7 +1374,7 @@ int usb_stor_get_info(struct usb_device *dev, struct us_data *ss,
        debug(" address %d\n", dev_desc->target);
        debug("partype: %d\n", dev_desc->part_type);
 
-       init_part(dev_desc);
+       part_init(dev_desc);
 
        debug("partype: %d\n", dev_desc->part_type);
        return 1;
index 978b85c6eb45658c27ee62b6bf8273f025a53db3..9a78cceadbc77971146882fc3a17fd13d0460c33 100644 (file)
@@ -267,7 +267,7 @@ void dev_print (struct blk_desc *dev_desc)
 
 #ifdef HAVE_BLOCK_DEVICE
 
-void init_part(struct blk_desc *dev_desc)
+void part_init(struct blk_desc *dev_desc)
 {
        struct part_driver *drv =
                ll_entry_start(struct part_driver, part_driver);
@@ -329,7 +329,7 @@ static void print_part_header(const char *type, struct blk_desc *dev_desc)
 #endif /* any CONFIG_..._PARTITION */
 }
 
-void print_part(struct blk_desc *dev_desc)
+void part_print(struct blk_desc *dev_desc)
 {
        struct part_driver *drv;
 
@@ -348,7 +348,7 @@ void print_part(struct blk_desc *dev_desc)
 
 #endif /* HAVE_BLOCK_DEVICE */
 
-int get_partition_info(struct blk_desc *dev_desc, int part,
+int part_get_info(struct blk_desc *dev_desc, int part,
                       disk_partition_t *info)
 {
 #ifdef HAVE_BLOCK_DEVICE
@@ -432,7 +432,7 @@ int blk_get_device_by_str(const char *ifname, const char *dev_hwpart_str,
         * already loaded.
         */
        if(hwpart != 0)
-               init_part(*dev_desc);
+               part_init(*dev_desc);
 #endif
 
 cleanup:
@@ -607,7 +607,7 @@ int blk_get_device_part_str(const char *ifname, const char *dev_part_str,
         * other than "auto", use that partition number directly.
         */
        if (part != PART_AUTO) {
-               ret = get_partition_info(*dev_desc, part, info);
+               ret = part_get_info(*dev_desc, part, info);
                if (ret) {
                        printf("** Invalid partition %d **\n", part);
                        goto cleanup;
@@ -619,7 +619,7 @@ int blk_get_device_part_str(const char *ifname, const char *dev_part_str,
                 */
                part = 0;
                for (p = 1; p <= MAX_SEARCH_PARTITIONS; p++) {
-                       ret = get_partition_info(*dev_desc, p, info);
+                       ret = part_get_info(*dev_desc, p, info);
                        if (ret)
                                continue;
 
index 0f569f0c9bf4b0bf90bd0976b620eb4102bed90c..d323b4bc1eb6b1d21e6c2df6289b5c82aa568853 100644 (file)
@@ -291,7 +291,7 @@ static struct partition_block *find_partition(struct blk_desc *dev_desc,
 /*
  * Get info about a partition
  */
-static int get_partition_info_amiga(struct blk_desc *dev_desc, int part,
+static int part_get_info_amiga(struct blk_desc *dev_desc, int part,
                                    disk_partition_t *info)
 {
     struct partition_block *p = find_partition(dev_desc, part-1);
@@ -382,7 +382,7 @@ static void print_part_amiga(struct blk_desc *dev_desc)
 U_BOOT_PART_TYPE(amiga) = {
        .name           = "AMIGA",
        .part_type      = PART_TYPE_AMIGA,
-       .get_info       = get_partition_info_amiga,
+       .get_info       = part_get_info_amiga,
        .print          = print_part_amiga,
        .test           = test_part_amiga,
 };
index 7567ed3b29ea780d0e58a1ce3a2b2f858db4cbe0..4a56391de7e821b8bdf10e4e3178e85cbc0a8811 100644 (file)
@@ -167,11 +167,10 @@ static void print_partition_extended(struct blk_desc *dev_desc,
 
 /*  Print a partition that is relative to its Extended partition table
  */
-static int get_partition_info_extended(struct blk_desc *dev_desc,
-                                      lbaint_t ext_part_sector,
-                                      lbaint_t relative, int part_num,
-                                      int which_part, disk_partition_t *info,
-                                      unsigned int disksig)
+static int part_get_info_extended(struct blk_desc *dev_desc,
+                                 lbaint_t ext_part_sector, lbaint_t relative,
+                                 int part_num, int which_part,
+                                 disk_partition_t *info, unsigned int disksig)
 {
        ALLOC_CACHE_ALIGN_BUFFER(unsigned char, buffer, dev_desc->blksz);
        dos_partition_t *pt;
@@ -259,7 +258,7 @@ static int get_partition_info_extended(struct blk_desc *dev_desc,
                        lbaint_t lba_start
                                = le32_to_int (pt->start4) + relative;
 
-                       return get_partition_info_extended (dev_desc, lba_start,
+                       return part_get_info_extended(dev_desc, lba_start,
                                 ext_part_sector == 0 ? lba_start : relative,
                                 part_num, which_part, info, disksig);
                }
@@ -289,16 +288,16 @@ void print_part_dos(struct blk_desc *dev_desc)
        print_partition_extended(dev_desc, 0, 0, 1, 0);
 }
 
-int get_partition_info_dos(struct blk_desc *dev_desc, int part,
-                          disk_partition_t *info)
+int part_get_info_dos(struct blk_desc *dev_desc, int part,
+                     disk_partition_t *info)
 {
-       return get_partition_info_extended(dev_desc, 0, 0, 1, part, info, 0);
+       return part_get_info_extended(dev_desc, 0, 0, 1, part, info, 0);
 }
 
 U_BOOT_PART_TYPE(dos) = {
        .name           = "DOS",
        .part_type      = PART_TYPE_DOS,
-       .get_info       = part_get_info_ptr(get_partition_info_dos),
+       .get_info       = part_get_info_ptr(part_get_info_dos),
        .print          = part_print_ptr(print_part_dos),
        .test           = test_part_dos,
 };
index 3471b755e1560dfb09f6cbde841ca30f351e793b..209a671d3eed7f3af337817495ec90a601691874 100644 (file)
@@ -237,8 +237,8 @@ void print_part_efi(struct blk_desc *dev_desc)
        return;
 }
 
-int get_partition_info_efi(struct blk_desc *dev_desc, int part,
-                          disk_partition_t *info)
+int part_get_info_efi(struct blk_desc *dev_desc, int part,
+                     disk_partition_t *info)
 {
        ALLOC_CACHE_ALIGN_BUFFER_PAD(gpt_header, gpt_head, 1, dev_desc->blksz);
        gpt_entry *gpt_pte = NULL;
@@ -300,13 +300,13 @@ int get_partition_info_efi(struct blk_desc *dev_desc, int part,
        return 0;
 }
 
-int get_partition_info_efi_by_name(struct blk_desc *dev_desc,
+int part_get_info_efi_by_name(struct blk_desc *dev_desc,
        const char *name, disk_partition_t *info)
 {
        int ret;
        int i;
        for (i = 1; i < GPT_ENTRY_NUMBERS; i++) {
-               ret = get_partition_info_efi(dev_desc, i, info);
+               ret = part_get_info_efi(dev_desc, i, info);
                if (ret != 0) {
                        /* no more entries in table */
                        return -1;
@@ -962,7 +962,7 @@ static int is_pte_valid(gpt_entry * pte)
 U_BOOT_PART_TYPE(a_efi) = {
        .name           = "EFI",
        .part_type      = PART_TYPE_EFI,
-       .get_info       = part_get_info_ptr(get_partition_info_efi),
+       .get_info       = part_get_info_ptr(part_get_info_efi),
        .print          = part_print_ptr(print_part_efi),
        .test           = test_part_efi,
 };
index 1d72d236cecfb3877ab66b1c2c955cbf2ec43bdd..a1cf358388ae314c700062c085f74bc70ed87cf6 100644 (file)
@@ -46,8 +46,8 @@ static inline unsigned short le16_to_int(unsigned char *le16)
 
 
 /* only boot records will be listed as valid partitions */
-int get_partition_info_iso_verb(struct blk_desc *dev_desc, int part_num,
-                               disk_partition_t *info, int verb)
+int part_get_info_iso_verb(struct blk_desc *dev_desc, int part_num,
+                          disk_partition_t *info, int verb)
 {
        int i,offset,entry_num;
        unsigned short *chksumbuf;
@@ -217,17 +217,18 @@ found:
        return 0;
 }
 
-static int get_partition_info_iso(struct blk_desc *dev_desc, int part_num,
+static int part_get_info_iso(struct blk_desc *dev_desc, int part_num,
                                  disk_partition_t *info)
 {
-       return(get_partition_info_iso_verb(dev_desc, part_num, info, 1));
+       return part_get_info_iso_verb(dev_desc, part_num, info, 1);
 }
 
 static void print_part_iso(struct blk_desc *dev_desc)
 {
        disk_partition_t info;
        int i;
-       if(get_partition_info_iso_verb(dev_desc,0,&info,0)==-1) {
+
+       if (part_get_info_iso_verb(dev_desc, 0, &info, 0) == -1) {
                printf("** No boot partition found on device %d **\n",dev_desc->dev);
                return;
        }
@@ -237,20 +238,20 @@ static void print_part_iso(struct blk_desc *dev_desc)
                printf(" %2d " LBAFU " " LBAFU " %6ld %.32s\n",
                       i, info.start, info.size, info.blksz, info.type);
                i++;
-       } while (get_partition_info_iso_verb(dev_desc,i,&info,0)!=-1);
+       } while (part_get_info_iso_verb(dev_desc, i, &info, 0) != -1);
 }
 
 static int test_part_iso(struct blk_desc *dev_desc)
 {
        disk_partition_t info;
 
-       return(get_partition_info_iso_verb(dev_desc,0,&info,0));
+       return part_get_info_iso_verb(dev_desc, 0, &info, 0);
 }
 
 U_BOOT_PART_TYPE(iso) = {
        .name           = "ISO",
        .part_type      = PART_TYPE_ISO,
-       .get_info       = get_partition_info_iso,
+       .get_info       = part_get_info_iso,
        .print          = print_part_iso,
        .test           = test_part_iso,
 };
index 3fb3b161aea5231c3928904544c206f0856d08eb..61927234fb8e231fd2a44e3e54906fe579e8e1a0 100644 (file)
@@ -213,7 +213,7 @@ static int part_mac_read_pdb(struct blk_desc *dev_desc, int part,
        /* NOTREACHED */
 }
 
-static int get_partition_info_mac(struct blk_desc *dev_desc, int part,
+static int part_get_info_mac(struct blk_desc *dev_desc, int part,
                                  disk_partition_t *info)
 {
        ALLOC_CACHE_ALIGN_BUFFER(mac_driver_desc_t, ddesc, 1);
@@ -240,7 +240,7 @@ static int get_partition_info_mac(struct blk_desc *dev_desc, int part,
 U_BOOT_PART_TYPE(mac) = {
        .name           = "MAC",
        .part_type      = PART_TYPE_MAC,
-       .get_info       = get_partition_info_mac,
+       .get_info       = part_get_info_mac,
        .print          = print_part_mac,
        .test           = test_part_mac,
 };
index c2673bd05dc6873eb9fa891eaeceb97460d83986..26569d70aaeff4dc4a87b435380bbac5b1b95db5 100644 (file)
@@ -965,7 +965,7 @@ int scan_sata(int dev)
                /* Probe device and set xfer mode */
                bfin_ata_identify(ap, dev%PATA_DEV_NUM_PER_PORT);
                bfin_ata_set_Feature_cmd(ap, dev%PATA_DEV_NUM_PER_PORT);
-               init_part(&sata_dev_desc[dev]);
+               part_init(&sata_dev_desc[dev]);
                return 0;
        }
 
index dd21400cd44c1855b6f561d150e3597acf1553d4..093e133992dc6a4b232cd16ec35a7f08cedc3975 100644 (file)
@@ -98,7 +98,7 @@ int host_dev_bind(int dev, char *filename)
        blk_dev->block_write = host_block_write;
        blk_dev->dev = dev;
        blk_dev->part_type = PART_TYPE_UNKNOWN;
-       init_part(blk_dev);
+       part_init(blk_dev);
 
        return 0;
 }
index ea18c0d7353f6d0b7a5d0762d18a97cbddfa38e4..b921dcd206630edc6622baa8df6b3e1b4d4ac7bb 100644 (file)
@@ -124,7 +124,7 @@ struct blk_desc *systemace_get_dev(int dev)
                 */
                ace_writew(width == 8 ? 0 : 0x0001, 0);
 
-               init_part(&systemace_dev);
+               part_init(&systemace_dev);
 
        }
 
index bfac91a5613567f72fef71a4b9936c5135ef172a..faece8883ac0a5bcf6b11a67d3425260d1b6a1b1 100644 (file)
@@ -355,7 +355,7 @@ int dfu_fill_entity_mmc(struct dfu_entity *dfu, char *devstr, char *s)
                int mmcdev = second_arg;
                int mmcpart = third_arg;
 
-               if (get_partition_info(blk_dev, mmcpart, &partinfo) != 0) {
+               if (part_get_info(blk_dev, mmcpart, &partinfo) != 0) {
                        error("Couldn't find part #%d on mmc device #%d\n",
                              mmcpart, mmcdev);
                        return -ENODEV;
index b19b328465cb9d11b776af9ee9be623f7e07cbc8..94afbb105ee50a3e4505715493592646bebf48d9 100644 (file)
@@ -1495,7 +1495,7 @@ static int mmc_startup(struct mmc *mmc)
        mmc->block_dev.revision[0] = 0;
 #endif
 #if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBDISK_SUPPORT)
-       init_part(&mmc->block_dev);
+       part_init(&mmc->block_dev);
 #endif
 
        return 0;
index 2cef3bd22d4751a8261bd14c8b4b419f3c6a613f..47f077d4acd8d41870160800824867dcb1e923ac 100644 (file)
@@ -97,7 +97,7 @@ int fat_register_device(struct blk_desc *dev_desc, int part_no)
        cur_dev = NULL;
 
        /* Read the partition table, if present */
-       if (get_partition_info(dev_desc, part_no, &info)) {
+       if (part_get_info(dev_desc, part_no, &info)) {
                if (part_no != 0) {
                        printf("** Partition %d not valid on device %d **\n",
                                        part_no, dev_desc->dev);
index 544b0563a7e2e162442ccd8006c96657d0d8bbc5..6d8f52049db556b240ae0a9a14011df73f582182 100644 (file)
@@ -96,10 +96,9 @@ struct blk_desc *host_get_dev(int dev);
 int host_get_dev_err(int dev, struct blk_desc **blk_devp);
 
 /* disk/part.c */
-int get_partition_info(struct blk_desc *dev_desc, int part,
-                      disk_partition_t *info);
-void print_part(struct blk_desc *dev_desc);
-void init_part(struct blk_desc *dev_desc);
+int part_get_info(struct blk_desc *dev_desc, int part, disk_partition_t *info);
+void part_print(struct blk_desc *dev_desc);
+void part_init(struct blk_desc *dev_desc);
 void dev_print(struct blk_desc *dev_desc);
 
 /**
@@ -179,10 +178,10 @@ static inline struct blk_desc *systemace_get_dev(int dev) { return NULL; }
 static inline struct blk_desc *mg_disk_get_dev(int dev) { return NULL; }
 static inline struct blk_desc *host_get_dev(int dev) { return NULL; }
 
-static inline int get_partition_info(struct blk_desc *dev_desc, int part,
-                                    disk_partition_t *info) { return -1; }
-static inline void print_part(struct blk_desc *dev_desc) {}
-static inline void init_part(struct blk_desc *dev_desc) {}
+static inline int part_get_info(struct blk_desc *dev_desc, int part,
+                               disk_partition_t *info) { return -1; }
+static inline void part_print(struct blk_desc *dev_desc) {}
+static inline void part_init(struct blk_desc *dev_desc) {}
 static inline void dev_print(struct blk_desc *dev_desc) {}
 static inline int blk_get_device_by_str(const char *ifname, const char *dev_str,
                                        struct blk_desc **dev_desc)
@@ -252,7 +251,7 @@ struct part_driver {
 #include <part_efi.h>
 /* disk/part_efi.c */
 /**
- * get_partition_info_efi_by_name() - Find the specified GPT partition table entry
+ * part_get_info_efi_by_name() - Find the specified GPT partition table entry
  *
  * @param dev_desc - block device descriptor
  * @param gpt_name - the specified table entry name
@@ -260,8 +259,8 @@ struct part_driver {
  *
  * @return - '0' on match, '-1' on no match, otherwise error
  */
-int get_partition_info_efi_by_name(struct blk_desc *dev_desc,
-       const char *name, disk_partition_t *info);
+int part_get_info_efi_by_name(struct blk_desc *dev_desc,
+                             const char *name, disk_partition_t *info);
 
 /**
  * write_gpt_table() - Write the GUID Partition Table to disk