Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/target/tcm_fc/
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()
100 mem_len = min((size_t)sg->length, remaining); in ft_queue_data_in()
127 tlen = min(mem_len, frame_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()
285 mem_len = sg->length; in ft_recv_write_data()
[all …]
/linux-6.6.21/drivers/mtd/nand/raw/
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 = devm_ioremap(denali->dev, mem_base, mem_len); in denali_pci_probe()
/linux-6.6.21/drivers/net/wireless/ath/ath10k/
Dahb.h15 unsigned long mem_len; member
Dsnoc.h71 size_t mem_len; member
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()
764 ar_pci->mem_len = ar_ahb->mem_len; in ath10k_ahb_probe()
Dpci.h112 size_t mem_len; member
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-6.6.21/drivers/net/wireless/intersil/p54/
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-6.6.21/drivers/scsi/bfa/
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)
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-6.6.21/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_main.c710 unsigned long mem_len, db_len = 0; in netxen_setup_pci_map() local
727 mem_len = pci_resource_len(pdev, 0); in netxen_setup_pci_map()
730 if (mem_len == NETXEN_PCI_128MB_SIZE) { in netxen_setup_pci_map()
746 } else if (mem_len == NETXEN_PCI_32MB_SIZE) { in netxen_setup_pci_map()
757 } else if (mem_len == NETXEN_PCI_2MB_SIZE) { in netxen_setup_pci_map()
764 ahw->pci_len0 = mem_len; in netxen_setup_pci_map()
771 dev_info(&pdev->dev, "%dMB memory map\n", (int)(mem_len>>20)); in netxen_setup_pci_map()
/linux-6.6.21/drivers/net/wireless/ath/ath11k/
Dmhi.c400 mhi_ctrl->reg_len = ab->mem_len; in ath11k_mhi_register()
Dcore.h862 unsigned long mem_len; member
Dpci.c539 ab->mem_len = pci_resource_len(pdev, ATH11K_PCI_BAR_NUM); in ath11k_pci_claim()
Dahb.c907 ab->mem_len = resource_size(mem_res); in ath11k_ahb_setup_resources()
/linux-6.6.21/drivers/net/wireless/admtek/
Dadm8211.c1781 unsigned long mem_len; in adm8211_probe() local
1795 mem_len = pci_resource_len(pdev, 1); in adm8211_probe()
1796 if (io_len < 256 || mem_len < 1024) { in adm8211_probe()
1845 priv->map = pci_iomap(pdev, 1, mem_len); in adm8211_probe()
/linux-6.6.21/drivers/net/wireless/realtek/rtl818x/rtl8180/
Ddev.c1736 unsigned long mem_len; in rtl8180_probe() local
1757 mem_len = pci_resource_len(pdev, 1); in rtl8180_probe()
1759 if (mem_len < sizeof(struct rtl818x_csr) || in rtl8180_probe()
1792 priv->map = pci_iomap(pdev, 1, mem_len); in rtl8180_probe()
/linux-6.6.21/drivers/net/wireless/ath/ath12k/
Dmhi.c368 mhi_ctrl->reg_len = ab->mem_len; in ath12k_mhi_register()
Dcore.h673 unsigned long mem_len; member
/linux-6.6.21/drivers/scsi/
D3w-9xxx.c2002 unsigned long mem_addr, mem_len; in twa_probe() local
2050 mem_len = pci_resource_len(pdev, 1); in twa_probe()
2053 mem_len = pci_resource_len(pdev, 2); in twa_probe()
2057 tw_dev->base_addr = ioremap(mem_addr, mem_len); in twa_probe()
Dips.c2049 ha->mem_addr, ha->mem_len); in ips_host_info()
6838 uint32_t mem_len; in ips_init_phase1() local
6861 mem_len = 0; in ips_init_phase1()
6873 mem_len = pci_resource_len(pci_dev, j); in ips_init_phase1()
6909 ha->mem_len = mem_len; in ips_init_phase1()
Dips.h1046 uint32_t mem_len; /* Size of memory address */ member
/linux-6.6.21/drivers/net/ethernet/qlogic/qlcnic/
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-6.6.21/kernel/locking/
Dlockdep.c6541 static inline int not_in_range(const void* mem_from, unsigned long mem_len, in not_in_range() argument
6545 mem_from + mem_len <= lock_from; in not_in_range()
6553 void debug_check_no_locks_freed(const void *mem_from, unsigned long mem_len) in debug_check_no_locks_freed() argument
6567 if (not_in_range(mem_from, mem_len, hlock->instance, in debug_check_no_locks_freed()
6571 print_freed_lock_bug(curr, mem_from, mem_from + mem_len, hlock); in debug_check_no_locks_freed()
/linux-6.6.21/drivers/net/wireless/cisco/
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()

12