/kernel/linux/linux-5.10/drivers/target/tcm_fc/ |
D | tfc_io.c | 55 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/common_modules/tzdriver/tlogger/ |
D | log_pages_cfg.c | 73 uint32_t mem_len; in register_log_mem() local 85 mem_len = g_mem_info.log_len; in register_log_mem() 87 ret = register_mem_to_teeos(mem_addr, mem_len, true); in register_log_mem() 112 int *map_log_mem(uint64_t mem_addr, uint32_t mem_len) in map_log_mem() argument 114 (void)mem_len; in map_log_mem()
|
D | tlogger.h | 35 int register_mem_to_teeos(uint64_t mem_addr, uint32_t mem_len, bool is_cache_mem); 55 static inline int register_mem_to_teeos(uint64_t mem_addr, uint32_t mem_len, in register_mem_to_teeos() argument 59 (void)mem_len; in register_mem_to_teeos()
|
D | log_cfg_api.h | 25 int *map_log_mem(uint64_t mem_addr, uint32_t mem_len); 51 static inline int *map_log_mem(uint64_t mem_addr, uint32_t mem_len) in map_log_mem() argument 54 (void)mem_len; in map_log_mem()
|
D | tlogger.c | 1319 int register_mem_to_teeos(uint64_t mem_addr, uint32_t mem_len, bool is_cache_mem) in register_mem_to_teeos() argument 1340 mb_pack->operation.params[1].value.a = mem_len; in register_mem_to_teeos() 1380 static int check_log_mem(uint64_t mem_addr, uint32_t mem_len) in check_log_mem() argument 1382 if (mem_len < TEMP_LOG_MEM_SIZE) { in check_log_mem() 1383 tloge("log mem init error, too small len:0x%x\n", mem_len); in check_log_mem()
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
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 = devm_ioremap(denali->dev, mem_base, mem_len); in denali_pci_probe()
|
/kernel/linux/linux-5.10/drivers/staging/hievent/ |
D | hievent_driver.c | 91 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/ |
D | hilog.c | 116 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/ |
D | ahb.h | 15 unsigned long mem_len; member
|
D | snoc.h | 68 size_t mem_len; member
|
D | ahb.c | 459 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()
|
D | pci.h | 112 size_t mem_len; member
|
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() 3412 ar_pci->mem_len = pci_resource_len(pdev, BAR_NUM); in ath10k_pci_claim()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/ |
D | mx3fb.c | 729 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/ |
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()
|
/kernel/linux/linux-5.10/drivers/scsi/bfa/ |
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)
|
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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_main.c | 710 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/ |
D | adm8211.c | 1781 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/ |
D | dev.c | 1734 unsigned long mem_len; in rtl8180_probe() local 1755 mem_len = pci_resource_len(pdev, 1); in rtl8180_probe() 1757 if (mem_len < sizeof(struct rtl818x_csr) || in rtl8180_probe() 1790 priv->map = pci_iomap(pdev, 1, mem_len); in rtl8180_probe()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | 3w-9xxx.c | 2011 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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/ |
D | core.h | 666 unsigned long mem_len; member
|
D | ahb.c | 674 ab->mem_len = resource_size(mem_res); in ath11k_ahb_probe()
|
/kernel/linux/linux-5.10/kernel/locking/ |
D | lockdep.c | 6323 static inline int not_in_range(const void* mem_from, unsigned long mem_len, in not_in_range() argument 6327 mem_from + mem_len <= lock_from; in not_in_range() 6335 void debug_check_no_locks_freed(const void *mem_from, unsigned long mem_len) in debug_check_no_locks_freed() argument 6349 if (not_in_range(mem_from, mem_len, hlock->instance, in debug_check_no_locks_freed() 6353 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/ |
D | qlcnic_main.c | 1155 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()
|