| /linux/arch/s390/mm/ |
| H A D | extmem.c | 167 query_segment_type (struct dcss_segment *seg) in query_segment_type() argument 185 memcpy (qin->qname, seg->dcss_name, 8); in query_segment_type() 205 seg->vm_segtype = qout->range[0].start & 0xff; in query_segment_type() 224 seg->vm_segtype = SEG_TYPE_EWEN; in query_segment_type() 228 seg->start_addr = qout->segstart; in query_segment_type() 229 seg->end = qout->segend; in query_segment_type() 231 memcpy (seg->range, qout->range, 6*sizeof(struct qrange)); in query_segment_type() 232 seg->segcnt = qout->segcnt; in query_segment_type() 256 struct dcss_segment seg; in segment_type() local 261 dcss_mkname(name, seg.dcss_name); in segment_type() [all …]
|
| /linux/drivers/infiniband/hw/mlx5/ |
| H A D | wr.c | 55 void **seg, int *size, void **cur_edge) in set_eth_seg() argument 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() 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 419 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 558 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 609 set_psv_wr(struct ib_sig_domain * domain,u32 psv_idx,void ** seg,int * size) set_psv_wr() argument 637 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 759 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 795 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 804 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 814 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 847 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 935 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 984 handle_qpt_uc(const struct ib_send_wr * wr,void ** seg,int * size) handle_qpt_uc() argument 997 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 1007 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 1067 void *seg; mlx5_ib_post_send() local [all...] |
| H A D | wr.h | 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() 75 void **seg, u32 *wqe_sz, in mlx5r_memcpy_send_wqe() argument 79 size_t leftlen = *cur_edge - *seg; in mlx5r_memcpy_send_wqe() 83 memcpy(*seg, src, copysz); in mlx5r_memcpy_send_wqe() 88 *seg += stride; in mlx5r_memcpy_send_wqe() 90 handle_post_send_edge(sq, seg, *wqe_sz, cur_edge); in mlx5r_memcpy_send_wqe() 95 int mlx5r_begin_wqe(struct mlx5_ib_qp *qp, void **seg, 100 void *seg, u8 size, void *cur_edge, unsigned int idx,
|
| /linux/ipc/ |
| H A D | msgutil.c | 72 struct msg_msgseg *seg; in alloc_msg() 77 seg = kmalloc(sizeof(*seg) + alen, GFP_KERNEL_ACCOUNT); in alloc_msg() 78 if (seg == NULL) in alloc_msg() 80 *pseg = seg; in alloc_msg() 81 seg->next = NULL; in alloc_msg() 82 pseg = &seg->next; in alloc_msg() 96 struct msg_msgseg *seg; in load_msg() 108 for (seg = msg->next; seg ! in load_msg() 71 struct msg_msgseg *seg; alloc_msg() local 95 struct msg_msgseg *seg; load_msg() local 161 struct msg_msgseg *seg; store_msg() local 179 struct msg_msgseg *seg; free_msg() local [all...] |
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| H A D | dr_buddy.c | 73 unsigned int seg, order_iter, m; in dr_buddy_find_free_seg() local 81 seg = find_first_bit(buddy->bitmap[order_iter], m); in dr_buddy_find_free_seg() 83 if (WARN(seg >= m, in dr_buddy_find_free_seg() 94 *segment = seg; in dr_buddy_find_free_seg() 119 unsigned int seg, order_iter; in mlx5dr_buddy_alloc_mem() local 122 err = dr_buddy_find_free_seg(buddy, order, &seg, &order_iter); in mlx5dr_buddy_alloc_mem() 126 bitmap_clear(buddy->bitmap[order_iter], seg, 1); in mlx5dr_buddy_alloc_mem() 135 seg <<= 1; in mlx5dr_buddy_alloc_mem() 136 bitmap_set(buddy->bitmap[order_iter], seg ^ 1, 1); in mlx5dr_buddy_alloc_mem() 140 seg <<= order; in mlx5dr_buddy_alloc_mem() [all …]
|
| /linux/tools/testing/selftests/sgx/ |
| H A D | load.c | 106 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->flags = SGX_PAGE_TYPE_TCS << 8; in encl_load() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | buddy.c | 83 unsigned int seg, order_iter, m; in hws_buddy_find_free_seg() 91 seg = find_first_bit(buddy->bitmap[order_iter], m); in hws_buddy_find_free_seg() 93 if (WARN(seg >= m, in hws_buddy_find_free_seg() 104 *segment = seg; in hws_buddy_find_free_seg() 111 u32 seg, order_iter, err; in hws_buddy_find_free_seg() 113 err = hws_buddy_find_free_seg(buddy, order, &seg, &order_iter); in mlx5hws_buddy_alloc_mem() 117 bitmap_clear(buddy->bitmap[order_iter], seg, 1); in mlx5hws_buddy_alloc_mem() 122 seg <<= 1; in mlx5hws_buddy_alloc_mem() 123 bitmap_set(buddy->bitmap[order_iter], seg ^ 1, 1); in mlx5hws_buddy_alloc_mem() 127 seg << in mlx5hws_buddy_alloc_mem() 87 unsigned int seg, order_iter, m; hws_buddy_find_free_seg() local 115 u32 seg, order_iter, err; mlx5hws_buddy_alloc_mem() local 136 mlx5hws_buddy_free_mem(struct mlx5hws_buddy_mem * buddy,u32 seg,u32 order) mlx5hws_buddy_free_mem() argument [all...] |
| /linux/net/ipv4/ |
| H A D | udp_offload.c | 349 static void __udpv4_gso_segment_csum(struct sk_buff *seg, in __udpv4_gso_segment_csum() argument 359 uh = udp_hdr(seg); in __udpv4_gso_segment_csum() 360 iph = ip_hdr(seg); in __udpv4_gso_segment_csum() 363 inet_proto_csum_replace4(&uh->check, seg, *oldip, *newip, in __udpv4_gso_segment_csum() 365 inet_proto_csum_replace2(&uh->check, seg, *oldport, *newport, in __udpv4_gso_segment_csum() 378 struct sk_buff *seg; in __udpv4_gso_segment_list_csum() local 382 seg = segs; in __udpv4_gso_segment_list_csum() 383 uh = udp_hdr(seg); in __udpv4_gso_segment_list_csum() 384 iph = ip_hdr(seg); in __udpv4_gso_segment_list_csum() 386 if ((udp_hdr(seg) in __udpv4_gso_segment_list_csum() 407 __udpv6_gso_segment_csum(struct sk_buff * seg,struct in6_addr * oldip,const struct in6_addr * newip,__be16 * oldport,__be16 newport) __udpv6_gso_segment_csum() argument 436 struct sk_buff *seg; __udpv6_gso_segment_list_csum() local 486 struct sk_buff *segs, *seg; __udp_gso_segment() local [all...] |
| /linux/drivers/firmware/coreboot/ |
| H A D | memconsole-coreboot.c | 46 struct seg { /* describes ring buffer segments in logical order */ in memconsole_coreboot_read() struct 49 } seg[2] = { {0}, {0} }; in memconsole_coreboot_read() local 56 seg[0] = (struct seg){.phys = cursor, .len = size - cursor}; in memconsole_coreboot_read() 57 seg[1] = (struct seg){.phys = 0, .len = cursor}; in memconsole_coreboot_read() 59 seg[0] = (struct seg){.phys = 0, .len = min(cursor, size)}; in memconsole_coreboot_read() 62 for (i = 0; i < ARRAY_SIZE(seg) && count > done; i++) { in memconsole_coreboot_read() 64 cbmem_console->body + seg[i].phys, seg[i].len); in memconsole_coreboot_read() 65 pos -= seg[i].len; in memconsole_coreboot_read()
|
| /linux/drivers/usb/cdns3/ |
| H A D | cdnsp-mem.c | 34 struct cdnsp_segment *seg; in cdnsp_segment_alloc() local 38 seg = kzalloc_obj(*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->trbs[i].link.control |= cpu_to_le32(TRB_CYCLE); in cdnsp_segment_alloc() 59 seg->dma = dma; in cdnsp_segment_alloc() [all …]
|
| /linux/drivers/acpi/ |
| H A D | pci_mcfg.c | 46 #define AL_ECAM(table_id, rev, seg, ops) \ argument 47 { "AMAZON", table_id, rev, seg, MCFG_BUS_ANY, ops } 58 #define QCOM_ECAM32(seg) \ argument 59 { "QCOM ", "QDF2432 ", 1, seg, MCFG_BUS_ANY, &pci_32b_ops } 70 #define HISI_QUAD_DOM(table_id, seg, ops) \ argument 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) \ argument [all …]
|
| /linux/net/ipv6/ |
| H A D | tcpv6_offload.c | 105 static void __tcpv6_gso_segment_csum(struct sk_buff *seg, in __tcpv6_gso_segment_csum() 110 struct tcphdr *th = tcp_hdr(seg); in __tcpv6_gso_segment_csum() 113 inet_proto_csum_replace16(&th->check, seg, in __tcpv6_gso_segment_csum() 123 inet_proto_csum_replace2(&th->check, seg, *oldport, newport, false); in __tcpv6_gso_segment_csum() 131 struct sk_buff *seg; in __tcpv6_gso_segment_list_csum() 135 seg = segs; in __tcpv6_gso_segment_list_csum() 136 th = tcp_hdr(seg); in __tcpv6_gso_segment_list_csum() 137 iph = ipv6_hdr(seg); in __tcpv6_gso_segment_list_csum() 138 th2 = tcp_hdr(seg->next); in __tcpv6_gso_segment_list_csum() 139 iph2 = ipv6_hdr(seg in __tcpv6_gso_segment_list_csum() 104 __tcpv6_gso_segment_csum(struct sk_buff * seg,struct in6_addr * oldip,const struct in6_addr * newip,__be16 * oldport,__be16 newport) __tcpv6_gso_segment_csum() argument 130 struct sk_buff *seg; __tcpv6_gso_segment_list_csum() local [all...] |
| /linux/arch/m68k/include/asm/ |
| H A D | tlbflush.h | 142 unsigned char seg; in flush_tlb_mm() local 149 seg = sun3_get_segmap(i); in flush_tlb_mm() 150 if (seg == SUN3_INVALID_PMEG) in flush_tlb_mm() 154 pmeg_alloc[seg] = 0; in flush_tlb_mm() 155 pmeg_ctx[seg] = 0; in flush_tlb_mm() 156 pmeg_vaddr[seg] = 0; in flush_tlb_mm() 189 unsigned char seg, oldctx; in flush_tlb_range() local 198 if((seg = sun3_get_segmap(start)) == SUN3_INVALID_PMEG) in flush_tlb_range() 200 if(pmeg_ctx[seg] == mm->context) { in flush_tlb_range() 201 pmeg_alloc[seg] = 0; in flush_tlb_range() [all …]
|
| /linux/tools/lib/bpf/ |
| H A D | usdt.c | 424 struct elf_seg *seg; in parse_elf_segs() local 452 seg = *segs + *seg_cnt; in parse_elf_segs() 455 seg->start = phdr.p_vaddr; in parse_elf_segs() 456 seg->end = phdr.p_vaddr + phdr.p_memsz; in parse_elf_segs() 457 seg->offset = phdr.p_offset; in parse_elf_segs() 458 seg->is_exec = phdr.p_flags & PF_X; in parse_elf_segs() 474 struct elf_seg *seg; in parse_vma_segs() local 545 seg = *segs + *seg_cnt; in parse_vma_segs() 548 seg->start = seg_start; in parse_vma_segs() 549 seg in parse_vma_segs() 570 struct elf_seg *seg; find_elf_seg() local 586 struct elf_seg *seg; find_vma_seg() local 673 struct elf_seg *seg = NULL; collect_usdt_targets() local [all...] |
| /linux/fs/ |
| H A D | binfmt_elf_fdpic.c | 760 struct elf_fdpic_loadseg *seg; in elf_fdpic_map_file() local 803 seg = loadmap->segs; in elf_fdpic_map_file() 804 for (loop = loadmap->nsegs; loop > 0; loop--, seg++) { in elf_fdpic_map_file() 805 if (params->hdr.e_entry >= seg->p_vaddr && in elf_fdpic_map_file() 806 params->hdr.e_entry < seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file() 808 (params->hdr.e_entry - seg->p_vaddr) + in elf_fdpic_map_file() 809 seg->addr; in elf_fdpic_map_file() 828 seg = loadmap->segs; in elf_fdpic_map_file() 829 for (loop = loadmap->nsegs; loop > 0; loop--, seg++) { in elf_fdpic_map_file() 830 if (phdr->p_vaddr >= seg->p_vaddr && in elf_fdpic_map_file() [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_ddp.c | 60 const struct ice_generic_seg_hdr *seg; in ice_verify_pkg() local 63 if (len < off + sizeof(*seg)) in ice_verify_pkg() 66 seg = (void *)pkg + off; in ice_verify_pkg() 69 if (len < off + le32_to_cpu(seg->seg_size)) in ice_verify_pkg() 90 hw->seg = NULL; in ice_free_seg() 381 if (!hw->seg) in ice_get_prof_index_max() 384 ice_seg = hw->seg; in ice_get_prof_index_max() 785 ice_seg = hw->seg; in ice_get_sw_fv_bitmap() 830 if (!lkups->n_val_words || !hw->seg) in ice_get_sw_fv_list() 833 ice_seg = hw->seg; in ice_get_sw_fv_list() 1362 struct ice_generic_seg_hdr *seg; ice_is_signing_seg_at_idx() local 1384 struct ice_sign_seg *seg; ice_is_signing_seg_type_at_idx() local 1404 ice_download_pkg_sig_seg(struct ice_ddp_send_ctx * ctx,struct ice_sign_seg * seg) ice_download_pkg_sig_seg() argument 1426 struct ice_seg *seg; ice_download_pkg_config_seg() local 1462 struct ice_sign_seg *seg; ice_dwnld_sign_and_cfg_segs() local 1841 const struct ice_generic_seg_hdr *seg; ice_find_seg_in_pkg() local 2043 ice_chk_pkg_compat(struct ice_hw * hw,struct ice_pkg_hdr * ospkg,struct ice_seg ** seg) ice_chk_pkg_compat() argument 2155 struct ice_seg *seg = hw->seg; ice_fill_hw_ptype() local 2207 struct ice_seg *seg; ice_init_pkg() local 2391 const struct ice_run_time_cfg_seg *seg; ice_cfg_tx_topo() local [all...] |
| H A D | ice_flow.c | 766 * @seg: index of packet segment whose header size is to be determined 768 static u16 ice_flow_calc_seg_sz(struct ice_flow_prof_params *params, u8 seg) in ice_flow_calc_seg_sz() argument 773 sz = (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_VLAN) ? in ice_flow_calc_seg_sz() 777 if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_IPV4) in ice_flow_calc_seg_sz() 779 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_IPV6) in ice_flow_calc_seg_sz() 781 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_ARP) in ice_flow_calc_seg_sz() 783 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDRS_L4_MASK) in ice_flow_calc_seg_sz() 788 if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_ICMP) in ice_flow_calc_seg_sz() 790 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_TCP) in ice_flow_calc_seg_sz() 792 else if (params->prof->segs[seg] in ice_flow_calc_seg_sz() 1006 ice_flow_xtract_fld(struct ice_hw * hw,struct ice_flow_prof_params * params,u8 seg,enum ice_flow_field fld,u64 match) ice_flow_xtract_fld() argument 1207 ice_flow_xtract_raws(struct ice_hw * hw,struct ice_flow_prof_params * params,u8 seg) ice_flow_xtract_raws() argument 1913 ice_flow_set_fld_ext(struct ice_flow_seg_info * seg,enum ice_flow_field fld,enum ice_flow_fld_match_type field_type,u16 val_loc,u16 mask_loc,u16 last_loc) ice_flow_set_fld_ext() argument 1952 ice_flow_set_fld(struct ice_flow_seg_info * seg,enum ice_flow_field fld,u16 val_loc,u16 mask_loc,u16 last_loc,bool range) ice_flow_set_fld() argument 1979 ice_flow_add_fld_raw(struct ice_flow_seg_info * seg,u16 off,u8 len,u16 val_loc,u16 mask_loc) ice_flow_add_fld_raw() argument 2076 struct ice_flow_seg_info *seg; ice_flow_set_rss_seg_info() local 2364 struct ice_flow_seg_info *seg; ice_rss_set_symm() local [all...] |
| /linux/fs/nfsd/ |
| H A D | flexfilelayout.c | 29 struct nfsd4_layout_seg *seg = &args->lg_seg; in nfsd4_ff_proc_layoutget() 62 if (seg->iomode == IOMODE_READ) in nfsd4_ff_proc_layoutget() 72 seg->offset = 0; in nfsd4_ff_proc_layoutget() 73 seg->length = NFS4_MAX_UINT64; in nfsd4_ff_proc_layoutget() 75 dprintk("GET: 0x%llx:0x%llx %d\n", seg->offset, seg->length, in nfsd4_ff_proc_layoutget() 76 seg->iomode); in nfsd4_ff_proc_layoutget() 80 seg->length = 0; 26 struct nfsd4_layout_seg *seg = &args->lg_seg; nfsd4_ff_proc_layoutget() local
|
| /linux/arch/x86/pci/ |
| H A D | numachip.c | 19 static inline char __iomem *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn) in pci_dev_base() argument 21 struct pci_mmcfg_region *cfg = pci_mmconfig_lookup(seg, bus); in pci_dev_base() 28 static int pci_mmcfg_read_numachip(unsigned int seg, unsigned int bus, in pci_mmcfg_read_numachip() argument 46 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_read_numachip() 68 static int pci_mmcfg_write_numachip(unsigned int seg, unsigned int bus, in pci_mmcfg_write_numachip() argument 82 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_write_numachip()
|
| /linux/arch/x86/kernel/ |
| H A D | step.c | 16 unsigned long addr, seg; in convert_ip_to_linear() local 19 seg = regs->cs; in convert_ip_to_linear() 21 addr = (addr & 0xffff) + (seg << 4); in convert_ip_to_linear() 32 if ((seg & SEGMENT_TI_MASK) == SEGMENT_LDT) { in convert_ip_to_linear() 36 seg >>= 3; in convert_ip_to_linear() 40 seg >= child->mm->context.ldt->nr_entries)) in convert_ip_to_linear() 43 desc = &child->mm->context.ldt->entries[seg]; in convert_ip_to_linear()
|
| /linux/kernel/rcu/ |
| H A D | rcu_segcblist.h | 18 long rcu_segcblist_get_seglen(struct rcu_segcblist *rsclp, int seg); 103 static inline bool rcu_segcblist_restempty(struct rcu_segcblist *rsclp, int seg) in rcu_segcblist_restempty() argument 105 return !READ_ONCE(*READ_ONCE(rsclp->tails[seg])); in rcu_segcblist_restempty() 112 static inline bool rcu_segcblist_segempty(struct rcu_segcblist *rsclp, int seg) in rcu_segcblist_segempty() argument 114 if (seg == RCU_DONE_TAIL) in rcu_segcblist_segempty() 116 return rsclp->tails[seg - 1] == rsclp->tails[seg]; in rcu_segcblist_segempty()
|
| /linux/drivers/media/test-drivers/visl/ |
| H A D | visl-trace-vp9.h | 65 __entry->f.seg.feature_data, 66 sizeof(__entry->f.seg.feature_data), 68 __print_array(__entry->f.seg.feature_enabled, 69 ARRAY_SIZE(__entry->f.seg.feature_enabled), 70 sizeof(__entry->f.seg.feature_enabled[0])), 71 __print_array(__entry->f.seg.tree_probs, 72 ARRAY_SIZE(__entry->f.seg.tree_probs), 73 sizeof(__entry->f.seg.tree_probs[0])), 74 __print_array(__entry->f.seg.pred_probs, 75 ARRAY_SIZE(__entry->f.seg.pred_probs), [all …]
|
| /linux/drivers/peci/ |
| H A D | internal.h | 47 struct peci_request *peci_xfer_ep_pci_cfg_local_readb(struct peci_device *device, u8 seg, 49 struct peci_request *peci_xfer_ep_pci_cfg_local_readw(struct peci_device *device, u8 seg, 51 struct peci_request *peci_xfer_ep_pci_cfg_local_readl(struct peci_device *device, u8 seg, 54 struct peci_request *peci_xfer_ep_pci_cfg_readb(struct peci_device *device, u8 seg, 56 struct peci_request *peci_xfer_ep_pci_cfg_readw(struct peci_device *device, u8 seg, 58 struct peci_request *peci_xfer_ep_pci_cfg_readl(struct peci_device *device, u8 seg, 61 struct peci_request *peci_xfer_ep_mmio32_readl(struct peci_device *device, u8 bar, u8 seg, 64 struct peci_request *peci_xfer_ep_mmio64_readl(struct peci_device *device, u8 bar, u8 seg,
|
| /linux/drivers/infiniband/hw/mthca/ |
| H A D | mthca_mr.c | 88 u32 seg; in mthca_buddy_alloc() local 95 seg = find_first_bit(buddy->bits[o], m); in mthca_buddy_alloc() 96 if (seg < m) in mthca_buddy_alloc() 104 __clear_bit(seg, buddy->bits[o]); in mthca_buddy_alloc() 109 seg <<= 1; in mthca_buddy_alloc() 110 __set_bit(seg ^ 1, buddy->bits[o]); in mthca_buddy_alloc() 116 seg <<= order; in mthca_buddy_alloc() 118 return seg; in mthca_buddy_alloc() 121 static void mthca_buddy_free(struct mthca_buddy *buddy, u32 seg, int order) in mthca_buddy_free() argument 123 seg >> in mthca_buddy_free() 190 u32 seg = mthca_buddy_alloc(buddy, order); mthca_alloc_mtt_range() local [all...] |
| /linux/drivers/usb/host/ |
| H A D | xhci-mem.c | 35 struct xhci_segment *seg; in xhci_segment_alloc() local 39 seg = kzalloc_node(sizeof(*seg), flags, dev_to_node(dev)); in xhci_segment_alloc() 40 if (!seg) in xhci_segment_alloc() 43 seg->trbs = dma_pool_zalloc(xhci->segment_pool, flags, &dma); in xhci_segment_alloc() 44 if (!seg->trbs) { in xhci_segment_alloc() 45 kfree(seg); in xhci_segment_alloc() 50 seg->bounce_buf = kzalloc_node(max_packet, flags, in xhci_segment_alloc() 52 if (!seg->bounce_buf) { in xhci_segment_alloc() 53 dma_pool_free(xhci->segment_pool, seg in xhci_segment_alloc() 65 xhci_segment_free(struct xhci_hcd * xhci,struct xhci_segment * seg) xhci_segment_free() argument 77 struct xhci_segment *seg, *next; xhci_ring_segments_free() local 97 xhci_set_link_trb(struct xhci_segment * seg,bool chain_links) xhci_set_link_trb() argument 119 struct xhci_segment *seg; xhci_initialize_ring_segments() local 146 struct xhci_segment *seg; xhci_link_rings() local 216 xhci_insert_segment_mapping(struct radix_tree_root * trb_address_map,struct xhci_ring * ring,struct xhci_segment * seg,gfp_t mem_flags) xhci_insert_segment_mapping() argument 237 xhci_remove_segment_mapping(struct radix_tree_root * trb_address_map,struct xhci_segment * seg) xhci_remove_segment_mapping() argument 252 struct xhci_segment *seg; xhci_update_stream_segment_mapping() local 281 struct xhci_segment *seg; xhci_remove_stream_mapping() local 1802 struct xhci_segment *seg; xhci_alloc_erst() local [all...] |