Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 93) sorted by relevance

1234

/f-stack/freebsd/contrib/openzfs/contrib/pyzfs/libzfs_core/test/
H A Dtest_nvlist.py45 self.assertEqual(
52 self.assertEqual(
58 self.assertEqual(
63 def test_empty(self): argument
87 def test_string_value(self): argument
97 def test_boolean_values(self): argument
122 def test_uint64_value(self): argument
342 def test_nested_dict(self): argument
367 def test_string_array(self): argument
382 def test_uint64_array(self): argument
[all …]
H A Dtest_libzfs_core.py305 def setUp(self): argument
308 def tearDown(self): argument
313 self.assertTrue(
4126 self._root = _Filesystem(self._pool_name)
4178 def reset(self): argument
4293 self.reset()
4298 def reset(self): argument
4306 fsname = self._name + b'/fs' + str(self._fs_id).encode()
4325 return self._makeSnapName(self._snap_id)
4332 return self._makeBookmarkName(self._bmark_id)
[all …]
/f-stack/dpdk/drivers/net/atlantic/hw_atl/
H A Dhw_atl_b0.c20 err = hw_atl_utils_soft_reset(self); in hw_atl_b0_hw_reset()
24 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl_b0_hw_reset()
89 return aq_hw_err_from_flags(self); in hw_atl_b0_hw_qos_set()
142 err = aq_hw_err_from_flags(self); in hw_atl_b0_hw_rss_hash_set()
225 hw_atl_rpo_lro_en_set(self, in hw_atl_b0_hw_offload_set()
347 self->aq_fw_ops->set_link_speed(self, aq_nic_cfg->link_speed_msk); in hw_atl_b0_hw_init()
348 self->aq_fw_ops->set_state(self, MPI_INIT); in hw_atl_b0_hw_init()
350 hw_atl_b0_hw_qos_set(self); in hw_atl_b0_hw_init()
366 self->aq_link_status.mbps = 0; in hw_atl_b0_hw_init()
367 self->aq_fw_ops->update_stats(self); in hw_atl_b0_hw_init()
[all …]
H A Dhw_atl_utils.c67 hw_atl_utils_get_fw_version(self, &self->fw_ver_actual); in hw_atl_utils_initfw()
80 self->fw_ver_actual); in hw_atl_utils_initfw()
83 self->aq_fw_ops = *fw_ops; in hw_atl_utils_initfw()
84 err = self->aq_fw_ops->init(self); in hw_atl_utils_initfw()
267 if (self->rbl_enabled) in hw_atl_utils_soft_reset()
430 err = hw_atl_utils_fw_upload_dwords(self, self->rpc_addr, in hw_atl_utils_fw_rpc_call()
455 self->rpc_tid = sw.tid; in hw_atl_utils_fw_rpc_wait()
477 &self->rpc, in hw_atl_utils_fw_rpc_wait()
485 *rpc = &self->rpc; in hw_atl_utils_fw_rpc_wait()
523 self->mbox_addr, in hw_atl_utils_mpi_read_stats()
[all …]
H A Dhw_atl_utils_fw2x.c71 AQ_HW_WAIT_FOR(0U != (self->rpc_addr = in aq_fw2x_init()
78 self->caps_lo = mbox.info.caps_lo; in aq_fw2x_init()
313 self->mbox_addr + in aq_fw2x_get_temp()
335 self->mbox_addr + in aq_fw2x_get_cable_len()
479 self->mbox_addr + in aq_fw2x_get_eee_rate()
547 err = hw_atl_utils_fw_upload_dwords(self, self->rpc_addr, in aq_fw2x_get_eeprom()
569 err = hw_atl_utils_fw_downld_dwords(self, self->rpc_addr + sizeof(u32), in aq_fw2x_get_eeprom()
632 err = hw_atl_utils_fw_upload_dwords(self, self->rpc_addr, in aq_fw2x_set_eeprom()
684 err = hw_atl_utils_fw_downld_dwords(self, self->rpc_addr + sizeof(u32), in aq_fw2x_set_eeprom()
718 err = hw_atl_utils_fw_upload_dwords(self, self->rpc_addr, in aq_fw2x_send_macsec_request()
[all …]
H A Dhw_atl_b0.h11 int hw_atl_b0_hw_reset(struct aq_hw_s *self);
12 int hw_atl_b0_hw_init(struct aq_hw_s *self, u8 *mac_addr);
14 int hw_atl_b0_set_fc(struct aq_hw_s *self, u32 fc, u32 tc);
21 int hw_atl_b0_hw_start(struct aq_hw_s *self);
27 int hw_atl_b0_hw_ring_tx_stop(struct aq_hw_s *self, int index);
28 int hw_atl_b0_hw_ring_rx_stop(struct aq_hw_s *self, int index);
33 int hw_atl_b0_hw_rss_hash_set(struct aq_hw_s *self,
35 int hw_atl_b0_hw_rss_set(struct aq_hw_s *self,
38 int hw_atl_b0_hw_irq_enable(struct aq_hw_s *self, u64 mask);
39 int hw_atl_b0_hw_irq_disable(struct aq_hw_s *self, u64 mask);
[all …]
H A Dhw_atl_utils.h12 #define HW_ATL_FLUSH() { (void)aq_hw_read_reg(self, 0x10); }
505 self->chip_features)
604 int hw_atl_utils_soft_reset(struct aq_hw_s *self);
608 int hw_atl_utils_mpi_read_mbox(struct aq_hw_s *self,
611 void hw_atl_utils_mpi_read_stats(struct aq_hw_s *self,
614 void hw_atl_utils_mpi_set(struct aq_hw_s *self,
624 int hw_atl_utils_hw_get_regs(struct aq_hw_s *self,
627 int hw_atl_utils_hw_set_power(struct aq_hw_s *self,
630 int hw_atl_utils_hw_deinit(struct aq_hw_s *self);
634 int hw_atl_utils_update_stats(struct aq_hw_s *self);
[all …]
/f-stack/dpdk/examples/ipsec-secgw/test/
H A Dtun_null_header_reconstruct.py118 def setUp(self): argument
119 self.px = pkttest.PacketXfer()
179 def test_outb_ipv4v4_ecn(self): argument
201 def test_outb_ipv6v6_ecn(self): argument
222 def test_outb_ipv4v6_ecn(self): argument
241 def test_outb_ipv6v4_ecn(self): argument
374 def test_outb_ipv4v4_dscp(self): argument
435 def test_inb_ipv4v4_dscp(self): argument
446 def test_inb_ipv6v6_dscp(self): argument
457 def test_inb_ipv4v6_dscp(self): argument
[all …]
H A Dpkttest.py50 def __init__(self, ifname): argument
51 self.name = ifname
56 self.s.bind((self.name, 0, socket.PACKET_OTHERHOST))
62 def __del__(self): argument
63 self.s.close()
67 self.send_packet(e/pkt)
73 self.s.send(bytedata)
75 def recv_packet(self): argument
78 def recv_bytes(self): argument
81 def get_mac(self): argument
[all …]
H A Dtrs_ipv6opts.py59 def setUp(self): argument
60 self.px = pkttest.PacketXfer()
64 def test_outb_ipv6_noopt(self): argument
80 def test_outb_ipv6_opt(self): argument
119 def test_inb_ipv6_noopt(self): argument
123 e = self.inb_sa.encrypt(pkt)
126 resp = self.px.xfer_protected(e)
134 def test_inb_ipv6_opt(self): argument
149 e = self.inb_sa.encrypt(pkt)
163 def test_inb_ipv6_frag(self): argument
[all …]
/f-stack/freebsd/contrib/openzfs/contrib/pyzfs/libzfs_core/
H A Dexceptions.py42 def __str__(self): argument
45 self.errno, self.message, self.name)
47 return "[Errno %d] %s" % (self.errno, self.message)
49 def __repr__(self): argument
51 self.__class__.__name__, self.errno, self.message)
59 self.name = name
79 def __str__(self): argument
81 ZFSError.__str__(self), len(self.errors), self.suppressed_count)
83 def __repr__(self): argument
85 self.__class__.__name__, self.errno, self.message, self.errors,
[all …]
/f-stack/dpdk/usertools/
H A Ddpdk-telemetry-client.py20 def __init__(self): argument
23 self.client_fd = None
25 def __del__(self): argument
36 self.socket = Socket()
37 self.file_path = None
38 self.choice = None
39 self.unregistered = 0
41 def __del__(self): argument
55 self.socket.recv_fd.bind(self.file_path)
64 self.socket.client_fd = self.socket.recv_fd.accept()[0]
[all …]
H A Ddpdk-pmdinfo.py43 self.name = vendorStr.replace("%s " % self.ID, "").rstrip()
58 def report(self): argument
59 print(self.ID, self.name)
81 self.name = s.replace("%s " % self.ID, "")
84 def report(self): argument
85 print("\t%s\t%s" % (self.ID, self.name))
129 def report(self): argument
130 print("\t\t%s\t%s\t%s" % (self.vendorID, self.deviceID, self.name))
152 self.parse()
187 def parse(self): argument
[all …]
/f-stack/freebsd/contrib/openzfs/tests/test-runner/bin/
H A Dtest-runner.py.in182 ''' % (self.pathname, self.identifier, self.outputdir, self.timeout, self.user)
270 privcmd = self.update_cmd_privs(self.pathname, self.user)
296 self.result.done(proc, self.killed, self.reran)
401 ''' % (self.pathname, self.identifier, self.outputdir, self.timeout, self.user,
410 files = [self.pre, self.pathname, self.post, self.failsafe]
411 users = [self.pre_user, self.user, self.post_user, self.failsafe_user]
494 ''' % (self.pathname, self.identifier, self.outputdir, self.tests,
495 self.timeout, self.user, self.pre, pre_user, self.post, post_user,
507 self.pre = os.path.join(self.pathname, self.pre)
513 auxfiles = [self.pre, self.post, self.failsafe]
[all …]
/f-stack/freebsd/contrib/libsodium/packaging/dotnet-core/
H A Dprepare.py65 self.tempfile = os.path.join(self.tempdir, os.path.normpath(self.itemfile))
69 f.write('{0}: {1}\n'.format(self.packfile, self.tempfile))
73 f.write('{0}: {1}\n'.format(self.tempfile, self.cachefile))
77 os.path.relpath(self.cachefile, self.tempdir),
89 self.tempfile = os.path.join(self.tempdir, os.path.normpath(self.itemfile))
93 f.write('{0}: {1}\n'.format(self.packfile, self.tempfile))
97 f.write('{0}: {1}\n'.format(self.tempfile, self.cachefile))
101 os.path.relpath(self.cachefile, self.tempdir),
112 self.tempfile = os.path.join(self.tempdir, 'libsodium.so')
149 self.tempfile = os.path.join(self.tempdir, os.path.normpath(self.itemfile))
[all …]
/f-stack/dpdk/app/test/
H A Dautotest_runner.py199 self.skipped = []
252 self.fails += 1
283 if self.blocklist and test_id in self.blocklist:
285 if self.allowlist and test_id not in self.allowlist:
289 if self.avail_cmds and test_cmd not in self.avail_cmds:
370 parallel_cmdlines = [self.cmdline] * self.n_processes
402 self.__run_test_group(self.parallel_tests, parallel_cmdlines)
406 self.__run_test_group(self.non_parallel_tests, [self.cmdline])
421 self.logfile.write("Target: ".ljust(15) + "%s\n" % self.target)
422 self.logfile.write("Tests: ".ljust(15) + "%i\n" % self.n_tests)
[all …]
/f-stack/freebsd/mips/mediatek/
H A Dmtk_ohci.c75 ohci_fdt_probe(device_t self) in ohci_fdt_probe() argument
78 if (!ofw_bus_status_okay(self)) in ohci_fdt_probe()
84 device_set_desc(self, OHCI_HC_DEVSTR); in ohci_fdt_probe()
90 ohci_fdt_attach(device_t self) in ohci_fdt_attach() argument
92 ohci_softc_t *sc = device_get_softc(self); in ohci_fdt_attach()
97 sc->sc_bus.parent = self; in ohci_fdt_attach()
157 ohci_fdt_detach(self); in ohci_fdt_attach()
162 ohci_fdt_detach(device_t self) in ohci_fdt_detach() argument
164 ohci_softc_t *sc = device_get_softc(self); in ohci_fdt_detach()
168 device_delete_children(self); in ohci_fdt_detach()
[all …]
H A Dmtk_ehci.c75 ehci_fdt_probe(device_t self) in ehci_fdt_probe() argument
78 if (!ofw_bus_status_okay(self)) in ehci_fdt_probe()
84 device_set_desc(self, EHCI_HC_DEVSTR); in ehci_fdt_probe()
90 ehci_fdt_attach(device_t self) in ehci_fdt_attach() argument
92 ehci_softc_t *sc = device_get_softc(self); in ehci_fdt_attach()
97 sc->sc_bus.parent = self; in ehci_fdt_attach()
157 ehci_fdt_detach(self); in ehci_fdt_attach()
162 ehci_fdt_detach(device_t self) in ehci_fdt_detach() argument
164 ehci_softc_t *sc = device_get_softc(self); in ehci_fdt_detach()
168 device_delete_children(self); in ehci_fdt_detach()
[all …]
H A Dmtk_xhci.c77 mtk_xhci_fdt_probe(device_t self) in mtk_xhci_fdt_probe() argument
80 if (!ofw_bus_status_okay(self)) in mtk_xhci_fdt_probe()
86 device_set_desc(self, XHCI_HC_DEVSTR); in mtk_xhci_fdt_probe()
92 mtk_xhci_fdt_attach(device_t self) in mtk_xhci_fdt_attach() argument
99 sc->sc_bus.parent = self; in mtk_xhci_fdt_attach()
114 mtk_xhci_fdt_init(self); in mtk_xhci_fdt_attach()
142 err = xhci_init(sc, self, 1); in mtk_xhci_fdt_attach()
156 mtk_xhci_fdt_detach(self); in mtk_xhci_fdt_attach()
161 mtk_xhci_fdt_detach(device_t self) in mtk_xhci_fdt_detach() argument
167 device_delete_children(self); in mtk_xhci_fdt_detach()
[all …]
/f-stack/freebsd/contrib/openzfs/contrib/pyzfs/libzfs_core/bindings/
H A D__init__.py33 def __init__(self, ffi, libname): argument
34 self._ffi = ffi
35 self._libname = libname
36 self._lib = None
37 self._lock = threading.Lock()
39 def __getattr__(self, name): argument
40 if self._lib is None:
41 with self._lock:
42 if self._lib is None:
43 self._lib = self._ffi.dlopen(self._libname)
[all …]
/f-stack/app/redis-5.0.5/deps/lua/test/
H A Dlife.lua33 self[top+y][left+x] = shape[y*shape.w+x+1]
40 local ym1,y,yp1,yi=self.h-1,self.h,1,self.h
42 local xm1,x,xp1,xi=self.w-1,self.w,1,self.w
44 local sum = self[ym1][xm1] + self[ym1][x] + self[ym1][xp1] +
45 self[y][xm1] + self[y][xp1] +
46 self[yp1][xm1] + self[yp1][x] + self[yp1][xp1]
47 next[y][x] = ((sum==2) and self[y][x]) or ((sum==3) and 1) or 0
57 for y=1,self.h do
58 for x=1,self.w do
59 out=out..(((self[y][x]>0) and ALIVE) or DEAD)
/f-stack/freebsd/mips/atheros/
H A Dar71xx_ehci.c93 ar71xx_ehci_probe(device_t self) in ar71xx_ehci_probe() argument
96 device_set_desc(self, EHCI_HC_DEVSTR); in ar71xx_ehci_probe()
111 ar71xx_ehci_attach(device_t self) in ar71xx_ehci_attach() argument
119 sc->sc_bus.parent = self; in ar71xx_ehci_attach()
137 device_printf(self, "Could not map memory\n"); in ar71xx_ehci_attach()
153 device_printf(self, "Could not allocate irq\n"); in ar71xx_ehci_attach()
158 device_printf(self, "Could not add USB device\n"); in ar71xx_ehci_attach()
227 ar71xx_ehci_detach(self); in ar71xx_ehci_attach()
232 ar71xx_ehci_detach(device_t self) in ar71xx_ehci_detach() argument
239 device_delete_children(self); in ar71xx_ehci_detach()
[all …]
/f-stack/dpdk/drivers/net/atlantic/
H A Datl_types.h148 int (*init)(struct aq_hw_s *self);
150 int (*deinit)(struct aq_hw_s *self);
152 int (*reset)(struct aq_hw_s *self);
158 int (*set_state)(struct aq_hw_s *self,
161 int (*update_link_status)(struct aq_hw_s *self);
163 int (*update_stats)(struct aq_hw_s *self);
168 int (*get_temp)(struct aq_hw_s *self, int *temp);
174 int (*get_eee_rate)(struct aq_hw_s *self, u32 *rate,
178 int (*set_flow_control)(struct aq_hw_s *self);
180 int (*led_control)(struct aq_hw_s *self, u32 mode);
[all …]
/f-stack/freebsd/kern/
H A Dsubr_smr.c310 if (++self->c_deferred < self->c_limit) in smr_deferred_advance()
312 self->c_deferred = 0; in smr_deferred_advance()
332 smr_t self; in smr_advance() local
350 self = zpcpu_get(smr); in smr_advance()
351 s = self->c_shared; in smr_advance()
352 flags = self->c_flags; in smr_advance()
359 goal = smr_deferred_advance(smr, s, self); in smr_advance()
481 smr_t self; in smr_poll() local
502 self = zpcpu_get(smr); in smr_poll()
503 s = self->c_shared; in smr_poll()
[all …]
/f-stack/dpdk/drivers/raw/ioat/
H A Ddpdk_idxd_cfg.py17 def __init__(self, path): argument
18 self.path = path
20 def read_int(self, filename): argument
22 with open(os.path.join(self.path, filename)) as f:
25 def write_values(self, values): argument
28 with open(os.path.join(self.path, filename), "w") as f:

1234