| /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->log2_page_size = ilog2(mr->ibmr.page_size); in set_reg_mkey_seg() 203 seg->flags = get_umr_flags(access) | mr->access_mode; in set_reg_mkey_seg() [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 | 71 struct msg_msgseg *seg; in alloc_msg() local 76 seg = kmalloc(sizeof(*seg) + alen, GFP_KERNEL_ACCOUNT); in alloc_msg() 77 if (seg == NULL) in alloc_msg() 79 *pseg = seg; in alloc_msg() 80 seg->next = NULL; in alloc_msg() 81 pseg = &seg->next; in alloc_msg() 95 struct msg_msgseg *seg; in load_msg() local 107 for (seg = msg->next; seg != NULL; seg = seg->next) { in load_msg() 111 if (copy_from_user(seg + 1, src, alen)) in load_msg() 161 struct msg_msgseg *seg; in store_msg() local [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/firmware/google/ |
| H A D | memconsole-coreboot.c | 45 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[i].phys, seg[i].len); in memconsole_coreboot_read() 64 pos -= seg[i].len; in memconsole_coreboot_read()
|
| /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/drivers/usb/cdns3/ |
| H A D | cdnsp-mem.c | 34 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->trbs[i].link.control |= cpu_to_le32(TRB_CYCLE); in cdnsp_segment_alloc() 59 seg->dma = dma; in cdnsp_segment_alloc() [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/fs/ |
| H A D | binfmt_elf_fdpic.c | 749 struct elf_fdpic_loadseg *seg; in elf_fdpic_map_file() local 792 seg = loadmap->segs; in elf_fdpic_map_file() 793 for (loop = loadmap->nsegs; loop > 0; loop--, seg++) { in elf_fdpic_map_file() 794 if (params->hdr.e_entry >= seg->p_vaddr && in elf_fdpic_map_file() 795 params->hdr.e_entry < seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file() 797 (params->hdr.e_entry - seg->p_vaddr) + in elf_fdpic_map_file() 798 seg->addr; in elf_fdpic_map_file() 817 seg = loadmap->segs; in elf_fdpic_map_file() 818 for (loop = loadmap->nsegs; loop > 0; loop--, seg++) { in elf_fdpic_map_file() 819 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() [all …]
|
| /linux/fs/nfsd/ |
| H A D | flexfilelayout.c | 26 struct nfsd4_layout_seg *seg = &args->lg_seg; in nfsd4_ff_proc_layoutget() local 53 if (seg->iomode == IOMODE_READ) { in nfsd4_ff_proc_layoutget() 68 seg->offset = 0; in nfsd4_ff_proc_layoutget() 69 seg->length = NFS4_MAX_UINT64; in nfsd4_ff_proc_layoutget() 71 dprintk("GET: 0x%llx:0x%llx %d\n", seg->offset, seg->length, in nfsd4_ff_proc_layoutget() 72 seg->iomode); in nfsd4_ff_proc_layoutget() 76 seg->length = 0; in nfsd4_ff_proc_layoutget()
|
| /linux/net/sunrpc/xprtrdma/ |
| H A D | rpc_rdma.c | 209 rpcrdma_convert_kvec(struct kvec *vec, struct rpcrdma_mr_seg *seg, in rpcrdma_convert_kvec() argument 212 seg->mr_page = virt_to_page(vec->iov_base); in rpcrdma_convert_kvec() 213 seg->mr_offset = offset_in_page(vec->iov_base); in rpcrdma_convert_kvec() 214 seg->mr_len = vec->iov_len; in rpcrdma_convert_kvec() 215 ++seg; in rpcrdma_convert_kvec() 217 return seg; in rpcrdma_convert_kvec() 230 struct rpcrdma_mr_seg *seg) in rpcrdma_convert_iovs() argument 238 seg = rpcrdma_convert_kvec(&xdrbuf->head[0], seg, &n); in rpcrdma_convert_iovs() 244 seg->mr_page = *ppages; in rpcrdma_convert_iovs() 245 seg->mr_offset = page_base; in rpcrdma_convert_iovs() [all …]
|
| /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/isdn/mISDN/ |
| H A D | dsp_audio.c | 48 int seg; in linear2alaw() local 65 for (seg = 0; seg < 8; seg++) { in linear2alaw() 66 if (pcm_val <= seg_end[seg]) in linear2alaw() 70 return ((seg << 4) | in linear2alaw() 71 ((pcm_val >> ((seg) ? (seg + 3) : 4)) & 0x0F)) ^ mask; in linear2alaw() 78 int seg; in alaw2linear() local 82 seg = (((int) alaw & 0x70) >> 4); in alaw2linear() 83 if (seg) in alaw2linear() 84 i = (i + 0x100) << (seg - 1); in alaw2linear()
|
| /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()
|
| H A D | mmconfig_32.c | 27 static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn) in get_base_addr() argument 29 struct pci_mmcfg_region *cfg = pci_mmconfig_lookup(seg, bus); in get_base_addr() 51 static int pci_mmcfg_read(unsigned int seg, unsigned int bus, in pci_mmcfg_read() argument 63 base = get_base_addr(seg, bus, devfn); in pci_mmcfg_read() 90 static int pci_mmcfg_write(unsigned int seg, unsigned int bus, in pci_mmcfg_write() argument 100 base = get_base_addr(seg, bus, devfn); in pci_mmcfg_write()
|
| H A D | direct.c | 21 static int pci_conf1_read(unsigned int seg, unsigned int bus, in pci_conf1_read() argument 26 if (seg || (bus > 255) || (devfn > 255) || (reg > 4095)) { in pci_conf1_read() 52 static int pci_conf1_write(unsigned int seg, unsigned int bus, in pci_conf1_write() argument 57 if (seg || (bus > 255) || (devfn > 255) || (reg > 4095)) in pci_conf1_write() 95 static int pci_conf2_read(unsigned int seg, unsigned int bus, in pci_conf2_read() argument 101 WARN_ON(seg); in pci_conf2_read() 137 static int pci_conf2_write(unsigned int seg, unsigned int bus, in pci_conf2_write() argument 143 WARN_ON(seg); in pci_conf2_write()
|
| H A D | mmconfig_64.c | 19 static 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(unsigned int seg, unsigned int bus, in pci_mmcfg_read() argument 40 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_read() 62 static int pci_mmcfg_write(unsigned int seg, unsigned int bus, in pci_mmcfg_write() argument 72 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_write()
|
| /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/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/arch/x86/include/asm/ |
| H A D | segment.h | 260 [p] "=r" (p), [seg] "r" (__CPUNODE_SEG)); in vdso_read_cpunode() 305 #define __loadsegment_simple(seg, value) \ argument 310 "1: movl %k0,%%" #seg " \n" \ 345 #define loadsegment(seg, value) __loadsegment_ ## seg (value) argument 350 #define savesegment(seg, value) \ argument 351 asm("mov %%" #seg ",%0":"=r" (value) : : "memory")
|
| /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 >>= order; in mthca_buddy_free() [all …]
|
| /linux/drivers/usb/host/ |
| H A D | xhci-mem.c | 34 struct xhci_segment *seg; in xhci_segment_alloc() local 38 seg = kzalloc_node(sizeof(*seg), flags, dev_to_node(dev)); in xhci_segment_alloc() 39 if (!seg) in xhci_segment_alloc() 42 seg->trbs = dma_pool_zalloc(xhci->segment_pool, flags, &dma); in xhci_segment_alloc() 43 if (!seg->trbs) { in xhci_segment_alloc() 44 kfree(seg); in xhci_segment_alloc() 49 seg->bounce_buf = kzalloc_node(max_packet, flags, in xhci_segment_alloc() 51 if (!seg->bounce_buf) { in xhci_segment_alloc() 52 dma_pool_free(xhci->segment_pool, seg->trbs, dma); in xhci_segment_alloc() 53 kfree(seg); in xhci_segment_alloc() [all …]
|
| /linux/drivers/iommu/amd/ |
| H A D | debugfs.c | 142 int seg, bus, slot, func; in devid_write() local 157 i = sscanf(srcid_ptr, "%x:%x:%x.%x", &seg, &bus, &slot, &func); in devid_write() 164 seg = 0; in devid_write() 171 if (pci_seg->id != seg) in devid_write() 185 if (pci_seg->id != seg) { in devid_write() 190 sbdf = PCI_SEG_DEVID_TO_SBDF(seg, devid); in devid_write() 239 u16 seg, devid; in iommu_devtbl_show() local 245 seg = PCI_SBDF_TO_SEGID(sbdf); in iommu_devtbl_show() 249 if (pci_seg->id != seg) in iommu_devtbl_show() 338 u16 devid, seg; in iommu_irqtbl_show() local [all …]
|