ndev 115 drivers/base/isa.c int isa_register_driver(struct isa_driver *isa_driver, unsigned int ndev) ndev 127 drivers/base/isa.c for (id = 0; id < ndev; id++) { ndev 216 drivers/crypto/cavium/nitrox/nitrox_aead.c return nitrox_process_se_request(nctx->ndev, creq, nitrox_aead_callback, ndev 247 drivers/crypto/cavium/nitrox/nitrox_aead.c return nitrox_process_se_request(nctx->ndev, creq, nitrox_aead_callback, ndev 257 drivers/crypto/cavium/nitrox/nitrox_aead.c nctx->ndev = nitrox_get_first_device(); ndev 258 drivers/crypto/cavium/nitrox/nitrox_aead.c if (!nctx->ndev) ndev 262 drivers/crypto/cavium/nitrox/nitrox_aead.c chdr = crypto_alloc_context(nctx->ndev); ndev 264 drivers/crypto/cavium/nitrox/nitrox_aead.c nitrox_put_device(nctx->ndev); ndev 323 drivers/crypto/cavium/nitrox/nitrox_aead.c nitrox_put_device(nctx->ndev); ndev 326 drivers/crypto/cavium/nitrox/nitrox_aead.c nctx->ndev = NULL; ndev 438 drivers/crypto/cavium/nitrox/nitrox_aead.c return nitrox_process_se_request(nctx->ndev, creq, ndev 471 drivers/crypto/cavium/nitrox/nitrox_aead.c return nitrox_process_se_request(nctx->ndev, creq, ndev 14 drivers/crypto/cavium/nitrox/nitrox_common.h void *crypto_alloc_context(struct nitrox_device *ndev); ndev 17 drivers/crypto/cavium/nitrox/nitrox_common.h void nitrox_put_device(struct nitrox_device *ndev); ndev 19 drivers/crypto/cavium/nitrox/nitrox_common.h int nitrox_common_sw_init(struct nitrox_device *ndev); ndev 20 drivers/crypto/cavium/nitrox/nitrox_common.h void nitrox_common_sw_cleanup(struct nitrox_device *ndev); ndev 23 drivers/crypto/cavium/nitrox/nitrox_common.h int nitrox_process_se_request(struct nitrox_device *ndev, ndev 10 drivers/crypto/cavium/nitrox/nitrox_debugfs.c struct nitrox_device *ndev = s->private; ndev 12 drivers/crypto/cavium/nitrox/nitrox_debugfs.c seq_printf(s, "Version: %s\n", ndev->hw.fw_name[0]); ndev 13 drivers/crypto/cavium/nitrox/nitrox_debugfs.c seq_printf(s, "Version: %s\n", ndev->hw.fw_name[1]); ndev 21 drivers/crypto/cavium/nitrox/nitrox_debugfs.c struct nitrox_device *ndev = s->private; ndev 23 drivers/crypto/cavium/nitrox/nitrox_debugfs.c seq_printf(s, "NITROX [%d]\n", ndev->idx); ndev 24 drivers/crypto/cavium/nitrox/nitrox_debugfs.c seq_printf(s, " Part Name: %s\n", ndev->hw.partname); ndev 25 drivers/crypto/cavium/nitrox/nitrox_debugfs.c seq_printf(s, " Frequency: %d MHz\n", ndev->hw.freq); ndev 26 drivers/crypto/cavium/nitrox/nitrox_debugfs.c seq_printf(s, " Device ID: 0x%0x\n", ndev->hw.device_id); ndev 27 drivers/crypto/cavium/nitrox/nitrox_debugfs.c seq_printf(s, " Revision ID: 0x%0x\n", ndev->hw.revision_id); ndev 29 drivers/crypto/cavium/nitrox/nitrox_debugfs.c ndev->hw.ae_cores, ndev->hw.se_cores, ndev->hw.zip_cores); ndev 38 drivers/crypto/cavium/nitrox/nitrox_debugfs.c struct nitrox_device *ndev = s->private; ndev 40 drivers/crypto/cavium/nitrox/nitrox_debugfs.c seq_printf(s, "NITROX [%d] Request Statistics\n", ndev->idx); ndev 42 drivers/crypto/cavium/nitrox/nitrox_debugfs.c (u64)atomic64_read(&ndev->stats.posted)); ndev 44 drivers/crypto/cavium/nitrox/nitrox_debugfs.c (u64)atomic64_read(&ndev->stats.completed)); ndev 46 drivers/crypto/cavium/nitrox/nitrox_debugfs.c (u64)atomic64_read(&ndev->stats.dropped)); ndev 53 drivers/crypto/cavium/nitrox/nitrox_debugfs.c void nitrox_debugfs_exit(struct nitrox_device *ndev) ndev 55 drivers/crypto/cavium/nitrox/nitrox_debugfs.c debugfs_remove_recursive(ndev->debugfs_dir); ndev 56 drivers/crypto/cavium/nitrox/nitrox_debugfs.c ndev->debugfs_dir = NULL; ndev 59 drivers/crypto/cavium/nitrox/nitrox_debugfs.c void nitrox_debugfs_init(struct nitrox_device *ndev) ndev 65 drivers/crypto/cavium/nitrox/nitrox_debugfs.c ndev->debugfs_dir = dir; ndev 66 drivers/crypto/cavium/nitrox/nitrox_debugfs.c debugfs_create_file("firmware", 0400, dir, ndev, &firmware_fops); ndev 67 drivers/crypto/cavium/nitrox/nitrox_debugfs.c debugfs_create_file("device", 0400, dir, ndev, &device_fops); ndev 68 drivers/crypto/cavium/nitrox/nitrox_debugfs.c debugfs_create_file("stats", 0400, dir, ndev, &stats_fops); ndev 8 drivers/crypto/cavium/nitrox/nitrox_debugfs.h void nitrox_debugfs_init(struct nitrox_device *ndev); ndev 9 drivers/crypto/cavium/nitrox/nitrox_debugfs.h void nitrox_debugfs_exit(struct nitrox_device *ndev); ndev 11 drivers/crypto/cavium/nitrox/nitrox_debugfs.h static inline void nitrox_debugfs_init(struct nitrox_device *ndev) ndev 15 drivers/crypto/cavium/nitrox/nitrox_debugfs.h static inline void nitrox_debugfs_exit(struct nitrox_device *ndev) ndev 44 drivers/crypto/cavium/nitrox/nitrox_dev.h struct nitrox_device *ndev; ndev 108 drivers/crypto/cavium/nitrox/nitrox_dev.h struct nitrox_device *ndev; ndev 192 drivers/crypto/cavium/nitrox/nitrox_dev.h #define DEV(ndev) ((struct device *)(&(ndev)->pdev->dev)) ndev 194 drivers/crypto/cavium/nitrox/nitrox_dev.h #define NITROX_CSR_ADDR(ndev, offset) \ ndev 195 drivers/crypto/cavium/nitrox/nitrox_dev.h ((ndev)->bar_addr + (offset)) ndev 260 drivers/crypto/cavium/nitrox/nitrox_dev.h static inline u64 nitrox_read_csr(struct nitrox_device *ndev, u64 offset) ndev 262 drivers/crypto/cavium/nitrox/nitrox_dev.h return readq(ndev->bar_addr + offset); ndev 271 drivers/crypto/cavium/nitrox/nitrox_dev.h static inline void nitrox_write_csr(struct nitrox_device *ndev, u64 offset, ndev 274 drivers/crypto/cavium/nitrox/nitrox_dev.h writeq(value, (ndev->bar_addr + offset)); ndev 277 drivers/crypto/cavium/nitrox/nitrox_dev.h static inline bool nitrox_ready(struct nitrox_device *ndev) ndev 279 drivers/crypto/cavium/nitrox/nitrox_dev.h return atomic_read(&ndev->state) == __NDEV_READY; ndev 14 drivers/crypto/cavium/nitrox/nitrox_hal.c static void emu_enable_cores(struct nitrox_device *ndev) ndev 30 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, EMU_AE_ENABLEX(i), emu_ae.value); ndev 31 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, EMU_SE_ENABLEX(i), emu_se.value); ndev 39 drivers/crypto/cavium/nitrox/nitrox_hal.c void nitrox_config_emu_unit(struct nitrox_device *ndev) ndev 47 drivers/crypto/cavium/nitrox/nitrox_hal.c emu_enable_cores(ndev); ndev 58 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, emu_wd_int.value); ndev 60 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, emu_ge_int.value); ndev 64 drivers/crypto/cavium/nitrox/nitrox_hal.c static void reset_pkt_input_ring(struct nitrox_device *ndev, int ring) ndev 73 drivers/crypto/cavium/nitrox/nitrox_hal.c pkt_in_ctl.value = nitrox_read_csr(ndev, offset); ndev 75 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, pkt_in_ctl.value); ndev 80 drivers/crypto/cavium/nitrox/nitrox_hal.c pkt_in_ctl.value = nitrox_read_csr(ndev, offset); ndev 88 drivers/crypto/cavium/nitrox/nitrox_hal.c pkt_in_cnts.value = nitrox_read_csr(ndev, offset); ndev 89 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, pkt_in_cnts.value); ndev 93 drivers/crypto/cavium/nitrox/nitrox_hal.c void enable_pkt_input_ring(struct nitrox_device *ndev, int ring) ndev 101 drivers/crypto/cavium/nitrox/nitrox_hal.c pkt_in_ctl.value = nitrox_read_csr(ndev, offset); ndev 104 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, pkt_in_ctl.value); ndev 108 drivers/crypto/cavium/nitrox/nitrox_hal.c pkt_in_ctl.value = nitrox_read_csr(ndev, offset); ndev 119 drivers/crypto/cavium/nitrox/nitrox_hal.c void nitrox_config_pkt_input_rings(struct nitrox_device *ndev) ndev 123 drivers/crypto/cavium/nitrox/nitrox_hal.c for (i = 0; i < ndev->nr_queues; i++) { ndev 124 drivers/crypto/cavium/nitrox/nitrox_hal.c struct nitrox_cmdq *cmdq = &ndev->pkt_inq[i]; ndev 129 drivers/crypto/cavium/nitrox/nitrox_hal.c reset_pkt_input_ring(ndev, i); ndev 137 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, cmdq->dma); ndev 142 drivers/crypto/cavium/nitrox/nitrox_hal.c pkt_in_rsize.s.rsize = ndev->qlen; ndev 143 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, pkt_in_rsize.value); ndev 147 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, 0xffffffff); ndev 153 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, pkt_in_dbell.value); ndev 156 drivers/crypto/cavium/nitrox/nitrox_hal.c enable_pkt_input_ring(ndev, i); ndev 160 drivers/crypto/cavium/nitrox/nitrox_hal.c static void reset_pkt_solicit_port(struct nitrox_device *ndev, int port) ndev 169 drivers/crypto/cavium/nitrox/nitrox_hal.c pkt_slc_ctl.value = nitrox_read_csr(ndev, offset); ndev 171 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, pkt_slc_ctl.value); ndev 177 drivers/crypto/cavium/nitrox/nitrox_hal.c pkt_slc_ctl.value = nitrox_read_csr(ndev, offset); ndev 185 drivers/crypto/cavium/nitrox/nitrox_hal.c pkt_slc_cnts.value = nitrox_read_csr(ndev, offset); ndev 186 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, pkt_slc_cnts.value); ndev 190 drivers/crypto/cavium/nitrox/nitrox_hal.c void enable_pkt_solicit_port(struct nitrox_device *ndev, int port) ndev 206 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, pkt_slc_ctl.value); ndev 210 drivers/crypto/cavium/nitrox/nitrox_hal.c pkt_slc_ctl.value = nitrox_read_csr(ndev, offset); ndev 217 drivers/crypto/cavium/nitrox/nitrox_hal.c static void config_pkt_solicit_port(struct nitrox_device *ndev, int port) ndev 222 drivers/crypto/cavium/nitrox/nitrox_hal.c reset_pkt_solicit_port(ndev, port); ndev 229 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, pkt_slc_int.value); ndev 232 drivers/crypto/cavium/nitrox/nitrox_hal.c enable_pkt_solicit_port(ndev, port); ndev 235 drivers/crypto/cavium/nitrox/nitrox_hal.c void nitrox_config_pkt_solicit_ports(struct nitrox_device *ndev) ndev 239 drivers/crypto/cavium/nitrox/nitrox_hal.c for (i = 0; i < ndev->nr_queues; i++) ndev 240 drivers/crypto/cavium/nitrox/nitrox_hal.c config_pkt_solicit_port(ndev, i); ndev 249 drivers/crypto/cavium/nitrox/nitrox_hal.c static void enable_nps_core_interrupts(struct nitrox_device *ndev) ndev 260 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, NPS_CORE_INT_ENA_W1S, core_int.value); ndev 263 drivers/crypto/cavium/nitrox/nitrox_hal.c void nitrox_config_nps_core_unit(struct nitrox_device *ndev) ndev 268 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, NPS_CORE_CONTROL, 1ULL); ndev 274 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, NPS_CORE_GBL_VFCFG, core_gbl_vfcfg.value); ndev 277 drivers/crypto/cavium/nitrox/nitrox_hal.c enable_nps_core_interrupts(ndev); ndev 286 drivers/crypto/cavium/nitrox/nitrox_hal.c static void enable_nps_pkt_interrupts(struct nitrox_device *ndev) ndev 289 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, NPS_PKT_IN_RERR_LO_ENA_W1S, (~0ULL)); ndev 290 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, NPS_PKT_IN_RERR_HI_ENA_W1S, (~0ULL)); ndev 291 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, NPS_PKT_IN_ERR_TYPE_ENA_W1S, (~0ULL)); ndev 293 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, NPS_PKT_SLC_RERR_HI_ENA_W1S, (~0ULL)); ndev 294 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, NPS_PKT_SLC_RERR_LO_ENA_W1S, (~0ULL)); ndev 295 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, NPS_PKT_SLC_ERR_TYPE_ENA_W1S, (~0uLL)); ndev 298 drivers/crypto/cavium/nitrox/nitrox_hal.c void nitrox_config_nps_pkt_unit(struct nitrox_device *ndev) ndev 301 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_config_pkt_input_rings(ndev); ndev 302 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_config_pkt_solicit_ports(ndev); ndev 305 drivers/crypto/cavium/nitrox/nitrox_hal.c enable_nps_pkt_interrupts(ndev); ndev 308 drivers/crypto/cavium/nitrox/nitrox_hal.c static void reset_aqm_ring(struct nitrox_device *ndev, int ring) ndev 320 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, aqmq_en_reg.value); ndev 326 drivers/crypto/cavium/nitrox/nitrox_hal.c activity_stat.value = nitrox_read_csr(ndev, offset); ndev 334 drivers/crypto/cavium/nitrox/nitrox_hal.c cmp_cnt.value = nitrox_read_csr(ndev, offset); ndev 335 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, cmp_cnt.value); ndev 339 drivers/crypto/cavium/nitrox/nitrox_hal.c void enable_aqm_ring(struct nitrox_device *ndev, int ring) ndev 347 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, aqmq_en_reg.value); ndev 351 drivers/crypto/cavium/nitrox/nitrox_hal.c void nitrox_config_aqm_rings(struct nitrox_device *ndev) ndev 355 drivers/crypto/cavium/nitrox/nitrox_hal.c for (ring = 0; ring < ndev->nr_queues; ring++) { ndev 356 drivers/crypto/cavium/nitrox/nitrox_hal.c struct nitrox_cmdq *cmdq = ndev->aqmq[ring]; ndev 363 drivers/crypto/cavium/nitrox/nitrox_hal.c reset_aqm_ring(ndev, ring); ndev 369 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, drbl.value); ndev 375 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, 0ULL); ndev 379 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, cmdq->dma); ndev 384 drivers/crypto/cavium/nitrox/nitrox_hal.c qsize.host_queue_size = ndev->qlen; ndev 385 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, qsize.value); ndev 391 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, cmp_thr.value); ndev 394 drivers/crypto/cavium/nitrox/nitrox_hal.c enable_aqm_ring(ndev, ring); ndev 398 drivers/crypto/cavium/nitrox/nitrox_hal.c static void enable_aqm_interrupts(struct nitrox_device *ndev) ndev 401 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, AQM_DBELL_OVF_LO_ENA_W1S, (~0ULL)); ndev 402 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, AQM_DBELL_OVF_HI_ENA_W1S, (~0ULL)); ndev 403 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, AQM_DMA_RD_ERR_LO_ENA_W1S, (~0ULL)); ndev 404 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, AQM_DMA_RD_ERR_HI_ENA_W1S, (~0ULL)); ndev 405 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, AQM_EXEC_NA_LO_ENA_W1S, (~0ULL)); ndev 406 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, AQM_EXEC_NA_HI_ENA_W1S, (~0ULL)); ndev 407 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, AQM_EXEC_ERR_LO_ENA_W1S, (~0ULL)); ndev 408 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, AQM_EXEC_ERR_HI_ENA_W1S, (~0ULL)); ndev 411 drivers/crypto/cavium/nitrox/nitrox_hal.c void nitrox_config_aqm_unit(struct nitrox_device *ndev) ndev 414 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_config_aqm_rings(ndev); ndev 417 drivers/crypto/cavium/nitrox/nitrox_hal.c enable_aqm_interrupts(ndev); ndev 420 drivers/crypto/cavium/nitrox/nitrox_hal.c void nitrox_config_pom_unit(struct nitrox_device *ndev) ndev 428 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, POM_INT_ENA_W1S, pom_int.value); ndev 431 drivers/crypto/cavium/nitrox/nitrox_hal.c for (i = 0; i < ndev->hw.se_cores; i++) ndev 432 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, POM_PERF_CTL, BIT_ULL(i)); ndev 439 drivers/crypto/cavium/nitrox/nitrox_hal.c void nitrox_config_rand_unit(struct nitrox_device *ndev) ndev 445 drivers/crypto/cavium/nitrox/nitrox_hal.c efl_rnm_ctl.value = nitrox_read_csr(ndev, offset); ndev 448 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, efl_rnm_ctl.value); ndev 451 drivers/crypto/cavium/nitrox/nitrox_hal.c void nitrox_config_efl_unit(struct nitrox_device *ndev) ndev 465 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, efl_core_int.value); ndev 468 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, (~0ULL)); ndev 470 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, (~0ULL)); ndev 474 drivers/crypto/cavium/nitrox/nitrox_hal.c void nitrox_config_bmi_unit(struct nitrox_device *ndev) ndev 482 drivers/crypto/cavium/nitrox/nitrox_hal.c bmi_ctl.value = nitrox_read_csr(ndev, offset); ndev 486 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, bmi_ctl.value); ndev 494 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, bmi_int_ena.value); ndev 497 drivers/crypto/cavium/nitrox/nitrox_hal.c void nitrox_config_bmo_unit(struct nitrox_device *ndev) ndev 504 drivers/crypto/cavium/nitrox/nitrox_hal.c bmo_ctl2.value = nitrox_read_csr(ndev, offset); ndev 506 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, bmo_ctl2.value); ndev 509 drivers/crypto/cavium/nitrox/nitrox_hal.c void invalidate_lbc(struct nitrox_device *ndev) ndev 518 drivers/crypto/cavium/nitrox/nitrox_hal.c lbc_ctl.value = nitrox_read_csr(ndev, offset); ndev 520 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, lbc_ctl.value); ndev 524 drivers/crypto/cavium/nitrox/nitrox_hal.c lbc_stat.value = nitrox_read_csr(ndev, offset); ndev 531 drivers/crypto/cavium/nitrox/nitrox_hal.c void nitrox_config_lbc_unit(struct nitrox_device *ndev) ndev 536 drivers/crypto/cavium/nitrox/nitrox_hal.c invalidate_lbc(ndev); ndev 545 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, lbc_int_ena.value); ndev 548 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, (~0ULL)); ndev 550 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, (~0ULL)); ndev 553 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, (~0ULL)); ndev 555 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, offset, (~0ULL)); ndev 558 drivers/crypto/cavium/nitrox/nitrox_hal.c void config_nps_core_vfcfg_mode(struct nitrox_device *ndev, enum vf_mode mode) ndev 562 drivers/crypto/cavium/nitrox/nitrox_hal.c vfcfg.value = nitrox_read_csr(ndev, NPS_CORE_GBL_VFCFG); ndev 565 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, NPS_CORE_GBL_VFCFG, vfcfg.value); ndev 607 drivers/crypto/cavium/nitrox/nitrox_hal.c void nitrox_get_hwinfo(struct nitrox_device *ndev) ndev 618 drivers/crypto/cavium/nitrox/nitrox_hal.c rst_boot.value = nitrox_read_csr(ndev, offset); ndev 619 drivers/crypto/cavium/nitrox/nitrox_hal.c ndev->hw.freq = (rst_boot.pnr_mul + 3) * PLL_REF_CLK; ndev 623 drivers/crypto/cavium/nitrox/nitrox_hal.c emu_fuse.value = nitrox_read_csr(ndev, offset); ndev 626 drivers/crypto/cavium/nitrox/nitrox_hal.c ndev->hw.ae_cores += AE_CORES_PER_CLUSTER - dead_cores; ndev 628 drivers/crypto/cavium/nitrox/nitrox_hal.c ndev->hw.se_cores += SE_CORES_PER_CLUSTER - dead_cores; ndev 633 drivers/crypto/cavium/nitrox/nitrox_hal.c fus_dat1.value = nitrox_read_csr(ndev, offset); ndev 636 drivers/crypto/cavium/nitrox/nitrox_hal.c ndev->hw.zip_cores = ZIP_MAX_CORES - dead_cores; ndev 643 drivers/crypto/cavium/nitrox/nitrox_hal.c get_core_option(ndev->hw.se_cores, ndev->hw.ae_cores), ndev 644 drivers/crypto/cavium/nitrox/nitrox_hal.c ndev->hw.freq, ndev 645 drivers/crypto/cavium/nitrox/nitrox_hal.c get_feature_option(ndev->hw.zip_cores, ndev->hw.freq), ndev 646 drivers/crypto/cavium/nitrox/nitrox_hal.c ndev->hw.revision_id); ndev 649 drivers/crypto/cavium/nitrox/nitrox_hal.c strncpy(ndev->hw.partname, name, sizeof(ndev->hw.partname)); ndev 652 drivers/crypto/cavium/nitrox/nitrox_hal.c void enable_pf2vf_mbox_interrupts(struct nitrox_device *ndev) ndev 659 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, reg_addr, value); ndev 663 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, reg_addr, value); ndev 666 drivers/crypto/cavium/nitrox/nitrox_hal.c void disable_pf2vf_mbox_interrupts(struct nitrox_device *ndev) ndev 673 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, reg_addr, value); ndev 677 drivers/crypto/cavium/nitrox/nitrox_hal.c nitrox_write_csr(ndev, reg_addr, value); ndev 7 drivers/crypto/cavium/nitrox/nitrox_hal.h void nitrox_config_aqm_rings(struct nitrox_device *ndev); ndev 8 drivers/crypto/cavium/nitrox/nitrox_hal.h void nitrox_config_aqm_unit(struct nitrox_device *ndev); ndev 9 drivers/crypto/cavium/nitrox/nitrox_hal.h void nitrox_config_emu_unit(struct nitrox_device *ndev); ndev 10 drivers/crypto/cavium/nitrox/nitrox_hal.h void nitrox_config_pkt_input_rings(struct nitrox_device *ndev); ndev 11 drivers/crypto/cavium/nitrox/nitrox_hal.h void nitrox_config_pkt_solicit_ports(struct nitrox_device *ndev); ndev 12 drivers/crypto/cavium/nitrox/nitrox_hal.h void nitrox_config_nps_core_unit(struct nitrox_device *ndev); ndev 13 drivers/crypto/cavium/nitrox/nitrox_hal.h void nitrox_config_nps_pkt_unit(struct nitrox_device *ndev); ndev 14 drivers/crypto/cavium/nitrox/nitrox_hal.h void nitrox_config_pom_unit(struct nitrox_device *ndev); ndev 15 drivers/crypto/cavium/nitrox/nitrox_hal.h void nitrox_config_rand_unit(struct nitrox_device *ndev); ndev 16 drivers/crypto/cavium/nitrox/nitrox_hal.h void nitrox_config_efl_unit(struct nitrox_device *ndev); ndev 17 drivers/crypto/cavium/nitrox/nitrox_hal.h void nitrox_config_bmi_unit(struct nitrox_device *ndev); ndev 18 drivers/crypto/cavium/nitrox/nitrox_hal.h void nitrox_config_bmo_unit(struct nitrox_device *ndev); ndev 19 drivers/crypto/cavium/nitrox/nitrox_hal.h void nitrox_config_lbc_unit(struct nitrox_device *ndev); ndev 20 drivers/crypto/cavium/nitrox/nitrox_hal.h void invalidate_lbc(struct nitrox_device *ndev); ndev 21 drivers/crypto/cavium/nitrox/nitrox_hal.h void enable_aqm_ring(struct nitrox_device *ndev, int qno); ndev 22 drivers/crypto/cavium/nitrox/nitrox_hal.h void enable_pkt_input_ring(struct nitrox_device *ndev, int ring); ndev 23 drivers/crypto/cavium/nitrox/nitrox_hal.h void enable_pkt_solicit_port(struct nitrox_device *ndev, int port); ndev 24 drivers/crypto/cavium/nitrox/nitrox_hal.h void config_nps_core_vfcfg_mode(struct nitrox_device *ndev, enum vf_mode mode); ndev 25 drivers/crypto/cavium/nitrox/nitrox_hal.h void nitrox_get_hwinfo(struct nitrox_device *ndev); ndev 26 drivers/crypto/cavium/nitrox/nitrox_hal.h void enable_pf2vf_mbox_interrupts(struct nitrox_device *ndev); ndev 27 drivers/crypto/cavium/nitrox/nitrox_hal.h void disable_pf2vf_mbox_interrupts(struct nitrox_device *ndev); ndev 41 drivers/crypto/cavium/nitrox/nitrox_isr.c static void clear_nps_core_err_intr(struct nitrox_device *ndev) ndev 46 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, NPS_CORE_INT); ndev 47 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, NPS_CORE_INT, value); ndev 49 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err_ratelimited(DEV(ndev), "NSP_CORE_INT 0x%016llx\n", value); ndev 52 drivers/crypto/cavium/nitrox/nitrox_isr.c static void clear_nps_pkt_err_intr(struct nitrox_device *ndev) ndev 58 drivers/crypto/cavium/nitrox/nitrox_isr.c pkt_int.value = nitrox_read_csr(ndev, NPS_PKT_INT); ndev 59 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err_ratelimited(DEV(ndev), "NPS_PKT_INT 0x%016llx\n", ndev 64 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, offset); ndev 65 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, offset, value); ndev 66 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err_ratelimited(DEV(ndev), ndev 70 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, offset); ndev 71 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, offset, value); ndev 74 drivers/crypto/cavium/nitrox/nitrox_isr.c enable_pkt_solicit_port(ndev, i); ndev 76 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err_ratelimited(DEV(ndev), ndev 80 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, offset); ndev 81 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, offset, value); ndev 82 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err_ratelimited(DEV(ndev), ndev 88 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, offset); ndev 89 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, offset, value); ndev 90 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err_ratelimited(DEV(ndev), ndev 93 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, offset); ndev 94 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, offset, value); ndev 97 drivers/crypto/cavium/nitrox/nitrox_isr.c enable_pkt_input_ring(ndev, i); ndev 99 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err_ratelimited(DEV(ndev), ndev 103 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, offset); ndev 104 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, offset, value); ndev 105 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err_ratelimited(DEV(ndev), ndev 110 drivers/crypto/cavium/nitrox/nitrox_isr.c static void clear_pom_err_intr(struct nitrox_device *ndev) ndev 114 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, POM_INT); ndev 115 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, POM_INT, value); ndev 116 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err_ratelimited(DEV(ndev), "POM_INT 0x%016llx\n", value); ndev 119 drivers/crypto/cavium/nitrox/nitrox_isr.c static void clear_pem_err_intr(struct nitrox_device *ndev) ndev 123 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, PEM0_INT); ndev 124 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, PEM0_INT, value); ndev 125 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err_ratelimited(DEV(ndev), "PEM(0)_INT 0x%016llx\n", value); ndev 128 drivers/crypto/cavium/nitrox/nitrox_isr.c static void clear_lbc_err_intr(struct nitrox_device *ndev) ndev 134 drivers/crypto/cavium/nitrox/nitrox_isr.c lbc_int.value = nitrox_read_csr(ndev, LBC_INT); ndev 135 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err_ratelimited(DEV(ndev), "LBC_INT 0x%016llx\n", lbc_int.value); ndev 140 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, offset); ndev 141 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, offset, value); ndev 143 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, offset); ndev 144 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, offset, value); ndev 149 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err_ratelimited(DEV(ndev), "CAM_SOFT_ERR, invalidating LBC\n"); ndev 150 drivers/crypto/cavium/nitrox/nitrox_isr.c invalidate_lbc(ndev); ndev 155 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, offset); ndev 156 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, offset, value); ndev 158 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, offset); ndev 159 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, offset, value); ndev 164 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, offset); ndev 165 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, offset, value); ndev 167 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, offset); ndev 168 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, offset, value); ndev 170 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, LBC_INT, lbc_int.value); ndev 173 drivers/crypto/cavium/nitrox/nitrox_isr.c static void clear_efl_err_intr(struct nitrox_device *ndev) ndev 182 drivers/crypto/cavium/nitrox/nitrox_isr.c core_int.value = nitrox_read_csr(ndev, offset); ndev 183 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, offset, core_int.value); ndev 184 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err_ratelimited(DEV(ndev), "ELF_CORE(%d)_INT 0x%016llx\n", ndev 188 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, offset); ndev 189 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, offset, value); ndev 194 drivers/crypto/cavium/nitrox/nitrox_isr.c static void clear_bmi_err_intr(struct nitrox_device *ndev) ndev 198 drivers/crypto/cavium/nitrox/nitrox_isr.c value = nitrox_read_csr(ndev, BMI_INT); ndev 199 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, BMI_INT, value); ndev 200 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err_ratelimited(DEV(ndev), "BMI_INT 0x%016llx\n", value); ndev 206 drivers/crypto/cavium/nitrox/nitrox_isr.c struct nitrox_device *ndev = qvec->ndev; ndev 209 drivers/crypto/cavium/nitrox/nitrox_isr.c if (ndev->mode == __NDEV_MODE_PF) { ndev 225 drivers/crypto/cavium/nitrox/nitrox_isr.c struct nitrox_device *ndev = qvec->ndev; ndev 228 drivers/crypto/cavium/nitrox/nitrox_isr.c core_int.value = nitrox_read_csr(ndev, NPS_CORE_INT_ACTIVE); ndev 231 drivers/crypto/cavium/nitrox/nitrox_isr.c clear_nps_core_err_intr(ndev); ndev 234 drivers/crypto/cavium/nitrox/nitrox_isr.c clear_nps_pkt_err_intr(ndev); ndev 237 drivers/crypto/cavium/nitrox/nitrox_isr.c clear_pom_err_intr(ndev); ndev 240 drivers/crypto/cavium/nitrox/nitrox_isr.c clear_pem_err_intr(ndev); ndev 243 drivers/crypto/cavium/nitrox/nitrox_isr.c clear_lbc_err_intr(ndev); ndev 246 drivers/crypto/cavium/nitrox/nitrox_isr.c clear_efl_err_intr(ndev); ndev 249 drivers/crypto/cavium/nitrox/nitrox_isr.c clear_bmi_err_intr(ndev); ndev 253 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_pf2vf_mbox_handler(ndev); ndev 257 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_write_csr(ndev, NPS_CORE_INT_ACTIVE, core_int.value); ndev 262 drivers/crypto/cavium/nitrox/nitrox_isr.c void nitrox_unregister_interrupts(struct nitrox_device *ndev) ndev 264 drivers/crypto/cavium/nitrox/nitrox_isr.c struct pci_dev *pdev = ndev->pdev; ndev 267 drivers/crypto/cavium/nitrox/nitrox_isr.c for (i = 0; i < ndev->num_vecs; i++) { ndev 271 drivers/crypto/cavium/nitrox/nitrox_isr.c qvec = ndev->qvec + i; ndev 284 drivers/crypto/cavium/nitrox/nitrox_isr.c kfree(ndev->qvec); ndev 285 drivers/crypto/cavium/nitrox/nitrox_isr.c ndev->qvec = NULL; ndev 289 drivers/crypto/cavium/nitrox/nitrox_isr.c int nitrox_register_interrupts(struct nitrox_device *ndev) ndev 291 drivers/crypto/cavium/nitrox/nitrox_isr.c struct pci_dev *pdev = ndev->pdev; ndev 313 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err(DEV(ndev), "msix vectors %d alloc failed\n", nr_vecs); ndev 316 drivers/crypto/cavium/nitrox/nitrox_isr.c ndev->num_vecs = nr_vecs; ndev 318 drivers/crypto/cavium/nitrox/nitrox_isr.c ndev->qvec = kcalloc(nr_vecs, sizeof(*qvec), GFP_KERNEL); ndev 319 drivers/crypto/cavium/nitrox/nitrox_isr.c if (!ndev->qvec) { ndev 326 drivers/crypto/cavium/nitrox/nitrox_isr.c qvec = &ndev->qvec[i]; ndev 329 drivers/crypto/cavium/nitrox/nitrox_isr.c if (qvec->ring >= ndev->nr_queues) ndev 332 drivers/crypto/cavium/nitrox/nitrox_isr.c qvec->cmdq = &ndev->pkt_inq[qvec->ring]; ndev 338 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err(DEV(ndev), "irq failed for pkt ring/port%d\n", ndev 352 drivers/crypto/cavium/nitrox/nitrox_isr.c qvec = &ndev->qvec[i]; ndev 353 drivers/crypto/cavium/nitrox/nitrox_isr.c qvec->ndev = ndev; ndev 360 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err(DEV(ndev), "irq failed for nitrox-core-int%d\n", i); ndev 373 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_unregister_interrupts(ndev); ndev 377 drivers/crypto/cavium/nitrox/nitrox_isr.c void nitrox_sriov_unregister_interrupts(struct nitrox_device *ndev) ndev 379 drivers/crypto/cavium/nitrox/nitrox_isr.c struct pci_dev *pdev = ndev->pdev; ndev 382 drivers/crypto/cavium/nitrox/nitrox_isr.c for (i = 0; i < ndev->num_vecs; i++) { ndev 386 drivers/crypto/cavium/nitrox/nitrox_isr.c qvec = ndev->qvec + i; ndev 390 drivers/crypto/cavium/nitrox/nitrox_isr.c vec = ndev->iov.msix.vector; ndev 398 drivers/crypto/cavium/nitrox/nitrox_isr.c kfree(ndev->qvec); ndev 399 drivers/crypto/cavium/nitrox/nitrox_isr.c ndev->qvec = NULL; ndev 403 drivers/crypto/cavium/nitrox/nitrox_isr.c int nitrox_sriov_register_interupts(struct nitrox_device *ndev) ndev 405 drivers/crypto/cavium/nitrox/nitrox_isr.c struct pci_dev *pdev = ndev->pdev; ndev 414 drivers/crypto/cavium/nitrox/nitrox_isr.c ndev->iov.msix.entry = NON_RING_MSIX_BASE; ndev 415 drivers/crypto/cavium/nitrox/nitrox_isr.c ret = pci_enable_msix_exact(pdev, &ndev->iov.msix, NR_NON_RING_VECTORS); ndev 417 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err(DEV(ndev), "failed to allocate nps-core-int%d\n", ndev 427 drivers/crypto/cavium/nitrox/nitrox_isr.c qvec->ndev = ndev; ndev 429 drivers/crypto/cavium/nitrox/nitrox_isr.c ndev->qvec = qvec; ndev 430 drivers/crypto/cavium/nitrox/nitrox_isr.c ndev->num_vecs = NR_NON_RING_VECTORS; ndev 434 drivers/crypto/cavium/nitrox/nitrox_isr.c vec = ndev->iov.msix.vector; ndev 437 drivers/crypto/cavium/nitrox/nitrox_isr.c dev_err(DEV(ndev), "irq failed for nitrox-core-int%d\n", ndev 451 drivers/crypto/cavium/nitrox/nitrox_isr.c nitrox_sriov_unregister_interrupts(ndev); ndev 7 drivers/crypto/cavium/nitrox/nitrox_isr.h int nitrox_register_interrupts(struct nitrox_device *ndev); ndev 8 drivers/crypto/cavium/nitrox/nitrox_isr.h void nitrox_unregister_interrupts(struct nitrox_device *ndev); ndev 9 drivers/crypto/cavium/nitrox/nitrox_isr.h int nitrox_sriov_register_interupts(struct nitrox_device *ndev); ndev 10 drivers/crypto/cavium/nitrox/nitrox_isr.h void nitrox_sriov_unregister_interrupts(struct nitrox_device *ndev); ndev 27 drivers/crypto/cavium/nitrox/nitrox_lib.c struct nitrox_device *ndev = cmdq->ndev; ndev 29 drivers/crypto/cavium/nitrox/nitrox_lib.c cmdq->qsize = (ndev->qlen * cmdq->instr_size) + align_bytes; ndev 30 drivers/crypto/cavium/nitrox/nitrox_lib.c cmdq->unalign_base = dma_alloc_coherent(DEV(ndev), cmdq->qsize, ndev 62 drivers/crypto/cavium/nitrox/nitrox_lib.c struct nitrox_device *ndev; ndev 70 drivers/crypto/cavium/nitrox/nitrox_lib.c ndev = cmdq->ndev; ndev 73 drivers/crypto/cavium/nitrox/nitrox_lib.c dma_free_coherent(DEV(ndev), cmdq->qsize, ndev 87 drivers/crypto/cavium/nitrox/nitrox_lib.c static void nitrox_free_aqm_queues(struct nitrox_device *ndev) ndev 91 drivers/crypto/cavium/nitrox/nitrox_lib.c for (i = 0; i < ndev->nr_queues; i++) { ndev 92 drivers/crypto/cavium/nitrox/nitrox_lib.c nitrox_cmdq_cleanup(ndev->aqmq[i]); ndev 93 drivers/crypto/cavium/nitrox/nitrox_lib.c kzfree(ndev->aqmq[i]); ndev 94 drivers/crypto/cavium/nitrox/nitrox_lib.c ndev->aqmq[i] = NULL; ndev 98 drivers/crypto/cavium/nitrox/nitrox_lib.c static int nitrox_alloc_aqm_queues(struct nitrox_device *ndev) ndev 102 drivers/crypto/cavium/nitrox/nitrox_lib.c for (i = 0; i < ndev->nr_queues; i++) { ndev 106 drivers/crypto/cavium/nitrox/nitrox_lib.c cmdq = kzalloc_node(sizeof(*cmdq), GFP_KERNEL, ndev->node); ndev 112 drivers/crypto/cavium/nitrox/nitrox_lib.c cmdq->ndev = ndev; ndev 118 drivers/crypto/cavium/nitrox/nitrox_lib.c cmdq->dbell_csr_addr = NITROX_CSR_ADDR(ndev, offset); ndev 121 drivers/crypto/cavium/nitrox/nitrox_lib.c cmdq->compl_cnt_csr_addr = NITROX_CSR_ADDR(ndev, offset); ndev 128 drivers/crypto/cavium/nitrox/nitrox_lib.c ndev->aqmq[i] = cmdq; ndev 134 drivers/crypto/cavium/nitrox/nitrox_lib.c nitrox_free_aqm_queues(ndev); ndev 138 drivers/crypto/cavium/nitrox/nitrox_lib.c static void nitrox_free_pktin_queues(struct nitrox_device *ndev) ndev 142 drivers/crypto/cavium/nitrox/nitrox_lib.c for (i = 0; i < ndev->nr_queues; i++) { ndev 143 drivers/crypto/cavium/nitrox/nitrox_lib.c struct nitrox_cmdq *cmdq = &ndev->pkt_inq[i]; ndev 147 drivers/crypto/cavium/nitrox/nitrox_lib.c kfree(ndev->pkt_inq); ndev 148 drivers/crypto/cavium/nitrox/nitrox_lib.c ndev->pkt_inq = NULL; ndev 151 drivers/crypto/cavium/nitrox/nitrox_lib.c static int nitrox_alloc_pktin_queues(struct nitrox_device *ndev) ndev 155 drivers/crypto/cavium/nitrox/nitrox_lib.c ndev->pkt_inq = kcalloc_node(ndev->nr_queues, ndev 157 drivers/crypto/cavium/nitrox/nitrox_lib.c GFP_KERNEL, ndev->node); ndev 158 drivers/crypto/cavium/nitrox/nitrox_lib.c if (!ndev->pkt_inq) ndev 161 drivers/crypto/cavium/nitrox/nitrox_lib.c for (i = 0; i < ndev->nr_queues; i++) { ndev 165 drivers/crypto/cavium/nitrox/nitrox_lib.c cmdq = &ndev->pkt_inq[i]; ndev 166 drivers/crypto/cavium/nitrox/nitrox_lib.c cmdq->ndev = ndev; ndev 172 drivers/crypto/cavium/nitrox/nitrox_lib.c cmdq->dbell_csr_addr = NITROX_CSR_ADDR(ndev, offset); ndev 175 drivers/crypto/cavium/nitrox/nitrox_lib.c cmdq->compl_cnt_csr_addr = NITROX_CSR_ADDR(ndev, offset); ndev 184 drivers/crypto/cavium/nitrox/nitrox_lib.c nitrox_free_pktin_queues(ndev); ndev 188 drivers/crypto/cavium/nitrox/nitrox_lib.c static int create_crypto_dma_pool(struct nitrox_device *ndev) ndev 194 drivers/crypto/cavium/nitrox/nitrox_lib.c ndev->ctx_pool = dma_pool_create("nitrox-context", ndev 195 drivers/crypto/cavium/nitrox/nitrox_lib.c DEV(ndev), size, 16, 0); ndev 196 drivers/crypto/cavium/nitrox/nitrox_lib.c if (!ndev->ctx_pool) ndev 202 drivers/crypto/cavium/nitrox/nitrox_lib.c static void destroy_crypto_dma_pool(struct nitrox_device *ndev) ndev 204 drivers/crypto/cavium/nitrox/nitrox_lib.c if (!ndev->ctx_pool) ndev 207 drivers/crypto/cavium/nitrox/nitrox_lib.c dma_pool_destroy(ndev->ctx_pool); ndev 208 drivers/crypto/cavium/nitrox/nitrox_lib.c ndev->ctx_pool = NULL; ndev 215 drivers/crypto/cavium/nitrox/nitrox_lib.c void *crypto_alloc_context(struct nitrox_device *ndev) ndev 226 drivers/crypto/cavium/nitrox/nitrox_lib.c vaddr = dma_pool_zalloc(ndev->ctx_pool, GFP_KERNEL, &dma); ndev 234 drivers/crypto/cavium/nitrox/nitrox_lib.c ctx->pool = ndev->ctx_pool; ndev 238 drivers/crypto/cavium/nitrox/nitrox_lib.c chdr->pool = ndev->ctx_pool; ndev 269 drivers/crypto/cavium/nitrox/nitrox_lib.c int nitrox_common_sw_init(struct nitrox_device *ndev) ndev 274 drivers/crypto/cavium/nitrox/nitrox_lib.c err = create_crypto_dma_pool(ndev); ndev 278 drivers/crypto/cavium/nitrox/nitrox_lib.c err = nitrox_alloc_pktin_queues(ndev); ndev 280 drivers/crypto/cavium/nitrox/nitrox_lib.c destroy_crypto_dma_pool(ndev); ndev 282 drivers/crypto/cavium/nitrox/nitrox_lib.c err = nitrox_alloc_aqm_queues(ndev); ndev 284 drivers/crypto/cavium/nitrox/nitrox_lib.c nitrox_free_pktin_queues(ndev); ndev 285 drivers/crypto/cavium/nitrox/nitrox_lib.c destroy_crypto_dma_pool(ndev); ndev 295 drivers/crypto/cavium/nitrox/nitrox_lib.c void nitrox_common_sw_cleanup(struct nitrox_device *ndev) ndev 297 drivers/crypto/cavium/nitrox/nitrox_lib.c nitrox_free_aqm_queues(ndev); ndev 298 drivers/crypto/cavium/nitrox/nitrox_lib.c nitrox_free_pktin_queues(ndev); ndev 299 drivers/crypto/cavium/nitrox/nitrox_lib.c destroy_crypto_dma_pool(ndev); ndev 80 drivers/crypto/cavium/nitrox/nitrox_main.c static void write_to_ucd_unit(struct nitrox_device *ndev, u32 ucode_size, ndev 104 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_write_csr(ndev, offset, block_num); ndev 111 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_write_csr(ndev, offset, data); ndev 119 drivers/crypto/cavium/nitrox/nitrox_main.c static int nitrox_load_fw(struct nitrox_device *ndev) ndev 133 drivers/crypto/cavium/nitrox/nitrox_main.c dev_info(DEV(ndev), "Loading firmware \"%s\"\n", fw_name); ndev 135 drivers/crypto/cavium/nitrox/nitrox_main.c ret = request_firmware(&fw, fw_name, DEV(ndev)); ndev 137 drivers/crypto/cavium/nitrox/nitrox_main.c dev_err(DEV(ndev), "failed to get firmware %s\n", fw_name); ndev 145 drivers/crypto/cavium/nitrox/nitrox_main.c dev_err(DEV(ndev), "Invalid ucode size: %u for firmware %s\n", ndev 153 drivers/crypto/cavium/nitrox/nitrox_main.c memcpy(&ndev->hw.fw_name[0][0], ucode->version, (VERSION_LEN - 2)); ndev 154 drivers/crypto/cavium/nitrox/nitrox_main.c ndev->hw.fw_name[0][VERSION_LEN - 1] = '\0'; ndev 157 drivers/crypto/cavium/nitrox/nitrox_main.c write_to_ucd_unit(ndev, ucode_size, ucode_data, 0); ndev 163 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_write_csr(ndev, offset, (~0ULL)); ndev 177 drivers/crypto/cavium/nitrox/nitrox_main.c for (i = 0; i < ndev->hw.se_cores; i++) { ndev 179 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_write_csr(ndev, offset, core_2_eid_val.value); ndev 184 drivers/crypto/cavium/nitrox/nitrox_main.c dev_info(DEV(ndev), "Loading firmware \"%s\"\n", fw_name); ndev 186 drivers/crypto/cavium/nitrox/nitrox_main.c ret = request_firmware(&fw, fw_name, DEV(ndev)); ndev 188 drivers/crypto/cavium/nitrox/nitrox_main.c dev_err(DEV(ndev), "failed to get firmware %s\n", fw_name); ndev 196 drivers/crypto/cavium/nitrox/nitrox_main.c dev_err(DEV(ndev), "Invalid ucode size: %u for firmware %s\n", ndev 204 drivers/crypto/cavium/nitrox/nitrox_main.c memcpy(&ndev->hw.fw_name[1][0], ucode->version, (VERSION_LEN - 2)); ndev 205 drivers/crypto/cavium/nitrox/nitrox_main.c ndev->hw.fw_name[1][VERSION_LEN - 1] = '\0'; ndev 208 drivers/crypto/cavium/nitrox/nitrox_main.c write_to_ucd_unit(ndev, ucode_size, ucode_data, 2); ndev 215 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_write_csr(ndev, offset, aqm_grp_execmask_lo.value); ndev 218 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_write_csr(ndev, offset, aqm_grp_execmask_hi.value); ndev 232 drivers/crypto/cavium/nitrox/nitrox_main.c for (i = 0; i < ndev->hw.ae_cores; i++) { ndev 234 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_write_csr(ndev, offset, core_2_eid_val.value); ndev 244 drivers/crypto/cavium/nitrox/nitrox_main.c static int nitrox_add_to_devlist(struct nitrox_device *ndev) ndev 249 drivers/crypto/cavium/nitrox/nitrox_main.c INIT_LIST_HEAD(&ndev->list); ndev 250 drivers/crypto/cavium/nitrox/nitrox_main.c refcount_set(&ndev->refcnt, 1); ndev 254 drivers/crypto/cavium/nitrox/nitrox_main.c if (dev == ndev) { ndev 259 drivers/crypto/cavium/nitrox/nitrox_main.c ndev->idx = num_devices++; ndev 260 drivers/crypto/cavium/nitrox/nitrox_main.c list_add_tail(&ndev->list, &ndevlist); ndev 271 drivers/crypto/cavium/nitrox/nitrox_main.c static void nitrox_remove_from_devlist(struct nitrox_device *ndev) ndev 274 drivers/crypto/cavium/nitrox/nitrox_main.c list_del(&ndev->list); ndev 281 drivers/crypto/cavium/nitrox/nitrox_main.c struct nitrox_device *ndev; ndev 284 drivers/crypto/cavium/nitrox/nitrox_main.c list_for_each_entry(ndev, &ndevlist, list) { ndev 285 drivers/crypto/cavium/nitrox/nitrox_main.c if (nitrox_ready(ndev)) ndev 289 drivers/crypto/cavium/nitrox/nitrox_main.c if (&ndev->list == &ndevlist) ndev 292 drivers/crypto/cavium/nitrox/nitrox_main.c refcount_inc(&ndev->refcnt); ndev 295 drivers/crypto/cavium/nitrox/nitrox_main.c return ndev; ndev 298 drivers/crypto/cavium/nitrox/nitrox_main.c void nitrox_put_device(struct nitrox_device *ndev) ndev 300 drivers/crypto/cavium/nitrox/nitrox_main.c if (!ndev) ndev 303 drivers/crypto/cavium/nitrox/nitrox_main.c refcount_dec(&ndev->refcnt); ndev 327 drivers/crypto/cavium/nitrox/nitrox_main.c static int nitrox_pf_sw_init(struct nitrox_device *ndev) ndev 331 drivers/crypto/cavium/nitrox/nitrox_main.c err = nitrox_common_sw_init(ndev); ndev 335 drivers/crypto/cavium/nitrox/nitrox_main.c err = nitrox_register_interrupts(ndev); ndev 337 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_common_sw_cleanup(ndev); ndev 342 drivers/crypto/cavium/nitrox/nitrox_main.c static void nitrox_pf_sw_cleanup(struct nitrox_device *ndev) ndev 344 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_unregister_interrupts(ndev); ndev 345 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_common_sw_cleanup(ndev); ndev 352 drivers/crypto/cavium/nitrox/nitrox_main.c static int nitrox_bist_check(struct nitrox_device *ndev) ndev 358 drivers/crypto/cavium/nitrox/nitrox_main.c value += nitrox_read_csr(ndev, EMU_BIST_STATUSX(i)); ndev 359 drivers/crypto/cavium/nitrox/nitrox_main.c value += nitrox_read_csr(ndev, EFL_CORE_BIST_REGX(i)); ndev 361 drivers/crypto/cavium/nitrox/nitrox_main.c value += nitrox_read_csr(ndev, UCD_BIST_STATUS); ndev 362 drivers/crypto/cavium/nitrox/nitrox_main.c value += nitrox_read_csr(ndev, NPS_CORE_BIST_REG); ndev 363 drivers/crypto/cavium/nitrox/nitrox_main.c value += nitrox_read_csr(ndev, NPS_CORE_NPC_BIST_REG); ndev 364 drivers/crypto/cavium/nitrox/nitrox_main.c value += nitrox_read_csr(ndev, NPS_PKT_SLC_BIST_REG); ndev 365 drivers/crypto/cavium/nitrox/nitrox_main.c value += nitrox_read_csr(ndev, NPS_PKT_IN_BIST_REG); ndev 366 drivers/crypto/cavium/nitrox/nitrox_main.c value += nitrox_read_csr(ndev, POM_BIST_REG); ndev 367 drivers/crypto/cavium/nitrox/nitrox_main.c value += nitrox_read_csr(ndev, BMI_BIST_REG); ndev 368 drivers/crypto/cavium/nitrox/nitrox_main.c value += nitrox_read_csr(ndev, EFL_TOP_BIST_STAT); ndev 369 drivers/crypto/cavium/nitrox/nitrox_main.c value += nitrox_read_csr(ndev, BMO_BIST_REG); ndev 370 drivers/crypto/cavium/nitrox/nitrox_main.c value += nitrox_read_csr(ndev, LBC_BIST_STATUS); ndev 371 drivers/crypto/cavium/nitrox/nitrox_main.c value += nitrox_read_csr(ndev, PEM_BIST_STATUSX(0)); ndev 377 drivers/crypto/cavium/nitrox/nitrox_main.c static int nitrox_pf_hw_init(struct nitrox_device *ndev) ndev 381 drivers/crypto/cavium/nitrox/nitrox_main.c err = nitrox_bist_check(ndev); ndev 383 drivers/crypto/cavium/nitrox/nitrox_main.c dev_err(&ndev->pdev->dev, "BIST check failed\n"); ndev 387 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_get_hwinfo(ndev); ndev 389 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_config_nps_core_unit(ndev); ndev 390 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_config_aqm_unit(ndev); ndev 391 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_config_nps_pkt_unit(ndev); ndev 392 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_config_pom_unit(ndev); ndev 393 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_config_efl_unit(ndev); ndev 395 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_config_bmi_unit(ndev); ndev 396 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_config_bmo_unit(ndev); ndev 398 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_config_lbc_unit(ndev); ndev 399 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_config_rand_unit(ndev); ndev 402 drivers/crypto/cavium/nitrox/nitrox_main.c err = nitrox_load_fw(ndev); ndev 406 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_config_emu_unit(ndev); ndev 422 drivers/crypto/cavium/nitrox/nitrox_main.c struct nitrox_device *ndev; ndev 458 drivers/crypto/cavium/nitrox/nitrox_main.c ndev = kzalloc(sizeof(*ndev), GFP_KERNEL); ndev 459 drivers/crypto/cavium/nitrox/nitrox_main.c if (!ndev) { ndev 464 drivers/crypto/cavium/nitrox/nitrox_main.c pci_set_drvdata(pdev, ndev); ndev 465 drivers/crypto/cavium/nitrox/nitrox_main.c ndev->pdev = pdev; ndev 468 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_add_to_devlist(ndev); ndev 470 drivers/crypto/cavium/nitrox/nitrox_main.c ndev->hw.vendor_id = pdev->vendor; ndev 471 drivers/crypto/cavium/nitrox/nitrox_main.c ndev->hw.device_id = pdev->device; ndev 472 drivers/crypto/cavium/nitrox/nitrox_main.c ndev->hw.revision_id = pdev->revision; ndev 474 drivers/crypto/cavium/nitrox/nitrox_main.c ndev->timeout = msecs_to_jiffies(CMD_TIMEOUT); ndev 475 drivers/crypto/cavium/nitrox/nitrox_main.c ndev->node = dev_to_node(&pdev->dev); ndev 476 drivers/crypto/cavium/nitrox/nitrox_main.c if (ndev->node == NUMA_NO_NODE) ndev 477 drivers/crypto/cavium/nitrox/nitrox_main.c ndev->node = 0; ndev 479 drivers/crypto/cavium/nitrox/nitrox_main.c ndev->bar_addr = ioremap(pci_resource_start(pdev, 0), ndev 481 drivers/crypto/cavium/nitrox/nitrox_main.c if (!ndev->bar_addr) { ndev 486 drivers/crypto/cavium/nitrox/nitrox_main.c ndev->nr_queues = min_t(u32, MAX_PF_QUEUES, num_online_cpus()); ndev 487 drivers/crypto/cavium/nitrox/nitrox_main.c ndev->qlen = qlen; ndev 489 drivers/crypto/cavium/nitrox/nitrox_main.c err = nitrox_pf_sw_init(ndev); ndev 493 drivers/crypto/cavium/nitrox/nitrox_main.c err = nitrox_pf_hw_init(ndev); ndev 497 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_debugfs_init(ndev); ndev 500 drivers/crypto/cavium/nitrox/nitrox_main.c atomic64_set(&ndev->stats.posted, 0); ndev 501 drivers/crypto/cavium/nitrox/nitrox_main.c atomic64_set(&ndev->stats.completed, 0); ndev 502 drivers/crypto/cavium/nitrox/nitrox_main.c atomic64_set(&ndev->stats.dropped, 0); ndev 504 drivers/crypto/cavium/nitrox/nitrox_main.c atomic_set(&ndev->state, __NDEV_READY); ndev 515 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_debugfs_exit(ndev); ndev 516 drivers/crypto/cavium/nitrox/nitrox_main.c atomic_set(&ndev->state, __NDEV_NOT_READY); ndev 520 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_pf_sw_cleanup(ndev); ndev 522 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_remove_from_devlist(ndev); ndev 523 drivers/crypto/cavium/nitrox/nitrox_main.c kfree(ndev); ndev 537 drivers/crypto/cavium/nitrox/nitrox_main.c struct nitrox_device *ndev = pci_get_drvdata(pdev); ndev 539 drivers/crypto/cavium/nitrox/nitrox_main.c if (!ndev) ndev 542 drivers/crypto/cavium/nitrox/nitrox_main.c if (!refcount_dec_and_test(&ndev->refcnt)) { ndev 543 drivers/crypto/cavium/nitrox/nitrox_main.c dev_err(DEV(ndev), "Device refcnt not zero (%d)\n", ndev 544 drivers/crypto/cavium/nitrox/nitrox_main.c refcount_read(&ndev->refcnt)); ndev 548 drivers/crypto/cavium/nitrox/nitrox_main.c dev_info(DEV(ndev), "Removing Device %x:%x\n", ndev 549 drivers/crypto/cavium/nitrox/nitrox_main.c ndev->hw.vendor_id, ndev->hw.device_id); ndev 551 drivers/crypto/cavium/nitrox/nitrox_main.c atomic_set(&ndev->state, __NDEV_NOT_READY); ndev 555 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_remove_from_devlist(ndev); ndev 562 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_debugfs_exit(ndev); ndev 563 drivers/crypto/cavium/nitrox/nitrox_main.c nitrox_pf_sw_cleanup(ndev); ndev 565 drivers/crypto/cavium/nitrox/nitrox_main.c iounmap(ndev->bar_addr); ndev 566 drivers/crypto/cavium/nitrox/nitrox_main.c kfree(ndev); ndev 32 drivers/crypto/cavium/nitrox/nitrox_mbx.c struct nitrox_device *ndev; ndev 36 drivers/crypto/cavium/nitrox/nitrox_mbx.c static inline u64 pf2vf_read_mbox(struct nitrox_device *ndev, int ring) ndev 41 drivers/crypto/cavium/nitrox/nitrox_mbx.c return nitrox_read_csr(ndev, reg_addr); ndev 44 drivers/crypto/cavium/nitrox/nitrox_mbx.c static inline void pf2vf_write_mbox(struct nitrox_device *ndev, u64 value, ndev 50 drivers/crypto/cavium/nitrox/nitrox_mbx.c nitrox_write_csr(ndev, reg_addr, value); ndev 53 drivers/crypto/cavium/nitrox/nitrox_mbx.c static void pf2vf_send_response(struct nitrox_device *ndev, ndev 62 drivers/crypto/cavium/nitrox/nitrox_mbx.c msg.data = ndev->mode; ndev 69 drivers/crypto/cavium/nitrox/nitrox_mbx.c msg.id.chipid = ndev->idx; ndev 86 drivers/crypto/cavium/nitrox/nitrox_mbx.c pf2vf_write_mbox(ndev, msg.value, vfdev->ring); ndev 97 drivers/crypto/cavium/nitrox/nitrox_mbx.c struct nitrox_device *ndev = pf2vf_resp->ndev; ndev 102 drivers/crypto/cavium/nitrox/nitrox_mbx.c pf2vf_send_response(ndev, vfdev); ndev 112 drivers/crypto/cavium/nitrox/nitrox_mbx.c void nitrox_pf2vf_mbox_handler(struct nitrox_device *ndev) ndev 122 drivers/crypto/cavium/nitrox/nitrox_mbx.c value = nitrox_read_csr(ndev, reg_addr); ndev 125 drivers/crypto/cavium/nitrox/nitrox_mbx.c vfno = RING_TO_VFNO(i, ndev->iov.max_vf_queues); ndev 126 drivers/crypto/cavium/nitrox/nitrox_mbx.c vfdev = ndev->iov.vfdev + vfno; ndev 129 drivers/crypto/cavium/nitrox/nitrox_mbx.c vfdev->msg.value = pf2vf_read_mbox(ndev, vfdev->ring); ndev 135 drivers/crypto/cavium/nitrox/nitrox_mbx.c pfwork->ndev = ndev; ndev 137 drivers/crypto/cavium/nitrox/nitrox_mbx.c queue_work(ndev->iov.pf2vf_wq, &pfwork->pf2vf_resp); ndev 139 drivers/crypto/cavium/nitrox/nitrox_mbx.c nitrox_write_csr(ndev, reg_addr, BIT_ULL(i)); ndev 144 drivers/crypto/cavium/nitrox/nitrox_mbx.c value = nitrox_read_csr(ndev, reg_addr); ndev 147 drivers/crypto/cavium/nitrox/nitrox_mbx.c vfno = RING_TO_VFNO(i + 64, ndev->iov.max_vf_queues); ndev 148 drivers/crypto/cavium/nitrox/nitrox_mbx.c vfdev = ndev->iov.vfdev + vfno; ndev 151 drivers/crypto/cavium/nitrox/nitrox_mbx.c vfdev->msg.value = pf2vf_read_mbox(ndev, vfdev->ring); ndev 158 drivers/crypto/cavium/nitrox/nitrox_mbx.c pfwork->ndev = ndev; ndev 160 drivers/crypto/cavium/nitrox/nitrox_mbx.c queue_work(ndev->iov.pf2vf_wq, &pfwork->pf2vf_resp); ndev 162 drivers/crypto/cavium/nitrox/nitrox_mbx.c nitrox_write_csr(ndev, reg_addr, BIT_ULL(i)); ndev 166 drivers/crypto/cavium/nitrox/nitrox_mbx.c int nitrox_mbox_init(struct nitrox_device *ndev) ndev 171 drivers/crypto/cavium/nitrox/nitrox_mbx.c ndev->iov.vfdev = kcalloc(ndev->iov.num_vfs, ndev 173 drivers/crypto/cavium/nitrox/nitrox_mbx.c if (!ndev->iov.vfdev) ndev 176 drivers/crypto/cavium/nitrox/nitrox_mbx.c for (i = 0; i < ndev->iov.num_vfs; i++) { ndev 177 drivers/crypto/cavium/nitrox/nitrox_mbx.c vfdev = ndev->iov.vfdev + i; ndev 182 drivers/crypto/cavium/nitrox/nitrox_mbx.c ndev->iov.pf2vf_wq = alloc_workqueue("nitrox_pf2vf", 0, 0); ndev 183 drivers/crypto/cavium/nitrox/nitrox_mbx.c if (!ndev->iov.pf2vf_wq) { ndev 184 drivers/crypto/cavium/nitrox/nitrox_mbx.c kfree(ndev->iov.vfdev); ndev 188 drivers/crypto/cavium/nitrox/nitrox_mbx.c enable_pf2vf_mbox_interrupts(ndev); ndev 193 drivers/crypto/cavium/nitrox/nitrox_mbx.c void nitrox_mbox_cleanup(struct nitrox_device *ndev) ndev 196 drivers/crypto/cavium/nitrox/nitrox_mbx.c disable_pf2vf_mbox_interrupts(ndev); ndev 198 drivers/crypto/cavium/nitrox/nitrox_mbx.c if (ndev->iov.pf2vf_wq) ndev 199 drivers/crypto/cavium/nitrox/nitrox_mbx.c destroy_workqueue(ndev->iov.pf2vf_wq); ndev 201 drivers/crypto/cavium/nitrox/nitrox_mbx.c kfree(ndev->iov.vfdev); ndev 202 drivers/crypto/cavium/nitrox/nitrox_mbx.c ndev->iov.pf2vf_wq = NULL; ndev 203 drivers/crypto/cavium/nitrox/nitrox_mbx.c ndev->iov.vfdev = NULL; ndev 5 drivers/crypto/cavium/nitrox/nitrox_mbx.h int nitrox_mbox_init(struct nitrox_device *ndev); ndev 6 drivers/crypto/cavium/nitrox/nitrox_mbx.h void nitrox_mbox_cleanup(struct nitrox_device *ndev); ndev 7 drivers/crypto/cavium/nitrox/nitrox_mbx.h void nitrox_pf2vf_mbox_handler(struct nitrox_device *ndev); ndev 200 drivers/crypto/cavium/nitrox/nitrox_req.h struct nitrox_device *ndev; ndev 512 drivers/crypto/cavium/nitrox/nitrox_req.h struct nitrox_device *ndev; ndev 56 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c struct nitrox_device *ndev = sr->ndev; ndev 57 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c struct device *dev = DEV(ndev); ndev 108 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c struct nitrox_device *ndev = sr->ndev; ndev 135 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c dma = dma_map_single(DEV(ndev), sgtbl->sgcomp, sz_comp, DMA_TO_DEVICE); ndev 136 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c if (dma_mapping_error(DEV(ndev), dma)) { ndev 159 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c struct device *dev = DEV(sr->ndev); ndev 188 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c struct device *dev = DEV(sr->ndev); ndev 287 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c struct nitrox_device *ndev = sr->ndev; ndev 307 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c cmdq->write_idx = incr_index(idx, 1, ndev->qlen); ndev 312 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c atomic64_inc(&ndev->stats.posted); ndev 317 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c struct nitrox_device *ndev = cmdq->ndev; ndev 328 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c if (unlikely(cmdq_full(cmdq, ndev->qlen))) { ndev 349 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c struct nitrox_device *ndev = sr->ndev; ndev 354 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c if (unlikely(cmdq_full(cmdq, ndev->qlen))) { ndev 357 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c atomic64_inc(&ndev->stats.dropped); ndev 376 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c int nitrox_process_se_request(struct nitrox_device *ndev, ndev 385 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c if (!nitrox_ready(ndev)) ndev 392 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c sr->ndev = ndev; ndev 420 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c qno = smp_processor_id() % ndev->nr_queues; ndev 422 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c sr->cmdq = &ndev->pkt_inq[qno]; ndev 535 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c struct nitrox_device *ndev = cmdq->ndev; ndev 555 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c if (!cmd_timeout(sr->tstamp, ndev->timeout)) ndev 557 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c dev_err_ratelimited(DEV(ndev), ndev 562 drivers/crypto/cavium/nitrox/nitrox_reqmgr.c atomic64_inc(&ndev->stats.completed); ndev 56 drivers/crypto/cavium/nitrox/nitrox_skcipher.c nctx->ndev = nitrox_get_first_device(); ndev 57 drivers/crypto/cavium/nitrox/nitrox_skcipher.c if (!nctx->ndev) ndev 61 drivers/crypto/cavium/nitrox/nitrox_skcipher.c chdr = crypto_alloc_context(nctx->ndev); ndev 63 drivers/crypto/cavium/nitrox/nitrox_skcipher.c nitrox_put_device(nctx->ndev); ndev 86 drivers/crypto/cavium/nitrox/nitrox_skcipher.c nitrox_put_device(nctx->ndev); ndev 89 drivers/crypto/cavium/nitrox/nitrox_skcipher.c nctx->ndev = NULL; ndev 243 drivers/crypto/cavium/nitrox/nitrox_skcipher.c return nitrox_process_se_request(nctx->ndev, creq, ndev 81 drivers/crypto/cavium/nitrox/nitrox_sriov.c static void nitrox_pf_cleanup(struct nitrox_device *ndev) ndev 84 drivers/crypto/cavium/nitrox/nitrox_sriov.c atomic_set(&ndev->state, __NDEV_NOT_READY); ndev 89 drivers/crypto/cavium/nitrox/nitrox_sriov.c nitrox_unregister_interrupts(ndev); ndev 90 drivers/crypto/cavium/nitrox/nitrox_sriov.c nitrox_common_sw_cleanup(ndev); ndev 97 drivers/crypto/cavium/nitrox/nitrox_sriov.c static int nitrox_pf_reinit(struct nitrox_device *ndev) ndev 102 drivers/crypto/cavium/nitrox/nitrox_sriov.c err = nitrox_common_sw_init(ndev); ndev 106 drivers/crypto/cavium/nitrox/nitrox_sriov.c err = nitrox_register_interrupts(ndev); ndev 108 drivers/crypto/cavium/nitrox/nitrox_sriov.c nitrox_common_sw_cleanup(ndev); ndev 113 drivers/crypto/cavium/nitrox/nitrox_sriov.c nitrox_config_aqm_rings(ndev); ndev 116 drivers/crypto/cavium/nitrox/nitrox_sriov.c nitrox_config_pkt_input_rings(ndev); ndev 117 drivers/crypto/cavium/nitrox/nitrox_sriov.c nitrox_config_pkt_solicit_ports(ndev); ndev 120 drivers/crypto/cavium/nitrox/nitrox_sriov.c atomic_set(&ndev->state, __NDEV_READY); ndev 126 drivers/crypto/cavium/nitrox/nitrox_sriov.c static void nitrox_sriov_cleanup(struct nitrox_device *ndev) ndev 129 drivers/crypto/cavium/nitrox/nitrox_sriov.c nitrox_sriov_unregister_interrupts(ndev); ndev 130 drivers/crypto/cavium/nitrox/nitrox_sriov.c nitrox_mbox_cleanup(ndev); ndev 133 drivers/crypto/cavium/nitrox/nitrox_sriov.c static int nitrox_sriov_init(struct nitrox_device *ndev) ndev 138 drivers/crypto/cavium/nitrox/nitrox_sriov.c ret = nitrox_sriov_register_interupts(ndev); ndev 142 drivers/crypto/cavium/nitrox/nitrox_sriov.c ret = nitrox_mbox_init(ndev); ndev 149 drivers/crypto/cavium/nitrox/nitrox_sriov.c nitrox_sriov_cleanup(ndev); ndev 155 drivers/crypto/cavium/nitrox/nitrox_sriov.c struct nitrox_device *ndev = pci_get_drvdata(pdev); ndev 159 drivers/crypto/cavium/nitrox/nitrox_sriov.c dev_err(DEV(ndev), "Invalid num_vfs %d\n", num_vfs); ndev 168 drivers/crypto/cavium/nitrox/nitrox_sriov.c dev_err(DEV(ndev), "failed to enable PCI sriov %d\n", err); ndev 171 drivers/crypto/cavium/nitrox/nitrox_sriov.c dev_info(DEV(ndev), "Enabled VF(s) %d\n", num_vfs); ndev 173 drivers/crypto/cavium/nitrox/nitrox_sriov.c ndev->mode = num_vfs_to_mode(num_vfs); ndev 174 drivers/crypto/cavium/nitrox/nitrox_sriov.c ndev->iov.num_vfs = num_vfs; ndev 175 drivers/crypto/cavium/nitrox/nitrox_sriov.c ndev->iov.max_vf_queues = vf_mode_to_nr_queues(ndev->mode); ndev 177 drivers/crypto/cavium/nitrox/nitrox_sriov.c set_bit(__NDEV_SRIOV_BIT, &ndev->flags); ndev 180 drivers/crypto/cavium/nitrox/nitrox_sriov.c nitrox_pf_cleanup(ndev); ndev 183 drivers/crypto/cavium/nitrox/nitrox_sriov.c err = nitrox_sriov_init(ndev); ndev 187 drivers/crypto/cavium/nitrox/nitrox_sriov.c config_nps_core_vfcfg_mode(ndev, ndev->mode); ndev 193 drivers/crypto/cavium/nitrox/nitrox_sriov.c clear_bit(__NDEV_SRIOV_BIT, &ndev->flags); ndev 194 drivers/crypto/cavium/nitrox/nitrox_sriov.c ndev->iov.num_vfs = 0; ndev 195 drivers/crypto/cavium/nitrox/nitrox_sriov.c ndev->mode = __NDEV_MODE_PF; ndev 197 drivers/crypto/cavium/nitrox/nitrox_sriov.c nitrox_pf_reinit(ndev); ndev 203 drivers/crypto/cavium/nitrox/nitrox_sriov.c struct nitrox_device *ndev = pci_get_drvdata(pdev); ndev 205 drivers/crypto/cavium/nitrox/nitrox_sriov.c if (!test_bit(__NDEV_SRIOV_BIT, &ndev->flags)) ndev 209 drivers/crypto/cavium/nitrox/nitrox_sriov.c dev_warn(DEV(ndev), "VFs are attached to VM. Can't disable SR-IOV\n"); ndev 214 drivers/crypto/cavium/nitrox/nitrox_sriov.c clear_bit(__NDEV_SRIOV_BIT, &ndev->flags); ndev 216 drivers/crypto/cavium/nitrox/nitrox_sriov.c ndev->iov.num_vfs = 0; ndev 217 drivers/crypto/cavium/nitrox/nitrox_sriov.c ndev->iov.max_vf_queues = 0; ndev 218 drivers/crypto/cavium/nitrox/nitrox_sriov.c ndev->mode = __NDEV_MODE_PF; ndev 221 drivers/crypto/cavium/nitrox/nitrox_sriov.c nitrox_sriov_cleanup(ndev); ndev 223 drivers/crypto/cavium/nitrox/nitrox_sriov.c config_nps_core_vfcfg_mode(ndev, ndev->mode); ndev 225 drivers/crypto/cavium/nitrox/nitrox_sriov.c return nitrox_pf_reinit(ndev); ndev 88 drivers/crypto/chelsio/chtls/chtls_cm.c struct net_device *ndev = cdev->ports[0]; ndev 91 drivers/crypto/chelsio/chtls/chtls_cm.c return ndev; ndev 93 drivers/crypto/chelsio/chtls/chtls_cm.c ndev = ip_dev_find(&init_net, inet_sk(sk)->inet_rcv_saddr); ndev 94 drivers/crypto/chelsio/chtls/chtls_cm.c if (!ndev) ndev 97 drivers/crypto/chelsio/chtls/chtls_cm.c if (is_vlan_dev(ndev)) ndev 98 drivers/crypto/chelsio/chtls/chtls_cm.c return vlan_dev_real_dev(ndev); ndev 99 drivers/crypto/chelsio/chtls/chtls_cm.c return ndev; ndev 598 drivers/crypto/chelsio/chtls/chtls_cm.c struct net_device *ndev; ndev 609 drivers/crypto/chelsio/chtls/chtls_cm.c ndev = chtls_ipv4_netdev(cdev, sk); ndev 611 drivers/crypto/chelsio/chtls/chtls_cm.c if (!ndev) ndev 614 drivers/crypto/chelsio/chtls/chtls_cm.c pi = netdev_priv(ndev); ndev 640 drivers/crypto/chelsio/chtls/chtls_cm.c ret = cxgb4_create_server(ndev, stid, ndev 1004 drivers/crypto/chelsio/chtls/chtls_cm.c struct net_device *ndev = csk->egress_dev; ndev 1005 drivers/crypto/chelsio/chtls/chtls_cm.c struct port_info *pi = netdev_priv(ndev); ndev 1030 drivers/crypto/chelsio/chtls/chtls_cm.c struct net_device *ndev; ndev 1053 drivers/crypto/chelsio/chtls/chtls_cm.c ndev = n->dev; ndev 1054 drivers/crypto/chelsio/chtls/chtls_cm.c if (!ndev) ndev 1056 drivers/crypto/chelsio/chtls/chtls_cm.c port_id = cxgb4_port_idx(ndev); ndev 1062 drivers/crypto/chelsio/chtls/chtls_cm.c csk->l2t_entry = cxgb4_l2t_get(cdev->lldi->l2t, n, ndev, 0); ndev 1082 drivers/crypto/chelsio/chtls/chtls_cm.c csk->tx_chan = cxgb4_port_chan(ndev); ndev 1084 drivers/crypto/chelsio/chtls/chtls_cm.c csk->egress_dev = ndev; ndev 1096 drivers/crypto/chelsio/chtls/chtls_cm.c csk->smac_idx = ((struct port_info *)netdev_priv(ndev))->smt_idx; ndev 80 drivers/edac/skx_base.c int i = 0, ndev = 0; ndev 87 drivers/edac/skx_base.c ndev++; ndev 135 drivers/edac/skx_base.c ndev--; ndev 142 drivers/edac/skx_base.c return ndev; ndev 189 drivers/edac/skx_common.c int ndev = 0; ndev 196 drivers/edac/skx_common.c ndev++; ndev 228 drivers/edac/skx_common.c return ndev; ndev 188 drivers/i2c/busses/i2c-amd-mp2.h #define ndev_pdev(ndev) ((ndev)->pci_dev) ndev 189 drivers/i2c/busses/i2c-amd-mp2.h #define ndev_name(ndev) pci_name(ndev_pdev(ndev)) ndev 190 drivers/i2c/busses/i2c-amd-mp2.h #define ndev_dev(ndev) (&ndev_pdev(ndev)->dev) ndev 65 drivers/ide/ide-cs.c int ndev; ndev 237 drivers/ide/ide-cs.c info->ndev = 1; ndev 257 drivers/ide/ide-cs.c if (info->ndev) { ndev 265 drivers/ide/ide-cs.c info->ndev = 0; ndev 474 drivers/infiniband/core/addr.c const struct net_device *ndev) ndev 489 drivers/infiniband/core/addr.c ndev->type != ARPHRD_INFINIBAND) ndev 504 drivers/infiniband/core/addr.c struct net_device *ndev = READ_ONCE(dst->dev); ndev 506 drivers/infiniband/core/addr.c *ndev_flags = ndev->flags; ndev 508 drivers/infiniband/core/addr.c if (ndev->flags & IFF_LOOPBACK) { ndev 515 drivers/infiniband/core/addr.c ndev = rdma_find_ndev_for_src_ip_rcu(dev_net(ndev), dst_in); ndev 516 drivers/infiniband/core/addr.c if (IS_ERR(ndev)) ndev 520 drivers/infiniband/core/addr.c return copy_src_l2_addr(dev_addr, dst_in, dst, ndev); ndev 525 drivers/infiniband/core/addr.c struct net_device *ndev; ndev 527 drivers/infiniband/core/addr.c ndev = rdma_read_gid_attr_ndev_rcu(addr->sgid_attr); ndev 528 drivers/infiniband/core/addr.c if (IS_ERR(ndev)) ndev 529 drivers/infiniband/core/addr.c return PTR_ERR(ndev); ndev 538 drivers/infiniband/core/addr.c addr->net = dev_net(ndev); ndev 539 drivers/infiniband/core/addr.c addr->bound_dev_if = ndev->ifindex; ndev 739 drivers/infiniband/core/addr.c if (!attr || !attr->ndev) ndev 82 drivers/infiniband/core/cache.c struct net_device *ndev; ndev 224 drivers/infiniband/core/cache.c WARN_ON(!storage->ndev); ndev 229 drivers/infiniband/core/cache.c dev_put(storage->ndev); ndev 293 drivers/infiniband/core/cache.c struct net_device *ndev; ndev 299 drivers/infiniband/core/cache.c ndev = rcu_dereference_protected(attr->ndev, 1); ndev 300 drivers/infiniband/core/cache.c if (ndev) { ndev 307 drivers/infiniband/core/cache.c dev_hold(ndev); ndev 308 drivers/infiniband/core/cache.c entry->ndev_storage->ndev = ndev; ndev 352 drivers/infiniband/core/cache.c if (!attr->ndev) { ndev 402 drivers/infiniband/core/cache.c rcu_assign_pointer(entry->attr.ndev, NULL); ndev 520 drivers/infiniband/core/cache.c attr->ndev != val->ndev) ndev 638 drivers/infiniband/core/cache.c struct net_device *ndev) ndev 650 drivers/infiniband/core/cache.c table->data_vec[ix]->attr.ndev == ndev) { ndev 683 drivers/infiniband/core/cache.c u8 port, struct net_device *ndev) ndev 689 drivers/infiniband/core/cache.c struct ib_gid_attr val = {.ndev = ndev, .gid_type = gid_type}; ndev 698 drivers/infiniband/core/cache.c if (ndev) ndev 840 drivers/infiniband/core/cache.c struct net_device *ndev, ndev 853 drivers/infiniband/core/cache.c gid_attr.ndev = ndev; ndev 862 drivers/infiniband/core/cache.c make_default_gid(ndev, &gid); ndev 997 drivers/infiniband/core/cache.c struct net_device *ndev) ndev 1001 drivers/infiniband/core/cache.c struct ib_gid_attr gid_attr_val = {.ndev = ndev, .gid_type = gid_type}; ndev 1004 drivers/infiniband/core/cache.c if (ndev) ndev 1281 drivers/infiniband/core/cache.c struct net_device *ndev = ERR_PTR(-ENODEV); ndev 1292 drivers/infiniband/core/cache.c ndev = rcu_dereference(attr->ndev); ndev 1293 drivers/infiniband/core/cache.c if (!ndev || ndev 1294 drivers/infiniband/core/cache.c (ndev && ((READ_ONCE(ndev->flags) & IFF_UP) == 0))) ndev 1295 drivers/infiniband/core/cache.c ndev = ERR_PTR(-ENODEV); ndev 1298 drivers/infiniband/core/cache.c return ndev; ndev 1330 drivers/infiniband/core/cache.c struct net_device *ndev; ndev 1333 drivers/infiniband/core/cache.c ndev = rcu_dereference(attr->ndev); ndev 1334 drivers/infiniband/core/cache.c if (!ndev) { ndev 1339 drivers/infiniband/core/cache.c ether_addr_copy(smac, ndev->dev_addr); ndev 1342 drivers/infiniband/core/cache.c if (is_vlan_dev(ndev)) { ndev 1343 drivers/infiniband/core/cache.c *vlan_id = vlan_dev_vlan_id(ndev); ndev 1349 drivers/infiniband/core/cache.c netdev_walk_all_lower_dev_rcu(attr->ndev, ndev 469 drivers/infiniband/core/cma.c static int cma_igmp_send(struct net_device *ndev, union ib_gid *mgid, bool join) ndev 473 drivers/infiniband/core/cma.c if (ndev) { ndev 475 drivers/infiniband/core/cma.c in_dev = __in_dev_get_rtnl(ndev); ndev 617 drivers/infiniband/core/cma.c struct net_device *ndev = NULL; ndev 629 drivers/infiniband/core/cma.c ndev = dev_get_by_index(dev_addr->net, bound_if_index); ndev 630 drivers/infiniband/core/cma.c if (!ndev) ndev 636 drivers/infiniband/core/cma.c sgid_attr = rdma_find_gid_by_port(device, gid, gid_type, port, ndev); ndev 637 drivers/infiniband/core/cma.c if (ndev) ndev 638 drivers/infiniband/core/cma.c dev_put(ndev); ndev 1489 drivers/infiniband/core/cma.c struct net_device *ndev; ndev 1500 drivers/infiniband/core/cma.c ndev = rdma_read_gid_attr_ndev_rcu(sgid_attr); ndev 1501 drivers/infiniband/core/cma.c if (IS_ERR(ndev)) ndev 1502 drivers/infiniband/core/cma.c ndev = NULL; ndev 1504 drivers/infiniband/core/cma.c dev_hold(ndev); ndev 1506 drivers/infiniband/core/cma.c return ndev; ndev 1806 drivers/infiniband/core/cma.c struct net_device *ndev = NULL; ndev 1809 drivers/infiniband/core/cma.c ndev = dev_get_by_index(dev_addr->net, dev_addr->bound_dev_if); ndev 1810 drivers/infiniband/core/cma.c if (ndev) { ndev 1811 drivers/infiniband/core/cma.c cma_igmp_send(ndev, &mc->multicast.ib->rec.mgid, false); ndev 1812 drivers/infiniband/core/cma.c dev_put(ndev); ndev 2753 drivers/infiniband/core/cma.c struct net_device *ndev; ndev 2758 drivers/infiniband/core/cma.c ndev = dev_get_by_index(addr->dev_addr.net, ndev 2760 drivers/infiniband/core/cma.c if (!ndev) ndev 2775 drivers/infiniband/core/cma.c return ndev; ndev 2782 drivers/infiniband/core/cma.c struct net_device *ndev; ndev 2798 drivers/infiniband/core/cma.c ndev = cma_iboe_set_path_rec_l2_fields(id_priv); ndev 2799 drivers/infiniband/core/cma.c if (!ndev) { ndev 2803 drivers/infiniband/core/cma.c dev_put(ndev); ndev 2831 drivers/infiniband/core/cma.c static int iboe_tos_to_sl(struct net_device *ndev, int tos) ndev 2837 drivers/infiniband/core/cma.c dev = is_vlan_dev(ndev) ? vlan_dev_real_dev(ndev) : ndev; ndev 2842 drivers/infiniband/core/cma.c if (is_vlan_dev(ndev)) ndev 2843 drivers/infiniband/core/cma.c return (vlan_dev_get_egress_qos_mask(ndev, prio) & ndev 2855 drivers/infiniband/core/cma.c struct net_device *ndev; ndev 2874 drivers/infiniband/core/cma.c ndev = cma_iboe_set_path_rec_l2_fields(id_priv); ndev 2875 drivers/infiniband/core/cma.c if (!ndev) { ndev 2893 drivers/infiniband/core/cma.c route->path_rec->sl = iboe_tos_to_sl(ndev, tos); ndev 2895 drivers/infiniband/core/cma.c route->path_rec->mtu = iboe_get_mtu(ndev->mtu); ndev 2897 drivers/infiniband/core/cma.c route->path_rec->rate = iboe_get_rate(ndev); ndev 2898 drivers/infiniband/core/cma.c dev_put(ndev); ndev 4182 drivers/infiniband/core/cma.c struct net_device *ndev = ndev 4192 drivers/infiniband/core/cma.c ndev, gid_type, ndev 4199 drivers/infiniband/core/cma.c if (ndev) ndev 4200 drivers/infiniband/core/cma.c dev_put(ndev); ndev 4352 drivers/infiniband/core/cma.c struct net_device *ndev = NULL; ndev 4380 drivers/infiniband/core/cma.c ndev = dev_get_by_index(dev_addr->net, dev_addr->bound_dev_if); ndev 4381 drivers/infiniband/core/cma.c if (!ndev) { ndev 4385 drivers/infiniband/core/cma.c mc->multicast.ib->rec.rate = iboe_get_rate(ndev); ndev 4387 drivers/infiniband/core/cma.c mc->multicast.ib->rec.mtu = iboe_get_mtu(ndev->mtu); ndev 4393 drivers/infiniband/core/cma.c err = cma_igmp_send(ndev, &mc->multicast.ib->rec.mgid, ndev 4401 drivers/infiniband/core/cma.c dev_put(ndev); ndev 4505 drivers/infiniband/core/cma.c static int cma_netdev_change(struct net_device *ndev, struct rdma_id_private *id_priv) ndev 4512 drivers/infiniband/core/cma.c if ((dev_addr->bound_dev_if == ndev->ifindex) && ndev 4513 drivers/infiniband/core/cma.c (net_eq(dev_net(ndev), dev_addr->net)) && ndev 4514 drivers/infiniband/core/cma.c memcmp(dev_addr->src_dev_addr, ndev->dev_addr, ndev->addr_len)) { ndev 4516 drivers/infiniband/core/cma.c ndev->name, &id_priv->id); ndev 4534 drivers/infiniband/core/cma.c struct net_device *ndev = netdev_notifier_info_to_dev(ptr); ndev 4542 drivers/infiniband/core/cma.c if (!netif_is_bond_master(ndev)) ndev 4548 drivers/infiniband/core/cma.c ret = cma_netdev_change(ndev, id_priv); ndev 131 drivers/infiniband/core/core_priv.h struct net_device *ndev, ndev 142 drivers/infiniband/core/core_priv.h struct net_device *ndev); ndev 2107 drivers/infiniband/core/device.c int ib_device_set_netdev(struct ib_device *ib_dev, struct net_device *ndev, ndev 2130 drivers/infiniband/core/device.c if (old_ndev == ndev) { ndev 2135 drivers/infiniband/core/device.c if (ndev) ndev 2136 drivers/infiniband/core/device.c dev_hold(ndev); ndev 2137 drivers/infiniband/core/device.c rcu_assign_pointer(pdata->netdev, ndev); ndev 2158 drivers/infiniband/core/device.c struct net_device *ndev; ndev 2161 drivers/infiniband/core/device.c ndev = rcu_dereference_protected( ndev 2163 drivers/infiniband/core/device.c if (ndev) { ndev 2175 drivers/infiniband/core/device.c dev_put(ndev); ndev 2228 drivers/infiniband/core/device.c struct ib_device *ib_device_get_by_netdev(struct net_device *ndev, ndev 2236 drivers/infiniband/core/device.c (uintptr_t)ndev) { ndev 2237 drivers/infiniband/core/device.c if (rcu_access_pointer(cur->netdev) == ndev && ndev 736 drivers/infiniband/core/multicast.c struct net_device *ndev, ndev 746 drivers/infiniband/core/multicast.c ndev = NULL; ndev 751 drivers/infiniband/core/multicast.c gid_type, port_num, ndev); ndev 1463 drivers/infiniband/core/nldev.c struct net_device *ndev; ndev 1482 drivers/infiniband/core/nldev.c ndev = dev_get_by_name(sock_net(skb->sk), ndev_name); ndev 1483 drivers/infiniband/core/nldev.c if (!ndev) ndev 1496 drivers/infiniband/core/nldev.c err = ops ? ops->newlink(ibdev_name, ndev) : -EINVAL; ndev 1498 drivers/infiniband/core/nldev.c dev_put(ndev); ndev 63 drivers/infiniband/core/roce_gid_mgmt.c struct net_device *ndev; ndev 283 drivers/infiniband/core/roce_gid_mgmt.c u8 port, struct net_device *ndev, ndev 291 drivers/infiniband/core/roce_gid_mgmt.c gid_attr.ndev = ndev; ndev 331 drivers/infiniband/core/roce_gid_mgmt.c u8 port, struct net_device *ndev) ndev 343 drivers/infiniband/core/roce_gid_mgmt.c if (ndev->reg_state >= NETREG_UNREGISTERING) ndev 347 drivers/infiniband/core/roce_gid_mgmt.c in_dev = __in_dev_get_rcu(ndev); ndev 367 drivers/infiniband/core/roce_gid_mgmt.c update_gid_ip(GID_ADD, ib_dev, port, ndev, ndev 375 drivers/infiniband/core/roce_gid_mgmt.c u8 port, struct net_device *ndev) ndev 385 drivers/infiniband/core/roce_gid_mgmt.c struct ib_gid_attr gid_attr = {.ndev = ndev}; ndev 388 drivers/infiniband/core/roce_gid_mgmt.c if (ndev->reg_state >= NETREG_UNREGISTERING) ndev 391 drivers/infiniband/core/roce_gid_mgmt.c in6_dev = in6_dev_get(ndev); ndev 421 drivers/infiniband/core/roce_gid_mgmt.c struct net_device *ndev) ndev 423 drivers/infiniband/core/roce_gid_mgmt.c enum_netdev_ipv4_ips(ib_dev, port, ndev); ndev 425 drivers/infiniband/core/roce_gid_mgmt.c enum_netdev_ipv6_ips(ib_dev, port, ndev); ndev 478 drivers/infiniband/core/roce_gid_mgmt.c struct net_device *ndev; ndev 486 drivers/infiniband/core/roce_gid_mgmt.c for_each_netdev(net, ndev) { ndev 493 drivers/infiniband/core/roce_gid_mgmt.c rdma_ndev, ndev)) ndev 494 drivers/infiniband/core/roce_gid_mgmt.c add_default_gids(ib_dev, port, rdma_ndev, ndev); ndev 497 drivers/infiniband/core/roce_gid_mgmt.c rdma_ndev, ndev)) ndev 498 drivers/infiniband/core/roce_gid_mgmt.c _add_netdev_ips(ib_dev, port, ndev); ndev 553 drivers/infiniband/core/roce_gid_mgmt.c struct net_device *ndev)) ndev 555 drivers/infiniband/core/roce_gid_mgmt.c struct net_device *ndev = cookie; ndev 561 drivers/infiniband/core/roce_gid_mgmt.c netdev_walk_all_upper_dev_rcu(ndev, netdev_upper_walk, &upper_list); ndev 564 drivers/infiniband/core/roce_gid_mgmt.c handle_netdev(ib_dev, port, ndev); ndev 626 drivers/infiniband/core/roce_gid_mgmt.c work->cmds[i].ndev); ndev 627 drivers/infiniband/core/roce_gid_mgmt.c dev_put(work->cmds[i].ndev); ndev 635 drivers/infiniband/core/roce_gid_mgmt.c struct net_device *ndev) ndev 646 drivers/infiniband/core/roce_gid_mgmt.c if (!ndev_work->cmds[i].ndev) ndev 647 drivers/infiniband/core/roce_gid_mgmt.c ndev_work->cmds[i].ndev = ndev; ndev 649 drivers/infiniband/core/roce_gid_mgmt.c ndev_work->cmds[i].filter_ndev = ndev; ndev 650 drivers/infiniband/core/roce_gid_mgmt.c dev_hold(ndev_work->cmds[i].ndev); ndev 681 drivers/infiniband/core/roce_gid_mgmt.c cmds[0].ndev = changeupper_info->upper_dev; ndev 705 drivers/infiniband/core/roce_gid_mgmt.c cmds[0].ndev = event_ndev; ndev 710 drivers/infiniband/core/roce_gid_mgmt.c cmds[1].ndev = changeupper_info->upper_dev; ndev 715 drivers/infiniband/core/roce_gid_mgmt.c cmds[2].ndev = changeupper_info->upper_dev; ndev 751 drivers/infiniband/core/roce_gid_mgmt.c struct net_device *ndev = netdev_notifier_info_to_dev(ptr); ndev 754 drivers/infiniband/core/roce_gid_mgmt.c if (ndev->type != ARPHRD_ETHER) ndev 766 drivers/infiniband/core/roce_gid_mgmt.c if (ndev->reg_state < NETREG_UNREGISTERED) ndev 774 drivers/infiniband/core/roce_gid_mgmt.c if (ndev->reg_state == NETREG_REGISTERED) { ndev 781 drivers/infiniband/core/roce_gid_mgmt.c netdevice_event_changeupper(ndev, ndev 798 drivers/infiniband/core/roce_gid_mgmt.c return netdevice_queue_work(cmds, ndev); ndev 807 drivers/infiniband/core/roce_gid_mgmt.c work->gid_attr.ndev, ndev 810 drivers/infiniband/core/roce_gid_mgmt.c dev_put(work->gid_attr.ndev); ndev 815 drivers/infiniband/core/roce_gid_mgmt.c struct sockaddr *sa, struct net_device *ndev) ndev 820 drivers/infiniband/core/roce_gid_mgmt.c if (ndev->type != ARPHRD_ETHER) ndev 846 drivers/infiniband/core/roce_gid_mgmt.c dev_hold(ndev); ndev 847 drivers/infiniband/core/roce_gid_mgmt.c work->gid_attr.ndev = ndev; ndev 858 drivers/infiniband/core/roce_gid_mgmt.c struct net_device *ndev; ndev 863 drivers/infiniband/core/roce_gid_mgmt.c ndev = ifa->ifa_dev->dev; ndev 865 drivers/infiniband/core/roce_gid_mgmt.c return addr_event(this, event, (struct sockaddr *)&in, ndev); ndev 872 drivers/infiniband/core/roce_gid_mgmt.c struct net_device *ndev; ndev 877 drivers/infiniband/core/roce_gid_mgmt.c ndev = ifa6->idev->dev; ndev 879 drivers/infiniband/core/roce_gid_mgmt.c return addr_event(this, event, (struct sockaddr *)&in6, ndev); ndev 53 drivers/infiniband/core/sysfs.c struct attribute_group ndev; ndev 363 drivers/infiniband/core/sysfs.c struct net_device *ndev; ndev 367 drivers/infiniband/core/sysfs.c ndev = rcu_dereference(gid_attr->ndev); ndev 368 drivers/infiniband/core/sysfs.c if (ndev) ndev 369 drivers/infiniband/core/sysfs.c ret = sprintf(buf, "%s\n", ndev->name); ndev 703 drivers/infiniband/core/sysfs.c if (g->ndev.attrs) { ndev 704 drivers/infiniband/core/sysfs.c for (i = 0; (a = g->ndev.attrs[i]); ++i) ndev 707 drivers/infiniband/core/sysfs.c kfree(g->ndev.attrs); ndev 1099 drivers/infiniband/core/sysfs.c p->gid_attr_group->ndev.name = "ndevs"; ndev 1100 drivers/infiniband/core/sysfs.c p->gid_attr_group->ndev.attrs = alloc_group_attrs(show_port_gid_attr_ndev, ndev 1102 drivers/infiniband/core/sysfs.c if (!p->gid_attr_group->ndev.attrs) { ndev 1108 drivers/infiniband/core/sysfs.c &p->gid_attr_group->ndev); ndev 1179 drivers/infiniband/core/sysfs.c &p->gid_attr_group->ndev); ndev 1183 drivers/infiniband/core/sysfs.c kfree(p->gid_attr_group->ndev.attrs[i]); ndev 1185 drivers/infiniband/core/sysfs.c kfree(p->gid_attr_group->ndev.attrs); ndev 1186 drivers/infiniband/core/sysfs.c p->gid_attr_group->ndev.attrs = NULL; ndev 1327 drivers/infiniband/core/sysfs.c &port->gid_attr_group->ndev); ndev 759 drivers/infiniband/hw/mlx4/main.c struct net_device *ndev; ndev 791 drivers/infiniband/hw/mlx4/main.c ndev = iboe->netdevs[port - 1]; ndev 792 drivers/infiniband/hw/mlx4/main.c if (ndev && is_bonded) { ndev 794 drivers/infiniband/hw/mlx4/main.c ndev = netdev_master_upper_dev_get_rcu(ndev); ndev 797 drivers/infiniband/hw/mlx4/main.c if (!ndev) ndev 800 drivers/infiniband/hw/mlx4/main.c tmp = iboe_get_mtu(ndev->mtu); ndev 803 drivers/infiniband/hw/mlx4/main.c props->state = (netif_running(ndev) && netif_carrier_ok(ndev)) ? ndev 1310 drivers/infiniband/hw/mlx4/main.c struct net_device *ndev; ndev 1317 drivers/infiniband/hw/mlx4/main.c ndev = mdev->iboe.netdevs[mqp->port - 1]; ndev 1318 drivers/infiniband/hw/mlx4/main.c if (ndev) ndev 1319 drivers/infiniband/hw/mlx4/main.c dev_hold(ndev); ndev 1322 drivers/infiniband/hw/mlx4/main.c if (ndev) { ndev 1324 drivers/infiniband/hw/mlx4/main.c dev_put(ndev); ndev 1940 drivers/infiniband/hw/mlx4/main.c struct net_device *ndev; ndev 1981 drivers/infiniband/hw/mlx4/main.c ndev = ge->added ? mdev->iboe.netdevs[ge->port - 1] : NULL; ndev 1982 drivers/infiniband/hw/mlx4/main.c if (ndev) ndev 1983 drivers/infiniband/hw/mlx4/main.c dev_hold(ndev); ndev 1985 drivers/infiniband/hw/mlx4/main.c if (ndev) ndev 1986 drivers/infiniband/hw/mlx4/main.c dev_put(ndev); ndev 161 drivers/infiniband/hw/mlx5/main.c struct net_device *ndev, ndev 177 drivers/infiniband/hw/mlx5/main.c if (rep_ndev == ndev) { ndev 192 drivers/infiniband/hw/mlx5/main.c struct net_device *ndev = netdev_notifier_info_to_dev(ptr); ndev 208 drivers/infiniband/hw/mlx5/main.c if (ndev->dev.parent == mdev->device) ndev 209 drivers/infiniband/hw/mlx5/main.c roce->netdev = ndev; ndev 216 drivers/infiniband/hw/mlx5/main.c if (roce->netdev == ndev) ndev 233 drivers/infiniband/hw/mlx5/main.c roce = mlx5_get_rep_roce(ibdev, ndev, &port_num); ndev 236 drivers/infiniband/hw/mlx5/main.c if ((upper == ndev || (!upper && ndev == roce->netdev)) ndev 275 drivers/infiniband/hw/mlx5/main.c struct net_device *ndev; ndev 282 drivers/infiniband/hw/mlx5/main.c ndev = mlx5_lag_get_roce_netdev(mdev); ndev 283 drivers/infiniband/hw/mlx5/main.c if (ndev) ndev 289 drivers/infiniband/hw/mlx5/main.c ndev = ibdev->port[port_num - 1].roce.netdev; ndev 290 drivers/infiniband/hw/mlx5/main.c if (ndev) ndev 291 drivers/infiniband/hw/mlx5/main.c dev_hold(ndev); ndev 296 drivers/infiniband/hw/mlx5/main.c return ndev; ndev 488 drivers/infiniband/hw/mlx5/main.c struct net_device *ndev, *upper; ndev 547 drivers/infiniband/hw/mlx5/main.c ndev = mlx5_ib_get_netdev(device, port_num); ndev 548 drivers/infiniband/hw/mlx5/main.c if (!ndev) ndev 553 drivers/infiniband/hw/mlx5/main.c upper = netdev_master_upper_dev_get_rcu(ndev); ndev 555 drivers/infiniband/hw/mlx5/main.c dev_put(ndev); ndev 556 drivers/infiniband/hw/mlx5/main.c ndev = upper; ndev 557 drivers/infiniband/hw/mlx5/main.c dev_hold(ndev); ndev 562 drivers/infiniband/hw/mlx5/main.c if (netif_running(ndev) && netif_carrier_ok(ndev)) { ndev 567 drivers/infiniband/hw/mlx5/main.c ndev_ib_mtu = iboe_get_mtu(ndev->mtu); ndev 569 drivers/infiniband/hw/mlx5/main.c dev_put(ndev); ndev 175 drivers/infiniband/hw/qedr/main.c dev->ndev->name, sizeof(dev->ibdev.iw_ifname)); ndev 286 drivers/infiniband/hw/qedr/main.c rc = ib_device_set_netdev(&dev->ibdev, dev->ndev, 1); ndev 818 drivers/infiniband/hw/qedr/main.c in_params->max_mtu = dev->ndev->mtu; ndev 819 drivers/infiniband/hw/qedr/main.c dev->iwarp_max_mtu = dev->ndev->mtu; ndev 820 drivers/infiniband/hw/qedr/main.c ether_addr_copy(&in_params->mac_addr[0], dev->ndev->dev_addr); ndev 851 drivers/infiniband/hw/qedr/main.c struct net_device *ndev) ndev 866 drivers/infiniband/hw/qedr/main.c dev->ndev = ndev; ndev 985 drivers/infiniband/hw/qedr/main.c ether_addr_copy(&mac_addr[0], dev->ndev->dev_addr); ndev 1000 drivers/infiniband/hw/qedr/main.c dev->ndev->dev_addr); ndev 1002 drivers/infiniband/hw/qedr/main.c ether_addr_copy(dev->gsi_ll2_mac_address, dev->ndev->dev_addr); ndev 131 drivers/infiniband/hw/qedr/qedr.h struct net_device *ndev; ndev 388 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct net_device *ndev; ndev 391 drivers/infiniband/hw/qedr/qedr_iw_cm.c ndev = ip_dev_find(&init_net, htonl(addr[0])); ndev 393 drivers/infiniband/hw/qedr/qedr_iw_cm.c if (ndev) { ndev 394 drivers/infiniband/hw/qedr/qedr_iw_cm.c vlan_id = rdma_vlan_dev_vlan_id(ndev); ndev 395 drivers/infiniband/hw/qedr/qedr_iw_cm.c dev_put(ndev); ndev 404 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct net_device *ndev = NULL; ndev 416 drivers/infiniband/hw/qedr/qedr_iw_cm.c for_each_netdev_rcu(&init_net, ndev) { ndev 417 drivers/infiniband/hw/qedr/qedr_iw_cm.c if (ipv6_chk_addr(&init_net, &laddr6, ndev, 1)) { ndev 418 drivers/infiniband/hw/qedr/qedr_iw_cm.c vlan_id = rdma_vlan_dev_vlan_id(ndev); ndev 627 drivers/infiniband/hw/qedr/qedr_iw_cm.c memcpy(in_params.local_mac_addr, dev->ndev->dev_addr, ETH_ALEN); ndev 278 drivers/infiniband/hw/qedr/qedr_roce_cm.c data.input.mtu = dev->ndev->mtu; ndev 308 drivers/infiniband/hw/qedr/qedr_roce_cm.c rc = dev->ops->ll2_set_mac_filter(dev->cdev, NULL, dev->ndev->dev_addr); ndev 353 drivers/infiniband/hw/qedr/qedr_roce_cm.c ether_addr_copy(dev->gsi_ll2_mac_address, dev->ndev->dev_addr); ndev 438 drivers/infiniband/hw/qedr/qedr_roce_cm.c ether_addr_copy(udh->eth.smac_h, dev->ndev->dev_addr); ndev 85 drivers/infiniband/hw/qedr/verbs.c ether_addr_copy(sgid->raw, dev->ndev->dev_addr); ndev 231 drivers/infiniband/hw/qedr/verbs.c attr->active_mtu = iboe_get_mtu(dev->ndev->mtu); ndev 2187 drivers/infiniband/hw/qedr/verbs.c (dev->ndev->mtu))); ndev 2192 drivers/infiniband/hw/qedr/verbs.c ib_mtu_enum_to_int(iboe_get_mtu(dev->ndev->mtu)); ndev 2219 drivers/infiniband/hw/qedr/verbs.c ether_addr_copy(qp_params.local_mac_addr, dev->ndev->dev_addr); ndev 2240 drivers/infiniband/hw/qedr/verbs.c ib_mtu_enum_to_int(iboe_get_mtu(dev->ndev->mtu)); ndev 1409 drivers/infiniband/hw/qib/qib_file_ops.c int ret = 0, devmax, npresent, nup, ndev, dusable = 0, i; ndev 1426 drivers/infiniband/hw/qib/qib_file_ops.c for (ndev = 0; ndev < devmax; ndev++) { ndev 1427 drivers/infiniband/hw/qib/qib_file_ops.c struct qib_devdata *dd = qib_lookup(ndev); ndev 1457 drivers/infiniband/hw/qib/qib_file_ops.c for (ndev = 0; ndev < devmax; ndev++) { ndev 1458 drivers/infiniband/hw/qib/qib_file_ops.c struct qib_devdata *dd = qib_lookup(ndev); ndev 1478 drivers/infiniband/hw/qib/qib_file_ops.c int devmax, ndev, i; ndev 1483 drivers/infiniband/hw/qib/qib_file_ops.c for (ndev = 0; ndev < devmax; ndev++) { ndev 1484 drivers/infiniband/hw/qib/qib_file_ops.c struct qib_devdata *dd = qib_lookup(ndev); ndev 1530 drivers/infiniband/hw/qib/qib_file_ops.c int ret = 0, devmax, npresent, nup, ndev; ndev 1543 drivers/infiniband/hw/qib/qib_file_ops.c for (ndev = 0; ndev < devmax; ndev++) { ndev 1544 drivers/infiniband/hw/qib/qib_file_ops.c struct qib_devdata *dd = qib_lookup(ndev); ndev 1553 drivers/infiniband/hw/qib/qib_file_ops.c *unit = ndev; ndev 689 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c struct net_device *ndev, ndev 723 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c (pci_get_drvdata(pdev_net) == ndev)) { ndev 725 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c ib_device_set_netdev(&dev->ib_dev, ndev, 1); ndev 726 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c dev->netdev = ndev; ndev 727 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c dev_hold(ndev); ndev 171 drivers/infiniband/sw/rxe/rxe.c rxe->ndev->dev_addr); ndev 318 drivers/infiniband/sw/rxe/rxe.c static int rxe_newlink(const char *ibdev_name, struct net_device *ndev) ndev 323 drivers/infiniband/sw/rxe/rxe.c exists = rxe_get_dev_from_net(ndev); ndev 326 drivers/infiniband/sw/rxe/rxe.c pr_err("already configured on %s\n", ndev->name); ndev 331 drivers/infiniband/sw/rxe/rxe.c err = rxe_net_add(ibdev_name, ndev); ndev 333 drivers/infiniband/sw/rxe/rxe.c pr_err("failed to add %s\n", ndev->name); ndev 98 drivers/infiniband/sw/rxe/rxe.h static inline struct rxe_dev *rxe_get_dev_from_net(struct net_device *ndev) ndev 101 drivers/infiniband/sw/rxe/rxe.h ib_device_get_by_netdev(ndev, RDMA_DRIVER_RXE); ndev 52 drivers/infiniband/sw/rxe/rxe_net.c struct net_device *ndev; ndev 54 drivers/infiniband/sw/rxe/rxe_net.c ndev = rxe->ndev; ndev 56 drivers/infiniband/sw/rxe/rxe_net.c if (is_vlan_dev(ndev)) ndev 57 drivers/infiniband/sw/rxe/rxe_net.c ndev = vlan_dev_real_dev(ndev); ndev 59 drivers/infiniband/sw/rxe/rxe_net.c return ndev->dev.parent; ndev 68 drivers/infiniband/sw/rxe/rxe_net.c err = dev_mc_add(rxe->ndev, ll_addr); ndev 79 drivers/infiniband/sw/rxe/rxe_net.c err = dev_mc_del(rxe->ndev, ll_addr); ndev 84 drivers/infiniband/sw/rxe/rxe_net.c static struct dst_entry *rxe_find_route4(struct net_device *ndev, ndev 92 drivers/infiniband/sw/rxe/rxe_net.c fl.flowi4_oif = ndev->ifindex; ndev 107 drivers/infiniband/sw/rxe/rxe_net.c static struct dst_entry *rxe_find_route6(struct net_device *ndev, ndev 115 drivers/infiniband/sw/rxe/rxe_net.c fl6.flowi6_oif = ndev->ifindex; ndev 141 drivers/infiniband/sw/rxe/rxe_net.c static struct dst_entry *rxe_find_route6(struct net_device *ndev, ndev 150 drivers/infiniband/sw/rxe/rxe_net.c static struct dst_entry *rxe_find_route(struct net_device *ndev, ndev 169 drivers/infiniband/sw/rxe/rxe_net.c dst = rxe_find_route4(ndev, saddr, daddr); ndev 176 drivers/infiniband/sw/rxe/rxe_net.c dst = rxe_find_route6(ndev, saddr6, daddr6); ndev 195 drivers/infiniband/sw/rxe/rxe_net.c struct net_device *ndev = skb->dev; ndev 196 drivers/infiniband/sw/rxe/rxe_net.c struct net_device *rdev = ndev; ndev 197 drivers/infiniband/sw/rxe/rxe_net.c struct rxe_dev *rxe = rxe_get_dev_from_net(ndev); ndev 201 drivers/infiniband/sw/rxe/rxe_net.c rdev = vlan_dev_real_dev(ndev); ndev 464 drivers/infiniband/sw/rxe/rxe_net.c struct net_device *ndev; ndev 480 drivers/infiniband/sw/rxe/rxe_net.c ndev = rdma_read_gid_attr_ndev_rcu(attr); ndev 481 drivers/infiniband/sw/rxe/rxe_net.c if (IS_ERR(ndev)) { ndev 485 drivers/infiniband/sw/rxe/rxe_net.c skb = alloc_skb(paylen + hdr_len + LL_RESERVED_SPACE(ndev), ndev 493 drivers/infiniband/sw/rxe/rxe_net.c skb_reserve(skb, hdr_len + LL_RESERVED_SPACE(ndev)); ndev 496 drivers/infiniband/sw/rxe/rxe_net.c skb->dev = ndev; ndev 520 drivers/infiniband/sw/rxe/rxe_net.c return rxe->ndev->name; ndev 528 drivers/infiniband/sw/rxe/rxe_net.c int rxe_net_add(const char *ibdev_name, struct net_device *ndev) ndev 537 drivers/infiniband/sw/rxe/rxe_net.c rxe->ndev = ndev; ndev 539 drivers/infiniband/sw/rxe/rxe_net.c err = rxe_add(rxe, ndev->mtu, ibdev_name); ndev 587 drivers/infiniband/sw/rxe/rxe_net.c if (netif_running(rxe->ndev) && netif_carrier_ok(rxe->ndev)) ndev 597 drivers/infiniband/sw/rxe/rxe_net.c struct net_device *ndev = netdev_notifier_info_to_dev(arg); ndev 598 drivers/infiniband/sw/rxe/rxe_net.c struct rxe_dev *rxe = rxe_get_dev_from_net(ndev); ndev 614 drivers/infiniband/sw/rxe/rxe_net.c pr_info("%s changed mtu to %d\n", ndev->name, ndev->mtu); ndev 615 drivers/infiniband/sw/rxe/rxe_net.c rxe_set_mtu(rxe, ndev->mtu); ndev 627 drivers/infiniband/sw/rxe/rxe_net.c event, ndev->name); ndev 46 drivers/infiniband/sw/rxe/rxe_net.h int rxe_net_add(const char *ibdev_name, struct net_device *ndev); ndev 61 drivers/infiniband/sw/rxe/rxe_sysfs.c struct net_device *ndev; ndev 70 drivers/infiniband/sw/rxe/rxe_sysfs.c ndev = dev_get_by_name(&init_net, intf); ndev 71 drivers/infiniband/sw/rxe/rxe_sysfs.c if (!ndev) { ndev 76 drivers/infiniband/sw/rxe/rxe_sysfs.c exists = rxe_get_dev_from_net(ndev); ndev 84 drivers/infiniband/sw/rxe/rxe_sysfs.c err = rxe_net_add("rxe%d", ndev); ndev 91 drivers/infiniband/sw/rxe/rxe_sysfs.c dev_put(ndev); ndev 73 drivers/infiniband/sw/rxe/rxe_verbs.c else if (dev_get_flags(rxe->ndev) & IFF_UP) ndev 1097 drivers/infiniband/sw/rxe/rxe_verbs.c dev_info(&rxe->ib_dev.dev, "added %s\n", netdev_name(rxe->ndev)); ndev 1172 drivers/infiniband/sw/rxe/rxe_verbs.c rxe->ndev->dev_addr); ndev 1211 drivers/infiniband/sw/rxe/rxe_verbs.c err = ib_device_set_netdev(&rxe->ib_dev, rxe->ndev, 1); ndev 391 drivers/infiniband/sw/rxe/rxe_verbs.h struct net_device *ndev; ndev 604 drivers/infiniband/ulp/ipoib/ipoib.h void ipoib_set_umcast(struct net_device *ndev, int umcast_val); ndev 1819 drivers/infiniband/ulp/ipoib/ipoib_main.c static void ipoib_parent_unregister_pre(struct net_device *ndev) ndev 1821 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_dev_priv *priv = ipoib_priv(ndev); ndev 1855 drivers/infiniband/ulp/ipoib/ipoib_main.c static int ipoib_parent_init(struct net_device *ndev) ndev 1857 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_dev_priv *priv = ipoib_priv(ndev); ndev 1893 drivers/infiniband/ulp/ipoib/ipoib_main.c static void ipoib_child_init(struct net_device *ndev) ndev 1895 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_dev_priv *priv = ipoib_priv(ndev); ndev 1904 drivers/infiniband/ulp/ipoib/ipoib_main.c static int ipoib_ndo_init(struct net_device *ndev) ndev 1906 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_dev_priv *priv = ipoib_priv(ndev); ndev 1910 drivers/infiniband/ulp/ipoib/ipoib_main.c ipoib_child_init(ndev); ndev 1912 drivers/infiniband/ulp/ipoib/ipoib_main.c rc = ipoib_parent_init(ndev); ndev 1918 drivers/infiniband/ulp/ipoib/ipoib_main.c ndev->mtu = IPOIB_UD_MTU(priv->max_ib_mtu); ndev 1919 drivers/infiniband/ulp/ipoib/ipoib_main.c priv->mcast_mtu = priv->admin_mtu = ndev->mtu; ndev 1920 drivers/infiniband/ulp/ipoib/ipoib_main.c ndev->max_mtu = IPOIB_CM_MTU; ndev 1922 drivers/infiniband/ulp/ipoib/ipoib_main.c ndev->neigh_priv_len = sizeof(struct ipoib_neigh); ndev 1930 drivers/infiniband/ulp/ipoib/ipoib_main.c ndev->broadcast[8] = priv->pkey >> 8; ndev 1931 drivers/infiniband/ulp/ipoib/ipoib_main.c ndev->broadcast[9] = priv->pkey & 0xff; ndev 1936 drivers/infiniband/ulp/ipoib/ipoib_main.c rc = ipoib_dev_init(ndev); ndev 2247 drivers/infiniband/ulp/ipoib/ipoib_main.c struct net_device *ndev = to_net_dev(dev); ndev 2248 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_dev_priv *priv = ipoib_priv(ndev); ndev 2257 drivers/infiniband/ulp/ipoib/ipoib_main.c struct net_device *ndev = to_net_dev(dev); ndev 2258 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_dev_priv *priv = ipoib_priv(ndev); ndev 2263 drivers/infiniband/ulp/ipoib/ipoib_main.c void ipoib_set_umcast(struct net_device *ndev, int umcast_val) ndev 2265 drivers/infiniband/ulp/ipoib/ipoib_main.c struct ipoib_dev_priv *priv = ipoib_priv(ndev); ndev 2412 drivers/infiniband/ulp/ipoib/ipoib_main.c struct net_device *ndev = to_net_dev(dev); ndev 2425 drivers/infiniband/ulp/ipoib/ipoib_main.c if (ndev->dev_port && ndev->dev_id == ndev->dev_port) ndev 2426 drivers/infiniband/ulp/ipoib/ipoib_main.c netdev_info_once(ndev, ndev 2430 drivers/infiniband/ulp/ipoib/ipoib_main.c return sprintf(buf, "%#x\n", ndev->dev_id); ndev 2446 drivers/infiniband/ulp/ipoib/ipoib_main.c struct net_device *ndev; ndev 2449 drivers/infiniband/ulp/ipoib/ipoib_main.c ndev = ipoib_intf_alloc(hca, port, format); ndev 2450 drivers/infiniband/ulp/ipoib/ipoib_main.c if (IS_ERR(ndev)) { ndev 2452 drivers/infiniband/ulp/ipoib/ipoib_main.c PTR_ERR(ndev)); ndev 2453 drivers/infiniband/ulp/ipoib/ipoib_main.c return ndev; ndev 2455 drivers/infiniband/ulp/ipoib/ipoib_main.c priv = ipoib_priv(ndev); ndev 2464 drivers/infiniband/ulp/ipoib/ipoib_main.c result = register_netdev(ndev); ndev 2469 drivers/infiniband/ulp/ipoib/ipoib_main.c ipoib_parent_unregister_pre(ndev); ndev 2470 drivers/infiniband/ulp/ipoib/ipoib_main.c ipoib_intf_free(ndev); ndev 2471 drivers/infiniband/ulp/ipoib/ipoib_main.c free_netdev(ndev); ndev 2490 drivers/infiniband/ulp/ipoib/ipoib_main.c ndev->priv_destructor = ipoib_intf_free; ndev 2492 drivers/infiniband/ulp/ipoib/ipoib_main.c if (ipoib_intercept_dev_id_attr(ndev)) ndev 2494 drivers/infiniband/ulp/ipoib/ipoib_main.c if (ipoib_cm_add_mode_attr(ndev)) ndev 2496 drivers/infiniband/ulp/ipoib/ipoib_main.c if (ipoib_add_pkey_attr(ndev)) ndev 2498 drivers/infiniband/ulp/ipoib/ipoib_main.c if (ipoib_add_umcast_attr(ndev)) ndev 2500 drivers/infiniband/ulp/ipoib/ipoib_main.c if (device_create_file(&ndev->dev, &dev_attr_create_child)) ndev 2502 drivers/infiniband/ulp/ipoib/ipoib_main.c if (device_create_file(&ndev->dev, &dev_attr_delete_child)) ndev 2505 drivers/infiniband/ulp/ipoib/ipoib_main.c return ndev; ndev 2508 drivers/infiniband/ulp/ipoib/ipoib_main.c ipoib_parent_unregister_pre(ndev); ndev 2509 drivers/infiniband/ulp/ipoib/ipoib_main.c unregister_netdev(ndev); ndev 98 drivers/infiniband/ulp/ipoib/ipoib_vlan.c struct net_device *ndev = priv->dev; ndev 107 drivers/infiniband/ulp/ipoib/ipoib_vlan.c ndev->priv_destructor = ipoib_intf_free; ndev 129 drivers/infiniband/ulp/ipoib/ipoib_vlan.c result = register_netdevice(ndev); ndev 142 drivers/infiniband/ulp/ipoib/ipoib_vlan.c if (ipoib_cm_add_mode_attr(ndev)) ndev 144 drivers/infiniband/ulp/ipoib/ipoib_vlan.c if (ipoib_add_pkey_attr(ndev)) ndev 146 drivers/infiniband/ulp/ipoib/ipoib_vlan.c if (ipoib_add_umcast_attr(ndev)) ndev 149 drivers/infiniband/ulp/ipoib/ipoib_vlan.c if (device_create_file(&ndev->dev, &dev_attr_parent)) ndev 160 drivers/infiniband/ulp/ipoib/ipoib_vlan.c if (ndev->priv_destructor) ndev 161 drivers/infiniband/ulp/ipoib/ipoib_vlan.c ndev->priv_destructor(ndev); ndev 169 drivers/infiniband/ulp/ipoib/ipoib_vlan.c struct net_device *ndev; ndev 188 drivers/infiniband/ulp/ipoib/ipoib_vlan.c ndev = ipoib_intf_alloc(ppriv->ca, ppriv->port, intf_name); ndev 189 drivers/infiniband/ulp/ipoib/ipoib_vlan.c if (IS_ERR(ndev)) { ndev 190 drivers/infiniband/ulp/ipoib/ipoib_vlan.c result = PTR_ERR(ndev); ndev 193 drivers/infiniband/ulp/ipoib/ipoib_vlan.c priv = ipoib_priv(ndev); ndev 197 drivers/infiniband/ulp/ipoib/ipoib_vlan.c if (result && ndev->reg_state == NETREG_UNINITIALIZED) ndev 198 drivers/infiniband/ulp/ipoib/ipoib_vlan.c free_netdev(ndev); ndev 234 drivers/md/dm-init.c unsigned long ndev = 0; ndev 245 drivers/md/dm-init.c if (++ndev > DM_MAX_DEVICES) { ndev 247 drivers/md/dm-init.c ndev, DM_MAX_DEVICES); ndev 56 drivers/media/pci/netup_unidvb/netup_unidvb.h struct netup_unidvb_dev *ndev; ndev 125 drivers/media/pci/netup_unidvb/netup_unidvb.h int netup_i2c_register(struct netup_unidvb_dev *ndev); ndev 126 drivers/media/pci/netup_unidvb/netup_unidvb.h void netup_i2c_unregister(struct netup_unidvb_dev *ndev); ndev 127 drivers/media/pci/netup_unidvb/netup_unidvb.h irqreturn_t netup_ci_interrupt(struct netup_unidvb_dev *ndev); ndev 133 drivers/media/pci/netup_unidvb/netup_unidvb.h int netup_spi_init(struct netup_unidvb_dev *ndev); ndev 134 drivers/media/pci/netup_unidvb/netup_unidvb.h void netup_spi_release(struct netup_unidvb_dev *ndev); ndev 46 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c irqreturn_t netup_ci_interrupt(struct netup_unidvb_dev *ndev) ndev 48 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c writew(0x101, ndev->bmmio0 + CAM_CTRLSTAT_CLR); ndev 146 drivers/media/pci/netup_unidvb/netup_unidvb_core.c struct netup_unidvb_dev *ndev; ndev 150 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev = dma->ndev; ndev 151 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&ndev->pci_dev->dev, "%s(): num %d is_dvb_tc %d\n", ndev 153 drivers/media/pci/netup_unidvb/netup_unidvb_core.c reg = readb(ndev->bmmio0 + GPIO_REG_IO); ndev 157 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (ndev->rev == NETUP_HW_REV_1_4) ndev 164 drivers/media/pci/netup_unidvb/netup_unidvb_core.c writeb(reg, ndev->bmmio0 + GPIO_REG_IO); ndev 168 drivers/media/pci/netup_unidvb/netup_unidvb_core.c static void netup_unidvb_dev_enable(struct netup_unidvb_dev *ndev) ndev 173 drivers/media/pci/netup_unidvb/netup_unidvb_core.c writel(AVL_IRQ_ENABLE, ndev->bmmio0 + AVL_PCIE_IENR); ndev 175 drivers/media/pci/netup_unidvb/netup_unidvb_core.c writeb(0x00, ndev->bmmio0 + GPIO_REG_IO); ndev 181 drivers/media/pci/netup_unidvb/netup_unidvb_core.c writeb(gpio_reg, ndev->bmmio0 + GPIO_REG_IO); ndev 182 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&ndev->pci_dev->dev, ndev 184 drivers/media/pci/netup_unidvb/netup_unidvb_core.c __func__, readl(ndev->bmmio0 + AVL_PCIE_IENR), ndev 185 drivers/media/pci/netup_unidvb/netup_unidvb_core.c (int)readb(ndev->bmmio0 + GPIO_REG_IO)); ndev 194 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&dma->ndev->pci_dev->dev, ndev 198 drivers/media/pci/netup_unidvb/netup_unidvb_core.c writew(irq_mask, dma->ndev->bmmio0 + REG_IMASK_SET); ndev 201 drivers/media/pci/netup_unidvb/netup_unidvb_core.c writew(irq_mask, dma->ndev->bmmio0 + REG_IMASK_CLEAR); ndev 210 drivers/media/pci/netup_unidvb/netup_unidvb_core.c struct device *dev = &dma->ndev->pci_dev->dev; ndev 241 drivers/media/pci/netup_unidvb/netup_unidvb_core.c queue_work(dma->ndev->wq, &dma->work); ndev 250 drivers/media/pci/netup_unidvb/netup_unidvb_core.c struct netup_unidvb_dev *ndev = pci_get_drvdata(pci_dev); ndev 255 drivers/media/pci/netup_unidvb/netup_unidvb_core.c writel(0, ndev->bmmio0 + AVL_PCIE_IENR); ndev 257 drivers/media/pci/netup_unidvb/netup_unidvb_core.c reg40 = readl(ndev->bmmio0 + AVL_PCIE_ISR); ndev 260 drivers/media/pci/netup_unidvb/netup_unidvb_core.c reg_isr = readw(ndev->bmmio0 + REG_ISR); ndev 262 drivers/media/pci/netup_unidvb/netup_unidvb_core.c iret = netup_i2c_interrupt(&ndev->i2c[0]); ndev 264 drivers/media/pci/netup_unidvb/netup_unidvb_core.c iret = netup_i2c_interrupt(&ndev->i2c[1]); ndev 266 drivers/media/pci/netup_unidvb/netup_unidvb_core.c iret = netup_spi_interrupt(ndev->spi); ndev 268 drivers/media/pci/netup_unidvb/netup_unidvb_core.c iret = netup_dma_interrupt(&ndev->dma[0]); ndev 270 drivers/media/pci/netup_unidvb/netup_unidvb_core.c iret = netup_dma_interrupt(&ndev->dma[1]); ndev 272 drivers/media/pci/netup_unidvb/netup_unidvb_core.c iret = netup_ci_interrupt(ndev); ndev 280 drivers/media/pci/netup_unidvb/netup_unidvb_core.c writel(AVL_IRQ_ENABLE, ndev->bmmio0 + AVL_PCIE_IENR); ndev 292 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&dma->ndev->pci_dev->dev, "%s()\n", __func__); ndev 298 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&dma->ndev->pci_dev->dev, "%s() nbuffers=%d sizes[0]=%d\n", ndev 310 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&dma->ndev->pci_dev->dev, "%s(): buf 0x%p\n", __func__, buf); ndev 323 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&dma->ndev->pci_dev->dev, "%s(): %p\n", __func__, buf); ndev 334 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&dma->ndev->pci_dev->dev, "%s()\n", __func__); ndev 343 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&dma->ndev->pci_dev->dev, "%s()\n", __func__); ndev 371 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_err(&dma->ndev->pci_dev->dev, ndev 377 drivers/media/pci/netup_unidvb/netup_unidvb_core.c static int netup_unidvb_dvb_init(struct netup_unidvb_dev *ndev, ndev 385 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (ndev->rev == NETUP_HW_REV_1_3) ndev 391 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&ndev->pci_dev->dev, ndev 395 drivers/media/pci/netup_unidvb/netup_unidvb_core.c mutex_init(&ndev->frontends[num].lock); ndev 396 drivers/media/pci/netup_unidvb/netup_unidvb_core.c INIT_LIST_HEAD(&ndev->frontends[num].felist); ndev 399 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (vb2_dvb_alloc_frontend(&ndev->frontends[num], i+1) ndev 401 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_err(&ndev->pci_dev->dev, ndev 409 drivers/media/pci/netup_unidvb/netup_unidvb_core.c fes[i] = vb2_dvb_get_frontend(&ndev->frontends[num], i+1); ndev 411 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_err(&ndev->pci_dev->dev, ndev 419 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_queue_init(&ndev->dma[num], &fes[i]->dvb.dvbq); ndev 425 drivers/media/pci/netup_unidvb/netup_unidvb_core.c &demod_config, &ndev->i2c[num].adap); ndev 427 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&ndev->pci_dev->dev, ndev 433 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (ndev->rev == NETUP_HW_REV_1_3) { ndev 434 drivers/media/pci/netup_unidvb/netup_unidvb_core.c horus3a_conf.set_tuner_priv = &ndev->dma[num]; ndev 436 drivers/media/pci/netup_unidvb/netup_unidvb_core.c &horus3a_conf, &ndev->i2c[num].adap)) { ndev 437 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&ndev->pci_dev->dev, ndev 443 drivers/media/pci/netup_unidvb/netup_unidvb_core.c helene_conf.set_tuner_priv = &ndev->dma[num]; ndev 445 drivers/media/pci/netup_unidvb/netup_unidvb_core.c &helene_conf, &ndev->i2c[num].adap)) { ndev 446 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_err(&ndev->pci_dev->dev, ndev 454 drivers/media/pci/netup_unidvb/netup_unidvb_core.c &lnbh25_conf, &ndev->i2c[num].adap)) { ndev 455 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&ndev->pci_dev->dev, ndev 462 drivers/media/pci/netup_unidvb/netup_unidvb_core.c &demod_config, &ndev->i2c[num].adap); ndev 464 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&ndev->pci_dev->dev, ndev 469 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (ndev->rev == NETUP_HW_REV_1_3) { ndev 470 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ascot2e_conf.set_tuner_priv = &ndev->dma[num]; ndev 472 drivers/media/pci/netup_unidvb/netup_unidvb_core.c &ascot2e_conf, &ndev->i2c[num].adap)) { ndev 473 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&ndev->pci_dev->dev, ndev 479 drivers/media/pci/netup_unidvb/netup_unidvb_core.c helene_conf.set_tuner_priv = &ndev->dma[num]; ndev 481 drivers/media/pci/netup_unidvb/netup_unidvb_core.c &helene_conf, &ndev->i2c[num].adap)) { ndev 482 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_err(&ndev->pci_dev->dev, ndev 489 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (vb2_dvb_register_bus(&ndev->frontends[num], ndev 491 drivers/media/pci/netup_unidvb/netup_unidvb_core.c &ndev->pci_dev->dev, NULL, adapter_nr, 1)) { ndev 492 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&ndev->pci_dev->dev, ndev 497 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_info(&ndev->pci_dev->dev, "DVB init done, num=%d\n", num); ndev 500 drivers/media/pci/netup_unidvb/netup_unidvb_core.c vb2_dvb_dealloc_frontends(&ndev->frontends[num]); ndev 504 drivers/media/pci/netup_unidvb/netup_unidvb_core.c static void netup_unidvb_dvb_fini(struct netup_unidvb_dev *ndev, int num) ndev 507 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_err(&ndev->pci_dev->dev, ndev 512 drivers/media/pci/netup_unidvb/netup_unidvb_core.c vb2_dvb_unregister_bus(&ndev->frontends[num]); ndev 513 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_info(&ndev->pci_dev->dev, ndev 517 drivers/media/pci/netup_unidvb/netup_unidvb_core.c static int netup_unidvb_dvb_setup(struct netup_unidvb_dev *ndev) ndev 521 drivers/media/pci/netup_unidvb/netup_unidvb_core.c res = netup_unidvb_dvb_init(ndev, 0); ndev 524 drivers/media/pci/netup_unidvb/netup_unidvb_core.c res = netup_unidvb_dvb_init(ndev, 1); ndev 526 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_dvb_fini(ndev, 0); ndev 538 drivers/media/pci/netup_unidvb/netup_unidvb_core.c struct netup_unidvb_dev *ndev = dma->ndev; ndev 541 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_err(&ndev->pci_dev->dev, ndev 576 drivers/media/pci/netup_unidvb/netup_unidvb_core.c struct netup_unidvb_dev *ndev = dma->ndev; ndev 582 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&ndev->pci_dev->dev, ndev 588 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&ndev->pci_dev->dev, ndev 595 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&ndev->pci_dev->dev, ndev 604 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&ndev->pci_dev->dev, ndev 635 drivers/media/pci/netup_unidvb/netup_unidvb_core.c struct netup_unidvb_dev *ndev = dma->ndev; ndev 637 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&ndev->pci_dev->dev, "%s()\n", __func__); ndev 641 drivers/media/pci/netup_unidvb/netup_unidvb_core.c static int netup_unidvb_dma_init(struct netup_unidvb_dev *ndev, int num) ndev 644 drivers/media/pci/netup_unidvb/netup_unidvb_core.c struct device *dev = &ndev->pci_dev->dev; ndev 651 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dma = &ndev->dma[num]; ndev 654 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dma->ndev = ndev; ndev 659 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dma->ring_buffer_size = ndev->dma_size / 2; ndev 660 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dma->addr_virt = ndev->dma_virt + dma->ring_buffer_size * num; ndev 661 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dma->addr_phys = (dma_addr_t)((u64)ndev->dma_phys + ndev 671 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->bmmio0 + NETUP_DMA0_ADDR : ndev 672 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->bmmio0 + NETUP_DMA1_ADDR); ndev 677 drivers/media/pci/netup_unidvb/netup_unidvb_core.c writel(dma->high_addr, ndev->bmmio0 + 0x1000); ndev 684 drivers/media/pci/netup_unidvb/netup_unidvb_core.c static void netup_unidvb_dma_fini(struct netup_unidvb_dev *ndev, int num) ndev 690 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dev_dbg(&ndev->pci_dev->dev, "%s(): num %d\n", __func__, num); ndev 691 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dma = &ndev->dma[num]; ndev 698 drivers/media/pci/netup_unidvb/netup_unidvb_core.c static int netup_unidvb_dma_setup(struct netup_unidvb_dev *ndev) ndev 702 drivers/media/pci/netup_unidvb/netup_unidvb_core.c res = netup_unidvb_dma_init(ndev, 0); ndev 705 drivers/media/pci/netup_unidvb/netup_unidvb_core.c res = netup_unidvb_dma_init(ndev, 1); ndev 707 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_dma_fini(ndev, 0); ndev 710 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_dma_enable(&ndev->dma[0], 0); ndev 711 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_dma_enable(&ndev->dma[1], 0); ndev 715 drivers/media/pci/netup_unidvb/netup_unidvb_core.c static int netup_unidvb_ci_setup(struct netup_unidvb_dev *ndev, ndev 720 drivers/media/pci/netup_unidvb/netup_unidvb_core.c writew(NETUP_UNIDVB_IRQ_CI, ndev->bmmio0 + REG_IMASK_SET); ndev 721 drivers/media/pci/netup_unidvb/netup_unidvb_core.c res = netup_unidvb_ci_register(ndev, 0, pci_dev); ndev 724 drivers/media/pci/netup_unidvb/netup_unidvb_core.c res = netup_unidvb_ci_register(ndev, 1, pci_dev); ndev 726 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_ci_unregister(ndev, 0); ndev 777 drivers/media/pci/netup_unidvb/netup_unidvb_core.c struct netup_unidvb_dev *ndev; ndev 796 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev = kzalloc(sizeof(*ndev), GFP_KERNEL); ndev 797 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (!ndev) ndev 802 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->rev = NETUP_HW_REV_1_3; ndev 804 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->rev = NETUP_HW_REV_1_4; ndev 808 drivers/media/pci/netup_unidvb/netup_unidvb_core.c __func__, pci_dev->device, ndev->rev); ndev 810 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->old_fw = old_firmware; ndev 811 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->wq = create_singlethread_workqueue(NETUP_UNIDVB_NAME); ndev 812 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (!ndev->wq) { ndev 817 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->pci_dev = pci_dev; ndev 818 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->pci_bus = pci_dev->bus->number; ndev 819 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->pci_slot = PCI_SLOT(pci_dev->devfn); ndev 820 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->pci_func = PCI_FUNC(pci_dev->devfn); ndev 821 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->board_num = ndev->pci_bus*10 + ndev->pci_slot; ndev 822 drivers/media/pci/netup_unidvb/netup_unidvb_core.c pci_set_drvdata(pci_dev, ndev); ndev 825 drivers/media/pci/netup_unidvb/netup_unidvb_core.c __func__, ndev->board_num, ndev->pci_bus, ndev->pci_slot); ndev 863 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->lmmio0 = ioremap(pci_resource_start(pci_dev, 0), ndev 865 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (!ndev->lmmio0) { ndev 870 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->lmmio1 = ioremap(pci_resource_start(pci_dev, 1), ndev 872 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (!ndev->lmmio1) { ndev 877 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->bmmio0 = (u8 __iomem *)ndev->lmmio0; ndev 878 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->bmmio1 = (u8 __iomem *)ndev->lmmio1; ndev 882 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->lmmio0, (u32)pci_resource_len(pci_dev, 0), ndev 883 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->lmmio1, (u32)pci_resource_len(pci_dev, 1), ndev 891 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->dma_size = 2 * 188 * ndev 893 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->dma_virt = dma_alloc_coherent(&pci_dev->dev, ndev 894 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->dma_size, &ndev->dma_phys, GFP_KERNEL); ndev 895 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (!ndev->dma_virt) { ndev 900 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_dev_enable(ndev); ndev 901 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (spi_enable && netup_spi_init(ndev)) { ndev 911 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (netup_i2c_register(ndev)) { ndev 917 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->bmmio0 + REG_IMASK_SET); ndev 919 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (netup_unidvb_dvb_setup(ndev)) { ndev 923 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (netup_unidvb_ci_setup(ndev, pci_dev)) { ndev 927 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (netup_unidvb_dma_setup(ndev)) { ndev 935 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_ci_unregister(ndev, 0); ndev 936 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_ci_unregister(ndev, 1); ndev 938 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_dvb_fini(ndev, 0); ndev 939 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_dvb_fini(ndev, 1); ndev 941 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_i2c_unregister(ndev); ndev 943 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (ndev->spi) ndev 944 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_spi_release(ndev); ndev 946 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dma_free_coherent(&pci_dev->dev, ndev->dma_size, ndev 947 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->dma_virt, ndev->dma_phys); ndev 951 drivers/media/pci/netup_unidvb/netup_unidvb_core.c iounmap(ndev->lmmio1); ndev 953 drivers/media/pci/netup_unidvb/netup_unidvb_core.c iounmap(ndev->lmmio0); ndev 963 drivers/media/pci/netup_unidvb/netup_unidvb_core.c destroy_workqueue(ndev->wq); ndev 965 drivers/media/pci/netup_unidvb/netup_unidvb_core.c kfree(ndev); ndev 974 drivers/media/pci/netup_unidvb/netup_unidvb_core.c struct netup_unidvb_dev *ndev = pci_get_drvdata(pci_dev); ndev 977 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (!ndev->old_fw) { ndev 978 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_dma_fini(ndev, 0); ndev 979 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_dma_fini(ndev, 1); ndev 980 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_ci_unregister(ndev, 0); ndev 981 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_ci_unregister(ndev, 1); ndev 982 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_dvb_fini(ndev, 0); ndev 983 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_unidvb_dvb_fini(ndev, 1); ndev 984 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_i2c_unregister(ndev); ndev 986 drivers/media/pci/netup_unidvb/netup_unidvb_core.c if (ndev->spi) ndev 987 drivers/media/pci/netup_unidvb/netup_unidvb_core.c netup_spi_release(ndev); ndev 988 drivers/media/pci/netup_unidvb/netup_unidvb_core.c writew(0xffff, ndev->bmmio0 + REG_IMASK_CLEAR); ndev 989 drivers/media/pci/netup_unidvb/netup_unidvb_core.c dma_free_coherent(&ndev->pci_dev->dev, ndev->dma_size, ndev 990 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->dma_virt, ndev->dma_phys); ndev 992 drivers/media/pci/netup_unidvb/netup_unidvb_core.c iounmap(ndev->lmmio0); ndev 993 drivers/media/pci/netup_unidvb/netup_unidvb_core.c iounmap(ndev->lmmio1); ndev 1000 drivers/media/pci/netup_unidvb/netup_unidvb_core.c destroy_workqueue(ndev->wq); ndev 1001 drivers/media/pci/netup_unidvb/netup_unidvb_core.c kfree(ndev); ndev 296 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c static int netup_i2c_init(struct netup_unidvb_dev *ndev, int bus_num) ndev 302 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c dev_err(&ndev->pci_dev->dev, ndev 306 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c i2c = &ndev->i2c[bus_num]; ndev 309 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c i2c->regs = (struct netup_i2c_regs __iomem *)(ndev->bmmio0 + ndev 313 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c i2c->adap.dev.parent = &ndev->pci_dev->dev; ndev 318 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c dev_info(&ndev->pci_dev->dev, ndev 327 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c static void netup_i2c_remove(struct netup_unidvb_dev *ndev, int bus_num) ndev 332 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c dev_err(&ndev->pci_dev->dev, ndev 336 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c i2c = &ndev->i2c[bus_num]; ndev 340 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c dev_info(&ndev->pci_dev->dev, ndev 344 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c int netup_i2c_register(struct netup_unidvb_dev *ndev) ndev 348 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c ret = netup_i2c_init(ndev, 0); ndev 351 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c ret = netup_i2c_init(ndev, 1); ndev 353 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c netup_i2c_remove(ndev, 0); ndev 359 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c void netup_i2c_unregister(struct netup_unidvb_dev *ndev) ndev 361 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c netup_i2c_remove(ndev, 0); ndev 362 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c netup_i2c_remove(ndev, 1); ndev 173 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c int netup_spi_init(struct netup_unidvb_dev *ndev) ndev 178 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c master = spi_alloc_master(&ndev->pci_dev->dev, ndev 181 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c dev_err(&ndev->pci_dev->dev, ndev 194 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c nspi->regs = (struct netup_spi_regs __iomem *)(ndev->bmmio0 + 0x4000); ndev 196 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c writew(NETUP_UNIDVB_IRQ_SPI, ndev->bmmio0 + REG_IMASK_SET); ndev 197 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c ndev->spi = nspi; ndev 199 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c ndev->spi = NULL; ndev 200 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c dev_err(&ndev->pci_dev->dev, ndev 207 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c ndev->pci_bus, ndev 208 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c ndev->pci_slot, ndev 209 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c ndev->pci_func); ndev 211 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c ndev->spi = NULL; ndev 212 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c dev_err(&ndev->pci_dev->dev, ndev 216 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c dev_dbg(&ndev->pci_dev->dev, "%s(): SPI init OK\n", __func__); ndev 220 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c void netup_spi_release(struct netup_unidvb_dev *ndev) ndev 224 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c struct netup_spi *spi = ndev->spi; ndev 236 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c ndev->spi = NULL; ndev 253 drivers/media/radio/radio-sf16fmr2.c static int fmr2_isa_match(struct device *pdev, unsigned int ndev) ndev 296 drivers/media/radio/radio-sf16fmr2.c static int fmr2_isa_remove(struct device *pdev, unsigned int ndev) ndev 380 drivers/mtd/maps/pcmciamtd.c for (i = 0; i < t->ndev; i++) { ndev 73 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s.\n", ndev 150 drivers/net/caif/caif_hsi.c cfhsi->ndev->stats.tx_errors++; ndev 151 drivers/net/caif/caif_hsi.c cfhsi->ndev->stats.tx_dropped++; ndev 169 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s.\n", ndev 176 drivers/net/caif/caif_hsi.c netdev_warn(cfhsi->ndev, ndev 190 drivers/net/caif/caif_hsi.c netdev_warn(cfhsi->ndev, ndev 201 drivers/net/caif/caif_hsi.c netdev_warn(cfhsi->ndev, ndev 207 drivers/net/caif/caif_hsi.c netdev_warn(cfhsi->ndev, ndev 252 drivers/net/caif/caif_hsi.c cfhsi->ndev->stats.tx_packets++; ndev 253 drivers/net/caif/caif_hsi.c cfhsi->ndev->stats.tx_bytes += skb->len; ndev 293 drivers/net/caif/caif_hsi.c cfhsi->ndev->stats.tx_packets++; ndev 294 drivers/net/caif/caif_hsi.c cfhsi->ndev->stats.tx_bytes += skb->len; ndev 335 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s.\n", __func__); ndev 361 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: TX error %d.\n", ndev 368 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s.\n", __func__); ndev 383 drivers/net/caif/caif_hsi.c cfhsi->cfdev.flowctrl(cfhsi->ndev, ON); ndev 403 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s.\n", ndev 420 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: Invalid descriptor.\n", ndev 441 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: Invalid length.\n", ndev 449 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: Out of memory !\n", ndev 459 drivers/net/caif/caif_hsi.c skb->dev = cfhsi->ndev; ndev 472 drivers/net/caif/caif_hsi.c cfhsi->ndev->stats.rx_packets++; ndev 473 drivers/net/caif/caif_hsi.c cfhsi->ndev->stats.rx_bytes += len; ndev 489 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, ndev 536 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: Invalid descriptor.\n", ndev 569 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: Invalid length.\n", ndev 577 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: Out of memory !\n", ndev 588 drivers/net/caif/caif_hsi.c skb->dev = cfhsi->ndev; ndev 600 drivers/net/caif/caif_hsi.c cfhsi->ndev->stats.rx_packets++; ndev 601 drivers/net/caif/caif_hsi.c cfhsi->ndev->stats.rx_bytes += len; ndev 622 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s\n", __func__); ndev 690 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s: Start RX.\n", ndev 696 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: RX error %d.\n", ndev 698 drivers/net/caif/caif_hsi.c cfhsi->ndev->stats.rx_errors++; ndev 699 drivers/net/caif/caif_hsi.c cfhsi->ndev->stats.rx_dropped++; ndev 733 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: Out of sync.\n", __func__); ndev 743 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s.\n", ndev 754 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s.\n", ndev 789 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s: Start waiting.\n", ndev 799 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: Signalled: %ld.\n", ndev 810 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s: Timeout.\n", ndev 817 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s: Bytes in FIFO: %u.\n", ndev 825 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: CA Wake missed !.\n", ndev 840 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s: Woken.\n", ndev 848 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s: Start RX.\n", __func__); ndev 852 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: RX err %d.\n", __func__, res); ndev 861 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s: Peer wake, start timer.\n", ndev 870 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s: Host wake.\n", ndev 882 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: TX error %d.\n", ndev 887 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, ndev 901 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s.\n", __func__); ndev 916 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: Signalled: %ld.\n", ndev 923 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: Timeout.\n", __func__); ndev 929 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: CA Wake missed !.\n", ndev 947 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: FIFO Timeout.\n", __func__); ndev 963 drivers/net/caif/caif_hsi.c dev_close(cfhsi->ndev); ndev 972 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s.\n", ndev 991 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s.\n", ndev 1003 drivers/net/caif/caif_hsi.c netdev_dbg(cfhsi->ndev, "%s.\n", ndev 1059 drivers/net/caif/caif_hsi.c cfhsi->cfdev.flowctrl(cfhsi->ndev, OFF); ndev 1095 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: TX error %d.\n", ndev 1127 drivers/net/caif/caif_hsi.c cfhsi->ndev = dev; ndev 1131 drivers/net/caif/caif_hsi.c static int cfhsi_open(struct net_device *ndev) ndev 1133 drivers/net/caif/caif_hsi.c struct cfhsi *cfhsi = netdev_priv(ndev); ndev 1199 drivers/net/caif/caif_hsi.c cfhsi->wq = alloc_ordered_workqueue(cfhsi->ndev->name, WQ_MEM_RECLAIM); ndev 1201 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: Failed to create work queue.\n", ndev 1222 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, ndev 1231 drivers/net/caif/caif_hsi.c netdev_err(cfhsi->ndev, "%s: Can't flush FIFO: %d.\n", ndev 1251 drivers/net/caif/caif_hsi.c static int cfhsi_close(struct net_device *ndev) ndev 1253 drivers/net/caif/caif_hsi.c struct cfhsi *cfhsi = netdev_priv(ndev); ndev 1458 drivers/net/caif/caif_hsi.c unregister_netdevice(cfhsi->ndev); ndev 370 drivers/net/caif/caif_spi.c cfspi->ndev->stats.tx_packets++; ndev 371 drivers/net/caif/caif_spi.c cfspi->ndev->stats.tx_bytes += skb->len; ndev 448 drivers/net/caif/caif_spi.c cfspi->cfdev.flowctrl(cfspi->ndev, 1); ndev 514 drivers/net/caif/caif_spi.c cfspi->cfdev.flowctrl(cfspi->ndev, 0); ndev 549 drivers/net/caif/caif_spi.c skb = netdev_alloc_skb(cfspi->ndev, pkt_len + 1); ndev 564 drivers/net/caif/caif_spi.c res = cfspi_xmit(skb, cfspi->ndev); ndev 567 drivers/net/caif/caif_spi.c cfspi->ndev->stats.rx_packets++; ndev 568 drivers/net/caif/caif_spi.c cfspi->ndev->stats.rx_bytes += pkt_len; ndev 570 drivers/net/caif/caif_spi.c cfspi->ndev->stats.rx_dropped++; ndev 686 drivers/net/caif/caif_spi.c cfspi->ndev = NULL; ndev 722 drivers/net/caif/caif_spi.c cfspi->ndev = dev; ndev 728 drivers/net/caif/caif_spi.c struct net_device *ndev; ndev 736 drivers/net/caif/caif_spi.c ndev = alloc_netdev(sizeof(struct cfspi), "cfspi%d", ndev 738 drivers/net/caif/caif_spi.c if (!ndev) ndev 741 drivers/net/caif/caif_spi.c cfspi = netdev_priv(ndev); ndev 742 drivers/net/caif/caif_spi.c netif_stop_queue(ndev); ndev 743 drivers/net/caif/caif_spi.c cfspi->ndev = ndev; ndev 752 drivers/net/caif/caif_spi.c res = register_netdev(ndev); ndev 760 drivers/net/caif/caif_spi.c free_netdev(ndev); ndev 779 drivers/net/caif/caif_spi.c unregister_netdev(cfspi->ndev); ndev 106 drivers/net/caif/caif_virtio.c struct net_device *ndev; ndev 199 drivers/net/caif/caif_virtio.c netif_tx_wake_all_queues(cfv->ndev); ndev 226 drivers/net/caif/caif_virtio.c netdev_err(cfv->ndev, ndev 237 drivers/net/caif/caif_virtio.c skb = netdev_alloc_skb(cfv->ndev, frm_len + pad_len); ndev 297 drivers/net/caif/caif_virtio.c skb->dev = cfv->ndev; ndev 300 drivers/net/caif/caif_virtio.c ++cfv->ndev->stats.rx_dropped; ndev 302 drivers/net/caif/caif_virtio.c ++cfv->ndev->stats.rx_packets; ndev 303 drivers/net/caif/caif_virtio.c cfv->ndev->stats.rx_bytes += skb_len; ndev 337 drivers/net/caif/caif_virtio.c netdev_warn(cfv->ndev, "Bad ring, disable device\n"); ndev 338 drivers/net/caif/caif_virtio.c cfv->ndev->stats.rx_dropped = riov->used - riov->i; ndev 341 drivers/net/caif/caif_virtio.c netif_carrier_off(cfv->ndev); ndev 386 drivers/net/caif/caif_virtio.c if (cfv->allocsz <= (num_possible_cpus() + 1) * cfv->ndev->mtu) ndev 390 drivers/net/caif/caif_virtio.c if (cfv->allocsz <= num_possible_cpus() * cfv->ndev->mtu) { ndev 391 drivers/net/caif/caif_virtio.c netdev_info(cfv->ndev, "Not enough device memory\n"); ndev 405 drivers/net/caif/caif_virtio.c netdev_dbg(cfv->ndev, "Allocated %zd bytes from dma-memory\n", ndev 422 drivers/net/caif/caif_virtio.c cfv->reserved_size = num_possible_cpus() * cfv->ndev->mtu; ndev 491 drivers/net/caif/caif_virtio.c netdev_warn(cfv->ndev, "Invalid packet len (%d > %d)\n", ndev 571 drivers/net/caif/caif_virtio.c netdev_warn(cfv->ndev, "Out of gen_pool memory\n"); ndev 578 drivers/net/caif/caif_virtio.c netdev_warn(cfv->ndev, "Failed adding buffer to TX vring:%d\n", ndev 584 drivers/net/caif/caif_virtio.c cfv->ndev->stats.tx_packets++; ndev 585 drivers/net/caif/caif_virtio.c cfv->ndev->stats.tx_bytes += skb->len; ndev 595 drivers/net/caif/caif_virtio.c cfv->ndev->stats.tx_dropped++; ndev 626 drivers/net/caif/caif_virtio.c cfv->debugfs = debugfs_create_dir(netdev_name(cfv->ndev), NULL); ndev 664 drivers/net/caif/caif_virtio.c cfv->ndev = netdev; ndev 737 drivers/net/caif/caif_virtio.c netdev_warn(cfv->ndev, "CAIF Virtio probe failed:%d\n", err); ndev 752 drivers/net/caif/caif_virtio.c dev_close(cfv->ndev); ndev 763 drivers/net/caif/caif_virtio.c unregister_netdev(cfv->ndev); ndev 1193 drivers/net/can/at91_can.c struct net_device *ndev = to_net_dev(dev); ndev 1194 drivers/net/can/at91_can.c struct at91_priv *priv = netdev_priv(ndev); ndev 1201 drivers/net/can/at91_can.c if (ndev->flags & IFF_UP) { ndev 422 drivers/net/can/c_can/c_can_platform.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 423 drivers/net/can/c_can/c_can_platform.c struct c_can_priv *priv = netdev_priv(ndev); ndev 430 drivers/net/can/c_can/c_can_platform.c if (netif_running(ndev)) { ndev 431 drivers/net/can/c_can/c_can_platform.c netif_stop_queue(ndev); ndev 432 drivers/net/can/c_can/c_can_platform.c netif_device_detach(ndev); ndev 435 drivers/net/can/c_can/c_can_platform.c ret = c_can_power_down(ndev); ndev 437 drivers/net/can/c_can/c_can_platform.c netdev_err(ndev, "failed to enter power down mode\n"); ndev 449 drivers/net/can/c_can/c_can_platform.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 450 drivers/net/can/c_can/c_can_platform.c struct c_can_priv *priv = netdev_priv(ndev); ndev 457 drivers/net/can/c_can/c_can_platform.c ret = c_can_power_up(ndev); ndev 459 drivers/net/can/c_can/c_can_platform.c netdev_err(ndev, "Still in power down mode\n"); ndev 465 drivers/net/can/c_can/c_can_platform.c if (netif_running(ndev)) { ndev 466 drivers/net/can/c_can/c_can_platform.c netif_device_attach(ndev); ndev 467 drivers/net/can/c_can/c_can_platform.c netif_start_queue(ndev); ndev 222 drivers/net/can/ifi_canfd/ifi_canfd.c struct net_device *ndev; ndev 226 drivers/net/can/ifi_canfd/ifi_canfd.c static void ifi_canfd_irq_enable(struct net_device *ndev, bool enable) ndev 228 drivers/net/can/ifi_canfd/ifi_canfd.c struct ifi_canfd_priv *priv = netdev_priv(ndev); ndev 248 drivers/net/can/ifi_canfd/ifi_canfd.c static void ifi_canfd_read_fifo(struct net_device *ndev) ndev 250 drivers/net/can/ifi_canfd/ifi_canfd.c struct net_device_stats *stats = &ndev->stats; ndev 251 drivers/net/can/ifi_canfd/ifi_canfd.c struct ifi_canfd_priv *priv = netdev_priv(ndev); ndev 262 drivers/net/can/ifi_canfd/ifi_canfd.c skb = alloc_canfd_skb(ndev, &cf); ndev 264 drivers/net/can/ifi_canfd/ifi_canfd.c skb = alloc_can_skb(ndev, (struct can_frame **)&cf); ndev 298 drivers/net/can/ifi_canfd/ifi_canfd.c netdev_dbg(ndev, "ESI Error\n"); ndev 324 drivers/net/can/ifi_canfd/ifi_canfd.c static int ifi_canfd_do_rx_poll(struct net_device *ndev, int quota) ndev 326 drivers/net/can/ifi_canfd/ifi_canfd.c struct ifi_canfd_priv *priv = netdev_priv(ndev); ndev 332 drivers/net/can/ifi_canfd/ifi_canfd.c netdev_dbg(ndev, "No messages in RX FIFO\n"); ndev 342 drivers/net/can/ifi_canfd/ifi_canfd.c ifi_canfd_read_fifo(ndev); ndev 349 drivers/net/can/ifi_canfd/ifi_canfd.c can_led_event(ndev, CAN_LED_EVENT_RX); ndev 354 drivers/net/can/ifi_canfd/ifi_canfd.c static int ifi_canfd_handle_lost_msg(struct net_device *ndev) ndev 356 drivers/net/can/ifi_canfd/ifi_canfd.c struct net_device_stats *stats = &ndev->stats; ndev 360 drivers/net/can/ifi_canfd/ifi_canfd.c netdev_err(ndev, "RX FIFO overflow, message(s) lost.\n"); ndev 365 drivers/net/can/ifi_canfd/ifi_canfd.c skb = alloc_can_err_skb(ndev, &frame); ndev 377 drivers/net/can/ifi_canfd/ifi_canfd.c static int ifi_canfd_handle_lec_err(struct net_device *ndev) ndev 379 drivers/net/can/ifi_canfd/ifi_canfd.c struct ifi_canfd_priv *priv = netdev_priv(ndev); ndev 380 drivers/net/can/ifi_canfd/ifi_canfd.c struct net_device_stats *stats = &ndev->stats; ndev 399 drivers/net/can/ifi_canfd/ifi_canfd.c skb = alloc_can_err_skb(ndev, &cf); ndev 440 drivers/net/can/ifi_canfd/ifi_canfd.c static int ifi_canfd_get_berr_counter(const struct net_device *ndev, ndev 443 drivers/net/can/ifi_canfd/ifi_canfd.c struct ifi_canfd_priv *priv = netdev_priv(ndev); ndev 455 drivers/net/can/ifi_canfd/ifi_canfd.c static int ifi_canfd_handle_state_change(struct net_device *ndev, ndev 458 drivers/net/can/ifi_canfd/ifi_canfd.c struct ifi_canfd_priv *priv = netdev_priv(ndev); ndev 459 drivers/net/can/ifi_canfd/ifi_canfd.c struct net_device_stats *stats = &ndev->stats; ndev 483 drivers/net/can/ifi_canfd/ifi_canfd.c ifi_canfd_irq_enable(ndev, 0); ndev 485 drivers/net/can/ifi_canfd/ifi_canfd.c can_bus_off(ndev); ndev 492 drivers/net/can/ifi_canfd/ifi_canfd.c skb = alloc_can_err_skb(ndev, &cf); ndev 496 drivers/net/can/ifi_canfd/ifi_canfd.c ifi_canfd_get_berr_counter(ndev, &bec); ndev 532 drivers/net/can/ifi_canfd/ifi_canfd.c static int ifi_canfd_handle_state_errors(struct net_device *ndev) ndev 534 drivers/net/can/ifi_canfd/ifi_canfd.c struct ifi_canfd_priv *priv = netdev_priv(ndev); ndev 540 drivers/net/can/ifi_canfd/ifi_canfd.c netdev_dbg(ndev, "Error, entered active state\n"); ndev 541 drivers/net/can/ifi_canfd/ifi_canfd.c work_done += ifi_canfd_handle_state_change(ndev, ndev 547 drivers/net/can/ifi_canfd/ifi_canfd.c netdev_dbg(ndev, "Error, entered warning state\n"); ndev 548 drivers/net/can/ifi_canfd/ifi_canfd.c work_done += ifi_canfd_handle_state_change(ndev, ndev 554 drivers/net/can/ifi_canfd/ifi_canfd.c netdev_dbg(ndev, "Error, entered passive state\n"); ndev 555 drivers/net/can/ifi_canfd/ifi_canfd.c work_done += ifi_canfd_handle_state_change(ndev, ndev 561 drivers/net/can/ifi_canfd/ifi_canfd.c netdev_dbg(ndev, "Error, entered bus-off state\n"); ndev 562 drivers/net/can/ifi_canfd/ifi_canfd.c work_done += ifi_canfd_handle_state_change(ndev, ndev 571 drivers/net/can/ifi_canfd/ifi_canfd.c struct net_device *ndev = napi->dev; ndev 572 drivers/net/can/ifi_canfd/ifi_canfd.c struct ifi_canfd_priv *priv = netdev_priv(ndev); ndev 577 drivers/net/can/ifi_canfd/ifi_canfd.c work_done += ifi_canfd_handle_state_errors(ndev); ndev 581 drivers/net/can/ifi_canfd/ifi_canfd.c work_done += ifi_canfd_handle_lost_msg(ndev); ndev 585 drivers/net/can/ifi_canfd/ifi_canfd.c work_done += ifi_canfd_handle_lec_err(ndev); ndev 589 drivers/net/can/ifi_canfd/ifi_canfd.c work_done += ifi_canfd_do_rx_poll(ndev, quota - work_done); ndev 593 drivers/net/can/ifi_canfd/ifi_canfd.c ifi_canfd_irq_enable(ndev, 1); ndev 601 drivers/net/can/ifi_canfd/ifi_canfd.c struct net_device *ndev = (struct net_device *)dev_id; ndev 602 drivers/net/can/ifi_canfd/ifi_canfd.c struct ifi_canfd_priv *priv = netdev_priv(ndev); ndev 603 drivers/net/can/ifi_canfd/ifi_canfd.c struct net_device_stats *stats = &ndev->stats; ndev 626 drivers/net/can/ifi_canfd/ifi_canfd.c ifi_canfd_irq_enable(ndev, 0); ndev 632 drivers/net/can/ifi_canfd/ifi_canfd.c stats->tx_bytes += can_get_echo_skb(ndev, 0); ndev 634 drivers/net/can/ifi_canfd/ifi_canfd.c can_led_event(ndev, CAN_LED_EVENT_TX); ndev 638 drivers/net/can/ifi_canfd/ifi_canfd.c netif_wake_queue(ndev); ndev 655 drivers/net/can/ifi_canfd/ifi_canfd.c static void ifi_canfd_set_bittiming(struct net_device *ndev) ndev 657 drivers/net/can/ifi_canfd/ifi_canfd.c struct ifi_canfd_priv *priv = netdev_priv(ndev); ndev 690 drivers/net/can/ifi_canfd/ifi_canfd.c static void ifi_canfd_set_filter(struct net_device *ndev, const u32 id, ndev 693 drivers/net/can/ifi_canfd/ifi_canfd.c struct ifi_canfd_priv *priv = netdev_priv(ndev); ndev 699 drivers/net/can/ifi_canfd/ifi_canfd.c static void ifi_canfd_set_filters(struct net_device *ndev) ndev 702 drivers/net/can/ifi_canfd/ifi_canfd.c ifi_canfd_set_filter(ndev, 0, ndev 708 drivers/net/can/ifi_canfd/ifi_canfd.c ifi_canfd_set_filter(ndev, 1, ndev 715 drivers/net/can/ifi_canfd/ifi_canfd.c ifi_canfd_set_filter(ndev, 2, ndev 724 drivers/net/can/ifi_canfd/ifi_canfd.c static void ifi_canfd_start(struct net_device *ndev) ndev 726 drivers/net/can/ifi_canfd/ifi_canfd.c struct ifi_canfd_priv *priv = netdev_priv(ndev); ndev 734 drivers/net/can/ifi_canfd/ifi_canfd.c ifi_canfd_set_bittiming(ndev); ndev 735 drivers/net/can/ifi_canfd/ifi_canfd.c ifi_canfd_set_filters(ndev); ndev 769 drivers/net/can/ifi_canfd/ifi_canfd.c ifi_canfd_irq_enable(ndev, 1); ndev 781 drivers/net/can/ifi_canfd/ifi_canfd.c static void ifi_canfd_stop(struct net_device *ndev) ndev 783 drivers/net/can/ifi_canfd/ifi_canfd.c struct ifi_canfd_priv *priv = netdev_priv(ndev); ndev 803 drivers/net/can/ifi_canfd/ifi_canfd.c static int ifi_canfd_set_mode(struct net_device *ndev, enum can_mode mode) ndev 807 drivers/net/can/ifi_canfd/ifi_canfd.c ifi_canfd_start(ndev); ndev 808 drivers/net/can/ifi_canfd/ifi_canfd.c netif_wake_queue(ndev); ndev 817 drivers/net/can/ifi_canfd/ifi_canfd.c static int ifi_canfd_open(struct net_device *ndev) ndev 819 drivers/net/can/ifi_canfd/ifi_canfd.c struct ifi_canfd_priv *priv = netdev_priv(ndev); ndev 822 drivers/net/can/ifi_canfd/ifi_canfd.c ret = open_candev(ndev); ndev 824 drivers/net/can/ifi_canfd/ifi_canfd.c netdev_err(ndev, "Failed to open CAN device\n"); ndev 829 drivers/net/can/ifi_canfd/ifi_canfd.c ret = request_irq(ndev->irq, ifi_canfd_isr, IRQF_SHARED, ndev 830 drivers/net/can/ifi_canfd/ifi_canfd.c ndev->name, ndev); ndev 832 drivers/net/can/ifi_canfd/ifi_canfd.c netdev_err(ndev, "Failed to request interrupt\n"); ndev 836 drivers/net/can/ifi_canfd/ifi_canfd.c ifi_canfd_start(ndev); ndev 838 drivers/net/can/ifi_canfd/ifi_canfd.c can_led_event(ndev, CAN_LED_EVENT_OPEN); ndev 840 drivers/net/can/ifi_canfd/ifi_canfd.c netif_start_queue(ndev); ndev 844 drivers/net/can/ifi_canfd/ifi_canfd.c close_candev(ndev); ndev 848 drivers/net/can/ifi_canfd/ifi_canfd.c static int ifi_canfd_close(struct net_device *ndev) ndev 850 drivers/net/can/ifi_canfd/ifi_canfd.c struct ifi_canfd_priv *priv = netdev_priv(ndev); ndev 852 drivers/net/can/ifi_canfd/ifi_canfd.c netif_stop_queue(ndev); ndev 855 drivers/net/can/ifi_canfd/ifi_canfd.c ifi_canfd_stop(ndev); ndev 857 drivers/net/can/ifi_canfd/ifi_canfd.c free_irq(ndev->irq, ndev); ndev 859 drivers/net/can/ifi_canfd/ifi_canfd.c close_candev(ndev); ndev 861 drivers/net/can/ifi_canfd/ifi_canfd.c can_led_event(ndev, CAN_LED_EVENT_STOP); ndev 867 drivers/net/can/ifi_canfd/ifi_canfd.c struct net_device *ndev) ndev 869 drivers/net/can/ifi_canfd/ifi_canfd.c struct ifi_canfd_priv *priv = netdev_priv(ndev); ndev 874 drivers/net/can/ifi_canfd/ifi_canfd.c if (can_dropped_invalid_skb(ndev, skb)) ndev 880 drivers/net/can/ifi_canfd/ifi_canfd.c netif_stop_queue(ndev); ndev 881 drivers/net/can/ifi_canfd/ifi_canfd.c netdev_err(ndev, "BUG! TX FIFO full when queue awake!\n"); ndev 885 drivers/net/can/ifi_canfd/ifi_canfd.c netif_stop_queue(ndev); ndev 925 drivers/net/can/ifi_canfd/ifi_canfd.c can_put_echo_skb(skb, ndev, 0); ndev 943 drivers/net/can/ifi_canfd/ifi_canfd.c struct net_device *ndev; ndev 969 drivers/net/can/ifi_canfd/ifi_canfd.c ndev = alloc_candev(sizeof(*priv), 1); ndev 970 drivers/net/can/ifi_canfd/ifi_canfd.c if (!ndev) ndev 973 drivers/net/can/ifi_canfd/ifi_canfd.c ndev->irq = irq; ndev 974 drivers/net/can/ifi_canfd/ifi_canfd.c ndev->flags |= IFF_ECHO; /* we support local echo */ ndev 975 drivers/net/can/ifi_canfd/ifi_canfd.c ndev->netdev_ops = &ifi_canfd_netdev_ops; ndev 977 drivers/net/can/ifi_canfd/ifi_canfd.c priv = netdev_priv(ndev); ndev 978 drivers/net/can/ifi_canfd/ifi_canfd.c priv->ndev = ndev; ndev 981 drivers/net/can/ifi_canfd/ifi_canfd.c netif_napi_add(ndev, &priv->napi, ifi_canfd_poll, 64); ndev 1002 drivers/net/can/ifi_canfd/ifi_canfd.c platform_set_drvdata(pdev, ndev); ndev 1003 drivers/net/can/ifi_canfd/ifi_canfd.c SET_NETDEV_DEV(ndev, dev); ndev 1005 drivers/net/can/ifi_canfd/ifi_canfd.c ret = register_candev(ndev); ndev 1011 drivers/net/can/ifi_canfd/ifi_canfd.c devm_can_led_init(ndev); ndev 1014 drivers/net/can/ifi_canfd/ifi_canfd.c priv->base, ndev->irq, priv->can.clock.freq); ndev 1019 drivers/net/can/ifi_canfd/ifi_canfd.c free_candev(ndev); ndev 1025 drivers/net/can/ifi_canfd/ifi_canfd.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1027 drivers/net/can/ifi_canfd/ifi_canfd.c unregister_candev(ndev); ndev 1029 drivers/net/can/ifi_canfd/ifi_canfd.c free_candev(ndev); ndev 219 drivers/net/can/janz-ican3.c struct net_device *ndev; ndev 320 drivers/net/can/janz-ican3.c netdev_dbg(mod->ndev, "no mbox for reading\n"); ndev 365 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "no mbox for writing\n"); ndev 567 drivers/net/can/janz-ican3.c netdev_dbg(mod->ndev, "%s: no free buffers\n", __func__); ndev 598 drivers/net/can/janz-ican3.c netdev_dbg(mod->ndev, "%s: no buffers to recv\n", __func__); ndev 987 drivers/net/can/janz-ican3.c netdev_dbg(mod->ndev, "IDVERS response: %s\n", msg->data); ndev 992 drivers/net/can/janz-ican3.c struct net_device *dev = mod->ndev; ndev 1003 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "lost %d control messages\n", msg->data[0]); ndev 1034 drivers/net/can/janz-ican3.c struct net_device *dev = mod->ndev; ndev 1043 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "unable to handle errors on non-SJA1000\n"); ndev 1049 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "error message too short\n"); ndev 1071 drivers/net/can/janz-ican3.c netdev_dbg(mod->ndev, "bus error interrupt\n"); ndev 1087 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "unable to re-enable bus-error\n"); ndev 1102 drivers/net/can/janz-ican3.c netdev_dbg(mod->ndev, "data overrun interrupt\n"); ndev 1111 drivers/net/can/janz-ican3.c netdev_dbg(mod->ndev, "error warning + passive interrupt\n"); ndev 1192 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "received an unknown inquiry response\n"); ndev 1219 drivers/net/can/janz-ican3.c netdev_warn(mod->ndev, "unknown NMTS event indication %x\n", ndev 1226 drivers/net/can/janz-ican3.c netdev_warn(mod->ndev, "unhandled NMTS indication %x\n", ndev 1235 drivers/net/can/janz-ican3.c netdev_warn(mod->ndev, "received unknown message: spec 0x%.2x length %d\n", ndev 1244 drivers/net/can/janz-ican3.c netdev_dbg(mod->ndev, "%s: modno %d spec 0x%.2x len %d bytes\n", __func__, ndev 1292 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "BUG: echo skb not occupied\n"); ndev 1308 drivers/net/can/janz-ican3.c skb->dev = mod->ndev; ndev 1374 drivers/net/can/janz-ican3.c struct net_device *ndev = mod->ndev; ndev 1375 drivers/net/can/janz-ican3.c struct net_device_stats *stats = &ndev->stats; ndev 1396 drivers/net/can/janz-ican3.c skb = alloc_can_skb(ndev, &cf); ndev 1479 drivers/net/can/janz-ican3.c if (netif_queue_stopped(mod->ndev) && ican3_txok(mod)) ndev 1480 drivers/net/can/janz-ican3.c netif_wake_queue(mod->ndev); ndev 1548 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "failed to reset CAN module\n"); ndev 1567 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "unable to reset module\n"); ndev 1574 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "ICAN3 not detected (found %s)\n", mod->fwinfo); ndev 1587 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "unable to connect to module\n"); ndev 1594 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "unable to switch to new-style interface\n"); ndev 1601 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "unable to enable termination\n"); ndev 1608 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "unable to set bus-error\n"); ndev 1615 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "unable to switch to fast host interface\n"); ndev 1621 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "unable to set acceptance filter\n"); ndev 1632 drivers/net/can/janz-ican3.c static int ican3_open(struct net_device *ndev) ndev 1634 drivers/net/can/janz-ican3.c struct ican3_dev *mod = netdev_priv(ndev); ndev 1638 drivers/net/can/janz-ican3.c ret = open_candev(ndev); ndev 1640 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "unable to start CAN layer\n"); ndev 1647 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "unable to set bus-on\n"); ndev 1648 drivers/net/can/janz-ican3.c close_candev(ndev); ndev 1654 drivers/net/can/janz-ican3.c netif_start_queue(ndev); ndev 1659 drivers/net/can/janz-ican3.c static int ican3_stop(struct net_device *ndev) ndev 1661 drivers/net/can/janz-ican3.c struct ican3_dev *mod = netdev_priv(ndev); ndev 1665 drivers/net/can/janz-ican3.c netif_stop_queue(ndev); ndev 1671 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "unable to set bus-off\n"); ndev 1679 drivers/net/can/janz-ican3.c close_candev(ndev); ndev 1683 drivers/net/can/janz-ican3.c static netdev_tx_t ican3_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 1685 drivers/net/can/janz-ican3.c struct ican3_dev *mod = netdev_priv(ndev); ndev 1691 drivers/net/can/janz-ican3.c if (can_dropped_invalid_skb(ndev, skb)) ndev 1698 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "BUG: no free descriptors\n"); ndev 1740 drivers/net/can/janz-ican3.c netif_stop_queue(ndev); ndev 1770 drivers/net/can/janz-ican3.c static int ican3_set_mode(struct net_device *ndev, enum can_mode mode) ndev 1772 drivers/net/can/janz-ican3.c struct ican3_dev *mod = netdev_priv(ndev); ndev 1781 drivers/net/can/janz-ican3.c netdev_err(ndev, "unable to set bus-on\n"); ndev 1788 drivers/net/can/janz-ican3.c if (netif_queue_stopped(ndev)) ndev 1789 drivers/net/can/janz-ican3.c netif_wake_queue(ndev); ndev 1794 drivers/net/can/janz-ican3.c static int ican3_get_berr_counter(const struct net_device *ndev, ndev 1797 drivers/net/can/janz-ican3.c struct ican3_dev *mod = netdev_priv(ndev); ndev 1805 drivers/net/can/janz-ican3.c netdev_info(mod->ndev, "%s timed out\n", __func__); ndev 1830 drivers/net/can/janz-ican3.c netdev_info(mod->ndev, "%s timed out\n", __func__); ndev 1885 drivers/net/can/janz-ican3.c struct net_device *ndev; ndev 1901 drivers/net/can/janz-ican3.c ndev = alloc_candev(sizeof(*mod), 0); ndev 1902 drivers/net/can/janz-ican3.c if (!ndev) { ndev 1908 drivers/net/can/janz-ican3.c platform_set_drvdata(pdev, ndev); ndev 1909 drivers/net/can/janz-ican3.c mod = netdev_priv(ndev); ndev 1910 drivers/net/can/janz-ican3.c mod->ndev = ndev; ndev 1912 drivers/net/can/janz-ican3.c netif_napi_add(ndev, &mod->napi, ican3_napi, ICAN3_RX_BUFFERS); ndev 1919 drivers/net/can/janz-ican3.c ndev->sysfs_groups[0] = &ican3_sysfs_attr_group; ndev 1924 drivers/net/can/janz-ican3.c ndev->netdev_ops = &ican3_netdev_ops; ndev 1925 drivers/net/can/janz-ican3.c ndev->flags |= IFF_ECHO; ndev 1926 drivers/net/can/janz-ican3.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 1943 drivers/net/can/janz-ican3.c ndev->irq = mod->irq; ndev 1994 drivers/net/can/janz-ican3.c ret = register_candev(ndev); ndev 2000 drivers/net/can/janz-ican3.c netdev_info(mod->ndev, "module %d: registered CAN device\n", pdata->modno); ndev 2012 drivers/net/can/janz-ican3.c free_candev(ndev); ndev 2019 drivers/net/can/janz-ican3.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 2020 drivers/net/can/janz-ican3.c struct ican3_dev *mod = netdev_priv(ndev); ndev 2023 drivers/net/can/janz-ican3.c unregister_netdev(ndev); ndev 2035 drivers/net/can/janz-ican3.c free_candev(ndev); ndev 867 drivers/net/can/kvaser_pciefd.c static int kvaser_pciefd_set_nominal_bittiming(struct net_device *ndev) ndev 869 drivers/net/can/kvaser_pciefd.c return kvaser_pciefd_set_bittiming(netdev_priv(ndev), false); ndev 872 drivers/net/can/kvaser_pciefd.c static int kvaser_pciefd_set_data_bittiming(struct net_device *ndev) ndev 874 drivers/net/can/kvaser_pciefd.c return kvaser_pciefd_set_bittiming(netdev_priv(ndev), true); ndev 877 drivers/net/can/kvaser_pciefd.c static int kvaser_pciefd_set_mode(struct net_device *ndev, enum can_mode mode) ndev 879 drivers/net/can/kvaser_pciefd.c struct kvaser_pciefd_can *can = netdev_priv(ndev); ndev 894 drivers/net/can/kvaser_pciefd.c static int kvaser_pciefd_get_berr_counter(const struct net_device *ndev, ndev 897 drivers/net/can/kvaser_pciefd.c struct kvaser_pciefd_can *can = netdev_priv(ndev); ndev 1205 drivers/net/can/kvaser_pciefd.c struct net_device *ndev = can->can.dev; ndev 1215 drivers/net/can/kvaser_pciefd.c can_bus_off(ndev); ndev 1251 drivers/net/can/kvaser_pciefd.c struct net_device *ndev = can->can.dev; ndev 1255 drivers/net/can/kvaser_pciefd.c struct net_device_stats *stats = &ndev->stats; ndev 1265 drivers/net/can/kvaser_pciefd.c skb = alloc_can_err_skb(ndev, &cf); ndev 1343 drivers/net/can/kvaser_pciefd.c struct net_device *ndev = can->can.dev; ndev 1348 drivers/net/can/kvaser_pciefd.c skb = alloc_can_err_skb(ndev, &cf); ndev 1350 drivers/net/can/kvaser_pciefd.c struct net_device_stats *stats = &ndev->stats; ndev 1814 drivers/net/can/m_can/m_can.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1815 drivers/net/can/m_can/m_can.c struct m_can_classdev *cdev = netdev_priv(ndev); ndev 1817 drivers/net/can/m_can/m_can.c if (netif_running(ndev)) { ndev 1818 drivers/net/can/m_can/m_can.c netif_stop_queue(ndev); ndev 1819 drivers/net/can/m_can/m_can.c netif_device_detach(ndev); ndev 1820 drivers/net/can/m_can/m_can.c m_can_stop(ndev); ndev 1834 drivers/net/can/m_can/m_can.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1835 drivers/net/can/m_can/m_can.c struct m_can_classdev *cdev = netdev_priv(ndev); ndev 1841 drivers/net/can/m_can/m_can.c if (netif_running(ndev)) { ndev 1849 drivers/net/can/m_can/m_can.c m_can_start(ndev); ndev 1850 drivers/net/can/m_can/m_can.c netif_device_attach(ndev); ndev 1851 drivers/net/can/m_can/m_can.c netif_start_queue(ndev); ndev 144 drivers/net/can/m_can/m_can_platform.c struct net_device *ndev = dev_get_drvdata(dev); ndev 145 drivers/net/can/m_can/m_can_platform.c struct m_can_classdev *mcan_class = netdev_priv(ndev); ndev 157 drivers/net/can/m_can/m_can_platform.c struct net_device *ndev = dev_get_drvdata(dev); ndev 158 drivers/net/can/m_can/m_can_platform.c struct m_can_classdev *mcan_class = netdev_priv(ndev); ndev 167 drivers/net/can/pch_can.c struct net_device *ndev; ndev 215 drivers/net/can/pch_can.c netdev_err(priv->ndev, "%s -> Invalid Mode.\n", __func__); ndev 268 drivers/net/can/pch_can.c netdev_err(priv->ndev, "Invalid interrupt number.\n"); ndev 479 drivers/net/can/pch_can.c static void pch_can_error(struct net_device *ndev, u32 status) ndev 482 drivers/net/can/pch_can.c struct pch_can_priv *priv = netdev_priv(ndev); ndev 485 drivers/net/can/pch_can.c struct net_device_stats *stats = &(priv->ndev->stats); ndev 488 drivers/net/can/pch_can.c skb = alloc_can_err_skb(ndev, &cf); ndev 498 drivers/net/can/pch_can.c can_bus_off(ndev); ndev 511 drivers/net/can/pch_can.c netdev_dbg(ndev, ndev 523 drivers/net/can/pch_can.c netdev_dbg(ndev, ndev 571 drivers/net/can/pch_can.c struct net_device *ndev = (struct net_device *)dev_id; ndev 572 drivers/net/can/pch_can.c struct pch_can_priv *priv = netdev_priv(ndev); ndev 604 drivers/net/can/pch_can.c static void pch_can_rx_msg_lost(struct net_device *ndev, int obj_id) ndev 606 drivers/net/can/pch_can.c struct pch_can_priv *priv = netdev_priv(ndev); ndev 607 drivers/net/can/pch_can.c struct net_device_stats *stats = &(priv->ndev->stats); ndev 611 drivers/net/can/pch_can.c netdev_dbg(priv->ndev, "Msg Obj is overwritten.\n"); ndev 618 drivers/net/can/pch_can.c skb = alloc_can_err_skb(ndev, &cf); ndev 630 drivers/net/can/pch_can.c static int pch_can_rx_normal(struct net_device *ndev, u32 obj_num, int quota) ndev 637 drivers/net/can/pch_can.c struct pch_can_priv *priv = netdev_priv(ndev); ndev 638 drivers/net/can/pch_can.c struct net_device_stats *stats = &(priv->ndev->stats); ndev 656 drivers/net/can/pch_can.c pch_can_rx_msg_lost(ndev, obj_num); ndev 666 drivers/net/can/pch_can.c skb = alloc_can_skb(priv->ndev, &cf); ndev 668 drivers/net/can/pch_can.c netdev_err(ndev, "alloc_can_skb Failed\n"); ndev 708 drivers/net/can/pch_can.c static void pch_can_tx_complete(struct net_device *ndev, u32 int_stat) ndev 710 drivers/net/can/pch_can.c struct pch_can_priv *priv = netdev_priv(ndev); ndev 711 drivers/net/can/pch_can.c struct net_device_stats *stats = &(priv->ndev->stats); ndev 714 drivers/net/can/pch_can.c can_get_echo_skb(ndev, int_stat - PCH_RX_OBJ_END - 1); ndev 723 drivers/net/can/pch_can.c netif_wake_queue(ndev); ndev 728 drivers/net/can/pch_can.c struct net_device *ndev = napi->dev; ndev 729 drivers/net/can/pch_can.c struct pch_can_priv *priv = netdev_priv(ndev); ndev 743 drivers/net/can/pch_can.c pch_can_error(ndev, reg_stat); ndev 758 drivers/net/can/pch_can.c quota -= pch_can_rx_normal(ndev, int_stat, quota); ndev 762 drivers/net/can/pch_can.c pch_can_tx_complete(ndev, int_stat); ndev 772 drivers/net/can/pch_can.c static int pch_set_bittiming(struct net_device *ndev) ndev 774 drivers/net/can/pch_can.c struct pch_can_priv *priv = netdev_priv(ndev); ndev 794 drivers/net/can/pch_can.c static void pch_can_start(struct net_device *ndev) ndev 796 drivers/net/can/pch_can.c struct pch_can_priv *priv = netdev_priv(ndev); ndev 801 drivers/net/can/pch_can.c pch_set_bittiming(ndev); ndev 815 drivers/net/can/pch_can.c static int pch_can_do_set_mode(struct net_device *ndev, enum can_mode mode) ndev 821 drivers/net/can/pch_can.c pch_can_start(ndev); ndev 822 drivers/net/can/pch_can.c netif_wake_queue(ndev); ndev 832 drivers/net/can/pch_can.c static int pch_can_open(struct net_device *ndev) ndev 834 drivers/net/can/pch_can.c struct pch_can_priv *priv = netdev_priv(ndev); ndev 839 drivers/net/can/pch_can.c ndev->name, ndev); ndev 841 drivers/net/can/pch_can.c netdev_err(ndev, "request_irq failed.\n"); ndev 846 drivers/net/can/pch_can.c retval = open_candev(ndev); ndev 848 drivers/net/can/pch_can.c netdev_err(ndev, "open_candev() failed %d\n", retval); ndev 853 drivers/net/can/pch_can.c pch_can_start(ndev); ndev 855 drivers/net/can/pch_can.c netif_start_queue(ndev); ndev 860 drivers/net/can/pch_can.c free_irq(priv->dev->irq, ndev); ndev 867 drivers/net/can/pch_can.c static int pch_close(struct net_device *ndev) ndev 869 drivers/net/can/pch_can.c struct pch_can_priv *priv = netdev_priv(ndev); ndev 871 drivers/net/can/pch_can.c netif_stop_queue(ndev); ndev 874 drivers/net/can/pch_can.c free_irq(priv->dev->irq, ndev); ndev 875 drivers/net/can/pch_can.c close_candev(ndev); ndev 880 drivers/net/can/pch_can.c static netdev_tx_t pch_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 882 drivers/net/can/pch_can.c struct pch_can_priv *priv = netdev_priv(ndev); ndev 888 drivers/net/can/pch_can.c if (can_dropped_invalid_skb(ndev, skb)) ndev 894 drivers/net/can/pch_can.c netif_stop_queue(ndev); ndev 927 drivers/net/can/pch_can.c can_put_echo_skb(skb, ndev, tx_obj_no - PCH_RX_OBJ_END - 1); ndev 947 drivers/net/can/pch_can.c struct net_device *ndev = pci_get_drvdata(pdev); ndev 948 drivers/net/can/pch_can.c struct pch_can_priv *priv = netdev_priv(ndev); ndev 950 drivers/net/can/pch_can.c unregister_candev(priv->ndev); ndev 957 drivers/net/can/pch_can.c free_candev(priv->ndev); ndev 1171 drivers/net/can/pch_can.c struct net_device *ndev; ndev 1195 drivers/net/can/pch_can.c ndev = alloc_candev(sizeof(struct pch_can_priv), PCH_TX_OBJ_END); ndev 1196 drivers/net/can/pch_can.c if (!ndev) { ndev 1202 drivers/net/can/pch_can.c priv = netdev_priv(ndev); ndev 1203 drivers/net/can/pch_can.c priv->ndev = ndev; ndev 1213 drivers/net/can/pch_can.c ndev->irq = pdev->irq; ndev 1214 drivers/net/can/pch_can.c ndev->flags |= IFF_ECHO; ndev 1216 drivers/net/can/pch_can.c pci_set_drvdata(pdev, ndev); ndev 1217 drivers/net/can/pch_can.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 1218 drivers/net/can/pch_can.c ndev->netdev_ops = &pch_can_netdev_ops; ndev 1221 drivers/net/can/pch_can.c netif_napi_add(ndev, &priv->napi, pch_can_poll, PCH_RX_OBJ_END); ndev 1225 drivers/net/can/pch_can.c netdev_err(ndev, "PCH CAN opened without MSI\n"); ndev 1228 drivers/net/can/pch_can.c netdev_err(ndev, "PCH CAN opened with MSI\n"); ndev 1233 drivers/net/can/pch_can.c rc = register_candev(ndev); ndev 1244 drivers/net/can/pch_can.c free_candev(ndev); ndev 132 drivers/net/can/peak_canfd/peak_canfd.c netdev_dbg(priv->ndev, ndev 151 drivers/net/can/peak_canfd/peak_canfd.c netdev_dbg(priv->ndev, ndev 239 drivers/net/can/peak_canfd/peak_canfd.c struct net_device_stats *stats = &priv->ndev->stats; ndev 256 drivers/net/can/peak_canfd/peak_canfd.c can_get_echo_skb(priv->ndev, msg->client); ndev 263 drivers/net/can/peak_canfd/peak_canfd.c netif_wake_queue(priv->ndev); ndev 272 drivers/net/can/peak_canfd/peak_canfd.c skb = alloc_canfd_skb(priv->ndev, &cf); ndev 283 drivers/net/can/peak_canfd/peak_canfd.c skb = alloc_can_skb(priv->ndev, (struct can_frame **)&cf); ndev 321 drivers/net/can/peak_canfd/peak_canfd.c struct net_device *ndev = priv->ndev; ndev 322 drivers/net/can/peak_canfd/peak_canfd.c struct net_device_stats *stats = &ndev->stats; ndev 337 drivers/net/can/peak_canfd/peak_canfd.c netif_start_queue(ndev); ndev 342 drivers/net/can/peak_canfd/peak_canfd.c skb = alloc_can_err_skb(ndev, &cf); ndev 346 drivers/net/can/peak_canfd/peak_canfd.c netdev_dbg(ndev, "Bus-off entry status\n"); ndev 349 drivers/net/can/peak_canfd/peak_canfd.c can_bus_off(ndev); ndev 354 drivers/net/can/peak_canfd/peak_canfd.c netdev_dbg(ndev, "Error passive status\n"); ndev 367 drivers/net/can/peak_canfd/peak_canfd.c netdev_dbg(ndev, "Error warning status\n"); ndev 381 drivers/net/can/peak_canfd/peak_canfd.c netdev_dbg(ndev, "Error active status\n"); ndev 382 drivers/net/can/peak_canfd/peak_canfd.c can_change_state(ndev, cf, CAN_STATE_ERROR_ACTIVE, ndev 404 drivers/net/can/peak_canfd/peak_canfd.c struct net_device_stats *stats = &priv->ndev->stats; ndev 411 drivers/net/can/peak_canfd/peak_canfd.c skb = alloc_can_err_skb(priv->ndev, &cf); ndev 519 drivers/net/can/peak_canfd/peak_canfd.c netdev_err(priv->ndev, "channel %u reset failed\n", ndev 527 drivers/net/can/peak_canfd/peak_canfd.c static int peak_canfd_set_mode(struct net_device *ndev, enum can_mode mode) ndev 529 drivers/net/can/peak_canfd/peak_canfd.c struct peak_canfd_priv *priv = netdev_priv(ndev); ndev 534 drivers/net/can/peak_canfd/peak_canfd.c netif_wake_queue(ndev); ndev 543 drivers/net/can/peak_canfd/peak_canfd.c static int peak_canfd_get_berr_counter(const struct net_device *ndev, ndev 546 drivers/net/can/peak_canfd/peak_canfd.c struct peak_canfd_priv *priv = netdev_priv(ndev); ndev 552 drivers/net/can/peak_canfd/peak_canfd.c static int peak_canfd_open(struct net_device *ndev) ndev 554 drivers/net/can/peak_canfd/peak_canfd.c struct peak_canfd_priv *priv = netdev_priv(ndev); ndev 557 drivers/net/can/peak_canfd/peak_canfd.c err = open_candev(ndev); ndev 559 drivers/net/can/peak_canfd/peak_canfd.c netdev_err(ndev, "open_candev() failed, error %d\n", err); ndev 596 drivers/net/can/peak_canfd/peak_canfd.c close_candev(ndev); ndev 601 drivers/net/can/peak_canfd/peak_canfd.c static int peak_canfd_set_bittiming(struct net_device *ndev) ndev 603 drivers/net/can/peak_canfd/peak_canfd.c struct peak_canfd_priv *priv = netdev_priv(ndev); ndev 608 drivers/net/can/peak_canfd/peak_canfd.c static int peak_canfd_set_data_bittiming(struct net_device *ndev) ndev 610 drivers/net/can/peak_canfd/peak_canfd.c struct peak_canfd_priv *priv = netdev_priv(ndev); ndev 615 drivers/net/can/peak_canfd/peak_canfd.c static int peak_canfd_close(struct net_device *ndev) ndev 617 drivers/net/can/peak_canfd/peak_canfd.c struct peak_canfd_priv *priv = netdev_priv(ndev); ndev 619 drivers/net/can/peak_canfd/peak_canfd.c netif_stop_queue(ndev); ndev 621 drivers/net/can/peak_canfd/peak_canfd.c close_candev(ndev); ndev 627 drivers/net/can/peak_canfd/peak_canfd.c struct net_device *ndev) ndev 629 drivers/net/can/peak_canfd/peak_canfd.c struct peak_canfd_priv *priv = netdev_priv(ndev); ndev 630 drivers/net/can/peak_canfd/peak_canfd.c struct net_device_stats *stats = &ndev->stats; ndev 639 drivers/net/can/peak_canfd/peak_canfd.c if (can_dropped_invalid_skb(ndev, skb)) ndev 650 drivers/net/can/peak_canfd/peak_canfd.c netif_stop_queue(ndev); ndev 701 drivers/net/can/peak_canfd/peak_canfd.c can_put_echo_skb(skb, ndev, priv->echo_idx); ndev 721 drivers/net/can/peak_canfd/peak_canfd.c netif_stop_queue(ndev); ndev 741 drivers/net/can/peak_canfd/peak_canfd.c struct net_device *ndev; ndev 749 drivers/net/can/peak_canfd/peak_canfd.c ndev = alloc_candev(sizeof_priv, echo_skb_max); ndev 750 drivers/net/can/peak_canfd/peak_canfd.c if (!ndev) ndev 753 drivers/net/can/peak_canfd/peak_canfd.c priv = netdev_priv(ndev); ndev 771 drivers/net/can/peak_canfd/peak_canfd.c priv->ndev = ndev; ndev 776 drivers/net/can/peak_canfd/peak_canfd.c ndev->flags |= IFF_ECHO; ndev 777 drivers/net/can/peak_canfd/peak_canfd.c ndev->netdev_ops = &peak_canfd_netdev_ops; ndev 778 drivers/net/can/peak_canfd/peak_canfd.c ndev->dev_id = index; ndev 780 drivers/net/can/peak_canfd/peak_canfd.c return ndev; ndev 18 drivers/net/can/peak_canfd/peak_canfd_user.h struct net_device *ndev; /* network device */ ndev 348 drivers/net/can/peak_canfd/peak_pciefd_main.c netif_wake_queue(priv->ucan.ndev); ndev 410 drivers/net/can/peak_canfd/peak_pciefd_main.c err = request_irq(priv->ucan.ndev->irq, ndev 494 drivers/net/can/peak_canfd/peak_pciefd_main.c free_irq(priv->ucan.ndev->irq, priv); ndev 579 drivers/net/can/peak_canfd/peak_pciefd_main.c struct net_device *ndev; ndev 585 drivers/net/can/peak_canfd/peak_pciefd_main.c ndev = alloc_peak_canfd_dev(sizeof(*priv), pciefd->can_count, ndev 587 drivers/net/can/peak_canfd/peak_pciefd_main.c if (!ndev) { ndev 593 drivers/net/can/peak_canfd/peak_pciefd_main.c priv = netdev_priv(ndev); ndev 669 drivers/net/can/peak_canfd/peak_pciefd_main.c ndev->irq = pciefd->pci_dev->irq; ndev 671 drivers/net/can/peak_canfd/peak_pciefd_main.c SET_NETDEV_DEV(ndev, &pciefd->pci_dev->dev); ndev 673 drivers/net/can/peak_canfd/peak_pciefd_main.c err = register_candev(ndev); ndev 686 drivers/net/can/peak_canfd/peak_pciefd_main.c ndev->name, priv->reg_base, ndev->irq); ndev 691 drivers/net/can/peak_canfd/peak_pciefd_main.c free_candev(ndev); ndev 701 drivers/net/can/peak_canfd/peak_pciefd_main.c unregister_candev(priv->ucan.ndev); ndev 704 drivers/net/can/peak_canfd/peak_pciefd_main.c free_candev(priv->ucan.ndev); ndev 92 drivers/net/can/rcar/rcar_can.c struct net_device *ndev; ndev 215 drivers/net/can/rcar/rcar_can.c static void tx_failure_cleanup(struct net_device *ndev) ndev 220 drivers/net/can/rcar/rcar_can.c can_free_echo_skb(ndev, i); ndev 223 drivers/net/can/rcar/rcar_can.c static void rcar_can_error(struct net_device *ndev) ndev 225 drivers/net/can/rcar/rcar_can.c struct rcar_can_priv *priv = netdev_priv(ndev); ndev 226 drivers/net/can/rcar/rcar_can.c struct net_device_stats *stats = &ndev->stats; ndev 232 drivers/net/can/rcar/rcar_can.c skb = alloc_can_err_skb(ndev, &cf); ndev 248 drivers/net/can/rcar/rcar_can.c netdev_dbg(priv->ndev, "Bus error interrupt:\n"); ndev 254 drivers/net/can/rcar/rcar_can.c netdev_dbg(priv->ndev, "ACK Delimiter Error\n"); ndev 261 drivers/net/can/rcar/rcar_can.c netdev_dbg(priv->ndev, "Bit Error (dominant)\n"); ndev 268 drivers/net/can/rcar/rcar_can.c netdev_dbg(priv->ndev, "Bit Error (recessive)\n"); ndev 275 drivers/net/can/rcar/rcar_can.c netdev_dbg(priv->ndev, "CRC Error\n"); ndev 282 drivers/net/can/rcar/rcar_can.c netdev_dbg(priv->ndev, "ACK Error\n"); ndev 291 drivers/net/can/rcar/rcar_can.c netdev_dbg(priv->ndev, "Form Error\n"); ndev 298 drivers/net/can/rcar/rcar_can.c netdev_dbg(priv->ndev, "Stuff Error\n"); ndev 306 drivers/net/can/rcar/rcar_can.c ndev->stats.rx_errors += rx_errors; ndev 307 drivers/net/can/rcar/rcar_can.c ndev->stats.tx_errors += tx_errors; ndev 311 drivers/net/can/rcar/rcar_can.c netdev_dbg(priv->ndev, "Error warning interrupt\n"); ndev 321 drivers/net/can/rcar/rcar_can.c netdev_dbg(priv->ndev, "Error passive interrupt\n"); ndev 331 drivers/net/can/rcar/rcar_can.c netdev_dbg(priv->ndev, "Bus-off entry interrupt\n"); ndev 332 drivers/net/can/rcar/rcar_can.c tx_failure_cleanup(ndev); ndev 339 drivers/net/can/rcar/rcar_can.c can_bus_off(ndev); ndev 344 drivers/net/can/rcar/rcar_can.c netdev_dbg(priv->ndev, "Receive overrun error interrupt\n"); ndev 345 drivers/net/can/rcar/rcar_can.c ndev->stats.rx_over_errors++; ndev 346 drivers/net/can/rcar/rcar_can.c ndev->stats.rx_errors++; ndev 354 drivers/net/can/rcar/rcar_can.c netdev_dbg(priv->ndev, ndev 356 drivers/net/can/rcar/rcar_can.c ndev->stats.rx_over_errors++; ndev 357 drivers/net/can/rcar/rcar_can.c ndev->stats.rx_errors++; ndev 372 drivers/net/can/rcar/rcar_can.c static void rcar_can_tx_done(struct net_device *ndev) ndev 374 drivers/net/can/rcar/rcar_can.c struct rcar_can_priv *priv = netdev_priv(ndev); ndev 375 drivers/net/can/rcar/rcar_can.c struct net_device_stats *stats = &ndev->stats; ndev 389 drivers/net/can/rcar/rcar_can.c can_get_echo_skb(ndev, priv->tx_tail % RCAR_CAN_FIFO_DEPTH); ndev 391 drivers/net/can/rcar/rcar_can.c netif_wake_queue(ndev); ndev 396 drivers/net/can/rcar/rcar_can.c can_led_event(ndev, CAN_LED_EVENT_TX); ndev 401 drivers/net/can/rcar/rcar_can.c struct net_device *ndev = dev_id; ndev 402 drivers/net/can/rcar/rcar_can.c struct rcar_can_priv *priv = netdev_priv(ndev); ndev 410 drivers/net/can/rcar/rcar_can.c rcar_can_error(ndev); ndev 413 drivers/net/can/rcar/rcar_can.c rcar_can_tx_done(ndev); ndev 443 drivers/net/can/rcar/rcar_can.c static void rcar_can_start(struct net_device *ndev) ndev 445 drivers/net/can/rcar/rcar_can.c struct rcar_can_priv *priv = netdev_priv(ndev); ndev 465 drivers/net/can/rcar/rcar_can.c rcar_can_set_bittiming(ndev); ndev 508 drivers/net/can/rcar/rcar_can.c static int rcar_can_open(struct net_device *ndev) ndev 510 drivers/net/can/rcar/rcar_can.c struct rcar_can_priv *priv = netdev_priv(ndev); ndev 515 drivers/net/can/rcar/rcar_can.c netdev_err(ndev, ndev 522 drivers/net/can/rcar/rcar_can.c netdev_err(ndev, "failed to enable CAN clock, error %d\n", ndev 526 drivers/net/can/rcar/rcar_can.c err = open_candev(ndev); ndev 528 drivers/net/can/rcar/rcar_can.c netdev_err(ndev, "open_candev() failed, error %d\n", err); ndev 532 drivers/net/can/rcar/rcar_can.c err = request_irq(ndev->irq, rcar_can_interrupt, 0, ndev->name, ndev); ndev 534 drivers/net/can/rcar/rcar_can.c netdev_err(ndev, "request_irq(%d) failed, error %d\n", ndev 535 drivers/net/can/rcar/rcar_can.c ndev->irq, err); ndev 538 drivers/net/can/rcar/rcar_can.c can_led_event(ndev, CAN_LED_EVENT_OPEN); ndev 539 drivers/net/can/rcar/rcar_can.c rcar_can_start(ndev); ndev 540 drivers/net/can/rcar/rcar_can.c netif_start_queue(ndev); ndev 544 drivers/net/can/rcar/rcar_can.c close_candev(ndev); ndev 553 drivers/net/can/rcar/rcar_can.c static void rcar_can_stop(struct net_device *ndev) ndev 555 drivers/net/can/rcar/rcar_can.c struct rcar_can_priv *priv = netdev_priv(ndev); ndev 577 drivers/net/can/rcar/rcar_can.c static int rcar_can_close(struct net_device *ndev) ndev 579 drivers/net/can/rcar/rcar_can.c struct rcar_can_priv *priv = netdev_priv(ndev); ndev 581 drivers/net/can/rcar/rcar_can.c netif_stop_queue(ndev); ndev 582 drivers/net/can/rcar/rcar_can.c rcar_can_stop(ndev); ndev 583 drivers/net/can/rcar/rcar_can.c free_irq(ndev->irq, ndev); ndev 587 drivers/net/can/rcar/rcar_can.c close_candev(ndev); ndev 588 drivers/net/can/rcar/rcar_can.c can_led_event(ndev, CAN_LED_EVENT_STOP); ndev 593 drivers/net/can/rcar/rcar_can.c struct net_device *ndev) ndev 595 drivers/net/can/rcar/rcar_can.c struct rcar_can_priv *priv = netdev_priv(ndev); ndev 599 drivers/net/can/rcar/rcar_can.c if (can_dropped_invalid_skb(ndev, skb)) ndev 620 drivers/net/can/rcar/rcar_can.c can_put_echo_skb(skb, ndev, priv->tx_head % RCAR_CAN_FIFO_DEPTH); ndev 629 drivers/net/can/rcar/rcar_can.c netif_stop_queue(ndev); ndev 643 drivers/net/can/rcar/rcar_can.c struct net_device_stats *stats = &priv->ndev->stats; ndev 649 drivers/net/can/rcar/rcar_can.c skb = alloc_can_skb(priv->ndev, &cf); ndev 671 drivers/net/can/rcar/rcar_can.c can_led_event(priv->ndev, CAN_LED_EVENT_RX); ndev 710 drivers/net/can/rcar/rcar_can.c static int rcar_can_do_set_mode(struct net_device *ndev, enum can_mode mode) ndev 714 drivers/net/can/rcar/rcar_can.c rcar_can_start(ndev); ndev 715 drivers/net/can/rcar/rcar_can.c netif_wake_queue(ndev); ndev 746 drivers/net/can/rcar/rcar_can.c struct net_device *ndev; ndev 769 drivers/net/can/rcar/rcar_can.c ndev = alloc_candev(sizeof(struct rcar_can_priv), RCAR_CAN_FIFO_DEPTH); ndev 770 drivers/net/can/rcar/rcar_can.c if (!ndev) { ndev 776 drivers/net/can/rcar/rcar_can.c priv = netdev_priv(ndev); ndev 798 drivers/net/can/rcar/rcar_can.c ndev->netdev_ops = &rcar_can_netdev_ops; ndev 799 drivers/net/can/rcar/rcar_can.c ndev->irq = irq; ndev 800 drivers/net/can/rcar/rcar_can.c ndev->flags |= IFF_ECHO; ndev 801 drivers/net/can/rcar/rcar_can.c priv->ndev = ndev; ndev 809 drivers/net/can/rcar/rcar_can.c platform_set_drvdata(pdev, ndev); ndev 810 drivers/net/can/rcar/rcar_can.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 812 drivers/net/can/rcar/rcar_can.c netif_napi_add(ndev, &priv->napi, rcar_can_rx_poll, ndev 814 drivers/net/can/rcar/rcar_can.c err = register_candev(ndev); ndev 821 drivers/net/can/rcar/rcar_can.c devm_can_led_init(ndev); ndev 823 drivers/net/can/rcar/rcar_can.c dev_info(&pdev->dev, "device registered (IRQ%d)\n", ndev->irq); ndev 829 drivers/net/can/rcar/rcar_can.c free_candev(ndev); ndev 836 drivers/net/can/rcar/rcar_can.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 837 drivers/net/can/rcar/rcar_can.c struct rcar_can_priv *priv = netdev_priv(ndev); ndev 839 drivers/net/can/rcar/rcar_can.c unregister_candev(ndev); ndev 841 drivers/net/can/rcar/rcar_can.c free_candev(ndev); ndev 847 drivers/net/can/rcar/rcar_can.c struct net_device *ndev = dev_get_drvdata(dev); ndev 848 drivers/net/can/rcar/rcar_can.c struct rcar_can_priv *priv = netdev_priv(ndev); ndev 851 drivers/net/can/rcar/rcar_can.c if (netif_running(ndev)) { ndev 852 drivers/net/can/rcar/rcar_can.c netif_stop_queue(ndev); ndev 853 drivers/net/can/rcar/rcar_can.c netif_device_detach(ndev); ndev 868 drivers/net/can/rcar/rcar_can.c struct net_device *ndev = dev_get_drvdata(dev); ndev 869 drivers/net/can/rcar/rcar_can.c struct rcar_can_priv *priv = netdev_priv(ndev); ndev 875 drivers/net/can/rcar/rcar_can.c netdev_err(ndev, "clk_enable() failed, error %d\n", err); ndev 886 drivers/net/can/rcar/rcar_can.c if (netif_running(ndev)) { ndev 887 drivers/net/can/rcar/rcar_can.c netif_device_attach(ndev); ndev 888 drivers/net/can/rcar/rcar_can.c netif_start_queue(ndev); ndev 495 drivers/net/can/rcar/rcar_canfd.c struct net_device *ndev; ndev 615 drivers/net/can/rcar/rcar_canfd.c static void rcar_canfd_tx_failure_cleanup(struct net_device *ndev) ndev 620 drivers/net/can/rcar/rcar_canfd.c can_free_echo_skb(ndev, i); ndev 865 drivers/net/can/rcar/rcar_canfd.c static void rcar_canfd_global_error(struct net_device *ndev) ndev 867 drivers/net/can/rcar/rcar_canfd.c struct rcar_canfd_channel *priv = netdev_priv(ndev); ndev 869 drivers/net/can/rcar/rcar_canfd.c struct net_device_stats *stats = &ndev->stats; ndev 876 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "Ch0: ECC Error flag\n"); ndev 880 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "Ch1: ECC Error flag\n"); ndev 887 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "Tx Message Lost flag\n"); ndev 896 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "Rx Message Lost flag\n"); ndev 907 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "global payload overflow interrupt\n"); ndev 916 drivers/net/can/rcar/rcar_canfd.c static void rcar_canfd_error(struct net_device *ndev, u32 cerfl, ndev 919 drivers/net/can/rcar/rcar_canfd.c struct rcar_canfd_channel *priv = netdev_priv(ndev); ndev 920 drivers/net/can/rcar/rcar_canfd.c struct net_device_stats *stats = &ndev->stats; ndev 925 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "ch erfl %x txerr %u rxerr %u\n", cerfl, txerr, rxerr); ndev 928 drivers/net/can/rcar/rcar_canfd.c skb = alloc_can_err_skb(ndev, &cf); ndev 936 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "Bus error\n"); ndev 942 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "ACK Delimiter Error\n"); ndev 947 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "Bit Error (dominant)\n"); ndev 952 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "Bit Error (recessive)\n"); ndev 957 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "CRC Error\n"); ndev 962 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "ACK Error\n"); ndev 968 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "Form Error\n"); ndev 973 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "Stuff Error\n"); ndev 978 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "Arbitration lost Error\n"); ndev 984 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "Bus Lock Error\n"); ndev 989 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "Error warning interrupt\n"); ndev 999 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "Error passive interrupt\n"); ndev 1009 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "Bus-off entry interrupt\n"); ndev 1010 drivers/net/can/rcar/rcar_canfd.c rcar_canfd_tx_failure_cleanup(ndev); ndev 1013 drivers/net/can/rcar/rcar_canfd.c can_bus_off(ndev); ndev 1017 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, ndev 1032 drivers/net/can/rcar/rcar_canfd.c static void rcar_canfd_tx_done(struct net_device *ndev) ndev 1034 drivers/net/can/rcar/rcar_canfd.c struct rcar_canfd_channel *priv = netdev_priv(ndev); ndev 1035 drivers/net/can/rcar/rcar_canfd.c struct net_device_stats *stats = &ndev->stats; ndev 1047 drivers/net/can/rcar/rcar_canfd.c can_get_echo_skb(ndev, sent); ndev 1057 drivers/net/can/rcar/rcar_canfd.c netif_wake_queue(ndev); ndev 1070 drivers/net/can/rcar/rcar_canfd.c can_led_event(ndev, CAN_LED_EVENT_TX); ndev 1076 drivers/net/can/rcar/rcar_canfd.c struct net_device *ndev; ndev 1086 drivers/net/can/rcar/rcar_canfd.c ndev = priv->ndev; ndev 1092 drivers/net/can/rcar/rcar_canfd.c rcar_canfd_global_error(ndev); ndev 1109 drivers/net/can/rcar/rcar_canfd.c static void rcar_canfd_state_change(struct net_device *ndev, ndev 1112 drivers/net/can/rcar/rcar_canfd.c struct rcar_canfd_channel *priv = netdev_priv(ndev); ndev 1113 drivers/net/can/rcar/rcar_canfd.c struct net_device_stats *stats = &ndev->stats; ndev 1125 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(ndev, "state: new %d, old %d: txerr %u, rxerr %u\n", ndev 1127 drivers/net/can/rcar/rcar_canfd.c skb = alloc_can_err_skb(ndev, &cf); ndev 1135 drivers/net/can/rcar/rcar_canfd.c can_change_state(ndev, cf, tx_state, rx_state); ndev 1145 drivers/net/can/rcar/rcar_canfd.c struct net_device *ndev; ndev 1153 drivers/net/can/rcar/rcar_canfd.c ndev = priv->ndev; ndev 1161 drivers/net/can/rcar/rcar_canfd.c rcar_canfd_error(ndev, cerfl, txerr, rxerr); ndev 1166 drivers/net/can/rcar/rcar_canfd.c rcar_canfd_state_change(ndev, txerr, rxerr); ndev 1172 drivers/net/can/rcar/rcar_canfd.c rcar_canfd_tx_done(ndev); ndev 1198 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(priv->ndev, "nrate: brp %u, sjw %u, tseg1 %u, tseg2 %u\n", ndev 1211 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(priv->ndev, "drate: brp %u, sjw %u, tseg1 %u, tseg2 %u\n", ndev 1219 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(priv->ndev, ndev 1225 drivers/net/can/rcar/rcar_canfd.c static int rcar_canfd_start(struct net_device *ndev) ndev 1227 drivers/net/can/rcar/rcar_canfd.c struct rcar_canfd_channel *priv = netdev_priv(ndev); ndev 1232 drivers/net/can/rcar/rcar_canfd.c rcar_canfd_set_bittiming(ndev); ndev 1244 drivers/net/can/rcar/rcar_canfd.c netdev_err(ndev, "channel %u communication state failed\n", ch); ndev 1261 drivers/net/can/rcar/rcar_canfd.c static int rcar_canfd_open(struct net_device *ndev) ndev 1263 drivers/net/can/rcar/rcar_canfd.c struct rcar_canfd_channel *priv = netdev_priv(ndev); ndev 1270 drivers/net/can/rcar/rcar_canfd.c netdev_err(ndev, "failed to enable CAN clock, error %d\n", err); ndev 1274 drivers/net/can/rcar/rcar_canfd.c err = open_candev(ndev); ndev 1276 drivers/net/can/rcar/rcar_canfd.c netdev_err(ndev, "open_candev() failed, error %d\n", err); ndev 1281 drivers/net/can/rcar/rcar_canfd.c err = rcar_canfd_start(ndev); ndev 1284 drivers/net/can/rcar/rcar_canfd.c netif_start_queue(ndev); ndev 1285 drivers/net/can/rcar/rcar_canfd.c can_led_event(ndev, CAN_LED_EVENT_OPEN); ndev 1289 drivers/net/can/rcar/rcar_canfd.c close_candev(ndev); ndev 1296 drivers/net/can/rcar/rcar_canfd.c static void rcar_canfd_stop(struct net_device *ndev) ndev 1298 drivers/net/can/rcar/rcar_canfd.c struct rcar_canfd_channel *priv = netdev_priv(ndev); ndev 1311 drivers/net/can/rcar/rcar_canfd.c netdev_err(ndev, "channel %u reset failed\n", ch); ndev 1324 drivers/net/can/rcar/rcar_canfd.c static int rcar_canfd_close(struct net_device *ndev) ndev 1326 drivers/net/can/rcar/rcar_canfd.c struct rcar_canfd_channel *priv = netdev_priv(ndev); ndev 1329 drivers/net/can/rcar/rcar_canfd.c netif_stop_queue(ndev); ndev 1330 drivers/net/can/rcar/rcar_canfd.c rcar_canfd_stop(ndev); ndev 1333 drivers/net/can/rcar/rcar_canfd.c close_candev(ndev); ndev 1334 drivers/net/can/rcar/rcar_canfd.c can_led_event(ndev, CAN_LED_EVENT_STOP); ndev 1339 drivers/net/can/rcar/rcar_canfd.c struct net_device *ndev) ndev 1341 drivers/net/can/rcar/rcar_canfd.c struct rcar_canfd_channel *priv = netdev_priv(ndev); ndev 1347 drivers/net/can/rcar/rcar_canfd.c if (can_dropped_invalid_skb(ndev, skb)) ndev 1393 drivers/net/can/rcar/rcar_canfd.c can_put_echo_skb(skb, ndev, priv->tx_head % RCANFD_FIFO_DEPTH); ndev 1400 drivers/net/can/rcar/rcar_canfd.c netif_stop_queue(ndev); ndev 1414 drivers/net/can/rcar/rcar_canfd.c struct net_device_stats *stats = &priv->ndev->stats; ndev 1427 drivers/net/can/rcar/rcar_canfd.c skb = alloc_canfd_skb(priv->ndev, &cf); ndev 1429 drivers/net/can/rcar/rcar_canfd.c skb = alloc_can_skb(priv->ndev, ndev 1434 drivers/net/can/rcar/rcar_canfd.c skb = alloc_can_skb(priv->ndev, (struct can_frame **)&cf); ndev 1455 drivers/net/can/rcar/rcar_canfd.c netdev_dbg(priv->ndev, "ESI Error\n"); ndev 1479 drivers/net/can/rcar/rcar_canfd.c can_led_event(priv->ndev, CAN_LED_EVENT_RX); ndev 1520 drivers/net/can/rcar/rcar_canfd.c static int rcar_canfd_do_set_mode(struct net_device *ndev, enum can_mode mode) ndev 1526 drivers/net/can/rcar/rcar_canfd.c err = rcar_canfd_start(ndev); ndev 1529 drivers/net/can/rcar/rcar_canfd.c netif_wake_queue(ndev); ndev 1561 drivers/net/can/rcar/rcar_canfd.c struct net_device *ndev; ndev 1564 drivers/net/can/rcar/rcar_canfd.c ndev = alloc_candev(sizeof(*priv), RCANFD_FIFO_DEPTH); ndev 1565 drivers/net/can/rcar/rcar_canfd.c if (!ndev) { ndev 1570 drivers/net/can/rcar/rcar_canfd.c priv = netdev_priv(ndev); ndev 1572 drivers/net/can/rcar/rcar_canfd.c ndev->netdev_ops = &rcar_canfd_netdev_ops; ndev 1573 drivers/net/can/rcar/rcar_canfd.c ndev->flags |= IFF_ECHO; ndev 1574 drivers/net/can/rcar/rcar_canfd.c priv->ndev = ndev; ndev 1586 drivers/net/can/rcar/rcar_canfd.c can_set_static_ctrlmode(ndev, CAN_CTRLMODE_FD); ndev 1597 drivers/net/can/rcar/rcar_canfd.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 1599 drivers/net/can/rcar/rcar_canfd.c netif_napi_add(ndev, &priv->napi, rcar_canfd_rx_poll, ndev 1601 drivers/net/can/rcar/rcar_canfd.c err = register_candev(ndev); ndev 1608 drivers/net/can/rcar/rcar_canfd.c devm_can_led_init(ndev); ndev 1615 drivers/net/can/rcar/rcar_canfd.c free_candev(ndev); ndev 1625 drivers/net/can/rcar/rcar_canfd.c unregister_candev(priv->ndev); ndev 1627 drivers/net/can/rcar/rcar_canfd.c free_candev(priv->ndev); ndev 379 drivers/net/can/softing/softing_main.c static int softing_netdev_open(struct net_device *ndev) ndev 384 drivers/net/can/softing/softing_main.c ret = open_candev(ndev); ndev 386 drivers/net/can/softing/softing_main.c ret = softing_startstop(ndev, 1); ndev 390 drivers/net/can/softing/softing_main.c static int softing_netdev_stop(struct net_device *ndev) ndev 394 drivers/net/can/softing/softing_main.c netif_stop_queue(ndev); ndev 397 drivers/net/can/softing/softing_main.c ret = softing_startstop(ndev, 0); ndev 401 drivers/net/can/softing/softing_main.c static int softing_candev_set_mode(struct net_device *ndev, enum can_mode mode) ndev 408 drivers/net/can/softing/softing_main.c ret = softing_startstop(ndev, 1); ndev 552 drivers/net/can/softing/softing_main.c struct net_device *ndev = to_net_dev(dev); ndev 553 drivers/net/can/softing/softing_main.c struct softing_priv *priv = netdev2softing(ndev); ndev 561 drivers/net/can/softing/softing_main.c struct net_device *ndev = to_net_dev(dev); ndev 562 drivers/net/can/softing/softing_main.c struct softing_priv *priv = netdev2softing(ndev); ndev 570 drivers/net/can/softing/softing_main.c struct net_device *ndev = to_net_dev(dev); ndev 571 drivers/net/can/softing/softing_main.c struct softing_priv *priv = netdev2softing(ndev); ndev 584 drivers/net/can/softing/softing_main.c if (netif_running(ndev)) { ndev 190 drivers/net/can/ti_hecc.c struct net_device *ndev; ndev 277 drivers/net/can/ti_hecc.c netdev_warn(priv->ndev, ndev 286 drivers/net/can/ti_hecc.c netdev_info(priv->ndev, "setting CANBTC=%#x\n", can_btc); ndev 303 drivers/net/can/ti_hecc.c static void ti_hecc_reset(struct net_device *ndev) ndev 306 drivers/net/can/ti_hecc.c struct ti_hecc_priv *priv = netdev_priv(ndev); ndev 308 drivers/net/can/ti_hecc.c netdev_dbg(ndev, "resetting hecc ...\n"); ndev 362 drivers/net/can/ti_hecc.c static void ti_hecc_start(struct net_device *ndev) ndev 364 drivers/net/can/ti_hecc.c struct ti_hecc_priv *priv = netdev_priv(ndev); ndev 368 drivers/net/can/ti_hecc.c ti_hecc_reset(ndev); ndev 412 drivers/net/can/ti_hecc.c static void ti_hecc_stop(struct net_device *ndev) ndev 414 drivers/net/can/ti_hecc.c struct ti_hecc_priv *priv = netdev_priv(ndev); ndev 426 drivers/net/can/ti_hecc.c static int ti_hecc_do_set_mode(struct net_device *ndev, enum can_mode mode) ndev 432 drivers/net/can/ti_hecc.c ti_hecc_start(ndev); ndev 433 drivers/net/can/ti_hecc.c netif_wake_queue(ndev); ndev 443 drivers/net/can/ti_hecc.c static int ti_hecc_get_berr_counter(const struct net_device *ndev, ndev 446 drivers/net/can/ti_hecc.c struct ti_hecc_priv *priv = netdev_priv(ndev); ndev 475 drivers/net/can/ti_hecc.c static netdev_tx_t ti_hecc_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 477 drivers/net/can/ti_hecc.c struct ti_hecc_priv *priv = netdev_priv(ndev); ndev 482 drivers/net/can/ti_hecc.c if (can_dropped_invalid_skb(ndev, skb)) ndev 490 drivers/net/can/ti_hecc.c netif_stop_queue(ndev); ndev 491 drivers/net/can/ti_hecc.c netdev_err(priv->ndev, ndev 516 drivers/net/can/ti_hecc.c can_put_echo_skb(skb, ndev, mbxno); ndev 522 drivers/net/can/ti_hecc.c netif_stop_queue(ndev); ndev 588 drivers/net/can/ti_hecc.c static int ti_hecc_error(struct net_device *ndev, int int_status, ndev 591 drivers/net/can/ti_hecc.c struct ti_hecc_priv *priv = netdev_priv(ndev); ndev 599 drivers/net/can/ti_hecc.c skb = alloc_can_err_skb(ndev, &cf); ndev 602 drivers/net/can/ti_hecc.c netdev_err(priv->ndev, ndev 625 drivers/net/can/ti_hecc.c ndev->stats.rx_fifo_errors++; ndev 633 drivers/net/can/ti_hecc.c static void ti_hecc_change_state(struct net_device *ndev, ndev 637 drivers/net/can/ti_hecc.c struct ti_hecc_priv *priv = netdev_priv(ndev); ndev 643 drivers/net/can/ti_hecc.c skb = alloc_can_err_skb(priv->ndev, &cf); ndev 649 drivers/net/can/ti_hecc.c can_change_state(priv->ndev, cf, tx_state, rx_state); ndev 659 drivers/net/can/ti_hecc.c ndev->stats.rx_fifo_errors++; ndev 664 drivers/net/can/ti_hecc.c struct net_device *ndev = (struct net_device *)dev_id; ndev 665 drivers/net/can/ti_hecc.c struct ti_hecc_priv *priv = netdev_priv(ndev); ndev 666 drivers/net/can/ti_hecc.c struct net_device_stats *stats = &ndev->stats; ndev 680 drivers/net/can/ti_hecc.c ti_hecc_error(ndev, int_status, err_status); ndev 691 drivers/net/can/ti_hecc.c netdev_dbg(priv->ndev, "Error Warning interrupt\n"); ndev 692 drivers/net/can/ti_hecc.c ti_hecc_change_state(ndev, rx_state, tx_state); ndev 699 drivers/net/can/ti_hecc.c netdev_dbg(priv->ndev, "Error passive interrupt\n"); ndev 700 drivers/net/can/ti_hecc.c ti_hecc_change_state(ndev, rx_state, tx_state); ndev 707 drivers/net/can/ti_hecc.c netdev_dbg(priv->ndev, "Bus off interrupt\n"); ndev 711 drivers/net/can/ti_hecc.c can_bus_off(ndev); ndev 712 drivers/net/can/ti_hecc.c ti_hecc_change_state(ndev, rx_state, tx_state); ndev 729 drivers/net/can/ti_hecc.c ti_hecc_change_state(ndev, rx_state, tx_state); ndev 748 drivers/net/can/ti_hecc.c can_led_event(ndev, CAN_LED_EVENT_TX); ndev 757 drivers/net/can/ti_hecc.c netif_wake_queue(ndev); ndev 778 drivers/net/can/ti_hecc.c static int ti_hecc_open(struct net_device *ndev) ndev 780 drivers/net/can/ti_hecc.c struct ti_hecc_priv *priv = netdev_priv(ndev); ndev 783 drivers/net/can/ti_hecc.c err = request_irq(ndev->irq, ti_hecc_interrupt, IRQF_SHARED, ndev 784 drivers/net/can/ti_hecc.c ndev->name, ndev); ndev 786 drivers/net/can/ti_hecc.c netdev_err(ndev, "error requesting interrupt\n"); ndev 793 drivers/net/can/ti_hecc.c err = open_candev(ndev); ndev 795 drivers/net/can/ti_hecc.c netdev_err(ndev, "open_candev() failed %d\n", err); ndev 797 drivers/net/can/ti_hecc.c free_irq(ndev->irq, ndev); ndev 801 drivers/net/can/ti_hecc.c can_led_event(ndev, CAN_LED_EVENT_OPEN); ndev 803 drivers/net/can/ti_hecc.c ti_hecc_start(ndev); ndev 805 drivers/net/can/ti_hecc.c netif_start_queue(ndev); ndev 810 drivers/net/can/ti_hecc.c static int ti_hecc_close(struct net_device *ndev) ndev 812 drivers/net/can/ti_hecc.c struct ti_hecc_priv *priv = netdev_priv(ndev); ndev 814 drivers/net/can/ti_hecc.c netif_stop_queue(ndev); ndev 816 drivers/net/can/ti_hecc.c ti_hecc_stop(ndev); ndev 817 drivers/net/can/ti_hecc.c free_irq(ndev->irq, ndev); ndev 818 drivers/net/can/ti_hecc.c close_candev(ndev); ndev 821 drivers/net/can/ti_hecc.c can_led_event(ndev, CAN_LED_EVENT_STOP); ndev 843 drivers/net/can/ti_hecc.c struct net_device *ndev = (struct net_device *)0; ndev 859 drivers/net/can/ti_hecc.c ndev = alloc_candev(sizeof(struct ti_hecc_priv), HECC_MAX_TX_MBOX); ndev 860 drivers/net/can/ti_hecc.c if (!ndev) { ndev 864 drivers/net/can/ti_hecc.c priv = netdev_priv(ndev); ndev 911 drivers/net/can/ti_hecc.c priv->ndev = ndev; ndev 921 drivers/net/can/ti_hecc.c ndev->irq = irq->start; ndev 922 drivers/net/can/ti_hecc.c ndev->flags |= IFF_ECHO; ndev 923 drivers/net/can/ti_hecc.c platform_set_drvdata(pdev, ndev); ndev 924 drivers/net/can/ti_hecc.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 925 drivers/net/can/ti_hecc.c ndev->netdev_ops = &ti_hecc_netdev_ops; ndev 945 drivers/net/can/ti_hecc.c err = can_rx_offload_add_timestamp(ndev, &priv->offload); ndev 951 drivers/net/can/ti_hecc.c err = register_candev(ndev); ndev 957 drivers/net/can/ti_hecc.c devm_can_led_init(ndev); ndev 960 drivers/net/can/ti_hecc.c priv->base, (u32)ndev->irq); ndev 969 drivers/net/can/ti_hecc.c free_candev(ndev); ndev 976 drivers/net/can/ti_hecc.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 977 drivers/net/can/ti_hecc.c struct ti_hecc_priv *priv = netdev_priv(ndev); ndev 979 drivers/net/can/ti_hecc.c unregister_candev(ndev); ndev 983 drivers/net/can/ti_hecc.c free_candev(ndev); ndev 360 drivers/net/can/xilinx_can.c static int set_reset_mode(struct net_device *ndev) ndev 362 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 370 drivers/net/can/xilinx_can.c netdev_warn(ndev, "timed out for config mode\n"); ndev 390 drivers/net/can/xilinx_can.c static int xcan_set_bittiming(struct net_device *ndev) ndev 392 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 404 drivers/net/can/xilinx_can.c netdev_alert(ndev, ndev 442 drivers/net/can/xilinx_can.c netdev_dbg(ndev, "BRPR=0x%08x, BTR=0x%08x\n", ndev 459 drivers/net/can/xilinx_can.c static int xcan_chip_start(struct net_device *ndev) ndev 461 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 467 drivers/net/can/xilinx_can.c err = set_reset_mode(ndev); ndev 471 drivers/net/can/xilinx_can.c err = xcan_set_bittiming(ndev); ndev 502 drivers/net/can/xilinx_can.c netdev_dbg(ndev, "status:#x%08x\n", ndev 519 drivers/net/can/xilinx_can.c static int xcan_do_set_mode(struct net_device *ndev, enum can_mode mode) ndev 525 drivers/net/can/xilinx_can.c ret = xcan_chip_start(ndev); ndev 527 drivers/net/can/xilinx_can.c netdev_err(ndev, "xcan_chip_start failed!\n"); ndev 530 drivers/net/can/xilinx_can.c netif_wake_queue(ndev); ndev 628 drivers/net/can/xilinx_can.c static int xcan_start_xmit_fifo(struct sk_buff *skb, struct net_device *ndev) ndev 630 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 638 drivers/net/can/xilinx_can.c can_put_echo_skb(skb, ndev, priv->tx_head % priv->tx_max); ndev 652 drivers/net/can/xilinx_can.c netif_stop_queue(ndev); ndev 666 drivers/net/can/xilinx_can.c static int xcan_start_xmit_mailbox(struct sk_buff *skb, struct net_device *ndev) ndev 668 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 675 drivers/net/can/xilinx_can.c can_put_echo_skb(skb, ndev, 0); ndev 687 drivers/net/can/xilinx_can.c netif_stop_queue(ndev); ndev 703 drivers/net/can/xilinx_can.c static netdev_tx_t xcan_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 705 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 708 drivers/net/can/xilinx_can.c if (can_dropped_invalid_skb(ndev, skb)) ndev 712 drivers/net/can/xilinx_can.c ret = xcan_start_xmit_mailbox(skb, ndev); ndev 714 drivers/net/can/xilinx_can.c ret = xcan_start_xmit_fifo(skb, ndev); ndev 717 drivers/net/can/xilinx_can.c netdev_err(ndev, "BUG!, TX full when queue awake!\n"); ndev 718 drivers/net/can/xilinx_can.c netif_stop_queue(ndev); ndev 736 drivers/net/can/xilinx_can.c static int xcan_rx(struct net_device *ndev, int frame_base) ndev 738 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 739 drivers/net/can/xilinx_can.c struct net_device_stats *stats = &ndev->stats; ndev 744 drivers/net/can/xilinx_can.c skb = alloc_can_skb(ndev, &cf); ndev 805 drivers/net/can/xilinx_can.c static int xcanfd_rx(struct net_device *ndev, int frame_base) ndev 807 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 808 drivers/net/can/xilinx_can.c struct net_device_stats *stats = &ndev->stats; ndev 816 drivers/net/can/xilinx_can.c skb = alloc_canfd_skb(ndev, &cf); ndev 818 drivers/net/can/xilinx_can.c skb = alloc_can_skb(ndev, (struct can_frame **)&cf); ndev 887 drivers/net/can/xilinx_can.c static enum can_state xcan_current_error_state(struct net_device *ndev) ndev 889 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 909 drivers/net/can/xilinx_can.c static void xcan_set_error_state(struct net_device *ndev, ndev 913 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 924 drivers/net/can/xilinx_can.c can_change_state(ndev, cf, tx_state, rx_state); ndev 940 drivers/net/can/xilinx_can.c static void xcan_update_error_state_after_rxtx(struct net_device *ndev) ndev 942 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 953 drivers/net/can/xilinx_can.c new_state = xcan_current_error_state(ndev); ndev 959 drivers/net/can/xilinx_can.c skb = alloc_can_err_skb(ndev, &cf); ndev 961 drivers/net/can/xilinx_can.c xcan_set_error_state(ndev, new_state, skb ? cf : NULL); ndev 964 drivers/net/can/xilinx_can.c struct net_device_stats *stats = &ndev->stats; ndev 982 drivers/net/can/xilinx_can.c static void xcan_err_interrupt(struct net_device *ndev, u32 isr) ndev 984 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 985 drivers/net/can/xilinx_can.c struct net_device_stats *stats = &ndev->stats; ndev 990 drivers/net/can/xilinx_can.c skb = alloc_can_err_skb(ndev, &cf); ndev 1000 drivers/net/can/xilinx_can.c can_bus_off(ndev); ndev 1004 drivers/net/can/xilinx_can.c enum can_state new_state = xcan_current_error_state(ndev); ndev 1007 drivers/net/can/xilinx_can.c xcan_set_error_state(ndev, new_state, skb ? cf : NULL); ndev 1033 drivers/net/can/xilinx_can.c netdev_err(ndev, "RX match not finished, frame discarded\n"); ndev 1098 drivers/net/can/xilinx_can.c netdev_dbg(ndev, "%s: error status register:0x%x\n", ndev 1110 drivers/net/can/xilinx_can.c static void xcan_state_interrupt(struct net_device *ndev, u32 isr) ndev 1112 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 1184 drivers/net/can/xilinx_can.c struct net_device *ndev = napi->dev; ndev 1185 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 1193 drivers/net/can/xilinx_can.c work_done += xcanfd_rx(ndev, frame_offset); ndev 1195 drivers/net/can/xilinx_can.c work_done += xcan_rx(ndev, frame_offset); ndev 1210 drivers/net/can/xilinx_can.c can_led_event(ndev, CAN_LED_EVENT_RX); ndev 1211 drivers/net/can/xilinx_can.c xcan_update_error_state_after_rxtx(ndev); ndev 1228 drivers/net/can/xilinx_can.c static void xcan_tx_interrupt(struct net_device *ndev, u32 isr) ndev 1230 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 1231 drivers/net/can/xilinx_can.c struct net_device_stats *stats = &ndev->stats; ndev 1287 drivers/net/can/xilinx_can.c stats->tx_bytes += can_get_echo_skb(ndev, priv->tx_tail % ndev 1293 drivers/net/can/xilinx_can.c netif_wake_queue(ndev); ndev 1297 drivers/net/can/xilinx_can.c can_led_event(ndev, CAN_LED_EVENT_TX); ndev 1298 drivers/net/can/xilinx_can.c xcan_update_error_state_after_rxtx(ndev); ndev 1314 drivers/net/can/xilinx_can.c struct net_device *ndev = (struct net_device *)dev_id; ndev 1315 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 1329 drivers/net/can/xilinx_can.c xcan_state_interrupt(ndev, isr); ndev 1334 drivers/net/can/xilinx_can.c xcan_tx_interrupt(ndev, isr); ndev 1342 drivers/net/can/xilinx_can.c xcan_err_interrupt(ndev, isr); ndev 1362 drivers/net/can/xilinx_can.c static void xcan_chip_stop(struct net_device *ndev) ndev 1364 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 1367 drivers/net/can/xilinx_can.c set_reset_mode(ndev); ndev 1378 drivers/net/can/xilinx_can.c static int xcan_open(struct net_device *ndev) ndev 1380 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 1385 drivers/net/can/xilinx_can.c netdev_err(ndev, "%s: pm_runtime_get failed(%d)\n", ndev 1390 drivers/net/can/xilinx_can.c ret = request_irq(ndev->irq, xcan_interrupt, priv->irq_flags, ndev 1391 drivers/net/can/xilinx_can.c ndev->name, ndev); ndev 1393 drivers/net/can/xilinx_can.c netdev_err(ndev, "irq allocation for CAN failed\n"); ndev 1398 drivers/net/can/xilinx_can.c ret = set_reset_mode(ndev); ndev 1400 drivers/net/can/xilinx_can.c netdev_err(ndev, "mode resetting failed!\n"); ndev 1405 drivers/net/can/xilinx_can.c ret = open_candev(ndev); ndev 1409 drivers/net/can/xilinx_can.c ret = xcan_chip_start(ndev); ndev 1411 drivers/net/can/xilinx_can.c netdev_err(ndev, "xcan_chip_start failed!\n"); ndev 1415 drivers/net/can/xilinx_can.c can_led_event(ndev, CAN_LED_EVENT_OPEN); ndev 1417 drivers/net/can/xilinx_can.c netif_start_queue(ndev); ndev 1422 drivers/net/can/xilinx_can.c close_candev(ndev); ndev 1424 drivers/net/can/xilinx_can.c free_irq(ndev->irq, ndev); ndev 1437 drivers/net/can/xilinx_can.c static int xcan_close(struct net_device *ndev) ndev 1439 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 1441 drivers/net/can/xilinx_can.c netif_stop_queue(ndev); ndev 1443 drivers/net/can/xilinx_can.c xcan_chip_stop(ndev); ndev 1444 drivers/net/can/xilinx_can.c free_irq(ndev->irq, ndev); ndev 1445 drivers/net/can/xilinx_can.c close_candev(ndev); ndev 1447 drivers/net/can/xilinx_can.c can_led_event(ndev, CAN_LED_EVENT_STOP); ndev 1461 drivers/net/can/xilinx_can.c static int xcan_get_berr_counter(const struct net_device *ndev, ndev 1464 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 1469 drivers/net/can/xilinx_can.c netdev_err(ndev, "%s: pm_runtime_get failed(%d)\n", ndev 1499 drivers/net/can/xilinx_can.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1501 drivers/net/can/xilinx_can.c if (netif_running(ndev)) { ndev 1502 drivers/net/can/xilinx_can.c netif_stop_queue(ndev); ndev 1503 drivers/net/can/xilinx_can.c netif_device_detach(ndev); ndev 1504 drivers/net/can/xilinx_can.c xcan_chip_stop(ndev); ndev 1519 drivers/net/can/xilinx_can.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1528 drivers/net/can/xilinx_can.c if (netif_running(ndev)) { ndev 1529 drivers/net/can/xilinx_can.c ret = xcan_chip_start(ndev); ndev 1535 drivers/net/can/xilinx_can.c netif_device_attach(ndev); ndev 1536 drivers/net/can/xilinx_can.c netif_start_queue(ndev); ndev 1551 drivers/net/can/xilinx_can.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1552 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 1569 drivers/net/can/xilinx_can.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1570 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 1657 drivers/net/can/xilinx_can.c struct net_device *ndev; ndev 1725 drivers/net/can/xilinx_can.c ndev = alloc_candev(sizeof(struct xcan_priv), tx_max); ndev 1726 drivers/net/can/xilinx_can.c if (!ndev) ndev 1729 drivers/net/can/xilinx_can.c priv = netdev_priv(ndev); ndev 1755 drivers/net/can/xilinx_can.c ndev->irq = platform_get_irq(pdev, 0); ndev 1756 drivers/net/can/xilinx_can.c ndev->flags |= IFF_ECHO; /* We support local echo */ ndev 1758 drivers/net/can/xilinx_can.c platform_set_drvdata(pdev, ndev); ndev 1759 drivers/net/can/xilinx_can.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 1760 drivers/net/can/xilinx_can.c ndev->netdev_ops = &xcan_netdev_ops; ndev 1784 drivers/net/can/xilinx_can.c netdev_err(ndev, "%s: pm_runtime_get failed(%d)\n", ndev 1796 drivers/net/can/xilinx_can.c netif_napi_add(ndev, &priv->napi, xcan_rx_poll, rx_max); ndev 1798 drivers/net/can/xilinx_can.c ret = register_candev(ndev); ndev 1804 drivers/net/can/xilinx_can.c devm_can_led_init(ndev); ndev 1813 drivers/net/can/xilinx_can.c netdev_dbg(ndev, "reg_base=0x%p irq=%d clock=%d, tx buffers: actual %d, using %d\n", ndev 1814 drivers/net/can/xilinx_can.c priv->reg_base, ndev->irq, priv->can.clock.freq, ndev 1824 drivers/net/can/xilinx_can.c free_candev(ndev); ndev 1838 drivers/net/can/xilinx_can.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1839 drivers/net/can/xilinx_can.c struct xcan_priv *priv = netdev_priv(ndev); ndev 1841 drivers/net/can/xilinx_can.c unregister_candev(ndev); ndev 1844 drivers/net/can/xilinx_can.c free_candev(ndev); ndev 284 drivers/net/ethernet/3com/3c509.c static int el3_isa_match(struct device *pdev, unsigned int ndev) ndev 343 drivers/net/ethernet/3com/3c509.c unsigned int ndev) ndev 360 drivers/net/ethernet/3com/3c509.c struct net_device *ndev = dev_get_drvdata(dev); ndev 361 drivers/net/ethernet/3com/3c509.c int ioaddr = ndev->base_addr, err; ndev 850 drivers/net/ethernet/3com/3c59x.c struct net_device *ndev = dev_get_drvdata(dev); ndev 852 drivers/net/ethernet/3com/3c59x.c if (!ndev || !netif_running(ndev)) ndev 855 drivers/net/ethernet/3com/3c59x.c netif_device_detach(ndev); ndev 856 drivers/net/ethernet/3com/3c59x.c vortex_down(ndev, 1); ndev 863 drivers/net/ethernet/3com/3c59x.c struct net_device *ndev = dev_get_drvdata(dev); ndev 866 drivers/net/ethernet/3com/3c59x.c if (!ndev || !netif_running(ndev)) ndev 869 drivers/net/ethernet/3com/3c59x.c err = vortex_up(ndev); ndev 873 drivers/net/ethernet/3com/3c59x.c netif_device_attach(ndev); ndev 969 drivers/net/ethernet/8390/ax88796.c struct net_device *ndev = platform_get_drvdata(dev); ndev 970 drivers/net/ethernet/8390/ax88796.c struct ax_device *ax = to_ax_dev(ndev); ndev 974 drivers/net/ethernet/8390/ax88796.c netif_device_detach(ndev); ndev 975 drivers/net/ethernet/8390/ax88796.c ax_close(ndev); ndev 982 drivers/net/ethernet/8390/ax88796.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 983 drivers/net/ethernet/8390/ax88796.c struct ax_device *ax = to_ax_dev(ndev); ndev 985 drivers/net/ethernet/8390/ax88796.c ax_initial_setup(ndev, netdev_priv(ndev)); ndev 986 drivers/net/ethernet/8390/ax88796.c ax_NS8390_init(ndev, ax->resume_open); ndev 987 drivers/net/ethernet/8390/ax88796.c netif_device_attach(ndev); ndev 990 drivers/net/ethernet/8390/ax88796.c ax_open(ndev); ndev 1294 drivers/net/ethernet/aeroflex/greth.c struct net_device *ndev = greth->netdev; ndev 1319 drivers/net/ethernet/aeroflex/greth.c phy_start(ndev->phydev); ndev 1323 drivers/net/ethernet/aeroflex/greth.c phy_start_aneg(ndev->phydev); ndev 1325 drivers/net/ethernet/aeroflex/greth.c while (!phy_aneg_done(ndev->phydev) && ndev 1328 drivers/net/ethernet/aeroflex/greth.c phy_read_status(ndev->phydev); ndev 1531 drivers/net/ethernet/aeroflex/greth.c struct net_device *ndev = platform_get_drvdata(of_dev); ndev 1532 drivers/net/ethernet/aeroflex/greth.c struct greth_private *greth = netdev_priv(ndev); ndev 1539 drivers/net/ethernet/aeroflex/greth.c if (ndev->phydev) ndev 1540 drivers/net/ethernet/aeroflex/greth.c phy_stop(ndev->phydev); ndev 1543 drivers/net/ethernet/aeroflex/greth.c unregister_netdev(ndev); ndev 1544 drivers/net/ethernet/aeroflex/greth.c free_netdev(ndev); ndev 79 drivers/net/ethernet/allwinner/sun4i-emac.c struct net_device *ndev; ndev 166 drivers/net/ethernet/allwinner/sun4i-emac.c phydev = of_phy_connect(db->ndev, db->phy_node, ndev 170 drivers/net/ethernet/allwinner/sun4i-emac.c netdev_err(db->ndev, "could not find the PHY\n"); ndev 255 drivers/net/ethernet/allwinner/sun4i-emac.c static unsigned int emac_setup(struct net_device *ndev) ndev 257 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(ndev); ndev 298 drivers/net/ethernet/allwinner/sun4i-emac.c static void emac_set_rx_mode(struct net_device *ndev) ndev 300 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(ndev); ndev 306 drivers/net/ethernet/allwinner/sun4i-emac.c if (ndev->flags & IFF_PROMISC) ndev 318 drivers/net/ethernet/allwinner/sun4i-emac.c static unsigned int emac_powerup(struct net_device *ndev) ndev 320 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(ndev); ndev 353 drivers/net/ethernet/allwinner/sun4i-emac.c emac_setup(ndev); ndev 356 drivers/net/ethernet/allwinner/sun4i-emac.c writel(ndev->dev_addr[0] << 16 | ndev->dev_addr[1] << 8 | ndev-> ndev 358 drivers/net/ethernet/allwinner/sun4i-emac.c writel(ndev->dev_addr[3] << 16 | ndev->dev_addr[4] << 8 | ndev-> ndev 767 drivers/net/ethernet/allwinner/sun4i-emac.c static int emac_stop(struct net_device *ndev) ndev 769 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(ndev); ndev 772 drivers/net/ethernet/allwinner/sun4i-emac.c dev_dbg(db->dev, "shutting down %s\n", ndev->name); ndev 774 drivers/net/ethernet/allwinner/sun4i-emac.c netif_stop_queue(ndev); ndev 775 drivers/net/ethernet/allwinner/sun4i-emac.c netif_carrier_off(ndev); ndev 777 drivers/net/ethernet/allwinner/sun4i-emac.c phy_stop(ndev->phydev); ndev 779 drivers/net/ethernet/allwinner/sun4i-emac.c emac_mdio_remove(ndev); ndev 781 drivers/net/ethernet/allwinner/sun4i-emac.c emac_shutdown(ndev); ndev 783 drivers/net/ethernet/allwinner/sun4i-emac.c free_irq(ndev->irq, ndev); ndev 808 drivers/net/ethernet/allwinner/sun4i-emac.c struct net_device *ndev; ndev 812 drivers/net/ethernet/allwinner/sun4i-emac.c ndev = alloc_etherdev(sizeof(struct emac_board_info)); ndev 813 drivers/net/ethernet/allwinner/sun4i-emac.c if (!ndev) { ndev 818 drivers/net/ethernet/allwinner/sun4i-emac.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 820 drivers/net/ethernet/allwinner/sun4i-emac.c db = netdev_priv(ndev); ndev 823 drivers/net/ethernet/allwinner/sun4i-emac.c db->ndev = ndev; ndev 837 drivers/net/ethernet/allwinner/sun4i-emac.c ndev->base_addr = (unsigned long)db->membase; ndev 838 drivers/net/ethernet/allwinner/sun4i-emac.c ndev->irq = irq_of_parse_and_map(np, 0); ndev 839 drivers/net/ethernet/allwinner/sun4i-emac.c if (ndev->irq == -ENXIO) { ndev 840 drivers/net/ethernet/allwinner/sun4i-emac.c netdev_err(ndev, "No irq resource\n"); ndev 841 drivers/net/ethernet/allwinner/sun4i-emac.c ret = ndev->irq; ndev 875 drivers/net/ethernet/allwinner/sun4i-emac.c ether_addr_copy(ndev->dev_addr, mac_addr); ndev 878 drivers/net/ethernet/allwinner/sun4i-emac.c if (!is_valid_ether_addr(ndev->dev_addr)) { ndev 879 drivers/net/ethernet/allwinner/sun4i-emac.c eth_hw_addr_random(ndev); ndev 881 drivers/net/ethernet/allwinner/sun4i-emac.c ndev->dev_addr); ndev 885 drivers/net/ethernet/allwinner/sun4i-emac.c emac_powerup(ndev); ndev 888 drivers/net/ethernet/allwinner/sun4i-emac.c ndev->netdev_ops = &emac_netdev_ops; ndev 889 drivers/net/ethernet/allwinner/sun4i-emac.c ndev->watchdog_timeo = msecs_to_jiffies(watchdog); ndev 890 drivers/net/ethernet/allwinner/sun4i-emac.c ndev->ethtool_ops = &emac_ethtool_ops; ndev 892 drivers/net/ethernet/allwinner/sun4i-emac.c platform_set_drvdata(pdev, ndev); ndev 895 drivers/net/ethernet/allwinner/sun4i-emac.c netif_carrier_off(ndev); ndev 897 drivers/net/ethernet/allwinner/sun4i-emac.c ret = register_netdev(ndev); ndev 905 drivers/net/ethernet/allwinner/sun4i-emac.c ndev->name, db->membase, ndev->irq, ndev->dev_addr); ndev 918 drivers/net/ethernet/allwinner/sun4i-emac.c free_netdev(ndev); ndev 925 drivers/net/ethernet/allwinner/sun4i-emac.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 926 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(ndev); ndev 928 drivers/net/ethernet/allwinner/sun4i-emac.c unregister_netdev(ndev); ndev 932 drivers/net/ethernet/allwinner/sun4i-emac.c free_netdev(ndev); ndev 940 drivers/net/ethernet/allwinner/sun4i-emac.c struct net_device *ndev = platform_get_drvdata(dev); ndev 942 drivers/net/ethernet/allwinner/sun4i-emac.c netif_carrier_off(ndev); ndev 943 drivers/net/ethernet/allwinner/sun4i-emac.c netif_device_detach(ndev); ndev 944 drivers/net/ethernet/allwinner/sun4i-emac.c emac_shutdown(ndev); ndev 951 drivers/net/ethernet/allwinner/sun4i-emac.c struct net_device *ndev = platform_get_drvdata(dev); ndev 952 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(ndev); ndev 955 drivers/net/ethernet/allwinner/sun4i-emac.c emac_init_device(ndev); ndev 956 drivers/net/ethernet/allwinner/sun4i-emac.c netif_device_attach(ndev); ndev 114 drivers/net/ethernet/altera/altera_tse_main.c struct net_device *ndev = bus->priv; ndev 115 drivers/net/ethernet/altera/altera_tse_main.c struct altera_tse_private *priv = netdev_priv(ndev); ndev 129 drivers/net/ethernet/altera/altera_tse_main.c struct net_device *ndev = bus->priv; ndev 130 drivers/net/ethernet/altera/altera_tse_main.c struct altera_tse_private *priv = netdev_priv(ndev); ndev 1349 drivers/net/ethernet/altera/altera_tse_main.c struct net_device *ndev; ndev 1358 drivers/net/ethernet/altera/altera_tse_main.c ndev = alloc_etherdev(sizeof(struct altera_tse_private)); ndev 1359 drivers/net/ethernet/altera/altera_tse_main.c if (!ndev) { ndev 1364 drivers/net/ethernet/altera/altera_tse_main.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 1366 drivers/net/ethernet/altera/altera_tse_main.c priv = netdev_priv(ndev); ndev 1368 drivers/net/ethernet/altera/altera_tse_main.c priv->dev = ndev; ndev 1530 drivers/net/ethernet/altera/altera_tse_main.c ether_addr_copy(ndev->dev_addr, macaddr); ndev 1532 drivers/net/ethernet/altera/altera_tse_main.c eth_hw_addr_random(ndev); ndev 1535 drivers/net/ethernet/altera/altera_tse_main.c ret = altera_tse_phy_get_addr_mdio_create(ndev); ndev 1541 drivers/net/ethernet/altera/altera_tse_main.c ndev->mem_start = control_port->start; ndev 1542 drivers/net/ethernet/altera/altera_tse_main.c ndev->mem_end = control_port->end; ndev 1543 drivers/net/ethernet/altera/altera_tse_main.c ndev->netdev_ops = &altera_tse_netdev_ops; ndev 1544 drivers/net/ethernet/altera/altera_tse_main.c altera_tse_set_ethtool_ops(ndev); ndev 1555 drivers/net/ethernet/altera/altera_tse_main.c ndev->hw_features &= ~NETIF_F_SG; ndev 1556 drivers/net/ethernet/altera/altera_tse_main.c ndev->features |= ndev->hw_features | NETIF_F_HIGHDMA; ndev 1562 drivers/net/ethernet/altera/altera_tse_main.c ndev->features |= NETIF_F_HW_VLAN_CTAG_RX; ndev 1565 drivers/net/ethernet/altera/altera_tse_main.c netif_napi_add(ndev, &priv->napi, tse_poll, NAPI_POLL_WEIGHT); ndev 1571 drivers/net/ethernet/altera/altera_tse_main.c netif_carrier_off(ndev); ndev 1572 drivers/net/ethernet/altera/altera_tse_main.c ret = register_netdev(ndev); ndev 1578 drivers/net/ethernet/altera/altera_tse_main.c platform_set_drvdata(pdev, ndev); ndev 1589 drivers/net/ethernet/altera/altera_tse_main.c ret = init_phy(ndev); ndev 1591 drivers/net/ethernet/altera/altera_tse_main.c netdev_err(ndev, "Cannot attach to PHY (error: %d)\n", ret); ndev 1597 drivers/net/ethernet/altera/altera_tse_main.c unregister_netdev(ndev); ndev 1600 drivers/net/ethernet/altera/altera_tse_main.c altera_tse_mdio_destroy(ndev); ndev 1602 drivers/net/ethernet/altera/altera_tse_main.c free_netdev(ndev); ndev 1610 drivers/net/ethernet/altera/altera_tse_main.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1611 drivers/net/ethernet/altera/altera_tse_main.c struct altera_tse_private *priv = netdev_priv(ndev); ndev 1613 drivers/net/ethernet/altera/altera_tse_main.c if (ndev->phydev) { ndev 1614 drivers/net/ethernet/altera/altera_tse_main.c phy_disconnect(ndev->phydev); ndev 1621 drivers/net/ethernet/altera/altera_tse_main.c altera_tse_mdio_destroy(ndev); ndev 1622 drivers/net/ethernet/altera/altera_tse_main.c unregister_netdev(ndev); ndev 1623 drivers/net/ethernet/altera/altera_tse_main.c free_netdev(ndev); ndev 26 drivers/net/ethernet/apm/xgene-v2/enet.c int xge_port_reset(struct net_device *ndev) ndev 28 drivers/net/ethernet/apm/xgene-v2/enet.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 53 drivers/net/ethernet/apm/xgene-v2/enet.c static void xge_traffic_resume(struct net_device *ndev) ndev 55 drivers/net/ethernet/apm/xgene-v2/enet.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 64 drivers/net/ethernet/apm/xgene-v2/enet.c void xge_port_init(struct net_device *ndev) ndev 66 drivers/net/ethernet/apm/xgene-v2/enet.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 70 drivers/net/ethernet/apm/xgene-v2/enet.c xge_traffic_resume(ndev); ndev 30 drivers/net/ethernet/apm/xgene-v2/enet.h int xge_port_reset(struct net_device *ndev); ndev 31 drivers/net/ethernet/apm/xgene-v2/enet.h void xge_port_init(struct net_device *ndev); ndev 85 drivers/net/ethernet/apm/xgene-v2/ethtool.c static void xge_get_drvinfo(struct net_device *ndev, ndev 88 drivers/net/ethernet/apm/xgene-v2/ethtool.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 97 drivers/net/ethernet/apm/xgene-v2/ethtool.c static void xge_get_strings(struct net_device *ndev, u32 stringset, u8 *data) ndev 116 drivers/net/ethernet/apm/xgene-v2/ethtool.c static int xge_get_sset_count(struct net_device *ndev, int sset) ndev 124 drivers/net/ethernet/apm/xgene-v2/ethtool.c static void xge_get_ethtool_stats(struct net_device *ndev, ndev 128 drivers/net/ethernet/apm/xgene-v2/ethtool.c void *pdata = netdev_priv(ndev); ndev 140 drivers/net/ethernet/apm/xgene-v2/ethtool.c static int xge_get_link_ksettings(struct net_device *ndev, ndev 143 drivers/net/ethernet/apm/xgene-v2/ethtool.c struct phy_device *phydev = ndev->phydev; ndev 153 drivers/net/ethernet/apm/xgene-v2/ethtool.c static int xge_set_link_ksettings(struct net_device *ndev, ndev 156 drivers/net/ethernet/apm/xgene-v2/ethtool.c struct phy_device *phydev = ndev->phydev; ndev 174 drivers/net/ethernet/apm/xgene-v2/ethtool.c void xge_set_ethtool_ops(struct net_device *ndev) ndev 176 drivers/net/ethernet/apm/xgene-v2/ethtool.c ndev->ethtool_ops = &xge_ethtool_ops; ndev 64 drivers/net/ethernet/apm/xgene-v2/ethtool.h void xge_set_ethtool_ops(struct net_device *ndev); ndev 68 drivers/net/ethernet/apm/xgene-v2/mac.c u8 *dev_addr = pdata->ndev->dev_addr; ndev 17 drivers/net/ethernet/apm/xgene-v2/main.c struct net_device *ndev; ndev 24 drivers/net/ethernet/apm/xgene-v2/main.c ndev = pdata->ndev; ndev 39 drivers/net/ethernet/apm/xgene-v2/main.c if (!device_get_mac_address(dev, ndev->dev_addr, ETH_ALEN)) ndev 40 drivers/net/ethernet/apm/xgene-v2/main.c eth_hw_addr_random(ndev); ndev 42 drivers/net/ethernet/apm/xgene-v2/main.c memcpy(ndev->perm_addr, ndev->dev_addr, ndev->addr_len); ndev 64 drivers/net/ethernet/apm/xgene-v2/main.c static int xge_refill_buffers(struct net_device *ndev, u32 nbuf) ndev 66 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 82 drivers/net/ethernet/apm/xgene-v2/main.c skb = netdev_alloc_skb(ndev, len); ndev 88 drivers/net/ethernet/apm/xgene-v2/main.c netdev_err(ndev, "DMA mapping error\n"); ndev 114 drivers/net/ethernet/apm/xgene-v2/main.c static int xge_init_hw(struct net_device *ndev) ndev 116 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 119 drivers/net/ethernet/apm/xgene-v2/main.c ret = xge_port_reset(ndev); ndev 123 drivers/net/ethernet/apm/xgene-v2/main.c xge_port_init(ndev); ndev 141 drivers/net/ethernet/apm/xgene-v2/main.c static int xge_request_irq(struct net_device *ndev) ndev 143 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 146 drivers/net/ethernet/apm/xgene-v2/main.c snprintf(pdata->irq_name, IRQ_ID_SIZE, "%s", ndev->name); ndev 151 drivers/net/ethernet/apm/xgene-v2/main.c netdev_err(ndev, "Failed to request irq %s\n", pdata->irq_name); ndev 156 drivers/net/ethernet/apm/xgene-v2/main.c static void xge_free_irq(struct net_device *ndev) ndev 158 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 172 drivers/net/ethernet/apm/xgene-v2/main.c static netdev_tx_t xge_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 174 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 190 drivers/net/ethernet/apm/xgene-v2/main.c netif_stop_queue(ndev); ndev 236 drivers/net/ethernet/apm/xgene-v2/main.c static void xge_txc_poll(struct net_device *ndev) ndev 238 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 279 drivers/net/ethernet/apm/xgene-v2/main.c if (netif_queue_stopped(ndev)) ndev 280 drivers/net/ethernet/apm/xgene-v2/main.c netif_wake_queue(ndev); ndev 285 drivers/net/ethernet/apm/xgene-v2/main.c static int xge_rx_poll(struct net_device *ndev, unsigned int budget) ndev 287 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 329 drivers/net/ethernet/apm/xgene-v2/main.c skb->protocol = eth_type_trans(skb, ndev); ndev 335 drivers/net/ethernet/apm/xgene-v2/main.c ret = xge_refill_buffers(ndev, 1); ndev 351 drivers/net/ethernet/apm/xgene-v2/main.c static void xge_delete_desc_ring(struct net_device *ndev, ndev 354 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 369 drivers/net/ethernet/apm/xgene-v2/main.c static void xge_free_buffers(struct net_device *ndev) ndev 371 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 391 drivers/net/ethernet/apm/xgene-v2/main.c static void xge_delete_desc_rings(struct net_device *ndev) ndev 393 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 395 drivers/net/ethernet/apm/xgene-v2/main.c xge_txc_poll(ndev); ndev 396 drivers/net/ethernet/apm/xgene-v2/main.c xge_delete_desc_ring(ndev, pdata->tx_ring); ndev 398 drivers/net/ethernet/apm/xgene-v2/main.c xge_rx_poll(ndev, 64); ndev 399 drivers/net/ethernet/apm/xgene-v2/main.c xge_free_buffers(ndev); ndev 400 drivers/net/ethernet/apm/xgene-v2/main.c xge_delete_desc_ring(ndev, pdata->rx_ring); ndev 403 drivers/net/ethernet/apm/xgene-v2/main.c static struct xge_desc_ring *xge_create_desc_ring(struct net_device *ndev) ndev 405 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 414 drivers/net/ethernet/apm/xgene-v2/main.c ring->ndev = ndev; ndev 432 drivers/net/ethernet/apm/xgene-v2/main.c xge_delete_desc_ring(ndev, ring); ndev 437 drivers/net/ethernet/apm/xgene-v2/main.c static int xge_create_desc_rings(struct net_device *ndev) ndev 439 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 444 drivers/net/ethernet/apm/xgene-v2/main.c ring = xge_create_desc_ring(ndev); ndev 452 drivers/net/ethernet/apm/xgene-v2/main.c ring = xge_create_desc_ring(ndev); ndev 459 drivers/net/ethernet/apm/xgene-v2/main.c ret = xge_refill_buffers(ndev, XGENE_ENET_NUM_DESC); ndev 465 drivers/net/ethernet/apm/xgene-v2/main.c xge_delete_desc_rings(ndev); ndev 470 drivers/net/ethernet/apm/xgene-v2/main.c static int xge_open(struct net_device *ndev) ndev 472 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 475 drivers/net/ethernet/apm/xgene-v2/main.c ret = xge_create_desc_rings(ndev); ndev 480 drivers/net/ethernet/apm/xgene-v2/main.c ret = xge_request_irq(ndev); ndev 487 drivers/net/ethernet/apm/xgene-v2/main.c phy_start(ndev->phydev); ndev 489 drivers/net/ethernet/apm/xgene-v2/main.c netif_start_queue(ndev); ndev 494 drivers/net/ethernet/apm/xgene-v2/main.c static int xge_close(struct net_device *ndev) ndev 496 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 498 drivers/net/ethernet/apm/xgene-v2/main.c netif_stop_queue(ndev); ndev 500 drivers/net/ethernet/apm/xgene-v2/main.c phy_stop(ndev->phydev); ndev 503 drivers/net/ethernet/apm/xgene-v2/main.c xge_free_irq(ndev); ndev 505 drivers/net/ethernet/apm/xgene-v2/main.c xge_delete_desc_rings(ndev); ndev 512 drivers/net/ethernet/apm/xgene-v2/main.c struct net_device *ndev = napi->dev; ndev 516 drivers/net/ethernet/apm/xgene-v2/main.c pdata = netdev_priv(ndev); ndev 518 drivers/net/ethernet/apm/xgene-v2/main.c xge_txc_poll(ndev); ndev 519 drivers/net/ethernet/apm/xgene-v2/main.c processed = xge_rx_poll(ndev, budget); ndev 529 drivers/net/ethernet/apm/xgene-v2/main.c static int xge_set_mac_addr(struct net_device *ndev, void *addr) ndev 531 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 534 drivers/net/ethernet/apm/xgene-v2/main.c ret = eth_mac_addr(ndev, addr); ndev 551 drivers/net/ethernet/apm/xgene-v2/main.c static void xge_free_pending_skb(struct net_device *ndev) ndev 553 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 578 drivers/net/ethernet/apm/xgene-v2/main.c static void xge_timeout(struct net_device *ndev) ndev 580 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 584 drivers/net/ethernet/apm/xgene-v2/main.c if (!netif_running(ndev)) ndev 587 drivers/net/ethernet/apm/xgene-v2/main.c netif_stop_queue(ndev); ndev 592 drivers/net/ethernet/apm/xgene-v2/main.c xge_txc_poll(ndev); ndev 593 drivers/net/ethernet/apm/xgene-v2/main.c xge_free_pending_skb(ndev); ndev 603 drivers/net/ethernet/apm/xgene-v2/main.c netif_start_queue(ndev); ndev 609 drivers/net/ethernet/apm/xgene-v2/main.c static void xge_get_stats64(struct net_device *ndev, ndev 612 drivers/net/ethernet/apm/xgene-v2/main.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 635 drivers/net/ethernet/apm/xgene-v2/main.c struct net_device *ndev; ndev 639 drivers/net/ethernet/apm/xgene-v2/main.c ndev = alloc_etherdev(sizeof(*pdata)); ndev 640 drivers/net/ethernet/apm/xgene-v2/main.c if (!ndev) ndev 643 drivers/net/ethernet/apm/xgene-v2/main.c pdata = netdev_priv(ndev); ndev 646 drivers/net/ethernet/apm/xgene-v2/main.c pdata->ndev = ndev; ndev 647 drivers/net/ethernet/apm/xgene-v2/main.c SET_NETDEV_DEV(ndev, dev); ndev 649 drivers/net/ethernet/apm/xgene-v2/main.c ndev->netdev_ops = &xgene_ndev_ops; ndev 651 drivers/net/ethernet/apm/xgene-v2/main.c ndev->features |= NETIF_F_GSO | ndev 658 drivers/net/ethernet/apm/xgene-v2/main.c ndev->hw_features = ndev->features; ndev 659 drivers/net/ethernet/apm/xgene-v2/main.c xge_set_ethtool_ops(ndev); ndev 663 drivers/net/ethernet/apm/xgene-v2/main.c netdev_err(ndev, "No usable DMA configuration\n"); ndev 667 drivers/net/ethernet/apm/xgene-v2/main.c ret = xge_init_hw(ndev); ndev 671 drivers/net/ethernet/apm/xgene-v2/main.c ret = xge_mdio_config(ndev); ndev 675 drivers/net/ethernet/apm/xgene-v2/main.c netif_napi_add(ndev, &pdata->napi, xge_napi, NAPI_POLL_WEIGHT); ndev 677 drivers/net/ethernet/apm/xgene-v2/main.c ret = register_netdev(ndev); ndev 679 drivers/net/ethernet/apm/xgene-v2/main.c netdev_err(ndev, "Failed to register netdev\n"); ndev 686 drivers/net/ethernet/apm/xgene-v2/main.c free_netdev(ndev); ndev 694 drivers/net/ethernet/apm/xgene-v2/main.c struct net_device *ndev; ndev 697 drivers/net/ethernet/apm/xgene-v2/main.c ndev = pdata->ndev; ndev 700 drivers/net/ethernet/apm/xgene-v2/main.c if (netif_running(ndev)) ndev 701 drivers/net/ethernet/apm/xgene-v2/main.c dev_close(ndev); ndev 704 drivers/net/ethernet/apm/xgene-v2/main.c xge_mdio_remove(ndev); ndev 705 drivers/net/ethernet/apm/xgene-v2/main.c unregister_netdev(ndev); ndev 706 drivers/net/ethernet/apm/xgene-v2/main.c free_netdev(ndev); ndev 719 drivers/net/ethernet/apm/xgene-v2/main.c if (!pdata->ndev) ndev 58 drivers/net/ethernet/apm/xgene-v2/main.h struct net_device *ndev; ndev 65 drivers/net/ethernet/apm/xgene-v2/main.h int xge_mdio_config(struct net_device *ndev); ndev 66 drivers/net/ethernet/apm/xgene-v2/main.h void xge_mdio_remove(struct net_device *ndev); ndev 63 drivers/net/ethernet/apm/xgene-v2/mdio.c static void xge_adjust_link(struct net_device *ndev) ndev 65 drivers/net/ethernet/apm/xgene-v2/mdio.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 66 drivers/net/ethernet/apm/xgene-v2/mdio.c struct phy_device *phydev = ndev->phydev; ndev 84 drivers/net/ethernet/apm/xgene-v2/mdio.c void xge_mdio_remove(struct net_device *ndev) ndev 86 drivers/net/ethernet/apm/xgene-v2/mdio.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 89 drivers/net/ethernet/apm/xgene-v2/mdio.c if (ndev->phydev) ndev 90 drivers/net/ethernet/apm/xgene-v2/mdio.c phy_disconnect(ndev->phydev); ndev 98 drivers/net/ethernet/apm/xgene-v2/mdio.c int xge_mdio_config(struct net_device *ndev) ndev 101 drivers/net/ethernet/apm/xgene-v2/mdio.c struct xge_pdata *pdata = netdev_priv(ndev); ndev 130 drivers/net/ethernet/apm/xgene-v2/mdio.c phydev = phy_connect(ndev, phydev_name(phydev), ndev 135 drivers/net/ethernet/apm/xgene-v2/mdio.c netdev_err(ndev, "Could not attach to PHY\n"); ndev 155 drivers/net/ethernet/apm/xgene-v2/mdio.c xge_mdio_remove(ndev); ndev 74 drivers/net/ethernet/apm/xgene-v2/ring.h struct net_device *ndev; ndev 778 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c netdev_err(pdata->ndev, "RSS initialization failed\n"); ndev 99 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c static void xgene_get_drvinfo(struct net_device *ndev, ndev 102 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 111 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c static int xgene_get_link_ksettings(struct net_device *ndev, ndev 114 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 115 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c struct phy_device *phydev = ndev->phydev; ndev 166 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c static int xgene_set_link_ksettings(struct net_device *ndev, ndev 169 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 170 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c struct phy_device *phydev = ndev->phydev; ndev 191 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c static void xgene_get_strings(struct net_device *ndev, u32 stringset, u8 *data) ndev 210 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c static int xgene_get_sset_count(struct net_device *ndev, int sset) ndev 265 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c static void xgene_get_ethtool_stats(struct net_device *ndev, ndev 269 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 273 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c dev_get_stats(ndev, &stats); ndev 282 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c static void xgene_get_pauseparam(struct net_device *ndev, ndev 285 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 292 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c static int xgene_set_pauseparam(struct net_device *ndev, ndev 295 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 296 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c struct phy_device *phydev = ndev->phydev; ndev 342 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c void xgene_enet_set_ethtool_ops(struct net_device *ndev) ndev 344 drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c ndev->ethtool_ops = &xgene_ethtool_ops; ndev 63 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); ndev 71 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); ndev 78 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); ndev 258 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct net_device *ndev = pdata->ndev; ndev 262 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c if (pdata->mdio_driver && ndev->phydev && ndev 264 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct mii_bus *bus = ndev->phydev->mdio.bus; ndev 283 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c netdev_err(ndev, "mac write failed, addr: %04x data: %08x\n", ndev 317 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct net_device *ndev = pdata->ndev; ndev 321 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c if (pdata->mdio_driver && ndev->phydev && ndev 323 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct mii_bus *bus = ndev->phydev->mdio.bus; ndev 341 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c netdev_err(ndev, "mac read failed, addr: %04x\n", rd_addr); ndev 369 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c netdev_err(pdata->ndev, "mac stats read failed, addr: %04x\n", ndev 382 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c u8 *dev_addr = pdata->ndev->dev_addr; ndev 394 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct net_device *ndev = pdata->ndev; ndev 405 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c netdev_err(ndev, "Failed to release memory from shutdown\n"); ndev 758 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static u32 xgene_enet_flowctrl_cfg(struct net_device *ndev) ndev 760 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 761 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct phy_device *phydev = ndev->phydev; ndev 800 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c static void xgene_enet_adjust_link(struct net_device *ndev) ndev 802 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 804 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct phy_device *phydev = ndev->phydev; ndev 815 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c xgene_enet_flowctrl_cfg(ndev); ndev 843 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c int xgene_enet_phy_connect(struct net_device *ndev) ndev 845 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 854 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c phy_dev = of_phy_connect(ndev, np, ndev 863 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c netdev_err(ndev, "Could not connect to PHY\n"); ndev 875 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c phy_connect_direct(ndev, phy_dev, &xgene_enet_adjust_link, ndev 877 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c netdev_err(ndev, "Could not connect to PHY\n"); ndev 898 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct net_device *ndev = pdata->ndev; ndev 915 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c netdev_dbg(ndev, "No mdio node in the dts\n"); ndev 945 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct net_device *ndev = pdata->ndev; ndev 957 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c ndev->name); ndev 964 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c netdev_err(ndev, "Failed to register MDIO bus\n"); ndev 970 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c ret = xgene_enet_phy_connect(ndev); ndev 979 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct net_device *ndev = pdata->ndev; ndev 981 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c if (ndev->phydev) ndev 982 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c phy_disconnect(ndev->phydev); ndev 987 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct net_device *ndev = pdata->ndev; ndev 989 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c if (ndev->phydev) ndev 990 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c phy_disconnect(ndev->phydev); ndev 427 drivers/net/ethernet/apm/xgene/xgene_enet_hw.h int xgene_enet_phy_connect(struct net_device *ndev); ndev 72 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct net_device *ndev; ndev 83 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev = buf_pool->ndev; ndev 84 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata = netdev_priv(ndev); ndev 85 drivers/net/ethernet/apm/xgene/xgene_enet_main.c dev = ndev_to_dev(ndev); ndev 124 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct net_device *ndev; ndev 132 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev = buf_pool->ndev; ndev 133 drivers/net/ethernet/apm/xgene/xgene_enet_main.c dev = ndev_to_dev(buf_pool->ndev); ndev 134 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata = netdev_priv(ndev); ndev 142 drivers/net/ethernet/apm/xgene/xgene_enet_main.c skb = netdev_alloc_skb_ip_align(ndev, len); ndev 148 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netdev_err(ndev, "DMA mapping error\n"); ndev 176 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct device *dev = ndev_to_dev(buf_pool->ndev); ndev 196 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct device *dev = ndev_to_dev(buf_pool->ndev); ndev 228 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(cp_ring->ndev); ndev 242 drivers/net/ethernet/apm/xgene/xgene_enet_main.c dev = ndev_to_dev(cp_ring->ndev); ndev 270 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netdev_err(cp_ring->ndev, "completion skb is NULL\n"); ndev 276 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static int xgene_enet_setup_mss(struct net_device *ndev, u32 mss) ndev 278 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 309 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct net_device *ndev = skb->dev; ndev 334 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (ndev->features & NETIF_F_TSO) { ndev 356 drivers/net/ethernet/apm/xgene/xgene_enet_main.c mss_index = xgene_enet_setup_mss(ndev, mss); ndev 409 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct device *dev = ndev_to_dev(tx_ring->ndev); ndev 410 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(tx_ring->ndev); ndev 440 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netdev_err(tx_ring->ndev, "DMA mapping error\n"); ndev 550 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct net_device *ndev) ndev 552 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 563 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netif_stop_subqueue(ndev, index); ndev 590 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct net_device *ndev = skb->dev; ndev 593 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (!(ndev->features & NETIF_F_RXCSUM)) ndev 624 drivers/net/ethernet/apm/xgene/xgene_enet_main.c dev = ndev_to_dev(buf_pool->ndev); ndev 675 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct net_device *ndev; ndev 686 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev = rx_ring->ndev; ndev 687 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata = netdev_priv(ndev); ndev 688 drivers/net/ethernet/apm/xgene/xgene_enet_main.c dev = ndev_to_dev(rx_ring->ndev); ndev 701 drivers/net/ethernet/apm/xgene/xgene_enet_main.c skb->protocol = eth_type_trans(skb, ndev); ndev 784 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct net_device *ndev = ring->ndev; ndev 785 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 839 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (__netif_subqueue_stopped(ndev, ring->index)) ndev 840 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netif_start_subqueue(ndev, ring->index); ndev 862 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static void xgene_enet_timeout(struct net_device *ndev) ndev 864 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 871 drivers/net/ethernet/apm/xgene/xgene_enet_main.c txq = netdev_get_tx_queue(ndev, i); ndev 877 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static void xgene_enet_set_irq_name(struct net_device *ndev) ndev 879 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 887 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev->name); ndev 890 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev->name, i); ndev 897 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev->name, i); ndev 901 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static int xgene_enet_register_irq(struct net_device *ndev) ndev 903 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 904 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct device *dev = ndev_to_dev(ndev); ndev 908 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_set_irq_name(ndev); ndev 915 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netdev_err(ndev, "Failed to request irq %s\n", ndev 926 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netdev_err(ndev, "Failed to request irq %s\n", ndev 934 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static void xgene_enet_free_irq(struct net_device *ndev) ndev 941 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata = netdev_priv(ndev); ndev 942 drivers/net/ethernet/apm/xgene/xgene_enet_main.c dev = ndev_to_dev(ndev); ndev 989 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static int xgene_enet_open(struct net_device *ndev) ndev 991 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 995 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = netif_set_real_num_tx_queues(ndev, pdata->txq_cnt); ndev 999 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = netif_set_real_num_rx_queues(ndev, pdata->rxq_cnt); ndev 1004 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = xgene_enet_register_irq(ndev); ndev 1008 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (ndev->phydev) { ndev 1009 drivers/net/ethernet/apm/xgene/xgene_enet_main.c phy_start(ndev->phydev); ndev 1012 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netif_carrier_off(ndev); ndev 1017 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netif_tx_start_all_queues(ndev); ndev 1022 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static int xgene_enet_close(struct net_device *ndev) ndev 1024 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 1028 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netif_tx_stop_all_queues(ndev); ndev 1032 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (ndev->phydev) ndev 1033 drivers/net/ethernet/apm/xgene/xgene_enet_main.c phy_stop(ndev->phydev); ndev 1037 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_free_irq(ndev); ndev 1049 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata = netdev_priv(ring->ndev); ndev 1050 drivers/net/ethernet/apm/xgene/xgene_enet_main.c dev = ndev_to_dev(ring->ndev); ndev 1133 drivers/net/ethernet/apm/xgene/xgene_enet_main.c dev = ndev_to_dev(ring->ndev); ndev 1134 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata = netdev_priv(ring->ndev); ndev 1211 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct net_device *ndev, u32 ring_num, ndev 1214 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 1215 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct device *dev = ndev_to_dev(ndev); ndev 1229 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ring->ndev = ndev; ndev 1258 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netdev_dbg(ndev, "ring info: num=%d size=%d id=%d slots=%d\n", ndev 1301 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static int xgene_enet_create_desc_rings(struct net_device *ndev) ndev 1304 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 1307 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct device *dev = ndev_to_dev(ndev); ndev 1324 drivers/net/ethernet/apm/xgene/xgene_enet_main.c rx_ring = xgene_enet_create_desc_ring(ndev, ring_num++, ndev 1335 drivers/net/ethernet/apm/xgene/xgene_enet_main.c buf_pool = xgene_enet_create_desc_ring(ndev, ring_num++, ndev 1366 drivers/net/ethernet/apm/xgene/xgene_enet_main.c page_pool = xgene_enet_create_desc_ring(ndev, ring_num++, ndev 1399 drivers/net/ethernet/apm/xgene/xgene_enet_main.c tx_ring = xgene_enet_create_desc_ring(ndev, ring_num++, ndev 1424 drivers/net/ethernet/apm/xgene/xgene_enet_main.c cp_ring = xgene_enet_create_desc_ring(ndev, ring_num++, ndev 1469 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct net_device *ndev, ndev 1472 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 1505 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static int xgene_enet_set_mac_address(struct net_device *ndev, void *addr) ndev 1507 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 1510 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = eth_mac_addr(ndev, addr); ndev 1518 drivers/net/ethernet/apm/xgene/xgene_enet_main.c static int xgene_change_mtu(struct net_device *ndev, int new_mtu) ndev 1520 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct xgene_enet_pdata *pdata = netdev_priv(ndev); ndev 1523 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (!netif_running(ndev)) ndev 1528 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_close(ndev); ndev 1529 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev->mtu = new_mtu; ndev 1531 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_open(ndev); ndev 1657 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = xgene_enet_phy_connect(pdata->ndev); ndev 1681 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct net_device *ndev; ndev 1690 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev = pdata->ndev; ndev 1734 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (!device_get_mac_address(dev, ndev->dev_addr, ETH_ALEN)) ndev 1735 drivers/net/ethernet/apm/xgene/xgene_enet_main.c eth_hw_addr_random(ndev); ndev 1737 drivers/net/ethernet/apm/xgene/xgene_enet_main.c memcpy(ndev->perm_addr, ndev->dev_addr, ndev->addr_len); ndev 1811 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct net_device *ndev = pdata->ndev; ndev 1821 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = xgene_enet_create_desc_rings(ndev); ndev 1823 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netdev_err(ndev, "Error in ring configuration\n"); ndev 1858 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netdev_err(ndev, "Preclass Tree init error\n"); ndev 1871 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev->max_mtu = XGENE_ENET_MAX_MTU; ndev 1978 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netif_napi_add(pdata->ndev, napi, xgene_enet_napi, ndev 1984 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netif_napi_add(pdata->ndev, napi, xgene_enet_napi, ndev 2015 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct net_device *ndev; ndev 2022 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev = alloc_etherdev_mqs(sizeof(struct xgene_enet_pdata), ndev 2024 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (!ndev) ndev 2027 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata = netdev_priv(ndev); ndev 2030 drivers/net/ethernet/apm/xgene/xgene_enet_main.c pdata->ndev = ndev; ndev 2031 drivers/net/ethernet/apm/xgene/xgene_enet_main.c SET_NETDEV_DEV(ndev, dev); ndev 2033 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev->netdev_ops = &xgene_ndev_ops; ndev 2034 drivers/net/ethernet/apm/xgene/xgene_enet_main.c xgene_enet_set_ethtool_ops(ndev); ndev 2035 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev->features |= NETIF_F_IP_CSUM | ndev 2066 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev->features |= NETIF_F_TSO | NETIF_F_RXCSUM; ndev 2069 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev->hw_features = ndev->features; ndev 2073 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netdev_err(ndev, "No usable DMA configuration\n"); ndev 2102 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ret = register_netdev(ndev); ndev 2104 drivers/net/ethernet/apm/xgene/xgene_enet_main.c netdev_err(ndev, "Failed to register netdev\n"); ndev 2124 drivers/net/ethernet/apm/xgene/xgene_enet_main.c free_netdev(ndev); ndev 2131 drivers/net/ethernet/apm/xgene/xgene_enet_main.c struct net_device *ndev; ndev 2134 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev = pdata->ndev; ndev 2137 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (netif_running(ndev)) ndev 2138 drivers/net/ethernet/apm/xgene/xgene_enet_main.c dev_close(ndev); ndev 2146 drivers/net/ethernet/apm/xgene/xgene_enet_main.c unregister_netdev(ndev); ndev 2149 drivers/net/ethernet/apm/xgene/xgene_enet_main.c free_netdev(ndev); ndev 2162 drivers/net/ethernet/apm/xgene/xgene_enet_main.c if (!pdata->ndev) ndev 92 drivers/net/ethernet/apm/xgene/xgene_enet_main.h struct net_device *ndev; ndev 185 drivers/net/ethernet/apm/xgene/xgene_enet_main.h struct net_device *ndev; ndev 250 drivers/net/ethernet/apm/xgene/xgene_enet_main.h static inline struct device *ndev_to_dev(struct net_device *ndev) ndev 252 drivers/net/ethernet/apm/xgene/xgene_enet_main.h return ndev->dev.parent; ndev 257 drivers/net/ethernet/apm/xgene/xgene_enet_main.h struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); ndev 58 drivers/net/ethernet/apm/xgene/xgene_enet_ring2.c struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); ndev 65 drivers/net/ethernet/apm/xgene/xgene_enet_ring2.c struct xgene_enet_pdata *pdata = netdev_priv(ring->ndev); ndev 62 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c struct net_device *ndev = p->ndev; ndev 70 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c netdev_dbg(ndev, "+ ecc_init done, skipping\n"); ndev 82 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c netdev_err(ndev, "Failed to release memory from shutdown\n"); ndev 132 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c netdev_err(p->ndev, "MII_MGMT write failed\n"); ndev 155 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c netdev_err(p->ndev, "MII_MGMT read failed\n"); ndev 169 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c u8 *dev_addr = p->ndev->dev_addr; ndev 300 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c netdev_err(p->ndev, "Auto-negotiation failed\n"); ndev 538 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c struct net_device *ndev = p->ndev; ndev 543 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c if (!netif_carrier_ok(ndev)) { ndev 544 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c netif_carrier_on(ndev); ndev 548 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c netdev_info(ndev, "Link is Up - %dMbps\n", ndev 553 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c if (netif_carrier_ok(ndev)) { ndev 556 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c netif_carrier_off(ndev); ndev 557 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c netdev_info(ndev, "Link is Down\n"); ndev 73 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c netdev_err(pdata->ndev, "PCS write failed, addr: %04x\n", ndev 137 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c netdev_err(pdata->ndev, "PCS read failed, addr: %04x\n", ndev 153 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c struct net_device *ndev = pdata->ndev; ndev 164 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c netdev_err(ndev, "Failed to release memory from shutdown\n"); ndev 211 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c u8 *dev_addr = pdata->ndev->dev_addr; ndev 478 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c struct net_device *ndev = pdata->ndev; ndev 488 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c if (!netif_carrier_ok(ndev)) { ndev 489 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c netif_carrier_on(ndev); ndev 492 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c netdev_info(ndev, "Link is Up - 10Gbps\n"); ndev 496 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c if (netif_carrier_ok(ndev)) { ndev 499 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c netif_carrier_off(ndev); ndev 500 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c netdev_info(ndev, "Link is Down\n"); ndev 109 drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c int aq_drvinfo_init(struct net_device *ndev) ndev 111 drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 117 drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c ndev->name, ndev 129 drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c int aq_drvinfo_init(struct net_device *ndev) { return 0; } ndev 13 drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.h int aq_drvinfo_init(struct net_device *ndev); ndev 14 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static void aq_ethtool_get_regs(struct net_device *ndev, ndev 17 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 24 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static int aq_ethtool_get_regs_len(struct net_device *ndev) ndev 26 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 32 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static u32 aq_ethtool_get_link(struct net_device *ndev) ndev 34 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c return ethtool_op_get_link(ndev); ndev 37 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static int aq_ethtool_get_link_ksettings(struct net_device *ndev, ndev 40 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 43 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c cmd->base.speed = netif_carrier_ok(ndev) ? ndev 50 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c aq_ethtool_set_link_ksettings(struct net_device *ndev, ndev 53 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 92 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static void aq_ethtool_stats(struct net_device *ndev, ndev 95 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 104 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static void aq_ethtool_get_drvinfo(struct net_device *ndev, ndev 107 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 109 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct pci_dev *pdev = to_pci_dev(ndev->dev.parent); ndev 129 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static void aq_ethtool_get_strings(struct net_device *ndev, ndev 133 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 153 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static int aq_ethtool_get_sset_count(struct net_device *ndev, int stringset) ndev 156 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 170 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static u32 aq_ethtool_get_rss_indir_size(struct net_device *ndev) ndev 175 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static u32 aq_ethtool_get_rss_key_size(struct net_device *ndev) ndev 177 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 183 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static int aq_ethtool_get_rss(struct net_device *ndev, u32 *indir, u8 *key, ndev 186 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 237 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static int aq_ethtool_get_rxnfc(struct net_device *ndev, ndev 241 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 266 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static int aq_ethtool_set_rxnfc(struct net_device *ndev, ndev 270 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 287 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static int aq_ethtool_get_coalesce(struct net_device *ndev, ndev 290 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 308 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static int aq_ethtool_set_coalesce(struct net_device *ndev, ndev 311 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 350 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static void aq_ethtool_get_wol(struct net_device *ndev, ndev 353 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 363 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static int aq_ethtool_set_wol(struct net_device *ndev, ndev 366 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct pci_dev *pdev = to_pci_dev(ndev->dev.parent); ndev 367 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 396 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static int aq_ethtool_get_eee(struct net_device *ndev, struct ethtool_eee *eee) ndev 398 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 428 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static int aq_ethtool_set_eee(struct net_device *ndev, struct ethtool_eee *eee) ndev 430 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 463 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static int aq_ethtool_nway_reset(struct net_device *ndev) ndev 465 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 471 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c if (netif_running(ndev)) { ndev 480 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static void aq_ethtool_get_pauseparam(struct net_device *ndev, ndev 483 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 493 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static int aq_ethtool_set_pauseparam(struct net_device *ndev, ndev 496 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 522 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static void aq_get_ringparam(struct net_device *ndev, ndev 525 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 535 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c static int aq_set_ringparam(struct net_device *ndev, ndev 540 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 549 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c if (netif_running(ndev)) { ndev 551 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c dev_close(ndev); ndev 574 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c err = dev_open(ndev, NULL); ndev 79 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 94 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 102 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 107 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 113 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 129 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 138 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 153 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 160 drivers/net/ethernet/aquantia/atlantic/aq_filters.c if ((aq_nic->ndev->features & NETIF_F_HW_VLAN_CTAG_FILTER) && ndev 163 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 169 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 190 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 217 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 232 drivers/net/ethernet/aquantia/atlantic/aq_filters.c if (!(aq_nic->ndev->features & NETIF_F_NTUPLE)) { ndev 233 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 235 drivers/net/ethernet/aquantia/atlantic/aq_filters.c "ethtool -K %s ntuple on\n", aq_nic->ndev->name); ndev 238 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 244 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 248 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 265 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 273 drivers/net/ethernet/aquantia/atlantic/aq_filters.c netdev_err(aq_nic->ndev, ndev 831 drivers/net/ethernet/aquantia/atlantic/aq_filters.c if (aq_nic->ndev->features & NETIF_F_HW_VLAN_CTAG_FILTER) { ndev 846 drivers/net/ethernet/aquantia/atlantic/aq_filters.c if (aq_nic->ndev->features & NETIF_F_HW_VLAN_CTAG_FILTER) { ndev 36 drivers/net/ethernet/aquantia/atlantic/aq_main.c struct net_device *ndev = NULL; ndev 39 drivers/net/ethernet/aquantia/atlantic/aq_main.c ndev = alloc_etherdev_mq(sizeof(struct aq_nic_s), AQ_CFG_VECS_MAX); ndev 40 drivers/net/ethernet/aquantia/atlantic/aq_main.c if (!ndev) ndev 43 drivers/net/ethernet/aquantia/atlantic/aq_main.c aq_nic = netdev_priv(ndev); ndev 44 drivers/net/ethernet/aquantia/atlantic/aq_main.c aq_nic->ndev = ndev; ndev 45 drivers/net/ethernet/aquantia/atlantic/aq_main.c ndev->netdev_ops = &aq_ndev_ops; ndev 46 drivers/net/ethernet/aquantia/atlantic/aq_main.c ndev->ethtool_ops = &aq_ethtool_ops; ndev 48 drivers/net/ethernet/aquantia/atlantic/aq_main.c return ndev; ndev 51 drivers/net/ethernet/aquantia/atlantic/aq_main.c static int aq_ndev_open(struct net_device *ndev) ndev 54 drivers/net/ethernet/aquantia/atlantic/aq_main.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 78 drivers/net/ethernet/aquantia/atlantic/aq_main.c static int aq_ndev_close(struct net_device *ndev) ndev 81 drivers/net/ethernet/aquantia/atlantic/aq_main.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 92 drivers/net/ethernet/aquantia/atlantic/aq_main.c static int aq_ndev_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 94 drivers/net/ethernet/aquantia/atlantic/aq_main.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 99 drivers/net/ethernet/aquantia/atlantic/aq_main.c static int aq_ndev_change_mtu(struct net_device *ndev, int new_mtu) ndev 101 drivers/net/ethernet/aquantia/atlantic/aq_main.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 106 drivers/net/ethernet/aquantia/atlantic/aq_main.c ndev->mtu = new_mtu; ndev 112 drivers/net/ethernet/aquantia/atlantic/aq_main.c static int aq_ndev_set_features(struct net_device *ndev, ndev 117 drivers/net/ethernet/aquantia/atlantic/aq_main.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 126 drivers/net/ethernet/aquantia/atlantic/aq_main.c if (aq_nic->ndev->features & NETIF_F_NTUPLE) { ndev 133 drivers/net/ethernet/aquantia/atlantic/aq_main.c if (aq_nic->ndev->features & NETIF_F_HW_VLAN_CTAG_FILTER) { ndev 151 drivers/net/ethernet/aquantia/atlantic/aq_main.c if ((aq_nic->ndev->features ^ features) & NETIF_F_RXCSUM) { ndev 168 drivers/net/ethernet/aquantia/atlantic/aq_main.c if (need_ndev_restart && netif_running(ndev)) { ndev 169 drivers/net/ethernet/aquantia/atlantic/aq_main.c aq_ndev_close(ndev); ndev 170 drivers/net/ethernet/aquantia/atlantic/aq_main.c aq_ndev_open(ndev); ndev 177 drivers/net/ethernet/aquantia/atlantic/aq_main.c static int aq_ndev_set_mac_address(struct net_device *ndev, void *addr) ndev 179 drivers/net/ethernet/aquantia/atlantic/aq_main.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 182 drivers/net/ethernet/aquantia/atlantic/aq_main.c err = eth_mac_addr(ndev, addr); ndev 185 drivers/net/ethernet/aquantia/atlantic/aq_main.c err = aq_nic_set_mac(aq_nic, ndev); ndev 193 drivers/net/ethernet/aquantia/atlantic/aq_main.c static void aq_ndev_set_multicast_settings(struct net_device *ndev) ndev 195 drivers/net/ethernet/aquantia/atlantic/aq_main.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 197 drivers/net/ethernet/aquantia/atlantic/aq_main.c (void)aq_nic_set_multicast_list(aq_nic, ndev); ndev 200 drivers/net/ethernet/aquantia/atlantic/aq_main.c static int aq_ndo_vlan_rx_add_vid(struct net_device *ndev, __be16 proto, ndev 203 drivers/net/ethernet/aquantia/atlantic/aq_main.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 213 drivers/net/ethernet/aquantia/atlantic/aq_main.c static int aq_ndo_vlan_rx_kill_vid(struct net_device *ndev, __be16 proto, ndev 216 drivers/net/ethernet/aquantia/atlantic/aq_main.c struct aq_nic_s *aq_nic = netdev_priv(ndev); ndev 159 drivers/net/ethernet/aquantia/atlantic/aq_nic.c if (!netif_carrier_ok(self->ndev) && self->link_status.mbps) { ndev 164 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netif_carrier_on(self->ndev); ndev 165 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netif_tx_wake_all_queues(self->ndev); ndev 167 drivers/net/ethernet/aquantia/atlantic/aq_nic.c if (netif_carrier_ok(self->ndev) && !self->link_status.mbps) { ndev 168 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netif_carrier_off(self->ndev); ndev 169 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netif_tx_disable(self->ndev); ndev 237 drivers/net/ethernet/aquantia/atlantic/aq_nic.c if (!self->ndev) { ndev 248 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->ndev->dev_addr); ndev 257 drivers/net/ethernet/aquantia/atlantic/aq_nic.c ether_addr_copy(self->ndev->dev_addr, mac_addr_permanent); ndev 271 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netif_carrier_off(self->ndev); ndev 273 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netif_tx_disable(self->ndev); ndev 275 drivers/net/ethernet/aquantia/atlantic/aq_nic.c err = register_netdev(self->ndev); ndev 288 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->ndev->hw_features |= aq_hw_caps->hw_features; ndev 289 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->ndev->features = aq_hw_caps->hw_features; ndev 290 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->ndev->vlan_features |= NETIF_F_HW_CSUM | NETIF_F_RXCSUM | ndev 293 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->ndev->priv_flags = aq_hw_caps->hw_priv_flags; ndev 294 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->ndev->priv_flags |= IFF_LIVE_ADDR_CHANGE; ndev 296 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->ndev->mtu = aq_nic_cfg->mtu - ETH_HLEN; ndev 297 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->ndev->max_mtu = aq_hw_caps->mtu - ETH_FCS_LEN - ETH_HLEN; ndev 309 drivers/net/ethernet/aquantia/atlantic/aq_nic.c return self->ndev; ndev 334 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netif_carrier_off(self->ndev); ndev 384 drivers/net/ethernet/aquantia/atlantic/aq_nic.c err = aq_pci_func_alloc_irq(self, i, self->ndev->name, ndev 397 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->ndev->name, self); ndev 409 drivers/net/ethernet/aquantia/atlantic/aq_nic.c err = netif_set_real_num_tx_queues(self->ndev, self->aq_vecs); ndev 413 drivers/net/ethernet/aquantia/atlantic/aq_nic.c err = netif_set_real_num_rx_queues(self->ndev, self->aq_vecs); ndev 417 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netif_tx_start_all_queues(self->ndev); ndev 593 drivers/net/ethernet/aquantia/atlantic/aq_nic.c if (__netif_subqueue_stopped(self->ndev, ring->idx)) { ndev 630 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_set_multicast_list(struct aq_nic_s *self, struct net_device *ndev) ndev 634 drivers/net/ethernet/aquantia/atlantic/aq_nic.c unsigned int packet_filter = ndev->flags; ndev 640 drivers/net/ethernet/aquantia/atlantic/aq_nic.c if (netdev_uc_count(ndev) > AQ_HW_MULTICAST_ADDRESS_MAX) { ndev 643 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netdev_for_each_uc_addr(ha, ndev) { ndev 650 drivers/net/ethernet/aquantia/atlantic/aq_nic.c if (i + netdev_mc_count(ndev) > AQ_HW_MULTICAST_ADDRESS_MAX) { ndev 653 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netdev_for_each_mc_addr(ha, ndev) { ndev 678 drivers/net/ethernet/aquantia/atlantic/aq_nic.c int aq_nic_set_mac(struct aq_nic_s *self, struct net_device *ndev) ndev 680 drivers/net/ethernet/aquantia/atlantic/aq_nic.c return self->aq_hw_ops->hw_set_mac_address(self->aq_hw, ndev->dev_addr); ndev 765 drivers/net/ethernet/aquantia/atlantic/aq_nic.c struct net_device *ndev = self->ndev; ndev 768 drivers/net/ethernet/aquantia/atlantic/aq_nic.c ndev->stats.rx_packets = stats->dma_pkt_rc; ndev 769 drivers/net/ethernet/aquantia/atlantic/aq_nic.c ndev->stats.rx_bytes = stats->dma_oct_rc; ndev 770 drivers/net/ethernet/aquantia/atlantic/aq_nic.c ndev->stats.rx_errors = stats->erpr; ndev 771 drivers/net/ethernet/aquantia/atlantic/aq_nic.c ndev->stats.rx_dropped = stats->dpc; ndev 772 drivers/net/ethernet/aquantia/atlantic/aq_nic.c ndev->stats.tx_packets = stats->dma_pkt_tc; ndev 773 drivers/net/ethernet/aquantia/atlantic/aq_nic.c ndev->stats.tx_bytes = stats->dma_oct_tc; ndev 774 drivers/net/ethernet/aquantia/atlantic/aq_nic.c ndev->stats.tx_errors = stats->erpt; ndev 775 drivers/net/ethernet/aquantia/atlantic/aq_nic.c ndev->stats.multicast = stats->mprc; ndev 941 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netif_tx_disable(self->ndev); ndev 942 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netif_carrier_off(self->ndev); ndev 985 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->ndev->dev_addr); ndev 1014 drivers/net/ethernet/aquantia/atlantic/aq_nic.c if (!netif_running(self->ndev)) { ndev 1021 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netif_device_detach(self->ndev); ndev 1022 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netif_tx_stop_all_queues(self->ndev); ndev 1038 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netif_device_attach(self->ndev); ndev 1039 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netif_tx_start_all_queues(self->ndev); ndev 1052 drivers/net/ethernet/aquantia/atlantic/aq_nic.c if (!self->ndev) ndev 1057 drivers/net/ethernet/aquantia/atlantic/aq_nic.c netif_device_detach(self->ndev); ndev 1059 drivers/net/ethernet/aquantia/atlantic/aq_nic.c if (netif_running(self->ndev)) { ndev 87 drivers/net/ethernet/aquantia/atlantic/aq_nic.h struct net_device *ndev; ndev 116 drivers/net/ethernet/aquantia/atlantic/aq_nic.h return self->ndev->dev.parent; ndev 120 drivers/net/ethernet/aquantia/atlantic/aq_nic.h struct aq_nic_s *aq_nic_alloc_hot(struct net_device *ndev); ndev 138 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_set_mac(struct aq_nic_s *self, struct net_device *ndev); ndev 140 drivers/net/ethernet/aquantia/atlantic/aq_nic.h int aq_nic_set_multicast_list(struct aq_nic_s *self, struct net_device *ndev); ndev 201 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c struct net_device *ndev; ndev 214 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c ndev = aq_ndev_alloc(); ndev 215 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c if (!ndev) { ndev 220 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c self = netdev_priv(ndev); ndev 222 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 294 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c aq_drvinfo_init(ndev); ndev 306 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c free_netdev(ndev); ndev 318 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c if (self->ndev) { ndev 320 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c if (self->ndev->reg_state == NETREG_REGISTERED) ndev 321 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c unregister_netdev(self->ndev); ndev 327 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c free_netdev(self->ndev); ndev 204 drivers/net/ethernet/aquantia/atlantic/aq_ring.c struct net_device *ndev = aq_nic_get_ndev(ring->aq_nic); ndev 206 drivers/net/ethernet/aquantia/atlantic/aq_ring.c if (__netif_subqueue_stopped(ndev, ring->idx)) { ndev 207 drivers/net/ethernet/aquantia/atlantic/aq_ring.c netif_wake_subqueue(ndev, ring->idx); ndev 214 drivers/net/ethernet/aquantia/atlantic/aq_ring.c struct net_device *ndev = aq_nic_get_ndev(ring->aq_nic); ndev 216 drivers/net/ethernet/aquantia/atlantic/aq_ring.c if (!__netif_subqueue_stopped(ndev, ring->idx)) ndev 217 drivers/net/ethernet/aquantia/atlantic/aq_ring.c netif_stop_subqueue(ndev, ring->idx); ndev 264 drivers/net/ethernet/aquantia/atlantic/aq_ring.c if (!(self->aq_nic->ndev->features & NETIF_F_RXCSUM)) ndev 288 drivers/net/ethernet/aquantia/atlantic/aq_ring.c struct net_device *ndev = aq_nic_get_ndev(self->aq_nic); ndev 420 drivers/net/ethernet/aquantia/atlantic/aq_ring.c skb->protocol = eth_type_trans(skb, ndev); ndev 223 drivers/net/ethernet/arc/emac.h int arc_emac_probe(struct net_device *ndev, int interface); ndev 224 drivers/net/ethernet/arc/emac.h int arc_emac_remove(struct net_device *ndev); ndev 23 drivers/net/ethernet/arc/emac_arc.c struct net_device *ndev; ndev 30 drivers/net/ethernet/arc/emac_arc.c ndev = alloc_etherdev(sizeof(struct arc_emac_priv)); ndev 31 drivers/net/ethernet/arc/emac_arc.c if (!ndev) ndev 33 drivers/net/ethernet/arc/emac_arc.c platform_set_drvdata(pdev, ndev); ndev 34 drivers/net/ethernet/arc/emac_arc.c SET_NETDEV_DEV(ndev, dev); ndev 36 drivers/net/ethernet/arc/emac_arc.c priv = netdev_priv(ndev); ndev 51 drivers/net/ethernet/arc/emac_arc.c err = arc_emac_probe(ndev, interface); ndev 54 drivers/net/ethernet/arc/emac_arc.c free_netdev(ndev); ndev 60 drivers/net/ethernet/arc/emac_arc.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 63 drivers/net/ethernet/arc/emac_arc.c err = arc_emac_remove(ndev); ndev 64 drivers/net/ethernet/arc/emac_arc.c free_netdev(ndev); ndev 26 drivers/net/ethernet/arc/emac_main.c static void arc_emac_restart(struct net_device *ndev); ndev 46 drivers/net/ethernet/arc/emac_main.c static void arc_emac_adjust_link(struct net_device *ndev) ndev 48 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 49 drivers/net/ethernet/arc/emac_main.c struct phy_device *phy_dev = ndev->phydev; ndev 89 drivers/net/ethernet/arc/emac_main.c static void arc_emac_get_drvinfo(struct net_device *ndev, ndev 92 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 111 drivers/net/ethernet/arc/emac_main.c static void arc_emac_tx_clean(struct net_device *ndev) ndev 113 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 114 drivers/net/ethernet/arc/emac_main.c struct net_device_stats *stats = &ndev->stats; ndev 144 drivers/net/ethernet/arc/emac_main.c dma_unmap_single(&ndev->dev, dma_unmap_addr(tx_buff, addr), ndev 162 drivers/net/ethernet/arc/emac_main.c if (netif_queue_stopped(ndev) && arc_emac_tx_avail(priv)) ndev 163 drivers/net/ethernet/arc/emac_main.c netif_wake_queue(ndev); ndev 175 drivers/net/ethernet/arc/emac_main.c static int arc_emac_rx(struct net_device *ndev, int budget) ndev 177 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 182 drivers/net/ethernet/arc/emac_main.c struct net_device_stats *stats = &ndev->stats; ndev 203 drivers/net/ethernet/arc/emac_main.c netdev_err(ndev, "incomplete packet received\n"); ndev 216 drivers/net/ethernet/arc/emac_main.c skb = netdev_alloc_skb_ip_align(ndev, EMAC_BUFFER_SIZE); ndev 219 drivers/net/ethernet/arc/emac_main.c netdev_err(ndev, "cannot allocate skb\n"); ndev 227 drivers/net/ethernet/arc/emac_main.c addr = dma_map_single(&ndev->dev, (void *)skb->data, ndev 229 drivers/net/ethernet/arc/emac_main.c if (dma_mapping_error(&ndev->dev, addr)) { ndev 231 drivers/net/ethernet/arc/emac_main.c netdev_err(ndev, "cannot map dma buffer\n"); ndev 241 drivers/net/ethernet/arc/emac_main.c dma_unmap_single(&ndev->dev, dma_unmap_addr(rx_buff, addr), ndev 248 drivers/net/ethernet/arc/emac_main.c rx_buff->skb->dev = ndev; ndev 249 drivers/net/ethernet/arc/emac_main.c rx_buff->skb->protocol = eth_type_trans(rx_buff->skb, ndev); ndev 273 drivers/net/ethernet/arc/emac_main.c static void arc_emac_rx_miss_handle(struct net_device *ndev) ndev 275 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 276 drivers/net/ethernet/arc/emac_main.c struct net_device_stats *stats = &ndev->stats; ndev 298 drivers/net/ethernet/arc/emac_main.c static void arc_emac_rx_stall_check(struct net_device *ndev, ndev 301 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 310 drivers/net/ethernet/arc/emac_main.c arc_emac_restart(ndev); ndev 325 drivers/net/ethernet/arc/emac_main.c struct net_device *ndev = napi->dev; ndev 326 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 329 drivers/net/ethernet/arc/emac_main.c arc_emac_tx_clean(ndev); ndev 330 drivers/net/ethernet/arc/emac_main.c arc_emac_rx_miss_handle(ndev); ndev 332 drivers/net/ethernet/arc/emac_main.c work_done = arc_emac_rx(ndev, budget); ndev 338 drivers/net/ethernet/arc/emac_main.c arc_emac_rx_stall_check(ndev, budget, work_done); ndev 355 drivers/net/ethernet/arc/emac_main.c struct net_device *ndev = dev_instance; ndev 356 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 357 drivers/net/ethernet/arc/emac_main.c struct net_device_stats *stats = &ndev->stats; ndev 423 drivers/net/ethernet/arc/emac_main.c static int arc_emac_open(struct net_device *ndev) ndev 425 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 426 drivers/net/ethernet/arc/emac_main.c struct phy_device *phy_dev = ndev->phydev; ndev 444 drivers/net/ethernet/arc/emac_main.c rx_buff->skb = netdev_alloc_skb_ip_align(ndev, ndev 449 drivers/net/ethernet/arc/emac_main.c addr = dma_map_single(&ndev->dev, (void *)rx_buff->skb->data, ndev 451 drivers/net/ethernet/arc/emac_main.c if (dma_mapping_error(&ndev->dev, addr)) { ndev 452 drivers/net/ethernet/arc/emac_main.c netdev_err(ndev, "cannot dma map\n"); ndev 498 drivers/net/ethernet/arc/emac_main.c phy_start(ndev->phydev); ndev 500 drivers/net/ethernet/arc/emac_main.c netif_start_queue(ndev); ndev 512 drivers/net/ethernet/arc/emac_main.c static void arc_emac_set_rx_mode(struct net_device *ndev) ndev 514 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 516 drivers/net/ethernet/arc/emac_main.c if (ndev->flags & IFF_PROMISC) { ndev 521 drivers/net/ethernet/arc/emac_main.c if (ndev->flags & IFF_ALLMULTI) { ndev 524 drivers/net/ethernet/arc/emac_main.c } else if (ndev->flags & IFF_MULTICAST) { ndev 529 drivers/net/ethernet/arc/emac_main.c netdev_for_each_mc_addr(ha, ndev) { ndev 549 drivers/net/ethernet/arc/emac_main.c static void arc_free_tx_queue(struct net_device *ndev) ndev 551 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 559 drivers/net/ethernet/arc/emac_main.c dma_unmap_single(&ndev->dev, ndev 580 drivers/net/ethernet/arc/emac_main.c static void arc_free_rx_queue(struct net_device *ndev) ndev 582 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 590 drivers/net/ethernet/arc/emac_main.c dma_unmap_single(&ndev->dev, ndev 613 drivers/net/ethernet/arc/emac_main.c static int arc_emac_stop(struct net_device *ndev) ndev 615 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 618 drivers/net/ethernet/arc/emac_main.c netif_stop_queue(ndev); ndev 620 drivers/net/ethernet/arc/emac_main.c phy_stop(ndev->phydev); ndev 629 drivers/net/ethernet/arc/emac_main.c arc_free_tx_queue(ndev); ndev 630 drivers/net/ethernet/arc/emac_main.c arc_free_rx_queue(ndev); ndev 642 drivers/net/ethernet/arc/emac_main.c static struct net_device_stats *arc_emac_stats(struct net_device *ndev) ndev 644 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 645 drivers/net/ethernet/arc/emac_main.c struct net_device_stats *stats = &ndev->stats; ndev 677 drivers/net/ethernet/arc/emac_main.c static int arc_emac_tx(struct sk_buff *skb, struct net_device *ndev) ndev 679 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 681 drivers/net/ethernet/arc/emac_main.c struct net_device_stats *stats = &ndev->stats; ndev 691 drivers/net/ethernet/arc/emac_main.c netif_stop_queue(ndev); ndev 692 drivers/net/ethernet/arc/emac_main.c netdev_err(ndev, "BUG! Tx Ring full when queue awake!\n"); ndev 696 drivers/net/ethernet/arc/emac_main.c addr = dma_map_single(&ndev->dev, (void *)skb->data, len, ndev 699 drivers/net/ethernet/arc/emac_main.c if (unlikely(dma_mapping_error(&ndev->dev, addr))) { ndev 732 drivers/net/ethernet/arc/emac_main.c netif_stop_queue(ndev); ndev 736 drivers/net/ethernet/arc/emac_main.c netif_start_queue(ndev); ndev 744 drivers/net/ethernet/arc/emac_main.c static void arc_emac_set_address_internal(struct net_device *ndev) ndev 746 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 749 drivers/net/ethernet/arc/emac_main.c addr_low = le32_to_cpu(*(__le32 *)&ndev->dev_addr[0]); ndev 750 drivers/net/ethernet/arc/emac_main.c addr_hi = le16_to_cpu(*(__le16 *)&ndev->dev_addr[4]); ndev 767 drivers/net/ethernet/arc/emac_main.c static int arc_emac_set_address(struct net_device *ndev, void *p) ndev 771 drivers/net/ethernet/arc/emac_main.c if (netif_running(ndev)) ndev 777 drivers/net/ethernet/arc/emac_main.c memcpy(ndev->dev_addr, addr->sa_data, ndev->addr_len); ndev 779 drivers/net/ethernet/arc/emac_main.c arc_emac_set_address_internal(ndev); ndev 803 drivers/net/ethernet/arc/emac_main.c static void arc_emac_restart(struct net_device *ndev) ndev 805 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 806 drivers/net/ethernet/arc/emac_main.c struct net_device_stats *stats = &ndev->stats; ndev 810 drivers/net/ethernet/arc/emac_main.c netdev_warn(ndev, "restarting stalled EMAC\n"); ndev 812 drivers/net/ethernet/arc/emac_main.c netif_stop_queue(ndev); ndev 821 drivers/net/ethernet/arc/emac_main.c arc_free_tx_queue(ndev); ndev 850 drivers/net/ethernet/arc/emac_main.c netif_start_queue(ndev); ndev 866 drivers/net/ethernet/arc/emac_main.c int arc_emac_probe(struct net_device *ndev, int interface) ndev 868 drivers/net/ethernet/arc/emac_main.c struct device *dev = ndev->dev.parent; ndev 900 drivers/net/ethernet/arc/emac_main.c ndev->netdev_ops = &arc_emac_netdev_ops; ndev 901 drivers/net/ethernet/arc/emac_main.c ndev->ethtool_ops = &arc_emac_ethtool_ops; ndev 902 drivers/net/ethernet/arc/emac_main.c ndev->watchdog_timeo = TX_TIMEOUT; ndev 904 drivers/net/ethernet/arc/emac_main.c priv = netdev_priv(ndev); ndev 946 drivers/net/ethernet/arc/emac_main.c ndev->irq = irq; ndev 947 drivers/net/ethernet/arc/emac_main.c dev_info(dev, "IRQ is %d\n", ndev->irq); ndev 950 drivers/net/ethernet/arc/emac_main.c err = devm_request_irq(dev, ndev->irq, arc_emac_intr, 0, ndev 951 drivers/net/ethernet/arc/emac_main.c ndev->name, ndev); ndev 961 drivers/net/ethernet/arc/emac_main.c ether_addr_copy(ndev->dev_addr, mac_addr); ndev 963 drivers/net/ethernet/arc/emac_main.c eth_hw_addr_random(ndev); ndev 965 drivers/net/ethernet/arc/emac_main.c arc_emac_set_address_internal(ndev); ndev 966 drivers/net/ethernet/arc/emac_main.c dev_info(dev, "MAC address is now %pM\n", ndev->dev_addr); ndev 990 drivers/net/ethernet/arc/emac_main.c phydev = of_phy_connect(ndev, phy_node, arc_emac_adjust_link, 0, ndev 1001 drivers/net/ethernet/arc/emac_main.c netif_napi_add(ndev, &priv->napi, arc_emac_poll, ARC_EMAC_NAPI_WEIGHT); ndev 1003 drivers/net/ethernet/arc/emac_main.c err = register_netdev(ndev); ndev 1027 drivers/net/ethernet/arc/emac_main.c int arc_emac_remove(struct net_device *ndev) ndev 1029 drivers/net/ethernet/arc/emac_main.c struct arc_emac_priv *priv = netdev_priv(ndev); ndev 1031 drivers/net/ethernet/arc/emac_main.c phy_disconnect(ndev->phydev); ndev 1033 drivers/net/ethernet/arc/emac_main.c unregister_netdev(ndev); ndev 97 drivers/net/ethernet/arc/emac_rockchip.c struct net_device *ndev; ndev 106 drivers/net/ethernet/arc/emac_rockchip.c ndev = alloc_etherdev(sizeof(struct rockchip_priv_data)); ndev 107 drivers/net/ethernet/arc/emac_rockchip.c if (!ndev) ndev 109 drivers/net/ethernet/arc/emac_rockchip.c platform_set_drvdata(pdev, ndev); ndev 110 drivers/net/ethernet/arc/emac_rockchip.c SET_NETDEV_DEV(ndev, dev); ndev 112 drivers/net/ethernet/arc/emac_rockchip.c priv = netdev_priv(ndev); ndev 225 drivers/net/ethernet/arc/emac_rockchip.c err = arc_emac_probe(ndev, interface); ndev 242 drivers/net/ethernet/arc/emac_rockchip.c free_netdev(ndev); ndev 248 drivers/net/ethernet/arc/emac_rockchip.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 249 drivers/net/ethernet/arc/emac_rockchip.c struct rockchip_priv_data *priv = netdev_priv(ndev); ndev 252 drivers/net/ethernet/arc/emac_rockchip.c err = arc_emac_remove(ndev); ndev 262 drivers/net/ethernet/arc/emac_rockchip.c free_netdev(ndev); ndev 304 drivers/net/ethernet/atheros/ag71xx.c struct net_device *ndev; ndev 396 drivers/net/ethernet/atheros/ag71xx.c struct net_device *ndev = ag->ndev; ndev 411 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, link, ndev, "MDIO operation timed out\n"); ndev 438 drivers/net/ethernet/atheros/ag71xx.c netif_dbg(ag, link, ag->ndev, "mii_read: addr=%04x, reg=%04x, value=%04x\n", ndev 449 drivers/net/ethernet/atheros/ag71xx.c netif_dbg(ag, link, ag->ndev, "mii_write: addr=%04x, reg=%04x, value=%04x\n", ndev 527 drivers/net/ethernet/atheros/ag71xx.c struct net_device *ndev = ag->ndev; ndev 537 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, probe, ndev, "Failed to get mdio clk.\n"); ndev 543 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, probe, ndev, "Failed to enable mdio clk.\n"); ndev 555 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, probe, ndev, "Failed to get reset mdio.\n"); ndev 609 drivers/net/ethernet/atheros/ag71xx.c timestamp = netdev_get_tx_queue(ag->ndev, 0)->trans_start; ndev 613 drivers/net/ethernet/atheros/ag71xx.c if (!netif_carrier_ok(ag->ndev)) ndev 633 drivers/net/ethernet/atheros/ag71xx.c struct net_device *ndev = ag->ndev; ndev 640 drivers/net/ethernet/atheros/ag71xx.c netif_dbg(ag, tx_queued, ndev, "processing TX ring\n"); ndev 682 drivers/net/ethernet/atheros/ag71xx.c netif_dbg(ag, tx_done, ndev, "%d packets sent out\n", sent); ndev 687 drivers/net/ethernet/atheros/ag71xx.c ag->ndev->stats.tx_bytes += bytes_compl; ndev 688 drivers/net/ethernet/atheros/ag71xx.c ag->ndev->stats.tx_packets += sent; ndev 690 drivers/net/ethernet/atheros/ag71xx.c netdev_completed_queue(ag->ndev, sent, bytes_compl); ndev 692 drivers/net/ethernet/atheros/ag71xx.c netif_wake_queue(ag->ndev); ndev 702 drivers/net/ethernet/atheros/ag71xx.c struct net_device *ndev = ag->ndev; ndev 716 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, hw, ndev, "DMA stop operation timed out\n"); ndev 721 drivers/net/ethernet/atheros/ag71xx.c struct net_device *ndev = ag->ndev; ndev 750 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, hw, ndev, "unable to clear DMA Rx status: %08x\n", ndev 759 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, hw, ndev, "unable to clear DMA Tx status: %08x\n", ndev 804 drivers/net/ethernet/atheros/ag71xx.c struct net_device *dev = ag->ndev; ndev 824 drivers/net/ethernet/atheros/ag71xx.c netdev_reset_queue(ag->ndev); ndev 828 drivers/net/ethernet/atheros/ag71xx.c ag71xx_max_frame_len(ag->ndev->mtu)); ndev 845 drivers/net/ethernet/atheros/ag71xx.c netif_wake_queue(ag->ndev); ndev 850 drivers/net/ethernet/atheros/ag71xx.c struct phy_device *phydev = ag->ndev->phydev; ndev 907 drivers/net/ethernet/atheros/ag71xx.c static void ag71xx_phy_link_adjust(struct net_device *ndev) ndev 909 drivers/net/ethernet/atheros/ag71xx.c struct ag71xx *ag = netdev_priv(ndev); ndev 917 drivers/net/ethernet/atheros/ag71xx.c struct net_device *ndev = ag->ndev; ndev 925 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, probe, ndev, "Failed to register fixed PHY link: %d\n", ndev 936 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, probe, ndev, "Could not find valid phy node\n"); ndev 940 drivers/net/ethernet/atheros/ag71xx.c phydev = of_phy_connect(ag->ndev, phy_node, ag71xx_phy_link_adjust, ndev 946 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, probe, ndev, "Could not connect to PHY device\n"); ndev 960 drivers/net/ethernet/atheros/ag71xx.c struct net_device *ndev = ag->ndev; ndev 969 drivers/net/ethernet/atheros/ag71xx.c ndev->stats.tx_errors++; ndev 984 drivers/net/ethernet/atheros/ag71xx.c netdev_completed_queue(ndev, pkts_compl, bytes_compl); ndev 1009 drivers/net/ethernet/atheros/ag71xx.c netdev_reset_queue(ag->ndev); ndev 1060 drivers/net/ethernet/atheros/ag71xx.c struct net_device *ndev = ag->ndev; ndev 1073 drivers/net/ethernet/atheros/ag71xx.c netif_dbg(ag, rx_status, ndev, "RX desc at %p, next is %08x\n", ndev 1125 drivers/net/ethernet/atheros/ag71xx.c netif_dbg(ag, rx_status, ag->ndev, "%u rx descriptors refilled\n", ndev 1187 drivers/net/ethernet/atheros/ag71xx.c netdev_reset_queue(ag->ndev); ndev 1218 drivers/net/ethernet/atheros/ag71xx.c netif_start_queue(ag->ndev); ndev 1225 drivers/net/ethernet/atheros/ag71xx.c netif_stop_queue(ag->ndev); ndev 1236 drivers/net/ethernet/atheros/ag71xx.c static int ag71xx_open(struct net_device *ndev) ndev 1238 drivers/net/ethernet/atheros/ag71xx.c struct ag71xx *ag = netdev_priv(ndev); ndev 1242 drivers/net/ethernet/atheros/ag71xx.c max_frame_len = ag71xx_max_frame_len(ndev->mtu); ndev 1248 drivers/net/ethernet/atheros/ag71xx.c ag71xx_hw_set_macaddr(ag, ndev->dev_addr); ndev 1258 drivers/net/ethernet/atheros/ag71xx.c phy_start(ndev->phydev); ndev 1267 drivers/net/ethernet/atheros/ag71xx.c static int ag71xx_stop(struct net_device *ndev) ndev 1269 drivers/net/ethernet/atheros/ag71xx.c struct ag71xx *ag = netdev_priv(ndev); ndev 1271 drivers/net/ethernet/atheros/ag71xx.c phy_stop(ndev->phydev); ndev 1272 drivers/net/ethernet/atheros/ag71xx.c phy_disconnect(ndev->phydev); ndev 1328 drivers/net/ethernet/atheros/ag71xx.c struct net_device *ndev) ndev 1331 drivers/net/ethernet/atheros/ag71xx.c struct ag71xx *ag = netdev_priv(ndev); ndev 1341 drivers/net/ethernet/atheros/ag71xx.c netif_dbg(ag, tx_err, ndev, "packet len is too small\n"); ndev 1361 drivers/net/ethernet/atheros/ag71xx.c netdev_sent_queue(ndev, skb->len); ndev 1376 drivers/net/ethernet/atheros/ag71xx.c netif_dbg(ag, tx_err, ndev, "tx queue full\n"); ndev 1377 drivers/net/ethernet/atheros/ag71xx.c netif_stop_queue(ndev); ndev 1380 drivers/net/ethernet/atheros/ag71xx.c netif_dbg(ag, tx_queued, ndev, "packet injected into TX queue\n"); ndev 1391 drivers/net/ethernet/atheros/ag71xx.c ndev->stats.tx_dropped++; ndev 1397 drivers/net/ethernet/atheros/ag71xx.c static int ag71xx_do_ioctl(struct net_device *ndev, struct ifreq *ifr, int cmd) ndev 1399 drivers/net/ethernet/atheros/ag71xx.c if (!ndev->phydev) ndev 1402 drivers/net/ethernet/atheros/ag71xx.c return phy_mii_ioctl(ndev->phydev, ifr, cmd); ndev 1412 drivers/net/ethernet/atheros/ag71xx.c static void ag71xx_tx_timeout(struct net_device *ndev) ndev 1414 drivers/net/ethernet/atheros/ag71xx.c struct ag71xx *ag = netdev_priv(ndev); ndev 1416 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, tx_err, ndev, "tx timeout\n"); ndev 1425 drivers/net/ethernet/atheros/ag71xx.c struct net_device *ndev = ag->ndev; ndev 1430 drivers/net/ethernet/atheros/ag71xx.c if (ndev->phydev->link) ndev 1437 drivers/net/ethernet/atheros/ag71xx.c struct net_device *ndev = ag->ndev; ndev 1450 drivers/net/ethernet/atheros/ag71xx.c netif_dbg(ag, rx_status, ndev, "rx packets, limit=%d, curr=%u, dirty=%u\n", ndev 1477 drivers/net/ethernet/atheros/ag71xx.c ndev->stats.rx_packets++; ndev 1478 drivers/net/ethernet/atheros/ag71xx.c ndev->stats.rx_bytes += pktlen; ndev 1490 drivers/net/ethernet/atheros/ag71xx.c ndev->stats.rx_dropped++; ndev 1493 drivers/net/ethernet/atheros/ag71xx.c skb->dev = ndev; ndev 1508 drivers/net/ethernet/atheros/ag71xx.c skb->protocol = eth_type_trans(skb, ndev); ndev 1511 drivers/net/ethernet/atheros/ag71xx.c netif_dbg(ag, rx_status, ndev, "rx finish, curr=%u, dirty=%u, done=%d\n", ndev 1522 drivers/net/ethernet/atheros/ag71xx.c struct net_device *ndev = ag->ndev; ndev 1528 drivers/net/ethernet/atheros/ag71xx.c netif_dbg(ag, rx_status, ndev, "processing RX ring\n"); ndev 1537 drivers/net/ethernet/atheros/ag71xx.c ndev->stats.rx_fifo_errors++; ndev 1551 drivers/net/ethernet/atheros/ag71xx.c netif_dbg(ag, rx_status, ndev, "disable polling mode, rx=%d, tx=%d,limit=%d\n", ndev 1562 drivers/net/ethernet/atheros/ag71xx.c netif_dbg(ag, rx_status, ndev, "stay in polling mode, rx=%d, tx=%d, limit=%d\n", ndev 1567 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, rx_err, ndev, "out of memory\n"); ndev 1576 drivers/net/ethernet/atheros/ag71xx.c struct net_device *ndev = dev_id; ndev 1580 drivers/net/ethernet/atheros/ag71xx.c ag = netdev_priv(ndev); ndev 1589 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, intr, ndev, "TX BUS error\n"); ndev 1593 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, intr, ndev, "RX BUS error\n"); ndev 1599 drivers/net/ethernet/atheros/ag71xx.c netif_dbg(ag, intr, ndev, "enable polling mode\n"); ndev 1606 drivers/net/ethernet/atheros/ag71xx.c static int ag71xx_change_mtu(struct net_device *ndev, int new_mtu) ndev 1608 drivers/net/ethernet/atheros/ag71xx.c struct ag71xx *ag = netdev_priv(ndev); ndev 1610 drivers/net/ethernet/atheros/ag71xx.c ndev->mtu = new_mtu; ndev 1612 drivers/net/ethernet/atheros/ag71xx.c ag71xx_max_frame_len(ndev->mtu)); ndev 1636 drivers/net/ethernet/atheros/ag71xx.c struct net_device *ndev; ndev 1645 drivers/net/ethernet/atheros/ag71xx.c ndev = devm_alloc_etherdev(&pdev->dev, sizeof(*ag)); ndev 1646 drivers/net/ethernet/atheros/ag71xx.c if (!ndev) ndev 1657 drivers/net/ethernet/atheros/ag71xx.c ag = netdev_priv(ndev); ndev 1665 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, probe, ndev, "unknown mac idx\n"); ndev 1671 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, probe, ndev, "Failed to get eth clk.\n"); ndev 1675 drivers/net/ethernet/atheros/ag71xx.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 1678 drivers/net/ethernet/atheros/ag71xx.c ag->ndev = ndev; ndev 1685 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, probe, ndev, "missing mac reset\n"); ndev 1697 drivers/net/ethernet/atheros/ag71xx.c ndev->irq = platform_get_irq(pdev, 0); ndev 1698 drivers/net/ethernet/atheros/ag71xx.c err = devm_request_irq(&pdev->dev, ndev->irq, ag71xx_interrupt, ndev 1699 drivers/net/ethernet/atheros/ag71xx.c 0x0, dev_name(&pdev->dev), ndev); ndev 1701 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, probe, ndev, "unable to request IRQ %d\n", ndev 1702 drivers/net/ethernet/atheros/ag71xx.c ndev->irq); ndev 1706 drivers/net/ethernet/atheros/ag71xx.c ndev->netdev_ops = &ag71xx_netdev_ops; ndev 1714 drivers/net/ethernet/atheros/ag71xx.c ndev->min_mtu = 68; ndev 1715 drivers/net/ethernet/atheros/ag71xx.c ndev->max_mtu = dcfg->max_frame_len - ag71xx_max_frame_len(0); ndev 1741 drivers/net/ethernet/atheros/ag71xx.c memcpy(ndev->dev_addr, mac_addr, ETH_ALEN); ndev 1742 drivers/net/ethernet/atheros/ag71xx.c if (IS_ERR(mac_addr) || !is_valid_ether_addr(ndev->dev_addr)) { ndev 1743 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, probe, ndev, "invalid MAC address, using random address\n"); ndev 1744 drivers/net/ethernet/atheros/ag71xx.c eth_random_addr(ndev->dev_addr); ndev 1749 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, probe, ndev, "missing phy-mode property in DT\n"); ndev 1754 drivers/net/ethernet/atheros/ag71xx.c netif_napi_add(ndev, &ag->napi, ag71xx_poll, AG71XX_NAPI_WEIGHT); ndev 1758 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, probe, ndev, "Failed to enable eth clk.\n"); ndev 1770 drivers/net/ethernet/atheros/ag71xx.c platform_set_drvdata(pdev, ndev); ndev 1772 drivers/net/ethernet/atheros/ag71xx.c err = register_netdev(ndev); ndev 1774 drivers/net/ethernet/atheros/ag71xx.c netif_err(ag, probe, ndev, "unable to register net device\n"); ndev 1779 drivers/net/ethernet/atheros/ag71xx.c netif_info(ag, probe, ndev, "Atheros AG71xx at 0x%08lx, irq %d, mode:%s\n", ndev 1780 drivers/net/ethernet/atheros/ag71xx.c (unsigned long)ag->mac_base, ndev->irq, ndev 1790 drivers/net/ethernet/atheros/ag71xx.c free_netdev(ndev); ndev 1796 drivers/net/ethernet/atheros/ag71xx.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1799 drivers/net/ethernet/atheros/ag71xx.c if (!ndev) ndev 1802 drivers/net/ethernet/atheros/ag71xx.c ag = netdev_priv(ndev); ndev 1803 drivers/net/ethernet/atheros/ag71xx.c unregister_netdev(ndev); ndev 1494 drivers/net/ethernet/aurora/nb8800.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1495 drivers/net/ethernet/aurora/nb8800.c struct nb8800_priv *priv = netdev_priv(ndev); ndev 1497 drivers/net/ethernet/aurora/nb8800.c unregister_netdev(ndev); ndev 1506 drivers/net/ethernet/aurora/nb8800.c nb8800_dma_free(ndev); ndev 1507 drivers/net/ethernet/aurora/nb8800.c free_netdev(ndev); ndev 664 drivers/net/ethernet/broadcom/bcmsysport.c struct net_device *ndev = priv->netdev; ndev 673 drivers/net/ethernet/broadcom/bcmsysport.c netif_err(priv, rx_err, ndev, "SKB alloc failed\n"); ndev 682 drivers/net/ethernet/broadcom/bcmsysport.c netif_err(priv, rx_err, ndev, "DMA mapping failure\n"); ndev 697 drivers/net/ethernet/broadcom/bcmsysport.c netif_dbg(priv, rx_status, ndev, "RX refill\n"); ndev 725 drivers/net/ethernet/broadcom/bcmsysport.c struct net_device *ndev = priv->netdev; ndev 749 drivers/net/ethernet/broadcom/bcmsysport.c netif_dbg(priv, rx_status, ndev, ndev 764 drivers/net/ethernet/broadcom/bcmsysport.c netif_err(priv, rx_err, ndev, "out of memory!\n"); ndev 765 drivers/net/ethernet/broadcom/bcmsysport.c ndev->stats.rx_dropped++; ndev 766 drivers/net/ethernet/broadcom/bcmsysport.c ndev->stats.rx_errors++; ndev 776 drivers/net/ethernet/broadcom/bcmsysport.c netif_dbg(priv, rx_status, ndev, ndev 782 drivers/net/ethernet/broadcom/bcmsysport.c netif_err(priv, rx_status, ndev, "oversized packet\n"); ndev 783 drivers/net/ethernet/broadcom/bcmsysport.c ndev->stats.rx_length_errors++; ndev 784 drivers/net/ethernet/broadcom/bcmsysport.c ndev->stats.rx_errors++; ndev 790 drivers/net/ethernet/broadcom/bcmsysport.c netif_err(priv, rx_status, ndev, "fragmented packet!\n"); ndev 791 drivers/net/ethernet/broadcom/bcmsysport.c ndev->stats.rx_dropped++; ndev 792 drivers/net/ethernet/broadcom/bcmsysport.c ndev->stats.rx_errors++; ndev 798 drivers/net/ethernet/broadcom/bcmsysport.c netif_err(priv, rx_err, ndev, "error packet\n"); ndev 800 drivers/net/ethernet/broadcom/bcmsysport.c ndev->stats.rx_over_errors++; ndev 801 drivers/net/ethernet/broadcom/bcmsysport.c ndev->stats.rx_dropped++; ndev 802 drivers/net/ethernet/broadcom/bcmsysport.c ndev->stats.rx_errors++; ndev 827 drivers/net/ethernet/broadcom/bcmsysport.c skb->protocol = eth_type_trans(skb, ndev); ndev 828 drivers/net/ethernet/broadcom/bcmsysport.c ndev->stats.rx_packets++; ndev 829 drivers/net/ethernet/broadcom/bcmsysport.c ndev->stats.rx_bytes += len; ndev 879 drivers/net/ethernet/broadcom/bcmsysport.c struct net_device *ndev = priv->netdev; ndev 898 drivers/net/ethernet/broadcom/bcmsysport.c netif_dbg(priv, tx_done, ndev, ndev 922 drivers/net/ethernet/broadcom/bcmsysport.c netif_dbg(priv, tx_done, ndev, ndev 2594 drivers/net/ethernet/broadcom/bcmsysport.c struct net_device *ndev = priv->netdev; ndev 2646 drivers/net/ethernet/broadcom/bcmsysport.c netif_err(priv, wol, ndev, "failed to enter WOL mode\n"); ndev 2653 drivers/net/ethernet/broadcom/bcmsysport.c netif_dbg(priv, wol, ndev, "entered WOL mode\n"); ndev 1076 drivers/net/ethernet/cadence/macb.h void (*ptp_init)(struct net_device *ndev); ndev 1077 drivers/net/ethernet/cadence/macb.h void (*ptp_remove)(struct net_device *ndev); ndev 1249 drivers/net/ethernet/cadence/macb.h void gem_ptp_init(struct net_device *ndev); ndev 1250 drivers/net/ethernet/cadence/macb.h void gem_ptp_remove(struct net_device *ndev); ndev 1271 drivers/net/ethernet/cadence/macb.h static inline void gem_ptp_init(struct net_device *ndev) { } ndev 1272 drivers/net/ethernet/cadence/macb.h static inline void gem_ptp_remove(struct net_device *ndev) { } ndev 1719 drivers/net/ethernet/cadence/macb_main.c static int macb_pad_and_fcs(struct sk_buff **skb, struct net_device *ndev) ndev 1728 drivers/net/ethernet/cadence/macb_main.c if (!(ndev->features & NETIF_F_HW_CSUM) || ndev 385 drivers/net/ethernet/cadence/macb_ptp.c void gem_ptp_remove(struct net_device *ndev) ndev 387 drivers/net/ethernet/cadence/macb_ptp.c struct macb *bp = netdev_priv(ndev); ndev 1692 drivers/net/ethernet/calxeda/xgmac.c struct net_device *ndev = NULL; ndev 1703 drivers/net/ethernet/calxeda/xgmac.c ndev = alloc_etherdev(sizeof(struct xgmac_priv)); ndev 1704 drivers/net/ethernet/calxeda/xgmac.c if (!ndev) { ndev 1709 drivers/net/ethernet/calxeda/xgmac.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 1710 drivers/net/ethernet/calxeda/xgmac.c priv = netdev_priv(ndev); ndev 1711 drivers/net/ethernet/calxeda/xgmac.c platform_set_drvdata(pdev, ndev); ndev 1712 drivers/net/ethernet/calxeda/xgmac.c ndev->netdev_ops = &xgmac_netdev_ops; ndev 1713 drivers/net/ethernet/calxeda/xgmac.c ndev->ethtool_ops = &xgmac_ethtool_ops; ndev 1718 drivers/net/ethernet/calxeda/xgmac.c priv->dev = ndev; ndev 1724 drivers/net/ethernet/calxeda/xgmac.c netdev_err(ndev, "ioremap failed\n"); ndev 1730 drivers/net/ethernet/calxeda/xgmac.c netdev_info(ndev, "h/w version is 0x%x\n", uid); ndev 1740 drivers/net/ethernet/calxeda/xgmac.c ndev->irq = platform_get_irq(pdev, 0); ndev 1741 drivers/net/ethernet/calxeda/xgmac.c if (ndev->irq == -ENXIO) { ndev 1742 drivers/net/ethernet/calxeda/xgmac.c netdev_err(ndev, "No irq resource\n"); ndev 1743 drivers/net/ethernet/calxeda/xgmac.c ret = ndev->irq; ndev 1747 drivers/net/ethernet/calxeda/xgmac.c ret = request_irq(ndev->irq, xgmac_interrupt, 0, ndev 1748 drivers/net/ethernet/calxeda/xgmac.c dev_name(&pdev->dev), ndev); ndev 1750 drivers/net/ethernet/calxeda/xgmac.c netdev_err(ndev, "Could not request irq %d - ret %d)\n", ndev 1751 drivers/net/ethernet/calxeda/xgmac.c ndev->irq, ret); ndev 1757 drivers/net/ethernet/calxeda/xgmac.c netdev_err(ndev, "No pmt irq resource\n"); ndev 1763 drivers/net/ethernet/calxeda/xgmac.c dev_name(&pdev->dev), ndev); ndev 1765 drivers/net/ethernet/calxeda/xgmac.c netdev_err(ndev, "Could not request irq %d - ret %d)\n", ndev 1774 drivers/net/ethernet/calxeda/xgmac.c ndev->hw_features = NETIF_F_SG | NETIF_F_HIGHDMA; ndev 1776 drivers/net/ethernet/calxeda/xgmac.c ndev->hw_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | ndev 1778 drivers/net/ethernet/calxeda/xgmac.c ndev->features |= ndev->hw_features; ndev 1779 drivers/net/ethernet/calxeda/xgmac.c ndev->priv_flags |= IFF_UNICAST_FLT; ndev 1782 drivers/net/ethernet/calxeda/xgmac.c ndev->min_mtu = ETH_ZLEN - ETH_HLEN; ndev 1783 drivers/net/ethernet/calxeda/xgmac.c ndev->max_mtu = XGMAC_MAX_MTU; ndev 1786 drivers/net/ethernet/calxeda/xgmac.c xgmac_get_mac_addr(priv->base, ndev->dev_addr, 0); ndev 1787 drivers/net/ethernet/calxeda/xgmac.c if (!is_valid_ether_addr(ndev->dev_addr)) ndev 1788 drivers/net/ethernet/calxeda/xgmac.c netdev_warn(ndev, "MAC address %pM not valid", ndev 1789 drivers/net/ethernet/calxeda/xgmac.c ndev->dev_addr); ndev 1791 drivers/net/ethernet/calxeda/xgmac.c netif_napi_add(ndev, &priv->napi, xgmac_poll, 64); ndev 1792 drivers/net/ethernet/calxeda/xgmac.c ret = register_netdev(ndev); ndev 1800 drivers/net/ethernet/calxeda/xgmac.c free_irq(priv->pmt_irq, ndev); ndev 1802 drivers/net/ethernet/calxeda/xgmac.c free_irq(ndev->irq, ndev); ndev 1806 drivers/net/ethernet/calxeda/xgmac.c free_netdev(ndev); ndev 1821 drivers/net/ethernet/calxeda/xgmac.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1822 drivers/net/ethernet/calxeda/xgmac.c struct xgmac_priv *priv = netdev_priv(ndev); ndev 1828 drivers/net/ethernet/calxeda/xgmac.c free_irq(ndev->irq, ndev); ndev 1829 drivers/net/ethernet/calxeda/xgmac.c free_irq(priv->pmt_irq, ndev); ndev 1831 drivers/net/ethernet/calxeda/xgmac.c unregister_netdev(ndev); ndev 1838 drivers/net/ethernet/calxeda/xgmac.c free_netdev(ndev); ndev 1858 drivers/net/ethernet/calxeda/xgmac.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1859 drivers/net/ethernet/calxeda/xgmac.c struct xgmac_priv *priv = netdev_priv(ndev); ndev 1862 drivers/net/ethernet/calxeda/xgmac.c if (!ndev || !netif_running(ndev)) ndev 1865 drivers/net/ethernet/calxeda/xgmac.c netif_device_detach(ndev); ndev 1884 drivers/net/ethernet/calxeda/xgmac.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1885 drivers/net/ethernet/calxeda/xgmac.c struct xgmac_priv *priv = netdev_priv(ndev); ndev 1888 drivers/net/ethernet/calxeda/xgmac.c if (!netif_running(ndev)) ndev 1898 drivers/net/ethernet/calxeda/xgmac.c netif_device_attach(ndev); ndev 30 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c static int lio_vf_rep_open(struct net_device *ndev); ndev 31 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c static int lio_vf_rep_stop(struct net_device *ndev); ndev 33 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c struct net_device *ndev); ndev 39 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c static int lio_vf_rep_change_mtu(struct net_device *ndev, int new_mtu); ndev 109 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c lio_vf_rep_open(struct net_device *ndev) ndev 111 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c struct lio_vf_rep_desc *vf_rep = netdev_priv(ndev); ndev 135 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c netif_carrier_on(ndev); ndev 136 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c netif_start_queue(ndev); ndev 142 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c lio_vf_rep_stop(struct net_device *ndev) ndev 144 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c struct lio_vf_rep_desc *vf_rep = netdev_priv(ndev); ndev 168 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c netif_tx_disable(ndev); ndev 169 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c netif_carrier_off(ndev); ndev 175 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c lio_vf_rep_tx_timeout(struct net_device *ndev) ndev 177 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c netif_trans_update(ndev); ndev 179 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c netif_wake_queue(ndev); ndev 199 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c lio_vf_rep_change_mtu(struct net_device *ndev, int new_mtu) ndev 201 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c struct lio_vf_rep_desc *vf_rep = netdev_priv(ndev); ndev 221 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c ndev->mtu = new_mtu; ndev 257 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c return oct->vf_rep_list.ndev[vf_id]; ndev 353 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c struct net_device *ndev = skb->dev; ndev 365 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c if (netif_queue_stopped(ndev)) ndev 366 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c netif_wake_queue(ndev); ndev 370 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c lio_vf_rep_pkt_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 372 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c struct lio_vf_rep_desc *vf_rep = netdev_priv(ndev); ndev 388 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c netif_stop_queue(ndev); ndev 436 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c netif_stop_queue(ndev); ndev 438 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c netif_trans_update(ndev); ndev 493 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c struct net_device *ndev; ndev 506 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c ndev = alloc_etherdev(sizeof(struct lio_vf_rep_desc)); ndev 508 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c if (!ndev) { ndev 514 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c ndev->min_mtu = LIO_MIN_MTU_SIZE; ndev 515 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c ndev->max_mtu = LIO_MAX_MTU_SIZE; ndev 516 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c ndev->netdev_ops = &lio_vf_rep_ndev_ops; ndev 518 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c vf_rep = netdev_priv(ndev); ndev 521 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c vf_rep->ndev = ndev; ndev 526 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c eth_hw_addr_random(ndev); ndev 528 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c if (register_netdev(ndev)) { ndev 531 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c free_netdev(ndev); ndev 535 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c netif_carrier_off(ndev); ndev 544 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c oct->vf_rep_list.ndev[i] = ndev; ndev 559 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c ndev = oct->vf_rep_list.ndev[i]; ndev 560 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c oct->vf_rep_list.ndev[i] = NULL; ndev 561 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c if (ndev) { ndev 562 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c vf_rep = netdev_priv(ndev); ndev 565 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c unregister_netdev(ndev); ndev 566 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c free_netdev(ndev); ndev 579 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c struct net_device *ndev; ndev 589 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c ndev = oct->vf_rep_list.ndev[i]; ndev 590 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c oct->vf_rep_list.ndev[i] = NULL; ndev 591 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c if (ndev) { ndev 592 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c vf_rep = netdev_priv(ndev); ndev 595 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c netif_tx_disable(ndev); ndev 596 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c netif_carrier_off(ndev); ndev 598 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c unregister_netdev(ndev); ndev 599 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c free_netdev(ndev); ndev 610 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c struct net_device *ndev = netdev_notifier_info_to_dev(ptr); ndev 625 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c if (ndev->netdev_ops != &lio_vf_rep_ndev_ops) ndev 628 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c vf_rep = netdev_priv(ndev); ndev 631 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c if (strlen(ndev->name) > LIO_IF_NAME_SIZE) { ndev 641 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c strncpy(rep_cfg.rep_name.name, ndev->name, LIO_IF_NAME_SIZE); ndev 33 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.h struct net_device *ndev; ndev 419 drivers/net/ethernet/cavium/liquidio/octeon_device.h struct net_device *ndev[CN23XX_MAX_VFS_PER_PF]; ndev 836 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c struct net_device *ndev = p->netdev; ndev 837 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c struct phy_device *phydev = ndev->phydev; ndev 75 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c __func__, ppm->ndev->name, pgsz, i); ndev 326 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c ppm->ndev->name, ppm); ndev 388 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c int cxgbi_ppm_init(void **ppm_pp, struct net_device *ndev, ndev 423 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c ndev->name, ppm_pp, ppm, ppm->ppmax, ppmax); ndev 437 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c ndev->name, ppmax, ppmax_pool, pool_index_max); ndev 475 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c ppm->ndev = ndev; ndev 495 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c ndev->name, ppm_pp, *ppm_pp, ppm->ppmax, ppmax); ndev 505 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c ndev->name, ppm_pp, ppm, ppm->base_idx, ppm->ppmax, PAGE_SIZE, ndev 130 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.h struct net_device *ndev; /* net_device, 1st port */ ndev 128 drivers/net/ethernet/davicom/dm9000.c struct net_device *ndev; ndev 755 drivers/net/ethernet/davicom/dm9000.c struct net_device *ndev = db->ndev; ndev 763 drivers/net/ethernet/davicom/dm9000.c ndev->name, (nsr & NSR_SPEED) ? 10 : 100, ndev 766 drivers/net/ethernet/davicom/dm9000.c dev_info(db->dev, "%s: link down\n", ndev->name); ndev 775 drivers/net/ethernet/davicom/dm9000.c struct net_device *ndev = db->ndev; ndev 780 drivers/net/ethernet/davicom/dm9000.c unsigned old_carrier = netif_carrier_ok(ndev) ? 1 : 0; ndev 790 drivers/net/ethernet/davicom/dm9000.c netif_carrier_off(ndev); ndev 792 drivers/net/ethernet/davicom/dm9000.c netif_carrier_on(ndev); ndev 797 drivers/net/ethernet/davicom/dm9000.c if (netif_running(ndev)) ndev 1352 drivers/net/ethernet/davicom/dm9000.c dm9000_stop(struct net_device *ndev) ndev 1354 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = netdev_priv(ndev); ndev 1357 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "shutting down %s\n", ndev->name); ndev 1361 drivers/net/ethernet/davicom/dm9000.c netif_stop_queue(ndev); ndev 1362 drivers/net/ethernet/davicom/dm9000.c netif_carrier_off(ndev); ndev 1365 drivers/net/ethernet/davicom/dm9000.c free_irq(ndev->irq, ndev); ndev 1367 drivers/net/ethernet/davicom/dm9000.c dm9000_shutdown(ndev); ndev 1422 drivers/net/ethernet/davicom/dm9000.c struct net_device *ndev; ndev 1474 drivers/net/ethernet/davicom/dm9000.c ndev = alloc_etherdev(sizeof(struct board_info)); ndev 1475 drivers/net/ethernet/davicom/dm9000.c if (!ndev) ndev 1478 drivers/net/ethernet/davicom/dm9000.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 1483 drivers/net/ethernet/davicom/dm9000.c db = netdev_priv(ndev); ndev 1486 drivers/net/ethernet/davicom/dm9000.c db->ndev = ndev; ndev 1503 drivers/net/ethernet/davicom/dm9000.c ndev->irq = platform_get_irq(pdev, 0); ndev 1504 drivers/net/ethernet/davicom/dm9000.c if (ndev->irq < 0) { ndev 1505 drivers/net/ethernet/davicom/dm9000.c ret = ndev->irq; ndev 1514 drivers/net/ethernet/davicom/dm9000.c IRQF_SHARED, dev_name(db->dev), ndev); ndev 1569 drivers/net/ethernet/davicom/dm9000.c ndev->base_addr = (unsigned long)db->io_addr; ndev 1646 drivers/net/ethernet/davicom/dm9000.c ndev->hw_features = NETIF_F_RXCSUM | NETIF_F_IP_CSUM; ndev 1647 drivers/net/ethernet/davicom/dm9000.c ndev->features |= ndev->hw_features; ndev 1652 drivers/net/ethernet/davicom/dm9000.c ndev->netdev_ops = &dm9000_netdev_ops; ndev 1653 drivers/net/ethernet/davicom/dm9000.c ndev->watchdog_timeo = msecs_to_jiffies(watchdog); ndev 1654 drivers/net/ethernet/davicom/dm9000.c ndev->ethtool_ops = &dm9000_ethtool_ops; ndev 1661 drivers/net/ethernet/davicom/dm9000.c db->mii.dev = ndev; ndev 1669 drivers/net/ethernet/davicom/dm9000.c dm9000_read_eeprom(db, i / 2, ndev->dev_addr+i); ndev 1671 drivers/net/ethernet/davicom/dm9000.c if (!is_valid_ether_addr(ndev->dev_addr) && pdata != NULL) { ndev 1673 drivers/net/ethernet/davicom/dm9000.c memcpy(ndev->dev_addr, pdata->dev_addr, ETH_ALEN); ndev 1676 drivers/net/ethernet/davicom/dm9000.c if (!is_valid_ether_addr(ndev->dev_addr)) { ndev 1681 drivers/net/ethernet/davicom/dm9000.c ndev->dev_addr[i] = ior(db, i+DM9000_PAR); ndev 1684 drivers/net/ethernet/davicom/dm9000.c if (!is_valid_ether_addr(ndev->dev_addr)) { ndev 1686 drivers/net/ethernet/davicom/dm9000.c eth_hw_addr_random(ndev); ndev 1691 drivers/net/ethernet/davicom/dm9000.c platform_set_drvdata(pdev, ndev); ndev 1692 drivers/net/ethernet/davicom/dm9000.c ret = register_netdev(ndev); ndev 1697 drivers/net/ethernet/davicom/dm9000.c ndev->name); ndev 1699 drivers/net/ethernet/davicom/dm9000.c ndev->name, dm9000_type_to_char(db->type), ndev 1700 drivers/net/ethernet/davicom/dm9000.c db->io_addr, db->io_data, ndev->irq, ndev 1701 drivers/net/ethernet/davicom/dm9000.c ndev->dev_addr, mac_src); ndev 1709 drivers/net/ethernet/davicom/dm9000.c free_netdev(ndev); ndev 1717 drivers/net/ethernet/davicom/dm9000.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1720 drivers/net/ethernet/davicom/dm9000.c if (ndev) { ndev 1721 drivers/net/ethernet/davicom/dm9000.c db = netdev_priv(ndev); ndev 1724 drivers/net/ethernet/davicom/dm9000.c if (!netif_running(ndev)) ndev 1727 drivers/net/ethernet/davicom/dm9000.c netif_device_detach(ndev); ndev 1731 drivers/net/ethernet/davicom/dm9000.c dm9000_shutdown(ndev); ndev 1739 drivers/net/ethernet/davicom/dm9000.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1740 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = netdev_priv(ndev); ndev 1742 drivers/net/ethernet/davicom/dm9000.c if (ndev) { ndev 1743 drivers/net/ethernet/davicom/dm9000.c if (netif_running(ndev)) { ndev 1747 drivers/net/ethernet/davicom/dm9000.c dm9000_init_dm9000(ndev); ndev 1751 drivers/net/ethernet/davicom/dm9000.c netif_device_attach(ndev); ndev 1767 drivers/net/ethernet/davicom/dm9000.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1769 drivers/net/ethernet/davicom/dm9000.c unregister_netdev(ndev); ndev 1770 drivers/net/ethernet/davicom/dm9000.c dm9000_release_board(pdev, netdev_priv(ndev)); ndev 1771 drivers/net/ethernet/davicom/dm9000.c free_netdev(ndev); /* free device structure */ ndev 25 drivers/net/ethernet/ezchip/nps_enet.c static void nps_enet_clean_rx_fifo(struct net_device *ndev, u32 frame_len) ndev 27 drivers/net/ethernet/ezchip/nps_enet.c struct nps_enet_priv *priv = netdev_priv(ndev); ndev 35 drivers/net/ethernet/ezchip/nps_enet.c static void nps_enet_read_rx_fifo(struct net_device *ndev, ndev 38 drivers/net/ethernet/ezchip/nps_enet.c struct nps_enet_priv *priv = netdev_priv(ndev); ndev 63 drivers/net/ethernet/ezchip/nps_enet.c static u32 nps_enet_rx_handler(struct net_device *ndev) ndev 67 drivers/net/ethernet/ezchip/nps_enet.c struct nps_enet_priv *priv = netdev_priv(ndev); ndev 85 drivers/net/ethernet/ezchip/nps_enet.c ndev->stats.rx_errors++; ndev 91 drivers/net/ethernet/ezchip/nps_enet.c ndev->stats.rx_crc_errors++; ndev 92 drivers/net/ethernet/ezchip/nps_enet.c ndev->stats.rx_dropped++; ndev 98 drivers/net/ethernet/ezchip/nps_enet.c ndev->stats.rx_length_errors++; ndev 99 drivers/net/ethernet/ezchip/nps_enet.c ndev->stats.rx_dropped++; ndev 107 drivers/net/ethernet/ezchip/nps_enet.c skb = netdev_alloc_skb_ip_align(ndev, frame_len); ndev 109 drivers/net/ethernet/ezchip/nps_enet.c ndev->stats.rx_errors++; ndev 110 drivers/net/ethernet/ezchip/nps_enet.c ndev->stats.rx_dropped++; ndev 115 drivers/net/ethernet/ezchip/nps_enet.c nps_enet_read_rx_fifo(ndev, skb->data, frame_len); ndev 118 drivers/net/ethernet/ezchip/nps_enet.c skb->protocol = eth_type_trans(skb, ndev); ndev 121 drivers/net/ethernet/ezchip/nps_enet.c ndev->stats.rx_packets++; ndev 122 drivers/net/ethernet/ezchip/nps_enet.c ndev->stats.rx_bytes += frame_len; ndev 129 drivers/net/ethernet/ezchip/nps_enet.c nps_enet_clean_rx_fifo(ndev, frame_len); ndev 138 drivers/net/ethernet/ezchip/nps_enet.c static void nps_enet_tx_handler(struct net_device *ndev) ndev 140 drivers/net/ethernet/ezchip/nps_enet.c struct nps_enet_priv *priv = netdev_priv(ndev); ndev 154 drivers/net/ethernet/ezchip/nps_enet.c ndev->stats.tx_errors++; ndev 156 drivers/net/ethernet/ezchip/nps_enet.c ndev->stats.tx_packets++; ndev 157 drivers/net/ethernet/ezchip/nps_enet.c ndev->stats.tx_bytes += tx_ctrl_nt; ndev 163 drivers/net/ethernet/ezchip/nps_enet.c if (netif_queue_stopped(ndev)) ndev 164 drivers/net/ethernet/ezchip/nps_enet.c netif_wake_queue(ndev); ndev 176 drivers/net/ethernet/ezchip/nps_enet.c struct net_device *ndev = napi->dev; ndev 177 drivers/net/ethernet/ezchip/nps_enet.c struct nps_enet_priv *priv = netdev_priv(ndev); ndev 180 drivers/net/ethernet/ezchip/nps_enet.c nps_enet_tx_handler(ndev); ndev 181 drivers/net/ethernet/ezchip/nps_enet.c work_done = nps_enet_rx_handler(ndev); ndev 222 drivers/net/ethernet/ezchip/nps_enet.c struct net_device *ndev = dev_instance; ndev 223 drivers/net/ethernet/ezchip/nps_enet.c struct nps_enet_priv *priv = netdev_priv(ndev); ndev 236 drivers/net/ethernet/ezchip/nps_enet.c static void nps_enet_set_hw_mac_address(struct net_device *ndev) ndev 238 drivers/net/ethernet/ezchip/nps_enet.c struct nps_enet_priv *priv = netdev_priv(ndev); ndev 243 drivers/net/ethernet/ezchip/nps_enet.c ge_mac_cfg_1_value |= ndev->dev_addr[0] << CFG_1_OCTET_0_SHIFT; ndev 244 drivers/net/ethernet/ezchip/nps_enet.c ge_mac_cfg_1_value |= ndev->dev_addr[1] << CFG_1_OCTET_1_SHIFT; ndev 245 drivers/net/ethernet/ezchip/nps_enet.c ge_mac_cfg_1_value |= ndev->dev_addr[2] << CFG_1_OCTET_2_SHIFT; ndev 246 drivers/net/ethernet/ezchip/nps_enet.c ge_mac_cfg_1_value |= ndev->dev_addr[3] << CFG_1_OCTET_3_SHIFT; ndev 248 drivers/net/ethernet/ezchip/nps_enet.c | ndev->dev_addr[4] << CFG_2_OCTET_4_SHIFT; ndev 250 drivers/net/ethernet/ezchip/nps_enet.c | ndev->dev_addr[5] << CFG_2_OCTET_5_SHIFT; ndev 269 drivers/net/ethernet/ezchip/nps_enet.c static void nps_enet_hw_reset(struct net_device *ndev) ndev 271 drivers/net/ethernet/ezchip/nps_enet.c struct nps_enet_priv *priv = netdev_priv(ndev); ndev 292 drivers/net/ethernet/ezchip/nps_enet.c static void nps_enet_hw_enable_control(struct net_device *ndev) ndev 294 drivers/net/ethernet/ezchip/nps_enet.c struct nps_enet_priv *priv = netdev_priv(ndev); ndev 316 drivers/net/ethernet/ezchip/nps_enet.c max_frame_length = ETH_HLEN + ndev->mtu + ETH_FCS_LEN; ndev 330 drivers/net/ethernet/ezchip/nps_enet.c nps_enet_set_hw_mac_address(ndev); ndev 366 drivers/net/ethernet/ezchip/nps_enet.c static void nps_enet_hw_disable_control(struct net_device *ndev) ndev 368 drivers/net/ethernet/ezchip/nps_enet.c struct nps_enet_priv *priv = netdev_priv(ndev); ndev 377 drivers/net/ethernet/ezchip/nps_enet.c static void nps_enet_send_frame(struct net_device *ndev, ndev 380 drivers/net/ethernet/ezchip/nps_enet.c struct nps_enet_priv *priv = netdev_priv(ndev); ndev 414 drivers/net/ethernet/ezchip/nps_enet.c static s32 nps_enet_set_mac_address(struct net_device *ndev, void *p) ndev 419 drivers/net/ethernet/ezchip/nps_enet.c if (netif_running(ndev)) ndev 422 drivers/net/ethernet/ezchip/nps_enet.c res = eth_mac_addr(ndev, p); ndev 424 drivers/net/ethernet/ezchip/nps_enet.c ether_addr_copy(ndev->dev_addr, addr->sa_data); ndev 425 drivers/net/ethernet/ezchip/nps_enet.c nps_enet_set_hw_mac_address(ndev); ndev 437 drivers/net/ethernet/ezchip/nps_enet.c static void nps_enet_set_rx_mode(struct net_device *ndev) ndev 439 drivers/net/ethernet/ezchip/nps_enet.c struct nps_enet_priv *priv = netdev_priv(ndev); ndev 442 drivers/net/ethernet/ezchip/nps_enet.c if (ndev->flags & IFF_PROMISC) { ndev 467 drivers/net/ethernet/ezchip/nps_enet.c static s32 nps_enet_open(struct net_device *ndev) ndev 469 drivers/net/ethernet/ezchip/nps_enet.c struct nps_enet_priv *priv = netdev_priv(ndev); ndev 485 drivers/net/ethernet/ezchip/nps_enet.c nps_enet_hw_disable_control(ndev); ndev 489 drivers/net/ethernet/ezchip/nps_enet.c 0, "enet-rx-tx", ndev); ndev 496 drivers/net/ethernet/ezchip/nps_enet.c nps_enet_hw_reset(ndev); ndev 497 drivers/net/ethernet/ezchip/nps_enet.c nps_enet_hw_enable_control(ndev); ndev 499 drivers/net/ethernet/ezchip/nps_enet.c netif_start_queue(ndev); ndev 510 drivers/net/ethernet/ezchip/nps_enet.c static s32 nps_enet_stop(struct net_device *ndev) ndev 512 drivers/net/ethernet/ezchip/nps_enet.c struct nps_enet_priv *priv = netdev_priv(ndev); ndev 515 drivers/net/ethernet/ezchip/nps_enet.c netif_stop_queue(ndev); ndev 516 drivers/net/ethernet/ezchip/nps_enet.c nps_enet_hw_disable_control(ndev); ndev 517 drivers/net/ethernet/ezchip/nps_enet.c free_irq(priv->irq, ndev); ndev 533 drivers/net/ethernet/ezchip/nps_enet.c struct net_device *ndev) ndev 535 drivers/net/ethernet/ezchip/nps_enet.c struct nps_enet_priv *priv = netdev_priv(ndev); ndev 538 drivers/net/ethernet/ezchip/nps_enet.c netif_stop_queue(ndev); ndev 547 drivers/net/ethernet/ezchip/nps_enet.c nps_enet_send_frame(ndev, skb); ndev 553 drivers/net/ethernet/ezchip/nps_enet.c static void nps_enet_poll_controller(struct net_device *ndev) ndev 555 drivers/net/ethernet/ezchip/nps_enet.c disable_irq(ndev->irq); ndev 556 drivers/net/ethernet/ezchip/nps_enet.c nps_enet_irq_handler(ndev->irq, ndev); ndev 557 drivers/net/ethernet/ezchip/nps_enet.c enable_irq(ndev->irq); ndev 575 drivers/net/ethernet/ezchip/nps_enet.c struct net_device *ndev; ndev 583 drivers/net/ethernet/ezchip/nps_enet.c ndev = alloc_etherdev(sizeof(struct nps_enet_priv)); ndev 584 drivers/net/ethernet/ezchip/nps_enet.c if (!ndev) ndev 587 drivers/net/ethernet/ezchip/nps_enet.c platform_set_drvdata(pdev, ndev); ndev 588 drivers/net/ethernet/ezchip/nps_enet.c SET_NETDEV_DEV(ndev, dev); ndev 589 drivers/net/ethernet/ezchip/nps_enet.c priv = netdev_priv(ndev); ndev 592 drivers/net/ethernet/ezchip/nps_enet.c ndev->netdev_ops = &nps_netdev_ops; ndev 593 drivers/net/ethernet/ezchip/nps_enet.c ndev->watchdog_timeo = (400 * HZ / 1000); ndev 595 drivers/net/ethernet/ezchip/nps_enet.c ndev->flags &= ~IFF_MULTICAST; ndev 607 drivers/net/ethernet/ezchip/nps_enet.c ether_addr_copy(ndev->dev_addr, mac_addr); ndev 609 drivers/net/ethernet/ezchip/nps_enet.c eth_hw_addr_random(ndev); ndev 619 drivers/net/ethernet/ezchip/nps_enet.c netif_napi_add(ndev, &priv->napi, nps_enet_poll, ndev 623 drivers/net/ethernet/ezchip/nps_enet.c err = register_netdev(ndev); ndev 626 drivers/net/ethernet/ezchip/nps_enet.c ndev->name, (s32)err); ndev 637 drivers/net/ethernet/ezchip/nps_enet.c free_netdev(ndev); ndev 644 drivers/net/ethernet/ezchip/nps_enet.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 645 drivers/net/ethernet/ezchip/nps_enet.c struct nps_enet_priv *priv = netdev_priv(ndev); ndev 647 drivers/net/ethernet/ezchip/nps_enet.c unregister_netdev(ndev); ndev 648 drivers/net/ethernet/ezchip/nps_enet.c free_netdev(ndev); ndev 87 drivers/net/ethernet/faraday/ftgmac100.c struct ncsi_dev *ndev; ndev 1484 drivers/net/ethernet/faraday/ftgmac100.c err = ncsi_start_dev(priv->ndev); ndev 1526 drivers/net/ethernet/faraday/ftgmac100.c ncsi_stop_dev(priv->ndev); ndev 1823 drivers/net/ethernet/faraday/ftgmac100.c priv->ndev = ncsi_register_dev(netdev, ftgmac100_ncsi_handler); ndev 1824 drivers/net/ethernet/faraday/ftgmac100.c if (!priv->ndev) ndev 19 drivers/net/ethernet/freescale/enetc/enetc.c netdev_tx_t enetc_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 21 drivers/net/ethernet/freescale/enetc/enetc.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 33 drivers/net/ethernet/freescale/enetc/enetc.c netif_stop_subqueue(ndev, tx_ring->index); ndev 42 drivers/net/ethernet/freescale/enetc/enetc.c netif_stop_subqueue(ndev, tx_ring->index); ndev 333 drivers/net/ethernet/freescale/enetc/enetc.c struct net_device *ndev = tx_ring->ndev; ndev 350 drivers/net/ethernet/freescale/enetc/enetc.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 401 drivers/net/ethernet/freescale/enetc/enetc.c if (unlikely(tx_frm_cnt && netif_carrier_ok(ndev) && ndev 402 drivers/net/ethernet/freescale/enetc/enetc.c __netif_subqueue_stopped(ndev, tx_ring->index) && ndev 404 drivers/net/ethernet/freescale/enetc/enetc.c netif_wake_subqueue(ndev, tx_ring->index); ndev 480 drivers/net/ethernet/freescale/enetc/enetc.c static void enetc_get_rx_tstamp(struct net_device *ndev, ndev 485 drivers/net/ethernet/freescale/enetc/enetc.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 508 drivers/net/ethernet/freescale/enetc/enetc.c struct enetc_ndev_priv *priv = netdev_priv(rx_ring->ndev); ndev 511 drivers/net/ethernet/freescale/enetc/enetc.c if (rx_ring->ndev->features & NETIF_F_RXCSUM) { ndev 526 drivers/net/ethernet/freescale/enetc/enetc.c enetc_get_rx_tstamp(rx_ring->ndev, rxbd, skb); ndev 534 drivers/net/ethernet/freescale/enetc/enetc.c skb->protocol = eth_type_trans(skb, rx_ring->ndev); ndev 682 drivers/net/ethernet/freescale/enetc/enetc.c rx_ring->ndev->stats.rx_dropped++; ndev 683 drivers/net/ethernet/freescale/enetc/enetc.c rx_ring->ndev->stats.rx_errors++; ndev 1126 drivers/net/ethernet/freescale/enetc/enetc.c if (tx_ring->ndev->features & NETIF_F_HW_VLAN_CTAG_TX) ndev 1163 drivers/net/ethernet/freescale/enetc/enetc.c if (rx_ring->ndev->features & NETIF_F_HW_VLAN_CTAG_RX) ndev 1210 drivers/net/ethernet/freescale/enetc/enetc.c netdev_warn(tx_ring->ndev, "timeout for tx ring #%d clear\n", ndev 1240 drivers/net/ethernet/freescale/enetc/enetc.c priv->ndev->name, i); ndev 1315 drivers/net/ethernet/freescale/enetc/enetc.c static void adjust_link(struct net_device *ndev) ndev 1317 drivers/net/ethernet/freescale/enetc/enetc.c struct phy_device *phydev = ndev->phydev; ndev 1322 drivers/net/ethernet/freescale/enetc/enetc.c static int enetc_phy_connect(struct net_device *ndev) ndev 1324 drivers/net/ethernet/freescale/enetc/enetc.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 1330 drivers/net/ethernet/freescale/enetc/enetc.c phydev = of_phy_connect(ndev, priv->phy_node, &adjust_link, ndev 1333 drivers/net/ethernet/freescale/enetc/enetc.c dev_err(&ndev->dev, "could not attach to PHY\n"); ndev 1342 drivers/net/ethernet/freescale/enetc/enetc.c int enetc_open(struct net_device *ndev) ndev 1344 drivers/net/ethernet/freescale/enetc/enetc.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 1351 drivers/net/ethernet/freescale/enetc/enetc.c err = enetc_phy_connect(ndev); ndev 1365 drivers/net/ethernet/freescale/enetc/enetc.c err = netif_set_real_num_tx_queues(ndev, priv->num_tx_rings); ndev 1369 drivers/net/ethernet/freescale/enetc/enetc.c err = netif_set_real_num_rx_queues(ndev, priv->num_rx_rings); ndev 1378 drivers/net/ethernet/freescale/enetc/enetc.c if (ndev->phydev) ndev 1379 drivers/net/ethernet/freescale/enetc/enetc.c phy_start(ndev->phydev); ndev 1381 drivers/net/ethernet/freescale/enetc/enetc.c netif_carrier_on(ndev); ndev 1383 drivers/net/ethernet/freescale/enetc/enetc.c netif_tx_start_all_queues(ndev); ndev 1392 drivers/net/ethernet/freescale/enetc/enetc.c if (ndev->phydev) ndev 1393 drivers/net/ethernet/freescale/enetc/enetc.c phy_disconnect(ndev->phydev); ndev 1400 drivers/net/ethernet/freescale/enetc/enetc.c int enetc_close(struct net_device *ndev) ndev 1402 drivers/net/ethernet/freescale/enetc/enetc.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 1405 drivers/net/ethernet/freescale/enetc/enetc.c netif_tx_stop_all_queues(ndev); ndev 1407 drivers/net/ethernet/freescale/enetc/enetc.c if (ndev->phydev) { ndev 1408 drivers/net/ethernet/freescale/enetc/enetc.c phy_stop(ndev->phydev); ndev 1409 drivers/net/ethernet/freescale/enetc/enetc.c phy_disconnect(ndev->phydev); ndev 1411 drivers/net/ethernet/freescale/enetc/enetc.c netif_carrier_off(ndev); ndev 1430 drivers/net/ethernet/freescale/enetc/enetc.c int enetc_setup_tc(struct net_device *ndev, enum tc_setup_type type, ndev 1433 drivers/net/ethernet/freescale/enetc/enetc.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 1446 drivers/net/ethernet/freescale/enetc/enetc.c netdev_reset_tc(ndev); ndev 1447 drivers/net/ethernet/freescale/enetc/enetc.c netif_set_real_num_tx_queues(ndev, priv->num_tx_rings); ndev 1460 drivers/net/ethernet/freescale/enetc/enetc.c netdev_err(ndev, "Max %d traffic classes supported\n", ndev 1475 drivers/net/ethernet/freescale/enetc/enetc.c netif_set_real_num_tx_queues(ndev, num_tc); ndev 1477 drivers/net/ethernet/freescale/enetc/enetc.c netdev_set_num_tc(ndev, num_tc); ndev 1481 drivers/net/ethernet/freescale/enetc/enetc.c netdev_set_tc_queue(ndev, i, 1, i); ndev 1486 drivers/net/ethernet/freescale/enetc/enetc.c struct net_device_stats *enetc_get_stats(struct net_device *ndev) ndev 1488 drivers/net/ethernet/freescale/enetc/enetc.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 1489 drivers/net/ethernet/freescale/enetc/enetc.c struct net_device_stats *stats = &ndev->stats; ndev 1514 drivers/net/ethernet/freescale/enetc/enetc.c static int enetc_set_rss(struct net_device *ndev, int en) ndev 1516 drivers/net/ethernet/freescale/enetc/enetc.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 1530 drivers/net/ethernet/freescale/enetc/enetc.c int enetc_set_features(struct net_device *ndev, ndev 1533 drivers/net/ethernet/freescale/enetc/enetc.c netdev_features_t changed = ndev->features ^ features; ndev 1536 drivers/net/ethernet/freescale/enetc/enetc.c enetc_set_rss(ndev, !!(features & NETIF_F_RXHASH)); ndev 1542 drivers/net/ethernet/freescale/enetc/enetc.c static int enetc_hwtstamp_set(struct net_device *ndev, struct ifreq *ifr) ndev 1544 drivers/net/ethernet/freescale/enetc/enetc.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 1574 drivers/net/ethernet/freescale/enetc/enetc.c static int enetc_hwtstamp_get(struct net_device *ndev, struct ifreq *ifr) ndev 1576 drivers/net/ethernet/freescale/enetc/enetc.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 1594 drivers/net/ethernet/freescale/enetc/enetc.c int enetc_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd) ndev 1598 drivers/net/ethernet/freescale/enetc/enetc.c return enetc_hwtstamp_set(ndev, rq); ndev 1600 drivers/net/ethernet/freescale/enetc/enetc.c return enetc_hwtstamp_get(ndev, rq); ndev 1639 drivers/net/ethernet/freescale/enetc/enetc.c netif_napi_add(priv->ndev, &v->napi, enetc_poll, ndev 1655 drivers/net/ethernet/freescale/enetc/enetc.c bdr->ndev = priv->ndev; ndev 1663 drivers/net/ethernet/freescale/enetc/enetc.c bdr->ndev = priv->ndev; ndev 52 drivers/net/ethernet/freescale/enetc/enetc.h struct net_device *ndev; ndev 127 drivers/net/ethernet/freescale/enetc/enetc.h struct net_device *ndev; /* back ref. */ ndev 179 drivers/net/ethernet/freescale/enetc/enetc.h struct net_device *ndev; ndev 225 drivers/net/ethernet/freescale/enetc/enetc.h int enetc_open(struct net_device *ndev); ndev 226 drivers/net/ethernet/freescale/enetc/enetc.h int enetc_close(struct net_device *ndev); ndev 227 drivers/net/ethernet/freescale/enetc/enetc.h netdev_tx_t enetc_xmit(struct sk_buff *skb, struct net_device *ndev); ndev 228 drivers/net/ethernet/freescale/enetc/enetc.h struct net_device_stats *enetc_get_stats(struct net_device *ndev); ndev 229 drivers/net/ethernet/freescale/enetc/enetc.h int enetc_set_features(struct net_device *ndev, ndev 231 drivers/net/ethernet/freescale/enetc/enetc.h int enetc_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd); ndev 232 drivers/net/ethernet/freescale/enetc/enetc.h int enetc_setup_tc(struct net_device *ndev, enum tc_setup_type type, ndev 236 drivers/net/ethernet/freescale/enetc/enetc.h void enetc_set_ethtool_ops(struct net_device *ndev); ndev 32 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c static int enetc_get_reglen(struct net_device *ndev) ndev 34 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 50 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c static void enetc_get_regs(struct net_device *ndev, struct ethtool_regs *regs, ndev 53 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 195 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c static int enetc_get_sset_count(struct net_device *ndev, int sset) ndev 197 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 209 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c static void enetc_get_strings(struct net_device *ndev, u32 stringset, u8 *data) ndev 211 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 248 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c static void enetc_get_ethtool_stats(struct net_device *ndev, ndev 251 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 342 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c netdev_warn(si->ndev, "ToS field is not supported and was ignored\n"); ndev 355 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c netdev_warn(si->ndev, "ToS field is not supported and was ignored\n"); ndev 383 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c static int enetc_get_rxnfc(struct net_device *ndev, struct ethtool_rxnfc *rxnfc, ndev 386 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 434 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c static int enetc_set_rxnfc(struct net_device *ndev, struct ethtool_rxnfc *rxnfc) ndev 436 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 470 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c static u32 enetc_get_rxfh_key_size(struct net_device *ndev) ndev 472 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 478 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c static u32 enetc_get_rxfh_indir_size(struct net_device *ndev) ndev 480 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 486 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c static int enetc_get_rxfh(struct net_device *ndev, u32 *indir, u8 *key, ndev 489 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 517 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c static int enetc_set_rxfh(struct net_device *ndev, const u32 *indir, ndev 520 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 535 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c static void enetc_get_ringparam(struct net_device *ndev, ndev 538 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 544 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c if (netif_running(ndev)) { ndev 549 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c netif_err(priv, hw, ndev, "RxBDR[RBLENR] = %d!\n", val); ndev 554 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c netif_err(priv, hw, ndev, "TxBDR[TBLENR] = %d!\n", val); ndev 558 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c static int enetc_get_ts_info(struct net_device *ndev, ndev 622 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c void enetc_set_ethtool_ops(struct net_device *ndev) ndev 624 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 627 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c ndev->ethtool_ops = &enetc_pf_ethtool_ops; ndev 629 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c ndev->ethtool_ops = &enetc_vf_ethtool_ops; ndev 114 drivers/net/ethernet/freescale/enetc/enetc_msg.c si->ndev->name); ndev 37 drivers/net/ethernet/freescale/enetc/enetc_pf.c static int enetc_pf_set_mac_addr(struct net_device *ndev, void *addr) ndev 39 drivers/net/ethernet/freescale/enetc/enetc_pf.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 45 drivers/net/ethernet/freescale/enetc/enetc_pf.c memcpy(ndev->dev_addr, saddr->sa_data, ndev->addr_len); ndev 209 drivers/net/ethernet/freescale/enetc/enetc_pf.c static void enetc_pf_set_rx_mode(struct net_device *ndev) ndev 211 drivers/net/ethernet/freescale/enetc/enetc_pf.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 220 drivers/net/ethernet/freescale/enetc/enetc_pf.c if (ndev->flags & IFF_PROMISC) { ndev 229 drivers/net/ethernet/freescale/enetc/enetc_pf.c } else if (ndev->flags & IFF_ALLMULTI) { ndev 241 drivers/net/ethernet/freescale/enetc/enetc_pf.c em = (netdev_uc_count(ndev) == 1); ndev 242 drivers/net/ethernet/freescale/enetc/enetc_pf.c netdev_for_each_uc_addr(ha, ndev) { ndev 257 drivers/net/ethernet/freescale/enetc/enetc_pf.c netdev_for_each_mc_addr(ha, ndev) { ndev 309 drivers/net/ethernet/freescale/enetc/enetc_pf.c static int enetc_vlan_rx_add_vid(struct net_device *ndev, __be16 prot, u16 vid) ndev 311 drivers/net/ethernet/freescale/enetc/enetc_pf.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 327 drivers/net/ethernet/freescale/enetc/enetc_pf.c static int enetc_vlan_rx_del_vid(struct net_device *ndev, __be16 prot, u16 vid) ndev 329 drivers/net/ethernet/freescale/enetc/enetc_pf.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 341 drivers/net/ethernet/freescale/enetc/enetc_pf.c static void enetc_set_loopback(struct net_device *ndev, bool en) ndev 343 drivers/net/ethernet/freescale/enetc/enetc_pf.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 365 drivers/net/ethernet/freescale/enetc/enetc_pf.c static int enetc_pf_set_vf_mac(struct net_device *ndev, int vf, u8 *mac) ndev 367 drivers/net/ethernet/freescale/enetc/enetc_pf.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 383 drivers/net/ethernet/freescale/enetc/enetc_pf.c static int enetc_pf_set_vf_vlan(struct net_device *ndev, int vf, u16 vlan, ndev 386 drivers/net/ethernet/freescale/enetc/enetc_pf.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 403 drivers/net/ethernet/freescale/enetc/enetc_pf.c static int enetc_pf_set_vf_spoofchk(struct net_device *ndev, int vf, bool en) ndev 405 drivers/net/ethernet/freescale/enetc/enetc_pf.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 672 drivers/net/ethernet/freescale/enetc/enetc_pf.c static int enetc_pf_set_features(struct net_device *ndev, ndev 675 drivers/net/ethernet/freescale/enetc/enetc_pf.c netdev_features_t changed = ndev->features ^ features; ndev 676 drivers/net/ethernet/freescale/enetc/enetc_pf.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 687 drivers/net/ethernet/freescale/enetc/enetc_pf.c enetc_set_loopback(ndev, !!(features & NETIF_F_LOOPBACK)); ndev 689 drivers/net/ethernet/freescale/enetc/enetc_pf.c return enetc_set_features(ndev, features); ndev 709 drivers/net/ethernet/freescale/enetc/enetc_pf.c static void enetc_pf_netdev_setup(struct enetc_si *si, struct net_device *ndev, ndev 712 drivers/net/ethernet/freescale/enetc/enetc_pf.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 714 drivers/net/ethernet/freescale/enetc/enetc_pf.c SET_NETDEV_DEV(ndev, &si->pdev->dev); ndev 715 drivers/net/ethernet/freescale/enetc/enetc_pf.c priv->ndev = ndev; ndev 718 drivers/net/ethernet/freescale/enetc/enetc_pf.c si->ndev = ndev; ndev 721 drivers/net/ethernet/freescale/enetc/enetc_pf.c ndev->netdev_ops = ndev_ops; ndev 722 drivers/net/ethernet/freescale/enetc/enetc_pf.c enetc_set_ethtool_ops(ndev); ndev 723 drivers/net/ethernet/freescale/enetc/enetc_pf.c ndev->watchdog_timeo = 5 * HZ; ndev 724 drivers/net/ethernet/freescale/enetc/enetc_pf.c ndev->max_mtu = ENETC_MAX_MTU; ndev 726 drivers/net/ethernet/freescale/enetc/enetc_pf.c ndev->hw_features = NETIF_F_SG | NETIF_F_RXCSUM | NETIF_F_HW_CSUM | ndev 729 drivers/net/ethernet/freescale/enetc/enetc_pf.c ndev->features = NETIF_F_HIGHDMA | NETIF_F_SG | ndev 736 drivers/net/ethernet/freescale/enetc/enetc_pf.c ndev->hw_features |= NETIF_F_RXHASH; ndev 739 drivers/net/ethernet/freescale/enetc/enetc_pf.c ndev->hw_features &= ~NETIF_F_HW_CSUM; ndev 740 drivers/net/ethernet/freescale/enetc/enetc_pf.c ndev->features &= ~NETIF_F_HW_CSUM; ndev 743 drivers/net/ethernet/freescale/enetc/enetc_pf.c ndev->priv_flags |= IFF_UNICAST_FLT; ndev 746 drivers/net/ethernet/freescale/enetc/enetc_pf.c enetc_get_primary_mac_addr(&si->hw, ndev->dev_addr); ndev 816 drivers/net/ethernet/freescale/enetc/enetc_pf.c struct net_device *ndev; ndev 847 drivers/net/ethernet/freescale/enetc/enetc_pf.c ndev = alloc_etherdev_mq(sizeof(*priv), ENETC_MAX_NUM_TXQS); ndev 848 drivers/net/ethernet/freescale/enetc/enetc_pf.c if (!ndev) { ndev 854 drivers/net/ethernet/freescale/enetc/enetc_pf.c enetc_pf_netdev_setup(si, ndev, &enetc_ndev_ops); ndev 856 drivers/net/ethernet/freescale/enetc/enetc_pf.c priv = netdev_priv(ndev); ndev 876 drivers/net/ethernet/freescale/enetc/enetc_pf.c err = register_netdev(ndev); ndev 880 drivers/net/ethernet/freescale/enetc/enetc_pf.c netif_carrier_off(ndev); ndev 882 drivers/net/ethernet/freescale/enetc/enetc_pf.c netif_info(priv, probe, ndev, "%s v%s\n", ndev 893 drivers/net/ethernet/freescale/enetc/enetc_pf.c si->ndev = NULL; ndev 894 drivers/net/ethernet/freescale/enetc/enetc_pf.c free_netdev(ndev); ndev 911 drivers/net/ethernet/freescale/enetc/enetc_pf.c priv = netdev_priv(si->ndev); ndev 912 drivers/net/ethernet/freescale/enetc/enetc_pf.c netif_info(priv, drv, si->ndev, "%s v%s remove\n", ndev 915 drivers/net/ethernet/freescale/enetc/enetc_pf.c unregister_netdev(si->ndev); ndev 924 drivers/net/ethernet/freescale/enetc/enetc_pf.c free_netdev(si->ndev); ndev 84 drivers/net/ethernet/freescale/enetc/enetc_vf.c static int enetc_vf_set_mac_addr(struct net_device *ndev, void *addr) ndev 86 drivers/net/ethernet/freescale/enetc/enetc_vf.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 100 drivers/net/ethernet/freescale/enetc/enetc_vf.c static int enetc_vf_set_features(struct net_device *ndev, ndev 103 drivers/net/ethernet/freescale/enetc/enetc_vf.c return enetc_set_features(ndev, features); ndev 118 drivers/net/ethernet/freescale/enetc/enetc_vf.c static void enetc_vf_netdev_setup(struct enetc_si *si, struct net_device *ndev, ndev 121 drivers/net/ethernet/freescale/enetc/enetc_vf.c struct enetc_ndev_priv *priv = netdev_priv(ndev); ndev 123 drivers/net/ethernet/freescale/enetc/enetc_vf.c SET_NETDEV_DEV(ndev, &si->pdev->dev); ndev 124 drivers/net/ethernet/freescale/enetc/enetc_vf.c priv->ndev = ndev; ndev 127 drivers/net/ethernet/freescale/enetc/enetc_vf.c si->ndev = ndev; ndev 130 drivers/net/ethernet/freescale/enetc/enetc_vf.c ndev->netdev_ops = ndev_ops; ndev 131 drivers/net/ethernet/freescale/enetc/enetc_vf.c enetc_set_ethtool_ops(ndev); ndev 132 drivers/net/ethernet/freescale/enetc/enetc_vf.c ndev->watchdog_timeo = 5 * HZ; ndev 133 drivers/net/ethernet/freescale/enetc/enetc_vf.c ndev->max_mtu = ENETC_MAX_MTU; ndev 135 drivers/net/ethernet/freescale/enetc/enetc_vf.c ndev->hw_features = NETIF_F_SG | NETIF_F_RXCSUM | NETIF_F_HW_CSUM | ndev 138 drivers/net/ethernet/freescale/enetc/enetc_vf.c ndev->features = NETIF_F_HIGHDMA | NETIF_F_SG | ndev 144 drivers/net/ethernet/freescale/enetc/enetc_vf.c ndev->hw_features |= NETIF_F_RXHASH; ndev 147 drivers/net/ethernet/freescale/enetc/enetc_vf.c ndev->hw_features &= ~NETIF_F_HW_CSUM; ndev 148 drivers/net/ethernet/freescale/enetc/enetc_vf.c ndev->features &= ~NETIF_F_HW_CSUM; ndev 152 drivers/net/ethernet/freescale/enetc/enetc_vf.c enetc_get_primary_mac_addr(&si->hw, ndev->dev_addr); ndev 159 drivers/net/ethernet/freescale/enetc/enetc_vf.c struct net_device *ndev; ndev 173 drivers/net/ethernet/freescale/enetc/enetc_vf.c ndev = alloc_etherdev_mq(sizeof(*priv), ENETC_MAX_NUM_TXQS); ndev 174 drivers/net/ethernet/freescale/enetc/enetc_vf.c if (!ndev) { ndev 180 drivers/net/ethernet/freescale/enetc/enetc_vf.c enetc_vf_netdev_setup(si, ndev, &enetc_ndev_ops); ndev 182 drivers/net/ethernet/freescale/enetc/enetc_vf.c priv = netdev_priv(ndev); ndev 198 drivers/net/ethernet/freescale/enetc/enetc_vf.c err = register_netdev(ndev); ndev 202 drivers/net/ethernet/freescale/enetc/enetc_vf.c netif_carrier_off(ndev); ndev 204 drivers/net/ethernet/freescale/enetc/enetc_vf.c netif_info(priv, probe, ndev, "%s v%s\n", ndev 214 drivers/net/ethernet/freescale/enetc/enetc_vf.c si->ndev = NULL; ndev 215 drivers/net/ethernet/freescale/enetc/enetc_vf.c free_netdev(ndev); ndev 227 drivers/net/ethernet/freescale/enetc/enetc_vf.c priv = netdev_priv(si->ndev); ndev 228 drivers/net/ethernet/freescale/enetc/enetc_vf.c netif_info(priv, drv, si->ndev, "%s v%s remove\n", ndev 230 drivers/net/ethernet/freescale/enetc/enetc_vf.c unregister_netdev(si->ndev); ndev 236 drivers/net/ethernet/freescale/enetc/enetc_vf.c free_netdev(si->ndev); ndev 599 drivers/net/ethernet/freescale/fec.h void fec_ptp_start_cyclecounter(struct net_device *ndev); ndev 600 drivers/net/ethernet/freescale/fec.h int fec_ptp_set(struct net_device *ndev, struct ifreq *ifr); ndev 601 drivers/net/ethernet/freescale/fec.h int fec_ptp_get(struct net_device *ndev, struct ifreq *ifr); ndev 73 drivers/net/ethernet/freescale/fec_main.c static void set_multicast_list(struct net_device *ndev); ndev 74 drivers/net/ethernet/freescale/fec_main.c static void fec_enet_itr_coal_init(struct net_device *ndev); ndev 334 drivers/net/ethernet/freescale/fec_main.c static void fec_dump(struct net_device *ndev) ndev 336 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 341 drivers/net/ethernet/freescale/fec_main.c netdev_info(ndev, "TX ring dump\n"); ndev 367 drivers/net/ethernet/freescale/fec_main.c fec_enet_clear_csum(struct sk_buff *skb, struct net_device *ndev) ndev 386 drivers/net/ethernet/freescale/fec_main.c struct net_device *ndev) ndev 388 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 447 drivers/net/ethernet/freescale/fec_main.c netdev_err(ndev, "Tx DMA memory map failed\n"); ndev 472 drivers/net/ethernet/freescale/fec_main.c struct sk_buff *skb, struct net_device *ndev) ndev 474 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 489 drivers/net/ethernet/freescale/fec_main.c netdev_err(ndev, "NOT enough BD for SG!\n"); ndev 494 drivers/net/ethernet/freescale/fec_main.c if (fec_enet_clear_csum(skb, ndev)) { ndev 524 drivers/net/ethernet/freescale/fec_main.c netdev_err(ndev, "Tx DMA memory map failed\n"); ndev 529 drivers/net/ethernet/freescale/fec_main.c last_bdp = fec_enet_txq_submit_frag_skb(txq, skb, ndev); ndev 600 drivers/net/ethernet/freescale/fec_main.c struct net_device *ndev, ndev 604 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 628 drivers/net/ethernet/freescale/fec_main.c netdev_err(ndev, "Tx DMA memory map failed\n"); ndev 660 drivers/net/ethernet/freescale/fec_main.c struct sk_buff *skb, struct net_device *ndev, ndev 663 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 690 drivers/net/ethernet/freescale/fec_main.c netdev_err(ndev, "Tx DMA memory map failed\n"); ndev 714 drivers/net/ethernet/freescale/fec_main.c struct net_device *ndev) ndev 716 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 727 drivers/net/ethernet/freescale/fec_main.c netdev_err(ndev, "NOT enough BD for TSO!\n"); ndev 732 drivers/net/ethernet/freescale/fec_main.c if (fec_enet_clear_csum(skb, ndev)) { ndev 751 drivers/net/ethernet/freescale/fec_main.c ret = fec_enet_txq_put_hdr_tso(txq, skb, ndev, bdp, index); ndev 761 drivers/net/ethernet/freescale/fec_main.c ret = fec_enet_txq_put_data_tso(txq, skb, ndev, ndev 798 drivers/net/ethernet/freescale/fec_main.c fec_enet_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 800 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 809 drivers/net/ethernet/freescale/fec_main.c nq = netdev_get_tx_queue(ndev, queue); ndev 812 drivers/net/ethernet/freescale/fec_main.c ret = fec_enet_txq_submit_tso(txq, skb, ndev); ndev 814 drivers/net/ethernet/freescale/fec_main.c ret = fec_enet_txq_submit_skb(txq, skb, ndev); ndev 888 drivers/net/ethernet/freescale/fec_main.c static void fec_enet_active_rxring(struct net_device *ndev) ndev 890 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 897 drivers/net/ethernet/freescale/fec_main.c static void fec_enet_enable_ring(struct net_device *ndev) ndev 899 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 926 drivers/net/ethernet/freescale/fec_main.c static void fec_enet_reset_skb(struct net_device *ndev) ndev 928 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 950 drivers/net/ethernet/freescale/fec_main.c fec_restart(struct net_device *ndev) ndev 952 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 973 drivers/net/ethernet/freescale/fec_main.c memcpy(&temp_mac, ndev->dev_addr, ETH_ALEN); ndev 982 drivers/net/ethernet/freescale/fec_main.c fec_enet_bd_init(ndev); ndev 984 drivers/net/ethernet/freescale/fec_main.c fec_enet_enable_ring(ndev); ndev 987 drivers/net/ethernet/freescale/fec_main.c fec_enet_reset_skb(ndev); ndev 1037 drivers/net/ethernet/freescale/fec_main.c if (ndev->phydev) { ndev 1038 drivers/net/ethernet/freescale/fec_main.c if (ndev->phydev->speed == SPEED_1000) ndev 1040 drivers/net/ethernet/freescale/fec_main.c else if (ndev->phydev->speed == SPEED_100) ndev 1061 drivers/net/ethernet/freescale/fec_main.c if (ndev->phydev && ndev->phydev->speed == SPEED_10) ndev 1075 drivers/net/ethernet/freescale/fec_main.c ndev->phydev && ndev->phydev->pause)) { ndev 1094 drivers/net/ethernet/freescale/fec_main.c set_multicast_list(ndev); ndev 1117 drivers/net/ethernet/freescale/fec_main.c fec_enet_active_rxring(ndev); ndev 1120 drivers/net/ethernet/freescale/fec_main.c fec_ptp_start_cyclecounter(ndev); ndev 1129 drivers/net/ethernet/freescale/fec_main.c fec_enet_itr_coal_init(ndev); ndev 1152 drivers/net/ethernet/freescale/fec_main.c fec_stop(struct net_device *ndev) ndev 1154 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 1163 drivers/net/ethernet/freescale/fec_main.c netdev_err(ndev, "Graceful transmit stop did not complete!\n"); ndev 1197 drivers/net/ethernet/freescale/fec_main.c fec_timeout(struct net_device *ndev) ndev 1199 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 1201 drivers/net/ethernet/freescale/fec_main.c fec_dump(ndev); ndev 1203 drivers/net/ethernet/freescale/fec_main.c ndev->stats.tx_errors++; ndev 1212 drivers/net/ethernet/freescale/fec_main.c struct net_device *ndev = fep->netdev; ndev 1215 drivers/net/ethernet/freescale/fec_main.c if (netif_device_present(ndev) || netif_running(ndev)) { ndev 1217 drivers/net/ethernet/freescale/fec_main.c netif_tx_lock_bh(ndev); ndev 1218 drivers/net/ethernet/freescale/fec_main.c fec_restart(ndev); ndev 1219 drivers/net/ethernet/freescale/fec_main.c netif_tx_wake_all_queues(ndev); ndev 1220 drivers/net/ethernet/freescale/fec_main.c netif_tx_unlock_bh(ndev); ndev 1242 drivers/net/ethernet/freescale/fec_main.c fec_enet_tx_queue(struct net_device *ndev, u16 queue_id) ndev 1253 drivers/net/ethernet/freescale/fec_main.c fep = netdev_priv(ndev); ndev 1259 drivers/net/ethernet/freescale/fec_main.c nq = netdev_get_tx_queue(ndev, queue_id); ndev 1289 drivers/net/ethernet/freescale/fec_main.c ndev->stats.tx_errors++; ndev 1291 drivers/net/ethernet/freescale/fec_main.c ndev->stats.tx_heartbeat_errors++; ndev 1293 drivers/net/ethernet/freescale/fec_main.c ndev->stats.tx_window_errors++; ndev 1295 drivers/net/ethernet/freescale/fec_main.c ndev->stats.tx_aborted_errors++; ndev 1297 drivers/net/ethernet/freescale/fec_main.c ndev->stats.tx_fifo_errors++; ndev 1299 drivers/net/ethernet/freescale/fec_main.c ndev->stats.tx_carrier_errors++; ndev 1301 drivers/net/ethernet/freescale/fec_main.c ndev->stats.tx_packets++; ndev 1302 drivers/net/ethernet/freescale/fec_main.c ndev->stats.tx_bytes += skb->len; ndev 1318 drivers/net/ethernet/freescale/fec_main.c ndev->stats.collisions++; ndev 1348 drivers/net/ethernet/freescale/fec_main.c fec_enet_tx(struct net_device *ndev) ndev 1350 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 1355 drivers/net/ethernet/freescale/fec_main.c fec_enet_tx_queue(ndev, queue_id); ndev 1361 drivers/net/ethernet/freescale/fec_main.c fec_enet_new_rxbdp(struct net_device *ndev, struct bufdesc *bdp, struct sk_buff *skb) ndev 1363 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 1373 drivers/net/ethernet/freescale/fec_main.c netdev_err(ndev, "Rx DMA memory map failed\n"); ndev 1380 drivers/net/ethernet/freescale/fec_main.c static bool fec_enet_copybreak(struct net_device *ndev, struct sk_buff **skb, ndev 1383 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 1389 drivers/net/ethernet/freescale/fec_main.c new_skb = netdev_alloc_skb(ndev, length); ndev 1412 drivers/net/ethernet/freescale/fec_main.c fec_enet_rx_queue(struct net_device *ndev, int budget, u16 queue_id) ndev 1414 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 1454 drivers/net/ethernet/freescale/fec_main.c ndev->stats.rx_errors++; ndev 1457 drivers/net/ethernet/freescale/fec_main.c ndev->stats.rx_fifo_errors++; ndev 1463 drivers/net/ethernet/freescale/fec_main.c ndev->stats.rx_length_errors++; ndev 1465 drivers/net/ethernet/freescale/fec_main.c netdev_err(ndev, "rcv is not +last\n"); ndev 1468 drivers/net/ethernet/freescale/fec_main.c ndev->stats.rx_crc_errors++; ndev 1471 drivers/net/ethernet/freescale/fec_main.c ndev->stats.rx_frame_errors++; ndev 1476 drivers/net/ethernet/freescale/fec_main.c ndev->stats.rx_packets++; ndev 1478 drivers/net/ethernet/freescale/fec_main.c ndev->stats.rx_bytes += pkt_len; ndev 1487 drivers/net/ethernet/freescale/fec_main.c is_copybreak = fec_enet_copybreak(ndev, &skb, bdp, pkt_len - 4, ndev 1490 drivers/net/ethernet/freescale/fec_main.c skb_new = netdev_alloc_skb(ndev, FEC_ENET_RX_FRSIZE); ndev 1492 drivers/net/ethernet/freescale/fec_main.c ndev->stats.rx_dropped++; ndev 1520 drivers/net/ethernet/freescale/fec_main.c if ((ndev->features & NETIF_F_HW_VLAN_CTAG_RX) && ndev 1534 drivers/net/ethernet/freescale/fec_main.c skb->protocol = eth_type_trans(skb, ndev); ndev 1566 drivers/net/ethernet/freescale/fec_main.c fec_enet_new_rxbdp(ndev, bdp, skb_new); ndev 1603 drivers/net/ethernet/freescale/fec_main.c fec_enet_rx(struct net_device *ndev, int budget) ndev 1607 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 1612 drivers/net/ethernet/freescale/fec_main.c ret = fec_enet_rx_queue(ndev, ndev 1649 drivers/net/ethernet/freescale/fec_main.c struct net_device *ndev = dev_id; ndev 1650 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 1677 drivers/net/ethernet/freescale/fec_main.c struct net_device *ndev = napi->dev; ndev 1678 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 1681 drivers/net/ethernet/freescale/fec_main.c pkts = fec_enet_rx(ndev, budget); ndev 1683 drivers/net/ethernet/freescale/fec_main.c fec_enet_tx(ndev); ndev 1693 drivers/net/ethernet/freescale/fec_main.c static void fec_get_mac(struct net_device *ndev) ndev 1695 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 1749 drivers/net/ethernet/freescale/fec_main.c eth_hw_addr_random(ndev); ndev 1751 drivers/net/ethernet/freescale/fec_main.c ndev->dev_addr); ndev 1755 drivers/net/ethernet/freescale/fec_main.c memcpy(ndev->dev_addr, iap, ETH_ALEN); ndev 1759 drivers/net/ethernet/freescale/fec_main.c ndev->dev_addr[ETH_ALEN-1] = macaddr[ETH_ALEN-1] + fep->dev_id; ndev 1767 drivers/net/ethernet/freescale/fec_main.c static void fec_enet_adjust_link(struct net_device *ndev) ndev 1769 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 1770 drivers/net/ethernet/freescale/fec_main.c struct phy_device *phy_dev = ndev->phydev; ndev 1778 drivers/net/ethernet/freescale/fec_main.c if (!netif_running(ndev) || !netif_device_present(ndev)) { ndev 1799 drivers/net/ethernet/freescale/fec_main.c netif_tx_lock_bh(ndev); ndev 1800 drivers/net/ethernet/freescale/fec_main.c fec_restart(ndev); ndev 1801 drivers/net/ethernet/freescale/fec_main.c netif_tx_wake_all_queues(ndev); ndev 1802 drivers/net/ethernet/freescale/fec_main.c netif_tx_unlock_bh(ndev); ndev 1808 drivers/net/ethernet/freescale/fec_main.c netif_tx_lock_bh(ndev); ndev 1809 drivers/net/ethernet/freescale/fec_main.c fec_stop(ndev); ndev 1810 drivers/net/ethernet/freescale/fec_main.c netif_tx_unlock_bh(ndev); ndev 1948 drivers/net/ethernet/freescale/fec_main.c static int fec_enet_clk_enable(struct net_device *ndev, bool enable) ndev 1950 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 1974 drivers/net/ethernet/freescale/fec_main.c phy_reset_after_clk_enable(ndev->phydev); ndev 1998 drivers/net/ethernet/freescale/fec_main.c static int fec_enet_mii_probe(struct net_device *ndev) ndev 2000 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2008 drivers/net/ethernet/freescale/fec_main.c phy_dev = of_phy_connect(ndev, fep->phy_node, ndev 2012 drivers/net/ethernet/freescale/fec_main.c netdev_err(ndev, "Unable to connect to phy\n"); ndev 2027 drivers/net/ethernet/freescale/fec_main.c netdev_info(ndev, "no PHY, assuming direct connection to switch\n"); ndev 2034 drivers/net/ethernet/freescale/fec_main.c phy_dev = phy_connect(ndev, phy_name, &fec_enet_adjust_link, ndev 2039 drivers/net/ethernet/freescale/fec_main.c netdev_err(ndev, "could not attach to PHY\n"); ndev 2066 drivers/net/ethernet/freescale/fec_main.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 2067 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2177 drivers/net/ethernet/freescale/fec_main.c static void fec_enet_get_drvinfo(struct net_device *ndev, ndev 2180 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2185 drivers/net/ethernet/freescale/fec_main.c strlcpy(info->bus_info, dev_name(&ndev->dev), sizeof(info->bus_info)); ndev 2188 drivers/net/ethernet/freescale/fec_main.c static int fec_enet_get_regs_len(struct net_device *ndev) ndev 2190 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2250 drivers/net/ethernet/freescale/fec_main.c static void fec_enet_get_regs(struct net_device *ndev, ndev 2253 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2283 drivers/net/ethernet/freescale/fec_main.c static int fec_enet_get_ts_info(struct net_device *ndev, ndev 2286 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2308 drivers/net/ethernet/freescale/fec_main.c return ethtool_op_get_ts_info(ndev, info); ndev 2314 drivers/net/ethernet/freescale/fec_main.c static void fec_enet_get_pauseparam(struct net_device *ndev, ndev 2317 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2324 drivers/net/ethernet/freescale/fec_main.c static int fec_enet_set_pauseparam(struct net_device *ndev, ndev 2327 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2329 drivers/net/ethernet/freescale/fec_main.c if (!ndev->phydev) ndev 2333 drivers/net/ethernet/freescale/fec_main.c netdev_info(ndev, ndev 2344 drivers/net/ethernet/freescale/fec_main.c phy_set_sym_pause(ndev->phydev, pause->rx_pause, pause->tx_pause, ndev 2348 drivers/net/ethernet/freescale/fec_main.c if (netif_running(ndev)) ndev 2349 drivers/net/ethernet/freescale/fec_main.c fec_stop(ndev); ndev 2350 drivers/net/ethernet/freescale/fec_main.c phy_start_aneg(ndev->phydev); ndev 2352 drivers/net/ethernet/freescale/fec_main.c if (netif_running(ndev)) { ndev 2354 drivers/net/ethernet/freescale/fec_main.c netif_tx_lock_bh(ndev); ndev 2355 drivers/net/ethernet/freescale/fec_main.c fec_restart(ndev); ndev 2356 drivers/net/ethernet/freescale/fec_main.c netif_tx_wake_all_queues(ndev); ndev 2357 drivers/net/ethernet/freescale/fec_main.c netif_tx_unlock_bh(ndev); ndev 2505 drivers/net/ethernet/freescale/fec_main.c static int fec_enet_us_to_itr_clock(struct net_device *ndev, int us) ndev 2507 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2513 drivers/net/ethernet/freescale/fec_main.c static void fec_enet_itr_coal_set(struct net_device *ndev) ndev 2515 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2531 drivers/net/ethernet/freescale/fec_main.c rx_itr |= FEC_ITR_ICTT(fec_enet_us_to_itr_clock(ndev, fep->rx_time_itr)); ndev 2533 drivers/net/ethernet/freescale/fec_main.c tx_itr |= FEC_ITR_ICTT(fec_enet_us_to_itr_clock(ndev, fep->tx_time_itr)); ndev 2549 drivers/net/ethernet/freescale/fec_main.c fec_enet_get_coalesce(struct net_device *ndev, struct ethtool_coalesce *ec) ndev 2551 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2566 drivers/net/ethernet/freescale/fec_main.c fec_enet_set_coalesce(struct net_device *ndev, struct ethtool_coalesce *ec) ndev 2568 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2585 drivers/net/ethernet/freescale/fec_main.c cycle = fec_enet_us_to_itr_clock(ndev, ec->rx_coalesce_usecs); ndev 2591 drivers/net/ethernet/freescale/fec_main.c cycle = fec_enet_us_to_itr_clock(ndev, ec->tx_coalesce_usecs); ndev 2603 drivers/net/ethernet/freescale/fec_main.c fec_enet_itr_coal_set(ndev); ndev 2608 drivers/net/ethernet/freescale/fec_main.c static void fec_enet_itr_coal_init(struct net_device *ndev) ndev 2618 drivers/net/ethernet/freescale/fec_main.c fec_enet_set_coalesce(ndev, &ec); ndev 2660 drivers/net/ethernet/freescale/fec_main.c fec_enet_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) ndev 2662 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2673 drivers/net/ethernet/freescale/fec_main.c fec_enet_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) ndev 2675 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2683 drivers/net/ethernet/freescale/fec_main.c device_set_wakeup_enable(&ndev->dev, wol->wolopts & WAKE_MAGIC); ndev 2684 drivers/net/ethernet/freescale/fec_main.c if (device_may_wakeup(&ndev->dev)) { ndev 2721 drivers/net/ethernet/freescale/fec_main.c static int fec_enet_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd) ndev 2723 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2724 drivers/net/ethernet/freescale/fec_main.c struct phy_device *phydev = ndev->phydev; ndev 2726 drivers/net/ethernet/freescale/fec_main.c if (!netif_running(ndev)) ndev 2734 drivers/net/ethernet/freescale/fec_main.c return fec_ptp_set(ndev, rq); ndev 2736 drivers/net/ethernet/freescale/fec_main.c return fec_ptp_get(ndev, rq); ndev 2742 drivers/net/ethernet/freescale/fec_main.c static void fec_enet_free_buffers(struct net_device *ndev) ndev 2744 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2782 drivers/net/ethernet/freescale/fec_main.c static void fec_enet_free_queue(struct net_device *ndev) ndev 2784 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2803 drivers/net/ethernet/freescale/fec_main.c static int fec_enet_alloc_queue(struct net_device *ndev) ndev 2805 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2849 drivers/net/ethernet/freescale/fec_main.c fec_enet_free_queue(ndev); ndev 2854 drivers/net/ethernet/freescale/fec_main.c fec_enet_alloc_rxq_buffers(struct net_device *ndev, unsigned int queue) ndev 2856 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2865 drivers/net/ethernet/freescale/fec_main.c skb = netdev_alloc_skb(ndev, FEC_ENET_RX_FRSIZE); ndev 2869 drivers/net/ethernet/freescale/fec_main.c if (fec_enet_new_rxbdp(ndev, bdp, skb)) { ndev 2891 drivers/net/ethernet/freescale/fec_main.c fec_enet_free_buffers(ndev); ndev 2896 drivers/net/ethernet/freescale/fec_main.c fec_enet_alloc_txq_buffers(struct net_device *ndev, unsigned int queue) ndev 2898 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2928 drivers/net/ethernet/freescale/fec_main.c fec_enet_free_buffers(ndev); ndev 2932 drivers/net/ethernet/freescale/fec_main.c static int fec_enet_alloc_buffers(struct net_device *ndev) ndev 2934 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2938 drivers/net/ethernet/freescale/fec_main.c if (fec_enet_alloc_rxq_buffers(ndev, i)) ndev 2942 drivers/net/ethernet/freescale/fec_main.c if (fec_enet_alloc_txq_buffers(ndev, i)) ndev 2948 drivers/net/ethernet/freescale/fec_main.c fec_enet_open(struct net_device *ndev) ndev 2950 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 2959 drivers/net/ethernet/freescale/fec_main.c ret = fec_enet_clk_enable(ndev, true); ndev 2969 drivers/net/ethernet/freescale/fec_main.c if (ndev->phydev && ndev->phydev->drv) ndev 2978 drivers/net/ethernet/freescale/fec_main.c ret = fec_enet_alloc_buffers(ndev); ndev 2983 drivers/net/ethernet/freescale/fec_main.c fec_restart(ndev); ndev 2986 drivers/net/ethernet/freescale/fec_main.c ret = fec_enet_mii_probe(ndev); ndev 2994 drivers/net/ethernet/freescale/fec_main.c phy_reset_after_clk_enable(ndev->phydev); ndev 3000 drivers/net/ethernet/freescale/fec_main.c phy_start(ndev->phydev); ndev 3001 drivers/net/ethernet/freescale/fec_main.c netif_tx_start_all_queues(ndev); ndev 3003 drivers/net/ethernet/freescale/fec_main.c device_set_wakeup_enable(&ndev->dev, fep->wol_flag & ndev 3009 drivers/net/ethernet/freescale/fec_main.c fec_enet_free_buffers(ndev); ndev 3011 drivers/net/ethernet/freescale/fec_main.c fec_enet_clk_enable(ndev, false); ndev 3020 drivers/net/ethernet/freescale/fec_main.c fec_enet_close(struct net_device *ndev) ndev 3022 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 3024 drivers/net/ethernet/freescale/fec_main.c phy_stop(ndev->phydev); ndev 3026 drivers/net/ethernet/freescale/fec_main.c if (netif_device_present(ndev)) { ndev 3028 drivers/net/ethernet/freescale/fec_main.c netif_tx_disable(ndev); ndev 3029 drivers/net/ethernet/freescale/fec_main.c fec_stop(ndev); ndev 3032 drivers/net/ethernet/freescale/fec_main.c phy_disconnect(ndev->phydev); ndev 3037 drivers/net/ethernet/freescale/fec_main.c fec_enet_update_ethtool_stats(ndev); ndev 3039 drivers/net/ethernet/freescale/fec_main.c fec_enet_clk_enable(ndev, false); ndev 3044 drivers/net/ethernet/freescale/fec_main.c fec_enet_free_buffers(ndev); ndev 3061 drivers/net/ethernet/freescale/fec_main.c static void set_multicast_list(struct net_device *ndev) ndev 3063 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 3069 drivers/net/ethernet/freescale/fec_main.c if (ndev->flags & IFF_PROMISC) { ndev 3080 drivers/net/ethernet/freescale/fec_main.c if (ndev->flags & IFF_ALLMULTI) { ndev 3091 drivers/net/ethernet/freescale/fec_main.c netdev_for_each_mc_addr(ha, ndev) { ndev 3093 drivers/net/ethernet/freescale/fec_main.c crc = ether_crc_le(ndev->addr_len, ha->addr); ndev 3112 drivers/net/ethernet/freescale/fec_main.c fec_set_mac_address(struct net_device *ndev, void *p) ndev 3114 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 3120 drivers/net/ethernet/freescale/fec_main.c memcpy(ndev->dev_addr, addr->sa_data, ndev->addr_len); ndev 3128 drivers/net/ethernet/freescale/fec_main.c if (!netif_running(ndev)) ndev 3131 drivers/net/ethernet/freescale/fec_main.c writel(ndev->dev_addr[3] | (ndev->dev_addr[2] << 8) | ndev 3132 drivers/net/ethernet/freescale/fec_main.c (ndev->dev_addr[1] << 16) | (ndev->dev_addr[0] << 24), ndev 3134 drivers/net/ethernet/freescale/fec_main.c writel((ndev->dev_addr[5] << 16) | (ndev->dev_addr[4] << 24), ndev 3228 drivers/net/ethernet/freescale/fec_main.c static int fec_enet_init(struct net_device *ndev) ndev 3230 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 3256 drivers/net/ethernet/freescale/fec_main.c fec_enet_alloc_queue(ndev); ndev 3268 drivers/net/ethernet/freescale/fec_main.c fec_get_mac(ndev); ndev 3270 drivers/net/ethernet/freescale/fec_main.c fec_set_mac_address(ndev, NULL); ndev 3307 drivers/net/ethernet/freescale/fec_main.c ndev->watchdog_timeo = TX_TIMEOUT; ndev 3308 drivers/net/ethernet/freescale/fec_main.c ndev->netdev_ops = &fec_netdev_ops; ndev 3309 drivers/net/ethernet/freescale/fec_main.c ndev->ethtool_ops = &fec_enet_ethtool_ops; ndev 3312 drivers/net/ethernet/freescale/fec_main.c netif_napi_add(ndev, &fep->napi, fec_enet_rx_napi, NAPI_POLL_WEIGHT); ndev 3316 drivers/net/ethernet/freescale/fec_main.c ndev->features |= NETIF_F_HW_VLAN_CTAG_RX; ndev 3319 drivers/net/ethernet/freescale/fec_main.c ndev->gso_max_segs = FEC_MAX_TSO_SEGS; ndev 3322 drivers/net/ethernet/freescale/fec_main.c ndev->features |= (NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM ndev 3332 drivers/net/ethernet/freescale/fec_main.c ndev->hw_features = ndev->features; ndev 3334 drivers/net/ethernet/freescale/fec_main.c fec_restart(ndev); ndev 3337 drivers/net/ethernet/freescale/fec_main.c fec_enet_clear_ethtool_stats(ndev); ndev 3339 drivers/net/ethernet/freescale/fec_main.c fec_enet_update_ethtool_stats(ndev); ndev 3490 drivers/net/ethernet/freescale/fec_main.c struct net_device *ndev; ndev 3504 drivers/net/ethernet/freescale/fec_main.c ndev = alloc_etherdev_mqs(sizeof(struct fec_enet_private) + ndev 3506 drivers/net/ethernet/freescale/fec_main.c if (!ndev) ndev 3509 drivers/net/ethernet/freescale/fec_main.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 3512 drivers/net/ethernet/freescale/fec_main.c fep = netdev_priv(ndev); ndev 3521 drivers/net/ethernet/freescale/fec_main.c fep->netdev = ndev; ndev 3543 drivers/net/ethernet/freescale/fec_main.c platform_set_drvdata(pdev, ndev); ndev 3614 drivers/net/ethernet/freescale/fec_main.c ret = fec_enet_clk_enable(ndev, true); ndev 3655 drivers/net/ethernet/freescale/fec_main.c ret = fec_enet_init(ndev); ndev 3669 drivers/net/ethernet/freescale/fec_main.c 0, pdev->name, ndev); ndev 3682 drivers/net/ethernet/freescale/fec_main.c netif_carrier_off(ndev); ndev 3683 drivers/net/ethernet/freescale/fec_main.c fec_enet_clk_enable(ndev, false); ndev 3686 drivers/net/ethernet/freescale/fec_main.c ret = register_netdev(ndev); ndev 3690 drivers/net/ethernet/freescale/fec_main.c device_init_wakeup(&ndev->dev, fep->wol_flag & ndev 3694 drivers/net/ethernet/freescale/fec_main.c netdev_info(ndev, "registered PHC device %d\n", fep->dev_id); ndev 3720 drivers/net/ethernet/freescale/fec_main.c fec_enet_clk_enable(ndev, false); ndev 3729 drivers/net/ethernet/freescale/fec_main.c free_netdev(ndev); ndev 3737 drivers/net/ethernet/freescale/fec_main.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 3738 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 3748 drivers/net/ethernet/freescale/fec_main.c unregister_netdev(ndev); ndev 3756 drivers/net/ethernet/freescale/fec_main.c free_netdev(ndev); ndev 3768 drivers/net/ethernet/freescale/fec_main.c struct net_device *ndev = dev_get_drvdata(dev); ndev 3769 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 3772 drivers/net/ethernet/freescale/fec_main.c if (netif_running(ndev)) { ndev 3775 drivers/net/ethernet/freescale/fec_main.c phy_stop(ndev->phydev); ndev 3777 drivers/net/ethernet/freescale/fec_main.c netif_tx_lock_bh(ndev); ndev 3778 drivers/net/ethernet/freescale/fec_main.c netif_device_detach(ndev); ndev 3779 drivers/net/ethernet/freescale/fec_main.c netif_tx_unlock_bh(ndev); ndev 3780 drivers/net/ethernet/freescale/fec_main.c fec_stop(ndev); ndev 3781 drivers/net/ethernet/freescale/fec_main.c fec_enet_clk_enable(ndev, false); ndev 3801 drivers/net/ethernet/freescale/fec_main.c struct net_device *ndev = dev_get_drvdata(dev); ndev 3802 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 3813 drivers/net/ethernet/freescale/fec_main.c if (netif_running(ndev)) { ndev 3814 drivers/net/ethernet/freescale/fec_main.c ret = fec_enet_clk_enable(ndev, true); ndev 3829 drivers/net/ethernet/freescale/fec_main.c fec_restart(ndev); ndev 3830 drivers/net/ethernet/freescale/fec_main.c netif_tx_lock_bh(ndev); ndev 3831 drivers/net/ethernet/freescale/fec_main.c netif_device_attach(ndev); ndev 3832 drivers/net/ethernet/freescale/fec_main.c netif_tx_unlock_bh(ndev); ndev 3834 drivers/net/ethernet/freescale/fec_main.c phy_start(ndev->phydev); ndev 3848 drivers/net/ethernet/freescale/fec_main.c struct net_device *ndev = dev_get_drvdata(dev); ndev 3849 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 3859 drivers/net/ethernet/freescale/fec_main.c struct net_device *ndev = dev_get_drvdata(dev); ndev 3860 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 55 drivers/net/ethernet/freescale/fec_mpc52xx.c struct net_device *ndev; ndev 221 drivers/net/ethernet/freescale/fec_mpc52xx.c phydev = of_phy_connect(priv->ndev, priv->phy_node, ndev 820 drivers/net/ethernet/freescale/fec_mpc52xx.c struct net_device *ndev; ndev 832 drivers/net/ethernet/freescale/fec_mpc52xx.c ndev = alloc_etherdev(sizeof(struct mpc52xx_fec_priv)); ndev 833 drivers/net/ethernet/freescale/fec_mpc52xx.c if (!ndev) ndev 836 drivers/net/ethernet/freescale/fec_mpc52xx.c priv = netdev_priv(ndev); ndev 837 drivers/net/ethernet/freescale/fec_mpc52xx.c priv->ndev = ndev; ndev 860 drivers/net/ethernet/freescale/fec_mpc52xx.c ndev->netdev_ops = &mpc52xx_fec_netdev_ops; ndev 861 drivers/net/ethernet/freescale/fec_mpc52xx.c ndev->ethtool_ops = &mpc52xx_fec_ethtool_ops; ndev 862 drivers/net/ethernet/freescale/fec_mpc52xx.c ndev->watchdog_timeo = FEC_WATCHDOG_TIMEOUT; ndev 863 drivers/net/ethernet/freescale/fec_mpc52xx.c ndev->base_addr = mem.start; ndev 864 drivers/net/ethernet/freescale/fec_mpc52xx.c SET_NETDEV_DEV(ndev, &op->dev); ndev 877 drivers/net/ethernet/freescale/fec_mpc52xx.c rx_fifo = ndev->base_addr + offsetof(struct mpc52xx_fec, rfifo_data); ndev 878 drivers/net/ethernet/freescale/fec_mpc52xx.c tx_fifo = ndev->base_addr + offsetof(struct mpc52xx_fec, tfifo_data); ndev 891 drivers/net/ethernet/freescale/fec_mpc52xx.c ndev->irq = irq_of_parse_and_map(np, 0); ndev 906 drivers/net/ethernet/freescale/fec_mpc52xx.c ether_addr_copy(ndev->dev_addr, mac_addr); ndev 914 drivers/net/ethernet/freescale/fec_mpc52xx.c *(u32 *)(&ndev->dev_addr[0]) = in_be32(&fec->paddr1); ndev 915 drivers/net/ethernet/freescale/fec_mpc52xx.c *(u16 *)(&ndev->dev_addr[4]) = in_be32(&fec->paddr2) >> 16; ndev 921 drivers/net/ethernet/freescale/fec_mpc52xx.c if (!is_valid_ether_addr(ndev->dev_addr)) { ndev 922 drivers/net/ethernet/freescale/fec_mpc52xx.c eth_hw_addr_random(ndev); ndev 923 drivers/net/ethernet/freescale/fec_mpc52xx.c dev_warn(&ndev->dev, "using random MAC address %pM\n", ndev 924 drivers/net/ethernet/freescale/fec_mpc52xx.c ndev->dev_addr); ndev 951 drivers/net/ethernet/freescale/fec_mpc52xx.c dev_info(&ndev->dev, "using 7-wire PHY mode\n"); ndev 955 drivers/net/ethernet/freescale/fec_mpc52xx.c mpc52xx_fec_hw_init(ndev); ndev 956 drivers/net/ethernet/freescale/fec_mpc52xx.c mpc52xx_fec_reset_stats(ndev); ndev 958 drivers/net/ethernet/freescale/fec_mpc52xx.c rv = register_netdev(ndev); ndev 963 drivers/net/ethernet/freescale/fec_mpc52xx.c platform_set_drvdata(op, ndev); ndev 964 drivers/net/ethernet/freescale/fec_mpc52xx.c netdev_info(ndev, "%pOF MAC %pM\n", ndev 965 drivers/net/ethernet/freescale/fec_mpc52xx.c op->dev.of_node, ndev->dev_addr); ndev 971 drivers/net/ethernet/freescale/fec_mpc52xx.c irq_dispose_mapping(ndev->irq); ndev 981 drivers/net/ethernet/freescale/fec_mpc52xx.c free_netdev(ndev); ndev 989 drivers/net/ethernet/freescale/fec_mpc52xx.c struct net_device *ndev; ndev 992 drivers/net/ethernet/freescale/fec_mpc52xx.c ndev = platform_get_drvdata(op); ndev 993 drivers/net/ethernet/freescale/fec_mpc52xx.c priv = netdev_priv(ndev); ndev 995 drivers/net/ethernet/freescale/fec_mpc52xx.c unregister_netdev(ndev); ndev 1000 drivers/net/ethernet/freescale/fec_mpc52xx.c irq_dispose_mapping(ndev->irq); ndev 1007 drivers/net/ethernet/freescale/fec_mpc52xx.c release_mem_region(ndev->base_addr, sizeof(struct mpc52xx_fec)); ndev 1009 drivers/net/ethernet/freescale/fec_mpc52xx.c free_netdev(ndev); ndev 245 drivers/net/ethernet/freescale/fec_ptp.c void fec_ptp_start_cyclecounter(struct net_device *ndev) ndev 247 drivers/net/ethernet/freescale/fec_ptp.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 455 drivers/net/ethernet/freescale/fec_ptp.c int fec_ptp_set(struct net_device *ndev, struct ifreq *ifr) ndev 457 drivers/net/ethernet/freescale/fec_ptp.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 496 drivers/net/ethernet/freescale/fec_ptp.c int fec_ptp_get(struct net_device *ndev, struct ifreq *ifr) ndev 498 drivers/net/ethernet/freescale/fec_ptp.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 535 drivers/net/ethernet/freescale/fec_ptp.c struct net_device *ndev = dev_id; ndev 536 drivers/net/ethernet/freescale/fec_ptp.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 574 drivers/net/ethernet/freescale/fec_ptp.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 575 drivers/net/ethernet/freescale/fec_ptp.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 599 drivers/net/ethernet/freescale/fec_ptp.c fec_ptp_start_cyclecounter(ndev); ndev 611 drivers/net/ethernet/freescale/fec_ptp.c 0, pdev->name, ndev); ndev 628 drivers/net/ethernet/freescale/fec_ptp.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 629 drivers/net/ethernet/freescale/fec_ptp.c struct fec_enet_private *fep = netdev_priv(ndev); ndev 89 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c struct net_device *dev = fep->ndev; ndev 621 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c struct net_device *dev = fep->ndev; ndev 737 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c fs_init_bds(fep->ndev); ndev 922 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c struct net_device *ndev; ndev 989 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c ndev = alloc_etherdev(privsize); ndev 990 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c if (!ndev) { ndev 995 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c SET_NETDEV_DEV(ndev, &ofdev->dev); ndev 996 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c platform_set_drvdata(ofdev, ndev); ndev 998 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c fep = netdev_priv(ndev); ndev 1000 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c fep->ndev = ndev; ndev 1004 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c ret = fep->ops->setup_data(ndev); ndev 1018 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c ether_addr_copy(ndev->dev_addr, mac_addr); ndev 1020 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c ret = fep->ops->allocate_bd(ndev); ndev 1030 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c ndev->netdev_ops = &fs_enet_netdev_ops; ndev 1031 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c ndev->watchdog_timeo = 2 * HZ; ndev 1033 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c netif_napi_add(ndev, &fep->napi, fs_enet_napi, fpi->napi_weight); ndev 1035 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c ndev->ethtool_ops = &fs_ethtool_ops; ndev 1037 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c netif_carrier_off(ndev); ndev 1039 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c ndev->features |= NETIF_F_SG; ndev 1041 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c ret = register_netdev(ndev); ndev 1045 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c pr_info("%s: fs_enet: %pM\n", ndev->name, ndev->dev_addr); ndev 1050 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c fep->ops->free_bd(ndev); ndev 1052 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c fep->ops->cleanup_data(ndev); ndev 1054 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c free_netdev(ndev); ndev 1069 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c struct net_device *ndev = platform_get_drvdata(ofdev); ndev 1070 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c struct fs_enet_private *fep = netdev_priv(ndev); ndev 1072 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c unregister_netdev(ndev); ndev 1074 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c fep->ops->free_bd(ndev); ndev 1075 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c fep->ops->cleanup_data(ndev); ndev 1082 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c free_netdev(ndev); ndev 124 drivers/net/ethernet/freescale/fs_enet/fs_enet.h struct net_device *ndev; ndev 166 drivers/net/ethernet/freescale/gianfar.c if (priv->ndev->features & (NETIF_F_RXCSUM | NETIF_F_HW_VLAN_CTAG_RX)) ndev 188 drivers/net/ethernet/freescale/gianfar.c if (priv->ndev->flags & IFF_PROMISC) ndev 191 drivers/net/ethernet/freescale/gianfar.c if (priv->ndev->features & NETIF_F_RXCSUM) ndev 206 drivers/net/ethernet/freescale/gianfar.c if (priv->ndev->features & NETIF_F_HW_VLAN_CTAG_RX) ndev 225 drivers/net/ethernet/freescale/gianfar.c if (priv->ndev->features & NETIF_F_IP_CSUM) ndev 236 drivers/net/ethernet/freescale/gianfar.c if (priv->ndev->features & NETIF_F_HW_VLAN_CTAG_TX) ndev 411 drivers/net/ethernet/freescale/gianfar.c priv->tx_queue[i]->dev = priv->ndev; ndev 428 drivers/net/ethernet/freescale/gianfar.c priv->rx_queue[i]->ndev = priv->ndev; ndev 468 drivers/net/ethernet/freescale/gianfar.c free_netdev(priv->ndev); ndev 716 drivers/net/ethernet/freescale/gianfar.c priv->ndev = dev; ndev 1232 drivers/net/ethernet/freescale/gianfar.c netif_trans_update(priv->ndev); /* prevent tx timeout */ ndev 1260 drivers/net/ethernet/freescale/gianfar.c struct gfar_private *priv = netdev_priv(rx_queue->ndev); ndev 1263 drivers/net/ethernet/freescale/gianfar.c netdev_err(rx_queue->ndev, "Can't alloc RX buffers\n"); ndev 1306 drivers/net/ethernet/freescale/gianfar.c static void gfar_init_bds(struct net_device *ndev) ndev 1308 drivers/net/ethernet/freescale/gianfar.c struct gfar_private *priv = netdev_priv(ndev); ndev 1357 drivers/net/ethernet/freescale/gianfar.c static int gfar_alloc_skb_resources(struct net_device *ndev) ndev 1362 drivers/net/ethernet/freescale/gianfar.c struct gfar_private *priv = netdev_priv(ndev); ndev 1389 drivers/net/ethernet/freescale/gianfar.c tx_queue->dev = ndev; ndev 1400 drivers/net/ethernet/freescale/gianfar.c rx_queue->ndev = ndev; ndev 1429 drivers/net/ethernet/freescale/gianfar.c gfar_init_bds(ndev); ndev 1439 drivers/net/ethernet/freescale/gianfar.c int startup_gfar(struct net_device *ndev) ndev 1441 drivers/net/ethernet/freescale/gianfar.c struct gfar_private *priv = netdev_priv(ndev); ndev 1446 drivers/net/ethernet/freescale/gianfar.c err = gfar_alloc_skb_resources(ndev); ndev 1464 drivers/net/ethernet/freescale/gianfar.c phy_start(ndev->phydev); ndev 1468 drivers/net/ethernet/freescale/gianfar.c netif_tx_wake_all_queues(ndev); ndev 1475 drivers/net/ethernet/freescale/gianfar.c struct net_device *ndev = priv->ndev; ndev 1476 drivers/net/ethernet/freescale/gianfar.c struct phy_device *phydev = ndev->phydev; ndev 1511 drivers/net/ethernet/freescale/gianfar.c struct net_device *ndev = priv->ndev; ndev 1512 drivers/net/ethernet/freescale/gianfar.c struct phy_device *phydev = ndev->phydev; ndev 1556 drivers/net/ethernet/freescale/gianfar.c netif_warn(priv, link, priv->ndev, ndev 2070 drivers/net/ethernet/freescale/gianfar.c static void reset_gfar(struct net_device *ndev) ndev 2072 drivers/net/ethernet/freescale/gianfar.c struct gfar_private *priv = netdev_priv(ndev); ndev 2077 drivers/net/ethernet/freescale/gianfar.c stop_gfar(ndev); ndev 2078 drivers/net/ethernet/freescale/gianfar.c startup_gfar(ndev); ndev 2092 drivers/net/ethernet/freescale/gianfar.c reset_gfar(priv->ndev); ndev 2284 drivers/net/ethernet/freescale/gianfar.c netif_wake_subqueue(priv->ndev, tqi); ndev 2293 drivers/net/ethernet/freescale/gianfar.c static void count_errors(u32 lstatus, struct net_device *ndev) ndev 2295 drivers/net/ethernet/freescale/gianfar.c struct gfar_private *priv = netdev_priv(ndev); ndev 2296 drivers/net/ethernet/freescale/gianfar.c struct net_device_stats *stats = &ndev->stats; ndev 2486 drivers/net/ethernet/freescale/gianfar.c static void gfar_process_frame(struct net_device *ndev, struct sk_buff *skb) ndev 2488 drivers/net/ethernet/freescale/gianfar.c struct gfar_private *priv = netdev_priv(ndev); ndev 2515 drivers/net/ethernet/freescale/gianfar.c if (ndev->features & NETIF_F_RXCSUM) ndev 2522 drivers/net/ethernet/freescale/gianfar.c if (ndev->features & NETIF_F_HW_VLAN_CTAG_RX && ndev 2535 drivers/net/ethernet/freescale/gianfar.c struct net_device *ndev = rx_queue->ndev; ndev 2536 drivers/net/ethernet/freescale/gianfar.c struct gfar_private *priv = netdev_priv(ndev); ndev 2580 drivers/net/ethernet/freescale/gianfar.c count_errors(lstatus, ndev); ndev 2589 drivers/net/ethernet/freescale/gianfar.c gfar_process_frame(ndev, skb); ndev 2597 drivers/net/ethernet/freescale/gianfar.c skb->protocol = eth_type_trans(skb, ndev); ndev 2789 drivers/net/ethernet/freescale/gianfar.c struct net_device *dev = priv->ndev; ndev 2921 drivers/net/ethernet/freescale/gianfar.c struct net_device *dev = priv->ndev; ndev 3211 drivers/net/ethernet/freescale/gianfar.c gfar_clear_exact_match(priv->ndev); ndev 3217 drivers/net/ethernet/freescale/gianfar.c gfar_set_mac_address(priv->ndev); ndev 3219 drivers/net/ethernet/freescale/gianfar.c gfar_set_multi(priv->ndev); ndev 3315 drivers/net/ethernet/freescale/gianfar.c priv->ndev = dev; ndev 3479 drivers/net/ethernet/freescale/gianfar.c unregister_netdev(priv->ndev); ndev 3530 drivers/net/ethernet/freescale/gianfar.c struct net_device *ndev = priv->ndev; ndev 3533 drivers/net/ethernet/freescale/gianfar.c u32 dest_mac_addr = (ndev->dev_addr[0] << 16) | ndev 3534 drivers/net/ethernet/freescale/gianfar.c (ndev->dev_addr[1] << 8) | ndev 3535 drivers/net/ethernet/freescale/gianfar.c ndev->dev_addr[2]; ndev 3542 drivers/net/ethernet/freescale/gianfar.c dest_mac_addr = (ndev->dev_addr[3] << 16) | ndev 3543 drivers/net/ethernet/freescale/gianfar.c (ndev->dev_addr[4] << 8) | ndev 3544 drivers/net/ethernet/freescale/gianfar.c ndev->dev_addr[5]; ndev 3606 drivers/net/ethernet/freescale/gianfar.c struct net_device *ndev = priv->ndev; ndev 3611 drivers/net/ethernet/freescale/gianfar.c if (!netif_running(ndev)) ndev 3615 drivers/net/ethernet/freescale/gianfar.c netif_tx_lock(ndev); ndev 3616 drivers/net/ethernet/freescale/gianfar.c netif_device_detach(ndev); ndev 3617 drivers/net/ethernet/freescale/gianfar.c netif_tx_unlock(ndev); ndev 3640 drivers/net/ethernet/freescale/gianfar.c phy_stop(ndev->phydev); ndev 3649 drivers/net/ethernet/freescale/gianfar.c struct net_device *ndev = priv->ndev; ndev 3654 drivers/net/ethernet/freescale/gianfar.c if (!netif_running(ndev)) ndev 3669 drivers/net/ethernet/freescale/gianfar.c phy_start(ndev->phydev); ndev 3674 drivers/net/ethernet/freescale/gianfar.c netif_device_attach(ndev); ndev 3683 drivers/net/ethernet/freescale/gianfar.c struct net_device *ndev = priv->ndev; ndev 3685 drivers/net/ethernet/freescale/gianfar.c if (!netif_running(ndev)) { ndev 3686 drivers/net/ethernet/freescale/gianfar.c netif_device_attach(ndev); ndev 3691 drivers/net/ethernet/freescale/gianfar.c gfar_init_bds(ndev); ndev 3703 drivers/net/ethernet/freescale/gianfar.c if (ndev->phydev) ndev 3704 drivers/net/ethernet/freescale/gianfar.c phy_start(ndev->phydev); ndev 3706 drivers/net/ethernet/freescale/gianfar.c netif_device_attach(ndev); ndev 1010 drivers/net/ethernet/freescale/gianfar.h struct net_device *ndev; ndev 1091 drivers/net/ethernet/freescale/gianfar.h struct net_device *ndev; ndev 197 drivers/net/ethernet/freescale/gianfar_ethtool.c struct net_device *ndev = priv->ndev; ndev 198 drivers/net/ethernet/freescale/gianfar_ethtool.c struct phy_device *phydev = ndev->phydev; ndev 224 drivers/net/ethernet/freescale/gianfar_ethtool.c struct net_device *ndev = priv->ndev; ndev 225 drivers/net/ethernet/freescale/gianfar_ethtool.c struct phy_device *phydev = ndev->phydev; ndev 736 drivers/net/ethernet/freescale/gianfar_ethtool.c netdev_err(priv->ndev, ndev 753 drivers/net/ethernet/freescale/gianfar_ethtool.c netdev_err(priv->ndev, ndev 824 drivers/net/ethernet/freescale/gianfar_ethtool.c netdev_notice(priv->ndev, "Interface in FIFO mode\n"); ndev 828 drivers/net/ethernet/freescale/gianfar_ethtool.c netdev_info(priv->ndev, ndev 831 drivers/net/ethernet/freescale/gianfar_ethtool.c netdev_warn(priv->ndev, ndev 841 drivers/net/ethernet/freescale/gianfar_ethtool.c netdev_info(priv->ndev, ndev 844 drivers/net/ethernet/freescale/gianfar_ethtool.c netdev_warn(priv->ndev, ndev 1232 drivers/net/ethernet/freescale/gianfar_ethtool.c netdev_warn(priv->ndev, ndev 1235 drivers/net/ethernet/freescale/gianfar_ethtool.c netdev_warn(priv->ndev, ndev 1240 drivers/net/ethernet/freescale/gianfar_ethtool.c netdev_warn(priv->ndev, ndev 1263 drivers/net/ethernet/freescale/gianfar_ethtool.c netdev_err(priv->ndev, ndev 1268 drivers/net/ethernet/freescale/gianfar_ethtool.c netdev_err(priv->ndev, ndev 1277 drivers/net/ethernet/freescale/gianfar_ethtool.c netdev_err(priv->ndev, "Rule not added: No free space!\n"); ndev 1328 drivers/net/ethernet/freescale/gianfar_ethtool.c netdev_err(priv->ndev, ndev 211 drivers/net/ethernet/freescale/ucc_geth.c skb = netdev_alloc_skb(ugeth->ndev, ndev 1553 drivers/net/ethernet/freescale/ucc_geth.c netif_tx_stop_all_queues(ugeth->ndev); ndev 1568 drivers/net/ethernet/freescale/ucc_geth.c netif_tx_wake_all_queues(ugeth->ndev); ndev 1569 drivers/net/ethernet/freescale/ucc_geth.c __netdev_watchdog_up(ugeth->ndev); ndev 1879 drivers/net/ethernet/freescale/ucc_geth.c netdev_reset_queue(ugeth->ndev); ndev 3164 drivers/net/ethernet/freescale/ucc_geth.c dev = ugeth->ndev; ndev 3197 drivers/net/ethernet/freescale/ucc_geth.c skb->protocol = eth_type_trans(skb, ugeth->ndev); ndev 3292 drivers/net/ethernet/freescale/ucc_geth.c ucc_geth_tx(ugeth->ndev, i); ndev 3397 drivers/net/ethernet/freescale/ucc_geth.c struct net_device *dev = ugeth->ndev; ndev 3506 drivers/net/ethernet/freescale/ucc_geth.c free_irq(ugeth->ug_info->uf_info.irq, ugeth->ndev); ndev 3521 drivers/net/ethernet/freescale/ucc_geth.c dev = ugeth->ndev; ndev 3561 drivers/net/ethernet/freescale/ucc_geth.c struct net_device *ndev = platform_get_drvdata(ofdev); ndev 3562 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = netdev_priv(ndev); ndev 3564 drivers/net/ethernet/freescale/ucc_geth.c if (!netif_running(ndev)) ndev 3567 drivers/net/ethernet/freescale/ucc_geth.c netif_device_detach(ndev); ndev 3589 drivers/net/ethernet/freescale/ucc_geth.c struct net_device *ndev = platform_get_drvdata(ofdev); ndev 3590 drivers/net/ethernet/freescale/ucc_geth.c struct ucc_geth_private *ugeth = netdev_priv(ndev); ndev 3593 drivers/net/ethernet/freescale/ucc_geth.c if (!netif_running(ndev)) ndev 3612 drivers/net/ethernet/freescale/ucc_geth.c netdev_err(ndev, "Cannot initialize MAC, aborting\n"); ndev 3625 drivers/net/ethernet/freescale/ucc_geth.c netif_device_attach(ndev); ndev 3915 drivers/net/ethernet/freescale/ucc_geth.c ugeth->ndev = dev; ndev 1155 drivers/net/ethernet/freescale/ucc_geth.h struct net_device *ndev; ndev 224 drivers/net/ethernet/hisilicon/hip04_eth.c struct net_device *ndev; ndev 256 drivers/net/ethernet/hisilicon/hip04_eth.c static void hip04_config_port(struct net_device *ndev, u32 speed, u32 duplex) ndev 258 drivers/net/ethernet/hisilicon/hip04_eth.c struct hip04_priv *priv = netdev_priv(ndev); ndev 280 drivers/net/ethernet/hisilicon/hip04_eth.c netdev_warn(ndev, "not supported mode\n"); ndev 370 drivers/net/ethernet/hisilicon/hip04_eth.c static void hip04_mac_enable(struct net_device *ndev) ndev 372 drivers/net/ethernet/hisilicon/hip04_eth.c struct hip04_priv *priv = netdev_priv(ndev); ndev 393 drivers/net/ethernet/hisilicon/hip04_eth.c static void hip04_mac_disable(struct net_device *ndev) ndev 395 drivers/net/ethernet/hisilicon/hip04_eth.c struct hip04_priv *priv = netdev_priv(ndev); ndev 429 drivers/net/ethernet/hisilicon/hip04_eth.c static void hip04_update_mac_address(struct net_device *ndev) ndev 431 drivers/net/ethernet/hisilicon/hip04_eth.c struct hip04_priv *priv = netdev_priv(ndev); ndev 433 drivers/net/ethernet/hisilicon/hip04_eth.c writel_relaxed(((ndev->dev_addr[0] << 8) | (ndev->dev_addr[1])), ndev 435 drivers/net/ethernet/hisilicon/hip04_eth.c writel_relaxed(((ndev->dev_addr[2] << 24) | (ndev->dev_addr[3] << 16) | ndev 436 drivers/net/ethernet/hisilicon/hip04_eth.c (ndev->dev_addr[4] << 8) | (ndev->dev_addr[5])), ndev 440 drivers/net/ethernet/hisilicon/hip04_eth.c static int hip04_set_mac_address(struct net_device *ndev, void *addr) ndev 442 drivers/net/ethernet/hisilicon/hip04_eth.c eth_mac_addr(ndev, addr); ndev 443 drivers/net/ethernet/hisilicon/hip04_eth.c hip04_update_mac_address(ndev); ndev 447 drivers/net/ethernet/hisilicon/hip04_eth.c static int hip04_tx_reclaim(struct net_device *ndev, bool force) ndev 449 drivers/net/ethernet/hisilicon/hip04_eth.c struct hip04_priv *priv = netdev_priv(ndev); ndev 488 drivers/net/ethernet/hisilicon/hip04_eth.c netdev_completed_queue(ndev, pkts_compl, bytes_compl); ndev 490 drivers/net/ethernet/hisilicon/hip04_eth.c if (unlikely(netif_queue_stopped(ndev)) && (count < (TX_DESC_NUM - 1))) ndev 491 drivers/net/ethernet/hisilicon/hip04_eth.c netif_wake_queue(ndev); ndev 506 drivers/net/ethernet/hisilicon/hip04_eth.c hip04_mac_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 508 drivers/net/ethernet/hisilicon/hip04_eth.c struct hip04_priv *priv = netdev_priv(ndev); ndev 509 drivers/net/ethernet/hisilicon/hip04_eth.c struct net_device_stats *stats = &ndev->stats; ndev 517 drivers/net/ethernet/hisilicon/hip04_eth.c netif_stop_queue(ndev); ndev 547 drivers/net/ethernet/hisilicon/hip04_eth.c netdev_sent_queue(ndev, skb->len); ndev 577 drivers/net/ethernet/hisilicon/hip04_eth.c struct net_device *ndev = priv->ndev; ndev 578 drivers/net/ethernet/hisilicon/hip04_eth.c struct net_device_stats *stats = &ndev->stats; ndev 590 drivers/net/ethernet/hisilicon/hip04_eth.c tx_remaining = hip04_tx_reclaim(ndev, false); ndev 618 drivers/net/ethernet/hisilicon/hip04_eth.c skb->protocol = eth_type_trans(skb, ndev); ndev 663 drivers/net/ethernet/hisilicon/hip04_eth.c struct net_device *ndev = (struct net_device *)dev_id; ndev 664 drivers/net/ethernet/hisilicon/hip04_eth.c struct hip04_priv *priv = netdev_priv(ndev); ndev 665 drivers/net/ethernet/hisilicon/hip04_eth.c struct net_device_stats *stats = &ndev->stats; ndev 677 drivers/net/ethernet/hisilicon/hip04_eth.c netdev_err(ndev, "rx drop\n"); ndev 681 drivers/net/ethernet/hisilicon/hip04_eth.c netdev_err(ndev, "tx drop\n"); ndev 712 drivers/net/ethernet/hisilicon/hip04_eth.c static void hip04_adjust_link(struct net_device *ndev) ndev 714 drivers/net/ethernet/hisilicon/hip04_eth.c struct hip04_priv *priv = netdev_priv(ndev); ndev 718 drivers/net/ethernet/hisilicon/hip04_eth.c hip04_config_port(ndev, phy->speed, phy->duplex); ndev 723 drivers/net/ethernet/hisilicon/hip04_eth.c static int hip04_mac_open(struct net_device *ndev) ndev 725 drivers/net/ethernet/hisilicon/hip04_eth.c struct hip04_priv *priv = netdev_priv(ndev); ndev 749 drivers/net/ethernet/hisilicon/hip04_eth.c netdev_reset_queue(ndev); ndev 750 drivers/net/ethernet/hisilicon/hip04_eth.c netif_start_queue(ndev); ndev 751 drivers/net/ethernet/hisilicon/hip04_eth.c hip04_mac_enable(ndev); ndev 757 drivers/net/ethernet/hisilicon/hip04_eth.c static int hip04_mac_stop(struct net_device *ndev) ndev 759 drivers/net/ethernet/hisilicon/hip04_eth.c struct hip04_priv *priv = netdev_priv(ndev); ndev 763 drivers/net/ethernet/hisilicon/hip04_eth.c netif_stop_queue(ndev); ndev 764 drivers/net/ethernet/hisilicon/hip04_eth.c hip04_mac_disable(ndev); ndev 765 drivers/net/ethernet/hisilicon/hip04_eth.c hip04_tx_reclaim(ndev, true); ndev 782 drivers/net/ethernet/hisilicon/hip04_eth.c static void hip04_timeout(struct net_device *ndev) ndev 784 drivers/net/ethernet/hisilicon/hip04_eth.c struct hip04_priv *priv = netdev_priv(ndev); ndev 794 drivers/net/ethernet/hisilicon/hip04_eth.c hip04_mac_stop(priv->ndev); ndev 795 drivers/net/ethernet/hisilicon/hip04_eth.c hip04_mac_open(priv->ndev); ndev 862 drivers/net/ethernet/hisilicon/hip04_eth.c static int hip04_alloc_ring(struct net_device *ndev, struct device *d) ndev 864 drivers/net/ethernet/hisilicon/hip04_eth.c struct hip04_priv *priv = netdev_priv(ndev); ndev 884 drivers/net/ethernet/hisilicon/hip04_eth.c static void hip04_free_ring(struct net_device *ndev, struct device *d) ndev 886 drivers/net/ethernet/hisilicon/hip04_eth.c struct hip04_priv *priv = netdev_priv(ndev); ndev 906 drivers/net/ethernet/hisilicon/hip04_eth.c struct net_device *ndev; ndev 911 drivers/net/ethernet/hisilicon/hip04_eth.c ndev = alloc_etherdev(sizeof(struct hip04_priv)); ndev 912 drivers/net/ethernet/hisilicon/hip04_eth.c if (!ndev) ndev 915 drivers/net/ethernet/hisilicon/hip04_eth.c priv = netdev_priv(ndev); ndev 917 drivers/net/ethernet/hisilicon/hip04_eth.c priv->ndev = ndev; ndev 918 drivers/net/ethernet/hisilicon/hip04_eth.c platform_set_drvdata(pdev, ndev); ndev 919 drivers/net/ethernet/hisilicon/hip04_eth.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 978 drivers/net/ethernet/hisilicon/hip04_eth.c 0, pdev->name, ndev); ndev 980 drivers/net/ethernet/hisilicon/hip04_eth.c netdev_err(ndev, "devm_request_irq failed\n"); ndev 986 drivers/net/ethernet/hisilicon/hip04_eth.c priv->phy = of_phy_connect(ndev, priv->phy_node, ndev 997 drivers/net/ethernet/hisilicon/hip04_eth.c ndev->netdev_ops = &hip04_netdev_ops; ndev 998 drivers/net/ethernet/hisilicon/hip04_eth.c ndev->ethtool_ops = &hip04_ethtool_ops; ndev 999 drivers/net/ethernet/hisilicon/hip04_eth.c ndev->watchdog_timeo = TX_TIMEOUT; ndev 1000 drivers/net/ethernet/hisilicon/hip04_eth.c ndev->priv_flags |= IFF_UNICAST_FLT; ndev 1001 drivers/net/ethernet/hisilicon/hip04_eth.c ndev->irq = irq; ndev 1002 drivers/net/ethernet/hisilicon/hip04_eth.c netif_napi_add(ndev, &priv->napi, hip04_rx_poll, NAPI_POLL_WEIGHT); ndev 1007 drivers/net/ethernet/hisilicon/hip04_eth.c hip04_config_port(ndev, SPEED_100, DUPLEX_FULL); ndev 1010 drivers/net/ethernet/hisilicon/hip04_eth.c eth_random_addr(ndev->dev_addr); ndev 1011 drivers/net/ethernet/hisilicon/hip04_eth.c hip04_update_mac_address(ndev); ndev 1013 drivers/net/ethernet/hisilicon/hip04_eth.c ret = hip04_alloc_ring(ndev, d); ndev 1015 drivers/net/ethernet/hisilicon/hip04_eth.c netdev_err(ndev, "alloc ring fail\n"); ndev 1019 drivers/net/ethernet/hisilicon/hip04_eth.c ret = register_netdev(ndev); ndev 1026 drivers/net/ethernet/hisilicon/hip04_eth.c hip04_free_ring(ndev, d); ndev 1029 drivers/net/ethernet/hisilicon/hip04_eth.c free_netdev(ndev); ndev 1035 drivers/net/ethernet/hisilicon/hip04_eth.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1036 drivers/net/ethernet/hisilicon/hip04_eth.c struct hip04_priv *priv = netdev_priv(ndev); ndev 1042 drivers/net/ethernet/hisilicon/hip04_eth.c hip04_free_ring(ndev, d); ndev 1043 drivers/net/ethernet/hisilicon/hip04_eth.c unregister_netdev(ndev); ndev 1046 drivers/net/ethernet/hisilicon/hip04_eth.c free_netdev(ndev); ndev 118 drivers/net/ethernet/hisilicon/hisi_femac.c struct net_device *ndev; ndev 223 drivers/net/ethernet/hisilicon/hisi_femac.c netdev_err(priv->ndev, "err skb[%d]=%p\n", ndev 227 drivers/net/ethernet/hisilicon/hisi_femac.c skb = netdev_alloc_skb_ip_align(priv->ndev, len); ndev 303 drivers/net/ethernet/hisilicon/hisi_femac.c struct net_device *dev = priv->ndev; ndev 397 drivers/net/ethernet/hisilicon/hisi_femac.c netdev_err(priv->ndev, "NULL rx skb. pos=%d, head=%d\n", ndev 416 drivers/net/ethernet/hisilicon/hisi_femac.c netdev_err(priv->ndev, "NULL tx skb. pos=%d, head=%d\n", ndev 615 drivers/net/ethernet/hisilicon/hisi_femac.c struct net_device *dev = priv->ndev; ndev 642 drivers/net/ethernet/hisilicon/hisi_femac.c struct net_device *dev = priv->ndev; ndev 750 drivers/net/ethernet/hisilicon/hisi_femac.c if (priv->ndev->phydev->interface == PHY_INTERFACE_MODE_RMII) ndev 784 drivers/net/ethernet/hisilicon/hisi_femac.c struct net_device *ndev; ndev 790 drivers/net/ethernet/hisilicon/hisi_femac.c ndev = alloc_etherdev(sizeof(*priv)); ndev 791 drivers/net/ethernet/hisilicon/hisi_femac.c if (!ndev) ndev 794 drivers/net/ethernet/hisilicon/hisi_femac.c platform_set_drvdata(pdev, ndev); ndev 795 drivers/net/ethernet/hisilicon/hisi_femac.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 797 drivers/net/ethernet/hisilicon/hisi_femac.c priv = netdev_priv(ndev); ndev 799 drivers/net/ethernet/hisilicon/hisi_femac.c priv->ndev = ndev; ndev 846 drivers/net/ethernet/hisilicon/hisi_femac.c phy = of_phy_get_and_connect(ndev, node, hisi_femac_adjust_link); ndev 859 drivers/net/ethernet/hisilicon/hisi_femac.c ether_addr_copy(ndev->dev_addr, mac_addr); ndev 860 drivers/net/ethernet/hisilicon/hisi_femac.c if (!is_valid_ether_addr(ndev->dev_addr)) { ndev 861 drivers/net/ethernet/hisilicon/hisi_femac.c eth_hw_addr_random(ndev); ndev 863 drivers/net/ethernet/hisilicon/hisi_femac.c ndev->dev_addr); ndev 866 drivers/net/ethernet/hisilicon/hisi_femac.c ndev->watchdog_timeo = 6 * HZ; ndev 867 drivers/net/ethernet/hisilicon/hisi_femac.c ndev->priv_flags |= IFF_UNICAST_FLT; ndev 868 drivers/net/ethernet/hisilicon/hisi_femac.c ndev->netdev_ops = &hisi_femac_netdev_ops; ndev 869 drivers/net/ethernet/hisilicon/hisi_femac.c ndev->ethtool_ops = &hisi_femac_ethtools_ops; ndev 870 drivers/net/ethernet/hisilicon/hisi_femac.c netif_napi_add(ndev, &priv->napi, hisi_femac_poll, FEMAC_POLL_WEIGHT); ndev 878 drivers/net/ethernet/hisilicon/hisi_femac.c ndev->irq = platform_get_irq(pdev, 0); ndev 879 drivers/net/ethernet/hisilicon/hisi_femac.c if (ndev->irq <= 0) { ndev 884 drivers/net/ethernet/hisilicon/hisi_femac.c ret = devm_request_irq(dev, ndev->irq, hisi_femac_interrupt, ndev 885 drivers/net/ethernet/hisilicon/hisi_femac.c IRQF_SHARED, pdev->name, ndev); ndev 887 drivers/net/ethernet/hisilicon/hisi_femac.c dev_err(dev, "devm_request_irq %d failed!\n", ndev->irq); ndev 891 drivers/net/ethernet/hisilicon/hisi_femac.c ret = register_netdev(ndev); ndev 905 drivers/net/ethernet/hisilicon/hisi_femac.c free_netdev(ndev); ndev 912 drivers/net/ethernet/hisilicon/hisi_femac.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 913 drivers/net/ethernet/hisilicon/hisi_femac.c struct hisi_femac_priv *priv = netdev_priv(ndev); ndev 916 drivers/net/ethernet/hisilicon/hisi_femac.c unregister_netdev(ndev); ndev 918 drivers/net/ethernet/hisilicon/hisi_femac.c phy_disconnect(ndev->phydev); ndev 920 drivers/net/ethernet/hisilicon/hisi_femac.c free_netdev(ndev); ndev 929 drivers/net/ethernet/hisilicon/hisi_femac.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 930 drivers/net/ethernet/hisilicon/hisi_femac.c struct hisi_femac_priv *priv = netdev_priv(ndev); ndev 932 drivers/net/ethernet/hisilicon/hisi_femac.c disable_irq(ndev->irq); ndev 933 drivers/net/ethernet/hisilicon/hisi_femac.c if (netif_running(ndev)) { ndev 934 drivers/net/ethernet/hisilicon/hisi_femac.c hisi_femac_net_close(ndev); ndev 935 drivers/net/ethernet/hisilicon/hisi_femac.c netif_device_detach(ndev); ndev 945 drivers/net/ethernet/hisilicon/hisi_femac.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 946 drivers/net/ethernet/hisilicon/hisi_femac.c struct hisi_femac_priv *priv = netdev_priv(ndev); ndev 952 drivers/net/ethernet/hisilicon/hisi_femac.c if (netif_running(ndev)) { ndev 954 drivers/net/ethernet/hisilicon/hisi_femac.c hisi_femac_net_open(ndev); ndev 955 drivers/net/ethernet/hisilicon/hisi_femac.c netif_device_attach(ndev); ndev 957 drivers/net/ethernet/hisilicon/hisi_femac.c enable_irq(ndev->irq); ndev 1098 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c struct net_device *ndev; ndev 1104 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ndev = alloc_etherdev(sizeof(struct hix5hd2_priv)); ndev 1105 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c if (!ndev) ndev 1108 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c platform_set_drvdata(pdev, ndev); ndev 1110 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c priv = netdev_priv(ndev); ndev 1112 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c priv->netdev = ndev; ndev 1135 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c netdev_err(ndev, "failed to get mac core clk\n"); ndev 1142 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c netdev_err(ndev, "failed to enable mac core clk %d\n", ret); ndev 1152 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c netdev_err(ndev, "failed to enable mac ifc clk %d\n", ret); ndev 1198 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c netdev_err(ndev, "not find phy-mode\n"); ndev 1205 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c netdev_err(ndev, "not find phy-handle\n"); ndev 1210 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ndev->irq = platform_get_irq(pdev, 0); ndev 1211 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c if (ndev->irq <= 0) { ndev 1212 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c netdev_err(ndev, "No irq resource\n"); ndev 1217 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ret = devm_request_irq(dev, ndev->irq, hix5hd2_interrupt, ndev 1218 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c 0, pdev->name, ndev); ndev 1220 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c netdev_err(ndev, "devm_request_irq failed\n"); ndev 1226 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ether_addr_copy(ndev->dev_addr, mac_addr); ndev 1227 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c if (!is_valid_ether_addr(ndev->dev_addr)) { ndev 1228 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c eth_hw_addr_random(ndev); ndev 1229 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c netdev_warn(ndev, "using random MAC address %pM\n", ndev 1230 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ndev->dev_addr); ndev 1234 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ndev->watchdog_timeo = 6 * HZ; ndev 1235 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ndev->priv_flags |= IFF_UNICAST_FLT; ndev 1236 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ndev->netdev_ops = &hix5hd2_netdev_ops; ndev 1237 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ndev->ethtool_ops = &hix5hd2_ethtools_ops; ndev 1238 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c SET_NETDEV_DEV(ndev, dev); ndev 1241 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ndev->hw_features |= NETIF_F_SG; ndev 1243 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ndev->features |= ndev->hw_features | NETIF_F_HIGHDMA; ndev 1244 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ndev->vlan_features |= ndev->features; ndev 1250 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c netif_napi_add(ndev, &priv->napi, hix5hd2_poll, NAPI_POLL_WEIGHT); ndev 1260 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c netdev_err(ndev, "register_netdev failed!"); ndev 1285 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c free_netdev(ndev); ndev 1292 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1293 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c struct hix5hd2_priv *priv = netdev_priv(ndev); ndev 1296 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c unregister_netdev(ndev); ndev 1305 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c free_netdev(ndev); ndev 304 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_tx_t hns_nic_net_xmit_hw(struct net_device *ndev, ndev 308 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 325 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "no memory to xmit!\n"); ndev 339 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "TX head DMA map failed\n"); ndev 344 drivers/net/ethernet/hisilicon/hns/hns_enet.c buf_num, DESC_TYPE_SKB, ndev->mtu); ndev 352 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "TX frag(%d) DMA map failed\n", i); ndev 358 drivers/net/ethernet/hisilicon/hns/hns_enet.c DESC_TYPE_PAGE, ndev->mtu); ndev 362 drivers/net/ethernet/hisilicon/hns/hns_enet.c dev_queue = netdev_get_tx_queue(ndev, skb->queue_mapping); ndev 365 drivers/net/ethernet/hisilicon/hns/hns_enet.c netif_trans_update(ndev); ndev 366 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->stats.tx_bytes += skb->len; ndev 367 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->stats.tx_packets++; ndev 398 drivers/net/ethernet/hisilicon/hns/hns_enet.c netif_stop_subqueue(ndev, skb->queue_mapping); ndev 542 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct net_device *ndev = ring_data->napi.dev; ndev 543 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 596 drivers/net/ethernet/hisilicon/hns/hns_enet.c pull_len = eth_get_headlen(ndev, va, HNS_RX_HEAD_SIZE); ndev 620 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "invalid bnum(%d,%d,%d,%d),%016llx,%016llx\n", ndev 632 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "no valid bd,%016llx,%016llx\n", ndev 670 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct net_device *ndev = ring_data->napi.dev; ndev 681 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "hnae reserve buffer map failed.\n"); ndev 699 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct net_device *ndev = ring_data->napi.dev; ndev 701 drivers/net/ethernet/hisilicon/hns/hns_enet.c skb->protocol = eth_type_trans(skb, ndev); ndev 952 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct net_device *ndev = ring_data->napi.dev; ndev 954 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 965 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "wrong head (%d, %d-%d)\n", head, ndev 982 drivers/net/ethernet/hisilicon/hns/hns_enet.c dev_queue = netdev_get_tx_queue(ndev, ring_data->queue_index); ndev 985 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (unlikely(priv->link && !netif_carrier_ok(ndev))) ndev 986 drivers/net/ethernet/hisilicon/hns/hns_enet.c netif_carrier_on(ndev); ndev 988 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (unlikely(pkts && netif_carrier_ok(ndev) && ndev 1036 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct net_device *ndev = ring_data->napi.dev; ndev 1047 drivers/net/ethernet/hisilicon/hns/hns_enet.c dev_queue = netdev_get_tx_queue(ndev, ring_data->queue_index); ndev 1089 drivers/net/ethernet/hisilicon/hns/hns_enet.c static void hns_nic_adjust_link(struct net_device *ndev) ndev 1091 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1096 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (ndev->phydev) { ndev 1098 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (ndev->phydev->link == 0) ndev 1101 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (h->dev->ops->need_adjust_link(h, ndev->phydev->speed, ndev 1102 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->phydev->duplex)) { ndev 1107 drivers/net/ethernet/hisilicon/hns/hns_enet.c netif_carrier_off(ndev); ndev 1109 drivers/net/ethernet/hisilicon/hns/hns_enet.c h->dev->ops->adjust_link(h, ndev->phydev->speed, ndev 1110 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->phydev->duplex); ndev 1111 drivers/net/ethernet/hisilicon/hns/hns_enet.c netif_carrier_on(ndev); ndev 1119 drivers/net/ethernet/hisilicon/hns/hns_enet.c netif_carrier_on(ndev); ndev 1120 drivers/net/ethernet/hisilicon/hns/hns_enet.c netif_tx_wake_all_queues(ndev); ndev 1121 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_info(ndev, "link up\n"); ndev 1123 drivers/net/ethernet/hisilicon/hns/hns_enet.c netif_carrier_off(ndev); ndev 1124 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_info(ndev, "link down\n"); ndev 1136 drivers/net/ethernet/hisilicon/hns/hns_enet.c int hns_nic_init_phy(struct net_device *ndev, struct hnae_handle *h) ndev 1155 drivers/net/ethernet/hisilicon/hns/hns_enet.c ret = phy_connect_direct(ndev, phy_dev, hns_nic_adjust_link, ndev 1158 drivers/net/ethernet/hisilicon/hns/hns_enet.c ret = phy_attach_direct(ndev, phy_dev, 0, h->phy_if); ndev 1181 drivers/net/ethernet/hisilicon/hns/hns_enet.c static int hns_nic_net_set_mac_address(struct net_device *ndev, void *p) ndev 1183 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1193 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "set_mac_address fail, ret=%d!\n", ret); ndev 1197 drivers/net/ethernet/hisilicon/hns/hns_enet.c memcpy(ndev->dev_addr, mac_addr->sa_data, ndev->addr_len); ndev 1211 drivers/net/ethernet/hisilicon/hns/hns_enet.c static void hns_init_mac_addr(struct net_device *ndev) ndev 1213 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1215 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (!device_get_mac_address(priv->dev, ndev->dev_addr, ETH_ALEN)) { ndev 1216 drivers/net/ethernet/hisilicon/hns/hns_enet.c eth_hw_addr_random(ndev); ndev 1218 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->dev_addr); ndev 1322 drivers/net/ethernet/hisilicon/hns/hns_enet.c static int hns_nic_net_up(struct net_device *ndev) ndev 1324 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1334 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "hns init irq failed! ret=%d\n", ret); ndev 1339 drivers/net/ethernet/hisilicon/hns/hns_enet.c ret = hns_nic_ring_open(ndev, i); ndev 1344 drivers/net/ethernet/hisilicon/hns/hns_enet.c ret = h->dev->ops->set_mac_addr(h, ndev->dev_addr); ndev 1352 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (ndev->phydev) ndev 1353 drivers/net/ethernet/hisilicon/hns/hns_enet.c phy_start(ndev->phydev); ndev 1361 drivers/net/ethernet/hisilicon/hns/hns_enet.c netif_stop_queue(ndev); ndev 1365 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_nic_ring_close(ndev, j); ndev 1373 drivers/net/ethernet/hisilicon/hns/hns_enet.c static void hns_nic_net_down(struct net_device *ndev) ndev 1377 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1383 drivers/net/ethernet/hisilicon/hns/hns_enet.c netif_tx_stop_all_queues(ndev); ndev 1384 drivers/net/ethernet/hisilicon/hns/hns_enet.c netif_carrier_off(ndev); ndev 1385 drivers/net/ethernet/hisilicon/hns/hns_enet.c netif_tx_disable(ndev); ndev 1388 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (ndev->phydev) ndev 1389 drivers/net/ethernet/hisilicon/hns/hns_enet.c phy_stop(ndev->phydev); ndev 1396 drivers/net/ethernet/hisilicon/hns/hns_enet.c netif_tx_stop_all_queues(ndev); ndev 1399 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_nic_ring_close(ndev, i); ndev 1400 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_nic_ring_close(ndev, i + priv->ae_handle->q_num); ndev 1407 drivers/net/ethernet/hisilicon/hns/hns_enet.c void hns_nic_net_reset(struct net_device *ndev) ndev 1409 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1441 drivers/net/ethernet/hisilicon/hns/hns_enet.c static int hns_nic_net_open(struct net_device *ndev) ndev 1443 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1451 drivers/net/ethernet/hisilicon/hns/hns_enet.c netif_carrier_off(ndev); ndev 1453 drivers/net/ethernet/hisilicon/hns/hns_enet.c ret = netif_set_real_num_tx_queues(ndev, h->q_num); ndev 1455 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "netif_set_real_num_tx_queues fail, ret=%d!\n", ndev 1460 drivers/net/ethernet/hisilicon/hns/hns_enet.c ret = netif_set_real_num_rx_queues(ndev, h->q_num); ndev 1462 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, ndev 1467 drivers/net/ethernet/hisilicon/hns/hns_enet.c ret = hns_nic_net_up(ndev); ndev 1469 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, ndev 1477 drivers/net/ethernet/hisilicon/hns/hns_enet.c static int hns_nic_net_stop(struct net_device *ndev) ndev 1479 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_nic_net_down(ndev); ndev 1486 drivers/net/ethernet/hisilicon/hns/hns_enet.c static void hns_nic_net_timeout(struct net_device *ndev) ndev 1488 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1490 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (ndev->watchdog_timeo < HNS_TX_TIMEO_LIMIT) { ndev 1491 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->watchdog_timeo *= 2; ndev 1492 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_info(ndev, "watchdog_timo changed to %d.\n", ndev 1493 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->watchdog_timeo); ndev 1495 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->watchdog_timeo = HNS_NIC_TX_TIMEOUT; ndev 1515 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct net_device *ndev) ndev 1517 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1519 drivers/net/ethernet/hisilicon/hns/hns_enet.c assert(skb->queue_mapping < ndev->ae_handle->q_num); ndev 1521 drivers/net/ethernet/hisilicon/hns/hns_enet.c return hns_nic_net_xmit_hw(ndev, skb, ndev 1532 drivers/net/ethernet/hisilicon/hns/hns_enet.c static struct sk_buff *hns_assemble_skb(struct net_device *ndev) ndev 1544 drivers/net/ethernet/hisilicon/hns/hns_enet.c skb->dev = ndev; ndev 1560 drivers/net/ethernet/hisilicon/hns/hns_enet.c static int hns_enable_serdes_lb(struct net_device *ndev) ndev 1562 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1591 drivers/net/ethernet/hisilicon/hns/hns_enet.c static void hns_disable_serdes_lb(struct net_device *ndev) ndev 1593 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1614 drivers/net/ethernet/hisilicon/hns/hns_enet.c static int hns_nic_clear_all_rx_fetch(struct net_device *ndev) ndev 1616 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1648 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (hns_enable_serdes_lb(ndev)) { ndev 1679 drivers/net/ethernet/hisilicon/hns/hns_enet.c skb = hns_assemble_skb(ndev); ndev 1683 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_nic_net_xmit_hw(ndev, skb, rd); ndev 1711 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_disable_serdes_lb(ndev); ndev 1720 drivers/net/ethernet/hisilicon/hns/hns_enet.c static int hns_nic_change_mtu(struct net_device *ndev, int new_mtu) ndev 1722 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1724 drivers/net/ethernet/hisilicon/hns/hns_enet.c bool if_running = netif_running(ndev); ndev 1732 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (new_mtu == ndev->mtu) ndev 1739 drivers/net/ethernet/hisilicon/hns/hns_enet.c (void)hns_nic_net_stop(ndev); ndev 1744 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->mtu <= BD_SIZE_2048_MAX_MTU && ndev 1750 drivers/net/ethernet/hisilicon/hns/hns_enet.c ret = hns_nic_clear_all_rx_fetch(ndev); ndev 1756 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "clear the fetched desc fail\n"); ndev 1763 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "set mtu fail, return value %d\n", ndev 1769 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->mtu = new_mtu; ndev 1773 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (hns_nic_net_open(ndev)) { ndev 1774 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "hns net open fail\n"); ndev 1854 drivers/net/ethernet/hisilicon/hns/hns_enet.c static void hns_set_multicast_list(struct net_device *ndev) ndev 1856 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1861 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "hnae handle is null\n"); ndev 1867 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "clear multicast address fail\n"); ndev 1870 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_for_each_mc_addr(ha, ndev) ndev 1872 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "set multicast fail\n"); ndev 1876 drivers/net/ethernet/hisilicon/hns/hns_enet.c static void hns_nic_set_rx_mode(struct net_device *ndev) ndev 1878 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1882 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (ndev->flags & IFF_PROMISC) ndev 1888 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_set_multicast_list(ndev); ndev 1890 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (__dev_uc_sync(ndev, hns_nic_uc_sync, hns_nic_uc_unsync)) ndev 1891 drivers/net/ethernet/hisilicon/hns/hns_enet.c netdev_err(ndev, "sync uc address fail\n"); ndev 1894 drivers/net/ethernet/hisilicon/hns/hns_enet.c static void hns_nic_get_stats64(struct net_device *ndev, ndev 1902 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1917 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->rx_errors = ndev->stats.rx_errors; ndev 1918 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->multicast = ndev->stats.multicast; ndev 1919 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->rx_length_errors = ndev->stats.rx_length_errors; ndev 1920 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->rx_crc_errors = ndev->stats.rx_crc_errors; ndev 1921 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->rx_missed_errors = ndev->stats.rx_missed_errors; ndev 1923 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->tx_errors = ndev->stats.tx_errors; ndev 1924 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->rx_dropped = ndev->stats.rx_dropped; ndev 1925 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->tx_dropped = ndev->stats.tx_dropped; ndev 1926 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->collisions = ndev->stats.collisions; ndev 1927 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->rx_over_errors = ndev->stats.rx_over_errors; ndev 1928 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->rx_frame_errors = ndev->stats.rx_frame_errors; ndev 1929 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->rx_fifo_errors = ndev->stats.rx_fifo_errors; ndev 1930 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->tx_aborted_errors = ndev->stats.tx_aborted_errors; ndev 1931 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->tx_carrier_errors = ndev->stats.tx_carrier_errors; ndev 1932 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->tx_fifo_errors = ndev->stats.tx_fifo_errors; ndev 1933 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->tx_heartbeat_errors = ndev->stats.tx_heartbeat_errors; ndev 1934 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->tx_window_errors = ndev->stats.tx_window_errors; ndev 1935 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->rx_compressed = ndev->stats.rx_compressed; ndev 1936 drivers/net/ethernet/hisilicon/hns/hns_enet.c stats->tx_compressed = ndev->stats.tx_compressed; ndev 1940 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_nic_select_queue(struct net_device *ndev, struct sk_buff *skb, ndev 1944 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 1951 drivers/net/ethernet/hisilicon/hns/hns_enet.c return netdev_pick_tx(ndev, skb, NULL); ndev 2196 drivers/net/ethernet/hisilicon/hns/hns_enet.c static int hns_nic_try_get_ae(struct net_device *ndev) ndev 2198 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 2211 drivers/net/ethernet/hisilicon/hns/hns_enet.c ret = hns_nic_init_phy(ndev, h); ndev 2223 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_nic_set_priv_ops(ndev); ndev 2225 drivers/net/ethernet/hisilicon/hns/hns_enet.c ret = register_netdev(ndev); ndev 2261 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct net_device *ndev; ndev 2266 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev = alloc_etherdev_mq(sizeof(struct hns_nic_priv), NIC_MAX_Q_PER_VF); ndev 2267 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (!ndev) ndev 2270 drivers/net/ethernet/hisilicon/hns/hns_enet.c platform_set_drvdata(pdev, ndev); ndev 2272 drivers/net/ethernet/hisilicon/hns/hns_enet.c priv = netdev_priv(ndev); ndev 2274 drivers/net/ethernet/hisilicon/hns/hns_enet.c priv->netdev = ndev; ndev 2331 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_init_mac_addr(ndev); ndev 2333 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->watchdog_timeo = HNS_NIC_TX_TIMEOUT; ndev 2334 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->priv_flags |= IFF_UNICAST_FLT; ndev 2335 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->netdev_ops = &hns_nic_netdev_ops; ndev 2336 drivers/net/ethernet/hisilicon/hns/hns_enet.c hns_ethtool_set_ops(ndev); ndev 2338 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | ndev 2341 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->vlan_features |= ndev 2343 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->vlan_features |= NETIF_F_SG | NETIF_F_GSO | NETIF_F_GRO; ndev 2346 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->min_mtu = MAC_MIN_MTU; ndev 2349 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->features |= NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_NTUPLE; ndev 2350 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->hw_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | ndev 2353 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->vlan_features |= NETIF_F_TSO | NETIF_F_TSO6; ndev 2354 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->max_mtu = MAC_MAX_MTU_V2 - ndev 2358 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->max_mtu = MAC_MAX_MTU - ndev 2363 drivers/net/ethernet/hisilicon/hns/hns_enet.c SET_NETDEV_DEV(ndev, dev); ndev 2371 drivers/net/ethernet/hisilicon/hns/hns_enet.c netif_carrier_off(ndev); ndev 2397 drivers/net/ethernet/hisilicon/hns/hns_enet.c free_netdev(ndev); ndev 2403 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 2404 drivers/net/ethernet/hisilicon/hns/hns_enet.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 2406 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (ndev->reg_state != NETREG_UNINITIALIZED) ndev 2407 drivers/net/ethernet/hisilicon/hns/hns_enet.c unregister_netdev(ndev); ndev 2413 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (ndev->phydev) ndev 2414 drivers/net/ethernet/hisilicon/hns/hns_enet.c phy_disconnect(ndev->phydev); ndev 2429 drivers/net/ethernet/hisilicon/hns/hns_enet.c free_netdev(ndev); ndev 87 drivers/net/ethernet/hisilicon/hns/hns_enet.h void hns_ethtool_set_ops(struct net_device *ndev); ndev 88 drivers/net/ethernet/hisilicon/hns/hns_enet.h void hns_nic_net_reset(struct net_device *ndev); ndev 90 drivers/net/ethernet/hisilicon/hns/hns_enet.h int hns_nic_init_phy(struct net_device *ndev, struct hnae_handle *h); ndev 91 drivers/net/ethernet/hisilicon/hns/hns_enet.h netdev_tx_t hns_nic_net_xmit_hw(struct net_device *ndev, ndev 283 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c static int __lb_setup(struct net_device *ndev, ndev 287 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 288 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct phy_device *phy_dev = ndev->phydev; ndev 328 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c h, ndev->flags & IFF_PROMISC); ndev 335 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c static int __lb_up(struct net_device *ndev, ndev 339 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 344 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c hns_nic_net_reset(ndev); ndev 346 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ret = __lb_setup(ndev, loop_mode); ndev 374 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct net_device *ndev; ndev 385 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ndev = skb->dev; ndev 386 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c priv = netdev_priv(ndev); ndev 392 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c memcpy(skb->data, ndev->dev_addr, 6); ndev 406 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ndev = ring_data->napi.dev; ndev 408 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c dev_queue = netdev_get_tx_queue(ndev, ring_data->queue_index); ndev 428 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ndev->stats.rx_packets++; ndev 429 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ndev->stats.rx_bytes += skb->len; ndev 431 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ndev->stats.rx_frame_errors++; ndev 447 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct net_device *ndev = priv->netdev; ndev 448 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c unsigned long rx_packets = ndev->stats.rx_packets; ndev 449 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c unsigned long rx_bytes = ndev->stats.rx_bytes; ndev 450 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c unsigned long rx_frame_errors = ndev->stats.rx_frame_errors; ndev 457 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ret = (int)(ndev->stats.rx_packets - rx_packets); ndev 458 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ndev->stats.rx_packets = rx_packets; ndev 459 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ndev->stats.rx_bytes = rx_bytes; ndev 460 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ndev->stats.rx_frame_errors = rx_frame_errors; ndev 469 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c static int __lb_run_test(struct net_device *ndev, ndev 480 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 495 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c skb->dev = ndev; ndev 508 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ndev, skb, ndev 547 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c static int __lb_down(struct net_device *ndev, enum hnae_loop loop) ndev 549 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 554 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ret = __lb_setup(ndev, MAC_LOOP_PHY_NONE); ndev 556 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ret = __lb_setup(ndev, MAC_LOOP_NONE); ndev 558 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c netdev_err(ndev, "%s: __lb_setup return error(%d)!\n", ndev 568 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c hns_nic_net_reset(ndev); ndev 579 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c static void hns_nic_self_test(struct net_device *ndev, ndev 582 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c struct hns_nic_priv *priv = netdev_priv(ndev); ndev 583 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c bool if_running = netif_running(ndev); ndev 601 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c dev_close(ndev); ndev 607 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c data[test_index] = __lb_up(ndev, ndev 611 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ndev, (enum hnae_loop)st_param[i][0]); ndev 612 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c (void)__lb_down(ndev, ndev 627 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c (void)dev_open(ndev, NULL); ndev 1292 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c void hns_ethtool_set_ops(struct net_device *ndev) ndev 1294 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ndev->ethtool_ops = &hns_ethtool_ops; ndev 7 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c static int hns3_dcbnl_ieee_getets(struct net_device *ndev, struct ieee_ets *ets) ndev 9 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c struct hnae3_handle *h = hns3_get_handle(ndev); ndev 11 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c if (hns3_nic_resetting(ndev)) ndev 20 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c static int hns3_dcbnl_ieee_setets(struct net_device *ndev, struct ieee_ets *ets) ndev 22 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c struct hnae3_handle *h = hns3_get_handle(ndev); ndev 24 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c if (hns3_nic_resetting(ndev)) ndev 33 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c static int hns3_dcbnl_ieee_getpfc(struct net_device *ndev, struct ieee_pfc *pfc) ndev 35 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c struct hnae3_handle *h = hns3_get_handle(ndev); ndev 37 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c if (hns3_nic_resetting(ndev)) ndev 46 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c static int hns3_dcbnl_ieee_setpfc(struct net_device *ndev, struct ieee_pfc *pfc) ndev 48 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c struct hnae3_handle *h = hns3_get_handle(ndev); ndev 50 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c if (hns3_nic_resetting(ndev)) ndev 60 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c static u8 hns3_dcbnl_getdcbx(struct net_device *ndev) ndev 62 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c struct hnae3_handle *h = hns3_get_handle(ndev); ndev 71 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c static u8 hns3_dcbnl_setdcbx(struct net_device *ndev, u8 mode) ndev 73 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c struct hnae3_handle *h = hns3_get_handle(ndev); ndev 481 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct net_device *ndev = h->kinfo.netdev; ndev 482 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_nic_priv *priv = netdev_priv(ndev); ndev 487 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c dev_queue = netdev_get_tx_queue(ndev, ndev 1676 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c static bool hns3_get_tx_timeo_queue_info(struct net_device *ndev) ndev 1678 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_nic_priv *priv = netdev_priv(ndev); ndev 1679 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hnae3_handle *h = hns3_get_handle(ndev); ndev 1691 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c for (i = 0; i < ndev->num_tx_queues; i++) { ndev 1695 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c q = netdev_get_tx_queue(ndev, i); ndev 1699 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c (trans_start + ndev->watchdog_timeo))) { ndev 1701 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netdev_info(ndev, "queue state: 0x%lx, delta msecs: %u\n", ndev 1708 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (i == ndev->num_tx_queues) { ndev 1709 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netdev_info(ndev, ndev 1720 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netdev_info(ndev, ndev 1725 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netdev_info(ndev, ndev 1730 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netdev_info(ndev, ndev 1742 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netdev_info(ndev, "tx_pause_cnt: %llu, rx_pause_cnt: %llu\n", ndev 1765 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netdev_info(ndev, ndev 1769 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netdev_info(ndev, ndev 1776 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c static void hns3_nic_net_timeout(struct net_device *ndev) ndev 1778 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_nic_priv *priv = netdev_priv(ndev); ndev 1781 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (!hns3_get_tx_timeo_queue_info(ndev)) ndev 4025 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct net_device *ndev = kinfo->netdev; ndev 4030 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (!ndev) ndev 4033 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c return hns3_nic_set_real_num_queue(ndev); ndev 4036 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c static int hns3_recover_hw_addr(struct net_device *ndev) ndev 4042 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netif_addr_lock_bh(ndev); ndev 4044 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c list = &ndev->uc; ndev 4046 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ret = hns3_nic_uc_sync(ndev, ha->addr); ndev 4052 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c list = &ndev->mc; ndev 4054 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ret = hns3_nic_mc_sync(ndev, ha->addr); ndev 4060 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netif_addr_unlock_bh(ndev); ndev 4153 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct net_device *ndev = h->kinfo.netdev; ndev 4154 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_nic_priv *priv = netdev_priv(ndev); ndev 4176 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct net_device *ndev = h->kinfo.netdev; ndev 4177 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_nic_priv *priv = netdev_priv(ndev); ndev 4246 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct net_device *ndev = kinfo->netdev; ndev 4247 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct hns3_nic_priv *priv = netdev_priv(ndev); ndev 4257 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_remove_hw_addr(ndev); ndev 4258 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_del_all_fd_rules(ndev, false); ndev 4261 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (!netif_running(ndev)) ndev 4264 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c return hns3_nic_net_stop(ndev); ndev 638 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h #define hns3_get_handle(ndev) \ ndev 639 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h (((struct hns3_nic_priv *)netdev_priv(ndev))->ae_handle) ndev 73 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c static int hns3_lp_setup(struct net_device *ndev, enum hnae3_loop loop, bool en) ndev 75 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hnae3_handle *h = hns3_get_handle(ndev); ndev 102 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c hns3_update_promisc_mode(ndev, h->netdev_flags); ndev 103 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c vlan_filter_enable = ndev->flags & IFF_PROMISC ? false : true; ndev 104 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c hns3_enable_vlan_filter(ndev, vlan_filter_enable); ndev 110 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c static int hns3_lp_up(struct net_device *ndev, enum hnae3_loop loop_mode) ndev 112 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hnae3_handle *h = hns3_get_handle(ndev); ndev 119 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c ret = hns3_lp_setup(ndev, loop_mode, true); ndev 125 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c static int hns3_lp_down(struct net_device *ndev, enum hnae3_loop loop_mode) ndev 129 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c ret = hns3_lp_setup(ndev, loop_mode, false); ndev 131 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netdev_err(ndev, "lb_setup return error: %d\n", ret); ndev 144 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct net_device *ndev = skb->dev; ndev 154 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c memcpy(ethh->h_dest, ndev->dev_addr, ETH_ALEN); ndev 161 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c handle = hns3_get_handle(ndev); ndev 235 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c static int hns3_lp_run_test(struct net_device *ndev, enum hnae3_loop mode) ndev 237 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hns3_nic_priv *priv = netdev_priv(ndev); ndev 247 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c skb->dev = ndev; ndev 256 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c tx_ret = hns3_nic_net_xmit(skb, ndev); ndev 261 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netdev_err(ndev, "hns3_lb_run_test xmit failed: %d\n", ndev 267 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netdev_err(ndev, "mode %d sent fail, cnt=0x%x, budget=0x%x\n", ndev 278 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netdev_err(ndev, "mode %d recv fail, cnt=0x%x, budget=0x%x\n", ndev 297 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c static void hns3_self_test(struct net_device *ndev, ndev 300 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hns3_nic_priv *priv = netdev_priv(ndev); ndev 303 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c bool if_running = netif_running(ndev); ndev 310 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c if (hns3_nic_resetting(ndev)) { ndev 311 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netdev_err(ndev, "dev resetting!"); ndev 319 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netif_dbg(h, drv, ndev, "self test start"); ndev 339 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c ndev->netdev_ops->ndo_stop(ndev); ndev 343 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c dis_vlan_filter = (ndev->features & NETIF_F_HW_VLAN_CTAG_FILTER) && ndev 364 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c data[test_index] = hns3_lp_up(ndev, loop_type); ndev 366 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c data[test_index] = hns3_lp_run_test(ndev, loop_type); ndev 368 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c hns3_lp_down(ndev, loop_type); ndev 387 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c ndev->netdev_ops->ndo_open(ndev); ndev 389 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netif_dbg(h, drv, ndev, "self test end\n"); ndev 930 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c static int hns3_check_ringparam(struct net_device *ndev, ndev 933 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c if (hns3_nic_resetting(ndev)) ndev 943 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netdev_err(ndev, "Queue depth out of range [%d-%d]\n", ndev 951 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c static int hns3_set_ringparam(struct net_device *ndev, ndev 954 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c struct hns3_nic_priv *priv = netdev_priv(ndev); ndev 957 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c bool if_running = netif_running(ndev); ndev 963 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c ret = hns3_check_ringparam(ndev, param); ndev 978 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netdev_err(ndev, ndev 983 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netdev_info(ndev, ndev 989 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c ndev->netdev_ops->ndo_stop(ndev); ndev 994 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netdev_err(ndev, "Change bd num fail, revert to old value(%d)\n", ndev 1010 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c ret = ndev->netdev_ops->ndo_open(ndev); ndev 101 drivers/net/ethernet/i825xx/lasi_82596.c #define DMA_WBACK(ndev, addr, len) \ ndev 102 drivers/net/ethernet/i825xx/lasi_82596.c do { dma_cache_sync((ndev)->dev.parent, (void *)addr, len, DMA_TO_DEVICE); } while (0) ndev 104 drivers/net/ethernet/i825xx/lasi_82596.c #define DMA_INV(ndev, addr, len) \ ndev 105 drivers/net/ethernet/i825xx/lasi_82596.c do { dma_cache_sync((ndev)->dev.parent, (void *)addr, len, DMA_FROM_DEVICE); } while (0) ndev 107 drivers/net/ethernet/i825xx/lasi_82596.c #define DMA_WBACK_INV(ndev, addr, len) \ ndev 108 drivers/net/ethernet/i825xx/lasi_82596.c do { dma_cache_sync((ndev)->dev.parent, (void *)addr, len, DMA_BIDIRECTIONAL); } while (0) ndev 294 drivers/net/ethernet/ibm/emac/core.c netif_tx_lock_bh(dev->ndev); ndev 295 drivers/net/ethernet/ibm/emac/core.c netif_addr_lock(dev->ndev); ndev 297 drivers/net/ethernet/ibm/emac/core.c netif_addr_unlock(dev->ndev); ndev 298 drivers/net/ethernet/ibm/emac/core.c netif_tx_unlock_bh(dev->ndev); ndev 299 drivers/net/ethernet/ibm/emac/core.c netif_trans_update(dev->ndev); /* prevent tx timeout */ ndev 301 drivers/net/ethernet/ibm/emac/core.c netif_tx_disable(dev->ndev); ndev 306 drivers/net/ethernet/ibm/emac/core.c netif_tx_lock_bh(dev->ndev); ndev 307 drivers/net/ethernet/ibm/emac/core.c netif_addr_lock(dev->ndev); ndev 309 drivers/net/ethernet/ibm/emac/core.c if (dev->mcast_pending && netif_running(dev->ndev)) ndev 311 drivers/net/ethernet/ibm/emac/core.c netif_addr_unlock(dev->ndev); ndev 312 drivers/net/ethernet/ibm/emac/core.c netif_tx_unlock_bh(dev->ndev); ndev 314 drivers/net/ethernet/ibm/emac/core.c netif_wake_queue(dev->ndev); ndev 425 drivers/net/ethernet/ibm/emac/core.c DBG(dev, "hash_mc %d" NL, netdev_mc_count(dev->ndev)); ndev 429 drivers/net/ethernet/ibm/emac/core.c netdev_for_each_mc_addr(ha, dev->ndev) { ndev 445 drivers/net/ethernet/ibm/emac/core.c static inline u32 emac_iff2rmr(struct net_device *ndev) ndev 447 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 457 drivers/net/ethernet/ibm/emac/core.c if (ndev->flags & IFF_PROMISC) ndev 459 drivers/net/ethernet/ibm/emac/core.c else if (ndev->flags & IFF_ALLMULTI || ndev 460 drivers/net/ethernet/ibm/emac/core.c (netdev_mc_count(ndev) > EMAC_XAHT_SLOTS(dev))) ndev 462 drivers/net/ethernet/ibm/emac/core.c else if (!netdev_mc_empty(ndev)) ndev 467 drivers/net/ethernet/ibm/emac/core.c r |= EMAC4_RMR_MJS(ndev->mtu); ndev 485 drivers/net/ethernet/ibm/emac/core.c dev->ndev->name, tx_size); ndev 497 drivers/net/ethernet/ibm/emac/core.c dev->ndev->name, rx_size); ndev 525 drivers/net/ethernet/ibm/emac/core.c dev->ndev->name, tx_size); ndev 543 drivers/net/ethernet/ibm/emac/core.c dev->ndev->name, rx_size); ndev 576 drivers/net/ethernet/ibm/emac/core.c struct net_device *ndev = dev->ndev; ndev 577 drivers/net/ethernet/ibm/emac/core.c int tx_size, rx_size, link = netif_carrier_ok(dev->ndev); ndev 627 drivers/net/ethernet/ibm/emac/core.c if (dev->ndev->mtu > ETH_DATA_LEN) { ndev 666 drivers/net/ethernet/ibm/emac/core.c out_be32(&p->iahr, (ndev->dev_addr[0] << 8) | ndev->dev_addr[1]); ndev 667 drivers/net/ethernet/ibm/emac/core.c out_be32(&p->ialr, (ndev->dev_addr[2] << 24) | ndev 668 drivers/net/ethernet/ibm/emac/core.c (ndev->dev_addr[3] << 16) | (ndev->dev_addr[4] << 8) | ndev 669 drivers/net/ethernet/ibm/emac/core.c ndev->dev_addr[5]); ndev 675 drivers/net/ethernet/ibm/emac/core.c r = emac_iff2rmr(ndev); ndev 779 drivers/net/ethernet/ibm/emac/core.c static void emac_tx_timeout(struct net_device *ndev) ndev 781 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 931 drivers/net/ethernet/ibm/emac/core.c static int emac_mdio_read(struct net_device *ndev, int id, int reg) ndev 933 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 943 drivers/net/ethernet/ibm/emac/core.c static void emac_mdio_write(struct net_device *ndev, int id, int reg, int val) ndev 945 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 957 drivers/net/ethernet/ibm/emac/core.c u32 rmr = emac_iff2rmr(dev->ndev); ndev 987 drivers/net/ethernet/ibm/emac/core.c static void emac_set_multicast_list(struct net_device *ndev) ndev 989 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 993 drivers/net/ethernet/ibm/emac/core.c BUG_ON(!netif_running(dev->ndev)); ndev 1005 drivers/net/ethernet/ibm/emac/core.c static int emac_set_mac_address(struct net_device *ndev, void *sa) ndev 1007 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 1016 drivers/net/ethernet/ibm/emac/core.c memcpy(ndev->dev_addr, addr->sa_data, ndev->addr_len); ndev 1020 drivers/net/ethernet/ibm/emac/core.c out_be32(&p->iahr, (ndev->dev_addr[0] << 8) | ndev->dev_addr[1]); ndev 1021 drivers/net/ethernet/ibm/emac/core.c out_be32(&p->ialr, (ndev->dev_addr[2] << 24) | ndev 1022 drivers/net/ethernet/ibm/emac/core.c (ndev->dev_addr[3] << 16) | (ndev->dev_addr[4] << 8) | ndev 1023 drivers/net/ethernet/ibm/emac/core.c ndev->dev_addr[5]); ndev 1071 drivers/net/ethernet/ibm/emac/core.c skb = netdev_alloc_skb_ip_align(dev->ndev, rx_skb_size); ndev 1090 drivers/net/ethernet/ibm/emac/core.c (dev->ndev->mtu > ETH_DATA_LEN); ndev 1093 drivers/net/ethernet/ibm/emac/core.c (dev->ndev->mtu > ETH_DATA_LEN); ndev 1100 drivers/net/ethernet/ibm/emac/core.c dev->ndev->mtu = new_mtu; ndev 1118 drivers/net/ethernet/ibm/emac/core.c static int emac_change_mtu(struct net_device *ndev, int new_mtu) ndev 1120 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 1125 drivers/net/ethernet/ibm/emac/core.c if (netif_running(ndev)) { ndev 1127 drivers/net/ethernet/ibm/emac/core.c if (emac_rx_skb_size(ndev->mtu) != emac_rx_skb_size(new_mtu)) ndev 1132 drivers/net/ethernet/ibm/emac/core.c ndev->mtu = new_mtu; ndev 1198 drivers/net/ethernet/ibm/emac/core.c skb = __netdev_alloc_skb_ip_align(dev->ndev, dev->rx_skb_size, ndev 1216 drivers/net/ethernet/ibm/emac/core.c if (netif_carrier_ok(dev->ndev)) ndev 1218 drivers/net/ethernet/ibm/emac/core.c dev->ndev->name, dev->phy.speed, ndev 1223 drivers/net/ethernet/ibm/emac/core.c printk(KERN_INFO "%s: link is down\n", dev->ndev->name); ndev 1227 drivers/net/ethernet/ibm/emac/core.c static int emac_open(struct net_device *ndev) ndev 1229 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 1238 drivers/net/ethernet/ibm/emac/core.c ndev->name, dev->emac_irq); ndev 1246 drivers/net/ethernet/ibm/emac/core.c ndev->name); ndev 1264 drivers/net/ethernet/ibm/emac/core.c netif_carrier_on(dev->ndev); ndev 1268 drivers/net/ethernet/ibm/emac/core.c netif_carrier_off(dev->ndev); ndev 1276 drivers/net/ethernet/ibm/emac/core.c netif_carrier_on(dev->ndev); ndev 1279 drivers/net/ethernet/ibm/emac/core.c dev_mc_add_global(ndev, default_mcast_addr); ndev 1284 drivers/net/ethernet/ibm/emac/core.c mal_set_rcbs(dev->mal, dev->mal_rx_chan, emac_rx_size(ndev->mtu)); ndev 1347 drivers/net/ethernet/ibm/emac/core.c if (!netif_carrier_ok(dev->ndev)) { ndev 1352 drivers/net/ethernet/ibm/emac/core.c netif_carrier_on(dev->ndev); ndev 1360 drivers/net/ethernet/ibm/emac/core.c if (netif_carrier_ok(dev->ndev)) { ndev 1362 drivers/net/ethernet/ibm/emac/core.c netif_carrier_off(dev->ndev); ndev 1363 drivers/net/ethernet/ibm/emac/core.c netif_tx_disable(dev->ndev); ndev 1376 drivers/net/ethernet/ibm/emac/core.c netif_carrier_off(dev->ndev); ndev 1386 drivers/net/ethernet/ibm/emac/core.c static int emac_close(struct net_device *ndev) ndev 1388 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 1412 drivers/net/ethernet/ibm/emac/core.c netif_carrier_off(ndev); ndev 1431 drivers/net/ethernet/ibm/emac/core.c struct net_device *ndev = dev->ndev; ndev 1443 drivers/net/ethernet/ibm/emac/core.c netif_stop_queue(ndev); ndev 1447 drivers/net/ethernet/ibm/emac/core.c netif_trans_update(ndev); ndev 1455 drivers/net/ethernet/ibm/emac/core.c static netdev_tx_t emac_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 1457 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 1514 drivers/net/ethernet/ibm/emac/core.c emac_start_xmit_sg(struct sk_buff *skb, struct net_device *ndev) ndev 1516 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 1525 drivers/net/ethernet/ibm/emac/core.c return emac_start_xmit(skb, ndev); ndev 1592 drivers/net/ethernet/ibm/emac/core.c netif_stop_queue(ndev); ndev 1637 drivers/net/ethernet/ibm/emac/core.c netif_tx_lock_bh(dev->ndev); ndev 1661 drivers/net/ethernet/ibm/emac/core.c if (netif_queue_stopped(dev->ndev) && ndev 1663 drivers/net/ethernet/ibm/emac/core.c netif_wake_queue(dev->ndev); ndev 1668 drivers/net/ethernet/ibm/emac/core.c netif_tx_unlock_bh(dev->ndev); ndev 1805 drivers/net/ethernet/ibm/emac/core.c skb->protocol = eth_type_trans(skb, dev->ndev); ndev 1970 drivers/net/ethernet/ibm/emac/core.c static struct net_device_stats *emac_stats(struct net_device *ndev) ndev 1972 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 1975 drivers/net/ethernet/ibm/emac/core.c struct net_device_stats *nst = &ndev->stats; ndev 2038 drivers/net/ethernet/ibm/emac/core.c static int emac_ethtool_get_link_ksettings(struct net_device *ndev, ndev 2041 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 2064 drivers/net/ethernet/ibm/emac/core.c emac_ethtool_set_link_ksettings(struct net_device *ndev, ndev 2067 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 2140 drivers/net/ethernet/ibm/emac/core.c static void emac_ethtool_get_ringparam(struct net_device *ndev, ndev 2147 drivers/net/ethernet/ibm/emac/core.c static void emac_ethtool_get_pauseparam(struct net_device *ndev, ndev 2150 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 2172 drivers/net/ethernet/ibm/emac/core.c static int emac_ethtool_get_regs_len(struct net_device *ndev) ndev 2174 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 2205 drivers/net/ethernet/ibm/emac/core.c static void emac_ethtool_get_regs(struct net_device *ndev, ndev 2208 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 2230 drivers/net/ethernet/ibm/emac/core.c static int emac_ethtool_nway_reset(struct net_device *ndev) ndev 2232 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 2253 drivers/net/ethernet/ibm/emac/core.c static int emac_ethtool_get_sset_count(struct net_device *ndev, int stringset) ndev 2261 drivers/net/ethernet/ibm/emac/core.c static void emac_ethtool_get_strings(struct net_device *ndev, u32 stringset, ndev 2268 drivers/net/ethernet/ibm/emac/core.c static void emac_ethtool_get_ethtool_stats(struct net_device *ndev, ndev 2272 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 2279 drivers/net/ethernet/ibm/emac/core.c static void emac_ethtool_get_drvinfo(struct net_device *ndev, ndev 2282 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 2310 drivers/net/ethernet/ibm/emac/core.c static int emac_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd) ndev 2312 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 2325 drivers/net/ethernet/ibm/emac/core.c data->val_out = emac_mdio_read(ndev, dev->phy.address, ndev 2330 drivers/net/ethernet/ibm/emac/core.c emac_mdio_write(ndev, dev->phy.address, data->reg_num, ndev 2467 drivers/net/ethernet/ibm/emac/core.c static void emac_adjust_link(struct net_device *ndev) ndev 2469 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 2520 drivers/net/ethernet/ibm/emac/core.c struct net_device *ndev = phy->dev; ndev 2521 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 2530 drivers/net/ethernet/ibm/emac/core.c struct net_device *ndev = phy->dev; ndev 2531 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 2541 drivers/net/ethernet/ibm/emac/core.c struct net_device *ndev = phy->dev; ndev 2542 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 2548 drivers/net/ethernet/ibm/emac/core.c return ethtool_op_get_link(ndev); ndev 2556 drivers/net/ethernet/ibm/emac/core.c struct net_device *ndev = phy->dev; ndev 2557 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 2574 drivers/net/ethernet/ibm/emac/core.c struct net_device *ndev = phy->dev; ndev 2575 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(ndev); ndev 2611 drivers/net/ethernet/ibm/emac/core.c dev->mii_bus->priv = dev->ndev; ndev 2612 drivers/net/ethernet/ibm/emac/core.c dev->mii_bus->parent = dev->ndev->dev.parent; ndev 2637 drivers/net/ethernet/ibm/emac/core.c dev->phy_dev = of_phy_connect(dev->ndev, phy_handle, &emac_adjust_link, ndev 2679 drivers/net/ethernet/ibm/emac/core.c struct net_device *ndev = dev->ndev; ndev 2683 drivers/net/ethernet/ibm/emac/core.c dev->phy.dev = ndev; ndev 2712 drivers/net/ethernet/ibm/emac/core.c emac_adjust_link(dev->ndev); ndev 2790 drivers/net/ethernet/ibm/emac/core.c r = emac_mdio_read(dev->ndev, i, MII_BMCR); ndev 2984 drivers/net/ethernet/ibm/emac/core.c memcpy(dev->ndev->dev_addr, p, ETH_ALEN); ndev 3035 drivers/net/ethernet/ibm/emac/core.c struct net_device *ndev; ndev 3055 drivers/net/ethernet/ibm/emac/core.c ndev = alloc_etherdev(sizeof(struct emac_instance)); ndev 3056 drivers/net/ethernet/ibm/emac/core.c if (!ndev) ndev 3059 drivers/net/ethernet/ibm/emac/core.c dev = netdev_priv(ndev); ndev 3060 drivers/net/ethernet/ibm/emac/core.c dev->ndev = ndev; ndev 3063 drivers/net/ethernet/ibm/emac/core.c SET_NETDEV_DEV(ndev, &ofdev->dev); ndev 3084 drivers/net/ethernet/ibm/emac/core.c ndev->irq = dev->emac_irq; ndev 3118 drivers/net/ethernet/ibm/emac/core.c dev->rx_skb_size = emac_rx_skb_size(ndev->mtu); ndev 3119 drivers/net/ethernet/ibm/emac/core.c dev->rx_sync_size = emac_rx_sync_size(ndev->mtu); ndev 3172 drivers/net/ethernet/ibm/emac/core.c ndev->hw_features = NETIF_F_IP_CSUM | NETIF_F_SG; ndev 3173 drivers/net/ethernet/ibm/emac/core.c ndev->features |= ndev->hw_features | NETIF_F_RXCSUM; ndev 3175 drivers/net/ethernet/ibm/emac/core.c ndev->watchdog_timeo = 5 * HZ; ndev 3177 drivers/net/ethernet/ibm/emac/core.c ndev->netdev_ops = &emac_gige_netdev_ops; ndev 3180 drivers/net/ethernet/ibm/emac/core.c ndev->netdev_ops = &emac_netdev_ops; ndev 3181 drivers/net/ethernet/ibm/emac/core.c ndev->ethtool_ops = &emac_ethtool_ops; ndev 3184 drivers/net/ethernet/ibm/emac/core.c ndev->min_mtu = EMAC_MIN_MTU; ndev 3185 drivers/net/ethernet/ibm/emac/core.c ndev->max_mtu = dev->max_mtu; ndev 3187 drivers/net/ethernet/ibm/emac/core.c netif_carrier_off(ndev); ndev 3189 drivers/net/ethernet/ibm/emac/core.c err = register_netdev(ndev); ndev 3207 drivers/net/ethernet/ibm/emac/core.c ndev->name, dev->cell_index, np, ndev->dev_addr); ndev 3210 drivers/net/ethernet/ibm/emac/core.c printk(KERN_NOTICE "%s: in SGMII mode\n", ndev->name); ndev 3213 drivers/net/ethernet/ibm/emac/core.c printk("%s: found %s PHY (0x%02x)\n", ndev->name, ndev 3242 drivers/net/ethernet/ibm/emac/core.c free_netdev(ndev); ndev 3261 drivers/net/ethernet/ibm/emac/core.c unregister_netdev(dev->ndev); ndev 3291 drivers/net/ethernet/ibm/emac/core.c free_netdev(dev->ndev); ndev 160 drivers/net/ethernet/ibm/emac/core.h struct net_device *ndev; ndev 3378 drivers/net/ethernet/marvell/mvneta.c struct net_device *ndev = to_net_dev(config->dev); ndev 3379 drivers/net/ethernet/marvell/mvneta.c struct mvneta_port *pp = netdev_priv(ndev); ndev 3431 drivers/net/ethernet/marvell/mvneta.c struct net_device *ndev = to_net_dev(config->dev); ndev 3432 drivers/net/ethernet/marvell/mvneta.c struct mvneta_port *pp = netdev_priv(ndev); ndev 3461 drivers/net/ethernet/marvell/mvneta.c struct net_device *ndev = to_net_dev(config->dev); ndev 3462 drivers/net/ethernet/marvell/mvneta.c struct mvneta_port *pp = netdev_priv(ndev); ndev 3474 drivers/net/ethernet/marvell/mvneta.c struct net_device *ndev = to_net_dev(config->dev); ndev 3475 drivers/net/ethernet/marvell/mvneta.c struct mvneta_port *pp = netdev_priv(ndev); ndev 3607 drivers/net/ethernet/marvell/mvneta.c struct net_device *ndev = to_net_dev(config->dev); ndev 3608 drivers/net/ethernet/marvell/mvneta.c struct mvneta_port *pp = netdev_priv(ndev); ndev 3628 drivers/net/ethernet/marvell/mvneta.c struct net_device *ndev = to_net_dev(config->dev); ndev 3629 drivers/net/ethernet/marvell/mvneta.c struct mvneta_port *pp = netdev_priv(ndev); ndev 3953 drivers/net/ethernet/marvell/mvneta.c mvneta_ethtool_set_link_ksettings(struct net_device *ndev, ndev 3956 drivers/net/ethernet/marvell/mvneta.c struct mvneta_port *pp = netdev_priv(ndev); ndev 3963 drivers/net/ethernet/marvell/mvneta.c mvneta_ethtool_get_link_ksettings(struct net_device *ndev, ndev 3966 drivers/net/ethernet/marvell/mvneta.c struct mvneta_port *pp = netdev_priv(ndev); ndev 5247 drivers/net/ethernet/marvell/sky2.c struct net_device *ndev = hw->dev[port]; ndev 5250 drivers/net/ethernet/marvell/sky2.c if (netif_running(ndev)) { ndev 5251 drivers/net/ethernet/marvell/sky2.c dev_close(ndev); ndev 5252 drivers/net/ethernet/marvell/sky2.c netif_device_detach(ndev); ndev 2578 drivers/net/ethernet/mediatek/mtk_eth_soc.c static int mtk_get_link_ksettings(struct net_device *ndev, ndev 2581 drivers/net/ethernet/mediatek/mtk_eth_soc.c struct mtk_mac *mac = netdev_priv(ndev); ndev 2589 drivers/net/ethernet/mediatek/mtk_eth_soc.c static int mtk_set_link_ksettings(struct net_device *ndev, ndev 2592 drivers/net/ethernet/mediatek/mtk_eth_soc.c struct mtk_mac *mac = netdev_priv(ndev); ndev 3035 drivers/net/ethernet/mellanox/mlx4/en_netdev.c struct net_device *ndev = netdev_notifier_info_to_dev(ptr); ndev 3045 drivers/net/ethernet/mellanox/mlx4/en_netdev.c if (!net_eq(dev_net(ndev), &init_net)) ndev 3056 drivers/net/ethernet/mellanox/mlx4/en_netdev.c if (!port && (mdev->pndev[i] == ndev)) ndev 3076 drivers/net/ethernet/mellanox/mlx4/en_netdev.c priv = netdev_priv(ndev); ndev 975 drivers/net/ethernet/mellanox/mlx5/core/en.h void mlx5e_self_test(struct net_device *ndev, struct ethtool_test *etest, ndev 112 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c struct net_device *ndev = priv->netdev; ndev 127 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c netdev_warn(ndev, ndev 146 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c netdev_err(ndev, "Failed to modify vport vlans list err(%d)\n", ndev 482 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c struct net_device *ndev = priv->netdev; ndev 492 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ether_addr_copy(addr_array[i++], ndev->dev_addr); ndev 494 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ether_addr_copy(addr_array[i++], ndev->broadcast); ndev 497 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (ether_addr_equal(ndev->dev_addr, hn->ai.addr)) ndev 599 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c struct net_device *ndev = priv->netdev; ndev 602 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c bool promisc_enabled = rx_mode_enable && (ndev->flags & IFF_PROMISC); ndev 603 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c bool allmulti_enabled = rx_mode_enable && (ndev->flags & IFF_ALLMULTI); ndev 615 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c netdev_warn_once(ndev, ndev 182 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c struct net_device *ndev, ndev 326 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c void mlx5e_self_test(struct net_device *ndev, struct ethtool_test *etest, ndev 329 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c struct mlx5e_priv *priv = netdev_priv(ndev); ndev 335 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c netdev_info(ndev, "Self test begin..\n"); ndev 338 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c netdev_info(ndev, "\t[%d] %s start..\n", ndev 341 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c netdev_info(ndev, "\t[%d] %s end: result(%lld)\n", ndev 353 drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c netdev_info(ndev, "Self test out: status flags(0x%x)\n", ndev 4082 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct net_device *ndev = netdev_notifier_info_to_dev(ptr); ndev 4088 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (ndev->netdev_ops != &mlx5e_netdev_ops || ndev 4090 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c ndev->reg_state == NETREG_REGISTERED) ndev 4096 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c peer_priv = netdev_priv(ndev); ndev 122 drivers/net/ethernet/mellanox/mlx5/core/lag.c struct net_device *ndev) ndev 127 drivers/net/ethernet/mellanox/mlx5/core/lag.c if (ldev->pf[i].netdev == ndev) ndev 373 drivers/net/ethernet/mellanox/mlx5/core/lag.c struct net_device *ndev, ndev 431 drivers/net/ethernet/mellanox/mlx5/core/lag.c struct net_device *ndev, ndev 437 drivers/net/ethernet/mellanox/mlx5/core/lag.c if (!netif_is_lag_port(ndev)) ndev 440 drivers/net/ethernet/mellanox/mlx5/core/lag.c idx = mlx5_lag_dev_get_netdev_idx(ldev, ndev); ndev 459 drivers/net/ethernet/mellanox/mlx5/core/lag.c struct net_device *ndev = netdev_notifier_info_to_dev(ptr); ndev 464 drivers/net/ethernet/mellanox/mlx5/core/lag.c if (!net_eq(dev_net(ndev), &init_net)) ndev 475 drivers/net/ethernet/mellanox/mlx5/core/lag.c changed = mlx5_handle_changeupper_event(ldev, &tracker, ndev, ndev 480 drivers/net/ethernet/mellanox/mlx5/core/lag.c ndev, ptr); ndev 685 drivers/net/ethernet/mellanox/mlx5/core/lag.c struct net_device *ndev = NULL; ndev 695 drivers/net/ethernet/mellanox/mlx5/core/lag.c ndev = ldev->tracker.netdev_state[0].tx_enabled ? ndev 698 drivers/net/ethernet/mellanox/mlx5/core/lag.c ndev = ldev->pf[0].netdev; ndev 700 drivers/net/ethernet/mellanox/mlx5/core/lag.c if (ndev) ndev 701 drivers/net/ethernet/mellanox/mlx5/core/lag.c dev_hold(ndev); ndev 706 drivers/net/ethernet/mellanox/mlx5/core/lag.c return ndev; ndev 63 drivers/net/ethernet/mellanox/mlx5/core/lag.h struct net_device *ndev); ndev 1416 drivers/net/ethernet/micrel/ks8851.c struct net_device *ndev; ndev 1422 drivers/net/ethernet/micrel/ks8851.c ndev = alloc_etherdev(sizeof(struct ks8851_net)); ndev 1423 drivers/net/ethernet/micrel/ks8851.c if (!ndev) ndev 1428 drivers/net/ethernet/micrel/ks8851.c ks = netdev_priv(ndev); ndev 1430 drivers/net/ethernet/micrel/ks8851.c ks->netdev = ndev; ndev 1505 drivers/net/ethernet/micrel/ks8851.c ks->mii.dev = ndev; ndev 1521 drivers/net/ethernet/micrel/ks8851.c ndev->ethtool_ops = &ks8851_ethtool_ops; ndev 1522 drivers/net/ethernet/micrel/ks8851.c SET_NETDEV_DEV(ndev, &spi->dev); ndev 1527 drivers/net/ethernet/micrel/ks8851.c ndev->if_port = IF_PORT_100BASET; ndev 1528 drivers/net/ethernet/micrel/ks8851.c ndev->netdev_ops = &ks8851_netdev_ops; ndev 1529 drivers/net/ethernet/micrel/ks8851.c ndev->irq = spi->irq; ndev 1548 drivers/net/ethernet/micrel/ks8851.c ret = register_netdev(ndev); ndev 1554 drivers/net/ethernet/micrel/ks8851.c netdev_info(ndev, "revision %d, MAC %pM, IRQ %d, %s EEPROM\n", ndev 1555 drivers/net/ethernet/micrel/ks8851.c CIDER_REV_GET(cider), ndev->dev_addr, ndev->irq, ndev 1569 drivers/net/ethernet/micrel/ks8851.c free_netdev(ndev); ndev 478 drivers/net/ethernet/microchip/enc28j60.c static int enc28j60_set_hw_macaddr(struct net_device *ndev) ndev 481 drivers/net/ethernet/microchip/enc28j60.c struct enc28j60_net *priv = netdev_priv(ndev); ndev 488 drivers/net/ethernet/microchip/enc28j60.c ndev->name, ndev->dev_addr); ndev 490 drivers/net/ethernet/microchip/enc28j60.c nolock_regb_write(priv, MAADR5, ndev->dev_addr[0]); ndev 491 drivers/net/ethernet/microchip/enc28j60.c nolock_regb_write(priv, MAADR4, ndev->dev_addr[1]); ndev 492 drivers/net/ethernet/microchip/enc28j60.c nolock_regb_write(priv, MAADR3, ndev->dev_addr[2]); ndev 493 drivers/net/ethernet/microchip/enc28j60.c nolock_regb_write(priv, MAADR2, ndev->dev_addr[3]); ndev 494 drivers/net/ethernet/microchip/enc28j60.c nolock_regb_write(priv, MAADR1, ndev->dev_addr[4]); ndev 495 drivers/net/ethernet/microchip/enc28j60.c nolock_regb_write(priv, MAADR0, ndev->dev_addr[5]); ndev 778 drivers/net/ethernet/microchip/enc28j60.c enc28j60_setlink(struct net_device *ndev, u8 autoneg, u16 speed, u8 duplex) ndev 780 drivers/net/ethernet/microchip/enc28j60.c struct enc28j60_net *priv = netdev_priv(ndev); ndev 791 drivers/net/ethernet/microchip/enc28j60.c netdev_warn(ndev, "unsupported link setting\n"); ndev 796 drivers/net/ethernet/microchip/enc28j60.c netdev_warn(ndev, "Warning: hw must be disabled to set link mode\n"); ndev 903 drivers/net/ethernet/microchip/enc28j60.c static void enc28j60_hw_rx(struct net_device *ndev) ndev 905 drivers/net/ethernet/microchip/enc28j60.c struct enc28j60_net *priv = netdev_priv(ndev); ndev 913 drivers/net/ethernet/microchip/enc28j60.c netdev_printk(KERN_DEBUG, ndev, "RX pk_addr:0x%04x\n", ndev 918 drivers/net/ethernet/microchip/enc28j60.c netdev_err(ndev, "%s() Invalid packet address!! 0x%04x\n", ndev 929 drivers/net/ethernet/microchip/enc28j60.c ndev->stats.rx_errors++; ndev 952 drivers/net/ethernet/microchip/enc28j60.c netdev_err(ndev, "Rx Error (%04x)\n", rxstat); ndev 953 drivers/net/ethernet/microchip/enc28j60.c ndev->stats.rx_errors++; ndev 955 drivers/net/ethernet/microchip/enc28j60.c ndev->stats.rx_crc_errors++; ndev 957 drivers/net/ethernet/microchip/enc28j60.c ndev->stats.rx_frame_errors++; ndev 959 drivers/net/ethernet/microchip/enc28j60.c ndev->stats.rx_over_errors++; ndev 961 drivers/net/ethernet/microchip/enc28j60.c skb = netdev_alloc_skb(ndev, len + NET_IP_ALIGN); ndev 964 drivers/net/ethernet/microchip/enc28j60.c netdev_err(ndev, "out of memory for Rx'd frame\n"); ndev 965 drivers/net/ethernet/microchip/enc28j60.c ndev->stats.rx_dropped++; ndev 974 drivers/net/ethernet/microchip/enc28j60.c skb->protocol = eth_type_trans(skb, ndev); ndev 976 drivers/net/ethernet/microchip/enc28j60.c ndev->stats.rx_packets++; ndev 977 drivers/net/ethernet/microchip/enc28j60.c ndev->stats.rx_bytes += len; ndev 1014 drivers/net/ethernet/microchip/enc28j60.c struct net_device *ndev = priv->netdev; ndev 1037 drivers/net/ethernet/microchip/enc28j60.c netdev_printk(KERN_DEBUG, ndev, "%s() free_space = %d\n", ndev 1045 drivers/net/ethernet/microchip/enc28j60.c static void enc28j60_check_link_status(struct net_device *ndev) ndev 1047 drivers/net/ethernet/microchip/enc28j60.c struct enc28j60_net *priv = netdev_priv(ndev); ndev 1060 drivers/net/ethernet/microchip/enc28j60.c netif_carrier_on(ndev); ndev 1062 drivers/net/ethernet/microchip/enc28j60.c netdev_info(ndev, "link up - %s\n", ndev 1066 drivers/net/ethernet/microchip/enc28j60.c netdev_info(ndev, "link down\n"); ndev 1067 drivers/net/ethernet/microchip/enc28j60.c netif_carrier_off(ndev); ndev 1071 drivers/net/ethernet/microchip/enc28j60.c static void enc28j60_tx_clear(struct net_device *ndev, bool err) ndev 1073 drivers/net/ethernet/microchip/enc28j60.c struct enc28j60_net *priv = netdev_priv(ndev); ndev 1076 drivers/net/ethernet/microchip/enc28j60.c ndev->stats.tx_errors++; ndev 1078 drivers/net/ethernet/microchip/enc28j60.c ndev->stats.tx_packets++; ndev 1082 drivers/net/ethernet/microchip/enc28j60.c ndev->stats.tx_bytes += priv->tx_skb->len; ndev 1087 drivers/net/ethernet/microchip/enc28j60.c netif_wake_queue(ndev); ndev 1098 drivers/net/ethernet/microchip/enc28j60.c static int enc28j60_rx_interrupt(struct net_device *ndev) ndev 1100 drivers/net/ethernet/microchip/enc28j60.c struct enc28j60_net *priv = netdev_priv(ndev); ndev 1105 drivers/net/ethernet/microchip/enc28j60.c netdev_printk(KERN_DEBUG, ndev, "intRX, pk_cnt: %d\n", ndev 1111 drivers/net/ethernet/microchip/enc28j60.c netdev_printk(KERN_DEBUG, ndev, "RX max_pk_cnt: %d\n", ndev 1116 drivers/net/ethernet/microchip/enc28j60.c enc28j60_hw_rx(ndev); ndev 1125 drivers/net/ethernet/microchip/enc28j60.c struct net_device *ndev = priv->netdev; ndev 1138 drivers/net/ethernet/microchip/enc28j60.c netdev_printk(KERN_DEBUG, ndev, "intDMA(%d)\n", ndev 1146 drivers/net/ethernet/microchip/enc28j60.c netdev_printk(KERN_DEBUG, ndev, "intLINK(%d)\n", ndev 1148 drivers/net/ethernet/microchip/enc28j60.c enc28j60_check_link_status(ndev); ndev 1158 drivers/net/ethernet/microchip/enc28j60.c netdev_printk(KERN_DEBUG, ndev, "intTX(%d)\n", ndev 1163 drivers/net/ethernet/microchip/enc28j60.c netdev_err(ndev, "Tx Error (aborted)\n"); ndev 1171 drivers/net/ethernet/microchip/enc28j60.c enc28j60_tx_clear(ndev, err); ndev 1180 drivers/net/ethernet/microchip/enc28j60.c netdev_printk(KERN_DEBUG, ndev, "intTXErr(%d)\n", ndev 1195 drivers/net/ethernet/microchip/enc28j60.c netdev_printk(KERN_DEBUG, ndev, ndev 1202 drivers/net/ethernet/microchip/enc28j60.c enc28j60_tx_clear(ndev, true); ndev 1204 drivers/net/ethernet/microchip/enc28j60.c enc28j60_tx_clear(ndev, true); ndev 1211 drivers/net/ethernet/microchip/enc28j60.c netdev_printk(KERN_DEBUG, ndev, "intRXErr(%d)\n", ndev 1216 drivers/net/ethernet/microchip/enc28j60.c netdev_printk(KERN_DEBUG, ndev, "RX Overrun\n"); ndev 1217 drivers/net/ethernet/microchip/enc28j60.c ndev->stats.rx_dropped++; ndev 1222 drivers/net/ethernet/microchip/enc28j60.c if (enc28j60_rx_interrupt(ndev)) ndev 1237 drivers/net/ethernet/microchip/enc28j60.c struct net_device *ndev = priv->netdev; ndev 1242 drivers/net/ethernet/microchip/enc28j60.c netdev_printk(KERN_DEBUG, ndev, "Tx Packet Len:%d\n", ndev 1328 drivers/net/ethernet/microchip/enc28j60.c static void enc28j60_tx_timeout(struct net_device *ndev) ndev 1330 drivers/net/ethernet/microchip/enc28j60.c struct enc28j60_net *priv = netdev_priv(ndev); ndev 1333 drivers/net/ethernet/microchip/enc28j60.c netdev_err(ndev, "tx timeout\n"); ndev 1335 drivers/net/ethernet/microchip/enc28j60.c ndev->stats.tx_errors++; ndev 1450 drivers/net/ethernet/microchip/enc28j60.c struct net_device *ndev = priv->netdev; ndev 1454 drivers/net/ethernet/microchip/enc28j60.c if (netif_running(ndev)) { ndev 1455 drivers/net/ethernet/microchip/enc28j60.c enc28j60_net_close(ndev); ndev 1456 drivers/net/ethernet/microchip/enc28j60.c ret = enc28j60_net_open(ndev); ndev 1458 drivers/net/ethernet/microchip/enc28j60.c netdev_info(ndev, "could not restart %d\n", ret); ndev 1459 drivers/net/ethernet/microchip/enc28j60.c dev_close(ndev); ndev 48 drivers/net/ethernet/microchip/encx24j600.c struct net_device *ndev; ndev 74 drivers/net/ethernet/microchip/encx24j600.c struct net_device *dev = priv->ndev; ndev 100 drivers/net/ethernet/microchip/encx24j600.c struct net_device *dev = priv->ndev; ndev 112 drivers/net/ethernet/microchip/encx24j600.c struct net_device *dev = priv->ndev; ndev 123 drivers/net/ethernet/microchip/encx24j600.c struct net_device *dev = priv->ndev; ndev 133 drivers/net/ethernet/microchip/encx24j600.c struct net_device *dev = priv->ndev; ndev 145 drivers/net/ethernet/microchip/encx24j600.c struct net_device *dev = priv->ndev; ndev 165 drivers/net/ethernet/microchip/encx24j600.c struct net_device *dev = priv->ndev; ndev 221 drivers/net/ethernet/microchip/encx24j600.c struct net_device *dev = priv->ndev; ndev 267 drivers/net/ethernet/microchip/encx24j600.c struct net_device *dev = priv->ndev; ndev 293 drivers/net/ethernet/microchip/encx24j600.c struct net_device *dev = priv->ndev; ndev 302 drivers/net/ethernet/microchip/encx24j600.c struct net_device *dev = priv->ndev; ndev 333 drivers/net/ethernet/microchip/encx24j600.c struct net_device *dev = priv->ndev; ndev 362 drivers/net/ethernet/microchip/encx24j600.c struct net_device *dev = priv->ndev; ndev 404 drivers/net/ethernet/microchip/encx24j600.c struct net_device *dev = priv->ndev; ndev 835 drivers/net/ethernet/microchip/encx24j600.c struct net_device *dev = priv->ndev; ndev 1005 drivers/net/ethernet/microchip/encx24j600.c struct net_device *ndev; ndev 1009 drivers/net/ethernet/microchip/encx24j600.c ndev = alloc_etherdev(sizeof(struct encx24j600_priv)); ndev 1011 drivers/net/ethernet/microchip/encx24j600.c if (!ndev) { ndev 1016 drivers/net/ethernet/microchip/encx24j600.c priv = netdev_priv(ndev); ndev 1019 drivers/net/ethernet/microchip/encx24j600.c SET_NETDEV_DEV(ndev, &spi->dev); ndev 1022 drivers/net/ethernet/microchip/encx24j600.c priv->ndev = ndev; ndev 1031 drivers/net/ethernet/microchip/encx24j600.c ndev->irq = spi->irq; ndev 1032 drivers/net/ethernet/microchip/encx24j600.c ndev->netdev_ops = &encx24j600_netdev_ops; ndev 1038 drivers/net/ethernet/microchip/encx24j600.c netif_err(priv, probe, ndev, ndev 1046 drivers/net/ethernet/microchip/encx24j600.c netif_err(priv, probe, ndev, ndev 1065 drivers/net/ethernet/microchip/encx24j600.c encx24j600_hw_get_macaddr(priv, ndev->dev_addr); ndev 1067 drivers/net/ethernet/microchip/encx24j600.c ndev->ethtool_ops = &encx24j600_ethtool_ops; ndev 1069 drivers/net/ethernet/microchip/encx24j600.c ret = register_netdev(ndev); ndev 1071 drivers/net/ethernet/microchip/encx24j600.c netif_err(priv, probe, ndev, "Error %d initializing card encx24j600 card\n", ndev 1082 drivers/net/ethernet/microchip/encx24j600.c netif_info(priv, probe, ndev, "Silicon rev ID: 0x%02x\n", ndev 1085 drivers/net/ethernet/microchip/encx24j600.c netif_info(priv, drv, priv->ndev, "MAC address %pM\n", ndev->dev_addr); ndev 1090 drivers/net/ethernet/microchip/encx24j600.c unregister_netdev(priv->ndev); ndev 1094 drivers/net/ethernet/microchip/encx24j600.c free_netdev(ndev); ndev 1104 drivers/net/ethernet/microchip/encx24j600.c unregister_netdev(priv->ndev); ndev 1107 drivers/net/ethernet/microchip/encx24j600.c free_netdev(priv->ndev); ndev 42 drivers/net/ethernet/moxa/moxart_ether.c static inline void moxart_emac_write(struct net_device *ndev, ndev 45 drivers/net/ethernet/moxa/moxart_ether.c struct moxart_mac_priv_t *priv = netdev_priv(ndev); ndev 50 drivers/net/ethernet/moxa/moxart_ether.c static void moxart_update_mac_address(struct net_device *ndev) ndev 52 drivers/net/ethernet/moxa/moxart_ether.c moxart_emac_write(ndev, REG_MAC_MS_ADDRESS, ndev 53 drivers/net/ethernet/moxa/moxart_ether.c ((ndev->dev_addr[0] << 8) | (ndev->dev_addr[1]))); ndev 54 drivers/net/ethernet/moxa/moxart_ether.c moxart_emac_write(ndev, REG_MAC_MS_ADDRESS + 4, ndev 55 drivers/net/ethernet/moxa/moxart_ether.c ((ndev->dev_addr[2] << 24) | ndev 56 drivers/net/ethernet/moxa/moxart_ether.c (ndev->dev_addr[3] << 16) | ndev 57 drivers/net/ethernet/moxa/moxart_ether.c (ndev->dev_addr[4] << 8) | ndev 58 drivers/net/ethernet/moxa/moxart_ether.c (ndev->dev_addr[5]))); ndev 61 drivers/net/ethernet/moxa/moxart_ether.c static int moxart_set_mac_address(struct net_device *ndev, void *addr) ndev 68 drivers/net/ethernet/moxa/moxart_ether.c memcpy(ndev->dev_addr, address->sa_data, ndev->addr_len); ndev 69 drivers/net/ethernet/moxa/moxart_ether.c moxart_update_mac_address(ndev); ndev 74 drivers/net/ethernet/moxa/moxart_ether.c static void moxart_mac_free_memory(struct net_device *ndev) ndev 76 drivers/net/ethernet/moxa/moxart_ether.c struct moxart_mac_priv_t *priv = netdev_priv(ndev); ndev 80 drivers/net/ethernet/moxa/moxart_ether.c dma_unmap_single(&ndev->dev, priv->rx_mapping[i], ndev 97 drivers/net/ethernet/moxa/moxart_ether.c static void moxart_mac_reset(struct net_device *ndev) ndev 99 drivers/net/ethernet/moxa/moxart_ether.c struct moxart_mac_priv_t *priv = netdev_priv(ndev); ndev 110 drivers/net/ethernet/moxa/moxart_ether.c static void moxart_mac_enable(struct net_device *ndev) ndev 112 drivers/net/ethernet/moxa/moxart_ether.c struct moxart_mac_priv_t *priv = netdev_priv(ndev); ndev 125 drivers/net/ethernet/moxa/moxart_ether.c static void moxart_mac_setup_desc_ring(struct net_device *ndev) ndev 127 drivers/net/ethernet/moxa/moxart_ether.c struct moxart_mac_priv_t *priv = netdev_priv(ndev); ndev 150 drivers/net/ethernet/moxa/moxart_ether.c priv->rx_mapping[i] = dma_map_single(&ndev->dev, ndev 154 drivers/net/ethernet/moxa/moxart_ether.c if (dma_mapping_error(&ndev->dev, priv->rx_mapping[i])) ndev 155 drivers/net/ethernet/moxa/moxart_ether.c netdev_err(ndev, "DMA mapping error\n"); ndev 171 drivers/net/ethernet/moxa/moxart_ether.c static int moxart_mac_open(struct net_device *ndev) ndev 173 drivers/net/ethernet/moxa/moxart_ether.c struct moxart_mac_priv_t *priv = netdev_priv(ndev); ndev 175 drivers/net/ethernet/moxa/moxart_ether.c if (!is_valid_ether_addr(ndev->dev_addr)) ndev 180 drivers/net/ethernet/moxa/moxart_ether.c moxart_mac_reset(ndev); ndev 181 drivers/net/ethernet/moxa/moxart_ether.c moxart_update_mac_address(ndev); ndev 182 drivers/net/ethernet/moxa/moxart_ether.c moxart_mac_setup_desc_ring(ndev); ndev 183 drivers/net/ethernet/moxa/moxart_ether.c moxart_mac_enable(ndev); ndev 184 drivers/net/ethernet/moxa/moxart_ether.c netif_start_queue(ndev); ndev 186 drivers/net/ethernet/moxa/moxart_ether.c netdev_dbg(ndev, "%s: IMR=0x%x, MACCR=0x%x\n", ndev 193 drivers/net/ethernet/moxa/moxart_ether.c static int moxart_mac_stop(struct net_device *ndev) ndev 195 drivers/net/ethernet/moxa/moxart_ether.c struct moxart_mac_priv_t *priv = netdev_priv(ndev); ndev 199 drivers/net/ethernet/moxa/moxart_ether.c netif_stop_queue(ndev); ndev 215 drivers/net/ethernet/moxa/moxart_ether.c struct net_device *ndev = priv->ndev; ndev 233 drivers/net/ethernet/moxa/moxart_ether.c ndev->stats.rx_dropped++; ndev 234 drivers/net/ethernet/moxa/moxart_ether.c ndev->stats.rx_errors++; ndev 243 drivers/net/ethernet/moxa/moxart_ether.c dma_sync_single_for_cpu(&ndev->dev, ndev 246 drivers/net/ethernet/moxa/moxart_ether.c skb = netdev_alloc_skb_ip_align(ndev, len); ndev 250 drivers/net/ethernet/moxa/moxart_ether.c ndev->stats.rx_dropped++; ndev 251 drivers/net/ethernet/moxa/moxart_ether.c ndev->stats.rx_errors++; ndev 257 drivers/net/ethernet/moxa/moxart_ether.c skb->protocol = eth_type_trans(skb, ndev); ndev 261 drivers/net/ethernet/moxa/moxart_ether.c ndev->stats.rx_packets++; ndev 262 drivers/net/ethernet/moxa/moxart_ether.c ndev->stats.rx_bytes += len; ndev 264 drivers/net/ethernet/moxa/moxart_ether.c ndev->stats.multicast++; ndev 283 drivers/net/ethernet/moxa/moxart_ether.c static int moxart_tx_queue_space(struct net_device *ndev) ndev 285 drivers/net/ethernet/moxa/moxart_ether.c struct moxart_mac_priv_t *priv = netdev_priv(ndev); ndev 290 drivers/net/ethernet/moxa/moxart_ether.c static void moxart_tx_finished(struct net_device *ndev) ndev 292 drivers/net/ethernet/moxa/moxart_ether.c struct moxart_mac_priv_t *priv = netdev_priv(ndev); ndev 297 drivers/net/ethernet/moxa/moxart_ether.c dma_unmap_single(&ndev->dev, priv->tx_mapping[tx_tail], ndev 300 drivers/net/ethernet/moxa/moxart_ether.c ndev->stats.tx_packets++; ndev 301 drivers/net/ethernet/moxa/moxart_ether.c ndev->stats.tx_bytes += priv->tx_skb[tx_tail]->len; ndev 309 drivers/net/ethernet/moxa/moxart_ether.c if (netif_queue_stopped(ndev) && ndev 310 drivers/net/ethernet/moxa/moxart_ether.c moxart_tx_queue_space(ndev) >= TX_WAKE_THRESHOLD) ndev 311 drivers/net/ethernet/moxa/moxart_ether.c netif_wake_queue(ndev); ndev 316 drivers/net/ethernet/moxa/moxart_ether.c struct net_device *ndev = (struct net_device *)dev_id; ndev 317 drivers/net/ethernet/moxa/moxart_ether.c struct moxart_mac_priv_t *priv = netdev_priv(ndev); ndev 321 drivers/net/ethernet/moxa/moxart_ether.c moxart_tx_finished(ndev); ndev 334 drivers/net/ethernet/moxa/moxart_ether.c static int moxart_mac_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 336 drivers/net/ethernet/moxa/moxart_ether.c struct moxart_mac_priv_t *priv = netdev_priv(ndev); ndev 348 drivers/net/ethernet/moxa/moxart_ether.c if (moxart_tx_queue_space(ndev) == 1) ndev 349 drivers/net/ethernet/moxa/moxart_ether.c netif_stop_queue(ndev); ndev 353 drivers/net/ethernet/moxa/moxart_ether.c ndev->stats.tx_dropped++; ndev 360 drivers/net/ethernet/moxa/moxart_ether.c priv->tx_mapping[tx_head] = dma_map_single(&ndev->dev, skb->data, ndev 362 drivers/net/ethernet/moxa/moxart_ether.c if (dma_mapping_error(&ndev->dev, priv->tx_mapping[tx_head])) { ndev 363 drivers/net/ethernet/moxa/moxart_ether.c netdev_err(ndev, "DMA mapping error\n"); ndev 381 drivers/net/ethernet/moxa/moxart_ether.c dma_sync_single_for_device(&ndev->dev, priv->tx_mapping[tx_head], ndev 396 drivers/net/ethernet/moxa/moxart_ether.c netif_trans_update(ndev); ndev 404 drivers/net/ethernet/moxa/moxart_ether.c static void moxart_mac_setmulticast(struct net_device *ndev) ndev 406 drivers/net/ethernet/moxa/moxart_ether.c struct moxart_mac_priv_t *priv = netdev_priv(ndev); ndev 410 drivers/net/ethernet/moxa/moxart_ether.c netdev_for_each_mc_addr(ha, ndev) { ndev 425 drivers/net/ethernet/moxa/moxart_ether.c static void moxart_mac_set_rx_mode(struct net_device *ndev) ndev 427 drivers/net/ethernet/moxa/moxart_ether.c struct moxart_mac_priv_t *priv = netdev_priv(ndev); ndev 431 drivers/net/ethernet/moxa/moxart_ether.c (ndev->flags & IFF_PROMISC) ? (priv->reg_maccr |= RCV_ALL) : ndev 434 drivers/net/ethernet/moxa/moxart_ether.c (ndev->flags & IFF_ALLMULTI) ? (priv->reg_maccr |= RX_MULTIPKT) : ndev 437 drivers/net/ethernet/moxa/moxart_ether.c if ((ndev->flags & IFF_MULTICAST) && netdev_mc_count(ndev)) { ndev 439 drivers/net/ethernet/moxa/moxart_ether.c moxart_mac_setmulticast(ndev); ndev 462 drivers/net/ethernet/moxa/moxart_ether.c struct net_device *ndev; ndev 468 drivers/net/ethernet/moxa/moxart_ether.c ndev = alloc_etherdev(sizeof(struct moxart_mac_priv_t)); ndev 469 drivers/net/ethernet/moxa/moxart_ether.c if (!ndev) ndev 474 drivers/net/ethernet/moxa/moxart_ether.c netdev_err(ndev, "irq_of_parse_and_map failed\n"); ndev 479 drivers/net/ethernet/moxa/moxart_ether.c priv = netdev_priv(ndev); ndev 480 drivers/net/ethernet/moxa/moxart_ether.c priv->ndev = ndev; ndev 484 drivers/net/ethernet/moxa/moxart_ether.c ndev->base_addr = res->start; ndev 527 drivers/net/ethernet/moxa/moxart_ether.c platform_set_drvdata(pdev, ndev); ndev 530 drivers/net/ethernet/moxa/moxart_ether.c pdev->name, ndev); ndev 532 drivers/net/ethernet/moxa/moxart_ether.c netdev_err(ndev, "devm_request_irq failed\n"); ndev 536 drivers/net/ethernet/moxa/moxart_ether.c ndev->netdev_ops = &moxart_netdev_ops; ndev 537 drivers/net/ethernet/moxa/moxart_ether.c netif_napi_add(ndev, &priv->napi, moxart_rx_poll, RX_DESC_NUM); ndev 538 drivers/net/ethernet/moxa/moxart_ether.c ndev->priv_flags |= IFF_UNICAST_FLT; ndev 539 drivers/net/ethernet/moxa/moxart_ether.c ndev->irq = irq; ndev 541 drivers/net/ethernet/moxa/moxart_ether.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 543 drivers/net/ethernet/moxa/moxart_ether.c ret = register_netdev(ndev); ndev 545 drivers/net/ethernet/moxa/moxart_ether.c free_netdev(ndev); ndev 549 drivers/net/ethernet/moxa/moxart_ether.c netdev_dbg(ndev, "%s: IRQ=%d address=%pM\n", ndev 550 drivers/net/ethernet/moxa/moxart_ether.c __func__, ndev->irq, ndev->dev_addr); ndev 555 drivers/net/ethernet/moxa/moxart_ether.c netdev_err(ndev, "init failed\n"); ndev 556 drivers/net/ethernet/moxa/moxart_ether.c moxart_mac_free_memory(ndev); ndev 558 drivers/net/ethernet/moxa/moxart_ether.c free_netdev(ndev); ndev 564 drivers/net/ethernet/moxa/moxart_ether.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 566 drivers/net/ethernet/moxa/moxart_ether.c unregister_netdev(ndev); ndev 567 drivers/net/ethernet/moxa/moxart_ether.c devm_free_irq(&pdev->dev, ndev->irq, ndev); ndev 568 drivers/net/ethernet/moxa/moxart_ether.c moxart_mac_free_memory(ndev); ndev 569 drivers/net/ethernet/moxa/moxart_ether.c free_netdev(ndev); ndev 300 drivers/net/ethernet/moxa/moxart_ether.h struct net_device *ndev; ndev 1603 drivers/net/ethernet/mscc/ocelot.c struct net_device *ndev; ndev 1607 drivers/net/ethernet/mscc/ocelot.c for_each_netdev_in_bond_rcu(bond, ndev) { ndev 1608 drivers/net/ethernet/mscc/ocelot.c struct ocelot_port *port = netdev_priv(ndev); ndev 581 drivers/net/ethernet/natsemi/macsonic.c struct net_device *ndev; ndev 605 drivers/net/ethernet/natsemi/macsonic.c ndev = alloc_etherdev(sizeof(struct sonic_local)); ndev 606 drivers/net/ethernet/natsemi/macsonic.c if (!ndev) ndev 609 drivers/net/ethernet/natsemi/macsonic.c lp = netdev_priv(ndev); ndev 611 drivers/net/ethernet/natsemi/macsonic.c SET_NETDEV_DEV(ndev, &board->dev); ndev 613 drivers/net/ethernet/natsemi/macsonic.c err = mac_sonic_nubus_probe_board(board, id, ndev); ndev 617 drivers/net/ethernet/natsemi/macsonic.c sonic_msg_init(ndev); ndev 619 drivers/net/ethernet/natsemi/macsonic.c err = register_netdev(ndev); ndev 623 drivers/net/ethernet/natsemi/macsonic.c nubus_set_drvdata(board, ndev); ndev 628 drivers/net/ethernet/natsemi/macsonic.c free_netdev(ndev); ndev 634 drivers/net/ethernet/natsemi/macsonic.c struct net_device *ndev = nubus_get_drvdata(board); ndev 635 drivers/net/ethernet/natsemi/macsonic.c struct sonic_local *lp = netdev_priv(ndev); ndev 637 drivers/net/ethernet/natsemi/macsonic.c unregister_netdev(ndev); ndev 641 drivers/net/ethernet/natsemi/macsonic.c free_netdev(ndev); ndev 415 drivers/net/ethernet/natsemi/ns83820.c struct net_device *ndev; ndev 457 drivers/net/ethernet/natsemi/ns83820.c static inline void kick_rx(struct net_device *ndev) ndev 459 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 468 drivers/net/ethernet/natsemi/ns83820.c ndev->name); ndev 539 drivers/net/ethernet/natsemi/ns83820.c static inline int rx_refill(struct net_device *ndev, gfp_t gfp) ndev 541 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 548 drivers/net/ethernet/natsemi/ns83820.c dprintk("rx_refill(%p)\n", ndev); ndev 556 drivers/net/ethernet/natsemi/ns83820.c skb = __netdev_alloc_skb(ndev, REAL_RX_BUF_SIZE+16, gfp); ndev 577 drivers/net/ethernet/natsemi/ns83820.c static void rx_refill_atomic(struct net_device *ndev) ndev 579 drivers/net/ethernet/natsemi/ns83820.c rx_refill(ndev, GFP_ATOMIC); ndev 586 drivers/net/ethernet/natsemi/ns83820.c struct net_device *ndev = dev->ndev; ndev 588 drivers/net/ethernet/natsemi/ns83820.c rx_refill(ndev, GFP_KERNEL); ndev 590 drivers/net/ethernet/natsemi/ns83820.c kick_rx(ndev); ndev 598 drivers/net/ethernet/natsemi/ns83820.c static void phy_intr(struct net_device *ndev) ndev 600 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 690 drivers/net/ethernet/natsemi/ns83820.c netif_start_queue(ndev); ndev 691 drivers/net/ethernet/natsemi/ns83820.c netif_wake_queue(ndev); ndev 693 drivers/net/ethernet/natsemi/ns83820.c ndev->name, ndev 698 drivers/net/ethernet/natsemi/ns83820.c netif_stop_queue(ndev); ndev 699 drivers/net/ethernet/natsemi/ns83820.c printk(KERN_INFO "%s: link now down.\n", ndev->name); ndev 705 drivers/net/ethernet/natsemi/ns83820.c static int ns83820_setup_rx(struct net_device *ndev) ndev 707 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 711 drivers/net/ethernet/natsemi/ns83820.c dprintk("ns83820_setup_rx(%p)\n", ndev); ndev 724 drivers/net/ethernet/natsemi/ns83820.c ret = rx_refill(ndev, GFP_KERNEL); ndev 737 drivers/net/ethernet/natsemi/ns83820.c phy_intr(ndev); ndev 756 drivers/net/ethernet/natsemi/ns83820.c kick_rx(ndev); ndev 795 drivers/net/ethernet/natsemi/ns83820.c static void ns83820_rx_kick(struct net_device *ndev) ndev 797 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 800 drivers/net/ethernet/natsemi/ns83820.c rx_refill_atomic(ndev); ndev 801 drivers/net/ethernet/natsemi/ns83820.c kick_rx(ndev); ndev 808 drivers/net/ethernet/natsemi/ns83820.c kick_rx(ndev); ndev 810 drivers/net/ethernet/natsemi/ns83820.c printk(KERN_DEBUG "%s: BAD\n", ndev->name); ndev 816 drivers/net/ethernet/natsemi/ns83820.c static void rx_irq(struct net_device *ndev) ndev 818 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 827 drivers/net/ethernet/natsemi/ns83820.c dprintk("rx_irq(%p)\n", ndev); ndev 885 drivers/net/ethernet/natsemi/ns83820.c ndev->stats.multicast++; ndev 886 drivers/net/ethernet/natsemi/ns83820.c ndev->stats.rx_packets++; ndev 887 drivers/net/ethernet/natsemi/ns83820.c ndev->stats.rx_bytes += len; ndev 893 drivers/net/ethernet/natsemi/ns83820.c skb->protocol = eth_type_trans(skb, ndev); ndev 905 drivers/net/ethernet/natsemi/ns83820.c ndev->stats.rx_dropped++; ndev 928 drivers/net/ethernet/natsemi/ns83820.c struct net_device *ndev = (void *)_dev; ndev 929 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 930 drivers/net/ethernet/natsemi/ns83820.c rx_irq(ndev); ndev 938 drivers/net/ethernet/natsemi/ns83820.c rx_irq(ndev); ndev 939 drivers/net/ethernet/natsemi/ns83820.c ns83820_rx_kick(ndev); ndev 954 drivers/net/ethernet/natsemi/ns83820.c static void do_tx_done(struct net_device *ndev) ndev 956 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 960 drivers/net/ethernet/natsemi/ns83820.c dprintk("do_tx_done(%p)\n", ndev); ndev 973 drivers/net/ethernet/natsemi/ns83820.c ndev->stats.tx_errors++; ndev 975 drivers/net/ethernet/natsemi/ns83820.c ndev->stats.tx_packets++; ndev 977 drivers/net/ethernet/natsemi/ns83820.c ndev->stats.tx_bytes += cmdsts & 0xffff; ndev 1010 drivers/net/ethernet/natsemi/ns83820.c if (netif_queue_stopped(ndev) && start_tx_okay(dev)) { ndev 1011 drivers/net/ethernet/natsemi/ns83820.c dprintk("start_queue(%p)\n", ndev); ndev 1012 drivers/net/ethernet/natsemi/ns83820.c netif_start_queue(ndev); ndev 1013 drivers/net/ethernet/natsemi/ns83820.c netif_wake_queue(ndev); ndev 1045 drivers/net/ethernet/natsemi/ns83820.c struct net_device *ndev) ndev 1047 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 1063 drivers/net/ethernet/natsemi/ns83820.c netif_stop_queue(ndev); ndev 1066 drivers/net/ethernet/natsemi/ns83820.c netif_start_queue(ndev); ndev 1074 drivers/net/ethernet/natsemi/ns83820.c dprintk("stop_queue - not enough(%p)\n", ndev); ndev 1075 drivers/net/ethernet/natsemi/ns83820.c netif_stop_queue(ndev); ndev 1079 drivers/net/ethernet/natsemi/ns83820.c dprintk("restart queue(%p)\n", ndev); ndev 1080 drivers/net/ethernet/natsemi/ns83820.c netif_start_queue(ndev); ndev 1093 drivers/net/ethernet/natsemi/ns83820.c dprintk("stop_queue - last entry(%p)\n", ndev); ndev 1094 drivers/net/ethernet/natsemi/ns83820.c netif_stop_queue(ndev); ndev 1169 drivers/net/ethernet/natsemi/ns83820.c netif_start_queue(ndev); ndev 1176 drivers/net/ethernet/natsemi/ns83820.c struct net_device *ndev = dev->ndev; ndev 1180 drivers/net/ethernet/natsemi/ns83820.c ndev->stats.rx_errors += readl(base + 0x60) & 0xffff; ndev 1181 drivers/net/ethernet/natsemi/ns83820.c ndev->stats.rx_crc_errors += readl(base + 0x64) & 0xffff; ndev 1182 drivers/net/ethernet/natsemi/ns83820.c ndev->stats.rx_missed_errors += readl(base + 0x68) & 0xffff; ndev 1183 drivers/net/ethernet/natsemi/ns83820.c ndev->stats.rx_frame_errors += readl(base + 0x6c) & 0xffff; ndev 1185 drivers/net/ethernet/natsemi/ns83820.c ndev->stats.rx_length_errors += readl(base + 0x74) & 0xffff; ndev 1186 drivers/net/ethernet/natsemi/ns83820.c ndev->stats.rx_length_errors += readl(base + 0x78) & 0xffff; ndev 1190 drivers/net/ethernet/natsemi/ns83820.c ndev->stats.tx_carrier_errors += readl(base + 0x88) & 0xff; ndev 1193 drivers/net/ethernet/natsemi/ns83820.c static struct net_device_stats *ns83820_get_stats(struct net_device *ndev) ndev 1195 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 1202 drivers/net/ethernet/natsemi/ns83820.c return &ndev->stats; ndev 1206 drivers/net/ethernet/natsemi/ns83820.c static int ns83820_get_link_ksettings(struct net_device *ndev, ndev 1209 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 1273 drivers/net/ethernet/natsemi/ns83820.c static int ns83820_set_link_ksettings(struct net_device *ndev, ndev 1276 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 1321 drivers/net/ethernet/natsemi/ns83820.c ndev->name); ndev 1334 drivers/net/ethernet/natsemi/ns83820.c ndev->name); ndev 1340 drivers/net/ethernet/natsemi/ns83820.c printk(KERN_INFO "%s: autoneg %s via ethtool\n", ndev->name, ndev 1344 drivers/net/ethernet/natsemi/ns83820.c phy_intr(ndev); ndev 1352 drivers/net/ethernet/natsemi/ns83820.c static void ns83820_get_drvinfo(struct net_device *ndev, struct ethtool_drvinfo *info) ndev 1354 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 1360 drivers/net/ethernet/natsemi/ns83820.c static u32 ns83820_get_link(struct net_device *ndev) ndev 1362 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 1390 drivers/net/ethernet/natsemi/ns83820.c static void ns83820_do_isr(struct net_device *ndev, u32 isr); ndev 1393 drivers/net/ethernet/natsemi/ns83820.c struct net_device *ndev = data; ndev 1394 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 1396 drivers/net/ethernet/natsemi/ns83820.c dprintk("ns83820_irq(%p)\n", ndev); ndev 1402 drivers/net/ethernet/natsemi/ns83820.c ns83820_do_isr(ndev, isr); ndev 1406 drivers/net/ethernet/natsemi/ns83820.c static void ns83820_do_isr(struct net_device *ndev, u32 isr) ndev 1408 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 1419 drivers/net/ethernet/natsemi/ns83820.c ns83820_rx_kick(ndev); ndev 1436 drivers/net/ethernet/natsemi/ns83820.c ns83820_rx_kick(ndev); ndev 1440 drivers/net/ethernet/natsemi/ns83820.c ndev->stats.rx_fifo_errors++; ndev 1445 drivers/net/ethernet/natsemi/ns83820.c ndev->stats.rx_fifo_errors++; ndev 1458 drivers/net/ethernet/natsemi/ns83820.c printk(KERN_ALERT "%s: BUG -- txdp out of range\n", ndev->name); ndev 1475 drivers/net/ethernet/natsemi/ns83820.c do_tx_done(ndev); ndev 1508 drivers/net/ethernet/natsemi/ns83820.c phy_intr(ndev); ndev 1526 drivers/net/ethernet/natsemi/ns83820.c static int ns83820_stop(struct net_device *ndev) ndev 1528 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 1552 drivers/net/ethernet/natsemi/ns83820.c static void ns83820_tx_timeout(struct net_device *ndev) ndev 1554 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 1565 drivers/net/ethernet/natsemi/ns83820.c ndev->name, ndev 1573 drivers/net/ethernet/natsemi/ns83820.c ns83820_do_isr(ndev, isr); ndev 1577 drivers/net/ethernet/natsemi/ns83820.c do_tx_done(ndev); ndev 1583 drivers/net/ethernet/natsemi/ns83820.c ndev->name, ndev 1592 drivers/net/ethernet/natsemi/ns83820.c struct net_device *ndev = dev->ndev; ndev 1600 drivers/net/ethernet/natsemi/ns83820.c if (time_after(jiffies, dev_trans_start(ndev) + 1*HZ) && ndev 1603 drivers/net/ethernet/natsemi/ns83820.c ndev->name, ndev 1606 drivers/net/ethernet/natsemi/ns83820.c ns83820_tx_timeout(ndev); ndev 1612 drivers/net/ethernet/natsemi/ns83820.c static int ns83820_open(struct net_device *ndev) ndev 1614 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 1623 drivers/net/ethernet/natsemi/ns83820.c ret = ns83820_setup_rx(ndev); ndev 1644 drivers/net/ethernet/natsemi/ns83820.c netif_start_queue(ndev); /* FIXME: wait for phy to come up */ ndev 1649 drivers/net/ethernet/natsemi/ns83820.c ns83820_stop(ndev); ndev 1670 drivers/net/ethernet/natsemi/ns83820.c static void ns83820_set_multicast(struct net_device *ndev) ndev 1672 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 1678 drivers/net/ethernet/natsemi/ns83820.c if (ndev->flags & IFF_PROMISC) ndev 1683 drivers/net/ethernet/natsemi/ns83820.c if (ndev->flags & IFF_ALLMULTI || netdev_mc_count(ndev)) ndev 1696 drivers/net/ethernet/natsemi/ns83820.c static void ns83820_run_bist(struct net_device *ndev, const char *name, u32 enable, u32 done, u32 fail) ndev 1698 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 1704 drivers/net/ethernet/natsemi/ns83820.c dprintk("%s: start %s\n", ndev->name, name); ndev 1727 drivers/net/ethernet/natsemi/ns83820.c ndev->name, name, status, fail); ndev 1730 drivers/net/ethernet/natsemi/ns83820.c ndev->name, name, status); ndev 1732 drivers/net/ethernet/natsemi/ns83820.c dprintk("%s: done %s in %d loops\n", ndev->name, name, loops); ndev 1855 drivers/net/ethernet/natsemi/ns83820.c static void ns83820_probe_phy(struct net_device *ndev) ndev 1857 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); ndev 1863 drivers/net/ethernet/natsemi/ns83820.c ndev->name, j, ndev 1897 drivers/net/ethernet/natsemi/ns83820.c struct net_device *ndev; ndev 1914 drivers/net/ethernet/natsemi/ns83820.c ndev = alloc_etherdev(sizeof(struct ns83820)); ndev 1916 drivers/net/ethernet/natsemi/ns83820.c if (!ndev) ndev 1919 drivers/net/ethernet/natsemi/ns83820.c dev = PRIV(ndev); ndev 1920 drivers/net/ethernet/natsemi/ns83820.c dev->ndev = ndev; ndev 1927 drivers/net/ethernet/natsemi/ns83820.c SET_NETDEV_DEV(ndev, &pci_dev->dev); ndev 1930 drivers/net/ethernet/natsemi/ns83820.c tasklet_init(&dev->rx_tasklet, rx_action, (unsigned long)ndev); ndev 1958 drivers/net/ethernet/natsemi/ns83820.c DRV_NAME, ndev); ndev 1973 drivers/net/ethernet/natsemi/ns83820.c err = dev_alloc_name(ndev, ndev->name); ndev 1980 drivers/net/ethernet/natsemi/ns83820.c ndev->name, le32_to_cpu(readl(dev->base + 0x22c)), ndev 1983 drivers/net/ethernet/natsemi/ns83820.c ndev->netdev_ops = &netdev_ops; ndev 1984 drivers/net/ethernet/natsemi/ns83820.c ndev->ethtool_ops = &ops; ndev 1985 drivers/net/ethernet/natsemi/ns83820.c ndev->watchdog_timeo = 5 * HZ; ndev 1986 drivers/net/ethernet/natsemi/ns83820.c pci_set_drvdata(pci_dev, ndev); ndev 1992 drivers/net/ethernet/natsemi/ns83820.c ns83820_run_bist(ndev, "sram bist", PTSCR_RBIST_EN, ndev 1994 drivers/net/ethernet/natsemi/ns83820.c ns83820_run_bist(ndev, "eeprom bist", PTSCR_EEBIST_EN, 0, ndev 1996 drivers/net/ethernet/natsemi/ns83820.c ns83820_run_bist(ndev, "eeprom load", PTSCR_EELOAD_EN, 0, 0); ndev 2003 drivers/net/ethernet/natsemi/ns83820.c ndev->name); ndev 2007 drivers/net/ethernet/natsemi/ns83820.c ndev->name); ndev 2034 drivers/net/ethernet/natsemi/ns83820.c ndev->name); ndev 2055 drivers/net/ethernet/natsemi/ns83820.c printk(KERN_INFO "%s: resetting phy\n", ndev->name); ndev 2138 drivers/net/ethernet/natsemi/ns83820.c ns83820_getmac(dev, ndev->dev_addr); ndev 2141 drivers/net/ethernet/natsemi/ns83820.c ndev->features |= NETIF_F_SG; ndev 2142 drivers/net/ethernet/natsemi/ns83820.c ndev->features |= NETIF_F_IP_CSUM; ndev 2144 drivers/net/ethernet/natsemi/ns83820.c ndev->min_mtu = 0; ndev 2148 drivers/net/ethernet/natsemi/ns83820.c ndev->features |= NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_RX; ndev 2153 drivers/net/ethernet/natsemi/ns83820.c ndev->name); ndev 2154 drivers/net/ethernet/natsemi/ns83820.c ndev->features |= NETIF_F_HIGHDMA; ndev 2158 drivers/net/ethernet/natsemi/ns83820.c ndev->name, ndev 2161 drivers/net/ethernet/natsemi/ns83820.c ndev->dev_addr, addr, pci_dev->irq, ndev 2162 drivers/net/ethernet/natsemi/ns83820.c (ndev->features & NETIF_F_HIGHDMA) ? "h,sg" : "sg" ndev 2166 drivers/net/ethernet/natsemi/ns83820.c ns83820_probe_phy(ndev); ndev 2169 drivers/net/ethernet/natsemi/ns83820.c err = register_netdevice(ndev); ndev 2182 drivers/net/ethernet/natsemi/ns83820.c free_irq(pci_dev->irq, ndev); ndev 2190 drivers/net/ethernet/natsemi/ns83820.c free_netdev(ndev); ndev 2197 drivers/net/ethernet/natsemi/ns83820.c struct net_device *ndev = pci_get_drvdata(pci_dev); ndev 2198 drivers/net/ethernet/natsemi/ns83820.c struct ns83820 *dev = PRIV(ndev); /* ok even if NULL */ ndev 2200 drivers/net/ethernet/natsemi/ns83820.c if (!ndev) /* paranoia */ ndev 2205 drivers/net/ethernet/natsemi/ns83820.c unregister_netdev(ndev); ndev 2206 drivers/net/ethernet/natsemi/ns83820.c free_irq(dev->pci_dev->irq, ndev); ndev 2213 drivers/net/ethernet/natsemi/ns83820.c free_netdev(ndev); ndev 4904 drivers/net/ethernet/neterion/vxge/vxge-config.c struct vxgedev *vdev = netdev_priv(vpath->hldev->ndev); ndev 739 drivers/net/ethernet/neterion/vxge/vxge-config.h struct net_device *ndev; ndev 1151 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c void vxge_initialize_ethtool_ops(struct net_device *ndev) ndev 1153 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c ndev->ethtool_ops = &vxge_ethtool_ops; ndev 150 drivers/net/ethernet/neterion/vxge/vxge-main.c struct net_device *dev = hldev->ndev; ndev 154 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, __func__, __LINE__); ndev 155 drivers/net/ethernet/neterion/vxge/vxge-main.c netdev_notice(vdev->ndev, "Link Up\n"); ndev 158 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_carrier_on(vdev->ndev); ndev 159 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_wake_all_queues(vdev->ndev); ndev 162 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: %s:%d Exiting...", vdev->ndev->name, __func__, __LINE__); ndev 173 drivers/net/ethernet/neterion/vxge/vxge-main.c struct net_device *dev = hldev->ndev; ndev 177 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: %s:%d", vdev->ndev->name, __func__, __LINE__); ndev 178 drivers/net/ethernet/neterion/vxge/vxge-main.c netdev_notice(vdev->ndev, "Link Down\n"); ndev 181 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_carrier_off(vdev->ndev); ndev 182 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_all_queues(vdev->ndev); ndev 185 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: %s:%d Exiting...", vdev->ndev->name, __func__, __LINE__); ndev 200 drivers/net/ethernet/neterion/vxge/vxge-main.c dev = ring->ndev; ndev 202 drivers/net/ethernet/neterion/vxge/vxge-main.c ring->ndev->name, __func__, __LINE__); ndev 217 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: %s:%d Skb : 0x%p", ring->ndev->name, ndev 226 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: %s:%d Exiting...", ring->ndev->name, __func__, __LINE__); ndev 240 drivers/net/ethernet/neterion/vxge/vxge-main.c ring->ndev->name, __func__, __LINE__); ndev 253 drivers/net/ethernet/neterion/vxge/vxge-main.c ring->ndev->name, __func__, __LINE__, ndev 259 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: %s:%d Exiting...", ring->ndev->name, __func__, __LINE__); ndev 275 drivers/net/ethernet/neterion/vxge/vxge-main.c ring->ndev->name, __func__, __LINE__); ndev 277 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_LL_MAX_FRAME_SIZE(ring->ndev)) == NULL) ndev 287 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: %s:%d Exiting...", ring->ndev->name, __func__, __LINE__); ndev 298 drivers/net/ethernet/neterion/vxge/vxge-main.c ring->ndev->name, __func__, __LINE__); ndev 300 drivers/net/ethernet/neterion/vxge/vxge-main.c skb->protocol = eth_type_trans(skb, ring->ndev); ndev 312 drivers/net/ethernet/neterion/vxge/vxge-main.c ring->ndev->name, __func__, __LINE__, skb->protocol); ndev 320 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: %s:%d Exiting...", ring->ndev->name, __func__, __LINE__); ndev 358 drivers/net/ethernet/neterion/vxge/vxge-main.c struct net_device *dev = ring->ndev; ndev 369 drivers/net/ethernet/neterion/vxge/vxge-main.c ring->ndev->name, __func__, __LINE__); ndev 384 drivers/net/ethernet/neterion/vxge/vxge-main.c ring->ndev->name, __func__, __LINE__, skb); ndev 393 drivers/net/ethernet/neterion/vxge/vxge-main.c ring->ndev->name, __func__, __LINE__, pkt_length); ndev 408 drivers/net/ethernet/neterion/vxge/vxge-main.c ring->ndev->name, __func__, ndev 467 drivers/net/ethernet/neterion/vxge/vxge-main.c ring->ndev->name, __func__, ndev 570 drivers/net/ethernet/neterion/vxge/vxge-main.c "tcode = 0x%x", fifo->ndev->name, __func__, ndev 576 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo->ndev->name, __func__, __LINE__, ndev 582 drivers/net/ethernet/neterion/vxge/vxge-main.c "error t_code %01x", fifo->ndev->name, ndev 626 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo->ndev->name, __func__, __LINE__); ndev 1011 drivers/net/ethernet/neterion/vxge/vxge-main.c ring->ndev->name, __func__, __LINE__); ndev 1023 drivers/net/ethernet/neterion/vxge/vxge-main.c ring->ndev->name, __func__, __LINE__); ndev 1623 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_carrier_off(vdev->ndev); ndev 1631 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_carrier_on(vdev->ndev); ndev 1637 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 1639 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_all_queues(vdev->ndev); ndev 1650 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_all_queues(vdev->ndev); ndev 1654 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 1671 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_all_queues(vdev->ndev); ndev 1675 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 1681 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_all_queues(vdev->ndev); ndev 1685 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 1693 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_all_queues(vdev->ndev); ndev 1697 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 1707 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_all_queues(vdev->ndev); ndev 1714 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 1767 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_wake_all_queues(vdev->ndev); ndev 1793 drivers/net/ethernet/neterion/vxge/vxge-main.c if (!netif_running(vdev->ndev)) ndev 2059 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->ring.ndev = vdev->ndev; ndev 2070 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->fifo.ndev = vdev->ndev; ndev 2078 drivers/net/ethernet/neterion/vxge/vxge-main.c netdev_get_tx_queue(vdev->ndev, i); ndev 2081 drivers/net/ethernet/neterion/vxge/vxge-main.c netdev_get_tx_queue(vdev->ndev, 0); ndev 2095 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, vpath->device_id, ndev 2473 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, ndev 2488 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, ndev 2505 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, intr_cnt); ndev 2510 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 2534 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, ndev 2545 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, intr_cnt); ndev 2550 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 2565 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s:vxge:INTA", vdev->ndev->name); ndev 2720 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: fatal: Vpath open failed", vdev->ndev->name); ndev 2782 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: MTU is %d", vdev->ndev->name, vdev->mtu); ndev 2861 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_carrier_on(vdev->ndev); ndev 2862 drivers/net/ethernet/neterion/vxge/vxge-main.c netdev_notice(vdev->ndev, "Link Up\n"); ndev 2878 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_start_all_queues(vdev->ndev); ndev 3008 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_carrier_off(vdev->ndev); ndev 3009 drivers/net/ethernet/neterion/vxge/vxge-main.c netdev_notice(vdev->ndev, "Link Down\n"); ndev 3010 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_all_queues(vdev->ndev); ndev 3087 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: MTU changed to %d", vdev->ndev->name, new_mtu); ndev 3371 drivers/net/ethernet/neterion/vxge/vxge-main.c struct net_device *ndev; ndev 3381 drivers/net/ethernet/neterion/vxge/vxge-main.c ndev = alloc_etherdev_mq(sizeof(struct vxgedev), ndev 3383 drivers/net/ethernet/neterion/vxge/vxge-main.c if (ndev == NULL) { ndev 3394 drivers/net/ethernet/neterion/vxge/vxge-main.c ndev->name, __func__, __LINE__); ndev 3396 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev = netdev_priv(ndev); ndev 3399 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev = ndev; ndev 3406 drivers/net/ethernet/neterion/vxge/vxge-main.c SET_NETDEV_DEV(ndev, &vdev->pdev->dev); ndev 3408 drivers/net/ethernet/neterion/vxge/vxge-main.c ndev->hw_features = NETIF_F_RXCSUM | NETIF_F_SG | ndev 3413 drivers/net/ethernet/neterion/vxge/vxge-main.c ndev->hw_features |= NETIF_F_RXHASH; ndev 3415 drivers/net/ethernet/neterion/vxge/vxge-main.c ndev->features |= ndev->hw_features | ndev 3419 drivers/net/ethernet/neterion/vxge/vxge-main.c ndev->netdev_ops = &vxge_netdev_ops; ndev 3421 drivers/net/ethernet/neterion/vxge/vxge-main.c ndev->watchdog_timeo = VXGE_LL_WATCH_DOG_TIMEOUT; ndev 3424 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_initialize_ethtool_ops(ndev); ndev 3432 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 3441 drivers/net/ethernet/neterion/vxge/vxge-main.c ndev->features |= NETIF_F_HIGHDMA; ndev 3447 drivers/net/ethernet/neterion/vxge/vxge-main.c ndev->min_mtu = VXGE_HW_MIN_MTU; ndev 3448 drivers/net/ethernet/neterion/vxge/vxge-main.c ndev->max_mtu = VXGE_HW_MAX_MTU; ndev 3450 drivers/net/ethernet/neterion/vxge/vxge-main.c ret = register_netdev(ndev); ndev 3454 drivers/net/ethernet/neterion/vxge/vxge-main.c ndev->name, __func__); ndev 3459 drivers/net/ethernet/neterion/vxge/vxge-main.c ndev->addr_len = ETH_ALEN; ndev 3465 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_carrier_off(ndev); ndev 3469 drivers/net/ethernet/neterion/vxge/vxge-main.c ndev->name); ndev 3471 drivers/net/ethernet/neterion/vxge/vxge-main.c hldev->ndev = ndev; ndev 3486 drivers/net/ethernet/neterion/vxge/vxge-main.c "VXGE_HW_ERR_PRIVILEGED_OPERATION", ndev->name); ndev 3490 drivers/net/ethernet/neterion/vxge/vxge-main.c ndev->name, __func__, __LINE__); ndev 3496 drivers/net/ethernet/neterion/vxge/vxge-main.c free_netdev(ndev); ndev 3512 drivers/net/ethernet/neterion/vxge/vxge-main.c dev = hldev->ndev; ndev 3515 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_debug_entryexit(vdev->level_trace, "%s: %s:%d", vdev->ndev->name, ndev 3546 drivers/net/ethernet/neterion/vxge/vxge-main.c struct net_device *dev = hldev->ndev; ndev 3552 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: %s:%d", vdev->ndev->name, __func__, __LINE__); ndev 3568 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Slot is frozen", vdev->ndev->name); ndev 3572 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 3576 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 3607 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, __func__, __LINE__); ndev 3915 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, vdev->no_of_vpath); ndev 3920 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Interrupt type INTA", vdev->ndev->name); ndev 3925 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Interrupt type MSI-X", vdev->ndev->name); ndev 3932 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 3935 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: RTH steering disabled", vdev->ndev->name); ndev 3941 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Tx steering disabled", vdev->ndev->name); ndev 3946 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 3948 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Tx steering disabled", vdev->ndev->name); ndev 3954 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 3956 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Tx steering disabled", vdev->ndev->name); ndev 3962 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 3967 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 3972 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 3974 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Tx steering disabled", vdev->ndev->name); ndev 3980 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: MAC Address learning enabled", vdev->ndev->name); ndev 3986 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: MTU size - %d", vdev->ndev->name, ndev 3990 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: VLAN tag stripping %s", vdev->ndev->name, ndev 3995 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Max frags : %d", vdev->ndev->name, ndev 4034 drivers/net/ethernet/neterion/vxge/vxge-main.c struct net_device *netdev = hldev->ndev; ndev 4063 drivers/net/ethernet/neterion/vxge/vxge-main.c struct net_device *netdev = hldev->ndev; ndev 4088 drivers/net/ethernet/neterion/vxge/vxge-main.c struct net_device *netdev = hldev->ndev; ndev 4637 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, ll_config->device_hw_info.serial_number); ndev 4640 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, ll_config->device_hw_info.part_number); ndev 4643 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, ll_config->device_hw_info.product_desc); ndev 4646 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, macaddr); ndev 4649 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, vxge_hw_device_link_width_get(hldev)); ndev 4652 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Firmware version : %s Date : %s", vdev->ndev->name, ndev 4660 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Single Function Mode Enabled", vdev->ndev->name); ndev 4664 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Multi Function Mode Enabled", vdev->ndev->name); ndev 4668 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Single Root IOV Mode Enabled", vdev->ndev->name); ndev 4672 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Multi Root IOV Mode Enabled", vdev->ndev->name); ndev 4681 drivers/net/ethernet/neterion/vxge/vxge-main.c memcpy(vdev->ndev->dev_addr, (u8 *)vdev->vpaths[0].macaddr, ETH_ALEN); ndev 4689 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); ndev 4694 drivers/net/ethernet/neterion/vxge/vxge-main.c memcpy(macaddr, vdev->ndev->dev_addr, ETH_ALEN); ndev 4722 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, __func__, __LINE__); ndev 4769 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev = netdev_priv(hldev->ndev); ndev 237 drivers/net/ethernet/neterion/vxge/vxge-main.h struct net_device *ndev; ndev 268 drivers/net/ethernet/neterion/vxge/vxge-main.h struct net_device *ndev; ndev 333 drivers/net/ethernet/neterion/vxge/vxge-main.h struct net_device *ndev; ndev 427 drivers/net/ethernet/neterion/vxge/vxge-main.h void vxge_initialize_ethtool_ops(struct net_device *ndev); ndev 169 drivers/net/ethernet/ni/nixge.c struct net_device *ndev; ndev 245 drivers/net/ethernet/ni/nixge.c static void nixge_hw_dma_bd_release(struct net_device *ndev) ndev 247 drivers/net/ethernet/ni/nixge.c struct nixge_priv *priv = netdev_priv(ndev); ndev 256 drivers/net/ethernet/ni/nixge.c dma_unmap_single(ndev->dev.parent, phys_addr, ndev 267 drivers/net/ethernet/ni/nixge.c dma_free_coherent(ndev->dev.parent, ndev 273 drivers/net/ethernet/ni/nixge.c devm_kfree(ndev->dev.parent, priv->tx_skb); ndev 276 drivers/net/ethernet/ni/nixge.c dma_free_coherent(ndev->dev.parent, ndev 282 drivers/net/ethernet/ni/nixge.c static int nixge_hw_dma_bd_init(struct net_device *ndev) ndev 284 drivers/net/ethernet/ni/nixge.c struct nixge_priv *priv = netdev_priv(ndev); ndev 296 drivers/net/ethernet/ni/nixge.c priv->tx_bd_v = dma_alloc_coherent(ndev->dev.parent, ndev 302 drivers/net/ethernet/ni/nixge.c priv->tx_skb = devm_kcalloc(ndev->dev.parent, ndev 308 drivers/net/ethernet/ni/nixge.c priv->rx_bd_v = dma_alloc_coherent(ndev->dev.parent, ndev 327 drivers/net/ethernet/ni/nixge.c skb = netdev_alloc_skb_ip_align(ndev, ndev 333 drivers/net/ethernet/ni/nixge.c phys = dma_map_single(ndev->dev.parent, skb->data, ndev 389 drivers/net/ethernet/ni/nixge.c nixge_hw_dma_bd_release(ndev); ndev 408 drivers/net/ethernet/ni/nixge.c netdev_err(priv->ndev, "%s: DMA reset timeout!\n", __func__); ndev 411 drivers/net/ethernet/ni/nixge.c static void nixge_device_reset(struct net_device *ndev) ndev 413 drivers/net/ethernet/ni/nixge.c struct nixge_priv *priv = netdev_priv(ndev); ndev 418 drivers/net/ethernet/ni/nixge.c if (nixge_hw_dma_bd_init(ndev)) ndev 419 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "%s: descriptor allocation failed\n", ndev 422 drivers/net/ethernet/ni/nixge.c netif_trans_update(ndev); ndev 425 drivers/net/ethernet/ni/nixge.c static void nixge_handle_link_change(struct net_device *ndev) ndev 427 drivers/net/ethernet/ni/nixge.c struct nixge_priv *priv = netdev_priv(ndev); ndev 428 drivers/net/ethernet/ni/nixge.c struct phy_device *phydev = ndev->phydev; ndev 444 drivers/net/ethernet/ni/nixge.c dma_unmap_page(priv->ndev->dev.parent, tx_skb->mapping, ndev 447 drivers/net/ethernet/ni/nixge.c dma_unmap_single(priv->ndev->dev.parent, ndev 459 drivers/net/ethernet/ni/nixge.c static void nixge_start_xmit_done(struct net_device *ndev) ndev 461 drivers/net/ethernet/ni/nixge.c struct nixge_priv *priv = netdev_priv(ndev); ndev 487 drivers/net/ethernet/ni/nixge.c ndev->stats.tx_packets += packets; ndev 488 drivers/net/ethernet/ni/nixge.c ndev->stats.tx_bytes += size; ndev 491 drivers/net/ethernet/ni/nixge.c netif_wake_queue(ndev); ndev 505 drivers/net/ethernet/ni/nixge.c static int nixge_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 507 drivers/net/ethernet/ni/nixge.c struct nixge_priv *priv = netdev_priv(ndev); ndev 520 drivers/net/ethernet/ni/nixge.c if (!netif_queue_stopped(ndev)) ndev 521 drivers/net/ethernet/ni/nixge.c netif_stop_queue(ndev); ndev 525 drivers/net/ethernet/ni/nixge.c cur_phys = dma_map_single(ndev->dev.parent, skb->data, ndev 527 drivers/net/ethernet/ni/nixge.c if (dma_mapping_error(ndev->dev.parent, cur_phys)) ndev 545 drivers/net/ethernet/ni/nixge.c cur_phys = skb_frag_dma_map(ndev->dev.parent, frag, 0, ndev 548 drivers/net/ethernet/ni/nixge.c if (dma_mapping_error(ndev->dev.parent, cur_phys)) ndev 585 drivers/net/ethernet/ni/nixge.c dma_unmap_single(priv->ndev->dev.parent, ndev 589 drivers/net/ethernet/ni/nixge.c ndev->stats.tx_dropped++; ndev 593 drivers/net/ethernet/ni/nixge.c static int nixge_recv(struct net_device *ndev, int budget) ndev 595 drivers/net/ethernet/ni/nixge.c struct nixge_priv *priv = netdev_priv(ndev); ndev 617 drivers/net/ethernet/ni/nixge.c dma_unmap_single(ndev->dev.parent, ndev 624 drivers/net/ethernet/ni/nixge.c skb->protocol = eth_type_trans(skb, ndev); ndev 637 drivers/net/ethernet/ni/nixge.c new_skb = netdev_alloc_skb_ip_align(ndev, ndev 642 drivers/net/ethernet/ni/nixge.c cur_phys = dma_map_single(ndev->dev.parent, new_skb->data, ndev 645 drivers/net/ethernet/ni/nixge.c if (dma_mapping_error(ndev->dev.parent, cur_phys)) { ndev 647 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "Failed to map ...\n"); ndev 659 drivers/net/ethernet/ni/nixge.c ndev->stats.rx_packets += packets; ndev 660 drivers/net/ethernet/ni/nixge.c ndev->stats.rx_bytes += size; ndev 676 drivers/net/ethernet/ni/nixge.c work_done = nixge_recv(priv->ndev, budget); ndev 699 drivers/net/ethernet/ni/nixge.c struct net_device *ndev = _ndev; ndev 707 drivers/net/ethernet/ni/nixge.c nixge_start_xmit_done(priv->ndev); ndev 711 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "No interrupts asserted in Tx path\n"); ndev 718 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "DMA Tx error 0x%x\n", status); ndev 719 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "Current BD is at: 0x%llx\n", (u64)phys); ndev 743 drivers/net/ethernet/ni/nixge.c struct net_device *ndev = _ndev; ndev 761 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "No interrupts asserted in Rx path\n"); ndev 767 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "DMA Rx error 0x%x\n", status); ndev 768 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "Current BD is at: 0x%llx\n", (u64)phys); ndev 865 drivers/net/ethernet/ni/nixge.c static int nixge_open(struct net_device *ndev) ndev 867 drivers/net/ethernet/ni/nixge.c struct nixge_priv *priv = netdev_priv(ndev); ndev 871 drivers/net/ethernet/ni/nixge.c nixge_device_reset(ndev); ndev 873 drivers/net/ethernet/ni/nixge.c phy = of_phy_connect(ndev, priv->phy_node, ndev 887 drivers/net/ethernet/ni/nixge.c ret = request_irq(priv->tx_irq, nixge_tx_irq, 0, ndev->name, ndev); ndev 891 drivers/net/ethernet/ni/nixge.c ret = request_irq(priv->rx_irq, nixge_rx_irq, 0, ndev->name, ndev); ndev 895 drivers/net/ethernet/ni/nixge.c netif_start_queue(ndev); ndev 900 drivers/net/ethernet/ni/nixge.c free_irq(priv->tx_irq, ndev); ndev 905 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "request_irq() failed\n"); ndev 909 drivers/net/ethernet/ni/nixge.c static int nixge_stop(struct net_device *ndev) ndev 911 drivers/net/ethernet/ni/nixge.c struct nixge_priv *priv = netdev_priv(ndev); ndev 914 drivers/net/ethernet/ni/nixge.c netif_stop_queue(ndev); ndev 917 drivers/net/ethernet/ni/nixge.c if (ndev->phydev) { ndev 918 drivers/net/ethernet/ni/nixge.c phy_stop(ndev->phydev); ndev 919 drivers/net/ethernet/ni/nixge.c phy_disconnect(ndev->phydev); ndev 931 drivers/net/ethernet/ni/nixge.c free_irq(priv->tx_irq, ndev); ndev 932 drivers/net/ethernet/ni/nixge.c free_irq(priv->rx_irq, ndev); ndev 934 drivers/net/ethernet/ni/nixge.c nixge_hw_dma_bd_release(ndev); ndev 939 drivers/net/ethernet/ni/nixge.c static int nixge_change_mtu(struct net_device *ndev, int new_mtu) ndev 941 drivers/net/ethernet/ni/nixge.c if (netif_running(ndev)) ndev 948 drivers/net/ethernet/ni/nixge.c ndev->mtu = new_mtu; ndev 953 drivers/net/ethernet/ni/nixge.c static s32 __nixge_hw_set_mac_address(struct net_device *ndev) ndev 955 drivers/net/ethernet/ni/nixge.c struct nixge_priv *priv = netdev_priv(ndev); ndev 958 drivers/net/ethernet/ni/nixge.c (ndev->dev_addr[2]) << 24 | ndev 959 drivers/net/ethernet/ni/nixge.c (ndev->dev_addr[3] << 16) | ndev 960 drivers/net/ethernet/ni/nixge.c (ndev->dev_addr[4] << 8) | ndev 961 drivers/net/ethernet/ni/nixge.c (ndev->dev_addr[5] << 0)); ndev 964 drivers/net/ethernet/ni/nixge.c (ndev->dev_addr[1] | (ndev->dev_addr[0] << 8))); ndev 969 drivers/net/ethernet/ni/nixge.c static int nixge_net_set_mac_address(struct net_device *ndev, void *p) ndev 973 drivers/net/ethernet/ni/nixge.c err = eth_mac_addr(ndev, p); ndev 975 drivers/net/ethernet/ni/nixge.c __nixge_hw_set_mac_address(ndev); ndev 989 drivers/net/ethernet/ni/nixge.c static void nixge_ethtools_get_drvinfo(struct net_device *ndev, ndev 996 drivers/net/ethernet/ni/nixge.c static int nixge_ethtools_get_coalesce(struct net_device *ndev, ndev 999 drivers/net/ethernet/ni/nixge.c struct nixge_priv *priv = netdev_priv(ndev); ndev 1011 drivers/net/ethernet/ni/nixge.c static int nixge_ethtools_set_coalesce(struct net_device *ndev, ndev 1014 drivers/net/ethernet/ni/nixge.c struct nixge_priv *priv = netdev_priv(ndev); ndev 1016 drivers/net/ethernet/ni/nixge.c if (netif_running(ndev)) { ndev 1017 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, ndev 1051 drivers/net/ethernet/ni/nixge.c static int nixge_ethtools_set_phys_id(struct net_device *ndev, ndev 1054 drivers/net/ethernet/ni/nixge.c struct nixge_priv *priv = netdev_priv(ndev); ndev 1248 drivers/net/ethernet/ni/nixge.c struct net_device *ndev; ndev 1251 drivers/net/ethernet/ni/nixge.c ndev = platform_get_drvdata(pdev); ndev 1252 drivers/net/ethernet/ni/nixge.c priv = netdev_priv(ndev); ndev 1266 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "failed to map dma regs\n"); ndev 1277 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "failed to map ctrl regs\n"); ndev 1287 drivers/net/ethernet/ni/nixge.c struct net_device *ndev; ndev 1291 drivers/net/ethernet/ni/nixge.c ndev = alloc_etherdev(sizeof(*priv)); ndev 1292 drivers/net/ethernet/ni/nixge.c if (!ndev) ndev 1295 drivers/net/ethernet/ni/nixge.c platform_set_drvdata(pdev, ndev); ndev 1296 drivers/net/ethernet/ni/nixge.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 1298 drivers/net/ethernet/ni/nixge.c ndev->features = NETIF_F_SG; ndev 1299 drivers/net/ethernet/ni/nixge.c ndev->netdev_ops = &nixge_netdev_ops; ndev 1300 drivers/net/ethernet/ni/nixge.c ndev->ethtool_ops = &nixge_ethtool_ops; ndev 1303 drivers/net/ethernet/ni/nixge.c ndev->min_mtu = 64; ndev 1304 drivers/net/ethernet/ni/nixge.c ndev->max_mtu = NIXGE_JUMBO_MTU; ndev 1308 drivers/net/ethernet/ni/nixge.c ether_addr_copy(ndev->dev_addr, mac_addr); ndev 1311 drivers/net/ethernet/ni/nixge.c eth_hw_addr_random(ndev); ndev 1314 drivers/net/ethernet/ni/nixge.c priv = netdev_priv(ndev); ndev 1315 drivers/net/ethernet/ni/nixge.c priv->ndev = ndev; ndev 1318 drivers/net/ethernet/ni/nixge.c netif_napi_add(ndev, &priv->napi, nixge_poll, NAPI_POLL_WEIGHT); ndev 1322 drivers/net/ethernet/ni/nixge.c __nixge_hw_set_mac_address(ndev); ndev 1326 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "could not find 'tx' irq"); ndev 1332 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "could not find 'rx' irq"); ndev 1344 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "error registering mdio bus"); ndev 1351 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "not find \"phy-mode\" property\n"); ndev 1360 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "broken fixed-link specification\n"); ndev 1367 drivers/net/ethernet/ni/nixge.c err = register_netdev(priv->ndev); ndev 1369 drivers/net/ethernet/ni/nixge.c netdev_err(ndev, "register_netdev() error (%i)\n", err); ndev 1385 drivers/net/ethernet/ni/nixge.c free_netdev(ndev); ndev 1392 drivers/net/ethernet/ni/nixge.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1393 drivers/net/ethernet/ni/nixge.c struct nixge_priv *priv = netdev_priv(ndev); ndev 1395 drivers/net/ethernet/ni/nixge.c unregister_netdev(ndev); ndev 1404 drivers/net/ethernet/ni/nixge.c free_netdev(ndev); ndev 393 drivers/net/ethernet/nxp/lpc_eth.c struct net_device *ndev; ndev 432 drivers/net/ethernet/nxp/lpc_eth.c netdev_dbg(pldat->ndev, "Ethernet MAC address %pM\n", mac); ndev 714 drivers/net/ethernet/nxp/lpc_eth.c static void lpc_handle_link_change(struct net_device *ndev) ndev 716 drivers/net/ethernet/nxp/lpc_eth.c struct netdata_local *pldat = netdev_priv(ndev); ndev 717 drivers/net/ethernet/nxp/lpc_eth.c struct phy_device *phydev = ndev->phydev; ndev 749 drivers/net/ethernet/nxp/lpc_eth.c static int lpc_mii_probe(struct net_device *ndev) ndev 751 drivers/net/ethernet/nxp/lpc_eth.c struct netdata_local *pldat = netdev_priv(ndev); ndev 755 drivers/net/ethernet/nxp/lpc_eth.c netdev_err(ndev, "no PHY found\n"); ndev 761 drivers/net/ethernet/nxp/lpc_eth.c netdev_info(ndev, "using MII interface\n"); ndev 763 drivers/net/ethernet/nxp/lpc_eth.c netdev_info(ndev, "using RMII interface\n"); ndev 764 drivers/net/ethernet/nxp/lpc_eth.c phydev = phy_connect(ndev, phydev_name(phydev), ndev 769 drivers/net/ethernet/nxp/lpc_eth.c netdev_err(ndev, "Could not attach to PHY\n"); ndev 818 drivers/net/ethernet/nxp/lpc_eth.c if (lpc_mii_probe(pldat->ndev) != 0) ndev 830 drivers/net/ethernet/nxp/lpc_eth.c static void __lpc_handle_xmit(struct net_device *ndev) ndev 832 drivers/net/ethernet/nxp/lpc_eth.c struct netdata_local *pldat = netdev_priv(ndev); ndev 850 drivers/net/ethernet/nxp/lpc_eth.c ndev->stats.collisions += TXSTATUS_COLLISIONS_GET(txstat); ndev 856 drivers/net/ethernet/nxp/lpc_eth.c ndev->stats.tx_fifo_errors++; ndev 860 drivers/net/ethernet/nxp/lpc_eth.c ndev->stats.tx_aborted_errors++; ndev 864 drivers/net/ethernet/nxp/lpc_eth.c ndev->stats.tx_aborted_errors++; ndev 868 drivers/net/ethernet/nxp/lpc_eth.c ndev->stats.tx_aborted_errors++; ndev 870 drivers/net/ethernet/nxp/lpc_eth.c ndev->stats.tx_errors++; ndev 873 drivers/net/ethernet/nxp/lpc_eth.c ndev->stats.tx_packets++; ndev 874 drivers/net/ethernet/nxp/lpc_eth.c ndev->stats.tx_bytes += skblen; ndev 881 drivers/net/ethernet/nxp/lpc_eth.c if (netif_queue_stopped(ndev)) ndev 882 drivers/net/ethernet/nxp/lpc_eth.c netif_wake_queue(ndev); ndev 886 drivers/net/ethernet/nxp/lpc_eth.c static int __lpc_handle_recv(struct net_device *ndev, int budget) ndev 888 drivers/net/ethernet/nxp/lpc_eth.c struct netdata_local *pldat = netdev_priv(ndev); ndev 913 drivers/net/ethernet/nxp/lpc_eth.c ndev->stats.rx_fifo_errors++; ndev 916 drivers/net/ethernet/nxp/lpc_eth.c ndev->stats.rx_crc_errors++; ndev 919 drivers/net/ethernet/nxp/lpc_eth.c ndev->stats.rx_length_errors++; ndev 922 drivers/net/ethernet/nxp/lpc_eth.c ndev->stats.rx_length_errors++; ndev 924 drivers/net/ethernet/nxp/lpc_eth.c ndev->stats.rx_errors++; ndev 929 drivers/net/ethernet/nxp/lpc_eth.c ndev->stats.rx_dropped++; ndev 937 drivers/net/ethernet/nxp/lpc_eth.c skb->protocol = eth_type_trans(skb, ndev); ndev 939 drivers/net/ethernet/nxp/lpc_eth.c ndev->stats.rx_packets++; ndev 940 drivers/net/ethernet/nxp/lpc_eth.c ndev->stats.rx_bytes += len; ndev 960 drivers/net/ethernet/nxp/lpc_eth.c struct net_device *ndev = pldat->ndev; ndev 962 drivers/net/ethernet/nxp/lpc_eth.c struct netdev_queue *txq = netdev_get_tx_queue(ndev, 0); ndev 965 drivers/net/ethernet/nxp/lpc_eth.c __lpc_handle_xmit(ndev); ndev 967 drivers/net/ethernet/nxp/lpc_eth.c rx_done = __lpc_handle_recv(ndev, budget); ndev 979 drivers/net/ethernet/nxp/lpc_eth.c struct net_device *ndev = dev_id; ndev 980 drivers/net/ethernet/nxp/lpc_eth.c struct netdata_local *pldat = netdev_priv(ndev); ndev 998 drivers/net/ethernet/nxp/lpc_eth.c static int lpc_eth_close(struct net_device *ndev) ndev 1001 drivers/net/ethernet/nxp/lpc_eth.c struct netdata_local *pldat = netdev_priv(ndev); ndev 1004 drivers/net/ethernet/nxp/lpc_eth.c dev_dbg(&pldat->pdev->dev, "shutting down %s\n", ndev->name); ndev 1007 drivers/net/ethernet/nxp/lpc_eth.c netif_stop_queue(ndev); ndev 1009 drivers/net/ethernet/nxp/lpc_eth.c if (ndev->phydev) ndev 1010 drivers/net/ethernet/nxp/lpc_eth.c phy_stop(ndev->phydev); ndev 1014 drivers/net/ethernet/nxp/lpc_eth.c netif_carrier_off(ndev); ndev 1024 drivers/net/ethernet/nxp/lpc_eth.c static int lpc_eth_hard_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 1026 drivers/net/ethernet/nxp/lpc_eth.c struct netdata_local *pldat = netdev_priv(ndev); ndev 1038 drivers/net/ethernet/nxp/lpc_eth.c netif_stop_queue(ndev); ndev 1069 drivers/net/ethernet/nxp/lpc_eth.c netif_stop_queue(ndev); ndev 1077 drivers/net/ethernet/nxp/lpc_eth.c static int lpc_set_mac_address(struct net_device *ndev, void *p) ndev 1080 drivers/net/ethernet/nxp/lpc_eth.c struct netdata_local *pldat = netdev_priv(ndev); ndev 1085 drivers/net/ethernet/nxp/lpc_eth.c memcpy(ndev->dev_addr, addr->sa_data, ETH_ALEN); ndev 1090 drivers/net/ethernet/nxp/lpc_eth.c __lpc_set_mac(pldat, ndev->dev_addr); ndev 1097 drivers/net/ethernet/nxp/lpc_eth.c static void lpc_eth_set_multicast_list(struct net_device *ndev) ndev 1099 drivers/net/ethernet/nxp/lpc_eth.c struct netdata_local *pldat = netdev_priv(ndev); ndev 1100 drivers/net/ethernet/nxp/lpc_eth.c struct netdev_hw_addr_list *mcptr = &ndev->mc; ndev 1108 drivers/net/ethernet/nxp/lpc_eth.c __lpc_set_mac(pldat, ndev->dev_addr); ndev 1112 drivers/net/ethernet/nxp/lpc_eth.c if (ndev->flags & IFF_PROMISC) ndev 1115 drivers/net/ethernet/nxp/lpc_eth.c if (ndev->flags & IFF_ALLMULTI) ndev 1144 drivers/net/ethernet/nxp/lpc_eth.c static int lpc_eth_ioctl(struct net_device *ndev, struct ifreq *req, int cmd) ndev 1146 drivers/net/ethernet/nxp/lpc_eth.c struct phy_device *phydev = ndev->phydev; ndev 1148 drivers/net/ethernet/nxp/lpc_eth.c if (!netif_running(ndev)) ndev 1157 drivers/net/ethernet/nxp/lpc_eth.c static int lpc_eth_open(struct net_device *ndev) ndev 1159 drivers/net/ethernet/nxp/lpc_eth.c struct netdata_local *pldat = netdev_priv(ndev); ndev 1163 drivers/net/ethernet/nxp/lpc_eth.c dev_dbg(&pldat->pdev->dev, "enabling %s\n", ndev->name); ndev 1170 drivers/net/ethernet/nxp/lpc_eth.c phy_resume(ndev->phydev); ndev 1177 drivers/net/ethernet/nxp/lpc_eth.c phy_start(ndev->phydev); ndev 1178 drivers/net/ethernet/nxp/lpc_eth.c netif_start_queue(ndev); ndev 1187 drivers/net/ethernet/nxp/lpc_eth.c static void lpc_eth_ethtool_getdrvinfo(struct net_device *ndev, ndev 1192 drivers/net/ethernet/nxp/lpc_eth.c strlcpy(info->bus_info, dev_name(ndev->dev.parent), ndev 1196 drivers/net/ethernet/nxp/lpc_eth.c static u32 lpc_eth_ethtool_getmsglevel(struct net_device *ndev) ndev 1198 drivers/net/ethernet/nxp/lpc_eth.c struct netdata_local *pldat = netdev_priv(ndev); ndev 1203 drivers/net/ethernet/nxp/lpc_eth.c static void lpc_eth_ethtool_setmsglevel(struct net_device *ndev, u32 level) ndev 1205 drivers/net/ethernet/nxp/lpc_eth.c struct netdata_local *pldat = netdev_priv(ndev); ndev 1234 drivers/net/ethernet/nxp/lpc_eth.c struct net_device *ndev; ndev 1252 drivers/net/ethernet/nxp/lpc_eth.c ndev = alloc_etherdev(sizeof(struct netdata_local)); ndev 1253 drivers/net/ethernet/nxp/lpc_eth.c if (!ndev) { ndev 1259 drivers/net/ethernet/nxp/lpc_eth.c SET_NETDEV_DEV(ndev, dev); ndev 1261 drivers/net/ethernet/nxp/lpc_eth.c pldat = netdev_priv(ndev); ndev 1263 drivers/net/ethernet/nxp/lpc_eth.c pldat->ndev = ndev; ndev 1268 drivers/net/ethernet/nxp/lpc_eth.c ndev->irq = irq; ndev 1290 drivers/net/ethernet/nxp/lpc_eth.c ret = request_irq(ndev->irq, __lpc_eth_interrupt, 0, ndev 1291 drivers/net/ethernet/nxp/lpc_eth.c ndev->name, ndev); ndev 1298 drivers/net/ethernet/nxp/lpc_eth.c ndev->netdev_ops = &lpc_netdev_ops; ndev 1299 drivers/net/ethernet/nxp/lpc_eth.c ndev->ethtool_ops = &lpc_eth_ethtool_ops; ndev 1300 drivers/net/ethernet/nxp/lpc_eth.c ndev->watchdog_timeo = msecs_to_jiffies(2500); ndev 1311 drivers/net/ethernet/nxp/lpc_eth.c netdev_err(ndev, ndev 1336 drivers/net/ethernet/nxp/lpc_eth.c netdev_dbg(ndev, "IO address space :%pR\n", res); ndev 1337 drivers/net/ethernet/nxp/lpc_eth.c netdev_dbg(ndev, "IO address size :%zd\n", ndev 1339 drivers/net/ethernet/nxp/lpc_eth.c netdev_dbg(ndev, "IO address (mapped) :0x%p\n", ndev 1341 drivers/net/ethernet/nxp/lpc_eth.c netdev_dbg(ndev, "IRQ number :%d\n", ndev->irq); ndev 1342 drivers/net/ethernet/nxp/lpc_eth.c netdev_dbg(ndev, "DMA buffer size :%zd\n", pldat->dma_buff_size); ndev 1343 drivers/net/ethernet/nxp/lpc_eth.c netdev_dbg(ndev, "DMA buffer P address :%pad\n", ndev 1345 drivers/net/ethernet/nxp/lpc_eth.c netdev_dbg(ndev, "DMA buffer V address :0x%p\n", ndev 1349 drivers/net/ethernet/nxp/lpc_eth.c __lpc_get_mac(pldat, ndev->dev_addr); ndev 1351 drivers/net/ethernet/nxp/lpc_eth.c if (!is_valid_ether_addr(ndev->dev_addr)) { ndev 1354 drivers/net/ethernet/nxp/lpc_eth.c ether_addr_copy(ndev->dev_addr, macaddr); ndev 1356 drivers/net/ethernet/nxp/lpc_eth.c if (!is_valid_ether_addr(ndev->dev_addr)) ndev 1357 drivers/net/ethernet/nxp/lpc_eth.c eth_hw_addr_random(ndev); ndev 1375 drivers/net/ethernet/nxp/lpc_eth.c netif_napi_add(ndev, &pldat->napi, lpc_eth_poll, NAPI_WEIGHT); ndev 1377 drivers/net/ethernet/nxp/lpc_eth.c ret = register_netdev(ndev); ndev 1382 drivers/net/ethernet/nxp/lpc_eth.c platform_set_drvdata(pdev, ndev); ndev 1388 drivers/net/ethernet/nxp/lpc_eth.c netdev_info(ndev, "LPC mac at 0x%08lx irq %d\n", ndev 1389 drivers/net/ethernet/nxp/lpc_eth.c (unsigned long)res->start, ndev->irq); ndev 1397 drivers/net/ethernet/nxp/lpc_eth.c unregister_netdev(ndev); ndev 1405 drivers/net/ethernet/nxp/lpc_eth.c free_irq(ndev->irq, ndev); ndev 1413 drivers/net/ethernet/nxp/lpc_eth.c free_netdev(ndev); ndev 1421 drivers/net/ethernet/nxp/lpc_eth.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1422 drivers/net/ethernet/nxp/lpc_eth.c struct netdata_local *pldat = netdev_priv(ndev); ndev 1424 drivers/net/ethernet/nxp/lpc_eth.c unregister_netdev(ndev); ndev 1431 drivers/net/ethernet/nxp/lpc_eth.c free_irq(ndev->irq, ndev); ndev 1437 drivers/net/ethernet/nxp/lpc_eth.c free_netdev(ndev); ndev 1446 drivers/net/ethernet/nxp/lpc_eth.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1447 drivers/net/ethernet/nxp/lpc_eth.c struct netdata_local *pldat = netdev_priv(ndev); ndev 1450 drivers/net/ethernet/nxp/lpc_eth.c enable_irq_wake(ndev->irq); ndev 1452 drivers/net/ethernet/nxp/lpc_eth.c if (ndev) { ndev 1453 drivers/net/ethernet/nxp/lpc_eth.c if (netif_running(ndev)) { ndev 1454 drivers/net/ethernet/nxp/lpc_eth.c netif_device_detach(ndev); ndev 1471 drivers/net/ethernet/nxp/lpc_eth.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1475 drivers/net/ethernet/nxp/lpc_eth.c disable_irq_wake(ndev->irq); ndev 1477 drivers/net/ethernet/nxp/lpc_eth.c if (ndev) { ndev 1478 drivers/net/ethernet/nxp/lpc_eth.c if (netif_running(ndev)) { ndev 1479 drivers/net/ethernet/nxp/lpc_eth.c pldat = netdev_priv(ndev); ndev 1488 drivers/net/ethernet/nxp/lpc_eth.c netif_device_attach(ndev); ndev 2106 drivers/net/ethernet/pensando/ionic/ionic_lif.c struct net_device *ndev = netdev_notifier_info_to_dev(info); ndev 2108 drivers/net/ethernet/pensando/ionic/ionic_lif.c struct ionic_lif *lif = ionic_netdev_lif(ndev); ndev 198 drivers/net/ethernet/qlogic/qede/qede.h struct net_device *ndev; ndev 474 drivers/net/ethernet/qlogic/qede/qede.h #define DP_NAME(edev) ((edev)->ndev->name) ndev 518 drivers/net/ethernet/qlogic/qede/qede.h netdev_tx_t qede_start_xmit(struct sk_buff *skb, struct net_device *ndev); ndev 534 drivers/net/ethernet/qlogic/qede/qede.h int qede_set_mac_addr(struct net_device *ndev, void *p); ndev 544 drivers/net/ethernet/qlogic/qede/qede.h void qede_set_rx_mode(struct net_device *ndev); ndev 545 drivers/net/ethernet/qlogic/qede/qede.h void qede_config_rx_mode(struct net_device *ndev); ndev 555 drivers/net/ethernet/qlogic/qede/qede.h void qede_set_dcbnl_ops(struct net_device *ndev); ndev 654 drivers/net/ethernet/qlogic/qede/qede_ethtool.c static void qede_get_drvinfo(struct net_device *ndev, ndev 658 drivers/net/ethernet/qlogic/qede/qede_ethtool.c struct qede_dev *edev = netdev_priv(ndev); ndev 701 drivers/net/ethernet/qlogic/qede/qede_ethtool.c static void qede_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) ndev 703 drivers/net/ethernet/qlogic/qede/qede_ethtool.c struct qede_dev *edev = netdev_priv(ndev); ndev 711 drivers/net/ethernet/qlogic/qede/qede_ethtool.c static int qede_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) ndev 713 drivers/net/ethernet/qlogic/qede/qede_ethtool.c struct qede_dev *edev = netdev_priv(ndev); ndev 740 drivers/net/ethernet/qlogic/qede/qede_ethtool.c static u32 qede_get_msglevel(struct net_device *ndev) ndev 742 drivers/net/ethernet/qlogic/qede/qede_ethtool.c struct qede_dev *edev = netdev_priv(ndev); ndev 747 drivers/net/ethernet/qlogic/qede/qede_ethtool.c static void qede_set_msglevel(struct net_device *ndev, u32 level) ndev 749 drivers/net/ethernet/qlogic/qede/qede_ethtool.c struct qede_dev *edev = netdev_priv(ndev); ndev 1029 drivers/net/ethernet/qlogic/qede/qede_ethtool.c static void qede_get_regs(struct net_device *ndev, ndev 1032 drivers/net/ethernet/qlogic/qede/qede_ethtool.c struct qede_dev *edev = netdev_priv(ndev); ndev 1041 drivers/net/ethernet/qlogic/qede/qede_ethtool.c static int qede_get_regs_len(struct net_device *ndev) ndev 1043 drivers/net/ethernet/qlogic/qede/qede_ethtool.c struct qede_dev *edev = netdev_priv(ndev); ndev 1054 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edev->ndev->mtu = args->u.mtu; ndev 1058 drivers/net/ethernet/qlogic/qede/qede_ethtool.c int qede_change_mtu(struct net_device *ndev, int new_mtu) ndev 1060 drivers/net/ethernet/qlogic/qede/qede_ethtool.c struct qede_dev *edev = netdev_priv(ndev); ndev 1067 drivers/net/ethernet/qlogic/qede/qede_ethtool.c ndev->features &= ~NETIF_F_GRO_HW; ndev 1468 drivers/net/ethernet/qlogic/qede/qede_ethtool.c if (!netif_running(edev->ndev)) ndev 1622 drivers/net/ethernet/qlogic/qede/qede_ethtool.c if (ether_addr_equal(data_ptr, edev->ndev->dev_addr) && ndev 1624 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edev->ndev->dev_addr)) { ndev 1659 drivers/net/ethernet/qlogic/qede/qede_ethtool.c if (!netif_running(edev->ndev)) { ndev 1679 drivers/net/ethernet/qlogic/qede/qede_ethtool.c pkt_size = (((edev->ndev->mtu < ETH_DATA_LEN) ? ndev 1680 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edev->ndev->mtu : ETH_DATA_LEN) + ETH_HLEN); ndev 1682 drivers/net/ethernet/qlogic/qede/qede_ethtool.c skb = netdev_alloc_skb(edev->ndev, pkt_size); ndev 1689 drivers/net/ethernet/qlogic/qede/qede_ethtool.c ether_addr_copy(packet, edev->ndev->dev_addr); ndev 1690 drivers/net/ethernet/qlogic/qede/qede_ethtool.c ether_addr_copy(packet + ETH_ALEN, edev->ndev->dev_addr); ndev 282 drivers/net/ethernet/qlogic/qede/qede_filter.c flow_exp = rps_may_expire_flow(edev->ndev, ndev 358 drivers/net/ethernet/qlogic/qede/qede_filter.c edev->ndev->rx_cpu_rmap = alloc_irq_cpu_rmap(QEDE_RSS_COUNT(edev)); ndev 359 drivers/net/ethernet/qlogic/qede/qede_filter.c if (!edev->ndev->rx_cpu_rmap) { ndev 376 drivers/net/ethernet/qlogic/qede/qede_filter.c if (edev->ndev->rx_cpu_rmap) ndev 377 drivers/net/ethernet/qlogic/qede/qede_filter.c free_irq_cpu_rmap(edev->ndev->rx_cpu_rmap); ndev 379 drivers/net/ethernet/qlogic/qede/qede_filter.c edev->ndev->rx_cpu_rmap = NULL; ndev 582 drivers/net/ethernet/qlogic/qede/qede_filter.c ether_addr_copy(edev->ndev->dev_addr, mac); ndev 934 drivers/net/ethernet/qlogic/qede/qede_filter.c edev->ndev->features = args->u.features; ndev 942 drivers/net/ethernet/qlogic/qede/qede_filter.c if (edev->xdp_prog || edev->ndev->mtu > PAGE_SIZE || ndev 1147 drivers/net/ethernet/qlogic/qede/qede_filter.c int qede_set_mac_addr(struct net_device *ndev, void *p) ndev 1149 drivers/net/ethernet/qlogic/qede/qede_filter.c struct qede_dev *edev = netdev_priv(ndev); ndev 1175 drivers/net/ethernet/qlogic/qede/qede_filter.c ndev->dev_addr); ndev 1180 drivers/net/ethernet/qlogic/qede/qede_filter.c ether_addr_copy(ndev->dev_addr, addr->sa_data); ndev 1189 drivers/net/ethernet/qlogic/qede/qede_filter.c ndev->dev_addr); ndev 1193 drivers/net/ethernet/qlogic/qede/qede_filter.c edev->ops->common->update_mac(edev->cdev, ndev->dev_addr); ndev 1196 drivers/net/ethernet/qlogic/qede/qede_filter.c ndev->dev_addr); ndev 1203 drivers/net/ethernet/qlogic/qede/qede_filter.c qede_configure_mcast_filtering(struct net_device *ndev, ndev 1206 drivers/net/ethernet/qlogic/qede/qede_filter.c struct qede_dev *edev = netdev_priv(ndev); ndev 1230 drivers/net/ethernet/qlogic/qede/qede_filter.c netif_addr_lock_bh(ndev); ndev 1232 drivers/net/ethernet/qlogic/qede/qede_filter.c mc_count = netdev_mc_count(ndev); ndev 1234 drivers/net/ethernet/qlogic/qede/qede_filter.c netdev_for_each_mc_addr(ha, ndev) { ndev 1240 drivers/net/ethernet/qlogic/qede/qede_filter.c netif_addr_unlock_bh(ndev); ndev 1243 drivers/net/ethernet/qlogic/qede/qede_filter.c if ((ndev->flags & IFF_ALLMULTI) || (mc_count > 64)) { ndev 1257 drivers/net/ethernet/qlogic/qede/qede_filter.c void qede_set_rx_mode(struct net_device *ndev) ndev 1259 drivers/net/ethernet/qlogic/qede/qede_filter.c struct qede_dev *edev = netdev_priv(ndev); ndev 1266 drivers/net/ethernet/qlogic/qede/qede_filter.c void qede_config_rx_mode(struct net_device *ndev) ndev 1269 drivers/net/ethernet/qlogic/qede/qede_filter.c struct qede_dev *edev = netdev_priv(ndev); ndev 1276 drivers/net/ethernet/qlogic/qede/qede_filter.c netif_addr_lock_bh(ndev); ndev 1278 drivers/net/ethernet/qlogic/qede/qede_filter.c uc_count = netdev_uc_count(ndev); ndev 1284 drivers/net/ethernet/qlogic/qede/qede_filter.c netif_addr_unlock_bh(ndev); ndev 1289 drivers/net/ethernet/qlogic/qede/qede_filter.c netdev_for_each_uc_addr(ha, ndev) { ndev 1294 drivers/net/ethernet/qlogic/qede/qede_filter.c netif_addr_unlock_bh(ndev); ndev 1304 drivers/net/ethernet/qlogic/qede/qede_filter.c edev->ndev->dev_addr); ndev 1309 drivers/net/ethernet/qlogic/qede/qede_filter.c if (ndev->flags & IFF_PROMISC) ndev 1332 drivers/net/ethernet/qlogic/qede/qede_filter.c rc = qede_configure_mcast_filtering(ndev, &accept_flags); ndev 1337 drivers/net/ethernet/qlogic/qede/qede_filter.c if (ndev->flags & IFF_PROMISC) { ndev 416 drivers/net/ethernet/qlogic/qede/qede_fp.c netdev_txq = netdev_get_tx_queue(edev->ndev, txq->ndev_txq_id); ndev 777 drivers/net/ethernet/qlogic/qede/qede_fp.c skb = netdev_alloc_skb(edev->ndev, QEDE_RX_HDR_SIZE); ndev 983 drivers/net/ethernet/qlogic/qede/qede_fp.c skb->protocol = eth_type_trans(skb, edev->ndev); ndev 1093 drivers/net/ethernet/qlogic/qede/qede_fp.c trace_xdp_exception(edev->ndev, prog, act); ndev 1104 drivers/net/ethernet/qlogic/qede/qede_fp.c trace_xdp_exception(edev->ndev, prog, act); ndev 1115 drivers/net/ethernet/qlogic/qede/qede_fp.c trace_xdp_exception(edev->ndev, prog, act); ndev 1285 drivers/net/ethernet/qlogic/qede/qede_fp.c skb->protocol = eth_type_trans(skb, edev->ndev); ndev 1429 drivers/net/ethernet/qlogic/qede/qede_fp.c netdev_tx_t qede_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 1431 drivers/net/ethernet/qlogic/qede/qede_fp.c struct qede_dev *edev = netdev_priv(ndev); ndev 1451 drivers/net/ethernet/qlogic/qede/qede_fp.c netdev_txq = netdev_get_tx_queue(ndev, txq_index); ndev 143 drivers/net/ethernet/qlogic/qede/qede_main.c static int qede_set_vf_vlan(struct net_device *ndev, int vf, u16 vlan, u8 qos, ndev 146 drivers/net/ethernet/qlogic/qede/qede_main.c struct qede_dev *edev = netdev_priv(ndev); ndev 162 drivers/net/ethernet/qlogic/qede/qede_main.c static int qede_set_vf_mac(struct net_device *ndev, int vfidx, u8 *mac) ndev 164 drivers/net/ethernet/qlogic/qede/qede_main.c struct qede_dev *edev = netdev_priv(ndev); ndev 193 drivers/net/ethernet/qlogic/qede/qede_main.c if ((rc == num_vfs_param) && netif_running(edev->ndev) && ndev 234 drivers/net/ethernet/qlogic/qede/qede_main.c struct net_device *ndev = netdev_notifier_info_to_dev(ptr); ndev 242 drivers/net/ethernet/qlogic/qede/qede_main.c if (!ndev || !ndev->ethtool_ops || !ndev->ethtool_ops->get_drvinfo) ndev 246 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->ethtool_ops->get_drvinfo(ndev, &drvinfo); ndev 249 drivers/net/ethernet/qlogic/qede/qede_main.c edev = netdev_priv(ndev); ndev 256 drivers/net/ethernet/qlogic/qede/qede_main.c edev->ops->common->set_name(edev->cdev, edev->ndev->name); ndev 259 drivers/net/ethernet/qlogic/qede/qede_main.c edev = netdev_priv(ndev); ndev 319 drivers/net/ethernet/qlogic/qede/qede_main.c static int qede_open(struct net_device *ndev); ndev 320 drivers/net/ethernet/qlogic/qede/qede_main.c static int qede_close(struct net_device *ndev); ndev 530 drivers/net/ethernet/qlogic/qede/qede_main.c static int qede_setup_tc(struct net_device *ndev, u8 num_tc) ndev 532 drivers/net/ethernet/qlogic/qede/qede_main.c struct qede_dev *edev = netdev_priv(ndev); ndev 538 drivers/net/ethernet/qlogic/qede/qede_main.c netdev_reset_tc(ndev); ndev 539 drivers/net/ethernet/qlogic/qede/qede_main.c netdev_set_num_tc(ndev, num_tc); ndev 544 drivers/net/ethernet/qlogic/qede/qede_main.c netdev_set_tc_queue(ndev, cos, count, offset); ndev 570 drivers/net/ethernet/qlogic/qede/qede_main.c if (!tc_cls_can_offload_and_chain0(edev->ndev, type_data)) ndev 692 drivers/net/ethernet/qlogic/qede/qede_main.c struct net_device *ndev; ndev 695 drivers/net/ethernet/qlogic/qede/qede_main.c ndev = alloc_etherdev_mqs(sizeof(*edev), ndev 698 drivers/net/ethernet/qlogic/qede/qede_main.c if (!ndev) { ndev 703 drivers/net/ethernet/qlogic/qede/qede_main.c edev = netdev_priv(ndev); ndev 704 drivers/net/ethernet/qlogic/qede/qede_main.c edev->ndev = ndev; ndev 716 drivers/net/ethernet/qlogic/qede/qede_main.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 734 drivers/net/ethernet/qlogic/qede/qede_main.c struct net_device *ndev = edev->ndev; ndev 739 drivers/net/ethernet/qlogic/qede/qede_main.c pci_set_drvdata(pdev, ndev); ndev 741 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->mem_start = edev->dev_info.common.pci_mem_start; ndev 742 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->base_addr = ndev->mem_start; ndev 743 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->mem_end = edev->dev_info.common.pci_mem_end; ndev 744 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->irq = edev->dev_info.common.pci_irq; ndev 746 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->watchdog_timeo = TX_TIMEOUT; ndev 750 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->netdev_ops = &qede_netdev_vf_xdp_ops; ndev 752 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->netdev_ops = &qede_netdev_vf_ops; ndev 754 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->netdev_ops = &qede_netdev_ops; ndev 757 drivers/net/ethernet/qlogic/qede/qede_main.c qede_set_ethtool_ops(ndev); ndev 759 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->priv_flags |= IFF_UNICAST_FLT; ndev 775 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->hw_enc_features = NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | ndev 784 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->hw_enc_features |= (NETIF_F_GSO_UDP_TUNNEL | ndev 790 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->hw_enc_features |= (NETIF_F_GSO_GRE | ndev 794 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->vlan_features = hw_features | NETIF_F_RXHASH | NETIF_F_RXCSUM | ndev 796 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->features = hw_features | NETIF_F_RXHASH | NETIF_F_RXCSUM | ndev 800 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->hw_features = hw_features; ndev 803 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->min_mtu = ETH_ZLEN - ETH_HLEN; ndev 804 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->max_mtu = QEDE_MAX_JUMBO_PACKET_SIZE; ndev 807 drivers/net/ethernet/qlogic/qede/qede_main.c ether_addr_copy(edev->ndev->dev_addr, edev->dev_info.common.hw_mac); ndev 809 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->mtu = edev->dev_info.common.mtu; ndev 988 drivers/net/ethernet/qlogic/qede/qede_main.c qede_config_rx_mode(edev->ndev); ndev 1055 drivers/net/ethernet/qlogic/qede/qede_main.c buf, edev->ndev->name); ndev 1117 drivers/net/ethernet/qlogic/qede/qede_main.c struct net_device *ndev = pci_get_drvdata(pdev); ndev 1119 drivers/net/ethernet/qlogic/qede/qede_main.c edev = netdev_priv(ndev); ndev 1143 drivers/net/ethernet/qlogic/qede/qede_main.c rc = register_netdev(edev->ndev); ndev 1150 drivers/net/ethernet/qlogic/qede/qede_main.c edev->ops->common->set_name(cdev, edev->ndev->name); ndev 1160 drivers/net/ethernet/qlogic/qede/qede_main.c qede_set_dcbnl_ops(edev->ndev); ndev 1171 drivers/net/ethernet/qlogic/qede/qede_main.c free_netdev(edev->ndev); ndev 1210 drivers/net/ethernet/qlogic/qede/qede_main.c struct net_device *ndev = pci_get_drvdata(pdev); ndev 1214 drivers/net/ethernet/qlogic/qede/qede_main.c if (!ndev) { ndev 1219 drivers/net/ethernet/qlogic/qede/qede_main.c edev = netdev_priv(ndev); ndev 1227 drivers/net/ethernet/qlogic/qede/qede_main.c unregister_netdev(ndev); ndev 1251 drivers/net/ethernet/qlogic/qede/qede_main.c free_netdev(ndev); ndev 1391 drivers/net/ethernet/qlogic/qede/qede_main.c rxq->rx_buf_size = NET_IP_ALIGN + ETH_OVERHEAD + edev->ndev->mtu; ndev 1409 drivers/net/ethernet/qlogic/qede/qede_main.c edev->ndev->features &= ~NETIF_F_GRO_HW; ndev 1454 drivers/net/ethernet/qlogic/qede/qede_main.c edev->gro_disable = !(edev->ndev->features & NETIF_F_GRO_HW); ndev 1606 drivers/net/ethernet/qlogic/qede/qede_main.c netdev_txq = netdev_get_tx_queue(edev->ndev, txq->ndev_txq_id); ndev 1680 drivers/net/ethernet/qlogic/qede/qede_main.c WARN_ON(xdp_rxq_info_reg(&fp->rxq->xdp_rxq, edev->ndev, ndev 1705 drivers/net/ethernet/qlogic/qede/qede_main.c edev->ndev->name, queue_id); ndev 1713 drivers/net/ethernet/qlogic/qede/qede_main.c rc = netif_set_real_num_tx_queues(edev->ndev, ndev 1721 drivers/net/ethernet/qlogic/qede/qede_main.c rc = netif_set_real_num_rx_queues(edev->ndev, QEDE_RSS_COUNT(edev)); ndev 1747 drivers/net/ethernet/qlogic/qede/qede_main.c netif_napi_add(edev->ndev, &edev->fp_array[i].napi, ndev 1786 drivers/net/ethernet/qlogic/qede/qede_main.c if (edev->ndev->rx_cpu_rmap && (fp->type & QEDE_FASTPATH_RX)) { ndev 1787 drivers/net/ethernet/qlogic/qede/qede_main.c rc = irq_cpu_rmap_add(edev->ndev->rx_cpu_rmap, ndev 1833 drivers/net/ethernet/qlogic/qede/qede_main.c edev->ndev->irq = edev->int_info.msix[0].vector; ndev 2054 drivers/net/ethernet/qlogic/qede/qede_main.c start.mtu = edev->ndev->mtu; ndev 2069 drivers/net/ethernet/qlogic/qede/qede_main.c start.vport_id, edev->ndev->mtu + 0xe, vlan_removal_en); ndev 2185 drivers/net/ethernet/qlogic/qede/qede_main.c netif_tx_disable(edev->ndev); ndev 2186 drivers/net/ethernet/qlogic/qede/qede_main.c netif_carrier_off(edev->ndev); ndev 2292 drivers/net/ethernet/qlogic/qede/qede_main.c num_tc = netdev_get_num_tc(edev->ndev); ndev 2294 drivers/net/ethernet/qlogic/qede/qede_main.c qede_setup_tc(edev->ndev, num_tc); ndev 2351 drivers/net/ethernet/qlogic/qede/qede_main.c qede_config_rx_mode(edev->ndev); ndev 2361 drivers/net/ethernet/qlogic/qede/qede_main.c static int qede_open(struct net_device *ndev) ndev 2363 drivers/net/ethernet/qlogic/qede/qede_main.c struct qede_dev *edev = netdev_priv(ndev); ndev 2366 drivers/net/ethernet/qlogic/qede/qede_main.c netif_carrier_off(ndev); ndev 2374 drivers/net/ethernet/qlogic/qede/qede_main.c udp_tunnel_get_rx_info(ndev); ndev 2381 drivers/net/ethernet/qlogic/qede/qede_main.c static int qede_close(struct net_device *ndev) ndev 2383 drivers/net/ethernet/qlogic/qede/qede_main.c struct qede_dev *edev = netdev_priv(ndev); ndev 2402 drivers/net/ethernet/qlogic/qede/qede_main.c if (!netif_carrier_ok(edev->ndev)) { ndev 2404 drivers/net/ethernet/qlogic/qede/qede_main.c netif_tx_start_all_queues(edev->ndev); ndev 2405 drivers/net/ethernet/qlogic/qede/qede_main.c netif_carrier_on(edev->ndev); ndev 2409 drivers/net/ethernet/qlogic/qede/qede_main.c if (netif_carrier_ok(edev->ndev)) { ndev 2411 drivers/net/ethernet/qlogic/qede/qede_main.c netif_tx_disable(edev->ndev); ndev 2412 drivers/net/ethernet/qlogic/qede/qede_main.c netif_carrier_off(edev->ndev); ndev 2436 drivers/net/ethernet/qlogic/qede/qede_main.c netdev_err(edev->ndev, "Recovery handling has failed. Power cycle is needed.\n"); ndev 2438 drivers/net/ethernet/qlogic/qede/qede_main.c netif_device_detach(edev->ndev); ndev 2475 drivers/net/ethernet/qlogic/qede/qede_main.c qede_config_rx_mode(edev->ndev); ndev 2476 drivers/net/ethernet/qlogic/qede/qede_main.c udp_tunnel_get_rx_info(edev->ndev); ndev 2493 drivers/net/ethernet/qlogic/qede/qede_main.c netdev_txq = netdev_get_tx_queue(edev->ndev, txq->ndev_txq_id); ndev 2506 drivers/net/ethernet/qlogic/qede/qede_main.c if (edev->ndev->features & NETIF_F_IP_CSUM) ndev 2508 drivers/net/ethernet/qlogic/qede/qede_main.c if (edev->ndev->features & NETIF_F_TSO) ndev 2511 drivers/net/ethernet/qlogic/qede/qede_main.c ether_addr_copy(data->mac[0], edev->ndev->dev_addr); ndev 2515 drivers/net/ethernet/qlogic/qede/qede_main.c netif_addr_lock_bh(edev->ndev); ndev 2517 drivers/net/ethernet/qlogic/qede/qede_main.c netdev_for_each_uc_addr(ha, edev->ndev) { ndev 2523 drivers/net/ethernet/qlogic/qede/qede_main.c netif_addr_unlock_bh(edev->ndev); ndev 2537 drivers/net/ethernet/qlogic/qede/qede_main.c etlv->prom_mode = !!(edev->ndev->flags & IFF_PROMISC); ndev 493 drivers/net/ethernet/qlogic/qede/qede_ptp.c snprintf(ptp->clock_info.name, 16, "%s", edev->ndev->name); ndev 56 drivers/net/ethernet/qlogic/qede/qede_rdma.c edev->ndev); ndev 220 drivers/net/ethernet/qlogic/qede/qede_rdma.c struct net_device *ndev; ndev 224 drivers/net/ethernet/qlogic/qede/qede_rdma.c ndev = edev->ndev; ndev 225 drivers/net/ethernet/qlogic/qede/qede_rdma.c if (netif_running(ndev) && netif_oper_up(ndev)) ndev 154 drivers/net/ethernet/qlogic/qla3xxx.c netdev_printk(KERN_DEBUG, qdev->ndev, ndev 161 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "Timed out waiting for driver lock...\n"); ndev 309 drivers/net/ethernet/qlogic/qla3xxx.c lrg_buf_cb->skb = netdev_alloc_skb(qdev->ndev, ndev 326 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, ndev 511 drivers/net/ethernet/qlogic/qla3xxx.c static void ql_set_mac_addr(struct net_device *ndev, u16 *addr) ndev 513 drivers/net/ethernet/qlogic/qla3xxx.c __le16 *p = (__le16 *)ndev->dev_addr; ndev 546 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "checksum should be zero, is %x!!\n", ndev 644 drivers/net/ethernet/qlogic/qla3xxx.c netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG); ndev 655 drivers/net/ethernet/qlogic/qla3xxx.c netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG); ndev 676 drivers/net/ethernet/qlogic/qla3xxx.c netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG); ndev 691 drivers/net/ethernet/qlogic/qla3xxx.c netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG); ndev 712 drivers/net/ethernet/qlogic/qla3xxx.c netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG); ndev 723 drivers/net/ethernet/qlogic/qla3xxx.c netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG); ndev 741 drivers/net/ethernet/qlogic/qla3xxx.c netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG); ndev 756 drivers/net/ethernet/qlogic/qla3xxx.c netif_warn(qdev, link, qdev->ndev, TIMED_OUT_MSG); ndev 842 drivers/net/ethernet/qlogic/qla3xxx.c netdev_info(qdev->ndev, "enabling Agere specific PHY\n"); ndev 897 drivers/net/ethernet/qlogic/qla3xxx.c netdev_info(qdev->ndev, "Phy: %s\n", ndev 979 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "Could not read from reg PHY_ID_0_REG\n"); ndev 985 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "Could not read from reg PHY_ID_1_REG\n"); ndev 1001 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, ndev 1008 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "Could not read from reg PHY_ID_1_REG after Agere detected\n"); ndev 1024 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "PHY is unknown\n"); ndev 1184 drivers/net/ethernet/qlogic/qla3xxx.c netif_info(qdev, link, qdev->ndev, "Auto-Negotiate complete\n"); ndev 1187 drivers/net/ethernet/qlogic/qla3xxx.c netif_info(qdev, link, qdev->ndev, "Auto-Negotiate incomplete\n"); ndev 1314 drivers/net/ethernet/qlogic/qla3xxx.c netif_printk(qdev, link, KERN_DEBUG, qdev->ndev, ndev 1319 drivers/net/ethernet/qlogic/qla3xxx.c netif_printk(qdev, link, KERN_DEBUG, qdev->ndev, "link master\n"); ndev 1442 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "Could not get hw lock for GIO\n"); ndev 1468 drivers/net/ethernet/qlogic/qla3xxx.c netif_printk(qdev, link, KERN_DEBUG, qdev->ndev, ndev 1484 drivers/net/ethernet/qlogic/qla3xxx.c netif_printk(qdev, link, KERN_DEBUG, qdev->ndev, ndev 1490 drivers/net/ethernet/qlogic/qla3xxx.c netif_start_queue(qdev->ndev); ndev 1491 drivers/net/ethernet/qlogic/qla3xxx.c netif_carrier_on(qdev->ndev); ndev 1492 drivers/net/ethernet/qlogic/qla3xxx.c netif_info(qdev, link, qdev->ndev, ndev 1500 drivers/net/ethernet/qlogic/qla3xxx.c netif_printk(qdev, link, KERN_DEBUG, qdev->ndev, ndev 1529 drivers/net/ethernet/qlogic/qla3xxx.c netif_info(qdev, link, qdev->ndev, ndev 1549 drivers/net/ethernet/qlogic/qla3xxx.c netif_info(qdev, link, qdev->ndev, "Link is up\n"); ndev 1566 drivers/net/ethernet/qlogic/qla3xxx.c netif_info(qdev, link, qdev->ndev, "Link is down\n"); ndev 1708 drivers/net/ethernet/qlogic/qla3xxx.c static int ql_get_link_ksettings(struct net_device *ndev, ndev 1711 drivers/net/ethernet/qlogic/qla3xxx.c struct ql3_adapter *qdev = netdev_priv(ndev); ndev 1735 drivers/net/ethernet/qlogic/qla3xxx.c static void ql_get_drvinfo(struct net_device *ndev, ndev 1738 drivers/net/ethernet/qlogic/qla3xxx.c struct ql3_adapter *qdev = netdev_priv(ndev); ndev 1746 drivers/net/ethernet/qlogic/qla3xxx.c static u32 ql_get_msglevel(struct net_device *ndev) ndev 1748 drivers/net/ethernet/qlogic/qla3xxx.c struct ql3_adapter *qdev = netdev_priv(ndev); ndev 1752 drivers/net/ethernet/qlogic/qla3xxx.c static void ql_set_msglevel(struct net_device *ndev, u32 value) ndev 1754 drivers/net/ethernet/qlogic/qla3xxx.c struct ql3_adapter *qdev = netdev_priv(ndev); ndev 1758 drivers/net/ethernet/qlogic/qla3xxx.c static void ql_get_pauseparam(struct net_device *ndev, ndev 1761 drivers/net/ethernet/qlogic/qla3xxx.c struct ql3_adapter *qdev = netdev_priv(ndev); ndev 1794 drivers/net/ethernet/qlogic/qla3xxx.c netdev_alloc_skb(qdev->ndev, ndev 1797 drivers/net/ethernet/qlogic/qla3xxx.c netdev_printk(KERN_DEBUG, qdev->ndev, ndev 1814 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, ndev 1924 drivers/net/ethernet/qlogic/qla3xxx.c netdev_warn(qdev->ndev, ndev 1932 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, ndev 1935 drivers/net/ethernet/qlogic/qla3xxx.c qdev->ndev->stats.tx_errors++; ndev 1940 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "tx_cb->seg_count == 0: %d\n", ndev 1943 drivers/net/ethernet/qlogic/qla3xxx.c qdev->ndev->stats.tx_errors++; ndev 1961 drivers/net/ethernet/qlogic/qla3xxx.c qdev->ndev->stats.tx_packets++; ndev 1962 drivers/net/ethernet/qlogic/qla3xxx.c qdev->ndev->stats.tx_bytes += tx_cb->skb->len; ndev 2021 drivers/net/ethernet/qlogic/qla3xxx.c qdev->ndev->stats.rx_packets++; ndev 2022 drivers/net/ethernet/qlogic/qla3xxx.c qdev->ndev->stats.rx_bytes += length; ndev 2031 drivers/net/ethernet/qlogic/qla3xxx.c skb->protocol = eth_type_trans(skb, qdev->ndev); ndev 2047 drivers/net/ethernet/qlogic/qla3xxx.c struct net_device *ndev = qdev->ndev; ndev 2090 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, ndev 2101 drivers/net/ethernet/qlogic/qla3xxx.c skb2->protocol = eth_type_trans(skb2, qdev->ndev); ndev 2104 drivers/net/ethernet/qlogic/qla3xxx.c ndev->stats.rx_packets++; ndev 2105 drivers/net/ethernet/qlogic/qla3xxx.c ndev->stats.rx_bytes += length; ndev 2116 drivers/net/ethernet/qlogic/qla3xxx.c struct net_device *ndev = qdev->ndev; ndev 2154 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, ndev 2207 drivers/net/ethernet/qlogic/qla3xxx.c struct net_device *ndev = dev_id; ndev 2208 drivers/net/ethernet/qlogic/qla3xxx.c struct ql3_adapter *qdev = netdev_priv(ndev); ndev 2220 drivers/net/ethernet/qlogic/qla3xxx.c netif_stop_queue(qdev->ndev); ndev 2221 drivers/net/ethernet/qlogic/qla3xxx.c netif_carrier_off(qdev->ndev); ndev 2233 drivers/net/ethernet/qlogic/qla3xxx.c netdev_warn(ndev, ndev 2242 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, ndev 2327 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "PCI mapping failed with error: %d\n", ndev 2367 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, ndev 2390 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, ndev 2462 drivers/net/ethernet/qlogic/qla3xxx.c struct net_device *ndev) ndev 2464 drivers/net/ethernet/qlogic/qla3xxx.c struct ql3_adapter *qdev = netdev_priv(ndev); ndev 2478 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, "%s: invalid segment count!\n", __func__); ndev 2495 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, "%s: Could not map the segments!\n", __func__); ndev 2508 drivers/net/ethernet/qlogic/qla3xxx.c netif_printk(qdev, tx_queued, KERN_DEBUG, ndev, ndev 2535 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "reqQ failed\n"); ndev 2546 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "rspQ allocation failed\n"); ndev 2561 drivers/net/ethernet/qlogic/qla3xxx.c netdev_info(qdev->ndev, "Already done\n"); ndev 2602 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "lBufQ failed\n"); ndev 2622 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "Small Buffer Queue allocation failed\n"); ndev 2638 drivers/net/ethernet/qlogic/qla3xxx.c netdev_info(qdev->ndev, "Already done\n"); ndev 2675 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "Failed to get small buffer memory\n"); ndev 2701 drivers/net/ethernet/qlogic/qla3xxx.c netdev_info(qdev->ndev, "Already done\n"); ndev 2762 drivers/net/ethernet/qlogic/qla3xxx.c skb = netdev_alloc_skb(qdev->ndev, ndev 2766 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, ndev 2786 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, ndev 2843 drivers/net/ethernet/qlogic/qla3xxx.c if (qdev->ndev->mtu == NORMAL_MTU_SIZE) { ndev 2846 drivers/net/ethernet/qlogic/qla3xxx.c } else if (qdev->ndev->mtu == JUMBO_MTU_SIZE) { ndev 2853 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "Invalid mtu size: %d. Only %d and %d are accepted.\n", ndev 2854 drivers/net/ethernet/qlogic/qla3xxx.c qdev->ndev->mtu, NORMAL_MTU_SIZE, JUMBO_MTU_SIZE); ndev 2886 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "shadowReg Alloc failed\n"); ndev 2891 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "ql_alloc_net_req_rsp_queues failed\n"); ndev 2896 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "ql_alloc_buffer_queues failed\n"); ndev 2901 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "ql_alloc_small_buffers failed\n"); ndev 2906 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "ql_alloc_large_buffers failed\n"); ndev 3028 drivers/net/ethernet/qlogic/qla3xxx.c netif_carrier_off(qdev->ndev); ndev 3188 drivers/net/ethernet/qlogic/qla3xxx.c ((qdev->ndev->dev_addr[2] << 24) ndev 3189 drivers/net/ethernet/qlogic/qla3xxx.c | (qdev->ndev->dev_addr[3] << 16) ndev 3190 drivers/net/ethernet/qlogic/qla3xxx.c | (qdev->ndev->dev_addr[4] << 8) ndev 3191 drivers/net/ethernet/qlogic/qla3xxx.c | qdev->ndev->dev_addr[5])); ndev 3197 drivers/net/ethernet/qlogic/qla3xxx.c ((qdev->ndev->dev_addr[0] << 8) ndev 3198 drivers/net/ethernet/qlogic/qla3xxx.c | qdev->ndev->dev_addr[1])); ndev 3233 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, "Hw Initialization timeout\n"); ndev 3276 drivers/net/ethernet/qlogic/qla3xxx.c netdev_printk(KERN_DEBUG, qdev->ndev, "Issue soft reset to chip\n"); ndev 3282 drivers/net/ethernet/qlogic/qla3xxx.c netdev_printk(KERN_DEBUG, qdev->ndev, ndev 3304 drivers/net/ethernet/qlogic/qla3xxx.c netdev_printk(KERN_DEBUG, qdev->ndev, ndev 3379 drivers/net/ethernet/qlogic/qla3xxx.c netdev_printk(KERN_DEBUG, qdev->ndev, ndev 3387 drivers/net/ethernet/qlogic/qla3xxx.c static void ql_display_dev_info(struct net_device *ndev) ndev 3389 drivers/net/ethernet/qlogic/qla3xxx.c struct ql3_adapter *qdev = netdev_priv(ndev); ndev 3392 drivers/net/ethernet/qlogic/qla3xxx.c netdev_info(ndev, ndev 3397 drivers/net/ethernet/qlogic/qla3xxx.c netdev_info(ndev, "%s Interface\n", ndev 3403 drivers/net/ethernet/qlogic/qla3xxx.c netdev_info(ndev, "Bus interface is %s %s\n", ndev 3407 drivers/net/ethernet/qlogic/qla3xxx.c netdev_info(ndev, "mem IO base address adjusted = 0x%p\n", ndev 3409 drivers/net/ethernet/qlogic/qla3xxx.c netdev_info(ndev, "Interrupt number = %d\n", pdev->irq); ndev 3411 drivers/net/ethernet/qlogic/qla3xxx.c netif_info(qdev, probe, ndev, "MAC address %pM\n", ndev->dev_addr); ndev 3416 drivers/net/ethernet/qlogic/qla3xxx.c struct net_device *ndev = qdev->ndev; ndev 3419 drivers/net/ethernet/qlogic/qla3xxx.c netif_stop_queue(ndev); ndev 3420 drivers/net/ethernet/qlogic/qla3xxx.c netif_carrier_off(ndev); ndev 3427 drivers/net/ethernet/qlogic/qla3xxx.c free_irq(qdev->pdev->irq, ndev); ndev 3430 drivers/net/ethernet/qlogic/qla3xxx.c netdev_info(qdev->ndev, "calling pci_disable_msi()\n"); ndev 3447 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, "ql_adapter_reset(%d) FAILED!\n", ndev 3450 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, ndev 3453 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, ndev 3465 drivers/net/ethernet/qlogic/qla3xxx.c struct net_device *ndev = qdev->ndev; ndev 3471 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, "Unable to allocate buffers\n"); ndev 3477 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, ndev 3481 drivers/net/ethernet/qlogic/qla3xxx.c netdev_info(ndev, "MSI Enabled...\n"); ndev 3488 drivers/net/ethernet/qlogic/qla3xxx.c irq_flags, ndev->name, ndev); ndev 3490 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, ndev 3502 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, "Unable to initialize adapter\n"); ndev 3505 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, "Releasing driver lock\n"); ndev 3508 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, "Could not acquire driver lock\n"); ndev 3526 drivers/net/ethernet/qlogic/qla3xxx.c free_irq(qdev->pdev->irq, ndev); ndev 3529 drivers/net/ethernet/qlogic/qla3xxx.c netdev_info(ndev, "calling pci_disable_msi()\n"); ndev 3539 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(qdev->ndev, ndev 3542 drivers/net/ethernet/qlogic/qla3xxx.c dev_close(qdev->ndev); ndev 3549 drivers/net/ethernet/qlogic/qla3xxx.c static int ql3xxx_close(struct net_device *ndev) ndev 3551 drivers/net/ethernet/qlogic/qla3xxx.c struct ql3_adapter *qdev = netdev_priv(ndev); ndev 3564 drivers/net/ethernet/qlogic/qla3xxx.c static int ql3xxx_open(struct net_device *ndev) ndev 3566 drivers/net/ethernet/qlogic/qla3xxx.c struct ql3_adapter *qdev = netdev_priv(ndev); ndev 3570 drivers/net/ethernet/qlogic/qla3xxx.c static int ql3xxx_set_mac_address(struct net_device *ndev, void *p) ndev 3572 drivers/net/ethernet/qlogic/qla3xxx.c struct ql3_adapter *qdev = netdev_priv(ndev); ndev 3578 drivers/net/ethernet/qlogic/qla3xxx.c if (netif_running(ndev)) ndev 3584 drivers/net/ethernet/qlogic/qla3xxx.c memcpy(ndev->dev_addr, addr->sa_data, ndev->addr_len); ndev 3591 drivers/net/ethernet/qlogic/qla3xxx.c ((ndev->dev_addr[2] << 24) | (ndev-> ndev 3593 drivers/net/ethernet/qlogic/qla3xxx.c (ndev->dev_addr[4] << 8) | ndev->dev_addr[5])); ndev 3599 drivers/net/ethernet/qlogic/qla3xxx.c ((ndev->dev_addr[0] << 8) | ndev->dev_addr[1])); ndev 3605 drivers/net/ethernet/qlogic/qla3xxx.c static void ql3xxx_tx_timeout(struct net_device *ndev) ndev 3607 drivers/net/ethernet/qlogic/qla3xxx.c struct ql3_adapter *qdev = netdev_priv(ndev); ndev 3609 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, "Resetting...\n"); ndev 3613 drivers/net/ethernet/qlogic/qla3xxx.c netif_stop_queue(ndev); ndev 3625 drivers/net/ethernet/qlogic/qla3xxx.c struct net_device *ndev = qdev->ndev; ndev 3643 drivers/net/ethernet/qlogic/qla3xxx.c netdev_printk(KERN_DEBUG, ndev, ndev 3663 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, "Clearing NRI after reset\n"); ndev 3679 drivers/net/ethernet/qlogic/qla3xxx.c netdev_printk(KERN_DEBUG, ndev, ndev 3685 drivers/net/ethernet/qlogic/qla3xxx.c netdev_printk(KERN_DEBUG, ndev, ndev 3707 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, ndev 3709 drivers/net/ethernet/qlogic/qla3xxx.c netdev_err(ndev, "Do a reset\n"); ndev 3769 drivers/net/ethernet/qlogic/qla3xxx.c struct net_device *ndev = NULL; ndev 3801 drivers/net/ethernet/qlogic/qla3xxx.c ndev = alloc_etherdev(sizeof(struct ql3_adapter)); ndev 3802 drivers/net/ethernet/qlogic/qla3xxx.c if (!ndev) { ndev 3807 drivers/net/ethernet/qlogic/qla3xxx.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 3809 drivers/net/ethernet/qlogic/qla3xxx.c pci_set_drvdata(pdev, ndev); ndev 3811 drivers/net/ethernet/qlogic/qla3xxx.c qdev = netdev_priv(ndev); ndev 3813 drivers/net/ethernet/qlogic/qla3xxx.c qdev->ndev = ndev; ndev 3823 drivers/net/ethernet/qlogic/qla3xxx.c ndev->features |= NETIF_F_HIGHDMA; ndev 3825 drivers/net/ethernet/qlogic/qla3xxx.c ndev->features |= NETIF_F_IP_CSUM | NETIF_F_SG; ndev 3838 drivers/net/ethernet/qlogic/qla3xxx.c ndev->netdev_ops = &ql3xxx_netdev_ops; ndev 3839 drivers/net/ethernet/qlogic/qla3xxx.c ndev->ethtool_ops = &ql3xxx_ethtool_ops; ndev 3840 drivers/net/ethernet/qlogic/qla3xxx.c ndev->watchdog_timeo = 5 * HZ; ndev 3842 drivers/net/ethernet/qlogic/qla3xxx.c netif_napi_add(ndev, &qdev->napi, ql_poll, 64); ndev 3844 drivers/net/ethernet/qlogic/qla3xxx.c ndev->irq = pdev->irq; ndev 3858 drivers/net/ethernet/qlogic/qla3xxx.c ndev->mtu = qdev->nvram_data.macCfg_port1.etherMtu_mac ; ndev 3859 drivers/net/ethernet/qlogic/qla3xxx.c ql_set_mac_addr(ndev, qdev->nvram_data.funcCfg_fn2.macAddress); ndev 3861 drivers/net/ethernet/qlogic/qla3xxx.c ndev->mtu = qdev->nvram_data.macCfg_port0.etherMtu_mac ; ndev 3862 drivers/net/ethernet/qlogic/qla3xxx.c ql_set_mac_addr(ndev, qdev->nvram_data.funcCfg_fn0.macAddress); ndev 3865 drivers/net/ethernet/qlogic/qla3xxx.c ndev->tx_queue_len = NUM_REQ_Q_ENTRIES; ndev 3877 drivers/net/ethernet/qlogic/qla3xxx.c err = register_netdev(ndev); ndev 3885 drivers/net/ethernet/qlogic/qla3xxx.c netif_carrier_off(ndev); ndev 3886 drivers/net/ethernet/qlogic/qla3xxx.c netif_stop_queue(ndev); ndev 3888 drivers/net/ethernet/qlogic/qla3xxx.c qdev->workqueue = create_singlethread_workqueue(ndev->name); ndev 3890 drivers/net/ethernet/qlogic/qla3xxx.c unregister_netdev(ndev); ndev 3907 drivers/net/ethernet/qlogic/qla3xxx.c ql_display_dev_info(ndev); ndev 3915 drivers/net/ethernet/qlogic/qla3xxx.c free_netdev(ndev); ndev 3926 drivers/net/ethernet/qlogic/qla3xxx.c struct net_device *ndev = pci_get_drvdata(pdev); ndev 3927 drivers/net/ethernet/qlogic/qla3xxx.c struct ql3_adapter *qdev = netdev_priv(ndev); ndev 3929 drivers/net/ethernet/qlogic/qla3xxx.c unregister_netdev(ndev); ndev 3942 drivers/net/ethernet/qlogic/qla3xxx.c free_netdev(ndev); ndev 1077 drivers/net/ethernet/qlogic/qla3xxx.h struct net_device *ndev; /* Parent NET device */ ndev 6331 drivers/net/ethernet/realtek/r8169_main.c static void r8169_phylink_handler(struct net_device *ndev) ndev 6333 drivers/net/ethernet/realtek/r8169_main.c struct rtl8169_private *tp = netdev_priv(ndev); ndev 6335 drivers/net/ethernet/realtek/r8169_main.c if (netif_carrier_ok(ndev)) { ndev 993 drivers/net/ethernet/renesas/ravb.h struct net_device *ndev; ndev 1042 drivers/net/ethernet/renesas/ravb.h static inline u32 ravb_read(struct net_device *ndev, enum ravb_reg reg) ndev 1044 drivers/net/ethernet/renesas/ravb.h struct ravb_private *priv = netdev_priv(ndev); ndev 1049 drivers/net/ethernet/renesas/ravb.h static inline void ravb_write(struct net_device *ndev, u32 data, ndev 1052 drivers/net/ethernet/renesas/ravb.h struct ravb_private *priv = netdev_priv(ndev); ndev 1057 drivers/net/ethernet/renesas/ravb.h void ravb_modify(struct net_device *ndev, enum ravb_reg reg, u32 clear, ndev 1059 drivers/net/ethernet/renesas/ravb.h int ravb_wait(struct net_device *ndev, enum ravb_reg reg, u32 mask, u32 value); ndev 1061 drivers/net/ethernet/renesas/ravb.h void ravb_ptp_interrupt(struct net_device *ndev); ndev 1062 drivers/net/ethernet/renesas/ravb.h void ravb_ptp_init(struct net_device *ndev, struct platform_device *pdev); ndev 1063 drivers/net/ethernet/renesas/ravb.h void ravb_ptp_stop(struct net_device *ndev); ndev 53 drivers/net/ethernet/renesas/ravb_main.c void ravb_modify(struct net_device *ndev, enum ravb_reg reg, u32 clear, ndev 56 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, (ravb_read(ndev, reg) & ~clear) | set, reg); ndev 59 drivers/net/ethernet/renesas/ravb_main.c int ravb_wait(struct net_device *ndev, enum ravb_reg reg, u32 mask, u32 value) ndev 64 drivers/net/ethernet/renesas/ravb_main.c if ((ravb_read(ndev, reg) & mask) == value) ndev 71 drivers/net/ethernet/renesas/ravb_main.c static int ravb_config(struct net_device *ndev) ndev 76 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, CCC, CCC_OPC, CCC_OPC_CONFIG); ndev 78 drivers/net/ethernet/renesas/ravb_main.c error = ravb_wait(ndev, CSR, CSR_OPS, CSR_OPS_CONFIG); ndev 80 drivers/net/ethernet/renesas/ravb_main.c netdev_err(ndev, "failed to switch device to config mode\n"); ndev 85 drivers/net/ethernet/renesas/ravb_main.c static void ravb_set_rate(struct net_device *ndev) ndev 87 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 91 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, GECMR_SPEED_100, GECMR); ndev 94 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, GECMR_SPEED_1000, GECMR); ndev 112 drivers/net/ethernet/renesas/ravb_main.c static void ravb_read_mac_address(struct net_device *ndev, const u8 *mac) ndev 115 drivers/net/ethernet/renesas/ravb_main.c ether_addr_copy(ndev->dev_addr, mac); ndev 117 drivers/net/ethernet/renesas/ravb_main.c u32 mahr = ravb_read(ndev, MAHR); ndev 118 drivers/net/ethernet/renesas/ravb_main.c u32 malr = ravb_read(ndev, MALR); ndev 120 drivers/net/ethernet/renesas/ravb_main.c ndev->dev_addr[0] = (mahr >> 24) & 0xFF; ndev 121 drivers/net/ethernet/renesas/ravb_main.c ndev->dev_addr[1] = (mahr >> 16) & 0xFF; ndev 122 drivers/net/ethernet/renesas/ravb_main.c ndev->dev_addr[2] = (mahr >> 8) & 0xFF; ndev 123 drivers/net/ethernet/renesas/ravb_main.c ndev->dev_addr[3] = (mahr >> 0) & 0xFF; ndev 124 drivers/net/ethernet/renesas/ravb_main.c ndev->dev_addr[4] = (malr >> 8) & 0xFF; ndev 125 drivers/net/ethernet/renesas/ravb_main.c ndev->dev_addr[5] = (malr >> 0) & 0xFF; ndev 134 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(priv->ndev, PIR, mask, set ? mask : 0); ndev 161 drivers/net/ethernet/renesas/ravb_main.c return (ravb_read(priv->ndev, PIR) & PIR_MDI) != 0; ndev 174 drivers/net/ethernet/renesas/ravb_main.c static int ravb_tx_free(struct net_device *ndev, int q, bool free_txed_only) ndev 176 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 198 drivers/net/ethernet/renesas/ravb_main.c dma_unmap_single(ndev->dev.parent, le32_to_cpu(desc->dptr), ndev 218 drivers/net/ethernet/renesas/ravb_main.c static void ravb_ring_free(struct net_device *ndev, int q) ndev 220 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 229 drivers/net/ethernet/renesas/ravb_main.c if (!dma_mapping_error(ndev->dev.parent, ndev 231 drivers/net/ethernet/renesas/ravb_main.c dma_unmap_single(ndev->dev.parent, ndev 238 drivers/net/ethernet/renesas/ravb_main.c dma_free_coherent(ndev->dev.parent, ring_size, priv->rx_ring[q], ndev 244 drivers/net/ethernet/renesas/ravb_main.c ravb_tx_free(ndev, q, false); ndev 248 drivers/net/ethernet/renesas/ravb_main.c dma_free_coherent(ndev->dev.parent, ring_size, priv->tx_ring[q], ndev 273 drivers/net/ethernet/renesas/ravb_main.c static void ravb_ring_format(struct net_device *ndev, int q) ndev 275 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 297 drivers/net/ethernet/renesas/ravb_main.c dma_addr = dma_map_single(ndev->dev.parent, priv->rx_skb[q][i]->data, ndev 303 drivers/net/ethernet/renesas/ravb_main.c if (dma_mapping_error(ndev->dev.parent, dma_addr)) ndev 337 drivers/net/ethernet/renesas/ravb_main.c static int ravb_ring_init(struct net_device *ndev, int q) ndev 339 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 354 drivers/net/ethernet/renesas/ravb_main.c skb = netdev_alloc_skb(ndev, RX_BUF_SZ + RAVB_ALIGN - 1); ndev 371 drivers/net/ethernet/renesas/ravb_main.c priv->rx_ring[q] = dma_alloc_coherent(ndev->dev.parent, ring_size, ndev 382 drivers/net/ethernet/renesas/ravb_main.c priv->tx_ring[q] = dma_alloc_coherent(ndev->dev.parent, ring_size, ndev 391 drivers/net/ethernet/renesas/ravb_main.c ravb_ring_free(ndev, q); ndev 397 drivers/net/ethernet/renesas/ravb_main.c static void ravb_emac_init(struct net_device *ndev) ndev 400 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, ndev->mtu + ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN, RFLR); ndev 403 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, ECMR_ZPF | ECMR_DM | ndev 404 drivers/net/ethernet/renesas/ravb_main.c (ndev->features & NETIF_F_RXCSUM ? ECMR_RCSC : 0) | ndev 407 drivers/net/ethernet/renesas/ravb_main.c ravb_set_rate(ndev); ndev 410 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, ndev 411 drivers/net/ethernet/renesas/ravb_main.c (ndev->dev_addr[0] << 24) | (ndev->dev_addr[1] << 16) | ndev 412 drivers/net/ethernet/renesas/ravb_main.c (ndev->dev_addr[2] << 8) | (ndev->dev_addr[3]), MAHR); ndev 413 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, ndev 414 drivers/net/ethernet/renesas/ravb_main.c (ndev->dev_addr[4] << 8) | (ndev->dev_addr[5]), MALR); ndev 417 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, ECSR_ICD | ECSR_MPD, ECSR); ndev 420 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, ECSIPR_ICDIP | ECSIPR_MPDIP | ECSIPR_LCHNGIP, ECSIPR); ndev 424 drivers/net/ethernet/renesas/ravb_main.c static int ravb_dmac_init(struct net_device *ndev) ndev 426 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 430 drivers/net/ethernet/renesas/ravb_main.c error = ravb_config(ndev); ndev 434 drivers/net/ethernet/renesas/ravb_main.c error = ravb_ring_init(ndev, RAVB_BE); ndev 437 drivers/net/ethernet/renesas/ravb_main.c error = ravb_ring_init(ndev, RAVB_NC); ndev 439 drivers/net/ethernet/renesas/ravb_main.c ravb_ring_free(ndev, RAVB_BE); ndev 444 drivers/net/ethernet/renesas/ravb_main.c ravb_ring_format(ndev, RAVB_BE); ndev 445 drivers/net/ethernet/renesas/ravb_main.c ravb_ring_format(ndev, RAVB_NC); ndev 448 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, ndev 452 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, TGC_TQP_AVBMODE1 | 0x00112200, TGC); ndev 455 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, TCCR_TFEN, TCCR); ndev 460 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, 0, DIL); ndev 462 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, CIE_CRIE | CIE_CTIE | CIE_CL0M, CIE); ndev 465 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, RIC0_FRE0 | RIC0_FRE1, RIC0); ndev 467 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, 0, RIC1); ndev 469 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, RIC2_QFE0 | RIC2_QFE1 | RIC2_RFFE, RIC2); ndev 471 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, TIC_FTE0 | TIC_FTE1 | TIC_TFUE, TIC); ndev 474 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, CCC, CCC_OPC, CCC_OPC_OPERATION); ndev 479 drivers/net/ethernet/renesas/ravb_main.c static void ravb_get_tx_tstamp(struct net_device *ndev) ndev 481 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 490 drivers/net/ethernet/renesas/ravb_main.c count = (ravb_read(ndev, TSR) & TSR_TFFL) >> 8; ndev 492 drivers/net/ethernet/renesas/ravb_main.c tfa2 = ravb_read(ndev, TFA2); ndev 494 drivers/net/ethernet/renesas/ravb_main.c ts.tv_nsec = (u64)ravb_read(ndev, TFA0); ndev 496 drivers/net/ethernet/renesas/ravb_main.c ravb_read(ndev, TFA1); ndev 513 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, TCCR, TCCR_TFR, TCCR_TFR); ndev 533 drivers/net/ethernet/renesas/ravb_main.c static bool ravb_rx(struct net_device *ndev, int *quota, int q) ndev 535 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 583 drivers/net/ethernet/renesas/ravb_main.c dma_unmap_single(ndev->dev.parent, le32_to_cpu(desc->dptr), ndev 601 drivers/net/ethernet/renesas/ravb_main.c skb->protocol = eth_type_trans(skb, ndev); ndev 602 drivers/net/ethernet/renesas/ravb_main.c if (ndev->features & NETIF_F_RXCSUM) ndev 620 drivers/net/ethernet/renesas/ravb_main.c skb = netdev_alloc_skb(ndev, ndev 626 drivers/net/ethernet/renesas/ravb_main.c dma_addr = dma_map_single(ndev->dev.parent, skb->data, ndev 633 drivers/net/ethernet/renesas/ravb_main.c if (dma_mapping_error(ndev->dev.parent, dma_addr)) ndev 648 drivers/net/ethernet/renesas/ravb_main.c static void ravb_rcv_snd_disable(struct net_device *ndev) ndev 651 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, ECMR, ECMR_RE | ECMR_TE, 0); ndev 654 drivers/net/ethernet/renesas/ravb_main.c static void ravb_rcv_snd_enable(struct net_device *ndev) ndev 657 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, ECMR, ECMR_RE | ECMR_TE, ECMR_RE | ECMR_TE); ndev 661 drivers/net/ethernet/renesas/ravb_main.c static int ravb_stop_dma(struct net_device *ndev) ndev 666 drivers/net/ethernet/renesas/ravb_main.c error = ravb_wait(ndev, TCCR, ndev 671 drivers/net/ethernet/renesas/ravb_main.c error = ravb_wait(ndev, CSR, CSR_TPO0 | CSR_TPO1 | CSR_TPO2 | CSR_TPO3, ndev 677 drivers/net/ethernet/renesas/ravb_main.c ravb_rcv_snd_disable(ndev); ndev 680 drivers/net/ethernet/renesas/ravb_main.c error = ravb_wait(ndev, CSR, CSR_RPO, 0); ndev 685 drivers/net/ethernet/renesas/ravb_main.c return ravb_config(ndev); ndev 689 drivers/net/ethernet/renesas/ravb_main.c static void ravb_emac_interrupt_unlocked(struct net_device *ndev) ndev 691 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 694 drivers/net/ethernet/renesas/ravb_main.c ecsr = ravb_read(ndev, ECSR); ndev 695 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, ecsr, ECSR); /* clear interrupt */ ndev 700 drivers/net/ethernet/renesas/ravb_main.c ndev->stats.tx_carrier_errors++; ndev 705 drivers/net/ethernet/renesas/ravb_main.c psr = ravb_read(ndev, PSR); ndev 710 drivers/net/ethernet/renesas/ravb_main.c ravb_rcv_snd_disable(ndev); ndev 713 drivers/net/ethernet/renesas/ravb_main.c ravb_rcv_snd_enable(ndev); ndev 720 drivers/net/ethernet/renesas/ravb_main.c struct net_device *ndev = dev_id; ndev 721 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 724 drivers/net/ethernet/renesas/ravb_main.c ravb_emac_interrupt_unlocked(ndev); ndev 730 drivers/net/ethernet/renesas/ravb_main.c static void ravb_error_interrupt(struct net_device *ndev) ndev 732 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 735 drivers/net/ethernet/renesas/ravb_main.c eis = ravb_read(ndev, EIS); ndev 736 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, ~(EIS_QFS | EIS_RESERVED), EIS); ndev 738 drivers/net/ethernet/renesas/ravb_main.c ris2 = ravb_read(ndev, RIS2); ndev 739 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, ~(RIS2_QFF0 | RIS2_RFFF | RIS2_RESERVED), ndev 756 drivers/net/ethernet/renesas/ravb_main.c static bool ravb_queue_interrupt(struct net_device *ndev, int q) ndev 758 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 759 drivers/net/ethernet/renesas/ravb_main.c u32 ris0 = ravb_read(ndev, RIS0); ndev 760 drivers/net/ethernet/renesas/ravb_main.c u32 ric0 = ravb_read(ndev, RIC0); ndev 761 drivers/net/ethernet/renesas/ravb_main.c u32 tis = ravb_read(ndev, TIS); ndev 762 drivers/net/ethernet/renesas/ravb_main.c u32 tic = ravb_read(ndev, TIC); ndev 768 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, ric0 & ~BIT(q), RIC0); ndev 769 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, tic & ~BIT(q), TIC); ndev 771 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, BIT(q), RID0); ndev 772 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, BIT(q), TID); ndev 776 drivers/net/ethernet/renesas/ravb_main.c netdev_warn(ndev, ndev 779 drivers/net/ethernet/renesas/ravb_main.c netdev_warn(ndev, ndev 788 drivers/net/ethernet/renesas/ravb_main.c static bool ravb_timestamp_interrupt(struct net_device *ndev) ndev 790 drivers/net/ethernet/renesas/ravb_main.c u32 tis = ravb_read(ndev, TIS); ndev 793 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, ~(TIS_TFUF | TIS_RESERVED), TIS); ndev 794 drivers/net/ethernet/renesas/ravb_main.c ravb_get_tx_tstamp(ndev); ndev 802 drivers/net/ethernet/renesas/ravb_main.c struct net_device *ndev = dev_id; ndev 803 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 809 drivers/net/ethernet/renesas/ravb_main.c iss = ravb_read(ndev, ISS); ndev 816 drivers/net/ethernet/renesas/ravb_main.c if (ravb_timestamp_interrupt(ndev)) ndev 821 drivers/net/ethernet/renesas/ravb_main.c if (ravb_queue_interrupt(ndev, q)) ndev 828 drivers/net/ethernet/renesas/ravb_main.c ravb_emac_interrupt_unlocked(ndev); ndev 834 drivers/net/ethernet/renesas/ravb_main.c ravb_error_interrupt(ndev); ndev 840 drivers/net/ethernet/renesas/ravb_main.c ravb_ptp_interrupt(ndev); ndev 851 drivers/net/ethernet/renesas/ravb_main.c struct net_device *ndev = dev_id; ndev 852 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 858 drivers/net/ethernet/renesas/ravb_main.c iss = ravb_read(ndev, ISS); ndev 861 drivers/net/ethernet/renesas/ravb_main.c if ((iss & ISS_TFUS) && ravb_timestamp_interrupt(ndev)) ndev 866 drivers/net/ethernet/renesas/ravb_main.c ravb_error_interrupt(ndev); ndev 872 drivers/net/ethernet/renesas/ravb_main.c ravb_ptp_interrupt(ndev); ndev 882 drivers/net/ethernet/renesas/ravb_main.c struct net_device *ndev = dev_id; ndev 883 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 889 drivers/net/ethernet/renesas/ravb_main.c if (ravb_queue_interrupt(ndev, q)) ndev 908 drivers/net/ethernet/renesas/ravb_main.c struct net_device *ndev = napi->dev; ndev 909 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 917 drivers/net/ethernet/renesas/ravb_main.c tis = ravb_read(ndev, TIS); ndev 918 drivers/net/ethernet/renesas/ravb_main.c ris0 = ravb_read(ndev, RIS0); ndev 925 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, ~(mask | RIS0_RESERVED), RIS0); ndev 926 drivers/net/ethernet/renesas/ravb_main.c if (ravb_rx(ndev, "a, q)) ndev 933 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, ~(mask | TIS_RESERVED), TIS); ndev 934 drivers/net/ethernet/renesas/ravb_main.c ravb_tx_free(ndev, q, true); ndev 935 drivers/net/ethernet/renesas/ravb_main.c netif_wake_subqueue(ndev, q); ndev 945 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, RIC0, mask, mask); ndev 946 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, TIC, mask, mask); ndev 948 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, mask, RIE0); ndev 949 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, mask, TIE); ndev 956 drivers/net/ethernet/renesas/ravb_main.c if (priv->rx_over_errors != ndev->stats.rx_over_errors) ndev 957 drivers/net/ethernet/renesas/ravb_main.c ndev->stats.rx_over_errors = priv->rx_over_errors; ndev 958 drivers/net/ethernet/renesas/ravb_main.c if (priv->rx_fifo_errors != ndev->stats.rx_fifo_errors) ndev 959 drivers/net/ethernet/renesas/ravb_main.c ndev->stats.rx_fifo_errors = priv->rx_fifo_errors; ndev 965 drivers/net/ethernet/renesas/ravb_main.c static void ravb_adjust_link(struct net_device *ndev) ndev 967 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 968 drivers/net/ethernet/renesas/ravb_main.c struct phy_device *phydev = ndev->phydev; ndev 976 drivers/net/ethernet/renesas/ravb_main.c ravb_rcv_snd_disable(ndev); ndev 982 drivers/net/ethernet/renesas/ravb_main.c ravb_set_rate(ndev); ndev 985 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, ECMR, ECMR_TXF, 0); ndev 997 drivers/net/ethernet/renesas/ravb_main.c ravb_rcv_snd_enable(ndev); ndev 1011 drivers/net/ethernet/renesas/ravb_main.c static int ravb_phy_init(struct net_device *ndev) ndev 1013 drivers/net/ethernet/renesas/ravb_main.c struct device_node *np = ndev->dev.parent->of_node; ndev 1014 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1035 drivers/net/ethernet/renesas/ravb_main.c phydev = of_phy_connect(ndev, pn, ravb_adjust_link, 0, ndev 1039 drivers/net/ethernet/renesas/ravb_main.c netdev_err(ndev, "failed to connect PHY\n"); ndev 1050 drivers/net/ethernet/renesas/ravb_main.c netdev_err(ndev, "failed to limit PHY to 100Mbit/s\n"); ndev 1054 drivers/net/ethernet/renesas/ravb_main.c netdev_info(ndev, "limited PHY to 100Mbit/s\n"); ndev 1081 drivers/net/ethernet/renesas/ravb_main.c static int ravb_phy_start(struct net_device *ndev) ndev 1085 drivers/net/ethernet/renesas/ravb_main.c error = ravb_phy_init(ndev); ndev 1089 drivers/net/ethernet/renesas/ravb_main.c phy_start(ndev->phydev); ndev 1094 drivers/net/ethernet/renesas/ravb_main.c static u32 ravb_get_msglevel(struct net_device *ndev) ndev 1096 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1101 drivers/net/ethernet/renesas/ravb_main.c static void ravb_set_msglevel(struct net_device *ndev, u32 value) ndev 1103 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1154 drivers/net/ethernet/renesas/ravb_main.c static void ravb_get_ethtool_stats(struct net_device *ndev, ndev 1157 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1183 drivers/net/ethernet/renesas/ravb_main.c static void ravb_get_strings(struct net_device *ndev, u32 stringset, u8 *data) ndev 1192 drivers/net/ethernet/renesas/ravb_main.c static void ravb_get_ringparam(struct net_device *ndev, ndev 1195 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1203 drivers/net/ethernet/renesas/ravb_main.c static int ravb_set_ringparam(struct net_device *ndev, ndev 1206 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1217 drivers/net/ethernet/renesas/ravb_main.c if (netif_running(ndev)) { ndev 1218 drivers/net/ethernet/renesas/ravb_main.c netif_device_detach(ndev); ndev 1221 drivers/net/ethernet/renesas/ravb_main.c ravb_ptp_stop(ndev); ndev 1223 drivers/net/ethernet/renesas/ravb_main.c error = ravb_stop_dma(ndev); ndev 1225 drivers/net/ethernet/renesas/ravb_main.c netdev_err(ndev, ndev 1229 drivers/net/ethernet/renesas/ravb_main.c synchronize_irq(ndev->irq); ndev 1232 drivers/net/ethernet/renesas/ravb_main.c ravb_ring_free(ndev, RAVB_BE); ndev 1233 drivers/net/ethernet/renesas/ravb_main.c ravb_ring_free(ndev, RAVB_NC); ndev 1240 drivers/net/ethernet/renesas/ravb_main.c if (netif_running(ndev)) { ndev 1241 drivers/net/ethernet/renesas/ravb_main.c error = ravb_dmac_init(ndev); ndev 1243 drivers/net/ethernet/renesas/ravb_main.c netdev_err(ndev, ndev 1249 drivers/net/ethernet/renesas/ravb_main.c ravb_emac_init(ndev); ndev 1253 drivers/net/ethernet/renesas/ravb_main.c ravb_ptp_init(ndev, priv->pdev); ndev 1255 drivers/net/ethernet/renesas/ravb_main.c netif_device_attach(ndev); ndev 1261 drivers/net/ethernet/renesas/ravb_main.c static int ravb_get_ts_info(struct net_device *ndev, ndev 1264 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1283 drivers/net/ethernet/renesas/ravb_main.c static void ravb_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) ndev 1285 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1291 drivers/net/ethernet/renesas/ravb_main.c static int ravb_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) ndev 1293 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1323 drivers/net/ethernet/renesas/ravb_main.c struct net_device *ndev, struct device *dev, ndev 1329 drivers/net/ethernet/renesas/ravb_main.c name = devm_kasprintf(dev, GFP_KERNEL, "%s:%s", ndev->name, ch); ndev 1332 drivers/net/ethernet/renesas/ravb_main.c error = request_irq(irq, handler, 0, name, ndev); ndev 1334 drivers/net/ethernet/renesas/ravb_main.c netdev_err(ndev, "cannot request IRQ %s\n", name); ndev 1340 drivers/net/ethernet/renesas/ravb_main.c static int ravb_open(struct net_device *ndev) ndev 1342 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1351 drivers/net/ethernet/renesas/ravb_main.c error = request_irq(ndev->irq, ravb_interrupt, IRQF_SHARED, ndev 1352 drivers/net/ethernet/renesas/ravb_main.c ndev->name, ndev); ndev 1354 drivers/net/ethernet/renesas/ravb_main.c netdev_err(ndev, "cannot request IRQ\n"); ndev 1358 drivers/net/ethernet/renesas/ravb_main.c error = ravb_hook_irq(ndev->irq, ravb_multi_interrupt, ndev, ndev 1362 drivers/net/ethernet/renesas/ravb_main.c error = ravb_hook_irq(priv->emac_irq, ravb_emac_interrupt, ndev, ndev 1367 drivers/net/ethernet/renesas/ravb_main.c ndev, dev, "ch0:rx_be"); ndev 1371 drivers/net/ethernet/renesas/ravb_main.c ndev, dev, "ch18:tx_be"); ndev 1375 drivers/net/ethernet/renesas/ravb_main.c ndev, dev, "ch1:rx_nc"); ndev 1379 drivers/net/ethernet/renesas/ravb_main.c ndev, dev, "ch19:tx_nc"); ndev 1385 drivers/net/ethernet/renesas/ravb_main.c error = ravb_dmac_init(ndev); ndev 1388 drivers/net/ethernet/renesas/ravb_main.c ravb_emac_init(ndev); ndev 1392 drivers/net/ethernet/renesas/ravb_main.c ravb_ptp_init(ndev, priv->pdev); ndev 1394 drivers/net/ethernet/renesas/ravb_main.c netif_tx_start_all_queues(ndev); ndev 1397 drivers/net/ethernet/renesas/ravb_main.c error = ravb_phy_start(ndev); ndev 1406 drivers/net/ethernet/renesas/ravb_main.c ravb_ptp_stop(ndev); ndev 1410 drivers/net/ethernet/renesas/ravb_main.c free_irq(priv->tx_irqs[RAVB_NC], ndev); ndev 1412 drivers/net/ethernet/renesas/ravb_main.c free_irq(priv->rx_irqs[RAVB_NC], ndev); ndev 1414 drivers/net/ethernet/renesas/ravb_main.c free_irq(priv->tx_irqs[RAVB_BE], ndev); ndev 1416 drivers/net/ethernet/renesas/ravb_main.c free_irq(priv->rx_irqs[RAVB_BE], ndev); ndev 1418 drivers/net/ethernet/renesas/ravb_main.c free_irq(priv->emac_irq, ndev); ndev 1420 drivers/net/ethernet/renesas/ravb_main.c free_irq(ndev->irq, ndev); ndev 1428 drivers/net/ethernet/renesas/ravb_main.c static void ravb_tx_timeout(struct net_device *ndev) ndev 1430 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1432 drivers/net/ethernet/renesas/ravb_main.c netif_err(priv, tx_err, ndev, ndev 1434 drivers/net/ethernet/renesas/ravb_main.c ravb_read(ndev, ISS)); ndev 1437 drivers/net/ethernet/renesas/ravb_main.c ndev->stats.tx_errors++; ndev 1446 drivers/net/ethernet/renesas/ravb_main.c struct net_device *ndev = priv->ndev; ndev 1448 drivers/net/ethernet/renesas/ravb_main.c netif_tx_stop_all_queues(ndev); ndev 1452 drivers/net/ethernet/renesas/ravb_main.c ravb_ptp_stop(ndev); ndev 1455 drivers/net/ethernet/renesas/ravb_main.c ravb_stop_dma(ndev); ndev 1457 drivers/net/ethernet/renesas/ravb_main.c ravb_ring_free(ndev, RAVB_BE); ndev 1458 drivers/net/ethernet/renesas/ravb_main.c ravb_ring_free(ndev, RAVB_NC); ndev 1461 drivers/net/ethernet/renesas/ravb_main.c ravb_dmac_init(ndev); ndev 1462 drivers/net/ethernet/renesas/ravb_main.c ravb_emac_init(ndev); ndev 1466 drivers/net/ethernet/renesas/ravb_main.c ravb_ptp_init(ndev, priv->pdev); ndev 1468 drivers/net/ethernet/renesas/ravb_main.c netif_tx_start_all_queues(ndev); ndev 1472 drivers/net/ethernet/renesas/ravb_main.c static netdev_tx_t ravb_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 1474 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1488 drivers/net/ethernet/renesas/ravb_main.c netif_err(priv, tx_queued, ndev, ndev 1490 drivers/net/ethernet/renesas/ravb_main.c netif_stop_subqueue(ndev, q); ndev 1522 drivers/net/ethernet/renesas/ravb_main.c dma_addr = dma_map_single(ndev->dev.parent, buffer, len, ndev 1524 drivers/net/ethernet/renesas/ravb_main.c if (dma_mapping_error(ndev->dev.parent, dma_addr)) ndev 1533 drivers/net/ethernet/renesas/ravb_main.c dma_addr = dma_map_single(ndev->dev.parent, buffer, len, ndev 1535 drivers/net/ethernet/renesas/ravb_main.c if (dma_mapping_error(ndev->dev.parent, dma_addr)) ndev 1542 drivers/net/ethernet/renesas/ravb_main.c dma_addr = dma_map_single(ndev->dev.parent, skb->data, skb->len, ndev 1544 drivers/net/ethernet/renesas/ravb_main.c if (dma_mapping_error(ndev->dev.parent, dma_addr)) ndev 1556 drivers/net/ethernet/renesas/ravb_main.c dma_unmap_single(ndev->dev.parent, dma_addr, ndev 1582 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, TCCR, TCCR_TSRQ0 << q, TCCR_TSRQ0 << q); ndev 1587 drivers/net/ethernet/renesas/ravb_main.c !ravb_tx_free(ndev, q, true)) ndev 1588 drivers/net/ethernet/renesas/ravb_main.c netif_stop_subqueue(ndev, q); ndev 1595 drivers/net/ethernet/renesas/ravb_main.c dma_unmap_single(ndev->dev.parent, le32_to_cpu(desc->dptr), ndev 1603 drivers/net/ethernet/renesas/ravb_main.c static u16 ravb_select_queue(struct net_device *ndev, struct sk_buff *skb, ndev 1612 drivers/net/ethernet/renesas/ravb_main.c static struct net_device_stats *ravb_get_stats(struct net_device *ndev) ndev 1614 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1617 drivers/net/ethernet/renesas/ravb_main.c nstats = &ndev->stats; ndev 1622 drivers/net/ethernet/renesas/ravb_main.c nstats->tx_dropped += ravb_read(ndev, TROCR); ndev 1623 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, 0, TROCR); /* (write clear) */ ndev 1646 drivers/net/ethernet/renesas/ravb_main.c static void ravb_set_rx_mode(struct net_device *ndev) ndev 1648 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1652 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, ECMR, ECMR_PRM, ndev 1653 drivers/net/ethernet/renesas/ravb_main.c ndev->flags & IFF_PROMISC ? ECMR_PRM : 0); ndev 1658 drivers/net/ethernet/renesas/ravb_main.c static int ravb_close(struct net_device *ndev) ndev 1660 drivers/net/ethernet/renesas/ravb_main.c struct device_node *np = ndev->dev.parent->of_node; ndev 1661 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1664 drivers/net/ethernet/renesas/ravb_main.c netif_tx_stop_all_queues(ndev); ndev 1667 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, 0, RIC0); ndev 1668 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, 0, RIC2); ndev 1669 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, 0, TIC); ndev 1673 drivers/net/ethernet/renesas/ravb_main.c ravb_ptp_stop(ndev); ndev 1676 drivers/net/ethernet/renesas/ravb_main.c if (ravb_stop_dma(ndev) < 0) ndev 1677 drivers/net/ethernet/renesas/ravb_main.c netdev_err(ndev, ndev 1688 drivers/net/ethernet/renesas/ravb_main.c if (ndev->phydev) { ndev 1689 drivers/net/ethernet/renesas/ravb_main.c phy_stop(ndev->phydev); ndev 1690 drivers/net/ethernet/renesas/ravb_main.c phy_disconnect(ndev->phydev); ndev 1696 drivers/net/ethernet/renesas/ravb_main.c free_irq(priv->tx_irqs[RAVB_NC], ndev); ndev 1697 drivers/net/ethernet/renesas/ravb_main.c free_irq(priv->rx_irqs[RAVB_NC], ndev); ndev 1698 drivers/net/ethernet/renesas/ravb_main.c free_irq(priv->tx_irqs[RAVB_BE], ndev); ndev 1699 drivers/net/ethernet/renesas/ravb_main.c free_irq(priv->rx_irqs[RAVB_BE], ndev); ndev 1700 drivers/net/ethernet/renesas/ravb_main.c free_irq(priv->emac_irq, ndev); ndev 1702 drivers/net/ethernet/renesas/ravb_main.c free_irq(ndev->irq, ndev); ndev 1708 drivers/net/ethernet/renesas/ravb_main.c ravb_ring_free(ndev, RAVB_BE); ndev 1709 drivers/net/ethernet/renesas/ravb_main.c ravb_ring_free(ndev, RAVB_NC); ndev 1714 drivers/net/ethernet/renesas/ravb_main.c static int ravb_hwtstamp_get(struct net_device *ndev, struct ifreq *req) ndev 1716 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1734 drivers/net/ethernet/renesas/ravb_main.c static int ravb_hwtstamp_set(struct net_device *ndev, struct ifreq *req) ndev 1736 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1779 drivers/net/ethernet/renesas/ravb_main.c static int ravb_do_ioctl(struct net_device *ndev, struct ifreq *req, int cmd) ndev 1781 drivers/net/ethernet/renesas/ravb_main.c struct phy_device *phydev = ndev->phydev; ndev 1783 drivers/net/ethernet/renesas/ravb_main.c if (!netif_running(ndev)) ndev 1791 drivers/net/ethernet/renesas/ravb_main.c return ravb_hwtstamp_get(ndev, req); ndev 1793 drivers/net/ethernet/renesas/ravb_main.c return ravb_hwtstamp_set(ndev, req); ndev 1799 drivers/net/ethernet/renesas/ravb_main.c static int ravb_change_mtu(struct net_device *ndev, int new_mtu) ndev 1801 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1803 drivers/net/ethernet/renesas/ravb_main.c ndev->mtu = new_mtu; ndev 1805 drivers/net/ethernet/renesas/ravb_main.c if (netif_running(ndev)) { ndev 1807 drivers/net/ethernet/renesas/ravb_main.c ravb_emac_init(ndev); ndev 1810 drivers/net/ethernet/renesas/ravb_main.c netdev_update_features(ndev); ndev 1815 drivers/net/ethernet/renesas/ravb_main.c static void ravb_set_rx_csum(struct net_device *ndev, bool enable) ndev 1817 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1823 drivers/net/ethernet/renesas/ravb_main.c ravb_rcv_snd_disable(ndev); ndev 1826 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, ECMR, ECMR_RCSC, enable ? ECMR_RCSC : 0); ndev 1829 drivers/net/ethernet/renesas/ravb_main.c ravb_rcv_snd_enable(ndev); ndev 1834 drivers/net/ethernet/renesas/ravb_main.c static int ravb_set_features(struct net_device *ndev, ndev 1837 drivers/net/ethernet/renesas/ravb_main.c netdev_features_t changed = ndev->features ^ features; ndev 1840 drivers/net/ethernet/renesas/ravb_main.c ravb_set_rx_csum(ndev, features & NETIF_F_RXCSUM); ndev 1842 drivers/net/ethernet/renesas/ravb_main.c ndev->features = features; ndev 1917 drivers/net/ethernet/renesas/ravb_main.c static int ravb_set_gti(struct net_device *ndev) ndev 1919 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1920 drivers/net/ethernet/renesas/ravb_main.c struct device *dev = ndev->dev.parent; ndev 1937 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, inc, GTI); ndev 1942 drivers/net/ethernet/renesas/ravb_main.c static void ravb_set_config_mode(struct net_device *ndev) ndev 1944 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1947 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, CCC, CCC_OPC, CCC_OPC_CONFIG); ndev 1949 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, CCC, CCC_CSEL, CCC_CSEL_HPB); ndev 1951 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, CCC, CCC_OPC, CCC_OPC_CONFIG | ndev 1964 drivers/net/ethernet/renesas/ravb_main.c static void ravb_set_delay_mode(struct net_device *ndev) ndev 1966 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 1981 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, APSR, APSR_DM, set); ndev 1989 drivers/net/ethernet/renesas/ravb_main.c struct net_device *ndev; ndev 2007 drivers/net/ethernet/renesas/ravb_main.c ndev = alloc_etherdev_mqs(sizeof(struct ravb_private), ndev 2009 drivers/net/ethernet/renesas/ravb_main.c if (!ndev) ndev 2012 drivers/net/ethernet/renesas/ravb_main.c ndev->features = NETIF_F_RXCSUM; ndev 2013 drivers/net/ethernet/renesas/ravb_main.c ndev->hw_features = NETIF_F_RXCSUM; ndev 2019 drivers/net/ethernet/renesas/ravb_main.c ndev->base_addr = res->start; ndev 2031 drivers/net/ethernet/renesas/ravb_main.c ndev->irq = irq; ndev 2033 drivers/net/ethernet/renesas/ravb_main.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 2035 drivers/net/ethernet/renesas/ravb_main.c priv = netdev_priv(ndev); ndev 2036 drivers/net/ethernet/renesas/ravb_main.c priv->ndev = ndev; ndev 2090 drivers/net/ethernet/renesas/ravb_main.c ndev->max_mtu = 2048 - (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN); ndev 2091 drivers/net/ethernet/renesas/ravb_main.c ndev->min_mtu = ETH_MIN_MTU; ndev 2097 drivers/net/ethernet/renesas/ravb_main.c ndev->netdev_ops = &ravb_netdev_ops; ndev 2098 drivers/net/ethernet/renesas/ravb_main.c ndev->ethtool_ops = &ravb_ethtool_ops; ndev 2101 drivers/net/ethernet/renesas/ravb_main.c ravb_set_config_mode(ndev); ndev 2104 drivers/net/ethernet/renesas/ravb_main.c error = ravb_set_gti(ndev); ndev 2109 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, GCCR, GCCR_LTI, GCCR_LTI); ndev 2112 drivers/net/ethernet/renesas/ravb_main.c ravb_set_delay_mode(ndev); ndev 2116 drivers/net/ethernet/renesas/ravb_main.c priv->desc_bat = dma_alloc_coherent(ndev->dev.parent, priv->desc_bat_size, ndev 2127 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, priv->desc_bat_dma, DBAT); ndev 2134 drivers/net/ethernet/renesas/ravb_main.c ravb_ptp_init(ndev, pdev); ndev 2140 drivers/net/ethernet/renesas/ravb_main.c ravb_read_mac_address(ndev, of_get_mac_address(np)); ndev 2141 drivers/net/ethernet/renesas/ravb_main.c if (!is_valid_ether_addr(ndev->dev_addr)) { ndev 2144 drivers/net/ethernet/renesas/ravb_main.c eth_hw_addr_random(ndev); ndev 2154 drivers/net/ethernet/renesas/ravb_main.c netif_napi_add(ndev, &priv->napi[RAVB_BE], ravb_poll, 64); ndev 2155 drivers/net/ethernet/renesas/ravb_main.c netif_napi_add(ndev, &priv->napi[RAVB_NC], ravb_poll, 64); ndev 2158 drivers/net/ethernet/renesas/ravb_main.c error = register_netdev(ndev); ndev 2165 drivers/net/ethernet/renesas/ravb_main.c netdev_info(ndev, "Base address at %#x, %pM, IRQ %d.\n", ndev 2166 drivers/net/ethernet/renesas/ravb_main.c (u32)ndev->base_addr, ndev->dev_addr, ndev->irq); ndev 2168 drivers/net/ethernet/renesas/ravb_main.c platform_set_drvdata(pdev, ndev); ndev 2177 drivers/net/ethernet/renesas/ravb_main.c dma_free_coherent(ndev->dev.parent, priv->desc_bat_size, priv->desc_bat, ndev 2182 drivers/net/ethernet/renesas/ravb_main.c ravb_ptp_stop(ndev); ndev 2184 drivers/net/ethernet/renesas/ravb_main.c free_netdev(ndev); ndev 2193 drivers/net/ethernet/renesas/ravb_main.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 2194 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 2198 drivers/net/ethernet/renesas/ravb_main.c ravb_ptp_stop(ndev); ndev 2200 drivers/net/ethernet/renesas/ravb_main.c dma_free_coherent(ndev->dev.parent, priv->desc_bat_size, priv->desc_bat, ndev 2203 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, CCC_OPC_RESET, CCC); ndev 2205 drivers/net/ethernet/renesas/ravb_main.c unregister_netdev(ndev); ndev 2210 drivers/net/ethernet/renesas/ravb_main.c free_netdev(ndev); ndev 2216 drivers/net/ethernet/renesas/ravb_main.c static int ravb_wol_setup(struct net_device *ndev) ndev 2218 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 2221 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, 0, RIC0); ndev 2222 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, 0, RIC2); ndev 2223 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, 0, TIC); ndev 2229 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, ECSIPR_MPDIP, ECSIPR); ndev 2232 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, ECMR, ECMR_MPDE, ECMR_MPDE); ndev 2237 drivers/net/ethernet/renesas/ravb_main.c static int ravb_wol_restore(struct net_device *ndev) ndev 2239 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 2246 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, ECMR, ECMR_MPDE, 0); ndev 2248 drivers/net/ethernet/renesas/ravb_main.c ret = ravb_close(ndev); ndev 2257 drivers/net/ethernet/renesas/ravb_main.c struct net_device *ndev = dev_get_drvdata(dev); ndev 2258 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 2261 drivers/net/ethernet/renesas/ravb_main.c if (!netif_running(ndev)) ndev 2264 drivers/net/ethernet/renesas/ravb_main.c netif_device_detach(ndev); ndev 2267 drivers/net/ethernet/renesas/ravb_main.c ret = ravb_wol_setup(ndev); ndev 2269 drivers/net/ethernet/renesas/ravb_main.c ret = ravb_close(ndev); ndev 2276 drivers/net/ethernet/renesas/ravb_main.c struct net_device *ndev = dev_get_drvdata(dev); ndev 2277 drivers/net/ethernet/renesas/ravb_main.c struct ravb_private *priv = netdev_priv(ndev); ndev 2282 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, CCC_OPC_RESET, CCC); ndev 2290 drivers/net/ethernet/renesas/ravb_main.c ravb_set_config_mode(ndev); ndev 2293 drivers/net/ethernet/renesas/ravb_main.c ret = ravb_set_gti(ndev); ndev 2298 drivers/net/ethernet/renesas/ravb_main.c ravb_modify(ndev, GCCR, GCCR_LTI, GCCR_LTI); ndev 2301 drivers/net/ethernet/renesas/ravb_main.c ravb_set_delay_mode(ndev); ndev 2304 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, priv->desc_bat_dma, DBAT); ndev 2306 drivers/net/ethernet/renesas/ravb_main.c if (netif_running(ndev)) { ndev 2308 drivers/net/ethernet/renesas/ravb_main.c ret = ravb_wol_restore(ndev); ndev 2312 drivers/net/ethernet/renesas/ravb_main.c ret = ravb_open(ndev); ndev 2315 drivers/net/ethernet/renesas/ravb_main.c netif_device_attach(ndev); ndev 13 drivers/net/ethernet/renesas/ravb_ptp.c struct net_device *ndev = priv->ndev; ndev 16 drivers/net/ethernet/renesas/ravb_ptp.c error = ravb_wait(ndev, GCCR, GCCR_TCR, GCCR_TCR_NOREQ); ndev 20 drivers/net/ethernet/renesas/ravb_ptp.c ravb_modify(ndev, GCCR, request, request); ndev 21 drivers/net/ethernet/renesas/ravb_ptp.c return ravb_wait(ndev, GCCR, GCCR_TCR, GCCR_TCR_NOREQ); ndev 27 drivers/net/ethernet/renesas/ravb_ptp.c struct net_device *ndev = priv->ndev; ndev 34 drivers/net/ethernet/renesas/ravb_ptp.c ts->tv_nsec = ravb_read(ndev, GCT0); ndev 35 drivers/net/ethernet/renesas/ravb_ptp.c ts->tv_sec = ravb_read(ndev, GCT1) | ndev 36 drivers/net/ethernet/renesas/ravb_ptp.c ((s64)ravb_read(ndev, GCT2) << 32); ndev 45 drivers/net/ethernet/renesas/ravb_ptp.c struct net_device *ndev = priv->ndev; ndev 53 drivers/net/ethernet/renesas/ravb_ptp.c gccr = ravb_read(ndev, GCCR); ndev 56 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, ts->tv_nsec, GTO0); ndev 57 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, ts->tv_sec, GTO1); ndev 58 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, (ts->tv_sec >> 32) & 0xffff, GTO2); ndev 59 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, gccr | GCCR_LTO, GCCR); ndev 67 drivers/net/ethernet/renesas/ravb_ptp.c struct net_device *ndev = priv->ndev; ndev 81 drivers/net/ethernet/renesas/ravb_ptp.c gccr = ravb_read(ndev, GCCR); ndev 84 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, ns, GPTC); ndev 85 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, gccr | GCCR_LPTC, GCCR); ndev 95 drivers/net/ethernet/renesas/ravb_ptp.c struct net_device *ndev = priv->ndev; ndev 114 drivers/net/ethernet/renesas/ravb_ptp.c gccr = ravb_read(ndev, GCCR); ndev 119 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, addend & GTI_TIV, GTI); ndev 120 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, gccr | GCCR_LTI, GCCR); ndev 182 drivers/net/ethernet/renesas/ravb_ptp.c struct net_device *ndev = priv->ndev; ndev 201 drivers/net/ethernet/renesas/ravb_ptp.c ravb_modify(ndev, GIC, GIC_PTCE, on ? GIC_PTCE : 0); ndev 203 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, GIE_PTCS, GIE); ndev 205 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, GID_PTCD, GID); ndev 216 drivers/net/ethernet/renesas/ravb_ptp.c struct net_device *ndev = priv->ndev; ndev 236 drivers/net/ethernet/renesas/ravb_ptp.c netdev_warn(ndev, ndev 242 drivers/net/ethernet/renesas/ravb_ptp.c netdev_warn(ndev, ndev 256 drivers/net/ethernet/renesas/ravb_ptp.c ravb_modify(ndev, GIC, GIC_PTME, GIC_PTME); ndev 258 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, GIE_PTMS0, GIE); ndev 268 drivers/net/ethernet/renesas/ravb_ptp.c ravb_modify(ndev, GIC, GIC_PTME, 0); ndev 270 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, GID_PTMD0, GID); ndev 304 drivers/net/ethernet/renesas/ravb_ptp.c void ravb_ptp_interrupt(struct net_device *ndev) ndev 306 drivers/net/ethernet/renesas/ravb_ptp.c struct ravb_private *priv = netdev_priv(ndev); ndev 307 drivers/net/ethernet/renesas/ravb_ptp.c u32 gis = ravb_read(ndev, GIS); ndev 309 drivers/net/ethernet/renesas/ravb_ptp.c gis &= ravb_read(ndev, GIC); ndev 315 drivers/net/ethernet/renesas/ravb_ptp.c event.timestamp = ravb_read(ndev, GCPT); ndev 327 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, ~(gis | GIS_RESERVED), GIS); ndev 330 drivers/net/ethernet/renesas/ravb_ptp.c void ravb_ptp_init(struct net_device *ndev, struct platform_device *pdev) ndev 332 drivers/net/ethernet/renesas/ravb_ptp.c struct ravb_private *priv = netdev_priv(ndev); ndev 337 drivers/net/ethernet/renesas/ravb_ptp.c priv->ptp.default_addend = ravb_read(ndev, GTI); ndev 341 drivers/net/ethernet/renesas/ravb_ptp.c ravb_wait(ndev, GCCR, GCCR_TCR, GCCR_TCR_NOREQ); ndev 342 drivers/net/ethernet/renesas/ravb_ptp.c ravb_modify(ndev, GCCR, GCCR_TCSS, GCCR_TCSS_ADJGPTP); ndev 348 drivers/net/ethernet/renesas/ravb_ptp.c void ravb_ptp_stop(struct net_device *ndev) ndev 350 drivers/net/ethernet/renesas/ravb_ptp.c struct ravb_private *priv = netdev_priv(ndev); ndev 352 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, 0, GIC); ndev 353 drivers/net/ethernet/renesas/ravb_ptp.c ravb_write(ndev, 0, GIS); ndev 399 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_rcv_snd_disable(struct net_device *ndev); ndev 400 drivers/net/ethernet/renesas/sh_eth.c static struct net_device_stats *sh_eth_get_stats(struct net_device *ndev); ndev 402 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_write(struct net_device *ndev, u32 data, int enum_index) ndev 404 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 413 drivers/net/ethernet/renesas/sh_eth.c static u32 sh_eth_read(struct net_device *ndev, int enum_index) ndev 415 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 424 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_modify(struct net_device *ndev, int enum_index, u32 clear, ndev 427 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, (sh_eth_read(ndev, enum_index) & ~clear) | set, ndev 468 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_select_mii(struct net_device *ndev) ndev 470 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 487 drivers/net/ethernet/renesas/sh_eth.c netdev_warn(ndev, ndev 493 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, value, RMII_MII); ndev 496 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_set_duplex(struct net_device *ndev) ndev 498 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 500 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, ECMR, ECMR_DM, mdp->duplex ? ECMR_DM : 0); ndev 503 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_chip_reset(struct net_device *ndev) ndev 505 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 512 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_soft_reset(struct net_device *ndev) ndev 514 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, EDMR, EDMR_SRST_ETHER, EDMR_SRST_ETHER); ndev 516 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, EDMR, EDMR_SRST_ETHER, 0); ndev 521 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_check_soft_reset(struct net_device *ndev) ndev 526 drivers/net/ethernet/renesas/sh_eth.c if (!(sh_eth_read(ndev, EDMR) & EDMR_SRST_GETHER)) ndev 531 drivers/net/ethernet/renesas/sh_eth.c netdev_err(ndev, "Device reset failed\n"); ndev 535 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_soft_reset_gether(struct net_device *ndev) ndev 537 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 540 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, EDSR_ENALL, EDSR); ndev 541 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, EDMR, EDMR_SRST_GETHER, EDMR_SRST_GETHER); ndev 543 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_check_soft_reset(ndev); ndev 548 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, TDLAR); ndev 549 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, TDFAR); ndev 550 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, TDFXR); ndev 551 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, TDFFR); ndev 552 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, RDLAR); ndev 553 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, RDFAR); ndev 554 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, RDFXR); ndev 555 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, RDFFR); ndev 559 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, CSMR); ndev 563 drivers/net/ethernet/renesas/sh_eth.c sh_eth_select_mii(ndev); ndev 568 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_set_rate_gether(struct net_device *ndev) ndev 570 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 574 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, GECMR_10, GECMR); ndev 577 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, GECMR_100, GECMR); ndev 580 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, GECMR_1000, GECMR); ndev 628 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_chip_reset_r8a7740(struct net_device *ndev) ndev 630 drivers/net/ethernet/renesas/sh_eth.c sh_eth_chip_reset(ndev); ndev 632 drivers/net/ethernet/renesas/sh_eth.c sh_eth_select_mii(ndev); ndev 681 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_set_rate_rcar(struct net_device *ndev) ndev 683 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 687 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, ECMR, ECMR_ELB, 0); ndev 690 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, ECMR, ECMR_ELB, ECMR_ELB); ndev 841 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_set_rate_sh7724(struct net_device *ndev) ndev 843 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 847 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, ECMR, ECMR_RTM, 0); ndev 850 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, ECMR, ECMR_RTM, ECMR_RTM); ndev 885 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_set_rate_sh7757(struct net_device *ndev) ndev 887 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 891 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, RTRATE); ndev 894 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 1, RTRATE); ndev 936 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_chip_reset_giga(struct net_device *ndev) ndev 947 drivers/net/ethernet/renesas/sh_eth.c sh_eth_chip_reset(ndev); ndev 956 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_set_rate_giga(struct net_device *ndev) ndev 958 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 962 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0x00000000, GECMR); ndev 965 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0x00000010, GECMR); ndev 968 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0x00000020, GECMR); ndev 1172 drivers/net/ethernet/renesas/sh_eth.c static void update_mac_address(struct net_device *ndev) ndev 1174 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, ndev 1175 drivers/net/ethernet/renesas/sh_eth.c (ndev->dev_addr[0] << 24) | (ndev->dev_addr[1] << 16) | ndev 1176 drivers/net/ethernet/renesas/sh_eth.c (ndev->dev_addr[2] << 8) | (ndev->dev_addr[3]), MAHR); ndev 1177 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, ndev 1178 drivers/net/ethernet/renesas/sh_eth.c (ndev->dev_addr[4] << 8) | (ndev->dev_addr[5]), MALR); ndev 1188 drivers/net/ethernet/renesas/sh_eth.c static void read_mac_address(struct net_device *ndev, unsigned char *mac) ndev 1191 drivers/net/ethernet/renesas/sh_eth.c memcpy(ndev->dev_addr, mac, ETH_ALEN); ndev 1193 drivers/net/ethernet/renesas/sh_eth.c u32 mahr = sh_eth_read(ndev, MAHR); ndev 1194 drivers/net/ethernet/renesas/sh_eth.c u32 malr = sh_eth_read(ndev, MALR); ndev 1196 drivers/net/ethernet/renesas/sh_eth.c ndev->dev_addr[0] = (mahr >> 24) & 0xFF; ndev 1197 drivers/net/ethernet/renesas/sh_eth.c ndev->dev_addr[1] = (mahr >> 16) & 0xFF; ndev 1198 drivers/net/ethernet/renesas/sh_eth.c ndev->dev_addr[2] = (mahr >> 8) & 0xFF; ndev 1199 drivers/net/ethernet/renesas/sh_eth.c ndev->dev_addr[3] = (mahr >> 0) & 0xFF; ndev 1200 drivers/net/ethernet/renesas/sh_eth.c ndev->dev_addr[4] = (malr >> 8) & 0xFF; ndev 1201 drivers/net/ethernet/renesas/sh_eth.c ndev->dev_addr[5] = (malr >> 0) & 0xFF; ndev 1266 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_tx_free(struct net_device *ndev, bool sent_only) ndev 1268 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 1282 drivers/net/ethernet/renesas/sh_eth.c netif_info(mdp, tx_done, ndev, ndev 1300 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.tx_packets++; ndev 1301 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.tx_bytes += le32_to_cpu(txdesc->len) >> 16; ndev 1308 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_ring_free(struct net_device *ndev) ndev 1310 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 1339 drivers/net/ethernet/renesas/sh_eth.c sh_eth_tx_free(ndev, false); ndev 1353 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_ring_format(struct net_device *ndev) ndev 1355 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 1377 drivers/net/ethernet/renesas/sh_eth.c skb = netdev_alloc_skb(ndev, skbuff_size); ndev 1400 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->rx_desc_dma, RDLAR); ndev 1402 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->rx_desc_dma, RDFAR); ndev 1422 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->tx_desc_dma, TDLAR); ndev 1424 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->tx_desc_dma, TDFAR); ndev 1432 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_ring_init(struct net_device *ndev) ndev 1434 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 1442 drivers/net/ethernet/renesas/sh_eth.c mdp->rx_buf_sz = (ndev->mtu <= 1492 ? PKT_BUF_SZ : ndev 1443 drivers/net/ethernet/renesas/sh_eth.c (((ndev->mtu + 26 + 7) & ~7) + 2 + 16)); ndev 1477 drivers/net/ethernet/renesas/sh_eth.c sh_eth_ring_free(ndev); ndev 1482 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_dev_init(struct net_device *ndev) ndev 1484 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 1488 drivers/net/ethernet/renesas/sh_eth.c ret = mdp->cd->soft_reset(ndev); ndev 1493 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0x1, RMIIMODE); ndev 1496 drivers/net/ethernet/renesas/sh_eth.c sh_eth_ring_format(ndev); ndev 1498 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, NET_IP_ALIGN << 16, RPADIR); ndev 1501 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, EESIPR); ndev 1505 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, EDMR_EL, EDMR); ndev 1508 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, EDMR); ndev 1511 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->fdr_value, FDR); ndev 1512 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, TFTR); ndev 1515 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, RMCR_RNC, RMCR); ndev 1517 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->trscer_err_mask, TRSCER); ndev 1521 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, EDMR, EDMR_NBST, EDMR_NBST); ndev 1525 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0x800, BCULR); ndev 1527 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->fcftr_value, FCFTR); ndev 1530 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, TRIMD); ndev 1533 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, ndev->mtu + ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN, ndev 1536 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, EESR, 0, 0); ndev 1538 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->eesipr_value, EESIPR); ndev 1541 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, ECMR_ZPF | (mdp->duplex ? ECMR_DM : 0) | ndev 1542 drivers/net/ethernet/renesas/sh_eth.c (ndev->features & NETIF_F_RXCSUM ? ECMR_RCSC : 0) | ndev 1546 drivers/net/ethernet/renesas/sh_eth.c mdp->cd->set_rate(ndev); ndev 1549 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->ecsr_value, ECSR); ndev 1552 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->ecsipr_value, ECSIPR); ndev 1555 drivers/net/ethernet/renesas/sh_eth.c update_mac_address(ndev); ndev 1559 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 1, APR); ndev 1561 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 1, MPR); ndev 1563 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, TPAUSER_UNLIMITED, TPAUSER); ndev 1566 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, EDRRR_R, EDRRR); ndev 1571 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_dev_exit(struct net_device *ndev) ndev 1573 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 1583 drivers/net/ethernet/renesas/sh_eth.c sh_eth_rcv_snd_disable(ndev); ndev 1586 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, EDRRR); ndev 1594 drivers/net/ethernet/renesas/sh_eth.c sh_eth_get_stats(ndev); ndev 1595 drivers/net/ethernet/renesas/sh_eth.c mdp->cd->soft_reset(ndev); ndev 1599 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0x1, RMIIMODE); ndev 1602 drivers/net/ethernet/renesas/sh_eth.c update_mac_address(ndev); ndev 1619 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_rx(struct net_device *ndev, u32 intr_status, int *quota) ndev 1621 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 1646 drivers/net/ethernet/renesas/sh_eth.c netif_info(mdp, rx_status, ndev, ndev 1651 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.rx_length_errors++; ndev 1665 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.rx_errors++; ndev 1667 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.rx_crc_errors++; ndev 1669 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.rx_frame_errors++; ndev 1671 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.rx_length_errors++; ndev 1673 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.rx_length_errors++; ndev 1675 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.rx_missed_errors++; ndev 1677 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.rx_over_errors++; ndev 1691 drivers/net/ethernet/renesas/sh_eth.c skb->protocol = eth_type_trans(skb, ndev); ndev 1692 drivers/net/ethernet/renesas/sh_eth.c if (ndev->features & NETIF_F_RXCSUM) ndev 1695 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.rx_packets++; ndev 1696 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.rx_bytes += pkt_len; ndev 1698 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.multicast++; ndev 1713 drivers/net/ethernet/renesas/sh_eth.c skb = netdev_alloc_skb(ndev, skbuff_size); ndev 1738 drivers/net/ethernet/renesas/sh_eth.c if (!(sh_eth_read(ndev, EDRRR) & EDRRR_R)) { ndev 1741 drivers/net/ethernet/renesas/sh_eth.c u32 count = (sh_eth_read(ndev, RDFAR) - ndev 1742 drivers/net/ethernet/renesas/sh_eth.c sh_eth_read(ndev, RDLAR)) >> 4; ndev 1747 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, EDRRR_R, EDRRR); ndev 1755 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_rcv_snd_disable(struct net_device *ndev) ndev 1758 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, ECMR, ECMR_RE | ECMR_TE, 0); ndev 1761 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_rcv_snd_enable(struct net_device *ndev) ndev 1764 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, ECMR, ECMR_RE | ECMR_TE, ECMR_RE | ECMR_TE); ndev 1768 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_emac_interrupt(struct net_device *ndev) ndev 1770 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 1774 drivers/net/ethernet/renesas/sh_eth.c felic_stat = sh_eth_read(ndev, ECSR) & sh_eth_read(ndev, ECSIPR); ndev 1775 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, felic_stat, ECSR); /* clear int */ ndev 1777 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.tx_carrier_errors++; ndev 1784 drivers/net/ethernet/renesas/sh_eth.c link_stat = sh_eth_read(ndev, PSR); ndev 1788 drivers/net/ethernet/renesas/sh_eth.c sh_eth_rcv_snd_disable(ndev); ndev 1791 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, EESIPR, EESIPR_ECIIP, 0); ndev 1793 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, ECSR, 0, 0); ndev 1794 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, EESIPR, EESIPR_ECIIP, EESIPR_ECIIP); ndev 1796 drivers/net/ethernet/renesas/sh_eth.c sh_eth_rcv_snd_enable(ndev); ndev 1802 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_error(struct net_device *ndev, u32 intr_status) ndev 1804 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 1810 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.tx_aborted_errors++; ndev 1811 drivers/net/ethernet/renesas/sh_eth.c netif_err(mdp, tx_err, ndev, "Transmit Abort\n"); ndev 1819 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.rx_frame_errors++; ndev 1825 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.tx_fifo_errors++; ndev 1826 drivers/net/ethernet/renesas/sh_eth.c netif_err(mdp, tx_err, ndev, "Transmit Descriptor Empty\n"); ndev 1831 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.tx_fifo_errors++; ndev 1832 drivers/net/ethernet/renesas/sh_eth.c netif_err(mdp, tx_err, ndev, "Transmit FIFO Under flow\n"); ndev 1837 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.rx_over_errors++; ndev 1842 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.rx_fifo_errors++; ndev 1847 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.tx_fifo_errors++; ndev 1848 drivers/net/ethernet/renesas/sh_eth.c netif_err(mdp, tx_err, ndev, "Address Error\n"); ndev 1856 drivers/net/ethernet/renesas/sh_eth.c u32 edtrr = sh_eth_read(ndev, EDTRR); ndev 1859 drivers/net/ethernet/renesas/sh_eth.c netdev_err(ndev, "TX error. status=%8.8x cur_tx=%8.8x dirty_tx=%8.8x state=%8.8x EDTRR=%8.8x.\n", ndev 1861 drivers/net/ethernet/renesas/sh_eth.c (u32)ndev->state, edtrr); ndev 1863 drivers/net/ethernet/renesas/sh_eth.c sh_eth_tx_free(ndev, true); ndev 1868 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->edtrr_trns, EDTRR); ndev 1871 drivers/net/ethernet/renesas/sh_eth.c netif_wake_queue(ndev); ndev 1877 drivers/net/ethernet/renesas/sh_eth.c struct net_device *ndev = netdev; ndev 1878 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 1886 drivers/net/ethernet/renesas/sh_eth.c intr_status = sh_eth_read(ndev, EESR); ndev 1893 drivers/net/ethernet/renesas/sh_eth.c intr_enable = sh_eth_read(ndev, EESIPR); ndev 1902 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, EESIPR); ndev 1909 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, intr_enable & ~EESR_RX_CHECK, ndev 1913 drivers/net/ethernet/renesas/sh_eth.c netdev_warn(ndev, ndev 1922 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, intr_status & cd->tx_check, EESR); ndev 1924 drivers/net/ethernet/renesas/sh_eth.c sh_eth_tx_free(ndev, true); ndev 1925 drivers/net/ethernet/renesas/sh_eth.c netif_wake_queue(ndev); ndev 1930 drivers/net/ethernet/renesas/sh_eth.c sh_eth_emac_interrupt(ndev); ndev 1934 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, intr_status & cd->eesr_err_check, EESR); ndev 1936 drivers/net/ethernet/renesas/sh_eth.c sh_eth_error(ndev, intr_status); ndev 1949 drivers/net/ethernet/renesas/sh_eth.c struct net_device *ndev = napi->dev; ndev 1954 drivers/net/ethernet/renesas/sh_eth.c intr_status = sh_eth_read(ndev, EESR); ndev 1958 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, intr_status & EESR_RX_CHECK, EESR); ndev 1960 drivers/net/ethernet/renesas/sh_eth.c if (sh_eth_rx(ndev, intr_status, "a)) ndev 1968 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->eesipr_value, EESIPR); ndev 1974 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_adjust_link(struct net_device *ndev) ndev 1976 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 1977 drivers/net/ethernet/renesas/sh_eth.c struct phy_device *phydev = ndev->phydev; ndev 1985 drivers/net/ethernet/renesas/sh_eth.c sh_eth_rcv_snd_disable(ndev); ndev 1992 drivers/net/ethernet/renesas/sh_eth.c mdp->cd->set_duplex(ndev); ndev 1999 drivers/net/ethernet/renesas/sh_eth.c mdp->cd->set_rate(ndev); ndev 2002 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, ECMR, ECMR_TXF, 0); ndev 2015 drivers/net/ethernet/renesas/sh_eth.c sh_eth_rcv_snd_enable(ndev); ndev 2024 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_phy_init(struct net_device *ndev) ndev 2026 drivers/net/ethernet/renesas/sh_eth.c struct device_node *np = ndev->dev.parent->of_node; ndev 2027 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2039 drivers/net/ethernet/renesas/sh_eth.c phydev = of_phy_connect(ndev, pn, ndev 2052 drivers/net/ethernet/renesas/sh_eth.c phydev = phy_connect(ndev, phy_id, sh_eth_adjust_link, ndev 2057 drivers/net/ethernet/renesas/sh_eth.c netdev_err(ndev, "failed to connect PHY\n"); ndev 2065 drivers/net/ethernet/renesas/sh_eth.c netdev_err(ndev, "failed to limit PHY to 100 Mbit/s\n"); ndev 2077 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_phy_start(struct net_device *ndev) ndev 2081 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_phy_init(ndev); ndev 2085 drivers/net/ethernet/renesas/sh_eth.c phy_start(ndev->phydev); ndev 2098 drivers/net/ethernet/renesas/sh_eth.c static size_t __sh_eth_get_regs(struct net_device *ndev, u32 *buf) ndev 2100 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2133 drivers/net/ethernet/renesas/sh_eth.c #define add_reg(reg) add_reg_from(reg, sh_eth_read(ndev, reg)) ndev 2256 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_get_regs_len(struct net_device *ndev) ndev 2258 drivers/net/ethernet/renesas/sh_eth.c return __sh_eth_get_regs(ndev, NULL); ndev 2261 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_get_regs(struct net_device *ndev, struct ethtool_regs *regs, ndev 2264 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2269 drivers/net/ethernet/renesas/sh_eth.c __sh_eth_get_regs(ndev, buf); ndev 2273 drivers/net/ethernet/renesas/sh_eth.c static u32 sh_eth_get_msglevel(struct net_device *ndev) ndev 2275 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2279 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_set_msglevel(struct net_device *ndev, u32 value) ndev 2281 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2301 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_get_ethtool_stats(struct net_device *ndev, ndev 2304 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2314 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_get_strings(struct net_device *ndev, u32 stringset, u8 *data) ndev 2324 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_get_ringparam(struct net_device *ndev, ndev 2327 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2335 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_set_ringparam(struct net_device *ndev, ndev 2338 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2349 drivers/net/ethernet/renesas/sh_eth.c if (netif_running(ndev)) { ndev 2350 drivers/net/ethernet/renesas/sh_eth.c netif_device_detach(ndev); ndev 2351 drivers/net/ethernet/renesas/sh_eth.c netif_tx_disable(ndev); ndev 2359 drivers/net/ethernet/renesas/sh_eth.c synchronize_irq(ndev->irq); ndev 2361 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0x0000, EESIPR); ndev 2363 drivers/net/ethernet/renesas/sh_eth.c sh_eth_dev_exit(ndev); ndev 2366 drivers/net/ethernet/renesas/sh_eth.c sh_eth_ring_free(ndev); ndev 2373 drivers/net/ethernet/renesas/sh_eth.c if (netif_running(ndev)) { ndev 2374 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_ring_init(ndev); ndev 2376 drivers/net/ethernet/renesas/sh_eth.c netdev_err(ndev, "%s: sh_eth_ring_init failed.\n", ndev 2380 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_dev_init(ndev); ndev 2382 drivers/net/ethernet/renesas/sh_eth.c netdev_err(ndev, "%s: sh_eth_dev_init failed.\n", ndev 2387 drivers/net/ethernet/renesas/sh_eth.c netif_device_attach(ndev); ndev 2393 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) ndev 2395 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2406 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) ndev 2408 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2439 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_open(struct net_device *ndev) ndev 2441 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2448 drivers/net/ethernet/renesas/sh_eth.c ret = request_irq(ndev->irq, sh_eth_interrupt, ndev 2449 drivers/net/ethernet/renesas/sh_eth.c mdp->cd->irq_flags, ndev->name, ndev); ndev 2451 drivers/net/ethernet/renesas/sh_eth.c netdev_err(ndev, "Can not assign IRQ number\n"); ndev 2456 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_ring_init(ndev); ndev 2461 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_dev_init(ndev); ndev 2466 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_phy_start(ndev); ndev 2470 drivers/net/ethernet/renesas/sh_eth.c netif_start_queue(ndev); ndev 2477 drivers/net/ethernet/renesas/sh_eth.c free_irq(ndev->irq, ndev); ndev 2485 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_tx_timeout(struct net_device *ndev) ndev 2487 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2491 drivers/net/ethernet/renesas/sh_eth.c netif_stop_queue(ndev); ndev 2493 drivers/net/ethernet/renesas/sh_eth.c netif_err(mdp, timer, ndev, ndev 2495 drivers/net/ethernet/renesas/sh_eth.c sh_eth_read(ndev, EESR)); ndev 2498 drivers/net/ethernet/renesas/sh_eth.c ndev->stats.tx_errors++; ndev 2514 drivers/net/ethernet/renesas/sh_eth.c sh_eth_dev_init(ndev); ndev 2516 drivers/net/ethernet/renesas/sh_eth.c netif_start_queue(ndev); ndev 2520 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 2522 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2530 drivers/net/ethernet/renesas/sh_eth.c if (!sh_eth_tx_free(ndev, true)) { ndev 2531 drivers/net/ethernet/renesas/sh_eth.c netif_warn(mdp, tx_queued, ndev, "TxFD exhausted.\n"); ndev 2532 drivers/net/ethernet/renesas/sh_eth.c netif_stop_queue(ndev); ndev 2565 drivers/net/ethernet/renesas/sh_eth.c if (!(sh_eth_read(ndev, EDTRR) & mdp->cd->edtrr_trns)) ndev 2566 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, mdp->cd->edtrr_trns, EDTRR); ndev 2577 drivers/net/ethernet/renesas/sh_eth.c sh_eth_update_stat(struct net_device *ndev, unsigned long *stat, int reg) ndev 2579 drivers/net/ethernet/renesas/sh_eth.c u32 delta = sh_eth_read(ndev, reg); ndev 2583 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0, reg); ndev 2587 drivers/net/ethernet/renesas/sh_eth.c static struct net_device_stats *sh_eth_get_stats(struct net_device *ndev) ndev 2589 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2592 drivers/net/ethernet/renesas/sh_eth.c return &ndev->stats; ndev 2595 drivers/net/ethernet/renesas/sh_eth.c return &ndev->stats; ndev 2597 drivers/net/ethernet/renesas/sh_eth.c sh_eth_update_stat(ndev, &ndev->stats.tx_dropped, TROCR); ndev 2598 drivers/net/ethernet/renesas/sh_eth.c sh_eth_update_stat(ndev, &ndev->stats.collisions, CDCR); ndev 2599 drivers/net/ethernet/renesas/sh_eth.c sh_eth_update_stat(ndev, &ndev->stats.tx_carrier_errors, LCCR); ndev 2602 drivers/net/ethernet/renesas/sh_eth.c sh_eth_update_stat(ndev, &ndev->stats.tx_carrier_errors, ndev 2604 drivers/net/ethernet/renesas/sh_eth.c sh_eth_update_stat(ndev, &ndev->stats.tx_carrier_errors, ndev 2607 drivers/net/ethernet/renesas/sh_eth.c sh_eth_update_stat(ndev, &ndev->stats.tx_carrier_errors, ndev 2611 drivers/net/ethernet/renesas/sh_eth.c return &ndev->stats; ndev 2615 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_close(struct net_device *ndev) ndev 2617 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2619 drivers/net/ethernet/renesas/sh_eth.c netif_stop_queue(ndev); ndev 2626 drivers/net/ethernet/renesas/sh_eth.c synchronize_irq(ndev->irq); ndev 2628 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0x0000, EESIPR); ndev 2630 drivers/net/ethernet/renesas/sh_eth.c sh_eth_dev_exit(ndev); ndev 2633 drivers/net/ethernet/renesas/sh_eth.c if (ndev->phydev) { ndev 2634 drivers/net/ethernet/renesas/sh_eth.c phy_stop(ndev->phydev); ndev 2635 drivers/net/ethernet/renesas/sh_eth.c phy_disconnect(ndev->phydev); ndev 2638 drivers/net/ethernet/renesas/sh_eth.c free_irq(ndev->irq, ndev); ndev 2641 drivers/net/ethernet/renesas/sh_eth.c sh_eth_ring_free(ndev); ndev 2651 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_do_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd) ndev 2653 drivers/net/ethernet/renesas/sh_eth.c struct phy_device *phydev = ndev->phydev; ndev 2655 drivers/net/ethernet/renesas/sh_eth.c if (!netif_running(ndev)) ndev 2664 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_change_mtu(struct net_device *ndev, int new_mtu) ndev 2666 drivers/net/ethernet/renesas/sh_eth.c if (netif_running(ndev)) ndev 2669 drivers/net/ethernet/renesas/sh_eth.c ndev->mtu = new_mtu; ndev 2670 drivers/net/ethernet/renesas/sh_eth.c netdev_update_features(ndev); ndev 2686 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_tsu_enable_cam_entry_post(struct net_device *ndev, ndev 2689 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2697 drivers/net/ethernet/renesas/sh_eth.c static bool sh_eth_tsu_disable_cam_entry_post(struct net_device *ndev, ndev 2700 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2714 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_tsu_busy(struct net_device *ndev) ndev 2717 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2723 drivers/net/ethernet/renesas/sh_eth.c netdev_err(ndev, "%s: timeout\n", __func__); ndev 2731 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_tsu_write_entry(struct net_device *ndev, u16 offset, ndev 2734 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2739 drivers/net/ethernet/renesas/sh_eth.c if (sh_eth_tsu_busy(ndev) < 0) ndev 2744 drivers/net/ethernet/renesas/sh_eth.c if (sh_eth_tsu_busy(ndev) < 0) ndev 2750 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_tsu_read_entry(struct net_device *ndev, u16 offset, u8 *addr) ndev 2752 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2766 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_tsu_find_entry(struct net_device *ndev, const u8 *addr) ndev 2768 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2774 drivers/net/ethernet/renesas/sh_eth.c sh_eth_tsu_read_entry(ndev, reg_offset, c_addr); ndev 2782 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_tsu_find_empty(struct net_device *ndev) ndev 2788 drivers/net/ethernet/renesas/sh_eth.c entry = sh_eth_tsu_find_entry(ndev, blank); ndev 2792 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_tsu_disable_cam_entry_table(struct net_device *ndev, ndev 2795 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2804 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_tsu_write_entry(ndev, reg_offset + entry * 8, blank); ndev 2810 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_tsu_add_entry(struct net_device *ndev, const u8 *addr) ndev 2812 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2819 drivers/net/ethernet/renesas/sh_eth.c i = sh_eth_tsu_find_entry(ndev, addr); ndev 2822 drivers/net/ethernet/renesas/sh_eth.c i = sh_eth_tsu_find_empty(ndev); ndev 2825 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_tsu_write_entry(ndev, reg_offset + i * 8, addr); ndev 2835 drivers/net/ethernet/renesas/sh_eth.c sh_eth_tsu_enable_cam_entry_post(ndev, i); ndev 2840 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_tsu_del_entry(struct net_device *ndev, const u8 *addr) ndev 2842 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2848 drivers/net/ethernet/renesas/sh_eth.c i = sh_eth_tsu_find_entry(ndev, addr); ndev 2851 drivers/net/ethernet/renesas/sh_eth.c if (sh_eth_tsu_disable_cam_entry_post(ndev, i)) ndev 2855 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_tsu_disable_cam_entry_table(ndev, i); ndev 2863 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_tsu_purge_all(struct net_device *ndev) ndev 2865 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2872 drivers/net/ethernet/renesas/sh_eth.c if (sh_eth_tsu_disable_cam_entry_post(ndev, i)) ndev 2876 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_tsu_disable_cam_entry_table(ndev, i); ndev 2884 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_tsu_purge_mcast(struct net_device *ndev) ndev 2886 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2895 drivers/net/ethernet/renesas/sh_eth.c sh_eth_tsu_read_entry(ndev, reg_offset, addr); ndev 2897 drivers/net/ethernet/renesas/sh_eth.c sh_eth_tsu_del_entry(ndev, addr); ndev 2902 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_set_rx_mode(struct net_device *ndev) ndev 2904 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2913 drivers/net/ethernet/renesas/sh_eth.c ecmr_bits = sh_eth_read(ndev, ECMR) & ~ECMR_PRM; ndev 2917 drivers/net/ethernet/renesas/sh_eth.c if (!(ndev->flags & IFF_MULTICAST)) { ndev 2918 drivers/net/ethernet/renesas/sh_eth.c sh_eth_tsu_purge_mcast(ndev); ndev 2921 drivers/net/ethernet/renesas/sh_eth.c if (ndev->flags & IFF_ALLMULTI) { ndev 2922 drivers/net/ethernet/renesas/sh_eth.c sh_eth_tsu_purge_mcast(ndev); ndev 2927 drivers/net/ethernet/renesas/sh_eth.c if (ndev->flags & IFF_PROMISC) { ndev 2928 drivers/net/ethernet/renesas/sh_eth.c sh_eth_tsu_purge_all(ndev); ndev 2932 drivers/net/ethernet/renesas/sh_eth.c netdev_for_each_mc_addr(ha, ndev) { ndev 2936 drivers/net/ethernet/renesas/sh_eth.c if (sh_eth_tsu_add_entry(ndev, ha->addr) < 0) { ndev 2938 drivers/net/ethernet/renesas/sh_eth.c sh_eth_tsu_purge_mcast(ndev); ndev 2947 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, ecmr_bits, ECMR); ndev 2952 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_set_rx_csum(struct net_device *ndev, bool enable) ndev 2954 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2960 drivers/net/ethernet/renesas/sh_eth.c sh_eth_rcv_snd_disable(ndev); ndev 2963 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, ECMR, ECMR_RCSC, enable ? ECMR_RCSC : 0); ndev 2966 drivers/net/ethernet/renesas/sh_eth.c sh_eth_rcv_snd_enable(ndev); ndev 2971 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_set_features(struct net_device *ndev, ndev 2974 drivers/net/ethernet/renesas/sh_eth.c netdev_features_t changed = ndev->features ^ features; ndev 2975 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 2978 drivers/net/ethernet/renesas/sh_eth.c sh_eth_set_rx_csum(ndev, features & NETIF_F_RXCSUM); ndev 2980 drivers/net/ethernet/renesas/sh_eth.c ndev->features = features; ndev 2993 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_vlan_rx_add_vid(struct net_device *ndev, ndev 2996 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 3023 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_vlan_rx_kill_vid(struct net_device *ndev, ndev 3026 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 3245 drivers/net/ethernet/renesas/sh_eth.c struct net_device *ndev; ndev 3251 drivers/net/ethernet/renesas/sh_eth.c ndev = alloc_etherdev(sizeof(struct sh_eth_private)); ndev 3252 drivers/net/ethernet/renesas/sh_eth.c if (!ndev) ndev 3261 drivers/net/ethernet/renesas/sh_eth.c ndev->irq = ret; ndev 3263 drivers/net/ethernet/renesas/sh_eth.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 3265 drivers/net/ethernet/renesas/sh_eth.c mdp = netdev_priv(ndev); ndev 3274 drivers/net/ethernet/renesas/sh_eth.c ndev->base_addr = res->start; ndev 3312 drivers/net/ethernet/renesas/sh_eth.c ndev->max_mtu = 2000 - (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN); ndev 3313 drivers/net/ethernet/renesas/sh_eth.c ndev->min_mtu = ETH_MIN_MTU; ndev 3316 drivers/net/ethernet/renesas/sh_eth.c ndev->features = NETIF_F_RXCSUM; ndev 3317 drivers/net/ethernet/renesas/sh_eth.c ndev->hw_features = NETIF_F_RXCSUM; ndev 3322 drivers/net/ethernet/renesas/sh_eth.c ndev->netdev_ops = &sh_eth_netdev_ops_tsu; ndev 3324 drivers/net/ethernet/renesas/sh_eth.c ndev->netdev_ops = &sh_eth_netdev_ops; ndev 3325 drivers/net/ethernet/renesas/sh_eth.c ndev->ethtool_ops = &sh_eth_ethtool_ops; ndev 3326 drivers/net/ethernet/renesas/sh_eth.c ndev->watchdog_timeo = TX_TIMEOUT; ndev 3332 drivers/net/ethernet/renesas/sh_eth.c read_mac_address(ndev, pd->mac_addr); ndev 3333 drivers/net/ethernet/renesas/sh_eth.c if (!is_valid_ether_addr(ndev->dev_addr)) { ndev 3336 drivers/net/ethernet/renesas/sh_eth.c eth_hw_addr_random(ndev); ndev 3369 drivers/net/ethernet/renesas/sh_eth.c ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; ndev 3374 drivers/net/ethernet/renesas/sh_eth.c mdp->cd->chip_reset(ndev); ndev 3382 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, 0x1, RMIIMODE); ndev 3392 drivers/net/ethernet/renesas/sh_eth.c netif_napi_add(ndev, &mdp->napi, sh_eth_poll, 64); ndev 3395 drivers/net/ethernet/renesas/sh_eth.c ret = register_netdev(ndev); ndev 3403 drivers/net/ethernet/renesas/sh_eth.c netdev_info(ndev, "Base address at 0x%x, %pM, IRQ %d.\n", ndev 3404 drivers/net/ethernet/renesas/sh_eth.c (u32)ndev->base_addr, ndev->dev_addr, ndev->irq); ndev 3407 drivers/net/ethernet/renesas/sh_eth.c platform_set_drvdata(pdev, ndev); ndev 3417 drivers/net/ethernet/renesas/sh_eth.c free_netdev(ndev); ndev 3426 drivers/net/ethernet/renesas/sh_eth.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 3427 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 3429 drivers/net/ethernet/renesas/sh_eth.c unregister_netdev(ndev); ndev 3433 drivers/net/ethernet/renesas/sh_eth.c free_netdev(ndev); ndev 3440 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_wol_setup(struct net_device *ndev) ndev 3442 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 3445 drivers/net/ethernet/renesas/sh_eth.c synchronize_irq(ndev->irq); ndev 3447 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, EESIPR_ECIIP, EESIPR); ndev 3450 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, ECMR, ECMR_MPDE, ECMR_MPDE); ndev 3452 drivers/net/ethernet/renesas/sh_eth.c return enable_irq_wake(ndev->irq); ndev 3455 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_wol_restore(struct net_device *ndev) ndev 3457 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 3463 drivers/net/ethernet/renesas/sh_eth.c sh_eth_modify(ndev, ECMR, ECMR_MPDE, 0); ndev 3470 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_close(ndev); ndev 3473 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_open(ndev); ndev 3477 drivers/net/ethernet/renesas/sh_eth.c return disable_irq_wake(ndev->irq); ndev 3482 drivers/net/ethernet/renesas/sh_eth.c struct net_device *ndev = dev_get_drvdata(dev); ndev 3483 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 3486 drivers/net/ethernet/renesas/sh_eth.c if (!netif_running(ndev)) ndev 3489 drivers/net/ethernet/renesas/sh_eth.c netif_device_detach(ndev); ndev 3492 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_wol_setup(ndev); ndev 3494 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_close(ndev); ndev 3501 drivers/net/ethernet/renesas/sh_eth.c struct net_device *ndev = dev_get_drvdata(dev); ndev 3502 drivers/net/ethernet/renesas/sh_eth.c struct sh_eth_private *mdp = netdev_priv(ndev); ndev 3505 drivers/net/ethernet/renesas/sh_eth.c if (!netif_running(ndev)) ndev 3509 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_wol_restore(ndev); ndev 3511 drivers/net/ethernet/renesas/sh_eth.c ret = sh_eth_open(ndev); ndev 3516 drivers/net/ethernet/renesas/sh_eth.c netif_device_attach(ndev); ndev 462 drivers/net/ethernet/renesas/sh_eth.h int (*soft_reset)(struct net_device *ndev); ndev 465 drivers/net/ethernet/renesas/sh_eth.h void (*chip_reset)(struct net_device *ndev); ndev 466 drivers/net/ethernet/renesas/sh_eth.h void (*set_duplex)(struct net_device *ndev); ndev 467 drivers/net/ethernet/renesas/sh_eth.h void (*set_rate)(struct net_device *ndev); ndev 514 drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h int sxgbe_drv_remove(struct net_device *ndev); ndev 516 drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h int sxgbe_mdio_unregister(struct net_device *ndev); ndev 517 drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h int sxgbe_mdio_register(struct net_device *ndev); ndev 522 drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h int sxgbe_suspend(struct net_device *ndev); ndev 523 drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h int sxgbe_resume(struct net_device *ndev); ndev 524 drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h int sxgbe_freeze(struct net_device *ndev); ndev 525 drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h int sxgbe_restore(struct net_device *ndev); ndev 124 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c struct net_device *ndev = priv->dev; ndev 130 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c if (phy_init_eee(ndev->phydev, 1)) ndev 152 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c struct net_device *ndev = priv->dev; ndev 159 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c priv->hw->mac->set_eee_pls(priv->ioaddr, ndev->phydev->link); ndev 264 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c static int sxgbe_init_phy(struct net_device *ndev) ndev 269 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c struct sxgbe_priv_data *priv = netdev_priv(ndev); ndev 286 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c netdev_dbg(ndev, "%s: trying to attach to %s\n", __func__, phy_id_fmt); ndev 288 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c phydev = phy_connect(ndev, phy_id_fmt, &sxgbe_adjust_link, phy_iface); ndev 291 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c netdev_err(ndev, "Could not attach to PHY\n"); ndev 305 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c netdev_dbg(ndev, "%s: attached to PHY (UID 0x%x) Link = %d\n", ndev 2058 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c struct net_device *ndev; ndev 2062 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c ndev = alloc_etherdev_mqs(sizeof(struct sxgbe_priv_data), ndev 2064 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c if (!ndev) ndev 2067 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c SET_NETDEV_DEV(ndev, device); ndev 2069 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c priv = netdev_priv(ndev); ndev 2071 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c priv->dev = ndev; ndev 2073 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c sxgbe_set_ethtool_ops(ndev); ndev 2098 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c ndev->netdev_ops = &sxgbe_netdev_ops; ndev 2100 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c ndev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | ndev 2103 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c ndev->features |= ndev->hw_features | NETIF_F_HIGHDMA; ndev 2104 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c ndev->watchdog_timeo = msecs_to_jiffies(TX_TIMEO); ndev 2107 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c ndev->priv_flags |= IFF_UNICAST_FLT; ndev 2110 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c ndev->min_mtu = MIN_MTU; ndev 2111 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c ndev->max_mtu = MAX_MTU; ndev 2138 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c netif_napi_add(ndev, &priv->napi, sxgbe_poll, 64); ndev 2144 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c netdev_warn(ndev, "%s: warning: cannot get CSR clock\n", ndev 2161 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c ret = sxgbe_mdio_register(ndev); ndev 2163 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c netdev_dbg(ndev, "%s: MDIO bus (id: %d) registration failed\n", ndev 2168 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c ret = register_netdev(ndev); ndev 2179 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c sxgbe_mdio_unregister(ndev); ndev 2187 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c free_netdev(ndev); ndev 2198 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c int sxgbe_drv_remove(struct net_device *ndev) ndev 2200 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c struct sxgbe_priv_data *priv = netdev_priv(ndev); ndev 2203 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c netdev_info(ndev, "%s: removing driver\n", __func__); ndev 2215 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c unregister_netdev(ndev); ndev 2217 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c sxgbe_mdio_unregister(ndev); ndev 2225 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c free_netdev(ndev); ndev 2231 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c int sxgbe_suspend(struct net_device *ndev) ndev 2236 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c int sxgbe_resume(struct net_device *ndev) ndev 2241 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c int sxgbe_freeze(struct net_device *ndev) ndev 2246 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c int sxgbe_restore(struct net_device *ndev) ndev 111 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c struct net_device *ndev = bus->priv; ndev 112 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c struct sxgbe_priv_data *priv = netdev_priv(ndev); ndev 133 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c struct net_device *ndev = bus->priv; ndev 134 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c struct sxgbe_priv_data *priv = netdev_priv(ndev); ndev 140 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c int sxgbe_mdio_register(struct net_device *ndev) ndev 143 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c struct sxgbe_priv_data *priv = netdev_priv(ndev); ndev 153 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c netdev_err(ndev, "%s: mii bus allocation failed\n", __func__); ndev 168 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c mdio_bus->priv = ndev; ndev 175 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c netdev_err(ndev, "mdiobus register failed\n"); ndev 214 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c netdev_info(ndev, "PHY ID %08x at %d IRQ %s (%s)%s\n", ndev 222 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c netdev_err(ndev, "PHY not found\n"); ndev 238 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c int sxgbe_mdio_unregister(struct net_device *ndev) ndev 240 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c struct sxgbe_priv_data *priv = netdev_priv(ndev); ndev 86 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 163 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c sxgbe_drv_remove(ndev); ndev 176 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 177 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c int ret = sxgbe_drv_remove(ndev); ndev 185 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c struct net_device *ndev = dev_get_drvdata(dev); ndev 187 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c return sxgbe_suspend(ndev); ndev 192 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c struct net_device *ndev = dev_get_drvdata(dev); ndev 194 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c return sxgbe_resume(ndev); ndev 199 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c struct net_device *ndev = dev_get_drvdata(dev); ndev 201 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c return sxgbe_freeze(ndev); ndev 206 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c struct net_device *ndev = dev_get_drvdata(dev); ndev 208 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c return sxgbe_restore(ndev); ndev 2041 drivers/net/ethernet/smsc/smc911x.c struct net_device *ndev; ndev 2063 drivers/net/ethernet/smsc/smc911x.c ndev = alloc_etherdev(sizeof(struct smc911x_local)); ndev 2064 drivers/net/ethernet/smsc/smc911x.c if (!ndev) { ndev 2068 drivers/net/ethernet/smsc/smc911x.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 2070 drivers/net/ethernet/smsc/smc911x.c ndev->dma = (unsigned char)-1; ndev 2071 drivers/net/ethernet/smsc/smc911x.c ndev->irq = platform_get_irq(pdev, 0); ndev 2072 drivers/net/ethernet/smsc/smc911x.c lp = netdev_priv(ndev); ndev 2073 drivers/net/ethernet/smsc/smc911x.c lp->netdev = ndev; ndev 2091 drivers/net/ethernet/smsc/smc911x.c platform_set_drvdata(pdev, ndev); ndev 2093 drivers/net/ethernet/smsc/smc911x.c ndev->base_addr = res->start; ndev 2094 drivers/net/ethernet/smsc/smc911x.c ret = smc911x_probe(ndev); ndev 2098 drivers/net/ethernet/smsc/smc911x.c free_netdev(ndev); ndev 2116 drivers/net/ethernet/smsc/smc911x.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 2117 drivers/net/ethernet/smsc/smc911x.c struct smc911x_local *lp = netdev_priv(ndev); ndev 2120 drivers/net/ethernet/smsc/smc911x.c DBG(SMC_DEBUG_FUNC, ndev, "--> %s\n", __func__); ndev 2122 drivers/net/ethernet/smsc/smc911x.c unregister_netdev(ndev); ndev 2124 drivers/net/ethernet/smsc/smc911x.c free_irq(ndev->irq, ndev); ndev 2138 drivers/net/ethernet/smsc/smc911x.c free_netdev(ndev); ndev 2144 drivers/net/ethernet/smsc/smc911x.c struct net_device *ndev = platform_get_drvdata(dev); ndev 2145 drivers/net/ethernet/smsc/smc911x.c struct smc911x_local *lp = netdev_priv(ndev); ndev 2147 drivers/net/ethernet/smsc/smc911x.c DBG(SMC_DEBUG_FUNC, ndev, "--> %s\n", __func__); ndev 2148 drivers/net/ethernet/smsc/smc911x.c if (ndev) { ndev 2149 drivers/net/ethernet/smsc/smc911x.c if (netif_running(ndev)) { ndev 2150 drivers/net/ethernet/smsc/smc911x.c netif_device_detach(ndev); ndev 2151 drivers/net/ethernet/smsc/smc911x.c smc911x_shutdown(ndev); ndev 2163 drivers/net/ethernet/smsc/smc911x.c struct net_device *ndev = platform_get_drvdata(dev); ndev 2165 drivers/net/ethernet/smsc/smc911x.c DBG(SMC_DEBUG_FUNC, ndev, "--> %s\n", __func__); ndev 2166 drivers/net/ethernet/smsc/smc911x.c if (ndev) { ndev 2167 drivers/net/ethernet/smsc/smc911x.c struct smc911x_local *lp = netdev_priv(ndev); ndev 2169 drivers/net/ethernet/smsc/smc911x.c if (netif_running(ndev)) { ndev 2170 drivers/net/ethernet/smsc/smc911x.c smc911x_reset(ndev); ndev 2173 drivers/net/ethernet/smsc/smc911x.c smc911x_enable(ndev); ndev 2174 drivers/net/ethernet/smsc/smc911x.c netif_device_attach(ndev); ndev 2058 drivers/net/ethernet/smsc/smc91x.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 2059 drivers/net/ethernet/smsc/smc91x.c struct smc_local *lp = netdev_priv(ndev); ndev 2120 drivers/net/ethernet/smsc/smc91x.c struct net_device *ndev) ndev 2123 drivers/net/ethernet/smsc/smc91x.c struct smc_local *lp __maybe_unused = netdev_priv(ndev); ndev 2135 drivers/net/ethernet/smsc/smc91x.c struct net_device *ndev) ndev 2138 drivers/net/ethernet/smsc/smc91x.c struct smc_local *lp __maybe_unused = netdev_priv(ndev); ndev 2144 drivers/net/ethernet/smsc/smc91x.c static inline void smc_request_datacs(struct platform_device *pdev, struct net_device *ndev) ndev 2148 drivers/net/ethernet/smsc/smc91x.c struct smc_local *lp = netdev_priv(ndev); ndev 2154 drivers/net/ethernet/smsc/smc91x.c netdev_info(ndev, "%s: failed to request datacs memory region.\n", ndev 2163 drivers/net/ethernet/smsc/smc91x.c static void smc_release_datacs(struct platform_device *pdev, struct net_device *ndev) ndev 2166 drivers/net/ethernet/smsc/smc91x.c struct smc_local *lp = netdev_priv(ndev); ndev 2235 drivers/net/ethernet/smsc/smc91x.c struct net_device *ndev; ndev 2242 drivers/net/ethernet/smsc/smc91x.c ndev = alloc_etherdev(sizeof(struct smc_local)); ndev 2243 drivers/net/ethernet/smsc/smc91x.c if (!ndev) { ndev 2247 drivers/net/ethernet/smsc/smc91x.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 2253 drivers/net/ethernet/smsc/smc91x.c lp = netdev_priv(ndev); ndev 2327 drivers/net/ethernet/smsc/smc91x.c ndev->dma = (unsigned char)-1; ndev 2343 drivers/net/ethernet/smsc/smc91x.c ndev->irq = platform_get_irq(pdev, 0); ndev 2344 drivers/net/ethernet/smsc/smc91x.c if (ndev->irq < 0) { ndev 2345 drivers/net/ethernet/smsc/smc91x.c ret = ndev->irq; ndev 2353 drivers/net/ethernet/smsc/smc91x.c irq_resflags = irqd_get_trigger_type(irq_get_irq_data(ndev->irq)); ndev 2357 drivers/net/ethernet/smsc/smc91x.c ret = smc_request_attrib(pdev, ndev); ndev 2364 drivers/net/ethernet/smsc/smc91x.c platform_set_drvdata(pdev, ndev); ndev 2377 drivers/net/ethernet/smsc/smc91x.c struct smc_local *lp = netdev_priv(ndev); ndev 2384 drivers/net/ethernet/smsc/smc91x.c ret = smc_probe(ndev, addr, irq_flags); ndev 2388 drivers/net/ethernet/smsc/smc91x.c smc_request_datacs(pdev, ndev); ndev 2395 drivers/net/ethernet/smsc/smc91x.c smc_release_attrib(pdev, ndev); ndev 2399 drivers/net/ethernet/smsc/smc91x.c free_netdev(ndev); ndev 2408 drivers/net/ethernet/smsc/smc91x.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 2409 drivers/net/ethernet/smsc/smc91x.c struct smc_local *lp = netdev_priv(ndev); ndev 2412 drivers/net/ethernet/smsc/smc91x.c unregister_netdev(ndev); ndev 2414 drivers/net/ethernet/smsc/smc91x.c free_irq(ndev->irq, ndev); ndev 2422 drivers/net/ethernet/smsc/smc91x.c smc_release_datacs(pdev,ndev); ndev 2423 drivers/net/ethernet/smsc/smc91x.c smc_release_attrib(pdev,ndev); ndev 2430 drivers/net/ethernet/smsc/smc91x.c free_netdev(ndev); ndev 2437 drivers/net/ethernet/smsc/smc91x.c struct net_device *ndev = dev_get_drvdata(dev); ndev 2439 drivers/net/ethernet/smsc/smc91x.c if (ndev) { ndev 2440 drivers/net/ethernet/smsc/smc91x.c if (netif_running(ndev)) { ndev 2441 drivers/net/ethernet/smsc/smc91x.c netif_device_detach(ndev); ndev 2442 drivers/net/ethernet/smsc/smc91x.c smc_shutdown(ndev); ndev 2443 drivers/net/ethernet/smsc/smc91x.c smc_phy_powerdown(ndev); ndev 2452 drivers/net/ethernet/smsc/smc91x.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 2454 drivers/net/ethernet/smsc/smc91x.c if (ndev) { ndev 2455 drivers/net/ethernet/smsc/smc91x.c struct smc_local *lp = netdev_priv(ndev); ndev 2457 drivers/net/ethernet/smsc/smc91x.c if (netif_running(ndev)) { ndev 2458 drivers/net/ethernet/smsc/smc91x.c smc_reset(ndev); ndev 2459 drivers/net/ethernet/smsc/smc91x.c smc_enable(ndev); ndev 2462 drivers/net/ethernet/smsc/smc91x.c netif_device_attach(ndev); ndev 372 drivers/net/ethernet/smsc/smsc911x.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 373 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(ndev); ndev 379 drivers/net/ethernet/smsc/smsc911x.c netdev_err(ndev, "failed to enable regulators %d\n", ndev 385 drivers/net/ethernet/smsc/smsc911x.c netdev_err(ndev, "failed to enable clock %d\n", ret); ndev 396 drivers/net/ethernet/smsc/smsc911x.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 397 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(ndev); ndev 418 drivers/net/ethernet/smsc/smsc911x.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 419 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(ndev); ndev 435 drivers/net/ethernet/smsc/smsc911x.c netdev_err(ndev, "couldn't get regulators %d\n", ndev 459 drivers/net/ethernet/smsc/smsc911x.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 460 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(ndev); ndev 908 drivers/net/ethernet/smsc/smsc911x.c struct net_device *ndev = pdata->dev; ndev 909 drivers/net/ethernet/smsc/smsc911x.c struct phy_device *phy_dev = ndev->phydev; ndev 1336 drivers/net/ethernet/smsc/smsc911x.c struct net_device *ndev = pdata->dev; ndev 1337 drivers/net/ethernet/smsc/smsc911x.c struct phy_device *phy_dev = ndev->phydev; ndev 1374 drivers/net/ethernet/smsc/smsc911x.c struct net_device *ndev = pdata->dev; ndev 1375 drivers/net/ethernet/smsc/smsc911x.c struct phy_device *phy_dev = ndev->phydev; ndev 1407 drivers/net/ethernet/smsc/smsc911x.c struct net_device *ndev = pdata->dev; ndev 1408 drivers/net/ethernet/smsc/smsc911x.c struct phy_device *phy_dev = ndev->phydev; ndev 2584 drivers/net/ethernet/smsc/smsc911x.c struct net_device *ndev = dev_get_drvdata(dev); ndev 2585 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(ndev); ndev 2587 drivers/net/ethernet/smsc/smsc911x.c if (netif_running(ndev)) { ndev 2588 drivers/net/ethernet/smsc/smsc911x.c netif_stop_queue(ndev); ndev 2589 drivers/net/ethernet/smsc/smsc911x.c netif_device_detach(ndev); ndev 2606 drivers/net/ethernet/smsc/smsc911x.c struct net_device *ndev = dev_get_drvdata(dev); ndev 2607 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = netdev_priv(ndev); ndev 2628 drivers/net/ethernet/smsc/smsc911x.c if (netif_running(ndev)) { ndev 2629 drivers/net/ethernet/smsc/smsc911x.c netif_device_attach(ndev); ndev 2630 drivers/net/ethernet/smsc/smsc911x.c netif_start_queue(ndev); ndev 297 drivers/net/ethernet/socionext/netsec.c struct net_device *ndev; ndev 377 drivers/net/ethernet/socionext/netsec.c netdev_WARN(priv->ndev, "%s: timeout\n", __func__); ndev 434 drivers/net/ethernet/socionext/netsec.c netdev_WARN(priv->ndev, "%s: timeout\n", __func__); ndev 441 drivers/net/ethernet/socionext/netsec.c struct phy_device *phydev = priv->ndev->phydev; ndev 692 drivers/net/ethernet/socionext/netsec.c priv->ndev->stats.tx_packets += cnt; ndev 693 drivers/net/ethernet/socionext/netsec.c priv->ndev->stats.tx_bytes += bytes; ndev 695 drivers/net/ethernet/socionext/netsec.c netdev_completed_queue(priv->ndev, cnt, bytes); ndev 702 drivers/net/ethernet/socionext/netsec.c struct net_device *ndev = priv->ndev; ndev 707 drivers/net/ethernet/socionext/netsec.c if (cleaned && netif_queue_stopped(ndev)) { ndev 712 drivers/net/ethernet/socionext/netsec.c netif_wake_queue(ndev); ndev 901 drivers/net/ethernet/socionext/netsec.c err = xdp_do_redirect(priv->ndev, xdp, prog); ndev 913 drivers/net/ethernet/socionext/netsec.c trace_xdp_exception(priv->ndev, prog, act); ndev 927 drivers/net/ethernet/socionext/netsec.c struct net_device *ndev = priv->ndev; ndev 969 drivers/net/ethernet/socionext/netsec.c netif_err(priv, drv, priv->ndev, ndev 972 drivers/net/ethernet/socionext/netsec.c ndev->stats.rx_dropped++; ndev 1017 drivers/net/ethernet/socionext/netsec.c netif_err(priv, drv, priv->ndev, ndev 1025 drivers/net/ethernet/socionext/netsec.c skb->protocol = eth_type_trans(skb, priv->ndev); ndev 1034 drivers/net/ethernet/socionext/netsec.c ndev->stats.rx_packets++; ndev 1035 drivers/net/ethernet/socionext/netsec.c ndev->stats.rx_bytes += xdp.data_end - xdp.data; ndev 1094 drivers/net/ethernet/socionext/netsec.c netif_stop_queue(priv->ndev); ndev 1105 drivers/net/ethernet/socionext/netsec.c netif_wake_queue(priv->ndev); ndev 1112 drivers/net/ethernet/socionext/netsec.c struct net_device *ndev) ndev 1114 drivers/net/ethernet/socionext/netsec.c struct netsec_priv *priv = netdev_priv(ndev); ndev 1126 drivers/net/ethernet/socionext/netsec.c dev_name(priv->dev), ndev->name); ndev 1158 drivers/net/ethernet/socionext/netsec.c netif_err(priv, drv, priv->ndev, ndev 1160 drivers/net/ethernet/socionext/netsec.c ndev->stats.tx_dropped++; ndev 1169 drivers/net/ethernet/socionext/netsec.c netdev_sent_queue(priv->ndev, skb->len); ndev 1216 drivers/net/ethernet/socionext/netsec.c netdev_reset_queue(priv->ndev); ndev 1292 drivers/net/ethernet/socionext/netsec.c err = xdp_rxq_info_reg(&dring->xdp_rxq, priv->ndev, 0); ndev 1426 drivers/net/ethernet/socionext/netsec.c netif_err(priv, probe, priv->ndev, ndev 1441 drivers/net/ethernet/socionext/netsec.c netif_err(priv, probe, priv->ndev, ndev 1449 drivers/net/ethernet/socionext/netsec.c if (priv->ndev->mtu > ETH_DATA_LEN) ndev 1471 drivers/net/ethernet/socionext/netsec.c struct phy_device *phydev = priv->ndev->phydev; ndev 1528 drivers/net/ethernet/socionext/netsec.c netsec_et_set_coalesce(priv->ndev, &priv->et_coalesce); ndev 1554 drivers/net/ethernet/socionext/netsec.c static void netsec_phy_adjust_link(struct net_device *ndev) ndev 1556 drivers/net/ethernet/socionext/netsec.c struct netsec_priv *priv = netdev_priv(ndev); ndev 1558 drivers/net/ethernet/socionext/netsec.c if (ndev->phydev->link) ndev 1563 drivers/net/ethernet/socionext/netsec.c phy_print_status(ndev->phydev); ndev 1591 drivers/net/ethernet/socionext/netsec.c static int netsec_netdev_open(struct net_device *ndev) ndev 1593 drivers/net/ethernet/socionext/netsec.c struct netsec_priv *priv = netdev_priv(ndev); ndev 1601 drivers/net/ethernet/socionext/netsec.c netif_err(priv, probe, priv->ndev, ndev 1606 drivers/net/ethernet/socionext/netsec.c ret = request_irq(priv->ndev->irq, netsec_irq_handler, ndev 1609 drivers/net/ethernet/socionext/netsec.c netif_err(priv, drv, priv->ndev, "request_irq failed\n"); ndev 1614 drivers/net/ethernet/socionext/netsec.c if (!of_phy_connect(priv->ndev, priv->phy_np, ndev 1617 drivers/net/ethernet/socionext/netsec.c netif_err(priv, link, priv->ndev, "missing PHY\n"); ndev 1622 drivers/net/ethernet/socionext/netsec.c ret = phy_connect_direct(priv->ndev, priv->phydev, ndev 1626 drivers/net/ethernet/socionext/netsec.c netif_err(priv, link, priv->ndev, ndev 1632 drivers/net/ethernet/socionext/netsec.c phy_start(ndev->phydev); ndev 1636 drivers/net/ethernet/socionext/netsec.c netif_start_queue(ndev); ndev 1643 drivers/net/ethernet/socionext/netsec.c free_irq(priv->ndev->irq, priv); ndev 1651 drivers/net/ethernet/socionext/netsec.c static int netsec_netdev_stop(struct net_device *ndev) ndev 1654 drivers/net/ethernet/socionext/netsec.c struct netsec_priv *priv = netdev_priv(ndev); ndev 1656 drivers/net/ethernet/socionext/netsec.c netif_stop_queue(priv->ndev); ndev 1664 drivers/net/ethernet/socionext/netsec.c free_irq(priv->ndev->irq, priv); ndev 1669 drivers/net/ethernet/socionext/netsec.c phy_stop(ndev->phydev); ndev 1670 drivers/net/ethernet/socionext/netsec.c phy_disconnect(ndev->phydev); ndev 1679 drivers/net/ethernet/socionext/netsec.c static int netsec_netdev_init(struct net_device *ndev) ndev 1681 drivers/net/ethernet/socionext/netsec.c struct netsec_priv *priv = netdev_priv(ndev); ndev 1715 drivers/net/ethernet/socionext/netsec.c static void netsec_netdev_uninit(struct net_device *ndev) ndev 1717 drivers/net/ethernet/socionext/netsec.c struct netsec_priv *priv = netdev_priv(ndev); ndev 1723 drivers/net/ethernet/socionext/netsec.c static int netsec_netdev_set_features(struct net_device *ndev, ndev 1726 drivers/net/ethernet/socionext/netsec.c struct netsec_priv *priv = netdev_priv(ndev); ndev 1733 drivers/net/ethernet/socionext/netsec.c static int netsec_netdev_ioctl(struct net_device *ndev, struct ifreq *ifr, ndev 1736 drivers/net/ethernet/socionext/netsec.c return phy_mii_ioctl(ndev->phydev, ifr, cmd); ndev 1739 drivers/net/ethernet/socionext/netsec.c static int netsec_xdp_xmit(struct net_device *ndev, int n, ndev 1742 drivers/net/ethernet/socionext/netsec.c struct netsec_priv *priv = netdev_priv(ndev); ndev 1776 drivers/net/ethernet/socionext/netsec.c struct net_device *dev = priv->ndev; ndev 1799 drivers/net/ethernet/socionext/netsec.c static int netsec_xdp(struct net_device *ndev, struct netdev_bpf *xdp) ndev 1801 drivers/net/ethernet/socionext/netsec.c struct netsec_priv *priv = netdev_priv(ndev); ndev 1956 drivers/net/ethernet/socionext/netsec.c struct net_device *ndev; ndev 1977 drivers/net/ethernet/socionext/netsec.c ndev = alloc_etherdev(sizeof(*priv)); ndev 1978 drivers/net/ethernet/socionext/netsec.c if (!ndev) ndev 1981 drivers/net/ethernet/socionext/netsec.c priv = netdev_priv(ndev); ndev 1984 drivers/net/ethernet/socionext/netsec.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 1986 drivers/net/ethernet/socionext/netsec.c ndev->irq = irq_res->start; ndev 1988 drivers/net/ethernet/socionext/netsec.c priv->ndev = ndev; ndev 2018 drivers/net/ethernet/socionext/netsec.c ether_addr_copy(ndev->dev_addr, mac); ndev 2021 drivers/net/ethernet/socionext/netsec.c (!mac || !is_valid_ether_addr(ndev->dev_addr))) { ndev 2025 drivers/net/ethernet/socionext/netsec.c ndev->dev_addr[0] = readb(macp + 3); ndev 2026 drivers/net/ethernet/socionext/netsec.c ndev->dev_addr[1] = readb(macp + 2); ndev 2027 drivers/net/ethernet/socionext/netsec.c ndev->dev_addr[2] = readb(macp + 1); ndev 2028 drivers/net/ethernet/socionext/netsec.c ndev->dev_addr[3] = readb(macp + 0); ndev 2029 drivers/net/ethernet/socionext/netsec.c ndev->dev_addr[4] = readb(macp + 7); ndev 2030 drivers/net/ethernet/socionext/netsec.c ndev->dev_addr[5] = readb(macp + 6); ndev 2033 drivers/net/ethernet/socionext/netsec.c if (!is_valid_ether_addr(ndev->dev_addr)) { ndev 2035 drivers/net/ethernet/socionext/netsec.c eth_hw_addr_random(ndev); ndev 2060 drivers/net/ethernet/socionext/netsec.c &ndev->max_mtu); ndev 2062 drivers/net/ethernet/socionext/netsec.c ndev->max_mtu = ETH_DATA_LEN; ndev 2079 drivers/net/ethernet/socionext/netsec.c netif_napi_add(ndev, &priv->napi, netsec_napi_poll, NAPI_POLL_WEIGHT); ndev 2081 drivers/net/ethernet/socionext/netsec.c ndev->netdev_ops = &netsec_netdev_ops; ndev 2082 drivers/net/ethernet/socionext/netsec.c ndev->ethtool_ops = &netsec_ethtool_ops; ndev 2084 drivers/net/ethernet/socionext/netsec.c ndev->features |= NETIF_F_HIGHDMA | NETIF_F_RXCSUM | NETIF_F_GSO | ndev 2086 drivers/net/ethernet/socionext/netsec.c ndev->hw_features = ndev->features; ndev 2097 drivers/net/ethernet/socionext/netsec.c ret = register_netdev(ndev); ndev 2099 drivers/net/ethernet/socionext/netsec.c netif_err(priv, probe, ndev, "register_netdev() failed\n"); ndev 2114 drivers/net/ethernet/socionext/netsec.c free_netdev(ndev); ndev 2124 drivers/net/ethernet/socionext/netsec.c unregister_netdev(priv->ndev); ndev 2131 drivers/net/ethernet/socionext/netsec.c free_netdev(priv->ndev); ndev 272 drivers/net/ethernet/socionext/sni_ave.c struct net_device *ndev; ndev 296 drivers/net/ethernet/socionext/sni_ave.c static u32 ave_desc_read(struct net_device *ndev, enum desc_id id, int entry, ndev 299 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 308 drivers/net/ethernet/socionext/sni_ave.c static u32 ave_desc_read_cmdsts(struct net_device *ndev, enum desc_id id, ndev 311 drivers/net/ethernet/socionext/sni_ave.c return ave_desc_read(ndev, id, entry, AVE_DESC_OFS_CMDSTS); ndev 314 drivers/net/ethernet/socionext/sni_ave.c static void ave_desc_write(struct net_device *ndev, enum desc_id id, ndev 317 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 326 drivers/net/ethernet/socionext/sni_ave.c static void ave_desc_write_cmdsts(struct net_device *ndev, enum desc_id id, ndev 329 drivers/net/ethernet/socionext/sni_ave.c ave_desc_write(ndev, id, entry, AVE_DESC_OFS_CMDSTS, val); ndev 332 drivers/net/ethernet/socionext/sni_ave.c static void ave_desc_write_addr(struct net_device *ndev, enum desc_id id, ndev 335 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 337 drivers/net/ethernet/socionext/sni_ave.c ave_desc_write(ndev, id, entry, AVE_DESC_OFS_ADDRL, ndev 340 drivers/net/ethernet/socionext/sni_ave.c ave_desc_write(ndev, id, ndev 345 drivers/net/ethernet/socionext/sni_ave.c static u32 ave_irq_disable_all(struct net_device *ndev) ndev 347 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 356 drivers/net/ethernet/socionext/sni_ave.c static void ave_irq_restore(struct net_device *ndev, u32 val) ndev 358 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 363 drivers/net/ethernet/socionext/sni_ave.c static void ave_irq_enable(struct net_device *ndev, u32 bitflag) ndev 365 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 371 drivers/net/ethernet/socionext/sni_ave.c static void ave_hw_write_macaddr(struct net_device *ndev, ndev 375 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 382 drivers/net/ethernet/socionext/sni_ave.c static void ave_hw_read_version(struct net_device *ndev, char *buf, int len) ndev 384 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 393 drivers/net/ethernet/socionext/sni_ave.c static void ave_ethtool_get_drvinfo(struct net_device *ndev, ndev 396 drivers/net/ethernet/socionext/sni_ave.c struct device *dev = ndev->dev.parent; ndev 400 drivers/net/ethernet/socionext/sni_ave.c ave_hw_read_version(ndev, info->fw_version, sizeof(info->fw_version)); ndev 403 drivers/net/ethernet/socionext/sni_ave.c static u32 ave_ethtool_get_msglevel(struct net_device *ndev) ndev 405 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 410 drivers/net/ethernet/socionext/sni_ave.c static void ave_ethtool_set_msglevel(struct net_device *ndev, u32 val) ndev 412 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 417 drivers/net/ethernet/socionext/sni_ave.c static void ave_ethtool_get_wol(struct net_device *ndev, ndev 423 drivers/net/ethernet/socionext/sni_ave.c if (ndev->phydev) ndev 424 drivers/net/ethernet/socionext/sni_ave.c phy_ethtool_get_wol(ndev->phydev, wol); ndev 427 drivers/net/ethernet/socionext/sni_ave.c static int __ave_ethtool_set_wol(struct net_device *ndev, ndev 430 drivers/net/ethernet/socionext/sni_ave.c if (!ndev->phydev || ndev 434 drivers/net/ethernet/socionext/sni_ave.c return phy_ethtool_set_wol(ndev->phydev, wol); ndev 437 drivers/net/ethernet/socionext/sni_ave.c static int ave_ethtool_set_wol(struct net_device *ndev, ndev 442 drivers/net/ethernet/socionext/sni_ave.c ret = __ave_ethtool_set_wol(ndev, wol); ndev 444 drivers/net/ethernet/socionext/sni_ave.c device_set_wakeup_enable(&ndev->dev, !!wol->wolopts); ndev 449 drivers/net/ethernet/socionext/sni_ave.c static void ave_ethtool_get_pauseparam(struct net_device *ndev, ndev 452 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 459 drivers/net/ethernet/socionext/sni_ave.c static int ave_ethtool_set_pauseparam(struct net_device *ndev, ndev 462 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 463 drivers/net/ethernet/socionext/sni_ave.c struct phy_device *phydev = ndev->phydev; ndev 493 drivers/net/ethernet/socionext/sni_ave.c struct net_device *ndev = bus->priv; ndev 498 drivers/net/ethernet/socionext/sni_ave.c priv = netdev_priv(ndev); ndev 511 drivers/net/ethernet/socionext/sni_ave.c netdev_err(ndev, "failed to read (phy:%d reg:%x)\n", ndev 522 drivers/net/ethernet/socionext/sni_ave.c struct net_device *ndev = bus->priv; ndev 527 drivers/net/ethernet/socionext/sni_ave.c priv = netdev_priv(ndev); ndev 543 drivers/net/ethernet/socionext/sni_ave.c netdev_err(ndev, "failed to write (phy:%d reg:%x)\n", ndev 549 drivers/net/ethernet/socionext/sni_ave.c static int ave_dma_map(struct net_device *ndev, struct ave_desc *desc, ndev 555 drivers/net/ethernet/socionext/sni_ave.c map_addr = dma_map_single(ndev->dev.parent, ptr, len, dir); ndev 556 drivers/net/ethernet/socionext/sni_ave.c if (unlikely(dma_mapping_error(ndev->dev.parent, map_addr))) ndev 566 drivers/net/ethernet/socionext/sni_ave.c static void ave_dma_unmap(struct net_device *ndev, struct ave_desc *desc, ndev 572 drivers/net/ethernet/socionext/sni_ave.c dma_unmap_single(ndev->dev.parent, ndev 578 drivers/net/ethernet/socionext/sni_ave.c static int ave_rxdesc_prepare(struct net_device *ndev, int entry) ndev 580 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 587 drivers/net/ethernet/socionext/sni_ave.c skb = netdev_alloc_skb(ndev, AVE_MAX_ETHFRAME); ndev 589 drivers/net/ethernet/socionext/sni_ave.c netdev_err(ndev, "can't allocate skb for Rx\n"); ndev 597 drivers/net/ethernet/socionext/sni_ave.c ave_desc_write_cmdsts(ndev, AVE_DESCID_RX, entry, ndev 609 drivers/net/ethernet/socionext/sni_ave.c ret = ave_dma_map(ndev, &priv->rx.desc[entry], ndev 614 drivers/net/ethernet/socionext/sni_ave.c netdev_err(ndev, "can't map skb for Rx\n"); ndev 621 drivers/net/ethernet/socionext/sni_ave.c ave_desc_write_addr(ndev, AVE_DESCID_RX, entry, paddr); ndev 624 drivers/net/ethernet/socionext/sni_ave.c ave_desc_write_cmdsts(ndev, AVE_DESCID_RX, entry, ndev 631 drivers/net/ethernet/socionext/sni_ave.c static int ave_desc_switch(struct net_device *ndev, enum desc_state state) ndev 633 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 646 drivers/net/ethernet/socionext/sni_ave.c netdev_err(ndev, "can't stop descriptor\n"); ndev 659 drivers/net/ethernet/socionext/sni_ave.c netdev_err(ndev, "can't suspend descriptor\n"); ndev 679 drivers/net/ethernet/socionext/sni_ave.c static int ave_tx_complete(struct net_device *ndev) ndev 681 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 693 drivers/net/ethernet/socionext/sni_ave.c cmdsts = ave_desc_read_cmdsts(ndev, AVE_DESCID_TX, done_idx); ndev 716 drivers/net/ethernet/socionext/sni_ave.c ave_dma_unmap(ndev, &priv->tx.desc[done_idx], ndev 734 drivers/net/ethernet/socionext/sni_ave.c if (unlikely(netif_queue_stopped(ndev)) && nr_freebuf) ndev 735 drivers/net/ethernet/socionext/sni_ave.c netif_wake_queue(ndev); ndev 740 drivers/net/ethernet/socionext/sni_ave.c static int ave_rx_receive(struct net_device *ndev, int num) ndev 742 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 761 drivers/net/ethernet/socionext/sni_ave.c cmdsts = ave_desc_read_cmdsts(ndev, AVE_DESCID_RX, proc_idx); ndev 779 drivers/net/ethernet/socionext/sni_ave.c ave_dma_unmap(ndev, &priv->rx.desc[proc_idx], DMA_FROM_DEVICE); ndev 781 drivers/net/ethernet/socionext/sni_ave.c skb->dev = ndev; ndev 783 drivers/net/ethernet/socionext/sni_ave.c skb->protocol = eth_type_trans(skb, ndev); ndev 806 drivers/net/ethernet/socionext/sni_ave.c if (ave_rxdesc_prepare(ndev, done_idx)) ndev 819 drivers/net/ethernet/socionext/sni_ave.c struct net_device *ndev; ndev 823 drivers/net/ethernet/socionext/sni_ave.c ndev = priv->ndev; ndev 825 drivers/net/ethernet/socionext/sni_ave.c num = ave_rx_receive(ndev, budget); ndev 830 drivers/net/ethernet/socionext/sni_ave.c ave_irq_enable(ndev, AVE_GI_RXIINT); ndev 839 drivers/net/ethernet/socionext/sni_ave.c struct net_device *ndev; ndev 843 drivers/net/ethernet/socionext/sni_ave.c ndev = priv->ndev; ndev 845 drivers/net/ethernet/socionext/sni_ave.c num = ave_tx_complete(ndev); ndev 849 drivers/net/ethernet/socionext/sni_ave.c ave_irq_enable(ndev, AVE_GI_TX); ndev 854 drivers/net/ethernet/socionext/sni_ave.c static void ave_global_reset(struct net_device *ndev) ndev 856 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 887 drivers/net/ethernet/socionext/sni_ave.c ave_irq_disable_all(ndev); ndev 890 drivers/net/ethernet/socionext/sni_ave.c static void ave_rxfifo_reset(struct net_device *ndev) ndev 892 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 900 drivers/net/ethernet/socionext/sni_ave.c ave_desc_switch(ndev, AVE_DESC_RX_SUSPEND); ndev 903 drivers/net/ethernet/socionext/sni_ave.c ave_rx_receive(ndev, priv->rx.ndesc); ndev 917 drivers/net/ethernet/socionext/sni_ave.c ave_desc_switch(ndev, AVE_DESC_RX_PERMIT); ndev 925 drivers/net/ethernet/socionext/sni_ave.c struct net_device *ndev = (struct net_device *)netdev; ndev 926 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 929 drivers/net/ethernet/socionext/sni_ave.c gimr_val = ave_irq_disable_all(ndev); ndev 941 drivers/net/ethernet/socionext/sni_ave.c netdev_err(ndev, "receive a packet exceeding frame buffer\n"); ndev 951 drivers/net/ethernet/socionext/sni_ave.c ave_rxfifo_reset(ndev); ndev 976 drivers/net/ethernet/socionext/sni_ave.c ave_irq_restore(ndev, gimr_val); ndev 981 drivers/net/ethernet/socionext/sni_ave.c static int ave_pfsel_start(struct net_device *ndev, unsigned int entry) ndev 983 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 995 drivers/net/ethernet/socionext/sni_ave.c static int ave_pfsel_stop(struct net_device *ndev, unsigned int entry) ndev 997 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 1009 drivers/net/ethernet/socionext/sni_ave.c static int ave_pfsel_set_macaddr(struct net_device *ndev, ndev 1014 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 1021 drivers/net/ethernet/socionext/sni_ave.c ave_pfsel_stop(ndev, entry); ndev 1024 drivers/net/ethernet/socionext/sni_ave.c ave_hw_write_macaddr(ndev, mac_addr, ndev 1039 drivers/net/ethernet/socionext/sni_ave.c ave_pfsel_start(ndev, entry); ndev 1044 drivers/net/ethernet/socionext/sni_ave.c static void ave_pfsel_set_promisc(struct net_device *ndev, ndev 1047 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 1052 drivers/net/ethernet/socionext/sni_ave.c ave_pfsel_stop(ndev, entry); ndev 1064 drivers/net/ethernet/socionext/sni_ave.c ave_pfsel_start(ndev, entry); ndev 1067 drivers/net/ethernet/socionext/sni_ave.c static void ave_pfsel_init(struct net_device *ndev) ndev 1075 drivers/net/ethernet/socionext/sni_ave.c ave_pfsel_stop(ndev, i); ndev 1078 drivers/net/ethernet/socionext/sni_ave.c ave_pfsel_set_promisc(ndev, AVE_PFNUM_FILTER, 0); ndev 1081 drivers/net/ethernet/socionext/sni_ave.c ave_pfsel_set_macaddr(ndev, AVE_PFNUM_UNICAST, ndev->dev_addr, 6); ndev 1084 drivers/net/ethernet/socionext/sni_ave.c ave_pfsel_set_macaddr(ndev, AVE_PFNUM_BROADCAST, bcast_mac, 6); ndev 1087 drivers/net/ethernet/socionext/sni_ave.c static void ave_phy_adjust_link(struct net_device *ndev) ndev 1089 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 1090 drivers/net/ethernet/socionext/sni_ave.c struct phy_device *phydev = ndev->phydev; ndev 1156 drivers/net/ethernet/socionext/sni_ave.c static void ave_macaddr_init(struct net_device *ndev) ndev 1158 drivers/net/ethernet/socionext/sni_ave.c ave_hw_write_macaddr(ndev, ndev->dev_addr, AVE_RXMAC1R, AVE_RXMAC2R); ndev 1161 drivers/net/ethernet/socionext/sni_ave.c ave_pfsel_set_macaddr(ndev, AVE_PFNUM_UNICAST, ndev->dev_addr, 6); ndev 1164 drivers/net/ethernet/socionext/sni_ave.c static int ave_init(struct net_device *ndev) ndev 1167 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 1168 drivers/net/ethernet/socionext/sni_ave.c struct device *dev = ndev->dev.parent; ndev 1196 drivers/net/ethernet/socionext/sni_ave.c ave_global_reset(ndev); ndev 1211 drivers/net/ethernet/socionext/sni_ave.c phydev = of_phy_get_and_connect(ndev, np, ave_phy_adjust_link); ndev 1220 drivers/net/ethernet/socionext/sni_ave.c ave_ethtool_get_wol(ndev, &wol); ndev 1221 drivers/net/ethernet/socionext/sni_ave.c device_set_wakeup_capable(&ndev->dev, !!wol.supported); ndev 1225 drivers/net/ethernet/socionext/sni_ave.c __ave_ethtool_set_wol(ndev, &wol); ndev 1248 drivers/net/ethernet/socionext/sni_ave.c static void ave_uninit(struct net_device *ndev) ndev 1250 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 1263 drivers/net/ethernet/socionext/sni_ave.c static int ave_open(struct net_device *ndev) ndev 1265 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 1270 drivers/net/ethernet/socionext/sni_ave.c ret = request_irq(priv->irq, ave_irq_handler, IRQF_SHARED, ndev->name, ndev 1271 drivers/net/ethernet/socionext/sni_ave.c ndev); ndev 1294 drivers/net/ethernet/socionext/sni_ave.c ave_desc_write_cmdsts(ndev, AVE_DESCID_TX, entry, 0); ndev 1295 drivers/net/ethernet/socionext/sni_ave.c ave_desc_write_addr(ndev, AVE_DESCID_TX, entry, 0); ndev 1305 drivers/net/ethernet/socionext/sni_ave.c if (ave_rxdesc_prepare(ndev, entry)) ndev 1312 drivers/net/ethernet/socionext/sni_ave.c ave_desc_switch(ndev, AVE_DESC_START); ndev 1314 drivers/net/ethernet/socionext/sni_ave.c ave_pfsel_init(ndev); ndev 1315 drivers/net/ethernet/socionext/sni_ave.c ave_macaddr_init(ndev); ndev 1333 drivers/net/ethernet/socionext/sni_ave.c ave_irq_restore(ndev, val); ndev 1338 drivers/net/ethernet/socionext/sni_ave.c phy_start(ndev->phydev); ndev 1339 drivers/net/ethernet/socionext/sni_ave.c phy_start_aneg(ndev->phydev); ndev 1340 drivers/net/ethernet/socionext/sni_ave.c netif_start_queue(ndev); ndev 1346 drivers/net/ethernet/socionext/sni_ave.c free_irq(priv->irq, ndev); ndev 1351 drivers/net/ethernet/socionext/sni_ave.c static int ave_stop(struct net_device *ndev) ndev 1353 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 1356 drivers/net/ethernet/socionext/sni_ave.c ave_irq_disable_all(ndev); ndev 1358 drivers/net/ethernet/socionext/sni_ave.c free_irq(priv->irq, ndev); ndev 1360 drivers/net/ethernet/socionext/sni_ave.c netif_tx_disable(ndev); ndev 1361 drivers/net/ethernet/socionext/sni_ave.c phy_stop(ndev->phydev); ndev 1365 drivers/net/ethernet/socionext/sni_ave.c ave_desc_switch(ndev, AVE_DESC_STOP); ndev 1372 drivers/net/ethernet/socionext/sni_ave.c ave_dma_unmap(ndev, &priv->tx.desc[entry], DMA_TO_DEVICE); ndev 1384 drivers/net/ethernet/socionext/sni_ave.c ave_dma_unmap(ndev, &priv->rx.desc[entry], DMA_FROM_DEVICE); ndev 1397 drivers/net/ethernet/socionext/sni_ave.c static int ave_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 1399 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 1411 drivers/net/ethernet/socionext/sni_ave.c netif_stop_queue(ndev); ndev 1424 drivers/net/ethernet/socionext/sni_ave.c ret = ave_dma_map(ndev, &priv->tx.desc[proc_idx], ndev 1434 drivers/net/ethernet/socionext/sni_ave.c ave_desc_write_addr(ndev, AVE_DESCID_TX, proc_idx, paddr); ndev 1440 drivers/net/ethernet/socionext/sni_ave.c if (!(proc_idx % AVE_FORCE_TXINTCNT) || netif_queue_stopped(ndev)) ndev 1448 drivers/net/ethernet/socionext/sni_ave.c ave_desc_write_cmdsts(ndev, AVE_DESCID_TX, proc_idx, cmdsts); ndev 1455 drivers/net/ethernet/socionext/sni_ave.c static int ave_ioctl(struct net_device *ndev, struct ifreq *ifr, int cmd) ndev 1457 drivers/net/ethernet/socionext/sni_ave.c return phy_mii_ioctl(ndev->phydev, ifr, cmd); ndev 1463 drivers/net/ethernet/socionext/sni_ave.c static void ave_set_rx_mode(struct net_device *ndev) ndev 1465 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 1471 drivers/net/ethernet/socionext/sni_ave.c mc_cnt = netdev_mc_count(ndev); ndev 1473 drivers/net/ethernet/socionext/sni_ave.c if (ndev->flags & IFF_PROMISC || !mc_cnt) ndev 1480 drivers/net/ethernet/socionext/sni_ave.c if ((ndev->flags & IFF_ALLMULTI) || mc_cnt > AVE_PF_MULTICAST_SIZE) { ndev 1481 drivers/net/ethernet/socionext/sni_ave.c ave_pfsel_set_macaddr(ndev, AVE_PFNUM_MULTICAST, ndev 1483 drivers/net/ethernet/socionext/sni_ave.c ave_pfsel_set_macaddr(ndev, AVE_PFNUM_MULTICAST + 1, ndev 1488 drivers/net/ethernet/socionext/sni_ave.c ave_pfsel_stop(ndev, AVE_PFNUM_MULTICAST + count); ndev 1492 drivers/net/ethernet/socionext/sni_ave.c netdev_for_each_mc_addr(hw_adr, ndev) { ndev 1495 drivers/net/ethernet/socionext/sni_ave.c ave_pfsel_set_macaddr(ndev, AVE_PFNUM_MULTICAST + count, ndev 1502 drivers/net/ethernet/socionext/sni_ave.c static void ave_get_stats64(struct net_device *ndev, ndev 1505 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 1528 drivers/net/ethernet/socionext/sni_ave.c static int ave_set_mac_address(struct net_device *ndev, void *p) ndev 1530 drivers/net/ethernet/socionext/sni_ave.c int ret = eth_mac_addr(ndev, p); ndev 1535 drivers/net/ethernet/socionext/sni_ave.c ave_macaddr_init(ndev); ndev 1560 drivers/net/ethernet/socionext/sni_ave.c struct net_device *ndev; ndev 1588 drivers/net/ethernet/socionext/sni_ave.c ndev = alloc_etherdev(sizeof(struct ave_private)); ndev 1589 drivers/net/ethernet/socionext/sni_ave.c if (!ndev) { ndev 1594 drivers/net/ethernet/socionext/sni_ave.c ndev->netdev_ops = &ave_netdev_ops; ndev 1595 drivers/net/ethernet/socionext/sni_ave.c ndev->ethtool_ops = &ave_ethtool_ops; ndev 1596 drivers/net/ethernet/socionext/sni_ave.c SET_NETDEV_DEV(ndev, dev); ndev 1598 drivers/net/ethernet/socionext/sni_ave.c ndev->features |= (NETIF_F_IP_CSUM | NETIF_F_RXCSUM); ndev 1599 drivers/net/ethernet/socionext/sni_ave.c ndev->hw_features |= (NETIF_F_IP_CSUM | NETIF_F_RXCSUM); ndev 1601 drivers/net/ethernet/socionext/sni_ave.c ndev->max_mtu = AVE_MAX_ETHFRAME - (ETH_HLEN + ETH_FCS_LEN); ndev 1605 drivers/net/ethernet/socionext/sni_ave.c ether_addr_copy(ndev->dev_addr, mac_addr); ndev 1608 drivers/net/ethernet/socionext/sni_ave.c if (!is_valid_ether_addr(ndev->dev_addr)) { ndev 1609 drivers/net/ethernet/socionext/sni_ave.c eth_hw_addr_random(ndev); ndev 1611 drivers/net/ethernet/socionext/sni_ave.c ndev->dev_addr); ndev 1614 drivers/net/ethernet/socionext/sni_ave.c priv = netdev_priv(ndev); ndev 1617 drivers/net/ethernet/socionext/sni_ave.c priv->ndev = ndev; ndev 1692 drivers/net/ethernet/socionext/sni_ave.c priv->mdio->priv = ndev; ndev 1701 drivers/net/ethernet/socionext/sni_ave.c netif_napi_add(ndev, &priv->napi_rx, ave_napi_poll_rx, ndev 1703 drivers/net/ethernet/socionext/sni_ave.c netif_tx_napi_add(ndev, &priv->napi_tx, ave_napi_poll_tx, ndev 1706 drivers/net/ethernet/socionext/sni_ave.c platform_set_drvdata(pdev, ndev); ndev 1708 drivers/net/ethernet/socionext/sni_ave.c ret = register_netdev(ndev); ndev 1716 drivers/net/ethernet/socionext/sni_ave.c ave_hw_read_version(ndev, buf, sizeof(buf)); ndev 1729 drivers/net/ethernet/socionext/sni_ave.c free_netdev(ndev); ndev 1736 drivers/net/ethernet/socionext/sni_ave.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1737 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 1739 drivers/net/ethernet/socionext/sni_ave.c unregister_netdev(ndev); ndev 1742 drivers/net/ethernet/socionext/sni_ave.c free_netdev(ndev); ndev 1751 drivers/net/ethernet/socionext/sni_ave.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1752 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 1755 drivers/net/ethernet/socionext/sni_ave.c if (netif_running(ndev)) { ndev 1756 drivers/net/ethernet/socionext/sni_ave.c ret = ave_stop(ndev); ndev 1757 drivers/net/ethernet/socionext/sni_ave.c netif_device_detach(ndev); ndev 1760 drivers/net/ethernet/socionext/sni_ave.c ave_ethtool_get_wol(ndev, &wol); ndev 1769 drivers/net/ethernet/socionext/sni_ave.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1770 drivers/net/ethernet/socionext/sni_ave.c struct ave_private *priv = netdev_priv(ndev); ndev 1773 drivers/net/ethernet/socionext/sni_ave.c ave_global_reset(ndev); ndev 1775 drivers/net/ethernet/socionext/sni_ave.c ave_ethtool_get_wol(ndev, &wol); ndev 1777 drivers/net/ethernet/socionext/sni_ave.c __ave_ethtool_set_wol(ndev, &wol); ndev 1779 drivers/net/ethernet/socionext/sni_ave.c if (ndev->phydev) { ndev 1780 drivers/net/ethernet/socionext/sni_ave.c ret = phy_resume(ndev->phydev); ndev 1785 drivers/net/ethernet/socionext/sni_ave.c if (netif_running(ndev)) { ndev 1786 drivers/net/ethernet/socionext/sni_ave.c ret = ave_open(ndev); ndev 1787 drivers/net/ethernet/socionext/sni_ave.c netif_device_attach(ndev); ndev 163 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 164 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 476 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 477 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 68 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c struct net_device *ndev = dev_get_drvdata(dev); ndev 69 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c struct phy_device *phy_dev = ndev->phydev; ndev 233 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c struct net_device *ndev = dev_get_drvdata(dwmac->dev); ndev 234 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 387 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c struct net_device *ndev; ndev 434 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c ndev = platform_get_drvdata(pdev); ndev 435 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c stpriv = netdev_priv(ndev); ndev 460 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c struct net_device *ndev = dev_get_drvdata(dev); ndev 461 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 481 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c if (ndev->phydev) ndev 482 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c phy_resume(ndev->phydev); ndev 415 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 416 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 462 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c struct net_device *ndev = dev_get_drvdata(dev); ndev 463 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 478 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c struct net_device *ndev = dev_get_drvdata(dev); ndev 479 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 1113 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c struct net_device *ndev; ndev 1208 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c ndev = dev_get_drvdata(&pdev->dev); ndev 1209 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c priv = netdev_priv(ndev); ndev 21 drivers/net/ethernet/stmicro/stmmac/dwmac5.c static void dwmac5_log_error(struct net_device *ndev, u32 value, bool corr, ndev 33 drivers/net/ethernet/stmicro/stmmac/dwmac5.c netdev_err(ndev, "Found %s error in %s: '%s: %s'\n", corr ? ndev 77 drivers/net/ethernet/stmicro/stmmac/dwmac5.c static void dwmac5_handle_mac_err(struct net_device *ndev, ndev 86 drivers/net/ethernet/stmicro/stmmac/dwmac5.c dwmac5_log_error(ndev, value, correctable, "MAC", dwmac5_mac_errors, ndev 125 drivers/net/ethernet/stmicro/stmmac/dwmac5.c static void dwmac5_handle_mtl_err(struct net_device *ndev, ndev 134 drivers/net/ethernet/stmicro/stmmac/dwmac5.c dwmac5_log_error(ndev, value, correctable, "MTL", dwmac5_mtl_errors, ndev 173 drivers/net/ethernet/stmicro/stmmac/dwmac5.c static void dwmac5_handle_dma_err(struct net_device *ndev, ndev 182 drivers/net/ethernet/stmicro/stmmac/dwmac5.c dwmac5_log_error(ndev, value, correctable, "DMA", dwmac5_dma_errors, ndev 242 drivers/net/ethernet/stmicro/stmmac/dwmac5.c int dwmac5_safety_feat_irq_status(struct net_device *ndev, ndev 259 drivers/net/ethernet/stmicro/stmmac/dwmac5.c dwmac5_handle_mac_err(ndev, ioaddr, corr, stats); ndev 266 drivers/net/ethernet/stmicro/stmmac/dwmac5.c dwmac5_handle_mtl_err(ndev, ioaddr, corr, stats); ndev 273 drivers/net/ethernet/stmicro/stmmac/dwmac5.c dwmac5_handle_dma_err(ndev, ioaddr, corr, stats); ndev 76 drivers/net/ethernet/stmicro/stmmac/dwmac5.h int dwmac5_safety_feat_irq_status(struct net_device *ndev, ndev 606 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c static void dwxgmac3_log_error(struct net_device *ndev, u32 value, bool corr, ndev 620 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c netdev_err(ndev, "Found %s error in %s: '%s: %s'\n", corr ? ndev 664 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c static void dwxgmac3_handle_mac_err(struct net_device *ndev, ndev 673 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c dwxgmac3_log_error(ndev, value, correctable, "MAC", ndev 712 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c static void dwxgmac3_handle_mtl_err(struct net_device *ndev, ndev 721 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c dwxgmac3_log_error(ndev, value, correctable, "MTL", ndev 760 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c static void dwxgmac3_handle_dma_err(struct net_device *ndev, ndev 769 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c dwxgmac3_log_error(ndev, value, correctable, "DMA", ndev 810 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c static int dwxgmac3_safety_feat_irq_status(struct net_device *ndev, ndev 828 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c dwxgmac3_handle_mac_err(ndev, ioaddr, corr, stats); ndev 836 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c dwxgmac3_handle_mtl_err(ndev, ioaddr, corr, stats); ndev 843 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c dwxgmac3_handle_dma_err(ndev, ioaddr, corr, stats); ndev 341 drivers/net/ethernet/stmicro/stmmac/hwif.h int (*safety_feat_irq_status)(struct net_device *ndev, ndev 246 drivers/net/ethernet/stmicro/stmmac/stmmac.h int stmmac_mdio_unregister(struct net_device *ndev); ndev 247 drivers/net/ethernet/stmicro/stmmac/stmmac.h int stmmac_mdio_register(struct net_device *ndev); ndev 3985 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c static int stmmac_setup_tc(struct net_device *ndev, enum tc_setup_type type, ndev 3988 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 4019 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c static int stmmac_set_mac_address(struct net_device *ndev, void *addr) ndev 4021 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 4024 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ret = eth_mac_addr(ndev, addr); ndev 4028 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c stmmac_set_umac_addr(priv, priv->hw, ndev->dev_addr, 0); ndev 4269 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c static int stmmac_vlan_rx_add_vid(struct net_device *ndev, __be16 proto, u16 vid) ndev 4271 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 4290 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c static int stmmac_vlan_rx_kill_vid(struct net_device *ndev, __be16 proto, u16 vid) ndev 4292 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 4468 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct net_device *ndev = NULL; ndev 4473 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev = devm_alloc_etherdev_mqs(device, sizeof(struct stmmac_priv), ndev 4475 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (!ndev) ndev 4478 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c SET_NETDEV_DEV(ndev, device); ndev 4480 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c priv = netdev_priv(ndev); ndev 4482 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c priv->dev = ndev; ndev 4484 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c stmmac_set_ethtool_ops(ndev); ndev 4535 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c netif_set_real_num_rx_queues(ndev, priv->plat->rx_queues_to_use); ndev 4536 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c netif_set_real_num_tx_queues(ndev, priv->plat->tx_queues_to_use); ndev 4538 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->netdev_ops = &stmmac_netdev_ops; ndev 4540 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | ndev 4545 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->hw_features |= NETIF_F_HW_TC; ndev 4549 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->hw_features |= NETIF_F_TSO | NETIF_F_TSO6; ndev 4555 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->hw_features |= NETIF_F_GRO; ndev 4577 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->features |= ndev->hw_features | NETIF_F_HIGHDMA; ndev 4578 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->watchdog_timeo = msecs_to_jiffies(watchdog); ndev 4581 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->features |= NETIF_F_HW_VLAN_CTAG_RX | NETIF_F_HW_VLAN_STAG_RX; ndev 4583 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; ndev 4584 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->features |= NETIF_F_HW_VLAN_STAG_FILTER; ndev 4587 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->features |= NETIF_F_HW_VLAN_CTAG_TX; ndev 4589 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->features |= NETIF_F_HW_VLAN_STAG_TX; ndev 4601 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->features |= NETIF_F_RXHASH; ndev 4604 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->min_mtu = ETH_ZLEN - ETH_HLEN; ndev 4606 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->max_mtu = XGMAC_JUMBO_LEN; ndev 4608 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->max_mtu = JUMBO_LEN; ndev 4610 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->max_mtu = SKB_MAX_HEAD(NET_SKB_PAD + NET_IP_ALIGN); ndev 4614 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if ((priv->plat->maxmtu < ndev->max_mtu) && ndev 4615 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c (priv->plat->maxmtu >= ndev->min_mtu)) ndev 4616 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ndev->max_mtu = priv->plat->maxmtu; ndev 4617 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c else if (priv->plat->maxmtu < ndev->min_mtu) ndev 4635 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c netif_napi_add(ndev, &ch->rx_napi, stmmac_napi_poll_rx, ndev 4639 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c netif_tx_napi_add(ndev, &ch->tx_napi, ndev 4664 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ret = stmmac_mdio_register(ndev); ndev 4675 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c netdev_err(ndev, "failed to setup phy (%d)\n", ret); ndev 4679 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c ret = register_netdev(ndev); ndev 4687 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c stmmac_init_fs(ndev); ndev 4698 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c stmmac_mdio_unregister(ndev); ndev 4723 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct net_device *ndev = dev_get_drvdata(dev); ndev 4724 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 4731 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c netif_carrier_off(ndev); ndev 4732 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c unregister_netdev(ndev); ndev 4734 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c stmmac_exit_fs(ndev); ndev 4744 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c stmmac_mdio_unregister(ndev); ndev 4761 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct net_device *ndev = dev_get_drvdata(dev); ndev 4762 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 4765 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (!ndev || !netif_running(ndev)) ndev 4772 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c netif_device_detach(ndev); ndev 4843 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct net_device *ndev = dev_get_drvdata(dev); ndev 4844 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 4846 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (!netif_running(ndev)) ndev 4872 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c netif_device_attach(ndev); ndev 4880 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c stmmac_hw_setup(ndev, false); ndev 4882 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c stmmac_set_rx_mode(ndev); ndev 71 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct net_device *ndev = bus->priv; ndev 72 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 111 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct net_device *ndev = bus->priv; ndev 112 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 157 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct net_device *ndev = bus->priv; ndev 158 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 212 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct net_device *ndev = bus->priv; ndev 213 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 264 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct net_device *ndev = bus->priv; ndev 265 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 312 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c int stmmac_mdio_register(struct net_device *ndev) ndev 316 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 319 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct device *dev = ndev->dev.parent; ndev 356 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c new_bus->priv = ndev; ndev 420 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c int stmmac_mdio_unregister(struct net_device *ndev) ndev 422 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 526 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c struct net_device *ndev = dev_get_drvdata(&pdev->dev); ndev 527 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 698 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 699 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 723 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c struct net_device *ndev = dev_get_drvdata(dev); ndev 724 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 743 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c struct net_device *ndev = dev_get_drvdata(dev); ndev 744 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c struct stmmac_priv *priv = netdev_priv(ndev); ndev 27 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h struct net_device *ndev = dev_get_drvdata(dev); ndev 28 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h struct stmmac_priv *priv = netdev_priv(ndev); ndev 242 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct net_device *ndev, ndev 711 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct net_device *ndev, ndev 832 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct net_device *ndev, ndev 1554 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c struct net_device *ndev, ndev 120 drivers/net/ethernet/tehuti/tehuti.c static void print_eth_id(struct net_device *ndev) ndev 122 drivers/net/ethernet/tehuti/tehuti.c netdev_info(ndev, "%s, Port %c\n", ndev 123 drivers/net/ethernet/tehuti/tehuti.c BDX_NIC_NAME, (ndev->if_port == 0) ? 'A' : 'B'); ndev 202 drivers/net/ethernet/tehuti/tehuti.c if (netif_carrier_ok(priv->ndev)) { ndev 203 drivers/net/ethernet/tehuti/tehuti.c netif_stop_queue(priv->ndev); ndev 204 drivers/net/ethernet/tehuti/tehuti.c netif_carrier_off(priv->ndev); ndev 205 drivers/net/ethernet/tehuti/tehuti.c netdev_err(priv->ndev, "Link Down\n"); ndev 208 drivers/net/ethernet/tehuti/tehuti.c if (!netif_carrier_ok(priv->ndev)) { ndev 209 drivers/net/ethernet/tehuti/tehuti.c netif_wake_queue(priv->ndev); ndev 210 drivers/net/ethernet/tehuti/tehuti.c netif_carrier_on(priv->ndev); ndev 211 drivers/net/ethernet/tehuti/tehuti.c netdev_err(priv->ndev, "Link Up\n"); ndev 227 drivers/net/ethernet/tehuti/tehuti.c netdev_err(priv->ndev, "PCI-E Link Fault\n"); ndev 230 drivers/net/ethernet/tehuti/tehuti.c netdev_err(priv->ndev, "PCI-E Time Out\n"); ndev 250 drivers/net/ethernet/tehuti/tehuti.c struct net_device *ndev = dev; ndev 251 drivers/net/ethernet/tehuti/tehuti.c struct bdx_priv *priv = netdev_priv(ndev); ndev 348 drivers/net/ethernet/tehuti/tehuti.c netdev_err(priv->ndev, "firmware loading failed\n"); ndev 356 drivers/net/ethernet/tehuti/tehuti.c DBG("%s: firmware loading success\n", priv->ndev->name); ndev 361 drivers/net/ethernet/tehuti/tehuti.c static void bdx_restore_mac(struct net_device *ndev, struct bdx_priv *priv) ndev 370 drivers/net/ethernet/tehuti/tehuti.c val = (ndev->dev_addr[0] << 8) | (ndev->dev_addr[1]); ndev 372 drivers/net/ethernet/tehuti/tehuti.c val = (ndev->dev_addr[2] << 8) | (ndev->dev_addr[3]); ndev 374 drivers/net/ethernet/tehuti/tehuti.c val = (ndev->dev_addr[4] << 8) | (ndev->dev_addr[5]); ndev 390 drivers/net/ethernet/tehuti/tehuti.c struct net_device *ndev = priv->ndev; ndev 418 drivers/net/ethernet/tehuti/tehuti.c bdx_restore_mac(priv->ndev, priv); ndev 426 drivers/net/ethernet/tehuti/tehuti.c ndev->name, ndev); ndev 441 drivers/net/ethernet/tehuti/tehuti.c free_irq(priv->pdev->irq, priv->ndev); ndev 443 drivers/net/ethernet/tehuti/tehuti.c netif_carrier_off(priv->ndev); ndev 444 drivers/net/ethernet/tehuti/tehuti.c netif_stop_queue(priv->ndev); ndev 516 drivers/net/ethernet/tehuti/tehuti.c netdev_err(priv->ndev, "SW reset timeout. continuing anyway\n"); ndev 570 drivers/net/ethernet/tehuti/tehuti.c static int bdx_close(struct net_device *ndev) ndev 575 drivers/net/ethernet/tehuti/tehuti.c priv = netdev_priv(ndev); ndev 598 drivers/net/ethernet/tehuti/tehuti.c static int bdx_open(struct net_device *ndev) ndev 604 drivers/net/ethernet/tehuti/tehuti.c priv = netdev_priv(ndev); ndev 606 drivers/net/ethernet/tehuti/tehuti.c if (netif_running(ndev)) ndev 607 drivers/net/ethernet/tehuti/tehuti.c netif_stop_queue(priv->ndev); ndev 627 drivers/net/ethernet/tehuti/tehuti.c bdx_close(ndev); ndev 637 drivers/net/ethernet/tehuti/tehuti.c static int bdx_ioctl_priv(struct net_device *ndev, struct ifreq *ifr, int cmd) ndev 639 drivers/net/ethernet/tehuti/tehuti.c struct bdx_priv *priv = netdev_priv(ndev); ndev 688 drivers/net/ethernet/tehuti/tehuti.c static int bdx_ioctl(struct net_device *ndev, struct ifreq *ifr, int cmd) ndev 692 drivers/net/ethernet/tehuti/tehuti.c RET(bdx_ioctl_priv(ndev, ifr, cmd)); ndev 705 drivers/net/ethernet/tehuti/tehuti.c static void __bdx_vlan_rx_vid(struct net_device *ndev, uint16_t vid, int enable) ndev 707 drivers/net/ethernet/tehuti/tehuti.c struct bdx_priv *priv = netdev_priv(ndev); ndev 734 drivers/net/ethernet/tehuti/tehuti.c static int bdx_vlan_rx_add_vid(struct net_device *ndev, __be16 proto, u16 vid) ndev 736 drivers/net/ethernet/tehuti/tehuti.c __bdx_vlan_rx_vid(ndev, vid, 1); ndev 745 drivers/net/ethernet/tehuti/tehuti.c static int bdx_vlan_rx_kill_vid(struct net_device *ndev, __be16 proto, u16 vid) ndev 747 drivers/net/ethernet/tehuti/tehuti.c __bdx_vlan_rx_vid(ndev, vid, 0); ndev 758 drivers/net/ethernet/tehuti/tehuti.c static int bdx_change_mtu(struct net_device *ndev, int new_mtu) ndev 762 drivers/net/ethernet/tehuti/tehuti.c ndev->mtu = new_mtu; ndev 763 drivers/net/ethernet/tehuti/tehuti.c if (netif_running(ndev)) { ndev 764 drivers/net/ethernet/tehuti/tehuti.c bdx_close(ndev); ndev 765 drivers/net/ethernet/tehuti/tehuti.c bdx_open(ndev); ndev 770 drivers/net/ethernet/tehuti/tehuti.c static void bdx_setmulti(struct net_device *ndev) ndev 772 drivers/net/ethernet/tehuti/tehuti.c struct bdx_priv *priv = netdev_priv(ndev); ndev 783 drivers/net/ethernet/tehuti/tehuti.c if (ndev->flags & IFF_PROMISC) { ndev 785 drivers/net/ethernet/tehuti/tehuti.c } else if (ndev->flags & IFF_ALLMULTI) { ndev 789 drivers/net/ethernet/tehuti/tehuti.c } else if (!netdev_mc_empty(ndev)) { ndev 808 drivers/net/ethernet/tehuti/tehuti.c netdev_for_each_mc_addr(ha, ndev) { ndev 819 drivers/net/ethernet/tehuti/tehuti.c DBG("only own mac %d\n", netdev_mc_count(ndev)); ndev 828 drivers/net/ethernet/tehuti/tehuti.c static int bdx_set_mac(struct net_device *ndev, void *p) ndev 830 drivers/net/ethernet/tehuti/tehuti.c struct bdx_priv *priv = netdev_priv(ndev); ndev 838 drivers/net/ethernet/tehuti/tehuti.c memcpy(ndev->dev_addr, addr->sa_data, ndev->addr_len); ndev 839 drivers/net/ethernet/tehuti/tehuti.c bdx_restore_mac(ndev, priv); ndev 855 drivers/net/ethernet/tehuti/tehuti.c priv->ndev->dev_addr[i * 2 + 1] = macAddress[i]; ndev 856 drivers/net/ethernet/tehuti/tehuti.c priv->ndev->dev_addr[i * 2] = macAddress[i] >> 8; ndev 1006 drivers/net/ethernet/tehuti/tehuti.c priv->rxf_fifo0.m.pktsz = priv->ndev->mtu + VLAN_ETH_HLEN; ndev 1010 drivers/net/ethernet/tehuti/tehuti.c netdev_err(priv->ndev, "Rx init failed\n"); ndev 1092 drivers/net/ethernet/tehuti/tehuti.c skb = netdev_alloc_skb(priv->ndev, f->m.pktsz + NET_IP_ALIGN); ndev 1136 drivers/net/ethernet/tehuti/tehuti.c priv->ndev->name, ndev 1194 drivers/net/ethernet/tehuti/tehuti.c struct net_device *ndev = priv->ndev; ndev 1248 drivers/net/ethernet/tehuti/tehuti.c ndev->stats.rx_errors++; ndev 1259 drivers/net/ethernet/tehuti/tehuti.c (skb2 = netdev_alloc_skb(priv->ndev, len + NET_IP_ALIGN))) { ndev 1275 drivers/net/ethernet/tehuti/tehuti.c ndev->stats.rx_bytes += len; ndev 1278 drivers/net/ethernet/tehuti/tehuti.c skb->protocol = eth_type_trans(skb, ndev); ndev 1292 drivers/net/ethernet/tehuti/tehuti.c ndev->stats.rx_packets += done; ndev 1568 drivers/net/ethernet/tehuti/tehuti.c netdev_err(priv->ndev, "Tx init failed\n"); ndev 1601 drivers/net/ethernet/tehuti/tehuti.c struct net_device *ndev) ndev 1603 drivers/net/ethernet/tehuti/tehuti.c struct bdx_priv *priv = netdev_priv(ndev); ndev 1690 drivers/net/ethernet/tehuti/tehuti.c netif_trans_update(ndev); /* NETIF_F_LLTX driver :( */ ndev 1692 drivers/net/ethernet/tehuti/tehuti.c ndev->stats.tx_packets++; ndev 1693 drivers/net/ethernet/tehuti/tehuti.c ndev->stats.tx_bytes += skb->len; ndev 1697 drivers/net/ethernet/tehuti/tehuti.c BDX_DRV_NAME, ndev->name, priv->tx_level); ndev 1698 drivers/net/ethernet/tehuti/tehuti.c netif_stop_queue(ndev); ndev 1759 drivers/net/ethernet/tehuti/tehuti.c if (unlikely(netif_queue_stopped(priv->ndev) && ndev 1760 drivers/net/ethernet/tehuti/tehuti.c netif_carrier_ok(priv->ndev) && ndev 1763 drivers/net/ethernet/tehuti/tehuti.c BDX_DRV_NAME, priv->ndev->name, priv->tx_level); ndev 1764 drivers/net/ethernet/tehuti/tehuti.c netif_wake_queue(priv->ndev); ndev 1899 drivers/net/ethernet/tehuti/tehuti.c struct net_device *ndev; ndev 1985 drivers/net/ethernet/tehuti/tehuti.c ndev = alloc_etherdev(sizeof(struct bdx_priv)); ndev 1986 drivers/net/ethernet/tehuti/tehuti.c if (!ndev) { ndev 1991 drivers/net/ethernet/tehuti/tehuti.c ndev->netdev_ops = &bdx_netdev_ops; ndev 1992 drivers/net/ethernet/tehuti/tehuti.c ndev->tx_queue_len = BDX_NDEV_TXQ_LEN; ndev 1994 drivers/net/ethernet/tehuti/tehuti.c bdx_set_ethtool_ops(ndev); /* ethtool interface */ ndev 1998 drivers/net/ethernet/tehuti/tehuti.c ndev->if_port = port; ndev 1999 drivers/net/ethernet/tehuti/tehuti.c ndev->features = NETIF_F_IP_CSUM | NETIF_F_SG | NETIF_F_TSO ndev 2003 drivers/net/ethernet/tehuti/tehuti.c ndev->hw_features = NETIF_F_IP_CSUM | NETIF_F_SG | ndev 2007 drivers/net/ethernet/tehuti/tehuti.c ndev->features |= NETIF_F_HIGHDMA; ndev 2010 drivers/net/ethernet/tehuti/tehuti.c priv = nic->priv[port] = netdev_priv(ndev); ndev 2015 drivers/net/ethernet/tehuti/tehuti.c priv->ndev = ndev; ndev 2019 drivers/net/ethernet/tehuti/tehuti.c netif_napi_add(ndev, &priv->napi, bdx_poll, 64); ndev 2044 drivers/net/ethernet/tehuti/tehuti.c ndev->features |= NETIF_F_LLTX; ndev 2047 drivers/net/ethernet/tehuti/tehuti.c ndev->min_mtu = ETH_ZLEN; ndev 2048 drivers/net/ethernet/tehuti/tehuti.c ndev->max_mtu = BDX_MAX_MTU; ndev 2057 drivers/net/ethernet/tehuti/tehuti.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 2058 drivers/net/ethernet/tehuti/tehuti.c err = register_netdev(ndev); ndev 2063 drivers/net/ethernet/tehuti/tehuti.c netif_carrier_off(ndev); ndev 2064 drivers/net/ethernet/tehuti/tehuti.c netif_stop_queue(ndev); ndev 2066 drivers/net/ethernet/tehuti/tehuti.c print_eth_id(ndev); ndev 2071 drivers/net/ethernet/tehuti/tehuti.c free_netdev(ndev); ndev 2403 drivers/net/ethernet/tehuti/tehuti.c struct net_device *ndev; ndev 2407 drivers/net/ethernet/tehuti/tehuti.c ndev = nic->priv[port]->ndev; ndev 2408 drivers/net/ethernet/tehuti/tehuti.c unregister_netdev(ndev); ndev 2409 drivers/net/ethernet/tehuti/tehuti.c free_netdev(ndev); ndev 243 drivers/net/ethernet/tehuti/tehuti.h struct net_device *ndev; ndev 90 drivers/net/ethernet/ti/cpsw.c static int cpsw_ndo_vlan_rx_add_vid(struct net_device *ndev, ndev 93 drivers/net/ethernet/ti/cpsw.c static void cpsw_set_promiscious(struct net_device *ndev, bool enable) ndev 95 drivers/net/ethernet/ti/cpsw.c struct cpsw_common *cpsw = ndev_to_cpsw(ndev); ndev 107 drivers/net/ethernet/ti/cpsw.c if (cpsw->slaves[i].ndev->flags & IFF_PROMISC) ndev 112 drivers/net/ethernet/ti/cpsw.c dev_err(&ndev->dev, "promiscuity not disabled as the other interface is still in promiscuity mode\n"); ndev 119 drivers/net/ethernet/ti/cpsw.c dev_dbg(&ndev->dev, "promiscuity enabled\n"); ndev 123 drivers/net/ethernet/ti/cpsw.c dev_dbg(&ndev->dev, "promiscuity disabled\n"); ndev 148 drivers/net/ethernet/ti/cpsw.c __hw_addr_ref_unsync_dev(&ndev->mc, ndev, NULL); ndev 152 drivers/net/ethernet/ti/cpsw.c dev_dbg(&ndev->dev, "promiscuity enabled\n"); ndev 164 drivers/net/ethernet/ti/cpsw.c dev_dbg(&ndev->dev, "promiscuity disabled\n"); ndev 177 drivers/net/ethernet/ti/cpsw.c static int cpsw_set_mc(struct net_device *ndev, const u8 *addr, ndev 180 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 224 drivers/net/ethernet/ti/cpsw.c cpsw_set_mc(sync_ctx->ndev, sync_ctx->addr, vid, 0); ndev 229 drivers/net/ethernet/ti/cpsw.c ret = cpsw_set_mc(sync_ctx->ndev, sync_ctx->addr, vid, 1); ndev 234 drivers/net/ethernet/ti/cpsw.c static int cpsw_add_mc_addr(struct net_device *ndev, const u8 *addr, int num) ndev 241 drivers/net/ethernet/ti/cpsw.c sync_ctx.ndev = ndev; ndev 244 drivers/net/ethernet/ti/cpsw.c ret = vlan_for_each(ndev, cpsw_update_vlan_mc, &sync_ctx); ndev 246 drivers/net/ethernet/ti/cpsw.c ret = cpsw_set_mc(ndev, addr, -1, 1); ndev 251 drivers/net/ethernet/ti/cpsw.c static int cpsw_del_mc_addr(struct net_device *ndev, const u8 *addr, int num) ndev 257 drivers/net/ethernet/ti/cpsw.c sync_ctx.ndev = ndev; ndev 260 drivers/net/ethernet/ti/cpsw.c vlan_for_each(ndev, cpsw_update_vlan_mc, &sync_ctx); ndev 262 drivers/net/ethernet/ti/cpsw.c cpsw_set_mc(ndev, addr, -1, 0); ndev 288 drivers/net/ethernet/ti/cpsw.c cpsw_set_mc(sync_ctx->ndev, sync_ctx->addr, vid, 0); ndev 292 drivers/net/ethernet/ti/cpsw.c static int cpsw_purge_all_mc(struct net_device *ndev, const u8 *addr, int num) ndev 297 drivers/net/ethernet/ti/cpsw.c sync_ctx.ndev = ndev; ndev 300 drivers/net/ethernet/ti/cpsw.c vlan_for_each(ndev, cpsw_purge_vlan_mc, &sync_ctx); ndev 302 drivers/net/ethernet/ti/cpsw.c cpsw_set_mc(ndev, addr, -1, 0); ndev 307 drivers/net/ethernet/ti/cpsw.c static void cpsw_ndo_set_rx_mode(struct net_device *ndev) ndev 309 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 316 drivers/net/ethernet/ti/cpsw.c if (ndev->flags & IFF_PROMISC) { ndev 318 drivers/net/ethernet/ti/cpsw.c cpsw_set_promiscious(ndev, true); ndev 323 drivers/net/ethernet/ti/cpsw.c cpsw_set_promiscious(ndev, false); ndev 328 drivers/net/ethernet/ti/cpsw.c ndev->flags & IFF_ALLMULTI, slave_port); ndev 331 drivers/net/ethernet/ti/cpsw.c __hw_addr_ref_sync_dev(&ndev->mc, ndev, cpsw_add_mc_addr, ndev 369 drivers/net/ethernet/ti/cpsw.c struct net_device *ndev; ndev 377 drivers/net/ethernet/ti/cpsw.c struct net_device *ndev; ndev 385 drivers/net/ethernet/ti/cpsw.c ndev = xmeta->ndev; ndev 390 drivers/net/ethernet/ti/cpsw.c ndev = skb->dev; ndev 392 drivers/net/ethernet/ti/cpsw.c cpts_tx_timestamp(ndev_to_cpsw(ndev)->cpts, skb); ndev 399 drivers/net/ethernet/ti/cpsw.c txq = netdev_get_tx_queue(ndev, ch); ndev 403 drivers/net/ethernet/ti/cpsw.c ndev->stats.tx_packets++; ndev 404 drivers/net/ethernet/ti/cpsw.c ndev->stats.tx_bytes += len; ndev 460 drivers/net/ethernet/ti/cpsw.c xmeta->ndev = priv->ndev; ndev 481 drivers/net/ethernet/ti/cpsw.c priv->ndev->stats.tx_dropped++; ndev 492 drivers/net/ethernet/ti/cpsw.c struct net_device *ndev = priv->ndev; ndev 519 drivers/net/ethernet/ti/cpsw.c if (xdp_do_redirect(ndev, xdp, prog)) ndev 533 drivers/net/ethernet/ti/cpsw.c trace_xdp_exception(ndev, prog, act); ndev 585 drivers/net/ethernet/ti/cpsw.c ret = xdp_rxq_info_reg(rxq, priv->ndev, ch); ndev 623 drivers/net/ethernet/ti/cpsw.c struct net_device *ndev; ndev 628 drivers/net/ethernet/ti/cpsw.c ndev = cpsw->slaves[i].ndev; ndev 629 drivers/net/ethernet/ti/cpsw.c if (!ndev) ndev 632 drivers/net/ethernet/ti/cpsw.c cpsw_ndev_destroy_xdp_rxq(netdev_priv(ndev), ch); ndev 642 drivers/net/ethernet/ti/cpsw.c struct net_device *ndev; ndev 654 drivers/net/ethernet/ti/cpsw.c ndev = cpsw->slaves[i].ndev; ndev 655 drivers/net/ethernet/ti/cpsw.c if (!ndev) ndev 658 drivers/net/ethernet/ti/cpsw.c ret = cpsw_ndev_create_xdp_rxq(netdev_priv(ndev), ch); ndev 677 drivers/net/ethernet/ti/cpsw.c struct cpsw_common *cpsw = ndev_to_cpsw(xmeta->ndev); ndev 681 drivers/net/ethernet/ti/cpsw.c struct net_device *ndev = xmeta->ndev; ndev 691 drivers/net/ethernet/ti/cpsw.c ndev = cpsw->slaves[--port].ndev; ndev 694 drivers/net/ethernet/ti/cpsw.c priv = netdev_priv(ndev); ndev 696 drivers/net/ethernet/ti/cpsw.c if (unlikely(status < 0) || unlikely(!netif_running(ndev))) { ndev 718 drivers/net/ethernet/ti/cpsw.c ndev->stats.rx_dropped++; ndev 753 drivers/net/ethernet/ti/cpsw.c ndev->stats.rx_dropped++; ndev 760 drivers/net/ethernet/ti/cpsw.c skb->dev = ndev; ndev 765 drivers/net/ethernet/ti/cpsw.c skb->protocol = eth_type_trans(skb, ndev); ndev 771 drivers/net/ethernet/ti/cpsw.c ndev->stats.rx_bytes += len; ndev 772 drivers/net/ethernet/ti/cpsw.c ndev->stats.rx_packets++; ndev 776 drivers/net/ethernet/ti/cpsw.c xmeta->ndev = ndev; ndev 1159 drivers/net/ethernet/ti/cpsw.c static void cpsw_adjust_link(struct net_device *ndev) ndev 1161 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 1171 drivers/net/ethernet/ti/cpsw.c netif_carrier_on(ndev); ndev 1172 drivers/net/ethernet/ti/cpsw.c if (netif_running(ndev)) ndev 1173 drivers/net/ethernet/ti/cpsw.c netif_tx_wake_all_queues(ndev); ndev 1175 drivers/net/ethernet/ti/cpsw.c netif_carrier_off(ndev); ndev 1176 drivers/net/ethernet/ti/cpsw.c netif_tx_stop_all_queues(ndev); ndev 1193 drivers/net/ethernet/ti/cpsw.c cpsw_ale_add_mcast(cpsw->ale, priv->ndev->broadcast, ndev 1250 drivers/net/ethernet/ti/cpsw.c cpsw_ale_add_mcast(cpsw->ale, priv->ndev->broadcast, ndev 1254 drivers/net/ethernet/ti/cpsw.c phy = of_phy_connect(priv->ndev, slave->data->phy_node, ndev 1263 drivers/net/ethernet/ti/cpsw.c phy = phy_connect(priv->ndev, slave->data->phy_id, ndev 1305 drivers/net/ethernet/ti/cpsw.c if (priv->ndev->flags & IFF_ALLMULTI) ndev 1346 drivers/net/ethernet/ti/cpsw.c cpsw_ale_add_mcast(cpsw->ale, priv->ndev->broadcast, ndev 1372 drivers/net/ethernet/ti/cpsw.c xmeta->ndev = priv->ndev; ndev 1531 drivers/net/ethernet/ti/cpsw.c static int cpsw_set_cbs(struct net_device *ndev, ndev 1534 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 1541 drivers/net/ethernet/ti/cpsw.c tc = netdev_txq_to_tc(priv->ndev, qopt->queue); ndev 1547 drivers/net/ethernet/ti/cpsw.c fifo = cpsw_tc_to_fifo(tc, ndev->num_tc); ndev 1617 drivers/net/ethernet/ti/cpsw.c tc = netdev_get_prio_tc_map(priv->ndev, i); ndev 1635 drivers/net/ethernet/ti/cpsw.c cpsw_ndo_vlan_rx_add_vid(priv->ndev, 0, vid); ndev 1643 drivers/net/ethernet/ti/cpsw.c vlan_for_each(priv->ndev, cpsw_restore_vlans, priv); ndev 1652 drivers/net/ethernet/ti/cpsw.c static int cpsw_ndo_open(struct net_device *ndev) ndev 1654 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 1665 drivers/net/ethernet/ti/cpsw.c netif_carrier_off(ndev); ndev 1668 drivers/net/ethernet/ti/cpsw.c ret = netif_set_real_num_tx_queues(ndev, cpsw->tx_ch_num); ndev 1674 drivers/net/ethernet/ti/cpsw.c ret = netif_set_real_num_rx_queues(ndev, cpsw->rx_ch_num); ndev 1745 drivers/net/ethernet/ti/cpsw.c cpsw_set_coalesce(ndev, &coal); ndev 1762 drivers/net/ethernet/ti/cpsw.c netif_carrier_off(priv->ndev); ndev 1766 drivers/net/ethernet/ti/cpsw.c static int cpsw_ndo_stop(struct net_device *ndev) ndev 1768 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 1772 drivers/net/ethernet/ti/cpsw.c __hw_addr_ref_unsync_dev(&ndev->mc, ndev, cpsw_purge_all_mc); ndev 1773 drivers/net/ethernet/ti/cpsw.c netif_tx_stop_all_queues(priv->ndev); ndev 1774 drivers/net/ethernet/ti/cpsw.c netif_carrier_off(priv->ndev); ndev 1796 drivers/net/ethernet/ti/cpsw.c struct net_device *ndev) ndev 1798 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 1807 drivers/net/ethernet/ti/cpsw.c ndev->stats.tx_dropped++; ndev 1820 drivers/net/ethernet/ti/cpsw.c txq = netdev_get_tx_queue(ndev, q_idx); ndev 1844 drivers/net/ethernet/ti/cpsw.c ndev->stats.tx_dropped++; ndev 2038 drivers/net/ethernet/ti/cpsw.c static void cpsw_ndo_tx_timeout(struct net_device *ndev) ndev 2040 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 2045 drivers/net/ethernet/ti/cpsw.c ndev->stats.tx_errors++; ndev 2053 drivers/net/ethernet/ti/cpsw.c netif_trans_update(ndev); ndev 2054 drivers/net/ethernet/ti/cpsw.c netif_tx_wake_all_queues(ndev); ndev 2057 drivers/net/ethernet/ti/cpsw.c static int cpsw_ndo_set_mac_address(struct net_device *ndev, void *p) ndev 2059 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 2086 drivers/net/ethernet/ti/cpsw.c memcpy(ndev->dev_addr, priv->mac_addr, ETH_ALEN); ndev 2107 drivers/net/ethernet/ti/cpsw.c if (priv->ndev->flags & IFF_ALLMULTI) ndev 2113 drivers/net/ethernet/ti/cpsw.c if (priv->ndev->flags & IFF_ALLMULTI) ndev 2129 drivers/net/ethernet/ti/cpsw.c ret = cpsw_ale_add_mcast(cpsw->ale, priv->ndev->broadcast, ndev 2143 drivers/net/ethernet/ti/cpsw.c static int cpsw_ndo_vlan_rx_add_vid(struct net_device *ndev, ndev 2146 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 2181 drivers/net/ethernet/ti/cpsw.c static int cpsw_ndo_vlan_rx_kill_vid(struct net_device *ndev, ndev 2184 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 2210 drivers/net/ethernet/ti/cpsw.c ret |= cpsw_ale_del_mcast(cpsw->ale, priv->ndev->broadcast, ndev 2218 drivers/net/ethernet/ti/cpsw.c static int cpsw_ndo_set_tx_maxrate(struct net_device *ndev, int queue, u32 rate) ndev 2220 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 2227 drivers/net/ethernet/ti/cpsw.c ch_rate = netdev_get_tx_queue(ndev, queue)->tx_maxrate; ndev 2259 drivers/net/ethernet/ti/cpsw.c if (!slave->ndev) ndev 2262 drivers/net/ethernet/ti/cpsw.c netdev_get_tx_queue(slave->ndev, queue)->tx_maxrate = rate; ndev 2269 drivers/net/ethernet/ti/cpsw.c static int cpsw_set_mqprio(struct net_device *ndev, void *type_data) ndev 2272 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 2299 drivers/net/ethernet/ti/cpsw.c netdev_set_num_tc(ndev, num_tc); ndev 2303 drivers/net/ethernet/ti/cpsw.c netdev_set_tc_queue(ndev, i, count, offset); ndev 2309 drivers/net/ethernet/ti/cpsw.c netdev_reset_tc(ndev); ndev 2326 drivers/net/ethernet/ti/cpsw.c static int cpsw_ndo_setup_tc(struct net_device *ndev, enum tc_setup_type type, ndev 2331 drivers/net/ethernet/ti/cpsw.c return cpsw_set_cbs(ndev, type_data); ndev 2334 drivers/net/ethernet/ti/cpsw.c return cpsw_set_mqprio(ndev, type_data); ndev 2358 drivers/net/ethernet/ti/cpsw.c static int cpsw_ndo_bpf(struct net_device *ndev, struct netdev_bpf *bpf) ndev 2360 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 2374 drivers/net/ethernet/ti/cpsw.c static int cpsw_ndo_xdp_xmit(struct net_device *ndev, int n, ndev 2377 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 2400 drivers/net/ethernet/ti/cpsw.c static void cpsw_ndo_poll_controller(struct net_device *ndev) ndev 2402 drivers/net/ethernet/ti/cpsw.c struct cpsw_common *cpsw = ndev_to_cpsw(ndev); ndev 2431 drivers/net/ethernet/ti/cpsw.c static void cpsw_get_drvinfo(struct net_device *ndev, ndev 2434 drivers/net/ethernet/ti/cpsw.c struct cpsw_common *cpsw = ndev_to_cpsw(ndev); ndev 2442 drivers/net/ethernet/ti/cpsw.c static int cpsw_set_pauseparam(struct net_device *ndev, ndev 2445 drivers/net/ethernet/ti/cpsw.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 2455 drivers/net/ethernet/ti/cpsw.c static int cpsw_set_channels(struct net_device *ndev, ndev 2458 drivers/net/ethernet/ti/cpsw.c return cpsw_set_channels_common(ndev, chs, cpsw_rx_handler); ndev 2699 drivers/net/ethernet/ti/cpsw.c struct net_device *ndev; ndev 2703 drivers/net/ethernet/ti/cpsw.c ndev = devm_alloc_etherdev_mqs(cpsw->dev, sizeof(struct cpsw_priv), ndev 2705 drivers/net/ethernet/ti/cpsw.c if (!ndev) { ndev 2710 drivers/net/ethernet/ti/cpsw.c priv_sl2 = netdev_priv(ndev); ndev 2712 drivers/net/ethernet/ti/cpsw.c priv_sl2->ndev = ndev; ndev 2713 drivers/net/ethernet/ti/cpsw.c priv_sl2->dev = &ndev->dev; ndev 2726 drivers/net/ethernet/ti/cpsw.c memcpy(ndev->dev_addr, priv_sl2->mac_addr, ETH_ALEN); ndev 2729 drivers/net/ethernet/ti/cpsw.c cpsw->slaves[1].ndev = ndev; ndev 2730 drivers/net/ethernet/ti/cpsw.c ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER | NETIF_F_HW_VLAN_CTAG_RX; ndev 2732 drivers/net/ethernet/ti/cpsw.c ndev->netdev_ops = &cpsw_netdev_ops; ndev 2733 drivers/net/ethernet/ti/cpsw.c ndev->ethtool_ops = &cpsw_ethtool_ops; ndev 2736 drivers/net/ethernet/ti/cpsw.c SET_NETDEV_DEV(ndev, cpsw->dev); ndev 2737 drivers/net/ethernet/ti/cpsw.c ndev->dev.of_node = cpsw->slaves[1].data->slave_node; ndev 2738 drivers/net/ethernet/ti/cpsw.c ret = register_netdev(ndev); ndev 2764 drivers/net/ethernet/ti/cpsw.c struct net_device *ndev; ndev 2875 drivers/net/ethernet/ti/cpsw.c ndev = devm_alloc_etherdev_mqs(dev, sizeof(struct cpsw_priv), ndev 2877 drivers/net/ethernet/ti/cpsw.c if (!ndev) { ndev 2882 drivers/net/ethernet/ti/cpsw.c priv = netdev_priv(ndev); ndev 2884 drivers/net/ethernet/ti/cpsw.c priv->ndev = ndev; ndev 2897 drivers/net/ethernet/ti/cpsw.c memcpy(ndev->dev_addr, priv->mac_addr, ETH_ALEN); ndev 2899 drivers/net/ethernet/ti/cpsw.c cpsw->slaves[0].ndev = ndev; ndev 2901 drivers/net/ethernet/ti/cpsw.c ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER | NETIF_F_HW_VLAN_CTAG_RX; ndev 2903 drivers/net/ethernet/ti/cpsw.c ndev->netdev_ops = &cpsw_netdev_ops; ndev 2904 drivers/net/ethernet/ti/cpsw.c ndev->ethtool_ops = &cpsw_ethtool_ops; ndev 2905 drivers/net/ethernet/ti/cpsw.c netif_napi_add(ndev, &cpsw->napi_rx, ndev 2908 drivers/net/ethernet/ti/cpsw.c netif_tx_napi_add(ndev, &cpsw->napi_tx, ndev 2913 drivers/net/ethernet/ti/cpsw.c SET_NETDEV_DEV(ndev, dev); ndev 2914 drivers/net/ethernet/ti/cpsw.c ndev->dev.of_node = cpsw->slaves[0].data->slave_node; ndev 2915 drivers/net/ethernet/ti/cpsw.c ret = register_netdev(ndev); ndev 2961 drivers/net/ethernet/ti/cpsw.c unregister_netdev(ndev); ndev 2985 drivers/net/ethernet/ti/cpsw.c if (cpsw->slaves[i].ndev) ndev 2986 drivers/net/ethernet/ti/cpsw.c unregister_netdev(cpsw->slaves[i].ndev); ndev 3005 drivers/net/ethernet/ti/cpsw.c if (cpsw->slaves[i].ndev) ndev 3006 drivers/net/ethernet/ti/cpsw.c if (netif_running(cpsw->slaves[i].ndev)) ndev 3007 drivers/net/ethernet/ti/cpsw.c cpsw_ndo_stop(cpsw->slaves[i].ndev); ndev 3029 drivers/net/ethernet/ti/cpsw.c if (cpsw->slaves[i].ndev) ndev 3030 drivers/net/ethernet/ti/cpsw.c if (netif_running(cpsw->slaves[i].ndev)) ndev 3031 drivers/net/ethernet/ti/cpsw.c cpsw_ndo_open(cpsw->slaves[i].ndev); ndev 141 drivers/net/ethernet/ti/cpsw_ethtool.c u32 cpsw_get_msglevel(struct net_device *ndev) ndev 143 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 148 drivers/net/ethernet/ti/cpsw_ethtool.c void cpsw_set_msglevel(struct net_device *ndev, u32 value) ndev 150 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 155 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_get_coalesce(struct net_device *ndev, struct ethtool_coalesce *coal) ndev 157 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_common *cpsw = ndev_to_cpsw(ndev); ndev 163 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_set_coalesce(struct net_device *ndev, struct ethtool_coalesce *coal) ndev 165 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 220 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_get_sset_count(struct net_device *ndev, int sset) ndev 222 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_common *cpsw = ndev_to_cpsw(ndev); ndev 251 drivers/net/ethernet/ti/cpsw_ethtool.c void cpsw_get_strings(struct net_device *ndev, u32 stringset, u8 *data) ndev 253 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_common *cpsw = ndev_to_cpsw(ndev); ndev 271 drivers/net/ethernet/ti/cpsw_ethtool.c void cpsw_get_ethtool_stats(struct net_device *ndev, ndev 275 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_common *cpsw = ndev_to_cpsw(ndev); ndev 303 drivers/net/ethernet/ti/cpsw_ethtool.c void cpsw_get_pauseparam(struct net_device *ndev, ndev 306 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 313 drivers/net/ethernet/ti/cpsw_ethtool.c void cpsw_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) ndev 315 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 326 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) ndev 328 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 338 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_get_regs_len(struct net_device *ndev) ndev 340 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_common *cpsw = ndev_to_cpsw(ndev); ndev 345 drivers/net/ethernet/ti/cpsw_ethtool.c void cpsw_get_regs(struct net_device *ndev, struct ethtool_regs *regs, void *p) ndev 348 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_common *cpsw = ndev_to_cpsw(ndev); ndev 356 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_ethtool_op_begin(struct net_device *ndev) ndev 358 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 371 drivers/net/ethernet/ti/cpsw_ethtool.c void cpsw_ethtool_op_complete(struct net_device *ndev) ndev 373 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 381 drivers/net/ethernet/ti/cpsw_ethtool.c void cpsw_get_channels(struct net_device *ndev, struct ethtool_channels *ch) ndev 383 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_common *cpsw = ndev_to_cpsw(ndev); ndev 395 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_get_link_ksettings(struct net_device *ndev, ndev 398 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 409 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_set_link_ksettings(struct net_device *ndev, ndev 412 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 422 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_get_eee(struct net_device *ndev, struct ethtool_eee *edata) ndev 424 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 434 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_set_eee(struct net_device *ndev, struct ethtool_eee *edata) ndev 436 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 446 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_nway_reset(struct net_device *ndev) ndev 448 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 458 drivers/net/ethernet/ti/cpsw_ethtool.c static void cpsw_suspend_data_pass(struct net_device *ndev) ndev 460 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_common *cpsw = ndev_to_cpsw(ndev); ndev 469 drivers/net/ethernet/ti/cpsw_ethtool.c ndev = cpsw->slaves[i].ndev; ndev 470 drivers/net/ethernet/ti/cpsw_ethtool.c if (!(ndev && netif_running(ndev))) ndev 473 drivers/net/ethernet/ti/cpsw_ethtool.c netif_tx_stop_all_queues(ndev); ndev 483 drivers/net/ethernet/ti/cpsw_ethtool.c static int cpsw_resume_data_pass(struct net_device *ndev) ndev 485 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 501 drivers/net/ethernet/ti/cpsw_ethtool.c ndev = cpsw->slaves[i].ndev; ndev 502 drivers/net/ethernet/ti/cpsw_ethtool.c if (ndev && netif_running(ndev)) ndev 503 drivers/net/ethernet/ti/cpsw_ethtool.c netif_tx_start_all_queues(ndev); ndev 553 drivers/net/ethernet/ti/cpsw_ethtool.c queue = netdev_get_tx_queue(priv->ndev, *ch); ndev 583 drivers/net/ethernet/ti/cpsw_ethtool.c struct net_device *ndev; ndev 587 drivers/net/ethernet/ti/cpsw_ethtool.c ndev = cpsw->slaves[i].ndev; ndev 588 drivers/net/ethernet/ti/cpsw_ethtool.c if (ndev) ndev 589 drivers/net/ethernet/ti/cpsw_ethtool.c dev_close(ndev); ndev 593 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_set_channels_common(struct net_device *ndev, ndev 597 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 606 drivers/net/ethernet/ti/cpsw_ethtool.c cpsw_suspend_data_pass(ndev); ndev 619 drivers/net/ethernet/ti/cpsw_ethtool.c sl_ndev = cpsw->slaves[i].ndev; ndev 646 drivers/net/ethernet/ti/cpsw_ethtool.c ret = cpsw_resume_data_pass(ndev); ndev 655 drivers/net/ethernet/ti/cpsw_ethtool.c void cpsw_get_ringparam(struct net_device *ndev, ndev 658 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_priv *priv = netdev_priv(ndev); ndev 668 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_set_ringparam(struct net_device *ndev, ndev 671 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_common *cpsw = ndev_to_cpsw(ndev); ndev 685 drivers/net/ethernet/ti/cpsw_ethtool.c cpsw_suspend_data_pass(ndev); ndev 689 drivers/net/ethernet/ti/cpsw_ethtool.c if (cpsw_resume_data_pass(ndev)) ndev 702 drivers/net/ethernet/ti/cpsw_ethtool.c ret = cpsw_resume_data_pass(ndev); ndev 713 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_get_ts_info(struct net_device *ndev, struct ethtool_ts_info *info) ndev 715 drivers/net/ethernet/ti/cpsw_ethtool.c struct cpsw_common *cpsw = ndev_to_cpsw(ndev); ndev 735 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_get_ts_info(struct net_device *ndev, struct ethtool_ts_info *info) ndev 303 drivers/net/ethernet/ti/cpsw_priv.h struct net_device *ndev; ndev 354 drivers/net/ethernet/ti/cpsw_priv.h struct net_device *ndev; ndev 373 drivers/net/ethernet/ti/cpsw_priv.h #define ndev_to_cpsw(ndev) (((struct cpsw_priv *)netdev_priv(ndev))->cpsw) ndev 386 drivers/net/ethernet/ti/cpsw_priv.h struct net_device *ndev; ndev 404 drivers/net/ethernet/ti/cpsw_priv.h u32 cpsw_get_msglevel(struct net_device *ndev); ndev 405 drivers/net/ethernet/ti/cpsw_priv.h void cpsw_set_msglevel(struct net_device *ndev, u32 value); ndev 406 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_get_coalesce(struct net_device *ndev, struct ethtool_coalesce *coal); ndev 407 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_set_coalesce(struct net_device *ndev, struct ethtool_coalesce *coal); ndev 408 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_get_sset_count(struct net_device *ndev, int sset); ndev 409 drivers/net/ethernet/ti/cpsw_priv.h void cpsw_get_strings(struct net_device *ndev, u32 stringset, u8 *data); ndev 410 drivers/net/ethernet/ti/cpsw_priv.h void cpsw_get_ethtool_stats(struct net_device *ndev, ndev 412 drivers/net/ethernet/ti/cpsw_priv.h void cpsw_get_pauseparam(struct net_device *ndev, ndev 414 drivers/net/ethernet/ti/cpsw_priv.h void cpsw_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol); ndev 415 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol); ndev 416 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_get_regs_len(struct net_device *ndev); ndev 417 drivers/net/ethernet/ti/cpsw_priv.h void cpsw_get_regs(struct net_device *ndev, struct ethtool_regs *regs, void *p); ndev 418 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_ethtool_op_begin(struct net_device *ndev); ndev 419 drivers/net/ethernet/ti/cpsw_priv.h void cpsw_ethtool_op_complete(struct net_device *ndev); ndev 420 drivers/net/ethernet/ti/cpsw_priv.h void cpsw_get_channels(struct net_device *ndev, struct ethtool_channels *ch); ndev 421 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_get_link_ksettings(struct net_device *ndev, ndev 423 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_set_link_ksettings(struct net_device *ndev, ndev 425 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_get_eee(struct net_device *ndev, struct ethtool_eee *edata); ndev 426 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_set_eee(struct net_device *ndev, struct ethtool_eee *edata); ndev 427 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_nway_reset(struct net_device *ndev); ndev 428 drivers/net/ethernet/ti/cpsw_priv.h void cpsw_get_ringparam(struct net_device *ndev, ndev 430 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_set_ringparam(struct net_device *ndev, ndev 432 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_set_channels_common(struct net_device *ndev, ndev 435 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_get_ts_info(struct net_device *ndev, struct ethtool_ts_info *info); ndev 311 drivers/net/ethernet/ti/davinci_emac.c struct net_device *ndev; ndev 375 drivers/net/ethernet/ti/davinci_emac.c static void emac_get_drvinfo(struct net_device *ndev, ndev 390 drivers/net/ethernet/ti/davinci_emac.c static int emac_get_coalesce(struct net_device *ndev, ndev 393 drivers/net/ethernet/ti/davinci_emac.c struct emac_priv *priv = netdev_priv(ndev); ndev 408 drivers/net/ethernet/ti/davinci_emac.c static int emac_set_coalesce(struct net_device *ndev, ndev 411 drivers/net/ethernet/ti/davinci_emac.c struct emac_priv *priv = netdev_priv(ndev); ndev 506 drivers/net/ethernet/ti/davinci_emac.c struct net_device *ndev = priv->ndev; ndev 511 drivers/net/ethernet/ti/davinci_emac.c if (ndev->phydev) ndev 512 drivers/net/ethernet/ti/davinci_emac.c new_duplex = ndev->phydev->duplex; ndev 545 drivers/net/ethernet/ti/davinci_emac.c if (!netif_carrier_ok(ndev)) ndev 546 drivers/net/ethernet/ti/davinci_emac.c netif_carrier_on(ndev); ndev 548 drivers/net/ethernet/ti/davinci_emac.c if (netif_running(ndev) && netif_queue_stopped(ndev)) ndev 549 drivers/net/ethernet/ti/davinci_emac.c netif_wake_queue(ndev); ndev 552 drivers/net/ethernet/ti/davinci_emac.c if (netif_carrier_ok(ndev)) ndev 553 drivers/net/ethernet/ti/davinci_emac.c netif_carrier_off(ndev); ndev 554 drivers/net/ethernet/ti/davinci_emac.c if (!netif_queue_stopped(ndev)) ndev 555 drivers/net/ethernet/ti/davinci_emac.c netif_stop_queue(ndev); ndev 595 drivers/net/ethernet/ti/davinci_emac.c struct device *emac_dev = &priv->ndev->dev; ndev 680 drivers/net/ethernet/ti/davinci_emac.c struct device *emac_dev = &priv->ndev->dev; ndev 724 drivers/net/ethernet/ti/davinci_emac.c static void emac_dev_mcast_set(struct net_device *ndev) ndev 727 drivers/net/ethernet/ti/davinci_emac.c struct emac_priv *priv = netdev_priv(ndev); ndev 730 drivers/net/ethernet/ti/davinci_emac.c if (ndev->flags & IFF_PROMISC) { ndev 735 drivers/net/ethernet/ti/davinci_emac.c if ((ndev->flags & IFF_ALLMULTI) || ndev 736 drivers/net/ethernet/ti/davinci_emac.c netdev_mc_count(ndev) > EMAC_DEF_MAX_MULTICAST_ADDRESSES) { ndev 739 drivers/net/ethernet/ti/davinci_emac.c } else if (!netdev_mc_empty(ndev)) { ndev 745 drivers/net/ethernet/ti/davinci_emac.c netdev_for_each_mc_addr(ha, ndev) { ndev 841 drivers/net/ethernet/ti/davinci_emac.c struct net_device *ndev = (struct net_device *)dev_id; ndev 842 drivers/net/ethernet/ti/davinci_emac.c struct emac_priv *priv = netdev_priv(ndev); ndev 845 drivers/net/ethernet/ti/davinci_emac.c if (likely(netif_running(priv->ndev))) { ndev 856 drivers/net/ethernet/ti/davinci_emac.c struct sk_buff *skb = netdev_alloc_skb(priv->ndev, priv->rx_buf_size); ndev 866 drivers/net/ethernet/ti/davinci_emac.c struct net_device *ndev = skb->dev; ndev 867 drivers/net/ethernet/ti/davinci_emac.c struct emac_priv *priv = netdev_priv(ndev); ndev 868 drivers/net/ethernet/ti/davinci_emac.c struct device *emac_dev = &ndev->dev; ndev 872 drivers/net/ethernet/ti/davinci_emac.c if (unlikely(!netif_running(ndev))) { ndev 879 drivers/net/ethernet/ti/davinci_emac.c ndev->stats.rx_errors++; ndev 885 drivers/net/ethernet/ti/davinci_emac.c skb->protocol = eth_type_trans(skb, ndev); ndev 887 drivers/net/ethernet/ti/davinci_emac.c ndev->stats.rx_bytes += len; ndev 888 drivers/net/ethernet/ti/davinci_emac.c ndev->stats.rx_packets++; ndev 910 drivers/net/ethernet/ti/davinci_emac.c struct net_device *ndev = skb->dev; ndev 915 drivers/net/ethernet/ti/davinci_emac.c if (unlikely(netif_queue_stopped(ndev))) ndev 916 drivers/net/ethernet/ti/davinci_emac.c netif_wake_queue(ndev); ndev 917 drivers/net/ethernet/ti/davinci_emac.c ndev->stats.tx_packets++; ndev 918 drivers/net/ethernet/ti/davinci_emac.c ndev->stats.tx_bytes += len; ndev 932 drivers/net/ethernet/ti/davinci_emac.c static int emac_dev_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 934 drivers/net/ethernet/ti/davinci_emac.c struct device *emac_dev = &ndev->dev; ndev 936 drivers/net/ethernet/ti/davinci_emac.c struct emac_priv *priv = netdev_priv(ndev); ndev 966 drivers/net/ethernet/ti/davinci_emac.c netif_stop_queue(ndev); ndev 971 drivers/net/ethernet/ti/davinci_emac.c ndev->stats.tx_dropped++; ndev 972 drivers/net/ethernet/ti/davinci_emac.c netif_stop_queue(ndev); ndev 986 drivers/net/ethernet/ti/davinci_emac.c static void emac_dev_tx_timeout(struct net_device *ndev) ndev 988 drivers/net/ethernet/ti/davinci_emac.c struct emac_priv *priv = netdev_priv(ndev); ndev 989 drivers/net/ethernet/ti/davinci_emac.c struct device *emac_dev = &ndev->dev; ndev 994 drivers/net/ethernet/ti/davinci_emac.c ndev->stats.tx_errors++; ndev 1088 drivers/net/ethernet/ti/davinci_emac.c struct device *emac_dev = &priv->ndev->dev; ndev 1114 drivers/net/ethernet/ti/davinci_emac.c static int emac_dev_setmac_addr(struct net_device *ndev, void *addr) ndev 1116 drivers/net/ethernet/ti/davinci_emac.c struct emac_priv *priv = netdev_priv(ndev); ndev 1117 drivers/net/ethernet/ti/davinci_emac.c struct device *emac_dev = &priv->ndev->dev; ndev 1124 drivers/net/ethernet/ti/davinci_emac.c memcpy(priv->mac_addr, sa->sa_data, ndev->addr_len); ndev 1125 drivers/net/ethernet/ti/davinci_emac.c memcpy(ndev->dev_addr, sa->sa_data, ndev->addr_len); ndev 1128 drivers/net/ethernet/ti/davinci_emac.c if (netif_running(ndev)) { ndev 1226 drivers/net/ethernet/ti/davinci_emac.c struct net_device *ndev = priv->ndev; ndev 1227 drivers/net/ethernet/ti/davinci_emac.c struct device *emac_dev = &ndev->dev; ndev 1260 drivers/net/ethernet/ti/davinci_emac.c netif_stop_queue(ndev); ndev 1299 drivers/net/ethernet/ti/davinci_emac.c static void emac_poll_controller(struct net_device *ndev) ndev 1301 drivers/net/ethernet/ti/davinci_emac.c struct emac_priv *priv = netdev_priv(ndev); ndev 1304 drivers/net/ethernet/ti/davinci_emac.c emac_irq(ndev->irq, ndev); ndev 1309 drivers/net/ethernet/ti/davinci_emac.c static void emac_adjust_link(struct net_device *ndev) ndev 1311 drivers/net/ethernet/ti/davinci_emac.c struct emac_priv *priv = netdev_priv(ndev); ndev 1312 drivers/net/ethernet/ti/davinci_emac.c struct phy_device *phydev = ndev->phydev; ndev 1341 drivers/net/ethernet/ti/davinci_emac.c phy_print_status(ndev->phydev); ndev 1361 drivers/net/ethernet/ti/davinci_emac.c static int emac_devioctl(struct net_device *ndev, struct ifreq *ifrq, int cmd) ndev 1363 drivers/net/ethernet/ti/davinci_emac.c if (!(netif_running(ndev))) ndev 1368 drivers/net/ethernet/ti/davinci_emac.c if (ndev->phydev) ndev 1369 drivers/net/ethernet/ti/davinci_emac.c return phy_mii_ioctl(ndev->phydev, ifrq, cmd); ndev 1393 drivers/net/ethernet/ti/davinci_emac.c static int emac_dev_open(struct net_device *ndev) ndev 1395 drivers/net/ethernet/ti/davinci_emac.c struct device *emac_dev = &ndev->dev; ndev 1401 drivers/net/ethernet/ti/davinci_emac.c struct emac_priv *priv = netdev_priv(ndev); ndev 1413 drivers/net/ethernet/ti/davinci_emac.c netif_carrier_off(ndev); ndev 1415 drivers/net/ethernet/ti/davinci_emac.c ndev->dev_addr[cnt] = priv->mac_addr[cnt]; ndev 1441 drivers/net/ethernet/ti/davinci_emac.c if (request_irq(irq_num, emac_irq, 0, ndev->name, ndev 1442 drivers/net/ethernet/ti/davinci_emac.c ndev)) { ndev 1464 drivers/net/ethernet/ti/davinci_emac.c emac_set_coalesce(ndev, &coal); ndev 1470 drivers/net/ethernet/ti/davinci_emac.c phydev = of_phy_connect(ndev, priv->phy_node, ndev 1498 drivers/net/ethernet/ti/davinci_emac.c phydev = phy_connect(ndev, priv->phy_id, ndev 1526 drivers/net/ethernet/ti/davinci_emac.c dev_notice(emac_dev, "DaVinci EMAC: Opened %s\n", ndev->name); ndev 1547 drivers/net/ethernet/ti/davinci_emac.c free_irq(m, ndev); ndev 1563 drivers/net/ethernet/ti/davinci_emac.c static int emac_dev_stop(struct net_device *ndev) ndev 1568 drivers/net/ethernet/ti/davinci_emac.c struct emac_priv *priv = netdev_priv(ndev); ndev 1569 drivers/net/ethernet/ti/davinci_emac.c struct device *emac_dev = &ndev->dev; ndev 1572 drivers/net/ethernet/ti/davinci_emac.c netif_stop_queue(ndev); ndev 1575 drivers/net/ethernet/ti/davinci_emac.c netif_carrier_off(ndev); ndev 1580 drivers/net/ethernet/ti/davinci_emac.c if (ndev->phydev) ndev 1581 drivers/net/ethernet/ti/davinci_emac.c phy_disconnect(ndev->phydev); ndev 1586 drivers/net/ethernet/ti/davinci_emac.c free_irq(irq_num, priv->ndev); ndev 1591 drivers/net/ethernet/ti/davinci_emac.c dev_notice(emac_dev, "DaVinci EMAC: %s stopped\n", ndev->name); ndev 1605 drivers/net/ethernet/ti/davinci_emac.c static struct net_device_stats *emac_dev_getnetstats(struct net_device *ndev) ndev 1607 drivers/net/ethernet/ti/davinci_emac.c struct emac_priv *priv = netdev_priv(ndev); ndev 1617 drivers/net/ethernet/ti/davinci_emac.c return &ndev->stats; ndev 1629 drivers/net/ethernet/ti/davinci_emac.c ndev->stats.multicast += emac_read(EMAC_RXMCASTFRAMES); ndev 1632 drivers/net/ethernet/ti/davinci_emac.c ndev->stats.collisions += (emac_read(EMAC_TXCOLLISION) + ndev 1639 drivers/net/ethernet/ti/davinci_emac.c ndev->stats.rx_length_errors += (emac_read(EMAC_RXOVERSIZED) + ndev 1646 drivers/net/ethernet/ti/davinci_emac.c ndev->stats.rx_over_errors += (emac_read(EMAC_RXSOFOVERRUNS) + ndev 1651 drivers/net/ethernet/ti/davinci_emac.c ndev->stats.rx_fifo_errors += emac_read(EMAC_RXDMAOVERRUNS); ndev 1654 drivers/net/ethernet/ti/davinci_emac.c ndev->stats.tx_carrier_errors += ndev 1658 drivers/net/ethernet/ti/davinci_emac.c ndev->stats.tx_fifo_errors += emac_read(EMAC_TXUNDERRUN); ndev 1663 drivers/net/ethernet/ti/davinci_emac.c return &ndev->stats; ndev 1769 drivers/net/ethernet/ti/davinci_emac.c struct net_device *ndev; ndev 1789 drivers/net/ethernet/ti/davinci_emac.c ndev = alloc_etherdev(sizeof(struct emac_priv)); ndev 1790 drivers/net/ethernet/ti/davinci_emac.c if (!ndev) ndev 1793 drivers/net/ethernet/ti/davinci_emac.c platform_set_drvdata(pdev, ndev); ndev 1794 drivers/net/ethernet/ti/davinci_emac.c priv = netdev_priv(ndev); ndev 1796 drivers/net/ethernet/ti/davinci_emac.c priv->ndev = ndev; ndev 1841 drivers/net/ethernet/ti/davinci_emac.c ndev->base_addr = (unsigned long)priv->remap_addr; ndev 1894 drivers/net/ethernet/ti/davinci_emac.c ndev->irq = res->start; ndev 1898 drivers/net/ethernet/ti/davinci_emac.c ether_addr_copy(ndev->dev_addr, priv->mac_addr); ndev 1902 drivers/net/ethernet/ti/davinci_emac.c eth_hw_addr_random(ndev); ndev 1903 drivers/net/ethernet/ti/davinci_emac.c memcpy(priv->mac_addr, ndev->dev_addr, ndev->addr_len); ndev 1908 drivers/net/ethernet/ti/davinci_emac.c ndev->netdev_ops = &emac_netdev_ops; ndev 1909 drivers/net/ethernet/ti/davinci_emac.c ndev->ethtool_ops = ðtool_ops; ndev 1910 drivers/net/ethernet/ti/davinci_emac.c netif_napi_add(ndev, &priv->napi, emac_poll, EMAC_POLL_WEIGHT); ndev 1922 drivers/net/ethernet/ti/davinci_emac.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 1923 drivers/net/ethernet/ti/davinci_emac.c rc = register_netdev(ndev); ndev 1935 drivers/net/ethernet/ti/davinci_emac.c &priv->emac_base_phys, ndev->irq); ndev 1954 drivers/net/ethernet/ti/davinci_emac.c free_netdev(ndev); ndev 1967 drivers/net/ethernet/ti/davinci_emac.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1968 drivers/net/ethernet/ti/davinci_emac.c struct emac_priv *priv = netdev_priv(ndev); ndev 1971 drivers/net/ethernet/ti/davinci_emac.c dev_notice(&ndev->dev, "DaVinci EMAC: davinci_emac_remove()\n"); ndev 1979 drivers/net/ethernet/ti/davinci_emac.c unregister_netdev(ndev); ndev 1984 drivers/net/ethernet/ti/davinci_emac.c free_netdev(ndev); ndev 1991 drivers/net/ethernet/ti/davinci_emac.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1993 drivers/net/ethernet/ti/davinci_emac.c if (netif_running(ndev)) ndev 1994 drivers/net/ethernet/ti/davinci_emac.c emac_dev_stop(ndev); ndev 2001 drivers/net/ethernet/ti/davinci_emac.c struct net_device *ndev = dev_get_drvdata(dev); ndev 2003 drivers/net/ethernet/ti/davinci_emac.c if (netif_running(ndev)) ndev 2004 drivers/net/ethernet/ti/davinci_emac.c emac_dev_open(ndev); ndev 83 drivers/net/ethernet/ti/netcp.h struct net_device *ndev; ndev 199 drivers/net/ethernet/ti/netcp.h int (*attach)(void *inst_priv, struct net_device *ndev, ndev 202 drivers/net/ethernet/ti/netcp.h int (*open)(void *intf_priv, struct net_device *ndev); ndev 203 drivers/net/ethernet/ti/netcp.h int (*close)(void *intf_priv, struct net_device *ndev); ndev 225 drivers/net/ethernet/ti/netcp_core.c ret = register_netdev(netcp->ndev); ndev 323 drivers/net/ethernet/ti/netcp_core.c netcp_intf->ndev, interface, ndev 737 drivers/net/ethernet/ti/netcp_core.c skb->dev = netcp->ndev; ndev 768 drivers/net/ethernet/ti/netcp_core.c skb->protocol = eth_type_trans(skb, netcp->ndev); ndev 1039 drivers/net/ethernet/ti/netcp_core.c if (netif_subqueue_stopped(netcp->ndev, skb) && ndev 1040 drivers/net/ethernet/ti/netcp_core.c netif_running(netcp->ndev) && ndev 1045 drivers/net/ethernet/ti/netcp_core.c netif_wake_subqueue(netcp->ndev, subqueue); ndev 1265 drivers/net/ethernet/ti/netcp_core.c static int netcp_ndo_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 1267 drivers/net/ethernet/ti/netcp_core.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1292 drivers/net/ethernet/ti/netcp_core.c netif_stop_subqueue(ndev, subqueue); ndev 1305 drivers/net/ethernet/ti/netcp_core.c netif_stop_subqueue(ndev, subqueue); ndev 1516 drivers/net/ethernet/ti/netcp_core.c static void netcp_set_rx_mode(struct net_device *ndev) ndev 1518 drivers/net/ethernet/ti/netcp_core.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1522 drivers/net/ethernet/ti/netcp_core.c promisc = (ndev->flags & IFF_PROMISC || ndev 1523 drivers/net/ethernet/ti/netcp_core.c ndev->flags & IFF_ALLMULTI || ndev 1524 drivers/net/ethernet/ti/netcp_core.c netdev_mc_count(ndev) > NETCP_MAX_MCAST_ADDR); ndev 1531 drivers/net/ethernet/ti/netcp_core.c netcp_addr_add_mark(netcp, ndev->broadcast, ADDR_BCAST); ndev 1532 drivers/net/ethernet/ti/netcp_core.c for_each_dev_addr(ndev, ndev_addr) ndev 1534 drivers/net/ethernet/ti/netcp_core.c netdev_for_each_uc_addr(ndev_addr, ndev) ndev 1536 drivers/net/ethernet/ti/netcp_core.c netdev_for_each_mc_addr(ndev_addr, ndev) ndev 1583 drivers/net/ethernet/ti/netcp_core.c static int netcp_setup_navigator_resources(struct net_device *ndev) ndev 1585 drivers/net/ethernet/ti/netcp_core.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1594 drivers/net/ethernet/ti/netcp_core.c snprintf(name, sizeof(name), "rx-pool-%s", ndev->name); ndev 1603 drivers/net/ethernet/ti/netcp_core.c snprintf(name, sizeof(name), "tx-pool-%s", ndev->name); ndev 1613 drivers/net/ethernet/ti/netcp_core.c snprintf(name, sizeof(name), "tx-compl-%s", ndev->name); ndev 1633 drivers/net/ethernet/ti/netcp_core.c snprintf(name, sizeof(name), "rx-compl-%s", ndev->name); ndev 1655 drivers/net/ethernet/ti/netcp_core.c snprintf(name, sizeof(name), "rx-fdq-%s-%d", ndev->name, i); ndev 1698 drivers/net/ethernet/ti/netcp_core.c static int netcp_ndo_open(struct net_device *ndev) ndev 1700 drivers/net/ethernet/ti/netcp_core.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1705 drivers/net/ethernet/ti/netcp_core.c netif_carrier_off(ndev); ndev 1706 drivers/net/ethernet/ti/netcp_core.c ret = netcp_setup_navigator_resources(ndev); ndev 1715 drivers/net/ethernet/ti/netcp_core.c ret = module->open(intf_modpriv->module_priv, ndev); ndev 1728 drivers/net/ethernet/ti/netcp_core.c netif_tx_wake_all_queues(ndev); ndev 1729 drivers/net/ethernet/ti/netcp_core.c dev_dbg(netcp->ndev_dev, "netcp device %s opened\n", ndev->name); ndev 1736 drivers/net/ethernet/ti/netcp_core.c module->close(intf_modpriv->module_priv, ndev); ndev 1745 drivers/net/ethernet/ti/netcp_core.c static int netcp_ndo_stop(struct net_device *ndev) ndev 1747 drivers/net/ethernet/ti/netcp_core.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1752 drivers/net/ethernet/ti/netcp_core.c netif_tx_stop_all_queues(ndev); ndev 1753 drivers/net/ethernet/ti/netcp_core.c netif_carrier_off(ndev); ndev 1764 drivers/net/ethernet/ti/netcp_core.c err = module->close(intf_modpriv->module_priv, ndev); ndev 1781 drivers/net/ethernet/ti/netcp_core.c dev_dbg(netcp->ndev_dev, "netcp device %s stopped\n", ndev->name); ndev 1785 drivers/net/ethernet/ti/netcp_core.c static int netcp_ndo_ioctl(struct net_device *ndev, ndev 1788 drivers/net/ethernet/ti/netcp_core.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1793 drivers/net/ethernet/ti/netcp_core.c if (!netif_running(ndev)) ndev 1814 drivers/net/ethernet/ti/netcp_core.c static void netcp_ndo_tx_timeout(struct net_device *ndev) ndev 1816 drivers/net/ethernet/ti/netcp_core.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1821 drivers/net/ethernet/ti/netcp_core.c netif_trans_update(ndev); ndev 1822 drivers/net/ethernet/ti/netcp_core.c netif_tx_wake_all_queues(ndev); ndev 1825 drivers/net/ethernet/ti/netcp_core.c static int netcp_rx_add_vid(struct net_device *ndev, __be16 proto, u16 vid) ndev 1827 drivers/net/ethernet/ti/netcp_core.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1852 drivers/net/ethernet/ti/netcp_core.c static int netcp_rx_kill_vid(struct net_device *ndev, __be16 proto, u16 vid) ndev 1854 drivers/net/ethernet/ti/netcp_core.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1912 drivers/net/ethernet/ti/netcp_core.c netcp_get_stats(struct net_device *ndev, struct rtnl_link_stats64 *stats) ndev 1914 drivers/net/ethernet/ti/netcp_core.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1964 drivers/net/ethernet/ti/netcp_core.c struct net_device *ndev; ndev 1974 drivers/net/ethernet/ti/netcp_core.c ndev = alloc_etherdev_mqs(sizeof(*netcp), 1, 1); ndev 1975 drivers/net/ethernet/ti/netcp_core.c if (!ndev) { ndev 1980 drivers/net/ethernet/ti/netcp_core.c ndev->features |= NETIF_F_SG; ndev 1981 drivers/net/ethernet/ti/netcp_core.c ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; ndev 1982 drivers/net/ethernet/ti/netcp_core.c ndev->hw_features = ndev->features; ndev 1983 drivers/net/ethernet/ti/netcp_core.c ndev->vlan_features |= NETIF_F_SG; ndev 1986 drivers/net/ethernet/ti/netcp_core.c ndev->min_mtu = ETH_MIN_MTU; ndev 1987 drivers/net/ethernet/ti/netcp_core.c ndev->max_mtu = NETCP_MAX_FRAME_SIZE - (ETH_HLEN + ETH_FCS_LEN); ndev 1989 drivers/net/ethernet/ti/netcp_core.c netcp = netdev_priv(ndev); ndev 1999 drivers/net/ethernet/ti/netcp_core.c netcp->ndev = ndev; ndev 2000 drivers/net/ethernet/ti/netcp_core.c netcp->ndev_dev = &ndev->dev; ndev 2032 drivers/net/ethernet/ti/netcp_core.c ether_addr_copy(ndev->dev_addr, efuse_mac_addr); ndev 2034 drivers/net/ethernet/ti/netcp_core.c eth_random_addr(ndev->dev_addr); ndev 2041 drivers/net/ethernet/ti/netcp_core.c ether_addr_copy(ndev->dev_addr, mac_addr); ndev 2043 drivers/net/ethernet/ti/netcp_core.c eth_random_addr(ndev->dev_addr); ndev 2102 drivers/net/ethernet/ti/netcp_core.c netif_napi_add(ndev, &netcp->rx_napi, netcp_rx_poll, NETCP_NAPI_WEIGHT); ndev 2103 drivers/net/ethernet/ti/netcp_core.c netif_tx_napi_add(ndev, &netcp->tx_napi, netcp_tx_poll, NETCP_NAPI_WEIGHT); ndev 2106 drivers/net/ethernet/ti/netcp_core.c ndev->dev_id = 0; ndev 2107 drivers/net/ethernet/ti/netcp_core.c ndev->watchdog_timeo = NETCP_TX_TIMEOUT; ndev 2108 drivers/net/ethernet/ti/netcp_core.c ndev->netdev_ops = &netcp_netdev_ops; ndev 2109 drivers/net/ethernet/ti/netcp_core.c SET_NETDEV_DEV(ndev, dev); ndev 2115 drivers/net/ethernet/ti/netcp_core.c free_netdev(ndev); ndev 2120 drivers/net/ethernet/ti/netcp_core.c struct net_device *ndev) ndev 2123 drivers/net/ethernet/ti/netcp_core.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 2127 drivers/net/ethernet/ti/netcp_core.c ndev->name); ndev 2140 drivers/net/ethernet/ti/netcp_core.c ndev->name); ndev 2145 drivers/net/ethernet/ti/netcp_core.c unregister_netdev(ndev); ndev 2146 drivers/net/ethernet/ti/netcp_core.c free_netdev(ndev); ndev 2223 drivers/net/ethernet/ti/netcp_core.c netcp_delete_interface(netcp_device, netcp_intf->ndev); ndev 2254 drivers/net/ethernet/ti/netcp_core.c netcp_delete_interface(netcp_device, netcp_intf->ndev); ndev 763 drivers/net/ethernet/ti/netcp_ethss.c struct net_device *ndev; ndev 1738 drivers/net/ethernet/ti/netcp_ethss.c static void keystone_get_drvinfo(struct net_device *ndev, ndev 1745 drivers/net/ethernet/ti/netcp_ethss.c static u32 keystone_get_msglevel(struct net_device *ndev) ndev 1747 drivers/net/ethernet/ti/netcp_ethss.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1752 drivers/net/ethernet/ti/netcp_ethss.c static void keystone_set_msglevel(struct net_device *ndev, u32 value) ndev 1754 drivers/net/ethernet/ti/netcp_ethss.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1770 drivers/net/ethernet/ti/netcp_ethss.c static void keystone_get_stat_strings(struct net_device *ndev, ndev 1773 drivers/net/ethernet/ti/netcp_ethss.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1796 drivers/net/ethernet/ti/netcp_ethss.c static int keystone_get_sset_count(struct net_device *ndev, int stringset) ndev 1798 drivers/net/ethernet/ti/netcp_ethss.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1912 drivers/net/ethernet/ti/netcp_ethss.c static void keystone_get_ethtool_stats(struct net_device *ndev, ndev 1916 drivers/net/ethernet/ti/netcp_ethss.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1933 drivers/net/ethernet/ti/netcp_ethss.c static int keystone_get_link_ksettings(struct net_device *ndev, ndev 1936 drivers/net/ethernet/ti/netcp_ethss.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1937 drivers/net/ethernet/ti/netcp_ethss.c struct phy_device *phy = ndev->phydev; ndev 1956 drivers/net/ethernet/ti/netcp_ethss.c static int keystone_set_link_ksettings(struct net_device *ndev, ndev 1959 drivers/net/ethernet/ti/netcp_ethss.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 1960 drivers/net/ethernet/ti/netcp_ethss.c struct phy_device *phy = ndev->phydev; ndev 2004 drivers/net/ethernet/ti/netcp_ethss.c static int keystone_get_ts_info(struct net_device *ndev, ndev 2007 drivers/net/ethernet/ti/netcp_ethss.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 2032 drivers/net/ethernet/ti/netcp_ethss.c static int keystone_get_ts_info(struct net_device *ndev, ndev 2062 drivers/net/ethernet/ti/netcp_ethss.c struct net_device *ndev = gbe_intf->ndev; ndev 2064 drivers/net/ethernet/ti/netcp_ethss.c writel(mac_hi(ndev->dev_addr), GBE_REG_ADDR(slave, port_regs, sa_hi)); ndev 2065 drivers/net/ethernet/ti/netcp_ethss.c writel(mac_lo(ndev->dev_addr), GBE_REG_ADDR(slave, port_regs, sa_lo)); ndev 2077 drivers/net/ethernet/ti/netcp_ethss.c struct net_device *ndev, ndev 2101 drivers/net/ethernet/ti/netcp_ethss.c if (ndev && slave->open && ndev 2105 drivers/net/ethernet/ti/netcp_ethss.c netif_carrier_on(ndev); ndev 2112 drivers/net/ethernet/ti/netcp_ethss.c if (ndev && ndev 2116 drivers/net/ethernet/ti/netcp_ethss.c netif_carrier_off(ndev); ndev 2140 drivers/net/ethernet/ti/netcp_ethss.c struct net_device *ndev) ndev 2159 drivers/net/ethernet/ti/netcp_ethss.c netcp_ethss_link_state_action(gbe_dev, ndev, slave, ndev 2163 drivers/net/ethernet/ti/netcp_ethss.c static void xgbe_adjust_link(struct net_device *ndev) ndev 2165 drivers/net/ethernet/ti/netcp_ethss.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 2173 drivers/net/ethernet/ti/netcp_ethss.c ndev); ndev 2176 drivers/net/ethernet/ti/netcp_ethss.c static void gbe_adjust_link(struct net_device *ndev) ndev 2178 drivers/net/ethernet/ti/netcp_ethss.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 2186 drivers/net/ethernet/ti/netcp_ethss.c ndev); ndev 2189 drivers/net/ethernet/ti/netcp_ethss.c static void gbe_adjust_link_sec_slaves(struct net_device *ndev) ndev 2191 drivers/net/ethernet/ti/netcp_ethss.c struct gbe_priv *gbe_dev = netdev_priv(ndev); ndev 2267 drivers/net/ethernet/ti/netcp_ethss.c cpsw_ale_del_mcast(gbe_dev->ale, intf->ndev->broadcast, ndev 2314 drivers/net/ethernet/ti/netcp_ethss.c cpsw_ale_add_mcast(priv->ale, gbe_intf->ndev->broadcast, ndev 2346 drivers/net/ethernet/ti/netcp_ethss.c slave->phy = of_phy_connect(gbe_intf->ndev, ndev 2858 drivers/net/ethernet/ti/netcp_ethss.c gbe_intf->ndev); ndev 2896 drivers/net/ethernet/ti/netcp_ethss.c static int gbe_open(void *intf_priv, struct net_device *ndev) ndev 2900 drivers/net/ethernet/ti/netcp_ethss.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 2952 drivers/net/ethernet/ti/netcp_ethss.c netcp_ethss_update_link_state(gbe_dev, slave, ndev); ndev 2963 drivers/net/ethernet/ti/netcp_ethss.c static int gbe_close(void *intf_priv, struct net_device *ndev) ndev 2966 drivers/net/ethernet/ti/netcp_ethss.c struct netcp_intf *netcp = netdev_priv(ndev); ndev 3750 drivers/net/ethernet/ti/netcp_ethss.c static int gbe_attach(void *inst_priv, struct net_device *ndev, ndev 3766 drivers/net/ethernet/ti/netcp_ethss.c gbe_intf->ndev = ndev; ndev 3784 drivers/net/ethernet/ti/netcp_ethss.c ndev->ethtool_ops = &keystone_ethtool_ops; ndev 3801 drivers/net/ethernet/ti/netcp_ethss.c gbe_intf->ndev->ethtool_ops = NULL; ndev 26 drivers/net/ethernet/wiznet/w5100-spi.c static int w5100_spi_read(struct net_device *ndev, u32 addr) ndev 28 drivers/net/ethernet/wiznet/w5100-spi.c struct spi_device *spi = to_spi_device(ndev->dev.parent); ndev 38 drivers/net/ethernet/wiznet/w5100-spi.c static int w5100_spi_write(struct net_device *ndev, u32 addr, u8 data) ndev 40 drivers/net/ethernet/wiznet/w5100-spi.c struct spi_device *spi = to_spi_device(ndev->dev.parent); ndev 46 drivers/net/ethernet/wiznet/w5100-spi.c static int w5100_spi_read16(struct net_device *ndev, u32 addr) ndev 51 drivers/net/ethernet/wiznet/w5100-spi.c ret = w5100_spi_read(ndev, addr); ndev 55 drivers/net/ethernet/wiznet/w5100-spi.c ret = w5100_spi_read(ndev, addr + 1); ndev 60 drivers/net/ethernet/wiznet/w5100-spi.c static int w5100_spi_write16(struct net_device *ndev, u32 addr, u16 data) ndev 64 drivers/net/ethernet/wiznet/w5100-spi.c ret = w5100_spi_write(ndev, addr, data >> 8); ndev 68 drivers/net/ethernet/wiznet/w5100-spi.c return w5100_spi_write(ndev, addr + 1, data & 0xff); ndev 71 drivers/net/ethernet/wiznet/w5100-spi.c static int w5100_spi_readbulk(struct net_device *ndev, u32 addr, u8 *buf, ndev 77 drivers/net/ethernet/wiznet/w5100-spi.c int ret = w5100_spi_read(ndev, addr + i); ndev 87 drivers/net/ethernet/wiznet/w5100-spi.c static int w5100_spi_writebulk(struct net_device *ndev, u32 addr, const u8 *buf, ndev 93 drivers/net/ethernet/wiznet/w5100-spi.c int ret = w5100_spi_write(ndev, addr + i, buf[i]); ndev 125 drivers/net/ethernet/wiznet/w5100-spi.c static struct w5200_spi_priv *w5200_spi_priv(struct net_device *ndev) ndev 127 drivers/net/ethernet/wiznet/w5100-spi.c return w5100_ops_priv(ndev); ndev 130 drivers/net/ethernet/wiznet/w5100-spi.c static int w5200_spi_init(struct net_device *ndev) ndev 132 drivers/net/ethernet/wiznet/w5100-spi.c struct w5200_spi_priv *spi_priv = w5200_spi_priv(ndev); ndev 139 drivers/net/ethernet/wiznet/w5100-spi.c static int w5200_spi_read(struct net_device *ndev, u32 addr) ndev 141 drivers/net/ethernet/wiznet/w5100-spi.c struct spi_device *spi = to_spi_device(ndev->dev.parent); ndev 151 drivers/net/ethernet/wiznet/w5100-spi.c static int w5200_spi_write(struct net_device *ndev, u32 addr, u8 data) ndev 153 drivers/net/ethernet/wiznet/w5100-spi.c struct spi_device *spi = to_spi_device(ndev->dev.parent); ndev 159 drivers/net/ethernet/wiznet/w5100-spi.c static int w5200_spi_read16(struct net_device *ndev, u32 addr) ndev 161 drivers/net/ethernet/wiznet/w5100-spi.c struct spi_device *spi = to_spi_device(ndev->dev.parent); ndev 171 drivers/net/ethernet/wiznet/w5100-spi.c static int w5200_spi_write16(struct net_device *ndev, u32 addr, u16 data) ndev 173 drivers/net/ethernet/wiznet/w5100-spi.c struct spi_device *spi = to_spi_device(ndev->dev.parent); ndev 183 drivers/net/ethernet/wiznet/w5100-spi.c static int w5200_spi_readbulk(struct net_device *ndev, u32 addr, u8 *buf, ndev 186 drivers/net/ethernet/wiznet/w5100-spi.c struct spi_device *spi = to_spi_device(ndev->dev.parent); ndev 187 drivers/net/ethernet/wiznet/w5100-spi.c struct w5200_spi_priv *spi_priv = w5200_spi_priv(ndev); ndev 213 drivers/net/ethernet/wiznet/w5100-spi.c static int w5200_spi_writebulk(struct net_device *ndev, u32 addr, const u8 *buf, ndev 216 drivers/net/ethernet/wiznet/w5100-spi.c struct spi_device *spi = to_spi_device(ndev->dev.parent); ndev 217 drivers/net/ethernet/wiznet/w5100-spi.c struct w5200_spi_priv *spi_priv = w5200_spi_priv(ndev); ndev 270 drivers/net/ethernet/wiznet/w5100-spi.c static struct w5500_spi_priv *w5500_spi_priv(struct net_device *ndev) ndev 272 drivers/net/ethernet/wiznet/w5100-spi.c return w5100_ops_priv(ndev); ndev 275 drivers/net/ethernet/wiznet/w5100-spi.c static int w5500_spi_init(struct net_device *ndev) ndev 277 drivers/net/ethernet/wiznet/w5100-spi.c struct w5500_spi_priv *spi_priv = w5500_spi_priv(ndev); ndev 284 drivers/net/ethernet/wiznet/w5100-spi.c static int w5500_spi_read(struct net_device *ndev, u32 addr) ndev 286 drivers/net/ethernet/wiznet/w5100-spi.c struct spi_device *spi = to_spi_device(ndev->dev.parent); ndev 300 drivers/net/ethernet/wiznet/w5100-spi.c static int w5500_spi_write(struct net_device *ndev, u32 addr, u8 data) ndev 302 drivers/net/ethernet/wiznet/w5100-spi.c struct spi_device *spi = to_spi_device(ndev->dev.parent); ndev 313 drivers/net/ethernet/wiznet/w5100-spi.c static int w5500_spi_read16(struct net_device *ndev, u32 addr) ndev 315 drivers/net/ethernet/wiznet/w5100-spi.c struct spi_device *spi = to_spi_device(ndev->dev.parent); ndev 329 drivers/net/ethernet/wiznet/w5100-spi.c static int w5500_spi_write16(struct net_device *ndev, u32 addr, u16 data) ndev 331 drivers/net/ethernet/wiznet/w5100-spi.c struct spi_device *spi = to_spi_device(ndev->dev.parent); ndev 343 drivers/net/ethernet/wiznet/w5100-spi.c static int w5500_spi_readbulk(struct net_device *ndev, u32 addr, u8 *buf, ndev 346 drivers/net/ethernet/wiznet/w5100-spi.c struct spi_device *spi = to_spi_device(ndev->dev.parent); ndev 347 drivers/net/ethernet/wiznet/w5100-spi.c struct w5500_spi_priv *spi_priv = w5500_spi_priv(ndev); ndev 372 drivers/net/ethernet/wiznet/w5100-spi.c static int w5500_spi_writebulk(struct net_device *ndev, u32 addr, const u8 *buf, ndev 375 drivers/net/ethernet/wiznet/w5100-spi.c struct spi_device *spi = to_spi_device(ndev->dev.parent); ndev 376 drivers/net/ethernet/wiznet/w5100-spi.c struct w5500_spi_priv *spi_priv = w5500_spi_priv(ndev); ndev 163 drivers/net/ethernet/wiznet/w5100.c struct net_device *ndev; ndev 192 drivers/net/ethernet/wiznet/w5100.c static inline void __iomem *w5100_mmio(struct net_device *ndev) ndev 194 drivers/net/ethernet/wiznet/w5100.c struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); ndev 205 drivers/net/ethernet/wiznet/w5100.c static inline int w5100_read_direct(struct net_device *ndev, u32 addr) ndev 207 drivers/net/ethernet/wiznet/w5100.c return ioread8(w5100_mmio(ndev) + (addr << CONFIG_WIZNET_BUS_SHIFT)); ndev 210 drivers/net/ethernet/wiznet/w5100.c static inline int __w5100_write_direct(struct net_device *ndev, u32 addr, ndev 213 drivers/net/ethernet/wiznet/w5100.c iowrite8(data, w5100_mmio(ndev) + (addr << CONFIG_WIZNET_BUS_SHIFT)); ndev 218 drivers/net/ethernet/wiznet/w5100.c static inline int w5100_write_direct(struct net_device *ndev, u32 addr, u8 data) ndev 220 drivers/net/ethernet/wiznet/w5100.c __w5100_write_direct(ndev, addr, data); ndev 225 drivers/net/ethernet/wiznet/w5100.c static int w5100_read16_direct(struct net_device *ndev, u32 addr) ndev 228 drivers/net/ethernet/wiznet/w5100.c data = w5100_read_direct(ndev, addr) << 8; ndev 229 drivers/net/ethernet/wiznet/w5100.c data |= w5100_read_direct(ndev, addr + 1); ndev 233 drivers/net/ethernet/wiznet/w5100.c static int w5100_write16_direct(struct net_device *ndev, u32 addr, u16 data) ndev 235 drivers/net/ethernet/wiznet/w5100.c __w5100_write_direct(ndev, addr, data >> 8); ndev 236 drivers/net/ethernet/wiznet/w5100.c __w5100_write_direct(ndev, addr + 1, data); ndev 241 drivers/net/ethernet/wiznet/w5100.c static int w5100_readbulk_direct(struct net_device *ndev, u32 addr, u8 *buf, ndev 247 drivers/net/ethernet/wiznet/w5100.c *buf++ = w5100_read_direct(ndev, addr); ndev 252 drivers/net/ethernet/wiznet/w5100.c static int w5100_writebulk_direct(struct net_device *ndev, u32 addr, ndev 258 drivers/net/ethernet/wiznet/w5100.c __w5100_write_direct(ndev, addr, *buf++); ndev 263 drivers/net/ethernet/wiznet/w5100.c static int w5100_mmio_init(struct net_device *ndev) ndev 265 drivers/net/ethernet/wiznet/w5100.c struct platform_device *pdev = to_platform_device(ndev->dev.parent); ndev 266 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 267 drivers/net/ethernet/wiznet/w5100.c struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); ndev 277 drivers/net/ethernet/wiznet/w5100.c netdev_info(ndev, "at 0x%llx irq %d\n", (u64)mem->start, priv->irq); ndev 304 drivers/net/ethernet/wiznet/w5100.c static int w5100_read_indirect(struct net_device *ndev, u32 addr) ndev 306 drivers/net/ethernet/wiznet/w5100.c struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); ndev 311 drivers/net/ethernet/wiznet/w5100.c w5100_write16_direct(ndev, W5100_IDM_AR, addr); ndev 312 drivers/net/ethernet/wiznet/w5100.c data = w5100_read_direct(ndev, W5100_IDM_DR); ndev 318 drivers/net/ethernet/wiznet/w5100.c static int w5100_write_indirect(struct net_device *ndev, u32 addr, u8 data) ndev 320 drivers/net/ethernet/wiznet/w5100.c struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); ndev 324 drivers/net/ethernet/wiznet/w5100.c w5100_write16_direct(ndev, W5100_IDM_AR, addr); ndev 325 drivers/net/ethernet/wiznet/w5100.c w5100_write_direct(ndev, W5100_IDM_DR, data); ndev 331 drivers/net/ethernet/wiznet/w5100.c static int w5100_read16_indirect(struct net_device *ndev, u32 addr) ndev 333 drivers/net/ethernet/wiznet/w5100.c struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); ndev 338 drivers/net/ethernet/wiznet/w5100.c w5100_write16_direct(ndev, W5100_IDM_AR, addr); ndev 339 drivers/net/ethernet/wiznet/w5100.c data = w5100_read_direct(ndev, W5100_IDM_DR) << 8; ndev 340 drivers/net/ethernet/wiznet/w5100.c data |= w5100_read_direct(ndev, W5100_IDM_DR); ndev 346 drivers/net/ethernet/wiznet/w5100.c static int w5100_write16_indirect(struct net_device *ndev, u32 addr, u16 data) ndev 348 drivers/net/ethernet/wiznet/w5100.c struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); ndev 352 drivers/net/ethernet/wiznet/w5100.c w5100_write16_direct(ndev, W5100_IDM_AR, addr); ndev 353 drivers/net/ethernet/wiznet/w5100.c __w5100_write_direct(ndev, W5100_IDM_DR, data >> 8); ndev 354 drivers/net/ethernet/wiznet/w5100.c w5100_write_direct(ndev, W5100_IDM_DR, data); ndev 360 drivers/net/ethernet/wiznet/w5100.c static int w5100_readbulk_indirect(struct net_device *ndev, u32 addr, u8 *buf, ndev 363 drivers/net/ethernet/wiznet/w5100.c struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); ndev 368 drivers/net/ethernet/wiznet/w5100.c w5100_write16_direct(ndev, W5100_IDM_AR, addr); ndev 371 drivers/net/ethernet/wiznet/w5100.c *buf++ = w5100_read_direct(ndev, W5100_IDM_DR); ndev 378 drivers/net/ethernet/wiznet/w5100.c static int w5100_writebulk_indirect(struct net_device *ndev, u32 addr, ndev 381 drivers/net/ethernet/wiznet/w5100.c struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); ndev 386 drivers/net/ethernet/wiznet/w5100.c w5100_write16_direct(ndev, W5100_IDM_AR, addr); ndev 389 drivers/net/ethernet/wiznet/w5100.c __w5100_write_direct(ndev, W5100_IDM_DR, *buf++); ndev 396 drivers/net/ethernet/wiznet/w5100.c static int w5100_reset_indirect(struct net_device *ndev) ndev 398 drivers/net/ethernet/wiznet/w5100.c w5100_write_direct(ndev, W5100_MR, MR_RST); ndev 400 drivers/net/ethernet/wiznet/w5100.c w5100_write_direct(ndev, W5100_MR, MR_PB | MR_AI | MR_IND); ndev 421 drivers/net/ethernet/wiznet/w5100.c return w5100_read_direct(priv->ndev, addr); ndev 426 drivers/net/ethernet/wiznet/w5100.c return w5100_write_direct(priv->ndev, addr, data); ndev 431 drivers/net/ethernet/wiznet/w5100.c return w5100_read16_direct(priv->ndev, addr); ndev 436 drivers/net/ethernet/wiznet/w5100.c return w5100_write16_direct(priv->ndev, addr, data); ndev 441 drivers/net/ethernet/wiznet/w5100.c return w5100_readbulk_direct(priv->ndev, addr, buf, len); ndev 447 drivers/net/ethernet/wiznet/w5100.c return w5100_writebulk_direct(priv->ndev, addr, buf, len); ndev 454 drivers/net/ethernet/wiznet/w5100.c return w5100_read_indirect(priv->ndev, addr); ndev 459 drivers/net/ethernet/wiznet/w5100.c return w5100_write_indirect(priv->ndev, addr, data); ndev 464 drivers/net/ethernet/wiznet/w5100.c return w5100_read16_indirect(priv->ndev, addr); ndev 469 drivers/net/ethernet/wiznet/w5100.c return w5100_write16_indirect(priv->ndev, addr, data); ndev 474 drivers/net/ethernet/wiznet/w5100.c return w5100_readbulk_indirect(priv->ndev, addr, buf, len); ndev 480 drivers/net/ethernet/wiznet/w5100.c return w5100_writebulk_indirect(priv->ndev, addr, buf, len); ndev 487 drivers/net/ethernet/wiznet/w5100.c return priv->ops->read(priv->ndev, addr); ndev 492 drivers/net/ethernet/wiznet/w5100.c return priv->ops->write(priv->ndev, addr, data); ndev 497 drivers/net/ethernet/wiznet/w5100.c return priv->ops->read16(priv->ndev, addr); ndev 502 drivers/net/ethernet/wiznet/w5100.c return priv->ops->write16(priv->ndev, addr, data); ndev 507 drivers/net/ethernet/wiznet/w5100.c return priv->ops->readbulk(priv->ndev, addr, buf, len); ndev 513 drivers/net/ethernet/wiznet/w5100.c return priv->ops->writebulk(priv->ndev, addr, buf, len); ndev 568 drivers/net/ethernet/wiznet/w5100.c return priv->ops->reset(priv->ndev); ndev 596 drivers/net/ethernet/wiznet/w5100.c struct net_device *ndev = priv->ndev; ndev 598 drivers/net/ethernet/wiznet/w5100.c w5100_writebulk(priv, W5100_SHAR, ndev->dev_addr, ETH_ALEN); ndev 724 drivers/net/ethernet/wiznet/w5100.c static void w5100_get_drvinfo(struct net_device *ndev, ndev 729 drivers/net/ethernet/wiznet/w5100.c strlcpy(info->bus_info, dev_name(ndev->dev.parent), ndev 733 drivers/net/ethernet/wiznet/w5100.c static u32 w5100_get_link(struct net_device *ndev) ndev 735 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 743 drivers/net/ethernet/wiznet/w5100.c static u32 w5100_get_msglevel(struct net_device *ndev) ndev 745 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 750 drivers/net/ethernet/wiznet/w5100.c static void w5100_set_msglevel(struct net_device *ndev, u32 value) ndev 752 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 757 drivers/net/ethernet/wiznet/w5100.c static int w5100_get_regs_len(struct net_device *ndev) ndev 762 drivers/net/ethernet/wiznet/w5100.c static void w5100_get_regs(struct net_device *ndev, ndev 765 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 773 drivers/net/ethernet/wiznet/w5100.c static void w5100_restart(struct net_device *ndev) ndev 775 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 777 drivers/net/ethernet/wiznet/w5100.c netif_stop_queue(ndev); ndev 780 drivers/net/ethernet/wiznet/w5100.c ndev->stats.tx_errors++; ndev 781 drivers/net/ethernet/wiznet/w5100.c netif_trans_update(ndev); ndev 782 drivers/net/ethernet/wiznet/w5100.c netif_wake_queue(ndev); ndev 790 drivers/net/ethernet/wiznet/w5100.c w5100_restart(priv->ndev); ndev 793 drivers/net/ethernet/wiznet/w5100.c static void w5100_tx_timeout(struct net_device *ndev) ndev 795 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 800 drivers/net/ethernet/wiznet/w5100.c w5100_restart(ndev); ndev 803 drivers/net/ethernet/wiznet/w5100.c static void w5100_tx_skb(struct net_device *ndev, struct sk_buff *skb) ndev 805 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 811 drivers/net/ethernet/wiznet/w5100.c ndev->stats.tx_bytes += skb->len; ndev 812 drivers/net/ethernet/wiznet/w5100.c ndev->stats.tx_packets++; ndev 828 drivers/net/ethernet/wiznet/w5100.c w5100_tx_skb(priv->ndev, skb); ndev 831 drivers/net/ethernet/wiznet/w5100.c static netdev_tx_t w5100_start_tx(struct sk_buff *skb, struct net_device *ndev) ndev 833 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 835 drivers/net/ethernet/wiznet/w5100.c netif_stop_queue(ndev); ndev 842 drivers/net/ethernet/wiznet/w5100.c w5100_tx_skb(ndev, skb); ndev 848 drivers/net/ethernet/wiznet/w5100.c static struct sk_buff *w5100_rx_skb(struct net_device *ndev) ndev 850 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 864 drivers/net/ethernet/wiznet/w5100.c skb = netdev_alloc_skb_ip_align(ndev, rx_len); ndev 868 drivers/net/ethernet/wiznet/w5100.c ndev->stats.rx_dropped++; ndev 876 drivers/net/ethernet/wiznet/w5100.c skb->protocol = eth_type_trans(skb, ndev); ndev 878 drivers/net/ethernet/wiznet/w5100.c ndev->stats.rx_packets++; ndev 879 drivers/net/ethernet/wiznet/w5100.c ndev->stats.rx_bytes += rx_len; ndev 890 drivers/net/ethernet/wiznet/w5100.c while ((skb = w5100_rx_skb(priv->ndev))) ndev 902 drivers/net/ethernet/wiznet/w5100.c struct sk_buff *skb = w5100_rx_skb(priv->ndev); ndev 920 drivers/net/ethernet/wiznet/w5100.c struct net_device *ndev = ndev_instance; ndev 921 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 929 drivers/net/ethernet/wiznet/w5100.c netif_dbg(priv, tx_done, ndev, "tx done\n"); ndev 930 drivers/net/ethernet/wiznet/w5100.c netif_wake_queue(ndev); ndev 947 drivers/net/ethernet/wiznet/w5100.c struct net_device *ndev = ndev_instance; ndev 948 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 950 drivers/net/ethernet/wiznet/w5100.c if (netif_running(ndev)) { ndev 952 drivers/net/ethernet/wiznet/w5100.c netif_info(priv, link, ndev, "link is up\n"); ndev 953 drivers/net/ethernet/wiznet/w5100.c netif_carrier_on(ndev); ndev 955 drivers/net/ethernet/wiznet/w5100.c netif_info(priv, link, ndev, "link is down\n"); ndev 956 drivers/net/ethernet/wiznet/w5100.c netif_carrier_off(ndev); ndev 971 drivers/net/ethernet/wiznet/w5100.c static void w5100_set_rx_mode(struct net_device *ndev) ndev 973 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 974 drivers/net/ethernet/wiznet/w5100.c bool set_promisc = (ndev->flags & IFF_PROMISC) != 0; ndev 986 drivers/net/ethernet/wiznet/w5100.c static int w5100_set_macaddr(struct net_device *ndev, void *addr) ndev 988 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 993 drivers/net/ethernet/wiznet/w5100.c memcpy(ndev->dev_addr, sock_addr->sa_data, ETH_ALEN); ndev 998 drivers/net/ethernet/wiznet/w5100.c static int w5100_open(struct net_device *ndev) ndev 1000 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 1002 drivers/net/ethernet/wiznet/w5100.c netif_info(priv, ifup, ndev, "enabling\n"); ndev 1005 drivers/net/ethernet/wiznet/w5100.c netif_start_queue(ndev); ndev 1008 drivers/net/ethernet/wiznet/w5100.c netif_carrier_on(ndev); ndev 1012 drivers/net/ethernet/wiznet/w5100.c static int w5100_stop(struct net_device *ndev) ndev 1014 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 1016 drivers/net/ethernet/wiznet/w5100.c netif_info(priv, ifdown, ndev, "shutting down\n"); ndev 1018 drivers/net/ethernet/wiznet/w5100.c netif_carrier_off(ndev); ndev 1019 drivers/net/ethernet/wiznet/w5100.c netif_stop_queue(ndev); ndev 1073 drivers/net/ethernet/wiznet/w5100.c void *w5100_ops_priv(const struct net_device *ndev) ndev 1075 drivers/net/ethernet/wiznet/w5100.c return netdev_priv(ndev) + ndev 1085 drivers/net/ethernet/wiznet/w5100.c struct net_device *ndev; ndev 1096 drivers/net/ethernet/wiznet/w5100.c ndev = alloc_etherdev(alloc_size); ndev 1097 drivers/net/ethernet/wiznet/w5100.c if (!ndev) ndev 1099 drivers/net/ethernet/wiznet/w5100.c SET_NETDEV_DEV(ndev, dev); ndev 1100 drivers/net/ethernet/wiznet/w5100.c dev_set_drvdata(dev, ndev); ndev 1101 drivers/net/ethernet/wiznet/w5100.c priv = netdev_priv(ndev); ndev 1130 drivers/net/ethernet/wiznet/w5100.c priv->ndev = ndev; ndev 1135 drivers/net/ethernet/wiznet/w5100.c ndev->netdev_ops = &w5100_netdev_ops; ndev 1136 drivers/net/ethernet/wiznet/w5100.c ndev->ethtool_ops = &w5100_ethtool_ops; ndev 1137 drivers/net/ethernet/wiznet/w5100.c netif_napi_add(ndev, &priv->napi, w5100_napi_poll, 16); ndev 1142 drivers/net/ethernet/wiznet/w5100.c ndev->features |= NETIF_F_VLAN_CHALLENGED; ndev 1144 drivers/net/ethernet/wiznet/w5100.c err = register_netdev(ndev); ndev 1149 drivers/net/ethernet/wiznet/w5100.c netdev_name(ndev)); ndev 1161 drivers/net/ethernet/wiznet/w5100.c memcpy(ndev->dev_addr, mac_addr, ETH_ALEN); ndev 1163 drivers/net/ethernet/wiznet/w5100.c eth_hw_addr_random(ndev); ndev 1166 drivers/net/ethernet/wiznet/w5100.c err = priv->ops->init(priv->ndev); ndev 1178 drivers/net/ethernet/wiznet/w5100.c netdev_name(ndev), ndev); ndev 1181 drivers/net/ethernet/wiznet/w5100.c IRQF_TRIGGER_LOW, netdev_name(ndev), ndev); ndev 1193 drivers/net/ethernet/wiznet/w5100.c snprintf(link_name, 16, "%s-link", netdev_name(ndev)); ndev 1198 drivers/net/ethernet/wiznet/w5100.c link_name, priv->ndev) < 0) ndev 1205 drivers/net/ethernet/wiznet/w5100.c free_irq(priv->irq, ndev); ndev 1209 drivers/net/ethernet/wiznet/w5100.c unregister_netdev(ndev); ndev 1211 drivers/net/ethernet/wiznet/w5100.c free_netdev(ndev); ndev 1218 drivers/net/ethernet/wiznet/w5100.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1219 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 1222 drivers/net/ethernet/wiznet/w5100.c free_irq(priv->irq, ndev); ndev 1224 drivers/net/ethernet/wiznet/w5100.c free_irq(priv->link_irq, ndev); ndev 1230 drivers/net/ethernet/wiznet/w5100.c unregister_netdev(ndev); ndev 1231 drivers/net/ethernet/wiznet/w5100.c free_netdev(ndev); ndev 1239 drivers/net/ethernet/wiznet/w5100.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1240 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 1242 drivers/net/ethernet/wiznet/w5100.c if (netif_running(ndev)) { ndev 1243 drivers/net/ethernet/wiznet/w5100.c netif_carrier_off(ndev); ndev 1244 drivers/net/ethernet/wiznet/w5100.c netif_device_detach(ndev); ndev 1253 drivers/net/ethernet/wiznet/w5100.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1254 drivers/net/ethernet/wiznet/w5100.c struct w5100_priv *priv = netdev_priv(ndev); ndev 1256 drivers/net/ethernet/wiznet/w5100.c if (netif_running(ndev)) { ndev 1260 drivers/net/ethernet/wiznet/w5100.c netif_device_attach(ndev); ndev 1263 drivers/net/ethernet/wiznet/w5100.c netif_carrier_on(ndev); ndev 18 drivers/net/ethernet/wiznet/w5100.h int (*read)(struct net_device *ndev, u32 addr); ndev 19 drivers/net/ethernet/wiznet/w5100.h int (*write)(struct net_device *ndev, u32 addr, u8 data); ndev 20 drivers/net/ethernet/wiznet/w5100.h int (*read16)(struct net_device *ndev, u32 addr); ndev 21 drivers/net/ethernet/wiznet/w5100.h int (*write16)(struct net_device *ndev, u32 addr, u16 data); ndev 22 drivers/net/ethernet/wiznet/w5100.h int (*readbulk)(struct net_device *ndev, u32 addr, u8 *buf, int len); ndev 23 drivers/net/ethernet/wiznet/w5100.h int (*writebulk)(struct net_device *ndev, u32 addr, const u8 *buf, ndev 25 drivers/net/ethernet/wiznet/w5100.h int (*reset)(struct net_device *ndev); ndev 26 drivers/net/ethernet/wiznet/w5100.h int (*init)(struct net_device *ndev); ndev 29 drivers/net/ethernet/wiznet/w5100.h void *w5100_ops_priv(const struct net_device *ndev); ndev 97 drivers/net/ethernet/wiznet/w5300.c struct net_device *ndev; ndev 230 drivers/net/ethernet/wiznet/w5300.c struct net_device *ndev = priv->ndev; ndev 232 drivers/net/ethernet/wiznet/w5300.c ndev->dev_addr[0] << 24 | ndev 233 drivers/net/ethernet/wiznet/w5300.c ndev->dev_addr[1] << 16 | ndev 234 drivers/net/ethernet/wiznet/w5300.c ndev->dev_addr[2] << 8 | ndev 235 drivers/net/ethernet/wiznet/w5300.c ndev->dev_addr[3]); ndev 237 drivers/net/ethernet/wiznet/w5300.c ndev->dev_addr[4] << 8 | ndev 238 drivers/net/ethernet/wiznet/w5300.c ndev->dev_addr[5]); ndev 282 drivers/net/ethernet/wiznet/w5300.c static void w5300_get_drvinfo(struct net_device *ndev, ndev 287 drivers/net/ethernet/wiznet/w5300.c strlcpy(info->bus_info, dev_name(ndev->dev.parent), ndev 291 drivers/net/ethernet/wiznet/w5300.c static u32 w5300_get_link(struct net_device *ndev) ndev 293 drivers/net/ethernet/wiznet/w5300.c struct w5300_priv *priv = netdev_priv(ndev); ndev 301 drivers/net/ethernet/wiznet/w5300.c static u32 w5300_get_msglevel(struct net_device *ndev) ndev 303 drivers/net/ethernet/wiznet/w5300.c struct w5300_priv *priv = netdev_priv(ndev); ndev 308 drivers/net/ethernet/wiznet/w5300.c static void w5300_set_msglevel(struct net_device *ndev, u32 value) ndev 310 drivers/net/ethernet/wiznet/w5300.c struct w5300_priv *priv = netdev_priv(ndev); ndev 315 drivers/net/ethernet/wiznet/w5300.c static int w5300_get_regs_len(struct net_device *ndev) ndev 320 drivers/net/ethernet/wiznet/w5300.c static void w5300_get_regs(struct net_device *ndev, ndev 323 drivers/net/ethernet/wiznet/w5300.c struct w5300_priv *priv = netdev_priv(ndev); ndev 344 drivers/net/ethernet/wiznet/w5300.c static void w5300_tx_timeout(struct net_device *ndev) ndev 346 drivers/net/ethernet/wiznet/w5300.c struct w5300_priv *priv = netdev_priv(ndev); ndev 348 drivers/net/ethernet/wiznet/w5300.c netif_stop_queue(ndev); ndev 351 drivers/net/ethernet/wiznet/w5300.c ndev->stats.tx_errors++; ndev 352 drivers/net/ethernet/wiznet/w5300.c netif_trans_update(ndev); ndev 353 drivers/net/ethernet/wiznet/w5300.c netif_wake_queue(ndev); ndev 356 drivers/net/ethernet/wiznet/w5300.c static netdev_tx_t w5300_start_tx(struct sk_buff *skb, struct net_device *ndev) ndev 358 drivers/net/ethernet/wiznet/w5300.c struct w5300_priv *priv = netdev_priv(ndev); ndev 360 drivers/net/ethernet/wiznet/w5300.c netif_stop_queue(ndev); ndev 363 drivers/net/ethernet/wiznet/w5300.c ndev->stats.tx_packets++; ndev 364 drivers/net/ethernet/wiznet/w5300.c ndev->stats.tx_bytes += skb->len; ndev 366 drivers/net/ethernet/wiznet/w5300.c netif_dbg(priv, tx_queued, ndev, "tx queued\n"); ndev 376 drivers/net/ethernet/wiznet/w5300.c struct net_device *ndev = priv->ndev; ndev 388 drivers/net/ethernet/wiznet/w5300.c skb = netdev_alloc_skb_ip_align(ndev, roundup(rx_len, 2)); ndev 393 drivers/net/ethernet/wiznet/w5300.c ndev->stats.rx_dropped++; ndev 399 drivers/net/ethernet/wiznet/w5300.c skb->protocol = eth_type_trans(skb, ndev); ndev 402 drivers/net/ethernet/wiznet/w5300.c ndev->stats.rx_packets++; ndev 403 drivers/net/ethernet/wiznet/w5300.c ndev->stats.rx_bytes += rx_len; ndev 416 drivers/net/ethernet/wiznet/w5300.c struct net_device *ndev = ndev_instance; ndev 417 drivers/net/ethernet/wiznet/w5300.c struct w5300_priv *priv = netdev_priv(ndev); ndev 425 drivers/net/ethernet/wiznet/w5300.c netif_dbg(priv, tx_done, ndev, "tx done\n"); ndev 426 drivers/net/ethernet/wiznet/w5300.c netif_wake_queue(ndev); ndev 441 drivers/net/ethernet/wiznet/w5300.c struct net_device *ndev = ndev_instance; ndev 442 drivers/net/ethernet/wiznet/w5300.c struct w5300_priv *priv = netdev_priv(ndev); ndev 444 drivers/net/ethernet/wiznet/w5300.c if (netif_running(ndev)) { ndev 446 drivers/net/ethernet/wiznet/w5300.c netif_info(priv, link, ndev, "link is up\n"); ndev 447 drivers/net/ethernet/wiznet/w5300.c netif_carrier_on(ndev); ndev 449 drivers/net/ethernet/wiznet/w5300.c netif_info(priv, link, ndev, "link is down\n"); ndev 450 drivers/net/ethernet/wiznet/w5300.c netif_carrier_off(ndev); ndev 457 drivers/net/ethernet/wiznet/w5300.c static void w5300_set_rx_mode(struct net_device *ndev) ndev 459 drivers/net/ethernet/wiznet/w5300.c struct w5300_priv *priv = netdev_priv(ndev); ndev 460 drivers/net/ethernet/wiznet/w5300.c bool set_promisc = (ndev->flags & IFF_PROMISC) != 0; ndev 468 drivers/net/ethernet/wiznet/w5300.c static int w5300_set_macaddr(struct net_device *ndev, void *addr) ndev 470 drivers/net/ethernet/wiznet/w5300.c struct w5300_priv *priv = netdev_priv(ndev); ndev 475 drivers/net/ethernet/wiznet/w5300.c memcpy(ndev->dev_addr, sock_addr->sa_data, ETH_ALEN); ndev 480 drivers/net/ethernet/wiznet/w5300.c static int w5300_open(struct net_device *ndev) ndev 482 drivers/net/ethernet/wiznet/w5300.c struct w5300_priv *priv = netdev_priv(ndev); ndev 484 drivers/net/ethernet/wiznet/w5300.c netif_info(priv, ifup, ndev, "enabling\n"); ndev 487 drivers/net/ethernet/wiznet/w5300.c netif_start_queue(ndev); ndev 490 drivers/net/ethernet/wiznet/w5300.c netif_carrier_on(ndev); ndev 494 drivers/net/ethernet/wiznet/w5300.c static int w5300_stop(struct net_device *ndev) ndev 496 drivers/net/ethernet/wiznet/w5300.c struct w5300_priv *priv = netdev_priv(ndev); ndev 498 drivers/net/ethernet/wiznet/w5300.c netif_info(priv, ifdown, ndev, "shutting down\n"); ndev 500 drivers/net/ethernet/wiznet/w5300.c netif_carrier_off(ndev); ndev 501 drivers/net/ethernet/wiznet/w5300.c netif_stop_queue(ndev); ndev 528 drivers/net/ethernet/wiznet/w5300.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 529 drivers/net/ethernet/wiznet/w5300.c struct w5300_priv *priv = netdev_priv(ndev); ndev 530 drivers/net/ethernet/wiznet/w5300.c const char *name = netdev_name(ndev); ndev 537 drivers/net/ethernet/wiznet/w5300.c memcpy(ndev->dev_addr, data->mac_addr, ETH_ALEN); ndev 539 drivers/net/ethernet/wiznet/w5300.c eth_hw_addr_random(ndev); ndev 567 drivers/net/ethernet/wiznet/w5300.c IRQ_TYPE_LEVEL_LOW, name, ndev); ndev 581 drivers/net/ethernet/wiznet/w5300.c link_name, priv->ndev) < 0) ndev 585 drivers/net/ethernet/wiznet/w5300.c netdev_info(ndev, "at 0x%llx irq %d\n", (u64)mem->start, irq); ndev 592 drivers/net/ethernet/wiznet/w5300.c struct net_device *ndev; ndev 595 drivers/net/ethernet/wiznet/w5300.c ndev = alloc_etherdev(sizeof(*priv)); ndev 596 drivers/net/ethernet/wiznet/w5300.c if (!ndev) ndev 598 drivers/net/ethernet/wiznet/w5300.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 599 drivers/net/ethernet/wiznet/w5300.c platform_set_drvdata(pdev, ndev); ndev 600 drivers/net/ethernet/wiznet/w5300.c priv = netdev_priv(ndev); ndev 601 drivers/net/ethernet/wiznet/w5300.c priv->ndev = ndev; ndev 603 drivers/net/ethernet/wiznet/w5300.c ndev->netdev_ops = &w5300_netdev_ops; ndev 604 drivers/net/ethernet/wiznet/w5300.c ndev->ethtool_ops = &w5300_ethtool_ops; ndev 605 drivers/net/ethernet/wiznet/w5300.c ndev->watchdog_timeo = HZ; ndev 606 drivers/net/ethernet/wiznet/w5300.c netif_napi_add(ndev, &priv->napi, w5300_napi_poll, 16); ndev 611 drivers/net/ethernet/wiznet/w5300.c ndev->features |= NETIF_F_VLAN_CHALLENGED; ndev 613 drivers/net/ethernet/wiznet/w5300.c err = register_netdev(ndev); ndev 624 drivers/net/ethernet/wiznet/w5300.c unregister_netdev(ndev); ndev 626 drivers/net/ethernet/wiznet/w5300.c free_netdev(ndev); ndev 632 drivers/net/ethernet/wiznet/w5300.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 633 drivers/net/ethernet/wiznet/w5300.c struct w5300_priv *priv = netdev_priv(ndev); ndev 636 drivers/net/ethernet/wiznet/w5300.c free_irq(priv->irq, ndev); ndev 638 drivers/net/ethernet/wiznet/w5300.c free_irq(priv->link_irq, ndev); ndev 640 drivers/net/ethernet/wiznet/w5300.c unregister_netdev(ndev); ndev 641 drivers/net/ethernet/wiznet/w5300.c free_netdev(ndev); ndev 648 drivers/net/ethernet/wiznet/w5300.c struct net_device *ndev = dev_get_drvdata(dev); ndev 649 drivers/net/ethernet/wiznet/w5300.c struct w5300_priv *priv = netdev_priv(ndev); ndev 651 drivers/net/ethernet/wiznet/w5300.c if (netif_running(ndev)) { ndev 652 drivers/net/ethernet/wiznet/w5300.c netif_carrier_off(ndev); ndev 653 drivers/net/ethernet/wiznet/w5300.c netif_device_detach(ndev); ndev 662 drivers/net/ethernet/wiznet/w5300.c struct net_device *ndev = dev_get_drvdata(dev); ndev 663 drivers/net/ethernet/wiznet/w5300.c struct w5300_priv *priv = netdev_priv(ndev); ndev 665 drivers/net/ethernet/wiznet/w5300.c if (!netif_running(ndev)) { ndev 669 drivers/net/ethernet/wiznet/w5300.c netif_device_attach(ndev); ndev 672 drivers/net/ethernet/wiznet/w5300.c netif_carrier_on(ndev); ndev 332 drivers/net/ethernet/xilinx/ll_temac.h struct net_device *ndev; ndev 296 drivers/net/ethernet/xilinx/ll_temac_main.c static void temac_dma_bd_release(struct net_device *ndev) ndev 298 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 308 drivers/net/ethernet/xilinx/ll_temac_main.c dma_unmap_single(ndev->dev.parent, lp->rx_bd_v[i].phys, ndev 314 drivers/net/ethernet/xilinx/ll_temac_main.c dma_free_coherent(ndev->dev.parent, ndev 318 drivers/net/ethernet/xilinx/ll_temac_main.c dma_free_coherent(ndev->dev.parent, ndev 326 drivers/net/ethernet/xilinx/ll_temac_main.c static int temac_dma_bd_init(struct net_device *ndev) ndev 328 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 333 drivers/net/ethernet/xilinx/ll_temac_main.c lp->rx_skb = devm_kcalloc(&ndev->dev, RX_BD_NUM, sizeof(*lp->rx_skb), ndev 340 drivers/net/ethernet/xilinx/ll_temac_main.c lp->tx_bd_v = dma_alloc_coherent(ndev->dev.parent, ndev 346 drivers/net/ethernet/xilinx/ll_temac_main.c lp->rx_bd_v = dma_alloc_coherent(ndev->dev.parent, ndev 361 drivers/net/ethernet/xilinx/ll_temac_main.c skb = netdev_alloc_skb_ip_align(ndev, ndev 368 drivers/net/ethernet/xilinx/ll_temac_main.c skb_dma_addr = dma_map_single(ndev->dev.parent, skb->data, ndev 371 drivers/net/ethernet/xilinx/ll_temac_main.c if (dma_mapping_error(ndev->dev.parent, skb_dma_addr)) ndev 407 drivers/net/ethernet/xilinx/ll_temac_main.c temac_dma_bd_release(ndev); ndev 415 drivers/net/ethernet/xilinx/ll_temac_main.c static void temac_do_set_mac_address(struct net_device *ndev) ndev 417 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 423 drivers/net/ethernet/xilinx/ll_temac_main.c (ndev->dev_addr[0]) | ndev 424 drivers/net/ethernet/xilinx/ll_temac_main.c (ndev->dev_addr[1] << 8) | ndev 425 drivers/net/ethernet/xilinx/ll_temac_main.c (ndev->dev_addr[2] << 16) | ndev 426 drivers/net/ethernet/xilinx/ll_temac_main.c (ndev->dev_addr[3] << 24)); ndev 430 drivers/net/ethernet/xilinx/ll_temac_main.c (ndev->dev_addr[4] & 0x000000ff) | ndev 431 drivers/net/ethernet/xilinx/ll_temac_main.c (ndev->dev_addr[5] << 8)); ndev 435 drivers/net/ethernet/xilinx/ll_temac_main.c static int temac_init_mac_address(struct net_device *ndev, const void *address) ndev 437 drivers/net/ethernet/xilinx/ll_temac_main.c ether_addr_copy(ndev->dev_addr, address); ndev 438 drivers/net/ethernet/xilinx/ll_temac_main.c if (!is_valid_ether_addr(ndev->dev_addr)) ndev 439 drivers/net/ethernet/xilinx/ll_temac_main.c eth_hw_addr_random(ndev); ndev 440 drivers/net/ethernet/xilinx/ll_temac_main.c temac_do_set_mac_address(ndev); ndev 444 drivers/net/ethernet/xilinx/ll_temac_main.c static int temac_set_mac_address(struct net_device *ndev, void *p) ndev 450 drivers/net/ethernet/xilinx/ll_temac_main.c memcpy(ndev->dev_addr, addr->sa_data, ETH_ALEN); ndev 451 drivers/net/ethernet/xilinx/ll_temac_main.c temac_do_set_mac_address(ndev); ndev 455 drivers/net/ethernet/xilinx/ll_temac_main.c static void temac_set_multicast_list(struct net_device *ndev) ndev 457 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 463 drivers/net/ethernet/xilinx/ll_temac_main.c if (ndev->flags & (IFF_PROMISC | IFF_ALLMULTI) || ndev 464 drivers/net/ethernet/xilinx/ll_temac_main.c (netdev_mc_count(ndev) > MULTICAST_CAM_TABLE_NUM)) { ndev 466 drivers/net/ethernet/xilinx/ll_temac_main.c dev_info(&ndev->dev, "Promiscuous mode enabled.\n"); ndev 472 drivers/net/ethernet/xilinx/ll_temac_main.c if (!netdev_mc_empty(ndev)) { ndev 475 drivers/net/ethernet/xilinx/ll_temac_main.c netdev_for_each_mc_addr(ha, ndev) { ndev 509 drivers/net/ethernet/xilinx/ll_temac_main.c dev_info(&ndev->dev, "Promiscuous mode disabled.\n"); ndev 595 drivers/net/ethernet/xilinx/ll_temac_main.c static u32 temac_setoptions(struct net_device *ndev, u32 options) ndev 597 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 618 drivers/net/ethernet/xilinx/ll_temac_main.c static void temac_device_reset(struct net_device *ndev) ndev 620 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 630 drivers/net/ethernet/xilinx/ll_temac_main.c dev_dbg(&ndev->dev, "%s()\n", __func__); ndev 638 drivers/net/ethernet/xilinx/ll_temac_main.c dev_err(&ndev->dev, ndev 650 drivers/net/ethernet/xilinx/ll_temac_main.c dev_err(&ndev->dev, ndev 669 drivers/net/ethernet/xilinx/ll_temac_main.c dev_err(&ndev->dev, ndev 676 drivers/net/ethernet/xilinx/ll_temac_main.c if (temac_dma_bd_init(ndev)) { ndev 677 drivers/net/ethernet/xilinx/ll_temac_main.c dev_err(&ndev->dev, ndev 690 drivers/net/ethernet/xilinx/ll_temac_main.c temac_setoptions(ndev, ndev 693 drivers/net/ethernet/xilinx/ll_temac_main.c temac_do_set_mac_address(ndev); ndev 696 drivers/net/ethernet/xilinx/ll_temac_main.c temac_set_multicast_list(ndev); ndev 697 drivers/net/ethernet/xilinx/ll_temac_main.c if (temac_setoptions(ndev, lp->options)) ndev 698 drivers/net/ethernet/xilinx/ll_temac_main.c dev_err(&ndev->dev, "Error setting TEMAC options\n"); ndev 701 drivers/net/ethernet/xilinx/ll_temac_main.c netif_trans_update(ndev); /* prevent tx timeout */ ndev 704 drivers/net/ethernet/xilinx/ll_temac_main.c static void temac_adjust_link(struct net_device *ndev) ndev 706 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 707 drivers/net/ethernet/xilinx/ll_temac_main.c struct phy_device *phy = ndev->phydev; ndev 762 drivers/net/ethernet/xilinx/ll_temac_main.c static void temac_start_xmit_done(struct net_device *ndev) ndev 764 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 773 drivers/net/ethernet/xilinx/ll_temac_main.c dma_unmap_single(ndev->dev.parent, be32_to_cpu(cur_p->phys), ndev 784 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->stats.tx_packets++; ndev 785 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->stats.tx_bytes += be32_to_cpu(cur_p->len); ndev 798 drivers/net/ethernet/xilinx/ll_temac_main.c netif_wake_queue(ndev); ndev 825 drivers/net/ethernet/xilinx/ll_temac_main.c temac_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 827 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 840 drivers/net/ethernet/xilinx/ll_temac_main.c if (netif_queue_stopped(ndev)) ndev 843 drivers/net/ethernet/xilinx/ll_temac_main.c netif_stop_queue(ndev); ndev 852 drivers/net/ethernet/xilinx/ll_temac_main.c netif_wake_queue(ndev); ndev 867 drivers/net/ethernet/xilinx/ll_temac_main.c skb_dma_addr = dma_map_single(ndev->dev.parent, skb->data, ndev 870 drivers/net/ethernet/xilinx/ll_temac_main.c if (WARN_ON_ONCE(dma_mapping_error(ndev->dev.parent, skb_dma_addr))) { ndev 872 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->stats.tx_dropped++; ndev 883 drivers/net/ethernet/xilinx/ll_temac_main.c skb_dma_addr = dma_map_single(ndev->dev.parent, ndev 887 drivers/net/ethernet/xilinx/ll_temac_main.c if (dma_mapping_error(ndev->dev.parent, skb_dma_addr)) { ndev 893 drivers/net/ethernet/xilinx/ll_temac_main.c dma_unmap_single(ndev->dev.parent, ndev 901 drivers/net/ethernet/xilinx/ll_temac_main.c dma_unmap_single(ndev->dev.parent, ndev 905 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->stats.tx_dropped++; ndev 941 drivers/net/ethernet/xilinx/ll_temac_main.c static void ll_temac_recv(struct net_device *ndev) ndev 943 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 972 drivers/net/ethernet/xilinx/ll_temac_main.c dma_unmap_single(ndev->dev.parent, be32_to_cpu(bd->phys), ndev 980 drivers/net/ethernet/xilinx/ll_temac_main.c skb->protocol = eth_type_trans(skb, ndev); ndev 1002 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->stats.rx_packets++; ndev 1003 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->stats.rx_bytes += length; ndev 1044 drivers/net/ethernet/xilinx/ll_temac_main.c skb = netdev_alloc_skb_ip_align(ndev, XTE_MAX_JUMBO_FRAME_SIZE); ndev 1046 drivers/net/ethernet/xilinx/ll_temac_main.c dev_warn(&ndev->dev, "skb alloc failed\n"); ndev 1050 drivers/net/ethernet/xilinx/ll_temac_main.c skb_dma_addr = dma_map_single(ndev->dev.parent, skb->data, ndev 1053 drivers/net/ethernet/xilinx/ll_temac_main.c if (WARN_ON_ONCE(dma_mapping_error(ndev->dev.parent, ndev 1084 drivers/net/ethernet/xilinx/ll_temac_main.c struct net_device *ndev = lp->ndev; ndev 1086 drivers/net/ethernet/xilinx/ll_temac_main.c ll_temac_recv(ndev); ndev 1091 drivers/net/ethernet/xilinx/ll_temac_main.c struct net_device *ndev = _ndev; ndev 1092 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 1099 drivers/net/ethernet/xilinx/ll_temac_main.c temac_start_xmit_done(lp->ndev); ndev 1101 drivers/net/ethernet/xilinx/ll_temac_main.c dev_err_ratelimited(&ndev->dev, ndev 1110 drivers/net/ethernet/xilinx/ll_temac_main.c struct net_device *ndev = _ndev; ndev 1111 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 1119 drivers/net/ethernet/xilinx/ll_temac_main.c ll_temac_recv(lp->ndev); ndev 1121 drivers/net/ethernet/xilinx/ll_temac_main.c dev_err_ratelimited(&ndev->dev, ndev 1128 drivers/net/ethernet/xilinx/ll_temac_main.c static int temac_open(struct net_device *ndev) ndev 1130 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 1134 drivers/net/ethernet/xilinx/ll_temac_main.c dev_dbg(&ndev->dev, "temac_open()\n"); ndev 1137 drivers/net/ethernet/xilinx/ll_temac_main.c phydev = of_phy_connect(lp->ndev, lp->phy_node, ndev 1145 drivers/net/ethernet/xilinx/ll_temac_main.c phydev = phy_connect(lp->ndev, lp->phy_name, temac_adjust_link, ndev 1154 drivers/net/ethernet/xilinx/ll_temac_main.c temac_device_reset(ndev); ndev 1156 drivers/net/ethernet/xilinx/ll_temac_main.c rc = request_irq(lp->tx_irq, ll_temac_tx_irq, 0, ndev->name, ndev); ndev 1159 drivers/net/ethernet/xilinx/ll_temac_main.c rc = request_irq(lp->rx_irq, ll_temac_rx_irq, 0, ndev->name, ndev); ndev 1166 drivers/net/ethernet/xilinx/ll_temac_main.c free_irq(lp->tx_irq, ndev); ndev 1174 drivers/net/ethernet/xilinx/ll_temac_main.c static int temac_stop(struct net_device *ndev) ndev 1176 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 1177 drivers/net/ethernet/xilinx/ll_temac_main.c struct phy_device *phydev = ndev->phydev; ndev 1179 drivers/net/ethernet/xilinx/ll_temac_main.c dev_dbg(&ndev->dev, "temac_close()\n"); ndev 1183 drivers/net/ethernet/xilinx/ll_temac_main.c free_irq(lp->tx_irq, ndev); ndev 1184 drivers/net/ethernet/xilinx/ll_temac_main.c free_irq(lp->rx_irq, ndev); ndev 1189 drivers/net/ethernet/xilinx/ll_temac_main.c temac_dma_bd_release(ndev); ndev 1196 drivers/net/ethernet/xilinx/ll_temac_main.c temac_poll_controller(struct net_device *ndev) ndev 1198 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 1203 drivers/net/ethernet/xilinx/ll_temac_main.c ll_temac_rx_irq(lp->tx_irq, ndev); ndev 1204 drivers/net/ethernet/xilinx/ll_temac_main.c ll_temac_tx_irq(lp->rx_irq, ndev); ndev 1211 drivers/net/ethernet/xilinx/ll_temac_main.c static int temac_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd) ndev 1213 drivers/net/ethernet/xilinx/ll_temac_main.c if (!netif_running(ndev)) ndev 1216 drivers/net/ethernet/xilinx/ll_temac_main.c if (!ndev->phydev) ndev 1219 drivers/net/ethernet/xilinx/ll_temac_main.c return phy_mii_ioctl(ndev->phydev, rq, cmd); ndev 1241 drivers/net/ethernet/xilinx/ll_temac_main.c struct net_device *ndev = dev_get_drvdata(dev); ndev 1242 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 1278 drivers/net/ethernet/xilinx/ll_temac_main.c struct net_device *ndev; ndev 1286 drivers/net/ethernet/xilinx/ll_temac_main.c ndev = devm_alloc_etherdev(&pdev->dev, sizeof(*lp)); ndev 1287 drivers/net/ethernet/xilinx/ll_temac_main.c if (!ndev) ndev 1290 drivers/net/ethernet/xilinx/ll_temac_main.c platform_set_drvdata(pdev, ndev); ndev 1291 drivers/net/ethernet/xilinx/ll_temac_main.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 1292 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->features = NETIF_F_SG; ndev 1293 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->netdev_ops = &temac_netdev_ops; ndev 1294 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->ethtool_ops = &temac_ethtool_ops; ndev 1296 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->features |= NETIF_F_IP_CSUM; /* Can checksum TCP/UDP over IPv4. */ ndev 1297 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->features |= NETIF_F_HW_CSUM; /* Can checksum all the packets. */ ndev 1298 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->features |= NETIF_F_IPV6_CSUM; /* Can checksum IPV6 TCP/UDP */ ndev 1299 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->features |= NETIF_F_HIGHDMA; /* Can DMA to high memory. */ ndev 1300 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->features |= NETIF_F_HW_VLAN_CTAG_TX; /* Transmit VLAN hw accel */ ndev 1301 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->features |= NETIF_F_HW_VLAN_CTAG_RX; /* Receive VLAN hw acceleration */ ndev 1302 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; /* Receive VLAN filtering */ ndev 1303 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->features |= NETIF_F_VLAN_CHALLENGED; /* cannot handle VLAN pkts */ ndev 1304 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->features |= NETIF_F_GSO; /* Enable software GSO. */ ndev 1305 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->features |= NETIF_F_MULTI_QUEUE; /* Has multiple TX/RX queues */ ndev 1306 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->features |= NETIF_F_LRO; /* large receive offload */ ndev 1310 drivers/net/ethernet/xilinx/ll_temac_main.c lp = netdev_priv(ndev); ndev 1311 drivers/net/ethernet/xilinx/ll_temac_main.c lp->ndev = ndev; ndev 1376 drivers/net/ethernet/xilinx/ll_temac_main.c ndev->features |= NETIF_F_IP_CSUM; ndev 1483 drivers/net/ethernet/xilinx/ll_temac_main.c temac_init_mac_address(ndev, addr); ndev 1485 drivers/net/ethernet/xilinx/ll_temac_main.c temac_init_mac_address(ndev, pdata->mac_addr); ndev 1509 drivers/net/ethernet/xilinx/ll_temac_main.c rc = register_netdev(lp->ndev); ndev 1528 drivers/net/ethernet/xilinx/ll_temac_main.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1529 drivers/net/ethernet/xilinx/ll_temac_main.c struct temac_local *lp = netdev_priv(ndev); ndev 1531 drivers/net/ethernet/xilinx/ll_temac_main.c unregister_netdev(ndev); ndev 418 drivers/net/ethernet/xilinx/xilinx_axienet.h struct net_device *ndev; ndev 158 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static void axienet_dma_bd_release(struct net_device *ndev) ndev 161 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 164 drivers/net/ethernet/xilinx/xilinx_axienet_main.c dma_unmap_single(ndev->dev.parent, lp->rx_bd_v[i].phys, ndev 170 drivers/net/ethernet/xilinx/xilinx_axienet_main.c dma_free_coherent(ndev->dev.parent, ndev 176 drivers/net/ethernet/xilinx/xilinx_axienet_main.c dma_free_coherent(ndev->dev.parent, ndev 193 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static int axienet_dma_bd_init(struct net_device *ndev) ndev 198 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 206 drivers/net/ethernet/xilinx/xilinx_axienet_main.c lp->tx_bd_v = dma_alloc_coherent(ndev->dev.parent, ndev 212 drivers/net/ethernet/xilinx/xilinx_axienet_main.c lp->rx_bd_v = dma_alloc_coherent(ndev->dev.parent, ndev 229 drivers/net/ethernet/xilinx/xilinx_axienet_main.c skb = netdev_alloc_skb_ip_align(ndev, lp->max_frm_size); ndev 234 drivers/net/ethernet/xilinx/xilinx_axienet_main.c lp->rx_bd_v[i].phys = dma_map_single(ndev->dev.parent, ndev 288 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_dma_bd_release(ndev); ndev 300 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static void axienet_set_mac_address(struct net_device *ndev, ndev 303 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 306 drivers/net/ethernet/xilinx/xilinx_axienet_main.c memcpy(ndev->dev_addr, address, ETH_ALEN); ndev 307 drivers/net/ethernet/xilinx/xilinx_axienet_main.c if (!is_valid_ether_addr(ndev->dev_addr)) ndev 308 drivers/net/ethernet/xilinx/xilinx_axienet_main.c eth_hw_addr_random(ndev); ndev 312 drivers/net/ethernet/xilinx/xilinx_axienet_main.c (ndev->dev_addr[0]) | ndev 313 drivers/net/ethernet/xilinx/xilinx_axienet_main.c (ndev->dev_addr[1] << 8) | ndev 314 drivers/net/ethernet/xilinx/xilinx_axienet_main.c (ndev->dev_addr[2] << 16) | ndev 315 drivers/net/ethernet/xilinx/xilinx_axienet_main.c (ndev->dev_addr[3] << 24)); ndev 319 drivers/net/ethernet/xilinx/xilinx_axienet_main.c (ndev->dev_addr[4] | ndev 320 drivers/net/ethernet/xilinx/xilinx_axienet_main.c (ndev->dev_addr[5] << 8)))); ndev 334 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static int netdev_set_mac_address(struct net_device *ndev, void *p) ndev 337 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_set_mac_address(ndev, addr->sa_data); ndev 352 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static void axienet_set_multicast_list(struct net_device *ndev) ndev 356 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 358 drivers/net/ethernet/xilinx/xilinx_axienet_main.c if (ndev->flags & (IFF_ALLMULTI | IFF_PROMISC) || ndev 359 drivers/net/ethernet/xilinx/xilinx_axienet_main.c netdev_mc_count(ndev) > XAE_MULTICAST_CAM_TABLE_NUM) { ndev 364 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->flags |= IFF_PROMISC; ndev 368 drivers/net/ethernet/xilinx/xilinx_axienet_main.c dev_info(&ndev->dev, "Promiscuous mode enabled.\n"); ndev 369 drivers/net/ethernet/xilinx/xilinx_axienet_main.c } else if (!netdev_mc_empty(ndev)) { ndev 373 drivers/net/ethernet/xilinx/xilinx_axienet_main.c netdev_for_each_mc_addr(ha, ndev) { ndev 408 drivers/net/ethernet/xilinx/xilinx_axienet_main.c dev_info(&ndev->dev, "Promiscuous mode disabled.\n"); ndev 423 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static void axienet_setoptions(struct net_device *ndev, u32 options) ndev 426 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 456 drivers/net/ethernet/xilinx/xilinx_axienet_main.c netdev_err(lp->ndev, "%s: DMA reset timeout!\n", ndev 474 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static void axienet_device_reset(struct net_device *ndev) ndev 477 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 485 drivers/net/ethernet/xilinx/xilinx_axienet_main.c if ((ndev->mtu > XAE_MTU) && ndev 486 drivers/net/ethernet/xilinx/xilinx_axienet_main.c (ndev->mtu <= XAE_JUMBO_MTU)) { ndev 487 drivers/net/ethernet/xilinx/xilinx_axienet_main.c lp->max_frm_size = ndev->mtu + VLAN_ETH_HLEN + ndev 494 drivers/net/ethernet/xilinx/xilinx_axienet_main.c if (axienet_dma_bd_init(ndev)) { ndev 495 drivers/net/ethernet/xilinx/xilinx_axienet_main.c netdev_err(ndev, "%s: descriptor allocation failed\n", ndev 514 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_setoptions(ndev, lp->options & ndev 516 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_set_mac_address(ndev, NULL); ndev 517 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_set_multicast_list(ndev); ndev 518 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_setoptions(ndev, lp->options); ndev 520 drivers/net/ethernet/xilinx/xilinx_axienet_main.c netif_trans_update(ndev); ndev 534 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static void axienet_start_xmit_done(struct net_device *ndev) ndev 538 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 545 drivers/net/ethernet/xilinx/xilinx_axienet_main.c dma_unmap_single(ndev->dev.parent, cur_p->phys, ndev 567 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->stats.tx_packets += packets; ndev 568 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->stats.tx_bytes += size; ndev 573 drivers/net/ethernet/xilinx/xilinx_axienet_main.c netif_wake_queue(ndev); ndev 613 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 621 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 628 drivers/net/ethernet/xilinx/xilinx_axienet_main.c if (netif_queue_stopped(ndev)) ndev 631 drivers/net/ethernet/xilinx/xilinx_axienet_main.c netif_stop_queue(ndev); ndev 640 drivers/net/ethernet/xilinx/xilinx_axienet_main.c netif_wake_queue(ndev); ndev 659 drivers/net/ethernet/xilinx/xilinx_axienet_main.c cur_p->phys = dma_map_single(ndev->dev.parent, skb->data, ndev 667 drivers/net/ethernet/xilinx/xilinx_axienet_main.c cur_p->phys = dma_map_single(ndev->dev.parent, ndev 695 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static void axienet_recv(struct net_device *ndev) ndev 702 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 711 drivers/net/ethernet/xilinx/xilinx_axienet_main.c dma_unmap_single(ndev->dev.parent, cur_p->phys, ndev 720 drivers/net/ethernet/xilinx/xilinx_axienet_main.c skb->protocol = eth_type_trans(skb, ndev); ndev 744 drivers/net/ethernet/xilinx/xilinx_axienet_main.c new_skb = netdev_alloc_skb_ip_align(ndev, lp->max_frm_size); ndev 748 drivers/net/ethernet/xilinx/xilinx_axienet_main.c cur_p->phys = dma_map_single(ndev->dev.parent, new_skb->data, ndev 760 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->stats.rx_packets += packets; ndev 761 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->stats.rx_bytes += size; ndev 781 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct net_device *ndev = _ndev; ndev 782 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 787 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_start_xmit_done(lp->ndev); ndev 793 drivers/net/ethernet/xilinx/xilinx_axienet_main.c dev_err(&ndev->dev, "DMA Tx error 0x%x\n", status); ndev 794 drivers/net/ethernet/xilinx/xilinx_axienet_main.c dev_err(&ndev->dev, "Current BD is at: 0x%x\n", ndev 830 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct net_device *ndev = _ndev; ndev 831 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 836 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_recv(lp->ndev); ndev 842 drivers/net/ethernet/xilinx/xilinx_axienet_main.c dev_err(&ndev->dev, "DMA Rx error 0x%x\n", status); ndev 843 drivers/net/ethernet/xilinx/xilinx_axienet_main.c dev_err(&ndev->dev, "Current BD is at: 0x%x\n", ndev 876 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct net_device *ndev = _ndev; ndev 877 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 885 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->stats.rx_missed_errors++; ndev 888 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->stats.rx_frame_errors++; ndev 909 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static int axienet_open(struct net_device *ndev) ndev 912 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 914 drivers/net/ethernet/xilinx/xilinx_axienet_main.c dev_dbg(&ndev->dev, "axienet_open()\n"); ndev 924 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_device_reset(ndev); ndev 944 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->name, ndev); ndev 949 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->name, ndev); ndev 955 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->name, ndev); ndev 963 drivers/net/ethernet/xilinx/xilinx_axienet_main.c free_irq(lp->rx_irq, ndev); ndev 965 drivers/net/ethernet/xilinx/xilinx_axienet_main.c free_irq(lp->tx_irq, ndev); ndev 984 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static int axienet_stop(struct net_device *ndev) ndev 988 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 990 drivers/net/ethernet/xilinx/xilinx_axienet_main.c dev_dbg(&ndev->dev, "axienet_close()\n"); ndev 995 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_setoptions(ndev, lp->options & ndev 1031 drivers/net/ethernet/xilinx/xilinx_axienet_main.c free_irq(lp->eth_irq, ndev); ndev 1032 drivers/net/ethernet/xilinx/xilinx_axienet_main.c free_irq(lp->tx_irq, ndev); ndev 1033 drivers/net/ethernet/xilinx/xilinx_axienet_main.c free_irq(lp->rx_irq, ndev); ndev 1035 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_dma_bd_release(ndev); ndev 1050 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static int axienet_change_mtu(struct net_device *ndev, int new_mtu) ndev 1052 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 1054 drivers/net/ethernet/xilinx/xilinx_axienet_main.c if (netif_running(ndev)) ndev 1061 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->mtu = new_mtu; ndev 1074 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static void axienet_poll_controller(struct net_device *ndev) ndev 1076 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 1079 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_rx_irq(lp->tx_irq, ndev); ndev 1080 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_tx_irq(lp->rx_irq, ndev); ndev 1107 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static void axienet_ethtools_get_drvinfo(struct net_device *ndev, ndev 1124 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static int axienet_ethtools_get_regs_len(struct net_device *ndev) ndev 1139 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static void axienet_ethtools_get_regs(struct net_device *ndev, ndev 1144 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 1192 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static void axienet_ethtools_get_ringparam(struct net_device *ndev, ndev 1195 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 1207 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static int axienet_ethtools_set_ringparam(struct net_device *ndev, ndev 1210 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 1218 drivers/net/ethernet/xilinx/xilinx_axienet_main.c if (netif_running(ndev)) ndev 1236 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_ethtools_get_pauseparam(struct net_device *ndev, ndev 1239 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 1257 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_ethtools_set_pauseparam(struct net_device *ndev, ndev 1260 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 1276 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static int axienet_ethtools_get_coalesce(struct net_device *ndev, ndev 1280 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 1301 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static int axienet_ethtools_set_coalesce(struct net_device *ndev, ndev 1304 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 1306 drivers/net/ethernet/xilinx/xilinx_axienet_main.c if (netif_running(ndev)) { ndev 1307 drivers/net/ethernet/xilinx/xilinx_axienet_main.c netdev_err(ndev, ndev 1342 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_ethtools_get_link_ksettings(struct net_device *ndev, ndev 1345 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 1351 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_ethtools_set_link_ksettings(struct net_device *ndev, ndev 1354 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 1378 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct net_device *ndev = to_net_dev(config->dev); ndev 1379 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 1385 drivers/net/ethernet/xilinx/xilinx_axienet_main.c netdev_warn(ndev, "Cannot use PHY mode %s, supported: %s\n", ndev 1411 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct net_device *ndev = to_net_dev(config->dev); ndev 1412 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 1446 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct net_device *ndev = to_net_dev(config->dev); ndev 1447 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 1464 drivers/net/ethernet/xilinx/xilinx_axienet_main.c dev_err(&ndev->dev, ndev 1519 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct net_device *ndev = lp->ndev; ndev 1522 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_setoptions(ndev, lp->options & ndev 1539 drivers/net/ethernet/xilinx/xilinx_axienet_main.c dma_unmap_single(ndev->dev.parent, cur_p->phys, ndev 1629 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_setoptions(ndev, lp->options & ndev 1631 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_set_mac_address(ndev, NULL); ndev 1632 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_set_multicast_list(ndev); ndev 1633 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_setoptions(ndev, lp->options); ndev 1653 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct net_device *ndev; ndev 1658 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev = alloc_etherdev(sizeof(*lp)); ndev 1659 drivers/net/ethernet/xilinx/xilinx_axienet_main.c if (!ndev) ndev 1662 drivers/net/ethernet/xilinx/xilinx_axienet_main.c platform_set_drvdata(pdev, ndev); ndev 1664 drivers/net/ethernet/xilinx/xilinx_axienet_main.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 1665 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->flags &= ~IFF_MULTICAST; /* clear multicast */ ndev 1666 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->features = NETIF_F_SG; ndev 1667 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->netdev_ops = &axienet_netdev_ops; ndev 1668 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->ethtool_ops = &axienet_ethtool_ops; ndev 1671 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->min_mtu = 64; ndev 1672 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->max_mtu = XAE_JUMBO_MTU; ndev 1674 drivers/net/ethernet/xilinx/xilinx_axienet_main.c lp = netdev_priv(ndev); ndev 1675 drivers/net/ethernet/xilinx/xilinx_axienet_main.c lp->ndev = ndev; ndev 1701 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->features |= NETIF_F_IP_CSUM; ndev 1708 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->features |= NETIF_F_IP_CSUM; ndev 1742 drivers/net/ethernet/xilinx/xilinx_axienet_main.c netdev_warn(ndev, "Please upgrade your device tree binary blob to use phy-mode"); ndev 1820 drivers/net/ethernet/xilinx/xilinx_axienet_main.c axienet_set_mac_address(ndev, mac_addr); ndev 1847 drivers/net/ethernet/xilinx/xilinx_axienet_main.c lp->phylink_config.dev = &ndev->dev; ndev 1859 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ret = register_netdev(lp->ndev); ndev 1868 drivers/net/ethernet/xilinx/xilinx_axienet_main.c free_netdev(ndev); ndev 1875 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1876 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct axienet_local *lp = netdev_priv(ndev); ndev 1878 drivers/net/ethernet/xilinx/xilinx_axienet_main.c unregister_netdev(ndev); ndev 1891 drivers/net/ethernet/xilinx/xilinx_axienet_main.c free_netdev(ndev); ndev 1898 drivers/net/ethernet/xilinx/xilinx_axienet_main.c struct net_device *ndev = platform_get_drvdata(pdev); ndev 1901 drivers/net/ethernet/xilinx/xilinx_axienet_main.c netif_device_detach(ndev); ndev 1903 drivers/net/ethernet/xilinx/xilinx_axienet_main.c if (netif_running(ndev)) ndev 1904 drivers/net/ethernet/xilinx/xilinx_axienet_main.c dev_close(ndev); ndev 139 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c netdev_warn(lp->ndev, "Could not find CPU device node.\n"); ndev 145 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c netdev_warn(lp->ndev, "CPU clock-frequency property not found.\n"); ndev 150 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c netdev_info(lp->ndev, "Setting assumed host clock to %u\n", ndev 187 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c netdev_dbg(lp->ndev, ndev 128 drivers/net/ethernet/xilinx/xilinx_emaclite.c struct net_device *ndev; ndev 529 drivers/net/ethernet/xilinx/xilinx_emaclite.c dev_err(&lp->ndev->dev, "Exceeded transmit timeout of %lu ms\n", ndev 607 drivers/net/ethernet/xilinx/xilinx_emaclite.c dev_err(&lp->ndev->dev, "Could not allocate receive buffer\n"); ndev 762 drivers/net/ethernet/xilinx/xilinx_emaclite.c dev_dbg(&lp->ndev->dev, ndev 787 drivers/net/ethernet/xilinx/xilinx_emaclite.c dev_dbg(&lp->ndev->dev, ndev 838 drivers/net/ethernet/xilinx/xilinx_emaclite.c if (lp->ndev->mem_start != res.start) { ndev 891 drivers/net/ethernet/xilinx/xilinx_emaclite.c static void xemaclite_adjust_link(struct net_device *ndev) ndev 893 drivers/net/ethernet/xilinx/xilinx_emaclite.c struct net_local *lp = netdev_priv(ndev); ndev 928 drivers/net/ethernet/xilinx/xilinx_emaclite.c lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node, ndev 932 drivers/net/ethernet/xilinx/xilinx_emaclite.c dev_err(&lp->ndev->dev, "of_phy_connect() failed\n"); ndev 960 drivers/net/ethernet/xilinx/xilinx_emaclite.c dev_err(&lp->ndev->dev, "Could not allocate interrupt %d\n", ndev 1082 drivers/net/ethernet/xilinx/xilinx_emaclite.c static void xemaclite_ethtools_get_drvinfo(struct net_device *ndev, ndev 1113 drivers/net/ethernet/xilinx/xilinx_emaclite.c struct net_device *ndev = NULL; ndev 1123 drivers/net/ethernet/xilinx/xilinx_emaclite.c ndev = alloc_etherdev(sizeof(struct net_local)); ndev 1124 drivers/net/ethernet/xilinx/xilinx_emaclite.c if (!ndev) ndev 1127 drivers/net/ethernet/xilinx/xilinx_emaclite.c dev_set_drvdata(dev, ndev); ndev 1128 drivers/net/ethernet/xilinx/xilinx_emaclite.c SET_NETDEV_DEV(ndev, &ofdev->dev); ndev 1130 drivers/net/ethernet/xilinx/xilinx_emaclite.c lp = netdev_priv(ndev); ndev 1131 drivers/net/ethernet/xilinx/xilinx_emaclite.c lp->ndev = ndev; ndev 1141 drivers/net/ethernet/xilinx/xilinx_emaclite.c ndev->irq = res->start; ndev 1150 drivers/net/ethernet/xilinx/xilinx_emaclite.c ndev->mem_start = res->start; ndev 1151 drivers/net/ethernet/xilinx/xilinx_emaclite.c ndev->mem_end = res->end; ndev 1162 drivers/net/ethernet/xilinx/xilinx_emaclite.c ether_addr_copy(ndev->dev_addr, mac_address); ndev 1165 drivers/net/ethernet/xilinx/xilinx_emaclite.c eth_hw_addr_random(ndev); ndev 1173 drivers/net/ethernet/xilinx/xilinx_emaclite.c xemaclite_update_address(lp, ndev->dev_addr); ndev 1178 drivers/net/ethernet/xilinx/xilinx_emaclite.c dev_info(dev, "MAC address is now %pM\n", ndev->dev_addr); ndev 1180 drivers/net/ethernet/xilinx/xilinx_emaclite.c ndev->netdev_ops = &xemaclite_netdev_ops; ndev 1181 drivers/net/ethernet/xilinx/xilinx_emaclite.c ndev->ethtool_ops = &xemaclite_ethtool_ops; ndev 1182 drivers/net/ethernet/xilinx/xilinx_emaclite.c ndev->flags &= ~IFF_MULTICAST; ndev 1183 drivers/net/ethernet/xilinx/xilinx_emaclite.c ndev->watchdog_timeo = TX_TIMEOUT; ndev 1186 drivers/net/ethernet/xilinx/xilinx_emaclite.c rc = register_netdev(ndev); ndev 1195 drivers/net/ethernet/xilinx/xilinx_emaclite.c (unsigned int __force)ndev->mem_start, ndev 1196 drivers/net/ethernet/xilinx/xilinx_emaclite.c (unsigned int __force)lp->base_addr, ndev->irq); ndev 1200 drivers/net/ethernet/xilinx/xilinx_emaclite.c free_netdev(ndev); ndev 1216 drivers/net/ethernet/xilinx/xilinx_emaclite.c struct net_device *ndev = platform_get_drvdata(of_dev); ndev 1218 drivers/net/ethernet/xilinx/xilinx_emaclite.c struct net_local *lp = netdev_priv(ndev); ndev 1227 drivers/net/ethernet/xilinx/xilinx_emaclite.c unregister_netdev(ndev); ndev 1232 drivers/net/ethernet/xilinx/xilinx_emaclite.c free_netdev(ndev); ndev 1239 drivers/net/ethernet/xilinx/xilinx_emaclite.c xemaclite_poll_controller(struct net_device *ndev) ndev 1241 drivers/net/ethernet/xilinx/xilinx_emaclite.c disable_irq(ndev->irq); ndev 1242 drivers/net/ethernet/xilinx/xilinx_emaclite.c xemaclite_interrupt(ndev->irq, ndev); ndev 1243 drivers/net/ethernet/xilinx/xilinx_emaclite.c enable_irq(ndev->irq); ndev 461 drivers/net/hamradio/bpqether.c struct net_device *ndev; ndev 464 drivers/net/hamradio/bpqether.c ndev = alloc_netdev(sizeof(struct bpqdev), "bpq%d", NET_NAME_UNKNOWN, ndev 466 drivers/net/hamradio/bpqether.c if (!ndev) ndev 470 drivers/net/hamradio/bpqether.c bpq = netdev_priv(ndev); ndev 473 drivers/net/hamradio/bpqether.c bpq->axdev = ndev; ndev 478 drivers/net/hamradio/bpqether.c err = register_netdevice(ndev); ndev 488 drivers/net/hamradio/bpqether.c free_netdev(ndev); ndev 493 drivers/net/hamradio/bpqether.c static void bpq_free_device(struct net_device *ndev) ndev 495 drivers/net/hamradio/bpqether.c struct bpqdev *bpq = netdev_priv(ndev); ndev 500 drivers/net/hamradio/bpqether.c unregister_netdevice(ndev); ndev 156 drivers/net/hyperv/hyperv_net.h struct net_device *ndev; ndev 201 drivers/net/hyperv/hyperv_net.h int rndis_set_subchannel(struct net_device *ndev, ndev 213 drivers/net/hyperv/hyperv_net.h int rndis_filter_set_offload_params(struct net_device *ndev, ndev 216 drivers/net/hyperv/hyperv_net.h int rndis_filter_receive(struct net_device *ndev, ndev 221 drivers/net/hyperv/hyperv_net.h int rndis_filter_set_device_mac(struct netvsc_device *ndev, ndev 33 drivers/net/hyperv/netvsc.c void netvsc_switch_datapath(struct net_device *ndev, bool vf) ndev 35 drivers/net/hyperv/netvsc.c struct net_device_context *net_device_ctx = netdev_priv(ndev); ndev 49 drivers/net/hyperv/netvsc.c trace_nvsp_send(ndev, init_pkt); ndev 76 drivers/net/hyperv/netvsc.c ret = rndis_set_subchannel(rdev->ndev, nvdev, NULL); ndev 78 drivers/net/hyperv/netvsc.c netif_device_attach(rdev->ndev); ndev 138 drivers/net/hyperv/netvsc.c struct net_device *ndev) ndev 159 drivers/net/hyperv/netvsc.c trace_nvsp_send(ndev, revoke_packet); ndev 178 drivers/net/hyperv/netvsc.c netdev_err(ndev, "unable to send " ndev 188 drivers/net/hyperv/netvsc.c struct net_device *ndev) ndev 209 drivers/net/hyperv/netvsc.c trace_nvsp_send(ndev, revoke_packet); ndev 229 drivers/net/hyperv/netvsc.c netdev_err(ndev, "unable to send " ndev 239 drivers/net/hyperv/netvsc.c struct net_device *ndev) ndev 251 drivers/net/hyperv/netvsc.c netdev_err(ndev, ndev 261 drivers/net/hyperv/netvsc.c struct net_device *ndev) ndev 273 drivers/net/hyperv/netvsc.c netdev_err(ndev, ndev 300 drivers/net/hyperv/netvsc.c struct net_device *ndev = hv_get_drvdata(device); ndev 317 drivers/net/hyperv/netvsc.c netdev_err(ndev, ndev 335 drivers/net/hyperv/netvsc.c netdev_err(ndev, ndev 349 drivers/net/hyperv/netvsc.c trace_nvsp_send(ndev, init_packet); ndev 358 drivers/net/hyperv/netvsc.c netdev_err(ndev, ndev 368 drivers/net/hyperv/netvsc.c netdev_err(ndev, ndev 376 drivers/net/hyperv/netvsc.c netdev_dbg(ndev, "Receive sections: %u sub_allocs: size %u count: %u\n", ndev 403 drivers/net/hyperv/netvsc.c netdev_err(ndev, "unable to allocate send buffer of size %u\n", ndev 417 drivers/net/hyperv/netvsc.c netdev_err(ndev, ndev 430 drivers/net/hyperv/netvsc.c trace_nvsp_send(ndev, init_packet); ndev 439 drivers/net/hyperv/netvsc.c netdev_err(ndev, ndev 449 drivers/net/hyperv/netvsc.c netdev_err(ndev, "Unable to complete send buffer " ndev 464 drivers/net/hyperv/netvsc.c netdev_dbg(ndev, "Send section size: %d, Section count:%d\n", ndev 479 drivers/net/hyperv/netvsc.c netvsc_revoke_recv_buf(device, net_device, ndev); ndev 480 drivers/net/hyperv/netvsc.c netvsc_revoke_send_buf(device, net_device, ndev); ndev 481 drivers/net/hyperv/netvsc.c netvsc_teardown_recv_gpadl(device, net_device, ndev); ndev 482 drivers/net/hyperv/netvsc.c netvsc_teardown_send_gpadl(device, net_device, ndev); ndev 494 drivers/net/hyperv/netvsc.c struct net_device *ndev = hv_get_drvdata(device); ndev 501 drivers/net/hyperv/netvsc.c trace_nvsp_send(ndev, init_packet); ndev 525 drivers/net/hyperv/netvsc.c init_packet->msg.v2_msg.send_ndis_config.mtu = ndev->mtu + ETH_HLEN; ndev 538 drivers/net/hyperv/netvsc.c trace_nvsp_send(ndev, init_packet); ndev 552 drivers/net/hyperv/netvsc.c struct net_device *ndev = hv_get_drvdata(device); ndev 594 drivers/net/hyperv/netvsc.c trace_nvsp_send(ndev, init_packet); ndev 616 drivers/net/hyperv/netvsc.c struct net_device *ndev = hv_get_drvdata(device); ndev 617 drivers/net/hyperv/netvsc.c struct net_device_context *net_device_ctx = netdev_priv(ndev); ndev 626 drivers/net/hyperv/netvsc.c netvsc_revoke_recv_buf(device, net_device, ndev); ndev 628 drivers/net/hyperv/netvsc.c netvsc_teardown_recv_gpadl(device, net_device, ndev); ndev 630 drivers/net/hyperv/netvsc.c netvsc_revoke_send_buf(device, net_device, ndev); ndev 632 drivers/net/hyperv/netvsc.c netvsc_teardown_send_gpadl(device, net_device, ndev); ndev 644 drivers/net/hyperv/netvsc.c netdev_dbg(ndev, "net device safe to remove\n"); ndev 654 drivers/net/hyperv/netvsc.c netvsc_teardown_recv_gpadl(device, net_device, ndev); ndev 655 drivers/net/hyperv/netvsc.c netvsc_teardown_send_gpadl(device, net_device, ndev); ndev 671 drivers/net/hyperv/netvsc.c static void netvsc_send_tx_complete(struct net_device *ndev, ndev 678 drivers/net/hyperv/netvsc.c struct net_device_context *ndev_ctx = netdev_priv(ndev); ndev 710 drivers/net/hyperv/netvsc.c struct netdev_queue *txq = netdev_get_tx_queue(ndev, q_idx); ndev 721 drivers/net/hyperv/netvsc.c static void netvsc_send_completion(struct net_device *ndev, ndev 741 drivers/net/hyperv/netvsc.c netvsc_send_tx_complete(ndev, net_device, incoming_channel, ndev 746 drivers/net/hyperv/netvsc.c netdev_err(ndev, ndev 816 drivers/net/hyperv/netvsc.c struct net_device *ndev = hv_get_drvdata(device); ndev 817 drivers/net/hyperv/netvsc.c struct net_device_context *ndev_ctx = netdev_priv(ndev); ndev 818 drivers/net/hyperv/netvsc.c struct netdev_queue *txq = netdev_get_tx_queue(ndev, packet->q_idx); ndev 840 drivers/net/hyperv/netvsc.c trace_nvsp_send_pkt(ndev, out_channel, rpkt); ndev 868 drivers/net/hyperv/netvsc.c netdev_err(ndev, ndev 899 drivers/net/hyperv/netvsc.c int netvsc_send(struct net_device *ndev, ndev 905 drivers/net/hyperv/netvsc.c struct net_device_context *ndev_ctx = netdev_priv(ndev); ndev 963 drivers/net/hyperv/netvsc.c !netif_xmit_stopped(netdev_get_tx_queue(ndev, packet->q_idx)); ndev 1024 drivers/net/hyperv/netvsc.c static int send_recv_completions(struct net_device *ndev, ndev 1046 drivers/net/hyperv/netvsc.c struct net_device_context *ndev_ctx = netdev_priv(ndev); ndev 1079 drivers/net/hyperv/netvsc.c static void enq_receive_complete(struct net_device *ndev, ndev 1091 drivers/net/hyperv/netvsc.c send_recv_completions(ndev, nvdev, nvchan); ndev 1096 drivers/net/hyperv/netvsc.c netdev_err(ndev, "Recv_comp full buf q:%hd, tid:%llx\n", ndev 1109 drivers/net/hyperv/netvsc.c static int netvsc_receive(struct net_device *ndev, ndev 1115 drivers/net/hyperv/netvsc.c struct net_device_context *net_device_ctx = netdev_priv(ndev); ndev 1127 drivers/net/hyperv/netvsc.c netif_err(net_device_ctx, rx_err, ndev, ndev 1134 drivers/net/hyperv/netvsc.c netif_err(net_device_ctx, rx_err, ndev, ndev 1153 drivers/net/hyperv/netvsc.c netif_err(net_device_ctx, rx_err, ndev, ndev 1164 drivers/net/hyperv/netvsc.c trace_rndis_recv(ndev, q_idx, data); ndev 1167 drivers/net/hyperv/netvsc.c ret = rndis_filter_receive(ndev, net_device, ndev 1174 drivers/net/hyperv/netvsc.c enq_receive_complete(ndev, net_device, q_idx, ndev 1180 drivers/net/hyperv/netvsc.c static void netvsc_send_table(struct net_device *ndev, ndev 1185 drivers/net/hyperv/netvsc.c struct net_device_context *net_device_ctx = netdev_priv(ndev); ndev 1193 drivers/net/hyperv/netvsc.c netdev_err(ndev, "Received wrong send-table size:%u\n", count); ndev 1208 drivers/net/hyperv/netvsc.c netdev_err(ndev, "Received send-table offset too big:%u\n", ndev 1219 drivers/net/hyperv/netvsc.c static void netvsc_send_vf(struct net_device *ndev, ndev 1222 drivers/net/hyperv/netvsc.c struct net_device_context *net_device_ctx = netdev_priv(ndev); ndev 1226 drivers/net/hyperv/netvsc.c netdev_info(ndev, "VF slot %u %s\n", ndev 1231 drivers/net/hyperv/netvsc.c static void netvsc_receive_inband(struct net_device *ndev, ndev 1238 drivers/net/hyperv/netvsc.c netvsc_send_table(ndev, nvscdev, nvmsg, msglen); ndev 1242 drivers/net/hyperv/netvsc.c netvsc_send_vf(ndev, nvmsg); ndev 1250 drivers/net/hyperv/netvsc.c struct net_device *ndev, ndev 1258 drivers/net/hyperv/netvsc.c trace_nvsp_recv(ndev, channel, nvmsg); ndev 1262 drivers/net/hyperv/netvsc.c netvsc_send_completion(ndev, net_device, channel, ndev 1267 drivers/net/hyperv/netvsc.c return netvsc_receive(ndev, net_device, nvchan, ndev 1272 drivers/net/hyperv/netvsc.c netvsc_receive_inband(ndev, net_device, nvmsg, msglen); ndev 1276 drivers/net/hyperv/netvsc.c netdev_err(ndev, "unhandled packet type %d, tid %llx\n", ndev 1302 drivers/net/hyperv/netvsc.c struct net_device *ndev = hv_get_drvdata(device); ndev 1312 drivers/net/hyperv/netvsc.c ndev, nvchan->desc, budget); ndev 1317 drivers/net/hyperv/netvsc.c ret = send_recv_completions(ndev, net_device, nvchan); ndev 1366 drivers/net/hyperv/netvsc.c struct net_device *ndev = hv_get_drvdata(device); ndev 1367 drivers/net/hyperv/netvsc.c struct net_device_context *net_device_ctx = netdev_priv(ndev); ndev 1398 drivers/net/hyperv/netvsc.c netif_napi_add(ndev, &net_device->chan_table[0].napi, ndev 1407 drivers/net/hyperv/netvsc.c netdev_err(ndev, "unable to open channel: %d\n", ret); ndev 1412 drivers/net/hyperv/netvsc.c netdev_dbg(ndev, "hv_netvsc channel opened successfully\n"); ndev 1419 drivers/net/hyperv/netvsc.c netdev_err(ndev, ndev 102 drivers/net/hyperv/netvsc_drv.c struct net_device *ndev) ndev 107 drivers/net/hyperv/netvsc_drv.c netif_tx_wake_all_queues(ndev); ndev 186 drivers/net/hyperv/netvsc_drv.c struct net_device *ndev) ndev 193 drivers/net/hyperv/netvsc_drv.c netif_tx_disable(ndev); ndev 296 drivers/net/hyperv/netvsc_drv.c static inline int netvsc_get_tx_queue(struct net_device *ndev, ndev 299 drivers/net/hyperv/netvsc_drv.c const struct net_device_context *ndc = netdev_priv(ndev); ndev 325 drivers/net/hyperv/netvsc_drv.c static u16 netvsc_pick_tx(struct net_device *ndev, struct sk_buff *skb) ndev 329 drivers/net/hyperv/netvsc_drv.c if (q_idx < 0 || skb->ooo_okay || q_idx >= ndev->real_num_tx_queues) { ndev 336 drivers/net/hyperv/netvsc_drv.c q_idx = netvsc_get_tx_queue(ndev, skb, q_idx); ndev 342 drivers/net/hyperv/netvsc_drv.c static u16 netvsc_select_queue(struct net_device *ndev, struct sk_buff *skb, ndev 345 drivers/net/hyperv/netvsc_drv.c struct net_device_context *ndc = netdev_priv(ndev); ndev 365 drivers/net/hyperv/netvsc_drv.c txq = netvsc_pick_tx(ndev, skb); ndev 369 drivers/net/hyperv/netvsc_drv.c while (unlikely(txq >= ndev->real_num_tx_queues)) ndev 370 drivers/net/hyperv/netvsc_drv.c txq -= ndev->real_num_tx_queues; ndev 915 drivers/net/hyperv/netvsc_drv.c static int netvsc_detach(struct net_device *ndev, ndev 918 drivers/net/hyperv/netvsc_drv.c struct net_device_context *ndev_ctx = netdev_priv(ndev); ndev 927 drivers/net/hyperv/netvsc_drv.c if (netif_running(ndev)) { ndev 928 drivers/net/hyperv/netvsc_drv.c netvsc_tx_disable(nvdev, ndev); ndev 932 drivers/net/hyperv/netvsc_drv.c netdev_err(ndev, ndev 939 drivers/net/hyperv/netvsc_drv.c netdev_err(ndev, ndev 945 drivers/net/hyperv/netvsc_drv.c netif_device_detach(ndev); ndev 952 drivers/net/hyperv/netvsc_drv.c static int netvsc_attach(struct net_device *ndev, ndev 955 drivers/net/hyperv/netvsc_drv.c struct net_device_context *ndev_ctx = netdev_priv(ndev); ndev 966 drivers/net/hyperv/netvsc_drv.c ret = rndis_set_subchannel(ndev, nvdev, dev_info); ndev 977 drivers/net/hyperv/netvsc_drv.c netif_device_attach(ndev); ndev 980 drivers/net/hyperv/netvsc_drv.c netif_carrier_off(ndev); ndev 982 drivers/net/hyperv/netvsc_drv.c if (netif_running(ndev)) { ndev 989 drivers/net/hyperv/netvsc_drv.c netif_carrier_on(ndev); ndev 995 drivers/net/hyperv/netvsc_drv.c netif_device_detach(ndev); ndev 1109 drivers/net/hyperv/netvsc_drv.c static int netvsc_change_mtu(struct net_device *ndev, int mtu) ndev 1111 drivers/net/hyperv/netvsc_drv.c struct net_device_context *ndevctx = netdev_priv(ndev); ndev 1114 drivers/net/hyperv/netvsc_drv.c int orig_mtu = ndev->mtu; ndev 1133 drivers/net/hyperv/netvsc_drv.c ret = netvsc_detach(ndev, nvdev); ndev 1137 drivers/net/hyperv/netvsc_drv.c ndev->mtu = mtu; ndev 1139 drivers/net/hyperv/netvsc_drv.c ret = netvsc_attach(ndev, device_info); ndev 1144 drivers/net/hyperv/netvsc_drv.c ndev->mtu = orig_mtu; ndev 1146 drivers/net/hyperv/netvsc_drv.c if (netvsc_attach(ndev, device_info)) ndev 1147 drivers/net/hyperv/netvsc_drv.c netdev_err(ndev, "restoring mtu failed\n"); ndev 1300 drivers/net/hyperv/netvsc_drv.c static int netvsc_set_mac_addr(struct net_device *ndev, void *p) ndev 1302 drivers/net/hyperv/netvsc_drv.c struct net_device_context *ndc = netdev_priv(ndev); ndev 1308 drivers/net/hyperv/netvsc_drv.c err = eth_prepare_mac_addr_change(ndev, p); ndev 1323 drivers/net/hyperv/netvsc_drv.c eth_commit_mac_addr_change(ndev, p); ndev 1326 drivers/net/hyperv/netvsc_drv.c memcpy(addr->sa_data, ndev->dev_addr, ETH_ALEN); ndev 1625 drivers/net/hyperv/netvsc_drv.c netvsc_set_rxnfc(struct net_device *ndev, struct ethtool_rxnfc *info) ndev 1627 drivers/net/hyperv/netvsc_drv.c struct net_device_context *ndc = netdev_priv(ndev); ndev 1649 drivers/net/hyperv/netvsc_drv.c struct netvsc_device *ndev = rtnl_dereference(ndc->nvdev); ndev 1653 drivers/net/hyperv/netvsc_drv.c if (!ndev) ndev 1659 drivers/net/hyperv/netvsc_drv.c rndis_dev = ndev->extension; ndev 1675 drivers/net/hyperv/netvsc_drv.c struct netvsc_device *ndev = rtnl_dereference(ndc->nvdev); ndev 1679 drivers/net/hyperv/netvsc_drv.c if (!ndev) ndev 1685 drivers/net/hyperv/netvsc_drv.c rndis_dev = ndev->extension; ndev 1688 drivers/net/hyperv/netvsc_drv.c if (indir[i] >= ndev->num_chn) ndev 1726 drivers/net/hyperv/netvsc_drv.c static void netvsc_get_ringparam(struct net_device *ndev, ndev 1729 drivers/net/hyperv/netvsc_drv.c struct net_device_context *ndevctx = netdev_priv(ndev); ndev 1738 drivers/net/hyperv/netvsc_drv.c static int netvsc_set_ringparam(struct net_device *ndev, ndev 1741 drivers/net/hyperv/netvsc_drv.c struct net_device_context *ndevctx = netdev_priv(ndev); ndev 1771 drivers/net/hyperv/netvsc_drv.c ret = netvsc_detach(ndev, nvdev); ndev 1775 drivers/net/hyperv/netvsc_drv.c ret = netvsc_attach(ndev, device_info); ndev 1780 drivers/net/hyperv/netvsc_drv.c if (netvsc_attach(ndev, device_info)) ndev 1781 drivers/net/hyperv/netvsc_drv.c netdev_err(ndev, "restoring ringparam failed"); ndev 1789 drivers/net/hyperv/netvsc_drv.c static int netvsc_set_features(struct net_device *ndev, ndev 1792 drivers/net/hyperv/netvsc_drv.c netdev_features_t change = features ^ ndev->features; ndev 1793 drivers/net/hyperv/netvsc_drv.c struct net_device_context *ndevctx = netdev_priv(ndev); ndev 1815 drivers/net/hyperv/netvsc_drv.c ret = rndis_filter_set_offload_params(ndev, nvdev, &offloads); ndev 1819 drivers/net/hyperv/netvsc_drv.c ndev->features = features; ndev 1832 drivers/net/hyperv/netvsc_drv.c static u32 netvsc_get_msglevel(struct net_device *ndev) ndev 1834 drivers/net/hyperv/netvsc_drv.c struct net_device_context *ndev_ctx = netdev_priv(ndev); ndev 1839 drivers/net/hyperv/netvsc_drv.c static void netvsc_set_msglevel(struct net_device *ndev, u32 val) ndev 1841 drivers/net/hyperv/netvsc_drv.c struct net_device_context *ndev_ctx = netdev_priv(ndev); ndev 2014 drivers/net/hyperv/netvsc_drv.c struct net_device *ndev = rcu_dereference(skb->dev->rx_handler_data); ndev 2015 drivers/net/hyperv/netvsc_drv.c struct net_device_context *ndev_ctx = netdev_priv(ndev); ndev 2025 drivers/net/hyperv/netvsc_drv.c skb->dev = ndev; ndev 2036 drivers/net/hyperv/netvsc_drv.c struct net_device *ndev) ndev 2038 drivers/net/hyperv/netvsc_drv.c struct net_device_context *ndev_ctx = netdev_priv(ndev); ndev 2042 drivers/net/hyperv/netvsc_drv.c netvsc_vf_handle_frame, ndev); ndev 2050 drivers/net/hyperv/netvsc_drv.c ret = netdev_master_upper_dev_link(vf_netdev, ndev, ndev 2055 drivers/net/hyperv/netvsc_drv.c ndev->name, ret); ndev 2066 drivers/net/hyperv/netvsc_drv.c netdev_info(vf_netdev, "joined to %s\n", ndev->name); ndev 2075 drivers/net/hyperv/netvsc_drv.c static void __netvsc_vf_setup(struct net_device *ndev, ndev 2081 drivers/net/hyperv/netvsc_drv.c ret = dev_set_mtu(vf_netdev, ndev->mtu); ndev 2084 drivers/net/hyperv/netvsc_drv.c "unable to change mtu to %u\n", ndev->mtu); ndev 2087 drivers/net/hyperv/netvsc_drv.c dev_change_flags(vf_netdev, ndev->flags | IFF_SLAVE, NULL); ndev 2090 drivers/net/hyperv/netvsc_drv.c netif_addr_lock_bh(ndev); ndev 2091 drivers/net/hyperv/netvsc_drv.c dev_uc_sync(vf_netdev, ndev); ndev 2092 drivers/net/hyperv/netvsc_drv.c dev_mc_sync(vf_netdev, ndev); ndev 2093 drivers/net/hyperv/netvsc_drv.c netif_addr_unlock_bh(ndev); ndev 2095 drivers/net/hyperv/netvsc_drv.c if (netif_running(ndev)) { ndev 2110 drivers/net/hyperv/netvsc_drv.c struct net_device *ndev = hv_get_drvdata(ndev_ctx->device_ctx); ndev 2120 drivers/net/hyperv/netvsc_drv.c __netvsc_vf_setup(ndev, vf_netdev); ndev 2167 drivers/net/hyperv/netvsc_drv.c struct net_device *ndev; ndev 2173 drivers/net/hyperv/netvsc_drv.c ndev = get_netvsc_byslot(vf_netdev); ndev 2174 drivers/net/hyperv/netvsc_drv.c if (!ndev) ndev 2177 drivers/net/hyperv/netvsc_drv.c net_device_ctx = netdev_priv(ndev); ndev 2186 drivers/net/hyperv/netvsc_drv.c if (!net_eq(dev_net(ndev), dev_net(vf_netdev))) { ndev 2188 drivers/net/hyperv/netvsc_drv.c dev_net(ndev), "eth%d"); ndev 2192 drivers/net/hyperv/netvsc_drv.c ndev->name, ret); ndev 2196 drivers/net/hyperv/netvsc_drv.c ndev->name); ndev 2200 drivers/net/hyperv/netvsc_drv.c netdev_info(ndev, "VF registering: %s\n", vf_netdev->name); ndev 2202 drivers/net/hyperv/netvsc_drv.c if (netvsc_vf_join(vf_netdev, ndev) != 0) ndev 2208 drivers/net/hyperv/netvsc_drv.c vf_netdev->wanted_features = ndev->features; ndev 2219 drivers/net/hyperv/netvsc_drv.c struct net_device *ndev; ndev 2222 drivers/net/hyperv/netvsc_drv.c ndev = get_netvsc_byref(vf_netdev); ndev 2223 drivers/net/hyperv/netvsc_drv.c if (!ndev) ndev 2226 drivers/net/hyperv/netvsc_drv.c net_device_ctx = netdev_priv(ndev); ndev 2231 drivers/net/hyperv/netvsc_drv.c netvsc_switch_datapath(ndev, vf_is_up); ndev 2232 drivers/net/hyperv/netvsc_drv.c netdev_info(ndev, "Data path switched %s VF: %s\n", ndev 2240 drivers/net/hyperv/netvsc_drv.c struct net_device *ndev; ndev 2243 drivers/net/hyperv/netvsc_drv.c ndev = get_netvsc_byref(vf_netdev); ndev 2244 drivers/net/hyperv/netvsc_drv.c if (!ndev) ndev 2247 drivers/net/hyperv/netvsc_drv.c net_device_ctx = netdev_priv(ndev); ndev 2250 drivers/net/hyperv/netvsc_drv.c netdev_info(ndev, "VF unregistering: %s\n", vf_netdev->name); ndev 2253 drivers/net/hyperv/netvsc_drv.c netdev_upper_dev_unlink(vf_netdev, ndev); ndev 43 drivers/net/hyperv/netvsc_trace.h TP_PROTO(const struct net_device *ndev, u16 q, ndev 45 drivers/net/hyperv/netvsc_trace.h TP_ARGS(ndev, q, msg), ndev 47 drivers/net/hyperv/netvsc_trace.h __string( name, ndev->name ) ndev 54 drivers/net/hyperv/netvsc_trace.h __assign_str(name, ndev->name); ndev 66 drivers/net/hyperv/netvsc_trace.h TP_PROTO(const struct net_device *ndev, u16 q, ndev 68 drivers/net/hyperv/netvsc_trace.h TP_ARGS(ndev, q, msg) ndev 72 drivers/net/hyperv/netvsc_trace.h TP_PROTO(const struct net_device *ndev, u16 q, ndev 74 drivers/net/hyperv/netvsc_trace.h TP_ARGS(ndev, q, msg) ndev 116 drivers/net/hyperv/netvsc_trace.h TP_PROTO(const struct net_device *ndev, ndev 118 drivers/net/hyperv/netvsc_trace.h TP_ARGS(ndev, msg), ndev 120 drivers/net/hyperv/netvsc_trace.h __string( name, ndev->name ) ndev 124 drivers/net/hyperv/netvsc_trace.h __assign_str(name, ndev->name); ndev 133 drivers/net/hyperv/netvsc_trace.h TP_PROTO(const struct net_device *ndev, ndev 136 drivers/net/hyperv/netvsc_trace.h TP_ARGS(ndev, chan, rpkt), ndev 138 drivers/net/hyperv/netvsc_trace.h __string( name, ndev->name ) ndev 145 drivers/net/hyperv/netvsc_trace.h __assign_str(name, ndev->name); ndev 158 drivers/net/hyperv/netvsc_trace.h TP_PROTO(const struct net_device *ndev, ndev 161 drivers/net/hyperv/netvsc_trace.h TP_ARGS(ndev, chan, msg), ndev 163 drivers/net/hyperv/netvsc_trace.h __string( name, ndev->name ) ndev 168 drivers/net/hyperv/netvsc_trace.h __assign_str(name, ndev->name); ndev 235 drivers/net/hyperv/rndis_filter.c trace_rndis_send(dev->ndev, 0, &req->request_msg); ndev 238 drivers/net/hyperv/rndis_filter.c ret = netvsc_send(dev->ndev, packet, NULL, pb, NULL); ndev 260 drivers/net/hyperv/rndis_filter.c static void rndis_filter_receive_response(struct net_device *ndev, ndev 273 drivers/net/hyperv/rndis_filter.c netdev_err(ndev, ndev 302 drivers/net/hyperv/rndis_filter.c netdev_err(ndev, ndev 322 drivers/net/hyperv/rndis_filter.c netdev_err(ndev, ndev 378 drivers/net/hyperv/rndis_filter.c static int rndis_filter_receive_data(struct net_device *ndev, ndev 403 drivers/net/hyperv/rndis_filter.c netdev_err(ndev, "rndis message buffer " ndev 449 drivers/net/hyperv/rndis_filter.c ret = netvsc_recv_callback(ndev, nvdev, nvchan); ndev 460 drivers/net/hyperv/rndis_filter.c int rndis_filter_receive(struct net_device *ndev, ndev 465 drivers/net/hyperv/rndis_filter.c struct net_device_context *net_device_ctx = netdev_priv(ndev); ndev 469 drivers/net/hyperv/rndis_filter.c dump_rndis_message(ndev, rndis_msg); ndev 473 drivers/net/hyperv/rndis_filter.c return rndis_filter_receive_data(ndev, net_dev, nvchan, ndev 479 drivers/net/hyperv/rndis_filter.c rndis_filter_receive_response(ndev, net_dev, rndis_msg); ndev 484 drivers/net/hyperv/rndis_filter.c netvsc_linkstatus_callback(ndev, rndis_msg); ndev 487 drivers/net/hyperv/rndis_filter.c netdev_err(ndev, ndev 609 drivers/net/hyperv/rndis_filter.c netdev_warn(dev->ndev, "invalid NDIS objtype %#x\n", ndev 615 drivers/net/hyperv/rndis_filter.c netdev_warn(dev->ndev, "invalid NDIS objrev %x\n", ndev 622 drivers/net/hyperv/rndis_filter.c netdev_warn(dev->ndev, ndev 709 drivers/net/hyperv/rndis_filter.c rndis_filter_set_offload_params(struct net_device *ndev, ndev 756 drivers/net/hyperv/rndis_filter.c netdev_err(ndev, "Fail to set offload on host side:0x%x\n", ndev 769 drivers/net/hyperv/rndis_filter.c struct net_device *ndev = rdev->ndev; ndev 770 drivers/net/hyperv/rndis_filter.c struct net_device_context *ndc = netdev_priv(ndev); ndev 828 drivers/net/hyperv/rndis_filter.c netdev_err(ndev, "Fail to set RSS parameters:0x%x\n", ndev 872 drivers/net/hyperv/rndis_filter.c ndc = netdev_priv(dev->ndev); ndev 924 drivers/net/hyperv/rndis_filter.c unsigned int flags = rdev->ndev->flags; ndev 929 drivers/net/hyperv/rndis_filter.c if (!netdev_mc_empty(rdev->ndev) || (flags & IFF_ALLMULTI)) ndev 1086 drivers/net/hyperv/rndis_filter.c struct net_device *ndev = ndev 1088 drivers/net/hyperv/rndis_filter.c struct net_device_context *ndev_ctx = netdev_priv(ndev); ndev 1117 drivers/net/hyperv/rndis_filter.c netdev_notice(ndev, "sub channel open failed: %d\n", ret); ndev 1127 drivers/net/hyperv/rndis_filter.c int rndis_set_subchannel(struct net_device *ndev, ndev 1132 drivers/net/hyperv/rndis_filter.c struct net_device_context *ndev_ctx = netdev_priv(ndev); ndev 1144 drivers/net/hyperv/rndis_filter.c trace_nvsp_send(ndev, init_packet); ndev 1152 drivers/net/hyperv/rndis_filter.c netdev_err(ndev, "sub channel allocate send failed: %d\n", ret); ndev 1158 drivers/net/hyperv/rndis_filter.c netdev_err(ndev, "sub channel request failed\n"); ndev 1178 drivers/net/hyperv/rndis_filter.c netif_set_real_num_tx_queues(ndev, nvdev->num_chn); ndev 1179 drivers/net/hyperv/rndis_filter.c netif_set_real_num_rx_queues(ndev, nvdev->num_chn); ndev 1187 drivers/net/hyperv/rndis_filter.c struct net_device *net = rndis_device->ndev; ndev 1337 drivers/net/hyperv/rndis_filter.c rndis_device->ndev = net; ndev 75 drivers/net/ntb_netdev.c struct net_device *ndev; ndev 85 drivers/net/ntb_netdev.c struct net_device *ndev = data; ndev 86 drivers/net/ntb_netdev.c struct ntb_netdev *dev = netdev_priv(ndev); ndev 88 drivers/net/ntb_netdev.c netdev_dbg(ndev, "Event %x, Link %x\n", link_is_up, ndev 93 drivers/net/ntb_netdev.c netif_carrier_on(ndev); ndev 95 drivers/net/ntb_netdev.c netif_carrier_off(ndev); ndev 102 drivers/net/ntb_netdev.c struct net_device *ndev = qp_data; ndev 110 drivers/net/ntb_netdev.c netdev_dbg(ndev, "%s: %d byte payload received\n", __func__, len); ndev 113 drivers/net/ntb_netdev.c ndev->stats.rx_errors++; ndev 114 drivers/net/ntb_netdev.c ndev->stats.rx_length_errors++; ndev 119 drivers/net/ntb_netdev.c skb->protocol = eth_type_trans(skb, ndev); ndev 123 drivers/net/ntb_netdev.c ndev->stats.rx_errors++; ndev 124 drivers/net/ntb_netdev.c ndev->stats.rx_dropped++; ndev 126 drivers/net/ntb_netdev.c ndev->stats.rx_packets++; ndev 127 drivers/net/ntb_netdev.c ndev->stats.rx_bytes += len; ndev 130 drivers/net/ntb_netdev.c skb = netdev_alloc_skb(ndev, ndev->mtu + ETH_HLEN); ndev 132 drivers/net/ntb_netdev.c ndev->stats.rx_errors++; ndev 133 drivers/net/ntb_netdev.c ndev->stats.rx_frame_errors++; ndev 138 drivers/net/ntb_netdev.c rc = ntb_transport_rx_enqueue(qp, skb, skb->data, ndev->mtu + ETH_HLEN); ndev 141 drivers/net/ntb_netdev.c ndev->stats.rx_errors++; ndev 142 drivers/net/ntb_netdev.c ndev->stats.rx_fifo_errors++; ndev 166 drivers/net/ntb_netdev.c static int ntb_netdev_maybe_stop_tx(struct net_device *ndev, ndev 169 drivers/net/ntb_netdev.c if (netif_queue_stopped(ndev) || ndev 173 drivers/net/ntb_netdev.c return __ntb_netdev_maybe_stop_tx(ndev, qp, size); ndev 179 drivers/net/ntb_netdev.c struct net_device *ndev = qp_data; ndev 181 drivers/net/ntb_netdev.c struct ntb_netdev *dev = netdev_priv(ndev); ndev 184 drivers/net/ntb_netdev.c if (!skb || !ndev) ndev 188 drivers/net/ntb_netdev.c ndev->stats.tx_packets++; ndev 189 drivers/net/ntb_netdev.c ndev->stats.tx_bytes += skb->len; ndev 191 drivers/net/ntb_netdev.c ndev->stats.tx_errors++; ndev 192 drivers/net/ntb_netdev.c ndev->stats.tx_aborted_errors++; ndev 202 drivers/net/ntb_netdev.c if (netif_queue_stopped(ndev)) ndev 203 drivers/net/ntb_netdev.c netif_wake_queue(ndev); ndev 208 drivers/net/ntb_netdev.c struct net_device *ndev) ndev 210 drivers/net/ntb_netdev.c struct ntb_netdev *dev = netdev_priv(ndev); ndev 213 drivers/net/ntb_netdev.c ntb_netdev_maybe_stop_tx(ndev, dev->qp, tx_stop); ndev 220 drivers/net/ntb_netdev.c ntb_netdev_maybe_stop_tx(ndev, dev->qp, tx_stop); ndev 225 drivers/net/ntb_netdev.c ndev->stats.tx_dropped++; ndev 226 drivers/net/ntb_netdev.c ndev->stats.tx_errors++; ndev 233 drivers/net/ntb_netdev.c struct net_device *ndev = dev->ndev; ndev 242 drivers/net/ntb_netdev.c if (netif_queue_stopped(ndev)) ndev 243 drivers/net/ntb_netdev.c netif_wake_queue(ndev); ndev 247 drivers/net/ntb_netdev.c static int ntb_netdev_open(struct net_device *ndev) ndev 249 drivers/net/ntb_netdev.c struct ntb_netdev *dev = netdev_priv(ndev); ndev 255 drivers/net/ntb_netdev.c skb = netdev_alloc_skb(ndev, ndev->mtu + ETH_HLEN); ndev 262 drivers/net/ntb_netdev.c ndev->mtu + ETH_HLEN); ndev 271 drivers/net/ntb_netdev.c netif_carrier_off(ndev); ndev 273 drivers/net/ntb_netdev.c netif_start_queue(ndev); ndev 283 drivers/net/ntb_netdev.c static int ntb_netdev_close(struct net_device *ndev) ndev 285 drivers/net/ntb_netdev.c struct ntb_netdev *dev = netdev_priv(ndev); ndev 299 drivers/net/ntb_netdev.c static int ntb_netdev_change_mtu(struct net_device *ndev, int new_mtu) ndev 301 drivers/net/ntb_netdev.c struct ntb_netdev *dev = netdev_priv(ndev); ndev 308 drivers/net/ntb_netdev.c if (!netif_running(ndev)) { ndev 309 drivers/net/ntb_netdev.c ndev->mtu = new_mtu; ndev 316 drivers/net/ntb_netdev.c if (ndev->mtu < new_mtu) { ndev 323 drivers/net/ntb_netdev.c skb = netdev_alloc_skb(ndev, new_mtu + ETH_HLEN); ndev 338 drivers/net/ntb_netdev.c ndev->mtu = new_mtu; ndev 350 drivers/net/ntb_netdev.c netdev_err(ndev, "Error changing MTU, device inoperable\n"); ndev 362 drivers/net/ntb_netdev.c static void ntb_get_drvinfo(struct net_device *ndev, ndev 365 drivers/net/ntb_netdev.c struct ntb_netdev *dev = netdev_priv(ndev); ndev 404 drivers/net/ntb_netdev.c struct net_device *ndev; ndev 414 drivers/net/ntb_netdev.c ndev = alloc_etherdev(sizeof(*dev)); ndev 415 drivers/net/ntb_netdev.c if (!ndev) ndev 418 drivers/net/ntb_netdev.c SET_NETDEV_DEV(ndev, client_dev); ndev 420 drivers/net/ntb_netdev.c dev = netdev_priv(ndev); ndev 421 drivers/net/ntb_netdev.c dev->ndev = ndev; ndev 423 drivers/net/ntb_netdev.c ndev->features = NETIF_F_HIGHDMA; ndev 425 drivers/net/ntb_netdev.c ndev->priv_flags |= IFF_LIVE_ADDR_CHANGE; ndev 427 drivers/net/ntb_netdev.c ndev->hw_features = ndev->features; ndev 428 drivers/net/ntb_netdev.c ndev->watchdog_timeo = msecs_to_jiffies(NTB_TX_TIMEOUT_MS); ndev 430 drivers/net/ntb_netdev.c eth_random_addr(ndev->perm_addr); ndev 431 drivers/net/ntb_netdev.c memcpy(ndev->dev_addr, ndev->perm_addr, ndev->addr_len); ndev 433 drivers/net/ntb_netdev.c ndev->netdev_ops = &ntb_netdev_ops; ndev 434 drivers/net/ntb_netdev.c ndev->ethtool_ops = &ntb_ethtool_ops; ndev 436 drivers/net/ntb_netdev.c ndev->min_mtu = 0; ndev 437 drivers/net/ntb_netdev.c ndev->max_mtu = ETH_MAX_MTU; ndev 439 drivers/net/ntb_netdev.c dev->qp = ntb_transport_create_queue(ndev, client_dev, ndev 446 drivers/net/ntb_netdev.c ndev->mtu = ntb_transport_max_size(dev->qp) - ETH_HLEN; ndev 448 drivers/net/ntb_netdev.c rc = register_netdev(ndev); ndev 452 drivers/net/ntb_netdev.c dev_set_drvdata(client_dev, ndev); ndev 453 drivers/net/ntb_netdev.c dev_info(&pdev->dev, "%s created\n", ndev->name); ndev 459 drivers/net/ntb_netdev.c free_netdev(ndev); ndev 465 drivers/net/ntb_netdev.c struct net_device *ndev = dev_get_drvdata(client_dev); ndev 466 drivers/net/ntb_netdev.c struct ntb_netdev *dev = netdev_priv(ndev); ndev 468 drivers/net/ntb_netdev.c unregister_netdev(ndev); ndev 470 drivers/net/ntb_netdev.c free_netdev(ndev); ndev 166 drivers/net/phy/at803x.c struct net_device *ndev = phydev->attached_dev; ndev 176 drivers/net/phy/at803x.c if (!ndev) ndev 180 drivers/net/phy/at803x.c mac = (const u8 *) ndev->dev_addr; ndev 94 drivers/net/phy/dp83822.c struct net_device *ndev = phydev->attached_dev; ndev 99 drivers/net/phy/dp83822.c mac = (const u8 *)ndev->dev_addr; ndev 100 drivers/net/phy/dp83tc811.c struct net_device *ndev = phydev->attached_dev; ndev 105 drivers/net/phy/dp83tc811.c mac = (const u8 *)ndev->dev_addr; ndev 1190 drivers/net/phy/phy.c int phy_ethtool_get_link_ksettings(struct net_device *ndev, ndev 1193 drivers/net/phy/phy.c struct phy_device *phydev = ndev->phydev; ndev 1204 drivers/net/phy/phy.c int phy_ethtool_set_link_ksettings(struct net_device *ndev, ndev 1207 drivers/net/phy/phy.c struct phy_device *phydev = ndev->phydev; ndev 1216 drivers/net/phy/phy.c int phy_ethtool_nway_reset(struct net_device *ndev) ndev 1218 drivers/net/phy/phy.c struct phy_device *phydev = ndev->phydev; ndev 443 drivers/net/phy/phylink.c struct net_device *ndev = pl->netdev; ndev 449 drivers/net/phy/phylink.c if (ndev) ndev 450 drivers/net/phy/phylink.c netif_carrier_on(ndev); ndev 461 drivers/net/phy/phylink.c struct net_device *ndev = pl->netdev; ndev 463 drivers/net/phy/phylink.c if (ndev) ndev 464 drivers/net/phy/phylink.c netif_carrier_off(ndev); ndev 474 drivers/net/phy/phylink.c struct net_device *ndev = pl->netdev; ndev 519 drivers/net/phy/phylink.c link_changed = (link_state.link != netif_carrier_ok(ndev)); ndev 72 drivers/net/rionet.c struct net_device *ndev; ndev 92 drivers/net/rionet.c static int rionet_rx_clean(struct net_device *ndev) ndev 96 drivers/net/rionet.c struct rionet_private *rnet = netdev_priv(ndev); ndev 111 drivers/net/rionet.c eth_type_trans(rnet->rx_skb[i], ndev); ndev 115 drivers/net/rionet.c ndev->stats.rx_dropped++; ndev 117 drivers/net/rionet.c ndev->stats.rx_packets++; ndev 118 drivers/net/rionet.c ndev->stats.rx_bytes += RIO_MAX_MSG_SIZE; ndev 126 drivers/net/rionet.c static void rionet_rx_fill(struct net_device *ndev, int end) ndev 129 drivers/net/rionet.c struct rionet_private *rnet = netdev_priv(ndev); ndev 145 drivers/net/rionet.c static int rionet_queue_tx_msg(struct sk_buff *skb, struct net_device *ndev, ndev 148 drivers/net/rionet.c struct rionet_private *rnet = netdev_priv(ndev); ndev 153 drivers/net/rionet.c ndev->stats.tx_packets++; ndev 154 drivers/net/rionet.c ndev->stats.tx_bytes += skb->len; ndev 157 drivers/net/rionet.c netif_stop_queue(ndev); ndev 169 drivers/net/rionet.c static int rionet_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 172 drivers/net/rionet.c struct rionet_private *rnet = netdev_priv(ndev); ndev 184 drivers/net/rionet.c netif_stop_queue(ndev); ndev 187 drivers/net/rionet.c ndev->name); ndev 197 drivers/net/rionet.c rionet_queue_tx_msg(skb, ndev, ndev 206 drivers/net/rionet.c rionet_queue_tx_msg(skb, ndev, ndev 215 drivers/net/rionet.c ndev->stats.tx_packets++; ndev 216 drivers/net/rionet.c ndev->stats.tx_bytes += skb->len; ndev 229 drivers/net/rionet.c struct net_device *ndev = dev_id; ndev 230 drivers/net/rionet.c struct rionet_private *rnet = netdev_priv(ndev); ndev 268 drivers/net/rionet.c struct net_device *ndev = dev_id; ndev 269 drivers/net/rionet.c struct rionet_private *rnet = netdev_priv(ndev); ndev 276 drivers/net/rionet.c if ((n = rionet_rx_clean(ndev)) != rnet->rx_slot) ndev 277 drivers/net/rionet.c rionet_rx_fill(ndev, n); ndev 283 drivers/net/rionet.c struct net_device *ndev = dev_id; ndev 284 drivers/net/rionet.c struct rionet_private *rnet = netdev_priv(ndev); ndev 303 drivers/net/rionet.c netif_wake_queue(ndev); ndev 308 drivers/net/rionet.c static int rionet_open(struct net_device *ndev) ndev 312 drivers/net/rionet.c struct rionet_private *rnet = netdev_priv(ndev); ndev 320 drivers/net/rionet.c (void *)ndev, ndev 327 drivers/net/rionet.c (void *)ndev, ndev 334 drivers/net/rionet.c (void *)ndev, ndev 344 drivers/net/rionet.c rionet_rx_fill(ndev, 0); ndev 350 drivers/net/rionet.c netif_carrier_on(ndev); ndev 351 drivers/net/rionet.c netif_start_queue(ndev); ndev 365 drivers/net/rionet.c static int rionet_close(struct net_device *ndev) ndev 367 drivers/net/rionet.c struct rionet_private *rnet = netdev_priv(ndev); ndev 374 drivers/net/rionet.c printk(KERN_INFO "%s: close %s\n", DRV_NAME, ndev->name); ndev 376 drivers/net/rionet.c netif_stop_queue(ndev); ndev 377 drivers/net/rionet.c netif_carrier_off(ndev); ndev 440 drivers/net/rionet.c static void rionet_get_drvinfo(struct net_device *ndev, ndev 443 drivers/net/rionet.c struct rionet_private *rnet = netdev_priv(ndev); ndev 451 drivers/net/rionet.c static u32 rionet_get_msglevel(struct net_device *ndev) ndev 453 drivers/net/rionet.c struct rionet_private *rnet = netdev_priv(ndev); ndev 458 drivers/net/rionet.c static void rionet_set_msglevel(struct net_device *ndev, u32 value) ndev 460 drivers/net/rionet.c struct rionet_private *rnet = netdev_priv(ndev); ndev 480 drivers/net/rionet.c static int rionet_setup_netdev(struct rio_mport *mport, struct net_device *ndev) ndev 497 drivers/net/rionet.c rnet = netdev_priv(ndev); ndev 503 drivers/net/rionet.c ndev->dev_addr[0] = 0x00; ndev 504 drivers/net/rionet.c ndev->dev_addr[1] = 0x01; ndev 505 drivers/net/rionet.c ndev->dev_addr[2] = 0x00; ndev 506 drivers/net/rionet.c ndev->dev_addr[3] = 0x01; ndev 507 drivers/net/rionet.c ndev->dev_addr[4] = device_id >> 8; ndev 508 drivers/net/rionet.c ndev->dev_addr[5] = device_id & 0xff; ndev 510 drivers/net/rionet.c ndev->netdev_ops = &rionet_netdev_ops; ndev 511 drivers/net/rionet.c ndev->mtu = RIONET_MAX_MTU; ndev 513 drivers/net/rionet.c ndev->min_mtu = ETH_MIN_MTU; ndev 514 drivers/net/rionet.c ndev->max_mtu = RIONET_MAX_MTU; ndev 515 drivers/net/rionet.c ndev->features = NETIF_F_LLTX; ndev 516 drivers/net/rionet.c SET_NETDEV_DEV(ndev, &mport->dev); ndev 517 drivers/net/rionet.c ndev->ethtool_ops = &rionet_ethtool_ops; ndev 524 drivers/net/rionet.c rc = register_netdev(ndev); ndev 532 drivers/net/rionet.c ndev->name, ndev 536 drivers/net/rionet.c ndev->dev_addr, ndev 548 drivers/net/rionet.c struct net_device *ndev = NULL; ndev 560 drivers/net/rionet.c if (!nets[netid].ndev) { ndev 573 drivers/net/rionet.c ndev = alloc_etherdev(sizeof(struct rionet_private)); ndev 574 drivers/net/rionet.c if (ndev == NULL) { ndev 579 drivers/net/rionet.c rc = rionet_setup_netdev(rdev->net->hport, ndev); ndev 583 drivers/net/rionet.c free_netdev(ndev); ndev 590 drivers/net/rionet.c nets[netid].ndev = ndev; ndev 601 drivers/net/rionet.c rnet = netdev_priv(nets[netid].ndev); ndev 645 drivers/net/rionet.c if (!nets[i].ndev) ndev 666 drivers/net/rionet.c struct net_device *ndev; ndev 673 drivers/net/rionet.c WARN(!nets[id].ndev, "%s called for mport without NDEV\n", ndev 676 drivers/net/rionet.c if (nets[id].ndev) { ndev 677 drivers/net/rionet.c ndev = nets[id].ndev; ndev 678 drivers/net/rionet.c netif_stop_queue(ndev); ndev 679 drivers/net/rionet.c unregister_netdev(ndev); ndev 685 drivers/net/rionet.c free_netdev(ndev); ndev 686 drivers/net/rionet.c nets[id].ndev = NULL; ndev 450 drivers/net/wan/fsl_ucc_hdlc.c struct net_device *dev = priv->ndev; ndev 515 drivers/net/wan/fsl_ucc_hdlc.c struct net_device *dev = priv->ndev; ndev 641 drivers/net/wan/fsl_ucc_hdlc.c struct net_device *dev = priv->ndev; ndev 728 drivers/net/wan/fsl_ucc_hdlc.c netif_device_attach(priv->ndev); ndev 886 drivers/net/wan/fsl_ucc_hdlc.c if (!netif_running(priv->ndev)) ndev 889 drivers/net/wan/fsl_ucc_hdlc.c netif_device_detach(priv->ndev); ndev 932 drivers/net/wan/fsl_ucc_hdlc.c if (!netif_running(priv->ndev)) ndev 1028 drivers/net/wan/fsl_ucc_hdlc.c netif_device_attach(priv->ndev); ndev 1047 drivers/net/wan/fsl_ucc_hdlc.c static void uhdlc_tx_timeout(struct net_device *ndev) ndev 1049 drivers/net/wan/fsl_ucc_hdlc.c netdev_err(ndev, "%s\n", __func__); ndev 1229 drivers/net/wan/fsl_ucc_hdlc.c uhdlc_priv->ndev = dev; ndev 70 drivers/net/wan/fsl_ucc_hdlc.h struct net_device *ndev; ndev 186 drivers/net/wan/lapbether.c static void lapbeth_data_transmit(struct net_device *ndev, struct sk_buff *skb) ndev 188 drivers/net/wan/lapbether.c struct lapbethdev *lapbeth = netdev_priv(ndev); ndev 200 drivers/net/wan/lapbether.c ndev->stats.tx_packets++; ndev 201 drivers/net/wan/lapbether.c ndev->stats.tx_bytes += size; ndev 316 drivers/net/wan/lapbether.c struct net_device *ndev; ndev 322 drivers/net/wan/lapbether.c ndev = alloc_netdev(sizeof(*lapbeth), "lapb%d", NET_NAME_UNKNOWN, ndev 324 drivers/net/wan/lapbether.c if (!ndev) ndev 327 drivers/net/wan/lapbether.c lapbeth = netdev_priv(ndev); ndev 328 drivers/net/wan/lapbether.c lapbeth->axdev = ndev; ndev 334 drivers/net/wan/lapbether.c if (register_netdevice(ndev)) ndev 343 drivers/net/wan/lapbether.c free_netdev(ndev); ndev 795 drivers/net/wireless/ath/ath6kl/cfg80211.c cfg80211_ibss_joined(vif->ndev, bssid, chan, GFP_KERNEL); ndev 803 drivers/net/wireless/ath/ath6kl/cfg80211.c cfg80211_connect_result(vif->ndev, bssid, ndev 817 drivers/net/wireless/ath/ath6kl/cfg80211.c cfg80211_roamed(vif->ndev, &roam_info, GFP_KERNEL); ndev 892 drivers/net/wireless/ath/ath6kl/cfg80211.c cfg80211_connect_result(vif->ndev, ndev 898 drivers/net/wireless/ath/ath6kl/cfg80211.c cfg80211_disconnected(vif->ndev, proto_reason, ndev 998 drivers/net/wireless/ath/ath6kl/cfg80211.c struct ath6kl *ar = ath6kl_priv(vif->ndev); ndev 1122 drivers/net/wireless/ath/ath6kl/cfg80211.c cfg80211_ch_switch_notify(vif->ndev, &chandef); ndev 1126 drivers/net/wireless/ath/ath6kl/cfg80211.c static int ath6kl_cfg80211_add_key(struct wiphy *wiphy, struct net_device *ndev, ndev 1131 drivers/net/wireless/ath/ath6kl/cfg80211.c struct ath6kl *ar = ath6kl_priv(ndev); ndev 1132 drivers/net/wireless/ath/ath6kl/cfg80211.c struct ath6kl_vif *vif = netdev_priv(ndev); ndev 1251 drivers/net/wireless/ath/ath6kl/cfg80211.c static int ath6kl_cfg80211_del_key(struct wiphy *wiphy, struct net_device *ndev, ndev 1255 drivers/net/wireless/ath/ath6kl/cfg80211.c struct ath6kl *ar = ath6kl_priv(ndev); ndev 1256 drivers/net/wireless/ath/ath6kl/cfg80211.c struct ath6kl_vif *vif = netdev_priv(ndev); ndev 1281 drivers/net/wireless/ath/ath6kl/cfg80211.c static int ath6kl_cfg80211_get_key(struct wiphy *wiphy, struct net_device *ndev, ndev 1287 drivers/net/wireless/ath/ath6kl/cfg80211.c struct ath6kl_vif *vif = netdev_priv(ndev); ndev 1317 drivers/net/wireless/ath/ath6kl/cfg80211.c struct net_device *ndev, ndev 1321 drivers/net/wireless/ath/ath6kl/cfg80211.c struct ath6kl *ar = ath6kl_priv(ndev); ndev 1322 drivers/net/wireless/ath/ath6kl/cfg80211.c struct ath6kl_vif *vif = netdev_priv(ndev); ndev 1373 drivers/net/wireless/ath/ath6kl/cfg80211.c cfg80211_michael_mic_failure(vif->ndev, vif->bssid, ndev 1557 drivers/net/wireless/ath/ath6kl/cfg80211.c struct net_device *ndev, ndev 1561 drivers/net/wireless/ath/ath6kl/cfg80211.c struct ath6kl_vif *vif = netdev_priv(ndev); ndev 2040 drivers/net/wireless/ath/ath6kl/cfg80211.c struct net_device *ndev = vif->ndev; ndev 2051 drivers/net/wireless/ath/ath6kl/cfg80211.c ETH_ALEN, 0, ndev->dev_addr, ndev 2062 drivers/net/wireless/ath/ath6kl/cfg80211.c if ((ndev->flags & IFF_ALLMULTI) || ndev 2063 drivers/net/wireless/ath/ath6kl/cfg80211.c (ndev->flags & IFF_MULTICAST && netdev_mc_count(ndev) > 0)) { ndev 2166 drivers/net/wireless/ath/ath6kl/cfg80211.c netif_stop_queue(vif->ndev); ndev 2193 drivers/net/wireless/ath/ath6kl/cfg80211.c in_dev = __in_dev_get_rtnl(vif->ndev); ndev 2299 drivers/net/wireless/ath/ath6kl/cfg80211.c netif_wake_queue(vif->ndev); ndev 2982 drivers/net/wireless/ath/ath6kl/cfg80211.c netif_carrier_off(vif->ndev); ndev 3031 drivers/net/wireless/ath/ath6kl/cfg80211.c struct ath6kl *ar = ath6kl_priv(vif->ndev); ndev 3052 drivers/net/wireless/ath/ath6kl/cfg80211.c struct ath6kl *ar = ath6kl_priv(vif->ndev); ndev 3187 drivers/net/wireless/ath/ath6kl/cfg80211.c struct ath6kl *ar = ath6kl_priv(vif->ndev); ndev 3483 drivers/net/wireless/ath/ath6kl/cfg80211.c cfg80211_connect_result(vif->ndev, vif->bssid, NULL, 0, ndev 3489 drivers/net/wireless/ath/ath6kl/cfg80211.c cfg80211_disconnected(vif->ndev, 0, NULL, 0, true, GFP_KERNEL); ndev 3503 drivers/net/wireless/ath/ath6kl/cfg80211.c netif_stop_queue(vif->ndev); ndev 3504 drivers/net/wireless/ath/ath6kl/cfg80211.c netif_carrier_off(vif->ndev); ndev 3606 drivers/net/wireless/ath/ath6kl/cfg80211.c netif_stop_queue(vif->ndev); ndev 3653 drivers/net/wireless/ath/ath6kl/cfg80211.c unregister_netdevice(vif->ndev); ndev 3784 drivers/net/wireless/ath/ath6kl/cfg80211.c struct net_device *ndev; ndev 3787 drivers/net/wireless/ath/ath6kl/cfg80211.c ndev = alloc_netdev(sizeof(*vif), name, name_assign_type, ether_setup); ndev 3788 drivers/net/wireless/ath/ath6kl/cfg80211.c if (!ndev) ndev 3791 drivers/net/wireless/ath/ath6kl/cfg80211.c vif = netdev_priv(ndev); ndev 3792 drivers/net/wireless/ath/ath6kl/cfg80211.c ndev->ieee80211_ptr = &vif->wdev; ndev 3795 drivers/net/wireless/ath/ath6kl/cfg80211.c vif->ndev = ndev; ndev 3796 drivers/net/wireless/ath/ath6kl/cfg80211.c SET_NETDEV_DEV(ndev, wiphy_dev(vif->wdev.wiphy)); ndev 3797 drivers/net/wireless/ath/ath6kl/cfg80211.c vif->wdev.netdev = ndev; ndev 3808 drivers/net/wireless/ath/ath6kl/cfg80211.c memcpy(ndev->dev_addr, ar->mac_addr, ETH_ALEN); ndev 3810 drivers/net/wireless/ath/ath6kl/cfg80211.c ndev->dev_addr[0] = (ndev->dev_addr[0] ^ (1 << fw_vif_idx)) | ndev 3814 drivers/net/wireless/ath/ath6kl/cfg80211.c ndev->dev_addr[4] ^= 0x80; ndev 3817 drivers/net/wireless/ath/ath6kl/cfg80211.c init_netdev(ndev); ndev 3824 drivers/net/wireless/ath/ath6kl/cfg80211.c netdev_set_default_ethtool_ops(ndev, &ath6kl_ethtool_ops); ndev 3826 drivers/net/wireless/ath/ath6kl/cfg80211.c if (register_netdevice(ndev)) ndev 3845 drivers/net/wireless/ath/ath6kl/cfg80211.c free_netdev(ndev); ndev 602 drivers/net/wireless/ath/ath6kl/core.h struct net_device *ndev; ndev 420 drivers/net/wireless/ath/ath6kl/main.c netif_carrier_on(vif->ndev); ndev 494 drivers/net/wireless/ath/ath6kl/main.c cfg80211_new_sta(vif->ndev, mac_addr, sinfo, GFP_KERNEL); ndev 496 drivers/net/wireless/ath/ath6kl/main.c netif_wake_queue(vif->ndev); ndev 648 drivers/net/wireless/ath/ath6kl/main.c netif_wake_queue(vif->ndev); ndev 654 drivers/net/wireless/ath/ath6kl/main.c netif_carrier_on(vif->ndev); ndev 692 drivers/net/wireless/ath/ath6kl/main.c cfg80211_michael_mic_failure(vif->ndev, sta->mac, ndev 909 drivers/net/wireless/ath/ath6kl/main.c ath6kl_data_tx(skb, vif->ndev); ndev 953 drivers/net/wireless/ath/ath6kl/main.c ath6kl_data_tx(skb, vif->ndev); ndev 982 drivers/net/wireless/ath/ath6kl/main.c cfg80211_conn_failed(vif->ndev, bssid, ndev 989 drivers/net/wireless/ath/ath6kl/main.c cfg80211_conn_failed(vif->ndev, bssid, ndev 1011 drivers/net/wireless/ath/ath6kl/main.c cfg80211_del_sta(vif->ndev, bssid, GFP_KERNEL); ndev 1014 drivers/net/wireless/ath/ath6kl/main.c if (memcmp(vif->ndev->dev_addr, bssid, ETH_ALEN) == 0) { ndev 1057 drivers/net/wireless/ath/ath6kl/main.c netif_carrier_off(vif->ndev); ndev 1066 drivers/net/wireless/ath/ath6kl/main.c netif_stop_queue(vif->ndev); ndev 1151 drivers/net/wireless/ath/ath6kl/main.c static void ath6kl_set_multicast_list(struct net_device *ndev) ndev 1153 drivers/net/wireless/ath/ath6kl/main.c struct ath6kl_vif *vif = netdev_priv(ndev); ndev 1155 drivers/net/wireless/ath/ath6kl/main.c int mc_count = netdev_mc_count(ndev); ndev 1167 drivers/net/wireless/ath/ath6kl/main.c mc_all_on = !!(ndev->flags & IFF_PROMISC) || ndev 1168 drivers/net/wireless/ath/ath6kl/main.c !!(ndev->flags & IFF_ALLMULTI) || ndev 1181 drivers/net/wireless/ath/ath6kl/main.c if (!(ndev->flags & IFF_MULTICAST)) { ndev 1206 drivers/net/wireless/ath/ath6kl/main.c netdev_for_each_mc_addr(ha, ndev) { ndev 1238 drivers/net/wireless/ath/ath6kl/main.c netdev_for_each_mc_addr(ha, ndev) { ndev 632 drivers/net/wireless/ath/ath6kl/txrx.c netif_stop_queue(vif->ndev); ndev 765 drivers/net/wireless/ath/ath6kl/txrx.c vif->ndev->stats.tx_errors++; ndev 781 drivers/net/wireless/ath/ath6kl/txrx.c vif->ndev->stats.tx_packets++; ndev 782 drivers/net/wireless/ath/ath6kl/txrx.c vif->ndev->stats.tx_bytes += skb->len; ndev 803 drivers/net/wireless/ath/ath6kl/txrx.c netif_wake_queue(vif->ndev); ndev 1282 drivers/net/wireless/ath/ath6kl/txrx.c ath6kl_data_tx(skb, vif->ndev); ndev 1363 drivers/net/wireless/ath/ath6kl/txrx.c vif->ndev->stats.rx_packets++; ndev 1364 drivers/net/wireless/ath/ath6kl/txrx.c vif->ndev->stats.rx_bytes += packet->act_len; ndev 1368 drivers/net/wireless/ath/ath6kl/txrx.c skb->dev = vif->ndev; ndev 1373 drivers/net/wireless/ath/ath6kl/txrx.c ath6kl_deliver_frames_to_nw_stack(vif->ndev, skb); ndev 1393 drivers/net/wireless/ath/ath6kl/txrx.c vif->ndev->stats.rx_errors++; ndev 1394 drivers/net/wireless/ath/ath6kl/txrx.c vif->ndev->stats.rx_length_errors++; ndev 1487 drivers/net/wireless/ath/ath6kl/txrx.c ath6kl_data_tx(skbuff, vif->ndev); ndev 1494 drivers/net/wireless/ath/ath6kl/txrx.c ath6kl_data_tx(skbuff, vif->ndev); ndev 1560 drivers/net/wireless/ath/ath6kl/txrx.c if (!(vif->ndev->flags & IFF_UP)) { ndev 1591 drivers/net/wireless/ath/ath6kl/txrx.c ath6kl_data_tx(skb1, vif->ndev); ndev 1617 drivers/net/wireless/ath/ath6kl/txrx.c vif->ndev->stats.multicast++; ndev 1620 drivers/net/wireless/ath/ath6kl/txrx.c ath6kl_deliver_frames_to_nw_stack(vif->ndev, skb); ndev 1753 drivers/net/wireless/ath/ath6kl/txrx.c aggr_conn->dev = vif->ndev; ndev 867 drivers/net/wireless/ath/ath6kl/wmi.c struct net_device *dev = vif->ndev; ndev 1312 drivers/net/wireless/ath/ath6kl/wmi.c cfg80211_pmksa_candidate_notify(vif->ndev, i, ndev 1607 drivers/net/wireless/ath/ath6kl/wmi.c cfg80211_cqm_txe_notify(vif->ndev, vif->bssid, pkts, ndev 525 drivers/net/wireless/ath/wil6210/cfg80211.c struct net_device *ndev, ndev 528 drivers/net/wireless/ath/wil6210/cfg80211.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 666 drivers/net/wireless/ath/wil6210/cfg80211.c struct net_device *ndev_main = wil->main_ndev, *ndev; ndev 712 drivers/net/wireless/ath/wil6210/cfg80211.c ndev = vif_to_ndev(vif); ndev 713 drivers/net/wireless/ath/wil6210/cfg80211.c ether_addr_copy(ndev->perm_addr, ndev_main->perm_addr); ndev 715 drivers/net/wireless/ath/wil6210/cfg80211.c ether_addr_copy(ndev->dev_addr, params->macaddr); ndev 717 drivers/net/wireless/ath/wil6210/cfg80211.c ether_addr_copy(ndev->dev_addr, ndev_main->perm_addr); ndev 718 drivers/net/wireless/ath/wil6210/cfg80211.c ndev->dev_addr[0] = (ndev->dev_addr[0] ^ (1 << vif->mid)) | ndev 722 drivers/net/wireless/ath/wil6210/cfg80211.c ether_addr_copy(wdev->address, ndev->dev_addr); ndev 740 drivers/net/wireless/ath/wil6210/cfg80211.c struct net_device *ndev; ndev 746 drivers/net/wireless/ath/wil6210/cfg80211.c ndev = vif_to_ndev(vif); ndev 747 drivers/net/wireless/ath/wil6210/cfg80211.c if (netif_carrier_ok(ndev)) { ndev 755 drivers/net/wireless/ath/wil6210/cfg80211.c netif_carrier_off(ndev); ndev 810 drivers/net/wireless/ath/wil6210/cfg80211.c struct net_device *ndev, ndev 815 drivers/net/wireless/ath/wil6210/cfg80211.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 833 drivers/net/wireless/ath/wil6210/cfg80211.c if (!wil_has_other_active_ifaces(wil, ndev, true, false) && ndev 834 drivers/net/wireless/ath/wil6210/cfg80211.c netif_running(ndev) && !wil_is_recovery_blocked(wil) && ndev 867 drivers/net/wireless/ath/wil6210/cfg80211.c rc = wmi_port_allocate(wil, vif->mid, ndev->dev_addr, type); ndev 1116 drivers/net/wireless/ath/wil6210/cfg80211.c struct net_device *ndev, ndev 1120 drivers/net/wireless/ath/wil6210/cfg80211.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 1201 drivers/net/wireless/ath/wil6210/cfg80211.c struct net_device *ndev, ndev 1205 drivers/net/wireless/ath/wil6210/cfg80211.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 1299 drivers/net/wireless/ath/wil6210/cfg80211.c rc = wil_ft_connect(wiphy, ndev, sme); ndev 1357 drivers/net/wireless/ath/wil6210/cfg80211.c netif_carrier_on(ndev); ndev 1358 drivers/net/wireless/ath/wil6210/cfg80211.c if (!wil_has_other_active_ifaces(wil, ndev, false, true)) ndev 1375 drivers/net/wireless/ath/wil6210/cfg80211.c struct net_device *ndev, ndev 1380 drivers/net/wireless/ath/wil6210/cfg80211.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 1610 drivers/net/wireless/ath/wil6210/cfg80211.c struct net_device *ndev, ndev 1616 drivers/net/wireless/ath/wil6210/cfg80211.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 1687 drivers/net/wireless/ath/wil6210/cfg80211.c struct net_device *ndev, ndev 1691 drivers/net/wireless/ath/wil6210/cfg80211.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 1714 drivers/net/wireless/ath/wil6210/cfg80211.c struct net_device *ndev, ndev 1920 drivers/net/wireless/ath/wil6210/cfg80211.c struct net_device *ndev, ndev 1927 drivers/net/wireless/ath/wil6210/cfg80211.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 1929 drivers/net/wireless/ath/wil6210/cfg80211.c struct wireless_dev *wdev = ndev->ieee80211_ptr; ndev 1968 drivers/net/wireless/ath/wil6210/cfg80211.c if (!wil_has_other_active_ifaces(wil, ndev, true, false)) { ndev 1992 drivers/net/wireless/ath/wil6210/cfg80211.c netif_carrier_on(ndev); ndev 1993 drivers/net/wireless/ath/wil6210/cfg80211.c if (!wil_has_other_active_ifaces(wil, ndev, false, true)) ndev 2010 drivers/net/wireless/ath/wil6210/cfg80211.c netif_carrier_off(ndev); ndev 2011 drivers/net/wireless/ath/wil6210/cfg80211.c if (!wil_has_other_active_ifaces(wil, ndev, false, true)) ndev 2025 drivers/net/wireless/ath/wil6210/cfg80211.c struct net_device *ndev; ndev 2032 drivers/net/wireless/ath/wil6210/cfg80211.c ndev = vif_to_ndev(vif); ndev 2046 drivers/net/wireless/ath/wil6210/cfg80211.c rc = _wil_cfg80211_start_ap(wiphy, ndev, ndev 2063 drivers/net/wireless/ath/wil6210/cfg80211.c rc = wil_cfg80211_add_key(wiphy, ndev, vif->gtk_index, false, ndev 2072 drivers/net/wireless/ath/wil6210/cfg80211.c struct net_device *ndev, ndev 2076 drivers/net/wireless/ath/wil6210/cfg80211.c struct wireless_dev *wdev = ndev->ieee80211_ptr; ndev 2077 drivers/net/wireless/ath/wil6210/cfg80211.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 2097 drivers/net/wireless/ath/wil6210/cfg80211.c rc = _wil_cfg80211_start_ap(wiphy, ndev, vif->ssid, ndev 2112 drivers/net/wireless/ath/wil6210/cfg80211.c struct net_device *ndev, ndev 2167 drivers/net/wireless/ath/wil6210/cfg80211.c rc = _wil_cfg80211_start_ap(wiphy, ndev, ndev 2177 drivers/net/wireless/ath/wil6210/cfg80211.c struct net_device *ndev) ndev 2180 drivers/net/wireless/ath/wil6210/cfg80211.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 2185 drivers/net/wireless/ath/wil6210/cfg80211.c netif_carrier_off(ndev); ndev 2186 drivers/net/wireless/ath/wil6210/cfg80211.c last = !wil_has_other_active_ifaces(wil, ndev, false, true); ndev 2309 drivers/net/wireless/ath/wil6210/cfg80211.c struct net_device *ndev = vif_to_ndev(vif); ndev 2316 drivers/net/wireless/ath/wil6210/cfg80211.c cfg80211_probe_status(ndev, sta->addr, req->cookie, alive, ndev 1475 drivers/net/wireless/ath/wil6210/debugfs.c struct net_device *ndev = wil->main_ndev; ndev 1480 drivers/net/wireless/ath/wil6210/debugfs.c ulong rxf = ndev->stats.rx_packets; ndev 1481 drivers/net/wireless/ath/wil6210/debugfs.c ulong txf = ndev->stats.tx_packets; ndev 1494 drivers/net/wireless/ath/wil6210/debugfs.c for (i = 0; i < ndev->num_tx_queues; i++) { ndev 1495 drivers/net/wireless/ath/wil6210/debugfs.c struct netdev_queue *txq = netdev_get_tx_queue(ndev, i); ndev 1711 drivers/net/wireless/ath/wil6210/debugfs.c struct net_device *ndev; ndev 1719 drivers/net/wireless/ath/wil6210/debugfs.c ndev = vif_to_ndev(vif); ndev 1720 drivers/net/wireless/ath/wil6210/debugfs.c seq_printf(s, "[%d] %pM %s\n", i, ndev->dev_addr, ndev 1721 drivers/net/wireless/ath/wil6210/debugfs.c ndev->name); ndev 25 drivers/net/wireless/ath/wil6210/ethtool.c static int wil_ethtoolops_begin(struct net_device *ndev) ndev 27 drivers/net/wireless/ath/wil6210/ethtool.c struct wil6210_priv *wil = ndev_to_wil(ndev); ndev 36 drivers/net/wireless/ath/wil6210/ethtool.c static void wil_ethtoolops_complete(struct net_device *ndev) ndev 38 drivers/net/wireless/ath/wil6210/ethtool.c struct wil6210_priv *wil = ndev_to_wil(ndev); ndev 45 drivers/net/wireless/ath/wil6210/ethtool.c static int wil_ethtoolops_get_coalesce(struct net_device *ndev, ndev 48 drivers/net/wireless/ath/wil6210/ethtool.c struct wil6210_priv *wil = ndev_to_wil(ndev); ndev 74 drivers/net/wireless/ath/wil6210/ethtool.c static int wil_ethtoolops_set_coalesce(struct net_device *ndev, ndev 77 drivers/net/wireless/ath/wil6210/ethtool.c struct wil6210_priv *wil = ndev_to_wil(ndev); ndev 78 drivers/net/wireless/ath/wil6210/ethtool.c struct wireless_dev *wdev = ndev->ieee80211_ptr; ndev 125 drivers/net/wireless/ath/wil6210/ethtool.c void wil_set_ethtoolops(struct net_device *ndev) ndev 127 drivers/net/wireless/ath/wil6210/ethtool.c ndev->ethtool_ops = &wil_ethtool_ops; ndev 259 drivers/net/wireless/ath/wil6210/main.c struct net_device *ndev = vif_to_ndev(vif); ndev 279 drivers/net/wireless/ath/wil6210/main.c cfg80211_del_sta(ndev, sta->addr, GFP_KERNEL); ndev 317 drivers/net/wireless/ath/wil6210/main.c struct net_device *ndev; ndev 320 drivers/net/wireless/ath/wil6210/main.c ndev = vif_to_ndev(vif); ndev 338 drivers/net/wireless/ath/wil6210/main.c !ether_addr_equal_unaligned(ndev->dev_addr, bssid)) { ndev 357 drivers/net/wireless/ath/wil6210/main.c netif_carrier_off(ndev); ndev 358 drivers/net/wireless/ath/wil6210/main.c if (!wil_has_other_active_ifaces(wil, ndev, false, true)) ndev 363 drivers/net/wireless/ath/wil6210/main.c cfg80211_disconnected(ndev, reason_code, ndev 369 drivers/net/wireless/ath/wil6210/main.c cfg80211_connect_result(ndev, bssid, NULL, 0, NULL, 0, ndev 429 drivers/net/wireless/ath/wil6210/main.c struct net_device *ndev; ndev 436 drivers/net/wireless/ath/wil6210/main.c ndev = vif_to_ndev(vif); ndev 452 drivers/net/wireless/ath/wil6210/main.c !ether_addr_equal_unaligned(ndev->dev_addr, bssid)) { ndev 476 drivers/net/wireless/ath/wil6210/main.c struct net_device *ndev = vif_to_ndev(vif); ndev 502 drivers/net/wireless/ath/wil6210/main.c netif_carrier_off(ndev); ndev 503 drivers/net/wireless/ath/wil6210/main.c cfg80211_connect_result(ndev, NULL, NULL, 0, NULL, 0, ndev 541 drivers/net/wireless/ath/wil6210/main.c struct net_device *ndev = wil->main_ndev; ndev 546 drivers/net/wireless/ath/wil6210/main.c if (!ndev || !(ndev->flags & IFF_UP)) { ndev 550 drivers/net/wireless/ath/wil6210/main.c wdev = ndev->ieee80211_ptr; ndev 1324 drivers/net/wireless/ath/wil6210/main.c struct net_device *ndev = wil->main_ndev; ndev 1369 drivers/net/wireless/ath/wil6210/main.c ether_addr_copy(ndev->perm_addr, mac); ndev 1371 drivers/net/wireless/ath/wil6210/main.c if (!is_valid_ether_addr(ndev->dev_addr)) ndev 1372 drivers/net/wireless/ath/wil6210/main.c ether_addr_copy(ndev->dev_addr, mac); ndev 1416 drivers/net/wireless/ath/wil6210/main.c struct net_device *ndev = wil->main_ndev; ndev 1442 drivers/net/wireless/ath/wil6210/main.c ether_addr_copy(ndev->perm_addr, mac); ndev 1444 drivers/net/wireless/ath/wil6210/main.c if (!is_valid_ether_addr(ndev->dev_addr)) ndev 1445 drivers/net/wireless/ath/wil6210/main.c ether_addr_copy(ndev->dev_addr, mac); ndev 1560 drivers/net/wireless/ath/wil6210/main.c struct net_device *ndev; ndev 1570 drivers/net/wireless/ath/wil6210/main.c ndev = vif_to_ndev(vif); ndev 1572 drivers/net/wireless/ath/wil6210/main.c rc = wmi_port_allocate(wil, vif->mid, ndev->dev_addr, ndev 1620 drivers/net/wireless/ath/wil6210/main.c struct net_device *ndev = wil->main_ndev; ndev 1622 drivers/net/wireless/ath/wil6210/main.c ether_addr_copy(ndev->perm_addr, mac); ndev 1623 drivers/net/wireless/ath/wil6210/main.c ether_addr_copy(ndev->dev_addr, ndev->perm_addr); ndev 1819 drivers/net/wireless/ath/wil6210/main.c struct net_device *ndev = wil->main_ndev; ndev 1820 drivers/net/wireless/ath/wil6210/main.c struct wireless_dev *wdev = ndev->ieee80211_ptr; ndev 1848 drivers/net/wireless/ath/wil6210/main.c ndev->type = ARPHRD_ETHER; ndev 1852 drivers/net/wireless/ath/wil6210/main.c ndev->type = ARPHRD_ETHER; ndev 1856 drivers/net/wireless/ath/wil6210/main.c ndev->type = ARPHRD_ETHER; ndev 1860 drivers/net/wireless/ath/wil6210/main.c ndev->type = ARPHRD_ETHER; ndev 1864 drivers/net/wireless/ath/wil6210/main.c ndev->type = ARPHRD_IEEE80211_RADIOTAP; ndev 1872 drivers/net/wireless/ath/wil6210/main.c wmi_set_mac_address(wil, ndev->dev_addr); ndev 24 drivers/net/wireless/ath/wil6210/netdev.c struct net_device *ndev, bool up, bool ok) ndev 34 drivers/net/wireless/ath/wil6210/netdev.c if (ndev_i != ndev) ndev 50 drivers/net/wireless/ath/wil6210/netdev.c static int wil_open(struct net_device *ndev) ndev 52 drivers/net/wireless/ath/wil6210/netdev.c struct wil6210_priv *wil = ndev_to_wil(ndev); ndev 63 drivers/net/wireless/ath/wil6210/netdev.c if (!wil_has_other_active_ifaces(wil, ndev, true, false)) { ndev 77 drivers/net/wireless/ath/wil6210/netdev.c static int wil_stop(struct net_device *ndev) ndev 79 drivers/net/wireless/ath/wil6210/netdev.c struct wil6210_priv *wil = ndev_to_wil(ndev); ndev 84 drivers/net/wireless/ath/wil6210/netdev.c if (!wil_has_other_active_ifaces(wil, ndev, true, false)) { ndev 226 drivers/net/wireless/ath/wil6210/netdev.c struct net_device *ndev = vif_to_ndev(vif); ndev 229 drivers/net/wireless/ath/wil6210/netdev.c free_netdev(ndev); ndev 232 drivers/net/wireless/ath/wil6210/netdev.c static void wil_ndev_destructor(struct net_device *ndev) ndev 234 drivers/net/wireless/ath/wil6210/netdev.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 312 drivers/net/wireless/ath/wil6210/netdev.c struct net_device *ndev; ndev 323 drivers/net/wireless/ath/wil6210/netdev.c ndev = alloc_netdev(sizeof(*vif), name, name_assign_type, ndev 325 drivers/net/wireless/ath/wil6210/netdev.c if (!ndev) { ndev 330 drivers/net/wireless/ath/wil6210/netdev.c wil->main_ndev = ndev; ndev 332 drivers/net/wireless/ath/wil6210/netdev.c ndev->priv_destructor = wil_ndev_destructor; ndev 333 drivers/net/wireless/ath/wil6210/netdev.c ndev->needs_free_netdev = true; ndev 336 drivers/net/wireless/ath/wil6210/netdev.c vif = ndev_to_vif(ndev); ndev 337 drivers/net/wireless/ath/wil6210/netdev.c vif->ndev = ndev; ndev 346 drivers/net/wireless/ath/wil6210/netdev.c ndev->netdev_ops = &wil_netdev_ops; ndev 347 drivers/net/wireless/ath/wil6210/netdev.c wil_set_ethtoolops(ndev); ndev 348 drivers/net/wireless/ath/wil6210/netdev.c ndev->ieee80211_ptr = wdev; ndev 349 drivers/net/wireless/ath/wil6210/netdev.c ndev->hw_features = NETIF_F_HW_CSUM | NETIF_F_RXCSUM | ndev 353 drivers/net/wireless/ath/wil6210/netdev.c ndev->features |= ndev->hw_features; ndev 354 drivers/net/wireless/ath/wil6210/netdev.c SET_NETDEV_DEV(ndev, wiphy_dev(wdev->wiphy)); ndev 355 drivers/net/wireless/ath/wil6210/netdev.c wdev->netdev = ndev; ndev 402 drivers/net/wireless/ath/wil6210/netdev.c struct net_device *ndev = wil->main_ndev; ndev 406 drivers/net/wireless/ath/wil6210/netdev.c if (!ndev) ndev 412 drivers/net/wireless/ath/wil6210/netdev.c wil_ndev_destructor(ndev); ndev 413 drivers/net/wireless/ath/wil6210/netdev.c free_netdev(ndev); ndev 420 drivers/net/wireless/ath/wil6210/netdev.c struct net_device *ndev = vif_to_ndev(vif); ndev 428 drivers/net/wireless/ath/wil6210/netdev.c dev_err(&ndev->dev, "VIF with mid %d already in use\n", ndev 433 drivers/net/wireless/ath/wil6210/netdev.c rc = wmi_port_allocate(wil, vif->mid, ndev->dev_addr, ndev 438 drivers/net/wireless/ath/wil6210/netdev.c rc = register_netdevice(ndev); ndev 440 drivers/net/wireless/ath/wil6210/netdev.c dev_err(&ndev->dev, "Failed to register netdev: %d\n", rc); ndev 453 drivers/net/wireless/ath/wil6210/netdev.c struct net_device *ndev = wil->main_ndev; ndev 454 drivers/net/wireless/ath/wil6210/netdev.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 502 drivers/net/wireless/ath/wil6210/netdev.c struct net_device *ndev; ndev 521 drivers/net/wireless/ath/wil6210/netdev.c ndev = vif_to_ndev(vif); ndev 525 drivers/net/wireless/ath/wil6210/netdev.c unregister_netdevice(ndev); ndev 555 drivers/net/wireless/ath/wil6210/netdev.c struct net_device *ndev = wil->main_ndev; ndev 556 drivers/net/wireless/ath/wil6210/netdev.c struct wireless_dev *wdev = ndev->ieee80211_ptr; ndev 44 drivers/net/wireless/ath/wil6210/rx_reorder.c static void wil_release_reorder_frame(struct net_device *ndev, ndev 56 drivers/net/wireless/ath/wil6210/rx_reorder.c wil_netif_rx_any(skb, ndev); ndev 62 drivers/net/wireless/ath/wil6210/rx_reorder.c static void wil_release_reorder_frames(struct net_device *ndev, ndev 76 drivers/net/wireless/ath/wil6210/rx_reorder.c wil_release_reorder_frame(ndev, r, index); ndev 81 drivers/net/wireless/ath/wil6210/rx_reorder.c static void wil_reorder_release(struct net_device *ndev, ndev 87 drivers/net/wireless/ath/wil6210/rx_reorder.c wil_release_reorder_frame(ndev, r, index); ndev 97 drivers/net/wireless/ath/wil6210/rx_reorder.c struct net_device *ndev; ndev 118 drivers/net/wireless/ath/wil6210/rx_reorder.c ndev = vif_to_ndev(vif); ndev 124 drivers/net/wireless/ath/wil6210/rx_reorder.c wil_netif_rx_any(skb, ndev); ndev 137 drivers/net/wireless/ath/wil6210/rx_reorder.c wil_netif_rx_any(skb, ndev); ndev 160 drivers/net/wireless/ath/wil6210/rx_reorder.c wil_netif_rx_any(skb, ndev); ndev 188 drivers/net/wireless/ath/wil6210/rx_reorder.c wil_release_reorder_frames(ndev, r, hseq); ndev 211 drivers/net/wireless/ath/wil6210/rx_reorder.c wil_netif_rx_any(skb, ndev); ndev 218 drivers/net/wireless/ath/wil6210/rx_reorder.c wil_reorder_release(ndev, r); ndev 229 drivers/net/wireless/ath/wil6210/rx_reorder.c struct net_device *ndev = vif_to_ndev(vif); ndev 246 drivers/net/wireless/ath/wil6210/rx_reorder.c wil_release_reorder_frames(ndev, r, seq); ndev 457 drivers/net/wireless/ath/wil6210/txrx.c struct net_device *ndev; ndev 511 drivers/net/wireless/ath/wil6210/txrx.c ndev = vif_to_ndev(vif); ndev 538 drivers/net/wireless/ath/wil6210/txrx.c if (ndev->type == ARPHRD_IEEE80211_RADIOTAP) ndev 542 drivers/net/wireless/ath/wil6210/txrx.c if (ndev->type != ARPHRD_ETHER) ndev 621 drivers/net/wireless/ath/wil6210/txrx.c struct net_device *ndev = wil->main_ndev; ndev 625 drivers/net/wireless/ath/wil6210/txrx.c int headroom = ndev->type == ARPHRD_IEEE80211_RADIOTAP ? ndev 907 drivers/net/wireless/ath/wil6210/txrx.c void wil_netif_rx(struct sk_buff *skb, struct net_device *ndev, int cid, ndev 911 drivers/net/wireless/ath/wil6210/txrx.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 912 drivers/net/wireless/ath/wil6210/txrx.c struct wil6210_priv *wil = ndev_to_wil(ndev); ndev 932 drivers/net/wireless/ath/wil6210/txrx.c if (mcast && ether_addr_equal(sa, ndev->dev_addr)) { ndev 963 drivers/net/wireless/ath/wil6210/txrx.c xmit_skb->dev = ndev; ndev 973 drivers/net/wireless/ath/wil6210/txrx.c skb->protocol = eth_type_trans(skb, ndev); ndev 974 drivers/net/wireless/ath/wil6210/txrx.c skb->dev = ndev; ndev 989 drivers/net/wireless/ath/wil6210/txrx.c ndev->stats.rx_dropped++; ndev 993 drivers/net/wireless/ath/wil6210/txrx.c ndev->stats.rx_packets++; ndev 995 drivers/net/wireless/ath/wil6210/txrx.c ndev->stats.rx_bytes += len; ndev 998 drivers/net/wireless/ath/wil6210/txrx.c ndev->stats.multicast++; ndev 1002 drivers/net/wireless/ath/wil6210/txrx.c void wil_netif_rx_any(struct sk_buff *skb, struct net_device *ndev) ndev 1005 drivers/net/wireless/ath/wil6210/txrx.c struct wil6210_priv *wil = ndev_to_wil(ndev); ndev 1017 drivers/net/wireless/ath/wil6210/txrx.c ndev->stats.rx_dropped++; ndev 1029 drivers/net/wireless/ath/wil6210/txrx.c wil_netif_rx(skb, ndev, cid, stats, true); ndev 1039 drivers/net/wireless/ath/wil6210/txrx.c struct net_device *ndev = wil->main_ndev; ndev 1040 drivers/net/wireless/ath/wil6210/txrx.c struct wireless_dev *wdev = ndev->ieee80211_ptr; ndev 1054 drivers/net/wireless/ath/wil6210/txrx.c skb->dev = ndev; ndev 1059 drivers/net/wireless/ath/wil6210/txrx.c wil_netif_rx_any(skb, ndev); ndev 2316 drivers/net/wireless/ath/wil6210/txrx.c netdev_tx_t wil_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 2318 drivers/net/wireless/ath/wil6210/txrx.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 2389 drivers/net/wireless/ath/wil6210/txrx.c ndev->stats.tx_dropped++; ndev 2430 drivers/net/wireless/ath/wil6210/txrx.c struct net_device *ndev = vif_to_ndev(vif); ndev 2501 drivers/net/wireless/ath/wil6210/txrx.c ndev->stats.tx_packets++; ndev 2502 drivers/net/wireless/ath/wil6210/txrx.c ndev->stats.tx_bytes += skb->len; ndev 2511 drivers/net/wireless/ath/wil6210/txrx.c ndev->stats.tx_errors++; ndev 688 drivers/net/wireless/ath/wil6210/txrx.h void wil_netif_rx_any(struct sk_buff *skb, struct net_device *ndev); ndev 689 drivers/net/wireless/ath/wil6210/txrx.h void wil_netif_rx(struct sk_buff *skb, struct net_device *ndev, int cid, ndev 1069 drivers/net/wireless/ath/wil6210/txrx_edma.c struct net_device *ndev; ndev 1106 drivers/net/wireless/ath/wil6210/txrx_edma.c ndev = vif_to_ndev(vif); ndev 1107 drivers/net/wireless/ath/wil6210/txrx_edma.c wil_netif_rx_any(skb, ndev); ndev 1163 drivers/net/wireless/ath/wil6210/txrx_edma.c struct net_device *ndev; ndev 1216 drivers/net/wireless/ath/wil6210/txrx_edma.c ndev = vif_to_ndev(vif); ndev 1254 drivers/net/wireless/ath/wil6210/txrx_edma.c ndev->stats.tx_packets++; ndev 1255 drivers/net/wireless/ath/wil6210/txrx_edma.c ndev->stats.tx_bytes += skb->len; ndev 1264 drivers/net/wireless/ath/wil6210/txrx_edma.c ndev->stats.tx_errors++; ndev 854 drivers/net/wireless/ath/wil6210/wil6210.h struct net_device *ndev; ndev 1082 drivers/net/wireless/ath/wil6210/wil6210.h #define vif_to_ndev(v) (v->ndev) ndev 1218 drivers/net/wireless/ath/wil6210/wil6210.h struct net_device *ndev, bool up, bool ok); ndev 1241 drivers/net/wireless/ath/wil6210/wil6210.h void wil_set_ethtoolops(struct net_device *ndev); ndev 1381 drivers/net/wireless/ath/wil6210/wil6210.h netdev_tx_t wil_start_xmit(struct sk_buff *skb, struct net_device *ndev); ndev 966 drivers/net/wireless/ath/wil6210/wmi.c struct net_device *ndev = vif_to_ndev(vif); ndev 1065 drivers/net/wireless/ath/wil6210/wmi.c netif_carrier_off(ndev); ndev 1068 drivers/net/wireless/ath/wil6210/wmi.c cfg80211_connect_result(ndev, evt->bssid, NULL, 0, ndev 1077 drivers/net/wireless/ath/wil6210/wmi.c cfg80211_connect_bss(ndev, evt->bssid, vif->bss, ndev 1090 drivers/net/wireless/ath/wil6210/wmi.c cfg80211_del_sta(ndev, evt->bssid, GFP_KERNEL); ndev 1107 drivers/net/wireless/ath/wil6210/wmi.c cfg80211_new_sta(ndev, evt->bssid, sinfo, GFP_KERNEL); ndev 1154 drivers/net/wireless/ath/wil6210/wmi.c struct net_device *ndev = vif_to_ndev(vif); ndev 1162 drivers/net/wireless/ath/wil6210/wmi.c cfg80211_cqm_pktloss_notify(ndev, evt->bssid, 0, ndev 1179 drivers/net/wireless/ath/wil6210/wmi.c struct net_device *ndev = vif_to_ndev(vif); ndev 1207 drivers/net/wireless/ath/wil6210/wmi.c ether_addr_copy(eth->h_dest, ndev->dev_addr); ndev 1211 drivers/net/wireless/ath/wil6210/wmi.c skb->protocol = eth_type_trans(skb, ndev); ndev 1213 drivers/net/wireless/ath/wil6210/wmi.c ndev->stats.rx_packets++; ndev 1214 drivers/net/wireless/ath/wil6210/wmi.c ndev->stats.rx_bytes += sz; ndev 1220 drivers/net/wireless/ath/wil6210/wmi.c ndev->stats.rx_dropped++; ndev 1636 drivers/net/wireless/ath/wil6210/wmi.c struct net_device *ndev = vif_to_ndev(vif); ndev 1713 drivers/net/wireless/ath/wil6210/wmi.c cfg80211_ft_event(ndev, &ft); ndev 1725 drivers/net/wireless/ath/wil6210/wmi.c struct net_device *ndev = vif_to_ndev(vif); ndev 1841 drivers/net/wireless/ath/wil6210/wmi.c cfg80211_roamed(ndev, &info, GFP_KERNEL); ndev 2596 drivers/net/wireless/ath/wil6210/wmi.c struct net_device *ndev = wil->main_ndev; ndev 2597 drivers/net/wireless/ath/wil6210/wmi.c struct wireless_dev *wdev = ndev->ieee80211_ptr; ndev 2598 drivers/net/wireless/ath/wil6210/wmi.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 3743 drivers/net/wireless/ath/wil6210/wmi.c struct net_device *ndev = wil->main_ndev; ndev 3744 drivers/net/wireless/ath/wil6210/wmi.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 3779 drivers/net/wireless/ath/wil6210/wmi.c struct net_device *ndev = wil->main_ndev; ndev 3780 drivers/net/wireless/ath/wil6210/wmi.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 3822 drivers/net/wireless/ath/wil6210/wmi.c struct net_device *ndev = wil->main_ndev; ndev 3823 drivers/net/wireless/ath/wil6210/wmi.c struct wil6210_vif *vif = ndev_to_vif(ndev); ndev 594 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c strncpy(ifp->ndev->name, name, sizeof(ifp->ndev->name) - 1); ndev 598 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c free_netdev(ifp->ndev); ndev 772 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev = wdev->netdev; ndev 773 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 806 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev = wdev->netdev; ndev 808 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (ndev && ndev == cfg_to_ndev(cfg)) ndev 815 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (ndev) { ndev 817 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c cfg->escan_info.ifp == netdev_priv(ndev)) ndev 818 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_notify_escan_complete(cfg, netdev_priv(ndev), ndev 821 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_iovar_int_set(netdev_priv(ndev), "mpc", 1); ndev 846 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_change_iface(struct wiphy *wiphy, struct net_device *ndev, ndev 851 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 935 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ndev->ieee80211_ptr->iftype = type; ndev 1153 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static s32 brcmf_set_rts(struct net_device *ndev, u32 rts_threshold) ndev 1155 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 1166 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static s32 brcmf_set_frag(struct net_device *ndev, u32 frag_threshold) ndev 1168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 1180 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static s32 brcmf_set_retry(struct net_device *ndev, u32 retry, bool l) ndev 1182 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 1198 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev = cfg_to_ndev(cfg); ndev 1199 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 1209 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_set_rts(ndev, cfg->conf->rts_threshold); ndev 1216 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_set_frag(ndev, cfg->conf->frag_threshold); ndev 1223 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_set_retry(ndev, cfg->conf->retry_long, true); ndev 1230 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_set_retry(ndev, cfg->conf->retry_short, false); ndev 1321 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_join_ibss(struct wiphy *wiphy, struct net_device *ndev, ndev 1325 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 1473 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_leave_ibss(struct wiphy *wiphy, struct net_device *ndev) ndev 1475 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 1494 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static s32 brcmf_set_wpa_version(struct net_device *ndev, ndev 1497 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 1498 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_profile *profile = ndev_to_prof(ndev); ndev 1521 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static s32 brcmf_set_auth_type(struct net_device *ndev, ndev 1524 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 1525 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_profile *profile = ndev_to_prof(ndev); ndev 1557 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_set_wsec_mode(struct net_device *ndev, ndev 1560 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 1561 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_profile *profile = ndev_to_prof(ndev); ndev 1634 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_set_key_mgmt(struct net_device *ndev, struct cfg80211_connect_params *sme) ndev 1636 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 1654 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_get(netdev_priv(ndev), "wpa_auth", &val); ndev 1742 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_fil_bsscfg_int_set(netdev_priv(ndev), "mfp", mfp); ndev 1746 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_bsscfg_int_set(netdev_priv(ndev), "wpa_auth", val); ndev 1756 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_set_sharedkey(struct net_device *ndev, ndev 1759 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 1761 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_cfg80211_profile *profile = ndev_to_prof(ndev); ndev 1880 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_connect(struct wiphy *wiphy, struct net_device *ndev, ndev 1884 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 1952 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_set_wpa_version(ndev, sme); ndev 1959 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_set_auth_type(ndev, sme); ndev 1965 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_set_wsec_mode(ndev, sme); ndev 1971 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_set_key_mgmt(ndev, sme); ndev 1977 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_set_sharedkey(ndev, sme); ndev 2101 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_disconnect(struct wiphy *wiphy, struct net_device *ndev, ndev 2105 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 2117 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c cfg80211_disconnected(ndev, reason_code, NULL, 0, true, GFP_KERNEL); ndev 2135 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev = cfg_to_ndev(cfg); ndev 2136 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 2208 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_config_default_key(struct wiphy *wiphy, struct net_device *ndev, ndev 2211 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 2242 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_del_key(struct wiphy *wiphy, struct net_device *ndev, ndev 2245 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 2279 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_add_key(struct wiphy *wiphy, struct net_device *ndev, ndev 2284 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 2305 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c return brcmf_cfg80211_del_key(wiphy, ndev, key_idx, pairwise, ndev 2390 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_get_key(struct wiphy *wiphy, struct net_device *ndev, u8 key_idx, ndev 2397 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 2447 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev, u8 key_idx) ndev 2449 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 2602 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_get_station(struct wiphy *wiphy, struct net_device *ndev, ndev 2606 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 2722 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_dump_station(struct wiphy *wiphy, struct net_device *ndev, ndev 2726 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 2746 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c return brcmf_cfg80211_get_station(wiphy, ndev, mac, sinfo); ndev 2752 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_set_power_mgmt(struct wiphy *wiphy, struct net_device *ndev, ndev 2758 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 2897 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev, const u8 *bssid) ndev 2925 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_cmd_data_get(netdev_priv(ndev), BRCMF_C_GET_BSS_INFO, ndev 3427 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev, ndev 3431 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 3453 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev, u64 reqid) ndev 3456 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 3644 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev = cfg_to_ndev(cfg); ndev 3645 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 3659 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_sched_scan_stop(cfg->wiphy, ifp->ndev, 0); ndev 3700 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_sched_scan_start(cfg->wiphy, ifp->ndev, ndev 3729 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev = cfg_to_ndev(cfg); ndev 3730 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 3743 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_sched_scan_stop(wiphy, ndev, 0); ndev 3802 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_set_pmksa(struct wiphy *wiphy, struct net_device *ndev, ndev 3806 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 3845 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_del_pmksa(struct wiphy *wiphy, struct net_device *ndev, ndev 3849 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 3887 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_flush_pmksa(struct wiphy *wiphy, struct net_device *ndev) ndev 3890 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 4461 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_start_ap(struct wiphy *wiphy, struct net_device *ndev, ndev 4466 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 4701 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c static int brcmf_cfg80211_stop_ap(struct wiphy *wiphy, struct net_device *ndev) ndev 4704 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 4764 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_change_beacon(struct wiphy *wiphy, struct net_device *ndev, ndev 4767 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 4778 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_del_station(struct wiphy *wiphy, struct net_device *ndev, ndev 4784 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 4810 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_change_station(struct wiphy *wiphy, struct net_device *ndev, ndev 4815 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 4996 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev = wdev->netdev; ndev 5004 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!ndev || drvr->bus_if->state != BRCMF_BUS_UP) ndev 5007 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_fil_iovar_int_get(netdev_priv(ndev), "chanspec", &chanspec); ndev 5128 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev, const u8 *peer, ndev 5141 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp = netdev_priv(ndev); ndev 5157 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev, ndev 5169 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp = netdev_priv(ndev); ndev 5182 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_cfg80211_set_rekey_data(struct wiphy *wiphy, struct net_device *ndev, ndev 5187 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 5337 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c void brcmf_cfg80211_free_netdev(struct net_device *ndev) ndev 5342 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp = netdev_priv(ndev); ndev 5496 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev, ndev 5499 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 5554 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c cfg80211_roamed(ndev, &roam_info, GFP_KERNEL); ndev 5564 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev, const struct brcmf_event_msg *e, ndev 5567 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 5591 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c cfg80211_connect_done(ndev, &conn_params, GFP_KERNEL); ndev 5601 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev, ndev 5613 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ndev != cfg_to_ndev(cfg)) { ndev 5634 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c cfg80211_new_sta(ndev, e->addr, sinfo, GFP_KERNEL); ndev 5640 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c cfg80211_del_sta(ndev, e->addr, GFP_KERNEL); ndev 5650 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev = ifp->ndev; ndev 5663 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_notify_connect_status_ap(cfg, ndev, e, data); ndev 5667 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_inform_ibss(cfg, ndev, e->addr); ndev 5670 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c cfg80211_ibss_joined(ndev, e->addr, chan, GFP_KERNEL); ndev 5676 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_bss_connect_done(cfg, ndev, e, true); ndev 5681 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_bss_connect_done(cfg, ndev, e, false); ndev 5684 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_init_prof(ndev_to_prof(ndev)); ndev 5685 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (ndev != cfg_to_ndev(cfg)) ndev 5694 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_bss_connect_done(cfg, ndev, e, false); ndev 5711 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_bss_roaming_done(cfg, ifp->ndev, e); ndev 5713 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_bss_connect_done(cfg, ifp->ndev, e, true); ndev 5733 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c cfg80211_michael_mic_failure(ifp->ndev, (u8 *)&e->addr, key_type, -1, ndev 5765 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (ifp->ndev) { ndev 5766 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c vif->wdev.netdev = ifp->ndev; ndev 5767 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp->ndev->ieee80211_ptr = &vif->wdev; ndev 5768 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c SET_NETDEV_DEV(ifp->ndev, wiphy_dev(cfg->wiphy)); ndev 6738 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev; ndev 6747 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ndev = cfg_to_ndev(cfg); ndev 6748 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c wdev = ndev->ieee80211_ptr; ndev 6749 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp = netdev_priv(ndev); ndev 6766 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c err = brcmf_cfg80211_change_iface(wdev->wiphy, ndev, wdev->iftype, ndev 6817 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c s32 brcmf_cfg80211_up(struct net_device *ndev) ndev 6819 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 6830 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c s32 brcmf_cfg80211_down(struct net_device *ndev) ndev 6832 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 7025 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c struct net_device *ndev = brcmf_get_ifp(drvr, 0)->ndev; ndev 7033 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (!ndev) { ndev 7053 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ifp = netdev_priv(ndev); ndev 7055 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c vif->wdev.netdev = ndev; ndev 7056 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c ndev->ieee80211_ptr = &vif->wdev; ndev 7057 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c SET_NETDEV_DEV(ndev, wiphy_dev(cfg->wiphy)); ndev 363 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h return brcmf_get_ifp(cfg->pub, 0)->ndev; ndev 366 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h static inline struct brcmf_cfg80211_info *ndev_to_cfg(struct net_device *ndev) ndev 368 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h return wdev_to_cfg(ndev->ieee80211_ptr); ndev 377 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h static inline struct brcmf_cfg80211_vif *ndev_to_vif(struct net_device *ndev) ndev 379 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h struct brcmf_if *ifp = netdev_priv(ndev); ndev 393 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h s32 brcmf_cfg80211_up(struct net_device *ndev); ndev 394 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h s32 brcmf_cfg80211_down(struct net_device *ndev); ndev 417 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h void brcmf_set_mpc(struct brcmf_if *ndev, int mpc); ndev 419 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h void brcmf_cfg80211_free_netdev(struct net_device *ndev); ndev 70 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifp->ndev) ndev 71 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c return ifp->ndev->name; ndev 136 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct net_device *ndev; ndev 146 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev = ifp->ndev; ndev 149 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c cmd_value = (ndev->flags & IFF_ALLMULTI) ? true : false; ndev 152 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c cnt = netdev_mc_count(ndev); ndev 163 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c netdev_for_each_mc_addr(ha, ndev) { ndev 189 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c cmd_value = (ndev->flags & IFF_PROMISC) ? true : false; ndev 226 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c static int brcmf_netdev_set_mac_address(struct net_device *ndev, void *addr) ndev 228 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 242 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c memcpy(ifp->ndev->dev_addr, ifp->mac_addr, ETH_ALEN); ndev 247 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c static void brcmf_netdev_set_multicast_list(struct net_device *ndev) ndev 249 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 286 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct net_device *ndev) ndev 289 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 299 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c netif_stop_queue(ndev); ndev 361 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev->stats.tx_dropped++; ndev 363 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev->stats.tx_packets++; ndev 364 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev->stats.tx_bytes += skb->len; ndev 376 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (!ifp || !ifp->ndev) ndev 385 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c netif_stop_queue(ifp->ndev); ndev 390 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c netif_wake_queue(ifp->ndev); ndev 407 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ndev->stats.multicast++; ndev 409 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (!(ifp->ndev->flags & IFF_UP)) { ndev 414 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ndev->stats.rx_bytes += skb->len; ndev 415 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ndev->stats.rx_packets++; ndev 469 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c skb->dev = ifp->ndev; ndev 485 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ret || !(*ifp) || !(*ifp)->ndev) { ndev 487 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c (*ifp)->ndev->stats.rx_errors++; ndev 492 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c skb->protocol = eth_type_trans(skb, (*ifp)->ndev); ndev 549 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ndev->stats.tx_errors++; ndev 554 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c static void brcmf_ethtool_get_drvinfo(struct net_device *ndev, ndev 557 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 574 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c static int brcmf_netdev_stop(struct net_device *ndev) ndev 576 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 580 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_cfg80211_down(ndev); ndev 590 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c static int brcmf_netdev_open(struct net_device *ndev) ndev 592 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 610 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev->features |= NETIF_F_IP_CSUM; ndev 612 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev->features &= ~NETIF_F_IP_CSUM; ndev 614 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (brcmf_cfg80211_up(ndev)) { ndev 620 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c netif_carrier_off(ndev); ndev 635 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct net_device *ndev; ndev 640 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev = ifp->ndev; ndev 643 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev->netdev_ops = &brcmf_netdev_ops_pri; ndev 645 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev->needed_headroom += drvr->hdrlen; ndev 646 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev->ethtool_ops = &brcmf_ethtool_ops; ndev 649 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c memcpy(ndev->dev_addr, ifp->mac_addr, ETH_ALEN); ndev 650 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c dev_net_set(ndev, wiphy_net(cfg_to_wiphy(drvr->config))); ndev 656 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c err = register_netdevice(ndev); ndev 658 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c err = register_netdev(ndev); ndev 664 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev->priv_destructor = brcmf_cfg80211_free_netdev; ndev 665 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_dbg(INFO, "%s: Broadcom Dongle Host Driver\n", ndev->name); ndev 670 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev->netdev_ops = NULL; ndev 674 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c static void brcmf_net_detach(struct net_device *ndev, bool rtnl_locked) ndev 676 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ndev->reg_state == NETREG_REGISTERED) { ndev 678 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c unregister_netdevice(ndev); ndev 680 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c unregister_netdev(ndev); ndev 682 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_cfg80211_free_netdev(ndev); ndev 683 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c free_netdev(ndev); ndev 689 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct net_device *ndev; ndev 694 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev = ifp->ndev; ndev 697 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (!netif_carrier_ok(ndev)) ndev 698 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c netif_carrier_on(ndev); ndev 701 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (netif_carrier_ok(ndev)) ndev 702 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c netif_carrier_off(ndev); ndev 706 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c static int brcmf_net_p2p_open(struct net_device *ndev) ndev 710 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c return brcmf_cfg80211_up(ndev); ndev 713 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c static int brcmf_net_p2p_stop(struct net_device *ndev) ndev 717 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c return brcmf_cfg80211_down(ndev); ndev 721 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct net_device *ndev) ndev 738 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct net_device *ndev; ndev 742 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev = ifp->ndev; ndev 744 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev->netdev_ops = &brcmf_netdev_ops_p2p; ndev 747 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c memcpy(ndev->dev_addr, ifp->mac_addr, ETH_ALEN); ndev 749 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (register_netdev(ndev) != 0) { ndev 754 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_dbg(INFO, "%s: Broadcom Dongle Host Driver\n", ndev->name); ndev 760 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev->netdev_ops = NULL; ndev 768 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct net_device *ndev; ndev 780 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ndev->name); ndev 781 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c netif_stop_queue(ifp->ndev); ndev 782 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_net_detach(ifp->ndev, false); ndev 786 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ndev->name); ndev 800 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev = alloc_netdev(sizeof(*ifp), is_p2pdev ? "p2p%d" : name, ndev 802 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (!ndev) ndev 805 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev->needs_free_netdev = true; ndev 806 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp = netdev_priv(ndev); ndev 807 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ifp->ndev = ndev; ndev 845 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifp->ndev) { ndev 847 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifp->ndev->netdev_ops == &brcmf_netdev_ops_pri) { ndev 849 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_netdev_stop(ifp->ndev); ndev 853 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c netif_stop_queue(ifp->ndev); ndev 856 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifp->ndev->netdev_ops == &brcmf_netdev_ops_pri) { ndev 860 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_net_detach(ifp->ndev, rtnl_locked); ndev 915 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct net_device *ndev = ifa->ifa_dev->dev; ndev 924 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifp && ifp->ndev == ndev) ndev 1014 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifp->ndev != ifa->idev->dev) ndev 1201 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_net_detach(ifp->ndev, false); ndev 1203 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_net_detach(p2p_ifp->ndev, false); ndev 1354 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_net_detach(drvr->mon_if->ndev, false); ndev 1417 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct net_device *ndev; ndev 1432 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c (drvr->iflist[ifidx]->ndev)) { ndev 1433 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c ndev = drvr->iflist[ifidx]->ndev; ndev 1434 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (netif_queue_stopped(ndev)) ndev 1435 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c netif_wake_queue(ndev); ndev 182 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h struct net_device *ndev; ndev 2173 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (!ifp->ndev || !brcmf_fws_queue_skbs(fws)) ndev 2500 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (!ifp || !ifp->ndev) ndev 1122 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c if (!ifp || !ifp->ndev) { ndev 1128 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c skb->protocol = eth_type_trans(skb, ifp->ndev); ndev 1184 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c if (!ifp || !ifp->ndev) { ndev 1191 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c skb->protocol = eth_type_trans(skb, ifp->ndev); ndev 1651 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct net_device *ndev, ndev 1655 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c struct brcmf_if *ifp = netdev_priv(ndev); ndev 2222 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c strncpy(ifp->ndev->name, name, sizeof(ifp->ndev->name) - 1); ndev 2223 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c ifp->ndev->name_assign_type = name_assign_type; ndev 2227 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c free_netdev(ifp->ndev); ndev 169 drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.h struct net_device *ndev, ndev 39 drivers/net/wireless/intersil/orinoco/airport.c struct net_device *dev = priv->ndev; ndev 67 drivers/net/wireless/intersil/orinoco/airport.c struct net_device *dev = priv->ndev; ndev 229 drivers/net/wireless/intersil/orinoco/cfg.c priv->ndev->name); ndev 459 drivers/net/wireless/intersil/orinoco/hw.c struct net_device *dev = priv->ndev; ndev 715 drivers/net/wireless/intersil/orinoco/hw.c priv->ndev->name, ratemode); ndev 772 drivers/net/wireless/intersil/orinoco/hw.c priv->ndev->name, val); ndev 866 drivers/net/wireless/intersil/orinoco/hw.c priv->ndev->name, priv->tx_key, keylen); ndev 1063 drivers/net/wireless/intersil/orinoco/hw.c priv->ndev->name, err, key_idx); ndev 1080 drivers/net/wireless/intersil/orinoco/hw.c priv->ndev->name, err); ndev 1105 drivers/net/wireless/intersil/orinoco/hw.c priv->ndev->name, err); ndev 1191 drivers/net/wireless/intersil/orinoco/hw.c priv->ndev->name, channel); ndev 1240 drivers/net/wireless/intersil/orinoco/hw.c struct net_device *dev = priv->ndev; ndev 249 drivers/net/wireless/intersil/orinoco/main.c priv->ndev->name); ndev 1068 drivers/net/wireless/intersil/orinoco/main.c struct net_device *dev = priv->ndev; ndev 1144 drivers/net/wireless/intersil/orinoco/main.c struct net_device *dev = priv->ndev; ndev 1219 drivers/net/wireless/intersil/orinoco/main.c struct net_device *dev = priv->ndev; ndev 1237 drivers/net/wireless/intersil/orinoco/main.c struct net_device *dev = priv->ndev; ndev 1267 drivers/net/wireless/intersil/orinoco/main.c struct net_device *dev = priv->ndev; ndev 1619 drivers/net/wireless/intersil/orinoco/main.c struct net_device *dev = priv->ndev; ndev 1648 drivers/net/wireless/intersil/orinoco/main.c struct net_device *dev = priv->ndev; ndev 1725 drivers/net/wireless/intersil/orinoco/main.c struct net_device *dev = priv->ndev; ndev 1795 drivers/net/wireless/intersil/orinoco/main.c struct net_device *dev = priv->ndev; ndev 1817 drivers/net/wireless/intersil/orinoco/main.c struct net_device *dev = priv->ndev; ndev 1877 drivers/net/wireless/intersil/orinoco/main.c struct net_device *dev = priv->ndev; ndev 2282 drivers/net/wireless/intersil/orinoco/main.c priv->ndev = dev; ndev 2297 drivers/net/wireless/intersil/orinoco/main.c struct net_device *dev = priv->ndev; ndev 2346 drivers/net/wireless/intersil/orinoco/main.c struct net_device *dev = priv->ndev; ndev 2378 drivers/net/wireless/intersil/orinoco/main.c struct net_device *dev = priv->ndev; ndev 86 drivers/net/wireless/intersil/orinoco/orinoco.h struct net_device *ndev; ndev 222 drivers/net/wireless/intersil/orinoco/orinoco.h priv->ndev); ndev 38 drivers/net/wireless/intersil/orinoco/orinoco_pci.h struct net_device *dev = priv->ndev; ndev 1709 drivers/net/wireless/intersil/orinoco/orinoco_usb.c upriv->dev = priv->ndev; ndev 206 drivers/net/wireless/intersil/orinoco/scan.c "data: %zu\n", priv->ndev->name, ndev 223 drivers/net/wireless/intersil/orinoco/scan.c "atom_len %zu, offset %d\n", priv->ndev->name, len, ndev 216 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_wireless_stats(struct net_device *ndev) ndev 218 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 242 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_commit(struct net_device *ndev, struct iw_request_info *info, ndev 245 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 258 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_name(struct net_device *ndev, struct iw_request_info *info, ndev 261 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 289 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_freq(struct net_device *ndev, struct iw_request_info *info, ndev 292 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 309 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_freq(struct net_device *ndev, struct iw_request_info *info, ndev 312 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 326 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_mode(struct net_device *ndev, struct iw_request_info *info, ndev 329 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 336 drivers/net/wireless/intersil/prism54/isl_ioctl.c priv->ndev->name, __func__); ndev 361 drivers/net/wireless/intersil/prism54/isl_ioctl.c priv->ndev->type = (priv->iw_mode == IW_MODE_MONITOR) ndev 370 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_mode(struct net_device *ndev, struct iw_request_info *info, ndev 373 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 388 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_sens(struct net_device *ndev, struct iw_request_info *info, ndev 391 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 401 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_sens(struct net_device *ndev, struct iw_request_info *info, ndev 404 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 418 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_range(struct net_device *ndev, struct iw_request_info *info, ndev 422 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 523 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_wap(struct net_device *ndev, struct iw_request_info *info, ndev 526 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 545 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_wap(struct net_device *ndev, struct iw_request_info *info, ndev 548 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 574 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_translate_bss(struct net_device *ndev, struct iw_request_info *info, ndev 580 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 681 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_scan(struct net_device *ndev, struct iw_request_info *info, ndev 684 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 714 drivers/net/wireless/intersil/prism54/isl_ioctl.c current_ev = prism54_translate_bss(ndev, info, current_ev, ndev 735 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_essid(struct net_device *ndev, struct iw_request_info *info, ndev 738 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 762 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_essid(struct net_device *ndev, struct iw_request_info *info, ndev 765 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 792 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_nick(struct net_device *ndev, struct iw_request_info *info, ndev 795 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 809 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_nick(struct net_device *ndev, struct iw_request_info *info, ndev 812 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 827 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_rate(struct net_device *ndev, ndev 832 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 900 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_rate(struct net_device *ndev, ndev 904 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 928 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_rts(struct net_device *ndev, struct iw_request_info *info, ndev 931 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 937 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_rts(struct net_device *ndev, struct iw_request_info *info, ndev 940 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 952 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_frag(struct net_device *ndev, struct iw_request_info *info, ndev 955 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 961 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_frag(struct net_device *ndev, struct iw_request_info *info, ndev 964 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 982 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_retry(struct net_device *ndev, struct iw_request_info *info, ndev 985 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1024 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_retry(struct net_device *ndev, struct iw_request_info *info, ndev 1027 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1056 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_encode(struct net_device *ndev, struct iw_request_info *info, ndev 1059 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1157 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_encode(struct net_device *ndev, struct iw_request_info *info, ndev 1160 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1205 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_txpower(struct net_device *ndev, struct iw_request_info *info, ndev 1208 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1225 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_txpower(struct net_device *ndev, struct iw_request_info *info, ndev 1228 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1237 drivers/net/wireless/intersil/prism54/isl_ioctl.c priv->ndev->name, __func__); ndev 1245 drivers/net/wireless/intersil/prism54/isl_ioctl.c priv->ndev->name, __func__); ndev 1250 drivers/net/wireless/intersil/prism54/isl_ioctl.c static int prism54_set_genie(struct net_device *ndev, ndev 1254 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1291 drivers/net/wireless/intersil/prism54/isl_ioctl.c ndev->name); ndev 1299 drivers/net/wireless/intersil/prism54/isl_ioctl.c static int prism54_get_genie(struct net_device *ndev, ndev 1303 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1320 drivers/net/wireless/intersil/prism54/isl_ioctl.c static int prism54_set_auth(struct net_device *ndev, ndev 1324 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1447 drivers/net/wireless/intersil/prism54/isl_ioctl.c static int prism54_get_auth(struct net_device *ndev, ndev 1451 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1537 drivers/net/wireless/intersil/prism54/isl_ioctl.c static int prism54_set_encodeext(struct net_device *ndev, ndev 1542 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1646 drivers/net/wireless/intersil/prism54/isl_ioctl.c static int prism54_get_encodeext(struct net_device *ndev, ndev 1651 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1742 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_reset(struct net_device *ndev, struct iw_request_info *info, ndev 1745 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_reset(netdev_priv(ndev), 0); ndev 1751 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_oid(struct net_device *ndev, struct iw_request_info *info, ndev 1758 drivers/net/wireless/intersil/prism54/isl_ioctl.c rvalue = mgt_get_request(netdev_priv(ndev), n, 0, NULL, &r); ndev 1766 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_u32(struct net_device *ndev, struct iw_request_info *info, ndev 1771 drivers/net/wireless/intersil/prism54/isl_ioctl.c return mgt_set_request(netdev_priv(ndev), oid, 0, &u); ndev 1775 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_raw(struct net_device *ndev, struct iw_request_info *info, ndev 1780 drivers/net/wireless/intersil/prism54/isl_ioctl.c return mgt_set_request(netdev_priv(ndev), oid, 0, extra); ndev 1822 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_add_mac(struct net_device *ndev, struct iw_request_info *info, ndev 1825 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1851 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_del_mac(struct net_device *ndev, struct iw_request_info *info, ndev 1854 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1878 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_mac(struct net_device *ndev, struct iw_request_info *info, ndev 1881 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1906 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_policy(struct net_device *ndev, struct iw_request_info *info, ndev 1909 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1942 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_policy(struct net_device *ndev, struct iw_request_info *info, ndev 1945 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 1982 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_kick_all(struct net_device *ndev, struct iw_request_info *info, ndev 1995 drivers/net/wireless/intersil/prism54/isl_ioctl.c mgt_set_request(netdev_priv(ndev), DOT11_OID_DISASSOCIATE, 0, mlme); ndev 2002 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_kick_mac(struct net_device *ndev, struct iw_request_info *info, ndev 2020 drivers/net/wireless/intersil/prism54/isl_ioctl.c mgt_set_request(netdev_priv(ndev), DOT11_OID_DISASSOCIATE, 0, mlme); ndev 2058 drivers/net/wireless/intersil/prism54/isl_ioctl.c wireless_send_event(priv->ndev, IWEVCUSTOM, &wrqu, memptr); ndev 2076 drivers/net/wireless/intersil/prism54/isl_ioctl.c wireless_send_event(priv->ndev, IWEVCUSTOM, &wrqu, memptr); ndev 2081 drivers/net/wireless/intersil/prism54/isl_ioctl.c link_changed(struct net_device *ndev, u32 bitrate) ndev 2083 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 2086 drivers/net/wireless/intersil/prism54/isl_ioctl.c netif_carrier_on(ndev); ndev 2089 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_wap(ndev, NULL, (struct sockaddr *) &uwrq, ndev 2091 drivers/net/wireless/intersil/prism54/isl_ioctl.c wireless_send_event(ndev, SIOCGIWAP, &uwrq, NULL); ndev 2093 drivers/net/wireless/intersil/prism54/isl_ioctl.c send_simple_event(netdev_priv(ndev), ndev 2096 drivers/net/wireless/intersil/prism54/isl_ioctl.c netif_carrier_off(ndev); ndev 2097 drivers/net/wireless/intersil/prism54/isl_ioctl.c send_simple_event(netdev_priv(ndev), "Link lost"); ndev 2295 drivers/net/wireless/intersil/prism54/isl_ioctl.c link_changed(priv->ndev, (u32) *data); ndev 2473 drivers/net/wireless/intersil/prism54/isl_ioctl.c struct net_device *ndev = frame->ndev; ndev 2477 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_process_trap_helper(netdev_priv(ndev), n, frame->data); ndev 2482 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_mac_address(struct net_device *ndev, void *addr) ndev 2484 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 2487 drivers/net/wireless/intersil/prism54/isl_ioctl.c if (ndev->addr_len != 6) ndev 2492 drivers/net/wireless/intersil/prism54/isl_ioctl.c memcpy(priv->ndev->dev_addr, ndev 2501 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_wpa(struct net_device *ndev, struct iw_request_info *info, ndev 2504 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 2526 drivers/net/wireless/intersil/prism54/isl_ioctl.c printk("%s: Disabling WPA\n", ndev->name); ndev 2530 drivers/net/wireless/intersil/prism54/isl_ioctl.c printk("%s: Enabling WPA\n", ndev->name); ndev 2545 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_wpa(struct net_device *ndev, struct iw_request_info *info, ndev 2548 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 2554 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_prismhdr(struct net_device *ndev, struct iw_request_info *info, ndev 2557 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 2561 drivers/net/wireless/intersil/prism54/isl_ioctl.c priv->ndev->type = priv->monitor_type; ndev 2567 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_get_prismhdr(struct net_device *ndev, struct iw_request_info *info, ndev 2570 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 2576 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_debug_oid(struct net_device *ndev, struct iw_request_info *info, ndev 2579 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 2582 drivers/net/wireless/intersil/prism54/isl_ioctl.c printk("%s: oid 0x%08X\n", ndev->name, *uwrq); ndev 2588 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_debug_get_oid(struct net_device *ndev, struct iw_request_info *info, ndev 2591 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 2595 drivers/net/wireless/intersil/prism54/isl_ioctl.c printk("%s: get_oid 0x%08X\n", ndev->name, priv->priv_oid); ndev 2600 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_mgt_transaction(priv->ndev, PIMFOR_OP_GET, ndev 2603 drivers/net/wireless/intersil/prism54/isl_ioctl.c printk("%s: ret: %i\n", ndev->name, ret); ndev 2609 drivers/net/wireless/intersil/prism54/isl_ioctl.c printk("%s: EIO\n", ndev->name); ndev 2616 drivers/net/wireless/intersil/prism54/isl_ioctl.c printk("%s: len: %i\n", ndev->name, data->length); ndev 2624 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_debug_set_oid(struct net_device *ndev, struct iw_request_info *info, ndev 2627 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 2631 drivers/net/wireless/intersil/prism54/isl_ioctl.c printk("%s: set_oid 0x%08X\tlen: %d\n", ndev->name, priv->priv_oid, ndev 2636 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_mgt_transaction(priv->ndev, PIMFOR_OP_SET, ndev 2639 drivers/net/wireless/intersil/prism54/isl_ioctl.c printk("%s: ret: %i\n", ndev->name, ret); ndev 2645 drivers/net/wireless/intersil/prism54/isl_ioctl.c printk("%s: EIO\n", ndev->name); ndev 2650 drivers/net/wireless/intersil/prism54/isl_ioctl.c printk("%s: response_op: %i\n", ndev->name, ndev 2660 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_set_spy(struct net_device *ndev, ndev 2664 drivers/net/wireless/intersil/prism54/isl_ioctl.c islpci_private *priv = netdev_priv(ndev); ndev 2682 drivers/net/wireless/intersil/prism54/isl_ioctl.c return iw_handler_set_spy(ndev, info, uwrq, extra); ndev 139 drivers/net/wireless/intersil/prism54/islpci_dev.c priv->ndev->name, fw_entry->data + 40); ndev 181 drivers/net/wireless/intersil/prism54/islpci_dev.c struct net_device *ndev = priv->ndev; ndev 277 drivers/net/wireless/intersil/prism54/islpci_dev.c islpci_mgt_receive(ndev); ndev 279 drivers/net/wireless/intersil/prism54/islpci_dev.c islpci_mgt_cleanup_transmit(ndev); ndev 282 drivers/net/wireless/intersil/prism54/islpci_dev.c islpci_mgmt_rx_fill(ndev); ndev 305 drivers/net/wireless/intersil/prism54/islpci_dev.c netif_wake_queue(priv->ndev); ndev 369 drivers/net/wireless/intersil/prism54/islpci_dev.c islpci_open(struct net_device *ndev) ndev 372 drivers/net/wireless/intersil/prism54/islpci_dev.c islpci_private *priv = netdev_priv(ndev); ndev 381 drivers/net/wireless/intersil/prism54/islpci_dev.c netif_start_queue(ndev); ndev 389 drivers/net/wireless/intersil/prism54/islpci_dev.c netif_carrier_off(ndev); ndev 391 drivers/net/wireless/intersil/prism54/islpci_dev.c netif_carrier_on(ndev); ndev 397 drivers/net/wireless/intersil/prism54/islpci_dev.c islpci_close(struct net_device *ndev) ndev 399 drivers/net/wireless/intersil/prism54/islpci_dev.c islpci_private *priv = netdev_priv(ndev); ndev 401 drivers/net/wireless/intersil/prism54/islpci_dev.c printk(KERN_DEBUG "%s: islpci_close ()\n", ndev->name); ndev 403 drivers/net/wireless/intersil/prism54/islpci_dev.c netif_stop_queue(ndev); ndev 455 drivers/net/wireless/intersil/prism54/islpci_dev.c printk(KERN_DEBUG "%s: uploading firmware...\n", priv->ndev->name); ndev 461 drivers/net/wireless/intersil/prism54/islpci_dev.c priv->ndev->name, priv->firmware); ndev 468 drivers/net/wireless/intersil/prism54/islpci_dev.c priv->ndev->name); ndev 504 drivers/net/wireless/intersil/prism54/islpci_dev.c priv->ndev->name); ndev 510 drivers/net/wireless/intersil/prism54/islpci_dev.c printk(KERN_ERR "%s: interface reset failure\n", priv->ndev->name); ndev 526 drivers/net/wireless/intersil/prism54/islpci_dev.c printk(KERN_ERR "%s: interface reset failure\n", priv->ndev->name); ndev 534 drivers/net/wireless/intersil/prism54/islpci_dev.c printk(KERN_DEBUG "%s: interface reset complete\n", priv->ndev->name); ndev 551 drivers/net/wireless/intersil/prism54/islpci_dev.c printk(KERN_DEBUG "%s: resetting device...\n", priv->ndev->name); ndev 597 drivers/net/wireless/intersil/prism54/islpci_dev.c priv->ndev->name); ndev 670 drivers/net/wireless/intersil/prism54/islpci_dev.c if (islpci_mgmt_rx_fill(priv->ndev) < 0) ndev 810 drivers/net/wireless/intersil/prism54/islpci_dev.c struct net_device *ndev = alloc_etherdev(sizeof (islpci_private)); ndev 812 drivers/net/wireless/intersil/prism54/islpci_dev.c if (!ndev) ndev 813 drivers/net/wireless/intersil/prism54/islpci_dev.c return ndev; ndev 815 drivers/net/wireless/intersil/prism54/islpci_dev.c pci_set_drvdata(pdev, ndev); ndev 816 drivers/net/wireless/intersil/prism54/islpci_dev.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 817 drivers/net/wireless/intersil/prism54/islpci_dev.c SET_NETDEV_DEVTYPE(ndev, &wlan_type); ndev 820 drivers/net/wireless/intersil/prism54/islpci_dev.c ndev->base_addr = pci_resource_start(pdev, 0); ndev 821 drivers/net/wireless/intersil/prism54/islpci_dev.c ndev->irq = pdev->irq; ndev 824 drivers/net/wireless/intersil/prism54/islpci_dev.c ndev->netdev_ops = &islpci_netdev_ops; ndev 825 drivers/net/wireless/intersil/prism54/islpci_dev.c ndev->wireless_handlers = &prism54_handler_def; ndev 826 drivers/net/wireless/intersil/prism54/islpci_dev.c ndev->ethtool_ops = &islpci_ethtool_ops; ndev 829 drivers/net/wireless/intersil/prism54/islpci_dev.c ndev->addr_len = ETH_ALEN; ndev 831 drivers/net/wireless/intersil/prism54/islpci_dev.c memcpy(ndev->dev_addr, dummy_mac, ETH_ALEN); ndev 833 drivers/net/wireless/intersil/prism54/islpci_dev.c ndev->watchdog_timeo = ISLPCI_TX_TIMEOUT; ndev 836 drivers/net/wireless/intersil/prism54/islpci_dev.c priv = netdev_priv(ndev); ndev 837 drivers/net/wireless/intersil/prism54/islpci_dev.c priv->ndev = ndev; ndev 840 drivers/net/wireless/intersil/prism54/islpci_dev.c priv->ndev->type = (priv->iw_mode == IW_MODE_MONITOR) ? ndev 845 drivers/net/wireless/intersil/prism54/islpci_dev.c ndev->wireless_data = &priv->wireless_data; ndev 848 drivers/net/wireless/intersil/prism54/islpci_dev.c ndev->mem_start = (unsigned long) priv->device_base; ndev 849 drivers/net/wireless/intersil/prism54/islpci_dev.c ndev->mem_end = ndev->mem_start + ISL38XX_PCI_MEM_SIZE; ndev 894 drivers/net/wireless/intersil/prism54/islpci_dev.c if (register_netdev(ndev)) { ndev 900 drivers/net/wireless/intersil/prism54/islpci_dev.c return ndev; ndev 905 drivers/net/wireless/intersil/prism54/islpci_dev.c free_netdev(ndev); ndev 943 drivers/net/wireless/intersil/prism54/islpci_dev.c priv->ndev->name, old_state, new_state, priv->state_off); ndev 108 drivers/net/wireless/intersil/prism54/islpci_dev.h struct net_device *ndev; ndev 65 drivers/net/wireless/intersil/prism54/islpci_eth.c islpci_eth_transmit(struct sk_buff *skb, struct net_device *ndev) ndev 67 drivers/net/wireless/intersil/prism54/islpci_eth.c islpci_private *priv = netdev_priv(ndev); ndev 91 drivers/net/wireless/intersil/prism54/islpci_eth.c ndev->name); ndev 92 drivers/net/wireless/intersil/prism54/islpci_eth.c netif_stop_queue(ndev); ndev 140 drivers/net/wireless/intersil/prism54/islpci_eth.c ndev->name); ndev 184 drivers/net/wireless/intersil/prism54/islpci_eth.c ndev->name); ndev 209 drivers/net/wireless/intersil/prism54/islpci_eth.c netif_stop_queue(ndev); ndev 215 drivers/net/wireless/intersil/prism54/islpci_eth.c ndev->stats.tx_packets++; ndev 216 drivers/net/wireless/intersil/prism54/islpci_eth.c ndev->stats.tx_bytes += skb->len; ndev 227 drivers/net/wireless/intersil/prism54/islpci_eth.c ndev->stats.tx_dropped++; ndev 244 drivers/net/wireless/intersil/prism54/islpci_eth.c if (priv->ndev->type == ARPHRD_IEEE80211_PRISM) { ndev 297 drivers/net/wireless/intersil/prism54/islpci_eth.c struct net_device *ndev = priv->ndev; ndev 361 drivers/net/wireless/intersil/prism54/islpci_eth.c skb->dev = ndev; ndev 378 drivers/net/wireless/intersil/prism54/islpci_eth.c wireless_spy_update(ndev, annex->addr2, &wstats); ndev 386 drivers/net/wireless/intersil/prism54/islpci_eth.c skb->protocol = eth_type_trans(skb, ndev); ndev 389 drivers/net/wireless/intersil/prism54/islpci_eth.c ndev->stats.rx_packets++; ndev 390 drivers/net/wireless/intersil/prism54/islpci_eth.c ndev->stats.rx_bytes += size; ndev 472 drivers/net/wireless/intersil/prism54/islpci_eth.c netif_wake_queue(priv->ndev); ndev 476 drivers/net/wireless/intersil/prism54/islpci_eth.c islpci_eth_tx_timeout(struct net_device *ndev) ndev 478 drivers/net/wireless/intersil/prism54/islpci_eth.c islpci_private *priv = netdev_priv(ndev); ndev 481 drivers/net/wireless/intersil/prism54/islpci_eth.c ndev->stats.tx_errors++; ndev 485 drivers/net/wireless/intersil/prism54/islpci_eth.c "%s: tx_timeout, scheduling reset", ndev->name); ndev 486 drivers/net/wireless/intersil/prism54/islpci_eth.c netif_stop_queue(ndev); ndev 491 drivers/net/wireless/intersil/prism54/islpci_eth.c "%s: tx_timeout, waiting for reset", ndev->name); ndev 85 drivers/net/wireless/intersil/prism54/islpci_hotplug.c struct net_device *ndev; ndev 158 drivers/net/wireless/intersil/prism54/islpci_hotplug.c if (!(ndev = islpci_setup(pdev))) { ndev 165 drivers/net/wireless/intersil/prism54/islpci_hotplug.c priv = netdev_priv(ndev); ndev 173 drivers/net/wireless/intersil/prism54/islpci_hotplug.c IRQF_SHARED, ndev->name, priv); ndev 178 drivers/net/wireless/intersil/prism54/islpci_hotplug.c ndev->name); ndev 187 drivers/net/wireless/intersil/prism54/islpci_hotplug.c unregister_netdev(ndev); ndev 189 drivers/net/wireless/intersil/prism54/islpci_hotplug.c free_netdev(ndev); ndev 207 drivers/net/wireless/intersil/prism54/islpci_hotplug.c struct net_device *ndev = pci_get_drvdata(pdev); ndev 208 drivers/net/wireless/intersil/prism54/islpci_hotplug.c islpci_private *priv = ndev ? netdev_priv(ndev) : NULL; ndev 212 drivers/net/wireless/intersil/prism54/islpci_hotplug.c printk(KERN_DEBUG "%s: hot unplug detected\n", ndev->name); ndev 216 drivers/net/wireless/intersil/prism54/islpci_hotplug.c printk(KERN_DEBUG "%s: removing device\n", ndev->name); ndev 218 drivers/net/wireless/intersil/prism54/islpci_hotplug.c unregister_netdev(ndev); ndev 236 drivers/net/wireless/intersil/prism54/islpci_hotplug.c free_netdev(ndev); ndev 249 drivers/net/wireless/intersil/prism54/islpci_hotplug.c struct net_device *ndev = pci_get_drvdata(pdev); ndev 250 drivers/net/wireless/intersil/prism54/islpci_hotplug.c islpci_private *priv = ndev ? netdev_priv(ndev) : NULL; ndev 263 drivers/net/wireless/intersil/prism54/islpci_hotplug.c netif_stop_queue(ndev); ndev 264 drivers/net/wireless/intersil/prism54/islpci_hotplug.c netif_device_detach(ndev); ndev 272 drivers/net/wireless/intersil/prism54/islpci_hotplug.c struct net_device *ndev = pci_get_drvdata(pdev); ndev 273 drivers/net/wireless/intersil/prism54/islpci_hotplug.c islpci_private *priv = ndev ? netdev_priv(ndev) : NULL; ndev 278 drivers/net/wireless/intersil/prism54/islpci_hotplug.c printk(KERN_NOTICE "%s: got resume request\n", ndev->name); ndev 283 drivers/net/wireless/intersil/prism54/islpci_hotplug.c ndev->name); ndev 292 drivers/net/wireless/intersil/prism54/islpci_hotplug.c netif_device_attach(ndev); ndev 293 drivers/net/wireless/intersil/prism54/islpci_hotplug.c netif_start_queue(ndev); ndev 95 drivers/net/wireless/intersil/prism54/islpci_mgt.c islpci_mgmt_rx_fill(struct net_device *ndev) ndev 97 drivers/net/wireless/intersil/prism54/islpci_mgt.c islpci_private *priv = netdev_priv(ndev); ndev 151 drivers/net/wireless/intersil/prism54/islpci_mgt.c islpci_mgt_transmit(struct net_device *ndev, int operation, unsigned long oid, ndev 154 drivers/net/wireless/intersil/prism54/islpci_mgt.c islpci_private *priv = netdev_priv(ndev); ndev 172 drivers/net/wireless/intersil/prism54/islpci_mgt.c ndev->name, frag_len); ndev 210 drivers/net/wireless/intersil/prism54/islpci_mgt.c ndev->name); ndev 219 drivers/net/wireless/intersil/prism54/islpci_mgt.c ndev->name); ndev 256 drivers/net/wireless/intersil/prism54/islpci_mgt.c islpci_mgt_receive(struct net_device *ndev) ndev 258 drivers/net/wireless/intersil/prism54/islpci_mgt.c islpci_private *priv = netdev_priv(ndev); ndev 285 drivers/net/wireless/intersil/prism54/islpci_mgt.c ndev->name, ndev 300 drivers/net/wireless/intersil/prism54/islpci_mgt.c ndev->name, frag_len, frag_len); ndev 312 drivers/net/wireless/intersil/prism54/islpci_mgt.c ndev->name); ndev 319 drivers/net/wireless/intersil/prism54/islpci_mgt.c header->device_id = priv->ndev->ifindex; ndev 337 drivers/net/wireless/intersil/prism54/islpci_mgt.c ndev->name); ndev 348 drivers/net/wireless/intersil/prism54/islpci_mgt.c frame->ndev = ndev; ndev 378 drivers/net/wireless/intersil/prism54/islpci_mgt.c ndev->name); ndev 396 drivers/net/wireless/intersil/prism54/islpci_mgt.c islpci_mgt_cleanup_transmit(struct net_device *ndev) ndev 398 drivers/net/wireless/intersil/prism54/islpci_mgt.c islpci_private *priv = netdev_priv(ndev); ndev 430 drivers/net/wireless/intersil/prism54/islpci_mgt.c islpci_mgt_transaction(struct net_device *ndev, ndev 435 drivers/net/wireless/intersil/prism54/islpci_mgt.c islpci_private *priv = netdev_priv(ndev); ndev 447 drivers/net/wireless/intersil/prism54/islpci_mgt.c err = islpci_mgt_transmit(ndev, operation, oid, senddata, sendlen); ndev 466 drivers/net/wireless/intersil/prism54/islpci_mgt.c ndev->name, (unsigned int) oid, ndev 476 drivers/net/wireless/intersil/prism54/islpci_mgt.c ndev->name, timeout_left); ndev 482 drivers/net/wireless/intersil/prism54/islpci_mgt.c ndev->name); ndev 98 drivers/net/wireless/intersil/prism54/islpci_mgt.h struct net_device *ndev; /* pointer to network device */ ndev 106 drivers/net/wireless/intersil/prism54/islpci_mgt.h islpci_mgt_receive(struct net_device *ndev); ndev 109 drivers/net/wireless/intersil/prism54/islpci_mgt.h islpci_mgmt_rx_fill(struct net_device *ndev); ndev 112 drivers/net/wireless/intersil/prism54/islpci_mgt.h islpci_mgt_cleanup_transmit(struct net_device *ndev); ndev 115 drivers/net/wireless/intersil/prism54/islpci_mgt.h islpci_mgt_transaction(struct net_device *ndev, ndev 442 drivers/net/wireless/intersil/prism54/oid_mgt.c ret = islpci_mgt_transaction(priv->ndev, PIMFOR_OP_SET, oid, ndev 484 drivers/net/wireless/intersil/prism54/oid_mgt.c ret = islpci_mgt_transaction(priv->ndev, PIMFOR_OP_SET, oid, ndev 534 drivers/net/wireless/intersil/prism54/oid_mgt.c ret = islpci_mgt_transaction(priv->ndev, PIMFOR_OP_GET, ndev 592 drivers/net/wireless/intersil/prism54/oid_mgt.c int r = islpci_mgt_transaction(priv->ndev, PIMFOR_OP_SET, ndev 602 drivers/net/wireless/intersil/prism54/oid_mgt.c priv->ndev->name, oid, r); ndev 667 drivers/net/wireless/intersil/prism54/oid_mgt.c ret = islpci_mgt_transaction(priv->ndev, PIMFOR_OP_GET, ndev 672 drivers/net/wireless/intersil/prism54/oid_mgt.c memcpy(priv->ndev->dev_addr, res->data, ETH_ALEN); ndev 679 drivers/net/wireless/intersil/prism54/oid_mgt.c printk(KERN_ERR "%s: mgt_update_addr: failure\n", priv->ndev->name); ndev 704 drivers/net/wireless/intersil/prism54/oid_mgt.c printk(KERN_DEBUG "%s: mgt_commit: failure\n", priv->ndev->name); ndev 741 drivers/net/wireless/intersil/prism54/oid_mgt.c printk(KERN_DEBUG "%s: Unlatching OIDs failed\n", priv->ndev->name); ndev 108 drivers/net/wireless/quantenna/qtnfmac/bus.h qtnf_bus_data_tx_timeout(struct qtnf_bus *bus, struct net_device *ndev) ndev 110 drivers/net/wireless/quantenna/qtnfmac/bus.h return bus->bus_ops->data_tx_timeout(bus, ndev); ndev 802 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c struct net_device *ndev = wdev->netdev; ndev 806 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c if (!ndev) ndev 813 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c pr_err("%s: failed to get channel: %d\n", ndev->name, ret); ndev 820 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c ndev->name, chandef->chan->center_freq, ndev 855 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c struct net_device *ndev, ndev 859 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c struct qtnf_vif *vif = qtnf_netdev_get_priv(ndev); ndev 867 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c pr_err("%s: failed to start CAC ret=%d\n", ndev->name, ret); ndev 1197 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c void qtnf_netdev_updown(struct net_device *ndev, bool up) ndev 1199 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c struct qtnf_vif *vif = qtnf_netdev_get_priv(ndev); ndev 1206 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c void qtnf_virtual_intf_cleanup(struct net_device *ndev) ndev 1208 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c struct qtnf_vif *vif = qtnf_netdev_get_priv(ndev); ndev 1212 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c qtnf_disconnect(vif->wdev.wiphy, ndev, ndev 53 drivers/net/wireless/quantenna/qtnfmac/core.c static int qtnf_netdev_open(struct net_device *ndev) ndev 55 drivers/net/wireless/quantenna/qtnfmac/core.c netif_carrier_off(ndev); ndev 56 drivers/net/wireless/quantenna/qtnfmac/core.c qtnf_netdev_updown(ndev, 1); ndev 62 drivers/net/wireless/quantenna/qtnfmac/core.c static int qtnf_netdev_close(struct net_device *ndev) ndev 64 drivers/net/wireless/quantenna/qtnfmac/core.c netif_carrier_off(ndev); ndev 65 drivers/net/wireless/quantenna/qtnfmac/core.c qtnf_virtual_intf_cleanup(ndev); ndev 66 drivers/net/wireless/quantenna/qtnfmac/core.c qtnf_netdev_updown(ndev, 0); ndev 73 drivers/net/wireless/quantenna/qtnfmac/core.c qtnf_netdev_hard_start_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 78 drivers/net/wireless/quantenna/qtnfmac/core.c vif = qtnf_netdev_get_priv(ndev); ndev 80 drivers/net/wireless/quantenna/qtnfmac/core.c if (unlikely(skb->dev != ndev)) { ndev 87 drivers/net/wireless/quantenna/qtnfmac/core.c pr_err_ratelimited("%s: VIF not initialized\n", ndev->name); ndev 94 drivers/net/wireless/quantenna/qtnfmac/core.c pr_err_ratelimited("%s: NULL mac pointer", ndev->name); ndev 100 drivers/net/wireless/quantenna/qtnfmac/core.c pr_err_ratelimited("%s: invalid skb len %d\n", ndev->name, ndev 103 drivers/net/wireless/quantenna/qtnfmac/core.c ndev->stats.tx_dropped++; ndev 115 drivers/net/wireless/quantenna/qtnfmac/core.c static void qtnf_netdev_get_stats64(struct net_device *ndev, ndev 118 drivers/net/wireless/quantenna/qtnfmac/core.c struct qtnf_vif *vif = qtnf_netdev_get_priv(ndev); ndev 122 drivers/net/wireless/quantenna/qtnfmac/core.c netdev_stats_to_stats64(stats, &ndev->stats); ndev 151 drivers/net/wireless/quantenna/qtnfmac/core.c static void qtnf_netdev_tx_timeout(struct net_device *ndev) ndev 153 drivers/net/wireless/quantenna/qtnfmac/core.c struct qtnf_vif *vif = qtnf_netdev_get_priv(ndev); ndev 165 drivers/net/wireless/quantenna/qtnfmac/core.c qtnf_bus_data_tx_timeout(bus, ndev); ndev 166 drivers/net/wireless/quantenna/qtnfmac/core.c ndev->stats.tx_errors++; ndev 170 drivers/net/wireless/quantenna/qtnfmac/core.c pr_err("schedule interface %s reset !\n", netdev_name(ndev)); ndev 175 drivers/net/wireless/quantenna/qtnfmac/core.c static int qtnf_netdev_set_mac_address(struct net_device *ndev, void *addr) ndev 177 drivers/net/wireless/quantenna/qtnfmac/core.c struct qtnf_vif *vif = qtnf_netdev_get_priv(ndev); ndev 184 drivers/net/wireless/quantenna/qtnfmac/core.c ret = eth_mac_addr(ndev, sa); ndev 195 drivers/net/wireless/quantenna/qtnfmac/core.c memcpy(ndev->dev_addr, old_addr, ETH_ALEN); ndev 722 drivers/net/wireless/quantenna/qtnfmac/core.c struct net_device *ndev = NULL; ndev 762 drivers/net/wireless/quantenna/qtnfmac/core.c ndev = vif->netdev; ndev 764 drivers/net/wireless/quantenna/qtnfmac/core.c if (unlikely(!ndev)) { ndev 773 drivers/net/wireless/quantenna/qtnfmac/core.c return ndev; ndev 777 drivers/net/wireless/quantenna/qtnfmac/core.c void qtnf_wake_all_queues(struct net_device *ndev) ndev 779 drivers/net/wireless/quantenna/qtnfmac/core.c struct qtnf_vif *vif = qtnf_netdev_get_priv(ndev); ndev 804 drivers/net/wireless/quantenna/qtnfmac/core.c void qtnf_update_rx_stats(struct net_device *ndev, const struct sk_buff *skb) ndev 806 drivers/net/wireless/quantenna/qtnfmac/core.c struct qtnf_vif *vif = qtnf_netdev_get_priv(ndev); ndev 810 drivers/net/wireless/quantenna/qtnfmac/core.c ndev->stats.rx_packets++; ndev 811 drivers/net/wireless/quantenna/qtnfmac/core.c ndev->stats.rx_bytes += skb->len; ndev 824 drivers/net/wireless/quantenna/qtnfmac/core.c void qtnf_update_tx_stats(struct net_device *ndev, const struct sk_buff *skb) ndev 826 drivers/net/wireless/quantenna/qtnfmac/core.c struct qtnf_vif *vif = qtnf_netdev_get_priv(ndev); ndev 830 drivers/net/wireless/quantenna/qtnfmac/core.c ndev->stats.tx_packets++; ndev 831 drivers/net/wireless/quantenna/qtnfmac/core.c ndev->stats.tx_bytes += skb->len; ndev 147 drivers/net/wireless/quantenna/qtnfmac/core.h void qtnf_wake_all_queues(struct net_device *ndev); ndev 148 drivers/net/wireless/quantenna/qtnfmac/core.h void qtnf_update_rx_stats(struct net_device *ndev, const struct sk_buff *skb); ndev 149 drivers/net/wireless/quantenna/qtnfmac/core.h void qtnf_update_tx_stats(struct net_device *ndev, const struct sk_buff *skb); ndev 151 drivers/net/wireless/quantenna/qtnfmac/core.h void qtnf_virtual_intf_cleanup(struct net_device *ndev); ndev 153 drivers/net/wireless/quantenna/qtnfmac/core.h void qtnf_netdev_updown(struct net_device *ndev, bool up); ndev 675 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct net_device *ndev = NULL; ndev 724 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c ndev = qtnf_classify_skb(bus, skb); ndev 725 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c if (likely(ndev)) { ndev 726 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c qtnf_update_rx_stats(ndev, skb); ndev 727 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c skb->protocol = eth_type_trans(skb, ndev); ndev 775 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c qtnf_pcie_data_tx_timeout(struct qtnf_bus *bus, struct net_device *ndev) ndev 434 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static void qtnf_try_stop_xmit(struct qtnf_bus *bus, struct net_device *ndev) ndev 438 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (ndev) { ndev 439 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c netif_tx_stop_all_queues(ndev); ndev 456 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static void qtnf_try_wake_xmit(struct qtnf_bus *bus, struct net_device *ndev) ndev 463 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c netif_wake_queue(ndev); ndev 607 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct net_device *ndev = NULL; ndev 658 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ndev = qtnf_classify_skb(bus, skb); ndev 659 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (likely(ndev)) { ndev 660 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_update_rx_stats(ndev, skb); ndev 661 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c skb->protocol = eth_type_trans(skb, ndev); ndev 715 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_pcie_data_tx_timeout(struct qtnf_bus *bus, struct net_device *ndev) ndev 719 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_try_wake_xmit(bus, ndev); ndev 43 drivers/nfc/fdp/fdp.c struct nci_dev *ndev; ndev 60 drivers/nfc/fdp/fdp.c void (*data_pkt_counter_cb)(struct nci_dev *ndev); ndev 82 drivers/nfc/fdp/fdp.c static int fdp_nci_create_conn(struct nci_dev *ndev) ndev 84 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 92 drivers/nfc/fdp/fdp.c r = nci_core_conn_create(info->ndev, FDP_PATCH_CONN_DEST, 1, ndev 97 drivers/nfc/fdp/fdp.c return nci_get_conn_info_by_dest_type_params(ndev, ndev 101 drivers/nfc/fdp/fdp.c static inline int fdp_nci_get_versions(struct nci_dev *ndev) ndev 103 drivers/nfc/fdp/fdp.c return nci_core_cmd(ndev, NCI_OP_CORE_GET_CONFIG_CMD, ndev 108 drivers/nfc/fdp/fdp.c static inline int fdp_nci_patch_cmd(struct nci_dev *ndev, u8 type) ndev 110 drivers/nfc/fdp/fdp.c return nci_prop_cmd(ndev, NCI_OP_PROP_PATCH_OID, sizeof(type), &type); ndev 113 drivers/nfc/fdp/fdp.c static inline int fdp_nci_set_production_data(struct nci_dev *ndev, u8 len, ndev 116 drivers/nfc/fdp/fdp.c return nci_prop_cmd(ndev, NCI_OP_PROP_SET_PDATA_OID, len, data); ndev 119 drivers/nfc/fdp/fdp.c static int fdp_nci_set_clock(struct nci_dev *ndev, u8 clock_type, ndev 141 drivers/nfc/fdp/fdp.c return fdp_nci_set_production_data(ndev, 9, data); ndev 144 drivers/nfc/fdp/fdp.c static void fdp_nci_send_patch_cb(struct nci_dev *ndev) ndev 146 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 159 drivers/nfc/fdp/fdp.c static void fdp_nci_set_data_pkt_counter(struct nci_dev *ndev, ndev 160 drivers/nfc/fdp/fdp.c void (*cb)(struct nci_dev *ndev), int count) ndev 162 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 181 drivers/nfc/fdp/fdp.c static int fdp_nci_send_patch(struct nci_dev *ndev, u8 conn_id, u8 type) ndev 183 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 199 drivers/nfc/fdp/fdp.c max_size = nci_conn_max_data_pkt_payload_size(ndev, conn_id); ndev 205 drivers/nfc/fdp/fdp.c fdp_nci_set_data_pkt_counter(ndev, fdp_nci_send_patch_cb, ndev 212 drivers/nfc/fdp/fdp.c skb = nci_skb_alloc(ndev, (NCI_CTRL_HDR_SIZE + payload_size), ndev 215 drivers/nfc/fdp/fdp.c fdp_nci_set_data_pkt_counter(ndev, NULL, 0); ndev 224 drivers/nfc/fdp/fdp.c rc = nci_send_data(ndev, conn_id, skb); ndev 227 drivers/nfc/fdp/fdp.c fdp_nci_set_data_pkt_counter(ndev, NULL, 0); ndev 237 drivers/nfc/fdp/fdp.c static int fdp_nci_open(struct nci_dev *ndev) ndev 240 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 250 drivers/nfc/fdp/fdp.c static int fdp_nci_close(struct nci_dev *ndev) ndev 252 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 259 drivers/nfc/fdp/fdp.c static int fdp_nci_send(struct nci_dev *ndev, struct sk_buff *skb) ndev 261 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 267 drivers/nfc/fdp/fdp.c info->data_pkt_counter_cb(ndev); ndev 272 drivers/nfc/fdp/fdp.c int fdp_nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb) ndev 274 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 278 drivers/nfc/fdp/fdp.c return nci_recv_frame(ndev, skb); ndev 282 drivers/nfc/fdp/fdp.c static int fdp_nci_request_firmware(struct nci_dev *ndev) ndev 284 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 327 drivers/nfc/fdp/fdp.c static void fdp_nci_release_firmware(struct nci_dev *ndev) ndev 329 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 342 drivers/nfc/fdp/fdp.c static int fdp_nci_patch_otp(struct nci_dev *ndev) ndev 344 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 357 drivers/nfc/fdp/fdp.c r = fdp_nci_patch_cmd(ndev, NCI_PATCH_TYPE_OTP); ndev 362 drivers/nfc/fdp/fdp.c conn_id = fdp_nci_create_conn(ndev); ndev 369 drivers/nfc/fdp/fdp.c r = fdp_nci_send_patch(ndev, conn_id, NCI_PATCH_TYPE_OTP); ndev 381 drivers/nfc/fdp/fdp.c r = nci_core_conn_close(info->ndev, conn_id); ndev 386 drivers/nfc/fdp/fdp.c if (fdp_nci_patch_cmd(ndev, NCI_PATCH_TYPE_EOT)) { ndev 413 drivers/nfc/fdp/fdp.c static int fdp_nci_patch_ram(struct nci_dev *ndev) ndev 415 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 428 drivers/nfc/fdp/fdp.c r = fdp_nci_patch_cmd(ndev, NCI_PATCH_TYPE_RAM); ndev 433 drivers/nfc/fdp/fdp.c conn_id = fdp_nci_create_conn(ndev); ndev 440 drivers/nfc/fdp/fdp.c r = fdp_nci_send_patch(ndev, conn_id, NCI_PATCH_TYPE_RAM); ndev 452 drivers/nfc/fdp/fdp.c r = nci_core_conn_close(info->ndev, conn_id); ndev 457 drivers/nfc/fdp/fdp.c if (fdp_nci_patch_cmd(ndev, NCI_PATCH_TYPE_EOT)) { ndev 484 drivers/nfc/fdp/fdp.c static int fdp_nci_setup(struct nci_dev *ndev) ndev 487 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 494 drivers/nfc/fdp/fdp.c r = nci_core_init(ndev); ndev 499 drivers/nfc/fdp/fdp.c r = fdp_nci_get_versions(ndev); ndev 504 drivers/nfc/fdp/fdp.c r = fdp_nci_request_firmware(ndev); ndev 510 drivers/nfc/fdp/fdp.c r = fdp_nci_patch_otp(ndev); ndev 518 drivers/nfc/fdp/fdp.c r = fdp_nci_patch_ram(ndev); ndev 525 drivers/nfc/fdp/fdp.c fdp_nci_release_firmware(ndev); ndev 529 drivers/nfc/fdp/fdp.c r = nci_core_init(ndev); ndev 533 drivers/nfc/fdp/fdp.c r = fdp_nci_get_versions(ndev); ndev 549 drivers/nfc/fdp/fdp.c return nci_core_reset(ndev); ndev 552 drivers/nfc/fdp/fdp.c fdp_nci_release_firmware(ndev); ndev 557 drivers/nfc/fdp/fdp.c static int fdp_nci_post_setup(struct nci_dev *ndev) ndev 559 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 567 drivers/nfc/fdp/fdp.c r = fdp_nci_set_production_data(ndev, info->fw_vsc_cfg[3], ndev 577 drivers/nfc/fdp/fdp.c r = fdp_nci_set_clock(ndev, info->clock_type, info->clock_freq); ndev 586 drivers/nfc/fdp/fdp.c r = nci_core_reset(ndev); ndev 594 drivers/nfc/fdp/fdp.c return nci_core_init(ndev); ndev 597 drivers/nfc/fdp/fdp.c static int fdp_nci_core_reset_ntf_packet(struct nci_dev *ndev, ndev 600 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 610 drivers/nfc/fdp/fdp.c static int fdp_nci_prop_patch_ntf_packet(struct nci_dev *ndev, ndev 613 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 624 drivers/nfc/fdp/fdp.c static int fdp_nci_prop_patch_rsp_packet(struct nci_dev *ndev, ndev 627 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 632 drivers/nfc/fdp/fdp.c nci_req_complete(ndev, status); ndev 637 drivers/nfc/fdp/fdp.c static int fdp_nci_prop_set_production_data_rsp_packet(struct nci_dev *ndev, ndev 640 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 645 drivers/nfc/fdp/fdp.c nci_req_complete(ndev, status); ndev 650 drivers/nfc/fdp/fdp.c static int fdp_nci_core_get_config_rsp_packet(struct nci_dev *ndev, ndev 653 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 691 drivers/nfc/fdp/fdp.c nci_req_complete(ndev, rsp->status); ndev 739 drivers/nfc/fdp/fdp.c struct nci_dev *ndev; ndev 763 drivers/nfc/fdp/fdp.c ndev = nci_allocate_device(&nci_ops, protocols, tx_headroom, ndev 765 drivers/nfc/fdp/fdp.c if (!ndev) { ndev 770 drivers/nfc/fdp/fdp.c r = nci_register_device(ndev); ndev 774 drivers/nfc/fdp/fdp.c *ndevp = ndev; ndev 775 drivers/nfc/fdp/fdp.c info->ndev = ndev; ndev 777 drivers/nfc/fdp/fdp.c nci_set_drvdata(ndev, info); ndev 782 drivers/nfc/fdp/fdp.c nci_free_device(ndev); ndev 787 drivers/nfc/fdp/fdp.c void fdp_nci_remove(struct nci_dev *ndev) ndev 789 drivers/nfc/fdp/fdp.c struct fdp_nci_info *info = nci_get_drvdata(ndev); ndev 794 drivers/nfc/fdp/fdp.c nci_unregister_device(ndev); ndev 795 drivers/nfc/fdp/fdp.c nci_free_device(ndev); ndev 17 drivers/nfc/fdp/fdp.h struct nci_dev *ndev; ndev 25 drivers/nfc/fdp/fdp.h struct nci_dev **ndev, int tx_headroom, int tx_tailroom, ndev 27 drivers/nfc/fdp/fdp.h void fdp_nci_remove(struct nci_dev *ndev); ndev 28 drivers/nfc/fdp/fdp.h int fdp_nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb); ndev 220 drivers/nfc/fdp/i2c.c fdp_nci_recv_frame(phy->ndev, skb); ndev 338 drivers/nfc/fdp/i2c.c r = fdp_nci_probe(phy, &i2c_phy_ops, &phy->ndev, ndev 356 drivers/nfc/fdp/i2c.c fdp_nci_remove(phy->ndev); ndev 255 drivers/nfc/microread/microread.c hdev->gb = nfc_get_local_general_bytes(hdev->ndev, ndev 318 drivers/nfc/microread/microread.c r = nfc_set_remote_general_bytes(hdev->ndev, rgb_skb->data, ndev 321 drivers/nfc/microread/microread.c r = nfc_dep_link_is_up(hdev->ndev, target->idx, comm_mode, ndev 537 drivers/nfc/microread/microread.c r = nfc_targets_found(hdev->ndev, targets, 1); ndev 576 drivers/nfc/microread/microread.c r = nfc_tm_data_received(hdev->ndev, skb); ndev 585 drivers/nfc/microread/microread.c r = nfc_tm_activated(hdev->ndev, NFC_PROTO_NFC_DEP_MASK, ndev 605 drivers/nfc/microread/microread.c r = nfc_tm_data_received(hdev->ndev, skb); ndev 89 drivers/nfc/nfcmrvl/fw_dnld.c skb = nci_skb_alloc(priv->ndev, (NCI_DATA_HDR_SIZE + plen), GFP_KERNEL); ndev 115 drivers/nfc/nfcmrvl/fw_dnld.c atomic_set(&priv->ndev->cmd_cnt, 0); ndev 117 drivers/nfc/nfcmrvl/fw_dnld.c if (timer_pending(&priv->ndev->cmd_timer)) ndev 118 drivers/nfc/nfcmrvl/fw_dnld.c del_timer_sync(&priv->ndev->cmd_timer); ndev 130 drivers/nfc/nfcmrvl/fw_dnld.c nfc_fw_download_done(priv->ndev->nfc_dev, priv->fw_dnld.name, error); ndev 154 drivers/nfc/nfcmrvl/fw_dnld.c nci_send_cmd(priv->ndev, NCI_OP_CORE_INIT_CMD, 0, NULL); ndev 173 drivers/nfc/nfcmrvl/fw_dnld.c nci_send_cmd(priv->ndev, NCI_OP_CORE_SET_CONFIG_CMD, 3 + cmd.param.len, ndev 185 drivers/nfc/nfcmrvl/fw_dnld.c nci_send_cmd(priv->ndev, NCI_OP_CORE_CONN_CREATE_CMD, 2, param); ndev 229 drivers/nfc/nfcmrvl/fw_dnld.c nci_send_cmd(priv->ndev, NCI_OP_CORE_SET_CONFIG_CMD, 3 + cmd.param.len, ndev 296 drivers/nfc/nfcmrvl/fw_dnld.c nci_send_frame(priv->ndev, out_skb); ndev 305 drivers/nfc/nfcmrvl/fw_dnld.c nci_send_frame(priv->ndev, out_skb); ndev 321 drivers/nfc/nfcmrvl/fw_dnld.c nci_send_cmd(priv->ndev, NCI_OP_CORE_CONN_CLOSE_CMD, ndev 330 drivers/nfc/nfcmrvl/fw_dnld.c nci_send_frame(priv->ndev, out_skb); ndev 368 drivers/nfc/nfcmrvl/fw_dnld.c nci_send_cmd(priv->ndev, NCI_OP_PROPRIETARY_BOOT_CMD, 0, NULL); ndev 413 drivers/nfc/nfcmrvl/fw_dnld.c nfc_send_to_raw_sock(priv->ndev->nfc_dev, skb, ndev 460 drivers/nfc/nfcmrvl/fw_dnld.c dev_name(&priv->ndev->nfc_dev->dev)); ndev 477 drivers/nfc/nfcmrvl/fw_dnld.c if (timer_pending(&priv->ndev->cmd_timer)) ndev 478 drivers/nfc/nfcmrvl/fw_dnld.c del_timer_sync(&priv->ndev->cmd_timer); ndev 481 drivers/nfc/nfcmrvl/fw_dnld.c atomic_set(&priv->ndev->cmd_cnt, 1); ndev 493 drivers/nfc/nfcmrvl/fw_dnld.c int nfcmrvl_fw_dnld_start(struct nci_dev *ndev, const char *firmware_name) ndev 495 drivers/nfc/nfcmrvl/fw_dnld.c struct nfcmrvl_private *priv = nci_get_drvdata(ndev); ndev 514 drivers/nfc/nfcmrvl/fw_dnld.c &ndev->nfc_dev->dev); ndev 550 drivers/nfc/nfcmrvl/fw_dnld.c atomic_set(&priv->ndev->cmd_cnt, 1); ndev 94 drivers/nfc/nfcmrvl/fw_dnld.h int nfcmrvl_fw_dnld_start(struct nci_dev *ndev, const char *firmware_name); ndev 57 drivers/nfc/nfcmrvl/i2c.c *skb = nci_skb_alloc(drv_data->priv->ndev, ndev 28 drivers/nfc/nfcmrvl/main.c static int nfcmrvl_nci_open(struct nci_dev *ndev) ndev 30 drivers/nfc/nfcmrvl/main.c struct nfcmrvl_private *priv = nci_get_drvdata(ndev); ndev 47 drivers/nfc/nfcmrvl/main.c static int nfcmrvl_nci_close(struct nci_dev *ndev) ndev 49 drivers/nfc/nfcmrvl/main.c struct nfcmrvl_private *priv = nci_get_drvdata(ndev); ndev 59 drivers/nfc/nfcmrvl/main.c static int nfcmrvl_nci_send(struct nci_dev *ndev, struct sk_buff *skb) ndev 61 drivers/nfc/nfcmrvl/main.c struct nfcmrvl_private *priv = nci_get_drvdata(ndev); ndev 65 drivers/nfc/nfcmrvl/main.c skb->dev = (void *)ndev; ndev 81 drivers/nfc/nfcmrvl/main.c static int nfcmrvl_nci_setup(struct nci_dev *ndev) ndev 85 drivers/nfc/nfcmrvl/main.c nci_set_config(ndev, NFCMRVL_PB_BAIL_OUT, 1, &val); ndev 89 drivers/nfc/nfcmrvl/main.c static int nfcmrvl_nci_fw_download(struct nci_dev *ndev, ndev 92 drivers/nfc/nfcmrvl/main.c return nfcmrvl_fw_dnld_start(ndev, firmware_name); ndev 153 drivers/nfc/nfcmrvl/main.c priv->ndev = nci_allocate_device(&nfcmrvl_nci_ops, protocols, ndev 155 drivers/nfc/nfcmrvl/main.c if (!priv->ndev) { ndev 167 drivers/nfc/nfcmrvl/main.c nci_set_drvdata(priv->ndev, priv); ndev 169 drivers/nfc/nfcmrvl/main.c rc = nci_register_device(priv->ndev); ndev 184 drivers/nfc/nfcmrvl/main.c nci_free_device(priv->ndev); ndev 195 drivers/nfc/nfcmrvl/main.c struct nci_dev *ndev = priv->ndev; ndev 197 drivers/nfc/nfcmrvl/main.c if (priv->ndev->nfc_dev->fw_download_in_progress) ndev 205 drivers/nfc/nfcmrvl/main.c nci_unregister_device(ndev); ndev 206 drivers/nfc/nfcmrvl/main.c nci_free_device(ndev); ndev 225 drivers/nfc/nfcmrvl/main.c if (priv->ndev->nfc_dev->fw_download_in_progress) { ndev 231 drivers/nfc/nfcmrvl/main.c nci_recv_frame(priv->ndev, skb); ndev 72 drivers/nfc/nfcmrvl/nfcmrvl.h struct nci_dev *ndev; ndev 184 drivers/nfc/nfcmrvl/spi.c drv_data->priv->ndev); ndev 143 drivers/nfc/nfcmrvl/uart.c nu->ndev = priv->ndev; ndev 163 drivers/nfc/nfcmrvl/uart.c if (priv->ndev->nfc_dev->fw_download_in_progress) ndev 177 drivers/nfc/nfcmrvl/uart.c if (priv->ndev->nfc_dev->fw_download_in_progress) ndev 81 drivers/nfc/nfcmrvl/usb.c skb = nci_skb_alloc(drv_data->priv->ndev, urb->actual_length, ndev 160 drivers/nfc/nfcmrvl/usb.c struct nci_dev *ndev = (struct nci_dev *)skb->dev; ndev 161 drivers/nfc/nfcmrvl/usb.c struct nfcmrvl_private *priv = nci_get_drvdata(ndev); ndev 30 drivers/nfc/nxp-nci/core.c static int nxp_nci_open(struct nci_dev *ndev) ndev 32 drivers/nfc/nxp-nci/core.c struct nxp_nci_info *info = nci_get_drvdata(ndev); ndev 52 drivers/nfc/nxp-nci/core.c static int nxp_nci_close(struct nci_dev *ndev) ndev 54 drivers/nfc/nxp-nci/core.c struct nxp_nci_info *info = nci_get_drvdata(ndev); ndev 68 drivers/nfc/nxp-nci/core.c static int nxp_nci_send(struct nci_dev *ndev, struct sk_buff *skb) ndev 70 drivers/nfc/nxp-nci/core.c struct nxp_nci_info *info = nci_get_drvdata(ndev); ndev 101 drivers/nfc/nxp-nci/core.c struct nci_dev **ndev) ndev 128 drivers/nfc/nxp-nci/core.c info->ndev = nci_allocate_device(&nxp_nci_ops, NXP_NCI_NFC_PROTOCOLS, ndev 130 drivers/nfc/nxp-nci/core.c if (!info->ndev) { ndev 135 drivers/nfc/nxp-nci/core.c nci_set_parent_dev(info->ndev, pdev); ndev 136 drivers/nfc/nxp-nci/core.c nci_set_drvdata(info->ndev, info); ndev 137 drivers/nfc/nxp-nci/core.c r = nci_register_device(info->ndev); ndev 141 drivers/nfc/nxp-nci/core.c *ndev = info->ndev; ndev 146 drivers/nfc/nxp-nci/core.c nci_free_device(info->ndev); ndev 152 drivers/nfc/nxp-nci/core.c void nxp_nci_remove(struct nci_dev *ndev) ndev 154 drivers/nfc/nxp-nci/core.c struct nxp_nci_info *info = nci_get_drvdata(ndev); ndev 165 drivers/nfc/nxp-nci/core.c nci_unregister_device(ndev); ndev 166 drivers/nfc/nxp-nci/core.c nci_free_device(ndev); ndev 70 drivers/nfc/nxp-nci/firmware.c nfc_fw_download_done(info->ndev->nfc_dev, fw_info->name, (u32) -result); ndev 97 drivers/nfc/nxp-nci/firmware.c skb = nci_skb_alloc(info->ndev, info->max_payload, GFP_KERNEL); ndev 199 drivers/nfc/nxp-nci/firmware.c int nxp_nci_fw_download(struct nci_dev *ndev, const char *firmware_name) ndev 201 drivers/nfc/nxp-nci/firmware.c struct nxp_nci_info *info = nci_get_drvdata(ndev); ndev 220 drivers/nfc/nxp-nci/firmware.c ndev->nfc_dev->dev.parent); ndev 292 drivers/nfc/nxp-nci/firmware.c void nxp_nci_fw_recv_frame(struct nci_dev *ndev, struct sk_buff *skb) ndev 294 drivers/nfc/nxp-nci/firmware.c struct nxp_nci_info *info = nci_get_drvdata(ndev); ndev 34 drivers/nfc/nxp-nci/i2c.c struct nci_dev *ndev; ndev 191 drivers/nfc/nxp-nci/i2c.c if (!phy || !phy->ndev) ndev 199 drivers/nfc/nxp-nci/i2c.c info = nci_get_drvdata(phy->ndev); ndev 224 drivers/nfc/nxp-nci/i2c.c nxp_nci_fw_recv_frame(phy->ndev, NULL); ndev 233 drivers/nfc/nxp-nci/i2c.c nci_recv_frame(phy->ndev, skb); ndev 236 drivers/nfc/nxp-nci/i2c.c nxp_nci_fw_recv_frame(phy->ndev, skb); ndev 296 drivers/nfc/nxp-nci/i2c.c NXP_NCI_I2C_MAX_PAYLOAD, &phy->ndev); ndev 314 drivers/nfc/nxp-nci/i2c.c nxp_nci_remove(phy->ndev); ndev 53 drivers/nfc/nxp-nci/nxp-nci.h struct nci_dev *ndev; ndev 67 drivers/nfc/nxp-nci/nxp-nci.h int nxp_nci_fw_download(struct nci_dev *ndev, const char *firmware_name); ndev 69 drivers/nfc/nxp-nci/nxp-nci.h void nxp_nci_fw_recv_frame(struct nci_dev *ndev, struct sk_buff *skb); ndev 75 drivers/nfc/nxp-nci/nxp-nci.h struct nci_dev **ndev); ndev 76 drivers/nfc/nxp-nci/nxp-nci.h void nxp_nci_remove(struct nci_dev *ndev); ndev 557 drivers/nfc/pn544/i2c.c nfc_fw_download_done(phy->hdev->ndev, phy->firmware_name, (u32) -result); ndev 381 drivers/nfc/pn544/pn544.c hdev->gb = nfc_get_local_general_bytes(hdev->ndev, ndev 463 drivers/nfc/pn544/pn544.c r = nfc_set_remote_general_bytes(hdev->ndev, rgb_skb->data, ndev 467 drivers/nfc/pn544/pn544.c r = nfc_dep_link_is_up(hdev->ndev, target->idx, comm_mode, ndev 734 drivers/nfc/pn544/pn544.c r = nfc_tm_activated(hdev->ndev, NFC_PROTO_NFC_DEP_MASK, ndev 760 drivers/nfc/pn544/pn544.c return nfc_tm_data_received(hdev->ndev, skb); ndev 794 drivers/nfc/pn544/pn544.c nfc_add_se(hdev->ndev, se_idx++, NFC_SE_UICC); ndev 803 drivers/nfc/pn544/pn544.c nfc_add_se(hdev->ndev, se_idx++, NFC_SE_EMBEDDED); ndev 829 drivers/nfc/pn544/pn544.c se = nfc_find_se(hdev->ndev, se_idx); ndev 870 drivers/nfc/pn544/pn544.c se = nfc_find_se(hdev->ndev, se_idx); ndev 40 drivers/nfc/s3fwrn5/core.c info->ndev->manufact_specific_info); ndev 44 drivers/nfc/s3fwrn5/core.c dev_info(&info->ndev->nfc_dev->dev, "Detected new firmware version\n"); ndev 64 drivers/nfc/s3fwrn5/core.c static int s3fwrn5_nci_open(struct nci_dev *ndev) ndev 66 drivers/nfc/s3fwrn5/core.c struct s3fwrn5_info *info = nci_get_drvdata(ndev); ndev 77 drivers/nfc/s3fwrn5/core.c static int s3fwrn5_nci_close(struct nci_dev *ndev) ndev 79 drivers/nfc/s3fwrn5/core.c struct s3fwrn5_info *info = nci_get_drvdata(ndev); ndev 87 drivers/nfc/s3fwrn5/core.c static int s3fwrn5_nci_send(struct nci_dev *ndev, struct sk_buff *skb) ndev 89 drivers/nfc/s3fwrn5/core.c struct s3fwrn5_info *info = nci_get_drvdata(ndev); ndev 107 drivers/nfc/s3fwrn5/core.c static int s3fwrn5_nci_post_setup(struct nci_dev *ndev) ndev 109 drivers/nfc/s3fwrn5/core.c struct s3fwrn5_info *info = nci_get_drvdata(ndev); ndev 121 drivers/nfc/s3fwrn5/core.c ret = nci_core_reset(info->ndev); ndev 125 drivers/nfc/s3fwrn5/core.c ret = nci_core_init(info->ndev); ndev 138 drivers/nfc/s3fwrn5/core.c int s3fwrn5_probe(struct nci_dev **ndev, void *phy_id, struct device *pdev, ndev 159 drivers/nfc/s3fwrn5/core.c info->ndev = nci_allocate_device(&s3fwrn5_nci_ops, ndev 161 drivers/nfc/s3fwrn5/core.c if (!info->ndev) ndev 164 drivers/nfc/s3fwrn5/core.c nci_set_parent_dev(info->ndev, pdev); ndev 165 drivers/nfc/s3fwrn5/core.c nci_set_drvdata(info->ndev, info); ndev 167 drivers/nfc/s3fwrn5/core.c ret = nci_register_device(info->ndev); ndev 169 drivers/nfc/s3fwrn5/core.c nci_free_device(info->ndev); ndev 173 drivers/nfc/s3fwrn5/core.c info->fw_info.ndev = info->ndev; ndev 175 drivers/nfc/s3fwrn5/core.c *ndev = info->ndev; ndev 181 drivers/nfc/s3fwrn5/core.c void s3fwrn5_remove(struct nci_dev *ndev) ndev 183 drivers/nfc/s3fwrn5/core.c struct s3fwrn5_info *info = nci_get_drvdata(ndev); ndev 187 drivers/nfc/s3fwrn5/core.c nci_unregister_device(ndev); ndev 188 drivers/nfc/s3fwrn5/core.c nci_free_device(ndev); ndev 192 drivers/nfc/s3fwrn5/core.c int s3fwrn5_recv_frame(struct nci_dev *ndev, struct sk_buff *skb, ndev 197 drivers/nfc/s3fwrn5/core.c return nci_recv_frame(ndev, skb); ndev 199 drivers/nfc/s3fwrn5/core.c return s3fwrn5_fw_recv_frame(ndev, skb); ndev 292 drivers/nfc/s3fwrn5/firmware.c &fw_info->ndev->nfc_dev->dev); ndev 365 drivers/nfc/s3fwrn5/firmware.c dev_err(&fw_info->ndev->nfc_dev->dev, ndev 374 drivers/nfc/s3fwrn5/firmware.c dev_err(&fw_info->ndev->nfc_dev->dev, ndev 383 drivers/nfc/s3fwrn5/firmware.c dev_err(&fw_info->ndev->nfc_dev->dev, ndev 432 drivers/nfc/s3fwrn5/firmware.c dev_err(&fw_info->ndev->nfc_dev->dev, ndev 449 drivers/nfc/s3fwrn5/firmware.c dev_err(&fw_info->ndev->nfc_dev->dev, ndev 456 drivers/nfc/s3fwrn5/firmware.c dev_info(&fw_info->ndev->nfc_dev->dev, ndev 462 drivers/nfc/s3fwrn5/firmware.c dev_err(&fw_info->ndev->nfc_dev->dev, ndev 471 drivers/nfc/s3fwrn5/firmware.c dev_err(&fw_info->ndev->nfc_dev->dev, ndev 479 drivers/nfc/s3fwrn5/firmware.c dev_err(&fw_info->ndev->nfc_dev->dev, ndev 484 drivers/nfc/s3fwrn5/firmware.c dev_info(&fw_info->ndev->nfc_dev->dev, ndev 505 drivers/nfc/s3fwrn5/firmware.c int s3fwrn5_fw_recv_frame(struct nci_dev *ndev, struct sk_buff *skb) ndev 507 drivers/nfc/s3fwrn5/firmware.c struct s3fwrn5_info *info = nci_get_drvdata(ndev); ndev 78 drivers/nfc/s3fwrn5/firmware.h struct nci_dev *ndev; ndev 98 drivers/nfc/s3fwrn5/firmware.h int s3fwrn5_fw_recv_frame(struct nci_dev *ndev, struct sk_buff *skb); ndev 27 drivers/nfc/s3fwrn5/i2c.c struct nci_dev *ndev; ndev 161 drivers/nfc/s3fwrn5/i2c.c return s3fwrn5_recv_frame(phy->ndev, skb, phy->mode); ndev 169 drivers/nfc/s3fwrn5/i2c.c if (!phy || !phy->ndev) { ndev 245 drivers/nfc/s3fwrn5/i2c.c ret = s3fwrn5_probe(&phy->ndev, phy, &phy->i2c_dev->dev, &i2c_phy_ops, ndev 254 drivers/nfc/s3fwrn5/i2c.c s3fwrn5_remove(phy->ndev); ndev 263 drivers/nfc/s3fwrn5/i2c.c s3fwrn5_remove(phy->ndev); ndev 15 drivers/nfc/s3fwrn5/nci.c static int s3fwrn5_nci_prop_rsp(struct nci_dev *ndev, struct sk_buff *skb) ndev 19 drivers/nfc/s3fwrn5/nci.c nci_req_complete(ndev, status); ndev 89 drivers/nfc/s3fwrn5/nci.c ret = request_firmware(&fw, fw_name, &info->ndev->nfc_dev->dev); ndev 104 drivers/nfc/s3fwrn5/nci.c ret = nci_prop_cmd(info->ndev, NCI_PROP_FW_CFG, ndev 111 drivers/nfc/s3fwrn5/nci.c dev_info(&info->ndev->nfc_dev->dev, ndev 114 drivers/nfc/s3fwrn5/nci.c ret = nci_prop_cmd(info->ndev, NCI_PROP_START_RFREG, 0, NULL); ndev 116 drivers/nfc/s3fwrn5/nci.c dev_err(&info->ndev->nfc_dev->dev, ndev 128 drivers/nfc/s3fwrn5/nci.c ret = nci_prop_cmd(info->ndev, NCI_PROP_SET_RFREG, ndev 131 drivers/nfc/s3fwrn5/nci.c dev_err(&info->ndev->nfc_dev->dev, ndev 141 drivers/nfc/s3fwrn5/nci.c ret = nci_prop_cmd(info->ndev, NCI_PROP_STOP_RFREG, ndev 144 drivers/nfc/s3fwrn5/nci.c dev_err(&info->ndev->nfc_dev->dev, ndev 149 drivers/nfc/s3fwrn5/nci.c dev_info(&info->ndev->nfc_dev->dev, ndev 32 drivers/nfc/s3fwrn5/s3fwrn5.h struct nci_dev *ndev; ndev 81 drivers/nfc/s3fwrn5/s3fwrn5.h int s3fwrn5_probe(struct nci_dev **ndev, void *phy_id, struct device *pdev, ndev 83 drivers/nfc/s3fwrn5/s3fwrn5.h void s3fwrn5_remove(struct nci_dev *ndev); ndev 85 drivers/nfc/s3fwrn5/s3fwrn5.h int s3fwrn5_recv_frame(struct nci_dev *ndev, struct sk_buff *skb, ndev 21 drivers/nfc/st-nci/core.c static int st_nci_init(struct nci_dev *ndev) ndev 28 drivers/nfc/st-nci/core.c return nci_prop_cmd(ndev, ST_NCI_CORE_PROP, ndev 32 drivers/nfc/st-nci/core.c static int st_nci_open(struct nci_dev *ndev) ndev 34 drivers/nfc/st-nci/core.c struct st_nci_info *info = nci_get_drvdata(ndev); ndev 47 drivers/nfc/st-nci/core.c static int st_nci_close(struct nci_dev *ndev) ndev 49 drivers/nfc/st-nci/core.c struct st_nci_info *info = nci_get_drvdata(ndev); ndev 61 drivers/nfc/st-nci/core.c static int st_nci_send(struct nci_dev *ndev, struct sk_buff *skb) ndev 63 drivers/nfc/st-nci/core.c struct st_nci_info *info = nci_get_drvdata(ndev); ndev 65 drivers/nfc/st-nci/core.c skb->dev = (void *)ndev; ndev 73 drivers/nfc/st-nci/core.c static __u32 st_nci_get_rfprotocol(struct nci_dev *ndev, ndev 80 drivers/nfc/st-nci/core.c static int st_nci_prop_rsp_packet(struct nci_dev *ndev, ndev 85 drivers/nfc/st-nci/core.c nci_req_complete(ndev, status); ndev 134 drivers/nfc/st-nci/core.c ndlc->ndev = nci_allocate_device(&st_nci_ops, protocols, ndev 136 drivers/nfc/st-nci/core.c if (!ndlc->ndev) { ndev 142 drivers/nfc/st-nci/core.c nci_set_drvdata(ndlc->ndev, info); ndev 144 drivers/nfc/st-nci/core.c r = st_nci_vendor_cmds_init(ndlc->ndev); ndev 150 drivers/nfc/st-nci/core.c r = nci_register_device(ndlc->ndev); ndev 156 drivers/nfc/st-nci/core.c return st_nci_se_init(ndlc->ndev, se_status); ndev 159 drivers/nfc/st-nci/core.c nci_free_device(ndlc->ndev); ndev 164 drivers/nfc/st-nci/core.c void st_nci_remove(struct nci_dev *ndev) ndev 166 drivers/nfc/st-nci/core.c struct st_nci_info *info = nci_get_drvdata(ndev); ndev 170 drivers/nfc/st-nci/core.c nci_unregister_device(ndev); ndev 171 drivers/nfc/st-nci/core.c nci_free_device(ndev); ndev 65 drivers/nfc/st-nci/ndlc.c nci_prop_cmd(ndlc->ndev, ST_NCI_CORE_PROP, ndev 189 drivers/nfc/st-nci/ndlc.c nci_recv_frame(ndlc->ndev, skb); ndev 289 drivers/nfc/st-nci/ndlc.c st_nci_remove(ndlc->ndev); ndev 18 drivers/nfc/st-nci/ndlc.h struct nci_dev *ndev; ndev 113 drivers/nfc/st-nci/se.c static u8 st_nci_se_get_bwi(struct nci_dev *ndev) ndev 117 drivers/nfc/st-nci/se.c struct st_nci_info *info = nci_get_drvdata(ndev); ndev 132 drivers/nfc/st-nci/se.c static void st_nci_se_get_atr(struct nci_dev *ndev) ndev 134 drivers/nfc/st-nci/se.c struct st_nci_info *info = nci_get_drvdata(ndev); ndev 138 drivers/nfc/st-nci/se.c r = nci_hci_get_param(ndev, ST_NCI_APDU_READER_GATE, ndev 147 drivers/nfc/st-nci/se.c ST_NCI_BWI_TO_TIMEOUT(st_nci_se_get_bwi(ndev)); ndev 152 drivers/nfc/st-nci/se.c int st_nci_hci_load_session(struct nci_dev *ndev) ndev 178 drivers/nfc/st-nci/se.c r = nci_hci_connect_gate(ndev, ST_NCI_HOST_CONTROLLER_ID, ndev 185 drivers/nfc/st-nci/se.c r = nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE, ndev 194 drivers/nfc/st-nci/se.c r = nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE, ndev 226 drivers/nfc/st-nci/se.c ndev->hci_dev->init_data.gates[j].pipe = pipe_info[2]; ndev 228 drivers/nfc/st-nci/se.c ndev->hci_dev->gate2pipe[st_nci_gates[j].gate] = ndev 230 drivers/nfc/st-nci/se.c ndev->hci_dev->pipes[pipe_info[2]].gate = ndev 232 drivers/nfc/st-nci/se.c ndev->hci_dev->pipes[pipe_info[2]].host = ndev 242 drivers/nfc/st-nci/se.c r = nci_hci_connect_gate(ndev, ST_NCI_HOST_CONTROLLER_ID, ndev 251 drivers/nfc/st-nci/se.c static void st_nci_hci_admin_event_received(struct nci_dev *ndev, ndev 254 drivers/nfc/st-nci/se.c struct st_nci_info *info = nci_get_drvdata(ndev); ndev 271 drivers/nfc/st-nci/se.c nfc_err(&ndev->nfc_dev->dev, "Unexpected event on admin gate\n"); ndev 275 drivers/nfc/st-nci/se.c static int st_nci_hci_apdu_reader_event_received(struct nci_dev *ndev, ndev 280 drivers/nfc/st-nci/se.c struct st_nci_info *info = nci_get_drvdata(ndev); ndev 296 drivers/nfc/st-nci/se.c nfc_err(&ndev->nfc_dev->dev, "Unexpected event on apdu reader gate\n"); ndev 309 drivers/nfc/st-nci/se.c static int st_nci_hci_connectivity_event_received(struct nci_dev *ndev, ndev 314 drivers/nfc/st-nci/se.c struct device *dev = &ndev->nfc_dev->dev; ndev 321 drivers/nfc/st-nci/se.c r = nfc_se_connectivity(ndev->nfc_dev, host); ndev 351 drivers/nfc/st-nci/se.c r = nfc_se_transaction(ndev->nfc_dev, host, transaction); ndev 354 drivers/nfc/st-nci/se.c nfc_err(&ndev->nfc_dev->dev, "Unexpected event on connectivity gate\n"); ndev 361 drivers/nfc/st-nci/se.c void st_nci_hci_event_received(struct nci_dev *ndev, u8 pipe, ndev 364 drivers/nfc/st-nci/se.c u8 gate = ndev->hci_dev->pipes[pipe].gate; ndev 365 drivers/nfc/st-nci/se.c u8 host = ndev->hci_dev->pipes[pipe].host; ndev 369 drivers/nfc/st-nci/se.c st_nci_hci_admin_event_received(ndev, event, skb); ndev 372 drivers/nfc/st-nci/se.c st_nci_hci_apdu_reader_event_received(ndev, event, skb); ndev 375 drivers/nfc/st-nci/se.c st_nci_hci_connectivity_event_received(ndev, host, event, skb); ndev 381 drivers/nfc/st-nci/se.c void st_nci_hci_cmd_received(struct nci_dev *ndev, u8 pipe, u8 cmd, ndev 384 drivers/nfc/st-nci/se.c struct st_nci_info *info = nci_get_drvdata(ndev); ndev 385 drivers/nfc/st-nci/se.c u8 gate = ndev->hci_dev->pipes[pipe].gate; ndev 392 drivers/nfc/st-nci/se.c ndev->hci_dev->pipes[pipe].host != ST_NCI_UICC_HOST_ID) ndev 393 drivers/nfc/st-nci/se.c ndev->hci_dev->count_pipes++; ndev 395 drivers/nfc/st-nci/se.c if (ndev->hci_dev->count_pipes == ndev 396 drivers/nfc/st-nci/se.c ndev->hci_dev->expected_pipes) { ndev 399 drivers/nfc/st-nci/se.c ndev->hci_dev->count_pipes = 0; ndev 407 drivers/nfc/st-nci/se.c static int st_nci_control_se(struct nci_dev *ndev, u8 se_idx, ndev 410 drivers/nfc/st-nci/se.c struct st_nci_info *info = nci_get_drvdata(ndev); ndev 417 drivers/nfc/st-nci/se.c ndev->hci_dev->count_pipes = 0; ndev 418 drivers/nfc/st-nci/se.c ndev->hci_dev->expected_pipes = ST_NCI_SE_COUNT_PIPE_UICC; ndev 421 drivers/nfc/st-nci/se.c ndev->hci_dev->count_pipes = 0; ndev 422 drivers/nfc/st-nci/se.c ndev->hci_dev->expected_pipes = ST_NCI_SE_COUNT_PIPE_EMBEDDED; ndev 433 drivers/nfc/st-nci/se.c r = nci_nfcee_mode_set(ndev, se_idx, state); ndev 453 drivers/nfc/st-nci/se.c r = nci_hci_get_param(ndev, NCI_HCI_ADMIN_GATE, ndev 471 drivers/nfc/st-nci/se.c int st_nci_disable_se(struct nci_dev *ndev, u32 se_idx) ndev 482 drivers/nfc/st-nci/se.c r = st_nci_control_se(ndev, se_idx, ST_NCI_SE_MODE_OFF); ndev 486 drivers/nfc/st-nci/se.c r = nci_hci_send_event(ndev, ST_NCI_APDU_READER_GATE, ndev 497 drivers/nfc/st-nci/se.c int st_nci_enable_se(struct nci_dev *ndev, u32 se_idx) ndev 508 drivers/nfc/st-nci/se.c r = st_nci_control_se(ndev, se_idx, ST_NCI_SE_MODE_ON); ndev 510 drivers/nfc/st-nci/se.c st_nci_se_get_atr(ndev); ndev 511 drivers/nfc/st-nci/se.c r = nci_hci_send_event(ndev, ST_NCI_APDU_READER_GATE, ndev 520 drivers/nfc/st-nci/se.c nfc_remove_se(ndev->nfc_dev, se_idx); ndev 528 drivers/nfc/st-nci/se.c static int st_nci_hci_network_init(struct nci_dev *ndev) ndev 530 drivers/nfc/st-nci/se.c struct st_nci_info *info = nci_get_drvdata(ndev); ndev 546 drivers/nfc/st-nci/se.c spec_params.id = ndev->hci_dev->nfcee_id; ndev 550 drivers/nfc/st-nci/se.c r = nci_core_conn_create(ndev, NCI_DESTINATION_NFCEE, 1, ndev 557 drivers/nfc/st-nci/se.c conn_info = ndev->hci_dev->conn_info; ndev 561 drivers/nfc/st-nci/se.c ndev->hci_dev->init_data.gate_count = ARRAY_SIZE(st_nci_gates); ndev 562 drivers/nfc/st-nci/se.c memcpy(ndev->hci_dev->init_data.gates, st_nci_gates, ndev 575 drivers/nfc/st-nci/se.c scnprintf(ndev->hci_dev->init_data.session_id, ndev 576 drivers/nfc/st-nci/se.c sizeof(ndev->hci_dev->init_data.session_id), ndev 579 drivers/nfc/st-nci/se.c r = nci_hci_dev_session_init(ndev); ndev 589 drivers/nfc/st-nci/se.c r = nci_nfcee_mode_set(ndev, ndev 590 drivers/nfc/st-nci/se.c ndev->hci_dev->conn_info->dest_params->id, ndev 593 drivers/nfc/st-nci/se.c r = nci_nfcee_mode_set(ndev, ndev 594 drivers/nfc/st-nci/se.c ndev->hci_dev->conn_info->dest_params->id, ndev 604 drivers/nfc/st-nci/se.c int st_nci_discover_se(struct nci_dev *ndev) ndev 609 drivers/nfc/st-nci/se.c struct st_nci_info *info = nci_get_drvdata(ndev); ndev 613 drivers/nfc/st-nci/se.c r = st_nci_hci_network_init(ndev); ndev 626 drivers/nfc/st-nci/se.c r = nci_hci_set_param(ndev, NCI_HCI_ADMIN_GATE, ndev 634 drivers/nfc/st-nci/se.c nfc_add_se(ndev->nfc_dev, ST_NCI_UICC_HOST_ID, NFC_SE_UICC); ndev 639 drivers/nfc/st-nci/se.c nfc_add_se(ndev->nfc_dev, ST_NCI_ESE_HOST_ID, NFC_SE_EMBEDDED); ndev 647 drivers/nfc/st-nci/se.c int st_nci_se_io(struct nci_dev *ndev, u32 se_idx, ndev 651 drivers/nfc/st-nci/se.c struct st_nci_info *info = nci_get_drvdata(ndev); ndev 662 drivers/nfc/st-nci/se.c return nci_hci_send_event(ndev, ST_NCI_APDU_READER_GATE, ndev 692 drivers/nfc/st-nci/se.c nci_hci_send_event(info->ndlc->ndev, ST_NCI_APDU_READER_GATE, ndev 696 drivers/nfc/st-nci/se.c nci_hci_send_event(info->ndlc->ndev, ST_NCI_DEVICE_MGNT_GATE, ndev 714 drivers/nfc/st-nci/se.c int st_nci_se_init(struct nci_dev *ndev, struct st_nci_se_status *se_status) ndev 716 drivers/nfc/st-nci/se.c struct st_nci_info *info = nci_get_drvdata(ndev); ndev 738 drivers/nfc/st-nci/se.c void st_nci_se_deinit(struct nci_dev *ndev) ndev 740 drivers/nfc/st-nci/se.c struct st_nci_info *info = nci_get_drvdata(ndev); ndev 121 drivers/nfc/st-nci/st-nci.h void st_nci_remove(struct nci_dev *ndev); ndev 125 drivers/nfc/st-nci/st-nci.h int st_nci_se_init(struct nci_dev *ndev, struct st_nci_se_status *se_status); ndev 126 drivers/nfc/st-nci/st-nci.h void st_nci_se_deinit(struct nci_dev *ndev); ndev 128 drivers/nfc/st-nci/st-nci.h int st_nci_discover_se(struct nci_dev *ndev); ndev 129 drivers/nfc/st-nci/st-nci.h int st_nci_enable_se(struct nci_dev *ndev, u32 se_idx); ndev 130 drivers/nfc/st-nci/st-nci.h int st_nci_disable_se(struct nci_dev *ndev, u32 se_idx); ndev 131 drivers/nfc/st-nci/st-nci.h int st_nci_se_io(struct nci_dev *ndev, u32 se_idx, ndev 134 drivers/nfc/st-nci/st-nci.h int st_nci_hci_load_session(struct nci_dev *ndev); ndev 135 drivers/nfc/st-nci/st-nci.h void st_nci_hci_event_received(struct nci_dev *ndev, u8 pipe, ndev 137 drivers/nfc/st-nci/st-nci.h void st_nci_hci_cmd_received(struct nci_dev *ndev, u8 pipe, u8 cmd, ndev 140 drivers/nfc/st-nci/st-nci.h int st_nci_vendor_cmds_init(struct nci_dev *ndev); ndev 42 drivers/nfc/st-nci/vendor_cmds.c struct nci_dev *ndev = nfc_get_drvdata(dev); ndev 43 drivers/nfc/st-nci/vendor_cmds.c struct st_nci_info *info = nci_get_drvdata(ndev); ndev 67 drivers/nfc/st-nci/vendor_cmds.c struct nci_dev *ndev = nfc_get_drvdata(dev); ndev 69 drivers/nfc/st-nci/vendor_cmds.c return nci_hci_clear_all_pipes(ndev); ndev 75 drivers/nfc/st-nci/vendor_cmds.c struct nci_dev *ndev = nfc_get_drvdata(dev); ndev 77 drivers/nfc/st-nci/vendor_cmds.c return nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE, ndev 85 drivers/nfc/st-nci/vendor_cmds.c struct nci_dev *ndev = nfc_get_drvdata(dev); ndev 87 drivers/nfc/st-nci/vendor_cmds.c return nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE, ndev 96 drivers/nfc/st-nci/vendor_cmds.c struct nci_dev *ndev = nfc_get_drvdata(dev); ndev 98 drivers/nfc/st-nci/vendor_cmds.c r = nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE, ST_NCI_HCI_DM_GETINFO, ndev 129 drivers/nfc/st-nci/vendor_cmds.c struct nci_dev *ndev = nfc_get_drvdata(dev); ndev 131 drivers/nfc/st-nci/vendor_cmds.c r = nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE, ST_NCI_HCI_DM_GETDATA, ndev 161 drivers/nfc/st-nci/vendor_cmds.c struct nci_dev *ndev = nfc_get_drvdata(dev); ndev 164 drivers/nfc/st-nci/vendor_cmds.c r = nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE, ndev 175 drivers/nfc/st-nci/vendor_cmds.c struct nci_dev *ndev = nfc_get_drvdata(dev); ndev 177 drivers/nfc/st-nci/vendor_cmds.c return nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE, ndev 184 drivers/nfc/st-nci/vendor_cmds.c struct nci_dev *ndev = nfc_get_drvdata(dev); ndev 188 drivers/nfc/st-nci/vendor_cmds.c return nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE, ndev 197 drivers/nfc/st-nci/vendor_cmds.c struct nci_dev *ndev = nfc_get_drvdata(dev); ndev 199 drivers/nfc/st-nci/vendor_cmds.c nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE, ndev 211 drivers/nfc/st-nci/vendor_cmds.c struct nci_dev *ndev = nfc_get_drvdata(dev); ndev 217 drivers/nfc/st-nci/vendor_cmds.c r = nci_hci_get_param(ndev, param->gate, param->data, &skb); ndev 245 drivers/nfc/st-nci/vendor_cmds.c struct nci_dev *ndev = nfc_get_drvdata(dev); ndev 247 drivers/nfc/st-nci/vendor_cmds.c return nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE, ndev 256 drivers/nfc/st-nci/vendor_cmds.c struct nci_dev *ndev = nfc_get_drvdata(dev); ndev 261 drivers/nfc/st-nci/vendor_cmds.c r = nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE, ndev 293 drivers/nfc/st-nci/vendor_cmds.c struct nci_dev *ndev = nfc_get_drvdata(dev); ndev 298 drivers/nfc/st-nci/vendor_cmds.c r = nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE, ndev 330 drivers/nfc/st-nci/vendor_cmds.c struct nci_dev *ndev = nfc_get_drvdata(dev); ndev 335 drivers/nfc/st-nci/vendor_cmds.c r = nci_nfcc_loopback(ndev, data, data_len, &skb); ndev 362 drivers/nfc/st-nci/vendor_cmds.c struct nci_dev *ndev = nfc_get_drvdata(dev); ndev 366 drivers/nfc/st-nci/vendor_cmds.c sizeof(ndev->manufact_specific_info)); ndev 370 drivers/nfc/st-nci/vendor_cmds.c if (nla_put(msg, NFC_ATTR_VENDOR_DATA, sizeof(ndev->manufact_specific_info), ndev 371 drivers/nfc/st-nci/vendor_cmds.c &ndev->manufact_specific_info)) { ndev 462 drivers/nfc/st-nci/vendor_cmds.c int st_nci_vendor_cmds_init(struct nci_dev *ndev) ndev 464 drivers/nfc/st-nci/vendor_cmds.c return nfc_set_vendor_cmds(ndev->nfc_dev, st_nci_vendor_cmds, ndev 355 drivers/nfc/st21nfca/core.c hdev->gb = nfc_get_local_general_bytes(hdev->ndev, ndev 880 drivers/nfc/st21nfca/core.c nfc_err(&hdev->ndev->dev, "Unexpected event on admin gate\n"); ndev 120 drivers/nfc/st21nfca/dep.c dev = info->hdev->ndev; ndev 174 drivers/nfc/st21nfca/dep.c r = nfc_set_remote_general_bytes(hdev->ndev, atr_res->gbi, ndev 222 drivers/nfc/st21nfca/dep.c r = nfc_tm_activated(hdev->ndev, NFC_PROTO_NFC_DEP_MASK, ndev 366 drivers/nfc/st21nfca/dep.c return nfc_tm_data_received(hdev->ndev, skb); ndev 430 drivers/nfc/st21nfca/dep.c nfc_err(&hdev->ndev->dev, "Unexpected event on card f gate\n"); ndev 484 drivers/nfc/st21nfca/dep.c r = nfc_set_remote_general_bytes(info->hdev->ndev, ndev 497 drivers/nfc/st21nfca/dep.c r = nfc_dep_link_is_up(info->hdev->ndev, info->dep_info.idx, ndev 544 drivers/nfc/st21nfca/dep.c target = hdev->ndev->targets; ndev 620 drivers/nfc/st21nfca/dep.c nfc_tm_data_received(info->hdev->ndev, skb); ndev 161 drivers/nfc/st21nfca/se.c nfc_add_se(hdev->ndev, NFC_HCI_UICC_HOST_ID, NFC_SE_UICC); ndev 166 drivers/nfc/st21nfca/se.c nfc_add_se(hdev->ndev, ST21NFCA_ESE_HOST_ID, NFC_SE_EMBEDDED); ndev 195 drivers/nfc/st21nfca/se.c nfc_remove_se(hdev->ndev, se_idx); ndev 297 drivers/nfc/st21nfca/se.c struct device *dev = &hdev->ndev->dev; ndev 304 drivers/nfc/st21nfca/se.c r = nfc_se_connectivity(hdev->ndev, host); ndev 336 drivers/nfc/st21nfca/se.c r = nfc_se_transaction(hdev->ndev, host, transaction); ndev 339 drivers/nfc/st21nfca/se.c nfc_err(&hdev->ndev->dev, "Unexpected event on connectivity gate\n"); ndev 372 drivers/nfc/st21nfca/se.c nfc_err(&hdev->ndev->dev, "Unexpected event on apdu reader gate\n"); ndev 196 drivers/nfc/st21nfca/st21nfca.h int st21nfca_hci_loopback_event_received(struct nfc_hci_dev *ndev, u8 event, ndev 198 drivers/nfc/st21nfca/st21nfca.h int st21nfca_vendor_cmds_init(struct nfc_hci_dev *ndev); ndev 240 drivers/nfc/st21nfca/vendor_cmds.c nfc_err(&hdev->ndev->dev, "Unexpected event on loopback gate\n"); ndev 275 drivers/nfc/st21nfca/vendor_cmds.c msg = nfc_vendor_cmd_alloc_reply_skb(hdev->ndev, ndev 361 drivers/nfc/st21nfca/vendor_cmds.c return nfc_set_vendor_cmds(hdev->ndev, st21nfca_vendor_cmds, ndev 76 drivers/ntb/hw/amd/ntb_hw_amd.c static int ndev_mw_to_bar(struct amd_ntb_dev *ndev, int idx) ndev 78 drivers/ntb/hw/amd/ntb_hw_amd.c if (idx < 0 || idx > ndev->mw_count) ndev 81 drivers/ntb/hw/amd/ntb_hw_amd.c return ndev->dev_data->mw_idx << idx; ndev 97 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = ntb_ndev(ntb); ndev 103 drivers/ntb/hw/amd/ntb_hw_amd.c bar = ndev_mw_to_bar(ndev, idx); ndev 114 drivers/ntb/hw/amd/ntb_hw_amd.c *size_max = pci_resource_len(ndev->ntb.pdev, bar); ndev 122 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = ntb_ndev(ntb); ndev 132 drivers/ntb/hw/amd/ntb_hw_amd.c bar = ndev_mw_to_bar(ndev, idx); ndev 142 drivers/ntb/hw/amd/ntb_hw_amd.c mmio = ndev->self_mmio; ndev 143 drivers/ntb/hw/amd/ntb_hw_amd.c peer_mmio = ndev->peer_mmio; ndev 198 drivers/ntb/hw/amd/ntb_hw_amd.c static int amd_link_is_up(struct amd_ntb_dev *ndev) ndev 200 drivers/ntb/hw/amd/ntb_hw_amd.c if (!ndev->peer_sta) ndev 201 drivers/ntb/hw/amd/ntb_hw_amd.c return NTB_LNK_STA_ACTIVE(ndev->cntl_sta); ndev 203 drivers/ntb/hw/amd/ntb_hw_amd.c if (ndev->peer_sta & AMD_LINK_UP_EVENT) { ndev 204 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->peer_sta = 0; ndev 214 drivers/ntb/hw/amd/ntb_hw_amd.c if (ndev->peer_sta & AMD_PEER_RESET_EVENT) ndev 215 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->peer_sta &= ~AMD_PEER_RESET_EVENT; ndev 216 drivers/ntb/hw/amd/ntb_hw_amd.c else if (ndev->peer_sta & (AMD_PEER_D0_EVENT | AMD_LINK_DOWN_EVENT)) ndev 217 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->peer_sta = 0; ndev 226 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = ntb_ndev(ntb); ndev 229 drivers/ntb/hw/amd/ntb_hw_amd.c if (amd_link_is_up(ndev)) { ndev 231 drivers/ntb/hw/amd/ntb_hw_amd.c *speed = NTB_LNK_STA_SPEED(ndev->lnk_sta); ndev 233 drivers/ntb/hw/amd/ntb_hw_amd.c *width = NTB_LNK_STA_WIDTH(ndev->lnk_sta); ndev 254 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = ntb_ndev(ntb); ndev 255 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 259 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->int_mask &= ~AMD_EVENT_INTMASK; ndev 260 drivers/ntb/hw/amd/ntb_hw_amd.c writel(ndev->int_mask, mmio + AMD_INTMASK_OFFSET); ndev 262 drivers/ntb/hw/amd/ntb_hw_amd.c if (ndev->ntb.topo == NTB_TOPO_SEC) ndev 275 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = ntb_ndev(ntb); ndev 276 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 280 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->int_mask |= AMD_EVENT_INTMASK; ndev 281 drivers/ntb/hw/amd/ntb_hw_amd.c writel(ndev->int_mask, mmio + AMD_INTMASK_OFFSET); ndev 283 drivers/ntb/hw/amd/ntb_hw_amd.c if (ndev->ntb.topo == NTB_TOPO_SEC) ndev 303 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = ntb_ndev(ntb); ndev 306 drivers/ntb/hw/amd/ntb_hw_amd.c bar = ndev_mw_to_bar(ndev, idx); ndev 311 drivers/ntb/hw/amd/ntb_hw_amd.c *base = pci_resource_start(ndev->ntb.pdev, bar); ndev 314 drivers/ntb/hw/amd/ntb_hw_amd.c *size = pci_resource_len(ndev->ntb.pdev, bar); ndev 331 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = ntb_ndev(ntb); ndev 333 drivers/ntb/hw/amd/ntb_hw_amd.c if (db_vector < 0 || db_vector > ndev->db_count) ndev 341 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = ntb_ndev(ntb); ndev 342 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 349 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = ntb_ndev(ntb); ndev 350 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 359 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = ntb_ndev(ntb); ndev 360 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 363 drivers/ntb/hw/amd/ntb_hw_amd.c if (db_bits & ~ndev->db_valid_mask) ndev 366 drivers/ntb/hw/amd/ntb_hw_amd.c spin_lock_irqsave(&ndev->db_mask_lock, flags); ndev 367 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->db_mask |= db_bits; ndev 368 drivers/ntb/hw/amd/ntb_hw_amd.c writew((u16)ndev->db_mask, mmio + AMD_DBMASK_OFFSET); ndev 369 drivers/ntb/hw/amd/ntb_hw_amd.c spin_unlock_irqrestore(&ndev->db_mask_lock, flags); ndev 376 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = ntb_ndev(ntb); ndev 377 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 380 drivers/ntb/hw/amd/ntb_hw_amd.c if (db_bits & ~ndev->db_valid_mask) ndev 383 drivers/ntb/hw/amd/ntb_hw_amd.c spin_lock_irqsave(&ndev->db_mask_lock, flags); ndev 384 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->db_mask &= ~db_bits; ndev 385 drivers/ntb/hw/amd/ntb_hw_amd.c writew((u16)ndev->db_mask, mmio + AMD_DBMASK_OFFSET); ndev 386 drivers/ntb/hw/amd/ntb_hw_amd.c spin_unlock_irqrestore(&ndev->db_mask_lock, flags); ndev 393 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = ntb_ndev(ntb); ndev 394 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 408 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = ntb_ndev(ntb); ndev 409 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 412 drivers/ntb/hw/amd/ntb_hw_amd.c if (idx < 0 || idx >= ndev->spad_count) ndev 415 drivers/ntb/hw/amd/ntb_hw_amd.c offset = ndev->self_spad + (idx << 2); ndev 422 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = ntb_ndev(ntb); ndev 423 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 426 drivers/ntb/hw/amd/ntb_hw_amd.c if (idx < 0 || idx >= ndev->spad_count) ndev 429 drivers/ntb/hw/amd/ntb_hw_amd.c offset = ndev->self_spad + (idx << 2); ndev 437 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = ntb_ndev(ntb); ndev 438 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 441 drivers/ntb/hw/amd/ntb_hw_amd.c if (sidx < 0 || sidx >= ndev->spad_count) ndev 444 drivers/ntb/hw/amd/ntb_hw_amd.c offset = ndev->peer_spad + (sidx << 2); ndev 451 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = ntb_ndev(ntb); ndev 452 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 455 drivers/ntb/hw/amd/ntb_hw_amd.c if (sidx < 0 || sidx >= ndev->spad_count) ndev 458 drivers/ntb/hw/amd/ntb_hw_amd.c offset = ndev->peer_spad + (sidx << 2); ndev 488 drivers/ntb/hw/amd/ntb_hw_amd.c static void amd_ack_smu(struct amd_ntb_dev *ndev, u32 bit) ndev 490 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 497 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->peer_sta |= bit; ndev 500 drivers/ntb/hw/amd/ntb_hw_amd.c static void amd_handle_event(struct amd_ntb_dev *ndev, int vec) ndev 502 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 503 drivers/ntb/hw/amd/ntb_hw_amd.c struct device *dev = &ndev->ntb.pdev->dev; ndev 518 drivers/ntb/hw/amd/ntb_hw_amd.c amd_ack_smu(ndev, AMD_PEER_RESET_EVENT); ndev 521 drivers/ntb/hw/amd/ntb_hw_amd.c ntb_link_event(&ndev->ntb); ndev 523 drivers/ntb/hw/amd/ntb_hw_amd.c schedule_delayed_work(&ndev->hb_timer, AMD_LINK_HB_TIMEOUT); ndev 530 drivers/ntb/hw/amd/ntb_hw_amd.c amd_ack_smu(ndev, status); ndev 533 drivers/ntb/hw/amd/ntb_hw_amd.c ntb_link_event(&ndev->ntb); ndev 537 drivers/ntb/hw/amd/ntb_hw_amd.c mmio = ndev->peer_mmio; ndev 543 drivers/ntb/hw/amd/ntb_hw_amd.c amd_ack_smu(ndev, AMD_PEER_D0_EVENT); ndev 546 drivers/ntb/hw/amd/ntb_hw_amd.c schedule_delayed_work(&ndev->hb_timer, ndev 555 drivers/ntb/hw/amd/ntb_hw_amd.c static irqreturn_t ndev_interrupt(struct amd_ntb_dev *ndev, int vec) ndev 557 drivers/ntb/hw/amd/ntb_hw_amd.c dev_dbg(&ndev->ntb.pdev->dev, "vec %d\n", vec); ndev 559 drivers/ntb/hw/amd/ntb_hw_amd.c if (vec > (AMD_DB_CNT - 1) || (ndev->msix_vec_count == 1)) ndev 560 drivers/ntb/hw/amd/ntb_hw_amd.c amd_handle_event(ndev, vec); ndev 563 drivers/ntb/hw/amd/ntb_hw_amd.c ntb_db_event(&ndev->ntb, vec); ndev 572 drivers/ntb/hw/amd/ntb_hw_amd.c return ndev_interrupt(nvec->ndev, nvec->num); ndev 577 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = dev; ndev 579 drivers/ntb/hw/amd/ntb_hw_amd.c return ndev_interrupt(ndev, irq - ndev->ntb.pdev->irq); ndev 582 drivers/ntb/hw/amd/ntb_hw_amd.c static int ndev_init_isr(struct amd_ntb_dev *ndev, ndev 588 drivers/ntb/hw/amd/ntb_hw_amd.c pdev = ndev->ntb.pdev; ndev 592 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->db_mask = ndev->db_valid_mask; ndev 595 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->vec = kcalloc_node(msix_max, sizeof(*ndev->vec), ndev 597 drivers/ntb/hw/amd/ntb_hw_amd.c if (!ndev->vec) ndev 600 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->msix = kcalloc_node(msix_max, sizeof(*ndev->msix), ndev 602 drivers/ntb/hw/amd/ntb_hw_amd.c if (!ndev->msix) ndev 606 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->msix[i].entry = i; ndev 608 drivers/ntb/hw/amd/ntb_hw_amd.c msix_count = pci_enable_msix_range(pdev, ndev->msix, ndev 622 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->vec[i].ndev = ndev; ndev 623 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->vec[i].num = i; ndev 624 drivers/ntb/hw/amd/ntb_hw_amd.c rc = request_irq(ndev->msix[i].vector, ndev_vec_isr, 0, ndev 625 drivers/ntb/hw/amd/ntb_hw_amd.c "ndev_vec_isr", &ndev->vec[i]); ndev 631 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->db_count = msix_min; ndev 632 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->msix_vec_count = msix_max; ndev 637 drivers/ntb/hw/amd/ntb_hw_amd.c free_irq(ndev->msix[i].vector, &ndev->vec[i]); ndev 640 drivers/ntb/hw/amd/ntb_hw_amd.c kfree(ndev->msix); ndev 642 drivers/ntb/hw/amd/ntb_hw_amd.c kfree(ndev->vec); ndev 644 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->msix = NULL; ndev 645 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->vec = NULL; ndev 653 drivers/ntb/hw/amd/ntb_hw_amd.c "ndev_irq_isr", ndev); ndev 658 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->db_count = 1; ndev 659 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->msix_vec_count = 1; ndev 670 drivers/ntb/hw/amd/ntb_hw_amd.c "ndev_irq_isr", ndev); ndev 675 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->db_count = 1; ndev 676 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->msix_vec_count = 1; ndev 683 drivers/ntb/hw/amd/ntb_hw_amd.c static void ndev_deinit_isr(struct amd_ntb_dev *ndev) ndev 686 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 689 drivers/ntb/hw/amd/ntb_hw_amd.c pdev = ndev->ntb.pdev; ndev 692 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->db_mask = ndev->db_valid_mask; ndev 693 drivers/ntb/hw/amd/ntb_hw_amd.c writel(ndev->db_mask, mmio + AMD_DBMASK_OFFSET); ndev 695 drivers/ntb/hw/amd/ntb_hw_amd.c if (ndev->msix) { ndev 696 drivers/ntb/hw/amd/ntb_hw_amd.c i = ndev->msix_vec_count; ndev 698 drivers/ntb/hw/amd/ntb_hw_amd.c free_irq(ndev->msix[i].vector, &ndev->vec[i]); ndev 700 drivers/ntb/hw/amd/ntb_hw_amd.c kfree(ndev->msix); ndev 701 drivers/ntb/hw/amd/ntb_hw_amd.c kfree(ndev->vec); ndev 703 drivers/ntb/hw/amd/ntb_hw_amd.c free_irq(pdev->irq, ndev); ndev 714 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev; ndev 721 drivers/ntb/hw/amd/ntb_hw_amd.c ndev = filp->private_data; ndev 722 drivers/ntb/hw/amd/ntb_hw_amd.c mmio = ndev->self_mmio; ndev 737 drivers/ntb/hw/amd/ntb_hw_amd.c ntb_topo_string(ndev->ntb.topo)); ndev 740 drivers/ntb/hw/amd/ntb_hw_amd.c "LNK STA -\t\t%#06x\n", ndev->lnk_sta); ndev 742 drivers/ntb/hw/amd/ntb_hw_amd.c if (!amd_link_is_up(ndev)) { ndev 750 drivers/ntb/hw/amd/ntb_hw_amd.c NTB_LNK_STA_SPEED(ndev->lnk_sta)); ndev 753 drivers/ntb/hw/amd/ntb_hw_amd.c NTB_LNK_STA_WIDTH(ndev->lnk_sta)); ndev 757 drivers/ntb/hw/amd/ntb_hw_amd.c "Memory Window Count -\t%u\n", ndev->mw_count); ndev 759 drivers/ntb/hw/amd/ntb_hw_amd.c "Scratchpad Count -\t%u\n", ndev->spad_count); ndev 761 drivers/ntb/hw/amd/ntb_hw_amd.c "Doorbell Count -\t%u\n", ndev->db_count); ndev 763 drivers/ntb/hw/amd/ntb_hw_amd.c "MSIX Vector Count -\t%u\n", ndev->msix_vec_count); ndev 766 drivers/ntb/hw/amd/ntb_hw_amd.c "Doorbell Valid Mask -\t%#llx\n", ndev->db_valid_mask); ndev 768 drivers/ntb/hw/amd/ntb_hw_amd.c u.v32 = readl(ndev->self_mmio + AMD_DBMASK_OFFSET); ndev 783 drivers/ntb/hw/amd/ntb_hw_amd.c u.v64 = read64(ndev->self_mmio + AMD_BAR23XLAT_OFFSET); ndev 787 drivers/ntb/hw/amd/ntb_hw_amd.c u.v64 = read64(ndev->self_mmio + AMD_BAR45XLAT_OFFSET); ndev 795 drivers/ntb/hw/amd/ntb_hw_amd.c u.v64 = read64(ndev->self_mmio + AMD_BAR23LMT_OFFSET); ndev 799 drivers/ntb/hw/amd/ntb_hw_amd.c u.v64 = read64(ndev->self_mmio + AMD_BAR45LMT_OFFSET); ndev 808 drivers/ntb/hw/amd/ntb_hw_amd.c static void ndev_init_debugfs(struct amd_ntb_dev *ndev) ndev 811 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->debugfs_dir = NULL; ndev 812 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->debugfs_info = NULL; ndev 814 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->debugfs_dir = ndev 815 drivers/ntb/hw/amd/ntb_hw_amd.c debugfs_create_dir(pci_name(ndev->ntb.pdev), ndev 817 drivers/ntb/hw/amd/ntb_hw_amd.c if (!ndev->debugfs_dir) ndev 818 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->debugfs_info = NULL; ndev 820 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->debugfs_info = ndev 822 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->debugfs_dir, ndev, ndev 827 drivers/ntb/hw/amd/ntb_hw_amd.c static void ndev_deinit_debugfs(struct amd_ntb_dev *ndev) ndev 829 drivers/ntb/hw/amd/ntb_hw_amd.c debugfs_remove_recursive(ndev->debugfs_dir); ndev 832 drivers/ntb/hw/amd/ntb_hw_amd.c static inline void ndev_init_struct(struct amd_ntb_dev *ndev, ndev 835 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->ntb.pdev = pdev; ndev 836 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->ntb.topo = NTB_TOPO_NONE; ndev 837 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->ntb.ops = &amd_ntb_ops; ndev 838 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->int_mask = AMD_EVENT_INTMASK; ndev 839 drivers/ntb/hw/amd/ntb_hw_amd.c spin_lock_init(&ndev->db_mask_lock); ndev 842 drivers/ntb/hw/amd/ntb_hw_amd.c static int amd_poll_link(struct amd_ntb_dev *ndev) ndev 844 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->peer_mmio; ndev 851 drivers/ntb/hw/amd/ntb_hw_amd.c dev_dbg(&ndev->ntb.pdev->dev, "%s: reg_val = 0x%x.\n", __func__, reg); ndev 853 drivers/ntb/hw/amd/ntb_hw_amd.c if (reg == ndev->cntl_sta) ndev 856 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->cntl_sta = reg; ndev 858 drivers/ntb/hw/amd/ntb_hw_amd.c rc = pci_read_config_dword(ndev->ntb.pdev, ndev 862 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->lnk_sta = stat; ndev 869 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = hb_ndev(work); ndev 871 drivers/ntb/hw/amd/ntb_hw_amd.c if (amd_poll_link(ndev)) ndev 872 drivers/ntb/hw/amd/ntb_hw_amd.c ntb_link_event(&ndev->ntb); ndev 874 drivers/ntb/hw/amd/ntb_hw_amd.c if (!amd_link_is_up(ndev)) ndev 875 drivers/ntb/hw/amd/ntb_hw_amd.c schedule_delayed_work(&ndev->hb_timer, AMD_LINK_HB_TIMEOUT); ndev 878 drivers/ntb/hw/amd/ntb_hw_amd.c static int amd_init_isr(struct amd_ntb_dev *ndev) ndev 880 drivers/ntb/hw/amd/ntb_hw_amd.c return ndev_init_isr(ndev, AMD_DB_CNT, AMD_MSIX_VECTOR_CNT); ndev 883 drivers/ntb/hw/amd/ntb_hw_amd.c static void amd_init_side_info(struct amd_ntb_dev *ndev) ndev 885 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 895 drivers/ntb/hw/amd/ntb_hw_amd.c static void amd_deinit_side_info(struct amd_ntb_dev *ndev) ndev 897 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 908 drivers/ntb/hw/amd/ntb_hw_amd.c static int amd_init_ntb(struct amd_ntb_dev *ndev) ndev 910 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 912 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->mw_count = ndev->dev_data->mw_count; ndev 913 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->spad_count = AMD_SPADS_CNT; ndev 914 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->db_count = AMD_DB_CNT; ndev 916 drivers/ntb/hw/amd/ntb_hw_amd.c switch (ndev->ntb.topo) { ndev 919 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->spad_count >>= 1; ndev 920 drivers/ntb/hw/amd/ntb_hw_amd.c if (ndev->ntb.topo == NTB_TOPO_PRI) { ndev 921 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->self_spad = 0; ndev 922 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->peer_spad = 0x20; ndev 924 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->self_spad = 0x20; ndev 925 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->peer_spad = 0; ndev 928 drivers/ntb/hw/amd/ntb_hw_amd.c INIT_DELAYED_WORK(&ndev->hb_timer, amd_link_hb); ndev 929 drivers/ntb/hw/amd/ntb_hw_amd.c schedule_delayed_work(&ndev->hb_timer, AMD_LINK_HB_TIMEOUT); ndev 933 drivers/ntb/hw/amd/ntb_hw_amd.c dev_err(&ndev->ntb.pdev->dev, ndev 938 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->db_valid_mask = BIT_ULL(ndev->db_count) - 1; ndev 941 drivers/ntb/hw/amd/ntb_hw_amd.c writel(ndev->int_mask, mmio + AMD_INTMASK_OFFSET); ndev 946 drivers/ntb/hw/amd/ntb_hw_amd.c static enum ntb_topo amd_get_topo(struct amd_ntb_dev *ndev) ndev 948 drivers/ntb/hw/amd/ntb_hw_amd.c void __iomem *mmio = ndev->self_mmio; ndev 958 drivers/ntb/hw/amd/ntb_hw_amd.c static int amd_init_dev(struct amd_ntb_dev *ndev) ndev 963 drivers/ntb/hw/amd/ntb_hw_amd.c pdev = ndev->ntb.pdev; ndev 965 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->ntb.topo = amd_get_topo(ndev); ndev 967 drivers/ntb/hw/amd/ntb_hw_amd.c ntb_topo_string(ndev->ntb.topo)); ndev 969 drivers/ntb/hw/amd/ntb_hw_amd.c rc = amd_init_ntb(ndev); ndev 973 drivers/ntb/hw/amd/ntb_hw_amd.c rc = amd_init_isr(ndev); ndev 979 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->db_valid_mask = BIT_ULL(ndev->db_count) - 1; ndev 984 drivers/ntb/hw/amd/ntb_hw_amd.c static void amd_deinit_dev(struct amd_ntb_dev *ndev) ndev 986 drivers/ntb/hw/amd/ntb_hw_amd.c cancel_delayed_work_sync(&ndev->hb_timer); ndev 988 drivers/ntb/hw/amd/ntb_hw_amd.c ndev_deinit_isr(ndev); ndev 991 drivers/ntb/hw/amd/ntb_hw_amd.c static int amd_ntb_init_pci(struct amd_ntb_dev *ndev, ndev 996 drivers/ntb/hw/amd/ntb_hw_amd.c pci_set_drvdata(pdev, ndev); ndev 1023 drivers/ntb/hw/amd/ntb_hw_amd.c rc = dma_coerce_mask_and_coherent(&ndev->ntb.dev, ndev 1028 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->self_mmio = pci_iomap(pdev, 0, 0); ndev 1029 drivers/ntb/hw/amd/ntb_hw_amd.c if (!ndev->self_mmio) { ndev 1033 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->peer_mmio = ndev->self_mmio + AMD_PEER_OFFSET; ndev 1046 drivers/ntb/hw/amd/ntb_hw_amd.c static void amd_ntb_deinit_pci(struct amd_ntb_dev *ndev) ndev 1048 drivers/ntb/hw/amd/ntb_hw_amd.c struct pci_dev *pdev = ndev->ntb.pdev; ndev 1050 drivers/ntb/hw/amd/ntb_hw_amd.c pci_iounmap(pdev, ndev->self_mmio); ndev 1061 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev; ndev 1066 drivers/ntb/hw/amd/ntb_hw_amd.c ndev = kzalloc_node(sizeof(*ndev), GFP_KERNEL, node); ndev 1067 drivers/ntb/hw/amd/ntb_hw_amd.c if (!ndev) { ndev 1072 drivers/ntb/hw/amd/ntb_hw_amd.c ndev->dev_data = (struct ntb_dev_data *)id->driver_data; ndev 1074 drivers/ntb/hw/amd/ntb_hw_amd.c ndev_init_struct(ndev, pdev); ndev 1076 drivers/ntb/hw/amd/ntb_hw_amd.c rc = amd_ntb_init_pci(ndev, pdev); ndev 1080 drivers/ntb/hw/amd/ntb_hw_amd.c rc = amd_init_dev(ndev); ndev 1085 drivers/ntb/hw/amd/ntb_hw_amd.c amd_init_side_info(ndev); ndev 1087 drivers/ntb/hw/amd/ntb_hw_amd.c amd_poll_link(ndev); ndev 1089 drivers/ntb/hw/amd/ntb_hw_amd.c ndev_init_debugfs(ndev); ndev 1091 drivers/ntb/hw/amd/ntb_hw_amd.c rc = ntb_register_device(&ndev->ntb); ndev 1100 drivers/ntb/hw/amd/ntb_hw_amd.c ndev_deinit_debugfs(ndev); ndev 1101 drivers/ntb/hw/amd/ntb_hw_amd.c amd_deinit_dev(ndev); ndev 1103 drivers/ntb/hw/amd/ntb_hw_amd.c amd_ntb_deinit_pci(ndev); ndev 1105 drivers/ntb/hw/amd/ntb_hw_amd.c kfree(ndev); ndev 1112 drivers/ntb/hw/amd/ntb_hw_amd.c struct amd_ntb_dev *ndev = pci_get_drvdata(pdev); ndev 1114 drivers/ntb/hw/amd/ntb_hw_amd.c ntb_unregister_device(&ndev->ntb); ndev 1115 drivers/ntb/hw/amd/ntb_hw_amd.c ndev_deinit_debugfs(ndev); ndev 1116 drivers/ntb/hw/amd/ntb_hw_amd.c amd_deinit_side_info(ndev); ndev 1117 drivers/ntb/hw/amd/ntb_hw_amd.c amd_deinit_dev(ndev); ndev 1118 drivers/ntb/hw/amd/ntb_hw_amd.c amd_ntb_deinit_pci(ndev); ndev 1119 drivers/ntb/hw/amd/ntb_hw_amd.c kfree(ndev); ndev 179 drivers/ntb/hw/amd/ntb_hw_amd.h struct amd_ntb_dev *ndev; ndev 299 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_nt_write(struct idt_ntb_dev *ndev, ndev 310 drivers/ntb/hw/idt/ntb_hw_idt.c iowrite32(data, ndev->cfgspc + (ptrdiff_t)reg); ndev 322 drivers/ntb/hw/idt/ntb_hw_idt.c static u32 idt_nt_read(struct idt_ntb_dev *ndev, const unsigned int reg) ndev 332 drivers/ntb/hw/idt/ntb_hw_idt.c return ioread32(ndev->cfgspc + (ptrdiff_t)reg); ndev 343 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_sw_write(struct idt_ntb_dev *ndev, ndev 356 drivers/ntb/hw/idt/ntb_hw_idt.c spin_lock_irqsave(&ndev->gasa_lock, irqflags); ndev 358 drivers/ntb/hw/idt/ntb_hw_idt.c iowrite32((u32)reg, ndev->cfgspc + (ptrdiff_t)IDT_NT_GASAADDR); ndev 360 drivers/ntb/hw/idt/ntb_hw_idt.c iowrite32(data, ndev->cfgspc + (ptrdiff_t)IDT_NT_GASADATA); ndev 362 drivers/ntb/hw/idt/ntb_hw_idt.c spin_unlock_irqrestore(&ndev->gasa_lock, irqflags); ndev 374 drivers/ntb/hw/idt/ntb_hw_idt.c static u32 idt_sw_read(struct idt_ntb_dev *ndev, const unsigned int reg) ndev 387 drivers/ntb/hw/idt/ntb_hw_idt.c spin_lock_irqsave(&ndev->gasa_lock, irqflags); ndev 389 drivers/ntb/hw/idt/ntb_hw_idt.c iowrite32((u32)reg, ndev->cfgspc + (ptrdiff_t)IDT_NT_GASAADDR); ndev 391 drivers/ntb/hw/idt/ntb_hw_idt.c data = ioread32(ndev->cfgspc + (ptrdiff_t)IDT_NT_GASADATA); ndev 393 drivers/ntb/hw/idt/ntb_hw_idt.c spin_unlock_irqrestore(&ndev->gasa_lock, irqflags); ndev 414 drivers/ntb/hw/idt/ntb_hw_idt.c static inline int idt_reg_set_bits(struct idt_ntb_dev *ndev, unsigned int reg, ndev 426 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_nt_read(ndev, reg) | (u32)set_bits; ndev 427 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, reg, data); ndev 450 drivers/ntb/hw/idt/ntb_hw_idt.c static inline void idt_reg_clear_bits(struct idt_ntb_dev *ndev, ndev 459 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_nt_read(ndev, reg) & ~(u32)clear_bits; ndev 460 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, reg, data); ndev 480 drivers/ntb/hw/idt/ntb_hw_idt.c static int idt_scan_ports(struct idt_ntb_dev *ndev) ndev 486 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_nt_read(ndev, IDT_NT_PCIELCAP); ndev 487 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->port = GET_FIELD(PCIELCAP_PORTNUM, data); ndev 490 drivers/ntb/hw/idt/ntb_hw_idt.c portsts = idt_sw_read(ndev, portdata_tbl[ndev->port].sts); ndev 491 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->part = GET_FIELD(SWPORTxSTS_SWPART, portsts); ndev 494 drivers/ntb/hw/idt/ntb_hw_idt.c memset(ndev->port_idx_map, -EINVAL, sizeof(ndev->port_idx_map)); ndev 495 drivers/ntb/hw/idt/ntb_hw_idt.c memset(ndev->part_idx_map, -EINVAL, sizeof(ndev->part_idx_map)); ndev 501 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->peer_cnt = 0; ndev 502 drivers/ntb/hw/idt/ntb_hw_idt.c for (pidx = 0; pidx < ndev->swcfg->port_cnt; pidx++) { ndev 503 drivers/ntb/hw/idt/ntb_hw_idt.c port = ndev->swcfg->ports[pidx]; ndev 505 drivers/ntb/hw/idt/ntb_hw_idt.c if (port == ndev->port) ndev 509 drivers/ntb/hw/idt/ntb_hw_idt.c portsts = idt_sw_read(ndev, portdata_tbl[port].sts); ndev 513 drivers/ntb/hw/idt/ntb_hw_idt.c partsts = idt_sw_read(ndev, partdata_tbl[part].sts); ndev 521 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->peers[ndev->peer_cnt].port = port; ndev 522 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->peers[ndev->peer_cnt].part = part; ndev 524 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->port_idx_map[port] = ndev->peer_cnt; ndev 525 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->part_idx_map[part] = ndev->peer_cnt; ndev 526 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->peer_cnt++; ndev 530 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "Local port: %hhu, num of peers: %hhu\n", ndev 531 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->port, ndev->peer_cnt); ndev 534 drivers/ntb/hw/idt/ntb_hw_idt.c if (ndev->peer_cnt == 0) { ndev 535 drivers/ntb/hw/idt/ntb_hw_idt.c dev_warn(&ndev->ntb.pdev->dev, "No active peer found\n"); ndev 550 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 552 drivers/ntb/hw/idt/ntb_hw_idt.c return ndev->port; ndev 565 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 567 drivers/ntb/hw/idt/ntb_hw_idt.c return ndev->peer_cnt; ndev 579 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 581 drivers/ntb/hw/idt/ntb_hw_idt.c if (pidx < 0 || ndev->peer_cnt <= pidx) ndev 585 drivers/ntb/hw/idt/ntb_hw_idt.c return ndev->peers[pidx].port; ndev 600 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 605 drivers/ntb/hw/idt/ntb_hw_idt.c return ndev->port_idx_map[port]; ndev 621 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_ntb_local_link_disable(struct idt_ntb_dev *ndev); ndev 635 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_init_link(struct idt_ntb_dev *ndev) ndev 641 drivers/ntb/hw/idt/ntb_hw_idt.c spin_lock_init(&ndev->mtbl_lock); ndev 644 drivers/ntb/hw/idt/ntb_hw_idt.c port_mask = ~BIT(ndev->port); ndev 645 drivers/ntb/hw/idt/ntb_hw_idt.c part_mask = ~BIT(ndev->part); ndev 646 drivers/ntb/hw/idt/ntb_hw_idt.c for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { ndev 647 drivers/ntb/hw/idt/ntb_hw_idt.c port_mask &= ~BIT(ndev->peers[pidx].port); ndev 648 drivers/ntb/hw/idt/ntb_hw_idt.c part_mask &= ~BIT(ndev->peers[pidx].part); ndev 652 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_write(ndev, IDT_SW_SELINKUPSTS, (u32)-1); ndev 653 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_write(ndev, IDT_SW_SELINKDNSTS, (u32)-1); ndev 654 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_write(ndev, IDT_SW_SEGSIGSTS, (u32)-1); ndev 657 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_write(ndev, IDT_SW_SEPMSK, part_mask); ndev 660 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_write(ndev, IDT_SW_SELINKUPMSK, port_mask); ndev 663 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_write(ndev, IDT_SW_SELINKDNMSK, port_mask); ndev 666 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_write(ndev, IDT_SW_SEGSIGMSK, part_mask); ndev 670 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_write(ndev, IDT_SW_SEMSK, se_mask); ndev 672 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "NTB link status events initialized"); ndev 681 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_deinit_link(struct idt_ntb_dev *ndev) ndev 684 drivers/ntb/hw/idt/ntb_hw_idt.c idt_ntb_local_link_disable(ndev); ndev 686 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "NTB link status events deinitialized"); ndev 699 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_se_isr(struct idt_ntb_dev *ndev, u32 ntint_sts) ndev 704 drivers/ntb/hw/idt/ntb_hw_idt.c sests = idt_sw_read(ndev, IDT_SW_SESTS); ndev 707 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_write(ndev, IDT_SW_SELINKUPSTS, (u32)-1); ndev 708 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_write(ndev, IDT_SW_SELINKDNSTS, (u32)-1); ndev 709 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_write(ndev, IDT_SW_SEGSIGSTS, (u32)-1); ndev 712 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_NTINTSTS, IDT_NTINTSTS_SEVENT); ndev 714 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "SE IRQ detected %#08x (SESTS %#08x)", ndev 718 drivers/ntb/hw/idt/ntb_hw_idt.c ntb_link_event(&ndev->ntb); ndev 730 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_ntb_local_link_enable(struct idt_ntb_dev *ndev) ndev 736 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_NTCTL, IDT_NTCTL_CPEN); ndev 739 drivers/ntb/hw/idt/ntb_hw_idt.c reqid = idt_nt_read(ndev, IDT_NT_REQIDCAP); ndev 746 drivers/ntb/hw/idt/ntb_hw_idt.c SET_FIELD(NTMTBLDATA_PART, 0, ndev->part) | ndev 748 drivers/ntb/hw/idt/ntb_hw_idt.c spin_lock_irqsave(&ndev->mtbl_lock, irqflags); ndev 749 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_NTMTBLADDR, ndev->part); ndev 750 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_NTMTBLDATA, mtbldata); ndev 751 drivers/ntb/hw/idt/ntb_hw_idt.c spin_unlock_irqrestore(&ndev->mtbl_lock, irqflags); ndev 754 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_NTGSIGNAL, IDT_NTGSIGNAL_SET); ndev 755 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_write(ndev, IDT_SW_SEGSIGSTS, (u32)1 << ndev->part); ndev 767 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_ntb_local_link_disable(struct idt_ntb_dev *ndev) ndev 772 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_NTCTL, 0); ndev 775 drivers/ntb/hw/idt/ntb_hw_idt.c spin_lock_irqsave(&ndev->mtbl_lock, irqflags); ndev 776 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_NTMTBLADDR, ndev->part); ndev 777 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_NTMTBLDATA, 0); ndev 778 drivers/ntb/hw/idt/ntb_hw_idt.c spin_unlock_irqrestore(&ndev->mtbl_lock, irqflags); ndev 781 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_NTGSIGNAL, IDT_NTGSIGNAL_SET); ndev 782 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_write(ndev, IDT_SW_SEGSIGSTS, (u32)1 << ndev->part); ndev 798 drivers/ntb/hw/idt/ntb_hw_idt.c static bool idt_ntb_local_link_is_up(struct idt_ntb_dev *ndev) ndev 804 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_nt_read(ndev, IDT_NT_PCICMDSTS); ndev 809 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_nt_read(ndev, IDT_NT_NTCTL); ndev 814 drivers/ntb/hw/idt/ntb_hw_idt.c spin_lock_irqsave(&ndev->mtbl_lock, irqflags); ndev 815 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_NTMTBLADDR, ndev->part); ndev 816 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_nt_read(ndev, IDT_NT_NTMTBLDATA); ndev 817 drivers/ntb/hw/idt/ntb_hw_idt.c spin_unlock_irqrestore(&ndev->mtbl_lock, irqflags); ndev 835 drivers/ntb/hw/idt/ntb_hw_idt.c static bool idt_ntb_peer_link_is_up(struct idt_ntb_dev *ndev, int pidx) ndev 842 drivers/ntb/hw/idt/ntb_hw_idt.c port = ndev->peers[pidx].port; ndev 845 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_sw_read(ndev, portdata_tbl[port].sts); ndev 850 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_sw_read(ndev, portdata_tbl[port].pcicmdsts); ndev 855 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_sw_read(ndev, portdata_tbl[port].ntctl); ndev 860 drivers/ntb/hw/idt/ntb_hw_idt.c spin_lock_irqsave(&ndev->mtbl_lock, irqflags); ndev 861 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_NTMTBLADDR, ndev->peers[pidx].part); ndev 862 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_nt_read(ndev, IDT_NT_NTMTBLDATA); ndev 863 drivers/ntb/hw/idt/ntb_hw_idt.c spin_unlock_irqrestore(&ndev->mtbl_lock, irqflags); ndev 882 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 889 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_nt_read(ndev, IDT_NT_PCIELCTLSTS); ndev 897 drivers/ntb/hw/idt/ntb_hw_idt.c if (!idt_ntb_local_link_is_up(ndev)) ndev 902 drivers/ntb/hw/idt/ntb_hw_idt.c for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { ndev 903 drivers/ntb/hw/idt/ntb_hw_idt.c if (idt_ntb_peer_link_is_up(ndev, pidx)) ndev 923 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 926 drivers/ntb/hw/idt/ntb_hw_idt.c idt_ntb_local_link_enable(ndev); ndev 928 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "Local NTB link enabled"); ndev 943 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 946 drivers/ntb/hw/idt/ntb_hw_idt.c idt_ntb_local_link_disable(ndev); ndev 948 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "Local NTB link disabled"); ndev 1041 drivers/ntb/hw/idt/ntb_hw_idt.c static struct idt_mw_cfg *idt_scan_mws(struct idt_ntb_dev *ndev, int port, ndev 1059 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_sw_read(ndev, bars[bidx].setup); ndev 1107 drivers/ntb/hw/idt/ntb_hw_idt.c ret_mws = devm_kcalloc(&ndev->ntb.pdev->dev, *mw_cnt, sizeof(*ret_mws), ndev 1127 drivers/ntb/hw/idt/ntb_hw_idt.c static int idt_init_mws(struct idt_ntb_dev *ndev) ndev 1133 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->mws = idt_scan_mws(ndev, ndev->port, &ndev->mw_cnt); ndev 1134 drivers/ntb/hw/idt/ntb_hw_idt.c if (IS_ERR(ndev->mws)) { ndev 1135 drivers/ntb/hw/idt/ntb_hw_idt.c dev_err(&ndev->ntb.pdev->dev, ndev 1136 drivers/ntb/hw/idt/ntb_hw_idt.c "Failed to scan mws of local port %hhu", ndev->port); ndev 1137 drivers/ntb/hw/idt/ntb_hw_idt.c return PTR_ERR(ndev->mws); ndev 1141 drivers/ntb/hw/idt/ntb_hw_idt.c for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { ndev 1142 drivers/ntb/hw/idt/ntb_hw_idt.c peer = &ndev->peers[pidx]; ndev 1143 drivers/ntb/hw/idt/ntb_hw_idt.c peer->mws = idt_scan_mws(ndev, peer->port, &peer->mw_cnt); ndev 1145 drivers/ntb/hw/idt/ntb_hw_idt.c dev_err(&ndev->ntb.pdev->dev, ndev 1152 drivers/ntb/hw/idt/ntb_hw_idt.c spin_lock_init(&ndev->lut_lock); ndev 1154 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "Outbound and inbound MWs initialized"); ndev 1172 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1174 drivers/ntb/hw/idt/ntb_hw_idt.c if (pidx < 0 || ndev->peer_cnt <= pidx) ndev 1177 drivers/ntb/hw/idt/ntb_hw_idt.c return ndev->peers[pidx].mw_cnt; ndev 1199 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1202 drivers/ntb/hw/idt/ntb_hw_idt.c if (pidx < 0 || ndev->peer_cnt <= pidx) ndev 1205 drivers/ntb/hw/idt/ntb_hw_idt.c peer = &ndev->peers[pidx]; ndev 1234 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1236 drivers/ntb/hw/idt/ntb_hw_idt.c return ndev->mw_cnt; ndev 1255 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1257 drivers/ntb/hw/idt/ntb_hw_idt.c if (widx < 0 || ndev->mw_cnt <= widx) ndev 1262 drivers/ntb/hw/idt/ntb_hw_idt.c *base = pci_resource_start(ntb->pdev, ndev->mws[widx].bar) + ndev 1263 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->mws[widx].idx * ndev->mws[widx].size_max; ndev 1267 drivers/ntb/hw/idt/ntb_hw_idt.c *size = ndev->mws[widx].size_max; ndev 1290 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1294 drivers/ntb/hw/idt/ntb_hw_idt.c if (pidx < 0 || ndev->peer_cnt <= pidx) ndev 1297 drivers/ntb/hw/idt/ntb_hw_idt.c if (widx < 0 || ndev->mw_cnt <= widx) ndev 1304 drivers/ntb/hw/idt/ntb_hw_idt.c mw_cfg = &ndev->mws[widx]; ndev 1315 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_nt_read(ndev, bar->setup); ndev 1316 drivers/ntb/hw/idt/ntb_hw_idt.c data = SET_FIELD(BARSETUP_TPART, data, ndev->peers[pidx].part); ndev 1317 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, bar->setup, data); ndev 1319 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, bar->ltbase, (u32)addr); ndev 1320 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, bar->utbase, (u32)(addr >> 32)); ndev 1323 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, bar->limit, (u32)limit); ndev 1325 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, (bar + 1)->limit, (limit >> 32)); ndev 1331 drivers/ntb/hw/idt/ntb_hw_idt.c data = SET_FIELD(LUTUDATA_PART, 0, ndev->peers[pidx].part) | ndev 1333 drivers/ntb/hw/idt/ntb_hw_idt.c spin_lock_irqsave(&ndev->lut_lock, irqflags); ndev 1334 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_LUTOFFSET, lutoff); ndev 1335 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_LUTLDATA, (u32)addr); ndev 1336 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_LUTMDATA, (u32)(addr >> 32)); ndev 1337 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_LUTUDATA, data); ndev 1338 drivers/ntb/hw/idt/ntb_hw_idt.c spin_unlock_irqrestore(&ndev->lut_lock, irqflags); ndev 1359 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1362 drivers/ntb/hw/idt/ntb_hw_idt.c if (pidx < 0 || ndev->peer_cnt <= pidx) ndev 1365 drivers/ntb/hw/idt/ntb_hw_idt.c if (widx < 0 || ndev->mw_cnt <= widx) ndev 1368 drivers/ntb/hw/idt/ntb_hw_idt.c mw_cfg = &ndev->mws[widx]; ndev 1375 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_nt_read(ndev, bar->setup); ndev 1377 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, bar->limit, 0); ndev 1379 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, (bar + 1)->limit, 0); ndev 1386 drivers/ntb/hw/idt/ntb_hw_idt.c spin_lock_irqsave(&ndev->lut_lock, irqflags); ndev 1387 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_LUTOFFSET, lutoff); ndev 1388 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_LUTLDATA, 0); ndev 1389 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_LUTMDATA, 0); ndev 1390 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_LUTUDATA, 0); ndev 1391 drivers/ntb/hw/idt/ntb_hw_idt.c spin_unlock_irqrestore(&ndev->lut_lock, irqflags); ndev 1426 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_db_isr(struct idt_ntb_dev *ndev, u32 ntint_sts) ndev 1432 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "DB IRQ detected %#08x", ntint_sts); ndev 1435 drivers/ntb/hw/idt/ntb_hw_idt.c ntb_db_event(&ndev->ntb, 0); ndev 1463 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1465 drivers/ntb/hw/idt/ntb_hw_idt.c return idt_nt_read(ndev, IDT_NT_INDBELLSTS); ndev 1483 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1485 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_INDBELLSTS, (u32)db_bits); ndev 1502 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1504 drivers/ntb/hw/idt/ntb_hw_idt.c return idt_nt_read(ndev, IDT_NT_INDBELLMSK); ndev 1520 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1522 drivers/ntb/hw/idt/ntb_hw_idt.c return idt_reg_set_bits(ndev, IDT_NT_INDBELLMSK, &ndev->db_mask_lock, ndev 1541 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1543 drivers/ntb/hw/idt/ntb_hw_idt.c idt_reg_clear_bits(ndev, IDT_NT_INDBELLMSK, &ndev->db_mask_lock, ndev 1562 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1567 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_OUTDBELLSET, (u32)db_bits); ndev 1588 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_init_msg(struct idt_ntb_dev *ndev) ndev 1594 drivers/ntb/hw/idt/ntb_hw_idt.c spin_lock_init(&ndev->msg_locks[midx]); ndev 1596 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "NTB Messaging initialized"); ndev 1609 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_msg_isr(struct idt_ntb_dev *ndev, u32 ntint_sts) ndev 1615 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "Message IRQ detected %#08x", ntint_sts); ndev 1618 drivers/ntb/hw/idt/ntb_hw_idt.c ntb_msg_event(&ndev->ntb); ndev 1675 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1677 drivers/ntb/hw/idt/ntb_hw_idt.c return idt_nt_read(ndev, IDT_NT_MSGSTS); ndev 1695 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1697 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_MSGSTS, sts_bits); ndev 1714 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1716 drivers/ntb/hw/idt/ntb_hw_idt.c return idt_reg_set_bits(ndev, IDT_NT_MSGSTSMSK, &ndev->msg_mask_lock, ndev 1732 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1734 drivers/ntb/hw/idt/ntb_hw_idt.c idt_reg_clear_bits(ndev, IDT_NT_MSGSTSMSK, &ndev->msg_mask_lock, ndev 1753 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1762 drivers/ntb/hw/idt/ntb_hw_idt.c srcpart = idt_nt_read(ndev, ntdata_tbl.msgs[midx].src); ndev 1763 drivers/ntb/hw/idt/ntb_hw_idt.c *pidx = ndev->part_idx_map[srcpart]; ndev 1771 drivers/ntb/hw/idt/ntb_hw_idt.c return idt_nt_read(ndev, ntdata_tbl.msgs[midx].in); ndev 1790 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = to_ndev_ntb(ntb); ndev 1797 drivers/ntb/hw/idt/ntb_hw_idt.c if (pidx < 0 || ndev->peer_cnt <= pidx) ndev 1802 drivers/ntb/hw/idt/ntb_hw_idt.c SET_FIELD(SWPxMSGCTL_PART, 0, ndev->peers[pidx].part); ndev 1805 drivers/ntb/hw/idt/ntb_hw_idt.c spin_lock_irqsave(&ndev->msg_locks[midx], irqflags); ndev 1807 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_write(ndev, partdata_tbl[ndev->part].msgctl[midx], swpmsgctl); ndev 1808 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, ntdata_tbl.msgs[midx].out, msg); ndev 1810 drivers/ntb/hw/idt/ntb_hw_idt.c spin_unlock_irqrestore(&ndev->msg_locks[midx], irqflags); ndev 1889 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_read_temp(struct idt_ntb_dev *ndev, ndev 1898 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_read(ndev, IDT_SW_TMPSTS)); ndev 1902 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_read(ndev, IDT_SW_TMPSTS)); ndev 1906 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_read(ndev, IDT_SW_TMPSTS)); ndev 1911 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_read(ndev, IDT_SW_TMPADJ)); ndev 1916 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_read(ndev, IDT_SW_TMPSTS)); ndev 1930 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_write_temp(struct idt_ntb_dev *ndev, ndev 1940 drivers/ntb/hw/idt/ntb_hw_idt.c mutex_lock(&ndev->hwmon_mtx); ndev 1944 drivers/ntb/hw/idt/ntb_hw_idt.c data = SET_FIELD(TMPALARM_LTEMP, idt_sw_read(ndev, reg), fmt) & ndev 1949 drivers/ntb/hw/idt/ntb_hw_idt.c data = SET_FIELD(TMPALARM_HTEMP, idt_sw_read(ndev, reg), fmt) & ndev 1954 drivers/ntb/hw/idt/ntb_hw_idt.c data = SET_FIELD(TMPADJ_OFFSET, idt_sw_read(ndev, reg), fmt); ndev 1960 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_write(ndev, reg, data); ndev 1963 drivers/ntb/hw/idt/ntb_hw_idt.c mutex_unlock(&ndev->hwmon_mtx); ndev 1978 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = dev_get_drvdata(dev); ndev 1982 drivers/ntb/hw/idt/ntb_hw_idt.c idt_read_temp(ndev, type, &mdeg); ndev 2000 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = dev_get_drvdata(dev); ndev 2016 drivers/ntb/hw/idt/ntb_hw_idt.c idt_write_temp(ndev, type, mdeg); ndev 2034 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = dev_get_drvdata(dev); ndev 2039 drivers/ntb/hw/idt/ntb_hw_idt.c idt_write_temp(ndev, IDT_TEMP_LOW, IDT_TEMP_MAX_MDEG); ndev 2040 drivers/ntb/hw/idt/ntb_hw_idt.c idt_write_temp(ndev, IDT_TEMP_HIGH, IDT_TEMP_MIN_MDEG); ndev 2080 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_init_temp(struct idt_ntb_dev *ndev) ndev 2085 drivers/ntb/hw/idt/ntb_hw_idt.c idt_sw_write(ndev, IDT_SW_TMPCTL, 0x0); ndev 2088 drivers/ntb/hw/idt/ntb_hw_idt.c mutex_init(&ndev->hwmon_mtx); ndev 2090 drivers/ntb/hw/idt/ntb_hw_idt.c hwmon = devm_hwmon_device_register_with_groups(&ndev->ntb.pdev->dev, ndev 2091 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->swcfg->name, ndev, idt_temp_groups); ndev 2093 drivers/ntb/hw/idt/ntb_hw_idt.c dev_err(&ndev->ntb.pdev->dev, "Couldn't create hwmon device"); ndev 2097 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "Temperature HWmon interface registered"); ndev 2125 drivers/ntb/hw/idt/ntb_hw_idt.c static int idt_init_isr(struct idt_ntb_dev *ndev) ndev 2127 drivers/ntb/hw/idt/ntb_hw_idt.c struct pci_dev *pdev = ndev->ntb.pdev; ndev 2147 drivers/ntb/hw/idt/ntb_hw_idt.c IRQF_ONESHOT, NTB_IRQNAME, ndev); ndev 2154 drivers/ntb/hw/idt/ntb_hw_idt.c ntint_mask = idt_nt_read(ndev, IDT_NT_NTINTMSK) & ~IDT_NTINTMSK_ALL; ndev 2155 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_NTINTMSK, ntint_mask); ndev 2174 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_deinit_isr(struct idt_ntb_dev *ndev) ndev 2176 drivers/ntb/hw/idt/ntb_hw_idt.c struct pci_dev *pdev = ndev->ntb.pdev; ndev 2180 drivers/ntb/hw/idt/ntb_hw_idt.c ntint_mask = idt_nt_read(ndev, IDT_NT_NTINTMSK) | IDT_NTINTMSK_ALL; ndev 2181 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_NTINTMSK, ntint_mask); ndev 2184 drivers/ntb/hw/idt/ntb_hw_idt.c devm_free_irq(&pdev->dev, pci_irq_vector(pdev, 0), ndev); ndev 2203 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = devid; ndev 2208 drivers/ntb/hw/idt/ntb_hw_idt.c ntint_sts = idt_nt_read(ndev, IDT_NT_NTINTSTS); ndev 2212 drivers/ntb/hw/idt/ntb_hw_idt.c idt_msg_isr(ndev, ntint_sts); ndev 2218 drivers/ntb/hw/idt/ntb_hw_idt.c idt_db_isr(ndev, ntint_sts); ndev 2224 drivers/ntb/hw/idt/ntb_hw_idt.c idt_se_isr(ndev, ntint_sts); ndev 2228 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "IDT IRQs 0x%08x handled", ntint_sts); ndev 2279 drivers/ntb/hw/idt/ntb_hw_idt.c static int idt_register_device(struct idt_ntb_dev *ndev) ndev 2284 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->ntb.ops = &idt_ntb_ops; ndev 2285 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->ntb.topo = NTB_TOPO_SWITCH; ndev 2287 drivers/ntb/hw/idt/ntb_hw_idt.c ret = ntb_register_device(&ndev->ntb); ndev 2289 drivers/ntb/hw/idt/ntb_hw_idt.c dev_err(&ndev->ntb.pdev->dev, "Failed to register NTB device"); ndev 2293 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "NTB device successfully registered"); ndev 2302 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_unregister_device(struct idt_ntb_dev *ndev) ndev 2305 drivers/ntb/hw/idt/ntb_hw_idt.c ntb_unregister_device(&ndev->ntb); ndev 2307 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "NTB device unregistered"); ndev 2337 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = filp->private_data; ndev 2361 drivers/ntb/hw/idt/ntb_hw_idt.c "Local Port %hhu, Partition %hhu\n", ndev->port, ndev->part); ndev 2365 drivers/ntb/hw/idt/ntb_hw_idt.c for (idx = 0; idx < ndev->peer_cnt; idx++) { ndev 2368 drivers/ntb/hw/idt/ntb_hw_idt.c idx, ndev->peers[idx].port, ndev->peers[idx].part); ndev 2372 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_ntb_link_is_up(&ndev->ntb, &speed, &width); ndev 2381 drivers/ntb/hw/idt/ntb_hw_idt.c spin_lock_irqsave(&ndev->mtbl_lock, irqflags); ndev 2382 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, IDT_NT_NTMTBLADDR, idx); ndev 2383 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_nt_read(ndev, IDT_NT_NTMTBLDATA); ndev 2384 drivers/ntb/hw/idt/ntb_hw_idt.c spin_unlock_irqrestore(&ndev->mtbl_lock, irqflags); ndev 2399 drivers/ntb/hw/idt/ntb_hw_idt.c for (idx = 0; idx < ndev->mw_cnt; idx += cnt) { ndev 2400 drivers/ntb/hw/idt/ntb_hw_idt.c data = ndev->mws[idx].type; ndev 2412 drivers/ntb/hw/idt/ntb_hw_idt.c idt_get_mw_name(data), ndev->mws[idx].bar); ndev 2415 drivers/ntb/hw/idt/ntb_hw_idt.c "Address align 0x%08llx, ", ndev->mws[idx].addr_align); ndev 2419 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->mws[idx].size_align, ndev->mws[idx].size_max); ndev 2423 drivers/ntb/hw/idt/ntb_hw_idt.c for (pidx = 0; pidx < ndev->peer_cnt; pidx++) { ndev 2426 drivers/ntb/hw/idt/ntb_hw_idt.c pidx, ndev->peers[pidx].port); ndev 2429 drivers/ntb/hw/idt/ntb_hw_idt.c for (idx = 0; idx < ndev->peers[pidx].mw_cnt; idx += cnt) { ndev 2430 drivers/ntb/hw/idt/ntb_hw_idt.c data = ndev->peers[pidx].mws[idx].type; ndev 2442 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->peers[pidx].mws[idx].bar); ndev 2446 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->peers[pidx].mws[idx].addr_align); ndev 2450 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->peers[pidx].mws[idx].size_align, ndev 2451 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->peers[pidx].mws[idx].size_max); ndev 2457 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_sw_read(ndev, IDT_SW_GDBELLSTS); ndev 2460 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_ntb_db_read(&ndev->ntb); ndev 2463 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_nt_read(ndev, IDT_NT_INDBELLMSK); ndev 2471 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_ntb_msg_read_sts(&ndev->ntb); ndev 2474 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_nt_read(ndev, IDT_NT_MSGSTSMSK); ndev 2481 drivers/ntb/hw/idt/ntb_hw_idt.c data = idt_ntb_msg_read(&ndev->ntb, &src, idx); ndev 2484 drivers/ntb/hw/idt/ntb_hw_idt.c idx, data, src, ndev->peers[src].port); ndev 2489 drivers/ntb/hw/idt/ntb_hw_idt.c idt_read_temp(ndev, IDT_TEMP_CUR, &mdeg); ndev 2507 drivers/ntb/hw/idt/ntb_hw_idt.c static int idt_init_dbgfs(struct idt_ntb_dev *ndev) ndev 2513 drivers/ntb/hw/idt/ntb_hw_idt.c dev_info(&ndev->ntb.pdev->dev, "Top DebugFS directory absent"); ndev 2518 drivers/ntb/hw/idt/ntb_hw_idt.c snprintf(devname, 64, "info:%s", pci_name(ndev->ntb.pdev)); ndev 2519 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->dbgfs_info = debugfs_create_file(devname, 0400, dbgfs_topdir, ndev 2520 drivers/ntb/hw/idt/ntb_hw_idt.c ndev, &idt_dbgfs_info_ops); ndev 2521 drivers/ntb/hw/idt/ntb_hw_idt.c if (IS_ERR(ndev->dbgfs_info)) { ndev 2522 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "Failed to create DebugFS node"); ndev 2523 drivers/ntb/hw/idt/ntb_hw_idt.c return PTR_ERR(ndev->dbgfs_info); ndev 2526 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "NTB device DebugFS node created"); ndev 2537 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_deinit_dbgfs(struct idt_ntb_dev *ndev) ndev 2539 drivers/ntb/hw/idt/ntb_hw_idt.c debugfs_remove(ndev->dbgfs_info); ndev 2541 drivers/ntb/hw/idt/ntb_hw_idt.c dev_dbg(&ndev->ntb.pdev->dev, "NTB device DebugFS node discarded"); ndev 2602 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev; ndev 2605 drivers/ntb/hw/idt/ntb_hw_idt.c ndev = devm_kzalloc(&pdev->dev, sizeof(*ndev), GFP_KERNEL); ndev 2606 drivers/ntb/hw/idt/ntb_hw_idt.c if (!ndev) { ndev 2612 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->swcfg = (struct idt_89hpes_cfg *)id->driver_data; ndev 2614 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->ntb.pdev = pdev; ndev 2617 drivers/ntb/hw/idt/ntb_hw_idt.c spin_lock_init(&ndev->db_mask_lock); ndev 2618 drivers/ntb/hw/idt/ntb_hw_idt.c spin_lock_init(&ndev->msg_mask_lock); ndev 2619 drivers/ntb/hw/idt/ntb_hw_idt.c spin_lock_init(&ndev->gasa_lock); ndev 2621 drivers/ntb/hw/idt/ntb_hw_idt.c dev_info(&pdev->dev, "IDT %s discovered", ndev->swcfg->name); ndev 2625 drivers/ntb/hw/idt/ntb_hw_idt.c return ndev; ndev 2637 drivers/ntb/hw/idt/ntb_hw_idt.c static int idt_init_pci(struct idt_ntb_dev *ndev) ndev 2639 drivers/ntb/hw/idt/ntb_hw_idt.c struct pci_dev *pdev = ndev->ntb.pdev; ndev 2663 drivers/ntb/hw/idt/ntb_hw_idt.c ret = dma_coerce_mask_and_coherent(&ndev->ntb.dev, ndev 2701 drivers/ntb/hw/idt/ntb_hw_idt.c ndev->cfgspc = pcim_iomap_table(pdev)[0]; ndev 2704 drivers/ntb/hw/idt/ntb_hw_idt.c pci_set_drvdata(pdev, ndev); ndev 2724 drivers/ntb/hw/idt/ntb_hw_idt.c static void idt_deinit_pci(struct idt_ntb_dev *ndev) ndev 2726 drivers/ntb/hw/idt/ntb_hw_idt.c struct pci_dev *pdev = ndev->ntb.pdev; ndev 2755 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev; ndev 2764 drivers/ntb/hw/idt/ntb_hw_idt.c ndev = idt_create_dev(pdev, id); ndev 2765 drivers/ntb/hw/idt/ntb_hw_idt.c if (IS_ERR_OR_NULL(ndev)) ndev 2766 drivers/ntb/hw/idt/ntb_hw_idt.c return PTR_ERR(ndev); ndev 2769 drivers/ntb/hw/idt/ntb_hw_idt.c ret = idt_init_pci(ndev); ndev 2774 drivers/ntb/hw/idt/ntb_hw_idt.c (void)idt_scan_ports(ndev); ndev 2777 drivers/ntb/hw/idt/ntb_hw_idt.c idt_init_link(ndev); ndev 2780 drivers/ntb/hw/idt/ntb_hw_idt.c ret = idt_init_mws(ndev); ndev 2785 drivers/ntb/hw/idt/ntb_hw_idt.c idt_init_msg(ndev); ndev 2788 drivers/ntb/hw/idt/ntb_hw_idt.c idt_init_temp(ndev); ndev 2791 drivers/ntb/hw/idt/ntb_hw_idt.c ret = idt_init_isr(ndev); ndev 2796 drivers/ntb/hw/idt/ntb_hw_idt.c ret = idt_register_device(ndev); ndev 2801 drivers/ntb/hw/idt/ntb_hw_idt.c (void)idt_init_dbgfs(ndev); ndev 2810 drivers/ntb/hw/idt/ntb_hw_idt.c idt_deinit_isr(ndev); ndev 2812 drivers/ntb/hw/idt/ntb_hw_idt.c idt_deinit_link(ndev); ndev 2813 drivers/ntb/hw/idt/ntb_hw_idt.c idt_deinit_pci(ndev); ndev 2824 drivers/ntb/hw/idt/ntb_hw_idt.c struct idt_ntb_dev *ndev = pci_get_drvdata(pdev); ndev 2827 drivers/ntb/hw/idt/ntb_hw_idt.c idt_deinit_dbgfs(ndev); ndev 2830 drivers/ntb/hw/idt/ntb_hw_idt.c idt_unregister_device(ndev); ndev 2833 drivers/ntb/hw/idt/ntb_hw_idt.c idt_deinit_isr(ndev); ndev 2836 drivers/ntb/hw/idt/ntb_hw_idt.c idt_deinit_link(ndev); ndev 2839 drivers/ntb/hw/idt/ntb_hw_idt.c idt_deinit_pci(ndev); ndev 142 drivers/ntb/hw/intel/ntb_hw_gen1.c static int xeon_init_isr(struct intel_ntb_dev *ndev); ndev 144 drivers/ntb/hw/intel/ntb_hw_gen1.c static inline void ndev_reset_unsafe_flags(struct intel_ntb_dev *ndev) ndev 146 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->unsafe_flags = 0; ndev 147 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->unsafe_flags_ignore = 0; ndev 150 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->hwerr_flags & NTB_HWERR_SDOORBELL_LOCKUP) ndev 151 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ntb_topo_is_b2b(ndev->ntb.topo)) ndev 152 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->unsafe_flags |= NTB_UNSAFE_DB; ndev 155 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->hwerr_flags & NTB_HWERR_SB01BASE_LOCKUP) { ndev 156 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->unsafe_flags |= NTB_UNSAFE_DB; ndev 157 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->unsafe_flags |= NTB_UNSAFE_SPAD; ndev 161 drivers/ntb/hw/intel/ntb_hw_gen1.c static inline int ndev_is_unsafe(struct intel_ntb_dev *ndev, ndev 164 drivers/ntb/hw/intel/ntb_hw_gen1.c return !!(flag & ndev->unsafe_flags & ~ndev->unsafe_flags_ignore); ndev 167 drivers/ntb/hw/intel/ntb_hw_gen1.c static inline int ndev_ignore_unsafe(struct intel_ntb_dev *ndev, ndev 170 drivers/ntb/hw/intel/ntb_hw_gen1.c flag &= ndev->unsafe_flags; ndev 171 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->unsafe_flags_ignore |= flag; ndev 176 drivers/ntb/hw/intel/ntb_hw_gen1.c int ndev_mw_to_bar(struct intel_ntb_dev *ndev, int idx) ndev 178 drivers/ntb/hw/intel/ntb_hw_gen1.c if (idx < 0 || idx >= ndev->mw_count) ndev 180 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev->reg->mw_bar[idx]; ndev 183 drivers/ntb/hw/intel/ntb_hw_gen1.c void ndev_db_addr(struct intel_ntb_dev *ndev, ndev 187 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev_is_unsafe(ndev, NTB_UNSAFE_DB)) ndev 192 drivers/ntb/hw/intel/ntb_hw_gen1.c dev_dbg(&ndev->ntb.pdev->dev, "Peer db addr %llx\n", *db_addr); ndev 196 drivers/ntb/hw/intel/ntb_hw_gen1.c *db_size = ndev->reg->db_size; ndev 197 drivers/ntb/hw/intel/ntb_hw_gen1.c dev_dbg(&ndev->ntb.pdev->dev, "Peer db size %llx\n", *db_size); ndev 201 drivers/ntb/hw/intel/ntb_hw_gen1.c u64 ndev_db_read(struct intel_ntb_dev *ndev, ndev 204 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev_is_unsafe(ndev, NTB_UNSAFE_DB)) ndev 207 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev->reg->db_ioread(mmio); ndev 210 drivers/ntb/hw/intel/ntb_hw_gen1.c int ndev_db_write(struct intel_ntb_dev *ndev, u64 db_bits, ndev 213 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev_is_unsafe(ndev, NTB_UNSAFE_DB)) ndev 216 drivers/ntb/hw/intel/ntb_hw_gen1.c if (db_bits & ~ndev->db_valid_mask) ndev 219 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->reg->db_iowrite(db_bits, mmio); ndev 224 drivers/ntb/hw/intel/ntb_hw_gen1.c static inline int ndev_db_set_mask(struct intel_ntb_dev *ndev, u64 db_bits, ndev 229 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev_is_unsafe(ndev, NTB_UNSAFE_DB)) ndev 232 drivers/ntb/hw/intel/ntb_hw_gen1.c if (db_bits & ~ndev->db_valid_mask) ndev 235 drivers/ntb/hw/intel/ntb_hw_gen1.c spin_lock_irqsave(&ndev->db_mask_lock, irqflags); ndev 237 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_mask |= db_bits; ndev 238 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->reg->db_iowrite(ndev->db_mask, mmio); ndev 240 drivers/ntb/hw/intel/ntb_hw_gen1.c spin_unlock_irqrestore(&ndev->db_mask_lock, irqflags); ndev 245 drivers/ntb/hw/intel/ntb_hw_gen1.c static inline int ndev_db_clear_mask(struct intel_ntb_dev *ndev, u64 db_bits, ndev 250 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev_is_unsafe(ndev, NTB_UNSAFE_DB)) ndev 253 drivers/ntb/hw/intel/ntb_hw_gen1.c if (db_bits & ~ndev->db_valid_mask) ndev 256 drivers/ntb/hw/intel/ntb_hw_gen1.c spin_lock_irqsave(&ndev->db_mask_lock, irqflags); ndev 258 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_mask &= ~db_bits; ndev 259 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->reg->db_iowrite(ndev->db_mask, mmio); ndev 261 drivers/ntb/hw/intel/ntb_hw_gen1.c spin_unlock_irqrestore(&ndev->db_mask_lock, irqflags); ndev 266 drivers/ntb/hw/intel/ntb_hw_gen1.c static inline u64 ndev_vec_mask(struct intel_ntb_dev *ndev, int db_vector) ndev 270 drivers/ntb/hw/intel/ntb_hw_gen1.c shift = ndev->db_vec_shift; ndev 276 drivers/ntb/hw/intel/ntb_hw_gen1.c static inline int ndev_spad_addr(struct intel_ntb_dev *ndev, int idx, ndev 280 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev_is_unsafe(ndev, NTB_UNSAFE_SPAD)) ndev 283 drivers/ntb/hw/intel/ntb_hw_gen1.c if (idx < 0 || idx >= ndev->spad_count) ndev 288 drivers/ntb/hw/intel/ntb_hw_gen1.c dev_dbg(&ndev->ntb.pdev->dev, "Peer spad addr %llx\n", ndev 295 drivers/ntb/hw/intel/ntb_hw_gen1.c static inline u32 ndev_spad_read(struct intel_ntb_dev *ndev, int idx, ndev 298 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev_is_unsafe(ndev, NTB_UNSAFE_SPAD)) ndev 301 drivers/ntb/hw/intel/ntb_hw_gen1.c if (idx < 0 || idx >= ndev->spad_count) ndev 307 drivers/ntb/hw/intel/ntb_hw_gen1.c static inline int ndev_spad_write(struct intel_ntb_dev *ndev, int idx, u32 val, ndev 310 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev_is_unsafe(ndev, NTB_UNSAFE_SPAD)) ndev 313 drivers/ntb/hw/intel/ntb_hw_gen1.c if (idx < 0 || idx >= ndev->spad_count) ndev 321 drivers/ntb/hw/intel/ntb_hw_gen1.c static irqreturn_t ndev_interrupt(struct intel_ntb_dev *ndev, int vec) ndev 325 drivers/ntb/hw/intel/ntb_hw_gen1.c vec_mask = ndev_vec_mask(ndev, vec); ndev 327 drivers/ntb/hw/intel/ntb_hw_gen1.c if ((ndev->hwerr_flags & NTB_HWERR_MSIX_VECTOR32_BAD) && (vec == 31)) ndev 328 drivers/ntb/hw/intel/ntb_hw_gen1.c vec_mask |= ndev->db_link_mask; ndev 330 drivers/ntb/hw/intel/ntb_hw_gen1.c dev_dbg(&ndev->ntb.pdev->dev, "vec %d vec_mask %llx\n", vec, vec_mask); ndev 332 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->last_ts = jiffies; ndev 334 drivers/ntb/hw/intel/ntb_hw_gen1.c if (vec_mask & ndev->db_link_mask) { ndev 335 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->reg->poll_link(ndev)) ndev 336 drivers/ntb/hw/intel/ntb_hw_gen1.c ntb_link_event(&ndev->ntb); ndev 339 drivers/ntb/hw/intel/ntb_hw_gen1.c if (vec_mask & ndev->db_valid_mask) ndev 340 drivers/ntb/hw/intel/ntb_hw_gen1.c ntb_db_event(&ndev->ntb, vec); ndev 349 drivers/ntb/hw/intel/ntb_hw_gen1.c dev_dbg(&nvec->ndev->ntb.pdev->dev, "irq: %d nvec->num: %d\n", ndev 352 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_interrupt(nvec->ndev, nvec->num); ndev 357 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = dev; ndev 359 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_interrupt(ndev, irq - ndev->ntb.pdev->irq); ndev 362 drivers/ntb/hw/intel/ntb_hw_gen1.c int ndev_init_isr(struct intel_ntb_dev *ndev, ndev 369 drivers/ntb/hw/intel/ntb_hw_gen1.c pdev = ndev->ntb.pdev; ndev 374 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_mask = ndev->db_valid_mask; ndev 375 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->reg->db_iowrite(ndev->db_mask, ndev 376 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_mmio + ndev 377 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_reg->db_mask); ndev 381 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->vec = kcalloc_node(msix_max, sizeof(*ndev->vec), ndev 383 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ndev->vec) ndev 386 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->msix = kcalloc_node(msix_max, sizeof(*ndev->msix), ndev 388 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ndev->msix) ndev 392 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->msix[i].entry = i; ndev 394 drivers/ntb/hw/intel/ntb_hw_gen1.c msix_count = pci_enable_msix_range(pdev, ndev->msix, ndev 400 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->vec[i].ndev = ndev; ndev 401 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->vec[i].num = i; ndev 402 drivers/ntb/hw/intel/ntb_hw_gen1.c rc = request_irq(ndev->msix[i].vector, ndev_vec_isr, 0, ndev 403 drivers/ntb/hw/intel/ntb_hw_gen1.c "ndev_vec_isr", &ndev->vec[i]); ndev 409 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_vec_count = msix_count; ndev 410 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_vec_shift = msix_shift; ndev 415 drivers/ntb/hw/intel/ntb_hw_gen1.c free_irq(ndev->msix[i].vector, &ndev->vec[i]); ndev 418 drivers/ntb/hw/intel/ntb_hw_gen1.c kfree(ndev->msix); ndev 420 drivers/ntb/hw/intel/ntb_hw_gen1.c kfree(ndev->vec); ndev 422 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->msix = NULL; ndev 423 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->vec = NULL; ndev 432 drivers/ntb/hw/intel/ntb_hw_gen1.c "ndev_irq_isr", ndev); ndev 437 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_vec_count = 1; ndev 438 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_vec_shift = total_shift; ndev 450 drivers/ntb/hw/intel/ntb_hw_gen1.c "ndev_irq_isr", ndev); ndev 455 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_vec_count = 1; ndev 456 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_vec_shift = total_shift; ndev 463 drivers/ntb/hw/intel/ntb_hw_gen1.c static void ndev_deinit_isr(struct intel_ntb_dev *ndev) ndev 468 drivers/ntb/hw/intel/ntb_hw_gen1.c pdev = ndev->ntb.pdev; ndev 471 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_mask = ndev->db_valid_mask; ndev 472 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->reg->db_iowrite(ndev->db_mask, ndev 473 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_mmio + ndev 474 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_reg->db_mask); ndev 476 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->msix) { ndev 477 drivers/ntb/hw/intel/ntb_hw_gen1.c i = ndev->db_vec_count; ndev 479 drivers/ntb/hw/intel/ntb_hw_gen1.c free_irq(ndev->msix[i].vector, &ndev->vec[i]); ndev 481 drivers/ntb/hw/intel/ntb_hw_gen1.c kfree(ndev->msix); ndev 482 drivers/ntb/hw/intel/ntb_hw_gen1.c kfree(ndev->vec); ndev 484 drivers/ntb/hw/intel/ntb_hw_gen1.c free_irq(pdev->irq, ndev); ndev 493 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev; ndev 501 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev = filp->private_data; ndev 502 drivers/ntb/hw/intel/ntb_hw_gen1.c pdev = ndev->ntb.pdev; ndev 503 drivers/ntb/hw/intel/ntb_hw_gen1.c mmio = ndev->self_mmio; ndev 518 drivers/ntb/hw/intel/ntb_hw_gen1.c ntb_topo_string(ndev->ntb.topo)); ndev 520 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->b2b_idx != UINT_MAX) { ndev 522 drivers/ntb/hw/intel/ntb_hw_gen1.c "B2B MW Idx -\t\t%u\n", ndev->b2b_idx); ndev 524 drivers/ntb/hw/intel/ntb_hw_gen1.c "B2B Offset -\t\t%#lx\n", ndev->b2b_off); ndev 529 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->bar4_split ? "yes" : "no"); ndev 532 drivers/ntb/hw/intel/ntb_hw_gen1.c "NTB CTL -\t\t%#06x\n", ndev->ntb_ctl); ndev 534 drivers/ntb/hw/intel/ntb_hw_gen1.c "LNK STA -\t\t%#06x\n", ndev->lnk_sta); ndev 536 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ndev->reg->link_is_up(ndev)) { ndev 544 drivers/ntb/hw/intel/ntb_hw_gen1.c NTB_LNK_STA_SPEED(ndev->lnk_sta)); ndev 547 drivers/ntb/hw/intel/ntb_hw_gen1.c NTB_LNK_STA_WIDTH(ndev->lnk_sta)); ndev 551 drivers/ntb/hw/intel/ntb_hw_gen1.c "Memory Window Count -\t%u\n", ndev->mw_count); ndev 553 drivers/ntb/hw/intel/ntb_hw_gen1.c "Scratchpad Count -\t%u\n", ndev->spad_count); ndev 555 drivers/ntb/hw/intel/ntb_hw_gen1.c "Doorbell Count -\t%u\n", ndev->db_count); ndev 557 drivers/ntb/hw/intel/ntb_hw_gen1.c "Doorbell Vector Count -\t%u\n", ndev->db_vec_count); ndev 559 drivers/ntb/hw/intel/ntb_hw_gen1.c "Doorbell Vector Shift -\t%u\n", ndev->db_vec_shift); ndev 562 drivers/ntb/hw/intel/ntb_hw_gen1.c "Doorbell Valid Mask -\t%#llx\n", ndev->db_valid_mask); ndev 564 drivers/ntb/hw/intel/ntb_hw_gen1.c "Doorbell Link Mask -\t%#llx\n", ndev->db_link_mask); ndev 566 drivers/ntb/hw/intel/ntb_hw_gen1.c "Doorbell Mask Cached -\t%#llx\n", ndev->db_mask); ndev 568 drivers/ntb/hw/intel/ntb_hw_gen1.c u.v64 = ndev_db_read(ndev, mmio + ndev->self_reg->db_mask); ndev 572 drivers/ntb/hw/intel/ntb_hw_gen1.c u.v64 = ndev_db_read(ndev, mmio + ndev->self_reg->db_bell); ndev 582 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ndev->bar4_split) { ndev 598 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ndev->bar4_split) { ndev 614 drivers/ntb/hw/intel/ntb_hw_gen1.c u.v64 = ioread64(mmio + bar2_off(ndev->xlat_reg->bar2_xlat, 2)); ndev 618 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->bar4_split) { ndev 619 drivers/ntb/hw/intel/ntb_hw_gen1.c u.v32 = ioread32(mmio + bar2_off(ndev->xlat_reg->bar2_xlat, 4)); ndev 623 drivers/ntb/hw/intel/ntb_hw_gen1.c u.v32 = ioread32(mmio + bar2_off(ndev->xlat_reg->bar2_xlat, 5)); ndev 627 drivers/ntb/hw/intel/ntb_hw_gen1.c u.v64 = ioread64(mmio + bar2_off(ndev->xlat_reg->bar2_xlat, 4)); ndev 632 drivers/ntb/hw/intel/ntb_hw_gen1.c u.v64 = ioread64(mmio + bar2_off(ndev->xlat_reg->bar2_limit, 2)); ndev 636 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->bar4_split) { ndev 637 drivers/ntb/hw/intel/ntb_hw_gen1.c u.v32 = ioread32(mmio + bar2_off(ndev->xlat_reg->bar2_limit, 4)); ndev 640 drivers/ntb/hw/intel/ntb_hw_gen1.c u.v32 = ioread32(mmio + bar2_off(ndev->xlat_reg->bar2_limit, 5)); ndev 644 drivers/ntb/hw/intel/ntb_hw_gen1.c u.v64 = ioread64(mmio + bar2_off(ndev->xlat_reg->bar2_limit, 4)); ndev 650 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ntb_topo_is_b2b(ndev->ntb.topo)) { ndev 658 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->bar4_split) { ndev 678 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->bar4_split) { ndev 705 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->bar4_split) { ndev 759 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = filp->private_data; ndev 761 drivers/ntb/hw/intel/ntb_hw_gen1.c if (pdev_is_gen1(ndev->ntb.pdev)) ndev 763 drivers/ntb/hw/intel/ntb_hw_gen1.c else if (pdev_is_gen3(ndev->ntb.pdev)) ndev 769 drivers/ntb/hw/intel/ntb_hw_gen1.c static void ndev_init_debugfs(struct intel_ntb_dev *ndev) ndev 772 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->debugfs_dir = NULL; ndev 773 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->debugfs_info = NULL; ndev 775 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->debugfs_dir = ndev 776 drivers/ntb/hw/intel/ntb_hw_gen1.c debugfs_create_dir(pci_name(ndev->ntb.pdev), ndev 778 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ndev->debugfs_dir) ndev 779 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->debugfs_info = NULL; ndev 781 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->debugfs_info = ndev 783 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->debugfs_dir, ndev, ndev 788 drivers/ntb/hw/intel/ntb_hw_gen1.c static void ndev_deinit_debugfs(struct intel_ntb_dev *ndev) ndev 790 drivers/ntb/hw/intel/ntb_hw_gen1.c debugfs_remove_recursive(ndev->debugfs_dir); ndev 806 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 813 drivers/ntb/hw/intel/ntb_hw_gen1.c if (idx >= ndev->b2b_idx && !ndev->b2b_off) ndev 816 drivers/ntb/hw/intel/ntb_hw_gen1.c bar = ndev_mw_to_bar(ndev, idx); ndev 820 drivers/ntb/hw/intel/ntb_hw_gen1.c bar_size = pci_resource_len(ndev->ntb.pdev, bar); ndev 822 drivers/ntb/hw/intel/ntb_hw_gen1.c if (idx == ndev->b2b_idx) ndev 823 drivers/ntb/hw/intel/ntb_hw_gen1.c mw_size = bar_size - ndev->b2b_off; ndev 828 drivers/ntb/hw/intel/ntb_hw_gen1.c *addr_align = pci_resource_len(ndev->ntb.pdev, bar); ndev 842 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 852 drivers/ntb/hw/intel/ntb_hw_gen1.c if (idx >= ndev->b2b_idx && !ndev->b2b_off) ndev 855 drivers/ntb/hw/intel/ntb_hw_gen1.c bar = ndev_mw_to_bar(ndev, idx); ndev 859 drivers/ntb/hw/intel/ntb_hw_gen1.c bar_size = pci_resource_len(ndev->ntb.pdev, bar); ndev 861 drivers/ntb/hw/intel/ntb_hw_gen1.c if (idx == ndev->b2b_idx) ndev 862 drivers/ntb/hw/intel/ntb_hw_gen1.c mw_size = bar_size - ndev->b2b_off; ndev 874 drivers/ntb/hw/intel/ntb_hw_gen1.c mmio = ndev->self_mmio; ndev 875 drivers/ntb/hw/intel/ntb_hw_gen1.c base_reg = bar0_off(ndev->xlat_reg->bar0_base, bar); ndev 876 drivers/ntb/hw/intel/ntb_hw_gen1.c xlat_reg = bar2_off(ndev->xlat_reg->bar2_xlat, bar); ndev 877 drivers/ntb/hw/intel/ntb_hw_gen1.c limit_reg = bar2_off(ndev->xlat_reg->bar2_limit, bar); ndev 879 drivers/ntb/hw/intel/ntb_hw_gen1.c if (bar < 4 || !ndev->bar4_split) { ndev 943 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 945 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->reg->link_is_up(ndev)) { ndev 947 drivers/ntb/hw/intel/ntb_hw_gen1.c *speed = NTB_LNK_STA_SPEED(ndev->lnk_sta); ndev 949 drivers/ntb/hw/intel/ntb_hw_gen1.c *width = NTB_LNK_STA_WIDTH(ndev->lnk_sta); ndev 966 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev; ndev 969 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev = container_of(ntb, struct intel_ntb_dev, ntb); ndev 971 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->ntb.topo == NTB_TOPO_SEC) ndev 982 drivers/ntb/hw/intel/ntb_hw_gen1.c ntb_ctl = ioread32(ndev->self_mmio + ndev->reg->ntb_ctl); ndev 986 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->bar4_split) ndev 988 drivers/ntb/hw/intel/ntb_hw_gen1.c iowrite32(ntb_ctl, ndev->self_mmio + ndev->reg->ntb_ctl); ndev 995 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev; ndev 998 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev = container_of(ntb, struct intel_ntb_dev, ntb); ndev 1000 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->ntb.topo == NTB_TOPO_SEC) ndev 1006 drivers/ntb/hw/intel/ntb_hw_gen1.c ntb_cntl = ioread32(ndev->self_mmio + ndev->reg->ntb_ctl); ndev 1009 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->bar4_split) ndev 1012 drivers/ntb/hw/intel/ntb_hw_gen1.c iowrite32(ntb_cntl, ndev->self_mmio + ndev->reg->ntb_ctl); ndev 1026 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 1029 drivers/ntb/hw/intel/ntb_hw_gen1.c if (idx >= ndev->b2b_idx && !ndev->b2b_off) ndev 1032 drivers/ntb/hw/intel/ntb_hw_gen1.c bar = ndev_mw_to_bar(ndev, idx); ndev 1037 drivers/ntb/hw/intel/ntb_hw_gen1.c *base = pci_resource_start(ndev->ntb.pdev, bar) + ndev 1038 drivers/ntb/hw/intel/ntb_hw_gen1.c (idx == ndev->b2b_idx ? ndev->b2b_off : 0); ndev 1041 drivers/ntb/hw/intel/ntb_hw_gen1.c *size = pci_resource_len(ndev->ntb.pdev, bar) - ndev 1042 drivers/ntb/hw/intel/ntb_hw_gen1.c (idx == ndev->b2b_idx ? ndev->b2b_off : 0); ndev 1059 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev; ndev 1061 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev = container_of(ntb, struct intel_ntb_dev, ntb); ndev 1063 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev->db_vec_count; ndev 1068 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 1070 drivers/ntb/hw/intel/ntb_hw_gen1.c if (db_vector < 0 || db_vector > ndev->db_vec_count) ndev 1073 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev->db_valid_mask & ndev_vec_mask(ndev, db_vector); ndev 1078 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 1080 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_db_read(ndev, ndev 1081 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_mmio + ndev 1082 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_reg->db_bell); ndev 1087 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 1089 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_db_write(ndev, db_bits, ndev 1090 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_mmio + ndev 1091 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_reg->db_bell); ndev 1096 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 1098 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_db_set_mask(ndev, db_bits, ndev 1099 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_mmio + ndev 1100 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_reg->db_mask); ndev 1105 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 1107 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_db_clear_mask(ndev, db_bits, ndev 1108 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_mmio + ndev 1109 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_reg->db_mask); ndev 1116 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 1126 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev_db_addr(ndev, db_addr, db_size, ndev->peer_addr, ndev 1127 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->peer_reg->db_bell); ndev 1138 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 1140 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_db_write(ndev, db_bits, ndev 1141 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->peer_mmio + ndev 1142 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->peer_reg->db_bell); ndev 1152 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev; ndev 1154 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev = container_of(ntb, struct intel_ntb_dev, ntb); ndev 1156 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev->spad_count; ndev 1161 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 1163 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_spad_read(ndev, idx, ndev 1164 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_mmio + ndev 1165 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_reg->spad); ndev 1170 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 1172 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_spad_write(ndev, idx, val, ndev 1173 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_mmio + ndev 1174 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_reg->spad); ndev 1180 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 1182 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_spad_addr(ndev, sidx, spad_addr, ndev->peer_addr, ndev 1183 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->peer_reg->spad); ndev 1188 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 1190 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_spad_read(ndev, sidx, ndev 1191 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->peer_mmio + ndev 1192 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->peer_reg->spad); ndev 1198 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 1200 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_spad_write(ndev, sidx, val, ndev 1201 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->peer_mmio + ndev 1202 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->peer_reg->spad); ndev 1215 drivers/ntb/hw/intel/ntb_hw_gen1.c static int xeon_poll_link(struct intel_ntb_dev *ndev) ndev 1220 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->reg->db_iowrite(ndev->db_link_mask, ndev 1221 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_mmio + ndev 1222 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_reg->db_bell); ndev 1224 drivers/ntb/hw/intel/ntb_hw_gen1.c rc = pci_read_config_word(ndev->ntb.pdev, ndev 1229 drivers/ntb/hw/intel/ntb_hw_gen1.c if (reg_val == ndev->lnk_sta) ndev 1232 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->lnk_sta = reg_val; ndev 1237 drivers/ntb/hw/intel/ntb_hw_gen1.c int xeon_link_is_up(struct intel_ntb_dev *ndev) ndev 1239 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->ntb.topo == NTB_TOPO_SEC) ndev 1242 drivers/ntb/hw/intel/ntb_hw_gen1.c return NTB_LNK_STA_ACTIVE(ndev->lnk_sta); ndev 1245 drivers/ntb/hw/intel/ntb_hw_gen1.c enum ntb_topo xeon_ppd_topo(struct intel_ntb_dev *ndev, u8 ppd) ndev 1266 drivers/ntb/hw/intel/ntb_hw_gen1.c static inline int xeon_ppd_bar4_split(struct intel_ntb_dev *ndev, u8 ppd) ndev 1269 drivers/ntb/hw/intel/ntb_hw_gen1.c dev_dbg(&ndev->ntb.pdev->dev, "PPD %d split bar\n", ppd); ndev 1275 drivers/ntb/hw/intel/ntb_hw_gen1.c static int xeon_init_isr(struct intel_ntb_dev *ndev) ndev 1277 drivers/ntb/hw/intel/ntb_hw_gen1.c return ndev_init_isr(ndev, XEON_DB_MSIX_VECTOR_COUNT, ndev 1283 drivers/ntb/hw/intel/ntb_hw_gen1.c static void xeon_deinit_isr(struct intel_ntb_dev *ndev) ndev 1285 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev_deinit_isr(ndev); ndev 1288 drivers/ntb/hw/intel/ntb_hw_gen1.c static int xeon_setup_b2b_mw(struct intel_ntb_dev *ndev, ndev 1299 drivers/ntb/hw/intel/ntb_hw_gen1.c pdev = ndev->ntb.pdev; ndev 1300 drivers/ntb/hw/intel/ntb_hw_gen1.c mmio = ndev->self_mmio; ndev 1302 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->b2b_idx == UINT_MAX) { ndev 1305 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->b2b_off = 0; ndev 1307 drivers/ntb/hw/intel/ntb_hw_gen1.c b2b_bar = ndev_mw_to_bar(ndev, ndev->b2b_idx); ndev 1313 drivers/ntb/hw/intel/ntb_hw_gen1.c bar_size = pci_resource_len(ndev->ntb.pdev, b2b_bar); ndev 1319 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->b2b_off = bar_size >> 1; ndev 1322 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->b2b_off = 0; ndev 1323 drivers/ntb/hw/intel/ntb_hw_gen1.c --ndev->mw_count; ndev 1339 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->b2b_off) ndev 1348 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ndev->bar4_split) { ndev 1352 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->b2b_off) ndev 1364 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->b2b_off) ndev 1376 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->b2b_off) ndev 1391 drivers/ntb/hw/intel/ntb_hw_gen1.c else if (b2b_bar == 4 && !ndev->bar4_split) ndev 1408 drivers/ntb/hw/intel/ntb_hw_gen1.c bar_addr = addr->bar2_addr64 + (b2b_bar == 2 ? ndev->b2b_off : 0); ndev 1413 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ndev->bar4_split) { ndev 1415 drivers/ntb/hw/intel/ntb_hw_gen1.c (b2b_bar == 4 ? ndev->b2b_off : 0); ndev 1421 drivers/ntb/hw/intel/ntb_hw_gen1.c (b2b_bar == 4 ? ndev->b2b_off : 0); ndev 1427 drivers/ntb/hw/intel/ntb_hw_gen1.c (b2b_bar == 5 ? ndev->b2b_off : 0); ndev 1435 drivers/ntb/hw/intel/ntb_hw_gen1.c bar_addr = addr->bar2_addr64 + (b2b_bar == 2 ? ndev->b2b_off : 0); ndev 1440 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ndev->bar4_split) { ndev 1442 drivers/ntb/hw/intel/ntb_hw_gen1.c (b2b_bar == 4 ? ndev->b2b_off : 0); ndev 1448 drivers/ntb/hw/intel/ntb_hw_gen1.c (b2b_bar == 4 ? ndev->b2b_off : 0); ndev 1454 drivers/ntb/hw/intel/ntb_hw_gen1.c (b2b_bar == 5 ? ndev->b2b_off : 0); ndev 1463 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ndev->bar4_split) { ndev 1472 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ndev->bar4_split) { ndev 1485 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ndev->bar4_split) { ndev 1507 drivers/ntb/hw/intel/ntb_hw_gen1.c else if (b2b_bar == 4 && !ndev->bar4_split) ndev 1523 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->peer_mmio = pci_iomap(pdev, b2b_bar, ndev 1525 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ndev->peer_mmio) ndev 1528 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->peer_addr = pci_resource_start(pdev, b2b_bar); ndev 1534 drivers/ntb/hw/intel/ntb_hw_gen1.c static int xeon_init_ntb(struct intel_ntb_dev *ndev) ndev 1536 drivers/ntb/hw/intel/ntb_hw_gen1.c struct device *dev = &ndev->ntb.pdev->dev; ndev 1540 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->bar4_split) ndev 1541 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->mw_count = HSX_SPLIT_BAR_MW_COUNT; ndev 1543 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->mw_count = XEON_MW_COUNT; ndev 1545 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->spad_count = XEON_SPAD_COUNT; ndev 1546 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_count = XEON_DB_COUNT; ndev 1547 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_link_mask = XEON_DB_LINK_BIT; ndev 1549 drivers/ntb/hw/intel/ntb_hw_gen1.c switch (ndev->ntb.topo) { ndev 1551 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->hwerr_flags & NTB_HWERR_SDOORBELL_LOCKUP) { ndev 1557 drivers/ntb/hw/intel/ntb_hw_gen1.c ntb_ctl = ioread32(ndev->self_mmio + ndev->reg->ntb_ctl); ndev 1559 drivers/ntb/hw/intel/ntb_hw_gen1.c iowrite32(ntb_ctl, ndev->self_mmio + ndev->reg->ntb_ctl); ndev 1562 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->spad_count >>= 1; ndev 1563 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_reg = &xeon_pri_reg; ndev 1564 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->peer_reg = &xeon_sec_reg; ndev 1565 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->xlat_reg = &xeon_sec_xlat; ndev 1569 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->hwerr_flags & NTB_HWERR_SDOORBELL_LOCKUP) { ndev 1574 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->spad_count >>= 1; ndev 1575 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_reg = &xeon_sec_reg; ndev 1576 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->peer_reg = &xeon_pri_reg; ndev 1577 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->xlat_reg = &xeon_pri_xlat; ndev 1582 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_reg = &xeon_pri_reg; ndev 1583 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->peer_reg = &xeon_b2b_reg; ndev 1584 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->xlat_reg = &xeon_sec_xlat; ndev 1586 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->hwerr_flags & NTB_HWERR_SDOORBELL_LOCKUP) { ndev 1587 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->peer_reg = &xeon_pri_reg; ndev 1590 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->b2b_idx = b2b_mw_idx + ndev->mw_count; ndev 1592 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->b2b_idx = b2b_mw_idx; ndev 1594 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->b2b_idx >= ndev->mw_count) { ndev 1597 drivers/ntb/hw/intel/ntb_hw_gen1.c b2b_mw_idx, ndev->mw_count); ndev 1602 drivers/ntb/hw/intel/ntb_hw_gen1.c b2b_mw_idx, ndev->b2b_idx); ndev 1604 drivers/ntb/hw/intel/ntb_hw_gen1.c } else if (ndev->hwerr_flags & NTB_HWERR_B2BDOORBELL_BIT14) { ndev 1606 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_count -= 1; ndev 1609 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->ntb.topo == NTB_TOPO_B2B_USD) { ndev 1610 drivers/ntb/hw/intel/ntb_hw_gen1.c rc = xeon_setup_b2b_mw(ndev, ndev 1614 drivers/ntb/hw/intel/ntb_hw_gen1.c rc = xeon_setup_b2b_mw(ndev, ndev 1623 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_mmio + XEON_SPCICMD_OFFSET); ndev 1631 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_valid_mask = BIT_ULL(ndev->db_count) - 1; ndev 1633 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->reg->db_iowrite(ndev->db_valid_mask, ndev 1634 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_mmio + ndev 1635 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_reg->db_mask); ndev 1640 drivers/ntb/hw/intel/ntb_hw_gen1.c static int xeon_init_dev(struct intel_ntb_dev *ndev) ndev 1646 drivers/ntb/hw/intel/ntb_hw_gen1.c pdev = ndev->ntb.pdev; ndev 1670 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->hwerr_flags |= NTB_HWERR_SDOORBELL_LOCKUP; ndev 1687 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->hwerr_flags |= NTB_HWERR_SB01BASE_LOCKUP; ndev 1711 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->hwerr_flags |= NTB_HWERR_B2BDOORBELL_BIT14; ndev 1715 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->reg = &xeon_reg; ndev 1721 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->ntb.topo = xeon_ppd_topo(ndev, ppd); ndev 1723 drivers/ntb/hw/intel/ntb_hw_gen1.c ntb_topo_string(ndev->ntb.topo)); ndev 1724 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->ntb.topo == NTB_TOPO_NONE) ndev 1727 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->ntb.topo != NTB_TOPO_SEC) { ndev 1728 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->bar4_split = xeon_ppd_bar4_split(ndev, ppd); ndev 1730 drivers/ntb/hw/intel/ntb_hw_gen1.c ppd, ndev->bar4_split); ndev 1737 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->bar4_split = hweight32(mem) == ndev 1740 drivers/ntb/hw/intel/ntb_hw_gen1.c mem, ndev->bar4_split); ndev 1743 drivers/ntb/hw/intel/ntb_hw_gen1.c rc = xeon_init_ntb(ndev); ndev 1747 drivers/ntb/hw/intel/ntb_hw_gen1.c return xeon_init_isr(ndev); ndev 1750 drivers/ntb/hw/intel/ntb_hw_gen1.c static void xeon_deinit_dev(struct intel_ntb_dev *ndev) ndev 1752 drivers/ntb/hw/intel/ntb_hw_gen1.c xeon_deinit_isr(ndev); ndev 1755 drivers/ntb/hw/intel/ntb_hw_gen1.c static int intel_ntb_init_pci(struct intel_ntb_dev *ndev, struct pci_dev *pdev) ndev 1759 drivers/ntb/hw/intel/ntb_hw_gen1.c pci_set_drvdata(pdev, ndev); ndev 1786 drivers/ntb/hw/intel/ntb_hw_gen1.c rc = dma_coerce_mask_and_coherent(&ndev->ntb.dev, ndev 1791 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->self_mmio = pci_iomap(pdev, 0, 0); ndev 1792 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ndev->self_mmio) { ndev 1796 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->peer_mmio = ndev->self_mmio; ndev 1797 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->peer_addr = pci_resource_start(pdev, 0); ndev 1812 drivers/ntb/hw/intel/ntb_hw_gen1.c static void intel_ntb_deinit_pci(struct intel_ntb_dev *ndev) ndev 1814 drivers/ntb/hw/intel/ntb_hw_gen1.c struct pci_dev *pdev = ndev->ntb.pdev; ndev 1816 drivers/ntb/hw/intel/ntb_hw_gen1.c if (ndev->peer_mmio && ndev->peer_mmio != ndev->self_mmio) ndev 1817 drivers/ntb/hw/intel/ntb_hw_gen1.c pci_iounmap(pdev, ndev->peer_mmio); ndev 1818 drivers/ntb/hw/intel/ntb_hw_gen1.c pci_iounmap(pdev, ndev->self_mmio); ndev 1826 drivers/ntb/hw/intel/ntb_hw_gen1.c static inline void ndev_init_struct(struct intel_ntb_dev *ndev, ndev 1829 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->ntb.pdev = pdev; ndev 1830 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->ntb.topo = NTB_TOPO_NONE; ndev 1831 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->ntb.ops = &intel_ntb_ops; ndev 1833 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->b2b_off = 0; ndev 1834 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->b2b_idx = UINT_MAX; ndev 1836 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->bar4_split = 0; ndev 1838 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->mw_count = 0; ndev 1839 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->spad_count = 0; ndev 1840 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_count = 0; ndev 1841 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_vec_count = 0; ndev 1842 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_vec_shift = 0; ndev 1844 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->ntb_ctl = 0; ndev 1845 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->lnk_sta = 0; ndev 1847 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_valid_mask = 0; ndev 1848 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_link_mask = 0; ndev 1849 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->db_mask = 0; ndev 1851 drivers/ntb/hw/intel/ntb_hw_gen1.c spin_lock_init(&ndev->db_mask_lock); ndev 1857 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev; ndev 1863 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev = kzalloc_node(sizeof(*ndev), GFP_KERNEL, node); ndev 1864 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ndev) { ndev 1869 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev_init_struct(ndev, pdev); ndev 1871 drivers/ntb/hw/intel/ntb_hw_gen1.c rc = intel_ntb_init_pci(ndev, pdev); ndev 1875 drivers/ntb/hw/intel/ntb_hw_gen1.c rc = xeon_init_dev(ndev); ndev 1880 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev = kzalloc_node(sizeof(*ndev), GFP_KERNEL, node); ndev 1881 drivers/ntb/hw/intel/ntb_hw_gen1.c if (!ndev) { ndev 1886 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev_init_struct(ndev, pdev); ndev 1887 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->ntb.ops = &intel_ntb3_ops; ndev 1889 drivers/ntb/hw/intel/ntb_hw_gen1.c rc = intel_ntb_init_pci(ndev, pdev); ndev 1893 drivers/ntb/hw/intel/ntb_hw_gen1.c rc = gen3_init_dev(ndev); ndev 1902 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev_reset_unsafe_flags(ndev); ndev 1904 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev->reg->poll_link(ndev); ndev 1906 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev_init_debugfs(ndev); ndev 1908 drivers/ntb/hw/intel/ntb_hw_gen1.c rc = ntb_register_device(&ndev->ntb); ndev 1917 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev_deinit_debugfs(ndev); ndev 1919 drivers/ntb/hw/intel/ntb_hw_gen1.c xeon_deinit_dev(ndev); ndev 1921 drivers/ntb/hw/intel/ntb_hw_gen1.c intel_ntb_deinit_pci(ndev); ndev 1923 drivers/ntb/hw/intel/ntb_hw_gen1.c kfree(ndev); ndev 1930 drivers/ntb/hw/intel/ntb_hw_gen1.c struct intel_ntb_dev *ndev = pci_get_drvdata(pdev); ndev 1932 drivers/ntb/hw/intel/ntb_hw_gen1.c ntb_unregister_device(&ndev->ntb); ndev 1933 drivers/ntb/hw/intel/ntb_hw_gen1.c ndev_deinit_debugfs(ndev); ndev 1935 drivers/ntb/hw/intel/ntb_hw_gen1.c xeon_deinit_dev(ndev); ndev 1936 drivers/ntb/hw/intel/ntb_hw_gen1.c intel_ntb_deinit_pci(ndev); ndev 1937 drivers/ntb/hw/intel/ntb_hw_gen1.c kfree(ndev); ndev 147 drivers/ntb/hw/intel/ntb_hw_gen1.h int ndev_init_isr(struct intel_ntb_dev *ndev, int msix_min, int msix_max, ndev 149 drivers/ntb/hw/intel/ntb_hw_gen1.h enum ntb_topo xeon_ppd_topo(struct intel_ntb_dev *ndev, u8 ppd); ndev 150 drivers/ntb/hw/intel/ntb_hw_gen1.h void ndev_db_addr(struct intel_ntb_dev *ndev, ndev 153 drivers/ntb/hw/intel/ntb_hw_gen1.h u64 ndev_db_read(struct intel_ntb_dev *ndev, void __iomem *mmio); ndev 154 drivers/ntb/hw/intel/ntb_hw_gen1.h int ndev_db_write(struct intel_ntb_dev *ndev, u64 db_bits, ndev 156 drivers/ntb/hw/intel/ntb_hw_gen1.h int ndev_mw_to_bar(struct intel_ntb_dev *ndev, int idx); ndev 181 drivers/ntb/hw/intel/ntb_hw_gen1.h int xeon_link_is_up(struct intel_ntb_dev *ndev); ndev 61 drivers/ntb/hw/intel/ntb_hw_gen3.c static int gen3_poll_link(struct intel_ntb_dev *ndev); ndev 93 drivers/ntb/hw/intel/ntb_hw_gen3.c static int gen3_poll_link(struct intel_ntb_dev *ndev) ndev 98 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->reg->db_iowrite(ndev->db_link_mask, ndev 99 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->self_mmio + ndev 100 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->self_reg->db_clear); ndev 102 drivers/ntb/hw/intel/ntb_hw_gen3.c rc = pci_read_config_word(ndev->ntb.pdev, ndev 107 drivers/ntb/hw/intel/ntb_hw_gen3.c if (reg_val == ndev->lnk_sta) ndev 110 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->lnk_sta = reg_val; ndev 115 drivers/ntb/hw/intel/ntb_hw_gen3.c static int gen3_init_isr(struct intel_ntb_dev *ndev) ndev 127 drivers/ntb/hw/intel/ntb_hw_gen3.c iowrite8(i, ndev->self_mmio + GEN3_INTVEC_OFFSET + i); ndev 130 drivers/ntb/hw/intel/ntb_hw_gen3.c if (ndev->hwerr_flags & NTB_HWERR_MSIX_VECTOR32_BAD) { ndev 132 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->self_mmio + GEN3_INTVEC_OFFSET + ndev 136 drivers/ntb/hw/intel/ntb_hw_gen3.c return ndev_init_isr(ndev, GEN3_DB_MSIX_VECTOR_COUNT, ndev 142 drivers/ntb/hw/intel/ntb_hw_gen3.c static int gen3_setup_b2b_mw(struct intel_ntb_dev *ndev, ndev 150 drivers/ntb/hw/intel/ntb_hw_gen3.c pdev = ndev->ntb.pdev; ndev 151 drivers/ntb/hw/intel/ntb_hw_gen3.c mmio = ndev->self_mmio; ndev 168 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->peer_mmio = ndev->self_mmio; ndev 173 drivers/ntb/hw/intel/ntb_hw_gen3.c static int gen3_init_ntb(struct intel_ntb_dev *ndev) ndev 178 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->mw_count = XEON_MW_COUNT; ndev 179 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->spad_count = GEN3_SPAD_COUNT; ndev 180 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->db_count = GEN3_DB_COUNT; ndev 181 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->db_link_mask = GEN3_DB_LINK_BIT; ndev 184 drivers/ntb/hw/intel/ntb_hw_gen3.c if (ndev->hwerr_flags & NTB_HWERR_MSIX_VECTOR32_BAD) ndev 185 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->db_link_mask |= BIT_ULL(31); ndev 187 drivers/ntb/hw/intel/ntb_hw_gen3.c switch (ndev->ntb.topo) { ndev 190 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->self_reg = &gen3_pri_reg; ndev 191 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->peer_reg = &gen3_b2b_reg; ndev 192 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->xlat_reg = &gen3_sec_xlat; ndev 194 drivers/ntb/hw/intel/ntb_hw_gen3.c if (ndev->ntb.topo == NTB_TOPO_B2B_USD) { ndev 195 drivers/ntb/hw/intel/ntb_hw_gen3.c rc = gen3_setup_b2b_mw(ndev, ndev 199 drivers/ntb/hw/intel/ntb_hw_gen3.c rc = gen3_setup_b2b_mw(ndev, ndev 209 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->self_mmio + GEN3_SPCICMD_OFFSET); ndev 217 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->db_valid_mask = BIT_ULL(ndev->db_count) - 1; ndev 219 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->reg->db_iowrite(ndev->db_valid_mask, ndev 220 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->self_mmio + ndev 221 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->self_reg->db_mask); ndev 226 drivers/ntb/hw/intel/ntb_hw_gen3.c int gen3_init_dev(struct intel_ntb_dev *ndev) ndev 232 drivers/ntb/hw/intel/ntb_hw_gen3.c pdev = ndev->ntb.pdev; ndev 234 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->reg = &gen3_reg; ndev 240 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->ntb.topo = xeon_ppd_topo(ndev, ppd); ndev 242 drivers/ntb/hw/intel/ntb_hw_gen3.c ntb_topo_string(ndev->ntb.topo)); ndev 243 drivers/ntb/hw/intel/ntb_hw_gen3.c if (ndev->ntb.topo == NTB_TOPO_NONE) ndev 246 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->hwerr_flags |= NTB_HWERR_MSIX_VECTOR32_BAD; ndev 248 drivers/ntb/hw/intel/ntb_hw_gen3.c rc = gen3_init_ntb(ndev); ndev 252 drivers/ntb/hw/intel/ntb_hw_gen3.c return gen3_init_isr(ndev); ndev 258 drivers/ntb/hw/intel/ntb_hw_gen3.c struct intel_ntb_dev *ndev; ndev 265 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev = filp->private_data; ndev 266 drivers/ntb/hw/intel/ntb_hw_gen3.c mmio = ndev->self_mmio; ndev 281 drivers/ntb/hw/intel/ntb_hw_gen3.c ntb_topo_string(ndev->ntb.topo)); ndev 284 drivers/ntb/hw/intel/ntb_hw_gen3.c "NTB CTL -\t\t%#06x\n", ndev->ntb_ctl); ndev 286 drivers/ntb/hw/intel/ntb_hw_gen3.c "LNK STA -\t\t%#06x\n", ndev->lnk_sta); ndev 288 drivers/ntb/hw/intel/ntb_hw_gen3.c if (!ndev->reg->link_is_up(ndev)) ndev 296 drivers/ntb/hw/intel/ntb_hw_gen3.c NTB_LNK_STA_SPEED(ndev->lnk_sta)); ndev 299 drivers/ntb/hw/intel/ntb_hw_gen3.c NTB_LNK_STA_WIDTH(ndev->lnk_sta)); ndev 303 drivers/ntb/hw/intel/ntb_hw_gen3.c "Memory Window Count -\t%u\n", ndev->mw_count); ndev 305 drivers/ntb/hw/intel/ntb_hw_gen3.c "Scratchpad Count -\t%u\n", ndev->spad_count); ndev 307 drivers/ntb/hw/intel/ntb_hw_gen3.c "Doorbell Count -\t%u\n", ndev->db_count); ndev 309 drivers/ntb/hw/intel/ntb_hw_gen3.c "Doorbell Vector Count -\t%u\n", ndev->db_vec_count); ndev 311 drivers/ntb/hw/intel/ntb_hw_gen3.c "Doorbell Vector Shift -\t%u\n", ndev->db_vec_shift); ndev 314 drivers/ntb/hw/intel/ntb_hw_gen3.c "Doorbell Valid Mask -\t%#llx\n", ndev->db_valid_mask); ndev 316 drivers/ntb/hw/intel/ntb_hw_gen3.c "Doorbell Link Mask -\t%#llx\n", ndev->db_link_mask); ndev 318 drivers/ntb/hw/intel/ntb_hw_gen3.c "Doorbell Mask Cached -\t%#llx\n", ndev->db_mask); ndev 320 drivers/ntb/hw/intel/ntb_hw_gen3.c u.v64 = ndev_db_read(ndev, mmio + ndev->self_reg->db_mask); ndev 324 drivers/ntb/hw/intel/ntb_hw_gen3.c u.v64 = ndev_db_read(ndev, mmio + ndev->self_reg->db_bell); ndev 347 drivers/ntb/hw/intel/ntb_hw_gen3.c if (ntb_topo_is_b2b(ndev->ntb.topo)) { ndev 393 drivers/ntb/hw/intel/ntb_hw_gen3.c if (!pci_read_config_word(ndev->ntb.pdev, ndev 398 drivers/ntb/hw/intel/ntb_hw_gen3.c if (!pci_read_config_word(ndev->ntb.pdev, ndev 403 drivers/ntb/hw/intel/ntb_hw_gen3.c if (!pci_read_config_dword(ndev->ntb.pdev, ndev 408 drivers/ntb/hw/intel/ntb_hw_gen3.c if (!pci_read_config_dword(ndev->ntb.pdev, ndev 422 drivers/ntb/hw/intel/ntb_hw_gen3.c struct intel_ntb_dev *ndev; ndev 425 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev = container_of(ntb, struct intel_ntb_dev, ntb); ndev 436 drivers/ntb/hw/intel/ntb_hw_gen3.c ntb_ctl = ioread32(ndev->self_mmio + ndev->reg->ntb_ctl); ndev 440 drivers/ntb/hw/intel/ntb_hw_gen3.c iowrite32(ntb_ctl, ndev->self_mmio + ndev->reg->ntb_ctl); ndev 447 drivers/ntb/hw/intel/ntb_hw_gen3.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 457 drivers/ntb/hw/intel/ntb_hw_gen3.c if (idx >= ndev->b2b_idx && !ndev->b2b_off) ndev 460 drivers/ntb/hw/intel/ntb_hw_gen3.c bar = ndev_mw_to_bar(ndev, idx); ndev 464 drivers/ntb/hw/intel/ntb_hw_gen3.c bar_size = pci_resource_len(ndev->ntb.pdev, bar); ndev 466 drivers/ntb/hw/intel/ntb_hw_gen3.c if (idx == ndev->b2b_idx) ndev 467 drivers/ntb/hw/intel/ntb_hw_gen3.c mw_size = bar_size - ndev->b2b_off; ndev 479 drivers/ntb/hw/intel/ntb_hw_gen3.c mmio = ndev->self_mmio; ndev 480 drivers/ntb/hw/intel/ntb_hw_gen3.c xlat_reg = ndev->xlat_reg->bar2_xlat + (idx * 0x10); ndev 481 drivers/ntb/hw/intel/ntb_hw_gen3.c limit_reg = ndev->xlat_reg->bar2_limit + (idx * 0x10); ndev 482 drivers/ntb/hw/intel/ntb_hw_gen3.c base = pci_resource_start(ndev->ntb.pdev, bar); ndev 512 drivers/ntb/hw/intel/ntb_hw_gen3.c limit_reg = ndev->xlat_reg->bar2_limit + (idx * 0x10) + 0x4000; ndev 540 drivers/ntb/hw/intel/ntb_hw_gen3.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 548 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev_db_addr(ndev, &db_addr_base, db_size, ndev->peer_addr, ndev 549 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->peer_reg->db_bell); ndev 553 drivers/ntb/hw/intel/ntb_hw_gen3.c dev_dbg(&ndev->ntb.pdev->dev, "Peer db addr %llx db bit %d\n", ndev 559 drivers/ntb/hw/intel/ntb_hw_gen3.c dev_dbg(&ndev->ntb.pdev->dev, "Peer db data %llx db bit %d\n", ndev 568 drivers/ntb/hw/intel/ntb_hw_gen3.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 571 drivers/ntb/hw/intel/ntb_hw_gen3.c if (db_bits & ~ndev->db_valid_mask) ndev 576 drivers/ntb/hw/intel/ntb_hw_gen3.c iowrite32(1, ndev->peer_mmio + ndev 577 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->peer_reg->db_bell + (bit * 4)); ndev 586 drivers/ntb/hw/intel/ntb_hw_gen3.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 588 drivers/ntb/hw/intel/ntb_hw_gen3.c return ndev_db_read(ndev, ndev 589 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->self_mmio + ndev 590 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->self_reg->db_clear); ndev 595 drivers/ntb/hw/intel/ntb_hw_gen3.c struct intel_ntb_dev *ndev = ntb_ndev(ntb); ndev 597 drivers/ntb/hw/intel/ntb_hw_gen3.c return ndev_db_write(ndev, db_bits, ndev 598 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->self_mmio + ndev 599 drivers/ntb/hw/intel/ntb_hw_gen3.c ndev->self_reg->db_clear); ndev 106 drivers/ntb/hw/intel/ntb_hw_gen3.h int gen3_init_dev(struct intel_ntb_dev *ndev); ndev 103 drivers/ntb/hw/intel/ntb_hw_intel.h int (*poll_link)(struct intel_ntb_dev *ndev); ndev 104 drivers/ntb/hw/intel/ntb_hw_intel.h int (*link_is_up)(struct intel_ntb_dev *ndev); ndev 134 drivers/ntb/hw/intel/ntb_hw_intel.h struct intel_ntb_dev *ndev; ndev 133 drivers/ntb/ntb_transport.c struct ntb_dev *ndev; ndev 226 drivers/ntb/ntb_transport.c struct ntb_dev *ndev; ndev 396 drivers/ntb/ntb_transport.c node = dev_to_node(&nt->ndev->dev); ndev 411 drivers/ntb/ntb_transport.c dev->parent = &nt->ndev->dev; ndev 620 drivers/ntb/ntb_transport.c struct ntb_dev *ndev = nt->ndev; ndev 657 drivers/ntb/ntb_transport.c node = dev_to_node(&ndev->dev); ndev 703 drivers/ntb/ntb_transport.c if (spad >= ntb_spad_count(nt->ndev)) ndev 707 drivers/ntb/ntb_transport.c ntb_peer_spad_read(qp->ndev, PIDX, spad); ndev 709 drivers/ntb/ntb_transport.c ntb_peer_spad_read(qp->ndev, PIDX, spad + 1); ndev 711 drivers/ntb/ntb_transport.c dev_dbg(&qp->ndev->pdev->dev, "QP%d Peer MSI addr=%x data=%x\n", ndev 716 drivers/ntb/ntb_transport.c dev_info(&qp->ndev->pdev->dev, ndev 731 drivers/ntb/ntb_transport.c if (spad >= ntb_spad_count(nt->ndev)) { ndev 732 drivers/ntb/ntb_transport.c dev_warn_once(&qp->ndev->pdev->dev, ndev 737 drivers/ntb/ntb_transport.c ntb_spad_write(qp->ndev, spad, 0); ndev 738 drivers/ntb/ntb_transport.c ntb_spad_write(qp->ndev, spad + 1, 0); ndev 741 drivers/ntb/ntb_transport.c qp->msi_irq = ntbm_msi_request_irq(qp->ndev, ntb_transport_isr, ndev 745 drivers/ntb/ntb_transport.c dev_warn(&qp->ndev->pdev->dev, ndev 752 drivers/ntb/ntb_transport.c rc = ntb_spad_write(qp->ndev, spad, qp->msi_desc.addr_offset); ndev 756 drivers/ntb/ntb_transport.c rc = ntb_spad_write(qp->ndev, spad + 1, qp->msi_desc.data); ndev 760 drivers/ntb/ntb_transport.c dev_dbg(&qp->ndev->pdev->dev, "QP%d MSI %d addr=%x data=%x\n", ndev 767 drivers/ntb/ntb_transport.c devm_free_irq(&nt->ndev->dev, qp->msi_irq, qp); ndev 774 drivers/ntb/ntb_transport.c dev_dbg(&nt->ndev->pdev->dev, "Peer MSI descriptors changed"); ndev 785 drivers/ntb/ntb_transport.c dev_dbg(&nt->ndev->pdev->dev, "MSI descriptors changed"); ndev 790 drivers/ntb/ntb_transport.c ntb_peer_db_set(nt->ndev, nt->msi_db_mask); ndev 796 drivers/ntb/ntb_transport.c struct pci_dev *pdev = nt->ndev->pdev; ndev 801 drivers/ntb/ntb_transport.c ntb_mw_clear_trans(nt->ndev, PIDX, num_mw); ndev 859 drivers/ntb/ntb_transport.c struct pci_dev *pdev = nt->ndev->pdev; ndev 868 drivers/ntb/ntb_transport.c rc = ntb_mw_get_align(nt->ndev, PIDX, num_mw, &xlat_align, ndev 903 drivers/ntb/ntb_transport.c rc = ntb_mw_set_trans(nt->ndev, PIDX, num_mw, mw->dma_addr, ndev 940 drivers/ntb/ntb_transport.c struct pci_dev *pdev = nt->ndev->pdev; ndev 997 drivers/ntb/ntb_transport.c count = ntb_spad_count(nt->ndev); ndev 999 drivers/ntb/ntb_transport.c ntb_spad_write(nt->ndev, i, 0); ndev 1014 drivers/ntb/ntb_transport.c if (ntb_link_is_up(nt->ndev, NULL, NULL) == 1) ndev 1024 drivers/ntb/ntb_transport.c struct ntb_dev *ndev = nt->ndev; ndev 1025 drivers/ntb/ntb_transport.c struct pci_dev *pdev = ndev->pdev; ndev 1033 drivers/ntb/ntb_transport.c rc = ntb_msi_setup_mws(ndev); ndev 1052 drivers/ntb/ntb_transport.c ntb_peer_spad_write(ndev, PIDX, spad, upper_32_bits(size)); ndev 1055 drivers/ntb/ntb_transport.c ntb_peer_spad_write(ndev, PIDX, spad, lower_32_bits(size)); ndev 1058 drivers/ntb/ntb_transport.c ntb_peer_spad_write(ndev, PIDX, NUM_MWS, nt->mw_count); ndev 1060 drivers/ntb/ntb_transport.c ntb_peer_spad_write(ndev, PIDX, NUM_QPS, nt->qp_count); ndev 1062 drivers/ntb/ntb_transport.c ntb_peer_spad_write(ndev, PIDX, VERSION, NTB_TRANSPORT_VERSION); ndev 1065 drivers/ntb/ntb_transport.c val = ntb_spad_read(ndev, VERSION); ndev 1070 drivers/ntb/ntb_transport.c val = ntb_spad_read(ndev, NUM_QPS); ndev 1075 drivers/ntb/ntb_transport.c val = ntb_spad_read(ndev, NUM_MWS); ndev 1083 drivers/ntb/ntb_transport.c val = ntb_spad_read(ndev, MW0_SZ_HIGH + (i * 2)); ndev 1086 drivers/ntb/ntb_transport.c val = ntb_spad_read(ndev, MW0_SZ_LOW + (i * 2)); ndev 1119 drivers/ntb/ntb_transport.c if (ntb_link_is_up(ndev, NULL, NULL) == 1) ndev 1129 drivers/ntb/ntb_transport.c struct pci_dev *pdev = qp->ndev->pdev; ndev 1135 drivers/ntb/ntb_transport.c val = ntb_spad_read(nt->ndev, QP_LINKS); ndev 1137 drivers/ntb/ntb_transport.c ntb_peer_spad_write(nt->ndev, PIDX, QP_LINKS, val | BIT(qp->qp_num)); ndev 1176 drivers/ntb/ntb_transport.c qp->ndev = nt->ndev; ndev 1243 drivers/ntb/ntb_transport.c static int ntb_transport_probe(struct ntb_client *self, struct ntb_dev *ndev) ndev 1252 drivers/ntb/ntb_transport.c mw_count = ntb_peer_mw_count(ndev); ndev 1254 drivers/ntb/ntb_transport.c if (!ndev->ops->mw_set_trans) { ndev 1255 drivers/ntb/ntb_transport.c dev_err(&ndev->dev, "Inbound MW based NTB API is required\n"); ndev 1259 drivers/ntb/ntb_transport.c if (ntb_db_is_unsafe(ndev)) ndev 1260 drivers/ntb/ntb_transport.c dev_dbg(&ndev->dev, ndev 1262 drivers/ntb/ntb_transport.c if (ntb_spad_is_unsafe(ndev)) ndev 1263 drivers/ntb/ntb_transport.c dev_dbg(&ndev->dev, ndev 1266 drivers/ntb/ntb_transport.c if (ntb_peer_port_count(ndev) != NTB_DEF_PEER_CNT) ndev 1267 drivers/ntb/ntb_transport.c dev_warn(&ndev->dev, "Multi-port NTB devices unsupported\n"); ndev 1269 drivers/ntb/ntb_transport.c node = dev_to_node(&ndev->dev); ndev 1275 drivers/ntb/ntb_transport.c nt->ndev = ndev; ndev 1282 drivers/ntb/ntb_transport.c rc = ntb_msi_init(ndev, ntb_transport_msi_desc_changed); ndev 1289 drivers/ntb/ntb_transport.c spad_count = ntb_spad_count(ndev); ndev 1314 drivers/ntb/ntb_transport.c rc = ntb_peer_mw_get_addr(ndev, i, &mw->phys_addr, ndev 1331 drivers/ntb/ntb_transport.c qp_bitmap = ntb_db_valid_mask(ndev); ndev 1337 drivers/ntb/ntb_transport.c ntb_db_clear_mask(ndev, nt->msi_db_mask); ndev 1360 drivers/ntb/ntb_transport.c debugfs_create_dir(pci_name(ndev->pdev), ndev 1373 drivers/ntb/ntb_transport.c rc = ntb_set_ctx(ndev, nt, &ntb_transport_ops); ndev 1383 drivers/ntb/ntb_transport.c ntb_link_enable(ndev, NTB_SPEED_AUTO, NTB_WIDTH_AUTO); ndev 1384 drivers/ntb/ntb_transport.c ntb_link_event(ndev); ndev 1389 drivers/ntb/ntb_transport.c ntb_clear_ctx(ndev); ndev 1403 drivers/ntb/ntb_transport.c static void ntb_transport_free(struct ntb_client *self, struct ntb_dev *ndev) ndev 1405 drivers/ntb/ntb_transport.c struct ntb_transport_ctx *nt = ndev->ctx; ndev 1424 drivers/ntb/ntb_transport.c ntb_link_disable(ndev); ndev 1425 drivers/ntb/ntb_transport.c ntb_clear_ctx(ndev); ndev 1625 drivers/ntb/ntb_transport.c dev_dbg(&qp->ndev->pdev->dev, "qp %d: RX ver %u len %d flags %x\n", ndev 1629 drivers/ntb/ntb_transport.c dev_dbg(&qp->ndev->pdev->dev, "done flag not set\n"); ndev 1635 drivers/ntb/ntb_transport.c dev_dbg(&qp->ndev->pdev->dev, "link down flag set\n"); ndev 1642 drivers/ntb/ntb_transport.c dev_dbg(&qp->ndev->pdev->dev, ndev 1651 drivers/ntb/ntb_transport.c dev_dbg(&qp->ndev->pdev->dev, "no receive buffer\n"); ndev 1660 drivers/ntb/ntb_transport.c dev_dbg(&qp->ndev->pdev->dev, ndev 1670 drivers/ntb/ntb_transport.c dev_dbg(&qp->ndev->pdev->dev, ndev 1693 drivers/ntb/ntb_transport.c dev_dbg(&qp->ndev->pdev->dev, "%s: doorbell %d received\n", ndev 1712 drivers/ntb/ntb_transport.c } else if (ntb_db_read(qp->ndev) & BIT_ULL(qp->qp_num)) { ndev 1714 drivers/ntb/ntb_transport.c ntb_db_clear(qp->ndev, BIT_ULL(qp->qp_num)); ndev 1716 drivers/ntb/ntb_transport.c ntb_db_read(qp->ndev); ndev 1764 drivers/ntb/ntb_transport.c ntb_msi_peer_trigger(qp->ndev, PIDX, &qp->peer_msi_desc); ndev 1766 drivers/ntb/ntb_transport.c ntb_peer_db_set(qp->ndev, BIT_ULL(qp->qp_num)); ndev 1925 drivers/ntb/ntb_transport.c struct pci_dev *pdev = qp->ndev->pdev; ndev 1980 drivers/ntb/ntb_transport.c struct ntb_dev *ndev; ndev 1991 drivers/ntb/ntb_transport.c ndev = dev_ntb(client_dev->parent); ndev 1992 drivers/ntb/ntb_transport.c pdev = ndev->pdev; ndev 1993 drivers/ntb/ntb_transport.c nt = ndev->ctx; ndev 1995 drivers/ntb/ntb_transport.c node = dev_to_node(&ndev->dev); ndev 2074 drivers/ntb/ntb_transport.c ntb_db_clear(qp->ndev, qp_bit); ndev 2075 drivers/ntb/ntb_transport.c ntb_db_clear_mask(qp->ndev, qp_bit); ndev 2117 drivers/ntb/ntb_transport.c pdev = qp->ndev->pdev; ndev 2158 drivers/ntb/ntb_transport.c ntb_db_set_mask(qp->ndev, qp_bit); ndev 2342 drivers/ntb/ntb_transport.c val = ntb_spad_read(qp->ndev, QP_LINKS); ndev 2344 drivers/ntb/ntb_transport.c ntb_peer_spad_write(qp->ndev, PIDX, QP_LINKS, val & ~BIT(qp->qp_num)); ndev 2434 drivers/ntb/ntb_transport.c if (ntb_db_read(nt->ndev) & nt->msi_db_mask) { ndev 2436 drivers/ntb/ntb_transport.c ntb_db_clear(nt->ndev, nt->msi_db_mask); ndev 2440 drivers/ntb/ntb_transport.c ntb_db_vector_mask(nt->ndev, vector)); ndev 456 drivers/nvme/host/core.c if (ns->ndev) ndev 1595 drivers/nvme/host/core.c if (ns->ndev) ndev 555 drivers/nvme/host/lightnvm.c static int nvme_nvm_get_chk_meta(struct nvm_dev *ndev, ndev 559 drivers/nvme/host/lightnvm.c struct nvm_geo *geo = &ndev->geo; ndev 560 drivers/nvme/host/lightnvm.c struct nvme_ns *ns = ndev->q->queuedata; ndev 581 drivers/nvme/host/lightnvm.c ppa = dev_to_generic_addr(ndev, ppa); ndev 759 drivers/nvme/host/lightnvm.c struct nvm_dev *dev = ns->ndev; ndev 971 drivers/nvme/host/lightnvm.c ns->ndev = dev; ndev 978 drivers/nvme/host/lightnvm.c nvm_unregister(ns->ndev); ndev 985 drivers/nvme/host/lightnvm.c struct nvm_dev *ndev = ns->ndev; ndev 986 drivers/nvme/host/lightnvm.c struct nvm_geo *geo = &ndev->geo; ndev 989 drivers/nvme/host/lightnvm.c if (!ndev) ndev 1032 drivers/nvme/host/lightnvm.c struct nvm_dev *ndev = ns->ndev; ndev 1033 drivers/nvme/host/lightnvm.c struct nvm_geo *geo = &ndev->geo; ndev 1036 drivers/nvme/host/lightnvm.c if (!ndev) ndev 1095 drivers/nvme/host/lightnvm.c struct nvm_dev *ndev = ns->ndev; ndev 1096 drivers/nvme/host/lightnvm.c struct nvm_geo *geo = &ndev->geo; ndev 1099 drivers/nvme/host/lightnvm.c if (!ndev) ndev 1244 drivers/nvme/host/lightnvm.c struct nvm_dev *ndev = ns->ndev; ndev 1248 drivers/nvme/host/lightnvm.c if (!ndev) ndev 1254 drivers/nvme/host/lightnvm.c switch (ndev->geo.major_ver_id) { ndev 363 drivers/nvme/host/nvme.h struct nvm_dev *ndev; ndev 1770 drivers/nvme/host/pci.c struct nvme_dev *ndev = to_nvme_dev(dev_get_drvdata(dev)); ndev 1773 drivers/nvme/host/pci.c ndev->cmbloc, ndev->cmbsz); ndev 2935 drivers/nvme/host/pci.c struct nvme_dev *ndev = pci_get_drvdata(to_pci_dev(dev)); ndev 2936 drivers/nvme/host/pci.c struct nvme_ctrl *ctrl = &ndev->ctrl; ndev 2938 drivers/nvme/host/pci.c if (ndev->last_ps == U32_MAX || ndev 2939 drivers/nvme/host/pci.c nvme_set_power_state(ctrl, ndev->last_ps) != 0) ndev 2940 drivers/nvme/host/pci.c return nvme_try_sched_reset(&ndev->ctrl); ndev 2947 drivers/nvme/host/pci.c struct nvme_dev *ndev = pci_get_drvdata(pdev); ndev 2948 drivers/nvme/host/pci.c struct nvme_ctrl *ctrl = &ndev->ctrl; ndev 2951 drivers/nvme/host/pci.c ndev->last_ps = U32_MAX; ndev 2968 drivers/nvme/host/pci.c (ndev->ctrl.quirks & NVME_QUIRK_SIMPLE_SUSPEND)) ndev 2969 drivers/nvme/host/pci.c return nvme_disable_prepare_reset(ndev, true); ndev 2978 drivers/nvme/host/pci.c ret = nvme_get_power_state(ctrl, &ndev->last_ps); ndev 3001 drivers/nvme/host/pci.c ret = nvme_disable_prepare_reset(ndev, true); ndev 3011 drivers/nvme/host/pci.c struct nvme_dev *ndev = pci_get_drvdata(to_pci_dev(dev)); ndev 3012 drivers/nvme/host/pci.c return nvme_disable_prepare_reset(ndev, true); ndev 3018 drivers/nvme/host/pci.c struct nvme_dev *ndev = pci_get_drvdata(pdev); ndev 3020 drivers/nvme/host/pci.c return nvme_try_sched_reset(&ndev->ctrl); ndev 332 drivers/nvme/host/rdma.c struct nvme_rdma_device *ndev = ndev 336 drivers/nvme/host/rdma.c list_del(&ndev->entry); ndev 339 drivers/nvme/host/rdma.c ib_dealloc_pd(ndev->pd); ndev 340 drivers/nvme/host/rdma.c kfree(ndev); ndev 356 drivers/nvme/host/rdma.c struct nvme_rdma_device *ndev; ndev 359 drivers/nvme/host/rdma.c list_for_each_entry(ndev, &device_list, entry) { ndev 360 drivers/nvme/host/rdma.c if (ndev->dev->node_guid == cm_id->device->node_guid && ndev 361 drivers/nvme/host/rdma.c nvme_rdma_dev_get(ndev)) ndev 365 drivers/nvme/host/rdma.c ndev = kzalloc(sizeof(*ndev), GFP_KERNEL); ndev 366 drivers/nvme/host/rdma.c if (!ndev) ndev 369 drivers/nvme/host/rdma.c ndev->dev = cm_id->device; ndev 370 drivers/nvme/host/rdma.c kref_init(&ndev->ref); ndev 372 drivers/nvme/host/rdma.c ndev->pd = ib_alloc_pd(ndev->dev, ndev 374 drivers/nvme/host/rdma.c if (IS_ERR(ndev->pd)) ndev 377 drivers/nvme/host/rdma.c if (!(ndev->dev->attrs.device_cap_flags & ndev 379 drivers/nvme/host/rdma.c dev_err(&ndev->dev->dev, ndev 384 drivers/nvme/host/rdma.c ndev->num_inline_segments = min(NVME_RDMA_MAX_INLINE_SEGMENTS, ndev 385 drivers/nvme/host/rdma.c ndev->dev->attrs.max_send_sge - 1); ndev 386 drivers/nvme/host/rdma.c list_add(&ndev->entry, &device_list); ndev 389 drivers/nvme/host/rdma.c return ndev; ndev 392 drivers/nvme/host/rdma.c ib_dealloc_pd(ndev->pd); ndev 394 drivers/nvme/host/rdma.c kfree(ndev); ndev 2085 drivers/nvme/host/rdma.c struct nvme_rdma_device *ndev; ndev 2089 drivers/nvme/host/rdma.c list_for_each_entry(ndev, &device_list, entry) { ndev 2090 drivers/nvme/host/rdma.c if (ndev->dev == ib_device) { ndev 134 drivers/nvme/target/rdma.c static void nvmet_rdma_free_rsp(struct nvmet_rdma_device *ndev, ndev 136 drivers/nvme/target/rdma.c static int nvmet_rdma_alloc_rsp(struct nvmet_rdma_device *ndev, ndev 214 drivers/nvme/target/rdma.c static void nvmet_rdma_free_inline_pages(struct nvmet_rdma_device *ndev, ndev 221 drivers/nvme/target/rdma.c if (!ndev->inline_data_size) ndev 227 drivers/nvme/target/rdma.c for (i = 0; i < ndev->inline_page_count; i++, sg++, sge++) { ndev 229 drivers/nvme/target/rdma.c ib_dma_unmap_page(ndev->device, sge->addr, ndev 236 drivers/nvme/target/rdma.c static int nvmet_rdma_alloc_inline_pages(struct nvmet_rdma_device *ndev, ndev 245 drivers/nvme/target/rdma.c if (!ndev->inline_data_size) ndev 249 drivers/nvme/target/rdma.c sg_init_table(sg, ndev->inline_page_count); ndev 251 drivers/nvme/target/rdma.c len = ndev->inline_data_size; ndev 253 drivers/nvme/target/rdma.c for (i = 0; i < ndev->inline_page_count; i++, sg++, sge++) { ndev 258 drivers/nvme/target/rdma.c sge->addr = ib_dma_map_page(ndev->device, ndev 260 drivers/nvme/target/rdma.c if (ib_dma_mapping_error(ndev->device, sge->addr)) ndev 263 drivers/nvme/target/rdma.c sge->lkey = ndev->pd->local_dma_lkey; ndev 271 drivers/nvme/target/rdma.c ib_dma_unmap_page(ndev->device, sge->addr, ndev 279 drivers/nvme/target/rdma.c static int nvmet_rdma_alloc_cmd(struct nvmet_rdma_device *ndev, ndev 287 drivers/nvme/target/rdma.c c->sge[0].addr = ib_dma_map_single(ndev->device, c->nvme_cmd, ndev 289 drivers/nvme/target/rdma.c if (ib_dma_mapping_error(ndev->device, c->sge[0].addr)) ndev 293 drivers/nvme/target/rdma.c c->sge[0].lkey = ndev->pd->local_dma_lkey; ndev 295 drivers/nvme/target/rdma.c if (!admin && nvmet_rdma_alloc_inline_pages(ndev, c)) ndev 302 drivers/nvme/target/rdma.c c->wr.num_sge = admin ? 1 : ndev->inline_page_count + 1; ndev 307 drivers/nvme/target/rdma.c ib_dma_unmap_single(ndev->device, c->sge[0].addr, ndev 316 drivers/nvme/target/rdma.c static void nvmet_rdma_free_cmd(struct nvmet_rdma_device *ndev, ndev 320 drivers/nvme/target/rdma.c nvmet_rdma_free_inline_pages(ndev, c); ndev 321 drivers/nvme/target/rdma.c ib_dma_unmap_single(ndev->device, c->sge[0].addr, ndev 327 drivers/nvme/target/rdma.c nvmet_rdma_alloc_cmds(struct nvmet_rdma_device *ndev, ndev 338 drivers/nvme/target/rdma.c ret = nvmet_rdma_alloc_cmd(ndev, cmds + i, admin); ndev 347 drivers/nvme/target/rdma.c nvmet_rdma_free_cmd(ndev, cmds + i, admin); ndev 353 drivers/nvme/target/rdma.c static void nvmet_rdma_free_cmds(struct nvmet_rdma_device *ndev, ndev 359 drivers/nvme/target/rdma.c nvmet_rdma_free_cmd(ndev, cmds + i, admin); ndev 363 drivers/nvme/target/rdma.c static int nvmet_rdma_alloc_rsp(struct nvmet_rdma_device *ndev, ndev 371 drivers/nvme/target/rdma.c r->send_sge.addr = ib_dma_map_single(ndev->device, r->req.cqe, ndev 373 drivers/nvme/target/rdma.c if (ib_dma_mapping_error(ndev->device, r->send_sge.addr)) ndev 376 drivers/nvme/target/rdma.c r->req.p2p_client = &ndev->device->dev; ndev 378 drivers/nvme/target/rdma.c r->send_sge.lkey = ndev->pd->local_dma_lkey; ndev 397 drivers/nvme/target/rdma.c static void nvmet_rdma_free_rsp(struct nvmet_rdma_device *ndev, ndev 400 drivers/nvme/target/rdma.c ib_dma_unmap_single(ndev->device, r->send_sge.addr, ndev 408 drivers/nvme/target/rdma.c struct nvmet_rdma_device *ndev = queue->dev; ndev 420 drivers/nvme/target/rdma.c ret = nvmet_rdma_alloc_rsp(ndev, rsp); ndev 434 drivers/nvme/target/rdma.c nvmet_rdma_free_rsp(ndev, rsp); ndev 443 drivers/nvme/target/rdma.c struct nvmet_rdma_device *ndev = queue->dev; ndev 450 drivers/nvme/target/rdma.c nvmet_rdma_free_rsp(ndev, rsp); ndev 455 drivers/nvme/target/rdma.c static int nvmet_rdma_post_recv(struct nvmet_rdma_device *ndev, ndev 460 drivers/nvme/target/rdma.c ib_dma_sync_single_for_device(ndev->device, ndev 464 drivers/nvme/target/rdma.c if (ndev->srq) ndev 465 drivers/nvme/target/rdma.c ret = ib_post_srq_recv(ndev->srq, &cmd->wr, NULL); ndev 843 drivers/nvme/target/rdma.c static void nvmet_rdma_destroy_srq(struct nvmet_rdma_device *ndev) ndev 845 drivers/nvme/target/rdma.c if (!ndev->srq) ndev 848 drivers/nvme/target/rdma.c nvmet_rdma_free_cmds(ndev, ndev->srq_cmds, ndev->srq_size, false); ndev 849 drivers/nvme/target/rdma.c ib_destroy_srq(ndev->srq); ndev 852 drivers/nvme/target/rdma.c static int nvmet_rdma_init_srq(struct nvmet_rdma_device *ndev) ndev 862 drivers/nvme/target/rdma.c srq_attr.attr.max_sge = 1 + ndev->inline_page_count; ndev 865 drivers/nvme/target/rdma.c srq = ib_create_srq(ndev->pd, &srq_attr); ndev 875 drivers/nvme/target/rdma.c ndev->srq_cmds = nvmet_rdma_alloc_cmds(ndev, srq_size, false); ndev 876 drivers/nvme/target/rdma.c if (IS_ERR(ndev->srq_cmds)) { ndev 877 drivers/nvme/target/rdma.c ret = PTR_ERR(ndev->srq_cmds); ndev 881 drivers/nvme/target/rdma.c ndev->srq = srq; ndev 882 drivers/nvme/target/rdma.c ndev->srq_size = srq_size; ndev 885 drivers/nvme/target/rdma.c ret = nvmet_rdma_post_recv(ndev, &ndev->srq_cmds[i]); ndev 893 drivers/nvme/target/rdma.c nvmet_rdma_free_cmds(ndev, ndev->srq_cmds, ndev->srq_size, false); ndev 901 drivers/nvme/target/rdma.c struct nvmet_rdma_device *ndev = ndev 905 drivers/nvme/target/rdma.c list_del(&ndev->entry); ndev 908 drivers/nvme/target/rdma.c nvmet_rdma_destroy_srq(ndev); ndev 909 drivers/nvme/target/rdma.c ib_dealloc_pd(ndev->pd); ndev 911 drivers/nvme/target/rdma.c kfree(ndev); ndev 918 drivers/nvme/target/rdma.c struct nvmet_rdma_device *ndev; ndev 924 drivers/nvme/target/rdma.c list_for_each_entry(ndev, &device_list, entry) { ndev 925 drivers/nvme/target/rdma.c if (ndev->device->node_guid == cm_id->device->node_guid && ndev 926 drivers/nvme/target/rdma.c kref_get_unless_zero(&ndev->ref)) ndev 930 drivers/nvme/target/rdma.c ndev = kzalloc(sizeof(*ndev), GFP_KERNEL); ndev 931 drivers/nvme/target/rdma.c if (!ndev) ndev 944 drivers/nvme/target/rdma.c ndev->inline_data_size = port->inline_data_size; ndev 945 drivers/nvme/target/rdma.c ndev->inline_page_count = inline_page_count; ndev 946 drivers/nvme/target/rdma.c ndev->device = cm_id->device; ndev 947 drivers/nvme/target/rdma.c kref_init(&ndev->ref); ndev 949 drivers/nvme/target/rdma.c ndev->pd = ib_alloc_pd(ndev->device, 0); ndev 950 drivers/nvme/target/rdma.c if (IS_ERR(ndev->pd)) ndev 954 drivers/nvme/target/rdma.c ret = nvmet_rdma_init_srq(ndev); ndev 959 drivers/nvme/target/rdma.c list_add(&ndev->entry, &device_list); ndev 962 drivers/nvme/target/rdma.c pr_debug("added %s.\n", ndev->device->name); ndev 963 drivers/nvme/target/rdma.c return ndev; ndev 966 drivers/nvme/target/rdma.c ib_dealloc_pd(ndev->pd); ndev 968 drivers/nvme/target/rdma.c kfree(ndev); ndev 977 drivers/nvme/target/rdma.c struct nvmet_rdma_device *ndev = queue->dev; ndev 985 drivers/nvme/target/rdma.c queue->idx % ndev->device->num_comp_vectors; ndev 992 drivers/nvme/target/rdma.c queue->cq = ib_alloc_cq(ndev->device, queue, ndev 1012 drivers/nvme/target/rdma.c qp_attr.cap.max_send_sge = max(ndev->device->attrs.max_sge_rd, ndev 1013 drivers/nvme/target/rdma.c ndev->device->attrs.max_send_sge); ndev 1015 drivers/nvme/target/rdma.c if (ndev->srq) { ndev 1016 drivers/nvme/target/rdma.c qp_attr.srq = ndev->srq; ndev 1020 drivers/nvme/target/rdma.c qp_attr.cap.max_recv_sge = 1 + ndev->inline_page_count; ndev 1023 drivers/nvme/target/rdma.c ret = rdma_create_qp(queue->cm_id, ndev->pd, &qp_attr); ndev 1035 drivers/nvme/target/rdma.c if (!ndev->srq) { ndev 1038 drivers/nvme/target/rdma.c ret = nvmet_rdma_post_recv(ndev, &queue->cmds[i]); ndev 1137 drivers/nvme/target/rdma.c nvmet_rdma_alloc_queue(struct nvmet_rdma_device *ndev, ndev 1165 drivers/nvme/target/rdma.c queue->dev = ndev; ndev 1189 drivers/nvme/target/rdma.c if (!ndev->srq) { ndev 1190 drivers/nvme/target/rdma.c queue->cmds = nvmet_rdma_alloc_cmds(ndev, ndev 1210 drivers/nvme/target/rdma.c if (!ndev->srq) { ndev 1270 drivers/nvme/target/rdma.c struct nvmet_rdma_device *ndev; ndev 1274 drivers/nvme/target/rdma.c ndev = nvmet_rdma_find_get_device(cm_id); ndev 1275 drivers/nvme/target/rdma.c if (!ndev) { ndev 1280 drivers/nvme/target/rdma.c queue = nvmet_rdma_alloc_queue(ndev, cm_id, event); ndev 1306 drivers/nvme/target/rdma.c kref_put(&ndev->ref, nvmet_rdma_free_dev); ndev 1620 drivers/nvme/target/rdma.c struct nvmet_rdma_device *ndev; ndev 1624 drivers/nvme/target/rdma.c list_for_each_entry(ndev, &device_list, entry) { ndev 1625 drivers/nvme/target/rdma.c if (ndev->device == ib_device) { ndev 75 drivers/parport/parport_cs.c int ndev; ndev 155 drivers/parport/parport_cs.c info->ndev = 1; ndev 172 drivers/parport/parport_cs.c if (info->ndev) { ndev 176 drivers/parport/parport_cs.c info->ndev = 0; ndev 667 drivers/pcmcia/cistpl.c device->ndev = 0; ndev 710 drivers/pcmcia/cistpl.c device->ndev++; ndev 37 drivers/s390/net/ctcm_sysfs.c struct net_device *ndev; ndev 42 drivers/s390/net/ctcm_sysfs.c ndev = priv->channel[CTCM_READ]->netdev; ndev 43 drivers/s390/net/ctcm_sysfs.c if (!(priv && priv->channel[CTCM_READ] && ndev)) { ndev 57 drivers/s390/net/ctcm_sysfs.c if ((ndev->flags & IFF_RUNNING) && ndev 58 drivers/s390/net/ctcm_sysfs.c (bs1 < (ndev->mtu + LL_HEADER_LENGTH + 2))) ndev 63 drivers/s390/net/ctcm_sysfs.c if (!(ndev->flags & IFF_RUNNING)) ndev 64 drivers/s390/net/ctcm_sysfs.c ndev->mtu = bs1 - LL_HEADER_LENGTH - 2; ndev 68 drivers/s390/net/ctcm_sysfs.c CTCM_DBF_DEV(SETUP, ndev, buf); ndev 72 drivers/s390/net/ctcm_sysfs.c CTCM_DBF_DEV(SETUP, ndev, "buff_err"); ndev 1299 drivers/s390/net/netiucv.c struct net_device *ndev = NULL; ndev 1304 drivers/s390/net/netiucv.c ndev = priv->conn->netdev; ndev 1305 drivers/s390/net/netiucv.c if (!ndev) ndev 1307 drivers/s390/net/netiucv.c netif_device_detach(ndev); ndev 1309 drivers/s390/net/netiucv.c rc = netiucv_close(ndev); ndev 1323 drivers/s390/net/netiucv.c struct net_device *ndev = NULL; ndev 1328 drivers/s390/net/netiucv.c ndev = priv->conn->netdev; ndev 1329 drivers/s390/net/netiucv.c if (!ndev) ndev 1334 drivers/s390/net/netiucv.c rc = netiucv_open(ndev); ndev 1339 drivers/s390/net/netiucv.c netif_device_attach(ndev); ndev 1480 drivers/s390/net/netiucv.c struct net_device *ndev = priv->conn->netdev; ndev 1492 drivers/s390/net/netiucv.c (ndev->flags & (IFF_UP | IFF_RUNNING))) { ndev 1500 drivers/s390/net/netiucv.c !strncmp(userdata, cp->userdata, 17) && cp->netdev != ndev) { ndev 1528 drivers/s390/net/netiucv.c struct net_device *ndev = priv->conn->netdev; ndev 1549 drivers/s390/net/netiucv.c if ((ndev->flags & IFF_RUNNING) && ndev 1550 drivers/s390/net/netiucv.c (bs1 < (ndev->mtu + NETIUCV_HDRLEN + 2))) { ndev 1564 drivers/s390/net/netiucv.c if (!(ndev->flags & IFF_RUNNING)) ndev 1565 drivers/s390/net/netiucv.c ndev->mtu = bs1 - NETIUCV_HDRLEN - NETIUCV_HDRLEN; ndev 1799 drivers/s390/net/netiucv.c static int netiucv_register_device(struct net_device *ndev) ndev 1801 drivers/s390/net/netiucv.c struct netiucv_priv *priv = netdev_priv(ndev); ndev 1808 drivers/s390/net/netiucv.c dev_set_name(dev, "net%s", ndev->name); ndev 2075 drivers/s390/net/netiucv.c struct net_device *ndev; ndev 2097 drivers/s390/net/netiucv.c ndev = cp->netdev; ndev 2098 drivers/s390/net/netiucv.c priv = netdev_priv(ndev); ndev 2100 drivers/s390/net/netiucv.c if (strncmp(name, ndev->name, count)) ndev 2103 drivers/s390/net/netiucv.c if (ndev->flags & (IFF_UP | IFF_RUNNING)) { ndev 2110 drivers/s390/net/netiucv.c unregister_netdev(ndev); ndev 2143 drivers/s390/net/netiucv.c struct net_device *ndev; ndev 2151 drivers/s390/net/netiucv.c ndev = cp->netdev; ndev 2152 drivers/s390/net/netiucv.c priv = netdev_priv(ndev); ndev 2155 drivers/s390/net/netiucv.c unregister_netdev(ndev); ndev 383 drivers/s390/net/qeth_core_sys.c struct net_device *ndev; ndev 420 drivers/s390/net/qeth_core_sys.c ndev = qeth_clone_netdev(card->dev); ndev 421 drivers/s390/net/qeth_core_sys.c if (!ndev) { ndev 429 drivers/s390/net/qeth_core_sys.c card->dev = ndev; ndev 1017 drivers/scsi/aha1542.c static int aha1542_isa_match(struct device *pdev, unsigned int ndev) ndev 1019 drivers/scsi/aha1542.c struct Scsi_Host *sh = aha1542_hw_init(&driver_template, pdev, ndev); ndev 1029 drivers/scsi/aha1542.c unsigned int ndev) ndev 938 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c cxgb3i_set_private_ipv4addr(chba->ndev, 0); ndev 942 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c cxgb3i_get_private_ipv4addr(chba->ndev)) { ndev 943 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c cxgb3i_set_private_ipv4addr(chba->ndev, chba->ipv4addr); ndev 945 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c chba->ndev->name, &chba->ipv4addr); ndev 947 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c } else if (cxgb3i_get_private_ipv4addr(chba->ndev)) { ndev 950 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c cxgb3i_set_private_ipv4addr(chba->ndev, 0); ndev 959 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c struct net_device *ndev = cdev->ports[csk->port_id]; ndev 971 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c csk->l2t = t3_l2t_get(t3dev, dst, ndev, ndev 1216 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c struct net_device *ndev = cdev->ports[0]; ndev 1225 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c ndev->name, err); ndev 1230 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c ndev->name, uinfo.llimit, uinfo.ulimit); ndev 1238 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c ndev->name, uinfo.llimit, uinfo.ulimit, ppmax, uinfo.tagmask, ndev 1259 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c ndev->name, err); ndev 27 drivers/scsi/cxgbi/cxgb3i/cxgb3i.h static inline unsigned int cxgb3i_get_private_ipv4addr(struct net_device *ndev) ndev 29 drivers/scsi/cxgbi/cxgb3i/cxgb3i.h return ((struct port_info *)(netdev_priv(ndev)))->iscsi_ipv4addr; ndev 32 drivers/scsi/cxgbi/cxgb3i/cxgb3i.h static inline void cxgb3i_set_private_ipv4addr(struct net_device *ndev, ndev 35 drivers/scsi/cxgbi/cxgb3i/cxgb3i.h struct port_info *pi = (struct port_info *)netdev_priv(ndev); ndev 40 drivers/scsi/cxgbi/cxgb3i/cxgb3i.h memcpy(pi->iscsic.mac_addr, ndev->dev_addr, ETH_ALEN); ndev 1608 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c struct net_device *ndev = csk->cdev->ports[csk->port_id]; ndev 1625 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c cxgb4_clip_release(ndev, ndev 1642 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c static inline u8 get_iscsi_dcb_state(struct net_device *ndev) ndev 1644 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c return ndev->dcbnl_ops->getstate(ndev); ndev 1654 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c static u8 get_iscsi_dcb_priority(struct net_device *ndev) ndev 1663 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c rv = (int)ndev->dcbnl_ops->getcap(ndev, DCB_CAP_ATTR_DCBX, &caps); ndev 1669 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c rv = dcb_ieee_getapp_mask(ndev, &iscsi_dcb_app); ndev 1672 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c rv = dcb_ieee_getapp_mask(ndev, &iscsi_dcb_app); ndev 1676 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c rv = dcb_getapp(ndev, &iscsi_dcb_app); ndev 1689 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c struct net_device *ndev = cdev->ports[csk->port_id]; ndev 1719 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c pr_err("%s, can't get neighbour of csk->dst.\n", ndev->name); ndev 1728 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c pr_err("%s, NO atid available.\n", ndev->name); ndev 1735 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c if (get_iscsi_dcb_state(ndev)) ndev 1736 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c priority = get_iscsi_dcb_priority(ndev); ndev 1739 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c csk->l2t = cxgb4_l2t_get(lldi->l2t, n, ndev, priority); ndev 1741 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c csk->l2t = cxgb4_l2t_get(lldi->l2t, n, ndev, 0); ndev 1744 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c pr_err("%s, cannot alloc l2t.\n", ndev->name); ndev 1751 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c cxgb4_clip_get(ndev, (const u32 *)&csk->saddr6.sin6_addr, 1); ndev 1780 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c csk->tx_chan = cxgb4_port_chan(ndev); ndev 1781 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c csk->smac_idx = ((struct port_info *)netdev_priv(ndev))->smt_idx; ndev 1783 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c csk->txq_idx = cxgb4_port_idx(ndev) * step; ndev 1785 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c rxq_idx = (cxgb4_port_idx(ndev) * step) + (cdev->rxq_idx_cntr % step); ndev 1788 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c linkspeed = ((struct port_info *)netdev_priv(ndev))->link_cfg.speed; ndev 1817 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c pr_err("%s, try_module_get failed.\n", ndev->name); ndev 1835 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c cxgb4_clip_release(ndev, ndev 1925 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c __func__, ppm->ndev->name, idx, npods); ndev 2074 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c struct net_device *ndev = cdev->ports[0]; ndev 2080 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c pr_warn("%s, iscsi NOT enabled, check config!\n", ndev->name); ndev 2260 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c struct net_device *ndev; ndev 2290 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c ndev = dev_get_by_index(&init_net, iscsi_app->ifindex); ndev 2291 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c if (!ndev) ndev 2294 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c cdev = cxgbi_device_find_by_netdev_rcu(ndev, &port); ndev 2296 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c dev_put(ndev); ndev 220 drivers/scsi/cxgbi/libcxgbi.c struct cxgbi_device *cxgbi_device_find_by_netdev(struct net_device *ndev, ndev 227 drivers/scsi/cxgbi/libcxgbi.c if (is_vlan_dev(ndev)) { ndev 228 drivers/scsi/cxgbi/libcxgbi.c vdev = ndev; ndev 229 drivers/scsi/cxgbi/libcxgbi.c ndev = vlan_dev_real_dev(ndev); ndev 231 drivers/scsi/cxgbi/libcxgbi.c "vlan dev %s -> %s.\n", vdev->name, ndev->name); ndev 237 drivers/scsi/cxgbi/libcxgbi.c if (ndev == cdev->ports[i]) { ndev 248 drivers/scsi/cxgbi/libcxgbi.c "ndev 0x%p, %s, NO match found.\n", ndev, ndev->name); ndev 253 drivers/scsi/cxgbi/libcxgbi.c struct cxgbi_device *cxgbi_device_find_by_netdev_rcu(struct net_device *ndev, ndev 260 drivers/scsi/cxgbi/libcxgbi.c if (is_vlan_dev(ndev)) { ndev 261 drivers/scsi/cxgbi/libcxgbi.c vdev = ndev; ndev 262 drivers/scsi/cxgbi/libcxgbi.c ndev = vlan_dev_real_dev(ndev); ndev 263 drivers/scsi/cxgbi/libcxgbi.c pr_info("vlan dev %s -> %s.\n", vdev->name, ndev->name); ndev 269 drivers/scsi/cxgbi/libcxgbi.c if (ndev == cdev->ports[i]) { ndev 281 drivers/scsi/cxgbi/libcxgbi.c "ndev 0x%p, %s, NO match found.\n", ndev, ndev->name); ndev 286 drivers/scsi/cxgbi/libcxgbi.c static struct cxgbi_device *cxgbi_device_find_by_mac(struct net_device *ndev, ndev 293 drivers/scsi/cxgbi/libcxgbi.c if (is_vlan_dev(ndev)) { ndev 294 drivers/scsi/cxgbi/libcxgbi.c vdev = ndev; ndev 295 drivers/scsi/cxgbi/libcxgbi.c ndev = vlan_dev_real_dev(ndev); ndev 296 drivers/scsi/cxgbi/libcxgbi.c pr_info("vlan dev %s -> %s.\n", vdev->name, ndev->name); ndev 302 drivers/scsi/cxgbi/libcxgbi.c if (!memcmp(ndev->dev_addr, cdev->ports[i]->dev_addr, ndev 315 drivers/scsi/cxgbi/libcxgbi.c ndev, ndev->name); ndev 366 drivers/scsi/cxgbi/libcxgbi.c chba->ndev = cdev->ports[i]; ndev 606 drivers/scsi/cxgbi/libcxgbi.c struct net_device *ndev; ndev 631 drivers/scsi/cxgbi/libcxgbi.c ndev = n->dev; ndev 636 drivers/scsi/cxgbi/libcxgbi.c ndev->name); ndev 641 drivers/scsi/cxgbi/libcxgbi.c if (ndev->flags & IFF_LOOPBACK) { ndev 642 drivers/scsi/cxgbi/libcxgbi.c ndev = ip_dev_find(&init_net, daddr->sin_addr.s_addr); ndev 643 drivers/scsi/cxgbi/libcxgbi.c if (!ndev) { ndev 647 drivers/scsi/cxgbi/libcxgbi.c mtu = ndev->mtu; ndev 649 drivers/scsi/cxgbi/libcxgbi.c n->dev->name, ndev->name, mtu); ndev 652 drivers/scsi/cxgbi/libcxgbi.c if (!(ndev->flags & IFF_UP) || !netif_carrier_ok(ndev)) { ndev 653 drivers/scsi/cxgbi/libcxgbi.c pr_info("%s interface not up.\n", ndev->name); ndev 658 drivers/scsi/cxgbi/libcxgbi.c cdev = cxgbi_device_find_by_netdev(ndev, &port); ndev 660 drivers/scsi/cxgbi/libcxgbi.c cdev = cxgbi_device_find_by_mac(ndev, &port); ndev 663 drivers/scsi/cxgbi/libcxgbi.c &daddr->sin_addr.s_addr, ndev->name); ndev 670 drivers/scsi/cxgbi/libcxgbi.c port, ndev->name, cdev); ndev 722 drivers/scsi/cxgbi/libcxgbi.c struct net_device *ndev; ndev 753 drivers/scsi/cxgbi/libcxgbi.c ndev = n->dev; ndev 755 drivers/scsi/cxgbi/libcxgbi.c if (!(ndev->flags & IFF_UP) || !netif_carrier_ok(ndev)) { ndev 756 drivers/scsi/cxgbi/libcxgbi.c pr_info("%s interface not up.\n", ndev->name); ndev 764 drivers/scsi/cxgbi/libcxgbi.c ntohs(daddr6->sin6_port), ndev->name); ndev 769 drivers/scsi/cxgbi/libcxgbi.c cdev = cxgbi_device_find_by_netdev(ndev, &port); ndev 771 drivers/scsi/cxgbi/libcxgbi.c cdev = cxgbi_device_find_by_mac(ndev, &port); ndev 774 drivers/scsi/cxgbi/libcxgbi.c daddr6->sin6_addr.s6_addr, ndev->name); ndev 781 drivers/scsi/cxgbi/libcxgbi.c ndev->name, cdev); ndev 1896 drivers/scsi/cxgbi/libcxgbi.c struct net_device *ndev = cdev->ports[csk->port_id]; ndev 1913 drivers/scsi/cxgbi/libcxgbi.c ndev->stats.tx_dropped++; ndev 1926 drivers/scsi/cxgbi/libcxgbi.c ndev->stats.tx_dropped++; ndev 2481 drivers/scsi/cxgbi/libcxgbi.c if (!chba->ndev) { ndev 2489 drivers/scsi/cxgbi/libcxgbi.c shost, chba, chba->ndev->name, param, buflen, buf); ndev 2496 drivers/scsi/cxgbi/libcxgbi.c "hba %s, req. ipv4 %pI4.\n", chba->ndev->name, &addr); ndev 2515 drivers/scsi/cxgbi/libcxgbi.c if (!chba->ndev) { ndev 2523 drivers/scsi/cxgbi/libcxgbi.c shost, chba, chba->ndev->name, param); ndev 2527 drivers/scsi/cxgbi/libcxgbi.c len = sysfs_format_mac(buf, chba->ndev->dev_addr, 6); ndev 2530 drivers/scsi/cxgbi/libcxgbi.c len = sprintf(buf, "%s\n", chba->ndev->name); ndev 2541 drivers/scsi/cxgbi/libcxgbi.c "hba %s, addr %s.\n", chba->ndev->name, buf); ndev 2596 drivers/scsi/cxgbi/libcxgbi.c if (ifindex != hba->ndev->ifindex) { ndev 2599 drivers/scsi/cxgbi/libcxgbi.c ifindex = hba->ndev->ifindex; ndev 2639 drivers/scsi/cxgbi/libcxgbi.c ep, cep, csk, hba, hba->ndev->name); ndev 438 drivers/scsi/cxgbi/libcxgbi.h struct net_device *ndev; ndev 562 drivers/scsi/cxgbi/libcxgbi.h chba->ndev->name); ndev 86 drivers/scsi/fdomain_isa.c static int fdomain_isa_match(struct device *dev, unsigned int ndev) ndev 96 drivers/scsi/fdomain_isa.c if (ndev < ADDRESS_COUNT) { /* scan supported ISA BIOS addresses */ ndev 97 drivers/scsi/fdomain_isa.c p = ioremap(addresses[ndev], FDOMAIN_BIOS_SIZE); ndev 108 drivers/scsi/fdomain_isa.c bios_base = addresses[ndev]; ndev 125 drivers/scsi/fdomain_isa.c base = ports[ndev - ADDRESS_COUNT]; ndev 152 drivers/scsi/fdomain_isa.c static int fdomain_isa_param_match(struct device *dev, unsigned int ndev) ndev 155 drivers/scsi/fdomain_isa.c int irq_ = irq[ndev]; ndev 157 drivers/scsi/fdomain_isa.c if (!io[ndev]) ndev 160 drivers/scsi/fdomain_isa.c if (!request_region(io[ndev], FDOMAIN_REGION_SIZE, "fdomain_isa")) { ndev 161 drivers/scsi/fdomain_isa.c dev_err(dev, "base 0x%x already in use", io[ndev]); ndev 166 drivers/scsi/fdomain_isa.c irq_ = irqs[(inb(io[ndev] + REG_CFG1) & CFG1_IRQ_MASK) >> 1]; ndev 168 drivers/scsi/fdomain_isa.c sh = fdomain_create(io[ndev], irq_, scsi_id[ndev], dev); ndev 170 drivers/scsi/fdomain_isa.c dev_err(dev, "controller not found at base 0x%x", io[ndev]); ndev 171 drivers/scsi/fdomain_isa.c release_region(io[ndev], FDOMAIN_REGION_SIZE); ndev 179 drivers/scsi/fdomain_isa.c static int fdomain_isa_remove(struct device *dev, unsigned int ndev) ndev 709 drivers/scsi/g_NCR5380.c static int generic_NCR5380_isa_match(struct device *pdev, unsigned int ndev) ndev 711 drivers/scsi/g_NCR5380.c int ret = generic_NCR5380_init_one(&driver_template, pdev, base[ndev], ndev 712 drivers/scsi/g_NCR5380.c irq[ndev], card[ndev]); ndev 714 drivers/scsi/g_NCR5380.c if (base[ndev]) ndev 716 drivers/scsi/g_NCR5380.c base[ndev]); ndev 724 drivers/scsi/g_NCR5380.c unsigned int ndev) ndev 75 drivers/staging/netlogic/xlr_net.c netdev_err(priv->ndev, "Send to RFR failed in RX path\n"); ndev 101 drivers/staging/netlogic/xlr_net.c struct net_device *ndev; ndev 123 drivers/staging/netlogic/xlr_net.c ndev = skb->dev; ndev 124 drivers/staging/netlogic/xlr_net.c priv = netdev_priv(ndev); ndev 146 drivers/staging/netlogic/xlr_net.c static int xlr_get_link_ksettings(struct net_device *ndev, ndev 149 drivers/staging/netlogic/xlr_net.c struct xlr_net_priv *priv = netdev_priv(ndev); ndev 160 drivers/staging/netlogic/xlr_net.c static int xlr_set_link_ksettings(struct net_device *ndev, ndev 163 drivers/staging/netlogic/xlr_net.c struct xlr_net_priv *priv = netdev_priv(ndev); ndev 179 drivers/staging/netlogic/xlr_net.c static int xlr_net_fill_rx_ring(struct net_device *ndev) ndev 182 drivers/staging/netlogic/xlr_net.c struct xlr_net_priv *priv = netdev_priv(ndev); ndev 191 drivers/staging/netlogic/xlr_net.c netdev_info(ndev, "Rx ring setup done\n"); ndev 195 drivers/staging/netlogic/xlr_net.c static int xlr_net_open(struct net_device *ndev) ndev 198 drivers/staging/netlogic/xlr_net.c struct xlr_net_priv *priv = netdev_priv(ndev); ndev 212 drivers/staging/netlogic/xlr_net.c netif_tx_start_all_queues(ndev); ndev 217 drivers/staging/netlogic/xlr_net.c static int xlr_net_stop(struct net_device *ndev) ndev 219 drivers/staging/netlogic/xlr_net.c struct xlr_net_priv *priv = netdev_priv(ndev); ndev 223 drivers/staging/netlogic/xlr_net.c netif_tx_stop_all_queues(ndev); ndev 247 drivers/staging/netlogic/xlr_net.c struct net_device *ndev) ndev 250 drivers/staging/netlogic/xlr_net.c struct xlr_net_priv *priv = netdev_priv(ndev); ndev 263 drivers/staging/netlogic/xlr_net.c static void xlr_hw_set_mac_addr(struct net_device *ndev) ndev 265 drivers/staging/netlogic/xlr_net.c struct xlr_net_priv *priv = netdev_priv(ndev); ndev 269 drivers/staging/netlogic/xlr_net.c ((ndev->dev_addr[5] << 24) | (ndev->dev_addr[4] << 16) | ndev 270 drivers/staging/netlogic/xlr_net.c (ndev->dev_addr[3] << 8) | (ndev->dev_addr[2]))); ndev 272 drivers/staging/netlogic/xlr_net.c ((ndev->dev_addr[1] << 24) | (ndev->dev_addr[0] << 16))); ndev 289 drivers/staging/netlogic/xlr_net.c static int xlr_net_set_mac_addr(struct net_device *ndev, void *data) ndev 293 drivers/staging/netlogic/xlr_net.c err = eth_mac_addr(ndev, data); ndev 296 drivers/staging/netlogic/xlr_net.c xlr_hw_set_mac_addr(ndev); ndev 300 drivers/staging/netlogic/xlr_net.c static void xlr_set_rx_mode(struct net_device *ndev) ndev 302 drivers/staging/netlogic/xlr_net.c struct xlr_net_priv *priv = netdev_priv(ndev); ndev 307 drivers/staging/netlogic/xlr_net.c if (ndev->flags & IFF_PROMISC) { ndev 320 drivers/staging/netlogic/xlr_net.c static void xlr_stats(struct net_device *ndev, struct rtnl_link_stats64 *stats) ndev 322 drivers/staging/netlogic/xlr_net.c struct xlr_net_priv *priv = netdev_priv(ndev); ndev 394 drivers/staging/netlogic/xlr_net.c dev_dbg(&priv->ndev->dev, "Allocated spill %d bytes at %lx\n", ndev 510 drivers/staging/netlogic/xlr_net.c err = xlr_net_fill_rx_ring(priv->ndev); ndev 560 drivers/staging/netlogic/xlr_net.c dev_dbg(&priv->ndev->dev, "Table[%d] b1=%d b2=%d c1=%d c2=%d\n", ndev 670 drivers/staging/netlogic/xlr_net.c dev_dbg(&priv->ndev->dev, "mii_write phy %d : %d <- %x [%x]\n", ndev 681 drivers/staging/netlogic/xlr_net.c dev_dbg(&priv->ndev->dev, "mii_read phy %d : %d [%x]\n", ndev 765 drivers/staging/netlogic/xlr_net.c static void xlr_gmac_link_adjust(struct net_device *ndev) ndev 767 drivers/staging/netlogic/xlr_net.c struct xlr_net_priv *priv = netdev_priv(ndev); ndev 793 drivers/staging/netlogic/xlr_net.c phydev = phy_connect(priv->ndev, phydev_name(phydev), ndev 948 drivers/staging/netlogic/xlr_net.c struct net_device *ndev; ndev 967 drivers/staging/netlogic/xlr_net.c ndev = alloc_etherdev_mq(sizeof(struct xlr_net_priv), 32); ndev 968 drivers/staging/netlogic/xlr_net.c if (!ndev) { ndev 974 drivers/staging/netlogic/xlr_net.c priv = netdev_priv(ndev); ndev 976 drivers/staging/netlogic/xlr_net.c priv->ndev = ndev; ndev 986 drivers/staging/netlogic/xlr_net.c adapter->netdev[port] = ndev; ndev 996 drivers/staging/netlogic/xlr_net.c ndev->irq = res->start; ndev 1005 drivers/staging/netlogic/xlr_net.c ndev->netdev_ops = &xlr_netdev_ops; ndev 1006 drivers/staging/netlogic/xlr_net.c ndev->watchdog_timeo = HZ; ndev 1009 drivers/staging/netlogic/xlr_net.c eth_hw_addr_random(ndev); ndev 1010 drivers/staging/netlogic/xlr_net.c xlr_hw_set_mac_addr(ndev); ndev 1011 drivers/staging/netlogic/xlr_net.c xlr_set_rx_mode(ndev); ndev 1014 drivers/staging/netlogic/xlr_net.c ndev->ethtool_ops = &xlr_ethtool_ops; ndev 1015 drivers/staging/netlogic/xlr_net.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 1038 drivers/staging/netlogic/xlr_net.c err = register_netdev(ndev); ndev 1053 drivers/staging/netlogic/xlr_net.c free_netdev(ndev); ndev 1061 drivers/staging/netlogic/xlr_net.c unregister_netdev(priv->ndev); ndev 1064 drivers/staging/netlogic/xlr_net.c free_netdev(priv->ndev); ndev 1052 drivers/staging/netlogic/xlr_net.h struct net_device *ndev; ndev 2067 drivers/staging/qlge/qlge.h struct net_device *ndev; /* Parent NET device */ ndev 2239 drivers/staging/qlge/qlge.h void ql_set_ethtool_ops(struct net_device *ndev); ndev 2266 drivers/staging/qlge/qlge.h netdev_tx_t ql_lb_send(struct sk_buff *skb, struct net_device *ndev); ndev 432 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, ndev 444 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, ndev 468 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, ndev 725 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, "No memory allocated\n"); ndev 737 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, ndev 899 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, ndev 1165 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, ndev 1173 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, ndev 1186 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, ndev 1201 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, ndev 1215 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, "Don't own firmware!\n"); ndev 1219 drivers/staging/qlge/qlge_dbg.c if (!netif_running(qdev->ndev)) { ndev 1220 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, ifup, qdev->ndev, ndev 1319 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, "coredump failed!\n"); ndev 1336 drivers/staging/qlge/qlge_dbg.c netif_printk(qdev, drv, KERN_DEBUG, qdev->ndev, ndev 1363 drivers/staging/qlge/qlge_dbg.c qdev->ndev->name, i, ndev 1372 drivers/staging/qlge/qlge_dbg.c pr_err("%s: %s = 0x%.08x\n", qdev->ndev->name, #reg, data); \ ndev 1421 drivers/staging/qlge/qlge_dbg.c qdev->ndev->name, i, value[1], value[0], ndev 1434 drivers/staging/qlge/qlge_dbg.c qdev->ndev->name, i, value[1], value[0]); ndev 1456 drivers/staging/qlge/qlge_dbg.c qdev->ndev->name, i, value); ndev 1597 drivers/staging/qlge/qlge_dbg.c DUMP_QDEV_FIELD(qdev, "%p", ndev); ndev 192 drivers/staging/qlge/qlge_ethtool.c if (!netif_running(qdev->ndev)) ndev 212 drivers/staging/qlge/qlge_ethtool.c netif_err(qdev, ifup, qdev->ndev, ndev 234 drivers/staging/qlge/qlge_ethtool.c netif_err(qdev, ifup, qdev->ndev, ndev 252 drivers/staging/qlge/qlge_ethtool.c netif_err(qdev, drv, qdev->ndev, ndev 261 drivers/staging/qlge/qlge_ethtool.c netif_err(qdev, drv, qdev->ndev, ndev 275 drivers/staging/qlge/qlge_ethtool.c netif_err(qdev, drv, qdev->ndev, ndev 292 drivers/staging/qlge/qlge_ethtool.c netif_err(qdev, drv, qdev->ndev, ndev 306 drivers/staging/qlge/qlge_ethtool.c netif_err(qdev, drv, qdev->ndev, ndev 319 drivers/staging/qlge/qlge_ethtool.c netif_err(qdev, drv, qdev->ndev, ndev 362 drivers/staging/qlge/qlge_ethtool.c ql_get_ethtool_stats(struct net_device *ndev, ndev 365 drivers/staging/qlge/qlge_ethtool.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 379 drivers/staging/qlge/qlge_ethtool.c static int ql_get_link_ksettings(struct net_device *ndev, ndev 382 drivers/staging/qlge/qlge_ethtool.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 411 drivers/staging/qlge/qlge_ethtool.c static void ql_get_drvinfo(struct net_device *ndev, ndev 414 drivers/staging/qlge/qlge_ethtool.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 427 drivers/staging/qlge/qlge_ethtool.c static void ql_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) ndev 429 drivers/staging/qlge/qlge_ethtool.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 440 drivers/staging/qlge/qlge_ethtool.c static int ql_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) ndev 442 drivers/staging/qlge/qlge_ethtool.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 448 drivers/staging/qlge/qlge_ethtool.c netif_info(qdev, drv, qdev->ndev, ndev 456 drivers/staging/qlge/qlge_ethtool.c netif_info(qdev, drv, qdev->ndev, "Set wol option 0x%x\n", qdev->wol); ndev 460 drivers/staging/qlge/qlge_ethtool.c static int ql_set_phys_id(struct net_device *ndev, ndev 464 drivers/staging/qlge/qlge_ethtool.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 489 drivers/staging/qlge/qlge_ethtool.c if (netif_carrier_ok(qdev->ndev)) { ndev 491 drivers/staging/qlge/qlge_ethtool.c netif_carrier_off(qdev->ndev); ndev 503 drivers/staging/qlge/qlge_ethtool.c netif_carrier_on(qdev->ndev); ndev 539 drivers/staging/qlge/qlge_ethtool.c skb = netdev_alloc_skb(qdev->ndev, size); ndev 546 drivers/staging/qlge/qlge_ethtool.c rc = ql_lb_send(skb, qdev->ndev); ndev 568 drivers/staging/qlge/qlge_ethtool.c static void ql_self_test(struct net_device *ndev, ndev 571 drivers/staging/qlge/qlge_ethtool.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 575 drivers/staging/qlge/qlge_ethtool.c if (netif_running(ndev)) { ndev 592 drivers/staging/qlge/qlge_ethtool.c netif_err(qdev, drv, qdev->ndev, ndev 598 drivers/staging/qlge/qlge_ethtool.c static int ql_get_regs_len(struct net_device *ndev) ndev 600 drivers/staging/qlge/qlge_ethtool.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 608 drivers/staging/qlge/qlge_ethtool.c static void ql_get_regs(struct net_device *ndev, ndev 611 drivers/staging/qlge/qlge_ethtool.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 644 drivers/staging/qlge/qlge_ethtool.c static int ql_set_coalesce(struct net_device *ndev, struct ethtool_coalesce *c) ndev 646 drivers/staging/qlge/qlge_ethtool.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 703 drivers/staging/qlge/qlge_ethtool.c static u32 ql_get_msglevel(struct net_device *ndev) ndev 705 drivers/staging/qlge/qlge_ethtool.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 709 drivers/staging/qlge/qlge_ethtool.c static void ql_set_msglevel(struct net_device *ndev, u32 value) ndev 711 drivers/staging/qlge/qlge_ethtool.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 137 drivers/staging/qlge/qlge_main.c netif_alert(qdev, probe, qdev->ndev, "bad Semaphore mask!.\n"); ndev 177 drivers/staging/qlge/qlge_main.c netif_alert(qdev, probe, qdev->ndev, ndev 186 drivers/staging/qlge/qlge_main.c netif_alert(qdev, probe, qdev->ndev, ndev 230 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Couldn't map DMA area.\n"); ndev 240 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 322 drivers/staging/qlge/qlge_main.c netif_crit(qdev, ifup, qdev->ndev, ndev 413 drivers/staging/qlge/qlge_main.c if (qdev->ndev->features & NETIF_F_HW_VLAN_CTAG_RX) ndev 440 drivers/staging/qlge/qlge_main.c netif_crit(qdev, ifup, qdev->ndev, ndev 460 drivers/staging/qlge/qlge_main.c netif_printk(qdev, ifup, KERN_DEBUG, qdev->ndev, ndev 465 drivers/staging/qlge/qlge_main.c netif_printk(qdev, ifup, KERN_DEBUG, qdev->ndev, ndev 475 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 482 drivers/staging/qlge/qlge_main.c netif_err(qdev, link, qdev->ndev, "Link is up.\n"); ndev 483 drivers/staging/qlge/qlge_main.c netif_carrier_on(qdev->ndev); ndev 489 drivers/staging/qlge/qlge_main.c netif_err(qdev, link, qdev->ndev, "Link is down.\n"); ndev 490 drivers/staging/qlge/qlge_main.c netif_carrier_off(qdev->ndev); ndev 600 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 707 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Invalid flash signature.\n"); ndev 715 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 768 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 778 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Invalid flash.\n"); ndev 789 drivers/staging/qlge/qlge_main.c qdev->ndev->addr_len); ndev 793 drivers/staging/qlge/qlge_main.c qdev->ndev->addr_len); ndev 796 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Invalid MAC address.\n"); ndev 801 drivers/staging/qlge/qlge_main.c memcpy(qdev->ndev->dev_addr, ndev 803 drivers/staging/qlge/qlge_main.c qdev->ndev->addr_len); ndev 830 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 841 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Invalid flash.\n"); ndev 851 drivers/staging/qlge/qlge_main.c memcpy(qdev->ndev->dev_addr, ndev 853 drivers/staging/qlge/qlge_main.c qdev->ndev->addr_len); ndev 959 drivers/staging/qlge/qlge_main.c netif_info(qdev, link, qdev->ndev, ndev 963 drivers/staging/qlge/qlge_main.c netif_crit(qdev, link, qdev->ndev, ndev 969 drivers/staging/qlge/qlge_main.c netif_info(qdev, link, qdev->ndev, "Got xgmac semaphore!.\n"); ndev 1098 drivers/staging/qlge/qlge_main.c netif_err(qdev, drv, qdev->ndev, ndev 1110 drivers/staging/qlge/qlge_main.c netif_err(qdev, drv, qdev->ndev, ndev 1148 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1154 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 1183 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1203 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1208 drivers/staging/qlge/qlge_main.c qdev->ndev, ndev 1212 drivers/staging/qlge/qlge_main.c netdev_alloc_skb(qdev->ndev, ndev 1224 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 1249 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1284 drivers/staging/qlge/qlge_main.c qdev->ndev, ndev 1294 drivers/staging/qlge/qlge_main.c netif_printk(qdev, tx_done, KERN_DEBUG, qdev->ndev, ndev 1320 drivers/staging/qlge/qlge_main.c netif_printk(qdev, tx_queued, KERN_DEBUG, qdev->ndev, ndev 1330 drivers/staging/qlge/qlge_main.c netif_err(qdev, tx_queued, qdev->ndev, ndev 1377 drivers/staging/qlge/qlge_main.c netif_err(qdev, tx_queued, qdev->ndev, ndev 1405 drivers/staging/qlge/qlge_main.c netif_err(qdev, tx_queued, qdev->ndev, ndev 1477 drivers/staging/qlge/qlge_main.c if (qdev->ndev->features & NETIF_F_HW_VLAN_CTAG_RX) ndev 1507 drivers/staging/qlge/qlge_main.c napi->dev = qdev->ndev; ndev 1511 drivers/staging/qlge/qlge_main.c netif_err(qdev, drv, qdev->ndev, ndev 1544 drivers/staging/qlge/qlge_main.c struct net_device *ndev = qdev->ndev; ndev 1551 drivers/staging/qlge/qlge_main.c skb = netdev_alloc_skb(ndev, length); ndev 1573 drivers/staging/qlge/qlge_main.c if (skb->len > ndev->mtu + hlen) { ndev 1574 drivers/staging/qlge/qlge_main.c netif_err(qdev, drv, qdev->ndev, ndev 1580 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1592 drivers/staging/qlge/qlge_main.c skb->protocol = eth_type_trans(skb, ndev); ndev 1595 drivers/staging/qlge/qlge_main.c if ((ndev->features & NETIF_F_RXCSUM) && ndev 1599 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1611 drivers/staging/qlge/qlge_main.c qdev->ndev, ndev 1637 drivers/staging/qlge/qlge_main.c struct net_device *ndev = qdev->ndev; ndev 1644 drivers/staging/qlge/qlge_main.c new_skb = netdev_alloc_skb(qdev->ndev, length + NET_IP_ALIGN); ndev 1681 drivers/staging/qlge/qlge_main.c if (skb->len > ndev->mtu + ETH_HLEN) { ndev 1689 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1699 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1704 drivers/staging/qlge/qlge_main.c skb->protocol = eth_type_trans(skb, ndev); ndev 1710 drivers/staging/qlge/qlge_main.c if ((ndev->features & NETIF_F_RXCSUM) && ndev 1714 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1725 drivers/staging/qlge/qlge_main.c qdev->ndev, ndev 1774 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1794 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1801 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1828 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1845 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1854 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1870 drivers/staging/qlge/qlge_main.c skb = netdev_alloc_skb(qdev->ndev, length); ndev 1872 drivers/staging/qlge/qlge_main.c netif_printk(qdev, probe, KERN_DEBUG, qdev->ndev, ndev 1882 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1925 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1937 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1963 drivers/staging/qlge/qlge_main.c struct net_device *ndev = qdev->ndev; ndev 1970 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 1986 drivers/staging/qlge/qlge_main.c if (skb->len > ndev->mtu + ETH_HLEN) { ndev 2001 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, "%s Multicast.\n", ndev 2011 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 2015 drivers/staging/qlge/qlge_main.c skb->protocol = eth_type_trans(skb, ndev); ndev 2021 drivers/staging/qlge/qlge_main.c if ((ndev->features & NETIF_F_RXCSUM) && ndev 2025 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 2035 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 2059 drivers/staging/qlge/qlge_main.c (qdev->ndev->features & NETIF_F_HW_VLAN_CTAG_RX)) ? ndev 2124 drivers/staging/qlge/qlge_main.c netif_warn(qdev, tx_done, qdev->ndev, ndev 2128 drivers/staging/qlge/qlge_main.c netif_warn(qdev, tx_done, qdev->ndev, ndev 2132 drivers/staging/qlge/qlge_main.c netif_warn(qdev, tx_done, qdev->ndev, ndev 2136 drivers/staging/qlge/qlge_main.c netif_warn(qdev, tx_done, qdev->ndev, ndev 2171 drivers/staging/qlge/qlge_main.c netif_err(qdev, rx_err, qdev->ndev, ndev 2177 drivers/staging/qlge/qlge_main.c netdev_err(qdev->ndev, "Multiple CAM hits lookup occurred.\n"); ndev 2178 drivers/staging/qlge/qlge_main.c netdev_err(qdev->ndev, "This event shouldn't occur.\n"); ndev 2183 drivers/staging/qlge/qlge_main.c netdev_err(qdev->ndev, "Soft ECC error detected.\n"); ndev 2188 drivers/staging/qlge/qlge_main.c netdev_err(qdev->ndev, "PCI error occurred when reading " ndev 2195 drivers/staging/qlge/qlge_main.c netif_err(qdev, drv, qdev->ndev, "Unexpected event %d.\n", ndev 2213 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 2226 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 2238 drivers/staging/qlge/qlge_main.c if (__netif_subqueue_stopped(qdev->ndev, tx_ring->wq_id)) { ndev 2244 drivers/staging/qlge/qlge_main.c netif_wake_subqueue(qdev->ndev, tx_ring->wq_id); ndev 2260 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 2278 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 2302 drivers/staging/qlge/qlge_main.c netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, ndev 2315 drivers/staging/qlge/qlge_main.c netif_printk(qdev, intr, KERN_DEBUG, qdev->ndev, ndev 2327 drivers/staging/qlge/qlge_main.c netif_printk(qdev, intr, KERN_DEBUG, qdev->ndev, ndev 2340 drivers/staging/qlge/qlge_main.c static void qlge_vlan_mode(struct net_device *ndev, netdev_features_t features) ndev 2342 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 2356 drivers/staging/qlge/qlge_main.c static int qlge_update_hw_vlan_features(struct net_device *ndev, ndev 2359 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 2361 drivers/staging/qlge/qlge_main.c bool need_restart = netif_running(ndev); ndev 2366 drivers/staging/qlge/qlge_main.c netif_err(qdev, link, qdev->ndev, ndev 2373 drivers/staging/qlge/qlge_main.c ndev->features = features; ndev 2378 drivers/staging/qlge/qlge_main.c netif_err(qdev, link, qdev->ndev, ndev 2387 drivers/staging/qlge/qlge_main.c static int qlge_set_features(struct net_device *ndev, ndev 2390 drivers/staging/qlge/qlge_main.c netdev_features_t changed = ndev->features ^ features; ndev 2395 drivers/staging/qlge/qlge_main.c err = qlge_update_hw_vlan_features(ndev, features); ndev 2399 drivers/staging/qlge/qlge_main.c qlge_vlan_mode(ndev, features); ndev 2413 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 2418 drivers/staging/qlge/qlge_main.c static int qlge_vlan_rx_add_vid(struct net_device *ndev, __be16 proto, u16 vid) ndev 2420 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 2444 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 2449 drivers/staging/qlge/qlge_main.c static int qlge_vlan_rx_kill_vid(struct net_device *ndev, __be16 proto, u16 vid) ndev 2451 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 2505 drivers/staging/qlge/qlge_main.c netif_printk(qdev, intr, KERN_DEBUG, qdev->ndev, ndev 2519 drivers/staging/qlge/qlge_main.c netdev_err(qdev->ndev, "Got fatal error, STS = %x.\n", var); ndev 2521 drivers/staging/qlge/qlge_main.c netdev_err(qdev->ndev, "Resetting chip. " ndev 2535 drivers/staging/qlge/qlge_main.c netif_err(qdev, intr, qdev->ndev, ndev 2551 drivers/staging/qlge/qlge_main.c netif_info(qdev, intr, qdev->ndev, ndev 2634 drivers/staging/qlge/qlge_main.c static netdev_tx_t qlge_send(struct sk_buff *skb, struct net_device *ndev) ndev 2638 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 2649 drivers/staging/qlge/qlge_main.c netif_info(qdev, tx_queued, qdev->ndev, ndev 2652 drivers/staging/qlge/qlge_main.c netif_stop_subqueue(ndev, tx_ring->wq_id); ndev 2671 drivers/staging/qlge/qlge_main.c netif_printk(qdev, tx_queued, KERN_DEBUG, qdev->ndev, ndev 2686 drivers/staging/qlge/qlge_main.c netif_err(qdev, tx_queued, qdev->ndev, ndev 2698 drivers/staging/qlge/qlge_main.c netif_printk(qdev, tx_queued, KERN_DEBUG, qdev->ndev, ndev 2705 drivers/staging/qlge/qlge_main.c netif_stop_subqueue(ndev, tx_ring->wq_id); ndev 2711 drivers/staging/qlge/qlge_main.c netif_wake_subqueue(qdev->ndev, tx_ring->wq_id); ndev 2741 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 2750 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 2817 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "tx_ring alloc failed.\n"); ndev 2863 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 2991 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "rx_ring alloc failed.\n"); ndev 3004 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 3030 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 3068 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifdown, qdev->ndev, ndev 3102 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 3110 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 3240 drivers/staging/qlge/qlge_main.c netif_napi_add(qdev->ndev, &rx_ring->napi, ql_napi_poll_msix, ndev 3246 drivers/staging/qlge/qlge_main.c netif_printk(qdev, ifup, KERN_DEBUG, qdev->ndev, ndev 3252 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Failed to load CQICB.\n"); ndev 3298 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Failed to load tx_ring.\n"); ndev 3346 drivers/staging/qlge/qlge_main.c netif_warn(qdev, ifup, qdev->ndev, ndev 3352 drivers/staging/qlge/qlge_main.c netif_info(qdev, ifup, qdev->ndev, ndev 3363 drivers/staging/qlge/qlge_main.c netif_info(qdev, ifup, qdev->ndev, ndev 3369 drivers/staging/qlge/qlge_main.c netif_printk(qdev, ifup, KERN_DEBUG, qdev->ndev, ndev 3486 drivers/staging/qlge/qlge_main.c qdev->ndev->name, i); ndev 3493 drivers/staging/qlge/qlge_main.c qdev->ndev->name, i); ndev 3518 drivers/staging/qlge/qlge_main.c sprintf(intr_context->name, "%s-single_irq", qdev->ndev->name); ndev 3568 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 3574 drivers/staging/qlge/qlge_main.c netif_printk(qdev, ifup, KERN_DEBUG, qdev->ndev, ndev 3576 drivers/staging/qlge/qlge_main.c netif_printk(qdev, ifup, KERN_DEBUG, qdev->ndev, ndev 3578 drivers/staging/qlge/qlge_main.c netif_printk(qdev, ifup, KERN_DEBUG, qdev->ndev, ndev 3581 drivers/staging/qlge/qlge_main.c netif_printk(qdev, ifup, KERN_DEBUG, qdev->ndev, ndev 3593 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 3606 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Failed to get the interrupts!!!\n"); ndev 3643 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Failed to load RICB.\n"); ndev 3660 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 3686 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 3694 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 3701 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 3712 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 3721 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 3740 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Failed to init mac address.\n"); ndev 3746 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Failed to init routing table.\n"); ndev 3767 drivers/staging/qlge/qlge_main.c if (qdev->ndev->features & NETIF_F_HW_VLAN_CTAG_RX) { ndev 3815 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 3827 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Failed to start RSS.\n"); ndev 3836 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 3845 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Failed to start port.\n"); ndev 3850 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 3872 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Failed to clear routing bits.\n"); ndev 3899 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifdown, qdev->ndev, ndev 3909 drivers/staging/qlge/qlge_main.c static void ql_display_dev_info(struct net_device *ndev) ndev 3911 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 3913 drivers/staging/qlge/qlge_main.c netif_info(qdev, probe, qdev->ndev, ndev 3922 drivers/staging/qlge/qlge_main.c netif_info(qdev, probe, qdev->ndev, ndev 3923 drivers/staging/qlge/qlge_main.c "MAC address %pM\n", ndev->dev_addr); ndev 3940 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifdown, qdev->ndev, ndev 3949 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifdown, qdev->ndev, ndev 3951 drivers/staging/qlge/qlge_main.c qdev->ndev->name); ndev 3954 drivers/staging/qlge/qlge_main.c netif_info(qdev, drv, qdev->ndev, ndev 3956 drivers/staging/qlge/qlge_main.c qdev->ndev->name); ndev 3964 drivers/staging/qlge/qlge_main.c netif_err(qdev, drv, qdev->ndev, ndev 3967 drivers/staging/qlge/qlge_main.c wol, qdev->ndev->name); ndev 4012 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifdown, qdev->ndev, "reset(func #%d) FAILED!\n", ndev 4025 drivers/staging/qlge/qlge_main.c netif_info(qdev, ifup, qdev->ndev, "Unable to initialize adapter.\n"); ndev 4039 drivers/staging/qlge/qlge_main.c qlge_set_multicast_list(qdev->ndev); ndev 4046 drivers/staging/qlge/qlge_main.c netif_tx_start_all_queues(qdev->ndev); ndev 4065 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Unable to allocate memory.\n"); ndev 4072 drivers/staging/qlge/qlge_main.c static int qlge_close(struct net_device *ndev) ndev 4074 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 4081 drivers/staging/qlge/qlge_main.c netif_err(qdev, drv, qdev->ndev, "EEH fatal did unload.\n"); ndev 4103 drivers/staging/qlge/qlge_main.c unsigned int lbq_buf_len = (qdev->ndev->mtu > 1500) ? ndev 4180 drivers/staging/qlge/qlge_main.c static int qlge_open(struct net_device *ndev) ndev 4183 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 4219 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 4225 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 4236 drivers/staging/qlge/qlge_main.c lbq_buf_len = (qdev->ndev->mtu > 1500) ? ndev 4252 drivers/staging/qlge/qlge_main.c netif_alert(qdev, ifup, qdev->ndev, ndev 4255 drivers/staging/qlge/qlge_main.c dev_close(qdev->ndev); ndev 4259 drivers/staging/qlge/qlge_main.c static int qlge_change_mtu(struct net_device *ndev, int new_mtu) ndev 4261 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 4264 drivers/staging/qlge/qlge_main.c if (ndev->mtu == 1500 && new_mtu == 9000) { ndev 4265 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Changing to jumbo MTU.\n"); ndev 4266 drivers/staging/qlge/qlge_main.c } else if (ndev->mtu == 9000 && new_mtu == 1500) { ndev 4267 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Changing to normal MTU.\n"); ndev 4274 drivers/staging/qlge/qlge_main.c ndev->mtu = new_mtu; ndev 4276 drivers/staging/qlge/qlge_main.c if (!netif_running(qdev->ndev)) { ndev 4282 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 4290 drivers/staging/qlge/qlge_main.c *ndev) ndev 4292 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 4307 drivers/staging/qlge/qlge_main.c ndev->stats.rx_packets = pkts; ndev 4308 drivers/staging/qlge/qlge_main.c ndev->stats.rx_bytes = bytes; ndev 4309 drivers/staging/qlge/qlge_main.c ndev->stats.rx_dropped = dropped; ndev 4310 drivers/staging/qlge/qlge_main.c ndev->stats.rx_errors = errors; ndev 4311 drivers/staging/qlge/qlge_main.c ndev->stats.multicast = mcast; ndev 4320 drivers/staging/qlge/qlge_main.c ndev->stats.tx_packets = pkts; ndev 4321 drivers/staging/qlge/qlge_main.c ndev->stats.tx_bytes = bytes; ndev 4322 drivers/staging/qlge/qlge_main.c ndev->stats.tx_errors = errors; ndev 4323 drivers/staging/qlge/qlge_main.c return &ndev->stats; ndev 4326 drivers/staging/qlge/qlge_main.c static void qlge_set_multicast_list(struct net_device *ndev) ndev 4328 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 4339 drivers/staging/qlge/qlge_main.c if (ndev->flags & IFF_PROMISC) { ndev 4343 drivers/staging/qlge/qlge_main.c netif_err(qdev, hw, qdev->ndev, ndev 4353 drivers/staging/qlge/qlge_main.c netif_err(qdev, hw, qdev->ndev, ndev 4365 drivers/staging/qlge/qlge_main.c if ((ndev->flags & IFF_ALLMULTI) || ndev 4366 drivers/staging/qlge/qlge_main.c (netdev_mc_count(ndev) > MAX_MULTICAST_ENTRIES)) { ndev 4370 drivers/staging/qlge/qlge_main.c netif_err(qdev, hw, qdev->ndev, ndev 4380 drivers/staging/qlge/qlge_main.c netif_err(qdev, hw, qdev->ndev, ndev 4388 drivers/staging/qlge/qlge_main.c if (!netdev_mc_empty(ndev)) { ndev 4393 drivers/staging/qlge/qlge_main.c netdev_for_each_mc_addr(ha, ndev) { ndev 4396 drivers/staging/qlge/qlge_main.c netif_err(qdev, hw, qdev->ndev, ndev 4406 drivers/staging/qlge/qlge_main.c netif_err(qdev, hw, qdev->ndev, ndev 4416 drivers/staging/qlge/qlge_main.c static int qlge_set_mac_address(struct net_device *ndev, void *p) ndev 4418 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 4424 drivers/staging/qlge/qlge_main.c memcpy(ndev->dev_addr, addr->sa_data, ndev->addr_len); ndev 4426 drivers/staging/qlge/qlge_main.c memcpy(qdev->current_mac_addr, ndev->dev_addr, ndev->addr_len); ndev 4431 drivers/staging/qlge/qlge_main.c status = ql_set_mac_addr_reg(qdev, (u8 *) ndev->dev_addr, ndev 4434 drivers/staging/qlge/qlge_main.c netif_err(qdev, hw, qdev->ndev, "Failed to load MAC address.\n"); ndev 4439 drivers/staging/qlge/qlge_main.c static void qlge_tx_timeout(struct net_device *ndev) ndev 4441 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 4462 drivers/staging/qlge/qlge_main.c qlge_set_multicast_list(qdev->ndev); ndev 4467 drivers/staging/qlge/qlge_main.c netif_alert(qdev, ifup, qdev->ndev, ndev 4471 drivers/staging/qlge/qlge_main.c dev_close(qdev->ndev); ndev 4555 drivers/staging/qlge/qlge_main.c struct net_device *ndev = pci_get_drvdata(pdev); ndev 4556 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 4571 drivers/staging/qlge/qlge_main.c static int ql_init_device(struct pci_dev *pdev, struct net_device *ndev, ndev 4574 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 4584 drivers/staging/qlge/qlge_main.c qdev->ndev = ndev; ndev 4586 drivers/staging/qlge/qlge_main.c pci_set_drvdata(pdev, ndev); ndev 4666 drivers/staging/qlge/qlge_main.c memcpy(qdev->current_mac_addr, ndev->dev_addr, ndev->addr_len); ndev 4682 drivers/staging/qlge/qlge_main.c ndev->name); ndev 4732 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "EEH STS = 0x%.08x.\n", var); ndev 4742 drivers/staging/qlge/qlge_main.c struct net_device *ndev = NULL; ndev 4747 drivers/staging/qlge/qlge_main.c ndev = alloc_etherdev_mq(sizeof(struct ql_adapter), ndev 4749 drivers/staging/qlge/qlge_main.c if (!ndev) ndev 4752 drivers/staging/qlge/qlge_main.c err = ql_init_device(pdev, ndev, cards_found); ndev 4754 drivers/staging/qlge/qlge_main.c free_netdev(ndev); ndev 4758 drivers/staging/qlge/qlge_main.c qdev = netdev_priv(ndev); ndev 4759 drivers/staging/qlge/qlge_main.c SET_NETDEV_DEV(ndev, &pdev->dev); ndev 4760 drivers/staging/qlge/qlge_main.c ndev->hw_features = NETIF_F_SG | ndev 4768 drivers/staging/qlge/qlge_main.c ndev->features = ndev->hw_features; ndev 4769 drivers/staging/qlge/qlge_main.c ndev->vlan_features = ndev->hw_features; ndev 4771 drivers/staging/qlge/qlge_main.c ndev->vlan_features &= ~(NETIF_F_HW_VLAN_CTAG_FILTER | ndev 4776 drivers/staging/qlge/qlge_main.c ndev->features |= NETIF_F_HIGHDMA; ndev 4781 drivers/staging/qlge/qlge_main.c ndev->tx_queue_len = qdev->tx_ring_size; ndev 4782 drivers/staging/qlge/qlge_main.c ndev->irq = pdev->irq; ndev 4784 drivers/staging/qlge/qlge_main.c ndev->netdev_ops = &qlge_netdev_ops; ndev 4785 drivers/staging/qlge/qlge_main.c ndev->ethtool_ops = &qlge_ethtool_ops; ndev 4786 drivers/staging/qlge/qlge_main.c ndev->watchdog_timeo = 10 * HZ; ndev 4792 drivers/staging/qlge/qlge_main.c ndev->min_mtu = ETH_DATA_LEN; ndev 4793 drivers/staging/qlge/qlge_main.c ndev->max_mtu = 9000; ndev 4795 drivers/staging/qlge/qlge_main.c err = register_netdev(ndev); ndev 4800 drivers/staging/qlge/qlge_main.c free_netdev(ndev); ndev 4809 drivers/staging/qlge/qlge_main.c ql_display_dev_info(ndev); ndev 4815 drivers/staging/qlge/qlge_main.c netdev_tx_t ql_lb_send(struct sk_buff *skb, struct net_device *ndev) ndev 4817 drivers/staging/qlge/qlge_main.c return qlge_send(skb, ndev); ndev 4827 drivers/staging/qlge/qlge_main.c struct net_device *ndev = pci_get_drvdata(pdev); ndev 4828 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 4831 drivers/staging/qlge/qlge_main.c unregister_netdev(ndev); ndev 4834 drivers/staging/qlge/qlge_main.c free_netdev(ndev); ndev 4838 drivers/staging/qlge/qlge_main.c static void ql_eeh_close(struct net_device *ndev) ndev 4841 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 4843 drivers/staging/qlge/qlge_main.c if (netif_carrier_ok(ndev)) { ndev 4844 drivers/staging/qlge/qlge_main.c netif_carrier_off(ndev); ndev 4845 drivers/staging/qlge/qlge_main.c netif_stop_queue(ndev); ndev 4867 drivers/staging/qlge/qlge_main.c struct net_device *ndev = pci_get_drvdata(pdev); ndev 4868 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 4874 drivers/staging/qlge/qlge_main.c netif_device_detach(ndev); ndev 4876 drivers/staging/qlge/qlge_main.c if (netif_running(ndev)) ndev 4877 drivers/staging/qlge/qlge_main.c ql_eeh_close(ndev); ndev 4884 drivers/staging/qlge/qlge_main.c ql_eeh_close(ndev); ndev 4901 drivers/staging/qlge/qlge_main.c struct net_device *ndev = pci_get_drvdata(pdev); ndev 4902 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 4908 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 4915 drivers/staging/qlge/qlge_main.c netif_err(qdev, drv, qdev->ndev, "reset FAILED!\n"); ndev 4925 drivers/staging/qlge/qlge_main.c struct net_device *ndev = pci_get_drvdata(pdev); ndev 4926 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 4929 drivers/staging/qlge/qlge_main.c if (netif_running(ndev)) { ndev 4930 drivers/staging/qlge/qlge_main.c err = qlge_open(ndev); ndev 4932 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 4937 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, ndev 4941 drivers/staging/qlge/qlge_main.c netif_device_attach(ndev); ndev 4952 drivers/staging/qlge/qlge_main.c struct net_device *ndev = pci_get_drvdata(pdev); ndev 4953 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 4956 drivers/staging/qlge/qlge_main.c netif_device_detach(ndev); ndev 4959 drivers/staging/qlge/qlge_main.c if (netif_running(ndev)) { ndev 4980 drivers/staging/qlge/qlge_main.c struct net_device *ndev = pci_get_drvdata(pdev); ndev 4981 drivers/staging/qlge/qlge_main.c struct ql_adapter *qdev = netdev_priv(ndev); ndev 4988 drivers/staging/qlge/qlge_main.c netif_err(qdev, ifup, qdev->ndev, "Cannot enable PCI device from suspend\n"); ndev 4996 drivers/staging/qlge/qlge_main.c if (netif_running(ndev)) { ndev 5003 drivers/staging/qlge/qlge_main.c netif_device_attach(ndev); ndev 139 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Failed mailbox read.\n"); ndev 212 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Enter!\n"); ndev 219 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 243 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 262 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 268 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Link Up.\n"); ndev 276 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, ifup, qdev->ndev, ndev 288 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Queue Port Config Worker!\n"); ndev 310 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Link down AEN broken!\n"); ndev 323 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "SFP in AEN broken!\n"); ndev 325 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "SFP insertion detected.\n"); ndev 338 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "SFP out AEN broken!\n"); ndev 340 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "SFP removal detected.\n"); ndev 353 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Lost AEN broken!\n"); ndev 356 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Lost AEN detected.\n"); ndev 358 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "mbox_out[%d] = 0x%.08x.\n", ndev 374 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Firmware did not initialize!\n"); ndev 376 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Firmware Revision = 0x%.08x.\n", ndev 381 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, ifup, qdev->ndev, ndev 401 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 491 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 498 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "System Error.\n"); ndev 511 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 586 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 633 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 665 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 675 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 708 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Failed IDC ACK send.\n"); ndev 739 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 742 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 777 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Failed to dump risc RAM.\n"); ndev 827 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 831 drivers/staging/qlge/qlge_mpi.c netif_printk(qdev, drv, KERN_DEBUG, qdev->ndev, ndev 859 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Failed to set WOL mode.\n"); ndev 870 drivers/staging/qlge/qlge_mpi.c u8 *addr = qdev->ndev->dev_addr; ndev 901 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Failed to set WOL mode.\n"); ndev 927 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "IDC Timeout.\n"); ndev 935 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 939 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "IDC Success.\n"); ndev 943 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 974 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 1000 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 1031 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 1039 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 1070 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 1074 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 1127 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 1141 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 1173 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 1190 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 1193 drivers/staging/qlge/qlge_mpi.c netif_printk(qdev, drv, KERN_DEBUG, qdev->ndev, ndev 1223 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, ndev 1226 drivers/staging/qlge/qlge_mpi.c netif_printk(qdev, drv, KERN_DEBUG, qdev->ndev, ndev 1274 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Don't own firmware!\n"); ndev 1279 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Core is dumped!\n"); ndev 79 drivers/staging/rtl8188eu/include/osdep_service.h #define FUNC_NDEV_ARG(ndev) __func__, ndev->name ndev 73 drivers/staging/rtl8723bs/include/osdep_intf.h void rtw_ndev_destructor(_nic_hdl ndev); ndev 98 drivers/staging/rtl8723bs/include/osdep_service.h int _rtw_netif_rx(_nic_hdl ndev, struct sk_buff *skb); ndev 109 drivers/staging/rtl8723bs/include/osdep_service.h #define rtw_netif_rx(ndev, skb) _rtw_netif_rx(ndev, skb) ndev 142 drivers/staging/rtl8723bs/include/osdep_service_linux.h #define NDEV_ARG(ndev) ndev->name ndev 146 drivers/staging/rtl8723bs/include/osdep_service_linux.h #define FUNC_NDEV_ARG(ndev) __func__, ndev->name ndev 1060 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev, ndev 1068 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 1071 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT" adding key for %pM\n", FUNC_NDEV_ARG(ndev), mac_addr); ndev 1137 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c ret = rtw_cfg80211_set_encryption(ndev, param, param_len); ndev 1144 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c ret = rtw_cfg80211_ap_set_encryption(ndev, param, param_len); ndev 1150 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c ret = rtw_cfg80211_set_encryption(ndev, param, param_len); ndev 1165 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int cfg80211_rtw_get_key(struct wiphy *wiphy, struct net_device *ndev, ndev 1171 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); ndev 1175 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int cfg80211_rtw_del_key(struct wiphy *wiphy, struct net_device *ndev, ndev 1178 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 1181 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT" key_index =%d\n", FUNC_NDEV_ARG(ndev), key_index); ndev 1193 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct net_device *ndev, u8 key_index ndev 1197 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 1201 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c FUNC_NDEV_ARG(ndev), key_index, unicast, multicast); ndev 1225 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct net_device *ndev, ndev 1230 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 1238 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT" mac ==%p\n", FUNC_NDEV_ARG(ndev), mac); ndev 1251 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT" mac ="MAC_FMT"\n", FUNC_NDEV_ARG(ndev), MAC_ARG(mac)); ndev 1298 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct net_device *ndev, ndev 1304 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 1310 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT" type =%d\n", FUNC_NDEV_ARG(ndev), type); ndev 1319 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT" call netdev_open\n", FUNC_NDEV_ARG(ndev)); ndev 1320 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (netdev_open(ndev) != 0) { ndev 1321 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT" call netdev_open fail\n", FUNC_NDEV_ARG(ndev)); ndev 1328 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT" call rtw_pwr_wakeup fail\n", FUNC_NDEV_ARG(ndev)); ndev 1335 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c FUNC_NDEV_ARG(ndev), old_type, type); ndev 1372 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT" ret:%d\n", FUNC_NDEV_ARG(ndev), ret); ndev 1512 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct net_device *ndev = wdev_to_ndev(request->wdev); ndev 1528 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (ndev == NULL) { ndev 1533 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 1960 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int cfg80211_rtw_join_ibss(struct wiphy *wiphy, struct net_device *ndev, ndev 1963 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 2016 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int cfg80211_rtw_leave_ibss(struct wiphy *wiphy, struct net_device *ndev) ndev 2018 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 2023 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); ndev 2049 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev, ndev 2055 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 2061 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X("=>"FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); ndev 2236 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int cfg80211_rtw_disconnect(struct wiphy *wiphy, struct net_device *ndev, ndev 2239 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 2241 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); ndev 2256 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT" return 0\n", FUNC_NDEV_ARG(ndev)); ndev 2286 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct net_device *ndev, ndev 2289 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 2292 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT" enabled:%u, timeout:%d\n", FUNC_NDEV_ARG(ndev), ndev 2304 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct net_device *ndev, ndev 2308 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 2312 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); ndev 2326 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT" BSSID exists in the PMKList.\n", FUNC_NDEV_ARG(ndev)); ndev 2340 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c FUNC_NDEV_ARG(ndev), psecuritypriv->PMKIDIndex); ndev 2357 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct net_device *ndev, ndev 2361 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 2364 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); ndev 2381 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c , FUNC_NDEV_ARG(ndev)); ndev 2389 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct net_device *ndev) ndev 2391 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 2394 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); ndev 2404 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct net_device *ndev = padapter->pnetdev; ndev 2419 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c cfg80211_new_sta(ndev, GetAddr2Ptr(pmgmt_frame), &sinfo, GFP_ATOMIC); ndev 2425 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct net_device *ndev = padapter->pnetdev; ndev 2429 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c cfg80211_del_sta(ndev, da, GFP_ATOMIC); ndev 2434 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static netdev_tx_t rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struct net_device *ndev) ndev 2447 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 2449 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); ndev 2525 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_8192C(FUNC_NDEV_FMT" frame_control:0x%x\n", FUNC_NDEV_ARG(ndev), ndev 2531 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c MAC_ARG(GetAddr1Ptr(buf)), FUNC_NDEV_ARG(ndev)); ndev 2587 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int rtw_cfg80211_add_monitor_if (struct adapter *padapter, char *name, struct net_device **ndev) ndev 2645 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c *ndev = pwdev_priv->pmon_ndev = mon_ndev; ndev 2656 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c *ndev = mon_ndev = NULL; ndev 2670 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct net_device* ndev = NULL; ndev 2684 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c ret = rtw_cfg80211_add_monitor_if(padapter, (char *)name, &ndev); ndev 2700 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_ADPT_FMT" ndev:%p, ret:%d\n", FUNC_ADPT_ARG(padapter), ndev, ret); ndev 2702 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c return ndev ? ndev->ieee80211_ptr : ERR_PTR(ret); ndev 2709 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct net_device *ndev = wdev_to_ndev(wdev); ndev 2714 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (!ndev) { ndev 2719 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c adapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 2722 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c unregister_netdevice(ndev); ndev 2724 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (ndev == pwdev_priv->pmon_ndev) { ndev 2727 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT" remove monitor interface\n", FUNC_NDEV_ARG(ndev)); ndev 2781 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int cfg80211_rtw_start_ap(struct wiphy *wiphy, struct net_device *ndev, ndev 2785 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *adapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 2787 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT" hidden_ssid:%d, auth_type:%d\n", FUNC_NDEV_ARG(ndev), ndev 2808 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *ndev, ndev 2812 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *adapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 2814 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); ndev 2821 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev) ndev 2823 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); ndev 2827 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int cfg80211_rtw_add_station(struct wiphy *wiphy, struct net_device *ndev, ndev 2831 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); ndev 2836 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *ndev, ndev 2843 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 2848 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X("+"FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); ndev 2919 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X("-"FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); ndev 2925 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int cfg80211_rtw_change_station(struct wiphy *wiphy, struct net_device *ndev, ndev 2928 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); ndev 2953 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int cfg80211_rtw_dump_station(struct wiphy *wiphy, struct net_device *ndev, ndev 2958 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct adapter *padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 2961 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); ndev 2980 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c static int cfg80211_rtw_change_bss(struct wiphy *wiphy, struct net_device *ndev, ndev 2983 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev)); ndev 3091 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct net_device *ndev = wdev_to_ndev(wdev); ndev 3106 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (ndev == NULL) { ndev 3111 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c padapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 3182 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct net_device *ndev = wdev_to_ndev(wdev); ndev 3185 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (ndev == NULL) ndev 3188 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c adapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 3511 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c struct net_device *ndev; ndev 3520 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (!(ndev = wdev_to_ndev(wdev))) ndev 3523 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c adapter = (struct adapter *)rtw_netdev_priv(ndev); ndev 1140 drivers/staging/rtl8723bs/os_dep/os_intfs.c void rtw_ndev_destructor(struct net_device *ndev) ndev 1142 drivers/staging/rtl8723bs/os_dep/os_intfs.c DBG_871X(FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(ndev)); ndev 1144 drivers/staging/rtl8723bs/os_dep/os_intfs.c if (ndev->ieee80211_ptr) ndev 1145 drivers/staging/rtl8723bs/os_dep/os_intfs.c kfree((u8 *)ndev->ieee80211_ptr); ndev 55 drivers/staging/rtl8723bs/os_dep/osdep_service.c inline int _rtw_netif_rx(_nic_hdl ndev, struct sk_buff *skb) ndev 57 drivers/staging/rtl8723bs/os_dep/osdep_service.c skb->dev = ndev; ndev 210 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to set abort running\n"); ndev 216 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: hif driver is NULL\n", __func__); ndev 246 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Already scan\n"); ndev 252 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Don't do obss scan\n"); ndev 331 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to send scan parameters\n"); ndev 381 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "failed to send config packet\n"); ndev 407 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: hif driver is NULL\n", __func__); ndev 419 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: conn_result is NULL\n", __func__); ndev 429 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to send disconnect\n"); ndev 625 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to send association response\n"); ndev 676 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, ndev 716 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: conn_result is NULL\n", __func__); ndev 734 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: hif driver is NULL\n", __func__); ndev 739 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: conn_result is NULL\n", __func__); ndev 774 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to send disconnect\n"); ndev 794 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: conn_result is NULL\n", __func__); ndev 845 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to send scan parameters\n"); ndev 946 drivers/staging/wilc1000/wilc_hif.c struct wilc_priv *priv = wdev_priv(vif->ndev->ieee80211_ptr); ndev 964 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to set remain channel\n"); ndev 973 drivers/staging/wilc1000/wilc_hif.c netdev_dbg(vif->ndev, "Not in listen state\n"); ndev 1005 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: enqueue work failed\n", __func__); ndev 1038 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to send setup multicast\n"); ndev 1110 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, ndev 1126 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, ndev 1154 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, ndev 1193 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, ndev 1355 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to get mac address\n"); ndev 1405 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to set channel\n"); ndev 1427 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to set driver handler\n"); ndev 1448 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to set inactive mac\n"); ndev 1458 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to get inactive time\n"); ndev 1469 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: RSSI level is NULL\n", __func__); ndev 1479 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to get RSSI value\n"); ndev 1497 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: enqueue work failed\n", __func__); ndev 1547 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: hif driver is NULL", __func__); ndev 1596 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: hif driver is NULL", __func__); ndev 1637 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "driver not init[%p]\n", hif_drv); ndev 1657 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: enqueue work failed\n", __func__); ndev 1688 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: conn_result is NULL\n", __func__); ndev 1702 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: enqueue work failed\n", __func__); ndev 1734 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: enqueue work failed\n", ndev 1756 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: failed to set remain on channel\n", ndev 1765 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: hif driver is NULL", __func__); ndev 1803 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to frame register\n"); ndev 1840 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to send add beacon\n"); ndev 1860 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to send delete beacon\n"); ndev 1884 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to send add station\n"); ndev 1910 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to del station\n"); ndev 1945 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to send delete all station\n"); ndev 1969 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to send edit station\n"); ndev 1991 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "Failed to send power management\n"); ndev 2012 drivers/staging/wilc1000/wilc_hif.c netdev_err(vif->ndev, "%s: enqueue work failed\n", __func__); ndev 101 drivers/staging/wilc1000/wilc_netdev.c struct net_device *ndev = NULL; ndev 111 drivers/staging/wilc1000/wilc_netdev.c ndev = wilc->vif[i]->ndev; ndev 117 drivers/staging/wilc1000/wilc_netdev.c ndev = wilc->vif[i]->ndev; ndev 123 drivers/staging/wilc1000/wilc_netdev.c return ndev; ndev 176 drivers/staging/wilc1000/wilc_netdev.c if (ifc->mac_opened && ifc->ndev) ndev 177 drivers/staging/wilc1000/wilc_netdev.c netif_wake_queue(ifc->ndev); ndev 596 drivers/staging/wilc1000/wilc_netdev.c static int mac_init_fn(struct net_device *ndev) ndev 598 drivers/staging/wilc1000/wilc_netdev.c netif_start_queue(ndev); ndev 599 drivers/staging/wilc1000/wilc_netdev.c netif_stop_queue(ndev); ndev 604 drivers/staging/wilc1000/wilc_netdev.c static int wilc_mac_open(struct net_device *ndev) ndev 606 drivers/staging/wilc1000/wilc_netdev.c struct wilc_vif *vif = netdev_priv(ndev); ndev 608 drivers/staging/wilc1000/wilc_netdev.c struct wilc_priv *priv = wdev_priv(vif->ndev->ieee80211_ptr); ndev 613 drivers/staging/wilc1000/wilc_netdev.c netdev_err(ndev, "device not ready\n"); ndev 617 drivers/staging/wilc1000/wilc_netdev.c netdev_dbg(ndev, "MAC OPEN[%p]\n", ndev); ndev 619 drivers/staging/wilc1000/wilc_netdev.c ret = wilc_init_host_int(ndev); ndev 623 drivers/staging/wilc1000/wilc_netdev.c ret = wilc_wlan_initialize(ndev, vif); ndev 625 drivers/staging/wilc1000/wilc_netdev.c wilc_deinit_host_int(ndev); ndev 632 drivers/staging/wilc1000/wilc_netdev.c netdev_dbg(ndev, "Mac address: %pM\n", mac_add); ndev 633 drivers/staging/wilc1000/wilc_netdev.c ether_addr_copy(ndev->dev_addr, mac_add); ndev 635 drivers/staging/wilc1000/wilc_netdev.c if (!is_valid_ether_addr(ndev->dev_addr)) { ndev 636 drivers/staging/wilc1000/wilc_netdev.c netdev_err(ndev, "Wrong MAC address\n"); ndev 637 drivers/staging/wilc1000/wilc_netdev.c wilc_deinit_host_int(ndev); ndev 638 drivers/staging/wilc1000/wilc_netdev.c wilc_wlan_deinitialize(ndev); ndev 642 drivers/staging/wilc1000/wilc_netdev.c wilc_mgmt_frame_register(vif->ndev->ieee80211_ptr->wiphy, ndev 643 drivers/staging/wilc1000/wilc_netdev.c vif->ndev->ieee80211_ptr, ndev 646 drivers/staging/wilc1000/wilc_netdev.c wilc_mgmt_frame_register(vif->ndev->ieee80211_ptr->wiphy, ndev 647 drivers/staging/wilc1000/wilc_netdev.c vif->ndev->ieee80211_ptr, ndev 650 drivers/staging/wilc1000/wilc_netdev.c netif_wake_queue(ndev); ndev 711 drivers/staging/wilc1000/wilc_netdev.c netdev_tx_t wilc_mac_xmit(struct sk_buff *skb, struct net_device *ndev) ndev 713 drivers/staging/wilc1000/wilc_netdev.c struct wilc_vif *vif = netdev_priv(ndev); ndev 718 drivers/staging/wilc1000/wilc_netdev.c if (skb->dev != ndev) { ndev 719 drivers/staging/wilc1000/wilc_netdev.c netdev_err(ndev, "Packet not destined to this device\n"); ndev 726 drivers/staging/wilc1000/wilc_netdev.c netif_wake_queue(ndev); ndev 736 drivers/staging/wilc1000/wilc_netdev.c queue_count = wilc_wlan_txq_add_net_pkt(ndev, (void *)tx_data, ndev 746 drivers/staging/wilc1000/wilc_netdev.c netif_stop_queue(wilc->vif[i]->ndev); ndev 754 drivers/staging/wilc1000/wilc_netdev.c static int wilc_mac_close(struct net_device *ndev) ndev 756 drivers/staging/wilc1000/wilc_netdev.c struct wilc_vif *vif = netdev_priv(ndev); ndev 759 drivers/staging/wilc1000/wilc_netdev.c netdev_dbg(ndev, "Mac close\n"); ndev 766 drivers/staging/wilc1000/wilc_netdev.c if (vif->ndev) { ndev 767 drivers/staging/wilc1000/wilc_netdev.c netif_stop_queue(vif->ndev); ndev 769 drivers/staging/wilc1000/wilc_netdev.c wilc_deinit_host_int(vif->ndev); ndev 773 drivers/staging/wilc1000/wilc_netdev.c netdev_dbg(ndev, "Deinitializing wilc1000\n"); ndev 775 drivers/staging/wilc1000/wilc_netdev.c wilc_wlan_deinitialize(ndev); ndev 833 drivers/staging/wilc1000/wilc_netdev.c vif = netdev_priv(wilc->vif[i]->ndev); ndev 870 drivers/staging/wilc1000/wilc_netdev.c if (wilc->vif[i] && wilc->vif[i]->ndev) ndev 871 drivers/staging/wilc1000/wilc_netdev.c unregister_netdev(wilc->vif[i]->ndev); ndev 888 drivers/staging/wilc1000/wilc_netdev.c struct net_device *ndev; ndev 892 drivers/staging/wilc1000/wilc_netdev.c ndev = alloc_etherdev(sizeof(*vif)); ndev 893 drivers/staging/wilc1000/wilc_netdev.c if (!ndev) ndev 896 drivers/staging/wilc1000/wilc_netdev.c vif = netdev_priv(ndev); ndev 897 drivers/staging/wilc1000/wilc_netdev.c ndev->ieee80211_ptr = &vif->priv.wdev; ndev 898 drivers/staging/wilc1000/wilc_netdev.c strcpy(ndev->name, name); ndev 900 drivers/staging/wilc1000/wilc_netdev.c vif->ndev = ndev; ndev 901 drivers/staging/wilc1000/wilc_netdev.c ndev->ml_priv = vif; ndev 903 drivers/staging/wilc1000/wilc_netdev.c ndev->netdev_ops = &wilc_netdev_ops; ndev 905 drivers/staging/wilc1000/wilc_netdev.c SET_NETDEV_DEV(ndev, wiphy_dev(wl->wiphy)); ndev 908 drivers/staging/wilc1000/wilc_netdev.c vif->priv.wdev.netdev = ndev; ndev 910 drivers/staging/wilc1000/wilc_netdev.c vif->priv.dev = ndev; ndev 913 drivers/staging/wilc1000/wilc_netdev.c ret = register_netdevice(ndev); ndev 915 drivers/staging/wilc1000/wilc_netdev.c ret = register_netdev(ndev); ndev 918 drivers/staging/wilc1000/wilc_netdev.c free_netdev(ndev); ndev 922 drivers/staging/wilc1000/wilc_netdev.c ndev->needs_free_netdev = true; ndev 220 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_err(vif->ndev, "Error in setting channel\n"); ndev 236 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_err(vif->ndev, "Requested scanned channels over\n"); ndev 356 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_err(vif->ndev, "%s: Scan in progress\n", __func__); ndev 627 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c if (netdev == wl->vif[0]->ndev) { ndev 787 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_dbg(vif->ndev, ndev 794 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_dbg(vif->ndev, ndev 803 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_dbg(vif->ndev, ndev 809 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_err(vif->ndev, ndev 817 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_dbg(vif->ndev, ndev 823 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_err(vif->ndev, "RTS threshold out of range\n"); ndev 1002 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_dbg(vif->ndev, ndev 1056 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_dbg(vif->ndev, "Receiving action wrong ch\n"); ndev 1079 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_dbg(vif->ndev, ndev 1123 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_dbg(vif->ndev, "Required while in AP mode\n"); ndev 1283 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_dbg(vif->ndev, ndev 1289 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_dbg(vif->ndev, ndev 1595 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c struct net_device *ndev; ndev 1608 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c ndev = wilc_wfi_init_mon_interface(wl, name, vif->ndev); ndev 1609 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c if (ndev) ndev 1664 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c unregister_netdevice(vif->ndev); ndev 1715 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_info(vif->ndev, "cfg set wake up = %d\n", enabled); ndev 1732 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_err(vif->ndev, "Failed to set tx power\n"); ndev 1750 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c netdev_err(vif->ndev, "Failed to get tx power\n"); ndev 203 drivers/staging/wilc1000/wilc_wfi_netdevice.h struct net_device *ndev; ndev 253 drivers/staging/wilc1000/wilc_wlan.c netdev_dbg(vif->ndev, "Adding config packet ...\n"); ndev 255 drivers/staging/wilc1000/wilc_wlan.c netdev_dbg(vif->ndev, "Return due to clear function\n"); ndev 498 drivers/staging/wilc1000/wilc_wlan.c dev = tqe->vif->ndev; ndev 953 drivers/staging/wilc1000/wilc_wlan.c netdev_err(vif->ndev, "Error while reading reg\n"); ndev 961 drivers/staging/wilc1000/wilc_wlan.c netdev_err(vif->ndev, "Error while writing reg\n"); ndev 968 drivers/staging/wilc1000/wilc_wlan.c netdev_err(vif->ndev, "Error while reading reg\n"); ndev 976 drivers/staging/wilc1000/wilc_wlan.c netdev_err(vif->ndev, "Error while writing reg\n"); ndev 1063 drivers/staging/wilc1000/wilc_wlan.c netdev_dbg(vif->ndev, "%s: seqno[%d]\n", __func__, wilc->cfg_seq_no); ndev 1070 drivers/staging/wilc1000/wilc_wlan.c netdev_dbg(vif->ndev, "%s: Timed Out\n", __func__); ndev 1108 drivers/staging/wilc1000/wilc_wlan.c netdev_dbg(vif->ndev, "%s: Timed Out\n", __func__); ndev 228 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct cxgbit_device *cxgbit_find_device(struct net_device *ndev, u8 *port_id) ndev 237 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (lldi->ports[i] == ndev) { ndev 248 drivers/target/iscsi/cxgbit/cxgbit_cm.c static struct net_device *cxgbit_get_real_dev(struct net_device *ndev) ndev 250 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (ndev->priv_flags & IFF_BONDING) { ndev 252 drivers/target/iscsi/cxgbit/cxgbit_cm.c ndev->name); ndev 256 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (is_vlan_dev(ndev)) ndev 257 drivers/target/iscsi/cxgbit/cxgbit_cm.c return vlan_dev_real_dev(ndev); ndev 259 drivers/target/iscsi/cxgbit/cxgbit_cm.c return ndev; ndev 264 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct net_device *ndev; ndev 266 drivers/target/iscsi/cxgbit/cxgbit_cm.c ndev = __ip_dev_find(&init_net, saddr, false); ndev 267 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (!ndev) ndev 270 drivers/target/iscsi/cxgbit/cxgbit_cm.c return cxgbit_get_real_dev(ndev); ndev 275 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct net_device *ndev = NULL; ndev 279 drivers/target/iscsi/cxgbit/cxgbit_cm.c for_each_netdev_rcu(&init_net, ndev) ndev 280 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (ipv6_chk_addr(&init_net, addr6, ndev, 1)) { ndev 287 drivers/target/iscsi/cxgbit/cxgbit_cm.c return cxgbit_get_real_dev(ndev); ndev 294 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct net_device *ndev = NULL; ndev 302 drivers/target/iscsi/cxgbit/cxgbit_cm.c ndev = cxgbit_ipv4_netdev(sin->sin_addr.s_addr); ndev 307 drivers/target/iscsi/cxgbit/cxgbit_cm.c ndev = cxgbit_ipv6_netdev(&sin6->sin6_addr); ndev 309 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (!ndev) ndev 312 drivers/target/iscsi/cxgbit/cxgbit_cm.c cdev = cxgbit_find_device(ndev, NULL); ndev 850 drivers/target/iscsi/cxgbit/cxgbit_cm.c static u8 cxgbit_get_iscsi_dcb_state(struct net_device *ndev) ndev 852 drivers/target/iscsi/cxgbit/cxgbit_cm.c return ndev->dcbnl_ops->getstate(ndev); ndev 863 drivers/target/iscsi/cxgbit/cxgbit_cm.c static u8 cxgbit_get_iscsi_dcb_priority(struct net_device *ndev, u16 local_port) ndev 872 drivers/target/iscsi/cxgbit/cxgbit_cm.c ret = (int)ndev->dcbnl_ops->getcap(ndev, DCB_CAP_ATTR_DCBX, &caps); ndev 879 drivers/target/iscsi/cxgbit/cxgbit_cm.c ret = dcb_ieee_getapp_mask(ndev, &iscsi_dcb_app); ndev 882 drivers/target/iscsi/cxgbit/cxgbit_cm.c ret = dcb_ieee_getapp_mask(ndev, &iscsi_dcb_app); ndev 887 drivers/target/iscsi/cxgbit/cxgbit_cm.c ret = dcb_getapp(ndev, &iscsi_dcb_app); ndev 903 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct net_device *ndev; ndev 920 drivers/target/iscsi/cxgbit/cxgbit_cm.c ndev = cxgbit_ipv4_netdev(*(__be32 *)peer_ip); ndev 922 drivers/target/iscsi/cxgbit/cxgbit_cm.c ndev = cxgbit_ipv6_netdev((struct in6_addr *)peer_ip); ndev 924 drivers/target/iscsi/cxgbit/cxgbit_cm.c ndev = NULL; ndev 926 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (!ndev) { ndev 932 drivers/target/iscsi/cxgbit/cxgbit_cm.c n, ndev, 0); ndev 935 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk->mtu = ndev->mtu; ndev 936 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk->tx_chan = cxgb4_port_chan(ndev); ndev 938 drivers/target/iscsi/cxgbit/cxgbit_cm.c ((struct port_info *)netdev_priv(ndev))->smt_idx; ndev 941 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk->txq_idx = cxgb4_port_idx(ndev) * step; ndev 944 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk->ctrlq_idx = cxgb4_port_idx(ndev); ndev 946 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgb4_port_idx(ndev) * step]; ndev 947 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk->port_id = cxgb4_port_idx(ndev); ndev 949 drivers/target/iscsi/cxgbit/cxgbit_cm.c (struct port_info *)netdev_priv(ndev)); ndev 951 drivers/target/iscsi/cxgbit/cxgbit_cm.c ndev = cxgbit_get_real_dev(n->dev); ndev 952 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (!ndev) { ndev 958 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (cxgbit_get_iscsi_dcb_state(ndev)) ndev 959 drivers/target/iscsi/cxgbit/cxgbit_cm.c priority = cxgbit_get_iscsi_dcb_priority(ndev, ndev 964 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk->l2t = cxgb4_l2t_get(cdev->lldi.l2t, n, ndev, priority); ndev 966 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk->l2t = cxgb4_l2t_get(cdev->lldi.l2t, n, ndev, 0); ndev 970 drivers/target/iscsi/cxgbit/cxgbit_cm.c port_id = cxgb4_port_idx(ndev); ndev 972 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk->tx_chan = cxgb4_port_chan(ndev); ndev 974 drivers/target/iscsi/cxgbit/cxgbit_cm.c ((struct port_info *)netdev_priv(ndev))->smt_idx; ndev 979 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk->ctrlq_idx = cxgb4_port_idx(ndev); ndev 987 drivers/target/iscsi/cxgbit/cxgbit_cm.c (struct port_info *)netdev_priv(ndev)); ndev 298 drivers/target/iscsi/cxgbit/cxgbit_ddp.c struct net_device *ndev = cdev->lldi.ports[0]; ndev 304 drivers/target/iscsi/cxgbit/cxgbit_ddp.c pr_warn("%s, iscsi NOT enabled, check config!\n", ndev->name); ndev 583 drivers/target/iscsi/cxgbit/cxgbit_main.c struct net_device *ndev; ndev 613 drivers/target/iscsi/cxgbit/cxgbit_main.c ndev = dev_get_by_index(&init_net, iscsi_app->ifindex); ndev 615 drivers/target/iscsi/cxgbit/cxgbit_main.c if (!ndev) ndev 619 drivers/target/iscsi/cxgbit/cxgbit_main.c cdev = cxgbit_find_device(ndev, &port_id); ndev 621 drivers/target/iscsi/cxgbit/cxgbit_main.c dev_put(ndev); ndev 391 drivers/tty/nozomi.c struct nozomi *ndev = get_dc_by_tty(tty); ndev 392 drivers/tty/nozomi.c return ndev ? &ndev->port[tty->index % MAX_PORT] : NULL; ndev 83 drivers/tty/serial/8250/serial_cs.c int ndev; ndev 274 drivers/tty/serial/8250/serial_cs.c for (i = 0; i < info->ndev; i++) ndev 286 drivers/tty/serial/8250/serial_cs.c for (i = 0; i < info->ndev; i++) ndev 297 drivers/tty/serial/8250/serial_cs.c for (i = 0; i < info->ndev; i++) ndev 368 drivers/tty/serial/8250/serial_cs.c info->line[info->ndev] = line; ndev 369 drivers/tty/serial/8250/serial_cs.c info->ndev++; ndev 663 drivers/tty/serial/8250/serial_cs.c if (i || info->ndev == 0) ndev 314 drivers/usb/gadget/udc/net2280.h #define ep_dbg(ndev, fmt, args...) \ ndev 315 drivers/usb/gadget/udc/net2280.h dev_dbg((&((ndev)->pdev->dev)), fmt, ##args) ndev 317 drivers/usb/gadget/udc/net2280.h #define ep_vdbg(ndev, fmt, args...) \ ndev 318 drivers/usb/gadget/udc/net2280.h dev_vdbg((&((ndev)->pdev->dev)), fmt, ##args) ndev 320 drivers/usb/gadget/udc/net2280.h #define ep_info(ndev, fmt, args...) \ ndev 321 drivers/usb/gadget/udc/net2280.h dev_info((&((ndev)->pdev->dev)), fmt, ##args) ndev 323 drivers/usb/gadget/udc/net2280.h #define ep_warn(ndev, fmt, args...) \ ndev 324 drivers/usb/gadget/udc/net2280.h dev_warn((&((ndev)->pdev->dev)), fmt, ##args) ndev 326 drivers/usb/gadget/udc/net2280.h #define ep_err(ndev, fmt, args...) \ ndev 327 drivers/usb/gadget/udc/net2280.h dev_err((&((ndev)->pdev->dev)), fmt, ##args) ndev 543 drivers/video/fbdev/macfb.c struct nubus_rsrc *ndev = NULL; ndev 657 drivers/video/fbdev/macfb.c for_each_func_rsrc(ndev) { ndev 658 drivers/video/fbdev/macfb.c unsigned long base = ndev->board->slot_addr; ndev 664 drivers/video/fbdev/macfb.c if (ndev->category != NUBUS_CAT_DISPLAY || ndev 665 drivers/video/fbdev/macfb.c ndev->type != NUBUS_TYPE_VIDEO) ndev 671 drivers/video/fbdev/macfb.c switch(ndev->dr_hw) { ndev 49 fs/efs/efs.h __be32 ndev; ndev 118 fs/efs/inode.c rdev = be32_to_cpu(efs_inode->di_u.di_dev.ndev); ndev 61 include/linux/netpoll.h int __netpoll_setup(struct netpoll *np, struct net_device *ndev); ndev 1189 include/linux/phy.h int phy_ethtool_get_link_ksettings(struct net_device *ndev, ndev 1191 include/linux/phy.h int phy_ethtool_set_link_ksettings(struct net_device *ndev, ndev 1193 include/linux/phy.h int phy_ethtool_nway_reset(struct net_device *ndev); ndev 146 include/net/caif/caif_hsi.h struct net_device *ndev; ndev 101 include/net/caif/caif_spi.h struct net_device *ndev; ndev 28 include/net/ncsi.h void (*handler)(struct ncsi_dev *ndev); ndev 244 include/net/nfc/digital.h void nfc_digital_free_device(struct nfc_digital_dev *ndev); ndev 245 include/net/nfc/digital.h int nfc_digital_register_device(struct nfc_digital_dev *ndev); ndev 246 include/net/nfc/digital.h void nfc_digital_unregister_device(struct nfc_digital_dev *ndev); ndev 248 include/net/nfc/digital.h static inline void nfc_digital_set_parent_dev(struct nfc_digital_dev *ndev, ndev 251 include/net/nfc/digital.h nfc_set_parent_dev(ndev->nfc_dev, dev); ndev 100 include/net/nfc/hci.h struct nfc_dev *ndev; ndev 174 include/net/nfc/hci.h return nfc_set_vendor_cmds(hdev->ndev, cmds, n_cmds); ndev 65 include/net/nfc/nci_core.h int (*init)(struct nci_dev *ndev); ndev 66 include/net/nfc/nci_core.h int (*open)(struct nci_dev *ndev); ndev 67 include/net/nfc/nci_core.h int (*close)(struct nci_dev *ndev); ndev 68 include/net/nfc/nci_core.h int (*send)(struct nci_dev *ndev, struct sk_buff *skb); ndev 69 include/net/nfc/nci_core.h int (*setup)(struct nci_dev *ndev); ndev 70 include/net/nfc/nci_core.h int (*post_setup)(struct nci_dev *ndev); ndev 71 include/net/nfc/nci_core.h int (*fw_download)(struct nci_dev *ndev, const char *firmware_name); ndev 72 include/net/nfc/nci_core.h __u32 (*get_rfprotocol)(struct nci_dev *ndev, __u8 rf_protocol); ndev 73 include/net/nfc/nci_core.h int (*discover_se)(struct nci_dev *ndev); ndev 74 include/net/nfc/nci_core.h int (*disable_se)(struct nci_dev *ndev, u32 se_idx); ndev 75 include/net/nfc/nci_core.h int (*enable_se)(struct nci_dev *ndev, u32 se_idx); ndev 76 include/net/nfc/nci_core.h int (*se_io)(struct nci_dev *ndev, u32 se_idx, ndev 79 include/net/nfc/nci_core.h int (*hci_load_session)(struct nci_dev *ndev); ndev 80 include/net/nfc/nci_core.h void (*hci_event_received)(struct nci_dev *ndev, u8 pipe, u8 event, ndev 82 include/net/nfc/nci_core.h void (*hci_cmd_received)(struct nci_dev *ndev, u8 pipe, u8 cmd, ndev 180 include/net/nfc/nci_core.h struct nci_dev *ndev; ndev 274 include/net/nfc/nci_core.h void nci_free_device(struct nci_dev *ndev); ndev 275 include/net/nfc/nci_core.h int nci_register_device(struct nci_dev *ndev); ndev 276 include/net/nfc/nci_core.h void nci_unregister_device(struct nci_dev *ndev); ndev 277 include/net/nfc/nci_core.h int nci_request(struct nci_dev *ndev, ndev 278 include/net/nfc/nci_core.h void (*req)(struct nci_dev *ndev, ndev 281 include/net/nfc/nci_core.h int nci_prop_cmd(struct nci_dev *ndev, __u8 oid, size_t len, __u8 *payload); ndev 282 include/net/nfc/nci_core.h int nci_core_cmd(struct nci_dev *ndev, __u16 opcode, size_t len, __u8 *payload); ndev 283 include/net/nfc/nci_core.h int nci_core_reset(struct nci_dev *ndev); ndev 284 include/net/nfc/nci_core.h int nci_core_init(struct nci_dev *ndev); ndev 286 include/net/nfc/nci_core.h int nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb); ndev 287 include/net/nfc/nci_core.h int nci_send_frame(struct nci_dev *ndev, struct sk_buff *skb); ndev 288 include/net/nfc/nci_core.h int nci_set_config(struct nci_dev *ndev, __u8 id, size_t len, __u8 *val); ndev 290 include/net/nfc/nci_core.h int nci_nfcee_discover(struct nci_dev *ndev, u8 action); ndev 291 include/net/nfc/nci_core.h int nci_nfcee_mode_set(struct nci_dev *ndev, u8 nfcee_id, u8 nfcee_mode); ndev 292 include/net/nfc/nci_core.h int nci_core_conn_create(struct nci_dev *ndev, u8 destination_type, ndev 296 include/net/nfc/nci_core.h int nci_core_conn_close(struct nci_dev *ndev, u8 conn_id); ndev 297 include/net/nfc/nci_core.h int nci_nfcc_loopback(struct nci_dev *ndev, void *data, size_t data_len, ndev 300 include/net/nfc/nci_core.h struct nci_hci_dev *nci_hci_allocate(struct nci_dev *ndev); ndev 301 include/net/nfc/nci_core.h int nci_hci_send_event(struct nci_dev *ndev, u8 gate, u8 event, ndev 303 include/net/nfc/nci_core.h int nci_hci_send_cmd(struct nci_dev *ndev, u8 gate, ndev 306 include/net/nfc/nci_core.h int nci_hci_open_pipe(struct nci_dev *ndev, u8 pipe); ndev 307 include/net/nfc/nci_core.h int nci_hci_connect_gate(struct nci_dev *ndev, u8 dest_host, ndev 309 include/net/nfc/nci_core.h int nci_hci_set_param(struct nci_dev *ndev, u8 gate, u8 idx, ndev 311 include/net/nfc/nci_core.h int nci_hci_get_param(struct nci_dev *ndev, u8 gate, u8 idx, ndev 313 include/net/nfc/nci_core.h int nci_hci_clear_all_pipes(struct nci_dev *ndev); ndev 314 include/net/nfc/nci_core.h int nci_hci_dev_session_init(struct nci_dev *ndev); ndev 316 include/net/nfc/nci_core.h static inline struct sk_buff *nci_skb_alloc(struct nci_dev *ndev, ndev 322 include/net/nfc/nci_core.h skb = alloc_skb(len + ndev->tx_headroom + ndev->tx_tailroom, how); ndev 324 include/net/nfc/nci_core.h skb_reserve(skb, ndev->tx_headroom); ndev 329 include/net/nfc/nci_core.h static inline void nci_set_parent_dev(struct nci_dev *ndev, struct device *dev) ndev 331 include/net/nfc/nci_core.h nfc_set_parent_dev(ndev->nfc_dev, dev); ndev 334 include/net/nfc/nci_core.h static inline void nci_set_drvdata(struct nci_dev *ndev, void *data) ndev 336 include/net/nfc/nci_core.h ndev->driver_data = data; ndev 339 include/net/nfc/nci_core.h static inline void *nci_get_drvdata(struct nci_dev *ndev) ndev 341 include/net/nfc/nci_core.h return ndev->driver_data; ndev 344 include/net/nfc/nci_core.h static inline int nci_set_vendor_cmds(struct nci_dev *ndev, ndev 348 include/net/nfc/nci_core.h return nfc_set_vendor_cmds(ndev->nfc_dev, cmds, n_cmds); ndev 351 include/net/nfc/nci_core.h void nci_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb); ndev 352 include/net/nfc/nci_core.h void nci_ntf_packet(struct nci_dev *ndev, struct sk_buff *skb); ndev 353 include/net/nfc/nci_core.h int nci_prop_rsp_packet(struct nci_dev *ndev, __u16 opcode, ndev 355 include/net/nfc/nci_core.h int nci_prop_ntf_packet(struct nci_dev *ndev, __u16 opcode, ndev 357 include/net/nfc/nci_core.h int nci_core_rsp_packet(struct nci_dev *ndev, __u16 opcode, ndev 359 include/net/nfc/nci_core.h int nci_core_ntf_packet(struct nci_dev *ndev, __u16 opcode, ndev 361 include/net/nfc/nci_core.h void nci_rx_data_packet(struct nci_dev *ndev, struct sk_buff *skb); ndev 362 include/net/nfc/nci_core.h int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, void *payload); ndev 363 include/net/nfc/nci_core.h int nci_send_data(struct nci_dev *ndev, __u8 conn_id, struct sk_buff *skb); ndev 364 include/net/nfc/nci_core.h int nci_conn_max_data_pkt_payload_size(struct nci_dev *ndev, __u8 conn_id); ndev 365 include/net/nfc/nci_core.h void nci_data_exchange_complete(struct nci_dev *ndev, struct sk_buff *skb, ndev 369 include/net/nfc/nci_core.h void nci_clear_target_list(struct nci_dev *ndev); ndev 376 include/net/nfc/nci_core.h void nci_req_complete(struct nci_dev *ndev, int result); ndev 377 include/net/nfc/nci_core.h struct nci_conn_info *nci_get_conn_info_by_conn_id(struct nci_dev *ndev, ndev 379 include/net/nfc/nci_core.h int nci_get_conn_info_by_dest_type_params(struct nci_dev *ndev, u8 dest_type, ndev 391 include/net/nfc/nci_core.h struct nci_dev *ndev; ndev 411 include/net/nfc/nci_core.h struct nci_dev *ndev); ndev 447 include/net/nfc/nci_core.h struct nci_dev *ndev; ndev 104 include/pcmcia/cistpl.h u_char ndev; ndev 45 include/rdma/ib_cache.h struct net_device *ndev); ndev 50 include/rdma/ib_cache.h struct net_device *ndev); ndev 545 include/rdma/ib_sa.h struct net_device *ndev, ndev 169 include/rdma/ib_verbs.h struct net_device __rcu *ndev; ndev 4312 include/rdma/ib_verbs.h struct ib_device *ib_device_get_by_netdev(struct net_device *ndev, ndev 4319 include/rdma/ib_verbs.h int ib_device_set_netdev(struct ib_device *ib_dev, struct net_device *ndev, ndev 116 include/rdma/rdma_netlink.h int (*newlink)(const char *ibdev_name, struct net_device *ndev); ndev 56 net/can/j1939/address-claim.c netdev_notice(priv->ndev, "tx address claim with dlc %i\n", ndev 62 net/can/j1939/address-claim.c netdev_notice(priv->ndev, "tx address claim with different name\n"); ndev 67 net/can/j1939/address-claim.c netdev_notice(priv->ndev, "tx address claim with broadcast sa\n"); ndev 73 net/can/j1939/address-claim.c netdev_notice(priv->ndev, "tx address claim with dest, not broadcast\n"); ndev 106 net/can/j1939/address-claim.c netdev_notice(priv->ndev, "tx drop: invalid sa for name 0x%016llx\n", ndev 117 net/can/j1939/address-claim.c netdev_notice(priv->ndev, "tx drop: invalid da for name 0x%016llx\n", ndev 133 net/can/j1939/address-claim.c netdev_notice(priv->ndev, "rx address claim with wrong dlc %i\n", ndev 141 net/can/j1939/address-claim.c netdev_notice(priv->ndev, "rx address claim without name\n"); ndev 146 net/can/j1939/address-claim.c netdev_notice(priv->ndev, "rx address claim with broadcast sa\n"); ndev 61 net/can/j1939/bus.c netdev_warn(priv->ndev, "Trying to map already mapped ECU, addr: 0x%02x, name: 0x%016llx. Skip it.\n", ndev 59 net/can/j1939/j1939-priv.h struct net_device *ndev; ndev 203 net/can/j1939/j1939-priv.h struct j1939_priv *j1939_netdev_start(struct net_device *ndev); ndev 120 net/can/j1939/main.c static struct j1939_priv *j1939_priv_create(struct net_device *ndev) ndev 130 net/can/j1939/main.c priv->ndev = ndev; ndev 133 net/can/j1939/main.c dev_hold(ndev); ndev 135 net/can/j1939/main.c netdev_dbg(priv->ndev, "%s : 0x%p\n", __func__, priv); ndev 140 net/can/j1939/main.c static inline void j1939_priv_set(struct net_device *ndev, ndev 143 net/can/j1939/main.c struct can_ml_priv *can_ml_priv = ndev->ml_priv; ndev 151 net/can/j1939/main.c struct net_device *ndev = priv->ndev; ndev 153 net/can/j1939/main.c netdev_dbg(priv->ndev, "%s: 0x%p\n", __func__, priv); ndev 159 net/can/j1939/main.c dev_put(ndev); ndev 175 net/can/j1939/main.c struct net_device *ndev = priv->ndev; ndev 179 net/can/j1939/main.c ret = can_rx_register(dev_net(ndev), ndev, J1939_CAN_ID, J1939_CAN_MASK, ndev 191 net/can/j1939/main.c struct net_device *ndev = priv->ndev; ndev 193 net/can/j1939/main.c can_rx_unregister(dev_net(ndev), ndev, J1939_CAN_ID, J1939_CAN_MASK, ndev 207 net/can/j1939/main.c j1939_priv_set(priv->ndev, NULL); ndev 212 net/can/j1939/main.c static inline struct j1939_priv *j1939_ndev_to_priv(struct net_device *ndev) ndev 214 net/can/j1939/main.c struct can_ml_priv *can_ml_priv = ndev->ml_priv; ndev 222 net/can/j1939/main.c static struct j1939_priv *j1939_priv_get_by_ndev_locked(struct net_device *ndev) ndev 228 net/can/j1939/main.c if (ndev->type != ARPHRD_CAN) ndev 231 net/can/j1939/main.c priv = j1939_ndev_to_priv(ndev); ndev 238 net/can/j1939/main.c static struct j1939_priv *j1939_priv_get_by_ndev(struct net_device *ndev) ndev 243 net/can/j1939/main.c priv = j1939_priv_get_by_ndev_locked(ndev); ndev 249 net/can/j1939/main.c struct j1939_priv *j1939_netdev_start(struct net_device *ndev) ndev 254 net/can/j1939/main.c priv = j1939_priv_get_by_ndev(ndev); ndev 260 net/can/j1939/main.c priv = j1939_priv_create(ndev); ndev 269 net/can/j1939/main.c priv_new = j1939_priv_get_by_ndev_locked(ndev); ndev 275 net/can/j1939/main.c dev_put(ndev); ndev 280 net/can/j1939/main.c j1939_priv_set(ndev, priv); ndev 290 net/can/j1939/main.c j1939_priv_set(ndev, NULL); ndev 291 net/can/j1939/main.c dev_put(ndev); ndev 350 net/can/j1939/main.c struct net_device *ndev = netdev_notifier_info_to_dev(data); ndev 353 net/can/j1939/main.c priv = j1939_priv_get_by_ndev(ndev); ndev 357 net/can/j1939/main.c if (ndev->type != ARPHRD_CAN) ndev 137 net/can/j1939/socket.c netdev_dbg(priv->ndev, "%s: err: %i\n", __func__, err); ndev 455 net/can/j1939/socket.c struct net_device *ndev; ndev 457 net/can/j1939/socket.c ndev = dev_get_by_index(net, addr->can_ifindex); ndev 458 net/can/j1939/socket.c if (!ndev) { ndev 463 net/can/j1939/socket.c if (ndev->type != ARPHRD_CAN) { ndev 464 net/can/j1939/socket.c dev_put(ndev); ndev 469 net/can/j1939/socket.c priv = j1939_netdev_start(ndev); ndev 470 net/can/j1939/socket.c dev_put(ndev); ndev 833 net/can/j1939/socket.c static struct sk_buff *j1939_sk_alloc_skb(struct net_device *ndev, ndev 853 net/can/j1939/socket.c can_skb_prv(skb)->ifindex = ndev->ifindex; ndev 861 net/can/j1939/socket.c skb->dev = ndev; ndev 978 net/can/j1939/socket.c netdev_err(priv->ndev, "Unknown errqueue type %i\n", type); ndev 985 net/can/j1939/socket.c netdev_dbg(session->priv->ndev, "%s: 0x%p tskey: %i, state: %s\n", ndev 1025 net/can/j1939/socket.c skb = j1939_sk_alloc_skb(priv->ndev, sk, msg, segment_size, ndev 1068 net/can/j1939/socket.c netdev_warn(priv->ndev, ndev 229 net/can/j1939/transport.c netdev_warn(priv->ndev, "Unknown abort code %i", abort); ndev 268 net/can/j1939/transport.c netdev_dbg(session->priv->ndev, "%s: 0x%p\n", __func__, session); ndev 378 net/can/j1939/transport.c netdev_dbg(priv->ndev, "%s: 0x%p: no skb found for start: %i, queue size: %i\n", ndev 573 net/can/j1939/transport.c skb->dev = priv->ndev; ndev 575 net/can/j1939/transport.c can_skb_prv(skb)->ifindex = priv->ndev->ifindex; ndev 724 net/can/j1939/transport.c netdev_dbg(session->priv->ndev, "%s: 0x%p\n", __func__, session); ndev 753 net/can/j1939/transport.c netdev_dbg(session->priv->ndev, "%s: 0x%p\n", __func__, session); ndev 795 net/can/j1939/transport.c netdev_alert(priv->ndev, ndev 825 net/can/j1939/transport.c netdev_alert(priv->ndev, "%s: 0x%p: called by not transmitter!\n", ndev 851 net/can/j1939/transport.c netdev_alert(priv->ndev, "%s: 0x%p: unexpected last_cmd: %x\n", ndev 898 net/can/j1939/transport.c netdev_dbg(session->priv->ndev, "%s: 0x%p\n", __func__, session); ndev 940 net/can/j1939/transport.c netdev_dbg(session->priv->ndev, "%p: 0x%p\n", __func__, session); ndev 951 net/can/j1939/transport.c netdev_alert(priv->ndev, "%s: 0x%p: called by not receiver!\n", ndev 978 net/can/j1939/transport.c netdev_alert(priv->ndev, "%s: 0x%p: unexpected last_cmd: %x\n", ndev 1108 net/can/j1939/transport.c netdev_alert(priv->ndev, "%s: 0x%p: tx retry count reached\n", ndev 1127 net/can/j1939/transport.c netdev_alert(priv->ndev, "%s: 0x%p: tx aborted with unknown reason: %i\n", ndev 1164 net/can/j1939/transport.c netdev_alert(priv->ndev, "%s: 0x%p: abort rx timeout. Force session deactivation\n", ndev 1170 net/can/j1939/transport.c netdev_alert(priv->ndev, "%s: 0x%p: Timeout. Failed to send simple message.\n", ndev 1179 net/can/j1939/transport.c netdev_alert(priv->ndev, "%s: 0x%p: rx timeout, send abort\n", ndev 1244 net/can/j1939/transport.c netdev_warn(priv->ndev, "%s: 0x%p: CMD 0x%02x with PGN 0x%05x for running session with different PGN 0x%05x.\n", ndev 1267 net/can/j1939/transport.c netdev_info(priv->ndev, "%s: 0x%p: 0x%05x: (%u) %s\n", __func__, ndev 1308 net/can/j1939/transport.c netdev_warn_once(session->priv->ndev, ndev 1314 net/can/j1939/transport.c netdev_dbg(session->priv->ndev, "%s: 0x%p\n", __func__, session); ndev 1350 net/can/j1939/transport.c netdev_dbg(session->priv->ndev, "%s: 0x%p\n", __func__, session); ndev 1444 net/can/j1939/transport.c netdev_dbg(priv->ndev, "%s: 0x%p: sa: %02x, da: %02x\n", ndev 1463 net/can/j1939/transport.c skb->dev = priv->ndev; ndev 1465 net/can/j1939/transport.c can_skb_prv(skb)->ifindex = priv->ndev->ifindex; ndev 1503 net/can/j1939/transport.c netdev_dbg(session->priv->ndev, "%s: 0x%p\n", ndev 1522 net/can/j1939/transport.c netdev_dbg(priv->ndev, "%s\n", __func__); ndev 1564 net/can/j1939/transport.c netdev_alert(priv->ndev, "%s: 0x%p: strange total, %u != %u\n", ndev 1596 net/can/j1939/transport.c netdev_alert(priv->ndev, "%s: 0x%p: connection exists (%02x %02x). last cmd: %x\n", ndev 1608 net/can/j1939/transport.c netdev_warn(priv->ndev, "%s: 0x%p: session->skcb.addr.sa=0x%02x skcb->addr.sa=0x%02x session->skcb.addr.da=0x%02x skcb->addr.da=0x%02x\n", ndev 1619 net/can/j1939/transport.c netdev_dbg(session->priv->ndev, "%s: 0x%p\n", __func__, session); ndev 1682 net/can/j1939/transport.c netdev_dbg(session->priv->ndev, "%s: 0x%p\n", __func__, session); ndev 1699 net/can/j1939/transport.c netdev_info(priv->ndev, ndev 1741 net/can/j1939/transport.c netdev_info(priv->ndev, "%s: 0x%p: last %02x\n", __func__, ndev 1749 net/can/j1939/transport.c netdev_info(priv->ndev, "%s: 0x%p: should have been completed\n", ndev 1755 net/can/j1939/transport.c netdev_warn(priv->ndev, "%s: 0x%p: no skb found\n", __func__, ndev 1766 net/can/j1939/transport.c netdev_info(priv->ndev, "%s: 0x%p: nbytes %i, len %i\n", ndev 1817 net/can/j1939/transport.c netdev_info(priv->ndev, "%s: no tx connection found\n", ndev 1827 net/can/j1939/transport.c netdev_info(priv->ndev, "%s: no rx connection found\n", ndev 1915 net/can/j1939/transport.c netdev_alert(priv->ndev, "%s: rts without destination (%02x)\n", ndev 2024 net/can/j1939/transport.c netdev_warn(priv->ndev, ndev 2039 net/can/j1939/transport.c netdev_dbg(priv->ndev, "%s, sk: %p\n", __func__, sk); ndev 44 net/core/net-sysfs.c struct net_device *ndev = to_net_dev(dev); ndev 48 net/core/net-sysfs.c if (dev_isalive(ndev)) ndev 49 net/core/net-sysfs.c ret = (*format)(ndev, buf); ndev 116 net/core/net-sysfs.c struct net_device *ndev = to_net_dev(dev); ndev 118 net/core/net-sysfs.c return sprintf(buf, fmt_dec, dev_get_iflink(ndev)); ndev 131 net/core/net-sysfs.c struct net_device *ndev = to_net_dev(dev); ndev 134 net/core/net-sysfs.c if (ndev->name_assign_type != NET_NAME_UNKNOWN) ndev 145 net/core/net-sysfs.c struct net_device *ndev = to_net_dev(dev); ndev 149 net/core/net-sysfs.c if (dev_isalive(ndev)) ndev 150 net/core/net-sysfs.c ret = sysfs_format_mac(buf, ndev->dev_addr, ndev->addr_len); ndev 159 net/core/net-sysfs.c struct net_device *ndev = to_net_dev(dev); ndev 161 net/core/net-sysfs.c if (dev_isalive(ndev)) ndev 162 net/core/net-sysfs.c return sysfs_format_mac(buf, ndev->broadcast, ndev->addr_len); ndev 1708 net/core/net-sysfs.c void netdev_unregister_kobject(struct net_device *ndev) ndev 1710 net/core/net-sysfs.c struct device *dev = &ndev->dev; ndev 1712 net/core/net-sysfs.c if (!refcount_read(&dev_net(ndev)->count)) ndev 1717 net/core/net-sysfs.c remove_queue_kobjects(ndev); ndev 1725 net/core/net-sysfs.c int netdev_register_kobject(struct net_device *ndev) ndev 1727 net/core/net-sysfs.c struct device *dev = &ndev->dev; ndev 1728 net/core/net-sysfs.c const struct attribute_group **groups = ndev->sysfs_groups; ndev 1733 net/core/net-sysfs.c dev->platform_data = ndev; ndev 1736 net/core/net-sysfs.c dev_set_name(dev, "%s", ndev->name); ndev 1746 net/core/net-sysfs.c if (ndev->ieee80211_ptr) ndev 1749 net/core/net-sysfs.c else if (ndev->wireless_handlers) ndev 1759 net/core/net-sysfs.c error = register_queue_kobjects(ndev); ndev 584 net/core/netpoll.c int __netpoll_setup(struct netpoll *np, struct net_device *ndev) ndev 590 net/core/netpoll.c np->dev = ndev; ndev 591 net/core/netpoll.c strlcpy(np->dev_name, ndev->name, IFNAMSIZ); ndev 593 net/core/netpoll.c if (ndev->priv_flags & IFF_DISABLE_NETPOLL) { ndev 600 net/core/netpoll.c if (!ndev->npinfo) { ndev 615 net/core/netpoll.c err = ops->ndo_netpoll_setup(ndev, npinfo); ndev 620 net/core/netpoll.c npinfo = rtnl_dereference(ndev->npinfo); ndev 627 net/core/netpoll.c rcu_assign_pointer(ndev->npinfo, npinfo); ndev 640 net/core/netpoll.c struct net_device *ndev = NULL; ndev 647 net/core/netpoll.c ndev = __dev_get_by_name(net, np->dev_name); ndev 649 net/core/netpoll.c if (!ndev) { ndev 654 net/core/netpoll.c dev_hold(ndev); ndev 656 net/core/netpoll.c if (netdev_master_upper_dev_get(ndev)) { ndev 662 net/core/netpoll.c if (!netif_running(ndev)) { ndev 667 net/core/netpoll.c err = dev_open(ndev, NULL); ndev 670 net/core/netpoll.c np_err(np, "failed to open %s\n", ndev->name); ndev 677 net/core/netpoll.c while (!netif_carrier_ok(ndev)) { ndev 701 net/core/netpoll.c in_dev = __in_dev_get_rtnl(ndev); ndev 721 net/core/netpoll.c idev = __in6_dev_get(ndev); ndev 754 net/core/netpoll.c err = __netpoll_setup(np, ndev); ndev 762 net/core/netpoll.c dev_put(ndev); ndev 208 net/ieee802154/6lowpan/core.c struct net_device *ndev = netdev_notifier_info_to_dev(ptr); ndev 211 net/ieee802154/6lowpan/core.c if (ndev->type != ARPHRD_IEEE802154) ndev 213 net/ieee802154/6lowpan/core.c wpan_dev = ndev->ieee802154_ptr; ndev 365 net/ipv6/addrconf.c struct inet6_dev *ndev; ndev 373 net/ipv6/addrconf.c ndev = kzalloc(sizeof(struct inet6_dev), GFP_KERNEL); ndev 374 net/ipv6/addrconf.c if (!ndev) ndev 377 net/ipv6/addrconf.c rwlock_init(&ndev->lock); ndev 378 net/ipv6/addrconf.c ndev->dev = dev; ndev 379 net/ipv6/addrconf.c INIT_LIST_HEAD(&ndev->addr_list); ndev 380 net/ipv6/addrconf.c timer_setup(&ndev->rs_timer, addrconf_rs_timer, 0); ndev 381 net/ipv6/addrconf.c memcpy(&ndev->cnf, dev_net(dev)->ipv6.devconf_dflt, sizeof(ndev->cnf)); ndev 383 net/ipv6/addrconf.c if (ndev->cnf.stable_secret.initialized) ndev 384 net/ipv6/addrconf.c ndev->cnf.addr_gen_mode = IN6_ADDR_GEN_MODE_STABLE_PRIVACY; ndev 386 net/ipv6/addrconf.c ndev->cnf.mtu6 = dev->mtu; ndev 387 net/ipv6/addrconf.c ndev->nd_parms = neigh_parms_alloc(dev, &nd_tbl); ndev 388 net/ipv6/addrconf.c if (!ndev->nd_parms) { ndev 389 net/ipv6/addrconf.c kfree(ndev); ndev 392 net/ipv6/addrconf.c if (ndev->cnf.forwarding) ndev 397 net/ipv6/addrconf.c if (snmp6_alloc_dev(ndev) < 0) { ndev 400 net/ipv6/addrconf.c neigh_parms_release(&nd_tbl, ndev->nd_parms); ndev 402 net/ipv6/addrconf.c kfree(ndev); ndev 406 net/ipv6/addrconf.c if (snmp6_register_dev(ndev) < 0) { ndev 413 net/ipv6/addrconf.c refcount_set(&ndev->refcnt, 1); ndev 416 net/ipv6/addrconf.c ndev->cnf.accept_dad = -1; ndev 421 net/ipv6/addrconf.c ndev->cnf.rtr_solicits = 0; ndev 425 net/ipv6/addrconf.c INIT_LIST_HEAD(&ndev->tempaddr_list); ndev 426 net/ipv6/addrconf.c ndev->desync_factor = U32_MAX; ndev 432 net/ipv6/addrconf.c ndev->cnf.use_tempaddr = -1; ndev 434 net/ipv6/addrconf.c ipv6_regen_rndid(ndev); ndev 436 net/ipv6/addrconf.c ndev->token = in6addr_any; ndev 439 net/ipv6/addrconf.c ndev->if_flags |= IF_READY; ndev 441 net/ipv6/addrconf.c ipv6_mc_init_dev(ndev); ndev 442 net/ipv6/addrconf.c ndev->tstamp = jiffies; ndev 443 net/ipv6/addrconf.c err = addrconf_sysctl_register(ndev); ndev 445 net/ipv6/addrconf.c ipv6_mc_destroy_dev(ndev); ndev 446 net/ipv6/addrconf.c snmp6_unregister_dev(ndev); ndev 450 net/ipv6/addrconf.c rcu_assign_pointer(dev->ip6_ptr, ndev); ndev 459 net/ipv6/addrconf.c if (ndev->cnf.forwarding && (dev->flags & IFF_MULTICAST)) ndev 462 net/ipv6/addrconf.c return ndev; ndev 465 net/ipv6/addrconf.c neigh_parms_release(&nd_tbl, ndev->nd_parms); ndev 466 net/ipv6/addrconf.c ndev->dead = 1; ndev 467 net/ipv6/addrconf.c in6_dev_finish_destroy(ndev); ndev 1728 net/mac80211/iface.c struct net_device *ndev = NULL; ndev 1770 net/mac80211/iface.c ndev = alloc_netdev_mqs(size + txq_size, ndev 1773 net/mac80211/iface.c if (!ndev) ndev 1775 net/mac80211/iface.c dev_net_set(ndev, wiphy_net(local->hw.wiphy)); ndev 1777 net/mac80211/iface.c ndev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); ndev 1778 net/mac80211/iface.c if (!ndev->tstats) { ndev 1779 net/mac80211/iface.c free_netdev(ndev); ndev 1783 net/mac80211/iface.c ndev->needed_headroom = local->tx_headroom + ndev 1790 net/mac80211/iface.c ndev->needed_tailroom = IEEE80211_ENCRYPT_TAILROOM; ndev 1792 net/mac80211/iface.c ret = dev_alloc_name(ndev, ndev->name); ndev 1794 net/mac80211/iface.c ieee80211_if_free(ndev); ndev 1795 net/mac80211/iface.c free_netdev(ndev); ndev 1799 net/mac80211/iface.c ieee80211_assign_perm_addr(local, ndev->perm_addr, type); ndev 1801 net/mac80211/iface.c memcpy(ndev->dev_addr, params->macaddr, ETH_ALEN); ndev 1803 net/mac80211/iface.c memcpy(ndev->dev_addr, ndev->perm_addr, ETH_ALEN); ndev 1804 net/mac80211/iface.c SET_NETDEV_DEV(ndev, wiphy_dev(local->hw.wiphy)); ndev 1807 net/mac80211/iface.c sdata = netdev_priv(ndev); ndev 1808 net/mac80211/iface.c ndev->ieee80211_ptr = &sdata->wdev; ndev 1809 net/mac80211/iface.c memcpy(sdata->vif.addr, ndev->dev_addr, ETH_ALEN); ndev 1810 net/mac80211/iface.c memcpy(sdata->name, ndev->name, IFNAMSIZ); ndev 1813 net/mac80211/iface.c txqi = netdev_priv(ndev) + size; ndev 1817 net/mac80211/iface.c sdata->dev = ndev; ndev 1868 net/mac80211/iface.c if (ndev) { ndev 1869 net/mac80211/iface.c ndev->ieee80211_ptr->use_4addr = params->use_4addr; ndev 1873 net/mac80211/iface.c ndev->features |= local->hw.netdev_features; ndev 1875 net/mac80211/iface.c netdev_set_default_ethtool_ops(ndev, &ieee80211_ethtool_ops); ndev 1878 net/mac80211/iface.c ndev->min_mtu = 256; ndev 1879 net/mac80211/iface.c ndev->max_mtu = local->hw.max_mtu; ndev 1881 net/mac80211/iface.c ret = register_netdevice(ndev); ndev 1883 net/mac80211/iface.c free_netdev(ndev); ndev 325 net/mac80211/main.c struct net_device *ndev = ifa->ifa_dev->dev; ndev 326 net/mac80211/main.c struct wireless_dev *wdev = ndev->ieee80211_ptr; ndev 340 net/mac80211/main.c sdata = IEEE80211_DEV_TO_SUB_IF(ndev); ndev 382 net/mac80211/main.c struct net_device *ndev = ifa->idev->dev; ndev 385 net/mac80211/main.c struct wireless_dev *wdev = ndev->ieee80211_ptr; ndev 392 net/mac80211/main.c sdata = IEEE80211_DEV_TO_SUB_IF(ndev); ndev 618 net/mac802154/iface.c struct net_device *ndev = NULL; ndev 624 net/mac802154/iface.c ndev = alloc_netdev(sizeof(*sdata), name, ndev 626 net/mac802154/iface.c if (!ndev) ndev 629 net/mac802154/iface.c ndev->needed_headroom = local->hw.extra_tx_headroom + ndev 632 net/mac802154/iface.c ret = dev_alloc_name(ndev, ndev->name); ndev 636 net/mac802154/iface.c ieee802154_le64_to_be64(ndev->perm_addr, ndev 640 net/mac802154/iface.c ndev->type = ARPHRD_IEEE802154; ndev 642 net/mac802154/iface.c ieee802154_le64_to_be64(ndev->dev_addr, &extended_addr); ndev 644 net/mac802154/iface.c memcpy(ndev->dev_addr, ndev->perm_addr, ndev 648 net/mac802154/iface.c ndev->type = ARPHRD_IEEE802154_MONITOR; ndev 656 net/mac802154/iface.c SET_NETDEV_DEV(ndev, &local->phy->dev); ndev 657 net/mac802154/iface.c dev_net_set(ndev, wpan_phy_net(local->hw.phy)); ndev 658 net/mac802154/iface.c sdata = netdev_priv(ndev); ndev 659 net/mac802154/iface.c ndev->ieee802154_ptr = &sdata->wpan_dev; ndev 660 net/mac802154/iface.c memcpy(sdata->name, ndev->name, IFNAMSIZ); ndev 661 net/mac802154/iface.c sdata->dev = ndev; ndev 670 net/mac802154/iface.c ret = register_netdevice(ndev); ndev 678 net/mac802154/iface.c return ndev; ndev 681 net/mac802154/iface.c free_netdev(ndev); ndev 288 net/ncsi/internal.h struct ncsi_dev ndev; /* Associated NCSI device */ ndev 338 net/ncsi/internal.h container_of(nd, struct ncsi_dev_priv, ndev) ndev 77 net/ncsi/ncsi-aen.c netdev_dbg(ndp->ndev.dev, "NCSI: LSC AEN - channel %u state %s\n", ndev 85 net/ncsi/ncsi-aen.c netdev_warn(ndp->ndev.dev, ndev 109 net/ncsi/ncsi-aen.c return ncsi_reset_dev(&ndp->ndev); ndev 190 net/ncsi/ncsi-aen.c netdev_dbg(ndp->ndev.dev, ndev 224 net/ncsi/ncsi-aen.c netdev_warn(ndp->ndev.dev, "Invalid AEN (0x%x) received\n", ndev 231 net/ncsi/ncsi-aen.c netdev_warn(ndp->ndev.dev, ndev 239 net/ncsi/ncsi-aen.c netdev_err(ndp->ndev.dev, ndev 271 net/ncsi/ncsi-cmd.c struct ncsi_dev *nd = &ndp->ndev; ndev 337 net/ncsi/ncsi-cmd.c netdev_err(nca->ndp->ndev.dev, ndev 51 net/ncsi/ncsi-manage.c struct ncsi_dev *nd = &ndp->ndev; ndev 126 net/ncsi/ncsi-manage.c netdev_err(ndp->ndev.dev, "Error %d sending GLS\n", ndev 132 net/ncsi/ncsi-manage.c netdev_err(ndp->ndev.dev, "NCSI Channel %d timed out!\n", ndev 416 net/ncsi/ncsi-manage.c if (ndp->ndev.dev == dev) ndev 417 net/ncsi/ncsi-manage.c return &ndp->ndev; ndev 461 net/ncsi/ncsi-manage.c struct ncsi_dev *nd = &ndp->ndev; ndev 664 net/ncsi/ncsi-manage.c netdev_err(ndp->ndev.dev, ndev 702 net/ncsi/ncsi-manage.c netdev_err(nca->ndp->ndev.dev, ndev 727 net/ncsi/ncsi-manage.c netdev_err(nca->ndp->ndev.dev, ndev 761 net/ncsi/ncsi-manage.c netdev_err(nca->ndp->ndev.dev, ndev 830 net/ncsi/ncsi-manage.c netdev_warn(ndp->ndev.dev, ndev 888 net/ncsi/ncsi-manage.c netdev_err(ndp->ndev.dev, ndev 893 net/ncsi/ncsi-manage.c netdev_info(ndp->ndev.dev, "NCSI: channel %u enables Tx\n", enable->id); ndev 900 net/ncsi/ncsi-manage.c netdev_err(ndp->ndev.dev, ndev 912 net/ncsi/ncsi-manage.c struct ncsi_dev *nd = &ndp->ndev; ndev 936 net/ncsi/ncsi-manage.c netdev_err(ndp->ndev.dev, ndev 952 net/ncsi/ncsi-manage.c netdev_err(ndp->ndev.dev, ndev 1053 net/ncsi/ncsi-manage.c netdev_info(ndp->ndev.dev, ndev 1076 net/ncsi/ncsi-manage.c netdev_err(ndp->ndev.dev, ndev 1083 net/ncsi/ncsi-manage.c netdev_dbg(ndp->ndev.dev, "NCSI: channel %u config done\n", ndev 1118 net/ncsi/ncsi-manage.c netdev_dbg(ndp->ndev.dev, ndev 1199 net/ncsi/ncsi-manage.c netdev_dbg(ndp->ndev.dev, ndev 1215 net/ncsi/ncsi-manage.c netdev_info(ndp->ndev.dev, ndev 1222 net/ncsi/ncsi-manage.c netdev_warn(ndp->ndev.dev, ndev 1266 net/ncsi/ncsi-manage.c struct ncsi_dev *nd = &ndp->ndev; ndev 1396 net/ncsi/ncsi-manage.c netdev_err(ndp->ndev.dev, ndev 1406 net/ncsi/ncsi-manage.c struct ncsi_dev *nd = &ndp->ndev; ndev 1451 net/ncsi/ncsi-manage.c ndp->ndev.state = ncsi_dev_state_config; ndev 1452 net/ncsi/ncsi-manage.c netdev_dbg(ndp->ndev.dev, "NCSI: configuring channel %u\n", ndev 1457 net/ncsi/ncsi-manage.c ndp->ndev.state = ncsi_dev_state_suspend; ndev 1458 net/ncsi/ncsi-manage.c netdev_dbg(ndp->ndev.dev, "NCSI: suspending channel %u\n", ndev 1463 net/ncsi/ncsi-manage.c netdev_err(ndp->ndev.dev, "Invalid state 0x%x on %d:%d\n", ndev 1485 net/ncsi/ncsi-manage.c struct ncsi_dev *nd = &ndp->ndev; ndev 1502 net/ncsi/ncsi-manage.c if ((ndp->ndev.state & 0xff00) == ndev 1623 net/ncsi/ncsi-manage.c void (*handler)(struct ncsi_dev *ndev)) ndev 1640 net/ncsi/ncsi-manage.c nd = &ndp->ndev; ndev 1723 net/ncsi/ncsi-manage.c netdev_dbg(ndp->ndev.dev, "NCSI: Stopping device\n"); ndev 104 net/ncsi/ncsi-netlink.c netdev_info(ndp->ndev.dev, "NCSI: No package with id %u\n", id); ndev 313 net/ncsi/ncsi-netlink.c netdev_info(ndp->ndev.dev, ndev 338 net/ncsi/ncsi-netlink.c netdev_info(ndp->ndev.dev, ndev 342 net/ncsi/ncsi-netlink.c netdev_info(ndp->ndev.dev, "Set package 0x%x as preferred\n", ndev 347 net/ncsi/ncsi-netlink.c ncsi_reset_dev(&ndp->ndev); ndev 382 net/ncsi/ncsi-netlink.c netdev_info(ndp->ndev.dev, "NCSI: Cleared preferred package/channel\n"); ndev 386 net/ncsi/ncsi-netlink.c ncsi_reset_dev(&ndp->ndev); ndev 443 net/ncsi/ncsi-netlink.c netdev_info(ndp->ndev.dev, "NCSI: no command to send %u\n", ndev 465 net/ncsi/ncsi-netlink.c netdev_err(ndp->ndev.dev, ndev 468 net/ncsi/ncsi-netlink.c ncsi_send_netlink_err(ndp->ndev.dev, ndev 614 net/ncsi/ncsi-netlink.c netdev_err(ndp->ndev.dev, ndev 631 net/ncsi/ncsi-netlink.c ncsi_reset_dev(&ndp->ndev); ndev 687 net/ncsi/ncsi-netlink.c netdev_dbg(ndp->ndev.dev, ndev 695 net/ncsi/ncsi-netlink.c netdev_dbg(ndp->ndev.dev, ndev 703 net/ncsi/ncsi-netlink.c netdev_info(ndp->ndev.dev, ndev 714 net/ncsi/ncsi-netlink.c ncsi_reset_dev(&ndp->ndev); ndev 36 net/ncsi/ncsi-rsp.c netdev_dbg(nr->ndp->ndev.dev, ndev 41 net/ncsi/ncsi-rsp.c netdev_dbg(nr->ndp->ndev.dev, ndev 49 net/ncsi/ncsi-rsp.c netdev_dbg(nr->ndp->ndev.dev, ndev 67 net/ncsi/ncsi-rsp.c netdev_dbg(nr->ndp->ndev.dev, ndev 618 net/ncsi/ncsi-rsp.c struct net_device *ndev = ndp->ndev.dev; ndev 619 net/ncsi/ncsi-rsp.c const struct net_device_ops *ops = ndev->netdev_ops; ndev 627 net/ncsi/ncsi-rsp.c saddr.sa_family = ndev->type; ndev 628 net/ncsi/ncsi-rsp.c ndev->priv_flags |= IFF_LIVE_ADDR_CHANGE; ndev 630 net/ncsi/ncsi-rsp.c ret = ops->ndo_set_mac_address(ndev, &saddr); ndev 632 net/ncsi/ncsi-rsp.c netdev_warn(ndev, "NCSI: 'Writing mac address to device failed\n"); ndev 657 net/ncsi/ncsi-rsp.c struct net_device *ndev = ndp->ndev.dev; ndev 658 net/ncsi/ncsi-rsp.c const struct net_device_ops *ops = ndev->netdev_ops; ndev 666 net/ncsi/ncsi-rsp.c saddr.sa_family = ndev->type; ndev 667 net/ncsi/ncsi-rsp.c ndev->priv_flags |= IFF_LIVE_ADDR_CHANGE; ndev 674 net/ncsi/ncsi-rsp.c ret = ops->ndo_set_mac_address(ndev, &saddr); ndev 676 net/ncsi/ncsi-rsp.c netdev_warn(ndev, "NCSI: 'Writing mac address to device failed\n"); ndev 728 net/ncsi/ncsi-rsp.c netdev_err(nr->ndp->ndev.dev, "Received unrecognized OEM packet with MFR-ID (0x%x)\n", ndev 1167 net/ncsi/ncsi-rsp.c netdev_warn(ndp->ndev.dev, ndev 1175 net/ncsi/ncsi-rsp.c ncsi_send_netlink_err(ndp->ndev.dev, ndev 1187 net/ncsi/ncsi-rsp.c netdev_err(ndp->ndev.dev, ndev 1195 net/ncsi/ncsi-rsp.c netdev_err(ndp->ndev.dev, ndev 369 net/nfc/hci/core.c r = nfc_targets_found(hdev->ndev, targets, 1); ndev 839 net/nfc/hci/core.c nfc_driver_failure(hdev->ndev, err); ndev 979 net/nfc/hci/core.c hdev->ndev = nfc_allocate_device(&hci_nfc_ops, protocols, ndev 982 net/nfc/hci/core.c if (!hdev->ndev) { ndev 992 net/nfc/hci/core.c nfc_set_drvdata(hdev->ndev, hdev); ndev 1004 net/nfc/hci/core.c nfc_free_device(hdev->ndev); ndev 1026 net/nfc/hci/core.c return nfc_register_device(hdev->ndev); ndev 1054 net/nfc/hci/core.c nfc_unregister_device(hdev->ndev); ndev 27 net/nfc/hci/hcp.c struct nfc_dev *ndev = hdev->ndev; ndev 57 net/nfc/hci/hcp.c skb_len = ndev->tx_headroom + NFC_HCI_HCP_PACKET_HEADER_LEN + ndev 58 net/nfc/hci/hcp.c data_link_len + ndev->tx_tailroom; ndev 66 net/nfc/hci/hcp.c skb_reserve(skb, ndev->tx_headroom); ndev 1568 net/nfc/llcp_core.c int nfc_llcp_register_device(struct nfc_dev *ndev) ndev 1576 net/nfc/llcp_core.c local->dev = ndev; ndev 42 net/nfc/nci/core.c struct nci_conn_info *nci_get_conn_info_by_conn_id(struct nci_dev *ndev, ndev 47 net/nfc/nci/core.c list_for_each_entry(conn_info, &ndev->conn_info_list, list) { ndev 55 net/nfc/nci/core.c int nci_get_conn_info_by_dest_type_params(struct nci_dev *ndev, u8 dest_type, ndev 60 net/nfc/nci/core.c list_for_each_entry(conn_info, &ndev->conn_info_list, list) { ndev 77 net/nfc/nci/core.c void nci_req_complete(struct nci_dev *ndev, int result) ndev 79 net/nfc/nci/core.c if (ndev->req_status == NCI_REQ_PEND) { ndev 80 net/nfc/nci/core.c ndev->req_result = result; ndev 81 net/nfc/nci/core.c ndev->req_status = NCI_REQ_DONE; ndev 82 net/nfc/nci/core.c complete(&ndev->req_completion); ndev 87 net/nfc/nci/core.c static void nci_req_cancel(struct nci_dev *ndev, int err) ndev 89 net/nfc/nci/core.c if (ndev->req_status == NCI_REQ_PEND) { ndev 90 net/nfc/nci/core.c ndev->req_result = err; ndev 91 net/nfc/nci/core.c ndev->req_status = NCI_REQ_CANCELED; ndev 92 net/nfc/nci/core.c complete(&ndev->req_completion); ndev 97 net/nfc/nci/core.c static int __nci_request(struct nci_dev *ndev, ndev 98 net/nfc/nci/core.c void (*req)(struct nci_dev *ndev, unsigned long opt), ndev 104 net/nfc/nci/core.c ndev->req_status = NCI_REQ_PEND; ndev 106 net/nfc/nci/core.c reinit_completion(&ndev->req_completion); ndev 107 net/nfc/nci/core.c req(ndev, opt); ndev 109 net/nfc/nci/core.c wait_for_completion_interruptible_timeout(&ndev->req_completion, ndev 115 net/nfc/nci/core.c switch (ndev->req_status) { ndev 117 net/nfc/nci/core.c rc = nci_to_errno(ndev->req_result); ndev 121 net/nfc/nci/core.c rc = -ndev->req_result; ndev 135 net/nfc/nci/core.c ndev->req_status = ndev->req_result = 0; ndev 140 net/nfc/nci/core.c inline int nci_request(struct nci_dev *ndev, ndev 141 net/nfc/nci/core.c void (*req)(struct nci_dev *ndev, ndev 147 net/nfc/nci/core.c if (!test_bit(NCI_UP, &ndev->flags)) ndev 151 net/nfc/nci/core.c mutex_lock(&ndev->req_lock); ndev 152 net/nfc/nci/core.c rc = __nci_request(ndev, req, opt, timeout); ndev 153 net/nfc/nci/core.c mutex_unlock(&ndev->req_lock); ndev 158 net/nfc/nci/core.c static void nci_reset_req(struct nci_dev *ndev, unsigned long opt) ndev 163 net/nfc/nci/core.c nci_send_cmd(ndev, NCI_OP_CORE_RESET_CMD, 1, &cmd); ndev 166 net/nfc/nci/core.c static void nci_init_req(struct nci_dev *ndev, unsigned long opt) ndev 168 net/nfc/nci/core.c nci_send_cmd(ndev, NCI_OP_CORE_INIT_CMD, 0, NULL); ndev 171 net/nfc/nci/core.c static void nci_init_complete_req(struct nci_dev *ndev, unsigned long opt) ndev 182 net/nfc/nci/core.c for (i = 0; i < ndev->num_supported_rf_interfaces; i++) { ndev 183 net/nfc/nci/core.c if (ndev->supported_rf_interfaces[i] == ndev 190 net/nfc/nci/core.c } else if (ndev->supported_rf_interfaces[i] == ndev 203 net/nfc/nci/core.c nci_send_cmd(ndev, NCI_OP_RF_DISCOVER_MAP_CMD, ndev 213 net/nfc/nci/core.c static void nci_set_config_req(struct nci_dev *ndev, unsigned long opt) ndev 225 net/nfc/nci/core.c nci_send_cmd(ndev, NCI_OP_CORE_SET_CONFIG_CMD, (3 + param->len), &cmd); ndev 233 net/nfc/nci/core.c static void nci_rf_discover_req(struct nci_dev *ndev, unsigned long opt) ndev 289 net/nfc/nci/core.c nci_send_cmd(ndev, NCI_OP_RF_DISCOVER_CMD, ndev 299 net/nfc/nci/core.c static void nci_rf_discover_select_req(struct nci_dev *ndev, unsigned long opt) ndev 322 net/nfc/nci/core.c nci_send_cmd(ndev, NCI_OP_RF_DISCOVER_SELECT_CMD, ndev 326 net/nfc/nci/core.c static void nci_rf_deactivate_req(struct nci_dev *ndev, unsigned long opt) ndev 332 net/nfc/nci/core.c nci_send_cmd(ndev, NCI_OP_RF_DEACTIVATE_CMD, ndev 342 net/nfc/nci/core.c static void nci_generic_req(struct nci_dev *ndev, unsigned long opt) ndev 347 net/nfc/nci/core.c nci_send_cmd(ndev, param->opcode, param->len, param->payload); ndev 350 net/nfc/nci/core.c int nci_prop_cmd(struct nci_dev *ndev, __u8 oid, size_t len, __u8 *payload) ndev 358 net/nfc/nci/core.c return __nci_request(ndev, nci_generic_req, (unsigned long)¶m, ndev 363 net/nfc/nci/core.c int nci_core_cmd(struct nci_dev *ndev, __u16 opcode, size_t len, __u8 *payload) ndev 371 net/nfc/nci/core.c return __nci_request(ndev, nci_generic_req, (unsigned long)¶m, ndev 376 net/nfc/nci/core.c int nci_core_reset(struct nci_dev *ndev) ndev 378 net/nfc/nci/core.c return __nci_request(ndev, nci_reset_req, 0, ndev 383 net/nfc/nci/core.c int nci_core_init(struct nci_dev *ndev) ndev 385 net/nfc/nci/core.c return __nci_request(ndev, nci_init_req, 0, ndev 395 net/nfc/nci/core.c static void nci_send_data_req(struct nci_dev *ndev, unsigned long opt) ndev 399 net/nfc/nci/core.c nci_send_data(ndev, data->conn_id, data->data); ndev 404 net/nfc/nci/core.c struct nci_dev *ndev = (struct nci_dev *)context; ndev 407 net/nfc/nci/core.c conn_info = nci_get_conn_info_by_conn_id(ndev, ndev->cur_conn_id); ndev 409 net/nfc/nci/core.c nci_req_complete(ndev, NCI_STATUS_REJECTED); ndev 415 net/nfc/nci/core.c nci_req_complete(ndev, NCI_STATUS_OK); ndev 418 net/nfc/nci/core.c int nci_nfcc_loopback(struct nci_dev *ndev, void *data, size_t data_len, ndev 425 net/nfc/nci/core.c int conn_id = nci_get_conn_info_by_dest_type_params(ndev, ndev 429 net/nfc/nci/core.c r = nci_core_conn_create(ndev, NCI_DESTINATION_NFCC_LOOPBACK, ndev 434 net/nfc/nci/core.c conn_id = nci_get_conn_info_by_dest_type_params(ndev, ndev 439 net/nfc/nci/core.c conn_info = nci_get_conn_info_by_conn_id(ndev, conn_id); ndev 445 net/nfc/nci/core.c conn_info->data_exchange_cb_context = ndev; ndev 447 net/nfc/nci/core.c skb = nci_skb_alloc(ndev, NCI_DATA_HDR_SIZE + data_len, GFP_KERNEL); ndev 457 net/nfc/nci/core.c ndev->cur_conn_id = conn_id; ndev 458 net/nfc/nci/core.c r = nci_request(ndev, nci_send_data_req, (unsigned long)&loopback_data, ndev 467 net/nfc/nci/core.c static int nci_open_device(struct nci_dev *ndev) ndev 471 net/nfc/nci/core.c mutex_lock(&ndev->req_lock); ndev 473 net/nfc/nci/core.c if (test_bit(NCI_UP, &ndev->flags)) { ndev 478 net/nfc/nci/core.c if (ndev->ops->open(ndev)) { ndev 483 net/nfc/nci/core.c atomic_set(&ndev->cmd_cnt, 1); ndev 485 net/nfc/nci/core.c set_bit(NCI_INIT, &ndev->flags); ndev 487 net/nfc/nci/core.c if (ndev->ops->init) ndev 488 net/nfc/nci/core.c rc = ndev->ops->init(ndev); ndev 491 net/nfc/nci/core.c rc = __nci_request(ndev, nci_reset_req, 0, ndev 495 net/nfc/nci/core.c if (!rc && ndev->ops->setup) { ndev 496 net/nfc/nci/core.c rc = ndev->ops->setup(ndev); ndev 500 net/nfc/nci/core.c rc = __nci_request(ndev, nci_init_req, 0, ndev 504 net/nfc/nci/core.c if (!rc && ndev->ops->post_setup) ndev 505 net/nfc/nci/core.c rc = ndev->ops->post_setup(ndev); ndev 508 net/nfc/nci/core.c rc = __nci_request(ndev, nci_init_complete_req, 0, ndev 512 net/nfc/nci/core.c clear_bit(NCI_INIT, &ndev->flags); ndev 515 net/nfc/nci/core.c set_bit(NCI_UP, &ndev->flags); ndev 516 net/nfc/nci/core.c nci_clear_target_list(ndev); ndev 517 net/nfc/nci/core.c atomic_set(&ndev->state, NCI_IDLE); ndev 520 net/nfc/nci/core.c skb_queue_purge(&ndev->cmd_q); ndev 521 net/nfc/nci/core.c skb_queue_purge(&ndev->rx_q); ndev 522 net/nfc/nci/core.c skb_queue_purge(&ndev->tx_q); ndev 524 net/nfc/nci/core.c ndev->ops->close(ndev); ndev 525 net/nfc/nci/core.c ndev->flags = 0; ndev 529 net/nfc/nci/core.c mutex_unlock(&ndev->req_lock); ndev 533 net/nfc/nci/core.c static int nci_close_device(struct nci_dev *ndev) ndev 535 net/nfc/nci/core.c nci_req_cancel(ndev, ENODEV); ndev 536 net/nfc/nci/core.c mutex_lock(&ndev->req_lock); ndev 538 net/nfc/nci/core.c if (!test_and_clear_bit(NCI_UP, &ndev->flags)) { ndev 539 net/nfc/nci/core.c del_timer_sync(&ndev->cmd_timer); ndev 540 net/nfc/nci/core.c del_timer_sync(&ndev->data_timer); ndev 541 net/nfc/nci/core.c mutex_unlock(&ndev->req_lock); ndev 546 net/nfc/nci/core.c skb_queue_purge(&ndev->rx_q); ndev 547 net/nfc/nci/core.c skb_queue_purge(&ndev->tx_q); ndev 550 net/nfc/nci/core.c flush_workqueue(ndev->rx_wq); ndev 551 net/nfc/nci/core.c flush_workqueue(ndev->tx_wq); ndev 554 net/nfc/nci/core.c skb_queue_purge(&ndev->cmd_q); ndev 555 net/nfc/nci/core.c atomic_set(&ndev->cmd_cnt, 1); ndev 557 net/nfc/nci/core.c set_bit(NCI_INIT, &ndev->flags); ndev 558 net/nfc/nci/core.c __nci_request(ndev, nci_reset_req, 0, ndev 564 net/nfc/nci/core.c ndev->ops->close(ndev); ndev 566 net/nfc/nci/core.c clear_bit(NCI_INIT, &ndev->flags); ndev 568 net/nfc/nci/core.c del_timer_sync(&ndev->cmd_timer); ndev 571 net/nfc/nci/core.c flush_workqueue(ndev->cmd_wq); ndev 574 net/nfc/nci/core.c ndev->flags = 0; ndev 576 net/nfc/nci/core.c mutex_unlock(&ndev->req_lock); ndev 584 net/nfc/nci/core.c struct nci_dev *ndev = from_timer(ndev, t, cmd_timer); ndev 586 net/nfc/nci/core.c atomic_set(&ndev->cmd_cnt, 1); ndev 587 net/nfc/nci/core.c queue_work(ndev->cmd_wq, &ndev->cmd_work); ndev 593 net/nfc/nci/core.c struct nci_dev *ndev = from_timer(ndev, t, data_timer); ndev 595 net/nfc/nci/core.c set_bit(NCI_DATA_EXCHANGE_TO, &ndev->flags); ndev 596 net/nfc/nci/core.c queue_work(ndev->rx_wq, &ndev->rx_work); ndev 601 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 603 net/nfc/nci/core.c return nci_open_device(ndev); ndev 608 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 610 net/nfc/nci/core.c return nci_close_device(ndev); ndev 613 net/nfc/nci/core.c int nci_set_config(struct nci_dev *ndev, __u8 id, size_t len, __u8 *val) ndev 624 net/nfc/nci/core.c return __nci_request(ndev, nci_set_config_req, (unsigned long)¶m, ndev 629 net/nfc/nci/core.c static void nci_nfcee_discover_req(struct nci_dev *ndev, unsigned long opt) ndev 636 net/nfc/nci/core.c nci_send_cmd(ndev, NCI_OP_NFCEE_DISCOVER_CMD, 1, &cmd); ndev 639 net/nfc/nci/core.c int nci_nfcee_discover(struct nci_dev *ndev, u8 action) ndev 641 net/nfc/nci/core.c return __nci_request(ndev, nci_nfcee_discover_req, action, ndev 646 net/nfc/nci/core.c static void nci_nfcee_mode_set_req(struct nci_dev *ndev, unsigned long opt) ndev 651 net/nfc/nci/core.c nci_send_cmd(ndev, NCI_OP_NFCEE_MODE_SET_CMD, ndev 655 net/nfc/nci/core.c int nci_nfcee_mode_set(struct nci_dev *ndev, u8 nfcee_id, u8 nfcee_mode) ndev 662 net/nfc/nci/core.c return __nci_request(ndev, nci_nfcee_mode_set_req, ndev 668 net/nfc/nci/core.c static void nci_core_conn_create_req(struct nci_dev *ndev, unsigned long opt) ndev 673 net/nfc/nci/core.c nci_send_cmd(ndev, NCI_OP_CORE_CONN_CREATE_CMD, data->length, data->cmd); ndev 676 net/nfc/nci/core.c int nci_core_conn_create(struct nci_dev *ndev, u8 destination_type, ndev 698 net/nfc/nci/core.c memcpy(&ndev->cur_params, ndev 702 net/nfc/nci/core.c ndev->cur_params.id = 0; ndev 704 net/nfc/nci/core.c ndev->cur_params.id = 0; ndev 706 net/nfc/nci/core.c ndev->cur_dest_type = destination_type; ndev 708 net/nfc/nci/core.c r = __nci_request(ndev, nci_core_conn_create_req, (unsigned long)&data, ndev 715 net/nfc/nci/core.c static void nci_core_conn_close_req(struct nci_dev *ndev, unsigned long opt) ndev 719 net/nfc/nci/core.c nci_send_cmd(ndev, NCI_OP_CORE_CONN_CLOSE_CMD, 1, &conn_id); ndev 722 net/nfc/nci/core.c int nci_core_conn_close(struct nci_dev *ndev, u8 conn_id) ndev 724 net/nfc/nci/core.c ndev->cur_conn_id = conn_id; ndev 725 net/nfc/nci/core.c return __nci_request(ndev, nci_core_conn_close_req, conn_id, ndev 732 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 745 net/nfc/nci/core.c rc = nci_request(ndev, nci_set_config_req, (unsigned long)¶m, ndev 752 net/nfc/nci/core.c return nci_request(ndev, nci_set_config_req, (unsigned long)¶m, ndev 758 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 764 net/nfc/nci/core.c rc = nci_set_config(ndev, NCI_LA_SEL_INFO, 1, &val); ndev 770 net/nfc/nci/core.c rc = nci_set_config(ndev, NCI_LF_PROTOCOL_TYPE, 1, &val); ndev 776 net/nfc/nci/core.c return nci_set_config(ndev, NCI_LF_CON_BITR_F, 1, &val); ndev 782 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 786 net/nfc/nci/core.c if ((atomic_read(&ndev->state) == NCI_DISCOVERY) || ndev 787 net/nfc/nci/core.c (atomic_read(&ndev->state) == NCI_W4_ALL_DISCOVERIES)) { ndev 792 net/nfc/nci/core.c if (ndev->target_active_prot) { ndev 797 net/nfc/nci/core.c if ((atomic_read(&ndev->state) == NCI_W4_HOST_SELECT) || ndev 798 net/nfc/nci/core.c (atomic_read(&ndev->state) == NCI_POLL_ACTIVE)) { ndev 801 net/nfc/nci/core.c rc = nci_request(ndev, nci_rf_deactivate_req, ndev 824 net/nfc/nci/core.c rc = nci_request(ndev, nci_rf_discover_req, (unsigned long)¶m, ndev 828 net/nfc/nci/core.c ndev->poll_prots = im_protocols; ndev 835 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 837 net/nfc/nci/core.c if ((atomic_read(&ndev->state) != NCI_DISCOVERY) && ndev 838 net/nfc/nci/core.c (atomic_read(&ndev->state) != NCI_W4_ALL_DISCOVERIES)) { ndev 843 net/nfc/nci/core.c nci_request(ndev, nci_rf_deactivate_req, NCI_DEACTIVATE_TYPE_IDLE_MODE, ndev 850 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 858 net/nfc/nci/core.c if ((atomic_read(&ndev->state) != NCI_W4_HOST_SELECT) && ndev 859 net/nfc/nci/core.c (atomic_read(&ndev->state) != NCI_POLL_ACTIVE)) { ndev 864 net/nfc/nci/core.c if (ndev->target_active_prot) { ndev 869 net/nfc/nci/core.c for (i = 0; i < ndev->n_targets; i++) { ndev 870 net/nfc/nci/core.c if (ndev->targets[i].idx == target->idx) { ndev 871 net/nfc/nci/core.c nci_target = &ndev->targets[i]; ndev 887 net/nfc/nci/core.c if (atomic_read(&ndev->state) == NCI_W4_HOST_SELECT) { ndev 902 net/nfc/nci/core.c rc = nci_request(ndev, nci_rf_discover_select_req, ndev 908 net/nfc/nci/core.c ndev->target_active_prot = protocol; ndev 917 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 922 net/nfc/nci/core.c if (!ndev->target_active_prot) { ndev 927 net/nfc/nci/core.c ndev->target_active_prot = 0; ndev 935 net/nfc/nci/core.c if (atomic_read(&ndev->state) == NCI_POLL_ACTIVE) { ndev 936 net/nfc/nci/core.c nci_request(ndev, nci_rf_deactivate_req, nci_mode, ndev 944 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 953 net/nfc/nci/core.c rc = nfc_set_remote_general_bytes(nfc_dev, ndev->remote_gb, ndev 954 net/nfc/nci/core.c ndev->remote_gb_len); ndev 964 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 972 net/nfc/nci/core.c if (atomic_read(&ndev->state) == NCI_LISTEN_ACTIVE || ndev 973 net/nfc/nci/core.c atomic_read(&ndev->state) == NCI_DISCOVERY) { ndev 974 net/nfc/nci/core.c nci_request(ndev, nci_rf_deactivate_req, 0, ndev 991 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 995 net/nfc/nci/core.c conn_info = ndev->rf_conn_info; ndev 1001 net/nfc/nci/core.c if (!ndev->target_active_prot) { ndev 1006 net/nfc/nci/core.c if (test_and_set_bit(NCI_DATA_EXCHANGE, &ndev->flags)) ndev 1013 net/nfc/nci/core.c rc = nci_send_data(ndev, NCI_STATIC_RF_CONN_ID, skb); ndev 1015 net/nfc/nci/core.c clear_bit(NCI_DATA_EXCHANGE, &ndev->flags); ndev 1022 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 1025 net/nfc/nci/core.c rc = nci_send_data(ndev, NCI_STATIC_RF_CONN_ID, skb); ndev 1034 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 1036 net/nfc/nci/core.c if (ndev->ops->enable_se) ndev 1037 net/nfc/nci/core.c return ndev->ops->enable_se(ndev, se_idx); ndev 1044 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 1046 net/nfc/nci/core.c if (ndev->ops->disable_se) ndev 1047 net/nfc/nci/core.c return ndev->ops->disable_se(ndev, se_idx); ndev 1055 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 1057 net/nfc/nci/core.c if (ndev->ops->discover_se) { ndev 1058 net/nfc/nci/core.c r = nci_nfcee_discover(ndev, NCI_NFCEE_DISCOVERY_ACTION_ENABLE); ndev 1062 net/nfc/nci/core.c return ndev->ops->discover_se(ndev); ndev 1072 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 1074 net/nfc/nci/core.c if (ndev->ops->se_io) ndev 1075 net/nfc/nci/core.c return ndev->ops->se_io(ndev, se_idx, apdu, ndev 1083 net/nfc/nci/core.c struct nci_dev *ndev = nfc_get_drvdata(nfc_dev); ndev 1085 net/nfc/nci/core.c if (!ndev->ops->fw_download) ndev 1088 net/nfc/nci/core.c return ndev->ops->fw_download(ndev, firmware_name); ndev 1120 net/nfc/nci/core.c struct nci_dev *ndev; ndev 1130 net/nfc/nci/core.c ndev = kzalloc(sizeof(struct nci_dev), GFP_KERNEL); ndev 1131 net/nfc/nci/core.c if (!ndev) ndev 1134 net/nfc/nci/core.c ndev->ops = ops; ndev 1143 net/nfc/nci/core.c ndev->tx_headroom = tx_headroom; ndev 1144 net/nfc/nci/core.c ndev->tx_tailroom = tx_tailroom; ndev 1145 net/nfc/nci/core.c init_completion(&ndev->req_completion); ndev 1147 net/nfc/nci/core.c ndev->nfc_dev = nfc_allocate_device(&nci_nfc_ops, ndev 1151 net/nfc/nci/core.c if (!ndev->nfc_dev) ndev 1154 net/nfc/nci/core.c ndev->hci_dev = nci_hci_allocate(ndev); ndev 1155 net/nfc/nci/core.c if (!ndev->hci_dev) ndev 1158 net/nfc/nci/core.c nfc_set_drvdata(ndev->nfc_dev, ndev); ndev 1160 net/nfc/nci/core.c return ndev; ndev 1163 net/nfc/nci/core.c nfc_free_device(ndev->nfc_dev); ndev 1165 net/nfc/nci/core.c kfree(ndev); ndev 1175 net/nfc/nci/core.c void nci_free_device(struct nci_dev *ndev) ndev 1177 net/nfc/nci/core.c nfc_free_device(ndev->nfc_dev); ndev 1178 net/nfc/nci/core.c kfree(ndev); ndev 1187 net/nfc/nci/core.c int nci_register_device(struct nci_dev *ndev) ndev 1190 net/nfc/nci/core.c struct device *dev = &ndev->nfc_dev->dev; ndev 1193 net/nfc/nci/core.c ndev->flags = 0; ndev 1195 net/nfc/nci/core.c INIT_WORK(&ndev->cmd_work, nci_cmd_work); ndev 1197 net/nfc/nci/core.c ndev->cmd_wq = create_singlethread_workqueue(name); ndev 1198 net/nfc/nci/core.c if (!ndev->cmd_wq) { ndev 1203 net/nfc/nci/core.c INIT_WORK(&ndev->rx_work, nci_rx_work); ndev 1205 net/nfc/nci/core.c ndev->rx_wq = create_singlethread_workqueue(name); ndev 1206 net/nfc/nci/core.c if (!ndev->rx_wq) { ndev 1211 net/nfc/nci/core.c INIT_WORK(&ndev->tx_work, nci_tx_work); ndev 1213 net/nfc/nci/core.c ndev->tx_wq = create_singlethread_workqueue(name); ndev 1214 net/nfc/nci/core.c if (!ndev->tx_wq) { ndev 1219 net/nfc/nci/core.c skb_queue_head_init(&ndev->cmd_q); ndev 1220 net/nfc/nci/core.c skb_queue_head_init(&ndev->rx_q); ndev 1221 net/nfc/nci/core.c skb_queue_head_init(&ndev->tx_q); ndev 1223 net/nfc/nci/core.c timer_setup(&ndev->cmd_timer, nci_cmd_timer, 0); ndev 1224 net/nfc/nci/core.c timer_setup(&ndev->data_timer, nci_data_timer, 0); ndev 1226 net/nfc/nci/core.c mutex_init(&ndev->req_lock); ndev 1227 net/nfc/nci/core.c INIT_LIST_HEAD(&ndev->conn_info_list); ndev 1229 net/nfc/nci/core.c rc = nfc_register_device(ndev->nfc_dev); ndev 1236 net/nfc/nci/core.c destroy_workqueue(ndev->rx_wq); ndev 1239 net/nfc/nci/core.c destroy_workqueue(ndev->cmd_wq); ndev 1251 net/nfc/nci/core.c void nci_unregister_device(struct nci_dev *ndev) ndev 1255 net/nfc/nci/core.c nci_close_device(ndev); ndev 1257 net/nfc/nci/core.c destroy_workqueue(ndev->cmd_wq); ndev 1258 net/nfc/nci/core.c destroy_workqueue(ndev->rx_wq); ndev 1259 net/nfc/nci/core.c destroy_workqueue(ndev->tx_wq); ndev 1261 net/nfc/nci/core.c list_for_each_entry_safe(conn_info, n, &ndev->conn_info_list, list) { ndev 1266 net/nfc/nci/core.c nfc_unregister_device(ndev->nfc_dev); ndev 1276 net/nfc/nci/core.c int nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb) ndev 1280 net/nfc/nci/core.c if (!ndev || (!test_bit(NCI_UP, &ndev->flags) && ndev 1281 net/nfc/nci/core.c !test_bit(NCI_INIT, &ndev->flags))) { ndev 1287 net/nfc/nci/core.c skb_queue_tail(&ndev->rx_q, skb); ndev 1288 net/nfc/nci/core.c queue_work(ndev->rx_wq, &ndev->rx_work); ndev 1294 net/nfc/nci/core.c int nci_send_frame(struct nci_dev *ndev, struct sk_buff *skb) ndev 1298 net/nfc/nci/core.c if (!ndev) { ndev 1307 net/nfc/nci/core.c nfc_send_to_raw_sock(ndev->nfc_dev, skb, ndev 1310 net/nfc/nci/core.c return ndev->ops->send(ndev, skb); ndev 1315 net/nfc/nci/core.c int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, void *payload) ndev 1322 net/nfc/nci/core.c skb = nci_skb_alloc(ndev, (NCI_CTRL_HDR_SIZE + plen), GFP_KERNEL); ndev 1339 net/nfc/nci/core.c skb_queue_tail(&ndev->cmd_q, skb); ndev 1340 net/nfc/nci/core.c queue_work(ndev->cmd_wq, &ndev->cmd_work); ndev 1366 net/nfc/nci/core.c static int nci_op_rsp_packet(struct nci_dev *ndev, __u16 rsp_opcode, ndev 1376 net/nfc/nci/core.c return op->rsp(ndev, skb); ndev 1379 net/nfc/nci/core.c static int nci_op_ntf_packet(struct nci_dev *ndev, __u16 ntf_opcode, ndev 1389 net/nfc/nci/core.c return op->ntf(ndev, skb); ndev 1392 net/nfc/nci/core.c int nci_prop_rsp_packet(struct nci_dev *ndev, __u16 opcode, ndev 1395 net/nfc/nci/core.c return nci_op_rsp_packet(ndev, opcode, skb, ndev->ops->prop_ops, ndev 1396 net/nfc/nci/core.c ndev->ops->n_prop_ops); ndev 1399 net/nfc/nci/core.c int nci_prop_ntf_packet(struct nci_dev *ndev, __u16 opcode, ndev 1402 net/nfc/nci/core.c return nci_op_ntf_packet(ndev, opcode, skb, ndev->ops->prop_ops, ndev 1403 net/nfc/nci/core.c ndev->ops->n_prop_ops); ndev 1406 net/nfc/nci/core.c int nci_core_rsp_packet(struct nci_dev *ndev, __u16 opcode, ndev 1409 net/nfc/nci/core.c return nci_op_rsp_packet(ndev, opcode, skb, ndev->ops->core_ops, ndev 1410 net/nfc/nci/core.c ndev->ops->n_core_ops); ndev 1413 net/nfc/nci/core.c int nci_core_ntf_packet(struct nci_dev *ndev, __u16 opcode, ndev 1416 net/nfc/nci/core.c return nci_op_ntf_packet(ndev, opcode, skb, ndev->ops->core_ops, ndev 1417 net/nfc/nci/core.c ndev->ops->n_core_ops); ndev 1424 net/nfc/nci/core.c struct nci_dev *ndev = container_of(work, struct nci_dev, tx_work); ndev 1428 net/nfc/nci/core.c conn_info = nci_get_conn_info_by_conn_id(ndev, ndev->cur_conn_id); ndev 1436 net/nfc/nci/core.c skb = skb_dequeue(&ndev->tx_q); ndev 1450 net/nfc/nci/core.c nci_send_frame(ndev, skb); ndev 1452 net/nfc/nci/core.c mod_timer(&ndev->data_timer, ndev 1461 net/nfc/nci/core.c struct nci_dev *ndev = container_of(work, struct nci_dev, rx_work); ndev 1464 net/nfc/nci/core.c while ((skb = skb_dequeue(&ndev->rx_q))) { ndev 1467 net/nfc/nci/core.c nfc_send_to_raw_sock(ndev->nfc_dev, skb, ndev 1473 net/nfc/nci/core.c nci_rsp_packet(ndev, skb); ndev 1477 net/nfc/nci/core.c nci_ntf_packet(ndev, skb); ndev 1481 net/nfc/nci/core.c nci_rx_data_packet(ndev, skb); ndev 1492 net/nfc/nci/core.c if (test_bit(NCI_DATA_EXCHANGE_TO, &ndev->flags)) { ndev 1494 net/nfc/nci/core.c if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags)) ndev 1495 net/nfc/nci/core.c nci_data_exchange_complete(ndev, NULL, ndev 1496 net/nfc/nci/core.c ndev->cur_conn_id, ndev 1499 net/nfc/nci/core.c clear_bit(NCI_DATA_EXCHANGE_TO, &ndev->flags); ndev 1507 net/nfc/nci/core.c struct nci_dev *ndev = container_of(work, struct nci_dev, cmd_work); ndev 1510 net/nfc/nci/core.c pr_debug("cmd_cnt %d\n", atomic_read(&ndev->cmd_cnt)); ndev 1513 net/nfc/nci/core.c if (atomic_read(&ndev->cmd_cnt)) { ndev 1514 net/nfc/nci/core.c skb = skb_dequeue(&ndev->cmd_q); ndev 1518 net/nfc/nci/core.c atomic_dec(&ndev->cmd_cnt); ndev 1526 net/nfc/nci/core.c nci_send_frame(ndev, skb); ndev 1528 net/nfc/nci/core.c mod_timer(&ndev->cmd_timer, ndev 26 net/nfc/nci/data.c void nci_data_exchange_complete(struct nci_dev *ndev, struct sk_buff *skb, ndev 33 net/nfc/nci/data.c conn_info = nci_get_conn_info_by_conn_id(ndev, conn_id); ndev 45 net/nfc/nci/data.c del_timer_sync(&ndev->data_timer); ndev 46 net/nfc/nci/data.c clear_bit(NCI_DATA_EXCHANGE_TO, &ndev->flags); ndev 59 net/nfc/nci/data.c clear_bit(NCI_DATA_EXCHANGE, &ndev->flags); ndev 64 net/nfc/nci/data.c static inline void nci_push_data_hdr(struct nci_dev *ndev, ndev 81 net/nfc/nci/data.c int nci_conn_max_data_pkt_payload_size(struct nci_dev *ndev, __u8 conn_id) ndev 85 net/nfc/nci/data.c conn_info = nci_get_conn_info_by_conn_id(ndev, conn_id); ndev 93 net/nfc/nci/data.c static int nci_queue_tx_data_frags(struct nci_dev *ndev, ndev 107 net/nfc/nci/data.c conn_info = nci_get_conn_info_by_conn_id(ndev, conn_id); ndev 119 net/nfc/nci/data.c skb_frag = nci_skb_alloc(ndev, ndev 132 net/nfc/nci/data.c nci_push_data_hdr(ndev, conn_id, skb_frag, ndev 146 net/nfc/nci/data.c spin_lock_irqsave(&ndev->tx_q.lock, flags); ndev 149 net/nfc/nci/data.c __skb_queue_tail(&ndev->tx_q, skb_frag); ndev 151 net/nfc/nci/data.c spin_unlock_irqrestore(&ndev->tx_q.lock, flags); ndev 167 net/nfc/nci/data.c int nci_send_data(struct nci_dev *ndev, __u8 conn_id, struct sk_buff *skb) ndev 174 net/nfc/nci/data.c conn_info = nci_get_conn_info_by_conn_id(ndev, conn_id); ndev 183 net/nfc/nci/data.c nci_push_data_hdr(ndev, conn_id, skb, NCI_PBF_LAST); ndev 185 net/nfc/nci/data.c skb_queue_tail(&ndev->tx_q, skb); ndev 188 net/nfc/nci/data.c rc = nci_queue_tx_data_frags(ndev, conn_id, skb); ndev 195 net/nfc/nci/data.c ndev->cur_conn_id = conn_id; ndev 196 net/nfc/nci/data.c queue_work(ndev->tx_wq, &ndev->tx_work); ndev 210 net/nfc/nci/data.c static void nci_add_rx_data_frag(struct nci_dev *ndev, ndev 222 net/nfc/nci/data.c if (ndev->rx_data_reassembly) { ndev 223 net/nfc/nci/data.c reassembly_len = ndev->rx_data_reassembly->len; ndev 232 net/nfc/nci/data.c kfree_skb(ndev->rx_data_reassembly); ndev 233 net/nfc/nci/data.c ndev->rx_data_reassembly = NULL; ndev 241 net/nfc/nci/data.c ndev->rx_data_reassembly->data, ndev 245 net/nfc/nci/data.c kfree_skb(ndev->rx_data_reassembly); ndev 246 net/nfc/nci/data.c ndev->rx_data_reassembly = NULL; ndev 251 net/nfc/nci/data.c ndev->rx_data_reassembly = skb; ndev 256 net/nfc/nci/data.c if (ndev->nfc_dev->rf_mode == NFC_RF_TARGET) { ndev 258 net/nfc/nci/data.c err = nfc_tm_data_received(ndev->nfc_dev, skb); ndev 262 net/nfc/nci/data.c nci_data_exchange_complete(ndev, skb, conn_id, err); ndev 267 net/nfc/nci/data.c void nci_rx_data_packet(struct nci_dev *ndev, struct sk_buff *skb) ndev 281 net/nfc/nci/data.c conn_info = nci_get_conn_info_by_conn_id(ndev, nci_conn_id(skb->data)); ndev 288 net/nfc/nci/data.c if (ndev->target_active_prot == NFC_PROTO_MIFARE || ndev 289 net/nfc/nci/data.c ndev->target_active_prot == NFC_PROTO_JEWEL || ndev 290 net/nfc/nci/data.c ndev->target_active_prot == NFC_PROTO_FELICA || ndev 291 net/nfc/nci/data.c ndev->target_active_prot == NFC_PROTO_ISO15693) { ndev 298 net/nfc/nci/data.c nci_add_rx_data_frag(ndev, skb, pbf, conn_id, nci_to_errno(status)); ndev 121 net/nfc/nci/hci.c static void nci_hci_reset_pipes_per_host(struct nci_dev *ndev, u8 host) ndev 126 net/nfc/nci/hci.c if (ndev->hci_dev->pipes[i].host == host) { ndev 127 net/nfc/nci/hci.c ndev->hci_dev->pipes[i].gate = NCI_HCI_INVALID_GATE; ndev 128 net/nfc/nci/hci.c ndev->hci_dev->pipes[i].host = NCI_HCI_INVALID_HOST; ndev 141 net/nfc/nci/hci.c static int nci_hci_send_data(struct nci_dev *ndev, u8 pipe, ndev 150 net/nfc/nci/hci.c conn_info = ndev->hci_dev->conn_info; ndev 155 net/nfc/nci/hci.c skb = nci_skb_alloc(ndev, conn_info->max_pkt_payload_len + ndev 180 net/nfc/nci/hci.c r = nci_send_data(ndev, conn_info->conn_id, skb); ndev 187 net/nfc/nci/hci.c skb = nci_skb_alloc(ndev, ndev 200 net/nfc/nci/hci.c static void nci_hci_send_data_req(struct nci_dev *ndev, unsigned long opt) ndev 204 net/nfc/nci/hci.c nci_hci_send_data(ndev, data->pipe, data->cmd, ndev 208 net/nfc/nci/hci.c int nci_hci_send_event(struct nci_dev *ndev, u8 gate, u8 event, ndev 211 net/nfc/nci/hci.c u8 pipe = ndev->hci_dev->gate2pipe[gate]; ndev 216 net/nfc/nci/hci.c return nci_hci_send_data(ndev, pipe, ndev 222 net/nfc/nci/hci.c int nci_hci_send_cmd(struct nci_dev *ndev, u8 gate, u8 cmd, ndev 230 net/nfc/nci/hci.c u8 pipe = ndev->hci_dev->gate2pipe[gate]; ndev 235 net/nfc/nci/hci.c conn_info = ndev->hci_dev->conn_info; ndev 245 net/nfc/nci/hci.c r = nci_request(ndev, nci_hci_send_data_req, (unsigned long)&data, ndev 261 net/nfc/nci/hci.c int nci_hci_clear_all_pipes(struct nci_dev *ndev) ndev 265 net/nfc/nci/hci.c r = nci_hci_send_cmd(ndev, NCI_HCI_ADMIN_GATE, ndev 270 net/nfc/nci/hci.c nci_hci_reset_pipes(ndev->hci_dev); ndev 275 net/nfc/nci/hci.c static void nci_hci_event_received(struct nci_dev *ndev, u8 pipe, ndev 278 net/nfc/nci/hci.c if (ndev->ops->hci_event_received) ndev 279 net/nfc/nci/hci.c ndev->ops->hci_event_received(ndev, pipe, event, skb); ndev 282 net/nfc/nci/hci.c static void nci_hci_cmd_received(struct nci_dev *ndev, u8 pipe, ndev 285 net/nfc/nci/hci.c u8 gate = ndev->hci_dev->pipes[pipe].gate; ndev 313 net/nfc/nci/hci.c ndev->hci_dev->gate2pipe[dest_gate] = new_pipe; ndev 314 net/nfc/nci/hci.c ndev->hci_dev->pipes[new_pipe].gate = dest_gate; ndev 315 net/nfc/nci/hci.c ndev->hci_dev->pipes[new_pipe].host = ndev 336 net/nfc/nci/hci.c ndev->hci_dev->pipes[delete_info->pipe].gate = ndev 338 net/nfc/nci/hci.c ndev->hci_dev->pipes[delete_info->pipe].host = ndev 349 net/nfc/nci/hci.c nci_hci_reset_pipes_per_host(ndev, cleared_info->host); ndev 356 net/nfc/nci/hci.c if (ndev->ops->hci_cmd_received) ndev 357 net/nfc/nci/hci.c ndev->ops->hci_cmd_received(ndev, pipe, cmd, skb); ndev 360 net/nfc/nci/hci.c nci_hci_send_data(ndev, pipe, status, NULL, 0); ndev 365 net/nfc/nci/hci.c static void nci_hci_resp_received(struct nci_dev *ndev, u8 pipe, ndev 371 net/nfc/nci/hci.c conn_info = ndev->hci_dev->conn_info; ndev 380 net/nfc/nci/hci.c nci_req_complete(ndev, NCI_STATUS_OK); ndev 386 net/nfc/nci/hci.c static void nci_hci_hcp_message_rx(struct nci_dev *ndev, u8 pipe, ndev 391 net/nfc/nci/hci.c nci_hci_resp_received(ndev, pipe, instruction, skb); ndev 394 net/nfc/nci/hci.c nci_hci_cmd_received(ndev, pipe, instruction, skb); ndev 397 net/nfc/nci/hci.c nci_hci_event_received(ndev, pipe, instruction, skb); ndev 406 net/nfc/nci/hci.c nci_req_complete(ndev, NCI_STATUS_OK); ndev 425 net/nfc/nci/hci.c nci_hci_hcp_message_rx(hdev->ndev, pipe, ndev 433 net/nfc/nci/hci.c struct nci_dev *ndev = (struct nci_dev *)context; ndev 443 net/nfc/nci/hci.c nci_req_complete(ndev, err); ndev 449 net/nfc/nci/hci.c skb_queue_tail(&ndev->hci_dev->rx_hcp_frags, skb); ndev 454 net/nfc/nci/hci.c if (skb_queue_len(&ndev->hci_dev->rx_hcp_frags)) { ndev 456 net/nfc/nci/hci.c skb_queue_tail(&ndev->hci_dev->rx_hcp_frags, skb); ndev 459 net/nfc/nci/hci.c skb_queue_walk(&ndev->hci_dev->rx_hcp_frags, frag_skb) { ndev 467 net/nfc/nci/hci.c nci_req_complete(ndev, -ENOMEM); ndev 473 net/nfc/nci/hci.c skb_queue_walk(&ndev->hci_dev->rx_hcp_frags, frag_skb) { ndev 480 net/nfc/nci/hci.c skb_queue_purge(&ndev->hci_dev->rx_hcp_frags); ndev 495 net/nfc/nci/hci.c nci_hci_hcp_message_rx(ndev, pipe, type, ndev 498 net/nfc/nci/hci.c skb_queue_tail(&ndev->hci_dev->msg_rx_queue, hcp_skb); ndev 499 net/nfc/nci/hci.c schedule_work(&ndev->hci_dev->msg_rx_work); ndev 503 net/nfc/nci/hci.c int nci_hci_open_pipe(struct nci_dev *ndev, u8 pipe) ndev 508 net/nfc/nci/hci.c conn_info = ndev->hci_dev->conn_info; ndev 519 net/nfc/nci/hci.c return nci_request(ndev, nci_hci_send_data_req, ndev 525 net/nfc/nci/hci.c static u8 nci_hci_create_pipe(struct nci_dev *ndev, u8 dest_host, ndev 539 net/nfc/nci/hci.c *result = nci_hci_send_cmd(ndev, NCI_HCI_ADMIN_GATE, ndev 554 net/nfc/nci/hci.c static int nci_hci_delete_pipe(struct nci_dev *ndev, u8 pipe) ndev 558 net/nfc/nci/hci.c return nci_hci_send_cmd(ndev, NCI_HCI_ADMIN_GATE, ndev 562 net/nfc/nci/hci.c int nci_hci_set_param(struct nci_dev *ndev, u8 gate, u8 idx, ndev 570 net/nfc/nci/hci.c u8 pipe = ndev->hci_dev->gate2pipe[gate]; ndev 577 net/nfc/nci/hci.c conn_info = ndev->hci_dev->conn_info; ndev 595 net/nfc/nci/hci.c r = nci_request(ndev, nci_hci_send_data_req, ndev 610 net/nfc/nci/hci.c int nci_hci_get_param(struct nci_dev *ndev, u8 gate, u8 idx, ndev 617 net/nfc/nci/hci.c u8 pipe = ndev->hci_dev->gate2pipe[gate]; ndev 624 net/nfc/nci/hci.c conn_info = ndev->hci_dev->conn_info; ndev 635 net/nfc/nci/hci.c r = nci_request(ndev, nci_hci_send_data_req, (unsigned long)&data, ndev 652 net/nfc/nci/hci.c int nci_hci_connect_gate(struct nci_dev *ndev, ndev 661 net/nfc/nci/hci.c if (ndev->hci_dev->gate2pipe[dest_gate] != NCI_HCI_INVALID_PIPE) ndev 675 net/nfc/nci/hci.c pipe = nci_hci_create_pipe(ndev, dest_host, dest_gate, &r); ndev 683 net/nfc/nci/hci.c r = nci_hci_open_pipe(ndev, pipe); ndev 686 net/nfc/nci/hci.c if (nci_hci_delete_pipe(ndev, pipe) < 0) { ndev 695 net/nfc/nci/hci.c ndev->hci_dev->pipes[pipe].gate = dest_gate; ndev 696 net/nfc/nci/hci.c ndev->hci_dev->pipes[pipe].host = dest_host; ndev 697 net/nfc/nci/hci.c ndev->hci_dev->gate2pipe[dest_gate] = pipe; ndev 703 net/nfc/nci/hci.c static int nci_hci_dev_connect_gates(struct nci_dev *ndev, ndev 710 net/nfc/nci/hci.c r = nci_hci_connect_gate(ndev, gates->dest_host, ndev 720 net/nfc/nci/hci.c int nci_hci_dev_session_init(struct nci_dev *ndev) ndev 726 net/nfc/nci/hci.c ndev->hci_dev->count_pipes = 0; ndev 727 net/nfc/nci/hci.c ndev->hci_dev->expected_pipes = 0; ndev 729 net/nfc/nci/hci.c conn_info = ndev->hci_dev->conn_info; ndev 734 net/nfc/nci/hci.c conn_info->data_exchange_cb_context = ndev; ndev 736 net/nfc/nci/hci.c nci_hci_reset_pipes(ndev->hci_dev); ndev 738 net/nfc/nci/hci.c if (ndev->hci_dev->init_data.gates[0].gate != NCI_HCI_ADMIN_GATE) ndev 741 net/nfc/nci/hci.c r = nci_hci_connect_gate(ndev, ndev 742 net/nfc/nci/hci.c ndev->hci_dev->init_data.gates[0].dest_host, ndev 743 net/nfc/nci/hci.c ndev->hci_dev->init_data.gates[0].gate, ndev 744 net/nfc/nci/hci.c ndev->hci_dev->init_data.gates[0].pipe); ndev 748 net/nfc/nci/hci.c r = nci_hci_get_param(ndev, NCI_HCI_ADMIN_GATE, ndev 754 net/nfc/nci/hci.c skb->len == strlen(ndev->hci_dev->init_data.session_id) && ndev 755 net/nfc/nci/hci.c !memcmp(ndev->hci_dev->init_data.session_id, skb->data, skb->len) && ndev 756 net/nfc/nci/hci.c ndev->ops->hci_load_session) { ndev 758 net/nfc/nci/hci.c r = ndev->ops->hci_load_session(ndev); ndev 760 net/nfc/nci/hci.c r = nci_hci_clear_all_pipes(ndev); ndev 764 net/nfc/nci/hci.c r = nci_hci_dev_connect_gates(ndev, ndev 765 net/nfc/nci/hci.c ndev->hci_dev->init_data.gate_count, ndev 766 net/nfc/nci/hci.c ndev->hci_dev->init_data.gates); ndev 770 net/nfc/nci/hci.c r = nci_hci_set_param(ndev, NCI_HCI_ADMIN_GATE, ndev 772 net/nfc/nci/hci.c ndev->hci_dev->init_data.session_id, ndev 773 net/nfc/nci/hci.c strlen(ndev->hci_dev->init_data.session_id)); ndev 783 net/nfc/nci/hci.c struct nci_hci_dev *nci_hci_allocate(struct nci_dev *ndev) ndev 794 net/nfc/nci/hci.c hdev->ndev = ndev; ndev 30 net/nfc/nci/ntf.c static void nci_core_conn_credits_ntf_packet(struct nci_dev *ndev, ndev 51 net/nfc/nci/ntf.c conn_info = nci_get_conn_info_by_conn_id(ndev, ndev 61 net/nfc/nci/ntf.c if (!skb_queue_empty(&ndev->tx_q)) ndev 62 net/nfc/nci/ntf.c queue_work(ndev->tx_wq, &ndev->tx_work); ndev 65 net/nfc/nci/ntf.c static void nci_core_generic_error_ntf_packet(struct nci_dev *ndev, ndev 72 net/nfc/nci/ntf.c if (atomic_read(&ndev->state) == NCI_W4_HOST_SELECT) { ndev 75 net/nfc/nci/ntf.c nci_req_complete(ndev, status); ndev 79 net/nfc/nci/ntf.c static void nci_core_conn_intf_error_ntf_packet(struct nci_dev *ndev, ndev 89 net/nfc/nci/ntf.c if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags)) ndev 90 net/nfc/nci/ntf.c nci_data_exchange_complete(ndev, NULL, ntf->conn_id, -EIO); ndev 93 net/nfc/nci/ntf.c static __u8 *nci_extract_rf_params_nfca_passive_poll(struct nci_dev *ndev, ndev 120 net/nfc/nci/ntf.c static __u8 *nci_extract_rf_params_nfcb_passive_poll(struct nci_dev *ndev, ndev 134 net/nfc/nci/ntf.c static __u8 *nci_extract_rf_params_nfcf_passive_poll(struct nci_dev *ndev, ndev 150 net/nfc/nci/ntf.c static __u8 *nci_extract_rf_params_nfcv_passive_poll(struct nci_dev *ndev, ndev 161 net/nfc/nci/ntf.c static __u8 *nci_extract_rf_params_nfcf_passive_listen(struct nci_dev *ndev, ndev 173 net/nfc/nci/ntf.c static __u32 nci_get_prop_rf_protocol(struct nci_dev *ndev, __u8 rf_protocol) ndev 175 net/nfc/nci/ntf.c if (ndev->ops->get_rfprotocol) ndev 176 net/nfc/nci/ntf.c return ndev->ops->get_rfprotocol(ndev, rf_protocol); ndev 180 net/nfc/nci/ntf.c static int nci_add_new_protocol(struct nci_dev *ndev, ndev 208 net/nfc/nci/ntf.c protocol = nci_get_prop_rf_protocol(ndev, rf_protocol); ndev 210 net/nfc/nci/ntf.c if (!(protocol & ndev->poll_prots)) { ndev 259 net/nfc/nci/ntf.c static void nci_add_new_target(struct nci_dev *ndev, ndev 265 net/nfc/nci/ntf.c for (i = 0; i < ndev->n_targets; i++) { ndev 266 net/nfc/nci/ntf.c target = &ndev->targets[i]; ndev 269 net/nfc/nci/ntf.c nci_add_new_protocol(ndev, target, ntf->rf_protocol, ndev 277 net/nfc/nci/ntf.c if (ndev->n_targets == NCI_MAX_DISCOVERED_TARGETS) { ndev 282 net/nfc/nci/ntf.c target = &ndev->targets[ndev->n_targets]; ndev 284 net/nfc/nci/ntf.c rc = nci_add_new_protocol(ndev, target, ntf->rf_protocol, ndev 289 net/nfc/nci/ntf.c ndev->n_targets++; ndev 292 net/nfc/nci/ntf.c ndev->n_targets); ndev 296 net/nfc/nci/ntf.c void nci_clear_target_list(struct nci_dev *ndev) ndev 298 net/nfc/nci/ntf.c memset(ndev->targets, 0, ndev 301 net/nfc/nci/ntf.c ndev->n_targets = 0; ndev 304 net/nfc/nci/ntf.c static void nci_rf_discover_ntf_packet(struct nci_dev *ndev, ndev 325 net/nfc/nci/ntf.c data = nci_extract_rf_params_nfca_passive_poll(ndev, ndev 330 net/nfc/nci/ntf.c data = nci_extract_rf_params_nfcb_passive_poll(ndev, ndev 335 net/nfc/nci/ntf.c data = nci_extract_rf_params_nfcf_passive_poll(ndev, ndev 340 net/nfc/nci/ntf.c data = nci_extract_rf_params_nfcv_passive_poll(ndev, ndev 356 net/nfc/nci/ntf.c nci_add_new_target(ndev, &ntf); ndev 359 net/nfc/nci/ntf.c atomic_set(&ndev->state, NCI_W4_ALL_DISCOVERIES); ndev 361 net/nfc/nci/ntf.c atomic_set(&ndev->state, NCI_W4_HOST_SELECT); ndev 362 net/nfc/nci/ntf.c nfc_targets_found(ndev->nfc_dev, ndev->targets, ndev 363 net/nfc/nci/ntf.c ndev->n_targets); ndev 367 net/nfc/nci/ntf.c static int nci_extract_activation_params_iso_dep(struct nci_dev *ndev, ndev 403 net/nfc/nci/ntf.c static int nci_extract_activation_params_nfc_dep(struct nci_dev *ndev, ndev 439 net/nfc/nci/ntf.c static void nci_target_auto_activated(struct nci_dev *ndev, ndev 445 net/nfc/nci/ntf.c target = &ndev->targets[ndev->n_targets]; ndev 447 net/nfc/nci/ntf.c rc = nci_add_new_protocol(ndev, target, ntf->rf_protocol, ndev 454 net/nfc/nci/ntf.c ndev->n_targets++; ndev 457 net/nfc/nci/ntf.c target->logical_idx, ndev->n_targets); ndev 459 net/nfc/nci/ntf.c nfc_targets_found(ndev->nfc_dev, ndev->targets, ndev->n_targets); ndev 462 net/nfc/nci/ntf.c static int nci_store_general_bytes_nfc_dep(struct nci_dev *ndev, ndev 465 net/nfc/nci/ntf.c ndev->remote_gb_len = 0; ndev 473 net/nfc/nci/ntf.c ndev->remote_gb_len = min_t(__u8, ndev 477 net/nfc/nci/ntf.c memcpy(ndev->remote_gb, ndev 480 net/nfc/nci/ntf.c ndev->remote_gb_len); ndev 485 net/nfc/nci/ntf.c ndev->remote_gb_len = min_t(__u8, ndev 489 net/nfc/nci/ntf.c memcpy(ndev->remote_gb, ndev 492 net/nfc/nci/ntf.c ndev->remote_gb_len); ndev 504 net/nfc/nci/ntf.c static void nci_rf_intf_activated_ntf_packet(struct nci_dev *ndev, ndev 542 net/nfc/nci/ntf.c data = nci_extract_rf_params_nfca_passive_poll(ndev, ndev 547 net/nfc/nci/ntf.c data = nci_extract_rf_params_nfcb_passive_poll(ndev, ndev 552 net/nfc/nci/ntf.c data = nci_extract_rf_params_nfcf_passive_poll(ndev, ndev 557 net/nfc/nci/ntf.c data = nci_extract_rf_params_nfcv_passive_poll(ndev, ndev 566 net/nfc/nci/ntf.c data = nci_extract_rf_params_nfcf_passive_listen(ndev, ndev 593 net/nfc/nci/ntf.c err = nci_extract_activation_params_iso_dep(ndev, ndev 598 net/nfc/nci/ntf.c err = nci_extract_activation_params_nfc_dep(ndev, ndev 616 net/nfc/nci/ntf.c conn_info = ndev->rf_conn_info; ndev 629 net/nfc/nci/ntf.c err = nci_store_general_bytes_nfc_dep(ndev, &ntf); ndev 637 net/nfc/nci/ntf.c if (atomic_read(&ndev->state) == NCI_DISCOVERY) { ndev 640 net/nfc/nci/ntf.c atomic_set(&ndev->state, NCI_POLL_ACTIVE); ndev 642 net/nfc/nci/ntf.c nci_target_auto_activated(ndev, &ntf); ndev 646 net/nfc/nci/ntf.c atomic_set(&ndev->state, NCI_POLL_ACTIVE); ndev 647 net/nfc/nci/ntf.c nci_req_complete(ndev, err); ndev 652 net/nfc/nci/ntf.c atomic_set(&ndev->state, NCI_LISTEN_ACTIVE); ndev 655 net/nfc/nci/ntf.c err = nfc_tm_activated(ndev->nfc_dev, ndev 658 net/nfc/nci/ntf.c ndev->remote_gb, ndev 659 net/nfc/nci/ntf.c ndev->remote_gb_len); ndev 666 net/nfc/nci/ntf.c static void nci_rf_deactivate_ntf_packet(struct nci_dev *ndev, ndev 674 net/nfc/nci/ntf.c conn_info = ndev->rf_conn_info; ndev 679 net/nfc/nci/ntf.c skb_queue_purge(&ndev->tx_q); ndev 682 net/nfc/nci/ntf.c if (ndev->rx_data_reassembly) { ndev 683 net/nfc/nci/ntf.c kfree_skb(ndev->rx_data_reassembly); ndev 684 net/nfc/nci/ntf.c ndev->rx_data_reassembly = NULL; ndev 688 net/nfc/nci/ntf.c if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags)) ndev 689 net/nfc/nci/ntf.c nci_data_exchange_complete(ndev, NULL, NCI_STATIC_RF_CONN_ID, ndev 694 net/nfc/nci/ntf.c nci_clear_target_list(ndev); ndev 695 net/nfc/nci/ntf.c atomic_set(&ndev->state, NCI_IDLE); ndev 699 net/nfc/nci/ntf.c atomic_set(&ndev->state, NCI_W4_HOST_SELECT); ndev 702 net/nfc/nci/ntf.c nci_clear_target_list(ndev); ndev 703 net/nfc/nci/ntf.c atomic_set(&ndev->state, NCI_DISCOVERY); ndev 707 net/nfc/nci/ntf.c nci_req_complete(ndev, NCI_STATUS_OK); ndev 710 net/nfc/nci/ntf.c static void nci_nfcee_discover_ntf_packet(struct nci_dev *ndev, ndev 724 net/nfc/nci/ntf.c ndev->hci_dev->nfcee_id = nfcee_ntf->nfcee_id; ndev 725 net/nfc/nci/ntf.c ndev->cur_params.id = nfcee_ntf->nfcee_id; ndev 727 net/nfc/nci/ntf.c nci_req_complete(ndev, status); ndev 730 net/nfc/nci/ntf.c static void nci_nfcee_action_ntf_packet(struct nci_dev *ndev, ndev 736 net/nfc/nci/ntf.c void nci_ntf_packet(struct nci_dev *ndev, struct sk_buff *skb) ndev 750 net/nfc/nci/ntf.c if (nci_prop_ntf_packet(ndev, ntf_opcode, skb) == -ENOTSUPP) { ndev 760 net/nfc/nci/ntf.c nci_core_conn_credits_ntf_packet(ndev, skb); ndev 764 net/nfc/nci/ntf.c nci_core_generic_error_ntf_packet(ndev, skb); ndev 768 net/nfc/nci/ntf.c nci_core_conn_intf_error_ntf_packet(ndev, skb); ndev 772 net/nfc/nci/ntf.c nci_rf_discover_ntf_packet(ndev, skb); ndev 776 net/nfc/nci/ntf.c nci_rf_intf_activated_ntf_packet(ndev, skb); ndev 780 net/nfc/nci/ntf.c nci_rf_deactivate_ntf_packet(ndev, skb); ndev 784 net/nfc/nci/ntf.c nci_nfcee_discover_ntf_packet(ndev, skb); ndev 788 net/nfc/nci/ntf.c nci_nfcee_action_ntf_packet(ndev, skb); ndev 796 net/nfc/nci/ntf.c nci_core_ntf_packet(ndev, ntf_opcode, skb); ndev 28 net/nfc/nci/rsp.c static void nci_core_reset_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb) ndev 35 net/nfc/nci/rsp.c ndev->nci_ver = rsp->nci_ver; ndev 40 net/nfc/nci/rsp.c nci_req_complete(ndev, rsp->status); ndev 43 net/nfc/nci/rsp.c static void nci_core_init_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb) ndev 53 net/nfc/nci/rsp.c ndev->nfcc_features = __le32_to_cpu(rsp_1->nfcc_features); ndev 54 net/nfc/nci/rsp.c ndev->num_supported_rf_interfaces = rsp_1->num_supported_rf_interfaces; ndev 56 net/nfc/nci/rsp.c if (ndev->num_supported_rf_interfaces > ndev 58 net/nfc/nci/rsp.c ndev->num_supported_rf_interfaces = ndev 62 net/nfc/nci/rsp.c memcpy(ndev->supported_rf_interfaces, ndev 64 net/nfc/nci/rsp.c ndev->num_supported_rf_interfaces); ndev 68 net/nfc/nci/rsp.c ndev->max_logical_connections = rsp_2->max_logical_connections; ndev 69 net/nfc/nci/rsp.c ndev->max_routing_table_size = ndev 71 net/nfc/nci/rsp.c ndev->max_ctrl_pkt_payload_len = ndev 73 net/nfc/nci/rsp.c ndev->max_size_for_large_params = ndev 75 net/nfc/nci/rsp.c ndev->manufact_id = ndev 77 net/nfc/nci/rsp.c ndev->manufact_specific_info = ndev 81 net/nfc/nci/rsp.c ndev->nfcc_features); ndev 83 net/nfc/nci/rsp.c ndev->num_supported_rf_interfaces); ndev 85 net/nfc/nci/rsp.c ndev->supported_rf_interfaces[0]); ndev 87 net/nfc/nci/rsp.c ndev->supported_rf_interfaces[1]); ndev 89 net/nfc/nci/rsp.c ndev->supported_rf_interfaces[2]); ndev 91 net/nfc/nci/rsp.c ndev->supported_rf_interfaces[3]); ndev 93 net/nfc/nci/rsp.c ndev->max_logical_connections); ndev 95 net/nfc/nci/rsp.c ndev->max_routing_table_size); ndev 97 net/nfc/nci/rsp.c ndev->max_ctrl_pkt_payload_len); ndev 99 net/nfc/nci/rsp.c ndev->max_size_for_large_params); ndev 101 net/nfc/nci/rsp.c ndev->manufact_id); ndev 103 net/nfc/nci/rsp.c ndev->manufact_specific_info); ndev 106 net/nfc/nci/rsp.c nci_req_complete(ndev, rsp_1->status); ndev 109 net/nfc/nci/rsp.c static void nci_core_set_config_rsp_packet(struct nci_dev *ndev, ndev 116 net/nfc/nci/rsp.c nci_req_complete(ndev, rsp->status); ndev 119 net/nfc/nci/rsp.c static void nci_rf_disc_map_rsp_packet(struct nci_dev *ndev, ndev 126 net/nfc/nci/rsp.c nci_req_complete(ndev, status); ndev 129 net/nfc/nci/rsp.c static void nci_rf_disc_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb) ndev 137 net/nfc/nci/rsp.c atomic_set(&ndev->state, NCI_DISCOVERY); ndev 139 net/nfc/nci/rsp.c conn_info = ndev->rf_conn_info; ndev 141 net/nfc/nci/rsp.c conn_info = devm_kzalloc(&ndev->nfc_dev->dev, ndev 150 net/nfc/nci/rsp.c list_add(&conn_info->list, &ndev->conn_info_list); ndev 151 net/nfc/nci/rsp.c ndev->rf_conn_info = conn_info; ndev 156 net/nfc/nci/rsp.c nci_req_complete(ndev, status); ndev 159 net/nfc/nci/rsp.c static void nci_rf_disc_select_rsp_packet(struct nci_dev *ndev, ndev 168 net/nfc/nci/rsp.c nci_req_complete(ndev, status); ndev 171 net/nfc/nci/rsp.c static void nci_rf_deactivate_rsp_packet(struct nci_dev *ndev, ndev 180 net/nfc/nci/rsp.c (atomic_read(&ndev->state) != NCI_POLL_ACTIVE)) { ndev 181 net/nfc/nci/rsp.c nci_clear_target_list(ndev); ndev 182 net/nfc/nci/rsp.c atomic_set(&ndev->state, NCI_IDLE); ndev 183 net/nfc/nci/rsp.c nci_req_complete(ndev, status); ndev 187 net/nfc/nci/rsp.c static void nci_nfcee_discover_rsp_packet(struct nci_dev *ndev, ndev 193 net/nfc/nci/rsp.c nci_req_complete(ndev, NCI_STATUS_NFCEE_PROTOCOL_ERROR); ndev 201 net/nfc/nci/rsp.c nci_req_complete(ndev, discover_rsp->status); ndev 204 net/nfc/nci/rsp.c static void nci_nfcee_mode_set_rsp_packet(struct nci_dev *ndev, ndev 210 net/nfc/nci/rsp.c nci_req_complete(ndev, status); ndev 213 net/nfc/nci/rsp.c static void nci_core_conn_create_rsp_packet(struct nci_dev *ndev, ndev 225 net/nfc/nci/rsp.c conn_info = devm_kzalloc(&ndev->nfc_dev->dev, ndev 232 net/nfc/nci/rsp.c conn_info->dest_params = devm_kzalloc(&ndev->nfc_dev->dev, ndev 240 net/nfc/nci/rsp.c conn_info->dest_type = ndev->cur_dest_type; ndev 241 net/nfc/nci/rsp.c conn_info->dest_params->id = ndev->cur_params.id; ndev 242 net/nfc/nci/rsp.c conn_info->dest_params->protocol = ndev->cur_params.protocol; ndev 250 net/nfc/nci/rsp.c list_add(&conn_info->list, &ndev->conn_info_list); ndev 252 net/nfc/nci/rsp.c if (ndev->cur_params.id == ndev->hci_dev->nfcee_id) ndev 253 net/nfc/nci/rsp.c ndev->hci_dev->conn_info = conn_info; ndev 262 net/nfc/nci/rsp.c devm_kfree(&ndev->nfc_dev->dev, conn_info); ndev 265 net/nfc/nci/rsp.c nci_req_complete(ndev, status); ndev 268 net/nfc/nci/rsp.c static void nci_core_conn_close_rsp_packet(struct nci_dev *ndev, ndev 276 net/nfc/nci/rsp.c conn_info = nci_get_conn_info_by_conn_id(ndev, ndev 277 net/nfc/nci/rsp.c ndev->cur_conn_id); ndev 280 net/nfc/nci/rsp.c devm_kfree(&ndev->nfc_dev->dev, conn_info); ndev 283 net/nfc/nci/rsp.c nci_req_complete(ndev, status); ndev 286 net/nfc/nci/rsp.c void nci_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb) ndev 291 net/nfc/nci/rsp.c del_timer(&ndev->cmd_timer); ndev 303 net/nfc/nci/rsp.c if (nci_prop_rsp_packet(ndev, rsp_opcode, skb) == -ENOTSUPP) { ndev 313 net/nfc/nci/rsp.c nci_core_reset_rsp_packet(ndev, skb); ndev 317 net/nfc/nci/rsp.c nci_core_init_rsp_packet(ndev, skb); ndev 321 net/nfc/nci/rsp.c nci_core_set_config_rsp_packet(ndev, skb); ndev 325 net/nfc/nci/rsp.c nci_core_conn_create_rsp_packet(ndev, skb); ndev 329 net/nfc/nci/rsp.c nci_core_conn_close_rsp_packet(ndev, skb); ndev 333 net/nfc/nci/rsp.c nci_rf_disc_map_rsp_packet(ndev, skb); ndev 337 net/nfc/nci/rsp.c nci_rf_disc_rsp_packet(ndev, skb); ndev 341 net/nfc/nci/rsp.c nci_rf_disc_select_rsp_packet(ndev, skb); ndev 345 net/nfc/nci/rsp.c nci_rf_deactivate_rsp_packet(ndev, skb); ndev 349 net/nfc/nci/rsp.c nci_nfcee_discover_rsp_packet(ndev, skb); ndev 353 net/nfc/nci/rsp.c nci_nfcee_mode_set_rsp_packet(ndev, skb); ndev 361 net/nfc/nci/rsp.c nci_core_rsp_packet(ndev, rsp_opcode, skb); ndev 366 net/nfc/nci/rsp.c atomic_set(&ndev->cmd_cnt, 1); ndev 367 net/nfc/nci/rsp.c if (!skb_queue_empty(&ndev->cmd_q)) ndev 368 net/nfc/nci/rsp.c queue_work(ndev->cmd_wq, &ndev->cmd_work); ndev 125 net/nfc/nci/spi.c struct nci_dev *ndev) ndev 138 net/nfc/nci/spi.c nspi->ndev = ndev; ndev 152 net/nfc/nci/spi.c skb = nci_skb_alloc(nspi->ndev, 0, GFP_KERNEL); ndev 209 net/nfc/nci/spi.c skb = nci_skb_alloc(nspi->ndev, rx_len, GFP_KERNEL); ndev 334 net/nfc/nci/uart.c if (!nu->ndev) { ndev 347 net/nfc/nci/uart.c nu->rx_skb = nci_skb_alloc(nu->ndev, ndev 392 net/nfc/nci/uart.c return nci_recv_frame(nu->ndev, skb); ndev 549 net/smc/smc_core.c struct net_device *ndev; ndev 562 net/smc/smc_core.c ndev = dst->dev; ndev 563 net/smc/smc_core.c if (is_vlan_dev(ndev)) { ndev 564 net/smc/smc_core.c ini->vlan_id = vlan_dev_vlan_id(ndev); ndev 569 net/smc/smc_core.c nest_lvl = ndev->lower_level; ndev 571 net/smc/smc_core.c struct list_head *lower = &ndev->adj_list.lower; ndev 576 net/smc/smc_core.c ndev = (struct net_device *)netdev_lower_get_next(ndev, &lower); ndev 577 net/smc/smc_core.c if (is_vlan_dev(ndev)) { ndev 578 net/smc/smc_core.c ini->vlan_id = vlan_dev_vlan_id(ndev); ndev 183 net/smc/smc_ib.c const struct net_device *ndev; ndev 192 net/smc/smc_ib.c ndev = rdma_read_gid_attr_ndev_rcu(attr); ndev 193 net/smc/smc_ib.c if (!IS_ERR(ndev) && ndev 194 net/smc/smc_ib.c ((!vlan_id && !is_vlan_dev(attr->ndev)) || ndev 195 net/smc/smc_ib.c (vlan_id && is_vlan_dev(attr->ndev) && ndev 196 net/smc/smc_ib.c vlan_dev_vlan_id(attr->ndev) == vlan_id)) && ndev 33 net/smc/smc_pnet.c static struct net_device *pnet_find_base_ndev(struct net_device *ndev); ndev 65 net/smc/smc_pnet.c struct net_device *ndev; ndev 75 net/smc/smc_pnet.c struct net_device *ndev; ndev 116 net/smc/smc_pnet.c dev_put(pnetelem->ndev); ndev 160 net/smc/smc_pnet.c static int smc_pnet_remove_by_ndev(struct net_device *ndev) ndev 164 net/smc/smc_pnet.c struct net *net = dev_net(ndev); ndev 174 net/smc/smc_pnet.c if (pnetelem->ndev == ndev) { ndev 176 net/smc/smc_pnet.c dev_put(pnetelem->ndev); ndev 196 net/smc/smc_pnet.c struct net_device *ndev; ndev 226 net/smc/smc_pnet.c if (!new_pnetelem->ndev) ndev 232 net/smc/smc_pnet.c ndev = pnet_find_base_ndev(new_pnetelem->ndev); ndev 233 net/smc/smc_pnet.c if (!smc_pnetid_by_dev_port(ndev->dev.parent, ndev->dev_port, ndev 243 net/smc/smc_pnet.c tmp_pnetelem->ndev = new_pnetelem->ndev; ndev 247 net/smc/smc_pnet.c if (pnetelem->ndev == new_pnetelem->ndev) ndev 251 net/smc/smc_pnet.c dev_hold(tmp_pnetelem->ndev); ndev 349 net/smc/smc_pnet.c pnetelem->ndev = dev_get_by_name(net, string); ndev 350 net/smc/smc_pnet.c if (!pnetelem->ndev) ndev 388 net/smc/smc_pnet.c if (pnetelem->ndev) { ndev 390 net/smc/smc_pnet.c pnetelem->ndev->name)) ndev 430 net/smc/smc_pnet.c if (pnetelem.ndev) ndev 431 net/smc/smc_pnet.c dev_put(pnetelem.ndev); ndev 495 net/smc/smc_pnet.c tmp_entry.ndev = pnetelem->ndev; ndev 714 net/smc/smc_pnet.c static struct net_device *pnet_find_base_ndev(struct net_device *ndev) ndev 719 net/smc/smc_pnet.c nest_lvl = ndev->lower_level; ndev 721 net/smc/smc_pnet.c struct list_head *lower = &ndev->adj_list.lower; ndev 726 net/smc/smc_pnet.c ndev = netdev_lower_get_next(ndev, &lower); ndev 729 net/smc/smc_pnet.c return ndev; ndev 732 net/smc/smc_pnet.c static int smc_pnet_find_ndev_pnetid_by_table(struct net_device *ndev, ndev 736 net/smc/smc_pnet.c struct net *net = dev_net(ndev); ndev 747 net/smc/smc_pnet.c if (ndev == pnetelem->ndev) { ndev 768 net/smc/smc_pnet.c struct net_device *ndev; ndev 776 net/smc/smc_pnet.c ndev = ibdev->ibdev->ops.get_netdev(ibdev->ibdev, i); ndev 777 net/smc/smc_pnet.c if (!ndev) ndev 779 net/smc/smc_pnet.c dev_put(ndev); ndev 780 net/smc/smc_pnet.c if (netdev == ndev && ndev 799 net/smc/smc_pnet.c static void smc_pnet_find_roce_by_pnetid(struct net_device *ndev, ndev 806 net/smc/smc_pnet.c ndev = pnet_find_base_ndev(ndev); ndev 807 net/smc/smc_pnet.c if (smc_pnetid_by_dev_port(ndev->dev.parent, ndev->dev_port, ndev 809 net/smc/smc_pnet.c smc_pnet_find_ndev_pnetid_by_table(ndev, ndev_pnetid)) { ndev 810 net/smc/smc_pnet.c smc_pnet_find_rdma_dev(ndev, ini); ndev 833 net/smc/smc_pnet.c static void smc_pnet_find_ism_by_pnetid(struct net_device *ndev, ndev 839 net/smc/smc_pnet.c ndev = pnet_find_base_ndev(ndev); ndev 840 net/smc/smc_pnet.c if (smc_pnetid_by_dev_port(ndev->dev.parent, ndev->dev_port, ndev 842 net/smc/smc_pnet.c smc_pnet_find_ndev_pnetid_by_table(ndev, ndev_pnetid)) ndev 218 sound/isa/cmi8328.c static int snd_cmi8328_probe(struct device *pdev, unsigned int ndev) ndev 237 sound/isa/cmi8328.c u16 port = cmi8328_ports[ndev]; ndev 251 sound/isa/cmi8328.c if (irq[ndev] == SNDRV_AUTO_IRQ) { ndev 252 sound/isa/cmi8328.c irq[ndev] = snd_legacy_find_free_irq(irqs); ndev 253 sound/isa/cmi8328.c if (irq[ndev] < 0) { ndev 258 sound/isa/cmi8328.c if (dma1[ndev] == SNDRV_AUTO_DMA) { ndev 259 sound/isa/cmi8328.c dma1[ndev] = snd_legacy_find_free_dma(dma1s); ndev 260 sound/isa/cmi8328.c if (dma1[ndev] < 0) { ndev 265 sound/isa/cmi8328.c if (dma2[ndev] == SNDRV_AUTO_DMA) { ndev 266 sound/isa/cmi8328.c dma2[ndev] = snd_legacy_find_free_dma(dma2s[dma1[ndev] % 4]); ndev 267 sound/isa/cmi8328.c if (dma2[ndev] < 0) { ndev 269 sound/isa/cmi8328.c dma2[ndev] = -1; ndev 273 sound/isa/cmi8328.c pos = array_find(irqs, irq[ndev]); ndev 275 sound/isa/cmi8328.c snd_printk(KERN_ERR "invalid IRQ %d\n", irq[ndev]); ndev 280 sound/isa/cmi8328.c pos = array_find(dma1s, dma1[ndev]); ndev 282 sound/isa/cmi8328.c snd_printk(KERN_ERR "invalid DMA1 %d\n", dma1[ndev]); ndev 287 sound/isa/cmi8328.c if (dma2[ndev] >= 0 && dma1[ndev] != dma2[ndev]) { ndev 288 sound/isa/cmi8328.c pos = array_find(dma2s[dma1[ndev]], dma2[ndev]); ndev 290 sound/isa/cmi8328.c snd_printk(KERN_ERR "invalid DMA2 %d\n", dma2[ndev]); ndev 297 sound/isa/cmi8328.c err = snd_card_new(pdev, index[ndev], id[ndev], THIS_MODULE, ndev 306 sound/isa/cmi8328.c err = snd_wss_create(card, port + 4, -1, irq[ndev], dma1[ndev], ndev 307 sound/isa/cmi8328.c dma2[ndev], WSS_HW_DETECT, 0, &cmi->wss); ndev 325 sound/isa/cmi8328.c if (mpuport[ndev] == SNDRV_AUTO_PORT) { ndev 326 sound/isa/cmi8328.c mpuport[ndev] = snd_legacy_find_free_ioport(mpu_ports, 2); ndev 327 sound/isa/cmi8328.c if (mpuport[ndev] < 0) ndev 330 sound/isa/cmi8328.c if (mpuirq[ndev] == SNDRV_AUTO_IRQ) { ndev 331 sound/isa/cmi8328.c mpuirq[ndev] = snd_legacy_find_free_irq(mpu_irqs); ndev 332 sound/isa/cmi8328.c if (mpuirq[ndev] < 0) ndev 336 sound/isa/cmi8328.c if (mpuport[ndev] > 0 && mpuirq[ndev] > 0) { ndev 338 sound/isa/cmi8328.c pos = array_find_l(mpu_ports, mpuport[ndev]); ndev 341 sound/isa/cmi8328.c mpuport[ndev]); ndev 344 sound/isa/cmi8328.c pos = array_find(mpu_irqs, mpuirq[ndev]); ndev 347 sound/isa/cmi8328.c mpuirq[ndev]); ndev 352 sound/isa/cmi8328.c MPU401_HW_MPU401, mpuport[ndev], ndev 353 sound/isa/cmi8328.c 0, mpuirq[ndev], NULL) < 0) ndev 368 sound/isa/cmi8328.c card->shortname, cmi->wss->port, irq[ndev], dma1[ndev], ndev 369 sound/isa/cmi8328.c (dma2[ndev] >= 0) ? dma2[ndev] : dma1[ndev]); ndev 376 sound/isa/cmi8328.c if (!gameport[ndev]) ndev 75 tools/usb/usbip/src/usbip_list.c dbg("exportable devices: %d\n", reply.ndev); ndev 77 tools/usb/usbip/src/usbip_list.c if (reply.ndev == 0) { ndev 86 tools/usb/usbip/src/usbip_list.c for (i = 0; i < reply.ndev; i++) { ndev 147 tools/usb/usbip/src/usbip_network.h uint32_t ndev; ndev 160 tools/usb/usbip/src/usbip_network.h (reply)->ndev = usbip_net_pack_uint32_t(pack, (reply)->ndev);\ ndev 175 tools/usb/usbip/src/usbipd.c reply.ndev = 0; ndev 180 tools/usb/usbip/src/usbipd.c reply.ndev += 1; ndev 182 tools/usb/usbip/src/usbipd.c info("exportable devices: %d", reply.ndev);