Lines Matching defs:data

214 static int f81534_set_register(struct usb_serial *serial, u16 reg, u8 data)
226 *tmp = data;
245 dev_err(&interface->dev, "%s: reg: %x data: %x failed: %d\n",
246 __func__, reg, data, status);
253 static int f81534_get_register(struct usb_serial *serial, u16 reg, u8 *data)
289 *data = *tmp;
297 u8 mask, u8 data)
307 tmp |= (mask & data);
313 u16 reg, u8 data)
316 data);
320 u16 reg, u8 *data)
323 data);
327 u8 data)
332 reg + port_priv->phy_num * F81534_UART_OFFSET, data);
336 u8 *data)
341 reg + port_priv->phy_num * F81534_UART_OFFSET, data);
380 u8 *data)
384 status = f81534_get_register(serial, reg, data);
391 static int f81534_set_spi_register(struct usb_serial *serial, u16 reg, u8 data)
395 status = f81534_set_register(serial, reg, data);
484 * index 4~127: serial out data block
507 /* Check is any data in write_fifo */
725 * This function will search the data area with token F81534_CUSTOM_VALID_TOKEN
730 * Due to we only use block0 to save data, so *index should be 0 or
746 /* We'll use the custom data when the data is valid. */
823 * internal data will used. All mode and gpio control should manually set
829 * mass production type. We'll save data in F81534_CUSTOM_ADDRESS_START
872 * We'll read custom data only when data available, otherwise we'll
883 "%s: get custom data failed: %d\n",
1144 u8 *data)
1147 int phy_num = data[0];
1161 * index 2: serial in size (data+lsr, must be even)
1164 * index 4~127: serial in data block (data+lsr, must be even)
1166 switch (data[1]) {
1177 f81534_msr_changed(port, data[3]);
1181 read_size = data[2];
1194 data[1]);
1200 lsr = data[i + 1];
1225 if (usb_serial_handle_sysrq_char(port, data[i]))
1229 tty_insert_flip_char(&port->port, data[i], tty_flag);
1367 * delay all tx data frame with 1bit.
1388 * occur data overrun. So we'll disable the LSR interrupt in probe()
1390 * bit with bulk-in data in f81534_process_per_serial_block().
1507 * port received data, MSR register change and TX_EMPTY information.