Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bnx2x: Spelling mistakes

Spelling mistakes
Spelling has to L's in it...

Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Eilon Greenstein and committed by
David S. Miller
33471629 3196a88a

+39 -39
+5 -5
drivers/net/bnx2x.h
··· 155 155 #define NUM_RX_SGE_PAGES 2 156 156 #define RX_SGE_CNT (BCM_PAGE_SIZE / sizeof(struct eth_rx_sge)) 157 157 #define MAX_RX_SGE_CNT (RX_SGE_CNT - 2) 158 - /* RX_SGE_CNT is promissed to be a power of 2 */ 158 + /* RX_SGE_CNT is promised to be a power of 2 */ 159 159 #define RX_SGE_MASK (RX_SGE_CNT - 1) 160 160 #define NUM_RX_SGE (RX_SGE_CNT * NUM_RX_SGE_PAGES) 161 161 #define MAX_RX_SGE (NUM_RX_SGE - 1) ··· 317 317 #define RCQ_BD(x) ((x) & MAX_RCQ_BD) 318 318 319 319 320 - /* This is needed for determening of last_max */ 320 + /* This is needed for determining of last_max */ 321 321 #define SUB_S16(a, b) (s16)((s16)(a) - (s16)(b)) 322 322 323 323 #define __SGE_MASK_SET_BIT(el, bit) \ ··· 784 784 u8 stats_pending; 785 785 u8 set_mac_pending; 786 786 787 - /* End of fileds used in the performance code paths */ 787 + /* End of fields used in the performance code paths */ 788 788 789 789 int panic; 790 790 int msglevel; ··· 1024 1024 /* resolution of the rate shaping timer - 100 usec */ 1025 1025 #define RS_PERIODIC_TIMEOUT_USEC 100 1026 1026 /* resolution of fairness algorithm in usecs - 1027 - coefficient for clauclating the actuall t fair */ 1027 + coefficient for calculating the actual t fair */ 1028 1028 #define T_FAIR_COEF 10000000 1029 1029 /* number of bytes in single QM arbitration cycle - 1030 - coeffiecnt for calculating the fairness timer */ 1030 + coefficient for calculating the fairness timer */ 1031 1031 #define QM_ARB_BYTES 40000 1032 1032 #define FAIR_MEM 2 1033 1033
+8 -8
drivers/net/bnx2x_hsi.h
··· 1268 1268 1269 1269 1270 1270 /* 1271 - * IGU driver acknowlegement register 1271 + * IGU driver acknowledgement register 1272 1272 */ 1273 1273 struct igu_ack_register { 1274 1274 #if defined(__BIG_ENDIAN) ··· 1882 1882 }; 1883 1883 1884 1884 /* 1885 - * structure for easy accessability to assembler 1885 + * structure for easy accessibility to assembler 1886 1886 */ 1887 1887 struct eth_tx_bd_flags { 1888 1888 u8 as_bitfield; ··· 2044 2044 2045 2045 2046 2046 /* 2047 - * ethernet doorbell 2047 + * Ethernet doorbell 2048 2048 */ 2049 2049 struct eth_tx_doorbell { 2050 2050 #if defined(__BIG_ENDIAN) ··· 2256 2256 }; 2257 2257 2258 2258 /* 2259 - * union for ramrod data for ethernet protocol (CQE) (force size of 16 bits) 2259 + * union for ramrod data for Ethernet protocol (CQE) (force size of 16 bits) 2260 2260 */ 2261 2261 union eth_ramrod_data { 2262 2262 struct ramrod_data general; ··· 2330 2330 }; 2331 2331 2332 2332 /* 2333 - * ethernet slow path element 2333 + * Ethernet slow path element 2334 2334 */ 2335 2335 union eth_specific_data { 2336 2336 u8 protocol_data[8]; ··· 2343 2343 }; 2344 2344 2345 2345 /* 2346 - * ethernet slow path element 2346 + * Ethernet slow path element 2347 2347 */ 2348 2348 struct eth_spe { 2349 2349 struct spe_hdr hdr; ··· 2615 2615 2616 2616 2617 2617 /* 2618 - * common flag to indicate existance of TPA. 2618 + * common flag to indicate existence of TPA. 2619 2619 */ 2620 2620 struct tstorm_eth_tpa_exist { 2621 2621 #if defined(__BIG_ENDIAN) ··· 2765 2765 }; 2766 2766 2767 2767 /* 2768 - * Eth statistics query sturcture for the eth_stats_quesry ramrod 2768 + * Eth statistics query structure for the eth_stats_query ramrod 2769 2769 */ 2770 2770 struct eth_stats_query { 2771 2771 struct xstorm_common_stats xstorm_common;
+3 -3
drivers/net/bnx2x_init.h
··· 208 208 /********************************************************* 209 209 There are different blobs for each PRAM section. 210 210 In addition, each blob write operation is divided into a few operations 211 - in order to decrease the amount of phys. contigious buffer needed. 211 + in order to decrease the amount of phys. contiguous buffer needed. 212 212 Thus, when we select a blob the address may be with some offset 213 213 from the beginning of PRAM section. 214 214 The same holds for the INT_TABLE sections. ··· 336 336 len = op->str_wr.data_len; 337 337 data = data_base + op->str_wr.data_off; 338 338 339 - /* carefull! it must be in order */ 339 + /* careful! it must be in order */ 340 340 if (unlikely(op_type > OP_WB)) { 341 341 342 342 /* If E1 only */ ··· 740 740 return crc_res; 741 741 } 742 742 743 - /* regiesers addresses are not in order 743 + /* registers addresses are not in order 744 744 so these arrays help simplify the code */ 745 745 static const int cm_start[E1H_FUNC_MAX][9] = { 746 746 {MISC_FUNC0_START, TCM_FUNC0_START, UCM_FUNC0_START, CCM_FUNC0_START,
+2 -2
drivers/net/bnx2x_link.h
··· 143 143 u8 phy_addr, u8 devad, u16 reg, u16 val); 144 144 145 145 /* Reads the link_status from the shmem, 146 - and update the link vars accordinaly */ 146 + and update the link vars accordingly */ 147 147 void bnx2x_link_status_update(struct link_params *input, 148 148 struct link_vars *output); 149 149 /* returns string representing the fw_version of the external phy */ ··· 152 152 153 153 /* Set/Unset the led 154 154 Basically, the CLC takes care of the led for the link, but in case one needs 155 - to set/unset the led unnatually, set the "mode" to LED_MODE_OPER to 155 + to set/unset the led unnaturally, set the "mode" to LED_MODE_OPER to 156 156 blink the led, and LED_MODE_OFF to set the led off.*/ 157 157 u8 bnx2x_set_led(struct bnx2x *bp, u8 port, u8 mode, u32 speed, 158 158 u16 hw_led_mode, u32 chip_id);
+12 -12
drivers/net/bnx2x_main.c
··· 1151 1151 memset(fp->sge_mask, 0xff, 1152 1152 (NUM_RX_SGE >> RX_SGE_MASK_ELEM_SHIFT)*sizeof(u64)); 1153 1153 1154 - /* Clear the two last indeces in the page to 1: 1155 - these are the indeces that correspond to the "next" element, 1154 + /* Clear the two last indices in the page to 1: 1155 + these are the indices that correspond to the "next" element, 1156 1156 hence will never be indicated and should be removed from 1157 1157 the calculations. */ 1158 1158 bnx2x_clear_sge_mask_next_elems(fp); ··· 2011 2011 sum of vn_min_rates 2012 2012 or 2013 2013 0 - if all the min_rates are 0. 2014 - In the later case fainess algorithm should be deactivated. 2014 + In the later case fairness algorithm should be deactivated. 2015 2015 If not all min_rates are zero then those that are zeroes will 2016 2016 be set to 1. 2017 2017 */ ··· 2134 2134 FUNC_MF_CFG_MIN_BW_SHIFT) * 100; 2135 2135 /* If FAIRNESS is enabled (not all min rates are zeroes) and 2136 2136 if current min rate is zero - set it to 1. 2137 - This is a requirment of the algorithm. */ 2137 + This is a requirement of the algorithm. */ 2138 2138 if ((vn_min_rate == 0) && wsum) 2139 2139 vn_min_rate = DEF_MIN_RATE; 2140 2140 vn_max_rate = ((vn_cfg & FUNC_MF_CFG_MAX_BW_MASK) >> ··· 6562 6562 val = REG_RD(bp, BRB1_REG_PORT_NUM_OCC_BLOCKS_0 + port*4); 6563 6563 if (val) 6564 6564 DP(NETIF_MSG_IFDOWN, 6565 - "BRB1 is not empty %d blooks are occupied\n", val); 6565 + "BRB1 is not empty %d blocks are occupied\n", val); 6566 6566 6567 6567 /* TODO: Close Doorbell port? */ 6568 6568 } ··· 6602 6602 } 6603 6603 } 6604 6604 6605 - /* msut be called with rtnl_lock */ 6605 + /* must be called with rtnl_lock */ 6606 6606 static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode) 6607 6607 { 6608 6608 int port = BP_PORT(bp); ··· 7455 7455 7456 7456 if (BP_NOMCP(bp)) { 7457 7457 /* only supposed to happen on emulation/FPGA */ 7458 - BNX2X_ERR("warning rendom MAC workaround active\n"); 7458 + BNX2X_ERR("warning random MAC workaround active\n"); 7459 7459 random_ether_addr(bp->dev->dev_addr); 7460 7460 memcpy(bp->dev->perm_addr, bp->dev->dev_addr, ETH_ALEN); 7461 7461 } ··· 8907 8907 if (!netif_running(dev)) 8908 8908 return; 8909 8909 8910 - /* offline tests are not suppoerted in MF mode */ 8910 + /* offline tests are not supported in MF mode */ 8911 8911 if (IS_E1HMF(bp)) 8912 8912 etest->flags &= ~ETH_TEST_FL_OFFLINE; 8913 8913 ··· 9216 9216 PCI_PM_CTRL_PME_STATUS)); 9217 9217 9218 9218 if (pmcsr & PCI_PM_CTRL_STATE_MASK) 9219 - /* delay required during transition out of D3hot */ 9219 + /* delay required during transition out of D3hot */ 9220 9220 msleep(20); 9221 9221 break; 9222 9222 ··· 9289 9289 9290 9290 9291 9291 /* we split the first BD into headers and data BDs 9292 - * to ease the pain of our fellow micocode engineers 9292 + * to ease the pain of our fellow microcode engineers 9293 9293 * we use one mapping for both BDs 9294 9294 * So far this has only been observed to happen 9295 9295 * in Other Operating Systems(TM) ··· 9396 9396 /* Check if LSO packet needs to be copied: 9397 9397 3 = 1 (for headers BD) + 2 (for PBD and last BD) */ 9398 9398 int wnd_size = MAX_FETCH_BD - 3; 9399 - /* Number of widnows to check */ 9399 + /* Number of windows to check */ 9400 9400 int num_wnds = skb_shinfo(skb)->nr_frags - wnd_size; 9401 9401 int wnd_idx = 0; 9402 9402 int frag_idx = 0; ··· 9498 9498 skb->ip_summed, skb->protocol, ipv6_hdr(skb)->nexthdr, 9499 9499 ip_hdr(skb)->protocol, skb_shinfo(skb)->gso_type, xmit_type); 9500 9500 9501 - /* First, check if we need to linearaize the skb 9501 + /* First, check if we need to linearize the skb 9502 9502 (due to FW restrictions) */ 9503 9503 if (bnx2x_pkt_req_lin(bp, skb, xmit_type)) { 9504 9504 /* Statistics of linearization */
+9 -9
drivers/net/bnx2x_reg.h
··· 6 6 * it under the terms of the GNU General Public License as published by 7 7 * the Free Software Foundation. 8 8 * 9 - * The registers description starts with the regsister Access type followed 9 + * The registers description starts with the register Access type followed 10 10 * by size in bits. For example [RW 32]. The access types are: 11 11 * R - Read only 12 12 * RC - Clear on read ··· 49 49 /* [RW 10] Write client 0: Assert pause threshold. */ 50 50 #define BRB1_REG_PAUSE_LOW_THRESHOLD_0 0x60068 51 51 #define BRB1_REG_PAUSE_LOW_THRESHOLD_1 0x6006c 52 - /* [R 24] The number of full blocks occpied by port. */ 52 + /* [R 24] The number of full blocks occupied by port. */ 53 53 #define BRB1_REG_PORT_NUM_OCC_BLOCKS_0 0x60094 54 54 /* [RW 1] Reset the design by software. */ 55 55 #define BRB1_REG_SOFT_RESET 0x600dc ··· 1412 1412 #define MISC_REG_GPIO 0xa490 1413 1413 /* [R 28] this field hold the last information that caused reserved 1414 1414 attention. bits [19:0] - address; [22:20] function; [23] reserved; 1415 - [27:24] the master thatcaused the attention - according to the following 1415 + [27:24] the master that caused the attention - according to the following 1416 1416 encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 = 1417 1417 dbu; 8 = dmae */ 1418 1418 #define MISC_REG_GRC_RSV_ATTN 0xa3c0 1419 1419 /* [R 28] this field hold the last information that caused timeout 1420 1420 attention. bits [19:0] - address; [22:20] function; [23] reserved; 1421 - [27:24] the master thatcaused the attention - according to the following 1421 + [27:24] the master that caused the attention - according to the following 1422 1422 encodeing:1 = pxp; 2 = mcp; 3 = usdm; 4 = tsdm; 5 = xsdm; 6 = csdm; 7 = 1423 1423 dbu; 8 = dmae */ 1424 1424 #define MISC_REG_GRC_TIMEOUT_ATTN 0xa3c4 ··· 2320 2320 /* [RW 3] page size in L2P table for QM module; -4k; -8k; -16k; -32k; -64k; 2321 2321 -128k */ 2322 2322 #define PXP2_REG_RQ_QM_P_SIZE 0x120050 2323 - /* [RW 1] 1' indicates that the RBC has finished configurating the PSWRQ */ 2323 + /* [RW 1] 1' indicates that the RBC has finished configuring the PSWRQ */ 2324 2324 #define PXP2_REG_RQ_RBC_DONE 0x1201b0 2325 2325 /* [RW 3] Max burst size filed for read requests port 0; 000 - 128B; 2326 2326 001:256B; 010: 512B; 11:1K:100:2K; 01:4K */ ··· 2428 2428 /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the 2429 2429 buffer reaches this number has_payload will be asserted */ 2430 2430 #define PXP2_REG_WR_DMAE_MPS 0x1205ec 2431 - /* [RW 10] if Number of entries in dmae fifo will be higer than this 2431 + /* [RW 10] if Number of entries in dmae fifo will be higher than this 2432 2432 threshold then has_payload indication will be asserted; the default value 2433 2433 should be equal to &gt; write MBS size! */ 2434 2434 #define PXP2_REG_WR_DMAE_TH 0x120368 ··· 2449 2449 /* [RW 2] 0 - 128B; - 256B; - 512B; - 1024B; when the payload in the 2450 2450 buffer reaches this number has_payload will be asserted */ 2451 2451 #define PXP2_REG_WR_TSDM_MPS 0x1205d4 2452 - /* [RW 10] if Number of entries in usdmdp fifo will be higer than this 2452 + /* [RW 10] if Number of entries in usdmdp fifo will be higher than this 2453 2453 threshold then has_payload indication will be asserted; the default value 2454 2454 should be equal to &gt; write MBS size! */ 2455 2455 #define PXP2_REG_WR_USDMDP_TH 0x120348 ··· 3316 3316 #define XSEM_XSEM_INT_MASK_0_REG_ADDRESS_ERROR_SIZE 0 3317 3317 #define CFC_DEBUG1_REG_WRITE_AC (0x1<<4) 3318 3318 #define CFC_DEBUG1_REG_WRITE_AC_SIZE 4 3319 - /* [R 1] debug only: This bit indicates wheter indicates that external 3319 + /* [R 1] debug only: This bit indicates whether indicates that external 3320 3320 buffer was wrapped (oldest data was thrown); Relevant only when 3321 3321 ~dbg_registers_debug_target=2 (PCI) & ~dbg_registers_full_mode=1 (wrap); */ 3322 3322 #define DBG_REG_WRAP_ON_EXT_BUFFER 0xc124 3323 3323 #define DBG_REG_WRAP_ON_EXT_BUFFER_SIZE 1 3324 - /* [R 1] debug only: This bit indicates wheter the internal buffer was 3324 + /* [R 1] debug only: This bit indicates whether the internal buffer was 3325 3325 wrapped (oldest data was thrown) Relevant only when 3326 3326 ~dbg_registers_debug_target=0 (internal buffer) */ 3327 3327 #define DBG_REG_WRAP_ON_INT_BUFFER 0xc128