/linux-4.1.27/include/linux/platform_data/ |
H A D | dma-ep93xx.h | 9 * M2P channels. 24 /* M2M channels */ 35 * function. Note that this is only needed for slave/cyclic channels. For 36 * memcpy channels %NULL data should be passed. 58 * @channels: array of channels which are passed to the driver 59 * @num_channels: number of channels in the array 62 * M2P channels, contract is that even channels are for TX and odd for RX. 63 * There is no requirement for the M2M channels. 66 struct ep93xx_dma_chan_data *channels; member in struct:ep93xx_dma_platform_data 80 * channel supports given DMA direction. Only M2P channels have such 81 * limitation, for M2M channels the direction is configurable. 89 /* even channels are for TX, odd for RX */ ep93xx_dma_chan_direction()
|
H A D | dma-mv_xor.h | 18 struct mv_xor_channel_data *channels; member in struct:mv_xor_platform_data
|
H A D | dma-s3c24xx.h | 35 * @num_phy_channels: number of physical channels 36 * @channels: array of virtual channel descriptions 37 * @num_channels: number of virtual channels 41 struct s3c24xx_dma_channel *channels; member in struct:s3c24xx_dma_platdata
|
H A D | dma-dw.h | 37 * @nr_channels: Number of channels supported by hardware (max 8) 38 * @is_private: The device channels should be marked as private and not for 40 * @chan_allocation_order: Allocate channels starting from 0 or 7
|
H A D | dma-ste-dma40.h | 65 /* Maximum number of possible physical channels */ 126 * @disabled_channels: A vector, ending with -1, that marks physical channels 128 * @soft_lli_chans: A vector, that marks physical channels will use LLI by SW 132 * @num_of_soft_lli_chans: The number of channels that needs to be configured 135 * @num_of_memcpy_chans: The number of channels reserved for memcpy. 136 * @num_of_phy_chans: The number of physical channels implemented in HW. 137 * 0 means reading the number of channels from DMA HW but this is only valid 138 * for 'multiple of 4' channels, like 8.
|
H A D | leds-lp55xx.h | 50 * @num_channels : Number of LED channels 56 * @patterns : Predefined pattern data for RGB channels
|
H A D | edma.h | 23 * more than twice as many slots as event channels. 32 * The EDMA Channel Controller (CC) maps requests from channels into physical 34 * or software events, or by chaining). The two physical DMA channels provided 35 * by the TCs are thus shared by many logical channels. 114 /* alloc/free DMA channels and their dedicated parameter RAM slots */
|
H A D | at91_adc.h | 31 * @channels_used: channels in use on the board as a bitmask
|
/linux-4.1.27/tools/iio/ |
H A D | generic_buffer.c | 39 * @channels: the channel info array 40 * @num_channels: number of channels 42 * Has the side effect of filling the channels[i].location values used 45 int size_from_channelarray(struct iio_channel_info *channels, int num_channels) size_from_channelarray() argument 51 if (bytes % channels[i].bytes == 0) size_from_channelarray() 52 channels[i].location = bytes; size_from_channelarray() 54 channels[i].location = bytes - bytes%channels[i].bytes size_from_channelarray() 55 + channels[i].bytes; size_from_channelarray() 56 bytes = channels[i].location + channels[i].bytes; size_from_channelarray() 92 * @channels: information about the channels. Note 95 * @num_channels: number of channels 98 struct iio_channel_info *channels, process_scan() 104 switch (channels[k].bytes) { process_scan() 107 print2byte(*(uint16_t *)(data + channels[k].location), process_scan() 108 &channels[k]); process_scan() 111 if (!channels[k].is_signed) { process_scan() 113 (data + channels[k].location); process_scan() 115 channels[k].offset)* process_scan() 116 channels[k].scale); process_scan() 121 if (channels[k].is_signed) { process_scan() 124 channels[k].location); process_scan() 125 if ((val >> channels[k].bits_used) & 1) process_scan() 126 val = (val & channels[k].mask) | process_scan() 127 ~channels[k].mask; process_scan() 129 if (channels[k].scale == 1.0f && process_scan() 130 channels[k].offset == 0.0f) process_scan() 134 channels[k].offset)* process_scan() 135 channels[k].scale); process_scan() 167 struct iio_channel_info *channels; main() local 239 * Parse the files in scan_elements to identify what channels are main() 242 ret = build_channel_array(dev_dir_name, &channels, &num_channels); main() 283 scan_size = size_from_channelarray(channels, num_channels); main() 332 channels, main() 97 process_scan(char *data, struct iio_channel_info *channels, int num_channels) process_scan() argument
|
/linux-4.1.27/drivers/iio/ |
H A D | buffer_cb.c | 12 struct iio_channel *channels; member in struct:iio_cb_buffer 59 cb_buff->channels = iio_channel_get_all(dev); iio_channel_get_all_cb() 60 if (IS_ERR(cb_buff->channels)) { iio_channel_get_all_cb() 61 ret = PTR_ERR(cb_buff->channels); iio_channel_get_all_cb() 65 indio_dev = cb_buff->channels[0].indio_dev; iio_channel_get_all_cb() 73 chan = &cb_buff->channels[0]; iio_channel_get_all_cb() 89 iio_channel_release_all(cb_buff->channels); iio_channel_get_all_cb() 98 return iio_update_buffers(cb_buff->channels[0].indio_dev, iio_channel_start_all_cb() 106 iio_update_buffers(cb_buff->channels[0].indio_dev, iio_channel_stop_all_cb() 114 iio_channel_release_all(cb_buff->channels); iio_channel_release_all_cb() 122 return cb_buffer->channels; iio_channel_cb_get_channels()
|
H A D | inkern.c | 88 if (indio_dev->channels[i].datasheet_name && iio_chan_spec_from_name() 89 strcmp(name, indio_dev->channels[i].datasheet_name) == 0) { iio_chan_spec_from_name() 90 chan = &indio_dev->channels[i]; iio_chan_spec_from_name() 109 * channels in IIO chips. This function performs only one sanity check: 136 err = of_parse_phandle_with_args(np, "io-channels", __of_iio_channel_get() 156 channel->channel = &indio_dev->channels[index]; __of_iio_channel_get() 198 * For named iio channels, first look up the name in the of_iio_channel_get_by_name() 218 * then we can try one of its channels. of_iio_channel_get_by_name() 236 "io-channels", of_iio_channel_get_all() 432 void iio_channel_release_all(struct iio_channel *channels) iio_channel_release_all() argument 434 struct iio_channel *chan = &channels[0]; iio_channel_release_all() 440 kfree(channels); iio_channel_release_all()
|
/linux-4.1.27/arch/arm/mach-footbridge/include/mach/ |
H A D | isa-dma.h | 13 * The 21285 has two internal DMA channels; we call these 8 and 9. 14 * On CATS hardware we have an additional eight ISA dma channels
|
/linux-4.1.27/arch/arm/mach-davinci/ |
H A D | asp.h | 27 /* EDMA channels of dm644x and dm355 */ 33 /* EDMA channels of dm646x */ 38 /* EDMA channels of da850/da830 McASP0 */ 42 /* EDMA channels of da830 McASP1 */ 46 /* EDMA channels of da830 McASP2 */
|
/linux-4.1.27/drivers/hwmon/ |
H A D | iio_hwmon.c | 23 * @channels: filled with array of channels from iio 24 * @num_channels: number of channels in channels (saves counting twice) 30 struct iio_channel *channels; member in struct:iio_hwmon_state 52 ret = iio_read_channel_processed(&state->channels[sattr->index], iio_hwmon_read_val() 68 struct iio_channel *channels; iio_hwmon_probe() local 74 channels = iio_channel_get_all(dev); iio_hwmon_probe() 75 if (IS_ERR(channels)) iio_hwmon_probe() 76 return PTR_ERR(channels); iio_hwmon_probe() 84 st->channels = channels; iio_hwmon_probe() 87 while (st->channels[st->num_channels].indio_dev) iio_hwmon_probe() 106 ret = iio_get_channel_type(&st->channels[i], &type); iio_hwmon_probe() 157 iio_channel_release_all(channels); iio_hwmon_probe() 166 iio_channel_release_all(st->channels); iio_hwmon_remove()
|
H A D | adcxx.c | 12 * * c is the number of channels (1, 2, 4, 8) 55 u32 channels; member in struct:adcxx 74 if (adc->channels == 1) { adcxx_read() 166 int channels = spi_get_device_id(spi)->driver_data; adcxx_probe() local 177 adc->channels = channels; adcxx_probe() 184 for (i = 0; i < 3 + adc->channels; i++) { adcxx_probe() 217 for (i = 0; i < 3 + adc->channels; i++) adcxx_remove()
|
H A D | max6697.c | 71 int channels; member in struct:max6697_chip_data 108 .channels = 8, 116 .channels = 5, 123 .channels = 5, 130 .channels = 7, 137 .channels = 7, 144 .channels = 7, 152 .channels = 5, 160 .channels = 7, 167 .channels = 7, 174 .channels = 5, 198 for (i = 0; i < data->chip->channels; i++) { max6697_update_device() 412 if (channel >= chip->channels) max6697_is_visible() 531 int factor = chip->channels; max6697_init_chip()
|
/linux-4.1.27/drivers/staging/unisys/uislib/ |
H A D | Makefile | 12 ccflags-y += -Idrivers/staging/unisys/common-spar/include/channels
|
/linux-4.1.27/drivers/staging/unisys/visorchannel/ |
H A D | Makefile | 11 ccflags-y += -Idrivers/staging/unisys/common-spar/include/channels
|
/linux-4.1.27/arch/sh/include/asm/ |
H A D | i2c-sh7760.h | 2 * MMIO/IRQ and platform data for SH7760 I2C channels
|
/linux-4.1.27/include/linux/ |
H A D | timb_dma.h | 31 * @bytes_per_line: Number of bytes per line, this is specific for channels 32 * handling video data. For other channels this shall be left to 0. 46 * @nr_channels: Number of defined channels in the channels array. 47 * @channels: Definition of the each channel. 52 struct timb_dma_platform_data_channel channels[32]; member in struct:timb_dma_platform_data
|
H A D | mailbox_controller.h | 19 * struct mbox_chan_ops - methods to control mailbox channels 56 * struct mbox_controller - Controller of a class of communication channels 59 * @chans: Array of channels 60 * @num_chans: Number of channels in the 'chans' array. 70 * @poll: API private. Used to poll for TXDONE on all channels.
|
/linux-4.1.27/drivers/staging/iio/adc/ |
H A D | ad7280a.c | 124 struct iio_chan_spec *channels; member in struct:ad7280_state 489 st->channels = kcalloc((st->slave_num + 1) * 12 + 2, ad7280_channel_init() 490 sizeof(*st->channels), GFP_KERNEL); ad7280_channel_init() 491 if (st->channels == NULL) ad7280_channel_init() 498 st->channels[cnt].type = IIO_VOLTAGE; ad7280_channel_init() 499 st->channels[cnt].differential = 1; ad7280_channel_init() 500 st->channels[cnt].channel = (dev * 6) + ch; ad7280_channel_init() 501 st->channels[cnt].channel2 = ad7280_channel_init() 502 st->channels[cnt].channel + 1; ad7280_channel_init() 504 st->channels[cnt].type = IIO_TEMP; ad7280_channel_init() 505 st->channels[cnt].channel = (dev * 6) + ch - 6; ad7280_channel_init() 507 st->channels[cnt].indexed = 1; ad7280_channel_init() 508 st->channels[cnt].info_mask_separate = ad7280_channel_init() 510 st->channels[cnt].info_mask_shared_by_type = ad7280_channel_init() 512 st->channels[cnt].address = ad7280_channel_init() 514 st->channels[cnt].scan_index = cnt; ad7280_channel_init() 515 st->channels[cnt].scan_type.sign = 'u'; ad7280_channel_init() 516 st->channels[cnt].scan_type.realbits = 12; ad7280_channel_init() 517 st->channels[cnt].scan_type.storagebits = 32; ad7280_channel_init() 518 st->channels[cnt].scan_type.shift = 0; ad7280_channel_init() 521 st->channels[cnt].type = IIO_VOLTAGE; ad7280_channel_init() 522 st->channels[cnt].differential = 1; ad7280_channel_init() 523 st->channels[cnt].channel = 0; ad7280_channel_init() 524 st->channels[cnt].channel2 = dev * 6; ad7280_channel_init() 525 st->channels[cnt].address = AD7280A_ALL_CELLS; ad7280_channel_init() 526 st->channels[cnt].indexed = 1; ad7280_channel_init() 527 st->channels[cnt].info_mask_separate = BIT(IIO_CHAN_INFO_RAW); ad7280_channel_init() 528 st->channels[cnt].info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE); ad7280_channel_init() 529 st->channels[cnt].scan_index = cnt; ad7280_channel_init() 530 st->channels[cnt].scan_type.sign = 'u'; ad7280_channel_init() 531 st->channels[cnt].scan_type.realbits = 32; ad7280_channel_init() 532 st->channels[cnt].scan_type.storagebits = 32; ad7280_channel_init() 533 st->channels[cnt].scan_type.shift = 0; ad7280_channel_init() 535 st->channels[cnt].type = IIO_TIMESTAMP; ad7280_channel_init() 536 st->channels[cnt].channel = -1; ad7280_channel_init() 537 st->channels[cnt].scan_index = cnt; ad7280_channel_init() 538 st->channels[cnt].scan_type.sign = 's'; ad7280_channel_init() 539 st->channels[cnt].scan_type.realbits = 64; ad7280_channel_init() 540 st->channels[cnt].scan_type.storagebits = 64; ad7280_channel_init() 541 st->channels[cnt].scan_type.shift = 0; ad7280_channel_init() 685 unsigned *channels; ad7280_event_handler() local 688 channels = kcalloc(st->scan_cnt, sizeof(*channels), GFP_KERNEL); ad7280_event_handler() 689 if (channels == NULL) ad7280_event_handler() 692 ret = ad7280_read_all_channels(st, st->scan_cnt, channels); ad7280_event_handler() 697 if (((channels[i] >> 23) & 0xF) <= AD7280A_CELL_VOLTAGE_6) { ad7280_event_handler() 698 if (((channels[i] >> 11) & 0xFFF) >= ad7280_event_handler() 708 else if (((channels[i] >> 11) & 0xFFF) <= ad7280_event_handler() 719 if (((channels[i] >> 11) & 0xFFF) >= st->aux_threshhigh) ad7280_event_handler() 726 else if (((channels[i] >> 11) & 0xFFF) <= ad7280_event_handler() 738 kfree(channels); ad7280_event_handler() 899 indio_dev->channels = st->channels; ad7280_probe() 943 kfree(st->channels); ad7280_probe() 960 kfree(st->channels); ad7280_remove()
|
H A D | ad7606.h | 47 * @channels: channel specification 48 * @num_channels: number of channels 54 const struct iio_chan_spec *channels; member in struct:ad7606_chip_info
|
/linux-4.1.27/arch/arm/mach-s3c24xx/include/mach/ |
H A D | dma.h | 18 /* We use `virtual` dma channels to hide the fact we have only a limited 19 * number of DMA channels, and not of all of them (dependent on the device) 21 * the allocation of hardware channels to clients.
|
/linux-4.1.27/arch/arm/mach-ux500/ |
H A D | ste-dma40-db8500.h | 16 * Unless otherwise specified, all channels numbers are used for 18 * channels. 79 /* 56 -> 60 are channels reserved for memcpy only */
|
/linux-4.1.27/drivers/i2c/busses/ |
H A D | i2c-amd756-s4882.c | 18 * We select the channels by sending commands to the Philips 22 * module EEPROM) located on channels 1-4, and 0x4c (LM63) 23 * located on multiplexed channels 0 and 5-7. We define one 25 * channels: 26 * CPU0: virtual adapter 1, channels 1 and 0 27 * CPU1: virtual adapter 2, channels 2 and 5 28 * CPU2: virtual adapter 3, channels 3 and 6 29 * CPU3: virtual adapter 4, channels 4 and 7 69 /* We remember the last used channels combination so as to only switch 70 channels when it is really needed. This greatly reduces the SMBus 79 u8 channels) amd756_access_channel() 89 if (last_channels != channels) { amd756_access_channel() 91 mplxdata.byte = channels; amd756_access_channel() 99 last_channels = channels; amd756_access_channel() 114 /* CPU0: channels 1 and 0 enabled */ amd756_access_virt1() 124 /* CPU1: channels 2 and 5 enabled */ amd756_access_virt2() 134 /* CPU2: channels 3 and 6 enabled */ amd756_access_virt3() 144 /* CPU3: channels 4 and 7 enabled */ amd756_access_virt4() 75 amd756_access_channel(struct i2c_adapter * adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data * data, u8 channels) amd756_access_channel() argument
|
H A D | i2c-nforce2-s4985.c | 18 * We select the channels by sending commands to the Philips 22 * module EEPROM) located on channels 1-4. We define one virtual 65 /* We remember the last used channels combination so as to only switch 66 channels when it is really needed. This greatly reduces the SMBus 75 u8 channels) nforce2_access_channel() 84 if (last_channels != channels) { nforce2_access_channel() 86 mplxdata.byte = channels; nforce2_access_channel() 94 last_channels = channels; nforce2_access_channel() 71 nforce2_access_channel(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data, u8 channels) nforce2_access_channel() argument
|
/linux-4.1.27/drivers/staging/comedi/drivers/ |
H A D | pcl724.c | 43 .numofports = 1, /* 24 DIO channels */ 48 .numofports = 6, /* 144 (or 96) DIO channels */ 52 .numofports = 2, /* 48 DIO channels */ 57 .numofports = 6, /* 144 (or 96) DIO channels */ 61 .numofports = 1, /* 24 DIO channels */ 66 .numofports = 2, /* 48 DIO channels */ 70 .numofports = 2, /* 48 DIO channels */ 74 .numofports = 2, /* 48 DIO channels */
|
H A D | addi_apci_1032.c | 44 * Channels 0 to 15 are interruptible. These channels can be configured 45 * to generate interrupts based on AND/OR logic for the desired channels. 54 * - interrupt is generated when all enabled channels meet the desired 69 * data[4] : rising-edge/high level channels 70 * data[5] : falling-edge/low level channels 93 unsigned int mode1; /* rising-edge/high level channels */ 94 unsigned int mode2; /* falling-edge/low level channels */ 138 /* wipe old channels */ apci1032_cos_insn_config() 142 /* preserve unspecified channels */ apci1032_cos_insn_config() 146 /* configure specified channels */ apci1032_cos_insn_config() 156 /* wipe old channels */ apci1032_cos_insn_config() 160 /* preserve unspecified channels */ apci1032_cos_insn_config() 164 /* configure specified channels */ apci1032_cos_insn_config()
|
H A D | pcmad.c | 33 * 0 = single-ended (16 channels) 34 * 1 = differential (8 channels) 129 /* 8 differential channels */ pcmad_attach() 133 /* 16 single-ended channels */ pcmad_attach()
|
H A D | addi_apci_1564.c | 111 unsigned int mode1; /* riding-edge/high level channels */ 112 unsigned int mode2; /* falling-edge/low level channels */ 129 /* Reset the output channels and disable interrupts */ apci1564_reset() 251 * Channels 0 to 15 are interruptible. These channels can be configured 252 * to generate interrupts based on AND/OR logic for the desired channels. 261 * - interrupt is generated when all enabled channels 275 * data[4] : rising-edge/high level channels 276 * data[5] : falling-edge/low level channels 308 /* wipe old channels */ apci1564_cos_insn_config() 312 /* preserve unspecified channels */ apci1564_cos_insn_config() 316 /* configure specified channels */ apci1564_cos_insn_config() 326 /* wipe old channels */ apci1564_cos_insn_config() 330 /* preserve unspecified channels */ apci1564_cos_insn_config() 334 /* configure specified channels */ apci1564_cos_insn_config()
|
H A D | amplc_dio200.c | 60 * Each PPI is a 8255 chip providing 24 DIO channels. The DIO channels 63 * Port A - channels 0 to 7 64 * Port B - channels 8 to 15 65 * Port CL - channels 16 to 19 66 * Port CH - channels 20 to 23 70 * Each CTR is a 8254 chip providing 3 16-bit counter channels. Each 99 * channels on the chip. 140 * channels matches the number of interrupt sources. The PC214E does not 187 * to be enabled. All channels will be sampled together (convert_src ==
|
H A D | ii_pci20kc.c | 17 * -2a version has 32 on-board DIO channels. Three add-on modules 71 #define II20K_ID_PCI20006M_1 0xe2 /* 1 AO channels */ 72 #define II20K_ID_PCI20006M_2 0xe3 /* 2 AO channels */ 78 #define II20K_ID_PCI20341M_1 0x77 /* 4 AI channels */ 204 /* set number of input channels */ ii20k_ai_setup() 262 /* port 0 - channels 0-7 */ ii20k_dio_config() 274 /* port 1 - channels 8-15 */ ii20k_dio_config() 286 /* port 2 - channels 16-23 */ ii20k_dio_config() 298 /* port 3 - channels 24-31 */ ii20k_dio_config() 499 /* default all channels to input */ ii20k_attach()
|
H A D | addi_apci_16xx.c | 123 * digital i/o channels on the board. Each subdevice supports apci16xx_auto_attach() 124 * up to 32 channels. apci16xx_auto_attach() 149 /* Default all channels to inputs */ apci16xx_auto_attach()
|
H A D | ni_labpc.h | 23 #define NUM_AO_CHAN 2 /* boards have two analog output channels */ 32 unsigned ai_scan_up:1; /* can auto scan up in ai channels */
|
H A D | amplc_dio200_pci.c | 62 * Each PPI is a 8255 chip providing 24 DIO channels. The DIO channels 65 * Port A - channels 0 to 7 66 * Port B - channels 8 to 15 67 * Port CL - channels 16 to 19 68 * Port CH - channels 20 to 23 72 * Each CTR is a 8254 chip providing 3 16-bit counter channels. Each 101 * channels on the chip. 173 * channels matches the number of interrupt sources. The PC214E does not 215 * to be enabled. All channels will be sampled together (convert_src ==
|
H A D | pcmuio.c | 50 * the mask of channels that had edges detected from your channel list. Note 60 * On subdev 0, the first 24 channels channels are edge-detect channels. 62 * In the 96-channel board you have the following channels that can do edge 65 * subdev 0, channels 0-24 (first 24 channels of 1st ASIC) 66 * subdev 2, channels 0-24 (first 24 channels of 2nd ASIC) 70 * [1] - IRQ (for first ASIC, or first 24 channels) 236 * update the channels. pcmuio_dio_insn_bits() 238 * The s->io_bits mask makes sure the input channels pcmuio_dio_insn_bits() 247 /* get inverted state of the channels from the port */ pcmuio_dio_insn_bits() 250 /* return the true state of the channels */ pcmuio_dio_insn_bits()
|
H A D | cb_pcidda.c | 45 /* maximum number of ao channels for supported boards */ 87 /* Offsets for the caldac channels */ 156 /* current range settings for output channels */ 203 /* one caldac for every two dac channels */ cb_pcidda_read_eeprom() 212 /* deactivate caldacs (one caldac for every two channels) */ cb_pcidda_read_eeprom() 242 /* one caldac for every two dac channels */ cb_pcidda_write_caldac() 254 /* deactivate caldacs (one caldac for every two channels) */ cb_pcidda_write_caldac()
|
H A D | 8255_pci.c | 43 * Boards with 24 DIO channels (1 DIO subdevice): 48 * Boards with 48 DIO channels (2 DIO subdevices): 52 * Boards with 96 DIO channels (4 DIO subdevices): 239 * on the number of channels provided by the board. Each subdevice pci_8255_auto_attach() 240 * has 24 channels supported by the 8255 module. pci_8255_auto_attach()
|
H A D | cb_pcimdda.c | 28 has 6 16-bit AO channels, and the usual 8255 DIO setup. (24 channels, 32 1 jumper bank on the card, which either makes all 6 AO channels either 47 you read from any one of the AO channels. This is useful for loading 48 all 6 AO values, and then reading from any one of the AO channels on the
|
H A D | ni_daq_700.c | 30 * 16 channels and a analog input subdevice (1) with 16 single-ended channels 31 * or 8 differential channels, and three input ranges. 36 * Digital direction configuration: channels 0-7 output, 8-15 input. 116 /* The DIO channels are not configurable, fix the io_bits */ daq700_dio_insn_config()
|
/linux-4.1.27/drivers/gpu/ipu-v3/ |
H A D | ipu-dmfc.c | 118 struct dmfc_channel channels[DMFC_NUM_CHANNELS]; member in struct:ipu_dmfc_priv 253 slotmask_used |= priv->channels[i].slotmask; dmfc_find_slots() 284 priv->channels[i].slotmask = 0; ipu_dmfc_free_bandwidth() 287 if (priv->channels[i].slots > 0) { ipu_dmfc_free_bandwidth() 288 priv->channels[i].segment = ipu_dmfc_free_bandwidth() 289 dmfc_find_slots(priv, priv->channels[i].slots); ipu_dmfc_free_bandwidth() 290 priv->channels[i].slotmask = ipu_dmfc_free_bandwidth() 291 ((1 << priv->channels[i].slots) - 1) << ipu_dmfc_free_bandwidth() 292 priv->channels[i].segment; ipu_dmfc_free_bandwidth() 297 if (priv->channels[i].slots > 0) ipu_dmfc_free_bandwidth() 298 ipu_dmfc_setup_channel(&priv->channels[i], ipu_dmfc_free_bandwidth() 299 priv->channels[i].slots, ipu_dmfc_free_bandwidth() 300 priv->channels[i].segment, ipu_dmfc_free_bandwidth() 301 priv->channels[i].burstsize); ipu_dmfc_free_bandwidth() 378 return &priv->channels[i]; ipu_dmfc_get() 410 priv->channels[i].priv = priv; ipu_dmfc_init() 411 priv->channels[i].ipu = ipu; ipu_dmfc_init() 412 priv->channels[i].data = &dmfcdata[i]; ipu_dmfc_init()
|
H A D | ipu-dc.c | 112 struct ipu_dc channels[IPU_DC_NUM_CHANNELS]; member in struct:ipu_dc_priv 356 dc = &priv->channels[channel]; ipu_dc_get() 405 priv->channels[i].chno = i; ipu_dc_init() 406 priv->channels[i].priv = priv; ipu_dc_init() 407 priv->channels[i].base = priv->dc_reg + channel_offsets[i]; ipu_dc_init() 414 &priv->channels[1]); ipu_dc_init() 422 &priv->channels[5]); ipu_dc_init() 429 priv->channels[1].base + DC_WR_CH_CONF); ipu_dc_init() 431 priv->channels[5].base + DC_WR_CH_CONF); ipu_dc_init()
|
/linux-4.1.27/drivers/reset/sti/ |
H A D | reset-syscfg.c | 41 * @channels: An array of reset channels for this controller. 46 struct syscfg_reset_channel *channels; member in struct:syscfg_reset_controller 63 ch = &rst->channels[idx]; syscfg_reset_program_hw() 132 rc->channels = devm_kzalloc(dev, size, GFP_KERNEL); syscfg_reset_controller_register() 133 if (!rc->channels) syscfg_reset_controller_register() 144 const char *compatible = data->channels[i].compatible; syscfg_reset_controller_register() 150 f = devm_regmap_field_alloc(dev, map, data->channels[i].reset); syscfg_reset_controller_register() 154 rc->channels[i].reset = f; syscfg_reset_controller_register() 159 f = devm_regmap_field_alloc(dev, map, data->channels[i].ack); syscfg_reset_controller_register() 163 rc->channels[i].ack = f; syscfg_reset_controller_register()
|
H A D | reset-syscfg.h | 48 * @nr_channels: The number of reset channels in this controller. 49 * @channels: An array of reset channel descriptions. 55 const struct syscfg_reset_channel_data *channels; member in struct:syscfg_reset_controller_data
|
H A D | reset-stih407.c | 113 .channels = stih407_powerdowns, 120 .channels = stih407_softresets, 126 .channels = stih407_picophyresets,
|
H A D | reset-stih415.c | 82 .channels = stih415_powerdowns, 89 .channels = stih415_softresets,
|
/linux-4.1.27/sound/core/oss/ |
H A D | io.c | 49 int channel, channels = plugin->dst_format.channels; io_playback_transfer() local 53 for (channel = 0; channel < channels; channel++) { io_playback_transfer() 75 int channel, channels = plugin->dst_format.channels; io_capture_transfer() local 79 for (channel = 0; channel < channels; channel++) { io_capture_transfer() 92 struct snd_pcm_plugin_channel **channels) io_src_channels() 100 *channels = v; io_src_channels() 102 for (channel = 0; channel < plugin->src_format.channels; ++channel, ++v) io_src_channels() 123 format.channels = params_channels(params); snd_pcm_plugin_build_io() 126 sizeof(void *) * format.channels, snd_pcm_plugin_build_io() 90 io_src_channels(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames, struct snd_pcm_plugin_channel **channels) io_src_channels() argument
|
H A D | pcm_plugin.c | 64 size = frames * format->channels * width; snd_pcm_plugin_alloc() 79 for (channel = 0; channel < format->channels; channel++, c++) { snd_pcm_plugin_alloc() 85 c->area.step = format->channels * width; snd_pcm_plugin_alloc() 88 if (snd_BUG_ON(size % format->channels)) snd_pcm_plugin_alloc() 90 size /= format->channels; snd_pcm_plugin_alloc() 91 for (channel = 0; channel < format->channels; channel++, c++) { snd_pcm_plugin_alloc() 140 struct snd_pcm_plugin_channel **channels) snd_pcm_plugin_client_channels() 142 *channels = plugin->buf_channels; snd_pcm_plugin_client_channels() 154 unsigned int channels; snd_pcm_plugin_build() local 174 channels = src_format->channels; snd_pcm_plugin_build() 176 channels = dst_format->channels; snd_pcm_plugin_build() 177 plugin->buf_channels = kcalloc(channels, sizeof(*plugin->buf_channels), GFP_KERNEL); snd_pcm_plugin_build() 379 dstformat.channels = params_channels(slave_params); snd_pcm_plug_format_plugins() 382 srcformat.channels = params_channels(params); snd_pcm_plug_format_plugins() 390 dstformat.channels = params_channels(params); snd_pcm_plug_format_plugins() 393 srcformat.channels = params_channels(slave_params); snd_pcm_plug_format_plugins() 404 pdprintf("srcformat: format=%i, rate=%i, channels=%i\n", snd_pcm_plug_format_plugins() 407 srcformat.channels); snd_pcm_plug_format_plugins() 408 pdprintf("dstformat: format=%i, rate=%i, channels=%i\n", snd_pcm_plug_format_plugins() 411 dstformat.channels); snd_pcm_plug_format_plugins() 433 /* channels reduction */ snd_pcm_plug_format_plugins() 434 if (srcformat.channels > dstformat.channels) { snd_pcm_plug_format_plugins() 435 tmpformat.channels = dstformat.channels; snd_pcm_plug_format_plugins() 437 pdprintf("channels reduction: src=%i, dst=%i returns %i\n", srcformat.channels, tmpformat.channels, err); snd_pcm_plug_format_plugins() 512 /* channels extension */ snd_pcm_plug_format_plugins() 513 if (srcformat.channels < dstformat.channels) { snd_pcm_plug_format_plugins() 514 tmpformat.channels = dstformat.channels; snd_pcm_plug_format_plugins() 516 pdprintf("channels extension: src=%i, dst=%i returns %i\n", srcformat.channels, tmpformat.channels, err); snd_pcm_plug_format_plugins() 550 struct snd_pcm_plugin_channel **channels) snd_pcm_plug_client_channels_buf() 568 *channels = v; snd_pcm_plug_client_channels_buf() 571 nchannels = format->channels; snd_pcm_plug_client_channels_buf() 573 format->channels > 1)) snd_pcm_plug_client_channels_buf() 138 snd_pcm_plugin_client_channels(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames, struct snd_pcm_plugin_channel **channels) snd_pcm_plugin_client_channels() argument 547 snd_pcm_plug_client_channels_buf(struct snd_pcm_substream *plug, char *buf, snd_pcm_uframes_t count, struct snd_pcm_plugin_channel **channels) snd_pcm_plug_client_channels_buf() argument
|
H A D | rate.c | 50 struct rate_channel channels[0]; member in struct:rate_priv 58 for (channel = 0; channel < plugin->src_format.channels; channel++) { rate_init() 59 data->channels[channel].last_S1 = 0; rate_init() 60 data->channels[channel].last_S2 = 0; rate_init() 77 struct rate_channel *rchannels = data->channels; resample_expand() 79 for (channel = 0; channel < plugin->src_format.channels; channel++) { resample_expand() 136 struct rate_channel *rchannels = data->channels; resample_shrink() 138 for (channel = 0; channel < plugin->src_format.channels; ++channel) { resample_shrink() 264 for (channel = 0; channel < plugin->src_format.channels; channel++) { rate_transfer() 313 if (snd_BUG_ON(src_format->channels != dst_format->channels)) snd_pcm_plugin_build_rate() 315 if (snd_BUG_ON(src_format->channels <= 0)) snd_pcm_plugin_build_rate() 327 src_format->channels * sizeof(struct rate_channel), snd_pcm_plugin_build_rate()
|
H A D | copy.c | 39 nchannels = plugin->src_format.channels; copy_transfer() 78 if (snd_BUG_ON(src_format->channels != dst_format->channels)) snd_pcm_plugin_build_copy()
|
H A D | route.c | 61 nsrcs = plugin->src_format.channels; route_transfer() 62 ndsts = plugin->dst_format.channels; route_transfer() 67 /* expand to all channels */ route_transfer()
|
H A D | linear.c | 62 int nchannels = plugin->src_format.channels; convert() 100 for (channel = 0; channel < plugin->src_format.channels; channel++) { linear_transfer() 162 if (snd_BUG_ON(src_format->channels != dst_format->channels)) snd_pcm_plugin_build_linear()
|
H A D | pcm_plugin.h | 51 unsigned int channels; member in struct:snd_pcm_plugin_format 66 struct snd_pcm_plugin_channel **channels); 142 struct snd_pcm_plugin_channel **channels); 146 struct snd_pcm_plugin_channel **channels);
|
/linux-4.1.27/drivers/staging/unisys/visorchipset/ |
H A D | Makefile | 13 ccflags-y += -Idrivers/staging/unisys/common-spar/include/channels
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | gk104.h | 14 u32 channels; member in struct:gk104_fifo_impl
|
/linux-4.1.27/arch/cris/arch-v32/kernel/ |
H A D | crisksyms.c | 8 /* Functions for allocating DMA channels */
|
/linux-4.1.27/drivers/net/wireless/ti/wlcore/ |
H A D | scan.c | 138 struct conn_scan_ch_params *channels, wlcore_scan_get_channels() 200 channels[j].flags |= SCAN_CHANNEL_FLAGS_DFS; wlcore_scan_get_channels() 202 channels[j].passive_duration = wlcore_scan_get_channels() 205 channels[j].passive_duration = wlcore_scan_get_channels() 209 channels[j].min_duration = wlcore_scan_get_channels() 211 channels[j].max_duration = wlcore_scan_get_channels() 214 channels[j].tx_power_att = req_channels[i]->max_power; wlcore_scan_get_channels() 215 channels[j].channel = req_channels[i]->hw_value; wlcore_scan_get_channels() 219 (channels[j].channel >= 12) && wlcore_scan_get_channels() 220 (channels[j].channel <= 14) && wlcore_scan_get_channels() 223 /* pactive channels treated as DFS */ wlcore_scan_get_channels() 224 channels[j].flags = SCAN_CHANNEL_FLAGS_DFS; wlcore_scan_get_channels() 256 struct ieee80211_channel *channels[], wlcore_set_scan_chan_params() 265 channels, wlcore_set_scan_chan_params() 276 channels, wlcore_set_scan_chan_params() 288 channels, wlcore_set_scan_chan_params() 299 channels, wlcore_set_scan_chan_params() 311 channels, wlcore_set_scan_chan_params() 322 /* 802.11j channels are not supported yet */ wlcore_set_scan_chan_params() 347 * cfg80211 should guarantee that we don't get more channels wlcore_scan() 134 wlcore_scan_get_channels(struct wl1271 *wl, struct ieee80211_channel *req_channels[], u32 n_channels, u32 n_ssids, struct conn_scan_ch_params *channels, u32 band, bool radar, bool passive, int start, int max_channels, u8 *n_pactive_ch, int scan_type) wlcore_scan_get_channels() argument 254 wlcore_set_scan_chan_params(struct wl1271 *wl, struct wlcore_scan_channels *cfg, struct ieee80211_channel *channels[], u32 n_channels, u32 n_ssids, int scan_type) wlcore_set_scan_chan_params() argument
|
H A D | scan.h | 79 * and 18xx (which have different max 5ghz channels value). 81 * max possible 5ghz channels. 143 u8 passive[SCAN_MAX_BANDS]; /* number of passive scan channels */ 144 u8 active[SCAN_MAX_BANDS]; /* number of active scan channels */ 145 u8 dfs; /* number of dfs channels in 5ghz */ 146 u8 passive_active; /* number of passive before active channels 2.4ghz */ 162 struct ieee80211_channel *channels[],
|
/linux-4.1.27/include/linux/iio/ |
H A D | events.h | 22 * @chan: Channel number for non-differential channels. 23 * @chan1: First channel number for differential channels. 24 * @chan2: Second channel number for differential channels. 36 * IIO_MOD_EVENT_CODE() - create event identifier for modified channels 49 * IIO_UNMOD_EVENT_CODE() - create event identifier for unmodified channels
|
H A D | consumer.h | 39 * side. This typically describes the channels use within 46 * iio_channel_release() - release channels obtained via iio_channel_get 52 * iio_channel_get_all() - get all channels associated with a client 58 * channels registered as having this consumer. 64 * @chan: Array of channels to be released. 76 * So if the channels requested come from different devices this will 102 * iio_channel_cb_get_channels() - get access to the underlying channels. 106 * This function allows one to obtain information about the channels. 119 * Note raw reads from iio channels are in adc counts and hence 130 * Note raw reads from iio channels are in adc counts and hence 148 * the function will query the raw value and the channels scale and offset and 158 * Note raw writes to iio channels are in dac counts and hence 203 * unit for the channel type. E.g. millivolt for voltage channels, if you want
|
H A D | machine.h | 15 * struct iio_map - description of link between consumer and device channels
|
H A D | iio.h | 67 * @shared: Whether this attribute is shared between all channels. 117 * @_shared: Whether the attribute is shared between all channels 159 * set in this mask will be shared by all channels. 195 * by all channels of the same type. 197 * by all channels of the same direction. 199 * by all channels. 209 * @datasheet_name: A name used in in-kernel mapping of channels. It should 258 * Returns true if the channels supports reporting values for the given info 334 * channels have changed 340 * IIO channels array. 451 * channels 457 * @channels: [DRIVER] channel specification structure table 458 * @num_channels: [DRIVER] number of channels specified in @channels. 496 struct iio_chan_spec const *channels; member in struct:iio_dev
|
/linux-4.1.27/drivers/iio/light/ |
H A D | hid-sensor-als.c | 63 static void als_adjust_channel_bit_mask(struct iio_chan_spec *channels, als_adjust_channel_bit_mask() argument 66 channels[channel].scan_type.sign = 's'; als_adjust_channel_bit_mask() 68 channels[channel].scan_type.realbits = size * 8; als_adjust_channel_bit_mask() 70 channels[channel].scan_type.storagebits = sizeof(u32) * 8; als_adjust_channel_bit_mask() 221 struct iio_chan_spec *channels, als_parse_report() 233 als_adjust_channel_bit_mask(channels, CHANNEL_SCAN_INDEX_ILLUM, als_parse_report() 266 struct iio_chan_spec *channels; hid_als_probe() local 284 channels = kmemdup(als_channels, sizeof(als_channels), GFP_KERNEL); hid_als_probe() 285 if (!channels) { hid_als_probe() 286 dev_err(&pdev->dev, "failed to duplicate channels\n"); hid_als_probe() 290 ret = als_parse_report(pdev, hsdev, channels, hid_als_probe() 297 indio_dev->channels = channels; hid_als_probe() 344 kfree(indio_dev->channels); hid_als_probe() 359 kfree(indio_dev->channels); hid_als_remove() 219 als_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct als_state *st) als_parse_report() argument
|
H A D | hid-sensor-prox.c | 56 static void prox_adjust_channel_bit_mask(struct iio_chan_spec *channels, prox_adjust_channel_bit_mask() argument 59 channels[channel].scan_type.sign = 's'; prox_adjust_channel_bit_mask() 61 channels[channel].scan_type.realbits = size * 8; prox_adjust_channel_bit_mask() 63 channels[channel].scan_type.storagebits = sizeof(u32) * 8; prox_adjust_channel_bit_mask() 214 struct iio_chan_spec *channels, prox_parse_report() 226 prox_adjust_channel_bit_mask(channels, CHANNEL_SCAN_INDEX_PRESENCE, prox_parse_report() 272 indio_dev->channels = kmemdup(prox_channels, sizeof(prox_channels), hid_prox_probe() 274 if (!indio_dev->channels) { hid_prox_probe() 275 dev_err(&pdev->dev, "failed to duplicate channels\n"); hid_prox_probe() 280 (struct iio_chan_spec *)indio_dev->channels, hid_prox_probe() 333 kfree(indio_dev->channels); hid_prox_probe() 348 kfree(indio_dev->channels); hid_prox_remove() 212 prox_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct prox_state *st) prox_parse_report() argument
|
/linux-4.1.27/drivers/iio/pressure/ |
H A D | hid-sensor-press.c | 60 static void press_adjust_channel_bit_mask(struct iio_chan_spec *channels, press_adjust_channel_bit_mask() argument 63 channels[channel].scan_type.sign = 's'; press_adjust_channel_bit_mask() 65 channels[channel].scan_type.realbits = size * 8; press_adjust_channel_bit_mask() 67 channels[channel].scan_type.storagebits = sizeof(u32) * 8; press_adjust_channel_bit_mask() 218 struct iio_chan_spec *channels, press_parse_report() 230 press_adjust_channel_bit_mask(channels, CHANNEL_SCAN_INDEX_PRESSURE, press_parse_report() 263 struct iio_chan_spec *channels; hid_press_probe() local 283 channels = kmemdup(press_channels, sizeof(press_channels), GFP_KERNEL); hid_press_probe() 284 if (!channels) { hid_press_probe() 285 dev_err(&pdev->dev, "failed to duplicate channels\n"); hid_press_probe() 289 ret = press_parse_report(pdev, hsdev, channels, hid_press_probe() 296 indio_dev->channels = channels; hid_press_probe() 343 kfree(indio_dev->channels); hid_press_probe() 358 kfree(indio_dev->channels); hid_press_remove() 216 press_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct press_state *st) press_parse_report() argument
|
/linux-4.1.27/drivers/net/wireless/ti/wl12xx/ |
H A D | scan.c | 29 struct basic_scan_channel_params *channels, wl1271_get_scan_channels() 39 flags = req->channels[i]->flags; wl1271_get_scan_channels() 43 (req->channels[i]->band == band) && wl1271_get_scan_channels() 46 * channels, even if not marked as such. wl1271_get_scan_channels() 47 * In active scans, we only scan channels not wl1271_get_scan_channels() 52 req->channels[i]->band, wl1271_get_scan_channels() 53 req->channels[i]->center_freq); wl1271_get_scan_channels() 55 req->channels[i]->hw_value, wl1271_get_scan_channels() 56 req->channels[i]->flags); wl1271_get_scan_channels() 59 req->channels[i]->max_antenna_gain, wl1271_get_scan_channels() 60 req->channels[i]->max_power); wl1271_get_scan_channels() 62 req->channels[i]->beacon_found); wl1271_get_scan_channels() 65 channels[j].min_duration = wl1271_get_scan_channels() 67 channels[j].max_duration = wl1271_get_scan_channels() 70 channels[j].min_duration = wl1271_get_scan_channels() 72 channels[j].max_duration = wl1271_get_scan_channels() 75 channels[j].early_termination = 0; wl1271_get_scan_channels() 76 channels[j].tx_power_att = req->channels[i]->max_power; wl1271_get_scan_channels() 77 channels[j].channel = req->channels[i]->hw_value; wl1271_get_scan_channels() 79 memset(&channels[j].bssid_lsb, 0xff, 4); wl1271_get_scan_channels() 80 memset(&channels[j].bssid_msb, 0xff, 2); wl1271_get_scan_channels() 82 /* Mark the channels we already used */ wl1271_get_scan_channels() 131 cmd->channels, wl1271_scan_send() 366 if (!wlcore_set_scan_chan_params(wl, cfg_channels, req->channels, wl1271_scan_sched_scan_config() 27 wl1271_get_scan_channels(struct wl1271 *wl, struct cfg80211_scan_request *req, struct basic_scan_channel_params *channels, enum ieee80211_band band, bool passive) wl1271_get_scan_channels() argument
|
H A D | scan.h | 35 /* Number of scan channels in the list (maximum 30) */ 74 struct basic_scan_channel_params channels[WL1271_SCAN_MAX_CHANNELS]; member in struct:wl1271_cmd_scan 108 channels in BG band */
|
H A D | conf.h | 25 /* these are number of channels on the band divided by two, rounded up */
|
/linux-4.1.27/arch/arm/mach-ep93xx/ |
H A D | dma.c | 37 * DMA M2P channels. 40 * Memory to Internal Peripheral (M2P) channels (5 transmit + 5 receive). 65 .channels = ep93xx_dma_m2p_channels, 82 * DMA M2M channels. 84 * There are 2 M2M channels which support memcpy/memset and in addition simple 96 .channels = ep93xx_dma_m2m_channels,
|
/linux-4.1.27/drivers/net/wireless/ath/ath9k/ |
H A D | common-init.c | 36 * on 5 MHz steps, we support the channels which we know 57 * on 5 MHz steps, we support the channels which we know 128 void *channels; ath9k_cmn_init_channels_rates() local 135 channels = devm_kzalloc(ah->dev, ath9k_cmn_init_channels_rates() 137 if (!channels) ath9k_cmn_init_channels_rates() 140 memcpy(channels, ath9k_2ghz_chantable, ath9k_cmn_init_channels_rates() 142 common->sbands[IEEE80211_BAND_2GHZ].channels = channels; ath9k_cmn_init_channels_rates() 152 channels = devm_kzalloc(ah->dev, ath9k_cmn_init_channels_rates() 154 if (!channels) ath9k_cmn_init_channels_rates() 157 memcpy(channels, ath9k_5ghz_chantable, ath9k_cmn_init_channels_rates() 159 common->sbands[IEEE80211_BAND_5GHZ].channels = channels; ath9k_cmn_init_channels_rates()
|
/linux-4.1.27/arch/sh/drivers/dma/ |
H A D | dma-api.c | 86 channel = &info->channels[i]; get_dma_channel() 123 * Search all channels of all DMA controllers to find a channel which 150 struct dma_channel *channel = &info->channels[i]; request_dma_bycap() 174 channel = &info->channels[i]; dmac_search_free_channel() 267 channel = &info->channels[i]; register_chan_caps() 329 struct dma_channel *channel = info->channels + i; dma_proc_show() 363 BUG_ON((info->flags & DMAC_CHANNELS_CONFIGURED) && !info->channels); register_dmac() 371 * Don't touch pre-configured channels register_dmac() 378 info->channels = kzalloc(size, GFP_KERNEL); register_dmac() 379 if (!info->channels) register_dmac() 386 struct dma_channel *chan = &info->channels[i]; register_dmac() 413 dma_remove_sysfs_files(info->channels + i, info); unregister_dmac() 416 kfree(info->channels); unregister_dmac()
|
/linux-4.1.27/sound/firewire/fireworks/ |
H A D | fireworks_proc.c | 81 snd_iprintf(buffer, "amdtp rx pcm channels 1x: 0x%X\n", proc_read_hwinfo() 83 snd_iprintf(buffer, "amdtp tx pcm channels 1x: 0x%X\n", proc_read_hwinfo() 85 snd_iprintf(buffer, "amdtp rx pcm channels 2x: 0x%X\n", proc_read_hwinfo() 87 snd_iprintf(buffer, "amdtp tx pcm channels 2x: 0x%X\n", proc_read_hwinfo() 89 snd_iprintf(buffer, "amdtp rx pcm channels 4x: 0x%X\n", proc_read_hwinfo() 91 snd_iprintf(buffer, "amdtp tx pcm channels 4x: 0x%X\n", proc_read_hwinfo() 97 snd_iprintf(buffer, "mixer playback channels: 0x%X\n", proc_read_hwinfo() 99 snd_iprintf(buffer, "mixer capture channels: 0x%X\n", proc_read_hwinfo()
|
H A D | fireworks_pcm.c | 13 * Fireworks changes its AMDTP channels for PCM data according to its sampling 19 * The number of PCM channels for analog input and output are always fixed but 20 * the number of PCM channels for digital input and output are differed. 23 * model, the number of PCM channels for digital input has more restriction 29 * The data in AMDTP channels for blank PCM channels are zero.
|
/linux-4.1.27/arch/sh/include/mach-dreamcast/mach/ |
H A D | dma.h | 13 /* Number of DMA channels */
|
/linux-4.1.27/arch/blackfin/mach-bf561/include/mach/ |
H A D | dma.h | 13 /* [#4267] IMDMA channels have no PERIPHERAL_MAP MMR */
|
/linux-4.1.27/drivers/iio/dac/ |
H A D | ad5064.c | 52 * @shared_vref: whether the vref supply is shared between channels 56 * @num_channels: number of channels 62 const struct iio_chan_spec *channels; member in struct:ad5064_chip_info 340 .channels = ad5024_channels, 345 .channels = ad5025_channels, 350 .channels = ad5044_channels, 355 .channels = ad5045_channels, 360 .channels = ad5064_channels, 365 .channels = ad5064_channels, 370 .channels = ad5065_channels, 376 .channels = ad5024_channels, 382 .channels = ad5024_channels, 388 .channels = ad5044_channels, 394 .channels = ad5044_channels, 400 .channels = ad5064_channels, 406 .channels = ad5064_channels, 412 .channels = ad5064_channels, 418 .channels = ad5064_channels, 487 indio_dev->channels = st->chip_info->channels; ad5064_probe() 490 midscale = (1 << indio_dev->channels[0].scan_type.realbits) / 2; ad5064_probe()
|
H A D | ad5449.c | 42 * @channels: Channel specification 43 * @num_channels: Number of channels 47 const struct iio_chan_spec *channels; member in struct:ad5449_chip_info 227 .channels = ad5429_channels, 232 .channels = ad5429_channels, 237 .channels = ad5439_channels, 242 .channels = ad5439_channels, 247 .channels = ad5449_channels, 252 .channels = ad5449_channels, 304 indio_dev->channels = st->chip_info->channels; ad5449_spi_probe()
|
H A D | ad5360.c | 53 * @num_channels: number of channels 54 * @channels_per_group: number of channels per group 355 * channels offset will also change the offset for all other ad5360_write_raw() 356 * channels which share the same vref supply. */ ad5360_write_raw() 438 struct iio_chan_spec *channels; ad5360_alloc_channels() local 441 channels = kcalloc(st->chip_info->num_channels, ad5360_alloc_channels() 444 if (!channels) ad5360_alloc_channels() 448 channels[i] = st->chip_info->channel_template; ad5360_alloc_channels() 449 channels[i].channel = i; ad5360_alloc_channels() 450 channels[i].address = AD5360_CHAN_ADDR(i); ad5360_alloc_channels() 453 indio_dev->channels = channels; ad5360_alloc_channels() 517 kfree(indio_dev->channels); ad5360_probe() 529 kfree(indio_dev->channels); ad5360_remove()
|
H A D | ad5380.c | 38 * @num_channels: number of channels 349 struct iio_chan_spec *channels; ad5380_alloc_channels() local 352 channels = kcalloc(st->chip_info->num_channels, ad5380_alloc_channels() 355 if (!channels) ad5380_alloc_channels() 359 channels[i] = st->chip_info->channel_template; ad5380_alloc_channels() 360 channels[i].channel = i; ad5380_alloc_channels() 361 channels[i].address = i; ad5380_alloc_channels() 364 indio_dev->channels = channels; ad5380_alloc_channels() 441 kfree(indio_dev->channels); ad5380_probe() 453 kfree(indio_dev->channels); ad5380_remove()
|
H A D | ad5624r.h | 35 * @channels: channel spec for the DAC 40 const struct iio_chan_spec *channels; member in struct:ad5624r_chip_info
|
H A D | ad5624r_spi.c | 199 .channels = ad5624r_channels, 203 .channels = ad5624r_channels, 207 .channels = ad5644r_channels, 211 .channels = ad5644r_channels, 215 .channels = ad5664r_channels, 219 .channels = ad5664r_channels, 262 indio_dev->channels = st->chip_info->channels; ad5624r_probe()
|
H A D | ad5764.c | 42 const struct iio_chan_spec *channels; member in struct:ad5764_chip_info 108 .channels = ad5744_channels, 112 .channels = ad5744_channels, 116 .channels = ad5764_channels, 120 .channels = ad5764_channels, 298 indio_dev->channels = st->chip_info->channels; ad5764_probe()
|
H A D | ad5755.c | 84 * @channels: iio channel spec for the device 92 struct iio_chan_spec channels[AD5755_NUM_CHANNELS]; member in struct:ad5755_state 517 struct iio_chan_spec *channels = st->channels; ad5755_init_channels() local 521 channels[i] = st->chip_info->channel_template; ad5755_init_channels() 522 channels[i].channel = i; ad5755_init_channels() 523 channels[i].address = i; ad5755_init_channels() 525 channels[i].type = IIO_VOLTAGE; ad5755_init_channels() 527 channels[i].type = IIO_CURRENT; ad5755_init_channels() 530 indio_dev->channels = channels; ad5755_init_channels()
|
/linux-4.1.27/drivers/iio/accel/ |
H A D | hid-sensor-accel-3d.c | 94 static void accel_3d_adjust_channel_bit_mask(struct iio_chan_spec *channels, accel_3d_adjust_channel_bit_mask() argument 97 channels[channel].scan_type.sign = 's'; accel_3d_adjust_channel_bit_mask() 99 channels[channel].scan_type.realbits = size * 8; accel_3d_adjust_channel_bit_mask() 101 channels[channel].scan_type.storagebits = sizeof(u32) * 8; accel_3d_adjust_channel_bit_mask() 249 struct iio_chan_spec *channels, accel_3d_parse_report() 264 accel_3d_adjust_channel_bit_mask(channels, accel_3d_parse_report() 302 struct iio_chan_spec *channels; hid_accel_3d_probe() local 323 channels = kmemdup(accel_3d_channels, sizeof(accel_3d_channels), hid_accel_3d_probe() 325 if (!channels) { hid_accel_3d_probe() 326 dev_err(&pdev->dev, "failed to duplicate channels\n"); hid_accel_3d_probe() 330 ret = accel_3d_parse_report(pdev, hsdev, channels, hid_accel_3d_probe() 337 indio_dev->channels = channels; hid_accel_3d_probe() 383 kfree(indio_dev->channels); hid_accel_3d_probe() 398 kfree(indio_dev->channels); hid_accel_3d_remove() 247 accel_3d_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct accel_3d_state *st) accel_3d_parse_report() argument
|
/linux-4.1.27/drivers/iio/gyro/ |
H A D | hid-sensor-gyro-3d.c | 94 static void gyro_3d_adjust_channel_bit_mask(struct iio_chan_spec *channels, gyro_3d_adjust_channel_bit_mask() argument 97 channels[channel].scan_type.sign = 's'; gyro_3d_adjust_channel_bit_mask() 99 channels[channel].scan_type.realbits = size * 8; gyro_3d_adjust_channel_bit_mask() 101 channels[channel].scan_type.storagebits = sizeof(u32) * 8; gyro_3d_adjust_channel_bit_mask() 249 struct iio_chan_spec *channels, gyro_3d_parse_report() 264 gyro_3d_adjust_channel_bit_mask(channels, gyro_3d_parse_report() 301 struct iio_chan_spec *channels; hid_gyro_3d_probe() local 320 channels = kmemdup(gyro_3d_channels, sizeof(gyro_3d_channels), hid_gyro_3d_probe() 322 if (!channels) { hid_gyro_3d_probe() 323 dev_err(&pdev->dev, "failed to duplicate channels\n"); hid_gyro_3d_probe() 327 ret = gyro_3d_parse_report(pdev, hsdev, channels, hid_gyro_3d_probe() 334 indio_dev->channels = channels; hid_gyro_3d_probe() 380 kfree(indio_dev->channels); hid_gyro_3d_probe() 395 kfree(indio_dev->channels); hid_gyro_3d_remove() 247 gyro_3d_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct gyro_3d_state *st) gyro_3d_parse_report() argument
|
/linux-4.1.27/drivers/iio/adc/ |
H A D | max1363.c | 98 * @modemask: Bit mask corresponding to channels enabled in this mode 126 * @channels: channel specification 127 * @num_channels: number of channels 136 const struct iio_chan_spec *channels; member in struct:max1363_chip_info 152 * @requestedmask: a valid requested set of channels 1054 .channels = max1361_channels, 1064 .channels = max1361_channels, 1074 .channels = max1363_channels, 1084 .channels = max1363_channels, 1095 .channels = max1036_channels, 1105 .channels = max1036_channels, 1115 .channels = max1038_channels, 1125 .channels = max1038_channels, 1135 .channels = max1136_channels, 1145 .channels = max1136_channels, 1155 .channels = max1138_channels, 1165 .channels = max1138_channels, 1175 .channels = max1236_channels, 1185 .channels = max1236_channels, 1195 .channels = max1238_channels, 1205 .channels = max1238_channels, 1215 .channels = max1036_channels, 1225 .channels = max1036_channels, 1235 .channels = max11602_channels, 1245 .channels = max11602_channels, 1255 .channels = max1038_channels, 1265 .channels = max1038_channels, 1275 .channels = max1136_channels, 1285 .channels = max1136_channels, 1295 .channels = max11608_channels, 1305 .channels = max11608_channels, 1315 .channels = max1138_channels, 1325 .channels = max1138_channels, 1335 .channels = max1363_channels, 1345 .channels = max1363_channels, 1355 .channels = max11614_channels, 1365 .channels = max11614_channels, 1375 .channels = max1238_channels, 1385 .channels = max1238_channels, 1395 .channels = max11644_channels, 1405 .channels = max11644_channels, 1415 .channels = max11646_channels, 1425 .channels = max11646_channels, 1592 indio_dev->channels = st->chip_info->channels; max1363_probe()
|
H A D | mcp320x.c | 53 const struct iio_chan_spec *channels; member in struct:mcp320x_chip_info 238 .channels = mcp3201_channels, 243 .channels = mcp3202_channels, 248 .channels = mcp3204_channels, 253 .channels = mcp3208_channels, 258 .channels = mcp3201_channels, 263 .channels = mcp3202_channels, 268 .channels = mcp3204_channels, 273 .channels = mcp3208_channels, 299 indio_dev->channels = chip_info->channels; mcp320x_probe()
|
H A D | ti_am335x_adc.c | 35 int channels; member in struct:tiadc_device 57 step_en = ((1 << adc_dev->channels) - 1); get_adc_step_mask() 58 step_en <<= TOTAL_STEPS - adc_dev->channels + 1; get_adc_step_mask() 107 for (i = 0; i < adc_dev->channels; i++) { tiadc_step_config() 195 for_each_set_bit(bit, indio_dev->active_scan_mask, adc_dev->channels) tiadc_buffer_postenable() 292 static int tiadc_channel_init(struct iio_dev *indio_dev, int channels) tiadc_channel_init() argument 299 indio_dev->num_channels = channels; tiadc_channel_init() 300 chan_array = kcalloc(channels, tiadc_channel_init() 306 for (i = 0; i < channels; i++, chan++) { tiadc_channel_init() 319 indio_dev->channels = chan_array; tiadc_channel_init() 326 kfree(indio_dev->channels); tiadc_channels_remove() 354 (IDLE_TIMEOUT * adc_dev->channels); tiadc_read_raw() 407 int channels = 0; tiadc_probe() local 424 of_property_for_each_u32(node, "ti,adc-channels", prop, cur, val) { tiadc_probe() 425 adc_dev->channel_line[channels] = val; tiadc_probe() 426 channels++; tiadc_probe() 428 adc_dev->channels = channels; tiadc_probe() 438 err = tiadc_channel_init(indio_dev, adc_dev->channels); tiadc_probe()
|
H A D | ad7266.c | 310 const struct iio_chan_spec *channels; member in struct:ad7266_chan_info 320 .channels = ad7266_channels_u, 325 .channels = ad7266_channels_u_fixed, 330 .channels = ad7266_channels_s, 335 .channels = ad7266_channels_s_fixed, 340 .channels = ad7266_channels_diff_u, 345 .channels = ad7266_channels_diff_fixed_u, 350 .channels = ad7266_channels_diff_s, 355 .channels = ad7266_channels_diff_fixed_s, 375 indio_dev->channels = chan_info->channels; ad7266_init_channels()
|
H A D | ad7791.c | 111 const struct iio_chan_spec *channels; member in struct:ad7791_chip_info 118 .channels = ad7787_channels, 124 .channels = ad7790_channels, 129 .channels = ad7791_channels, 134 .channels = ad7790_channels, 140 .channels = ad7791_channels, 388 indio_dev->channels = st->info->channels; ad7791_probe()
|
H A D | twl4030-madc.c | 79 req.channels = BIT(chan->channel); twl4030_madc_read() 151 {1, 1}, /* CHANNEL 13 Reserved channels */ 152 {1, 1}, /* CHANNEL 14 Reseved channels */ 274 * Returns the number of successfully read channels. 278 long channels, int *buf, twl4030_madc_read_channels() 285 for_each_set_bit(i, &channels, TWL4030_MADC_MAX_CHANNELS) { twl4030_madc_read_channels() 324 * R = Prescaler ratio for input channels. twl4030_madc_read_channels() 436 r->channels, r->rbuf, r->raw); twl4030_madc_threaded_irq_handler() 439 r->func_cb(len, r->channels, r->rbuf); twl4030_madc_threaded_irq_handler() 462 r->channels, r->rbuf, r->raw); twl4030_madc_threaded_irq_handler() 465 r->func_cb(len, r->channels, r->rbuf); twl4030_madc_threaded_irq_handler() 560 * req->rbuf will be filled with read values of channels based on the 584 /* Select channels to be converted */ twl4030_madc_conversion() 585 ret = twl_i2c_write_u16(TWL4030_MODULE_MADC, req->channels, method->sel); twl4030_madc_conversion() 591 /* Select averaging for all channels if do_avg is set */ twl4030_madc_conversion() 593 ret = twl_i2c_write_u16(TWL4030_MODULE_MADC, req->channels, twl4030_madc_conversion() 629 req->channels, req->rbuf, req->raw); twl4030_madc_conversion() 645 req.channels = (1 << channel_no); twl4030_get_madc_conversion() 769 iio_dev->channels = twl4030_madc_iio_channels; twl4030_madc_probe() 276 twl4030_madc_read_channels(struct twl4030_madc_data *madc, u8 reg_base, unsigned long channels, int *buf, bool raw) twl4030_madc_read_channels() argument
|
H A D | xilinx-xadc-events.c | 22 return &indio_dev->channels[0]; xadc_event_to_channel() 25 return &indio_dev->channels[event]; xadc_event_to_channel() 27 return &indio_dev->channels[event-1]; xadc_event_to_channel() 52 * For other channels we don't know whether it is a upper or xadc_handle_event()
|
H A D | ad7923.c | 74 const struct iio_chan_spec *channels; member in struct:ad7923_chip_info 116 .channels = ad7904_channels, 120 .channels = ad7914_channels, 124 .channels = ad7924_channels, 293 indio_dev->channels = info->channels; ad7923_probe()
|
H A D | twl6030-gpadc.c | 43 * twl6030 per TRM has 17 channels, and twl6032 has 19 channels 44 * 2 test network channels are not used, 45 * 2 die temperature channels are not used either, as it is not 109 * @nchannels: number of GPADC channels 110 * @iio_channels: iio channels 144 * channels 11, 12, 13, 15 and 16 have no calibration data 145 * calibration offset is same for channels 1, 3, 4, 5 445 /* not calibrated channels have 0 in all structure members */ twl6030_channel_calibrated() 564 * The GPADC channels are calibrated using a two point calibration method. 565 * The channels measured with two known values: volt1 and volt2, and 631 * factory, for some channels, during the production test and twl6030_calibration() 793 /* No data for other channels */ twl6032_calibration() 947 indio_dev->channels = pdata->iio_channels; twl6030_gpadc_probe()
|
H A D | ad7793.c | 146 const struct iio_chan_spec *channels; member in struct:ad7793_chip_info 331 >> (st->chip_info->channels[0].scan_type.realbits - ad7793_setup() 644 .channels = ad7785_channels, 657 .channels = ad7792_channels, 670 .channels = ad7793_channels, 683 .channels = ad7794_channels, 696 .channels = ad7795_channels, 709 .channels = ad7796_channels, 717 .channels = ad7797_channels, 725 .channels = ad7798_channels, 734 .channels = ad7799_channels, 796 indio_dev->channels = st->chip_info->channels; ad7793_probe()
|
H A D | rockchip_saradc.c | 45 const struct iio_chan_spec *channels; member in struct:rockchip_saradc_data 145 .channels = rockchip_saradc_iio_channels, 157 .channels = rockchip_rk3066_tsadc_iio_channels, 272 indio_dev->channels = info->data->channels; rockchip_saradc_probe()
|
/linux-4.1.27/include/linux/i2c/ |
H A D | twl4030-madc.h | 38 * @channels: 16 bit bitmap for individual channels 46 unsigned long channels; member in struct:twl4030_madc_request 54 void (*func_cb)(int len, int channels, int *buf); 110 /* Fixed channels */
|
/linux-4.1.27/drivers/net/wireless/orinoco/ |
H A D | cfg.c | 37 int i, channels = 0; orinoco_wiphy_register() local 58 /* Only support channels allowed by the card EEPROM */ orinoco_wiphy_register() 61 priv->channels[i].center_freq = orinoco_wiphy_register() 64 channels++; orinoco_wiphy_register() 67 priv->band.channels = priv->channels; orinoco_wiphy_register() 68 priv->band.n_channels = channels; orinoco_wiphy_register()
|
/linux-4.1.27/drivers/staging/dgnc/ |
H A D | dgnc_sysfs.c | 154 "%d %s\n", bd->channels[i]->ch_portnum, dgnc_ports_state_show() 155 bd->channels[i]->ch_open_count ? "Open" : "Closed"); dgnc_ports_state_show() 172 "%d %d\n", bd->channels[i]->ch_portnum, bd->channels[i]->ch_old_baud); dgnc_ports_baud_show() 188 if (bd->channels[i]->ch_open_count) { dgnc_ports_msignals_show() 190 "%d %s %s %s %s %s %s\n", bd->channels[i]->ch_portnum, dgnc_ports_msignals_show() 191 (bd->channels[i]->ch_mostat & UART_MCR_RTS) ? "RTS" : "", dgnc_ports_msignals_show() 192 (bd->channels[i]->ch_mistat & UART_MSR_CTS) ? "CTS" : "", dgnc_ports_msignals_show() 193 (bd->channels[i]->ch_mostat & UART_MCR_DTR) ? "DTR" : "", dgnc_ports_msignals_show() 194 (bd->channels[i]->ch_mistat & UART_MSR_DSR) ? "DSR" : "", dgnc_ports_msignals_show() 195 (bd->channels[i]->ch_mistat & UART_MSR_DCD) ? "DCD" : "", dgnc_ports_msignals_show() 196 (bd->channels[i]->ch_mistat & UART_MSR_RI) ? "RI" : ""); dgnc_ports_msignals_show() 199 "%d\n", bd->channels[i]->ch_portnum); dgnc_ports_msignals_show() 217 bd->channels[i]->ch_portnum, bd->channels[i]->ch_c_iflag); dgnc_ports_iflag_show() 234 bd->channels[i]->ch_portnum, bd->channels[i]->ch_c_cflag); dgnc_ports_cflag_show() 251 bd->channels[i]->ch_portnum, bd->channels[i]->ch_c_oflag); dgnc_ports_oflag_show() 268 bd->channels[i]->ch_portnum, bd->channels[i]->ch_c_lflag); dgnc_ports_lflag_show() 285 bd->channels[i]->ch_portnum, bd->channels[i]->ch_digi.digi_flags); dgnc_ports_digi_flag_show() 302 bd->channels[i]->ch_portnum, bd->channels[i]->ch_rxcount); dgnc_ports_rxcount_show() 319 bd->channels[i]->ch_portnum, bd->channels[i]->ch_txcount); dgnc_ports_txcount_show()
|
/linux-4.1.27/drivers/isdn/sc/ |
H A D | init.c | 51 unsigned char channels; sc_init() local 72 channels = 0; sc_init() 211 channels = 23; sc_init() 219 channels = 2; sc_init() 278 interface->channels = channels; sc_init() 310 sc_adapter[cinst]->driverId = interface->channels; sc_init() 312 sc_adapter[cinst]->nChannels = channels; sc_init() 319 * Allocate channels status structures sc_init() 321 sc_adapter[cinst]->channel = kzalloc(sizeof(bchan) * channels, GFP_KERNEL); sc_init() 324 * Oops, can't alloc memory for the channels sc_init() 363 pr_info(" %s (%d) - %s %d channels IRQ %d, I/O Base 0x%x, RAM Base 0x%lx\n", sc_init() 366 boardname[model], channels, irq[b], io[b], ram[b]); sc_init()
|
H A D | hardware.h | 87 #define BRI_CHANNELS 2 /* Number of B channels */ 96 #define PRI_CHANNELS 23 /* Number of B channels */ 108 #define IS_VALID_CHANNEL(y, x) ((x > 0) && (x <= sc_adapter[y]->channels))
|
/linux-4.1.27/drivers/iio/magnetometer/ |
H A D | hid-sensor-magn-3d.c | 140 static void magn_3d_adjust_channel_bit_mask(struct iio_chan_spec *channels, magn_3d_adjust_channel_bit_mask() argument 143 channels[channel].scan_type.sign = 's'; magn_3d_adjust_channel_bit_mask() 145 channels[channel].scan_type.realbits = size * 8; magn_3d_adjust_channel_bit_mask() 147 channels[channel].scan_type.storagebits = sizeof(u32) * 8; magn_3d_adjust_channel_bit_mask() 306 struct iio_chan_spec **channels, magn_3d_parse_report() 350 "failed to allocate space for iio channels\n"); magn_3d_parse_report() 383 "failed to find any magnetic channels setup\n"); magn_3d_parse_report() 387 *channels = _channels; magn_3d_parse_report() 389 dev_dbg(&pdev->dev, "magn_3d Setup %d IIO channels\n", magn_3d_parse_report() 420 struct iio_chan_spec *channels; hid_magn_3d_probe() local 443 &channels, &chan_count, hid_magn_3d_probe() 450 indio_dev->channels = channels; hid_magn_3d_probe() 304 magn_3d_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec **channels, int *chan_count, unsigned usage_id, struct magn_3d_state *st) magn_3d_parse_report() argument
|
/linux-4.1.27/drivers/iio/orientation/ |
H A D | hid-sensor-incl-3d.c | 249 struct iio_chan_spec *channels, incl_3d_parse_report() 262 incl_3d_adjust_channel_bit_mask(&channels[CHANNEL_SCAN_INDEX_X], incl_3d_parse_report() 272 incl_3d_adjust_channel_bit_mask(&channels[CHANNEL_SCAN_INDEX_Y], incl_3d_parse_report() 282 incl_3d_adjust_channel_bit_mask(&channels[CHANNEL_SCAN_INDEX_Z], incl_3d_parse_report() 318 struct iio_chan_spec *channels; hid_incl_3d_probe() local 339 channels = kmemdup(incl_3d_channels, sizeof(incl_3d_channels), hid_incl_3d_probe() 341 if (!channels) { hid_incl_3d_probe() 342 dev_err(&pdev->dev, "failed to duplicate channels\n"); hid_incl_3d_probe() 346 ret = incl_3d_parse_report(pdev, hsdev, channels, hid_incl_3d_probe() 353 indio_dev->channels = channels; hid_incl_3d_probe() 400 kfree(indio_dev->channels); hid_incl_3d_probe() 415 kfree(indio_dev->channels); hid_incl_3d_remove() 247 incl_3d_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct incl_3d_state *st) incl_3d_parse_report() argument
|
H A D | hid-sensor-rotation.c | 179 struct iio_chan_spec *channels, dev_rot_parse_report() 193 dev_rot_adjust_channel_bit_mask(&channels[0], dev_rot_parse_report() 225 struct iio_chan_spec *channels; hid_dev_rot_probe() local 246 channels = devm_kmemdup(&pdev->dev, dev_rot_channels, hid_dev_rot_probe() 248 if (!channels) { hid_dev_rot_probe() 249 dev_err(&pdev->dev, "failed to duplicate channels\n"); hid_dev_rot_probe() 253 ret = dev_rot_parse_report(pdev, hsdev, channels, hid_dev_rot_probe() 260 indio_dev->channels = channels; hid_dev_rot_probe() 177 dev_rot_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct dev_rot_state *st) dev_rot_parse_report() argument
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | dma.h | 2 * linux/include/asm/dma.h: Defines for using and allocating dma channels. 25 * controller 1: channels 0-3, byte operations, ports 00-1F 26 * controller 2: channels 4-7, word operations, ports C0-DF 30 * - channels 0-3 are byte - addresses/counts are for physical bytes 31 * - channels 5-7 are word - addresses/counts are for physical words 42 * Address mapping for channels 0-3: 51 * Address mapping for channels 5-7: 60 * Again, channels 5-7 transfer _physical_ words (16 bits), so addresses 66 * and up to 128K bytes may be transferred on channels 5-7 in one operation. 87 #define IO_DMA1_BASE 0x00 /* 8 bit slave DMA, channels 0..3 */ 100 #define DMA1_MASK_ALL_REG 0x0F /* all-channels mask (w) */ 111 #define DMA2_MASK_ALL_REG 0xDE /* all-channels mask (w) */ 261 * NOTE 2: "count" represents _bytes_ and must be even for channels 5-7.
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | dma.h | 2 * linux/include/asm/dma.h: Defines for using and allocating dma channels. 31 * controller 1: channels 0-3, byte operations, ports 00-1F 32 * controller 2: channels 4-7, word operations, ports C0-DF 36 * - channels 0-3 are byte - addresses/counts are for physical bytes 37 * - channels 5-7 are word - addresses/counts are for physical words 48 * Address mapping for channels 0-3: 57 * Address mapping for channels 5-7: 66 * Again, channels 5-7 transfer _physical_ words (16 bits), so addresses 72 * and up to 128K bytes may be transferred on channels 5-7 in one operation. 99 #define IO_DMA1_BASE 0x00 /* 8 bit slave DMA, channels 0..3 */ 112 #define DMA1_MASK_ALL_REG 0x0F /* all-channels mask (w) */ 123 #define DMA2_MASK_ALL_REG 0xDE /* all-channels mask (w) */ 267 * NOTE 2: "count" represents _bytes_ and must be even for channels 5-7.
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | dma.h | 6 * Defines for using and allocating dma channels. 43 * controller 1: channels 0-3, byte operations, ports 00-1F 44 * controller 2: channels 4-7, word operations, ports C0-DF 48 * - channels 0-3 are byte - addresses/counts are for physical bytes 49 * - channels 5-7 are word - addresses/counts are for physical words 60 * Address mapping for channels 0-3: 69 * Address mapping for channels 5-7: 78 * Again, channels 5-7 transfer _physical_ words (16 bits), so addresses 84 * and up to 128K bytes may be transferred on channels 5-7 in one operation. 89 #define IO_DMA1_BASE 0x00 /* 8 bit slave DMA, channels 0..3 */ 102 #define DMA1_MASK_ALL_REG 0x0F /* all-channels mask (w) */ 113 #define DMA2_MASK_ALL_REG 0xDE /* all-channels mask (w) */ 294 * NOTE 2: "count" represents _bytes_ and must be even for channels 5-7.
|
/linux-4.1.27/sound/soc/sh/ |
H A D | ssi.c | 137 unsigned int bits, channels, swl, recv, i; ssi_hw_params() local 139 channels = params_channels(params); ssi_hw_params() 144 pr_debug("bits: %u channels: %u\n", bits, channels); ssi_hw_params() 153 /* channels */ ssi_hw_params() 154 if ((channels < 2) || (channels > 8) || (channels & 1)) { ssi_hw_params() 155 pr_debug("ssi: invalid number of channels\n"); ssi_hw_params() 158 ssicr |= ((channels >> 1) - 1) << CR_CHNL_SHIFT; ssi_hw_params() 178 * wires. This is usually bits_per_sample x channels/2; i.e. in ssi_hw_params() 190 swl = (bits * channels) / 2; ssi_hw_params() 327 /* the SSI can do 8-32 bit samples, with 8 possible channels */
|
/linux-4.1.27/drivers/input/touchscreen/ |
H A D | intel-mid-touch.c | 62 /* ADC channels for touch screen */ 94 #define MRSTOUCH_MAX_CHANNELS 32 /* Maximum ADC channels */ 170 * Enables YPYM for X channels and XPXM for Y channels 197 /* configure Y bias for X channels */ mrstouch_nec_adc_read() 204 /* read x+ and x- channels */ mrstouch_nec_adc_read() 209 /* configure x bias for y channels */ mrstouch_nec_adc_read() 216 /* read y+ and y- channels */ mrstouch_nec_adc_read() 221 /* configure z bias for x and y channels */ mrstouch_nec_adc_read() 228 /* read z+ and z- channels */ mrstouch_nec_adc_read() 352 /* Clear all TS channels */ mrstouch_fs_adc_read_finish() 446 * Parse ADC channels to find end of the channel configured by other ADC user 447 * NEC and MAXIM requires 4 channels and FreeScale needs 18 channels 479 * Writes touch screen channels to ADC address selection registers 530 dev_err(tsdev->dev, "Unable to parse channels\n"); mrstouch_adc_init() 552 /* configure touch screen channels */ mrstouch_adc_init()
|
/linux-4.1.27/drivers/hsi/controllers/ |
H A D | omap_ssi.h | 40 * @channels: Number of channels 48 u32 channels; member in struct:omap_ssm_ctx 69 * @channels: Current number of channels configured (1,2,4 or 8) 93 unsigned int channels; member in struct:omap_ssi_port
|
/linux-4.1.27/drivers/video/backlight/ |
H A D | aat2870_bl.c | 36 int channels; member in struct:aat2870_bl_driver_data 59 (u8)aat2870_bl->channels); aat2870_bl_enable() 168 if (pdata->channels > 0) aat2870_bl_probe() 169 aat2870_bl->channels = pdata->channels; aat2870_bl_probe() 171 aat2870_bl->channels = AAT2870_BL_CH_ALL; aat2870_bl_probe()
|
/linux-4.1.27/include/sound/ |
H A D | sb16_csp.h | 50 int (*csp_start) (struct snd_sb_csp * p, int sample_width, int channels); 64 int acc_channels; /* accepted channels */ 68 int run_channels; /* current CSP channels */
|
H A D | ad1843.h | 36 unsigned int channels); 42 unsigned int channels);
|
H A D | pcm_oss.h | 46 unsigned int channels; /* requested channels */ member in struct:snd_pcm_oss_runtime
|
/linux-4.1.27/drivers/net/wireless/ti/wl18xx/ |
H A D | scan.h | 72 u8 passive[SCAN_MAX_BANDS]; /* number of passive scan channels */ 73 u8 active[SCAN_MAX_BANDS]; /* number of active scan channels */ 74 u8 dfs; /* number of dfs channels in 5ghz */ 75 u8 passive_active; /* number of passive before active channels 2.4ghz */
|
/linux-4.1.27/arch/cris/arch-v10/lib/ |
H A D | dmacopy.c | 2 * memcpy for large blocks, using memory-memory DMA channels 6 and 7 in Etrax
|
/linux-4.1.27/sound/soc/ |
H A D | soc-utils.c | 23 int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots) snd_soc_calc_frame_size() argument 25 return sample_size * channels * tdm_slots; snd_soc_calc_frame_size() 42 int snd_soc_calc_bclk(int fs, int sample_size, int channels, int tdm_slots) snd_soc_calc_bclk() argument 44 return fs * snd_soc_calc_frame_size(sample_size, channels, tdm_slots); snd_soc_calc_bclk()
|
/linux-4.1.27/sound/usb/ |
H A D | endpoint.h | 13 unsigned int channels,
|
H A D | pcm.c | 105 if (fp->channels != subs->channels) find_format() 532 * - It has no channels for some reason. 544 if (fp->channels < 1) { match_endpoint_audioformats() 546 "%s: (fmt @%p) no channels\n", __func__, fp); match_endpoint_audioformats() 570 if (fp->channels == match->channels) match_endpoint_audioformats() 596 subs->channels, configure_sync_endpoint() 626 if (sync_fp->channels != subs->channels) { configure_sync_endpoint() 627 sync_period_bytes = (subs->period_bytes / subs->channels) * configure_sync_endpoint() 628 sync_fp->channels; configure_sync_endpoint() 636 sync_fp->channels, configure_sync_endpoint() 659 subs->channels, configure_endpoint() 701 subs->channels = params_channels(hw_params); snd_usb_hw_params() 707 "cannot set format: format = %#x, rate = %d, channels = %d\n", snd_usb_hw_params() 708 subs->pcm_format, subs->cur_rate, subs->channels); snd_usb_hw_params() 856 /* check the channels */ hw_check_valid_format() 857 if (fp->channels < ct->min || fp->channels > ct->max) { hw_check_valid_format() 858 hwc_debug(" > check: no valid channels %d (%d/%d)\n", fp->channels, ct->min, ct->max); hw_check_valid_format() 949 if (rmin > fp->channels) hw_rule_channels() 950 rmin = fp->channels; hw_rule_channels() 951 if (rmax < fp->channels) hw_rule_channels() 952 rmax = fp->channels; hw_rule_channels() 954 rmin = fp->channels; hw_rule_channels() 955 rmax = fp->channels; hw_rule_channels() 1117 /* check min/max rates and channels */ setup_hw_info() 1124 if (runtime->hw.channels_min > fp->channels) setup_hw_info() 1125 runtime->hw.channels_min = fp->channels; setup_hw_info() 1126 if (runtime->hw.channels_max < fp->channels) setup_hw_info() 1127 runtime->hw.channels_max = fp->channels; setup_hw_info() 1342 if (++subs->dsd_dop.channel % runtime->channels == 0) { fill_playback_urb_dsd_dop()
|
H A D | stream.c | 105 if (fp->channels > subs->channels_max) snd_usb_init_substream() 106 subs->channels_max = fp->channels; snd_usb_init_substream() 162 ch_bytes = fp->chmap->channels * 4; usb_chmap_ctl_tlv() 169 for (i = 0; i < fp->chmap->channels; i++, dst++) { usb_chmap_ctl_tlv() 195 for (i = 0; i < chmap->channels; i++) usb_chmap_ctl_get() 232 static struct snd_pcm_chmap_elem *convert_chmap(int channels, unsigned int bits, convert_chmap() argument 284 if (channels > ARRAY_SIZE(chmap->map)) convert_chmap() 292 chmap->channels = channels; convert_chmap() 302 if (channels == 1) convert_chmap() 305 for (; c < channels && *maps; maps++) convert_chmap() 309 for (; c < channels; c++) convert_chmap() 644 fp && fp->altsetting == 1 && fp->channels == 1 && snd_usb_parse_audio_interface() 665 fp->channels = num_channels; snd_usb_parse_audio_interface() 712 if (fp->channels != num_channels) snd_usb_parse_audio_interface() 714 fp->chmap = convert_chmap(fp->channels, chconfig, protocol); snd_usb_parse_audio_interface()
|
H A D | mixer.h | 27 #define MAX_CHANNELS 16 /* max logical channels */ 60 int channels; member in struct:usb_mixer_elem_info
|
H A D | mixer_scarlett.c | 238 uinfo->count = elem->channels; scarlett_ctl_switch_info() 250 for (i = 0; i < elem->channels; i++) { scarlett_ctl_switch_get() 269 for (i = 0; i < elem->channels; i++) { scarlett_ctl_switch_put() 294 for (i = 0; i < elem->channels; i++) scarlett_ctl_resume() 307 uinfo->count = elem->channels; scarlett_ctl_info() 321 for (i = 0; i < elem->channels; i++) { scarlett_ctl_get() 341 for (i = 0; i < elem->channels; i++) { scarlett_ctl_put() 386 uinfo->count = elem->channels; scarlett_ctl_enum_dynamic_info() 406 return snd_ctl_enum_info(uinfo, elem->channels, opt->len, scarlett_ctl_enum_info() 472 USB_DIR_IN, wValue, idx, buf, elem->channels); scarlett_ctl_meter_get() 542 int val_type, int channels, const char *name, add_new_ctl() 562 elem->channels = channels; add_new_ctl() 538 add_new_ctl(struct usb_mixer_interface *mixer, const struct snd_kcontrol_new *ncontrol, usb_mixer_elem_resume_func_t resume, int index, int offset, int num, int val_type, int channels, const char *name, const struct scarlett_mixer_elem_enum_info *opt, struct usb_mixer_elem_info **elem_ret ) add_new_ctl() argument
|
H A D | card.h | 14 unsigned int channels; /* # channels */ member in struct:audioformat 117 unsigned int channels; /* current number of channels (for hw_params callback) */ member in struct:snd_usb_substream 118 unsigned int channels_max; /* max channels in the all audiofmts */
|
/linux-4.1.27/drivers/hsi/clients/ |
H A D | hsi_char.c | 46 #define HSC_DEVS 16 /* Num of channels */ 87 * @cl_data: reference to the client data that this channels belongs to 111 * @channels: Array of channels accessible by the client 119 struct hsc_channel channels[HSC_DEVS]; member in struct:hsc_client_data 241 struct hsc_channel *channel = cl_data->channels + msg->channel; hsc_rx_completed() 261 struct hsc_channel *channel = cl_data->channels + msg->channel; hsc_tx_completed() 289 struct hsc_channel *channel = cl_data->channels; hsc_break_received() 292 /* Broadcast HWBREAK on all channels */ hsc_break_received() 362 if ((rxc->channels == 0) || (rxc->channels > HSC_DEVS)) hsc_rx_set() 364 if (rxc->channels & (rxc->channels - 1)) hsc_rx_set() 370 cl->rx_cfg.num_hw_channels = rxc->channels; hsc_rx_set() 386 rxc->channels = cl->rx_cfg.num_hw_channels; hsc_rx_get() 397 if ((txc->channels == 0) || (txc->channels > HSC_DEVS)) hsc_tx_set() 399 if (txc->channels & (txc->channels - 1)) hsc_tx_set() 405 cl->tx_cfg.num_hw_channels = txc->channels; hsc_tx_set() 420 txc->channels = cl->tx_cfg.num_hw_channels; hsc_tx_get() 612 channel = cl_data->channels + (iminor(inode) & HSC_CH_MASK); hsc_open() 724 for (i = 0, channel = cl_data->channels; i < HSC_DEVS; i++, channel++) { hsc_probe()
|
/linux-4.1.27/drivers/hsi/ |
H A D | hsi.c | 75 kfree(cl->tx_cfg.channels); hsi_client_release() 76 kfree(cl->rx_cfg.channels); hsi_client_release() 91 if (cl->tx_cfg.channels) { hsi_new_client() 92 size = cl->tx_cfg.num_channels * sizeof(*cl->tx_cfg.channels); hsi_new_client() 93 cl->tx_cfg.channels = kzalloc(size , GFP_KERNEL); hsi_new_client() 94 memcpy(cl->tx_cfg.channels, info->tx_cfg.channels, size); hsi_new_client() 98 if (cl->rx_cfg.channels) { hsi_new_client() 99 size = cl->rx_cfg.num_channels * sizeof(*cl->rx_cfg.channels); hsi_new_client() 100 cl->rx_cfg.channels = kzalloc(size , GFP_KERNEL); hsi_new_client() 101 memcpy(cl->rx_cfg.channels, info->rx_cfg.channels, size); hsi_new_client() 261 cl->rx_cfg.channels = kzalloc(cells * sizeof(channel), GFP_KERNEL); hsi_add_client_from_dt() 262 if (!cl->rx_cfg.channels) { hsi_add_client_from_dt() 267 cl->tx_cfg.channels = kzalloc(cells * sizeof(channel), GFP_KERNEL); hsi_add_client_from_dt() 268 if (!cl->tx_cfg.channels) { hsi_add_client_from_dt() 288 cl->rx_cfg.channels[i] = channel; hsi_add_client_from_dt() 289 cl->tx_cfg.channels[i] = channel; hsi_add_client_from_dt() 309 kfree(cl->tx_cfg.channels); hsi_add_client_from_dt() 311 kfree(cl->rx_cfg.channels); hsi_add_client_from_dt() 747 if (!cl->rx_cfg.channels) hsi_get_channel_id_by_name() 751 if (!strcmp(cl->rx_cfg.channels[i].name, name)) hsi_get_channel_id_by_name() 752 return cl->rx_cfg.channels[i].id; hsi_get_channel_id_by_name()
|
/linux-4.1.27/drivers/net/wireless/p54/ |
H A D | eeprom.c | 83 struct p54_channel_entry *channels; member in struct:p54_channel_list 164 tmp->channels = kzalloc(sizeof(struct ieee80211_channel) * p54_generate_band() 166 if (!tmp->channels) p54_generate_band() 175 struct p54_channel_entry *chan = &list->channels[i]; p54_generate_band() 176 struct ieee80211_channel *dest = &tmp->channels[j]; p54_generate_band() 197 priv->survey[*chan_num].channel = &tmp->channels[j]; p54_generate_band() 219 kfree(old->channels); p54_generate_band() 227 kfree(tmp->channels); p54_generate_band() 246 if (freq == list->channels[i].freq) { p54_update_channel_param() 247 entry = &list->channels[i]; p54_update_channel_param() 264 entry = &list->channels[i]; p54_update_channel_param() 334 "You may not be able to use all channels.\n"); p54_generate_channel_lists() 355 list->channels = kzalloc(sizeof(struct p54_channel_entry) * p54_generate_channel_lists() 357 if (!list->channels) { p54_generate_channel_lists() 395 sort(list->channels, list->entries, sizeof(struct p54_channel_entry), p54_generate_channel_lists() 410 kfree(list->channels); p54_generate_channel_lists() 429 curve_data->channels; p54_convert_rev0() 438 priv->curve_data->entries = curve_data->channels; p54_convert_rev0() 446 for (i = 0; i < curve_data->channels; i++) { p54_convert_rev0() 481 curve_data->channels; p54_convert_rev1() 490 priv->curve_data->entries = curve_data->channels; p54_convert_rev1() 498 for (i = 0; i < curve_data->channels; i++) { p54_convert_rev1()
|
/linux-4.1.27/drivers/dma/ |
H A D | s3c24xx-dma.c | 20 * that can be routed to any of the 4 to 8 hardware-channels. 22 * Therefore on these DMA controllers the number of channels 98 * for a DMA source. Instead only specific channels are valid. 99 * All of these SoCs have 4 physical channels and the number of request 107 * SDI is valid on channels 0, 2 and 3 - with varying hw request sources. 136 * channel to become available (only pertains to memcpy channels) 183 * struct s3c24xx_dma_phy - holder for the physical channels 236 * @phy_chans: array of data for the physical channels 266 struct s3c24xx_dma_channel *cdata = &pdata->channels[s3cchan->id]; s3c24xx_dma_phy_valid() 269 /* every phy is valid for memcopy channels */ s3c24xx_dma_phy_valid() 273 /* On newer variants all phys can be used for all virtual channels */ s3c24xx_dma_phy_valid() 300 cdata = &pdata->channels[s3cchan->id]; s3c24xx_dma_get_phy() 472 &pdata->channels[s3cchan->id]; s3c24xx_dma_start_next_sg() 598 list_for_each_entry(p, &s3cdma->memcpy.channels, vc.chan.device_node) s3c24xx_dma_phy_free() 605 list_for_each_entry(p, &s3cdma->slave.channels, s3c24xx_dma_phy_free() 665 * Therefore interrupts on channels not bound to a virtual channel s3c24xx_dma_irq() 889 struct s3c24xx_dma_channel *cdata = &pdata->channels[s3cchan->id]; s3c24xx_dma_prep_dma_cyclic() 987 struct s3c24xx_dma_channel *cdata = &pdata->channels[s3cchan->id]; s3c24xx_dma_prep_slave_sg() 1090 * Initialise the DMAC memcpy/slave channels. 1094 struct dma_device *dmadev, unsigned int channels, bool slave) s3c24xx_dma_init_virtual_channels() 1099 INIT_LIST_HEAD(&dmadev->channels); s3c24xx_dma_init_virtual_channels() 1102 * Register as many many memcpy as we have physical channels, s3c24xx_dma_init_virtual_channels() 1106 for (i = 0; i < channels; i++) { s3c24xx_dma_init_virtual_channels() 1135 dev_info(dmadev->dev, "initialized %d virtual %s channels\n", s3c24xx_dma_init_virtual_channels() 1146 next, &dmadev->channels, vc.chan.device_node) s3c24xx_dma_free_virtual_channels() 1207 dev_err(&pdev->dev, "to many dma channels %d, max %d\n", s3c24xx_dma_probe() 1236 /* acquire irqs and clocks for all physical channels */ s3c24xx_dma_probe() 1310 /* Register as many memcpy channels as there are physical channels */ s3c24xx_dma_probe() 1315 "%s failed to enumerate memcpy channels - %d\n", s3c24xx_dma_probe() 1320 /* Register slave channels */ s3c24xx_dma_probe() 1325 "%s failed to enumerate slave channels - %d\n", s3c24xx_dma_probe() 1347 dev_info(&pdev->dev, "Loaded dma driver with %d physical channels\n", s3c24xx_dma_probe() 1093 s3c24xx_dma_init_virtual_channels(struct s3c24xx_dma_engine *s3cdma, struct dma_device *dmadev, unsigned int channels, bool slave) s3c24xx_dma_init_virtual_channels() argument
|
H A D | dmaengine.c | 38 * Each device has a channels list, which runs unlocked but is never modified 355 * dma_issue_pending_all - flush all pending operations across all channels 366 list_for_each_entry(chan, &device->channels, device_node) dma_issue_pending_all() 388 * If some channels are close to the given cpu, the one with the lowest 404 list_for_each_entry(chan, &device->channels, device_node) { min_chan() 426 * dma_channel_rebalance - redistribute the available channels 430 * multi-tasking channels) in the non-SMP case. Must be called under 448 list_for_each_entry(chan, &device->channels, device_node) dma_channel_rebalance() 456 /* redistribute available channels */ for_each_dma_cap_mask() 511 /* devices with multiple channels need special handling as we need to private_candidate() 512 * ensure that all channels are either private or public. private_candidate() 515 list_for_each_entry(chan, &dev->channels, device_node) { private_candidate() 516 /* some channels are already publicly allocated */ private_candidate() 521 list_for_each_entry(chan, &dev->channels, device_node) { private_candidate() 599 * @fn: optional callback to disposition available channels 714 /* try to grab channels */ dmaengine_get() 718 list_for_each_entry(chan, &device->channels, device_node) { dmaengine_get() 730 /* if this is the first reference and there were channels dmaengine_get() 731 * waiting we need to rebalance to get those channels dmaengine_get() 755 list_for_each_entry(chan, &device->channels, device_node) dmaengine_put() 764 /* A device that satisfies this test has channels that will never cause device_has_all_tx_types() 869 /* represent channels in sysfs. Probably want devs too */ dma_async_device_register() 870 list_for_each_entry(chan, &device->channels, device_node) { dma_async_device_register() 905 /* take references on public channels */ dma_async_device_register() 907 list_for_each_entry(chan, &device->channels, device_node) { dma_async_device_register() 908 /* if clients are already waiting for channels we need dma_async_device_register() 913 * channel as the remaining channels are dma_async_device_register() 939 list_for_each_entry(chan, &device->channels, device_node) { dma_async_device_register() 957 * references to prevent it being called while channels are in use. 968 list_for_each_entry(chan, &device->channels, device_node) { dma_async_device_unregister()
|
H A D | amba-pl08x.c | 28 * The PL080 has 8 channels available for simultaneous use, and the PL081 29 * has only two channels. So on these DMA controllers the number of channels 107 * @channels: the number of channels available in this variant 109 * @nomadik: whether the channels have Nomadik security extension bits 117 u8 channels; member in struct:vendor_data 140 * struct pl08x_phy_chan - holder for the physical channels 208 * channel to become available (only pertains to memcpy channels) 254 * @phy_chans: array of data for the physical channels 608 for (i = 0; i < pl08x->vd->channels; i++) { pl08x_get_phy_channel() 622 if (i == pl08x->vd->channels) { pl08x_get_phy_channel() 694 list_for_each_entry(p, &pl08x->memcpy.channels, vc.chan.device_node) pl08x_phy_free() 701 list_for_each_entry(p, &pl08x->slave.channels, vc.chan.device_node) pl08x_phy_free() 1733 * Anything succeeds on channels with no physical allocation and pl08x_pause() 1756 * Anything succeeds on channels with no physical allocation and pl08x_resume() 1778 /* Reject channels for devices not bound to this driver */ pl08x_filter_id() 1794 * TODO: turn this bit on/off depending on the number of physical channels 1825 for (i = 0; i < pl08x->vd->channels; i++) { pl08x_irq() 1880 * Initialise the DMAC memcpy/slave channels. 1884 struct dma_device *dmadev, unsigned int channels, bool slave) pl08x_dma_init_virtual_channels() 1889 INIT_LIST_HEAD(&dmadev->channels); pl08x_dma_init_virtual_channels() 1892 * Register as many many memcpy as we have physical channels, pl08x_dma_init_virtual_channels() 1896 for (i = 0; i < channels; i++) { pl08x_dma_init_virtual_channels() 1926 dev_info(&pl08x->adev->dev, "initialized %d virtual %s channels\n", pl08x_dma_init_virtual_channels() 1937 next, &dmadev->channels, vc.chan.device_node) { pl08x_free_virtual_channels() 1969 seq_printf(s, "PL08x physical channels:\n"); pl08x_debugfs_show() 1972 for (i = 0; i < pl08x->vd->channels; i++) { pl08x_debugfs_show() 1988 seq_printf(s, "\nPL08x virtual memcpy channels:\n"); pl08x_debugfs_show() 1991 list_for_each_entry(chan, &pl08x->memcpy.channels, vc.chan.device_node) { pl08x_debugfs_show() 1996 seq_printf(s, "\nPL08x virtual slave channels:\n"); pl08x_debugfs_show() 1999 list_for_each_entry(chan, &pl08x->slave.channels, vc.chan.device_node) { pl08x_debugfs_show() 2147 /* Initialize physical channels */ pl08x_probe() 2148 pl08x->phy_chans = kzalloc((vd->channels * sizeof(*pl08x->phy_chans)), pl08x_probe() 2158 for (i = 0; i < vd->channels; i++) { pl08x_probe() 2167 * Nomadik variants can have channels that are locked pl08x_probe() 2168 * down for the secure world only. Lock up these channels pl08x_probe() 2185 /* Register as many memcpy channels as there are physical channels */ pl08x_probe() 2187 pl08x->vd->channels, false); pl08x_probe() 2190 "%s failed to enumerate memcpy channels - %d\n", pl08x_probe() 2195 /* Register slave channels */ pl08x_probe() 2200 "%s failed to enumerate slave channels - %d\n", pl08x_probe() 2251 /* PL080 has 8 channels and the PL080 have just 2 */ 2254 .channels = 8, 2261 .channels = 8, 2269 .channels = 8, 2276 .channels = 2, 1883 pl08x_dma_init_virtual_channels(struct pl08x_driver_data *pl08x, struct dma_device *dmadev, unsigned int channels, bool slave) pl08x_dma_init_virtual_channels() argument
|
H A D | mic_x100_dma.h | 36 * MIC has a total of 8 dma channels. 37 * Four channels are assigned for host SW use & the remaining for MIC SW. 50 * DCR - bits 0, 2, 4, 6, 8, 10, 12, 14 - enable bits for channels 0 to 7 51 * bits 1, 3, 5, 7, 9, 11, 13, 15 - owner bits for channels 0 to 7 52 * DCAR - bit 24 & 25 interrupt masks for mic owned & host owned channels 133 * @mic_ch: dma channels
|
H A D | sirf-dma.c | 86 struct sirfsoc_dma_chan channels[SIRFSOC_DMA_CHANNELS]; member in struct:sirfsoc_dma 109 return container_of(schan, struct sirfsoc_dma, channels[c->chan_id]); dma_chan_to_sirfsoc_dma() 169 schan = &sdma->channels[ch]; sirfsoc_dma_irq() 205 schan = &sdma->channels[i]; sirfsoc_dma_process_completed() 609 * The DMA controller consists of 16 independent DMA channels. 640 return dma_get_slave_channel(&sdma->channels[request].chan); of_dma_sirfsoc_xlate() 721 INIT_LIST_HEAD(&dma->channels); sirfsoc_dma_probe() 728 schan = &sdma->channels[i]; sirfsoc_dma_probe() 740 list_add_tail(&schan->chan.device_node, &dma->channels); sirfsoc_dma_probe() 832 * so we need to save registers for active channels sirfsoc_dma_pm_suspend() 835 schan = &sdma->channels[ch]; sirfsoc_dma_pm_suspend() 868 schan = &sdma->channels[ch]; sirfsoc_dma_pm_resume()
|
/linux-4.1.27/drivers/media/i2c/ |
H A D | ks0127.h | 27 /* input channels */ 42 /* output channels */
|
H A D | tlv320aic23b.c | 100 tlv320aic23b_write(sd, 0, 0x180); /* mute both channels */ tlv320aic23b_s_ctrl() 101 /* set gain on both channels to +3.0 dB */ tlv320aic23b_s_ctrl() 179 /* set gain on both channels to +3.0 dB */ tlv320aic23b_probe()
|
/linux-4.1.27/drivers/net/ethernet/ti/ |
H A D | cpsw.h | 30 u32 channels; /* number of cpdma channels (symmetric) */ member in struct:cpsw_platform_data
|
/linux-4.1.27/include/uapi/linux/hsi/ |
H A D | hsi_char.h | 53 uint32_t channels; member in struct:hsc_rx_config 58 uint32_t channels; member in struct:hsc_tx_config
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | mac_psc.h | 6 * channels. 8 * The first seven DMA channels appear to be "one-shot" and are actually 9 * sets of two channels; one member is active while the other is being 11 * The one-shot channels are grouped together and are: 21 * The remaining two channels are handled somewhat differently. They appear 67 * DMA channels. Add +0x10 for the second channel in the set. 69 * then flip channels and do the whole thing again. 181 * channels are 1 bit wide.
|
/linux-4.1.27/sound/pci/au88x0/ |
H A D | au88x0_wt.h | 11 /* WT channels are grouped in banks. Each bank has 0x20 channels. */
|
/linux-4.1.27/sound/soc/codecs/ |
H A D | ad193x.c | 129 unsigned int channels; ad193x_set_tdm_slot() local 133 channels = AD193X_2_CHANNELS; ad193x_set_tdm_slot() 136 channels = AD193X_4_CHANNELS; ad193x_set_tdm_slot() 139 channels = AD193X_8_CHANNELS; ad193x_set_tdm_slot() 142 channels = AD193X_16_CHANNELS; ad193x_set_tdm_slot() 149 AD193X_DAC_CHAN_MASK, channels << AD193X_DAC_CHAN_SHFT); ad193x_set_tdm_slot() 151 AD193X_ADC_CHAN_MASK, channels << AD193X_ADC_CHAN_SHFT); ad193x_set_tdm_slot() 332 /* unmute dac channels */ ad193x_codec_probe()
|
/linux-4.1.27/sound/usb/6fire/ |
H A D | pcm.h | 62 int in_n_analog; /* number of analog channels soundcard sends */ 63 int out_n_analog; /* number of analog channels soundcard receives */
|
/linux-4.1.27/sound/soc/davinci/ |
H A D | davinci-mcasp.c | 103 u32 channels; member in struct:davinci_mcasp 621 * both left and right channels), so it has to be divided by number of davinci_config_channel_size() 657 int period_words, int channels) mcasp_common_hw_param() 664 u8 max_active_serializers = (channels + slots - 1) / slots; mcasp_common_hw_param() 710 dev_warn(mcasp->dev, "stream has more channels (%d) than are " mcasp_common_hw_param() 711 "enabled in mcasp (%d)\n", channels, mcasp_common_hw_param() 765 int channels) mcasp_i2s_hw_param() 778 * can cope with the transaction using as many slots as channels mcasp_i2s_hw_param() 779 * in the stream, requires channels symmetry mcasp_i2s_hw_param() 781 active_serializers = (channels + total_slots - 1) / total_slots; mcasp_i2s_hw_param() 783 active_slots = channels; mcasp_i2s_hw_param() 909 int channels = params_channels(params); davinci_mcasp_hw_params() local 918 int channels = params_channels(params); davinci_mcasp_hw_params() local 923 if (channels > mcasp->tdm_slots) davinci_mcasp_hw_params() 924 channels = mcasp->tdm_slots; davinci_mcasp_hw_params() 926 div = davinci_mcasp_calc_clk_div(mcasp, rate*sbits*channels, davinci_mcasp_hw_params() 936 period_size * channels, channels); davinci_mcasp_hw_params() 944 channels); davinci_mcasp_hw_params() 983 mcasp->channels = channels; davinci_mcasp_hw_params() 1027 int channels = params_channels(params); davinci_mcasp_hw_rule_rate() local 1031 if (channels > rd->mcasp->tdm_slots) davinci_mcasp_hw_rule_rate() 1032 channels = rd->mcasp->tdm_slots; davinci_mcasp_hw_rule_rate() 1037 uint bclk_freq = sbits*channels* davinci_mcasp_hw_rule_rate() 1047 "%d frequencies (%d-%d) for %d sbits and %d channels\n", davinci_mcasp_hw_rule_rate() 1048 count, ri->min, ri->max, sbits, channels); davinci_mcasp_hw_rule_rate() 1061 int channels = params_channels(params); davinci_mcasp_hw_rule_format() local 1066 if (channels > rd->mcasp->tdm_slots) davinci_mcasp_hw_rule_format() 1067 channels = rd->mcasp->tdm_slots; davinci_mcasp_hw_rule_format() 1071 uint bclk_freq = snd_pcm_format_width(i)*channels*rate; davinci_mcasp_hw_rule_format() 1082 "%d possible sample format for %d Hz and %d channels\n", davinci_mcasp_hw_rule_format() 1083 count, rate, channels); davinci_mcasp_hw_rule_format() 1108 amount of channels to remaining wires as davinci_mcasp_hw_rule_channels() 1142 * Limit the maximum allowed channels for the first stream: davinci_mcasp_startup() 1157 * If the already active stream has less channels than the calculated davinci_mcasp_startup() 1160 * Otherwise (first stream or less allowed channels) we use the davinci_mcasp_startup() 1163 if (mcasp->channels && mcasp->channels < max_channels) davinci_mcasp_startup() 1164 max_channels = mcasp->channels; davinci_mcasp_startup() 1219 mcasp->channels = 0; davinci_mcasp_shutdown() 656 mcasp_common_hw_param(struct davinci_mcasp *mcasp, int stream, int period_words, int channels) mcasp_common_hw_param() argument 764 mcasp_i2s_hw_param(struct davinci_mcasp *mcasp, int stream, int channels) mcasp_i2s_hw_param() argument
|
/linux-4.1.27/drivers/irqchip/ |
H A D | irq-st.c | 119 int channels, ret, i; st_irq_syscfg_enable() local 122 channels = of_property_count_u32_elems(np, "st,irq-device"); st_irq_syscfg_enable() 123 if (channels != ST_A9_IRQ_MAX_CHANS) { st_irq_syscfg_enable() 128 channels = of_property_count_u32_elems(np, "st,fiq-device"); st_irq_syscfg_enable() 129 if (channels != ST_A9_IRQ_MAX_CHANS) { st_irq_syscfg_enable()
|
/linux-4.1.27/drivers/tty/serial/jsm/ |
H A D | jsm_tty.c | 395 if (!brd->channels[i]) { jsm_tty_init() 401 brd->channels[i] = kzalloc(sizeof(struct jsm_channel), GFP_KERNEL); jsm_tty_init() 402 if (!brd->channels[i]) { jsm_tty_init() 410 ch = brd->channels[0]; jsm_tty_init() 414 for (i = 0; i < brd->nasync; i++, ch = brd->channels[i]) { jsm_tty_init() 416 if (!brd->channels[i]) jsm_tty_init() 457 for (i = 0; i < brd->nasync; i++, ch = brd->channels[i]) { jsm_uart_port_init() 459 if (!brd->channels[i]) jsm_uart_port_init() 462 brd->channels[i]->uart_port.irq = brd->irq; jsm_uart_port_init() 463 brd->channels[i]->uart_port.uartclk = 14745600; jsm_uart_port_init() 464 brd->channels[i]->uart_port.type = PORT_JSM; jsm_uart_port_init() 465 brd->channels[i]->uart_port.iotype = UPIO_MEM; jsm_uart_port_init() 466 brd->channels[i]->uart_port.membase = brd->re_map_membase; jsm_uart_port_init() 467 brd->channels[i]->uart_port.fifosize = 16; jsm_uart_port_init() 468 brd->channels[i]->uart_port.ops = &jsm_ops; jsm_uart_port_init() 475 brd->channels[i]->uart_port.line = line; jsm_uart_port_init() 476 rc = uart_add_one_port (&jsm_uart_driver, &brd->channels[i]->uart_port); jsm_uart_port_init() 508 if (!brd->channels[i]) jsm_remove_uart_port() 511 ch = brd->channels[i]; jsm_remove_uart_port() 514 uart_remove_one_port(&jsm_uart_driver, &brd->channels[i]->uart_port); jsm_remove_uart_port()
|
H A D | jsm_driver.c | 293 /* Free all allocated channels structs */ jsm_remove_one() 295 if (brd->channels[i]) { jsm_remove_one() 296 kfree(brd->channels[i]->ch_rqueue); jsm_remove_one() 297 kfree(brd->channels[i]->ch_equeue); jsm_remove_one() 298 kfree(brd->channels[i]); jsm_remove_one()
|
/linux-4.1.27/include/uapi/sound/ |
H A D | sb16_csp.h | 40 /* CSP channels */ 80 int channels; /* channels, look above */ member in struct:snd_sb_csp_start 88 unsigned short acc_channels; /* accepted channels */ 92 unsigned short run_channels; /* current channels */
|
/linux-4.1.27/sound/firewire/bebob/ |
H A D | bebob_proc.c | 78 unsigned int i, c, channels, size; proc_read_meters() local 83 channels = spec->num * 2; proc_read_meters() 84 size = channels * sizeof(u32); proc_read_meters() 92 for (i = 0, c = 1; i < channels; i++) { proc_read_meters() 95 if ((i + 1 < channels - 1) && proc_read_meters()
|
H A D | bebob_stream.c | 202 unsigned int sec, sections, ch, channels; map_data_channels() local 260 /* the number of channels in this section */ map_data_channels() 261 channels = buf[pos++]; map_data_channels() 263 for (ch = 0; ch < channels; ch++) { map_data_channels() 271 * number of channels in this section. But some models map_data_channels() 273 * is the position of MIDI channels in AMDTP packet. map_data_channels() 275 if (sec_loc >= channels) map_data_channels() 312 pcm += channels; map_data_channels() 314 midi += channels; map_data_channels() 738 unsigned int i, e, channels, format; parse_stream_formation() local 760 channels = buf[5 + e * 2]; parse_stream_formation() 768 formation[i].pcm += channels; parse_stream_formation() 772 formation[i].midi += channels; parse_stream_formation()
|
/linux-4.1.27/include/linux/amba/ |
H A D | pl08x.h | 51 * *** not used for slave channels *** 75 * @slave_channels: the channels defined for the different devices on the 76 * platform, all inclusive, including multiplexed channels. The available 77 * physical channels will be multiplexed around these signals as they are 78 * requested, just enumerate all possible channels.
|
/linux-4.1.27/drivers/net/wireless/ti/wl1251/ |
H A D | cmd.c | 425 struct ieee80211_channel *channels[], wl1251_cmd_scan() 431 wl1251_debug(DEBUG_CMD, "cmd scan channels %d", n_channels); wl1251_cmd_scan() 457 cmd->channels[i].min_duration = wl1251_cmd_scan() 459 cmd->channels[i].max_duration = wl1251_cmd_scan() 461 memset(&cmd->channels[i].bssid_lsb, 0xff, 4); wl1251_cmd_scan() 462 memset(&cmd->channels[i].bssid_msb, 0xff, 2); wl1251_cmd_scan() 463 cmd->channels[i].early_termination = 0; wl1251_cmd_scan() 464 cmd->channels[i].tx_power_att = 0; wl1251_cmd_scan() 465 cmd->channels[i].channel = channels[i]->hw_value; wl1251_cmd_scan() 424 wl1251_cmd_scan(struct wl1251 *wl, u8 *ssid, size_t ssid_len, struct ieee80211_channel *channels[], unsigned int n_channels, unsigned int n_probes) wl1251_cmd_scan() argument
|
/linux-4.1.27/arch/alpha/include/asm/ |
H A D | dma.h | 12 * linux/include/asm/dma.h: Defines for using and allocating dma channels. 30 * controller 1: channels 0-3, byte operations, ports 00-1F 31 * controller 2: channels 4-7, word operations, ports C0-DF 35 * - channels 0-3 are byte - addresses/counts are for physical bytes 36 * - channels 5-7 are word - addresses/counts are for physical words 47 * Address mapping for channels 0-3: 56 * Address mapping for channels 5-7: 65 * Again, channels 5-7 transfer _physical_ words (16 bits), so addresses 71 * and up to 128K bytes may be transferred on channels 5-7 in one operation. 129 #define IO_DMA1_BASE 0x00 /* 8 bit slave DMA, channels 0..3 */ 142 #define DMA1_MASK_ALL_REG 0x0F /* all-channels mask (w) */ 154 #define DMA2_MASK_ALL_REG 0xDE /* all-channels mask (w) */ 323 * NOTE 2: "count" represents _bytes_ and must be even for channels 5-7.
|
/linux-4.1.27/sound/soc/xtensa/ |
H A D | xtfpga-i2s.c | 125 * Functions will be called xtfpga_pcm_tx_<channels>x<sample bits>, e.g. 128 * FIFO consists of 32-bit words, one word per channel, always 2 channels. 132 #define xtfpga_pcm_tx_fn(channels, sample_bits) \ 133 static unsigned xtfpga_pcm_tx_##channels##x##sample_bits( \ 137 const u##sample_bits (*p)[channels] = \ 144 iowrite32(p[tx_ptr][channels - 1], \ 288 unsigned channels = params_channels(params); xtfpga_i2s_hw_params() local 332 "%s srate: %u, channels: %u, sample_size: %u, period_size: %u\n", xtfpga_i2s_hw_params() 333 __func__, srate, channels, sample_size, period_size); xtfpga_i2s_hw_params() 396 unsigned channels = params_channels(hw_params); xtfpga_pcm_hw_params() local 398 switch (channels) { xtfpga_pcm_hw_params() 410 i2s->tx_fn = (channels == 1) ? xtfpga_pcm_hw_params() 416 i2s->tx_fn = (channels == 1) ? xtfpga_pcm_hw_params()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/ |
H A D | iwl-eeprom-parse.c | 399 struct ieee80211_channel *chan = &data->channels[ch_idx]; iwl_eeprom_enh_txp_read_element() 509 case 6: /* 2.4GHz ht40 channels */ iwl_init_band_reference() 513 case 7: /* 5 GHz ht40 channels */ iwl_init_band_reference() 537 if (data->channels[i].band != band) iwl_mod_ht40_chan_info() 539 if (data->channels[i].hw_value != channel) iwl_mod_ht40_chan_info() 541 chan = &data->channels[i]; iwl_mod_ht40_chan_info() 590 /* Loop through each band adding each of the channels */ iwl_init_channel_map() 605 channel = &data->channels[n_channels]; iwl_init_channel_map() 668 data->channels[i].max_power * 2); iwl_init_channel_map() 671 /* Check if we do have HT40 channels */ iwl_init_channel_map() 678 /* Two additional EEPROM bands for 2.4 and 5 GHz HT40 channels */ iwl_init_channel_map() 690 /* Loop through each band adding each of the channels */ iwl_init_channel_map() 713 struct ieee80211_channel *chan = &data->channels[0]; iwl_init_sband_channels() 717 chan = &data->channels[++idx]; iwl_init_sband_channels() 719 sband->channels = &data->channels[idx]; iwl_init_sband_channels() 722 chan = &data->channels[++idx]; iwl_init_sband_channels() 835 IWL_ERR_DEV(dev, "EEPROM: used only %d of %d channels\n", iwl_init_sbands()
|
/linux-4.1.27/drivers/dma/sh/ |
H A D | usb-dmac.c | 97 * @n_channels: number of available channels 98 * @channels: array of DMAC channels 106 struct usb_dmac_chan *channels; member in struct:usb_dmac 251 /* Clear all channels and enable the DMAC globally. */ usb_dmac_init() 352 /* Don't issue soft reset if any one of channels is busy */ usb_dmac_soft_reset() 659 /* Only slave DMA channels can be allocated via DT */ usb_dmac_of_xlate() 683 usb_dmac_chan_halt(&dmac->channels[i]); usb_dmac_runtime_suspend() 751 ret = of_property_read_u32(np, "dma-channels", &dmac->n_channels); usb_dmac_parse_of() 753 dev_err(dev, "unable to read dma-channels property\n"); usb_dmac_parse_of() 758 dev_err(dev, "invalid number of channels %u\n", usb_dmac_parse_of() 786 dmac->channels = devm_kcalloc(&pdev->dev, dmac->n_channels, usb_dmac_probe() 787 sizeof(*dmac->channels), GFP_KERNEL); usb_dmac_probe() 788 if (!dmac->channels) usb_dmac_probe() 813 /* Initialize the channels. */ usb_dmac_probe() 814 INIT_LIST_HEAD(&dmac->engine.channels); usb_dmac_probe() 817 ret = usb_dmac_chan_probe(dmac, &dmac->channels[i], i); usb_dmac_probe() 875 usb_dmac_chan_remove(dmac, &dmac->channels[i]); usb_dmac_remove()
|
/linux-4.1.27/sound/isa/gus/ |
H A D | gusclassic.c | 52 static int channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 24}; variable 71 module_param_array(channels, int, NULL, 0444); 72 MODULE_PARM_DESC(channels, "GF1 channels for " CRD_NAME " driver."); 74 MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for " CRD_NAME " driver."); 115 0, channels[n], pcm_channels[n], 0, rgus); snd_gusclassic_create() 121 0, channels[n], pcm_channels[n], 0, rgus); snd_gusclassic_create()
|
H A D | gusmax.c | 50 static int channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 24}; variable 69 module_param_array(channels, int, NULL, 0444); 70 MODULE_PARM_DESC(channels, "Used GF1 channels for GUS MAX driver."); 72 MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for GUS MAX driver."); 255 0, channels[dev], snd_gusmax_probe() 267 0, channels[dev], snd_gusmax_probe()
|
/linux-4.1.27/sound/synth/emux/ |
H A D | emux_seq.c | 47 * number of MIDI channels 64 * Each of the ports will contain the 16 midi channels. Applications 151 p->chset.channels = kcalloc(max_channels, sizeof(struct snd_midi_channel), GFP_KERNEL); snd_emux_create_port() 152 if (p->chset.channels == NULL) { snd_emux_create_port() 158 p->chset.channels[i].number = i; snd_emux_create_port() 198 kfree(p->chset.channels); free_port() 242 struct snd_midi_channel *chan = port->chset.channels + i; snd_emux_reset_port()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/ |
H A D | regd.c | 46 *Only these channels all allow active 159 ch = &sband->channels[i]; _rtl_reg_apply_beaconing_flags() 207 *on these channels. This is only done for specific regulatory SKUs _rtl_reg_apply_active_scan_flags() 210 ch = &sband->channels[11]; /* CH 12 */ _rtl_reg_apply_active_scan_flags() 213 ch = &sband->channels[12]; /* CH 13 */ _rtl_reg_apply_active_scan_flags() 226 ch = &sband->channels[11]; /* CH 12 */ _rtl_reg_apply_active_scan_flags() 234 ch = &sband->channels[12]; /* CH 13 */ _rtl_reg_apply_active_scan_flags() 259 ch = &sband->channels[i]; _rtl_reg_apply_radar_flags() 302 ch = &sband->channels[i]; _rtl_dump_channel_map()
|
/linux-4.1.27/drivers/clocksource/ |
H A D | sh_mtu2.c | 53 struct sh_mtu2_channel *channels; member in struct:sh_mtu2_device 195 /* start stop register shared by multiple timer channels */ sh_mtu2_start_stop_ch() 362 /* Skip channels with no declared interrupt. */ sh_mtu2_setup_channel() 426 /* Allocate and setup the channels. */ sh_mtu2_setup() 429 mtu->channels = kzalloc(sizeof(*mtu->channels) * mtu->num_channels, sh_mtu2_setup() 431 if (mtu->channels == NULL) { sh_mtu2_setup() 437 ret = sh_mtu2_setup_channel(&mtu->channels[i], i, mtu); sh_mtu2_setup() 447 kfree(mtu->channels); sh_mtu2_setup()
|
H A D | sh_tmu.c | 67 struct sh_tmu_channel *channels; member in struct:sh_tmu_device 135 /* start stop register shared by multiple timer channels */ sh_tmu_start_stop_ch() 470 /* Skip unused channels. */ sh_tmu_channel_setup() 520 of_property_read_u32(np, "#renesas,channels", &tmu->num_channels); sh_tmu_parse_dt() 523 dev_err(&tmu->pdev->dev, "invalid number of channels %u\n", sh_tmu_parse_dt() 573 /* Allocate and setup the channels. */ sh_tmu_setup() 574 tmu->channels = kzalloc(sizeof(*tmu->channels) * tmu->num_channels, sh_tmu_setup() 576 if (tmu->channels == NULL) { sh_tmu_setup() 586 ret = sh_tmu_channel_setup(&tmu->channels[i], i, sh_tmu_setup() 597 kfree(tmu->channels); sh_tmu_setup()
|
/linux-4.1.27/sound/soc/omap/ |
H A D | omap-mcpdm.c | 63 /* McPDM dn offsets for rx1, and 2 channels */ 124 * codec by enabling the corresponding UP or DN channels. omap_mcpdm_reg_dump() 143 * codec by disabling the corresponding UP or DN channels. 299 int channels; omap_mcpdm_dai_hw_params() local 302 channels = params_channels(params); omap_mcpdm_dai_hw_params() 303 switch (channels) { omap_mcpdm_dai_hw_params() 306 /* up to 3 channels for capture */ omap_mcpdm_dai_hw_params() 311 /* up to 3 channels for capture */ omap_mcpdm_dai_hw_params() 322 /* unsupported number of channels */ omap_mcpdm_dai_hw_params() 329 /* Configure McPDM channels, and DMA packet size */ omap_mcpdm_dai_hw_params() 338 (MCPDM_DN_THRES_MAX - threshold) * channels; omap_mcpdm_dai_hw_params() 344 dma_data->maxburst = threshold * channels; omap_mcpdm_dai_hw_params()
|
H A D | omap-mcbsp.c | 97 struct snd_interval *channels = hw_param_interval(params, omap_mcbsp_hwrule_min_buffersize() local 106 frames.min = size / channels->min; omap_mcbsp_hwrule_min_buffersize() 129 * channels. omap_mcbsp_dai_startup() 132 * 2 channels (stereo): size is 128 / 2 = 64 frames (2 * 64 words) omap_mcbsp_dai_startup() 133 * 4 channels: size is 128 / 4 = 32 frames (4 * 32 words) omap_mcbsp_dai_startup() 214 delay = fifo_use / substream->runtime->channels; omap_mcbsp_dai_delay() 226 int wlen, channels, wpf; omap_mcbsp_dai_hw_params() local 231 channels = params_channels(params); omap_mcbsp_dai_hw_params() 270 } else if (channels > 1) { omap_mcbsp_dai_hw_params() 272 pkt_size = channels; omap_mcbsp_dai_hw_params() 289 wpf = channels; omap_mcbsp_dai_hw_params() 290 if (channels == 2 && (format == SND_SOC_DAIFMT_I2S || omap_mcbsp_dai_hw_params() 331 if (framesize < wlen * channels) { omap_mcbsp_dai_hw_params() 333 "channels\n", __func__); omap_mcbsp_dai_hw_params() 337 framesize = wlen * channels; omap_mcbsp_dai_hw_params()
|
/linux-4.1.27/arch/x86/kvm/ |
H A D | i8254.c | 76 &kvm->arch.vpit->pit_state.channels[channel]; pit_set_gate() 103 return kvm->arch.vpit->pit_state.channels[channel].gate; pit_get_gate() 142 &kvm->arch.vpit->pit_state.channels[channel]; pit_get_count() 172 &kvm->arch.vpit->pit_state.channels[channel]; pit_get_out() 207 &kvm->arch.vpit->pit_state.channels[channel]; pit_latch_count() 220 &kvm->arch.vpit->pit_state.channels[channel]; pit_latch_status() 393 ps->channels[channel].count = val; pit_load_count() 396 ps->channels[channel].count_load_time = ktime_get(); pit_load_count() 402 switch (ps->channels[0].mode) { pit_load_count() 423 saved_mode = kvm->arch.vpit->pit_state.channels[0].mode; kvm_pit_load_count() 424 kvm->arch.vpit->pit_state.channels[0].mode = 0xff; /* disable timer */ kvm_pit_load_count() 426 kvm->arch.vpit->pit_state.channels[0].mode = saved_mode; kvm_pit_load_count() 475 s = &pit_state->channels[channel]; pit_ioport_write() 485 s = &pit_state->channels[channel]; pit_ioport_write() 501 s = &pit_state->channels[addr]; pit_ioport_write() 541 s = &pit_state->channels[addr]; pit_ioport_read() 647 c = &pit->pit_state.channels[i]; kvm_pit_reset()
|
H A D | i8254.h | 25 struct kvm_kpit_channel_state channels[3]; member in struct:kvm_kpit_state
|
/linux-4.1.27/sound/core/ |
H A D | pcm_lib.c | 117 snd_pcm_format_set_silence(runtime->format, hwbuf, transfer * runtime->channels); snd_pcm_playback_silence() 121 unsigned int channels = runtime->channels; snd_pcm_playback_silence() local 123 for (c = 0; c < channels; ++c) { snd_pcm_playback_silence() 129 size_t dma_csize = runtime->dma_bytes / channels; snd_pcm_playback_silence() 130 for (c = 0; c < channels; ++c) { snd_pcm_playback_silence() 1726 * first access, first format, first subformat, min channels, 1793 info->step = runtime->channels * width; snd_pcm_lib_ioctl_channel_info() 1798 size_t size = runtime->dma_bytes / runtime->channels; snd_pcm_lib_ioctl_channel_info() 1815 int channels; snd_pcm_lib_ioctl_fifo_size() local 1821 channels = params_channels(params); snd_pcm_lib_ioctl_fifo_size() 1822 frame_size = snd_pcm_format_size(format, channels); snd_pcm_lib_ioctl_fifo_size() 2141 runtime->channels > 1) snd_pcm_lib_write() 2157 int channels = runtime->channels; snd_pcm_lib_writev_transfer() local 2162 for (c = 0; c < channels; ++c, ++bufs) { snd_pcm_lib_writev_transfer() 2174 size_t dma_csize = runtime->dma_bytes / channels; snd_pcm_lib_writev_transfer() 2175 for (c = 0; c < channels; ++c, ++bufs) { snd_pcm_lib_writev_transfer() 2366 int channels = runtime->channels; snd_pcm_lib_readv_transfer() local 2369 for (c = 0; c < channels; ++c, ++bufs) { snd_pcm_lib_readv_transfer() 2378 snd_pcm_uframes_t dma_csize = runtime->dma_bytes / channels; snd_pcm_lib_readv_transfer() 2379 for (c = 0; c < channels; ++c, ++bufs) { snd_pcm_lib_readv_transfer() 2421 /* default channel maps for multi-channel playbacks, up to 8 channels */ 2423 { .channels = 1, 2425 { .channels = 2, 2427 { .channels = 4, 2430 { .channels = 6, 2434 { .channels = 8, 2443 /* alternative channel maps with CLFE <-> surround swapped for 6/8 channels */ 2445 { .channels = 1, 2447 { .channels = 2, 2449 { .channels = 4, 2452 { .channels = 6, 2456 { .channels = 8, 2486 * stores the channel position firstly matching with the current channels 2504 return 0; /* no channels set */ pcm_chmap_ctl_get() 2505 for (map = info->chmap; map->channels; map++) { pcm_chmap_ctl_get() 2507 if (map->channels == substream->runtime->channels && pcm_chmap_ctl_get() 2508 valid_chmap_channels(info, map->channels)) { pcm_chmap_ctl_get() 2509 for (i = 0; i < map->channels; i++) pcm_chmap_ctl_get() 2536 for (map = info->chmap; map->channels; map++) { pcm_chmap_ctl_tlv() 2537 int chs_bytes = map->channels * 4; pcm_chmap_ctl_tlv() 2538 if (!valid_chmap_channels(info, map->channels)) pcm_chmap_ctl_tlv() 2552 for (c = 0; c < map->channels; c++) { pcm_chmap_ctl_tlv() 2575 * @max_channels: the max number of channels for the stream
|
/linux-4.1.27/drivers/isdn/hardware/eicon/ |
H A D | um_xdi.h | 14 dword channels; member in struct:_diva_um_idi_adapter_features
|
H A D | divasfunc.c | 73 d.channels = IoAdapters[card - 1]->Properties.Channels; diva_xdi_didd_register_adapter() 75 DBG_TRC(("DIDD register A(%d) channels=%d", card, diva_xdi_didd_register_adapter() 76 d.channels)) diva_xdi_didd_register_adapter()
|
/linux-4.1.27/drivers/net/wan/ |
H A D | x25_asy.h | 5 #define SL_NRUNIT 256 /* MAX number of X.25 channels;
|
/linux-4.1.27/arch/unicore32/include/mach/ |
H A D | dma.h | 16 * The PKUnity has six internal DMA channels.
|
/linux-4.1.27/drivers/tty/ipwireless/ |
H A D | network.h | 27 /* Definitions of the different channels on the PCMCIA UE */
|
/linux-4.1.27/drivers/usb/phy/ |
H A D | phy-rcar-gen2-usb.c | 102 /* Setup USB channels */ __rcar_gen2_usb_phy_init() 109 /* Set USB channels in the USBHS UGCTRL2 register */ __rcar_gen2_usb_phy_init() 116 /* Shutdown USB channels */ __rcar_gen2_usb_phy_shutdown() 143 * Enable the clock and setup USB channels rcar_gen2_usb_phy_init()
|
/linux-4.1.27/drivers/usb/serial/ |
H A D | kl5kusb105.h | 15 /* port table -- the chip supports up to 4 channels */
|
/linux-4.1.27/arch/arm64/include/asm/ |
H A D | sync_bitops.h | 13 * via event channels and grant tables). So we need a variant of the bit
|
/linux-4.1.27/arch/cris/include/arch-v32/mach-a3/mach/ |
H A D | dma.h | 4 /* Defines for using and allocating dma channels. */
|
/linux-4.1.27/arch/arm/include/asm/ |
H A D | sync_bitops.h | 12 * via event channels and grant tables). So we need a variant of the bit
|
/linux-4.1.27/net/rxrpc/ |
H A D | ar-connection.c | 398 if (!conn->channels[chan]) rxrpc_connect_exclusive() 404 conn->channels[chan] = call; rxrpc_connect_exclusive() 463 ASSERT(conn->channels[0] == NULL || rxrpc_connect_call() 464 conn->channels[1] == NULL || rxrpc_connect_call() 465 conn->channels[2] == NULL || rxrpc_connect_call() 466 conn->channels[3] == NULL); rxrpc_connect_call() 483 ASSERT(conn->channels[0] == NULL && rxrpc_connect_call() 484 conn->channels[1] == NULL && rxrpc_connect_call() 485 conn->channels[2] == NULL && rxrpc_connect_call() 486 conn->channels[3] == NULL); rxrpc_connect_call() 584 if (!conn->channels[chan]) rxrpc_connect_call() 586 ASSERT(conn->channels[0] == NULL || rxrpc_connect_call() 587 conn->channels[1] == NULL || rxrpc_connect_call() 588 conn->channels[2] == NULL || rxrpc_connect_call() 589 conn->channels[3] == NULL); rxrpc_connect_call() 593 conn->channels[chan] = call; rxrpc_connect_call()
|
/linux-4.1.27/sound/sh/ |
H A D | aica.c | 234 static int aica_dma_transfer(int channels, int buffer_size, aica_dma_transfer() argument 244 period_offset %= (AICA_PERIOD_NUMBER / channels); aica_dma_transfer() 246 for (q = 0; q < channels; q++) { aica_dma_transfer() 251 channels + aica_dma_transfer() 256 buffer_size / channels, AICA_DMA_MODE); aica_dma_transfer() 285 if (runtime->channels > 1) run_spu_dma() 287 aica_dma_transfer(runtime->channels, buffer_size, run_spu_dma() 291 buffer_size / (AICA_PERIOD_SIZE * runtime->channels); run_spu_dma() 294 aica_dma_transfer(runtime->channels, run_spu_dma() 295 AICA_PERIOD_SIZE * runtime->channels, run_spu_dma() 326 if (runtime->channels > 1) aica_period_elapsed()
|
/linux-4.1.27/drivers/iio/common/st_sensors/ |
H A D | st_sensors_buffer.c | 32 indio_dev->channels[0].scan_type.storagebits >> 3; st_sensors_get_buffer_element() 42 addr[n] = indio_dev->channels[i].address; st_sensors_get_buffer_element()
|
/linux-4.1.27/sound/oss/ |
H A D | vidc.c | 47 * channels is fixed at 2. 84 extern void vidc_update_filler(int bits, int channels); 257 static short vidc_audio_set_channels(int dev, short channels) vidc_audio_set_channels() argument 259 switch (channels) { vidc_audio_set_channels() 261 channels = 2; vidc_audio_set_channels() 264 vidc_audio_channels = channels; vidc_audio_set_channels() 407 void vidc_update_filler(int format, int channels) vidc_update_filler() argument 411 switch (TYPE(format, channels)) { vidc_update_filler()
|
H A D | sb_audio.c | 311 static short sb1_audio_set_channels(int dev, short channels) sb1_audio_set_channels() argument 314 return devc->channels = 1; sb1_audio_set_channels() 359 if (devc->speed * devc->channels <= 23000) sb20_audio_output_block() 398 if (devc->speed * devc->channels <= (devc->major == 3 ? 23000 : 13000)) sb20_audio_start_input() 455 s = speed * devc->channels; sb201_audio_set_speed() 458 speed = ((1000000 + tmp / 2) / tmp) / devc->channels; sb201_audio_set_speed() 487 if (devc->channels == 1) sbpro_audio_prepare_for_input() 507 sb_mixer_set_stereo(devc, devc->channels == 2); sbpro_audio_prepare_for_output() 519 if (devc->channels == 1) sbpro_audio_prepare_for_output() 529 if (devc->channels == 1) sbpro_audio_prepare_for_output() 549 if (devc->channels > 1 && speed > 22050) sbpro_audio_set_speed() 556 static short sbpro_audio_set_channels(int dev, short channels) sbpro_audio_set_channels() argument 560 if (channels == 1 || channels == 2) sbpro_audio_set_channels() 562 if (channels != devc->channels) sbpro_audio_set_channels() 564 devc->channels = channels; sbpro_audio_set_channels() 565 if (devc->model == MDL_SBPRO && devc->channels == 2) sbpro_audio_set_channels() 569 return devc->channels; sbpro_audio_set_channels() 586 s = speed * devc->channels; jazz16_audio_set_speed() 591 speed = ((1000000 + tmp / 2) / tmp) / devc->channels; jazz16_audio_set_speed() 727 sb_dsp_command(devc, ((devc->channels == 2 ? 0x20 : 0) + sb16_audio_output_block() 775 sb_dsp_command(devc, ((devc->channels == 2 ? 0x20 : 0) + sb16_audio_start_input()
|
/linux-4.1.27/drivers/net/can/sja1000/ |
H A D | ems_pcmcia.c | 38 int channels; member in struct:ems_pcmcia_card 105 for (i = 0; i < card->channels; i++) { ems_pcmcia_interrupt() 147 for (i = 0; i < card->channels; i++) { ems_pcmcia_del_card() 182 card->channels = 0; ems_pcmcia_add_card() 202 /* Detect available channels */ ems_pcmcia_add_card() 237 card->channels++; ems_pcmcia_add_card()
|
H A D | peak_pci.c | 43 void __iomem *cfg_base; /* Common for all channels */ 149 void __iomem *cfg_base; /* Common for all channels */ 316 /* restart timer (except if no more configured channels) */ peak_pciec_led_work() 560 int i, err, channels; peak_pci_probe() local 582 channels = 4; peak_pci_probe() 584 channels = 3; peak_pci_probe() 586 channels = 2; peak_pci_probe() 588 channels = 1; peak_pci_probe() 597 reg_base = pci_iomap(pdev, 1, PEAK_PCI_CHAN_SIZE * channels); peak_pci_probe() 606 /* Enable all channels of this card */ peak_pci_probe() 616 for (i = 0; i < channels; i++) { peak_pci_probe() 637 if (channels == 1 || i > 0) peak_pci_probe()
|
/linux-4.1.27/drivers/phy/ |
H A D | phy-rcar-gen2.c | 68 struct rcar_gen2_channel *channels; member in struct:rcar_gen2_phy_driver 219 if (np == drv->channels[i].of_node) rcar_gen2_phy_xlate() 226 return drv->channels[i].phys[args->args[0]].phy; rcar_gen2_phy_xlate() 277 drv->channels = devm_kcalloc(dev, drv->num_channels, rcar_gen2_phy_probe() 280 if (!drv->channels) rcar_gen2_phy_probe() 284 struct rcar_gen2_channel *channel = drv->channels + i; rcar_gen2_phy_probe()
|
/linux-4.1.27/drivers/gpu/drm/msm/hdmi/ |
H A D | hdmi_audio.c | 22 /* Supported HDMI Audio channels */ 28 /* maps MSM_HDMI_AUDIO_CHANNEL_n consts used by audio driver to # of channels: */ 101 DBG("audio: enabled=%d, channels=%d, channel_allocation=0x%x, " hdmi_audio_update() 103 audio->enabled, info->channels, info->channel_allocation, hdmi_audio_update() 176 COND(info->channels != 2, HDMI_AUDIO_PKT_CTRL2_LAYOUT) | hdmi_audio_update() 251 audio->infoframe.channels = nchannels[num_of_channels]; hdmi_audio_info_setup()
|
/linux-4.1.27/drivers/usb/gadget/function/ |
H A D | u_uac1.c | 109 snd->channels = 2; playback_default_hw_params() 122 snd->channels, 0); playback_default_hw_params() 140 snd->channels = params_channels(params); playback_default_hw_params() 146 "Hardware params: access %x, format %x, channels %d, rate %d\n", playback_default_hw_params() 147 snd->access, snd->format, snd->channels, snd->rate); playback_default_hw_params() 192 return card->playback.channels; u_audio_get_playback_channels()
|
/linux-4.1.27/arch/parisc/include/asm/ |
H A D | dma.h | 1 /* asm/dma.h: Defines for using and allocating dma channels. 31 ** We don't have DMA channels... well V-class does but the 45 #define IO_DMA1_BASE 0x00 /* 8 bit slave DMA, channels 0..3 */ 58 #define DMA1_MASK_ALL_REG 0x0F /* all-channels mask (w) */ 70 #define DMA2_MASK_ALL_REG 0xDE /* all-channels mask (w) */ 169 * NOTE 2: "count" represents _bytes_ and must be even for channels 5-7.
|
/linux-4.1.27/net/mac80211/ |
H A D | scan.c | 262 local->hw_scan_req->req.channels[i] = req->channels[i]; ieee80211_prep_hw_scan() 263 bands_used |= BIT(req->channels[i]->band); ieee80211_prep_hw_scan() 275 if (req->channels[i]->band != ieee80211_prep_hw_scan() 278 local->hw_scan_req->req.channels[n_chans] = ieee80211_prep_hw_scan() 279 req->channels[i]; ieee80211_prep_hw_scan() 281 bands_used |= BIT(req->channels[i]->band); ieee80211_prep_hw_scan() 412 * the responses. After all channels are scanned, tune back to the ieee80211_start_sw_scan() 538 if (bands_counted & BIT(req->channels[i]->band)) __ieee80211_start_scan() 540 bands_counted |= BIT(req->channels[i]->band); __ieee80211_start_scan() 549 req->n_channels * sizeof(req->channels[0]) + __ieee80211_start_scan() 558 req->n_channels * sizeof(req->channels[0]); __ieee80211_start_scan() 586 (req->channels[0] == local->_oper_chandef.chan)) { __ieee80211_start_scan() 606 if ((req->channels[0]->flags & __ieee80211_start_scan() 696 next_chan = scan_req->channels[local->scan_channel_idx]; ieee80211_scan_state_decision() 738 chan = scan_req->channels[local->scan_channel_idx]; ieee80211_scan_state_set_channel() 893 /* if no more bands/channels left, complete scan */ ieee80211_scan_work() 941 struct ieee80211_channel **channels, ieee80211_request_ibss_scan() 956 if (!channels) { ieee80211_request_ibss_scan() 966 &local->hw.wiphy->bands[band]->channels[i]; ieee80211_request_ibss_scan() 972 local->int_scan_req->channels[n_ch] = tmp_ch; ieee80211_request_ibss_scan() 983 if (channels[i]->flags & (IEEE80211_CHAN_NO_IR | ieee80211_request_ibss_scan() 987 local->int_scan_req->channels[n_ch] = channels[i]; ieee80211_request_ibss_scan() 939 ieee80211_request_ibss_scan(struct ieee80211_sub_if_data *sdata, const u8 *ssid, u8 ssid_len, struct ieee80211_channel **channels, unsigned int n_channels, enum nl80211_bss_scan_width scan_width) ieee80211_request_ibss_scan() argument
|
/linux-4.1.27/sound/firewire/dice/ |
H A D | dice-pcm.c | 57 struct snd_interval channels = { dice_channels_constraint() local 75 channels.min = min(channels.min, pcm_channels[mode]); dice_channels_constraint() 76 channels.max = max(channels.max, pcm_channels[mode]); dice_channels_constraint() 79 return snd_interval_refine(c, &channels); dice_channels_constraint()
|
/linux-4.1.27/sound/pci/ctxfi/ |
H A D | ctpcm.c | 401 { .channels = 1, 403 { .channels = 2, 409 { .channels = 1, 411 { .channels = 2, 417 { .channels = 1, 419 { .channels = 2,
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/ |
H A D | channel.c | 40 /* maxpwr mapping to 5GHz band channels: 41 * maxpwr[0] - channels [34-48] 42 * maxpwr[1] - channels [52-60] 43 * maxpwr[2] - channels [62-64] 44 * maxpwr[3] - channels [100-140] 45 * maxpwr[4] - channels [149-165] 600 * check that the sidebands are valid 20MZH channels in this locale 644 ch = &sband->channels[i]; brcms_reg_apply_radar_flags() 650 * All channels in this range should be passive and have brcms_reg_apply_radar_flags() 675 ch = &sband->channels[i]; brcms_reg_apply_beaconing_flags() 712 /* Disable radio if all channels disallowed by regulatory */ brcms_reg_notifier() 719 ch = &sband->channels[i]; brcms_reg_notifier() 750 /* Disable any channels not supported by the phy */ brcms_c_regd_init() 763 ch = &sband->channels[i]; brcms_c_regd_init()
|
/linux-4.1.27/sound/core/seq/ |
H A D | seq_midi_emul.c | 95 if (chanset->channels == NULL) snd_midi_process_event() 107 chan = chanset->channels + dest_channel; snd_midi_process_event() 394 struct snd_midi_channel *chan = chset->channels + i; snd_midi_channel_set_clear() 544 chset->channels[p].drum_channel = 1; sysex() 546 chset->channels[p].drum_channel = 0; sysex() 553 ! chset->channels[p].drum_channel) { sysex() 555 chset->channels[p].midi_program = buf[7]; sysex() 584 if (chset->channels[i].drum_channel) sysex() 585 chset->channels[i].control[MIDI_CTL_MSB_BANK] = 127; sysex() 587 chset->channels[i].control[MIDI_CTL_MSB_BANK] = 0; sysex() 668 * reset all midi channels 675 struct snd_midi_channel *chan = chset->channels + ch; reset_all_channels() 698 chset->channels = snd_midi_channel_init_set(n); snd_midi_channel_alloc_set() 724 kfree(chset->channels); snd_midi_channel_free_set()
|
/linux-4.1.27/drivers/firewire/ |
H A D | core-iso.c | 4 * - Isochronous bus resource management (channels, bandwidth), client side 199 int fw_iso_context_set_channels(struct fw_iso_context *ctx, u64 *channels) fw_iso_context_set_channels() argument 201 return ctx->card->driver->set_iso_channels(ctx, channels); fw_iso_context_set_channels() 232 * Isochronous bus resource management (channels, bandwidth), client side 298 /* A generation change frees all channels. */ manage_channel() 366 u32 channels_hi = channels_mask; /* channels 31...0 */ fw_iso_resource_manage() 367 u32 channels_lo = channels_mask >> 32; /* channels 63...32 */ fw_iso_resource_manage()
|
/linux-4.1.27/sound/pci/hda/ |
H A D | patch_hdmi.c | 86 int channels; /* current number of channels */ member in struct:hdmi_spec_per_pin 120 int channels); 122 unsigned int *chmap, int channels); 125 int (*chmap_validate)(int ca, int channels, unsigned char *chmap); 240 int channels; member in struct:cea_channel_speaker_allocation 626 p->channels = 0; init_channel_allocations() 630 p->channels++; init_channel_allocations() 656 struct hdmi_eld *eld, int channels) hdmi_channel_allocation() 666 if (channels <= 2) hdmi_channel_allocation() 682 if (channels == channel_allocations[i].channels && hdmi_channel_allocation() 692 * allocation with the matching number of channels */ hdmi_channel_allocation() 694 if (channels == channel_allocations[i].channels) { hdmi_channel_allocation() 703 ca, channels, buf); hdmi_channel_allocation() 742 for (i = 0; i < ch_alloc->channels; i++) { hdmi_std_setup_channel_mapping() 755 for (i = 0; i < ch_alloc->channels; i++) hdmi_std_setup_channel_mapping() 859 if ((chs == channel_allocations[i].channels || hdmi_manual_channel_allocation() 860 spks == channel_allocations[i].channels) && hdmi_manual_channel_allocation() 906 if (i < channel_allocations[ordered_ca].channels) hdmi_setup_fake_chmap() 915 int channels, unsigned char *map, hdmi_setup_channel_mapping() 920 channels, map, ca); hdmi_setup_channel_mapping() 1105 "hdmi_pin_setup_infoframe: pin=%d channels=%d ca=0x%02x\n", hdmi_pin_setup_infoframe() 1121 int channels = per_pin->channels; hdmi_setup_audio_infoframe() local 1126 if (!channels) hdmi_setup_audio_infoframe() 1137 ca = hdmi_manual_channel_allocation(channels, per_pin->chmap); hdmi_setup_audio_infoframe() 1139 ca = hdmi_channel_allocation(codec, eld, channels); hdmi_setup_audio_infoframe() 1144 active_channels = channel_allocations[ordered_ca].channels; hdmi_setup_audio_infoframe() 1153 channels, per_pin->chmap, hdmi_setup_audio_infoframe() 1268 /* HBR should be Non-PCM, 8 channels */ 1812 per_pin->channels = substream->runtime->channels; generic_hdmi_playback_pcm_prepare() 1877 per_pin->channels = 0; hdmi_pcm_close() 1908 int channels) hdmi_chmap_cea_alloc_validate_get_type() 1911 if (cap->channels != channels) hdmi_chmap_cea_alloc_validate_get_type() 1914 /* all channels are remappable freely */ hdmi_chmap_cea_alloc_validate_get_type() 1919 unsigned int *chmap, int channels) hdmi_cea_alloc_to_tlv_chmap() 1932 WARN_ON(count != channels); hdmi_cea_alloc_to_tlv_chmap() 2637 int channels) nvhdmi_8ch_7x_set_info_frame_parameters() 2640 int chan = channels ? (channels - 1) : 1; nvhdmi_8ch_7x_set_info_frame_parameters() 2642 switch (channels) { nvhdmi_8ch_7x_set_info_frame_parameters() 2711 chs = substream->runtime->channels; nvhdmi_8ch_7x_pcm_prepare() 2895 int channels) nvhdmi_chmap_cea_alloc_validate_get_type() 2897 if (cap->ca_index == 0x00 && channels == 2) nvhdmi_chmap_cea_alloc_validate_get_type() 2900 return hdmi_chmap_cea_alloc_validate_get_type(cap, channels); nvhdmi_chmap_cea_alloc_validate_get_type() 3120 int channels) atihdmi_paired_chmap_cea_alloc_validate_get_type() 3133 if ((channels % 2) != 0) atihdmi_paired_chmap_cea_alloc_validate_get_type() 3141 if (chanpairs * 2 != channels) atihdmi_paired_chmap_cea_alloc_validate_get_type() 3148 unsigned int *chmap, int channels) atihdmi_paired_cea_alloc_to_tlv_chmap() 3168 WARN_ON(count != channels); atihdmi_paired_cea_alloc_to_tlv_chmap() 655 hdmi_channel_allocation(struct hda_codec *codec, struct hdmi_eld *eld, int channels) hdmi_channel_allocation() argument 913 hdmi_setup_channel_mapping(struct hda_codec *codec, hda_nid_t pin_nid, bool non_pcm, int ca, int channels, unsigned char *map, bool chmap_set) hdmi_setup_channel_mapping() argument 1907 hdmi_chmap_cea_alloc_validate_get_type(struct cea_channel_speaker_allocation *cap, int channels) hdmi_chmap_cea_alloc_validate_get_type() argument 1918 hdmi_cea_alloc_to_tlv_chmap(struct cea_channel_speaker_allocation *cap, unsigned int *chmap, int channels) hdmi_cea_alloc_to_tlv_chmap() argument 2636 nvhdmi_8ch_7x_set_info_frame_parameters(struct hda_codec *codec, int channels) nvhdmi_8ch_7x_set_info_frame_parameters() argument 2894 nvhdmi_chmap_cea_alloc_validate_get_type(struct cea_channel_speaker_allocation *cap, int channels) nvhdmi_chmap_cea_alloc_validate_get_type() argument 3119 atihdmi_paired_chmap_cea_alloc_validate_get_type(struct cea_channel_speaker_allocation *cap, int channels) atihdmi_paired_chmap_cea_alloc_validate_get_type() argument 3147 atihdmi_paired_cea_alloc_to_tlv_chmap(struct cea_channel_speaker_allocation *cap, unsigned int *chmap, int channels) atihdmi_paired_cea_alloc_to_tlv_chmap() argument
|
/linux-4.1.27/drivers/isdn/gigaset/ |
H A D | common.c | 166 for (channel = 0; channel < cs->channels; ++channel) timer_tick() 218 for (i = 0; i < cs->channels; ++i) gigaset_get_free_channel() 256 for (i = 0; i < cs->channels; ++i) gigaset_get_channels() 260 "could not allocate all channels"); gigaset_get_channels() 263 for (i = 0; i < cs->channels; ++i) gigaset_get_channels() 267 gig_dbg(DEBUG_CHANNEL, "allocated all channels"); gigaset_get_channels() 277 gig_dbg(DEBUG_CHANNEL, "unblocking all channels"); gigaset_free_channels() 279 for (i = 0; i < cs->channels; ++i) gigaset_free_channels() 289 gig_dbg(DEBUG_CHANNEL, "blocking all channels"); gigaset_block_channels() 291 for (i = 0; i < cs->channels; ++i) gigaset_block_channels() 481 for (i = 0; i < cs->channels; ++i) { gigaset_freecs() 654 * @channels: number of B channels supported by device 657 * ==0 if B channels have separate communication channels (base) 669 struct cardstate *gigaset_initcs(struct gigaset_driver *drv, int channels, gigaset_initcs() argument 685 cs->channels = channels; gigaset_initcs() 713 cs->bcs = kmalloc(channels * sizeof(struct bc_state), GFP_KERNEL); gigaset_initcs() 760 for (i = 0; i < channels; ++i) { gigaset_initcs() 855 for (i = 0; i < cs->channels; ++i) { cleanup_cs()
|
/linux-4.1.27/drivers/net/wireless/iwlegacy/ |
H A D | debug.c | 536 struct ieee80211_channel *channels = NULL; il_dbgfs_channels_read() local 553 channels = supp_band->channels; il_dbgfs_channels_read() 557 "Displaying %d channels in 2.4GHz band 802.11bg):\n", il_dbgfs_channels_read() 564 channels[i].hw_value, il_dbgfs_channels_read() 565 channels[i].max_power, il_dbgfs_channels_read() 566 channels[i]. il_dbgfs_channels_read() 569 ((channels[i]. il_dbgfs_channels_read() 571 (channels[i]. il_dbgfs_channels_read() 574 channels[i]. il_dbgfs_channels_read() 580 channels = supp_band->channels; il_dbgfs_channels_read() 584 "Displaying %d channels in 5.2GHz band (802.11a)\n", il_dbgfs_channels_read() 591 channels[i].hw_value, il_dbgfs_channels_read() 592 channels[i].max_power, il_dbgfs_channels_read() 593 channels[i]. il_dbgfs_channels_read() 596 ((channels[i]. il_dbgfs_channels_read() 598 (channels[i]. il_dbgfs_channels_read() 601 channels[i]. il_dbgfs_channels_read() 840 DEBUGFS_READ_FILE_OPS(channels); variable 1375 DEBUGFS_ADD_FILE(channels, dir_data, S_IRUSR); il_dbgfs_register()
|
/linux-4.1.27/sound/soc/fsl/ |
H A D | fsl_asrc.c | 90 * within range [ANCA, ANCA+ANCB-1], depends on the channels of pair A 93 static int fsl_asrc_request_pair(int channels, struct fsl_asrc_pair *pair) fsl_asrc_request_pair() argument 116 } else if (asrc_priv->channel_avail < channels) { fsl_asrc_request_pair() 117 dev_err(dev, "can't afford required channels: %d\n", channels); fsl_asrc_request_pair() 120 asrc_priv->channel_avail -= channels; fsl_asrc_request_pair() 122 pair->channels = channels; fsl_asrc_request_pair() 134 * It clears the resource from asrc_priv and releases the occupied channels. 148 asrc_priv->channel_avail += pair->channels; fsl_asrc_release_pair() 245 int in, out, channels; fsl_asrc_config_pair() local 254 /* Validate channels */ fsl_asrc_config_pair() 256 pair_err("does not support %d channels\n", config->channel_num); fsl_asrc_config_pair() 318 channels = config->channel_num; fsl_asrc_config_pair() 321 channels /= 2; fsl_asrc_config_pair() 323 /* Update channels for current pair */ fsl_asrc_config_pair() 326 ASRCNCR_ANCi(index, channels, asrc_priv->channel_bits)); fsl_asrc_config_pair() 410 for (i = 0; i < pair->channels * 4; i++) fsl_asrc_start_pair() 453 unsigned int channels = params_channels(params); fsl_asrc_dai_hw_params() local 458 ret = fsl_asrc_request_pair(channels, pair); fsl_asrc_dai_hw_params() 477 config.channel_num = channels; fsl_asrc_dai_hw_params()
|
H A D | wm1133-ev1.c | 34 unsigned int channels; member in struct:_wm8350_audio 89 unsigned int channels = params_channels(params); wm1133_ev1_hw_params() local 95 channels == wm8350_audio[i].channels) { wm1133_ev1_hw_params() 107 switch (channels) { wm1133_ev1_hw_params()
|
/linux-4.1.27/drivers/soc/ti/ |
H A D | knav_qmss_acc.c | 445 int channel, channels; knav_acc_free_range() local 450 channels = 1; knav_acc_free_range() 452 channels = range->num_queues; knav_acc_free_range() 454 for (channel = 0; channel < channels; channel++) { knav_acc_free_range() 491 int ret, channel, channels; knav_init_acc_range() local 530 channels = range->num_queues; knav_init_acc_range() 533 channels = 1; knav_init_acc_range() 554 range->acc = devm_kzalloc(kdev->dev, channels * sizeof(*range->acc), knav_init_acc_range() 559 for (channel = 0; channel < channels; channel++) { knav_init_acc_range()
|
/linux-4.1.27/drivers/net/wireless/rtl818x/rtl8187/ |
H A D | rtl8187.h | 25 #define RTL8187_EEPROM_TXPWR_CHAN_1 0x16 /* 3 channels */ 26 #define RTL8187_EEPROM_TXPWR_CHAN_6 0x1B /* 2 channels */ 27 #define RTL8187_EEPROM_TXPWR_CHAN_4 0x3D /* 2 channels */ 109 * Any attempt to set channels concurrently locks the device. 114 struct ieee80211_channel channels[14]; member in struct:rtl8187_priv
|
/linux-4.1.27/sound/soc/blackfin/ |
H A D | bf5xx-i2s-pcm.c | 96 period_bytes = period_bytes / runtime->channels * 8; bf5xx_pcm_prepare() 169 frames = frames * runtime->channels / 8; bf5xx_pcm_pointer() 247 for (i = 0; i < runtime->channels; i++) { bf5xx_pcm_copy() 260 for (i = 0; i < runtime->channels; i++) { bf5xx_pcm_copy() 302 samples = count * runtime->channels; bf5xx_pcm_silence()
|
/linux-4.1.27/drivers/media/pci/cx25821/ |
H A D | cx25821-core.c | 751 cx_write(dev->channels[i].sram_channels->dma_ctl, 0); cx25821_shutdown() 752 cx_write(dev->channels[i].sram_channels->int_msk, 0); cx25821_shutdown() 757 cx_write(dev->channels[i].sram_channels->dma_ctl, 0); cx25821_shutdown() 758 cx_write(dev->channels[i].sram_channels->int_msk, 0); cx25821_shutdown() 776 cx_write(dev->channels[channel_select].sram_channels->pix_frmt, cx25821_set_pixel_format() 779 dev->channels[channel_select].pixel_formats = format; cx25821_set_pixel_format() 799 cx_write(dev->channels[i].sram_channels->int_stat, 0xffffffff); cx25821_initialize() 813 cx25821_set_vip_mode(dev, dev->channels[i].sram_channels); cx25821_initialize() 814 cx25821_sram_channel_setup(dev, dev->channels[i].sram_channels, cx25821_initialize() 816 dev->channels[i].pixel_formats = PIXEL_FRMT_422; cx25821_initialize() 817 dev->channels[i].use_cif_resolution = 0; cx25821_initialize() 823 dev->channels[i].pixel_formats = PIXEL_FRMT_422; cx25821_initialize() 824 cx25821_set_vip_mode(dev, dev->channels[i].sram_channels); cx25821_initialize() 828 dev->channels[SRAM_CH08].sram_channels, 128, 0); cx25821_initialize() 884 dev->channels[i].dev = dev; cx25821_dev_setup() 885 dev->channels[i].id = i; cx25821_dev_setup() 886 dev->channels[i].sram_channels = &cx25821_sram_channels[i]; cx25821_dev_setup() 975 cx25821_free_mem_upstream(&dev->channels[i]); cx25821_dev_unregister() 1237 vid_status = cx_read(dev->channels[i]. cx25821_irq()
|