Lines Matching full:toggle

160 /* Two different toggle channels exist */
191 * Toggle fields are valid if enabled is 0,
206 struct toggles toggle; member
255 /* This represents the toggle information */
261 * Toggle fields are valid if enabled is 0,
271 struct toggles toggle; member
568 DBG3("toggle enabled: %d", dc->config_table.toggle.enabled); in dump_table()
569 DBG3("toggle up_mdm: %d", dc->config_table.toggle.mdm_ul); in dump_table()
570 DBG3("toggle dl_mdm: %d", dc->config_table.toggle.mdm_dl); in dump_table()
571 DBG3("toggle dl_dbg: %d", dc->config_table.toggle.diag_dl); in dump_table()
623 || (dc->config_table.toggle.enabled == TOGGLE_VALID)) { in nozomi_read_config_table()
629 dc->port[PORT_MDM].toggle_ul = dc->config_table.toggle.mdm_ul; in nozomi_read_config_table()
630 dc->port[PORT_MDM].toggle_dl = dc->config_table.toggle.mdm_dl; in nozomi_read_config_table()
631 dc->port[PORT_DIAG].toggle_dl = dc->config_table.toggle.diag_dl; in nozomi_read_config_table()
632 DBG1("toggle ports: MDM UL:%d MDM DL:%d, DIAG DL:%d", in nozomi_read_config_table()
653 && (dc->config_table.toggle.enabled != TOGGLE_VALID)) { in nozomi_read_config_table()
744 const u8 toggle = port->toggle_ul; in send_data() local
745 void __iomem *addr = port->ul_addr[toggle]; in send_data()
746 const u32 ul_size = port->ul_size[toggle]; in send_data()
1013 * Return 0 - toggle fields are out of sync
1015 static int handle_data_dl(struct nozomi *dc, enum port_type port, u8 *toggle, in handle_data_dl() argument
1018 if (*toggle == 0 && read_iir & mask1) { in handle_data_dl()
1021 *toggle = !(*toggle); in handle_data_dl()
1027 *toggle = !(*toggle); in handle_data_dl()
1030 } else if (*toggle == 1 && read_iir & mask2) { in handle_data_dl()
1033 *toggle = !(*toggle); in handle_data_dl()
1039 *toggle = !(*toggle); in handle_data_dl()
1043 dev_err(&dc->pdev->dev, "port out of sync!, toggle:%d\n", in handle_data_dl()
1044 *toggle); in handle_data_dl()
1053 * Return 0 - toggle field are out of sync
1057 u8 *toggle = &(dc->port[port].toggle_ul); in handle_data_ul() local
1059 if (*toggle == 0 && read_iir & MDM_UL1) { in handle_data_ul()
1066 *toggle = !*toggle; in handle_data_ul()
1076 *toggle = !*toggle; in handle_data_ul()
1080 } else if (*toggle == 1 && read_iir & MDM_UL2) { in handle_data_ul()
1087 *toggle = !*toggle; in handle_data_ul()
1097 *toggle = !*toggle; in handle_data_ul()