lg 86 drivers/gpio/gpio-lynxpoint.c struct lp_gpio *lg = gpiochip_get_data(chip); lg 96 drivers/gpio/gpio-lynxpoint.c return lg->reg_base + reg + reg_offset; lg 101 drivers/gpio/gpio-lynxpoint.c struct lp_gpio *lg = gpiochip_get_data(chip); lg 106 drivers/gpio/gpio-lynxpoint.c pm_runtime_get(&lg->pdev->dev); /* should we put if failed */ lg 110 drivers/gpio/gpio-lynxpoint.c dev_err(&lg->pdev->dev, "gpio %d reserved for ACPI\n", offset); lg 126 drivers/gpio/gpio-lynxpoint.c struct lp_gpio *lg = gpiochip_get_data(chip); lg 132 drivers/gpio/gpio-lynxpoint.c pm_runtime_put(&lg->pdev->dev); lg 138 drivers/gpio/gpio-lynxpoint.c struct lp_gpio *lg = gpiochip_get_data(gc); lg 142 drivers/gpio/gpio-lynxpoint.c unsigned long reg = lp_gpio_reg(&lg->chip, hwirq, LP_CONFIG1); lg 144 drivers/gpio/gpio-lynxpoint.c if (hwirq >= lg->chip.ngpio) lg 147 drivers/gpio/gpio-lynxpoint.c spin_lock_irqsave(&lg->lock, flags); lg 173 drivers/gpio/gpio-lynxpoint.c spin_unlock_irqrestore(&lg->lock, flags); lg 186 drivers/gpio/gpio-lynxpoint.c struct lp_gpio *lg = gpiochip_get_data(chip); lg 190 drivers/gpio/gpio-lynxpoint.c spin_lock_irqsave(&lg->lock, flags); lg 197 drivers/gpio/gpio-lynxpoint.c spin_unlock_irqrestore(&lg->lock, flags); lg 202 drivers/gpio/gpio-lynxpoint.c struct lp_gpio *lg = gpiochip_get_data(chip); lg 206 drivers/gpio/gpio-lynxpoint.c spin_lock_irqsave(&lg->lock, flags); lg 208 drivers/gpio/gpio-lynxpoint.c spin_unlock_irqrestore(&lg->lock, flags); lg 216 drivers/gpio/gpio-lynxpoint.c struct lp_gpio *lg = gpiochip_get_data(chip); lg 222 drivers/gpio/gpio-lynxpoint.c spin_lock_irqsave(&lg->lock, flags); lg 224 drivers/gpio/gpio-lynxpoint.c spin_unlock_irqrestore(&lg->lock, flags); lg 233 drivers/gpio/gpio-lynxpoint.c struct lp_gpio *lg = gpiochip_get_data(gc); lg 239 drivers/gpio/gpio-lynxpoint.c for (base = 0; base < lg->chip.ngpio; base += 32) { lg 240 drivers/gpio/gpio-lynxpoint.c reg = lp_gpio_reg(&lg->chip, base, LP_INT_STAT); lg 241 drivers/gpio/gpio-lynxpoint.c ena = lp_gpio_reg(&lg->chip, base, LP_INT_ENABLE); lg 252 drivers/gpio/gpio-lynxpoint.c irq = irq_find_mapping(lg->chip.irq.domain, base + pin); lg 270 drivers/gpio/gpio-lynxpoint.c struct lp_gpio *lg = gpiochip_get_data(gc); lg 272 drivers/gpio/gpio-lynxpoint.c unsigned long reg = lp_gpio_reg(&lg->chip, hwirq, LP_INT_ENABLE); lg 275 drivers/gpio/gpio-lynxpoint.c spin_lock_irqsave(&lg->lock, flags); lg 277 drivers/gpio/gpio-lynxpoint.c spin_unlock_irqrestore(&lg->lock, flags); lg 283 drivers/gpio/gpio-lynxpoint.c struct lp_gpio *lg = gpiochip_get_data(gc); lg 285 drivers/gpio/gpio-lynxpoint.c unsigned long reg = lp_gpio_reg(&lg->chip, hwirq, LP_INT_ENABLE); lg 288 drivers/gpio/gpio-lynxpoint.c spin_lock_irqsave(&lg->lock, flags); lg 290 drivers/gpio/gpio-lynxpoint.c spin_unlock_irqrestore(&lg->lock, flags); lg 305 drivers/gpio/gpio-lynxpoint.c struct lp_gpio *lg = gpiochip_get_data(chip); lg 309 drivers/gpio/gpio-lynxpoint.c for (base = 0; base < lg->chip.ngpio; base += 32) { lg 311 drivers/gpio/gpio-lynxpoint.c reg = lp_gpio_reg(&lg->chip, base, LP_INT_ENABLE); lg 314 drivers/gpio/gpio-lynxpoint.c reg = lp_gpio_reg(&lg->chip, base, LP_INT_STAT); lg 323 drivers/gpio/gpio-lynxpoint.c struct lp_gpio *lg; lg 330 drivers/gpio/gpio-lynxpoint.c lg = devm_kzalloc(dev, sizeof(struct lp_gpio), GFP_KERNEL); lg 331 drivers/gpio/gpio-lynxpoint.c if (!lg) lg 334 drivers/gpio/gpio-lynxpoint.c lg->pdev = pdev; lg 335 drivers/gpio/gpio-lynxpoint.c platform_set_drvdata(pdev, lg); lg 345 drivers/gpio/gpio-lynxpoint.c lg->reg_base = io_rc->start; lg 348 drivers/gpio/gpio-lynxpoint.c if (!devm_request_region(dev, lg->reg_base, reg_len, "lp-gpio")) { lg 350 drivers/gpio/gpio-lynxpoint.c (unsigned int)lg->reg_base); lg 354 drivers/gpio/gpio-lynxpoint.c spin_lock_init(&lg->lock); lg 356 drivers/gpio/gpio-lynxpoint.c gc = &lg->chip; lg 389 drivers/gpio/gpio-lynxpoint.c ret = devm_gpiochip_add_data(dev, gc, lg); lg 412 drivers/gpio/gpio-lynxpoint.c struct lp_gpio *lg = dev_get_drvdata(dev); lg 417 drivers/gpio/gpio-lynxpoint.c for (i = 0; i < lg->chip.ngpio; i++) { lg 418 drivers/gpio/gpio-lynxpoint.c if (gpiochip_is_requested(&lg->chip, i) != NULL) { lg 419 drivers/gpio/gpio-lynxpoint.c reg = lp_gpio_reg(&lg->chip, i, LP_CONFIG2); lg 663 drivers/infiniband/hw/mthca/mthca_cmd.c int lg; lg 683 drivers/infiniband/hw/mthca/mthca_cmd.c lg = ffs(mthca_icm_addr(&iter) | mthca_icm_size(&iter)) - 1; lg 684 drivers/infiniband/hw/mthca/mthca_cmd.c if (lg < MTHCA_ICM_PAGE_SHIFT) { lg 692 drivers/infiniband/hw/mthca/mthca_cmd.c for (i = 0; i < mthca_icm_size(&iter) >> lg; ++i) { lg 695 drivers/infiniband/hw/mthca/mthca_cmd.c virt += 1ULL << lg; lg 699 drivers/infiniband/hw/mthca/mthca_cmd.c cpu_to_be64((mthca_icm_addr(&iter) + (i << lg)) | lg 700 drivers/infiniband/hw/mthca/mthca_cmd.c (lg - MTHCA_ICM_PAGE_SHIFT)); lg 701 drivers/infiniband/hw/mthca/mthca_cmd.c ts += 1 << (lg - 10); lg 784 drivers/infiniband/hw/mthca/mthca_cmd.c u8 lg; lg 825 drivers/infiniband/hw/mthca/mthca_cmd.c MTHCA_GET(lg, outbox, QUERY_FW_MAX_CMD_OFFSET); lg 826 drivers/infiniband/hw/mthca/mthca_cmd.c dev->cmd.max_cmds = 1 << lg; lg 1521 drivers/net/ethernet/mellanox/mlx4/fw.c int lg; lg 1540 drivers/net/ethernet/mellanox/mlx4/fw.c lg = ffs(mlx4_icm_addr(&iter) | mlx4_icm_size(&iter)) - 1; lg 1541 drivers/net/ethernet/mellanox/mlx4/fw.c if (lg < MLX4_ICM_PAGE_SHIFT) { lg 1550 drivers/net/ethernet/mellanox/mlx4/fw.c for (i = 0; i < mlx4_icm_size(&iter) >> lg; ++i) { lg 1553 drivers/net/ethernet/mellanox/mlx4/fw.c virt += 1ULL << lg; lg 1557 drivers/net/ethernet/mellanox/mlx4/fw.c cpu_to_be64((mlx4_icm_addr(&iter) + (i << lg)) | lg 1558 drivers/net/ethernet/mellanox/mlx4/fw.c (lg - MLX4_ICM_PAGE_SHIFT)); lg 1559 drivers/net/ethernet/mellanox/mlx4/fw.c ts += 1 << (lg - 10); lg 1624 drivers/net/ethernet/mellanox/mlx4/fw.c u8 lg; lg 1664 drivers/net/ethernet/mellanox/mlx4/fw.c MLX4_GET(lg, outbox, QUERY_FW_PPF_ID); lg 1665 drivers/net/ethernet/mellanox/mlx4/fw.c dev->caps.function = lg; lg 1689 drivers/net/ethernet/mellanox/mlx4/fw.c MLX4_GET(lg, outbox, QUERY_FW_MAX_CMD_OFFSET); lg 1690 drivers/net/ethernet/mellanox/mlx4/fw.c cmd->max_cmds = 1 << lg; lg 2364 drivers/scsi/qla2xxx/qla_mbx.c struct logio_entry_24xx *lg; lg 2378 drivers/scsi/qla2xxx/qla_mbx.c lg = dma_pool_zalloc(ha->s_dma_pool, GFP_KERNEL, &lg_dma); lg 2379 drivers/scsi/qla2xxx/qla_mbx.c if (lg == NULL) { lg 2385 drivers/scsi/qla2xxx/qla_mbx.c lg->entry_type = LOGINOUT_PORT_IOCB_TYPE; lg 2386 drivers/scsi/qla2xxx/qla_mbx.c lg->entry_count = 1; lg 2387 drivers/scsi/qla2xxx/qla_mbx.c lg->handle = MAKE_HANDLE(req->id, lg->handle); lg 2388 drivers/scsi/qla2xxx/qla_mbx.c lg->nport_handle = cpu_to_le16(loop_id); lg 2389 drivers/scsi/qla2xxx/qla_mbx.c lg->control_flags = cpu_to_le16(LCF_COMMAND_PLOGI); lg 2391 drivers/scsi/qla2xxx/qla_mbx.c lg->control_flags |= cpu_to_le16(LCF_COND_PLOGI); lg 2393 drivers/scsi/qla2xxx/qla_mbx.c lg->control_flags |= cpu_to_le16(LCF_SKIP_PRLI); lg 2394 drivers/scsi/qla2xxx/qla_mbx.c lg->port_id[0] = al_pa; lg 2395 drivers/scsi/qla2xxx/qla_mbx.c lg->port_id[1] = area; lg 2396 drivers/scsi/qla2xxx/qla_mbx.c lg->port_id[2] = domain; lg 2397 drivers/scsi/qla2xxx/qla_mbx.c lg->vp_index = vha->vp_idx; lg 2398 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_issue_iocb_timeout(vha, lg, lg_dma, 0, lg 2403 drivers/scsi/qla2xxx/qla_mbx.c } else if (lg->entry_status != 0) { lg 2406 drivers/scsi/qla2xxx/qla_mbx.c lg->entry_status); lg 2408 drivers/scsi/qla2xxx/qla_mbx.c } else if (lg->comp_status != cpu_to_le16(CS_COMPLETE)) { lg 2409 drivers/scsi/qla2xxx/qla_mbx.c iop[0] = le32_to_cpu(lg->io_parameter[0]); lg 2410 drivers/scsi/qla2xxx/qla_mbx.c iop[1] = le32_to_cpu(lg->io_parameter[1]); lg 2414 drivers/scsi/qla2xxx/qla_mbx.c "ioparam=%x/%x.\n", le16_to_cpu(lg->comp_status), lg 2446 drivers/scsi/qla2xxx/qla_mbx.c iop[0] = le32_to_cpu(lg->io_parameter[0]); lg 2458 drivers/scsi/qla2xxx/qla_mbx.c if (lg->io_parameter[7] || lg->io_parameter[8]) lg 2460 drivers/scsi/qla2xxx/qla_mbx.c if (lg->io_parameter[9] || lg->io_parameter[10]) lg 2462 drivers/scsi/qla2xxx/qla_mbx.c if (lg->io_parameter[0] & cpu_to_le32(BIT_7)) lg 2468 drivers/scsi/qla2xxx/qla_mbx.c dma_pool_free(ha->s_dma_pool, lg, lg_dma); lg 2639 drivers/scsi/qla2xxx/qla_mbx.c struct logio_entry_24xx *lg; lg 2647 drivers/scsi/qla2xxx/qla_mbx.c lg = dma_pool_zalloc(ha->s_dma_pool, GFP_KERNEL, &lg_dma); lg 2648 drivers/scsi/qla2xxx/qla_mbx.c if (lg == NULL) { lg 2655 drivers/scsi/qla2xxx/qla_mbx.c lg->entry_type = LOGINOUT_PORT_IOCB_TYPE; lg 2656 drivers/scsi/qla2xxx/qla_mbx.c lg->entry_count = 1; lg 2657 drivers/scsi/qla2xxx/qla_mbx.c lg->handle = MAKE_HANDLE(req->id, lg->handle); lg 2658 drivers/scsi/qla2xxx/qla_mbx.c lg->nport_handle = cpu_to_le16(loop_id); lg 2659 drivers/scsi/qla2xxx/qla_mbx.c lg->control_flags = lg 2662 drivers/scsi/qla2xxx/qla_mbx.c lg->port_id[0] = al_pa; lg 2663 drivers/scsi/qla2xxx/qla_mbx.c lg->port_id[1] = area; lg 2664 drivers/scsi/qla2xxx/qla_mbx.c lg->port_id[2] = domain; lg 2665 drivers/scsi/qla2xxx/qla_mbx.c lg->vp_index = vha->vp_idx; lg 2666 drivers/scsi/qla2xxx/qla_mbx.c rval = qla2x00_issue_iocb_timeout(vha, lg, lg_dma, 0, lg 2671 drivers/scsi/qla2xxx/qla_mbx.c } else if (lg->entry_status != 0) { lg 2674 drivers/scsi/qla2xxx/qla_mbx.c lg->entry_status); lg 2676 drivers/scsi/qla2xxx/qla_mbx.c } else if (lg->comp_status != cpu_to_le16(CS_COMPLETE)) { lg 2679 drivers/scsi/qla2xxx/qla_mbx.c "ioparam=%x/%x.\n", le16_to_cpu(lg->comp_status), lg 2680 drivers/scsi/qla2xxx/qla_mbx.c le32_to_cpu(lg->io_parameter[0]), lg 2681 drivers/scsi/qla2xxx/qla_mbx.c le32_to_cpu(lg->io_parameter[1])); lg 2688 drivers/scsi/qla2xxx/qla_mbx.c dma_pool_free(ha->s_dma_pool, lg, lg_dma); lg 2671 fs/ext4/mballoc.c struct ext4_locality_group *lg; lg 2672 fs/ext4/mballoc.c lg = per_cpu_ptr(sbi->s_locality_groups, i); lg 2673 fs/ext4/mballoc.c mutex_init(&lg->lg_mutex); lg 2675 fs/ext4/mballoc.c INIT_LIST_HEAD(&lg->lg_prealloc_list[j]); lg 2676 fs/ext4/mballoc.c spin_lock_init(&lg->lg_prealloc_lock); lg 3069 fs/ext4/mballoc.c struct ext4_locality_group *lg = ac->ac_lg; lg 3071 fs/ext4/mballoc.c BUG_ON(lg == NULL); lg 3427 fs/ext4/mballoc.c struct ext4_locality_group *lg; lg 3471 fs/ext4/mballoc.c lg = ac->ac_lg; lg 3472 fs/ext4/mballoc.c if (lg == NULL) lg 3486 fs/ext4/mballoc.c list_for_each_entry_rcu(pa, &lg->lg_prealloc_list[i], lg 3743 fs/ext4/mballoc.c struct ext4_locality_group *lg; lg 3780 fs/ext4/mballoc.c lg = ac->ac_lg; lg 3781 fs/ext4/mballoc.c BUG_ON(lg == NULL); lg 3783 fs/ext4/mballoc.c pa->pa_obj_lock = &lg->lg_prealloc_lock; lg 4290 fs/ext4/mballoc.c struct ext4_locality_group *lg, lg 4302 fs/ext4/mballoc.c spin_lock(&lg->lg_prealloc_lock); lg 4303 fs/ext4/mballoc.c list_for_each_entry_rcu(pa, &lg->lg_prealloc_list[order], lg 4340 fs/ext4/mballoc.c spin_unlock(&lg->lg_prealloc_lock); lg 4377 fs/ext4/mballoc.c struct ext4_locality_group *lg = ac->ac_lg; lg 4385 fs/ext4/mballoc.c spin_lock(&lg->lg_prealloc_lock); lg 4386 fs/ext4/mballoc.c list_for_each_entry_rcu(tmp_pa, &lg->lg_prealloc_list[order], lg 4408 fs/ext4/mballoc.c &lg->lg_prealloc_list[order]); lg 4409 fs/ext4/mballoc.c spin_unlock(&lg->lg_prealloc_lock); lg 4413 fs/ext4/mballoc.c ext4_mb_discard_lg_preallocations(sb, lg, lg 332 fs/ntfs/compress.c u16 lg, pt, length, max_non_overlap; lg 367 fs/ntfs/compress.c lg = 0; lg 369 fs/ntfs/compress.c lg++; lg 379 fs/ntfs/compress.c dp_back_addr = dp_addr - (pt >> (12 - lg)) - 1; lg 384 fs/ntfs/compress.c length = (pt & (0xfff >> lg)) + 3; lg 1141 net/rose/af_rose.c int lg; lg 1161 net/rose/af_rose.c lg = (ROSE_PACLEN > skb->len) ? skb->len : ROSE_PACLEN; lg 1164 net/rose/af_rose.c skb_copy_from_linear_data(skb, skb_put(skbn, lg), lg); lg 1165 net/rose/af_rose.c skb_pull(skb, lg); lg 242 net/rose/rose_subr.c unsigned char l, lg, n = 0; lg 311 net/rose/rose_subr.c for (pt = p + 2, lg = 0 ; lg < l ; pt += AX25_ADDR_LEN, lg += AX25_ADDR_LEN) { lg 1038 net/smc/smc_core.c struct smc_link_group *lgr, *lg; lg 1045 net/smc/smc_core.c list_for_each_entry_safe(lgr, lg, &lgr_freeing_list, list) { lg 298 sound/mips/ad1843.c int lg, rg, lm, rm; lg 302 sound/mips/ad1843.c ad1843_read_multi(ad1843, 2, gp->lfield, &lg, gp->rfield, &rg); lg 304 sound/mips/ad1843.c lg = mask - lg; lg 310 sound/mips/ad1843.c lg = 0; lg 314 sound/mips/ad1843.c return lg << 0 | rg << 8; lg 328 sound/mips/ad1843.c int lg = (newval >> 0) & mask; lg 330 sound/mips/ad1843.c int lm = (lg == 0) ? 1 : 0; lg 334 sound/mips/ad1843.c lg = mask - lg; lg 339 sound/mips/ad1843.c ad1843_write_multi(ad1843, 2, gp->lfield, lg, gp->rfield, rg);