| /drivers/md/ |
| A D | dm-log.c | 405 lc = kmalloc(sizeof(*lc), GFP_KERNEL); in create_log_context() 479 lc->io_req.mem.ptr.vma = lc->disk_header; in create_log_context() 574 dm_put_device(lc->ti, lc->log_dev); in disk_dtr() 616 log_set_bit(lc, lc->clean_bits, i); in disk_resume() 620 log_clear_bit(lc, lc->clean_bits, i); in disk_resume() 624 log_clear_bit(lc, lc->clean_bits, i); in disk_resume() 633 lc->header.nr_regions = lc->region_count; in disk_resume() 707 log_clear_bit(lc, lc->clean_bits, i); in disk_flush() 740 log_set_bit(lc, lc->clean_bits, region); in core_clear_region() 747 if (lc->sync_search >= lc->region_count) in core_get_resync_work() [all …]
|
| A D | dm-log-userspace-base.c | 208 lc = kzalloc(sizeof(*lc), GFP_KERNEL); in userspace_ctr() 209 if (!lc) { in userspace_ctr() 215 lc->luid = (unsigned long)lc; in userspace_ctr() 221 kfree(lc); in userspace_ctr() 227 strscpy(lc->uuid, argv[0], sizeof(lc->uuid)); in userspace_ctr() 343 dm_put_device(lc->ti, lc->log_dev); in userspace_dtr() 348 kfree(lc); in userspace_dtr() 471 r = userspace_do_request(lc, lc->uuid, fe->type, in flush_one_by_one() 520 r = userspace_do_request(lc, lc->uuid, type, in flush_by_group() 717 if (lc->in_sync_hint >= lc->region_count) in userspace_get_resync_work() [all …]
|
| A D | dm-log-writes.c | 452 lc->next_sector += dev_to_bio_sectors(lc, 1); in log_writes_kthread() 459 lc->end_sector = logdev_last_sector(lc); in log_writes_kthread() 461 lc->next_sector >= lc->end_sector) { in log_writes_kthread() 522 if (!lc) { in log_writes_ctr() 551 lc->sectorshift = ilog2(lc->sectorsize); in log_writes_ctr() 566 lc->next_sector = lc->sectorsize >> SECTOR_SHIFT; in log_writes_ctr() 568 lc->end_sector = logdev_last_sector(lc); in log_writes_ctr() 580 kfree(lc); in log_writes_ctr() 625 wait_event(lc->wait, !atomic_read(&lc->io_blocks) && in log_writes_dtr() 633 kfree(lc); in log_writes_dtr() [all …]
|
| A D | dm-linear.c | 32 struct linear_c *lc; in linear_ctr() local 42 lc = kmalloc(sizeof(*lc), GFP_KERNEL); in linear_ctr() 43 if (lc == NULL) { in linear_ctr() 53 lc->start = tmp; in linear_ctr() 66 ti->private = lc; in linear_ctr() 70 kfree(lc); in linear_ctr() 79 kfree(lc); in linear_dtr() 111 DMEMIT("%s %llu", lc->dev->name, (unsigned long long)lc->start); in linear_status() 145 return dm_report_zones(lc->dev->bdev, lc->start, in linear_report_zones() 158 return fn(ti, lc->dev, lc->start, ti->len, data); in linear_iterate_devices() [all …]
|
| /drivers/net/ethernet/chelsio/cxgb/ |
| A D | subr.c | 159 lc->fc = (unsigned char)fc; in t1_link_changed() 645 lc->speed = lc->requested_speed; in t1_link_start() 646 lc->duplex = lc->requested_duplex; in t1_link_start() 649 lc->duplex, fc); in t1_link_start() 652 phy->ops->set_speed_duplex(phy, lc->speed, lc->duplex); in t1_link_start() 1050 lc->supported = bi->caps; in init_link_config() 1051 lc->requested_speed = lc->speed = SPEED_INVALID; in init_link_config() 1052 lc->requested_duplex = lc->duplex = DUPLEX_INVALID; in init_link_config() 1053 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; in init_link_config() 1055 lc->advertising = lc->supported; in init_link_config() [all …]
|
| A D | cxgb2.c | 652 lc->requested_speed = speed; 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() 666 lc->autoneg = cmd->base.autoneg; in set_link_ksettings() 691 lc->requested_fc = 0; in set_pauseparam() 693 lc->requested_fc = PAUSE_AUTONEG; in set_pauseparam() 698 lc->requested_fc |= PAUSE_RX; in set_pauseparam() 700 lc->requested_fc |= PAUSE_TX; in set_pauseparam() 705 lc->fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in set_pauseparam() [all …]
|
| /drivers/accessibility/speakup/ |
| A D | genmap.c | 74 lc++; in main() 129 for (lc = 1; lc <= max_key_used; lc++) { in main() 130 kp = key_data[lc]; in main() 150 for (lc = 1; lc <= max_key_used; lc++) { in main() 151 kp = key_data[lc]; in main() 154 printf("\n\t%d,", lc); in main()
|
| A D | utils.h | 28 int lc; variable 43 lc = 0; in open_input() 50 fprintf(stderr, "error: file %s line %d\n", filename, lc); in oops()
|
| A D | makemapdata.c | 23 lc++; in get_define()
|
| /drivers/net/ethernet/chelsio/cxgb4vf/ |
| A D | t4vf_hw.c | 460 lc->pcaps = pcaps; in init_link_config() 461 lc->lpacaps = 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() 471 lc->fec = lc->auto_fec; in init_link_config() 485 lc->acaps = 0; in init_link_config() 2015 if (link_ok != lc->link_ok || speed != lc->speed || in t4vf_handle_get_port_info() 2016 fc != lc->fc || adv_fc != lc->advertised_fc || in t4vf_handle_get_port_info() 2029 lc->fc = fc; in t4vf_handle_get_port_info() 2030 lc->fec = fec; in t4vf_handle_get_port_info() [all …]
|
| A 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/ |
| A D | xr_serial.c | 756 struct usb_cdc_line_coding *lc; in xr_cdc_set_line_coding() local 759 lc = kzalloc(sizeof(*lc), GFP_KERNEL); in xr_cdc_set_line_coding() 760 if (!lc) in xr_cdc_set_line_coding() 766 lc->dwDTERate = cpu_to_le32(9600); in xr_cdc_set_line_coding() 786 lc->bParityType = USB_CDC_NO_PARITY; in xr_cdc_set_line_coding() 800 lc->bDataBits = 5; in xr_cdc_set_line_coding() 803 lc->bDataBits = 6; in xr_cdc_set_line_coding() 806 lc->bDataBits = 7; in xr_cdc_set_line_coding() 810 lc->bDataBits = 8; in xr_cdc_set_line_coding() 818 lc, sizeof(*lc), USB_CTRL_SET_TIMEOUT); in xr_cdc_set_line_coding() [all …]
|
| /drivers/gpio/ |
| A D | gpiolib-cdev.c | 979 (lc->attrs[i].mask & mask)) in gpio_v2_line_config_debounced() 993 (lc->attrs[i].mask & mask)) in gpio_v2_line_config_debounce_period() 1129 (lc->attrs[i].mask & mask)) in gpio_v2_line_config_flags() 1130 return lc->attrs[i].attr.flags; in gpio_v2_line_config_flags() 1132 return lc->flags; in gpio_v2_line_config_flags() 1143 (lc->attrs[i].mask & mask)) in gpio_v2_line_config_output_value() 1218 if (!mem_is_zero(lc->padding, sizeof(lc->padding))) in gpio_v2_line_config_validate() 1402 struct gpio_v2_line_config lc; in linereq_set_config() local 1409 if (copy_from_user(&lc, ip, sizeof(lc))) in linereq_set_config() 1616 struct gpio_v2_line_config *lc; in linereq_create() local [all …]
|
| /drivers/net/ethernet/chelsio/cxgb3/ |
| A D | t3_hw.c | 1207 if (link_ok == lc->link_ok && speed == lc->speed && in t3_link_changed() 1208 duplex == lc->duplex && fc == lc->fc) in t3_link_changed() 1258 fc = lc->fc; in t3_link_fault() 1313 lc->speed = lc->requested_speed; in t3_link_start() 1314 lc->duplex = lc->requested_duplex; in t3_link_start() 1316 t3_mac_set_speed_duplex_fc(mac, lc->speed, lc->duplex, in t3_link_start() 1319 phy->ops->set_speed_duplex(phy, lc->speed, lc->duplex); in t3_link_start() 3431 lc->requested_speed = lc->speed = SPEED_INVALID; in init_link_config() 3432 lc->requested_duplex = lc->duplex = DUPLEX_INVALID; in init_link_config() 3433 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; in init_link_config() [all …]
|
| A D | cxgb3_main.c | 1882 if (lc->supported & cap) in set_link_ksettings() 1894 lc->requested_speed = speed; in set_link_ksettings() 1896 lc->advertising = 0; in set_link_ksettings() 1899 advertising &= lc->supported; in set_link_ksettings() 1906 lc->autoneg = cmd->base.autoneg; in set_link_ksettings() 1929 lc->requested_fc = 0; in set_pauseparam() 1931 lc->requested_fc = PAUSE_AUTONEG; in set_pauseparam() 1936 lc->requested_fc |= PAUSE_RX; in set_pauseparam() 1938 lc->requested_fc |= PAUSE_TX; in set_pauseparam() 1939 if (lc->autoneg == AUTONEG_ENABLE) { in set_pauseparam() [all …]
|
| /drivers/net/ethernet/chelsio/cxgb4/ |
| A D | cxgb4_ethtool.c | 731 old_lc = *lc; 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() 747 lc->speed_caps = 0; in set_link_ksettings() 757 *lc = old_lc; in set_link_ksettings() 847 old_lc = *lc; in set_fecparam() 854 pi->tx_chan, lc); in set_fecparam() 856 *lc = old_lc; in set_fecparam() 877 lc->requested_fc = 0; in set_pauseparam() [all …]
|
| A D | t4_hw.c | 4140 lc->fc = lc->requested_fc & ~PAUSE_AUTONEG; in t4_link_acaps() 4144 lc->fc = lc->requested_fc & ~PAUSE_AUTONEG; in t4_link_acaps() 8676 if (link_ok != lc->link_ok || speed != lc->speed || in t4_handle_get_port_info() 8677 fc != lc->fc || adv_fc != lc->advertised_fc || in t4_handle_get_port_info() 8690 lc->fc = fc; in t4_handle_get_port_info() 8722 if (lc->new_module && lc->redo_l1cfg) { in t4_handle_get_port_info() 8731 old_lc = *lc; in t4_handle_get_port_info() 8905 lc->speed = 0; in init_link_config() 8906 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; in init_link_config() 8912 lc->fec = fwcap_to_cc_fec(lc->def_acaps); in init_link_config() [all …]
|
| /drivers/scsi/csiostor/ |
| A D | csio_hw.c | 1691 lc->pcaps = pcaps; in csio_init_link_config() 1693 lc->lpacaps = 0; in csio_init_link_config() 1695 lc->speed = 0; in csio_init_link_config() 1697 lc->fc = lc->requested_fc; in csio_init_link_config() 1704 lc->fec = fwcap_to_cc_fec(lc->def_acaps); in csio_init_link_config() 1714 lc->acaps = lc->pcaps & ADVERT_MASK; in csio_init_link_config() 1718 lc->acaps = 0; in csio_init_link_config() 1729 lc->link_ok = 0; in csio_link_l1cfg() 1757 lc->fc = lc->requested_fc & ~PAUSE_AUTONEG; in csio_link_l1cfg() 1758 lc->fec = cc_fec; in csio_link_l1cfg() [all …]
|
| /drivers/video/fbdev/matrox/ |
| A D | matroxfb_misc.c | 194 unsigned int vd, vs, ve, vt, lc; in matroxfb_vgaHWinit() local 273 lc = vd; in matroxfb_vgaHWinit() 301 ((lc & 0x400) >> 3); in matroxfb_vgaHWinit() 316 ((lc & 0x100) >> 4) | in matroxfb_vgaHWinit() 322 ((lc & 0x200) >> 3); in matroxfb_vgaHWinit() 335 hw->CRTC[24] = lc; in matroxfb_vgaHWinit()
|
| /drivers/net/ethernet/qlogic/qed/ |
| A D | qed_fcoe.c | 552 u32 i, lc; in qed_fcoe_setup() local 565 lc = 0; in qed_fcoe_setup() 566 SET_FIELD(lc, TIMERS_CONTEXT_VALIDLC0, 1); in qed_fcoe_setup() 567 p_task_ctx->timer_context.logical_client_0 = cpu_to_le32(lc); in qed_fcoe_setup() 569 lc = 0; in qed_fcoe_setup() 570 SET_FIELD(lc, TIMERS_CONTEXT_VALIDLC1, 1); in qed_fcoe_setup() 571 p_task_ctx->timer_context.logical_client_1 = cpu_to_le32(lc); in qed_fcoe_setup()
|
| /drivers/platform/mellanox/ |
| A D | Makefile | 13 obj-$(CONFIG_MLXREG_LC) += mlxreg-lc.o
|
| /drivers/thunderbolt/ |
| A D | Makefile | 5 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/ |
| A D | dma_global.h | 67 #define DMA_PACK_LEFT_CROPPING(lc) DMA_PACK(lc, LEFT_CROPPING) argument
|
| /drivers/s390/char/ |
| A D | tape_3590.h | 78 unsigned int lc:3; member
|
| /drivers/gpu/drm/i915/display/ |
| A D | intel_dp.c | 686 return 1 << lc->lane_count_exp; in intel_dp_link_config_lane_count() 690 const struct intel_dp_link_config *lc) in intel_dp_link_config_bw() argument 693 intel_dp_link_config_lane_count(lc)); in intel_dp_link_config_bw() 714 struct intel_dp_link_config *lc; in intel_dp_link_config_init() local 730 lc = &intel_dp->link.configs[0]; in intel_dp_link_config_init() 733 lc->lane_count_exp = j; in intel_dp_link_config_init() 734 lc->link_rate_idx = i; in intel_dp_link_config_init() 736 lc++; in intel_dp_link_config_init() 749 const struct intel_dp_link_config *lc; in intel_dp_link_config_get() local 754 lc = &intel_dp->link.configs[idx]; in intel_dp_link_config_get() [all …]
|