Searched refs:dif_len (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/net/wireless/ipw2x00/
H A Dipw2100.c452 u32 dif_len; write_nic_memory() local
457 dif_len = addr - aligned_addr; write_nic_memory()
458 if (dif_len) { write_nic_memory()
459 /* Start reading at aligned_addr + dif_len */ write_nic_memory()
462 for (i = dif_len; i < 4; i++, buf++) write_nic_memory()
467 len -= dif_len; write_nic_memory()
478 dif_len = len - aligned_len; write_nic_memory()
480 for (i = 0; i < dif_len; i++, buf++) write_nic_memory()
490 u32 dif_len; read_nic_memory() local
495 dif_len = addr - aligned_addr; read_nic_memory()
496 if (dif_len) { read_nic_memory()
497 /* Start reading at aligned_addr + dif_len */ read_nic_memory()
500 for (i = dif_len; i < 4; i++, buf++) read_nic_memory()
505 len -= dif_len; read_nic_memory()
516 dif_len = len - aligned_len; read_nic_memory()
518 for (i = 0; i < dif_len; i++, buf++) read_nic_memory()
H A Dipw2200.c449 u32 dif_len = reg - aligned_addr; _ipw_write_reg8() local
453 _ipw_write8(priv, IPW_INDIRECT_DATA + dif_len, value); _ipw_write_reg8()
460 u32 dif_len = (reg - aligned_addr) & (~0x1ul); _ipw_write_reg16() local
464 _ipw_write16(priv, IPW_INDIRECT_DATA + dif_len, value); _ipw_write_reg16()
496 u32 dif_len = addr - aligned_addr; _ipw_read_indirect() local
506 if (unlikely(dif_len)) { _ipw_read_indirect()
508 /* Start reading at aligned_addr + dif_len */ _ipw_read_indirect()
509 for (i = dif_len; ((i < 4) && (num > 0)); i++, num--) _ipw_read_indirect()
533 u32 dif_len = addr - aligned_addr; _ipw_write_indirect() local
543 if (unlikely(dif_len)) { _ipw_write_indirect()
545 /* Start writing at aligned_addr + dif_len */ _ipw_write_indirect()
546 for (i = dif_len; ((i < 4) && (num > 0)); i++, num--, buf++) _ipw_write_indirect()

Completed in 175 milliseconds