/drivers/usb/storage/ |
D | protocol.c | 70 for (; srb->cmd_len < 12; srb->cmd_len++) in usb_stor_pad12_command() 71 srb->cmnd[srb->cmd_len] = 0; in usb_stor_pad12_command() 88 for (; srb->cmd_len < 12; srb->cmd_len++) in usb_stor_ufi_command() 89 srb->cmnd[srb->cmd_len] = 0; in usb_stor_ufi_command() 92 srb->cmd_len = 12; in usb_stor_ufi_command()
|
D | cypress_atacb.c | 111 srb->cmd_len = 16; in cypress_atacb_passthrough() 191 srb->cmd_len = 16; in cypress_atacb_passthrough() 248 srb->cmd_len = 12; in cypress_atacb_passthrough()
|
D | debug.c | 155 usb_stor_dbg(us, "Command %s (%d bytes)\n", what, srb->cmd_len); in usb_stor_show_command() 156 usb_stor_dbg(us, "bytes: %*ph\n", min_t(int, srb->cmd_len, 16), in usb_stor_show_command()
|
/drivers/acpi/acpica/ |
D | dbhistry.c | 80 u16 cmd_len; in acpi_db_add_to_history() local 85 cmd_len = (u16)strlen(command_line); in acpi_db_add_to_history() 86 if (!cmd_len) { in acpi_db_add_to_history() 97 if (cmd_len > buffer_len) { in acpi_db_add_to_history() 101 command = acpi_os_allocate(cmd_len + 1); in acpi_db_add_to_history() 105 acpi_os_allocate(cmd_len + 1); in acpi_db_add_to_history()
|
/drivers/gpu/drm/i915/gvt/ |
D | trace.h | 228 TP_PROTO(u8 vgpu_id, u8 ring_id, u32 ip_gma, u32 *cmd_va, u32 cmd_len, 231 TP_ARGS(vgpu_id, ring_id, ip_gma, cmd_va, cmd_len, buf_type), 238 __field(u32, cmd_len) 239 __dynamic_array(u32, raw_cmd, cmd_len) 247 __entry->cmd_len = cmd_len; 248 memcpy(__get_dynamic_array(raw_cmd), cmd_va, cmd_len * sizeof(*cmd_va)); 257 __print_array(__get_dynamic_array(raw_cmd), __entry->cmd_len, 4))
|
/drivers/media/usb/gspca/ |
D | kinect.c | 130 unsigned int cmd_len, void *replybuf, unsigned int reply_len) in send_cmd() argument 140 if (cmd_len & 1 || cmd_len > (0x400 - sizeof(*chdr))) { in send_cmd() 141 pr_err("send_cmd: Invalid command length (0x%x)\n", cmd_len); in send_cmd() 149 chdr->len = cpu_to_le16(cmd_len / 2); in send_cmd() 151 memcpy(obuf+sizeof(*chdr), cmdbuf, cmd_len); in send_cmd() 153 res = kinect_write(udev, obuf, cmd_len + sizeof(*chdr)); in send_cmd() 155 sd->cam_tag, cmd_len, res); in send_cmd()
|
/drivers/ide/ |
D | ide-atapi.c | 177 unsigned int cmd_len, sense_len; in ide_prep_sense() local 182 cmd_len = 255; in ide_prep_sense() 186 cmd_len = 20; in ide_prep_sense() 190 cmd_len = 18; in ide_prep_sense() 219 req->cmd[4] = cmd_len; in ide_prep_sense() 600 int cmd_len; in ide_transfer_pc() local 617 cmd_len = COMMAND_SIZE(scsi_req(rq)->cmd[0]); in ide_transfer_pc() 618 if (cmd_len < ATAPI_MIN_CDB_BYTES) in ide_transfer_pc() 619 cmd_len = ATAPI_MIN_CDB_BYTES; in ide_transfer_pc() 626 cmd_len = ATAPI_MIN_CDB_BYTES; in ide_transfer_pc() [all …]
|
/drivers/nfc/st95hf/ |
D | core.c | 100 int cmd_len; member 134 .cmd_len = 0x2, 140 .cmd_len = 0x7, 147 .cmd_len = 0x7, 154 .cmd_len = 0x7, 161 .cmd_len = 0x7, 168 .cmd_len = 0x7, 175 .cmd_len = 0x6, 182 .cmd_len = 0x5, 189 .cmd_len = 0x5, [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | fw.c | 49 u32 cmd_len, u8 *p_cmdbuffer) in _rtl8723be_fill_h2c_command() argument 162 switch (cmd_len) { in _rtl8723be_fill_h2c_command() 168 p_cmdbuffer + buf_index, cmd_len); in _rtl8723be_fill_h2c_command() 181 p_cmdbuffer + buf_index+3, cmd_len-3); in _rtl8723be_fill_h2c_command() 197 cmd_len); in _rtl8723be_fill_h2c_command() 220 u32 cmd_len, u8 *p_cmdbuffer) in rtl8723be_fill_h2c_cmd() argument 232 memcpy(tmp_cmdbuf, p_cmdbuffer, cmd_len); in rtl8723be_fill_h2c_cmd() 233 _rtl8723be_fill_h2c_command(hw, element_id, cmd_len, in rtl8723be_fill_h2c_cmd()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | fw.c | 527 u32 cmd_len = 0; in _rtl92s_firmware_set_h2c_cmd() local 533 cmd_len = sizeof(struct h2c_set_pwrmode_parm); in _rtl92s_firmware_set_h2c_cmd() 537 cmd_len = sizeof(struct h2c_joinbss_rpt_parm); in _rtl92s_firmware_set_h2c_cmd() 541 cmd_len = sizeof(struct h2c_wpa_two_way_parm); in _rtl92s_firmware_set_h2c_cmd() 545 cmd_len = sizeof(unsigned long long); in _rtl92s_firmware_set_h2c_cmd() 549 cmd_len = sizeof(u8); in _rtl92s_firmware_set_h2c_cmd() 555 len = _rtl92s_get_h2c_cmdlen(MAX_TRANSMIT_BUFFER_SIZE, 1, &cmd_len); in _rtl92s_firmware_set_h2c_cmd() 565 &cmd_len, &pcmd_buffer, &rtlhal->h2c_txcmd_seq); in _rtl92s_firmware_set_h2c_cmd()
|
/drivers/net/wireless/ath/ath9k/ |
D | wmi.c | 292 u8 *cmd_buf, u32 cmd_len, in ath9k_wmi_cmd() argument 307 skb = alloc_skb(headroom + cmd_len, GFP_ATOMIC); in ath9k_wmi_cmd() 313 if (cmd_len != 0 && cmd_buf != NULL) { in ath9k_wmi_cmd() 314 skb_put_data(skb, cmd_buf, cmd_len); in ath9k_wmi_cmd() 329 ret = ath9k_wmi_cmd_issue(wmi, skb, cmd_id, cmd_len); in ath9k_wmi_cmd()
|
/drivers/firmware/ |
D | qcom_scm-32.c | 176 const void *cmd_buf, size_t cmd_len, void *resp_buf, in qcom_scm_call() argument 182 size_t alloc_len = sizeof(*cmd) + cmd_len + sizeof(*rsp) + resp_len; in qcom_scm_call() 191 cmd->resp_hdr_offset = cpu_to_le32(sizeof(*cmd) + cmd_len); in qcom_scm_call() 195 memcpy(qcom_scm_get_command_buffer(cmd), cmd_buf, cmd_len); in qcom_scm_call() 214 dma_sync_single_for_cpu(dev, cmd_phys + sizeof(*cmd) + cmd_len, in qcom_scm_call() 219 dma_sync_single_for_cpu(dev, cmd_phys + sizeof(*cmd) + cmd_len + in qcom_scm_call()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | fw.c | 186 u8 element_id, u32 cmd_len, in _rtl88e_fill_h2c_command() argument 298 switch (cmd_len) { in _rtl88e_fill_h2c_command() 304 cmd_b + buf_index, cmd_len); in _rtl88e_fill_h2c_command() 317 cmd_b + buf_index+3, cmd_len-3); in _rtl88e_fill_h2c_command() 333 "switch case %#x not processed\n", cmd_len); in _rtl88e_fill_h2c_command() 356 u8 element_id, u32 cmd_len, u8 *cmdbuffer) in rtl88e_fill_h2c_cmd() argument 368 memcpy(tmp_cmdbuf, cmdbuffer, cmd_len); in rtl88e_fill_h2c_cmd() 369 _rtl88e_fill_h2c_command(hw, element_id, cmd_len, (u8 *)&tmp_cmdbuf); in rtl88e_fill_h2c_cmd()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | fw.c | 189 u32 cmd_len, u8 *cmdbuffer) in _rtl92ee_fill_h2c_command() argument 323 switch (cmd_len) { in _rtl92ee_fill_h2c_command() 329 cmdbuffer + buf_index, cmd_len); in _rtl92ee_fill_h2c_command() 342 cmdbuffer + buf_index+3, cmd_len-3); in _rtl92ee_fill_h2c_command() 358 "switch case %#x not processed\n", cmd_len); in _rtl92ee_fill_h2c_command() 381 u8 element_id, u32 cmd_len, u8 *cmdbuffer) in rtl92ee_fill_h2c_cmd() argument 393 memcpy(tmp_cmdbuf, cmdbuffer, cmd_len); in rtl92ee_fill_h2c_cmd() 394 _rtl92ee_fill_h2c_command(hw, element_id, cmd_len, (u8 *)&tmp_cmdbuf); in rtl92ee_fill_h2c_cmd() 882 u8 *cmd_buf, u8 cmd_len) in _rtl92ee_c2h_ra_report_handler() argument
|
/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | fw.c | 51 u32 cmd_len, u8 *cmdbuffer) in _rtl8723e_fill_h2c_command() argument 165 switch (cmd_len) { in _rtl8723e_fill_h2c_command() 232 cmd_len); in _rtl8723e_fill_h2c_command() 255 u8 element_id, u32 cmd_len, u8 *cmdbuffer) in rtl8723e_fill_h2c_cmd() argument 266 memcpy(tmp_cmdbuf, cmdbuffer, cmd_len); in rtl8723e_fill_h2c_cmd() 267 _rtl8723e_fill_h2c_command(hw, element_id, cmd_len, in rtl8723e_fill_h2c_cmd()
|
/drivers/input/mouse/ |
D | cyapa_gen5.c | 537 u8 *cmd, size_t cmd_len, in cyapa_do_i2c_pip_cmd_irq_sync() argument 547 error = cyapa_i2c_pip_write(cyapa, cmd, cmd_len); in cyapa_do_i2c_pip_cmd_irq_sync() 566 u8 *cmd, size_t cmd_len, in cyapa_do_i2c_pip_cmd_polling() argument 577 error = cyapa_i2c_pip_write(cyapa, cmd, cmd_len); in cyapa_do_i2c_pip_cmd_polling() 606 u8 *cmd, int cmd_len, in cyapa_i2c_pip_cmd_irq_sync() argument 615 if (!cmd || !cmd_len) in cyapa_i2c_pip_cmd_irq_sync() 627 if (cmd_len >= PIP_MIN_APP_CMD_LENGTH && in cyapa_i2c_pip_cmd_irq_sync() 631 } else if (cmd_len >= PIP_MIN_BL_CMD_LENGTH && in cyapa_i2c_pip_cmd_irq_sync() 640 error = cyapa_do_i2c_pip_cmd_irq_sync(cyapa, cmd, cmd_len, in cyapa_i2c_pip_cmd_irq_sync() 656 error = cyapa_do_i2c_pip_cmd_polling(cyapa, cmd, cmd_len, in cyapa_i2c_pip_cmd_irq_sync() [all …]
|
/drivers/staging/rtlwifi/phydm/ |
D | phydm_debug.h | 169 void phydm_fw_trace_handler(void *dm_void, u8 *cmd_buf, u8 cmd_len); 171 void phydm_fw_trace_handler_code(void *dm_void, u8 *buffer, u8 cmd_len); 173 void phydm_fw_trace_handler_8051(void *dm_void, u8 *cmd_buf, u8 cmd_len);
|
/drivers/staging/rtlwifi/rtl8822be/ |
D | fw.c | 47 u32 cmd_len, u8 *cmdbuffer) in _rtl8822be_fill_h2c_command() argument 173 switch (cmd_len) { in _rtl8822be_fill_h2c_command() 179 cmd_len); in _rtl8822be_fill_h2c_command() 192 cmd_len - 3); in _rtl8822be_fill_h2c_command() 230 void rtl8822be_fill_h2c_cmd(struct ieee80211_hw *hw, u8 element_id, u32 cmd_len, in rtl8822be_fill_h2c_cmd() argument 244 memcpy(tmp_cmdbuf, cmdbuffer, cmd_len); in rtl8822be_fill_h2c_cmd() 247 "h2c cmd: len=%d %02X%02X%02X%02X %02X%02X%02X%02X\n", cmd_len, in rtl8822be_fill_h2c_cmd() 251 _rtl8822be_fill_h2c_command(hw, element_id, cmd_len, tmp_cmdbuf); in rtl8822be_fill_h2c_cmd()
|
/drivers/media/usb/pulse8-cec/ |
D | pulse8-cec.c | 258 static int pulse8_send(struct serio *serio, const u8 *command, u8 cmd_len) in pulse8_send() argument 265 for (; !err && cmd_len; command++, cmd_len--) { in pulse8_send() 281 const u8 *cmd, u8 cmd_len, in pulse8_send_and_wait_once() argument 289 err = pulse8_send(pulse8->serio, cmd, cmd_len); in pulse8_send_and_wait_once() 310 const u8 *cmd, u8 cmd_len, u8 response, u8 size) in pulse8_send_and_wait() argument 316 err = pulse8_send_and_wait_once(pulse8, cmd, cmd_len, response, size); in pulse8_send_and_wait() 325 err = pulse8_send_and_wait_once(pulse8, cmd, cmd_len, in pulse8_send_and_wait()
|
/drivers/input/rmi4/ |
D | rmi_spi.c | 125 int cmd_len = 0; in rmi_spi_xfer() local 135 cmd_len += 2; in rmi_spi_xfer() 140 cmd_len += 4; in rmi_spi_xfer() 144 total_tx_len = cmd_len + tx_len; in rmi_spi_xfer() 185 memcpy(&rmi_spi->tx_buf[cmd_len], tx_buf, tx_len); in rmi_spi_xfer()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | fw.c | 292 u8 element_id, u32 cmd_len, u8 *cmdbuffer) in _rtl92d_fill_h2c_command() argument 402 switch (cmd_len) { in _rtl92d_fill_h2c_command() 448 cmd_len); in _rtl92d_fill_h2c_command() 466 u8 element_id, u32 cmd_len, u8 *cmdbuffer) in rtl92d_fill_h2c_cmd() argument 471 memcpy(tmp_cmdbuf, cmdbuffer, cmd_len); in rtl92d_fill_h2c_cmd() 472 _rtl92d_fill_h2c_command(hw, element_id, cmd_len, (u8 *)&tmp_cmdbuf); in rtl92d_fill_h2c_cmd()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192c/ |
D | fw_common.c | 207 u8 element_id, u32 cmd_len, u8 *cmdbuffer) in _rtl92c_fill_h2c_command() argument 318 switch (cmd_len) { in _rtl92c_fill_h2c_command() 385 "switch case %#x not processed\n", cmd_len); in _rtl92c_fill_h2c_command() 408 u8 element_id, u32 cmd_len, u8 *cmdbuffer) in rtl92c_fill_h2c_cmd() argument 420 memcpy(tmp_cmdbuf, cmdbuffer, cmd_len); in rtl92c_fill_h2c_cmd() 421 _rtl92c_fill_h2c_command(hw, element_id, cmd_len, (u8 *)&tmp_cmdbuf); in rtl92c_fill_h2c_cmd()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | fw.c | 256 u8 element_id, u32 cmd_len, in _rtl8821ae_fill_h2c_command() argument 380 switch (cmd_len) { in _rtl8821ae_fill_h2c_command() 386 cmdbuffer + buf_index, cmd_len); in _rtl8821ae_fill_h2c_command() 399 cmdbuffer + buf_index+3, cmd_len-3); in _rtl8821ae_fill_h2c_command() 415 "switch case %#x not processed\n", cmd_len); in _rtl8821ae_fill_h2c_command() 438 u8 element_id, u32 cmd_len, u8 *cmdbuffer) in rtl8821ae_fill_h2c_cmd() argument 450 memcpy(tmp_cmdbuf, cmdbuffer, cmd_len); in rtl8821ae_fill_h2c_cmd() 451 _rtl8821ae_fill_h2c_command(hw, element_id, cmd_len, (u8 *)&tmp_cmdbuf); in rtl8821ae_fill_h2c_cmd() 1915 u8 *cmd_buf, u8 cmd_len) in rtl8821ae_c2h_ra_report_handler() argument
|
/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_fd.c | 188 ptrdiff_t cmd_len; in pcan_usb_fd_send_cmd() local 197 cmd_len = cmd_tail - cmd_head; in pcan_usb_fd_send_cmd() 198 if (cmd_len <= (PCAN_UFD_CMD_BUFFER_SIZE - sizeof(u64))) { in pcan_usb_fd_send_cmd() 200 cmd_len += sizeof(u64); in pcan_usb_fd_send_cmd() 204 packet_len = cmd_len; in pcan_usb_fd_send_cmd() 223 cmd_len -= packet_len; in pcan_usb_fd_send_cmd() 225 if (cmd_len < PCAN_UFD_LOSPD_PKT_SIZE) in pcan_usb_fd_send_cmd() 226 packet_len = cmd_len; in pcan_usb_fd_send_cmd()
|
/drivers/net/wireless/ti/wl1251/ |
D | cmd.c | 394 size_t cmd_len; in wl1251_cmd_template_set() local 401 cmd_len = ALIGN(sizeof(*cmd) + buf_len, 4); in wl1251_cmd_template_set() 403 cmd = kzalloc(cmd_len, GFP_KERNEL); in wl1251_cmd_template_set() 414 ret = wl1251_cmd_send(wl, cmd_id, cmd, cmd_len); in wl1251_cmd_template_set()
|