Searched refs:channel (Results 176 - 200 of 1967) sorted by relevance

1234567891011>>

/linux-master/drivers/net/ethernet/sfc/siena/
H A Dnic.c54 bool efx_siena_event_present(struct efx_channel *channel) argument
56 return efx_event_present(efx_event(channel, channel->eventq_read_ptr));
59 void efx_siena_event_test_start(struct efx_channel *channel) argument
61 channel->event_test_cpu = -1;
63 channel->efx->type->ev_test_generate(channel);
78 struct efx_channel *channel; local
109 efx_for_each_channel(channel, efx) {
110 rc = request_irq(channel
151 struct efx_channel *channel; local
[all...]
H A Dfarch.c69 _EFX_CHANNEL_MAGIC(_EFX_CHANNEL_MAGIC_TEST, (_channel)->channel)
80 static void efx_farch_magic_event(struct efx_channel *channel, u32 magic);
399 tx_queue->channel->channel,
538 efx_rx_queue_channel(rx_queue)->channel,
606 struct efx_channel *channel; local
609 efx_for_each_channel(channel, efx) {
610 efx_for_each_channel_tx_queue(tx_queue, channel) {
633 efx_farch_magic_event(channel,
645 * are no more RX and TX events left on any channel
649 struct efx_channel *channel; local
718 struct efx_channel *channel; local
778 efx_farch_ev_read_ack(struct efx_channel *channel) argument
810 efx_farch_magic_event(struct efx_channel *channel, u32 magic) argument
826 efx_farch_handle_tx_event(struct efx_channel *channel, efx_qword_t *event) argument
866 struct efx_channel *channel = efx_rx_queue_channel(rx_queue); local
943 struct efx_channel *channel = efx_rx_queue_channel(rx_queue); local
972 efx_farch_handle_rx_event(struct efx_channel *channel, const efx_qword_t *event) argument
1086 struct efx_channel *channel; local
1106 struct efx_channel *channel; local
1135 efx_farch_handle_drain_event(struct efx_channel *channel) argument
1145 efx_farch_handle_generated_event(struct efx_channel *channel, efx_qword_t *event) argument
1176 efx_farch_handle_driver_event(struct efx_channel *channel, efx_qword_t *event) argument
1263 efx_farch_ev_process(struct efx_channel *channel, int budget) argument
1337 efx_farch_ev_probe(struct efx_channel *channel) argument
1347 efx_farch_ev_init(struct efx_channel *channel) argument
1380 efx_farch_ev_fini(struct efx_channel *channel) argument
1396 efx_farch_ev_remove(struct efx_channel *channel) argument
1402 efx_farch_ev_test_generate(struct efx_channel *channel) argument
1520 struct efx_channel *channel; local
[all...]
/linux-master/drivers/net/ethernet/sfc/falcon/
H A Dnic.c53 bool ef4_nic_event_present(struct ef4_channel *channel) argument
55 return ef4_event_present(ef4_event(channel, channel->eventq_read_ptr));
58 void ef4_nic_event_test_start(struct ef4_channel *channel) argument
60 channel->event_test_cpu = -1;
62 channel->efx->type->ev_test_generate(channel);
77 struct ef4_channel *channel; local
107 ef4_for_each_channel(channel, efx) {
108 rc = request_irq(channel
148 struct ef4_channel *channel; local
[all...]
H A Dnet_driver.h175 * @channel: The associated channel
216 struct ef4_channel *channel; member in struct:ef4_tx_queue
361 * struct ef4_channel - An Efx channel
363 * A channel comprises an event queue, at least one TX queue, at least
368 * @channel: Channel instance number
381 * @event_test_cpu: Last CPU to handle interrupt or test event for this channel
401 * @rx_queue: RX queue for this channel
402 * @tx_queue: TX queues for this channel
406 int channel; member in struct:ef4_channel
792 struct ef4_channel *channel[EF4_MAX_CHANNELS]; member in struct:ef4_nic
1195 ef4_channel_has_tx_queues(struct ef4_channel *channel) argument
1202 ef4_channel_get_tx_queue(struct ef4_channel *channel, unsigned type) argument
1234 ef4_channel_has_rx_queue(struct ef4_channel *channel) argument
1240 ef4_channel_get_rx_queue(struct ef4_channel *channel) argument
[all...]
H A Dfarch.c65 _EF4_CHANNEL_MAGIC(_EF4_CHANNEL_MAGIC_TEST, (_channel)->channel)
76 static void ef4_farch_magic_event(struct ef4_channel *channel, u32 magic);
388 tx_queue->channel->channel,
550 ef4_rx_queue_channel(rx_queue)->channel,
618 struct ef4_channel *channel; local
621 ef4_for_each_channel(channel, efx) {
622 ef4_for_each_channel_tx_queue(tx_queue, channel) {
645 ef4_farch_magic_event(channel,
657 * are no more RX and TX events left on any channel
661 struct ef4_channel *channel; local
719 struct ef4_channel *channel; local
778 ef4_farch_ev_read_ack(struct ef4_channel *channel) argument
810 ef4_farch_magic_event(struct ef4_channel *channel, u32 magic) argument
826 ef4_farch_handle_tx_event(struct ef4_channel *channel, ef4_qword_t *event) argument
871 struct ef4_channel *channel = ef4_rx_queue_channel(rx_queue); local
949 struct ef4_channel *channel = ef4_rx_queue_channel(rx_queue); local
979 ef4_farch_handle_rx_event(struct ef4_channel *channel, const ef4_qword_t *event) argument
1113 struct ef4_channel *channel; local
1142 ef4_farch_handle_drain_event(struct ef4_channel *channel) argument
1152 ef4_farch_handle_generated_event(struct ef4_channel *channel, ef4_qword_t *event) argument
1183 ef4_farch_handle_driver_event(struct ef4_channel *channel, ef4_qword_t *event) argument
1255 ef4_farch_ev_process(struct ef4_channel *channel, int budget) argument
1327 ef4_farch_ev_probe(struct ef4_channel *channel) argument
1337 ef4_farch_ev_init(struct ef4_channel *channel) argument
1364 ef4_farch_ev_fini(struct ef4_channel *channel) argument
1379 ef4_farch_ev_remove(struct ef4_channel *channel) argument
1385 ef4_farch_ev_test_generate(struct ef4_channel *channel) argument
1506 struct ef4_channel *channel; local
[all...]
/linux-master/drivers/gpu/ipu-v3/
H A Dipu-common.c202 struct ipuv3_channel *channel; local
211 list_for_each_entry(channel, &ipu->channels, list) {
212 if (channel->num == num) {
213 channel = ERR_PTR(-EBUSY);
218 channel = kzalloc(sizeof(*channel), GFP_KERNEL);
219 if (!channel) {
220 channel = ERR_PTR(-ENOMEM);
224 channel->num = num;
225 channel
235 ipu_idmac_put(struct ipuv3_channel *channel) argument
263 __ipu_idmac_reset_current_buffer(struct ipuv3_channel *channel) argument
271 ipu_idmac_set_double_buffer(struct ipuv3_channel *channel, bool doublebuffer) argument
317 ipu_idmac_lock_enable(struct ipuv3_channel *channel, int num_bursts) argument
422 ipu_idmac_get_current_buffer(struct ipuv3_channel *channel) argument
431 ipu_idmac_buffer_is_ready(struct ipuv3_channel *channel, u32 buf_num) argument
455 ipu_idmac_select_buffer(struct ipuv3_channel *channel, u32 buf_num) argument
473 ipu_idmac_clear_buffer(struct ipuv3_channel *channel, u32 buf_num) argument
501 ipu_idmac_enable_channel(struct ipuv3_channel *channel) argument
525 ipu_idmac_wait_busy(struct ipuv3_channel *channel, int ms) argument
542 ipu_idmac_disable_channel(struct ipuv3_channel *channel) argument
591 ipu_idmac_enable_watermark(struct ipuv3_channel *channel, bool enable) argument
1057 ipu_idmac_channel_irq(struct ipu_soc *ipu, struct ipuv3_channel *channel, enum ipu_channel_irq irq_type) argument
[all...]
/linux-master/drivers/power/supply/
H A Dpower_supply_hwmon.c51 static int power_supply_hwmon_temp_to_property(u32 attr, int channel) argument
53 if (channel) {
86 u32 attr, int channel)
94 return power_supply_hwmon_temp_to_property(attr, channel);
123 enum hwmon_sensor_types type, int channel)
130 attr_list->attrs[i], channel);
160 u32 attr, int channel)
166 if (power_supply_hwmon_has_input(psyhw, type, channel))
172 prop = power_supply_hwmon_to_property(type, attr, channel);
185 u32 attr, int channel,
85 power_supply_hwmon_to_property(enum hwmon_sensor_types type, u32 attr, int channel) argument
121 power_supply_hwmon_has_input( const struct power_supply_hwmon *psyhw, enum hwmon_sensor_types type, int channel) argument
158 power_supply_hwmon_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, int channel) argument
183 power_supply_hwmon_read_string(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, const char **str) argument
206 power_supply_hwmon_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *val) argument
250 power_supply_hwmon_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long val) argument
[all...]
H A Dingenic-battery.c18 struct iio_channel *channel; member in struct:ingenic_battery
34 ret = iio_read_channel_processed(bat->channel, &val->intval);
44 ret = iio_read_channel_processed(bat->channel, &val->intval);
58 /* Set the most appropriate IIO channel voltage reference scale
67 ret = iio_read_max_channel_raw(bat->channel, &max_raw);
69 dev_err(bat->dev, "Unable to read max raw channel value\n");
73 ret = iio_read_avail_channel_attribute(bat->channel, &scale_raw,
77 dev_err(bat->dev, "Unable to read channel avail scale\n");
105 ret = iio_write_channel_attribute(bat->channel,
136 bat->channel
[all...]
/linux-master/arch/x86/kvm/
H A Di8254.c54 static void pit_set_gate(struct kvm_pit *pit, int channel, u32 val) argument
56 struct kvm_kpit_channel_state *c = &pit->pit_state.channels[channel];
77 static int pit_get_gate(struct kvm_pit *pit, int channel) argument
79 return pit->pit_state.channels[channel].gate;
107 int channel)
109 if (channel == 0)
115 static int pit_get_count(struct kvm_pit *pit, int channel) argument
117 struct kvm_kpit_channel_state *c = &pit->pit_state.channels[channel];
121 t = kpit_elapsed(pit, c, channel);
142 static int pit_get_out(struct kvm_pit *pit, int channel) argument
106 kpit_elapsed(struct kvm_pit *pit, struct kvm_kpit_channel_state *c, int channel) argument
174 pit_latch_count(struct kvm_pit *pit, int channel) argument
184 pit_latch_status(struct kvm_pit *pit, int channel) argument
365 pit_load_count(struct kvm_pit *pit, int channel, u32 val) argument
403 kvm_pit_load_count(struct kvm_pit *pit, int channel, u32 val, int hpet_legacy_start) argument
444 int channel, access; local
[all...]
/linux-master/drivers/media/i2c/
H A Dtw2804.c30 u8 channel:2; member in struct:tw2804
106 static int write_reg(struct i2c_client *client, u8 reg, u8 value, u8 channel) argument
108 return i2c_smbus_write_byte_data(client, reg | (channel << 6), value);
111 static int write_regs(struct i2c_client *client, const u8 *regs, u8 channel) argument
118 regs[i] | (channel << 6), regs[i + 1]);
125 static int read_reg(struct i2c_client *client, u8 reg, u8 channel) argument
127 return i2c_smbus_read_byte_data(client, (reg) | (channel << 6));
146 v4l2_info(sd, "Channel: %d\n", state->channel);
153 * these controls. So a change made to them through one channel would
154 * require another channel t
[all...]
/linux-master/drivers/hwmon/
H A Dtmp421.c111 struct tmp421_channel channel[MAX_CHANNELS]; member in struct:tmp421_data
146 data->channel[i].temp = ret << 8;
151 data->channel[i].temp |= ret;
183 if (data->channel[i].enabled)
197 u32 attr, int channel, long *val)
208 if (!tmp421->channel[channel].enabled)
210 *val = temp_from_raw(tmp421->channel[channel].temp,
214 if (!tmp421->channel[channe
196 tmp421_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *val) argument
231 tmp421_read_string(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, const char **str) argument
241 tmp421_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long val) argument
259 tmp421_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, int channel) argument
[all...]
H A Dgxp-fan-ctrl.c58 static int gxp_pwm_write(struct device *dev, u32 attr, int channel, long val) argument
66 writeb(val, drvdata->base + channel);
74 u32 attr, int channel, long val)
78 return gxp_pwm_write(dev, attr, channel, val);
84 static int gxp_fan_read(struct device *dev, u32 attr, int channel, long *val) argument
88 *val = fan_enabled(dev, channel);
91 *val = fan_failed(dev, channel);
98 static int gxp_pwm_read(struct device *dev, u32 attr, int channel, long *val) argument
112 *val = fan_installed(dev, channel) ? readb(drvdata->base + channel)
73 gxp_fan_ctrl_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long val) argument
119 gxp_fan_ctrl_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *val) argument
132 gxp_fan_ctrl_is_visible(const void *_data, enum hwmon_sensor_types type, u32 attr, int channel) argument
[all...]
H A Demc1403.c271 static int __emc1403_get_temp(struct thermal_data *data, int channel, argument
279 ret = regmap_read(data->regmap, emc1403_temp_regs[channel][map], &regvalh);
283 reg = emc1403_temp_regs_low[channel][map];
298 static int emc1403_get_temp(struct thermal_data *data, int channel, argument
304 ret = __emc1403_get_temp(data, channel, map, val);
310 static int emc1403_get_hyst(struct thermal_data *data, int channel, argument
317 ret = __emc1403_get_temp(data, channel, map, &limit);
332 static int emc1403_temp_read(struct thermal_data *data, u32 attr, int channel, long *val) argument
342 ret = emc1403_get_temp(data, channel, ema1403_temp_map[attr], val);
345 ret = emc1403_get_hyst(data, channel, temp_mi
429 emc1403_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *val) argument
470 emc1403_set_temp(struct thermal_data *data, int channel, enum emc1403_reg_map map, long val) argument
505 emc1403_temp_write(struct thermal_data *data, u32 attr, int channel, long val) argument
543 emc1403_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long val) argument
558 emc1403_temp_is_visible(const void *_data, u32 attr, int channel) argument
601 emc1403_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, int channel) argument
[all...]
H A Dmax6620.c221 int channel)
245 int channel, long *val)
265 *val = !!(data->fault & BIT(channel));
269 val1 = (data->target[channel] >> 3) & 0xff;
270 val2 = (data->target[channel] << 5) & 0xe0;
272 target_reg[channel], val1);
278 target_reg[channel] + 1, val2);
284 data->fault &= ~BIT(channel);
290 *val = max6620_fan_div_from_reg(data->fandyn[channel]);
293 if (data->tach[channel]
220 max6620_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, int channel) argument
244 max6620_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *val) argument
321 max6620_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long val) argument
[all...]
/linux-master/drivers/iio/dac/
H A Dti-dac5571.c3 * ti-dac5571.c - Texas Instruments 8/10/12-bit 1/4-channel DAC driver
55 int (*dac5571_cmd)(struct dac5571_data *data, int channel, u16 val);
56 int (*dac5571_pwrdwn)(struct dac5571_data *data, int channel, u8 pwrdwn);
67 static int dac5571_cmd_single(struct dac5571_data *data, int channel, u16 val) argument
81 static int dac5571_cmd_quad(struct dac5571_data *data, int channel, u16 val) argument
88 data->buf[0] = (channel << DAC5571_CHANNEL_SELECT) |
97 static int dac5571_pwrdwn_single(struct dac5571_data *data, int channel, u8 pwrdwn) argument
108 static int dac5571_pwrdwn_quad(struct dac5571_data *data, int channel, u8 pwrdwn) argument
112 data->buf[0] = (channel << DAC5571_CHANNEL_SELECT) |
130 return data->powerdown_mode[chan->channel];
[all...]
H A Dmax5821.c59 return st->powerdown_mode[chan->channel];
68 st->powerdown_mode[chan->channel] = mode;
87 return sysfs_emit(buf, "%d\n", st->powerdown[chan->channel]);
97 if (chan->channel == 0)
102 if (data->powerdown[chan->channel])
103 outbuf[1] |= data->powerdown_mode[chan->channel] + 1;
123 data->powerdown[chan->channel] = powerdown;
148 .channel = (chan), \
170 int *val, int channel)
178 if ((channel !
169 max5821_get_value(struct iio_dev *indio_dev, int *val, int channel) argument
210 max5821_set_value(struct iio_dev *indio_dev, int val, int channel) argument
[all...]
H A Dstm32-dac.c41 static int stm32_dac_is_enabled(struct iio_dev *indio_dev, int channel) argument
50 if (STM32_DAC_IS_CHAN_1(channel))
114 static int stm32_dac_get_value(struct stm32_dac *dac, int channel, int *val) argument
118 if (STM32_DAC_IS_CHAN_1(channel))
126 static int stm32_dac_set_value(struct stm32_dac *dac, int channel, int val) argument
130 if (STM32_DAC_IS_CHAN_1(channel))
146 return stm32_dac_get_value(dac, chan->channel, val);
164 return stm32_dac_set_value(dac, chan->channel, val);
210 int ret = stm32_dac_is_enabled(indio_dev, chan->channel);
230 ret = stm32_dac_set_enable_state(indio_dev, chan->channel, !powerdow
283 u32 channel; local
379 int channel = indio_dev->channels[0].channel; local
[all...]
/linux-master/drivers/usb/typec/tcpm/
H A Dmaxim_contaminant.c57 static int max_contaminant_adc_to_mv(struct max_tcpci_chip *chip, enum fladc_select channel, argument
61 if ((ua_src && (channel == CC1_SCALE2 || channel == CC2_SCALE2 || channel == SBU1 ||
62 channel == SBU2)))
65 else if (!ua_src && (channel == CC1_SCALE1 || channel == CC2_SCALE1))
67 else if (!ua_src && (channel == CC1_SCALE2 || channel == CC2_SCALE2))
75 static int max_contaminant_read_adc_mv(struct max_tcpci_chip *chip, enum fladc_select channel, argument
113 max_contaminant_read_resistance_kohm(struct max_tcpci_chip *chip, enum fladc_select channel, int sleep_msec, bool raw) argument
[all...]
/linux-master/drivers/iio/adc/
H A Dstmpe-adc.c5 * 4 channel, 10/12-bit ADC
28 #define STMPE_REG_ADC_DATA_CH(channel) (0x30 + 2 * (channel))
42 #define STMPE_ADC_CH(channel) ((1 << (channel)) & 0xff)
52 /* We are allocating plus one for the temperature channel */
57 u8 channel; member in struct:stmpe_adc
70 info->channel = (u8)chan->channel;
72 if (info->channel > STMPE_ADC_LAST_N
[all...]
H A Dti-ads8344.c19 #define ADS8344_CHANNEL(channel) ((channel) << 4)
39 .channel = chan, \
49 .channel = (chan1), \
76 static int ads8344_adc_conversion(struct ads8344 *adc, int channel, argument
85 adc->tx_buf |= ADS8344_CHANNEL(channel);
102 struct iio_chan_spec const *channel, int *value,
110 *value = ads8344_adc_conversion(adc, channel->address,
111 channel->differential);
101 ads8344_read_raw(struct iio_dev *iio, struct iio_chan_spec const *channel, int *value, int *shift, long mask) argument
/linux-master/drivers/counter/
H A Dmicrochip-tcb-capture.c29 int channel[2]; member in struct:mchp_tc_data
90 regmap_read(priv->regmap, ATMEL_TC_REG(priv->channel[0], CMR), &cmr);
112 if (priv->num_channels < 2 || priv->channel[0] != 0 ||
113 priv->channel[1] != 1) {
127 regmap_write(priv->regmap, ATMEL_TC_REG(priv->channel[0], CMR), cmr);
130 regmap_write(priv->regmap, ATMEL_TC_REG(priv->channel[0], CCR),
135 ATMEL_TC_REG(priv->channel[1], CMR), cmr);
137 ATMEL_TC_REG(priv->channel[1], CCR),
152 regmap_read(priv->regmap, ATMEL_TC_REG(priv->channel[0], SR), &sr);
183 regmap_read(priv->regmap, ATMEL_TC_REG(priv->channel[
312 int channel; local
[all...]
/linux-master/drivers/clk/bcm/
H A Dclk-nsp.c48 .channel = BCM_NSP_GENPLL_PHY_CLK,
54 .channel = BCM_NSP_GENPLL_ENET_SW_CLK,
60 .channel = BCM_NSP_GENPLL_USB_PHY_REF_CLK,
66 .channel = BCM_NSP_GENPLL_IPROCFAST_CLK,
72 .channel = BCM_NSP_GENPLL_SATA1_CLK,
78 .channel = BCM_NSP_GENPLL_SATA2_CLK,
105 .channel = BCM_NSP_LCPLL0_PCIE_PHY_REF_CLK,
111 .channel = BCM_NSP_LCPLL0_SDIO_CLK,
117 .channel = BCM_NSP_LCPLL0_DDR_PHY_CLK,
/linux-master/drivers/hv/
H A Dhv_snapshot.c82 static void vss_poll_wrapper(void *channel) argument
86 tasklet_schedule(&((struct vmbus_channel *)channel)->callback_event);
255 struct vmbus_channel *channel; local
264 channel = vss_transaction.recv_channel;
270 if (channel->onchannel_callback == NULL)
281 vmbus_sendpacket(channel, recv_buffer, buf_len, req_id,
293 struct vmbus_channel *channel = context; local
304 if (vmbus_recvpacket(channel, recv_buffer, VSS_MAX_PKT_SIZE, &recvlen, &requestid)) {
360 vmbus_sendpacket(channel, recv_buffer, recvlen, requestid,
380 vss_transaction.recv_channel = srv->channel;
409 struct vmbus_channel *channel = vss_transaction.recv_channel; local
444 struct vmbus_channel *channel = vss_transaction.recv_channel; local
[all...]
/linux-master/drivers/iio/
H A Dinkern.c2 /* The industrial I/O core in kernel channel mapping
117 * __fwnode_iio_simple_xlate - translate iiospec to the IIO channel index
133 dev_err(&indio_dev->dev, "invalid channel index %llu\n",
141 static int __fwnode_iio_channel_get(struct iio_channel *channel, argument
150 "#io-channel-cells", 0,
162 channel->indio_dev = indio_dev;
170 channel->channel = &indio_dev->channels[index];
187 struct iio_channel *channel __free(kfree) =
188 kzalloc(sizeof(*channel), GFP_KERNE
375 struct iio_channel *channel; local
388 iio_channel_release(struct iio_channel *channel) argument
405 struct iio_channel *channel; local
424 struct iio_channel *channel; local
[all...]
/linux-master/include/uapi/linux/
H A Dipmi.h55 short channel; member in struct:ipmi_addr
61 * The channel is the BMC's channel number for the channel (usually
67 short channel; member in struct:ipmi_system_interface_addr
78 short channel; member in struct:ipmi_ipmb_addr
91 short channel; member in struct:ipmi_ipmb_direct_addr
117 short channel; member in struct:ipmi_lan_addr
128 * channel, This is for the system interface address type only. FIXME
135 * Used to signify an "all channel" bitmas
406 unsigned short channel; member in struct:ipmi_channel_lun_address_set
[all...]

Completed in 523 milliseconds

1234567891011>>