| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/hfi1/ |
| H A D | mmu_rb.c | 63 static void do_remove(struct mmu_rb_handler *handler, 87 struct mmu_rb_handler **handler) in hfi1_mmu_rb_register() argument 113 *handler = h; in hfi1_mmu_rb_register() 117 void hfi1_mmu_rb_unregister(struct mmu_rb_handler *handler) in hfi1_mmu_rb_unregister() argument 125 mmgrab(handler->mn.mm); in hfi1_mmu_rb_unregister() 128 mmu_notifier_unregister(&handler->mn, handler->mn.mm); in hfi1_mmu_rb_unregister() 131 * Make sure the wq delete handler is finished running. It will not in hfi1_mmu_rb_unregister() 134 flush_work(&handler->del_work); in hfi1_mmu_rb_unregister() 138 spin_lock_irqsave(&handler->lock, flags); in hfi1_mmu_rb_unregister() 139 while ((node = rb_first_cached(&handler->root))) { in hfi1_mmu_rb_unregister() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/acpi/acpica/ |
| H A D | evxface.c | 37 * handler_type - The type of handler: 38 * ACPI_SYSTEM_NOTIFY: System Handler (00-7F) 39 * ACPI_DEVICE_NOTIFY: Device Handler (80-FF) 41 * handler - Address of the handler 42 * context - Value passed to the handler on each GPE 46 * DESCRIPTION: Install a handler for notifications on an ACPI Device, 49 * NOTES: The Root namespace object may have only one handler for each 51 * may have one device notify handler, and multiple system notify 59 acpi_notify_handler handler, void *context) in acpi_install_notify_handler() argument 72 if ((!device) || (!handler) || (!handler_type) || in acpi_install_notify_handler() [all …]
|
| H A D | evhandler.c | 65 * We install the default PCI config space handler at the root so that in acpi_ev_install_region_handlers() 72 * NOTE: We ignore AE_ALREADY_EXISTS because this means that a handler in acpi_ev_install_region_handlers() 110 * RETURN: TRUE if default handler is installed, FALSE otherwise 112 * DESCRIPTION: Check if the default handler is installed for the requested 128 handler_obj = obj_desc->common_notify.handler; in acpi_ev_has_default_handler() 153 * DESCRIPTION: This routine installs an address handler into objects that are 156 * If the Object is a Device, and the device has a handler of 159 * This is because the existing handler is closer in proximity 214 /* Check if this Device already has a handler for this address space */ in acpi_ev_install_handler() 220 handler); in acpi_ev_install_handler() [all …]
|
| H A D | evxfregn.c | 27 * handler - Address of the handler 29 * context - Value passed to the handler on each access 33 * DESCRIPTION: Install a handler for all op_regions of a given space_id. 45 acpi_adr_space_handler handler, in acpi_install_address_space_handler() argument 72 /* Install the handler for all Regions for this Space ID */ in acpi_install_address_space_handler() 75 acpi_ev_install_space_handler(node, space_id, handler, setup, in acpi_install_address_space_handler() 98 * handler - Address of the handler in ACPI_EXPORT_SYMBOL() 102 * DESCRIPTION: Remove a previously installed handler. in ACPI_EXPORT_SYMBOL() 108 acpi_adr_space_handler handler) in ACPI_EXPORT_SYMBOL() 150 /* Find the address handler the user requested */ in ACPI_EXPORT_SYMBOL() [all …]
|
| /OK3568_Linux_fs/kernel/net/ipv4/ |
| H A D | xfrm4_protocol.c | 40 #define for_each_protocol_rcu(head, handler) \ argument 41 for (handler = rcu_dereference(head); \ 42 handler != NULL; \ 43 handler = rcu_dereference(handler->next)) \ 48 struct xfrm4_protocol *handler; in xfrm4_rcv_cb() local 54 for_each_protocol_rcu(*head, handler) in xfrm4_rcv_cb() 55 if ((ret = handler->cb_handler(skb, err)) <= 0) in xfrm4_rcv_cb() 65 struct xfrm4_protocol *handler; in xfrm4_rcv_encap() local 83 for_each_protocol_rcu(*head, handler) in xfrm4_rcv_encap() 84 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm4_rcv_encap() [all …]
|
| H A D | tunnel4.c | 31 int xfrm4_tunnel_register(struct xfrm_tunnel *handler, unsigned short family) in xfrm4_tunnel_register() argument 37 int priority = handler->priority; in xfrm4_tunnel_register() 51 handler->next = *pprev; in xfrm4_tunnel_register() 52 rcu_assign_pointer(*pprev, handler); in xfrm4_tunnel_register() 63 int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler, unsigned short family) in xfrm4_tunnel_deregister() argument 75 if (t == handler) { in xfrm4_tunnel_deregister() 76 *pprev = handler->next; in xfrm4_tunnel_deregister() 90 #define for_each_tunnel_rcu(head, handler) \ argument 91 for (handler = rcu_dereference(head); \ 92 handler != NULL; \ [all …]
|
| /OK3568_Linux_fs/kernel/net/ipv6/ |
| H A D | xfrm6_protocol.c | 41 #define for_each_protocol_rcu(head, handler) \ argument 42 for (handler = rcu_dereference(head); \ 43 handler != NULL; \ 44 handler = rcu_dereference(handler->next)) \ 49 struct xfrm6_protocol *handler; in xfrm6_rcv_cb() local 55 for_each_protocol_rcu(*proto_handlers(protocol), handler) in xfrm6_rcv_cb() 56 if ((ret = handler->cb_handler(skb, err)) <= 0) in xfrm6_rcv_cb() 66 struct xfrm6_protocol *handler; in xfrm6_rcv_encap() local 96 for_each_protocol_rcu(*head, handler) in xfrm6_rcv_encap() 97 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm6_rcv_encap() [all …]
|
| H A D | tunnel6.c | 32 int xfrm6_tunnel_register(struct xfrm6_tunnel *handler, unsigned short family) in xfrm6_tunnel_register() argument 37 int priority = handler->priority; in xfrm6_tunnel_register() 64 handler->next = *pprev; in xfrm6_tunnel_register() 65 rcu_assign_pointer(*pprev, handler); in xfrm6_tunnel_register() 76 int xfrm6_tunnel_deregister(struct xfrm6_tunnel *handler, unsigned short family) in xfrm6_tunnel_deregister() argument 101 if (t == handler) { in xfrm6_tunnel_deregister() 102 *pprev = handler->next; in xfrm6_tunnel_deregister() 117 #define for_each_tunnel_rcu(head, handler) \ argument 118 for (handler = rcu_dereference(head); \ 119 handler != NULL; \ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/soc/fsl/qbman/ |
| H A D | qman_test_stash.c | 43 * moves it from one cpu to another. (The use of more than one handler per cpu 49 * each forwarding action. To achieve this, each handler will be assigned a 51 * received by a handler, the mixer of the expected sender is XOR'd into all 54 * the current handler. Apart from validating that the frame is taking the 57 * conditional branching. There is a "special" handler designated to act as the 65 * handlers and link-list them (but do no other handler setup). 68 * hp_cpu's 'iterator' to point to its first handler. With each loop, 69 * allocate rx/tx FQIDs and mixer values to the hp_cpu's iterator handler 71 * which connects the last handler to the first (and which is why phase 2 75 * hp_cpu's 'iterator' to point to its first handler. With each loop, [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/ |
| H A D | scsi_dh.c | 3 * SCSI device handler infrastruture. 120 * scsi_dh_handler_attach - Attach a device handler to a device 121 * @sdev - SCSI device the device handler should attach to 122 * @scsi_dh - The device handler to attach 154 sdev->handler = scsi_dh; in scsi_dh_handler_attach() 160 * scsi_dh_handler_detach - Detach a device handler from a device 161 * @sdev - SCSI device the device handler should be detached from 165 sdev->handler->detach(sdev); in scsi_dh_handler_detach() 166 sdev_printk(KERN_NOTICE, sdev, "%s: Detached\n", sdev->handler->name); in scsi_dh_handler_detach() 167 module_put(sdev->handler->module); in scsi_dh_handler_detach() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/acpi/ |
| H A D | wakeup.c | 102 * acpi_register_wakeup_handler - Register wakeup handler 104 * @wakeup: Wakeup-handler to call when the SCI has triggered a wakeup 105 * @context: Context to pass to the handler when calling it 108 * a handler which returns true when the device they are managing wants 114 struct acpi_wakeup_handler *handler; in acpi_register_wakeup_handler() local 118 * need to register the handler. in acpi_register_wakeup_handler() 123 handler = kmalloc(sizeof(*handler), GFP_KERNEL); in acpi_register_wakeup_handler() 124 if (!handler) in acpi_register_wakeup_handler() 127 handler->wakeup = wakeup; in acpi_register_wakeup_handler() 128 handler->context = context; in acpi_register_wakeup_handler() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/irqchip/ |
| H A D | irq-sifive-plic.c | 84 static inline void plic_toggle(struct plic_handler *handler, in plic_toggle() argument 87 u32 __iomem *reg = handler->enable_base + (hwirq / 32) * sizeof(u32); in plic_toggle() 90 raw_spin_lock(&handler->enable_lock); in plic_toggle() 95 raw_spin_unlock(&handler->enable_lock); in plic_toggle() 106 struct plic_handler *handler = per_cpu_ptr(&plic_handlers, cpu); in plic_irq_toggle() local 108 if (handler->present && in plic_irq_toggle() 109 cpumask_test_cpu(cpu, &handler->priv->lmask)) in plic_irq_toggle() 110 plic_toggle(handler, d->hwirq, enable); in plic_irq_toggle() 164 struct plic_handler *handler = this_cpu_ptr(&plic_handlers); in plic_irq_eoi() local 168 writel(d->hwirq, handler->hart_base + CONTEXT_CLAIM); in plic_irq_eoi() [all …]
|
| /OK3568_Linux_fs/kernel/arch/s390/include/asm/ |
| H A D | extable.h | 13 * - Optional address of handler that takes pt_regs * argument and runs in 28 long handler; member 47 if (likely(!x->handler)) in ex_fixup_handler() 49 return (ex_handler_t)((unsigned long)&x->handler + x->handler); in ex_fixup_handler() 55 ex_handler_t handler = ex_fixup_handler(x); in ex_handle() local 57 if (unlikely(handler)) in ex_handle() 58 return handler(x, regs); in ex_handle() 72 a->handler = b->handler; in swap_ex_entry_fixup() 73 if (a->handler) in swap_ex_entry_fixup() 74 a->handler += delta; in swap_ex_entry_fixup() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/probes/uprobes/ |
| H A D | actions-arm.c | 195 [PROBES_PRELOAD_IMM] = {.handler = probes_simulate_nop}, 196 [PROBES_PRELOAD_REG] = {.handler = probes_simulate_nop}, 197 [PROBES_BRANCH_IMM] = {.handler = simulate_blx1}, 198 [PROBES_MRS] = {.handler = simulate_mrs}, 199 [PROBES_BRANCH_REG] = {.handler = simulate_blx2bx}, 200 [PROBES_CLZ] = {.handler = probes_simulate_nop}, 201 [PROBES_SATURATING_ARITHMETIC] = {.handler = probes_simulate_nop}, 202 [PROBES_MUL1] = {.handler = probes_simulate_nop}, 203 [PROBES_MUL2] = {.handler = probes_simulate_nop}, 204 [PROBES_SWP] = {.handler = probes_simulate_nop}, [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_irq.c | 40 * The base driver provides IRQ source registration with DRM, handler 41 * registration into the base driver's IRQ table, and a handler callback 43 * handler looks up the IRQ table, and calls the respective 54 * are all set to the DM generic handler amdgpu_dm_irq_handler(), which looks up 71 * @list: Linked list entry referencing the next/previous handler 72 * @handler: Handler function 73 * @handler_arg: Argument passed to the handler when triggered 74 * @dm: DM which this handler belongs to 75 * @irq_source: DC interrupt source that this handler is registered for 79 interrupt_handler handler; member [all …]
|
| /OK3568_Linux_fs/kernel/arch/xtensa/kernel/ |
| H A D | vectors.S | 22 * fast handler or the default handler, if no fast handler was registered. 23 * The default handler sets up a C-stack and dispatches the exception to a 24 * registerd C handler in the second-level dispatch table. 26 * Fast handler entry condition: 41 * Note: Neither the kernel nor the user exception handler generate literals. 63 * We switch to the kernel stack and jump to the first level handler 81 l32i a0, a0, EXC_TABLE_FAST_USER # load handler 92 * jump to the first-level handler associated with the exception cause. 108 l32i a0, a0, EXC_TABLE_FAST_KERNEL # load handler address 134 * vmalloc memory, possibly requiring repair in a double exception handler. [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/probes/kprobes/ |
| H A D | actions-arm.c | 23 * setting a handler for it to run the instruction. 25 * In the execution phase by an instruction's handler: 31 * directly executed. Its handler calls the 298 [PROBES_PRELOAD_IMM] = {.handler = probes_simulate_nop}, 299 [PROBES_PRELOAD_REG] = {.handler = probes_simulate_nop}, 300 [PROBES_BRANCH_IMM] = {.handler = simulate_blx1}, 301 [PROBES_MRS] = {.handler = simulate_mrs}, 302 [PROBES_BRANCH_REG] = {.handler = simulate_blx2bx}, 303 [PROBES_CLZ] = {.handler = emulate_rd12rm0_noflags_nopc}, 305 .handler = emulate_rd12rn16rm0_rwflags_nopc}, [all …]
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A D | xattr.c | 44 #define for_each_xattr_handler(handlers, handler) \ argument 46 for ((handler) = *(handlers)++; \ 47 (handler) != NULL; \ 48 (handler) = *(handlers)++) 57 const struct xattr_handler *handler; in xattr_resolve_name() local 64 for_each_xattr_handler(handlers, handler) { in xattr_resolve_name() 67 n = strcmp_prefix(*name, xattr_prefix(handler)); in xattr_resolve_name() 69 if (!handler->prefix ^ !*n) { in xattr_resolve_name() 75 return handler; in xattr_resolve_name() 138 * Look for any handler that deals with the specified namespace. [all …]
|
| /OK3568_Linux_fs/app/forlinx/flapp/src/libs/server/ |
| H A D | servermanager.cpp | 9 QMap<QString, ServerHandler*> handler; member in ServerManagerPrivate 46 void ServerManager::addHandler(const QString &servername, ServerHandler *handler) in addHandler() argument 49 if(server!= NULL && !m_d->handler.values().contains(handler)) in addHandler() 51 m_d->handler.insert(servername, handler); in addHandler() 52 server->addHandler(handler); in addHandler() 58 void ServerManager::removeHandler(ServerHandler *handler) in removeHandler() argument 60 if(m_d->handler.values().contains(handler)) in removeHandler() 62 QString key = m_d->handler.key(handler); in removeHandler() 63 m_d->handler.remove(key); in removeHandler() 67 server->removehandler(handler); in removeHandler()
|
| /OK3568_Linux_fs/buildroot/dl/sox/git/src/ |
| H A D | formats.c | 305 if (ft->handler.flags & SOX_FILE_ENDIAN) { in set_endiannesses() 306 sox_bool file_is_bigendian = !(ft->handler.flags & SOX_FILE_ENDBIG); in set_endiannesses() 327 ft->encoding.reverse_bits = !!(ft->handler.flags & SOX_FILE_BIT_REV); in set_endiannesses() 328 else if (ft->encoding.reverse_bits == !(ft->handler.flags & SOX_FILE_BIT_REV)) in set_endiannesses() 332 ft->encoding.reverse_nibbles = !!(ft->handler.flags & SOX_FILE_NIB_REV); in set_endiannesses() 334 if (ft->encoding.reverse_nibbles == !(ft->handler.flags & SOX_FILE_NIB_REV)) in set_endiannesses() 495 sox_format_handler_t const * handler; in open_read() local 502 if (!(handler = sox_find_format(filetype, sox_false))) { in open_read() 503 lsx_fail("no handler for given file type `%s'", filetype); in open_read() 506 ft->handler = *handler; in open_read() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/vga/ |
| H A D | vga_switcheroo.c | 70 * clients. The mux is called the handler. Muxless machines also register a 71 * handler to control the power state of the discrete GPU, its ->switchto 87 * switched to it, provided that the handler supports this. Switching 99 * @id: client identifier. Determining the id requires the handler, 133 * Prerequisite is the registration of two GPUs and a handler 140 * @handler: registered handler 141 * @handler_flags: flags of registered handler 159 const struct vga_switcheroo_handler *handler; member 181 /* we're ready if we get two clients + handler */ in vga_switcheroo_ready() 183 vgasr_priv.registered_clients == 2 && vgasr_priv.handler; in vga_switcheroo_ready() [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/tests/ |
| H A D | color.py | 62 handler = CustomProgressHandler(self.d, buffer) 63 handler.write("Program output!\n") 64 handler.write("More output!\n") 65 handler.write("Progress: [01;35m[K10[m[K%\n") # 10% 66 handler.write("Even more\n") 67 handler.write("[01;35m[KProgress: 50[m[K%\n") # 50% 68 handler.write("[01;35m[KProgress: 60[m[K%\n") # 60% 69 handler.write("Pro[01;35m[Kgress: [m[K100%\n") # 100% 78 handler = bb.progress.BasicProgressHandler(self.d, outfile=buffer) 79 handler.write("[01;35m[K1[m[K%\n") # 1% [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/rmi4/ |
| H A D | rmi_bus.c | 148 struct rmi_function_handler *handler = to_rmi_function_handler(drv); in rmi_function_match() local 151 return fn->fd.function_number == handler->func; in rmi_function_match() 174 struct rmi_function_handler *handler) in rmi_create_function_irq() argument 191 handler->attention, IRQF_ONESHOT, in rmi_create_function_irq() 205 struct rmi_function_handler *handler = in rmi_function_probe() local 211 if (handler->probe) { in rmi_function_probe() 212 error = handler->probe(fn); in rmi_function_probe() 217 if (fn->num_of_irqs && handler->attention) { in rmi_function_probe() 218 error = rmi_create_function_irq(fn, handler); in rmi_function_probe() 229 struct rmi_function_handler *handler = in rmi_function_remove() local [all …]
|
| /OK3568_Linux_fs/kernel/include/media/ |
| H A D | dvb_vb2.h | 73 * struct dvb_vb2_ctx - control struct for VB2 handler 137 * dvb_vb2_init - initializes VB2 handler 139 * @ctx: control struct for VB2 handler 140 * @name: name for the VB2 handler 147 * dvb_vb2_release - Releases the VB2 handler allocated resources and 149 * @ctx: control struct for VB2 handler 154 * dvb_vb2_is_streaming - checks if the VB2 handler is streaming 155 * @ctx: control struct for VB2 handler 163 * @ctx: control struct for VB2 handler 178 * @ctx: control struct for VB2 handler [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/sysdev/ |
| H A D | pmi.c | 28 struct list_head handler; member 101 struct pmi_handler *handler; in pmi_notify_handlers() local 104 list_for_each_entry(handler, &data->handler, node) { in pmi_notify_handlers() 105 pr_debug("pmi: notifying handler %p\n", handler); in pmi_notify_handlers() 106 if (handler->type == data->msg.type) in pmi_notify_handlers() 107 handler->handle_pmi_message(data->msg); in pmi_notify_handlers() 137 INIT_LIST_HEAD(&data->handler); in pmi_of_probe() 177 struct pmi_handler *handler, *tmp; in pmi_of_remove() local 184 list_for_each_entry_safe(handler, tmp, &data->handler, node) in pmi_of_remove() 185 list_del(&handler->node); in pmi_of_remove() [all …]
|