Home
last modified time | relevance | path

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

12345678910>>...300

/external/u-boot/fs/yaffs2/
Dyaffs_checkptrw.c17 static int yaffs2_checkpt_space_ok(struct yaffs_dev *dev) in yaffs2_checkpt_space_ok() argument
19 int blocks_avail = dev->n_erased_blocks - dev->param.n_reserved_blocks; in yaffs2_checkpt_space_ok()
27 static int yaffs_checkpt_erase(struct yaffs_dev *dev) in yaffs_checkpt_erase() argument
31 if (!dev->param.erase_fn) in yaffs_checkpt_erase()
35 dev->internal_start_block, dev->internal_end_block); in yaffs_checkpt_erase()
37 for (i = dev->internal_start_block; i <= dev->internal_end_block; i++) { in yaffs_checkpt_erase()
38 struct yaffs_block_info *bi = yaffs_get_block_info(dev, i); in yaffs_checkpt_erase()
43 dev->n_erasures++; in yaffs_checkpt_erase()
45 if (dev->param. in yaffs_checkpt_erase()
46 erase_fn(dev, in yaffs_checkpt_erase()
[all …]
Dyaffs_guts.c47 void yaffs_addr_to_chunk(struct yaffs_dev *dev, loff_t addr, in yaffs_addr_to_chunk() argument
53 chunk = (u32) (addr >> dev->chunk_shift); in yaffs_addr_to_chunk()
55 if (dev->chunk_div == 1) { in yaffs_addr_to_chunk()
57 offset = (u32) (addr & dev->chunk_mask); in yaffs_addr_to_chunk()
63 chunk /= dev->chunk_div; in yaffs_addr_to_chunk()
65 chunk_base = ((loff_t) chunk) * dev->data_bytes_per_chunk; in yaffs_addr_to_chunk()
123 static int yaffs_init_tmp_buffers(struct yaffs_dev *dev) in yaffs_init_tmp_buffers() argument
128 memset(dev->temp_buffer, 0, sizeof(dev->temp_buffer)); in yaffs_init_tmp_buffers()
131 dev->temp_buffer[i].in_use = 0; in yaffs_init_tmp_buffers()
132 buf = kmalloc(dev->param.total_bytes_per_chunk, GFP_NOFS); in yaffs_init_tmp_buffers()
[all …]
Dyaffs_yaffs2.c42 void yaffs_calc_oldest_dirty_seq(struct yaffs_dev *dev) in yaffs_calc_oldest_dirty_seq() argument
49 if (!dev->param.is_yaffs2) in yaffs_calc_oldest_dirty_seq()
53 seq = dev->seq_number + 1; in yaffs_calc_oldest_dirty_seq()
54 b = dev->block_info; in yaffs_calc_oldest_dirty_seq()
55 for (i = dev->internal_start_block; i <= dev->internal_end_block; i++) { in yaffs_calc_oldest_dirty_seq()
58 dev->param.chunks_per_block && in yaffs_calc_oldest_dirty_seq()
67 dev->oldest_dirty_seq = seq; in yaffs_calc_oldest_dirty_seq()
68 dev->oldest_dirty_block = block_no; in yaffs_calc_oldest_dirty_seq()
72 void yaffs2_find_oldest_dirty_seq(struct yaffs_dev *dev) in yaffs2_find_oldest_dirty_seq() argument
74 if (!dev->param.is_yaffs2) in yaffs2_find_oldest_dirty_seq()
[all …]
/external/rootdev/
Drootdev_test.sh83 out=$("${ROOTDEV}" --block $WORKDIR 2>/dev/null)
91 local dev=$2
93 mkdir -p $dev
96 echo "10:0" > $block/sda/dev
97 echo "10:1" > $block/sda/sda1/dev
98 echo "10:2" > $block/sda/sda2/dev
99 mknod $dev/sda1 b 10 1
100 mknod $dev/sda2 b 10 2
101 mknod $dev/sda b 10 0
106 local dev=$WORKDIR/dev
[all …]
/external/u-boot/drivers/core/
Ddevice.c37 struct udevice *dev; in device_bind_common() local
52 dev = calloc(1, sizeof(struct udevice)); in device_bind_common()
53 if (!dev) in device_bind_common()
56 INIT_LIST_HEAD(&dev->sibling_node); in device_bind_common()
57 INIT_LIST_HEAD(&dev->child_head); in device_bind_common()
58 INIT_LIST_HEAD(&dev->uclass_node); in device_bind_common()
60 INIT_LIST_HEAD(&dev->devres_head); in device_bind_common()
62 dev->platdata = platdata; in device_bind_common()
63 dev->driver_data = driver_data; in device_bind_common()
64 dev->name = name; in device_bind_common()
[all …]
Ddevice-remove.c29 static int device_chld_unbind(struct udevice *dev) in device_chld_unbind() argument
34 assert(dev); in device_chld_unbind()
36 list_for_each_entry_safe(pos, n, &dev->child_head, sibling_node) { in device_chld_unbind()
51 static int device_chld_remove(struct udevice *dev, uint flags) in device_chld_remove() argument
56 assert(dev); in device_chld_remove()
58 list_for_each_entry_safe(pos, n, &dev->child_head, sibling_node) { in device_chld_remove()
67 int device_unbind(struct udevice *dev) in device_unbind() argument
72 if (!dev) in device_unbind()
75 if (dev->flags & DM_FLAG_ACTIVATED) in device_unbind()
78 if (!(dev->flags & DM_FLAG_BOUND)) in device_unbind()
[all …]
Dread.c14 int dev_read_u32(struct udevice *dev, const char *propname, u32 *outp) in dev_read_u32() argument
16 return ofnode_read_u32(dev_ofnode(dev), propname, outp); in dev_read_u32()
19 int dev_read_u32_default(struct udevice *dev, const char *propname, int def) in dev_read_u32_default() argument
21 return ofnode_read_u32_default(dev_ofnode(dev), propname, def); in dev_read_u32_default()
24 const char *dev_read_string(struct udevice *dev, const char *propname) in dev_read_string() argument
26 return ofnode_read_string(dev_ofnode(dev), propname); in dev_read_string()
29 bool dev_read_bool(struct udevice *dev, const char *propname) in dev_read_bool() argument
31 return ofnode_read_bool(dev_ofnode(dev), propname); in dev_read_bool()
34 ofnode dev_read_subnode(struct udevice *dev, const char *subnode_name) in dev_read_subnode() argument
36 return ofnode_find_subnode(dev_ofnode(dev), subnode_name); in dev_read_subnode()
[all …]
/external/u-boot/include/dm/
Dread.h19 static inline const struct device_node *dev_np(struct udevice *dev) in dev_np() argument
21 return ofnode_to_np(dev->node); in dev_np()
24 static inline const struct device_node *dev_np(struct udevice *dev) in dev_np() argument
36 static inline ofnode dev_ofnode(struct udevice *dev) in dev_ofnode() argument
38 return dev->node; in dev_ofnode()
41 static inline bool dev_of_valid(struct udevice *dev) in dev_of_valid() argument
43 return ofnode_valid(dev_ofnode(dev)); in dev_of_valid()
55 int dev_read_u32(struct udevice *dev, const char *propname, u32 *outp);
65 int dev_read_u32_default(struct udevice *dev, const char *propname, int def);
74 const char *dev_read_string(struct udevice *dev, const char *propname);
[all …]
/external/u-boot/drivers/net/
Dlan91c96.c115 static int smc_get_ethaddr(bd_t *bd, struct eth_device *dev);
116 static int get_rom_mac(struct eth_device *dev, unsigned char *v_rom_mac);
142 void dump_memory_info(struct eth_device *dev) in dump_memory_info() argument
147 old_bank = SMC_inw(dev, LAN91C96_BANK_SELECT) & 0xF; in dump_memory_info()
149 SMC_SELECT_BANK(dev, 0); in dump_memory_info()
150 mem_info = SMC_inw(dev, LAN91C96_MIR); in dump_memory_info()
153 SMC_SELECT_BANK(dev, old_bank); in dump_memory_info()
163 static int poll4int (struct eth_device *dev, byte mask, int timeout) in poll4int() argument
167 word old_bank = SMC_inw(dev, LAN91C96_BANK_SELECT); in poll4int()
170 SMC_SELECT_BANK(dev, 2); in poll4int()
[all …]
Dks8851_mll.c105 static u8 ks_rdreg8(struct eth_device *dev, u16 offset) in ks_rdreg8() argument
110 writew(offset | (BE0 << shift_bit), dev->iobase + 2); in ks_rdreg8()
112 return (u8)(readw(dev->iobase) >> shift_data); in ks_rdreg8()
115 static u16 ks_rdreg16(struct eth_device *dev, u16 offset) in ks_rdreg16() argument
117 writew(offset | ((BE1 | BE0) << (offset & 0x02)), dev->iobase + 2); in ks_rdreg16()
119 return readw(dev->iobase); in ks_rdreg16()
122 static void ks_wrreg8(struct eth_device *dev, u16 offset, u8 val) in ks_wrreg8() argument
127 writew(offset | (BE0 << shift_bit), dev->iobase + 2); in ks_wrreg8()
128 writew(value_write, dev->iobase); in ks_wrreg8()
131 static void ks_wrreg16(struct eth_device *dev, u16 offset, u16 val) in ks_wrreg16() argument
[all …]
Dax88180.c52 static void ax88180_rx_handler (struct eth_device *dev);
53 static int ax88180_phy_initial (struct eth_device *dev);
54 static void ax88180_media_config (struct eth_device *dev);
55 static unsigned long get_CicadaPHY_media_mode (struct eth_device *dev);
56 static unsigned long get_MarvellPHY_media_mode (struct eth_device *dev);
57 static unsigned short ax88180_mdio_read (struct eth_device *dev,
59 static void ax88180_mdio_write (struct eth_device *dev,
67 static int ax88180_mdio_check_complete (struct eth_device *dev) in ax88180_mdio_check_complete() argument
74 tmpval = INW (dev, MDIOCTRL); in ax88180_mdio_check_complete()
83 ax88180_mdio_read (struct eth_device *dev, unsigned long regaddr) in ax88180_mdio_read() argument
[all …]
Dsmc911x.c16 u32 pkt_data_pull(struct eth_device *dev, u32 addr) \
18 void pkt_data_push(struct eth_device *dev, u32 addr, u32 val) \
21 static void smc911x_handle_mac_address(struct eth_device *dev) in smc911x_handle_mac_address() argument
24 uchar *m = dev->enetaddr; in smc911x_handle_mac_address()
28 smc911x_set_mac_csr(dev, ADDRL, addrl); in smc911x_handle_mac_address()
29 smc911x_set_mac_csr(dev, ADDRH, addrh); in smc911x_handle_mac_address()
34 static int smc911x_eth_phy_read(struct eth_device *dev, in smc911x_eth_phy_read() argument
37 while (smc911x_get_mac_csr(dev, MII_ACC) & MII_ACC_MII_BUSY) in smc911x_eth_phy_read()
40 smc911x_set_mac_csr(dev, MII_ACC, phy << 11 | reg << 6 | in smc911x_eth_phy_read()
43 while (smc911x_get_mac_csr(dev, MII_ACC) & MII_ACC_MII_BUSY) in smc911x_eth_phy_read()
[all …]
Dsmc91111.c145 static void smc_phy_configure(struct eth_device *dev);
169 static inline word SMC_inw(struct eth_device *dev, dword offset) in SMC_inw() argument
172 v = *((volatile word*)(dev->iobase + offset)); in SMC_inw()
177 static inline void SMC_outw(struct eth_device *dev, word value, dword offset) in SMC_outw() argument
179 *((volatile word*)(dev->iobase + offset)) = value; in SMC_outw()
183 static inline byte SMC_inb(struct eth_device *dev, dword offset) in SMC_inb() argument
187 _w = SMC_inw(dev, offset & ~((dword)1)); in SMC_inb()
191 static inline void SMC_outb(struct eth_device *dev, byte value, dword offset) in SMC_outb() argument
195 _w = SMC_inw(dev, offset & ~((dword)1)); in SMC_outb()
197 *((volatile word*)(dev->iobase + (offset & ~((dword)1)))) = in SMC_outb()
[all …]
Dcs8900.c50 static u16 get_reg_init_bus(struct eth_device *dev, int regno) in get_reg_init_bus() argument
53 struct cs8900_priv *priv = (struct cs8900_priv *)(dev->priv); in get_reg_init_bus()
54 uint8_t volatile * const iob = (uint8_t volatile * const)dev->iobase; in get_reg_init_bus()
67 static u16 get_reg(struct eth_device *dev, int regno) in get_reg() argument
69 struct cs8900_priv *priv = (struct cs8900_priv *)(dev->priv); in get_reg()
75 static void put_reg(struct eth_device *dev, int regno, u16 val) in put_reg() argument
77 struct cs8900_priv *priv = (struct cs8900_priv *)(dev->priv); in put_reg()
82 static void cs8900_reset(struct eth_device *dev) in cs8900_reset() argument
88 put_reg(dev, PP_SelfCTL, get_reg(dev, PP_SelfCTL) | PP_SelfCTL_Reset); in cs8900_reset()
95 while ((((us = get_reg_init_bus(dev, PP_SelfSTAT)) & in cs8900_reset()
[all …]
Dnatsemi.c228 static void write_eeprom(struct eth_device *dev, long addr, int location,
231 static int read_eeprom(struct eth_device *dev, long addr, int location);
232 static int mdio_read(struct eth_device *dev, int phy_id, int location);
233 static int natsemi_init(struct eth_device *dev, bd_t * bis);
234 static void natsemi_reset(struct eth_device *dev);
235 static void natsemi_init_rxfilter(struct eth_device *dev);
236 static void natsemi_init_txd(struct eth_device *dev);
237 static void natsemi_init_rxd(struct eth_device *dev);
238 static void natsemi_set_rx_mode(struct eth_device *dev);
239 static void natsemi_check_duplex(struct eth_device *dev);
[all …]
Dns8382x.c251 static int mdio_read(struct eth_device *dev, int phy_id, int addr);
252 static void mdio_write(struct eth_device *dev, int phy_id, int addr, int value);
253 static void mdio_sync(struct eth_device *dev, u32 offset);
254 static int ns8382x_init(struct eth_device *dev, bd_t * bis);
255 static void ns8382x_reset(struct eth_device *dev);
256 static void ns8382x_init_rxfilter(struct eth_device *dev);
257 static void ns8382x_init_txd(struct eth_device *dev);
258 static void ns8382x_init_rxd(struct eth_device *dev);
259 static void ns8382x_set_rx_mode(struct eth_device *dev);
260 static void ns8382x_check_duplex(struct eth_device *dev);
[all …]
/external/adhd/scripts/audio_thread_log_viewer/
Dlog.test3 Output dev: bdw-rt5677: :1,0
8 496098.524565708 DEV_SLEEP_TIME dev:8 wake:000496098.545892346
11 496098.545994178 ODEV_NO_STREAMS dev:8 hw_level:992 write:1056
12 496098.546000808 SET_DEV_WAKE dev:8 hw_level:2048 sleep:1024
13 496098.546001355 DEV_SLEEP_TIME dev:8 wake:000496098.567328258
16 496098.567615773 ODEV_NO_STREAMS dev:8 hw_level:1040 write:1008
17 496098.567622518 SET_DEV_WAKE dev:8 hw_level:2048 sleep:1024
18 496098.567623059 DEV_SLEEP_TIME dev:8 wake:000496098.588949912
21 496098.589240896 ODEV_NO_STREAMS dev:8 hw_level:992 write:1056
22 496098.589247582 SET_DEV_WAKE dev:8 hw_level:2048 sleep:1024
[all …]
/external/u-boot/common/
Dusb.c59 struct usb_device *dev; in usb_init() local
96 ret = usb_alloc_new_device(ctrl, &dev); in usb_init()
104 ret = usb_new_device(dev); in usb_init()
106 usb_free_device(dev->controller); in usb_init()
197 int usb_submit_int_msg(struct usb_device *dev, unsigned long pipe, in usb_submit_int_msg() argument
200 return submit_int_msg(dev, pipe, buffer, transfer_len, interval); in usb_submit_int_msg()
212 int usb_control_msg(struct usb_device *dev, unsigned int pipe, in usb_control_msg() argument
234 dev->status = USB_ST_NOT_PROC; /*not yet processed */ in usb_control_msg()
236 err = submit_control_msg(dev, pipe, data, size, setup_packet); in usb_control_msg()
248 if (!((volatile unsigned long)dev->status & USB_ST_NOT_PROC)) in usb_control_msg()
[all …]
/external/wpa_supplicant_8/src/wps/
Dwps_dev_attr.c16 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_manufacturer() argument
21 len = dev->manufacturer ? os_strlen(dev->manufacturer) : 0; in wps_build_manufacturer()
35 wpabuf_put_data(msg, dev->manufacturer, len); in wps_build_manufacturer()
40 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_name() argument
45 len = dev->model_name ? os_strlen(dev->model_name) : 0; in wps_build_model_name()
59 wpabuf_put_data(msg, dev->model_name, len); in wps_build_model_name()
64 int wps_build_model_number(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_number() argument
69 len = dev->model_number ? os_strlen(dev->model_number) : 0; in wps_build_model_number()
83 wpabuf_put_data(msg, dev->model_number, len); in wps_build_model_number()
88 int wps_build_serial_number(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_serial_number() argument
[all …]
/external/u-boot/test/dm/
Dbus.c29 static int testbus_drv_probe(struct udevice *dev) in testbus_drv_probe() argument
31 return dm_scan_fdt_dev(dev); in testbus_drv_probe()
34 static int testbus_child_post_bind(struct udevice *dev) in testbus_child_post_bind() argument
38 plat = dev_get_parent_platdata(dev); in testbus_child_post_bind()
45 static int testbus_child_pre_probe(struct udevice *dev) in testbus_child_pre_probe() argument
47 struct dm_test_parent_data *parent_data = dev_get_parent_priv(dev); in testbus_child_pre_probe()
54 static int testbus_child_pre_probe_uclass(struct udevice *dev) in testbus_child_pre_probe_uclass() argument
56 struct dm_test_priv *priv = dev_get_priv(dev); in testbus_child_pre_probe_uclass()
63 static int testbus_child_post_remove(struct udevice *dev) in testbus_child_post_remove() argument
65 struct dm_test_parent_data *parent_data = dev_get_parent_priv(dev); in testbus_child_post_remove()
[all …]
Dtest-fdt.c21 static int testfdt_drv_ping(struct udevice *dev, int pingval, int *pingret) in testfdt_drv_ping() argument
23 const struct dm_test_pdata *pdata = dev->platdata; in testfdt_drv_ping()
24 struct dm_test_priv *priv = dev_get_priv(dev); in testfdt_drv_ping()
36 static int testfdt_ofdata_to_platdata(struct udevice *dev) in testfdt_ofdata_to_platdata() argument
38 struct dm_test_pdata *pdata = dev_get_platdata(dev); in testfdt_ofdata_to_platdata()
40 pdata->ping_add = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in testfdt_ofdata_to_platdata()
42 pdata->base = fdtdec_get_addr(gd->fdt_blob, dev_of_offset(dev), in testfdt_ofdata_to_platdata()
48 static int testfdt_drv_probe(struct udevice *dev) in testfdt_drv_probe() argument
50 struct dm_test_priv *priv = dev_get_priv(dev); in testfdt_drv_probe()
86 int testfdt_ping(struct udevice *dev, int pingval, int *pingret) in testfdt_ping() argument
[all …]
/external/adhd/cras/src/server/
Dcras_iodev_list.c41 struct cras_iodev *dev; member
98 struct cras_iodev *dev; in find_dev() local
100 DL_FOREACH(devs[CRAS_STREAM_OUTPUT].iodevs, dev) in find_dev()
101 if (dev->info.idx == dev_index) in find_dev()
102 return dev; in find_dev()
104 DL_FOREACH(devs[CRAS_STREAM_INPUT].iodevs, dev) in find_dev()
105 if (dev->info.idx == dev_index) in find_dev()
106 return dev; in find_dev()
113 struct cras_iodev *dev; in find_node() local
120 dev = find_dev(dev_index); in find_node()
[all …]
/external/libdrm/tests/planetest/
Ddev.c72 static uint32_t get_prop_id(struct sp_dev *dev, in get_prop_id() argument
79 p = drmModeGetProperty(dev->fd, props->props[i]); in get_prop_id()
108 struct sp_dev *dev; in create_sp_dev() local
122 dev = calloc(1, sizeof(*dev)); in create_sp_dev()
123 if (!dev) { in create_sp_dev()
128 dev->fd = fd; in create_sp_dev()
130 ret = drmSetClientCap(dev->fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1); in create_sp_dev()
136 ret = drmSetClientCap(dev->fd, DRM_CLIENT_CAP_ATOMIC, 1); in create_sp_dev()
142 r = drmModeGetResources(dev->fd); in create_sp_dev()
148 dev->num_connectors = r->count_connectors; in create_sp_dev()
[all …]
/external/libdrm/amdgpu/
Damdgpu_gpu_info.c33 int amdgpu_query_info(amdgpu_device_handle dev, unsigned info_id, in amdgpu_query_info() argument
43 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_info()
47 int amdgpu_query_crtc_from_id(amdgpu_device_handle dev, unsigned id, in amdgpu_query_crtc_from_id() argument
58 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_crtc_from_id()
62 int amdgpu_read_mm_registers(amdgpu_device_handle dev, unsigned dword_offset, in amdgpu_read_mm_registers() argument
77 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_read_mm_registers()
81 int amdgpu_query_hw_ip_count(amdgpu_device_handle dev, unsigned type, in amdgpu_query_hw_ip_count() argument
92 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_hw_ip_count()
96 int amdgpu_query_hw_ip_info(amdgpu_device_handle dev, unsigned type, in amdgpu_query_hw_ip_info() argument
109 return drmCommandWrite(dev->fd, DRM_AMDGPU_INFO, &request, in amdgpu_query_hw_ip_info()
[all …]
/external/u-boot/drivers/power/regulator/
Dregulator-uclass.c14 int regulator_mode(struct udevice *dev, struct dm_regulator_mode **modep) in regulator_mode() argument
20 uc_pdata = dev_get_uclass_platdata(dev); in regulator_mode()
28 int regulator_get_value(struct udevice *dev) in regulator_get_value() argument
30 const struct dm_regulator_ops *ops = dev_get_driver_ops(dev); in regulator_get_value()
35 return ops->get_value(dev); in regulator_get_value()
38 int regulator_set_value(struct udevice *dev, int uV) in regulator_set_value() argument
40 const struct dm_regulator_ops *ops = dev_get_driver_ops(dev); in regulator_set_value()
43 uc_pdata = dev_get_uclass_platdata(dev); in regulator_set_value()
52 return ops->set_value(dev, uV); in regulator_set_value()
59 int regulator_set_value_force(struct udevice *dev, int uV) in regulator_set_value_force() argument
[all …]

12345678910>>...300