Home
last modified time | relevance | path

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

12345678910>>...155

/Linux-v4.19/tools/perf/arch/x86/annotate/
Dinstructions.c3 { .name = "adc", .ops = &mov_ops, },
4 { .name = "adcb", .ops = &mov_ops, },
5 { .name = "adcl", .ops = &mov_ops, },
6 { .name = "add", .ops = &mov_ops, },
7 { .name = "addl", .ops = &mov_ops, },
8 { .name = "addq", .ops = &mov_ops, },
9 { .name = "addsd", .ops = &mov_ops, },
10 { .name = "addw", .ops = &mov_ops, },
11 { .name = "and", .ops = &mov_ops, },
12 { .name = "andb", .ops = &mov_ops, },
[all …]
/Linux-v4.19/include/linux/
Dntb.h176 static inline int ntb_client_ops_is_valid(const struct ntb_client_ops *ops) in ntb_client_ops_is_valid() argument
180 ops->probe && in ntb_client_ops_is_valid()
181 ops->remove && in ntb_client_ops_is_valid()
197 static inline int ntb_ctx_ops_is_valid(const struct ntb_ctx_ops *ops) in ntb_ctx_ops_is_valid() argument
331 static inline int ntb_dev_ops_is_valid(const struct ntb_dev_ops *ops) in ntb_dev_ops_is_valid() argument
336 !ops->peer_port_count == !ops->port_number && in ntb_dev_ops_is_valid()
337 !ops->peer_port_number == !ops->port_number && in ntb_dev_ops_is_valid()
338 !ops->peer_port_idx == !ops->port_number && in ntb_dev_ops_is_valid()
341 ops->link_is_up && in ntb_dev_ops_is_valid()
342 ops->link_enable && in ntb_dev_ops_is_valid()
[all …]
/Linux-v4.19/drivers/net/wireless/ti/wlcore/
Dhw_ops.h31 if (!wl->ops->calc_tx_blocks) in wlcore_hw_calc_tx_blocks()
34 return wl->ops->calc_tx_blocks(wl, len, spare_blks); in wlcore_hw_calc_tx_blocks()
41 if (!wl->ops->set_tx_desc_blocks) in wlcore_hw_set_tx_desc_blocks()
44 return wl->ops->set_tx_desc_blocks(wl, desc, blks, spare_blks); in wlcore_hw_set_tx_desc_blocks()
52 if (!wl->ops->set_tx_desc_data_len) in wlcore_hw_set_tx_desc_data_len()
55 wl->ops->set_tx_desc_data_len(wl, desc, skb); in wlcore_hw_set_tx_desc_data_len()
62 if (!wl->ops->get_rx_buf_align) in wlcore_hw_get_rx_buf_align()
65 return wl->ops->get_rx_buf_align(wl, rx_desc); in wlcore_hw_get_rx_buf_align()
71 if (wl->ops->prepare_read) in wlcore_hw_prepare_read()
72 return wl->ops->prepare_read(wl, rx_desc, len); in wlcore_hw_prepare_read()
[all …]
/Linux-v4.19/drivers/mfd/
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-v4.19/drivers/mtd/tests/
Doobtest.c71 struct mtd_oob_ops ops; in write_eraseblock() local
77 ops.mode = MTD_OPS_AUTO_OOB; in write_eraseblock()
78 ops.len = 0; in write_eraseblock()
79 ops.retlen = 0; in write_eraseblock()
80 ops.ooblen = use_len; in write_eraseblock()
81 ops.oobretlen = 0; in write_eraseblock()
82 ops.ooboffs = use_offset; in write_eraseblock()
83 ops.datbuf = NULL; in write_eraseblock()
84 ops.oobbuf = writebuf + (use_len_max * i) + use_offset; in write_eraseblock()
85 err = mtd_write_oob(mtd, addr, &ops); in write_eraseblock()
[all …]
/Linux-v4.19/arch/s390/appldata/
Dappldata_base.c128 struct appldata_ops *ops; in appldata_work_fn() local
132 ops = list_entry(lh, struct appldata_ops, list); in appldata_work_fn()
133 if (ops->active == 1) { in appldata_work_fn()
134 ops->callback(ops->data); in appldata_work_fn()
275 struct appldata_ops *ops = NULL, *tmp_ops; in appldata_generic_handler() local
300 ops = ctl->data; in appldata_generic_handler()
301 if (!try_module_get(ops->owner)) { // protect this function in appldata_generic_handler()
307 active = ops->active; in appldata_generic_handler()
310 module_put(ops->owner); in appldata_generic_handler()
315 if (active && (ops->active == 0)) { in appldata_generic_handler()
[all …]
/Linux-v4.19/net/netfilter/
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-v4.19/drivers/base/
Dsyscore.c21 void register_syscore_ops(struct syscore_ops *ops) in register_syscore_ops() argument
24 list_add_tail(&ops->node, &syscore_ops_list); in register_syscore_ops()
33 void unregister_syscore_ops(struct syscore_ops *ops) in unregister_syscore_ops() argument
36 list_del(&ops->node); in unregister_syscore_ops()
49 struct syscore_ops *ops; in syscore_suspend() local
62 list_for_each_entry_reverse(ops, &syscore_ops_list, node) in syscore_suspend()
63 if (ops->suspend) { in syscore_suspend()
65 pr_info("PM: Calling %pF\n", ops->suspend); in syscore_suspend()
66 ret = ops->suspend(); in syscore_suspend()
70 "Interrupts enabled after %pF\n", ops->suspend); in syscore_suspend()
[all …]
/Linux-v4.19/net/dsa/
Dmaster.c20 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_ethtool_stats() local
25 if (ops->get_sset_count && ops->get_ethtool_stats) { in dsa_master_get_ethtool_stats()
26 count = ops->get_sset_count(dev, ETH_SS_STATS); in dsa_master_get_ethtool_stats()
27 ops->get_ethtool_stats(dev, stats, data); in dsa_master_get_ethtool_stats()
30 if (ds->ops->get_ethtool_stats) in dsa_master_get_ethtool_stats()
31 ds->ops->get_ethtool_stats(ds, port, data + count); in dsa_master_get_ethtool_stats()
39 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_ethtool_phy_stats() local
44 if (dev->phydev && !ops->get_ethtool_phy_stats) { in dsa_master_get_ethtool_phy_stats()
48 } else if (ops->get_sset_count && ops->get_ethtool_phy_stats) { in dsa_master_get_ethtool_phy_stats()
49 count = ops->get_sset_count(dev, ETH_SS_PHY_STATS); in dsa_master_get_ethtool_phy_stats()
[all …]
/Linux-v4.19/drivers/media/v4l2-core/
Dv4l2-dev.c507 #define SET_VALID_IOCTL(ops, cmd, op) \ argument
508 if (ops->op) \
527 const struct v4l2_ioctl_ops *ops = vdev->ioctl_ops; in determine_valid_ioctls() local
540 SET_VALID_IOCTL(ops, VIDIOC_QUERYCAP, vidioc_querycap); in determine_valid_ioctls()
548 if (vdev->ctrl_handler || ops->vidioc_queryctrl) in determine_valid_ioctls()
550 if (vdev->ctrl_handler || ops->vidioc_query_ext_ctrl) in determine_valid_ioctls()
552 if (vdev->ctrl_handler || ops->vidioc_g_ctrl || ops->vidioc_g_ext_ctrls) in determine_valid_ioctls()
554 if (vdev->ctrl_handler || ops->vidioc_s_ctrl || ops->vidioc_s_ext_ctrls) in determine_valid_ioctls()
556 if (vdev->ctrl_handler || ops->vidioc_g_ext_ctrls) in determine_valid_ioctls()
558 if (vdev->ctrl_handler || ops->vidioc_s_ext_ctrls) in determine_valid_ioctls()
[all …]
/Linux-v4.19/net/core/
Dlwtunnel.c75 int lwtunnel_encap_add_ops(const struct lwtunnel_encap_ops *ops, in lwtunnel_encap_add_ops() argument
83 NULL, ops) ? 0 : -1; in lwtunnel_encap_add_ops()
87 int lwtunnel_encap_del_ops(const struct lwtunnel_encap_ops *ops, in lwtunnel_encap_del_ops() argument
98 ops, NULL) == ops) ? 0 : -1; in lwtunnel_encap_del_ops()
111 const struct lwtunnel_encap_ops *ops; in lwtunnel_build_state() local
124 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state()
125 if (likely(ops && ops->build_state && try_module_get(ops->owner))) { in lwtunnel_build_state()
127 ret = ops->build_state(encap, family, cfg, lws, extack); in lwtunnel_build_state()
129 module_put(ops->owner); in lwtunnel_build_state()
147 const struct lwtunnel_encap_ops *ops; in lwtunnel_valid_encap_type() local
[all …]
Dfib_rules.c44 int fib_default_rule_add(struct fib_rules_ops *ops, in fib_default_rule_add() argument
49 r = kzalloc(ops->rule_size, GFP_KERNEL); in fib_default_rule_add()
59 r->fr_net = ops->fro_net; in fib_default_rule_add()
67 list_add_tail(&r->list, &ops->rules_list); in fib_default_rule_add()
72 static u32 fib_default_rule_pref(struct fib_rules_ops *ops) in fib_default_rule_pref() argument
77 if (!list_empty(&ops->rules_list)) { in fib_default_rule_pref()
78 pos = ops->rules_list.next; in fib_default_rule_pref()
79 if (pos->next != &ops->rules_list) { in fib_default_rule_pref()
90 struct fib_rules_ops *ops, struct nlmsghdr *nlh,
95 struct fib_rules_ops *ops; in lookup_rules_ops() local
[all …]
/Linux-v4.19/kernel/livepatch/
Dpatch.c39 struct klp_ops *ops; in klp_find_ops() local
42 list_for_each_entry(ops, &klp_ops, node) { in klp_find_ops()
43 func = list_first_entry(&ops->func_stack, struct klp_func, in klp_find_ops()
46 return ops; in klp_find_ops()
57 struct klp_ops *ops; in klp_ftrace_handler() local
61 ops = container_of(fops, struct klp_ops, fops); in klp_ftrace_handler()
69 func = list_first_or_null_rcu(&ops->func_stack, struct klp_func, in klp_ftrace_handler()
116 if (&func->stack_node == &ops->func_stack) in klp_ftrace_handler()
141 struct klp_ops *ops; in klp_unpatch_func() local
148 ops = klp_find_ops(func->old_addr); in klp_unpatch_func()
[all …]
/Linux-v4.19/net/netlabel/
Dnetlabel_calipso.c358 .ops = netlbl_calipso_ops,
388 netlbl_calipso_ops_register(const struct netlbl_calipso_ops *ops) in netlbl_calipso_ops_register() argument
390 return xchg(&calipso_ops, ops); in netlbl_calipso_ops_register()
416 const struct netlbl_calipso_ops *ops = netlbl_calipso_ops_get(); in calipso_doi_add() local
418 if (ops) in calipso_doi_add()
419 ret_val = ops->doi_add(doi_def, audit_info); in calipso_doi_add()
433 const struct netlbl_calipso_ops *ops = netlbl_calipso_ops_get(); in calipso_doi_free() local
435 if (ops) in calipso_doi_free()
436 ops->doi_free(doi_def); in calipso_doi_free()
453 const struct netlbl_calipso_ops *ops = netlbl_calipso_ops_get(); in calipso_doi_remove() local
[all …]
/Linux-v4.19/drivers/media/platform/qcom/venus/
Dhfi.c70 ret = core->ops->core_init(core); in hfi_core_init()
116 ret = core->ops->core_deinit(core); in hfi_core_deinit()
131 return core->ops->suspend(core); in hfi_core_suspend()
139 return core->ops->resume(core); in hfi_core_resume()
144 return core->ops->core_trigger_ssr(core, type); in hfi_core_trigger_ssr()
153 ret = core->ops->core_ping(core, 0xbeef); in hfi_core_ping()
184 int hfi_session_create(struct venus_inst *inst, const struct hfi_inst_ops *ops) in hfi_session_create() argument
188 if (!ops) in hfi_session_create()
193 inst->ops = ops; in hfi_session_create()
207 const struct hfi_ops *ops = core->ops; in hfi_session_init() local
[all …]
/Linux-v4.19/net/mac80211/
Ddriver-ops.h36 local->ops->tx(&local->hw, control, skb); in drv_tx()
42 if (local->ops->sync_rx_queues) { in drv_sync_rx_queues()
44 local->ops->sync_rx_queues(&local->hw); in drv_sync_rx_queues()
53 if (local->ops->get_et_strings) { in drv_get_et_strings()
55 local->ops->get_et_strings(&local->hw, &sdata->vif, sset, data); in drv_get_et_strings()
65 if (local->ops->get_et_stats) { in drv_get_et_stats()
67 local->ops->get_et_stats(&local->hw, &sdata->vif, stats, data); in drv_get_et_stats()
77 if (local->ops->get_et_sset_count) { in drv_get_et_sset_count()
79 rv = local->ops->get_et_sset_count(&local->hw, &sdata->vif, in drv_get_et_sset_count()
98 ret = local->ops->suspend(&local->hw, wowlan); in drv_suspend()
[all …]
/Linux-v4.19/tools/perf/arch/s390/annotate/
Dinstructions.c4 static int s390_call__parse(struct arch *arch, struct ins_operands *ops, in s390_call__parse() argument
13 tok = strchr(ops->raw, ','); in s390_call__parse()
17 ops->target.addr = strtoull(tok + 1, &endptr, 16); in s390_call__parse()
34 ops->target.name = strdup(name); in s390_call__parse()
37 if (ops->target.name == NULL) in s390_call__parse()
39 target.addr = map__objdump_2mem(map, ops->target.addr); in s390_call__parse()
42 map__rip_2objdump(target.map, map->map_ip(target.map, target.addr)) == ops->target.addr) in s390_call__parse()
43 ops->target.sym = target.sym; in s390_call__parse()
49 struct ins_operands *ops);
57 struct ins_operands *ops, in s390_mov__parse() argument
[all …]
/Linux-v4.19/drivers/video/fbdev/core/
Dfbcon_rotate.c23 struct fbcon_ops *ops = info->fbcon_par; in fbcon_rotate_font() local
29 if (vc->vc_font.data == ops->fontdata && in fbcon_rotate_font()
30 ops->p->con_rotate == ops->cur_rotate) in fbcon_rotate_font()
33 src = ops->fontdata = vc->vc_font.data; in fbcon_rotate_font()
34 ops->cur_rotate = ops->p->con_rotate; in fbcon_rotate_font()
35 len = (!ops->p->userfont) ? 256 : FNTCHARCNT(src); in fbcon_rotate_font()
40 if (ops->rotate == FB_ROTATE_CW || in fbcon_rotate_font()
41 ops->rotate == FB_ROTATE_CCW) in fbcon_rotate_font()
48 if (ops->fd_size < d_cellsize * len) { in fbcon_rotate_font()
56 ops->fd_size = d_cellsize * len; in fbcon_rotate_font()
[all …]
Dfbcon_ccw.c66 struct fbcon_ops *ops = info->fbcon_par; in ccw_bmove() local
68 u32 vyres = GETVYRES(ops->p->scrollmode, info); in ccw_bmove()
83 struct fbcon_ops *ops = info->fbcon_par; in ccw_clear() local
86 u32 vyres = GETVYRES(ops->p->scrollmode, info); in ccw_clear()
103 struct fbcon_ops *ops = info->fbcon_par; in ccw_putcs_aligned() local
109 src = ops->fontbuffer + (scr_readw(s--) & charmask)*cellsize; in ccw_putcs_aligned()
134 struct fbcon_ops *ops = info->fbcon_par; in ccw_putcs() local
143 u32 vyres = GETVYRES(ops->p->scrollmode, info); in ccw_putcs()
145 if (!ops->fontbuffer) in ccw_putcs()
225 struct fbcon_ops *ops = info->fbcon_par; in ccw_cursor() local
[all …]
Dfbcon_cw.c51 struct fbcon_ops *ops = info->fbcon_par; in cw_bmove() local
53 u32 vxres = GETVXRES(ops->p->scrollmode, info); in cw_bmove()
68 struct fbcon_ops *ops = info->fbcon_par; in cw_clear() local
71 u32 vxres = GETVXRES(ops->p->scrollmode, info); in cw_clear()
88 struct fbcon_ops *ops = info->fbcon_par; in cw_putcs_aligned() local
94 src = ops->fontbuffer + (scr_readw(s++) & charmask)*cellsize; in cw_putcs_aligned()
119 struct fbcon_ops *ops = info->fbcon_par; in cw_putcs() local
128 u32 vxres = GETVXRES(ops->p->scrollmode, info); in cw_putcs()
130 if (!ops->fontbuffer) in cw_putcs()
208 struct fbcon_ops *ops = info->fbcon_par; in cw_cursor() local
[all …]
Dfbcon_ud.c51 struct fbcon_ops *ops = info->fbcon_par; in ud_bmove() local
53 u32 vyres = GETVYRES(ops->p->scrollmode, info); in ud_bmove()
54 u32 vxres = GETVXRES(ops->p->scrollmode, info); in ud_bmove()
69 struct fbcon_ops *ops = info->fbcon_par; in ud_clear() local
72 u32 vyres = GETVYRES(ops->p->scrollmode, info); in ud_clear()
73 u32 vxres = GETVXRES(ops->p->scrollmode, info); in ud_clear()
90 struct fbcon_ops *ops = info->fbcon_par; in ud_putcs_aligned() local
96 src = ops->fontbuffer + (scr_readw(s--) & charmask)*cellsize; in ud_putcs_aligned()
123 struct fbcon_ops *ops = info->fbcon_par; in ud_putcs_unaligned() local
131 src = ops->fontbuffer + (scr_readw(s--) & charmask)*cellsize; in ud_putcs_unaligned()
[all …]
/Linux-v4.19/kernel/trace/
Dtrace_functions.c39 struct ftrace_ops *ops; in allocate_ftrace_ops() local
41 ops = kzalloc(sizeof(*ops), GFP_KERNEL); in allocate_ftrace_ops()
42 if (!ops) in allocate_ftrace_ops()
46 ops->func = function_trace_call; in allocate_ftrace_ops()
47 ops->flags = FTRACE_OPS_FL_RECURSION_SAFE | FTRACE_OPS_FL_PID; in allocate_ftrace_ops()
49 tr->ops = ops; in allocate_ftrace_ops()
50 ops->private = tr; in allocate_ftrace_ops()
71 ftrace_create_filter_files(tr->ops, parent); in ftrace_create_function_files()
78 ftrace_destroy_filter_files(tr->ops); in ftrace_destroy_function_files()
79 kfree(tr->ops); in ftrace_destroy_function_files()
[all …]
/Linux-v4.19/drivers/misc/c2port/
Dcore.c66 struct c2port_ops *ops = dev->ops; in c2port_reset() local
72 ops->c2ck_set(dev, 0); in c2port_reset()
74 ops->c2ck_set(dev, 1); in c2port_reset()
82 struct c2port_ops *ops = dev->ops; in c2port_strobe_ck() local
90 ops->c2ck_set(dev, 0); in c2port_strobe_ck()
92 ops->c2ck_set(dev, 1); in c2port_strobe_ck()
104 struct c2port_ops *ops = dev->ops; in c2port_write_ar() local
111 ops->c2d_dir(dev, 0); in c2port_write_ar()
112 ops->c2d_set(dev, 1); in c2port_write_ar()
114 ops->c2d_set(dev, 1); in c2port_write_ar()
[all …]
/Linux-v4.19/lib/
Dtextsearch.c147 int textsearch_register(struct ts_ops *ops) in textsearch_register() argument
152 if (ops->name == NULL || ops->find == NULL || ops->init == NULL || in textsearch_register()
153 ops->get_pattern == NULL || ops->get_pattern_len == NULL) in textsearch_register()
158 if (!strcmp(ops->name, o->name)) in textsearch_register()
162 list_add_tail_rcu(&ops->list, &ts_ops); in textsearch_register()
182 int textsearch_unregister(struct ts_ops *ops) in textsearch_unregister() argument
189 if (o == ops) { in textsearch_unregister()
272 struct ts_ops *ops; in textsearch_prepare() local
277 ops = lookup_ts_algo(algo); in textsearch_prepare()
284 if (ops == NULL && flags & TS_AUTOLOAD) { in textsearch_prepare()
[all …]
/Linux-v4.19/drivers/net/ethernet/intel/igb/
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 …]

12345678910>>...155