Home
last modified time | relevance | path

Searched full:ud (Results 1 – 25 of 219) sorted by relevance

123456789

/openbmc/openbmc/poky/bitbake/lib/bb/fetch2/
H A Dhg.py26 def supports(self, ud, d): argument
30 return ud.type in ['hg']
39 def urldata_init(self, ud, d): argument
43 if not "module" in ud.parm:
44 raise MissingParameterError('module', ud.url)
46 ud.module = ud.parm["module"]
48 if 'protocol' in ud.parm:
49 ud.proto = ud.parm['protocol']
50 elif not ud.host:
51 ud.proto = 'file'
[all …]
H A Dclearcase.py66 def supports(self, ud, d): argument
70 return ud.type in ['ccrc']
75 def urldata_init(self, ud, d): argument
79 ud.proto = "https"
80 if 'protocol' in ud.parm:
81 ud.proto = ud.parm['protocol']
82 if not ud.proto in ('http', 'https'):
83 raise ParameterError("Invalid protocol type", ud.url)
85 ud.vob = ''
86 if 'vob' in ud.parm:
[all …]
H A Dsvn.py24 def supports(self, ud, d): argument
28 return ud.type in ['svn']
30 def urldata_init(self, ud, d): argument
34 if not "module" in ud.parm:
35 raise MissingParameterError('module', ud.url)
37ud.basecmd = d.getVar("FETCHCMD_svn") or "/usr/bin/env svn --non-interactive --trust-server-cert"
39 ud.module = ud.parm["module"]
41 if not "path_spec" in ud.parm:
42 ud.path_spec = ud.module
44 ud.path_spec = ud.parm["path_spec"]
[all …]
H A Dgit.py144 def supports(self, ud, d): argument
148 return ud.type in ['git']
156 def urldata_init(self, ud, d): argument
161 if 'protocol' in ud.parm:
162 ud.proto = ud.parm['protocol']
163 elif not ud.host:
164 ud.proto = 'file'
166 ud.proto = "git"
167 if ud.host == "github.com" and ud.proto == "git":
170 ud.proto = "https"
[all …]
H A Dcvs.py25 def supports(self, ud, d): argument
29 return ud.type in ['cvs']
31 def urldata_init(self, ud, d): argument
32 if not "module" in ud.parm:
33 raise MissingParameterError("module", ud.url)
34 ud.module = ud.parm["module"]
36 ud.tag = ud.parm.get('tag', "")
39 if 'date' in ud.parm:
40 ud.date = ud.parm['date']
41 elif ud.tag:
[all …]
H A Dosc.py27 def supports(self, ud, d): argument
31 return ud.type in ['osc']
33 def urldata_init(self, ud, d): argument
34 if not "module" in ud.parm:
35 raise MissingParameterError('module', ud.url)
37 ud.module = ud.parm["module"]
41 relpath = self._strip_leading_slashes(ud.path)
42 ud.oscdir = oscdir
43 ud.pkgdir = os.path.join(oscdir, ud.host)
44 ud.moddir = os.path.join(ud.pkgdir, relpath, ud.module)
[all …]
H A Dperforce.py66 def supports(self, ud, d): argument
68 return ud.type in ['p4']
70 def urldata_init(self, ud, d): argument
76 ud.basecmd = d.getVar("FETCHCMD_p4") or "/usr/bin/env p4"
78 ud.dldir = d.getVar("P4DIR") or (d.getVar("DL_DIR") + "/p4")
80 path = ud.url.split('://')[1]
84 (ud.user, ud.pswd) = path.split('@')[0].split(':')
85 ud.path = path.split('@')[1]
87 ud.path = path
89 ud.usingp4config = False
[all …]
H A Dbzr.py24 def supports(self, ud, d): argument
25 return ud.type in ['bzr']
27 def urldata_init(self, ud, d): argument
33 relpath = self._strip_leading_slashes(ud.path)
34 ud.pkgdir = os.path.join(bzrdir, ud.host, relpath)
36 ud.setup_revisions(d)
38 if not ud.revision:
39 ud.revision = self.latest_revision(ud, d)
41ud.localfile = d.expand('bzr_%s_%s_%s.tar.gz' % (ud.host, ud.path.replace('/', '.'), ud.revision))
43 def _buildbzrcommand(self, ud, d, command): argument
[all …]
H A Drepo.py22 def supports(self, ud, d): argument
26 return ud.type in ["repo"]
28 def urldata_init(self, ud, d): argument
36 ud.basecmd = d.getVar("FETCHCMD_repo") or "/usr/bin/env repo"
38 ud.proto = ud.parm.get('protocol', 'git')
39 ud.branch = ud.parm.get('branch', 'master')
40 ud.manifest = ud.parm.get('manifest', 'default.xml')
41 if not ud.manifest.endswith('.xml'):
42 ud.manifest += '.xml'
44ud.localfile = d.expand("repo_%s%s_%s_%s.tar.gz" % (ud.host, ud.path.replace("/", "."), ud.manifes…
[all …]
H A Dnpm.py136 def supports(self, ud, d): argument
138 return ud.type in ["npm"]
140 def urldata_init(self, ud, d): argument
142 ud.package = None
143 ud.version = None
144 ud.registry = None
147 if "package" in ud.parm:
148 ud.package = ud.parm.get("package")
150 if not ud.package:
151 raise MissingParameterError("Parameter 'package' required", ud.url)
[all …]
H A Dgitannex.py16 def supports(self, ud, d): argument
20 return ud.type in ['gitannex']
22 def urldata_init(self, ud, d): argument
23 super(GitANNEX, self).urldata_init(ud, d)
24 if ud.shallow:
25 ud.shallow_extra_refs += ['refs/heads/git-annex', 'refs/heads/synced/*']
27 def uses_annex(self, ud, d, wd): argument
28 for name in ud.names:
30 runfetchcmd("%s rev-list git-annex" % (ud.basecmd), d, quiet=True, workdir=wd)
37 def update_annex(self, ud, d, wd): argument
[all …]
H A Dgomod.py86 def supports(self, ud, d): argument
88 return ud.type == 'gomod'
90 def urldata_init(self, ud, d): argument
103 if 'version' not in ud.parm:
104 raise MissingParameterError('version', ud.url)
106 module = ud.host
107 if ud.path != '/':
108 module += ud.path
109 ud.parm['module'] = module
112 path = escape(module + '/@v/' + ud.parm['version'])
[all …]
H A Dgcp.py34 def supports(self, ud, d): argument
38 return ud.type in ['gs']
43 def urldata_init(self, ud, d): argument
44 if 'downloadfilename' in ud.parm:
45 ud.basename = ud.parm['downloadfilename']
47 ud.basename = os.path.basename(ud.path)
49 ud.localfile = d.expand(urllib.parse.unquote(ud.basename))
55 def download(self, ud, d): argument
61 logger.debug2(f"Trying to download gs://{ud.host}{ud.path} to {ud.localpath}")
65 bb.fetch2.check_network_access(d, "blob.download_to_filename", f"gs://{ud.host}{ud.path}")
[all …]
H A Dnpmsw.py64 def supports(self, ud, d): argument
66 return ud.type in ["npmsw"]
68 def urldata_init(self, ud, d): argument
72 ud.shrinkwrap_file = re.sub(r"^npmsw://", "", ud.url.split(";")[0])
75 ud.dev = bb.utils.to_boolean(ud.parm.get("dev"), False)
78 ud.deps = []
157 raise ParameterError("Invalid git url: %s" % resolved, ud.url)
170 raise ParameterError("Unsupported dependency: %s" % name, ud.url)
173 ud.deps.append({
183 with open(ud.shrinkwrap_file, "r") as f:
[all …]
H A Dgitsm.py31 def supports(self, ud, d): argument
35 return ud.type in ['gitsm']
37 def process_submodules(self, ud, workdir, function, d): argument
65 for name in ud.names:
67 …gitmodules = runfetchcmd("%s show %s:.gitmodules" % (ud.basecmd, ud.revisions[name]), d, quiet=Tru…
74 …module_hash = runfetchcmd("%s ls-tree -z -d %s %s" % (ud.basecmd, ud.revisions[name], md['path']),…
86 revision[m] = ud.revisions[name]
92 newud = copy.copy(ud)
112 …fers to relative ssh reference %s. References may fail if not absolute." % (ud.url, uris[module]))
118 if url.endswith("{}{}".format(ud.host, ud.path)):
[all …]
H A Ds3.py65 def supports(self, ud, d): argument
69 return ud.type in ['s3']
74 def urldata_init(self, ud, d): argument
75 if 'downloadfilename' in ud.parm:
76 ud.basename = ud.parm['downloadfilename']
78 ud.basename = os.path.basename(ud.path)
80 ud.localfile = d.expand(urllib.parse.unquote(ud.basename))
82 ud.basecmd = d.getVar("FETCHCMD_s3") or "/usr/bin/env aws s3"
84 def download(self, ud, d): argument
90 cmd = '%s cp s3://%s%s %s' % (ud.basecmd, ud.host, ud.path, ud.localpath)
[all …]
H A Daz.py25 def supports(self, ud, d): argument
29 return ud.type in ['az']
32 def checkstatus(self, fetch, ud, d, try_again=True): argument
35 ud.url = ud.url.replace('az://','https://').split(';')[0]
38 if az_sas and az_sas not in ud.url:
39 ud.url += az_sas
41 return Wget.checkstatus(self, fetch, ud, d, try_again)
44 def download(self, ud, d, retries=3): argument
52 # ud.localfile either has the downloadfilename or ud.path
53 localpath = os.path.join(d.getVar("DL_DIR"), ud.localfile)
[all …]
H A Dcrate.py29 def supports(self, ud, d): argument
33 return ud.type in ['crate']
38 def urldata_init(self, ud, d): argument
43 if ud.type == 'crate':
44 self._crate_urldata_init(ud, d)
46 super(Crate, self).urldata_init(ud, d)
48 def _crate_urldata_init(self, ud, d): argument
55 parts = ud.url.split('/')
57 raise bb.fetch2.ParameterError("Invalid URL: Must be crate://HOST/NAME/VERSION", ud.url)
72 ud.url = "https://%s/%s/%s/download" % (host, name, version)
[all …]
H A D__init__.py425 def uri_replace(ud, uri_find, uri_replace, replacements, d, mirrortarball=None): argument
426 if not ud.url or not uri_find or not uri_replace:
429 uri_decoded = list(decodeurl(ud.url))
474 elif ud.localpath and ud.method.supports_checksum(ud):
475 basename = os.path.basename(ud.localpath)
488 if result == ud.url:
490 logger.debug2("For url %s returning %s" % (ud.url, result))
556 def verify_checksum(ud, d, precomputed={}, localpath=None, fatal_nochecksum=True): argument
570 if ud.ignore_checksums or not ud.method.supports_checksum(ud):
574 localpath = ud.localpath
[all …]
/openbmc/linux/drivers/usb/usbip/
H A Dusbip_event.c16 struct usbip_device *ud; member
22 static void set_event(struct usbip_device *ud, unsigned long event) in set_event() argument
26 spin_lock_irqsave(&ud->lock, flags); in set_event()
27 ud->event |= event; in set_event()
28 spin_unlock_irqrestore(&ud->lock, flags); in set_event()
31 static void unset_event(struct usbip_device *ud, unsigned long event) in unset_event() argument
35 spin_lock_irqsave(&ud->lock, flags); in unset_event()
36 ud->event &= ~event; in unset_event()
37 spin_unlock_irqrestore(&ud->lock, flags); in unset_event()
43 struct usbip_device *ud = NULL; in get_event() local
[all …]
H A Dstub_dev.c29 spin_lock_irq(&sdev->ud.lock); in usbip_status_show()
30 status = sdev->ud.status; in usbip_status_show()
31 spin_unlock_irq(&sdev->ud.lock); in usbip_status_show()
66 mutex_lock(&sdev->ud.sysfs_lock); in usbip_sockfd_store()
67 spin_lock_irq(&sdev->ud.lock); in usbip_sockfd_store()
69 if (sdev->ud.status != SDEV_ST_AVAILABLE) { in usbip_sockfd_store()
87 spin_unlock_irq(&sdev->ud.lock); in usbip_sockfd_store()
88 tcp_rx = kthread_create(stub_rx_loop, &sdev->ud, "stub_rx"); in usbip_sockfd_store()
93 tcp_tx = kthread_create(stub_tx_loop, &sdev->ud, "stub_tx"); in usbip_sockfd_store()
104 /* lock and update sdev->ud state */ in usbip_sockfd_store()
[all …]
/openbmc/phosphor-logging/test/openpower-pels/
H A Duser_data_test.cpp24 0x55, 0x44, // ID 'UD'
35 UserData ud(stream); in TEST() local
37 EXPECT_TRUE(ud.valid()); in TEST()
38 EXPECT_EQ(ud.header().id, 0x5544); in TEST()
39 EXPECT_EQ(ud.header().size, udSectionData.size()); in TEST()
40 EXPECT_EQ(ud.header().version, 0x01); in TEST()
41 EXPECT_EQ(ud.header().subType, 0x02); in TEST()
42 EXPECT_EQ(ud.header().componentID, 0x0304); in TEST()
44 const auto& data = ud.data(); in TEST()
57 ud.flatten(newStream); in TEST()
[all …]
/openbmc/linux/drivers/dma/ti/
H A Dk3-udma-private.c9 int xudma_navss_psil_pair(struct udma_dev *ud, u32 src_thread, u32 dst_thread) in xudma_navss_psil_pair() argument
11 return navss_psil_pair(ud, src_thread, dst_thread); in xudma_navss_psil_pair()
15 int xudma_navss_psil_unpair(struct udma_dev *ud, u32 src_thread, u32 dst_thread) in xudma_navss_psil_unpair() argument
17 return navss_psil_unpair(ud, src_thread, dst_thread); in xudma_navss_psil_unpair()
25 struct udma_dev *ud; in of_xudma_dev_get() local
44 ud = platform_get_drvdata(pdev); in of_xudma_dev_get()
45 if (!ud) { in of_xudma_dev_get()
51 return ud; in of_xudma_dev_get()
55 struct device *xudma_get_device(struct udma_dev *ud) in xudma_get_device() argument
57 return ud->dev; in xudma_get_device()
[all …]
H A Dk3-udma.c280 struct udma_dev *ud; member
402 static int navss_psil_pair(struct udma_dev *ud, u32 src_thread, u32 dst_thread) in navss_psil_pair() argument
404 struct udma_tisci_rm *tisci_rm = &ud->tisci_rm; in navss_psil_pair()
412 static int navss_psil_unpair(struct udma_dev *ud, u32 src_thread, in navss_psil_unpair() argument
415 struct udma_tisci_rm *tisci_rm = &ud->tisci_rm; in navss_psil_unpair()
470 struct device *dev = uc->ud->dev; in udma_dump_chan_stdata()
557 struct udma_dev *ud = container_of(work, typeof(*ud), purge_work); in udma_purge_desc_work() local
562 spin_lock_irqsave(&ud->lock, flags); in udma_purge_desc_work()
563 list_splice_tail_init(&ud->desc_to_purge, &head); in udma_purge_desc_work()
564 spin_unlock_irqrestore(&ud->lock, flags); in udma_purge_desc_work()
[all …]
/openbmc/u-boot/drivers/dma/
H A Dsandbox-dma-test.c21 struct sandbox_dma_dev *ud; member
50 struct sandbox_dma_dev *ud = dev_get_priv(dma->dev); in sandbox_dma_of_xlate() local
60 uc = &ud->channels[dma->id]; in sandbox_dma_of_xlate()
75 struct sandbox_dma_dev *ud = dev_get_priv(dma->dev); in sandbox_dma_request() local
81 uc = &ud->channels[dma->id]; in sandbox_dma_request()
93 struct sandbox_dma_dev *ud = dev_get_priv(dma->dev); in sandbox_dma_free() local
99 uc = &ud->channels[dma->id]; in sandbox_dma_free()
104 ud->buf_rx = NULL; in sandbox_dma_free()
105 ud->data_len = 0; in sandbox_dma_free()
113 struct sandbox_dma_dev *ud = dev_get_priv(dma->dev); in sandbox_dma_enable() local
[all …]

123456789