/u-boot/include/ |
H A D | sandbox_host.h | 14 * @label: Label for this device (allocated) 19 char *label; member in struct:host_sb_plat 72 * Any existing device with the same label is removed and unbound first 74 * @label: Label of the attachment, e.g. "test1" 81 int host_create_device(const char *label, bool removable, unsigned long blksz, 87 * @label: Label of the attachment, e.g. "test1" 95 int host_create_attach_file(const char *label, const char *filename, 100 * host_find_by_label() - Find a host by label 102 * Searches all host devices to find one with the given label 104 * @label [all...] |
H A D | blkmap.h | 17 * @label: Human readable name of this blkmap 22 char *label; member in struct:blkmap 70 * blkmap_from_label() - Find blkmap from label 72 * @label: Label of the requested blkmap 75 struct udevice *blkmap_from_label(const char *label); 80 * @label: Label of the new blkmap 84 int blkmap_create(const char *label, struct udevice **devp); 97 * @label: Label of the new blkmap 103 int blkmap_create_ramdisk(const char *label, ulong image_addr, ulong image_size,
|
H A D | button.h | 14 * @label: Button label 17 const char *label; member in struct:button_uc_plat 53 * button_get_by_label() - Find a button device by label 55 * @label: button label to look up 59 int button_get_by_label(const char *label, struct udevice **devp);
|
H A D | led.h | 26 * @label: LED label 30 const char *label; member in struct:led_uc_plat 79 * led_get_by_label() - Find an LED device by label 81 * @label: LED label to look up 85 int led_get_by_label(const char *label, struct udevice **devp);
|
H A D | rkmtd.h | 56 char *label; member in struct:rkmtd_dev 144 * rkmtd_find_by_label() - Find a rkmtd device by label 146 * Searches all rkmtd devices to find one with the given label 148 * @label: Label to find 151 struct udevice *rkmtd_find_by_label(const char *label); 174 * Any existing device with the same label is removed and unbound first 176 * @label: Label of the attachment, e.g. "test1" 180 int rkmtd_create_device(const char *label, struct udevice **devp); 185 * @label: Label of the attachment, e.g. "test1" 189 int rkmtd_create_attach_mtd(const char *label, struc [all...] |
/u-boot/boot/ |
H A D | pxe_utils.c | 223 * label_create() - crate a new PXE label 228 * Returns a pointer to the label, or NULL if out of memory 232 struct pxe_label *label; local 234 label = malloc(sizeof(struct pxe_label)); 235 if (!label) 238 memset(label, 0, sizeof(struct pxe_label)); 240 return label; 246 * This frees @label itself as well as memory used by its name, 254 * @label: Label to free 256 static void label_destroy(struct pxe_label *label) argument 280 struct pxe_label *label = data; local 297 label_localboot(struct pxe_label *label) argument 387 label_boot_fdtoverlay(struct pxe_context *ctx, struct pxe_label *label) argument 490 label_boot(struct pxe_context *ctx, struct pxe_label *label) argument 1149 parse_label_menu(char **c, struct pxe_menu *cfg, struct pxe_label *label) argument 1185 parse_label_kernel(char **c, struct pxe_label *label) argument 1225 struct pxe_label *label; local 1420 struct pxe_label *label; local 1465 struct pxe_label *label; local 1534 struct pxe_label *label; local [all...] |
/u-boot/drivers/button/ |
H A D | button-uclass.c | 15 int button_get_by_label(const char *label, struct udevice **devp) argument 24 if (uc_plat->label && !strcmp(label, uc_plat->label))
|
H A D | button-gpio.c | 51 if (!uc_plat->label) 87 const char *label; local 89 label = ofnode_read_string(node, "label"); 90 if (!label) { 91 debug("%s: node %s has no label\n", __func__, 101 uc_plat->label = label;
|
H A D | button-qcom-pmic.c | 26 char *label; member in struct:qcom_pmic_btn_data 66 .label = "pwrkey", 72 .label = "vol_down", 78 .label = "pwrkey", 84 .label = "vol_down", 111 if (!uc_plat->label) 161 const char *label; local 177 printf("Failed to bind %s! %d\n", label, ret); 181 uc_plat->label = btn_data->label; [all...] |
H A D | button-adc.c | 63 if (!uc_plat->label) 120 const char *label; local 122 label = ofnode_read_string(node, "label"); 123 if (!label) { 124 debug("%s: node %s has no label\n", __func__, 134 uc_plat->label = label;
|
/u-boot/board/compulab/common/ |
H A D | common.h | 16 int cl_usb_hub_init(int gpio, const char *label); 19 static inline int cl_usb_hub_init(int gpio, const char *label) argument
|
H A D | common.c | 43 int cl_usb_hub_init(int gpio, const char *label) argument 45 if (gpio_request(gpio, label)) { 46 printf("Error: can't obtain GPIO%d for %s", gpio, label);
|
/u-boot/cmd/ |
H A D | blkmap.c | 123 const char *label; local 129 label = argv[1]; 131 err = blkmap_create(label, NULL); 133 printf("Unable to create \"%s\": %d\n", label, err); 137 printf("Created \"%s\"\n", label); 145 const char *label; local 151 label = argv[1]; 153 dev = blkmap_from_label(label); 155 printf("\"%s\" is not the name of any known blkmap\n", label); 161 printf("Unable to destroy \"%s\": %d\n", label, er 173 const char *label; local [all...] |
H A D | rkmtd.c | 24 const char *label; local 36 label = argv[0]; 37 ret = rkmtd_create_attach_mtd(label, &dev); 46 static struct udevice *parse_rkmtd_label(const char *label) argument 50 dev = rkmtd_find_by_label(label); 55 devnum = hextoul(label, &ep); 58 printf("No such device '%s'\n", label); 70 const char *label; local 76 label = argv[1]; 77 dev = parse_rkmtd_label(label); 145 const char *label; local [all...] |
H A D | host.c | 47 const char *label; local 66 label = argv[0]; 76 ret = host_create_attach_file(label, file, removable, blksz, &dev); 86 * parse_host_label() - Parse a device label or sequence number 90 * @label: String containing the label or sequence number 93 static struct udevice *parse_host_label(const char *label) argument 97 dev = host_find_by_label(label); 102 devnum = hextoul(label, &ep); 105 printf("No such device '%s'\n", label); 117 const char *label; local 200 const char *label; local [all...] |
/u-boot/drivers/led/ |
H A D | led-uclass.c | 35 int led_get_by_label(const char *label, struct udevice **devp) argument 48 if (uc_plat->label && !strcmp(label, uc_plat->label)) 92 if (!uc_plat->label) 93 uc_plat->label = dev_read_string(dev, "label"); 95 if (!uc_plat->label && !dev_read_string(dev, "compatible")) 96 uc_plat->label = ofnode_get_name(dev_ofnode(dev));
|
/u-boot/drivers/block/ |
H A D | host-uclass.c | 33 int host_create_device(const char *label, bool removable, unsigned long blksz, argument 41 /* unbind any existing device with this label */ 42 dev = host_find_by_label(label); 53 snprintf(dev_name, sizeof(dev_name), "host-%s", label); 58 label_new = strdup(label); 82 plat->label = label_new; 105 int host_create_attach_file(const char *label, const char *filename, argument 112 ret = host_create_device(label, removable, blksz, &dev); 139 struct udevice *host_find_by_label(const char *label) argument 147 if (plat->label [all...] |
H A D | blkmap_helper.c | 13 int blkmap_create_ramdisk(const char *label, ulong image_addr, ulong image_size, argument 22 ret = blkmap_create(label, &bm_dev);
|
/u-boot/tools/binman/etype/ |
H A D | text.py | 21 text-label: The value of this string indicates the property / entry-arg 23 <xxx> (actual name is the value of text-label): contains the string to 32 text-label = "message"; 45 text-label = "message"; 65 label, = self.GetEntryArgsOrProps([EntryArg('text-label', str)]) 66 self.text_label = label 75 self.Raise("No value provided for text label '%s'" %
|
/u-boot/test/dm/ |
H A D | host.c | 22 static char label[] = "test"; local 34 ut_assertok(host_create_device(label, true, DEFAULT_BLKSZ, &dev)); 38 ut_asserteq_str("test", plat->label); 39 ut_assert(label != plat->label); 78 /* reusing the same label should work */ 81 static char label[] = "test"; local 86 ut_assertok(host_create_device(label, true, DEFAULT_BLKSZ, &dev)); 95 /* Create another device with the same label (should remove old one) */ 96 ut_assertok(host_create_device(label, tru [all...] |
H A D | rkmtd.c | 29 static const char label[] = "test"; local 38 ut_assertok(rkmtd_create_device(label, &dev)); 42 ut_asserteq_str("test", plat->label); 43 ut_assert(label != plat->label); 91 /* Reusing the same label should work */ 94 static const char label[] = "test"; local 97 /* Create a RKMTD device with label "test" */ 99 ut_assertok(rkmtd_create_device(label, &dev)); 105 /* Create another device with the same label (shoul [all...] |
/u-boot/lib/efi_loader/ |
H A D | efi_load_options.c | 71 lo->label = (u16 *)data; 72 len = u16_strnlen(lo->label, *size / sizeof(u16) - 1); 73 if (lo->label[len]) 110 label_len = u16_strsize(lo->label); 132 memcpy(p, lo->label, label_len);
|
/u-boot/scripts/dtc/ |
H A D | dtc.h | 134 struct label { struct 136 char *label; member in struct:label 137 struct label *next; 151 struct label *labels; 169 struct label *labels; 196 void add_label(struct label **labels, char *label); 197 void delete_labels(struct label **labels); 226 struct property *get_property_by_label(struct node *tree, const char *label, 228 struct marker *get_marker_label(struct node *tree, const char *label, [all...] |
/u-boot/drivers/pinctrl/rockchip/ |
H A D | pinctrl-rockchip.h | 288 #define PIN_BANK(id, pins, label) \ 292 .name = label, \ 301 #define PIN_BANK_IOMUX_FLAGS(id, pins, label, iom0, iom1, iom2, iom3) \ 305 .name = label, \ 314 #define PIN_BANK_IOMUX_FLAGS_OFFSET(id, pins, label, iom0, iom1, iom2, \ 320 .name = label, \ 329 #define PIN_BANK_DRV_FLAGS(id, pins, label, type0, type1, type2, type3) \ 333 .name = label, \ 348 #define PIN_BANK_IOMUX_FLAGS_PULL_FLAGS(id, pins, label, iom0, iom1, \ 354 .name = label, \ [all...] |
/u-boot/board/sifive/unmatched/ |
H A D | spl.c | 79 static inline int spl_reset_device_by_gpio(const char *label, int pin, int low_width) argument 83 ret = gpio_request(pin, label); 85 debug("%s gpio request failed: %d\n", label, ret); 91 debug("%s gpio direction set failed: %d\n", label, ret);
|