Home
last modified time | relevance | path

Searched refs:field (Results 1 – 25 of 73) sorted by relevance

123

/u-boot/common/eeprom/
A Deeprom_field.c18 int to = reverse ? 0 : field->size - 1; in __eeprom_field_print_bin()
24 printf("%02x\n", field->buf[i]); in __eeprom_field_print_bin()
36 if (len > field->size * 2) in __eeprom_field_update_bin()
39 memset(field->buf, 0, field->size); in __eeprom_field_update_bin()
42 for (j = 0; j < field->size; j++) { in __eeprom_field_update_bin()
62 field->buf[j] = byte; in __eeprom_field_update_bin()
85 if (count > field->size) in __eeprom_field_update_bin_delim()
95 field->buf[i] = (unsigned char)val; in __eeprom_field_update_bin_delim()
212 printf(format, field->buf); in eeprom_field_print_ascii()
229 strncpy((char *)field->buf, value, field->size - 1); in eeprom_field_update_ascii()
[all …]
/u-boot/tools/
A Drkmux.py80 if field.endswith('_sel') or field.endswith('_con'):
81 field = field[:-4]
83 field = field[:-6]
84 elif field.endswith('_mode') or field.endswith('_mask'):
85 field = field[:-5]
89 field = field.upper()
125 return field
140 field = add_it(field)
151 field = add_it(field)
158 field = add_it(field)
[all …]
A Dmips-relocs.c27 _val = pfx##hdr64[idx].field; \
30 _val = pfx##hdr32[idx].field; \
81 pfx##hdr64[idx].field = _val; \
86 #define ehdr_field(field) \ argument
87 hdr_field(e, 0, field)
88 #define phdr_field(idx, field) \ argument
89 hdr_field(p, idx, field)
90 #define shdr_field(idx, field) \ argument
91 hdr_field(s, idx, field)
94 set_hdr_field(p, idx, field, val)
[all …]
/u-boot/include/linux/
A Dbitfield.h112 static __always_inline u64 field_multiplier(u64 field) in field_multiplier() argument
114 if ((field | (field - 1)) & ((field | (field - 1)) + 1)) in field_multiplier()
116 return field & -field; in field_multiplier()
119 static __always_inline u64 field_mask(u64 field) in field_mask() argument
121 return field / field_multiplier(field); in field_mask()
129 return to((v & field_mask(field)) * field_multiplier(field)); \
132 base val, base field) \
134 return (old & ~to(field)) | type##_encode_bits(val, field); \
137 base val, base field) \
139 *p = (*p & ~to(field)) | type##_encode_bits(val, field); \
[all …]
A Drbtree.h91 #define rbtree_postorder_for_each_entry_safe(pos, n, root, field) \ argument
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/include/
A Deeprom_field.h23 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, char *value);
A Dregmap.h332 #define regmap_field_read_poll_timeout(field, val, cond, sleep_us, timeout_ms) \ argument
337 __ret = regmap_field_read((field), &(val)); \
343 __ret = regmap_field_read((field), &(val)); \
509 void devm_regmap_field_free(struct udevice *dev, struct regmap_field *field);
519 int regmap_field_write(struct regmap_field *field, unsigned int val);
530 int regmap_field_read(struct regmap_field *field, unsigned int *val);
/u-boot/arch/mips/lib/
A Dtraps.c30 const int field = 2 * sizeof(unsigned long); in show_regs() local
42 printf(" %0*lx", field, 0UL); in show_regs()
44 printf(" %*s", field, ""); in show_regs()
46 printf(" %0*lx", field, regs->regs[i]); in show_regs()
53 printf("Hi : %0*lx\n", field, regs->hi); in show_regs()
54 printf("Lo : %0*lx\n", field, regs->lo); in show_regs()
60 field, regs->cp0_epc - gd->reloc_off); in show_regs()
62 field, regs->regs[31] - gd->reloc_off); in show_regs()
70 printf("BadVA : %0*lx\n", field, regs->cp0_badvaddr); in show_regs()
84 const int field = 2 * sizeof(unsigned long); in do_ejtag_debug() local
[all …]
/u-boot/board/compulab/common/
A Deeprom.c205 if ((field->buf[0] == 0xff) && (field->buf[1] == 0xff)) { in eeprom_field_print_bin_ver()
206 field->buf[0] = 0; in eeprom_field_print_bin_ver()
207 field->buf[1] = 0; in eeprom_field_print_bin_ver()
211 int major = (field->buf[1] << 8 | field->buf[0]) / 100; in eeprom_field_print_bin_ver()
212 int minor = (field->buf[1] << 8 | field->buf[0]) - major * 100; in eeprom_field_print_bin_ver()
256 field->buf[1] = num >> 8; in eeprom_field_update_bin_ver()
277 printf("%02d/", field->buf[0]); in eeprom_field_print_date()
278 if (field->buf[1] >= 1 && field->buf[1] <= 12) in eeprom_field_print_date()
283 printf("/%d\n", field->buf[3] << 8 | field->buf[2]); in eeprom_field_print_date()
384 field->buf[0] = day; in eeprom_field_update_date()
[all …]
/u-boot/drivers/usb/host/
A Dxhci-ring.c497 u32 field; in abort_td() local
569 u32 field = 0; in xhci_bulk_tx() local
667 field = 0; in xhci_bulk_tx()
684 field |= TRB_IOC; in xhci_bulk_tx()
690 field |= TRB_ISP; in xhci_bulk_tx()
765 u32 field; in xhci_ctrl_tx() local
837 field = 0; in xhci_ctrl_tx()
840 field |= 0x1; in xhci_ctrl_tx()
870 field = 0; in xhci_ctrl_tx()
907 field = 0; in xhci_ctrl_tx()
[all …]
/u-boot/cmd/
A Dbcb.c186 char *field, *str, *found, *tmp; in __bcb_set() local
204 field[0] = '\0'; in __bcb_set()
206 if (field[0] != '\0') in __bcb_set()
207 strcat(field, "\n"); in __bcb_set()
208 strcat(field, found); in __bcb_set()
225 char *field; in do_bcb_clear() local
235 memset(field, 0, size); in do_bcb_clear()
244 char *field; in do_bcb_test() local
256 if (!strstr(field, argv[3])) in do_bcb_test()
271 char *field; in do_bcb_dump() local
[all …]
/u-boot/drivers/mux/
A Dmmio.c97 struct reg_field field; in mmio_mux_probe() local
104 field.reg = reg; in mmio_mux_probe()
105 field.msb = fls(mask) - 1; in mmio_mux_probe()
106 field.lsb = ffs(mask) - 1; in mmio_mux_probe()
108 if (mask != GENMASK(field.msb, field.lsb)) in mmio_mux_probe()
111 fields[i] = devm_regmap_field_alloc(dev, regmap, field); in mmio_mux_probe()
117 bits = 1 + field.msb - field.lsb; in mmio_mux_probe()
/u-boot/doc/android/
A Dbcb.rst45 bcb set <field> <val> - set BCB <field> to <val>
46 bcb clear [<field>] - clear BCB <field> or all fields
47 bcb test <field> <op> <val> - test BCB <field> against <val>
48 bcb dump <field> - dump BCB <field>
54 <field> - one of {command,status,recovery,stage,reserved}
56 '=' returns true if <val> matches the string stored in <field>
57 '~' returns true if <val> matches a subset of <field>'s string
/u-boot/doc/sphinx/
A Dmaintainers_include.py124 field, details = line.split(':', 1)
129 if field in ['F', 'N', 'X', 'K']:
135 if field == field_prev and field_prev in ['M', 'R', 'L']:
140 if field != field_prev:
142 field_content = ":%s:" % (fields.get(field, field))
144 field_prev = field
/u-boot/test/dm/
A Dregmap.c224 struct regmap_field *field; in remaptest_probe() local
263 field = devm_regmap_field_alloc(dev, priv->fld_regmap, in remaptest_probe()
265 if (IS_ERR(field)) in remaptest_probe()
266 return PTR_ERR(field); in remaptest_probe()
267 priv->fields[i] = field; in remaptest_probe()
332 struct regmap_field *field, in test_one_field() argument
345 ut_assertok(regmap_field_write(field, j)); in test_one_field()
346 ut_assertok(regmap_field_read(field, &val)); in test_one_field()
352 ut_assertok(regmap_field_write(field, mask + 1)); in test_one_field()
356 ut_assertok(regmap_field_write(field, 0xFFFF)); in test_one_field()
[all …]
/u-boot/drivers/core/
A Dregmap.c566 int regmap_field_read(struct regmap_field *field, unsigned int *val) in regmap_field_read() argument
571 ret = regmap_read(field->regmap, field->reg, &reg_val); in regmap_field_read()
575 reg_val &= field->mask; in regmap_field_read()
576 reg_val >>= field->shift; in regmap_field_read()
582 int regmap_field_write(struct regmap_field *field, unsigned int val) in regmap_field_write() argument
584 return regmap_update_bits(field->regmap, field->reg, field->mask, in regmap_field_write()
585 val << field->shift); in regmap_field_write()
612 void devm_regmap_field_free(struct udevice *dev, struct regmap_field *field) in devm_regmap_field_free() argument
614 devm_kfree(dev, field); in devm_regmap_field_free()
630 void regmap_field_free(struct regmap_field *field) in regmap_field_free() argument
[all …]
/u-boot/arch/arm/mach-davinci/
A Dpinmux.c42 if (pins[i].field >= PIN_MUX_NUM_FIELDS || in davinci_configure_pin_mux()
49 const int offset = pins[i].field * PIN_MUX_FIELD_SIZE; in davinci_configure_pin_mux()
/u-boot/drivers/gpio/
A Dsh_pfc.c134 unsigned long field) in read_config_reg() argument
140 config_reg_helper(gpioc, crp, field, &mapped_reg, &mask, &pos); in read_config_reg()
144 crp->reg, field, crp->reg_width, crp->field_width); in read_config_reg()
151 unsigned long field, unsigned long value) in write_config_reg() argument
156 config_reg_helper(gpioc, crp, field, &mapped_reg, &mask, &pos); in write_config_reg()
160 crp->reg, value, field, crp->reg_width, crp->field_width); in write_config_reg()
332 int in_range, pos, field, value; in pinmux_config_gpio() local
363 field = 0; in pinmux_config_gpio()
412 &field, &value, &cntp) != 0) in pinmux_config_gpio()
418 (read_config_reg(gpioc, cr, field) != value)) in pinmux_config_gpio()
[all …]
/u-boot/drivers/memory/
A Dti-aemif.c29 #define set_config_field(reg, field, val) \ argument
32 reg &= ~AEMIF_CFG_##field(0xffffffff); \
33 reg |= AEMIF_CFG_##field(val); \
/u-boot/arch/arm/cpu/arm1136/mx31/
A Dgeneric.c119 u32 field, l, reg; in mx31_set_pad() local
123 field = (pin + 2) % 3; in mx31_set_pad()
126 l &= ~(0x1ff << (field * 10)); in mx31_set_pad()
127 l |= config << (field * 10); in mx31_set_pad()
/u-boot/arch/mips/mach-octeon/include/mach/
A Docteon_ddr.h858 #define SET_DDR_DLL_CTL3(field, expr) \ argument
862 ddr_dll_ctl3.cn63xx.field = (expr); \
866 ddr_dll_ctl3.cn61xx.field = (expr); \
869 ddr_dll_ctl3.cn70xx.field = (expr); \
872 ddr_dll_ctl3.cn73xx.field = (expr); \
874 debug("%s(): " #field \
887 # define GET_DDR_DLL_CTL3(field) \ argument
890 ddr_dll_ctl3.cn63xx.field : \
894 ddr_dll_ctl3.cn61xx.field : \
897 ddr_dll_ctl3.cn70xx.field : \
[all …]
/u-boot/doc/device-tree-bindings/gpio/
A Dsnps,creg-gpio.txt18 - gpio-first-shift: Shift (in bits) of the first GPIO field in register
20 - gpio-activate-val: Value should be set in corresponding field to set
22 - gpio-deactivate-val: Value should be set in corresponding field to set
/u-boot/common/
A Dbedbug.c236 int field; in print_operands() local
247 for (field = 0; ctx->op->fields[field] != 0; ++field) { in print_operands()
248 if (ctx->op->fields[field] > n_operands) { in print_operands()
252 opr = &operands[ctx->op->fields[field] - 1]; in print_operands()
258 if ((field > 0) && !open_parens) { in print_operands()
297 (opr->field == O_rA) && (ctx->op->hint & H_RA0_IS_0)) { in print_operands()
318 switch (opr->field) { in print_operands()
376 enum OP_FIELD field, unsigned long *value) in get_operand_value() argument
383 if (field > n_operands) { in get_operand_value()
389 if (op->fields[i] != field) { in get_operand_value()
/u-boot/scripts/
A DMakefile.extrawarn28 warning-1 += $(call cc-disable-warning, missing-field-initializers)
36 warning-2 += $(call cc-option, -Wmissing-field-initializers)
/u-boot/arch/mips/mach-octeon/
A Dcvmx-bootmem.c43 #define SIZEOF_FIELD(s, field) sizeof(((s *)NULL)->field) argument
55 #define CVMX_BOOTMEM_DESC_GET_FIELD(field) \ argument
57 offsetof(struct cvmx_bootmem_desc, field), \
58 SIZEOF_FIELD(struct cvmx_bootmem_desc, field))
68 #define CVMX_BOOTMEM_DESC_SET_FIELD(field, value) \ argument
70 offsetof(struct cvmx_bootmem_desc, field), \
71 SIZEOF_FIELD(struct cvmx_bootmem_desc, field), \
85 #define CVMX_BOOTMEM_NAMED_GET_FIELD(addr, field) \ argument
87 offsetof(struct cvmx_bootmem_named_block_desc, field), \
100 #define CVMX_BOOTMEM_NAMED_SET_FIELD(addr, field, value) \ argument
[all …]

Completed in 30 milliseconds

123