Home
last modified time | relevance | path

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

12345678910>>...131

/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c309 * @min_volt: Actual min voltage at the local port
310 * @req_min_volt: Requested min voltage to the port partner
311 * @max_volt: Actual max voltage at the local port
312 * @req_max_volt: Requested max voltage to the port partner
313 * @max_curr: Actual max current at the local port
314 * @req_max_curr: Requested max current of the port partner
315 * @req_out_volt: Requested output voltage to the port partner
316 * @req_op_curr: Requested operating current to the port partner
351 * @req_op_curr_ma: Requested operating current to the port partner acting as source
352 * @req_out_volt_mv: Requested output voltage to the port partne
724 struct tcpm_port *port; global() member
731 struct tcpm_port *port; global() member
749 tcpm_port_is_sink(port) global() argument
756 tcpm_port_is_source(port) global() argument
762 tcpm_port_is_debug_source(port) global() argument
765 tcpm_port_is_debug_sink(port) global() argument
768 tcpm_port_is_debug(port) global() argument
771 tcpm_port_is_audio(port) global() argument
774 tcpm_port_is_audio_detached(port) global() argument
778 tcpm_try_snk(port) global() argument
782 tcpm_try_src(port) global() argument
786 tcpm_data_role_for_source(port) global() argument
790 tcpm_data_role_for_sink(port) global() argument
794 tcpm_sink_tx_ok(port) global() argument
798 tcpm_wait_for_discharge(port) global() argument
804 tcpm_default_state(struct tcpm_port * port) tcpm_default_state() argument
818 tcpm_port_is_disconnected(struct tcpm_port * port) tcpm_port_is_disconnected() argument
834 tcpm_log_full(struct tcpm_port * port) tcpm_log_full() argument
841 _tcpm_log(struct tcpm_port * port,const char * fmt,va_list args) _tcpm_log() argument
889 tcpm_log(struct tcpm_port * port,const char * fmt,...) tcpm_log() argument
905 tcpm_log_force(struct tcpm_port * port,const char * fmt,...) tcpm_log_force() argument
914 tcpm_log_source_caps(struct tcpm_port * port) tcpm_log_source_caps() argument
990 struct tcpm_port *port = s->private; tcpm_debug_show() local
1007 tcpm_debugfs_init(struct tcpm_port * port) tcpm_debugfs_init() argument
1018 tcpm_debugfs_exit(struct tcpm_port * port) tcpm_debugfs_exit() argument
1035 tcpm_log(const struct tcpm_port * port,const char * fmt,...) tcpm_log() argument
1037 tcpm_log_force(struct tcpm_port * port,const char * fmt,...) tcpm_log_force() argument
1038 tcpm_log_source_caps(struct tcpm_port * port) tcpm_log_source_caps() argument
1039 tcpm_debugfs_init(const struct tcpm_port * port) tcpm_debugfs_init() argument
1040 tcpm_debugfs_exit(const struct tcpm_port * port) tcpm_debugfs_exit() argument
1044 tcpm_set_cc(struct tcpm_port * port,enum typec_cc_status cc) tcpm_set_cc() argument
1051 tcpm_enable_auto_vbus_discharge(struct tcpm_port * port,bool enable) tcpm_enable_auto_vbus_discharge() argument
1066 tcpm_apply_rc(struct tcpm_port * port) tcpm_apply_rc() argument
1084 tcpm_rp_cc(struct tcpm_port * port) tcpm_rp_cc() argument
1115 tcpm_ams_finish(struct tcpm_port * port) tcpm_ams_finish() argument
1132 tcpm_pd_transmit(struct tcpm_port * port,enum tcpm_transmit_type tx_sop_type,const struct pd_message * msg) tcpm_pd_transmit() argument
1206 tcpm_pd_transmit_complete(struct tcpm_port * port,enum tcpm_transmit_status status) tcpm_pd_transmit_complete() argument
1215 tcpm_mux_set(struct tcpm_port * port,int state,enum usb_role usb_role,enum typec_orientation orientation) tcpm_mux_set() argument
1237 tcpm_set_polarity(struct tcpm_port * port,enum typec_cc_polarity polarity) tcpm_set_polarity() argument
1253 tcpm_set_vconn(struct tcpm_port * port,bool enable) tcpm_set_vconn() argument
1268 tcpm_get_current_limit(struct tcpm_port * port) tcpm_get_current_limit() argument
1293 tcpm_set_current_limit(struct tcpm_port * port,u32 max_ma,u32 mv) tcpm_set_current_limit() argument
1309 tcpm_set_attached_state(struct tcpm_port * port,bool attached) tcpm_set_attached_state() argument
1315 tcpm_set_roles(struct tcpm_port * port,bool attached,int state,enum typec_role role,enum typec_data_role data) tcpm_set_roles() argument
1374 tcpm_set_pwr_role(struct tcpm_port * port,enum typec_role role) tcpm_set_pwr_role() argument
1394 tcpm_forge_legacy_pdo(struct tcpm_port * port,u32 pdo,enum typec_role role) tcpm_forge_legacy_pdo() argument
1411 tcpm_pd_send_revision(struct tcpm_port * port) tcpm_pd_send_revision() argument
1429 tcpm_pd_send_source_caps(struct tcpm_port * port) tcpm_pd_send_source_caps() argument
1466 tcpm_pd_send_sink_caps(struct tcpm_port * port) tcpm_pd_send_sink_caps() argument
1503 tcpm_get_fixed_batt(struct tcpm_port * port) tcpm_get_fixed_batt() argument
1517 tcpm_pd_send_sink_cap_ext(struct tcpm_port * port) tcpm_pd_send_sink_cap_ext() argument
1587 tcpm_pd_send_batt_status(struct tcpm_port * port) tcpm_pd_send_batt_status() argument
1660 tcpm_pd_send_batt_cap(struct tcpm_port * port) tcpm_pd_send_batt_cap() argument
1725 mod_tcpm_delayed_work(struct tcpm_port * port,unsigned int delay_ms) mod_tcpm_delayed_work() argument
1735 mod_vdm_delayed_work(struct tcpm_port * port,unsigned int delay_ms) mod_vdm_delayed_work() argument
1746 mod_enable_frs_delayed_work(struct tcpm_port * port,unsigned int delay_ms) mod_enable_frs_delayed_work() argument
1756 mod_vdm_discovery_cancel_delayed_work(struct tcpm_port * port) mod_vdm_discovery_cancel_delayed_work() argument
1762 mod_vdm_discovery_delayed_work(struct tcpm_port * port,unsigned int delay_ms) mod_vdm_discovery_delayed_work() argument
1772 tcpm_set_state(struct tcpm_port * port,enum tcpm_state state,unsigned int delay_ms) tcpm_set_state() argument
1801 tcpm_set_state_cond(struct tcpm_port * port,enum tcpm_state state,unsigned int delay_ms) tcpm_set_state_cond() argument
1815 tcpm_queue_message(struct tcpm_port * port,enum pd_msg_request message) tcpm_queue_message() argument
1822 tcpm_vdm_ams(struct tcpm_port * port) tcpm_vdm_ams() argument
1844 tcpm_ams_interruptible(struct tcpm_port * port) tcpm_ams_interruptible() argument
1874 tcpm_ams_start(struct tcpm_port * port,enum tcpm_ams ams) tcpm_ams_start() argument
1968 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
2000 struct tcpm_port *port = event->port; tcpm_queue_vdm_work() local
2015 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
2047 svdm_consume_identity(struct tcpm_port * port,const u32 * p,int cnt) svdm_consume_identity() argument
2069 svdm_consume_identity_sop_prime(struct tcpm_port * port,const u32 * p,int cnt) svdm_consume_identity_sop_prime() argument
2129 svdm_consume_svids(struct tcpm_port * port,const u32 * p,int cnt,enum tcpm_transmit_type rx_sop_type) svdm_consume_svids() argument
2179 svdm_consume_modes(struct tcpm_port * port,const u32 * p,int cnt,enum tcpm_transmit_type rx_sop_type) svdm_consume_modes() argument
2222 tcpm_register_partner_altmodes(struct tcpm_port * port) tcpm_register_partner_altmodes() argument
2243 tcpm_register_plug_altmodes(struct tcpm_port * port) tcpm_register_plug_altmodes() argument
2264 supports_modal(port) global() argument
2265 supports_modal_cable(port) global() argument
2266 supports_host(port) global() argument
2272 tcpm_can_communicate_sop_prime(struct tcpm_port * port) tcpm_can_communicate_sop_prime() argument
2319 tcpm_attempt_vconn_swap_discovery(struct tcpm_port * port) tcpm_attempt_vconn_swap_discovery() argument
2344 tcpm_cable_vdm_supported(struct tcpm_port * port) tcpm_cable_vdm_supported() argument
2352 tcpm_update_vdm_discovery_state(struct tcpm_port * port,enum vdm_discovery_states new_state) tcpm_update_vdm_discovery_state() argument
2365 tcpm_handle_discover_mode(struct tcpm_port * port,u32 * response,enum tcpm_transmit_type rx_sop_type,enum tcpm_transmit_type * response_tx_sop_type) tcpm_handle_discover_mode() argument
2419 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
2778 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
2944 vdm_run_state_machine(struct tcpm_port * port) vdm_run_state_machine() argument
3126 struct tcpm_port *port = container_of(work, struct tcpm_port, vdm_state_machine); vdm_state_machine_work() local
3179 tcpm_caps_err(struct tcpm_port * port,const u32 * pdo,unsigned int nr_pdo) tcpm_caps_err() argument
3255 tcpm_validate_caps(struct tcpm_port * port,const u32 * pdo,unsigned int nr_pdo) tcpm_validate_caps() argument
3270 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_altmode_enter() local
3286 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_altmode_exit() local
3303 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_altmode_vdm() local
3318 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_cable_altmode_enter() local
3334 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_cable_altmode_exit() local
3351 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_cable_altmode_vdm() local
3365 ready_state(struct tcpm_port * port) ready_state() argument
3377 tcpm_handle_alert(struct tcpm_port * port,const __le32 * payload,int cnt) tcpm_handle_alert() argument
3407 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
3427 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
3460 tcpm_pd_handle_msg(struct tcpm_port * port,enum pd_msg_request message,enum tcpm_ams ams) tcpm_pd_handle_msg() argument
3492 tcpm_register_source_caps(struct tcpm_port * port) tcpm_register_source_caps() argument
3520 tcpm_register_sink_caps(struct tcpm_port * port) tcpm_register_sink_caps() argument
3543 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
3735 tcpm_aug_supply_req_complete(struct tcpm_port * port,int result) tcpm_aug_supply_req_complete() argument
3744 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
4074 tcpm_pd_ext_msg_request(struct tcpm_port * port,const struct pd_message * msg) tcpm_pd_ext_msg_request() argument
4156 struct tcpm_port *port = event->port; tcpm_pd_rx_handler() local
4223 tcpm_pd_receive(struct tcpm_port * port,const struct pd_message * msg,enum tcpm_transmit_type rx_sop_type) tcpm_pd_receive() argument
4240 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
4282 tcpm_send_queued_message(struct tcpm_port * port) tcpm_send_queued_message() argument
4374 tcpm_pd_check_request(struct tcpm_port * port) tcpm_pd_check_request() argument
4434 tcpm_pd_select_pdo(struct tcpm_port * port,int * sink_pdo,int * src_pdo) tcpm_pd_select_pdo() argument
4552 tcpm_pd_select_pps_apdo(struct tcpm_port * port) tcpm_pd_select_pps_apdo() argument
4599 tcpm_pd_select_spr_avs_apdo(struct tcpm_port * port) tcpm_pd_select_spr_avs_apdo() argument
4681 tcpm_pd_build_request(struct tcpm_port * port,u32 * rdo) tcpm_pd_build_request() argument
4761 tcpm_pd_send_request(struct tcpm_port * port) tcpm_pd_send_request() argument
4788 tcpm_pd_build_pps_request(struct tcpm_port * port,u32 * rdo) tcpm_pd_build_pps_request() argument
4848 tcpm_pd_build_spr_avs_request(struct tcpm_port * port,u32 * rdo) tcpm_pd_build_spr_avs_request() argument
4901 tcpm_pd_send_aug_supply_request(struct tcpm_port * port,enum aug_req_type type) tcpm_pd_send_aug_supply_request() argument
4933 tcpm_set_vbus(struct tcpm_port * port,bool enable) tcpm_set_vbus() argument
4950 tcpm_set_charge(struct tcpm_port * port,bool charge) tcpm_set_charge() argument
4969 tcpm_start_toggling(struct tcpm_port * port,enum typec_cc_status cc) tcpm_start_toggling() argument
4981 tcpm_init_vbus(struct tcpm_port * port) tcpm_init_vbus() argument
4991 tcpm_init_vconn(struct tcpm_port * port) tcpm_init_vconn() argument
5000 tcpm_typec_connect(struct tcpm_port * port) tcpm_typec_connect() argument
5026 tcpm_src_attach(struct tcpm_port * port) tcpm_src_attach() argument
5089 tcpm_typec_disconnect(struct tcpm_port * port) tcpm_typec_disconnect() argument
5110 tcpm_unregister_altmodes(struct tcpm_port * port) tcpm_unregister_altmodes() argument
5129 tcpm_set_partner_usb_comm_capable(struct tcpm_port * port,bool capable) tcpm_set_partner_usb_comm_capable() argument
5137 tcpm_partner_source_caps_reset(struct tcpm_port * port) tcpm_partner_source_caps_reset() argument
5145 tcpm_reset_port(struct tcpm_port * port) tcpm_reset_port() argument
5191 tcpm_detach(struct tcpm_port * port) tcpm_detach() argument
5207 tcpm_src_detach(struct tcpm_port * port) tcpm_src_detach() argument
5212 tcpm_snk_attach(struct tcpm_port * port) tcpm_snk_attach() argument
5241 tcpm_snk_detach(struct tcpm_port * port) tcpm_snk_detach() argument
5246 tcpm_acc_attach(struct tcpm_port * port) tcpm_acc_attach() argument
5279 tcpm_acc_detach(struct tcpm_port * port) tcpm_acc_detach() argument
5284 hard_reset_state(struct tcpm_port * port) hard_reset_state() argument
5298 unattached_state(struct tcpm_port * port) unattached_state() argument
5312 tcpm_swap_complete(struct tcpm_port * port,int result) tcpm_swap_complete() argument
5349 tcpm_set_initial_svdm_version(struct tcpm_port * port) tcpm_set_initial_svdm_version() argument
5375 tcpm_set_initial_negotiated_rev(struct tcpm_port * port) tcpm_set_initial_negotiated_rev() argument
5394 run_state_machine(struct tcpm_port * port) run_state_machine() argument
6545 struct tcpm_port *port = container_of(work, struct tcpm_port, state_machine); tcpm_state_machine_work() local
6580 _tcpm_cc_change(struct tcpm_port * port,enum typec_cc_status cc1,enum typec_cc_status cc2) _tcpm_cc_change() argument
6797 _tcpm_pd_vbus_on(struct tcpm_port * port) _tcpm_pd_vbus_on() argument
6887 _tcpm_pd_vbus_off(struct tcpm_port * port) _tcpm_pd_vbus_off() argument
6991 _tcpm_pd_vbus_vsafe0v(struct tcpm_port * port) _tcpm_pd_vbus_vsafe0v() argument
7040 _tcpm_pd_hard_reset(struct tcpm_port * port) _tcpm_pd_hard_reset() argument
7072 struct tcpm_port *port = container_of(work, struct tcpm_port, tcpm_pd_event_handler() local
7169 tcpm_cc_change(struct tcpm_port * port) tcpm_cc_change() argument
7178 tcpm_vbus_change(struct tcpm_port * port) tcpm_vbus_change() argument
7187 tcpm_pd_hard_reset(struct tcpm_port * port) tcpm_pd_hard_reset() argument
7196 tcpm_sink_frs(struct tcpm_port * port) tcpm_sink_frs() argument
7205 tcpm_sourcing_vbus(struct tcpm_port * port) tcpm_sourcing_vbus() argument
7214 tcpm_port_clean(struct tcpm_port * port) tcpm_port_clean() argument
7223 tcpm_port_is_toggling(struct tcpm_port * port) tcpm_port_is_toggling() argument
7229 tcpm_port_error_recovery(struct tcpm_port * port) tcpm_port_error_recovery() argument
7240 struct tcpm_port *port = container_of(work, struct tcpm_port, enable_frs); tcpm_enable_frs_work() local
7273 struct tcpm_port *port = container_of(work, struct tcpm_port, vdm_discovery_work); tcpm_vdm_discovery_work() local
7432 struct tcpm_port *port = typec_get_drvdata(p); tcpm_dr_set() local
7504 struct tcpm_port *port = typec_get_drvdata(p); tcpm_pr_set() local
7553 struct tcpm_port *port = typec_get_drvdata(p); tcpm_vconn_set() local
7598 struct tcpm_port *port = typec_get_drvdata(p); tcpm_try_role() local
7614 tcpm_aug_set_op_curr(struct tcpm_port * port,u16 req_op_curr_ma) tcpm_aug_set_op_curr() argument
7680 tcpm_aug_set_out_volt(struct tcpm_port * port,u16 req_out_volt_mv) tcpm_aug_set_out_volt() argument
7743 tcpm_pps_activate(struct tcpm_port * port,bool activate) tcpm_pps_activate() argument
7801 tcpm_spr_avs_activate(struct tcpm_port * port,bool activate) tcpm_spr_avs_activate() argument
7865 tcpm_init(struct tcpm_port * port) tcpm_init() argument
7914 struct tcpm_port *port = typec_get_drvdata(p); tcpm_port_type_set() local
7939 tcpm_find_pd_data(struct tcpm_port * port,struct usb_power_delivery * pd) tcpm_find_pd_data() argument
7953 struct tcpm_port *port = typec_get_drvdata(p); tcpm_pd_get() local
7960 struct tcpm_port *port = typec_get_drvdata(p); tcpm_pd_set() local
8061 tcpm_tcpc_reset(struct tcpm_port * port) tcpm_tcpc_reset() argument
8070 tcpm_port_unregister_pd(struct tcpm_port * port) tcpm_port_unregister_pd() argument
8086 tcpm_port_register_pd(struct tcpm_port * port) tcpm_port_register_pd() argument
8137 tcpm_fw_get_timings(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_timings() argument
8165 tcpm_fw_get_pd_ident(struct tcpm_port * port) tcpm_fw_get_pd_ident() argument
8185 tcpm_parse_snk_pdos(struct tcpm_port * port) tcpm_parse_snk_pdos() argument
8241 tcpm_fw_get_sink_caps_ext(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_sink_caps_ext() argument
8288 tcpm_fw_get_caps(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_caps() argument
8472 tcpm_fw_get_snk_vdos(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_snk_vdos() argument
8511 tcpm_fw_get_pd_revision(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_pd_revision() argument
8552 tcpm_psy_get_online(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_online() argument
8569 tcpm_psy_get_voltage_min(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_voltage_min() argument
8582 tcpm_psy_get_voltage_max(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_voltage_max() argument
8595 tcpm_psy_get_voltage_now(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_voltage_now() argument
8603 tcpm_psy_get_current_max(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_current_max() argument
8616 tcpm_psy_get_current_now(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_current_now() argument
8624 tcpm_psy_get_input_power_limit(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_input_power_limit() argument
8649 struct tcpm_port *port = power_supply_get_drvdata(psy); tcpm_psy_get_prop() local
8685 tcpm_disable_pps_avs(struct tcpm_port * port) tcpm_disable_pps_avs() argument
8697 tcpm_psy_set_online(struct tcpm_port * port,const union power_supply_propval * val) tcpm_psy_set_online() argument
8733 struct tcpm_port *port = power_supply_get_drvdata(psy); tcpm_psy_set_prop() local
8776 devm_tcpm_psy_register(struct tcpm_port * port) devm_tcpm_psy_register() argument
8815 struct tcpm_port *port = container_of(timer, struct tcpm_port, state_machine_timer); state_machine_timer_handler() local
8824 struct tcpm_port *port = container_of(timer, struct tcpm_port, vdm_state_machine_timer); vdm_state_machine_timer_handler() local
8833 struct tcpm_port *port = container_of(timer, struct tcpm_port, enable_frs_timer); enable_frs_timer_handler() local
8842 struct tcpm_port *port = container_of(timer, struct tcpm_port, vdm_discovery_timer); vdm_discovery_timer_handler() local
8851 struct tcpm_port *port; tcpm_register_port() local
8974 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()
108 kfifo_free(&port->xmit_fifo); in sdio_uart_add_port()
115 struct sdio_uart_port *port; in sdio_uart_port_get() local
121 port = sdio_uart_table[index]; 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);
100 static void ad_periodic_machine(struct port *port);
101 static void ad_port_selection_logic(struct port *port, bool *update_slave_arr);
106 static void ad_initialize_port(struct port *port, const struct bond_params *bond_params);
107 static void ad_enable_collecting(struct port *port);
108 static void ad_disable_distributing(struct port *port,
[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/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 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 Daltera_jtaguart.c51 static unsigned int altera_jtaguart_tx_space(struct uart_port *port, u32 *ctlp) in altera_jtaguart_tx_space() argument
53 u32 ctl = readl(port->membase + ALTERA_JTAGUART_CONTROL_REG); in altera_jtaguart_tx_space()
61 static unsigned int altera_jtaguart_tx_empty(struct uart_port *port) in altera_jtaguart_tx_empty() argument
63 return altera_jtaguart_tx_space(port, NULL) ? TIOCSER_TEMT : 0; in altera_jtaguart_tx_empty()
66 static unsigned int altera_jtaguart_get_mctrl(struct uart_port *port) in altera_jtaguart_get_mctrl() argument
71 static void altera_jtaguart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_jtaguart_set_mctrl() argument
75 static void altera_jtaguart_start_tx(struct uart_port *port) in altera_jtaguart_start_tx() argument
77 port->read_status_mask |= ALTERA_JTAGUART_CONTROL_WE_MSK; in altera_jtaguart_start_tx()
78 writel(port->read_status_mask, in altera_jtaguart_start_tx()
79 port->membase + ALTERA_JTAGUART_CONTROL_REG); in altera_jtaguart_start_tx()
[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 …]
H A Dlpc32xx_hs.c88 struct uart_port port; member
97 static void wait_for_xmit_empty(struct uart_port *port) in wait_for_xmit_empty() argument
103 port->membase))) == 0) in wait_for_xmit_empty()
111 static void wait_for_xmit_ready(struct uart_port *port) in wait_for_xmit_ready() argument
117 port->membase))) < 32) in wait_for_xmit_ready()
125 static void lpc32xx_hsuart_console_putchar(struct uart_port *port, unsigned char ch) in lpc32xx_hsuart_console_putchar() argument
127 wait_for_xmit_ready(port); in lpc32xx_hsuart_console_putchar()
128 writel((u32)ch, LPC32XX_HSUART_FIFO(port->membase)); in lpc32xx_hsuart_console_putchar()
140 locked = uart_port_trylock_irqsave(&up->port, &flags); in lpc32xx_hsuart_console_write()
142 uart_port_lock_irqsave(&up->port, &flags); in lpc32xx_hsuart_console_write()
[all …]
/linux/drivers/tty/
H A Dvcc.c46 /* Microseconds that thread will delay waiting for a vcc port ref */
108 * vcc_table_add() - Add VCC port to the VCC table
109 * @port: pointer to the VCC port
111 * Return: index of the port in the VCC table on success,
114 static int vcc_table_add(struct vcc_port *port) in vcc_table_add() argument
122 vcc_table[i] = port; in vcc_table_add()
135 * vcc_table_remove() - Removes a VCC port from the VCC table
151 * vcc_get() - Gets a reference to VCC port
155 * Return: reference to the VCC port, i
160 struct vcc_port *port; vcc_get() local
208 vcc_put(struct vcc_port * port,bool excl) vcc_put() argument
242 struct vcc_port *port; vcc_get_ne() local
254 vcc_kick_rx(struct vcc_port * port) vcc_kick_rx() argument
267 vcc_kick_tx(struct vcc_port * port) vcc_kick_tx() argument
306 vcc_ldc_read(struct vcc_port * port) vcc_ldc_read() argument
359 struct vcc_port *port = timer_container_of(port, t, rx_timer); vcc_rx_timer() local
385 struct vcc_port *port = timer_container_of(port, t, tx_timer); vcc_tx_timer() local
435 struct vcc_port *port; vcc_event() local
481 struct vcc_port *port; domain_show() local
493 vcc_send_ctl(struct vcc_port * port,int ctl) vcc_send_ctl() argument
513 struct vcc_port *port; break_store() local
563 struct vcc_port *port; vcc_probe() local
684 struct vcc_port *port = dev_get_drvdata(&vdev->dev); vcc_remove() local
736 struct vcc_port *port; vcc_open() local
782 vcc_ldc_hup(struct vcc_port * port) vcc_ldc_hup() argument
796 struct vcc_port *port; vcc_hangup() local
819 struct vcc_port *port; vcc_write() local
884 struct vcc_port *port; vcc_write_room() local
902 struct vcc_port *port; vcc_chars_in_buffer() local
920 struct vcc_port *port; vcc_break_ctl() local
985 struct vcc_port *port; vcc_cleanup() local
[all...]
/linux/drivers/char/
H A Dvirtio_console.c173 struct port { struct
240 static struct port *find_port_by_vtermno(u32 vtermno) in find_port_by_vtermno() argument
242 struct port *port; in find_port_by_vtermno() local
249 port = container_of(cons, struct port, cons); in find_port_by_vtermno()
253 port = NULL; in find_port_by_vtermno()
256 return port; in find_port_by_vtermno()
259 static struct port *find_port_by_devt_in_portdev(struct ports_device *portdev, in find_port_by_devt_in_portdev()
262 struct port *port; in find_port_by_devt_in_portdev() local
266 list_for_each_entry(port, &portdev->ports, list) { in find_port_by_devt_in_portdev()
267 if (port->cdev->dev == dev) { in find_port_by_devt_in_portdev()
[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 …]
H A Dixp4xx_hss.c258 struct port { struct
325 #define rx_desc_phys(port, n) ((port)->desc_tab_phys + \ argument
327 #define rx_desc_ptr(port, n) (&(port)->desc_tab[n]) argument
329 #define tx_desc_phys(port, n) ((port)->desc_tab_phys + \ argument
331 #define tx_desc_ptr(port, n) (&(port)->desc_tab[(n) + RX_DESCS]) argument
345 static inline struct port *dev_to_port(struct net_device *dev) in dev_to_port()
364 static void hss_npe_send(struct port *port, struct msg *msg, const char *what) in hss_npe_send() argument
368 if (npe_send_message(port->npe, msg, what)) { in hss_npe_send()
370 port->id, val[0], val[1], npe_name(port->npe)); in hss_npe_send()
375 static void hss_config_set_lut(struct port *port) in hss_config_set_lut() argument
[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 …]
/linux/drivers/media/pci/saa7164/
H A Dsaa7164-encoder.c39 static void saa7164_encoder_configure(struct saa7164_port *port) in saa7164_encoder_configure() argument
41 struct saa7164_dev *dev = port->dev; in saa7164_encoder_configure()
44 port->encoder_params.width = port->width; in saa7164_encoder_configure()
45 port->encoder_params.height = port->height; in saa7164_encoder_configure()
46 port->encoder_params.is_50hz = in saa7164_encoder_configure()
47 (port->encodernorm.id & V4L2_STD_625_50) != 0; in saa7164_encoder_configure()
50 saa7164_api_initialize_dif(port); in saa7164_encoder_configure()
53 saa7164_api_configure_dif(port, port->encodernorm.id); in saa7164_encoder_configure()
56 saa7164_api_set_audio_std(port); in saa7164_encoder_configure()
59 static int saa7164_encoder_buffers_dealloc(struct saa7164_port *port) in saa7164_encoder_buffers_dealloc() argument
[all …]
H A Dsaa7164-vbi.c13 static void saa7164_vbi_configure(struct saa7164_port *port) in saa7164_vbi_configure() argument
15 struct saa7164_dev *dev = port->dev; in saa7164_vbi_configure()
18 port->vbi_params.width = port->enc_port->width; in saa7164_vbi_configure()
19 port->vbi_params.height = port->enc_port->height; in saa7164_vbi_configure()
20 port->vbi_params.is_50hz = in saa7164_vbi_configure()
21 (port->enc_port->encodernorm.id & V4L2_STD_625_50) != 0; in saa7164_vbi_configure()
24 saa7164_api_initialize_dif(port); in saa7164_vbi_configure()
28 static int saa7164_vbi_buffers_dealloc(struct saa7164_port *port) in saa7164_vbi_buffers_dealloc() argument
31 struct saa7164_dev *dev = port->dev; in saa7164_vbi_buffers_dealloc()
36 mutex_lock(&port->dmaqueue_lock); in saa7164_vbi_buffers_dealloc()
[all …]

12345678910>>...131