Lines Matching defs:adapter
156 static int send_crq_init_complete(struct ibmvnic_adapter *adapter) in send_crq_init_complete()
167 static int send_version_xchg(struct ibmvnic_adapter *adapter) in send_version_xchg()
179 static void ibmvnic_clean_queue_affinity(struct ibmvnic_adapter *adapter, in ibmvnic_clean_queue_affinity()
193 static void ibmvnic_clean_affinity(struct ibmvnic_adapter *adapter) in ibmvnic_clean_affinity()
251 static void ibmvnic_set_affinity(struct ibmvnic_adapter *adapter) in ibmvnic_set_affinity()
319 struct ibmvnic_adapter *adapter; in ibmvnic_cpu_online() local
328 struct ibmvnic_adapter *adapter; in ibmvnic_cpu_dead() local
337 struct ibmvnic_adapter *adapter; in ibmvnic_cpu_down_prep() local
346 static int ibmvnic_cpu_notif_add(struct ibmvnic_adapter *adapter) in ibmvnic_cpu_notif_add()
361 static void ibmvnic_cpu_notif_remove(struct ibmvnic_adapter *adapter) in ibmvnic_cpu_notif_remove()
391 static int ibmvnic_wait_for_completion(struct ibmvnic_adapter *adapter, in ibmvnic_wait_for_completion()
451 static int alloc_long_term_buff(struct ibmvnic_adapter *adapter, in alloc_long_term_buff()
520 static void free_long_term_buff(struct ibmvnic_adapter *adapter, in free_long_term_buff()
553 static void free_ltb_set(struct ibmvnic_adapter *adapter, in free_ltb_set()
583 static int alloc_ltb_set(struct ibmvnic_adapter *adapter, in alloc_ltb_set()
747 static void deactivate_rx_pools(struct ibmvnic_adapter *adapter) in deactivate_rx_pools()
755 static void replenish_rx_pool(struct ibmvnic_adapter *adapter, in replenish_rx_pool()
888 static void replenish_pools(struct ibmvnic_adapter *adapter) in replenish_pools()
901 static void release_stats_buffers(struct ibmvnic_adapter *adapter) in release_stats_buffers()
909 static int init_stats_buffers(struct ibmvnic_adapter *adapter) in init_stats_buffers()
928 static void release_stats_token(struct ibmvnic_adapter *adapter) in release_stats_token()
941 static int init_stats_token(struct ibmvnic_adapter *adapter) in init_stats_token()
967 static void release_rx_pools(struct ibmvnic_adapter *adapter) in release_rx_pools()
1017 static bool reuse_rx_pools(struct ibmvnic_adapter *adapter) in reuse_rx_pools()
1056 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in init_rx_pools() local
1169 static void release_vpd_data(struct ibmvnic_adapter *adapter) in release_vpd_data()
1180 static void release_one_tx_pool(struct ibmvnic_adapter *adapter, in release_one_tx_pool()
1194 static void release_tx_pools(struct ibmvnic_adapter *adapter) in release_tx_pools()
1260 static bool reuse_tx_pools(struct ibmvnic_adapter *adapter) in reuse_tx_pools()
1297 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in init_tx_pools() local
1419 static void ibmvnic_napi_enable(struct ibmvnic_adapter *adapter) in ibmvnic_napi_enable()
1432 static void ibmvnic_napi_disable(struct ibmvnic_adapter *adapter) in ibmvnic_napi_disable()
1447 static int init_napi(struct ibmvnic_adapter *adapter) in init_napi()
1466 static void release_napi(struct ibmvnic_adapter *adapter) in release_napi()
1512 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_login() local
1649 static void release_login_buffer(struct ibmvnic_adapter *adapter) in release_login_buffer()
1660 static void release_login_rsp_buffer(struct ibmvnic_adapter *adapter) in release_login_rsp_buffer()
1671 static void release_resources(struct ibmvnic_adapter *adapter) in release_resources()
1680 static int set_link_state(struct ibmvnic_adapter *adapter, u8 link_state) in set_link_state()
1727 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in set_real_num_queues() local
1746 static int ibmvnic_get_vpd(struct ibmvnic_adapter *adapter) in ibmvnic_get_vpd()
1830 static int init_resources(struct ibmvnic_adapter *adapter) in init_resources()
1866 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in __ibmvnic_open() local
1928 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_open() local
1987 static void clean_rx_pools(struct ibmvnic_adapter *adapter) in clean_rx_pools()
2018 static void clean_one_tx_pool(struct ibmvnic_adapter *adapter, in clean_one_tx_pool()
2039 static void clean_tx_pools(struct ibmvnic_adapter *adapter) in clean_tx_pools()
2057 static void ibmvnic_disable_irqs(struct ibmvnic_adapter *adapter) in ibmvnic_disable_irqs()
2086 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_cleanup() local
2108 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in __ibmvnic_close() local
2119 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_close() local
2279 static void ibmvnic_tx_scrq_clean_buffer(struct ibmvnic_adapter *adapter, in ibmvnic_tx_scrq_clean_buffer()
2338 static int send_subcrq_direct(struct ibmvnic_adapter *adapter, in send_subcrq_direct()
2358 static int ibmvnic_tx_scrq_flush(struct ibmvnic_adapter *adapter, in ibmvnic_tx_scrq_flush()
2391 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_xmit() local
2655 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_set_multi() local
2698 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in __ibmvnic_set_mac() local
2739 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_set_mac() local
2782 static inline void reinit_init_done(struct ibmvnic_adapter *adapter) in reinit_init_done()
2792 static int do_reset(struct ibmvnic_adapter *adapter, in do_reset()
3009 static int do_hard_reset(struct ibmvnic_adapter *adapter, in do_hard_reset()
3089 static struct ibmvnic_rwi *get_next_rwi(struct ibmvnic_adapter *adapter) in get_next_rwi()
3122 static int do_passive_init(struct ibmvnic_adapter *adapter) in do_passive_init()
3180 struct ibmvnic_adapter *adapter; in __ibmvnic_reset() local
3366 struct ibmvnic_adapter *adapter; in __ibmvnic_delayed_reset() local
3373 static void flush_reset_queue(struct ibmvnic_adapter *adapter) in flush_reset_queue()
3385 static int ibmvnic_reset(struct ibmvnic_adapter *adapter, in ibmvnic_reset()
3447 struct ibmvnic_adapter *adapter = netdev_priv(dev); in ibmvnic_tx_timeout() local
3464 static void remove_buff_from_pool(struct ibmvnic_adapter *adapter, in remove_buff_from_pool()
3480 struct ibmvnic_adapter *adapter; in ibmvnic_poll() local
3585 static int wait_for_reset(struct ibmvnic_adapter *adapter) in wait_for_reset()
3640 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_change_mtu() local
3681 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_get_link_ksettings() local
3701 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_get_drvinfo() local
3711 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_get_msglevel() local
3718 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_set_msglevel() local
3725 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_get_link() local
3738 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_get_ringparam() local
3755 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_set_ringparam() local
3776 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_get_channels() local
3791 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_set_channels() local
3801 struct ibmvnic_adapter *adapter = netdev_priv(dev); in ibmvnic_get_strings() local
3835 struct ibmvnic_adapter *adapter = netdev_priv(dev); in ibmvnic_get_sset_count() local
3850 struct ibmvnic_adapter *adapter = netdev_priv(dev); in ibmvnic_get_ethtool_stats() local
3911 static int reset_one_sub_crq_queue(struct ibmvnic_adapter *adapter, in reset_one_sub_crq_queue()
3942 static int reset_sub_crq_queues(struct ibmvnic_adapter *adapter) in reset_sub_crq_queues()
3968 static void release_sub_crq_queue(struct ibmvnic_adapter *adapter, in release_sub_crq_queue()
4004 static struct ibmvnic_sub_crq_queue *init_sub_crq_queue(struct ibmvnic_adapter in init_sub_crq_queue()
4084 static void release_sub_crqs(struct ibmvnic_adapter *adapter, bool do_h_free) in release_sub_crqs()
4143 static int disable_scrq_irq(struct ibmvnic_adapter *adapter, in disable_scrq_irq()
4181 static int enable_scrq_irq(struct ibmvnic_adapter *adapter, in enable_scrq_irq()
4205 static int ibmvnic_complete_tx(struct ibmvnic_adapter *adapter, in ibmvnic_complete_tx()
4288 struct ibmvnic_adapter *adapter = scrq->adapter; in ibmvnic_interrupt_tx() local
4299 struct ibmvnic_adapter *adapter = scrq->adapter; in ibmvnic_interrupt_rx() local
4317 static int init_sub_crq_irqs(struct ibmvnic_adapter *adapter) in init_sub_crq_irqs()
4392 static int init_sub_crqs(struct ibmvnic_adapter *adapter) in init_sub_crqs()
4477 static void send_request_cap(struct ibmvnic_adapter *adapter, int retry) in send_request_cap()
4624 static int pending_scrq(struct ibmvnic_adapter *adapter, in pending_scrq()
4640 static union sub_crq *ibmvnic_next_scrq(struct ibmvnic_adapter *adapter, in ibmvnic_next_scrq()
4664 static union ibmvnic_crq *ibmvnic_next_crq(struct ibmvnic_adapter *adapter) in ibmvnic_next_crq()
4699 static int send_subcrq_indirect(struct ibmvnic_adapter *adapter, in send_subcrq_indirect()
4718 static int ibmvnic_send_crq(struct ibmvnic_adapter *adapter, in ibmvnic_send_crq()
4755 static int ibmvnic_send_crq_init(struct ibmvnic_adapter *adapter) in ibmvnic_send_crq_init()
4790 static int vnic_client_data_len(struct ibmvnic_adapter *adapter) in vnic_client_data_len()
4806 static void vnic_add_client_data(struct ibmvnic_adapter *adapter, in vnic_add_client_data()
4833 static int send_login(struct ibmvnic_adapter *adapter) in send_login()
4979 static int send_request_map(struct ibmvnic_adapter *adapter, dma_addr_t addr, in send_request_map()
4993 static int send_request_unmap(struct ibmvnic_adapter *adapter, u8 map_id) in send_request_unmap()
5004 static void send_query_map(struct ibmvnic_adapter *adapter) in send_query_map()
5015 static void send_query_cap(struct ibmvnic_adapter *adapter) in send_query_cap()
5146 static void send_query_ip_offload(struct ibmvnic_adapter *adapter) in send_query_ip_offload()
5174 static void send_control_ip_offload(struct ibmvnic_adapter *adapter) in send_control_ip_offload()
5254 struct ibmvnic_adapter *adapter) in handle_vpd_size_rsp()
5270 struct ibmvnic_adapter *adapter) in handle_vpd_rsp()
5319 static void handle_query_ip_offload_rsp(struct ibmvnic_adapter *adapter) in handle_query_ip_offload_rsp()
5398 struct ibmvnic_adapter *adapter) in handle_error_indication()
5418 struct ibmvnic_adapter *adapter) in handle_change_mac_rsp()
5441 struct ibmvnic_adapter *adapter) in handle_request_cap_rsp()
5518 struct ibmvnic_adapter *adapter) in handle_login_rsp()
5624 struct ibmvnic_adapter *adapter) in handle_request_unmap_rsp()
5635 struct ibmvnic_adapter *adapter) in handle_query_map_rsp()
5653 struct ibmvnic_adapter *adapter) in handle_query_cap_rsp()
5829 static int send_query_phys_parms(struct ibmvnic_adapter *adapter) in send_query_phys_parms()
5859 struct ibmvnic_adapter *adapter) in handle_query_phys_parms_rsp()
5914 struct ibmvnic_adapter *adapter) in ibmvnic_handle_crq()
6117 struct ibmvnic_adapter *adapter = instance; in ibmvnic_interrupt() local
6125 struct ibmvnic_adapter *adapter = from_tasklet(adapter, t, tasklet); in ibmvnic_tasklet() local
6147 static int ibmvnic_reenable_crq_queue(struct ibmvnic_adapter *adapter) in ibmvnic_reenable_crq_queue()
6162 static int ibmvnic_reset_crq(struct ibmvnic_adapter *adapter) in ibmvnic_reset_crq()
6195 static void release_crq_queue(struct ibmvnic_adapter *adapter) in release_crq_queue()
6218 static int init_crq_queue(struct ibmvnic_adapter *adapter) in init_crq_queue()
6296 static int ibmvnic_reset_init(struct ibmvnic_adapter *adapter, bool reset) in ibmvnic_reset_init()
6372 struct ibmvnic_adapter *adapter; in ibmvnic_probe() local
6554 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_remove() local
6602 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in failover_store() local
6643 struct ibmvnic_adapter *adapter; in ibmvnic_get_desired_dma() local
6672 struct ibmvnic_adapter *adapter = netdev_priv(netdev); in ibmvnic_resume() local