/drivers/md/ |
D | dm-log.c | 294 static int rw_header(struct log_c *lc, int op) in rw_header() argument 296 lc->io_req.bi_op = op; in rw_header() 297 lc->io_req.bi_op_flags = 0; in rw_header() 299 return dm_io(&lc->io_req, 1, &lc->header_location, NULL); in rw_header() 302 static int flush_header(struct log_c *lc) in flush_header() argument 305 .bdev = lc->header_location.bdev, in flush_header() 310 lc->io_req.bi_op = REQ_OP_WRITE; in flush_header() 311 lc->io_req.bi_op_flags = REQ_PREFLUSH; in flush_header() 313 return dm_io(&lc->io_req, 1, &null_location, NULL); in flush_header() 369 struct log_c *lc; in create_log_context() local [all …]
|
D | dm-log-writes.c | 137 static inline sector_t bio_to_dev_sectors(struct log_writes_c *lc, in bio_to_dev_sectors() argument 140 return sectors >> (lc->sectorshift - SECTOR_SHIFT); in bio_to_dev_sectors() 143 static inline sector_t dev_to_bio_sectors(struct log_writes_c *lc, in dev_to_bio_sectors() argument 146 return sectors << (lc->sectorshift - SECTOR_SHIFT); in dev_to_bio_sectors() 149 static void put_pending_block(struct log_writes_c *lc) in put_pending_block() argument 151 if (atomic_dec_and_test(&lc->pending_blocks)) { in put_pending_block() 153 if (waitqueue_active(&lc->wait)) in put_pending_block() 154 wake_up(&lc->wait); in put_pending_block() 158 static void put_io_block(struct log_writes_c *lc) in put_io_block() argument 160 if (atomic_dec_and_test(&lc->io_blocks)) { in put_io_block() [all …]
|
D | dm-log-userspace-base.c | 84 static int userspace_do_request(struct log_c *lc, const char *uuid, in userspace_do_request() argument 96 r = dm_consult_userspace(uuid, lc->luid, request_type, data, in userspace_do_request() 107 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_CTR, in userspace_do_request() 108 lc->usr_argv_str, in userspace_do_request() 109 strlen(lc->usr_argv_str) + 1, in userspace_do_request() 115 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_RESUME, NULL, in userspace_do_request() 159 struct log_c *lc = container_of(work, struct log_c, flush_log_work.work); in do_flush() local 161 atomic_set(&lc->sched_flush, 0); in do_flush() 163 r = userspace_do_request(lc, lc->uuid, DM_ULOG_FLUSH, NULL, 0, NULL, NULL); in do_flush() 166 dm_table_event(lc->ti->table); in do_flush() [all …]
|
D | dm-linear.c | 31 struct linear_c *lc; in linear_ctr() local 41 lc = kmalloc(sizeof(*lc), GFP_KERNEL); in linear_ctr() 42 if (lc == NULL) { in linear_ctr() 52 lc->start = tmp; in linear_ctr() 54 ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &lc->dev); in linear_ctr() 65 ti->private = lc; in linear_ctr() 69 kfree(lc); in linear_ctr() 75 struct linear_c *lc = (struct linear_c *) ti->private; in linear_dtr() local 77 dm_put_device(ti, lc->dev); in linear_dtr() 78 kfree(lc); in linear_dtr() [all …]
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | subr.c | 154 struct link_config *lc = &adapter->port[port_id].link_config; in t1_link_changed() local 158 lc->speed = speed < 0 ? SPEED_INVALID : speed; in t1_link_changed() 159 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex; in t1_link_changed() 160 if (!(lc->requested_fc & PAUSE_AUTONEG)) in t1_link_changed() 161 fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t1_link_changed() 163 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) { in t1_link_changed() 168 lc->fc = (unsigned char)fc; in t1_link_changed() 635 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t1_link_start() argument 637 unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t1_link_start() 639 if (lc->supported & SUPPORTED_Autoneg) { in t1_link_start() [all …]
|
D | cxgb2.c | 637 struct link_config *lc = &p->link_config; in set_link_ksettings() local 643 if (!(lc->supported & SUPPORTED_Autoneg)) in set_link_ksettings() 650 if (!(lc->supported & cap) || (speed == SPEED_1000)) in set_link_ksettings() 652 lc->requested_speed = speed; in set_link_ksettings() 653 lc->requested_duplex = cmd->base.duplex; in set_link_ksettings() 654 lc->advertising = 0; in set_link_ksettings() 658 advertising = lc->supported; in set_link_ksettings() 659 advertising &= lc->supported; in set_link_ksettings() 662 lc->requested_speed = SPEED_INVALID; in set_link_ksettings() 663 lc->requested_duplex = DUPLEX_INVALID; in set_link_ksettings() [all …]
|
D | common.h | 339 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
|
/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | t4vf_hw.c | 456 static void init_link_config(struct link_config *lc, in init_link_config() argument 460 lc->pcaps = pcaps; in init_link_config() 461 lc->lpacaps = 0; in init_link_config() 462 lc->speed_caps = 0; in init_link_config() 463 lc->speed = 0; in init_link_config() 464 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; in init_link_config() 469 lc->auto_fec = fwcap_to_cc_fec(acaps); in init_link_config() 470 lc->requested_fec = FEC_AUTO; in init_link_config() 471 lc->fec = lc->auto_fec; in init_link_config() 480 if (lc->pcaps & FW_PORT_CAP32_ANEG) { in init_link_config() [all …]
|
D | t4vf_common.h | 153 static inline bool is_x_10g_port(const struct link_config *lc) in is_x_10g_port() argument 157 speeds = FW_PORT_CAP32_SPEED_V(FW_PORT_CAP32_SPEED_G(lc->pcaps)); in is_x_10g_port()
|
/drivers/usb/serial/ |
D | xr_serial.c | 740 struct usb_cdc_line_coding *lc; in xr_cdc_set_line_coding() local 743 lc = kzalloc(sizeof(*lc), GFP_KERNEL); in xr_cdc_set_line_coding() 744 if (!lc) in xr_cdc_set_line_coding() 748 lc->dwDTERate = cpu_to_le32(tty->termios.c_ospeed); in xr_cdc_set_line_coding() 750 lc->dwDTERate = cpu_to_le32(old_termios->c_ospeed); in xr_cdc_set_line_coding() 752 lc->dwDTERate = cpu_to_le32(9600); in xr_cdc_set_line_coding() 755 lc->bCharFormat = USB_CDC_2_STOP_BITS; in xr_cdc_set_line_coding() 757 lc->bCharFormat = USB_CDC_1_STOP_BITS; in xr_cdc_set_line_coding() 762 lc->bParityType = USB_CDC_MARK_PARITY; in xr_cdc_set_line_coding() 764 lc->bParityType = USB_CDC_SPACE_PARITY; in xr_cdc_set_line_coding() [all …]
|
/drivers/gpio/ |
D | gpiolib-cdev.c | 797 static bool gpio_v2_line_config_debounced(struct gpio_v2_line_config *lc, in gpio_v2_line_config_debounced() argument 803 for (i = 0; i < lc->num_attrs; i++) { in gpio_v2_line_config_debounced() 804 if ((lc->attrs[i].attr.id == GPIO_V2_LINE_ATTR_ID_DEBOUNCE) && in gpio_v2_line_config_debounced() 805 (lc->attrs[i].mask & mask)) in gpio_v2_line_config_debounced() 811 static u32 gpio_v2_line_config_debounce_period(struct gpio_v2_line_config *lc, in gpio_v2_line_config_debounce_period() argument 817 for (i = 0; i < lc->num_attrs; i++) { in gpio_v2_line_config_debounce_period() 818 if ((lc->attrs[i].attr.id == GPIO_V2_LINE_ATTR_ID_DEBOUNCE) && in gpio_v2_line_config_debounce_period() 819 (lc->attrs[i].mask & mask)) in gpio_v2_line_config_debounce_period() 820 return lc->attrs[i].attr.debounce_period_us; in gpio_v2_line_config_debounce_period() 841 struct gpio_v2_line_config *lc, in edge_detector_setup() argument [all …]
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | t3_hw.c | 1246 struct link_config *lc = &pi->link_config; in t3_link_changed() local 1250 if (!lc->link_ok && link_ok) { in t3_link_changed() 1267 if (lc->requested_fc & PAUSE_AUTONEG) in t3_link_changed() 1268 fc &= lc->requested_fc; in t3_link_changed() 1270 fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t3_link_changed() 1272 if (link_ok == lc->link_ok && speed == lc->speed && in t3_link_changed() 1273 duplex == lc->duplex && fc == lc->fc) in t3_link_changed() 1276 if (link_ok != lc->link_ok && adapter->params.rev > 0 && in t3_link_changed() 1283 lc->link_ok = link_ok; in t3_link_changed() 1284 lc->speed = speed < 0 ? SPEED_INVALID : speed; in t3_link_changed() [all …]
|
D | cxgb3_main.c | 1870 struct link_config *lc = &p->link_config; in set_link_ksettings() local 1876 if (!(lc->supported & SUPPORTED_Autoneg)) { in set_link_ksettings() 1884 if (lc->supported & cap) in set_link_ksettings() 1894 if (!(lc->supported & cap) || (speed == SPEED_1000)) in set_link_ksettings() 1896 lc->requested_speed = speed; in set_link_ksettings() 1897 lc->requested_duplex = cmd->base.duplex; in set_link_ksettings() 1898 lc->advertising = 0; in set_link_ksettings() 1901 advertising &= lc->supported; in set_link_ksettings() 1904 lc->requested_speed = SPEED_INVALID; in set_link_ksettings() 1905 lc->requested_duplex = DUPLEX_INVALID; in set_link_ksettings() [all …]
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_ethtool.c | 721 struct link_config *lc = &pi->link_cfg; in set_link_ksettings() local 731 old_lc = *lc; in set_link_ksettings() 732 if (!(lc->pcaps & FW_PORT_CAP32_ANEG) || in set_link_ksettings() 737 if (!(lc->pcaps & fw_caps)) in set_link_ksettings() 740 lc->speed_caps = fw_caps; in set_link_ksettings() 741 lc->acaps = fw_caps; in set_link_ksettings() 745 if (!(lc->pcaps & fw_caps)) in set_link_ksettings() 747 lc->speed_caps = 0; in set_link_ksettings() 748 lc->acaps = fw_caps | FW_PORT_CAP32_ANEG; in set_link_ksettings() 750 lc->autoneg = base->autoneg; in set_link_ksettings() [all …]
|
D | t4_hw.c | 4108 struct link_config *lc) in t4_link_acaps() argument 4114 fw_mdi = (FW_PORT_CAP32_MDI_V(FW_PORT_CAP32_MDI_AUTO) & lc->pcaps); in t4_link_acaps() 4119 fw_fc = cc_to_fwcap_pause(lc->requested_fc); in t4_link_acaps() 4128 if (lc->requested_fec & FEC_AUTO) in t4_link_acaps() 4129 cc_fec = fwcap_to_cc_fec(lc->def_acaps); in t4_link_acaps() 4131 cc_fec = lc->requested_fec; in t4_link_acaps() 4138 if (!(lc->pcaps & FW_PORT_CAP32_ANEG)) { in t4_link_acaps() 4139 acaps = lc->acaps | fw_fc | fw_fec; in t4_link_acaps() 4140 lc->fc = lc->requested_fc & ~PAUSE_AUTONEG; in t4_link_acaps() 4141 lc->fec = cc_fec; in t4_link_acaps() [all …]
|
D | cxgb4.h | 1798 struct link_config *lc); 1800 unsigned int port, struct link_config *lc, 1804 unsigned int port, struct link_config *lc) in t4_link_l1cfg() argument 1806 return t4_link_l1cfg_core(adapter, mbox, port, lc, in t4_link_l1cfg() 1811 unsigned int port, struct link_config *lc) in t4_link_l1cfg_ns() argument 1813 return t4_link_l1cfg_core(adapter, mbox, port, lc, in t4_link_l1cfg_ns()
|
/drivers/scsi/csiostor/ |
D | csio_hw.c | 1688 static void csio_init_link_config(struct link_config *lc, fw_port_cap32_t pcaps, in csio_init_link_config() argument 1691 lc->pcaps = pcaps; in csio_init_link_config() 1692 lc->def_acaps = acaps; in csio_init_link_config() 1693 lc->lpacaps = 0; in csio_init_link_config() 1694 lc->speed_caps = 0; in csio_init_link_config() 1695 lc->speed = 0; in csio_init_link_config() 1696 lc->requested_fc = PAUSE_RX | PAUSE_TX; in csio_init_link_config() 1697 lc->fc = lc->requested_fc; in csio_init_link_config() 1703 lc->requested_fec = FEC_AUTO; in csio_init_link_config() 1704 lc->fec = fwcap_to_cc_fec(lc->def_acaps); in csio_init_link_config() [all …]
|
/drivers/video/fbdev/matrox/ |
D | matroxfb_misc.c | 193 unsigned int vd, vs, ve, vt, lc; in matroxfb_vgaHWinit() local 272 lc = vd; in matroxfb_vgaHWinit() 300 ((lc & 0x400) >> 3); in matroxfb_vgaHWinit() 315 ((lc & 0x100) >> 4) | in matroxfb_vgaHWinit() 321 ((lc & 0x200) >> 3); in matroxfb_vgaHWinit() 334 hw->CRTC[24] = lc; in matroxfb_vgaHWinit()
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_fcoe.c | 553 u32 i, lc; in qed_fcoe_setup() local 566 lc = 0; in qed_fcoe_setup() 567 SET_FIELD(lc, TIMERS_CONTEXT_VALIDLC0, 1); in qed_fcoe_setup() 568 p_task_ctx->timer_context.logical_client_0 = cpu_to_le32(lc); in qed_fcoe_setup() 570 lc = 0; in qed_fcoe_setup() 571 SET_FIELD(lc, TIMERS_CONTEXT_VALIDLC1, 1); in qed_fcoe_setup() 572 p_task_ctx->timer_context.logical_client_1 = cpu_to_le32(lc); in qed_fcoe_setup()
|
/drivers/thunderbolt/ |
D | Makefile | 4 thunderbolt-objs += domain.o dma_port.o icm.o property.o xdomain.o lc.o tmu.o usb4.o
|
/drivers/staging/media/atomisp/pci/hive_isp_css_common/ |
D | dma_global.h | 77 #define DMA_PACK_LEFT_CROPPING(lc) DMA_PACK(lc, LEFT_CROPPING) argument
|
/drivers/s390/char/ |
D | tape_3590.h | 78 unsigned int lc:3; member
|
/drivers/net/ethernet/hisilicon/hns/ |
D | hns_ethtool.c | 485 int i, j, lc, good_cnt, ret_val = 0; in __lb_run_test() local 502 lc = 1; in __lb_run_test() 503 for (j = 0; j < lc; j++) { in __lb_run_test()
|
/drivers/net/ethernet/intel/e1000/ |
D | e1000_ethtool.c | 1382 int i, j, k, l, lc, good_cnt, ret_val = 0; in e1000_run_loopback_test() local 1393 lc = ((txdr->count / 64) * 2) + 1; in e1000_run_loopback_test() 1395 lc = ((rxdr->count / 64) * 2) + 1; in e1000_run_loopback_test() 1398 for (j = 0; j <= lc; j++) { /* loop count loop */ in e1000_run_loopback_test()
|
/drivers/gpu/drm/bridge/ |
D | tc358767.c | 1538 bool lc = val & INT_GPIO_LC(tc->hpd_pin); in tc_irq_handler() local 1541 h ? "H" : "", lc ? "LC" : ""); in tc_irq_handler() 1543 if (h || lc) in tc_irq_handler()
|