Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/target/tcm_fc/
Dtfc_io.c55 size_t mem_len = 0; in ft_queue_data_in() local
83 mem_len = sg->length; in ft_queue_data_in()
99 if (!mem_len) { in ft_queue_data_in()
101 mem_len = min((size_t)sg->length, remaining); in ft_queue_data_in()
128 tlen = min(mem_len, frame_len); in ft_queue_data_in()
153 mem_len -= tlen; in ft_queue_data_in()
207 size_t mem_len = 0; in ft_recv_write_data() local
278 mem_len = sg->length; in ft_recv_write_data()
284 if (!mem_len) { in ft_recv_write_data()
286 mem_len = sg->length; in ft_recv_write_data()
[all …]
/kernel/linux/linux-5.10/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 = ioremap(mem_base, mem_len); in denali_pci_probe()
/kernel/linux/linux-5.10/drivers/staging/hievent/
Dhievent_driver.c91 size_t mem_len = (buf_len > buf_left) ? buf_left : buf_len; in hievent_read_ring_buffer() local
93 retval = copy_to_user(buffer, hievent_buffer_head(), mem_len); in hievent_read_ring_buffer()
111 size_t mem_len = (buf_len > buf_left) ? buf_left : buf_len; in hievent_read_ring_head_buffer() local
113 memcpy(buffer, hievent_buffer_head(), mem_len); in hievent_read_ring_head_buffer()
/kernel/linux/linux-5.10/drivers/staging/hilog/
Dhilog.c116 size_t mem_len = (buf_len > buf_left) ? buf_left : buf_len; in hilog_read_ring_buff() local
118 retval = copy_to_user(buffer, hilog_buffer_head(), mem_len); in hilog_read_ring_buff()
135 size_t mem_len = (buf_len > buf_left) ? buf_left : buf_len; in hilog_read_ring_head_buffer() local
137 memcpy(buffer, hilog_buffer_head(), mem_len); in hilog_read_ring_head_buffer()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
Dahb.h15 unsigned long mem_len; member
Dsnoc.h68 size_t mem_len; member
Dahb.c459 ar_ahb->mem_len = resource_size(res); in ath10k_ahb_resource_init()
508 ar_ahb->mem, ar_ahb->mem_len, in ath10k_ahb_resource_init()
775 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()
3411 ar_pci->mem_len = pci_resource_len(pdev, BAR_NUM); in ath10k_pci_claim()
/kernel/linux/linux-5.10/drivers/video/fbdev/
Dmx3fb.c729 static int mx3fb_map_video_memory(struct fb_info *fbi, unsigned int mem_len,
794 u32 mem_len, cur_xoffset, cur_yoffset; in __set_par() local
809 mem_len = fbi->var.yres_virtual * fbi->fix.line_length; in __set_par()
810 if (mem_len > fbi->fix.smem_len) { in __set_par()
814 if (mx3fb_map_video_memory(fbi, mem_len, lock) < 0) in __set_par()
1330 static int mx3fb_map_video_memory(struct fb_info *fbi, unsigned int mem_len, in mx3fb_map_video_memory() argument
1336 fbi->screen_base = dma_alloc_wc(fbi->device, mem_len, &addr, in mx3fb_map_video_memory()
1341 mem_len); in mx3fb_map_video_memory()
1349 fbi->fix.smem_len = mem_len; in mx3fb_map_video_memory()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtl818x/rtl8180/
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()
/kernel/linux/linux-5.10/drivers/scsi/
D3w-9xxx.c2011 unsigned long mem_addr, mem_len; in twa_probe() local
2059 mem_len = pci_resource_len(pdev, 1); in twa_probe()
2062 mem_len = pci_resource_len(pdev, 2); in twa_probe()
2066 tw_dev->base_addr = ioremap(mem_addr, mem_len); in twa_probe()
Dips.c2046 ha->mem_addr, ha->mem_len); in ips_host_info()
6835 uint32_t mem_len; in ips_init_phase1() local
6858 mem_len = 0; in ips_init_phase1()
6870 mem_len = pci_resource_len(pci_dev, j); in ips_init_phase1()
6906 ha->mem_len = mem_len; in ips_init_phase1()
Dips.h1046 uint32_t mem_len; /* Size of memory address */ member
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Dahb.c672 ab->mem_len = resource_size(mem_res); in ath11k_ahb_probe()
Dcore.h666 unsigned long mem_len; member
Dpci.c732 ab->mem_len = pci_resource_len(pdev, ATH11K_PCI_BAR_NUM); in ath11k_pci_claim()
/kernel/linux/linux-5.10/kernel/locking/
Dlockdep.c6312 static inline int not_in_range(const void* mem_from, unsigned long mem_len, in not_in_range() argument
6316 mem_from + mem_len <= lock_from; in not_in_range()
6324 void debug_check_no_locks_freed(const void *mem_from, unsigned long mem_len) in debug_check_no_locks_freed() argument
6338 if (not_in_range(mem_from, mem_len, hlock->instance, in debug_check_no_locks_freed()
6342 print_freed_lock_bug(curr, mem_from, mem_from + mem_len, hlock); in debug_check_no_locks_freed()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_main.c1155 unsigned long mem_len, pci_len0 = 0, bar0_len; in qlcnic_setup_pci_map() local
1158 mem_len = pci_resource_len(pdev, 0); in qlcnic_setup_pci_map()
1161 if (mem_len >= bar0_len) { in qlcnic_setup_pci_map()
1168 pci_len0 = mem_len; in qlcnic_setup_pci_map()
1173 dev_info(&pdev->dev, "%dKB memory map\n", (int)(mem_len >> 10)); in qlcnic_setup_pci_map()
/kernel/linux/linux-5.10/drivers/net/wireless/cisco/
Dairo.c2453 unsigned long mem_len = pci_resource_len(pci, 1); in mpi_unmap_card() local
2458 release_mem_region(mem_start, mem_len); in mpi_unmap_card()
2547 unsigned long mem_start, mem_len, aux_start, aux_len; in mpi_map_card() local
2555 mem_len = pci_resource_len(pci, 1); in mpi_map_card()
2559 if (!request_mem_region(mem_start, mem_len, DRV_NAME)) { in mpi_map_card()
2561 (int)mem_start, (int)mem_len); in mpi_map_card()
2570 ai->pcimem = ioremap(mem_start, mem_len); in mpi_map_card()
2573 (int)mem_start, (int)mem_len); in mpi_map_card()
2656 release_mem_region(mem_start, mem_len); in mpi_map_card()

12