Home
last modified time | relevance | path

Searched refs:command (Results 1 – 25 of 529) sorted by relevance

12345678910>>...22

/drivers/scsi/pcmcia/
Dnsp_debug.c88 static void print_commandk (unsigned char *command) in print_commandk() argument
92 print_opcodek(command[0]); in print_commandk()
94 if ((command[0] >> 5) == 6 || in print_commandk()
95 (command[0] >> 5) == 7 ) { in print_commandk()
98 s = COMMAND_SIZE(command[0]); in print_commandk()
101 printk("%02x ", command[i]); in print_commandk()
107 (((unsigned int)command[1] & 0x0f) << 16) | in print_commandk()
108 ( (unsigned int)command[2] << 8) | in print_commandk()
109 ( (unsigned int)command[3] ), in print_commandk()
110 (unsigned int)command[4] in print_commandk()
[all …]
/drivers/scsi/
Dnsp32_debug.c86 static void print_commandk (unsigned char *command) in print_commandk() argument
90 print_opcodek(command[0]); in print_commandk()
92 if ((command[0] >> 5) == 6 || in print_commandk()
93 (command[0] >> 5) == 7 ) { in print_commandk()
96 s = COMMAND_SIZE(command[0]); in print_commandk()
100 printk("%02x ", command[i]); in print_commandk()
106 (((unsigned int)command[1] & 0x0f) << 16) | in print_commandk()
107 ( (unsigned int)command[2] << 8) | in print_commandk()
108 ( (unsigned int)command[3] ), in print_commandk()
109 (unsigned int)command[4] in print_commandk()
[all …]
/drivers/usb/storage/
Dshuttle_usbat.c218 unsigned char *command = us->iobuf; in usbat_set_shuttle_features() local
220 command[0] = 0x40; in usbat_set_shuttle_features()
221 command[1] = USBAT_CMD_SET_FEAT; in usbat_set_shuttle_features()
227 command[2] = epp_control; in usbat_set_shuttle_features()
235 command[3] = external_trigger; in usbat_set_shuttle_features()
242 command[4] = test_pattern; in usbat_set_shuttle_features()
248 command[5] = mask_byte; in usbat_set_shuttle_features()
256 command[6] = subcountL; in usbat_set_shuttle_features()
257 command[7] = subcountH; in usbat_set_shuttle_features()
259 return usbat_execute_command(us, command, 8); in usbat_set_shuttle_features()
[all …]
Dsddr09.c283 unsigned char *command, in sddr09_send_scsi_command() argument
285 return sddr09_send_command(us, 0, USB_DIR_OUT, command, command_len); in sddr09_send_scsi_command()
295 unsigned char *command = us->iobuf;
298 memset(command, 0, 6);
299 command[1] = LUNBITS;
301 result = sddr09_send_scsi_command(us, command, 6);
316 unsigned char *command = us->iobuf; in sddr09_request_sense() local
319 memset(command, 0, 12); in sddr09_request_sense()
320 command[0] = 0x03; in sddr09_request_sense()
321 command[1] = LUNBITS; in sddr09_request_sense()
[all …]
Ddatafab.c94 unsigned char *command = us->iobuf; in datafab_read_data() local
134 command[0] = 0; in datafab_read_data()
135 command[1] = thistime; in datafab_read_data()
136 command[2] = sector & 0xFF; in datafab_read_data()
137 command[3] = (sector >> 8) & 0xFF; in datafab_read_data()
138 command[4] = (sector >> 16) & 0xFF; in datafab_read_data()
140 command[5] = 0xE0 + (info->lun << 4); in datafab_read_data()
141 command[5] |= (sector >> 24) & 0x0F; in datafab_read_data()
142 command[6] = 0x20; in datafab_read_data()
143 command[7] = 0x01; in datafab_read_data()
[all …]
Dsddr55.c95 unsigned char *command = us->iobuf; in sddr55_status() local
100 memset(command, 0, 8); in sddr55_status()
101 command[5] = 0xB0; in sddr55_status()
102 command[7] = 0x80; in sddr55_status()
104 DMA_TO_DEVICE, command, 8); in sddr55_status()
159 unsigned char *command = us->iobuf; in sddr55_read_data() local
208 command[0] = 0; in sddr55_read_data()
209 command[1] = LSB_of(address>>16); in sddr55_read_data()
210 command[2] = LSB_of(address>>8); in sddr55_read_data()
211 command[3] = LSB_of(address); in sddr55_read_data()
[all …]
Djumpshot.c115 unsigned char *command = us->iobuf; in jumpshot_read_data() local
148 command[0] = 0; in jumpshot_read_data()
149 command[1] = thistime; in jumpshot_read_data()
150 command[2] = sector & 0xFF; in jumpshot_read_data()
151 command[3] = (sector >> 8) & 0xFF; in jumpshot_read_data()
152 command[4] = (sector >> 16) & 0xFF; in jumpshot_read_data()
154 command[5] = 0xE0 | ((sector >> 24) & 0x0F); in jumpshot_read_data()
155 command[6] = 0x20; in jumpshot_read_data()
159 0, 0x20, 0, 1, command, 7); in jumpshot_read_data()
192 unsigned char *command = us->iobuf; in jumpshot_write_data() local
[all …]
Dalauda.c202 unsigned char command; in alauda_get_media_status() local
205 command = ALAUDA_GET_XD_MEDIA_STATUS; in alauda_get_media_status()
207 command = ALAUDA_GET_SM_MEDIA_STATUS; in alauda_get_media_status()
210 command, 0xc0, 0, 1, data, 2); in alauda_get_media_status()
224 unsigned char command; in alauda_ack_media() local
227 command = ALAUDA_ACK_XD_MEDIA_CHANGE; in alauda_ack_media()
229 command = ALAUDA_ACK_SM_MEDIA_CHANGE; in alauda_ack_media()
232 command, 0x40, 0, 1, NULL, 0); in alauda_ack_media()
241 unsigned char command; in alauda_get_media_signature() local
244 command = ALAUDA_GET_XD_MEDIA_SIG; in alauda_get_media_signature()
[all …]
/drivers/mtd/devices/
Dmtd_dataflash.c87 uint8_t command[4]; member
155 uint8_t *command; in dataflash_erase() local
174 x.tx_buf = command = priv->command; in dataflash_erase()
191 command[0] = do_block ? OP_ERASE_BLOCK : OP_ERASE_PAGE; in dataflash_erase()
192 command[1] = (uint8_t)(pageaddr >> 16); in dataflash_erase()
193 command[2] = (uint8_t)(pageaddr >> 8); in dataflash_erase()
194 command[3] = 0; in dataflash_erase()
198 command[0], command[1], command[2], command[3], in dataflash_erase()
244 uint8_t *command; in dataflash_read() local
262 command = priv->command; in dataflash_read()
[all …]
Dm25p80.c82 u8 command[CMD_SIZE + FAST_READ_DUMMY_BYTE]; member
124 flash->command[0] = OPCODE_WRSR; in write_sr()
125 flash->command[1] = val; in write_sr()
127 return spi_write(flash->spi, flash->command, 2); in write_sr()
185 flash->command[0] = OPCODE_CHIP_ERASE; in erase_chip()
187 spi_write(flash->spi, flash->command, 1); in erase_chip()
212 flash->command[0] = flash->erase_opcode; in erase_sector()
213 flash->command[1] = offset >> 16; in erase_sector()
214 flash->command[2] = offset >> 8; in erase_sector()
215 flash->command[3] = offset; in erase_sector()
[all …]
/drivers/misc/ibmasm/
Ddot_command.c70 struct command *command; in ibmasm_send_driver_vpd() local
76 command = ibmasm_new_command(sp, INIT_BUFFER_SIZE); in ibmasm_send_driver_vpd()
77 if (command == NULL) in ibmasm_send_driver_vpd()
80 header = (struct dot_command_header *)command->buffer; in ibmasm_send_driver_vpd()
87 vpd_command = command->buffer + sizeof(struct dot_command_header); in ibmasm_send_driver_vpd()
99 ibmasm_exec_command(sp, command); in ibmasm_send_driver_vpd()
100 ibmasm_wait_for_response(command, IBMASM_CMD_TIMEOUT_NORMAL); in ibmasm_send_driver_vpd()
102 if (command->status != IBMASM_CMD_COMPLETE) in ibmasm_send_driver_vpd()
105 command_put(command); in ibmasm_send_driver_vpd()
112 unsigned char command[3]; member
[all …]
Dcommand.c32 struct command *ibmasm_new_command(struct service_processor *sp, size_t buffer_size) in ibmasm_new_command()
34 struct command *cmd; in ibmasm_new_command()
39 cmd = kzalloc(sizeof(struct command), GFP_KERNEL); in ibmasm_new_command()
66 struct command *cmd = to_command(kref); in ibmasm_free_command()
75 static void enqueue_command(struct service_processor *sp, struct command *cmd) in enqueue_command()
80 static struct command *dequeue_command(struct service_processor *sp) in dequeue_command()
82 struct command *cmd; in dequeue_command()
90 cmd = list_entry(next, struct command, queue_node); in dequeue_command()
117 void ibmasm_exec_command(struct service_processor *sp, struct command *cmd) in ibmasm_exec_command()
160 void ibmasm_wait_for_response(struct command *cmd, int timeout) in ibmasm_wait_for_response()
[all …]
Dibmasm.h90 struct command { struct
99 #define to_command(c) container_of(c, struct command, kref) argument
102 static inline void command_put(struct command *cmd) in command_put()
112 static inline void command_get(struct command *cmd) in command_get()
155 struct command *current_command;
156 struct command *heartbeat;
168 struct command *ibmasm_new_command(struct service_processor *sp, size_t buffer_size);
169 void ibmasm_exec_command(struct service_processor *sp, struct command *cmd);
170 void ibmasm_wait_for_response(struct command *cmd, int timeout);
/drivers/usb/misc/
Dftdi-elan.c153 struct u132_command command[COMMAND_SIZE]; member
373 struct u132_command *command = &ftdi->command[ in ftdi_elan_flush_targets() local
375 command->header = 0x80 | (ed_number << 5) | 0x4; in ftdi_elan_flush_targets()
376 command->length = 0x00; in ftdi_elan_flush_targets()
377 command->address = 0x00; in ftdi_elan_flush_targets()
378 command->width = 0x00; in ftdi_elan_flush_targets()
379 command->follows = 0; in ftdi_elan_flush_targets()
380 command->value = 0; in ftdi_elan_flush_targets()
381 command->buffer = &command->value; in ftdi_elan_flush_targets()
395 struct u132_command *command = &ftdi->command[ in ftdi_elan_flush_targets() local
[all …]
/drivers/s390/scsi/
Dzfcp_cfdc.c47 u32 command; member
93 static int zfcp_cfdc_set_fsf(struct zfcp_fsf_cfdc *fsf_cfdc, int command) in zfcp_cfdc_set_fsf() argument
95 switch (command) { in zfcp_cfdc_set_fsf()
97 fsf_cfdc->command = FSF_QTCB_DOWNLOAD_CONTROL_FILE; in zfcp_cfdc_set_fsf()
101 fsf_cfdc->command = FSF_QTCB_DOWNLOAD_CONTROL_FILE; in zfcp_cfdc_set_fsf()
105 fsf_cfdc->command = FSF_QTCB_DOWNLOAD_CONTROL_FILE; in zfcp_cfdc_set_fsf()
109 fsf_cfdc->command = FSF_QTCB_DOWNLOAD_CONTROL_FILE; in zfcp_cfdc_set_fsf()
113 fsf_cfdc->command = FSF_QTCB_UPLOAD_CONTROL_FILE; in zfcp_cfdc_set_fsf()
123 static int zfcp_cfdc_sg_setup(int command, struct scatterlist *sg, in zfcp_cfdc_sg_setup() argument
133 if (command & ZFCP_CFDC_WITH_CONTROL_FILE && in zfcp_cfdc_sg_setup()
[all …]
/drivers/i2c/busses/
Di2c-stub.c48 char read_write, u8 command, int size, union i2c_smbus_data * data) in stub_xfer() argument
73 chip->pointer = command; in stub_xfer()
76 addr, command); in stub_xfer()
89 chip->words[command] &= 0xff00; in stub_xfer()
90 chip->words[command] |= data->byte; in stub_xfer()
93 addr, data->byte, command); in stub_xfer()
95 data->byte = chip->words[command] & 0xff; in stub_xfer()
98 addr, data->byte, command); in stub_xfer()
100 chip->pointer = command + 1; in stub_xfer()
107 chip->words[command] = data->word; in stub_xfer()
[all …]
Di2c-nforce2-s4985.c51 u8 command, int size, in nforce2_access_virt0() argument
63 command, size, data); in nforce2_access_virt0()
77 u8 command, int size, in nforce2_access_channel() argument
101 command, size, data); in nforce2_access_channel()
110 u8 command, int size, in nforce2_access_virt1() argument
114 return nforce2_access_channel(adap, addr, flags, read_write, command, in nforce2_access_virt1()
120 u8 command, int size, in nforce2_access_virt2() argument
124 return nforce2_access_channel(adap, addr, flags, read_write, command, in nforce2_access_virt2()
130 u8 command, int size, in nforce2_access_virt3() argument
134 return nforce2_access_channel(adap, addr, flags, read_write, command, in nforce2_access_virt3()
[all …]
Di2c-amd756-s4882.c53 u8 command, int size, in amd756_access_virt0() argument
66 command, size, data); in amd756_access_virt0()
81 u8 command, int size, in amd756_access_channel() argument
106 command, size, data); in amd756_access_channel()
115 u8 command, int size, in amd756_access_virt1() argument
119 return amd756_access_channel(adap, addr, flags, read_write, command, in amd756_access_virt1()
125 u8 command, int size, in amd756_access_virt2() argument
129 return amd756_access_channel(adap, addr, flags, read_write, command, in amd756_access_virt2()
135 u8 command, int size, in amd756_access_virt3() argument
139 return amd756_access_channel(adap, addr, flags, read_write, command, in amd756_access_virt3()
[all …]
/drivers/media/video/
Dmxb.c321 mxb->saa7111a->driver->command(mxb->saa7111a, VIDIOC_S_STD, &std); in mxb_init_done()
327 mxb->saa7111a->driver->command(mxb->saa7111a, VIDIOC_INT_S_VIDEO_ROUTING, &route); in mxb_init_done()
333 mxb->tuner->driver->command(mxb->tuner, TUNER_SET_TYPE_ADDR, &tun_setup); in mxb_init_done()
338 mxb->tuner->driver->command(mxb->tuner, VIDIOC_S_FREQUENCY, in mxb_init_done()
342 mxb->tuner->driver->command(mxb->tuner, VIDIOC_S_STD, &std); in mxb_init_done()
345 mxb->tea6420_1->driver->command(mxb->tea6420_1, TEA6420_SWITCH, &TEA6420_line[6][0]); in mxb_init_done()
346 mxb->tea6420_2->driver->command(mxb->tea6420_2, TEA6420_SWITCH, &TEA6420_line[6][1]); in mxb_init_done()
347 mxb->tea6420_1->driver->command(mxb->tea6420_1, TEA6420_SWITCH, &TEA6420_cd[6][0]); in mxb_init_done()
348 mxb->tea6420_2->driver->command(mxb->tea6420_2, TEA6420_SWITCH, &TEA6420_cd[6][1]); in mxb_init_done()
353 mxb->tea6415c->driver->command(mxb->tea6415c, TEA6415C_SWITCH, &vm); in mxb_init_done()
[all …]
/drivers/net/appletalk/
Dltpc.h19 unsigned char command; member
24 unsigned char command; member
31 unsigned char command; member
37 unsigned char command; member
42 unsigned char command; member
48 unsigned char command; member
56 unsigned char command; member
/drivers/net/ixgbe/
Dixgbe_phy.c165 u32 command; in ixgbe_read_phy_reg_generic() local
181 command = ((reg_addr << IXGBE_MSCA_NP_ADDR_SHIFT) | in ixgbe_read_phy_reg_generic()
186 IXGBE_WRITE_REG(hw, IXGBE_MSCA, command); in ixgbe_read_phy_reg_generic()
196 command = IXGBE_READ_REG(hw, IXGBE_MSCA); in ixgbe_read_phy_reg_generic()
198 if ((command & IXGBE_MSCA_MDI_COMMAND) == 0) in ixgbe_read_phy_reg_generic()
202 if ((command & IXGBE_MSCA_MDI_COMMAND) != 0) { in ixgbe_read_phy_reg_generic()
212 command = ((reg_addr << IXGBE_MSCA_NP_ADDR_SHIFT) | in ixgbe_read_phy_reg_generic()
217 IXGBE_WRITE_REG(hw, IXGBE_MSCA, command); in ixgbe_read_phy_reg_generic()
227 command = IXGBE_READ_REG(hw, IXGBE_MSCA); in ixgbe_read_phy_reg_generic()
229 if ((command & IXGBE_MSCA_MDI_COMMAND) == 0) in ixgbe_read_phy_reg_generic()
[all …]
/drivers/media/dvb/bt8xx/
Ddst_ca.c71 static void put_command_and_length(u8 *data, int command, int length) in put_command_and_length() argument
73 data[0] = (command >> 16) & 0xff; in put_command_and_length()
74 data[1] = (command >> 8) & 0xff; in put_command_and_length()
75 data[2] = command & 0xff; in put_command_and_length()
154 static u8 command[8] = {0x07, 0x40, 0x01, 0x00, 0x01, 0x00, 0x00, 0xff}; in ca_get_app_info() local
156 put_checksum(&command[0], command[0]); in ca_get_app_info()
157 if ((dst_put_ci(state, command, sizeof(command), state->messages, GET_REPLY)) < 0) { in ca_get_app_info()
315 u32 command = 0; in ca_get_message() local
324 command = command | p_ca_message->msg[i]; in ca_get_message()
326 command = command << 8; in ca_get_message()
[all …]
/drivers/input/serio/
Dlibps2.c109 static int ps2_adjust_timeout(struct ps2dev *ps2dev, int command, int timeout) in ps2_adjust_timeout() argument
111 switch (command) { in ps2_adjust_timeout()
164 int ps2_command(struct ps2dev *ps2dev, unsigned char *param, int command) in ps2_command() argument
167 int send = (command >> 12) & 0xf; in ps2_command()
168 int receive = (command >> 8) & 0xf; in ps2_command()
185 ps2dev->flags = command == PS2_CMD_GETID ? PS2_FLAG_WAITID : 0; in ps2_command()
197 if (ps2_sendbyte(ps2dev, command & 0xff, in ps2_command()
198 command == PS2_CMD_RESET_BAT ? 1000 : 200)) in ps2_command()
208 timeout = msecs_to_jiffies(command == PS2_CMD_RESET_BAT ? 4000 : 500); in ps2_command()
215 timeout = ps2_adjust_timeout(ps2dev, command, timeout); in ps2_command()
[all …]
/drivers/net/
Dlp486e.c217 unsigned short command; member
292 u16 command; /* 2 */ member
394 while (lp->scb.command) { in i596_timeout()
398 lp->scb.status, lp->scb.command); in i596_timeout()
569 lp->scb.command = 0; in i596_scp_setup()
626 lp->scb.command = 0; in init_i596()
629 lp->set_conf.command = CmdConfigure; in init_i596()
633 lp->set_add.command = CmdIASetup; in init_i596()
636 lp->tdr.command = CmdTDR; in init_i596()
639 if (lp->scb.command && i596_timeout(dev, "i82596 init", 200)) in init_i596()
[all …]
/drivers/usb/host/
Dehci-hcd.c159 temp = ehci_readl(ehci, &ehci->regs->command); in ehci_halt()
161 ehci_writel(ehci, temp, &ehci->regs->command); in ehci_halt()
204 u32 command = ehci_readl(ehci, &ehci->regs->command); in ehci_reset() local
206 command |= CMD_RESET; in ehci_reset()
207 dbg_cmd (ehci, "reset", command); in ehci_reset()
208 ehci_writel(ehci, command, &ehci->regs->command); in ehci_reset()
211 retval = handshake (ehci, &ehci->regs->command, in ehci_reset()
234 temp = ehci_readl(ehci, &ehci->regs->command) << 10; in ehci_quiesce()
241 temp = ehci_readl(ehci, &ehci->regs->command); in ehci_quiesce()
243 ehci_writel(ehci, temp, &ehci->regs->command); in ehci_quiesce()
[all …]

12345678910>>...22