/drivers/xen/ |
D | swiotlb-xen.c | 266 dma_addr_t dev_addr; in xen_swiotlb_alloc_coherent() local 289 dev_addr = xen_phys_to_bus(phys); in xen_swiotlb_alloc_coherent() 290 if (((dev_addr + size - 1 <= dma_mask)) && in xen_swiotlb_alloc_coherent() 292 *dma_handle = dev_addr; in xen_swiotlb_alloc_coherent() 308 dma_addr_t dev_addr, struct dma_attrs *attrs) in xen_swiotlb_free_coherent() argument 322 if (((dev_addr + size - 1 > dma_mask)) || in xen_swiotlb_free_coherent() 344 dma_addr_t dev_addr = xen_phys_to_bus(phys); in xen_swiotlb_map_page() local 352 if (dma_capable(dev, dev_addr, size) && in xen_swiotlb_map_page() 354 return dev_addr; in xen_swiotlb_map_page() 363 dev_addr = xen_phys_to_bus(map); in xen_swiotlb_map_page() [all …]
|
/drivers/staging/media/solo6x10/ |
D | solo6x10-tw28.c | 228 static int tw2865_setup(struct solo_dev *solo_dev, u8 dev_addr) in tw2865_setup() argument 246 if (dev_addr == TW_CHIP_OFFSET_ADDR(1)) in tw2865_setup() 250 if (dev_addr == TW_CHIP_OFFSET_ADDR(1)) in tw2865_setup() 252 else if (dev_addr == TW_CHIP_OFFSET_ADDR(2)) in tw2865_setup() 254 else if (dev_addr == TW_CHIP_OFFSET_ADDR(3)) in tw2865_setup() 272 tw_write_and_verify(solo_dev, dev_addr, i, in tw2865_setup() 279 static int tw2864_setup(struct solo_dev *solo_dev, u8 dev_addr) in tw2864_setup() argument 298 if (dev_addr == TW_CHIP_OFFSET_ADDR(0)) in tw2864_setup() 300 else if (dev_addr == TW_CHIP_OFFSET_ADDR(1)) in tw2864_setup() 304 if (dev_addr == TW_CHIP_OFFSET_ADDR(0)) in tw2864_setup() [all …]
|
/drivers/mmc/card/ |
D | mmc_test.c | 75 unsigned int dev_addr; member 190 unsigned dev_addr, unsigned blocks, unsigned blksz, int write) in mmc_test_prepare_mrq() argument 202 mrq->cmd->arg = dev_addr; in mmc_test_prepare_mrq() 780 unsigned dev_addr, unsigned blocks, in mmc_test_nonblock_transfer() argument 812 mmc_test_prepare_mrq(test, cur_areq->mrq, sg, sg_len, dev_addr, in mmc_test_nonblock_transfer() 830 dev_addr += blocks; in mmc_test_nonblock_transfer() 844 struct scatterlist *sg, unsigned sg_len, unsigned dev_addr, in mmc_test_simple_transfer() argument 856 mmc_test_prepare_mrq(test, &mrq, sg, sg_len, dev_addr, in mmc_test_simple_transfer() 901 struct scatterlist *sg, unsigned sg_len, unsigned dev_addr, in mmc_test_transfer() argument 921 ret = mmc_test_simple_transfer(test, sg, sg_len, dev_addr, in mmc_test_transfer() [all …]
|
/drivers/infiniband/core/ |
D | addr.c | 93 int rdma_copy_addr(struct rdma_dev_addr *dev_addr, struct net_device *dev, in rdma_copy_addr() argument 96 dev_addr->dev_type = dev->type; in rdma_copy_addr() 97 memcpy(dev_addr->src_dev_addr, dev->dev_addr, MAX_ADDR_LEN); in rdma_copy_addr() 98 memcpy(dev_addr->broadcast, dev->broadcast, MAX_ADDR_LEN); in rdma_copy_addr() 100 memcpy(dev_addr->dst_dev_addr, dst_dev_addr, MAX_ADDR_LEN); in rdma_copy_addr() 101 dev_addr->bound_dev_if = dev->ifindex; in rdma_copy_addr() 106 int rdma_translate_ip(struct sockaddr *addr, struct rdma_dev_addr *dev_addr) in rdma_translate_ip() argument 111 if (dev_addr->bound_dev_if) { in rdma_translate_ip() 112 dev = dev_get_by_index(&init_net, dev_addr->bound_dev_if); in rdma_translate_ip() 115 ret = rdma_copy_addr(dev_addr, dev, NULL); in rdma_translate_ip() [all …]
|
D | cma.c | 285 id_priv->id.route.addr.dev_addr.transport = in cma_attach_to_dev() 326 ib_addr_get_mgid(&id_priv->id.route.addr.dev_addr, &rec.mgid); in cma_set_qkey() 363 struct rdma_dev_addr *dev_addr = &id_priv->id.route.addr.dev_addr; in cma_acquire_dev() local 368 enum rdma_link_layer dev_ll = dev_addr->dev_type == ARPHRD_INFINIBAND ? in cma_acquire_dev() 376 iboe_addr_get_sgid(dev_addr, &iboe_gid); in cma_acquire_dev() 377 memcpy(&gid, dev_addr->src_dev_addr + in cma_acquire_dev() 378 rdma_addr_gid_offset(dev_addr), sizeof gid); in cma_acquire_dev() 614 struct rdma_dev_addr *dev_addr = &id_priv->id.route.addr.dev_addr; in cma_ib_init_qp_attr() local 620 pkey = ib_addr_get_pkey(dev_addr); in cma_ib_init_qp_attr() 858 rdma_addr_cancel(&id_priv->id.route.addr.dev_addr); in cma_cancel_operation() [all …]
|
/drivers/net/bonding/ |
D | bond_alb.c | 484 rlb_teach_disabled_mac_on_primary(bond, slave->dev->dev_addr); in rlb_clear_slave() 506 client_info->slave->dev->dev_addr, in rlb_update_client() 614 !ether_addr_equal_64bits(client_info->slave->dev->dev_addr, in rlb_req_update_subnet_clients() 615 bond->dev->dev_addr) && in rlb_req_update_subnet_clients() 741 memcpy(arp->mac_src,tx_slave->dev->dev_addr, ETH_ALEN); in rlb_arp_xmit() 1035 memcpy(dev->dev_addr, addr, dev->addr_len); in alb_set_slave_mac_addr() 1063 memcpy(tmp_mac_addr, slave1->dev->dev_addr, ETH_ALEN); in alb_swap_mac_addr() 1064 alb_set_slave_mac_addr(slave1, slave2->dev->dev_addr); in alb_swap_mac_addr() 1084 alb_send_learning_packets(slave1, slave1->dev->dev_addr); in alb_fasten_mac_swap() 1096 alb_send_learning_packets(slave2, slave2->dev->dev_addr); in alb_fasten_mac_swap() [all …]
|
/drivers/net/ethernet/natsemi/ |
D | macsonic.c | 263 dev->dev_addr[i] = SONIC_READ_PROM(i); in mac_onboard_sonic_ethernet_addr() 264 if (!INVALID_MAC(dev->dev_addr)) in mac_onboard_sonic_ethernet_addr() 272 bit_reverse_addr(dev->dev_addr); in mac_onboard_sonic_ethernet_addr() 273 if (!INVALID_MAC(dev->dev_addr)) in mac_onboard_sonic_ethernet_addr() 293 dev->dev_addr[5] = val >> 8; in mac_onboard_sonic_ethernet_addr() 294 dev->dev_addr[4] = val & 0xff; in mac_onboard_sonic_ethernet_addr() 296 dev->dev_addr[3] = val >> 8; in mac_onboard_sonic_ethernet_addr() 297 dev->dev_addr[2] = val & 0xff; in mac_onboard_sonic_ethernet_addr() 299 dev->dev_addr[1] = val >> 8; in mac_onboard_sonic_ethernet_addr() 300 dev->dev_addr[0] = val & 0xff; in mac_onboard_sonic_ethernet_addr() [all …]
|
/drivers/net/ethernet/amd/ |
D | mvme147.c | 99 dev->dev_addr[0]=0x08; in mvme147lance_probe() 100 dev->dev_addr[1]=0x00; in mvme147lance_probe() 101 dev->dev_addr[2]=0x3e; in mvme147lance_probe() 103 dev->dev_addr[5]=address&0xff; in mvme147lance_probe() 105 dev->dev_addr[4]=address&0xff; in mvme147lance_probe() 107 dev->dev_addr[3]=address&0xff; in mvme147lance_probe() 112 dev->dev_addr); in mvme147lance_probe()
|
D | a2065.c | 167 ib->phys_addr[0] = dev->dev_addr[1]; in lance_init_ring() 168 ib->phys_addr[1] = dev->dev_addr[0]; in lance_init_ring() 169 ib->phys_addr[2] = dev->dev_addr[3]; in lance_init_ring() 170 ib->phys_addr[3] = dev->dev_addr[2]; in lance_init_ring() 171 ib->phys_addr[4] = dev->dev_addr[5]; in lance_init_ring() 172 ib->phys_addr[5] = dev->dev_addr[4]; in lance_init_ring() 705 dev->dev_addr[0] = 0x00; in a2065_init_one() 707 dev->dev_addr[1] = 0x80; in a2065_init_one() 708 dev->dev_addr[2] = 0x10; in a2065_init_one() 710 dev->dev_addr[1] = 0x00; in a2065_init_one() [all …]
|
D | sun3lance.c | 380 dev->dev_addr[i] = idprom->id_ethaddr[i]; in lance_probe() 383 MEM->init.hwaddr[0] = dev->dev_addr[1]; in lance_probe() 384 MEM->init.hwaddr[1] = dev->dev_addr[0]; in lance_probe() 385 MEM->init.hwaddr[2] = dev->dev_addr[3]; in lance_probe() 386 MEM->init.hwaddr[3] = dev->dev_addr[2]; in lance_probe() 387 MEM->init.hwaddr[4] = dev->dev_addr[5]; in lance_probe() 388 MEM->init.hwaddr[5] = dev->dev_addr[4]; in lance_probe() 390 printk("%pM\n", dev->dev_addr); in lance_probe() 483 MEM->init.hwaddr[0] = dev->dev_addr[1]; in lance_init_ring() 484 MEM->init.hwaddr[1] = dev->dev_addr[0]; in lance_init_ring() [all …]
|
/drivers/net/ethernet/ |
D | netx-eth.c | 216 writel(ndev->dev_addr[0] | in netx_eth_open() 217 ndev->dev_addr[1]<<8 | in netx_eth_open() 218 ndev->dev_addr[2]<<16 | in netx_eth_open() 219 ndev->dev_addr[3]<<24, in netx_eth_open() 221 writel(ndev->dev_addr[4] | in netx_eth_open() 222 ndev->dev_addr[5]<<8, in netx_eth_open() 347 ndev->dev_addr[0] = mac4321 & 0xff; in netx_eth_enable() 348 ndev->dev_addr[1] = (mac4321 >> 8) & 0xff; in netx_eth_enable() 349 ndev->dev_addr[2] = (mac4321 >> 16) & 0xff; in netx_eth_enable() 350 ndev->dev_addr[3] = (mac4321 >> 24) & 0xff; in netx_eth_enable() [all …]
|
/drivers/net/ethernet/tundra/ |
D | tsi108_eth.c | 352 if (is_valid_ether_addr(dev->dev_addr) && data->txfree) in tsi108_check_phy() 649 if (is_valid_ether_addr(dev->dev_addr) && data->link_up) in tsi108_complete_tx() 1107 dev->dev_addr[0] = 0x00; in tsi108_get_mac() 1108 dev->dev_addr[1] = 0x06; in tsi108_get_mac() 1109 dev->dev_addr[2] = 0xd2; in tsi108_get_mac() 1110 dev->dev_addr[3] = 0x00; in tsi108_get_mac() 1111 dev->dev_addr[4] = 0x00; in tsi108_get_mac() 1113 dev->dev_addr[5] = 0x01; in tsi108_get_mac() 1115 dev->dev_addr[5] = 0x02; in tsi108_get_mac() 1117 word2 = (dev->dev_addr[0] << 16) | (dev->dev_addr[1] << 24); in tsi108_get_mac() [all …]
|
/drivers/uwb/ |
D | address.c | 129 const struct uwb_dev_addr *dev_addr = _addr; in uwb_rc_addr_set() local 137 baAddr = dev_addr->data; in uwb_rc_addr_set() 168 struct uwb_dev_addr *dev_addr = _addr; in uwb_rc_addr_get() local 175 baAddr = dev_addr->data; in uwb_rc_addr_get() 188 memcpy(&dev_addr->data, evt.baAddr, in uwb_rc_addr_get() 189 sizeof(dev_addr->data)); in uwb_rc_addr_get() 237 rc->uwb_dev.dev_addr = *addr; in uwb_rc_dev_addr_set() 258 if (!uwb_dev_addr_cmp(addr, &uwb_dev->dev_addr)) in __uwb_dev_addr_assigned_check()
|
D | drp-ie.c | 223 drp_ie->dev_addr = rsv->target.dev->dev_addr; in uwb_drp_ie_update() 226 drp_ie->dev_addr = rsv->target.devaddr; in uwb_drp_ie_update() 230 drp_ie->dev_addr = rsv->owner->dev_addr; in uwb_drp_ie_update()
|
/drivers/net/ethernet/i825xx/ |
D | sni_82596.c | 118 netdevice->dev_addr[0] = readb(eth_addr + 0x0b); in sni_82596_probe() 119 netdevice->dev_addr[1] = readb(eth_addr + 0x0a); in sni_82596_probe() 120 netdevice->dev_addr[2] = readb(eth_addr + 0x09); in sni_82596_probe() 121 netdevice->dev_addr[3] = readb(eth_addr + 0x08); in sni_82596_probe() 122 netdevice->dev_addr[4] = readb(eth_addr + 0x07); in sni_82596_probe() 123 netdevice->dev_addr[5] = readb(eth_addr + 0x06); in sni_82596_probe()
|
/drivers/gpu/drm/udl/ |
D | udl_transfer.c | 128 uint32_t dev_addr = *device_address_ptr; in udl_compress_hline16() local 142 *cmd++ = (uint8_t) ((dev_addr >> 16) & 0xFF); in udl_compress_hline16() 143 *cmd++ = (uint8_t) ((dev_addr >> 8) & 0xFF); in udl_compress_hline16() 144 *cmd++ = (uint8_t) ((dev_addr) & 0xFF); in udl_compress_hline16() 199 dev_addr += ((pixel - cmd_pixel_start) / bpp) * 2; in udl_compress_hline16() 211 *device_address_ptr = dev_addr; in udl_compress_hline16()
|
/drivers/dma/ |
D | omap-dma.c | 54 dma_addr_t dev_addr; member 131 OMAP_DMA_AMODE_CONSTANT, d->dev_addr, 0, d->fi); in omap_dma_start_desc() 134 OMAP_DMA_AMODE_CONSTANT, d->dev_addr, 0, d->fi); in omap_dma_start_desc() 311 dma_addr_t dev_addr; in omap_dma_prep_slave_sg() local 316 dev_addr = c->cfg.src_addr; in omap_dma_prep_slave_sg() 321 dev_addr = c->cfg.dst_addr; in omap_dma_prep_slave_sg() 351 d->dev_addr = dev_addr; in omap_dma_prep_slave_sg() 388 dma_addr_t dev_addr; in omap_dma_prep_dma_cyclic() local 393 dev_addr = c->cfg.src_addr; in omap_dma_prep_dma_cyclic() 398 dev_addr = c->cfg.dst_addr; in omap_dma_prep_dma_cyclic() [all …]
|
D | coh901318_lli.c | 178 dma_addr_t dev_addr, u32 ctrl_chained, u32 ctrl_eom, in coh901318_lli_fill_single() argument 188 dst = dev_addr; in coh901318_lli_fill_single() 192 src = dev_addr; in coh901318_lli_fill_single() 234 dma_addr_t dev_addr, u32 ctrl_chained, u32 ctrl, in coh901318_lli_fill_sg() argument 252 dst = dev_addr; in coh901318_lli_fill_sg() 254 src = dev_addr; in coh901318_lli_fill_sg()
|
/drivers/net/ethernet/cirrus/ |
D | mac89x0.c | 279 dev->dev_addr[i] = s >> 8; in mac89x0_probe() 280 dev->dev_addr[i+1] = s & 0xff; in mac89x0_probe() 288 printk(" IRQ %d ADDR %pM\n", dev->irq, dev->dev_addr); in mac89x0_probe() 349 writereg(dev, PP_IA+i*2, dev->dev_addr[i*2] | (dev->dev_addr[i*2+1] << 8)); in net_open() 599 memcpy(dev->dev_addr, saddr->sa_data, ETH_ALEN); in set_mac_address() 600 printk("%s: Setting MAC address to %pM\n", dev->name, dev->dev_addr); in set_mac_address() 604 writereg(dev, PP_IA+i*2, dev->dev_addr[i*2] | (dev->dev_addr[i*2+1] << 8)); in set_mac_address()
|
/drivers/media/dvb-frontends/ |
D | atbm8830.c | 42 u8 dev_addr; in atbm8830_write_reg() local 48 dev_addr = priv->config->demod_address; in atbm8830_write_reg() 49 msg1.addr = dev_addr; in atbm8830_write_reg() 50 msg2.addr = dev_addr; in atbm8830_write_reg() 66 u8 dev_addr; in atbm8830_read_reg() local 73 dev_addr = priv->config->demod_address; in atbm8830_read_reg() 74 msg1.addr = dev_addr; in atbm8830_read_reg() 75 msg2.addr = dev_addr; in atbm8830_read_reg()
|
/drivers/media/usb/cx231xx/ |
D | cx231xx-core.c | 183 dev_addr << 9 | _i2c_period << 4 | saddr_len << 2 | in cx231xx_send_usb_command() 188 dev_addr << 9 | _i2c_period << 4 | saddr_len << 2 | in cx231xx_send_usb_command() 1508 int cx231xx_read_i2c_master(struct cx231xx *dev, u8 dev_addr, u16 saddr, in cx231xx_read_i2c_master() argument 1521 req_data.dev_addr = dev_addr >> 1; in cx231xx_read_i2c_master() 1554 int cx231xx_write_i2c_master(struct cx231xx *dev, u8 dev_addr, u16 saddr, in cx231xx_write_i2c_master() argument 1572 req_data.dev_addr = dev_addr >> 1; in cx231xx_write_i2c_master() 1593 int cx231xx_read_i2c_data(struct cx231xx *dev, u8 dev_addr, u16 saddr, in cx231xx_read_i2c_data() argument 1606 req_data.dev_addr = dev_addr >> 1; in cx231xx_read_i2c_data() 1629 int cx231xx_write_i2c_data(struct cx231xx *dev, u8 dev_addr, u16 saddr, in cx231xx_write_i2c_data() argument 1647 req_data.dev_addr = dev_addr >> 1; in cx231xx_write_i2c_data() [all …]
|
/drivers/net/arcnet/ |
D | arc-rimi.c | 93 dev->dev_addr[0], dev->mem_start, dev->irq); in arcrimi_probe() 100 if (dev->dev_addr[0] == 0) { in arcrimi_probe() 168 writeb(dev->dev_addr[0], p + 1); /* actually the node ID */ in arcrimi_found() 229 dev->dev_addr[0] = readb(lp->mem_start + 1); in arcrimi_found() 233 dev->dev_addr[0], in arcrimi_found() 345 dev->dev_addr[0] = node; in arc_rimi_init()
|
/drivers/net/ethernet/micrel/ |
D | ks8695net.c | 255 maclow = ((ndev->dev_addr[2] << 24) | (ndev->dev_addr[3] << 16) | in ks8695_update_mac() 256 (ndev->dev_addr[4] << 8) | (ndev->dev_addr[5] << 0)); in ks8695_update_mac() 257 machigh = ((ndev->dev_addr[0] << 8) | (ndev->dev_addr[1] << 0)); in ks8695_update_mac() 1071 memcpy(ndev->dev_addr, address->sa_data, ndev->addr_len); in ks8695_set_mac() 1076 ndev->name, ndev->dev_addr); in ks8695_set_mac() 1452 ndev->dev_addr[0] = (machigh >> 8) & 0xFF; in ks8695_probe() 1453 ndev->dev_addr[1] = machigh & 0xFF; in ks8695_probe() 1454 ndev->dev_addr[2] = (maclow >> 24) & 0xFF; in ks8695_probe() 1455 ndev->dev_addr[3] = (maclow >> 16) & 0xFF; in ks8695_probe() 1456 ndev->dev_addr[4] = (maclow >> 8) & 0xFF; in ks8695_probe() [all …]
|
/drivers/usb/gadget/ |
D | u_ether.c | 859 static char *dev_addr; variable 860 module_param(dev_addr, charp, S_IRUGO); 861 MODULE_PARM_DESC(dev_addr, "Device Ethernet Address"); 868 static int get_ether_addr(const char *str, u8 *dev_addr) in get_ether_addr() argument 880 dev_addr [i] = num; in get_ether_addr() 882 if (is_valid_ether_addr(dev_addr)) in get_ether_addr() 885 eth_random_addr(dev_addr); in get_ether_addr() 889 static int get_host_ether_addr(u8 *str, u8 *dev_addr) in get_host_ether_addr() argument 891 memcpy(dev_addr, str, ETH_ALEN); in get_host_ether_addr() 892 if (is_valid_ether_addr(dev_addr)) in get_host_ether_addr() [all …]
|
/drivers/net/ |
D | macvlan.c | 67 if (ether_addr_equal_64bits(vlan->dev->dev_addr, addr)) in macvlan_hash_lookup() 76 const unsigned char *addr = vlan->dev->dev_addr; in macvlan_hash_add() 95 memcpy(vlan->dev->dev_addr, addr, ETH_ALEN); in macvlan_hash_change_addr() 106 if (ether_addr_equal_64bits(port->dev->dev_addr, addr)) in macvlan_addr_busy() 322 saddr ? : dev->dev_addr, len); in macvlan_hard_header() 346 if (macvlan_addr_busy(vlan->port, dev->dev_addr)) in macvlan_open() 349 err = dev_uc_add(lowerdev, dev->dev_addr); in macvlan_open() 363 dev_uc_del(lowerdev, dev->dev_addr); in macvlan_open() 385 dev_uc_del(lowerdev, dev->dev_addr); in macvlan_stop() 404 memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN); in macvlan_set_mac_address() [all …]
|