Home
last modified time | relevance | path

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

12345678910>>...31

/Linux-v6.6/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 …]
/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/drivers/xen/
Dswiotlb-xen.c200 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-v6.6/kernel/dma/
Ddebug.c70 u64 dev_addr; member
243 return (entry->dev_addr >> HASH_FN_SHIFT) & HASH_FN_MASK; in hash_fn()
273 return ((a->dev_addr == b->dev_addr) && in exact_match()
283 if ((b->dev_addr <= a->dev_addr) && in containing_match()
284 ((b->dev_addr + b->size) >= (a->dev_addr + a->size))) in containing_match()
355 int limit = min(HASH_SIZE, (index.dev_addr >> HASH_FN_SHIFT) + 1); in bucket_find_contain()
367 index.dev_addr -= (1 << HASH_FN_SHIFT); in bucket_find_contain()
540 entry->dev_addr, entry->size, in debug_dma_dump_mappings()
573 entry->dev_addr, entry->size, in dump_show()
869 count, entry->dev_addr, entry->size, in dma_debug_device_change()
[all …]
/Linux-v6.6/drivers/remoteproc/
Dti_k3_dsp_remoteproc.c36 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 …]
Dti_k3_r5_remoteproc.c68 u32 dev_addr; member
733 u32 dev_addr, offset; in k3_r5_rproc_da_to_va() local
743 dev_addr = core->mem[i].dev_addr; in k3_r5_rproc_da_to_va()
747 if (da >= dev_addr && ((da + len) <= (dev_addr + size))) { in k3_r5_rproc_da_to_va()
748 offset = da - dev_addr; in k3_r5_rproc_da_to_va()
763 dev_addr = core->sram[i].dev_addr; in k3_r5_rproc_da_to_va()
766 if (da >= dev_addr && ((da + len) <= (dev_addr + size))) { in k3_r5_rproc_da_to_va()
767 offset = da - dev_addr; in k3_r5_rproc_da_to_va()
775 dev_addr = kproc->rmem[i].dev_addr; in k3_r5_rproc_da_to_va()
778 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-v6.6/drivers/net/ethernet/intel/igc/
Digc_phy.c660 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-v6.6/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-v6.6/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-v6.6/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()
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-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/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()
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 …]
/Linux-v6.6/net/llc/
Dllc_c_ac.c210 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_disc_cmd_p_set_x()
237 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_dm_rsp_f_set_p()
261 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_dm_rsp_f_set_1()
295 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_frmr_rsp_f_set_x()
322 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_resend_frmr_rsp_f_set_0()
352 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_resend_frmr_rsp_f_set_p()
373 rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_i_cmd_p_set_1()
391 rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_i_cmd_p_set_0()
409 rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_i_xxx_x_set_0()
442 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr()
[all …]

12345678910>>...31