/linux/drivers/target/tcm_fc/ |
A D | tfc_io.c | 54 size_t mem_len = 0; in ft_queue_data_in() local 82 mem_len = sg->length; in ft_queue_data_in() 98 if (!mem_len) { in ft_queue_data_in() 152 mem_len -= tlen; in ft_queue_data_in() 206 size_t mem_len = 0; in ft_recv_write_data() local 277 mem_len = sg->length; in ft_recv_write_data() 283 if (!mem_len) { in ft_recv_write_data() 290 rel_off -= mem_len; in ft_recv_write_data() 291 mem_len = 0; in ft_recv_write_data() 295 mem_len -= rel_off; in ft_recv_write_data() [all …]
|
/linux/drivers/mtd/nand/raw/ |
A D | denali_pci.c | 33 unsigned long csr_len, mem_len; in denali_pci_probe() local 50 mem_len = pci_resource_len(dev, 1); in denali_pci_probe() 57 mem_len = pci_resource_len(dev, 1); in denali_pci_probe() 58 if (!mem_len) { in denali_pci_probe() 60 mem_len = csr_len; in denali_pci_probe() 83 denali->host = ioremap(mem_base, mem_len); in denali_pci_probe()
|
/linux/drivers/video/fbdev/ |
A D | mx3fb.c | 728 static int mx3fb_map_video_memory(struct fb_info *fbi, unsigned int mem_len, 793 u32 mem_len, cur_xoffset, cur_yoffset; in __set_par() local 808 mem_len = fbi->var.yres_virtual * fbi->fix.line_length; in __set_par() 809 if (mem_len > fbi->fix.smem_len) { in __set_par() 813 if (mx3fb_map_video_memory(fbi, mem_len, lock) < 0) in __set_par() 1331 static int mx3fb_map_video_memory(struct fb_info *fbi, unsigned int mem_len, in mx3fb_map_video_memory() argument 1337 fbi->screen_base = dma_alloc_wc(fbi->device, mem_len, &addr, in mx3fb_map_video_memory() 1342 mem_len); in mx3fb_map_video_memory() 1350 fbi->fix.smem_len = mem_len; in mx3fb_map_video_memory()
|
/linux/drivers/net/wireless/ath/ath10k/ |
A D | ahb.h | 15 unsigned long mem_len; member
|
A D | ahb.c | 452 ar_ahb->mem_len = resource_size(res); in ath10k_ahb_resource_init() 501 ar_ahb->mem, ar_ahb->mem_len, in ath10k_ahb_resource_init() 767 ar_pci->mem_len = ar_ahb->mem_len; in ath10k_ahb_probe()
|
A D | snoc.h | 71 size_t mem_len; member
|
A D | pci.h | 112 size_t mem_len; member
|
A D | pci.c | 634 if (unlikely(offset + sizeof(value) > ar_pci->mem_len)) { in ath10k_bus_pci_write32() 636 offset, offset + sizeof(value), ar_pci->mem_len); in ath10k_bus_pci_write32() 657 if (unlikely(offset + sizeof(val) > ar_pci->mem_len)) { in ath10k_bus_pci_read32() 659 offset, offset + sizeof(val), ar_pci->mem_len); in ath10k_bus_pci_read32() 3405 ar_pci->mem_len = pci_resource_len(pdev, BAR_NUM); in ath10k_pci_claim()
|
/linux/drivers/net/wireless/intersil/p54/ |
A D | p54pci.c | 553 unsigned long mem_addr, mem_len; in p54p_probe() local 564 mem_len = pci_resource_len(pdev, 0); in p54p_probe() 565 if (mem_len < sizeof(struct p54p_csr)) { in p54p_probe() 605 priv->map = ioremap(mem_addr, mem_len); in p54p_probe()
|
/linux/drivers/scsi/bfa/ |
A D | bfa_ioc.h | 85 u32 mem_len; /* Total Length in Bytes */ member 95 u32 mem_len; /* Total Length in Bytes */ member 111 dm_ptr->mem_len = seg_sz; in bfa_mem_dma_setup() 120 kva_ptr->mem_len = seg_sz; in bfa_mem_kva_setup() 134 #define bfa_mem_dma_len(_sptr) ((_sptr)->mem_len)
|
A D | bfad.c | 543 dma_elem->mem_len, dma_elem->kva, in bfad_hal_mem_release() 605 kva_elem->kva = vzalloc(kva_elem->mem_len); in bfad_hal_mem_alloc() 617 dma_elem->mem_len, in bfad_hal_mem_alloc() 625 memset(dma_elem->kva, 0, dma_elem->mem_len); in bfad_hal_mem_alloc()
|
/linux/drivers/net/ethernet/qlogic/netxen/ |
A D | netxen_nic_main.c | 712 unsigned long mem_len, db_len = 0; in netxen_setup_pci_map() local 729 mem_len = pci_resource_len(pdev, 0); in netxen_setup_pci_map() 732 if (mem_len == NETXEN_PCI_128MB_SIZE) { in netxen_setup_pci_map() 748 } else if (mem_len == NETXEN_PCI_32MB_SIZE) { in netxen_setup_pci_map() 759 } else if (mem_len == NETXEN_PCI_2MB_SIZE) { in netxen_setup_pci_map() 766 ahw->pci_len0 = mem_len; in netxen_setup_pci_map() 773 dev_info(&pdev->dev, "%dMB memory map\n", (int)(mem_len>>20)); in netxen_setup_pci_map()
|
/linux/drivers/net/wireless/admtek/ |
A D | adm8211.c | 1780 unsigned long mem_len; in adm8211_probe() local 1794 mem_len = pci_resource_len(pdev, 1); in adm8211_probe() 1795 if (io_len < 256 || mem_len < 1024) { in adm8211_probe() 1844 priv->map = pci_iomap(pdev, 1, mem_len); in adm8211_probe()
|
/linux/drivers/net/wireless/realtek/rtl818x/rtl8180/ |
A D | dev.c | 1730 unsigned long mem_len; in rtl8180_probe() local 1751 mem_len = pci_resource_len(pdev, 1); in rtl8180_probe() 1753 if (mem_len < sizeof(struct rtl818x_csr) || in rtl8180_probe() 1786 priv->map = pci_iomap(pdev, 1, mem_len); in rtl8180_probe()
|
/linux/drivers/net/wireless/ath/ath11k/ |
A D | mhi.c | 333 mhi_ctrl->reg_len = ab->mem_len; in ath11k_mhi_register()
|
A D | core.h | 687 unsigned long mem_len; member
|
A D | ahb.c | 691 ab->mem_len = resource_size(mem_res); in ath11k_ahb_probe()
|
A D | pci.c | 974 ab->mem_len = pci_resource_len(pdev, ATH11K_PCI_BAR_NUM); in ath11k_pci_claim()
|
/linux/drivers/scsi/ |
A D | 3w-9xxx.c | 2003 unsigned long mem_addr, mem_len; in twa_probe() local 2051 mem_len = pci_resource_len(pdev, 1); in twa_probe() 2054 mem_len = pci_resource_len(pdev, 2); in twa_probe() 2058 tw_dev->base_addr = ioremap(mem_addr, mem_len); in twa_probe()
|
A D | ips.c | 2050 ha->mem_addr, ha->mem_len); in ips_host_info() 6841 uint32_t mem_len; in ips_init_phase1() local 6864 mem_len = 0; in ips_init_phase1() 6876 mem_len = pci_resource_len(pci_dev, j); in ips_init_phase1() 6912 ha->mem_len = mem_len; in ips_init_phase1()
|
A D | ips.h | 1046 uint32_t mem_len; /* Size of memory address */ member
|
/linux/drivers/net/ethernet/qlogic/qlcnic/ |
A D | qlcnic_main.c | 1151 unsigned long mem_len, pci_len0 = 0, bar0_len; in qlcnic_setup_pci_map() local 1154 mem_len = pci_resource_len(pdev, 0); in qlcnic_setup_pci_map() 1157 if (mem_len >= bar0_len) { in qlcnic_setup_pci_map() 1164 pci_len0 = mem_len; in qlcnic_setup_pci_map() 1169 dev_info(&pdev->dev, "%dKB memory map\n", (int)(mem_len >> 10)); in qlcnic_setup_pci_map()
|
/linux/kernel/locking/ |
A D | lockdep.c | 6391 static inline int not_in_range(const void* mem_from, unsigned long mem_len, in not_in_range() argument 6395 mem_from + mem_len <= lock_from; in not_in_range() 6403 void debug_check_no_locks_freed(const void *mem_from, unsigned long mem_len) in debug_check_no_locks_freed() argument 6417 if (not_in_range(mem_from, mem_len, hlock->instance, in debug_check_no_locks_freed() 6421 print_freed_lock_bug(curr, mem_from, mem_from + mem_len, hlock); in debug_check_no_locks_freed()
|
/linux/drivers/net/wireless/cisco/ |
A D | airo.c | 2449 unsigned long mem_len = pci_resource_len(pci, 1); in mpi_unmap_card() local 2454 release_mem_region(mem_start, mem_len); in mpi_unmap_card() 2543 unsigned long mem_start, mem_len, aux_start, aux_len; in mpi_map_card() local 2551 mem_len = pci_resource_len(pci, 1); in mpi_map_card() 2555 if (!request_mem_region(mem_start, mem_len, DRV_NAME)) { in mpi_map_card() 2557 (int)mem_start, (int)mem_len); in mpi_map_card() 2566 ai->pcimem = ioremap(mem_start, mem_len); in mpi_map_card() 2569 (int)mem_start, (int)mem_len); in mpi_map_card() 2652 release_mem_region(mem_start, mem_len); in mpi_map_card()
|
/linux/drivers/net/ethernet/qlogic/qed/ |
A D | qed_debug.c | 2725 u32 mem_addr, mem_len; in qed_grc_dump_mem_entries() local 2743 mem_len = GET_FIELD(mem->dword1, DBG_DUMP_MEM_LENGTH); in qed_grc_dump_mem_entries() 2763 mem_len, in qed_grc_dump_mem_entries()
|