Searched refs:CMD_PACKET_SIZE (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/drivers/net/usb/ |
D | cx82310_eth.c | 48 #define CMD_PACKET_SIZE 64 macro 66 u8 *buf = kzalloc(CMD_PACKET_SIZE, GFP_KERNEL); in cx82310_cmd() 74 memcpy(buf + 4, wdata, min_t(int, wlen, CMD_PACKET_SIZE - 4)); in cx82310_cmd() 78 CMD_PACKET_SIZE, &actual_len, CMD_TIMEOUT); in cx82310_cmd() 90 buf, CMD_PACKET_SIZE, &actual_len, in cx82310_cmd() 123 min_t(int, rlen, CMD_PACKET_SIZE - 4)); in cx82310_cmd()
|
/Linux-v4.19/drivers/usb/atm/ |
D | cxacru.c | 39 #define CMD_PACKET_SIZE 64 /* Should be maxpacket(ep)? */ macro 40 #define CMD_MAX_CONFIG ((CMD_PACKET_SIZE / 4 - 1) / 2) 443 __le32 data[CMD_PACKET_SIZE / 4]; in adsl_config_store() 583 const int stride = CMD_PACKET_SIZE - 4; in cxacru_cm() 586 int wbuflen = ((wsize - 1) / stride + 1) * CMD_PACKET_SIZE; in cxacru_cm() 587 int rbuflen = ((rsize - 1) / stride + 1) * CMD_PACKET_SIZE; in cxacru_cm() 612 for (offb = offd = 0; offd < wsize; offd += stride, offb += CMD_PACKET_SIZE) { in cxacru_cm() 640 if (actlen % CMD_PACKET_SIZE || !actlen) { in cxacru_cm() 649 for (offb = offd = 0; offd < rsize && offb < actlen; offb += CMD_PACKET_SIZE) { in cxacru_cm() 685 const int stride = CMD_PACKET_SIZE / (4 * 2) - 1; in cxacru_cm_get_array() [all …]
|