/openbmc/linux/drivers/net/wireless/ath/ath10k/ |
H A D | htt.c | 169 #define desc_offset(x) (offsetof(struct htt_rx_desc_v2, x) / 4) in ath10k_rx_desc_wcn3990_get_offsets() macro 171 off->msdu_payload_offset = __cpu_to_le16(desc_offset(msdu_payload)); in ath10k_rx_desc_wcn3990_get_offsets() 172 off->ppdu_start_offset = __cpu_to_le16(desc_offset(ppdu_start)); in ath10k_rx_desc_wcn3990_get_offsets() 173 off->ppdu_end_offset = __cpu_to_le16(desc_offset(ppdu_end)); in ath10k_rx_desc_wcn3990_get_offsets() 174 off->mpdu_start_offset = __cpu_to_le16(desc_offset(mpdu_start)); in ath10k_rx_desc_wcn3990_get_offsets() 175 off->mpdu_end_offset = __cpu_to_le16(desc_offset(mpdu_end)); in ath10k_rx_desc_wcn3990_get_offsets() 176 off->msdu_start_offset = __cpu_to_le16(desc_offset(msdu_start)); in ath10k_rx_desc_wcn3990_get_offsets() 177 off->msdu_end_offset = __cpu_to_le16(desc_offset(msdu_end)); in ath10k_rx_desc_wcn3990_get_offsets() 178 off->rx_attention_offset = __cpu_to_le16(desc_offset(attention)); in ath10k_rx_desc_wcn3990_get_offsets() 179 off->frag_info_offset = __cpu_to_le16(desc_offset(frag_info)); in ath10k_rx_desc_wcn3990_get_offsets() [all …]
|
H A D | htt.h | 2218 #define desc_offset(x) (offsetof(struct htt_rx_desc_v1, x) / 4) in ath10k_htt_rx_desc_get_offsets() macro 2220 off->msdu_payload_offset = __cpu_to_le16(desc_offset(msdu_payload)); in ath10k_htt_rx_desc_get_offsets() 2221 off->ppdu_start_offset = __cpu_to_le16(desc_offset(ppdu_start)); in ath10k_htt_rx_desc_get_offsets() 2222 off->ppdu_end_offset = __cpu_to_le16(desc_offset(ppdu_end)); in ath10k_htt_rx_desc_get_offsets() 2223 off->mpdu_start_offset = __cpu_to_le16(desc_offset(mpdu_start)); in ath10k_htt_rx_desc_get_offsets() 2224 off->mpdu_end_offset = __cpu_to_le16(desc_offset(mpdu_end)); in ath10k_htt_rx_desc_get_offsets() 2225 off->msdu_start_offset = __cpu_to_le16(desc_offset(msdu_start)); in ath10k_htt_rx_desc_get_offsets() 2226 off->msdu_end_offset = __cpu_to_le16(desc_offset(msdu_end)); in ath10k_htt_rx_desc_get_offsets() 2227 off->rx_attention_offset = __cpu_to_le16(desc_offset(attention)); in ath10k_htt_rx_desc_get_offsets() 2228 off->frag_info_offset = __cpu_to_le16(desc_offset(frag_info)); in ath10k_htt_rx_desc_get_offsets() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/ |
H A D | kvm_binary_stats_test.c | 65 TEST_ASSERT(header.desc_offset && header.desc_offset >= sizeof(header) && in stats_test() 69 TEST_ASSERT(header.desc_offset > header.data_offset || in stats_test() 70 (header.desc_offset + size_desc * header.num_desc <= header.data_offset), in stats_test() 146 TEST_ASSERT(header.data_offset >= header.desc_offset || in stats_test() 147 header.data_offset + size_data <= header.desc_offset, in stats_test()
|
/openbmc/linux/drivers/net/wan/ |
H A D | hd64570.c | 105 static inline u16 desc_offset(port_t *port, u16 desc, int transmit) in desc_offset() function 116 + desc_offset(port, desc, transmit)); in desc_address() 119 + desc_offset(port, desc, transmit)); in desc_address() 166 u16 chain_off = desc_offset(port, i + 1, transmit); in sca_init_port() 184 sca_outw(desc_offset(port, 0, transmit), dmac + CDAL, card); in sca_init_port() 186 sca_outw(desc_offset(port, buffs - 1, transmit), in sca_init_port() 189 sca_outw(desc_offset(port, 0, transmit), dmac + EDAL, in sca_init_port() 300 u32 desc_off = desc_offset(port, port->rxin, 0); in sca_rx_intr() 354 u32 desc_off = desc_offset(port, port->txlast, 1); in sca_tx_intr() 668 sca_outw(desc_offset(port, port->txin, 1), in sca_xmit()
|
H A D | hd64572.c | 84 static inline u16 desc_offset(port_t *port, u16 desc, int transmit) in desc_offset() function 94 desc_offset(port, desc, transmit)); in desc_address() 136 u16 chain_off = desc_offset(port, i + 1, transmit); in sca_init_port() 155 sca_outl(desc_offset(port, 0, 0), dmac_rx + CDAL, card); in sca_init_port() 156 sca_outl(desc_offset(port, card->tx_ring_buffers - 1, 0), in sca_init_port() 158 sca_outl(desc_offset(port, 0, 1), dmac_tx + CDAL, card); in sca_init_port() 159 sca_outl(desc_offset(port, 0, 1), dmac_tx + EDAL, card); in sca_init_port() 240 u32 desc_off = desc_offset(port, port->rxin, 0); in sca_rx_done() 590 sca_outl(desc_offset(port, port->txin, 1), in sca_xmit()
|
/openbmc/linux/virt/kvm/ |
H A D | binary_stats.c | 121 copylen = header->desc_offset + size_desc - pos; in kvm_stats_read() 124 src = (void *)desc + pos - header->desc_offset; in kvm_stats_read()
|
/openbmc/qemu/block/ |
H A D | vmdk.c | 83 uint64_t desc_offset; member 168 uint64_t desc_offset; member 355 if (s->desc_offset == 0) { in vmdk_write_cid() 956 uint64_t desc_offset = le64_to_cpu(header.desc_offset); in vmdk_open_vmdk4() local 957 if (desc_offset) { in vmdk_open_vmdk4() 1341 s->desc_offset = 0; in vmdk_open_desc_file() 1373 s->desc_offset = 0x200; in vmdk_open() 2252 header.desc_offset = 1; in vmdk_init_extent() 2265 header.desc_offset = cpu_to_le64(header.desc_offset); in vmdk_init_extent() 2624 desc_offset = 0x200; in vmdk_co_do_create() [all …]
|
/openbmc/linux/drivers/net/usb/ |
H A D | aqc111.c | 1078 u32 desc_offset = 0; /*RX Header Offset*/ in aqc111_rx_fixup() local 1096 desc_offset = (desc_hdr & AQ_RX_DH_DESC_OFFSET_MASK) >> in aqc111_rx_fixup() 1102 if (start_of_descs != desc_offset) in aqc111_rx_fixup() 1108 if (pkt_count * 2 + desc_offset >= skb_len) in aqc111_rx_fixup() 1112 skb_trim(skb, desc_offset); in aqc111_rx_fixup() 1118 pkt_desc_ptr = (u64 *)(skb->data + desc_offset); in aqc111_rx_fixup() 1130 if (pkt_total_offset > desc_offset || in aqc111_rx_fixup() 1131 (pkt_count == 0 && pkt_total_offset != desc_offset)) { in aqc111_rx_fixup()
|
/openbmc/linux/drivers/staging/media/atomisp/pci/runtime/bufq/src/ |
H A D | bufq.c | 252 init_bufq(unsigned int desc_offset, in init_bufq() argument 266 remoteq.cb_desc_addr = q_base_addr + desc_offset; in init_bufq()
|
/openbmc/qemu/hw/net/ |
H A D | e1000.c | 889 size_t desc_offset; in e1000_receive_iov() local 936 desc_offset = 0; in e1000_receive_iov() 943 desc_size = total_size - desc_offset; in e1000_receive_iov() 952 if (desc_offset < size) { in e1000_receive_iov() 955 size_t copy_size = size - desc_offset; in e1000_receive_iov() 971 desc_offset += desc_size; in e1000_receive_iov() 973 if (desc_offset >= total_size) { in e1000_receive_iov() 998 } while (desc_offset < total_size); in e1000_receive_iov()
|
H A D | e1000e_core.c | 1492 size_t desc_offset = 0; in e1000e_write_packet_to_guest() local 1510 desc_size = total_size - desc_offset; in e1000e_write_packet_to_guest() 1529 if (desc_offset < size) { in e1000e_write_packet_to_guest() 1532 size_t copy_size = size - desc_offset; in e1000e_write_packet_to_guest() 1586 if (desc_offset + desc_size >= total_size) { in e1000e_write_packet_to_guest() 1595 desc_offset += desc_size; in e1000e_write_packet_to_guest() 1596 if (desc_offset >= total_size) { in e1000e_write_packet_to_guest() 1607 } while (desc_offset < total_size); in e1000e_write_packet_to_guest()
|
H A D | igb_core.c | 1262 size_t desc_offset; member 1852 if (pdma_st->desc_offset + pdma_st->desc_size >= pdma_st->total_size) { in igb_write_payload_to_rx_buffers() 1875 if (pdma_st->desc_offset >= pdma_st->size) { in igb_write_to_rx_buffers() 1879 pdma_st->desc_size = pdma_st->total_size - pdma_st->desc_offset; in igb_write_to_rx_buffers() 1881 copy_size = pdma_st->size - pdma_st->desc_offset; in igb_write_to_rx_buffers() 1938 pdma_st.desc_offset += pdma_st.desc_size; in igb_write_packet_to_guest() 1939 if (pdma_st.desc_offset >= pdma_st.total_size) { in igb_write_packet_to_guest() 1951 } while (pdma_st.desc_offset < pdma_st.total_size); in igb_write_packet_to_guest()
|
/openbmc/linux/arch/riscv/kvm/ |
H A D | vm.c | 25 .desc_offset = sizeof(struct kvm_stats_header) + KVM_STATS_NAME_SIZE,
|
H A D | vcpu.c | 40 .desc_offset = sizeof(struct kvm_stats_header) + KVM_STATS_NAME_SIZE,
|
/openbmc/qemu/hw/scsi/ |
H A D | spapr_vscsi.c | 321 unsigned desc_offset = n * sizeof(struct srp_direct_buf); in vscsi_fetch_desc() local 323 if (desc_offset >= tbl_desc.len) { in vscsi_fetch_desc() 324 trace_spapr_vscsi_fetch_desc_out_of_range(n, desc_offset); in vscsi_fetch_desc() 327 rc = spapr_vio_dma_read(&s->vdev, tbl_desc.va + desc_offset, in vscsi_fetch_desc()
|
H A D | trace-events | 221 spapr_vscsi_fetch_desc_out_of_range(unsigned desc, unsigned desc_offset) "#%u is ouf of range (%u b… 226 spapr_vscsi_fetch_desc_done(unsigned desc_num, unsigned desc_offset, uint64_t va, uint32_t len) " …
|
/openbmc/linux/fs/nilfs2/ |
H A D | alloc.c | 118 unsigned long desc_offset = in nilfs_palloc_bitmap_blkoff() local 121 desc_offset * NILFS_MDT(inode)->mi_blocks_per_group; in nilfs_palloc_bitmap_blkoff()
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_gpu_error.h | 135 u32 desc_offset; member
|
H A D | i915_gpu_error.c | 686 ctb->head, ctb->tail, ctb->desc_offset, ctb->cmds_offset, ctb->size); in err_print_guc_ctb() 1712 saved->desc_offset = ((void *)ctb->desc) - blob_ptr; in gt_record_guc_ctb()
|
/openbmc/linux/drivers/dma/xilinx/ |
H A D | xilinx_dma.c | 421 u32 desc_offset; member 546 dma_write(chan, chan->desc_offset + reg, value); in vdma_desc_write() 587 writel(value_lsb, chan->xdev->regs + chan->desc_offset + reg); in vdma_desc_write_64() 590 writel(value_msb, chan->xdev->regs + chan->desc_offset + reg + 4); in vdma_desc_write_64() 2863 chan->desc_offset = XILINX_VDMA_MM2S_DESC_OFFSET; in xilinx_dma_chan_probe() 2891 chan->desc_offset = XILINX_VDMA_S2MM_DESC_OFFSET; in xilinx_dma_chan_probe()
|
/openbmc/linux/arch/arm64/kvm/ |
H A D | guest.c | 40 .desc_offset = sizeof(struct kvm_stats_header) + KVM_STATS_NAME_SIZE, 60 .desc_offset = sizeof(struct kvm_stats_header) + KVM_STATS_NAME_SIZE,
|
/openbmc/linux/arch/powerpc/kvm/ |
H A D | book3s.c | 51 .desc_offset = sizeof(struct kvm_stats_header) + KVM_STATS_NAME_SIZE, 93 .desc_offset = sizeof(struct kvm_stats_header) + KVM_STATS_NAME_SIZE,
|
H A D | booke.c | 49 .desc_offset = sizeof(struct kvm_stats_header) + KVM_STATS_NAME_SIZE, 84 .desc_offset = sizeof(struct kvm_stats_header) + KVM_STATS_NAME_SIZE,
|
/openbmc/linux/arch/mips/kvm/ |
H A D | mips.c | 49 .desc_offset = sizeof(struct kvm_stats_header) + KVM_STATS_NAME_SIZE, 91 .desc_offset = sizeof(struct kvm_stats_header) + KVM_STATS_NAME_SIZE,
|
/openbmc/qemu/linux-headers/linux/ |
H A D | kvm.h | 1462 __u32 desc_offset; member
|