/kernel/linux/linux-5.10/tools/perf/arch/x86/annotate/ |
D | instructions.c | 3 { .name = "adc", .ops = &mov_ops, }, 4 { .name = "adcb", .ops = &mov_ops, }, 5 { .name = "adcl", .ops = &mov_ops, }, 6 { .name = "add", .ops = &mov_ops, }, 7 { .name = "addl", .ops = &mov_ops, }, 8 { .name = "addq", .ops = &mov_ops, }, 9 { .name = "addsd", .ops = &mov_ops, }, 10 { .name = "addw", .ops = &mov_ops, }, 11 { .name = "and", .ops = &mov_ops, }, 12 { .name = "andb", .ops = &mov_ops, }, [all …]
|
/kernel/linux/linux-4.19/tools/perf/arch/x86/annotate/ |
D | instructions.c | 3 { .name = "adc", .ops = &mov_ops, }, 4 { .name = "adcb", .ops = &mov_ops, }, 5 { .name = "adcl", .ops = &mov_ops, }, 6 { .name = "add", .ops = &mov_ops, }, 7 { .name = "addl", .ops = &mov_ops, }, 8 { .name = "addq", .ops = &mov_ops, }, 9 { .name = "addsd", .ops = &mov_ops, }, 10 { .name = "addw", .ops = &mov_ops, }, 11 { .name = "and", .ops = &mov_ops, }, 12 { .name = "andb", .ops = &mov_ops, }, [all …]
|
/kernel/linux/linux-4.19/include/linux/ |
D | ntb.h | 176 static inline int ntb_client_ops_is_valid(const struct ntb_client_ops *ops) in ntb_client_ops_is_valid() argument 180 ops->probe && in ntb_client_ops_is_valid() 181 ops->remove && in ntb_client_ops_is_valid() 197 static inline int ntb_ctx_ops_is_valid(const struct ntb_ctx_ops *ops) in ntb_ctx_ops_is_valid() argument 331 static inline int ntb_dev_ops_is_valid(const struct ntb_dev_ops *ops) in ntb_dev_ops_is_valid() argument 336 !ops->peer_port_count == !ops->port_number && in ntb_dev_ops_is_valid() 337 !ops->peer_port_number == !ops->port_number && in ntb_dev_ops_is_valid() 338 !ops->peer_port_idx == !ops->port_number && in ntb_dev_ops_is_valid() 341 ops->link_is_up && in ntb_dev_ops_is_valid() 342 ops->link_enable && in ntb_dev_ops_is_valid() [all …]
|
/kernel/liteos_a/kernel/extended/blackbox/ |
D | los_blackbox_core.c | 58 struct ModuleOps ops; member 117 static bool FindModuleOps(struct ErrorInfo *info, BBoxOps **ops) in FindModuleOps() argument 121 if (info == NULL || ops == NULL) { in FindModuleOps() 122 BBOX_PRINT_ERR("info: %p, ops: %p!\n", info, ops); in FindModuleOps() 126 LOS_DL_LIST_FOR_EACH_ENTRY(*ops, &g_opsList, BBoxOps, opsList) { in FindModuleOps() 127 if (*ops != NULL && strcmp((*ops)->ops.module, info->module) == 0) { in FindModuleOps() 139 static void InvokeModuleOps(struct ErrorInfo *info, const BBoxOps *ops) in InvokeModuleOps() argument 141 if (info == NULL || ops == NULL) { in InvokeModuleOps() 142 BBOX_PRINT_ERR("info: %p, ops: %p!\n", info, ops); in InvokeModuleOps() 146 if (ops->ops.Dump != NULL) { in InvokeModuleOps() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wlcore/ |
D | hw_ops.h | 17 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 …]
|
/kernel/linux/linux-4.19/drivers/net/wireless/ti/wlcore/ |
D | hw_ops.h | 31 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 …]
|
/kernel/linux/linux-4.19/drivers/mfd/ |
D | abx500-core.c | 19 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 …]
|
/kernel/linux/linux-5.10/drivers/mfd/ |
D | abx500-core.c | 19 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 …]
|
/kernel/linux/linux-4.19/drivers/mtd/tests/ |
D | oobtest.c | 71 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 …]
|
/kernel/linux/linux-5.10/drivers/mtd/tests/ |
D | oobtest.c | 59 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 …]
|
/kernel/linux/linux-4.19/arch/s390/appldata/ |
D | appldata_base.c | 128 struct appldata_ops *ops; in appldata_work_fn() local 132 ops = list_entry(lh, struct appldata_ops, list); in appldata_work_fn() 133 if (ops->active == 1) { in appldata_work_fn() 134 ops->callback(ops->data); in appldata_work_fn() 275 struct appldata_ops *ops = NULL, *tmp_ops; in appldata_generic_handler() local 300 ops = ctl->data; in appldata_generic_handler() 301 if (!try_module_get(ops->owner)) { // protect this function in appldata_generic_handler() 307 active = ops->active; in appldata_generic_handler() 310 module_put(ops->owner); in appldata_generic_handler() 315 if (active && (ops->active == 0)) { in appldata_generic_handler() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | ntb.h | 178 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 …]
|
/kernel/linux/linux-5.10/arch/s390/appldata/ |
D | appldata_base.c | 127 struct appldata_ops *ops; in appldata_work_fn() local 131 ops = list_entry(lh, struct appldata_ops, list); in appldata_work_fn() 132 if (ops->active == 1) { in appldata_work_fn() 133 ops->callback(ops->data); in appldata_work_fn() 284 struct appldata_ops *ops = NULL, *tmp_ops; in appldata_generic_handler() local 307 ops = ctl->data; in appldata_generic_handler() 308 if (!try_module_get(ops->owner)) { // protect this function in appldata_generic_handler() 314 active = ops->active; in appldata_generic_handler() 317 module_put(ops->owner); in appldata_generic_handler() 322 if (active && (ops->active == 0)) { in appldata_generic_handler() [all …]
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | nf_sockopt.c | 27 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 …]
|
/kernel/linux/linux-4.19/net/netfilter/ |
D | nf_sockopt.c | 27 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 …]
|
/kernel/linux/linux-5.10/kernel/dma/ |
D | mapping.c | 110 const struct dma_map_ops *ops) in dma_go_direct() argument 112 if (likely(!ops)) in dma_go_direct() 129 const struct dma_map_ops *ops) in dma_alloc_direct() argument 131 return dma_go_direct(dev, dev->coherent_dma_mask, ops); in dma_alloc_direct() 135 const struct dma_map_ops *ops) in dma_map_direct() argument 137 return dma_go_direct(dev, *dev->dma_mask, ops); in dma_map_direct() 144 const struct dma_map_ops *ops = get_dma_ops(dev); in dma_map_page_attrs() local 152 if (dma_map_direct(dev, ops)) in dma_map_page_attrs() 155 addr = ops->map_page(dev, page, offset, size, dir, attrs); in dma_map_page_attrs() 165 const struct dma_map_ops *ops = get_dma_ops(dev); in dma_unmap_page_attrs() local [all …]
|
/kernel/linux/linux-4.19/drivers/base/ |
D | syscore.c | 21 void register_syscore_ops(struct syscore_ops *ops) in register_syscore_ops() argument 24 list_add_tail(&ops->node, &syscore_ops_list); in register_syscore_ops() 33 void unregister_syscore_ops(struct syscore_ops *ops) in unregister_syscore_ops() argument 36 list_del(&ops->node); in unregister_syscore_ops() 49 struct syscore_ops *ops; in syscore_suspend() local 62 list_for_each_entry_reverse(ops, &syscore_ops_list, node) in syscore_suspend() 63 if (ops->suspend) { in syscore_suspend() 65 pr_info("PM: Calling %pF\n", ops->suspend); in syscore_suspend() 66 ret = ops->suspend(); in syscore_suspend() 70 "Interrupts enabled after %pF\n", ops->suspend); in syscore_suspend() [all …]
|
/kernel/linux/linux-5.10/drivers/base/ |
D | syscore.c | 21 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 …]
|
/kernel/linux/linux-4.19/net/dsa/ |
D | master.c | 20 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_ethtool_stats() local 25 if (ops->get_sset_count && ops->get_ethtool_stats) { in dsa_master_get_ethtool_stats() 26 count = ops->get_sset_count(dev, ETH_SS_STATS); in dsa_master_get_ethtool_stats() 27 ops->get_ethtool_stats(dev, stats, data); in dsa_master_get_ethtool_stats() 30 if (ds->ops->get_ethtool_stats) in dsa_master_get_ethtool_stats() 31 ds->ops->get_ethtool_stats(ds, port, data + count); in dsa_master_get_ethtool_stats() 39 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_ethtool_phy_stats() local 44 if (dev->phydev && !ops->get_ethtool_phy_stats) { in dsa_master_get_ethtool_phy_stats() 48 } else if (ops->get_sset_count && ops->get_ethtool_phy_stats) { in dsa_master_get_ethtool_phy_stats() 49 count = ops->get_sset_count(dev, ETH_SS_PHY_STATS); in dsa_master_get_ethtool_phy_stats() [all …]
|
/kernel/linux/linux-5.10/net/dsa/ |
D | master.c | 14 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_regs_len() local 20 if (ops->get_regs_len) { in dsa_master_get_regs_len() 21 len = ops->get_regs_len(dev); in dsa_master_get_regs_len() 30 if (ds->ops->get_regs_len) { in dsa_master_get_regs_len() 31 len = ds->ops->get_regs_len(ds, port); in dsa_master_get_regs_len() 44 const struct ethtool_ops *ops = cpu_dp->orig_ethtool_ops; in dsa_master_get_regs() local 51 if (ops->get_regs_len && ops->get_regs) { in dsa_master_get_regs() 52 len = ops->get_regs_len(dev); in dsa_master_get_regs() 56 ops->get_regs(dev, regs, data); in dsa_master_get_regs() 66 if (ds->ops->get_regs_len && ds->ops->get_regs) { in dsa_master_get_regs() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/blackbox/ |
D | blackbox_core.c | 50 struct module_ops ops; member 259 static bool find_module_ops(struct error_info *info, struct bbox_ops **ops) in find_module_ops() argument 265 if (unlikely(!info || !ops)) { in find_module_ops() 266 bbox_print_err("info: %p, ops: %p!\n", info, ops); in find_module_ops() 271 *ops = list_entry(cur, struct bbox_ops, list); in find_module_ops() 272 if (*ops && !strcmp((*ops)->ops.module, info->module)) { in find_module_ops() 284 struct bbox_ops *ops) in invoke_module_ops() argument 286 if (unlikely(!info || !!ops)) { in invoke_module_ops() 287 bbox_print_err("info: %p, ops: %p!\n", info, ops); in invoke_module_ops() 291 if (ops->ops.dump && log_dir) { in invoke_module_ops() [all …]
|
/kernel/linux/linux-5.10/drivers/media/v4l2-core/ |
D | v4l2-dev.c | 517 #define SET_VALID_IOCTL(ops, cmd, op) \ argument 518 if (ops->op) \ 544 const struct v4l2_ioctl_ops *ops = vdev->ioctl_ops; in determine_valid_ioctls() local 561 SET_VALID_IOCTL(ops, VIDIOC_QUERYCAP, vidioc_querycap); in determine_valid_ioctls() 569 if (vdev->ctrl_handler || ops->vidioc_queryctrl) in determine_valid_ioctls() 571 if (vdev->ctrl_handler || ops->vidioc_query_ext_ctrl) in determine_valid_ioctls() 573 if (vdev->ctrl_handler || ops->vidioc_g_ctrl || ops->vidioc_g_ext_ctrls) in determine_valid_ioctls() 575 if (vdev->ctrl_handler || ops->vidioc_s_ctrl || ops->vidioc_s_ext_ctrls) in determine_valid_ioctls() 577 if (vdev->ctrl_handler || ops->vidioc_g_ext_ctrls) in determine_valid_ioctls() 579 if (vdev->ctrl_handler || ops->vidioc_s_ext_ctrls) in determine_valid_ioctls() [all …]
|
/kernel/linux/linux-4.19/drivers/media/v4l2-core/ |
D | v4l2-dev.c | 507 #define SET_VALID_IOCTL(ops, cmd, op) \ argument 508 if (ops->op) \ 527 const struct v4l2_ioctl_ops *ops = vdev->ioctl_ops; in determine_valid_ioctls() local 540 SET_VALID_IOCTL(ops, VIDIOC_QUERYCAP, vidioc_querycap); in determine_valid_ioctls() 548 if (vdev->ctrl_handler || ops->vidioc_queryctrl) in determine_valid_ioctls() 550 if (vdev->ctrl_handler || ops->vidioc_query_ext_ctrl) in determine_valid_ioctls() 552 if (vdev->ctrl_handler || ops->vidioc_g_ctrl || ops->vidioc_g_ext_ctrls) in determine_valid_ioctls() 554 if (vdev->ctrl_handler || ops->vidioc_s_ctrl || ops->vidioc_s_ext_ctrls) in determine_valid_ioctls() 556 if (vdev->ctrl_handler || ops->vidioc_g_ext_ctrls) in determine_valid_ioctls() 558 if (vdev->ctrl_handler || ops->vidioc_s_ext_ctrls) in determine_valid_ioctls() [all …]
|
/kernel/linux/linux-4.19/net/core/ |
D | lwtunnel.c | 75 int lwtunnel_encap_add_ops(const struct lwtunnel_encap_ops *ops, in lwtunnel_encap_add_ops() argument 83 NULL, ops) ? 0 : -1; in lwtunnel_encap_add_ops() 87 int lwtunnel_encap_del_ops(const struct lwtunnel_encap_ops *ops, in lwtunnel_encap_del_ops() argument 98 ops, NULL) == ops) ? 0 : -1; in lwtunnel_encap_del_ops() 111 const struct lwtunnel_encap_ops *ops; in lwtunnel_build_state() local 124 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state() 125 if (likely(ops && ops->build_state && try_module_get(ops->owner))) { in lwtunnel_build_state() 127 ret = ops->build_state(encap, family, cfg, lws, extack); in lwtunnel_build_state() 129 module_put(ops->owner); in lwtunnel_build_state() 147 const struct lwtunnel_encap_ops *ops; in lwtunnel_valid_encap_type() local [all …]
|
/kernel/linux/linux-5.10/net/core/ |
D | lwtunnel.c | 72 int lwtunnel_encap_add_ops(const struct lwtunnel_encap_ops *ops, in lwtunnel_encap_add_ops() argument 80 NULL, ops) ? 0 : -1; in lwtunnel_encap_add_ops() 84 int lwtunnel_encap_del_ops(const struct lwtunnel_encap_ops *ops, in lwtunnel_encap_del_ops() argument 95 ops, NULL) == ops) ? 0 : -1; in lwtunnel_encap_del_ops() 108 const struct lwtunnel_encap_ops *ops; in lwtunnel_build_state() local 121 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state() 122 if (likely(ops && ops->build_state && try_module_get(ops->owner))) in lwtunnel_build_state() 127 ret = ops->build_state(net, encap, family, cfg, lws, extack); in lwtunnel_build_state() 129 module_put(ops->owner); in lwtunnel_build_state() 144 const struct lwtunnel_encap_ops *ops; in lwtunnel_valid_encap_type() local [all …]
|