/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_packer.c | 64 void ib_pack(const struct ib_field *desc, in ib_pack() argument 72 if (desc[i].size_bits <= 32) { in ib_pack() 78 shift = 32 - desc[i].offset_bits - desc[i].size_bits; in ib_pack() 79 if (desc[i].struct_size_bytes) in ib_pack() 80 val = value_read(desc[i].struct_offset_bytes, in ib_pack() 81 desc[i].struct_size_bytes, in ib_pack() 86 mask = cpu_to_be32(((1ull << desc[i].size_bits) - 1) << shift); in ib_pack() 87 addr = (__be32 *) buf + desc[i].offset_words; in ib_pack() 89 } else if (desc[i].size_bits <= 64) { in ib_pack() 95 shift = 64 - desc[i].offset_bits - desc[i].size_bits; in ib_pack() [all …]
|
/freebsd/sys/dev/usb/ |
H A D | usb_parse.c | 79 uint8_t *desc; in usb_desc_foreach() local 88 desc = (uint8_t *)_desc; in usb_desc_foreach() 91 if (desc == NULL) in usb_desc_foreach() 92 desc = start; in usb_desc_foreach() 94 desc = desc + desc[0]; in usb_desc_foreach() 97 if ((desc < start) || (desc >= end)) in usb_desc_foreach() 101 desc_next = desc + desc[0]; in usb_desc_foreach() 106 if (desc[0] < 3) in usb_desc_foreach() 110 return ((struct usb_descriptor *)desc); in usb_desc_foreach() 132 id = (struct usb_interface_descriptor *)ps->desc; in usb_idesc_foreach() [all …]
|
/freebsd/sbin/etherswitchcfg/ |
H A D | ifmedia.c | 403 struct ifmedia_description *desc; member 407 struct ifmedia_description *desc; member 411 struct ifmedia_description *desc; member 479 struct ifmedia_description *desc; in get_media_subtype() local 484 for (desc = ifm_type_descriptions, ttos = ifmedia_types_to_subtypes; in get_media_subtype() 485 desc->ifmt_string != NULL; desc++, ttos++) in get_media_subtype() 486 if (type == desc->ifmt_word) in get_media_subtype() 488 if (desc->ifmt_string == NULL) in get_media_subtype() 491 for (i = 0; ttos->subtypes[i].desc != NULL; i++) { in get_media_subtype() 492 rval = lookup_media_word(ttos->subtypes[i].desc, val); in get_media_subtype() [all …]
|
/freebsd/lib/libifconfig/ |
H A D | libifconfig_media.c | 130 lookup_media_desc(const struct ifmedia_description *desc, const char *name) in lookup_media_desc() argument 133 for (; desc->ifmt_string != NULL; ++desc) in lookup_media_desc() 134 if (strcasecmp(desc->ifmt_string, name) == 0) in lookup_media_desc() 135 return (desc); in lookup_media_desc() 141 const struct ifmedia_description *desc; member 146 const struct ifmedia_description *desc; member 151 const struct ifmedia_description *desc; member 221 const struct ifmedia_description *desc; in get_toptype_ttos() local 224 for (desc = ifm_type_descriptions, ttos = ifmedia_types_to_subtypes; in get_toptype_ttos() 225 desc->ifmt_string != NULL; desc++, ttos++) { in get_toptype_ttos() [all …]
|
/freebsd/sys/contrib/openzfs/module/icp/spi/ |
H A D | kcf_spi.c | 109 kcf_provider_desc_t *desc; in crypto_unregister_provider() local 113 if ((desc = kcf_prov_tab_lookup((crypto_provider_id_t)handle)) == NULL) in crypto_unregister_provider() 116 mutex_enter(&desc->pd_lock); in crypto_unregister_provider() 121 if (desc->pd_state >= KCF_PROV_DISABLED) { in crypto_unregister_provider() 122 mutex_exit(&desc->pd_lock); in crypto_unregister_provider() 124 KCF_PROV_REFRELE(desc); in crypto_unregister_provider() 128 saved_state = desc->pd_state; in crypto_unregister_provider() 129 desc->pd_state = KCF_PROV_REMOVED; in crypto_unregister_provider() 136 if (desc->pd_refcnt > desc->pd_irefcnt + 1) { in crypto_unregister_provider() 137 desc->pd_state = saved_state; in crypto_unregister_provider() [all …]
|
/freebsd/sys/riscv/riscv/ |
H A D | identcpu.c | 151 parse_ext_s(struct cpu_desc *desc, char *isa, int idx, int len) in parse_ext_s() argument 157 desc->smode_extensions |= flag; \ in parse_ext_s() 183 parse_ext_x(struct cpu_desc *desc __unused, char *isa, int idx, int len) in parse_ext_x() 197 parse_ext_z(struct cpu_desc *desc __unused, char *isa, int idx, int len) in parse_ext_z() 236 parse_riscv_isa(struct cpu_desc *desc, char *isa, int len) in parse_riscv_isa() argument 257 desc->isa_extensions |= HWCAP_ISA_BIT(isa[i]); in parse_riscv_isa() 261 desc->isa_extensions |= HWCAP_ISA_G; in parse_riscv_isa() 279 i = parse_ext_s(desc, isa, i, len); in parse_riscv_isa() 286 i = parse_ext_x(desc, isa, i, len); in parse_riscv_isa() 292 i = parse_ext_z(desc, isa, i, len); in parse_riscv_isa() [all …]
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | hal_rx.c | 27 struct hal_reo_get_queue_stats *desc; in ath12k_hal_reo_cmd_queue_stats() local 30 u32_encode_bits(sizeof(*desc), HAL_TLV_HDR_LEN); in ath12k_hal_reo_cmd_queue_stats() 32 desc = (struct hal_reo_get_queue_stats *)tlv->value; in ath12k_hal_reo_cmd_queue_stats() 33 memset_startat(desc, 0, queue_addr_lo); in ath12k_hal_reo_cmd_queue_stats() 35 desc->cmd.info0 &= ~cpu_to_le32(HAL_REO_CMD_HDR_INFO0_STATUS_REQUIRED); in ath12k_hal_reo_cmd_queue_stats() 37 desc->cmd.info0 |= cpu_to_le32(HAL_REO_CMD_HDR_INFO0_STATUS_REQUIRED); in ath12k_hal_reo_cmd_queue_stats() 39 desc->queue_addr_lo = cpu_to_le32(cmd->addr_lo); in ath12k_hal_reo_cmd_queue_stats() 40 desc->info0 = le32_encode_bits(cmd->addr_hi, in ath12k_hal_reo_cmd_queue_stats() 43 desc->info0 |= cpu_to_le32(HAL_REO_GET_QUEUE_STATS_INFO0_CLEAR_STATS); in ath12k_hal_reo_cmd_queue_stats() 45 return le32_get_bits(desc->cmd.info0, HAL_REO_CMD_HDR_INFO0_CMD_NUMBER); in ath12k_hal_reo_cmd_queue_stats() [all …]
|
H A D | hal.c | 290 static bool ath12k_hw_qcn9274_rx_desc_get_first_msdu(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_first_msdu() argument 292 return !!le16_get_bits(desc->u.qcn9274.msdu_end.info5, in ath12k_hw_qcn9274_rx_desc_get_first_msdu() 296 static bool ath12k_hw_qcn9274_rx_desc_get_last_msdu(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_last_msdu() argument 298 return !!le16_get_bits(desc->u.qcn9274.msdu_end.info5, in ath12k_hw_qcn9274_rx_desc_get_last_msdu() 302 static u8 ath12k_hw_qcn9274_rx_desc_get_l3_pad_bytes(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_l3_pad_bytes() argument 304 return le16_get_bits(desc->u.qcn9274.msdu_end.info5, in ath12k_hw_qcn9274_rx_desc_get_l3_pad_bytes() 308 static bool ath12k_hw_qcn9274_rx_desc_encrypt_valid(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_encrypt_valid() argument 310 return !!le32_get_bits(desc->u.qcn9274.mpdu_start.info4, in ath12k_hw_qcn9274_rx_desc_encrypt_valid() 314 static u32 ath12k_hw_qcn9274_rx_desc_get_encrypt_type(struct hal_rx_desc *desc) in ath12k_hw_qcn9274_rx_desc_get_encrypt_type() argument 316 return le32_get_bits(desc->u.qcn9274.mpdu_start.info2, in ath12k_hw_qcn9274_rx_desc_get_encrypt_type() [all …]
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | nvram_map | 35 desc "Available 2.4GHz Antennas" 40 desc "Available 5GHz Antennas" 46 desc "Antenna 0 Gain" 52 desc "Antenna 1 Gain" 58 desc "Antenna 2 Gain" 64 desc "Antenna 3 Gain" 71 desc "Available TX Chains" 79 desc "Available RX Chains" 87 desc "Antenna Diversity Switch Type" 95 #desc <variable description> [all …]
|
/freebsd/crypto/openssl/test/recipes/ |
H A D | 20-test_kdf.t | 21 desc => 'TLS1-PRF SHA256' }, 24 desc => 'TLS1-PRF MD5-SHA1' }, 27 desc => 'HKDF SHA256' }, 30 desc => 'PBKDF2 SHA256'}, 33 desc => 'SSKDF KMAC128'}, 36 desc => 'SSKDF HMAC SHA256'}, 39 desc => 'SSKDF HASH SHA224'}, 42 desc => 'SSHKDF SHA256'}, 47 desc => 'TLS1-PRF SHA256' }, 50 desc => 'TLS1-PRF MD5-SHA1' }, [all …]
|
/freebsd/sys/dev/ismt/ |
H A D | ismt.c | 163 struct ismt_desc *desc; member 229 struct ismt_desc *desc; in ismt_alloc_desc() local 235 desc = &sc->desc[sc->head++]; in ismt_alloc_desc() 239 memset(desc, 0, sizeof(*desc)); in ismt_alloc_desc() 241 return (desc); in ismt_alloc_desc() 245 ismt_submit(struct ismt_softc *sc, struct ismt_desc *desc, uint8_t slave, in ismt_submit() argument 250 desc->control |= ISMT_DESC_FAIR; in ismt_submit() 252 desc->control |= ISMT_DESC_INT; in ismt_submit() 254 desc->tgtaddr_rw = ISMT_DESC_ADDR_RW(slave, is_read); in ismt_submit() 255 desc->dptr_low = (sc->dma_buffer_bus_addr & 0xFFFFFFFFLL); in ismt_submit() [all …]
|
/freebsd/lib/libusb/ |
H A D | libusb10_desc.c | 52 struct libusb_device_descriptor *desc) in libusb_get_device_descriptor() argument 57 if ((dev == NULL) || (desc == NULL)) in libusb_get_device_descriptor() 63 desc->bLength = pdesc->bLength; in libusb_get_device_descriptor() 64 desc->bDescriptorType = pdesc->bDescriptorType; in libusb_get_device_descriptor() 65 desc->bcdUSB = pdesc->bcdUSB; in libusb_get_device_descriptor() 66 desc->bDeviceClass = pdesc->bDeviceClass; in libusb_get_device_descriptor() 67 desc->bDeviceSubClass = pdesc->bDeviceSubClass; in libusb_get_device_descriptor() 68 desc->bDeviceProtocol = pdesc->bDeviceProtocol; in libusb_get_device_descriptor() 69 desc->bMaxPacketSize0 = pdesc->bMaxPacketSize0; in libusb_get_device_descriptor() 70 desc->idVendor = pdesc->idVendor; in libusb_get_device_descriptor() [all …]
|
/freebsd/sys/contrib/openzfs/module/icp/core/ |
H A D | kcf_prov_tabs.c | 204 kcf_provider_desc_t *desc = in kcf_alloc_provider_desc() local 209 desc->pd_mech_indx[i][j] = KCF_INVALID_INDX; in kcf_alloc_provider_desc() 211 desc->pd_prov_id = KCF_PROVID_INVALID; in kcf_alloc_provider_desc() 212 desc->pd_state = KCF_PROV_ALLOCATED; in kcf_alloc_provider_desc() 214 mutex_init(&desc->pd_lock, NULL, MUTEX_DEFAULT, NULL); in kcf_alloc_provider_desc() 215 cv_init(&desc->pd_remove_cv, NULL, CV_DEFAULT, NULL); in kcf_alloc_provider_desc() 217 return (desc); in kcf_alloc_provider_desc() 228 kcf_provider_zero_refcnt(kcf_provider_desc_t *desc) in kcf_provider_zero_refcnt() argument 230 mutex_enter(&desc->pd_lock); in kcf_provider_zero_refcnt() 231 if (desc->pd_state == KCF_PROV_REMOVED || in kcf_provider_zero_refcnt() [all …]
|
/freebsd/sys/dev/enic/ |
H A D | cq_enet_desc.h | 19 static inline void cq_enet_wq_desc_enc(struct cq_enet_wq_desc *desc, in cq_enet_wq_desc_enc() argument 22 cq_desc_enc((struct cq_desc *)desc, type, in cq_enet_wq_desc_enc() 26 static inline void cq_enet_wq_desc_dec(struct cq_enet_wq_desc *desc, in cq_enet_wq_desc_dec() argument 29 cq_desc_dec((struct cq_desc *)desc, type, in cq_enet_wq_desc_dec() 110 static inline void cq_enet_rq_desc_enc(struct cq_enet_rq_desc *desc, in cq_enet_rq_desc_enc() argument 118 cq_desc_enc((struct cq_desc *)desc, type, in cq_enet_rq_desc_enc() 121 desc->completed_index_flags |= cpu_to_le16( in cq_enet_rq_desc_enc() 127 desc->q_number_rss_type_flags |= cpu_to_le16( in cq_enet_rq_desc_enc() 132 desc->rss_hash = cpu_to_le32(rss_hash); in cq_enet_rq_desc_enc() 134 desc->bytes_written_flags = cpu_to_le16( in cq_enet_rq_desc_enc() [all …]
|
H A D | wq_enet_desc.h | 39 static inline void wq_enet_desc_enc(struct wq_enet_desc *desc, in wq_enet_desc_enc() argument 44 desc->address = cpu_to_le64(address); in wq_enet_desc_enc() 45 desc->length = cpu_to_le16(length & WQ_ENET_LEN_MASK); in wq_enet_desc_enc() 46 desc->mss_loopback = cpu_to_le16((mss & WQ_ENET_MSS_MASK) << in wq_enet_desc_enc() 48 desc->header_length_flags = cpu_to_le16( in wq_enet_desc_enc() 55 desc->vlan_tag = cpu_to_le16(vlan_tag); in wq_enet_desc_enc() 58 static inline void wq_enet_desc_dec(struct wq_enet_desc *desc, in wq_enet_desc_dec() argument 63 *address = le64_to_cpu(desc->address); in wq_enet_desc_dec() 64 *length = le16_to_cpu(desc->length) & WQ_ENET_LEN_MASK; in wq_enet_desc_dec() 65 *mss = (le16_to_cpu(desc->mss_loopback) >> WQ_ENET_MSS_SHIFT) & in wq_enet_desc_dec() [all …]
|
/freebsd/contrib/tcsh/ |
H A D | ed.defns.c | 1127 xfree((ptr_t)(intptr_t)FuncNames[i].desc); in editinit() 1133 f->desc = CSAVS(3, 1, "Move back a character"); in editinit() 1138 f->desc = CSAVS(3, 2, "Delete the character behind cursor"); in editinit() 1143 f->desc = CSAVS(3, 3, in editinit() 1149 f->desc = CSAVS(3, 4, in editinit() 1155 f->desc = CSAVS(3, 5, "Move to beginning of current word"); in editinit() 1160 f->desc = CSAVS(3, 6, "Move to beginning of line"); in editinit() 1165 f->desc = CSAVS(3, 7, in editinit() 1171 f->desc = CSAVS(3, 8, in editinit() 1177 f->desc = CSAVS(3, 9, "Vi change to end of line"); in editinit() [all …]
|
/freebsd/sys/dev/sound/pcm/ |
H A D | feeder_chain.c | 52 struct pcm_feederdesc desc; /* feeder descriptor */ member 141 struct pcm_feederdesc *desc; in feeder_build_format() local 144 desc = &(cdesc->desc); in feeder_build_format() 145 desc->type = FEEDER_FORMAT; in feeder_build_format() 146 desc->in = 0; in feeder_build_format() 147 desc->out = 0; in feeder_build_format() 148 desc->flags = 0; in feeder_build_format() 150 fc = feeder_getclass(desc); in feeder_build_format() 157 desc in feeder_build_format() 210 struct pcm_feederdesc *desc; feeder_build_rate() local 288 struct pcm_feederdesc *desc; feeder_build_matrix() local 345 struct pcm_feederdesc *desc; feeder_build_volume() local 413 struct pcm_feederdesc *desc; feeder_build_eq() local 497 struct pcm_feederdesc *desc; feeder_build_mixer() local [all...] |
/freebsd/sys/dev/ixl/ |
H A D | i40e_common.c | 324 void i40e_debug_aq(struct i40e_hw *hw, enum i40e_debug_mask mask, void *desc, in i40e_debug_aq() argument 327 struct i40e_aq_desc *aq_desc = (struct i40e_aq_desc *)desc; in i40e_debug_aq() 333 if (!effective_mask || !desc) in i40e_debug_aq() 419 struct i40e_aq_desc desc; in i40e_aq_queue_shutdown() local 421 (struct i40e_aqc_queue_shutdown *)&desc.params.raw; in i40e_aq_queue_shutdown() 424 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_queue_shutdown() 429 status = i40e_asq_send_command(hw, &desc, NULL, 0, NULL); in i40e_aq_queue_shutdown() 451 struct i40e_aq_desc desc; in i40e_aq_get_set_rss_lut() local 453 (struct i40e_aqc_get_set_rss_lut *)&desc.params.raw; in i40e_aq_get_set_rss_lut() 456 i40e_fill_default_direct_cmd_desc(&desc, in i40e_aq_get_set_rss_lut() [all …]
|
/freebsd/sys/net/ |
H A D | if_media.c | 438 const struct ifmedia_description *desc; in ifmedia_printword() local 443 for (desc = ifm_type_descriptions, ttos = ifmedia_types_to_subtypes; in ifmedia_printword() 444 desc->ifmt_string != NULL; desc++, ttos++) in ifmedia_printword() 445 if (IFM_TYPE(ifmw) == desc->ifmt_word) in ifmedia_printword() 447 if (desc->ifmt_string == NULL) { in ifmedia_printword() 451 printf("%s", desc->ifmt_string); in ifmedia_printword() 454 for (desc = ttos->modes; desc && desc->ifmt_string != NULL; desc++) in ifmedia_printword() 455 if (IFM_MODE(ifmw) == desc->ifmt_word) { in ifmedia_printword() 456 if (desc->ifmt_string != NULL) in ifmedia_printword() 457 printf(" mode %s", desc->ifmt_string); in ifmedia_printword() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | debugfs.c | 132 int desc = 0; in mt7996_sys_recovery_get() local 141 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() 143 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() 145 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() 147 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() 149 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() 151 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() 153 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() 155 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() 157 desc += scnprintf(buff + desc, bufsz - desc, in mt7996_sys_recovery_get() [all …]
|
/freebsd/sys/crypto/ccp/ |
H A D | ccp_hardware.c | 214 void *desc; in ccp_hw_attach_queue() local 218 desc = NULL; in ccp_hw_attach_queue() 259 error = bus_dmamem_alloc(qp->ring_desc_tag, &desc, in ccp_hw_attach_queue() 264 error = bus_dmamap_load(qp->ring_desc_tag, qp->ring_desc_map, desc, in ccp_hw_attach_queue() 269 qp->desc_ring = desc; in ccp_hw_attach_queue() 306 if (desc != NULL) in ccp_hw_attach_queue() 307 bus_dmamem_free(qp->ring_desc_tag, desc, in ccp_hw_attach_queue() 455 ccp_intr_handle_error(struct ccp_queue *qp, const struct ccp_desc *desc) in ccp_intr_handle_error() argument 490 idx = desc - qp->desc_ring; in ccp_intr_handle_error() 492 (const void *)desc, " "); in ccp_intr_handle_error() [all …]
|
/freebsd/contrib/netbsd-tests/fs/common/ |
H A D | h_fsmacros.h | 106 #define ATF_TC_FSADD(fs,type,func,desc) \ argument 110 atf_tc_set_md_var(tc, "descr", type " test for " desc); \ 159 #define ATF_TC_FSAPPLY_NOZFS(func,desc) \ argument 160 ATF_TC_FSADD(ext2fs,MOUNT_EXT2FS,func,desc) \ 161 ATF_TC_FSADD(ffs,MOUNT_FFS,func,desc) \ 162 ATF_TC_FSADD(ffslog,MOUNT_FFS,func,desc) \ 163 ATF_TC_FSADD(lfs,MOUNT_LFS,func,desc) \ 164 ATF_TC_FSADD(msdosfs,MOUNT_MSDOS,func,desc) \ 165 ATF_TC_FSADD(nfs,MOUNT_NFS,func,desc) \ 166 ATF_TC_FSADD(puffs,MOUNT_PUFFS,func,desc) \ [all …]
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | hw.c | 234 static bool ath11k_hw_ipq8074_rx_desc_get_first_msdu(struct hal_rx_desc *desc) in ath11k_hw_ipq8074_rx_desc_get_first_msdu() argument 237 __le32_to_cpu(desc->u.ipq8074.msdu_end.info2)); in ath11k_hw_ipq8074_rx_desc_get_first_msdu() 240 static bool ath11k_hw_ipq8074_rx_desc_get_last_msdu(struct hal_rx_desc *desc) in ath11k_hw_ipq8074_rx_desc_get_last_msdu() argument 243 __le32_to_cpu(desc->u.ipq8074.msdu_end.info2)); in ath11k_hw_ipq8074_rx_desc_get_last_msdu() 246 static u8 ath11k_hw_ipq8074_rx_desc_get_l3_pad_bytes(struct hal_rx_desc *desc) in ath11k_hw_ipq8074_rx_desc_get_l3_pad_bytes() argument 249 __le32_to_cpu(desc->u.ipq8074.msdu_end.info2)); in ath11k_hw_ipq8074_rx_desc_get_l3_pad_bytes() 252 static u8 *ath11k_hw_ipq8074_rx_desc_get_hdr_status(struct hal_rx_desc *desc) in ath11k_hw_ipq8074_rx_desc_get_hdr_status() argument 254 return desc->u.ipq8074.hdr_status; in ath11k_hw_ipq8074_rx_desc_get_hdr_status() 257 static bool ath11k_hw_ipq8074_rx_desc_encrypt_valid(struct hal_rx_desc *desc) in ath11k_hw_ipq8074_rx_desc_encrypt_valid() argument 259 return __le32_to_cpu(desc->u.ipq8074.mpdu_start.info1) & in ath11k_hw_ipq8074_rx_desc_encrypt_valid() [all …]
|
H A D | hal_rx.c | 26 struct hal_reo_get_queue_stats *desc; in ath11k_hal_reo_cmd_queue_stats() local 29 FIELD_PREP(HAL_TLV_HDR_LEN, sizeof(*desc)); in ath11k_hal_reo_cmd_queue_stats() 31 desc = (struct hal_reo_get_queue_stats *)tlv->value; in ath11k_hal_reo_cmd_queue_stats() 32 memset_startat(desc, 0, queue_addr_lo); in ath11k_hal_reo_cmd_queue_stats() 34 desc->cmd.info0 &= ~HAL_REO_CMD_HDR_INFO0_STATUS_REQUIRED; in ath11k_hal_reo_cmd_queue_stats() 36 desc->cmd.info0 |= HAL_REO_CMD_HDR_INFO0_STATUS_REQUIRED; in ath11k_hal_reo_cmd_queue_stats() 38 desc->queue_addr_lo = cmd->addr_lo; in ath11k_hal_reo_cmd_queue_stats() 39 desc->info0 = FIELD_PREP(HAL_REO_GET_QUEUE_STATS_INFO0_QUEUE_ADDR_HI, in ath11k_hal_reo_cmd_queue_stats() 42 desc->info0 |= HAL_REO_GET_QUEUE_STATS_INFO0_CLEAR_STATS; in ath11k_hal_reo_cmd_queue_stats() 44 return FIELD_GET(HAL_REO_CMD_HDR_INFO0_CMD_NUMBER, desc->cmd.info0); in ath11k_hal_reo_cmd_queue_stats() [all …]
|
/freebsd/sys/dev/altera/softdma/ |
H A D | softdma.c | 297 softdma_process_tx(struct softdma_channel *chan, struct softdma_desc *desc) in softdma_process_tx() argument 313 if (desc->control & CONTROL_GEN_SOP) in softdma_process_tx() 320 addr = desc->src_addr; in softdma_process_tx() 321 len = desc->len; in softdma_process_tx() 345 (desc->control & CONTROL_GEN_EOP) != 0) in softdma_process_tx() 371 (desc->control & CONTROL_GEN_EOP) != 0) in softdma_process_tx() 389 return (desc->len); in softdma_process_tx() 393 softdma_process_rx(struct softdma_channel *chan, struct softdma_desc *desc) in softdma_process_rx() argument 417 len = desc->len; in softdma_process_rx() 450 *(uint32_t *)(desc->dst_addr + dst_offs) = data; in softdma_process_rx() [all …]
|