Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 25 of 2202) sorted by relevance

12345678910>>...89

/u-boot/fs/yaffs2/
A Dyaffs_checkptrw.c36 dev->internal_start_block, dev->internal_end_block); in yaffs_checkpt_erase()
54 dev->param.bad_block_fn(dev, i); in yaffs_checkpt_erase()
72 dev->n_erased_blocks, dev->param.n_reserved_blocks, in yaffs2_checkpt_find_erased_block()
105 dev->blocks_in_checkpt, dev->checkpt_next_block); in yaffs2_checkpt_find_block()
107 if (dev->blocks_in_checkpt < dev->checkpt_max_blocks) in yaffs2_checkpt_find_block()
113 dev->param.read_chunk_tags_fn(dev, realigned_chunk, in yaffs2_checkpt_find_block()
124 dev->checkpt_block_list[dev-> in yaffs2_checkpt_find_block()
166 dev->checkpt_next_block = dev->internal_start_block; in yaffs2_checkpt_open()
176 dev->checkpt_byte_offs = dev->data_bytes_per_chunk; in yaffs2_checkpt_open()
326 dev->param.read_chunk_tags_fn(dev, in yaffs2_checkpt_rd()
[all …]
A Dyaffs_nand.c27 dev->n_page_reads++; in yaffs_rd_chunk_tags_nand()
35 dev->param.read_chunk_tags_fn(dev, flash_chunk, buffer, in yaffs_rd_chunk_tags_nand()
43 bi = yaffs_get_block_info(dev, in yaffs_rd_chunk_tags_nand()
58 dev->n_page_writes++; in yaffs_wr_chunk_tags_nand()
73 result = dev->param.write_chunk_tags_fn(dev, flash_chunk, in yaffs_wr_chunk_tags_nand()
86 if (dev->param.bad_block_fn) in yaffs_mark_bad()
87 return dev->param.bad_block_fn(dev, block_no); in yaffs_mark_bad()
99 return dev->param.query_block_fn(dev, block_no, state, in yaffs_query_init_block_state()
110 dev->n_erasures++; in yaffs_erase_block()
111 result = dev->param.erase_fn(dev, flash_block); in yaffs_erase_block()
[all …]
A Dyaffs_guts.c145 if (dev->temp_in_use > dev->max_temp) in yaffs_get_temp_buffer()
146 dev->max_temp = dev->temp_in_use; in yaffs_get_temp_buffer()
406 dev->alloc_block_finder, dev->seq_number, in yaffs_find_alloc_block()
447 yaffs_set_chunk_bit(dev, dev->alloc_block, dev->alloc_page); in yaffs_alloc_chunk()
1259 if (dev && dev->param.remove_obj_fn) in yaffs_remove_obj_from_dir()
2783 dev->gc_dirtiest, dev->gc_pages_in_use, in yaffs_find_gc_block()
2808 if (dev->param.gc_control && (dev->param.gc_control(dev) & 1) == 0) in yaffs_check_gc()
4560 dev->lost_n_found = dev->root_dir = NULL; in yaffs_create_initial_dir()
4561 dev->unlinked_dir = dev->del_dir = NULL; in yaffs_create_initial_dir()
4573 if (dev->lost_n_found && dev->root_dir && dev->unlinked_dir in yaffs_create_initial_dir()
[all …]
A Dyaffs_summary.c58 if (!dev->sum_tags) in yaffs_summary_clear()
60 memset(dev->sum_tags, 0, dev->chunks_per_summary * in yaffs_summary_clear()
67 kfree(dev->sum_tags); in yaffs_summary_deinit()
68 dev->sum_tags = NULL; in yaffs_summary_deinit()
69 kfree(dev->gc_sum_tags); in yaffs_summary_deinit()
70 dev->gc_sum_tags = NULL; in yaffs_summary_deinit()
87 dev->chunks_per_summary = dev->param.chunks_per_block - chunks_used; in yaffs_summary_init()
92 if (!dev->sum_tags || !dev->gc_sum_tags) { in yaffs_summary_init()
140 chunk_in_nand = dev->alloc_block * dev->param.chunks_per_block + in yaffs_summary_write()
161 dev->n_free_chunks--; in yaffs_summary_write()
[all …]
/u-boot/include/dm/
A Dread.h24 return ofnode_to_np(dev_ofnode(dev)); in dev_np()
805 return devfdt_get_addr_index(dev, index); in dev_read_addr_index()
818 return devfdt_get_addr_name(dev, name); in dev_read_addr_name()
830 return devfdt_get_addr(dev); in dev_read_addr()
835 return devfdt_get_addr_ptr(dev); in dev_read_addr_ptr()
840 return devfdt_get_addr_pci(dev); in dev_read_addr_pci()
845 return devfdt_remap_addr(dev); in dev_remap_addr()
856 return devfdt_remap_addr_name(dev, name); in dev_remap_addr_name()
868 return ofnode_get_name(dev_ofnode(dev)); in dev_read_name()
963 dev_of_offset(dev), devnump); in dev_read_alias_seq()
[all …]
/u-boot/drivers/core/
A Ddevice.c60 if (!dev) in device_bind_common()
87 if (!dev_read_alias_seq(dev, &dev->seq_)) in device_bind_common()
227 free(dev); in device_bind_common()
392 if (!dev) in device_of_to_plat()
479 if (!dev) in device_probe()
545 ret = dev->parent->driver->child_pre_probe(dev); in device_probe()
815 dev = drt->dev; in device_get_by_driver_info()
826 dev = drt->dev; in device_get_by_driver_info_idx()
917 if (!dev) in device_first_child_err()
928 if (!dev) in device_next_child_err()
[all …]
A Dread.c107 if (ofnode_is_np(dev_ofnode(dev))) in dev_read_addr_index()
116 if (ofnode_is_np(dev_ofnode(dev))) in dev_read_addr_size_index()
139 return dev_read_addr_index(dev, index); in dev_read_addr_name()
165 return dev_read_addr_index(dev, 0); in dev_read_addr()
170 fdt_addr_t addr = dev_read_addr(dev); in dev_read_addr_ptr()
177 return dev_remap_addr_index(dev, 0); in dev_remap_addr()
247 ofnode node = dev_ofnode(dev); in dev_read_phandle()
279 ofnode node = dev_ofnode(dev); in dev_read_alias_seq()
313 ofnode node = dev_ofnode(dev); in dev_read_enabled()
362 addr = dev_read_addr(dev); in dev_read_addr_pci()
[all …]
A Ddevice-remove.c30 assert(dev); in device_chld_unbind()
53 assert(dev); in device_chld_remove()
76 if (!dev) in device_unbind()
85 drv = dev->driver; in device_unbind()
114 if (dev->parent) in device_unbind()
121 free(dev); in device_unbind()
143 if (dev->parent) { in device_free()
203 if (!dev) in device_remove()
240 if (dev->parent && dev->parent->driver->child_post_remove) { in device_remove()
241 ret = dev->parent->driver->child_post_remove(dev); in device_remove()
[all …]
/u-boot/drivers/net/
A Dlan91c96.c223 SMC_outw(dev, SMC_inw(dev, LAN91C96_CONTROL) | LAN91C96_CTR_BIT_8, in smc_reset()
369 dev->name, try); in smc_send_packet()
482 smc_reset(dev); in smc_open()
483 smc_enable(dev); in smc_open()
635 smc_shutdown(dev); in smc_close()
684 smc_close(dev); in lan91c96_halt()
775 dev = malloc(sizeof(*dev)); in lan91c96_initialize()
776 if (!dev) { in lan91c96_initialize()
779 memset(dev, 0, sizeof(*dev)); in lan91c96_initialize()
786 free(dev); in lan91c96_initialize()
[all …]
A Dax88180.c160 tmpval = INW (dev, MISC); in ax88180_mac_reset()
547 dev->enetaddr[0] | (((unsigned short)dev->enetaddr[1]) << 8); in ax88180_init()
551 dev->enetaddr[2] | (((unsigned short)dev->enetaddr[3]) << 8); in ax88180_init()
555 dev->enetaddr[4] | (((unsigned short)dev->enetaddr[5]) << 8); in ax88180_init()
567 OUTW (dev, INW (dev, ISR), ISR); in ax88180_init()
706 struct eth_device *dev; in ax88180_initialize() local
709 dev = (struct eth_device *)malloc (sizeof *dev); in ax88180_initialize()
711 if (NULL == dev) in ax88180_initialize()
714 memset (dev, 0, sizeof *dev); in ax88180_initialize()
725 dev->priv = priv; in ax88180_initialize()
[all …]
A Dcs8900.c90 put_reg(dev, PP_SelfCTL, get_reg(dev, PP_SelfCTL) | PP_SelfCTL_Reset); in cs8900_reset()
124 cs8900_reset(dev); in cs8900_get_enetaddr()
162 cs8900_reset (dev); in cs8900_init()
168 cs8900_reginit(dev); in cs8900_init()
222 cs8900_reset(dev); in cs8900_send()
292 dev = malloc(sizeof(*dev)); in cs8900_initialize()
293 if (!dev) { in cs8900_initialize()
296 memset(dev, 0, sizeof(*dev)); in cs8900_initialize()
300 free(dev); in cs8900_initialize()
307 dev->priv = priv; in cs8900_initialize()
[all …]
/u-boot/drivers/video/
A Draydium-rm68200.c140 dcs_write_seq(dev, MCS_BT2CTR, 0xE5); in rm68200_init_sequence()
148 dcs_write_seq(dev, MCS_SDCTR, 0x06); in rm68200_init_sequence()
155 dcs_write_seq(dev, GOA_VSTV1, 0x05); in rm68200_init_sequence()
156 dcs_write_seq(dev, 0x02, 0x0B); in rm68200_init_sequence()
157 dcs_write_seq(dev, 0x03, 0x0F); in rm68200_init_sequence()
168 dcs_write_seq(dev, 0x2D, 0x01); in rm68200_init_sequence()
172 dcs_write_seq(dev, 0x3D, 0x40); in rm68200_init_sequence()
206 dcs_write_seq(dev, 0xDC, 0x02); in rm68200_init_sequence()
207 dcs_write_seq(dev, 0xDE, 0x12); in rm68200_init_sequence()
210 dcs_write_seq(dev, 0x01, 0x75); in rm68200_init_sequence()
[all …]
A Dseps525.c95 struct udevice *dev; member
138 (void)seps525_spi_write_cmd(dev, reg); in seps525_spi_write()
210 ret = dm_spi_claim_bus(dev); in seps525_spi_startup()
216 ret = seps525_display_init(dev); in seps525_spi_startup()
220 dm_spi_release_bus(dev); in seps525_spi_startup()
229 struct udevice *dev = priv->dev; in seps525_sync() local
234 ret = dm_spi_claim_bus(dev); in seps525_sync()
254 dm_spi_release_bus(dev); in seps525_sync()
282 dev_err(dev, "missing dc GPIO\n"); in seps525_probe()
291 priv->dev = dev; in seps525_probe()
[all …]
A Dorisetech_otm8009a.c105 #define dcs_write_seq(dev, seq...) \ argument
111 #define dcs_write_seq_hs(dev, seq...) \ argument
117 #define dcs_write_cmd_at(dev, cmd, seq...) \ argument
120 struct udevice *device = dev; \
137 dcs_write_cmd_at(dev, MCS_SD_PCH_CTRL, 0x30); in otm8009a_init_sequence()
140 dcs_write_cmd_at(dev, MCS_NO_DOC1, 0x40); in otm8009a_init_sequence()
145 dcs_write_cmd_at(dev, MCS_P_DRV_M, 0x50); in otm8009a_init_sequence()
146 dcs_write_cmd_at(dev, MCS_VCOMDC, 0x4E); in otm8009a_init_sequence()
166 dcs_write_cmd_at(dev, MCS_NO_DOC2, 0x00); in otm8009a_init_sequence()
197 dcs_write_cmd_at(dev, MCS_NO_DOC3, 0x06); in otm8009a_init_sequence()
[all …]
/u-boot/cmd/
A Dtpm_test.c90 tpm_init(dev); in test_early_extend()
103 tpm_init(dev); in test_early_nvram()
117 tpm_init(dev); in test_early_nvram2()
131 tpm_init(dev); in test_enable()
158 tpm_init(dev); in test_fast_enable()
188 tpm_init(dev); in test_global_lock()
225 tpm_init(dev); in test_lock()
262 tpm_init(dev); in test_readonly()
316 tpm_init(dev); in test_redefine_unowned()
366 tpm_init(dev); in test_space_perm()
[all …]
/u-boot/drivers/power/regulator/
A Dregulator-uclass.c37 return ops->get_value(dev); in regulator_get_value()
245 struct udevice *dev; in regulator_get_by_platname() local
250 for (ret = uclass_find_first_device(UCLASS_REGULATOR, &dev); dev; in regulator_get_by_platname()
333 struct udevice *dev; in regulator_autoset_by_name() local
338 *devp = dev; in regulator_autoset_by_name()
351 struct udevice *dev; in regulator_list_autoset() local
362 list_devp[i] = dev; in regulator_list_autoset()
374 struct udevice *dev; in regulator_name_is_unique() local
379 for (ret = uclass_find_first_device(UCLASS_REGULATOR, &dev); dev; in regulator_name_is_unique()
474 struct udevice *dev; in regulators_enable_boot_on() local
[all …]
/u-boot/common/
A Dusb.c656 ret = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), in usb_set_interface()
836 dev->devnum, dev->string_langid); in usb_string()
1144 memset(dev->mf, 0, sizeof(dev->mf)); in usb_select_config()
1145 memset(dev->prod, 0, sizeof(dev->prod)); in usb_select_config()
1146 memset(dev->serial, 0, sizeof(dev->serial)); in usb_select_config()
1148 usb_string(dev, dev->descriptor.iManufacturer, in usb_select_config()
1149 dev->mf, sizeof(dev->mf)); in usb_select_config()
1151 usb_string(dev, dev->descriptor.iProduct, in usb_select_config()
1152 dev->prod, sizeof(dev->prod)); in usb_select_config()
1154 usb_string(dev, dev->descriptor.iSerialNumber, in usb_select_config()
[all …]
/u-boot/test/dm/
A Dbus.c99 ut_assertnonnull(dev); in dm_test_bus_children_of_offset()
288 dev; in test_bus_parent_plat()
300 device_probe(dev); in test_bus_parent_plat()
312 dev; in test_bus_parent_plat()
324 if (dev) in test_bus_parent_plat()
326 } while (dev); in test_bus_parent_plat()
331 dev; in test_bus_parent_plat()
387 dev; in dm_test_bus_child_post_bind()
408 dev; in dm_test_bus_child_post_bind_uclass()
436 dev; in dm_test_bus_child_pre_probe_uclass()
[all …]
A Di2c.c28 struct udevice *bus, *dev; in dm_test_i2c_find() local
46 struct udevice *bus, *dev; in dm_test_i2c_read_write() local
51 ut_assertok(dm_i2c_read(dev, 0, buf, 5)); in dm_test_i2c_read_write()
54 ut_assertok(dm_i2c_read(dev, 0, buf, 5)); in dm_test_i2c_read_write()
63 struct udevice *bus, *dev; in dm_test_i2c_speed() local
72 ut_assertok(dm_i2c_read(dev, 0, buf, 5)); in dm_test_i2c_speed()
85 struct udevice *bus, *dev; in dm_test_i2c_offset_len() local
102 struct udevice *bus, *dev; in dm_test_i2c_probe_empty() local
117 struct udevice *bus, *dev; in dm_test_i2c_bytewise() local
173 struct udevice *dev; in dm_test_i2c_offset() local
[all …]
A Dtest-fdt.c118 struct udevice *dev; in dm_check_devices() local
154 struct udevice *dev; in dm_test_fdt() local
250 &dev)); in dm_test_fdt_uclass_seq()
281 &dev)); in dm_test_fdt_uclass_seq()
283 &dev)); in dm_test_fdt_uclass_seq()
285 &dev)); in dm_test_fdt_uclass_seq()
375 &dev)); in dm_test_fdt_offset()
408 dev; in dm_test_first_next_device()
503 dev; in dm_test_first_next_ok_device()
824 &dev); in dm_test_fdt_livetree_writing()
[all …]
/u-boot/include/
A Dcros_ec.h19 struct udevice *dev; /* Transport device */ member
93 int cros_ec_get_next_event(struct udevice *dev,
216 int cros_ec_test(struct udevice *dev);
247 int (*check_version)(struct udevice *dev);
291 int (*get_switches)(struct udevice *dev);
294 #define dm_cros_ec_get_ops(dev) \ argument
295 ((struct dm_cros_ec_ops *)(dev)->driver->ops)
297 int cros_ec_register(struct udevice *dev);
388 int cros_ec_get_sku_id(struct udevice *dev);
407 int cros_ec_read_version(struct udevice *dev,
[all …]
/u-boot/net/
A Deth_legacy.c73 dev = dev->next; in eth_get_dev_by_name()
93 dev = dev->next; in eth_get_dev_by_index()
126 eth_write_hwaddr(dev, "eth", dev->index); in on_ethaddr()
132 dev = dev->next; in on_ethaddr()
166 dev->name, eth_number, dev->enetaddr); in eth_write_hwaddr()
177 dev->name, dev->enetaddr); in eth_write_hwaddr()
181 ret = dev->write_hwaddr(dev); in eth_write_hwaddr()
195 assert(strlen(dev->name) < sizeof(dev->name)); in eth_register()
287 eth_write_hwaddr(dev, "eth", dev->index); in eth_initialize()
289 dev = dev->next; in eth_initialize()
[all …]
/u-boot/include/power/
A Dregulator.h198 int (*get_value)(struct udevice *dev);
199 int (*set_value)(struct udevice *dev, int uV);
212 int (*get_suspend_value)(struct udevice *dev);
223 int (*get_current)(struct udevice *dev);
235 int (*get_enable)(struct udevice *dev);
265 int (*get_mode)(struct udevice *dev);
285 int regulator_get_value(struct udevice *dev);
329 int regulator_get_current(struct udevice *dev);
346 int regulator_get_enable(struct udevice *dev);
396 int regulator_get_mode(struct udevice *dev);
[all …]
/u-boot/drivers/mmc/
A Dmmc-uclass.c62 return ops->set_ios(dev); in dm_mmc_set_ios()
90 return ops->get_wp(dev); in dm_mmc_get_wp()
104 return ops->get_cd(dev); in dm_mmc_get_cd()
319 struct udevice *dev; in mmc_get_blk_desc() local
321 device_find_first_child(mmc->dev, &dev); in mmc_get_blk_desc()
322 if (!dev) in mmc_get_blk_desc()
331 struct udevice *dev; in mmc_do_preinit() local
351 struct udevice *dev; in print_mmc_devices() local
356 dev; in print_mmc_devices()
404 mmc->priv = dev; in mmc_bind()
[all …]
/u-boot/arch/x86/cpu/ivybridge/
A Dsata.c30 dm_pci_read_config16(dev, 0x92, &reg16); in common_sata_init()
33 dm_pci_write_config16(dev, 0x92, reg16); in common_sata_init()
44 int node = dev_of_offset(dev); in bd82x6x_sata_init()
76 abar = dm_pci_read_bar32(dev, 5); in bd82x6x_sata_init()
110 dm_pci_write_config8(dev, 0x09, 0x80); in bd82x6x_sata_init()
123 common_sata_init(dev, port_map); in bd82x6x_sata_init()
153 common_sata_init(dev, port_map); in bd82x6x_sata_init()
195 int node = dev_of_offset(dev); in bd82x6x_sata_enable()
237 bd82x6x_sata_enable(dev); in bd82x6x_sata_probe()
239 bd82x6x_sata_init(dev, pch); in bd82x6x_sata_probe()
[all …]

Completed in 667 milliseconds

12345678910>>...89