/drivers/net/ethernet/cavium/thunder/ |
D | thunder_bgx.c | 43 struct bgx *bgx; member 67 struct bgx { struct 79 static struct bgx *bgx_vnic[MAX_BGX_THUNDER]; argument 107 static u64 bgx_reg_read(struct bgx *bgx, u8 lmac, u64 offset) in bgx_reg_read() argument 109 void __iomem *addr = bgx->reg_base + ((u32)lmac << 20) + offset; in bgx_reg_read() 114 static void bgx_reg_write(struct bgx *bgx, u8 lmac, u64 offset, u64 val) in bgx_reg_write() argument 116 void __iomem *addr = bgx->reg_base + ((u32)lmac << 20) + offset; in bgx_reg_write() 121 static void bgx_reg_modify(struct bgx *bgx, u8 lmac, u64 offset, u64 val) in bgx_reg_modify() argument 123 void __iomem *addr = bgx->reg_base + ((u32)lmac << 20) + offset; in bgx_reg_modify() 128 static int bgx_poll_reg(struct bgx *bgx, u8 lmac, u64 reg, u64 mask, bool zero) in bgx_poll_reg() argument [all …]
|
D | nic_main.c | 53 #define NIC_SET_VF_LMAC_MAP(bgx, lmac) (((bgx & 0xF) << 4) | (lmac & 0xF)) argument 231 static void nic_get_bgx_stats(struct nicpf *nic, struct bgx_stats_msg *bgx) in nic_get_bgx_stats() argument 236 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats() 237 lmac = NIC_GET_LMAC_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats() 240 mbx.bgx_stats.vf_id = bgx->vf_id; in nic_get_bgx_stats() 241 mbx.bgx_stats.rx = bgx->rx; in nic_get_bgx_stats() 242 mbx.bgx_stats.idx = bgx->idx; in nic_get_bgx_stats() 243 if (bgx->rx) in nic_get_bgx_stats() 245 lmac, bgx->idx); in nic_get_bgx_stats() 248 lmac, bgx->idx); in nic_get_bgx_stats() [all …]
|
D | thunder_bgx.h | 226 int bgx_get_lmac_count(int node, int bgx);
|
D | nicvf_main.c | 192 static void nicvf_read_bgx_stats(struct nicvf *nic, struct bgx_stats_msg *bgx) in nicvf_read_bgx_stats() argument 194 if (bgx->rx) in nicvf_read_bgx_stats() 195 nic->bgx_stats.rx_stats[bgx->idx] = bgx->stats; in nicvf_read_bgx_stats() 197 nic->bgx_stats.tx_stats[bgx->idx] = bgx->stats; in nicvf_read_bgx_stats()
|
/drivers/video/fbdev/matrox/ |
D | matroxfb_accel.c | 337 static void matroxfb_cfb4_clear(struct matrox_fb_info *minfo, u_int32_t bgx, in matroxfb_cfb4_clear() argument 363 mga_outl(M_FCOL, bgx); in matroxfb_cfb4_clear() 375 u_int8_t bgx2 = bgx & 0xF0; in matroxfb_cfb4_clear() 384 u_int8_t bgx2 = bgx & 0x0F; in matroxfb_cfb4_clear() 406 u_int32_t bgx, const u_int8_t *chardata, in matroxfb_1bpp_imageblit() argument 442 mga_outl(M_BCOL, bgx); in matroxfb_1bpp_imageblit() 505 u_int32_t fgx, bgx; in matroxfb_imageblit() local 508 bgx = ((u_int32_t*)info->pseudo_palette)[image->bg_color]; in matroxfb_imageblit() 509 …matroxfb_1bpp_imageblit(minfo, fgx, bgx, image->data, image->width, image->height, image->dy, imag… in matroxfb_imageblit()
|
/drivers/video/fbdev/core/ |
D | cfbimgblt.c | 219 u32 fgx = fgcolor, bgx = bgcolor, bpp = p->var.bits_per_pixel; in fast_imageblit() local 242 bgx <<= bpp; in fast_imageblit() 244 bgx |= bgcolor; in fast_imageblit() 248 eorx = fgx ^ bgx; in fast_imageblit() 257 FB_WRITEL((end_mask & eorx)^bgx, dst++); in fast_imageblit()
|
D | sysimgblt.c | 189 u32 fgx = fgcolor, bgx = bgcolor, bpp = p->var.bits_per_pixel; in fast_imageblit() local 218 bgx <<= bpp; in fast_imageblit() 220 bgx |= bgcolor; in fast_imageblit() 224 eorx = fgx ^ bgx; in fast_imageblit() 228 colortab[i] = (tab[i] & eorx) ^ bgx; in fast_imageblit()
|
/drivers/video/fbdev/ |
D | pm3fb.c | 515 u32 fgx, bgx; in pm3fb_imageblit() local 527 bgx = image->bg_color; in pm3fb_imageblit() 532 bgx = par->palette[image->bg_color]; in pm3fb_imageblit() 542 bgx |= bgx << 8; in pm3fb_imageblit() 546 bgx |= bgx << 16; in pm3fb_imageblit() 552 PM3_WRITE_REG(par, PM3BackgroundColor, bgx); in pm3fb_imageblit()
|
D | pm2fb.c | 1160 u32 fgx, bgx; in pm2fb_imageblit() local 1178 bgx = image->bg_color; in pm2fb_imageblit() 1183 bgx = par->palette[image->bg_color]; in pm2fb_imageblit() 1188 bgx |= bgx << 8; in pm2fb_imageblit() 1192 bgx |= bgx << 16; in pm2fb_imageblit() 1213 pm2_WR(par, PM2R_CONSTANT_COLOR, bgx); in pm2fb_imageblit() 1227 pm2_WR(par, PM2R_FB_BLOCK_COLOR, bgx); in pm2fb_imageblit()
|
/drivers/video/fbdev/riva/ |
D | fbdev.c | 1493 u32 fgx = 0, bgx = 0, width, tmp; in rivafb_imageblit() local 1506 bgx = image->bg_color; in rivafb_imageblit() 1512 bgx = ((u32 *)info->pseudo_palette)[image->bg_color]; in rivafb_imageblit() 1515 bgx = par->palette[image->bg_color]; in rivafb_imageblit() 1518 convert_bgcolor_16(&bgx); in rivafb_imageblit() 1528 NV_WR32(&par->riva.Bitmap->Color0E, 0, bgx); in rivafb_imageblit()
|