Home
last modified time | relevance | path

Searched refs:seg (Results 1 - 25 of 471) sorted by relevance

12345678910>>...19

/kernel/linux/linux-5.10/arch/s390/mm/
H A Dextmem.c165 query_segment_type (struct dcss_segment *seg) in query_segment_type() argument
183 memcpy (qin->qname, seg->dcss_name, 8); in query_segment_type()
203 seg->vm_segtype = qout->range[0].start & 0xff; in query_segment_type()
222 seg->vm_segtype = SEG_TYPE_EWEN; in query_segment_type()
225 /* analyze diag output and update seg */ in query_segment_type()
226 seg->start_addr = qout->segstart; in query_segment_type()
227 seg->end = qout->segend; in query_segment_type()
229 memcpy (seg->range, qout->range, 6*sizeof(struct qrange)); in query_segment_type()
230 seg->segcnt = qout->segcnt; in query_segment_type()
254 struct dcss_segment seg; in segment_type() local
271 segment_overlaps_others(struct dcss_segment *seg) segment_overlaps_others() argument
298 struct dcss_segment *seg; __segment_load() local
416 struct dcss_segment *seg; segment_load() local
457 struct dcss_segment *seg; segment_modify_shared() local
539 struct dcss_segment *seg; segment_unload() local
568 struct dcss_segment *seg; segment_save() local
[all...]
/kernel/linux/linux-6.6/arch/s390/mm/
H A Dextmem.c165 query_segment_type (struct dcss_segment *seg) in query_segment_type() argument
183 memcpy (qin->qname, seg->dcss_name, 8); in query_segment_type()
203 seg->vm_segtype = qout->range[0].start & 0xff; in query_segment_type()
222 seg->vm_segtype = SEG_TYPE_EWEN; in query_segment_type()
225 /* analyze diag output and update seg */ in query_segment_type()
226 seg->start_addr = qout->segstart; in query_segment_type()
227 seg->end = qout->segend; in query_segment_type()
229 memcpy (seg->range, qout->range, 6*sizeof(struct qrange)); in query_segment_type()
230 seg->segcnt = qout->segcnt; in query_segment_type()
254 struct dcss_segment seg; in segment_type() local
271 segment_overlaps_others(struct dcss_segment *seg) segment_overlaps_others() argument
298 struct dcss_segment *seg; __segment_load() local
416 struct dcss_segment *seg; segment_load() local
457 struct dcss_segment *seg; segment_modify_shared() local
539 struct dcss_segment *seg; segment_unload() local
568 struct dcss_segment *seg; segment_save() local
[all...]
/kernel/liteos_a/kernel/base/vm/
H A Dshm.c169 STATIC inline VOID ShmSetSharedFlag(struct shmIDSource *seg) in ShmSetSharedFlag() argument
173 LOS_DL_LIST_FOR_EACH_ENTRY(page, &seg->node, LosVmPage, node) { in ShmSetSharedFlag()
178 STATIC inline VOID ShmClearSharedFlag(struct shmIDSource *seg) in ShmClearSharedFlag() argument
182 LOS_DL_LIST_FOR_EACH_ENTRY(page, &seg->node, LosVmPage, node) { in ShmClearSharedFlag()
187 STATIC VOID ShmPagesRefDec(struct shmIDSource *seg) in ShmPagesRefDec() argument
191 LOS_DL_LIST_FOR_EACH_ENTRY(page, &seg->node, LosVmPage, node) { in ShmPagesRefDec()
232 struct shmIDSource *seg = NULL; in ShmAllocSeg() local
240 seg = &IPC_SHM_SEGS[segNum]; in ShmAllocSeg()
241 count = LOS_PhysPagesAlloc(size >> PAGE_SHIFT, &seg->node); in ShmAllocSeg()
243 (VOID)LOS_PhysPagesFree(&seg in ShmAllocSeg()
275 ShmFreeSeg(struct shmIDSource *seg, UINT32 *shmUsedPageCount) ShmFreeSeg() argument
298 struct shmIDSource *seg = NULL; ShmFindSegByKey() local
313 struct shmIDSource *seg = &IPC_SHM_SEGS[segNum]; ShmSegValidCheck() local
329 struct shmIDSource *seg = NULL; ShmFindSeg() local
365 struct shmIDSource *seg = NULL; OsShmFork() local
384 struct shmIDSource *seg = NULL; OsShmRegionFree() local
414 struct shmIDSource *seg = NULL; ShmSegUsedCount() local
425 ShmPermCheck(struct shmIDSource *seg, mode_t mode) ShmPermCheck() argument
530 ShmatVmmAlloc(struct shmIDSource *seg, const VOID *shmaddr, INT32 shmflg, UINT32 prot) ShmatVmmAlloc() argument
582 struct shmIDSource *seg = NULL; ShmAt() local
635 struct shmIDSource *seg = NULL; ShmCtl() local
752 struct shmIDSource *seg = NULL; ShmDt() local
818 struct shmIDSource *seg = &shmSegs[index]; OsShmCBDestroy() local
836 struct shmIDSource *seg = NULL; OsShmInfoCmd() local
856 struct shmIDSource *seg = NULL; OsShmDeleteCmd() local
[all...]
H A Dlos_vm_phys.c60 STATIC VOID OsVmPhysLruInit(struct VmPhysSeg *seg) in OsVmPhysLruInit() argument
64 LOS_SpinInit(&seg->lruLock); in OsVmPhysLruInit()
66 LOS_SpinLockSave(&seg->lruLock, &intSave); in OsVmPhysLruInit()
68 seg->lruSize[i] = 0; in OsVmPhysLruInit()
69 LOS_ListInit(&seg->lruList[i]); in OsVmPhysLruInit()
71 LOS_SpinUnlockRestore(&seg->lruLock, intSave); in OsVmPhysLruInit()
76 struct VmPhysSeg *seg = NULL; in OsVmPhysSegCreate() local
82 seg = &g_vmPhysSeg[g_vmPhysSegNum++]; in OsVmPhysSegCreate()
83 for (; (seg > g_vmPhysSeg) && ((seg in OsVmPhysSegCreate()
128 OsVmPhysFreeListInit(struct VmPhysSeg *seg) OsVmPhysFreeListInit() argument
147 struct VmPhysSeg *seg = NULL; OsVmPhysInit() local
162 struct VmPhysSeg *seg = NULL; OsVmPhysFreeListAddUnsafe() local
179 struct VmPhysSeg *seg = NULL; OsVmPhysFreeListDelUnsafe() local
208 struct VmPhysSeg *seg = NULL; OsVmPhysToPage() local
247 struct VmPhysSeg *seg = NULL; OsVmVaddrToPage() local
270 OsVmPhysLargeAlloc(struct VmPhysSeg *seg, size_t nPages) OsVmPhysLargeAlloc() argument
306 OsVmPhysPagesAlloc(struct VmPhysSeg *seg, size_t nPages) OsVmPhysPagesAlloc() argument
400 struct VmPhysSeg *seg = NULL; OsVmPhysPagesGet() local
439 struct VmPhysSeg *seg = NULL; LOS_PhysPagesFreeContiguous() local
474 struct VmPhysSeg *seg = NULL; LOS_PaddrToKVaddr() local
494 struct VmPhysSeg *seg = NULL; LOS_PhysPageFree() local
546 LosVmPhysSeg *seg = NULL; OsPhysSharePageCopy() local
604 LosVmPhysSeg *seg = NULL; LOS_PhysPagesFree() local
[all...]
/kernel/linux/linux-5.10/ipc/
H A Dmsgutil.c63 struct msg_msgseg *seg; in alloc_msg() local
68 seg = kmalloc(sizeof(*seg) + alen, GFP_KERNEL_ACCOUNT); in alloc_msg()
69 if (seg == NULL) in alloc_msg()
71 *pseg = seg; in alloc_msg()
72 seg->next = NULL; in alloc_msg()
73 pseg = &seg->next; in alloc_msg()
87 struct msg_msgseg *seg; in load_msg() local
99 for (seg = msg->next; seg ! in load_msg()
153 struct msg_msgseg *seg; store_msg() local
171 struct msg_msgseg *seg; free_msg() local
[all...]
/kernel/linux/linux-6.6/ipc/
H A Dmsgutil.c63 struct msg_msgseg *seg; in alloc_msg() local
68 seg = kmalloc(sizeof(*seg) + alen, GFP_KERNEL_ACCOUNT); in alloc_msg()
69 if (seg == NULL) in alloc_msg()
71 *pseg = seg; in alloc_msg()
72 seg->next = NULL; in alloc_msg()
73 pseg = &seg->next; in alloc_msg()
87 struct msg_msgseg *seg; in load_msg() local
99 for (seg = msg->next; seg ! in load_msg()
153 struct msg_msgseg *seg; store_msg() local
171 struct msg_msgseg *seg; free_msg() local
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
H A Dwr.c31 * @seg: Current WQE position (16B aligned).
35 static inline void handle_post_send_edge(struct mlx5_ib_wq *sq, void **seg, in handle_post_send_edge() argument
40 if (likely(*seg != *cur_edge)) in handle_post_send_edge()
46 *seg = mlx5_frag_buf_get_wqe(&sq->fbc, idx); in handle_post_send_edge()
50 * pointers. At the end @seg is aligned to 16B regardless the copied size.
53 * @seg: Current WQE position (16B aligned).
59 void **seg, u32 *wqe_sz, const void *src, in memcpy_send_wqe()
63 size_t leftlen = *cur_edge - *seg; in memcpy_send_wqe()
67 memcpy(*seg, src, copysz); in memcpy_send_wqe()
72 *seg in memcpy_send_wqe()
58 memcpy_send_wqe(struct mlx5_ib_wq *sq, void **cur_edge, void **seg, u32 *wqe_sz, const void *src, size_t n) memcpy_send_wqe() argument
104 set_eth_seg(const struct ib_send_wr *wr, struct mlx5_ib_qp *qp, void **seg, int *size, void **cur_edge) set_eth_seg() argument
373 set_reg_mkey_seg(struct mlx5_mkey_seg *seg, struct mlx5_ib_mr *mr, u32 key, int access) set_reg_mkey_seg() argument
395 set_linv_mkey_seg(struct mlx5_mkey_seg *seg) set_linv_mkey_seg() argument
401 set_reg_mkey_segment(struct mlx5_ib_dev *dev, struct mlx5_mkey_seg *seg, const struct ib_send_wr *wr) set_reg_mkey_segment() argument
484 struct mlx5_wqe_inline_seg *seg; set_data_inl_seg() local
637 set_sig_data_segment(const struct ib_send_wr *send_wr, struct ib_mr *sig_mr, struct ib_sig_attrs *sig_attrs, struct mlx5_ib_qp *qp, void **seg, int *size, void **cur_edge) set_sig_data_segment() argument
749 set_sig_mkey_segment(struct mlx5_mkey_seg *seg, struct ib_mr *sig_mr, int access_flags, u32 size, u32 length, u32 pdn) set_sig_mkey_segment() argument
778 set_pi_umr_wr(const struct ib_send_wr *send_wr, struct mlx5_ib_qp *qp, void **seg, int *size, void **cur_edge) set_pi_umr_wr() argument
829 set_psv_wr(struct ib_sig_domain *domain, u32 psv_idx, void **seg, int *size) set_psv_wr() argument
856 set_reg_wr(struct mlx5_ib_qp *qp, const struct ib_reg_wr *wr, void **seg, int *size, void **cur_edge, bool check_not_free) set_reg_wr() argument
910 set_linv_wr(struct mlx5_ib_qp *qp, void **seg, int *size, void **cur_edge) set_linv_wr() argument
942 __begin_wqe(struct mlx5_ib_qp *qp, void **seg, struct mlx5_wqe_ctrl_seg **ctrl, const struct ib_send_wr *wr, unsigned int *idx, int *size, void **cur_edge, int nreq, bool send_signaled, bool solicited) __begin_wqe() argument
967 begin_wqe(struct mlx5_ib_qp *qp, void **seg, struct mlx5_wqe_ctrl_seg **ctrl, const struct ib_send_wr *wr, unsigned int *idx, int *size, void **cur_edge, int nreq) begin_wqe() argument
977 finish_wqe(struct mlx5_ib_qp *qp, struct mlx5_wqe_ctrl_seg *ctrl, void *seg, u8 size, void *cur_edge, unsigned int idx, u64 wr_id, int nreq, u8 fence, u32 mlx5_opcode) finish_wqe() argument
1008 handle_rdma_op(const struct ib_send_wr *wr, void **seg, int *size) handle_rdma_op() argument
1015 handle_local_inv(struct mlx5_ib_qp *qp, const struct ib_send_wr *wr, struct mlx5_wqe_ctrl_seg **ctrl, void **seg, int *size, void **cur_edge, unsigned int idx) handle_local_inv() argument
1024 handle_reg_mr(struct mlx5_ib_qp *qp, const struct ib_send_wr *wr, struct mlx5_wqe_ctrl_seg **ctrl, void **seg, int *size, void **cur_edge, unsigned int idx) handle_reg_mr() argument
1033 handle_psv(struct mlx5_ib_dev *dev, struct mlx5_ib_qp *qp, const struct ib_send_wr *wr, struct mlx5_wqe_ctrl_seg **ctrl, void **seg, int *size, void **cur_edge, unsigned int *idx, int nreq, struct ib_sig_domain *domain, u32 psv_index, u8 next_fence) handle_psv() argument
1064 handle_reg_mr_integrity(struct mlx5_ib_dev *dev, struct mlx5_ib_qp *qp, const struct ib_send_wr *wr, struct mlx5_wqe_ctrl_seg **ctrl, void **seg, int *size, void **cur_edge, unsigned int *idx, int nreq, u8 fence, u8 next_fence) handle_reg_mr_integrity() argument
1152 handle_qpt_rc(struct mlx5_ib_dev *dev, struct mlx5_ib_qp *qp, const struct ib_send_wr *wr, struct mlx5_wqe_ctrl_seg **ctrl, void **seg, int *size, void **cur_edge, unsigned int *idx, int nreq, u8 fence, u8 next_fence, int *num_sge) handle_qpt_rc() argument
1203 handle_qpt_uc(const struct ib_send_wr *wr, void **seg, int *size) handle_qpt_uc() argument
1215 handle_qpt_hw_gsi(struct mlx5_ib_qp *qp, const struct ib_send_wr *wr, void **seg, int *size, void **cur_edge) handle_qpt_hw_gsi() argument
1225 handle_qpt_ud(struct mlx5_ib_qp *qp, const struct ib_send_wr *wr, void **seg, int *size, void **cur_edge) handle_qpt_ud() argument
1246 handle_qpt_reg_umr(struct mlx5_ib_dev *dev, struct mlx5_ib_qp *qp, const struct ib_send_wr *wr, struct mlx5_wqe_ctrl_seg **ctrl, void **seg, int *size, void **cur_edge, unsigned int idx) handle_qpt_reg_umr() argument
1290 void *seg; mlx5_ib_post_send() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/sgx/
H A Dload.c106 static bool encl_ioc_add_pages(struct encl *encl, struct encl_segment *seg) in encl_ioc_add_pages() argument
113 secinfo.flags = seg->flags; in encl_ioc_add_pages()
115 ioc.src = (uint64_t)seg->src; in encl_ioc_add_pages()
116 ioc.offset = seg->offset; in encl_ioc_add_pages()
117 ioc.length = seg->size; in encl_ioc_add_pages()
119 if (seg->measure) in encl_ioc_add_pages()
180 struct encl_segment *seg; in encl_load() local
253 seg = &encl->segment_tbl[j]; in encl_load()
273 seg->prot = PROT_READ | PROT_WRITE; in encl_load()
274 seg in encl_load()
356 struct encl_segment *seg = &encl->segment_tbl[i]; encl_build() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_buddy.c77 unsigned int seg, order_iter, m; in dr_buddy_find_free_seg() local
85 seg = find_first_bit(buddy->bitmap[order_iter], m); in dr_buddy_find_free_seg()
87 if (WARN(seg >= m, in dr_buddy_find_free_seg()
98 *segment = seg; in dr_buddy_find_free_seg()
123 unsigned int seg, order_iter; in mlx5dr_buddy_alloc_mem() local
126 err = dr_buddy_find_free_seg(buddy, order, &seg, &order_iter); in mlx5dr_buddy_alloc_mem()
130 bitmap_clear(buddy->bitmap[order_iter], seg, 1); in mlx5dr_buddy_alloc_mem()
139 seg <<= 1; in mlx5dr_buddy_alloc_mem()
140 bitmap_set(buddy->bitmap[order_iter], seg ^ 1, 1); in mlx5dr_buddy_alloc_mem()
144 seg << in mlx5dr_buddy_alloc_mem()
150 mlx5dr_buddy_free_mem(struct mlx5dr_icm_buddy_mem *buddy, unsigned int seg, unsigned int order) mlx5dr_buddy_free_mem() argument
[all...]
/kernel/linux/linux-5.10/arch/x86/kvm/
H A Dmtrr.c181 static u64 fixed_mtrr_seg_unit_size(int seg) in fixed_mtrr_seg_unit_size() argument
183 return 8 << fixed_seg_table[seg].range_shift; in fixed_mtrr_seg_unit_size()
186 static bool fixed_msr_to_seg_unit(u32 msr, int *seg, int *unit) in fixed_msr_to_seg_unit() argument
190 *seg = 0; in fixed_msr_to_seg_unit()
194 *seg = 1; in fixed_msr_to_seg_unit()
200 *seg = 2; in fixed_msr_to_seg_unit()
212 static void fixed_mtrr_seg_unit_range(int seg, int unit, u64 *start, u64 *end) in fixed_mtrr_seg_unit_range() argument
214 struct fixed_mtrr_segment *mtrr_seg = &fixed_seg_table[seg]; in fixed_mtrr_seg_unit_range()
215 u64 unit_size = fixed_mtrr_seg_unit_size(seg); in fixed_mtrr_seg_unit_range()
222 static int fixed_mtrr_seg_unit_range_index(int seg, in argument
233 fixed_mtrr_seg_end_range_index(int seg) fixed_mtrr_seg_end_range_index() argument
244 int seg, unit; fixed_msr_to_range() local
255 int seg, unit; fixed_msr_to_range_index() local
266 int seg, seg_num = ARRAY_SIZE(fixed_seg_table); fixed_mtrr_addr_to_seg() local
277 fixed_mtrr_addr_seg_to_range_index(u64 addr, int seg) fixed_mtrr_addr_seg_to_range_index() argument
288 fixed_mtrr_range_end_addr(int seg, int index) fixed_mtrr_range_end_addr() argument
462 int seg; global() member
478 int seg, index; mtrr_lookup_fixed_start() local
[all...]
/kernel/linux/linux-6.6/arch/x86/kvm/
H A Dmtrr.c189 static u64 fixed_mtrr_seg_unit_size(int seg) in fixed_mtrr_seg_unit_size() argument
191 return 8 << fixed_seg_table[seg].range_shift; in fixed_mtrr_seg_unit_size()
194 static bool fixed_msr_to_seg_unit(u32 msr, int *seg, int *unit) in fixed_msr_to_seg_unit() argument
198 *seg = 0; in fixed_msr_to_seg_unit()
202 *seg = 1; in fixed_msr_to_seg_unit()
208 *seg = 2; in fixed_msr_to_seg_unit()
220 static void fixed_mtrr_seg_unit_range(int seg, int unit, u64 *start, u64 *end) in fixed_mtrr_seg_unit_range() argument
222 struct fixed_mtrr_segment *mtrr_seg = &fixed_seg_table[seg]; in fixed_mtrr_seg_unit_range()
223 u64 unit_size = fixed_mtrr_seg_unit_size(seg); in fixed_mtrr_seg_unit_range()
230 static int fixed_mtrr_seg_unit_range_index(int seg, in argument
241 fixed_mtrr_seg_end_range_index(int seg) fixed_mtrr_seg_end_range_index() argument
252 int seg, unit; fixed_msr_to_range() local
263 int seg, unit; fixed_msr_to_range_index() local
274 int seg, seg_num = ARRAY_SIZE(fixed_seg_table); fixed_mtrr_addr_to_seg() local
285 fixed_mtrr_addr_seg_to_range_index(u64 addr, int seg) fixed_mtrr_addr_seg_to_range_index() argument
296 fixed_mtrr_range_end_addr(int seg, int index) fixed_mtrr_range_end_addr() argument
457 int seg; global() member
473 int seg, index; mtrr_lookup_fixed_start() local
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx5/
H A Dwr.c55 void **seg, int *size, void **cur_edge) in set_eth_seg()
57 struct mlx5_wqe_eth_seg *eseg = *seg; in set_eth_seg()
85 *seg += stride; in set_eth_seg()
88 handle_post_send_edge(&qp->sq, seg, *size, cur_edge); in set_eth_seg()
91 mlx5r_memcpy_send_wqe(&qp->sq, cur_edge, seg, size, in set_eth_seg()
98 *seg += sizeof(struct mlx5_wqe_eth_seg); in set_eth_seg()
189 static void set_reg_mkey_seg(struct mlx5_mkey_seg *seg, in set_reg_mkey_seg() argument
195 memset(seg, 0, sizeof(*seg)); in set_reg_mkey_seg()
198 seg in set_reg_mkey_seg()
54 set_eth_seg(const struct ib_send_wr *wr, struct mlx5_ib_qp *qp, void **seg, int *size, void **cur_edge) set_eth_seg() argument
211 set_linv_mkey_seg(struct mlx5_mkey_seg *seg) set_linv_mkey_seg() argument
263 struct mlx5_wqe_inline_seg *seg; set_data_inl_seg() local
416 set_sig_data_segment(const struct ib_send_wr *send_wr, struct ib_mr *sig_mr, struct ib_sig_attrs *sig_attrs, struct mlx5_ib_qp *qp, void **seg, int *size, void **cur_edge) set_sig_data_segment() argument
528 set_sig_mkey_segment(struct mlx5_mkey_seg *seg, struct ib_mr *sig_mr, int access_flags, u32 size, u32 length, u32 pdn) set_sig_mkey_segment() argument
557 set_pi_umr_wr(const struct ib_send_wr *send_wr, struct mlx5_ib_qp *qp, void **seg, int *size, void **cur_edge) set_pi_umr_wr() argument
608 set_psv_wr(struct ib_sig_domain *domain, u32 psv_idx, void **seg, int *size) set_psv_wr() argument
635 set_reg_wr(struct mlx5_ib_qp *qp, const struct ib_reg_wr *wr, void **seg, int *size, void **cur_edge, bool check_not_free) set_reg_wr() argument
692 set_linv_wr(struct mlx5_ib_qp *qp, void **seg, int *size, void **cur_edge) set_linv_wr() argument
724 mlx5r_begin_wqe(struct mlx5_ib_qp *qp, void **seg, struct mlx5_wqe_ctrl_seg **ctrl, unsigned int *idx, int *size, void **cur_edge, int nreq, __be32 general_id, bool send_signaled, bool solicited) mlx5r_begin_wqe() argument
748 begin_wqe(struct mlx5_ib_qp *qp, void **seg, struct mlx5_wqe_ctrl_seg **ctrl, const struct ib_send_wr *wr, unsigned int *idx, int *size, void **cur_edge, int nreq) begin_wqe() argument
758 mlx5r_finish_wqe(struct mlx5_ib_qp *qp, struct mlx5_wqe_ctrl_seg *ctrl, void *seg, u8 size, void *cur_edge, unsigned int idx, u64 wr_id, int nreq, u8 fence, u32 mlx5_opcode) mlx5r_finish_wqe() argument
787 handle_rdma_op(const struct ib_send_wr *wr, void **seg, int *size) handle_rdma_op() argument
794 handle_local_inv(struct mlx5_ib_qp *qp, const struct ib_send_wr *wr, struct mlx5_wqe_ctrl_seg **ctrl, void **seg, int *size, void **cur_edge, unsigned int idx) handle_local_inv() argument
803 handle_reg_mr(struct mlx5_ib_qp *qp, const struct ib_send_wr *wr, struct mlx5_wqe_ctrl_seg **ctrl, void **seg, int *size, void **cur_edge, unsigned int idx) handle_reg_mr() argument
812 handle_psv(struct mlx5_ib_dev *dev, struct mlx5_ib_qp *qp, const struct ib_send_wr *wr, struct mlx5_wqe_ctrl_seg **ctrl, void **seg, int *size, void **cur_edge, unsigned int *idx, int nreq, struct ib_sig_domain *domain, u32 psv_index, u8 next_fence) handle_psv() argument
843 handle_reg_mr_integrity(struct mlx5_ib_dev *dev, struct mlx5_ib_qp *qp, const struct ib_send_wr *wr, struct mlx5_wqe_ctrl_seg **ctrl, void **seg, int *size, void **cur_edge, unsigned int *idx, int nreq, u8 fence, u8 next_fence) handle_reg_mr_integrity() argument
931 handle_qpt_rc(struct mlx5_ib_dev *dev, struct mlx5_ib_qp *qp, const struct ib_send_wr *wr, struct mlx5_wqe_ctrl_seg **ctrl, void **seg, int *size, void **cur_edge, unsigned int *idx, int nreq, u8 fence, u8 next_fence, int *num_sge) handle_qpt_rc() argument
982 handle_qpt_uc(const struct ib_send_wr *wr, void **seg, int *size) handle_qpt_uc() argument
994 handle_qpt_hw_gsi(struct mlx5_ib_qp *qp, const struct ib_send_wr *wr, void **seg, int *size, void **cur_edge) handle_qpt_hw_gsi() argument
1004 handle_qpt_ud(struct mlx5_ib_qp *qp, const struct ib_send_wr *wr, void **seg, int *size, void **cur_edge) handle_qpt_ud() argument
1065 void *seg; mlx5_ib_post_send() local
[all...]
H A Dwr.h47 * @seg: Current WQE position (16B aligned).
51 static inline void handle_post_send_edge(struct mlx5_ib_wq *sq, void **seg, in handle_post_send_edge() argument
56 if (likely(*seg != *cur_edge)) in handle_post_send_edge()
62 *seg = mlx5_frag_buf_get_wqe(&sq->fbc, idx); in handle_post_send_edge()
66 * WQ's pointers. At the end @seg is aligned to 16B regardless the copied size.
69 * @seg: Current WQE position (16B aligned).
75 void **seg, u32 *wqe_sz, in mlx5r_memcpy_send_wqe()
79 size_t leftlen = *cur_edge - *seg; in mlx5r_memcpy_send_wqe()
83 memcpy(*seg, src, copysz); in mlx5r_memcpy_send_wqe()
88 *seg in mlx5r_memcpy_send_wqe()
74 mlx5r_memcpy_send_wqe(struct mlx5_ib_wq *sq, void **cur_edge, void **seg, u32 *wqe_sz, const void *src, size_t n) mlx5r_memcpy_send_wqe() argument
[all...]
/kernel/linux/linux-5.10/drivers/firmware/google/
H A Dmemconsole-coreboot.c45 struct seg { /* describes ring buffer segments in logical order */ in memconsole_coreboot_read() struct
48 } seg[2] = { {0}, {0} }; in memconsole_coreboot_read() local
55 seg[0] = (struct seg){.phys = cursor, .len = size - cursor}; in memconsole_coreboot_read()
56 seg[1] = (struct seg){.phys = 0, .len = cursor}; in memconsole_coreboot_read()
58 seg[0] = (struct seg){.phys = 0, .len = min(cursor, size)}; in memconsole_coreboot_read()
61 for (i = 0; i < ARRAY_SIZE(seg) && count > done; i++) { in memconsole_coreboot_read()
63 cbmem_console->body + seg[ in memconsole_coreboot_read()
[all...]
/kernel/linux/linux-6.6/drivers/firmware/google/
H A Dmemconsole-coreboot.c45 struct seg { /* describes ring buffer segments in logical order */ in memconsole_coreboot_read() struct
48 } seg[2] = { {0}, {0} }; in memconsole_coreboot_read() local
55 seg[0] = (struct seg){.phys = cursor, .len = size - cursor}; in memconsole_coreboot_read()
56 seg[1] = (struct seg){.phys = 0, .len = cursor}; in memconsole_coreboot_read()
58 seg[0] = (struct seg){.phys = 0, .len = min(cursor, size)}; in memconsole_coreboot_read()
61 for (i = 0; i < ARRAY_SIZE(seg) && count > done; i++) { in memconsole_coreboot_read()
63 cbmem_console->body + seg[ in memconsole_coreboot_read()
[all...]
/kernel/linux/linux-5.10/net/ipv4/
H A Dudp_offload.c187 static void __udpv4_gso_segment_csum(struct sk_buff *seg, in __udpv4_gso_segment_csum() argument
197 uh = udp_hdr(seg); in __udpv4_gso_segment_csum()
198 iph = ip_hdr(seg); in __udpv4_gso_segment_csum()
201 inet_proto_csum_replace4(&uh->check, seg, *oldip, *newip, in __udpv4_gso_segment_csum()
203 inet_proto_csum_replace2(&uh->check, seg, *oldport, *newport, in __udpv4_gso_segment_csum()
216 struct sk_buff *seg; in __udpv4_gso_segment_list_csum() local
220 seg = segs; in __udpv4_gso_segment_list_csum()
221 uh = udp_hdr(seg); in __udpv4_gso_segment_list_csum()
222 iph = ip_hdr(seg); in __udpv4_gso_segment_list_csum()
224 if ((udp_hdr(seg) in __udpv4_gso_segment_list_csum()
265 struct sk_buff *segs, *seg; __udp_gso_segment() local
[all...]
/kernel/linux/linux-5.10/arch/m68k/sun3/
H A Dmmu_emu.c129 unsigned long seg, num; in mmu_emu_init() local
152 for(seg = bootmem_end; seg < 0x0f800000; seg += SUN3_PMEG_SIZE) { in mmu_emu_init()
153 i = sun3_get_segmap(seg); in mmu_emu_init()
158 print_pte_vaddr (seg); in mmu_emu_init()
160 sun3_put_segmap(seg, SUN3_INVALID_PMEG); in mmu_emu_init()
165 for (num=0, seg=0x0F800000; seg<0x10000000; seg in mmu_emu_init()
[all...]
/kernel/linux/linux-6.6/arch/m68k/sun3/
H A Dmmu_emu.c128 unsigned long seg, num; in mmu_emu_init() local
151 for(seg = bootmem_end; seg < 0x0f800000; seg += SUN3_PMEG_SIZE) { in mmu_emu_init()
152 i = sun3_get_segmap(seg); in mmu_emu_init()
157 print_pte_vaddr (seg); in mmu_emu_init()
159 sun3_put_segmap(seg, SUN3_INVALID_PMEG); in mmu_emu_init()
164 for (num=0, seg=0x0F800000; seg<0x10000000; seg in mmu_emu_init()
[all...]
/kernel/linux/linux-5.10/drivers/acpi/
H A Dpci_mcfg.c46 #define AL_ECAM(table_id, rev, seg, ops) \
47 { "AMAZON", table_id, rev, seg, MCFG_BUS_ANY, ops }
58 #define QCOM_ECAM32(seg) \
59 { "QCOM ", "QDF2432 ", 1, seg, MCFG_BUS_ANY, &pci_32b_ops }
70 #define HISI_QUAD_DOM(table_id, seg, ops) \
71 { "HISI ", table_id, 0, (seg) + 0, MCFG_BUS_ANY, ops }, \
72 { "HISI ", table_id, 0, (seg) + 1, MCFG_BUS_ANY, ops }, \
73 { "HISI ", table_id, 0, (seg) + 2, MCFG_BUS_ANY, ops }, \
74 { "HISI ", table_id, 0, (seg) + 3, MCFG_BUS_ANY, ops }
100 #define THUNDER_ECAM_QUIRK(rev, seg) \
231 u16 seg = root->segment; pci_mcfg_lookup() local
[all...]
/kernel/linux/linux-6.6/drivers/acpi/
H A Dpci_mcfg.c46 #define AL_ECAM(table_id, rev, seg, ops) \
47 { "AMAZON", table_id, rev, seg, MCFG_BUS_ANY, ops }
58 #define QCOM_ECAM32(seg) \
59 { "QCOM ", "QDF2432 ", 1, seg, MCFG_BUS_ANY, &pci_32b_ops }
70 #define HISI_QUAD_DOM(table_id, seg, ops) \
71 { "HISI ", table_id, 0, (seg) + 0, MCFG_BUS_ANY, ops }, \
72 { "HISI ", table_id, 0, (seg) + 1, MCFG_BUS_ANY, ops }, \
73 { "HISI ", table_id, 0, (seg) + 2, MCFG_BUS_ANY, ops }, \
74 { "HISI ", table_id, 0, (seg) + 3, MCFG_BUS_ANY, ops }
100 #define THUNDER_ECAM_QUIRK(rev, seg) \
238 u16 seg = root->segment; pci_mcfg_lookup() local
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Dudp_offload.c192 static void __udpv4_gso_segment_csum(struct sk_buff *seg, in __udpv4_gso_segment_csum() argument
202 uh = udp_hdr(seg); in __udpv4_gso_segment_csum()
203 iph = ip_hdr(seg); in __udpv4_gso_segment_csum()
206 inet_proto_csum_replace4(&uh->check, seg, *oldip, *newip, in __udpv4_gso_segment_csum()
208 inet_proto_csum_replace2(&uh->check, seg, *oldport, *newport, in __udpv4_gso_segment_csum()
221 struct sk_buff *seg; in __udpv4_gso_segment_list_csum() local
225 seg = segs; in __udpv4_gso_segment_list_csum()
226 uh = udp_hdr(seg); in __udpv4_gso_segment_list_csum()
227 iph = ip_hdr(seg); in __udpv4_gso_segment_list_csum()
229 if ((udp_hdr(seg) in __udpv4_gso_segment_list_csum()
270 struct sk_buff *segs, *seg; __udp_gso_segment() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_txrx.c47 struct sk_buff *skb, int seg, int *len) in otx2_dma_map_skb_frag()
54 if (!seg) { in otx2_dma_map_skb_frag()
59 frag = &skb_shinfo(skb)->frags[seg - 1]; in otx2_dma_map_skb_frag()
69 int seg; in otx2_dma_unmap_skb_frags() local
71 for (seg = 0; seg < sg->num_segs; seg++) { in otx2_dma_unmap_skb_frags()
72 otx2_dma_unmap_page(pfvf, sg->dma_addr[seg], in otx2_dma_unmap_skb_frags()
73 sg->size[seg], DMA_TO_DEVICE); in otx2_dma_unmap_skb_frags()
194 int seg; in otx2_free_rcv_seg() local
46 otx2_dma_map_skb_frag(struct otx2_nic *pfvf, struct sk_buff *skb, int seg, int *len) otx2_dma_map_skb_frag() argument
466 int seg, len; otx2_sqe_add_sg() local
629 int seg, len; otx2_dma_map_tso_skb() local
655 otx2_tso_frag_dma_addr(struct otx2_snd_queue *sq, struct sk_buff *skb, int seg, u64 seg_addr, int hdr_len, int sqe) otx2_tso_frag_dma_addr() argument
679 int seg; otx2_sqe_tso_add_sg() local
[all...]
/kernel/linux/linux-5.10/arch/m68k/include/asm/
H A Dtlbflush.h148 unsigned char seg; in flush_tlb_mm() local
155 seg = sun3_get_segmap(i); in flush_tlb_mm()
156 if(seg == SUN3_INVALID_PMEG) in flush_tlb_mm()
160 pmeg_alloc[seg] = 0; in flush_tlb_mm()
161 pmeg_ctx[seg] = 0; in flush_tlb_mm()
162 pmeg_vaddr[seg] = 0; in flush_tlb_mm()
196 unsigned char seg, oldctx; in flush_tlb_range() local
205 if((seg = sun3_get_segmap(start)) == SUN3_INVALID_PMEG) in flush_tlb_range()
207 if(pmeg_ctx[seg] == mm->context) { in flush_tlb_range()
208 pmeg_alloc[seg] in flush_tlb_range()
[all...]
/kernel/linux/linux-6.6/arch/m68k/include/asm/
H A Dtlbflush.h143 unsigned char seg; in flush_tlb_mm() local
150 seg = sun3_get_segmap(i); in flush_tlb_mm()
151 if(seg == SUN3_INVALID_PMEG) in flush_tlb_mm()
155 pmeg_alloc[seg] = 0; in flush_tlb_mm()
156 pmeg_ctx[seg] = 0; in flush_tlb_mm()
157 pmeg_vaddr[seg] = 0; in flush_tlb_mm()
191 unsigned char seg, oldctx; in flush_tlb_range() local
200 if((seg = sun3_get_segmap(start)) == SUN3_INVALID_PMEG) in flush_tlb_range()
202 if(pmeg_ctx[seg] == mm->context) { in flush_tlb_range()
203 pmeg_alloc[seg] in flush_tlb_range()
[all...]
/kernel/linux/linux-6.6/drivers/usb/cdns3/
H A Dcdnsp-mem.c34 struct cdnsp_segment *seg; in cdnsp_segment_alloc() local
38 seg = kzalloc(sizeof(*seg), flags); in cdnsp_segment_alloc()
39 if (!seg) in cdnsp_segment_alloc()
42 seg->trbs = dma_pool_zalloc(pdev->segment_pool, flags, &dma); in cdnsp_segment_alloc()
43 if (!seg->trbs) { in cdnsp_segment_alloc()
44 kfree(seg); in cdnsp_segment_alloc()
49 seg->bounce_buf = kzalloc(max_packet, flags | GFP_DMA); in cdnsp_segment_alloc()
50 if (!seg->bounce_buf) in cdnsp_segment_alloc()
57 seg in cdnsp_segment_alloc()
71 cdnsp_segment_free(struct cdnsp_device *pdev, struct cdnsp_segment *seg) cdnsp_segment_free() argument
84 struct cdnsp_segment *seg; cdnsp_free_segments_for_ring() local
193 cdnsp_insert_segment_mapping(struct radix_tree_root *trb_address_map, struct cdnsp_ring *ring, struct cdnsp_segment *seg, gfp_t mem_flags) cdnsp_insert_segment_mapping() argument
217 cdnsp_remove_segment_mapping(struct radix_tree_root *trb_address_map, struct cdnsp_segment *seg) cdnsp_remove_segment_mapping() argument
234 struct cdnsp_segment *seg; cdnsp_update_stream_segment_mapping() local
265 struct cdnsp_segment *seg; cdnsp_remove_stream_mapping() local
1030 struct cdnsp_segment *seg; cdnsp_alloc_erst() local
[all...]

Completed in 14 milliseconds

12345678910>>...19