Home
last modified time | relevance | path

Searched refs:toggle (Results 1 – 25 of 52) sorted by relevance

123

/drivers/media/rc/
Dir-rc6-decoder.c71 if (!data->toggle) in rc6_mode()
90 u8 toggle; in ir_rc6_decode() local
167 data->toggle = ev.pulse; in ir_rc6_decode()
235 toggle = data->toggle; in ir_rc6_decode()
237 scancode, toggle); in ir_rc6_decode()
250 toggle = (scancode & RC6_6A_MCE_TOGGLE_MASK) ? 1 : 0; in ir_rc6_decode()
253 toggle = 0; in ir_rc6_decode()
256 scancode, toggle); in ir_rc6_decode()
263 rc_keydown(dev, scancode, toggle); in ir_rc6_decode()
Dir-rc5-decoder.c52 u8 toggle; in ir_rc5_decode() local
138 toggle = (data->bits & 0x20000) ? 1 : 0; in ir_rc5_decode()
143 scancode, toggle); in ir_rc5_decode()
154 toggle = (data->bits & 0x00800) ? 1 : 0; in ir_rc5_decode()
159 scancode, toggle); in ir_rc5_decode()
162 rc_keydown(dev, scancode, toggle); in ir_rc5_decode()
Dir-rc5-sz-decoder.c48 u8 toggle, command, system; in ir_rc5_sz_decode() local
112 toggle = (data->bits & 0x01000) ? 1 : 0; in ir_rc5_sz_decode()
116 scancode, toggle); in ir_rc5_sz_decode()
118 rc_keydown(dev, scancode, toggle); in ir_rc5_sz_decode()
Dir-jvc-decoder.c77 data->toggle = !data->toggle; in ir_jvc_decode()
143 rc_keydown(dev, scancode, data->toggle); in ir_jvc_decode()
Drc-main.c627 u32 keycode, u8 toggle) in ir_do_keydown() argument
631 dev->last_toggle != toggle; in ir_do_keydown()
642 dev->last_toggle = toggle; in ir_do_keydown()
664 void rc_keydown(struct rc_dev *dev, int scancode, u8 toggle) in rc_keydown() argument
670 ir_do_keydown(dev, scancode, keycode, toggle); in rc_keydown()
691 void rc_keydown_notimeout(struct rc_dev *dev, int scancode, u8 toggle) in rc_keydown_notimeout() argument
697 ir_do_keydown(dev, scancode, keycode, toggle); in rc_keydown_notimeout()
Drc-core-priv.h63 bool toggle; member
78 bool toggle; member
/drivers/tty/
Dnozomi.c244 struct toggles toggle; member
309 struct toggles toggle; member
615 DBG3("toggle enabled: %d", dc->config_table.toggle.enabled); in dump_table()
616 DBG3("toggle up_mdm: %d", dc->config_table.toggle.mdm_ul); in dump_table()
617 DBG3("toggle dl_mdm: %d", dc->config_table.toggle.mdm_dl); in dump_table()
618 DBG3("toggle dl_dbg: %d", dc->config_table.toggle.diag_dl); in dump_table()
670 || (dc->config_table.toggle.enabled == TOGGLE_VALID)) { in nozomi_read_config_table()
676 dc->port[PORT_MDM].toggle_ul = dc->config_table.toggle.mdm_ul; in nozomi_read_config_table()
677 dc->port[PORT_MDM].toggle_dl = dc->config_table.toggle.mdm_dl; in nozomi_read_config_table()
678 dc->port[PORT_DIAG].toggle_dl = dc->config_table.toggle.diag_dl; in nozomi_read_config_table()
[all …]
/drivers/media/usb/dvb-usb/
Dnova-t-usb2.c77 u8 key[5],cmd[2] = { DIBUSB_REQ_POLL_REMOTE, 0x35 }, data,toggle,custom; in nova_t_rc_query() local
88 toggle = !!(raw & 0x800); in nova_t_rc_query()
92 …e 0x%02x, 0x%02x, 0x%02x to c: %02x d: %02x toggle: %d\n",key[1],key[2],key[3],custom,data,toggle); in nova_t_rc_query()
103 if (st->old_toggle == toggle) { in nova_t_rc_query()
108 st->old_toggle = toggle; in nova_t_rc_query()
Ddib0700_core.c678 u8 toggle; in dib0700_rc_urb_completion() local
710 toggle = 0; in dib0700_rc_urb_completion()
733 toggle = poll_reply->report_id; in dib0700_rc_urb_completion()
747 rc_keydown(d->rc_dev, keycode, toggle); in dib0700_rc_urb_completion()
/drivers/input/misc/
Dkeyspan_remote.c98 u8 toggle; member
127 int toggle; member
301 message.toggle = 0; in keyspan_check_data()
305 message.toggle = 1; in keyspan_check_data()
327 __func__, message.system, message.button, message.toggle); in keyspan_check_data()
329 if (message.toggle != remote->toggle) { in keyspan_check_data()
332 remote->toggle = message.toggle; in keyspan_check_data()
474 …remote->toggle = -1; /* Set to -1 so we will always not match the toggle from the first remote mes… in keyspan_probe()
/drivers/usb/host/
Dfhci-mem.c91 enum fhci_ta_type type, int toggle, u8 *data, u32 len, in fhci_td_fill() argument
102 td->toggle = toggle; in fhci_td_fill()
Dfhci-sched.c92 td->toggle = !td->toggle; in fhci_transaction_confirm()
114 td->toggle = !td->toggle; in fhci_transaction_confirm()
166 if (td->toggle == USB_TD_TOGGLE_CARRY) in add_packet()
167 td->toggle = ed->toggle_carry; in add_packet()
244 ed->ep_addr, ed->mode, ed->speed, td->toggle)) { in add_packet()
707 int toggle = 0; in fhci_queue_urb() local
752 toggle = USB_TD_TOGGLE_CARRY; in fhci_queue_urb()
754 toggle = USB_TD_TOGGLE_DATA0; in fhci_queue_urb()
779 toggle, in fhci_queue_urb()
788 cnt ? USB_TD_TOGGLE_CARRY : toggle, in fhci_queue_urb()
Duhci-q.c378 unsigned int toggle = qh->initial_toggle; in uhci_fixup_toggles() local
389 toggle = 2; in uhci_fixup_toggles()
400 if (toggle > 1 || uhci_toggle(td_token(uhci, td)) == toggle) { in uhci_fixup_toggles()
403 toggle = uhci_toggle(td_token(uhci, td)) ^ 1; in uhci_fixup_toggles()
410 toggle ^= 1; in uhci_fixup_toggles()
418 usb_pipeout(pipe), toggle); in uhci_fixup_toggles()
927 unsigned int toggle; in uhci_submit_common() local
936 toggle = usb_gettoggle(urb->dev, usb_pipeendpoint(urb->pipe), in uhci_submit_common()
983 (toggle << TD_TOKEN_TOGGLE_SHIFT), in uhci_submit_common()
988 toggle ^= 1; in uhci_submit_common()
[all …]
Dohci-dbg.c318 const char *toggle, *pid; in ohci_dump_td() local
322 case TD_T_DATA0: toggle = data0; break; in ohci_dump_td()
323 case TD_T_DATA1: toggle = data1; break; in ohci_dump_td()
324 case TD_T_TOGGLE: toggle = "(CARRY)"; break; in ohci_dump_td()
325 default: toggle = "(?)"; break; in ohci_dump_td()
334 TD_CC_GET(tmp), /* EC, */ toggle, in ohci_dump_td()
/drivers/media/pci/ttpci/
Dav7110_ir.c109 u16 toggle; in av7110_emit_key() local
117 toggle = ircom & 0x0800; in av7110_emit_key()
123 toggle = ircom & 0x8000; in av7110_emit_key()
132 toggle = ircom & 0x0800; in av7110_emit_key()
160 if (ir->last_key != keycode || toggle != ir->last_toggle) { in av7110_emit_key()
176 ir->last_toggle = toggle; in av7110_emit_key()
/drivers/s390/char/
Dsclp_tty.c368 int toggle; in sclp_switch_cases() local
371 toggle = 0; in sclp_switch_cases()
389 toggle = ~toggle; in sclp_switch_cases()
394 if (toggle) in sclp_switch_cases()
/drivers/media/i2c/
Dir-kbd-i2c.c69 int start, range, toggle, dev, code, ircode; in get_key_haup_common() local
78 toggle = (buf[offset] >> 5) & 1; in get_key_haup_common()
99 ircode= (start << 12) | (toggle << 11) | (dev << 6) | code; in get_key_haup_common()
108 start, range, toggle, dev, code); in get_key_haup_common()
/drivers/video/
Dpxa168fb.h229 #define CFG_GRA_FTOGGLE(toggle) ((toggle) << 15) argument
246 #define CFG_DMA_FTOGGLE(toggle) ((toggle) << 7) argument
/drivers/usb/musb/
Dblackfin.c205 static u8 toggle; in musb_conn_timer_handler() local
263 if (toggle) { in musb_conn_timer_handler()
267 toggle = 0; in musb_conn_timer_handler()
272 toggle = 1; in musb_conn_timer_handler()
/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c306 (mlx4_priv(dev)->cmd.toggle == in cmd_pending()
368 (cmd->toggle << HCR_T_BIT) | in mlx4_cmd_post()
379 cmd->toggle = cmd->toggle ^ 1; in mlx4_cmd_post()
1555 u16 param, u8 toggle) in mlx4_master_do_cmd() argument
1566 if (toggle != slave_state[slave].comm_toggle) { in mlx4_master_do_cmd()
1568 "STATE COMPROMISIED ***\n", toggle, slave); in mlx4_master_do_cmd()
1694 int toggle; in mlx4_master_comm_channel() local
1711 toggle = comm_cmd >> 31; in mlx4_master_comm_channel()
1712 if (toggle != slt) { in mlx4_master_comm_channel()
1724 comm_cmd & 0xffff, toggle); in mlx4_master_comm_channel()
[all …]
/drivers/usb/c67x00/
Dc67x00-sched.c588 void *data, int len, int pid, int toggle, in c67x00_create_td() argument
628 if (toggle) in c67x00_create_td()
672 int toggle; in c67x00_add_data_urb() local
678 toggle = usb_gettoggle(urb->dev, usb_pipeendpoint(urb->pipe), in c67x00_add_data_urb()
698 ret = c67x00_create_td(c67x00, urb, td_buf, len, pid, toggle, in c67x00_add_data_urb()
703 toggle ^= 1; in c67x00_add_data_urb()
/drivers/bluetooth/
Dbfusb.c577 data->udev->toggle[0] = data->udev->toggle[1] = 0; in bfusb_load_firmware()
614 data->udev->toggle[0] = data->udev->toggle[1] = 0; in bfusb_load_firmware()
/drivers/media/pci/bt8xx/
Dbttv-input.c235 u32 toggle = RC5_TOGGLE(rc5); in bttv_rc5_timer_end() local
239 rc_keydown(ir->dev, instr, toggle); in bttv_rc5_timer_end()
241 instr, toggle); in bttv_rc5_timer_end()
/drivers/usb/phy/
Dphy-isp1301-omap.c584 # define toggle(OTG,ISP) do { \ in otg_update_isp() macro
617 toggle(OTG_DRV_VBUS, OTG1_VBUS_DRV); in otg_update_isp()
620 toggle(OTG_PU_VBUS, OTG1_VBUS_CHRG); in otg_update_isp()
621 toggle(OTG_PD_VBUS, OTG1_VBUS_DISCHRG); in otg_update_isp()
623 # undef toggle in otg_update_isp()
/drivers/net/ethernet/ibm/
Dibmveth.c120 return ibmveth_rxq_toggle(adapter) == adapter->rx_queue.toggle; in ibmveth_rxq_pending_buffer()
432 adapter->rx_queue.toggle = !adapter->rx_queue.toggle; in ibmveth_rxq_recycle_buffer()
445 adapter->rx_queue.toggle = !adapter->rx_queue.toggle; in ibmveth_rxq_harvest_buffer()
581 adapter->rx_queue.toggle = 1; in ibmveth_open()

123