Home
last modified time | relevance | path

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

12345678910>>...31

/linux-6.12.1/drivers/media/dvb-frontends/drx39xyj/
Ddrxj.c534 static int drxdap_fasi_read_block(struct i2c_device_addr *dev_addr,
540 static int drxj_dap_read_modify_write_reg16(struct i2c_device_addr *dev_addr,
545 static int drxj_dap_read_reg16(struct i2c_device_addr *dev_addr,
549 static int drxdap_fasi_read_reg32(struct i2c_device_addr *dev_addr,
553 static int drxdap_fasi_write_block(struct i2c_device_addr *dev_addr,
558 static int drxj_dap_write_reg16(struct i2c_device_addr *dev_addr,
562 static int drxdap_fasi_write_reg32(struct i2c_device_addr *dev_addr,
1015 hi_command(struct i2c_device_addr *dev_addr,
1408 static int drxdap_fasi_read_block(struct i2c_device_addr *dev_addr, in drxdap_fasi_read_block() argument
1419 if (dev_addr == NULL) in drxdap_fasi_read_block()
[all …]
/linux-6.12.1/include/rdma/
Dib_addr.h56 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.12.1/drivers/infiniband/core/
Daddr.c146 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 …]
Dcma.c473 int ifindex_b = id_priv->id.route.addr.dev_addr.bound_dev_if; in compare_netdev_and_ip()
514 node_id_priv->id.route.addr.dev_addr.bound_dev_if, in cma_add_id_to_tree()
572 id_priv->id.route.addr.dev_addr.bound_dev_if, in cma_remove_id_from_tree()
592 id_priv->id.route.addr.dev_addr.transport = in _cma_attach_to_dev()
615 if (id_priv->id.route.addr.dev_addr.sgid_attr) { in cma_release_dev()
616 rdma_put_gid_attr(id_priv->id.route.addr.dev_addr.sgid_attr); in cma_release_dev()
617 id_priv->id.route.addr.dev_addr.sgid_attr = NULL; in cma_release_dev()
638 ib_addr_get_mgid(&id_priv->id.route.addr.dev_addr, &rec.mgid); in cma_set_default_qkey()
661 static void cma_translate_ib(struct sockaddr_ib *sib, struct rdma_dev_addr *dev_addr) in cma_translate_ib() argument
663 dev_addr->dev_type = ARPHRD_INFINIBAND; in cma_translate_ib()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/drivers/net/ethernet/freescale/enetc/
Denetc_mdio.c63 u16 dev_addr; in enetc_mdio_write_c22() local
67 dev_addr = regnum & 0x1f; in enetc_mdio_write_c22()
77 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_write_c22()
91 int enetc_mdio_write_c45(struct mii_bus *bus, int phy_id, int dev_addr, in enetc_mdio_write_c45() argument
108 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_write_c45()
133 u16 dev_addr, value; in enetc_mdio_read_c22() local
137 dev_addr = regnum & 0x1f; in enetc_mdio_read_c22()
147 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_read_c22()
161 phy_id, dev_addr, regnum); in enetc_mdio_read_c22()
171 int enetc_mdio_read_c45(struct mii_bus *bus, int phy_id, int dev_addr, in enetc_mdio_read_c45() argument
[all …]
/linux-6.12.1/include/trace/events/
Dswiotlb.h11 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.12.1/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"); \
92 const char *dev_addr, const char *host_addr,
109 const char *dev_addr, const char *host_addr, in gether_setup() argument
112 return gether_setup_name(g, dev_addr, host_addr, ethaddr, qmult, "usb"); in gether_setup()
162 int gether_set_dev_addr(struct net_device *net, const char *dev_addr);
173 int gether_get_dev_addr(struct net_device *net, char *dev_addr, int len);
/linux-6.12.1/drivers/net/ethernet/apm/xgene-v2/
Dmac.c68 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.12.1/drivers/mmc/core/
Dmmc_test.c77 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
948 ret = mmc_test_simple_transfer(test, sg, sg_len, dev_addr, in mmc_test_transfer()
[all …]
/linux-6.12.1/drivers/remoteproc/
Dti_k3_dsp_remoteproc.c36 u32 dev_addr; member
47 const u32 dev_addr; member
422 u32 dev_addr, offset; in k3_dsp_rproc_da_to_va() local
431 dev_addr = kproc->mem[i].dev_addr; in k3_dsp_rproc_da_to_va()
436 if (da >= dev_addr && in k3_dsp_rproc_da_to_va()
437 ((da + len) <= (dev_addr + size))) { in k3_dsp_rproc_da_to_va()
438 offset = da - dev_addr; in k3_dsp_rproc_da_to_va()
455 dev_addr = kproc->rmem[i].dev_addr; in k3_dsp_rproc_da_to_va()
458 if (da >= dev_addr && ((da + len) <= (dev_addr + size))) { in k3_dsp_rproc_da_to_va()
459 offset = da - dev_addr; in k3_dsp_rproc_da_to_va()
[all …]
Dti_k3_m4_remoteproc.c36 u32 dev_addr; member
47 const u32 dev_addr; member
290 u32 dev_addr, offset; in k3_m4_rproc_da_to_va() local
299 dev_addr = kproc->mem[i].dev_addr; in k3_m4_rproc_da_to_va()
303 if (da >= dev_addr && ((da + len) <= (dev_addr + size))) { in k3_m4_rproc_da_to_va()
304 offset = da - dev_addr; in k3_m4_rproc_da_to_va()
319 dev_addr = kproc->rmem[i].dev_addr; in k3_m4_rproc_da_to_va()
322 if (da >= dev_addr && ((da + len) <= (dev_addr + size))) { in k3_m4_rproc_da_to_va()
323 offset = da - dev_addr; in k3_m4_rproc_da_to_va()
372 kproc->mem[i].dev_addr = mem_addrs[i]; in k3_m4_rproc_of_get_memories()
[all …]
Dti_k3_r5_remoteproc.c68 u32 dev_addr; member
737 u32 dev_addr, offset; in k3_r5_rproc_da_to_va() local
747 dev_addr = core->mem[i].dev_addr; in k3_r5_rproc_da_to_va()
751 if (da >= dev_addr && ((da + len) <= (dev_addr + size))) { in k3_r5_rproc_da_to_va()
752 offset = da - dev_addr; in k3_r5_rproc_da_to_va()
767 dev_addr = core->sram[i].dev_addr; in k3_r5_rproc_da_to_va()
770 if (da >= dev_addr && ((da + len) <= (dev_addr + size))) { in k3_r5_rproc_da_to_va()
771 offset = da - dev_addr; in k3_r5_rproc_da_to_va()
779 dev_addr = kproc->rmem[i].dev_addr; in k3_r5_rproc_da_to_va()
782 if (da >= dev_addr && ((da + len) <= (dev_addr + size))) { in k3_r5_rproc_da_to_va()
[all …]
Dkeystone_remoteproc.c37 u32 dev_addr; member
254 u32 dev_addr, offset; in keystone_rproc_da_to_va() local
263 dev_addr = ksproc->mem[i].dev_addr; in keystone_rproc_da_to_va()
268 if ((da >= dev_addr) && in keystone_rproc_da_to_va()
269 ((da + len) <= (dev_addr + size))) { in keystone_rproc_da_to_va()
270 offset = da - dev_addr; in keystone_rproc_da_to_va()
320 ksproc->mem[i].dev_addr = in keystone_rproc_of_get_memories()
/linux-6.12.1/kernel/dma/
Ddebug.c71 u64 dev_addr; member
244 return (entry->dev_addr >> HASH_FN_SHIFT) & HASH_FN_MASK; in hash_fn()
274 return ((a->dev_addr == b->dev_addr) && in exact_match()
284 if ((b->dev_addr <= a->dev_addr) && in containing_match()
285 ((b->dev_addr + b->size) >= (a->dev_addr + a->size))) in containing_match()
356 int limit = min(HASH_SIZE, (index.dev_addr >> HASH_FN_SHIFT) + 1); in bucket_find_contain()
368 index.dev_addr -= (1 << HASH_FN_SHIFT); in bucket_find_contain()
544 entry->dev_addr, entry->size, in debug_dma_dump_mappings()
577 entry->dev_addr, entry->size, in dump_show()
873 count, entry->dev_addr, entry->size, in dma_debug_device_change()
[all …]
/linux-6.12.1/drivers/xen/
Dswiotlb-xen.c207 dma_addr_t dev_addr = xen_phys_to_dma(dev, phys); in xen_swiotlb_map_page() local
215 if (dma_capable(dev, dev_addr, size, true) && in xen_swiotlb_map_page()
217 !xen_arch_need_swiotlb(dev, phys, dev_addr) && in xen_swiotlb_map_page()
224 trace_swiotlb_bounced(dev, dev_addr, size); in xen_swiotlb_map_page()
231 dev_addr = xen_phys_to_dma(dev, map); in xen_swiotlb_map_page()
236 if (unlikely(!dma_capable(dev, dev_addr, size, true))) { in xen_swiotlb_map_page()
245 if (pfn_valid(PFN_DOWN(dma_to_phys(dev, dev_addr)))) in xen_swiotlb_map_page()
248 xen_dma_sync_for_device(dev, dev_addr, size, dir); in xen_swiotlb_map_page()
250 return dev_addr; in xen_swiotlb_map_page()
261 static void xen_swiotlb_unmap_page(struct device *hwdev, dma_addr_t dev_addr, in xen_swiotlb_unmap_page() argument
[all …]
/linux-6.12.1/drivers/net/ethernet/intel/igc/
Digc_phy.c657 u8 dev_addr, u16 *data, bool read) in __igc_access_xmdio_reg() argument
661 ret_val = hw->phy.ops.write_reg(hw, IGC_MMDAC, dev_addr); in __igc_access_xmdio_reg()
670 dev_addr); in __igc_access_xmdio_reg()
697 u8 dev_addr, u16 *data) in igc_read_xmdio_reg() argument
699 return __igc_access_xmdio_reg(hw, addr, dev_addr, data, true); in igc_read_xmdio_reg()
710 u8 dev_addr, u16 data) in igc_write_xmdio_reg() argument
712 return __igc_access_xmdio_reg(hw, addr, dev_addr, &data, false); in igc_write_xmdio_reg()
726 u8 dev_addr = FIELD_GET(GPY_MMD_MASK, offset); in igc_write_phy_reg_gpy() local
731 if (!dev_addr) { in igc_write_phy_reg_gpy()
738 ret_val = igc_write_xmdio_reg(hw, (u16)offset, dev_addr, in igc_write_phy_reg_gpy()
[all …]
/linux-6.12.1/drivers/gpu/drm/udl/
Dudl_transfer.c82 uint32_t dev_addr = *device_address_ptr; in udl_compress_hline16() local
95 *cmd++ = (uint8_t) ((dev_addr >> 16) & 0xFF); in udl_compress_hline16()
96 *cmd++ = (uint8_t) ((dev_addr >> 8) & 0xFF); in udl_compress_hline16()
97 *cmd++ = (uint8_t) ((dev_addr) & 0xFF); in udl_compress_hline16()
150 dev_addr += ((pixel - cmd_pixel_start) >> log_bpp) * 2; in udl_compress_hline16()
162 *device_address_ptr = dev_addr; in udl_compress_hline16()
/linux-6.12.1/drivers/net/bonding/
Dbond_alb.c421 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()
990 alb_send_lp_vid(slave, upper->dev_addr, in alb_upper_dev_walk()
1053 bond_hw_addr_copy(tmp_mac_addr, slave1->dev->dev_addr, in alb_swap_mac_addr()
1055 alb_set_slave_mac_addr(slave1, slave2->dev->dev_addr, in alb_swap_mac_addr()
1076 alb_send_learning_packets(slave1, slave1->dev->dev_addr, false); in alb_fasten_mac_swap()
[all …]
/linux-6.12.1/drivers/reset/
Dreset-raspberrypi.c29 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.12.1/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((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.12.1/drivers/net/ethernet/freescale/
Dxgmac_mdio.c137 u16 dev_addr = regnum & 0x1f; in xgmac_mdio_write_c22() local
150 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in xgmac_mdio_write_c22()
163 static int xgmac_mdio_write_c45(struct mii_bus *bus, int phy_id, int dev_addr, in xgmac_mdio_write_c45() argument
182 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in xgmac_mdio_write_c45()
211 u16 dev_addr = regnum & 0x1f; in xgmac_mdio_read_c22() local
226 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in xgmac_mdio_read_c22()
247 phy_id, dev_addr, regnum); in xgmac_mdio_read_c22()
265 static int xgmac_mdio_read_c45(struct mii_bus *bus, int phy_id, int dev_addr, in xgmac_mdio_read_c45() argument
285 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in xgmac_mdio_read_c45()
313 phy_id, dev_addr, regnum); in xgmac_mdio_read_c45()
/linux-6.12.1/drivers/w1/slaves/
Dw1_ds2405.c30 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.12.1/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((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.12.1/drivers/infiniband/hw/mlx5/
Ddm.c169 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()
403 &dm->base.dev_addr, &dm->obj_id); in handle_alloc_dm_sw_icm()
408 &dm->base.dev_addr, sizeof(dm->base.dev_addr)); in handle_alloc_dm_sw_icm()
412 dm->base.dev_addr, dm->obj_id); in handle_alloc_dm_sw_icm()
[all …]

12345678910>>...31