Home
last modified time | relevance | path

Searched refs:mem_len (Results 1 – 25 of 27) sorted by relevance

12

/linux/drivers/target/tcm_fc/
A Dtfc_io.c54 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 Ddenali_pci.c33 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 Dmx3fb.c728 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 Dahb.h15 unsigned long mem_len; member
A Dahb.c452 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 Dsnoc.h71 size_t mem_len; member
A Dpci.h112 size_t mem_len; member
A Dpci.c634 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 Dp54pci.c553 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 Dbfa_ioc.h85 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 Dbfad.c543 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 Dnetxen_nic_main.c712 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 Dadm8211.c1780 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 Ddev.c1730 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 Dmhi.c333 mhi_ctrl->reg_len = ab->mem_len; in ath11k_mhi_register()
A Dcore.h687 unsigned long mem_len; member
A Dahb.c691 ab->mem_len = resource_size(mem_res); in ath11k_ahb_probe()
A Dpci.c974 ab->mem_len = pci_resource_len(pdev, ATH11K_PCI_BAR_NUM); in ath11k_pci_claim()
/linux/drivers/scsi/
A D3w-9xxx.c2003 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 Dips.c2050 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 Dips.h1046 uint32_t mem_len; /* Size of memory address */ member
/linux/drivers/net/ethernet/qlogic/qlcnic/
A Dqlcnic_main.c1151 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 Dlockdep.c6391 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 Dairo.c2449 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 Dqed_debug.c2725 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()

Completed in 129 milliseconds

12