/linux-6.1.9/drivers/media/dvb-frontends/drx39xyj/ |
D | drxj.c | 533 static int drxdap_fasi_read_block(struct i2c_device_addr *dev_addr, 539 static int drxj_dap_read_modify_write_reg16(struct i2c_device_addr *dev_addr, 544 static int drxj_dap_read_reg16(struct i2c_device_addr *dev_addr, 548 static int drxdap_fasi_read_reg32(struct i2c_device_addr *dev_addr, 552 static int drxdap_fasi_write_block(struct i2c_device_addr *dev_addr, 557 static int drxj_dap_write_reg16(struct i2c_device_addr *dev_addr, 561 static int drxdap_fasi_write_reg32(struct i2c_device_addr *dev_addr, 1021 hi_command(struct i2c_device_addr *dev_addr, 1414 static int drxdap_fasi_read_block(struct i2c_device_addr *dev_addr, in drxdap_fasi_read_block() argument 1425 if (dev_addr == NULL) in drxdap_fasi_read_block() [all …]
|
/linux-6.1.9/include/rdma/ |
D | ib_addr.h | 56 struct rdma_dev_addr *dev_addr); 87 static inline u16 ib_addr_get_pkey(struct rdma_dev_addr *dev_addr) in ib_addr_get_pkey() argument 89 return ((u16)dev_addr->broadcast[8] << 8) | (u16)dev_addr->broadcast[9]; in ib_addr_get_pkey() 92 static inline void ib_addr_set_pkey(struct rdma_dev_addr *dev_addr, u16 pkey) in ib_addr_set_pkey() argument 94 dev_addr->broadcast[8] = pkey >> 8; in ib_addr_set_pkey() 95 dev_addr->broadcast[9] = (unsigned char) pkey; in ib_addr_set_pkey() 98 static inline void ib_addr_get_mgid(struct rdma_dev_addr *dev_addr, in ib_addr_get_mgid() argument 101 memcpy(gid, dev_addr->broadcast + 4, sizeof *gid); in ib_addr_get_mgid() 104 static inline int rdma_addr_gid_offset(struct rdma_dev_addr *dev_addr) in rdma_addr_gid_offset() argument 106 return dev_addr->dev_type == ARPHRD_INFINIBAND ? 4 : 0; in rdma_addr_gid_offset() [all …]
|
/linux-6.1.9/drivers/infiniband/core/ |
D | addr.c | 146 static int ib_nl_ip_send_msg(struct rdma_dev_addr *dev_addr, in ib_nl_ip_send_msg() argument 182 header->ifindex = dev_addr->bound_dev_if; in ib_nl_ip_send_msg() 235 void rdma_copy_src_l2_addr(struct rdma_dev_addr *dev_addr, in rdma_copy_src_l2_addr() argument 238 dev_addr->dev_type = dev->type; in rdma_copy_src_l2_addr() 239 memcpy(dev_addr->src_dev_addr, dev->dev_addr, MAX_ADDR_LEN); in rdma_copy_src_l2_addr() 240 memcpy(dev_addr->broadcast, dev->broadcast, MAX_ADDR_LEN); in rdma_copy_src_l2_addr() 241 dev_addr->bound_dev_if = dev->ifindex; in rdma_copy_src_l2_addr() 276 struct rdma_dev_addr *dev_addr) in rdma_translate_ip() argument 280 if (dev_addr->bound_dev_if) { in rdma_translate_ip() 281 dev = dev_get_by_index(dev_addr->net, dev_addr->bound_dev_if); in rdma_translate_ip() [all …]
|
D | cma.c | 473 int ifindex_b = id_priv->id.route.addr.dev_addr.bound_dev_if; in compare_netdev_and_ip() 507 node_id_priv->id.route.addr.dev_addr.bound_dev_if, in cma_add_id_to_tree() 565 id_priv->id.route.addr.dev_addr.bound_dev_if, in cma_remove_id_from_tree() 585 id_priv->id.route.addr.dev_addr.transport = in _cma_attach_to_dev() 608 if (id_priv->id.route.addr.dev_addr.sgid_attr) { in cma_release_dev() 609 rdma_put_gid_attr(id_priv->id.route.addr.dev_addr.sgid_attr); in cma_release_dev() 610 id_priv->id.route.addr.dev_addr.sgid_attr = NULL; in cma_release_dev() 642 ib_addr_get_mgid(&id_priv->id.route.addr.dev_addr, &rec.mgid); in cma_set_qkey() 655 static void cma_translate_ib(struct sockaddr_ib *sib, struct rdma_dev_addr *dev_addr) in cma_translate_ib() argument 657 dev_addr->dev_type = ARPHRD_INFINIBAND; in cma_translate_ib() [all …]
|
/linux-6.1.9/drivers/media/pci/solo6x10/ |
D | solo6x10-tw28.c | 216 static int tw2865_setup(struct solo_dev *solo_dev, u8 dev_addr) in tw2865_setup() argument 234 if (dev_addr == TW_CHIP_OFFSET_ADDR(1)) in tw2865_setup() 238 if (dev_addr == TW_CHIP_OFFSET_ADDR(1)) in tw2865_setup() 240 else if (dev_addr == TW_CHIP_OFFSET_ADDR(2)) in tw2865_setup() 242 else if (dev_addr == TW_CHIP_OFFSET_ADDR(3)) in tw2865_setup() 260 tw_write_and_verify(solo_dev, dev_addr, i, in tw2865_setup() 267 static int tw2864_setup(struct solo_dev *solo_dev, u8 dev_addr) in tw2864_setup() argument 286 if (dev_addr == TW_CHIP_OFFSET_ADDR(0)) in tw2864_setup() 288 else if (dev_addr == TW_CHIP_OFFSET_ADDR(1)) in tw2864_setup() 292 if (dev_addr == TW_CHIP_OFFSET_ADDR(0)) in tw2864_setup() [all …]
|
/linux-6.1.9/include/trace/events/ |
D | swiotlb.h | 11 TP_PROTO(struct device *dev, dma_addr_t dev_addr, size_t size), 12 TP_ARGS(dev, dev_addr, size), 17 __field(dma_addr_t, dev_addr) 25 __entry->dev_addr = dev_addr; 33 (unsigned long long)__entry->dev_addr,
|
/linux-6.1.9/drivers/usb/gadget/function/ |
D | u_ether.h | 31 static char *dev_addr; \ 32 module_param(dev_addr, charp, S_IRUGO); \ 33 MODULE_PARM_DESC(dev_addr, "Device Ethernet Address"); \ 91 const char *dev_addr, const char *host_addr, 108 const char *dev_addr, const char *host_addr, in gether_setup() argument 111 return gether_setup_name(g, dev_addr, host_addr, ethaddr, qmult, "usb"); in gether_setup() 161 int gether_set_dev_addr(struct net_device *net, const char *dev_addr); 172 int gether_get_dev_addr(struct net_device *net, char *dev_addr, int len);
|
/linux-6.1.9/drivers/net/ethernet/apm/xgene-v2/ |
D | mac.c | 68 const u8 *dev_addr = pdata->ndev->dev_addr; in xge_mac_set_station_addr() local 71 addr0 = (dev_addr[3] << 24) | (dev_addr[2] << 16) | in xge_mac_set_station_addr() 72 (dev_addr[1] << 8) | dev_addr[0]; in xge_mac_set_station_addr() 73 addr1 = (dev_addr[5] << 24) | (dev_addr[4] << 16); in xge_mac_set_station_addr()
|
/linux-6.1.9/drivers/net/ethernet/freescale/enetc/ |
D | enetc_mdio.c | 62 u16 dev_addr; in enetc_mdio_write() local 67 dev_addr = (regnum >> 16) & 0x1f; in enetc_mdio_write() 71 dev_addr = regnum & 0x1f; in enetc_mdio_write() 82 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_write() 109 u16 dev_addr, value; in enetc_mdio_read() local 114 dev_addr = (regnum >> 16) & 0x1f; in enetc_mdio_read() 117 dev_addr = regnum & 0x1f; in enetc_mdio_read() 128 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_read() 151 phy_id, dev_addr, regnum); in enetc_mdio_read()
|
/linux-6.1.9/drivers/mmc/core/ |
D | mmc_test.c | 77 unsigned int dev_addr; member 211 unsigned dev_addr, unsigned blocks, unsigned blksz, int write) in mmc_test_prepare_mrq() argument 224 mrq->cmd->arg = dev_addr; in mmc_test_prepare_mrq() 826 unsigned int dev_addr, int write, in mmc_test_nonblock_transfer() argument 849 mmc_test_prepare_mrq(test, mrq, sg, t->sg_len, dev_addr, in mmc_test_nonblock_transfer() 860 dev_addr += t->blocks; in mmc_test_nonblock_transfer() 874 struct scatterlist *sg, unsigned sg_len, unsigned dev_addr, in mmc_test_simple_transfer() argument 886 mmc_test_prepare_mrq(test, &mrq, sg, sg_len, dev_addr, in mmc_test_simple_transfer() 931 struct scatterlist *sg, unsigned sg_len, unsigned dev_addr, in mmc_test_transfer() argument 951 ret = mmc_test_simple_transfer(test, sg, sg_len, dev_addr, in mmc_test_transfer() [all …]
|
/linux-6.1.9/drivers/xen/ |
D | swiotlb-xen.c | 200 dma_addr_t dev_addr = xen_phys_to_dma(dev, phys); in xen_swiotlb_map_page() local 208 if (dma_capable(dev, dev_addr, size, true) && in xen_swiotlb_map_page() 210 !xen_arch_need_swiotlb(dev, phys, dev_addr) && in xen_swiotlb_map_page() 217 trace_swiotlb_bounced(dev, dev_addr, size); in xen_swiotlb_map_page() 224 dev_addr = xen_phys_to_dma(dev, map); in xen_swiotlb_map_page() 229 if (unlikely(!dma_capable(dev, dev_addr, size, true))) { in xen_swiotlb_map_page() 237 if (pfn_valid(PFN_DOWN(dma_to_phys(dev, dev_addr)))) in xen_swiotlb_map_page() 240 xen_dma_sync_for_device(dev, dev_addr, size, dir); in xen_swiotlb_map_page() 242 return dev_addr; in xen_swiotlb_map_page() 253 static void xen_swiotlb_unmap_page(struct device *hwdev, dma_addr_t dev_addr, in xen_swiotlb_unmap_page() argument [all …]
|
/linux-6.1.9/kernel/dma/ |
D | debug.c | 69 u64 dev_addr; member 242 return (entry->dev_addr >> HASH_FN_SHIFT) & HASH_FN_MASK; in hash_fn() 272 return ((a->dev_addr == b->dev_addr) && in exact_match() 282 if ((b->dev_addr <= a->dev_addr) && in containing_match() 283 ((b->dev_addr + b->size) >= (a->dev_addr + a->size))) in containing_match() 354 int limit = min(HASH_SIZE, (index.dev_addr >> HASH_FN_SHIFT) + 1); in bucket_find_contain() 366 index.dev_addr -= (1 << HASH_FN_SHIFT); in bucket_find_contain() 418 entry->dev_addr, entry->size, in debug_dma_dump_mappings() 784 entry->dev_addr, entry->size, in dump_show() 852 count, entry->dev_addr, entry->size, in dma_debug_device_change() [all …]
|
/linux-6.1.9/drivers/remoteproc/ |
D | ti_k3_dsp_remoteproc.c | 36 u32 dev_addr; member 47 const u32 dev_addr; member 448 u32 dev_addr, offset; in k3_dsp_rproc_da_to_va() local 457 dev_addr = kproc->mem[i].dev_addr; in k3_dsp_rproc_da_to_va() 462 if (da >= dev_addr && in k3_dsp_rproc_da_to_va() 463 ((da + len) <= (dev_addr + size))) { in k3_dsp_rproc_da_to_va() 464 offset = da - dev_addr; in k3_dsp_rproc_da_to_va() 481 dev_addr = kproc->rmem[i].dev_addr; in k3_dsp_rproc_da_to_va() 484 if (da >= dev_addr && ((da + len) <= (dev_addr + size))) { in k3_dsp_rproc_da_to_va() 485 offset = da - dev_addr; in k3_dsp_rproc_da_to_va() [all …]
|
D | ti_k3_r5_remoteproc.c | 67 u32 dev_addr; member 728 u32 dev_addr, offset; in k3_r5_rproc_da_to_va() local 738 dev_addr = core->mem[i].dev_addr; in k3_r5_rproc_da_to_va() 742 if (da >= dev_addr && ((da + len) <= (dev_addr + size))) { in k3_r5_rproc_da_to_va() 743 offset = da - dev_addr; in k3_r5_rproc_da_to_va() 758 dev_addr = core->sram[i].dev_addr; in k3_r5_rproc_da_to_va() 761 if (da >= dev_addr && ((da + len) <= (dev_addr + size))) { in k3_r5_rproc_da_to_va() 762 offset = da - dev_addr; in k3_r5_rproc_da_to_va() 770 dev_addr = kproc->rmem[i].dev_addr; in k3_r5_rproc_da_to_va() 773 if (da >= dev_addr && ((da + len) <= (dev_addr + size))) { in k3_r5_rproc_da_to_va() [all …]
|
/linux-6.1.9/drivers/gpu/drm/udl/ |
D | udl_transfer.c | 81 uint32_t dev_addr = *device_address_ptr; in udl_compress_hline16() local 94 *cmd++ = (uint8_t) ((dev_addr >> 16) & 0xFF); in udl_compress_hline16() 95 *cmd++ = (uint8_t) ((dev_addr >> 8) & 0xFF); in udl_compress_hline16() 96 *cmd++ = (uint8_t) ((dev_addr) & 0xFF); in udl_compress_hline16() 149 dev_addr += ((pixel - cmd_pixel_start) >> log_bpp) * 2; in udl_compress_hline16() 161 *device_address_ptr = dev_addr; in udl_compress_hline16()
|
/linux-6.1.9/drivers/net/ethernet/intel/igc/ |
D | igc_phy.c | 660 u8 dev_addr, u16 *data, bool read) in __igc_access_xmdio_reg() argument 664 ret_val = hw->phy.ops.write_reg(hw, IGC_MMDAC, dev_addr); in __igc_access_xmdio_reg() 673 dev_addr); in __igc_access_xmdio_reg() 700 u8 dev_addr, u16 *data) in igc_read_xmdio_reg() argument 702 return __igc_access_xmdio_reg(hw, addr, dev_addr, data, true); in igc_read_xmdio_reg() 713 u8 dev_addr, u16 data) in igc_write_xmdio_reg() argument 715 return __igc_access_xmdio_reg(hw, addr, dev_addr, &data, false); in igc_write_xmdio_reg() 729 u8 dev_addr = (offset & GPY_MMD_MASK) >> GPY_MMD_SHIFT; in igc_write_phy_reg_gpy() local 734 if (!dev_addr) { in igc_write_phy_reg_gpy() 741 ret_val = igc_write_xmdio_reg(hw, (u16)offset, dev_addr, in igc_write_phy_reg_gpy() [all …]
|
/linux-6.1.9/drivers/net/ethernet/i825xx/ |
D | sni_82596.c | 112 netdevice->dev_addr[0] = readb(eth_addr + 0x0b); in sni_82596_probe() 113 netdevice->dev_addr[1] = readb(eth_addr + 0x0a); in sni_82596_probe() 114 netdevice->dev_addr[2] = readb(eth_addr + 0x09); in sni_82596_probe() 115 netdevice->dev_addr[3] = readb(eth_addr + 0x08); in sni_82596_probe() 116 netdevice->dev_addr[4] = readb(eth_addr + 0x07); in sni_82596_probe() 117 netdevice->dev_addr[5] = readb(eth_addr + 0x06); in sni_82596_probe()
|
/linux-6.1.9/drivers/net/ethernet/freescale/ |
D | xgmac_mdio.c | 140 uint16_t dev_addr; in xgmac_mdio_write() local 148 dev_addr = (regnum >> 16) & 0x1f; in xgmac_mdio_write() 152 dev_addr = regnum & 0x1f; in xgmac_mdio_write() 163 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in xgmac_mdio_write() 195 uint16_t dev_addr; in xgmac_mdio_read() local 203 dev_addr = (regnum >> 16) & 0x1f; in xgmac_mdio_read() 206 dev_addr = regnum & 0x1f; in xgmac_mdio_read() 217 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in xgmac_mdio_read() 247 phy_id, dev_addr, regnum); in xgmac_mdio_read()
|
/linux-6.1.9/drivers/reset/ |
D | reset-raspberrypi.c | 29 u32 dev_addr; in rpi_reset_reset() local 51 dev_addr = 0x100000; in rpi_reset_reset() 53 &dev_addr, sizeof(dev_addr)); in rpi_reset_reset()
|
/linux-6.1.9/net/8021q/ |
D | vlan_dev.c | 78 saddr = dev->dev_addr; in vlan_dev_hard_header() 253 eth_hw_addr_set(dev, real_dev->dev_addr); in vlan_dev_inherit_address() 268 if (!ether_addr_equal(dev->dev_addr, real_dev->dev_addr) && in vlan_dev_open() 270 err = dev_uc_add(real_dev, dev->dev_addr); in vlan_dev_open() 286 ether_addr_copy(vlan->real_dev_addr, real_dev->dev_addr); in vlan_dev_open() 303 if (!ether_addr_equal(dev->dev_addr, real_dev->dev_addr)) in vlan_dev_open() 304 dev_uc_del(real_dev, dev->dev_addr); in vlan_dev_open() 322 if (!ether_addr_equal(dev->dev_addr, real_dev->dev_addr)) in vlan_dev_stop() 323 dev_uc_del(real_dev, dev->dev_addr); in vlan_dev_stop() 342 if (!ether_addr_equal(addr->sa_data, real_dev->dev_addr)) { in vlan_dev_set_mac_address() [all …]
|
/linux-6.1.9/drivers/net/bonding/ |
D | bond_alb.c | 421 rlb_teach_disabled_mac_on_primary(bond, slave->dev->dev_addr); in rlb_clear_slave() 439 client_info->slave->dev->dev_addr, in rlb_update_client() 542 !ether_addr_equal_64bits(client_info->slave->dev->dev_addr, in rlb_req_update_subnet_clients() 543 bond->dev->dev_addr) && in rlb_req_update_subnet_clients() 682 bond_hw_addr_copy(arp->mac_src, tx_slave->dev->dev_addr, in rlb_arp_xmit() 976 alb_send_lp_vid(slave, upper->dev_addr, in alb_upper_dev_walk() 989 alb_send_lp_vid(slave, upper->dev_addr, in alb_upper_dev_walk() 1052 bond_hw_addr_copy(tmp_mac_addr, slave1->dev->dev_addr, in alb_swap_mac_addr() 1054 alb_set_slave_mac_addr(slave1, slave2->dev->dev_addr, in alb_swap_mac_addr() 1075 alb_send_learning_packets(slave1, slave1->dev->dev_addr, false); in alb_fasten_mac_swap() [all …]
|
/linux-6.1.9/net/netrom/ |
D | nr_dev.c | 71 memcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len); in nr_header() 103 if (!memcmp(dev->dev_addr, sa->sa_data, dev->addr_len)) in nr_set_mac_address() 111 ax25_listen_release((const ax25_address *)dev->dev_addr, NULL); in nr_set_mac_address() 123 err = ax25_listen_register((const ax25_address *)dev->dev_addr, NULL); in nr_open() 134 ax25_listen_release((const ax25_address *)dev->dev_addr, NULL); in nr_close()
|
/linux-6.1.9/net/rose/ |
D | rose_dev.c | 61 if (!memcmp(dev->dev_addr, sa->sa_data, dev->addr_len)) in rose_set_mac_address() 69 rose_del_loopback_node((const rose_address *)dev->dev_addr); in rose_set_mac_address() 81 err = rose_add_loopback_node((const rose_address *)dev->dev_addr); in rose_open() 93 rose_del_loopback_node((const rose_address *)dev->dev_addr); in rose_close()
|
/linux-6.1.9/drivers/w1/slaves/ |
D | w1_ds2405.c | 30 u64 dev_addr = le64_to_cpu(*(u64 *)&sl->reg_num); in w1_ds2405_select() local 43 int bit2send = !!(dev_addr & BIT(bit_ctr)); in w1_ds2405_select() 182 u64 dev_addr = le64_to_cpu(*(u64 *)&sl->reg_num); in output_store() local 186 memcpy(&cmd[1], &dev_addr, sizeof(dev_addr)); in output_store()
|
/linux-6.1.9/drivers/infiniband/hw/mlx5/ |
D | dm.c | 169 mlx5_cmd_dealloc_memic(&dev->dm, dm->base.dev_addr, dm->base.size); in mlx5_ib_dm_memic_free() 235 err = mlx5_cmd_alloc_memic_op(&dev->dm, dm->base.dev_addr, op, in UVERBS_HANDLER() 248 mlx5_cmd_dealloc_memic_op(&dev->dm, dm->base.dev_addr, op); in UVERBS_HANDLER() 301 err = mlx5_cmd_alloc_memic(dm_db, &dm->base.dev_addr, in handle_alloc_dm_memic() 308 address = dm->base.dev_addr & PAGE_MASK; in handle_alloc_dm_memic() 312 mlx5_cmd_dealloc_memic(dm_db, dm->base.dev_addr, dm->base.size); in handle_alloc_dm_memic() 323 start_offset = dm->base.dev_addr & ~PAGE_MASK; in handle_alloc_dm_memic() 400 &dm->base.dev_addr, &dm->obj_id); in handle_alloc_dm_sw_icm() 405 &dm->base.dev_addr, sizeof(dm->base.dev_addr)); in handle_alloc_dm_sw_icm() 409 dm->base.dev_addr, dm->obj_id); in handle_alloc_dm_sw_icm() [all …]
|