Home
last modified time | relevance | path

Searched refs:ops (Results 1 – 25 of 3765) sorted by relevance

12345678910>>...151

/linux/drivers/media/platform/amphion/
H A Dvpu_rpc.h120 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_check_codec() local
122 if (ops && ops->check_codec) in vpu_iface_check_codec()
123 return ops->check_codec(core->type); in vpu_iface_check_codec()
130 struct vpu_iface_ops *ops = vpu_inst_get_iface(inst); in vpu_iface_check_format() local
132 if (ops && ops->check_fmt) in vpu_iface_check_format()
133 return ops->check_fmt(inst->type, pixelfmt); in vpu_iface_check_format()
140 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_boot_core() local
142 if (ops && ops->boot_core) in vpu_iface_boot_core()
143 return ops->boot_core(core); in vpu_iface_boot_core()
149 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_get_power_state() local
[all …]
/linux/drivers/net/wireless/ti/wlcore/
H A Dhw_ops.h17 if (!wl->ops->calc_tx_blocks) in wlcore_hw_calc_tx_blocks()
20 return wl->ops->calc_tx_blocks(wl, len, spare_blks); in wlcore_hw_calc_tx_blocks()
27 if (!wl->ops->set_tx_desc_blocks) in wlcore_hw_set_tx_desc_blocks()
30 return wl->ops->set_tx_desc_blocks(wl, desc, blks, spare_blks); in wlcore_hw_set_tx_desc_blocks()
38 if (!wl->ops->set_tx_desc_data_len) in wlcore_hw_set_tx_desc_data_len()
41 wl->ops->set_tx_desc_data_len(wl, desc, skb); in wlcore_hw_set_tx_desc_data_len()
48 if (!wl->ops->get_rx_buf_align) in wlcore_hw_get_rx_buf_align()
51 return wl->ops->get_rx_buf_align(wl, rx_desc); in wlcore_hw_get_rx_buf_align()
57 if (wl->ops->prepare_read) in wlcore_hw_prepare_read()
58 return wl->ops->prepare_read(wl, rx_desc, len); in wlcore_hw_prepare_read()
[all …]
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_colorop.c60 struct drm_colorop *ops[MAX_COLOR_PIPELINE_OPS]; in amdgpu_dm_initialize_default_pipeline() local
66 memset(ops, 0, sizeof(ops)); in amdgpu_dm_initialize_default_pipeline()
69 ops[i] = kzalloc(sizeof(*ops[0]), GFP_KERNEL); in amdgpu_dm_initialize_default_pipeline()
70 if (!ops[i]) { in amdgpu_dm_initialize_default_pipeline()
75 ret = drm_plane_colorop_curve_1d_init(dev, ops[i], plane, in amdgpu_dm_initialize_default_pipeline()
81 list->type = ops[i]->base.id; in amdgpu_dm_initialize_default_pipeline()
82 list->name = kasprintf(GFP_KERNEL, "Color Pipeline %d", ops[i]->base.id); in amdgpu_dm_initialize_default_pipeline()
87 ops[i] = kzalloc(sizeof(struct drm_colorop), GFP_KERNEL); in amdgpu_dm_initialize_default_pipeline()
88 if (!ops[i]) { in amdgpu_dm_initialize_default_pipeline()
93 ret = drm_plane_colorop_mult_init(dev, ops[i], plane, DRM_COLOROP_FLAG_ALLOW_BYPASS); in amdgpu_dm_initialize_default_pipeline()
[all …]
/linux/drivers/mfd/
H A Dabx500-core.c19 struct abx500_ops ops; member
23 static void lookup_ops(struct device *dev, struct abx500_ops **ops) in lookup_ops() argument
27 *ops = NULL; in lookup_ops()
30 *ops = &dev_entry->ops; in lookup_ops()
36 int abx500_register_ops(struct device *dev, struct abx500_ops *ops) in abx500_register_ops() argument
45 memcpy(&dev_entry->ops, ops, sizeof(*ops)); in abx500_register_ops()
65 struct abx500_ops *ops; in abx500_set_register_interruptible() local
67 lookup_ops(dev->parent, &ops); in abx500_set_register_interruptible()
68 if (ops && ops->set_register) in abx500_set_register_interruptible()
69 return ops->set_register(dev, bank, reg, value); in abx500_set_register_interruptible()
[all …]
/linux/include/linux/
H A Dntb.h178 static inline int ntb_client_ops_is_valid(const struct ntb_client_ops *ops) in ntb_client_ops_is_valid() argument
182 ops->probe && in ntb_client_ops_is_valid()
183 ops->remove && in ntb_client_ops_is_valid()
199 static inline int ntb_ctx_ops_is_valid(const struct ntb_ctx_ops *ops) in ntb_ctx_ops_is_valid() argument
334 static inline int ntb_dev_ops_is_valid(const struct ntb_dev_ops *ops) in ntb_dev_ops_is_valid() argument
339 !ops->peer_port_count == !ops->port_number && in ntb_dev_ops_is_valid()
340 !ops->peer_port_number == !ops->port_number && in ntb_dev_ops_is_valid()
341 !ops->peer_port_idx == !ops->port_number && in ntb_dev_ops_is_valid()
344 ops->link_is_up && in ntb_dev_ops_is_valid()
345 ops->link_enable && in ntb_dev_ops_is_valid()
[all …]
/linux/net/netfilter/
H A Dnf_sockopt.c27 struct nf_sockopt_ops *ops; in nf_register_sockopt() local
31 list_for_each_entry(ops, &nf_sockopts, list) { in nf_register_sockopt()
32 if (ops->pf == reg->pf in nf_register_sockopt()
33 && (overlap(ops->set_optmin, ops->set_optmax, in nf_register_sockopt()
35 || overlap(ops->get_optmin, ops->get_optmax, in nf_register_sockopt()
38 ops->set_optmin, ops->set_optmax, in nf_register_sockopt()
39 ops->get_optmin, ops->get_optmax, in nf_register_sockopt()
65 struct nf_sockopt_ops *ops; in nf_sockopt_find() local
68 list_for_each_entry(ops, &nf_sockopts, list) { in nf_sockopt_find()
69 if (ops->pf == pf) { in nf_sockopt_find()
[all …]
/linux/tools/testing/cxl/test/
H A Dmock.c22 void register_cxl_mock_ops(struct cxl_mock_ops *ops) in register_cxl_mock_ops() argument
24 list_add_rcu(&ops->list, &mock); in register_cxl_mock_ops()
33 void unregister_cxl_mock_ops(struct cxl_mock_ops *ops) in unregister_cxl_mock_ops() argument
38 list_del_rcu(&ops->list); in unregister_cxl_mock_ops()
61 struct cxl_mock_ops *ops = get_cxl_mock_ops(&index); in __wrap_is_acpi_device_node() local
64 if (ops) in __wrap_is_acpi_device_node()
65 retval = ops->is_mock_adev(adev); in __wrap_is_acpi_device_node()
80 struct cxl_mock_ops *ops = get_cxl_mock_ops(&index); in __wrap_acpi_table_parse_cedt() local
82 if (ops) in __wrap_acpi_table_parse_cedt()
83 rc = ops->acpi_table_parse_cedt(id, handler_arg, arg); in __wrap_acpi_table_parse_cedt()
[all …]
/linux/drivers/gpu/drm/vkms/
H A Dvkms_colorop.c19 struct drm_colorop *ops[MAX_COLOR_PIPELINE_OPS]; in vkms_initialize_color_pipeline() local
24 memset(ops, 0, sizeof(ops)); in vkms_initialize_color_pipeline()
27 ops[i] = kzalloc(sizeof(*ops[i]), GFP_KERNEL); in vkms_initialize_color_pipeline()
28 if (!ops[i]) { in vkms_initialize_color_pipeline()
34 ret = drm_plane_colorop_curve_1d_init(dev, ops[i], plane, supported_tfs, in vkms_initialize_color_pipeline()
39 list->type = ops[i]->base.id; in vkms_initialize_color_pipeline()
40 list->name = kasprintf(GFP_KERNEL, "Color Pipeline %d", ops[i]->base.id); in vkms_initialize_color_pipeline()
45 ops[i] = kzalloc(sizeof(*ops[i]), GFP_KERNEL); in vkms_initialize_color_pipeline()
46 if (!ops[i]) { in vkms_initialize_color_pipeline()
52 ret = drm_plane_colorop_ctm_3x4_init(dev, ops[i], plane, DRM_COLOROP_FLAG_ALLOW_BYPASS); in vkms_initialize_color_pipeline()
[all …]
/linux/tools/perf/util/
H A Ddisasm.c47 struct ins_operands *ops, int max_ins_name);
49 struct ins_operands *ops, int max_ins_name);
88 static int arch__associate_ins_ops(struct arch* arch, const char *name, struct ins_ops *ops) in arch__associate_ins_ops() argument
101 ins->ops = ops; in arch__associate_ins_ops()
234 static void ins_ops__delete(struct ins_operands *ops) in ins_ops__delete() argument
236 if (ops == NULL) in ins_ops__delete()
238 zfree(&ops->source.raw); in ins_ops__delete()
239 zfree(&ops->source.name); in ins_ops__delete()
240 zfree(&ops->target.raw); in ins_ops__delete()
241 zfree(&ops->target.name); in ins_ops__delete()
[all …]
/linux/mm/
H A Dpagewalk.c33 const struct mm_walk_ops *ops = walk->ops; in walk_pte_range_inner() local
37 if (ops->install_pte && pte_none(ptep_get(pte))) { in walk_pte_range_inner()
40 err = ops->install_pte(addr, addr + PAGE_SIZE, &new_pte, in walk_pte_range_inner()
50 err = ops->pte_entry(pte, addr, addr + PAGE_SIZE, walk); in walk_pte_range_inner()
102 const struct mm_walk_ops *ops = walk->ops; in walk_pmd_range() local
103 bool has_handler = ops->pte_entry; in walk_pmd_range()
104 bool has_install = ops->install_pte; in walk_pmd_range()
115 else if (ops->pte_hole) in walk_pmd_range()
116 err = ops->pte_hole(addr, next, depth, walk); in walk_pmd_range()
129 if (ops->pmd_entry) in walk_pmd_range()
[all …]
/linux/net/core/
H A Dlwtunnel.c82 int lwtunnel_encap_add_ops(const struct lwtunnel_encap_ops *ops, in lwtunnel_encap_add_ops() argument
90 NULL, ops) ? 0 : -1; in lwtunnel_encap_add_ops()
94 int lwtunnel_encap_del_ops(const struct lwtunnel_encap_ops *ops, in lwtunnel_encap_del_ops() argument
105 ops, NULL) == ops) ? 0 : -1; in lwtunnel_encap_del_ops()
118 const struct lwtunnel_encap_ops *ops; in lwtunnel_build_state() local
131 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state()
132 if (likely(ops && ops->build_state && try_module_get(ops->owner))) in lwtunnel_build_state()
137 ret = ops->build_state(net, encap, family, cfg, lws, extack); in lwtunnel_build_state()
139 module_put(ops->owner); in lwtunnel_build_state()
154 const struct lwtunnel_encap_ops *ops; in lwtunnel_valid_encap_type() local
[all …]
H A Dfib_rules.c56 int fib_default_rule_add(struct fib_rules_ops *ops, in fib_default_rule_add() argument
61 r = kzalloc(ops->rule_size, GFP_KERNEL_ACCOUNT); in fib_default_rule_add()
70 r->fr_net = ops->fro_net; in fib_default_rule_add()
78 list_add_tail(&r->list, &ops->rules_list); in fib_default_rule_add()
83 static u32 fib_default_rule_pref(struct fib_rules_ops *ops) in fib_default_rule_pref() argument
88 if (!list_empty(&ops->rules_list)) { in fib_default_rule_pref()
89 pos = ops->rules_list.next; in fib_default_rule_pref()
90 if (pos->next != &ops->rules_list) { in fib_default_rule_pref()
101 struct fib_rules_ops *ops, struct nlmsghdr *nlh,
107 struct fib_rules_ops *ops; in lookup_rules_ops() local
[all …]
/linux/net/netlabel/
H A Dnetlabel_calipso.c68 netlbl_calipso_ops_register(const struct netlbl_calipso_ops *ops) in netlbl_calipso_ops_register() argument
70 return xchg(&calipso_ops, ops); in netlbl_calipso_ops_register()
124 const struct netlbl_calipso_ops *ops = netlbl_calipso_ops_get(); in netlbl_calipso_add() local
130 if (!ops) in netlbl_calipso_add()
408 const struct netlbl_calipso_ops *ops = netlbl_calipso_ops_get(); in calipso_doi_add() local
410 if (ops) in calipso_doi_add()
411 ret_val = ops->doi_add(doi_def, audit_info); in calipso_doi_add()
425 const struct netlbl_calipso_ops *ops = netlbl_calipso_ops_get(); in calipso_doi_free() local
427 if (ops) in calipso_doi_free()
428 ops->doi_free(doi_def); in calipso_doi_free()
[all …]
/linux/rust/kernel/
H A Dnum.rs5 use core::ops;
25 + ops::Add<Output = Self>
26 + ops::AddAssign
27 + ops::Sub<Output = Self>
28 + ops::SubAssign
29 + ops::Mul<Output = Self>
30 + ops::MulAssign
31 + ops::Div<Output = Self>
32 + ops::DivAssign
33 + ops::Rem<Output = Self>
[all …]
/linux/tools/testing/selftests/mm/
H A Dkhugepaged.c58 struct mem_ops *ops, bool expect);
304 static void *alloc_hpage(struct mem_ops *ops) in alloc_hpage() argument
306 void *p = ops->setup_area(1); in alloc_hpage()
308 ops->fault(p, 0, hpage_pmd_size); in alloc_hpage()
322 if (!ops->check_huge(p, 1)) { in alloc_hpage()
497 struct mem_ops *ops, bool expect) in __madvise_collapse() argument
517 else if (!ops->check_huge(p, expect ? nr_hpages : 0)) in __madvise_collapse()
526 struct mem_ops *ops, bool expect) in madvise_collapse() argument
529 if (!ops->check_huge(p, 0)) { in madvise_collapse()
533 __madvise_collapse(msg, p, nr_hpages, ops, expect); in madvise_collapse()
[all …]
/linux/kernel/livepatch/
H A Dpatch.c27 struct klp_ops *ops; in klp_find_ops() local
30 list_for_each_entry(ops, &klp_ops, node) { in klp_find_ops()
31 func = list_first_entry(&ops->func_stack, struct klp_func, in klp_find_ops()
34 return ops; in klp_find_ops()
45 struct klp_ops *ops; in klp_ftrace_handler() local
50 ops = container_of(fops, struct klp_ops, fops); in klp_ftrace_handler()
62 func = list_first_or_null_rcu(&ops->func_stack, struct klp_func, in klp_ftrace_handler()
109 if (&func->stack_node == &ops->func_stack) in klp_ftrace_handler()
129 struct klp_ops *ops; in klp_unpatch_func() local
136 ops = klp_find_ops(func->old_func); in klp_unpatch_func()
[all …]
/linux/tools/perf/arch/x86/annotate/
H A Dinstructions.c11 { .name = "adc", .ops = &mov_ops, },
12 { .name = "add", .ops = &mov_ops, },
13 { .name = "addsd", .ops = &mov_ops, },
14 { .name = "and", .ops = &mov_ops, },
15 { .name = "andpd", .ops = &mov_ops, },
16 { .name = "andps", .ops = &mov_ops, },
17 { .name = "bsr", .ops = &mov_ops, },
18 { .name = "bt", .ops = &mov_ops, },
19 { .name = "btr", .ops = &mov_ops, },
20 { .name = "bts", .ops = &mov_ops, },
[all …]
/linux/drivers/misc/c2port/
H A Dcore.c63 struct c2port_ops *ops = dev->ops; in c2port_reset() local
69 ops->c2ck_set(dev, 0); in c2port_reset()
71 ops->c2ck_set(dev, 1); in c2port_reset()
79 struct c2port_ops *ops = dev->ops; in c2port_strobe_ck() local
87 ops->c2ck_set(dev, 0); in c2port_strobe_ck()
89 ops->c2ck_set(dev, 1); in c2port_strobe_ck()
101 struct c2port_ops *ops = dev->ops; in c2port_write_ar() local
108 ops->c2d_dir(dev, 0); in c2port_write_ar()
109 ops->c2d_set(dev, 1); in c2port_write_ar()
111 ops->c2d_set(dev, 1); in c2port_write_ar()
[all …]
/linux/net/dsa/
H A Dconduit.c23 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_conduit_get_regs_len() local
29 if (ops && ops->get_regs_len) { in dsa_conduit_get_regs_len()
31 len = ops->get_regs_len(dev); in dsa_conduit_get_regs_len()
41 if (ds->ops->get_regs_len) { in dsa_conduit_get_regs_len()
42 len = ds->ops->get_regs_len(ds, port); in dsa_conduit_get_regs_len()
55 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_conduit_get_regs() local
62 if (ops && ops->get_regs_len && ops in dsa_conduit_get_regs()
95 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; dsa_conduit_get_ethtool_stats() local
116 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; dsa_conduit_get_ethtool_phy_stats() local
142 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; dsa_conduit_get_sset_count() local
167 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; dsa_conduit_get_strings() local
242 struct ethtool_ops *ops; dsa_conduit_ethtool_setup() local
285 const struct dsa_device_ops *ops = dev->dsa_ptr->tag_ops; dsa_conduit_set_promiscuity() local
[all...]
/linux/drivers/net/ethernet/intel/igb/
H A De1000_phy.c62 phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, 0); in igb_get_phy_id()
64 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id()
70 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igb_get_phy_id()
91 if (!(hw->phy.ops.write_reg)) in igb_phy_reset_dsp()
94 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in igb_phy_reset_dsp()
98 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0); in igb_phy_reset_dsp()
384 if (!(hw->phy.ops.acquire)) in igb_read_phy_reg_igp()
387 ret_val = hw->phy.ops.acquire(hw); in igb_read_phy_reg_igp()
396 hw->phy.ops.release(hw); in igb_read_phy_reg_igp()
404 hw->phy.ops.release(hw); in igb_read_phy_reg_igp()
[all …]
/linux/drivers/gpu/drm/xe/tests/
H A Dxe_lmtt_test.c10 const struct xe_lmtt_ops *ops; member
26 const struct xe_lmtt_ops *ops = p->ops; in test_ops() local
29 KUNIT_ASSERT_NOT_NULL(test, ops->lmtt_root_pd_level); in test_ops()
30 KUNIT_ASSERT_NOT_NULL(test, ops->lmtt_pte_num); in test_ops()
31 KUNIT_ASSERT_NOT_NULL(test, ops->lmtt_pte_size); in test_ops()
32 KUNIT_ASSERT_NOT_NULL(test, ops->lmtt_pte_shift); in test_ops()
33 KUNIT_ASSERT_NOT_NULL(test, ops->lmtt_pte_index); in test_ops()
34 KUNIT_ASSERT_NOT_NULL(test, ops->lmtt_pte_encode); in test_ops()
36 KUNIT_EXPECT_NE(test, ops->lmtt_root_pd_level(), 0); in test_ops()
38 for (n = 0; n <= ops->lmtt_root_pd_level(); n++) { in test_ops()
[all …]
/linux/sound/soc/sof/
H A Dipc.c82 return ipc->ops->tx_msg(ipc->sdev, msg_data, msg_bytes, reply_data, in sof_ipc_tx_message()
91 return ipc->ops->set_get_data(ipc->sdev, msg_data, msg_bytes, set); in sof_ipc_set_get_data()
107 return ipc->ops->tx_msg(ipc->sdev, msg_data, msg_bytes, reply_data, in sof_ipc_tx_message_no_pm()
125 sdev->msg->reply_error = sdev->ipc->ops->get_reply(sdev); in snd_sof_ipc_get_reply()
151 const struct sof_ipc_ops *ops; in snd_sof_ipc_init() local
169 ops = &ipc3_ops; in snd_sof_ipc_init()
174 ops = &ipc4_ops; in snd_sof_ipc_init()
184 if (!ops->tx_msg || !ops->rx_msg || !ops->set_get_data || !ops->get_reply) { in snd_sof_ipc_init()
189 if (!ops->fw_loader || !ops->fw_loader->validate || in snd_sof_ipc_init()
190 !ops->fw_loader->parse_ext_manifest) { in snd_sof_ipc_init()
[all …]
/linux/net/mac80211/
H A Ddriver-ops.h38 local->ops->tx(&local->hw, control, skb); in drv_tx()
47 if (local->ops->sync_rx_queues) { in drv_sync_rx_queues()
49 local->ops->sync_rx_queues(&local->hw); in drv_sync_rx_queues()
58 if (local->ops->get_et_strings) { in drv_get_et_strings()
60 local->ops->get_et_strings(&local->hw, &sdata->vif, sset, data); in drv_get_et_strings()
70 if (local->ops->get_et_stats) { in drv_get_et_stats()
72 local->ops->get_et_stats(&local->hw, &sdata->vif, stats, data); in drv_get_et_stats()
82 if (local->ops->get_et_sset_count) { in drv_get_et_sset_count()
84 rv = local->ops->get_et_sset_count(&local->hw, &sdata->vif, in drv_get_et_sset_count()
104 ret = local->ops->suspend(&local->hw, wowlan); in drv_suspend()
[all …]
/linux/lib/
H A Dtextsearch.c143 int textsearch_register(struct ts_ops *ops) in textsearch_register() argument
148 if (ops->name == NULL || ops->find == NULL || ops->init == NULL || in textsearch_register()
149 ops->get_pattern == NULL || ops->get_pattern_len == NULL) in textsearch_register()
154 if (!strcmp(ops->name, o->name)) in textsearch_register()
158 list_add_tail_rcu(&ops->list, &ts_ops); in textsearch_register()
178 int textsearch_unregister(struct ts_ops *ops) in textsearch_unregister() argument
185 if (o == ops) { in textsearch_unregister()
268 struct ts_ops *ops; in textsearch_prepare() local
273 ops = lookup_ts_algo(algo); in textsearch_prepare()
280 if (ops == NULL && flags & TS_AUTOLOAD) { in textsearch_prepare()
[all …]
/linux/samples/ftrace/
H A Dftrace-ops.c96 struct ftrace_ops ops; member
113 self = container_of(op, struct sample_ops, ops); in ops_func_count()
123 struct sample_ops *ops; in ops_alloc_init() local
125 ops = kcalloc(nr, sizeof(*ops), GFP_KERNEL); in ops_alloc_init()
126 if (WARN_ON_ONCE(!ops)) in ops_alloc_init()
130 ops[i].ops.func = func; in ops_alloc_init()
131 ops[i].ops.flags = flags; in ops_alloc_init()
132 WARN_ON_ONCE(ftrace_set_filter_ip(&ops[i].ops, (unsigned long)tracee, 0, 0)); in ops_alloc_init()
133 WARN_ON_ONCE(register_ftrace_function(&ops[i].ops)); in ops_alloc_init()
136 return ops; in ops_alloc_init()
[all …]

12345678910>>...151