Searched refs:offset (Results 226 - 250 of 1155) sorted by relevance

1234567891011>>

/u-boot/drivers/gpio/
H A Dxilinx_gpio.c36 static int xilinx_gpio_get_bank_pin(unsigned offset, u32 *bank_num, argument
42 u32 pin_num = offset;
59 static int xilinx_gpio_set_value(struct udevice *dev, unsigned offset, argument
67 ret = xilinx_gpio_get_bank_pin(offset, &bank, &pin, dev);
74 __func__, (ulong)plat->regs, value, offset, bank, pin, val);
88 static int xilinx_gpio_get_value(struct udevice *dev, unsigned offset) argument
95 ret = xilinx_gpio_get_bank_pin(offset, &bank, &pin, dev);
100 (ulong)plat->regs, offset, bank, pin);
115 static int xilinx_gpio_get_function(struct udevice *dev, unsigned offset) argument
121 ret = xilinx_gpio_get_bank_pin(offset,
143 xilinx_gpio_direction_output(struct udevice *dev, unsigned offset, int value) argument
169 xilinx_gpio_direction_input(struct udevice *dev, unsigned offset) argument
[all...]
H A D74x164_gpio.c64 static int gen_74x164_get_value(struct udevice *dev, unsigned offset) argument
67 uint bank = priv->nregs - 1 - offset / 8;
68 uint pin = offset % 8;
73 static int gen_74x164_set_value(struct udevice *dev, unsigned offset, argument
77 uint bank = priv->nregs - 1 - offset / 8;
78 uint pin = offset % 8;
93 static int gen_74x164_direction_input(struct udevice *dev, unsigned offset) argument
98 static int gen_74x164_direction_output(struct udevice *dev, unsigned offset, argument
101 return gen_74x164_set_value(dev, offset, value);
104 static int gen_74x164_get_function(struct udevice *dev, unsigned offset) argument
[all...]
H A Dmt7621_gpio.c52 static int mediatek_gpio_get_value(struct udevice *dev, unsigned int offset) argument
57 reg_offs(plat, GPIO_REG_DATA)) & BIT(offset));
60 static int mediatek_gpio_set_value(struct udevice *dev, unsigned int offset, argument
65 iowrite32(BIT(offset), mediatek_gpio_membase +
71 static int mediatek_gpio_direction_input(struct udevice *dev, unsigned int offset) argument
76 BIT(offset));
81 static int mediatek_gpio_direction_output(struct udevice *dev, unsigned int offset, argument
87 BIT(offset));
88 mediatek_gpio_set_value(dev, offset, value);
93 static int mediatek_gpio_get_function(struct udevice *dev, unsigned int offset) argument
[all...]
H A Dmxc_gpio.c173 static int mxc_gpio_is_output(struct gpio_regs *regs, int offset) argument
179 return val & (1 << offset) ? 1 : 0;
182 static void mxc_gpio_bank_direction(struct gpio_regs *regs, int offset, argument
191 l |= 1 << offset;
194 l &= ~(1 << offset);
199 static void mxc_gpio_bank_set_value(struct gpio_regs *regs, int offset, argument
206 l |= 1 << offset;
208 l &= ~(1 << offset);
212 static int mxc_gpio_bank_get_value(struct gpio_regs *regs, int offset) argument
214 return (readl(&regs->gpio_psr) >> offset)
218 mxc_gpio_direction_input(struct udevice *dev, unsigned offset) argument
229 mxc_gpio_direction_output(struct udevice *dev, unsigned offset, int value) argument
244 mxc_gpio_get_value(struct udevice *dev, unsigned offset) argument
252 mxc_gpio_set_value(struct udevice *dev, unsigned offset, int value) argument
262 mxc_gpio_get_function(struct udevice *dev, unsigned offset) argument
[all...]
H A Dsunxi_gpio.c27 * the pin offset is relative to that bank.
80 u32 offset = GPIO_CFG_OFFSET(pin_offset); local
83 0xfU << offset, val << offset);
97 u32 offset = GPIO_CFG_OFFSET(pin_offset); local
101 cfg >>= offset; local
138 u32 offset = GPIO_DRV_OFFSET(pin_offset); local
141 0x3U << offset, val << offset);
155 u32 offset local
264 sunxi_gpio_get_value(struct udevice *dev, unsigned offset) argument
271 sunxi_gpio_get_function(struct udevice *dev, unsigned offset) argument
299 sunxi_gpio_set_flags(struct udevice *dev, unsigned int offset, ulong flags) argument
[all...]
/u-boot/arch/arm/mach-stm32mp/cmd_stm32prog/
H A Dstm32prog_usb.c16 u32 offset)
22 data->offset = offset;
33 data->offset = offset;
42 static int stm32prog_cmd_write(u64 offset, void *buf, long *len) argument
54 if (offset) {
55 log_err("invalid offset\n");
67 /* set phase and offset */
75 static int stm32prog_cmd_read(u64 offset, voi argument
15 stm32prog_set_phase(struct stm32prog_data *data, u8 phase, u32 offset) argument
127 stm32prog_write_medium_virt(struct dfu_entity *dfu, u64 offset, void *buf, long *len) argument
149 stm32prog_read_medium_virt(struct dfu_entity *dfu, u64 offset, void *buf, long *len) argument
[all...]
/u-boot/arch/arm/mach-at91/include/mach/
H A Dat91_common.h42 int at91_set_ethaddr(int offset);
43 int at91_set_eth1addr(int offset);
/u-boot/drivers/mtd/nand/raw/
H A Dnand_util.c67 if ((opts->offset & (mtd->erasesize - 1)) != 0) {
77 erase.addr = opts->offset;
108 if (opts->lim && (erase.addr >= (opts->offset + opts->lim))) {
260 * @param offset page address to query (must be page-aligned!)
269 int nand_get_lock_status(struct mtd_info *mtd, loff_t offset) argument
277 chipnr = (int)(offset >> chip->chip_shift);
281 if ((offset & (mtd->writesize - 1)) != 0) {
290 page = (int)(offset >> chip->page_shift);
406 * @param offset offset i
413 check_skip_len(struct mtd_info *mtd, loff_t offset, size_t length, size_t *used) argument
574 nand_write_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, size_t *actual, loff_t lim, u_char *buffer, int flags) argument
708 nand_read_skip_bad(struct mtd_info *mtd, loff_t offset, size_t *length, size_t *actual, loff_t lim, u_char *buffer) argument
821 nand_torture(struct mtd_info *mtd, loff_t offset) argument
[all...]
/u-boot/drivers/mtd/
H A Dmtdpart.c119 /* Check for the offset */
120 partition->offset = MTD_OFFSET_NOT_SPECIFIED;
123 partition->offset = ustrtoull(mtdparts, (char **)&mtdparts, 0);
141 /* Name will be of the form size@offset */
167 * auto-generate it with the form 'size@offset'.
177 partition->size, partition->offset);
249 if (parts[idx].offset == MTD_OFFSET_NOT_SPECIFIED)
250 parts[idx].offset = cur_off;
299 res = mtd->parent->_read(mtd->parent, from + mtd->offset, len,
314 return mtd->parent->_point(mtd->parent, from + mtd->offset, le
324 part_get_unmapped_area(struct mtd_info *mtd, unsigned long len, unsigned long offset, unsigned long flags) argument
769 mtd_add_partition(struct mtd_info *master, const char *name, long long offset, long long length) argument
905 fdt_addr_t offset; local
[all...]
/u-boot/drivers/clk/altera/
H A Dclk-arria10.c197 int i, ret, offset = dev_of_offset(dev); local
204 if (fdt_node_check_compatible(fdt, offset, "fixed-clock"))
233 int offset = dev_of_offset(dev); local
238 for (offset = fdt_first_subnode(fdt, offset);
239 offset > 0;
240 offset = fdt_next_subnode(fdt, offset)) {
241 name = fdt_get_name(fdt, offset, NULL);
246 offset
282 int offset = dev_of_offset(dev); local
[all...]
/u-boot/drivers/misc/
H A Di2c_eeprom.c21 u32 addr_offset_mask; /* bits in addr used for offset overflow */
22 u32 offset_len; /* size in bytes of offset */
23 u32 start_offset; /* valid start offset inside memory, by default 0 */
26 int i2c_eeprom_read(struct udevice *dev, int offset, uint8_t *buf, int size) argument
33 return ops->read(dev, offset, buf, size);
36 int i2c_eeprom_write(struct udevice *dev, int offset, const uint8_t *buf, argument
44 return ops->write(dev, offset, buf, size);
57 static int i2c_eeprom_std_read(struct udevice *dev, int offset, uint8_t *buf, argument
60 return dm_i2c_read(dev, offset, buf, size);
63 static int i2c_eeprom_len(int offset, in argument
74 i2c_eeprom_std_write(struct udevice *dev, int offset, const uint8_t *buf, int size) argument
307 u32 offset; member in struct:i2c_eeprom_partition
337 i2c_eeprom_partition_read(struct udevice *dev, int offset, u8 *buf, int size) argument
351 i2c_eeprom_partition_write(struct udevice *dev, int offset, const u8 *buf, int size) argument
[all...]
H A Drockchip-efuse.c53 int (*read)(struct udevice *dev, int offset, void *buf, int size);
54 int offset; member in struct:rockchip_efuse_data
92 static int rockchip_rk3036_efuse_read(struct udevice *dev, int offset, argument
104 RK3036_ADDR(offset++));
119 static int rockchip_rk3128_efuse_read(struct udevice *dev, int offset, argument
131 RK3128_ADDR(offset++));
146 static int rockchip_rk3288_efuse_read(struct udevice *dev, int offset, argument
159 RK3288_ADDR(offset++));
174 static int rockchip_rk3328_efuse_read(struct udevice *dev, int offset, argument
182 writel(RK3328_AUTO_RD | RK3328_AUTO_ENB | RK3399_ADDR(offset
198 rockchip_rk3399_efuse_read(struct udevice *dev, int offset, void *buf, int size) argument
224 rockchip_efuse_read(struct udevice *dev, int offset, void *buf, int size) argument
[all...]
/u-boot/board/freescale/ls2080ardb/
H A Dls2080ardb.c376 int offset; local
378 offset = fdt_path_offset(fdt, "/soc/fsl-mc");
380 if (offset < 0)
381 offset = fdt_path_offset(fdt, "/fsl-mc");
383 if (offset < 0) {
385 __func__, offset);
391 fdt_status_okay(fdt, offset);
393 fdt_status_fail(fdt, offset);
405 int offset; local
435 offset
[all...]
/u-boot/cmd/
H A Dsf.c32 * 1. <cmd> offset len - operate on <'offset', 'len')
33 * 2. <cmd> offset +len - operate on <'offset', 'round_up(len)')
172 * @param offset flash offset to write
179 static const char *spi_flash_update_block(struct spi_flash *flash, u32 offset, argument
183 u32 start_offset = offset % flash->sector_size;
184 u32 read_offset = offset - start_offset;
186 debug("offset
223 spi_flash_update(struct spi_flash *flash, u32 offset, size_t len, const char *buf) argument
282 loff_t offset, len, maxsize; local
343 loff_t offset, len, maxsize; local
472 spi_flash_test(struct spi_flash *flash, uint8_t *buf, ulong len, ulong offset, uint8_t *vbuf) argument
539 unsigned long offset; local
[all...]
/u-boot/board/toradex/common/
H A Dtdx-cfg-block.c250 int offset = CONFIG_TDX_CFG_BLOCK_OFFSET; local
273 if (offset < 0)
274 offset += mmc->capacity;
275 blk_start = ALIGN(offset, mmc->write_bl_len) / mmc->write_bl_len;
365 int offset; local
398 offset = 4;
404 while (offset + sizeof(struct toradex_tag) +
406 tag = (struct toradex_tag *)(config_block + offset);
407 offset += 4;
414 memcpy(&tdx_eth_addr, config_block + offset,
524 write_tag(u8 *config_block, int *offset, int tag_id, u8 *tag_data, size_t tag_data_size) argument
554 int offset; local
629 int offset = 0; local
732 int offset = 0; local
815 int offset = 0; local
[all...]
/u-boot/test/dm/
H A Dled.c50 const int offset = 1; local
55 * bank gpio_a, offset 1.
59 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset));
61 ut_asserteq(1, sandbox_gpio_get_value(gpio, offset));
65 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset));
75 const int offset = 1; local
80 * bank gpio_a, offset 1.
84 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset));
86 ut_asserteq(1, sandbox_gpio_get_value(gpio, offset));
90 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset));
122 const int offset = 1; local
[all...]
/u-boot/test/lib/
H A Dstring.c50 * @offset: relative start of region changed by memset() in buffer
55 int offset, int len)
60 if (i < offset || i >= offset + len) {
80 int offset, len; local
83 for (offset = 0; offset <= SWEEP; ++offset) {
86 ptr = memset(buf + offset, MASK, len);
87 ut_asserteq_ptr(buf + offset, (u
54 test_memset(struct unit_test_state *uts, u8 buf[], u8 mask, int offset, int len) argument
[all...]
/u-boot/drivers/net/pfe_eth/
H A Dpfe_hw.c61 u32 offset = 0, val, addr; local
68 for (i = 0; i < len32; i++, offset += 4, src += 4) {
71 writel(addr + offset, pe[id].mem_access_addr);
79 PE_MEM_ACCESS_BYTE_ENABLE(0, len)) + offset;
135 u32 offset = addr & 0x3; local
141 PE_MEM_ACCESS_BYTE_ENABLE(offset, size);
146 return (val >> (offset << 3)) & mask;
161 u32 offset = addr & 0x3; local
164 PE_MEM_ACCESS_DMEM | PE_MEM_ACCESS_BYTE_ENABLE(offset, size);
167 writel(cpu_to_be32(val << (offset <<
183 u32 offset = addr & 0x3; local
209 u32 offset = addr & 0x3; local
229 u32 offset = addr & 0x3; local
306 pe_lmem_read(u32 *dst, u32 len, u32 offset) argument
326 pe_lmem_write(u32 *src, u32 len, u32 offset) argument
351 u32 offset = be32_to_cpu(shdr->sh_offset); local
402 u32 offset = be32_to_cpu(shdr->sh_offset); local
459 u32 offset = be32_to_cpu(shdr->sh_offset); local
543 u32 offset = be32_to_cpu(shdr->sh_offset); local
[all...]
/u-boot/scripts/dtc/libfdt/
H A Dfdt_sw.c99 unsigned int offset = fdt_size_dt_struct(fdt); local
105 if ((offset + len < offset) || (offset + len > spaceleft))
108 fdt_set_size_dt_struct(fdt, offset + len);
109 return fdt_offset_ptr_w_(fdt, offset);
193 int offset; local
197 offset = fdt_off_dt_struct(fdt);
198 if ((offset + sizeof(*re)) > fdt_totalsize(fdt))
201 re = (struct fdt_reserve_entry *)((char *)fdt + offset);
257 unsigned int struct_top, offset; local
345 int offset, nextoffset; local
[all...]
/u-boot/arch/mips/include/asm/mach-generic/
H A Dioremap.h17 static inline void __iomem *plat_ioremap(phys_addr_t offset, unsigned long size, argument
/u-boot/tools/
H A Dgetline.c22 char terminator, size_t offset)
38 nchars_avail = *n - offset;
39 read_pos = *lineptr + offset;
82 ret = read_pos - (*lineptr + offset);
21 getstr(char **lineptr, size_t *n, FILE *stream, char terminator, size_t offset) argument
/u-boot/include/linux/
H A Dio.h59 static inline void __iomem *ioremap(resource_size_t offset, argument
62 return (void __iomem *)(unsigned long)offset;
70 #define devm_ioremap(dev, offset, size) ioremap(offset, size)
/u-boot/arch/mips/mach-mscc/include/mach/
H A Dtlb.h44 static inline void create_tlb(int index, u32 offset, u32 size, u32 tlb_attrib1, argument
50 tlb_lo0 = tlb_attrib1 | (offset >> TLB_LO_SHIFT);
51 tlb_lo1 = tlb_attrib2 | ((offset + size) >> TLB_LO_SHIFT);
53 write_one_tlb(index, tlb_mask, offset & TLB_HI_MASK,
/u-boot/arch/mips/mach-octeon/include/mach/
H A Dcvmx-rst-defs.h9 #define CVMX_RST_CTLX(offset) (0x0001180006001640ull + ((offset) & 3) * 8)
10 #define CVMX_RST_SOFT_PRSTX(offset) (0x00011800060016C0ull + ((offset) & 3) * 8)
/u-boot/drivers/clk/ti/
H A Dclk.h13 * @offset: offset from the master IP module base address
17 u16 offset; member in struct:clk_ti_reg

Completed in 294 milliseconds

1234567891011>>