crypto/openssh/umac.c
538
static void nh_transform(nh_ctx *hc, const UINT8 *buf, UINT32 nbytes)
crypto/openssh/umac.c
547
key = hc->nh_key + hc->bytes_hashed;
crypto/openssh/umac.c
548
nh_aux(key, buf, hc->state, nbytes);
crypto/openssh/umac.c
583
static void nh_reset(nh_ctx *hc)
crypto/openssh/umac.c
586
hc->bytes_hashed = 0;
crypto/openssh/umac.c
587
hc->next_data_empty = 0;
crypto/openssh/umac.c
588
hc->state[0] = 0;
crypto/openssh/umac.c
590
hc->state[1] = 0;
crypto/openssh/umac.c
593
hc->state[2] = 0;
crypto/openssh/umac.c
596
hc->state[3] = 0;
crypto/openssh/umac.c
603
static void nh_init(nh_ctx *hc, aes_int_key prf_key)
crypto/openssh/umac.c
606
kdf(hc->nh_key, prf_key, 1, sizeof(hc->nh_key));
crypto/openssh/umac.c
607
endian_convert_if_le(hc->nh_key, 4, sizeof(hc->nh_key));
crypto/openssh/umac.c
608
nh_reset(hc);
crypto/openssh/umac.c
613
static void nh_update(nh_ctx *hc, const UINT8 *buf, UINT32 nbytes)
crypto/openssh/umac.c
619
j = hc->next_data_empty;
crypto/openssh/umac.c
623
memcpy(hc->data+j, buf, i);
crypto/openssh/umac.c
624
nh_transform(hc,hc->data,HASH_BUF_BYTES);
crypto/openssh/umac.c
627
hc->bytes_hashed += HASH_BUF_BYTES;
crypto/openssh/umac.c
631
nh_transform(hc, buf, i);
crypto/openssh/umac.c
634
hc->bytes_hashed += i;
crypto/openssh/umac.c
638
memcpy(hc->data + j, buf, nbytes);
crypto/openssh/umac.c
639
hc->next_data_empty = j + nbytes;
crypto/openssh/umac.c
668
static void nh_final(nh_ctx *hc, UINT8 *result)
crypto/openssh/umac.c
679
if (hc->next_data_empty != 0) {
crypto/openssh/umac.c
680
nh_len = ((hc->next_data_empty + (L1_PAD_BOUNDARY - 1)) &
crypto/openssh/umac.c
682
zero_pad(hc->data + hc->next_data_empty,
crypto/openssh/umac.c
683
nh_len - hc->next_data_empty);
crypto/openssh/umac.c
684
nh_transform(hc, hc->data, nh_len);
crypto/openssh/umac.c
685
hc->bytes_hashed += hc->next_data_empty;
crypto/openssh/umac.c
686
} else if (hc->bytes_hashed == 0) {
crypto/openssh/umac.c
688
zero_pad(hc->data, L1_PAD_BOUNDARY);
crypto/openssh/umac.c
689
nh_transform(hc, hc->data, nh_len);
crypto/openssh/umac.c
692
nbits = (hc->bytes_hashed << 3);
crypto/openssh/umac.c
693
((UINT64 *)result)[0] = ((UINT64 *)hc->state)[0] + nbits;
crypto/openssh/umac.c
695
((UINT64 *)result)[1] = ((UINT64 *)hc->state)[1] + nbits;
crypto/openssh/umac.c
698
((UINT64 *)result)[2] = ((UINT64 *)hc->state)[2] + nbits;
crypto/openssh/umac.c
701
((UINT64 *)result)[3] = ((UINT64 *)hc->state)[3] + nbits;
crypto/openssh/umac.c
703
nh_reset(hc);
crypto/openssh/umac.c
708
static void nh(nh_ctx *hc, const UINT8 *buf, UINT32 padded_len,
crypto/openssh/umac.c
731
nh_aux(hc->nh_key, buf, result, padded_len);
crypto/openssh/umac.c
833
static void poly_hash(uhash_ctx_t hc, UINT32 data_in[])
crypto/openssh/umac.c
840
hc->poly_accum[i] = poly64(hc->poly_accum[i],
crypto/openssh/umac.c
841
hc->poly_key_8[i], p64 - 1);
crypto/openssh/umac.c
842
hc->poly_accum[i] = poly64(hc->poly_accum[i],
crypto/openssh/umac.c
843
hc->poly_key_8[i], (data[i] - 59));
crypto/openssh/umac.c
845
hc->poly_accum[i] = poly64(hc->poly_accum[i],
crypto/openssh/umac.c
846
hc->poly_key_8[i], data[i]);
lib/virtual_oss/bt/avdtp.c
267
retval = avdtpSendSyncCommand(cfg->hc, &info, AVDTP_DISCOVER, 0,
lib/virtual_oss/bt/avdtp.c
396
retval = avdtpGetCapabilities(cfg->hc, cfg->sep, &info);
lib/virtual_oss/bt/avdtp.c
459
(cfg->hc, cfg->sep, config, sizeof(config)) == 0) {
lib/virtual_oss/bt/avdtp.c
509
(cfg->hc, cfg->sep, config, sizeof(config)) == 0) {
lib/virtual_oss/bt/avdtp.c
598
if (avdtpGetPacket(cfg->hc, &info) != COMMAND)
lib/virtual_oss/bt/avdtp.c
604
avdtpSendDiscResponseAudio(cfg->hc, info.trans, ACPSEP, 1);
lib/virtual_oss/bt/avdtp.c
610
avdtpSendCapabilitiesResponseSBCForACP(cfg->hc, info.trans);
lib/virtual_oss/bt/avdtp.c
652
avdtpSendAccept(cfg->hc, info.trans, AVDTP_SET_CONFIGURATION);
lib/virtual_oss/bt/avdtp.c
670
retval = avdtpSendAccept(cfg->hc, info.trans, info.signalID);
lib/virtual_oss/bt/avdtp.c
681
retval = avdtpSendAccept(cfg->hc, info.trans, info.signalID);
lib/virtual_oss/bt/avdtp.c
693
retval = avdtpSendAccept(cfg->hc, info.trans, info.signalID);
lib/virtual_oss/bt/avdtp.c
704
retval = avdtpSendAccept(cfg->hc, info.trans, info.signalID);
lib/virtual_oss/bt/avdtp.c
716
avdtpSendReject(cfg->hc, info.trans, info.signalID);
lib/virtual_oss/bt/bt.c
166
if (cfg->hc > 0) {
lib/virtual_oss/bt/bt.c
167
avdtpAbort(cfg->hc, cfg->sep);
lib/virtual_oss/bt/bt.c
168
avdtpClose(cfg->hc, cfg->sep);
lib/virtual_oss/bt/bt.c
169
close(cfg->hc);
lib/virtual_oss/bt/bt.c
170
cfg->hc = -1;
lib/virtual_oss/bt/bt.c
497
cfg->hc = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BLUETOOTH_PROTO_L2CAP);
lib/virtual_oss/bt/bt.c
498
if (cfg->hc < 0) {
lib/virtual_oss/bt/bt.c
507
if (bind(cfg->hc, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
lib/virtual_oss/bt/bt.c
513
if (connect(cfg->hc, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
lib/virtual_oss/bt/bt.c
521
if (avdtpOpen(cfg->hc, cfg->sep)) {
lib/virtual_oss/bt/bt.c
583
if (avdtpStart(cfg->hc, cfg->sep)) {
lib/virtual_oss/bt/bt.c
598
if (cfg->hc > 0) {
lib/virtual_oss/bt/bt.c
599
close(cfg->hc);
lib/virtual_oss/bt/bt.c
600
cfg->hc = -1;
lib/virtual_oss/bt/bt.h
96
int hc;
stand/common/gfx_fb.c
1961
uint32_t hc = 0;
stand/common/gfx_fb.c
1963
uint32_t hc2 = (hc >> 9) & 0x7f;
stand/common/gfx_fb.c
1966
uint32_t offset_y = hc >> 16;
stand/common/gfx_fb.c
2040
hc += hcstep;
sys/dev/bwn/if_bwn.c
1816
const struct bwn_channel *hc = &ci->channels[i];
sys/dev/bwn/if_bwn.c
1819
hc->ieee, hc->freq, hc->maxTxPow, 0, bands);
sys/dev/hyperv/vmbus/aarch64/hyperv_aarch64.c
72
hypercall_page_setup(vm_paddr_t hc)
sys/dev/hyperv/vmbus/x86/hyperv_x86.c
116
uint64_t hc, hc_orig;
sys/dev/hyperv/vmbus/x86/hyperv_x86.c
124
hc = ((paddr >> PAGE_SHIFT) << MSR_HV_HYPERCALL_PGSHIFT) |
sys/dev/hyperv/vmbus/x86/hyperv_x86.c
126
wrmsr(MSR_HV_HYPERCALL, hc);
sys/dev/hyperv/vmbus/x86/hyperv_x86.c
131
hc = rdmsr(MSR_HV_HYPERCALL);
sys/dev/hyperv/vmbus/x86/hyperv_x86.c
132
if ((hc & MSR_HV_HYPERCALL_ENABLE) == 0) {
sys/dev/hyperv/vmbus/x86/hyperv_x86.c
144
uint64_t hc;
sys/dev/hyperv/vmbus/x86/hyperv_x86.c
146
hc = rdmsr(MSR_HV_HYPERCALL);
sys/dev/hyperv/vmbus/x86/hyperv_x86.c
147
wrmsr(MSR_HV_HYPERCALL, (hc & MSR_HV_HYPERCALL_RSVD_MASK));
sys/dev/malo/if_malo.c
1851
malo_mapchan(struct malo_hal_channel *hc, const struct ieee80211_channel *chan)
sys/dev/malo/if_malo.c
1853
hc->channel = chan->ic_ieee;
sys/dev/malo/if_malo.c
1855
*(uint32_t *)&hc->flags = 0;
sys/dev/malo/if_malo.c
1857
hc->flags.freqband = MALO_FREQ_BAND_2DOT4GHZ;
sys/dev/mvs/mvs.c
494
uint32_t ecfg, fcfg, hc, ltm, unkn;
sys/dev/mvs/mvs.c
542
hc = ATA_INL(ch->r_mem, EDMA_HC);
sys/dev/mvs/mvs.c
547
hc &= ~EDMA_IE_EDEVERR;
sys/dev/mvs/mvs.c
550
hc |= EDMA_IE_EDEVERR;
sys/dev/mvs/mvs.c
556
hc |= EDMA_IE_EDEVERR;
sys/dev/mvs/mvs.c
561
ATA_OUTL(ch->r_mem, EDMA_HC, hc);
sys/dev/mvs/mvs.h
101
#define PORT_BASE(hc) ((hc) * PORT_SIZE + PORT_OFFSET)
sys/dev/mvs/mvs.h
78
#define HC_BASE(hc) ((hc) * HC_SIZE + HC_OFFSET)
sys/dev/mwl/if_mwl.c
4316
const struct mwl_hal_channel *hc = &ci->channels[i];
sys/dev/mwl/if_mwl.c
4317
if (hc->ieee == ieee)
sys/dev/mwl/if_mwl.c
4318
return hc;
sys/dev/mwl/if_mwl.c
4334
const struct mwl_hal_channel *hc;
sys/dev/mwl/if_mwl.c
4353
hc = findhalchannel(ci, c->ic_ieee);
sys/dev/mwl/if_mwl.c
4354
if (hc != NULL) {
sys/dev/mwl/if_mwl.c
4355
if (c->ic_maxpower > 2*hc->maxTxPow)
sys/dev/mwl/if_mwl.c
4356
c->ic_maxpower = 2*hc->maxTxPow;
sys/dev/mwl/if_mwl.c
4364
hc = findhalchannel(ci, c->ic_extieee);
sys/dev/mwl/if_mwl.c
4365
if (hc != NULL) {
sys/dev/mwl/if_mwl.c
4366
if (c->ic_maxpower > 2*hc->maxTxPow)
sys/dev/mwl/if_mwl.c
4367
c->ic_maxpower = 2*hc->maxTxPow;
sys/dev/mwl/if_mwl.c
4392
const struct mwl_hal_channel *hc = &ci->channels[i];
sys/dev/mwl/if_mwl.c
4395
hc->ieee, hc->maxTxPow, flags);
sys/dev/mwl/if_mwl.c
4409
const struct mwl_hal_channel *hc = &ci->channels[i];
sys/dev/mwl/if_mwl.c
4412
hc->ieee, hc->freq, hc->maxTxPow, 0, bands);
sys/dev/mwl/if_mwl.c
938
mwl_mapchan(MWL_HAL_CHANNEL *hc, const struct ieee80211_channel *chan)
sys/dev/mwl/if_mwl.c
940
hc->channel = chan->ic_ieee;
sys/dev/mwl/if_mwl.c
942
*(uint32_t *)&hc->channelFlags = 0;
sys/dev/mwl/if_mwl.c
944
hc->channelFlags.FreqBand = MWL_FREQ_BAND_2DOT4GHZ;
sys/dev/mwl/if_mwl.c
946
hc->channelFlags.FreqBand = MWL_FREQ_BAND_5GHZ;
sys/dev/mwl/if_mwl.c
948
hc->channelFlags.ChnlWidth = MWL_CH_40_MHz_WIDTH;
sys/dev/mwl/if_mwl.c
950
hc->channelFlags.ExtChnlOffset = MWL_EXT_CH_ABOVE_CTRL_CH;
sys/dev/mwl/if_mwl.c
952
hc->channelFlags.ExtChnlOffset = MWL_EXT_CH_BELOW_CTRL_CH;
sys/dev/mwl/if_mwl.c
954
hc->channelFlags.ChnlWidth = MWL_CH_20_MHz_WIDTH;
sys/dev/mwl/mwlhal.c
1066
const struct mwl_hal_channel *hc;
sys/dev/mwl/mwlhal.c
1079
hc = ((unsigned)i < ci->nchannels) ? &ci->channels[i] : NULL;
sys/dev/mwl/mwlhal.c
1091
hc = (i < ci->nchannels) ? &ci->channels[i] : NULL;
sys/dev/mwl/mwlhal.c
1093
hc = NULL;
sys/dev/mwl/mwlhal.c
1094
return hc;
sys/dev/mwl/mwlhal.c
1102
const struct mwl_hal_channel *hc;
sys/dev/mwl/mwlhal.c
1105
hc = findchannel(mh, c);
sys/dev/mwl/mwlhal.c
1106
if (hc == NULL) {
sys/dev/mwl/mwlhal.c
1122
pCmd->PowerLevelList[i++] = htole16(hc->targetPowers[0]);
sys/dev/mwl/mwlhal.c
1124
uint16_t pow = hc->targetPowers[i];
sys/dev/mwl/mwlhal.c
2011
setmaxtxpow(struct mwl_hal_channel *hc, int i, int maxix)
sys/dev/mwl/mwlhal.c
2013
hc->maxTxPow = hc->targetPowers[i];
sys/dev/mwl/mwlhal.c
2015
if (hc->targetPowers[i] > hc->maxTxPow)
sys/dev/mwl/mwlhal.c
2016
hc->maxTxPow = hc->targetPowers[i];
sys/dev/mwl/mwlhal.c
2031
struct mwl_hal_channel *hc;
sys/dev/mwl/mwlhal.c
2040
hc = &ci->channels[j];
sys/dev/mwl/mwlhal.c
2041
hc->freq = f;
sys/dev/mwl/mwlhal.c
2042
hc->ieee = table[i];
sys/dev/mwl/mwlhal.c
2043
memcpy(hc->targetPowers, &table[i], 4);
sys/dev/mwl/mwlhal.c
2044
setmaxtxpow(hc, 1, 4); /* NB: col 1 is the freq, skip*/
sys/dev/mwl/mwlhal.c
2072
struct mwl_hal_channel *hc = &ci->channels[j];
sys/dev/mwl/mwlhal.c
2073
hc->ieee = 1+j;
sys/dev/mwl/mwlhal.c
2074
hc->freq = ieee2mhz(1+j);
sys/dev/mwl/mwlhal.c
2075
memcpy(hc->targetPowers, &table[i], 4);
sys/dev/mwl/mwlhal.c
2076
setmaxtxpow(hc, 0, 4);
sys/dev/random/random_harvestq.c
175
struct harvest_context *hc;
sys/dev/random/random_harvestq.c
177
hc = &harvest_context;
sys/dev/random/random_harvestq.c
184
buf = &hc->hc_entropy_buf[hc->hc_active_buf];
sys/dev/random/random_harvestq.c
187
hc->hc_active_buf = (hc->hc_active_buf + 1) %
sys/dev/random/random_harvestq.c
188
nitems(hc->hc_entropy_buf);
sys/dev/random/random_harvestq.c
198
if (hc->hc_entropy_fast_accumulator.buf[i]) {
sys/dev/random/random_harvestq.c
199
random_harvest_direct(&hc->hc_entropy_fast_accumulator.buf[i],
sys/dev/random/random_harvestq.c
200
sizeof(hc->hc_entropy_fast_accumulator.buf[0]), RANDOM_UMA);
sys/dev/random/random_harvestq.c
201
hc->hc_entropy_fast_accumulator.buf[i] = 0;
sys/dev/random/random_harvestq.c
205
tsleep_sbt(&hc->hc_kthread_proc, 0, "-",
sys/dev/random/random_harvestq.c
209
wakeup(&hc->hc_kthread_proc);
sys/dev/random/random_harvestq.c
849
struct harvest_context *hc;
sys/dev/random/random_harvestq.c
856
hc = &harvest_context;
sys/dev/random/random_harvestq.c
858
buf = &hc->hc_entropy_buf[hc->hc_active_buf];
sys/dev/random/random_harvestq.c
863
event->he_destination = hc->hc_destination[origin]++;
sys/dev/sound/pci/hdsp-pcm.c
1054
if (scp->hc->ports & HDSP_CHAN_9632_ALL)
sys/dev/sound/pci/hdsp-pcm.c
1056
else if (scp->hc->ports & HDSP_CHAN_9652_ALL)
sys/dev/sound/pci/hdsp-pcm.c
1060
device_set_descf(dev, "HDSP %s [%s]", buf, scp->hc->descr);
sys/dev/sound/pci/hdsp-pcm.c
1067
if (hdsp_port_slot_count_max(scp->hc->ports) > HDSP_MATRIX_MAX)
sys/dev/sound/pci/hdsp-pcm.c
1074
play = (hdsp_channel_play_ports(scp->hc)) ? 1 : 0;
sys/dev/sound/pci/hdsp-pcm.c
1075
rec = (hdsp_channel_rec_ports(scp->hc)) ? 1 : 0;
sys/dev/sound/pci/hdsp-pcm.c
201
hdsp_channel_play_ports(struct hdsp_channel *hc)
sys/dev/sound/pci/hdsp-pcm.c
203
return (hc->ports & (HDSP_CHAN_9632_ALL | HDSP_CHAN_9652_ALL));
sys/dev/sound/pci/hdsp-pcm.c
207
hdsp_channel_rec_ports(struct hdsp_channel *hc)
sys/dev/sound/pci/hdsp-pcm.c
209
return (hc->ports & (HDSP_CHAN_9632_ALL | HDSP_CHAN_9652_ALL));
sys/dev/sound/pci/hdsp-pcm.c
318
if (hdsp_channel_play_ports(scp->hc))
sys/dev/sound/pci/hdsp-pcm.c
321
if (hdsp_channel_rec_ports(scp->hc))
sys/dev/sound/pci/hdsp-pcm.c
707
ch->ports = hdsp_channel_play_ports(scp->hc);
sys/dev/sound/pci/hdsp-pcm.c
709
ch->ports = hdsp_channel_rec_ports(scp->hc);
sys/dev/sound/pci/hdsp.c
891
scp->hc = &chan_map[i];
sys/dev/sound/pci/hdsp.h
220
struct hdsp_channel *hc;
sys/dev/sound/pci/hdspe-pcm.c
1045
if (scp->hc->ports & HDSPE_CHAN_AIO_ALL)
sys/dev/sound/pci/hdspe-pcm.c
1047
else if (scp->hc->ports & HDSPE_CHAN_RAY_ALL)
sys/dev/sound/pci/hdspe-pcm.c
1051
device_set_descf(dev, "HDSPe %s [%s]", buf, scp->hc->descr);
sys/dev/sound/pci/hdspe-pcm.c
1058
if (hdspe_channel_count(scp->hc->ports, 8) > HDSPE_MATRIX_MAX)
sys/dev/sound/pci/hdspe-pcm.c
1065
play = (hdspe_channel_play_ports(scp->hc)) ? 1 : 0;
sys/dev/sound/pci/hdspe-pcm.c
1066
rec = (hdspe_channel_rec_ports(scp->hc)) ? 1 : 0;
sys/dev/sound/pci/hdspe-pcm.c
302
if (hdspe_channel_play_ports(scp->hc))
sys/dev/sound/pci/hdspe-pcm.c
305
if (hdspe_channel_rec_ports(scp->hc))
sys/dev/sound/pci/hdspe-pcm.c
698
ch->ports = hdspe_channel_play_ports(scp->hc);
sys/dev/sound/pci/hdspe-pcm.c
700
ch->ports = hdspe_channel_rec_ports(scp->hc);
sys/dev/sound/pci/hdspe-pcm.c
84
hdspe_channel_play_ports(struct hdspe_channel *hc)
sys/dev/sound/pci/hdspe-pcm.c
86
return (hc->ports & (HDSPE_CHAN_AIO_ALL | HDSPE_CHAN_RAY_ALL));
sys/dev/sound/pci/hdspe-pcm.c
90
hdspe_channel_rec_ports(struct hdspe_channel *hc)
sys/dev/sound/pci/hdspe-pcm.c
92
return (hc->ports & (HDSPE_CHAN_AIO_ALL_REC | HDSPE_CHAN_RAY_ALL));
sys/dev/sound/pci/hdspe.c
783
scp->hc = &chan_map[i];
sys/dev/sound/pci/hdspe.h
211
struct hdspe_channel *hc;
sys/dev/sym/sym_hipd.c
599
int hc = VTOB_HASH_CODE(vaddr);
sys/dev/sym/sym_hipd.c
602
vbp->next = mp->vtob[hc];
sys/dev/sym/sym_hipd.c
603
mp->vtob[hc] = vbp;
sys/dev/sym/sym_hipd.c
619
int hc = VTOB_HASH_CODE(m);
sys/dev/sym/sym_hipd.c
621
vbpp = &mp->vtob[hc];
sys/dev/sym/sym_hipd.c
723
int hc = VTOB_HASH_CODE(m);
sys/dev/sym/sym_hipd.c
730
vp = mp->vtob[hc];
sys/netpfil/pf/pf.c
3868
u_int16_t *ic, u_int16_t *hc, u_int8_t u, sa_family_t af)
sys/netpfil/pf/pf.c
3929
*hc = pf_cksum_fixup(pf_cksum_fixup(*hc,
usr.sbin/pmcstat/pmcpl_gprof.c
418
HISTCOUNTER *hc;
usr.sbin/pmcstat/pmcpl_gprof.c
512
hc = (HISTCOUNTER *) ((uintptr_t) pgf->pgf_gmondata +
usr.sbin/pmcstat/pmcpl_gprof.c
516
if (hc[bucket] < HISTCOUNTER_MAX)
usr.sbin/pmcstat/pmcpl_gprof.c
517
hc[bucket]++;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
157
if (c->cfg.hc != -1)
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
158
close(c->cfg.hc);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
178
c->cfg.hc = accept(r->fd_listen, (struct sockaddr *)&c->peer_addr, &addrlen);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
180
message("Accepted control connection, %d\n", c->cfg.hc);
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
181
if (c->cfg.hc < 0) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
275
pfd[1].fd = c->cfg.hc;