/freebsd-11-stable/usr.sbin/i2c/ |
H A D | Makefile | 3 PROG= i2c 4 MAN= i2c.8
|
/freebsd-11-stable/sys/dev/drm2/radeon/ |
H A D | radeon_i2c.c | 92 /* bit banging i2c */ 96 struct radeon_i2c_chan *i2c = device_get_softc(dev); local 97 struct radeon_device *rdev = i2c->dev->dev_private; 98 struct radeon_i2c_bus_rec *rec = &i2c->rec; 101 /* RV410 appears to have a bug where the hw i2c in reset 102 * holds the i2c port in a bad state - switch hw i2c away before 164 struct radeon_i2c_chan *i2c = device_get_softc(dev); local 165 struct radeon_device *rdev = i2c->dev->dev_private; 166 struct radeon_i2c_bus_rec *rec = &i2c 181 struct radeon_i2c_chan *i2c = device_get_softc(dev); local 196 struct radeon_i2c_chan *i2c = device_get_softc(dev); local 210 struct radeon_i2c_chan *i2c = device_get_softc(dev); local 223 struct radeon_i2c_chan *i2c = device_get_softc(dev); local 244 struct radeon_i2c_chan *i2c; local 402 r100_hw_i2c_xfer(struct radeon_i2c_chan *i2c, struct iic_msg *msgs, int num) argument 654 r500_hw_i2c_xfer(struct radeon_i2c_chan *i2c, struct iic_msg *msgs, int num) argument 889 struct radeon_i2c_chan *i2c = device_get_softc(dev); local 973 struct radeon_i2c_chan *i2c; local 1037 struct radeon_i2c_chan *i2c; local 1173 struct radeon_i2c_chan *i2c; local 1200 radeon_i2c_destroy(struct radeon_i2c_chan *i2c) argument [all...] |
H A D | atombios_i2c.c | 62 DRM_ERROR("hw i2c: tried to write too many bytes (%d vs 2)\n", num); 70 DRM_ERROR("hw i2c: tried to read too many bytes (%d vs 255)\n", num); 99 struct radeon_i2c_chan *i2c = device_get_softc(dev); local 107 ret = radeon_process_i2c_ch(i2c, 133 ret = radeon_process_i2c_ch(i2c, 156 struct radeon_i2c_chan *i2c; local 159 i2c = device_get_softc(dev); 160 device_set_desc(dev, i2c->name);
|
H A D | radeon_combios.c | 506 struct radeon_i2c_bus_rec i2c; local 579 i2c.mask_clk_reg = RADEON_GPIOPAD_MASK; 580 i2c.mask_data_reg = RADEON_GPIOPAD_MASK; 581 i2c.a_clk_reg = RADEON_GPIOPAD_A; 582 i2c.a_data_reg = RADEON_GPIOPAD_A; 583 i2c.en_clk_reg = RADEON_GPIOPAD_EN; 584 i2c.en_data_reg = RADEON_GPIOPAD_EN; 585 i2c.y_clk_reg = RADEON_GPIOPAD_Y; 586 i2c.y_data_reg = RADEON_GPIOPAD_Y; 588 i2c 732 struct radeon_i2c_bus_rec i2c; local 760 struct radeon_i2c_bus_rec i2c; local [all...] |
H A D | radeon_atombios.c | 116 struct radeon_i2c_bus_rec i2c; local 118 memset(&i2c, 0, sizeof(struct radeon_i2c_bus_rec)); 120 i2c.mask_clk_reg = le16_to_cpu(gpio->usClkMaskRegisterIndex) * 4; 121 i2c.mask_data_reg = le16_to_cpu(gpio->usDataMaskRegisterIndex) * 4; 122 i2c.en_clk_reg = le16_to_cpu(gpio->usClkEnRegisterIndex) * 4; 123 i2c.en_data_reg = le16_to_cpu(gpio->usDataEnRegisterIndex) * 4; 124 i2c.y_clk_reg = le16_to_cpu(gpio->usClkY_RegisterIndex) * 4; 125 i2c.y_data_reg = le16_to_cpu(gpio->usDataY_RegisterIndex) * 4; 126 i2c.a_clk_reg = le16_to_cpu(gpio->usClkA_RegisterIndex) * 4; 127 i2c 162 struct radeon_i2c_bus_rec i2c; local 196 struct radeon_i2c_bus_rec i2c; local [all...] |
H A D | radeon_mode.h | 87 /* radeon gpio-based i2c 107 /* can be used with hw i2c engine */ 109 /* uses multi-media i2c engine */ 454 /* i2c mux */ 550 extern void radeon_i2c_destroy(struct radeon_i2c_chan *i2c); 555 extern void radeon_i2c_put_byte(struct radeon_i2c_chan *i2c,
|
/freebsd-11-stable/sys/dev/drm2/i915/ |
H A D | intel_crt.c | 387 device_t i2c) 391 edid = drm_get_edid(connector, i2c); 393 if (!edid && !intel_gmbus_is_forced_bit(i2c)) { 395 intel_gmbus_force_bit(i2c, true); 396 edid = drm_get_edid(connector, i2c); 397 intel_gmbus_force_bit(i2c, false); 425 device_t i2c; local 430 i2c = intel_gmbus_get_adapter(dev_priv, dev_priv->crt_ddc_pin); 431 edid = intel_crt_get_edid(connector, i2c); 635 device_t i2c; local 386 intel_crt_get_edid(struct drm_connector *connector, device_t i2c) argument [all...] |
H A D | intel_dvo.c | 318 /* We should probably have an i2c driver get_modes function for those 451 device_t i2c; local 470 i2c = intel_gmbus_get_adapter(dev_priv, gpio); 477 intel_gmbus_force_bit(i2c, true); 479 dvoinit = dvo->dev_ops->init(&intel_dvo->dev, i2c); 481 intel_gmbus_force_bit(i2c, false);
|
H A D | intel_sdvo.c | 72 device_t i2c; member in struct:intel_sdvo 286 if ((ret = -iicbus_transfer(intel_sdvo->i2c, msgs, 2)) == 0) 289 DRM_DEBUG_KMS("i2c transfer returned %d\n", ret); 493 ret = -iicbus_transfer(intel_sdvo->i2c, msgs, i+3); 586 /* This must be the immediately preceding write before the i2c xfer */ 1745 intel_ddc_get_modes(connector, intel_sdvo->i2c); 2122 sdvo->i2c = intel_gmbus_get_adapter(dev_priv, pin); 2124 /* With gmbus we should be able to drive sdvo i2c at 2MHz, but somehow 2127 intel_gmbus_force_bit(sdvo->i2c, true); 2130 /* undo any changes intel_sdvo_select_i2c_bus() did to sdvo->i2c */ [all...] |
H A D | intel_iic.c | 73 to_intel_gmbus(device_t i2c) argument 77 sc = device_get_softc(i2c); 429 * spurious -ENXIO because that will prevent i2c and drm edid functions 689 * intel_gmbus_setup - instantiate all Intel i2c GMBuses
|
/freebsd-11-stable/sys/dev/sfxge/ |
H A D | sfxge.c | 528 struct ifi2creq i2c; local 530 error = copyin(ifr_data_get_ptr(ifr), &i2c, sizeof(i2c)); 534 if (i2c.len > sizeof(i2c.data)) { 540 error = efx_phy_module_get_info(sc->enp, i2c.dev_addr, 541 i2c.offset, i2c.len, 542 &i2c.data[0]); 545 error = copyout(&i2c, ifr_data_get_pt [all...] |
/freebsd-11-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-twsi.c | 55 #include <linux/i2c.h> 92 struct octeon_i2c *i2c; local 97 i2c = container_of(adapter, struct octeon_i2c, adap); 98 return &i2c[twsi_id].adap;
|
/freebsd-11-stable/sys/arm/freescale/vybrid/ |
H A D | vf_i2c.c | 124 if (!ofw_bus_is_compatible(dev, "fsl,mvf600-i2c")) 227 vf_i2c_dbg(sc, "i2c repeated start\n"); 269 vf_i2c_dbg(sc, "i2c start\n"); 277 vf_i2c_dbg(sc, "cant i2c start: IIC_EBUSBSY\n"); 297 vf_i2c_dbg(sc, "cant i2c start: iif error\n"); 311 vf_i2c_dbg(sc, "i2c stop\n"); 337 vf_i2c_dbg(sc, "i2c reset\n"); 354 WRITE1(sc, I2C_IBCR, 0x0); /* Enable i2c */ 371 vf_i2c_dbg(sc, "i2c read\n"); 423 vf_i2c_dbg(sc, "i2c writ [all...] |
/freebsd-11-stable/sys/arm/samsung/exynos/ |
H A D | exynos5_i2c.c | 131 if (!ofw_bus_is_compatible(dev, "exynos,i2c")) 246 DPRINTF("i2c start\n"); 266 DPRINTF("cant i2c start: IIC_EBUSERR\n"); 284 DPRINTF("cant i2c start: iif error\n"); 291 DPRINTF("cant i2c start: no ack\n"); 310 DPRINTF("i2c stop\n"); 325 DPRINTF("cant i2c stop: nibb error\n"); 340 DPRINTF("i2c reset\n"); 362 DPRINTF("i2c read\n"); 376 DPRINTF("cant i2c rea [all...] |
/freebsd-11-stable/sys/powerpc/mpc85xx/ |
H A D | i2c.c | 126 DRIVER_MODULE(i2c, simplebus, i2c_driver, i2c_devclass, 0, 0); 127 DRIVER_MODULE(iicbus, i2c, iicbus_driver, iicbus_devclass, 0, 0); 192 if (!ofw_bus_is_compatible(dev, "fsl-i2c"))
|
/freebsd-11-stable/sys/dev/mlx5/mlx5_en/ |
H A D | mlx5_en_main.c | 3100 struct ifi2creq i2c; local 3286 * kernel-space address i2c 3288 error = copyin(ifr_data_get_ptr(ifr), &i2c, sizeof(i2c)); 3292 if (i2c.len > sizeof(i2c.data)) { 3316 if (i2c.dev_addr == 0xA0) 3318 else if (i2c.dev_addr == 0xA2) 3323 i2c.dev_addr); 3329 (uint32_t)i2c [all...] |
/freebsd-11-stable/usr.sbin/ |
H A D | Makefile | 36 i2c \
|
/freebsd-11-stable/sys/dev/oce/ |
H A D | oce_if.c | 473 struct ifi2creq i2c; local 588 rc = copyin(ifr_data_get_ptr(ifr), &i2c, sizeof(i2c)); 592 if (i2c.dev_addr != PAGE_NUM_A0 && 593 i2c.dev_addr != PAGE_NUM_A2) { 598 if (i2c.len > sizeof(i2c.data)) { 603 rc = oce_mbox_read_transrecv_data(sc, i2c.dev_addr); 609 if (i2c.dev_addr == PAGE_NUM_A0) 610 offset = i2c [all...] |
/freebsd-11-stable/sys/dev/qlnx/qlnxe/ |
H A D | qlnx_os.c | 2855 struct ifi2creq i2c; local 2859 ret = copyin(ifr_data_get_ptr(ifr), &i2c, sizeof(i2c)); 2864 if ((i2c.len > sizeof (i2c.data)) || 2865 (i2c.dev_addr != 0xA0 && i2c.dev_addr != 0xA2)) { 2879 (ha->pci_func & 0x1), i2c.dev_addr, i2c.offset, 2880 i2c [all...] |
/freebsd-11-stable/sys/dev/ixgbe/ |
H A D | if_ix.c | 4902 struct ifi2creq i2c; local 4906 error = copyin(ifr_data_get_ptr(ifr), &i2c, sizeof(i2c)); 4909 if (i2c.dev_addr != 0xA0 && i2c.dev_addr != 0xA2) { 4913 if (i2c.len > sizeof(i2c.data)) { 4918 for (i = 0; i < i2c.len; i++) 4919 hw->phy.ops.read_i2c_byte(hw, i2c.offset + i, 4920 i2c [all...] |
/freebsd-11-stable/sys/dev/mlx4/mlx4_en/ |
H A D | mlx4_en_netdev.c | 2072 struct ifi2creq i2c; local 2074 error = copyin(ifr_data_get_ptr(ifr), &i2c, sizeof(i2c)); 2077 if (i2c.len > sizeof(i2c.data)) { 2082 * Note that we ignore i2c.addr here. The driver hardcodes 2086 i2c.offset, i2c.len, i2c.data); 2091 error = copyout(&i2c, ifr_data_get_pt [all...] |
/freebsd-11-stable/sys/dev/ixl/ |
H A D | ixl_pf_main.c | 5116 struct ifi2creq i2c; local 5124 error = copyin(ifr->ifr_data, &i2c, sizeof(i2c)); 5126 error = copyin(ifr_data_get_ptr(ifr), &i2c, sizeof(i2c)); 5131 if (i2c.dev_addr != 0xA0 && i2c.dev_addr != 0xA2) { 5135 if (i2c.len > sizeof(i2c.data)) { 5140 for (i = 0; i < i2c [all...] |
/freebsd-11-stable/sys/modules/ |
H A D | Makefile | 152 i2c \
|
/freebsd-11-stable/sys/net/ |
H A D | iflib.c | 4076 struct ifi2creq i2c; local 4078 err = copyin(ifr_data_get_ptr(ifr), &i2c, sizeof(i2c)); 4081 if (i2c.dev_addr != 0xA0 && i2c.dev_addr != 0xA2) { 4085 if (i2c.len > sizeof(i2c.data)) { 4090 if ((err = IFDI_I2C_REQ(ctx, &i2c)) == 0) 4091 err = copyout(&i2c, ifr_data_get_ptr(ifr), 4092 sizeof(i2c)); [all...] |
/freebsd-11-stable/sys/dev/cxgbe/ |
H A D | t4_main.c | 1969 struct ifi2creq i2c; local 1971 rc = copyin(ifr_data_get_ptr(ifr), &i2c, sizeof(i2c)); 1974 if (i2c.dev_addr != 0xA0 && i2c.dev_addr != 0xA2) { 1978 if (i2c.len > sizeof(i2c.data)) { 1985 rc = -t4_i2c_rd(sc, sc->mbox, pi->port_id, i2c.dev_addr, 1986 i2c.offset, i2c [all...] |