/drivers/char/ipmi/ |
D | ipmi_devintf.c | 149 if (req->addr_len > sizeof(struct ipmi_addr)) in handle_send_req() 152 if (copy_from_user(&addr, req->addr, req->addr_len)) in handle_send_req() 165 rv = ipmi_validate_addr(&addr, req->addr_len); in handle_send_req() 203 int addr_len; in handle_recv() local 231 addr_len = ipmi_addr_length(msg->addr.addr_type); in handle_recv() 232 if (rsp->addr_len < addr_len) { in handle_recv() 237 if (copy_to_user(rsp->addr, &msg->addr, addr_len)) { in handle_recv() 241 rsp->addr_len = addr_len; in handle_recv() 642 compat_uint_t addr_len; member 650 compat_uint_t addr_len; member [all …]
|
/drivers/nvmem/ |
D | rockchip-efuse.c | 99 unsigned int addr_start, addr_end, addr_offset, addr_len; in rockchip_rk3328_efuse_read() local 115 addr_len = addr_end - addr_start; in rockchip_rk3328_efuse_read() 117 buf = kzalloc(array3_size(addr_len, RK3399_NBYTES, sizeof(*buf)), in rockchip_rk3328_efuse_read() 124 while (addr_len--) { in rockchip_rk3328_efuse_read() 154 unsigned int addr_start, addr_end, addr_offset, addr_len; in rockchip_rk3399_efuse_read() local 168 addr_len = addr_end - addr_start; in rockchip_rk3399_efuse_read() 170 buf = kzalloc(array3_size(addr_len, RK3399_NBYTES, sizeof(*buf)), in rockchip_rk3399_efuse_read() 180 while (addr_len--) { in rockchip_rk3399_efuse_read()
|
D | rockchip-otp.c | 191 unsigned int addr_start, addr_end, addr_len; in rk3588_otp_read() local 198 addr_len = addr_end - addr_start; in rk3588_otp_read() 201 buf = kzalloc(array_size(addr_len, RK3588_NBYTES), GFP_KERNEL); in rk3588_otp_read() 205 while (addr_len--) { in rk3588_otp_read()
|
/drivers/staging/rtl8192u/ |
D | r8180_93cx6.c | 110 int addr_len; in eprom_read() local 130 addr_len = 8; in eprom_read() 138 addr_len = 6; in eprom_read() 143 eprom_send_bits_string(dev, addr_str, addr_len); in eprom_read()
|
/drivers/net/ethernet/realtek/ |
D | 8139cp.c | 1703 int addr_len) in eeprom_extend_cmd() argument 1705 int cmd = (EE_EXTEND_CMD << addr_len) | (extend_cmd << (addr_len - 2)); in eeprom_extend_cmd() 1708 eeprom_cmd(ee_addr, cmd, 3 + addr_len); in eeprom_extend_cmd() 1712 static u16 read_eeprom (void __iomem *ioaddr, int location, int addr_len) in read_eeprom() argument 1717 int read_cmd = location | (EE_READ_CMD << addr_len); in read_eeprom() 1720 eeprom_cmd(ee_addr, read_cmd, 3 + addr_len); in read_eeprom() 1738 int addr_len) in write_eeprom() argument 1742 int write_cmd = location | (EE_WRITE_CMD << addr_len); in write_eeprom() 1744 eeprom_extend_cmd(ee_addr, EE_EWEN_ADDR, addr_len); in write_eeprom() 1747 eeprom_cmd(ee_addr, write_cmd, 3 + addr_len); in write_eeprom() [all …]
|
D | 8139too.c | 639 static int read_eeprom (void __iomem *ioaddr, int location, int addr_len); 949 int i, addr_len, option; in rtl8139_init_one() local 996 addr_len = read_eeprom (ioaddr, 0, 8) == 0x8129 ? 8 : 6; in rtl8139_init_one() 998 addr[i] = cpu_to_le16(read_eeprom (ioaddr, i + 7, addr_len)); in rtl8139_init_one() 1153 static int read_eeprom(void __iomem *ioaddr, int location, int addr_len) in read_eeprom() argument 1157 int read_cmd = location | (EE_READ_CMD << addr_len); in read_eeprom() 1164 for (i = 4 + addr_len; i >= 0; i--) { in read_eeprom()
|
/drivers/xen/ |
D | pvcalls-front.h | 8 int addr_len, int flags); 11 int addr_len);
|
D | pvcalls-front.c | 423 int addr_len, int flags) in pvcalls_front_connect() argument 464 req->u.connect.len = addr_len; in pvcalls_front_connect() 670 int pvcalls_front_bind(struct socket *sock, struct sockaddr *addr, int addr_len) in pvcalls_front_bind() argument 698 req->u.bind.len = addr_len; in pvcalls_front_bind()
|
/drivers/media/usb/dvb-usb-v2/ |
D | af9015.c | 34 state->buf[6] = req->addr_len; in af9015_ctrl_msg() 121 req.addr_len = 3; in af9015_write_reg_i2c() 134 req.addr_len = 3; in af9015_read_reg_i2c() 147 u8 mbox, addr_len; in af9015_i2c_xfer() local 177 addr_len = 0; in af9015_i2c_xfer() 181 addr_len = 1; in af9015_i2c_xfer() 185 addr_len = 2; in af9015_i2c_xfer() 189 addr_len = 3; in af9015_i2c_xfer() 205 req.addr_len = addr_len; in af9015_i2c_xfer() 206 req.data_len = msg[0].len - addr_len; in af9015_i2c_xfer() [all …]
|
D | af9015.h | 64 u8 addr_len; /* [6] */ member
|
/drivers/gpu/drm/bridge/ |
D | parade-ps8640.c | 221 u8 addr_len[PAGE0_SWAUX_LENGTH + 1 - PAGE0_SWAUX_ADDR_7_0]; in ps8640_aux_transfer_msg() local 254 addr_len[PAGE0_SWAUX_ADDR_7_0 - base] = msg->address; in ps8640_aux_transfer_msg() 255 addr_len[PAGE0_SWAUX_ADDR_15_8 - base] = msg->address >> 8; in ps8640_aux_transfer_msg() 256 addr_len[PAGE0_SWAUX_ADDR_23_16 - base] = (msg->address >> 16) | in ps8640_aux_transfer_msg() 258 addr_len[PAGE0_SWAUX_LENGTH - base] = (len == 0) ? SWAUX_NO_PAYLOAD : in ps8640_aux_transfer_msg() 261 regmap_bulk_write(map, PAGE0_SWAUX_ADDR_7_0, addr_len, in ps8640_aux_transfer_msg() 262 ARRAY_SIZE(addr_len)); in ps8640_aux_transfer_msg()
|
D | ti-sn65dsi86.c | 533 u8 addr_len[SN_AUX_LENGTH_REG + 1 - SN_AUX_ADDR_19_16_REG]; in ti_sn_aux_transfer() local 566 BUILD_BUG_ON(sizeof(addr_len) != sizeof(__be32)); in ti_sn_aux_transfer() 568 addr_len); in ti_sn_aux_transfer() 569 regmap_bulk_write(pdata->regmap, SN_AUX_ADDR_19_16_REG, addr_len, in ti_sn_aux_transfer() 570 ARRAY_SIZE(addr_len)); in ti_sn_aux_transfer()
|
/drivers/net/ethernet/dec/tulip/ |
D | eeprom.c | 340 int tulip_read_eeprom(struct net_device *dev, int location, int addr_len) in tulip_read_eeprom() argument 346 int read_cmd = location | (EE_READ_CMD << addr_len); in tulip_read_eeprom() 351 if (location > (1 << addr_len) - 1) in tulip_read_eeprom() 358 for (i = 4 + addr_len; i >= 0; i--) { in tulip_read_eeprom()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | l2t.c | 105 int addr_len, int ifindex) in addr_hash() argument 107 return addr_len == 4 ? arp_hash(d, addr, ifindex) : in addr_hash() 422 unsigned int addr_len = neigh->tbl->key_len; in cxgb4_l2t_get() local 425 int hash = addr_hash(d, addr, addr_len, ifidx); in cxgb4_l2t_get() 456 memcpy(e->addr, addr, addr_len); in cxgb4_l2t_get() 460 e->v6 = addr_len == 16; in cxgb4_l2t_get() 511 unsigned int addr_len = neigh->tbl->key_len; in t4_l2t_update() local 518 hash = addr_hash(d, addr, addr_len, ifidx); in t4_l2t_update()
|
/drivers/net/bonding/ |
D | bond_alb.c | 683 tx_slave->dev->addr_len); in rlb_arp_xmit() 1054 slave1->dev->addr_len); in alb_swap_mac_addr() 1056 slave2->dev->addr_len); in alb_swap_mac_addr() 1058 slave1->dev->addr_len); in alb_swap_mac_addr() 1186 bond->dev->addr_len); in alb_handle_addr_collision_on_attach() 1212 free_mac_slave->dev->addr_len); in alb_handle_addr_collision_on_attach() 1253 slave->dev->addr_len); in alb_set_mac_address() 1267 memcpy(ss.__data, bond->dev->dev_addr, bond->dev->addr_len); in alb_set_mac_address() 1275 rollback_slave->dev->addr_len); in alb_set_mac_address() 1640 slave->dev->addr_len); in bond_alb_init_slave() [all …]
|
D | bond_sysfs_slave.c | 49 slave->dev->addr_len, in perm_hwaddr_show()
|
D | bond_main.c | 922 bond_dev, slave_dev, slave_dev->addr_len); in bond_set_dev_addr() 927 __dev_addr_set(bond_dev, slave_dev->dev_addr, slave_dev->addr_len); in bond_set_dev_addr() 986 new_active->dev->addr_len); in bond_do_fail_over_mac() 989 old_active->dev->addr_len); in bond_do_fail_over_mac() 993 bond->dev->addr_len); in bond_do_fail_over_mac() 1009 new_active->dev->addr_len); in bond_do_fail_over_mac() 1504 bond_dev->addr_len = slave_dev->addr_len; in bond_setup_by_slave() 1507 slave_dev->addr_len); in bond_setup_by_slave() 1590 bond->dev->addr_len); in bond_handle_frame() 1983 slave_dev->addr_len); in bond_enslave() [all …]
|
/drivers/net/ethernet/intel/ |
D | e100.c | 681 static void e100_eeprom_write(struct nic *nic, u16 addr_len, u16 addr, __le16 data) in e100_eeprom_write() argument 688 cmd_addr_data[0] = op_ewen << (addr_len - 2); in e100_eeprom_write() 689 cmd_addr_data[1] = (((op_write << addr_len) | addr) << 16) | in e100_eeprom_write() 691 cmd_addr_data[2] = op_ewds << (addr_len - 2); in e100_eeprom_write() 719 static __le16 e100_eeprom_read(struct nic *nic, u16 *addr_len, u16 addr) in e100_eeprom_read() argument 726 cmd_addr_data = ((op_read << *addr_len) | addr) << 16; in e100_eeprom_read() 745 *addr_len -= (i - 16); in e100_eeprom_read() 762 u16 addr, addr_len = 8, checksum = 0; in e100_eeprom_load() local 765 e100_eeprom_read(nic, &addr_len, 0); in e100_eeprom_load() 766 nic->eeprom_wc = 1 << addr_len; in e100_eeprom_load() [all …]
|
/drivers/firewire/ |
D | net.c | 218 memset(h->h_dest, 0, net->addr_len); in fwnet_header_create() 224 memcpy(h->h_dest, daddr, net->addr_len); in fwnet_header_create() 243 memcpy(h->h_dest, neigh->ha, net->addr_len); in fwnet_header_cache() 257 memcpy((u8 *)hh->hh_data + HH_DATA_OFF(FWNET_HLEN), haddr, net->addr_len); in fwnet_header_cache_update() 515 net->addr_len) == 0) in fwnet_finish_incoming_packet() 522 if (memcmp(eth->h_dest, net->dev_addr, net->addr_len)) in fwnet_finish_incoming_packet() 1381 net->addr_len = FWNET_ALEN; in fwnet_init_dev() 1494 memset(net->broadcast, -1, net->addr_len); in fwnet_probe()
|
/drivers/isdn/mISDN/ |
D | socket.c | 465 data_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) in data_sock_bind() argument 474 if (addr_len != sizeof(struct sockaddr_mISDN)) in data_sock_bind() 699 base_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) in base_sock_bind() argument 705 if (addr_len < sizeof(struct sockaddr_mISDN)) in base_sock_bind()
|
/drivers/net/can/ |
D | vcan.c | 161 dev->addr_len = 0; in vcan_setup()
|
/drivers/infiniband/sw/siw/ |
D | siw_main.c | 294 if (netdev->addr_len) { in siw_device_create() 296 min_t(unsigned int, netdev->addr_len, ETH_ALEN)); in siw_device_create()
|
/drivers/net/ethernet/micrel/ |
D | ks8842.c | 1188 i = netdev->addr_len; in ks8842_probe() 1190 for (i = 0; i < netdev->addr_len; i++) in ks8842_probe() 1194 if (i < netdev->addr_len) in ks8842_probe() 1199 if (i == netdev->addr_len) { in ks8842_probe()
|
/drivers/net/ |
D | loopback.c | 174 dev->addr_len = ETH_ALEN; /* 6 */ in gen_lo_setup()
|
/drivers/net/ethernet/atheros/atlx/ |
D | atlx.c | 73 memcpy(adapter->hw.mac_addr, addr->sa_data, netdev->addr_len); in atlx_set_mac()
|