| /linux/drivers/usb/typec/tcpm/ |
| H A D | tcpm.c | 288 * @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 599 struct tcpm_port *port; global() member 606 struct tcpm_port *port; global() member 624 tcpm_port_is_sink(port) global() argument 631 tcpm_port_is_source(port) global() argument 637 tcpm_port_is_debug(port) global() argument 641 tcpm_port_is_audio(port) global() argument 644 tcpm_port_is_audio_detached(port) global() argument 648 tcpm_try_snk(port) global() argument 652 tcpm_try_src(port) global() argument 656 tcpm_data_role_for_source(port) global() argument 660 tcpm_data_role_for_sink(port) global() argument 664 tcpm_sink_tx_ok(port) global() argument 668 tcpm_wait_for_discharge(port) global() argument 671 tcpm_default_state(struct tcpm_port * port) tcpm_default_state() argument 685 tcpm_port_is_disconnected(struct tcpm_port * port) tcpm_port_is_disconnected() argument 701 tcpm_log_full(struct tcpm_port * port) tcpm_log_full() argument 708 _tcpm_log(struct tcpm_port * port,const char * fmt,va_list args) _tcpm_log() argument 756 tcpm_log(struct tcpm_port * port,const char * fmt,...) tcpm_log() argument 772 tcpm_log_force(struct tcpm_port * port,const char * fmt,...) tcpm_log_force() argument 781 tcpm_log_source_caps(struct tcpm_port * port) tcpm_log_source_caps() argument 857 struct tcpm_port *port = s->private; tcpm_debug_show() local 874 tcpm_debugfs_init(struct tcpm_port * port) tcpm_debugfs_init() argument 885 tcpm_debugfs_exit(struct tcpm_port * port) tcpm_debugfs_exit() argument 902 tcpm_log(const struct tcpm_port * port,const char * fmt,...) tcpm_log() argument 904 tcpm_log_force(struct tcpm_port * port,const char * fmt,...) tcpm_log_force() argument 905 tcpm_log_source_caps(struct tcpm_port * port) tcpm_log_source_caps() argument 906 tcpm_debugfs_init(const struct tcpm_port * port) tcpm_debugfs_init() argument 907 tcpm_debugfs_exit(const struct tcpm_port * port) tcpm_debugfs_exit() argument 911 tcpm_set_cc(struct tcpm_port * port,enum typec_cc_status cc) tcpm_set_cc() argument 918 tcpm_enable_auto_vbus_discharge(struct tcpm_port * port,bool enable) tcpm_enable_auto_vbus_discharge() argument 933 tcpm_apply_rc(struct tcpm_port * port) tcpm_apply_rc() argument 951 tcpm_rp_cc(struct tcpm_port * port) tcpm_rp_cc() argument 982 tcpm_ams_finish(struct tcpm_port * port) tcpm_ams_finish() argument 999 tcpm_pd_transmit(struct tcpm_port * port,enum tcpm_transmit_type tx_sop_type,const struct pd_message * msg) tcpm_pd_transmit() argument 1073 tcpm_pd_transmit_complete(struct tcpm_port * port,enum tcpm_transmit_status status) tcpm_pd_transmit_complete() argument 1082 tcpm_mux_set(struct tcpm_port * port,int state,enum usb_role usb_role,enum typec_orientation orientation) tcpm_mux_set() argument 1104 tcpm_set_polarity(struct tcpm_port * port,enum typec_cc_polarity polarity) tcpm_set_polarity() argument 1120 tcpm_set_vconn(struct tcpm_port * port,bool enable) tcpm_set_vconn() argument 1135 tcpm_get_current_limit(struct tcpm_port * port) tcpm_get_current_limit() argument 1160 tcpm_set_current_limit(struct tcpm_port * port,u32 max_ma,u32 mv) tcpm_set_current_limit() argument 1176 tcpm_set_attached_state(struct tcpm_port * port,bool attached) tcpm_set_attached_state() argument 1182 tcpm_set_roles(struct tcpm_port * port,bool attached,int state,enum typec_role role,enum typec_data_role data) tcpm_set_roles() argument 1241 tcpm_set_pwr_role(struct tcpm_port * port,enum typec_role role) tcpm_set_pwr_role() argument 1261 tcpm_forge_legacy_pdo(struct tcpm_port * port,u32 pdo,enum typec_role role) tcpm_forge_legacy_pdo() argument 1278 tcpm_pd_send_revision(struct tcpm_port * port) tcpm_pd_send_revision() argument 1296 tcpm_pd_send_source_caps(struct tcpm_port * port) tcpm_pd_send_source_caps() argument 1333 tcpm_pd_send_sink_caps(struct tcpm_port * port) tcpm_pd_send_sink_caps() argument 1370 mod_tcpm_delayed_work(struct tcpm_port * port,unsigned int delay_ms) mod_tcpm_delayed_work() argument 1380 mod_vdm_delayed_work(struct tcpm_port * port,unsigned int delay_ms) mod_vdm_delayed_work() argument 1391 mod_enable_frs_delayed_work(struct tcpm_port * port,unsigned int delay_ms) mod_enable_frs_delayed_work() argument 1401 mod_send_discover_delayed_work(struct tcpm_port * port,unsigned int delay_ms) mod_send_discover_delayed_work() argument 1411 tcpm_set_state(struct tcpm_port * port,enum tcpm_state state,unsigned int delay_ms) tcpm_set_state() argument 1440 tcpm_set_state_cond(struct tcpm_port * port,enum tcpm_state state,unsigned int delay_ms) tcpm_set_state_cond() argument 1454 tcpm_queue_message(struct tcpm_port * port,enum pd_msg_request message) tcpm_queue_message() argument 1461 tcpm_vdm_ams(struct tcpm_port * port) tcpm_vdm_ams() argument 1483 tcpm_ams_interruptible(struct tcpm_port * port) tcpm_ams_interruptible() argument 1513 tcpm_ams_start(struct tcpm_port * port,enum tcpm_ams ams) tcpm_ams_start() argument 1607 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 1644 struct tcpm_port *port = event->port; tcpm_queue_vdm_work() local 1661 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 1701 svdm_consume_identity(struct tcpm_port * port,const u32 * p,int cnt) svdm_consume_identity() argument 1720 svdm_consume_identity_sop_prime(struct tcpm_port * port,const u32 * p,int cnt) svdm_consume_identity_sop_prime() argument 1777 svdm_consume_svids(struct tcpm_port * port,const u32 * p,int cnt,enum tcpm_transmit_type rx_sop_type) svdm_consume_svids() argument 1827 svdm_consume_modes(struct tcpm_port * port,const u32 * p,int cnt,enum tcpm_transmit_type rx_sop_type) svdm_consume_modes() argument 1869 tcpm_register_partner_altmodes(struct tcpm_port * port) tcpm_register_partner_altmodes() argument 1890 tcpm_register_plug_altmodes(struct tcpm_port * port) tcpm_register_plug_altmodes() argument 1910 supports_modal(port) global() argument 1911 supports_modal_cable(port) global() argument 1912 supports_host(port) global() argument 1918 tcpm_can_communicate_sop_prime(struct tcpm_port * port) tcpm_can_communicate_sop_prime() argument 1965 tcpm_attempt_vconn_swap_discovery(struct tcpm_port * port) tcpm_attempt_vconn_swap_discovery() argument 1990 tcpm_cable_vdm_supported(struct tcpm_port * port) tcpm_cable_vdm_supported() argument 1998 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 2365 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 2505 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 2569 vdm_run_state_machine(struct tcpm_port * port) vdm_run_state_machine() argument 2760 struct tcpm_port *port = container_of(work, struct tcpm_port, vdm_state_machine); vdm_state_machine_work() local 2813 tcpm_caps_err(struct tcpm_port * port,const u32 * pdo,unsigned int nr_pdo) tcpm_caps_err() argument 2889 tcpm_validate_caps(struct tcpm_port * port,const u32 * pdo,unsigned int nr_pdo) tcpm_validate_caps() argument 2904 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_altmode_enter() local 2920 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_altmode_exit() local 2937 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_altmode_vdm() local 2952 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_cable_altmode_enter() local 2968 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_cable_altmode_exit() local 2985 struct tcpm_port *port = typec_altmode_get_drvdata(altmode); tcpm_cable_altmode_vdm() local 2999 ready_state(struct tcpm_port * port) ready_state() argument 3011 tcpm_handle_alert(struct tcpm_port * port,const __le32 * payload,int cnt) tcpm_handle_alert() argument 3041 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 3061 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 3094 tcpm_pd_handle_msg(struct tcpm_port * port,enum pd_msg_request message,enum tcpm_ams ams) tcpm_pd_handle_msg() argument 3126 tcpm_register_source_caps(struct tcpm_port * port) tcpm_register_source_caps() argument 3154 tcpm_register_sink_caps(struct tcpm_port * port) tcpm_register_sink_caps() argument 3177 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 3368 tcpm_pps_complete(struct tcpm_port * port,int result) tcpm_pps_complete() argument 3377 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 3669 tcpm_pd_ext_msg_request(struct tcpm_port * port,const struct pd_message * msg) tcpm_pd_ext_msg_request() argument 3734 struct tcpm_port *port = event->port; tcpm_pd_rx_handler() local 3801 tcpm_pd_receive(struct tcpm_port * port,const struct pd_message * msg,enum tcpm_transmit_type rx_sop_type) tcpm_pd_receive() argument 3818 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 3860 tcpm_send_queued_message(struct tcpm_port * port) tcpm_send_queued_message() argument 3926 tcpm_pd_check_request(struct tcpm_port * port) tcpm_pd_check_request() argument 3986 tcpm_pd_select_pdo(struct tcpm_port * port,int * sink_pdo,int * src_pdo) tcpm_pd_select_pdo() argument 4083 tcpm_pd_select_pps_apdo(struct tcpm_port * port) tcpm_pd_select_pps_apdo() argument 4130 tcpm_pd_build_request(struct tcpm_port * port,u32 * rdo) tcpm_pd_build_request() argument 4210 tcpm_pd_send_request(struct tcpm_port * port) tcpm_pd_send_request() argument 4237 tcpm_pd_build_pps_request(struct tcpm_port * port,u32 * rdo) tcpm_pd_build_pps_request() argument 4297 tcpm_pd_send_pps_request(struct tcpm_port * port) tcpm_pd_send_pps_request() argument 4321 tcpm_set_vbus(struct tcpm_port * port,bool enable) tcpm_set_vbus() argument 4338 tcpm_set_charge(struct tcpm_port * port,bool charge) tcpm_set_charge() argument 4357 tcpm_start_toggling(struct tcpm_port * port,enum typec_cc_status cc) tcpm_start_toggling() argument 4369 tcpm_init_vbus(struct tcpm_port * port) tcpm_init_vbus() argument 4379 tcpm_init_vconn(struct tcpm_port * port) tcpm_init_vconn() argument 4388 tcpm_typec_connect(struct tcpm_port * port) tcpm_typec_connect() argument 4414 tcpm_src_attach(struct tcpm_port * port) tcpm_src_attach() argument 4478 tcpm_typec_disconnect(struct tcpm_port * port) tcpm_typec_disconnect() argument 4499 tcpm_unregister_altmodes(struct tcpm_port * port) tcpm_unregister_altmodes() argument 4518 tcpm_set_partner_usb_comm_capable(struct tcpm_port * port,bool capable) tcpm_set_partner_usb_comm_capable() argument 4526 tcpm_reset_port(struct tcpm_port * port) tcpm_reset_port() argument 4571 tcpm_detach(struct tcpm_port * port) tcpm_detach() argument 4587 tcpm_src_detach(struct tcpm_port * port) tcpm_src_detach() argument 4592 tcpm_snk_attach(struct tcpm_port * port) tcpm_snk_attach() argument 4622 tcpm_snk_detach(struct tcpm_port * port) tcpm_snk_detach() argument 4627 tcpm_acc_attach(struct tcpm_port * port) tcpm_acc_attach() argument 4660 tcpm_acc_detach(struct tcpm_port * port) tcpm_acc_detach() argument 4665 hard_reset_state(struct tcpm_port * port) hard_reset_state() argument 4679 unattached_state(struct tcpm_port * port) unattached_state() argument 4693 tcpm_swap_complete(struct tcpm_port * port,int result) tcpm_swap_complete() argument 4730 tcpm_set_initial_svdm_version(struct tcpm_port * port) tcpm_set_initial_svdm_version() argument 4756 tcpm_set_initial_negotiated_rev(struct tcpm_port * port) tcpm_set_initial_negotiated_rev() argument 4775 run_state_machine(struct tcpm_port * port) run_state_machine() argument 5909 struct tcpm_port *port = container_of(work, struct tcpm_port, state_machine); tcpm_state_machine_work() local 5944 _tcpm_cc_change(struct tcpm_port * port,enum typec_cc_status cc1,enum typec_cc_status cc2) _tcpm_cc_change() argument 6159 _tcpm_pd_vbus_on(struct tcpm_port * port) _tcpm_pd_vbus_on() argument 6249 _tcpm_pd_vbus_off(struct tcpm_port * port) _tcpm_pd_vbus_off() argument 6353 _tcpm_pd_vbus_vsafe0v(struct tcpm_port * port) _tcpm_pd_vbus_vsafe0v() argument 6402 _tcpm_pd_hard_reset(struct tcpm_port * port) _tcpm_pd_hard_reset() argument 6434 struct tcpm_port *port = container_of(work, struct tcpm_port, tcpm_pd_event_handler() local 6515 tcpm_cc_change(struct tcpm_port * port) tcpm_cc_change() argument 6524 tcpm_vbus_change(struct tcpm_port * port) tcpm_vbus_change() argument 6533 tcpm_pd_hard_reset(struct tcpm_port * port) tcpm_pd_hard_reset() argument 6542 tcpm_sink_frs(struct tcpm_port * port) tcpm_sink_frs() argument 6551 tcpm_sourcing_vbus(struct tcpm_port * port) tcpm_sourcing_vbus() argument 6560 tcpm_port_clean(struct tcpm_port * port) tcpm_port_clean() argument 6569 tcpm_port_is_toggling(struct tcpm_port * port) tcpm_port_is_toggling() argument 6575 tcpm_port_error_recovery(struct tcpm_port * port) tcpm_port_error_recovery() argument 6586 struct tcpm_port *port = container_of(work, struct tcpm_port, enable_frs); tcpm_enable_frs_work() local 6619 struct tcpm_port *port = container_of(work, struct tcpm_port, send_discover_work); tcpm_send_discover_work() local 6647 struct tcpm_port *port = typec_get_drvdata(p); tcpm_dr_set() local 6719 struct tcpm_port *port = typec_get_drvdata(p); tcpm_pr_set() local 6768 struct tcpm_port *port = typec_get_drvdata(p); tcpm_vconn_set() local 6813 struct tcpm_port *port = typec_get_drvdata(p); tcpm_try_role() local 6829 tcpm_pps_set_op_curr(struct tcpm_port * port,u16 req_op_curr) tcpm_pps_set_op_curr() argument 6890 tcpm_pps_set_out_volt(struct tcpm_port * port,u16 req_out_volt) tcpm_pps_set_out_volt() argument 6946 tcpm_pps_activate(struct tcpm_port * port,bool activate) tcpm_pps_activate() argument 7004 tcpm_init(struct tcpm_port * port) tcpm_init() argument 7053 struct tcpm_port *port = typec_get_drvdata(p); tcpm_port_type_set() local 7078 tcpm_find_pd_data(struct tcpm_port * port,struct usb_power_delivery * pd) tcpm_find_pd_data() argument 7092 struct tcpm_port *port = typec_get_drvdata(p); tcpm_pd_get() local 7099 struct tcpm_port *port = typec_get_drvdata(p); tcpm_pd_set() local 7190 tcpm_tcpc_reset(struct tcpm_port * port) tcpm_tcpc_reset() argument 7199 tcpm_port_unregister_pd(struct tcpm_port * port) tcpm_port_unregister_pd() argument 7215 tcpm_port_register_pd(struct tcpm_port * port) tcpm_port_register_pd() argument 7266 tcpm_fw_get_timings(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_timings() argument 7294 tcpm_fw_get_caps(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_caps() argument 7475 tcpm_fw_get_snk_vdos(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_snk_vdos() argument 7512 tcpm_fw_get_pd_revision(struct tcpm_port * port,struct fwnode_handle * fwnode) tcpm_fw_get_pd_revision() argument 7552 tcpm_psy_get_online(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_online() argument 7567 tcpm_psy_get_voltage_min(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_voltage_min() argument 7578 tcpm_psy_get_voltage_max(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_voltage_max() argument 7589 tcpm_psy_get_voltage_now(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_voltage_now() argument 7597 tcpm_psy_get_current_max(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_current_max() argument 7608 tcpm_psy_get_current_now(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_current_now() argument 7616 tcpm_psy_get_input_power_limit(struct tcpm_port * port,union power_supply_propval * val) tcpm_psy_get_input_power_limit() argument 7641 struct tcpm_port *port = power_supply_get_drvdata(psy); tcpm_psy_get_prop() local 7677 tcpm_psy_set_online(struct tcpm_port * port,const union power_supply_propval * val) tcpm_psy_set_online() argument 7701 struct tcpm_port *port = power_supply_get_drvdata(psy); tcpm_psy_set_prop() local 7747 devm_tcpm_psy_register(struct tcpm_port * port) devm_tcpm_psy_register() argument 7784 struct tcpm_port *port = container_of(timer, struct tcpm_port, state_machine_timer); state_machine_timer_handler() local 7793 struct tcpm_port *port = container_of(timer, struct tcpm_port, vdm_state_machine_timer); vdm_state_machine_timer_handler() local 7802 struct tcpm_port *port = container_of(timer, struct tcpm_port, enable_frs_timer); enable_frs_timer_handler() local 7811 struct tcpm_port *port = container_of(timer, struct tcpm_port, send_discover_timer); send_discover_timer_handler() local 7820 struct tcpm_port *port; tcpm_register_port() local 7943 tcpm_unregister_port(struct tcpm_port * port) tcpm_unregister_port() argument [all...] |
| /linux/drivers/mmc/core/ |
| H A D | sdio_uart.c | 65 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/parport/ |
| H A D | ieee1284_ops.c | 35 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 D | ieee1284.c | 36 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/gadget/function/ |
| H A D | u_serial.c | 3 * u_serial.c - utilities for USB gadget "serial port"/TTY support 39 * "serial port" functionality through the USB gadget stack. Each such 40 * port is exposed through a /dev/ttyGS* node. 42 * After this module has been loaded, the individual TTY port can be requested 46 * host issues a config change event. Data can only flow when the port is 49 * A given TTY port can be made available in multiple configurations. 56 * Configurations may expose more than one TTY port. For example, if 101 * The port structure holds info for each port, one for each minor number 105 struct tty_port port; member 139 struct gs_port *port; global() member 210 gs_send_packet(struct gs_port * port,char * packet,unsigned size) gs_send_packet() argument 233 gs_start_tx(struct gs_port * port) gs_start_tx() argument 306 gs_start_rx(struct gs_port * port) gs_start_rx() argument 367 struct gs_port *port = container_of(w, struct gs_port, push); gs_rx_push() local 460 struct gs_port *port = ep->driver_data; gs_read_complete() local 471 struct gs_port *port = ep->driver_data; gs_write_complete() local 544 gs_start_io(struct gs_port * port) gs_start_io() argument 614 struct gs_port *port; gs_open() local 695 struct gs_port *port = tty->driver_data; gs_close() local 754 struct gs_port *port = tty->driver_data; gs_write() local 786 struct gs_port *port = tty->driver_data; gs_put_char() local 802 struct gs_port *port = tty->driver_data; gs_flush_chars() local 827 struct gs_port *port = tty->driver_data; gs_write_room() local 844 struct gs_port *port = tty->driver_data; gs_chars_in_buffer() local 861 struct gs_port *port = tty->driver_data; gs_unthrottle() local 878 struct gs_port *port = tty->driver_data; gs_break_ctl() local 897 struct gs_port *port = tty->driver_data; gs_get_icount() local 1024 gs_console_connect(struct gs_port * port) gs_console_connect() argument 1053 gs_console_disconnect(struct gs_port * port) gs_console_disconnect() argument 1077 gs_console_init(struct gs_port * port) gs_console_init() argument 1116 gs_console_exit(struct gs_port * port) gs_console_exit() argument 1138 struct gs_port *port; gserial_set_console() local 1167 struct gs_port *port; gserial_get_console() local 1186 gs_console_connect(struct gs_port * port) gs_console_connect() argument 1191 gs_console_disconnect(struct gs_port * port) gs_console_disconnect() argument 1195 gs_console_init(struct gs_port * port) gs_console_init() argument 1200 gs_console_exit(struct gs_port * port) gs_console_exit() argument 1209 struct gs_port *port; gs_port_alloc() local 1244 gs_closed(struct gs_port * port) gs_closed() argument 1255 gserial_free_port(struct gs_port * port) gserial_free_port() argument 1267 struct gs_port *port; gserial_free_line() local 1287 struct gs_port *port; gserial_alloc_line_no_console() local 1364 struct gs_port *port; gserial_connect() local 1440 struct gs_port *port = gser->ioport; gserial_disconnect() local 1488 struct gs_port *port; gserial_suspend() local 1517 struct gs_port *port; gserial_resume() local [all...] |
| /linux/drivers/usb/host/ |
| H A D | xhci-dbgtty.c | 28 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/tty/serial/8250/ |
| H A D | 8250_core.c | 84 struct uart_port *port = &up->port; in serial8250_interrupt() local 86 if (port->handle_irq(port)) { in serial8250_interrupt() 139 hash_for_each_possible(irq_lists, i, node, up->port.irq) in serial_get_or_create_irq_info() 140 if (i->irq == up->port.irq) in serial_get_or_create_irq_info() 148 i->irq = up->port.irq; in serial_get_or_create_irq_info() 174 ret = request_irq(up->port.irq, serial8250_interrupt, up->port.irqflags, up->port in serial_link_irq_chain() 266 struct uart_port *port = &up->port; univ8250_setup_timer() local 291 struct uart_port *port = &up->port; univ8250_setup_irq() local 301 struct uart_port *port = &up->port; univ8250_release_irq() local 404 struct uart_port *port; univ8250_console_setup() local 438 struct uart_port *port; univ8250_console_exit() local 478 struct uart_port *port = &serial8250_ports[i].port; univ8250_console_match() local 540 early_serial_setup(struct uart_port * port) early_serial_setup() argument 585 struct uart_port *port = &up->port; serial8250_suspend_port() local 609 struct uart_port *port = &up->port; serial8250_resume_port() local 633 serial8250_find_match_or_unused(const struct uart_port * port) serial8250_find_match_or_unused() argument [all...] |
| /linux/drivers/scsi/libsas/ |
| H A D | sas_port.c | 15 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/media/cec/usb/extron-da-hd-4k-plus/ |
| H A D | extron-da-hd-4k-plus.c | 194 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/tty/serial/ |
| H A D | bcm63xx_uart.c | 73 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 D | timbuart.c | 25 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 D | altera_uart.c | 77 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 D | atmel_serial.c | 40 /* Revisit: We should calculate this based on the actual port settings */ 57 static void atmel_start_rx(struct uart_port *port); 58 static void atmel_stop_rx(struct uart_port *port); 71 /* Use device name ttyS, major 4, minor 64-68. This is the usual serial port 104 * at91: 6 USARTs and one DBGU port (SAM9260) 110 * We wrap our port structure around the generic uart_port. 129 spinlock_t lock_tx; /* port lock */ 130 spinlock_t lock_rx; /* port lock */ 184 int (*prepare_rx)(struct uart_port *port); 185 int (*prepare_tx)(struct uart_port *port); 208 atmel_uart_readl(struct uart_port * port,u32 reg) atmel_uart_readl() argument 213 atmel_uart_writel(struct uart_port * port,u32 reg,u32 value) atmel_uart_writel() argument 218 atmel_uart_read_char(struct uart_port * port) atmel_uart_read_char() argument 223 atmel_uart_write_char(struct uart_port * port,u8 value) atmel_uart_write_char() argument 228 atmel_uart_is_half_duplex(struct uart_port * port) atmel_uart_is_half_duplex() argument 241 atmel_use_pdc_rx(struct uart_port * port) atmel_use_pdc_rx() argument 248 atmel_use_pdc_tx(struct uart_port * port) atmel_use_pdc_tx() argument 255 atmel_use_pdc_rx(struct uart_port * port) atmel_use_pdc_rx() argument 260 atmel_use_pdc_tx(struct uart_port * port) atmel_use_pdc_tx() argument 266 atmel_use_dma_tx(struct uart_port * port) atmel_use_dma_tx() argument 273 atmel_use_dma_rx(struct uart_port * port) atmel_use_dma_rx() argument 280 atmel_use_fifo(struct uart_port * port) atmel_use_fifo() argument 295 atmel_config_rs485(struct uart_port * port,struct ktermios * termios,struct serial_rs485 * rs485conf) atmel_config_rs485() argument 333 atmel_calc_cd(struct uart_port * port,struct serial_iso7816 * iso7816conf) atmel_calc_cd() argument 346 atmel_calc_fidi(struct uart_port * port,struct serial_iso7816 * iso7816conf) atmel_calc_fidi() argument 360 atmel_config_iso7816(struct uart_port * port,struct serial_iso7816 * iso7816conf) atmel_config_iso7816() argument 457 atmel_tx_empty(struct uart_port * port) atmel_tx_empty() argument 471 atmel_set_mctrl(struct uart_port * port,u_int mctrl) atmel_set_mctrl() argument 528 atmel_get_mctrl(struct uart_port * port) atmel_get_mctrl() argument 553 atmel_stop_tx(struct uart_port * port) atmel_stop_tx() argument 585 atmel_start_tx(struct uart_port * port) atmel_start_tx() argument 618 atmel_start_rx(struct uart_port * port) atmel_start_rx() argument 639 atmel_stop_rx(struct uart_port * port) atmel_stop_rx() argument 657 atmel_enable_ms(struct uart_port * port) atmel_enable_ms() argument 690 atmel_disable_ms(struct uart_port * port) atmel_disable_ms() argument 723 atmel_break_ctl(struct uart_port * port,int break_state) atmel_break_ctl() argument 737 atmel_buffer_rx_char(struct uart_port * port,unsigned int status,unsigned int ch) atmel_buffer_rx_char() argument 761 atmel_pdc_rxerr(struct uart_port * port,unsigned int status) atmel_pdc_rxerr() argument 782 atmel_rx_chars(struct uart_port * port) atmel_rx_chars() argument 833 atmel_tx_chars(struct uart_port * port) atmel_tx_chars() argument 861 struct uart_port *port = &atmel_port->uart; atmel_complete_tx_dma() local 901 atmel_release_tx_dma(struct uart_port * port) atmel_release_tx_dma() argument 921 atmel_tx_dma(struct uart_port * port) atmel_tx_dma() argument 1012 atmel_prepare_tx_dma(struct uart_port * port) atmel_prepare_tx_dma() argument 1077 struct uart_port *port = arg; atmel_complete_rx_dma() local 1083 atmel_release_rx_dma(struct uart_port * port) atmel_release_rx_dma() argument 1100 atmel_rx_from_dma(struct uart_port * port) atmel_rx_from_dma() argument 1178 atmel_prepare_rx_dma(struct uart_port * port) atmel_prepare_rx_dma() argument 1271 struct uart_port *port = &atmel_port->uart; atmel_uart_timer_callback() local 1284 atmel_handle_receive(struct uart_port * port,unsigned int pending) atmel_handle_receive() argument 1335 atmel_handle_transmit(struct uart_port * port,unsigned int pending) atmel_handle_transmit() argument 1361 atmel_handle_status(struct uart_port * port,unsigned int pending,unsigned int status) atmel_handle_status() argument 1397 struct uart_port *port = dev_id; atmel_interrupt() local 1428 atmel_release_tx_pdc(struct uart_port * port) atmel_release_tx_pdc() argument 1442 atmel_tx_pdc(struct uart_port * port) atmel_tx_pdc() argument 1489 atmel_prepare_tx_pdc(struct uart_port * port) atmel_prepare_tx_pdc() argument 1506 atmel_rx_from_ring(struct uart_port * port) atmel_rx_from_ring() argument 1568 atmel_release_rx_pdc(struct uart_port * port) atmel_release_rx_pdc() argument 1584 atmel_rx_from_pdc(struct uart_port * port) atmel_rx_from_pdc() argument 1656 atmel_prepare_rx_pdc(struct uart_port * port) atmel_prepare_rx_pdc() argument 1703 struct uart_port *port = &atmel_port->uart; atmel_tasklet_rx_func() local 1715 struct uart_port *port = &atmel_port->uart; atmel_tasklet_tx_func() local 1746 atmel_set_ops(struct uart_port * port) atmel_set_ops() argument 1782 atmel_get_ip_name(struct uart_port * port) atmel_get_ip_name() argument 1857 atmel_startup(struct uart_port * port) atmel_startup() argument 1985 atmel_flush_buffer(struct uart_port * port) atmel_flush_buffer() argument 2003 atmel_shutdown(struct uart_port * port) atmel_shutdown() argument 2066 atmel_serial_pm(struct uart_port * port,unsigned int state,unsigned int oldstate) atmel_serial_pm() argument 2103 atmel_set_termios(struct uart_port * port,struct ktermios * termios,const struct ktermios * old) atmel_set_termios() argument 2365 atmel_set_ldisc(struct uart_port * port,struct ktermios * termios) atmel_set_ldisc() argument 2385 atmel_type(struct uart_port * port) atmel_type() argument 2393 atmel_release_port(struct uart_port * port) atmel_release_port() argument 2409 atmel_request_port(struct uart_port * port) atmel_request_port() argument 2425 atmel_config_port(struct uart_port * port,int flags) atmel_config_port() argument 2436 atmel_verify_port(struct uart_port * port,struct serial_struct * ser) atmel_verify_port() argument 2457 atmel_poll_get_char(struct uart_port * port) atmel_poll_get_char() argument 2465 atmel_poll_put_char(struct uart_port * port,unsigned char ch) atmel_poll_put_char() argument 2513 struct uart_port *port = &atmel_port->uart; atmel_init_port() local 2556 atmel_console_putchar(struct uart_port * port,unsigned char ch) atmel_console_putchar() argument 2568 struct uart_port *port = &atmel_ports[co->index].uart; atmel_console_write() local 2610 atmel_console_get_options(struct uart_port * port,int * baud,int * parity,int * bits) atmel_console_get_options() argument 2640 struct uart_port *port = &atmel_ports[co->index].uart; atmel_console_setup() local 2728 struct uart_port *port = dev_get_drvdata(dev); atmel_serial_suspend() local 2770 struct uart_port *port = dev_get_drvdata(dev); atmel_serial_resume() local 2980 struct uart_port *port = platform_get_drvdata(pdev); atmel_serial_remove() local [all...] |
| H A D | mcf.c | 53 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 D | apbuart.c | 36 static void apbuart_tx_chars(struct uart_port *port); 38 static void apbuart_stop_tx(struct uart_port *port) in apbuart_stop_tx() argument 42 cr = UART_GET_CTRL(port); in apbuart_stop_tx() 44 UART_PUT_CTRL(port, cr); in apbuart_stop_tx() 47 static void apbuart_start_tx(struct uart_port *port) in apbuart_start_tx() argument 51 cr = UART_GET_CTRL(port); in apbuart_start_tx() 53 UART_PUT_CTRL(port, cr); in apbuart_start_tx() 55 if (UART_GET_STATUS(port) & UART_STATUS_THE) in apbuart_start_tx() 56 apbuart_tx_chars(port); in apbuart_start_tx() 59 static void apbuart_stop_rx(struct uart_port *port) in apbuart_stop_rx() argument 68 apbuart_rx_chars(struct uart_port * port) apbuart_rx_chars() argument 121 apbuart_tx_chars(struct uart_port * port) apbuart_tx_chars() argument 133 struct uart_port *port = dev_id; apbuart_int() local 149 apbuart_tx_empty(struct uart_port * port) apbuart_tx_empty() argument 155 apbuart_get_mctrl(struct uart_port * port) apbuart_get_mctrl() argument 161 apbuart_set_mctrl(struct uart_port * port,unsigned int mctrl) apbuart_set_mctrl() argument 166 apbuart_break_ctl(struct uart_port * port,int break_state) apbuart_break_ctl() argument 171 apbuart_startup(struct uart_port * port) apbuart_startup() argument 190 apbuart_shutdown(struct uart_port * port) apbuart_shutdown() argument 204 apbuart_set_termios(struct uart_port * port,struct ktermios * termios,const struct ktermios * old) apbuart_set_termios() argument 257 apbuart_type(struct uart_port * port) apbuart_type() argument 262 apbuart_release_port(struct uart_port * port) apbuart_release_port() argument 267 apbuart_request_port(struct uart_port * port) apbuart_request_port() argument 275 apbuart_config_port(struct uart_port * port,int flags) apbuart_config_port() argument 284 apbuart_verify_port(struct uart_port * port,struct serial_struct * ser) apbuart_verify_port() argument 318 apbuart_scan_fifo_size(struct uart_port * port,int portnumber) apbuart_scan_fifo_size() argument 375 apbuart_flush_fifo(struct uart_port * port) apbuart_flush_fifo() argument 390 apbuart_console_putchar(struct uart_port * port,unsigned char ch) apbuart_console_putchar() argument 402 struct uart_port *port = &grlib_apbuart_ports[co->index]; apbuart_console_write() local 423 apbuart_console_get_options(struct uart_port * port,int * baud,int * parity,int * bits) apbuart_console_get_options() argument 447 struct uart_port *port; apbuart_console_setup() local 524 struct uart_port *port = NULL; apbuart_probe() local 573 struct uart_port *port; grlib_apbuart_configure() local [all...] |
| H A D | st-asc.c | 36 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 D | meson_uart.c | 89 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 D | rda-uart.c | 117 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 D | esp32_acm.c | |
| /linux/drivers/char/ |
| H A D | virtio_console.c | 167 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 D | vcc.c | 114 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 D | generic.c | 105 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/pci/controller/ |
| H A D | pci-mvebu.c | 103 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/wan/ |
| H A D | hd64572.c | 44 #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 D | gpio-mxc.c | 125 #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 …]
|