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

12345

/freebsd-11.0-release/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
446 p2p_channels_to_freqs(const struct p2p_channels *channels, int *freq_list, unsigned int max_len) argument
[all...]
H A Dp2p_go_neg.c41 size_t channels; local
44 ch = &dev->channels;
68 channels = *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, &intersection);
81 (int) 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-11.0-release/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);
258 i = info->channels;
271 align = info->bps * info->channels;
282 info->apply(vol, matrix, info->channels, dst, j);
325 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
157 info->channels = AFMT_CHANNEL(f->desc->in);
160 info->ialign = info->ibps * info->channels;
164 info->oalign = info->obps * info->channels;
197 info->channels = (uint32_t)value;
198 info->ialign = info->ibps * info->channels;
199 info->oalign = info->obps * info->channels;
245 j *= info->channels;
H A Dfeeder_matrix.c300 AFMT_CHANNEL(info->in) != m_in->channels ||
301 AFMT_CHANNEL(info->out) != m_out->channels ||
302 m_in->channels < SND_CHN_MIN || m_in->channels > SND_CHN_MAX ||
303 m_out->channels < SND_CHN_MIN || m_out->channels > SND_CHN_MAX)
345 m_in->offset[i] < (int)m_in->channels)
361 * multiple channels, apply a slight attenuation to
553 * feeder_matrix_default_id(): For a given number of channels, return
555 * 6.0 are simply 6 channels, bu
[all...]
H A Dfeeder_eq.c121 uint32_t channels; member in struct:feed_eq_info
157 j = count * info->channels; \
174 j = info->channels; \
312 for (i = 0; i < info->channels; i++) {
361 info->channels = AFMT_CHANNEL(f->desc->in);
362 info->align = info->channels * AFMT_BPS(f->desc->in);
388 info->channels = (uint32_t)value;
389 info->align = info->channels * AFMT_BPS(f->desc->in);
586 CHN_FOREACH(c, d, channels.pcm.busy) {
645 CHN_FOREACH(c, d, channels
[all...]
H A Dsndstat.h43 if (CHN_EMPTY(d, channels.pcm)) { \
71 CHN_FOREACH(c, d, channels.pcm) { \
H A Dfeeder_rate.c123 int32_t channels; /* total channels */ member in struct:z_info
254 * Traverse all available channels on each device and try to
266 CHN_FOREACH(c, d, channels.pcm) {
433 (info->z_start * info->channels * info->bps), dst,
434 info->channels * info->bps);
439 cnt = info->channels * info->bps;
470 sx = info->z_delay + (info->z_start * info->channels * \
472 sy = sx - (info->channels * PCM_##BIT##_BPS); \
474 ch = info->channels; \
[all...]
H A Dsound.c178 CHN_FOREACH(c, d, channels.pcm) {
194 * channels with supported formats.
235 CHN_FOREACH(c, d, channels.pcm) {
312 CHN_FOREACH(c, d, channels.pcm) {
435 if (!PCM_REGISTERED(d) || CHN_EMPTY(d, channels.pcm))
530 CHN_FOREACH(ch, d, channels.pcm) {
621 CHN_INSERT_SORT_ASCEND(d, ch, channels.pcm);
655 CHN_FOREACH(tmp, d, channels.pcm) {
663 CHN_REMOVE(d, ch, channels.pcm);
725 ch = CHN_FIRST(d, channels
[all...]
H A Dfeeder_chain.c191 cdesc->current.matrix->channels, cdesc->current.matrix->ext);
310 cdesc->target.matrix->channels, cdesc->target.matrix->ext);
491 * feeder_build_mixer(): Chain software mixer for virtual channels.
529 #define FEEDER_BW(c, t) ((c)->t.matrix->channels * (c)->t.rate)
535 #define FEEDMATRIX_UP(c) ((c)->target.matrix->channels > \
536 (c)->current.matrix->channels)
537 #define FEEDMATRIX_DOWN(c) ((c)->target.matrix->channels < \
538 (c)->current.matrix->channels)
572 m->channels = AFMT_CHANNEL(fmt);
664 hwfmt = SND_FORMAT(hwfmt, hwmatrix->channels, hwmatri
[all...]
/freebsd-11.0-release/usr.sbin/bluetooth/l2control/
H A Dl2cap.c202 r.channels = calloc(NG_L2CAP_MAX_CHAN_NUM,
204 if (r.channels == NULL) {
214 fprintf(stdout, "L2CAP channels:\n");
223 bdaddrpr(&r.channels[n].remote),
224 r.channels[n].scid, r.channels[n].dcid,
225 r.channels[n].psm, r.channels[n].imtu,
226 r.channels[n].omtu,
227 ch_state2str(r.channels[
[all...]
/freebsd-11.0-release/sys/i386/include/
H A Dpcaudioio.h38 unsigned channels; /* # of channels (interleaved) */ member in struct:audio_prinfo
/freebsd-11.0-release/sys/dev/drm2/radeon/
H A Dr600_audio.c77 /* number of channels */
78 status.channels = (value & 0x7) + 1;
133 if (rdev->audio_status.channels != audio_status.channels ||
180 rdev->audio_status.channels = -1;
/freebsd-11.0-release/sys/dev/ahci/
H A Dahciem.c83 enc->channels = ctlr->channels;
155 for (c = 0; c < enc->channels; c++) {
206 for (i = 0; i < enc->channels * AHCI_NUM_LEDS; i++) {
241 for (i = 0; i < enc->channels; i++)
436 td->etype_maxelt = enc->channels;
446 ccb->ataio.cmd.sector_count >= (3 + enc->channels)) {
449 scsi_ulto2b(4 + 4 * (1 + enc->channels),
451 for (i = 0; i < enc->channels; i++) {
466 ccb->ataio.cmd.sector_count >= (3 + enc->channels)) {
[all...]
/freebsd-11.0-release/contrib/wpa/src/ap/
H A Dhw_features.c37 os_free(hw_features[i].channels);
104 /* set flag for channels we can use in current regulatory
110 * Disable all channels that are marked not to allow
113 * Use radar channels only if the driver supports DFS.
115 if ((feature->channels[j].flag &
118 } else if (((feature->channels[j].flag &
122 (feature->channels[j].flag &
124 feature->channels[j].flag |=
128 if (feature->channels[j].flag & HOSTAPD_CHAN_DISABLED)
134 feature->channels[
[all...]
H A Dacs.c90 * combined channel interference (e.g., HT40, which uses two channels) can be
118 * the target operational bandwidth and selected band. E.g., on 2.4 GHz channels
269 chan = &iface->current_mode->channels[i];
452 chan = &iface->current_mode->channels[i];
496 chan = &iface->current_mode->channels[i];
522 chan = &iface->current_mode->channels[i];
558 * Select commonly used channels 1, 6, 11 by default even if a neighboring
609 chan = &iface->current_mode->channels[i];
617 /* HT40 on 5 GHz has a limited set of primary channels as per
659 /* 2.4 GHz has overlapping 20 MHz channels
[all...]
H A Ddfs.c59 * time for CAC, so radar channels must be skipped when finding a new
86 * VHT80, valid channels based on center frequency:
91 * VHT160 valid channels based on center frequency:
112 wpa_printf(MSG_DEBUG, "Unknown width for %d channels", n_chans);
131 if (mode->channels[i].freq == freq)
132 return &mode->channels[i];
149 first_chan = &mode->channels[first_chan_idx];
193 wpa_printf(MSG_DEBUG, "DFS new chan checking %d channels", n_chans);
195 chan = &mode->channels[i];
197 /* Skip HT40/VHT incompatible channels */
[all...]
/freebsd-11.0-release/sys/dev/hyperv/vmbus/
H A Dhv_connection.c179 hv_vmbus_g_connection.channels = malloc(sizeof(hv_vmbus_channel*) *
226 free(hv_vmbus_g_connection.channels, M_DEVBUF);
245 free(hv_vmbus_g_connection.channels, M_DEVBUF);
275 channel = hv_vmbus_g_connection.channels[rel_id];
/freebsd-11.0-release/sys/arm/broadcom/bcm2835/
H A Dvc_vchi_audioserv_defs.h77 uint32_t channels; member in struct:__anon7247
/freebsd-11.0-release/sys/dev/ata/chipsets/
H A Data-jmicron.c108 ctlr->channels = ctlr->chip->cfg2;
126 ctlr->channels = ctlr->chip->cfg2;
H A Data-marvell.c139 ctlr->channels = 1;
178 ctlr->channels = 0;
/freebsd-11.0-release/sys/dev/ata/
H A Data-cbus.c55 int channels; member in struct:ata_cbus_controller
154 ctlr->channels = 1;
157 for (unit = 0; unit < ctlr->channels; unit++) {
227 for (unit = 0; unit < ctlr->channels; unit++) {
/freebsd-11.0-release/contrib/wpa/src/drivers/
H A Ddriver_nl80211_capa.c1049 channel = os_realloc_array(mode->channels,
1055 mode->channels = channel;
1065 phy_info_freq(mode, &mode->channels[idx], tb_freq);
1212 if (modes[m].channels[0].freq < 4000) {
1220 } else if (modes[m].channels[0].freq > 50000)
1252 mode->channels = os_malloc(mode11g->num_channels *
1254 if (mode->channels == NULL) {
1258 os_memcpy(mode->channels, mode11g->channels,
1264 os_free(mode->channels);
[all...]

Completed in 242 milliseconds

12345