/linux-master/drivers/video/fbdev/mmp/hw/ |
H A D | mmp_ctrl.c | 165 static void dmafetch_onoff(struct mmp_overlay *overlay, int on) argument 176 tmp |= (on ? enable : 0); 181 static void path_enabledisable(struct mmp_path *path, int on) argument 186 if (on) 194 static void path_onoff(struct mmp_path *path, int on) argument 196 if (path->status == on) { 202 if (on) { 213 path->status = on; 216 static void overlay_set_onoff(struct mmp_overlay *overlay, int on) argument 218 if (overlay->status == on) { [all...] |
/linux-master/drivers/media/i2c/ |
H A D | adp1653.c | 53 /* Flash mode, light on with strobe, duration from timer */ 59 /* Torch mode, light immediately on, duration indefinite */ 296 __adp1653_set_power(struct adp1653_flash *flash, int on) argument 301 ret = flash->platform_data->power(&flash->subdev, on); 305 gpiod_set_value(flash->platform_data->enable_gpio, on); 306 if (on) 311 if (!on) 327 adp1653_set_power(struct v4l2_subdev *subdev, int on) argument 337 if (flash->power_count == !on) { 338 ret = __adp1653_set_power(flash, !!on); [all...] |
/linux-master/drivers/clk/qcom/ |
H A D | gdsc.c | 59 /* Returns 1 if GDSC status is status, 0 if not, and < 0 on error */ 152 /* If disabling votable gdscs, don't poll on status */ 166 * after it receives a power on/off request from a master. 287 * If clocks to this power domain were already on, they will take an 295 /* Turn on HW trigger mode if supported */ 303 * bits for the gdsc, it might read an 'on' status before 334 * it might read an 'on' status wrongly. 369 int on, ret; local 372 * Disable HW trigger: collapse/restore occur based on registers writes. 401 on [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | udpgro_fwd.sh | 128 # Always expect 10 UDP frames on RX side as rx socket does 209 # Use ping6 on systems where ping doesn't handle IPv6 220 ip netns exec $NS_DST ethtool -K veth$DST generic-receive-offload on 221 ip netns exec $NS_DST ethtool -K veth$DST rx-gro-list on 231 ip netns exec $NS_DST ethtool -K veth$DST generic-receive-offload on 232 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on 240 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on 245 ip netns exec $NS_DST ethtool -K veth$DST generic-receive-offload on 246 ip netns exec $NS_DST ethtool -K veth$DST rx-gro-list on 253 ip netns exec $NS_DST ethtool -K veth$DST generic-receive-offload on [all...] |
/linux-master/sound/aoa/core/ |
H A D | gpio-pmf.c | 14 static void pmf_gpio_set_##name(struct gpio_runtime *rt, int on)\ 16 struct pmf_args args = { .count = 1, .u[0].v = !on }; \ 25 rt->implementation_private |= (!!on << bit); \ 37 static void pmf_gpio_set_hw_reset(struct gpio_runtime *rt, int on) argument 39 struct pmf_args args = { .count = 1, .u[0].v = !!on };
|
/linux-master/drivers/phy/samsung/ |
H A D | phy-exynos4210-usb2.c | 124 static void exynos4210_isol(struct samsung_usb2_phy_instance *inst, bool on) argument 143 regmap_update_bits(drv->reg_pmu, offset, mask, on ? 0 : mask); 146 static void exynos4210_phy_pwr(struct samsung_usb2_phy_instance *inst, bool on) argument 167 writel(on, drv->reg_phy + EXYNOS_4210_UPHY1CON); 181 if (on) {
|
/linux-master/arch/arm/mach-rockchip/ |
H A D | platsmp.c | 64 static int pmu_set_power_domain(int pd, bool on) argument 66 u32 val = (on) ? 0 : BIT(pd); 81 if (!IS_ERR(rstc) && !on) 93 while (ret != on) { 104 if (on) 160 * Starting cores execute the code residing at the start of the on-chip sram 161 * after power-on. Therefore make sure, this sram region is reserved and
|
/linux-master/drivers/input/misc/ |
H A D | regulator-haptic.c | 36 static int regulator_haptic_toggle(struct regulator_haptic *haptic, bool on) argument 40 if (haptic->active != on) { 42 error = on ? regulator_enable(haptic->regulator) : 47 on ? "on" : "off", error); 51 haptic->active = on;
|
/linux-master/drivers/platform/x86/ |
H A D | asus-wireless.c | 18 u8 on; member in struct:hswc_params 34 .on = 0x0, 40 .on = 0x5, 86 if (ACPI_SUCCESS(s) && ret == data->hswc_params->on) 107 data->hswc_params->on;
|
/linux-master/drivers/phy/ti/ |
H A D | phy-omap-control.c | 54 * omap_control_phy_power - power on/off the phy using control module reg 56 * @on: 0 or 1, based on powering on or off the PHY 58 void omap_control_phy_power(struct device *dev, int on) argument 82 if (on) 93 if (on) { 108 if (on) 115 if (on) {
|
/linux-master/drivers/gpu/drm/ast/ |
H A D | ast_dp.c | 163 void ast_dp_power_on_off(struct drm_device *dev, bool on) argument 169 // Turn on DP PHY sleep 170 if (!on) 173 // DP Power on/off 179 void ast_dp_set_on_off(struct drm_device *dev, bool on) argument 182 u8 video_on_off = on; 186 ast_set_index_reg_mask(ast, AST_IO_VGACRI, 0xE3, (u8) ~AST_DP_VIDEO_ENABLE, on); 188 // If DP plug in and link successful then check video on / off status
|
/linux-master/samples/connector/ |
H A D | ucon.c | 159 int on = 0x57; /* Additional group number */ 160 setsockopt(s, SOL_NETLINK, NETLINK_ADD_MEMBERSHIP, &on, sizeof(on));
|
/linux-master/drivers/media/rc/ |
H A D | serial_ir.c | 6 * (space-lengths) between DDCD event on a serial port. 32 u8 on; member in struct:serial_ir_hw 71 .on = (UART_MCR_RTS | UART_MCR_OUT2 | UART_MCR_DTR), 85 .on = UART_MCR_OUT2, 96 .on = (UART_MCR_RTS | UART_MCR_DTR | UART_MCR_OUT2), 107 .on = 0, 115 .on = (UART_MCR_RTS | UART_MCR_OUT2 | UART_MCR_DTR), 160 static void on(void) function 165 soutp(UART_MCR, hardware[type].on); 171 soutp(UART_MCR, hardware[type].on); [all...] |
/linux-master/drivers/staging/fbtft/ |
H A D | fb_sh1106.c | 4 * Based on the SSD1306 driver by Noralf Tronnes 20 /* Init sequence based on the Adafruit SSD1306 Arduino library */ 89 static int blank(struct fbtft_par *par, bool on) argument 92 __func__, on ? "true" : "false"); 94 write_reg(par, on ? 0xAE : 0xAF);
|
/linux-master/arch/arm/mach-pxa/ |
H A D | pxa25x.c | 120 static int pxa25x_set_wake(struct irq_data *d, unsigned int on) argument 126 return gpio_set_wake(gpio, on); 136 if (on)
|
H A D | mfp-pxa2xx.c | 7 * The GPIOs on PXA2xx can be configured as one of many alternate 9 * on PXA3xx, what's more important, the low power pin state and 105 /* give early warning if MFP_LPM_CAN_WAKEUP is set on the 172 int gpio_set_wake(unsigned int gpio, unsigned int on) argument 191 if (on) 199 if (on && mux_taken) 203 if (on) { 255 int keypad_set_wake(unsigned int on) argument 273 if (on)
|
/linux-master/drivers/pmdomain/samsung/ |
H A D | exynos-pm-domains.c | 111 int on, ret; local 132 on = readl_relaxed(pd->base + 0x4) & pd->local_pwr_cfg; 134 pm_genpd_init(&pd->pd, NULL, !on);
|
/linux-master/arch/m68k/apollo/ |
H A D | config.c | 35 static void dn_heartbeat(int on); 229 static void dn_heartbeat(int on) { argument 231 if(on) {
|
/linux-master/drivers/pwm/ |
H A D | pwm-pca9685.c | 8 * based on the pwm-twl-led.c driver 139 unsigned int on, off; local 158 * turn on at the same time, while still maintaining the 161 on = channel * PCA9685_COUNTER_RANGE / PCA9685_MAXCHAN; 163 on = 0; 165 off = (on + duty) % PCA9685_COUNTER_RANGE; 168 pca9685_write_reg(chip, REG_ON_L(channel), on & 0xff); 169 pca9685_write_reg(chip, REG_ON_H(channel), (on >> 8) & 0xf); 178 unsigned int off = 0, on = 0, val = 0; local 191 pca9685_read_reg(chip, LED_N_ON_H(channel), &on); [all...] |
/linux-master/arch/sparc/kernel/ |
H A D | etrap_32.S | 113 sll %t_wim, 0x7, %t_wim ! patched on 7 window Sparcs 116 and %g2, 0xff, %g2 ! patched on 7 window Sparcs 189 and %g2, 0xff, %g2 ! patched on 7win Sparcs 203 and %g1, 0xff, %g1 ! patched on 7win Sparcs, mask 206 sll %t_wim, 0x7, %t_wim ! patched on 7win Sparcs 209 and %g2, 0xff, %g2 ! patched on 7win Sparcs 225 * as they have been safely stashed on the new kernel stack 252 /* Clear the fault status and turn on the no_fault bit. */
|
/linux-master/net/mac802154/ |
H A D | trace.h | 2 /* Based on net/mac80211/trace.h */ 253 TP_PROTO(struct ieee802154_local *local, bool on), 254 TP_ARGS(local, on), 257 __field(bool, on) 261 __entry->on = on; 264 BOOL_TO_STR(__entry->on))
|
/linux-master/drivers/auxdisplay/ |
H A D | hd44780_common.c | 16 #define LCD_CMD_DISPLAY_ON 0x04 /* Set display on */ 17 #define LCD_CMD_CURSOR_ON 0x02 /* Set cursor on */ 18 #define LCD_CMD_BLINK_ON 0x01 /* Set blink on */ 218 int hd44780_common_display(struct charlcd *lcd, enum charlcd_onoff on) argument 222 if (on == CHARLCD_ON) 232 int hd44780_common_cursor(struct charlcd *lcd, enum charlcd_onoff on) argument 236 if (on == CHARLCD_ON) 246 int hd44780_common_blink(struct charlcd *lcd, enum charlcd_onoff on) argument 250 if (on == CHARLCD_ON)
|
/linux-master/drivers/media/pci/solo6x10/ |
H A D | solo6x10-g723.c | 46 int on; member in struct:solo_snd_pcm 87 /* This means open() hasn't been called on this one */ 93 if (!solo_pcm->on) 169 if (solo_pcm->on == 0) { 170 /* If this is the first user, switch on interrupts */ 173 solo_pcm->on = 1; 177 if (solo_pcm->on) { 181 solo_pcm->on = 0; 348 sprintf(card->longname, "%s on %s IRQ %d", card->shortname,
|
/linux-master/tools/testing/selftests/net/af_unix/ |
H A D | scm_pidfd.c | 302 int on = 0; local 325 on = 1; 326 if (setsockopt(cfd, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on))) { 331 if (setsockopt(cfd, SOL_SOCKET, SO_PASSPIDFD, &on, sizeof(on))) {
|
/linux-master/drivers/net/ethernet/ti/ |
H A D | am65-cpts.c | 551 static void am65_cpts_extts_enable_hw(struct am65_cpts *cpts, u32 index, int on) argument 556 if (on) { 566 static int am65_cpts_extts_enable(struct am65_cpts *cpts, u32 index, int on) argument 574 if (((cpts->hw_ts_enable & BIT(index)) >> index) == on) 578 am65_cpts_extts_enable_hw(cpts, index, on); 582 __func__, index, on ? "enabled" : "disabled"); 629 struct ptp_perout_request *req, int on) 635 if (on) { 666 struct ptp_perout_request *req, int on) 674 if (!!(cpts->genf_enable & BIT(req->index)) == !!on) 628 am65_cpts_perout_enable_hw(struct am65_cpts *cpts, struct ptp_perout_request *req, int on) argument 665 am65_cpts_perout_enable(struct am65_cpts *cpts, struct ptp_perout_request *req, int on) argument 687 am65_cpts_pps_enable(struct am65_cpts *cpts, int on) argument 729 am65_cpts_ptp_enable(struct ptp_clock_info *ptp, struct ptp_clock_request *rq, int on) argument [all...] |