| /linux/tools/perf/util/ |
| H A D | srccode.c | 32 size_t maplen; member 40 static int countlines(char *map, int maplen) in countlines() argument 43 char *end = map + maplen; in countlines() 46 if (maplen == 0) in countlines() 58 static void fill_lines(char **lines, int maxline, char *map, int maplen) in fill_lines() argument 61 char *end = map + maplen; in fill_lines() 64 if (maplen == 0 || maxline == 0) in fill_lines() 81 map_total_sz -= sf->maplen; in free_srcfile() 82 munmap(sf->map, sf->maplen); in free_srcfile() 127 h->maplen = st.st_size; in find_srcfile() [all …]
|
| /linux/drivers/net/ethernet/alacritech/ |
| H A D | slicoss.c | 395 unsigned int maplen = SLIC_RX_BUFF_SIZE; in slic_refill_rx_queue() local 406 skb = alloc_skb(maplen + ALIGN_MASK, gfp); in slic_refill_rx_queue() 410 paddr = dma_map_single(&sdev->pdev->dev, skb->data, maplen, in slic_refill_rx_queue() 440 dma_unmap_len_set(buff, map_len, maplen); in slic_refill_rx_queue() 1415 u32 maplen; in slic_xmit() local 1423 maplen = skb_headlen(skb); in slic_xmit() 1424 paddr = dma_map_single(&sdev->pdev->dev, skb->data, maplen, in slic_xmit() 1434 dma_unmap_len_set(buff, map_len, maplen); in slic_xmit() 1437 desc->totlen = cpu_to_le32(maplen); in slic_xmit() 1440 desc->len = cpu_to_le32(maplen); in slic_xmit()
|
| /linux/drivers/net/ethernet/qlogic/ |
| H A D | qla3xxx.c | 339 dma_unmap_len_set(lrg_buf_cb, maplen, in ql_release_to_lrg_buf_free_list() 1827 dma_unmap_len_set(lrg_buf_cb, maplen, in ql_populate_free_queue() 1948 dma_unmap_len(&tx_cb->map[0], maplen), DMA_TO_DEVICE); in ql_process_mac_tx_intr() 1954 dma_unmap_len(&tx_cb->map[i], maplen), in ql_process_mac_tx_intr() 2024 dma_unmap_len(lrg_buf_cb2, maplen), DMA_FROM_DEVICE); in ql_process_mac_rx_intr() 2069 dma_unmap_len(lrg_buf_cb2, maplen), DMA_FROM_DEVICE); in ql_process_macip_rx_intr() 2333 dma_unmap_len_set(&tx_cb->map[seg], maplen, len); in ql_send_map() 2373 dma_unmap_len_set(&tx_cb->map[seg], maplen, in ql_send_map() 2395 dma_unmap_len_set(&tx_cb->map[seg], maplen, skb_frag_size(frag)); in ql_send_map() 2424 dma_unmap_len(&tx_cb->map[seg], maplen), in ql_send_map() [all …]
|
| H A D | qla3xxx.h | 1001 DEFINE_DMA_UNMAP_LEN(maplen); 1032 DEFINE_DMA_UNMAP_LEN(maplen);
|
| /linux/drivers/net/ethernet/atheros/alx/ |
| H A D | main.c | 1464 int maplen, f, first_idx = txq->write_idx; in alx_map_tx_skb() local 1479 maplen = skb_headlen(skb); in alx_map_tx_skb() 1480 dma = dma_map_single(txq->dev, skb->data, maplen, in alx_map_tx_skb() 1485 dma_unmap_len_set(&txq->bufs[txq->write_idx], size, maplen); in alx_map_tx_skb() 1489 tpd->len = cpu_to_le16(maplen); in alx_map_tx_skb() 1500 maplen = skb_frag_size(frag); in alx_map_tx_skb() 1502 maplen, DMA_TO_DEVICE); in alx_map_tx_skb() 1505 dma_unmap_len_set(&txq->bufs[txq->write_idx], size, maplen); in alx_map_tx_skb() 1509 tpd->len = cpu_to_le16(maplen); in alx_map_tx_skb()
|
| /linux/drivers/vdpa/mlx5/core/ |
| H A D | mr.c | 128 static u64 maplen(struct vhost_iotlb_map *map, struct mlx5_vdpa_direct_mr *mr) in maplen() function 384 size = maplen(map, mr); in map_direct_mr() 401 paend = map->addr + offset + maplen(map, mr); in map_direct_mr()
|
| /linux/drivers/net/ethernet/marvell/ |
| H A D | skge.c | 965 dma_unmap_len_set(e, maplen, bufsize); in skge_rx_setup() 1000 dma_unmap_len(e, maplen), in skge_rx_clean() 2765 dma_unmap_len_set(e, maplen, len); in skge_xmit_frame() 2810 dma_unmap_len_set(e, maplen, skb_frag_size(frag)); in skge_xmit_frame() 2842 dma_unmap_len(e, maplen), DMA_TO_DEVICE); in skge_xmit_frame() 2846 dma_unmap_len(e, maplen), DMA_TO_DEVICE); in skge_xmit_frame() 2864 dma_unmap_len(e, maplen), DMA_TO_DEVICE); in skge_tx_unmap() 2867 dma_unmap_len(e, maplen), DMA_TO_DEVICE); in skge_tx_unmap() 3080 dma_unmap_len(e, maplen), in skge_rx_get() 3085 dma_unmap_len(e, maplen), in skge_rx_get() [all …]
|
| H A D | sky2.c | 1810 dma_unmap_len(re, maplen), DMA_TO_DEVICE); in sky2_tx_unmap() 1813 dma_unmap_len(re, maplen), DMA_TO_DEVICE); in sky2_tx_unmap() 1924 dma_unmap_len_set(re, maplen, len); in sky2_xmit_frame() 1953 dma_unmap_len_set(re, maplen, skb_frag_size(frag)); in sky2_xmit_frame()
|
| H A D | skge.h | 2393 DEFINE_DMA_UNMAP_LEN(maplen);
|
| H A D | sky2.h | 2191 DEFINE_DMA_UNMAP_LEN(maplen);
|
| /linux/net/ceph/ |
| H A D | osd_client.c | 4138 u32 nr_maps, maplen; in ceph_osdc_handle_map() local 4168 maplen = ceph_decode_32(&p); in ceph_osdc_handle_map() 4169 ceph_decode_need(&p, end, maplen, bad); in ceph_osdc_handle_map() 4173 epoch, maplen); in ceph_osdc_handle_map() 4174 err = handle_one_map(osdc, p, p + maplen, true, in ceph_osdc_handle_map() 4181 epoch, maplen); in ceph_osdc_handle_map() 4183 p += maplen; in ceph_osdc_handle_map() 4195 maplen = ceph_decode_32(&p); in ceph_osdc_handle_map() 4196 ceph_decode_need(&p, end, maplen, bad); in ceph_osdc_handle_map() 4199 epoch, maplen); in ceph_osdc_handle_map() [all …]
|
| /linux/fs/ceph/ |
| H A D | mds_client.c | 6268 u32 maplen; in ceph_mdsc_handle_mdsmap() local 6280 maplen = ceph_decode_32(&p); in ceph_mdsc_handle_mdsmap() 6281 doutc(cl, "epoch %u len %d\n", epoch, (int)maplen); in ceph_mdsc_handle_mdsmap()
|