osd 324 arch/arm/mach-davinci/board-dm355-evm.c .osd = { osd 577 arch/arm/mach-davinci/board-dm365-evm.c .osd = { osd 785 arch/arm/mach-davinci/board-dm644x-evm.c .osd = { osd 171 drivers/gpu/drm/zte/zx_vou.c void __iomem *osd; osd 553 drivers/gpu/drm/zte/zx_vou.c zplane->layer = vou->osd + MAIN_GL_OFFSET; osd 554 drivers/gpu/drm/zte/zx_vou.c zplane->csc = vou->osd + MAIN_GL_CSC_OFFSET; osd 555 drivers/gpu/drm/zte/zx_vou.c zplane->hbsc = vou->osd + MAIN_HBSC_OFFSET; osd 558 drivers/gpu/drm/zte/zx_vou.c zcrtc->chnreg = vou->osd + OSD_MAIN_CHN; osd 559 drivers/gpu/drm/zte/zx_vou.c zcrtc->chncsc = vou->osd + MAIN_CHN_CSC_OFFSET; osd 560 drivers/gpu/drm/zte/zx_vou.c zcrtc->dither = vou->osd + MAIN_DITHER_OFFSET; osd 564 drivers/gpu/drm/zte/zx_vou.c zplane->layer = vou->osd + AUX_GL_OFFSET; osd 565 drivers/gpu/drm/zte/zx_vou.c zplane->csc = vou->osd + AUX_GL_CSC_OFFSET; osd 566 drivers/gpu/drm/zte/zx_vou.c zplane->hbsc = vou->osd + AUX_HBSC_OFFSET; osd 569 drivers/gpu/drm/zte/zx_vou.c zcrtc->chnreg = vou->osd + OSD_AUX_CHN; osd 570 drivers/gpu/drm/zte/zx_vou.c zcrtc->chncsc = vou->osd + AUX_CHN_CSC_OFFSET; osd 571 drivers/gpu/drm/zte/zx_vou.c zcrtc->dither = vou->osd + AUX_DITHER_OFFSET; osd 617 drivers/gpu/drm/zte/zx_vou.c zx_writel_mask(vou->osd + OSD_CTRL0, bits->chnsel, 0); osd 620 drivers/gpu/drm/zte/zx_vou.c zx_writel_mask(vou->osd + OSD_CTRL0, bits->chnsel, osd 626 drivers/gpu/drm/zte/zx_vou.c zx_writel_mask(vou->osd + OSD_CTRL0, bits->enable, bits->enable); osd 637 drivers/gpu/drm/zte/zx_vou.c zx_writel_mask(vou->osd + OSD_CTRL0, bits->enable, 0); osd 658 drivers/gpu/drm/zte/zx_vou.c zplane->layer = vou->osd + OSD_VL_OFFSET(i); osd 659 drivers/gpu/drm/zte/zx_vou.c zplane->hbsc = vou->osd + HBSC_VL_OFFSET(i); osd 698 drivers/gpu/drm/zte/zx_vou.c state = zx_readl(vou->osd + OSD_INT_STA); osd 699 drivers/gpu/drm/zte/zx_vou.c zx_writel(vou->osd + OSD_INT_CLRSTA, state); osd 743 drivers/gpu/drm/zte/zx_vou.c zx_writel(vou->osd + OSD_INT_CLRSTA, ~0); osd 747 drivers/gpu/drm/zte/zx_vou.c zx_writel(vou->osd + OSD_INT_MSK, OSD_INT_ENABLE); osd 757 drivers/gpu/drm/zte/zx_vou.c zx_writel_mask(vou->osd + OSD_RST_CLR, RST_PER_FRAME, RST_PER_FRAME); osd 776 drivers/gpu/drm/zte/zx_vou.c vou->osd = devm_ioremap_resource(dev, res); osd 777 drivers/gpu/drm/zte/zx_vou.c if (IS_ERR(vou->osd)) { osd 778 drivers/gpu/drm/zte/zx_vou.c ret = PTR_ERR(vou->osd); osd 206 drivers/media/pci/ivtv/ivtvfb.c struct ivtv_osd_coords *osd) osd 213 drivers/media/pci/ivtv/ivtvfb.c osd->offset = data[0] - oi->video_rbase; osd 214 drivers/media/pci/ivtv/ivtvfb.c osd->max_offset = oi->display_width * oi->display_height * 4; osd 215 drivers/media/pci/ivtv/ivtvfb.c osd->pixel_stride = data[1]; osd 216 drivers/media/pci/ivtv/ivtvfb.c osd->lines = data[2]; osd 217 drivers/media/pci/ivtv/ivtvfb.c osd->x = data[3]; osd 218 drivers/media/pci/ivtv/ivtvfb.c osd->y = data[4]; osd 222 drivers/media/pci/ivtv/ivtvfb.c static int ivtvfb_set_osd_coords(struct ivtv *itv, const struct ivtv_osd_coords *osd) osd 226 drivers/media/pci/ivtv/ivtvfb.c oi->display_width = osd->pixel_stride; osd 227 drivers/media/pci/ivtv/ivtvfb.c oi->display_byte_stride = osd->pixel_stride * oi->bytes_per_pixel; osd 228 drivers/media/pci/ivtv/ivtvfb.c oi->set_osd_coords_x += osd->x; osd 229 drivers/media/pci/ivtv/ivtvfb.c oi->set_osd_coords_y = osd->y; osd 232 drivers/media/pci/ivtv/ivtvfb.c osd->offset + oi->video_rbase, osd 233 drivers/media/pci/ivtv/ivtvfb.c osd->pixel_stride, osd 234 drivers/media/pci/ivtv/ivtvfb.c osd->lines, osd->x, osd->y); osd 795 drivers/media/platform/davinci/vpbe.c !cfg->osd.module_name[0] || osd 50 drivers/media/platform/davinci/vpbe_osd.c struct osd_state *osd = sd; osd 52 drivers/media/platform/davinci/vpbe_osd.c return readl(osd->osd_base + offset); osd 57 drivers/media/platform/davinci/vpbe_osd.c struct osd_state *osd = sd; osd 59 drivers/media/platform/davinci/vpbe_osd.c writel(val, osd->osd_base + offset); osd 66 drivers/media/platform/davinci/vpbe_osd.c struct osd_state *osd = sd; osd 68 drivers/media/platform/davinci/vpbe_osd.c void __iomem *addr = osd->osd_base + offset; osd 78 drivers/media/platform/davinci/vpbe_osd.c struct osd_state *osd = sd; osd 80 drivers/media/platform/davinci/vpbe_osd.c void __iomem *addr = osd->osd_base + offset; osd 91 drivers/media/platform/davinci/vpbe_osd.c struct osd_state *osd = sd; osd 93 drivers/media/platform/davinci/vpbe_osd.c void __iomem *addr = osd->osd_base + offset; osd 465 drivers/media/platform/davinci/vpbe_osd.c struct osd_state *osd = sd; osd 466 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; osd 469 drivers/media/platform/davinci/vpbe_osd.c spin_lock_irqsave(&osd->lock, flags); osd 472 drivers/media/platform/davinci/vpbe_osd.c spin_unlock_irqrestore(&osd->lock, flags); osd 479 drivers/media/platform/davinci/vpbe_osd.c spin_unlock_irqrestore(&osd->lock, flags); osd 511 drivers/media/platform/davinci/vpbe_osd.c struct osd_state *osd = sd; osd 512 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; osd 516 drivers/media/platform/davinci/vpbe_osd.c spin_lock_irqsave(&osd->lock, flags); osd 527 drivers/media/platform/davinci/vpbe_osd.c spin_unlock_irqrestore(&osd->lock, flags); osd 532 drivers/media/platform/davinci/vpbe_osd.c spin_unlock_irqrestore(&osd->lock, flags); osd 541 drivers/media/platform/davinci/vpbe_osd.c _osd_set_blink_attribute(sd, osd->is_blinking, osd->blink); osd 544 drivers/media/platform/davinci/vpbe_osd.c spin_unlock_irqrestore(&osd->lock, flags); osd 738 drivers/media/platform/davinci/vpbe_osd.c struct osd_state *osd = sd; osd 739 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; osd 743 drivers/media/platform/davinci/vpbe_osd.c spin_lock_irqsave(&osd->lock, flags); osd 749 drivers/media/platform/davinci/vpbe_osd.c osd->pingpong = osd 750 drivers/media/platform/davinci/vpbe_osd.c _osd_dm6446_vid0_pingpong(sd, osd->field_inversion, osd 755 drivers/media/platform/davinci/vpbe_osd.c spin_unlock_irqrestore(&osd->lock, flags); osd 761 drivers/media/platform/davinci/vpbe_osd.c struct osd_state *osd = sd; osd 762 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; osd 765 drivers/media/platform/davinci/vpbe_osd.c spin_lock_irqsave(&osd->lock, flags); osd 769 drivers/media/platform/davinci/vpbe_osd.c spin_unlock_irqrestore(&osd->lock, flags); osd 787 drivers/media/platform/davinci/vpbe_osd.c struct osd_state *osd = sd; osd 788 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; osd 798 drivers/media/platform/davinci/vpbe_osd.c if (osd->vpbe_type == VPBE_VERSION_1) osd 806 drivers/media/platform/davinci/vpbe_osd.c if (osd->vpbe_type == VPBE_VERSION_1) osd 808 drivers/media/platform/davinci/vpbe_osd.c else if ((osd->vpbe_type == VPBE_VERSION_3) || osd 809 drivers/media/platform/davinci/vpbe_osd.c (osd->vpbe_type == VPBE_VERSION_2)) osd 813 drivers/media/platform/davinci/vpbe_osd.c if (osd->vpbe_type != VPBE_VERSION_2) osd 836 drivers/media/platform/davinci/vpbe_osd.c if ((osd->vpbe_type == VPBE_VERSION_1) && osd 841 drivers/media/platform/davinci/vpbe_osd.c pixfmt = osd->win[WIN_OSD1].lconfig.pixfmt; osd 843 drivers/media/platform/davinci/vpbe_osd.c pixfmt = osd->win[WIN_OSD0].lconfig.pixfmt; osd 856 drivers/media/platform/davinci/vpbe_osd.c if ((osd->vpbe_type == VPBE_VERSION_1) && is_vid_win(layer) && osd 861 drivers/media/platform/davinci/vpbe_osd.c pixfmt = osd->win[WIN_VID1].lconfig.pixfmt; osd 863 drivers/media/platform/davinci/vpbe_osd.c pixfmt = osd->win[WIN_VID0].lconfig.pixfmt; osd 1223 drivers/media/platform/davinci/vpbe_osd.c struct osd_state *osd = sd; osd 1224 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; osd 1229 drivers/media/platform/davinci/vpbe_osd.c spin_lock_irqsave(&osd->lock, flags); osd 1233 drivers/media/platform/davinci/vpbe_osd.c spin_unlock_irqrestore(&osd->lock, flags); osd 1239 drivers/media/platform/davinci/vpbe_osd.c osd->yc_pixfmt = lconfig->pixfmt; osd 1259 drivers/media/platform/davinci/vpbe_osd.c &osd->osdwin[OSDWIN_OSD1]; osd 1291 drivers/media/platform/davinci/vpbe_osd.c _osd_set_blink_attribute(sd, osd->is_blinking, osd 1292 drivers/media/platform/davinci/vpbe_osd.c osd->blink); osd 1307 drivers/media/platform/davinci/vpbe_osd.c &osd->osdwin[osdwin]; osd 1341 drivers/media/platform/davinci/vpbe_osd.c if (osd->win[WIN_VID0].lconfig.pixfmt == PIXFMT_RGB888) osd 1343 drivers/media/platform/davinci/vpbe_osd.c else if (osd->win[WIN_VID1].lconfig.pixfmt == PIXFMT_RGB888) osd 1349 drivers/media/platform/davinci/vpbe_osd.c osd->pingpong = osd 1350 drivers/media/platform/davinci/vpbe_osd.c _osd_dm6446_vid0_pingpong(sd, osd->field_inversion, osd 1355 drivers/media/platform/davinci/vpbe_osd.c spin_unlock_irqrestore(&osd->lock, flags); osd 1362 drivers/media/platform/davinci/vpbe_osd.c struct osd_state *osd = sd; osd 1363 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; osd 1369 drivers/media/platform/davinci/vpbe_osd.c spin_lock_irqsave(&osd->lock, flags); osd 1391 drivers/media/platform/davinci/vpbe_osd.c osdwin_state = &osd->osdwin[osdwin]; osd 1410 drivers/media/platform/davinci/vpbe_osd.c osd->is_blinking = 0; osd 1411 drivers/media/platform/davinci/vpbe_osd.c osd->blink = BLINK_X1; osd 1416 drivers/media/platform/davinci/vpbe_osd.c cfg->pixfmt = osd->yc_pixfmt; osd 1421 drivers/media/platform/davinci/vpbe_osd.c spin_unlock_irqrestore(&osd->lock, flags); osd 1426 drivers/media/platform/davinci/vpbe_osd.c struct osd_state *osd = sd; osd 1427 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; osd 1430 drivers/media/platform/davinci/vpbe_osd.c spin_lock_irqsave(&osd->lock, flags); osd 1433 drivers/media/platform/davinci/vpbe_osd.c spin_unlock_irqrestore(&osd->lock, flags); osd 1437 drivers/media/platform/davinci/vpbe_osd.c spin_unlock_irqrestore(&osd->lock, flags); osd 1439 drivers/media/platform/davinci/vpbe_osd.c spin_lock_irqsave(&osd->lock, flags); osd 1443 drivers/media/platform/davinci/vpbe_osd.c spin_unlock_irqrestore(&osd->lock, flags); osd 1448 drivers/media/platform/davinci/vpbe_osd.c struct osd_state *osd = sd; osd 1449 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; osd 1452 drivers/media/platform/davinci/vpbe_osd.c spin_lock_irqsave(&osd->lock, flags); osd 1455 drivers/media/platform/davinci/vpbe_osd.c spin_unlock_irqrestore(&osd->lock, flags); osd 1460 drivers/media/platform/davinci/vpbe_osd.c spin_unlock_irqrestore(&osd->lock, flags); osd 1490 drivers/media/platform/davinci/vpbe_osd.c static int osd_initialize(struct osd_state *osd) osd 1492 drivers/media/platform/davinci/vpbe_osd.c if (osd == NULL) osd 1494 drivers/media/platform/davinci/vpbe_osd.c _osd_init(osd); osd 1497 drivers/media/platform/davinci/vpbe_osd.c osd->yc_pixfmt = PIXFMT_YCBCRI; osd 1499 drivers/media/platform/davinci/vpbe_osd.c if (osd->vpbe_type == VPBE_VERSION_3) { osd 1504 drivers/media/platform/davinci/vpbe_osd.c osd->rom_clut = ROM_CLUT1; osd 1507 drivers/media/platform/davinci/vpbe_osd.c _osd_set_field_inversion(osd, osd->field_inversion); osd 1508 drivers/media/platform/davinci/vpbe_osd.c _osd_set_rom_clut(osd, osd->rom_clut); osd 1510 drivers/media/platform/davinci/vpbe_osd.c osd_init_layer(osd, WIN_OSD0); osd 1511 drivers/media/platform/davinci/vpbe_osd.c osd_init_layer(osd, WIN_VID0); osd 1512 drivers/media/platform/davinci/vpbe_osd.c osd_init_layer(osd, WIN_OSD1); osd 1513 drivers/media/platform/davinci/vpbe_osd.c osd_init_layer(osd, WIN_VID1); osd 1534 drivers/media/platform/davinci/vpbe_osd.c struct osd_state *osd; osd 1541 drivers/media/platform/davinci/vpbe_osd.c osd = devm_kzalloc(&pdev->dev, sizeof(struct osd_state), GFP_KERNEL); osd 1542 drivers/media/platform/davinci/vpbe_osd.c if (osd == NULL) osd 1546 drivers/media/platform/davinci/vpbe_osd.c osd->dev = &pdev->dev; osd 1547 drivers/media/platform/davinci/vpbe_osd.c osd->vpbe_type = pdev_id->driver_data; osd 1550 drivers/media/platform/davinci/vpbe_osd.c osd->osd_base = devm_ioremap_resource(&pdev->dev, res); osd 1551 drivers/media/platform/davinci/vpbe_osd.c if (IS_ERR(osd->osd_base)) osd 1552 drivers/media/platform/davinci/vpbe_osd.c return PTR_ERR(osd->osd_base); osd 1554 drivers/media/platform/davinci/vpbe_osd.c osd->osd_base_phys = res->start; osd 1555 drivers/media/platform/davinci/vpbe_osd.c osd->osd_size = resource_size(res); osd 1556 drivers/media/platform/davinci/vpbe_osd.c spin_lock_init(&osd->lock); osd 1557 drivers/media/platform/davinci/vpbe_osd.c osd->ops = osd_ops; osd 1558 drivers/media/platform/davinci/vpbe_osd.c platform_set_drvdata(pdev, osd); osd 1559 drivers/media/platform/davinci/vpbe_osd.c dev_notice(osd->dev, "OSD sub device probe success\n"); osd 231 drivers/media/platform/vivid/vivid-cec.c char osd[14]; osd 241 drivers/media/platform/vivid/vivid-cec.c cec_ops_set_osd_string(msg, &disp_ctl, osd); osd 244 drivers/media/platform/vivid/vivid-cec.c strscpy(dev->osd, osd, sizeof(dev->osd)); osd 248 drivers/media/platform/vivid/vivid-cec.c strscpy(dev->osd, osd, sizeof(dev->osd)); osd 252 drivers/media/platform/vivid/vivid-cec.c dev->osd[0] = 0; osd 528 drivers/media/platform/vivid/vivid-core.h char osd[14]; osd 51 drivers/media/platform/vivid/vivid-kthread-cap.c u16 *cap, const u16 *osd) osd 61 drivers/media/platform/vivid/vivid-kthread-cap.c *cap = *osd; osd 80 drivers/media/platform/vivid/vivid-kthread-cap.c *osd != dev->chromakey_out) osd 360 drivers/media/platform/vivid/vivid-kthread-cap.c u8 *osd = vosdbuf + vid_overlay_y * stride_osd; osd 368 drivers/media/platform/vivid/vivid-kthread-cap.c dev->blended_line + offset, osd, osd 372 drivers/media/platform/vivid/vivid-kthread-cap.c osd, (dev->loop_vid_overlay.width * twopixsize) / 2); osd 537 drivers/media/platform/vivid/vivid-kthread-cap.c if (dev->osd[0]) { osd 540 drivers/media/platform/vivid/vivid-kthread-cap.c " OSD \"%s\"", dev->osd); osd 546 drivers/media/platform/vivid/vivid-kthread-cap.c dev->osd[0] = 0; osd 872 drivers/net/ethernet/intel/i40e/i40e_main.c struct i40e_hw_port_stats *osd = &pf->stats_offsets; osd 881 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->eth.rx_bytes, &nsd->eth.rx_bytes); osd 885 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->eth.tx_bytes, &nsd->eth.tx_bytes); osd 888 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->eth.rx_discards, osd 893 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->eth.rx_unicast, osd 898 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->eth.rx_multicast, osd 903 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->eth.rx_broadcast, osd 908 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->eth.tx_unicast, osd 913 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->eth.tx_multicast, osd 918 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->eth.tx_broadcast, osd 923 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->tx_dropped_link_down, osd 928 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->crc_errors, &nsd->crc_errors); osd 932 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->illegal_bytes, &nsd->illegal_bytes); osd 936 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->mac_local_faults, osd 940 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->mac_remote_faults, osd 945 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->rx_length_errors, osd 950 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->link_xon_rx, &nsd->link_xon_rx); osd 953 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->link_xon_tx, &nsd->link_xon_tx); osd 956 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->link_xoff_rx, &nsd->link_xoff_rx); osd 959 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->link_xoff_tx, &nsd->link_xoff_tx); osd 964 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->priority_xoff_rx[i], osd 968 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->priority_xon_rx[i], osd 972 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->priority_xon_tx[i], osd 976 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->priority_xoff_tx[i], osd 981 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->priority_xon_2_xoff[i], osd 988 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->rx_size_64, &nsd->rx_size_64); osd 992 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->rx_size_127, &nsd->rx_size_127); osd 996 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->rx_size_255, &nsd->rx_size_255); osd 1000 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->rx_size_511, &nsd->rx_size_511); osd 1004 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->rx_size_1023, &nsd->rx_size_1023); osd 1008 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->rx_size_1522, &nsd->rx_size_1522); osd 1012 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->rx_size_big, &nsd->rx_size_big); osd 1017 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->tx_size_64, &nsd->tx_size_64); osd 1021 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->tx_size_127, &nsd->tx_size_127); osd 1025 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->tx_size_255, &nsd->tx_size_255); osd 1029 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->tx_size_511, &nsd->tx_size_511); osd 1033 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->tx_size_1023, &nsd->tx_size_1023); osd 1037 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->tx_size_1522, &nsd->tx_size_1522); osd 1041 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->tx_size_big, &nsd->tx_size_big); osd 1045 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->rx_undersize, &nsd->rx_undersize); osd 1048 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->rx_fragments, &nsd->rx_fragments); osd 1051 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->rx_oversize, &nsd->rx_oversize); osd 1054 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->rx_jabber, &nsd->rx_jabber); osd 1076 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->tx_lpi_count, &nsd->tx_lpi_count); osd 1079 drivers/net/ethernet/intel/i40e/i40e_main.c &osd->rx_lpi_count, &nsd->rx_lpi_count); osd 60 drivers/video/fbdev/s3c-fb.c #define OSD_BASE(win, variant) ((variant).osd + ((win) * (variant).osd_stride)) osd 95 drivers/video/fbdev/s3c-fb.c unsigned short osd; osd 1719 drivers/video/fbdev/s3c-fb.c .osd = VIDOSD_BASE, osd 1753 drivers/video/fbdev/s3c-fb.c .osd = 0x28, osd 223 fs/ceph/ioctl.c dl.osd = ceph_pg_to_acting_primary(osdc->osdmap, &pgid); osd 224 fs/ceph/ioctl.c if (dl.osd >= 0) { osd 226 fs/ceph/ioctl.c ceph_osd_addr(osdc->osdmap, dl.osd); osd 64 fs/ceph/ioctl.h __s64 osd; /* out: osd # */ osd 172 include/linux/ceph/osd_client.h int osd; osd 253 include/linux/ceph/osd_client.h struct ceph_osd *osd; osd 150 include/linux/ceph/osdmap.h int osd; osd 191 include/linux/ceph/osdmap.h static inline bool ceph_osd_exists(struct ceph_osdmap *map, int osd) osd 193 include/linux/ceph/osdmap.h return osd >= 0 && osd < map->max_osd && osd 194 include/linux/ceph/osdmap.h (map->osd_state[osd] & CEPH_OSD_EXISTS); osd 197 include/linux/ceph/osdmap.h static inline bool ceph_osd_is_up(struct ceph_osdmap *map, int osd) osd 199 include/linux/ceph/osdmap.h return ceph_osd_exists(map, osd) && osd 200 include/linux/ceph/osdmap.h (map->osd_state[osd] & CEPH_OSD_UP); osd 203 include/linux/ceph/osdmap.h static inline bool ceph_osd_is_down(struct ceph_osdmap *map, int osd) osd 205 include/linux/ceph/osdmap.h return !ceph_osd_is_up(map, osd); osd 209 include/linux/ceph/osdmap.h extern u32 ceph_get_primary_affinity(struct ceph_osdmap *map, int osd); osd 212 include/linux/ceph/osdmap.h int osd) osd 214 include/linux/ceph/osdmap.h if (osd >= map->max_osd) osd 216 include/linux/ceph/osdmap.h return &map->osd_addr[osd]; osd 80 include/media/davinci/vpbe.h struct osd_config_info osd; osd 1195 include/uapi/linux/cec-funcs.h const char *osd) osd 1197 include/uapi/linux/cec-funcs.h unsigned int len = strlen(osd); osd 1204 include/uapi/linux/cec-funcs.h memcpy(msg->msg + 3, osd, len); osd 1209 include/uapi/linux/cec-funcs.h char *osd) osd 1216 include/uapi/linux/cec-funcs.h memcpy(osd, msg->msg + 3, len); osd 1217 include/uapi/linux/cec-funcs.h osd[len] = '\0'; osd 106 net/ceph/debugfs.c pg->pgid.seed, pg->primary_temp.osd); osd 185 net/ceph/debugfs.c seq_printf(s, "osd%d\t%llu.%x\t", t->osd, t->pgid.pool, t->pgid.seed); osd 229 net/ceph/debugfs.c static void dump_requests(struct seq_file *s, struct ceph_osd *osd) osd 233 net/ceph/debugfs.c mutex_lock(&osd->lock); osd 234 net/ceph/debugfs.c for (n = rb_first(&osd->o_requests); n; n = rb_next(n)) { osd 241 net/ceph/debugfs.c mutex_unlock(&osd->lock); osd 255 net/ceph/debugfs.c static void dump_linger_requests(struct seq_file *s, struct ceph_osd *osd) osd 259 net/ceph/debugfs.c mutex_lock(&osd->lock); osd 260 net/ceph/debugfs.c for (n = rb_first(&osd->o_linger_requests); n; n = rb_next(n)) { osd 267 net/ceph/debugfs.c mutex_unlock(&osd->lock); osd 316 net/ceph/debugfs.c static void dump_backoffs(struct seq_file *s, struct ceph_osd *osd) osd 320 net/ceph/debugfs.c mutex_lock(&osd->lock); osd 321 net/ceph/debugfs.c for (n = rb_first(&osd->o_backoffs_by_id); n; n = rb_next(n)) { osd 325 net/ceph/debugfs.c seq_printf(s, "osd%d\t", osd->o_osd); osd 334 net/ceph/debugfs.c mutex_unlock(&osd->lock); osd 348 net/ceph/debugfs.c struct ceph_osd *osd = rb_entry(n, struct ceph_osd, o_node); osd 350 net/ceph/debugfs.c dump_requests(s, osd); osd 356 net/ceph/debugfs.c struct ceph_osd *osd = rb_entry(n, struct ceph_osd, o_node); osd 358 net/ceph/debugfs.c dump_linger_requests(s, osd); osd 364 net/ceph/debugfs.c struct ceph_osd *osd = rb_entry(n, struct ceph_osd, o_node); osd 366 net/ceph/debugfs.c dump_backoffs(s, osd); osd 49 net/ceph/osd_client.c static void link_request(struct ceph_osd *osd, struct ceph_osd_request *req); osd 50 net/ceph/osd_client.c static void unlink_request(struct ceph_osd *osd, struct ceph_osd_request *req); osd 51 net/ceph/osd_client.c static void link_linger(struct ceph_osd *osd, osd 53 net/ceph/osd_client.c static void unlink_linger(struct ceph_osd *osd, osd 55 net/ceph/osd_client.c static void clear_backoffs(struct ceph_osd *osd); osd 77 net/ceph/osd_client.c static inline void verify_osd_locked(struct ceph_osd *osd) osd 79 net/ceph/osd_client.c struct ceph_osd_client *osdc = osd->o_osdc; osd 81 net/ceph/osd_client.c WARN_ON(!(mutex_is_locked(&osd->lock) && osd 92 net/ceph/osd_client.c static inline void verify_osd_locked(struct ceph_osd *osd) { } osd 428 net/ceph/osd_client.c t->osd = CEPH_HOMELESS_OSD; osd 455 net/ceph/osd_client.c dest->osd = src->osd; osd 1159 net/ceph/osd_client.c struct ceph_osd *osd = rb_entry(n, struct ceph_osd, o_node); osd 1161 net/ceph/osd_client.c for (p = rb_first(&osd->o_requests); p; ) { osd 1181 net/ceph/osd_client.c static bool osd_homeless(struct ceph_osd *osd) osd 1183 net/ceph/osd_client.c return osd->o_osd == CEPH_HOMELESS_OSD; osd 1186 net/ceph/osd_client.c static bool osd_registered(struct ceph_osd *osd) osd 1188 net/ceph/osd_client.c verify_osdc_locked(osd->o_osdc); osd 1190 net/ceph/osd_client.c return !RB_EMPTY_NODE(&osd->o_node); osd 1196 net/ceph/osd_client.c static void osd_init(struct ceph_osd *osd) osd 1198 net/ceph/osd_client.c refcount_set(&osd->o_ref, 1); osd 1199 net/ceph/osd_client.c RB_CLEAR_NODE(&osd->o_node); osd 1200 net/ceph/osd_client.c osd->o_requests = RB_ROOT; osd 1201 net/ceph/osd_client.c osd->o_linger_requests = RB_ROOT; osd 1202 net/ceph/osd_client.c osd->o_backoff_mappings = RB_ROOT; osd 1203 net/ceph/osd_client.c osd->o_backoffs_by_id = RB_ROOT; osd 1204 net/ceph/osd_client.c INIT_LIST_HEAD(&osd->o_osd_lru); osd 1205 net/ceph/osd_client.c INIT_LIST_HEAD(&osd->o_keepalive_item); osd 1206 net/ceph/osd_client.c osd->o_incarnation = 1; osd 1207 net/ceph/osd_client.c mutex_init(&osd->lock); osd 1210 net/ceph/osd_client.c static void osd_cleanup(struct ceph_osd *osd) osd 1212 net/ceph/osd_client.c WARN_ON(!RB_EMPTY_NODE(&osd->o_node)); osd 1213 net/ceph/osd_client.c WARN_ON(!RB_EMPTY_ROOT(&osd->o_requests)); osd 1214 net/ceph/osd_client.c WARN_ON(!RB_EMPTY_ROOT(&osd->o_linger_requests)); osd 1215 net/ceph/osd_client.c WARN_ON(!RB_EMPTY_ROOT(&osd->o_backoff_mappings)); osd 1216 net/ceph/osd_client.c WARN_ON(!RB_EMPTY_ROOT(&osd->o_backoffs_by_id)); osd 1217 net/ceph/osd_client.c WARN_ON(!list_empty(&osd->o_osd_lru)); osd 1218 net/ceph/osd_client.c WARN_ON(!list_empty(&osd->o_keepalive_item)); osd 1220 net/ceph/osd_client.c if (osd->o_auth.authorizer) { osd 1221 net/ceph/osd_client.c WARN_ON(osd_homeless(osd)); osd 1222 net/ceph/osd_client.c ceph_auth_destroy_authorizer(osd->o_auth.authorizer); osd 1231 net/ceph/osd_client.c struct ceph_osd *osd; osd 1235 net/ceph/osd_client.c osd = kzalloc(sizeof(*osd), GFP_NOIO | __GFP_NOFAIL); osd 1236 net/ceph/osd_client.c osd_init(osd); osd 1237 net/ceph/osd_client.c osd->o_osdc = osdc; osd 1238 net/ceph/osd_client.c osd->o_osd = onum; osd 1240 net/ceph/osd_client.c ceph_con_init(&osd->o_con, osd, &osd_con_ops, &osdc->client->msgr); osd 1242 net/ceph/osd_client.c return osd; osd 1245 net/ceph/osd_client.c static struct ceph_osd *get_osd(struct ceph_osd *osd) osd 1247 net/ceph/osd_client.c if (refcount_inc_not_zero(&osd->o_ref)) { osd 1248 net/ceph/osd_client.c dout("get_osd %p %d -> %d\n", osd, refcount_read(&osd->o_ref)-1, osd 1249 net/ceph/osd_client.c refcount_read(&osd->o_ref)); osd 1250 net/ceph/osd_client.c return osd; osd 1252 net/ceph/osd_client.c dout("get_osd %p FAIL\n", osd); osd 1257 net/ceph/osd_client.c static void put_osd(struct ceph_osd *osd) osd 1259 net/ceph/osd_client.c dout("put_osd %p %d -> %d\n", osd, refcount_read(&osd->o_ref), osd 1260 net/ceph/osd_client.c refcount_read(&osd->o_ref) - 1); osd 1261 net/ceph/osd_client.c if (refcount_dec_and_test(&osd->o_ref)) { osd 1262 net/ceph/osd_client.c osd_cleanup(osd); osd 1263 net/ceph/osd_client.c kfree(osd); osd 1267 net/ceph/osd_client.c DEFINE_RB_FUNCS(osd, struct ceph_osd, o_osd, o_node) osd 1269 net/ceph/osd_client.c static void __move_osd_to_lru(struct ceph_osd *osd) osd 1271 net/ceph/osd_client.c struct ceph_osd_client *osdc = osd->o_osdc; osd 1273 net/ceph/osd_client.c dout("%s osd %p osd%d\n", __func__, osd, osd->o_osd); osd 1274 net/ceph/osd_client.c BUG_ON(!list_empty(&osd->o_osd_lru)); osd 1277 net/ceph/osd_client.c list_add_tail(&osd->o_osd_lru, &osdc->osd_lru); osd 1280 net/ceph/osd_client.c osd->lru_ttl = jiffies + osdc->client->options->osd_idle_ttl; osd 1283 net/ceph/osd_client.c static void maybe_move_osd_to_lru(struct ceph_osd *osd) osd 1285 net/ceph/osd_client.c if (RB_EMPTY_ROOT(&osd->o_requests) && osd 1286 net/ceph/osd_client.c RB_EMPTY_ROOT(&osd->o_linger_requests)) osd 1287 net/ceph/osd_client.c __move_osd_to_lru(osd); osd 1290 net/ceph/osd_client.c static void __remove_osd_from_lru(struct ceph_osd *osd) osd 1292 net/ceph/osd_client.c struct ceph_osd_client *osdc = osd->o_osdc; osd 1294 net/ceph/osd_client.c dout("%s osd %p osd%d\n", __func__, osd, osd->o_osd); osd 1297 net/ceph/osd_client.c if (!list_empty(&osd->o_osd_lru)) osd 1298 net/ceph/osd_client.c list_del_init(&osd->o_osd_lru); osd 1306 net/ceph/osd_client.c static void close_osd(struct ceph_osd *osd) osd 1308 net/ceph/osd_client.c struct ceph_osd_client *osdc = osd->o_osdc; osd 1312 net/ceph/osd_client.c dout("%s osd %p osd%d\n", __func__, osd, osd->o_osd); osd 1314 net/ceph/osd_client.c ceph_con_close(&osd->o_con); osd 1316 net/ceph/osd_client.c for (n = rb_first(&osd->o_requests); n; ) { osd 1323 net/ceph/osd_client.c unlink_request(osd, req); osd 1326 net/ceph/osd_client.c for (n = rb_first(&osd->o_linger_requests); n; ) { osd 1334 net/ceph/osd_client.c unlink_linger(osd, lreq); osd 1337 net/ceph/osd_client.c clear_backoffs(osd); osd 1339 net/ceph/osd_client.c __remove_osd_from_lru(osd); osd 1340 net/ceph/osd_client.c erase_osd(&osdc->osds, osd); osd 1341 net/ceph/osd_client.c put_osd(osd); osd 1347 net/ceph/osd_client.c static int reopen_osd(struct ceph_osd *osd) osd 1351 net/ceph/osd_client.c dout("%s osd %p osd%d\n", __func__, osd, osd->o_osd); osd 1353 net/ceph/osd_client.c if (RB_EMPTY_ROOT(&osd->o_requests) && osd 1354 net/ceph/osd_client.c RB_EMPTY_ROOT(&osd->o_linger_requests)) { osd 1355 net/ceph/osd_client.c close_osd(osd); osd 1359 net/ceph/osd_client.c peer_addr = &osd->o_osdc->osdmap->osd_addr[osd->o_osd]; osd 1360 net/ceph/osd_client.c if (!memcmp(peer_addr, &osd->o_con.peer_addr, sizeof (*peer_addr)) && osd 1361 net/ceph/osd_client.c !ceph_con_opened(&osd->o_con)) { osd 1367 net/ceph/osd_client.c for (n = rb_first(&osd->o_requests); n; n = rb_next(n)) { osd 1376 net/ceph/osd_client.c ceph_con_close(&osd->o_con); osd 1377 net/ceph/osd_client.c ceph_con_open(&osd->o_con, CEPH_ENTITY_TYPE_OSD, osd->o_osd, peer_addr); osd 1378 net/ceph/osd_client.c osd->o_incarnation++; osd 1386 net/ceph/osd_client.c struct ceph_osd *osd; osd 1394 net/ceph/osd_client.c osd = lookup_osd(&osdc->osds, o); osd 1396 net/ceph/osd_client.c osd = &osdc->homeless_osd; osd 1397 net/ceph/osd_client.c if (!osd) { osd 1401 net/ceph/osd_client.c osd = create_osd(osdc, o); osd 1402 net/ceph/osd_client.c insert_osd(&osdc->osds, osd); osd 1403 net/ceph/osd_client.c ceph_con_open(&osd->o_con, CEPH_ENTITY_TYPE_OSD, osd->o_osd, osd 1404 net/ceph/osd_client.c &osdc->osdmap->osd_addr[osd->o_osd]); osd 1407 net/ceph/osd_client.c dout("%s osdc %p osd%d -> osd %p\n", __func__, osdc, o, osd); osd 1408 net/ceph/osd_client.c return osd; osd 1416 net/ceph/osd_client.c static void link_request(struct ceph_osd *osd, struct ceph_osd_request *req) osd 1418 net/ceph/osd_client.c verify_osd_locked(osd); osd 1420 net/ceph/osd_client.c dout("%s osd %p osd%d req %p tid %llu\n", __func__, osd, osd->o_osd, osd 1423 net/ceph/osd_client.c if (!osd_homeless(osd)) osd 1424 net/ceph/osd_client.c __remove_osd_from_lru(osd); osd 1426 net/ceph/osd_client.c atomic_inc(&osd->o_osdc->num_homeless); osd 1428 net/ceph/osd_client.c get_osd(osd); osd 1429 net/ceph/osd_client.c insert_request(&osd->o_requests, req); osd 1430 net/ceph/osd_client.c req->r_osd = osd; osd 1433 net/ceph/osd_client.c static void unlink_request(struct ceph_osd *osd, struct ceph_osd_request *req) osd 1435 net/ceph/osd_client.c verify_osd_locked(osd); osd 1436 net/ceph/osd_client.c WARN_ON(req->r_osd != osd); osd 1437 net/ceph/osd_client.c dout("%s osd %p osd%d req %p tid %llu\n", __func__, osd, osd->o_osd, osd 1441 net/ceph/osd_client.c erase_request(&osd->o_requests, req); osd 1442 net/ceph/osd_client.c put_osd(osd); osd 1444 net/ceph/osd_client.c if (!osd_homeless(osd)) osd 1445 net/ceph/osd_client.c maybe_move_osd_to_lru(osd); osd 1447 net/ceph/osd_client.c atomic_dec(&osd->o_osdc->num_homeless); osd 1525 net/ceph/osd_client.c t->osd = CEPH_HOMELESS_OSD; osd 1550 net/ceph/osd_client.c t->osd = CEPH_HOMELESS_OSD; osd 1600 net/ceph/osd_client.c t->osd = acting.primary; osd 1610 net/ceph/osd_client.c legacy_change, force_resend, split, ct_res, t->osd); osd 1869 net/ceph/osd_client.c static void clear_backoffs(struct ceph_osd *osd) osd 1871 net/ceph/osd_client.c while (!RB_EMPTY_ROOT(&osd->o_backoff_mappings)) { osd 1873 net/ceph/osd_client.c rb_entry(rb_first(&osd->o_backoff_mappings), osd 1882 net/ceph/osd_client.c erase_backoff_by_id(&osd->o_backoffs_by_id, backoff); osd 1885 net/ceph/osd_client.c erase_spg_mapping(&osd->o_backoff_mappings, spg); osd 1916 net/ceph/osd_client.c struct ceph_osd *osd = req->r_osd; osd 1921 net/ceph/osd_client.c spg = lookup_spg_mapping(&osd->o_backoff_mappings, &req->r_t.spgid); osd 1931 net/ceph/osd_client.c __func__, req, req->r_tid, osd->o_osd, backoff->spgid.pgid.pool, osd 2215 net/ceph/osd_client.c struct ceph_osd *osd = req->r_osd; osd 2217 net/ceph/osd_client.c verify_osd_locked(osd); osd 2218 net/ceph/osd_client.c WARN_ON(osd->o_osd != req->r_t.osd); osd 2242 net/ceph/osd_client.c req->r_t.spgid.shard, osd->o_osd, req->r_t.epoch, req->r_flags, osd 2249 net/ceph/osd_client.c req->r_sent = osd->o_incarnation; osd 2251 net/ceph/osd_client.c ceph_con_send(&osd->o_con, ceph_msg_get(req->r_request)); osd 2281 net/ceph/osd_client.c struct ceph_osd *osd; osd 2295 net/ceph/osd_client.c osd = lookup_create_osd(osdc, req->r_t.osd, wrlocked); osd 2296 net/ceph/osd_client.c if (IS_ERR(osd)) { osd 2297 net/ceph/osd_client.c WARN_ON(PTR_ERR(osd) != -EAGAIN || wrlocked); osd 2332 net/ceph/osd_client.c } else if (!osd_homeless(osd)) { osd 2338 net/ceph/osd_client.c mutex_lock(&osd->lock); osd 2345 net/ceph/osd_client.c link_request(osd, req); osd 2350 net/ceph/osd_client.c mutex_unlock(&osd->lock); osd 2665 net/ceph/osd_client.c WARN_ON(lreq->osd); osd 2723 net/ceph/osd_client.c static void link_linger(struct ceph_osd *osd, osd 2726 net/ceph/osd_client.c verify_osd_locked(osd); osd 2727 net/ceph/osd_client.c WARN_ON(!lreq->linger_id || lreq->osd); osd 2728 net/ceph/osd_client.c dout("%s osd %p osd%d lreq %p linger_id %llu\n", __func__, osd, osd 2729 net/ceph/osd_client.c osd->o_osd, lreq, lreq->linger_id); osd 2731 net/ceph/osd_client.c if (!osd_homeless(osd)) osd 2732 net/ceph/osd_client.c __remove_osd_from_lru(osd); osd 2734 net/ceph/osd_client.c atomic_inc(&osd->o_osdc->num_homeless); osd 2736 net/ceph/osd_client.c get_osd(osd); osd 2737 net/ceph/osd_client.c insert_linger(&osd->o_linger_requests, lreq); osd 2738 net/ceph/osd_client.c lreq->osd = osd; osd 2741 net/ceph/osd_client.c static void unlink_linger(struct ceph_osd *osd, osd 2744 net/ceph/osd_client.c verify_osd_locked(osd); osd 2745 net/ceph/osd_client.c WARN_ON(lreq->osd != osd); osd 2746 net/ceph/osd_client.c dout("%s osd %p osd%d lreq %p linger_id %llu\n", __func__, osd, osd 2747 net/ceph/osd_client.c osd->o_osd, lreq, lreq->linger_id); osd 2749 net/ceph/osd_client.c lreq->osd = NULL; osd 2750 net/ceph/osd_client.c erase_linger(&osd->o_linger_requests, lreq); osd 2751 net/ceph/osd_client.c put_osd(osd); osd 2753 net/ceph/osd_client.c if (!osd_homeless(osd)) osd 2754 net/ceph/osd_client.c maybe_move_osd_to_lru(osd); osd 2756 net/ceph/osd_client.c atomic_dec(&osd->o_osdc->num_homeless); osd 3096 net/ceph/osd_client.c link_request(lreq->osd, req); osd 3103 net/ceph/osd_client.c struct ceph_osd *osd; osd 3115 net/ceph/osd_client.c osd = lookup_create_osd(osdc, lreq->t.osd, true); osd 3116 net/ceph/osd_client.c link_linger(osd, lreq); osd 3149 net/ceph/osd_client.c unlink_linger(lreq->osd, lreq); osd 3289 net/ceph/osd_client.c struct ceph_osd *osd = rb_entry(n, struct ceph_osd, o_node); osd 3292 net/ceph/osd_client.c for (p = rb_first(&osd->o_requests); p; ) { osd 3300 net/ceph/osd_client.c req, req->r_tid, osd->o_osd); osd 3306 net/ceph/osd_client.c req->r_tid, osd->o_osd); osd 3310 net/ceph/osd_client.c for (p = rb_first(&osd->o_linger_requests); p; p = rb_next(p)) { osd 3315 net/ceph/osd_client.c lreq, lreq->linger_id, osd->o_osd); osd 3325 net/ceph/osd_client.c list_move_tail(&osd->o_keepalive_item, &slow_osds); osd 3347 net/ceph/osd_client.c struct ceph_osd *osd = list_first_entry(&slow_osds, osd 3350 net/ceph/osd_client.c list_del_init(&osd->o_keepalive_item); osd 3351 net/ceph/osd_client.c ceph_con_keepalive(&osd->o_con); osd 3365 net/ceph/osd_client.c struct ceph_osd *osd, *nosd; osd 3369 net/ceph/osd_client.c list_for_each_entry_safe(osd, nosd, &osdc->osd_lru, o_osd_lru) { osd 3370 net/ceph/osd_client.c if (time_before(jiffies, osd->lru_ttl)) osd 3373 net/ceph/osd_client.c WARN_ON(!RB_EMPTY_ROOT(&osd->o_requests)); osd 3374 net/ceph/osd_client.c WARN_ON(!RB_EMPTY_ROOT(&osd->o_linger_requests)); osd 3375 net/ceph/osd_client.c close_osd(osd); osd 3593 net/ceph/osd_client.c static void handle_reply(struct ceph_osd *osd, struct ceph_msg *msg) osd 3595 net/ceph/osd_client.c struct ceph_osd_client *osdc = osd->o_osdc; osd 3606 net/ceph/osd_client.c if (!osd_registered(osd)) { osd 3607 net/ceph/osd_client.c dout("%s osd%d unknown\n", __func__, osd->o_osd); osd 3610 net/ceph/osd_client.c WARN_ON(osd->o_osd != le64_to_cpu(msg->hdr.src.num)); osd 3612 net/ceph/osd_client.c mutex_lock(&osd->lock); osd 3613 net/ceph/osd_client.c req = lookup_request(&osd->o_requests, tid); osd 3615 net/ceph/osd_client.c dout("%s osd%d tid %llu unknown\n", __func__, osd->o_osd, tid); osd 3647 net/ceph/osd_client.c unlink_request(osd, req); osd 3648 net/ceph/osd_client.c mutex_unlock(&osd->lock); osd 3690 net/ceph/osd_client.c mutex_unlock(&osd->lock); osd 3699 net/ceph/osd_client.c mutex_unlock(&osd->lock); osd 3735 net/ceph/osd_client.c struct ceph_osd *osd; osd 3737 net/ceph/osd_client.c osd = lookup_create_osd(osdc, lreq->t.osd, true); osd 3738 net/ceph/osd_client.c if (osd != lreq->osd) { osd 3739 net/ceph/osd_client.c unlink_linger(lreq->osd, lreq); osd 3740 net/ceph/osd_client.c link_linger(osd, lreq); osd 3750 net/ceph/osd_client.c static void scan_requests(struct ceph_osd *osd, osd 3757 net/ceph/osd_client.c struct ceph_osd_client *osdc = osd->o_osdc; osd 3761 net/ceph/osd_client.c for (n = rb_first(&osd->o_linger_requests); n; ) { osd 3797 net/ceph/osd_client.c for (n = rb_first(&osd->o_requests); n; ) { osd 3819 net/ceph/osd_client.c unlink_request(osd, req); osd 3882 net/ceph/osd_client.c struct ceph_osd *osd = rb_entry(n, struct ceph_osd, o_node); osd 3886 net/ceph/osd_client.c scan_requests(osd, skipped_map, was_full, true, need_resend, osd 3888 net/ceph/osd_client.c if (!ceph_osd_is_up(osdc->osdmap, osd->o_osd) || osd 3889 net/ceph/osd_client.c memcmp(&osd->o_con.peer_addr, osd 3890 net/ceph/osd_client.c ceph_osd_addr(osdc->osdmap, osd->o_osd), osd 3892 net/ceph/osd_client.c close_osd(osd); osd 3925 net/ceph/osd_client.c struct ceph_osd *osd; osd 3930 net/ceph/osd_client.c osd = lookup_create_osd(osdc, req->r_t.osd, true); osd 3931 net/ceph/osd_client.c link_request(osd, req); osd 3933 net/ceph/osd_client.c if (!osd_homeless(osd) && !req->r_t.paused) osd 3941 net/ceph/osd_client.c if (!osd_homeless(lreq->osd)) osd 4068 net/ceph/osd_client.c static void kick_osd_requests(struct ceph_osd *osd) osd 4072 net/ceph/osd_client.c clear_backoffs(osd); osd 4074 net/ceph/osd_client.c for (n = rb_first(&osd->o_requests); n; ) { osd 4087 net/ceph/osd_client.c for (n = rb_first(&osd->o_linger_requests); n; n = rb_next(n)) { osd 4100 net/ceph/osd_client.c struct ceph_osd *osd = con->private; osd 4101 net/ceph/osd_client.c struct ceph_osd_client *osdc = osd->o_osdc; osd 4103 net/ceph/osd_client.c dout("%s osd %p osd%d\n", __func__, osd, osd->o_osd); osd 4106 net/ceph/osd_client.c if (!osd_registered(osd)) { osd 4107 net/ceph/osd_client.c dout("%s osd%d unknown\n", __func__, osd->o_osd); osd 4111 net/ceph/osd_client.c if (!reopen_osd(osd)) osd 4112 net/ceph/osd_client.c kick_osd_requests(osd); osd 4216 net/ceph/osd_client.c static void handle_backoff_block(struct ceph_osd *osd, struct MOSDBackoff *m) osd 4222 net/ceph/osd_client.c dout("%s osd%d spgid %llu.%xs%d id %llu\n", __func__, osd->o_osd, osd 4225 net/ceph/osd_client.c spg = lookup_spg_mapping(&osd->o_backoff_mappings, &m->spgid); osd 4233 net/ceph/osd_client.c insert_spg_mapping(&osd->o_backoff_mappings, spg); osd 4249 net/ceph/osd_client.c insert_backoff_by_id(&osd->o_backoffs_by_id, backoff); osd 4260 net/ceph/osd_client.c ceph_con_send(&osd->o_con, msg); osd 4275 net/ceph/osd_client.c static void handle_backoff_unblock(struct ceph_osd *osd, osd 4282 net/ceph/osd_client.c dout("%s osd%d spgid %llu.%xs%d id %llu\n", __func__, osd->o_osd, osd 4285 net/ceph/osd_client.c backoff = lookup_backoff_by_id(&osd->o_backoffs_by_id, m->id); osd 4288 net/ceph/osd_client.c __func__, osd->o_osd, m->spgid.pgid.pool, osd 4296 net/ceph/osd_client.c __func__, osd->o_osd, m->spgid.pgid.pool, osd 4301 net/ceph/osd_client.c spg = lookup_spg_mapping(&osd->o_backoff_mappings, &backoff->spgid); osd 4305 net/ceph/osd_client.c erase_backoff_by_id(&osd->o_backoffs_by_id, backoff); osd 4309 net/ceph/osd_client.c erase_spg_mapping(&osd->o_backoff_mappings, spg); osd 4313 net/ceph/osd_client.c for (n = rb_first(&osd->o_requests); n; n = rb_next(n)) { osd 4333 net/ceph/osd_client.c static void handle_backoff(struct ceph_osd *osd, struct ceph_msg *msg) osd 4335 net/ceph/osd_client.c struct ceph_osd_client *osdc = osd->o_osdc; osd 4340 net/ceph/osd_client.c if (!osd_registered(osd)) { osd 4341 net/ceph/osd_client.c dout("%s osd%d unknown\n", __func__, osd->o_osd); osd 4345 net/ceph/osd_client.c WARN_ON(osd->o_osd != le64_to_cpu(msg->hdr.src.num)); osd 4347 net/ceph/osd_client.c mutex_lock(&osd->lock); osd 4357 net/ceph/osd_client.c handle_backoff_block(osd, &m); osd 4360 net/ceph/osd_client.c handle_backoff_unblock(osd, &m); osd 4363 net/ceph/osd_client.c pr_err("%s osd%d unknown op %d\n", __func__, osd->o_osd, m.op); osd 4370 net/ceph/osd_client.c mutex_unlock(&osd->lock); osd 4545 net/ceph/osd_client.c struct ceph_osd *osd = rb_entry(n, struct ceph_osd, o_node); osd 4547 net/ceph/osd_client.c mutex_lock(&osd->lock); osd 4548 net/ceph/osd_client.c for (p = rb_first(&osd->o_requests); p; p = rb_next(p)) { osd 4559 net/ceph/osd_client.c mutex_unlock(&osd->lock); osd 4568 net/ceph/osd_client.c mutex_unlock(&osd->lock); osd 5121 net/ceph/osd_client.c struct ceph_osd *osd = rb_entry(n, struct ceph_osd, o_node); osd 5124 net/ceph/osd_client.c if (!reopen_osd(osd)) osd 5125 net/ceph/osd_client.c kick_osd_requests(osd); osd 5212 net/ceph/osd_client.c struct ceph_osd *osd = rb_entry(rb_first(&osdc->osds), osd 5214 net/ceph/osd_client.c close_osd(osd); osd 5410 net/ceph/osd_client.c struct ceph_osd *osd = con->private; osd 5411 net/ceph/osd_client.c struct ceph_osd_client *osdc = osd->o_osdc; osd 5419 net/ceph/osd_client.c handle_reply(osd, msg); osd 5422 net/ceph/osd_client.c handle_backoff(osd, msg); osd 5445 net/ceph/osd_client.c struct ceph_osd *osd = con->private; osd 5446 net/ceph/osd_client.c struct ceph_osd_client *osdc = osd->o_osdc; osd 5454 net/ceph/osd_client.c if (!osd_registered(osd)) { osd 5455 net/ceph/osd_client.c dout("%s osd%d unknown, skipping\n", __func__, osd->o_osd); osd 5459 net/ceph/osd_client.c WARN_ON(osd->o_osd != le64_to_cpu(hdr->src.num)); osd 5461 net/ceph/osd_client.c mutex_lock(&osd->lock); osd 5462 net/ceph/osd_client.c req = lookup_request(&osd->o_requests, tid); osd 5465 net/ceph/osd_client.c osd->o_osd, tid); osd 5474 net/ceph/osd_client.c __func__, osd->o_osd, req->r_tid, front_len, osd 5486 net/ceph/osd_client.c __func__, osd->o_osd, req->r_tid, data_len, osd 5497 net/ceph/osd_client.c mutex_unlock(&osd->lock); osd 5534 net/ceph/osd_client.c struct ceph_osd *osd = con->private; osd 5547 net/ceph/osd_client.c osd->o_osd, type); osd 5558 net/ceph/osd_client.c struct ceph_osd *osd = con->private; osd 5559 net/ceph/osd_client.c if (get_osd(osd)) osd 5566 net/ceph/osd_client.c struct ceph_osd *osd = con->private; osd 5567 net/ceph/osd_client.c put_osd(osd); osd 1280 net/ceph/osdmap.c u32 osd; osd 1282 net/ceph/osdmap.c ceph_decode_32_safe(p, end, osd, e_inval); osd 1283 net/ceph/osdmap.c if (osd == (u32)-1 && incremental) osd 1290 net/ceph/osdmap.c pg->primary_temp.osd = osd; osd 1310 net/ceph/osdmap.c u32 ceph_get_primary_affinity(struct ceph_osdmap *map, int osd) osd 1312 net/ceph/osdmap.c BUG_ON(osd >= map->max_osd); osd 1317 net/ceph/osdmap.c return map->osd_primary_affinity[osd]; osd 1320 net/ceph/osdmap.c static int set_primary_affinity(struct ceph_osdmap *map, int osd, u32 aff) osd 1322 net/ceph/osdmap.c BUG_ON(osd >= map->max_osd); osd 1338 net/ceph/osdmap.c map->osd_primary_affinity[osd] = aff; osd 1380 net/ceph/osdmap.c u32 osd, aff; osd 1383 net/ceph/osdmap.c ceph_decode_32_safe(p, end, osd, e_inval); osd 1386 net/ceph/osdmap.c ret = set_primary_affinity(map, osd, aff); osd 1390 net/ceph/osdmap.c pr_info("osd%d primary-affinity 0x%x\n", osd, aff); osd 1668 net/ceph/osdmap.c s32 osd; osd 1672 net/ceph/osdmap.c osd = ceph_decode_32(p); osd 1674 net/ceph/osdmap.c BUG_ON(osd >= map->max_osd); osd 1675 net/ceph/osdmap.c pr_info("osd%d weight 0x%x %s\n", osd, w, osd 1678 net/ceph/osdmap.c map->osd_weight[osd] = w; osd 1685 net/ceph/osdmap.c map->osd_state[osd] |= CEPH_OSD_EXISTS; osd 1686 net/ceph/osdmap.c map->osd_state[osd] &= ~(CEPH_OSD_AUTOOUT | osd 1696 net/ceph/osdmap.c s32 osd; osd 1700 net/ceph/osdmap.c osd = ceph_decode_32(p); osd 1707 net/ceph/osdmap.c BUG_ON(osd >= map->max_osd); osd 1708 net/ceph/osdmap.c if ((map->osd_state[osd] & CEPH_OSD_UP) && osd 1710 net/ceph/osdmap.c pr_info("osd%d down\n", osd); osd 1711 net/ceph/osdmap.c if ((map->osd_state[osd] & CEPH_OSD_EXISTS) && osd 1713 net/ceph/osdmap.c pr_info("osd%d does not exist\n", osd); osd 1714 net/ceph/osdmap.c ret = set_primary_affinity(map, osd, osd 1718 net/ceph/osdmap.c memset(map->osd_addr + osd, 0, sizeof(*map->osd_addr)); osd 1719 net/ceph/osdmap.c map->osd_state[osd] = 0; osd 1721 net/ceph/osdmap.c map->osd_state[osd] ^= xorstate; osd 1729 net/ceph/osdmap.c s32 osd; osd 1732 net/ceph/osdmap.c osd = ceph_decode_32(p); osd 1733 net/ceph/osdmap.c BUG_ON(osd >= map->max_osd); osd 1736 net/ceph/osdmap.c pr_info("osd%d up\n", osd); osd 1737 net/ceph/osdmap.c map->osd_state[osd] |= CEPH_OSD_EXISTS | CEPH_OSD_UP; osd 1738 net/ceph/osdmap.c map->osd_addr[osd] = addr; osd 2129 net/ceph/osdmap.c static int calc_pg_rank(int osd, const struct ceph_osds *acting) osd 2134 net/ceph/osdmap.c if (acting->osds[i] == osd) osd 2389 net/ceph/osdmap.c int osd = pg->pg_upmap.osds[i]; osd 2391 net/ceph/osdmap.c if (osd != CRUSH_ITEM_NONE && osd 2392 net/ceph/osdmap.c osd < osdmap->max_osd && osd 2393 net/ceph/osdmap.c osdmap->osd_weight[osd] == 0) { osd 2418 net/ceph/osdmap.c int osd = raw->osds[j]; osd 2420 net/ceph/osdmap.c if (osd == to) { osd 2425 net/ceph/osdmap.c if (osd == from && pos < 0 && osd 2496 net/ceph/osdmap.c int osd = up->osds[i]; osd 2498 net/ceph/osdmap.c if (osd != CRUSH_ITEM_NONE && osd 2499 net/ceph/osdmap.c osdmap->osd_primary_affinity[osd] != osd 2513 net/ceph/osdmap.c int osd = up->osds[i]; osd 2516 net/ceph/osdmap.c if (osd == CRUSH_ITEM_NONE) osd 2519 net/ceph/osdmap.c aff = osdmap->osd_primary_affinity[osd]; osd 2522 net/ceph/osdmap.c pps, osd) >> 16) >= aff) { osd 2592 net/ceph/osdmap.c temp->primary = pg->primary_temp.osd;