Home
last modified time | relevance | path

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

12345678910>>...164

/linux-6.6.21/tools/perf/arch/x86/annotate/
Dinstructions.c11 { .name = "adc", .ops = &mov_ops, },
12 { .name = "add", .ops = &mov_ops, },
13 { .name = "addsd", .ops = &mov_ops, },
14 { .name = "and", .ops = &mov_ops, },
15 { .name = "andpd", .ops = &mov_ops, },
16 { .name = "andps", .ops = &mov_ops, },
17 { .name = "bsr", .ops = &mov_ops, },
18 { .name = "bt", .ops = &mov_ops, },
19 { .name = "btr", .ops = &mov_ops, },
20 { .name = "bts", .ops = &mov_ops, },
[all …]
/linux-6.6.21/drivers/media/platform/amphion/
Dvpu_rpc.h120 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_check_codec() local
122 if (ops && ops->check_codec) in vpu_iface_check_codec()
123 return ops->check_codec(core->type); in vpu_iface_check_codec()
130 struct vpu_iface_ops *ops = vpu_inst_get_iface(inst); in vpu_iface_check_format() local
132 if (ops && ops->check_fmt) in vpu_iface_check_format()
133 return ops->check_fmt(inst->type, pixelfmt); in vpu_iface_check_format()
140 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_boot_core() local
142 if (ops && ops->boot_core) in vpu_iface_boot_core()
143 return ops->boot_core(core); in vpu_iface_boot_core()
149 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_get_power_state() local
[all …]
/linux-6.6.21/drivers/net/wireless/ti/wlcore/
Dhw_ops.h17 if (!wl->ops->calc_tx_blocks) in wlcore_hw_calc_tx_blocks()
20 return wl->ops->calc_tx_blocks(wl, len, spare_blks); in wlcore_hw_calc_tx_blocks()
27 if (!wl->ops->set_tx_desc_blocks) in wlcore_hw_set_tx_desc_blocks()
30 return wl->ops->set_tx_desc_blocks(wl, desc, blks, spare_blks); in wlcore_hw_set_tx_desc_blocks()
38 if (!wl->ops->set_tx_desc_data_len) in wlcore_hw_set_tx_desc_data_len()
41 wl->ops->set_tx_desc_data_len(wl, desc, skb); in wlcore_hw_set_tx_desc_data_len()
48 if (!wl->ops->get_rx_buf_align) in wlcore_hw_get_rx_buf_align()
51 return wl->ops->get_rx_buf_align(wl, rx_desc); in wlcore_hw_get_rx_buf_align()
57 if (wl->ops->prepare_read) in wlcore_hw_prepare_read()
58 return wl->ops->prepare_read(wl, rx_desc, len); in wlcore_hw_prepare_read()
[all …]
/linux-6.6.21/drivers/mfd/
Dabx500-core.c19 struct abx500_ops ops; member
23 static void lookup_ops(struct device *dev, struct abx500_ops **ops) in lookup_ops() argument
27 *ops = NULL; in lookup_ops()
30 *ops = &dev_entry->ops; in lookup_ops()
36 int abx500_register_ops(struct device *dev, struct abx500_ops *ops) in abx500_register_ops() argument
45 memcpy(&dev_entry->ops, ops, sizeof(*ops)); in abx500_register_ops()
65 struct abx500_ops *ops; in abx500_set_register_interruptible() local
67 lookup_ops(dev->parent, &ops); in abx500_set_register_interruptible()
68 if (ops && ops->set_register) in abx500_set_register_interruptible()
69 return ops->set_register(dev, bank, reg, value); in abx500_set_register_interruptible()
[all …]
/linux-6.6.21/drivers/mtd/tests/
Doobtest.c59 struct mtd_oob_ops ops = { }; in write_eraseblock() local
65 ops.mode = MTD_OPS_AUTO_OOB; in write_eraseblock()
66 ops.len = 0; in write_eraseblock()
67 ops.retlen = 0; in write_eraseblock()
68 ops.ooblen = use_len; in write_eraseblock()
69 ops.oobretlen = 0; in write_eraseblock()
70 ops.ooboffs = use_offset; in write_eraseblock()
71 ops.datbuf = NULL; in write_eraseblock()
72 ops.oobbuf = writebuf + (use_len_max * i) + use_offset; in write_eraseblock()
73 err = mtd_write_oob(mtd, addr, &ops); in write_eraseblock()
[all …]
/linux-6.6.21/include/linux/
Dntb.h178 static inline int ntb_client_ops_is_valid(const struct ntb_client_ops *ops) in ntb_client_ops_is_valid() argument
182 ops->probe && in ntb_client_ops_is_valid()
183 ops->remove && in ntb_client_ops_is_valid()
199 static inline int ntb_ctx_ops_is_valid(const struct ntb_ctx_ops *ops) in ntb_ctx_ops_is_valid() argument
334 static inline int ntb_dev_ops_is_valid(const struct ntb_dev_ops *ops) in ntb_dev_ops_is_valid() argument
339 !ops->peer_port_count == !ops->port_number && in ntb_dev_ops_is_valid()
340 !ops->peer_port_number == !ops->port_number && in ntb_dev_ops_is_valid()
341 !ops->peer_port_idx == !ops->port_number && in ntb_dev_ops_is_valid()
344 ops->link_is_up && in ntb_dev_ops_is_valid()
345 ops->link_enable && in ntb_dev_ops_is_valid()
[all …]
/linux-6.6.21/net/netfilter/
Dnf_sockopt.c27 struct nf_sockopt_ops *ops; in nf_register_sockopt() local
31 list_for_each_entry(ops, &nf_sockopts, list) { in nf_register_sockopt()
32 if (ops->pf == reg->pf in nf_register_sockopt()
33 && (overlap(ops->set_optmin, ops->set_optmax, in nf_register_sockopt()
35 || overlap(ops->get_optmin, ops->get_optmax, in nf_register_sockopt()
38 ops->set_optmin, ops->set_optmax, in nf_register_sockopt()
39 ops->get_optmin, ops->get_optmax, in nf_register_sockopt()
65 struct nf_sockopt_ops *ops; in nf_sockopt_find() local
68 list_for_each_entry(ops, &nf_sockopts, list) { in nf_sockopt_find()
69 if (ops->pf == pf) { in nf_sockopt_find()
[all …]
/linux-6.6.21/tools/testing/cxl/test/
Dmock.c16 void register_cxl_mock_ops(struct cxl_mock_ops *ops) in register_cxl_mock_ops() argument
18 list_add_rcu(&ops->list, &mock); in register_cxl_mock_ops()
24 void unregister_cxl_mock_ops(struct cxl_mock_ops *ops) in unregister_cxl_mock_ops() argument
26 list_del_rcu(&ops->list); in unregister_cxl_mock_ops()
49 struct cxl_mock_ops *ops = get_cxl_mock_ops(&index); in __wrap_is_acpi_device_node() local
52 if (ops) in __wrap_is_acpi_device_node()
53 retval = ops->is_mock_adev(adev); in __wrap_is_acpi_device_node()
68 struct cxl_mock_ops *ops = get_cxl_mock_ops(&index); in __wrap_acpi_table_parse_cedt() local
70 if (ops) in __wrap_acpi_table_parse_cedt()
71 rc = ops->acpi_table_parse_cedt(id, handler_arg, arg); in __wrap_acpi_table_parse_cedt()
[all …]
/linux-6.6.21/drivers/base/
Dsyscore.c21 void register_syscore_ops(struct syscore_ops *ops) in register_syscore_ops() argument
24 list_add_tail(&ops->node, &syscore_ops_list); in register_syscore_ops()
33 void unregister_syscore_ops(struct syscore_ops *ops) in unregister_syscore_ops() argument
36 list_del(&ops->node); in unregister_syscore_ops()
49 struct syscore_ops *ops; in syscore_suspend() local
62 list_for_each_entry_reverse(ops, &syscore_ops_list, node) in syscore_suspend()
63 if (ops->suspend) { in syscore_suspend()
64 pm_pr_dbg("Calling %pS\n", ops->suspend); in syscore_suspend()
65 ret = ops->suspend(); in syscore_suspend()
69 "Interrupts enabled after %pS\n", ops->suspend); in syscore_suspend()
[all …]
/linux-6.6.21/kernel/dma/
Dmapping.c117 const struct dma_map_ops *ops) in dma_go_direct() argument
119 if (likely(!ops)) in dma_go_direct()
136 const struct dma_map_ops *ops) in dma_alloc_direct() argument
138 return dma_go_direct(dev, dev->coherent_dma_mask, ops); in dma_alloc_direct()
142 const struct dma_map_ops *ops) in dma_map_direct() argument
144 return dma_go_direct(dev, *dev->dma_mask, ops); in dma_map_direct()
151 const struct dma_map_ops *ops = get_dma_ops(dev); in dma_map_page_attrs() local
159 if (dma_map_direct(dev, ops) || in dma_map_page_attrs()
163 addr = ops->map_page(dev, page, offset, size, dir, attrs); in dma_map_page_attrs()
174 const struct dma_map_ops *ops = get_dma_ops(dev); in dma_unmap_page_attrs() local
[all …]
/linux-6.6.21/arch/s390/appldata/
Dappldata_base.c112 struct appldata_ops *ops; in appldata_work_fn() local
116 ops = list_entry(lh, struct appldata_ops, list); in appldata_work_fn()
117 if (ops->active == 1) { in appldata_work_fn()
118 ops->callback(ops->data); in appldata_work_fn()
269 struct appldata_ops *ops = NULL, *tmp_ops; in appldata_generic_handler() local
292 ops = ctl->data; in appldata_generic_handler()
293 if (!try_module_get(ops->owner)) { // protect this function in appldata_generic_handler()
299 active = ops->active; in appldata_generic_handler()
302 module_put(ops->owner); in appldata_generic_handler()
307 if (active && (ops->active == 0)) { in appldata_generic_handler()
[all …]
/linux-6.6.21/mm/
Dpagewalk.c26 const struct mm_walk_ops *ops = walk->ops; in walk_pte_range_inner() local
30 err = ops->pte_entry(pte, addr, addr + PAGE_SIZE, walk); in walk_pte_range_inner()
81 const struct mm_walk_ops *ops = walk->ops; in walk_hugepd_range() local
85 if (!ops->pte_entry) in walk_hugepd_range()
96 err = ops->pte_entry(pte, addr, addr + page_size, walk); in walk_hugepd_range()
120 const struct mm_walk_ops *ops = walk->ops; in walk_pmd_range() local
129 if (ops->pte_hole) in walk_pmd_range()
130 err = ops->pte_hole(addr, next, depth, walk); in walk_pmd_range()
142 if (ops->pmd_entry) in walk_pmd_range()
143 err = ops->pmd_entry(pmd, addr, next, walk); in walk_pmd_range()
[all …]
/linux-6.6.21/net/core/
Dlwtunnel.c80 int lwtunnel_encap_add_ops(const struct lwtunnel_encap_ops *ops, in lwtunnel_encap_add_ops() argument
88 NULL, ops) ? 0 : -1; in lwtunnel_encap_add_ops()
92 int lwtunnel_encap_del_ops(const struct lwtunnel_encap_ops *ops, in lwtunnel_encap_del_ops() argument
103 ops, NULL) == ops) ? 0 : -1; in lwtunnel_encap_del_ops()
116 const struct lwtunnel_encap_ops *ops; in lwtunnel_build_state() local
129 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state()
130 if (likely(ops && ops->build_state && try_module_get(ops->owner))) in lwtunnel_build_state()
135 ret = ops->build_state(net, encap, family, cfg, lws, extack); in lwtunnel_build_state()
137 module_put(ops->owner); in lwtunnel_build_state()
152 const struct lwtunnel_encap_ops *ops; in lwtunnel_valid_encap_type() local
[all …]
Dfib_rules.c55 int fib_default_rule_add(struct fib_rules_ops *ops, in fib_default_rule_add() argument
60 r = kzalloc(ops->rule_size, GFP_KERNEL_ACCOUNT); in fib_default_rule_add()
70 r->fr_net = ops->fro_net; in fib_default_rule_add()
78 list_add_tail(&r->list, &ops->rules_list); in fib_default_rule_add()
83 static u32 fib_default_rule_pref(struct fib_rules_ops *ops) in fib_default_rule_pref() argument
88 if (!list_empty(&ops->rules_list)) { in fib_default_rule_pref()
89 pos = ops->rules_list.next; in fib_default_rule_pref()
90 if (pos->next != &ops->rules_list) { in fib_default_rule_pref()
101 struct fib_rules_ops *ops, struct nlmsghdr *nlh,
106 struct fib_rules_ops *ops; in lookup_rules_ops() local
[all …]
/linux-6.6.21/net/netlabel/
Dnetlabel_calipso.c68 netlbl_calipso_ops_register(const struct netlbl_calipso_ops *ops) in netlbl_calipso_ops_register() argument
70 return xchg(&calipso_ops, ops); in netlbl_calipso_ops_register()
124 const struct netlbl_calipso_ops *ops = netlbl_calipso_ops_get(); in netlbl_calipso_add() local
130 if (!ops) in netlbl_calipso_add()
408 const struct netlbl_calipso_ops *ops = netlbl_calipso_ops_get(); in calipso_doi_add() local
410 if (ops) in calipso_doi_add()
411 ret_val = ops->doi_add(doi_def, audit_info); in calipso_doi_add()
425 const struct netlbl_calipso_ops *ops = netlbl_calipso_ops_get(); in calipso_doi_free() local
427 if (ops) in calipso_doi_free()
428 ops->doi_free(doi_def); in calipso_doi_free()
[all …]
/linux-6.6.21/tools/perf/arch/loongarch/annotate/
Dinstructions.c8 static int loongarch_call__parse(struct arch *arch, struct ins_operands *ops, struct map_symbol *ms) in loongarch_call__parse() argument
16 c = strchr(ops->raw, '#'); in loongarch_call__parse()
20 ops->target.addr = strtoull(c, &endptr, 16); in loongarch_call__parse()
34 ops->target.name = strdup(name); in loongarch_call__parse()
37 if (ops->target.name == NULL) in loongarch_call__parse()
40 target.addr = map__objdump_2mem(map, ops->target.addr); in loongarch_call__parse()
43 map__rip_2objdump(target.ms.map, map__map_ip(target.ms.map, target.addr)) == ops->target.addr) in loongarch_call__parse()
44 ops->target.sym = target.ms.sym; in loongarch_call__parse()
54 static int loongarch_jump__parse(struct arch *arch, struct ins_operands *ops, struct map_symbol *ms) in loongarch_jump__parse() argument
61 const char *c = strchr(ops->raw, '#'); in loongarch_jump__parse()
[all …]
/linux-6.6.21/drivers/media/v4l2-core/
Dv4l2-dev.c521 #define SET_VALID_IOCTL(ops, cmd, op) \ argument
522 do { if ((ops)->op) __set_bit(_IOC_NR(cmd), valid_ioctls); } while (0)
547 const struct v4l2_ioctl_ops *ops = vdev->ioctl_ops; in determine_valid_ioctls() local
565 SET_VALID_IOCTL(ops, VIDIOC_QUERYCAP, vidioc_querycap); in determine_valid_ioctls()
573 if (vdev->ctrl_handler || ops->vidioc_queryctrl) in determine_valid_ioctls()
575 if (vdev->ctrl_handler || ops->vidioc_query_ext_ctrl) in determine_valid_ioctls()
577 if (vdev->ctrl_handler || ops->vidioc_g_ctrl || ops->vidioc_g_ext_ctrls) in determine_valid_ioctls()
579 if (vdev->ctrl_handler || ops->vidioc_s_ctrl || ops->vidioc_s_ext_ctrls) in determine_valid_ioctls()
581 if (vdev->ctrl_handler || ops->vidioc_g_ext_ctrls) in determine_valid_ioctls()
583 if (vdev->ctrl_handler || ops->vidioc_s_ext_ctrls) in determine_valid_ioctls()
[all …]
/linux-6.6.21/drivers/video/fbdev/core/
Dfbcon_ud.c51 struct fbcon_ops *ops = info->fbcon_par; in ud_bmove() local
53 u32 vyres = GETVYRES(ops->p, info); in ud_bmove()
54 u32 vxres = GETVXRES(ops->p, info); in ud_bmove()
69 struct fbcon_ops *ops = info->fbcon_par; in ud_clear() local
72 u32 vyres = GETVYRES(ops->p, info); in ud_clear()
73 u32 vxres = GETVXRES(ops->p, 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 …]
Dfbcon_cw.c51 struct fbcon_ops *ops = info->fbcon_par; in cw_bmove() local
53 u32 vxres = GETVXRES(ops->p, info); in cw_bmove()
68 struct fbcon_ops *ops = info->fbcon_par; in cw_clear() local
71 u32 vxres = GETVXRES(ops->p, 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, 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, info); in ccw_bmove()
83 struct fbcon_ops *ops = info->fbcon_par; in ccw_clear() local
86 u32 vyres = GETVYRES(ops->p, 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, info); in ccw_putcs()
145 if (!ops->fontbuffer) in ccw_putcs()
225 struct fbcon_ops *ops = info->fbcon_par; in ccw_cursor() local
[all …]
/linux-6.6.21/sound/soc/
Dsoc-dai.c57 if (dai->driver->ops && in snd_soc_dai_set_sysclk()
58 dai->driver->ops->set_sysclk) in snd_soc_dai_set_sysclk()
59 ret = dai->driver->ops->set_sysclk(dai, clk_id, freq, dir); in snd_soc_dai_set_sysclk()
83 if (dai->driver->ops && in snd_soc_dai_set_clkdiv()
84 dai->driver->ops->set_clkdiv) in snd_soc_dai_set_clkdiv()
85 ret = dai->driver->ops->set_clkdiv(dai, div_id, div); in snd_soc_dai_set_clkdiv()
106 if (dai->driver->ops && in snd_soc_dai_set_pll()
107 dai->driver->ops->set_pll) in snd_soc_dai_set_pll()
108 ret = dai->driver->ops->set_pll(dai, pll_id, source, in snd_soc_dai_set_pll()
129 if (dai->driver->ops && in snd_soc_dai_set_bclk_ratio()
[all …]
/linux-6.6.21/net/dsa/
Dmaster.c22 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_regs_len() local
28 if (ops->get_regs_len) { in dsa_master_get_regs_len()
29 len = ops->get_regs_len(dev); in dsa_master_get_regs_len()
38 if (ds->ops->get_regs_len) { in dsa_master_get_regs_len()
39 len = ds->ops->get_regs_len(ds, port); in dsa_master_get_regs_len()
52 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_regs() local
59 if (ops->get_regs_len && ops->get_regs) { in dsa_master_get_regs()
60 len = ops->get_regs_len(dev); in dsa_master_get_regs()
64 ops->get_regs(dev, regs, data); in dsa_master_get_regs()
74 if (ds->ops->get_regs_len && ds->ops->get_regs) { in dsa_master_get_regs()
[all …]
/linux-6.6.21/kernel/livepatch/
Dpatch.c27 struct klp_ops *ops; in klp_find_ops() local
30 list_for_each_entry(ops, &klp_ops, node) { in klp_find_ops()
31 func = list_first_entry(&ops->func_stack, struct klp_func, in klp_find_ops()
34 return ops; in klp_find_ops()
45 struct klp_ops *ops; in klp_ftrace_handler() local
50 ops = container_of(fops, struct klp_ops, fops); in klp_ftrace_handler()
62 func = list_first_or_null_rcu(&ops->func_stack, struct klp_func, in klp_ftrace_handler()
109 if (&func->stack_node == &ops->func_stack) in klp_ftrace_handler()
129 struct klp_ops *ops; in klp_unpatch_func() local
136 ops = klp_find_ops(func->old_func); in klp_unpatch_func()
[all …]
/linux-6.6.21/drivers/misc/c2port/
Dcore.c63 struct c2port_ops *ops = dev->ops; in c2port_reset() local
69 ops->c2ck_set(dev, 0); in c2port_reset()
71 ops->c2ck_set(dev, 1); in c2port_reset()
79 struct c2port_ops *ops = dev->ops; in c2port_strobe_ck() local
87 ops->c2ck_set(dev, 0); in c2port_strobe_ck()
89 ops->c2ck_set(dev, 1); in c2port_strobe_ck()
101 struct c2port_ops *ops = dev->ops; in c2port_write_ar() local
108 ops->c2d_dir(dev, 0); in c2port_write_ar()
109 ops->c2d_set(dev, 1); in c2port_write_ar()
111 ops->c2d_set(dev, 1); in c2port_write_ar()
[all …]
/linux-6.6.21/tools/perf/arch/s390/annotate/
Dinstructions.c4 static int s390_call__parse(struct arch *arch, struct ins_operands *ops, in s390_call__parse() argument
13 tok = strchr(ops->raw, ','); in s390_call__parse()
17 ops->target.addr = strtoull(tok + 1, &endptr, 16); in s390_call__parse()
34 ops->target.name = strdup(name); in s390_call__parse()
37 if (ops->target.name == NULL) in s390_call__parse()
39 target.addr = map__objdump_2mem(map, ops->target.addr); in s390_call__parse()
42 map__rip_2objdump(target.ms.map, map__map_ip(target.ms.map, target.addr)) == ops->target.addr) in s390_call__parse()
43 ops->target.sym = target.ms.sym; in s390_call__parse()
54 struct ins_operands *ops, in s390_mov__parse() argument
57 char *s = strchr(ops->raw, ','), *target, *endptr; in s390_mov__parse()
[all …]

12345678910>>...164