/freebsd/sys/dev/firewire/ |
H A D | firewire.c | 145 fw_noderesolve_nodeid(struct firewire_comm *fc, int dst) in fw_noderesolve_nodeid() argument 149 FW_GLOCK(fc); in fw_noderesolve_nodeid() 150 STAILQ_FOREACH(fwdev, &fc->devices, link) in fw_noderesolve_nodeid() 153 FW_GUNLOCK(fc); in fw_noderesolve_nodeid() 162 fw_noderesolve_eui64(struct firewire_comm *fc, struct fw_eui64 *eui) in fw_noderesolve_eui64() argument 166 FW_GLOCK(fc); in fw_noderesolve_eui64() 167 STAILQ_FOREACH(fwdev, &fc->devices, link) in fw_noderesolve_eui64() 170 FW_GUNLOCK(fc); in fw_noderesolve_eui64() 183 fw_asyreq(struct firewire_comm *fc, int sub, struct fw_xfer *xfer) in fw_asyreq() argument 201 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 | fwohci.c | 279 fwohci_set_bus_manager(struct firewire_comm *fc, u_int node) in fwohci_set_bus_manager() argument 281 struct fwohci_softc *sc = (struct fwohci_softc *)fc; in fwohci_set_bus_manager() 299 device_printf(sc->fc.dev, "%s: %d->%d (loop=%d)\n", in fwohci_set_bus_manager() 324 device_printf(sc->fc.dev, "%s: failed(1).\n", __func__); in fwphy_rddata() 335 device_printf(sc->fc.dev, "%s: failed(2).\n", __func__); in fwphy_rddata() 342 device_printf(sc->fc.dev, in fwphy_rddata() 354 struct fwohci_softc *fc; in fwohci_ioctl() local 364 fc = (struct fwohci_softc *)sc->fc; in fwohci_ioctl() 373 OWRITE(fc, reg->addr, reg->data); in fwohci_ioctl() 374 reg->data = OREAD(fc, reg->addr); in fwohci_ioctl() [all …]
|
H A D | if_fwip.c | 113 struct firewire_comm *fc; in fwip_poll() local 119 fc = fwip->fd.fc; in fwip_poll() 120 fc->poll(fc, (cmd == POLL_AND_CHECK_STATUS)?0:1, count); in fwip_poll() 161 fwip->fd.fc = device_get_ivars(dev); in fwip_attach() 163 tx_speed = fwip->fd.fc->speed; in fwip_attach() 175 hwaddr->sender_unique_ID_hi = htonl(fwip->fd.fc->eui.hi); in fwip_attach() 176 hwaddr->sender_unique_ID_lo = htonl(fwip->fd.fc->eui.lo); in fwip_attach() 177 hwaddr->sender_max_rec = fwip->fd.fc->maxrec; in fwip_attach() 178 hwaddr->sspd = fwip->fd.fc->speed; in fwip_attach() 206 struct firewire_comm *fc; in fwip_stop() local [all …]
|
H A D | if_fwe.c | 102 struct firewire_comm *fc; in fwe_poll() local 108 fc = fwe->fd.fc; in fwe_poll() 109 fc->poll(fc, (cmd == POLL_AND_CHECK_STATUS)?0:1, count); in fwe_poll() 152 fwe->fd.fc = device_get_ivars(dev); in fwe_attach() 154 tx_speed = fwe->fd.fc->speed; in fwe_attach() 168 eui = &fwe->fd.fc->eui; in fwe_attach() 206 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 | 61 struct firewire_comm *fc; member 71 struct firewire_comm *fc; member 80 struct firewire_comm *fc; member 166 #define FW_GMTX(fc) (&(fc)->mtx) argument 167 #define FW_GLOCK(fc) mtx_lock(FW_GMTX(fc)) argument 168 #define FW_GUNLOCK(fc) mtx_unlock(FW_GMTX(fc)) argument 169 #define FW_GLOCK_ASSERT(fc) mtx_assert(FW_GMTX(fc), MA_OWNED) argument 224 struct firewire_comm *fc; member 253 struct firewire_comm *fc; member
|
H A D | fwdma.c | 69 fwdma_malloc(struct firewire_comm *fc, int alignment, bus_size_t size, in fwdma_malloc() argument 76 /*parent*/ fc->dmat, in fwdma_malloc() 87 /*lockarg*/FW_GMTX(fc), in fwdma_malloc() 109 fwdma_free(struct firewire_comm *fc, struct fwdma_alloc *dma) in fwdma_free() argument 145 fwdma_malloc_multiseg(struct firewire_comm *fc, int alignment, in fwdma_malloc_multiseg() argument 168 /*parent*/ fc->dmat, in fwdma_malloc_multiseg() 179 /*lockarg*/FW_GMTX(fc), in fwdma_malloc_multiseg()
|
H A D | fwmem.c | 104 xfer->fc = fwdev->fc; in fwmem_xfer_req() 148 if (fw_asyreq(xfer->fc, -1, xfer) == 0) in fwmem_read_quad() 184 if (fw_asyreq(xfer->fc, -1, xfer) == 0) in fwmem_write_quad() 222 if (fw_asyreq(xfer->fc, -1, xfer) == 0) in fwmem_read_block() 260 if (fw_asyreq(xfer->fc, -1, xfer) == 0) in fwmem_write_block() 278 FW_GLOCK(sc->fc); in fwmem_open() 281 FW_GUNLOCK(sc->fc); in fwmem_open() 284 FW_GUNLOCK(sc->fc); in fwmem_open() 289 FW_GUNLOCK(sc->fc); in fwmem_open() 311 FW_GLOCK(fms->sc->fc); in fwmem_close() [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | ieee80211.h | 778 ieee80211_is_ctl(__le16 fc) in ieee80211_is_ctl() argument 782 fc &= htole16(IEEE80211_FC0_TYPE_MASK); in ieee80211_is_ctl() 785 return (fc == v); in ieee80211_is_ctl() 790 ieee80211_is_data(__le16 fc) in ieee80211_is_data() argument 794 fc &= htole16(IEEE80211_FC0_TYPE_MASK); in ieee80211_is_data() 797 return (fc == v); in ieee80211_is_data() 802 ieee80211_is_data_qos(__le16 fc) in ieee80211_is_data_qos() argument 806 fc &= htole16(IEEE80211_FC0_SUBTYPE_QOS_DATA | IEEE80211_FC0_TYPE_MASK); in ieee80211_is_data_qos() 809 return (fc == v); in ieee80211_is_data_qos() 814 ieee80211_is_mgmt(__le16 fc) in ieee80211_is_mgmt() argument [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/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/ |
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 | 15 void s390x_kimd(const unsigned char *in, size_t len, unsigned int fc, 18 size_t outlen, unsigned int fc, void *param); 20 unsigned int fc, void *param); 21 void s390x_kmac(const unsigned char *in, size_t len, unsigned int fc, 24 unsigned int fc, void *param); 26 unsigned int fc, void *param); 28 size_t len, unsigned char *out, unsigned int fc, void *param); 29 int s390x_pcc(unsigned int fc, void *param); 30 int s390x_kdsa(unsigned int fc, void *param, const unsigned char *in,
|
/freebsd/lib/libdpv/ |
H A D | dpv.c | 101 char *fc; in dpv() local 443 fc = pprompt; in dpv() 444 while (fc != NULL && *fc != '\0') { in dpv() 445 if (*fc == '\n') /* leading literal newline OK */ in dpv() 447 if (!isspace(*fc) && *fc != '\\' && backslash == 0) in dpv() 449 else if (backslash > 0 && *fc != 'n') in dpv() 451 else if (*fc == '\\') { in dpv() 456 fc++; in dpv() 459 if (fc != NULL && *fc >= '0' && *fc <= '9') in dpv() 462 else if (fc > pprompt) in dpv() [all …]
|
/freebsd/sys/dev/sound/pcm/ |
H A D | feeder.c | 58 struct feeder_class *fc = p; in feeder_register_root() local 62 KASSERT(fc->desc == NULL, ("first feeder not root: %s", fc->name)); in feeder_register_root() 66 fte->feederclass = fc; in feeder_register_root() 76 struct feeder_class *fc = p; in feeder_register() local 80 KASSERT(fc->desc != NULL, ("feeder '%s' has no descriptor", fc->name)); in feeder_register() 87 while ((feedercnt < MAXFEEDERS) && (fc->desc[i].type > 0)) { in feeder_register() 89 fte->feederclass = fc; in feeder_register() 90 fte->desc = &fc->desc[i]; in feeder_register() 133 feeder_create(struct feeder_class *fc, struct pcm_feederdesc *desc) in feeder_create() argument 138 f = (struct pcm_feeder *)kobj_create((kobj_class_t)fc, M_FEEDER, M_NOWAIT | M_ZERO); in feeder_create() [all …]
|
H A D | feeder_chain.c | 140 struct feeder_class *fc; in feeder_build_format() local 150 fc = feeder_getclass(desc); in feeder_build_format() 151 if (fc == NULL) { in feeder_build_format() 160 ret = feeder_add(c, fc, desc); in feeder_build_format() 208 struct feeder_class *fc; in feeder_build_rate() local 223 fc = feeder_getclass(desc); in feeder_build_rate() 224 if (fc == NULL) { in feeder_build_rate() 233 ret = feeder_add(c, fc, desc); in feeder_build_rate() 286 struct feeder_class *fc; in feeder_build_matrix() local 301 fc in feeder_build_matrix() 343 struct feeder_class *fc; feeder_build_volume() local 411 struct feeder_class *fc; feeder_build_eq() local 465 struct feeder_class *fc; feeder_build_root() local 496 struct feeder_class *fc; feeder_build_mixer() local [all...] |
/freebsd/usr.sbin/lpr/lptest/ |
H A D | lptest.c | 45 register int i, j, fc, nc; in main() local 57 fc = ' '; in main() 59 if (++fc == 0177) in main() 60 fc = ' '; in main() 61 nc = fc; in main()
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_gcm_hw_s390x.inc | 18 /* Additional flag or'ed to fc for decryption */ 21 #define S390X_gcm_fc(A,C) ((A)->plat.s390x.fc | (A)->plat.s390x.hsflag |\ 31 actx->plat.s390x.fc = S390X_AES_FC(keylen); 70 s390x_kma(iv_zero_pad, len, NULL, 0, NULL, actx->plat.s390x.fc, kma); 89 unsigned int fc; 94 fc = S390X_gcm_fc(actx, ctx) | S390X_KMA_LAAD | S390X_KMA_LPC; 97 fc, kma); 120 unsigned int fc; 125 fc = S390X_gcm_fc(actx, ctx) | S390X_KMA_LAAD | S390X_KMA_LPC; 126 s390x_kma(aad, aad_len, in, in_len, out, fc, kma); [all …]
|
/freebsd/sys/dev/igc/ |
H A D | igc_mac.c | 542 if (hw->fc.requested_mode == igc_fc_default) { in igc_setup_link_generic() 543 hw->fc.requested_mode = igc_fc_full; in igc_setup_link_generic() 549 hw->fc.current_mode = hw->fc.requested_mode; in igc_setup_link_generic() 552 hw->fc.current_mode); in igc_setup_link_generic() 569 IGC_WRITE_REG(hw, IGC_FCTTV, hw->fc.pause_time); in igc_setup_link_generic() 616 if (hw->fc.current_mode & igc_fc_tx_pause) { in igc_set_fc_watermarks_generic() 621 fcrtl = hw->fc.low_water; in igc_set_fc_watermarks_generic() 622 if (hw->fc.send_xon) in igc_set_fc_watermarks_generic() 625 fcrth = hw->fc.high_water; in igc_set_fc_watermarks_generic() 668 DEBUGOUT1("hw->fc.current_mode = %u\n", hw->fc.current_mode); in igc_force_mac_fc_generic() [all …]
|
/freebsd/sbin/bsdlabel/ |
H A D | disktab | 27 :pc#720:oc#0:bc#4096:fc#512: 32 :pc#1440:oc#0:bc#4096:fc#512: 37 :pc#2400:oc#0:bc#4096:fc#512: 42 :pc#2880:oc#0:bc#4096:fc#512: 57 :pc#1600:oc#0:bc#4096:fc#512: 62 :pc#1640:oc#0:bc#4096:fc#512: 67 :pc#2952:oc#0:bc#4096:fc#512: 72 :pc#3444:oc#0:bc#4096:fc#512: 80 :pc#246528:oc#0:bc#4096:fc#512: 177 :pc#2880:oc#0:bc#4096:fc#512: [all …]
|
/freebsd/sys/net/ |
H A D | if_fwsubr.c | 83 struct fw_com *fc = IFP2FWC(ifp); in firewire_output() local 197 error = nd6_resolve(fc->fc_ifp, LLE_SF(af, is_gw), m, in firewire_output() 220 bcopy(&fc->fc_hwaddr, h.firewire_shost, 8); in firewire_output() 242 speed = min(fc->fc_speed, destfw->sspd); in firewire_output() 352 firewire_input_fragment(struct fw_com *fc, struct mbuf *m, int src) in firewire_input_fragment() argument 366 STAILQ_FOREACH(r, &fc->fc_frags, fr_link) in firewire_input_fragment() 377 STAILQ_INSERT_HEAD(&fc->fc_frags, r, fr_link); in firewire_input_fragment() 467 STAILQ_REMOVE(&fc->fc_frags, r, fw_reass, fr_link); in firewire_input_fragment() 519 struct fw_com *fc = IFP2FWC(ifp); in firewire_input() local 551 m = firewire_input_fragment(fc, m, src); in firewire_input() [all …]
|
/freebsd/sys/contrib/dev/iwlwifi/mvm/ |
H A D | tx.c | 154 __le16 fc = hdr->frame_control; in iwl_mvm_set_tx_cmd() local 161 (ieee80211_is_probe_resp(fc) && in iwl_mvm_set_tx_cmd() 167 if (ieee80211_is_probe_resp(fc)) in iwl_mvm_set_tx_cmd() 170 if (ieee80211_has_morefrags(fc)) in iwl_mvm_set_tx_cmd() 173 if (ieee80211_is_data_qos(fc)) { in iwl_mvm_set_tx_cmd() 178 } else if (ieee80211_is_back_req(fc)) { in iwl_mvm_set_tx_cmd() 191 if (ieee80211_is_data(fc)) in iwl_mvm_set_tx_cmd() 211 if (ieee80211_is_mgmt(fc)) { in iwl_mvm_set_tx_cmd() 212 if (ieee80211_is_assoc_req(fc) || ieee80211_is_reassoc_req(fc)) in iwl_mvm_set_tx_cmd() 250 iwl_mvm_get_tx_ant(struct iwl_mvm * mvm,struct ieee80211_tx_info * info,struct ieee80211_sta * sta,__le16 fc) iwl_mvm_get_tx_ant() argument 315 iwl_mvm_get_tx_rate(struct iwl_mvm * mvm,struct ieee80211_tx_info * info,struct ieee80211_sta * sta,__le16 fc) iwl_mvm_get_tx_rate() argument 378 iwl_mvm_get_tx_rate_n_flags(struct iwl_mvm * mvm,struct ieee80211_tx_info * info,struct ieee80211_sta * sta,__le16 fc) iwl_mvm_get_tx_rate_n_flags() argument 389 iwl_mvm_set_tx_cmd_rate(struct iwl_mvm * mvm,struct iwl_tx_cmd * tx_cmd,struct ieee80211_tx_info * info,struct ieee80211_sta * sta,__le16 fc) iwl_mvm_set_tx_cmd_rate() argument 619 __le16 fc = hdr->frame_control; iwl_mvm_get_ctrl_vif_queue() local 726 __le16 fc = hdr->frame_control; iwl_mvm_tx_skb_non_sta() local 1124 __le16 fc; iwl_mvm_tx_mpdu() local [all...] |