Home
last modified time | relevance | path

Searched refs:tp (Results 1 – 25 of 482) sorted by relevance

12345678910>>...20

/linux/drivers/s390/char/
H A Dcon3270.c141 static void tty3270_set_timer(struct tty3270 *tp, int expires) in tty3270_set_timer() argument
143 mod_timer(&tp->timer, jiffies + expires); in tty3270_set_timer()
146 static int tty3270_tty_rows(struct tty3270 *tp) in tty3270_tty_rows() argument
148 return tp->view.rows - TTY3270_INPUT_AREA_ROWS; in tty3270_tty_rows()
151 static char *tty3270_add_ba(struct tty3270 *tp, char *cp, char order, int x, int y) in tty3270_add_ba() argument
154 raw3270_buffer_address(tp->view.dev, cp, x, y); in tty3270_add_ba()
158 static char *tty3270_add_ra(struct tty3270 *tp, char *cp, int x, int y, char c) in tty3270_add_ra() argument
160 cp = tty3270_add_ba(tp, cp, TO_RA, x, y); in tty3270_add_ra()
165 static char *tty3270_add_sa(struct tty3270 *tp, char *cp, char attr, char value) in tty3270_add_sa() argument
173 static char *tty3270_add_ge(struct tty3270 *tp, char *cp, char c) in tty3270_add_ge() argument
[all …]
/linux/drivers/net/ethernet/realtek/
H A Dr8169_main.c85 #define RTL_W8(tp, reg, val8) writeb((val8), tp->mmio_addr + (reg)) argument
86 #define RTL_W16(tp, reg, val16) writew((val16), tp->mmio_addr + (reg)) argument
87 #define RTL_W32(tp, reg, val32) writel((val32), tp->mmio_addr + (reg)) argument
88 #define RTL_R8(tp, reg) readb(tp->mmio_addr + (reg)) argument
89 #define RTL_R16(tp, reg) readw(tp->mmio_addr + (reg)) argument
90 #define RTL_R32(tp, reg) readl(tp->mmio_addr + (reg)) argument
775 typedef void (*rtl_generic_fct)(struct rtl8169_private *tp);
810 static inline struct device *tp_to_dev(struct rtl8169_private *tp) in tp_to_dev() argument
812 return &tp->pci_dev->dev; in tp_to_dev()
815 static void rtl_lock_config_regs(struct rtl8169_private *tp) in rtl_lock_config_regs() argument
[all …]
/linux/drivers/net/usb/
H A Dr8152.c884 void (*init)(struct r8152 *tp);
885 int (*enable)(struct r8152 *tp);
886 void (*disable)(struct r8152 *tp);
887 void (*up)(struct r8152 *tp);
888 void (*down)(struct r8152 *tp);
889 void (*unload)(struct r8152 *tp);
890 int (*eee_get)(struct r8152 *tp, struct ethtool_keee *eee);
891 int (*eee_set)(struct r8152 *tp, struct ethtool_keee *eee);
892 bool (*in_nway)(struct r8152 *tp);
893 void (*hw_phy_cfg)(struct r8152 *tp);
[all …]
/linux/drivers/net/ethernet/broadcom/
H A Dtg3.c93 #define tg3_flag(tp, flag) \ argument
94 _tg3_flag(TG3_FLAG_##flag, (tp)->tg3_flags)
95 #define tg3_flag_set(tp, flag) \ argument
96 _tg3_flag_set(TG3_FLAG_##flag, (tp)->tg3_flags)
97 #define tg3_flag_clear(tp, flag) \ argument
98 _tg3_flag_clear(TG3_FLAG_##flag, (tp)->tg3_flags)
131 #define TG3_MAX_MTU(tp) \ argument
132 (tg3_flag(tp, JUMBO_CAPABLE) ? 9000 : 1500)
138 #define TG3_RX_STD_RING_SIZE(tp) \ argument
139 (tg3_flag(tp, LRG_PROD_RING_CA
142 TG3_RX_JMB_RING_SIZE(tp) global() argument
157 TG3_RX_STD_RING_BYTES(tp) global() argument
159 TG3_RX_JMB_RING_BYTES(tp) global() argument
161 TG3_RX_RCB_RING_BYTES(tp) global() argument
177 TG3_RX_STD_BUFF_RING_SIZE(tp) global() argument
180 TG3_RX_JMB_BUFF_RING_SIZE(tp) global() argument
196 TG3_RX_COPY_THRESH(tp) global() argument
198 TG3_RX_COPY_THRESH(tp) global() argument
202 TG3_RX_OFFSET(tp) global() argument
204 TG3_RX_OFFSET(tp) global() argument
214 TG3_MAX_UCAST_ADDR(tp) global() argument
215 TG3_UCAST_ADDR_IDX(tp) global() argument
471 tg3_write32(struct tg3 * tp,u32 off,u32 val) tg3_write32() argument
476 tg3_read32(struct tg3 * tp,u32 off) tg3_read32() argument
481 tg3_ape_write32(struct tg3 * tp,u32 off,u32 val) tg3_ape_write32() argument
486 tg3_ape_read32(struct tg3 * tp,u32 off) tg3_ape_read32() argument
491 tg3_write_indirect_reg32(struct tg3 * tp,u32 off,u32 val) tg3_write_indirect_reg32() argument
501 tg3_write_flush_reg32(struct tg3 * tp,u32 off,u32 val) tg3_write_flush_reg32() argument
507 tg3_read_indirect_reg32(struct tg3 * tp,u32 off) tg3_read_indirect_reg32() argument
519 tg3_write_indirect_mbox(struct tg3 * tp,u32 off,u32 val) tg3_write_indirect_mbox() argument
549 tg3_read_indirect_mbox(struct tg3 * tp,u32 off) tg3_read_indirect_mbox() argument
566 _tw32_flush(struct tg3 * tp,u32 off,u32 val,u32 usec_wait) _tw32_flush() argument
585 tw32_mailbox_flush(struct tg3 * tp,u32 off,u32 val) tw32_mailbox_flush() argument
594 tg3_write32_tx_mbox(struct tg3 * tp,u32 off,u32 val) tg3_write32_tx_mbox() argument
605 tg3_read32_mbox_5906(struct tg3 * tp,u32 off) tg3_read32_mbox_5906() argument
610 tg3_write32_mbox_5906(struct tg3 * tp,u32 off,u32 val) tg3_write32_mbox_5906() argument
626 tg3_write_mem(struct tg3 * tp,u32 off,u32 val) tg3_write_mem() argument
651 tg3_read_mem(struct tg3 * tp,u32 off,u32 * val) tg3_read_mem() argument
678 tg3_ape_lock_init(struct tg3 * tp) tg3_ape_lock_init() argument
708 tg3_ape_lock(struct tg3 * tp,int locknum) tg3_ape_lock() argument
771 tg3_ape_unlock(struct tg3 * tp,int locknum) tg3_ape_unlock() argument
808 tg3_ape_event_lock(struct tg3 * tp,u32 timeout_us) tg3_ape_event_lock() argument
830 tg3_ape_wait_for_event(struct tg3 * tp,u32 timeout_us) tg3_ape_wait_for_event() argument
846 tg3_ape_scratchpad_read(struct tg3 * tp,u32 * data,u32 base_off,u32 len) tg3_ape_scratchpad_read() argument
911 tg3_ape_send_event(struct tg3 * tp,u32 event) tg3_ape_send_event() argument
938 tg3_ape_driver_state_change(struct tg3 * tp,int kind) tg3_ape_driver_state_change() argument
986 tg3_send_ape_heartbeat(struct tg3 * tp,unsigned long interval) tg3_send_ape_heartbeat() argument
998 tg3_disable_ints(struct tg3 * tp) tg3_disable_ints() argument
1008 tg3_enable_ints(struct tg3 * tp) tg3_enable_ints() argument
1041 struct tg3 *tp = tnapi->tp; tg3_has_work() local
1070 struct tg3 *tp = tnapi->tp; tg3_int_reenable() local
1083 tg3_switch_clocks(struct tg3 * tp) tg3_switch_clocks() argument
1118 __tg3_readphy(struct tg3 * tp,unsigned int phy_addr,int reg,u32 * val) __tg3_readphy() argument
1172 tg3_readphy(struct tg3 * tp,int reg,u32 * val) tg3_readphy() argument
1177 __tg3_writephy(struct tg3 * tp,unsigned int phy_addr,int reg,u32 val) __tg3_writephy() argument
1231 tg3_writephy(struct tg3 * tp,int reg,u32 val) tg3_writephy() argument
1236 tg3_phy_cl45_write(struct tg3 * tp,u32 devad,u32 addr,u32 val) tg3_phy_cl45_write() argument
1259 tg3_phy_cl45_read(struct tg3 * tp,u32 devad,u32 addr,u32 * val) tg3_phy_cl45_read() argument
1282 tg3_phydsp_read(struct tg3 * tp,u32 reg,u32 * val) tg3_phydsp_read() argument
1293 tg3_phydsp_write(struct tg3 * tp,u32 reg,u32 val) tg3_phydsp_write() argument
1304 tg3_phy_auxctl_read(struct tg3 * tp,int reg,u32 * val) tg3_phy_auxctl_read() argument
1317 tg3_phy_auxctl_write(struct tg3 * tp,int reg,u32 set) tg3_phy_auxctl_write() argument
1325 tg3_phy_toggle_auxctl_smdsp(struct tg3 * tp,bool enable) tg3_phy_toggle_auxctl_smdsp() argument
1346 tg3_phy_shdw_write(struct tg3 * tp,int reg,u32 val) tg3_phy_shdw_write() argument
1352 tg3_bmcr_reset(struct tg3 * tp) tg3_bmcr_reset() argument
1385 struct tg3 *tp = bp->priv; tg3_mdio_read() local
1400 struct tg3 *tp = bp->priv; tg3_mdio_write() local
1413 tg3_mdio_config_5785(struct tg3 * tp) tg3_mdio_config_5785() argument
1494 tg3_mdio_start(struct tg3 * tp) tg3_mdio_start() argument
1505 tg3_mdio_init(struct tg3 * tp) tg3_mdio_init() argument
1605 tg3_mdio_fini(struct tg3 * tp) tg3_mdio_fini() argument
1615 tg3_generate_fw_event(struct tg3 * tp) tg3_generate_fw_event() argument
1629 tg3_wait_for_event_ack(struct tg3 * tp) tg3_wait_for_event_ack() argument
1659 tg3_phy_gather_ump_data(struct tg3 * tp,u32 * data) tg3_phy_gather_ump_data() argument
1694 tg3_ump_link_report(struct tg3 * tp) tg3_ump_link_report() argument
1716 tg3_stop_fw(struct tg3 * tp) tg3_stop_fw() argument
1732 tg3_write_sig_pre_reset(struct tg3 * tp,int kind) tg3_write_sig_pre_reset() argument
1761 tg3_write_sig_post_reset(struct tg3 * tp,int kind) tg3_write_sig_post_reset() argument
1782 tg3_write_sig_legacy(struct tg3 * tp,int kind) tg3_write_sig_legacy() argument
1807 tg3_poll_fw(struct tg3 * tp) tg3_poll_fw() argument
1871 tg3_link_report(struct tg3 * tp) tg3_link_report() argument
1961 tg3_setup_flow_control(struct tg3 * tp,u32 lcladv,u32 rmtadv) tg3_setup_flow_control() argument
2004 struct tg3 *tp = netdev_priv(dev); tg3_adjust_link() local
2084 tg3_phy_init(struct tg3 * tp) tg3_phy_init() argument
2130 tg3_phy_start(struct tg3 * tp) tg3_phy_start() argument
2153 tg3_phy_stop(struct tg3 * tp) tg3_phy_stop() argument
2161 tg3_phy_fini(struct tg3 * tp) tg3_phy_fini() argument
2169 tg3_phy_set_extloopbk(struct tg3 * tp) tg3_phy_set_extloopbk() argument
2199 tg3_phy_fet_toggle_apd(struct tg3 * tp,bool enable) tg3_phy_fet_toggle_apd() argument
2219 tg3_phy_toggle_apd(struct tg3 * tp,bool enable) tg3_phy_toggle_apd() argument
2250 tg3_phy_toggle_automdix(struct tg3 * tp,bool enable) tg3_phy_toggle_automdix() argument
2291 tg3_phy_set_wirespeed(struct tg3 * tp) tg3_phy_set_wirespeed() argument
2305 tg3_phy_apply_otp(struct tg3 * tp) tg3_phy_apply_otp() argument
2342 tg3_eee_pull_config(struct tg3 * tp,struct ethtool_keee * eee) tg3_eee_pull_config() argument
2382 tg3_phy_eee_adjust(struct tg3 * tp,bool current_link_up) tg3_phy_eee_adjust() argument
2422 tg3_phy_eee_enable(struct tg3 * tp) tg3_phy_eee_enable() argument
2441 tg3_wait_macro_done(struct tg3 * tp) tg3_wait_macro_done() argument
2459 tg3_phy_write_and_check_testpat(struct tg3 * tp,int * resetp) tg3_phy_write_and_check_testpat() argument
2525 tg3_phy_reset_chanpat(struct tg3 * tp) tg3_phy_reset_chanpat() argument
2545 tg3_phy_reset_5703_4_5(struct tg3 * tp) tg3_phy_reset_5703_4_5() argument
2613 tg3_carrier_off(struct tg3 * tp) tg3_carrier_off() argument
2619 tg3_warn_mgmt_link_flap(struct tg3 * tp) tg3_warn_mgmt_link_flap() argument
2629 tg3_phy_reset(struct tg3 * tp) tg3_phy_reset() argument
2786 tg3_set_function_status(struct tg3 * tp,u32 newstat) tg3_set_function_status() argument
2809 tg3_pwrsrc_switch_to_vmain(struct tg3 * tp) tg3_pwrsrc_switch_to_vmain() argument
2834 tg3_pwrsrc_die_with_vmain(struct tg3 * tp) tg3_pwrsrc_die_with_vmain() argument
2858 tg3_pwrsrc_switch_to_vaux(struct tg3 * tp) tg3_pwrsrc_switch_to_vaux() argument
2935 tg3_frob_aux_power_5717(struct tg3 * tp,bool wol_enable) tg3_frob_aux_power_5717() argument
2960 tg3_frob_aux_power(struct tg3 * tp,bool include_wol) tg3_frob_aux_power() argument
3004 tg3_5700_link_polarity(struct tg3 * tp,u32 speed) tg3_5700_link_polarity() argument
3017 tg3_phy_power_bug(struct tg3 * tp) tg3_phy_power_bug() argument
3042 tg3_phy_led_bug(struct tg3 * tp) tg3_phy_led_bug() argument
3056 tg3_power_down_phy(struct tg3 * tp,bool do_low_power) tg3_power_down_phy() argument
3131 tg3_nvram_lock(struct tg3 * tp) tg3_nvram_lock() argument
3154 tg3_nvram_unlock(struct tg3 * tp) tg3_nvram_unlock() argument
3165 tg3_enable_nvram_access(struct tg3 * tp) tg3_enable_nvram_access() argument
3175 tg3_disable_nvram_access(struct tg3 * tp) tg3_disable_nvram_access() argument
3184 tg3_nvram_read_using_eeprom(struct tg3 * tp,u32 offset,u32 * val) tg3_nvram_read_using_eeprom() argument
3226 tg3_nvram_exec_cmd(struct tg3 * tp,u32 nvram_cmd) tg3_nvram_exec_cmd() argument
3245 tg3_nvram_phys_addr(struct tg3 * tp,u32 addr) tg3_nvram_phys_addr() argument
3260 tg3_nvram_logical_addr(struct tg3 * tp,u32 addr) tg3_nvram_logical_addr() argument
3281 tg3_nvram_read(struct tg3 * tp,u32 offset,u32 * val) tg3_nvram_read() argument
3314 tg3_nvram_read_be32(struct tg3 * tp,u32 offset,__be32 * val) tg3_nvram_read_be32() argument
3323 tg3_nvram_write_block_using_eeprom(struct tg3 * tp,u32 offset,u32 len,u8 * buf) tg3_nvram_write_block_using_eeprom() argument
3373 tg3_nvram_write_block_unbuffered(struct tg3 * tp,u32 offset,u32 len,u8 * buf) tg3_nvram_write_block_unbuffered() argument
3472 tg3_nvram_write_block_buffered(struct tg3 * tp,u32 offset,u32 len,u8 * buf) tg3_nvram_write_block_buffered() argument
3527 tg3_nvram_write_block(struct tg3 * tp,u32 offset,u32 len,u8 * buf) tg3_nvram_write_block() argument
3582 tg3_pause_cpu(struct tg3 * tp,u32 cpu_base) tg3_pause_cpu() argument
3600 tg3_rxcpu_pause(struct tg3 * tp) tg3_rxcpu_pause() argument
3612 tg3_txcpu_pause(struct tg3 * tp) tg3_txcpu_pause() argument
3618 tg3_resume_cpu(struct tg3 * tp,u32 cpu_base) tg3_resume_cpu() argument
3625 tg3_rxcpu_resume(struct tg3 * tp) tg3_rxcpu_resume() argument
3631 tg3_halt_cpu(struct tg3 * tp,u32 cpu_base) tg3_halt_cpu() argument
3668 tg3_fw_data_len(struct tg3 * tp,const struct tg3_firmware_hdr * fw_hdr) tg3_fw_data_len() argument
3696 tg3_load_firmware_cpu(struct tg3 * tp,u32 cpu_base,u32 cpu_scratch_base,int cpu_scratch_size,const struct tg3_firmware_hdr * fw_hdr) tg3_load_firmware_cpu() argument
3762 tg3_pause_cpu_and_set_pc(struct tg3 * tp,u32 cpu_base,u32 pc) tg3_pause_cpu_and_set_pc() argument
3783 tg3_load_5701_a0_firmware_fix(struct tg3 * tp) tg3_load_5701_a0_firmware_fix() argument
3824 tg3_validate_rxcpu_state(struct tg3 * tp) tg3_validate_rxcpu_state() argument
3856 tg3_load_57766_firmware(struct tg3 * tp) tg3_load_57766_firmware() argument
3897 tg3_load_tso_firmware(struct tg3 * tp) tg3_load_tso_firmware() argument
3947 __tg3_set_one_mac_addr(struct tg3 * tp,const u8 * mac_addr,int index) __tg3_set_one_mac_addr() argument
3967 __tg3_set_mac_addr(struct tg3 * tp,bool skip_mac_1) __tg3_set_mac_addr() argument
3994 tg3_enable_register_access(struct tg3 * tp) tg3_enable_register_access() argument
4004 tg3_power_up(struct tg3 * tp) tg3_power_up() argument
4023 tg3_power_down_prepare(struct tg3 * tp) tg3_power_down_prepare() argument
4270 tg3_power_down(struct tg3 * tp) tg3_power_down() argument
4276 tg3_aux_stat_to_speed_duplex(struct tg3 * tp,u32 val,u32 * speed,u8 * duplex) tg3_aux_stat_to_speed_duplex() argument
4323 tg3_phy_autoneg_cfg(struct tg3 * tp,u32 advertise,u32 flowctrl) tg3_phy_autoneg_cfg() argument
4396 tg3_phy_copper_begin(struct tg3 * tp) tg3_phy_copper_begin() argument
4493 tg3_phy_pull_config(struct tg3 * tp) tg3_phy_pull_config() argument
4590 tg3_init_5401phy_dsp(struct tg3 * tp) tg3_init_5401phy_dsp() argument
4609 tg3_phy_eee_config_ok(struct tg3 * tp) tg3_phy_eee_config_ok() argument
4632 tg3_phy_copper_an_config_ok(struct tg3 * tp,u32 * lcladv) tg3_phy_copper_an_config_ok() argument
4676 tg3_phy_copper_fetch_rmtadv(struct tg3 * tp,u32 * rmtadv) tg3_phy_copper_fetch_rmtadv() argument
4698 tg3_test_and_report_link_chg(struct tg3 * tp,bool curr_link_up) tg3_test_and_report_link_chg() argument
4716 tg3_clear_mac_status(struct tg3 * tp) tg3_clear_mac_status() argument
4728 tg3_setup_eee(struct tg3 * tp) tg3_setup_eee() argument
4764 tg3_setup_copper_phy(struct tg3 * tp,bool force_reset) tg3_setup_copper_phy() argument
5141 tg3_fiber_aneg_smachine(struct tg3 * tp,struct tg3_fiber_aneginfo * ap) tg3_fiber_aneg_smachine() argument
5393 fiber_autoneg(struct tg3 * tp,u32 * txflags,u32 * rxflags) fiber_autoneg() argument
5438 tg3_init_bcm8002(struct tg3 * tp) tg3_init_bcm8002() argument
5488 tg3_setup_fiber_hw_autoneg(struct tg3 * tp,u32 mac_status) tg3_setup_fiber_hw_autoneg() argument
5632 tg3_setup_fiber_by_hand(struct tg3 * tp,u32 mac_status) tg3_setup_fiber_by_hand() argument
5697 tg3_setup_fiber_phy(struct tg3 * tp,bool force_reset) tg3_setup_fiber_phy() argument
5799 tg3_setup_fiber_mii_phy(struct tg3 * tp,bool force_reset) tg3_setup_fiber_mii_phy() argument
5990 tg3_serdes_parallel_detect(struct tg3 * tp) tg3_serdes_parallel_detect() argument
6050 tg3_setup_phy(struct tg3 * tp,bool force_reset) tg3_setup_phy() argument
6117 tg3_refclk_read(struct tg3 * tp,struct ptp_system_timestamp * sts) tg3_refclk_read() argument
6130 tg3_refclk_write(struct tg3 * tp,u64 newval) tg3_refclk_write() argument
6144 struct tg3 *tp = netdev_priv(dev); tg3_get_ts_info() local
6168 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); tg3_ptp_adjfine() local
6196 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); tg3_ptp_adjtime() local
6209 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); tg3_ptp_gettimex() local
6225 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); tg3_ptp_settime() local
6240 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); tg3_ptp_enable() local
6300 tg3_hwclock_to_timestamp(struct tg3 * tp,u64 hwclock,struct skb_shared_hwtstamps * timestamp) tg3_hwclock_to_timestamp() argument
6308 tg3_read_tx_tstamp(struct tg3 * tp,u64 * hwclock) tg3_read_tx_tstamp() argument
6316 struct tg3 *tp = container_of(ptp, struct tg3, ptp_info); tg3_ptp_ts_aux_work() local
6358 tg3_ptp_init(struct tg3 * tp) tg3_ptp_init() argument
6370 tg3_ptp_resume(struct tg3 * tp) tg3_ptp_resume() argument
6379 tg3_ptp_fini(struct tg3 * tp) tg3_ptp_fini() argument
6391 tg3_irq_sync(struct tg3 * tp) tg3_irq_sync() argument
6396 tg3_rd32_loop(struct tg3 * tp,u32 * dst,u32 off,u32 len) tg3_rd32_loop() argument
6405 tg3_dump_legacy_regs(struct tg3 * tp,u32 * regs) tg3_dump_legacy_regs() argument
6455 tg3_dump_state(struct tg3 * tp) tg3_dump_state() argument
6525 tg3_tx_recover(struct tg3 * tp) tg3_tx_recover() argument
6553 struct tg3 *tp = tnapi->tp; tg3_tx() local
6666 tg3_rx_data_free(struct tg3 * tp,struct ring_info * ri,u32 map_sz) tg3_rx_data_free() argument
6692 tg3_alloc_rx_data(struct tg3 * tp,struct tg3_rx_prodring_set * tpr,u32 opaque_key,u32 dest_idx_unmasked,unsigned int * frag_size) tg3_alloc_rx_data() argument
6764 struct tg3 *tp = tnapi->tp; tg3_recycle_rx() local
6831 struct tg3 *tp = tnapi->tp; tg3_rx() local
7039 tg3_poll_link(struct tg3 * tp) tg3_poll_link() argument
7063 tg3_rx_prodring_xfer(struct tg3 * tp,struct tg3_rx_prodring_set * dpr,struct tg3_rx_prodring_set * spr) tg3_rx_prodring_xfer() argument
7191 struct tg3 *tp = tnapi->tp; tg3_poll_work() local
7238 tg3_reset_task_schedule(struct tg3 * tp) tg3_reset_task_schedule() argument
7244 tg3_reset_task_cancel(struct tg3 * tp) tg3_reset_task_cancel() argument
7254 struct tg3 *tp = tnapi->tp; tg3_poll_msix() local
7311 tg3_process_error(struct tg3 * tp) tg3_process_error() argument
7348 struct tg3 *tp = tnapi->tp; tg3_poll() local
7394 tg3_napi_disable(struct tg3 * tp) tg3_napi_disable() argument
7417 tg3_napi_enable(struct tg3 * tp) tg3_napi_enable() argument
7441 tg3_napi_init(struct tg3 * tp) tg3_napi_init() argument
7453 tg3_napi_fini(struct tg3 * tp) tg3_napi_fini() argument
7461 tg3_netif_stop(struct tg3 * tp) tg3_netif_stop() argument
7470 tg3_netif_start(struct tg3 * tp) tg3_netif_start() argument
7488 tg3_irq_quiesce(struct tg3 * tp) tg3_irq_quiesce() argument
7512 tg3_full_lock(struct tg3 * tp,int irq_sync) tg3_full_lock() argument
7519 tg3_full_unlock(struct tg3 * tp) tg3_full_unlock() argument
7530 struct tg3 *tp = tnapi->tp; tg3_msi_1shot() local
7549 struct tg3 *tp = tnapi->tp; tg3_msi() local
7571 struct tg3 *tp = tnapi->tp; tg3_interrupt() local
7620 struct tg3 *tp = tnapi->tp; tg3_interrupt_tagged() local
7673 struct tg3 *tp = tnapi->tp; tg3_test_isr() local
7688 struct tg3 *tp = netdev_priv(dev); tg3_poll_controller() local
7700 struct tg3 *tp = netdev_priv(dev); tg3_tx_timeout() local
7721 tg3_4g_tso_overflow_test(struct tg3 * tp,dma_addr_t mapping,u32 len,u32 mss) tg3_4g_tso_overflow_test() argument
7733 tg3_40bit_overflow_test(struct tg3 * tp,dma_addr_t mapping,int len) tg3_40bit_overflow_test() argument
7759 struct tg3 *tp = tnapi->tp; tg3_tx_frag_set() local
7860 struct tg3 *tp = tnapi->tp; tigon3_dma_hwbug_workaround() local
7922 tg3_tso_bug(struct tg3 * tp,struct tg3_napi * tnapi,struct netdev_queue * txq,struct sk_buff * skb) tg3_tso_bug() argument
7965 struct tg3 *tp = netdev_priv(dev); __tg3_start_xmit() local
8246 struct tg3 *tp; tg3_start_xmit() local
8260 tg3_mac_loopback(struct tg3 * tp,bool enable) tg3_mac_loopback() argument
8288 tg3_phy_lpbk_set(struct tg3 * tp,u32 speed,bool extlpbk) tg3_phy_lpbk_set() argument
8383 struct tg3 *tp = netdev_priv(dev); tg3_set_loopback() local
8410 struct tg3 *tp = netdev_priv(dev); tg3_fix_features() local
8428 tg3_rx_prodring_free(struct tg3 * tp,struct tg3_rx_prodring_set * tpr) tg3_rx_prodring_free() argument
8469 tg3_rx_prodring_alloc(struct tg3 * tp,struct tg3_rx_prodring_set * tpr) tg3_rx_prodring_alloc() argument
8571 tg3_rx_prodring_fini(struct tg3 * tp,struct tg3_rx_prodring_set * tpr) tg3_rx_prodring_fini() argument
8590 tg3_rx_prodring_init(struct tg3 * tp,struct tg3_rx_prodring_set * tpr) tg3_rx_prodring_init() argument
8633 tg3_free_rings(struct tg3 * tp) tg3_free_rings() argument
8667 tg3_init_rings(struct tg3 * tp) tg3_init_rings() argument
8702 tg3_mem_tx_release(struct tg3 * tp) tg3_mem_tx_release() argument
8720 tg3_mem_tx_acquire(struct tg3 * tp) tg3_mem_tx_acquire() argument
8752 tg3_mem_rx_release(struct tg3 * tp) tg3_mem_rx_release() argument
8772 tg3_mem_rx_acquire(struct tg3 * tp) tg3_mem_rx_acquire() argument
8816 tg3_free_consistent(struct tg3 * tp) tg3_free_consistent() argument
8849 tg3_alloc_consistent(struct tg3 * tp) tg3_alloc_consistent() argument
8916 tg3_stop_block(struct tg3 * tp,unsigned long ofs,u32 enable_bit,bool silent) tg3_stop_block() argument
8968 tg3_abort_hw(struct tg3 * tp,bool silent) tg3_abort_hw() argument
9040 tg3_save_pci_state(struct tg3 * tp) tg3_save_pci_state() argument
9046 tg3_restore_pci_state(struct tg3 * tp) tg3_restore_pci_state() argument
9106 tg3_override_clk(struct tg3 * tp) tg3_override_clk() argument
9127 tg3_restore_clk(struct tg3 * tp) tg3_restore_clk() argument
9150 tg3_chip_reset(struct tg3 * tp) tg3_chip_reset() argument
9432 tg3_halt(struct tg3 * tp,int kind,bool silent) tg3_halt() argument
9469 struct tg3 *tp = netdev_priv(dev); tg3_set_mac_addr() local
9504 tg3_set_bdinfo(struct tg3 * tp,u32 bdinfo_addr,dma_addr_t mapping,u32 maxlen_flags,u32 nic_addr) tg3_set_bdinfo() argument
9525 tg3_coal_tx_init(struct tg3 * tp,struct ethtool_coalesce * ec) tg3_coal_tx_init() argument
9557 tg3_coal_rx_init(struct tg3 * tp,struct ethtool_coalesce * ec) tg3_coal_rx_init() argument
9591 __tg3_set_coalesce(struct tg3 * tp,struct ethtool_coalesce * ec) __tg3_set_coalesce() argument
9610 tg3_tx_rcbs_disable(struct tg3 * tp) tg3_tx_rcbs_disable() argument
9632 tg3_tx_rcbs_init(struct tg3 * tp) tg3_tx_rcbs_init() argument
9653 tg3_rx_ret_rcbs_disable(struct tg3 * tp) tg3_rx_ret_rcbs_disable() argument
9676 tg3_rx_ret_rcbs_init(struct tg3 * tp) tg3_rx_ret_rcbs_init() argument
9697 tg3_rings_reset(struct tg3 * tp) tg3_rings_reset() argument
9767 tg3_setup_rxbd_thresholds(struct tg3 * tp) tg3_setup_rxbd_thresholds() argument
9811 tg3_set_multi(struct tg3 * tp,unsigned int accept_all) tg3_set_multi() argument
9822 struct tg3 *tp = netdev_priv(dev); __tg3_set_rx_mode() local
9888 tg3_rss_init_dflt_indir_tbl(struct tg3 * tp,u32 qcnt) tg3_rss_init_dflt_indir_tbl() argument
9896 tg3_rss_check_indir_tbl(struct tg3 * tp) tg3_rss_check_indir_tbl() argument
9918 tg3_rss_write_indir_tbl(struct tg3 * tp) tg3_rss_write_indir_tbl() argument
9935 tg3_lso_rd_dma_workaround_bit(struct tg3 * tp) tg3_lso_rd_dma_workaround_bit() argument
9944 tg3_reset_hw(struct tg3 * tp,bool reset_phy) tg3_reset_hw() argument
10860 tg3_init_hw(struct tg3 * tp,bool reset_phy) tg3_init_hw() argument
10877 tg3_sd_scan_scratchpad(struct tg3 * tp,struct tg3_ocir * ocir) tg3_sd_scan_scratchpad() argument
10896 struct tg3 *tp = dev_get_drvdata(dev); tg3_show_temp() local
10922 tg3_hwmon_close(struct tg3 * tp) tg3_hwmon_close() argument
10930 tg3_hwmon_open(struct tg3 * tp) tg3_hwmon_open() argument
10958 tg3_hwmon_close(struct tg3 * tp) tg3_hwmon_close() argument
10959 tg3_hwmon_open(struct tg3 * tp) tg3_hwmon_open() argument
10970 tg3_periodic_fetch_stats(struct tg3 * tp) tg3_periodic_fetch_stats() argument
11036 tg3_chk_missed_msi(struct tg3 * tp) tg3_chk_missed_msi() argument
11061 struct tg3 *tp = timer_container_of(tp, t, timer); tg3_timer() local
11203 tg3_timer_init(struct tg3 * tp) tg3_timer_init() argument
11221 tg3_timer_start(struct tg3 * tp) tg3_timer_start() argument
11230 tg3_timer_stop(struct tg3 * tp) tg3_timer_stop() argument
11238 tg3_restart_hw(struct tg3 * tp,bool reset_phy) tg3_restart_hw() argument
11265 struct tg3 *tp = container_of(work, struct tg3, reset_task); tg3_reset_task() local
11319 tg3_request_irq(struct tg3 * tp,int irq_num) tg3_request_irq() argument
11359 tg3_test_interrupt(struct tg3 * tp) tg3_test_interrupt() argument
11436 tg3_test_msi(struct tg3 * tp) tg3_test_msi() argument
11494 tg3_request_firmware(struct tg3 * tp) tg3_request_firmware() argument
11525 tg3_irq_count(struct tg3 * tp) tg3_irq_count() argument
11541 tg3_enable_msix(struct tg3 * tp) tg3_enable_msix() argument
11600 tg3_ints_init(struct tg3 * tp) tg3_ints_init() argument
11639 tg3_ints_fini(struct tg3 * tp) tg3_ints_fini() argument
11651 tg3_start(struct tg3 * tp,bool reset_phy,bool test_irq,bool init) tg3_start() argument
11768 tg3_stop(struct tg3 * tp) tg3_stop() argument
11805 struct tg3 *tp = netdev_priv(dev); tg3_open() local
11862 struct tg3 *tp = netdev_priv(dev); tg3_close() local
11885 tg3_calc_crc_errors(struct tg3 * tp) tg3_calc_crc_errors() argument
11913 tg3_get_estats(struct tg3 * tp,struct tg3_ethtool_stats * estats) tg3_get_estats() argument
11997 tg3_get_nstats(struct tg3 * tp,struct rtnl_link_stats64 * stats) tg3_get_nstats() argument
12080 struct tg3 *tp = netdev_priv(dev); tg3_get_regs() local
12098 struct tg3 *tp = netdev_priv(dev); tg3_get_eeprom_len() local
12105 struct tg3 *tp = netdev_priv(dev); tg3_get_eeprom() local
12196 struct tg3 *tp = netdev_priv(dev); tg3_set_eeprom() local
12253 struct tg3 *tp = netdev_priv(dev); tg3_get_link_ksettings() local
12328 struct tg3 *tp = netdev_priv(dev); tg3_set_link_ksettings() local
12423 struct tg3 *tp = netdev_priv(dev); tg3_get_drvinfo() local
12432 struct tg3 *tp = netdev_priv(dev); tg3_get_wol() local
12446 struct tg3 *tp = netdev_priv(dev); tg3_set_wol() local
12467 struct tg3 *tp = netdev_priv(dev); tg3_get_msglevel() local
12473 struct tg3 *tp = netdev_priv(dev); tg3_set_msglevel() local
12479 struct tg3 *tp = netdev_priv(dev); tg3_nway_reset() local
12518 struct tg3 *tp = netdev_priv(dev); tg3_get_ringparam() local
12542 struct tg3 *tp = netdev_priv(dev); tg3_set_ringparam() local
12599 struct tg3 *tp = netdev_priv(dev); tg3_get_pauseparam() local
12616 struct tg3 *tp = netdev_priv(dev); tg3_set_pauseparam() local
12723 struct tg3 *tp = netdev_priv(dev); tg3_get_rx_ring_count() local
12737 struct tg3 *tp = netdev_priv(dev); tg3_get_rxfh_indir_size() local
12747 struct tg3 *tp = netdev_priv(dev); tg3_get_rxfh() local
12763 struct tg3 *tp = netdev_priv(dev); tg3_set_rxfh() local
12796 struct tg3 *tp = netdev_priv(dev); tg3_get_channels() local
12821 struct tg3 *tp = netdev_priv(dev); tg3_set_channels() local
12863 struct tg3 *tp = netdev_priv(dev); tg3_set_phys_id() local
12895 struct tg3 *tp = netdev_priv(dev); tg3_get_ethtool_stats() local
12903 tg3_vpd_readblock(struct tg3 * tp,unsigned int * vpdlen) tg3_vpd_readblock() argument
12974 tg3_test_nvram(struct tg3 * tp) tg3_test_nvram() argument
13138 tg3_test_link(struct tg3 * tp) tg3_test_link() argument
13162 tg3_test_registers(struct tg3 * tp) tg3_test_registers() argument
13382 tg3_do_mem_test(struct tg3 * tp,u32 offset,u32 len) tg3_do_mem_test() argument
13401 tg3_test_memory(struct tg3 * tp) tg3_test_memory() argument
13494 tg3_run_loopback(struct tg3 * tp,u32 pktsz,bool tso_loopback) tg3_run_loopback() argument
13710 tg3_test_loopback(struct tg3 * tp,u64 * data,bool do_extlpbk) tg3_test_loopback() argument
13828 struct tg3 *tp = netdev_priv(dev); tg3_self_test() local
13920 struct tg3 *tp = netdev_priv(dev); tg3_hwtstamp_set() local
14000 struct tg3 *tp = netdev_priv(dev); tg3_hwtstamp_get() local
14060 struct tg3 *tp = netdev_priv(dev); tg3_ioctl() local
14121 struct tg3 *tp = netdev_priv(dev); tg3_get_coalesce() local
14132 struct tg3 *tp = netdev_priv(dev); tg3_set_coalesce() local
14178 struct tg3 *tp = netdev_priv(dev); tg3_set_eee() local
14217 struct tg3 *tp = netdev_priv(dev); tg3_get_eee() local
14274 struct tg3 *tp = netdev_priv(dev); tg3_get_stats64() local
14289 struct tg3 *tp = netdev_priv(dev); tg3_set_rx_mode() local
14299 tg3_set_mtu(struct net_device * dev,struct tg3 * tp,int new_mtu) tg3_set_mtu() argument
14322 struct tg3 *tp = netdev_priv(dev); tg3_change_mtu() local
14388 tg3_get_eeprom_size(struct tg3 * tp) tg3_get_eeprom_size() argument
14422 tg3_get_nvram_size(struct tg3 * tp) tg3_get_nvram_size() argument
14455 tg3_get_nvram_info(struct tg3 * tp) tg3_get_nvram_info() argument
14506 tg3_nvram_get_pagesize(struct tg3 * tp,u32 nvmcfg1) tg3_nvram_get_pagesize() argument
14533 tg3_get_5752_nvram_info(struct tg3 * tp) tg3_get_5752_nvram_info() argument
14574 tg3_get_5755_nvram_info(struct tg3 * tp) tg3_get_5755_nvram_info() argument
14630 tg3_get_5787_nvram_info(struct tg3 * tp) tg3_get_5787_nvram_info() argument
14668 tg3_get_5761_nvram_info(struct tg3 * tp) tg3_get_5761_nvram_info() argument
14743 tg3_get_5906_nvram_info(struct tg3 * tp) tg3_get_5906_nvram_info() argument
14750 tg3_get_57780_nvram_info(struct tg3 * tp) tg3_get_57780_nvram_info() argument
14823 tg3_get_5717_nvram_info(struct tg3 * tp) tg3_get_5717_nvram_info() argument
14901 tg3_get_5720_nvram_info(struct tg3 * tp) tg3_get_5720_nvram_info() argument
15066 tg3_nvram_init(struct tg3 * tp) tg3_nvram_init() argument
15209 tg3_lookup_by_subsys(struct tg3 * tp) tg3_lookup_by_subsys() argument
15223 tg3_get_eeprom_hw_cfg(struct tg3 * tp) tg3_get_eeprom_hw_cfg() argument
15440 tg3_ape_otp_read(struct tg3 * tp,u32 offset,u32 * val) tg3_ape_otp_read() argument
15473 tg3_issue_otp_command(struct tg3 * tp,u32 cmd) tg3_issue_otp_command() argument
15496 tg3_read_otp_phycfg(struct tg3 * tp) tg3_read_otp_phycfg() argument
15522 tg3_phy_init_link_config(struct tg3 * tp) tg3_phy_init_link_config() argument
15551 tg3_phy_probe(struct tg3 * tp) tg3_phy_probe() argument
15709 tg3_read_vpd(struct tg3 * tp) tg3_read_vpd() argument
15805 tg3_fw_img_is_valid(struct tg3 * tp,u32 offset) tg3_fw_img_is_valid() argument
15818 tg3_read_bc_ver(struct tg3 * tp) tg3_read_bc_ver() argument
15870 tg3_read_hwsb_ver(struct tg3 * tp) tg3_read_hwsb_ver() argument
15886 tg3_read_sb_ver(struct tg3 * tp,u32 val) tg3_read_sb_ver() argument
15941 tg3_read_mgmtfw_ver(struct tg3 * tp) tg3_read_mgmtfw_ver() argument
15993 tg3_probe_ncsi(struct tg3 * tp) tg3_probe_ncsi() argument
16009 tg3_read_dash_ver(struct tg3 * tp) tg3_read_dash_ver() argument
16034 tg3_read_otp_ver(struct tg3 * tp) tg3_read_otp_ver() argument
16059 tg3_read_fw_ver(struct tg3 * tp) tg3_read_fw_ver() argument
16096 tg3_rx_ret_ring_size(struct tg3 * tp) tg3_rx_ret_ring_size() argument
16113 tg3_find_peer(struct tg3 * tp) tg3_find_peer() argument
16141 tg3_detect_asic_rev(struct tg3 * tp,u32 misc_ctrl_reg) tg3_detect_asic_rev() argument
16229 tg3_10_100_only_device(struct tg3 * tp,const struct pci_device_id * ent) tg3_10_100_only_device() argument
16251 tg3_get_invariants(struct tg3 * tp,const struct pci_device_id * ent) tg3_get_invariants() argument
17039 tg3_get_device_address(struct tg3 * tp,u8 * addr) tg3_get_device_address() argument
17122 tg3_calc_dma_bndry(struct tg3 * tp,u32 val) tg3_calc_dma_bndry() argument
17263 tg3_do_test_dma(struct tg3 * tp,u32 * buf,dma_addr_t buf_dma,int size,bool to_device) tg3_do_test_dma() argument
17351 tg3_test_dma(struct tg3 * tp) tg3_test_dma() argument
17525 tg3_init_bufmgr_config(struct tg3 * tp) tg3_init_bufmgr_config() argument
17581 tg3_phy_string(struct tg3 * tp) tg3_phy_string() argument
17613 tg3_bus_string(struct tg3 * tp,char * str) tg3_bus_string() argument
17649 tg3_init_coal(struct tg3 * tp) tg3_init_coal() argument
17684 struct tg3 *tp; tg3_init_one() local
18078 struct tg3 *tp = netdev_priv(dev); tg3_remove_one() local
18110 struct tg3 *tp = netdev_priv(dev); tg3_suspend() local
18144 struct tg3 *tp = netdev_priv(dev); tg3_resume() local
18231 struct tg3 *tp = netdev_priv(dev); tg3_shutdown() local
18275 struct tg3 *tp = netdev_priv(netdev); tg3_io_error_detected() local
18336 struct tg3 *tp = netdev_priv(netdev); tg3_io_slot_reset() local
18384 struct tg3 *tp = netdev_priv(netdev); tg3_io_resume() local
[all...]
/linux/drivers/sbus/char/
H A Dbbc_envctrl.c120 static void get_current_temps(struct bbc_cpu_temperature *tp) in get_current_temps() argument
122 tp->prev_amb_temp = tp->curr_amb_temp; in get_current_temps()
123 bbc_i2c_readb(tp->client, in get_current_temps()
124 (unsigned char *) &tp->curr_amb_temp, in get_current_temps()
126 tp->prev_cpu_temp = tp->curr_cpu_temp; in get_current_temps()
127 bbc_i2c_readb(tp->client, in get_current_temps()
128 (unsigned char *) &tp->curr_cpu_temp, in get_current_temps()
132 tp->index, in get_current_temps()
133 (int) tp->curr_cpu_temp, (int) tp->curr_amb_temp); in get_current_temps()
138 static void do_envctrl_shutdown(struct bbc_cpu_temperature *tp) in do_envctrl_shutdown() argument
[all …]
/linux/drivers/net/ethernet/dec/tulip/
H A Dtulip_core.c117 struct tulip_private *tp = timer_container_of(tp, t, timer); in tulip_timer() local
118 struct net_device *dev = tp->dev; in tulip_timer()
121 schedule_work(&tp->media_work); in tulip_timer()
264 static void tulip_set_power_state (struct tulip_private *tp, in tulip_set_power_state() argument
267 if (tp->flags & HAS_ACPI) { in tulip_set_power_state()
269 pci_read_config_dword (tp->pdev, CFDD, &tmp); in tulip_set_power_state()
276 pci_write_config_dword (tp->pdev, CFDD, newtmp); in tulip_set_power_state()
284 struct tulip_private *tp = netdev_priv(dev); in tulip_up() local
285 void __iomem *ioaddr = tp->base_addr; in tulip_up()
291 napi_enable(&tp->napi); in tulip_up()
[all …]
H A Dinterrupt.c61 struct tulip_private *tp = netdev_priv(dev); in tulip_refill_rx() local
66 for (; tp->cur_rx - tp->dirty_rx > 0; tp->dirty_rx++) { in tulip_refill_rx()
67 entry = tp->dirty_rx % RX_RING_SIZE; in tulip_refill_rx()
68 if (tp->rx_buffers[entry].skb == NULL) { in tulip_refill_rx()
72 skb = tp->rx_buffers[entry].skb = in tulip_refill_rx()
77 mapping = dma_map_single(&tp->pdev->dev, skb->data, in tulip_refill_rx()
79 if (dma_mapping_error(&tp->pdev->dev, mapping)) { in tulip_refill_rx()
81 tp->rx_buffers[entry].skb = NULL; in tulip_refill_rx()
85 tp->rx_buffers[entry].mapping = mapping; in tulip_refill_rx()
87 tp->rx_ring[entry].buffer1 = cpu_to_le32(mapping); in tulip_refill_rx()
[all …]
H A Dpnic2.c81 struct tulip_private *tp = timer_container_of(tp, t, timer); in pnic2_timer() local
82 struct net_device *dev = tp->dev; in pnic2_timer()
83 void __iomem *ioaddr = tp->base_addr; in pnic2_timer()
91 mod_timer(&tp->timer, RUN_AT(next_tick)); in pnic2_timer()
98 struct tulip_private *tp = netdev_priv(dev); in pnic2_start_nway() local
99 void __iomem *ioaddr = tp->base_addr; in pnic2_start_nway()
111 if (tp->sym_advertise & 0x0100) csr14 |= 0x00020000; in pnic2_start_nway()
114 if (tp->sym_advertise & 0x0080) csr14 |= 0x00010000; in pnic2_start_nway()
117 if (tp->sym_advertise & 0x0020) csr14 |= 0x00000040; in pnic2_start_nway()
130 tp->nway = tp->mediasense = 1; in pnic2_start_nway()
[all …]
H A D21142.c30 struct tulip_private *tp = in t21142_media_task() local
32 struct net_device *dev = tp->dev; in t21142_media_task()
33 void __iomem *ioaddr = tp->base_addr; in t21142_media_task()
53 } else if (tp->nwayset) { in t21142_media_task()
59 } else if (tp->medialock) { in t21142_media_task()
95 if (new_csr6 != (tp->csr6 & ~0x00D5)) { in t21142_media_task()
96 tp->csr6 &= 0x00D5; in t21142_media_task()
97 tp->csr6 |= new_csr6; in t21142_media_task()
99 tulip_restart_rxtx(tp); in t21142_media_task()
107 mod_timer(&tp->timer, RUN_AT(next_tick)); in t21142_media_task()
[all …]
H A Dtimer.c19 struct tulip_private *tp = in tulip_media_task() local
21 struct net_device *dev = tp->dev; in tulip_media_task()
22 void __iomem *ioaddr = tp->base_addr; in tulip_media_task()
34 switch (tp->chip_id) { in tulip_media_task()
43 if (tp->mtable == NULL) { /* No EEPROM info, use generic code. */ in tulip_media_task()
53 mleaf = &tp->mtable->mleaf[tp->cur_index]; in tulip_media_task()
87 if (tp->medialock) in tulip_media_task()
90 if (--tp->cur_index < 0) { in tulip_media_task()
92 tp->cur_index = tp->mtable->leafcount - 1; in tulip_media_task()
94 dev->if_port = tp->mtable->mleaf[tp->cur_index].media; in tulip_media_task()
[all …]
H A Dmedia.c49 struct tulip_private *tp = netdev_priv(dev); in tulip_mdio_read() local
53 void __iomem *ioaddr = tp->base_addr; in tulip_mdio_read()
60 if (tp->chip_id == COMET && phy_id == 30) { in tulip_mdio_read()
66 spin_lock_irqsave(&tp->mii_lock, flags); in tulip_mdio_read()
67 if (tp->chip_id == LC82C168) { in tulip_mdio_read()
76 spin_unlock_irqrestore(&tp->mii_lock, flags); in tulip_mdio_read()
105 spin_unlock_irqrestore(&tp->mii_lock, flags); in tulip_mdio_read()
111 struct tulip_private *tp = netdev_priv(dev); in tulip_mdio_write() local
114 void __iomem *ioaddr = tp->base_addr; in tulip_mdio_write()
121 if (tp->chip_id == COMET && phy_id == 30) { in tulip_mdio_write()
[all …]
H A Dpnic.c21 struct tulip_private *tp = netdev_priv(dev); in pnic_do_nway() local
22 void __iomem *ioaddr = tp->base_addr; in pnic_do_nway()
31 tp->nwayset = 1; in pnic_do_nway()
37 tp->full_duplex = 1; in pnic_do_nway()
43 if (tp->csr6 != new_csr6) { in pnic_do_nway()
44 tp->csr6 = new_csr6; in pnic_do_nway()
46 tulip_restart_rxtx(tp); in pnic_do_nway()
54 struct tulip_private *tp = netdev_priv(dev); in pnic_lnk_change() local
55 void __iomem *ioaddr = tp->base_addr; in pnic_lnk_change()
68 if (! tp->nwayset || time_after(jiffies, dev_trans_start(dev) + 1*HZ)) { in pnic_lnk_change()
[all …]
/linux/drivers/net/ethernet/realtek/rtase/
H A Drtase_main.c104 static void rtase_w8(const struct rtase_private *tp, u16 reg, u8 val8) in rtase_w8() argument
106 writeb(val8, tp->mmio_addr + reg); in rtase_w8()
109 static void rtase_w16(const struct rtase_private *tp, u16 reg, u16 val16) in rtase_w16() argument
111 writew(val16, tp->mmio_addr + reg); in rtase_w16()
114 static void rtase_w32(const struct rtase_private *tp, u16 reg, u32 val32) in rtase_w32() argument
116 writel(val32, tp->mmio_addr + reg); in rtase_w32()
119 static u8 rtase_r8(const struct rtase_private *tp, u16 reg) in rtase_r8() argument
121 return readb(tp->mmio_addr + reg); in rtase_r8()
124 static u16 rtase_r16(const struct rtase_private *tp, u16 reg) in rtase_r16() argument
126 return readw(tp->mmio_addr + reg); in rtase_r16()
[all …]
/linux/net/ipv4/
H A Dtcp_input.c124 void clean_acked_data_enable(struct tcp_sock *tp, in clean_acked_data_enable() argument
127 tp->tcp_clean_acked = cad; in clean_acked_data_enable()
132 void clean_acked_data_disable(struct tcp_sock *tp) in clean_acked_data_disable() argument
135 tp->tcp_clean_acked = NULL; in clean_acked_data_disable()
252 struct tcp_sock *tp = tcp_sk(sk); in tcp_measure_rcv_mss() local
257 if (tp->window_clamp < tp->rcvq_space.space) in tcp_measure_rcv_mss()
258 tp->rcvq_space.space = tp->window_clamp; in tcp_measure_rcv_mss()
346 struct tcp_sock *tp = tcp_sk(sk); in tcp_data_ecn_check() local
348 if (tcp_ecn_disabled(tp)) in tcp_data_ecn_check()
357 if (tp->ecn_flags & TCP_ECN_SEEN) in tcp_data_ecn_check()
[all …]
H A Dtcp_recovery.c7 const struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_reo_wnd() local
9 if (!tp->reord_seen) { in tcp_rack_reo_wnd()
16 if (tp->sacked_out >= tp->reordering && in tcp_rack_reo_wnd()
28 return min((tcp_min_rtt(tp) >> 2) * tp->rack.reo_wnd_steps, in tcp_rack_reo_wnd()
29 tp->srtt_us >> 3); in tcp_rack_reo_wnd()
32 s32 tcp_rack_skb_timeout(struct tcp_sock *tp, struct sk_buff *skb, u32 reo_wnd) in tcp_rack_skb_timeout() argument
34 return tp->rack.rtt_us + reo_wnd - in tcp_rack_skb_timeout()
35 tcp_stamp_us_delta(tp in tcp_rack_skb_timeout()
60 struct tcp_sock *tp = tcp_sk(sk); tcp_rack_detect_loss() local
97 struct tcp_sock *tp = tcp_sk(sk); tcp_rack_mark_lost() local
118 tcp_rack_advance(struct tcp_sock * tp,u8 sacked,u32 end_seq,u64 xmit_time) tcp_rack_advance() argument
151 struct tcp_sock *tp = tcp_sk(sk); tcp_rack_reo_timeout() local
189 struct tcp_sock *tp = tcp_sk(sk); tcp_rack_update_reo_wnd() local
220 struct tcp_sock *tp = tcp_sk(sk); tcp_newreno_mark_lost() local
[all...]
H A Dtcp_rate.c
H A Dtcp_output.c58 void tcp_mstamp_refresh(struct tcp_sock *tp) in tcp_mstamp_refresh() argument
62 tp->tcp_clock_cache = val; in tcp_mstamp_refresh()
63 tp->tcp_mstamp = div_u64(val, NSEC_PER_USEC); in tcp_mstamp_refresh()
92 struct tcp_sock *tp = tcp_sk(sk);
93 unsigned int prior_packets = tp->packets_out;
95 WRITE_ONCE(tp->snd_nxt, TCP_SKB_CB(skb)->end_seq);
100 if (tp->highest_sack == NULL) in tcp_acceptable_seq()
101 tp->highest_sack = skb; in tcp_acceptable_seq()
103 tp->packets_out += tcp_skb_pcount(skb); in tcp_acceptable_seq()
121 const struct tcp_sock *tp
73 struct tcp_sock *tp = tcp_sk(sk); tcp_event_new_data_sent() local
102 const struct tcp_sock *tp = tcp_sk(sk); tcp_acceptable_seq() local
128 struct tcp_sock *tp = tcp_sk(sk); tcp_advertise_mss() local
149 struct tcp_sock *tp = tcp_sk(sk); tcp_cwnd_restart() local
166 tcp_event_data_sent(struct tcp_sock * tp,struct sock * sk) tcp_event_data_sent() argument
187 struct tcp_sock *tp = tcp_sk(sk); tcp_event_ack_sent() local
265 struct tcp_sock *tp = tcp_sk(sk); tcp_select_window() local
331 struct tcp_sock *tp = tcp_sk(sk); tcp_ecn_send() local
379 tcp_urg_mode(const struct tcp_sock * tp) tcp_urg_mode() argument
425 mptcp_options_write(struct tcphdr * th,__be32 * ptr,struct tcp_sock * tp,struct tcp_out_options * opts) mptcp_options_write() argument
575 process_tcp_ao_options(struct tcp_sock * tp,const struct tcp_request_sock * tcprsk,struct tcp_out_options * opts,struct tcp_key * key,__be32 * ptr) process_tcp_ao_options() argument
631 tcp_options_write(struct tcphdr * th,struct tcp_sock * tp,const struct tcp_request_sock * tcprsk,struct tcp_out_options * opts,struct tcp_key * key) tcp_options_write() argument
806 smc_set_option(struct tcp_sock * tp,struct tcp_out_options * opts,unsigned int * remaining) smc_set_option() argument
823 smc_set_option_cond(const struct tcp_sock * tp,struct inet_request_sock * ireq,struct tcp_out_options * opts,unsigned int * remaining) smc_set_option_cond() argument
938 struct tcp_sock *tp = tcp_sk(sk); tcp_syn_options() local
1127 struct tcp_sock *tp = tcp_sk(sk); tcp_established_options() local
1236 struct tcp_sock *tp = tcp_sk(sk); tcp_tsq_write() local
1270 struct tcp_sock *tp; tcp_tsq_workfn() local
1356 struct tcp_sock *tp = tcp_sk(sk); tcp_wfree() local
1402 struct tcp_sock *tp = container_of(timer, struct tcp_sock, pacing_timer); tcp_pace_kick() local
1414 struct tcp_sock *tp = tcp_sk(sk); tcp_update_skb_after_send() local
1455 struct tcp_sock *tp; __tcp_transmit_skb() local
1660 struct tcp_sock *tp = tcp_sk(sk); tcp_queue_skb() local
1695 struct tcp_sock *tp = tcp_sk(sk); tcp_adjust_pcount() local
1763 struct tcp_sock *tp = tcp_sk(sk); tcp_fragment() local
1913 const struct tcp_sock *tp = tcp_sk(sk); __tcp_mtu_to_mss() local
1947 const struct tcp_sock *tp = tcp_sk(sk); tcp_mss_to_mtu() local
1960 struct tcp_sock *tp = tcp_sk(sk); tcp_mtup_init() local
1997 struct tcp_sock *tp = tcp_sk(sk); tcp_sync_mss() local
2022 const struct tcp_sock *tp = tcp_sk(sk); tcp_current_mss() local
2057 struct tcp_sock *tp = tcp_sk(sk); tcp_cwnd_application_limited() local
2076 struct tcp_sock *tp = tcp_sk(sk); tcp_cwnd_validate() local
2123 tcp_minshall_check(const struct tcp_sock * tp) tcp_minshall_check() argument
2137 tcp_minshall_update(struct tcp_sock * tp,unsigned int mss_now,const struct sk_buff * skb) tcp_minshall_update() argument
2151 tcp_nagle_check(bool partial,const struct tcp_sock * tp,int nonagle) tcp_nagle_check() argument
2213 const struct tcp_sock *tp = tcp_sk(sk); tcp_mss_split_point() local
2241 tcp_cwnd_test(const struct tcp_sock * tp) tcp_cwnd_test() argument
2275 tcp_nagle_test(const struct tcp_sock * tp,const struct sk_buff * skb,unsigned int cur_mss,int nonagle) tcp_nagle_test() argument
2298 tcp_snd_wnd_test(const struct tcp_sock * tp,const struct sk_buff * skb,unsigned int cur_mss) tcp_snd_wnd_test() argument
2377 struct tcp_sock *tp = tcp_sk(sk); tcp_tso_should_defer() local
2485 struct tcp_sock *tp = tcp_sk(sk); tcp_mtu_check_reprobe() local
2603 struct tcp_sock *tp = tcp_sk(sk); tcp_mtu_probe() local
2733 struct tcp_sock *tp = tcp_sk(sk); tcp_pacing_check() local
2819 tcp_chrono_set(struct tcp_sock * tp,const enum tcp_chrono new) tcp_chrono_set() argument
2832 struct tcp_sock *tp = tcp_sk(sk); tcp_chrono_start() local
2845 struct tcp_sock *tp = tcp_sk(sk); tcp_chrono_stop() local
2907 struct tcp_sock *tp = tcp_sk(sk); tcp_write_xmit() local
3042 struct tcp_sock *tp = tcp_sk(sk); tcp_schedule_loss_probe() local
3112 struct tcp_sock *tp = tcp_sk(sk); tcp_send_loss_probe() local
3257 struct tcp_sock *tp = tcp_sk(sk); __tcp_select_window() local
3393 struct tcp_sock *tp = tcp_sk(sk); tcp_collapse_retrans() local
3452 struct tcp_sock *tp = tcp_sk(sk); tcp_retrans_try_collapse() local
3493 struct tcp_sock *tp = tcp_sk(sk); __tcp_retransmit_skb() local
3634 struct tcp_sock *tp = tcp_sk(sk); tcp_retransmit_skb() local
3666 struct tcp_sock *tp = tcp_sk(sk); tcp_xmit_retransmit_queue() local
3768 struct tcp_sock *tp = tcp_sk(sk); tcp_send_fin() local
3902 const struct tcp_sock *tp = tcp_sk(sk); tcp_make_synack() local
4068 struct tcp_sock *tp = tcp_sk(sk); tcp_connect_init() local
4142 struct tcp_sock *tp = tcp_sk(sk); tcp_connect_queue_skb() local
4163 struct tcp_sock *tp = tcp_sk(sk); tcp_send_syn_data() local
4259 struct tcp_sock *tp = tcp_sk(sk); tcp_connect() local
4379 const struct tcp_sock *tp = tcp_sk(sk); tcp_send_delayed_ack() local
4486 struct tcp_sock *tp = tcp_sk(sk); tcp_xmit_probe_skb() local
4519 struct tcp_sock *tp = tcp_sk(sk); tcp_write_wakeup() local
4566 struct tcp_sock *tp = tcp_sk(sk); tcp_send_probe0() local
[all...]
H A Dtcp_vegas.c73 const struct tcp_sock *tp = tcp_sk(sk); in vegas_enable() local
80 vegas->beg_snd_nxt = tp->snd_nxt; in vegas_enable()
160 static inline u32 tcp_vegas_ssthresh(struct tcp_sock *tp) in tcp_vegas_ssthresh() argument
162 return min(tp->snd_ssthresh, tcp_snd_cwnd(tp)); in tcp_vegas_ssthresh()
167 struct tcp_sock *tp = tcp_sk(sk); in tcp_vegas_cong_avoid() local
181 vegas->beg_snd_nxt = tp->snd_nxt; in tcp_vegas_cong_avoid()
220 target_cwnd = (u64)tcp_snd_cwnd(tp) * vegas->baseRTT; in tcp_vegas_cong_avoid()
227 diff = tcp_snd_cwnd(tp) * (rtt-vegas->baseRTT) / vegas->baseRTT; in tcp_vegas_cong_avoid()
229 if (diff > gamma && tcp_in_slow_start(tp)) { in tcp_vegas_cong_avoid()
241 tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp), in tcp_vegas_cong_avoid()
[all …]
/linux/drivers/misc/mei/
H A Dvsc-tp.c104 struct vsc_tp *tp = data; in vsc_tp_isr() local
106 atomic_inc(&tp->assert_cnt); in vsc_tp_isr()
108 wake_up(&tp->xfer_wait); in vsc_tp_isr()
110 schedule_work(&tp->event_work); in vsc_tp_isr()
117 struct vsc_tp *tp = container_of(work, struct vsc_tp, event_work); in vsc_tp_event_work() local
119 guard(mutex)(&tp->event_notify_mutex); in vsc_tp_event_work()
121 if (tp->event_notify) in vsc_tp_event_work()
122 tp->event_notify(tp->event_notify_context); in vsc_tp_event_work()
126 static int vsc_tp_wakeup_request(struct vsc_tp *tp) in vsc_tp_wakeup_request() argument
130 gpiod_set_value_cansleep(tp->wakeupfw, 0); in vsc_tp_wakeup_request()
[all …]
/linux/drivers/net/ethernet/sis/
H A Dsis190.c400 struct sis190_private *tp = netdev_priv(dev); in __mdio_write() local
402 mdio_write(tp->mmio_addr, phy_id, reg, val); in __mdio_write()
407 struct sis190_private *tp = netdev_priv(dev); in __mdio_read() local
409 return mdio_read(tp->mmio_addr, phy_id, reg); in __mdio_read()
487 static struct sk_buff *sis190_alloc_rx_skb(struct sis190_private *tp, in sis190_alloc_rx_skb() argument
490 u32 rx_buf_sz = tp->rx_buf_sz; in sis190_alloc_rx_skb()
494 skb = netdev_alloc_skb(tp->dev, rx_buf_sz); in sis190_alloc_rx_skb()
497 mapping = dma_map_single(&tp->pci_dev->dev, skb->data, tp->rx_buf_sz, in sis190_alloc_rx_skb()
499 if (dma_mapping_error(&tp->pci_dev->dev, mapping)) in sis190_alloc_rx_skb()
512 static u32 sis190_rx_fill(struct sis190_private *tp, struct net_device *dev, in sis190_rx_fill() argument
[all …]
/linux/fs/xfs/libxfs/
H A Dxfs_defer.c189 struct xfs_trans *tp, in xfs_defer_barrier_create_intent() argument
206 struct xfs_trans *tp, in xfs_defer_barrier_create_done() argument
215 struct xfs_trans *tp, in xfs_defer_barrier_finish_item() argument
243 struct xfs_trans *tp, in xfs_defer_create_done() argument
259 tp->t_flags |= XFS_TRANS_DIRTY; in xfs_defer_create_done()
260 lip = dfp->dfp_ops->create_done(tp, dfp->dfp_intent, dfp->dfp_count); in xfs_defer_create_done()
264 tp->t_flags |= XFS_TRANS_HAS_INTENT_DONE; in xfs_defer_create_done()
265 xfs_trans_add_item(tp, lip); in xfs_defer_create_done()
277 struct xfs_trans *tp, in xfs_defer_create_intent() argument
286 lip = dfp->dfp_ops->create_intent(tp, &dfp->dfp_work, dfp->dfp_count, in xfs_defer_create_intent()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb/
H A Dtp.c54 void t1_tp_destroy(struct petp *tp) in t1_tp_destroy() argument
56 kfree(tp); in t1_tp_destroy()
61 struct petp *tp = kzalloc_obj(*tp); in t1_tp_create() local
63 if (!tp) in t1_tp_create()
66 tp->adapter = adapter; in t1_tp_create()
68 return tp; in t1_tp_create()
71 void t1_tp_intr_enable(struct petp *tp) in t1_tp_intr_enable() argument
73 u32 tp_intr = readl(tp->adapter->regs + A_PL_ENABLE); in t1_tp_intr_enable()
76 if (!t1_is_asic(tp->adapter)) { in t1_tp_intr_enable()
79 tp->adapter->regs + FPGA_TP_ADDR_INTERRUPT_ENABLE); in t1_tp_intr_enable()
[all …]
/linux/drivers/net/ethernet/3com/
H A Dtyphoon.c454 typhoon_hello(struct typhoon *tp) in typhoon_hello() argument
456 struct basic_ring *ring = &tp->cmdRing; in typhoon_hello()
463 if (spin_trylock(&tp->command_lock)) { in typhoon_hello()
469 iowrite32(ring->lastWrite, tp->ioaddr + TYPHOON_REG_CMD_READY); in typhoon_hello()
470 spin_unlock(&tp->command_lock); in typhoon_hello()
475 typhoon_process_response(struct typhoon *tp, int resp_size, in typhoon_process_response() argument
478 struct typhoon_indexes *indexes = tp->indexes; in typhoon_process_response()
480 u8 *base = tp->respRing.ringBase; in typhoon_process_response()
511 typhoon_media_status(tp->dev, resp); in typhoon_process_response()
513 typhoon_hello(tp); in typhoon_process_response()
[all …]
/linux/tools/perf/util/
H A Dcputopo.c35 static int build_cpu_topology(struct cpu_topology *tp, int cpu) in build_cpu_topology() argument
64 for (i = 0; i < tp->package_cpus_lists; i++) { in build_cpu_topology()
65 if (!strcmp(buf, tp->package_cpus_list[i])) in build_cpu_topology()
68 if (i == tp->package_cpus_lists) { in build_cpu_topology()
69 tp->package_cpus_list[i] = buf; in build_cpu_topology()
70 tp->package_cpus_lists++; in build_cpu_topology()
77 if (!tp->die_cpus_list) in build_cpu_topology()
95 for (i = 0; i < tp->die_cpus_lists; i++) { in build_cpu_topology()
96 if (!strcmp(buf, tp->die_cpus_list[i])) in build_cpu_topology()
99 if (i == tp->die_cpus_lists) { in build_cpu_topology()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_cc_cubic.c40 const struct tcp_sock *tp = tcp_sk(sk); in before()
44 rate = (__u64)tp->mss_cache * ((USEC_PER_SEC / 100) << 3); in div64_u64()
50 * [1] : Normal Slow Start condition is (tp->snd_cwnd < tp->snd_ssthresh) in tcp_update_pacing_rate()
51 * If snd_cwnd >= (tp->snd_ssthresh / 2), we are approaching in tcp_update_pacing_rate()
54 if (tp->snd_cwnd < tp->snd_ssthresh / 2) in tcp_update_pacing_rate()
59 rate *= max(tp->snd_cwnd, tp->packets_out); in tcp_update_pacing_rate()
61 if (tp in tcp_update_pacing_rate()
49 const struct tcp_sock *tp = tcp_sk(sk); tcp_update_pacing_rate() local
79 struct tcp_sock *tp = tcp_sk(sk); tcp_cwnd_reduction() local
129 struct tcp_sock *tp = tcp_sk(sk); BPF_PROG() local
[all...]

12345678910>>...20