Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 3172) sorted by relevance

12345678910>>...127

/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c288 * @min_volt: Actual min voltage at the local port
289 * @req_min_volt: Requested min voltage to the port partner
290 * @max_volt: Actual max voltage at the local port
291 * @req_max_volt: Requested max voltage to the port partner
292 * @max_curr: Actual max current at the local port
293 * @req_max_curr: Requested max current of the port partner
294 * @req_out_volt: Requested output voltage to the port partner
295 * @req_op_curr: Requested operating current to the port partner
330 * @req_op_curr_ma: Requested operating current to the port partner acting as source
331 * @req_out_volt_mv: Requested output voltage to the port partne
697 struct tcpm_port *port; global() member
704 struct tcpm_port *port; global() member
722 tcpm_port_is_sink(port) global() argument
729 tcpm_port_is_source(port) global() argument
735 tcpm_port_is_debug_source(port) global() argument
738 tcpm_port_is_debug_sink(port) global() argument
741 tcpm_port_is_debug(port) global() argument
744 tcpm_port_is_audio(port) global() argument
747 tcpm_port_is_audio_detached(port) global() argument
751 tcpm_try_snk(port) global() argument
755 tcpm_try_src(port) global() argument
759 tcpm_data_role_for_source(port) global() argument
763 tcpm_data_role_for_sink(port) global() argument
767 tcpm_sink_tx_ok(port) global() argument
771 tcpm_wait_for_discharge(port) global() argument
774 tcpm_default_state(struct tcpm_port * port) tcpm_default_state() argument
788 tcpm_port_is_disconnected(struct tcpm_port * port) tcpm_port_is_disconnected() argument
804 tcpm_log_full(struct tcpm_port * port) tcpm_log_full() argument
811 _tcpm_log(struct tcpm_port * port,const char * fmt,va_list args) _tcpm_log() argument
859 tcpm_log(struct tcpm_port * port,const char * fmt,...) tcpm_log() argument
875 tcpm_log_force(struct tcpm_port * port,const char * fmt,...) tcpm_log_force() argument
884 tcpm_log_source_caps(struct tcpm_port * port) tcpm_log_source_caps() argument
960 struct tcpm_port *port = s->private; tcpm_debug_show() local
977 tcpm_debugfs_init(struct tcpm_port * port) tcpm_debugfs_init() argument
988 tcpm_debugfs_exit(struct tcpm_port * port) tcpm_debugfs_exit() argument
1005 tcpm_log(const struct tcpm_port * port,const char * fmt,...) tcpm_log() argument
1007 tcpm_log_force(struct tcpm_port * port,const char * fmt,...) tcpm_log_force() argument
1008 tcpm_log_source_caps(struct tcpm_port * port) tcpm_log_source_caps() argument
1009 tcpm_debugfs_init(const struct tcpm_port * port) tcpm_debugfs_init() argument
1010 tcpm_debugfs_exit(const struct tcpm_port * port) tcpm_debugfs_exit() argument
1014 tcpm_set_cc(struct tcpm_port * port,enum typec_cc_status cc) tcpm_set_cc() argument
1021 tcpm_enable_auto_vbus_discharge(struct tcpm_port * port,bool enable) tcpm_enable_auto_vbus_discharge() argument
1036 tcpm_apply_rc(struct tcpm_port * port) tcpm_apply_rc() argument
1054 tcpm_rp_cc(struct tcpm_port * port) tcpm_rp_cc() argument
1085 tcpm_ams_finish(struct tcpm_port * port) tcpm_ams_finish() argument
1102 tcpm_pd_transmit(struct tcpm_port * port,enum tcpm_transmit_type tx_sop_type,const struct pd_message * msg) tcpm_pd_transmit() argument
1176 tcpm_pd_transmit_complete(struct tcpm_port * port,enum tcpm_transmit_status status) tcpm_pd_transmit_complete() argument
1185 tcpm_mux_set(struct tcpm_port * port,int state,enum usb_role usb_role,enum typec_orientation orientation) tcpm_mux_set() argument
1207 tcpm_set_polarity(struct tcpm_port * port,enum typec_cc_polarity polarity) tcpm_set_polarity() argument
1223 tcpm_set_vconn(struct tcpm_port * port,bool enable) tcpm_set_vconn() argument
1238 tcpm_get_current_limit(struct tcpm_port * port) tcpm_get_current_limit() argument
1263 tcpm_set_current_limit(struct tcpm_port * port,u32 max_ma,u32 mv) tcpm_set_current_limit() argument
1279 tcpm_set_attached_state(struct tcpm_port * port,bool attached) tcpm_set_attached_state() argument
1285 tcpm_set_roles(struct tcpm_port * port,bool attached,int state,enum typec_role role,enum typec_data_role data) tcpm_set_roles() argument
1344 tcpm_set_pwr_role(struct tcpm_port * port,enum typec_role role) tcpm_set_pwr_role() argument
1364 tcpm_forge_legacy_pdo(struct tcpm_port * port,u32 pdo,enum typec_role role) tcpm_forge_legacy_pdo() argument
1381 tcpm_pd_send_revision(struct tcpm_port * port) tcpm_pd_send_revision() argument
1399 tcpm_pd_send_source_caps(struct tcpm_port * port) tcpm_pd_send_source_caps() argument
1436 tcpm_pd_send_sink_caps(struct tcpm_port * port) tcpm_pd_send_sink_caps() argument
1473 tcpm_pd_send_sink_cap_ext(struct tcpm_port * port) tcpm_pd_send_sink_cap_ext() argument
1531 mod_tcpm_delayed_work(struct tcpm_port * port,unsigned int delay_ms) mod_tcpm_delayed_work() argument
1541 mod_vdm_delayed_work(struct tcpm_port * port,unsigned int delay_ms) mod_vdm_delayed_work() argument
1552 mod_enable_frs_delayed_work(struct tcpm_port * port,unsigned int delay_ms) mod_enable_frs_delayed_work() argument
1562 mod_send_discover_delayed_work(struct tcpm_port * port,unsigned int delay_ms) mod_send_discover_delayed_work() argument
1572 tcpm_set_state(struct tcpm_port * port,enum tcpm_state state,unsigned int delay_ms) tcpm_set_state() argument
1601 tcpm_set_state_cond(struct tcpm_port * port,enum tcpm_state state,unsigned int delay_ms) tcpm_set_state_cond() argument
1615 tcpm_queue_message(struct tcpm_port * port,enum pd_msg_request message) tcpm_queue_message() argument
1622 tcpm_vdm_ams(struct tcpm_port * port) tcpm_vdm_ams() argument
1644 tcpm_ams_interruptible(struct tcpm_port * port) tcpm_ams_interruptible() argument
1674 tcpm_ams_start(struct tcpm_port * port,enum tcpm_ams ams) tcpm_ams_start() argument
1768 tcpm_queue_vdm(struct tcpm_port * port,const u32 header,const u32 * data,int cnt,enum tcpm_transmit_type tx_sop_type) tcpm_queue_vdm() argument
1805 struct tcpm_port *port = event->port; tcpm_queue_vdm_work() local
1821 tcpm_queue_vdm_unlocked(struct tcpm_port * port,const u32 header,const u32 * data,int cnt,enum tcpm_transmit_type tx_sop_type) tcpm_queue_vdm_unlocked() argument
1853 svdm_consume_identity(struct tcpm_port * port,const u32 * p,int cnt) svdm_consume_identity() argument
1872 svdm_consume_identity_sop_prime(struct tcpm_port * port,const u32 * p,int cnt) svdm_consume_identity_sop_prime() argument
1929 svdm_consume_svids(struct tcpm_port * port,const u32 * p,int cnt,enum tcpm_transmit_type rx_sop_type) svdm_consume_svids() argument
1979 svdm_consume_modes(struct tcpm_port * port,const u32 * p,int cnt,enum tcpm_transmit_type rx_sop_type) svdm_consume_modes() argument
2021 tcpm_register_partner_altmodes(struct tcpm_port * port) tcpm_register_partner_altmodes() argument
2042 tcpm_register_plug_altmodes(struct tcpm_port * port) tcpm_register_plug_altmodes() argument
2062 supports_modal(port) global() argument
2063 supports_modal_cable(port) global() argument
2064 supports_host(port) global() argument
2070 tcpm_can_communicate_sop_prime(struct tcpm_port * port) tcpm_can_communicate_sop_prime() argument
2117 tcpm_attempt_vconn_swap_discovery(struct tcpm_port * port) tcpm_attempt_vconn_swap_discovery() argument
2142 tcpm_cable_vdm_supported(struct tcpm_port * port) tcpm_cable_vdm_supported() argument
2150 tcpm_pd_svdm(struct tcpm_port * port,struct typec_altmode * adev,const u32 * p,int cnt,u32 * response,enum adev_actions * adev_action,enum tcpm_transmit_type rx_sop_type,enum tcpm_transmit_type * response_tx_sop_type) tcpm_pd_svdm() argument
2517 tcpm_handle_vdm_request(struct tcpm_port * port,const __le32 * payload,int cnt,enum tcpm_transmit_type rx_sop_type) tcpm_handle_vdm_request() argument
2657 tcpm_send_vdm(struct tcpm_port * port,u32 vid,int cmd,const u32 * data,int count,enum tcpm_transmit_type tx_sop_type) tcpm_send_vdm() argument
2721 vdm_run_state_machine(struct tcpm_port * port) vdm_run_state_machine() argument
2912 struct tcpm_port *port = container_of(work, struct tcpm_port, vdm_state_machine); vdm_state_machine_work() local
2965 tcpm_caps_err(struct tcpm_port * port,const u32 * pdo,unsigned int nr_pdo) tcpm_caps_err() argument
3041 tcpm_validate_caps(struct tcpm_port * port,const u32 * pdo,unsigned int nr_pdo) tcpm_validate_caps() argument
3056 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_altmode_enter() local
3072 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_altmode_exit() local
3089 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_altmode_vdm() local
3104 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_cable_altmode_enter() local
3120 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_cable_altmode_exit() local
3137 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_cable_altmode_vdm() local
3151 ready_state(struct tcpm_port * port) ready_state() argument
3163 tcpm_handle_alert(struct tcpm_port * port,const __le32 * payload,int cnt) tcpm_handle_alert() argument
3193 tcpm_set_auto_vbus_discharge_threshold(struct tcpm_port * port,enum typec_pwr_opmode mode,bool pps_active,u32 requested_vbus_voltage) tcpm_set_auto_vbus_discharge_threshold() argument
3213 tcpm_pd_handle_state(struct tcpm_port * port,enum tcpm_state state,enum tcpm_ams ams,unsigned int delay_ms) tcpm_pd_handle_state() argument
3246 tcpm_pd_handle_msg(struct tcpm_port * port,enum pd_msg_request message,enum tcpm_ams ams) tcpm_pd_handle_msg() argument
3278 tcpm_register_source_caps(struct tcpm_port * port) tcpm_register_source_caps() argument
3306 tcpm_register_sink_caps(struct tcpm_port * port) tcpm_register_sink_caps() argument
3329 tcpm_pd_data_request(struct tcpm_port * port,const struct pd_message * msg,enum tcpm_transmit_type rx_sop_type) tcpm_pd_data_request() argument
3521 tcpm_aug_supply_req_complete(struct tcpm_port * port,int result) tcpm_aug_supply_req_complete() argument
3530 tcpm_pd_ctrl_request(struct tcpm_port * port,const struct pd_message * msg,enum tcpm_transmit_type rx_sop_type) tcpm_pd_ctrl_request() argument
3857 tcpm_pd_ext_msg_request(struct tcpm_port * port,const struct pd_message * msg) tcpm_pd_ext_msg_request() argument
3922 struct tcpm_port *port = event->port; tcpm_pd_rx_handler() local
3989 tcpm_pd_receive(struct tcpm_port * port,const struct pd_message * msg,enum tcpm_transmit_type rx_sop_type) tcpm_pd_receive() argument
4006 tcpm_pd_send_control(struct tcpm_port * port,enum pd_ctrl_msg_type type,enum tcpm_transmit_type tx_sop_type) tcpm_pd_send_control() argument
4048 tcpm_send_queued_message(struct tcpm_port * port) tcpm_send_queued_message() argument
4124 tcpm_pd_check_request(struct tcpm_port * port) tcpm_pd_check_request() argument
4184 tcpm_pd_select_pdo(struct tcpm_port * port,int * sink_pdo,int * src_pdo) tcpm_pd_select_pdo() argument
4302 tcpm_pd_select_pps_apdo(struct tcpm_port * port) tcpm_pd_select_pps_apdo() argument
4349 tcpm_pd_select_spr_avs_apdo(struct tcpm_port * port) tcpm_pd_select_spr_avs_apdo() argument
4431 tcpm_pd_build_request(struct tcpm_port * port,u32 * rdo) tcpm_pd_build_request() argument
4511 tcpm_pd_send_request(struct tcpm_port * port) tcpm_pd_send_request() argument
4538 tcpm_pd_build_pps_request(struct tcpm_port * port,u32 * rdo) tcpm_pd_build_pps_request() argument
4598 tcpm_pd_build_spr_avs_request(struct tcpm_port * port,u32 * rdo) tcpm_pd_build_spr_avs_request() argument
4651 tcpm_pd_send_aug_supply_request(struct tcpm_port * port,enum aug_req_type type) tcpm_pd_send_aug_supply_request() argument
4683 tcpm_set_vbus(struct tcpm_port * port,bool enable) tcpm_set_vbus() argument
4700 tcpm_set_charge(struct tcpm_port * port,bool charge) tcpm_set_charge() argument
4719 tcpm_start_toggling(struct tcpm_port * port,enum typec_cc_status cc) tcpm_start_toggling() argument
4731 tcpm_init_vbus(struct tcpm_port * port) tcpm_init_vbus() argument
4741 tcpm_init_vconn(struct tcpm_port * port) tcpm_init_vconn() argument
4750 tcpm_typec_connect(struct tcpm_port * port) tcpm_typec_connect() argument
4776 tcpm_src_attach(struct tcpm_port * port) tcpm_src_attach() argument
4840 tcpm_typec_disconnect(struct tcpm_port * port) tcpm_typec_disconnect() argument
4861 tcpm_unregister_altmodes(struct tcpm_port * port) tcpm_unregister_altmodes() argument
4880 tcpm_set_partner_usb_comm_capable(struct tcpm_port * port,bool capable) tcpm_set_partner_usb_comm_capable() argument
4888 tcpm_partner_source_caps_reset(struct tcpm_port * port) tcpm_partner_source_caps_reset() argument
4896 tcpm_reset_port(struct tcpm_port * port) tcpm_reset_port() argument
4940 tcpm_detach(struct tcpm_port * port) tcpm_detach() argument
4956 tcpm_src_detach(struct tcpm_port * port) tcpm_src_detach() argument
4961 tcpm_snk_attach(struct tcpm_port * port) tcpm_snk_attach() argument
4991 tcpm_snk_detach(struct tcpm_port * port) tcpm_snk_detach() argument
4996 tcpm_acc_attach(struct tcpm_port * port) tcpm_acc_attach() argument
5029 tcpm_acc_detach(struct tcpm_port * port) tcpm_acc_detach() argument
5034 hard_reset_state(struct tcpm_port * port) hard_reset_state() argument
5048 unattached_state(struct tcpm_port * port) unattached_state() argument
5062 tcpm_swap_complete(struct tcpm_port * port,int result) tcpm_swap_complete() argument
5099 tcpm_set_initial_svdm_version(struct tcpm_port * port) tcpm_set_initial_svdm_version() argument
5125 tcpm_set_initial_negotiated_rev(struct tcpm_port * port) tcpm_set_initial_negotiated_rev() argument
5144 run_state_machine(struct tcpm_port * port) run_state_machine() argument
6315 struct tcpm_port *port = container_of(work, struct tcpm_port, state_machine); tcpm_state_machine_work() local
6350 _tcpm_cc_change(struct tcpm_port * port,enum typec_cc_status cc1,enum typec_cc_status cc2) _tcpm_cc_change() argument
6567 _tcpm_pd_vbus_on(struct tcpm_port * port) _tcpm_pd_vbus_on() argument
6657 _tcpm_pd_vbus_off(struct tcpm_port * port) _tcpm_pd_vbus_off() argument
6761 _tcpm_pd_vbus_vsafe0v(struct tcpm_port * port) _tcpm_pd_vbus_vsafe0v() argument
6810 _tcpm_pd_hard_reset(struct tcpm_port * port) _tcpm_pd_hard_reset() argument
6842 struct tcpm_port *port = container_of(work, struct tcpm_port, tcpm_pd_event_handler() local
6923 tcpm_cc_change(struct tcpm_port * port) tcpm_cc_change() argument
6932 tcpm_vbus_change(struct tcpm_port * port) tcpm_vbus_change() argument
6941 tcpm_pd_hard_reset(struct tcpm_port * port) tcpm_pd_hard_reset() argument
6950 tcpm_sink_frs(struct tcpm_port * port) tcpm_sink_frs() argument
6959 tcpm_sourcing_vbus(struct tcpm_port * port) tcpm_sourcing_vbus() argument
6968 tcpm_port_clean(struct tcpm_port * port) tcpm_port_clean() argument
6977 tcpm_port_is_toggling(struct tcpm_port * port) tcpm_port_is_toggling() argument
6983 tcpm_port_error_recovery(struct tcpm_port * port) tcpm_port_error_recovery() argument
6994 struct tcpm_port *port = container_of(work, struct tcpm_port, enable_frs); tcpm_enable_frs_work() local
7027 struct tcpm_port *port = container_of(work, struct tcpm_port, send_discover_work); tcpm_send_discover_work() local
7055 struct tcpm_port *port = typec_get_drvdata(p); tcpm_dr_set() local
7127 struct tcpm_port *port = typec_get_drvdata(p); tcpm_pr_set() local
7176 struct tcpm_port *port = typec_get_drvdata(p); tcpm_vconn_set() local
7221 struct tcpm_port *port = typec_get_drvdata(p); tcpm_try_role() local
7237 tcpm_aug_set_op_curr(struct tcpm_port * port,u16 req_op_curr_ma) tcpm_aug_set_op_curr() argument
7303 tcpm_aug_set_out_volt(struct tcpm_port * port,u16 req_out_volt_mv) tcpm_aug_set_out_volt() argument
7366 tcpm_pps_activate(struct tcpm_port * port,bool activate) tcpm_pps_activate() argument
7424 tcpm_spr_avs_activate(struct tcpm_port * port,bool activate) tcpm_spr_avs_activate() argument
7488 tcpm_init(struct tcpm_port * port) tcpm_init() argument
7537 struct tcpm_port *port = typec_get_drvdata(p); tcpm_port_type_set() local
7562 tcpm_find_pd_data(struct tcpm_port * port,struct usb_power_delivery * pd) tcpm_find_pd_data() argument
7576 struct tcpm_port *port = typec_get_drvdata(p); tcpm_pd_get() local
7583 struct tcpm_port *port = typec_get_drvdata(p); tcpm_pd_set() local
7684 tcpm_tcpc_reset(struct tcpm_port * port) tcpm_tcpc_reset() argument
7693 tcpm_port_unregister_pd(struct tcpm_port * port) tcpm_port_unregister_pd() argument
7709 tcpm_port_register_pd(struct tcpm_port * port) tcpm_port_register_pd() argument
7760 tcpm_fw_get_timings(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_timings() argument
7788 tcpm_fw_get_pd_ident(struct tcpm_port * port) tcpm_fw_get_pd_ident() argument
7808 tcpm_parse_snk_pdos(struct tcpm_port * port) tcpm_parse_snk_pdos() argument
7864 tcpm_fw_get_sink_caps_ext(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_sink_caps_ext() argument
7911 tcpm_fw_get_caps(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_caps() argument
8095 tcpm_fw_get_snk_vdos(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_snk_vdos() argument
8134 tcpm_fw_get_pd_revision(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_pd_revision() argument
8175 tcpm_psy_get_online(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_online() argument
8192 tcpm_psy_get_voltage_min(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_voltage_min() argument
8205 tcpm_psy_get_voltage_max(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_voltage_max() argument
8218 tcpm_psy_get_voltage_now(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_voltage_now() argument
8226 tcpm_psy_get_current_max(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_current_max() argument
8239 tcpm_psy_get_current_now(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_current_now() argument
8247 tcpm_psy_get_input_power_limit(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_input_power_limit() argument
8272 struct tcpm_port *port = power_supply_get_drvdata(psy); tcpm_psy_get_prop() local
8308 tcpm_disable_pps_avs(struct tcpm_port * port) tcpm_disable_pps_avs() argument
8320 tcpm_psy_set_online(struct tcpm_port * port,const union power_supply_propval * val) tcpm_psy_set_online() argument
8356 struct tcpm_port *port = power_supply_get_drvdata(psy); tcpm_psy_set_prop() local
8399 devm_tcpm_psy_register(struct tcpm_port * port) devm_tcpm_psy_register() argument
8438 struct tcpm_port *port = container_of(timer, struct tcpm_port, state_machine_timer); state_machine_timer_handler() local
8447 struct tcpm_port *port = container_of(timer, struct tcpm_port, vdm_state_machine_timer); vdm_state_machine_timer_handler() local
8456 struct tcpm_port *port = container_of(timer, struct tcpm_port, enable_frs_timer); enable_frs_timer_handler() local
8465 struct tcpm_port *port = container_of(timer, struct tcpm_port, send_discover_timer); send_discover_timer_handler() local
8474 struct tcpm_port *port; tcpm_register_port() local
8597 tcpm_unregister_port(struct tcpm_port * port) tcpm_unregister_port() argument
[all...]
/linux/drivers/mmc/core/
H A Dsdio_uart.c65 struct tty_port port; member
87 static int sdio_uart_add_port(struct sdio_uart_port *port) in sdio_uart_add_port() argument
91 mutex_init(&port->func_lock); in sdio_uart_add_port()
92 spin_lock_init(&port->write_lock); in sdio_uart_add_port()
93 if (kfifo_alloc(&port->xmit_fifo, FIFO_SIZE, GFP_KERNEL)) in sdio_uart_add_port()
99 port->index = index; in sdio_uart_add_port()
100 sdio_uart_table[index] = port; in sdio_uart_add_port()
112 struct sdio_uart_port *port; in sdio_uart_port_get() local
118 port = sdio_uart_table[index]; in sdio_uart_port_get()
119 if (port) in sdio_uart_port_get()
[all …]
/linux/drivers/net/bonding/
H A Dbond_3ad.c95 static int ad_lacpdu_send(struct port *port);
96 static int ad_marker_send(struct port *port, struct bond_marker *marker);
97 static void ad_mux_machine(struct port *port, bool *update_slave_arr);
98 static void ad_rx_machine(struct lacpdu *lacpdu, struct port *port);
99 static void ad_tx_machine(struct port *port);
129 __get_bond_by_port(struct port * port) __get_bond_by_port() argument
145 __get_first_agg(struct port * port) __get_first_agg() argument
182 __disable_distributing_port(struct port * port) __disable_distributing_port() argument
194 __enable_collecting_port(struct port * port) __enable_collecting_port() argument
208 __disable_port(struct port * port) __disable_port() argument
219 __enable_port(struct port * port) __enable_port() argument
232 __port_move_to_attached_state(struct port * port) __port_move_to_attached_state() argument
248 __port_is_collecting_distributing(struct port * port) __port_is_collecting_distributing() argument
259 __get_agg_selection_mode(struct port * port) __get_agg_selection_mode() argument
273 __check_agg_selection_timer(struct port * port) __check_agg_selection_timer() argument
308 __get_link_speed(struct port * port) __get_link_speed() argument
419 __get_duplex(struct port * port) __get_duplex() argument
445 __ad_actor_update_port(struct port * port) __ad_actor_update_port() argument
519 __choose_matched(struct lacpdu * lacpdu,struct port * port) __choose_matched() argument
548 __record_pdu(struct lacpdu * lacpdu,struct port * port) __record_pdu() argument
591 __record_default(struct port * port) __record_default() argument
616 __update_selected(struct lacpdu * lacpdu,struct port * port) __update_selected() argument
647 __update_default_selected(struct port * port) __update_default_selected() argument
680 __update_ntt(struct lacpdu * lacpdu,struct port * port) __update_ntt() argument
709 struct port *port; __agg_ports_are_ready() local
737 struct port *port; __set_agg_ports_ready() local
750 struct port *port; __agg_active_ports() local
764 struct port *port = agg->lag_ports; __agg_ports_priority() local
873 __update_lacpdu_from_port(struct port * port) __update_lacpdu_from_port() argument
927 ad_lacpdu_send(struct port * port) ad_lacpdu_send() argument
971 ad_marker_send(struct port * port,struct bond_marker * marker) ad_marker_send() argument
1016 ad_cond_set_peer_notif(struct port * port) ad_cond_set_peer_notif() argument
1029 ad_mux_machine(struct port * port,bool * update_slave_arr) ad_mux_machine() argument
1241 ad_rx_machine(struct lacpdu * lacpdu,struct port * port) ad_rx_machine() argument
1385 ad_churn_machine(struct port * port) ad_churn_machine() argument
1423 ad_tx_machine(struct port * port) ad_tx_machine() argument
1459 ad_periodic_machine(struct port * port) ad_periodic_machine() argument
1550 ad_port_selection_logic(struct port * port,bool * update_slave_arr) ad_port_selection_logic() argument
1800 struct port *port = agg->lag_ports; agg_device_up() local
1852 struct port *port; ad_agg_selection_logic() local
2009 ad_initialize_port(struct port * port,const struct bond_params * bond_params) ad_initialize_port() argument
2078 ad_enable_collecting(struct port * port) ad_enable_collecting() argument
2098 ad_disable_distributing(struct port * port,bool * update_slave_arr) ad_disable_distributing() argument
2120 ad_enable_collecting_distributing(struct port * port,bool * update_slave_arr) ad_enable_collecting_distributing() argument
2143 ad_disable_collecting_distributing(struct port * port,bool * update_slave_arr) ad_disable_collecting_distributing() argument
2165 ad_marker_info_received(struct bond_marker * marker_info,struct port * port) ad_marker_info_received() argument
2194 ad_marker_response_received(struct bond_marker * marker,struct port * port) ad_marker_response_received() argument
2254 struct port *port; bond_3ad_bind_slave() local
2307 struct port *port, *prev_port, *temp_port; bond_3ad_unbind_slave() local
2485 struct port *port = &(SLAVE_AD_INFO(slave))->port; bond_3ad_update_ad_actor_settings() local
2535 struct port *port; bond_3ad_state_machine_handler() local
2623 struct port *port; bond_3ad_rx_indication() local
2689 ad_update_actor_keys(struct port * port,bool reset) ad_update_actor_keys() argument
2735 struct port *port; bond_3ad_adapter_speed_duplex_changed() local
2763 struct port *port; bond_3ad_handle_link_change() local
2864 struct port *port; __bond_3ad_get_active_agg_info() local
2932 struct port *port = NULL; bond_3ad_update_lacp_rate() local
2957 struct port *port = NULL; bond_3ad_update_lacp_active() local
[all...]
/linux/drivers/parport/
H A Dieee1284_ops.c35 size_t parport_ieee1284_write_compat (struct parport *port, in parport_ieee1284_write_compat() argument
43 struct pardevice *dev = port->physport->cad; in parport_ieee1284_write_compat()
47 if (port->irq != PARPORT_IRQ_NONE) { in parport_ieee1284_write_compat()
48 parport_enable_irq (port); in parport_ieee1284_write_compat()
52 port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA; in parport_ieee1284_write_compat()
53 parport_write_control (port, ctl); in parport_ieee1284_write_compat()
54 parport_data_forward (port); in parport_ieee1284_write_compat()
66 if (!parport_wait_peripheral (port, mask, val)) in parport_ieee1284_write_compat()
71 if ((parport_read_status (port) & in parport_ieee1284_write_compat()
99 parport_wait_event (port, wait); in parport_ieee1284_write_compat()
[all …]
H A Dieee1284.c36 static void parport_ieee1284_wakeup (struct parport *port) in parport_ieee1284_wakeup() argument
38 up (&port->physport->ieee1284.irq); in parport_ieee1284_wakeup()
43 struct parport *port = timer_container_of(port, t, timer); in timeout_waiting_on_port() local
45 parport_ieee1284_wakeup (port); in timeout_waiting_on_port()
64 int parport_wait_event (struct parport *port, signed long timeout) in parport_wait_event() argument
68 if (!port->physport->cad->timeout) in parport_wait_event()
73 timer_setup(&port->timer, timeout_waiting_on_port, 0); in parport_wait_event()
74 mod_timer(&port->timer, jiffies + timeout); in parport_wait_event()
75 ret = down_interruptible (&port->physport->ieee1284.irq); in parport_wait_event()
76 if (!timer_delete_sync(&port->timer) && !ret) in parport_wait_event()
[all …]
/linux/drivers/usb/host/
H A Dxhci-dbgtty.c28 dbc_kfifo_to_req(struct dbc_port *port, char *packet) in dbc_kfifo_to_req() argument
32 len = kfifo_len(&port->port.xmit_fifo); in dbc_kfifo_to_req()
39 if (port->tx_boundary) in dbc_kfifo_to_req()
40 len = min(port->tx_boundary, len); in dbc_kfifo_to_req()
42 len = kfifo_out(&port->port.xmit_fifo, packet, len); in dbc_kfifo_to_req()
44 if (port->tx_boundary) in dbc_kfifo_to_req()
45 port->tx_boundary -= len; in dbc_kfifo_to_req()
50 static int dbc_do_start_tx(struct dbc_port *port) in dbc_do_start_tx() argument
51 __releases(&port->port_lock) in dbc_do_start_tx()
52 __acquires(&port->port_lock) in dbc_do_start_tx()
[all …]
/linux/drivers/scsi/libsas/
H A Dsas_port.c15 static bool phy_is_wideport_member(struct asd_sas_port *port, struct asd_sas_phy *phy) in phy_is_wideport_member() argument
19 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr, in phy_is_wideport_member()
21 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0)) in phy_is_wideport_member()
29 struct asd_sas_port *port = phy->port; in sas_resume_port() local
36 if (port->suspended) in sas_resume_port()
37 port->suspended = 0; in sas_resume_port()
47 list_for_each_entry_safe(dev, n, &port->dev_list, dev_list_node) { in sas_resume_port()
52 sas_unregister_dev(port, dev); in sas_resume_port()
53 sas_destruct_devices(port); in sas_resume_port()
67 sas_discover_event(port, DISCE_RESUME); in sas_resume_port()
[all …]
/linux/drivers/tty/serial/
H A Dbcm63xx_uart.c73 static inline unsigned int bcm_uart_readl(struct uart_port *port, in bcm_uart_readl() argument
76 return __raw_readl(port->membase + offset); in bcm_uart_readl()
79 static inline void bcm_uart_writel(struct uart_port *port, in bcm_uart_writel() argument
82 __raw_writel(value, port->membase + offset); in bcm_uart_writel()
88 static unsigned int bcm_uart_tx_empty(struct uart_port *port) in bcm_uart_tx_empty() argument
92 val = bcm_uart_readl(port, UART_IR_REG); in bcm_uart_tx_empty()
99 static void bcm_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in bcm_uart_set_mctrl() argument
103 val = bcm_uart_readl(port, UART_MCTL_REG); in bcm_uart_set_mctrl()
110 bcm_uart_writel(port, val, UART_MCTL_REG); in bcm_uart_set_mctrl()
112 val = bcm_uart_readl(port, UART_CTL_REG); in bcm_uart_set_mctrl()
[all …]
H A Dtimbuart.c25 struct uart_port port; member
35 static void timbuart_mctrl_check(struct uart_port *port, u32 isr, u32 *ier);
39 static void timbuart_stop_rx(struct uart_port *port) in timbuart_stop_rx() argument
42 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~RXFLAGS; in timbuart_stop_rx()
43 iowrite32(ier, port->membase + TIMBUART_IER); in timbuart_stop_rx()
46 static void timbuart_stop_tx(struct uart_port *port) in timbuart_stop_tx() argument
49 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~TXBAE; in timbuart_stop_tx()
50 iowrite32(ier, port->membase + TIMBUART_IER); in timbuart_stop_tx()
53 static void timbuart_start_tx(struct uart_port *port) in timbuart_start_tx() argument
56 container_of(port, struct timbuart_port, port); in timbuart_start_tx()
[all …]
H A Daltera_uart.c77 struct uart_port port; member
83 static u32 altera_uart_readl(struct uart_port *port, int reg) in altera_uart_readl() argument
85 return readl(port->membase + (reg << port->regshift)); in altera_uart_readl()
88 static void altera_uart_writel(struct uart_port *port, u32 dat, int reg) in altera_uart_writel() argument
90 writel(dat, port->membase + (reg << port->regshift)); in altera_uart_writel()
93 static unsigned int altera_uart_tx_empty(struct uart_port *port) in altera_uart_tx_empty() argument
95 return (altera_uart_readl(port, ALTERA_UART_STATUS_REG) & in altera_uart_tx_empty()
99 static unsigned int altera_uart_get_mctrl(struct uart_port *port) in altera_uart_get_mctrl() argument
101 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_get_mctrl()
104 sigs = (altera_uart_readl(port, ALTERA_UART_STATUS_REG) & in altera_uart_get_mctrl()
[all …]
H A Dmcf.c53 struct uart_port port; member
60 static unsigned int mcf_tx_empty(struct uart_port *port) in mcf_tx_empty() argument
62 return (readb(port->membase + MCFUART_USR) & MCFUART_USR_TXEMPTY) ? in mcf_tx_empty()
68 static unsigned int mcf_get_mctrl(struct uart_port *port) in mcf_get_mctrl() argument
70 struct mcf_uart *pp = container_of(port, struct mcf_uart, port); in mcf_get_mctrl()
73 sigs = (readb(port->membase + MCFUART_UIPR) & MCFUART_UIPR_CTS) ? in mcf_get_mctrl()
76 sigs |= (mcf_getppdcd(port->line) ? TIOCM_CD : 0); in mcf_get_mctrl()
77 sigs |= (mcf_getppdtr(port->line) ? TIOCM_DTR : 0); in mcf_get_mctrl()
84 static void mcf_set_mctrl(struct uart_port *port, unsigned int sigs) in mcf_set_mctrl() argument
86 struct mcf_uart *pp = container_of(port, struct mcf_uart, port); in mcf_set_mctrl()
[all …]
H A Dst-asc.c36 struct uart_port port; member
146 static inline struct asc_port *to_asc_port(struct uart_port *port) in to_asc_port() argument
148 return container_of(port, struct asc_port, port); in to_asc_port()
151 static inline u32 asc_in(struct uart_port *port, u32 offset) in asc_in() argument
154 return readl_relaxed(port->membase + offset); in asc_in()
156 return readl(port->membase + offset); in asc_in()
160 static inline void asc_out(struct uart_port *port, u32 offset, u32 value) in asc_out() argument
163 writel_relaxed(value, port->membase + offset); in asc_out()
165 writel(value, port->membase + offset); in asc_out()
173 static inline void asc_disable_tx_interrupts(struct uart_port *port) in asc_disable_tx_interrupts() argument
[all …]
H A Dmeson_uart.c89 static void meson_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in meson_uart_set_mctrl() argument
93 static unsigned int meson_uart_get_mctrl(struct uart_port *port) in meson_uart_get_mctrl() argument
98 static unsigned int meson_uart_tx_empty(struct uart_port *port) in meson_uart_tx_empty() argument
102 val = readl(port->membase + AML_UART_STATUS); in meson_uart_tx_empty()
107 static void meson_uart_stop_tx(struct uart_port *port) in meson_uart_stop_tx() argument
111 val = readl(port->membase + AML_UART_CONTROL); in meson_uart_stop_tx()
113 writel(val, port->membase + AML_UART_CONTROL); in meson_uart_stop_tx()
116 static void meson_uart_stop_rx(struct uart_port *port) in meson_uart_stop_rx() argument
120 val = readl(port->membase + AML_UART_CONTROL); in meson_uart_stop_rx()
122 writel(val, port->membase + AML_UART_CONTROL); in meson_uart_stop_rx()
[all …]
H A Drda-uart.c117 struct uart_port port; member
121 #define to_rda_uart_port(port) container_of(port, struct rda_uart_port, port) argument
125 static inline void rda_uart_write(struct uart_port *port, u32 val, in rda_uart_write() argument
128 writel(val, port->membase + off); in rda_uart_write()
131 static inline u32 rda_uart_read(struct uart_port *port, unsigned int off) in rda_uart_read() argument
133 return readl(port->membase + off); in rda_uart_read()
136 static unsigned int rda_uart_tx_empty(struct uart_port *port) in rda_uart_tx_empty() argument
142 uart_port_lock_irqsave(port, &flags); in rda_uart_tx_empty()
144 val = rda_uart_read(port, RDA_UART_STATUS); in rda_uart_tx_empty()
147 uart_port_unlock_irqrestore(port, flags); in rda_uart_tx_empty()
[all …]
H A Dmilbeaut_usio.c65 static void mlb_usio_stop_tx(struct uart_port *port) in mlb_usio_stop_tx() argument
67 writew(readw(port->membase + MLB_USIO_REG_FCR) & ~MLB_USIO_FCR_FTIE, in mlb_usio_stop_tx()
68 port->membase + MLB_USIO_REG_FCR); in mlb_usio_stop_tx()
69 writeb(readb(port->membase + MLB_USIO_REG_SCR) & ~MLB_USIO_SCR_TBIE, in mlb_usio_stop_tx()
70 port->membase + MLB_USIO_REG_SCR); in mlb_usio_stop_tx()
73 static void mlb_usio_tx_chars(struct uart_port *port) in mlb_usio_tx_chars() argument
75 struct tty_port *tport = &port->state->port; in mlb_usio_tx_chars()
78 writew(readw(port->membase + MLB_USIO_REG_FCR) & ~MLB_USIO_FCR_FTIE, in mlb_usio_tx_chars()
79 port->membase + MLB_USIO_REG_FCR); in mlb_usio_tx_chars()
80 writeb(readb(port->membase + MLB_USIO_REG_SCR) & in mlb_usio_tx_chars()
[all …]
H A Duartlite.c118 static inline u32 uart_in32(u32 offset, struct uart_port *port) in uart_in32() argument
120 struct uartlite_data *pdata = port->private_data; in uart_in32()
122 return pdata->reg_ops->in(port->membase + offset); in uart_in32()
125 static inline void uart_out32(u32 val, u32 offset, struct uart_port *port) in uart_out32() argument
127 struct uartlite_data *pdata = port->private_data; in uart_out32()
129 pdata->reg_ops->out(val, port->membase + offset); in uart_out32()
140 static int ulite_receive(struct uart_port *port, int stat) in ulite_receive() argument
142 struct tty_port *tport = &port->state->port; in ulite_receive()
152 port->icount.rx++; in ulite_receive()
153 ch = uart_in32(ULITE_RX, port); in ulite_receive()
[all …]
H A Dliteuart.c46 struct uart_port port; member
51 #define to_liteuart_port(port) container_of(port, struct liteuart_port, port) argument
71 static void liteuart_update_irq_reg(struct uart_port *port, bool set, u8 mask) in liteuart_update_irq_reg() argument
73 struct liteuart_port *uart = to_liteuart_port(port); in liteuart_update_irq_reg()
80 if (port->irq) in liteuart_update_irq_reg()
81 litex_write8(port->membase + OFF_EV_ENABLE, uart->irq_reg); in liteuart_update_irq_reg()
84 static void liteuart_stop_tx(struct uart_port *port) in liteuart_stop_tx() argument
86 liteuart_update_irq_reg(port, false, EV_TX); in liteuart_stop_tx()
89 static void liteuart_start_tx(struct uart_port *port) in liteuart_start_tx() argument
91 liteuart_update_irq_reg(port, true, EV_TX); in liteuart_start_tx()
[all …]
/linux/drivers/media/cec/usb/extron-da-hd-4k-plus/
H A Dextron-da-hd-4k-plus.c194 static int extron_send_and_wait_len(struct extron *extron, struct extron_port *port, in extron_send_and_wait_len() argument
210 if (port) { in extron_send_and_wait_len()
211 init_completion(&port->cmd_done); in extron_send_and_wait_len()
212 port->cmd_error = 0; in extron_send_and_wait_len()
213 port->response = response; in extron_send_and_wait_len()
222 !wait_for_completion_timeout(port ? &port->cmd_done : &extron->cmd_done, timeout)) { in extron_send_and_wait_len()
228 if (!err && response && (port ? port->cmd_error : extron->cmd_error)) { in extron_send_and_wait_len()
230 cmd, port ? port->cmd_error : extron->cmd_error, response); in extron_send_and_wait_len()
231 if (port) in extron_send_and_wait_len()
232 port->cmd_error = 0; in extron_send_and_wait_len()
[all …]
/linux/drivers/char/
H A Dvirtio_console.c167 struct port { struct
234 static struct port *find_port_by_vtermno(u32 vtermno) in find_port_by_vtermno() argument
236 struct port *port; in find_port_by_vtermno() local
243 port = container_of(cons, struct port, cons); in find_port_by_vtermno()
247 port = NULL; in find_port_by_vtermno()
250 return port; in find_port_by_vtermno()
253 static struct port *find_port_by_devt_in_portdev(struct ports_device *portdev, in find_port_by_devt_in_portdev()
256 struct port *port; in find_port_by_devt_in_portdev() local
260 list_for_each_entry(port, &portdev->ports, list) { in find_port_by_devt_in_portdev()
261 if (port->cdev->dev == dev) { in find_port_by_devt_in_portdev()
[all …]
/linux/drivers/tty/
H A Dvcc.c114 static int vcc_table_add(struct vcc_port *port) in vcc_table_add() argument
122 vcc_table[i] = port; in vcc_table_add()
160 struct vcc_port *port; in vcc_get() local
166 port = vcc_table[index]; in vcc_get()
167 if (!port) { in vcc_get()
173 if (port->excl_locked) { in vcc_get()
178 port->refcnt++; in vcc_get()
180 return port; in vcc_get()
183 if (port->refcnt) { in vcc_get()
193 port->refcnt++; in vcc_get()
[all …]
/linux/drivers/usb/serial/
H A Dgeneric.c105 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) in usb_serial_generic_open() argument
109 clear_bit(USB_SERIAL_THROTTLED, &port->flags); in usb_serial_generic_open()
111 if (port->bulk_in_size) in usb_serial_generic_open()
112 result = usb_serial_generic_submit_read_urbs(port, GFP_KERNEL); in usb_serial_generic_open()
118 void usb_serial_generic_close(struct usb_serial_port *port) in usb_serial_generic_close() argument
123 if (port->bulk_out_size) { in usb_serial_generic_close()
124 for (i = 0; i < ARRAY_SIZE(port->write_urbs); ++i) in usb_serial_generic_close()
125 usb_kill_urb(port->write_urbs[i]); in usb_serial_generic_close()
127 spin_lock_irqsave(&port->lock, flags); in usb_serial_generic_close()
128 kfifo_reset_out(&port->write_fifo); in usb_serial_generic_close()
[all …]
/linux/drivers/net/wan/
H A Dhd64572.c44 #define get_msci(port) ((port)->chan ? MSCI1_OFFSET : MSCI0_OFFSET) argument
45 #define get_dmac_rx(port) ((port)->chan ? DMAC1RX_OFFSET : DMAC0RX_OFFSET) argument
46 #define get_dmac_tx(port) ((port)->chan ? DMAC1TX_OFFSET : DMAC0TX_OFFSET) argument
62 static inline void enable_intr(port_t *port) in enable_intr() argument
65 sca_outl(sca_inl(IER0, port->card) | in enable_intr()
66 (port->chan ? 0x08002200 : 0x00080022), IER0, port->card); in enable_intr()
69 static inline void disable_intr(port_t *port) in disable_intr() argument
71 sca_outl(sca_inl(IER0, port->card) & in disable_intr()
72 (port->chan ? 0x00FF00FF : 0xFF00FF00), IER0, port->card); in disable_intr()
75 static inline u16 desc_abs_number(port_t *port, u16 desc, int transmit) in desc_abs_number() argument
[all …]
/linux/drivers/gpio/
H A Dgpio-mxc.c125 #define GPIO_DR (port->hwdata->dr_reg)
126 #define GPIO_GDIR (port->hwdata->gdir_reg)
127 #define GPIO_PSR (port->hwdata->psr_reg)
128 #define GPIO_ICR1 (port->hwdata->icr1_reg)
129 #define GPIO_ICR2 (port->hwdata->icr2_reg)
130 #define GPIO_IMR (port->hwdata->imr_reg)
131 #define GPIO_ISR (port->hwdata->isr_reg)
132 #define GPIO_EDGE_SEL (port->hwdata->edge_sel_reg)
134 #define GPIO_INT_LOW_LEV (port->hwdata->low_level)
135 #define GPIO_INT_HIGH_LEV (port->hwdata->high_level)
[all …]
/linux/drivers/pci/controller/
H A Dpci-mvebu.c103 u32 port; member
128 static inline void mvebu_writel(struct mvebu_pcie_port *port, u32 val, u32 reg) in mvebu_writel() argument
130 writel(val, port->base + reg); in mvebu_writel()
133 static inline u32 mvebu_readl(struct mvebu_pcie_port *port, u32 reg) in mvebu_readl() argument
135 return readl(port->base + reg); in mvebu_readl()
138 static inline bool mvebu_has_ioport(struct mvebu_pcie_port *port) in mvebu_has_ioport() argument
140 return port->io_target != -1 && port->io_attr != -1; in mvebu_has_ioport()
143 static bool mvebu_pcie_link_up(struct mvebu_pcie_port *port) in mvebu_pcie_link_up() argument
145 return !(mvebu_readl(port, PCIE_STAT_OFF) & PCIE_STAT_LINK_DOWN); in mvebu_pcie_link_up()
148 static u8 mvebu_pcie_get_local_bus_nr(struct mvebu_pcie_port *port) in mvebu_pcie_get_local_bus_nr() argument
[all …]
/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_main.c61 static void mvpp2_acpi_start(struct mvpp2_port *port);
182 static dma_addr_t mvpp2_txdesc_dma_addr_get(struct mvpp2_port *port, in mvpp2_txdesc_dma_addr_get() argument
185 if (port->priv->hw_version == MVPP21) in mvpp2_txdesc_dma_addr_get()
192 static void mvpp2_txdesc_dma_addr_set(struct mvpp2_port *port, in mvpp2_txdesc_dma_addr_set() argument
201 if (port->priv->hw_version == MVPP21) { in mvpp2_txdesc_dma_addr_set()
213 static size_t mvpp2_txdesc_size_get(struct mvpp2_port *port, in mvpp2_txdesc_size_get() argument
216 if (port->priv->hw_version == MVPP21) in mvpp2_txdesc_size_get()
222 static void mvpp2_txdesc_size_set(struct mvpp2_port *port, in mvpp2_txdesc_size_set() argument
226 if (port->priv->hw_version == MVPP21) in mvpp2_txdesc_size_set()
232 static void mvpp2_txdesc_txq_set(struct mvpp2_port *port, in mvpp2_txdesc_txq_set() argument
[all …]

12345678910>>...127