resource_tracker.c (272060) | resource_tracker.c (299179) |
---|---|
1/* 2 * Copyright (c) 2004, 2005 Topspin Communications. All rights reserved. 3 * Copyright (c) 2005, 2006, 2007, 2008, 2014 Mellanox Technologies. 4 * All rights reserved. 5 * Copyright (c) 2005, 2006, 2007 Cisco Systems, Inc. All rights reserved. 6 * 7 * This software is available to you under a choice of one of two 8 * licenses. You may choose to be licensed under the terms of the GNU --- 2902 unchanged lines hidden (view full) --- 2911 int err; 2912 2913 err = get_containing_mtt(dev, slave, start, npages, &rmtt); 2914 if (err) 2915 return err; 2916 2917 /* Call the SW implementation of write_mtt: 2918 * - Prepare a dummy mtt struct | 1/* 2 * Copyright (c) 2004, 2005 Topspin Communications. All rights reserved. 3 * Copyright (c) 2005, 2006, 2007, 2008, 2014 Mellanox Technologies. 4 * All rights reserved. 5 * Copyright (c) 2005, 2006, 2007 Cisco Systems, Inc. All rights reserved. 6 * 7 * This software is available to you under a choice of one of two 8 * licenses. You may choose to be licensed under the terms of the GNU --- 2902 unchanged lines hidden (view full) --- 2911 int err; 2912 2913 err = get_containing_mtt(dev, slave, start, npages, &rmtt); 2914 if (err) 2915 return err; 2916 2917 /* Call the SW implementation of write_mtt: 2918 * - Prepare a dummy mtt struct |
2919 * - Translate inbox contents to simple addresses in host endianess */ | 2919 * - Translate inbox contents to simple addresses in host endianness */ |
2920 mtt.offset = 0; /* TBD this is broken but I don't handle it since 2921 we don't really use it */ 2922 mtt.order = 0; 2923 mtt.page_shift = 0; 2924 for (i = 0; i < npages; ++i) 2925 pg_list[i + 2] = (be64_to_cpu(page_list[i + 2]) & ~1ULL); 2926 2927 err = __mlx4_write_mtt(dev, &mtt, be64_to_cpu(page_list[0]), npages, --- 1759 unchanged lines hidden --- | 2920 mtt.offset = 0; /* TBD this is broken but I don't handle it since 2921 we don't really use it */ 2922 mtt.order = 0; 2923 mtt.page_shift = 0; 2924 for (i = 0; i < npages; ++i) 2925 pg_list[i + 2] = (be64_to_cpu(page_list[i + 2]) & ~1ULL); 2926 2927 err = __mlx4_write_mtt(dev, &mtt, be64_to_cpu(page_list[0]), npages, --- 1759 unchanged lines hidden --- |