Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/infiniband/core/
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()
/kernel/linux/linux-5.10/drivers/media/cec/usb/rainshadow/
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
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()
638 if (cmd_idx >= HINIC_COMM_SELF_CMD_MAX) { 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()
655 if (cmd_idx >= HINIC_COMM_SELF_CMD_MAX) { 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()
662 if (cmd == pfhwdev->proc.info[cmd_idx].cmd) { in hinic_comm_recv_mgmt_self_cmd_unreg()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/hal/
Drtl8188e_cmd.c53 u8 cmd_idx, ext_cmd_len; in FillH2CCmd_88E() local
90 for (cmd_idx = 0; cmd_idx < ext_cmd_len; cmd_idx++) in FillH2CCmd_88E()
91 usb_write8(adapt, msgbox_ex_addr + cmd_idx, *((u8 *)(&h2c_cmd_ex) + cmd_idx)); in FillH2CCmd_88E()
95 for (cmd_idx = 0; cmd_idx < RTL88E_MESSAGE_BOX_SIZE; cmd_idx++) in FillH2CCmd_88E()
96 usb_write8(adapt, msgbox_addr + cmd_idx, *((u8 *)(&h2c_cmd) + cmd_idx)); in FillH2CCmd_88E()
/kernel/linux/linux-5.10/drivers/input/mouse/
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 …]
Dcyapa.h392 ssize_t cyapa_read_block(struct cyapa *cyapa, u8 cmd_idx, u8 *values);
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/pcie/
Dtx-gen2.c316 int cmd_idx; in iwl_pcie_gen2_send_hcmd_sync() local
328 cmd_idx = iwl_pcie_gen2_enqueue_hcmd(trans, cmd); in iwl_pcie_gen2_send_hcmd_sync()
329 if (cmd_idx < 0) { in iwl_pcie_gen2_send_hcmd_sync()
330 ret = cmd_idx; in iwl_pcie_gen2_send_hcmd_sync()
387 txq->entries[cmd_idx].meta.flags &= ~CMD_WANT_SKB; in iwl_pcie_gen2_send_hcmd_sync()
Dtx.c1535 int cmd_idx; in iwl_pcie_send_hcmd_sync() local
1550 cmd_idx = iwl_pcie_enqueue_hcmd(trans, cmd); in iwl_pcie_send_hcmd_sync()
1551 if (cmd_idx < 0) { in iwl_pcie_send_hcmd_sync()
1552 ret = cmd_idx; in iwl_pcie_send_hcmd_sync()
1614 txq->entries[cmd_idx].meta.flags &= ~CMD_WANT_SKB; in iwl_pcie_send_hcmd_sync()
/kernel/linux/linux-5.10/drivers/staging/rts5208/
Dsd.c112 static int sd_send_cmd_get_rsp(struct rtsx_chip *chip, u8 cmd_idx, argument
125 dev_dbg(rtsx_dev(chip), "SD/MMC CMD %d, arg = 0x%08x\n", cmd_idx, arg);
134 rtsx_add_cmd(chip, WRITE_REG_CMD, REG_SD_CMD0, 0xFF, 0x40 | cmd_idx);
206 if (cmd_idx == WRITE_MULTIPLE_BLOCK) {
222 if ((cmd_idx != SEND_RELATIVE_ADDR) &&
223 (cmd_idx != SEND_IF_COND)) {
224 if (cmd_idx != STOP_TRANSMISSION) {
619 u8 cmd_idx, cmd_type; local
623 cmd_idx = SELECT_CARD;
627 cmd_idx = DESELECT_CARD;
[all …]
Dsd.h276 int ext_sd_send_cmd_get_rsp(struct rtsx_chip *chip, u8 cmd_idx,
/kernel/linux/linux-5.10/drivers/misc/cardreader/
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()
/kernel/linux/linux-5.10/drivers/spi/
Dspi-hisi-sfc-v3xx.c275 int data_idx, addr_idx, cmd_idx; in hisi_sfc_v3xx_start_bus() local
279 cmd_idx = op->cmd.buswidth / 2; in hisi_sfc_v3xx_start_bus()
280 buswidth_mode = hisi_sfc_v3xx_io_modes[data_idx][addr_idx][cmd_idx]; in hisi_sfc_v3xx_start_bus()
/kernel/linux/linux-5.10/sound/pci/pcxhr/
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()
Dpcxhr_core.h38 u16 cmd_idx; /* index of the command */ member
/kernel/linux/linux-5.10/include/linux/
Drtsx_usb.h51 unsigned int cmd_idx; member
141 ucr->cmd_idx = 0; in rtsx_usb_init_cmd()
/kernel/linux/linux-5.10/sound/pci/lx6464es/
Dlx_core.h90 u16 cmd_idx; /* index of the command */ member
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()
/kernel/linux/linux-5.10/fs/autofs/
Ddev-ioctl.c563 #define cmd_idx(cmd) (cmd - _IOC_NR(AUTOFS_DEV_IOCTL_IOC_FIRST)) macro
583 unsigned int idx = cmd_idx(cmd); in lookup_dev_ioctl()
/kernel/linux/linux-5.10/drivers/mmc/host/
Dushc.c65 __u8 cmd_idx; member
277 ushc->cbw->cmd_idx = cpu_to_le16(req->cmd->opcode); in ushc_request()
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()
Drtsx_pci_sdmmc.c213 u8 cmd_idx = (u8)cmd->opcode; in sd_send_cmd_get_rsp() local
224 __func__, cmd_idx, arg); in sd_send_cmd_get_rsp()
/kernel/linux/linux-5.10/drivers/hwmon/
Dsmm665.c392 #define SMM665_ATTR(name, type, cmd_idx) \ argument
394 smm665_show_##type, NULL, cmd_idx)
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlegacy/
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()
3238 il_hcmd_queue_reclaim(struct il_priv *il, int txq_id, int idx, int cmd_idx) in il_hcmd_queue_reclaim() argument
3278 int cmd_idx; in il_tx_cmd_complete() local
3297 cmd_idx = il_get_cmd_idx(&txq->q, idx, huge); in il_tx_cmd_complete()
3298 cmd = txq->cmd[cmd_idx]; in il_tx_cmd_complete()
3299 meta = &txq->meta[cmd_idx]; in il_tx_cmd_complete()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/core/
Drtw_cmd.c1796 u8 cmd_idx; in rtw_btinfo_hdl() local
1799 cmd_idx = info->cid; in rtw_btinfo_hdl()
1809 if (cmd_idx == BTINFO_WIFI_FETCH) in rtw_btinfo_hdl()
1811 else if (cmd_idx == BTINFO_BT_AUTO_RPT) in rtw_btinfo_hdl()
/kernel/linux/linux-5.10/arch/mips/include/asm/octeon/
Dcvmx-mio-defs.h854 uint64_t cmd_idx:6; member
858 uint64_t cmd_idx:6;
1040 uint64_t cmd_idx:6; member
1044 uint64_t cmd_idx:6;

12