/openbmc/linux/drivers/usb/storage/ |
H A D | transport.c | 67 * sets the machine state and the ABORTING bit in us->dflags to prevent 69 * below, which atomically tests-and-clears the URB_ACTIVE bit in us->dflags 74 * When a disconnect occurs, the DISCONNECTING bit in us->dflags is set to 98 * This is the completion handler which will wake us up when an URB 115 static int usb_stor_msg_common(struct us_data *us, int timeout) in usb_stor_msg_common() argument 122 if (test_bit(US_FLIDX_ABORTING, &us->dflags)) in usb_stor_msg_common() 129 us->current_urb->context = &urb_done; in usb_stor_msg_common() 130 us->current_urb->transfer_flags = 0; in usb_stor_msg_common() 133 * we assume that if transfer_buffer isn't us->iobuf then it in usb_stor_msg_common() 135 * easier than always having the caller tell us whether the in usb_stor_msg_common() [all …]
|
H A D | realtek_cr.c | 42 MODULE_PARM_DESC(auto_delink_en, "auto delink mode (0=firmware, 1=software [default])"); 100 struct us_data *us; member 115 #define FLIDX_AUTO_DELINK 0x01 131 #define VENDOR_ID(chip) ((chip)->status[0].vid) 132 #define PRODUCT_ID(chip) ((chip)->status[0].pid) 133 #define FW_VERSION(chip) ((chip)->status[0].fw_ver) 136 #define STATUS_SUCCESS 0 141 CHK_BIT((chip)->status[0].function[0], 1) 143 CHK_BIT((chip)->status[0].function[0], 2) 145 CHK_BIT((chip)->status[0].function[0], 3) [all …]
|
H A D | alauda.c | 44 #define ALAUDA_STATUS_ERROR 0x01 45 #define ALAUDA_STATUS_READY 0x40 50 #define ALAUDA_GET_XD_MEDIA_STATUS 0x08 51 #define ALAUDA_GET_SM_MEDIA_STATUS 0x98 52 #define ALAUDA_ACK_XD_MEDIA_CHANGE 0x0a 53 #define ALAUDA_ACK_SM_MEDIA_CHANGE 0x9a 54 #define ALAUDA_GET_XD_MEDIA_SIG 0x86 55 #define ALAUDA_GET_SM_MEDIA_SIG 0x96 58 * Bulk command identity (byte 0) 60 #define ALAUDA_BULK_CMD 0x40 [all …]
|
H A D | usb.c | 148 for (i = 0; i < config->desc.bNumInterfaces; i++) { in us_set_lock_class() 171 struct us_data *us = usb_get_intfdata(iface); in usb_stor_suspend() local 174 mutex_lock(&us->dev_mutex); in usb_stor_suspend() 176 if (us->suspend_resume_hook) in usb_stor_suspend() 177 (us->suspend_resume_hook)(us, US_SUSPEND); in usb_stor_suspend() 184 mutex_unlock(&us->dev_mutex); in usb_stor_suspend() 185 return 0; in usb_stor_suspend() 191 struct us_data *us = usb_get_intfdata(iface); in usb_stor_resume() local 193 mutex_lock(&us->dev_mutex); in usb_stor_resume() 195 if (us->suspend_resume_hook) in usb_stor_resume() [all …]
|
H A D | shuttle_usbat.c | 54 #define USBAT_DEV_HP8200 0x01 55 #define USBAT_DEV_FLASH 0x02 57 #define USBAT_EPP_PORT 0x10 58 #define USBAT_EPP_REGISTER 0x30 59 #define USBAT_ATA 0x40 60 #define USBAT_ISA 0x50 63 #define USBAT_CMD_READ_REG 0x00 64 #define USBAT_CMD_WRITE_REG 0x01 65 #define USBAT_CMD_READ_BLOCK 0x02 66 #define USBAT_CMD_WRITE_BLOCK 0x03 [all …]
|
H A D | ene_ub6250.c | 78 #define ENE_BIN_CODE_LEN 0x800 80 #define REG_CARD_STATUS 0xFF83 81 #define REG_HW_TRAP1 0xFF89 84 #define SS_SUCCESS 0x000000 /* No Sense */ 85 #define SS_NOT_READY 0x023A00 /* Medium not present */ 86 #define SS_MEDIUM_ERR 0x031100 /* Unrecovered read error */ 87 #define SS_HW_ERR 0x040800 /* Communication failure */ 88 #define SS_ILLEGAL_REQUEST 0x052000 /* Invalid command */ 89 #define SS_UNIT_ATTENTION 0x062900 /* Reset occurred */ 101 #define FDIR_WRITE 0 [all …]
|
H A D | jumpshot.c | 105 static inline int jumpshot_bulk_read(struct us_data *us, in jumpshot_bulk_read() argument 109 if (len == 0) in jumpshot_bulk_read() 112 usb_stor_dbg(us, "len = %d\n", len); in jumpshot_bulk_read() 113 return usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, in jumpshot_bulk_read() 118 static inline int jumpshot_bulk_write(struct us_data *us, in jumpshot_bulk_write() argument 122 if (len == 0) in jumpshot_bulk_write() 125 usb_stor_dbg(us, "len = %d\n", len); in jumpshot_bulk_write() 126 return usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe, in jumpshot_bulk_write() 131 static int jumpshot_get_status(struct us_data *us) in jumpshot_get_status() argument 135 if (!us) in jumpshot_get_status() [all …]
|
H A D | freecom.c | 35 static void pdump(struct us_data *us, void *ibuffer, int length); 39 #define ERR_STAT 0x01 40 #define DRQ_STAT 0x08 80 #define FCM_INT_STATUS 0x02 /* INDEX_STAT */ 81 #define FCM_STATUS_BUSY 0x80 87 #define FCM_PACKET_ATAPI 0x21 88 #define FCM_PACKET_STATUS 0x20 94 #define FCM_PACKET_INPUT 0x81 97 #define FCM_PACKET_OUTPUT 0x01 103 #define FCM_PACKET_IDE_WRITE 0x40 [all …]
|
H A D | isd200.c | 58 static int isd200_Initialization(struct us_data *us); 106 #define DF_ATA_DEVICE 0x0001 107 #define DF_MEDIA_STATUS_ENABLED 0x0002 108 #define DF_REMOVABLE_MEDIA 0x0004 111 #define CAPABILITY_DMA 0x01 112 #define CAPABILITY_LBA 0x02 115 #define COMMANDSET_REMOVABLE 0x02 116 #define COMMANDSET_MEDIA_STATUS 0x10 119 #define ATA_ADDRESS_DEVHEAD_STD 0xa0 120 #define ATA_ADDRESS_DEVHEAD_LBA_MODE 0x40 [all …]
|
H A D | datafab.c | 70 static int datafab_determine_lun(struct us_data *us, 114 datafab_bulk_read(struct us_data *us, unsigned char *data, unsigned int len) { in datafab_bulk_read() argument 115 if (len == 0) in datafab_bulk_read() 118 usb_stor_dbg(us, "len = %d\n", len); in datafab_bulk_read() 119 return usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, in datafab_bulk_read() 125 datafab_bulk_write(struct us_data *us, unsigned char *data, unsigned int len) { in datafab_bulk_write() argument 126 if (len == 0) in datafab_bulk_write() 129 usb_stor_dbg(us, "len = %d\n", len); in datafab_bulk_write() 130 return usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe, in datafab_bulk_write() 135 static int datafab_read_data(struct us_data *us, in datafab_read_data() argument [all …]
|
H A D | option_ms.c | 19 #define ZCD_FORCE_MODEM 0x01 20 #define ZCD_ALLOW_MS 0x02 29 static int option_rezero(struct us_data *us) in option_rezero() argument 32 0x55, 0x53, 0x42, 0x43, 0x78, 0x56, 0x34, 0x12, in option_rezero() 33 0x01, 0x00, 0x00, 0x00, 0x80, 0x00, 0x06, 0x01, in option_rezero() 34 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, in option_rezero() 35 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 in option_rezero() 40 usb_stor_dbg(us, "Option MS: %s\n", "DEVICE MODE SWITCH"); in option_rezero() 47 result = usb_stor_bulk_transfer_buf(us, in option_rezero() 48 us->send_bulk_pipe, in option_rezero() [all …]
|
H A D | sddr09.c | 52 static int usb_stor_sddr09_dpcm_init(struct us_data *us); 53 static int sddr09_transport(struct scsi_cmnd *srb, struct us_data *us); 54 static int usb_stor_sddr09_init(struct us_data *us); 97 #define LSB_of(s) ((s)&0xFF) 120 #define NAND_MFR_AMD 0x01 121 #define NAND_MFR_NATSEMI 0x8f 122 #define NAND_MFR_TOSHIBA 0x98 123 #define NAND_MFR_SAMSUNG 0xec 144 * 256 MB NAND flash has a 5-byte ID with 2nd byte 0xaa, 0xba, 0xca or 0xda. 149 { 0x6e, 20, 8, 4, 8, 2}, /* 1 MB */ [all …]
|
H A D | karma.c | 31 #define RIO_RECV_LEN 0x200 33 #define RIO_ENTER_STORAGE 0x1 34 #define RIO_LEAVE_STORAGE 0x2 35 #define RIO_RESET 0xC 42 static int rio_karma_init(struct us_data *us); 87 * For each command we send 40 bytes starting 'RIOP\0' followed by 94 static int rio_karma_send_command(char cmd, struct us_data *us) in rio_karma_send_command() argument 99 struct karma_data *data = (struct karma_data *) us->extra; in rio_karma_send_command() 101 usb_stor_dbg(us, "sending command %04x\n", cmd); in rio_karma_send_command() 102 memset(us->iobuf, 0, RIO_SEND_LEN); in rio_karma_send_command() [all …]
|
H A D | sddr55.c | 74 #define LSB_of(s) ((s)&0xFF) 83 } while (0) 104 #define NOT_ALLOCATED 0xffffffff 105 #define BAD_BLOCK 0xffff 106 #define CIS_BLOCK 0x400 107 #define UNUSED_BLOCK 0x3ff 110 sddr55_bulk_transport(struct us_data *us, int direction, in sddr55_bulk_transport() argument 112 struct sddr55_card_info *info = (struct sddr55_card_info *)us->extra; in sddr55_bulk_transport() 114 us->recv_bulk_pipe : us->send_bulk_pipe; in sddr55_bulk_transport() 119 return usb_stor_bulk_transfer_buf(us, pipe, data, len, NULL); in sddr55_bulk_transport() [all …]
|
H A D | scsiglue.c | 53 #define VENDOR_ID_NOKIA 0x0421 54 #define VENDOR_ID_NIKON 0x04b0 55 #define VENDOR_ID_PENTAX 0x0a17 56 #define VENDOR_ID_MOTOROLA 0x22b8 64 struct us_data *us = host_to_us(host); in host_info() local 65 return us->scsi_name; in host_info() 70 struct us_data *us = host_to_us(sdev->host); in slave_alloc() local 86 if (us->protocol == USB_PR_BULK && us->max_lun > 0) in slave_alloc() 89 return 0; in slave_alloc() 94 struct us_data *us = host_to_us(sdev->host); in slave_configure() local [all …]
|
H A D | initializers.c | 34 int usb_stor_euscsi_init(struct us_data *us) in usb_stor_euscsi_init() argument 38 usb_stor_dbg(us, "Attempting to init eUSCSI bridge...\n"); in usb_stor_euscsi_init() 39 result = usb_stor_control_msg(us, us->send_ctrl_pipe, in usb_stor_euscsi_init() 40 0x0C, USB_RECIP_INTERFACE | USB_TYPE_VENDOR, in usb_stor_euscsi_init() 41 0x01, 0x0, NULL, 0x0, 5 * HZ); in usb_stor_euscsi_init() 42 usb_stor_dbg(us, "-- result is %d\n", result); in usb_stor_euscsi_init() 44 return 0; in usb_stor_euscsi_init() 51 int usb_stor_ucr61s2b_init(struct us_data *us) in usb_stor_ucr61s2b_init() argument 53 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap*) us->iobuf; in usb_stor_ucr61s2b_init() 54 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap*) us->iobuf; in usb_stor_ucr61s2b_init() [all …]
|
H A D | sierra_ms.c | 17 #define SWIMS_USB_REQUEST_SetSwocMode 0x0B 18 #define SWIMS_USB_REQUEST_GetSwocInfo 0x0A 19 #define SWIMS_USB_INDEX_SetMode 0x0000 20 #define SWIMS_SET_MODE_Modem 0x0001 22 #define TRU_NORMAL 0x01 23 #define TRU_FORCE_MS 0x02 24 #define TRU_FORCE_MODEM 0x03 41 if ((swocInfo->LinuxSKU >= 0x2100 && swocInfo->LinuxSKU <= 0x2FFF) || in containsFullLinuxPackage() 42 (swocInfo->LinuxSKU >= 0x7100 && swocInfo->LinuxSKU <= 0x7FFF)) in containsFullLinuxPackage() 52 result = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), in sierra_set_ms_mode() [all …]
|
/openbmc/linux/drivers/staging/vc04_services/interface/ |
H A D | TESTING | 59 vchi ping (size 0) -> 57.000000us 60 vchi ping (size 0, 0 async, 0 oneway) -> 122.000000us 61 vchi bulk (size 0, 0 async, 0 oneway) -> 546.000000us 62 vchi bulk (size 0, 0 oneway) -> 230.000000us 63 vchi ping (size 0) -> 49.000000us 64 vchi ping (size 0, 0 async, 0 oneway) -> 70.000000us 65 vchi bulk (size 0, 0 async, 0 oneway) -> 296.000000us 66 vchi bulk (size 0, 0 oneway) -> 266.000000us 67 vchi ping (size 0, 1 async, 0 oneway) -> 65.000000us 68 vchi bulk (size 0, 0 oneway) -> 456.000000us [all …]
|
/openbmc/linux/Documentation/trace/ |
H A D | ftrace.rst | 56 tracefs /sys/kernel/tracing tracefs defaults 0 0 111 ring buffer is enabled. Echo 0 into this file to disable 118 set this file to "0". User space can re-enable tracing by 161 or cleared by writing a "1" or "0" respectively into the 180 Only active when the file contains a number greater than 0. 440 If the option "record-cmd" is set to "0", then comms of tasks 586 if (trace_fd < 0) 937 # irqsoff latency trace v1.1.5 on 3.8.0-test+ 939 # latency: 259 us, #4/4, CPU#2 | (M:preempt VP:0, KP:0, SP:0 HP:0 #P:4) 941 # | task: ps-6143 (uid:0 nice:0 policy:0 rt_prio:0) [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/cpu/ |
H A D | idle-states.yaml | 102 between 0 and infinite time, until a wake-up event occurs. 127 wakeup-delay = exit-latency + max(entry-latency - (now - entry-timestamp), 0) 167 0| 1 time(ms) 172 The graph curve with X-axis values = { x | 0 < x < 1ms } has a steep slope 332 entry-latency-us: 336 exit-latency-us: 339 The exit-latency-us duration may be guaranteed only after 340 entry-latency-us has passed. 342 min-residency-us: 348 wakeup-latency-us: [all …]
|
/openbmc/u-boot/common/ |
H A D | usb_storage.c | 57 0x28, 0x81, 0x14, 0x14, 0x20, 0x01, 0x90, 0x77, 58 0x0C, 0x20, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 59 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 60 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 81 # define USB_READY (1 << 0) 106 #define USB_STOR_TRANSPORT_GOOD 0 110 int usb_stor_get_info(struct usb_device *dev, struct us_data *us, 138 int count = 0; in usb_stor_info() 154 if (usb_max_devs > 0) { in usb_stor_info() 155 for (i = 0; i < usb_max_devs; i++) { in usb_stor_info() [all …]
|
/openbmc/u-boot/drivers/i2c/ |
H A D | aspeed_i2c_global.c | 16 ASPEED_I2C_GLOBAL = 0, 29 * I2CG10[31:24] base clk4 for i2c auto recovery timeout counter (0xC6) 30 * I2CG10[23:16] base clk3 for Standard-mode (100Khz) min tBuf 4.7us 31 * 0x3c : 100.8Khz : 3.225Mhz : 4.96us 32 * 0x3d : 99.2Khz : 3.174Mhz : 5.04us 33 * 0x3e : 97.65Khz : 3.125Mhz : 5.12us 34 * 0x40 : 97.75Khz : 3.03Mhz : 5.28us 35 * 0x41 : 99.5Khz : 2.98Mhz : 5.36us (default) 36 * I2CG10[15:8] base clk2 for Fast-mode (400Khz) min tBuf 1.3us 37 * 0x12 : 400Khz : 10Mhz : 1.6us [all …]
|
/openbmc/linux/Documentation/fb/ |
H A D | viafb.modes | 15 # Sync Width 3.813 us 0.064 ms 17 # Front Porch 0.636 us 0.318 ms 19 # Back Porch 1.907 us 1.048 ms 21 # Active Time 25.422 us 15.253 ms 23 # Blank Time 6.356 us 1.430 ms 40 # Sync Width 2.032 us 0.080 ms 42 # Front Porch 0.508 us 0.027 ms 44 # Back Porch 3.810 us 0.427 ms 46 # Active Time 20.317 us 12.800 ms 48 # Blank Time 6.349 us 0.533 ms [all …]
|
/openbmc/linux/Documentation/tools/rtla/ |
H A D | common_timerlat_options.rst | 1 **-a**, **--auto** *us* 4 while debugging the system. It is equivalent to use **-T** *us* **-s** *us* 8 **-p**, **--period** *us* 12 **-i**, **--irq** *us* 14 Stop trace if the *IRQ* latency is higher than the argument in us. 16 **-T**, **--thread** *us* 18 Stop trace if the *Thread* latency is higher than the argument in us. 20 **-s**, **--stack** *us* 23 argument in us. 25 **--dma-latency** *us* [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/regulator/ |
H A D | maxim,max8952.yaml | 21 enum: [0, 1, 2, 3] 42 enum: [0, 1, 2, 3, 4, 5, 6, 7] 43 default: 0 46 - 0: 32mV/us 47 - 1: 16mV/us 48 - 2: 8mV/us 49 - 3: 4mV/us 50 - 4: 2mV/us 51 - 5: 1mV/us 52 - 6: 0.5mV/us [all …]
|