Searched refs:channels (Results 1 - 25 of 195) sorted by relevance

12345678

/freebsd-current/contrib/wpa/src/p2p/
H A Dp2p_utils.c87 for (i = 0; i < a->channels; i++) {
88 for (j = 0; j < b->channels; j++) {
91 res->channel[res->channels] = a->channel[i];
92 res->channels++;
93 if (res->channels == P2P_MAX_REG_CLASS_CHANNELS)
102 * @a: First set of supported channels
103 * @b: Second set of supported channels
104 * @res: Data structure for returning the intersection of support channels
106 * This function can be used to find a common set of supported channels. Both
107 * input channels set
254 p2p_channels_includes(const struct p2p_channels *channels, u8 reg_class, u8 channel) argument
271 p2p_channels_includes_freq(const struct p2p_channels *channels, unsigned int freq) argument
320 p2p_get_pref_freq(struct p2p_data *p2p, const struct p2p_channels *channels) argument
374 p2p_channel_pick_random(const u8 *channels, unsigned int num_channels) argument
459 p2p_channels_to_freqs(const struct p2p_channels *channels, int *freq_list, unsigned int max_len) argument
[all...]
H A Dp2p_go_neg.c41 u8 channels; local
44 ch = &dev->channels;
64 channels = *pos++;
65 if (channels > end - pos) {
69 cl->channels = channels > P2P_MAX_REG_CLASS_CHANNELS ?
70 P2P_MAX_REG_CLASS_CHANNELS : channels;
71 os_memcpy(cl->channel, pos, cl->channels);
72 pos += channels;
78 p2p_channels_intersect(own, &dev->channels,
[all...]
H A Dp2p_invitation.c77 p2p_buf_add_channel_list(buf, p2p->cfg->country, &p2p->channels);
113 struct p2p_channels *channels)
158 if (channels)
159 p2p_buf_add_channel_list(buf, p2p->cfg->country, channels);
186 struct p2p_channels all_channels, intersection, *channels = NULL; local
238 p2p_channels_union(&p2p->cfg->channels, &p2p->cfg->cli_channels,
244 p2p_dbg(p2p, "No common channels found");
249 p2p_channels_dump(p2p, "own channels", &p2p->cfg->channels);
250 p2p_channels_dump(p2p, "own client channels",
108 p2p_build_invitation_resp(struct p2p_data *p2p, struct p2p_device *peer, u8 dialog_token, u8 status, const u8 *group_bssid, u8 reg_class, u8 channel, struct p2p_channels *channels) argument
436 struct p2p_channels intersection, *channels = NULL; local
[all...]
/freebsd-current/share/examples/sound/
H A Dbasic.c35 .channels = -1,
55 sample_t *channels = malloc(bytes); local
78 oss_split(&config, (sample_t *)ibuf, channels);
80 oss_merge(&config, channels, (sample_t *)obuf);
94 free(channels);
H A Dossinit.h67 int channels; member in struct:config
110 * Split input buffer into channels. Input buffer is in interleaved format
111 * which means if we have 2 channels (L and R), this is what the buffer of
112 * 8 samples would contain: L,R,L,R,L,R,L,R. The result are two channels
122 channel = i % config->channels;
123 index = i / config->channels;
130 * Convert channels into interleaved format and place it in output
136 for (int channel = 0; channel < config->channels; ++channel) {
138 output[index * config->channels + channel] = input[channel * index];
166 if (config->channels <
[all...]
/freebsd-current/usr.sbin/bhyve/
H A Daudio.c130 int format, channels, rate; local
173 channels = params->channels;
174 err = ioctl(audio_fd, SNDCTL_DSP_CHANNELS, &channels);
176 DPRINTF("Fail to set channels: %d errno: %d",
177 params->channels, errno);
181 /* The device does not support the requested no. of channels */
182 if (channels != params->channels) {
183 DPRINTF("Mismatch channels
[all...]
H A Daudio.h42 int channels; member in struct:audio_params
/freebsd-current/sys/contrib/dev/iwlwifi/fw/api/
H A Drfi.h16 * @channels: channels that can be interfered at frequency freq (at most 15)
21 u8 channels[IWL_RFI_LUT_ENTRY_CHANNELS_NUM]; member in struct:iwl_rfi_lut_entry
/freebsd-current/sys/dev/sound/pcm/
H A Dfeeder_volume.c54 uint32_t channels, uint8_t *dst, uint32_t count) \
60 dst += count * PCM_##BIT##_BPS * channels; \
62 i = channels; \
96 uint32_t bps, channels; member in struct:feed_volume_info
160 info->channels = AFMT_CHANNEL(f->desc->in);
166 m = feeder_matrix_default_channel_map(info->channels);
262 i = info->channels;
280 align = info->bps * info->channels;
291 info->apply(temp_vol, matrix, info->channels, dst, j);
334 f->data == NULL || m == NULL || m->channels < SND_CHN_MI
[all...]
H A Dmatrix_map.h39 * .channels = Total number of channels, including whatever 'extended'
41 * .ext = Total number of extended channels (LFE).
46 * .members = Masks of channels that is acceptable as a
49 * [total channels] = {
50 * .type = Maximum channels marker (SND_CHN_T_MAX).
51 * .members = 0 (no channels allowed here).
54 * .mask = Mask of channels that exist in this map.
68 .channels = 1, \
94 .channels
[all...]
H A Dfeeder_format.c54 uint32_t ialign, oalign, channels; local
154 info->channels = AFMT_CHANNEL(f->desc->in);
157 info->ialign = info->ibps * info->channels;
161 info->oalign = info->obps * info->channels;
194 info->channels = (uint32_t)value;
195 info->ialign = info->ibps * info->channels;
196 info->oalign = info->obps * info->channels;
242 j *= info->channels;
H A Dfeeder_matrix.c299 AFMT_CHANNEL(info->in) != m_in->channels ||
300 AFMT_CHANNEL(info->out) != m_out->channels ||
301 m_in->channels < SND_CHN_MIN || m_in->channels > SND_CHN_MAX ||
302 m_out->channels < SND_CHN_MIN || m_out->channels > SND_CHN_MAX)
344 m_in->offset[i] < (int)m_in->channels)
360 * multiple channels, apply a slight attenuation to
552 * feeder_matrix_default_id(): For a given number of channels, return
554 * 6.0 are simply 6 channels, bu
[all...]
H A Dsound.c136 CHN_FOREACH(c, d, channels.pcm) {
187 if (!PCM_REGISTERED(d) || CHN_EMPTY(d, channels.pcm))
208 CHN_INSERT_SORT_ASCEND(d, ch, channels.pcm);
238 CHN_FOREACH(tmp, d, channels.pcm) {
246 CHN_REMOVE(d, ch, channels.pcm);
301 CHN_FOREACH(ch, d, channels.pcm) {
321 * All channels are still sleeping. Sleep for a bit and try
334 } while (!CHN_EMPTY(d, channels.pcm));
588 CHN_INIT(d, channels.pcm);
589 CHN_INIT(d, channels
[all...]
/freebsd-current/usr.sbin/bluetooth/l2control/
H A Dl2cap.c203 r.channels = calloc(NG_L2CAP_MAX_CHAN_NUM,
205 if (r.channels == NULL) {
215 fprintf(stdout, "L2CAP channels:\n");
224 bdaddrpr(&r.channels[n].remote),
225 r.channels[n].scid, r.channels[n].dcid,
226 r.channels[n].psm, r.channels[n].imtu,
227 r.channels[n].omtu,
228 ch_state2str(r.channels[
[all...]
/freebsd-current/sys/dev/sound/pci/
H A Dhdsp-pcm.c90 return (0x000000ff); /* 8 channels single speed. */
92 return (0x000000aa); /* 4 channels (1,3,5,7) double speed. */
107 slot_map |= (0x03 << 8); /* 2 channels SPDIF. */
109 slot_map |= (0x03 << 10); /* 2 channels line. */
111 slot_map |= (0x0f << 12); /* 4 channels extension. */
121 slot_map |= (0x03 << 24); /* 2 channels SPDIF. */
460 unsigned int pos_end, unsigned int width, unsigned int channels)
467 pcm[pos * channels + slot];
474 unsigned int pos, unsigned int samples, unsigned int channels)
487 /* Only copy channels supporte
459 buffer_mux_write(uint32_t *dma, uint32_t *pcm, unsigned int pos, unsigned int pos_end, unsigned int width, unsigned int channels) argument
473 buffer_mux_port(uint32_t *dma, uint32_t *pcm, uint32_t subset, uint32_t slots, unsigned int pos, unsigned int samples, unsigned int channels) argument
504 buffer_demux_read(uint32_t *dma, uint32_t *pcm, unsigned int pos, unsigned int pos_end, unsigned int width, unsigned int channels) argument
518 buffer_demux_port(uint32_t *dma, uint32_t *pcm, uint32_t subset, uint32_t slots, unsigned int pos, unsigned int samples, unsigned int channels) argument
558 unsigned int channels; local
[all...]
H A Dhdspe-pcm.c444 unsigned int samples, unsigned int slots, unsigned int channels)
451 pcm[pos * channels + slot];
463 unsigned int channels, chan_pos; local
469 /* Channel position of the port subset and total number of channels. */
472 channels = hdspe_channel_count(ports, pcm_width);
479 buffer_mux_write(dma, pcm, pos, samples, 2, channels);
481 buffer_mux_write(dma, pcm, pos, samples, 4, channels);
483 buffer_mux_write(dma, pcm, pos, samples, 8, channels);
485 buffer_mux_write(dma, pcm, pos, samples, slots, channels);
490 unsigned int samples, unsigned int slots, unsigned int channels)
443 buffer_mux_write(uint32_t *dma, uint32_t *pcm, unsigned int pos, unsigned int samples, unsigned int slots, unsigned int channels) argument
489 buffer_demux_read(uint32_t *dma, uint32_t *pcm, unsigned int pos, unsigned int samples, unsigned int slots, unsigned int channels) argument
509 unsigned int channels, chan_pos; local
[all...]
/freebsd-current/contrib/wpa/src/ap/
H A Dmbo_ap.c37 char channels[200], *pos, *end; local
42 return; /* Not enough room for any channels */
53 os_memcpy(info->channels, buf, num_chan);
63 pos = channels;
64 end = pos + sizeof(channels);
77 " non-preferred channel list (op class %u, pref %u, reason code %u, channels %s)",
79 info->reason_code, channels);
145 info->channels[i],
H A Dhw_features.c37 os_free(hw_features[i].channels);
107 /* set flag for channels we can use in current regulatory
113 * Disable all channels that are marked not to allow
116 * Use radar channels only if the driver supports DFS.
118 if ((feature->channels[j].flag &
121 } else if (((feature->channels[j].flag &
125 (feature->channels[j].flag &
127 feature->channels[j].flag |=
131 if (feature->channels[j].flag & HOSTAPD_CHAN_DISABLED)
137 feature->channels[
[all...]
/freebsd-current/contrib/wpa/wpa_supplicant/
H A Dop_classes.c30 chan_is_6ghz = mode->channels[i].freq >= 5935 &&
31 mode->channels[i].freq <= 7115;
32 if (is_6ghz == chan_is_6ghz && mode->channels[i].chan == chan)
37 (mode->channels[i].flag & HOSTAPD_CHAN_DISABLED))
41 *flags = mode->channels[i].flag;
43 if (mode->channels[i].flag & HOSTAPD_CHAN_NO_IR)
60 * In 80 MHz, the bandwidth "spans" 12 channels (e.g., 36-48),
61 * so the center channel is 6 channels away from the start/end.
97 /* check all the channels are available */
133 * In 160 MHz, the bandwidth "spans" 28 channels (
327 u8 channels[] = { 42, 58, 106, 122, 138, 155, 171 }; local
[all...]
/freebsd-current/sys/contrib/dev/iwlwifi/mvm/
H A Dnvm.c453 struct_size(mcc_resp_v8, channels, n_channels)) {
457 resp_len = struct_size(resp_cp, channels, n_channels);
470 memcpy(resp_cp->channels, mcc_resp_v8->channels,
478 struct_size(mcc_resp_v4, channels, n_channels)) {
482 resp_len = struct_size(resp_cp, channels, n_channels);
496 memcpy(resp_cp->channels, mcc_resp_v4->channels,
503 struct_size(mcc_resp_v3, channels, n_channels)) {
507 resp_len = struct_size(resp_cp, channels, n_channel
[all...]
/freebsd-current/sys/dev/ahci/
H A Dahciem.c82 enc->channels = ctlr->channels;
155 for (c = 0; c < enc->channels; c++) {
207 for (i = 0; i < enc->channels * AHCI_NUM_LEDS; i++) {
246 for (i = 0; i < enc->channels; i++)
449 td->etype_maxelt = enc->channels;
460 ccb->ataio.cmd.sector_count >= (3 + enc->channels)) {
463 scsi_ulto2b(4 + 4 * (1 + enc->channels),
465 for (i = 0; i < enc->channels; i++) {
492 ccb->ataio.cmd.sector_count >= (3 + enc->channels)) {
[all...]
/freebsd-current/sys/arm/broadcom/bcm2835/
H A Dvc_vchi_audioserv_defs.h75 uint32_t channels; member in struct:__anon1071
/freebsd-current/sys/contrib/dev/iwlwifi/
H A Diwl-eeprom-parse.h58 struct ieee80211_channel channels[]; member in struct:iwl_nvm_data
H A Diwl-nvm-parse.h52 int num_of_ch, __le32 *channels, u16 fw_mcc,
/freebsd-current/sys/contrib/dev/iwlwifi/mei/
H A Diwl-mei.h49 uint32_t channels[110 /* IWL_NVM_NUM_CHANNELS_UHB */]; member in struct:iwl_mei_nvm

Completed in 464 milliseconds

12345678