Home
last modified time | relevance | path

Searched refs:control (Results 1 – 25 of 674) sorted by relevance

12345678910>>...27

/drivers/staging/greybus/
Dcontrol.c20 static int gb_control_get_version(struct gb_control *control) in gb_control_get_version() argument
22 struct gb_interface *intf = control->connection->intf; in gb_control_get_version()
30 ret = gb_operation_sync(control->connection, in gb_control_get_version()
48 control->protocol_major = response.major; in gb_control_get_version()
49 control->protocol_minor = response.minor; in gb_control_get_version()
57 static int gb_control_get_bundle_version(struct gb_control *control, in gb_control_get_bundle_version() argument
60 struct gb_interface *intf = control->connection->intf; in gb_control_get_bundle_version()
67 ret = gb_operation_sync(control->connection, in gb_control_get_bundle_version()
87 int gb_control_get_bundle_versions(struct gb_control *control) in gb_control_get_bundle_versions() argument
89 struct gb_interface *intf = control->connection->intf; in gb_control_get_bundle_versions()
[all …]
Dcontrol.h31 int gb_control_enable(struct gb_control *control);
32 void gb_control_disable(struct gb_control *control);
33 int gb_control_suspend(struct gb_control *control);
34 int gb_control_resume(struct gb_control *control);
35 int gb_control_add(struct gb_control *control);
36 void gb_control_del(struct gb_control *control);
37 struct gb_control *gb_control_get(struct gb_control *control);
38 void gb_control_put(struct gb_control *control);
40 int gb_control_get_bundle_versions(struct gb_control *control);
41 int gb_control_connected_operation(struct gb_control *control, u16 cport_id);
[all …]
Daudio_topology.c58 struct gbaudio_control *control; in gbaudio_map_controlid() local
63 list_for_each_entry(control, &module->ctl_list, list) { in gbaudio_map_controlid()
64 if (control->id == control_id) { in gbaudio_map_controlid()
66 return control->name; in gbaudio_map_controlid()
67 if (index >= control->items) in gbaudio_map_controlid()
69 return control->texts[index]; in gbaudio_map_controlid()
72 list_for_each_entry(control, &module->widget_ctl_list, list) { in gbaudio_map_controlid()
73 if (control->id == control_id) { in gbaudio_map_controlid()
75 return control->name; in gbaudio_map_controlid()
76 if (index >= control->items) in gbaudio_map_controlid()
[all …]
/drivers/tty/vt/
Ddefkeymap.map6 # altgr control keycode 83 = Boot
7 # altgr control keycode 111 = Boot
19 control keycode 3 = nul
20 shift control keycode 3 = nul
23 control keycode 4 = Escape
26 control keycode 5 = Control_backslash
29 control keycode 6 = Control_bracketright
32 control keycode 7 = Control_asciicircum
35 control keycode 8 = Control_underscore
38 control keycode 9 = Delete
[all …]
/drivers/s390/char/
Ddefkeymap.map134 control keycode 74 = F22
135 control keycode 75 = F23
136 control keycode 76 = F24
137 control keycode 107 = Control_z # PA3
138 control keycode 108 = Control_c # PA1
139 control keycode 109 = KeyboardSignal # Clear
140 control keycode 110 = Control_d # PA2
141 control keycode 122 = F10
142 control keycode 123 = F11 # F11
143 control keycode 124 = Last_Console # F12
[all …]
/drivers/pci/
Dats.c152 u16 control, status; in pci_enable_pri() local
160 pci_read_config_word(pdev, pos + PCI_PRI_CTRL, &control); in pci_enable_pri()
162 if ((control & PCI_PRI_CTRL_ENABLE) || in pci_enable_pri()
170 control |= PCI_PRI_CTRL_ENABLE; in pci_enable_pri()
171 pci_write_config_word(pdev, pos + PCI_PRI_CTRL, control); in pci_enable_pri()
185 u16 control; in pci_disable_pri() local
192 pci_read_config_word(pdev, pos + PCI_PRI_CTRL, &control); in pci_disable_pri()
193 control &= ~PCI_PRI_CTRL_ENABLE; in pci_disable_pri()
194 pci_write_config_word(pdev, pos + PCI_PRI_CTRL, control); in pci_disable_pri()
207 u16 control; in pci_reset_pri() local
[all …]
/drivers/reset/
Dreset-ti-syscon.c78 struct ti_syscon_reset_control *control; in ti_syscon_reset_assert() local
84 control = &data->controls[id]; in ti_syscon_reset_assert()
86 if (control->flags & ASSERT_NONE) in ti_syscon_reset_assert()
89 mask = BIT(control->assert_bit); in ti_syscon_reset_assert()
90 value = (control->flags & ASSERT_SET) ? mask : 0x0; in ti_syscon_reset_assert()
92 return regmap_update_bits(data->regmap, control->assert_offset, mask, value); in ti_syscon_reset_assert()
109 struct ti_syscon_reset_control *control; in ti_syscon_reset_deassert() local
115 control = &data->controls[id]; in ti_syscon_reset_deassert()
117 if (control->flags & DEASSERT_NONE) in ti_syscon_reset_deassert()
120 mask = BIT(control->deassert_bit); in ti_syscon_reset_deassert()
[all …]
/drivers/net/irda/
Dact200l-sir.c139 u8 control[3]; in act200l_change_speed() local
150 control[0] = ACT200L_REG8 | (ACT200L_9600 & 0x0f); in act200l_change_speed()
151 control[1] = ACT200L_REG9 | ((ACT200L_9600 >> 4) & 0x0f); in act200l_change_speed()
154 control[0] = ACT200L_REG8 | (ACT200L_19200 & 0x0f); in act200l_change_speed()
155 control[1] = ACT200L_REG9 | ((ACT200L_19200 >> 4) & 0x0f); in act200l_change_speed()
158 control[0] = ACT200L_REG8 | (ACT200L_38400 & 0x0f); in act200l_change_speed()
159 control[1] = ACT200L_REG9 | ((ACT200L_38400 >> 4) & 0x0f); in act200l_change_speed()
162 control[0] = ACT200L_REG8 | (ACT200L_57600 & 0x0f); in act200l_change_speed()
163 control[1] = ACT200L_REG9 | ((ACT200L_57600 >> 4) & 0x0f); in act200l_change_speed()
166 control[0] = ACT200L_REG8 | (ACT200L_115200 & 0x0f); in act200l_change_speed()
[all …]
Dgirbil-sir.c122 u8 control[2]; in girbil_change_speed() local
142 control[0] = GIRBIL_9600; in girbil_change_speed()
145 control[0] = GIRBIL_19200; in girbil_change_speed()
148 control[0] = GIRBIL_38400; in girbil_change_speed()
151 control[0] = GIRBIL_57600; in girbil_change_speed()
154 control[0] = GIRBIL_115200; in girbil_change_speed()
157 control[1] = GIRBIL_LOAD; in girbil_change_speed()
160 sirdev_raw_write(dev, control, 2); in girbil_change_speed()
204 u8 control = GIRBIL_TXEN | GIRBIL_RXEN; in girbil_reset() local
225 sirdev_raw_write(dev, &control, 1); in girbil_reset()
/drivers/staging/iio/frequency/
Dad9834.c91 if (st->control & AD9834_MODE) { in ad9834_write()
97 st->control |= AD9834_OPBITEN; in ad9834_write()
99 st->control &= ~AD9834_OPBITEN; in ad9834_write()
101 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_write()
106 st->control |= AD9834_PIN_SW; in ad9834_write()
108 st->control &= ~AD9834_PIN_SW; in ad9834_write()
109 st->data = cpu_to_be16(AD9834_REG_CMD | st->control); in ad9834_write()
115 st->control &= ~(this_attr->address | AD9834_PIN_SW); in ad9834_write()
117 st->control |= this_attr->address; in ad9834_write()
118 st->control &= ~AD9834_PIN_SW; in ad9834_write()
[all …]
/drivers/thermal/
Darmada_thermal.c49 void __iomem *control; member
78 reg = readl_relaxed(priv->control); in armadaxp_init_sensor()
80 writel(reg, priv->control); in armadaxp_init_sensor()
85 writel(reg, priv->control); in armadaxp_init_sensor()
88 reg = readl_relaxed(priv->control); in armadaxp_init_sensor()
89 writel((reg | PMU_TDC0_SW_RST_MASK), priv->control); in armadaxp_init_sensor()
91 writel(reg, priv->control); in armadaxp_init_sensor()
104 reg = readl_relaxed(priv->control); in armada370_init_sensor()
106 writel(reg, priv->control); in armada370_init_sensor()
111 writel(reg, priv->control); in armada370_init_sensor()
[all …]
Ddove_thermal.c48 void __iomem *control; member
57 reg = readl_relaxed(priv->control); in dove_init_sensor()
70 writel(reg, priv->control); in dove_init_sensor()
73 reg = readl_relaxed(priv->control); in dove_init_sensor()
74 writel((reg | PMU_TDC0_SW_RST_MASK), priv->control); in dove_init_sensor()
75 writel(reg, priv->control); in dove_init_sensor()
102 reg = readl_relaxed(priv->control + PMU_TEMP_DIOD_CTRL1_REG); in dove_get_temp()
147 priv->control = devm_ioremap_resource(&pdev->dev, res); in dove_thermal_probe()
148 if (IS_ERR(priv->control)) in dove_thermal_probe()
149 return PTR_ERR(priv->control); in dove_thermal_probe()
/drivers/dma/
Dep93xx_dma.c306 static void m2p_set_control(struct ep93xx_dma_chan *edmac, u32 control) in m2p_set_control() argument
308 writel(control, edmac->regs + M2P_CONTROL); in m2p_set_control()
319 u32 control; in m2p_hw_setup() local
323 control = M2P_CONTROL_CH_ERROR_INT | M2P_CONTROL_ICE in m2p_hw_setup()
325 m2p_set_control(edmac, control); in m2p_hw_setup()
340 u32 control; in m2p_hw_synchronize() local
343 control = readl(edmac->regs + M2P_CONTROL); in m2p_hw_synchronize()
344 control &= ~(M2P_CONTROL_STALLINT | M2P_CONTROL_NFBINT); in m2p_hw_synchronize()
345 m2p_set_control(edmac, control); in m2p_hw_synchronize()
389 u32 control = readl(edmac->regs + M2P_CONTROL); in m2p_hw_submit() local
[all …]
/drivers/rtc/
Drtc-m48t35.c27 u8 control; member
51 u8 control; in m48t35_read_time() local
60 control = readb(&priv->reg->control); in m48t35_read_time()
61 writeb(control | M48T35_RTC_READ, &priv->reg->control); in m48t35_read_time()
68 writeb(control, &priv->reg->control); in m48t35_read_time()
95 u8 control; in m48t35_set_time() local
125 control = readb(&priv->reg->control); in m48t35_set_time()
126 writeb(control | M48T35_RTC_SET, &priv->reg->control); in m48t35_set_time()
133 writeb(control, &priv->reg->control); in m48t35_set_time()
Drtc-ds3232.c62 int control, stat; in ds3232_check_rtc_status() local
84 ret = regmap_read(ds3232->regmap, DS3232_REG_CR, &control); in ds3232_check_rtc_status()
88 control &= ~(DS3232_REG_CR_A1IE | DS3232_REG_CR_A2IE); in ds3232_check_rtc_status()
89 control |= DS3232_REG_CR_INTCN; in ds3232_check_rtc_status()
91 return regmap_write(ds3232->regmap, DS3232_REG_CR, control); in ds3232_check_rtc_status()
181 int control, stat; in ds3232_read_alarm() local
188 ret = regmap_read(ds3232->regmap, DS3232_REG_CR, &control); in ds3232_read_alarm()
200 alarm->enabled = !!(control & DS3232_REG_CR_A1IE); in ds3232_read_alarm()
215 int control, stat; in ds3232_set_alarm() local
228 ret = regmap_read(ds3232->regmap, DS3232_REG_CR, &control); in ds3232_set_alarm()
[all …]
/drivers/gpio/
Dgpio-gpio-mm.c50 unsigned char control[2]; member
73 unsigned int control; in gpiomm_gpio_direction_input() local
82 gpiommgpio->control[control_port] |= BIT(3); in gpiomm_gpio_direction_input()
85 gpiommgpio->control[control_port] |= BIT(0); in gpiomm_gpio_direction_input()
90 gpiommgpio->control[control_port] |= BIT(4); in gpiomm_gpio_direction_input()
92 gpiommgpio->control[control_port] |= BIT(1); in gpiomm_gpio_direction_input()
95 control = BIT(7) | gpiommgpio->control[control_port]; in gpiomm_gpio_direction_input()
96 outb(control, control_addr); in gpiomm_gpio_direction_input()
113 unsigned int control; in gpiomm_gpio_direction_output() local
122 gpiommgpio->control[control_port] &= ~BIT(3); in gpiomm_gpio_direction_output()
[all …]
Dgpio-104-dio-48e.c58 unsigned char control[2]; member
81 unsigned control; in dio48e_gpio_direction_input() local
90 dio48egpio->control[control_port] |= BIT(3); in dio48e_gpio_direction_input()
93 dio48egpio->control[control_port] |= BIT(0); in dio48e_gpio_direction_input()
98 dio48egpio->control[control_port] |= BIT(4); in dio48e_gpio_direction_input()
100 dio48egpio->control[control_port] |= BIT(1); in dio48e_gpio_direction_input()
103 control = BIT(7) | dio48egpio->control[control_port]; in dio48e_gpio_direction_input()
104 outb(control, control_addr); in dio48e_gpio_direction_input()
105 control &= ~BIT(7); in dio48e_gpio_direction_input()
106 outb(control, control_addr); in dio48e_gpio_direction_input()
[all …]
/drivers/ata/
Dpata_oldpiix.c69 int control = 0; in oldpiix_set_piomode() local
85 control |= 1; /* TIME */ in oldpiix_set_piomode()
87 control |= 2; /* IE */ in oldpiix_set_piomode()
91 control |= 4; /* PPE */ in oldpiix_set_piomode()
101 idetm_data |= control; in oldpiix_set_piomode()
104 idetm_data |= (control << 4); in oldpiix_set_piomode()
145 unsigned int control; in oldpiix_set_dmamode() local
153 control = 3; /* IORDY|TIME0 */ in oldpiix_set_dmamode()
156 control |= 4; /* PPE enable */ in oldpiix_set_dmamode()
163 control |= 8; /* PIO cycles in PIO0 */ in oldpiix_set_dmamode()
[all …]
Dpata_efar.c91 int control = 0; in efar_set_piomode() local
106 control |= 1; /* TIME */ in efar_set_piomode()
108 control |= 2; /* IE */ in efar_set_piomode()
111 control |= 4; /* PPE */ in efar_set_piomode()
120 master_data |= control; in efar_set_piomode()
128 master_data |= (control << 4); in efar_set_piomode()
197 unsigned int control; in efar_set_dmamode() local
204 control = 3; /* IORDY|TIME1 */ in efar_set_dmamode()
211 control |= 8; /* PIO cycles in PIO0 */ in efar_set_dmamode()
215 master_data |= control << 4; in efar_set_dmamode()
[all …]
Dpata_it8213.c80 int control = 0; in it8213_set_piomode() local
95 control |= 1; /* TIME */ in it8213_set_piomode()
97 control |= 2; /* IE */ in it8213_set_piomode()
100 control |= 4; /* PPE */ in it8213_set_piomode()
107 master_data |= control; in it8213_set_piomode()
114 master_data |= (control << 4); in it8213_set_piomode()
192 unsigned int control; in it8213_set_dmamode() local
199 control = 3; /* IORDY|TIME1 */ in it8213_set_dmamode()
206 control |= 8; /* PIO cycles in PIO0 */ in it8213_set_dmamode()
210 master_data |= control << 4; in it8213_set_dmamode()
[all …]
/drivers/net/wireless/ti/wl1251/
Dtx.c84 struct ieee80211_tx_info *control, u16 fc) in wl1251_tx_control() argument
86 *(u16 *)&tx_hdr->control = 0; in wl1251_tx_control()
88 tx_hdr->control.rate_policy = 0; in wl1251_tx_control()
91 tx_hdr->control.packet_type = 0; in wl1251_tx_control()
94 if ((control->flags & IEEE80211_TX_CTL_NO_ACK) || in wl1251_tx_control()
95 (control->flags & IEEE80211_TX_CTL_INJECTED)) { in wl1251_tx_control()
96 tx_hdr->control.rate_policy = 1; in wl1251_tx_control()
97 tx_hdr->control.ack_policy = 1; in wl1251_tx_control()
100 tx_hdr->control.tx_complete = 1; in wl1251_tx_control()
105 tx_hdr->control.qos = 1; in wl1251_tx_control()
[all …]
/drivers/net/phy/
Ddp83848.c58 int control, ret; in dp83848_config_intr() local
60 control = phy_read(phydev, DP83848_MICR); in dp83848_config_intr()
61 if (control < 0) in dp83848_config_intr()
62 return control; in dp83848_config_intr()
65 control |= DP83848_MICR_INT_OE; in dp83848_config_intr()
66 control |= DP83848_MICR_INTEN; in dp83848_config_intr()
72 control &= ~DP83848_MICR_INTEN; in dp83848_config_intr()
75 return phy_write(phydev, DP83848_MICR, control); in dp83848_config_intr()
/drivers/net/usb/
Dcdc_ether.c73 struct usb_interface *intf = info->control; in usbnet_cdc_update_filter()
156 info->control = intf; in usbnet_generic_cdc_bind()
173 info->control = usb_ifnum_to_if(dev->udev, in usbnet_generic_cdc_bind()
177 if (!info->control || !info->data) { in usbnet_generic_cdc_bind()
181 info->control, in usbnet_generic_cdc_bind()
191 if (info->control != intf) { in usbnet_generic_cdc_bind()
197 info->data = info->control; in usbnet_generic_cdc_bind()
198 info->control = intf; in usbnet_generic_cdc_bind()
204 if (info->control == info->data) in usbnet_generic_cdc_bind()
255 info->control = usb_ifnum_to_if(dev->udev, 0); in usbnet_generic_cdc_bind()
[all …]
/drivers/usb/serial/
Doti6858.c97 u8 control; /* settings of flow control lines */ member
118 && ((a)->control == (priv)->pending_setup.control) \
185 u8 control; member
231 new_setup->control = priv->pending_setup.control; in setup_line()
424 u8 frame_fmt, control; in oti6858_set_termios() local
433 control = priv->pending_setup.control; in oti6858_set_termios()
488 control &= ~CONTROL_MASK; in oti6858_set_termios()
490 control |= (CONTROL_DTR_HIGH | CONTROL_RTS_HIGH); in oti6858_set_termios()
511 || control != priv->pending_setup.control in oti6858_set_termios()
514 priv->pending_setup.control = control; in oti6858_set_termios()
[all …]
/drivers/hwmon/
Dpcf8591.c83 u8 control; member
131 i2c_smbus_write_byte_data(client, data->control, data->aout); in set_out0_output()
142 return sprintf(buf, "%u\n", !(!(data->control & PCF8591_CONTROL_AOEF))); in show_out0_enable()
160 data->control |= PCF8591_CONTROL_AOEF; in set_out0_enable()
162 data->control &= ~PCF8591_CONTROL_AOEF; in set_out0_enable()
163 i2c_smbus_write_byte(client, data->control); in set_out0_enable()
261 data->control = PCF8591_INIT_CONTROL; in pcf8591_init_client()
264 i2c_smbus_write_byte_data(client, data->control, data->aout); in pcf8591_init_client()
281 if ((data->control & PCF8591_CONTROL_AICH_MASK) != channel) { in pcf8591_read_channel()
282 data->control = (data->control & ~PCF8591_CONTROL_AICH_MASK) in pcf8591_read_channel()
[all …]

12345678910>>...27