Home
last modified time | relevance | path

Searched refs:ops (Results 1 – 200 of 3593) sorted by relevance

12345678910>>...18

/linux-4.1.27/security/
Dcapability.c940 #define set_to_cap_if_null(ops, function) \ argument
942 if (!ops->function) { \
943 ops->function = cap_##function; \
949 void __init security_fixup_ops(struct security_operations *ops) in security_fixup_ops() argument
951 set_to_cap_if_null(ops, binder_set_context_mgr); in security_fixup_ops()
952 set_to_cap_if_null(ops, binder_transaction); in security_fixup_ops()
953 set_to_cap_if_null(ops, binder_transfer_binder); in security_fixup_ops()
954 set_to_cap_if_null(ops, binder_transfer_file); in security_fixup_ops()
955 set_to_cap_if_null(ops, ptrace_access_check); in security_fixup_ops()
956 set_to_cap_if_null(ops, ptrace_traceme); in security_fixup_ops()
[all …]
/linux-4.1.27/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-4.1.27/drivers/mfd/
Dabx500-core.c18 struct abx500_ops ops; member
22 static void lookup_ops(struct device *dev, struct abx500_ops **ops) in lookup_ops() argument
26 *ops = NULL; in lookup_ops()
29 *ops = &dev_entry->ops; in lookup_ops()
35 int abx500_register_ops(struct device *dev, struct abx500_ops *ops) in abx500_register_ops() argument
47 memcpy(&dev_entry->ops, ops, sizeof(struct abx500_ops)); in abx500_register_ops()
67 struct abx500_ops *ops; in abx500_set_register_interruptible() local
69 lookup_ops(dev->parent, &ops); in abx500_set_register_interruptible()
70 if ((ops != NULL) && (ops->set_register != NULL)) in abx500_set_register_interruptible()
71 return ops->set_register(dev, bank, reg, value); in abx500_set_register_interruptible()
[all …]
/linux-4.1.27/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 …]
Dreadtest.c62 struct mtd_oob_ops ops; in read_eraseblock_by_page() local
64 ops.mode = MTD_OPS_PLACE_OOB; in read_eraseblock_by_page()
65 ops.len = 0; in read_eraseblock_by_page()
66 ops.retlen = 0; in read_eraseblock_by_page()
67 ops.ooblen = mtd->oobsize; in read_eraseblock_by_page()
68 ops.oobretlen = 0; in read_eraseblock_by_page()
69 ops.ooboffs = 0; in read_eraseblock_by_page()
70 ops.datbuf = NULL; in read_eraseblock_by_page()
71 ops.oobbuf = oobbuf; in read_eraseblock_by_page()
72 ret = mtd_read_oob(mtd, addr, &ops); in read_eraseblock_by_page()
[all …]
/linux-4.1.27/net/core/
Dfib_rules.c20 int fib_default_rule_add(struct fib_rules_ops *ops, in fib_default_rule_add() argument
25 r = kzalloc(ops->rule_size, GFP_KERNEL); in fib_default_rule_add()
34 r->fr_net = ops->fro_net; in fib_default_rule_add()
41 list_add_tail(&r->list, &ops->rules_list); in fib_default_rule_add()
46 u32 fib_default_rule_pref(struct fib_rules_ops *ops) in fib_default_rule_pref() argument
51 if (!list_empty(&ops->rules_list)) { in fib_default_rule_pref()
52 pos = ops->rules_list.next; in fib_default_rule_pref()
53 if (pos->next != &ops->rules_list) { in fib_default_rule_pref()
65 struct fib_rules_ops *ops, struct nlmsghdr *nlh,
70 struct fib_rules_ops *ops; in lookup_rules_ops() local
[all …]
Dnet_namespace.c93 static int ops_init(const struct pernet_operations *ops, struct net *net) in ops_init() argument
98 if (ops->id && ops->size) { in ops_init()
99 data = kzalloc(ops->size, GFP_KERNEL); in ops_init()
103 err = net_assign_generic(net, *ops->id, data); in ops_init()
108 if (ops->init) in ops_init()
109 err = ops->init(net); in ops_init()
120 static void ops_free(const struct pernet_operations *ops, struct net *net) in ops_free() argument
122 if (ops->id && ops->size) { in ops_free()
123 int id = *ops->id; in ops_free()
128 static void ops_exit_list(const struct pernet_operations *ops, in ops_exit_list() argument
[all …]
Dethtool.c190 const struct ethtool_ops *ops = dev->ethtool_ops; in __ethtool_get_sset_count() local
198 if (ops->get_sset_count && ops->get_strings) in __ethtool_get_sset_count()
199 return ops->get_sset_count(dev, sset); in __ethtool_get_sset_count()
207 const struct ethtool_ops *ops = dev->ethtool_ops; in __ethtool_get_strings() local
217 ops->get_strings(dev, stringset, data); in __ethtool_get_strings()
388 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_drvinfo() local
392 if (ops->get_drvinfo) { in ethtool_get_drvinfo()
393 ops->get_drvinfo(dev, &info); in ethtool_get_drvinfo()
407 if (ops->get_sset_count) { in ethtool_get_drvinfo()
410 rc = ops->get_sset_count(dev, ETH_SS_TEST); in ethtool_get_drvinfo()
[all …]
Drtnetlink.c281 const struct rtnl_link_ops *ops; in rtnl_link_ops_get() local
283 list_for_each_entry(ops, &link_ops, list) { in rtnl_link_ops_get()
284 if (!strcmp(ops->kind, kind)) in rtnl_link_ops_get()
285 return ops; in rtnl_link_ops_get()
300 int __rtnl_link_register(struct rtnl_link_ops *ops) in __rtnl_link_register() argument
302 if (rtnl_link_ops_get(ops->kind)) in __rtnl_link_register()
310 if (ops->setup && !ops->dellink) in __rtnl_link_register()
311 ops->dellink = unregister_netdevice_queue; in __rtnl_link_register()
313 list_add_tail(&ops->list, &link_ops); in __rtnl_link_register()
324 int rtnl_link_register(struct rtnl_link_ops *ops) in rtnl_link_register() argument
[all …]
Ddst.c162 void *dst_alloc(struct dst_ops *ops, struct net_device *dev, in dst_alloc() argument
167 if (ops->gc && dst_entries_get_fast(ops) > ops->gc_thresh) { in dst_alloc()
168 if (ops->gc(ops)) in dst_alloc()
171 dst = kmem_cache_alloc(ops->kmem_cachep, GFP_ATOMIC); in dst_alloc()
178 dst->ops = ops; in dst_alloc()
202 dst_entries_add(ops, 1); in dst_alloc()
245 dst_entries_add(dst->ops, -1); in dst_destroy()
247 if (dst->ops->destroy) in dst_destroy()
248 dst->ops->destroy(dst); in dst_destroy()
251 kmem_cache_free(dst->ops->kmem_cachep, dst); in dst_destroy()
[all …]
/linux-4.1.27/arch/s390/appldata/
Dappldata_base.c126 struct appldata_ops *ops; in appldata_work_fn() local
130 ops = list_entry(lh, struct appldata_ops, list); in appldata_work_fn()
131 if (ops->active == 1) { in appldata_work_fn()
132 ops->callback(ops->data); in appldata_work_fn()
293 struct appldata_ops *ops = NULL, *tmp_ops; in appldata_generic_handler() local
311 ops = ctl->data; in appldata_generic_handler()
312 if (!try_module_get(ops->owner)) { // protect this function in appldata_generic_handler()
320 module_put(ops->owner); in appldata_generic_handler()
324 strncpy(buf, ops->active ? "1\n" : "0\n", ARRAY_SIZE(buf)); in appldata_generic_handler()
329 module_put(ops->owner); in appldata_generic_handler()
[all …]
Dappldata_os.c84 static struct appldata_ops ops = { variable
139 if (ops.size != new_size) { in appldata_get_os_data()
140 if (ops.active) { in appldata_get_os_data()
143 (unsigned long) ops.data, new_size, in appldata_get_os_data()
144 ops.mod_lvl); in appldata_get_os_data()
151 (unsigned long) ops.data, ops.size, in appldata_get_os_data()
152 ops.mod_lvl); in appldata_get_os_data()
157 ops.size = new_size; in appldata_get_os_data()
192 ops.data = appldata_os_data; in appldata_os_init()
193 ops.callback = &appldata_get_os_data; in appldata_os_init()
[all …]
/linux-4.1.27/net/netfilter/
Dnf_sockopt.c26 struct nf_sockopt_ops *ops; in nf_register_sockopt() local
30 list_for_each_entry(ops, &nf_sockopts, list) { in nf_register_sockopt()
31 if (ops->pf == reg->pf in nf_register_sockopt()
32 && (overlap(ops->set_optmin, ops->set_optmax, in nf_register_sockopt()
34 || overlap(ops->get_optmin, ops->get_optmax, in nf_register_sockopt()
37 ops->set_optmin, ops->set_optmax, in nf_register_sockopt()
38 ops->get_optmin, ops->get_optmax, in nf_register_sockopt()
64 struct nf_sockopt_ops *ops; in nf_sockopt_find() local
67 list_for_each_entry(ops, &nf_sockopts, list) { in nf_sockopt_find()
68 if (ops->pf == pf) { in nf_sockopt_find()
[all …]
Dnft_compat.c62 struct xt_target *target = expr->ops->data; in nft_target_eval_xt()
88 struct xt_target *target = expr->ops->data; in nft_target_eval_bridge()
157 const struct nf_hook_ops *ops = &basechain->ops[0]; in nft_target_set_tgchk_param() local
159 par->hook_mask = 1 << ops->hooknum; in nft_target_set_tgchk_param()
210 struct xt_target *target = expr->ops->data; in nft_target_init()
251 struct xt_target *target = expr->ops->data; in nft_target_destroy()
267 const struct xt_target *target = expr->ops->data; in nft_target_dump()
285 struct xt_target *target = expr->ops->data; in nft_target_validate()
292 const struct nf_hook_ops *ops = &basechain->ops[0]; in nft_target_validate() local
294 hook_mask = 1 << ops->hooknum; in nft_target_validate()
[all …]
/linux-4.1.27/drivers/base/
Dsyscore.c22 void register_syscore_ops(struct syscore_ops *ops) in register_syscore_ops() argument
25 list_add_tail(&ops->node, &syscore_ops_list); in register_syscore_ops()
34 void unregister_syscore_ops(struct syscore_ops *ops) in unregister_syscore_ops() argument
37 list_del(&ops->node); in unregister_syscore_ops()
50 struct syscore_ops *ops; in syscore_suspend() local
63 list_for_each_entry_reverse(ops, &syscore_ops_list, node) in syscore_suspend()
64 if (ops->suspend) { in syscore_suspend()
66 pr_info("PM: Calling %pF\n", ops->suspend); in syscore_suspend()
67 ret = ops->suspend(); in syscore_suspend()
71 "Interrupts enabled after %pF\n", ops->suspend); in syscore_suspend()
[all …]
Dcomponent.c35 const struct component_master_ops *ops; member
46 const struct component_ops *ops; member
55 const struct component_master_ops *ops) in __master_find() argument
60 if (m->dev == dev && (!ops || m->ops == ops)) in __master_find()
120 return master->ops->add_components(master->dev, master); in find_components()
186 ret = master->ops->bind(master->dev); in try_to_bring_up_master()
219 master->ops->unbind(master->dev); in take_down_master()
287 const struct component_master_ops *ops, in component_master_add_with_match() argument
293 if (ops->add_components && match) in component_master_add_with_match()
308 master->ops = ops; in component_master_add_with_match()
[all …]
/linux-4.1.27/drivers/rtc/
Drtc-m48t86.c49 struct m48t86_ops *ops = dev_get_platdata(&pdev->dev); in m48t86_rtc_read_time() local
51 reg = ops->readbyte(M48T86_REG_B); in m48t86_rtc_read_time()
55 tm->tm_sec = ops->readbyte(M48T86_REG_SEC); in m48t86_rtc_read_time()
56 tm->tm_min = ops->readbyte(M48T86_REG_MIN); in m48t86_rtc_read_time()
57 tm->tm_hour = ops->readbyte(M48T86_REG_HOUR) & 0x3F; in m48t86_rtc_read_time()
58 tm->tm_mday = ops->readbyte(M48T86_REG_DOM); in m48t86_rtc_read_time()
60 tm->tm_mon = ops->readbyte(M48T86_REG_MONTH) - 1; in m48t86_rtc_read_time()
61 tm->tm_year = ops->readbyte(M48T86_REG_YEAR) + 100; in m48t86_rtc_read_time()
62 tm->tm_wday = ops->readbyte(M48T86_REG_DOW); in m48t86_rtc_read_time()
65 tm->tm_sec = bcd2bin(ops->readbyte(M48T86_REG_SEC)); in m48t86_rtc_read_time()
[all …]
/linux-4.1.27/tools/perf/util/
Dannotate.c31 static void ins__delete(struct ins_operands *ops) in ins__delete() argument
33 if (ops == NULL) in ins__delete()
35 zfree(&ops->source.raw); in ins__delete()
36 zfree(&ops->source.name); in ins__delete()
37 zfree(&ops->target.raw); in ins__delete()
38 zfree(&ops->target.name); in ins__delete()
42 struct ins_operands *ops) in ins__raw_scnprintf() argument
44 return scnprintf(bf, size, "%-6.6s %s", ins->name, ops->raw); in ins__raw_scnprintf()
48 struct ins_operands *ops) in ins__scnprintf() argument
50 if (ins->ops->scnprintf) in ins__scnprintf()
[all …]
/linux-4.1.27/drivers/media/v4l2-core/
Dv4l2-dev.c502 #define SET_VALID_IOCTL(ops, cmd, op) \ argument
503 if (ops->op) \
522 const struct v4l2_ioctl_ops *ops = vdev->ioctl_ops; in determine_valid_ioctls() local
534 SET_VALID_IOCTL(ops, VIDIOC_QUERYCAP, vidioc_querycap); in determine_valid_ioctls()
542 if (vdev->ctrl_handler || ops->vidioc_queryctrl) in determine_valid_ioctls()
544 if (vdev->ctrl_handler || ops->vidioc_query_ext_ctrl) in determine_valid_ioctls()
546 if (vdev->ctrl_handler || ops->vidioc_g_ctrl || ops->vidioc_g_ext_ctrls) in determine_valid_ioctls()
548 if (vdev->ctrl_handler || ops->vidioc_s_ctrl || ops->vidioc_s_ext_ctrls) in determine_valid_ioctls()
550 if (vdev->ctrl_handler || ops->vidioc_g_ext_ctrls) in determine_valid_ioctls()
552 if (vdev->ctrl_handler || ops->vidioc_s_ext_ctrls) in determine_valid_ioctls()
[all …]
Dv4l2-ioctl.c919 const struct v4l2_ioctl_ops *ops = vfd->ioctl_ops; in check_fmt() local
926 if (ops == NULL) in check_fmt()
932 (ops->vidioc_g_fmt_vid_cap || ops->vidioc_g_fmt_vid_cap_mplane)) in check_fmt()
936 if (is_vid && is_rx && ops->vidioc_g_fmt_vid_cap_mplane) in check_fmt()
940 if (is_vid && is_rx && ops->vidioc_g_fmt_vid_overlay) in check_fmt()
945 (ops->vidioc_g_fmt_vid_out || ops->vidioc_g_fmt_vid_out_mplane)) in check_fmt()
949 if (is_vid && is_tx && ops->vidioc_g_fmt_vid_out_mplane) in check_fmt()
953 if (is_vid && is_tx && ops->vidioc_g_fmt_vid_out_overlay) in check_fmt()
957 if (is_vbi && is_rx && ops->vidioc_g_fmt_vbi_cap) in check_fmt()
961 if (is_vbi && is_tx && ops->vidioc_g_fmt_vbi_out) in check_fmt()
[all …]
Dv4l2-clk.c100 ret = !try_module_get(clk->ops->owner); in v4l2_clk_lock_driver()
113 module_put(clk->ops->owner); in v4l2_clk_unlock_driver()
129 if (++clk->enable == 1 && clk->ops->enable) { in v4l2_clk_enable()
130 ret = clk->ops->enable(clk); in v4l2_clk_enable()
158 else if (!enable && clk->ops->disable) in v4l2_clk_disable()
159 clk->ops->disable(clk); in v4l2_clk_disable()
179 if (!clk->ops->get_rate) in v4l2_clk_get_rate()
182 ret = clk->ops->get_rate(clk); in v4l2_clk_get_rate()
208 if (!clk->ops->set_rate) in v4l2_clk_set_rate()
211 ret = clk->ops->set_rate(clk, rate); in v4l2_clk_set_rate()
[all …]
/linux-4.1.27/drivers/video/console/
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_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_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_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 …]
Dbitblit.c240 struct fbcon_ops *ops = info->fbcon_par; in bit_cursor() local
243 int y = real_y(ops->p, vc->vc_y); in bit_cursor()
253 ops->cursor_flash = 0; in bit_cursor()
263 if (ops->cursor_state.image.data != src || in bit_cursor()
264 ops->cursor_reset) { in bit_cursor()
265 ops->cursor_state.image.data = src; in bit_cursor()
275 kfree(ops->cursor_data); in bit_cursor()
276 ops->cursor_data = dst; in bit_cursor()
281 if (ops->cursor_state.image.fg_color != fg || in bit_cursor()
282 ops->cursor_state.image.bg_color != bg || in bit_cursor()
[all …]
Dfbcon.c198 struct fbcon_ops *ops = info->fbcon_par; in fbcon_set_rotation() local
201 ops->p->con_rotate < 4) in fbcon_set_rotation()
202 ops->rotate = ops->p->con_rotate; in fbcon_set_rotation()
204 ops->rotate = 0; in fbcon_set_rotation()
209 struct fbcon_ops *ops= info->fbcon_par; in fbcon_rotate() local
212 if (!ops || ops->currcon == -1) in fbcon_rotate()
215 fb_info = registered_fb[con2fb_map[ops->currcon]]; in fbcon_rotate()
218 struct display *p = &fb_display[ops->currcon]; in fbcon_rotate()
231 struct fbcon_ops *ops = info->fbcon_par; in fbcon_rotate_all() local
236 if (!ops || ops->currcon < 0 || rotate > 3) in fbcon_rotate_all()
[all …]
Dtileblit.c121 struct fbcon_ops *ops = info->fbcon_par; in tile_update_start() local
124 err = fb_pan_display(info, &ops->var); in tile_update_start()
125 ops->var.xoffset = info->var.xoffset; in tile_update_start()
126 ops->var.yoffset = info->var.yoffset; in tile_update_start()
127 ops->var.vmode = info->var.vmode; in tile_update_start()
134 struct fbcon_ops *ops = info->fbcon_par; in fbcon_set_tileops() local
136 ops->bmove = tile_bmove; in fbcon_set_tileops()
137 ops->clear = tile_clear; in fbcon_set_tileops()
138 ops->putcs = tile_putcs; in fbcon_set_tileops()
139 ops->clear_margins = tile_clear_margins; in fbcon_set_tileops()
[all …]
Dsoftcursor.c24 struct fbcon_ops *ops = info->fbcon_par; in soft_cursor() local
37 if (dsize + sizeof(struct fb_image) != ops->cursor_size) { in soft_cursor()
38 kfree(ops->cursor_src); in soft_cursor()
39 ops->cursor_size = dsize + sizeof(struct fb_image); in soft_cursor()
41 ops->cursor_src = kmalloc(ops->cursor_size, GFP_ATOMIC); in soft_cursor()
42 if (!ops->cursor_src) { in soft_cursor()
43 ops->cursor_size = 0; in soft_cursor()
48 src = ops->cursor_src + sizeof(struct fb_image); in soft_cursor()
49 image = (struct fb_image *)ops->cursor_src; in soft_cursor()
/linux-4.1.27/net/mac80211/
Ddriver-ops.h29 local->ops->tx(&local->hw, control, skb); in drv_tx()
36 if (local->ops->get_et_strings) { in drv_get_et_strings()
38 local->ops->get_et_strings(&local->hw, &sdata->vif, sset, data); in drv_get_et_strings()
48 if (local->ops->get_et_stats) { in drv_get_et_stats()
50 local->ops->get_et_stats(&local->hw, &sdata->vif, stats, data); in drv_get_et_stats()
60 if (local->ops->get_et_sset_count) { in drv_get_et_sset_count()
62 rv = local->ops->get_et_sset_count(&local->hw, &sdata->vif, in drv_get_et_sset_count()
78 ret = local->ops->start(&local->hw); in drv_start()
88 local->ops->stop(&local->hw); in drv_stop()
109 ret = local->ops->suspend(&local->hw, wowlan); in drv_suspend()
[all …]
Drate.h24 const struct rate_control_ops *ops; member
45 if (ref->ops->tx_status) in rate_control_tx_status()
46 ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); in rate_control_tx_status()
48 ref->ops->tx_status_noskb(ref->priv, sband, ista, priv_sta, info); in rate_control_tx_status()
64 if (WARN_ON_ONCE(!ref->ops->tx_status_noskb)) in rate_control_tx_status_noskb()
67 ref->ops->tx_status_noskb(ref->priv, sband, ista, priv_sta, info); in rate_control_tx_status_noskb()
94 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, in rate_control_rate_init()
109 if (ref && ref->ops->rate_update) { in rate_control_rate_update()
118 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def, in rate_control_rate_update()
129 return ref->ops->alloc_sta(ref->priv, sta, gfp); in rate_control_alloc_sta()
[all …]
Drate.c21 const struct rate_control_ops *ops; member
32 int ieee80211_rate_control_register(const struct rate_control_ops *ops) in ieee80211_rate_control_register() argument
36 if (!ops->name) in ieee80211_rate_control_register()
41 if (!strcmp(alg->ops->name, ops->name)) { in ieee80211_rate_control_register()
54 alg->ops = ops; in ieee80211_rate_control_register()
63 void ieee80211_rate_control_unregister(const struct rate_control_ops *ops) in ieee80211_rate_control_unregister() argument
69 if (alg->ops == ops) { in ieee80211_rate_control_unregister()
83 const struct rate_control_ops *ops = NULL; in ieee80211_try_rate_control_ops_get() local
90 if (!strcmp(alg->ops->name, name)) { in ieee80211_try_rate_control_ops_get()
91 ops = alg->ops; in ieee80211_try_rate_control_ops_get()
[all …]
/linux-4.1.27/drivers/misc/c2port/
Dcore.c67 struct c2port_ops *ops = dev->ops; in c2port_reset() local
73 ops->c2ck_set(dev, 0); in c2port_reset()
75 ops->c2ck_set(dev, 1); in c2port_reset()
83 struct c2port_ops *ops = dev->ops; in c2port_strobe_ck() local
91 ops->c2ck_set(dev, 0); in c2port_strobe_ck()
93 ops->c2ck_set(dev, 1); in c2port_strobe_ck()
105 struct c2port_ops *ops = dev->ops; in c2port_write_ar() local
112 ops->c2d_dir(dev, 0); in c2port_write_ar()
113 ops->c2d_set(dev, 1); in c2port_write_ar()
115 ops->c2d_set(dev, 1); in c2port_write_ar()
[all …]
/linux-4.1.27/lib/
Dtextsearch.c141 int textsearch_register(struct ts_ops *ops) in textsearch_register() argument
146 if (ops->name == NULL || ops->find == NULL || ops->init == NULL || in textsearch_register()
147 ops->get_pattern == NULL || ops->get_pattern_len == NULL) in textsearch_register()
152 if (!strcmp(ops->name, o->name)) in textsearch_register()
156 list_add_tail_rcu(&ops->list, &ts_ops); in textsearch_register()
176 int textsearch_unregister(struct ts_ops *ops) in textsearch_unregister() argument
183 if (o == ops) { in textsearch_unregister()
266 struct ts_ops *ops; in textsearch_prepare() local
271 ops = lookup_ts_algo(algo); in textsearch_prepare()
278 if (ops == NULL && flags & TS_AUTOLOAD) { in textsearch_prepare()
[all …]
/linux-4.1.27/net/mac802154/
Ddriver-ops.h14 return local->ops->xmit_async(&local->hw, skb); in drv_xmit_async()
25 return local->ops->xmit_sync(&local->hw, skb); in drv_xmit_sync()
35 return local->ops->start(&local->hw); in drv_start()
42 local->ops->stop(&local->hw); in drv_stop()
58 return local->ops->set_channel(&local->hw, page, channel); in drv_set_channel()
65 if (!local->ops->set_txpower) { in drv_set_tx_power()
70 return local->ops->set_txpower(&local->hw, dbm); in drv_set_tx_power()
78 if (!local->ops->set_cca_mode) { in drv_set_cca_mode()
83 return local->ops->set_cca_mode(&local->hw, cca); in drv_set_cca_mode()
90 if (!local->ops->set_lbt) { in drv_set_lbt_mode()
[all …]
Dmain.c55 ieee802154_alloc_hw(size_t priv_data_len, const struct ieee802154_ops *ops) in ieee802154_alloc_hw() argument
61 if (!ops || !(ops->xmit_async || ops->xmit_sync) || !ops->ed || in ieee802154_alloc_hw()
62 !ops->start || !ops->stop || !ops->set_channel) { in ieee802154_alloc_hw()
99 local->ops = ops; in ieee802154_alloc_hw()
/linux-4.1.27/include/asm-generic/
Ddma-mapping-common.h15 struct dma_map_ops *ops = get_dma_ops(dev); in dma_map_single_attrs() local
20 addr = ops->map_page(dev, virt_to_page(ptr), in dma_map_single_attrs()
34 struct dma_map_ops *ops = get_dma_ops(dev); in dma_unmap_single_attrs() local
37 if (ops->unmap_page) in dma_unmap_single_attrs()
38 ops->unmap_page(dev, addr, size, dir, attrs); in dma_unmap_single_attrs()
50 struct dma_map_ops *ops = get_dma_ops(dev); in dma_map_sg_attrs() local
57 ents = ops->map_sg(dev, sg, nents, dir, attrs); in dma_map_sg_attrs()
68 struct dma_map_ops *ops = get_dma_ops(dev); in dma_unmap_sg_attrs() local
72 if (ops->unmap_sg) in dma_unmap_sg_attrs()
73 ops->unmap_sg(dev, sg, nents, dir, attrs); in dma_unmap_sg_attrs()
[all …]
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_dcb.h40 struct qlcnic_dcb_ops *ops; member
53 if (dcb && dcb->ops->get_hw_capability) in qlcnic_dcb_get_hw_capability()
54 return dcb->ops->get_hw_capability(dcb); in qlcnic_dcb_get_hw_capability()
61 if (dcb && dcb->ops->free) in qlcnic_dcb_free()
62 dcb->ops->free(dcb); in qlcnic_dcb_free()
67 if (dcb && dcb->ops->attach) in qlcnic_dcb_attach()
68 return dcb->ops->attach(dcb); in qlcnic_dcb_attach()
76 if (dcb && dcb->ops->query_hw_capability) in qlcnic_dcb_query_hw_capability()
77 return dcb->ops->query_hw_capability(dcb, buf); in qlcnic_dcb_query_hw_capability()
84 if (dcb && dcb->ops->get_info) in qlcnic_dcb_get_info()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dwmi-ops.h158 if (WARN_ON_ONCE(!ar->wmi.ops->rx)) in ath10k_wmi_rx()
161 ar->wmi.ops->rx(ar, skb); in ath10k_wmi_rx()
169 if (!ar->wmi.ops->map_svc) in ath10k_wmi_map_svc()
172 ar->wmi.ops->map_svc(in, out, len); in ath10k_wmi_map_svc()
180 if (!ar->wmi.ops->pull_scan) in ath10k_wmi_pull_scan()
183 return ar->wmi.ops->pull_scan(ar, skb, arg); in ath10k_wmi_pull_scan()
190 if (!ar->wmi.ops->pull_mgmt_rx) in ath10k_wmi_pull_mgmt_rx()
193 return ar->wmi.ops->pull_mgmt_rx(ar, skb, arg); in ath10k_wmi_pull_mgmt_rx()
200 if (!ar->wmi.ops->pull_ch_info) in ath10k_wmi_pull_ch_info()
203 return ar->wmi.ops->pull_ch_info(ar, skb, arg); in ath10k_wmi_pull_ch_info()
[all …]
Dhif.h107 return ar->hif.ops->tx_sg(ar, pipe_id, items, n_items); in ath10k_hif_tx_sg()
113 return ar->hif.ops->diag_read(ar, address, buf, buf_len); in ath10k_hif_diag_read()
119 if (!ar->hif.ops->diag_write) in ath10k_hif_diag_write()
122 return ar->hif.ops->diag_write(ar, address, data, nbytes); in ath10k_hif_diag_write()
129 return ar->hif.ops->exchange_bmi_msg(ar, request, request_len, in ath10k_hif_exchange_bmi_msg()
135 return ar->hif.ops->start(ar); in ath10k_hif_start()
140 return ar->hif.ops->stop(ar); in ath10k_hif_stop()
149 return ar->hif.ops->map_service_to_pipe(ar, service_id, in ath10k_hif_map_service_to_pipe()
157 ar->hif.ops->get_default_pipe(ar, ul_pipe, dl_pipe); in ath10k_hif_get_default_pipe()
163 ar->hif.ops->send_complete_check(ar, pipe_id, force); in ath10k_hif_send_complete_check()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/igb/
De1000_phy.c86 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id()
92 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igb_get_phy_id()
113 if (!(hw->phy.ops.write_reg)) in igb_phy_reset_dsp()
116 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in igb_phy_reset_dsp()
120 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0); in igb_phy_reset_dsp()
406 if (!(hw->phy.ops.acquire)) in igb_read_phy_reg_igp()
409 ret_val = hw->phy.ops.acquire(hw); in igb_read_phy_reg_igp()
418 hw->phy.ops.release(hw); in igb_read_phy_reg_igp()
426 hw->phy.ops.release(hw); in igb_read_phy_reg_igp()
445 if (!(hw->phy.ops.acquire)) in igb_write_phy_reg_igp()
[all …]
De1000_mbx.c44 if (mbx->ops.read) in igb_read_mbx()
45 ret_val = mbx->ops.read(hw, msg, size, mbx_id); in igb_read_mbx()
67 else if (mbx->ops.write) in igb_write_mbx()
68 ret_val = mbx->ops.write(hw, msg, size, mbx_id); in igb_write_mbx()
85 if (mbx->ops.check_for_msg) in igb_check_for_msg()
86 ret_val = mbx->ops.check_for_msg(hw, mbx_id); in igb_check_for_msg()
103 if (mbx->ops.check_for_ack) in igb_check_for_ack()
104 ret_val = mbx->ops.check_for_ack(hw, mbx_id); in igb_check_for_ack()
121 if (mbx->ops.check_for_rst) in igb_check_for_rst()
122 ret_val = mbx->ops.check_for_rst(hw, mbx_id); in igb_check_for_rst()
[all …]
De1000_82575.c122 ret_val = phy->ops.write_reg(hw, E1000_M88E1112_PAGE_ADDR, 0); in igb_check_for_link_media_swap()
126 ret_val = phy->ops.read_reg(hw, E1000_M88E1112_STATUS, &data); in igb_check_for_link_media_swap()
134 ret_val = phy->ops.write_reg(hw, E1000_M88E1112_PAGE_ADDR, 1); in igb_check_for_link_media_swap()
138 ret_val = phy->ops.read_reg(hw, E1000_M88E1112_STATUS, &data); in igb_check_for_link_media_swap()
143 ret_val = phy->ops.write_reg(hw, E1000_M88E1112_PAGE_ADDR, 0); in igb_check_for_link_media_swap()
182 phy->ops.reset = igb_phy_hw_reset_sgmii_82575; in igb_init_phy_params_82575()
185 phy->ops.reset = igb_phy_hw_reset; in igb_init_phy_params_82575()
193 phy->ops.read_reg = igb_read_phy_reg_sgmii_82575; in igb_init_phy_params_82575()
194 phy->ops.write_reg = igb_write_phy_reg_sgmii_82575; in igb_init_phy_params_82575()
200 phy->ops.read_reg = igb_read_phy_reg_82580; in igb_init_phy_params_82575()
[all …]
De1000_i210.c220 if (!(hw->nvm.ops.acquire(hw))) { in igb_read_nvm_srrd_i210()
223 hw->nvm.ops.release(hw); in igb_read_nvm_srrd_i210()
320 if (!(hw->nvm.ops.acquire(hw))) { in igb_write_nvm_srwr_i210()
323 hw->nvm.ops.release(hw); in igb_write_nvm_srwr_i210()
562 if (!(hw->nvm.ops.acquire(hw))) { in igb_validate_nvm_checksum_i210()
568 read_op_ptr = hw->nvm.ops.read; in igb_validate_nvm_checksum_i210()
569 hw->nvm.ops.read = igb_read_nvm_eerd; in igb_validate_nvm_checksum_i210()
574 hw->nvm.ops.read = read_op_ptr; in igb_validate_nvm_checksum_i210()
576 hw->nvm.ops.release(hw); in igb_validate_nvm_checksum_i210()
608 if (!(hw->nvm.ops.acquire(hw))) { in igb_update_nvm_checksum_i210()
[all …]
/linux-4.1.27/kernel/trace/
Dtrace_functions.c38 struct ftrace_ops *ops; in allocate_ftrace_ops() local
40 ops = kzalloc(sizeof(*ops), GFP_KERNEL); in allocate_ftrace_ops()
41 if (!ops) in allocate_ftrace_ops()
45 ops->func = function_trace_call; in allocate_ftrace_ops()
46 ops->flags = FTRACE_OPS_FL_RECURSION_SAFE; in allocate_ftrace_ops()
48 tr->ops = ops; in allocate_ftrace_ops()
49 ops->private = tr; in allocate_ftrace_ops()
70 ftrace_create_filter_files(tr->ops, parent); in ftrace_create_function_files()
77 ftrace_destroy_filter_files(tr->ops); in ftrace_destroy_function_files()
78 kfree(tr->ops); in ftrace_destroy_function_files()
[all …]
Dftrace.c106 static void ftrace_update_trampoline(struct ftrace_ops *ops);
154 static inline void ftrace_ops_init(struct ftrace_ops *ops) in ftrace_ops_init() argument
157 if (!(ops->flags & FTRACE_OPS_FL_INITIALIZED)) { in ftrace_ops_init()
158 mutex_init(&ops->local_hash.regex_lock); in ftrace_ops_init()
159 ops->func_hash = &ops->local_hash; in ftrace_ops_init()
160 ops->flags |= FTRACE_OPS_FL_INITIALIZED; in ftrace_ops_init()
172 struct ftrace_ops *ops; in ftrace_nr_registered_ops() local
177 for (ops = ftrace_ops_list; in ftrace_nr_registered_ops()
178 ops != &ftrace_list_end; ops = ops->next) in ftrace_nr_registered_ops()
206 static void control_ops_disable_all(struct ftrace_ops *ops) in control_ops_disable_all() argument
[all …]
Dtrace_events_trigger.c77 data->ops->func(data); in event_triggers_call()
87 data->ops->func(data); in event_triggers_call()
113 data->ops->func(data); in event_triggers_post_call()
168 data->ops->print(m, data->ops, data); in trigger_show()
404 event_trigger_init(struct event_trigger_ops *ops, in event_trigger_init() argument
422 event_trigger_free(struct event_trigger_ops *ops, in event_trigger_free() argument
475 if (data->ops->free) in clear_event_triggers()
476 data->ops->free(data->ops, data); in clear_event_triggers()
523 static int register_trigger(char *glob, struct event_trigger_ops *ops, in register_trigger() argument
537 if (data->ops->init) { in register_trigger()
[all …]
/linux-4.1.27/kernel/irq/
Dmsi.c88 struct msi_domain_ops *ops = info->ops; in msi_domain_alloc() local
89 irq_hw_number_t hwirq = ops->get_hwirq(info, arg); in msi_domain_alloc()
100 ret = ops->msi_init(domain, info, virq + i, hwirq + i, arg); in msi_domain_alloc()
102 if (ops->msi_free) { in msi_domain_alloc()
104 ops->msi_free(domain, info, virq + i); in msi_domain_alloc()
120 if (info->ops->msi_free) { in msi_domain_free()
122 info->ops->msi_free(domain, info, virq + i); in msi_domain_free()
191 struct msi_domain_ops *ops = info->ops; in msi_domain_update_dom_ops() local
193 if (ops == NULL) { in msi_domain_update_dom_ops()
194 info->ops = &msi_domain_ops_default; in msi_domain_update_dom_ops()
[all …]
/linux-4.1.27/include/linux/usb/
Dotg-fsm.h116 struct otg_fsm_ops *ops; member
141 if (!fsm->ops->chrg_vbus) in otg_chrg_vbus()
143 fsm->ops->chrg_vbus(fsm, on); in otg_chrg_vbus()
149 if (!fsm->ops->drv_vbus) in otg_drv_vbus()
153 fsm->ops->drv_vbus(fsm, on); in otg_drv_vbus()
160 if (!fsm->ops->loc_conn) in otg_loc_conn()
164 fsm->ops->loc_conn(fsm, on); in otg_loc_conn()
171 if (!fsm->ops->loc_sof) in otg_loc_sof()
175 fsm->ops->loc_sof(fsm, on); in otg_loc_sof()
182 if (!fsm->ops->start_pulse) in otg_start_pulse()
[all …]
Dgadget.h174 const struct usb_ep_ops *ops; member
225 return ep->ops->enable(ep, ep->desc); in usb_ep_enable()
242 return ep->ops->disable(ep); in usb_ep_disable()
262 return ep->ops->alloc_request(ep, gfp_flags); in usb_ep_alloc_request()
277 ep->ops->free_request(ep, req); in usb_ep_free_request()
340 return ep->ops->queue(ep, req, gfp_flags); in usb_ep_queue()
360 return ep->ops->dequeue(ep, req); in usb_ep_dequeue()
386 return ep->ops->set_halt(ep, 1); in usb_ep_set_halt()
404 return ep->ops->set_halt(ep, 0); in usb_ep_clear_halt()
420 if (ep->ops->set_wedge) in usb_ep_set_wedge()
[all …]
/linux-4.1.27/drivers/video/fbdev/exynos/
Ds6e8ax0.c288 struct mipi_dsim_master_ops *ops = lcd_to_master_ops(lcd); in s6e8ax0_panel_cond() local
304 ops->cmd_write(lcd_to_master(lcd), MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_panel_cond()
308 ops->cmd_write(lcd_to_master(lcd), MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_panel_cond()
314 struct mipi_dsim_master_ops *ops = lcd_to_master_ops(lcd); in s6e8ax0_display_cond() local
319 ops->cmd_write(lcd_to_master(lcd), MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_display_cond()
326 struct mipi_dsim_master_ops *ops = lcd_to_master_ops(lcd); in s6e8ax0_gamma_cond() local
329 ops->cmd_write(lcd_to_master(lcd), MIPI_DSI_DCS_LONG_WRITE, in s6e8ax0_gamma_cond()
336 struct mipi_dsim_master_ops *ops = lcd_to_master_ops(lcd); in s6e8ax0_gamma_update() local
341 ops->cmd_write(lcd_to_master(lcd), in s6e8ax0_gamma_update()
348 struct mipi_dsim_master_ops *ops = lcd_to_master_ops(lcd); in s6e8ax0_etc_cond1() local
[all …]
/linux-4.1.27/sound/core/seq/
Dseq_midi_emul.c47 static void note_off(struct snd_midi_op *ops, void *drv,
50 static void do_control(struct snd_midi_op *ops, void *private,
54 static void rpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan,
56 static void nrpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan,
58 static void sysex(struct snd_midi_op *ops, void *private, unsigned char *sysex,
60 static void all_sounds_off(struct snd_midi_op *ops, void *private,
62 static void all_notes_off(struct snd_midi_op *ops, void *private,
83 snd_midi_process_event(struct snd_midi_op *ops, in snd_midi_process_event() argument
130 if (ops->note_off) in snd_midi_process_event()
131 ops->note_off(drv, ev->data.note.note, 0, chan); in snd_midi_process_event()
[all …]
/linux-4.1.27/drivers/clk/qcom/
Dgcc-msm8974.c78 .ops = &clk_pll_ops,
89 .ops = &clk_pll_vote_ops,
101 .ops = &clk_rcg2_ops,
113 .ops = &clk_rcg2_ops,
125 .ops = &clk_rcg2_ops,
141 .ops = &clk_pll_ops,
152 .ops = &clk_pll_vote_ops,
168 .ops = &clk_pll_ops,
179 .ops = &clk_pll_vote_ops,
198 .ops = &clk_rcg2_ops,
[all …]
Dgcc-apq8084.c122 .ops = &clk_pll_ops,
133 .ops = &clk_pll_vote_ops,
145 .ops = &clk_rcg2_ops,
157 .ops = &clk_rcg2_ops,
169 .ops = &clk_rcg2_ops,
185 .ops = &clk_pll_ops,
196 .ops = &clk_pll_vote_ops,
212 .ops = &clk_pll_ops,
223 .ops = &clk_pll_vote_ops,
244 .ops = &clk_rcg2_ops,
[all …]
Dmmcc-msm8974.c200 .ops = &clk_pll_ops,
211 .ops = &clk_pll_vote_ops,
227 .ops = &clk_pll_ops,
238 .ops = &clk_pll_vote_ops,
253 .ops = &clk_pll_ops,
269 .ops = &clk_pll_ops,
281 .ops = &clk_rcg2_ops,
306 .ops = &clk_rcg2_ops,
330 .ops = &clk_rcg2_ops,
349 .ops = &clk_rcg2_ops,
[all …]
Dmmcc-apq8084.c235 .ops = &clk_pll_ops,
246 .ops = &clk_pll_vote_ops,
262 .ops = &clk_pll_ops,
273 .ops = &clk_pll_vote_ops,
288 .ops = &clk_pll_ops,
304 .ops = &clk_pll_ops,
319 .ops = &clk_pll_ops,
331 .ops = &clk_rcg2_ops,
356 .ops = &clk_rcg2_ops,
380 .ops = &clk_rcg2_ops,
[all …]
Dgcc-msm8916.c207 .ops = &clk_pll_ops,
218 .ops = &clk_pll_vote_ops,
234 .ops = &clk_pll_ops,
245 .ops = &clk_pll_vote_ops,
261 .ops = &clk_pll_ops,
272 .ops = &clk_pll_vote_ops,
288 .ops = &clk_pll_ops,
299 .ops = &clk_pll_vote_ops,
311 .ops = &clk_rcg2_ops,
323 .ops = &clk_rcg2_ops,
[all …]
Dgcc-ipq806x.c47 .ops = &clk_pll_ops,
58 .ops = &clk_pll_vote_ops,
74 .ops = &clk_pll_ops,
85 .ops = &clk_pll_vote_ops,
101 .ops = &clk_pll_ops,
112 .ops = &clk_pll_vote_ops,
128 .ops = &clk_pll_ops,
139 .ops = &clk_pll_vote_ops,
245 .ops = &clk_rcg_ops,
263 .ops = &clk_branch_ops,
[all …]
Dgcc-msm8660.c47 .ops = &clk_pll_ops,
58 .ops = &clk_pll_vote_ops,
135 .ops = &clk_rcg_ops,
153 .ops = &clk_branch_ops,
186 .ops = &clk_rcg_ops,
204 .ops = &clk_branch_ops,
237 .ops = &clk_rcg_ops,
255 .ops = &clk_branch_ops,
288 .ops = &clk_rcg_ops,
306 .ops = &clk_branch_ops,
[all …]
Dgcc-msm8960.c47 .ops = &clk_pll_ops,
58 .ops = &clk_pll_vote_ops,
74 .ops = &clk_pll_ops,
85 .ops = &clk_pll_vote_ops,
101 .ops = &clk_pll_ops,
112 .ops = &clk_pll_vote_ops,
202 .ops = &clk_rcg_ops,
220 .ops = &clk_branch_ops,
253 .ops = &clk_rcg_ops,
271 .ops = &clk_branch_ops,
[all …]
Dmmcc-msm8960.c99 .ops = &clk_pll_ops,
115 .ops = &clk_pll_ops,
176 .ops = &clk_rcg_ops,
191 .ops = &clk_branch_ops,
225 .ops = &clk_rcg_ops,
240 .ops = &clk_branch_ops,
274 .ops = &clk_rcg_ops,
289 .ops = &clk_branch_ops,
329 .ops = &clk_rcg_ops,
344 .ops = &clk_branch_ops,
[all …]
/linux-4.1.27/drivers/net/wireless/iwlwifi/
Diwl-op-mode.h170 int iwl_opmode_register(const char *name, const struct iwl_op_mode_ops *ops);
180 const struct iwl_op_mode_ops *ops; member
188 op_mode->ops->stop(op_mode); in iwl_op_mode_stop()
195 return op_mode->ops->rx(op_mode, rxb, cmd); in iwl_op_mode_rx()
201 op_mode->ops->queue_full(op_mode, queue); in iwl_op_mode_queue_full()
207 op_mode->ops->queue_not_full(op_mode, queue); in iwl_op_mode_queue_not_full()
214 return op_mode->ops->hw_rf_kill(op_mode, state); in iwl_op_mode_hw_rf_kill()
220 op_mode->ops->free_skb(op_mode, skb); in iwl_op_mode_free_skb()
225 op_mode->ops->nic_error(op_mode); in iwl_op_mode_nic_error()
230 op_mode->ops->cmd_queue_full(op_mode); in iwl_op_mode_cmd_queue_full()
[all …]
Diwl-trans.h608 const struct iwl_trans_ops *ops; member
654 trans->ops->configure(trans, trans_cfg); in iwl_trans_configure()
661 return trans->ops->start_hw(trans, low_power); in _iwl_trans_start_hw()
666 return trans->ops->start_hw(trans, true); in iwl_trans_start_hw()
673 if (trans->ops->op_mode_leave) in iwl_trans_op_mode_leave()
674 trans->ops->op_mode_leave(trans); in iwl_trans_op_mode_leave()
687 trans->ops->fw_alive(trans, scd_addr); in iwl_trans_fw_alive()
699 return trans->ops->start_fw(trans, fw, run_in_rfkill); in iwl_trans_start_fw()
707 if (trans->ops->update_sf) in iwl_trans_update_sf()
708 return trans->ops->update_sf(trans, st_fwrd_space); in iwl_trans_update_sf()
[all …]
/linux-4.1.27/drivers/video/backlight/
Dlcd.c45 if (!ld->ops) in fb_notifier_callback()
49 if (!ld->ops->check_fb || ld->ops->check_fb(ld, evdata->info)) { in fb_notifier_callback()
51 if (ld->ops->set_power) in fb_notifier_callback()
52 ld->ops->set_power(ld, *(int *)evdata->data); in fb_notifier_callback()
54 if (ld->ops->early_set_power) in fb_notifier_callback()
55 ld->ops->early_set_power(ld, in fb_notifier_callback()
58 if (ld->ops->r_early_set_power) in fb_notifier_callback()
59 ld->ops->r_early_set_power(ld, in fb_notifier_callback()
62 if (ld->ops->set_mode) in fb_notifier_callback()
63 ld->ops->set_mode(ld, evdata->data); in fb_notifier_callback()
[all …]
/linux-4.1.27/net/switchdev/
Dswitchdev.c32 const struct swdev_ops *ops = dev->swdev_ops; in netdev_switch_parent_id_get() local
34 if (!ops || !ops->swdev_parent_id_get) in netdev_switch_parent_id_get()
36 return ops->swdev_parent_id_get(dev, psid); in netdev_switch_parent_id_get()
50 const struct swdev_ops *ops = dev->swdev_ops; in netdev_switch_port_stp_update() local
55 if (ops && ops->swdev_port_stp_update) in netdev_switch_port_stp_update()
56 return ops->swdev_port_stp_update(dev, state); in netdev_switch_port_stp_update()
144 const struct net_device_ops *ops = dev->netdev_ops; in netdev_switch_port_bridge_setlink() local
149 if (!ops->ndo_bridge_setlink) in netdev_switch_port_bridge_setlink()
152 return ops->ndo_bridge_setlink(dev, nlh, flags); in netdev_switch_port_bridge_setlink()
169 const struct net_device_ops *ops = dev->netdev_ops; in netdev_switch_port_bridge_dellink() local
[all …]
/linux-4.1.27/arch/microblaze/include/asm/
Ddma-mapping.h50 struct dma_map_ops *ops = get_dma_ops(dev); in dma_supported() local
52 if (unlikely(!ops)) in dma_supported()
54 if (!ops->dma_supported) in dma_supported()
56 return ops->dma_supported(dev, mask); in dma_supported()
61 struct dma_map_ops *ops = get_dma_ops(dev); in dma_set_mask() local
63 if (unlikely(ops == NULL)) in dma_set_mask()
65 if (ops->set_dma_mask) in dma_set_mask()
66 return ops->set_dma_mask(dev, dma_mask); in dma_set_mask()
93 struct dma_map_ops *ops = get_dma_ops(dev); in dma_mapping_error() local
96 if (ops->mapping_error) in dma_mapping_error()
[all …]
/linux-4.1.27/drivers/pci/hotplug/
Dpci_hotplug_core.c69 struct hotplug_slot_ops *ops = slot->ops; \
71 if (!try_module_get(ops->owner)) \
73 if (ops->get_##name) \
74 retval = ops->get_##name(slot, value); \
77 module_put(ops->owner); \
110 if (!try_module_get(slot->ops->owner)) { in power_write_file()
116 if (slot->ops->disable_slot) in power_write_file()
117 retval = slot->ops->disable_slot(slot); in power_write_file()
121 if (slot->ops->enable_slot) in power_write_file()
122 retval = slot->ops->enable_slot(slot); in power_write_file()
[all …]
Dpciehp_core.c85 kfree(hotplug_slot->ops); in release_slot()
95 struct hotplug_slot_ops *ops = NULL; in init_slot() local
108 ops = kzalloc(sizeof(*ops), GFP_KERNEL); in init_slot()
109 if (!ops) in init_slot()
112 ops->enable_slot = enable_slot; in init_slot()
113 ops->disable_slot = disable_slot; in init_slot()
114 ops->get_power_status = get_power_status; in init_slot()
115 ops->get_adapter_status = get_adapter_status; in init_slot()
116 ops->reset_slot = reset_slot; in init_slot()
118 ops->get_latch_status = get_latch_status; in init_slot()
[all …]
/linux-4.1.27/include/net/netfilter/
Dnf_nat_l3proto.h46 unsigned int nf_nat_ipv4_in(const struct nf_hook_ops *ops, struct sk_buff *skb,
48 unsigned int (*do_chain)(const struct nf_hook_ops *ops,
53 unsigned int nf_nat_ipv4_out(const struct nf_hook_ops *ops, struct sk_buff *skb,
55 unsigned int (*do_chain)(const struct nf_hook_ops *ops,
60 unsigned int nf_nat_ipv4_local_fn(const struct nf_hook_ops *ops,
63 unsigned int (*do_chain)(const struct nf_hook_ops *ops,
68 unsigned int nf_nat_ipv4_fn(const struct nf_hook_ops *ops, struct sk_buff *skb,
70 unsigned int (*do_chain)(const struct nf_hook_ops *ops,
79 unsigned int nf_nat_ipv6_in(const struct nf_hook_ops *ops, struct sk_buff *skb,
81 unsigned int (*do_chain)(const struct nf_hook_ops *ops,
[all …]
/linux-4.1.27/arch/mips/pci/
DMakefile10 obj-$(CONFIG_MIPS_BONITO64) += ops-bonito64.o
11 obj-$(CONFIG_PCI_GT64XXX_PCI0) += ops-gt64xxx_pci0.o
12 obj-$(CONFIG_MIPS_MSC) += ops-msc.o
13 obj-$(CONFIG_MIPS_NILE4) += ops-nile4.o
14 obj-$(CONFIG_SOC_TX3927) += ops-tx3927.o
15 obj-$(CONFIG_PCI_VR41XX) += ops-vr41xx.o pci-vr41xx.o
16 obj-$(CONFIG_NEC_MARKEINS) += ops-emma2rh.o pci-emma2rh.o fixup-emma2rh.o
17 obj-$(CONFIG_PCI_TX4927) += ops-tx4927.o
20 ops-bcm63xx.o
31 obj-$(CONFIG_LEMOTE_FULOONG2E) += fixup-fuloong2e.o ops-loongson2.o
[all …]
/linux-4.1.27/kernel/time/
Dposix-clock.c61 if (clk->ops.read) in posix_clock_read()
62 err = clk->ops.read(clk, fp->f_flags, buf, count); in posix_clock_read()
77 if (clk->ops.poll) in posix_clock_poll()
78 result = clk->ops.poll(clk, fp, wait); in posix_clock_poll()
93 if (clk->ops.fasync) in posix_clock_fasync()
94 err = clk->ops.fasync(clk, fd, fp, on); in posix_clock_fasync()
109 if (clk->ops.mmap) in posix_clock_mmap()
110 err = clk->ops.mmap(clk, vma); in posix_clock_mmap()
126 if (clk->ops.ioctl) in posix_clock_ioctl()
127 err = clk->ops.ioctl(clk, cmd, arg); in posix_clock_ioctl()
[all …]
/linux-4.1.27/net/ceph/
Dauth.c67 if (ac->ops) in ceph_auth_destroy()
68 ac->ops->destroy(ac); in ceph_auth_destroy()
79 if (ac->ops && !ac->negotiating) in ceph_auth_reset()
80 ac->ops->reset(ac); in ceph_auth_reset()
158 ret = ac->ops->build_request(ac, p + sizeof(u32), end); in ceph_build_auth_request()
161 ac->ops->name); in ceph_build_auth_request()
223 ac->ops->destroy(ac); in ceph_handle_auth_reply()
225 ac->ops = NULL; in ceph_handle_auth_reply()
239 ret = ac->ops->handle_reply(ac, result, payload, payload_end); in ceph_handle_auth_reply()
243 pr_err("auth method '%s' error %d\n", ac->ops->name, ret); in ceph_handle_auth_reply()
[all …]
/linux-4.1.27/arch/sh/include/asm/
Ddma-mapping.h17 struct dma_map_ops *ops = get_dma_ops(dev); in dma_supported() local
19 if (ops->dma_supported) in dma_supported()
20 return ops->dma_supported(dev, mask); in dma_supported()
27 struct dma_map_ops *ops = get_dma_ops(dev); in dma_set_mask() local
31 if (ops->set_dma_mask) in dma_set_mask()
32 return ops->set_dma_mask(dev, mask); in dma_set_mask()
47 struct dma_map_ops *ops = get_dma_ops(dev); in dma_mapping_error() local
50 if (ops->mapping_error) in dma_mapping_error()
51 return ops->mapping_error(dev, dma_addr); in dma_mapping_error()
62 struct dma_map_ops *ops = get_dma_ops(dev); in dma_alloc_attrs() local
[all …]
/linux-4.1.27/drivers/net/phy/
Dmdio-bitbang.c49 const struct mdiobb_ops *ops = ctrl->ops; in mdiobb_send_bit() local
51 ops->set_mdio_data(ctrl, val); in mdiobb_send_bit()
53 ops->set_mdc(ctrl, 1); in mdiobb_send_bit()
55 ops->set_mdc(ctrl, 0); in mdiobb_send_bit()
61 const struct mdiobb_ops *ops = ctrl->ops; in mdiobb_get_bit() local
64 ops->set_mdc(ctrl, 1); in mdiobb_get_bit()
66 ops->set_mdc(ctrl, 0); in mdiobb_get_bit()
68 return ops->get_mdio_data(ctrl); in mdiobb_get_bit()
99 const struct mdiobb_ops *ops = ctrl->ops; in mdiobb_cmd() local
102 ops->set_mdio_dir(ctrl, 1); in mdiobb_cmd()
[all …]
/linux-4.1.27/drivers/powercap/
Dpowercap_sys.c39 if (power_zone->ops->get_##_attr) { \
40 if (!power_zone->ops->get_##_attr(power_zone, &value)) \
62 if (power_zone->ops->reset_##_attr) { \
63 if (!power_zone->ops->reset_##_attr(power_zone)) \
87 if (pconst && pconst->ops && pconst->ops->get_##_attr) { \
88 if (!pconst->ops->get_##_attr(power_zone, id, &value)) \
115 if (pconst && pconst->ops && pconst->ops->set_##_attr) { \
116 if (!pconst->ops->set_##_attr(power_zone, id, value)) \
182 if (pconst && pconst->ops && pconst->ops->get_name) { in show_constraint_name()
183 name = pconst->ops->get_name(power_zone, id); in show_constraint_name()
[all …]
/linux-4.1.27/drivers/mtd/
Dmtdchar.c187 struct mtd_oob_ops ops; in mtdchar_read() local
189 ops.mode = MTD_OPS_RAW; in mtdchar_read()
190 ops.datbuf = kbuf; in mtdchar_read()
191 ops.oobbuf = NULL; in mtdchar_read()
192 ops.len = len; in mtdchar_read()
194 ret = mtd_read_oob(mtd, *ppos, &ops); in mtdchar_read()
195 retlen = ops.retlen; in mtdchar_read()
281 struct mtd_oob_ops ops; in mtdchar_write() local
283 ops.mode = MTD_OPS_RAW; in mtdchar_write()
284 ops.datbuf = kbuf; in mtdchar_write()
[all …]
/linux-4.1.27/drivers/media/firewire/
Dfiredtv-fe.c154 struct dvb_frontend_ops *ops = &fdtv->fe.ops; in fdtv_frontend_init() local
155 struct dvb_frontend_info *fi = &ops->info; in fdtv_frontend_init()
157 ops->init = fdtv_dvb_init; in fdtv_frontend_init()
158 ops->sleep = fdtv_sleep; in fdtv_frontend_init()
160 ops->set_frontend = fdtv_set_frontend; in fdtv_frontend_init()
162 ops->read_status = fdtv_read_status; in fdtv_frontend_init()
163 ops->read_ber = fdtv_read_ber; in fdtv_frontend_init()
164 ops->read_signal_strength = fdtv_read_signal_strength; in fdtv_frontend_init()
165 ops->read_snr = fdtv_read_snr; in fdtv_frontend_init()
166 ops->read_ucblocks = fdtv_read_uncorrected_blocks; in fdtv_frontend_init()
[all …]
/linux-4.1.27/net/ipv4/netfilter/
Dnft_chain_nat_ipv4.c29 static unsigned int nft_nat_do_chain(const struct nf_hook_ops *ops, in nft_nat_do_chain() argument
36 nft_set_pktinfo_ipv4(&pkt, ops, skb, state); in nft_nat_do_chain()
38 return nft_do_chain(&pkt, ops); in nft_nat_do_chain()
41 static unsigned int nft_nat_ipv4_fn(const struct nf_hook_ops *ops, in nft_nat_ipv4_fn() argument
45 return nf_nat_ipv4_fn(ops, skb, state, nft_nat_do_chain); in nft_nat_ipv4_fn()
48 static unsigned int nft_nat_ipv4_in(const struct nf_hook_ops *ops, in nft_nat_ipv4_in() argument
52 return nf_nat_ipv4_in(ops, skb, state, nft_nat_do_chain); in nft_nat_ipv4_in()
55 static unsigned int nft_nat_ipv4_out(const struct nf_hook_ops *ops, in nft_nat_ipv4_out() argument
59 return nf_nat_ipv4_out(ops, skb, state, nft_nat_do_chain); in nft_nat_ipv4_out()
62 static unsigned int nft_nat_ipv4_local_fn(const struct nf_hook_ops *ops, in nft_nat_ipv4_local_fn() argument
[all …]
Diptable_nat.c31 static unsigned int iptable_nat_do_chain(const struct nf_hook_ops *ops, in iptable_nat_do_chain() argument
38 return ipt_do_table(skb, ops->hooknum, state, net->ipv4.nat_table); in iptable_nat_do_chain()
41 static unsigned int iptable_nat_ipv4_fn(const struct nf_hook_ops *ops, in iptable_nat_ipv4_fn() argument
45 return nf_nat_ipv4_fn(ops, skb, state, iptable_nat_do_chain); in iptable_nat_ipv4_fn()
48 static unsigned int iptable_nat_ipv4_in(const struct nf_hook_ops *ops, in iptable_nat_ipv4_in() argument
52 return nf_nat_ipv4_in(ops, skb, state, iptable_nat_do_chain); in iptable_nat_ipv4_in()
55 static unsigned int iptable_nat_ipv4_out(const struct nf_hook_ops *ops, in iptable_nat_ipv4_out() argument
59 return nf_nat_ipv4_out(ops, skb, state, iptable_nat_do_chain); in iptable_nat_ipv4_out()
62 static unsigned int iptable_nat_ipv4_local_fn(const struct nf_hook_ops *ops, in iptable_nat_ipv4_local_fn() argument
66 return nf_nat_ipv4_local_fn(ops, skb, state, iptable_nat_do_chain); in iptable_nat_ipv4_local_fn()
/linux-4.1.27/net/ipv6/netfilter/
Dnft_chain_nat_ipv6.c27 static unsigned int nft_nat_do_chain(const struct nf_hook_ops *ops, in nft_nat_do_chain() argument
34 nft_set_pktinfo_ipv6(&pkt, ops, skb, state); in nft_nat_do_chain()
36 return nft_do_chain(&pkt, ops); in nft_nat_do_chain()
39 static unsigned int nft_nat_ipv6_fn(const struct nf_hook_ops *ops, in nft_nat_ipv6_fn() argument
43 return nf_nat_ipv6_fn(ops, skb, state, nft_nat_do_chain); in nft_nat_ipv6_fn()
46 static unsigned int nft_nat_ipv6_in(const struct nf_hook_ops *ops, in nft_nat_ipv6_in() argument
50 return nf_nat_ipv6_in(ops, skb, state, nft_nat_do_chain); in nft_nat_ipv6_in()
53 static unsigned int nft_nat_ipv6_out(const struct nf_hook_ops *ops, in nft_nat_ipv6_out() argument
57 return nf_nat_ipv6_out(ops, skb, state, nft_nat_do_chain); in nft_nat_ipv6_out()
60 static unsigned int nft_nat_ipv6_local_fn(const struct nf_hook_ops *ops, in nft_nat_ipv6_local_fn() argument
[all …]
Dip6table_nat.c33 static unsigned int ip6table_nat_do_chain(const struct nf_hook_ops *ops, in ip6table_nat_do_chain() argument
40 return ip6t_do_table(skb, ops->hooknum, state, net->ipv6.ip6table_nat); in ip6table_nat_do_chain()
43 static unsigned int ip6table_nat_fn(const struct nf_hook_ops *ops, in ip6table_nat_fn() argument
47 return nf_nat_ipv6_fn(ops, skb, state, ip6table_nat_do_chain); in ip6table_nat_fn()
50 static unsigned int ip6table_nat_in(const struct nf_hook_ops *ops, in ip6table_nat_in() argument
54 return nf_nat_ipv6_in(ops, skb, state, ip6table_nat_do_chain); in ip6table_nat_in()
57 static unsigned int ip6table_nat_out(const struct nf_hook_ops *ops, in ip6table_nat_out() argument
61 return nf_nat_ipv6_out(ops, skb, state, ip6table_nat_do_chain); in ip6table_nat_out()
64 static unsigned int ip6table_nat_local_fn(const struct nf_hook_ops *ops, in ip6table_nat_local_fn() argument
68 return nf_nat_ipv6_local_fn(ops, skb, state, ip6table_nat_do_chain); in ip6table_nat_local_fn()
/linux-4.1.27/net/wireless/
Drdev-ops.h14 ret = rdev->ops->suspend(&rdev->wiphy, wowlan); in rdev_suspend()
23 ret = rdev->ops->resume(&rdev->wiphy); in rdev_resume()
32 rdev->ops->set_wakeup(&rdev->wiphy, enabled); in rdev_set_wakeup()
44 ret = rdev->ops->add_virtual_intf(&rdev->wiphy, name, name_assign_type, in rdev_add_virtual_intf()
56 ret = rdev->ops->del_virtual_intf(&rdev->wiphy, wdev); in rdev_del_virtual_intf()
68 ret = rdev->ops->change_virtual_intf(&rdev->wiphy, dev, type, flags, in rdev_change_virtual_intf()
81 ret = rdev->ops->add_key(&rdev->wiphy, netdev, key_index, pairwise, in rdev_add_key()
94 ret = rdev->ops->get_key(&rdev->wiphy, netdev, key_index, pairwise, in rdev_get_key()
106 ret = rdev->ops->del_key(&rdev->wiphy, netdev, key_index, pairwise, in rdev_del_key()
120 ret = rdev->ops->set_default_key(&rdev->wiphy, netdev, key_index, in rdev_set_default_key()
[all …]
Dlib80211.c38 struct lib80211_crypto_ops *ops; member
76 if (crypt->ops) { in lib80211_crypt_info_free()
77 crypt->ops->deinit(crypt->priv); in lib80211_crypt_info_free()
78 module_put(crypt->ops->owner); in lib80211_crypt_info_free()
100 if (entry->ops) { in lib80211_crypt_deinit_entries()
101 entry->ops->deinit(entry->priv); in lib80211_crypt_deinit_entries()
102 module_put(entry->ops->owner); in lib80211_crypt_deinit_entries()
164 int lib80211_register_crypto_ops(struct lib80211_crypto_ops *ops) in lib80211_register_crypto_ops() argument
173 alg->ops = ops; in lib80211_register_crypto_ops()
180 ops->name); in lib80211_register_crypto_ops()
[all …]
/linux-4.1.27/include/linux/
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()
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_CONTROL))) 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_CONTROL))) 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 …]
Dmoduleparam.h70 const struct kernel_param_ops *ops; member
95 const struct kernel_param_ops *ops; member
165 #define module_param_cb(name, ops, arg, perm) \ argument
166 __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
168 #define module_param_cb_unsafe(name, ops, arg, perm) \ argument
169 __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, \
181 #define __level_param_cb(name, ops, arg, perm, level) \ argument
182 __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, level, 0)
184 #define core_param_cb(name, ops, arg, perm) \ argument
185 __level_param_cb(name, ops, arg, perm, 1)
[all …]
Dirqdomain.h113 const struct irq_domain_ops *ops; member
151 const struct irq_domain_ops *ops,
156 const struct irq_domain_ops *ops,
162 const struct irq_domain_ops *ops,
176 const struct irq_domain_ops *ops, in irq_domain_add_linear() argument
179 return __irq_domain_add(of_node, size, size, 0, ops, host_data); in irq_domain_add_linear()
183 const struct irq_domain_ops *ops, in irq_domain_add_nomap() argument
186 return __irq_domain_add(of_node, 0, max_irq, max_irq, ops, host_data); in irq_domain_add_nomap()
190 const struct irq_domain_ops *ops, in irq_domain_add_legacy_isa() argument
193 return irq_domain_add_legacy(of_node, NUM_ISA_INTERRUPTS, 0, 0, ops, in irq_domain_add_legacy_isa()
[all …]
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 …]
/linux-4.1.27/drivers/media/dvb-frontends/
Dtua6100.c59 if (fe->ops.i2c_gate_ctrl) in tua6100_sleep()
60 fe->ops.i2c_gate_ctrl(fe, 1); in tua6100_sleep()
64 if (fe->ops.i2c_gate_ctrl) in tua6100_sleep()
65 fe->ops.i2c_gate_ctrl(fe, 0); in tua6100_sleep()
132 if (fe->ops.i2c_gate_ctrl) in tua6100_set_params()
133 fe->ops.i2c_gate_ctrl(fe, 1); in tua6100_set_params()
137 if (fe->ops.i2c_gate_ctrl) in tua6100_set_params()
138 fe->ops.i2c_gate_ctrl(fe, 1); in tua6100_set_params()
142 if (fe->ops.i2c_gate_ctrl) in tua6100_set_params()
143 fe->ops.i2c_gate_ctrl(fe, 1); in tua6100_set_params()
[all …]
Dstb6000.c65 if (fe->ops.i2c_gate_ctrl) in stb6000_sleep()
66 fe->ops.i2c_gate_ctrl(fe, 1); in stb6000_sleep()
72 if (fe->ops.i2c_gate_ctrl) in stb6000_sleep()
73 fe->ops.i2c_gate_ctrl(fe, 0); in stb6000_sleep()
146 if (fe->ops.i2c_gate_ctrl) in stb6000_set_params()
147 fe->ops.i2c_gate_ctrl(fe, 1); in stb6000_set_params()
154 if (fe->ops.i2c_gate_ctrl) in stb6000_set_params()
155 fe->ops.i2c_gate_ctrl(fe, 0); in stb6000_set_params()
164 if (fe->ops.i2c_gate_ctrl) in stb6000_set_params()
165 fe->ops.i2c_gate_ctrl(fe, 1); in stb6000_set_params()
[all …]
Dzl10039.c150 if (fe->ops.i2c_gate_ctrl) in zl10039_init()
151 fe->ops.i2c_gate_ctrl(fe, 1); in zl10039_init()
164 if (fe->ops.i2c_gate_ctrl) in zl10039_init()
165 fe->ops.i2c_gate_ctrl(fe, 0); in zl10039_init()
176 if (fe->ops.i2c_gate_ctrl) in zl10039_sleep()
177 fe->ops.i2c_gate_ctrl(fe, 1); in zl10039_sleep()
183 if (fe->ops.i2c_gate_ctrl) in zl10039_sleep()
184 fe->ops.i2c_gate_ctrl(fe, 0); in zl10039_sleep()
224 if (fe->ops.i2c_gate_ctrl) in zl10039_set_params()
225 fe->ops.i2c_gate_ctrl(fe, 1); in zl10039_set_params()
[all …]
Dtda826x.c63 if (fe->ops.i2c_gate_ctrl) in tda826x_sleep()
64 fe->ops.i2c_gate_ctrl(fe, 1); in tda826x_sleep()
68 if (fe->ops.i2c_gate_ctrl) in tda826x_sleep()
69 fe->ops.i2c_gate_ctrl(fe, 0); in tda826x_sleep()
112 if (fe->ops.i2c_gate_ctrl) in tda826x_set_params()
113 fe->ops.i2c_gate_ctrl(fe, 1); in tda826x_set_params()
117 if (fe->ops.i2c_gate_ctrl) in tda826x_set_params()
118 fe->ops.i2c_gate_ctrl(fe, 0); in tda826x_set_params()
156 if (fe->ops.i2c_gate_ctrl) in tda826x_attach()
157 fe->ops.i2c_gate_ctrl(fe, 1); in tda826x_attach()
[all …]
Dzl10036.c155 if (fe->ops.i2c_gate_ctrl) in zl10036_sleep()
156 fe->ops.i2c_gate_ctrl(fe, 1); /* open i2c_gate */ in zl10036_sleep()
160 if (fe->ops.i2c_gate_ctrl) in zl10036_sleep()
161 fe->ops.i2c_gate_ctrl(fe, 0); /* close i2c_gate */ in zl10036_sleep()
320 if ((frequency < fe->ops.info.frequency_min) in zl10036_set_params()
321 || (frequency > fe->ops.info.frequency_max)) in zl10036_set_params()
349 if (fe->ops.i2c_gate_ctrl) in zl10036_set_params()
350 fe->ops.i2c_gate_ctrl(fe, 1); /* open i2c_gate */ in zl10036_set_params()
378 if (fe->ops.i2c_gate_ctrl) in zl10036_set_params()
379 fe->ops.i2c_gate_ctrl(fe, 0); /* close i2c_gate */ in zl10036_set_params()
[all …]
Dix2505v.c143 if ((frequency < fe->ops.info.frequency_min) in ix2505v_set_params()
144 || (frequency > fe->ops.info.frequency_max)) in ix2505v_set_params()
217 if (fe->ops.i2c_gate_ctrl) in ix2505v_set_params()
218 fe->ops.i2c_gate_ctrl(fe, 1); in ix2505v_set_params()
225 if (fe->ops.i2c_gate_ctrl) in ix2505v_set_params()
226 fe->ops.i2c_gate_ctrl(fe, 1); in ix2505v_set_params()
238 if (fe->ops.i2c_gate_ctrl) in ix2505v_set_params()
239 fe->ops.i2c_gate_ctrl(fe, 1); in ix2505v_set_params()
292 if (fe->ops.i2c_gate_ctrl) in ix2505v_attach()
293 fe->ops.i2c_gate_ctrl(fe, 1); in ix2505v_attach()
[all …]
/linux-4.1.27/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()
/linux-4.1.27/drivers/mmc/core/
Dpwrseq.c92 if (pwrseq && pwrseq->ops && pwrseq->ops->pre_power_on) in mmc_pwrseq_pre_power_on()
93 pwrseq->ops->pre_power_on(host); in mmc_pwrseq_pre_power_on()
100 if (pwrseq && pwrseq->ops && pwrseq->ops->post_power_on) in mmc_pwrseq_post_power_on()
101 pwrseq->ops->post_power_on(host); in mmc_pwrseq_post_power_on()
108 if (pwrseq && pwrseq->ops && pwrseq->ops->power_off) in mmc_pwrseq_power_off()
109 pwrseq->ops->power_off(host); in mmc_pwrseq_power_off()
116 if (pwrseq && pwrseq->ops && pwrseq->ops->free) in mmc_pwrseq_free()
117 pwrseq->ops->free(host); in mmc_pwrseq_free()
/linux-4.1.27/arch/arm/mach-omap1/
Dclock_data.c80 .ops = &clkops_null,
86 .ops = &clkops_null,
97 .ops = &clkops_generic,
110 .ops = &clkops_generic,
121 .ops = &clkops_null,
132 .ops = &clkops_generic,
151 .ops = &clkops_generic,
162 .ops = &clkops_generic,
175 .ops = &clkops_generic,
188 .ops = &clkops_generic,
[all …]
/linux-4.1.27/arch/blackfin/mach-bf609/
Dclock.c92 if (clk->ops && clk->ops->enable) in clk_enable()
93 ret = clk->ops->enable(clk); in clk_enable()
100 if (clk->ops && clk->ops->disable) in clk_disable()
101 clk->ops->disable(clk); in clk_disable()
109 if (clk->ops && clk->ops->get_rate) in clk_get_rate()
110 ret = clk->ops->get_rate(clk); in clk_get_rate()
118 if (clk->ops && clk->ops->round_rate) in clk_round_rate()
119 ret = clk->ops->round_rate(clk, rate); in clk_round_rate()
127 if (clk->ops && clk->ops->set_rate) in clk_set_rate()
128 ret = clk->ops->set_rate(clk, rate); in clk_set_rate()
[all …]
/linux-4.1.27/net/openvswitch/
Dvport.c77 int ovs_vport_ops_register(struct vport_ops *ops) in ovs_vport_ops_register() argument
84 if (ops->type == o->type) in ovs_vport_ops_register()
87 list_add_tail(&ops->list, &vport_ops_list); in ovs_vport_ops_register()
95 void ovs_vport_ops_unregister(struct vport_ops *ops) in ovs_vport_ops_unregister() argument
98 list_del(&ops->list); in ovs_vport_ops_unregister()
116 if (!strcmp(name, vport->ops->get_name(vport)) && in ovs_vport_locate()
134 struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops, in ovs_vport_alloc() argument
152 vport->ops = ops; in ovs_vport_alloc()
193 struct vport_ops *ops; in ovs_vport_lookup() local
195 list_for_each_entry(ops, &vport_ops_list, list) in ovs_vport_lookup()
[all …]
/linux-4.1.27/drivers/staging/goldfish/
Dgoldfish_nand.c133 struct mtd_oob_ops *ops) in goldfish_nand_read_oob() argument
137 if (ofs + ops->len > mtd->size) in goldfish_nand_read_oob()
139 if (ops->datbuf && ops->len && ops->len != mtd->writesize) in goldfish_nand_read_oob()
141 if (ops->ooblen + ops->ooboffs > mtd->oobsize) in goldfish_nand_read_oob()
149 if (ops->datbuf) in goldfish_nand_read_oob()
150 ops->retlen = goldfish_nand_cmd(mtd, NAND_CMD_READ, ofs, in goldfish_nand_read_oob()
151 ops->len, ops->datbuf); in goldfish_nand_read_oob()
152 ofs += mtd->writesize + ops->ooboffs; in goldfish_nand_read_oob()
153 if (ops->oobbuf) in goldfish_nand_read_oob()
154 ops->oobretlen = goldfish_nand_cmd(mtd, NAND_CMD_READ, ofs, in goldfish_nand_read_oob()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/igbvf/
Dvf.c56 mac->ops.reset_hw = e1000_reset_hw_vf; in e1000_init_mac_params_vf()
58 mac->ops.init_hw = e1000_init_hw_vf; in e1000_init_mac_params_vf()
60 mac->ops.check_for_link = e1000_check_for_link_vf; in e1000_init_mac_params_vf()
62 mac->ops.get_link_up_info = e1000_get_link_up_info_vf; in e1000_init_mac_params_vf()
64 mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_vf; in e1000_init_mac_params_vf()
66 mac->ops.rar_set = e1000_rar_set_vf; in e1000_init_mac_params_vf()
68 mac->ops.read_mac_addr = e1000_read_mac_addr_vf; in e1000_init_mac_params_vf()
70 mac->ops.set_vfta = e1000_set_vfta_vf; in e1000_init_mac_params_vf()
81 hw->mac.ops.init_params = e1000_init_mac_params_vf; in e1000_init_function_pointers_vf()
82 hw->mbx.ops.init_params = e1000_init_mbx_params_vf; in e1000_init_function_pointers_vf()
[all …]
Dmbx.c40 if (!mbx->ops.check_for_msg) in e1000_poll_for_msg()
43 while (countdown && mbx->ops.check_for_msg(hw)) { in e1000_poll_for_msg()
66 if (!mbx->ops.check_for_ack) in e1000_poll_for_ack()
69 while (countdown && mbx->ops.check_for_ack(hw)) { in e1000_poll_for_ack()
95 if (!mbx->ops.read) in e1000_read_posted_mbx()
102 ret_val = mbx->ops.read(hw, msg, size); in e1000_read_posted_mbx()
122 if (!mbx->ops.write || !mbx->timeout) in e1000_write_posted_mbx()
126 ret_val = mbx->ops.write(hw, msg, size); in e1000_write_posted_mbx()
334 mbx->ops.read = e1000_read_mbx_vf; in e1000_init_mbx_params_vf()
335 mbx->ops.write = e1000_write_mbx_vf; in e1000_init_mbx_params_vf()
[all …]
/linux-4.1.27/drivers/net/wireless/b43/
Dphy_common.c46 phy->ops = NULL; in b43_phy_allocate()
51 phy->ops = &b43_phyops_g; in b43_phy_allocate()
56 phy->ops = &b43_phyops_n; in b43_phy_allocate()
61 phy->ops = &b43_phyops_lp; in b43_phy_allocate()
66 phy->ops = &b43_phyops_ht; in b43_phy_allocate()
71 phy->ops = &b43_phyops_lcn; in b43_phy_allocate()
76 phy->ops = &b43_phyops_ac; in b43_phy_allocate()
80 if (B43_WARN_ON(!phy->ops)) in b43_phy_allocate()
83 err = phy->ops->allocate(dev); in b43_phy_allocate()
85 phy->ops = NULL; in b43_phy_allocate()
[all …]
/linux-4.1.27/net/sched/
Dematch.c126 int tcf_em_register(struct tcf_ematch_ops *ops) in tcf_em_register() argument
131 if (ops->match == NULL) in tcf_em_register()
136 if (ops->kind == e->kind) in tcf_em_register()
139 list_add_tail(&ops->link, &ematch_ops); in tcf_em_register()
158 void tcf_em_unregister(struct tcf_ematch_ops *ops) in tcf_em_unregister() argument
161 list_del(&ops->link); in tcf_em_unregister()
216 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate()
218 if (em->ops == NULL) { in tcf_em_validate()
224 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate()
225 if (em->ops) { in tcf_em_validate()
[all …]
/linux-4.1.27/drivers/iommu/
Dof_iommu.c101 struct iommu_ops *ops; member
106 void of_iommu_set_ops(struct device_node *np, struct iommu_ops *ops) in of_iommu_set_ops() argument
115 iommu->ops = ops; in of_iommu_set_ops()
124 struct iommu_ops *ops = NULL; in of_iommu_get_ops() local
129 ops = node->ops; in of_iommu_get_ops()
133 return ops; in of_iommu_get_ops()
141 struct iommu_ops *ops = NULL; in of_iommu_configure() local
158 ops = of_iommu_get_ops(np); in of_iommu_configure()
160 if (!ops || !ops->of_xlate || ops->of_xlate(dev, &iommu_spec)) in of_iommu_configure()
167 return ops; in of_iommu_configure()
Dio-pgtable-arm.c40 container_of((x), struct io_pgtable, ops)
322 static int arm_lpae_map(struct io_pgtable_ops *ops, unsigned long iova, in arm_lpae_map() argument
325 struct arm_lpae_io_pgtable *data = io_pgtable_ops_to_data(ops); in arm_lpae_map()
466 static int arm_lpae_unmap(struct io_pgtable_ops *ops, unsigned long iova, in arm_lpae_unmap() argument
470 struct arm_lpae_io_pgtable *data = io_pgtable_ops_to_data(ops); in arm_lpae_unmap()
482 static phys_addr_t arm_lpae_iova_to_phys(struct io_pgtable_ops *ops, in arm_lpae_iova_to_phys() argument
485 struct arm_lpae_io_pgtable *data = io_pgtable_ops_to_data(ops); in arm_lpae_iova_to_phys()
583 data->iop.ops = (struct io_pgtable_ops) { in arm_lpae_alloc_pgtable()
849 static void __init arm_lpae_dump_ops(struct io_pgtable_ops *ops) in arm_lpae_dump_ops() argument
851 struct arm_lpae_io_pgtable *data = io_pgtable_ops_to_data(ops); in arm_lpae_dump_ops()
[all …]
Diommu.c41 const struct iommu_ops *ops; member
737 const struct iommu_ops *ops = cb->ops; in add_iommu_group() local
739 if (!ops->add_device) in add_iommu_group()
744 ops->add_device(dev); in add_iommu_group()
753 const struct iommu_ops *ops = dev->bus->iommu_ops; in iommu_bus_notifier() local
762 if (ops->add_device) in iommu_bus_notifier()
763 return ops->add_device(dev); in iommu_bus_notifier()
765 if (ops->remove_device && dev->iommu_group) { in iommu_bus_notifier()
766 ops->remove_device(dev); in iommu_bus_notifier()
802 static int iommu_bus_init(struct bus_type *bus, const struct iommu_ops *ops) in iommu_bus_init() argument
[all …]
/linux-4.1.27/drivers/sh/clk/
Dcore.c230 if (clkp->ops && clkp->ops->recalc) in propagate_rate()
231 clkp->rate = clkp->ops->recalc(clkp); in propagate_rate()
244 if (likely(allow_disable && clk->ops && clk->ops->disable)) in __clk_disable()
245 clk->ops->disable(clk); in __clk_disable()
275 if (clk->ops && clk->ops->enable) { in __clk_enable()
276 ret = clk->ops->enable(clk); in __clk_enable()
321 if (clkp->ops && clkp->ops->recalc) in recalculate_root_clocks()
322 clkp->rate = clkp->ops->recalc(clkp); in recalculate_root_clocks()
440 if (clk->ops && clk->ops->init) in clk_register()
441 clk->ops->init(clk); in clk_register()
[all …]
/linux-4.1.27/net/ipv6/
Dip6_offload.c24 const struct net_offload *ops = NULL; in ipv6_gso_pull_exthdrs() local
31 ops = rcu_dereference(inet6_offloads[proto]); in ipv6_gso_pull_exthdrs()
33 if (unlikely(!ops)) in ipv6_gso_pull_exthdrs()
36 if (!(ops->flags & INET6_PROTO_GSO_EXTHDR)) in ipv6_gso_pull_exthdrs()
62 const struct net_offload *ops; in ipv6_gso_segment() local
109 ops = rcu_dereference(inet6_offloads[proto]); in ipv6_gso_segment()
110 if (likely(ops && ops->callbacks.gso_segment)) { in ipv6_gso_segment()
112 segs = ops->callbacks.gso_segment(skb, features); in ipv6_gso_segment()
169 const struct net_offload *ops; in ipv6_gro_receive() local
196 ops = rcu_dereference(inet6_offloads[proto]); in ipv6_gro_receive()
[all …]
/linux-4.1.27/drivers/media/dvb-core/
Ddvb_frontend.c149 return fe->ops.get_frontend != NULL; in has_get_frontend()
285 __func__, fe->dvb->num, fe->id, fe->ops.info.name); in dvb_frontend_init()
287 if (fe->ops.init) in dvb_frontend_init()
288 fe->ops.init(fe); in dvb_frontend_init()
289 if (fe->ops.tuner_ops.init) { in dvb_frontend_init()
290 if (fe->ops.i2c_gate_ctrl) in dvb_frontend_init()
291 fe->ops.i2c_gate_ctrl(fe, 1); in dvb_frontend_init()
292 fe->ops.tuner_ops.init(fe); in dvb_frontend_init()
293 if (fe->ops.i2c_gate_ctrl) in dvb_frontend_init()
294 fe->ops.i2c_gate_ctrl(fe, 0); in dvb_frontend_init()
[all …]
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dchip.c231 const struct brcmf_buscore_ops *ops; member
249 regdata = ci->ops->read32(ci->ctx, CORE_SB(core->base, sbidhigh)); in brcmf_chip_sb_corerev()
261 regdata = ci->ops->read32(ci->ctx, address); in brcmf_chip_sb_iscoreup()
274 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_IOCTL); in brcmf_chip_ai_iscoreup()
277 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL); in brcmf_chip_ai_iscoreup()
291 val = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatelow)); in brcmf_chip_sb_coredisable()
295 val = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatelow)); in brcmf_chip_sb_coredisable()
301 val = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatelow)); in brcmf_chip_sb_coredisable()
302 ci->ops->write32(ci->ctx, CORE_SB(base, sbtmstatelow), in brcmf_chip_sb_coredisable()
305 val = ci->ops->read32(ci->ctx, CORE_SB(base, sbtmstatelow)); in brcmf_chip_sb_coredisable()
[all …]
Dbus.h136 struct brcmf_bus_ops *ops; member
145 if (!bus->ops->preinit) in brcmf_bus_preinit()
147 return bus->ops->preinit(bus->dev); in brcmf_bus_preinit()
152 bus->ops->stop(bus->dev); in brcmf_bus_stop()
157 return bus->ops->txdata(bus->dev, skb); in brcmf_bus_txdata()
163 return bus->ops->txctl(bus->dev, msg, len); in brcmf_bus_txctl()
169 return bus->ops->rxctl(bus->dev, msg, len); in brcmf_bus_rxctl()
175 if (!bus->ops->gettxq) in brcmf_bus_gettxq()
178 return bus->ops->gettxq(bus->dev); in brcmf_bus_gettxq()
184 if (bus->ops->wowl_config) in brcmf_bus_wowl_config()
[all …]
/linux-4.1.27/sound/pci/hda/
Dhda_i915.c40 if (!acomp->ops) in hda_display_power()
46 acomp->ops->get_power(acomp->dev); in hda_display_power()
48 acomp->ops->put_power(acomp->dev); in hda_display_power()
65 if (!acomp->ops) in haswell_set_bclk()
68 cdclk_freq = acomp->ops->get_cdclk_freq(acomp->dev); in haswell_set_bclk()
108 if (WARN_ON(!(acomp->dev && acomp->ops && acomp->ops->get_power && in hda_component_master_bind()
109 acomp->ops->put_power && acomp->ops->get_cdclk_freq))) { in hda_component_master_bind()
118 if (!try_module_get(acomp->ops->owner)) { in hda_component_master_bind()
138 module_put(acomp->ops->owner); in hda_component_master_unbind()
140 WARN_ON(acomp->ops || acomp->dev); in hda_component_master_unbind()
[all …]
/linux-4.1.27/mm/
Dmmu_notifier.c73 if (mn->ops->release) in __mmu_notifier_release()
74 mn->ops->release(mn, mm); in __mmu_notifier_release()
118 if (mn->ops->clear_flush_young) in __mmu_notifier_clear_flush_young()
119 young |= mn->ops->clear_flush_young(mn, mm, start, end); in __mmu_notifier_clear_flush_young()
134 if (mn->ops->test_young) { in __mmu_notifier_test_young()
135 young = mn->ops->test_young(mn, mm, address); in __mmu_notifier_test_young()
153 if (mn->ops->change_pte) in __mmu_notifier_change_pte()
154 mn->ops->change_pte(mn, mm, address, pte); in __mmu_notifier_change_pte()
167 if (mn->ops->invalidate_page) in __mmu_notifier_invalidate_page()
168 mn->ops->invalidate_page(mn, mm, address); in __mmu_notifier_invalidate_page()
[all …]
/linux-4.1.27/fs/kernfs/
Dfile.c68 return kn->attr.ops; in kernfs_ops()
96 const struct kernfs_ops *ops = kernfs_ops(of->kn); in kernfs_seq_stop_active() local
98 if (ops->seq_stop) in kernfs_seq_stop_active()
99 ops->seq_stop(sf, v); in kernfs_seq_stop_active()
106 const struct kernfs_ops *ops; in kernfs_seq_start() local
116 ops = kernfs_ops(of->kn); in kernfs_seq_start()
117 if (ops->seq_start) { in kernfs_seq_start()
118 void *next = ops->seq_start(sf, ppos); in kernfs_seq_start()
135 const struct kernfs_ops *ops = kernfs_ops(of->kn); in kernfs_seq_next() local
137 if (ops->seq_next) { in kernfs_seq_next()
[all …]
/linux-4.1.27/drivers/dma/sh/
Dshdma-base.c58 const struct shdma_ops *ops = sdev->ops; in shdma_chan_xfer_ld_queue() local
62 if (ops->channel_busy(schan)) in shdma_chan_xfer_ld_queue()
68 ops->start_xfer(schan, sdesc); in shdma_chan_xfer_ld_queue()
132 const struct shdma_ops *ops = sdev->ops; in shdma_tx_submit() local
140 ops->setup_xfer(schan, schan->slave_id); in shdma_tx_submit()
177 const struct shdma_ops *ops = sdev->ops; in shdma_setup_slave() local
182 ret = ops->set_slave(schan, match, slave_addr, true); in shdma_setup_slave()
195 ret = ops->set_slave(schan, match, slave_addr, false); in shdma_setup_slave()
210 const struct shdma_ops *ops = sdev->ops; in shdma_alloc_chan_resources() local
239 desc = ops->embedded_desc(schan->desc, i); in shdma_alloc_chan_resources()
[all …]
/linux-4.1.27/sound/soc/intel/common/
Dsst-dsp.c96 sst->ops->write(sst->addr.shim, offset, value); in sst_dsp_shim_write()
107 val = sst->ops->read(sst->addr.shim, offset); in sst_dsp_shim_read()
119 sst->ops->write64(sst->addr.shim, offset, value); in sst_dsp_shim_write64()
130 val = sst->ops->read64(sst->addr.shim, offset); in sst_dsp_shim_read64()
139 sst->ops->write(sst->addr.shim, offset, value); in sst_dsp_shim_write_unlocked()
145 return sst->ops->read(sst->addr.shim, offset); in sst_dsp_shim_read_unlocked()
151 sst->ops->write64(sst->addr.shim, offset, value); in sst_dsp_shim_write64_unlocked()
157 return sst->ops->read64(sst->addr.shim, offset); in sst_dsp_shim_read64_unlocked()
227 if (sst->ops->dump) in sst_dsp_dump()
228 sst->ops->dump(sst); in sst_dsp_dump()
[all …]
/linux-4.1.27/drivers/media/radio/
Dradio-isa.c63 const struct radio_isa_ops *ops = isa->drv->ops; in radio_isa_g_tuner() local
76 if (ops->g_rxsubchans) in radio_isa_g_tuner()
77 v->rxsubchans = ops->g_rxsubchans(isa); in radio_isa_g_tuner()
81 if (ops->g_signal) in radio_isa_g_tuner()
82 v->signal = ops->g_signal(isa); in radio_isa_g_tuner()
93 const struct radio_isa_ops *ops = isa->drv->ops; in radio_isa_s_tuner() local
97 if (ops->s_stereo) { in radio_isa_s_tuner()
99 return ops->s_stereo(isa, isa->stereo); in radio_isa_s_tuner()
114 res = isa->drv->ops->s_frequency(isa, freq); in radio_isa_s_frequency()
139 return isa->drv->ops->s_mute_volume(isa, ctrl->val, in radio_isa_s_ctrl()
[all …]
/linux-4.1.27/include/trace/events/
Dfence.h19 __string(driver, fence->ops->get_driver_name(fence))
20 __string(timeline, fence->ops->get_driver_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 …]
/linux-4.1.27/arch/mips/include/asm/
Ddma-mapping.h37 struct dma_map_ops *ops = get_dma_ops(dev); in dma_supported() local
38 return ops->dma_supported(dev, mask); in dma_supported()
43 struct dma_map_ops *ops = get_dma_ops(dev); in dma_mapping_error() local
46 return ops->mapping_error(dev, mask); in dma_mapping_error()
52 struct dma_map_ops *ops = get_dma_ops(dev); in dma_set_mask() local
57 if (ops->set_dma_mask) in dma_set_mask()
58 return ops->set_dma_mask(dev, mask); in dma_set_mask()
75 struct dma_map_ops *ops = get_dma_ops(dev); in dma_alloc_attrs() local
77 ret = ops->alloc(dev, size, dma_handle, gfp, attrs); in dma_alloc_attrs()
90 struct dma_map_ops *ops = get_dma_ops(dev); in dma_free_attrs() local
[all …]
/linux-4.1.27/drivers/macintosh/
Dwindfarm.h39 const struct wf_control_ops *ops; member
66 s32 vmax = ct->ops->get_max(ct); in wf_control_set_max()
67 return ct->ops->set_value(ct, vmax); in wf_control_set_max()
72 s32 vmin = ct->ops->get_min(ct); in wf_control_set_min()
73 return ct->ops->set_value(ct, vmin); in wf_control_set_min()
78 return ct->ops->set_value(ct, val); in wf_control_set()
83 return ct->ops->get_value(ct, val); in wf_control_get()
88 return ct->ops->get_min(ct); in wf_control_get_min()
93 return ct->ops->get_max(ct); in wf_control_get_max()
110 const struct wf_sensor_ops *ops; member
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_phy.c127 if (hw->mac.ops.acquire_swfw_sync(hw, swfw_mask)) in ixgbe_read_i2c_combined_generic()
160 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_read_i2c_combined_generic()
166 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_read_i2c_combined_generic()
263 hw->phy.ops.read_reg(hw, in ixgbe_identify_phy_generic()
324 status = hw->phy.ops.read_reg(hw, MDIO_DEVID1, MDIO_MMD_PMAPMD, in ixgbe_get_phy_id()
329 status = hw->phy.ops.read_reg(hw, MDIO_DEVID2, MDIO_MMD_PMAPMD, in ixgbe_get_phy_id()
385 (IXGBE_ERR_OVERTEMP == hw->phy.ops.check_overtemp(hw))) in ixgbe_reset_phy_generic()
396 hw->phy.ops.write_reg(hw, MDIO_CTRL1, in ixgbe_reset_phy_generic()
407 hw->phy.ops.read_reg(hw, MDIO_CTRL1, in ixgbe_reset_phy_generic()
511 if (hw->mac.ops.acquire_swfw_sync(hw, gssr) == 0) { in ixgbe_read_phy_reg_generic()
[all …]
Dixgbe_mbx.c51 if (!mbx->ops.read) in ixgbe_read_mbx()
54 return mbx->ops.read(hw, msg, size, mbx_id); in ixgbe_read_mbx()
73 if (!mbx->ops.write) in ixgbe_write_mbx()
76 return mbx->ops.write(hw, msg, size, mbx_id); in ixgbe_write_mbx()
90 if (!mbx->ops.check_for_msg) in ixgbe_check_for_msg()
93 return mbx->ops.check_for_msg(hw, mbx_id); in ixgbe_check_for_msg()
107 if (!mbx->ops.check_for_ack) in ixgbe_check_for_ack()
110 return mbx->ops.check_for_ack(hw, mbx_id); in ixgbe_check_for_ack()
124 if (!mbx->ops.check_for_rst) in ixgbe_check_for_rst()
127 return mbx->ops.check_for_rst(hw, mbx_id); in ixgbe_check_for_rst()
[all …]
Dixgbe_82598.c129 phy->ops.identify(hw); in ixgbe_init_phy_ops_82598()
132 if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper) { in ixgbe_init_phy_ops_82598()
133 mac->ops.setup_link = &ixgbe_setup_copper_link_82598; in ixgbe_init_phy_ops_82598()
134 mac->ops.get_link_capabilities = in ixgbe_init_phy_ops_82598()
140 phy->ops.setup_link = &ixgbe_setup_phy_link_tnx; in ixgbe_init_phy_ops_82598()
141 phy->ops.check_link = &ixgbe_check_phy_link_tnx; in ixgbe_init_phy_ops_82598()
142 phy->ops.get_firmware_version = in ixgbe_init_phy_ops_82598()
146 phy->ops.reset = &ixgbe_reset_phy_nl; in ixgbe_init_phy_ops_82598()
149 ret_val = phy->ops.identify_sfp(hw); in ixgbe_init_phy_ops_82598()
354 hw->mac.ops.check_link(hw, &link_speed, &link_up, false); in ixgbe_fc_enable_82598()
[all …]
Dixgbe_82599.c96 if ((mac->ops.get_media_type(hw) == ixgbe_media_type_fiber) && in ixgbe_init_mac_link_ops_82599()
98 mac->ops.disable_tx_laser = in ixgbe_init_mac_link_ops_82599()
100 mac->ops.enable_tx_laser = in ixgbe_init_mac_link_ops_82599()
102 mac->ops.flap_tx_laser = &ixgbe_flap_tx_laser_multispeed_fiber; in ixgbe_init_mac_link_ops_82599()
104 mac->ops.disable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
105 mac->ops.enable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
106 mac->ops.flap_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
111 mac->ops.setup_link = &ixgbe_setup_mac_link_multispeed_fiber; in ixgbe_init_mac_link_ops_82599()
113 if ((mac->ops.get_media_type(hw) == in ixgbe_init_mac_link_ops_82599()
118 mac->ops.setup_link = &ixgbe_setup_mac_link_smartspeed; in ixgbe_init_mac_link_ops_82599()
[all …]
/linux-4.1.27/drivers/clk/ti/
Dinterface.c38 const struct clk_hw_omap_ops *ops) in _register_interface() argument
49 clk_hw->ops = ops; in _register_interface()
55 init.ops = &ti_interface_clk_ops; in _register_interface()
74 const struct clk_hw_omap_ops *ops = &clkhwops_iclk_wait; in ti_clk_register_interface() local
85 ops = &clkhwops_iclk; in ti_clk_register_interface()
88 ops = &clkhwops_omap3430es2_iclk_hsotgusb_wait; in ti_clk_register_interface()
91 ops = &clkhwops_omap3430es2_iclk_dss_usbhost_wait; in ti_clk_register_interface()
94 ops = &clkhwops_omap3430es2_iclk_ssi_wait; in ti_clk_register_interface()
97 ops = &clkhwops_am35xx_ipss_wait; in ti_clk_register_interface()
100 (void __iomem *)reg, gate->bit_shift, ops); in ti_clk_register_interface()
[all …]
Dgate.c98 u8 clk_gate_flags, const struct clk_ops *ops, in _register_gate() argument
112 init.ops = ops; in _register_gate()
116 clk_hw->ops = hw_ops; in _register_gate()
136 const struct clk_ops *ops = &omap_gate_clk_ops; in ti_clk_register_gate() local
158 ops = &omap_gate_clk_hsdiv_restore_ops; in ti_clk_register_gate()
169 ops = &omap_gate_clkdm_clk_ops; in ti_clk_register_gate()
179 clk_gate_flags, ops, hw_ops); in ti_clk_register_gate()
186 const struct clk_hw_omap_ops *ops = &clkhwops_wait; in ti_clk_build_component_gate() local
202 ops = NULL; in ti_clk_build_component_gate()
205 ops = &clkhwops_iclk_wait; in ti_clk_build_component_gate()
[all …]
/linux-4.1.27/fs/adfs/
Ddir.c24 struct adfs_dir_ops *ops = ADFS_SB(sb)->s_dir; in adfs_readdir() local
32 ret = ops->read(sb, inode->i_ino, inode->i_size, &dir); in adfs_readdir()
49 ret = ops->setpos(&dir, ctx->pos - 2); in adfs_readdir()
52 while (ops->getnext(&dir, &obj) == 0) { in adfs_readdir()
63 ops->free(&dir); in adfs_readdir()
72 struct adfs_dir_ops *ops = ADFS_SB(sb)->s_dir; in adfs_dir_update() local
78 if (!ops->update) { in adfs_dir_update()
83 ret = ops->read(sb, obj->parent_id, 0, &dir); in adfs_dir_update()
88 ret = ops->update(&dir, obj); in adfs_dir_update()
92 int err = ops->sync(&dir); in adfs_dir_update()
[all …]
/linux-4.1.27/net/nfc/hci/
Dllc.c55 int nfc_llc_register(const char *name, struct nfc_llc_ops *ops) in nfc_llc_register() argument
68 llc_engine->ops = ops; in nfc_llc_register()
117 llc->data = llc_engine->ops->init(hdev, xmit_to_drv, rcv_to_hci, in nfc_llc_allocate()
125 llc->ops = llc_engine->ops; in nfc_llc_allocate()
132 llc->ops->deinit(llc); in nfc_llc_free()
145 return llc->ops->start(llc); in nfc_llc_start()
150 return llc->ops->stop(llc); in nfc_llc_stop()
155 llc->ops->rcv_from_drv(llc, skb); in nfc_llc_rcv_from_drv()
160 return llc->ops->xmit_from_hci(llc, skb); in nfc_llc_xmit_from_hci()
Dcore.c252 if (hdev->ops->cmd_received) in nfc_hci_cmd_received()
253 hdev->ops->cmd_received(hdev, pipe, cmd, skb); in nfc_hci_cmd_received()
333 if (hdev->ops->complete_target_discovered) { in nfc_hci_target_discovered()
334 r = hdev->ops->complete_target_discovered(hdev, gate, in nfc_hci_target_discovered()
344 if (hdev->ops->target_from_gate) in nfc_hci_target_discovered()
345 r = hdev->ops->target_from_gate(hdev, gate, targets); in nfc_hci_target_discovered()
351 if (hdev->ops->complete_target_discovered) { in nfc_hci_target_discovered()
352 r = hdev->ops->complete_target_discovered(hdev, gate, in nfc_hci_target_discovered()
387 if (hdev->ops->event_received) { in nfc_hci_event_received()
388 r = hdev->ops->event_received(hdev, pipe, event, skb); in nfc_hci_event_received()
[all …]
/linux-4.1.27/drivers/media/tuners/
Dtda8290.c237 if (fe->ops.analog_ops.i2c_gate_ctrl) in tda8290_set_params()
238 fe->ops.analog_ops.i2c_gate_ctrl(fe, 1); in tda8290_set_params()
240 if (fe->ops.tuner_ops.set_analog_params) in tda8290_set_params()
241 fe->ops.tuner_ops.set_analog_params(fe, params); in tda8290_set_params()
307 if (fe->ops.analog_ops.i2c_gate_ctrl) in tda8290_set_params()
308 fe->ops.analog_ops.i2c_gate_ctrl(fe, 0); in tda8290_set_params()
431 if (fe->ops.analog_ops.i2c_gate_ctrl) in tda8295_set_params()
432 fe->ops.analog_ops.i2c_gate_ctrl(fe, 1); in tda8295_set_params()
434 if (fe->ops.tuner_ops.set_analog_params) in tda8295_set_params()
435 fe->ops.tuner_ops.set_analog_params(fe, params); in tda8295_set_params()
[all …]
Dmc44s803.c99 if (fe->ops.i2c_gate_ctrl) in mc44s803_init()
100 fe->ops.i2c_gate_ctrl(fe, 1); in mc44s803_init()
205 if (fe->ops.i2c_gate_ctrl) in mc44s803_init()
206 fe->ops.i2c_gate_ctrl(fe, 0); in mc44s803_init()
210 if (fe->ops.i2c_gate_ctrl) in mc44s803_init()
211 fe->ops.i2c_gate_ctrl(fe, 0); in mc44s803_init()
237 if (fe->ops.i2c_gate_ctrl) in mc44s803_set_params()
238 fe->ops.i2c_gate_ctrl(fe, 1); in mc44s803_set_params()
281 if (fe->ops.i2c_gate_ctrl) in mc44s803_set_params()
282 fe->ops.i2c_gate_ctrl(fe, 0); in mc44s803_set_params()
[all …]
Dfc0012.c113 if (fe->ops.i2c_gate_ctrl) in fc0012_init()
114 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0012_init()
122 if (fe->ops.i2c_gate_ctrl) in fc0012_init()
123 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0012_init()
271 if (fe->ops.i2c_gate_ctrl) in fc0012_set_params()
272 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0012_set_params()
323 if (fe->ops.i2c_gate_ctrl) in fc0012_set_params()
324 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0012_set_params()
371 if (fe->ops.i2c_gate_ctrl) in fc0012_get_rf_strength()
372 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0012_get_rf_strength()
[all …]
Dfc2580.c161 if (fe->ops.i2c_gate_ctrl) in fc2580_set_params()
162 fe->ops.i2c_gate_ctrl(fe, 1); in fc2580_set_params()
391 if (fe->ops.i2c_gate_ctrl) in fc2580_set_params()
392 fe->ops.i2c_gate_ctrl(fe, 0); in fc2580_set_params()
396 if (fe->ops.i2c_gate_ctrl) in fc2580_set_params()
397 fe->ops.i2c_gate_ctrl(fe, 0); in fc2580_set_params()
410 if (fe->ops.i2c_gate_ctrl) in fc2580_init()
411 fe->ops.i2c_gate_ctrl(fe, 1); in fc2580_init()
420 if (fe->ops.i2c_gate_ctrl) in fc2580_init()
421 fe->ops.i2c_gate_ctrl(fe, 0); in fc2580_init()
[all …]
Dmxl5007t.c594 if (fe->ops.i2c_gate_ctrl) in mxl5007t_get_status()
595 fe->ops.i2c_gate_ctrl(fe, 1); in mxl5007t_get_status()
606 if (fe->ops.i2c_gate_ctrl) in mxl5007t_get_status()
607 fe->ops.i2c_gate_ctrl(fe, 0); in mxl5007t_get_status()
655 if (fe->ops.i2c_gate_ctrl) in mxl5007t_set_params()
656 fe->ops.i2c_gate_ctrl(fe, 1); in mxl5007t_set_params()
673 if (fe->ops.i2c_gate_ctrl) in mxl5007t_set_params()
674 fe->ops.i2c_gate_ctrl(fe, 0); in mxl5007t_set_params()
686 if (fe->ops.i2c_gate_ctrl) in mxl5007t_init()
687 fe->ops.i2c_gate_ctrl(fe, 1); in mxl5007t_init()
[all …]
Dfc0013.c106 if (fe->ops.i2c_gate_ctrl) in fc0013_init()
107 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0013_init()
115 if (fe->ops.i2c_gate_ctrl) in fc0013_init()
116 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_init()
137 if (fe->ops.i2c_gate_ctrl) in fc0013_rc_cal_add()
138 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0013_rc_cal_add()
168 if (fe->ops.i2c_gate_ctrl) in fc0013_rc_cal_add()
169 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_rc_cal_add()
180 if (fe->ops.i2c_gate_ctrl) in fc0013_rc_cal_reset()
181 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0013_rc_cal_reset()
[all …]
Dtda18218.c150 if (fe->ops.i2c_gate_ctrl) in tda18218_set_params()
151 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in tda18218_set_params()
210 if (fe->ops.i2c_gate_ctrl) in tda18218_set_params()
211 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in tda18218_set_params()
232 if (fe->ops.i2c_gate_ctrl) in tda18218_sleep()
233 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in tda18218_sleep()
238 if (fe->ops.i2c_gate_ctrl) in tda18218_sleep()
239 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in tda18218_sleep()
254 if (fe->ops.i2c_gate_ctrl) in tda18218_init()
255 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in tda18218_init()
[all …]
Dmt2060.c174 if (fe->ops.i2c_gate_ctrl) in mt2060_set_params()
175 fe->ops.i2c_gate_ctrl(fe, 1); /* open i2c_gate */ in mt2060_set_params()
239 if (fe->ops.i2c_gate_ctrl) in mt2060_set_params()
240 fe->ops.i2c_gate_ctrl(fe, 0); /* close i2c_gate */ in mt2060_set_params()
306 if (fe->ops.i2c_gate_ctrl) in mt2060_init()
307 fe->ops.i2c_gate_ctrl(fe, 1); /* open i2c_gate */ in mt2060_init()
312 if (fe->ops.i2c_gate_ctrl) in mt2060_init()
313 fe->ops.i2c_gate_ctrl(fe, 0); /* close i2c_gate */ in mt2060_init()
323 if (fe->ops.i2c_gate_ctrl) in mt2060_sleep()
324 fe->ops.i2c_gate_ctrl(fe, 1); /* open i2c_gate */ in mt2060_sleep()
[all …]
/linux-4.1.27/drivers/dma-buf/
Dseqno-fence.c27 return seqno_fence->ops->get_driver_name(fence); in seqno_fence_get_driver_name()
33 return seqno_fence->ops->get_timeline_name(fence); in seqno_fence_get_timeline_name()
39 return seqno_fence->ops->enable_signaling(fence); in seqno_enable_signaling()
45 return seqno_fence->ops->signaled && seqno_fence->ops->signaled(fence); in seqno_signaled()
53 if (f->ops->release) in seqno_release()
54 f->ops->release(fence); in seqno_release()
62 return f->ops->wait(fence, intr, timeout); in seqno_wait()
Ddma-buf.c66 dmabuf->ops->release(dmabuf); in dma_buf_release()
93 return dmabuf->ops->mmap(dmabuf, vma); in dma_buf_mmap_internal()
295 || !exp_info->ops in dma_buf_export()
296 || !exp_info->ops->map_dma_buf in dma_buf_export()
297 || !exp_info->ops->unmap_dma_buf in dma_buf_export()
298 || !exp_info->ops->release in dma_buf_export()
299 || !exp_info->ops->kmap_atomic in dma_buf_export()
300 || !exp_info->ops->kmap in dma_buf_export()
301 || !exp_info->ops->mmap)) { in dma_buf_export()
310 dmabuf->ops = exp_info->ops; in dma_buf_export()
[all …]
Dfence.c166 ret = fence->ops->wait(fence, intr, timeout); in fence_wait_timeout()
181 if (fence->ops->release) in fence_release()
182 fence->ops->release(fence); in fence_release()
211 if (!fence->ops->enable_signaling(fence)) in fence_enable_sw_signaling()
266 if (!fence->ops->enable_signaling(fence)) { in fence_add_callback()
366 if (!fence->ops->enable_signaling(fence)) { in fence_default_wait()
417 fence_init(struct fence *fence, const struct fence_ops *ops, in fence_init() argument
421 BUG_ON(!ops || !ops->wait || !ops->enable_signaling || in fence_init()
422 !ops->get_driver_name || !ops->get_timeline_name); in fence_init()
425 fence->ops = ops; in fence_init()
/linux-4.1.27/arch/mips/jz4740/
Dclock.c304 .ops = &jz_clk_static_ops,
315 .ops = &jz_clk_pll_ops,
325 .ops = &jz_clk_pll_half_ops,
338 .ops = &jz_clk_main_ops,
347 .ops = &jz_clk_main_ops,
356 .ops = &jz_clk_main_ops,
366 .ops = &jz_clk_main_ops,
380 .ops = &jz_clk_ko_ops,
572 .ops = &jz_clk_ops_ld,
607 .ops = &jz_clk_i2s_ops,
[all …]
/linux-4.1.27/drivers/firmware/efi/
Dvars.c313 const struct efivar_operations *fops = __efivars->ops; in check_var_size()
447 const struct efivar_operations *ops = __efivars->ops; in efivar_init() local
470 status = ops->get_next_variable(&variable_name_size, in efivar_init()
588 const struct efivar_operations *ops = __efivars->ops; in __efivar_entry_delete() local
593 status = ops->set_variable(entry->var.VariableName, in __efivar_entry_delete()
614 const struct efivar_operations *ops = __efivars->ops; in efivar_entry_delete() local
618 status = ops->set_variable(entry->var.VariableName, in efivar_entry_delete()
655 const struct efivar_operations *ops = __efivars->ops; in efivar_entry_set() local
669 status = ops->set_variable(name, &vendor, in efivar_entry_set()
692 const struct efivar_operations *ops = __efivars->ops; in efivar_entry_set_nonblocking() local
[all …]
/linux-4.1.27/drivers/clk/
Dclk-axm5516.c152 .ops = &axxia_pllclk_ops,
164 .ops = &axxia_pllclk_ops,
176 .ops = &axxia_pllclk_ops,
188 .ops = &axxia_pllclk_ops,
200 .ops = &axxia_pllclk_ops,
216 .ops = &axxia_divclk_ops,
230 .ops = &axxia_divclk_ops,
244 .ops = &axxia_divclk_ops,
258 .ops = &axxia_divclk_ops,
272 .ops = &axxia_divclk_ops,
[all …]
/linux-4.1.27/drivers/clk/sirf/
Dclk-common.c197 .ops = &std_pll_ops,
204 .ops = &std_pll_ops,
211 .ops = &std_pll_ops,
274 .ops = &usb_pll_ops,
448 .ops = &msi_ops,
462 .ops = &msi_ops,
477 .ops = &msi_ops,
499 .ops = &cpu_ops,
527 .ops = &dmn_ops,
542 .ops = &dmn_ops,
[all …]
/linux-4.1.27/drivers/video/fbdev/omap2/displays-new/
Dpanel-dsi-cm.c118 r = in->ops.dsi->dcs_read(in, ddata->channel, dcs_cmd, buf, 1); in dsicm_dcs_read_1()
131 return in->ops.dsi->dcs_write(in, ddata->channel, &dcs_cmd, 1); in dsicm_dcs_write_0()
139 return in->ops.dsi->dcs_write(in, ddata->channel, buf, 2); in dsicm_dcs_write_1()
152 r = in->ops.dsi->dcs_write_nosync(in, ddata->channel, &cmd, 1); in dsicm_sleep_in()
214 r = in->ops.dsi->dcs_write_nosync(in, ddata->channel, buf, sizeof(buf)); in dsicm_set_update_window()
224 r = in->ops.dsi->dcs_write_nosync(in, ddata->channel, buf, sizeof(buf)); in dsicm_set_update_window()
228 in->ops.dsi->bta_sync(in, ddata->channel); in dsicm_set_update_window()
262 in->ops.dsi->disable(in, false, true); in dsicm_enter_ulps()
287 r = in->ops.dsi->enable(in); in dsicm_exit_ulps()
293 in->ops.dsi->enable_hs(in, ddata->channel, true); in dsicm_exit_ulps()
[all …]
/linux-4.1.27/drivers/watchdog/
Dwatchdog_dev.c76 if (wddev->ops->ping) in watchdog_ping()
77 err = wddev->ops->ping(wddev); /* ping the watchdog */ in watchdog_ping()
79 err = wddev->ops->start(wddev); /* restart watchdog */ in watchdog_ping()
109 err = wddev->ops->start(wddev); in watchdog_start()
148 err = wddev->ops->stop(wddev); in watchdog_stop()
171 if (!wddev->ops->status) in watchdog_get_status()
181 *status = wddev->ops->status(wddev); in watchdog_get_status()
199 if ((wddev->ops->set_timeout == NULL) || in watchdog_set_timeout()
213 err = wddev->ops->set_timeout(wddev, timeout); in watchdog_set_timeout()
234 if (!wddev->ops->get_timeleft) in watchdog_get_timeleft()
[all …]
/linux-4.1.27/arch/arm64/kernel/
Darmv8_deprecated.c55 struct insn_emulation_ops *ops; member
65 static void register_emulation_hooks(struct insn_emulation_ops *ops) in register_emulation_hooks() argument
69 BUG_ON(!ops->hooks); in register_emulation_hooks()
71 for (hook = ops->hooks; hook->instr_mask; hook++) in register_emulation_hooks()
74 pr_notice("Registered %s emulation handler\n", ops->name); in register_emulation_hooks()
77 static void remove_emulation_hooks(struct insn_emulation_ops *ops) in remove_emulation_hooks() argument
81 BUG_ON(!ops->hooks); in remove_emulation_hooks()
83 for (hook = ops->hooks; hook->instr_mask; hook++) in remove_emulation_hooks()
86 pr_notice("Removed %s emulation handler\n", ops->name); in remove_emulation_hooks()
92 if (insn->ops->set_hw_mode) in enable_insn_hw_mode()
[all …]
/linux-4.1.27/sound/soc/
Dsoc-pcm.c439 if (cpu_dai->driver->ops && cpu_dai->driver->ops->startup) { in soc_pcm_open()
440 ret = cpu_dai->driver->ops->startup(substream, cpu_dai); in soc_pcm_open()
448 if (platform->driver->ops && platform->driver->ops->open) { in soc_pcm_open()
449 ret = platform->driver->ops->open(substream); in soc_pcm_open()
459 if (codec_dai->driver->ops && codec_dai->driver->ops->startup) { in soc_pcm_open()
460 ret = codec_dai->driver->ops->startup(substream, in soc_pcm_open()
476 if (rtd->dai_link->ops && rtd->dai_link->ops->startup) { in soc_pcm_open()
477 ret = rtd->dai_link->ops->startup(substream); in soc_pcm_open()
550 if (rtd->dai_link->ops && rtd->dai_link->ops->shutdown) in soc_pcm_open()
551 rtd->dai_link->ops->shutdown(substream); in soc_pcm_open()
[all …]
Dsoc-ac97.c42 .ops = NULL, /* Gets initialized in snd_soc_set_ac97_ops() */
238 int snd_soc_set_ac97_ops(struct snd_ac97_bus_ops *ops) in snd_soc_set_ac97_ops() argument
240 if (ops == soc_ac97_ops) in snd_soc_set_ac97_ops()
243 if (soc_ac97_ops && ops) in snd_soc_set_ac97_ops()
246 soc_ac97_ops = ops; in snd_soc_set_ac97_ops()
247 soc_ac97_bus.ops = ops; in snd_soc_set_ac97_ops()
259 int snd_soc_set_ac97_ops_of_reset(struct snd_ac97_bus_ops *ops, in snd_soc_set_ac97_ops_of_reset() argument
270 ret = snd_soc_set_ac97_ops(ops); in snd_soc_set_ac97_ops_of_reset()
274 ops->warm_reset = snd_soc_ac97_warm_reset; in snd_soc_set_ac97_ops_of_reset()
275 ops->reset = snd_soc_ac97_reset; in snd_soc_set_ac97_ops_of_reset()
/linux-4.1.27/arch/x86/kernel/
Dftrace.c716 create_trampoline(struct ftrace_ops *ops, unsigned int *tramp_size) in create_trampoline() argument
732 if (ops->flags & FTRACE_OPS_FL_SAVE_REGS) { in create_trampoline()
777 *ptr = (unsigned long)ops; in create_trampoline()
798 ops->flags |= FTRACE_OPS_FL_ALLOC_TRAMP; in create_trampoline()
819 void arch_ftrace_update_trampoline(struct ftrace_ops *ops) in arch_ftrace_update_trampoline() argument
828 if (ops->trampoline) { in arch_ftrace_update_trampoline()
833 if (!(ops->flags & FTRACE_OPS_FL_ALLOC_TRAMP)) in arch_ftrace_update_trampoline()
836 ops->trampoline = create_trampoline(ops, &size); in arch_ftrace_update_trampoline()
837 if (!ops->trampoline) in arch_ftrace_update_trampoline()
839 ops->trampoline_size = size; in arch_ftrace_update_trampoline()
[all …]
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/
Drun.c57 *stat = ctx->ops->status_read(ctx); in spu_stopped()
129 ctx->ops->signal1_write(ctx, (unsigned long)isolated_loader >> 32); in spu_setup_isolated()
130 ctx->ops->signal2_write(ctx, in spu_setup_isolated()
133 ctx->ops->runcntl_write(ctx, in spu_setup_isolated()
138 while (((status = ctx->ops->status_read(ctx)) & status_loading) == in spu_setup_isolated()
153 ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_RUNNABLE); in spu_setup_isolated()
161 ctx->ops->runcntl_write(ctx, SPU_RUNCNTL_STOP); in spu_setup_isolated()
198 if (!(ctx->ops->status_read(ctx) & SPU_STATUS_ISOLATED_STATE)) { in spu_run_init()
208 runcntl = ctx->ops->runcntl_read(ctx) & in spu_run_init()
220 ctx->ops->privcntl_write(ctx, privcntl); in spu_run_init()
[all …]
/linux-4.1.27/drivers/staging/rtl8192e/
Drtllib_crypt.c24 struct lib80211_crypto_ops *ops; member
50 if (entry->ops) in rtllib_crypt_deinit_entries()
51 entry->ops->deinit(entry->priv); in rtllib_crypt_deinit_entries()
103 int rtllib_register_crypto_ops(struct lib80211_crypto_ops *ops) in rtllib_register_crypto_ops() argument
115 alg->ops = ops; in rtllib_register_crypto_ops()
122 ops->name); in rtllib_register_crypto_ops()
128 int rtllib_unregister_crypto_ops(struct lib80211_crypto_ops *ops) in rtllib_unregister_crypto_ops() argument
141 if (alg->ops == ops) { in rtllib_unregister_crypto_ops()
151 ops->name); in rtllib_unregister_crypto_ops()
173 if (strcmp(alg->ops->name, name) == 0) { in rtllib_get_crypto_ops()
[all …]
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt.c28 struct ieee80211_crypto_ops *ops; member
54 if (entry->ops) in ieee80211_crypt_deinit_entries()
55 entry->ops->deinit(entry->priv); in ieee80211_crypt_deinit_entries()
102 int ieee80211_register_crypto_ops(struct ieee80211_crypto_ops *ops) in ieee80211_register_crypto_ops() argument
114 alg->ops = ops; in ieee80211_register_crypto_ops()
121 ops->name); in ieee80211_register_crypto_ops()
126 int ieee80211_unregister_crypto_ops(struct ieee80211_crypto_ops *ops) in ieee80211_unregister_crypto_ops() argument
139 if (alg->ops == ops) { in ieee80211_unregister_crypto_ops()
149 ops->name); in ieee80211_unregister_crypto_ops()
170 if (strcmp(alg->ops->name, name) == 0) { in ieee80211_get_crypto_ops()
[all …]
/linux-4.1.27/drivers/char/hw_random/
Docteon-rng.c23 struct hwrng ops; member
31 struct octeon_rng *p = container_of(rng, struct octeon_rng, ops); in octeon_rng_init()
43 struct octeon_rng *p = container_of(rng, struct octeon_rng, ops); in octeon_rng_cleanup()
52 struct octeon_rng *p = container_of(rng, struct octeon_rng, ops); in octeon_rng_data_read()
64 struct hwrng ops = { in octeon_rng_probe() local
96 rng->ops = ops; in octeon_rng_probe()
98 platform_set_drvdata(pdev, &rng->ops); in octeon_rng_probe()
99 ret = hwrng_register(&rng->ops); in octeon_rng_probe()
/linux-4.1.27/arch/powerpc/oprofile/
Dcommon.c192 int __init oprofile_arch_init(struct oprofile_operations *ops) in oprofile_arch_init() argument
204 ops->sync_start = model->sync_start; in oprofile_arch_init()
205 ops->sync_stop = model->sync_stop; in oprofile_arch_init()
231 ops->cpu_type = cur_cpu_spec->oprofile_cpu_type; in oprofile_arch_init()
232 ops->create_files = op_powerpc_create_files; in oprofile_arch_init()
233 ops->setup = op_powerpc_setup; in oprofile_arch_init()
234 ops->shutdown = op_powerpc_shutdown; in oprofile_arch_init()
235 ops->start = op_powerpc_start; in oprofile_arch_init()
236 ops->stop = op_powerpc_stop; in oprofile_arch_init()
237 ops->backtrace = op_powerpc_backtrace; in oprofile_arch_init()
[all …]
/linux-4.1.27/net/bridge/netfilter/
Dnf_tables_bridge.c68 const struct nf_hook_ops *ops, in nft_bridge_set_pktinfo_ipv4() argument
73 nft_set_pktinfo_ipv4(pkt, ops, skb, state); in nft_bridge_set_pktinfo_ipv4()
75 nft_set_pktinfo(pkt, ops, skb, state); in nft_bridge_set_pktinfo_ipv4()
79 const struct nf_hook_ops *ops, in nft_bridge_set_pktinfo_ipv6() argument
85 nft_set_pktinfo_ipv6(pkt, ops, skb, state) == 0) in nft_bridge_set_pktinfo_ipv6()
88 nft_set_pktinfo(pkt, ops, skb, state); in nft_bridge_set_pktinfo_ipv6()
92 nft_do_chain_bridge(const struct nf_hook_ops *ops, in nft_do_chain_bridge() argument
100 nft_bridge_set_pktinfo_ipv4(&pkt, ops, skb, state); in nft_do_chain_bridge()
103 nft_bridge_set_pktinfo_ipv6(&pkt, ops, skb, state); in nft_do_chain_bridge()
106 nft_set_pktinfo(&pkt, ops, skb, state); in nft_do_chain_bridge()
[all …]
/linux-4.1.27/fs/sysfs/
Dfile.c46 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_seq_show() local
62 if (ops->show) { in sysfs_kf_seq_show()
63 count = ops->show(kobj, of->kn->priv, buf); in sysfs_kf_seq_show()
74 (unsigned long)ops->show); in sysfs_kf_seq_show()
109 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_read() local
118 return ops->show(kobj, of->kn->priv, buf); in sysfs_kf_read()
125 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_write() local
131 return ops->store(kobj, of->kn->priv, buf, count); in sysfs_kf_write()
243 const struct kernfs_ops *ops; in sysfs_add_file_mode_ns() local
259 ops = &sysfs_prealloc_kfops_rw; in sysfs_add_file_mode_ns()
[all …]
/linux-4.1.27/net/sunrpc/
Dauth.c95 rpcauth_register(const struct rpc_authops *ops) in rpcauth_register() argument
100 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_register()
104 auth_flavors[flavor] = ops; in rpcauth_register()
113 rpcauth_unregister(const struct rpc_authops *ops) in rpcauth_unregister() argument
118 if ((flavor = ops->au_flavor) >= RPC_AUTH_MAXFLAVOR) in rpcauth_unregister()
121 if (auth_flavors[flavor] == ops) { in rpcauth_unregister()
142 const struct rpc_authops *ops; in rpcauth_get_pseudoflavor() local
145 ops = auth_flavors[flavor]; in rpcauth_get_pseudoflavor()
146 if (ops == NULL) in rpcauth_get_pseudoflavor()
149 ops = auth_flavors[flavor]; in rpcauth_get_pseudoflavor()
[all …]
/linux-4.1.27/net/ieee802154/
Drdev-ops.h15 return rdev->ops->add_virtual_intf_deprecated(&rdev->wpan_phy, name, in rdev_add_virtual_intf_deprecated()
23 rdev->ops->del_virtual_intf_deprecated(&rdev->wpan_phy, dev); in rdev_del_virtual_intf_deprecated()
35 ret = rdev->ops->add_virtual_intf(&rdev->wpan_phy, name, in rdev_add_virtual_intf()
49 ret = rdev->ops->del_virtual_intf(&rdev->wpan_phy, wpan_dev); in rdev_del_virtual_intf()
60 ret = rdev->ops->set_channel(&rdev->wpan_phy, page, channel); in rdev_set_channel()
72 ret = rdev->ops->set_cca_mode(&rdev->wpan_phy, cca); in rdev_set_cca_mode()
84 ret = rdev->ops->set_pan_id(&rdev->wpan_phy, wpan_dev, pan_id); in rdev_set_pan_id()
96 ret = rdev->ops->set_short_addr(&rdev->wpan_phy, wpan_dev, short_addr); in rdev_set_short_addr()
109 ret = rdev->ops->set_backoff_exponent(&rdev->wpan_phy, wpan_dev, in rdev_set_backoff_exponent()
123 ret = rdev->ops->set_max_csma_backoffs(&rdev->wpan_phy, wpan_dev, in rdev_set_max_csma_backoffs()
[all …]
/linux-4.1.27/arch/um/drivers/
Dchan_kern.c91 if (chan->ops->open == NULL) in open_one_chan()
93 else fd = (*chan->ops->open)(chan->input, chan->output, chan->primary, in open_one_chan()
100 (*chan->ops->close)(fd, chan->data); in open_one_chan()
127 if (chan && chan->primary && chan->ops->winch) in chan_enable_winch()
224 if (chan->ops->close != NULL) in close_one_chan()
225 (*chan->ops->close)(chan->fd, chan->data); in close_one_chan()
262 if (len == 0 || !chan || !chan->ops->write) in write_chan()
265 n = chan->ops->write(chan->fd, buf, len, chan->data); in write_chan()
278 if (!chan || !chan->ops->console_write) in console_write_chan()
281 n = chan->ops->console_write(chan->fd, buf, len); in console_write_chan()
[all …]
/linux-4.1.27/drivers/hid/
Dhid-wiimote-core.c620 const struct wiimod_ops *ops; in wiimote_modules_load() local
647 ops = wiimod_table[*iter]; in wiimote_modules_load()
648 if (!ops->probe) in wiimote_modules_load()
651 ret = ops->probe(ops, wdata); in wiimote_modules_load()
669 ops = wiimod_table[*iter]; in wiimote_modules_load()
670 if (ops->remove) in wiimote_modules_load()
671 ops->remove(ops, wdata); in wiimote_modules_load()
683 const struct wiimod_ops *ops; in wiimote_modules_unload() local
702 ops = wiimod_table[*iter]; in wiimote_modules_unload()
703 if (ops->remove) in wiimote_modules_unload()
[all …]
/linux-4.1.27/drivers/devfreq/
Ddevfreq-event.c48 if (edev->desc->ops && edev->desc->ops->enable in devfreq_event_enable_edev()
50 ret = edev->desc->ops->enable(edev); in devfreq_event_enable_edev()
86 if (edev->desc->ops && edev->desc->ops->disable in devfreq_event_disable_edev()
88 ret = edev->desc->ops->disable(edev); in devfreq_event_disable_edev()
141 if (!edev->desc->ops || !edev->desc->ops->set_event) in devfreq_event_set_event()
148 ret = edev->desc->ops->set_event(edev); in devfreq_event_set_event()
171 if (!edev->desc->ops || !edev->desc->ops->get_event) in devfreq_event_get_event()
180 ret = edev->desc->ops->get_event(edev, edata); in devfreq_event_get_event()
207 if (edev->desc->ops && edev->desc->ops->reset) in devfreq_event_reset_event()
208 ret = edev->desc->ops->reset(edev); in devfreq_event_reset_event()
[all …]
/linux-4.1.27/drivers/regulator/
Dcore.c396 status = rdev->desc->ops->get_status(rdev); in regulator_status_show()
626 ret = rdev->desc->ops->get_bypass(rdev, &bypass); in regulator_bypass_show()
656 if (!rdev->desc->ops->get_optimum_mode && in drms_uA_update()
657 !rdev->desc->ops->set_load) in drms_uA_update()
660 if (!rdev->desc->ops->set_mode && in drms_uA_update()
661 !rdev->desc->ops->set_load) in drms_uA_update()
686 if (rdev->desc->ops->set_load) { in drms_uA_update()
688 err = rdev->desc->ops->set_load(rdev, current_uA); in drms_uA_update()
693 mode = rdev->desc->ops->get_optimum_mode(rdev, input_uV, in drms_uA_update()
704 err = rdev->desc->ops->set_mode(rdev, mode); in drms_uA_update()
[all …]
Ddb8500-prcmu.c218 .ops = &db8500_regulator_ops,
227 .ops = &db8500_regulator_ops,
236 .ops = &db8500_regulator_ops,
245 .ops = &db8500_regulator_ops,
254 .ops = &db8500_regulator_ops,
263 .ops = &db8500_regulator_ops,
275 .ops = &db8500_regulator_ops,
284 .ops = &db8500_regulator_ops,
293 .ops = &db8500_regulator_switch_ops,
303 .ops = &db8500_regulator_switch_ops,
[all …]
/linux-4.1.27/drivers/thermal/
Dof-thermal.c84 const struct thermal_zone_of_device_ops *ops; member
94 if (!data->ops->get_temp) in of_thermal_get_temp()
97 return data->ops->get_temp(data->sensor_data, temp); in of_thermal_get_temp()
180 if (!data->ops || !data->ops->set_emul_temp) in of_thermal_set_emul_temp()
183 return data->ops->set_emul_temp(data->sensor_data, temp); in of_thermal_set_emul_temp()
193 if (!data->ops->get_trend) in of_thermal_get_trend()
196 r = data->ops->get_trend(data->sensor_data, &dev_trend); in of_thermal_get_trend()
397 const struct thermal_zone_of_device_ops *ops) in thermal_zone_of_add_sensor() argument
408 if (!ops) in thermal_zone_of_add_sensor()
412 tz->ops = ops; in thermal_zone_of_add_sensor()
[all …]
Dthermal_core.c178 if (tz->emul_temperature || !tz->ops->get_trend || in get_tz_trend()
179 tz->ops->get_trend(tz, trip, &trend)) { in get_tz_trend()
265 if (!pos->tzp && !pos->ops->bind) in bind_cdev()
268 if (pos->ops->bind) { in bind_cdev()
269 ret = pos->ops->bind(pos, cdev); in bind_cdev()
299 if (!tzp && !tz->ops->bind) in bind_tz()
305 if (tz->ops->bind) { in bind_tz()
307 ret = tz->ops->bind(tz, pos); in bind_tz()
371 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_critical_trips()
379 if (tz->ops->notify) in handle_critical_trips()
[all …]
/linux-4.1.27/arch/sh/drivers/pci/
DMakefile6 obj-$(CONFIG_CPU_SUBTYPE_SH7751) += pci-sh7751.o ops-sh4.o
7 obj-$(CONFIG_CPU_SUBTYPE_SH7751R) += pci-sh7751.o ops-sh4.o
8 obj-$(CONFIG_CPU_SUBTYPE_SH7763) += pci-sh7780.o ops-sh4.o
9 obj-$(CONFIG_CPU_SUBTYPE_SH7780) += pci-sh7780.o ops-sh4.o
10 obj-$(CONFIG_CPU_SUBTYPE_SH7785) += pci-sh7780.o ops-sh4.o
11 obj-$(CONFIG_CPU_SUBTYPE_SH7786) += pcie-sh7786.o ops-sh7786.o
12 obj-$(CONFIG_CPU_SH5) += pci-sh5.o ops-sh5.o
14 obj-$(CONFIG_SH_DREAMCAST) += ops-dreamcast.o fixups-dreamcast.o \
/linux-4.1.27/sound/pci/ctxfi/
Dctatc.c270 src->ops->set_pitch(src, pitch); in atc_pcm_playback_prepare()
271 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_playback_prepare()
272 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in atc_pcm_playback_prepare()
274 src->ops->set_pm(src, (src->ops->next_interleave(src) != NULL)); in atc_pcm_playback_prepare()
303 amixer->ops->setup(amixer, &src->rsc, in atc_pcm_playback_prepare()
306 src = src->ops->next_interleave(src); in atc_pcm_playback_prepare()
333 srcimp->ops->unmap(srcimp); in atc_pcm_release_resources()
390 src->ops->set_sa(src, apcm->vm_block->addr); in atc_pcm_playback_start()
391 src->ops->set_la(src, apcm->vm_block->addr + apcm->vm_block->size); in atc_pcm_playback_start()
392 src->ops->set_ca(src, apcm->vm_block->addr + max_cisz); in atc_pcm_playback_start()
[all …]
Dctsrc.c185 src->rsc.ops->master(&src->rsc); in src_commit_write()
190 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_commit_write()
198 src->rsc.ops->next_conj(&src->rsc); in src_commit_write()
200 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_commit_write()
203 src->rsc.ops->master(&src->rsc); in src_commit_write()
213 return hw->src_get_ca(hw, src->rsc.ops->index(&src->rsc), in src_get_ca()
254 src->rsc.ops->master(&src->rsc); in src_default_config_memrd()
255 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_default_config_memrd()
259 src->rsc.ops->next_conj(&src->rsc); in src_default_config_memrd()
261 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_default_config_memrd()
[all …]
/linux-4.1.27/sound/core/
Dcompress_offload.c121 data->stream.ops = compr->ops; in snd_compr_open()
136 ret = compr->ops->open(&data->stream); in snd_compr_open()
155 data->stream.ops->trigger(&data->stream, SNDRV_PCM_TRIGGER_STOP); in snd_compr_free()
161 data->stream.ops->free(&data->stream); in snd_compr_free()
171 if (!stream->ops->pointer) in snd_compr_update_tstamp()
173 stream->ops->pointer(stream, tstamp); in snd_compr_update_tstamp()
267 if (stream->ops->ack) in snd_compr_write_data()
268 stream->ops->ack(stream, count); in snd_compr_write_data()
298 if (stream->ops->copy) { in snd_compr_write()
300 retval = stream->ops->copy(stream, cbuf, avail); in snd_compr_write()
[all …]
Dhwdep.c59 if (hw->ops.llseek) in snd_hwdep_llseek()
60 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek()
68 if (hw->ops.read) in snd_hwdep_read()
69 return hw->ops.read(hw, buf, count, offset); in snd_hwdep_read()
77 if (hw->ops.write) in snd_hwdep_write()
78 return hw->ops.write(hw, buf, count, offset); in snd_hwdep_write()
115 if (!hw->ops.open) { in snd_hwdep_open()
119 err = hw->ops.open(hw, file); in snd_hwdep_open()
149 if (hw->ops.release) in snd_hwdep_open()
150 hw->ops.release(hw, file); in snd_hwdep_open()
[all …]
Ddevice.c45 void *device_data, struct snd_device_ops *ops) in snd_device_new() argument
50 if (snd_BUG_ON(!card || !device_data || !ops)) in snd_device_new()
60 dev->ops = ops; in snd_device_new()
77 if (dev->ops->dev_disconnect && in __snd_device_disconnect()
78 dev->ops->dev_disconnect(dev)) in __snd_device_disconnect()
90 if (dev->ops->dev_free) { in __snd_device_free()
91 if (dev->ops->dev_free(dev)) in __snd_device_free()
163 if (dev->ops->dev_register) { in __snd_device_register()
164 int err = dev->ops->dev_register(dev); in __snd_device_register()
/linux-4.1.27/arch/arm/plat-versatile/
Dclock.c41 if (clk->ops && clk->ops->round) in clk_round_rate()
42 ret = clk->ops->round(clk, rate); in clk_round_rate()
50 if (clk->ops && clk->ops->set) in clk_set_rate()
51 ret = clk->ops->set(clk, rate); in clk_set_rate()
70 clk->ops->setvco(clk, vco); in icst_clk_set()
/linux-4.1.27/drivers/gpu/drm/exynos/
Dexynos_drm_crtc.c42 if (exynos_crtc->ops->dpms) in exynos_drm_crtc_dpms()
43 exynos_crtc->ops->dpms(exynos_crtc, mode); in exynos_drm_crtc_dpms()
63 if (exynos_crtc->ops->win_commit) in exynos_drm_crtc_commit()
64 exynos_crtc->ops->win_commit(exynos_crtc, exynos_plane->zpos); in exynos_drm_crtc_commit()
66 if (exynos_crtc->ops->commit) in exynos_drm_crtc_commit()
67 exynos_crtc->ops->commit(exynos_crtc); in exynos_drm_crtc_commit()
77 if (exynos_crtc->ops->mode_fixup) in exynos_drm_crtc_mode_fixup()
78 return exynos_crtc->ops->mode_fixup(exynos_crtc, mode, in exynos_drm_crtc_mode_fixup()
244 const struct exynos_drm_crtc_ops *ops, in exynos_drm_crtc_create() argument
261 exynos_crtc->ops = ops; in exynos_drm_crtc_create()
[all …]
Dexynos_drm_encoder.c42 if (display->ops->dpms) in exynos_drm_encoder_dpms()
43 display->ops->dpms(display, mode); in exynos_drm_encoder_dpms()
60 if (display->ops->mode_fixup) in exynos_drm_encoder_mode_fixup()
61 display->ops->mode_fixup(display, connector, mode, in exynos_drm_encoder_mode_fixup()
75 if (display->ops->mode_set) in exynos_drm_encoder_mode_set()
76 display->ops->mode_set(display, adjusted_mode); in exynos_drm_encoder_mode_set()
89 if (display->ops->dpms) in exynos_drm_encoder_commit()
90 display->ops->dpms(display, DRM_MODE_DPMS_ON); in exynos_drm_encoder_commit()
92 if (display->ops->commit) in exynos_drm_encoder_commit()
93 display->ops->commit(display); in exynos_drm_encoder_commit()
/linux-4.1.27/drivers/misc/mei/
Dmei_dev.h351 struct mei_cl_ops *ops);
386 const struct mei_cl_ops *ops; member
599 const struct mei_hw_ops *ops; member
718 dev->ops->hw_config(dev); in mei_hw_config()
723 return dev->ops->pg_state(dev); in mei_pg_state()
728 return dev->ops->pg_in_transition(dev); in mei_pg_in_transition()
733 return dev->ops->pg_is_enabled(dev); in mei_pg_is_enabled()
738 return dev->ops->hw_reset(dev, enable); in mei_hw_reset()
743 return dev->ops->hw_start(dev); in mei_hw_start()
748 dev->ops->intr_clear(dev); in mei_clear_interrupts()
[all …]
/linux-4.1.27/arch/mips/loongson/lemote-2f/
Dclock.c63 if (likely(clkp->ops && clkp->ops->recalc)) in propagate_rate()
64 clkp->ops->recalc(clkp); in propagate_rate()
99 if (likely(clk->ops && clk->ops->set_rate)) { in clk_set_rate()
103 ret = clk->ops->set_rate(clk, rate, 0); in clk_set_rate()
128 if (likely(clk->ops && clk->ops->round_rate)) { in clk_round_rate()
132 rounded = clk->ops->round_rate(clk, rate); in clk_round_rate()
/linux-4.1.27/drivers/vfio/
Dvfio.c54 const struct vfio_iommu_driver_ops *ops; member
91 const struct vfio_device_ops *ops; member
100 int vfio_register_iommu_driver(const struct vfio_iommu_driver_ops *ops) in vfio_register_iommu_driver() argument
108 driver->ops = ops; in vfio_register_iommu_driver()
114 if (tmp->ops == ops) { in vfio_register_iommu_driver()
129 void vfio_unregister_iommu_driver(const struct vfio_iommu_driver_ops *ops) in vfio_unregister_iommu_driver() argument
135 if (driver->ops == ops) { in vfio_unregister_iommu_driver()
365 const struct vfio_device_ops *ops, in vfio_group_create_device() argument
377 device->ops = ops; in vfio_group_create_device()
612 const struct vfio_device_ops *ops, void *device_data) in vfio_add_group_dev() argument
[all …]
/linux-4.1.27/kernel/livepatch/
Dcore.c66 struct klp_ops *ops; in klp_find_ops() local
69 list_for_each_entry(ops, &klp_ops, node) { in klp_find_ops()
70 func = list_first_entry(&ops->func_stack, struct klp_func, in klp_find_ops()
73 return ops; in klp_find_ops()
330 struct klp_ops *ops; in klp_ftrace_handler() local
333 ops = container_of(fops, struct klp_ops, fops); in klp_ftrace_handler()
336 func = list_first_or_null_rcu(&ops->func_stack, struct klp_func, in klp_ftrace_handler()
348 struct klp_ops *ops; in klp_disable_func() local
353 ops = klp_find_ops(func->old_addr); in klp_disable_func()
354 if (WARN_ON(!ops)) in klp_disable_func()
[all …]
/linux-4.1.27/arch/sparc/oprofile/
Dinit.c59 static int op_nmi_timer_init(struct oprofile_operations *ops) in op_nmi_timer_init() argument
64 ops->start = timer_start; in op_nmi_timer_init()
65 ops->stop = timer_stop; in op_nmi_timer_init()
66 ops->cpu_type = "timer"; in op_nmi_timer_init()
72 int __init oprofile_arch_init(struct oprofile_operations *ops) in oprofile_arch_init() argument
77 ret = op_nmi_timer_init(ops); in oprofile_arch_init()
/linux-4.1.27/drivers/pinctrl/
Dpinconf.c29 const struct pinconf_ops *ops = pctldev->desc->confops; in pinconf_check_ops() local
32 if (!ops->pin_config_set && !ops->pin_config_group_set) { in pinconf_check_ops()
61 const struct pinconf_ops *ops = pctldev->desc->confops; in pin_config_get_for_pin() local
63 if (!ops || !ops->pin_config_get) { in pin_config_get_for_pin()
69 return ops->pin_config_get(pctldev, pin, config); in pin_config_get_for_pin()
76 const struct pinconf_ops *ops; in pin_config_group_get() local
87 ops = pctldev->desc->confops; in pin_config_group_get()
89 if (!ops || !ops->pin_config_group_get) { in pin_config_group_get()
103 ret = ops->pin_config_group_get(pctldev, selector, config); in pin_config_group_get()
154 const struct pinconf_ops *ops = pctldev->desc->confops; in pinconf_apply_setting() local
[all …]
Dpinmux.c35 const struct pinmux_ops *ops = pctldev->desc->pmxops; in pinmux_check_ops() local
40 if (!ops || in pinmux_check_ops()
41 !ops->get_functions_count || in pinmux_check_ops()
42 !ops->get_function_name || in pinmux_check_ops()
43 !ops->get_function_groups || in pinmux_check_ops()
44 !ops->set_mux) { in pinmux_check_ops()
49 nfuncs = ops->get_functions_count(pctldev); in pinmux_check_ops()
51 const char *fname = ops->get_function_name(pctldev, in pinmux_check_ops()
88 const struct pinmux_ops *ops = pctldev->desc->pmxops; in pin_request() local
140 if (gpio_range && ops->gpio_request_enable) in pin_request()
[all …]
/linux-4.1.27/drivers/media/i2c/s5c73m3/
Ds5c73m3-ctrls.c453 const struct v4l2_ctrl_ops *ops = &s5c73m3_ctrl_ops; in s5c73m3_init_controls() local
462 ctrls->auto_wb = v4l2_ctrl_new_std_menu(hdl, ops, in s5c73m3_init_controls()
467 ctrls->auto_exposure = v4l2_ctrl_new_std_menu(hdl, ops, in s5c73m3_init_controls()
470 ctrls->exposure_bias = v4l2_ctrl_new_int_menu(hdl, ops, in s5c73m3_init_controls()
476 ctrls->exposure_metering = v4l2_ctrl_new_std_menu(hdl, ops, in s5c73m3_init_controls()
481 ctrls->focus_auto = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls()
484 ctrls->af_start = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls()
487 ctrls->af_stop = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls()
490 ctrls->af_status = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls()
497 ctrls->af_distance = v4l2_ctrl_new_std_menu(hdl, ops, in s5c73m3_init_controls()
[all …]
/linux-4.1.27/arch/arm/mach-pxa/
Dclock.c21 clk->ops->enable(clk); in clk_enable()
39 clk->ops->disable(clk); in clk_disable()
49 if (clk->ops->getrate) in clk_get_rate()
50 rate = clk->ops->getrate(clk); in clk_get_rate()
61 if (clk->ops->setrate) { in clk_set_rate()
63 ret = clk->ops->setrate(clk, rate); in clk_set_rate()
85 .ops = &clk_dummy_ops,
/linux-4.1.27/drivers/ptp/
Dptp_chardev.c28 static int ptp_disable_pinfunc(struct ptp_clock_info *ops, in ptp_disable_pinfunc() argument
42 err = ops->enable(ops, &rq, 0); in ptp_disable_pinfunc()
47 err = ops->enable(ops, &rq, 0); in ptp_disable_pinfunc()
125 struct ptp_clock_info *ops = ptp->info; in ptp_ioctl() local
151 if (req.extts.index >= ops->n_ext_ts) { in ptp_ioctl()
157 err = ops->enable(ops, &req, enable); in ptp_ioctl()
166 if (req.perout.index >= ops->n_per_out) { in ptp_ioctl()
172 err = ops->enable(ops, &req, enable); in ptp_ioctl()
180 err = ops->enable(ops, &req, enable); in ptp_ioctl()
222 if (pin_index >= ops->n_pins) { in ptp_ioctl()
[all …]
/linux-4.1.27/drivers/gpu/drm/sti/
Dsti_layer.c75 layer->ops->init(layer); in sti_layer_create()
137 if (!layer->ops->prepare) in sti_layer_prepare()
140 ret = layer->ops->prepare(layer, !layer->enabled); in sti_layer_prepare()
156 if (!layer->ops->commit) in sti_layer_commit()
159 return layer->ops->commit(layer); in sti_layer_commit()
177 if (!layer->ops->disable) in sti_layer_disable()
180 ret = layer->ops->disable(layer); in sti_layer_disable()
198 if (!layer->ops->get_formats) in sti_layer_get_formats()
201 return layer->ops->get_formats(layer); in sti_layer_get_formats()
209 if (!layer->ops->get_nb_formats) in sti_layer_get_nb_formats()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/ixgbevf/
Dvf.c56 s32 status = hw->mac.ops.start_hw(hw); in ixgbevf_init_hw_vf()
58 hw->mac.ops.get_mac_addr(hw, hw->mac.addr); in ixgbevf_init_hw_vf()
79 hw->mac.ops.stop_adapter(hw); in ixgbevf_reset_hw_vf()
88 while (!mbx->ops.check_for_rst(hw) && timeout) { in ixgbevf_reset_hw_vf()
100 mbx->ops.write_posted(hw, msgbuf, 1); in ixgbevf_reset_hw_vf()
108 ret_val = mbx->ops.read_posted(hw, msgbuf, IXGBE_VF_PERMADDR_MSG_LEN); in ixgbevf_reset_hw_vf()
244 ret_val = mbx->ops.write_posted(hw, msgbuf, 3); in ixgbevf_set_uc_addr_vf()
247 ret_val = mbx->ops.read_posted(hw, msgbuf, 3); in ixgbevf_set_uc_addr_vf()
294 err = hw->mbx.ops.write_posted(hw, msgbuf, 1); in ixgbevf_get_reta_locked()
299 err = hw->mbx.ops.read_posted(hw, msgbuf, dwords + 1); in ixgbevf_get_reta_locked()
[all …]
/linux-4.1.27/net/nfc/
Dcore.c63 if (!dev->ops->fw_download) { in nfc_fw_download()
69 rc = dev->ops->fw_download(dev, firmware_name); in nfc_fw_download()
129 if (dev->ops->dev_up) in nfc_dev_up()
130 rc = dev->ops->dev_up(dev); in nfc_dev_up()
136 if (dev->ops->discover_se && dev->ops->discover_se(dev)) in nfc_dev_up()
172 if (dev->ops->dev_down) in nfc_dev_down()
173 dev->ops->dev_down(dev); in nfc_dev_down()
236 rc = dev->ops->start_poll(dev, im_protocols, tm_protocols); in nfc_start_poll()
270 dev->ops->stop_poll(dev); in nfc_stop_poll()
300 if (!dev->ops->dep_link_up) in nfc_dep_link_up()
[all …]
/linux-4.1.27/drivers/media/pci/ttpci/
Dbudget.c234 if (fe->ops.i2c_gate_ctrl) in alps_bsrv2_tuner_set_params()
235 fe->ops.i2c_gate_ctrl(fe, 1); in alps_bsrv2_tuner_set_params()
262 if (fe->ops.i2c_gate_ctrl) in alps_tdbe2_tuner_set_params()
263 fe->ops.i2c_gate_ctrl(fe, 1); in alps_tdbe2_tuner_set_params()
317 if (fe->ops.i2c_gate_ctrl) in grundig_29504_401_tuner_set_params()
318 fe->ops.i2c_gate_ctrl(fe, 1); in grundig_29504_401_tuner_set_params()
347 if (fe->ops.i2c_gate_ctrl) in grundig_29504_451_tuner_set_params()
348 fe->ops.i2c_gate_ctrl(fe, 1); in grundig_29504_451_tuner_set_params()
379 if (fe->ops.i2c_gate_ctrl) in s5h1420_tuner_set_params()
380 fe->ops.i2c_gate_ctrl(fe, 1); in s5h1420_tuner_set_params()
[all …]
/linux-4.1.27/fs/configfs/
Dfile.c48 struct configfs_item_operations * ops; member
68 struct configfs_item_operations * ops = buffer->ops; in fill_read_buffer() local
77 count = ops->show_attribute(item,attr,buffer->page); in fill_read_buffer()
174 struct configfs_item_operations * ops = buffer->ops; in flush_write_buffer() local
176 return ops->store_attribute(item,attr,buffer->page,count); in flush_write_buffer()
218 struct configfs_item_operations * ops = NULL; in check_perm() local
231 ops = item->ci_type->ct_item_ops; in check_perm()
241 if (!(inode->i_mode & S_IWUGO) || !ops->store_attribute) in check_perm()
251 if (!(inode->i_mode & S_IRUGO) || !ops->show_attribute) in check_perm()
265 buffer->ops = ops; in check_perm()
/linux-4.1.27/drivers/oprofile/
Dtimer_int.c110 int oprofile_timer_init(struct oprofile_operations *ops) in oprofile_timer_init() argument
112 ops->create_files = NULL; in oprofile_timer_init()
113 ops->setup = oprofile_hrtimer_setup; in oprofile_timer_init()
114 ops->shutdown = oprofile_hrtimer_shutdown; in oprofile_timer_init()
115 ops->start = oprofile_hrtimer_start; in oprofile_timer_init()
116 ops->stop = oprofile_hrtimer_stop; in oprofile_timer_init()
117 ops->cpu_type = "timer"; in oprofile_timer_init()
/linux-4.1.27/drivers/net/irda/
Dirtty-sir.c96 if (tty->ops->wait_until_sent) { in irtty_wait_until_sent()
97 tty->ops->wait_until_sent(tty, msecs_to_jiffies(100)); in irtty_wait_until_sent()
130 if (tty->ops->set_termios) in irtty_change_speed()
131 tty->ops->set_termios(tty, &old_termios); in irtty_change_speed()
169 IRDA_ASSERT(priv->tty->ops->tiocmset != NULL, return -1;); in irtty_set_dtr_rts()
170 priv->tty->ops->tiocmset(priv->tty, set, clear); in irtty_set_dtr_rts()
192 if (!tty->ops->write) in irtty_do_write()
198 return tty->ops->write(tty, ptr, writelen); in irtty_do_write()
293 if (tty->ops->set_termios) in irtty_stop_receiver()
294 tty->ops->set_termios(tty, &old_termios); in irtty_stop_receiver()
[all …]
/linux-4.1.27/arch/x86/oprofile/
Dinit.c20 extern int op_nmi_init(struct oprofile_operations *ops);
23 static int op_nmi_init(struct oprofile_operations *ops) { return -ENODEV; } in op_nmi_init() argument
29 int __init oprofile_arch_init(struct oprofile_operations *ops) in oprofile_arch_init() argument
31 ops->backtrace = x86_backtrace; in oprofile_arch_init()
32 return op_nmi_init(ops); in oprofile_arch_init()
/linux-4.1.27/drivers/usb/musb/
Dmusb_core.h299 const struct musb_platform_ops *ops; member
530 if (musb->ops->set_vbus) in musb_platform_set_vbus()
531 musb->ops->set_vbus(musb, is_on); in musb_platform_set_vbus()
536 if (musb->ops->enable) in musb_platform_enable()
537 musb->ops->enable(musb); in musb_platform_enable()
542 if (musb->ops->disable) in musb_platform_disable()
543 musb->ops->disable(musb); in musb_platform_disable()
548 if (!musb->ops->set_mode) in musb_platform_set_mode()
551 return musb->ops->set_mode(musb, mode); in musb_platform_set_mode()
557 if (musb->ops->try_idle) in musb_platform_try_idle()
[all …]
/linux-4.1.27/drivers/pcmcia/
Dpxa2xx_base.c219 struct pcmcia_low_level *ops = dev->platform_data; in pxa2xx_configure_sockets() local
227 if ((ops->first + ops->nr) > 1 || in pxa2xx_configure_sockets()
269 void pxa2xx_drv_pcmcia_ops(struct pcmcia_low_level *ops) in pxa2xx_drv_pcmcia_ops() argument
272 ops->set_timing = pxa2xx_pcmcia_set_timing; in pxa2xx_drv_pcmcia_ops()
274 ops->frequency_change = pxa2xx_pcmcia_frequency_change; in pxa2xx_drv_pcmcia_ops()
282 struct pcmcia_low_level *ops; in pxa2xx_drv_pcmcia_probe() local
287 ops = (struct pcmcia_low_level *)dev->dev.platform_data; in pxa2xx_drv_pcmcia_probe()
288 if (!ops) { in pxa2xx_drv_pcmcia_probe()
293 if (cpu_is_pxa320() && ops->nr > 1) { in pxa2xx_drv_pcmcia_probe()
303 pxa2xx_drv_pcmcia_ops(ops); in pxa2xx_drv_pcmcia_probe()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_iov.c84 hw->iov.ops.reset_resources(hw, vf_info); in fm10k_iov_event()
85 vf_info->mbx.ops.connect(hw, &vf_info->mbx); in fm10k_iov_event()
131 hw->iov.ops.reset_lport(hw, vf_info); in fm10k_iov_mbx()
135 hw->iov.ops.reset_resources(hw, vf_info); in fm10k_iov_mbx()
136 mbx->ops.connect(hw, mbx); in fm10k_iov_mbx()
140 if (!hw->mbx.ops.tx_ready(&hw->mbx, FM10K_VFMBX_MSG_MTU)) in fm10k_iov_mbx()
144 mbx->ops.process(hw, mbx); in fm10k_iov_mbx()
185 hw->iov.ops.reset_resources(hw, vf_info); in fm10k_iov_suspend()
186 hw->iov.ops.reset_lport(hw, vf_info); in fm10k_iov_suspend()
206 hw->iov.ops.assign_resources(hw, num_vfs, num_vfs); in fm10k_iov_resume()
[all …]
/linux-4.1.27/arch/sh/kernel/cpu/sh5/
Dunwind.c216 static void sh64_unwind_inner(const struct stacktrace_ops *ops,
219 static inline void unwind_nested(const struct stacktrace_ops *ops, void *data, in unwind_nested() argument
224 sh64_unwind_inner(ops, data, (struct pt_regs *)fp); in unwind_nested()
227 static void sh64_unwind_inner(const struct stacktrace_ops *ops, in sh64_unwind_inner() argument
244 unwind_nested(ops, data, pc, fp); in sh64_unwind_inner()
250 unwind_nested(ops, data, pc, fp); in sh64_unwind_inner()
258 unwind_nested(ops, data, pc, fp); in sh64_unwind_inner()
264 unwind_nested(ops, data, pc, fp); in sh64_unwind_inner()
273 ops->address(data, pc, 1); in sh64_unwind_inner()
301 const struct stacktrace_ops *ops, in sh64_unwinder_dump() argument
[all …]
/linux-4.1.27/arch/metag/oprofile/
Dcommon.c38 int __init oprofile_arch_init(struct oprofile_operations *ops) in oprofile_arch_init() argument
40 ops->backtrace = metag_backtrace; in oprofile_arch_init()
50 return oprofile_perf_init(ops); in oprofile_arch_init()
59 int __init oprofile_arch_init(struct oprofile_operations *ops) in oprofile_arch_init() argument
61 ops->backtrace = metag_backtrace; in oprofile_arch_init()
/linux-4.1.27/drivers/ata/
Dlibata-sff.c105 if (ap->ops->sff_check_altstatus) in ata_sff_altstatus()
106 return ap->ops->sff_check_altstatus(ap); in ata_sff_altstatus()
127 if (ap->ops->sff_check_altstatus || ap->ioaddr.altstatus_addr) { in ata_sff_irq_status()
134 status = ap->ops->sff_check_status(ap); in ata_sff_irq_status()
152 if (ap->ops->sff_check_altstatus) in ata_sff_sync()
153 ap->ops->sff_check_altstatus(ap); in ata_sff_sync()
187 if (ap->ops->sff_check_altstatus || ap->ioaddr.altstatus_addr) { in ata_sff_dma_pause()
239 status = ap->ops->sff_check_status(ap); in ata_sff_busy_sleep()
258 u8 status = link->ap->ops->sff_check_status(link->ap); in ata_sff_check_ready()
298 if (ap->ops->sff_set_devctl) in ata_sff_set_devctl()
[all …]

12345678910>>...18