hg 3137 drivers/block/drbd/drbd_receiver.c int hg, rv = -100; hg 3155 drivers/block/drbd/drbd_receiver.c hg = drbd_asb_recover_0p(peer_device); hg 3156 drivers/block/drbd/drbd_receiver.c if (hg == -1 && device->state.role == R_SECONDARY) hg 3157 drivers/block/drbd/drbd_receiver.c rv = hg; hg 3158 drivers/block/drbd/drbd_receiver.c if (hg == 1 && device->state.role == R_PRIMARY) hg 3159 drivers/block/drbd/drbd_receiver.c rv = hg; hg 3167 drivers/block/drbd/drbd_receiver.c hg = drbd_asb_recover_0p(peer_device); hg 3168 drivers/block/drbd/drbd_receiver.c if (hg == -1 && device->state.role == R_PRIMARY) { hg 3179 drivers/block/drbd/drbd_receiver.c rv = hg; hg 3182 drivers/block/drbd/drbd_receiver.c rv = hg; hg 3194 drivers/block/drbd/drbd_receiver.c int hg, rv = -100; hg 3217 drivers/block/drbd/drbd_receiver.c hg = drbd_asb_recover_0p(peer_device); hg 3218 drivers/block/drbd/drbd_receiver.c if (hg == -1) { hg 3229 drivers/block/drbd/drbd_receiver.c rv = hg; hg 3232 drivers/block/drbd/drbd_receiver.c rv = hg; hg 3494 drivers/block/drbd/drbd_receiver.c int hg, rule_nr, rr_conflict, tentative, always_asbp; hg 3507 drivers/block/drbd/drbd_receiver.c hg = drbd_uuid_compare(device, peer_role, &rule_nr); hg 3510 drivers/block/drbd/drbd_receiver.c drbd_info(device, "uuid_compare()=%d by rule %d\n", hg, rule_nr); hg 3512 drivers/block/drbd/drbd_receiver.c if (hg == -1000) { hg 3516 drivers/block/drbd/drbd_receiver.c if (hg < -0x10000) { hg 3518 drivers/block/drbd/drbd_receiver.c hg = -hg; hg 3519 drivers/block/drbd/drbd_receiver.c proto = hg & 0xff; hg 3520 drivers/block/drbd/drbd_receiver.c fflags = (hg >> 8) & 0xff; hg 3525 drivers/block/drbd/drbd_receiver.c if (hg < -1000) { hg 3526 drivers/block/drbd/drbd_receiver.c drbd_alert(device, "To resolve this both sides have to support at least protocol %d\n", -hg - 1000); hg 3532 drivers/block/drbd/drbd_receiver.c int f = (hg == -100) || abs(hg) == 2; hg 3533 drivers/block/drbd/drbd_receiver.c hg = mydisk > D_INCONSISTENT ? 1 : -1; hg 3535 drivers/block/drbd/drbd_receiver.c hg = hg*2; hg 3537 drivers/block/drbd/drbd_receiver.c hg > 0 ? "source" : "target"); hg 3540 drivers/block/drbd/drbd_receiver.c if (abs(hg) == 100) hg 3550 drivers/block/drbd/drbd_receiver.c if (hg == 100 || (hg == -100 && always_asbp)) { hg 3553 drivers/block/drbd/drbd_receiver.c int forced = (hg == -100); hg 3557 drivers/block/drbd/drbd_receiver.c hg = drbd_asb_recover_0p(peer_device); hg 3560 drivers/block/drbd/drbd_receiver.c hg = drbd_asb_recover_1p(peer_device); hg 3563 drivers/block/drbd/drbd_receiver.c hg = drbd_asb_recover_2p(peer_device); hg 3566 drivers/block/drbd/drbd_receiver.c if (abs(hg) < 100) { hg 3569 drivers/block/drbd/drbd_receiver.c pcount, (hg < 0) ? "peer" : "this"); hg 3573 drivers/block/drbd/drbd_receiver.c hg = hg*2; hg 3578 drivers/block/drbd/drbd_receiver.c if (hg == -100) { hg 3580 drivers/block/drbd/drbd_receiver.c hg = -1; hg 3582 drivers/block/drbd/drbd_receiver.c hg = 1; hg 3584 drivers/block/drbd/drbd_receiver.c if (abs(hg) < 100) hg 3587 drivers/block/drbd/drbd_receiver.c (hg < 0) ? "peer" : "this"); hg 3590 drivers/block/drbd/drbd_receiver.c if (hg == -100) { hg 3600 drivers/block/drbd/drbd_receiver.c if (hg > 0 && mydisk <= D_INCONSISTENT) { hg 3605 drivers/block/drbd/drbd_receiver.c if (hg < 0 && /* by intention we do not use mydisk here. */ hg 3621 drivers/block/drbd/drbd_receiver.c if (hg == 0) hg 3625 drivers/block/drbd/drbd_receiver.c drbd_conn_str(hg > 0 ? C_SYNC_SOURCE : C_SYNC_TARGET), hg 3626 drivers/block/drbd/drbd_receiver.c abs(hg) >= 2 ? "full" : "bit-map based"); hg 3630 drivers/block/drbd/drbd_receiver.c if (abs(hg) >= 2) { hg 3637 drivers/block/drbd/drbd_receiver.c if (hg > 0) { /* become sync source. */ hg 3639 drivers/block/drbd/drbd_receiver.c } else if (hg < 0) { /* become sync target */ hg 476 drivers/block/xen-blkfront.c static int blkif_getgeo(struct block_device *bd, struct hd_geometry *hg) hg 483 drivers/block/xen-blkfront.c hg->heads = 0xff; hg 484 drivers/block/xen-blkfront.c hg->sectors = 0x3f; hg 485 drivers/block/xen-blkfront.c sector_div(cylinders, hg->heads * hg->sectors); hg 486 drivers/block/xen-blkfront.c hg->cylinders = cylinders; hg 487 drivers/block/xen-blkfront.c if ((sector_t)(hg->cylinders + 1) * hg->heads * hg->sectors < nsect) hg 488 drivers/block/xen-blkfront.c hg->cylinders = 0xffff; hg 63 drivers/crypto/cavium/zip/zip_deflate.c zip_cmd->s.hg = 0; hg 63 drivers/crypto/cavium/zip/zip_inflate.c zip_cmd->s.hg = 0; hg 194 drivers/crypto/cavium/zip/zip_regs.h u64 hg : 1; hg 196 drivers/crypto/cavium/zip/zip_regs.h u64 hg : 1; hg 167 drivers/media/pci/saa7164/saa7164-core.c static void saa7164_histogram_reset(struct saa7164_histogram *hg, char *name) hg 171 drivers/media/pci/saa7164/saa7164-core.c memset(hg, 0, sizeof(struct saa7164_histogram)); hg 172 drivers/media/pci/saa7164/saa7164-core.c strscpy(hg->name, name, sizeof(hg->name)); hg 176 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[0 + i].val = i; hg 180 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[30 + i].val = 30 + (i * 10); hg 184 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[48 + i].val = 200 + (i * 200); hg 187 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[55].val = 2000; hg 190 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[56].val = 4000; hg 193 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[57].val = 8000; hg 196 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[58].val = 15000; hg 199 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[59].val = 30000; hg 202 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[60].val = 60000; hg 205 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[61].val = 300000; hg 208 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[62].val = 900000; hg 211 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[63].val = 3600000; hg 214 drivers/media/pci/saa7164/saa7164-core.c void saa7164_histogram_update(struct saa7164_histogram *hg, u32 val) hg 218 drivers/media/pci/saa7164/saa7164-core.c if (val <= hg->counter1[i].val) { hg 219 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[i].count++; hg 220 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[i].update_time = jiffies; hg 227 drivers/media/pci/saa7164/saa7164-core.c struct saa7164_histogram *hg) hg 232 drivers/media/pci/saa7164/saa7164-core.c printk(KERN_ERR "Histogram named %s (ms, count, last_update_jiffy)\n", hg->name); hg 234 drivers/media/pci/saa7164/saa7164-core.c if (hg->counter1[i].count == 0) hg 238 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[i].val, hg 239 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[i].count, hg 240 drivers/media/pci/saa7164/saa7164-core.c hg->counter1[i].update_time); hg 486 drivers/media/pci/saa7164/saa7164.h void saa7164_histogram_update(struct saa7164_histogram *hg, u32 val); hg 924 sound/soc/codecs/cs35l33.c struct device_node *hg; hg 928 sound/soc/codecs/cs35l33.c hg = of_get_child_by_name(np, "cirrus,hg-algo"); hg 929 sound/soc/codecs/cs35l33.c hg_config->enable_hg_algo = hg ? true : false; hg 932 sound/soc/codecs/cs35l33.c if (of_property_read_u32(hg, "cirrus,mem-depth", &val32) >= 0) hg 934 sound/soc/codecs/cs35l33.c if (of_property_read_u32(hg, "cirrus,release-rate", hg 937 sound/soc/codecs/cs35l33.c if (of_property_read_u32(hg, "cirrus,ldo-thld", &val32) >= 0) hg 939 sound/soc/codecs/cs35l33.c if (of_property_read_u32(hg, "cirrus,ldo-path-disable", hg 942 sound/soc/codecs/cs35l33.c if (of_property_read_u32(hg, "cirrus,ldo-entry-delay", hg 946 sound/soc/codecs/cs35l33.c hg_config->vp_hg_auto = of_property_read_bool(hg, hg 949 sound/soc/codecs/cs35l33.c if (of_property_read_u32(hg, "cirrus,vp-hg", &val32) >= 0) hg 951 sound/soc/codecs/cs35l33.c if (of_property_read_u32(hg, "cirrus,vp-hg-rate", &val32) >= 0) hg 953 sound/soc/codecs/cs35l33.c if (of_property_read_u32(hg, "cirrus,vp-hg-va", &val32) >= 0) hg 957 sound/soc/codecs/cs35l33.c of_node_put(hg);