| /linux/tools/testing/selftests/drivers/net/ |
| H A D | psp.py | 35 def _send_with_ack(cfg, msg): argument 36 cfg.comm_sock.send(msg) 37 response = cfg.comm_sock.recv(4) 42 def _remote_read_len(cfg): argument 43 cfg.comm_sock.send(b'read len\0') 44 return int(cfg.comm_sock.recv(1024)[:-1].decode('utf-8')) 47 def _make_clr_conn(cfg, ipver=None): argument 48 _send_with_ack(cfg, b'conn clr\0') 49 remote_addr = cfg.remote_addr_v[ipver] if ipver else cfg.remote_addr 50 s = socket.create_connection((remote_addr, cfg.comm_port), ) [all …]
|
| H A D | shaper.py | 15 def _delete_shaper(cfg, nl_shaper, handle) -> None: argument 18 nl_shaper.delete({'ifindex': cfg.ifindex, 24 def _require_queues(cfg, count): argument 31 def _cap_get(cfg, nl_shaper, scope): argument 33 if not hasattr(cfg, 'cap_cache'): 34 cfg.cap_cache = {} 35 if scope not in cfg.cap_cache: 36 cfg.cap_cache[scope] = nl_shaper.cap_get({'ifindex': cfg.ifindex, 39 return cfg.cap_cache[scope] 41 def _require_caps(cfg, nl_shaper, scope, caps, msg) -> None: argument [all …]
|
| H A D | ping.py | 14 def _test_v4(cfg) -> None: argument 15 if not cfg.addr_v["4"]: 18 cmd("ping -c 1 -W0.5 " + cfg.remote_addr_v["4"]) 19 cmd("ping -c 1 -W0.5 " + cfg.addr_v["4"], host=cfg.remote) 20 cmd("ping -s 65000 -c 1 -W0.5 " + cfg.remote_addr_v["4"]) 21 cmd("ping -s 65000 -c 1 -W0.5 " + cfg.addr_v["4"], host=cfg.remote) 23 def _test_v6(cfg) -> None: argument 24 if not cfg.addr_v["6"]: 27 cmd("ping -c 1 -W5 " + cfg.remote_addr_v["6"]) 28 cmd("ping -c 1 -W5 " + cfg.addr_v["6"], host=cfg.remote) [all …]
|
| H A D | hds.py | 14 def _get_hds_mode(cfg, netnl) -> str: argument 16 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}}) 24 def _xdp_onoff(cfg): argument 25 prog = cfg.net_lib_dir / "xdp_dummy.bpf.o" 27 (cfg.ifname, prog)) 28 ip("link set dev %s xdp off" % cfg.ifname) 31 def _ioctl_ringparam_modify(cfg, netnl) -> None: argument 37 rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}}) 51 def get_hds(cfg, netnl) -> None: argument 52 _get_hds_mode(cfg, netnl) [all …]
|
| H A D | xdp.py | 58 def _exchg_udp(cfg, port, test_string): argument 70 cfg.require_cmd("socat", remote=True) 77 cmd(tx_udp_cmd, host=cfg.remote, shell=True) 82 def _test_udp(cfg, port, size=256): argument 95 recvd_str = _exchg_udp(cfg, port, test_str) 100 def _load_xdp_prog(cfg, bpf_info): argument 111 abs_path = cfg.net_lib_dir / bpf_info.file 114 cmd(f"ip link set dev {cfg.remote_ifname} mtu {bpf_info.mtu}", shell=True, host=cfg.remote) 115 defer(ip, f"link set dev {cfg.remote_ifname} mtu 1500", host=cfg.remote) 152 def _test_pass(cfg, bpf_info, msg_sz): argument [all …]
|
| /linux/drivers/phy/ |
| H A D | phy-core-mipi-dphy.c | 24 struct phy_configure_opts_mipi_dphy *cfg) in phy_mipi_dphy_calc_config() argument 28 if (!cfg) in phy_mipi_dphy_calc_config() 39 cfg->clk_miss = 0; in phy_mipi_dphy_calc_config() 40 cfg->clk_post = 60000 + 52 * ui; in phy_mipi_dphy_calc_config() 41 cfg->clk_pre = 8; in phy_mipi_dphy_calc_config() 42 cfg->clk_prepare = 38000; in phy_mipi_dphy_calc_config() 43 cfg->clk_settle = 95000; in phy_mipi_dphy_calc_config() 44 cfg->clk_term_en = 0; in phy_mipi_dphy_calc_config() 45 cfg->clk_trail = 60000; in phy_mipi_dphy_calc_config() 46 cfg->clk_zero = 262000; in phy_mipi_dphy_calc_config() [all …]
|
| /linux/drivers/media/platform/samsung/exynos-gsc/ |
| H A D | gsc-regs.c | 22 u32 cfg; in gsc_wait_reset() local 25 cfg = readl(dev->regs + GSC_SW_RESET); in gsc_wait_reset() 26 if (!cfg) in gsc_wait_reset() 36 u32 cfg; in gsc_hw_set_frm_done_irq_mask() local 38 cfg = readl(dev->regs + GSC_IRQ); in gsc_hw_set_frm_done_irq_mask() 40 cfg |= GSC_IRQ_FRMDONE_MASK; in gsc_hw_set_frm_done_irq_mask() 42 cfg &= ~GSC_IRQ_FRMDONE_MASK; in gsc_hw_set_frm_done_irq_mask() 43 writel(cfg, dev->regs + GSC_IRQ); in gsc_hw_set_frm_done_irq_mask() 48 u32 cfg; in gsc_hw_set_gsc_irq_enable() local 50 cfg = readl(dev->regs + GSC_IRQ); in gsc_hw_set_gsc_irq_enable() [all …]
|
| /linux/drivers/media/platform/samsung/exynos4-is/ |
| H A D | fimc-reg.c | 21 u32 cfg; in fimc_hw_reset() local 23 cfg = readl(dev->regs + FIMC_REG_CISRCFMT); in fimc_hw_reset() 24 cfg |= FIMC_REG_CISRCFMT_ITU601_8BIT; in fimc_hw_reset() 25 writel(cfg, dev->regs + FIMC_REG_CISRCFMT); in fimc_hw_reset() 28 cfg = readl(dev->regs + FIMC_REG_CIGCTRL); in fimc_hw_reset() 29 cfg |= (FIMC_REG_CIGCTRL_SWRST | FIMC_REG_CIGCTRL_IRQ_LEVEL); in fimc_hw_reset() 30 writel(cfg, dev->regs + FIMC_REG_CIGCTRL); in fimc_hw_reset() 33 cfg = readl(dev->regs + FIMC_REG_CIGCTRL); in fimc_hw_reset() 34 cfg &= ~FIMC_REG_CIGCTRL_SWRST; in fimc_hw_reset() 35 writel(cfg, dev->regs + FIMC_REG_CIGCTRL); in fimc_hw_reset() [all …]
|
| H A D | fimc-lite-reg.c | 23 u32 cfg; in flite_hw_reset() local 25 cfg = readl(dev->regs + FLITE_REG_CIGCTRL); in flite_hw_reset() 26 cfg |= FLITE_REG_CIGCTRL_SWRST_REQ; in flite_hw_reset() 27 writel(cfg, dev->regs + FLITE_REG_CIGCTRL); in flite_hw_reset() 30 cfg = readl(dev->regs + FLITE_REG_CIGCTRL); in flite_hw_reset() 31 if (cfg & FLITE_REG_CIGCTRL_SWRST_RDY) in flite_hw_reset() 36 cfg |= FLITE_REG_CIGCTRL_SWRST; in flite_hw_reset() 37 writel(cfg, dev->regs + FLITE_REG_CIGCTRL); in flite_hw_reset() 42 u32 cfg = readl(dev->regs + FLITE_REG_CISTATUS); in flite_hw_clear_pending_irq() local 43 cfg &= ~FLITE_REG_CISTATUS_IRQ_CAM; in flite_hw_clear_pending_irq() [all …]
|
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | rss_api.py | 18 def _require_2qs(cfg): argument 25 def _ethtool_create(cfg, act, opts): argument 32 def _ethtool_get_cfg(cfg, fl_type, to_nl=False): argument 64 def test_rxfh_nl_set_fail(cfg): argument 68 _require_2qs(cfg) 78 ethnl.rss_set({"header": {"dev-index": cfg.ifindex}, 84 def test_rxfh_nl_set_indir(cfg): argument 88 qcnt = _require_2qs(cfg) 91 reset = defer(cfg.ethnl.rss_set, 92 {"header": {"dev-index": cfg.ifindex}, "indir": None}) [all …]
|
| H A D | devmem_lib.py | 45 def _probe_devmem(cfg, rx_page_size): argument 53 def require_devmem(cfg, rx_page_size=RX_PAGE_SIZE_DEFAULT): argument 60 if not hasattr(cfg, "devmem_supported"): 64 cfg.devmem_supported = {size: _probe_devmem(cfg, size) 67 if not cfg.devmem_supported[RX_PAGE_SIZE_DEFAULT]: 77 if not cfg.devmem_supported[rx_page_size]: 82 def configure_nic(cfg): argument 84 if not hasattr(cfg, "devmem_supported"): 89 if not hasattr(cfg, 'netns'): 92 cfg.require_ipver('6') [all …]
|
| H A D | rss_ctx.py | 27 def _rss_key_check(cfg, data=None, context=0): argument 29 data = get_rss(cfg, context=context) 36 def get_rss(cfg, context=0): argument 40 def get_drop_err_sum(cfg): argument 41 stats = ip("-s -s link show dev " + cfg.ifname, json=True)[0] 50 def ethtool_create(cfg, act, opts): argument 57 def require_ntuple(cfg): argument 66 def require_context_cnt(cfg, need_cnt): argument 70 if need_cnt and cfg.context_cnt and cfg.context_cnt < need_cnt: 76 def _get_rx_cnts(cfg, prev=None): argument [all …]
|
| H A D | tso.py | 36 def run_one_stream(cfg, ipver, remote_v4, remote_v6, should_lso): argument 37 cfg.require_cmd("socat", local=False, remote=True) 45 with bkg(listen_cmd, host=cfg.remote, exit_wait=True) as nc: 46 wait_port_listen(port, host=cfg.remote) 60 qstat_old = cfg.netnl.qstats_get({"ifindex": cfg.ifindex}, dump=True)[0] 64 qstat_new = cfg.netnl.qstats_get({"ifindex": cfg.ifindex}, dump=True)[0] 69 total_lso_wire = len(buf) * 0.90 // cfg.dev["mtu"] 70 total_lso_super = len(buf) * 0.90 // cfg.dev["tso_max_size"] 78 if cfg.have_stat_super_count: 83 if cfg.have_stat_wire_count: [all …]
|
| H A D | csum.py | 12 def test_receive(cfg, ipver="6", extra_args=None): argument 14 if not cfg.have_rx_csum: 24 cmd(tx_cmd, host=cfg.remote) 27 def test_transmit(cfg, ipver="6", extra_args=None): argument 29 if (not cfg.have_tx_csum_generic and 30 not (cfg.have_tx_csum_ipv4 and ipver == "4") and 31 not (cfg.have_tx_csum_ipv6 and ipver == "6")): 43 with bkg(rx_cmd, host=cfg.remote, exit_wait=True): 44 wait_port_listen(34000, proto="udp", host=cfg.remote) 48 def test_builder(name, cfg, ipver="6", tx=False, extra_args=""): argument [all …]
|
| /linux/drivers/media/platform/samsung/s3c-camif/ |
| H A D | camif-regs.c | 18 u32 cfg; in camif_hw_reset() local 20 cfg = camif_read(camif, S3C_CAMIF_REG_CISRCFMT); in camif_hw_reset() 21 cfg |= CISRCFMT_ITU601_8BIT; in camif_hw_reset() 22 camif_write(camif, S3C_CAMIF_REG_CISRCFMT, cfg); in camif_hw_reset() 25 cfg = camif_read(camif, S3C_CAMIF_REG_CIGCTRL); in camif_hw_reset() 26 cfg |= CIGCTRL_SWRST; in camif_hw_reset() 28 cfg |= CIGCTRL_IRQ_LEVEL; in camif_hw_reset() 29 camif_write(camif, S3C_CAMIF_REG_CIGCTRL, cfg); in camif_hw_reset() 32 cfg = camif_read(camif, S3C_CAMIF_REG_CIGCTRL); in camif_hw_reset() 33 cfg &= ~CIGCTRL_SWRST; in camif_hw_reset() [all …]
|
| /linux/drivers/net/ethernet/marvell/octeon_ep/ |
| H A D | octep_config.h | 60 #define CFG_GET_IQ_CFG(cfg) ((cfg)->iq) argument 61 #define CFG_GET_IQ_NUM_DESC(cfg) ((cfg)->iq.num_descs) argument 62 #define CFG_GET_IQ_INSTR_TYPE(cfg) ((cfg)->iq.instr_type) argument 63 #define CFG_GET_IQ_INSTR_SIZE(cfg) (64) argument 64 #define CFG_GET_IQ_DB_MIN(cfg) ((cfg)->iq.db_min) argument 65 #define CFG_GET_IQ_INTR_THRESHOLD(cfg) ((cfg)->iq.intr_threshold) argument 67 #define CFG_GET_OQ_NUM_DESC(cfg) ((cfg)->oq.num_descs) argument 68 #define CFG_GET_OQ_BUF_SIZE(cfg) ((cfg)->oq.buf_size) argument 69 #define CFG_GET_OQ_REFILL_THRESHOLD(cfg) ((cfg)->oq.refill_threshold) argument 70 #define CFG_GET_OQ_INTR_PKT(cfg) ((cfg)->oq.oq_intr_pkt) argument [all …]
|
| /linux/rust/syn/gen/ |
| H A D | eq.rs | 6 #[cfg(any(feature = "derive", feature = "full"))] 8 #[cfg(any(feature = "derive", feature = "full"))] 9 #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] 11 #[cfg(any(feature = "derive", feature = "full"))] 12 #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] 18 #[cfg(any(feature = "derive", feature = "full"))] 19 #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] 21 #[cfg(any(feature = "derive", feature = "full"))] 22 #[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))] 28 #[cfg(feature = "full")] [all …]
|
| /linux/drivers/net/ethernet/cavium/liquidio/ |
| H A D | octeon_config.h | 121 #define CFG_GET_IQ_CFG(cfg) ((cfg)->iq) argument 122 #define CFG_GET_IQ_MAX_Q(cfg) ((cfg)->iq.max_iqs) argument 123 #define CFG_GET_IQ_PENDING_LIST_SIZE(cfg) ((cfg)->iq.pending_list_size) argument 124 #define CFG_GET_IQ_INSTR_TYPE(cfg) ((cfg)->iq.instr_type) argument 125 #define CFG_GET_IQ_DB_MIN(cfg) ((cfg)->iq.db_min) argument 126 #define CFG_GET_IQ_DB_TIMEOUT(cfg) ((cfg)->iq.db_timeout) argument 128 #define CFG_GET_IQ_INTR_PKT(cfg) ((cfg)->iq.iq_intr_pkt) argument 129 #define CFG_SET_IQ_INTR_PKT(cfg, val) (cfg)->iq.iq_intr_pkt = val argument 131 #define CFG_GET_OQ_MAX_Q(cfg) ((cfg)->oq.max_oqs) argument 132 #define CFG_GET_OQ_PKTS_PER_INTR(cfg) ((cfg)->oq.pkts_per_intr) argument [all …]
|
| /linux/sound/hda/common/ |
| H A D | auto_parser.c | 55 /* add the found input-pin to the cfg->inputs[] table */ 56 static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, in add_auto_cfg_input_pin() argument 59 if (cfg->num_inputs < AUTO_CFG_MAX_INS) { in add_auto_cfg_input_pin() 60 cfg->inputs[cfg->num_inputs].pin = nid; in add_auto_cfg_input_pin() 61 cfg->inputs[cfg->num_inputs].type = type; in add_auto_cfg_input_pin() 62 cfg->inputs[cfg->num_inputs].has_boost_on_pin = in add_auto_cfg_input_pin() 64 cfg in add_auto_cfg_input_pin() 173 snd_hda_parse_pin_defcfg(struct hda_codec * codec,struct auto_pin_cfg * cfg,const hda_nid_t * ignore_nids,unsigned int cond_flags) snd_hda_parse_pin_defcfg() argument 539 check_mic_location_need(struct hda_codec * codec,const struct auto_pin_cfg * cfg,int input) check_mic_location_need() argument 576 hda_get_autocfg_input_label(struct hda_codec * codec,const struct auto_pin_cfg * cfg,int input) hda_get_autocfg_input_label() argument 659 fill_audio_out_name(struct hda_codec * codec,hda_nid_t nid,const struct auto_pin_cfg * cfg,const char * name,char * label,int maxlen,int * indexp) fill_audio_out_name() argument 715 snd_hda_get_pin_label(struct hda_codec * codec,hda_nid_t nid,const struct auto_pin_cfg * cfg,char * label,int maxlen,int * indexp) snd_hda_get_pin_label() argument 814 snd_hda_apply_pincfgs(struct hda_codec * codec,const struct hda_pintbl * cfg) snd_hda_apply_pincfgs() argument 822 set_pin_targets(struct hda_codec * codec,const struct hda_pintbl * cfg) set_pin_targets() argument 904 u32 cfg = pin->cfg; pin_config_match() local [all...] |
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_tc_tunnel.c | 58 void (*extra_decap_mod_args_cb)(struct subtest_cfg *cfg, char *dst); 80 static int build_subtest_name(struct subtest_cfg *cfg, char *dst, size_t size) in build_subtest_name() argument 84 ret = snprintf(dst, size, "%s_%s", cfg->ebpf_tun_type, in build_subtest_name() 85 cfg->mac_tun_type); in build_subtest_name() 90 static int set_subtest_progs(struct subtest_cfg *cfg, struct test_tc_tunnel *skel) in set_subtest_progs() argument 99 ret = build_subtest_name(cfg, prog_name + ret, PROG_NAME_MAX_LEN - ret); in set_subtest_progs() 106 cfg->client_egress_prog_fd = bpf_program__fd(prog); in set_subtest_progs() 107 cfg->server_ingress_prog_fd = bpf_program__fd(skel->progs.decap_f); in set_subtest_progs() 111 static void set_subtest_addresses(struct subtest_cfg *cfg) in set_subtest_addresses() argument 113 if (cfg->ipproto == 6) in set_subtest_addresses() [all …]
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rpm.c | 133 u64 cfg, last; in rpm_lmac_tx_enable() local 138 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_tx_enable() 139 last = cfg; in rpm_lmac_tx_enable() 141 cfg |= RPM_TX_EN; in rpm_lmac_tx_enable() 143 cfg &= ~(RPM_TX_EN); in rpm_lmac_tx_enable() 145 if (cfg != last) in rpm_lmac_tx_enable() 146 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_tx_enable() 153 u64 cfg; in rpm_lmac_rx_tx_enable() local 158 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_rx_tx_enable() 160 cfg |= RPM_RX_EN | RPM_TX_EN; in rpm_lmac_rx_tx_enable() [all …]
|
| /linux/drivers/net/ethernet/marvell/octeon_ep_vf/ |
| H A D | octep_vf_config.h | 56 #define CFG_GET_IQ_CFG(cfg) ((cfg)->iq) argument 57 #define CFG_GET_IQ_NUM_DESC(cfg) ((cfg)->iq.num_descs) argument 58 #define CFG_GET_IQ_INSTR_TYPE(cfg) ((cfg)->iq.instr_type) argument 59 #define CFG_GET_IQ_INSTR_SIZE(cfg) (64) argument 60 #define CFG_GET_IQ_DB_MIN(cfg) ((cfg)->iq.db_min) argument 61 #define CFG_GET_IQ_INTR_THRESHOLD(cfg) ((cfg)->iq.intr_threshold) argument 63 #define CFG_GET_OQ_NUM_DESC(cfg) ((cfg)->oq.num_descs) argument 64 #define CFG_GET_OQ_BUF_SIZE(cfg) ((cfg)->oq.buf_size) argument 65 #define CFG_GET_OQ_REFILL_THRESHOLD(cfg) ((cfg)->oq.refill_threshold) argument 66 #define CFG_GET_OQ_INTR_PKT(cfg) ((cfg)->oq.oq_intr_pkt) argument [all …]
|
| /linux/rust/syn/ |
| H A D | lib.rs | 317 #[cfg(feature = "proc-macro")] 323 #[cfg(feature = "parsing")] 330 #[cfg(any(feature = "full", feature = "derive"))] 332 #[cfg(any(feature = "full", feature = "derive"))] 333 #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] 338 #[cfg(feature = "parsing")] 339 #[cfg_attr(docsrs, doc(cfg(feature = "parsing")))] 342 #[cfg(any( 352 #[cfg(any(feature = "full", feature = "derive"))] 354 #[cfg(any(feature = "full", feature = "derive"))] [all …]
|
| /linux/drivers/gpu/drm/exynos/ |
| H A D | exynos_drm_gsc.c | 65 #define gsc_write(cfg, offset) writel(cfg, ctx->regs + (offset)) argument 380 u32 cfg; in gsc_sw_reset() local 384 cfg = (GSC_SW_RESET_SRESET); in gsc_sw_reset() 385 gsc_write(cfg, GSC_SW_RESET); in gsc_sw_reset() 389 cfg = gsc_read(GSC_SW_RESET); in gsc_sw_reset() 390 if (!cfg) in gsc_sw_reset() 395 if (cfg) { in gsc_sw_reset() 401 cfg = gsc_read(GSC_IN_BASE_ADDR_Y_MASK); in gsc_sw_reset() 402 cfg |= (GSC_IN_BASE_ADDR_MASK | in gsc_sw_reset() 404 gsc_write(cfg, GSC_IN_BASE_ADDR_Y_MASK); in gsc_sw_reset() [all …]
|
| H A D | exynos_drm_fimc.c | 139 u32 cfg; in fimc_sw_reset() local 142 cfg = fimc_read(ctx, EXYNOS_CISTATUS); in fimc_sw_reset() 143 if (EXYNOS_CISTATUS_GET_ENVID_STATUS(cfg)) in fimc_sw_reset() 164 u32 cfg; in fimc_set_type_ctrl() local 166 cfg = fimc_read(ctx, EXYNOS_CIGCTRL); in fimc_set_type_ctrl() 167 cfg &= ~(EXYNOS_CIGCTRL_TESTPATTERN_MASK | in fimc_set_type_ctrl() 174 cfg |= (EXYNOS_CIGCTRL_SELCAM_ITU_A | in fimc_set_type_ctrl() 179 fimc_write(ctx, cfg, EXYNOS_CIGCTRL); in fimc_set_type_ctrl() 184 u32 cfg; in fimc_handle_jpeg() local 188 cfg = fimc_read(ctx, EXYNOS_CIGCTRL); in fimc_handle_jpeg() [all …]
|