Home
last modified time | relevance | path

Searched refs:dev_addr (Results 1 – 25 of 854) sorted by relevance

12345678910>>...35

/kernel/linux/linux-5.10/drivers/media/dvb-frontends/drx39xyj/
Ddrxj.c533 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 …]
/kernel/linux/linux-5.10/include/trace/events/
Dintel_iommu.h20 TP_PROTO(struct device *dev, dma_addr_t dev_addr, phys_addr_t phys_addr,
23 TP_ARGS(dev, dev_addr, phys_addr, size),
27 __field(dma_addr_t, dev_addr)
34 __entry->dev_addr = dev_addr;
41 (unsigned long long)__entry->dev_addr,
47 TP_PROTO(struct device *dev, dma_addr_t dev_addr, phys_addr_t phys_addr,
49 TP_ARGS(dev, dev_addr, phys_addr, size)
53 TP_PROTO(struct device *dev, dma_addr_t dev_addr, phys_addr_t phys_addr,
55 TP_ARGS(dev, dev_addr, phys_addr, size)
59 TP_PROTO(struct device *dev, dma_addr_t dev_addr, size_t size),
[all …]
Dswiotlb.h13 dma_addr_t dev_addr,
17 TP_ARGS(dev, dev_addr, size, swiotlb_force),
22 __field( dma_addr_t, dev_addr )
30 __entry->dev_addr = dev_addr;
39 (unsigned long long)__entry->dev_addr,
/kernel/linux/linux-5.10/include/rdma/
Dib_addr.h55 struct rdma_dev_addr *dev_addr);
86 static inline u16 ib_addr_get_pkey(struct rdma_dev_addr *dev_addr) in ib_addr_get_pkey() argument
88 return ((u16)dev_addr->broadcast[8] << 8) | (u16)dev_addr->broadcast[9]; in ib_addr_get_pkey()
91 static inline void ib_addr_set_pkey(struct rdma_dev_addr *dev_addr, u16 pkey) in ib_addr_set_pkey() argument
93 dev_addr->broadcast[8] = pkey >> 8; in ib_addr_set_pkey()
94 dev_addr->broadcast[9] = (unsigned char) pkey; in ib_addr_set_pkey()
97 static inline void ib_addr_get_mgid(struct rdma_dev_addr *dev_addr, in ib_addr_get_mgid() argument
100 memcpy(gid, dev_addr->broadcast + 4, sizeof *gid); in ib_addr_get_mgid()
103 static inline int rdma_addr_gid_offset(struct rdma_dev_addr *dev_addr) in rdma_addr_gid_offset() argument
105 return dev_addr->dev_type == ARPHRD_INFINIBAND ? 4 : 0; in rdma_addr_gid_offset()
[all …]
/kernel/linux/linux-5.10/drivers/staging/gasket/
Dgasket_page_table.c543 ulong dev_addr) in gasket_simple_page_idx() argument
545 return (dev_addr >> GASKET_SIMPLE_PAGE_SHIFT) & in gasket_simple_page_idx()
554 ulong dev_addr) in gasket_extended_lvl0_page_idx() argument
556 return (dev_addr >> GASKET_EXTENDED_LVL0_SHIFT) & in gasket_extended_lvl0_page_idx()
565 ulong dev_addr) in gasket_extended_lvl1_page_idx() argument
567 return (dev_addr >> GASKET_EXTENDED_LVL1_SHIFT) & in gasket_extended_lvl1_page_idx()
576 ulong dev_addr, uint num_pages) in gasket_alloc_simple_entries() argument
579 gasket_simple_page_idx(pg_tbl, dev_addr), in gasket_alloc_simple_entries()
630 ulong dev_addr, uint num_pages) in gasket_unmap_simple_pages() argument
632 uint slot = gasket_simple_page_idx(pg_tbl, dev_addr); in gasket_unmap_simple_pages()
[all …]
Dgasket_page_table.h98 ulong dev_addr, uint num_pages);
109 ulong dev_addr, uint num_pages);
149 ulong dev_addr, struct page **page,
166 ulong host_addr, ulong dev_addr,
182 ulong dev_addr, ulong bytes);
/kernel/linux/linux-5.10/drivers/infiniband/core/
Daddr.c147 static int ib_nl_ip_send_msg(struct rdma_dev_addr *dev_addr, in ib_nl_ip_send_msg() argument
183 header->ifindex = dev_addr->bound_dev_if; in ib_nl_ip_send_msg()
236 void rdma_copy_src_l2_addr(struct rdma_dev_addr *dev_addr, in rdma_copy_src_l2_addr() argument
239 dev_addr->dev_type = dev->type; in rdma_copy_src_l2_addr()
240 memcpy(dev_addr->src_dev_addr, dev->dev_addr, MAX_ADDR_LEN); in rdma_copy_src_l2_addr()
241 memcpy(dev_addr->broadcast, dev->broadcast, MAX_ADDR_LEN); in rdma_copy_src_l2_addr()
242 dev_addr->bound_dev_if = dev->ifindex; in rdma_copy_src_l2_addr()
277 struct rdma_dev_addr *dev_addr) in rdma_translate_ip() argument
281 if (dev_addr->bound_dev_if) { in rdma_translate_ip()
282 dev = dev_get_by_index(dev_addr->net, dev_addr->bound_dev_if); in rdma_translate_ip()
[all …]
Dcma.c463 id_priv->id.route.addr.dev_addr.transport = in _cma_attach_to_dev()
486 if (id_priv->id.route.addr.dev_addr.sgid_attr) { in cma_release_dev()
487 rdma_put_gid_attr(id_priv->id.route.addr.dev_addr.sgid_attr); in cma_release_dev()
488 id_priv->id.route.addr.dev_addr.sgid_attr = NULL; in cma_release_dev()
519 ib_addr_get_mgid(&id_priv->id.route.addr.dev_addr, &rec.mgid); in cma_set_default_qkey()
542 static void cma_translate_ib(struct sockaddr_ib *sib, struct rdma_dev_addr *dev_addr) in cma_translate_ib() argument
544 dev_addr->dev_type = ARPHRD_INFINIBAND; in cma_translate_ib()
545 rdma_addr_set_sgid(dev_addr, (union ib_gid *) &sib->sib_addr); in cma_translate_ib()
546 ib_addr_set_pkey(dev_addr, ntohs(sib->sib_pkey)); in cma_translate_ib()
549 static int cma_translate_addr(struct sockaddr *addr, struct rdma_dev_addr *dev_addr) in cma_translate_addr() argument
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/solo6x10/
Dsolo6x10-tw28.c216 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 …]
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Du_ether.h31 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);
/kernel/linux/linux-5.10/drivers/xen/
Dswiotlb-xen.c285 dma_addr_t dev_addr; in xen_swiotlb_alloc_coherent() local
316 dev_addr = xen_phys_to_dma(hwdev, phys); in xen_swiotlb_alloc_coherent()
317 if (((dev_addr + size - 1 <= dma_mask)) && in xen_swiotlb_alloc_coherent()
319 *dma_handle = dev_addr; in xen_swiotlb_alloc_coherent()
335 dma_addr_t dev_addr, unsigned long attrs) in xen_swiotlb_free_coherent() argument
347 phys = xen_dma_to_phys(hwdev, dev_addr); in xen_swiotlb_free_coherent()
357 if (!WARN_ON((dev_addr + size - 1 > dma_mask) || in xen_swiotlb_free_coherent()
379 dma_addr_t dev_addr = xen_phys_to_dma(dev, phys); in xen_swiotlb_map_page() local
387 if (dma_capable(dev, dev_addr, size, true) && in xen_swiotlb_map_page()
389 !xen_arch_need_swiotlb(dev, phys, dev_addr) && in xen_swiotlb_map_page()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/apm/xgene-v2/
Dmac.c68 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/
Denetc_mdio.c65 u16 dev_addr; in enetc_mdio_write() local
70 dev_addr = (regnum >> 16) & 0x1f; in enetc_mdio_write()
74 dev_addr = regnum & 0x1f; in enetc_mdio_write()
85 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_write()
112 u16 dev_addr, value; in enetc_mdio_read() local
117 dev_addr = (regnum >> 16) & 0x1f; in enetc_mdio_read()
120 dev_addr = regnum & 0x1f; in enetc_mdio_read()
131 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_read()
154 phy_id, dev_addr, regnum); in enetc_mdio_read()
/kernel/linux/linux-5.10/drivers/remoteproc/
Dti_k3_dsp_remoteproc.c36 u32 dev_addr; member
47 const u32 dev_addr; member
362 u32 dev_addr, offset; in k3_dsp_rproc_da_to_va() local
371 dev_addr = kproc->mem[i].dev_addr; in k3_dsp_rproc_da_to_va()
376 if (da >= dev_addr && in k3_dsp_rproc_da_to_va()
377 ((da + len) <= (dev_addr + size))) { in k3_dsp_rproc_da_to_va()
378 offset = da - dev_addr; in k3_dsp_rproc_da_to_va()
395 dev_addr = kproc->rmem[i].dev_addr; in k3_dsp_rproc_da_to_va()
398 if (da >= dev_addr && ((da + len) <= (dev_addr + size))) { in k3_dsp_rproc_da_to_va()
399 offset = da - dev_addr; in k3_dsp_rproc_da_to_va()
[all …]
/kernel/linux/linux-5.10/drivers/mmc/core/
Dmmc_test.c78 unsigned int dev_addr; member
212 unsigned dev_addr, unsigned blocks, unsigned blksz, int write) in mmc_test_prepare_mrq() argument
225 mrq->cmd->arg = dev_addr; in mmc_test_prepare_mrq()
841 unsigned int dev_addr, int write, in mmc_test_nonblock_transfer() argument
864 mmc_test_prepare_mrq(test, mrq, sg, t->sg_len, dev_addr, in mmc_test_nonblock_transfer()
875 dev_addr += t->blocks; in mmc_test_nonblock_transfer()
889 struct scatterlist *sg, unsigned sg_len, unsigned dev_addr, in mmc_test_simple_transfer() argument
901 mmc_test_prepare_mrq(test, &mrq, sg, sg_len, dev_addr, in mmc_test_simple_transfer()
946 struct scatterlist *sg, unsigned sg_len, unsigned dev_addr, in mmc_test_transfer() argument
966 ret = mmc_test_simple_transfer(test, sg, sg_len, dev_addr, in mmc_test_transfer()
[all …]
/kernel/linux/linux-5.10/kernel/dma/
Ddebug.c69 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()
368 index.dev_addr -= (1 << HASH_FN_SHIFT); in bucket_find_contain()
420 entry->dev_addr, entry->size, in debug_dma_dump_mappings()
787 entry->dev_addr, entry->size, in dump_show()
855 count, entry->dev_addr, entry->size, in dma_debug_device_change()
959 if (dma_mapping_error(ref->dev, ref->dev_addr)) { in check_unmap()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/natsemi/
Dmacsonic.c216 dev->dev_addr[i] = SONIC_READ_PROM(i); in mac_onboard_sonic_ethernet_addr()
217 if (!INVALID_MAC(dev->dev_addr)) in mac_onboard_sonic_ethernet_addr()
225 bit_reverse_addr(dev->dev_addr); in mac_onboard_sonic_ethernet_addr()
226 if (!INVALID_MAC(dev->dev_addr)) in mac_onboard_sonic_ethernet_addr()
246 dev->dev_addr[5] = val >> 8; in mac_onboard_sonic_ethernet_addr()
247 dev->dev_addr[4] = val & 0xff; in mac_onboard_sonic_ethernet_addr()
249 dev->dev_addr[3] = val >> 8; in mac_onboard_sonic_ethernet_addr()
250 dev->dev_addr[2] = val & 0xff; in mac_onboard_sonic_ethernet_addr()
252 dev->dev_addr[1] = val >> 8; in mac_onboard_sonic_ethernet_addr()
253 dev->dev_addr[0] = val & 0xff; in mac_onboard_sonic_ethernet_addr()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/
Dmvme147.c99 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()
111 dev->dev_addr); in mvme147lance_probe()
/kernel/linux/linux-5.10/net/netrom/
Dnr_dev.c71 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((ax25_address *)dev->dev_addr, NULL); in nr_set_mac_address()
114 memcpy(dev->dev_addr, sa->sa_data, dev->addr_len); in nr_set_mac_address()
123 err = ax25_listen_register((ax25_address *)dev->dev_addr, NULL); in nr_open()
134 ax25_listen_release((ax25_address *)dev->dev_addr, NULL); in nr_close()
/kernel/linux/linux-5.10/net/rose/
Drose_dev.c61 if (!memcmp(dev->dev_addr, sa->sa_data, dev->addr_len)) in rose_set_mac_address()
69 rose_del_loopback_node((rose_address *)dev->dev_addr); in rose_set_mac_address()
72 memcpy(dev->dev_addr, sa->sa_data, dev->addr_len); in rose_set_mac_address()
81 err = rose_add_loopback_node((rose_address *)dev->dev_addr); in rose_open()
93 rose_del_loopback_node((rose_address *)dev->dev_addr); in rose_close()
/kernel/linux/linux-5.10/net/8021q/
Dvlan_dev.c78 saddr = dev->dev_addr; in vlan_dev_hard_header()
253 ether_addr_copy(dev->dev_addr, 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 …]
/kernel/linux/linux-5.10/drivers/net/bonding/
Dbond_alb.c419 rlb_teach_disabled_mac_on_primary(bond, slave->dev->dev_addr); in rlb_clear_slave()
437 client_info->slave->dev->dev_addr, in rlb_update_client()
540 !ether_addr_equal_64bits(client_info->slave->dev->dev_addr, in rlb_req_update_subnet_clients()
541 bond->dev->dev_addr) && in rlb_req_update_subnet_clients()
669 bond_hw_addr_copy(arp->mac_src, tx_slave->dev->dev_addr, in rlb_arp_xmit()
962 alb_send_lp_vid(slave, upper->dev_addr, in alb_upper_dev_walk()
975 alb_send_lp_vid(slave, upper->dev_addr, in alb_upper_dev_walk()
1014 memcpy(dev->dev_addr, addr, len); in alb_set_slave_mac_addr()
1038 bond_hw_addr_copy(tmp_mac_addr, slave1->dev->dev_addr, in alb_swap_mac_addr()
1040 alb_set_slave_mac_addr(slave1, slave2->dev->dev_addr, in alb_swap_mac_addr()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/
Dxgmac_mdio.c134 uint16_t dev_addr; in xgmac_mdio_write() local
142 dev_addr = (regnum >> 16) & 0x1f; in xgmac_mdio_write()
146 dev_addr = regnum & 0x1f; in xgmac_mdio_write()
157 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in xgmac_mdio_write()
189 uint16_t dev_addr; in xgmac_mdio_read() local
197 dev_addr = (regnum >> 16) & 0x1f; in xgmac_mdio_read()
200 dev_addr = regnum & 0x1f; in xgmac_mdio_read()
211 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in xgmac_mdio_read()
241 phy_id, dev_addr, regnum); in xgmac_mdio_read()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/
Digc_phy.c670 u8 dev_addr, u16 *data, bool read) in __igc_access_xmdio_reg() argument
674 ret_val = hw->phy.ops.write_reg(hw, IGC_MMDAC, dev_addr); in __igc_access_xmdio_reg()
683 dev_addr); in __igc_access_xmdio_reg()
710 u8 dev_addr, u16 *data) in igc_read_xmdio_reg() argument
712 return __igc_access_xmdio_reg(hw, addr, dev_addr, data, true); in igc_read_xmdio_reg()
723 u8 dev_addr, u16 data) in igc_write_xmdio_reg() argument
725 return __igc_access_xmdio_reg(hw, addr, dev_addr, &data, false); in igc_write_xmdio_reg()
739 u8 dev_addr = (offset & GPY_MMD_MASK) >> GPY_MMD_SHIFT; in igc_write_phy_reg_gpy() local
744 if (!dev_addr) { in igc_write_phy_reg_gpy()
751 ret_val = igc_write_xmdio_reg(hw, (u16)offset, dev_addr, in igc_write_phy_reg_gpy()
[all …]
/kernel/linux/linux-5.10/net/hsr/
Dhsr_main.c78 ether_addr_copy(master->dev->dev_addr, dev->dev_addr); in hsr_netdev_notify()
86 master->dev->dev_addr, in hsr_netdev_notify()
88 port->dev->dev_addr : in hsr_netdev_notify()
89 master->dev->dev_addr); in hsr_netdev_notify()

12345678910>>...35