Home
last modified time | relevance | path

Searched refs:seg_size (Results 1 – 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/arch/powerpc/mm/
Ddma-noncoherent.c62 size_t seg_size = min((size_t)(PAGE_SIZE - offset), size); in __dma_sync_page_highmem() local
63 size_t cur_size = seg_size; in __dma_sync_page_highmem()
65 int nr_segs = 1 + ((size - seg_size) + PAGE_SIZE - 1)/PAGE_SIZE; in __dma_sync_page_highmem()
74 __dma_sync((void *)start, seg_size, direction); in __dma_sync_page_highmem()
79 seg_size = min((size_t)PAGE_SIZE, size - cur_size); in __dma_sync_page_highmem()
82 cur_size += seg_size; in __dma_sync_page_highmem()
/kernel/linux/linux-5.10/drivers/mmc/core/
Dsdio_ops.c123 unsigned int seg_size = card->host->max_seg_size; in mmc_io_rw_extended() local
152 nents = DIV_ROUND_UP(left_size, seg_size); in mmc_io_rw_extended()
161 sg_set_buf(sg_ptr, buf + i * seg_size, in mmc_io_rw_extended()
162 min(seg_size, left_size)); in mmc_io_rw_extended()
163 left_size -= seg_size; in mmc_io_rw_extended()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/
Delf.c165 size_t seg_size = seg_vend - seg_vstart + 1; in kvm_vm_elf_load() local
167 vm_vaddr_t vaddr = vm_vaddr_alloc(vm, seg_size, seg_vstart, in kvm_vm_elf_load()
175 memset(addr_gva2hva(vm, vaddr), 0, seg_size); in kvm_vm_elf_load()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
Dswap.c76 u32 seg_size; in ath10k_swap_code_seg_free() local
84 seg_size = __le32_to_cpu(seg_info->seg_hw_info.size); in ath10k_swap_code_seg_free()
85 dma_free_coherent(ar->dev, seg_size, seg_info->virt_address[0], in ath10k_swap_code_seg_free()
/kernel/linux/linux-5.10/drivers/lightnvm/
Dpblk-rb.c73 unsigned int seg_size) in pblk_rb_init() argument
89 power_seg_sz = get_count_order(seg_size); in pblk_rb_init()
93 rb->seg_size = (1 << power_seg_sz); in pblk_rb_init()
147 entry->data = kaddr + (i * rb->seg_size); in pblk_rb_init()
331 memcpy(entry->data, data, rb->seg_size); in __pblk_rb_write_entry()
599 if (bio_add_pc_page(q, bio, page, rb->seg_size, 0) != in pblk_rb_read_to_bio()
600 rb->seg_size) { in pblk_rb_read_to_bio()
677 memcpy(data, entry->data, rb->seg_size); in pblk_rb_copy_to_bio()
/kernel/linux/linux-5.10/drivers/bluetooth/
Dbtqca.c250 static int qca_tlv_send_segment(struct hci_dev *hdev, int seg_size, in qca_tlv_send_segment() argument
264 cmd[1] = seg_size; in qca_tlv_send_segment()
265 memcpy(cmd + 2, data, seg_size); in qca_tlv_send_segment()
268 return __hci_cmd_send(hdev, EDL_PATCH_CMD_OPCODE, seg_size + 2, in qca_tlv_send_segment()
281 skb = __hci_cmd_sync_ev(hdev, EDL_PATCH_CMD_OPCODE, seg_size + 2, cmd, in qca_tlv_send_segment()
/kernel/linux/linux-5.10/block/
Dblk-integrity.c31 unsigned int seg_size = 0; in blk_rq_count_integrity_sg() local
40 if (seg_size + iv.bv_len > queue_max_segment_size(q)) in blk_rq_count_integrity_sg()
43 seg_size += iv.bv_len; in blk_rq_count_integrity_sg()
47 seg_size = iv.bv_len; in blk_rq_count_integrity_sg()
Dblk-merge.c206 unsigned seg_size = 0; in bvec_split_segs() local
209 seg_size = get_max_segment_size(q, bv->bv_page, in bvec_split_segs()
211 seg_size = min(seg_size, len); in bvec_split_segs()
214 total_len += seg_size; in bvec_split_segs()
215 len -= seg_size; in bvec_split_segs()
/kernel/linux/linux-5.10/arch/x86/kernel/
Damd_gart_64.c385 unsigned int seg_size; in gart_map_sg() local
395 seg_size = 0; in gart_map_sg()
415 (s->length + seg_size > max_seg_size) || in gart_map_sg()
422 seg_size = 0; in gart_map_sg()
430 seg_size += s->length; in gart_map_sg()
/kernel/linux/linux-5.10/drivers/infiniband/core/
Duser_mad.c297 size_t seg_size; in copy_recv_mad() local
300 seg_size = packet->recv_wc->mad_seg_size; in copy_recv_mad()
303 if ((packet->length <= seg_size && in copy_recv_mad()
305 (packet->length > seg_size && in copy_recv_mad()
306 count < hdr_size(file) + seg_size)) in copy_recv_mad()
313 seg_payload = min_t(int, packet->length, seg_size); in copy_recv_mad()
330 max_seg_payload = seg_size - offset; in copy_recv_mad()
440 seg++, left -= msg->seg_size, buf += msg->seg_size) { in copy_rmpp_mad()
442 min(left, msg->seg_size))) in copy_rmpp_mad()
Dmad.c775 int seg_size, pad; in get_pad_size() local
777 seg_size = mad_size - hdr_len; in get_pad_size()
778 if (data_len && seg_size) { in get_pad_size()
779 pad = seg_size - data_len % seg_size; in get_pad_size()
780 return pad == seg_size ? 0 : pad; in get_pad_size()
782 return seg_size; in get_pad_size()
801 int left, seg_size, pad; in alloc_send_rmpp_list() local
803 send_buf->seg_size = mad_size - send_buf->hdr_len; in alloc_send_rmpp_list()
805 seg_size = send_buf->seg_size; in alloc_send_rmpp_list()
809 for (left = send_buf->data_len + pad; left > 0; left -= seg_size) { in alloc_send_rmpp_list()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dbook3s_64_mmu.c453 u64 seg_size; in kvmppc_mmu_book3s_64_slbie() local
468 seg_size = 1ull << kvmppc_slb_sid_shift(slbe); in kvmppc_mmu_book3s_64_slbie()
469 kvmppc_mmu_flush_segment(vcpu, ea & ~(seg_size - 1), seg_size); in kvmppc_mmu_book3s_64_slbie()
Dbook3s_64_mmu_host.c356 void kvmppc_mmu_flush_segment(struct kvm_vcpu *vcpu, ulong ea, ulong seg_size) in kvmppc_mmu_flush_segment() argument
359 ulong seg_mask = -seg_size; in kvmppc_mmu_flush_segment()
/kernel/linux/linux-5.10/fs/afs/
Dxdr_fs.h25 __be32 seg_size; member
/kernel/linux/linux-5.10/drivers/bus/mhi/core/
Dboot.c311 size_t seg_size = mhi_cntrl->seg_len; in mhi_alloc_bhie_table() local
312 int segments = DIV_ROUND_UP(alloc_size, seg_size) + 1; in mhi_alloc_bhie_table()
330 size_t vec_size = seg_size; in mhi_alloc_bhie_table()
/kernel/linux/linux-5.10/drivers/usb/early/
Dxhci-dbc.h61 __le32 seg_size; member
/kernel/linux/linux-5.10/drivers/video/fbdev/via/
Dvia-core.c149 u32 seg_size; /* Size, 16-byte units */ member
259 descr->seg_size = sg_dma_len(sgentry) >> 4; in viafb_dma_copy_out_sg()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_struct.h151 u64 seg_size : 16; /* W0 */ member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_flex_type.h34 __le32 seg_size; member
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Dtcp_nip_output.c1302 unsigned int seg_size = tcp_wnd_end(tp) - TCP_SKB_CB(skb)->seq; in tcp_nip_write_wakeup() local
1307 if (seg_size < TCP_SKB_CB(skb)->end_seq - TCP_SKB_CB(skb)->seq) { in tcp_nip_write_wakeup()
1310 skb, seg_size, mss, GFP_ATOMIC); in tcp_nip_write_wakeup()
/kernel/linux/linux-5.10/include/rdma/
Dib_mad.h471 int seg_size; member
/kernel/linux/linux-5.10/drivers/usb/mtu3/
Dmtu3_core.c23 static int ep_fifo_alloc(struct mtu3_ep *mep, u32 seg_size) in ep_fifo_alloc() argument
26 u32 num_bits = DIV_ROUND_UP(seg_size, MTU3_EP_FIFO_UNIT); in ep_fifo_alloc()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dkvm_book3s.h156 extern void kvmppc_mmu_flush_segment(struct kvm_vcpu *vcpu, ulong eaddr, ulong seg_size);
/kernel/linux/linux-5.10/drivers/staging/qlge/
Dqlge_dbg.c697 u32 seg_number, u32 seg_size, u8 *desc) in ql_build_coredump_seg_header() argument
702 seg_hdr->seg_size = seg_size; in ql_build_coredump_seg_header()
/kernel/linux/linux-5.10/net/ipv4/
Dtcp_output.c4053 unsigned int seg_size = tcp_wnd_end(tp) - TCP_SKB_CB(skb)->seq; in tcp_write_wakeup() local
4062 if (seg_size < TCP_SKB_CB(skb)->end_seq - TCP_SKB_CB(skb)->seq || in tcp_write_wakeup()
4064 seg_size = min(seg_size, mss); in tcp_write_wakeup()
4067 skb, seg_size, mss, GFP_ATOMIC)) in tcp_write_wakeup()

12