/u-boot/include/ |
H A D | eeprom_field.h | 23 void eeprom_field_print_bin(const struct eeprom_field *field); 24 int eeprom_field_update_bin(struct eeprom_field *field, char *value); 26 void eeprom_field_print_bin_rev(const struct eeprom_field *field); 27 int eeprom_field_update_bin_rev(struct eeprom_field *field, char *value); 29 void eeprom_field_print_mac(const struct eeprom_field *field); 30 int eeprom_field_update_mac(struct eeprom_field *field, char *value); 32 void eeprom_field_print_ascii(const struct eeprom_field *field); 33 int eeprom_field_update_ascii(struct eeprom_field *field, char *value); 35 void eeprom_field_print_reserved(const struct eeprom_field *field); 36 int eeprom_field_update_reserved(struct eeprom_field *field, cha [all...] |
H A D | bcb.h | 26 int bcb_set(enum bcb_field field, const char *value); 29 * bcb_get() - get the field value. 30 * @field: field to get 31 * @value_out: buffer to copy bcb field value to 33 * value_out is smaller then the field value 35 int bcb_get(enum bcb_field field, char *value_out, size_t value_size); 56 static inline int bcb_set(enum bcb_field field, const char *value) argument 61 static inline int bcb_get(enum bcb_field field, char *value_out) argument
|
H A D | regmap.h | 319 * @field: Regmap field to read from 332 #define regmap_field_read_poll_timeout(field, val, cond, sleep_us, timeout_ms) \ 337 __ret = regmap_field_read((field), &(val)); \ 343 __ret = regmap_field_read((field), &(val)); \ 449 * struct reg_field - Description of an register field 452 * @lsb: lsb of the register field. 453 * @msb: msb of the register field. 467 * @_lsb: lsb of the register field. 468 * @_msb: msb of the register field [all...] |
/u-boot/common/eeprom/ |
H A D | eeprom_field.c | 13 static void __eeprom_field_print_bin(const struct eeprom_field *field, argument 17 int from = reverse ? field->size - 1 : 0; 18 int to = reverse ? 0 : field->size - 1; 20 printf(PRINT_FIELD_SEGMENT, field->name); 22 printf("%02x%s", field->buf[i], delimiter); 24 printf("%02x\n", field->buf[i]); 27 static int __eeprom_field_update_bin(struct eeprom_field *field, argument 36 if (len > field->size * 2) 39 memset(field->buf, 0, field 69 __eeprom_field_update_bin_delim(struct eeprom_field *field, char *value, char *delimiter) argument 112 eeprom_field_print_bin(const struct eeprom_field *field) argument 123 eeprom_field_update_bin(struct eeprom_field *field, char *value) argument 135 eeprom_field_update_reserved(struct eeprom_field *field, char *value) argument 154 eeprom_field_print_bin_rev(const struct eeprom_field *field) argument 170 eeprom_field_update_bin_rev(struct eeprom_field *field, char *value) argument 185 eeprom_field_print_mac(const struct eeprom_field *field) argument 197 eeprom_field_update_mac(struct eeprom_field *field, char *value) argument 206 eeprom_field_print_ascii(const struct eeprom_field *field) argument 222 eeprom_field_update_ascii(struct eeprom_field *field, char *value) argument 245 eeprom_field_print_reserved(const struct eeprom_field *field) argument [all...] |
/u-boot/include/linux/ |
H A D | bitfield.h | 59 _pfx "value too large for the field"); \ 67 * FIELD_FIT() - check if value fits in the field 68 * @_mask: shifted mask defining the field's length and position 69 * @_val: value to test against the field 81 * @_mask: shifted mask defining the field's length and position 82 * @_val: value to put in the field 95 * @_mask: shifted mask defining the field's length and position 98 * FIELD_GET() extracts the field specified by @_mask from the 112 static __always_inline u64 field_multiplier(u64 field) argument 114 if ((field | (fiel 119 field_mask(u64 field) argument [all...] |
H A D | rbtree.h | 89 * @field: the name of the rb_node field within 'type'. 91 #define rbtree_postorder_for_each_entry_safe(pos, n, root, field) \ 92 for (pos = rb_entry_safe(rb_first_postorder(root), typeof(*pos), field); \ 93 pos && ({ n = rb_entry_safe(rb_next_postorder(&pos->field), \ 94 typeof(*pos), field); 1; }); \
|
/u-boot/tools/ |
H A D | rkmux.py | 76 field = lines[0] 77 #print 'field:', field 78 if field in ['reserved', 'reserve', 'write_enable', 'write_mask']: 80 if field.endswith('_sel') or field.endswith('_con'): 81 field = field[:-4] 82 elif field.endswith(' iomux'): 83 field [all...] |
H A D | mips-relocs.c | 22 #define hdr_field(pfx, idx, field) ({ \ 27 _val = pfx##hdr64[idx].field; \ 28 _size = sizeof(pfx##hdr64[0].field); \ 30 _val = pfx##hdr32[idx].field; \ 31 _size = sizeof(pfx##hdr32[0].field); \ 51 #define set_hdr_field(pfx, idx, field, val) ({ \ 56 _size = sizeof(pfx##hdr64[0].field); \ 58 _size = sizeof(pfx##hdr32[0].field); \ 81 pfx##hdr64[idx].field = _val; \ 83 pfx##hdr32[idx].field [all...] |
/u-boot/drivers/usb/isp1760/ |
H A D | isp1760-core.h | 58 static inline u32 isp1760_field_read(struct regmap_field **fields, u32 field) argument 62 regmap_field_read(fields[field], &val); 67 static inline void isp1760_field_write(struct regmap_field **fields, u32 field, argument 70 regmap_field_write(fields[field], val); 73 static inline void isp1760_field_set(struct regmap_field **fields, u32 field) argument 75 isp1760_field_write(fields, field, 0xFFFFFFFF); 78 static inline void isp1760_field_clear(struct regmap_field **fields, u32 field) argument 80 isp1760_field_write(fields, field, 0);
|
/u-boot/arch/mips/lib/ |
H A D | traps.c | 31 const int field = 2 * sizeof(unsigned long); local 43 printf(" %0*lx", field, 0UL); 45 printf(" %*s", field, ""); 47 printf(" %0*lx", field, regs->regs[i]); 54 printf("Hi : %0*lx\n", field, regs->hi); 55 printf("Lo : %0*lx\n", field, regs->lo); 60 printf("epc : %0*lx (text %0*lx)\n", field, regs->cp0_epc, 61 field, regs->cp0_epc - gd->reloc_off); 62 printf("ra : %0*lx (text %0*lx)\n", field, regs->regs[31], 63 field, reg 85 const int field = 2 * sizeof(unsigned long); local [all...] |
/u-boot/board/compulab/common/ |
H A D | eeprom.c | 182 * eeprom_field_print_bin_ver() - print a "version field" which contains binary 185 * Treat the field data as simple binary data, and print it formatted as a 187 * The field size must be exactly 2 bytes. 192 * @field: an initialized field to print 194 void eeprom_field_print_bin_ver(const struct eeprom_field *field) argument 196 if ((field->buf[0] == 0xff) && (field->buf[1] == 0xff)) { 197 field->buf[0] = 0; 198 field 223 eeprom_field_update_bin_ver(struct eeprom_field *field, char *value) argument 265 eeprom_field_print_date(const struct eeprom_field *field) argument 336 eeprom_field_update_date(struct eeprom_field *field, char *value) argument [all...] |
/u-boot/include/fsl-mc/ |
H A D | fsl_dpio.h | 26 #define DPIO_MASK(field) \ 27 GENMASK(DPIO_##field##_SHIFT + DPIO_##field##_SIZE - 1, \ 28 DPIO_##field##_SHIFT) 29 #define dpio_set_field(var, field, val) \ 30 ((var) |= (((val) << DPIO_##field##_SHIFT) & DPIO_MASK(field))) 31 #define dpio_get_field(var, field) \ 32 (((var) & DPIO_MASK(field)) >> DPIO_##field##_SHIF [all...] |
H A D | fsl_dpmac.h | 30 #define DPMAC_MASK(field) \ 31 GENMASK(DPMAC_##field##_SHIFT + DPMAC_##field##_SIZE - 1, \ 32 DPMAC_##field##_SHIFT) 33 #define dpmac_set_field(var, field, val) \ 34 ((var) |= (((val) << DPMAC_##field##_SHIFT) & DPMAC_MASK(field))) 35 #define dpmac_get_field(var, field) \ 36 (((var) & DPMAC_MASK(field)) >> DPMAC_##field##_SHIF [all...] |
/u-boot/board/sunxi/ |
H A D | chip.c | 22 #define dip_convert(field) \ 24 (sizeof(field) == 1) ? field : \ 25 (sizeof(field) == 2) ? be16_to_cpu(field) : \ 26 (sizeof(field) == 4) ? be32_to_cpu(field) : \
|
/u-boot/cmd/ |
H A D | bcb.c | 123 printf("Error: Unknown bcb field '%s'\n", name); 241 char *field, *str, *found, *tmp; local 243 if (bcb_field_get(fieldp, &field, &size)) 259 field[0] = '\0'; 261 if (field[0] != '\0') 262 strcat(field, "\n"); 263 strcat(field, found); 280 char *field; local 287 if (bcb_field_get(argv[1], &field, &size)) 290 memset(field, 299 char *field; local 326 char *field; local 385 bcb_set(enum bcb_field field, const char *value) argument 392 bcb_get(enum bcb_field field, char *value_out, size_t value_size) argument [all...] |
/u-boot/arch/mips/mach-octeon/ |
H A D | cvmx-global-resources.c | 37 * structure. The argument "field" is the member name of the 40 #define CVMX_GLOBAL_RESOURCES_GET_FIELD(field) \ 43 offsetof(struct cvmx_global_resources, field), \ 44 SIZEOF_FIELD(struct cvmx_global_resources, field)) 48 * structure. The argument "field" is the member name of the 51 #define CVMX_GLOBAL_RESOURCES_SET_FIELD(field, value) \ 54 offsetof(struct cvmx_global_resources, field), \ 55 SIZEOF_FIELD(struct cvmx_global_resources, field), value) 59 * The argument "field" is the member name of this structure. 63 #define CVMX_RESOURCE_ENTRY_GET_FIELD(addr, field) \ [all...] |
/u-boot/drivers/mux/ |
H A D | mmio.c | 97 struct reg_field field; local 104 field.reg = reg; 105 field.msb = fls(mask) - 1; 106 field.lsb = ffs(mask) - 1; 108 if (mask != GENMASK(field.msb, field.lsb)) 111 fields[i] = devm_regmap_field_alloc(dev, regmap, field); 117 bits = 1 + field.msb - field.lsb;
|
/u-boot/arch/arm/mach-davinci/ |
H A D | pinmux.c | 17 * Change the setting of a pin multiplexer field. 27 * set in the pin mux field specified. 32 * Returns 0 if all field numbers and values are in the correct range, 42 if (pins[i].field >= PIN_MUX_NUM_FIELDS || 49 const int offset = pins[i].field * PIN_MUX_FIELD_SIZE;
|
/u-boot/drivers/usb/host/ |
H A D | xhci-ring.c | 115 chain = le32_to_cpu(ring->enqueue->generic.field[3]) & TRB_CHAIN; 198 * @param trb_fields pointer to trb field array containing TRB contents 211 trb->field[i] = cpu_to_le32(trb_fields[i]); 289 * @param slot_id Slot ID to encode in the flags field (opt.) 290 * @param ep_index Endpoint index to encode in the flags field (opt.) 332 * For xHCI 0.96 and older, TD size field should be the remaining bytes 393 start_trb->field[3] |= cpu_to_le32(start_cycle); 395 start_trb->field[3] &= cpu_to_le32(~TRB_CYCLE); 484 le32_to_cpu(event->generic.field[2])) != 489 le32_to_cpu(event->generic.field[ 515 u32 field; local 556 u32 field; local 647 u32 field = 0; local 855 u32 field; local [all...] |
/u-boot/doc/sphinx/ |
H A D | maintainers_include.py | 55 # Field letter to field name mapping. 93 # Look for and record field letter to field name mappings: 112 # Flush pending field content. 121 # Render a subsystem field as: 124 field, details = line.split(':', 1) 129 if field in ['F', 'N', 'X', 'K']: 134 # Comma separate email field continuations. 135 if field == field_prev and field_prev in ['M', 'R', 'L']: 138 # Do not repeat field name [all...] |
/u-boot/scripts/ |
H A D | get_default_envs.sh | 39 tr '\0' '\n' < ${ENV_OBJ_FILE_COPY} | sed -e '/^\s*$/d' | sort --field-separator== -k1,1 --stable
|
/u-boot/arch/arm/mach-davinci/include/mach/ |
H A D | davinci_misc.h | 19 unsigned char value; /* Value to set in field */ 20 unsigned char field; /* field number */ member in struct:pinmux_config
|
/u-boot/drivers/memory/ |
H A D | ti-aemif.c | 29 #define set_config_field(reg, field, val) \ 32 reg &= ~AEMIF_CFG_##field(0xffffffff); \ 33 reg |= AEMIF_CFG_##field(val); \
|
/u-boot/arch/mips/mach-octeon/include/mach/ |
H A D | octeon_ddr.h | 199 /* data field addresses in the DDR2 SPD eeprom */ 229 /* data field addresses in the DDR2 SPD eeprom */ 280 /* data field addresses in the DDR4 SPD eeprom */ 673 #define SET_DDR_DLL_CTL3(field, expr) \ 677 ddr_dll_ctl3.cn63xx.field = (expr); \ 681 ddr_dll_ctl3.cn61xx.field = (expr); \ 684 ddr_dll_ctl3.cn70xx.field = (expr); \ 687 ddr_dll_ctl3.cn73xx.field = (expr); \ 689 debug("%s(): " #field \ 702 # define GET_DDR_DLL_CTL3(field) \ [all...] |
/u-boot/drivers/gpio/ |
H A D | sh_pfc.c | 134 unsigned long field) 140 config_reg_helper(gpioc, crp, field, &mapped_reg, &mask, &pos); 142 debug("read_reg: addr = %lx, field = %ld, " 144 crp->reg, field, crp->reg_width, crp->field_width); 151 unsigned long field, unsigned long value) 156 config_reg_helper(gpioc, crp, field, &mapped_reg, &mask, &pos); 158 debug("write_reg addr = %lx, value = %ld, field = %ld, " 160 crp->reg, value, field, crp->reg_width, crp->field_width); 332 int in_range, pos, field, value; local 363 field 132 read_config_reg(struct pinmux_info *gpioc, struct pinmux_cfg_reg *crp, unsigned long field) argument 149 write_config_reg(struct pinmux_info *gpioc, struct pinmux_cfg_reg *crp, unsigned long field, unsigned long value) argument [all...] |