Home
last modified time | relevance | path

Searched refs:cmd_idx (Results 1 – 25 of 27) sorted by relevance

12

/linux/drivers/input/touchscreen/
A Dads7846.c708 switch (cmd_idx) { in ads7846_set_cmd_val()
728 switch (cmd_idx) { in ads7846_get_cmd()
750 switch (cmd_idx) { in ads7846_cmd_need_settle()
770 unsigned int cmd_idx, b; in ads7846_filter() local
773 for (cmd_idx = packet->last_cmd_idx; cmd_idx < packet->cmds - 1; cmd_idx++) { in ads7846_filter()
776 packet->last_cmd_idx = cmd_idx; in ads7846_filter()
786 ads7846_set_cmd_val(ts, cmd_idx, val); in ads7846_filter()
1043 unsigned int cmd_idx, b; in ads7846_setup_spi_msg() local
1065 for (cmd_idx = 0; cmd_idx < packet->cmds; cmd_idx++) { in ads7846_setup_spi_msg()
1069 if (ads7846_cmd_need_settle(cmd_idx)) in ads7846_setup_spi_msg()
[all …]
/linux/drivers/media/cec/usb/rainshadow/
A Drainshadow-cec.c56 unsigned int cmd_idx; member
133 rain->cmd[rain->cmd_idx] = '\0'; in rain_irq_work_handler()
143 rain->cmd_idx = 0; in rain_irq_work_handler()
148 rain->cmd_idx = 0; in rain_irq_work_handler()
153 rain->cmd_idx = 0; in rain_irq_work_handler()
158 if (rain->cmd_idx >= DATA_SIZE - 1) { in rain_irq_work_handler()
160 "throwing away %d bytes of garbage\n", rain->cmd_idx); in rain_irq_work_handler()
161 rain->cmd_idx = 0; in rain_irq_work_handler()
163 rain->cmd[rain->cmd_idx++] = data; in rain_irq_work_handler()
/linux/drivers/net/ethernet/huawei/hinic/
A Dhinic_hw_dev.c635 u8 cmd_idx; in hinic_comm_recv_mgmt_self_cmd_reg() local
637 cmd_idx = pfhwdev->proc.cmd_num; in hinic_comm_recv_mgmt_self_cmd_reg()
644 pfhwdev->proc.info[cmd_idx].cmd = cmd; in hinic_comm_recv_mgmt_self_cmd_reg()
645 pfhwdev->proc.info[cmd_idx].proc = proc; in hinic_comm_recv_mgmt_self_cmd_reg()
652 u8 cmd_idx; in hinic_comm_recv_mgmt_self_cmd_unreg() local
654 cmd_idx = pfhwdev->proc.cmd_num; in hinic_comm_recv_mgmt_self_cmd_unreg()
661 for (cmd_idx = 0; cmd_idx < HINIC_COMM_SELF_CMD_MAX; cmd_idx++) { in hinic_comm_recv_mgmt_self_cmd_unreg()
663 pfhwdev->proc.info[cmd_idx].cmd = 0; in hinic_comm_recv_mgmt_self_cmd_unreg()
674 u8 cmd_idx; in comm_mgmt_msg_handler() local
676 for (cmd_idx = 0; cmd_idx < pfhwdev->proc.cmd_num; cmd_idx++) { in comm_mgmt_msg_handler()
[all …]
/linux/drivers/infiniband/core/
A Drdma_core.h170 u32 cmd_idx = command & IB_USER_VERBS_CMD_COMMAND_MASK; in uapi_get_method() local
177 if (cmd_idx >= uapi->num_write_ex) in uapi_get_method()
179 return uapi->write_ex_methods[cmd_idx]; in uapi_get_method()
182 if (cmd_idx >= uapi->num_write) in uapi_get_method()
184 return uapi->write_methods[cmd_idx]; in uapi_get_method()
/linux/drivers/staging/r8188eu/hal/
A Drtl8188e_cmd.c53 u8 cmd_idx, ext_cmd_len; in FillH2CCmd_88E() local
85 for (cmd_idx = 0; cmd_idx < ext_cmd_len; cmd_idx++) { in FillH2CCmd_88E()
86 rtw_write8(adapt, msgbox_ex_addr + cmd_idx, *((u8 *)(&h2c_cmd_ex) + cmd_idx)); in FillH2CCmd_88E()
91 for (cmd_idx = 0; cmd_idx < RTL88E_MESSAGE_BOX_SIZE; cmd_idx++) { in FillH2CCmd_88E()
92 rtw_write8(adapt, msgbox_addr + cmd_idx, *((u8 *)(&h2c_cmd) + cmd_idx)); in FillH2CCmd_88E()
/linux/drivers/input/mouse/
A Dcyapa_gen3.c277 static s32 cyapa_read_byte(struct cyapa *cyapa, u8 cmd_idx) in cyapa_read_byte() argument
282 cmd = cyapa_smbus_cmds[cmd_idx].cmd; in cyapa_read_byte()
285 cmd = cyapa_i2c_cmds[cmd_idx].cmd; in cyapa_read_byte()
290 static s32 cyapa_write_byte(struct cyapa *cyapa, u8 cmd_idx, u8 value) in cyapa_write_byte() argument
295 cmd = cyapa_smbus_cmds[cmd_idx].cmd; in cyapa_write_byte()
298 cmd = cyapa_i2c_cmds[cmd_idx].cmd; in cyapa_write_byte()
315 ssize_t cyapa_read_block(struct cyapa *cyapa, u8 cmd_idx, u8 *values) in cyapa_read_block() argument
321 cmd = cyapa_smbus_cmds[cmd_idx].cmd; in cyapa_read_block()
322 len = cyapa_smbus_cmds[cmd_idx].len; in cyapa_read_block()
325 cmd = cyapa_i2c_cmds[cmd_idx].cmd; in cyapa_read_block()
[all …]
A Dcyapa.h392 ssize_t cyapa_read_block(struct cyapa *cyapa, u8 cmd_idx, u8 *values);
/linux/drivers/staging/rts5208/
A Dsd.c223 cmd_idx != SEND_IF_COND) {
619 u8 cmd_idx, cmd_type; local
623 cmd_idx = SELECT_CARD;
627 cmd_idx = DESELECT_CARD;
3669 if (cmd_idx == SELECT_CARD || cmd_idx == APP_CMD ||
3670 cmd_idx == SEND_STATUS || cmd_idx == STOP_TRANSMISSION) {
3856 u8 cmd_idx, rsp_type; local
4060 cmd[0] = 0x40 | cmd_idx;
4098 0x40 | cmd_idx);
4203 u8 cmd_idx, rsp_type; local
[all …]
A Dsd.h276 int ext_sd_send_cmd_get_rsp(struct rtsx_chip *chip, u8 cmd_idx,
/linux/drivers/scsi/mpi3mr/
A Dmpi3mr_os.c1461 clear_bit(cmd_idx, mrioc->devrem_bitmap); in mpi3mr_dev_rmhs_complete_iou()
1541 u16 cmd_idx = MPI3MR_NUM_DEVRMCMD; in mpi3mr_dev_rmhs_send_tm() local
1551 if (cmd_idx < MPI3MR_NUM_DEVRMCMD) { in mpi3mr_dev_rmhs_send_tm()
1554 cmd_idx = MPI3MR_NUM_DEVRMCMD; in mpi3mr_dev_rmhs_send_tm()
1558 if (cmd_idx >= MPI3MR_NUM_DEVRMCMD) { in mpi3mr_dev_rmhs_send_tm()
1578 __func__, handle, cmd_idx); in mpi3mr_dev_rmhs_send_tm()
2333 int cmd_idx = -1; in mpi3mr_get_chain_idx() local
2339 if (cmd_idx < mrioc->chain_buf_count) { in mpi3mr_get_chain_idx()
2340 set_bit(cmd_idx, mrioc->chain_bitmap); in mpi3mr_get_chain_idx()
2345 cmd_idx = -1; in mpi3mr_get_chain_idx()
[all …]
/linux/drivers/misc/cardreader/
A Drtsx_usb.c217 if (ucr->cmd_idx < (IOBUF_SIZE - CMD_OFFSET) / 4) { in rtsx_usb_add_cmd()
218 i = CMD_OFFSET + ucr->cmd_idx * 4; in rtsx_usb_add_cmd()
226 ucr->cmd_idx++; in rtsx_usb_add_cmd()
235 ucr->cmd_buf[CNT_H] = (u8)(ucr->cmd_idx >> 8); in rtsx_usb_send_cmd()
236 ucr->cmd_buf[CNT_L] = (u8)(ucr->cmd_idx); in rtsx_usb_send_cmd()
241 ucr->cmd_buf, ucr->cmd_idx * 4 + CMD_OFFSET, in rtsx_usb_send_cmd()
/linux/drivers/spi/
A Dspi-hisi-sfc-v3xx.c286 int data_idx, addr_idx, cmd_idx; in hisi_sfc_v3xx_start_bus() local
290 cmd_idx = op->cmd.buswidth / 2; in hisi_sfc_v3xx_start_bus()
291 buswidth_mode = hisi_sfc_v3xx_io_modes[data_idx][addr_idx][cmd_idx]; in hisi_sfc_v3xx_start_bus()
/linux/sound/pci/pcxhr/
A Dpcxhr_core.c581 if (rmh->cmd_idx < CMD_LAST_INDEX) in pcxhr_read_rmh_status()
632 if (rmh->cmd_idx < CMD_LAST_INDEX) in pcxhr_send_msg_nolock()
634 data, cmd_names[rmh->cmd_idx]); in pcxhr_send_msg_nolock()
662 if (rmh->cmd_idx < CMD_LAST_INDEX) in pcxhr_send_msg_nolock()
699 rmh->cmd_idx, data); in pcxhr_send_msg_nolock()
725 rmh->cmd_idx = cmd; in pcxhr_init_rmh()
A Dpcxhr_core.h38 u16 cmd_idx; /* index of the command */ member
/linux/include/linux/
A Drtsx_usb.h51 unsigned int cmd_idx; member
141 ucr->cmd_idx = 0; in rtsx_usb_init_cmd()
/linux/sound/pci/lx6464es/
A Dlx_core.h90 u16 cmd_idx; /* index of the command */ member
A Dlx_core.c216 rmh->cmd_idx = cmd; in lx_message_init()
223 rmh->cmd_idx = cmd; in lx_message_init()
231 u8 idx = rmh->cmd_idx; in lx_message_dump()
/linux/fs/autofs/
A Ddev-ioctl.c564 #define cmd_idx(cmd) (cmd - _IOC_NR(AUTOFS_DEV_IOCTL_IOC_FIRST)) macro
584 unsigned int idx = cmd_idx(cmd); in lookup_dev_ioctl()
/linux/drivers/mmc/host/
A Dushc.c65 __u8 cmd_idx; member
277 ushc->cbw->cmd_idx = cpu_to_le16(req->cmd->opcode); in ushc_request()
A Drtsx_usb_sdmmc.c289 u8 cmd_idx = (u8)cmd->opcode; in sd_send_cmd_get_rsp() local
300 __func__, cmd_idx, arg); in sd_send_cmd_get_rsp()
347 rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_CMD0, 0xFF, 0x40 | cmd_idx); in sd_send_cmd_get_rsp()
A Drtsx_pci_sdmmc.c216 u8 cmd_idx = (u8)cmd->opcode; in sd_send_cmd_get_rsp() local
227 __func__, cmd_idx, arg); in sd_send_cmd_get_rsp()
/linux/drivers/net/wireless/intel/iwlwifi/queue/
A Dtx.c1713 int cmd_idx; in iwl_trans_txq_send_hcmd_sync() local
1725 cmd_idx = trans->ops->send_cmd(trans, cmd); in iwl_trans_txq_send_hcmd_sync()
1726 if (cmd_idx < 0) { in iwl_trans_txq_send_hcmd_sync()
1727 ret = cmd_idx; in iwl_trans_txq_send_hcmd_sync()
1784 txq->entries[cmd_idx].meta.flags &= ~CMD_WANT_SKB; in iwl_trans_txq_send_hcmd_sync()
/linux/drivers/hwmon/
A Dsmm665.c392 #define SMM665_ATTR(name, type, cmd_idx) \ argument
394 smm665_show_##type, NULL, cmd_idx)
/linux/drivers/net/wireless/intel/iwlegacy/
A Dcommon.c292 int cmd_idx; in il_send_cmd_sync() local
309 cmd_idx = il_enqueue_hcmd(il, cmd); in il_send_cmd_sync()
310 if (cmd_idx < 0) { in il_send_cmd_sync()
311 ret = cmd_idx; in il_send_cmd_sync()
364 il->txq[il->cmd_queue].meta[cmd_idx].flags &= ~CMD_WANT_SKB; in il_send_cmd_sync()
3235 il_hcmd_queue_reclaim(struct il_priv *il, int txq_id, int idx, int cmd_idx) in il_hcmd_queue_reclaim() argument
3275 int cmd_idx; in il_tx_cmd_complete() local
3294 cmd_idx = il_get_cmd_idx(&txq->q, idx, huge); in il_tx_cmd_complete()
3295 cmd = txq->cmd[cmd_idx]; in il_tx_cmd_complete()
3296 meta = &txq->meta[cmd_idx]; in il_tx_cmd_complete()
[all …]
/linux/drivers/staging/rtl8723bs/core/
A Drtw_cmd.c1697 u8 cmd_idx; in rtw_btinfo_hdl() local
1700 cmd_idx = info->cid; in rtw_btinfo_hdl()
1710 if (cmd_idx == BTINFO_WIFI_FETCH) in rtw_btinfo_hdl()
1712 else if (cmd_idx == BTINFO_BT_AUTO_RPT) in rtw_btinfo_hdl()

Completed in 85 milliseconds

12