/openbmc/phosphor-fan-presence/control/json/triggers/ |
H A D | signal.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 16 #include "signal.hpp" 20 #include "group.hpp" 25 #include <phosphor-logging/log.hpp> 37 namespace phosphor::fan::control::json::trigger::signal namespace 47 auto& signalData = mgr->getSignal(match); in subscribe() 50 // Signal subscription doesnt exist, add signal package and subscribe in subscribe() 53 pkgs->emplace_back(std::move(signalPkg)); in subscribe() 57 // Subscribe to signal in subscribe() 59 mgr->getBus(), match.c_str(), in subscribe() [all …]
|
H A D | signal.hpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 30 namespace phosphor::fan::control::json::trigger::signal namespace 36 * @brief Subscribe to a signal 38 * @param[in] match - Signal match string to subscribe to 39 * @param[in] pkg - Data package to attach to signal 40 * @param[in] isSameSig - Function to determine if same signal being subscribed 41 * @param[in] mgr - Pointer to manager of the trigger 47 * @brief Subscribes to a propertiesChanged signal 49 * @param[in] mgr - Pointer to manager of the trigger 50 * @param[in] group - Group to subscribe signal against [all …]
|
H A D | init.hpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 20 #include "group.hpp" 38 * @param[in] mgr - Pointer to manager of the event 39 * @param[in] group - Group associated with the event 41 void getProperties(Manager* mgr, const Group& group); 46 * @param[in] mgr - Pointer to manager of the event 47 * @param[in] group - Group associated with the event 49 void nameHasOwner(Manager* mgr, const Group& group); 52 using methodHandler = std::function<void(Manager*, const Group&)>; 61 * @param[in] jsonObj - JSON object for the trigger [all …]
|
/openbmc/linux/drivers/pinctrl/aspeed/ |
H A D | pinmux-aspeed.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 12 * basis where a given pin can provide a number of different signal types. 14 * The signal active on a pin is described by both a priority level and 18 * change from a high to low priority signal), or even in the same register. 21 * read-only). 23 * SoC Multi-function Pin Expression Examples 24 * ------------------------------------------ 28 * corner. The signal priorities are in decending order from P0 (highest). 30 * D6 is a pin with a single function (beside GPIO); a high priority signal 33 * Ball | Default | P0 Signal | P0 Expression | P1 Signal | P1 Expression | Other [all …]
|
H A D | pinctrl-aspeed.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include "pinctrl-aspeed.h" 18 return pdata->pinmux.ngroups; in aspeed_pinctrl_get_groups_count() 22 unsigned int group) in aspeed_pinctrl_get_group_name() argument 26 return pdata->pinmux.groups[group].name; in aspeed_pinctrl_get_group_name() 30 unsigned int group, const unsigned int **pins, in aspeed_pinctrl_get_group_pins() argument 35 *pins = &pdata->pinmux.groups[group].pins[0]; in aspeed_pinctrl_get_group_pins() 36 *npins = pdata->pinmux.groups[group].npins; in aspeed_pinctrl_get_group_pins() 44 seq_printf(s, " %s", dev_name(pctldev->dev)); in aspeed_pinctrl_pin_dbg_show() 51 return pdata->pinmux.nfunctions; in aspeed_pinmux_get_fn_count() [all …]
|
/openbmc/phosphor-fan-presence/docs/control/ |
H A D | events.md | 7 Triggers specify when an action should run. Groups specify which D-Bus objects 12 - [Groups](#groups) 13 - [Triggers](#triggers) 14 - [Actions](#actions) 15 - [Modifiers](#modifiers) 36 "class": "signal", 37 "signal": "properties_changed" 56 property on the `xyz.openbmc_project.Inventory.Item` interface from every D-Bus 57 object in the 'fan inventory' group, update those values in the object cache, 60 The trigger `signal.properties_changed` will watch for changes on the Present [all …]
|
/openbmc/phosphor-fan-presence/control/example/ |
H A D | events.yaml | 1 #Example set speed events for phosphor-fan-control 4 # - name: [A unique name for this group] 5 # description: [A user description of what makes up the group] 11 # - name: [The name associated with a supported match string function] 17 # - name: [The name associated with a supported signal function] 18 # description: [A user description of what this signal does] 20 # [Ordered list of required parameters for the signal function] 21 # match: [Match string function to use in subscribing to the signal] 24 # - name: [The name associated with a supported method function] 30 # - name: [The name associated with a supported handler function] [all …]
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/fans/phosphor-fan-control-events-config/witherspoon/ |
H A D | events.yaml | 2 - name: poweron_pgood 6 - /power0 7 - name: zone0_control_mode 12 - /0 13 - name: air_cooled_zone0_fans 14 description: Group of fan inventory objects for air cooled zone 0 17 - /system/chassis/motherboard/fan0 18 - /system/chassis/motherboard/fan1 19 - /system/chassis/motherboard/fan2 20 - /system/chassis/motherboard/fan3 [all …]
|
/openbmc/openbmc/meta-ibm/meta-romulus/recipes-phosphor/fans/phosphor-fan-control-events-config/ |
H A D | events.yaml | 2 - name: air_cooled_zone0_fans 3 description: Group of fan inventory objects for air cooled zone 0 6 - /system/chassis/motherboard/fan0 7 - /system/chassis/motherboard/fan1 8 - /system/chassis/motherboard/fan2 9 - name: zone0_ambient 10 description: Group of ambient temperature sensors for zone 0 13 - /temperature/outlet 14 - name: occ0_object 18 - /occ0 [all …]
|
/openbmc/linux/drivers/tty/ |
H A D | tty_jobctrl.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/signal.h> 9 #include <linux/sched/signal.h> 18 return (sigismember(¤t->blocked, sig) || in is_ignored() 19 current->sighand->action[sig-1].sa.sa_handler == SIG_IGN); in is_ignored() 23 * __tty_check_change - check for POSIX terminal changes 25 * @sig: signal to send 28 * not in the foreground, send a SIGTTOU. If the signal is blocked or 39 if (current->signal->tty != tty) in __tty_check_change() 45 spin_lock_irqsave(&tty->ctrl.lock, flags); in __tty_check_change() [all …]
|
/openbmc/linux/include/trace/events/ |
H A D | signal.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 #define TRACE_SYSTEM signal 8 #include <linux/signal.h> 15 __entry->errno = 0; \ 16 __entry->code = SI_USER; \ 18 __entry->errno = 0; \ 19 __entry->code = SI_KERNEL; \ 21 __entry->errno = info->si_errno; \ 22 __entry->code = info->si_code; \ 37 * signal_generate - called when a signal is generated [all …]
|
/openbmc/linux/include/linux/sched/ |
H A D | signal.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 #include <linux/signal.h> 12 #include <linux/posix-timers.h> 17 * Types defining task->signal and task->sighand and APIs using them: 28 * Per-process accounting stats: 60 * struct thread_group_cputimer - thread group interval timer counts 61 * @cputime_atomic: atomic thread group interval timers. 64 * used for thread group CPU timer calculations. 71 sigset_t signal; member 102 /* current thread group signal load-balancing target: */ [all …]
|
H A D | cputime.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 #include <linux/sched/signal.h> 19 *utime = t->utime; in task_cputime() 20 *stime = t->stime; in task_cputime() 26 return t->gtime; in task_gtime() 35 *utimescaled = t->utimescaled; in task_cputime_scaled() 36 *stimescaled = t->stimescaled; in task_cputime_scaled() 53 * Thread group CPU time accounting. 59 * The following are functions that support scheduler-internal time accounting. 65 * get_running_cputimer - return &tsk->signal->cputimer if cputimers are active [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | nxp,s32g2-siul2-pinctrl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/pinctrl/nxp,s32g2-siul2-pinctrl.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Ghennadi Procopciuc <Ghennadi.Procopciuc@oss.nxp.com> 12 - Chester Lin <clin@suse.com> 24 MSCR102-MSCR111, MSCR123-MSCR143, IMCR84-IMCR118 and IMCR398-IMCR429. 29 - nxp,s32g2-siul2-pinctrl 34 - MSCR (Multiplexed Signal Configuration Register) 36 or a function output pin depends on the selected signal source. [all …]
|
/openbmc/phosphor-fan-presence/control/ |
H A D | functor.hpp | 7 #include <phosphor-logging/log.hpp> 24 * @param[in] handler - The handler being created 26 * @return - The created zone handler function object 37 * @param[in] trigger - The trigger being created 39 * @return - The created trigger function object 50 * @param[in] handler - The handler being created 52 * @return - The created handler function object 63 * @param[in] action - The action being created 65 * @return - The created action function object 79 * @tparam T - The type of the property value [all …]
|
H A D | gen-fan-zone-defs.py | 55 if i < len(typeArray) - 1 and type(typeArray[i + 1]) is list: 69 This function then converts the type-list into a C++ type string. 95 # Handle 0-entry parameter lists. 106 if (entry["params"] != -1) and (entry["params"] != len(rest)): 140 e += "Group{\n" 141 for group in event["groups"]: 142 for member in group["members"]: 150 e += "{Group{\n" 188 e += "\tmake_trigger(trigger::signal(\n" 198 e += s["signal"] + "<" + s["sparams"]["type"] + ">(\n" [all …]
|
H A D | zone.hpp | 29 * - init - only do the initialization steps 30 * - control - run normal control algorithms 39 * @class Represents a fan control zone, which is a group of fans 57 * @param[in] mode - mode of fan control 58 * @param[in] bus - the dbus object 59 * @param[in] path - object instance path 60 * @param[in] event - Event loop reference 61 * @param[in] def - the fan zone definition data 100 * @param[in] speed - the fan speed 112 * @param[in] group - A group that affects the active state [all …]
|
/openbmc/linux/drivers/counter/ |
H A D | counter-sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0 20 #include "counter-sysfs.h" 28 * struct counter_attribute - Counter sysfs attribute 30 * @l: node to add Counter attribute to attribute group list 48 * struct counter_attribute_group - container for attribute group 49 * @name: name of the attribute group 62 [COUNTER_FUNCTION_PULSE_DIRECTION] = "pulse-direction", 90 [COUNTER_COUNT_MODE_NON_RECYCLE] = "non-recycle", 91 [COUNTER_COUNT_MODE_MODULO_N] = "modulo-n", 93 [COUNTER_COUNT_MODE_HARDWARE_RETRIGGERABLE_ONESHOT] = "hardware retriggerable one-shot", [all …]
|
/openbmc/linux/kernel/ |
H A D | signal.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/kernel/signal.c 7 * 1997-11-02 Modified for POSIX.1b signals by Richard Henderson 9 * 2003-06-02 Jim Houston - Concurrent Computer Corp. 33 #include <linux/signal.h> 46 #include <linux/posix-timers.h> 52 #include <trace/events/signal.h> 62 * SLAB caches for signal bits. 71 return t->sighand->action[sig - 1].sa.sa_handler; in sig_handler() 91 if (unlikely(t->signal->flags & SIGNAL_UNKILLABLE) && in sig_task_ignored() [all …]
|
H A D | exit.c | 1 // SPDX-License-Identifier: GPL-2.0-only 43 #include <linux/signal.h> 44 #include <linux/posix-timers.h> 80 * overflowing 32-bit refcounts or the ldsem writer count. 125 nr_threads--; in __unhash_process() 132 list_del_rcu(&p->tasks); in __unhash_process() 133 list_del_init(&p->sibling); in __unhash_process() 136 list_del_rcu(&p->thread_group); in __unhash_process() 137 list_del_rcu(&p->thread_node); in __unhash_process() 141 * This function expects the tasklist_lock write-locked. [all …]
|
/openbmc/phosphor-watchdog/src/ |
H A D | mainapp.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 20 #include <phosphor-logging/elog-errors.hpp> 21 #include <phosphor-logging/elog.hpp> 22 #include <phosphor-logging/log.hpp> 27 #include <sdeventplus/source/signal.hpp> 29 #include <stdplus/signal.hpp> 45 std::cerr << " " << convertForMessage(action) << " -> " << target in printActionTargetMap() 56 std::cerr << " Always re-execute: " << std::boolalpha << fallback.always in printFallback() 72 app.add_option("-p,--path", path, in main() 75 ->required() in main() [all …]
|
/openbmc/phosphor-led-manager/fault-monitor/ |
H A D | operational-status-monitor.hpp | 25 * Inventory D-Bus object and then assert corresponding LED Group 26 * D-Bus objects. 40 * @param[in] bus - D-Bus object 45 "type='signal',member='PropertiesChanged', " in Monitor() 55 /** @brief sdbusplus D-Bus connection. */ 58 /** @brief sdbusplus signal matches for Monitor */ 61 /** DBusHandler class handles the D-Bus operations */ 66 * signal is caught by this app. Message is scanned for Inventory 67 * D-Bus object path and if OperationalStatus::Functional is changed, 68 * then corresponding LED Group D-Bus object is called to assert. [all …]
|
/openbmc/openbmc/meta-arm/scripts/ |
H A D | runfvp | 6 import signal 13 # Add meta-arm/lib/ to path 14 libdir = pathlib.Path(__file__).parents[1] / "meta-arm" / "lib" 25 group = parser.add_mutually_exclusive_group() 26 …group.add_argument("-t", "--terminals", choices=terminals.all_terminals(), default=terminals.prefe… 27 …group.add_argument("-c", "--console", action="store_true", help="Attach the first uart to stdin/st… 28 parser.add_argument("--verbose", action="store_true", help="Output verbose logging") 29 parser.usage = f"{parser.format_usage().strip()} -- [ arguments passed to FVP ]" 32 …# If the arguments contains -- then everything after it should be passed to the FVP binary directl… 33 if "--" in arguments: [all …]
|
/openbmc/linux/include/linux/ |
H A D | signal.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 25 #define SI_EXPANSION_SIZE (sizeof(struct siginfo) - sizeof(struct kernel_siginfo)) 66 unsigned long sig = _sig - 1; in sigaddset() 68 set->sig[0] |= 1UL << sig; in sigaddset() 70 set->sig[sig / _NSIG_BPW] |= 1UL << (sig % _NSIG_BPW); in sigaddset() 75 unsigned long sig = _sig - 1; in sigdelset() 77 set->sig[0] &= ~(1UL << sig); in sigdelset() 79 set->sig[sig / _NSIG_BPW] &= ~(1UL << (sig % _NSIG_BPW)); in sigdelset() 84 unsigned long sig = _sig - 1; in sigismember() 86 return 1 & (set->sig[0] >> sig); in sigismember() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/gpio/ |
H A D | gpio.txt | 5 ----------------- 7 GPIO properties should be named "[<name>-]gpios", with <name> being the purpose 8 of this GPIO for the device. While a non-existent <name> is considered valid 10 for new bindings. Also, GPIO properties named "[<name>-]gpio" are valid and old 24 and bit-banged data signals: 27 gpio-controller; 28 #gpio-cells = <2>; 32 data-gpios = <&gpio1 12 0>, 44 recommended to use the two-cell approach. 48 include/dt-bindings/gpio/gpio.h whenever possible: [all …]
|