tx.c (de74c455fd991024be76a535df4d66e96af3896e) tx.c (7abf6fde970cc27dda7a8f02439fd0b8a0156459)
1/******************************************************************************
2 *
3 * Copyright(c) 2003 - 2014 Intel Corporation. All rights reserved.
4 * Copyright(c) 2013 - 2015 Intel Mobile Communications GmbH
5 * Copyright(c) 2016 Intel Deutschland GmbH
6 *
7 * Portions of this file are derived from the ipw3945 project, as well
8 * as portions of the ieee80211 subsystem header files.

--- 366 unchanged lines hidden (view full) ---

375 tfd_fh->num_tbs = cpu_to_le16(idx + 1);
376 } else {
377 struct iwl_tfd *tfd_fh = (void *)tfd;
378 struct iwl_tfd_tb *tb = &tfd_fh->tbs[idx];
379
380 u16 hi_n_len = len << 4;
381
382 put_unaligned_le32(addr, &tb->lo);
1/******************************************************************************
2 *
3 * Copyright(c) 2003 - 2014 Intel Corporation. All rights reserved.
4 * Copyright(c) 2013 - 2015 Intel Mobile Communications GmbH
5 * Copyright(c) 2016 Intel Deutschland GmbH
6 *
7 * Portions of this file are derived from the ipw3945 project, as well
8 * as portions of the ieee80211 subsystem header files.

--- 366 unchanged lines hidden (view full) ---

375 tfd_fh->num_tbs = cpu_to_le16(idx + 1);
376 } else {
377 struct iwl_tfd *tfd_fh = (void *)tfd;
378 struct iwl_tfd_tb *tb = &tfd_fh->tbs[idx];
379
380 u16 hi_n_len = len << 4;
381
382 put_unaligned_le32(addr, &tb->lo);
383 if (sizeof(dma_addr_t) > sizeof(u32))
384 hi_n_len |= ((addr >> 16) >> 16) & 0xF;
383 hi_n_len |= iwl_get_dma_hi_addr(addr);
385
386 tb->hi_n_len = cpu_to_le16(hi_n_len);
387
388 tfd_fh->num_tbs = idx + 1;
389 }
390}
391
392static inline u8 iwl_pcie_tfd_get_num_tbs(struct iwl_trans *trans, void *_tfd)

--- 2088 unchanged lines hidden ---
384
385 tb->hi_n_len = cpu_to_le16(hi_n_len);
386
387 tfd_fh->num_tbs = idx + 1;
388 }
389}
390
391static inline u8 iwl_pcie_tfd_get_num_tbs(struct iwl_trans *trans, void *_tfd)

--- 2088 unchanged lines hidden ---