| /freebsd/sys/dev/firewire/ |
| H A D | firewire.c | 167 fw_noderesolve_nodeid(struct firewire_comm *fc, int dst) in fw_noderesolve_nodeid() argument 171 FW_GLOCK(fc); in fw_noderesolve_nodeid() 172 STAILQ_FOREACH(fwdev, &fc->devices, link) in fw_noderesolve_nodeid() 175 FW_GUNLOCK(fc); in fw_noderesolve_nodeid() 184 fw_noderesolve_eui64(struct firewire_comm *fc, struct fw_eui64 *eui) in fw_noderesolve_eui64() argument 188 FW_GLOCK(fc); in fw_noderesolve_eui64() 189 STAILQ_FOREACH(fwdev, &fc->devices, link) in fw_noderesolve_eui64() 192 FW_GUNLOCK(fc); in fw_noderesolve_eui64() 205 fw_asyreq(struct firewire_comm *fc, int sub, struct fw_xfer *xfer) in fw_asyreq() argument 223 info = &fc->tcode[tcode]; in fw_asyreq() [all …]
|
| H A D | fwdev.c | 86 struct firewire_comm *fc; member 95 fwdev_allocbuf(struct firewire_comm *fc, struct fw_xferq *q, in fwdev_allocbuf() argument 107 q->buf = fwdma_malloc_multiseg(fc, sizeof(uint32_t), in fwdev_allocbuf() 170 FW_GLOCK(sc->fc); in fw_open() 172 FW_GUNLOCK(sc->fc); in fw_open() 177 FW_GUNLOCK(sc->fc); in fw_open() 190 d->fc = sc->fc; in fw_open() 200 struct firewire_comm *fc; in fw_close() local 210 fc = d->fc; in fw_close() 215 fw_bindremove(fc, fwb); in fw_close() [all …]
|
| H A D | fw_helpers.h | 13 struct firewire_comm *fc = xfer->fc; in fw_xfer_timeout_cancel() local 28 FW_GLOCK(fc); in fw_xfer_timeout_cancel() 37 FW_GUNLOCK(fc); in fw_xfer_timeout_cancel() 40 mtx_lock(&fc->tlabel_lock); in fw_xfer_timeout_cancel() 42 STAILQ_FOREACH(txfer, &fc->tlabels[xfer->tl], tlabel) { in fw_xfer_timeout_cancel() 47 STAILQ_REMOVE(&fc->tlabels[xfer->tl], xfer, in fw_xfer_timeout_cancel() 53 mtx_unlock(&fc->tlabel_lock); in fw_xfer_timeout_cancel() 57 mtx_lock(&fc->wait_lock); in fw_xfer_timeout_cancel() 60 mtx_unlock(&fc->wait_lock); in fw_xfer_timeout_cancel() 78 struct firewire_comm *fc = xfer->fc; in fw_xferwait_timo() local [all …]
|
| H A D | fwohci.c | 290 fwohci_set_bus_manager(struct firewire_comm *fc, u_int node) in fwohci_set_bus_manager() argument 292 struct fwohci_softc *sc = (struct fwohci_softc *)fc; in fwohci_set_bus_manager() 310 device_printf(sc->fc.dev, "%s: %d->%d (loop=%d)\n", in fwohci_set_bus_manager() 335 device_printf(sc->fc.dev, "%s: failed(1).\n", __func__); in fwphy_rddata() 346 device_printf(sc->fc.dev, "%s: failed(2).\n", __func__); in fwphy_rddata() 353 device_printf(sc->fc.dev, in fwphy_rddata() 365 struct fwohci_softc *fc; in fwohci_ioctl() local 375 fc = (struct fwohci_softc *)sc->fc; in fwohci_ioctl() 384 OWRITE(fc, reg->addr, reg->data); in fwohci_ioctl() 385 reg->data = OREAD(fc, reg->addr); in fwohci_ioctl() [all …]
|
| H A D | if_fwip.c | 120 struct firewire_comm *fc; in fwip_poll() local 126 fc = fwip->fd.fc; in fwip_poll() 127 fc->poll(fc, (cmd == POLL_AND_CHECK_STATUS)?0:1, count); in fwip_poll() 170 fwip->fd.fc = fw_get_comm(dev); in fwip_attach() 172 tx_speed = fwip->fd.fc->speed; in fwip_attach() 184 hwaddr->sender_unique_ID_hi = htonl(fwip->fd.fc->eui.hi); in fwip_attach() 185 hwaddr->sender_unique_ID_lo = htonl(fwip->fd.fc->eui.lo); in fwip_attach() 186 hwaddr->sender_max_rec = fwip->fd.fc->maxrec; in fwip_attach() 187 hwaddr->sspd = fwip->fd.fc->speed; in fwip_attach() 213 struct firewire_comm *fc; in fwip_stop() local [all …]
|
| H A D | if_fwe.c | 103 struct firewire_comm *fc; in fwe_poll() local 109 fc = fwe->fd.fc; in fwe_poll() 110 fc->poll(fc, (cmd == POLL_AND_CHECK_STATUS)?0:1, count); in fwe_poll() 155 fwe->fd.fc = fw_get_comm(dev); in fwe_attach() 157 tx_speed = fwe->fd.fc->speed; in fwe_attach() 171 eui = &fwe->fd.fc->eui; in fwe_attach() 207 struct firewire_comm *fc; in fwe_stop() local 212 fc = fwe->fd.fc; in fwe_stop() 215 xferq = fc->ir[fwe->dma_ch]; in fwe_stop() 218 fc->irx_disable(fc, fwe->dma_ch); in fwe_stop() [all …]
|
| H A D | firewirereg.h | 60 struct firewire_comm *fc; member 86 struct firewire_comm *fc; member 93 struct firewire_comm *fc; member 114 struct firewire_comm *fc; member 200 #define FW_GMTX(fc) (&(fc)->mtx) argument 201 #define FW_GLOCK(fc) mtx_lock(FW_GMTX(fc)) argument 202 #define FW_GUNLOCK(fc) mtx_unlock(FW_GMTX(fc)) argument 203 #define FW_GLOCK_ASSERT(fc) mtx_assert(FW_GMTX(fc), MA_OWNED) argument 258 struct firewire_comm *fc; member 287 struct firewire_comm *fc; member [all …]
|
| H A D | fw_net.h | 32 fw_net_alloc_txfer(struct firewire_comm *fc, int speed, in fw_net_alloc_txfer() argument 42 xfer->fc = fc; in fw_net_alloc_txfer() 83 struct firewire_comm *fc, poll_handler_t *poll_fn) in fw_net_poll_ioctl() argument 93 fc->set_intr(fc, 0); in fw_net_poll_ioctl() 101 fc->set_intr(fc, 1); in fw_net_poll_ioctl()
|
| H A D | fwisound.c | 73 err = fw_read_quadlet(sc->fd.fc, M_FWISOUND, dst, spd, in fwisound_read_quadlet() 97 err = fw_write_quadlet(sc->fd.fc, M_FWISOUND, dst, spd, in fwisound_write_quadlet() 201 struct firewire_comm *fc = sc->fd.fc; in fwisound_iso_start() local 221 dma_ch = fw_open_isodma(fc, 0); in fwisound_iso_start() 230 fc->ir[dma_ch]->flag &= ~FWXFERQ_OPEN; in fwisound_iso_start() 235 xferq = fc->ir[dma_ch]; in fwisound_iso_start() 273 err = fc->irx_enable(fc, dma_ch); in fwisound_iso_start() 283 fc->irx_disable(fc, dma_ch); in fwisound_iso_start() 306 struct firewire_comm *fc = sc->fd.fc; in fwisound_iso_stop() local 319 xferq = fc->ir[dma_ch]; in fwisound_iso_stop() [all …]
|
| /freebsd/sys/compat/linuxkpi/common/include/linux/ |
| H A D | ieee80211.h | 882 ieee80211_is_ctl(__le16 fc) in ieee80211_is_ctl() argument 886 fc &= htole16(IEEE80211_FC0_TYPE_MASK); in ieee80211_is_ctl() 889 return (fc == v); in ieee80211_is_ctl() 894 ieee80211_is_data(__le16 fc) in ieee80211_is_data() argument 898 fc &= htole16(IEEE80211_FC0_TYPE_MASK); in ieee80211_is_data() 901 return (fc == v); in ieee80211_is_data() 906 ieee80211_is_data_qos(__le16 fc) in ieee80211_is_data_qos() argument 910 fc &= htole16(IEEE80211_FC0_SUBTYPE_QOS_DATA | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_data_qos() 913 return (fc == v); in ieee80211_is_data_qos() 918 ieee80211_is_mgmt(__le16 fc) in ieee80211_is_mgmt() argument [all …]
|
| /freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zpl_super.c | 335 zpl_test_super(struct super_block *s, struct fs_context *fc) in zpl_test_super() argument 338 objset_t *os = fc->sget_key; in zpl_test_super() 613 zpl_fs_parse(struct fs_context *fc, struct fs_parameter *param, in zpl_fs_parse() argument 617 return (fs_parse(fc, zpl_param_spec, param, result)); in zpl_fs_parse() 623 return (fs_parse(fc, &zpl_param_desc, param, result)); in zpl_fs_parse() 628 zpl_parse_param(struct fs_context *fc, struct fs_parameter *param) in zpl_parse_param() argument 630 vfs_t *vfs = fc->fs_private; in zpl_parse_param() 633 int opt = zpl_fs_parse(fc, param, &result); in zpl_parse_param() 646 if (fc->source != NULL) { in zpl_parse_param() 651 fc->source = param->string; in zpl_parse_param() [all …]
|
| /freebsd/sys/dev/hid/ |
| H A D | hconf.c | 137 struct feature_control *fc; in hconf_set_feature_control() local 144 fc = &sc->feature_controls[ctrl_id]; in hconf_set_feature_control() 145 if (fc->rlen <= 1) in hconf_set_feature_control() 148 fbuf = malloc(fc->rlen, M_TEMP, M_WAITOK | M_ZERO); in hconf_set_feature_control() 155 bzero(fbuf + 1, fc->rlen - 1); in hconf_set_feature_control() 160 if (ofc->rid != fc->rid) in hconf_set_feature_control() 162 KASSERT(fc->rlen == ofc->rlen, in hconf_set_feature_control() 164 fc->rid, fc->rlen, ofc->rlen)); in hconf_set_feature_control() 169 fbuf[0] = fc->rid; in hconf_set_feature_control() 171 error = hid_set_report(sc->dev, fbuf, fc->rlen, in hconf_set_feature_control() [all …]
|
| /freebsd/contrib/processor-trace/libipt/src/ |
| H A D | pt_time.c | 111 static int pt_time_ctc_fc(uint64_t *fc, uint64_t ctc, in pt_time_ctc_fc() argument 116 if (!fc || !config) in pt_time_ctc_fc() 126 *fc = (ctc * ebx) / eax; in pt_time_ctc_fc() 144 time->fc = 0ull; in pt_time_update_tsc() 179 uint64_t fc; in pt_time_update_tma() local 197 fc = packet->fc; in pt_time_update_tma() 208 time->base -= fc; in pt_time_update_tma() 209 time->fc += fc; in pt_time_update_tma() 266 if (time->fc || time->lost_cyc || !have_mtc) in pt_time_update_mtc() 271 time->fc = 0ull; in pt_time_update_mtc() [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/mld/tests/ |
| H A D | rx.c | 17 __le16 fc; member 38 .fc = __cpu_to_le16(IEEE80211_FTYPE_CTL), 48 .fc = __cpu_to_le16(IEEE80211_FTYPE_DATA | 59 .fc = __cpu_to_le16(IEEE80211_FTYPE_DATA), 70 .fc = __cpu_to_le16(IEEE80211_FTYPE_DATA | 81 .fc = __cpu_to_le16(IEEE80211_FTYPE_DATA | 97 .fc = __cpu_to_le16(IEEE80211_FTYPE_DATA | 113 .fc = __cpu_to_le16(IEEE80211_FTYPE_DATA | 130 .fc = __cpu_to_le16(IEEE80211_FTYPE_DATA | 144 .fc = __cpu_to_le16(IEEE80211_FTYPE_DATA), [all …]
|
| H A D | agg.c | 25 u16 fc; member 66 .fc = FC_QOS_DATA, 83 .fc = FC_QOS_DATA, 100 .fc = IEEE80211_FTYPE_DATA, 116 .fc = FC_QOS_DATA, 133 .fc = FC_QOS_DATA, 152 .fc = FC_QOS_DATA, 169 .fc = FC_QOS_DATA, 191 .fc = FC_QOS_DATA, 213 .fc = FC_QOS_DATA, [all …]
|
| /freebsd/contrib/tcpdump/ |
| H A D | print-fddi.c | 160 print_fddi_fc(netdissect_options *ndo, u_char fc) in print_fddi_fc() argument 162 switch (fc) { in print_fddi_fc() 193 switch (fc & FDDIFC_CLFF) { in print_fddi_fc() 196 ND_PRINT("mac%1x ", fc & FDDIFC_ZZZZ); in print_fddi_fc() 200 ND_PRINT("smt%1x ", fc & FDDIFC_ZZZZ); in print_fddi_fc() 204 ND_PRINT("async%1x ", fc & FDDIFC_ZZZZ); in print_fddi_fc() 208 ND_PRINT("sync%1x ", fc & FDDIFC_ZZZZ); in print_fddi_fc() 212 ND_PRINT("imp_async%1x ", fc & FDDIFC_ZZZZ); in print_fddi_fc() 216 ND_PRINT("imp_sync%1x ", fc & FDDIFC_ZZZZ); in print_fddi_fc() 220 ND_PRINT("%02x ", fc); in print_fddi_fc() [all …]
|
| H A D | print-802_11.c | 162 #define FC_VERSION(fc) ((fc) & 0x3) argument 163 #define FC_TYPE(fc) (((fc) >> 2) & 0x3) argument 164 #define FC_SUBTYPE(fc) (((fc) >> 4) & 0xF) argument 165 #define FC_TO_DS(fc) ((fc) & 0x0100) argument 166 #define FC_FROM_DS(fc) ((fc) & 0x0200) argument 167 #define FC_MORE_FLAG(fc) ((fc) & 0x0400) argument 168 #define FC_RETRY(fc) ((fc) & 0x0800) argument 169 #define FC_POWER_MGMT(fc) ((fc) & 0x1000) argument 170 #define FC_MORE_DATA(fc) ((fc) & 0x2000) argument 171 #define FC_PROTECTED(fc) ((fc) & 0x4000) argument [all …]
|
| H A D | print-802_15_4.c | 410 #define FC_FRAME_TYPE(fc) ((fc) & 0x7) argument 411 #define FC_FRAME_VERSION(fc) (((fc) >> 12) & 0x3) argument 1794 uint16_t fc) in ieee802_15_4_std_frames() argument 1836 frame_version = FC_FRAME_VERSION(fc); in ieee802_15_4_std_frames() 1837 frame_type = FC_FRAME_TYPE(fc); in ieee802_15_4_std_frames() 1841 if (CHECK_BIT(fc, 3)) { ND_PRINT("Security Enabled, "); } in ieee802_15_4_std_frames() 1842 if (CHECK_BIT(fc, 4)) { ND_PRINT("Frame Pending, "); } in ieee802_15_4_std_frames() 1843 if (CHECK_BIT(fc, 5)) { ND_PRINT("AR, "); } in ieee802_15_4_std_frames() 1844 if (CHECK_BIT(fc, 6)) { ND_PRINT("PAN ID Compression, "); } in ieee802_15_4_std_frames() 1845 if (CHECK_BIT(fc, 8)) { ND_PRINT("Sequence Number Suppression, "); } in ieee802_15_4_std_frames() [all …]
|
| /freebsd/crypto/openssl/crypto/hmac/ |
| H A D | hmac_s390x.c | 26 int fc; in s390x_fc_from_md() local 29 fc = S390X_HMAC_SHA_224; in s390x_fc_from_md() 31 fc = S390X_HMAC_SHA_256; in s390x_fc_from_md() 33 fc = S390X_HMAC_SHA_384; in s390x_fc_from_md() 35 fc = S390X_HMAC_SHA_512; in s390x_fc_from_md() 39 if ((OPENSSL_s390xcap_P.kmac[1] & S390X_CAPBIT(fc)) == 0) in s390x_fc_from_md() 42 return fc; in s390x_fc_from_md() 47 unsigned int fc = ctx->plat.s390x.fc; in s390x_call_kmac() local 50 fc |= S390X_KMAC_IKP; in s390x_call_kmac() 53 fc |= S390X_KMAC_IIMP; in s390x_call_kmac() [all …]
|
| /freebsd/crypto/openssl/crypto/ |
| H A D | s390xcpuid.pl | 302 my ($in,$len,$fc,$param) = map("%r$_",(2..5)); 308 llgfr %r0,$fc 323 my ($in,$inlen,$out,$outlen,$fc) = map("%r$_",(2..6)); 329 llgfr %r0,$fc 344 my ($in,$len,$out,$fc,$param) = map("%r$_",(2..6)); 350 lr %r0,$fc 365 my ($in,$len,$fc,$param) = map("%r$_",(2..5)); 371 lr %r0,$fc 386 my ($in,$len,$out,$fc,$param) = map("%r$_",(2..6)); 392 lr %r0,$fc [all …]
|
| H A D | s390x_arch.h | 17 void s390x_kimd(const unsigned char *in, size_t len, unsigned int fc, 20 size_t outlen, unsigned int fc, void *param); 22 unsigned int fc, void *param); 23 void s390x_kmac(const unsigned char *in, size_t len, unsigned int fc, 26 unsigned int fc, void *param); 28 unsigned int fc, void *param); 30 size_t len, unsigned char *out, unsigned int fc, void *param); 31 int s390x_pcc(unsigned int fc, void *param); 32 int s390x_kdsa(unsigned int fc, void *param, const unsigned char *in,
|
| /freebsd/crypto/openssl/providers/implementations/ciphers/ |
| H A D | cipher_aes_xts_s390x.inc | 24 unsigned int fc, offs; 28 fc = S390X_XTS_AES_128_MSA10; 32 fc = S390X_XTS_AES_256_MSA10; 39 if (!(OPENSSL_s390xcap_P.km[1] && S390X_CAPBIT(fc))) 64 xctx->plat.s390x.fc = fc | dec; 73 xctx->plat.s390x.fc = 0; 111 unsigned int fc = xctx->plat.s390x.fc; 141 s390x_km(in, len_complete, out, fc, param); 147 if (fc & S390X_DECRYPT) { 149 s390x_km(tmp[0], AES_BLOCK_SIZE, drop, fc, param); [all …]
|
| /freebsd/sys/dev/sound/pcm/ |
| H A D | feeder_chain.c | 136 struct feeder_class *fc; in feeder_build_format() local 144 fc = feeder_getclass(FEEDER_FORMAT); in feeder_build_format() 145 if (fc == NULL) { in feeder_build_format() 154 ret = feeder_add(c, fc, desc); in feeder_build_format() 202 struct feeder_class *fc; in feeder_build_rate() local 215 fc = feeder_getclass(FEEDER_RATE); in feeder_build_rate() 216 if (fc == NULL) { in feeder_build_rate() 225 ret = feeder_add(c, fc, desc); in feeder_build_rate() 278 struct feeder_class *fc; in feeder_build_matrix() local 291 fc = feeder_getclass(FEEDER_MATRIX); in feeder_build_matrix() [all …]
|
| /freebsd/crypto/openssl/providers/implementations/digests/ |
| H A D | sha3_prov.c | 194 unsigned int fc; in s390x_sha3_absorb() local 199 fc = ctx->pad; in s390x_sha3_absorb() 200 fc |= ctx->xof_state == XOF_STATE_INIT ? S390X_KIMD_NIP : 0; in s390x_sha3_absorb() 202 s390x_kimd(inp, len - rem, fc, ctx->A); in s390x_sha3_absorb() 210 unsigned int fc; in s390x_sha3_final() local 216 fc = ctx->pad | S390X_KLMD_DUFOP; in s390x_sha3_final() 217 fc |= ctx->xof_state == XOF_STATE_INIT ? S390X_KLMD_NIP : 0; in s390x_sha3_final() 219 s390x_klmd(ctx->buf, ctx->bufsz, NULL, 0, fc, ctx->A); in s390x_sha3_final() 227 unsigned int fc; in s390x_shake_final() local 233 fc = ctx->pad | S390X_KLMD_DUFOP; in s390x_shake_final() [all …]
|
| /freebsd/contrib/xz/src/liblzma/common/ |
| H A D | filter_common.c | 315 const lzma_filter_coder *const fc in lzma_raw_coder_init() local 317 if (fc == NULL || fc->init == NULL) in lzma_raw_coder_init() 321 filters[j].init = fc->init; in lzma_raw_coder_init() 326 const lzma_filter_coder *const fc in lzma_raw_coder_init() local 328 if (fc == NULL || fc->init == NULL) in lzma_raw_coder_init() 332 filters[i].init = fc->init; in lzma_raw_coder_init() 365 const lzma_filter_coder *const fc in lzma_raw_coder_memusage() local 367 if (fc == NULL) in lzma_raw_coder_memusage() 370 if (fc->memusage == NULL) { in lzma_raw_coder_memusage() 382 = fc->memusage(filters[i].options); in lzma_raw_coder_memusage()
|