/linux-4.19.296/drivers/media/dvb-frontends/ |
D | si2168.c | 24 static int si2168_cmd_execute(struct i2c_client *client, struct si2168_cmd *cmd) in si2168_cmd_execute() argument 32 if (cmd->wlen) { in si2168_cmd_execute() 34 ret = i2c_master_send(client, cmd->args, cmd->wlen); in si2168_cmd_execute() 37 } else if (ret != cmd->wlen) { in si2168_cmd_execute() 43 if (cmd->rlen) { in si2168_cmd_execute() 48 ret = i2c_master_recv(client, cmd->args, cmd->rlen); in si2168_cmd_execute() 51 } else if (ret != cmd->rlen) { in si2168_cmd_execute() 57 if ((cmd->args[0] >> 7) & 0x01) in si2168_cmd_execute() 66 if ((cmd->args[0] >> 6) & 0x01) { in si2168_cmd_execute() 71 if (!((cmd->args[0] >> 7) & 0x01)) { in si2168_cmd_execute() [all …]
|
D | tda10071.c | 53 struct tda10071_cmd *cmd) in tda10071_cmd_execute() argument 67 ret = regmap_bulk_write(dev->regmap, 0x00, cmd->args, cmd->len); in tda10071_cmd_execute() 106 struct tda10071_cmd cmd; in tda10071_set_tone() local 130 cmd.args[0] = CMD_LNB_PCB_CONFIG; in tda10071_set_tone() 131 cmd.args[1] = 0; in tda10071_set_tone() 132 cmd.args[2] = 0x00; in tda10071_set_tone() 133 cmd.args[3] = 0x00; in tda10071_set_tone() 134 cmd.args[4] = tone; in tda10071_set_tone() 135 cmd.len = 5; in tda10071_set_tone() 136 ret = tda10071_cmd_execute(dev, &cmd); in tda10071_set_tone() [all …]
|
D | cx24120.c | 381 struct cx24120_cmd *cmd) in cx24120_message_send() argument 387 cx24120_check_cmd(state, cmd->id); in cx24120_message_send() 390 cx24120_writereg(state, CX24120_REG_CMD_START, cmd->id); in cx24120_message_send() 391 cx24120_writeregs(state, CX24120_REG_CMD_ARGS, &cmd->arg[0], in cx24120_message_send() 392 cmd->len, 1); in cx24120_message_send() 404 dev_dbg(&state->i2c->dev, "sent message 0x%02x\n", cmd->id); in cx24120_message_send() 411 struct cx24120_cmd *cmd, u8 numreg) in cx24120_message_sendrcv() argument 420 ret = cx24120_message_send(state, cmd); in cx24120_message_sendrcv() 429 cmd->arg[i] = cx24120_readreg(state, (cmd->len + i + 1)); in cx24120_message_sendrcv() 450 struct cx24120_cmd cmd; in cx24120_msg_mpeg_output_global_config() local [all …]
|
D | cx24117.c | 291 struct cx24117_cmd *cmd) in cx24117_writecmd() argument 299 __func__, state->demod, cmd->len); in cx24117_writecmd() 302 memcpy(&buf[1], cmd->args, cmd->len); in cx24117_writecmd() 306 msg.len = cmd->len+1; in cx24117_writecmd() 312 KBUILD_MODNAME, state->demod, ret, cmd->len); in cx24117_writecmd() 507 struct cx24117_cmd *cmd) in cx24117_cmd_execute_nolock() argument 521 cx24117_writecmd(state, cmd); in cx24117_cmd_execute_nolock() 539 static int cx24117_cmd_execute(struct dvb_frontend *fe, struct cx24117_cmd *cmd) in cx24117_cmd_execute() argument 545 ret = cx24117_cmd_execute_nolock(fe, cmd); in cx24117_cmd_execute() 555 struct cx24117_cmd cmd; in cx24117_load_firmware() local [all …]
|
D | cx24116.c | 526 static int cx24116_cmd_execute(struct dvb_frontend *fe, struct cx24116_cmd *cmd) in cx24116_cmd_execute() argument 542 for (i = 0; i < cmd->len ; i++) { in cx24116_cmd_execute() 543 dprintk("%s: 0x%02x == 0x%02x\n", __func__, i, cmd->args[i]); in cx24116_cmd_execute() 544 cx24116_writereg(state, i, cmd->args[i]); in cx24116_cmd_execute() 566 struct cx24116_cmd cmd; in cx24116_load_firmware() local 625 cmd.args[0x00] = CMD_SET_VCO; in cx24116_load_firmware() 626 cmd.args[0x01] = 0x05; in cx24116_load_firmware() 627 cmd.args[0x02] = 0xdc; in cx24116_load_firmware() 628 cmd.args[0x03] = 0xda; in cx24116_load_firmware() 629 cmd.args[0x04] = 0xae; in cx24116_load_firmware() [all …]
|
D | gp8psk-fe.c | 137 u8 cmd[10]; in gp8psk_fe_set_frontend() local 142 cmd[4] = freq & 0xff; in gp8psk_fe_set_frontend() 143 cmd[5] = (freq >> 8) & 0xff; in gp8psk_fe_set_frontend() 144 cmd[6] = (freq >> 16) & 0xff; in gp8psk_fe_set_frontend() 145 cmd[7] = (freq >> 24) & 0xff; in gp8psk_fe_set_frontend() 173 cmd[0] = c->symbol_rate & 0xff; in gp8psk_fe_set_frontend() 174 cmd[1] = (c->symbol_rate >> 8) & 0xff; in gp8psk_fe_set_frontend() 175 cmd[2] = (c->symbol_rate >> 16) & 0xff; in gp8psk_fe_set_frontend() 176 cmd[3] = (c->symbol_rate >> 24) & 0xff; in gp8psk_fe_set_frontend() 184 cmd[9] = 0; break; in gp8psk_fe_set_frontend() [all …]
|
/linux-4.19.296/include/linux/ |
D | fcntl.h | 19 #define IS_GETLK32(cmd) ((cmd) == F_GETLK) argument 20 #define IS_SETLK32(cmd) ((cmd) == F_SETLK) argument 21 #define IS_SETLKW32(cmd) ((cmd) == F_SETLKW) argument 22 #define IS_GETLK64(cmd) ((cmd) == F_GETLK64) argument 23 #define IS_SETLK64(cmd) ((cmd) == F_SETLK64) argument 24 #define IS_SETLKW64(cmd) ((cmd) == F_SETLKW64) argument 26 #define IS_GETLK32(cmd) (0) argument 27 #define IS_SETLK32(cmd) (0) argument 28 #define IS_SETLKW32(cmd) (0) argument 29 #define IS_GETLK64(cmd) ((cmd) == F_GETLK) argument [all …]
|
/linux-4.19.296/include/scsi/ |
D | scsi_cmnd.h | 156 static inline void *scsi_cmd_priv(struct scsi_cmnd *cmd) in scsi_cmd_priv() argument 158 return cmd + 1; in scsi_cmd_priv() 162 static inline struct scsi_driver *scsi_cmd_to_driver(struct scsi_cmnd *cmd) in scsi_cmd_to_driver() argument 164 return *(struct scsi_driver **)cmd->request->rq_disk->private_data; in scsi_cmd_to_driver() 168 extern void scsi_finish_command(struct scsi_cmnd *cmd); 174 extern int scsi_init_io(struct scsi_cmnd *cmd); 177 extern int scsi_dma_map(struct scsi_cmnd *cmd); 178 extern void scsi_dma_unmap(struct scsi_cmnd *cmd); 180 static inline int scsi_dma_map(struct scsi_cmnd *cmd) { return -ENOSYS; } in scsi_dma_map() argument 181 static inline void scsi_dma_unmap(struct scsi_cmnd *cmd) { } in scsi_dma_unmap() argument [all …]
|
/linux-4.19.296/drivers/media/tuners/ |
D | si2157.c | 22 static int si2157_cmd_execute(struct i2c_client *client, struct si2157_cmd *cmd) in si2157_cmd_execute() argument 30 if (cmd->wlen) { in si2157_cmd_execute() 32 ret = i2c_master_send(client, cmd->args, cmd->wlen); in si2157_cmd_execute() 35 } else if (ret != cmd->wlen) { in si2157_cmd_execute() 41 if (cmd->rlen) { in si2157_cmd_execute() 46 ret = i2c_master_recv(client, cmd->args, cmd->rlen); in si2157_cmd_execute() 49 } else if (ret != cmd->rlen) { in si2157_cmd_execute() 55 if ((cmd->args[0] >> 7) & 0x01) in si2157_cmd_execute() 63 if (!((cmd->args[0] >> 7) & 0x01)) { in si2157_cmd_execute() 84 struct si2157_cmd cmd; in si2157_init() local [all …]
|
/linux-4.19.296/drivers/s390/net/ |
D | ism_drv.c | 36 static int ism_cmd(struct ism_dev *ism, void *cmd) in ism_cmd() argument 38 struct ism_req_hdr *req = cmd; in ism_cmd() 39 struct ism_resp_hdr *resp = cmd; in ism_cmd() 60 union ism_cmd_simple cmd; in ism_cmd_simple() local 62 memset(&cmd, 0, sizeof(cmd)); in ism_cmd_simple() 63 cmd.request.hdr.cmd = cmd_code; in ism_cmd_simple() 64 cmd.request.hdr.len = sizeof(cmd.request); in ism_cmd_simple() 66 return ism_cmd(ism, &cmd); in ism_cmd_simple() 71 union ism_qi cmd; in query_info() local 73 memset(&cmd, 0, sizeof(cmd)); in query_info() [all …]
|
/linux-4.19.296/drivers/misc/ibmasm/ |
D | command.c | 36 struct command *cmd; in ibmasm_new_command() local 41 cmd = kzalloc(sizeof(struct command), GFP_KERNEL); in ibmasm_new_command() 42 if (cmd == NULL) in ibmasm_new_command() 46 cmd->buffer = kzalloc(buffer_size, GFP_KERNEL); in ibmasm_new_command() 47 if (cmd->buffer == NULL) { in ibmasm_new_command() 48 kfree(cmd); in ibmasm_new_command() 51 cmd->buffer_size = buffer_size; in ibmasm_new_command() 53 kref_init(&cmd->kref); in ibmasm_new_command() 54 cmd->lock = &sp->lock; in ibmasm_new_command() 56 cmd->status = IBMASM_CMD_PENDING; in ibmasm_new_command() [all …]
|
D | dot_command.h | 55 struct dot_command_header *cmd = (struct dot_command_header *)buffer; in get_dot_command_size() local 56 return sizeof(struct dot_command_header) + cmd->command_size + cmd->data_size; in get_dot_command_size() 62 unsigned char *cmd = buffer + sizeof(struct dot_command_header); in get_dot_command_timeout() local 67 if ((cmd[0] == 6) && (cmd[1] == 3) && (cmd[2] == 1)) in get_dot_command_timeout() 70 if ((cmd[0] == 7) && (cmd[1] == 1)) in get_dot_command_timeout() 72 if (cmd[0] == 8) in get_dot_command_timeout()
|
/linux-4.19.296/drivers/bus/fsl-mc/ |
D | dprc.c | 27 struct fsl_mc_command cmd = { 0 }; in dprc_open() local 32 cmd.header = mc_encode_cmd_header(DPRC_CMDID_OPEN, cmd_flags, in dprc_open() 34 cmd_params = (struct dprc_cmd_open *)cmd.params; in dprc_open() 38 err = mc_send_command(mc_io, &cmd); in dprc_open() 43 *token = mc_cmd_hdr_read_token(&cmd); in dprc_open() 64 struct fsl_mc_command cmd = { 0 }; in dprc_close() local 67 cmd.header = mc_encode_cmd_header(DPRC_CMDID_CLOSE, cmd_flags, in dprc_close() 71 return mc_send_command(mc_io, &cmd); in dprc_close() 91 struct fsl_mc_command cmd = { 0 }; in dprc_set_irq() local 95 cmd.header = mc_encode_cmd_header(DPRC_CMDID_SET_IRQ, in dprc_set_irq() [all …]
|
D | dpcon.c | 34 struct fsl_mc_command cmd = { 0 }; in dpcon_open() local 39 cmd.header = mc_encode_cmd_header(DPCON_CMDID_OPEN, in dpcon_open() 42 dpcon_cmd = (struct dpcon_cmd_open *)cmd.params; in dpcon_open() 46 err = mc_send_command(mc_io, &cmd); in dpcon_open() 51 *token = mc_cmd_hdr_read_token(&cmd); in dpcon_open() 72 struct fsl_mc_command cmd = { 0 }; in dpcon_close() local 75 cmd.header = mc_encode_cmd_header(DPCON_CMDID_CLOSE, in dpcon_close() 80 return mc_send_command(mc_io, &cmd); in dpcon_close() 96 struct fsl_mc_command cmd = { 0 }; in dpcon_enable() local 99 cmd.header = mc_encode_cmd_header(DPCON_CMDID_ENABLE, in dpcon_enable() [all …]
|
D | dpbp.c | 34 struct fsl_mc_command cmd = { 0 }; in dpbp_open() local 39 cmd.header = mc_encode_cmd_header(DPBP_CMDID_OPEN, in dpbp_open() 41 cmd_params = (struct dpbp_cmd_open *)cmd.params; in dpbp_open() 45 err = mc_send_command(mc_io, &cmd); in dpbp_open() 50 *token = mc_cmd_hdr_read_token(&cmd); in dpbp_open() 71 struct fsl_mc_command cmd = { 0 }; in dpbp_close() local 74 cmd.header = mc_encode_cmd_header(DPBP_CMDID_CLOSE, cmd_flags, in dpbp_close() 78 return mc_send_command(mc_io, &cmd); in dpbp_close() 94 struct fsl_mc_command cmd = { 0 }; in dpbp_enable() local 97 cmd.header = mc_encode_cmd_header(DPBP_CMDID_ENABLE, cmd_flags, in dpbp_enable() [all …]
|
D | mc-sys.c | 31 static enum mc_cmd_status mc_cmd_hdr_read_status(struct fsl_mc_command *cmd) in mc_cmd_hdr_read_status() argument 33 struct mc_cmd_header *hdr = (struct mc_cmd_header *)&cmd->header; in mc_cmd_hdr_read_status() 38 static u16 mc_cmd_hdr_read_cmdid(struct fsl_mc_command *cmd) in mc_cmd_hdr_read_cmdid() argument 40 struct mc_cmd_header *hdr = (struct mc_cmd_header *)&cmd->header; in mc_cmd_hdr_read_cmdid() 98 struct fsl_mc_command *cmd) in mc_write_command() argument 109 writeq_relaxed(le64_to_cpu(cmd->params[i]), &portal->params[i]); in mc_write_command() 112 writeq(le64_to_cpu(cmd->header), &portal->header); in mc_write_command() 159 struct fsl_mc_command *cmd, in mc_polling_wait_preemptible() argument 170 status = mc_read_response(mc_io->portal_virt_addr, cmd); in mc_polling_wait_preemptible() 185 (unsigned int)mc_cmd_hdr_read_token(cmd), in mc_polling_wait_preemptible() [all …]
|
D | dpmcp.c | 33 struct fsl_mc_command cmd = { 0 }; in dpmcp_open() local 38 cmd.header = mc_encode_cmd_header(DPMCP_CMDID_OPEN, in dpmcp_open() 40 cmd_params = (struct dpmcp_cmd_open *)cmd.params; in dpmcp_open() 44 err = mc_send_command(mc_io, &cmd); in dpmcp_open() 49 *token = mc_cmd_hdr_read_token(&cmd); in dpmcp_open() 69 struct fsl_mc_command cmd = { 0 }; in dpmcp_close() local 72 cmd.header = mc_encode_cmd_header(DPMCP_CMDID_CLOSE, in dpmcp_close() 76 return mc_send_command(mc_io, &cmd); in dpmcp_close() 91 struct fsl_mc_command cmd = { 0 }; in dpmcp_reset() local 94 cmd.header = mc_encode_cmd_header(DPMCP_CMDID_RESET, in dpmcp_reset() [all …]
|
/linux-4.19.296/drivers/s390/cio/ |
D | device_status.c | 82 cdev->private->irb.scsw.cmd.ectl = 0; in ccw_device_accumulate_ecw() 83 if ((irb->scsw.cmd.stctl & SCSW_STCTL_ALERT_STATUS) && in ccw_device_accumulate_ecw() 84 !(irb->scsw.cmd.stctl & SCSW_STCTL_INTER_STATUS)) in ccw_device_accumulate_ecw() 85 cdev->private->irb.scsw.cmd.ectl = irb->scsw.cmd.ectl; in ccw_device_accumulate_ecw() 87 if (!cdev->private->irb.scsw.cmd.ectl) in ccw_device_accumulate_ecw() 99 if (!irb->scsw.cmd.eswf && in ccw_device_accumulate_esw_valid() 100 (irb->scsw.cmd.stctl == SCSW_STCTL_STATUS_PEND)) in ccw_device_accumulate_esw_valid() 102 if (irb->scsw.cmd.stctl == in ccw_device_accumulate_esw_valid() 104 !(irb->scsw.cmd.actl & SCSW_ACTL_SUSPENDED)) in ccw_device_accumulate_esw_valid() 127 if (irb->scsw.cmd.eswf) { in ccw_device_accumulate_esw() [all …]
|
/linux-4.19.296/drivers/s390/char/ |
D | hmcdrv_ftp.c | 38 static enum hmcdrv_ftp_cmdid hmcdrv_ftp_cmd_getid(const char *cmd, int len); 39 static int hmcdrv_ftp_parse(char *cmd, struct hmcdrv_ftp_cmdspec *ftp); 50 static enum hmcdrv_ftp_cmdid hmcdrv_ftp_cmd_getid(const char *cmd, int len) in hmcdrv_ftp_cmd_getid() argument 55 enum hmcdrv_ftp_cmdid cmd; /* associated command as enum */ in hmcdrv_ftp_cmd_getid() member 70 .cmd = HMCDRV_FTP_GET}, in hmcdrv_ftp_cmd_getid() 72 .cmd = HMCDRV_FTP_DIR}, in hmcdrv_ftp_cmd_getid() 74 .cmd = HMCDRV_FTP_DELETE}, in hmcdrv_ftp_cmd_getid() 76 .cmd = HMCDRV_FTP_NLIST}, in hmcdrv_ftp_cmd_getid() 78 .cmd = HMCDRV_FTP_PUT}, in hmcdrv_ftp_cmd_getid() 80 .cmd = HMCDRV_FTP_APPEND}, in hmcdrv_ftp_cmd_getid() [all …]
|
/linux-4.19.296/include/trace/events/ |
D | scsi.h | 202 TP_PROTO(struct scsi_cmnd *cmd), 204 TP_ARGS(cmd), 216 __dynamic_array(unsigned char, cmnd, cmd->cmd_len) 220 __entry->host_no = cmd->device->host->host_no; 221 __entry->channel = cmd->device->channel; 222 __entry->id = cmd->device->id; 223 __entry->lun = cmd->device->lun; 224 __entry->opcode = cmd->cmnd[0]; 225 __entry->cmd_len = cmd->cmd_len; 226 __entry->data_sglen = scsi_sg_count(cmd); [all …]
|
D | target.h | 134 TP_PROTO(struct se_cmd *cmd), 136 TP_ARGS(cmd), 145 __string( initiator, cmd->se_sess->se_node_acl->initiatorname ) 149 __entry->unpacked_lun = cmd->orig_fe_lun; 150 __entry->opcode = cmd->t_task_cdb[0]; 151 __entry->data_length = cmd->data_length; 152 __entry->task_attribute = cmd->sam_task_attr; 153 __entry->control = scsi_command_control(cmd->t_task_cdb); 154 memcpy(__entry->cdb, cmd->t_task_cdb, TCM_MAX_COMMAND_SIZE); 155 __assign_str(initiator, cmd->se_sess->se_node_acl->initiatorname); [all …]
|
/linux-4.19.296/drivers/i2c/busses/ |
D | i2c-octeon-core.c | 406 u64 cmd; in octeon_i2c_hlc_read() local 411 cmd = SW_TWSI_V | SW_TWSI_R | SW_TWSI_SOVR; in octeon_i2c_hlc_read() 413 cmd |= (u64)(msgs[0].len - 1) << SW_TWSI_SIZE_SHIFT; in octeon_i2c_hlc_read() 415 cmd |= (u64)(msgs[0].addr & 0x7full) << SW_TWSI_ADDR_SHIFT; in octeon_i2c_hlc_read() 418 cmd |= SW_TWSI_OP_10; in octeon_i2c_hlc_read() 420 cmd |= SW_TWSI_OP_7; in octeon_i2c_hlc_read() 422 octeon_i2c_writeq_flush(cmd, i2c->twsi_base + SW_TWSI(i2c)); in octeon_i2c_hlc_read() 427 cmd = __raw_readq(i2c->twsi_base + SW_TWSI(i2c)); in octeon_i2c_hlc_read() 428 if ((cmd & SW_TWSI_R) == 0) in octeon_i2c_hlc_read() 432 msgs[0].buf[j] = (cmd >> (8 * i)) & 0xff; in octeon_i2c_hlc_read() [all …]
|
D | i2c-pmcmsp.c | 431 static inline u32 pmcmsptwi_cmd_to_reg(const struct pmcmsptwi_cmd *cmd) in pmcmsptwi_cmd_to_reg() argument 433 return ((cmd->type & 0x3) << 8) | in pmcmsptwi_cmd_to_reg() 434 (((cmd->write_len - 1) & 0x7) << 4) | in pmcmsptwi_cmd_to_reg() 435 ((cmd->read_len - 1) & 0x7); in pmcmsptwi_cmd_to_reg() 442 struct pmcmsptwi_cmd *cmd, in pmcmsptwi_xfer_cmd() argument 449 "Setting address to 0x%04x\n", cmd->addr); in pmcmsptwi_xfer_cmd() 450 pmcmsptwi_writel(cmd->addr, data->iobase + MSP_TWI_ADD_REG_OFFSET); in pmcmsptwi_xfer_cmd() 452 if (cmd->type == MSP_TWI_CMD_WRITE || in pmcmsptwi_xfer_cmd() 453 cmd->type == MSP_TWI_CMD_WRITE_READ) { in pmcmsptwi_xfer_cmd() 454 u64 tmp = be64_to_cpup((__be64 *)cmd->write_data); in pmcmsptwi_xfer_cmd() [all …]
|
/linux-4.19.296/drivers/isdn/isdnloop/ |
D | isdnloop.c | 59 isdn_ctrl cmd; in isdnloop_bchan_send() local 67 cmd.driver = card->myid; in isdnloop_bchan_send() 68 cmd.arg = ch; in isdnloop_bchan_send() 76 cmd.command = ISDN_STAT_BSENT; in isdnloop_bchan_send() 77 cmd.parm.length = len; in isdnloop_bchan_send() 78 card->interface.statcallb(&cmd); in isdnloop_bchan_send() 122 isdnloop_parse_setup(char *setup, isdn_ctrl *cmd) in isdnloop_parse_setup() argument 128 strlcpy(cmd->parm.setup.phone, t, sizeof(cmd->parm.setup.phone)); in isdnloop_parse_setup() 132 cmd->parm.setup.si1 = 0; in isdnloop_parse_setup() 134 cmd->parm.setup.si1 = simple_strtoul(t, NULL, 10); in isdnloop_parse_setup() [all …]
|
/linux-4.19.296/drivers/fsi/ |
D | fsi-master-gpio.c | 129 const struct fsi_gpio_msg *cmd) in serial_out() argument 132 uint64_t msg = ~cmd->msg; /* Data is active low */ in serial_out() 133 uint64_t sda_mask = 0x1ULL << (cmd->bits - 1); in serial_out() 137 trace_fsi_master_gpio_out(master, cmd->bits, cmd->msg); in serial_out() 139 if (!cmd->bits) { in serial_out() 150 for (bit = 0; bit < cmd->bits; bit++) { in serial_out() 151 next_bit = (msg & sda_mask) >> (cmd->bits - 1); in serial_out() 234 struct fsi_gpio_msg *cmd, uint8_t id, in build_ar_command() argument 242 cmd->bits = 0; in build_ar_command() 243 cmd->msg = 0; in build_ar_command() [all …]
|