/drivers/net/ethernet/intel/ |
D | e100.c | 565 struct nic { struct 570 u16 (*mdio_ctrl)(struct nic *nic, u32 addr, u32 dir, u32 reg, u16 data); argument 634 static inline void e100_write_flush(struct nic *nic) in e100_write_flush() argument 638 (void)ioread8(&nic->csr->scb.status); in e100_write_flush() 641 static void e100_enable_irq(struct nic *nic) in e100_enable_irq() argument 645 spin_lock_irqsave(&nic->cmd_lock, flags); in e100_enable_irq() 646 iowrite8(irq_mask_none, &nic->csr->scb.cmd_hi); in e100_enable_irq() 647 e100_write_flush(nic); in e100_enable_irq() 648 spin_unlock_irqrestore(&nic->cmd_lock, flags); in e100_enable_irq() 651 static void e100_disable_irq(struct nic *nic) in e100_disable_irq() argument [all …]
|
/drivers/staging/gdm72xx/ |
D | gdm_wimax.c | 238 struct nic *nic = netdev_priv(dev); in gdm_wimax_event_rcv() local 247 gdm_wimax_send(nic, msg, len); in gdm_wimax_event_rcv() 383 struct nic *nic = arg; in tx_complete() local 385 if (netif_queue_stopped(nic->netdev)) in tx_complete() 386 netif_wake_queue(nic->netdev); in tx_complete() 392 struct nic *nic = netdev_priv(dev); in gdm_wimax_send_tx() local 394 ret = gdm_wimax_send_with_cb(nic, skb->data, skb->len, tx_complete, in gdm_wimax_send_tx() 395 nic); in gdm_wimax_send_tx() 406 nic->stats.tx_packets++; in gdm_wimax_send_tx() 407 nic->stats.tx_bytes += skb->len - HCI_HEADER_SIZE; in gdm_wimax_send_tx() [all …]
|
D | gdm_qos.c | 96 struct nic *nic = nic_ptr; in gdm_qos_init() local 97 struct qos_cb_s *qcb = &nic->qos; in gdm_qos_init() 117 struct nic *nic = nic_ptr; in gdm_qos_release_list() local 118 struct qos_cb_s *qcb = &nic->qos; in gdm_qos_release_list() 191 static u32 get_qos_index(struct nic *nic, u8 *iph, u8 *tcpudph) in get_qos_index() argument 194 struct qos_cb_s *qcb = &nic->qos; in get_qos_index() 217 static u32 extract_qos_list(struct nic *nic, struct list_head *head) in extract_qos_list() argument 219 struct qos_cb_s *qcb = &nic->qos; in extract_qos_list() 236 netdev_warn(nic->netdev, in extract_qos_list() 247 static void send_qos_list(struct nic *nic, struct list_head *head) in send_qos_list() argument [all …]
|
D | gdm_wimax.h | 51 struct nic { struct
|
/drivers/firmware/ |
D | iscsi_ibft.c | 181 struct ibft_nic *nic; member 288 struct ibft_nic *nic = entry->nic; in ibft_attr_show_nic() local 293 if (!nic) in ibft_attr_show_nic() 298 str += sprintf(str, "%d\n", nic->hdr.index); in ibft_attr_show_nic() 301 str += sprintf(str, "%d\n", nic->hdr.flags); in ibft_attr_show_nic() 304 str += sprintf_ipaddr(str, nic->ip_addr); in ibft_attr_show_nic() 307 val = cpu_to_be32(~((1 << (32-nic->subnet_mask_prefix))-1)); in ibft_attr_show_nic() 311 str += sprintf(str, "%d\n", nic->origin); in ibft_attr_show_nic() 314 str += sprintf_ipaddr(str, nic->gateway); in ibft_attr_show_nic() 317 str += sprintf_ipaddr(str, nic->primary_dns); in ibft_attr_show_nic() [all …]
|
/drivers/net/ethernet/neterion/ |
D | s2io.c | 580 static int init_shared_mem(struct s2io_nic *nic) in init_shared_mem() argument 588 struct net_device *dev = nic->dev; in init_shared_mem() 591 struct config_param *config = &nic->config; in init_shared_mem() 592 struct mac_info *mac_control = &nic->mac_control; in init_shared_mem() 652 fifo->nic = nic; in init_shared_mem() 660 tmp_v = pci_alloc_consistent(nic->pdev, in init_shared_mem() 678 tmp_v = pci_alloc_consistent(nic->pdev, in init_shared_mem() 717 if (rx_cfg->num_rxd % (rxd_count[nic->rxd_mode] + 1)) { in init_shared_mem() 725 (rxd_count[nic->rxd_mode] + 1); in init_shared_mem() 728 if (nic->rxd_mode == RXD_MODE_1) in init_shared_mem() [all …]
|
D | s2io.h | 709 struct s2io_nic *nic; member 787 struct s2io_nic *nic; member 1082 static int init_nic(struct s2io_nic *nic); 1109 static void s2io_card_down(struct s2io_nic *nic); 1110 static int s2io_card_up(struct s2io_nic *nic); 1116 static void restore_xmsi_data(struct s2io_nic *nic); 1132 static int rts_ds_steer(struct s2io_nic *nic, u8 ds_codepoint, u8 ring);
|
/drivers/net/ethernet/tehuti/ |
D | tehuti.c | 103 struct pci_nic *nic = pci_get_drvdata(pdev); in print_hw_id() local 111 nic->port_num == 1 ? "" : ", 2-Port"); in print_hw_id() 113 readl(nic->regs + SROM_VER), readl(nic->regs + FPGA_VER) & 0xFFF, in print_hw_id() 114 readl(nic->regs + FPGA_SEED), in print_hw_id() 119 static void print_fw_id(struct pci_nic *nic) in print_fw_id() argument 121 pr_info("fw 0x%x\n", readl(nic->regs + FW_VER)); in print_fw_id() 427 #define BDX_IRQ_TYPE ((priv->nic->irq_type == IRQ_MSI) ? 0 : IRQF_SHARED) in bdx_hw_start() 626 print_fw_id(priv->nic); in bdx_open() 637 return (offset > (u32) (BDX_REGS_SIZE / priv->nic->port_num)) ? in bdx_range_check() 1924 struct pci_nic *nic; in bdx_probe() local [all …]
|
D | tehuti.h | 273 struct pci_nic *nic; member
|
/drivers/infiniband/hw/nes/ |
D | nes_hw.c | 1568 nesnic = &nesvnic->nic; in nes_replenish_nic_rq() 1595 nic_rqe = &nesnic->rq_vbase[nesvnic->nic.rq_head]; in nes_replenish_nic_rq() 1710 nesvnic->nic.first_frag_vbase = vmem; in nes_init_nic_qp() 1713 nesvnic->nic.frag_paddr[counter] = pmem; in nes_init_nic_qp() 1720 nesvnic->nic.sq_vbase = (void *)vmem; in nes_init_nic_qp() 1721 nesvnic->nic.sq_pbase = pmem; in nes_init_nic_qp() 1722 nesvnic->nic.sq_head = 0; in nes_init_nic_qp() 1723 nesvnic->nic.sq_tail = 0; in nes_init_nic_qp() 1724 nesvnic->nic.sq_size = NES_NIC_WQ_SIZE; in nes_init_nic_qp() 1726 nic_sqe = &nesvnic->nic.sq_vbase[counter]; in nes_init_nic_qp() [all …]
|
D | nes_nic.c | 363 struct nes_hw_nic *nesnic = &nesvnic->nic; in nes_nic_send() 469 struct nes_hw_nic *nesnic = &nesvnic->nic; in nes_netdev_start_xmit() 689 (wqe_count << 24) | (1 << 23) | nesvnic->nic.qp_id); in nes_netdev_start_xmit() 1694 nesvnic->nic.qp_id = curr_qp_map[nesdev->netdev_count].qpid; in nes_netdev_init() 1718 nesvnic, (unsigned long)netdev->features, nesvnic->nic.qp_id, in nes_netdev_init() 1756 nesvnic->nic_cq.cq_number = nesvnic->nic.qp_id; in nes_netdev_init()
|
D | nes_hw.h | 1251 struct nes_hw_nic nic; member
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_ctx.c | 780 struct qlcnic_info *nic) in qlcnic_82xx_set_nic_info() argument 799 nic_info->pci_func = cpu_to_le16(nic->pci_func); in qlcnic_82xx_set_nic_info() 800 nic_info->op_mode = cpu_to_le16(nic->op_mode); in qlcnic_82xx_set_nic_info() 801 nic_info->phys_port = cpu_to_le16(nic->phys_port); in qlcnic_82xx_set_nic_info() 802 nic_info->switch_mode = cpu_to_le16(nic->switch_mode); in qlcnic_82xx_set_nic_info() 803 nic_info->capabilities = cpu_to_le32(nic->capabilities); in qlcnic_82xx_set_nic_info() 804 nic_info->max_mac_filters = nic->max_mac_filters; in qlcnic_82xx_set_nic_info() 805 nic_info->max_tx_ques = cpu_to_le16(nic->max_tx_ques); in qlcnic_82xx_set_nic_info() 806 nic_info->max_rx_ques = cpu_to_le16(nic->max_rx_ques); in qlcnic_82xx_set_nic_info() 807 nic_info->min_tx_bw = cpu_to_le16(nic->min_tx_bw); in qlcnic_82xx_set_nic_info() [all …]
|
D | qlcnic_83xx_hw.c | 2039 struct qlcnic_info *nic) in qlcnic_83xx_set_nic_info() argument 2052 cmd.req.arg[1] = (nic->pci_func << 16); in qlcnic_83xx_set_nic_info() 2054 cmd.req.arg[3] = nic->phys_port | (nic->switch_mode << 16); in qlcnic_83xx_set_nic_info() 2055 cmd.req.arg[4] = nic->capabilities; in qlcnic_83xx_set_nic_info() 2056 cmd.req.arg[5] = (nic->max_mac_filters & 0xFF) | ((nic->max_mtu) << 16); in qlcnic_83xx_set_nic_info() 2057 cmd.req.arg[6] = (nic->max_tx_ques) | ((nic->max_rx_ques) << 16); in qlcnic_83xx_set_nic_info() 2058 cmd.req.arg[7] = (nic->min_tx_bw) | ((nic->max_tx_bw) << 16); in qlcnic_83xx_set_nic_info()
|
/drivers/net/ethernet/sfc/ |
D | nic.h | 81 int (*init) (struct efx_nic *nic); 83 void (*fini) (struct efx_nic *nic); 85 int (*monitor) (struct efx_nic *nic);
|
D | Makefile | 1 sfc-y += efx.o nic.o falcon.o siena.o tx.o rx.o filter.o \
|
D | ethtool.c | 70 EFX_ETHTOOL_STAT(name, nic, n_##name, \ 74 EFX_ETHTOOL_STAT(field, nic, field, \
|
/drivers/scsi/be2iscsi/ |
D | be_mgmt.c | 1058 struct be_cmd_get_nic_conf_resp *nic) in mgmt_get_nic_conf() argument 1065 sizeof(*nic)); in mgmt_get_nic_conf() 1069 return mgmt_exec_nonemb_cmd(phba, &nonemb_cmd, nic, sizeof(*nic)); in mgmt_get_nic_conf()
|
/drivers/net/wireless/ipw2x00/ |
D | ipw2100.h | 184 dma_addr_t nic; member 233 dma_addr_t nic; member
|
D | ipw2100.c | 2910 (u32) (txq->nic + i * sizeof(struct ipw2100_bd)), in __ipw2100_tx_process() 2918 (u32) (txq->nic + i * in __ipw2100_tx_process() 3041 (u32) (txq->nic + txq->next * in ipw2100_tx_send_commands() 4341 q->size, &q->nic); in status_queue_allocate() 4361 priv->status_queue.nic); in status_queue_free() 4377 q->drv = pci_alloc_consistent(priv->pci_dev, q->size, &q->nic); in bd_queue_allocate() 4398 pci_free_consistent(priv->pci_dev, q->size, q->drv, q->nic); in bd_queue_free() 4412 (u32) q->nic); in bd_queue_initialize() 4414 write_register(priv->net_dev, base, q->nic); in bd_queue_initialize() 4664 priv->status_queue.nic); in ipw2100_rx_initialize()
|
/drivers/staging/rtl8187se/ |
D | r8180_core.c | 3393 u32 nic; /* nic pointer physical addr */ in rtl8180_tx_isr() local 3408 nic = read_nic_dword(dev, TX_MANAGEPRIORITY_RING_ADDR); in rtl8180_tx_isr() 3415 nic = read_nic_dword(dev, TX_BKPRIORITY_RING_ADDR); in rtl8180_tx_isr() 3422 nic = read_nic_dword(dev, TX_BEPRIORITY_RING_ADDR); in rtl8180_tx_isr() 3429 nic = read_nic_dword(dev, TX_VIPRIORITY_RING_ADDR); in rtl8180_tx_isr() 3436 nic = read_nic_dword(dev, TX_VOPRIORITY_RING_ADDR); in rtl8180_tx_isr() 3443 nic = read_nic_dword(dev, TX_HIGHPRIORITY_RING_ADDR); in rtl8180_tx_isr() 3452 nicv = (u32 *)((nic - nicbegin) + (u8 *)begin); in rtl8180_tx_isr() 3466 offs = (nic - nicbegin); in rtl8180_tx_isr()
|
/drivers/net/ethernet/sgi/ |
D | ioc3-eth.c | 405 u8 nic[14]; in ioc3_get_eaddr_nic() local 428 nic[i] = nic_read_byte(ioc3); in ioc3_get_eaddr_nic() 431 priv_netdev(ip)->dev_addr[i - 2] = nic[i]; in ioc3_get_eaddr_nic()
|
/drivers/staging/rtl8712/ |
D | rtl8712_led.c | 90 struct net_device *nic; in InitLed871x() local 92 nic = padapter->pnetdev; in InitLed871x() 100 _init_timer(&(pLed->BlinkTimer), nic, BlinkTimerCallback, pLed); in InitLed871x()
|
/drivers/scsi/ |
D | iscsi_boot_sysfs.c | 90 iscsi_boot_rd_attr(tgt_nic, nic-assoc, ISCSI_BOOT_TGT_NIC_ASSOC);
|
/drivers/net/wireless/ti/wlcore/ |
D | main.c | 5551 static void wl12xx_derive_mac_addresses(struct wl1271 *wl, u32 oui, u32 nic) in wl12xx_derive_mac_addresses() argument 5556 oui, nic); in wl12xx_derive_mac_addresses() 5558 if (nic + WLCORE_NUM_MAC_ADDRESSES - wl->num_mac_addr > 0xffffff) in wl12xx_derive_mac_addresses() 5565 wl->addresses[i].addr[3] = (u8)(nic >> 16); in wl12xx_derive_mac_addresses() 5566 wl->addresses[i].addr[4] = (u8)(nic >> 8); in wl12xx_derive_mac_addresses() 5567 wl->addresses[i].addr[5] = (u8) nic; in wl12xx_derive_mac_addresses() 5568 nic++; in wl12xx_derive_mac_addresses()
|