Home
last modified time | relevance | path

Searched full:dev (Results 1 – 25 of 8901) sorted by relevance

12345678910>>...357

/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 …]
Dyaffs_summary.c55 static void yaffs_summary_clear(struct yaffs_dev *dev) in yaffs_summary_clear() argument
57 if (!dev->sum_tags) in yaffs_summary_clear()
59 memset(dev->sum_tags, 0, dev->chunks_per_summary * in yaffs_summary_clear()
64 void yaffs_summary_deinit(struct yaffs_dev *dev) in yaffs_summary_deinit() argument
66 kfree(dev->sum_tags); in yaffs_summary_deinit()
67 dev->sum_tags = NULL; in yaffs_summary_deinit()
68 kfree(dev->gc_sum_tags); in yaffs_summary_deinit()
69 dev->gc_sum_tags = NULL; in yaffs_summary_deinit()
70 dev->chunks_per_summary = 0; in yaffs_summary_deinit()
73 int yaffs_summary_init(struct yaffs_dev *dev) in yaffs_summary_init() argument
[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/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 …]
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 …]
Ddevice-remove.c26 * @dev: The device that is to be stripped of its children
29 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()
47 * @dev: The device whose children are to be removed
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()
[all …]
Duclass.c107 struct udevice *dev; in uclass_destroy() local
117 dev = list_first_entry(&uc->dev_head, struct udevice, in uclass_destroy()
119 ret = device_remove(dev, DM_REMOVE_NORMAL); in uclass_destroy()
122 ret = device_unbind(dev); in uclass_destroy()
177 struct udevice *dev; in uclass_find_device() local
187 list_for_each_entry(dev, &uc->dev_head, uclass_node) { in uclass_find_device()
189 *devp = dev; in uclass_find_device()
216 struct udevice *dev = *devp; in uclass_find_next_device() local
219 if (list_is_last(&dev->uclass_node, &dev->uclass->dev_head)) in uclass_find_next_device()
222 *devp = list_entry(dev->uclass_node.next, struct udevice, uclass_node); in uclass_find_next_device()
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_tunnel.sh12 # | tnl dev | | | tnl dev | (overlay network)
27 # tunnel dev <type>11, ex: gre11, IPv4: 10.1.1.200 (overlay)
32 # tunnel dev <type>00, ex: gre00, IPv4: 10.1.1.100 (overlay)
40 # 1) Route lookup shows 10.1.1.100/24 belongs to tnl dev, fwd to tnl dev.
46 # 6) Forward the packet to the overlay tnl dev
59 ip netns exec at_ns0 ip addr add 172.16.1.100/24 dev veth0
60 ip netns exec at_ns0 ip link set dev veth0 up
61 ip link set dev veth1 up mtu 1500
62 ip addr add dev veth1 172.16.1.200/24
69 ip link add dev $DEV_NS type $TYPE seq key 2 \
[all …]
/external/linux-kselftest/tools/testing/selftests/tc-testing/tc-tests/filters/
Dfw.json10 "$TC qdisc add dev $DEV1 ingress"
12 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 65535 fw action ok",
14 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 65535 protocol all fw",
18 "$TC qdisc del dev $DEV1 ingress"
29 "$TC qdisc add dev $DEV1 ingress"
31 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 65536 fw action ok",
33 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 65536 protocol all fw",
37 "$TC qdisc del dev $DEV1 ingress"
48 "$TC qdisc add dev $DEV1 ingress"
50 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action ok",
[all …]
/external/u-boot/drivers/net/
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 …]
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 …]
/external/libdrm/tests/planetest/
Ddev.c15 #include "dev.h"
21 printf(" -c, --card Index of dri card (ie: /dev/dri/cardN)\n"); in show_usage()
72 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
114 snprintf(card_path, sizeof(card_path), "/dev/dri/card%d", card); in create_sp_dev()
122 dev = calloc(1, sizeof(*dev)); in create_sp_dev()
123 if (!dev) { in create_sp_dev()
124 printf("failed to allocate dev\n"); in create_sp_dev()
128 dev->fd = fd; in create_sp_dev()
[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/adhd/cras/src/server/
Dcras_iodev_list.c37 * dev - The device.
41 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
[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/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 …]
/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 …]
/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
33 * @dev: device to check
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()
50 * @dev: device to read DT property from
55 int dev_read_u32(struct udevice *dev, const char *propname, u32 *outp);
[all …]
/external/linux-kselftest/tools/testing/selftests/net/forwarding/
Drouter_multipath.sh11 ip link set dev $h1 master vrf-h1
13 ip link set dev vrf-h1 up
14 ip link set dev $h1 up
16 ip address add 192.0.2.2/24 dev $h1
17 ip address add 2001:db8:1::2/64 dev $h1
28 ip address del 2001:db8:1::2/64 dev $h1
29 ip address del 192.0.2.2/24 dev $h1
31 ip link set dev $h1 down
38 ip link set dev $h2 master vrf-h2
40 ip link set dev vrf-h2 up
[all …]
/external/vboot_reference/tests/
Drun_cgpt_tests.sh25 "$@" 2>/dev/null
37 DEV=fake_dev.bin
38 rm -f ${DEV}
39 dd if=/dev/zero of=${DEV} conv=notrunc bs=512 count=${NUM_SECTORS} 2>/dev/null
79 $CGPT create $MTD ${DEV}
82 -l "${DATA_LABEL}" ${DEV}
84 -l "${KERN_LABEL}" ${DEV}
86 -l "${ROOTFS_LABEL}" ${DEV}
88 -l "${ESP_LABEL}" ${DEV}
90 -l "${FUTURE_LABEL}" ${DEV}
[all …]
/external/snakeyaml/src/changes/
Dchanges.xml10 <action dev="asomov" type="update" issue="332">
13 <action dev="asomov" type="update">
16 <action dev="asomov" type="update">
21 <action dev="maslovalex" type="fix" issue="318" due-to="Rog Sigal">
24 <action dev="asomov" type="update" issue="329">
27 <action dev="asomov" type="update" issue="326">
30 <action dev="maslovalex" type="update" issue="310">
34 <action dev="asomov" type="update" issue="320">
38 <action dev="asomov" type="fix" issue="306">
41 <action dev="asomov" type="add">
[all …]

12345678910>>...357