Home
last modified time | relevance | path

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

1234567891011

/include/linux/
Dntb.h152 static inline int ntb_client_ops_is_valid(const struct ntb_client_ops *ops) in ntb_client_ops_is_valid() argument
156 ops->probe && in ntb_client_ops_is_valid()
157 ops->remove && in ntb_client_ops_is_valid()
171 static inline int ntb_ctx_ops_is_valid(const struct ntb_ctx_ops *ops) in ntb_ctx_ops_is_valid() argument
264 static inline int ntb_dev_ops_is_valid(const struct ntb_dev_ops *ops) in ntb_dev_ops_is_valid() argument
268 ops->mw_count && in ntb_dev_ops_is_valid()
269 ops->mw_get_range && in ntb_dev_ops_is_valid()
270 ops->mw_set_trans && in ntb_dev_ops_is_valid()
272 ops->link_is_up && in ntb_dev_ops_is_valid()
273 ops->link_enable && in ntb_dev_ops_is_valid()
[all …]
Dseqno-fence.h34 const struct fence_ops *ops; member
52 if (fence->ops != &seqno_fence_ops) in to_seqno_fence()
99 const struct fence_ops *ops) in seqno_fence_init() argument
101 BUG_ON(!fence || !sync_buf || !ops); in seqno_fence_init()
102 BUG_ON(!ops->wait || !ops->enable_signaling || in seqno_fence_init()
103 !ops->get_driver_name || !ops->get_timeline_name); in seqno_fence_init()
109 fence->ops = ops; in seqno_fence_init()
Ddma-mapping.h185 struct dma_map_ops *ops = get_dma_ops(dev); in dma_map_single_attrs() local
190 addr = ops->map_page(dev, virt_to_page(ptr), in dma_map_single_attrs()
204 struct dma_map_ops *ops = get_dma_ops(dev); in dma_unmap_single_attrs() local
207 if (ops->unmap_page) in dma_unmap_single_attrs()
208 ops->unmap_page(dev, addr, size, dir, attrs); in dma_unmap_single_attrs()
220 struct dma_map_ops *ops = get_dma_ops(dev); in dma_map_sg_attrs() local
227 ents = ops->map_sg(dev, sg, nents, dir, attrs); in dma_map_sg_attrs()
238 struct dma_map_ops *ops = get_dma_ops(dev); in dma_unmap_sg_attrs() local
242 if (ops->unmap_sg) in dma_unmap_sg_attrs()
243 ops->unmap_sg(dev, sg, nents, dir, attrs); in dma_unmap_sg_attrs()
[all …]
Dassoc_array.h69 const struct assoc_array_ops *ops,
72 const struct assoc_array_ops *ops);
74 const struct assoc_array_ops *ops,
80 const struct assoc_array_ops *ops,
83 const struct assoc_array_ops *ops);
87 const struct assoc_array_ops *ops,
Dpipe_fs_i.h23 const struct pipe_buf_operations *ops; member
121 buf->ops->get(pipe, buf); in pipe_buf_get()
132 const struct pipe_buf_operations *ops = buf->ops; in pipe_buf_release() local
134 buf->ops = NULL; in pipe_buf_release()
135 ops->release(pipe, buf); in pipe_buf_release()
146 return buf->ops->confirm(pipe, buf); in pipe_buf_confirm()
157 return buf->ops->steal(pipe, buf); in pipe_buf_steal()
Dftrace.h65 ftrace_func_t ftrace_ops_get_func(struct ftrace_ops *ops);
194 int register_ftrace_function(struct ftrace_ops *ops);
195 int unregister_ftrace_function(struct ftrace_ops *ops);
207 static inline void ftrace_function_local_enable(struct ftrace_ops *ops) in ftrace_function_local_enable() argument
209 if (WARN_ON_ONCE(!(ops->flags & FTRACE_OPS_FL_PER_CPU))) in ftrace_function_local_enable()
212 (*this_cpu_ptr(ops->disabled))--; in ftrace_function_local_enable()
224 static inline void ftrace_function_local_disable(struct ftrace_ops *ops) in ftrace_function_local_disable() argument
226 if (WARN_ON_ONCE(!(ops->flags & FTRACE_OPS_FL_PER_CPU))) in ftrace_function_local_disable()
229 (*this_cpu_ptr(ops->disabled))++; in ftrace_function_local_disable()
241 static inline int ftrace_function_local_disabled(struct ftrace_ops *ops) in ftrace_function_local_disabled() argument
[all …]
Diomap.h73 struct iomap_ops *ops);
75 struct iomap_ops *ops);
77 bool *did_zero, struct iomap_ops *ops);
79 struct iomap_ops *ops);
81 struct iomap_ops *ops);
83 loff_t start, loff_t len, struct iomap_ops *ops);
Dlcd.h73 struct lcd_ops *ops; member
108 if (ld->ops && ld->ops->set_power) in lcd_set_power()
109 ld->ops->set_power(ld, power); in lcd_set_power()
114 struct device *parent, void *devdata, struct lcd_ops *ops);
117 void *devdata, struct lcd_ops *ops);
Dmoduleparam.h71 const struct kernel_param_ops *ops; member
96 const struct kernel_param_ops *ops; member
166 #define module_param_cb(name, ops, arg, perm) \ argument
167 __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
169 #define module_param_cb_unsafe(name, ops, arg, perm) \ argument
170 __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, \
182 #define __level_param_cb(name, ops, arg, perm, level) \ argument
183 __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, level, 0)
185 #define core_param_cb(name, ops, arg, perm) \ argument
186 __level_param_cb(name, ops, arg, perm, 1)
[all …]
Dirqdomain.h152 const struct irq_domain_ops *ops; member
204 const struct irq_domain_ops *ops,
209 const struct irq_domain_ops *ops,
215 const struct irq_domain_ops *ops,
265 const struct irq_domain_ops *ops, in irq_domain_add_linear() argument
268 return __irq_domain_add(of_node_to_fwnode(of_node), size, size, 0, ops, host_data); in irq_domain_add_linear()
272 const struct irq_domain_ops *ops, in irq_domain_add_nomap() argument
275 return __irq_domain_add(of_node_to_fwnode(of_node), 0, max_irq, max_irq, ops, host_data); in irq_domain_add_nomap()
279 const struct irq_domain_ops *ops, in irq_domain_add_legacy_isa() argument
282 return irq_domain_add_legacy(of_node, NUM_ISA_INTERRUPTS, 0, 0, ops, in irq_domain_add_legacy_isa()
[all …]
Dbacklight.h104 const struct backlight_ops *ops; member
125 if (bd->ops && bd->ops->update_status) in backlight_update_status()
126 ret = bd->ops->update_status(bd); in backlight_update_status()
133 struct device *dev, void *devdata, const struct backlight_ops *ops,
137 void *devdata, const struct backlight_ops *ops,
Dhost1x.h44 const struct host1x_client_ops *ops; member
72 const struct host1x_bo_ops *ops; member
76 const struct host1x_bo_ops *ops) in host1x_bo_init() argument
78 bo->ops = ops; in host1x_bo_init()
83 return bo->ops->get(bo); in host1x_bo_get()
88 bo->ops->put(bo); in host1x_bo_put()
94 return bo->ops->pin(bo, sgt); in host1x_bo_pin()
99 bo->ops->unpin(bo, sgt); in host1x_bo_unpin()
104 return bo->ops->mmap(bo); in host1x_bo_mmap()
109 bo->ops->munmap(bo, addr); in host1x_bo_munmap()
[all …]
Dpci-ecam.h42 struct pci_ecam_ops *ops; member
53 struct pci_ecam_ops *ops);
65 struct pci_ecam_ops *ops);
Dsyscore_ops.h21 extern void register_syscore_ops(struct syscore_ops *ops);
22 extern void unregister_syscore_ops(struct syscore_ops *ops);
Dpowercap.h81 const struct powercap_control_type_ops *ops; member
153 const struct powercap_zone_ops *ops; member
211 const struct powercap_zone_constraint_ops *ops; member
268 const struct powercap_control_type_ops *ops);
310 const struct powercap_zone_ops *ops,
Drbtree_latch.h144 const struct latch_tree_ops *ops) in latch_tree_insert() argument
147 __lt_insert(node, root, 0, ops->less); in latch_tree_insert()
149 __lt_insert(node, root, 1, ops->less); in latch_tree_insert()
171 const struct latch_tree_ops *ops) in latch_tree_erase() argument
199 const struct latch_tree_ops *ops) in latch_tree_find() argument
206 node = __lt_find(key, root, seq & 1, ops->comp); in latch_tree_find()
/include/linux/usb/
Dotg-fsm.h205 struct otg_fsm_ops *ops; member
233 if (!fsm->ops->chrg_vbus) in otg_chrg_vbus()
235 fsm->ops->chrg_vbus(fsm, on); in otg_chrg_vbus()
241 if (!fsm->ops->drv_vbus) in otg_drv_vbus()
245 fsm->ops->drv_vbus(fsm, on); in otg_drv_vbus()
252 if (!fsm->ops->loc_conn) in otg_loc_conn()
256 fsm->ops->loc_conn(fsm, on); in otg_loc_conn()
263 if (!fsm->ops->loc_sof) in otg_loc_sof()
267 fsm->ops->loc_sof(fsm, on); in otg_loc_sof()
274 if (!fsm->ops->start_pulse) in otg_start_pulse()
[all …]
/include/kvm/
Diodev.h45 const struct kvm_io_device_ops *ops; member
49 const struct kvm_io_device_ops *ops) in kvm_iodevice_init() argument
51 dev->ops = ops; in kvm_iodevice_init()
58 return dev->ops->read ? dev->ops->read(vcpu, dev, addr, l, v) in kvm_iodevice_read()
66 return dev->ops->write ? dev->ops->write(vcpu, dev, addr, l, v) in kvm_iodevice_write()
72 if (dev->ops->destructor) in kvm_iodevice_destructor()
73 dev->ops->destructor(dev); in kvm_iodevice_destructor()
/include/trace/events/
Dfence.h19 __string(driver, fence->ops->get_driver_name(fence))
20 __string(timeline, fence->ops->get_timeline_name(fence))
24 __string(waiting_driver, f1->ops->get_driver_name(f1))
25 __string(waiting_timeline, f1->ops->get_timeline_name(f1))
31 __assign_str(driver, fence->ops->get_driver_name(fence))
32 __assign_str(timeline, fence->ops->get_timeline_name(fence))
36 __assign_str(waiting_driver, f1->ops->get_driver_name(f1))
37 __assign_str(waiting_timeline, f1->ops->get_timeline_name(f1))
58 __string(driver, fence->ops->get_driver_name(fence))
59 __string(timeline, fence->ops->get_timeline_name(fence))
[all …]
/include/net/
Dip6_tunnel.h72 int ip6_tnl_encap_add_ops(const struct ip6_tnl_encap_ops *ops,
74 int ip6_tnl_encap_del_ops(const struct ip6_tnl_encap_ops *ops,
81 const struct ip6_tnl_encap_ops *ops; in ip6_encap_hlen() local
91 ops = rcu_dereference(ip6tun_encaps[e->type]); in ip6_encap_hlen()
92 if (likely(ops && ops->encap_hlen)) in ip6_encap_hlen()
93 hlen = ops->encap_hlen(e); in ip6_encap_hlen()
102 const struct ip6_tnl_encap_ops *ops; in ip6_tnl_encap() local
112 ops = rcu_dereference(ip6tun_encaps[t->encap.type]); in ip6_tnl_encap()
113 if (likely(ops && ops->build_header)) in ip6_tnl_encap()
114 ret = ops->build_header(skb, &t->encap, protocol, fl6); in ip6_tnl_encap()
Drtnetlink.h108 int __rtnl_link_register(struct rtnl_link_ops *ops);
109 void __rtnl_link_unregister(struct rtnl_link_ops *ops);
111 int rtnl_link_register(struct rtnl_link_ops *ops);
112 void rtnl_link_unregister(struct rtnl_link_ops *ops);
144 void __rtnl_af_unregister(struct rtnl_af_ops *ops);
146 void rtnl_af_register(struct rtnl_af_ops *ops);
147 void rtnl_af_unregister(struct rtnl_af_ops *ops);
152 const struct rtnl_link_ops *ops,
Dact_api.h24 const struct tc_action_ops *ops; member
127 const struct tc_action_ops *ops; member
132 const struct tc_action_ops *ops, unsigned int mask) in tc_action_net_init() argument
139 tn->ops = ops; in tc_action_net_init()
146 void tcf_hashinfo_destroy(const struct tc_action_ops *ops,
151 tcf_hashinfo_destroy(tn->ops, tn->hinfo); in tc_action_net_exit()
157 const struct tc_action_ops *ops);
163 struct tc_action **a, const struct tc_action_ops *ops, int bind,
175 int tcf_register_action(struct tc_action_ops *a, struct pernet_operations *ops);
177 struct pernet_operations *ops);
[all …]
Dgenetlink.h58 int (*pre_doit)(const struct genl_ops *ops,
61 void (*post_doit)(const struct genl_ops *ops,
67 const struct genl_ops * ops; /* private */ member
164 const struct genl_ops *ops, size_t n_ops, in _genl_register_family_with_ops_grps() argument
169 family->ops = ops; in _genl_register_family_with_ops_grps()
176 #define genl_register_family_with_ops(family, ops) \ argument
178 (ops), ARRAY_SIZE(ops), \
180 #define genl_register_family_with_ops_groups(family, ops, grps) \ argument
182 (ops), ARRAY_SIZE(ops), \
/include/net/tc_act/
Dtc_mirred.h20 if (a->ops && a->ops->type == TCA_ACT_MIRRED) in is_tcf_mirred_redirect()
29 if (a->ops && a->ops->type == TCA_ACT_MIRRED) in is_tcf_mirred_mirror()
/include/video/
Dmmp_disp.h172 struct mmp_overlay_ops *ops; member
243 struct mmp_path_ops ops; member
255 path->ops.set_mode(path, mode); in mmp_path_set_mode()
260 path->ops.set_onoff(path, status); in mmp_path_set_onoff()
266 return path->ops.get_modelist(path, modelist); in mmp_path_get_modelist()
273 return path->ops.get_overlay(path, overlay_id); in mmp_path_get_overlay()
280 overlay->ops->set_fetch(overlay, fetch_id); in mmp_overlay_set_fetch()
286 overlay->ops->set_onoff(overlay, status); in mmp_overlay_set_onoff()
292 overlay->ops->set_win(overlay, win); in mmp_overlay_set_win()
298 return overlay->ops->set_addr(overlay, addr); in mmp_overlay_set_addr()

1234567891011