Lines Matching refs:len

406 unm_nic_pci_get_crb_addr_2M(unm_adapter *adapter, u64 *off, int len)
408 unsigned long end = *off + len;
425 end = *off + len;
472 unm_nic_hw_write_ioctl_128M(unm_adapter *adapter, u64 off, void *data, int len)
498 switch (len) {
513 if ((len & 0x7) != 0)
514 cmn_err(CE_WARN, "%s: %s len(%d) not multiple of 8.\n",
515 unm_nic_driver_name, __FUNCTION__, len);
517 UNM_NIC_HW_BLOCK_WRITE_64(data, addr, (len>>3));
531 * Note : 'len' argument should be either 1, 2, 4, or a multiple of 8.
534 unm_nic_hw_write_wx_128M(unm_adapter *adapter, u64 off, void *data, int len)
563 switch (len) {
578 if ((len & 0x7) != 0)
580 "%s: %s len(%d) not multiple of 8.\n",
581 unm_nic_driver_name, __FUNCTION__, len);
583 UNM_NIC_HW_BLOCK_WRITE_64(data, addr, (len>>3));
690 * 'len' should be either 1, 2, 4, or multiple of 8
693 unm_nic_hw_write_wx_2M(unm_adapter *adapter, u64 off, void *data, int len)
697 rv = unm_nic_pci_get_crb_addr_2M(adapter, &off, len);
711 switch (len) {
726 if ((len & 0x7) != 0)
727 cmn_err(CE_WARN, "%s: %s len(%d) not multiple of 8.\n",
728 unm_nic_driver_name, __FUNCTION__, len);
730 UNM_NIC_HW_BLOCK_WRITE_64(data, (uptr_t)off, (len>>3));
742 unm_nic_hw_read_ioctl_128M(unm_adapter *adapter, u64 off, void *data, int len)
768 switch (len) {
783 if ((len & 0x7) != 0)
784 cmn_err(CE_WARN, "%s: %s len(%d) not multiple of 8.\n",
785 unm_nic_driver_name, __FUNCTION__, len);
787 UNM_NIC_HW_BLOCK_READ_64(data, addr, (len>>3));
802 unm_nic_hw_read_wx_2M(unm_adapter *adapter, u64 off, void *data, int len)
806 rv = unm_nic_pci_get_crb_addr_2M(adapter, &off, len);
820 switch (len) {
835 if ((len & 0x7) != 0)
836 cmn_err(CE_WARN, "%s: %s len(%d) not multiple of 8.\n",
837 unm_nic_driver_name, __FUNCTION__, len);
839 UNM_NIC_HW_BLOCK_READ_64(data, (void *) (uptr_t)off, (len>>3));
852 unm_nic_hw_read_wx_128M(unm_adapter *adapter, u64 off, void *data, int len)
876 switch (len) {
891 if ((len & 0x7) != 0)
893 "%s: %s len(%d) not multiple of 8.\n",
894 unm_nic_driver_name, __FUNCTION__, len);
896 UNM_NIC_HW_BLOCK_READ_64(data, addr, (len>>3));