| /linux/include/trace/events/ |
| H A D | scsi.h | 169 __field( unsigned int, cmd_len ) 175 __dynamic_array(unsigned char, cmnd, cmd->cmd_len) 184 __entry->cmd_len = cmd->cmd_len; 190 memcpy(__get_dynamic_array(cmnd), cmd->cmnd, cmd->cmd_len); 199 __parse_cdb(__get_dynamic_array(cmnd), __entry->cmd_len), 200 __print_hex(__get_dynamic_array(cmnd), __entry->cmd_len)) 224 __field( unsigned int, cmd_len ) 230 __dynamic_array(unsigned char, cmnd, cmd->cmd_len) 240 __entry->cmd_len = cmd->cmd_len; 246 memcpy(__get_dynamic_array(cmnd), cmd->cmnd, cmd->cmd_len); [all …]
|
| /linux/drivers/usb/storage/ |
| H A D | protocol.c | 54 for (; srb->cmd_len < 12; srb->cmd_len++) in usb_stor_pad12_command() 55 srb->cmnd[srb->cmd_len] = 0; in usb_stor_pad12_command() 72 for (; srb->cmd_len < 12; srb->cmd_len++) in usb_stor_ufi_command() 73 srb->cmnd[srb->cmd_len] = 0; in usb_stor_ufi_command() 76 srb->cmd_len = 12; in usb_stor_ufi_command()
|
| /linux/drivers/accel/amdxdna/ |
| H A D | aie2_message.c | 555 u32 cmd_len; in aie2_init_exec_cu_req() local 558 cmd = amdxdna_cmd_get_payload(cmd_bo, &cmd_len); in aie2_init_exec_cu_req() 559 if (cmd_len > sizeof(cu_req->payload)) in aie2_init_exec_cu_req() 566 memcpy(cu_req->payload, cmd, cmd_len); in aie2_init_exec_cu_req() 578 u32 cmd_len; in aie2_init_exec_dpu_req() local 580 sn = amdxdna_cmd_get_payload(cmd_bo, &cmd_len); in aie2_init_exec_dpu_req() 581 if (cmd_len - sizeof(*sn) > sizeof(dpu_req->payload)) in aie2_init_exec_dpu_req() 591 memcpy(dpu_req->payload, sn->prop_args, cmd_len - sizeof(*sn)); in aie2_init_exec_dpu_req() 622 u32 cmd_len; in aie2_cmdlist_fill_cf() local 625 cmd = amdxdna_cmd_get_payload(cmd_bo, &cmd_len); in aie2_cmdlist_fill_cf() [all …]
|
| /linux/drivers/net/wireless/microchip/wilc1000/ |
| H A D | spi.c | 525 int cmd_len, resp_len, i; in wilc_spi_single_read() local 550 cmd_len = offsetof(struct wilc_spi_cmd, u.simple_cmd.crc); in wilc_spi_single_read() 554 c->u.simple_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_single_read() 555 cmd_len += 1; in wilc_spi_single_read() 559 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_single_read() 562 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_single_read() 566 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_single_read() 571 r = (struct wilc_spi_rsp_data *)&rb[cmd_len]; in wilc_spi_single_read() 620 int cmd_len, resp_len; in wilc_spi_write_cmd() local 635 cmd_len = offsetof(struct wilc_spi_cmd, u.internal_w_cmd.crc); in wilc_spi_write_cmd() [all …]
|
| /linux/drivers/mtd/devices/ |
| H A D | mchp23k256.c | 67 int ret, cmd_len; in mchp23k256_write() local 71 cmd_len = mchp23k256_cmdsz(flash); in mchp23k256_write() 77 transfer[0].len = cmd_len; in mchp23k256_write() 93 if (retlen && message.actual_length > cmd_len) in mchp23k256_write() 94 *retlen += message.actual_length - cmd_len; in mchp23k256_write() 106 int ret, cmd_len; in mchp23k256_read() local 110 cmd_len = mchp23k256_cmdsz(flash); in mchp23k256_read() 117 transfer[0].len = cmd_len; in mchp23k256_read() 133 if (retlen && message.actual_length > cmd_len) in mchp23k256_read() 134 *retlen += message.actual_length - cmd_len; in mchp23k256_read()
|
| /linux/drivers/acpi/acpica/ |
| H A D | dbhistry.c | 45 u16 cmd_len; in acpi_db_add_to_history() local 50 cmd_len = (u16)strlen(command_line); in acpi_db_add_to_history() 51 if (!cmd_len) { in acpi_db_add_to_history() 62 if (cmd_len > buffer_len) { in acpi_db_add_to_history() 66 command = acpi_os_allocate(cmd_len + 1); in acpi_db_add_to_history() 70 acpi_os_allocate(cmd_len + 1); in acpi_db_add_to_history()
|
| /linux/drivers/net/can/usb/kvaser_usb/ |
| H A D | kvaser_usb_hydra.c | 256 u8 cmd_len; member 580 size_t cmd_len; in kvaser_usb_hydra_send_simple_cmd() local 588 cmd_len = kvaser_usb_hydra_cmd_size(cmd); in kvaser_usb_hydra_send_simple_cmd() 605 err = kvaser_usb_send_cmd(dev, cmd, cmd_len); in kvaser_usb_hydra_send_simple_cmd() 621 size_t cmd_len; in kvaser_usb_hydra_send_simple_cmd_async() local 629 cmd_len = kvaser_usb_hydra_cmd_size(cmd); in kvaser_usb_hydra_send_simple_cmd_async() 636 err = kvaser_usb_send_cmd_async(priv, cmd, cmd_len); in kvaser_usb_hydra_send_simple_cmd_async() 675 size_t cmd_len; in kvaser_usb_hydra_wait_cmd() local 678 cmd_len = kvaser_usb_hydra_cmd_size(tmp_cmd); in kvaser_usb_hydra_wait_cmd() 679 if (pos + cmd_len > actual_len) { in kvaser_usb_hydra_wait_cmd() [all …]
|
| /linux/drivers/fsi/ |
| H A D | fsi-occ.c | 257 size_t cmd_len, parsed_len, resp_data_len; in occ_getsram() local 270 cmd_len = 5; in occ_getsram() 276 cmd_len = 6; in occ_getsram() 283 cmd[0] = cpu_to_be32(cmd_len); in occ_getsram() 287 rc = sbefifo_submit(occ->sbefifo, cmd, cmd_len, resp, &resp_len); in occ_getsram() 318 size_t cmd_len, parsed_len, resp_data_len; in occ_putsram() local 324 cmd_len = (occ->version == occ_p10) ? 6 : 5; in occ_putsram() 325 cmd_len += data_len >> 2; in occ_putsram() 331 buf[0] = cpu_to_be32(cmd_len); in occ_putsram() 360 rc = sbefifo_submit(occ->sbefifo, buf, cmd_len, buf, &resp_len); in occ_putsram() [all …]
|
| H A D | fsi-sbefifo.c | 495 const __be32 *command, size_t cmd_len) in sbefifo_send_command() argument 498 size_t len, chunk, vacant = 0, remaining = cmd_len; in sbefifo_send_command() 504 cmd_len, be32_to_cpu(command[1])); in sbefifo_send_command() 634 const __be32 *command, size_t cmd_len, in sbefifo_do_command() argument 638 int rc = sbefifo_send_command(sbefifo, command, cmd_len); in sbefifo_do_command() 688 const __be32 *command, size_t cmd_len, in __sbefifo_submit() argument 697 if (cmd_len < 2 || be32_to_cpu(command[0]) != cmd_len) { in __sbefifo_submit() 699 cmd_len, be32_to_cpu(command[0])); in __sbefifo_submit() 712 rc = sbefifo_do_command(sbefifo, command, cmd_len, response); in __sbefifo_submit() 738 int sbefifo_submit(struct device *dev, const __be32 *command, size_t cmd_len, in sbefifo_submit() argument [all …]
|
| /linux/drivers/media/usb/gspca/ |
| H A D | kinect.c | 121 unsigned int cmd_len, void *replybuf, unsigned int reply_len) in send_cmd() argument 131 if (cmd_len & 1 || cmd_len > (0x400 - sizeof(*chdr))) { in send_cmd() 132 pr_err("send_cmd: Invalid command length (0x%x)\n", cmd_len); in send_cmd() 140 chdr->len = cpu_to_le16(cmd_len / 2); in send_cmd() 142 memcpy(obuf+sizeof(*chdr), cmdbuf, cmd_len); in send_cmd() 144 res = kinect_write(udev, obuf, cmd_len + sizeof(*chdr)); in send_cmd() 147 sd->cam_tag, cmd_len, res); in send_cmd()
|
| /linux/drivers/firmware/qcom/ |
| H A D | qcom_scm-legacy.c | 144 const size_t cmd_len = arglen * sizeof(__le32); in scm_legacy_call() local 146 size_t alloc_len = sizeof(*cmd) + cmd_len + sizeof(*rsp) + resp_len; in scm_legacy_call() 157 cmd->resp_hdr_offset = cpu_to_le32(sizeof(*cmd) + cmd_len); in scm_legacy_call() 185 dma_sync_single_for_cpu(dev, cmd_phys + sizeof(*cmd) + cmd_len, in scm_legacy_call() 189 dma_sync_single_for_cpu(dev, cmd_phys + sizeof(*cmd) + cmd_len + in scm_legacy_call()
|
| /linux/drivers/scsi/ |
| H A D | scsi_ioctl.c | 369 if (hdr->cmd_len < 6) in scsi_fill_sghdr_rq() 371 if (copy_from_user(scmd->cmnd, hdr->cmdp, hdr->cmd_len)) in scsi_fill_sghdr_rq() 375 scmd->cmd_len = hdr->cmd_len; in scsi_fill_sghdr_rq() 463 if (hdr->cmd_len > sizeof(scmd->cmnd)) { in sg_io() 565 scmd->cmd_len = cmdlen; in sg_scsi_ioctl() 640 .cmd_len = hdr->cmd_len, in put_sg_io_hdr() 688 .cmd_len = hdr32.cmd_len, in get_sg_io_hdr() 809 hdr.cmd_len = sizeof(cgc.cmd); in scsi_cdrom_send_packet() 834 hdr.cmd_len = sizeof(cgc.cmd); in scsi_cdrom_send_packet()
|
| H A D | scsi_bsg.c | 35 scmd->cmd_len = hdr->request_len; in scsi_bsg_sg_io_fn() 36 if (scmd->cmd_len > sizeof(scmd->cmnd)) { in scsi_bsg_sg_io_fn() 42 if (copy_from_user(scmd->cmnd, uptr64(hdr->request), scmd->cmd_len)) in scsi_bsg_sg_io_fn()
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | papr-phy-attest.c | 42 u32 cmd_len; member 87 params->cmd_len, in rtas_physical_attestation() 151 param->cmd_len); in phy_attest_sequence_begin() 236 params->cmd_len = be32_to_cpu(params->cmd.length); in papr_phy_attest_create_handle()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
| H A D | fw.c | 27 u32 cmd_len, u8 *p_cmdbuffer) in _rtl8723be_fill_h2c_command() argument 140 switch (cmd_len) { in _rtl8723be_fill_h2c_command() 146 p_cmdbuffer + buf_index, cmd_len); in _rtl8723be_fill_h2c_command() 159 p_cmdbuffer + buf_index+3, cmd_len-3); in _rtl8723be_fill_h2c_command() 175 cmd_len); in _rtl8723be_fill_h2c_command() 198 u32 cmd_len, u8 *p_cmdbuffer) in rtl8723be_fill_h2c_cmd() argument 210 memcpy(tmp_cmdbuf, p_cmdbuffer, cmd_len); in rtl8723be_fill_h2c_cmd() 211 _rtl8723be_fill_h2c_command(hw, element_id, cmd_len, in rtl8723be_fill_h2c_cmd()
|
| /linux/drivers/nfc/st95hf/ |
| H A D | core.c | 87 int cmd_len; member 121 .cmd_len = 0x2, 127 .cmd_len = 0x7, 134 .cmd_len = 0x7, 141 .cmd_len = 0x7, 148 .cmd_len = 0x7, 155 .cmd_len = 0x7, 162 .cmd_len = 0x6, 169 .cmd_len = 0x5, 176 .cmd_len = 0x5, [all …]
|
| /linux/drivers/char/tpm/ |
| H A D | tpm_ftpm_tee.c | 46 size_t cmd_len) in ftpm_tee_tpm_op_send() argument 57 if (cmd_len > MAX_COMMAND_SIZE) { in ftpm_tee_tpm_op_send() 60 __func__, cmd_len); in ftpm_tee_tpm_op_send() 79 .size = cmd_len, in ftpm_tee_tpm_op_send() 91 memcpy(temp_buf, buf, cmd_len); in ftpm_tee_tpm_op_send()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
| H A D | fw.c | 164 u32 cmd_len, u8 *cmdbuffer) in _rtl92ee_fill_h2c_command() argument 298 switch (cmd_len) { in _rtl92ee_fill_h2c_command() 304 cmdbuffer + buf_index, cmd_len); in _rtl92ee_fill_h2c_command() 317 cmdbuffer + buf_index+3, cmd_len-3); in _rtl92ee_fill_h2c_command() 333 "switch case %#x not processed\n", cmd_len); in _rtl92ee_fill_h2c_command() 356 u8 element_id, u32 cmd_len, u8 *cmdbuffer) in rtl92ee_fill_h2c_cmd() argument 368 memcpy(tmp_cmdbuf, cmdbuffer, cmd_len); in rtl92ee_fill_h2c_cmd() 369 _rtl92ee_fill_h2c_command(hw, element_id, cmd_len, (u8 *)&tmp_cmdbuf); in rtl92ee_fill_h2c_cmd() 857 u8 *cmd_buf, u8 cmd_len) in rtl92ee_c2h_ra_report_handler() argument
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
| H A D | fw.c | 507 u32 cmd_len = 0; in _rtl92s_firmware_set_h2c_cmd() local 513 cmd_len = sizeof(struct h2c_set_pwrmode_parm); in _rtl92s_firmware_set_h2c_cmd() 517 cmd_len = sizeof(struct h2c_joinbss_rpt_parm); in _rtl92s_firmware_set_h2c_cmd() 521 cmd_len = sizeof(struct h2c_wpa_two_way_parm); in _rtl92s_firmware_set_h2c_cmd() 525 cmd_len = sizeof(unsigned long long); in _rtl92s_firmware_set_h2c_cmd() 529 cmd_len = sizeof(u8); in _rtl92s_firmware_set_h2c_cmd() 535 len = _rtl92s_get_h2c_cmdlen(MAX_TRANSMIT_BUFFER_SIZE, 1, &cmd_len); in _rtl92s_firmware_set_h2c_cmd() 545 &cmd_len, &pcmd_buffer, &rtlhal->h2c_txcmd_seq); in _rtl92s_firmware_set_h2c_cmd()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
| H A D | fw.c | 166 u8 element_id, u32 cmd_len, in _rtl88e_fill_h2c_command() argument 278 switch (cmd_len) { in _rtl88e_fill_h2c_command() 284 cmd_b + buf_index, cmd_len); in _rtl88e_fill_h2c_command() 297 cmd_b + buf_index+3, cmd_len-3); in _rtl88e_fill_h2c_command() 313 "switch case %#x not processed\n", cmd_len); in _rtl88e_fill_h2c_command() 336 u8 element_id, u32 cmd_len, u8 *cmdbuffer) in rtl88e_fill_h2c_cmd() argument 348 memcpy(tmp_cmdbuf, cmdbuffer, cmd_len); in rtl88e_fill_h2c_cmd() 349 _rtl88e_fill_h2c_command(hw, element_id, cmd_len, (u8 *)&tmp_cmdbuf); in rtl88e_fill_h2c_cmd()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8192d/ |
| H A D | fw_common.c | 208 u8 element_id, u32 cmd_len, u8 *cmdbuffer) in rtl92d_fill_h2c_cmd() argument 313 switch (cmd_len) { in rtl92d_fill_h2c_cmd() 319 memcpy(boxcontent + 1, cmdbuffer, cmd_len); in rtl92d_fill_h2c_cmd() 332 memcpy(boxcontent + 1, cmdbuffer + 2, cmd_len - 2); in rtl92d_fill_h2c_cmd() 343 pr_err("switch case %#x not processed\n", cmd_len); in rtl92d_fill_h2c_cmd()
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | wmi.c | 311 u8 *cmd_buf, u32 cmd_len, in ath9k_wmi_cmd() argument 326 skb = alloc_skb(headroom + cmd_len, GFP_ATOMIC); in ath9k_wmi_cmd() 332 if (cmd_len != 0 && cmd_buf != NULL) { in ath9k_wmi_cmd() 333 skb_put_data(skb, cmd_buf, cmd_len); in ath9k_wmi_cmd() 344 ret = ath9k_wmi_cmd_issue(wmi, skb, cmd_id, cmd_len, rsp_buf, rsp_len); in ath9k_wmi_cmd()
|
| /linux/drivers/input/mouse/ |
| H A D | cyapa_gen5.c | 538 u8 *cmd, size_t cmd_len, in cyapa_do_i2c_pip_cmd_irq_sync() argument 548 error = cyapa_i2c_pip_write(cyapa, cmd, cmd_len); in cyapa_do_i2c_pip_cmd_irq_sync() 567 u8 *cmd, size_t cmd_len, in cyapa_do_i2c_pip_cmd_polling() argument 578 error = cyapa_i2c_pip_write(cyapa, cmd, cmd_len); in cyapa_do_i2c_pip_cmd_polling() 607 u8 *cmd, int cmd_len, in cyapa_i2c_pip_cmd_irq_sync() argument 616 if (!cmd || !cmd_len) in cyapa_i2c_pip_cmd_irq_sync() 628 if (cmd_len >= PIP_MIN_APP_CMD_LENGTH && in cyapa_i2c_pip_cmd_irq_sync() 632 } else if (cmd_len >= PIP_MIN_BL_CMD_LENGTH && in cyapa_i2c_pip_cmd_irq_sync() 641 error = cyapa_do_i2c_pip_cmd_irq_sync(cyapa, cmd, cmd_len, in cyapa_i2c_pip_cmd_irq_sync() 657 error = cyapa_do_i2c_pip_cmd_polling(cyapa, cmd, cmd_len, in cyapa_i2c_pip_cmd_irq_sync() 1053 int cmd_len; cyapa_pip_bl_initiate() local 1322 u16 cmd_len; cyapa_pip_write_fw_block() local 1436 int cmd_len; cyapa_gen5_set_interval_time() local 1493 int cmd_len; cyapa_gen5_get_interval_time() local [all...] |
| /linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
| H A D | fw.c | 29 u32 cmd_len, u8 *cmdbuffer) in _rtl8723e_fill_h2c_command() argument 143 switch (cmd_len) { in _rtl8723e_fill_h2c_command() 210 cmd_len); in _rtl8723e_fill_h2c_command() 233 u8 element_id, u32 cmd_len, u8 *cmdbuffer) in rtl8723e_fill_h2c_cmd() argument 244 memcpy(tmp_cmdbuf, cmdbuffer, cmd_len); in rtl8723e_fill_h2c_cmd() 245 _rtl8723e_fill_h2c_command(hw, element_id, cmd_len, in rtl8723e_fill_h2c_cmd()
|
| /linux/net/bluetooth/ |
| H A D | l2cap_core.c | 3984 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_command_rej() argument 3989 if (cmd_len < sizeof(*rej)) in l2cap_command_rej() 4140 struct l2cap_cmd_hdr *cmd, u16 cmd_len, u8 *data) in l2cap_connect_req() argument 4142 if (cmd_len < sizeof(struct l2cap_conn_req)) in l2cap_connect_req() 4150 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_connect_create_rsp() argument 4159 if (cmd_len < sizeof(*rsp)) in l2cap_connect_create_rsp() 4267 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_config_req() argument 4276 if (cmd_len < sizeof(*req)) in l2cap_config_req() 4298 len = cmd_len - sizeof(*req); in l2cap_config_req() 4378 struct l2cap_cmd_hdr *cmd, u16 cmd_len, in l2cap_config_rsp() argument [all …]
|