Home
last modified time | relevance | path

Searched refs:addr_len (Results 1 – 25 of 167) sorted by relevance

1234567

/drivers/char/ipmi/
Dipmi_devintf.c184 if (req->addr_len > sizeof(struct ipmi_addr)) in handle_send_req()
187 if (copy_from_user(&addr, req->addr, req->addr_len)) in handle_send_req()
200 rv = ipmi_validate_addr(&addr, req->addr_len); in handle_send_req()
280 int addr_len; in ipmi_ioctl() local
314 addr_len = ipmi_addr_length(msg->addr.addr_type); in ipmi_ioctl()
315 if (rsp.addr_len < addr_len) in ipmi_ioctl()
321 if (copy_to_user(rsp.addr, &(msg->addr), addr_len)) { in ipmi_ioctl()
325 rsp.addr_len = addr_len; in ipmi_ioctl()
677 compat_uint_t addr_len; member
685 compat_uint_t addr_len; member
[all …]
/drivers/staging/rtl8192u/
Dr8180_93cx6.c102 int addr_len; in eprom_read() local
121 addr_len = 8; in eprom_read()
129 addr_len = 6; in eprom_read()
134 eprom_send_bits_string(dev, addr_str, addr_len); in eprom_read()
/drivers/net/ethernet/realtek/
D8139cp.c1637 memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); in cp_set_mac_address()
1711 int addr_len) in eeprom_extend_cmd() argument
1713 int cmd = (EE_EXTEND_CMD << addr_len) | (extend_cmd << (addr_len - 2)); in eeprom_extend_cmd()
1716 eeprom_cmd(ee_addr, cmd, 3 + addr_len); in eeprom_extend_cmd()
1720 static u16 read_eeprom (void __iomem *ioaddr, int location, int addr_len) in read_eeprom() argument
1725 int read_cmd = location | (EE_READ_CMD << addr_len); in read_eeprom()
1728 eeprom_cmd(ee_addr, read_cmd, 3 + addr_len); in read_eeprom()
1746 int addr_len) in write_eeprom() argument
1750 int write_cmd = location | (EE_WRITE_CMD << addr_len); in write_eeprom()
1752 eeprom_extend_cmd(ee_addr, EE_EWEN_ADDR, addr_len); in write_eeprom()
[all …]
D8139too.c638 static int read_eeprom (void __iomem *ioaddr, int location, int addr_len);
957 int i, addr_len, option; in rtl8139_init_one() local
1004 addr_len = read_eeprom (ioaddr, 0, 8) == 0x8129 ? 8 : 6; in rtl8139_init_one()
1007 cpu_to_le16(read_eeprom (ioaddr, i + 7, addr_len)); in rtl8139_init_one()
1159 static int read_eeprom(void __iomem *ioaddr, int location, int addr_len) in read_eeprom() argument
1163 int read_cmd = location | (EE_READ_CMD << addr_len); in read_eeprom()
1170 for (i = 4 + addr_len; i >= 0; i--) { in read_eeprom()
2247 memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); in rtl8139_set_mac_address()
/drivers/net/ethernet/chelsio/cxgb4/
Dl2t.c107 int addr_len, int ifindex) in addr_hash() argument
109 return addr_len == 4 ? arp_hash(d, addr, ifindex) : in addr_hash()
371 int addr_len = neigh->tbl->key_len; in cxgb4_l2t_get() local
374 int hash = addr_hash(d, addr, addr_len, ifidx); in cxgb4_l2t_get()
403 memcpy(e->addr, addr, addr_len); in cxgb4_l2t_get()
407 e->v6 = addr_len == 16; in cxgb4_l2t_get()
484 int addr_len = neigh->tbl->key_len; in t4_l2t_update() local
487 int hash = addr_hash(d, addr, addr_len, ifidx); in t4_l2t_update()
/drivers/net/ethernet/dec/tulip/
Deeprom.c341 int tulip_read_eeprom(struct net_device *dev, int location, int addr_len) in tulip_read_eeprom() argument
347 int read_cmd = location | (EE_READ_CMD << addr_len); in tulip_read_eeprom()
352 if (location > (1 << addr_len) - 1) in tulip_read_eeprom()
359 for (i = 4 + addr_len; i >= 0; i--) { in tulip_read_eeprom()
/drivers/media/usb/dvb-usb-v2/
Daf9015.c47 state->buf[6] = req->addr_len; in af9015_ctrl_msg()
157 req.addr_len = 3; in af9015_write_reg_i2c()
170 req.addr_len = 3; in af9015_read_reg_i2c()
214 u8 uninitialized_var(mbox), addr_len; in af9015_i2c_xfer()
248 addr_len = 3; in af9015_i2c_xfer()
251 addr_len = 1; in af9015_i2c_xfer()
267 req.addr_len = addr_len; in af9015_i2c_xfer()
285 req.addr_len = addr_len; in af9015_i2c_xfer()
302 req.addr_len = addr_len; in af9015_i2c_xfer()
303 req.data_len = msg[i].len-addr_len; in af9015_i2c_xfer()
[all …]
Daf9015.h90 u8 addr_len; /* [6] */ member
/drivers/staging/lustre/lnet/lnet/
Dnidstrings.c1141 size_t addr_len; in libcfs_nid2str_r() local
1144 addr_len = strlen(buf); in libcfs_nid2str_r()
1146 snprintf(buf + addr_len, buf_size - addr_len, "@%s", in libcfs_nid2str_r()
1149 snprintf(buf + addr_len, buf_size - addr_len, "@%s%u", in libcfs_nid2str_r()
/drivers/net/ethernet/atheros/atlx/
Datlx.c85 memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); in atlx_set_mac()
86 memcpy(adapter->hw.mac_addr, addr->sa_data, netdev->addr_len); in atlx_set_mac()
/drivers/net/ethernet/intel/
De100.c709 static void e100_eeprom_write(struct nic *nic, u16 addr_len, u16 addr, __le16 data) in e100_eeprom_write() argument
716 cmd_addr_data[0] = op_ewen << (addr_len - 2); in e100_eeprom_write()
717 cmd_addr_data[1] = (((op_write << addr_len) | addr) << 16) | in e100_eeprom_write()
719 cmd_addr_data[2] = op_ewds << (addr_len - 2); in e100_eeprom_write()
747 static __le16 e100_eeprom_read(struct nic *nic, u16 *addr_len, u16 addr) in e100_eeprom_read() argument
754 cmd_addr_data = ((op_read << *addr_len) | addr) << 16; in e100_eeprom_read()
773 *addr_len -= (i - 16); in e100_eeprom_read()
790 u16 addr, addr_len = 8, checksum = 0; in e100_eeprom_load() local
793 e100_eeprom_read(nic, &addr_len, 0); in e100_eeprom_load()
794 nic->eeprom_wc = 1 << addr_len; in e100_eeprom_load()
[all …]
/drivers/isdn/mISDN/
Dsocket.c475 data_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) in data_sock_bind() argument
484 if (addr_len != sizeof(struct sockaddr_mISDN)) in data_sock_bind()
563 int *addr_len, int peer) in data_sock_getname() argument
573 *addr_len = sizeof(*maddr); in data_sock_getname()
710 base_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) in base_sock_bind() argument
/drivers/firewire/
Dnet.c226 memset(h->h_dest, 0, net->addr_len); in fwnet_header_create()
232 memcpy(h->h_dest, daddr, net->addr_len); in fwnet_header_create()
251 memcpy(h->h_dest, neigh->ha, net->addr_len); in fwnet_header_cache()
265 memcpy((u8 *)hh->hh_data + HH_DATA_OFF(FWNET_HLEN), haddr, net->addr_len); in fwnet_header_cache_update()
527 net->addr_len) == 0) in fwnet_finish_incoming_packet()
534 if (memcmp(eth->h_dest, net->dev_addr, net->addr_len)) in fwnet_finish_incoming_packet()
1402 net->addr_len = FWNET_ALEN; in fwnet_init_dev()
1516 memset(net->broadcast, -1, net->addr_len); in fwnet_probe()
/drivers/net/ethernet/intel/i40e/
Di40e_dcb_nl.c146 for (i = 0; i < dev->addr_len; i++) in i40e_dcbnl_get_perm_hw_addr()
149 for (j = 0; j < dev->addr_len; j++, i++) in i40e_dcbnl_get_perm_hw_addr()
/drivers/net/ethernet/micrel/
Dks8842.c1082 memcpy(netdev->dev_addr, mac, netdev->addr_len); in ks8842_set_mac()
1201 i = netdev->addr_len; in ks8842_probe()
1203 for (i = 0; i < netdev->addr_len; i++) in ks8842_probe()
1207 if (i < netdev->addr_len) in ks8842_probe()
1210 netdev->addr_len); in ks8842_probe()
1213 if (i == netdev->addr_len) { in ks8842_probe()
/drivers/staging/gdm72xx/
Dgdm_wimax.c293 memcpy(dev->dev_addr, mac_addr, dev->addr_len); in __gdm_wimax_set_mac_addr()
302 memcpy(&hci->data[2], mac_addr, dev->addr_len); /* V */ in __gdm_wimax_set_mac_addr()
585 if (dev->addr_len != L) { in gdm_wimax_get_prepared_info()
593 memcpy(dev->dev_addr, V, dev->addr_len); in gdm_wimax_get_prepared_info()
/drivers/net/wan/
Dlapbether.c268 memcpy(dev->dev_addr, sa->sa_data, dev->addr_len); in lapbeth_set_mac_address()
333 dev->addr_len = 0; in lapbeth_setup()
/drivers/net/wan/lmc/
Dlmc_proto.c60 dev->addr_len = 0; in lmc_proto_attach()
/drivers/net/can/
Dvcan.c154 dev->addr_len = 0; in vcan_setup()
/drivers/net/hamradio/
Dbpqether.c309 memcpy(dev->dev_addr, sa->sa_data, dev->addr_len); in bpq_set_mac_address()
490 dev->addr_len = AX25_ADDR_LEN; in bpq_setup()
/drivers/net/bonding/
Dbond_sysfs_slave.c59 slave->dev->addr_len, in perm_hwaddr_show()
Dbond_alb.c1004 memcpy(dev->dev_addr, addr, dev->addr_len); in alb_set_slave_mac_addr()
1011 memcpy(s_addr.sa_data, addr, dev->addr_len); in alb_set_slave_mac_addr()
1238 memcpy(sa.sa_data, bond->dev->dev_addr, bond->dev->addr_len); in alb_set_mac_address()
1702 memcpy(sa.sa_data, bond->dev->dev_addr, bond->dev->addr_len); in bond_alb_handle_active_change()
1739 memcpy(bond_dev->dev_addr, sa->sa_data, bond_dev->addr_len); in bond_alb_set_mac_address()
Dbond_main.c625 bond_dev, slave_dev, slave_dev->addr_len); in bond_set_dev_addr()
626 memcpy(bond_dev->dev_addr, slave_dev->dev_addr, slave_dev->addr_len); in bond_set_dev_addr()
1136 bond_dev->addr_len = slave_dev->addr_len; in bond_setup_by_slave()
1139 slave_dev->addr_len); in bond_setup_by_slave()
1480 memcpy(addr.sa_data, bond_dev->dev_addr, bond_dev->addr_len); in bond_enslave()
2482 if (arp->ar_hln != bond->dev->addr_len || in bond_arp_rcv()
2491 arp_ptr += bond->dev->addr_len; in bond_arp_rcv()
2493 arp_ptr += 4 + bond->dev->addr_len; in bond_arp_rcv()
3657 memcpy(bond_dev->dev_addr, sa->sa_data, bond_dev->addr_len); in bond_set_mac_address()
3661 memcpy(tmp_sa.sa_data, bond_dev->dev_addr, bond_dev->addr_len); in bond_set_mac_address()
/drivers/net/
Dloopback.c168 dev->addr_len = ETH_ALEN; /* 6 */ in loopback_setup()
/drivers/net/usb/
Drtl8150.c304 memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); in rtl8150_set_mac_address()
307 set_registers(dev, IDR, netdev->addr_len, netdev->dev_addr); in rtl8150_set_mac_address()
319 for (i = 0; i * 2 < netdev->addr_len; i++) { in rtl8150_set_mac_address()

1234567